diff --git a/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go b/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go index 279af9685b0..61f83a0a62b 100644 --- a/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go +++ b/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go @@ -312,7 +312,7 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "abusiveexperiencereport.sites.get" call. @@ -413,7 +413,7 @@ func (c *ViolatingSitesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "abusiveexperiencereport.violatingSites.list" call. diff --git a/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go b/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go index fd8a3754dd1..f407a492f64 100644 --- a/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go +++ b/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go @@ -341,7 +341,7 @@ func (c *AmpUrlsBatchGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "acceleratedmobilepageurl.ampUrls.batchGet" call. diff --git a/accessapproval/v1/accessapproval-gen.go b/accessapproval/v1/accessapproval-gen.go index 6bd7f701b01..1ce6f935217 100644 --- a/accessapproval/v1/accessapproval-gen.go +++ b/accessapproval/v1/accessapproval-gen.go @@ -872,7 +872,7 @@ func (c *FoldersDeleteAccessApprovalSettingsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.deleteAccessApprovalSettings" call. @@ -981,7 +981,7 @@ func (c *FoldersGetAccessApprovalSettingsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.getAccessApprovalSettings" call. @@ -1090,7 +1090,7 @@ func (c *FoldersGetServiceAccountCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.getServiceAccount" call. @@ -1211,7 +1211,7 @@ func (c *FoldersUpdateAccessApprovalSettingsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.updateAccessApprovalSettings" call. @@ -1315,7 +1315,7 @@ func (c *FoldersApprovalRequestsApproveCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.approvalRequests.approve" call. @@ -1421,7 +1421,7 @@ func (c *FoldersApprovalRequestsDismissCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.approvalRequests.dismiss" call. @@ -1531,7 +1531,7 @@ func (c *FoldersApprovalRequestsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.approvalRequests.get" call. @@ -1637,7 +1637,7 @@ func (c *FoldersApprovalRequestsInvalidateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.approvalRequests.invalidate" call. @@ -1774,7 +1774,7 @@ func (c *FoldersApprovalRequestsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.approvalRequests.list" call. @@ -1896,7 +1896,7 @@ func (c *OrganizationsDeleteAccessApprovalSettingsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.deleteAccessApprovalSettings" call. @@ -2005,7 +2005,7 @@ func (c *OrganizationsGetAccessApprovalSettingsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.getAccessApprovalSettings" call. @@ -2114,7 +2114,7 @@ func (c *OrganizationsGetServiceAccountCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.getServiceAccount" call. @@ -2235,7 +2235,7 @@ func (c *OrganizationsUpdateAccessApprovalSettingsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.updateAccessApprovalSettings" call. @@ -2339,7 +2339,7 @@ func (c *OrganizationsApprovalRequestsApproveCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.approvalRequests.approve" call. @@ -2445,7 +2445,7 @@ func (c *OrganizationsApprovalRequestsDismissCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.approvalRequests.dismiss" call. @@ -2555,7 +2555,7 @@ func (c *OrganizationsApprovalRequestsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.approvalRequests.get" call. @@ -2661,7 +2661,7 @@ func (c *OrganizationsApprovalRequestsInvalidateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.approvalRequests.invalidate" call. @@ -2798,7 +2798,7 @@ func (c *OrganizationsApprovalRequestsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.approvalRequests.list" call. @@ -2920,7 +2920,7 @@ func (c *ProjectsDeleteAccessApprovalSettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.deleteAccessApprovalSettings" call. @@ -3029,7 +3029,7 @@ func (c *ProjectsGetAccessApprovalSettingsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.getAccessApprovalSettings" call. @@ -3138,7 +3138,7 @@ func (c *ProjectsGetServiceAccountCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.getServiceAccount" call. @@ -3259,7 +3259,7 @@ func (c *ProjectsUpdateAccessApprovalSettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.updateAccessApprovalSettings" call. @@ -3363,7 +3363,7 @@ func (c *ProjectsApprovalRequestsApproveCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.approvalRequests.approve" call. @@ -3469,7 +3469,7 @@ func (c *ProjectsApprovalRequestsDismissCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.approvalRequests.dismiss" call. @@ -3579,7 +3579,7 @@ func (c *ProjectsApprovalRequestsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.approvalRequests.get" call. @@ -3685,7 +3685,7 @@ func (c *ProjectsApprovalRequestsInvalidateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.approvalRequests.invalidate" call. @@ -3822,7 +3822,7 @@ func (c *ProjectsApprovalRequestsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.approvalRequests.list" call. diff --git a/accessapproval/v1beta1/accessapproval-gen.go b/accessapproval/v1beta1/accessapproval-gen.go index 55417d90ee2..2cb95dfbed9 100644 --- a/accessapproval/v1beta1/accessapproval-gen.go +++ b/accessapproval/v1beta1/accessapproval-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/access-approval/docs // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // accessapprovalService, err := accessapproval.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // accessapprovalService, err := accessapproval.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // accessapprovalService, err := accessapproval.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package accessapproval // import "google.golang.org/api/accessapproval/v1beta1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "accessapproval:v1beta1" const apiName = "accessapproval" const apiVersion = "v1beta1" const basePath = "https://accessapproval.googleapis.com/" +const basePathTemplate = "https://accessapproval.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://accessapproval.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -204,21 +222,18 @@ type ProjectsApprovalRequestsService struct { s *Service } -// AccessApprovalSettings: Settings on a Project/Folder/Organization -// related to Access Approval. +// AccessApprovalSettings: Settings on a Project/Folder/Organization related to +// Access Approval. type AccessApprovalSettings struct { // EnrolledAncestor: Output only. This field is read only (not settable // via // UpdateAccessAccessApprovalSettings method). If the field is true, // that - // indicates that at least one service is enrolled for Access Approval - // in one - // or more ancestors of the Project or Folder (this field will always - // be - // unset for the organization since organizations do not have - // ancestors). + // indicates that at least one service is enrolled for Access Approval in + // one + // or more ancestors of the Project or Folder (this field will always be + // unset for the organization since organizations do not have ancestors). EnrolledAncestor bool `json:"enrolledAncestor,omitempty"` - // EnrolledServices: A list of Google Cloud Services for which the given // resource has Access // Approval enrolled. Access requests for the resource given by name @@ -227,28 +242,24 @@ type AccessApprovalSettings struct { // explicit // approval. If name refers to an organization, enrollment can be done // for - // individual services. If name refers to a folder or project, - // enrollment can + // individual services. If name refers to a folder or project, enrollment + // can // only be done on an all or nothing basis. // - // If a cloud_product is repeated in this list, the first entry will - // be + // If a cloud_product is repeated in this list, the first entry will be // honored and all following entries will be discarded. A maximum of // 10 // enrolled services will be enforced, to be expanded as the set of // supported // services is expanded. EnrolledServices []*EnrolledService `json:"enrolledServices,omitempty"` - // Name: The resource name of the settings. Format is one of: //
    //
  1. "projects/{project_id}/accessApprovalSettings"
  2. //
  3. "folders/{folder_id}/accessApprovalSettings"
  4. - // - //
  5. "organizations/{organization_id}/accessApprovalSettings"
  6. + //
  7. "organizations/{organization_id}/accessApprovalSettings"
  8. //
      Name string `json:"name,omitempty"` - // NotificationEmails: A list of email addresses to which notifications // relating to approval // requests should be sent. Notifications relating to a resource will be @@ -258,38 +269,30 @@ type AccessApprovalSettings struct { // maximum of 50 email addresses are allowed. NotificationEmails []string `json:"notificationEmails,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EnrolledAncestor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnrolledAncestor") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnrolledAncestor") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccessApprovalSettings) MarshalJSON() ([]byte, error) { +func (s AccessApprovalSettings) MarshalJSON() ([]byte, error) { type NoMethod AccessApprovalSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccessLocations: Home office and physical location of the principal. type AccessLocations struct { - // PrincipalOfficeCountry: The "home office" location of the principal. - // A two-letter country code + // PrincipalOfficeCountry: The "home office" location of the principal. A + // two-letter country code // (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In // some // limited situations Google systems may refer refer to a region code @@ -307,13 +310,12 @@ type AccessLocations struct { //
    1. ANY: Any location
    2. //
    PrincipalOfficeCountry string `json:"principalOfficeCountry,omitempty"` - - // PrincipalPhysicalLocationCountry: Physical location of the principal - // at the time of the access. A - // two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or - // "GB" or - // a region code. In some limited situations Google systems may refer - // refer to + // PrincipalPhysicalLocationCountry: Physical location of the principal at the + // time of the access. A + // two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" + // or + // a region code. In some limited situations Google systems may refer refer + // to // a region code instead of a country code. // Possible Region Codes: //
      @@ -327,43 +329,34 @@ type AccessLocations struct { //
    1. ANY: Any location
    2. //
    PrincipalPhysicalLocationCountry string `json:"principalPhysicalLocationCountry,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PrincipalOfficeCountry") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "PrincipalOfficeCountry") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PrincipalOfficeCountry") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PrincipalOfficeCountry") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccessLocations) MarshalJSON() ([]byte, error) { +func (s AccessLocations) MarshalJSON() ([]byte, error) { type NoMethod AccessLocations - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccessReason struct { - // Detail: More detail about certain reason types. See comments for each - // type above. + // Detail: More detail about certain reason types. See comments for each type + // above. Detail string `json:"detail,omitempty"` - // Type: Type of access justification. // // Possible values: // "TYPE_UNSPECIFIED" - Default value for proto, shouldn't be used. - // "CUSTOMER_INITIATED_SUPPORT" - Customer made a request or raised an - // issue that required the principal to + // "CUSTOMER_INITIATED_SUPPORT" - Customer made a request or raised an issue + // that required the principal to // access customer data. `detail` is of the form ("#####" is the issue // ID): //
      @@ -374,79 +367,60 @@ type AccessReason struct { //
    1. "Google-#####"
    2. //
    3. "T-#####"
    4. //
    - // "GOOGLE_INITIATED_SERVICE" - The principal accessed customer data - // in order to diagnose or resolve a - // suspected issue in services or a known outage. Often this access is - // used - // to confirm that customers are not affected by a suspected service - // issue + // "GOOGLE_INITIATED_SERVICE" - The principal accessed customer data in order + // to diagnose or resolve a + // suspected issue in services or a known outage. Often this access is used + // to confirm that customers are not affected by a suspected service issue // or to remediate a reversible system issue. - // "GOOGLE_INITIATED_REVIEW" - Google initiated service for security, - // fraud, abuse, or compliance + // "GOOGLE_INITIATED_REVIEW" - Google initiated service for security, fraud, + // abuse, or compliance // purposes. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Detail") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Detail") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccessReason) MarshalJSON() ([]byte, error) { +func (s AccessReason) MarshalJSON() ([]byte, error) { type NoMethod AccessReason - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ApprovalRequest: A request for the customer to approve access to a -// resource. +// ApprovalRequest: A request for the customer to approve access to a resource. type ApprovalRequest struct { // Approve: Access was approved. Approve *ApproveDecision `json:"approve,omitempty"` - // Dismiss: The request was dismissed. Dismiss *DismissDecision `json:"dismiss,omitempty"` - // Name: The resource name of the request. Format // is - // "{projects|folders|organizations}/{id}/approvalRequests/{approval_r - // equest_id}". + // "{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id} + // ". Name string `json:"name,omitempty"` - // RequestTime: The time at which approval was requested. RequestTime string `json:"requestTime,omitempty"` - - // RequestedExpiration: The requested expiration for the approval. If - // the request is approved, - // access will be granted from the time of approval until the expiration - // time. + // RequestedExpiration: The requested expiration for the approval. If the + // request is approved, + // access will be granted from the time of approval until the expiration time. RequestedExpiration string `json:"requestedExpiration,omitempty"` - - // RequestedLocations: The locations for which approval is being - // requested. + // RequestedLocations: The locations for which approval is being requested. RequestedLocations *AccessLocations `json:"requestedLocations,omitempty"` - - // RequestedReason: The justification for which approval is being - // requested. + // RequestedReason: The justification for which approval is being requested. RequestedReason *AccessReason `json:"requestedReason,omitempty"` - - // RequestedResourceName: The resource for which approval is being - // requested. The format of the + // RequestedResourceName: The resource for which approval is being requested. + // The format of the // resource name is defined // at - // https://cloud.google.com/apis/design/resource_names. The resource - // name here + // https://cloud.google.com/apis/design/resource_names. The resource name + // here // may either be a "full" resource name // (e.g. // "//library.googleapis.com/shelves/shelf1/books/book2") or a @@ -455,64 +429,50 @@ type ApprovalRequest struct { // the // resource name specification. RequestedResourceName string `json:"requestedResourceName,omitempty"` - - // RequestedResourceProperties: Properties related to the resource - // represented by requested_resource_name. + // RequestedResourceProperties: Properties related to the resource represented + // by requested_resource_name. RequestedResourceProperties *ResourceProperties `json:"requestedResourceProperties,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Approve") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Approve") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Approve") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Approve") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApprovalRequest) MarshalJSON() ([]byte, error) { +func (s ApprovalRequest) MarshalJSON() ([]byte, error) { type NoMethod ApprovalRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApproveApprovalRequestMessage: Request to approve an ApprovalRequest. type ApproveApprovalRequestMessage struct { // ExpireTime: The expiration time of this approval. ExpireTime string `json:"expireTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpireTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpireTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExpireTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApproveApprovalRequestMessage) MarshalJSON() ([]byte, error) { +func (s ApproveApprovalRequestMessage) MarshalJSON() ([]byte, error) { type NoMethod ApproveApprovalRequestMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApproveDecision: A decision that has been made to approve access to a @@ -520,35 +480,27 @@ func (s *ApproveApprovalRequestMessage) MarshalJSON() ([]byte, error) { type ApproveDecision struct { // ApproveTime: The time at which approval was granted. ApproveTime string `json:"approveTime,omitempty"` - // ExpireTime: The time at which the approval expires. ExpireTime string `json:"expireTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApproveTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApproveTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApproveTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApproveDecision) MarshalJSON() ([]byte, error) { +func (s ApproveDecision) MarshalJSON() ([]byte, error) { type NoMethod ApproveDecision - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DismissApprovalRequestMessage: Request to dismiss an approval -// request. +// DismissApprovalRequestMessage: Request to dismiss an approval request. type DismissApprovalRequestMessage struct { } @@ -557,28 +509,22 @@ type DismissApprovalRequestMessage struct { type DismissDecision struct { // DismissTime: The time at which the approval request was dismissed. DismissTime string `json:"dismissTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "DismissTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DismissTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DismissTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DismissDecision) MarshalJSON() ([]byte, error) { +func (s DismissDecision) MarshalJSON() ([]byte, error) { type NoMethod DismissDecision - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining @@ -588,16 +534,12 @@ func (s *DismissDecision) MarshalJSON() ([]byte, error) { // or the response type of an API method. For instance: // // service Foo { -// rpc Bar(google.protobuf.Empty) returns -// -// (google.protobuf.Empty); -// +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); // } // // The JSON representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } @@ -620,37 +562,29 @@ type EnrolledService struct { //
  9. storage.googleapis.com
  10. //
      CloudProduct string `json:"cloudProduct,omitempty"` - // EnrollmentLevel: The enrollment level of the service. // // Possible values: - // "ENROLLMENT_LEVEL_UNSPECIFIED" - Default value for proto, shouldn't - // be used. - // "BLOCK_ALL" - Service is enrolled in Access Approval for all - // requests + // "ENROLLMENT_LEVEL_UNSPECIFIED" - Default value for proto, shouldn't be + // used. + // "BLOCK_ALL" - Service is enrolled in Access Approval for all requests EnrollmentLevel string `json:"enrollmentLevel,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudProduct") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudProduct") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudProduct") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnrolledService) MarshalJSON() ([]byte, error) { +func (s EnrolledService) MarshalJSON() ([]byte, error) { type NoMethod EnrolledService - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListApprovalRequestsResponse: Response to listing of ApprovalRequest @@ -658,73 +592,55 @@ func (s *EnrolledService) MarshalJSON() ([]byte, error) { type ListApprovalRequestsResponse struct { // ApprovalRequests: Approval request details. ApprovalRequests []*ApprovalRequest `json:"approvalRequests,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ApprovalRequests") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalRequests") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApprovalRequests") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListApprovalRequestsResponse) MarshalJSON() ([]byte, error) { +func (s ListApprovalRequestsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListApprovalRequestsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResourceProperties: The properties associated with the resource of -// the request. +// ResourceProperties: The properties associated with the resource of the +// request. type ResourceProperties struct { - // ExcludesDescendants: Whether an approval will exclude the descendants - // of the resource being + // ExcludesDescendants: Whether an approval will exclude the descendants of the + // resource being // requested. ExcludesDescendants bool `json:"excludesDescendants,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ExcludesDescendants") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ExcludesDescendants") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExcludesDescendants") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExcludesDescendants") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResourceProperties) MarshalJSON() ([]byte, error) { +func (s ResourceProperties) MarshalJSON() ([]byte, error) { type NoMethod ResourceProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "accessapproval.folders.deleteAccessApprovalSettings": - type FoldersDeleteAccessApprovalSettingsCall struct { s *Service name string @@ -737,13 +653,13 @@ type FoldersDeleteAccessApprovalSettingsCall struct { // project, folder, or organization. // This will have the effect of disabling Access Approval for the // project, -// folder, or organization, but only if all ancestors also have -// Access +// folder, or organization, but only if all ancestors also have Access // Approval disabled. If Access Approval is enabled at a higher level of // the -// hierarchy, then Access Approval will still be enabled at this level -// as +// hierarchy, then Access Approval will still be enabled at this level as // the settings are inherited. +// +// - name: Name of the AccessApprovalSettings to delete. func (r *FoldersService) DeleteAccessApprovalSettings(name string) *FoldersDeleteAccessApprovalSettingsCall { c := &FoldersDeleteAccessApprovalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -751,23 +667,21 @@ func (r *FoldersService) DeleteAccessApprovalSettings(name string) *FoldersDelet } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersDeleteAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *FoldersDeleteAccessApprovalSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersDeleteAccessApprovalSettingsCall) Context(ctx context.Context) *FoldersDeleteAccessApprovalSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersDeleteAccessApprovalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -776,12 +690,7 @@ func (c *FoldersDeleteAccessApprovalSettingsCall) Header() http.Header { } func (c *FoldersDeleteAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -795,16 +704,14 @@ func (c *FoldersDeleteAccessApprovalSettingsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.deleteAccessApprovalSettings" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *FoldersDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -812,17 +719,17 @@ func (c *FoldersDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -835,35 +742,7 @@ func (c *FoldersDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Deletes the settings associated with a project, folder, or organization.\nThis will have the effect of disabling Access Approval for the project,\nfolder, or organization, but only if all ancestors also have Access\nApproval disabled. If Access Approval is enabled at a higher level of the\nhierarchy, then Access Approval will still be enabled at this level as\nthe settings are inherited.", - // "flatPath": "v1beta1/folders/{foldersId}/accessApprovalSettings", - // "httpMethod": "DELETE", - // "id": "accessapproval.folders.deleteAccessApprovalSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the AccessApprovalSettings to delete.", - // "location": "path", - // "pattern": "^folders/[^/]+/accessApprovalSettings$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.folders.getAccessApprovalSettings": +} type FoldersGetAccessApprovalSettingsCall struct { s *Service @@ -874,8 +753,10 @@ type FoldersGetAccessApprovalSettingsCall struct { header_ http.Header } -// GetAccessApprovalSettings: Gets the settings associated with a -// project, folder, or organization. +// GetAccessApprovalSettings: Gets the settings associated with a project, +// folder, or organization. +// +// - name: Name of the AccessApprovalSettings to retrieve. func (r *FoldersService) GetAccessApprovalSettings(name string) *FoldersGetAccessApprovalSettingsCall { c := &FoldersGetAccessApprovalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -883,33 +764,29 @@ func (r *FoldersService) GetAccessApprovalSettings(name string) *FoldersGetAcces } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersGetAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *FoldersGetAccessApprovalSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FoldersGetAccessApprovalSettingsCall) IfNoneMatch(entityTag string) *FoldersGetAccessApprovalSettingsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersGetAccessApprovalSettingsCall) Context(ctx context.Context) *FoldersGetAccessApprovalSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersGetAccessApprovalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -918,12 +795,7 @@ func (c *FoldersGetAccessApprovalSettingsCall) Header() http.Header { } func (c *FoldersGetAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -940,16 +812,15 @@ func (c *FoldersGetAccessApprovalSettingsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.getAccessApprovalSettings" call. -// Exactly one of *AccessApprovalSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccessApprovalSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccessApprovalSettings.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FoldersGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -957,17 +828,17 @@ func (c *FoldersGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccessApprovalSettings{ ServerResponse: googleapi.ServerResponse{ @@ -980,35 +851,7 @@ func (c *FoldersGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets the settings associated with a project, folder, or organization.", - // "flatPath": "v1beta1/folders/{foldersId}/accessApprovalSettings", - // "httpMethod": "GET", - // "id": "accessapproval.folders.getAccessApprovalSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the AccessApprovalSettings to retrieve.", - // "location": "path", - // "pattern": "^folders/[^/]+/accessApprovalSettings$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "AccessApprovalSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.folders.updateAccessApprovalSettings": +} type FoldersUpdateAccessApprovalSettingsCall struct { s *Service @@ -1022,6 +865,14 @@ type FoldersUpdateAccessApprovalSettingsCall struct { // UpdateAccessApprovalSettings: Updates the settings associated with a // project, folder, or organization. // Settings to update are determined by the value of field_mask. +// +// - name: The resource name of the settings. Format is one of: +//
        +//
      1. "projects/{project_id}/accessApprovalSettings"
      2. +//
      3. "folders/{folder_id}/accessApprovalSettings"
      4. +//
      5. "organizations/{organization_id}/accessApprovalSettings"
      6. +// +//
          . func (r *FoldersService) UpdateAccessApprovalSettings(name string, accessapprovalsettings *AccessApprovalSettings) *FoldersUpdateAccessApprovalSettingsCall { c := &FoldersUpdateAccessApprovalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1029,11 +880,10 @@ func (r *FoldersService) UpdateAccessApprovalSettings(name string, accessapprova return c } -// UpdateMask sets the optional parameter "updateMask": For the -// `FieldMask` definition, +// UpdateMask sets the optional parameter "updateMask": For the `FieldMask` +// definition, // see -// https://developers.google.com/protocol-buffers/docs/reference/goog -// le.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask // If this field is left unset, only the notification_emails field will // be // updated. @@ -1043,23 +893,21 @@ func (c *FoldersUpdateAccessApprovalSettingsCall) UpdateMask(updateMask string) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersUpdateAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *FoldersUpdateAccessApprovalSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersUpdateAccessApprovalSettingsCall) Context(ctx context.Context) *FoldersUpdateAccessApprovalSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersUpdateAccessApprovalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1068,18 +916,12 @@ func (c *FoldersUpdateAccessApprovalSettingsCall) Header() http.Header { } func (c *FoldersUpdateAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accessapprovalsettings) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -1092,16 +934,15 @@ func (c *FoldersUpdateAccessApprovalSettingsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.updateAccessApprovalSettings" call. -// Exactly one of *AccessApprovalSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccessApprovalSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccessApprovalSettings.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FoldersUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1109,17 +950,17 @@ func (c *FoldersUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccessApprovalSettings{ ServerResponse: googleapi.ServerResponse{ @@ -1132,44 +973,7 @@ func (c *FoldersUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Updates the settings associated with a project, folder, or organization.\nSettings to update are determined by the value of field_mask.", - // "flatPath": "v1beta1/folders/{foldersId}/accessApprovalSettings", - // "httpMethod": "PATCH", - // "id": "accessapproval.folders.updateAccessApprovalSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the settings. Format is one of:\n\u003col\u003e\n \u003cli\u003e\"projects/{project_id}/accessApprovalSettings\"\u003c/li\u003e\n \u003cli\u003e\"folders/{folder_id}/accessApprovalSettings\"\u003c/li\u003e\n \u003cli\u003e\"organizations/{organization_id}/accessApprovalSettings\"\u003c/li\u003e\n\u003col\u003e", - // "location": "path", - // "pattern": "^folders/[^/]+/accessApprovalSettings$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "For the `FieldMask` definition, see\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask\nIf this field is left unset, only the notification_emails field will be\nupdated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "AccessApprovalSettings" - // }, - // "response": { - // "$ref": "AccessApprovalSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.folders.approvalRequests.approve": +} type FoldersApprovalRequestsApproveCall struct { s *Service @@ -1183,10 +987,10 @@ type FoldersApprovalRequestsApproveCall struct { // Approve: Approves a request and returns the updated // ApprovalRequest. // -// Returns NOT_FOUND if the request does not exist. -// Returns -// FAILED_PRECONDITION if the request exists but is not in a pending -// state. +// Returns NOT_FOUND if the request does not exist. Returns +// FAILED_PRECONDITION if the request exists but is not in a pending state. +// +// - name: Name of the approval request to approve. func (r *FoldersApprovalRequestsService) Approve(name string, approveapprovalrequestmessage *ApproveApprovalRequestMessage) *FoldersApprovalRequestsApproveCall { c := &FoldersApprovalRequestsApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1195,23 +999,21 @@ func (r *FoldersApprovalRequestsService) Approve(name string, approveapprovalreq } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersApprovalRequestsApproveCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsApproveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersApprovalRequestsApproveCall) Context(ctx context.Context) *FoldersApprovalRequestsApproveCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersApprovalRequestsApproveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1220,18 +1022,12 @@ func (c *FoldersApprovalRequestsApproveCall) Header() http.Header { } func (c *FoldersApprovalRequestsApproveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.approveapprovalrequestmessage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:approve") @@ -1244,16 +1040,15 @@ func (c *FoldersApprovalRequestsApproveCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.approvalRequests.approve" call. -// Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ApprovalRequest.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApprovalRequest.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FoldersApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1261,17 +1056,17 @@ func (c *FoldersApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApprovalRequest{ ServerResponse: googleapi.ServerResponse{ @@ -1284,38 +1079,7 @@ func (c *FoldersApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Approves a request and returns the updated ApprovalRequest.\n\nReturns NOT_FOUND if the request does not exist. Returns\nFAILED_PRECONDITION if the request exists but is not in a pending state.", - // "flatPath": "v1beta1/folders/{foldersId}/approvalRequests/{approvalRequestsId}:approve", - // "httpMethod": "POST", - // "id": "accessapproval.folders.approvalRequests.approve", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the approval request to approve.", - // "location": "path", - // "pattern": "^folders/[^/]+/approvalRequests/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:approve", - // "request": { - // "$ref": "ApproveApprovalRequestMessage" - // }, - // "response": { - // "$ref": "ApprovalRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.folders.approvalRequests.dismiss": +} type FoldersApprovalRequestsDismissCall struct { s *Service @@ -1326,11 +1090,10 @@ type FoldersApprovalRequestsDismissCall struct { header_ http.Header } -// Dismiss: Dismisses a request. Returns the updated -// ApprovalRequest. +// Dismiss: Dismisses a request. Returns the updated ApprovalRequest. // -// NOTE: This does not deny access to the resource if another request -// has been +// NOTE: This does not deny access to the resource if another request has +// been // made and approved. It is equivalent in effect to ignoring the // request // altogether. @@ -1340,6 +1103,8 @@ type FoldersApprovalRequestsDismissCall struct { // Returns FAILED_PRECONDITION if the request exists but is not in a // pending // state. +// +// - name: Name of the ApprovalRequest to dismiss. func (r *FoldersApprovalRequestsService) Dismiss(name string, dismissapprovalrequestmessage *DismissApprovalRequestMessage) *FoldersApprovalRequestsDismissCall { c := &FoldersApprovalRequestsDismissCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1348,23 +1113,21 @@ func (r *FoldersApprovalRequestsService) Dismiss(name string, dismissapprovalreq } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersApprovalRequestsDismissCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsDismissCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersApprovalRequestsDismissCall) Context(ctx context.Context) *FoldersApprovalRequestsDismissCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersApprovalRequestsDismissCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1373,18 +1136,12 @@ func (c *FoldersApprovalRequestsDismissCall) Header() http.Header { } func (c *FoldersApprovalRequestsDismissCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dismissapprovalrequestmessage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:dismiss") @@ -1397,16 +1154,15 @@ func (c *FoldersApprovalRequestsDismissCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.approvalRequests.dismiss" call. -// Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ApprovalRequest.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApprovalRequest.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FoldersApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1414,17 +1170,17 @@ func (c *FoldersApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApprovalRequest{ ServerResponse: googleapi.ServerResponse{ @@ -1437,38 +1193,7 @@ func (c *FoldersApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Dismisses a request. Returns the updated ApprovalRequest.\n\nNOTE: This does not deny access to the resource if another request has been\nmade and approved. It is equivalent in effect to ignoring the request\naltogether.\n\nReturns NOT_FOUND if the request does not exist.\n\nReturns FAILED_PRECONDITION if the request exists but is not in a pending\nstate.", - // "flatPath": "v1beta1/folders/{foldersId}/approvalRequests/{approvalRequestsId}:dismiss", - // "httpMethod": "POST", - // "id": "accessapproval.folders.approvalRequests.dismiss", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the ApprovalRequest to dismiss.", - // "location": "path", - // "pattern": "^folders/[^/]+/approvalRequests/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:dismiss", - // "request": { - // "$ref": "DismissApprovalRequestMessage" - // }, - // "response": { - // "$ref": "ApprovalRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.folders.approvalRequests.get": +} type FoldersApprovalRequestsGetCall struct { s *Service @@ -1479,8 +1204,10 @@ type FoldersApprovalRequestsGetCall struct { header_ http.Header } -// Get: Gets an approval request. Returns NOT_FOUND if the request does -// not exist. +// Get: Gets an approval request. Returns NOT_FOUND if the request does not +// exist. +// +// - name: Name of the approval request to retrieve. func (r *FoldersApprovalRequestsService) Get(name string) *FoldersApprovalRequestsGetCall { c := &FoldersApprovalRequestsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1488,33 +1215,29 @@ func (r *FoldersApprovalRequestsService) Get(name string) *FoldersApprovalReques } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersApprovalRequestsGetCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FoldersApprovalRequestsGetCall) IfNoneMatch(entityTag string) *FoldersApprovalRequestsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersApprovalRequestsGetCall) Context(ctx context.Context) *FoldersApprovalRequestsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersApprovalRequestsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1523,12 +1246,7 @@ func (c *FoldersApprovalRequestsGetCall) Header() http.Header { } func (c *FoldersApprovalRequestsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1545,16 +1263,15 @@ func (c *FoldersApprovalRequestsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.approvalRequests.get" call. -// Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ApprovalRequest.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApprovalRequest.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FoldersApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1562,17 +1279,17 @@ func (c *FoldersApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*Appr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApprovalRequest{ ServerResponse: googleapi.ServerResponse{ @@ -1585,35 +1302,7 @@ func (c *FoldersApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*Appr return nil, err } return ret, nil - // { - // "description": "Gets an approval request. Returns NOT_FOUND if the request does not exist.", - // "flatPath": "v1beta1/folders/{foldersId}/approvalRequests/{approvalRequestsId}", - // "httpMethod": "GET", - // "id": "accessapproval.folders.approvalRequests.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the approval request to retrieve.", - // "location": "path", - // "pattern": "^folders/[^/]+/approvalRequests/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "ApprovalRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.folders.approvalRequests.list": +} type FoldersApprovalRequestsListCall struct { s *Service @@ -1626,9 +1315,12 @@ type FoldersApprovalRequestsListCall struct { // List: Lists approval requests associated with a project, folder, or // organization. -// Approval requests can be filtered by state (pending, active, -// dismissed). +// Approval requests can be filtered by state (pending, active, dismissed). // The order is reverse chronological. +// +// - parent: The parent resource. This may be +// "projects/{project_id}", +// "folders/{folder_id}", or "organizations/{organization_id}". func (r *FoldersApprovalRequestsService) List(parent string) *FoldersApprovalRequestsListCall { c := &FoldersApprovalRequestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1640,17 +1332,13 @@ func (r *FoldersApprovalRequestsService) List(parent string) *FoldersApprovalReq // following values: //
            // -//
          1. [not set]: Requests that are pending or have active -// -// approvals.
          2. -// +//
          3. [not set]: Requests that are pending or have active approvals.
          4. //
          5. ALL: All requests.
          6. //
          7. PENDING: Only pending requests.
          8. //
          9. ACTIVE: Only active (i.e. currently approved) requests.
          10. //
          11. DISMISSED: Only dismissed (including expired) requests.
          12. -//
          13. HISTORY: Active and dismissed (including expired) +//
          14. HISTORY: Active and dismissed (including expired) requests.
          15. // -// requests. //
          func (c *FoldersApprovalRequestsListCall) Filter(filter string) *FoldersApprovalRequestsListCall { c.urlParams_.Set("filter", filter) @@ -1663,41 +1351,37 @@ func (c *FoldersApprovalRequestsListCall) PageSize(pageSize int64) *FoldersAppro return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying the page of results to return. +// PageToken sets the optional parameter "pageToken": A token identifying the +// page of results to return. func (c *FoldersApprovalRequestsListCall) PageToken(pageToken string) *FoldersApprovalRequestsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersApprovalRequestsListCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FoldersApprovalRequestsListCall) IfNoneMatch(entityTag string) *FoldersApprovalRequestsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersApprovalRequestsListCall) Context(ctx context.Context) *FoldersApprovalRequestsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersApprovalRequestsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1706,12 +1390,7 @@ func (c *FoldersApprovalRequestsListCall) Header() http.Header { } func (c *FoldersApprovalRequestsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1728,16 +1407,15 @@ func (c *FoldersApprovalRequestsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.folders.approvalRequests.list" call. -// Exactly one of *ListApprovalRequestsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListApprovalRequestsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListApprovalRequestsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FoldersApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListApprovalRequestsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1745,17 +1423,17 @@ func (c *FoldersApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*Lis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListApprovalRequestsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1768,48 +1446,6 @@ func (c *FoldersApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*Lis return nil, err } return ret, nil - // { - // "description": "Lists approval requests associated with a project, folder, or organization.\nApproval requests can be filtered by state (pending, active, dismissed).\nThe order is reverse chronological.", - // "flatPath": "v1beta1/folders/{foldersId}/approvalRequests", - // "httpMethod": "GET", - // "id": "accessapproval.folders.approvalRequests.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "A filter on the type of approval requests to retrieve. Must be one of the\nfollowing values:\n\u003col\u003e\n \u003cli\u003e[not set]: Requests that are pending or have active approvals.\u003c/li\u003e\n \u003cli\u003eALL: All requests.\u003c/li\u003e\n \u003cli\u003ePENDING: Only pending requests.\u003c/li\u003e\n \u003cli\u003eACTIVE: Only active (i.e. currently approved) requests.\u003c/li\u003e\n \u003cli\u003eDISMISSED: Only dismissed (including expired) requests.\u003c/li\u003e\n \u003cli\u003eHISTORY: Active and dismissed (including expired) requests.\u003c/li\u003e\n\u003c/ol\u003e", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying the page of results to return.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The parent resource. This may be \"projects/{project_id}\",\n\"folders/{folder_id}\", or \"organizations/{organization_id}\".", - // "location": "path", - // "pattern": "^folders/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/approvalRequests", - // "response": { - // "$ref": "ListApprovalRequestsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1817,7 +1453,7 @@ func (c *FoldersApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*Lis // The provided context supersedes any context provided to the Context method. func (c *FoldersApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListApprovalRequestsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1833,8 +1469,6 @@ func (c *FoldersApprovalRequestsListCall) Pages(ctx context.Context, f func(*Lis } } -// method id "accessapproval.organizations.deleteAccessApprovalSettings": - type OrganizationsDeleteAccessApprovalSettingsCall struct { s *Service name string @@ -1847,13 +1481,13 @@ type OrganizationsDeleteAccessApprovalSettingsCall struct { // project, folder, or organization. // This will have the effect of disabling Access Approval for the // project, -// folder, or organization, but only if all ancestors also have -// Access +// folder, or organization, but only if all ancestors also have Access // Approval disabled. If Access Approval is enabled at a higher level of // the -// hierarchy, then Access Approval will still be enabled at this level -// as +// hierarchy, then Access Approval will still be enabled at this level as // the settings are inherited. +// +// - name: Name of the AccessApprovalSettings to delete. func (r *OrganizationsService) DeleteAccessApprovalSettings(name string) *OrganizationsDeleteAccessApprovalSettingsCall { c := &OrganizationsDeleteAccessApprovalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1861,23 +1495,21 @@ func (r *OrganizationsService) DeleteAccessApprovalSettings(name string) *Organi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsDeleteAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *OrganizationsDeleteAccessApprovalSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsDeleteAccessApprovalSettingsCall) Context(ctx context.Context) *OrganizationsDeleteAccessApprovalSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsDeleteAccessApprovalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1886,12 +1518,7 @@ func (c *OrganizationsDeleteAccessApprovalSettingsCall) Header() http.Header { } func (c *OrganizationsDeleteAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1905,16 +1532,14 @@ func (c *OrganizationsDeleteAccessApprovalSettingsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.deleteAccessApprovalSettings" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1922,17 +1547,17 @@ func (c *OrganizationsDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1945,35 +1570,7 @@ func (c *OrganizationsDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Deletes the settings associated with a project, folder, or organization.\nThis will have the effect of disabling Access Approval for the project,\nfolder, or organization, but only if all ancestors also have Access\nApproval disabled. If Access Approval is enabled at a higher level of the\nhierarchy, then Access Approval will still be enabled at this level as\nthe settings are inherited.", - // "flatPath": "v1beta1/organizations/{organizationsId}/accessApprovalSettings", - // "httpMethod": "DELETE", - // "id": "accessapproval.organizations.deleteAccessApprovalSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the AccessApprovalSettings to delete.", - // "location": "path", - // "pattern": "^organizations/[^/]+/accessApprovalSettings$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.organizations.getAccessApprovalSettings": +} type OrganizationsGetAccessApprovalSettingsCall struct { s *Service @@ -1984,8 +1581,10 @@ type OrganizationsGetAccessApprovalSettingsCall struct { header_ http.Header } -// GetAccessApprovalSettings: Gets the settings associated with a -// project, folder, or organization. +// GetAccessApprovalSettings: Gets the settings associated with a project, +// folder, or organization. +// +// - name: Name of the AccessApprovalSettings to retrieve. func (r *OrganizationsService) GetAccessApprovalSettings(name string) *OrganizationsGetAccessApprovalSettingsCall { c := &OrganizationsGetAccessApprovalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1993,33 +1592,29 @@ func (r *OrganizationsService) GetAccessApprovalSettings(name string) *Organizat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsGetAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *OrganizationsGetAccessApprovalSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsGetAccessApprovalSettingsCall) IfNoneMatch(entityTag string) *OrganizationsGetAccessApprovalSettingsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsGetAccessApprovalSettingsCall) Context(ctx context.Context) *OrganizationsGetAccessApprovalSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsGetAccessApprovalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2028,12 +1623,7 @@ func (c *OrganizationsGetAccessApprovalSettingsCall) Header() http.Header { } func (c *OrganizationsGetAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2050,16 +1640,15 @@ func (c *OrganizationsGetAccessApprovalSettingsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.getAccessApprovalSettings" call. -// Exactly one of *AccessApprovalSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccessApprovalSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccessApprovalSettings.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2067,17 +1656,17 @@ func (c *OrganizationsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccessApprovalSettings{ ServerResponse: googleapi.ServerResponse{ @@ -2090,35 +1679,7 @@ func (c *OrganizationsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Gets the settings associated with a project, folder, or organization.", - // "flatPath": "v1beta1/organizations/{organizationsId}/accessApprovalSettings", - // "httpMethod": "GET", - // "id": "accessapproval.organizations.getAccessApprovalSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the AccessApprovalSettings to retrieve.", - // "location": "path", - // "pattern": "^organizations/[^/]+/accessApprovalSettings$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "AccessApprovalSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.organizations.updateAccessApprovalSettings": +} type OrganizationsUpdateAccessApprovalSettingsCall struct { s *Service @@ -2132,6 +1693,14 @@ type OrganizationsUpdateAccessApprovalSettingsCall struct { // UpdateAccessApprovalSettings: Updates the settings associated with a // project, folder, or organization. // Settings to update are determined by the value of field_mask. +// +// - name: The resource name of the settings. Format is one of: +//
            +//
          1. "projects/{project_id}/accessApprovalSettings"
          2. +//
          3. "folders/{folder_id}/accessApprovalSettings"
          4. +//
          5. "organizations/{organization_id}/accessApprovalSettings"
          6. +// +//
              . func (r *OrganizationsService) UpdateAccessApprovalSettings(name string, accessapprovalsettings *AccessApprovalSettings) *OrganizationsUpdateAccessApprovalSettingsCall { c := &OrganizationsUpdateAccessApprovalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2139,11 +1708,10 @@ func (r *OrganizationsService) UpdateAccessApprovalSettings(name string, accessa return c } -// UpdateMask sets the optional parameter "updateMask": For the -// `FieldMask` definition, +// UpdateMask sets the optional parameter "updateMask": For the `FieldMask` +// definition, // see -// https://developers.google.com/protocol-buffers/docs/reference/goog -// le.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask // If this field is left unset, only the notification_emails field will // be // updated. @@ -2153,23 +1721,21 @@ func (c *OrganizationsUpdateAccessApprovalSettingsCall) UpdateMask(updateMask st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsUpdateAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *OrganizationsUpdateAccessApprovalSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsUpdateAccessApprovalSettingsCall) Context(ctx context.Context) *OrganizationsUpdateAccessApprovalSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsUpdateAccessApprovalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2178,18 +1744,12 @@ func (c *OrganizationsUpdateAccessApprovalSettingsCall) Header() http.Header { } func (c *OrganizationsUpdateAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accessapprovalsettings) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -2202,16 +1762,15 @@ func (c *OrganizationsUpdateAccessApprovalSettingsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.updateAccessApprovalSettings" call. -// Exactly one of *AccessApprovalSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccessApprovalSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccessApprovalSettings.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2219,17 +1778,17 @@ func (c *OrganizationsUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccessApprovalSettings{ ServerResponse: googleapi.ServerResponse{ @@ -2242,44 +1801,7 @@ func (c *OrganizationsUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Updates the settings associated with a project, folder, or organization.\nSettings to update are determined by the value of field_mask.", - // "flatPath": "v1beta1/organizations/{organizationsId}/accessApprovalSettings", - // "httpMethod": "PATCH", - // "id": "accessapproval.organizations.updateAccessApprovalSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the settings. Format is one of:\n\u003col\u003e\n \u003cli\u003e\"projects/{project_id}/accessApprovalSettings\"\u003c/li\u003e\n \u003cli\u003e\"folders/{folder_id}/accessApprovalSettings\"\u003c/li\u003e\n \u003cli\u003e\"organizations/{organization_id}/accessApprovalSettings\"\u003c/li\u003e\n\u003col\u003e", - // "location": "path", - // "pattern": "^organizations/[^/]+/accessApprovalSettings$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "For the `FieldMask` definition, see\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask\nIf this field is left unset, only the notification_emails field will be\nupdated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "AccessApprovalSettings" - // }, - // "response": { - // "$ref": "AccessApprovalSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.organizations.approvalRequests.approve": +} type OrganizationsApprovalRequestsApproveCall struct { s *Service @@ -2293,10 +1815,10 @@ type OrganizationsApprovalRequestsApproveCall struct { // Approve: Approves a request and returns the updated // ApprovalRequest. // -// Returns NOT_FOUND if the request does not exist. -// Returns -// FAILED_PRECONDITION if the request exists but is not in a pending -// state. +// Returns NOT_FOUND if the request does not exist. Returns +// FAILED_PRECONDITION if the request exists but is not in a pending state. +// +// - name: Name of the approval request to approve. func (r *OrganizationsApprovalRequestsService) Approve(name string, approveapprovalrequestmessage *ApproveApprovalRequestMessage) *OrganizationsApprovalRequestsApproveCall { c := &OrganizationsApprovalRequestsApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2305,23 +1827,21 @@ func (r *OrganizationsApprovalRequestsService) Approve(name string, approveappro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsApprovalRequestsApproveCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsApproveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsApprovalRequestsApproveCall) Context(ctx context.Context) *OrganizationsApprovalRequestsApproveCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsApprovalRequestsApproveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2330,18 +1850,12 @@ func (c *OrganizationsApprovalRequestsApproveCall) Header() http.Header { } func (c *OrganizationsApprovalRequestsApproveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.approveapprovalrequestmessage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:approve") @@ -2354,16 +1868,15 @@ func (c *OrganizationsApprovalRequestsApproveCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.approvalRequests.approve" call. -// Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ApprovalRequest.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApprovalRequest.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2371,17 +1884,17 @@ func (c *OrganizationsApprovalRequestsApproveCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApprovalRequest{ ServerResponse: googleapi.ServerResponse{ @@ -2394,38 +1907,7 @@ func (c *OrganizationsApprovalRequestsApproveCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Approves a request and returns the updated ApprovalRequest.\n\nReturns NOT_FOUND if the request does not exist. Returns\nFAILED_PRECONDITION if the request exists but is not in a pending state.", - // "flatPath": "v1beta1/organizations/{organizationsId}/approvalRequests/{approvalRequestsId}:approve", - // "httpMethod": "POST", - // "id": "accessapproval.organizations.approvalRequests.approve", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the approval request to approve.", - // "location": "path", - // "pattern": "^organizations/[^/]+/approvalRequests/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:approve", - // "request": { - // "$ref": "ApproveApprovalRequestMessage" - // }, - // "response": { - // "$ref": "ApprovalRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.organizations.approvalRequests.dismiss": +} type OrganizationsApprovalRequestsDismissCall struct { s *Service @@ -2436,11 +1918,10 @@ type OrganizationsApprovalRequestsDismissCall struct { header_ http.Header } -// Dismiss: Dismisses a request. Returns the updated -// ApprovalRequest. +// Dismiss: Dismisses a request. Returns the updated ApprovalRequest. // -// NOTE: This does not deny access to the resource if another request -// has been +// NOTE: This does not deny access to the resource if another request has +// been // made and approved. It is equivalent in effect to ignoring the // request // altogether. @@ -2450,6 +1931,8 @@ type OrganizationsApprovalRequestsDismissCall struct { // Returns FAILED_PRECONDITION if the request exists but is not in a // pending // state. +// +// - name: Name of the ApprovalRequest to dismiss. func (r *OrganizationsApprovalRequestsService) Dismiss(name string, dismissapprovalrequestmessage *DismissApprovalRequestMessage) *OrganizationsApprovalRequestsDismissCall { c := &OrganizationsApprovalRequestsDismissCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2458,23 +1941,21 @@ func (r *OrganizationsApprovalRequestsService) Dismiss(name string, dismissappro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsApprovalRequestsDismissCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsDismissCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsApprovalRequestsDismissCall) Context(ctx context.Context) *OrganizationsApprovalRequestsDismissCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsApprovalRequestsDismissCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2483,18 +1964,12 @@ func (c *OrganizationsApprovalRequestsDismissCall) Header() http.Header { } func (c *OrganizationsApprovalRequestsDismissCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dismissapprovalrequestmessage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:dismiss") @@ -2507,16 +1982,15 @@ func (c *OrganizationsApprovalRequestsDismissCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.approvalRequests.dismiss" call. -// Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ApprovalRequest.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApprovalRequest.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2524,17 +1998,17 @@ func (c *OrganizationsApprovalRequestsDismissCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApprovalRequest{ ServerResponse: googleapi.ServerResponse{ @@ -2547,38 +2021,7 @@ func (c *OrganizationsApprovalRequestsDismissCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Dismisses a request. Returns the updated ApprovalRequest.\n\nNOTE: This does not deny access to the resource if another request has been\nmade and approved. It is equivalent in effect to ignoring the request\naltogether.\n\nReturns NOT_FOUND if the request does not exist.\n\nReturns FAILED_PRECONDITION if the request exists but is not in a pending\nstate.", - // "flatPath": "v1beta1/organizations/{organizationsId}/approvalRequests/{approvalRequestsId}:dismiss", - // "httpMethod": "POST", - // "id": "accessapproval.organizations.approvalRequests.dismiss", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the ApprovalRequest to dismiss.", - // "location": "path", - // "pattern": "^organizations/[^/]+/approvalRequests/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:dismiss", - // "request": { - // "$ref": "DismissApprovalRequestMessage" - // }, - // "response": { - // "$ref": "ApprovalRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.organizations.approvalRequests.get": +} type OrganizationsApprovalRequestsGetCall struct { s *Service @@ -2589,8 +2032,10 @@ type OrganizationsApprovalRequestsGetCall struct { header_ http.Header } -// Get: Gets an approval request. Returns NOT_FOUND if the request does -// not exist. +// Get: Gets an approval request. Returns NOT_FOUND if the request does not +// exist. +// +// - name: Name of the approval request to retrieve. func (r *OrganizationsApprovalRequestsService) Get(name string) *OrganizationsApprovalRequestsGetCall { c := &OrganizationsApprovalRequestsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2598,33 +2043,29 @@ func (r *OrganizationsApprovalRequestsService) Get(name string) *OrganizationsAp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsApprovalRequestsGetCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsApprovalRequestsGetCall) IfNoneMatch(entityTag string) *OrganizationsApprovalRequestsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsApprovalRequestsGetCall) Context(ctx context.Context) *OrganizationsApprovalRequestsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsApprovalRequestsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2633,12 +2074,7 @@ func (c *OrganizationsApprovalRequestsGetCall) Header() http.Header { } func (c *OrganizationsApprovalRequestsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2655,16 +2091,15 @@ func (c *OrganizationsApprovalRequestsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.approvalRequests.get" call. -// Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ApprovalRequest.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApprovalRequest.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2672,17 +2107,17 @@ func (c *OrganizationsApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApprovalRequest{ ServerResponse: googleapi.ServerResponse{ @@ -2695,35 +2130,7 @@ func (c *OrganizationsApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets an approval request. Returns NOT_FOUND if the request does not exist.", - // "flatPath": "v1beta1/organizations/{organizationsId}/approvalRequests/{approvalRequestsId}", - // "httpMethod": "GET", - // "id": "accessapproval.organizations.approvalRequests.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the approval request to retrieve.", - // "location": "path", - // "pattern": "^organizations/[^/]+/approvalRequests/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "ApprovalRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.organizations.approvalRequests.list": +} type OrganizationsApprovalRequestsListCall struct { s *Service @@ -2736,9 +2143,12 @@ type OrganizationsApprovalRequestsListCall struct { // List: Lists approval requests associated with a project, folder, or // organization. -// Approval requests can be filtered by state (pending, active, -// dismissed). +// Approval requests can be filtered by state (pending, active, dismissed). // The order is reverse chronological. +// +// - parent: The parent resource. This may be +// "projects/{project_id}", +// "folders/{folder_id}", or "organizations/{organization_id}". func (r *OrganizationsApprovalRequestsService) List(parent string) *OrganizationsApprovalRequestsListCall { c := &OrganizationsApprovalRequestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2750,17 +2160,13 @@ func (r *OrganizationsApprovalRequestsService) List(parent string) *Organization // following values: //
                // -//
              1. [not set]: Requests that are pending or have active -// -// approvals.
              2. -// +//
              3. [not set]: Requests that are pending or have active approvals.
              4. //
              5. ALL: All requests.
              6. //
              7. PENDING: Only pending requests.
              8. //
              9. ACTIVE: Only active (i.e. currently approved) requests.
              10. //
              11. DISMISSED: Only dismissed (including expired) requests.
              12. -//
              13. HISTORY: Active and dismissed (including expired) +//
              14. HISTORY: Active and dismissed (including expired) requests.
              15. // -// requests. //
              func (c *OrganizationsApprovalRequestsListCall) Filter(filter string) *OrganizationsApprovalRequestsListCall { c.urlParams_.Set("filter", filter) @@ -2773,41 +2179,37 @@ func (c *OrganizationsApprovalRequestsListCall) PageSize(pageSize int64) *Organi return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying the page of results to return. +// PageToken sets the optional parameter "pageToken": A token identifying the +// page of results to return. func (c *OrganizationsApprovalRequestsListCall) PageToken(pageToken string) *OrganizationsApprovalRequestsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsApprovalRequestsListCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsApprovalRequestsListCall) IfNoneMatch(entityTag string) *OrganizationsApprovalRequestsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsApprovalRequestsListCall) Context(ctx context.Context) *OrganizationsApprovalRequestsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsApprovalRequestsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2816,12 +2218,7 @@ func (c *OrganizationsApprovalRequestsListCall) Header() http.Header { } func (c *OrganizationsApprovalRequestsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2838,16 +2235,15 @@ func (c *OrganizationsApprovalRequestsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.organizations.approvalRequests.list" call. -// Exactly one of *ListApprovalRequestsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListApprovalRequestsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListApprovalRequestsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListApprovalRequestsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2855,17 +2251,17 @@ func (c *OrganizationsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListApprovalRequestsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2878,48 +2274,6 @@ func (c *OrganizationsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists approval requests associated with a project, folder, or organization.\nApproval requests can be filtered by state (pending, active, dismissed).\nThe order is reverse chronological.", - // "flatPath": "v1beta1/organizations/{organizationsId}/approvalRequests", - // "httpMethod": "GET", - // "id": "accessapproval.organizations.approvalRequests.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "A filter on the type of approval requests to retrieve. Must be one of the\nfollowing values:\n\u003col\u003e\n \u003cli\u003e[not set]: Requests that are pending or have active approvals.\u003c/li\u003e\n \u003cli\u003eALL: All requests.\u003c/li\u003e\n \u003cli\u003ePENDING: Only pending requests.\u003c/li\u003e\n \u003cli\u003eACTIVE: Only active (i.e. currently approved) requests.\u003c/li\u003e\n \u003cli\u003eDISMISSED: Only dismissed (including expired) requests.\u003c/li\u003e\n \u003cli\u003eHISTORY: Active and dismissed (including expired) requests.\u003c/li\u003e\n\u003c/ol\u003e", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying the page of results to return.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The parent resource. This may be \"projects/{project_id}\",\n\"folders/{folder_id}\", or \"organizations/{organization_id}\".", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/approvalRequests", - // "response": { - // "$ref": "ListApprovalRequestsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2927,7 +2281,7 @@ func (c *OrganizationsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *OrganizationsApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListApprovalRequestsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2943,8 +2297,6 @@ func (c *OrganizationsApprovalRequestsListCall) Pages(ctx context.Context, f fun } } -// method id "accessapproval.projects.deleteAccessApprovalSettings": - type ProjectsDeleteAccessApprovalSettingsCall struct { s *Service name string @@ -2957,13 +2309,13 @@ type ProjectsDeleteAccessApprovalSettingsCall struct { // project, folder, or organization. // This will have the effect of disabling Access Approval for the // project, -// folder, or organization, but only if all ancestors also have -// Access +// folder, or organization, but only if all ancestors also have Access // Approval disabled. If Access Approval is enabled at a higher level of // the -// hierarchy, then Access Approval will still be enabled at this level -// as +// hierarchy, then Access Approval will still be enabled at this level as // the settings are inherited. +// +// - name: Name of the AccessApprovalSettings to delete. func (r *ProjectsService) DeleteAccessApprovalSettings(name string) *ProjectsDeleteAccessApprovalSettingsCall { c := &ProjectsDeleteAccessApprovalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2971,23 +2323,21 @@ func (r *ProjectsService) DeleteAccessApprovalSettings(name string) *ProjectsDel } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsDeleteAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *ProjectsDeleteAccessApprovalSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsDeleteAccessApprovalSettingsCall) Context(ctx context.Context) *ProjectsDeleteAccessApprovalSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsDeleteAccessApprovalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2996,12 +2346,7 @@ func (c *ProjectsDeleteAccessApprovalSettingsCall) Header() http.Header { } func (c *ProjectsDeleteAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3015,16 +2360,14 @@ func (c *ProjectsDeleteAccessApprovalSettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.deleteAccessApprovalSettings" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3032,17 +2375,17 @@ func (c *ProjectsDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -3055,35 +2398,7 @@ func (c *ProjectsDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Deletes the settings associated with a project, folder, or organization.\nThis will have the effect of disabling Access Approval for the project,\nfolder, or organization, but only if all ancestors also have Access\nApproval disabled. If Access Approval is enabled at a higher level of the\nhierarchy, then Access Approval will still be enabled at this level as\nthe settings are inherited.", - // "flatPath": "v1beta1/projects/{projectsId}/accessApprovalSettings", - // "httpMethod": "DELETE", - // "id": "accessapproval.projects.deleteAccessApprovalSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the AccessApprovalSettings to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/accessApprovalSettings$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.projects.getAccessApprovalSettings": +} type ProjectsGetAccessApprovalSettingsCall struct { s *Service @@ -3094,8 +2409,10 @@ type ProjectsGetAccessApprovalSettingsCall struct { header_ http.Header } -// GetAccessApprovalSettings: Gets the settings associated with a -// project, folder, or organization. +// GetAccessApprovalSettings: Gets the settings associated with a project, +// folder, or organization. +// +// - name: Name of the AccessApprovalSettings to retrieve. func (r *ProjectsService) GetAccessApprovalSettings(name string) *ProjectsGetAccessApprovalSettingsCall { c := &ProjectsGetAccessApprovalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3103,33 +2420,29 @@ func (r *ProjectsService) GetAccessApprovalSettings(name string) *ProjectsGetAcc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *ProjectsGetAccessApprovalSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetAccessApprovalSettingsCall) IfNoneMatch(entityTag string) *ProjectsGetAccessApprovalSettingsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetAccessApprovalSettingsCall) Context(ctx context.Context) *ProjectsGetAccessApprovalSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetAccessApprovalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3138,12 +2451,7 @@ func (c *ProjectsGetAccessApprovalSettingsCall) Header() http.Header { } func (c *ProjectsGetAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3160,16 +2468,15 @@ func (c *ProjectsGetAccessApprovalSettingsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.getAccessApprovalSettings" call. -// Exactly one of *AccessApprovalSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccessApprovalSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccessApprovalSettings.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3177,17 +2484,17 @@ func (c *ProjectsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccessApprovalSettings{ ServerResponse: googleapi.ServerResponse{ @@ -3200,35 +2507,7 @@ func (c *ProjectsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets the settings associated with a project, folder, or organization.", - // "flatPath": "v1beta1/projects/{projectsId}/accessApprovalSettings", - // "httpMethod": "GET", - // "id": "accessapproval.projects.getAccessApprovalSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the AccessApprovalSettings to retrieve.", - // "location": "path", - // "pattern": "^projects/[^/]+/accessApprovalSettings$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "AccessApprovalSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.projects.updateAccessApprovalSettings": +} type ProjectsUpdateAccessApprovalSettingsCall struct { s *Service @@ -3242,6 +2521,14 @@ type ProjectsUpdateAccessApprovalSettingsCall struct { // UpdateAccessApprovalSettings: Updates the settings associated with a // project, folder, or organization. // Settings to update are determined by the value of field_mask. +// +// - name: The resource name of the settings. Format is one of: +//
                +//
              1. "projects/{project_id}/accessApprovalSettings"
              2. +//
              3. "folders/{folder_id}/accessApprovalSettings"
              4. +//
              5. "organizations/{organization_id}/accessApprovalSettings"
              6. +// +//
                  . func (r *ProjectsService) UpdateAccessApprovalSettings(name string, accessapprovalsettings *AccessApprovalSettings) *ProjectsUpdateAccessApprovalSettingsCall { c := &ProjectsUpdateAccessApprovalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3249,11 +2536,10 @@ func (r *ProjectsService) UpdateAccessApprovalSettings(name string, accessapprov return c } -// UpdateMask sets the optional parameter "updateMask": For the -// `FieldMask` definition, +// UpdateMask sets the optional parameter "updateMask": For the `FieldMask` +// definition, // see -// https://developers.google.com/protocol-buffers/docs/reference/goog -// le.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask // If this field is left unset, only the notification_emails field will // be // updated. @@ -3263,23 +2549,21 @@ func (c *ProjectsUpdateAccessApprovalSettingsCall) UpdateMask(updateMask string) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsUpdateAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *ProjectsUpdateAccessApprovalSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsUpdateAccessApprovalSettingsCall) Context(ctx context.Context) *ProjectsUpdateAccessApprovalSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsUpdateAccessApprovalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3288,18 +2572,12 @@ func (c *ProjectsUpdateAccessApprovalSettingsCall) Header() http.Header { } func (c *ProjectsUpdateAccessApprovalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accessapprovalsettings) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -3312,16 +2590,15 @@ func (c *ProjectsUpdateAccessApprovalSettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.updateAccessApprovalSettings" call. -// Exactly one of *AccessApprovalSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccessApprovalSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccessApprovalSettings.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3329,17 +2606,17 @@ func (c *ProjectsUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccessApprovalSettings{ ServerResponse: googleapi.ServerResponse{ @@ -3352,44 +2629,7 @@ func (c *ProjectsUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Updates the settings associated with a project, folder, or organization.\nSettings to update are determined by the value of field_mask.", - // "flatPath": "v1beta1/projects/{projectsId}/accessApprovalSettings", - // "httpMethod": "PATCH", - // "id": "accessapproval.projects.updateAccessApprovalSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the settings. Format is one of:\n\u003col\u003e\n \u003cli\u003e\"projects/{project_id}/accessApprovalSettings\"\u003c/li\u003e\n \u003cli\u003e\"folders/{folder_id}/accessApprovalSettings\"\u003c/li\u003e\n \u003cli\u003e\"organizations/{organization_id}/accessApprovalSettings\"\u003c/li\u003e\n\u003col\u003e", - // "location": "path", - // "pattern": "^projects/[^/]+/accessApprovalSettings$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "For the `FieldMask` definition, see\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask\nIf this field is left unset, only the notification_emails field will be\nupdated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "AccessApprovalSettings" - // }, - // "response": { - // "$ref": "AccessApprovalSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.projects.approvalRequests.approve": +} type ProjectsApprovalRequestsApproveCall struct { s *Service @@ -3403,10 +2643,10 @@ type ProjectsApprovalRequestsApproveCall struct { // Approve: Approves a request and returns the updated // ApprovalRequest. // -// Returns NOT_FOUND if the request does not exist. -// Returns -// FAILED_PRECONDITION if the request exists but is not in a pending -// state. +// Returns NOT_FOUND if the request does not exist. Returns +// FAILED_PRECONDITION if the request exists but is not in a pending state. +// +// - name: Name of the approval request to approve. func (r *ProjectsApprovalRequestsService) Approve(name string, approveapprovalrequestmessage *ApproveApprovalRequestMessage) *ProjectsApprovalRequestsApproveCall { c := &ProjectsApprovalRequestsApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3415,23 +2655,21 @@ func (r *ProjectsApprovalRequestsService) Approve(name string, approveapprovalre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsApprovalRequestsApproveCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsApproveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsApprovalRequestsApproveCall) Context(ctx context.Context) *ProjectsApprovalRequestsApproveCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsApprovalRequestsApproveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3440,18 +2678,12 @@ func (c *ProjectsApprovalRequestsApproveCall) Header() http.Header { } func (c *ProjectsApprovalRequestsApproveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.approveapprovalrequestmessage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:approve") @@ -3464,16 +2696,15 @@ func (c *ProjectsApprovalRequestsApproveCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.approvalRequests.approve" call. -// Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ApprovalRequest.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApprovalRequest.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3481,17 +2712,17 @@ func (c *ProjectsApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApprovalRequest{ ServerResponse: googleapi.ServerResponse{ @@ -3504,38 +2735,7 @@ func (c *ProjectsApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Approves a request and returns the updated ApprovalRequest.\n\nReturns NOT_FOUND if the request does not exist. Returns\nFAILED_PRECONDITION if the request exists but is not in a pending state.", - // "flatPath": "v1beta1/projects/{projectsId}/approvalRequests/{approvalRequestsId}:approve", - // "httpMethod": "POST", - // "id": "accessapproval.projects.approvalRequests.approve", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the approval request to approve.", - // "location": "path", - // "pattern": "^projects/[^/]+/approvalRequests/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:approve", - // "request": { - // "$ref": "ApproveApprovalRequestMessage" - // }, - // "response": { - // "$ref": "ApprovalRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.projects.approvalRequests.dismiss": +} type ProjectsApprovalRequestsDismissCall struct { s *Service @@ -3546,11 +2746,10 @@ type ProjectsApprovalRequestsDismissCall struct { header_ http.Header } -// Dismiss: Dismisses a request. Returns the updated -// ApprovalRequest. +// Dismiss: Dismisses a request. Returns the updated ApprovalRequest. // -// NOTE: This does not deny access to the resource if another request -// has been +// NOTE: This does not deny access to the resource if another request has +// been // made and approved. It is equivalent in effect to ignoring the // request // altogether. @@ -3560,6 +2759,8 @@ type ProjectsApprovalRequestsDismissCall struct { // Returns FAILED_PRECONDITION if the request exists but is not in a // pending // state. +// +// - name: Name of the ApprovalRequest to dismiss. func (r *ProjectsApprovalRequestsService) Dismiss(name string, dismissapprovalrequestmessage *DismissApprovalRequestMessage) *ProjectsApprovalRequestsDismissCall { c := &ProjectsApprovalRequestsDismissCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3568,23 +2769,21 @@ func (r *ProjectsApprovalRequestsService) Dismiss(name string, dismissapprovalre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsApprovalRequestsDismissCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsDismissCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsApprovalRequestsDismissCall) Context(ctx context.Context) *ProjectsApprovalRequestsDismissCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsApprovalRequestsDismissCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3593,18 +2792,12 @@ func (c *ProjectsApprovalRequestsDismissCall) Header() http.Header { } func (c *ProjectsApprovalRequestsDismissCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dismissapprovalrequestmessage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:dismiss") @@ -3617,16 +2810,15 @@ func (c *ProjectsApprovalRequestsDismissCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.approvalRequests.dismiss" call. -// Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ApprovalRequest.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApprovalRequest.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3634,17 +2826,17 @@ func (c *ProjectsApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApprovalRequest{ ServerResponse: googleapi.ServerResponse{ @@ -3657,38 +2849,7 @@ func (c *ProjectsApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Dismisses a request. Returns the updated ApprovalRequest.\n\nNOTE: This does not deny access to the resource if another request has been\nmade and approved. It is equivalent in effect to ignoring the request\naltogether.\n\nReturns NOT_FOUND if the request does not exist.\n\nReturns FAILED_PRECONDITION if the request exists but is not in a pending\nstate.", - // "flatPath": "v1beta1/projects/{projectsId}/approvalRequests/{approvalRequestsId}:dismiss", - // "httpMethod": "POST", - // "id": "accessapproval.projects.approvalRequests.dismiss", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the ApprovalRequest to dismiss.", - // "location": "path", - // "pattern": "^projects/[^/]+/approvalRequests/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:dismiss", - // "request": { - // "$ref": "DismissApprovalRequestMessage" - // }, - // "response": { - // "$ref": "ApprovalRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.projects.approvalRequests.get": +} type ProjectsApprovalRequestsGetCall struct { s *Service @@ -3699,8 +2860,10 @@ type ProjectsApprovalRequestsGetCall struct { header_ http.Header } -// Get: Gets an approval request. Returns NOT_FOUND if the request does -// not exist. +// Get: Gets an approval request. Returns NOT_FOUND if the request does not +// exist. +// +// - name: Name of the approval request to retrieve. func (r *ProjectsApprovalRequestsService) Get(name string) *ProjectsApprovalRequestsGetCall { c := &ProjectsApprovalRequestsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3708,33 +2871,29 @@ func (r *ProjectsApprovalRequestsService) Get(name string) *ProjectsApprovalRequ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsApprovalRequestsGetCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsApprovalRequestsGetCall) IfNoneMatch(entityTag string) *ProjectsApprovalRequestsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsApprovalRequestsGetCall) Context(ctx context.Context) *ProjectsApprovalRequestsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsApprovalRequestsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3743,12 +2902,7 @@ func (c *ProjectsApprovalRequestsGetCall) Header() http.Header { } func (c *ProjectsApprovalRequestsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3765,16 +2919,15 @@ func (c *ProjectsApprovalRequestsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.approvalRequests.get" call. -// Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ApprovalRequest.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApprovalRequest.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3782,17 +2935,17 @@ func (c *ProjectsApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*App if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApprovalRequest{ ServerResponse: googleapi.ServerResponse{ @@ -3805,35 +2958,7 @@ func (c *ProjectsApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*App return nil, err } return ret, nil - // { - // "description": "Gets an approval request. Returns NOT_FOUND if the request does not exist.", - // "flatPath": "v1beta1/projects/{projectsId}/approvalRequests/{approvalRequestsId}", - // "httpMethod": "GET", - // "id": "accessapproval.projects.approvalRequests.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the approval request to retrieve.", - // "location": "path", - // "pattern": "^projects/[^/]+/approvalRequests/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "ApprovalRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accessapproval.projects.approvalRequests.list": +} type ProjectsApprovalRequestsListCall struct { s *Service @@ -3846,9 +2971,12 @@ type ProjectsApprovalRequestsListCall struct { // List: Lists approval requests associated with a project, folder, or // organization. -// Approval requests can be filtered by state (pending, active, -// dismissed). +// Approval requests can be filtered by state (pending, active, dismissed). // The order is reverse chronological. +// +// - parent: The parent resource. This may be +// "projects/{project_id}", +// "folders/{folder_id}", or "organizations/{organization_id}". func (r *ProjectsApprovalRequestsService) List(parent string) *ProjectsApprovalRequestsListCall { c := &ProjectsApprovalRequestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3860,17 +2988,13 @@ func (r *ProjectsApprovalRequestsService) List(parent string) *ProjectsApprovalR // following values: //
                    // -//
                  1. [not set]: Requests that are pending or have active -// -// approvals.
                  2. -// +//
                  3. [not set]: Requests that are pending or have active approvals.
                  4. //
                  5. ALL: All requests.
                  6. //
                  7. PENDING: Only pending requests.
                  8. //
                  9. ACTIVE: Only active (i.e. currently approved) requests.
                  10. //
                  11. DISMISSED: Only dismissed (including expired) requests.
                  12. -//
                  13. HISTORY: Active and dismissed (including expired) +//
                  14. HISTORY: Active and dismissed (including expired) requests.
                  15. // -// requests. //
                  func (c *ProjectsApprovalRequestsListCall) Filter(filter string) *ProjectsApprovalRequestsListCall { c.urlParams_.Set("filter", filter) @@ -3883,41 +3007,37 @@ func (c *ProjectsApprovalRequestsListCall) PageSize(pageSize int64) *ProjectsApp return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying the page of results to return. +// PageToken sets the optional parameter "pageToken": A token identifying the +// page of results to return. func (c *ProjectsApprovalRequestsListCall) PageToken(pageToken string) *ProjectsApprovalRequestsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsApprovalRequestsListCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsApprovalRequestsListCall) IfNoneMatch(entityTag string) *ProjectsApprovalRequestsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsApprovalRequestsListCall) Context(ctx context.Context) *ProjectsApprovalRequestsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsApprovalRequestsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3926,12 +3046,7 @@ func (c *ProjectsApprovalRequestsListCall) Header() http.Header { } func (c *ProjectsApprovalRequestsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3948,16 +3063,15 @@ func (c *ProjectsApprovalRequestsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accessapproval.projects.approvalRequests.list" call. -// Exactly one of *ListApprovalRequestsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListApprovalRequestsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListApprovalRequestsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListApprovalRequestsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3965,17 +3079,17 @@ func (c *ProjectsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*Li if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListApprovalRequestsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3988,48 +3102,6 @@ func (c *ProjectsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*Li return nil, err } return ret, nil - // { - // "description": "Lists approval requests associated with a project, folder, or organization.\nApproval requests can be filtered by state (pending, active, dismissed).\nThe order is reverse chronological.", - // "flatPath": "v1beta1/projects/{projectsId}/approvalRequests", - // "httpMethod": "GET", - // "id": "accessapproval.projects.approvalRequests.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "A filter on the type of approval requests to retrieve. Must be one of the\nfollowing values:\n\u003col\u003e\n \u003cli\u003e[not set]: Requests that are pending or have active approvals.\u003c/li\u003e\n \u003cli\u003eALL: All requests.\u003c/li\u003e\n \u003cli\u003ePENDING: Only pending requests.\u003c/li\u003e\n \u003cli\u003eACTIVE: Only active (i.e. currently approved) requests.\u003c/li\u003e\n \u003cli\u003eDISMISSED: Only dismissed (including expired) requests.\u003c/li\u003e\n \u003cli\u003eHISTORY: Active and dismissed (including expired) requests.\u003c/li\u003e\n\u003c/ol\u003e", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying the page of results to return.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The parent resource. This may be \"projects/{project_id}\",\n\"folders/{folder_id}\", or \"organizations/{organization_id}\".", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/approvalRequests", - // "response": { - // "$ref": "ListApprovalRequestsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -4037,7 +3109,7 @@ func (c *ProjectsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*Li // The provided context supersedes any context provided to the Context method. func (c *ProjectsApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListApprovalRequestsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index 5d1666f046d..a7d3739c01f 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -2530,7 +2530,7 @@ func (c *AccessPoliciesCreateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.create" call. @@ -2628,7 +2628,7 @@ func (c *AccessPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.delete" call. @@ -2736,7 +2736,7 @@ func (c *AccessPoliciesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.get" call. @@ -2840,7 +2840,7 @@ func (c *AccessPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.getIamPolicy" call. @@ -2962,7 +2962,7 @@ func (c *AccessPoliciesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.list" call. @@ -3095,7 +3095,7 @@ func (c *AccessPoliciesPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.patch" call. @@ -3201,7 +3201,7 @@ func (c *AccessPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.setIamPolicy" call. @@ -3308,7 +3308,7 @@ func (c *AccessPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.testIamPermissions" call. @@ -3414,7 +3414,7 @@ func (c *AccessPoliciesAccessLevelsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.create" call. @@ -3512,7 +3512,7 @@ func (c *AccessPoliciesAccessLevelsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.delete" call. @@ -3642,7 +3642,7 @@ func (c *AccessPoliciesAccessLevelsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.get" call. @@ -3784,7 +3784,7 @@ func (c *AccessPoliciesAccessLevelsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.list" call. @@ -3921,7 +3921,7 @@ func (c *AccessPoliciesAccessLevelsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.patch" call. @@ -4030,7 +4030,7 @@ func (c *AccessPoliciesAccessLevelsReplaceAllCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.replaceAll" call. @@ -4137,7 +4137,7 @@ func (c *AccessPoliciesAccessLevelsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.testIamPermissions" call. @@ -4244,7 +4244,7 @@ func (c *AccessPoliciesAuthorizedOrgsDescsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.authorizedOrgsDescs.create" call. @@ -4342,7 +4342,7 @@ func (c *AccessPoliciesAuthorizedOrgsDescsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.authorizedOrgsDescs.delete" call. @@ -4450,7 +4450,7 @@ func (c *AccessPoliciesAuthorizedOrgsDescsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.authorizedOrgsDescs.get" call. @@ -4574,7 +4574,7 @@ func (c *AccessPoliciesAuthorizedOrgsDescsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.authorizedOrgsDescs.list" call. @@ -4713,7 +4713,7 @@ func (c *AccessPoliciesAuthorizedOrgsDescsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.authorizedOrgsDescs.patch" call. @@ -4826,7 +4826,7 @@ func (c *AccessPoliciesServicePerimetersCommitCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.commit" call. @@ -4931,7 +4931,7 @@ func (c *AccessPoliciesServicePerimetersCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.create" call. @@ -5029,7 +5029,7 @@ func (c *AccessPoliciesServicePerimetersDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.delete" call. @@ -5137,7 +5137,7 @@ func (c *AccessPoliciesServicePerimetersGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.get" call. @@ -5261,7 +5261,7 @@ func (c *AccessPoliciesServicePerimetersListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.list" call. @@ -5398,7 +5398,7 @@ func (c *AccessPoliciesServicePerimetersPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.patch" call. @@ -5506,7 +5506,7 @@ func (c *AccessPoliciesServicePerimetersReplaceAllCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.replaceAll" call. @@ -5613,7 +5613,7 @@ func (c *AccessPoliciesServicePerimetersTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.testIamPermissions" call. @@ -5723,7 +5723,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.operations.cancel" call. @@ -5821,7 +5821,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.operations.delete" call. @@ -5930,7 +5930,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.operations.get" call. @@ -6058,7 +6058,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.operations.list" call. @@ -6185,7 +6185,7 @@ func (c *OrganizationsGcpUserAccessBindingsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.organizations.gcpUserAccessBindings.create" call. @@ -6282,7 +6282,7 @@ func (c *OrganizationsGcpUserAccessBindingsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.organizations.gcpUserAccessBindings.delete" call. @@ -6389,7 +6389,7 @@ func (c *OrganizationsGcpUserAccessBindingsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.organizations.gcpUserAccessBindings.get" call. @@ -6513,7 +6513,7 @@ func (c *OrganizationsGcpUserAccessBindingsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.organizations.gcpUserAccessBindings.list" call. @@ -6653,7 +6653,7 @@ func (c *OrganizationsGcpUserAccessBindingsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.organizations.gcpUserAccessBindings.patch" call. @@ -6762,7 +6762,7 @@ func (c *ServicesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.services.get" call. @@ -6877,7 +6877,7 @@ func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.services.list" call. diff --git a/accesscontextmanager/v1beta/accesscontextmanager-gen.go b/accesscontextmanager/v1beta/accesscontextmanager-gen.go index c87b38a3a74..6796cc2cf17 100644 --- a/accesscontextmanager/v1beta/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1beta/accesscontextmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -90,12 +90,13 @@ const apiId = "accesscontextmanager:v1beta" const apiName = "accesscontextmanager" const apiVersion = "v1beta" const basePath = "https://accesscontextmanager.googleapis.com/" +const basePathTemplate = "https://accesscontextmanager.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://accesscontextmanager.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -107,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -196,577 +199,455 @@ type OperationsService struct { s *Service } -// AccessContextManagerOperationMetadata: Metadata of Access Context -// Manager's Long Running Operations. +// AccessContextManagerOperationMetadata: Metadata of Access Context Manager's +// Long Running Operations. type AccessContextManagerOperationMetadata struct { } -// AccessLevel: An `AccessLevel` is a label that can be applied to -// requests to Google Cloud services, along with a list of requirements -// necessary for the label to be applied. +// AccessLevel: An `AccessLevel` is a label that can be applied to requests to +// Google Cloud services, along with a list of requirements necessary for the +// label to be applied. type AccessLevel struct { // Basic: A `BasicLevel` composed of `Conditions`. Basic *BasicLevel `json:"basic,omitempty"` - // Custom: A `CustomLevel` written in the Common Expression Language. Custom *CustomLevel `json:"custom,omitempty"` - - // Description: Description of the `AccessLevel` and its use. Does not - // affect behavior. + // Description: Description of the `AccessLevel` and its use. Does not affect + // behavior. Description string `json:"description,omitempty"` - // Name: Resource name for the `AccessLevel`. Format: // `accessPolicies/{access_policy}/accessLevels/{access_level}`. The - // `access_level` component must begin with a letter, followed by - // alphanumeric characters or `_`. Its maximum length is 50 characters. - // After you create an `AccessLevel`, you cannot change its `name`. + // `access_level` component must begin with a letter, followed by alphanumeric + // characters or `_`. Its maximum length is 50 characters. After you create an + // `AccessLevel`, you cannot change its `name`. Name string `json:"name,omitempty"` - // Title: Human readable title. Must be unique within the Policy. Title string `json:"title,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Basic") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Basic") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Basic") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccessLevel) MarshalJSON() ([]byte, error) { +func (s AccessLevel) MarshalJSON() ([]byte, error) { type NoMethod AccessLevel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccessPolicy: `AccessPolicy` is a container for `AccessLevels` (which -// define the necessary attributes to use Google Cloud services) and -// `ServicePerimeters` (which define regions of services able to freely -// pass data within a perimeter). An access policy is globally visible -// within an organization, and the restrictions it specifies apply to -// all projects within an organization. +// AccessPolicy: `AccessPolicy` is a container for `AccessLevels` (which define +// the necessary attributes to use Google Cloud services) and +// `ServicePerimeters` (which define regions of services able to freely pass +// data within a perimeter). An access policy is globally visible within an +// organization, and the restrictions it specifies apply to all projects within +// an organization. type AccessPolicy struct { // Name: Output only. Resource name of the `AccessPolicy`. Format: // `accessPolicies/{policy_id}` Name string `json:"name,omitempty"` - - // Parent: Required. The parent of this `AccessPolicy` in the Cloud - // Resource Hierarchy. Currently immutable once created. Format: + // Parent: Required. The parent of this `AccessPolicy` in the Cloud Resource + // Hierarchy. Currently immutable once created. Format: // `organizations/{organization_id}` Parent string `json:"parent,omitempty"` - // Title: Required. Human readable title. Does not affect behavior. Title string `json:"title,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccessPolicy) MarshalJSON() ([]byte, error) { +func (s AccessPolicy) MarshalJSON() ([]byte, error) { type NoMethod AccessPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BasicLevel: `BasicLevel` is an `AccessLevel` using a set of -// recommended features. +// BasicLevel: `BasicLevel` is an `AccessLevel` using a set of recommended +// features. type BasicLevel struct { - // CombiningFunction: How the `conditions` list should be combined to - // determine if a request is granted this `AccessLevel`. If AND is used, - // each `Condition` in `conditions` must be satisfied for the - // `AccessLevel` to be applied. If OR is used, at least one `Condition` - // in `conditions` must be satisfied for the `AccessLevel` to be - // applied. Default behavior is AND. + // CombiningFunction: How the `conditions` list should be combined to determine + // if a request is granted this `AccessLevel`. If AND is used, each `Condition` + // in `conditions` must be satisfied for the `AccessLevel` to be applied. If OR + // is used, at least one `Condition` in `conditions` must be satisfied for the + // `AccessLevel` to be applied. Default behavior is AND. // // Possible values: - // "AND" - All `Conditions` must be true for the `BasicLevel` to be - // true. - // "OR" - If at least one `Condition` is true, then the `BasicLevel` - // is true. + // "AND" - All `Conditions` must be true for the `BasicLevel` to be true. + // "OR" - If at least one `Condition` is true, then the `BasicLevel` is true. CombiningFunction string `json:"combiningFunction,omitempty"` - - // Conditions: Required. A list of requirements for the `AccessLevel` to - // be granted. + // Conditions: Required. A list of requirements for the `AccessLevel` to be + // granted. Conditions []*Condition `json:"conditions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CombiningFunction") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CombiningFunction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CombiningFunction") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CombiningFunction") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BasicLevel) MarshalJSON() ([]byte, error) { +func (s BasicLevel) MarshalJSON() ([]byte, error) { type NoMethod BasicLevel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Condition: A condition necessary for an `AccessLevel` to be granted. -// The Condition is an AND over its fields. So a Condition is true if: -// 1) the request IP is from one of the listed subnetworks AND 2) the -// originating device complies with the listed device policy AND 3) all -// listed access levels are granted AND 4) the request was sent at a -// time allowed by the DateTimeRestriction. +// Condition: A condition necessary for an `AccessLevel` to be granted. The +// Condition is an AND over its fields. So a Condition is true if: 1) the +// request IP is from one of the listed subnetworks AND 2) the originating +// device complies with the listed device policy AND 3) all listed access +// levels are granted AND 4) the request was sent at a time allowed by the +// DateTimeRestriction. type Condition struct { - // DevicePolicy: Device specific restrictions, all restrictions must - // hold for the Condition to be true. If not specified, all devices are - // allowed. + // DevicePolicy: Device specific restrictions, all restrictions must hold for + // the Condition to be true. If not specified, all devices are allowed. DevicePolicy *DevicePolicy `json:"devicePolicy,omitempty"` - - // IpSubnetworks: CIDR block IP subnetwork specification. May be IPv4 or - // IPv6. Note that for a CIDR IP address block, the specified IP address - // portion must be properly truncated (i.e. all the host bits must be - // zero) or the input is considered malformed. For example, - // "192.0.2.0/24" is accepted but "192.0.2.1/24" is not. Similarly, for - // IPv6, "2001:db8::/32" is accepted whereas "2001:db8::1/32" is not. - // The originating IP of a request must be in one of the listed subnets - // in order for this Condition to be true. If empty, all IP addresses - // are allowed. + // IpSubnetworks: CIDR block IP subnetwork specification. May be IPv4 or IPv6. + // Note that for a CIDR IP address block, the specified IP address portion must + // be properly truncated (i.e. all the host bits must be zero) or the input is + // considered malformed. For example, "192.0.2.0/24" is accepted but + // "192.0.2.1/24" is not. Similarly, for IPv6, "2001:db8::/32" is accepted + // whereas "2001:db8::1/32" is not. The originating IP of a request must be in + // one of the listed subnets in order for this Condition to be true. If empty, + // all IP addresses are allowed. IpSubnetworks []string `json:"ipSubnetworks,omitempty"` - - // Members: The request must be made by one of the provided user or - // service accounts. Groups are not supported. Syntax: `user:{emailid}` - // `serviceAccount:{emailid}` If not specified, a request may come from - // any user. + // Members: The request must be made by one of the provided user or service + // accounts. Groups are not supported. Syntax: `user:{emailid}` + // `serviceAccount:{emailid}` If not specified, a request may come from any + // user. Members []string `json:"members,omitempty"` - - // Negate: Whether to negate the Condition. If true, the Condition - // becomes a NAND over its non-empty fields. Any non-empty field - // criteria evaluating to false will result in the Condition to be - // satisfied. Defaults to false. + // Negate: Whether to negate the Condition. If true, the Condition becomes a + // NAND over its non-empty fields. Any non-empty field criteria evaluating to + // false will result in the Condition to be satisfied. Defaults to false. Negate bool `json:"negate,omitempty"` - // Regions: The request must originate from one of the provided // countries/regions. Must be valid ISO 3166-1 alpha-2 codes. Regions []string `json:"regions,omitempty"` - - // RequiredAccessLevels: A list of other access levels defined in the - // same `Policy`, referenced by resource name. Referencing an - // `AccessLevel` which does not exist is an error. All access levels - // listed must be granted for the Condition to be true. Example: + // RequiredAccessLevels: A list of other access levels defined in the same + // `Policy`, referenced by resource name. Referencing an `AccessLevel` which + // does not exist is an error. All access levels listed must be granted for the + // Condition to be true. Example: // "accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME" RequiredAccessLevels []string `json:"requiredAccessLevels,omitempty"` - // ForceSendFields is a list of field names (e.g. "DevicePolicy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DevicePolicy") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DevicePolicy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Condition) MarshalJSON() ([]byte, error) { +func (s Condition) MarshalJSON() ([]byte, error) { type NoMethod Condition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomLevel: `CustomLevel` is an `AccessLevel` using the Cloud Common -// Expression Language to represent the necessary conditions for the -// level to apply to a request. See CEL spec at: -// https://github.com/google/cel-spec +// Expression Language to represent the necessary conditions for the level to +// apply to a request. See CEL spec at: https://github.com/google/cel-spec type CustomLevel struct { // Expr: Required. A Cloud CEL expression evaluating to a boolean. Expr *Expr `json:"expr,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Expr") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Expr") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expr") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expr") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomLevel) MarshalJSON() ([]byte, error) { +func (s CustomLevel) MarshalJSON() ([]byte, error) { type NoMethod CustomLevel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DevicePolicy: `DevicePolicy` specifies device specific restrictions // necessary to acquire a given access level. A `DevicePolicy` specifies -// requirements for requests from devices to be granted access levels, -// it does not do any enforcement on the device. `DevicePolicy` acts as -// an AND over all specified fields, and each repeated field is an OR -// over its elements. Any unset fields are ignored. For example, if the -// proto is { os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX, -// encryption_status: ENCRYPTED}, then the DevicePolicy will be true for -// requests originating from encrypted Linux desktops and encrypted -// Windows desktops. +// requirements for requests from devices to be granted access levels, it does +// not do any enforcement on the device. `DevicePolicy` acts as an AND over all +// specified fields, and each repeated field is an OR over its elements. Any +// unset fields are ignored. For example, if the proto is { os_type : +// DESKTOP_WINDOWS, os_type : DESKTOP_LINUX, encryption_status: ENCRYPTED}, +// then the DevicePolicy will be true for requests originating from encrypted +// Linux desktops and encrypted Windows desktops. type DevicePolicy struct { - // AllowedDeviceManagementLevels: Allowed device management levels, an - // empty list allows all management levels. + // AllowedDeviceManagementLevels: Allowed device management levels, an empty + // list allows all management levels. // // Possible values: - // "MANAGEMENT_UNSPECIFIED" - The device's management level is not - // specified or not known. + // "MANAGEMENT_UNSPECIFIED" - The device's management level is not specified + // or not known. // "NONE" - The device is not managed. - // "BASIC" - Basic management is enabled, which is generally limited - // to monitoring and wiping the corporate account. - // "COMPLETE" - Complete device management. This includes more - // thorough monitoring and the ability to directly manage the device - // (such as remote wiping). This can be enabled through the Android - // Enterprise Platform. + // "BASIC" - Basic management is enabled, which is generally limited to + // monitoring and wiping the corporate account. + // "COMPLETE" - Complete device management. This includes more thorough + // monitoring and the ability to directly manage the device (such as remote + // wiping). This can be enabled through the Android Enterprise Platform. AllowedDeviceManagementLevels []string `json:"allowedDeviceManagementLevels,omitempty"` - - // AllowedEncryptionStatuses: Allowed encryptions statuses, an empty - // list allows all statuses. + // AllowedEncryptionStatuses: Allowed encryptions statuses, an empty list + // allows all statuses. // // Possible values: - // "ENCRYPTION_UNSPECIFIED" - The encryption status of the device is - // not specified or not known. + // "ENCRYPTION_UNSPECIFIED" - The encryption status of the device is not + // specified or not known. // "ENCRYPTION_UNSUPPORTED" - The device does not support encryption. // "UNENCRYPTED" - The device supports encryption, but is currently // unencrypted. // "ENCRYPTED" - The device is encrypted. AllowedEncryptionStatuses []string `json:"allowedEncryptionStatuses,omitempty"` - - // OsConstraints: Allowed OS versions, an empty list allows all types - // and all versions. + // OsConstraints: Allowed OS versions, an empty list allows all types and all + // versions. OsConstraints []*OsConstraint `json:"osConstraints,omitempty"` - // RequireAdminApproval: Whether the device needs to be approved by the // customer admin. RequireAdminApproval bool `json:"requireAdminApproval,omitempty"` - // RequireCorpOwned: Whether the device needs to be corp owned. RequireCorpOwned bool `json:"requireCorpOwned,omitempty"` - // RequireScreenlock: Whether or not screenlock is required for the // DevicePolicy to be true. Defaults to `false`. RequireScreenlock bool `json:"requireScreenlock,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AllowedDeviceManagementLevels") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "AllowedDeviceManagementLevels") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AllowedDeviceManagementLevels") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AllowedDeviceManagementLevels") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DevicePolicy) MarshalJSON() ([]byte, error) { +func (s DevicePolicy) MarshalJSON() ([]byte, error) { type NoMethod DevicePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec. Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if // requestor is the document owner" expression: "document.owner == // request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAccessLevelsResponse: A response to `ListAccessLevelsRequest`. type ListAccessLevelsResponse struct { // AccessLevels: List of the Access Level instances. AccessLevels []*AccessLevel `json:"accessLevels,omitempty"` - - // NextPageToken: The pagination token to retrieve the next page of - // results. If the value is empty, no further results remain. + // NextPageToken: The pagination token to retrieve the next page of results. If + // the value is empty, no further results remain. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccessLevels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessLevels") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessLevels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAccessLevelsResponse) MarshalJSON() ([]byte, error) { +func (s ListAccessLevelsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAccessLevelsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAccessPoliciesResponse: A response to -// `ListAccessPoliciesRequest`. +// ListAccessPoliciesResponse: A response to `ListAccessPoliciesRequest`. type ListAccessPoliciesResponse struct { // AccessPolicies: List of the AccessPolicy instances. AccessPolicies []*AccessPolicy `json:"accessPolicies,omitempty"` - - // NextPageToken: The pagination token to retrieve the next page of - // results. If the value is empty, no further results remain. + // NextPageToken: The pagination token to retrieve the next page of results. If + // the value is empty, no further results remain. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccessPolicies") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessPolicies") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccessPolicies") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAccessPoliciesResponse) MarshalJSON() ([]byte, error) { +func (s ListAccessPoliciesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAccessPoliciesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListServicePerimetersResponse: A response to -// `ListServicePerimetersRequest`. +// ListServicePerimetersResponse: A response to `ListServicePerimetersRequest`. type ListServicePerimetersResponse struct { - // NextPageToken: The pagination token to retrieve the next page of - // results. If the value is empty, no further results remain. + // NextPageToken: The pagination token to retrieve the next page of results. If + // the value is empty, no further results remain. NextPageToken string `json:"nextPageToken,omitempty"` - // ServicePerimeters: List of the Service Perimeter instances. ServicePerimeters []*ServicePerimeter `json:"servicePerimeters,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListServicePerimetersResponse) MarshalJSON() ([]byte, error) { +func (s ListServicePerimetersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListServicePerimetersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal, successful response of the operation. If the - // original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OsConstraint: A restriction on the OS type and version of devices -// making requests. +// OsConstraint: A restriction on the OS type and version of devices making +// requests. type OsConstraint struct { - // MinimumVersion: The minimum allowed OS version. If not set, any - // version of this OS satisfies the constraint. Format: - // "major.minor.patch". Examples: "10.5.301", "9.2.1". + // MinimumVersion: The minimum allowed OS version. If not set, any version of + // this OS satisfies the constraint. Format: "major.minor.patch". Examples: + // "10.5.301", "9.2.1". MinimumVersion string `json:"minimumVersion,omitempty"` - // OsType: Required. The allowed OS type. // // Possible values: - // "OS_UNSPECIFIED" - The operating system of the device is not - // specified or not known. + // "OS_UNSPECIFIED" - The operating system of the device is not specified or + // not known. // "DESKTOP_MAC" - A desktop Mac operating system. // "DESKTOP_WINDOWS" - A desktop Windows operating system. // "DESKTOP_LINUX" - A desktop Linux operating system. @@ -774,253 +655,197 @@ type OsConstraint struct { // "ANDROID" - An Android operating system. // "IOS" - An iOS operating system. OsType string `json:"osType,omitempty"` - - // RequireVerifiedChromeOs: Only allows requests from devices with a - // verified Chrome OS. Verifications includes requirements that the - // device is enterprise-managed, conformant to domain policies, and the - // caller has permission to call the API targeted by the request. + // RequireVerifiedChromeOs: Only allows requests from devices with a verified + // Chrome OS. Verifications includes requirements that the device is + // enterprise-managed, conformant to domain policies, and the caller has + // permission to call the API targeted by the request. RequireVerifiedChromeOs bool `json:"requireVerifiedChromeOs,omitempty"` - // ForceSendFields is a list of field names (e.g. "MinimumVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MinimumVersion") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MinimumVersion") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OsConstraint) MarshalJSON() ([]byte, error) { +func (s OsConstraint) MarshalJSON() ([]byte, error) { type NoMethod OsConstraint - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ServicePerimeter: `ServicePerimeter` describes a set of Google Cloud -// resources which can freely import and export data amongst themselves, -// but not export outside of the `ServicePerimeter`. If a request with a -// source within this `ServicePerimeter` has a target outside of the -// `ServicePerimeter`, the request will be blocked. Otherwise the -// request is allowed. There are two types of Service Perimeter - -// Regular and Bridge. Regular Service Perimeters cannot overlap, a -// single Google Cloud project can only belong to a single regular -// Service Perimeter. Service Perimeter Bridges can contain only Google -// Cloud projects as members, a single Google Cloud project may belong -// to multiple Service Perimeter Bridges. +// resources which can freely import and export data amongst themselves, but +// not export outside of the `ServicePerimeter`. If a request with a source +// within this `ServicePerimeter` has a target outside of the +// `ServicePerimeter`, the request will be blocked. Otherwise the request is +// allowed. There are two types of Service Perimeter - Regular and Bridge. +// Regular Service Perimeters cannot overlap, a single Google Cloud project can +// only belong to a single regular Service Perimeter. Service Perimeter Bridges +// can contain only Google Cloud projects as members, a single Google Cloud +// project may belong to multiple Service Perimeter Bridges. type ServicePerimeter struct { - // Description: Description of the `ServicePerimeter` and its use. Does - // not affect behavior. + // Description: Description of the `ServicePerimeter` and its use. Does not + // affect behavior. Description string `json:"description,omitempty"` - // Name: Resource name for the `ServicePerimeter`. Format: - // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}` - // . The `service_perimeter` component must begin with a letter, - // followed by alphanumeric characters or `_`. After you create a - // `ServicePerimeter`, you cannot change its `name`. + // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The + // `service_perimeter` component must begin with a letter, followed by + // alphanumeric characters or `_`. After you create a `ServicePerimeter`, you + // cannot change its `name`. Name string `json:"name,omitempty"` - - // PerimeterType: Perimeter type indicator. A single project is allowed - // to be a member of single regular perimeter, but multiple service - // perimeter bridges. A project cannot be a included in a perimeter - // bridge without being included in regular perimeter. For perimeter - // bridges, restricted/unrestricted service lists as well as access - // lists must be empty. + // PerimeterType: Perimeter type indicator. A single project is allowed to be a + // member of single regular perimeter, but multiple service perimeter bridges. + // A project cannot be a included in a perimeter bridge without being included + // in regular perimeter. For perimeter bridges, restricted/unrestricted service + // lists as well as access lists must be empty. // // Possible values: - // "PERIMETER_TYPE_REGULAR" - Regular Perimeter. When no value is - // specified, the perimeter uses this type. + // "PERIMETER_TYPE_REGULAR" - Regular Perimeter. When no value is specified, + // the perimeter uses this type. // "PERIMETER_TYPE_BRIDGE" - Perimeter Bridge. PerimeterType string `json:"perimeterType,omitempty"` - - // Status: Current ServicePerimeter configuration. Specifies sets of - // resources, restricted/unrestricted services and access levels that - // determine perimeter content and boundaries. + // Status: Current ServicePerimeter configuration. Specifies sets of resources, + // restricted/unrestricted services and access levels that determine perimeter + // content and boundaries. Status *ServicePerimeterConfig `json:"status,omitempty"` - // Title: Human readable title. Must be unique within the Policy. Title string `json:"title,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ServicePerimeter) MarshalJSON() ([]byte, error) { +func (s ServicePerimeter) MarshalJSON() ([]byte, error) { type NoMethod ServicePerimeter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServicePerimeterConfig: `ServicePerimeterConfig` specifies a set of -// Google Cloud resources that describe specific Service Perimeter -// configuration. +// ServicePerimeterConfig: `ServicePerimeterConfig` specifies a set of Google +// Cloud resources that describe specific Service Perimeter configuration. type ServicePerimeterConfig struct { - // AccessLevels: A list of `AccessLevel` resource names that allow - // resources within the `ServicePerimeter` to be accessed from the - // internet. `AccessLevels` listed must be in the same policy as this - // `ServicePerimeter`. Referencing a nonexistent `AccessLevel` is a - // syntax error. If no `AccessLevel` names are listed, resources within - // the perimeter can only be accessed via Google Cloud calls with - // request origins within the perimeter. Example: - // "accessPolicies/MY_POLICY/accessLevels/MY_LEVEL". For Service + // AccessLevels: A list of `AccessLevel` resource names that allow resources + // within the `ServicePerimeter` to be accessed from the internet. + // `AccessLevels` listed must be in the same policy as this `ServicePerimeter`. + // Referencing a nonexistent `AccessLevel` is a syntax error. If no + // `AccessLevel` names are listed, resources within the perimeter can only be + // accessed via Google Cloud calls with request origins within the perimeter. + // Example: "accessPolicies/MY_POLICY/accessLevels/MY_LEVEL". For Service // Perimeter Bridge, must be empty. AccessLevels []string `json:"accessLevels,omitempty"` - - // Resources: A list of Google Cloud resources that are inside of the - // service perimeter. Currently only projects are allowed. Format: + // Resources: A list of Google Cloud resources that are inside of the service + // perimeter. Currently only projects are allowed. Format: // `projects/{project_number}` Resources []string `json:"resources,omitempty"` - - // RestrictedServices: Google Cloud services that are subject to the - // Service Perimeter restrictions. Must contain a list of services. For - // example, if `storage.googleapis.com` is specified, access to the - // storage buckets inside the perimeter must meet the perimeter's access - // restrictions. + // RestrictedServices: Google Cloud services that are subject to the Service + // Perimeter restrictions. Must contain a list of services. For example, if + // `storage.googleapis.com` is specified, access to the storage buckets inside + // the perimeter must meet the perimeter's access restrictions. RestrictedServices []string `json:"restrictedServices,omitempty"` - - // UnrestrictedServices: Google Cloud services that are not subject to - // the Service Perimeter restrictions. Deprecated. Must be set to a - // single wildcard "*". The wildcard means that unless explicitly - // specified by "restricted_services" list, any service is treated as - // unrestricted. + // UnrestrictedServices: Google Cloud services that are not subject to the + // Service Perimeter restrictions. Deprecated. Must be set to a single wildcard + // "*". The wildcard means that unless explicitly specified by + // "restricted_services" list, any service is treated as unrestricted. UnrestrictedServices []string `json:"unrestrictedServices,omitempty"` - // VpcAccessibleServices: Beta. Configuration for APIs allowed within // Perimeter. VpcAccessibleServices *VpcAccessibleServices `json:"vpcAccessibleServices,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessLevels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessLevels") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessLevels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ServicePerimeterConfig) MarshalJSON() ([]byte, error) { +func (s ServicePerimeterConfig) MarshalJSON() ([]byte, error) { type NoMethod ServicePerimeterConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VpcAccessibleServices: Specifies how APIs are allowed to communicate -// within the Service Perimeter. +// VpcAccessibleServices: Specifies how APIs are allowed to communicate within +// the Service Perimeter. type VpcAccessibleServices struct { - // AllowedServices: The list of APIs usable within the Service - // Perimeter. Must be empty unless 'enable_restriction' is True. You can - // specify a list of individual services, as well as include the - // 'RESTRICTED-SERVICES' value, which automatically includes all of the - // services protected by the perimeter. + // AllowedServices: The list of APIs usable within the Service Perimeter. Must + // be empty unless 'enable_restriction' is True. You can specify a list of + // individual services, as well as include the 'RESTRICTED-SERVICES' value, + // which automatically includes all of the services protected by the perimeter. AllowedServices []string `json:"allowedServices,omitempty"` - // EnableRestriction: Whether to restrict API calls within the Service // Perimeter to the list of APIs specified in 'allowed_services'. EnableRestriction bool `json:"enableRestriction,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowedServices") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedServices") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowedServices") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VpcAccessibleServices) MarshalJSON() ([]byte, error) { +func (s VpcAccessibleServices) MarshalJSON() ([]byte, error) { type NoMethod VpcAccessibleServices - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "accesscontextmanager.accessPolicies.create": - type AccessPoliciesCreateCall struct { s *Service accesspolicy *AccessPolicy @@ -1029,11 +854,10 @@ type AccessPoliciesCreateCall struct { header_ http.Header } -// Create: Create an `AccessPolicy`. Fails if this organization already -// has a `AccessPolicy`. The longrunning Operation will have a -// successful status once the `AccessPolicy` has propagated to -// long-lasting storage. Syntactic and basic semantic errors will be -// returned in `metadata` as a BadRequest proto. +// Create: Create an `AccessPolicy`. Fails if this organization already has a +// `AccessPolicy`. The longrunning Operation will have a successful status once +// the `AccessPolicy` has propagated to long-lasting storage. Syntactic and +// basic semantic errors will be returned in `metadata` as a BadRequest proto. func (r *AccessPoliciesService) Create(accesspolicy *AccessPolicy) *AccessPoliciesCreateCall { c := &AccessPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accesspolicy = accesspolicy @@ -1041,23 +865,21 @@ func (r *AccessPoliciesService) Create(accesspolicy *AccessPolicy) *AccessPolici } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesCreateCall) Fields(s ...googleapi.Field) *AccessPoliciesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesCreateCall) Context(ctx context.Context) *AccessPoliciesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1066,18 +888,12 @@ func (c *AccessPoliciesCreateCall) Header() http.Header { } func (c *AccessPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accesspolicy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/accessPolicies") @@ -1087,16 +903,14 @@ func (c *AccessPoliciesCreateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1127,28 +941,7 @@ func (c *AccessPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Create an `AccessPolicy`. Fails if this organization already has a `AccessPolicy`. The longrunning Operation will have a successful status once the `AccessPolicy` has propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a BadRequest proto.", - // "flatPath": "v1beta/accessPolicies", - // "httpMethod": "POST", - // "id": "accesscontextmanager.accessPolicies.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta/accessPolicies", - // "request": { - // "$ref": "AccessPolicy" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.delete": +} type AccessPoliciesDeleteCall struct { s *Service @@ -1158,9 +951,9 @@ type AccessPoliciesDeleteCall struct { header_ http.Header } -// Delete: Delete an AccessPolicy by resource name. The longrunning -// Operation will have a successful status once the AccessPolicy has -// been removed from long-lasting storage. +// Delete: Delete an AccessPolicy by resource name. The longrunning Operation +// will have a successful status once the AccessPolicy has been removed from +// long-lasting storage. // // - name: Resource name for the access policy to delete. Format // `accessPolicies/{policy_id}`. @@ -1171,23 +964,21 @@ func (r *AccessPoliciesService) Delete(name string) *AccessPoliciesDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesDeleteCall) Fields(s ...googleapi.Field) *AccessPoliciesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesDeleteCall) Context(ctx context.Context) *AccessPoliciesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1196,12 +987,7 @@ func (c *AccessPoliciesDeleteCall) Header() http.Header { } func (c *AccessPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1215,16 +1001,14 @@ func (c *AccessPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1255,35 +1039,7 @@ func (c *AccessPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Delete an AccessPolicy by resource name. The longrunning Operation will have a successful status once the AccessPolicy has been removed from long-lasting storage.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}", - // "httpMethod": "DELETE", - // "id": "accesscontextmanager.accessPolicies.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Resource name for the access policy to delete. Format `accessPolicies/{policy_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.get": +} type AccessPoliciesGetCall struct { s *Service @@ -1305,33 +1061,29 @@ func (r *AccessPoliciesService) Get(name string) *AccessPoliciesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesGetCall) Fields(s ...googleapi.Field) *AccessPoliciesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccessPoliciesGetCall) IfNoneMatch(entityTag string) *AccessPoliciesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesGetCall) Context(ctx context.Context) *AccessPoliciesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1340,12 +1092,7 @@ func (c *AccessPoliciesGetCall) Header() http.Header { } func (c *AccessPoliciesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1362,16 +1109,14 @@ func (c *AccessPoliciesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.get" call. -// Exactly one of *AccessPolicy or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AccessPolicy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccessPolicy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AccessPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1402,35 +1147,7 @@ func (c *AccessPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AccessPolicy, return nil, err } return ret, nil - // { - // "description": "Get an AccessPolicy by name.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}", - // "httpMethod": "GET", - // "id": "accesscontextmanager.accessPolicies.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Resource name for the access policy to get. Format `accessPolicies/{policy_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "AccessPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.list": +} type AccessPoliciesListCall struct { s *Service @@ -1446,23 +1163,22 @@ func (r *AccessPoliciesService) List() *AccessPoliciesListCall { return c } -// PageSize sets the optional parameter "pageSize": Number of -// AccessPolicy instances to include in the list. Default 100. +// PageSize sets the optional parameter "pageSize": Number of AccessPolicy +// instances to include in the list. Default 100. func (c *AccessPoliciesListCall) PageSize(pageSize int64) *AccessPoliciesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Next page token -// for the next batch of AccessPolicy instances. Defaults to the first -// page of results. +// PageToken sets the optional parameter "pageToken": Next page token for the +// next batch of AccessPolicy instances. Defaults to the first page of results. func (c *AccessPoliciesListCall) PageToken(pageToken string) *AccessPoliciesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Parent sets the optional parameter "parent": Required. Resource name -// for the container to list AccessPolicy instances from. Format: +// Parent sets the optional parameter "parent": Required. Resource name for the +// container to list AccessPolicy instances from. Format: // `organizations/{org_id}` func (c *AccessPoliciesListCall) Parent(parent string) *AccessPoliciesListCall { c.urlParams_.Set("parent", parent) @@ -1470,33 +1186,29 @@ func (c *AccessPoliciesListCall) Parent(parent string) *AccessPoliciesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesListCall) Fields(s ...googleapi.Field) *AccessPoliciesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccessPoliciesListCall) IfNoneMatch(entityTag string) *AccessPoliciesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesListCall) Context(ctx context.Context) *AccessPoliciesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1505,12 +1217,7 @@ func (c *AccessPoliciesListCall) Header() http.Header { } func (c *AccessPoliciesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1524,16 +1231,15 @@ func (c *AccessPoliciesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.list" call. -// Exactly one of *ListAccessPoliciesResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ListAccessPoliciesResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ListAccessPoliciesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccessPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAccessPoliciesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1564,39 +1270,6 @@ func (c *AccessPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAccessPo return nil, err } return ret, nil - // { - // "description": "List all AccessPolicies under a container.", - // "flatPath": "v1beta/accessPolicies", - // "httpMethod": "GET", - // "id": "accesscontextmanager.accessPolicies.list", - // "parameterOrder": [], - // "parameters": { - // "pageSize": { - // "description": "Number of AccessPolicy instances to include in the list. Default 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Next page token for the next batch of AccessPolicy instances. Defaults to the first page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Resource name for the container to list AccessPolicy instances from. Format: `organizations/{org_id}`", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta/accessPolicies", - // "response": { - // "$ref": "ListAccessPoliciesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1604,7 +1277,7 @@ func (c *AccessPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAccessPo // The provided context supersedes any context provided to the Context method. func (c *AccessPoliciesListCall) Pages(ctx context.Context, f func(*ListAccessPoliciesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1620,8 +1293,6 @@ func (c *AccessPoliciesListCall) Pages(ctx context.Context, f func(*ListAccessPo } } -// method id "accesscontextmanager.accessPolicies.patch": - type AccessPoliciesPatchCall struct { s *Service name string @@ -1631,11 +1302,10 @@ type AccessPoliciesPatchCall struct { header_ http.Header } -// Patch: Update an AccessPolicy. The longrunning Operation from this -// RPC will have a successful status once the changes to the -// AccessPolicy have propagated to long-lasting storage. Syntactic and -// basic semantic errors will be returned in `metadata` as a BadRequest -// proto. +// Patch: Update an AccessPolicy. The longrunning Operation from this RPC will +// have a successful status once the changes to the AccessPolicy have +// propagated to long-lasting storage. Syntactic and basic semantic errors will +// be returned in `metadata` as a BadRequest proto. // // - name: Output only. Resource name of the `AccessPolicy`. Format: // `accessPolicies/{policy_id}`. @@ -1646,31 +1316,29 @@ func (r *AccessPoliciesService) Patch(name string, accesspolicy *AccessPolicy) * return c } -// UpdateMask sets the optional parameter "updateMask": Required. Mask -// to control which fields get updated. Must be non-empty. +// UpdateMask sets the optional parameter "updateMask": Required. Mask to +// control which fields get updated. Must be non-empty. func (c *AccessPoliciesPatchCall) UpdateMask(updateMask string) *AccessPoliciesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesPatchCall) Fields(s ...googleapi.Field) *AccessPoliciesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesPatchCall) Context(ctx context.Context) *AccessPoliciesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1679,18 +1347,12 @@ func (c *AccessPoliciesPatchCall) Header() http.Header { } func (c *AccessPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accesspolicy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") @@ -1703,16 +1365,14 @@ func (c *AccessPoliciesPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1743,44 +1403,7 @@ func (c *AccessPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Update an AccessPolicy. The longrunning Operation from this RPC will have a successful status once the changes to the AccessPolicy have propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a BadRequest proto.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}", - // "httpMethod": "PATCH", - // "id": "accesscontextmanager.accessPolicies.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Mask to control which fields get updated. Must be non-empty.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "request": { - // "$ref": "AccessPolicy" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.accessLevels.create": +} type AccessPoliciesAccessLevelsCreateCall struct { s *Service @@ -1791,13 +1414,13 @@ type AccessPoliciesAccessLevelsCreateCall struct { header_ http.Header } -// Create: Create an Access Level. The longrunning operation from this -// RPC will have a successful status once the Access Level has -// propagated to long-lasting storage. Access Levels containing errors -// will result in an error response for the first error encountered. +// Create: Create an Access Level. The longrunning operation from this RPC will +// have a successful status once the Access Level has propagated to +// long-lasting storage. Access Levels containing errors will result in an +// error response for the first error encountered. // -// - parent: Resource name for the access policy which owns this Access -// Level. Format: `accessPolicies/{policy_id}`. +// - parent: Resource name for the access policy which owns this Access Level. +// Format: `accessPolicies/{policy_id}`. func (r *AccessPoliciesAccessLevelsService) Create(parent string, accesslevel *AccessLevel) *AccessPoliciesAccessLevelsCreateCall { c := &AccessPoliciesAccessLevelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1806,23 +1429,21 @@ func (r *AccessPoliciesAccessLevelsService) Create(parent string, accesslevel *A } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesAccessLevelsCreateCall) Fields(s ...googleapi.Field) *AccessPoliciesAccessLevelsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesAccessLevelsCreateCall) Context(ctx context.Context) *AccessPoliciesAccessLevelsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesAccessLevelsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1831,18 +1452,12 @@ func (c *AccessPoliciesAccessLevelsCreateCall) Header() http.Header { } func (c *AccessPoliciesAccessLevelsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accesslevel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/accessLevels") @@ -1855,16 +1470,14 @@ func (c *AccessPoliciesAccessLevelsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesAccessLevelsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1895,38 +1508,7 @@ func (c *AccessPoliciesAccessLevelsCreateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Create an Access Level. The longrunning operation from this RPC will have a successful status once the Access Level has propagated to long-lasting storage. Access Levels containing errors will result in an error response for the first error encountered.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}/accessLevels", - // "httpMethod": "POST", - // "id": "accesscontextmanager.accessPolicies.accessLevels.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Resource name for the access policy which owns this Access Level. Format: `accessPolicies/{policy_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+parent}/accessLevels", - // "request": { - // "$ref": "AccessLevel" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.accessLevels.delete": +} type AccessPoliciesAccessLevelsDeleteCall struct { s *Service @@ -1936,9 +1518,9 @@ type AccessPoliciesAccessLevelsDeleteCall struct { header_ http.Header } -// Delete: Delete an Access Level by resource name. The longrunning -// operation from this RPC will have a successful status once the Access -// Level has been removed from long-lasting storage. +// Delete: Delete an Access Level by resource name. The longrunning operation +// from this RPC will have a successful status once the Access Level has been +// removed from long-lasting storage. // // - name: Resource name for the Access Level. Format: // `accessPolicies/{policy_id}/accessLevels/{access_level_id}`. @@ -1949,23 +1531,21 @@ func (r *AccessPoliciesAccessLevelsService) Delete(name string) *AccessPoliciesA } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesAccessLevelsDeleteCall) Fields(s ...googleapi.Field) *AccessPoliciesAccessLevelsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesAccessLevelsDeleteCall) Context(ctx context.Context) *AccessPoliciesAccessLevelsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesAccessLevelsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1974,12 +1554,7 @@ func (c *AccessPoliciesAccessLevelsDeleteCall) Header() http.Header { } func (c *AccessPoliciesAccessLevelsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1993,16 +1568,14 @@ func (c *AccessPoliciesAccessLevelsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesAccessLevelsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2033,35 +1606,7 @@ func (c *AccessPoliciesAccessLevelsDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Delete an Access Level by resource name. The longrunning operation from this RPC will have a successful status once the Access Level has been removed from long-lasting storage.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}/accessLevels/{accessLevelsId}", - // "httpMethod": "DELETE", - // "id": "accesscontextmanager.accessPolicies.accessLevels.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Resource name for the Access Level. Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+/accessLevels/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.accessLevels.get": +} type AccessPoliciesAccessLevelsGetCall struct { s *Service @@ -2082,59 +1627,52 @@ func (r *AccessPoliciesAccessLevelsService) Get(name string) *AccessPoliciesAcce return c } -// AccessLevelFormat sets the optional parameter "accessLevelFormat": -// Whether to return `BasicLevels` in the Cloud Common Expression -// Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where -// Access Levels are returned as `BasicLevels` or `CustomLevels` based -// on how they were created. If set to CEL, all Access Levels are -// returned as `CustomLevels`. In the CEL case, `BasicLevels` are -// translated to equivalent `CustomLevels`. +// AccessLevelFormat sets the optional parameter "accessLevelFormat": Whether +// to return `BasicLevels` in the Cloud Common Expression Language rather than +// as `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned +// as `BasicLevels` or `CustomLevels` based on how they were created. If set to +// CEL, all Access Levels are returned as `CustomLevels`. In the CEL case, +// `BasicLevels` are translated to equivalent `CustomLevels`. // // Possible values: // // "LEVEL_FORMAT_UNSPECIFIED" - The format was not specified. -// "AS_DEFINED" - Uses the format the resource was defined in. +// "AS_DEFINED" - Uses the format the resource was defined in. BasicLevels // -// BasicLevels are returned as BasicLevels, CustomLevels are returned as -// CustomLevels. +// are returned as BasicLevels, CustomLevels are returned as CustomLevels. // -// "CEL" - Use Cloud Common Expression Language when returning the +// "CEL" - Use Cloud Common Expression Language when returning the resource. // -// resource. Both BasicLevels and CustomLevels are returned as -// CustomLevels. +// Both BasicLevels and CustomLevels are returned as CustomLevels. func (c *AccessPoliciesAccessLevelsGetCall) AccessLevelFormat(accessLevelFormat string) *AccessPoliciesAccessLevelsGetCall { c.urlParams_.Set("accessLevelFormat", accessLevelFormat) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesAccessLevelsGetCall) Fields(s ...googleapi.Field) *AccessPoliciesAccessLevelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccessPoliciesAccessLevelsGetCall) IfNoneMatch(entityTag string) *AccessPoliciesAccessLevelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesAccessLevelsGetCall) Context(ctx context.Context) *AccessPoliciesAccessLevelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesAccessLevelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2143,12 +1681,7 @@ func (c *AccessPoliciesAccessLevelsGetCall) Header() http.Header { } func (c *AccessPoliciesAccessLevelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2165,16 +1698,14 @@ func (c *AccessPoliciesAccessLevelsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.get" call. -// Exactly one of *AccessLevel or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AccessLevel.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccessLevel.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesAccessLevelsGetCall) Do(opts ...googleapi.CallOption) (*AccessLevel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2205,50 +1736,7 @@ func (c *AccessPoliciesAccessLevelsGetCall) Do(opts ...googleapi.CallOption) (*A return nil, err } return ret, nil - // { - // "description": "Get an Access Level by resource name.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}/accessLevels/{accessLevelsId}", - // "httpMethod": "GET", - // "id": "accesscontextmanager.accessPolicies.accessLevels.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "accessLevelFormat": { - // "description": "Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` or `CustomLevels` based on how they were created. If set to CEL, all Access Levels are returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent `CustomLevels`.", - // "enum": [ - // "LEVEL_FORMAT_UNSPECIFIED", - // "AS_DEFINED", - // "CEL" - // ], - // "enumDescriptions": [ - // "The format was not specified.", - // "Uses the format the resource was defined in. BasicLevels are returned as BasicLevels, CustomLevels are returned as CustomLevels.", - // "Use Cloud Common Expression Language when returning the resource. Both BasicLevels and CustomLevels are returned as CustomLevels." - // ], - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. Resource name for the Access Level. Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+/accessLevels/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "AccessLevel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.accessLevels.list": +} type AccessPoliciesAccessLevelsListCall struct { s *Service @@ -2261,79 +1749,72 @@ type AccessPoliciesAccessLevelsListCall struct { // List: List all Access Levels for an access policy. // -// - parent: Resource name for the access policy to list Access Levels -// from. Format: `accessPolicies/{policy_id}`. +// - parent: Resource name for the access policy to list Access Levels from. +// Format: `accessPolicies/{policy_id}`. func (r *AccessPoliciesAccessLevelsService) List(parent string) *AccessPoliciesAccessLevelsListCall { c := &AccessPoliciesAccessLevelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// AccessLevelFormat sets the optional parameter "accessLevelFormat": -// Whether to return `BasicLevels` in the Cloud Common Expression -// language, as `CustomLevels`, rather than as `BasicLevels`. Defaults -// to returning `AccessLevels` in the format they were defined. +// AccessLevelFormat sets the optional parameter "accessLevelFormat": Whether +// to return `BasicLevels` in the Cloud Common Expression language, as +// `CustomLevels`, rather than as `BasicLevels`. Defaults to returning +// `AccessLevels` in the format they were defined. // // Possible values: // // "LEVEL_FORMAT_UNSPECIFIED" - The format was not specified. -// "AS_DEFINED" - Uses the format the resource was defined in. +// "AS_DEFINED" - Uses the format the resource was defined in. BasicLevels // -// BasicLevels are returned as BasicLevels, CustomLevels are returned as -// CustomLevels. +// are returned as BasicLevels, CustomLevels are returned as CustomLevels. // -// "CEL" - Use Cloud Common Expression Language when returning the +// "CEL" - Use Cloud Common Expression Language when returning the resource. // -// resource. Both BasicLevels and CustomLevels are returned as -// CustomLevels. +// Both BasicLevels and CustomLevels are returned as CustomLevels. func (c *AccessPoliciesAccessLevelsListCall) AccessLevelFormat(accessLevelFormat string) *AccessPoliciesAccessLevelsListCall { c.urlParams_.Set("accessLevelFormat", accessLevelFormat) return c } -// PageSize sets the optional parameter "pageSize": Number of Access -// Levels to include in the list. Default 100. +// PageSize sets the optional parameter "pageSize": Number of Access Levels to +// include in the list. Default 100. func (c *AccessPoliciesAccessLevelsListCall) PageSize(pageSize int64) *AccessPoliciesAccessLevelsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Next page token -// for the next batch of Access Level instances. Defaults to the first -// page of results. +// PageToken sets the optional parameter "pageToken": Next page token for the +// next batch of Access Level instances. Defaults to the first page of results. func (c *AccessPoliciesAccessLevelsListCall) PageToken(pageToken string) *AccessPoliciesAccessLevelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesAccessLevelsListCall) Fields(s ...googleapi.Field) *AccessPoliciesAccessLevelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccessPoliciesAccessLevelsListCall) IfNoneMatch(entityTag string) *AccessPoliciesAccessLevelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesAccessLevelsListCall) Context(ctx context.Context) *AccessPoliciesAccessLevelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesAccessLevelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2342,12 +1823,7 @@ func (c *AccessPoliciesAccessLevelsListCall) Header() http.Header { } func (c *AccessPoliciesAccessLevelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2364,16 +1840,15 @@ func (c *AccessPoliciesAccessLevelsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.list" call. -// Exactly one of *ListAccessLevelsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *ListAccessLevelsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccessPoliciesAccessLevelsListCall) Do(opts ...googleapi.CallOption) (*ListAccessLevelsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2404,58 +1879,6 @@ func (c *AccessPoliciesAccessLevelsListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "List all Access Levels for an access policy.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}/accessLevels", - // "httpMethod": "GET", - // "id": "accesscontextmanager.accessPolicies.accessLevels.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "accessLevelFormat": { - // "description": "Whether to return `BasicLevels` in the Cloud Common Expression language, as `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the format they were defined.", - // "enum": [ - // "LEVEL_FORMAT_UNSPECIFIED", - // "AS_DEFINED", - // "CEL" - // ], - // "enumDescriptions": [ - // "The format was not specified.", - // "Uses the format the resource was defined in. BasicLevels are returned as BasicLevels, CustomLevels are returned as CustomLevels.", - // "Use Cloud Common Expression Language when returning the resource. Both BasicLevels and CustomLevels are returned as CustomLevels." - // ], - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Number of Access Levels to include in the list. Default 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Next page token for the next batch of Access Level instances. Defaults to the first page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Resource name for the access policy to list Access Levels from. Format: `accessPolicies/{policy_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+parent}/accessLevels", - // "response": { - // "$ref": "ListAccessLevelsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2463,7 +1886,7 @@ func (c *AccessPoliciesAccessLevelsListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *AccessPoliciesAccessLevelsListCall) Pages(ctx context.Context, f func(*ListAccessLevelsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2479,8 +1902,6 @@ func (c *AccessPoliciesAccessLevelsListCall) Pages(ctx context.Context, f func(* } } -// method id "accesscontextmanager.accessPolicies.accessLevels.patch": - type AccessPoliciesAccessLevelsPatchCall struct { s *Service name string @@ -2490,18 +1911,16 @@ type AccessPoliciesAccessLevelsPatchCall struct { header_ http.Header } -// Patch: Update an Access Level. The longrunning operation from this -// RPC will have a successful status once the changes to the Access -// Level have propagated to long-lasting storage. Access Levels -// containing errors will result in an error response for the first -// error encountered. +// Patch: Update an Access Level. The longrunning operation from this RPC will +// have a successful status once the changes to the Access Level have +// propagated to long-lasting storage. Access Levels containing errors will +// result in an error response for the first error encountered. // // - name: Resource name for the `AccessLevel`. Format: // `accessPolicies/{access_policy}/accessLevels/{access_level}`. The // `access_level` component must begin with a letter, followed by -// alphanumeric characters or `_`. Its maximum length is 50 -// characters. After you create an `AccessLevel`, you cannot change -// its `name`. +// alphanumeric characters or `_`. Its maximum length is 50 characters. After +// you create an `AccessLevel`, you cannot change its `name`. func (r *AccessPoliciesAccessLevelsService) Patch(name string, accesslevel *AccessLevel) *AccessPoliciesAccessLevelsPatchCall { c := &AccessPoliciesAccessLevelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2509,31 +1928,29 @@ func (r *AccessPoliciesAccessLevelsService) Patch(name string, accesslevel *Acce return c } -// UpdateMask sets the optional parameter "updateMask": Required. Mask -// to control which fields get updated. Must be non-empty. +// UpdateMask sets the optional parameter "updateMask": Required. Mask to +// control which fields get updated. Must be non-empty. func (c *AccessPoliciesAccessLevelsPatchCall) UpdateMask(updateMask string) *AccessPoliciesAccessLevelsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesAccessLevelsPatchCall) Fields(s ...googleapi.Field) *AccessPoliciesAccessLevelsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesAccessLevelsPatchCall) Context(ctx context.Context) *AccessPoliciesAccessLevelsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesAccessLevelsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2542,18 +1959,12 @@ func (c *AccessPoliciesAccessLevelsPatchCall) Header() http.Header { } func (c *AccessPoliciesAccessLevelsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accesslevel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") @@ -2566,16 +1977,14 @@ func (c *AccessPoliciesAccessLevelsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.accessLevels.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesAccessLevelsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2606,44 +2015,7 @@ func (c *AccessPoliciesAccessLevelsPatchCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Update an Access Level. The longrunning operation from this RPC will have a successful status once the changes to the Access Level have propagated to long-lasting storage. Access Levels containing errors will result in an error response for the first error encountered.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}/accessLevels/{accessLevelsId}", - // "httpMethod": "PATCH", - // "id": "accesscontextmanager.accessPolicies.accessLevels.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the `AccessLevel`. Format: `accessPolicies/{access_policy}/accessLevels/{access_level}`. The `access_level` component must begin with a letter, followed by alphanumeric characters or `_`. Its maximum length is 50 characters. After you create an `AccessLevel`, you cannot change its `name`.", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+/accessLevels/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Mask to control which fields get updated. Must be non-empty.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "request": { - // "$ref": "AccessLevel" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.servicePerimeters.create": +} type AccessPoliciesServicePerimetersCreateCall struct { s *Service @@ -2654,11 +2026,10 @@ type AccessPoliciesServicePerimetersCreateCall struct { header_ http.Header } -// Create: Create a Service Perimeter. The longrunning operation from -// this RPC will have a successful status once the Service Perimeter has -// propagated to long-lasting storage. Service Perimeters containing -// errors will result in an error response for the first error -// encountered. +// Create: Create a Service Perimeter. The longrunning operation from this RPC +// will have a successful status once the Service Perimeter has propagated to +// long-lasting storage. Service Perimeters containing errors will result in an +// error response for the first error encountered. // // - parent: Resource name for the access policy which owns this Service // Perimeter. Format: `accessPolicies/{policy_id}`. @@ -2670,23 +2041,21 @@ func (r *AccessPoliciesServicePerimetersService) Create(parent string, servicepe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesServicePerimetersCreateCall) Fields(s ...googleapi.Field) *AccessPoliciesServicePerimetersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesServicePerimetersCreateCall) Context(ctx context.Context) *AccessPoliciesServicePerimetersCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesServicePerimetersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2695,18 +2064,12 @@ func (c *AccessPoliciesServicePerimetersCreateCall) Header() http.Header { } func (c *AccessPoliciesServicePerimetersCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.serviceperimeter) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/servicePerimeters") @@ -2719,16 +2082,14 @@ func (c *AccessPoliciesServicePerimetersCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesServicePerimetersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2759,38 +2120,7 @@ func (c *AccessPoliciesServicePerimetersCreateCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Create a Service Perimeter. The longrunning operation from this RPC will have a successful status once the Service Perimeter has propagated to long-lasting storage. Service Perimeters containing errors will result in an error response for the first error encountered.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}/servicePerimeters", - // "httpMethod": "POST", - // "id": "accesscontextmanager.accessPolicies.servicePerimeters.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Resource name for the access policy which owns this Service Perimeter. Format: `accessPolicies/{policy_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+parent}/servicePerimeters", - // "request": { - // "$ref": "ServicePerimeter" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.servicePerimeters.delete": +} type AccessPoliciesServicePerimetersDeleteCall struct { s *Service @@ -2801,12 +2131,11 @@ type AccessPoliciesServicePerimetersDeleteCall struct { } // Delete: Delete a Service Perimeter by resource name. The longrunning -// operation from this RPC will have a successful status once the -// Service Perimeter has been removed from long-lasting storage. +// operation from this RPC will have a successful status once the Service +// Perimeter has been removed from long-lasting storage. // // - name: Resource name for the Service Perimeter. Format: -// `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id} -// `. +// `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}`. func (r *AccessPoliciesServicePerimetersService) Delete(name string) *AccessPoliciesServicePerimetersDeleteCall { c := &AccessPoliciesServicePerimetersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2814,23 +2143,21 @@ func (r *AccessPoliciesServicePerimetersService) Delete(name string) *AccessPoli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesServicePerimetersDeleteCall) Fields(s ...googleapi.Field) *AccessPoliciesServicePerimetersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesServicePerimetersDeleteCall) Context(ctx context.Context) *AccessPoliciesServicePerimetersDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesServicePerimetersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2839,12 +2166,7 @@ func (c *AccessPoliciesServicePerimetersDeleteCall) Header() http.Header { } func (c *AccessPoliciesServicePerimetersDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2858,16 +2180,14 @@ func (c *AccessPoliciesServicePerimetersDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesServicePerimetersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2898,35 +2218,7 @@ func (c *AccessPoliciesServicePerimetersDeleteCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Delete a Service Perimeter by resource name. The longrunning operation from this RPC will have a successful status once the Service Perimeter has been removed from long-lasting storage.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}/servicePerimeters/{servicePerimetersId}", - // "httpMethod": "DELETE", - // "id": "accesscontextmanager.accessPolicies.servicePerimeters.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Resource name for the Service Perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+/servicePerimeters/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.servicePerimeters.get": +} type AccessPoliciesServicePerimetersGetCall struct { s *Service @@ -2940,8 +2232,7 @@ type AccessPoliciesServicePerimetersGetCall struct { // Get: Get a Service Perimeter by resource name. // // - name: Resource name for the Service Perimeter. Format: -// `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id -// }`. +// `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}`. func (r *AccessPoliciesServicePerimetersService) Get(name string) *AccessPoliciesServicePerimetersGetCall { c := &AccessPoliciesServicePerimetersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2949,33 +2240,29 @@ func (r *AccessPoliciesServicePerimetersService) Get(name string) *AccessPolicie } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesServicePerimetersGetCall) Fields(s ...googleapi.Field) *AccessPoliciesServicePerimetersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccessPoliciesServicePerimetersGetCall) IfNoneMatch(entityTag string) *AccessPoliciesServicePerimetersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesServicePerimetersGetCall) Context(ctx context.Context) *AccessPoliciesServicePerimetersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesServicePerimetersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2984,12 +2271,7 @@ func (c *AccessPoliciesServicePerimetersGetCall) Header() http.Header { } func (c *AccessPoliciesServicePerimetersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3006,16 +2288,15 @@ func (c *AccessPoliciesServicePerimetersGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.get" call. -// Exactly one of *ServicePerimeter or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ServicePerimeter.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ServicePerimeter.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccessPoliciesServicePerimetersGetCall) Do(opts ...googleapi.CallOption) (*ServicePerimeter, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3046,35 +2327,7 @@ func (c *AccessPoliciesServicePerimetersGetCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Get a Service Perimeter by resource name.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}/servicePerimeters/{servicePerimetersId}", - // "httpMethod": "GET", - // "id": "accesscontextmanager.accessPolicies.servicePerimeters.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Resource name for the Service Perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+/servicePerimeters/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "ServicePerimeter" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.accessPolicies.servicePerimeters.list": +} type AccessPoliciesServicePerimetersListCall struct { s *Service @@ -3087,8 +2340,8 @@ type AccessPoliciesServicePerimetersListCall struct { // List: List all Service Perimeters for an access policy. // -// - parent: Resource name for the access policy to list Service -// Perimeters from. Format: `accessPolicies/{policy_id}`. +// - parent: Resource name for the access policy to list Service Perimeters +// from. Format: `accessPolicies/{policy_id}`. func (r *AccessPoliciesServicePerimetersService) List(parent string) *AccessPoliciesServicePerimetersListCall { c := &AccessPoliciesServicePerimetersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3102,42 +2355,38 @@ func (c *AccessPoliciesServicePerimetersListCall) PageSize(pageSize int64) *Acce return c } -// PageToken sets the optional parameter "pageToken": Next page token -// for the next batch of Service Perimeter instances. Defaults to the -// first page of results. +// PageToken sets the optional parameter "pageToken": Next page token for the +// next batch of Service Perimeter instances. Defaults to the first page of +// results. func (c *AccessPoliciesServicePerimetersListCall) PageToken(pageToken string) *AccessPoliciesServicePerimetersListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesServicePerimetersListCall) Fields(s ...googleapi.Field) *AccessPoliciesServicePerimetersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccessPoliciesServicePerimetersListCall) IfNoneMatch(entityTag string) *AccessPoliciesServicePerimetersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesServicePerimetersListCall) Context(ctx context.Context) *AccessPoliciesServicePerimetersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesServicePerimetersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3146,12 +2395,7 @@ func (c *AccessPoliciesServicePerimetersListCall) Header() http.Header { } func (c *AccessPoliciesServicePerimetersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3168,16 +2412,15 @@ func (c *AccessPoliciesServicePerimetersListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.list" call. -// Exactly one of *ListServicePerimetersResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListServicePerimetersResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListServicePerimetersResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccessPoliciesServicePerimetersListCall) Do(opts ...googleapi.CallOption) (*ListServicePerimetersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3208,43 +2451,6 @@ func (c *AccessPoliciesServicePerimetersListCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "List all Service Perimeters for an access policy.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}/servicePerimeters", - // "httpMethod": "GET", - // "id": "accesscontextmanager.accessPolicies.servicePerimeters.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Number of Service Perimeters to include in the list. Default 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Next page token for the next batch of Service Perimeter instances. Defaults to the first page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Resource name for the access policy to list Service Perimeters from. Format: `accessPolicies/{policy_id}`", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+parent}/servicePerimeters", - // "response": { - // "$ref": "ListServicePerimetersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3252,7 +2458,7 @@ func (c *AccessPoliciesServicePerimetersListCall) Do(opts ...googleapi.CallOptio // The provided context supersedes any context provided to the Context method. func (c *AccessPoliciesServicePerimetersListCall) Pages(ctx context.Context, f func(*ListServicePerimetersResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3268,8 +2474,6 @@ func (c *AccessPoliciesServicePerimetersListCall) Pages(ctx context.Context, f f } } -// method id "accesscontextmanager.accessPolicies.servicePerimeters.patch": - type AccessPoliciesServicePerimetersPatchCall struct { s *Service name string @@ -3279,17 +2483,16 @@ type AccessPoliciesServicePerimetersPatchCall struct { header_ http.Header } -// Patch: Update a Service Perimeter. The longrunning operation from -// this RPC will have a successful status once the changes to the -// Service Perimeter have propagated to long-lasting storage. Service -// Perimeter containing errors will result in an error response for the -// first error encountered. +// Patch: Update a Service Perimeter. The longrunning operation from this RPC +// will have a successful status once the changes to the Service Perimeter have +// propagated to long-lasting storage. Service Perimeter containing errors will +// result in an error response for the first error encountered. // // - name: Resource name for the `ServicePerimeter`. Format: -// `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter -// }`. The `service_perimeter` component must begin with a letter, -// followed by alphanumeric characters or `_`. After you create a -// `ServicePerimeter`, you cannot change its `name`. +// `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. +// The `service_perimeter` component must begin with a letter, followed by +// alphanumeric characters or `_`. After you create a `ServicePerimeter`, you +// cannot change its `name`. func (r *AccessPoliciesServicePerimetersService) Patch(name string, serviceperimeter *ServicePerimeter) *AccessPoliciesServicePerimetersPatchCall { c := &AccessPoliciesServicePerimetersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3297,31 +2500,29 @@ func (r *AccessPoliciesServicePerimetersService) Patch(name string, serviceperim return c } -// UpdateMask sets the optional parameter "updateMask": Required. Mask -// to control which fields get updated. Must be non-empty. +// UpdateMask sets the optional parameter "updateMask": Required. Mask to +// control which fields get updated. Must be non-empty. func (c *AccessPoliciesServicePerimetersPatchCall) UpdateMask(updateMask string) *AccessPoliciesServicePerimetersPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccessPoliciesServicePerimetersPatchCall) Fields(s ...googleapi.Field) *AccessPoliciesServicePerimetersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccessPoliciesServicePerimetersPatchCall) Context(ctx context.Context) *AccessPoliciesServicePerimetersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccessPoliciesServicePerimetersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3330,18 +2531,12 @@ func (c *AccessPoliciesServicePerimetersPatchCall) Header() http.Header { } func (c *AccessPoliciesServicePerimetersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.serviceperimeter) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") @@ -3354,16 +2549,14 @@ func (c *AccessPoliciesServicePerimetersPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.accessPolicies.servicePerimeters.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccessPoliciesServicePerimetersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3394,44 +2587,7 @@ func (c *AccessPoliciesServicePerimetersPatchCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Update a Service Perimeter. The longrunning operation from this RPC will have a successful status once the changes to the Service Perimeter have propagated to long-lasting storage. Service Perimeter containing errors will result in an error response for the first error encountered.", - // "flatPath": "v1beta/accessPolicies/{accessPoliciesId}/servicePerimeters/{servicePerimetersId}", - // "httpMethod": "PATCH", - // "id": "accesscontextmanager.accessPolicies.servicePerimeters.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the `ServicePerimeter`. Format: `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The `service_perimeter` component must begin with a letter, followed by alphanumeric characters or `_`. After you create a `ServicePerimeter`, you cannot change its `name`.", - // "location": "path", - // "pattern": "^accessPolicies/[^/]+/servicePerimeters/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Mask to control which fields get updated. Must be non-empty.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "request": { - // "$ref": "ServicePerimeter" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "accesscontextmanager.operations.get": +} type OperationsGetCall struct { s *Service @@ -3442,9 +2598,9 @@ type OperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *OperationsService) Get(name string) *OperationsGetCall { @@ -3454,33 +2610,29 @@ func (r *OperationsService) Get(name string) *OperationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3489,12 +2641,7 @@ func (c *OperationsGetCall) Header() http.Header { } func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3511,16 +2658,14 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "accesscontextmanager.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3551,30 +2696,4 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "accesscontextmanager.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/acmedns/v1/acmedns-gen.go b/acmedns/v1/acmedns-gen.go index 8abde05bde5..d16a7164b9f 100644 --- a/acmedns/v1/acmedns-gen.go +++ b/acmedns/v1/acmedns-gen.go @@ -319,7 +319,7 @@ func (c *AcmeChallengeSetsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "rootDomain": c.rootDomain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "acmedns.acmeChallengeSets.get" call. @@ -425,7 +425,7 @@ func (c *AcmeChallengeSetsRotateChallengesCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "rootDomain": c.rootDomain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "acmedns.acmeChallengeSets.rotateChallenges" call. diff --git a/addressvalidation/v1/addressvalidation-gen.go b/addressvalidation/v1/addressvalidation-gen.go index 7aaa7949d80..cf879771fb1 100644 --- a/addressvalidation/v1/addressvalidation-gen.go +++ b/addressvalidation/v1/addressvalidation-gen.go @@ -1253,7 +1253,7 @@ func (c *V1ProvideValidationFeedbackCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "addressvalidation.provideValidationFeedback" call. @@ -1348,7 +1348,7 @@ func (c *V1ValidateAddressCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "addressvalidation.validateAddress" call. diff --git a/adexchangebuyer/v1.2/adexchangebuyer-gen.go b/adexchangebuyer/v1.2/adexchangebuyer-gen.go index fdfb6295205..b54dd52252d 100644 --- a/adexchangebuyer/v1.2/adexchangebuyer-gen.go +++ b/adexchangebuyer/v1.2/adexchangebuyer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/ad-exchange/buyer-rest // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // adexchangebuyerService, err := adexchangebuyer.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // adexchangebuyerService, err := adexchangebuyer.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // adexchangebuyerService, err := adexchangebuyer.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package adexchangebuyer // import "google.golang.org/api/adexchangebuyer/v1.2" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "adexchangebuyer:v1.2" const apiName = "adexchangebuyer" const apiVersion = "v1.2" const basePath = "https://www.googleapis.com/adexchangebuyer/v1.2/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/adexchangebuyer/v1.2/" // OAuth2 scopes used by this API. const ( @@ -84,12 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/adexchange.buyer", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -158,432 +176,323 @@ type CreativesService struct { type Account struct { // BidderLocation: Your bidder locations that have distinct URLs. BidderLocation []*AccountBidderLocation `json:"bidderLocation,omitempty"` - - // CookieMatchingNid: The nid parameter value used in cookie match - // requests. Please contact your technical account manager if you need - // to change this. + // CookieMatchingNid: The nid parameter value used in cookie match requests. + // Please contact your technical account manager if you need to change this. CookieMatchingNid string `json:"cookieMatchingNid,omitempty"` - // CookieMatchingUrl: The base URL used in cookie match requests. CookieMatchingUrl string `json:"cookieMatchingUrl,omitempty"` - // Id: Account id. Id int64 `json:"id,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - - // MaximumActiveCreatives: The maximum number of active creatives that - // an account can have, where a creative is active if it was inserted or - // bid with in the last 30 days. Please contact your technical account - // manager if you need to change this. + // MaximumActiveCreatives: The maximum number of active creatives that an + // account can have, where a creative is active if it was inserted or bid with + // in the last 30 days. Please contact your technical account manager if you + // need to change this. MaximumActiveCreatives int64 `json:"maximumActiveCreatives,omitempty"` - - // MaximumTotalQps: The sum of all bidderLocation.maximumQps values - // cannot exceed this. Please contact your technical account manager if - // you need to change this. + // MaximumTotalQps: The sum of all bidderLocation.maximumQps values cannot + // exceed this. Please contact your technical account manager if you need to + // change this. MaximumTotalQps int64 `json:"maximumTotalQps,omitempty"` - - // NumberActiveCreatives: The number of creatives that this account - // inserted or bid with in the last 30 days. + // NumberActiveCreatives: The number of creatives that this account inserted or + // bid with in the last 30 days. NumberActiveCreatives int64 `json:"numberActiveCreatives,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BidderLocation") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BidderLocation") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BidderLocation") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountBidderLocation struct { // MaximumQps: The maximum queries per second the Ad Exchange will send. MaximumQps int64 `json:"maximumQps,omitempty"` - - // Region: The geographical region the Ad Exchange should send requests - // from. Only used by some quota systems, but always setting the value - // is recommended. Allowed values: + // Region: The geographical region the Ad Exchange should send requests from. + // Only used by some quota systems, but always setting the value is + // recommended. Allowed values: // - ASIA // - EUROPE // - US_EAST // - US_WEST Region string `json:"region,omitempty"` - // Url: The URL to which the Ad Exchange will send bid requests. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaximumQps") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaximumQps") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaximumQps") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountBidderLocation) MarshalJSON() ([]byte, error) { +func (s AccountBidderLocation) MarshalJSON() ([]byte, error) { type NoMethod AccountBidderLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountsList: An account feed lists Ad Exchange buyer accounts that -// the user has access to. Each entry in the feed corresponds to a -// single buyer account. +// AccountsList: An account feed lists Ad Exchange buyer accounts that the user +// has access to. Each entry in the feed corresponds to a single buyer account. type AccountsList struct { // Items: A list of accounts. Items []*Account `json:"items,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsList) MarshalJSON() ([]byte, error) { +func (s AccountsList) MarshalJSON() ([]byte, error) { type NoMethod AccountsList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Creative: A creative and its classification data. type Creative struct { - // HTMLSnippet: The HTML snippet that displays the ad when inserted in - // the web page. If set, videoURL should not be set. + // HTMLSnippet: The HTML snippet that displays the ad when inserted in the web + // page. If set, videoURL should not be set. HTMLSnippet string `json:"HTMLSnippet,omitempty"` - // AccountId: Account id. AccountId int64 `json:"accountId,omitempty"` - - // AdvertiserId: Detected advertiser id, if any. Read-only. This field - // should not be set in requests. + // AdvertiserId: Detected advertiser id, if any. Read-only. This field should + // not be set in requests. AdvertiserId googleapi.Int64s `json:"advertiserId,omitempty"` - - // AdvertiserName: The name of the company being advertised in the - // creative. + // AdvertiserName: The name of the company being advertised in the creative. AdvertiserName string `json:"advertiserName,omitempty"` - // AgencyId: The agency id for this creative. AgencyId int64 `json:"agencyId,omitempty,string"` - - // ApiUploadTimestamp: The last upload timestamp of this creative if it - // was uploaded via API. Read-only. The value of this field is - // generated, and will be ignored for uploads. (formatted RFC 3339 - // timestamp). + // ApiUploadTimestamp: The last upload timestamp of this creative if it was + // uploaded via API. Read-only. The value of this field is generated, and will + // be ignored for uploads. (formatted RFC 3339 timestamp). ApiUploadTimestamp string `json:"apiUploadTimestamp,omitempty"` - - // Attribute: All attributes for the ads that may be shown from this - // snippet. + // Attribute: All attributes for the ads that may be shown from this snippet. Attribute []int64 `json:"attribute,omitempty"` - - // BuyerCreativeId: A buyer-specific id identifying the creative in this - // ad. + // BuyerCreativeId: A buyer-specific id identifying the creative in this ad. BuyerCreativeId string `json:"buyerCreativeId,omitempty"` - // ClickThroughUrl: The set of destination urls for the snippet. ClickThroughUrl []string `json:"clickThroughUrl,omitempty"` - - // Corrections: Shows any corrections that were applied to this - // creative. Read-only. This field should not be set in requests. + // Corrections: Shows any corrections that were applied to this creative. + // Read-only. This field should not be set in requests. Corrections []*CreativeCorrections `json:"corrections,omitempty"` - - // DisapprovalReasons: The reasons for disapproval, if any. Note that - // not all disapproval reasons may be categorized, so it is possible for - // the creative to have a status of DISAPPROVED with an empty list for - // disapproval_reasons. In this case, please reach out to your TAM to - // help debug the issue. Read-only. This field should not be set in - // requests. + // DisapprovalReasons: The reasons for disapproval, if any. Note that not all + // disapproval reasons may be categorized, so it is possible for the creative + // to have a status of DISAPPROVED with an empty list for disapproval_reasons. + // In this case, please reach out to your TAM to help debug the issue. + // Read-only. This field should not be set in requests. DisapprovalReasons []*CreativeDisapprovalReasons `json:"disapprovalReasons,omitempty"` - - // FilteringReasons: The filtering reasons for the creative. Read-only. - // This field should not be set in requests. + // FilteringReasons: The filtering reasons for the creative. Read-only. This + // field should not be set in requests. FilteringReasons *CreativeFilteringReasons `json:"filteringReasons,omitempty"` - // Height: Ad height. Height int64 `json:"height,omitempty"` - - // ImpressionTrackingUrl: The set of urls to be called to record an - // impression. + // ImpressionTrackingUrl: The set of urls to be called to record an impression. ImpressionTrackingUrl []string `json:"impressionTrackingUrl,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - - // ProductCategories: Detected product categories, if any. Read-only. - // This field should not be set in requests. + // ProductCategories: Detected product categories, if any. Read-only. This + // field should not be set in requests. ProductCategories []int64 `json:"productCategories,omitempty"` - - // RestrictedCategories: All restricted categories for the ads that may - // be shown from this snippet. + // RestrictedCategories: All restricted categories for the ads that may be + // shown from this snippet. RestrictedCategories []int64 `json:"restrictedCategories,omitempty"` - - // SensitiveCategories: Detected sensitive categories, if any. - // Read-only. This field should not be set in requests. + // SensitiveCategories: Detected sensitive categories, if any. Read-only. This + // field should not be set in requests. SensitiveCategories []int64 `json:"sensitiveCategories,omitempty"` - - // Status: Creative serving status. Read-only. This field should not be - // set in requests. + // Status: Creative serving status. Read-only. This field should not be set in + // requests. Status string `json:"status,omitempty"` - // VendorType: All vendor types for the ads that may be shown from this // snippet. VendorType []int64 `json:"vendorType,omitempty"` - - // Version: The version for this creative. Read-only. This field should - // not be set in requests. + // Version: The version for this creative. Read-only. This field should not be + // set in requests. Version int64 `json:"version,omitempty"` - - // VideoURL: The url to fetch a video ad. If set, HTMLSnippet should not - // be set. + // VideoURL: The url to fetch a video ad. If set, HTMLSnippet should not be + // set. VideoURL string `json:"videoURL,omitempty"` - // Width: Ad width. Width int64 `json:"width,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HTMLSnippet") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HTMLSnippet") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HTMLSnippet") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Creative) MarshalJSON() ([]byte, error) { +func (s Creative) MarshalJSON() ([]byte, error) { type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeCorrections struct { // Details: Additional details about the correction. Details []string `json:"details,omitempty"` - // Reason: The type of correction that was applied to the creative. Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeCorrections) MarshalJSON() ([]byte, error) { +func (s CreativeCorrections) MarshalJSON() ([]byte, error) { type NoMethod CreativeCorrections - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeDisapprovalReasons struct { // Details: Additional details about the reason for disapproval. Details []string `json:"details,omitempty"` - // Reason: The categorized reason for disapproval. Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeDisapprovalReasons) MarshalJSON() ([]byte, error) { +func (s CreativeDisapprovalReasons) MarshalJSON() ([]byte, error) { type NoMethod CreativeDisapprovalReasons - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeFilteringReasons: The filtering reasons for the creative. -// Read-only. This field should not be set in requests. +// CreativeFilteringReasons: The filtering reasons for the creative. Read-only. +// This field should not be set in requests. type CreativeFilteringReasons struct { - // Date: The date in ISO 8601 format for the data. The data is collected - // from 00:00:00 to 23:59:59 in PST. + // Date: The date in ISO 8601 format for the data. The data is collected from + // 00:00:00 to 23:59:59 in PST. Date string `json:"date,omitempty"` - // Reasons: The filtering reasons. Reasons []*CreativeFilteringReasonsReasons `json:"reasons,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Date") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Date") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Date") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Date") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFilteringReasons) MarshalJSON() ([]byte, error) { +func (s CreativeFilteringReasons) MarshalJSON() ([]byte, error) { type NoMethod CreativeFilteringReasons - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeFilteringReasonsReasons struct { // FilteringCount: The number of times the creative was filtered for the - // status. The count is aggregated across all publishers on the - // exchange. + // status. The count is aggregated across all publishers on the exchange. FilteringCount int64 `json:"filteringCount,omitempty,string"` - // FilteringStatus: The filtering status code. Please refer to the // creative-status-codes.txt file for different statuses. FilteringStatus int64 `json:"filteringStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilteringCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FilteringCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FilteringCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFilteringReasonsReasons) MarshalJSON() ([]byte, error) { +func (s CreativeFilteringReasonsReasons) MarshalJSON() ([]byte, error) { type NoMethod CreativeFilteringReasonsReasons - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativesList: The creatives feed lists the active creatives for the -// Ad Exchange buyer accounts that the user has access to. Each entry in -// the feed corresponds to a single creative. +// CreativesList: The creatives feed lists the active creatives for the Ad +// Exchange buyer accounts that the user has access to. Each entry in the feed +// corresponds to a single creative. type CreativesList struct { // Items: A list of creatives. Items []*Creative `json:"items,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // NextPageToken: Continuation token used to page through creatives. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativesList) MarshalJSON() ([]byte, error) { +func (s CreativesList) MarshalJSON() ([]byte, error) { type NoMethod CreativesList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "adexchangebuyer.accounts.get": - type AccountsGetCall struct { s *Service id int64 @@ -603,33 +512,29 @@ func (r *AccountsService) Get(id int64) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -638,12 +543,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -660,16 +560,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -677,17 +575,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -700,34 +598,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Gets one account by ID.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.accounts.get", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The account id", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "accounts/{id}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.accounts.list": +} type AccountsListCall struct { s *Service @@ -744,33 +615,29 @@ func (r *AccountsService) List() *AccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -779,12 +646,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -798,16 +660,14 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.list" call. -// Exactly one of *AccountsList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AccountsList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -815,17 +675,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsList{ ServerResponse: googleapi.ServerResponse{ @@ -838,23 +698,8 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsList, erro return nil, err } return ret, nil - // { - // "description": "Retrieves the authenticated user's list of accounts.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.accounts.list", - // "path": "accounts", - // "response": { - // "$ref": "AccountsList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } -// method id "adexchangebuyer.accounts.patch": - type AccountsPatchCall struct { s *Service id int64 @@ -864,8 +709,7 @@ type AccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing account. This method supports patch -// semantics. +// Patch: Updates an existing account. This method supports patch semantics. // // - id: The account id. func (r *AccountsService) Patch(id int64, account *Account) *AccountsPatchCall { @@ -876,23 +720,21 @@ func (r *AccountsService) Patch(id int64, account *Account) *AccountsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -901,18 +743,12 @@ func (c *AccountsPatchCall) Header() http.Header { } func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{id}") @@ -925,16 +761,14 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.patch" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -942,17 +776,17 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -965,37 +799,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing account. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "adexchangebuyer.accounts.patch", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The account id", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "accounts/{id}", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.accounts.update": +} type AccountsUpdateCall struct { s *Service @@ -1017,23 +821,21 @@ func (r *AccountsService) Update(id int64, account *Account) *AccountsUpdateCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1042,18 +844,12 @@ func (c *AccountsUpdateCall) Header() http.Header { } func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{id}") @@ -1066,16 +862,14 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1083,17 +877,17 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -1106,37 +900,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing account.", - // "httpMethod": "PUT", - // "id": "adexchangebuyer.accounts.update", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The account id", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "accounts/{id}", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.get": +} type CreativesGetCall struct { s *Service @@ -1148,8 +912,8 @@ type CreativesGetCall struct { header_ http.Header } -// Get: Gets the status for a single creative. A creative will be -// available 30-40 minutes after submission. +// Get: Gets the status for a single creative. A creative will be available +// 30-40 minutes after submission. // // - accountId: The id for the account that will serve this creative. // - buyerCreativeId: The buyer-specific id for this creative. @@ -1161,33 +925,29 @@ func (r *CreativesService) Get(accountId int64, buyerCreativeId string) *Creativ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1196,12 +956,7 @@ func (c *CreativesGetCall) Header() http.Header { } func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1219,16 +974,14 @@ func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "buyerCreativeId": c.buyerCreativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1236,17 +989,17 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -1259,41 +1012,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return nil, err } return ret, nil - // { - // "description": "Gets the status for a single creative. A creative will be available 30-40 minutes after submission.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.creatives.get", - // "parameterOrder": [ - // "accountId", - // "buyerCreativeId" - // ], - // "parameters": { - // "accountId": { - // "description": "The id for the account that will serve this creative.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "buyerCreativeId": { - // "description": "The buyer-specific id for this creative.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "creatives/{accountId}/{buyerCreativeId}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.insert": +} type CreativesInsertCall struct { s *Service @@ -1311,23 +1030,21 @@ func (r *CreativesService) Insert(creative *Creative) *CreativesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1336,18 +1053,12 @@ func (c *CreativesInsertCall) Header() http.Header { } func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "creatives") @@ -1357,16 +1068,14 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.insert" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1374,17 +1083,17 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -1397,25 +1106,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Submit a new creative.", - // "httpMethod": "POST", - // "id": "adexchangebuyer.creatives.insert", - // "path": "creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.list": +} type CreativesListCall struct { s *Service @@ -1425,32 +1116,30 @@ type CreativesListCall struct { header_ http.Header } -// List: Retrieves a list of the authenticated user's active creatives. -// A creative will be available 30-40 minutes after submission. +// List: Retrieves a list of the authenticated user's active creatives. A +// creative will be available 30-40 minutes after submission. func (r *CreativesService) List() *CreativesListCall { c := &CreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of entries returned on one result page. If not set, the default is -// 100. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// entries returned on one result page. If not set, the default is 100. func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad clients. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad clients. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *CreativesListCall) PageToken(pageToken string) *CreativesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// StatusFilter sets the optional parameter "statusFilter": When -// specified, only creatives having the given status are returned. +// StatusFilter sets the optional parameter "statusFilter": When specified, +// only creatives having the given status are returned. // // Possible values: // @@ -1463,33 +1152,29 @@ func (c *CreativesListCall) StatusFilter(statusFilter string) *CreativesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1498,12 +1183,7 @@ func (c *CreativesListCall) Header() http.Header { } func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1517,16 +1197,14 @@ func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.list" call. -// Exactly one of *CreativesList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativesList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativesList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1534,17 +1212,17 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativesList{ ServerResponse: googleapi.ServerResponse{ @@ -1557,49 +1235,6 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.creatives.list", - // "parameters": { - // "maxResults": { - // "description": "Maximum number of entries returned on one result page. If not set, the default is 100. Optional.", - // "format": "uint32", - // "location": "query", - // "maximum": "1000", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response. Optional.", - // "location": "query", - // "type": "string" - // }, - // "statusFilter": { - // "description": "When specified, only creatives having the given status are returned.", - // "enum": [ - // "approved", - // "disapproved", - // "not_checked" - // ], - // "enumDescriptions": [ - // "Creatives which have been approved.", - // "Creatives which have been disapproved.", - // "Creatives whose status is not yet checked." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "creatives", - // "response": { - // "$ref": "CreativesList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } // Pages invokes f for each page of results. @@ -1607,7 +1242,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, er // The provided context supersedes any context provided to the Context method. func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/adexchangebuyer/v1.3/adexchangebuyer-gen.go b/adexchangebuyer/v1.3/adexchangebuyer-gen.go index 90f20826780..5713d8837d5 100644 --- a/adexchangebuyer/v1.3/adexchangebuyer-gen.go +++ b/adexchangebuyer/v1.3/adexchangebuyer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/ad-exchange/buyer-rest // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // adexchangebuyerService, err := adexchangebuyer.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // adexchangebuyerService, err := adexchangebuyer.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // adexchangebuyerService, err := adexchangebuyer.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package adexchangebuyer // import "google.golang.org/api/adexchangebuyer/v1.3" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "adexchangebuyer:v1.3" const apiName = "adexchangebuyer" const apiVersion = "v1.3" const basePath = "https://www.googleapis.com/adexchangebuyer/v1.3/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/adexchangebuyer/v1.3/" // OAuth2 scopes used by this API. const ( @@ -84,12 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/adexchange.buyer", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -218,218 +236,167 @@ type PretargetingConfigService struct { type Account struct { // BidderLocation: Your bidder locations that have distinct URLs. BidderLocation []*AccountBidderLocation `json:"bidderLocation,omitempty"` - - // CookieMatchingNid: The nid parameter value used in cookie match - // requests. Please contact your technical account manager if you need - // to change this. + // CookieMatchingNid: The nid parameter value used in cookie match requests. + // Please contact your technical account manager if you need to change this. CookieMatchingNid string `json:"cookieMatchingNid,omitempty"` - // CookieMatchingUrl: The base URL used in cookie match requests. CookieMatchingUrl string `json:"cookieMatchingUrl,omitempty"` - // Id: Account id. Id int64 `json:"id,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - - // MaximumActiveCreatives: The maximum number of active creatives that - // an account can have, where a creative is active if it was inserted or - // bid with in the last 30 days. Please contact your technical account - // manager if you need to change this. + // MaximumActiveCreatives: The maximum number of active creatives that an + // account can have, where a creative is active if it was inserted or bid with + // in the last 30 days. Please contact your technical account manager if you + // need to change this. MaximumActiveCreatives int64 `json:"maximumActiveCreatives,omitempty"` - - // MaximumTotalQps: The sum of all bidderLocation.maximumQps values - // cannot exceed this. Please contact your technical account manager if - // you need to change this. + // MaximumTotalQps: The sum of all bidderLocation.maximumQps values cannot + // exceed this. Please contact your technical account manager if you need to + // change this. MaximumTotalQps int64 `json:"maximumTotalQps,omitempty"` - - // NumberActiveCreatives: The number of creatives that this account - // inserted or bid with in the last 30 days. + // NumberActiveCreatives: The number of creatives that this account inserted or + // bid with in the last 30 days. NumberActiveCreatives int64 `json:"numberActiveCreatives,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BidderLocation") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BidderLocation") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BidderLocation") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountBidderLocation struct { // MaximumQps: The maximum queries per second the Ad Exchange will send. MaximumQps int64 `json:"maximumQps,omitempty"` - - // Region: The geographical region the Ad Exchange should send requests - // from. Only used by some quota systems, but always setting the value - // is recommended. Allowed values: + // Region: The geographical region the Ad Exchange should send requests from. + // Only used by some quota systems, but always setting the value is + // recommended. Allowed values: // - ASIA // - EUROPE // - US_EAST // - US_WEST Region string `json:"region,omitempty"` - // Url: The URL to which the Ad Exchange will send bid requests. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaximumQps") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaximumQps") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaximumQps") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountBidderLocation) MarshalJSON() ([]byte, error) { +func (s AccountBidderLocation) MarshalJSON() ([]byte, error) { type NoMethod AccountBidderLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountsList: An account feed lists Ad Exchange buyer accounts that -// the user has access to. Each entry in the feed corresponds to a -// single buyer account. +// AccountsList: An account feed lists Ad Exchange buyer accounts that the user +// has access to. Each entry in the feed corresponds to a single buyer account. type AccountsList struct { // Items: A list of accounts. Items []*Account `json:"items,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsList) MarshalJSON() ([]byte, error) { +func (s AccountsList) MarshalJSON() ([]byte, error) { type NoMethod AccountsList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BillingInfo: The configuration data for an Ad Exchange billing info. type BillingInfo struct { // AccountId: Account id. AccountId int64 `json:"accountId,omitempty"` - // AccountName: Account name. AccountName string `json:"accountName,omitempty"` - - // BillingId: A list of adgroup IDs associated with this particular - // account. These IDs may show up as part of a realtime bidding - // BidRequest, which indicates a bid request for this account. + // BillingId: A list of adgroup IDs associated with this particular account. + // These IDs may show up as part of a realtime bidding BidRequest, which + // indicates a bid request for this account. BillingId []string `json:"billingId,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BillingInfo) MarshalJSON() ([]byte, error) { +func (s BillingInfo) MarshalJSON() ([]byte, error) { type NoMethod BillingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BillingInfoList: A billing info feed lists Billing Info the Ad -// Exchange buyer account has access to. Each entry in the feed -// corresponds to a single billing info. +// BillingInfoList: A billing info feed lists Billing Info the Ad Exchange +// buyer account has access to. Each entry in the feed corresponds to a single +// billing info. type BillingInfoList struct { // Items: A list of billing info relevant for your account. Items []*BillingInfo `json:"items,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BillingInfoList) MarshalJSON() ([]byte, error) { +func (s BillingInfoList) MarshalJSON() ([]byte, error) { type NoMethod BillingInfoList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Budget: The configuration data for Ad Exchange RTB - Budget API. @@ -437,414 +404,304 @@ type Budget struct { // AccountId: The id of the account. This is required for get and update // requests. AccountId int64 `json:"accountId,omitempty,string"` - - // BillingId: The billing id to determine which adgroup to provide - // budget information for. This is required for get and update requests. + // BillingId: The billing id to determine which adgroup to provide budget + // information for. This is required for get and update requests. BillingId int64 `json:"billingId,omitempty,string"` - - // BudgetAmount: The daily budget amount in unit amount of the account - // currency to apply for the billingId provided. This is required for - // update requests. + // BudgetAmount: The daily budget amount in unit amount of the account currency + // to apply for the billingId provided. This is required for update requests. BudgetAmount int64 `json:"budgetAmount,omitempty,string"` - - // CurrencyCode: The currency code for the buyer. This cannot be altered - // here. + // CurrencyCode: The currency code for the buyer. This cannot be altered here. CurrencyCode string `json:"currencyCode,omitempty"` - // Id: The unique id that describes this item. Id string `json:"id,omitempty"` - // Kind: The kind of the resource, i.e. "adexchangebuyer#budget". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Budget) MarshalJSON() ([]byte, error) { +func (s Budget) MarshalJSON() ([]byte, error) { type NoMethod Budget - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Creative: A creative and its classification data. type Creative struct { - // HTMLSnippet: The HTML snippet that displays the ad when inserted in - // the web page. If set, videoURL should not be set. + // HTMLSnippet: The HTML snippet that displays the ad when inserted in the web + // page. If set, videoURL should not be set. HTMLSnippet string `json:"HTMLSnippet,omitempty"` - // AccountId: Account id. - AccountId int64 `json:"accountId,omitempty"` - + AccountId int64 `json:"accountId,omitempty"` AdTechnologyProviders *CreativeAdTechnologyProviders `json:"adTechnologyProviders,omitempty"` - - // AdvertiserId: Detected advertiser id, if any. Read-only. This field - // should not be set in requests. + // AdvertiserId: Detected advertiser id, if any. Read-only. This field should + // not be set in requests. AdvertiserId googleapi.Int64s `json:"advertiserId,omitempty"` - - // AdvertiserName: The name of the company being advertised in the - // creative. + // AdvertiserName: The name of the company being advertised in the creative. AdvertiserName string `json:"advertiserName,omitempty"` - // AgencyId: The agency id for this creative. AgencyId int64 `json:"agencyId,omitempty,string"` - - // ApiUploadTimestamp: The last upload timestamp of this creative if it - // was uploaded via API. Read-only. The value of this field is - // generated, and will be ignored for uploads. (formatted RFC 3339 - // timestamp). + // ApiUploadTimestamp: The last upload timestamp of this creative if it was + // uploaded via API. Read-only. The value of this field is generated, and will + // be ignored for uploads. (formatted RFC 3339 timestamp). ApiUploadTimestamp string `json:"apiUploadTimestamp,omitempty"` - - // Attribute: All attributes for the ads that may be shown from this - // snippet. + // Attribute: All attributes for the ads that may be shown from this snippet. Attribute []int64 `json:"attribute,omitempty"` - - // BuyerCreativeId: A buyer-specific id identifying the creative in this - // ad. + // BuyerCreativeId: A buyer-specific id identifying the creative in this ad. BuyerCreativeId string `json:"buyerCreativeId,omitempty"` - // ClickThroughUrl: The set of destination urls for the snippet. ClickThroughUrl []string `json:"clickThroughUrl,omitempty"` - - // Corrections: Shows any corrections that were applied to this - // creative. Read-only. This field should not be set in requests. + // Corrections: Shows any corrections that were applied to this creative. + // Read-only. This field should not be set in requests. Corrections []*CreativeCorrections `json:"corrections,omitempty"` - - // DisapprovalReasons: The reasons for disapproval, if any. Note that - // not all disapproval reasons may be categorized, so it is possible for - // the creative to have a status of DISAPPROVED with an empty list for - // disapproval_reasons. In this case, please reach out to your TAM to - // help debug the issue. Read-only. This field should not be set in - // requests. + // DisapprovalReasons: The reasons for disapproval, if any. Note that not all + // disapproval reasons may be categorized, so it is possible for the creative + // to have a status of DISAPPROVED with an empty list for disapproval_reasons. + // In this case, please reach out to your TAM to help debug the issue. + // Read-only. This field should not be set in requests. DisapprovalReasons []*CreativeDisapprovalReasons `json:"disapprovalReasons,omitempty"` - - // FilteringReasons: The filtering reasons for the creative. Read-only. - // This field should not be set in requests. + // FilteringReasons: The filtering reasons for the creative. Read-only. This + // field should not be set in requests. FilteringReasons *CreativeFilteringReasons `json:"filteringReasons,omitempty"` - // Height: Ad height. Height int64 `json:"height,omitempty"` - - // ImpressionTrackingUrl: The set of urls to be called to record an - // impression. + // ImpressionTrackingUrl: The set of urls to be called to record an impression. ImpressionTrackingUrl []string `json:"impressionTrackingUrl,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - - // NativeAd: If nativeAd is set, HTMLSnippet and videoURL should not be - // set. + // NativeAd: If nativeAd is set, HTMLSnippet and videoURL should not be set. NativeAd *CreativeNativeAd `json:"nativeAd,omitempty"` - - // ProductCategories: Detected product categories, if any. Read-only. - // This field should not be set in requests. + // ProductCategories: Detected product categories, if any. Read-only. This + // field should not be set in requests. ProductCategories []int64 `json:"productCategories,omitempty"` - - // RestrictedCategories: All restricted categories for the ads that may - // be shown from this snippet. + // RestrictedCategories: All restricted categories for the ads that may be + // shown from this snippet. RestrictedCategories []int64 `json:"restrictedCategories,omitempty"` - - // SensitiveCategories: Detected sensitive categories, if any. - // Read-only. This field should not be set in requests. + // SensitiveCategories: Detected sensitive categories, if any. Read-only. This + // field should not be set in requests. SensitiveCategories []int64 `json:"sensitiveCategories,omitempty"` - - // Status: Creative serving status. Read-only. This field should not be - // set in requests. + // Status: Creative serving status. Read-only. This field should not be set in + // requests. Status string `json:"status,omitempty"` - // VendorType: All vendor types for the ads that may be shown from this // snippet. VendorType []int64 `json:"vendorType,omitempty"` - - // Version: The version for this creative. Read-only. This field should - // not be set in requests. + // Version: The version for this creative. Read-only. This field should not be + // set in requests. Version int64 `json:"version,omitempty"` - - // VideoURL: The URL to fetch a video ad. If set, HTMLSnippet and the - // nativeAd should not be set. + // VideoURL: The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd + // should not be set. VideoURL string `json:"videoURL,omitempty"` - // Width: Ad width. Width int64 `json:"width,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HTMLSnippet") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HTMLSnippet") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HTMLSnippet") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Creative) MarshalJSON() ([]byte, error) { +func (s Creative) MarshalJSON() ([]byte, error) { type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeAdTechnologyProviders struct { // DetectedProviderIds: The detected ad technology provider IDs for this // creative. See // https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for - // mapping of provider ID to provided name, a privacy policy URL, and a - // list of domains which can be attributed to the provider. If this - // creative contains provider IDs that are outside of those listed in - // the - // `BidRequest.adslot.consented_providers_settings.consented_providers` - // field on the Authorized Buyers Real-Time Bidding protocol or the - // `BidRequest.user.ext.consented_providers_settings.consented_providers` - // field on the OpenRTB protocol, a bid submitted for a European - // Economic Area (EEA) user with this creative is not compliant with the - // GDPR policies as mentioned in the "Third-party Ad Technology Vendors" - // section of Authorized Buyers Program Guidelines. + // mapping of provider ID to provided name, a privacy policy URL, and a list of + // domains which can be attributed to the provider. If this creative contains + // provider IDs that are outside of those listed in the + // `BidRequest.adslot.consented_providers_settings.consented_providers` field + // on the Authorized Buyers Real-Time Bidding protocol or the + // `BidRequest.user.ext.consented_providers_settings.consented_providers` field + // on the OpenRTB protocol, a bid submitted for a European Economic Area (EEA) + // user with this creative is not compliant with the GDPR policies as mentioned + // in the "Third-party Ad Technology Vendors" section of Authorized Buyers + // Program Guidelines. DetectedProviderIds googleapi.Int64s `json:"detectedProviderIds,omitempty"` - - // HasUnidentifiedProvider: Whether the creative contains an - // unidentified ad technology provider. If true, a bid submitted for a - // European Economic Area (EEA) user with this creative is not compliant - // with the GDPR policies as mentioned in the "Third-party Ad Technology - // Vendors" section of Authorized Buyers Program Guidelines. + // HasUnidentifiedProvider: Whether the creative contains an unidentified ad + // technology provider. If true, a bid submitted for a European Economic Area + // (EEA) user with this creative is not compliant with the GDPR policies as + // mentioned in the "Third-party Ad Technology Vendors" section of Authorized + // Buyers Program Guidelines. HasUnidentifiedProvider bool `json:"hasUnidentifiedProvider,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DetectedProviderIds") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DetectedProviderIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DetectedProviderIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DetectedProviderIds") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAdTechnologyProviders) MarshalJSON() ([]byte, error) { +func (s CreativeAdTechnologyProviders) MarshalJSON() ([]byte, error) { type NoMethod CreativeAdTechnologyProviders - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeCorrections struct { // Details: Additional details about the correction. Details []string `json:"details,omitempty"` - // Reason: The type of correction that was applied to the creative. Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeCorrections) MarshalJSON() ([]byte, error) { +func (s CreativeCorrections) MarshalJSON() ([]byte, error) { type NoMethod CreativeCorrections - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeDisapprovalReasons struct { // Details: Additional details about the reason for disapproval. Details []string `json:"details,omitempty"` - // Reason: The categorized reason for disapproval. Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeDisapprovalReasons) MarshalJSON() ([]byte, error) { +func (s CreativeDisapprovalReasons) MarshalJSON() ([]byte, error) { type NoMethod CreativeDisapprovalReasons - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeFilteringReasons: The filtering reasons for the creative. -// Read-only. This field should not be set in requests. +// CreativeFilteringReasons: The filtering reasons for the creative. Read-only. +// This field should not be set in requests. type CreativeFilteringReasons struct { - // Date: The date in ISO 8601 format for the data. The data is collected - // from 00:00:00 to 23:59:59 in PST. + // Date: The date in ISO 8601 format for the data. The data is collected from + // 00:00:00 to 23:59:59 in PST. Date string `json:"date,omitempty"` - // Reasons: The filtering reasons. Reasons []*CreativeFilteringReasonsReasons `json:"reasons,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Date") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Date") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Date") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Date") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFilteringReasons) MarshalJSON() ([]byte, error) { +func (s CreativeFilteringReasons) MarshalJSON() ([]byte, error) { type NoMethod CreativeFilteringReasons - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeFilteringReasonsReasons struct { // FilteringCount: The number of times the creative was filtered for the - // status. The count is aggregated across all publishers on the - // exchange. + // status. The count is aggregated across all publishers on the exchange. FilteringCount int64 `json:"filteringCount,omitempty,string"` - // FilteringStatus: The filtering status code. Please refer to the // creative-status-codes.txt file for different statuses. FilteringStatus int64 `json:"filteringStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilteringCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FilteringCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FilteringCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFilteringReasonsReasons) MarshalJSON() ([]byte, error) { +func (s CreativeFilteringReasonsReasons) MarshalJSON() ([]byte, error) { type NoMethod CreativeFilteringReasonsReasons - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeNativeAd: If nativeAd is set, HTMLSnippet and videoURL should -// not be set. +// CreativeNativeAd: If nativeAd is set, HTMLSnippet and videoURL should not be +// set. type CreativeNativeAd struct { Advertiser string `json:"advertiser,omitempty"` - // AppIcon: The app icon, for app download ads. AppIcon *CreativeNativeAdAppIcon `json:"appIcon,omitempty"` - // Body: A long description of the ad. Body string `json:"body,omitempty"` - - // CallToAction: A label for the button that the user is supposed to - // click. + // CallToAction: A label for the button that the user is supposed to click. CallToAction string `json:"callToAction,omitempty"` - // ClickTrackingUrl: The URL to use for click tracking. ClickTrackingUrl string `json:"clickTrackingUrl,omitempty"` - // Headline: A short title for the ad. Headline string `json:"headline,omitempty"` - // Image: A large image. Image *CreativeNativeAdImage `json:"image,omitempty"` - - // ImpressionTrackingUrl: The URLs are called when the impression is - // rendered. + // ImpressionTrackingUrl: The URLs are called when the impression is rendered. ImpressionTrackingUrl []string `json:"impressionTrackingUrl,omitempty"` - // Logo: A smaller image, for the advertiser logo. Logo *CreativeNativeAdLogo `json:"logo,omitempty"` - // Price: The price of the promoted app including the currency info. Price string `json:"price,omitempty"` - - // StarRating: The app rating in the app store. Must be in the range - // [0-5]. + // StarRating: The app rating in the app store. Must be in the range [0-5]. StarRating float64 `json:"starRating,omitempty"` - // ForceSendFields is a list of field names (e.g. "Advertiser") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Advertiser") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Advertiser") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeNativeAd) MarshalJSON() ([]byte, error) { +func (s CreativeNativeAd) MarshalJSON() ([]byte, error) { type NoMethod CreativeNativeAd - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CreativeNativeAd) UnmarshalJSON(data []byte) error { @@ -863,373 +720,274 @@ func (s *CreativeNativeAd) UnmarshalJSON(data []byte) error { // CreativeNativeAdAppIcon: The app icon, for app download ads. type CreativeNativeAdAppIcon struct { - Height int64 `json:"height,omitempty"` - - Url string `json:"url,omitempty"` - - Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Height int64 `json:"height,omitempty"` + Url string `json:"url,omitempty"` + Width int64 `json:"width,omitempty"` + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeNativeAdAppIcon) MarshalJSON() ([]byte, error) { +func (s CreativeNativeAdAppIcon) MarshalJSON() ([]byte, error) { type NoMethod CreativeNativeAdAppIcon - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeNativeAdImage: A large image. type CreativeNativeAdImage struct { - Height int64 `json:"height,omitempty"` - - Url string `json:"url,omitempty"` - - Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Height int64 `json:"height,omitempty"` + Url string `json:"url,omitempty"` + Width int64 `json:"width,omitempty"` + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeNativeAdImage) MarshalJSON() ([]byte, error) { +func (s CreativeNativeAdImage) MarshalJSON() ([]byte, error) { type NoMethod CreativeNativeAdImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeNativeAdLogo: A smaller image, for the advertiser logo. type CreativeNativeAdLogo struct { - Height int64 `json:"height,omitempty"` - - Url string `json:"url,omitempty"` - - Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Height int64 `json:"height,omitempty"` + Url string `json:"url,omitempty"` + Width int64 `json:"width,omitempty"` + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeNativeAdLogo) MarshalJSON() ([]byte, error) { +func (s CreativeNativeAdLogo) MarshalJSON() ([]byte, error) { type NoMethod CreativeNativeAdLogo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativesList: The creatives feed lists the active creatives for the -// Ad Exchange buyer accounts that the user has access to. Each entry in -// the feed corresponds to a single creative. +// CreativesList: The creatives feed lists the active creatives for the Ad +// Exchange buyer accounts that the user has access to. Each entry in the feed +// corresponds to a single creative. type CreativesList struct { // Items: A list of creatives. Items []*Creative `json:"items,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // NextPageToken: Continuation token used to page through creatives. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativesList) MarshalJSON() ([]byte, error) { +func (s CreativesList) MarshalJSON() ([]byte, error) { type NoMethod CreativesList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectDeal: The configuration data for an Ad Exchange direct deal. type DirectDeal struct { // AccountId: The account id of the buyer this deal is for. AccountId int64 `json:"accountId,omitempty"` - // Advertiser: The name of the advertiser this deal is for. Advertiser string `json:"advertiser,omitempty"` - - // AllowsAlcohol: Whether the publisher for this deal is eligible for - // alcohol ads. + // AllowsAlcohol: Whether the publisher for this deal is eligible for alcohol + // ads. AllowsAlcohol bool `json:"allowsAlcohol,omitempty"` - - // BuyerAccountId: The account id that this deal was negotiated for. It - // is either the buyer or the client that this deal was negotiated on - // behalf of. + // BuyerAccountId: The account id that this deal was negotiated for. It is + // either the buyer or the client that this deal was negotiated on behalf of. BuyerAccountId int64 `json:"buyerAccountId,omitempty,string"` - - // CurrencyCode: The currency code that applies to the fixed_cpm value. - // If not set then assumed to be USD. + // CurrencyCode: The currency code that applies to the fixed_cpm value. If not + // set then assumed to be USD. CurrencyCode string `json:"currencyCode,omitempty"` - - // DealTier: The deal type such as programmatic reservation or fixed - // price and so on. + // DealTier: The deal type such as programmatic reservation or fixed price and + // so on. DealTier string `json:"dealTier,omitempty"` - - // EndTime: End time for when this deal stops being active. If not set - // then this deal is valid until manually disabled by the publisher. In - // seconds since the epoch. + // EndTime: End time for when this deal stops being active. If not set then + // this deal is valid until manually disabled by the publisher. In seconds + // since the epoch. EndTime int64 `json:"endTime,omitempty,string"` - - // FixedCpm: The fixed price for this direct deal. In cpm micros of - // currency according to currency_code. If set, then this deal is - // eligible for the fixed price tier of buying (highest priority, pay - // exactly the configured fixed price). + // FixedCpm: The fixed price for this direct deal. In cpm micros of currency + // according to currency_code. If set, then this deal is eligible for the fixed + // price tier of buying (highest priority, pay exactly the configured fixed + // price). FixedCpm int64 `json:"fixedCpm,omitempty,string"` - // Id: Deal id. Id int64 `json:"id,omitempty,string"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // Name: Deal name. Name string `json:"name,omitempty"` - - // PrivateExchangeMinCpm: The minimum price for this direct deal. In cpm - // micros of currency according to currency_code. If set, then this deal - // is eligible for the private exchange tier of buying (below fixed - // price priority, run as a second price auction). + // PrivateExchangeMinCpm: The minimum price for this direct deal. In cpm micros + // of currency according to currency_code. If set, then this deal is eligible + // for the private exchange tier of buying (below fixed price priority, run as + // a second price auction). PrivateExchangeMinCpm int64 `json:"privateExchangeMinCpm,omitempty,string"` - - // PublisherBlocksOverriden: If true, the publisher has opted to have - // their blocks ignored when a creative is bid with for this deal. + // PublisherBlocksOverriden: If true, the publisher has opted to have their + // blocks ignored when a creative is bid with for this deal. PublisherBlocksOverriden bool `json:"publisherBlocksOverriden,omitempty"` - // SellerNetwork: The name of the publisher offering this direct deal. SellerNetwork string `json:"sellerNetwork,omitempty"` - - // StartTime: Start time for when this deal becomes active. If not set - // then this deal is active immediately upon creation. In seconds since - // the epoch. + // StartTime: Start time for when this deal becomes active. If not set then + // this deal is active immediately upon creation. In seconds since the epoch. StartTime int64 `json:"startTime,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectDeal) MarshalJSON() ([]byte, error) { +func (s DirectDeal) MarshalJSON() ([]byte, error) { type NoMethod DirectDeal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectDealsList: A direct deals feed lists Direct Deals the Ad -// Exchange buyer account has access to. This includes direct deals set -// up for the buyer account as well as its merged stream seats. +// DirectDealsList: A direct deals feed lists Direct Deals the Ad Exchange +// buyer account has access to. This includes direct deals set up for the buyer +// account as well as its merged stream seats. type DirectDealsList struct { // DirectDeals: A list of direct deals relevant for your account. DirectDeals []*DirectDeal `json:"directDeals,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DirectDeals") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DirectDeals") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DirectDeals") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectDealsList) MarshalJSON() ([]byte, error) { +func (s DirectDealsList) MarshalJSON() ([]byte, error) { type NoMethod DirectDealsList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PerformanceReport: The configuration data for an Ad Exchange -// performance report list. +// PerformanceReport: The configuration data for an Ad Exchange performance +// report list. type PerformanceReport struct { // BidRate: The number of bid responses with an ad. BidRate float64 `json:"bidRate,omitempty"` - // BidRequestRate: The number of bid requests sent to your bidder. BidRequestRate float64 `json:"bidRequestRate,omitempty"` - - // CalloutStatusRate: Rate of various prefiltering statuses per match. - // Please refer to the callout-status-codes.txt file for different - // statuses. + // CalloutStatusRate: Rate of various prefiltering statuses per match. Please + // refer to the callout-status-codes.txt file for different statuses. CalloutStatusRate []interface{} `json:"calloutStatusRate,omitempty"` - // CookieMatcherStatusRate: Average QPS for cookie matcher operations. CookieMatcherStatusRate []interface{} `json:"cookieMatcherStatusRate,omitempty"` - - // CreativeStatusRate: Rate of ads with a given status. Please refer to - // the creative-status-codes.txt file for different statuses. + // CreativeStatusRate: Rate of ads with a given status. Please refer to the + // creative-status-codes.txt file for different statuses. CreativeStatusRate []interface{} `json:"creativeStatusRate,omitempty"` - - // FilteredBidRate: The number of bid responses that were filtered due - // to a policy violation or other errors. + // FilteredBidRate: The number of bid responses that were filtered due to a + // policy violation or other errors. FilteredBidRate float64 `json:"filteredBidRate,omitempty"` - // HostedMatchStatusRate: Average QPS for hosted match operations. HostedMatchStatusRate []interface{} `json:"hostedMatchStatusRate,omitempty"` - // InventoryMatchRate: The number of potential queries based on your // pretargeting settings. InventoryMatchRate float64 `json:"inventoryMatchRate,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // Latency50thPercentile: The 50th percentile round trip latency(ms) as - // perceived from Google servers for the duration period covered by the - // report. + // perceived from Google servers for the duration period covered by the report. Latency50thPercentile float64 `json:"latency50thPercentile,omitempty"` - // Latency85thPercentile: The 85th percentile round trip latency(ms) as - // perceived from Google servers for the duration period covered by the - // report. + // perceived from Google servers for the duration period covered by the report. Latency85thPercentile float64 `json:"latency85thPercentile,omitempty"` - // Latency95thPercentile: The 95th percentile round trip latency(ms) as - // perceived from Google servers for the duration period covered by the - // report. + // perceived from Google servers for the duration period covered by the report. Latency95thPercentile float64 `json:"latency95thPercentile,omitempty"` - - // NoQuotaInRegion: Rate of various quota account statuses per quota - // check. + // NoQuotaInRegion: Rate of various quota account statuses per quota check. NoQuotaInRegion float64 `json:"noQuotaInRegion,omitempty"` - // OutOfQuota: Rate of various quota account statuses per quota check. OutOfQuota float64 `json:"outOfQuota,omitempty"` - - // PixelMatchRequests: Average QPS for pixel match requests from - // clients. + // PixelMatchRequests: Average QPS for pixel match requests from clients. PixelMatchRequests float64 `json:"pixelMatchRequests,omitempty"` - - // PixelMatchResponses: Average QPS for pixel match responses from - // clients. + // PixelMatchResponses: Average QPS for pixel match responses from clients. PixelMatchResponses float64 `json:"pixelMatchResponses,omitempty"` - // QuotaConfiguredLimit: The configured quota limits for this account. QuotaConfiguredLimit float64 `json:"quotaConfiguredLimit,omitempty"` - // QuotaThrottledLimit: The throttled quota limits for this account. QuotaThrottledLimit float64 `json:"quotaThrottledLimit,omitempty"` - // Region: The trading location of this data. Region string `json:"region,omitempty"` - - // SuccessfulRequestRate: The number of properly formed bid responses - // received by our servers within the deadline. + // SuccessfulRequestRate: The number of properly formed bid responses received + // by our servers within the deadline. SuccessfulRequestRate float64 `json:"successfulRequestRate,omitempty"` - - // Timestamp: The unix timestamp of the starting time of this - // performance data. + // Timestamp: The unix timestamp of the starting time of this performance data. Timestamp int64 `json:"timestamp,omitempty,string"` - - // UnsuccessfulRequestRate: The number of bid responses that were - // unsuccessful due to timeouts, incorrect formatting, etc. + // UnsuccessfulRequestRate: The number of bid responses that were unsuccessful + // due to timeouts, incorrect formatting, etc. UnsuccessfulRequestRate float64 `json:"unsuccessfulRequestRate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BidRate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BidRate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BidRate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BidRate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PerformanceReport) MarshalJSON() ([]byte, error) { +func (s PerformanceReport) MarshalJSON() ([]byte, error) { type NoMethod PerformanceReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PerformanceReport) UnmarshalJSON(data []byte) error { @@ -1274,305 +1032,229 @@ func (s *PerformanceReport) UnmarshalJSON(data []byte) error { return nil } -// PerformanceReportList: The configuration data for an Ad Exchange -// performance report list. +// PerformanceReportList: The configuration data for an Ad Exchange performance +// report list. type PerformanceReportList struct { // Kind: Resource type. Kind string `json:"kind,omitempty"` - - // PerformanceReport: A list of performance reports relevant for the - // account. + // PerformanceReport: A list of performance reports relevant for the account. PerformanceReport []*PerformanceReport `json:"performanceReport,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PerformanceReportList) MarshalJSON() ([]byte, error) { +func (s PerformanceReportList) MarshalJSON() ([]byte, error) { type NoMethod PerformanceReportList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfig struct { - // BillingId: The id for billing purposes, provided for reference. Leave - // this field blank for insert requests; the id will be generated - // automatically. + // BillingId: The id for billing purposes, provided for reference. Leave this + // field blank for insert requests; the id will be generated automatically. BillingId int64 `json:"billingId,omitempty,string"` - - // ConfigId: The config id; generated automatically. Leave this field - // blank for insert requests. + // ConfigId: The config id; generated automatically. Leave this field blank for + // insert requests. ConfigId int64 `json:"configId,omitempty,string"` - // ConfigName: The name of the config. Must be unique. Required for all // requests. ConfigName string `json:"configName,omitempty"` - // CreativeType: List must contain exactly one of // PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO. CreativeType []string `json:"creativeType,omitempty"` - - // Dimensions: Requests which allow one of these (width, height) pairs - // will match. All pairs must be supported ad dimensions. + // Dimensions: Requests which allow one of these (width, height) pairs will + // match. All pairs must be supported ad dimensions. Dimensions []*PretargetingConfigDimensions `json:"dimensions,omitempty"` - - // ExcludedContentLabels: Requests with any of these content labels will - // not match. Values are from content-labels.txt in the downloadable - // files section. + // ExcludedContentLabels: Requests with any of these content labels will not + // match. Values are from content-labels.txt in the downloadable files section. ExcludedContentLabels googleapi.Int64s `json:"excludedContentLabels,omitempty"` - - // ExcludedGeoCriteriaIds: Requests containing any of these geo criteria - // ids will not match. + // ExcludedGeoCriteriaIds: Requests containing any of these geo criteria ids + // will not match. ExcludedGeoCriteriaIds googleapi.Int64s `json:"excludedGeoCriteriaIds,omitempty"` - - // ExcludedPlacements: Requests containing any of these placements will - // not match. + // ExcludedPlacements: Requests containing any of these placements will not + // match. ExcludedPlacements []*PretargetingConfigExcludedPlacements `json:"excludedPlacements,omitempty"` - - // ExcludedUserLists: Requests containing any of these users list ids - // will not match. + // ExcludedUserLists: Requests containing any of these users list ids will not + // match. ExcludedUserLists googleapi.Int64s `json:"excludedUserLists,omitempty"` - - // ExcludedVerticals: Requests containing any of these vertical ids will - // not match. Values are from the publisher-verticals.txt file in the - // downloadable files section. + // ExcludedVerticals: Requests containing any of these vertical ids will not + // match. Values are from the publisher-verticals.txt file in the downloadable + // files section. ExcludedVerticals googleapi.Int64s `json:"excludedVerticals,omitempty"` - - // GeoCriteriaIds: Requests containing any of these geo criteria ids - // will match. + // GeoCriteriaIds: Requests containing any of these geo criteria ids will + // match. GeoCriteriaIds googleapi.Int64s `json:"geoCriteriaIds,omitempty"` - // IsActive: Whether this config is active. Required for all requests. IsActive bool `json:"isActive,omitempty"` - - // Kind: The kind of the resource, i.e. - // "adexchangebuyer#pretargetingConfig". + // Kind: The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig". Kind string `json:"kind,omitempty"` - // Languages: Request containing any of these language codes will match. Languages []string `json:"languages,omitempty"` - - // MaximumQps: The maximum QPS allocated to this pretargeting - // configuration, used for pretargeting-level QPS limits. By default, - // this is not set, which indicates that there is no QPS limit at the - // configuration level (a global or account-level limit may still be - // imposed). + // MaximumQps: The maximum QPS allocated to this pretargeting configuration, + // used for pretargeting-level QPS limits. By default, this is not set, which + // indicates that there is no QPS limit at the configuration level (a global or + // account-level limit may still be imposed). MaximumQps int64 `json:"maximumQps,omitempty,string"` - - // MobileCarriers: Requests containing any of these mobile carrier ids - // will match. Values are from mobile-carriers.csv in the downloadable - // files section. + // MobileCarriers: Requests containing any of these mobile carrier ids will + // match. Values are from mobile-carriers.csv in the downloadable files + // section. MobileCarriers googleapi.Int64s `json:"mobileCarriers,omitempty"` - - // MobileDevices: Requests containing any of these mobile device ids - // will match. Values are from mobile-devices.csv in the downloadable - // files section. + // MobileDevices: Requests containing any of these mobile device ids will + // match. Values are from mobile-devices.csv in the downloadable files section. MobileDevices googleapi.Int64s `json:"mobileDevices,omitempty"` - - // MobileOperatingSystemVersions: Requests containing any of these - // mobile operating system version ids will match. Values are from - // mobile-os.csv in the downloadable files section. + // MobileOperatingSystemVersions: Requests containing any of these mobile + // operating system version ids will match. Values are from mobile-os.csv in + // the downloadable files section. MobileOperatingSystemVersions googleapi.Int64s `json:"mobileOperatingSystemVersions,omitempty"` - // Placements: Requests containing any of these placements will match. Placements []*PretargetingConfigPlacements `json:"placements,omitempty"` - - // Platforms: Requests matching any of these platforms will match. - // Possible values are PRETARGETING_PLATFORM_MOBILE, - // PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET. + // Platforms: Requests matching any of these platforms will match. Possible + // values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and + // PRETARGETING_PLATFORM_TABLET. Platforms []string `json:"platforms,omitempty"` - - // SupportedCreativeAttributes: Creative attributes should be declared - // here if all creatives corresponding to this pretargeting - // configuration have that creative attribute. Values are from - // pretargetable-creative-attributes.txt in the downloadable files - // section. + // SupportedCreativeAttributes: Creative attributes should be declared here if + // all creatives corresponding to this pretargeting configuration have that + // creative attribute. Values are from pretargetable-creative-attributes.txt in + // the downloadable files section. SupportedCreativeAttributes googleapi.Int64s `json:"supportedCreativeAttributes,omitempty"` - // UserLists: Requests containing any of these user list ids will match. UserLists googleapi.Int64s `json:"userLists,omitempty"` - - // VendorTypes: Requests that allow any of these vendor ids will match. - // Values are from vendors.txt in the downloadable files section. + // VendorTypes: Requests that allow any of these vendor ids will match. Values + // are from vendors.txt in the downloadable files section. VendorTypes googleapi.Int64s `json:"vendorTypes,omitempty"` - // Verticals: Requests containing any of these vertical ids will match. Verticals googleapi.Int64s `json:"verticals,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BillingId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BillingId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BillingId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfig) MarshalJSON() ([]byte, error) { +func (s PretargetingConfig) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfigDimensions struct { // Height: Height in pixels. Height int64 `json:"height,omitempty,string"` - // Width: Width in pixels. Width int64 `json:"width,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfigDimensions) MarshalJSON() ([]byte, error) { +func (s PretargetingConfigDimensions) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfigDimensions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfigExcludedPlacements struct { - // Token: The value of the placement. Interpretation depends on the - // placement type, e.g. URL for a site placement, channel name for a - // channel placement, app id for a mobile app placement. + // Token: The value of the placement. Interpretation depends on the placement + // type, e.g. URL for a site placement, channel name for a channel placement, + // app id for a mobile app placement. Token string `json:"token,omitempty"` - // Type: The type of the placement. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Token") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Token") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Token") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfigExcludedPlacements) MarshalJSON() ([]byte, error) { +func (s PretargetingConfigExcludedPlacements) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfigExcludedPlacements - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfigPlacements struct { - // Token: The value of the placement. Interpretation depends on the - // placement type, e.g. URL for a site placement, channel name for a - // channel placement, app id for a mobile app placement. + // Token: The value of the placement. Interpretation depends on the placement + // type, e.g. URL for a site placement, channel name for a channel placement, + // app id for a mobile app placement. Token string `json:"token,omitempty"` - // Type: The type of the placement. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Token") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Token") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Token") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfigPlacements) MarshalJSON() ([]byte, error) { +func (s PretargetingConfigPlacements) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfigPlacements - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfigList struct { // Items: A list of pretargeting configs Items []*PretargetingConfig `json:"items,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfigList) MarshalJSON() ([]byte, error) { +func (s PretargetingConfigList) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfigList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "adexchangebuyer.accounts.get": - type AccountsGetCall struct { s *Service id int64 @@ -1592,33 +1274,29 @@ func (r *AccountsService) Get(id int64) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1627,12 +1305,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1649,16 +1322,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1666,17 +1337,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -1689,34 +1360,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Gets one account by ID.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.accounts.get", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The account id", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "accounts/{id}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.accounts.list": +} type AccountsListCall struct { s *Service @@ -1733,33 +1377,29 @@ func (r *AccountsService) List() *AccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1768,12 +1408,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1787,16 +1422,14 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.list" call. -// Exactly one of *AccountsList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AccountsList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1804,17 +1437,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsList{ ServerResponse: googleapi.ServerResponse{ @@ -1827,23 +1460,8 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsList, erro return nil, err } return ret, nil - // { - // "description": "Retrieves the authenticated user's list of accounts.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.accounts.list", - // "path": "accounts", - // "response": { - // "$ref": "AccountsList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } -// method id "adexchangebuyer.accounts.patch": - type AccountsPatchCall struct { s *Service id int64 @@ -1853,8 +1471,7 @@ type AccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing account. This method supports patch -// semantics. +// Patch: Updates an existing account. This method supports patch semantics. // // - id: The account id. func (r *AccountsService) Patch(id int64, account *Account) *AccountsPatchCall { @@ -1865,23 +1482,21 @@ func (r *AccountsService) Patch(id int64, account *Account) *AccountsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1890,18 +1505,12 @@ func (c *AccountsPatchCall) Header() http.Header { } func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{id}") @@ -1914,16 +1523,14 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.patch" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1931,17 +1538,17 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -1954,37 +1561,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing account. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "adexchangebuyer.accounts.patch", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The account id", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "accounts/{id}", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.accounts.update": +} type AccountsUpdateCall struct { s *Service @@ -2006,23 +1583,21 @@ func (r *AccountsService) Update(id int64, account *Account) *AccountsUpdateCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2031,18 +1606,12 @@ func (c *AccountsUpdateCall) Header() http.Header { } func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{id}") @@ -2055,16 +1624,14 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2072,17 +1639,17 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -2095,37 +1662,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing account.", - // "httpMethod": "PUT", - // "id": "adexchangebuyer.accounts.update", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The account id", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "accounts/{id}", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.billingInfo.get": +} type BillingInfoGetCall struct { s *Service @@ -2136,8 +1673,8 @@ type BillingInfoGetCall struct { header_ http.Header } -// Get: Returns the billing information for one account specified by -// account ID. +// Get: Returns the billing information for one account specified by account +// ID. // // - accountId: The account id. func (r *BillingInfoService) Get(accountId int64) *BillingInfoGetCall { @@ -2147,33 +1684,29 @@ func (r *BillingInfoService) Get(accountId int64) *BillingInfoGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BillingInfoGetCall) Fields(s ...googleapi.Field) *BillingInfoGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BillingInfoGetCall) IfNoneMatch(entityTag string) *BillingInfoGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BillingInfoGetCall) Context(ctx context.Context) *BillingInfoGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BillingInfoGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2182,12 +1715,7 @@ func (c *BillingInfoGetCall) Header() http.Header { } func (c *BillingInfoGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2204,16 +1732,14 @@ func (c *BillingInfoGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.billingInfo.get" call. -// Exactly one of *BillingInfo or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *BillingInfo.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BillingInfo.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BillingInfoGetCall) Do(opts ...googleapi.CallOption) (*BillingInfo, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2221,17 +1747,17 @@ func (c *BillingInfoGetCall) Do(opts ...googleapi.CallOption) (*BillingInfo, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BillingInfo{ ServerResponse: googleapi.ServerResponse{ @@ -2244,34 +1770,7 @@ func (c *BillingInfoGetCall) Do(opts ...googleapi.CallOption) (*BillingInfo, err return nil, err } return ret, nil - // { - // "description": "Returns the billing information for one account specified by account ID.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.billingInfo.get", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "billinginfo/{accountId}", - // "response": { - // "$ref": "BillingInfo" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.billingInfo.list": +} type BillingInfoListCall struct { s *Service @@ -2289,33 +1788,29 @@ func (r *BillingInfoService) List() *BillingInfoListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BillingInfoListCall) Fields(s ...googleapi.Field) *BillingInfoListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BillingInfoListCall) IfNoneMatch(entityTag string) *BillingInfoListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BillingInfoListCall) Context(ctx context.Context) *BillingInfoListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BillingInfoListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2324,12 +1819,7 @@ func (c *BillingInfoListCall) Header() http.Header { } func (c *BillingInfoListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2343,16 +1833,15 @@ func (c *BillingInfoListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.billingInfo.list" call. -// Exactly one of *BillingInfoList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *BillingInfoList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BillingInfoList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BillingInfoListCall) Do(opts ...googleapi.CallOption) (*BillingInfoList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2360,17 +1849,17 @@ func (c *BillingInfoListCall) Do(opts ...googleapi.CallOption) (*BillingInfoList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BillingInfoList{ ServerResponse: googleapi.ServerResponse{ @@ -2383,23 +1872,8 @@ func (c *BillingInfoListCall) Do(opts ...googleapi.CallOption) (*BillingInfoList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of billing information for all accounts of the authenticated user.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.billingInfo.list", - // "path": "billinginfo", - // "response": { - // "$ref": "BillingInfoList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } -// method id "adexchangebuyer.budget.get": - type BudgetGetCall struct { s *Service accountId int64 @@ -2423,33 +1897,29 @@ func (r *BudgetService) Get(accountId int64, billingId int64) *BudgetGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BudgetGetCall) Fields(s ...googleapi.Field) *BudgetGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BudgetGetCall) IfNoneMatch(entityTag string) *BudgetGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BudgetGetCall) Context(ctx context.Context) *BudgetGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BudgetGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2458,12 +1928,7 @@ func (c *BudgetGetCall) Header() http.Header { } func (c *BudgetGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2481,16 +1946,14 @@ func (c *BudgetGetCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "billingId": strconv.FormatInt(c.billingId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.budget.get" call. -// Exactly one of *Budget or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Budget.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Budget.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BudgetGetCall) Do(opts ...googleapi.CallOption) (*Budget, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2498,17 +1961,17 @@ func (c *BudgetGetCall) Do(opts ...googleapi.CallOption) (*Budget, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Budget{ ServerResponse: googleapi.ServerResponse{ @@ -2521,42 +1984,7 @@ func (c *BudgetGetCall) Do(opts ...googleapi.CallOption) (*Budget, error) { return nil, err } return ret, nil - // { - // "description": "Returns the budget information for the adgroup specified by the accountId and billingId.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.budget.get", - // "parameterOrder": [ - // "accountId", - // "billingId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to get the budget information for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "billingId": { - // "description": "The billing id to get the budget information for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "billinginfo/{accountId}/{billingId}", - // "response": { - // "$ref": "Budget" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.budget.patch": +} type BudgetPatchCall struct { s *Service @@ -2568,9 +1996,9 @@ type BudgetPatchCall struct { header_ http.Header } -// Patch: Updates the budget amount for the budget of the adgroup -// specified by the accountId and billingId, with the budget amount in -// the request. This method supports patch semantics. +// Patch: Updates the budget amount for the budget of the adgroup specified by +// the accountId and billingId, with the budget amount in the request. This +// method supports patch semantics. // // - accountId: The account id associated with the budget being updated. // - billingId: The billing id associated with the budget being updated. @@ -2583,23 +2011,21 @@ func (r *BudgetService) Patch(accountId int64, billingId int64, budget *Budget) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BudgetPatchCall) Fields(s ...googleapi.Field) *BudgetPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BudgetPatchCall) Context(ctx context.Context) *BudgetPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BudgetPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2608,18 +2034,12 @@ func (c *BudgetPatchCall) Header() http.Header { } func (c *BudgetPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.budget) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "billinginfo/{accountId}/{billingId}") @@ -2633,16 +2053,14 @@ func (c *BudgetPatchCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "billingId": strconv.FormatInt(c.billingId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.budget.patch" call. -// Exactly one of *Budget or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Budget.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Budget.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BudgetPatchCall) Do(opts ...googleapi.CallOption) (*Budget, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2650,17 +2068,17 @@ func (c *BudgetPatchCall) Do(opts ...googleapi.CallOption) (*Budget, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Budget{ ServerResponse: googleapi.ServerResponse{ @@ -2673,45 +2091,7 @@ func (c *BudgetPatchCall) Do(opts ...googleapi.CallOption) (*Budget, error) { return nil, err } return ret, nil - // { - // "description": "Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "adexchangebuyer.budget.patch", - // "parameterOrder": [ - // "accountId", - // "billingId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id associated with the budget being updated.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "billingId": { - // "description": "The billing id associated with the budget being updated.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "billinginfo/{accountId}/{billingId}", - // "request": { - // "$ref": "Budget" - // }, - // "response": { - // "$ref": "Budget" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.budget.update": +} type BudgetUpdateCall struct { s *Service @@ -2723,9 +2103,8 @@ type BudgetUpdateCall struct { header_ http.Header } -// Update: Updates the budget amount for the budget of the adgroup -// specified by the accountId and billingId, with the budget amount in -// the request. +// Update: Updates the budget amount for the budget of the adgroup specified by +// the accountId and billingId, with the budget amount in the request. // // - accountId: The account id associated with the budget being updated. // - billingId: The billing id associated with the budget being updated. @@ -2738,23 +2117,21 @@ func (r *BudgetService) Update(accountId int64, billingId int64, budget *Budget) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BudgetUpdateCall) Fields(s ...googleapi.Field) *BudgetUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BudgetUpdateCall) Context(ctx context.Context) *BudgetUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BudgetUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2763,18 +2140,12 @@ func (c *BudgetUpdateCall) Header() http.Header { } func (c *BudgetUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.budget) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "billinginfo/{accountId}/{billingId}") @@ -2788,16 +2159,14 @@ func (c *BudgetUpdateCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "billingId": strconv.FormatInt(c.billingId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.budget.update" call. -// Exactly one of *Budget or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Budget.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Budget.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BudgetUpdateCall) Do(opts ...googleapi.CallOption) (*Budget, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2805,17 +2174,17 @@ func (c *BudgetUpdateCall) Do(opts ...googleapi.CallOption) (*Budget, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Budget{ ServerResponse: googleapi.ServerResponse{ @@ -2828,45 +2197,7 @@ func (c *BudgetUpdateCall) Do(opts ...googleapi.CallOption) (*Budget, error) { return nil, err } return ret, nil - // { - // "description": "Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request.", - // "httpMethod": "PUT", - // "id": "adexchangebuyer.budget.update", - // "parameterOrder": [ - // "accountId", - // "billingId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id associated with the budget being updated.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "billingId": { - // "description": "The billing id associated with the budget being updated.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "billinginfo/{accountId}/{billingId}", - // "request": { - // "$ref": "Budget" - // }, - // "response": { - // "$ref": "Budget" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.get": +} type CreativesGetCall struct { s *Service @@ -2878,8 +2209,8 @@ type CreativesGetCall struct { header_ http.Header } -// Get: Gets the status for a single creative. A creative will be -// available 30-40 minutes after submission. +// Get: Gets the status for a single creative. A creative will be available +// 30-40 minutes after submission. // // - accountId: The id for the account that will serve this creative. // - buyerCreativeId: The buyer-specific id for this creative. @@ -2891,33 +2222,29 @@ func (r *CreativesService) Get(accountId int64, buyerCreativeId string) *Creativ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2926,12 +2253,7 @@ func (c *CreativesGetCall) Header() http.Header { } func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2949,16 +2271,14 @@ func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "buyerCreativeId": c.buyerCreativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2966,17 +2286,17 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -2989,41 +2309,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return nil, err } return ret, nil - // { - // "description": "Gets the status for a single creative. A creative will be available 30-40 minutes after submission.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.creatives.get", - // "parameterOrder": [ - // "accountId", - // "buyerCreativeId" - // ], - // "parameters": { - // "accountId": { - // "description": "The id for the account that will serve this creative.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "buyerCreativeId": { - // "description": "The buyer-specific id for this creative.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "creatives/{accountId}/{buyerCreativeId}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.insert": +} type CreativesInsertCall struct { s *Service @@ -3041,23 +2327,21 @@ func (r *CreativesService) Insert(creative *Creative) *CreativesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3066,18 +2350,12 @@ func (c *CreativesInsertCall) Header() http.Header { } func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "creatives") @@ -3087,16 +2365,14 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.insert" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3104,17 +2380,17 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -3127,25 +2403,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Submit a new creative.", - // "httpMethod": "POST", - // "id": "adexchangebuyer.creatives.insert", - // "path": "creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.list": +} type CreativesListCall struct { s *Service @@ -3155,15 +2413,15 @@ type CreativesListCall struct { header_ http.Header } -// List: Retrieves a list of the authenticated user's active creatives. -// A creative will be available 30-40 minutes after submission. +// List: Retrieves a list of the authenticated user's active creatives. A +// creative will be available 30-40 minutes after submission. func (r *CreativesService) List() *CreativesListCall { c := &CreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// AccountId sets the optional parameter "accountId": When specified, -// only creatives for the given account ids are returned. +// AccountId sets the optional parameter "accountId": When specified, only +// creatives for the given account ids are returned. func (c *CreativesListCall) AccountId(accountId ...int64) *CreativesListCall { var accountId_ []string for _, v := range accountId { @@ -3174,32 +2432,29 @@ func (c *CreativesListCall) AccountId(accountId ...int64) *CreativesListCall { } // BuyerCreativeId sets the optional parameter "buyerCreativeId": When -// specified, only creatives for the given buyer creative ids are -// returned. +// specified, only creatives for the given buyer creative ids are returned. func (c *CreativesListCall) BuyerCreativeId(buyerCreativeId ...string) *CreativesListCall { c.urlParams_.SetMulti("buyerCreativeId", append([]string{}, buyerCreativeId...)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of entries returned on one result page. If not set, the default is -// 100. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// entries returned on one result page. If not set, the default is 100. func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad clients. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad clients. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *CreativesListCall) PageToken(pageToken string) *CreativesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// StatusFilter sets the optional parameter "statusFilter": When -// specified, only creatives having the given status are returned. +// StatusFilter sets the optional parameter "statusFilter": When specified, +// only creatives having the given status are returned. // // Possible values: // @@ -3212,33 +2467,29 @@ func (c *CreativesListCall) StatusFilter(statusFilter string) *CreativesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3247,12 +2498,7 @@ func (c *CreativesListCall) Header() http.Header { } func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3266,16 +2512,14 @@ func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.list" call. -// Exactly one of *CreativesList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativesList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativesList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3283,17 +2527,17 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativesList{ ServerResponse: googleapi.ServerResponse{ @@ -3306,62 +2550,6 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.creatives.list", - // "parameters": { - // "accountId": { - // "description": "When specified, only creatives for the given account ids are returned.", - // "format": "int32", - // "location": "query", - // "repeated": true, - // "type": "integer" - // }, - // "buyerCreativeId": { - // "description": "When specified, only creatives for the given buyer creative ids are returned.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Maximum number of entries returned on one result page. If not set, the default is 100. Optional.", - // "format": "uint32", - // "location": "query", - // "maximum": "1000", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response. Optional.", - // "location": "query", - // "type": "string" - // }, - // "statusFilter": { - // "description": "When specified, only creatives having the given status are returned.", - // "enum": [ - // "approved", - // "disapproved", - // "not_checked" - // ], - // "enumDescriptions": [ - // "Creatives which have been approved.", - // "Creatives which have been disapproved.", - // "Creatives whose status is not yet checked." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "creatives", - // "response": { - // "$ref": "CreativesList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } // Pages invokes f for each page of results. @@ -3369,7 +2557,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, er // The provided context supersedes any context provided to the Context method. func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3385,8 +2573,6 @@ func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesList) er } } -// method id "adexchangebuyer.directDeals.get": - type DirectDealsGetCall struct { s *Service id int64 @@ -3406,33 +2592,29 @@ func (r *DirectDealsService) Get(id int64) *DirectDealsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectDealsGetCall) Fields(s ...googleapi.Field) *DirectDealsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectDealsGetCall) IfNoneMatch(entityTag string) *DirectDealsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectDealsGetCall) Context(ctx context.Context) *DirectDealsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectDealsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3441,12 +2623,7 @@ func (c *DirectDealsGetCall) Header() http.Header { } func (c *DirectDealsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3463,16 +2640,14 @@ func (c *DirectDealsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.directDeals.get" call. -// Exactly one of *DirectDeal or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectDeal.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectDeal.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectDealsGetCall) Do(opts ...googleapi.CallOption) (*DirectDeal, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3480,17 +2655,17 @@ func (c *DirectDealsGetCall) Do(opts ...googleapi.CallOption) (*DirectDeal, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectDeal{ ServerResponse: googleapi.ServerResponse{ @@ -3503,34 +2678,7 @@ func (c *DirectDealsGetCall) Do(opts ...googleapi.CallOption) (*DirectDeal, erro return nil, err } return ret, nil - // { - // "description": "Gets one direct deal by ID.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.directDeals.get", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The direct deal id", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "directdeals/{id}", - // "response": { - // "$ref": "DirectDeal" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.directDeals.list": +} type DirectDealsListCall struct { s *Service @@ -3547,33 +2695,29 @@ func (r *DirectDealsService) List() *DirectDealsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectDealsListCall) Fields(s ...googleapi.Field) *DirectDealsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectDealsListCall) IfNoneMatch(entityTag string) *DirectDealsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectDealsListCall) Context(ctx context.Context) *DirectDealsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectDealsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3582,12 +2726,7 @@ func (c *DirectDealsListCall) Header() http.Header { } func (c *DirectDealsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3601,16 +2740,15 @@ func (c *DirectDealsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.directDeals.list" call. -// Exactly one of *DirectDealsList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectDealsList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectDealsList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DirectDealsListCall) Do(opts ...googleapi.CallOption) (*DirectDealsList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3618,17 +2756,17 @@ func (c *DirectDealsListCall) Do(opts ...googleapi.CallOption) (*DirectDealsList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectDealsList{ ServerResponse: googleapi.ServerResponse{ @@ -3641,23 +2779,8 @@ func (c *DirectDealsListCall) Do(opts ...googleapi.CallOption) (*DirectDealsList return nil, err } return ret, nil - // { - // "description": "Retrieves the authenticated user's list of direct deals.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.directDeals.list", - // "path": "directdeals", - // "response": { - // "$ref": "DirectDealsList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } -// method id "adexchangebuyer.performanceReport.list": - type PerformanceReportListCall struct { s *Service urlParams_ gensupport.URLParams @@ -3669,10 +2792,10 @@ type PerformanceReportListCall struct { // List: Retrieves the authenticated user's list of performance metrics. // // - accountId: The account id to get the reports. -// - endDateTime: The end time of the report in ISO 8601 timestamp -// format using UTC. -// - startDateTime: The start time of the report in ISO 8601 timestamp -// format using UTC. +// - endDateTime: The end time of the report in ISO 8601 timestamp format using +// UTC. +// - startDateTime: The start time of the report in ISO 8601 timestamp format +// using UTC. func (r *PerformanceReportService) List(accountId int64, endDateTime string, startDateTime string) *PerformanceReportListCall { c := &PerformanceReportListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("accountId", fmt.Sprint(accountId)) @@ -3681,51 +2804,45 @@ func (r *PerformanceReportService) List(accountId int64, endDateTime string, sta return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of entries returned on one result page. If not set, the default is -// 100. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// entries returned on one result page. If not set, the default is 100. func (c *PerformanceReportListCall) MaxResults(maxResults int64) *PerformanceReportListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through performance reports. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through performance reports. To retrieve the next page, set +// this parameter to the value of "nextPageToken" from the previous response. func (c *PerformanceReportListCall) PageToken(pageToken string) *PerformanceReportListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PerformanceReportListCall) Fields(s ...googleapi.Field) *PerformanceReportListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PerformanceReportListCall) IfNoneMatch(entityTag string) *PerformanceReportListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PerformanceReportListCall) Context(ctx context.Context) *PerformanceReportListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PerformanceReportListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3734,12 +2851,7 @@ func (c *PerformanceReportListCall) Header() http.Header { } func (c *PerformanceReportListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3753,16 +2865,15 @@ func (c *PerformanceReportListCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.performanceReport.list" call. -// Exactly one of *PerformanceReportList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PerformanceReportList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PerformanceReportList.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PerformanceReportListCall) Do(opts ...googleapi.CallOption) (*PerformanceReportList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3770,17 +2881,17 @@ func (c *PerformanceReportListCall) Do(opts ...googleapi.CallOption) (*Performan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PerformanceReportList{ ServerResponse: googleapi.ServerResponse{ @@ -3793,61 +2904,7 @@ func (c *PerformanceReportListCall) Do(opts ...googleapi.CallOption) (*Performan return nil, err } return ret, nil - // { - // "description": "Retrieves the authenticated user's list of performance metrics.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.performanceReport.list", - // "parameterOrder": [ - // "accountId", - // "endDateTime", - // "startDateTime" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to get the reports.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "endDateTime": { - // "description": "The end time of the report in ISO 8601 timestamp format using UTC.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Maximum number of entries returned on one result page. If not set, the default is 100. Optional.", - // "format": "uint32", - // "location": "query", - // "maximum": "1000", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through performance reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response. Optional.", - // "location": "query", - // "type": "string" - // }, - // "startDateTime": { - // "description": "The start time of the report in ISO 8601 timestamp format using UTC.", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "performancereport", - // "response": { - // "$ref": "PerformanceReportList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.delete": +} type PretargetingConfigDeleteCall struct { s *Service @@ -3870,23 +2927,21 @@ func (r *PretargetingConfigService) Delete(accountId int64, configId int64) *Pre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigDeleteCall) Fields(s ...googleapi.Field) *PretargetingConfigDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigDeleteCall) Context(ctx context.Context) *PretargetingConfigDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3895,12 +2950,7 @@ func (c *PretargetingConfigDeleteCall) Header() http.Header { } func (c *PretargetingConfigDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3915,7 +2965,7 @@ func (c *PretargetingConfigDeleteCall) doRequest(alt string) (*http.Response, er "accountId": strconv.FormatInt(c.accountId, 10), "configId": strconv.FormatInt(c.configId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.delete" call. @@ -3927,42 +2977,10 @@ func (c *PretargetingConfigDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing pretargeting config.", - // "httpMethod": "DELETE", - // "id": "adexchangebuyer.pretargetingConfig.delete", - // "parameterOrder": [ - // "accountId", - // "configId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to delete the pretargeting config for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "configId": { - // "description": "The specific id of the configuration to delete.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}/{configId}", - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.get": +} type PretargetingConfigGetCall struct { s *Service @@ -3986,33 +3004,29 @@ func (r *PretargetingConfigService) Get(accountId int64, configId int64) *Pretar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigGetCall) Fields(s ...googleapi.Field) *PretargetingConfigGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PretargetingConfigGetCall) IfNoneMatch(entityTag string) *PretargetingConfigGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigGetCall) Context(ctx context.Context) *PretargetingConfigGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4021,12 +3035,7 @@ func (c *PretargetingConfigGetCall) Header() http.Header { } func (c *PretargetingConfigGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4044,16 +3053,15 @@ func (c *PretargetingConfigGetCall) doRequest(alt string) (*http.Response, error "accountId": strconv.FormatInt(c.accountId, 10), "configId": strconv.FormatInt(c.configId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.get" call. -// Exactly one of *PretargetingConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PretargetingConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PretargetingConfigGetCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4061,17 +3069,17 @@ func (c *PretargetingConfigGetCall) Do(opts ...googleapi.CallOption) (*Pretarget if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PretargetingConfig{ ServerResponse: googleapi.ServerResponse{ @@ -4084,42 +3092,7 @@ func (c *PretargetingConfigGetCall) Do(opts ...googleapi.CallOption) (*Pretarget return nil, err } return ret, nil - // { - // "description": "Gets a specific pretargeting configuration", - // "httpMethod": "GET", - // "id": "adexchangebuyer.pretargetingConfig.get", - // "parameterOrder": [ - // "accountId", - // "configId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to get the pretargeting config for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "configId": { - // "description": "The specific id of the configuration to retrieve.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}/{configId}", - // "response": { - // "$ref": "PretargetingConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.insert": +} type PretargetingConfigInsertCall struct { s *Service @@ -4141,23 +3114,21 @@ func (r *PretargetingConfigService) Insert(accountId int64, pretargetingconfig * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigInsertCall) Fields(s ...googleapi.Field) *PretargetingConfigInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigInsertCall) Context(ctx context.Context) *PretargetingConfigInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4166,18 +3137,12 @@ func (c *PretargetingConfigInsertCall) Header() http.Header { } func (c *PretargetingConfigInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pretargetingconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "pretargetingconfigs/{accountId}") @@ -4190,16 +3155,15 @@ func (c *PretargetingConfigInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.insert" call. -// Exactly one of *PretargetingConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PretargetingConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PretargetingConfigInsertCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4207,17 +3171,17 @@ func (c *PretargetingConfigInsertCall) Do(opts ...googleapi.CallOption) (*Pretar if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PretargetingConfig{ ServerResponse: googleapi.ServerResponse{ @@ -4230,37 +3194,7 @@ func (c *PretargetingConfigInsertCall) Do(opts ...googleapi.CallOption) (*Pretar return nil, err } return ret, nil - // { - // "description": "Inserts a new pretargeting configuration.", - // "httpMethod": "POST", - // "id": "adexchangebuyer.pretargetingConfig.insert", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to insert the pretargeting config for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}", - // "request": { - // "$ref": "PretargetingConfig" - // }, - // "response": { - // "$ref": "PretargetingConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.list": +} type PretargetingConfigListCall struct { s *Service @@ -4282,33 +3216,29 @@ func (r *PretargetingConfigService) List(accountId int64) *PretargetingConfigLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigListCall) Fields(s ...googleapi.Field) *PretargetingConfigListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PretargetingConfigListCall) IfNoneMatch(entityTag string) *PretargetingConfigListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigListCall) Context(ctx context.Context) *PretargetingConfigListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4317,12 +3247,7 @@ func (c *PretargetingConfigListCall) Header() http.Header { } func (c *PretargetingConfigListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4339,16 +3264,15 @@ func (c *PretargetingConfigListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.list" call. -// Exactly one of *PretargetingConfigList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PretargetingConfigList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PretargetingConfigList.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PretargetingConfigListCall) Do(opts ...googleapi.CallOption) (*PretargetingConfigList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4356,17 +3280,17 @@ func (c *PretargetingConfigListCall) Do(opts ...googleapi.CallOption) (*Pretarge if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PretargetingConfigList{ ServerResponse: googleapi.ServerResponse{ @@ -4379,34 +3303,7 @@ func (c *PretargetingConfigListCall) Do(opts ...googleapi.CallOption) (*Pretarge return nil, err } return ret, nil - // { - // "description": "Retrieves a list of the authenticated user's pretargeting configurations.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.pretargetingConfig.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to get the pretargeting configs for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}", - // "response": { - // "$ref": "PretargetingConfigList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.patch": +} type PretargetingConfigPatchCall struct { s *Service @@ -4418,8 +3315,8 @@ type PretargetingConfigPatchCall struct { header_ http.Header } -// Patch: Updates an existing pretargeting config. This method supports -// patch semantics. +// Patch: Updates an existing pretargeting config. This method supports patch +// semantics. // // - accountId: The account id to update the pretargeting config for. // - configId: The specific id of the configuration to update. @@ -4432,23 +3329,21 @@ func (r *PretargetingConfigService) Patch(accountId int64, configId int64, preta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigPatchCall) Fields(s ...googleapi.Field) *PretargetingConfigPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigPatchCall) Context(ctx context.Context) *PretargetingConfigPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4457,18 +3352,12 @@ func (c *PretargetingConfigPatchCall) Header() http.Header { } func (c *PretargetingConfigPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pretargetingconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "pretargetingconfigs/{accountId}/{configId}") @@ -4482,16 +3371,15 @@ func (c *PretargetingConfigPatchCall) doRequest(alt string) (*http.Response, err "accountId": strconv.FormatInt(c.accountId, 10), "configId": strconv.FormatInt(c.configId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.patch" call. -// Exactly one of *PretargetingConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PretargetingConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PretargetingConfigPatchCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4499,17 +3387,17 @@ func (c *PretargetingConfigPatchCall) Do(opts ...googleapi.CallOption) (*Pretarg if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PretargetingConfig{ ServerResponse: googleapi.ServerResponse{ @@ -4522,45 +3410,7 @@ func (c *PretargetingConfigPatchCall) Do(opts ...googleapi.CallOption) (*Pretarg return nil, err } return ret, nil - // { - // "description": "Updates an existing pretargeting config. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "adexchangebuyer.pretargetingConfig.patch", - // "parameterOrder": [ - // "accountId", - // "configId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to update the pretargeting config for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "configId": { - // "description": "The specific id of the configuration to update.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}/{configId}", - // "request": { - // "$ref": "PretargetingConfig" - // }, - // "response": { - // "$ref": "PretargetingConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.update": +} type PretargetingConfigUpdateCall struct { s *Service @@ -4585,23 +3435,21 @@ func (r *PretargetingConfigService) Update(accountId int64, configId int64, pret } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigUpdateCall) Fields(s ...googleapi.Field) *PretargetingConfigUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigUpdateCall) Context(ctx context.Context) *PretargetingConfigUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4610,18 +3458,12 @@ func (c *PretargetingConfigUpdateCall) Header() http.Header { } func (c *PretargetingConfigUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pretargetingconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "pretargetingconfigs/{accountId}/{configId}") @@ -4635,16 +3477,15 @@ func (c *PretargetingConfigUpdateCall) doRequest(alt string) (*http.Response, er "accountId": strconv.FormatInt(c.accountId, 10), "configId": strconv.FormatInt(c.configId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.update" call. -// Exactly one of *PretargetingConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PretargetingConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PretargetingConfigUpdateCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4652,17 +3493,17 @@ func (c *PretargetingConfigUpdateCall) Do(opts ...googleapi.CallOption) (*Pretar if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PretargetingConfig{ ServerResponse: googleapi.ServerResponse{ @@ -4675,40 +3516,4 @@ func (c *PretargetingConfigUpdateCall) Do(opts ...googleapi.CallOption) (*Pretar return nil, err } return ret, nil - // { - // "description": "Updates an existing pretargeting config.", - // "httpMethod": "PUT", - // "id": "adexchangebuyer.pretargetingConfig.update", - // "parameterOrder": [ - // "accountId", - // "configId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to update the pretargeting config for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "configId": { - // "description": "The specific id of the configuration to update.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}/{configId}", - // "request": { - // "$ref": "PretargetingConfig" - // }, - // "response": { - // "$ref": "PretargetingConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } diff --git a/adexchangebuyer/v1.4/adexchangebuyer-gen.go b/adexchangebuyer/v1.4/adexchangebuyer-gen.go index 15cc07e940f..3cc29b35bea 100644 --- a/adexchangebuyer/v1.4/adexchangebuyer-gen.go +++ b/adexchangebuyer/v1.4/adexchangebuyer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/ad-exchange/buyer-rest // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // adexchangebuyerService, err := adexchangebuyer.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // adexchangebuyerService, err := adexchangebuyer.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // adexchangebuyerService, err := adexchangebuyer.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package adexchangebuyer // import "google.golang.org/api/adexchangebuyer/v1.4" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "adexchangebuyer:v1.4" const apiName = "adexchangebuyer" const apiVersion = "v1.4" const basePath = "https://www.googleapis.com/adexchangebuyer/v1.4/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/adexchangebuyer/v1.4/" // OAuth2 scopes used by this API. const ( @@ -84,12 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/adexchange.buyer", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -276,79 +294,62 @@ type PubprofilesService struct { // Account: Configuration data for an Ad Exchange buyer account. type Account struct { - // ApplyPretargetingToNonGuaranteedDeals: When this is false, bid - // requests that include a deal ID for a private auction or preferred - // deal are always sent to your bidder. When true, all active - // pretargeting configs will be applied to private auctions and - // preferred deals. Programmatic Guaranteed deals (when enabled) are - // always sent to your bidder. + // ApplyPretargetingToNonGuaranteedDeals: When this is false, bid requests that + // include a deal ID for a private auction or preferred deal are always sent to + // your bidder. When true, all active pretargeting configs will be applied to + // private auctions and preferred deals. Programmatic Guaranteed deals (when + // enabled) are always sent to your bidder. ApplyPretargetingToNonGuaranteedDeals bool `json:"applyPretargetingToNonGuaranteedDeals,omitempty"` - // BidderLocation: Your bidder locations that have distinct URLs. BidderLocation []*AccountBidderLocation `json:"bidderLocation,omitempty"` - - // CookieMatchingNid: The nid parameter value used in cookie match - // requests. Please contact your technical account manager if you need - // to change this. + // CookieMatchingNid: The nid parameter value used in cookie match requests. + // Please contact your technical account manager if you need to change this. CookieMatchingNid string `json:"cookieMatchingNid,omitempty"` - // CookieMatchingUrl: The base URL used in cookie match requests. CookieMatchingUrl string `json:"cookieMatchingUrl,omitempty"` - // Id: Account id. Id int64 `json:"id,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - - // MaximumActiveCreatives: The maximum number of active creatives that - // an account can have, where a creative is active if it was inserted or - // bid with in the last 30 days. Please contact your technical account - // manager if you need to change this. + // MaximumActiveCreatives: The maximum number of active creatives that an + // account can have, where a creative is active if it was inserted or bid with + // in the last 30 days. Please contact your technical account manager if you + // need to change this. MaximumActiveCreatives int64 `json:"maximumActiveCreatives,omitempty"` - - // MaximumTotalQps: The sum of all bidderLocation.maximumQps values - // cannot exceed this. Please contact your technical account manager if - // you need to change this. + // MaximumTotalQps: The sum of all bidderLocation.maximumQps values cannot + // exceed this. Please contact your technical account manager if you need to + // change this. MaximumTotalQps int64 `json:"maximumTotalQps,omitempty"` - - // NumberActiveCreatives: The number of creatives that this account - // inserted or bid with in the last 30 days. + // NumberActiveCreatives: The number of creatives that this account inserted or + // bid with in the last 30 days. NumberActiveCreatives int64 `json:"numberActiveCreatives,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "ApplyPretargetingToNonGuaranteedDeals") to unconditionally include - // in API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "ApplyPretargetingToNonGuaranteedDeals") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "ApplyPretargetingToNonGuaranteedDeals") to include in API requests - // with the JSON null value. By default, fields with empty values are - // omitted from API requests. However, any field with an empty value - // appearing in NullFields will be sent to the server as null. It is an - // error if a field in this list has a non-empty value. This may be used - // to include null fields in Patch requests. + // "ApplyPretargetingToNonGuaranteedDeals") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountBidderLocation struct { // BidProtocol: The protocol that the bidder endpoint is using. OpenRTB - // protocols with prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, - // otherwise use JSON. Allowed values: + // protocols with prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise + // use JSON. Allowed values: // - PROTOCOL_ADX // - PROTOCOL_OPENRTB_2_2 // - PROTOCOL_OPENRTB_2_3 @@ -358,285 +359,219 @@ type AccountBidderLocation struct { // - PROTOCOL_OPENRTB_PROTOBUF_2_4 // - PROTOCOL_OPENRTB_PROTOBUF_2_5 BidProtocol string `json:"bidProtocol,omitempty"` - // MaximumQps: The maximum queries per second the Ad Exchange will send. MaximumQps int64 `json:"maximumQps,omitempty"` - - // Region: The geographical region the Ad Exchange should send requests - // from. Only used by some quota systems, but always setting the value - // is recommended. Allowed values: + // Region: The geographical region the Ad Exchange should send requests from. + // Only used by some quota systems, but always setting the value is + // recommended. Allowed values: // - ASIA // - EUROPE // - US_EAST // - US_WEST Region string `json:"region,omitempty"` - // Url: The URL to which the Ad Exchange will send bid requests. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "BidProtocol") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BidProtocol") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BidProtocol") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountBidderLocation) MarshalJSON() ([]byte, error) { +func (s AccountBidderLocation) MarshalJSON() ([]byte, error) { type NoMethod AccountBidderLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountsList: An account feed lists Ad Exchange buyer accounts that -// the user has access to. Each entry in the feed corresponds to a -// single buyer account. +// AccountsList: An account feed lists Ad Exchange buyer accounts that the user +// has access to. Each entry in the feed corresponds to a single buyer account. type AccountsList struct { // Items: A list of accounts. Items []*Account `json:"items,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsList) MarshalJSON() ([]byte, error) { +func (s AccountsList) MarshalJSON() ([]byte, error) { type NoMethod AccountsList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AddOrderDealsRequest struct { // Deals: The list of deals to add Deals []*MarketplaceDeal `json:"deals,omitempty"` - // ProposalRevisionNumber: The last known proposal revision number. ProposalRevisionNumber int64 `json:"proposalRevisionNumber,omitempty,string"` - // UpdateAction: Indicates an optional action to take on the proposal UpdateAction string `json:"updateAction,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Deals") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Deals") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Deals") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AddOrderDealsRequest) MarshalJSON() ([]byte, error) { +func (s AddOrderDealsRequest) MarshalJSON() ([]byte, error) { type NoMethod AddOrderDealsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AddOrderDealsResponse struct { - // Deals: List of deals added (in the same proposal as passed in the - // request) + // Deals: List of deals added (in the same proposal as passed in the request) Deals []*MarketplaceDeal `json:"deals,omitempty"` - // ProposalRevisionNumber: The updated revision number for the proposal. ProposalRevisionNumber int64 `json:"proposalRevisionNumber,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Deals") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Deals") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Deals") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AddOrderDealsResponse) MarshalJSON() ([]byte, error) { +func (s AddOrderDealsResponse) MarshalJSON() ([]byte, error) { type NoMethod AddOrderDealsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AddOrderNotesRequest struct { // Notes: The list of notes to add. Notes []*MarketplaceNote `json:"notes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Notes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Notes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Notes") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AddOrderNotesRequest) MarshalJSON() ([]byte, error) { +func (s AddOrderNotesRequest) MarshalJSON() ([]byte, error) { type NoMethod AddOrderNotesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AddOrderNotesResponse struct { Notes []*MarketplaceNote `json:"notes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Notes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Notes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Notes") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AddOrderNotesResponse) MarshalJSON() ([]byte, error) { +func (s AddOrderNotesResponse) MarshalJSON() ([]byte, error) { type NoMethod AddOrderNotesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BillingInfo: The configuration data for an Ad Exchange billing info. type BillingInfo struct { // AccountId: Account id. AccountId int64 `json:"accountId,omitempty"` - // AccountName: Account name. AccountName string `json:"accountName,omitempty"` - - // BillingId: A list of adgroup IDs associated with this particular - // account. These IDs may show up as part of a realtime bidding - // BidRequest, which indicates a bid request for this account. + // BillingId: A list of adgroup IDs associated with this particular account. + // These IDs may show up as part of a realtime bidding BidRequest, which + // indicates a bid request for this account. BillingId []string `json:"billingId,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BillingInfo) MarshalJSON() ([]byte, error) { +func (s BillingInfo) MarshalJSON() ([]byte, error) { type NoMethod BillingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BillingInfoList: A billing info feed lists Billing Info the Ad -// Exchange buyer account has access to. Each entry in the feed -// corresponds to a single billing info. +// BillingInfoList: A billing info feed lists Billing Info the Ad Exchange +// buyer account has access to. Each entry in the feed corresponds to a single +// billing info. type BillingInfoList struct { // Items: A list of billing info relevant for your account. Items []*BillingInfo `json:"items,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BillingInfoList) MarshalJSON() ([]byte, error) { +func (s BillingInfoList) MarshalJSON() ([]byte, error) { type NoMethod BillingInfoList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Budget: The configuration data for Ad Exchange RTB - Budget API. @@ -644,606 +579,453 @@ type Budget struct { // AccountId: The id of the account. This is required for get and update // requests. AccountId int64 `json:"accountId,omitempty,string"` - - // BillingId: The billing id to determine which adgroup to provide - // budget information for. This is required for get and update requests. + // BillingId: The billing id to determine which adgroup to provide budget + // information for. This is required for get and update requests. BillingId int64 `json:"billingId,omitempty,string"` - - // BudgetAmount: The daily budget amount in unit amount of the account - // currency to apply for the billingId provided. This is required for - // update requests. + // BudgetAmount: The daily budget amount in unit amount of the account currency + // to apply for the billingId provided. This is required for update requests. BudgetAmount int64 `json:"budgetAmount,omitempty,string"` - - // CurrencyCode: The currency code for the buyer. This cannot be altered - // here. + // CurrencyCode: The currency code for the buyer. This cannot be altered here. CurrencyCode string `json:"currencyCode,omitempty"` - // Id: The unique id that describes this item. Id string `json:"id,omitempty"` - // Kind: The kind of the resource, i.e. "adexchangebuyer#budget". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Budget) MarshalJSON() ([]byte, error) { +func (s Budget) MarshalJSON() ([]byte, error) { type NoMethod Budget - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Buyer struct { // AccountId: Adx account id of the buyer. AccountId string `json:"accountId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Buyer) MarshalJSON() ([]byte, error) { +func (s Buyer) MarshalJSON() ([]byte, error) { type NoMethod Buyer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ContactInformation struct { // Email: Email address of the contact. Email string `json:"email,omitempty"` - // Name: The name of the contact. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContactInformation) MarshalJSON() ([]byte, error) { +func (s ContactInformation) MarshalJSON() ([]byte, error) { type NoMethod ContactInformation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreateOrdersRequest struct { // Proposals: The list of proposals to create. Proposals []*Proposal `json:"proposals,omitempty"` - // WebPropertyCode: Web property id of the seller creating these orders WebPropertyCode string `json:"webPropertyCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "Proposals") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Proposals") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Proposals") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateOrdersRequest) MarshalJSON() ([]byte, error) { +func (s CreateOrdersRequest) MarshalJSON() ([]byte, error) { type NoMethod CreateOrdersRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreateOrdersResponse struct { // Proposals: The list of proposals successfully created. Proposals []*Proposal `json:"proposals,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Proposals") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Proposals") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Proposals") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateOrdersResponse) MarshalJSON() ([]byte, error) { +func (s CreateOrdersResponse) MarshalJSON() ([]byte, error) { type NoMethod CreateOrdersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Creative: A creative and its classification data. type Creative struct { - // HTMLSnippet: The HTML snippet that displays the ad when inserted in - // the web page. If set, videoURL, videoVastXML, and nativeAd should not - // be set. + // HTMLSnippet: The HTML snippet that displays the ad when inserted in the web + // page. If set, videoURL, videoVastXML, and nativeAd should not be set. HTMLSnippet string `json:"HTMLSnippet,omitempty"` - // AccountId: Account id. AccountId int64 `json:"accountId,omitempty"` - - // AdChoicesDestinationUrl: The link to the Ad Preferences page. This is - // only supported for native ads. - AdChoicesDestinationUrl string `json:"adChoicesDestinationUrl,omitempty"` - - AdTechnologyProviders *CreativeAdTechnologyProviders `json:"adTechnologyProviders,omitempty"` - - // AdvertiserId: Detected advertiser id, if any. Read-only. This field - // should not be set in requests. + // AdChoicesDestinationUrl: The link to the Ad Preferences page. This is only + // supported for native ads. + AdChoicesDestinationUrl string `json:"adChoicesDestinationUrl,omitempty"` + AdTechnologyProviders *CreativeAdTechnologyProviders `json:"adTechnologyProviders,omitempty"` + // AdvertiserId: Detected advertiser id, if any. Read-only. This field should + // not be set in requests. AdvertiserId googleapi.Int64s `json:"advertiserId,omitempty"` - - // AdvertiserName: The name of the company being advertised in the - // creative. A list of advertisers is provided in the advertisers.txt - // file. + // AdvertiserName: The name of the company being advertised in the creative. A + // list of advertisers is provided in the advertisers.txt file. AdvertiserName string `json:"advertiserName,omitempty"` - // AgencyId: The agency id for this creative. AgencyId int64 `json:"agencyId,omitempty,string"` - - // ApiUploadTimestamp: The last upload timestamp of this creative if it - // was uploaded via API. Read-only. The value of this field is - // generated, and will be ignored for uploads. (formatted RFC 3339 - // timestamp). + // ApiUploadTimestamp: The last upload timestamp of this creative if it was + // uploaded via API. Read-only. The value of this field is generated, and will + // be ignored for uploads. (formatted RFC 3339 timestamp). ApiUploadTimestamp string `json:"apiUploadTimestamp,omitempty"` - - // Attribute: List of buyer selectable attributes for the ads that may - // be shown from this snippet. Each attribute is represented by an - // integer as defined in buyer-declarable-creative-attributes.txt. + // Attribute: List of buyer selectable attributes for the ads that may be shown + // from this snippet. Each attribute is represented by an integer as defined in + // buyer-declarable-creative-attributes.txt. Attribute []int64 `json:"attribute,omitempty"` - - // BuyerCreativeId: A buyer-specific id identifying the creative in this - // ad. + // BuyerCreativeId: A buyer-specific id identifying the creative in this ad. BuyerCreativeId string `json:"buyerCreativeId,omitempty"` - // ClickThroughUrl: The set of destination urls for the snippet. ClickThroughUrl []string `json:"clickThroughUrl,omitempty"` - - // Corrections: Shows any corrections that were applied to this - // creative. Read-only. This field should not be set in requests. + // Corrections: Shows any corrections that were applied to this creative. + // Read-only. This field should not be set in requests. Corrections []*CreativeCorrections `json:"corrections,omitempty"` - - // CreativeStatusIdentityType: Creative status identity type that the - // creative item applies to. Ad Exchange real-time bidding is migrating - // to the sizeless creative verification. Originally, Ad Exchange - // assigned creative verification status to a unique combination of a - // buyer creative ID and creative dimensions. Post-migration, a single - // verification status will be assigned at the buyer creative ID level. - // This field allows to distinguish whether a given creative status - // applies to a unique combination of a buyer creative ID and creative - // dimensions, or to a buyer creative ID as a whole. + // CreativeStatusIdentityType: Creative status identity type that the creative + // item applies to. Ad Exchange real-time bidding is migrating to the sizeless + // creative verification. Originally, Ad Exchange assigned creative + // verification status to a unique combination of a buyer creative ID and + // creative dimensions. Post-migration, a single verification status will be + // assigned at the buyer creative ID level. This field allows to distinguish + // whether a given creative status applies to a unique combination of a buyer + // creative ID and creative dimensions, or to a buyer creative ID as a whole. CreativeStatusIdentityType string `json:"creativeStatusIdentityType,omitempty"` - - // DealsStatus: Top-level deals status. Read-only. This field should not - // be set in requests. If disapproved, an entry for - // auctionType=DIRECT_DEALS (or ALL) in servingRestrictions will also - // exist. Note that this may be nuanced with other contextual - // restrictions, in which case it may be preferable to read from - // servingRestrictions directly. + // DealsStatus: Top-level deals status. Read-only. This field should not be set + // in requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) + // in servingRestrictions will also exist. Note that this may be nuanced with + // other contextual restrictions, in which case it may be preferable to read + // from servingRestrictions directly. DealsStatus string `json:"dealsStatus,omitempty"` - - // DetectedDomains: Detected domains for this creative. Read-only. This - // field should not be set in requests. + // DetectedDomains: Detected domains for this creative. Read-only. This field + // should not be set in requests. DetectedDomains []string `json:"detectedDomains,omitempty"` - - // FilteringReasons: The filtering reasons for the creative. Read-only. - // This field should not be set in requests. + // FilteringReasons: The filtering reasons for the creative. Read-only. This + // field should not be set in requests. FilteringReasons *CreativeFilteringReasons `json:"filteringReasons,omitempty"` - // Height: Ad height. Height int64 `json:"height,omitempty"` - - // ImpressionTrackingUrl: The set of urls to be called to record an - // impression. + // ImpressionTrackingUrl: The set of urls to be called to record an impression. ImpressionTrackingUrl []string `json:"impressionTrackingUrl,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - - // Languages: Detected languages for this creative. Read-only. This - // field should not be set in requests. + // Languages: Detected languages for this creative. Read-only. This field + // should not be set in requests. Languages []string `json:"languages,omitempty"` - - // NativeAd: If nativeAd is set, HTMLSnippet, videoVastXML, and the - // videoURL outside of nativeAd should not be set. (The videoURL inside - // nativeAd can be set.) + // NativeAd: If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL + // outside of nativeAd should not be set. (The videoURL inside nativeAd can be + // set.) NativeAd *CreativeNativeAd `json:"nativeAd,omitempty"` - - // OpenAuctionStatus: Top-level open auction status. Read-only. This - // field should not be set in requests. If disapproved, an entry for - // auctionType=OPEN_AUCTION (or ALL) in servingRestrictions will also - // exist. Note that this may be nuanced with other contextual - // restrictions, in which case it may be preferable to read from - // ServingRestrictions directly. + // OpenAuctionStatus: Top-level open auction status. Read-only. This field + // should not be set in requests. If disapproved, an entry for + // auctionType=OPEN_AUCTION (or ALL) in servingRestrictions will also exist. + // Note that this may be nuanced with other contextual restrictions, in which + // case it may be preferable to read from ServingRestrictions directly. OpenAuctionStatus string `json:"openAuctionStatus,omitempty"` - - // ProductCategories: Detected product categories, if any. Each category - // is represented by an integer as defined in - // ad-product-categories.txt. Read-only. This field should not be set in - // requests. + // ProductCategories: Detected product categories, if any. Each category is + // represented by an integer as defined in ad-product-categories.txt. + // Read-only. This field should not be set in requests. ProductCategories []int64 `json:"productCategories,omitempty"` - - // RestrictedCategories: All restricted categories for the ads that may - // be shown from this snippet. Each category is represented by an - // integer as defined in the ad-restricted-categories.txt. + // RestrictedCategories: All restricted categories for the ads that may be + // shown from this snippet. Each category is represented by an integer as + // defined in the ad-restricted-categories.txt. RestrictedCategories []int64 `json:"restrictedCategories,omitempty"` - - // SensitiveCategories: Detected sensitive categories, if any. Each - // category is represented by an integer as defined in - // ad-sensitive-categories.txt. Read-only. This field should not be set - // in requests. + // SensitiveCategories: Detected sensitive categories, if any. Each category is + // represented by an integer as defined in ad-sensitive-categories.txt. + // Read-only. This field should not be set in requests. SensitiveCategories []int64 `json:"sensitiveCategories,omitempty"` - - // ServingRestrictions: The granular status of this ad in specific - // contexts. A context here relates to where something ultimately serves - // (for example, a physical location, a platform, an HTTPS vs HTTP - // request, or the type of auction). Read-only. This field should not be - // set in requests. See the examples in the Creatives guide for more - // details. + // ServingRestrictions: The granular status of this ad in specific contexts. A + // context here relates to where something ultimately serves (for example, a + // physical location, a platform, an HTTPS vs HTTP request, or the type of + // auction). Read-only. This field should not be set in requests. See the + // examples in the Creatives guide for more details. ServingRestrictions []*CreativeServingRestrictions `json:"servingRestrictions,omitempty"` - - // VendorType: List of vendor types for the ads that may be shown from - // this snippet. Each vendor type is represented by an integer as - // defined in vendors.txt. + // VendorType: List of vendor types for the ads that may be shown from this + // snippet. Each vendor type is represented by an integer as defined in + // vendors.txt. VendorType []int64 `json:"vendorType,omitempty"` - - // Version: The version for this creative. Read-only. This field should - // not be set in requests. + // Version: The version for this creative. Read-only. This field should not be + // set in requests. Version int64 `json:"version,omitempty"` - - // VideoURL: The URL to fetch a video ad. If set, HTMLSnippet, - // videoVastXML, and nativeAd should not be set. Note, this is different - // from resource.native_ad.video_url above. + // VideoURL: The URL to fetch a video ad. If set, HTMLSnippet, videoVastXML, + // and nativeAd should not be set. Note, this is different from + // resource.native_ad.video_url above. VideoURL string `json:"videoURL,omitempty"` - - // VideoVastXML: The contents of a VAST document for a video ad. This - // document should conform to the VAST 2.0 or 3.0 standard. If set, - // HTMLSnippet, videoURL, and nativeAd and should not be set. + // VideoVastXML: The contents of a VAST document for a video ad. This document + // should conform to the VAST 2.0 or 3.0 standard. If set, HTMLSnippet, + // videoURL, and nativeAd and should not be set. VideoVastXML string `json:"videoVastXML,omitempty"` - // Width: Ad width. Width int64 `json:"width,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HTMLSnippet") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HTMLSnippet") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HTMLSnippet") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Creative) MarshalJSON() ([]byte, error) { +func (s Creative) MarshalJSON() ([]byte, error) { type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeAdTechnologyProviders struct { // DetectedProviderIds: The detected ad technology provider IDs for this // creative. See // https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for - // mapping of provider ID to provided name, a privacy policy URL, and a - // list of domains which can be attributed to the provider. If this - // creative contains provider IDs that are outside of those listed in - // the - // `BidRequest.adslot.consented_providers_settings.consented_providers` - // field on the Authorized Buyers Real-Time Bidding protocol or the - // `BidRequest.user.ext.consented_providers_settings.consented_providers` - // field on the OpenRTB protocol, a bid submitted for a European - // Economic Area (EEA) user with this creative is not compliant with the - // GDPR policies as mentioned in the "Third-party Ad Technology Vendors" - // section of Authorized Buyers Program Guidelines. + // mapping of provider ID to provided name, a privacy policy URL, and a list of + // domains which can be attributed to the provider. If this creative contains + // provider IDs that are outside of those listed in the + // `BidRequest.adslot.consented_providers_settings.consented_providers` field + // on the Authorized Buyers Real-Time Bidding protocol or the + // `BidRequest.user.ext.consented_providers_settings.consented_providers` field + // on the OpenRTB protocol, a bid submitted for a European Economic Area (EEA) + // user with this creative is not compliant with the GDPR policies as mentioned + // in the "Third-party Ad Technology Vendors" section of Authorized Buyers + // Program Guidelines. DetectedProviderIds googleapi.Int64s `json:"detectedProviderIds,omitempty"` - - // HasUnidentifiedProvider: Whether the creative contains an - // unidentified ad technology provider. If true, a bid submitted for a - // European Economic Area (EEA) user with this creative is not compliant - // with the GDPR policies as mentioned in the "Third-party Ad Technology - // Vendors" section of Authorized Buyers Program Guidelines. + // HasUnidentifiedProvider: Whether the creative contains an unidentified ad + // technology provider. If true, a bid submitted for a European Economic Area + // (EEA) user with this creative is not compliant with the GDPR policies as + // mentioned in the "Third-party Ad Technology Vendors" section of Authorized + // Buyers Program Guidelines. HasUnidentifiedProvider bool `json:"hasUnidentifiedProvider,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DetectedProviderIds") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DetectedProviderIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DetectedProviderIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DetectedProviderIds") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAdTechnologyProviders) MarshalJSON() ([]byte, error) { +func (s CreativeAdTechnologyProviders) MarshalJSON() ([]byte, error) { type NoMethod CreativeAdTechnologyProviders - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeCorrections struct { - // Contexts: All known serving contexts containing serving status - // information. + // Contexts: All known serving contexts containing serving status information. Contexts []*CreativeCorrectionsContexts `json:"contexts,omitempty"` - // Details: Additional details about the correction. Details []string `json:"details,omitempty"` - // Reason: The type of correction that was applied to the creative. Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contexts") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contexts") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contexts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeCorrections) MarshalJSON() ([]byte, error) { +func (s CreativeCorrections) MarshalJSON() ([]byte, error) { type NoMethod CreativeCorrections - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeCorrectionsContexts struct { - // AuctionType: Only set when contextType=AUCTION_TYPE. Represents the - // auction types this correction applies to. + // AuctionType: Only set when contextType=AUCTION_TYPE. Represents the auction + // types this correction applies to. AuctionType []string `json:"auctionType,omitempty"` - - // ContextType: The type of context (e.g., location, platform, auction - // type, SSL-ness). + // ContextType: The type of context (e.g., location, platform, auction type, + // SSL-ness). ContextType string `json:"contextType,omitempty"` - // GeoCriteriaId: Only set when contextType=LOCATION. Represents the geo // criterias this correction applies to. GeoCriteriaId []int64 `json:"geoCriteriaId,omitempty"` - - // Platform: Only set when contextType=PLATFORM. Represents the - // platforms this correction applies to. + // Platform: Only set when contextType=PLATFORM. Represents the platforms this + // correction applies to. Platform []string `json:"platform,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuctionType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuctionType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuctionType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeCorrectionsContexts) MarshalJSON() ([]byte, error) { +func (s CreativeCorrectionsContexts) MarshalJSON() ([]byte, error) { type NoMethod CreativeCorrectionsContexts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeFilteringReasons: The filtering reasons for the creative. -// Read-only. This field should not be set in requests. +// CreativeFilteringReasons: The filtering reasons for the creative. Read-only. +// This field should not be set in requests. type CreativeFilteringReasons struct { - // Date: The date in ISO 8601 format for the data. The data is collected - // from 00:00:00 to 23:59:59 in PST. + // Date: The date in ISO 8601 format for the data. The data is collected from + // 00:00:00 to 23:59:59 in PST. Date string `json:"date,omitempty"` - // Reasons: The filtering reasons. Reasons []*CreativeFilteringReasonsReasons `json:"reasons,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Date") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Date") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Date") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Date") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFilteringReasons) MarshalJSON() ([]byte, error) { +func (s CreativeFilteringReasons) MarshalJSON() ([]byte, error) { type NoMethod CreativeFilteringReasons - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeFilteringReasonsReasons struct { // FilteringCount: The number of times the creative was filtered for the - // status. The count is aggregated across all publishers on the - // exchange. + // status. The count is aggregated across all publishers on the exchange. FilteringCount int64 `json:"filteringCount,omitempty,string"` - // FilteringStatus: The filtering status code as defined in // creative-status-codes.txt. FilteringStatus int64 `json:"filteringStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilteringCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FilteringCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FilteringCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFilteringReasonsReasons) MarshalJSON() ([]byte, error) { +func (s CreativeFilteringReasonsReasons) MarshalJSON() ([]byte, error) { type NoMethod CreativeFilteringReasonsReasons - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeNativeAd: If nativeAd is set, HTMLSnippet, videoVastXML, and -// the videoURL outside of nativeAd should not be set. (The videoURL -// inside nativeAd can be set.) +// CreativeNativeAd: If nativeAd is set, HTMLSnippet, videoVastXML, and the +// videoURL outside of nativeAd should not be set. (The videoURL inside +// nativeAd can be set.) type CreativeNativeAd struct { Advertiser string `json:"advertiser,omitempty"` - // AppIcon: The app icon, for app download ads. AppIcon *CreativeNativeAdAppIcon `json:"appIcon,omitempty"` - // Body: A long description of the ad. Body string `json:"body,omitempty"` - - // CallToAction: A label for the button that the user is supposed to - // click. + // CallToAction: A label for the button that the user is supposed to click. CallToAction string `json:"callToAction,omitempty"` - - // ClickLinkUrl: The URL that the browser/SDK will load when the user - // clicks the ad. + // ClickLinkUrl: The URL that the browser/SDK will load when the user clicks + // the ad. ClickLinkUrl string `json:"clickLinkUrl,omitempty"` - // ClickTrackingUrl: The URL to use for click tracking. ClickTrackingUrl string `json:"clickTrackingUrl,omitempty"` - // Headline: A short title for the ad. Headline string `json:"headline,omitempty"` - // Image: A large image. Image *CreativeNativeAdImage `json:"image,omitempty"` - - // ImpressionTrackingUrl: The URLs are called when the impression is - // rendered. + // ImpressionTrackingUrl: The URLs are called when the impression is rendered. ImpressionTrackingUrl []string `json:"impressionTrackingUrl,omitempty"` - // Logo: A smaller image, for the advertiser logo. Logo *CreativeNativeAdLogo `json:"logo,omitempty"` - // Price: The price of the promoted app including the currency info. Price string `json:"price,omitempty"` - - // StarRating: The app rating in the app store. Must be in the range - // [0-5]. + // StarRating: The app rating in the app store. Must be in the range [0-5]. StarRating float64 `json:"starRating,omitempty"` - - // VideoURL: The URL of the XML VAST for a native ad. Note this is a - // separate field from resource.video_url. + // VideoURL: The URL of the XML VAST for a native ad. Note this is a separate + // field from resource.video_url. VideoURL string `json:"videoURL,omitempty"` - // ForceSendFields is a list of field names (e.g. "Advertiser") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Advertiser") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Advertiser") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeNativeAd) MarshalJSON() ([]byte, error) { +func (s CreativeNativeAd) MarshalJSON() ([]byte, error) { type NoMethod CreativeNativeAd - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CreativeNativeAd) UnmarshalJSON(data []byte) error { @@ -1262,1477 +1044,1099 @@ func (s *CreativeNativeAd) UnmarshalJSON(data []byte) error { // CreativeNativeAdAppIcon: The app icon, for app download ads. type CreativeNativeAdAppIcon struct { - Height int64 `json:"height,omitempty"` - - Url string `json:"url,omitempty"` - - Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Height int64 `json:"height,omitempty"` + Url string `json:"url,omitempty"` + Width int64 `json:"width,omitempty"` + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeNativeAdAppIcon) MarshalJSON() ([]byte, error) { +func (s CreativeNativeAdAppIcon) MarshalJSON() ([]byte, error) { type NoMethod CreativeNativeAdAppIcon - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeNativeAdImage: A large image. type CreativeNativeAdImage struct { - Height int64 `json:"height,omitempty"` - - Url string `json:"url,omitempty"` - - Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Height int64 `json:"height,omitempty"` + Url string `json:"url,omitempty"` + Width int64 `json:"width,omitempty"` + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeNativeAdImage) MarshalJSON() ([]byte, error) { +func (s CreativeNativeAdImage) MarshalJSON() ([]byte, error) { type NoMethod CreativeNativeAdImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeNativeAdLogo: A smaller image, for the advertiser logo. type CreativeNativeAdLogo struct { - Height int64 `json:"height,omitempty"` - - Url string `json:"url,omitempty"` - - Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Height int64 `json:"height,omitempty"` + Url string `json:"url,omitempty"` + Width int64 `json:"width,omitempty"` + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeNativeAdLogo) MarshalJSON() ([]byte, error) { +func (s CreativeNativeAdLogo) MarshalJSON() ([]byte, error) { type NoMethod CreativeNativeAdLogo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeServingRestrictions struct { // Contexts: All known contexts/restrictions. Contexts []*CreativeServingRestrictionsContexts `json:"contexts,omitempty"` - - // DisapprovalReasons: The reasons for disapproval within this - // restriction, if any. Note that not all disapproval reasons may be - // categorized, so it is possible for the creative to have a status of - // DISAPPROVED or CONDITIONALLY_APPROVED with an empty list for - // disapproval_reasons. In this case, please reach out to your TAM to - // help debug the issue. + // DisapprovalReasons: The reasons for disapproval within this restriction, if + // any. Note that not all disapproval reasons may be categorized, so it is + // possible for the creative to have a status of DISAPPROVED or + // CONDITIONALLY_APPROVED with an empty list for disapproval_reasons. In this + // case, please reach out to your TAM to help debug the issue. DisapprovalReasons []*CreativeServingRestrictionsDisapprovalReasons `json:"disapprovalReasons,omitempty"` - - // Reason: Why the creative is ineligible to serve in this context - // (e.g., it has been explicitly disapproved or is pending review). + // Reason: Why the creative is ineligible to serve in this context (e.g., it + // has been explicitly disapproved or is pending review). Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contexts") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contexts") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contexts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeServingRestrictions) MarshalJSON() ([]byte, error) { +func (s CreativeServingRestrictions) MarshalJSON() ([]byte, error) { type NoMethod CreativeServingRestrictions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeServingRestrictionsContexts struct { - // AuctionType: Only set when contextType=AUCTION_TYPE. Represents the - // auction types this restriction applies to. + // AuctionType: Only set when contextType=AUCTION_TYPE. Represents the auction + // types this restriction applies to. AuctionType []string `json:"auctionType,omitempty"` - - // ContextType: The type of context (e.g., location, platform, auction - // type, SSL-ness). + // ContextType: The type of context (e.g., location, platform, auction type, + // SSL-ness). ContextType string `json:"contextType,omitempty"` - // GeoCriteriaId: Only set when contextType=LOCATION. Represents the geo - // criterias this restriction applies to. Impressions are considered to - // match a context if either the user location or publisher location - // matches a given geoCriteriaId. + // criterias this restriction applies to. Impressions are considered to match a + // context if either the user location or publisher location matches a given + // geoCriteriaId. GeoCriteriaId []int64 `json:"geoCriteriaId,omitempty"` - - // Platform: Only set when contextType=PLATFORM. Represents the - // platforms this restriction applies to. + // Platform: Only set when contextType=PLATFORM. Represents the platforms this + // restriction applies to. Platform []string `json:"platform,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuctionType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuctionType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuctionType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeServingRestrictionsContexts) MarshalJSON() ([]byte, error) { +func (s CreativeServingRestrictionsContexts) MarshalJSON() ([]byte, error) { type NoMethod CreativeServingRestrictionsContexts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeServingRestrictionsDisapprovalReasons struct { // Details: Additional details about the reason for disapproval. Details []string `json:"details,omitempty"` - // Reason: The categorized reason for disapproval. Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeServingRestrictionsDisapprovalReasons) MarshalJSON() ([]byte, error) { +func (s CreativeServingRestrictionsDisapprovalReasons) MarshalJSON() ([]byte, error) { type NoMethod CreativeServingRestrictionsDisapprovalReasons - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeDealIds: The external deal ids associated with a creative. type CreativeDealIds struct { // DealStatuses: A list of external deal ids and ARC approval status. DealStatuses []*CreativeDealIdsDealStatuses `json:"dealStatuses,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DealStatuses") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DealStatuses") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DealStatuses") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeDealIds) MarshalJSON() ([]byte, error) { +func (s CreativeDealIds) MarshalJSON() ([]byte, error) { type NoMethod CreativeDealIds - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CreativeDealIdsDealStatuses struct { // ArcStatus: ARC approval status. ArcStatus string `json:"arcStatus,omitempty"` - // DealId: External deal ID. DealId int64 `json:"dealId,omitempty,string"` - // WebPropertyId: Publisher ID. WebPropertyId int64 `json:"webPropertyId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArcStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArcStatus") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArcStatus") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeDealIdsDealStatuses) MarshalJSON() ([]byte, error) { +func (s CreativeDealIdsDealStatuses) MarshalJSON() ([]byte, error) { type NoMethod CreativeDealIdsDealStatuses - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativesList: The creatives feed lists the active creatives for the -// Ad Exchange buyer accounts that the user has access to. Each entry in -// the feed corresponds to a single creative. +// CreativesList: The creatives feed lists the active creatives for the Ad +// Exchange buyer accounts that the user has access to. Each entry in the feed +// corresponds to a single creative. type CreativesList struct { // Items: A list of creatives. Items []*Creative `json:"items,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // NextPageToken: Continuation token used to page through creatives. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativesList) MarshalJSON() ([]byte, error) { +func (s CreativesList) MarshalJSON() ([]byte, error) { type NoMethod CreativesList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DealServingMetadata struct { // AlcoholAdsAllowed: True if alcohol ads are allowed for this deal - // (read-only). This field is only populated when querying for finalized - // orders using the method GetFinalizedOrderDeals + // (read-only). This field is only populated when querying for finalized orders + // using the method GetFinalizedOrderDeals AlcoholAdsAllowed bool `json:"alcoholAdsAllowed,omitempty"` - // DealPauseStatus: Tracks which parties (if any) have paused a deal. // (readonly, except via PauseResumeOrderDeals action) DealPauseStatus *DealServingMetadataDealPauseStatus `json:"dealPauseStatus,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AlcoholAdsAllowed") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AlcoholAdsAllowed") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AlcoholAdsAllowed") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AlcoholAdsAllowed") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DealServingMetadata) MarshalJSON() ([]byte, error) { +func (s DealServingMetadata) MarshalJSON() ([]byte, error) { type NoMethod DealServingMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DealServingMetadataDealPauseStatus: Tracks which parties (if any) -// have paused a deal. The deal is considered paused if has_buyer_paused -// || has_seller_paused. Each of the has_buyer_paused or the -// has_seller_paused bits can be set independently. +// DealServingMetadataDealPauseStatus: Tracks which parties (if any) have +// paused a deal. The deal is considered paused if has_buyer_paused || +// has_seller_paused. Each of the has_buyer_paused or the has_seller_paused +// bits can be set independently. type DealServingMetadataDealPauseStatus struct { BuyerPauseReason string `json:"buyerPauseReason,omitempty"` - - // FirstPausedBy: If the deal is paused, records which party paused the - // deal first. - FirstPausedBy string `json:"firstPausedBy,omitempty"` - - HasBuyerPaused bool `json:"hasBuyerPaused,omitempty"` - - HasSellerPaused bool `json:"hasSellerPaused,omitempty"` - + // FirstPausedBy: If the deal is paused, records which party paused the deal + // first. + FirstPausedBy string `json:"firstPausedBy,omitempty"` + HasBuyerPaused bool `json:"hasBuyerPaused,omitempty"` + HasSellerPaused bool `json:"hasSellerPaused,omitempty"` SellerPauseReason string `json:"sellerPauseReason,omitempty"` - // ForceSendFields is a list of field names (e.g. "BuyerPauseReason") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BuyerPauseReason") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BuyerPauseReason") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DealServingMetadataDealPauseStatus) MarshalJSON() ([]byte, error) { +func (s DealServingMetadataDealPauseStatus) MarshalJSON() ([]byte, error) { type NoMethod DealServingMetadataDealPauseStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DealTerms struct { // BrandingType: Visibility of the URL in bid requests. BrandingType string `json:"brandingType,omitempty"` - - // CrossListedExternalDealIdType: Indicates that this ExternalDealId - // exists under at least two different AdxInventoryDeals. Currently, the - // only case that the same ExternalDealId will exist is programmatic - // cross sell case. + // CrossListedExternalDealIdType: Indicates that this ExternalDealId exists + // under at least two different AdxInventoryDeals. Currently, the only case + // that the same ExternalDealId will exist is programmatic cross sell case. CrossListedExternalDealIdType string `json:"crossListedExternalDealIdType,omitempty"` - // Description: Description for the proposed terms of the deal. Description string `json:"description,omitempty"` - - // EstimatedGrossSpend: Non-binding estimate of the estimated gross - // spend for this deal Can be set by buyer or seller. + // EstimatedGrossSpend: Non-binding estimate of the estimated gross spend for + // this deal Can be set by buyer or seller. EstimatedGrossSpend *Price `json:"estimatedGrossSpend,omitempty"` - - // EstimatedImpressionsPerDay: Non-binding estimate of the impressions - // served per day Can be set by buyer or seller. + // EstimatedImpressionsPerDay: Non-binding estimate of the impressions served + // per day Can be set by buyer or seller. EstimatedImpressionsPerDay int64 `json:"estimatedImpressionsPerDay,omitempty,string"` - - // GuaranteedFixedPriceTerms: The terms for guaranteed fixed price - // deals. + // GuaranteedFixedPriceTerms: The terms for guaranteed fixed price deals. GuaranteedFixedPriceTerms *DealTermsGuaranteedFixedPriceTerms `json:"guaranteedFixedPriceTerms,omitempty"` - - // NonGuaranteedAuctionTerms: The terms for non-guaranteed auction - // deals. + // NonGuaranteedAuctionTerms: The terms for non-guaranteed auction deals. NonGuaranteedAuctionTerms *DealTermsNonGuaranteedAuctionTerms `json:"nonGuaranteedAuctionTerms,omitempty"` - - // NonGuaranteedFixedPriceTerms: The terms for non-guaranteed fixed - // price deals. - NonGuaranteedFixedPriceTerms *DealTermsNonGuaranteedFixedPriceTerms `json:"nonGuaranteedFixedPriceTerms,omitempty"` - - // RubiconNonGuaranteedTerms: The terms for rubicon non-guaranteed + // NonGuaranteedFixedPriceTerms: The terms for non-guaranteed fixed price // deals. + NonGuaranteedFixedPriceTerms *DealTermsNonGuaranteedFixedPriceTerms `json:"nonGuaranteedFixedPriceTerms,omitempty"` + // RubiconNonGuaranteedTerms: The terms for rubicon non-guaranteed deals. RubiconNonGuaranteedTerms *DealTermsRubiconNonGuaranteedTerms `json:"rubiconNonGuaranteedTerms,omitempty"` - - // SellerTimeZone: For deals with Cost Per Day billing, defines the - // timezone used to mark the boundaries of a day (buyer-readonly) + // SellerTimeZone: For deals with Cost Per Day billing, defines the timezone + // used to mark the boundaries of a day (buyer-readonly) SellerTimeZone string `json:"sellerTimeZone,omitempty"` - // ForceSendFields is a list of field names (e.g. "BrandingType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BrandingType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BrandingType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DealTerms) MarshalJSON() ([]byte, error) { +func (s DealTerms) MarshalJSON() ([]byte, error) { type NoMethod DealTerms - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DealTermsGuaranteedFixedPriceTerms struct { - // BillingInfo: External billing info for this Deal. This field is - // relevant when external billing info such as price has a different - // currency code than DFP/AdX. + // BillingInfo: External billing info for this Deal. This field is relevant + // when external billing info such as price has a different currency code than + // DFP/AdX. BillingInfo *DealTermsGuaranteedFixedPriceTermsBillingInfo `json:"billingInfo,omitempty"` - // FixedPrices: Fixed price for the specified buyer. FixedPrices []*PricePerBuyer `json:"fixedPrices,omitempty"` - - // GuaranteedImpressions: Guaranteed impressions as a percentage. This - // is the percentage of guaranteed looks that the buyer is guaranteeing - // to buy. + // GuaranteedImpressions: Guaranteed impressions as a percentage. This is the + // percentage of guaranteed looks that the buyer is guaranteeing to buy. GuaranteedImpressions int64 `json:"guaranteedImpressions,omitempty,string"` - - // GuaranteedLooks: Count of guaranteed looks. Required for deal, - // optional for product. For CPD deals, buyer changes to - // guaranteed_looks will be ignored. + // GuaranteedLooks: Count of guaranteed looks. Required for deal, optional for + // product. For CPD deals, buyer changes to guaranteed_looks will be ignored. GuaranteedLooks int64 `json:"guaranteedLooks,omitempty,string"` - - // MinimumDailyLooks: Count of minimum daily looks for a CPD deal. For - // CPD deals, buyer should negotiate on this field instead of - // guaranteed_looks. + // MinimumDailyLooks: Count of minimum daily looks for a CPD deal. For CPD + // deals, buyer should negotiate on this field instead of guaranteed_looks. MinimumDailyLooks int64 `json:"minimumDailyLooks,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "BillingInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BillingInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BillingInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DealTermsGuaranteedFixedPriceTerms) MarshalJSON() ([]byte, error) { +func (s DealTermsGuaranteedFixedPriceTerms) MarshalJSON() ([]byte, error) { type NoMethod DealTermsGuaranteedFixedPriceTerms - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DealTermsGuaranteedFixedPriceTermsBillingInfo struct { // CurrencyConversionTimeMs: The timestamp (in ms since epoch) when the - // original reservation price for the deal was first converted to DFP - // currency. This is used to convert the contracted price into buyer's - // currency without discrepancy. + // original reservation price for the deal was first converted to DFP currency. + // This is used to convert the contracted price into buyer's currency without + // discrepancy. CurrencyConversionTimeMs int64 `json:"currencyConversionTimeMs,omitempty,string"` - - // DfpLineItemId: The DFP line item id associated with this deal. For - // features like CPD, buyers can retrieve the DFP line item for billing - // reconciliation. + // DfpLineItemId: The DFP line item id associated with this deal. For features + // like CPD, buyers can retrieve the DFP line item for billing reconciliation. DfpLineItemId int64 `json:"dfpLineItemId,omitempty,string"` - - // OriginalContractedQuantity: The original contracted quantity (# - // impressions) for this deal. To ensure delivery, sometimes the - // publisher will book the deal with a impression buffer, such that - // guaranteed_looks is greater than the contracted quantity. However - // clients are billed using the original contracted quantity. + // OriginalContractedQuantity: The original contracted quantity (# impressions) + // for this deal. To ensure delivery, sometimes the publisher will book the + // deal with a impression buffer, such that guaranteed_looks is greater than + // the contracted quantity. However clients are billed using the original + // contracted quantity. OriginalContractedQuantity int64 `json:"originalContractedQuantity,omitempty,string"` - - // Price: The original reservation price for the deal, if the currency - // code is different from the one used in negotiation. + // Price: The original reservation price for the deal, if the currency code is + // different from the one used in negotiation. Price *Price `json:"price,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CurrencyConversionTimeMs") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CurrencyConversionTimeMs") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrencyConversionTimeMs") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CurrencyConversionTimeMs") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DealTermsGuaranteedFixedPriceTermsBillingInfo) MarshalJSON() ([]byte, error) { +func (s DealTermsGuaranteedFixedPriceTermsBillingInfo) MarshalJSON() ([]byte, error) { type NoMethod DealTermsGuaranteedFixedPriceTermsBillingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DealTermsNonGuaranteedAuctionTerms struct { - // AutoOptimizePrivateAuction: True if open auction buyers are allowed - // to compete with invited buyers in this private auction - // (buyer-readonly). + // AutoOptimizePrivateAuction: True if open auction buyers are allowed to + // compete with invited buyers in this private auction (buyer-readonly). AutoOptimizePrivateAuction bool `json:"autoOptimizePrivateAuction,omitempty"` - // ReservePricePerBuyers: Reserve price for the specified buyer. ReservePricePerBuyers []*PricePerBuyer `json:"reservePricePerBuyers,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AutoOptimizePrivateAuction") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AutoOptimizePrivateAuction") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AutoOptimizePrivateAuction") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AutoOptimizePrivateAuction") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DealTermsNonGuaranteedAuctionTerms) MarshalJSON() ([]byte, error) { +func (s DealTermsNonGuaranteedAuctionTerms) MarshalJSON() ([]byte, error) { type NoMethod DealTermsNonGuaranteedAuctionTerms - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DealTermsNonGuaranteedFixedPriceTerms struct { // FixedPrices: Fixed price for the specified buyer. FixedPrices []*PricePerBuyer `json:"fixedPrices,omitempty"` - // ForceSendFields is a list of field names (e.g. "FixedPrices") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FixedPrices") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FixedPrices") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DealTermsNonGuaranteedFixedPriceTerms) MarshalJSON() ([]byte, error) { +func (s DealTermsNonGuaranteedFixedPriceTerms) MarshalJSON() ([]byte, error) { type NoMethod DealTermsNonGuaranteedFixedPriceTerms - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DealTermsRubiconNonGuaranteedTerms struct { - // PriorityPrice: Optional price for Rubicon priority access in the - // auction. + // PriorityPrice: Optional price for Rubicon priority access in the auction. PriorityPrice *Price `json:"priorityPrice,omitempty"` - - // StandardPrice: Optional price for Rubicon standard access in the - // auction. + // StandardPrice: Optional price for Rubicon standard access in the auction. StandardPrice *Price `json:"standardPrice,omitempty"` - // ForceSendFields is a list of field names (e.g. "PriorityPrice") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PriorityPrice") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PriorityPrice") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DealTermsRubiconNonGuaranteedTerms) MarshalJSON() ([]byte, error) { +func (s DealTermsRubiconNonGuaranteedTerms) MarshalJSON() ([]byte, error) { type NoMethod DealTermsRubiconNonGuaranteedTerms - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DeleteOrderDealsRequest struct { // DealIds: List of deals to delete for a given proposal DealIds []string `json:"dealIds,omitempty"` - // ProposalRevisionNumber: The last known proposal revision number. ProposalRevisionNumber int64 `json:"proposalRevisionNumber,omitempty,string"` - // UpdateAction: Indicates an optional action to take on the proposal UpdateAction string `json:"updateAction,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DealIds") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DealIds") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DealIds") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DealIds") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteOrderDealsRequest) MarshalJSON() ([]byte, error) { +func (s DeleteOrderDealsRequest) MarshalJSON() ([]byte, error) { type NoMethod DeleteOrderDealsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DeleteOrderDealsResponse struct { - // Deals: List of deals deleted (in the same proposal as passed in the - // request) + // Deals: List of deals deleted (in the same proposal as passed in the request) Deals []*MarketplaceDeal `json:"deals,omitempty"` - // ProposalRevisionNumber: The updated revision number for the proposal. ProposalRevisionNumber int64 `json:"proposalRevisionNumber,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Deals") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Deals") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Deals") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteOrderDealsResponse) MarshalJSON() ([]byte, error) { +func (s DeleteOrderDealsResponse) MarshalJSON() ([]byte, error) { type NoMethod DeleteOrderDealsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DeliveryControl struct { - CreativeBlockingLevel string `json:"creativeBlockingLevel,omitempty"` - - DeliveryRateType string `json:"deliveryRateType,omitempty"` - - FrequencyCaps []*DeliveryControlFrequencyCap `json:"frequencyCaps,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CreativeBlockingLevel") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + CreativeBlockingLevel string `json:"creativeBlockingLevel,omitempty"` + DeliveryRateType string `json:"deliveryRateType,omitempty"` + FrequencyCaps []*DeliveryControlFrequencyCap `json:"frequencyCaps,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreativeBlockingLevel") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreativeBlockingLevel") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeliveryControl) MarshalJSON() ([]byte, error) { +func (s DeliveryControl) MarshalJSON() ([]byte, error) { type NoMethod DeliveryControl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DeliveryControlFrequencyCap struct { - MaxImpressions int64 `json:"maxImpressions,omitempty"` - - NumTimeUnits int64 `json:"numTimeUnits,omitempty"` - - TimeUnitType string `json:"timeUnitType,omitempty"` - + MaxImpressions int64 `json:"maxImpressions,omitempty"` + NumTimeUnits int64 `json:"numTimeUnits,omitempty"` + TimeUnitType string `json:"timeUnitType,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxImpressions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxImpressions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MaxImpressions") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeliveryControlFrequencyCap) MarshalJSON() ([]byte, error) { +func (s DeliveryControlFrequencyCap) MarshalJSON() ([]byte, error) { type NoMethod DeliveryControlFrequencyCap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Dimension: This message carries publisher provided breakdown. E.g. // {dimension_type: 'COUNTRY', [{dimension_value: {id: 1, name: 'US'}}, // {dimension_value: {id: 2, name: 'UK'}}]} type Dimension struct { - DimensionType string `json:"dimensionType,omitempty"` - + DimensionType string `json:"dimensionType,omitempty"` DimensionValues []*DimensionDimensionValue `json:"dimensionValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Dimension) MarshalJSON() ([]byte, error) { +func (s Dimension) MarshalJSON() ([]byte, error) { type NoMethod Dimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionDimensionValue: Value of the dimension. type DimensionDimensionValue struct { // Id: Id of the dimension. Id int64 `json:"id,omitempty"` - - // Name: Name of the dimension mainly for debugging purposes, except for - // the case of CREATIVE_SIZE. For CREATIVE_SIZE, strings are used - // instead of ids. + // Name: Name of the dimension mainly for debugging purposes, except for the + // case of CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids. Name string `json:"name,omitempty"` - // Percentage: Percent of total impressions for a dimension type. e.g. // {dimension_type: 'GENDER', [{dimension_value: {id: 1, name: 'MALE', - // percentage: 60}}]} Gender MALE is 60% of all impressions which have - // gender. + // percentage: 60}}]} Gender MALE is 60% of all impressions which have gender. Percentage int64 `json:"percentage,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionDimensionValue) MarshalJSON() ([]byte, error) { +func (s DimensionDimensionValue) MarshalJSON() ([]byte, error) { type NoMethod DimensionDimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EditAllOrderDealsRequest struct { - // Deals: List of deals to edit. Service may perform 3 different - // operations based on comparison of deals in this list vs deals already - // persisted in database: 1. Add new deal to proposal If a deal in this - // list does not exist in the proposal, the service will create a new - // deal and add it to the proposal. Validation will follow - // AddOrderDealsRequest. 2. Update existing deal in the proposal If a - // deal in this list already exist in the proposal, the service will - // update that existing deal to this new deal in the request. Validation - // will follow UpdateOrderDealsRequest. 3. Delete deals from the + // Deals: List of deals to edit. Service may perform 3 different operations + // based on comparison of deals in this list vs deals already persisted in + // database: 1. Add new deal to proposal If a deal in this list does not exist + // in the proposal, the service will create a new deal and add it to the + // proposal. Validation will follow AddOrderDealsRequest. 2. Update existing + // deal in the proposal If a deal in this list already exist in the proposal, + // the service will update that existing deal to this new deal in the request. + // Validation will follow UpdateOrderDealsRequest. 3. Delete deals from the // proposal (just need the id) If a existing deal in the proposal is not - // present in this list, the service will delete that deal from the - // proposal. Validation will follow DeleteOrderDealsRequest. + // present in this list, the service will delete that deal from the proposal. + // Validation will follow DeleteOrderDealsRequest. Deals []*MarketplaceDeal `json:"deals,omitempty"` - - // Proposal: If specified, also updates the proposal in the batch - // transaction. This is useful when the proposal and the deals need to - // be updated in one transaction. + // Proposal: If specified, also updates the proposal in the batch transaction. + // This is useful when the proposal and the deals need to be updated in one + // transaction. Proposal *Proposal `json:"proposal,omitempty"` - - // ProposalRevisionNumber: The last known revision number for the - // proposal. + // ProposalRevisionNumber: The last known revision number for the proposal. ProposalRevisionNumber int64 `json:"proposalRevisionNumber,omitempty,string"` - // UpdateAction: Indicates an optional action to take on the proposal UpdateAction string `json:"updateAction,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Deals") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Deals") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Deals") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EditAllOrderDealsRequest) MarshalJSON() ([]byte, error) { +func (s EditAllOrderDealsRequest) MarshalJSON() ([]byte, error) { type NoMethod EditAllOrderDealsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EditAllOrderDealsResponse struct { // Deals: List of all deals in the proposal after edit. Deals []*MarketplaceDeal `json:"deals,omitempty"` - - // OrderRevisionNumber: The latest revision number after the update has - // been applied. + // OrderRevisionNumber: The latest revision number after the update has been + // applied. OrderRevisionNumber int64 `json:"orderRevisionNumber,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Deals") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Deals") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Deals") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EditAllOrderDealsResponse) MarshalJSON() ([]byte, error) { +func (s EditAllOrderDealsResponse) MarshalJSON() ([]byte, error) { type NoMethod EditAllOrderDealsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GetOffersResponse struct { // Products: The returned list of products. Products []*Product `json:"products,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Products") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Products") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Products") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetOffersResponse) MarshalJSON() ([]byte, error) { +func (s GetOffersResponse) MarshalJSON() ([]byte, error) { type NoMethod GetOffersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GetOrderDealsResponse struct { // Deals: List of deals for the proposal Deals []*MarketplaceDeal `json:"deals,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Deals") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Deals") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Deals") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetOrderDealsResponse) MarshalJSON() ([]byte, error) { +func (s GetOrderDealsResponse) MarshalJSON() ([]byte, error) { type NoMethod GetOrderDealsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GetOrderNotesResponse struct { - // Notes: The list of matching notes. The notes for a proposal are - // ordered from oldest to newest. If the notes span multiple proposals, - // they will be grouped by proposal, with the notes for the most - // recently modified proposal appearing first. + // Notes: The list of matching notes. The notes for a proposal are ordered from + // oldest to newest. If the notes span multiple proposals, they will be grouped + // by proposal, with the notes for the most recently modified proposal + // appearing first. Notes []*MarketplaceNote `json:"notes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Notes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Notes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Notes") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetOrderNotesResponse) MarshalJSON() ([]byte, error) { +func (s GetOrderNotesResponse) MarshalJSON() ([]byte, error) { type NoMethod GetOrderNotesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GetOrdersResponse struct { // Proposals: The list of matching proposals. Proposals []*Proposal `json:"proposals,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Proposals") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Proposals") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Proposals") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetOrdersResponse) MarshalJSON() ([]byte, error) { +func (s GetOrdersResponse) MarshalJSON() ([]byte, error) { type NoMethod GetOrdersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GetPublisherProfilesByAccountIdResponse struct { // Profiles: Profiles for the requested publisher Profiles []*PublisherProfileApiProto `json:"profiles,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Profiles") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Profiles") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Profiles") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetPublisherProfilesByAccountIdResponse) MarshalJSON() ([]byte, error) { +func (s GetPublisherProfilesByAccountIdResponse) MarshalJSON() ([]byte, error) { type NoMethod GetPublisherProfilesByAccountIdResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MarketplaceDeal: A proposal can contain multiple deals. A deal -// contains the terms and targeting information that is used for -// serving. +// MarketplaceDeal: A proposal can contain multiple deals. A deal contains the +// terms and targeting information that is used for serving. type MarketplaceDeal struct { // BuyerPrivateData: Buyer private data (hidden from seller). BuyerPrivateData *PrivateData `json:"buyerPrivateData,omitempty"` - - // CreationTimeMs: The time (ms since epoch) of the deal creation. - // (readonly) + // CreationTimeMs: The time (ms since epoch) of the deal creation. (readonly) CreationTimeMs int64 `json:"creationTimeMs,omitempty,string"` - // CreativePreApprovalPolicy: Specifies the creative pre-approval policy // (buyer-readonly) CreativePreApprovalPolicy string `json:"creativePreApprovalPolicy,omitempty"` - - // CreativeSafeFrameCompatibility: Specifies whether the creative is - // safeFrame compatible (buyer-readonly) + // CreativeSafeFrameCompatibility: Specifies whether the creative is safeFrame + // compatible (buyer-readonly) CreativeSafeFrameCompatibility string `json:"creativeSafeFrameCompatibility,omitempty"` - // DealId: A unique deal-id for the deal (readonly). DealId string `json:"dealId,omitempty"` - // DealServingMetadata: Metadata about the serving status of this deal // (readonly, writes via custom actions) DealServingMetadata *DealServingMetadata `json:"dealServingMetadata,omitempty"` - // DeliveryControl: The set of fields around delivery control that are - // interesting for a buyer to see but are non-negotiable. These are set - // by the publisher. This message is assigned an id of 100 since some - // day we would want to model this as a protobuf extension. + // interesting for a buyer to see but are non-negotiable. These are set by the + // publisher. This message is assigned an id of 100 since some day we would + // want to model this as a protobuf extension. DeliveryControl *DeliveryControl `json:"deliveryControl,omitempty"` - - // ExternalDealId: The external deal id assigned to this deal once the - // deal is finalized. This is the deal-id that shows up in - // serving/reporting etc. (readonly) + // ExternalDealId: The external deal id assigned to this deal once the deal is + // finalized. This is the deal-id that shows up in serving/reporting etc. + // (readonly) ExternalDealId string `json:"externalDealId,omitempty"` - - // FlightEndTimeMs: Proposed flight end time of the deal (ms since - // epoch) This will generally be stored in a granularity of a second. - // (updatable) + // FlightEndTimeMs: Proposed flight end time of the deal (ms since epoch) This + // will generally be stored in a granularity of a second. (updatable) FlightEndTimeMs int64 `json:"flightEndTimeMs,omitempty,string"` - - // FlightStartTimeMs: Proposed flight start time of the deal (ms since - // epoch) This will generally be stored in a granularity of a second. - // (updatable) + // FlightStartTimeMs: Proposed flight start time of the deal (ms since epoch) + // This will generally be stored in a granularity of a second. (updatable) FlightStartTimeMs int64 `json:"flightStartTimeMs,omitempty,string"` - - // InventoryDescription: Description for the deal terms. - // (buyer-readonly) + // InventoryDescription: Description for the deal terms. (buyer-readonly) InventoryDescription string `json:"inventoryDescription,omitempty"` - - // IsRfpTemplate: Indicates whether the current deal is a RFP template. - // RFP template is created by buyer and not based on seller created - // products. + // IsRfpTemplate: Indicates whether the current deal is a RFP template. RFP + // template is created by buyer and not based on seller created products. IsRfpTemplate bool `json:"isRfpTemplate,omitempty"` - - // IsSetupComplete: True, if the buyside inventory setup is complete for - // this deal. (readonly, except via OrderSetupCompleted action) + // IsSetupComplete: True, if the buyside inventory setup is complete for this + // deal. (readonly, except via OrderSetupCompleted action) IsSetupComplete bool `json:"isSetupComplete,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "adexchangebuyer#marketplaceDeal". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "adexchangebuyer#marketplaceDeal". Kind string `json:"kind,omitempty"` - - // LastUpdateTimeMs: The time (ms since epoch) when the deal was last - // updated. (readonly) - LastUpdateTimeMs int64 `json:"lastUpdateTimeMs,omitempty,string"` - + // LastUpdateTimeMs: The time (ms since epoch) when the deal was last updated. + // (readonly) + LastUpdateTimeMs int64 `json:"lastUpdateTimeMs,omitempty,string"` MakegoodRequestedReason string `json:"makegoodRequestedReason,omitempty"` - // Name: The name of the deal. (updatable) Name string `json:"name,omitempty"` - - // ProductId: The product-id from which this deal was created. - // (readonly, except on create) + // ProductId: The product-id from which this deal was created. (readonly, + // except on create) ProductId string `json:"productId,omitempty"` - - // ProductRevisionNumber: The revision number of the product that the - // deal was created from (readonly, except on create) + // ProductRevisionNumber: The revision number of the product that the deal was + // created from (readonly, except on create) ProductRevisionNumber int64 `json:"productRevisionNumber,omitempty,string"` - - // ProgrammaticCreativeSource: Specifies the creative source for - // programmatic deals, PUBLISHER means creative is provided by seller - // and ADVERTISR means creative is provided by buyer. (buyer-readonly) + // ProgrammaticCreativeSource: Specifies the creative source for programmatic + // deals, PUBLISHER means creative is provided by seller and ADVERTISR means + // creative is provided by buyer. (buyer-readonly) ProgrammaticCreativeSource string `json:"programmaticCreativeSource,omitempty"` - - ProposalId string `json:"proposalId,omitempty"` - + ProposalId string `json:"proposalId,omitempty"` // SellerContacts: Optional Seller contact information for the deal // (buyer-readonly) SellerContacts []*ContactInformation `json:"sellerContacts,omitempty"` - - // SharedTargetings: The shared targeting visible to buyers and sellers. - // Each shared targeting entity is AND'd together. (updatable) + // SharedTargetings: The shared targeting visible to buyers and sellers. Each + // shared targeting entity is AND'd together. (updatable) SharedTargetings []*SharedTargeting `json:"sharedTargetings,omitempty"` - // SyndicationProduct: The syndication product associated with the deal. // (readonly, except on create) SyndicationProduct string `json:"syndicationProduct,omitempty"` - // Terms: The negotiable terms of the deal. (updatable) - Terms *DealTerms `json:"terms,omitempty"` - - WebPropertyCode string `json:"webPropertyCode,omitempty"` - + Terms *DealTerms `json:"terms,omitempty"` + WebPropertyCode string `json:"webPropertyCode,omitempty"` // ForceSendFields is a list of field names (e.g. "BuyerPrivateData") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BuyerPrivateData") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BuyerPrivateData") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MarketplaceDeal) MarshalJSON() ([]byte, error) { +func (s MarketplaceDeal) MarshalJSON() ([]byte, error) { type NoMethod MarketplaceDeal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type MarketplaceDealParty struct { - // Buyer: The buyer/seller associated with the deal. One of buyer/seller - // is specified for a deal-party. + // Buyer: The buyer/seller associated with the deal. One of buyer/seller is + // specified for a deal-party. Buyer *Buyer `json:"buyer,omitempty"` - - // Seller: The buyer/seller associated with the deal. One of - // buyer/seller is specified for a deal party. + // Seller: The buyer/seller associated with the deal. One of buyer/seller is + // specified for a deal party. Seller *Seller `json:"seller,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buyer") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Buyer") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Buyer") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MarketplaceDealParty) MarshalJSON() ([]byte, error) { +func (s MarketplaceDealParty) MarshalJSON() ([]byte, error) { type NoMethod MarketplaceDealParty - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type MarketplaceLabel struct { // AccountId: The accountId of the party that created the label. AccountId string `json:"accountId,omitempty"` - // CreateTimeMs: The creation time (in ms since epoch) for the label. CreateTimeMs int64 `json:"createTimeMs,omitempty,string"` - - // DeprecatedMarketplaceDealParty: Information about the party that - // created the label. + // DeprecatedMarketplaceDealParty: Information about the party that created the + // label. DeprecatedMarketplaceDealParty *MarketplaceDealParty `json:"deprecatedMarketplaceDealParty,omitempty"` - // Label: The label to use. Label string `json:"label,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MarketplaceLabel) MarshalJSON() ([]byte, error) { +func (s MarketplaceLabel) MarshalJSON() ([]byte, error) { type NoMethod MarketplaceLabel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MarketplaceNote: A proposal is associated with a bunch of notes which -// may optionally be associated with a deal and/or revision number. +// MarketplaceNote: A proposal is associated with a bunch of notes which may +// optionally be associated with a deal and/or revision number. type MarketplaceNote struct { // CreatorRole: The role of the person (buyer/seller) creating the note. // (readonly) CreatorRole string `json:"creatorRole,omitempty"` - - // DealId: Notes can optionally be associated with a deal. (readonly, - // except on create) + // DealId: Notes can optionally be associated with a deal. (readonly, except on + // create) DealId string `json:"dealId,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "adexchangebuyer#marketplaceNote". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "adexchangebuyer#marketplaceNote". Kind string `json:"kind,omitempty"` - // Note: The actual note to attach. (readonly, except on create) Note string `json:"note,omitempty"` - // NoteId: The unique id for the note. (readonly) NoteId string `json:"noteId,omitempty"` - // ProposalId: The proposalId that a note is attached to. (readonly) ProposalId string `json:"proposalId,omitempty"` - - // ProposalRevisionNumber: If the note is associated with a proposal - // revision number, then store that here. (readonly, except on create) + // ProposalRevisionNumber: If the note is associated with a proposal revision + // number, then store that here. (readonly, except on create) ProposalRevisionNumber int64 `json:"proposalRevisionNumber,omitempty,string"` - - // TimestampMs: The timestamp (ms since epoch) that this note was - // created. (readonly) + // TimestampMs: The timestamp (ms since epoch) that this note was created. + // (readonly) TimestampMs int64 `json:"timestampMs,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CreatorRole") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreatorRole") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreatorRole") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MarketplaceNote) MarshalJSON() ([]byte, error) { +func (s MarketplaceNote) MarshalJSON() ([]byte, error) { type NoMethod MarketplaceNote - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type MobileApplication struct { - AppStore string `json:"appStore,omitempty"` - + AppStore string `json:"appStore,omitempty"` ExternalAppId string `json:"externalAppId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AppStore") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AppStore") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AppStore") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileApplication) MarshalJSON() ([]byte, error) { +func (s MobileApplication) MarshalJSON() ([]byte, error) { type NoMethod MobileApplication - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PerformanceReport: The configuration data for an Ad Exchange -// performance report list. +// PerformanceReport: The configuration data for an Ad Exchange performance +// report list. type PerformanceReport struct { // BidRate: The number of bid responses with an ad. BidRate float64 `json:"bidRate,omitempty"` - // BidRequestRate: The number of bid requests sent to your bidder. BidRequestRate float64 `json:"bidRequestRate,omitempty"` - - // CalloutStatusRate: Rate of various prefiltering statuses per match. - // Please refer to the callout-status-codes.txt file for different - // statuses. + // CalloutStatusRate: Rate of various prefiltering statuses per match. Please + // refer to the callout-status-codes.txt file for different statuses. CalloutStatusRate []interface{} `json:"calloutStatusRate,omitempty"` - // CookieMatcherStatusRate: Average QPS for cookie matcher operations. CookieMatcherStatusRate []interface{} `json:"cookieMatcherStatusRate,omitempty"` - - // CreativeStatusRate: Rate of ads with a given status. Please refer to - // the creative-status-codes.txt file for different statuses. + // CreativeStatusRate: Rate of ads with a given status. Please refer to the + // creative-status-codes.txt file for different statuses. CreativeStatusRate []interface{} `json:"creativeStatusRate,omitempty"` - - // FilteredBidRate: The number of bid responses that were filtered due - // to a policy violation or other errors. + // FilteredBidRate: The number of bid responses that were filtered due to a + // policy violation or other errors. FilteredBidRate float64 `json:"filteredBidRate,omitempty"` - // HostedMatchStatusRate: Average QPS for hosted match operations. HostedMatchStatusRate []interface{} `json:"hostedMatchStatusRate,omitempty"` - // InventoryMatchRate: The number of potential queries based on your // pretargeting settings. InventoryMatchRate float64 `json:"inventoryMatchRate,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // Latency50thPercentile: The 50th percentile round trip latency(ms) as - // perceived from Google servers for the duration period covered by the - // report. + // perceived from Google servers for the duration period covered by the report. Latency50thPercentile float64 `json:"latency50thPercentile,omitempty"` - // Latency85thPercentile: The 85th percentile round trip latency(ms) as - // perceived from Google servers for the duration period covered by the - // report. + // perceived from Google servers for the duration period covered by the report. Latency85thPercentile float64 `json:"latency85thPercentile,omitempty"` - // Latency95thPercentile: The 95th percentile round trip latency(ms) as - // perceived from Google servers for the duration period covered by the - // report. + // perceived from Google servers for the duration period covered by the report. Latency95thPercentile float64 `json:"latency95thPercentile,omitempty"` - - // NoQuotaInRegion: Rate of various quota account statuses per quota - // check. + // NoQuotaInRegion: Rate of various quota account statuses per quota check. NoQuotaInRegion float64 `json:"noQuotaInRegion,omitempty"` - // OutOfQuota: Rate of various quota account statuses per quota check. OutOfQuota float64 `json:"outOfQuota,omitempty"` - - // PixelMatchRequests: Average QPS for pixel match requests from - // clients. + // PixelMatchRequests: Average QPS for pixel match requests from clients. PixelMatchRequests float64 `json:"pixelMatchRequests,omitempty"` - - // PixelMatchResponses: Average QPS for pixel match responses from - // clients. + // PixelMatchResponses: Average QPS for pixel match responses from clients. PixelMatchResponses float64 `json:"pixelMatchResponses,omitempty"` - // QuotaConfiguredLimit: The configured quota limits for this account. QuotaConfiguredLimit float64 `json:"quotaConfiguredLimit,omitempty"` - // QuotaThrottledLimit: The throttled quota limits for this account. QuotaThrottledLimit float64 `json:"quotaThrottledLimit,omitempty"` - // Region: The trading location of this data. Region string `json:"region,omitempty"` - - // SuccessfulRequestRate: The number of properly formed bid responses - // received by our servers within the deadline. + // SuccessfulRequestRate: The number of properly formed bid responses received + // by our servers within the deadline. SuccessfulRequestRate float64 `json:"successfulRequestRate,omitempty"` - - // Timestamp: The unix timestamp of the starting time of this - // performance data. + // Timestamp: The unix timestamp of the starting time of this performance data. Timestamp int64 `json:"timestamp,omitempty,string"` - - // UnsuccessfulRequestRate: The number of bid responses that were - // unsuccessful due to timeouts, incorrect formatting, etc. + // UnsuccessfulRequestRate: The number of bid responses that were unsuccessful + // due to timeouts, incorrect formatting, etc. UnsuccessfulRequestRate float64 `json:"unsuccessfulRequestRate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BidRate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BidRate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BidRate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BidRate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PerformanceReport) MarshalJSON() ([]byte, error) { +func (s PerformanceReport) MarshalJSON() ([]byte, error) { type NoMethod PerformanceReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PerformanceReport) UnmarshalJSON(data []byte) error { @@ -2777,391 +2181,296 @@ func (s *PerformanceReport) UnmarshalJSON(data []byte) error { return nil } -// PerformanceReportList: The configuration data for an Ad Exchange -// performance report list. +// PerformanceReportList: The configuration data for an Ad Exchange performance +// report list. type PerformanceReportList struct { // Kind: Resource type. Kind string `json:"kind,omitempty"` - - // PerformanceReport: A list of performance reports relevant for the - // account. + // PerformanceReport: A list of performance reports relevant for the account. PerformanceReport []*PerformanceReport `json:"performanceReport,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PerformanceReportList) MarshalJSON() ([]byte, error) { +func (s PerformanceReportList) MarshalJSON() ([]byte, error) { type NoMethod PerformanceReportList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfig struct { - // BillingId: The id for billing purposes, provided for reference. Leave - // this field blank for insert requests; the id will be generated - // automatically. + // BillingId: The id for billing purposes, provided for reference. Leave this + // field blank for insert requests; the id will be generated automatically. BillingId int64 `json:"billingId,omitempty,string"` - - // ConfigId: The config id; generated automatically. Leave this field - // blank for insert requests. + // ConfigId: The config id; generated automatically. Leave this field blank for + // insert requests. ConfigId int64 `json:"configId,omitempty,string"` - // ConfigName: The name of the config. Must be unique. Required for all // requests. ConfigName string `json:"configName,omitempty"` - // CreativeType: List must contain exactly one of // PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO. CreativeType []string `json:"creativeType,omitempty"` - - // Dimensions: Requests which allow one of these (width, height) pairs - // will match. All pairs must be supported ad dimensions. + // Dimensions: Requests which allow one of these (width, height) pairs will + // match. All pairs must be supported ad dimensions. Dimensions []*PretargetingConfigDimensions `json:"dimensions,omitempty"` - - // ExcludedContentLabels: Requests with any of these content labels will - // not match. Values are from content-labels.txt in the downloadable - // files section. + // ExcludedContentLabels: Requests with any of these content labels will not + // match. Values are from content-labels.txt in the downloadable files section. ExcludedContentLabels googleapi.Int64s `json:"excludedContentLabels,omitempty"` - - // ExcludedGeoCriteriaIds: Requests containing any of these geo criteria - // ids will not match. + // ExcludedGeoCriteriaIds: Requests containing any of these geo criteria ids + // will not match. ExcludedGeoCriteriaIds googleapi.Int64s `json:"excludedGeoCriteriaIds,omitempty"` - - // ExcludedPlacements: Requests containing any of these placements will - // not match. + // ExcludedPlacements: Requests containing any of these placements will not + // match. ExcludedPlacements []*PretargetingConfigExcludedPlacements `json:"excludedPlacements,omitempty"` - - // ExcludedUserLists: Requests containing any of these users list ids - // will not match. + // ExcludedUserLists: Requests containing any of these users list ids will not + // match. ExcludedUserLists googleapi.Int64s `json:"excludedUserLists,omitempty"` - - // ExcludedVerticals: Requests containing any of these vertical ids will - // not match. Values are from the publisher-verticals.txt file in the - // downloadable files section. + // ExcludedVerticals: Requests containing any of these vertical ids will not + // match. Values are from the publisher-verticals.txt file in the downloadable + // files section. ExcludedVerticals googleapi.Int64s `json:"excludedVerticals,omitempty"` - - // GeoCriteriaIds: Requests containing any of these geo criteria ids - // will match. + // GeoCriteriaIds: Requests containing any of these geo criteria ids will + // match. GeoCriteriaIds googleapi.Int64s `json:"geoCriteriaIds,omitempty"` - // IsActive: Whether this config is active. Required for all requests. IsActive bool `json:"isActive,omitempty"` - - // Kind: The kind of the resource, i.e. - // "adexchangebuyer#pretargetingConfig". + // Kind: The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig". Kind string `json:"kind,omitempty"` - // Languages: Request containing any of these language codes will match. Languages []string `json:"languages,omitempty"` - - // MaximumQps: The maximum QPS allocated to this pretargeting - // configuration, used for pretargeting-level QPS limits. By default, - // this is not set, which indicates that there is no QPS limit at the - // configuration level (a global or account-level limit may still be - // imposed). + // MaximumQps: The maximum QPS allocated to this pretargeting configuration, + // used for pretargeting-level QPS limits. By default, this is not set, which + // indicates that there is no QPS limit at the configuration level (a global or + // account-level limit may still be imposed). MaximumQps int64 `json:"maximumQps,omitempty,string"` - - // MinimumViewabilityDecile: Requests where the predicted viewability is - // below the specified decile will not match. E.g. if the buyer sets - // this value to 5, requests from slots where the predicted viewability - // is below 50% will not match. If the predicted viewability is unknown - // this field will be ignored. + // MinimumViewabilityDecile: Requests where the predicted viewability is below + // the specified decile will not match. E.g. if the buyer sets this value to 5, + // requests from slots where the predicted viewability is below 50% will not + // match. If the predicted viewability is unknown this field will be ignored. MinimumViewabilityDecile int64 `json:"minimumViewabilityDecile,omitempty"` - - // MobileCarriers: Requests containing any of these mobile carrier ids - // will match. Values are from mobile-carriers.csv in the downloadable - // files section. + // MobileCarriers: Requests containing any of these mobile carrier ids will + // match. Values are from mobile-carriers.csv in the downloadable files + // section. MobileCarriers googleapi.Int64s `json:"mobileCarriers,omitempty"` - - // MobileDevices: Requests containing any of these mobile device ids - // will match. Values are from mobile-devices.csv in the downloadable - // files section. + // MobileDevices: Requests containing any of these mobile device ids will + // match. Values are from mobile-devices.csv in the downloadable files section. MobileDevices googleapi.Int64s `json:"mobileDevices,omitempty"` - - // MobileOperatingSystemVersions: Requests containing any of these - // mobile operating system version ids will match. Values are from - // mobile-os.csv in the downloadable files section. + // MobileOperatingSystemVersions: Requests containing any of these mobile + // operating system version ids will match. Values are from mobile-os.csv in + // the downloadable files section. MobileOperatingSystemVersions googleapi.Int64s `json:"mobileOperatingSystemVersions,omitempty"` - // Placements: Requests containing any of these placements will match. Placements []*PretargetingConfigPlacements `json:"placements,omitempty"` - - // Platforms: Requests matching any of these platforms will match. - // Possible values are PRETARGETING_PLATFORM_MOBILE, - // PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET. + // Platforms: Requests matching any of these platforms will match. Possible + // values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and + // PRETARGETING_PLATFORM_TABLET. Platforms []string `json:"platforms,omitempty"` - - // SupportedCreativeAttributes: Creative attributes should be declared - // here if all creatives corresponding to this pretargeting - // configuration have that creative attribute. Values are from - // pretargetable-creative-attributes.txt in the downloadable files - // section. + // SupportedCreativeAttributes: Creative attributes should be declared here if + // all creatives corresponding to this pretargeting configuration have that + // creative attribute. Values are from pretargetable-creative-attributes.txt in + // the downloadable files section. SupportedCreativeAttributes googleapi.Int64s `json:"supportedCreativeAttributes,omitempty"` - - // UserIdentifierDataRequired: Requests containing the specified type of - // user data will match. Possible values are HOSTED_MATCH_DATA, which - // means the request is cookie-targetable and has a match in the buyer's - // hosted match table, and COOKIE_OR_IDFA, which means the request has - // either a targetable cookie or an iOS IDFA. + // UserIdentifierDataRequired: Requests containing the specified type of user + // data will match. Possible values are HOSTED_MATCH_DATA, which means the + // request is cookie-targetable and has a match in the buyer's hosted match + // table, and COOKIE_OR_IDFA, which means the request has either a targetable + // cookie or an iOS IDFA. UserIdentifierDataRequired []string `json:"userIdentifierDataRequired,omitempty"` - // UserLists: Requests containing any of these user list ids will match. UserLists googleapi.Int64s `json:"userLists,omitempty"` - - // VendorTypes: Requests that allow any of these vendor ids will match. - // Values are from vendors.txt in the downloadable files section. + // VendorTypes: Requests that allow any of these vendor ids will match. Values + // are from vendors.txt in the downloadable files section. VendorTypes googleapi.Int64s `json:"vendorTypes,omitempty"` - // Verticals: Requests containing any of these vertical ids will match. Verticals googleapi.Int64s `json:"verticals,omitempty"` - // VideoPlayerSizes: Video requests satisfying any of these player size // constraints will match. VideoPlayerSizes []*PretargetingConfigVideoPlayerSizes `json:"videoPlayerSizes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BillingId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BillingId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BillingId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfig) MarshalJSON() ([]byte, error) { +func (s PretargetingConfig) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfigDimensions struct { // Height: Height in pixels. Height int64 `json:"height,omitempty,string"` - // Width: Width in pixels. Width int64 `json:"width,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfigDimensions) MarshalJSON() ([]byte, error) { +func (s PretargetingConfigDimensions) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfigDimensions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfigExcludedPlacements struct { - // Token: The value of the placement. Interpretation depends on the - // placement type, e.g. URL for a site placement, channel name for a - // channel placement, app id for a mobile app placement. + // Token: The value of the placement. Interpretation depends on the placement + // type, e.g. URL for a site placement, channel name for a channel placement, + // app id for a mobile app placement. Token string `json:"token,omitempty"` - // Type: The type of the placement. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Token") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Token") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Token") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfigExcludedPlacements) MarshalJSON() ([]byte, error) { +func (s PretargetingConfigExcludedPlacements) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfigExcludedPlacements - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfigPlacements struct { - // Token: The value of the placement. Interpretation depends on the - // placement type, e.g. URL for a site placement, channel name for a - // channel placement, app id for a mobile app placement. + // Token: The value of the placement. Interpretation depends on the placement + // type, e.g. URL for a site placement, channel name for a channel placement, + // app id for a mobile app placement. Token string `json:"token,omitempty"` - // Type: The type of the placement. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Token") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Token") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Token") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfigPlacements) MarshalJSON() ([]byte, error) { +func (s PretargetingConfigPlacements) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfigPlacements - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfigVideoPlayerSizes struct { - // AspectRatio: The type of aspect ratio. Leave this field blank to - // match all aspect ratios. + // AspectRatio: The type of aspect ratio. Leave this field blank to match all + // aspect ratios. AspectRatio string `json:"aspectRatio,omitempty"` - - // MinHeight: The minimum player height in pixels. Leave this field - // blank to match any player height. + // MinHeight: The minimum player height in pixels. Leave this field blank to + // match any player height. MinHeight int64 `json:"minHeight,omitempty,string"` - - // MinWidth: The minimum player width in pixels. Leave this field blank - // to match any player width. + // MinWidth: The minimum player width in pixels. Leave this field blank to + // match any player width. MinWidth int64 `json:"minWidth,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "AspectRatio") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AspectRatio") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AspectRatio") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfigVideoPlayerSizes) MarshalJSON() ([]byte, error) { +func (s PretargetingConfigVideoPlayerSizes) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfigVideoPlayerSizes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PretargetingConfigList struct { // Items: A list of pretargeting configs Items []*PretargetingConfig `json:"items,omitempty"` - // Kind: Resource type. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PretargetingConfigList) MarshalJSON() ([]byte, error) { +func (s PretargetingConfigList) MarshalJSON() ([]byte, error) { type NoMethod PretargetingConfigList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Price struct { // AmountMicros: The price value in micros. AmountMicros float64 `json:"amountMicros,omitempty"` - // CurrencyCode: The currency code for the price. CurrencyCode string `json:"currencyCode,omitempty"` - // ExpectedCpmMicros: In case of CPD deals, the expected CPM in micros. ExpectedCpmMicros float64 `json:"expectedCpmMicros,omitempty"` - // PricingType: The pricing type for the deal/product. PricingType string `json:"pricingType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AmountMicros") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AmountMicros") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AmountMicros") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Price) MarshalJSON() ([]byte, error) { +func (s Price) MarshalJSON() ([]byte, error) { type NoMethod Price - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Price) UnmarshalJSON(data []byte) error { @@ -3180,459 +2489,338 @@ func (s *Price) UnmarshalJSON(data []byte) error { return nil } -// PricePerBuyer: Used to specify pricing rules for buyers. Each -// PricePerBuyer in a product can become [0,1] deals. To check if there -// is a PricePerBuyer for a particular buyer we look for the most -// specific matching rule - we first look for a rule matching the buyer -// and otherwise look for a matching rule where no buyer is set. +// PricePerBuyer: Used to specify pricing rules for buyers. Each PricePerBuyer +// in a product can become [0,1] deals. To check if there is a PricePerBuyer +// for a particular buyer we look for the most specific matching rule - we +// first look for a rule matching the buyer and otherwise look for a matching +// rule where no buyer is set. type PricePerBuyer struct { // AuctionTier: Optional access type for this buyer. AuctionTier string `json:"auctionTier,omitempty"` - // BilledBuyer: Reference to the buyer that will get billed. BilledBuyer *Buyer `json:"billedBuyer,omitempty"` - - // Buyer: The buyer who will pay this price. If unset, all buyers can - // pay this price (if the advertisers match, and there's no more - // specific rule matching the buyer). + // Buyer: The buyer who will pay this price. If unset, all buyers can pay this + // price (if the advertisers match, and there's no more specific rule matching + // the buyer). Buyer *Buyer `json:"buyer,omitempty"` - // Price: The specified price Price *Price `json:"price,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuctionTier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuctionTier") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuctionTier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricePerBuyer) MarshalJSON() ([]byte, error) { +func (s PricePerBuyer) MarshalJSON() ([]byte, error) { type NoMethod PricePerBuyer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PrivateData struct { - ReferenceId string `json:"referenceId,omitempty"` - + ReferenceId string `json:"referenceId,omitempty"` ReferencePayload string `json:"referencePayload,omitempty"` - // ForceSendFields is a list of field names (e.g. "ReferenceId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ReferenceId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ReferenceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PrivateData) MarshalJSON() ([]byte, error) { +func (s PrivateData) MarshalJSON() ([]byte, error) { type NoMethod PrivateData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Product: A product is segment of inventory that a seller wishes to -// sell. It is associated with certain terms and targeting information -// which helps buyer know more about the inventory. Each field in a -// product can have one of the following setting: +// Product: A product is segment of inventory that a seller wishes to sell. It +// is associated with certain terms and targeting information which helps buyer +// know more about the inventory. Each field in a product can have one of the +// following setting: // -// (readonly) - It is an error to try and set this field. -// (buyer-readonly) - Only the seller can set this field. -// (seller-readonly) - Only the buyer can set this field. (updatable) - -// The field is updatable at all times by either buyer or the seller. +// (readonly) - It is an error to try and set this field. (buyer-readonly) - +// Only the seller can set this field. (seller-readonly) - Only the buyer can +// set this field. (updatable) - The field is updatable at all times by either +// buyer or the seller. type Product struct { - // BilledBuyer: The billed buyer corresponding to the buyer that created - // the offer. (readonly, except on create) + // BilledBuyer: The billed buyer corresponding to the buyer that created the + // offer. (readonly, except on create) BilledBuyer *Buyer `json:"billedBuyer,omitempty"` - - // Buyer: The buyer that created the offer if this is a buyer initiated - // offer (readonly, except on create) + // Buyer: The buyer that created the offer if this is a buyer initiated offer + // (readonly, except on create) Buyer *Buyer `json:"buyer,omitempty"` - // CreationTimeMs: Creation time in ms. since epoch (readonly) CreationTimeMs int64 `json:"creationTimeMs,omitempty,string"` - // CreatorContacts: Optional contact information for the creator of this // product. (buyer-readonly) CreatorContacts []*ContactInformation `json:"creatorContacts,omitempty"` - // CreatorRole: The role that created the offer. Set to BUYER for buyer // initiated offers. CreatorRole string `json:"creatorRole,omitempty"` - // DeliveryControl: The set of fields around delivery control that are - // interesting for a buyer to see but are non-negotiable. These are set - // by the publisher. This message is assigned an id of 100 since some - // day we would want to model this as a protobuf extension. + // interesting for a buyer to see but are non-negotiable. These are set by the + // publisher. This message is assigned an id of 100 since some day we would + // want to model this as a protobuf extension. DeliveryControl *DeliveryControl `json:"deliveryControl,omitempty"` - // FlightEndTimeMs: The proposed end time for the deal (ms since epoch) // (buyer-readonly) FlightEndTimeMs int64 `json:"flightEndTimeMs,omitempty,string"` - - // FlightStartTimeMs: Inventory availability dates. (times are in ms - // since epoch) The granularity is generally in the order of seconds. + // FlightStartTimeMs: Inventory availability dates. (times are in ms since + // epoch) The granularity is generally in the order of seconds. // (buyer-readonly) FlightStartTimeMs int64 `json:"flightStartTimeMs,omitempty,string"` - - // HasCreatorSignedOff: If the creator has already signed off on the - // product, then the buyer can finalize the deal by accepting the - // product as is. When copying to a proposal, if any of the terms are - // changed, then auto_finalize is automatically set to false. + // HasCreatorSignedOff: If the creator has already signed off on the product, + // then the buyer can finalize the deal by accepting the product as is. When + // copying to a proposal, if any of the terms are changed, then auto_finalize + // is automatically set to false. HasCreatorSignedOff bool `json:"hasCreatorSignedOff,omitempty"` - - // InventorySource: What exchange will provide this inventory (readonly, - // except on create). + // InventorySource: What exchange will provide this inventory (readonly, except + // on create). InventorySource string `json:"inventorySource,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "adexchangebuyer#product". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "adexchangebuyer#product". Kind string `json:"kind,omitempty"` - - // Labels: Optional List of labels for the product (optional, - // buyer-readonly). + // Labels: Optional List of labels for the product (optional, buyer-readonly). Labels []*MarketplaceLabel `json:"labels,omitempty"` - // LastUpdateTimeMs: Time of last update in ms. since epoch (readonly) LastUpdateTimeMs int64 `json:"lastUpdateTimeMs,omitempty,string"` - - // LegacyOfferId: Optional legacy offer id if this offer is a preferred - // deal offer. + // LegacyOfferId: Optional legacy offer id if this offer is a preferred deal + // offer. LegacyOfferId string `json:"legacyOfferId,omitempty"` - - // MarketplacePublisherProfileId: Marketplace publisher profile Id. This - // Id differs from the regular publisher_profile_id in that 1. This is a - // new id, the old Id will be deprecated in 2017. 2. This id uniquely - // identifies a publisher profile by itself. + // MarketplacePublisherProfileId: Marketplace publisher profile Id. This Id + // differs from the regular publisher_profile_id in that 1. This is a new id, + // the old Id will be deprecated in 2017. 2. This id uniquely identifies a + // publisher profile by itself. MarketplacePublisherProfileId string `json:"marketplacePublisherProfileId,omitempty"` - - // Name: The name for this product as set by the seller. - // (buyer-readonly) + // Name: The name for this product as set by the seller. (buyer-readonly) Name string `json:"name,omitempty"` - - // PrivateAuctionId: Optional private auction id if this offer is a - // private auction offer. + // PrivateAuctionId: Optional private auction id if this offer is a private + // auction offer. PrivateAuctionId string `json:"privateAuctionId,omitempty"` - // ProductId: The unique id for the product (readonly) ProductId string `json:"productId,omitempty"` - // PublisherProfileId: Id of the publisher profile for a given seller. A // (seller.account_id, publisher_profile_id) pair uniquely identifies a - // publisher profile. Buyers can call the PublisherProfiles::List - // endpoint to get a list of publisher profiles for a given seller. + // publisher profile. Buyers can call the PublisherProfiles::List endpoint to + // get a list of publisher profiles for a given seller. PublisherProfileId string `json:"publisherProfileId,omitempty"` - - // PublisherProvidedForecast: Publisher self-provided forecast - // information. + // PublisherProvidedForecast: Publisher self-provided forecast information. PublisherProvidedForecast *PublisherProvidedForecast `json:"publisherProvidedForecast,omitempty"` - // RevisionNumber: The revision number of the product. (readonly) RevisionNumber int64 `json:"revisionNumber,omitempty,string"` - - // Seller: Information about the seller that created this product - // (readonly, except on create) + // Seller: Information about the seller that created this product (readonly, + // except on create) Seller *Seller `json:"seller,omitempty"` - - // SharedTargetings: Targeting that is shared between the buyer and the - // seller. Each targeting criteria has a specified key and for each key - // there is a list of inclusion value or exclusion values. - // (buyer-readonly) + // SharedTargetings: Targeting that is shared between the buyer and the seller. + // Each targeting criteria has a specified key and for each key there is a list + // of inclusion value or exclusion values. (buyer-readonly) SharedTargetings []*SharedTargeting `json:"sharedTargetings,omitempty"` - // State: The state of the product. (buyer-readonly) State string `json:"state,omitempty"` - // SyndicationProduct: The syndication product associated with the deal. // (readonly, except on create) SyndicationProduct string `json:"syndicationProduct,omitempty"` - // Terms: The negotiable terms of the deal (buyer-readonly) Terms *DealTerms `json:"terms,omitempty"` - - // WebPropertyCode: The web property code for the seller. This field is - // meant to be copied over as is when creating deals. + // WebPropertyCode: The web property code for the seller. This field is meant + // to be copied over as is when creating deals. WebPropertyCode string `json:"webPropertyCode,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BilledBuyer") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BilledBuyer") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BilledBuyer") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Product) MarshalJSON() ([]byte, error) { +func (s Product) MarshalJSON() ([]byte, error) { type NoMethod Product - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Proposal: Represents a proposal in the marketplace. A proposal is the -// unit of negotiation between a seller and a buyer and contains deals -// which are served. Each field in a proposal can have one of the -// following setting: +// Proposal: Represents a proposal in the marketplace. A proposal is the unit +// of negotiation between a seller and a buyer and contains deals which are +// served. Each field in a proposal can have one of the following +// setting: // -// (readonly) - It is an error to try and set this field. -// (buyer-readonly) - Only the seller can set this field. -// (seller-readonly) - Only the buyer can set this field. (updatable) - -// The field is updatable at all times by either buyer or the seller. +// (readonly) - It is an error to try and set this field. (buyer-readonly) - +// Only the seller can set this field. (seller-readonly) - Only the buyer can +// set this field. (updatable) - The field is updatable at all times by either +// buyer or the seller. type Proposal struct { - // BilledBuyer: Reference to the buyer that will get billed for this - // proposal. (readonly) + // BilledBuyer: Reference to the buyer that will get billed for this proposal. + // (readonly) BilledBuyer *Buyer `json:"billedBuyer,omitempty"` - - // Buyer: Reference to the buyer on the proposal. (readonly, except on - // create) + // Buyer: Reference to the buyer on the proposal. (readonly, except on create) Buyer *Buyer `json:"buyer,omitempty"` - - // BuyerContacts: Optional contact information of the buyer. - // (seller-readonly) + // BuyerContacts: Optional contact information of the buyer. (seller-readonly) BuyerContacts []*ContactInformation `json:"buyerContacts,omitempty"` - // BuyerPrivateData: Private data for buyer. (hidden from seller). BuyerPrivateData *PrivateData `json:"buyerPrivateData,omitempty"` - // DbmAdvertiserIds: IDs of DBM advertisers permission to this proposal. DbmAdvertiserIds []string `json:"dbmAdvertiserIds,omitempty"` - - // HasBuyerSignedOff: When an proposal is in an accepted state, - // indicates whether the buyer has signed off. Once both sides have - // signed off on a deal, the proposal can be finalized by the seller. - // (seller-readonly) + // HasBuyerSignedOff: When an proposal is in an accepted state, indicates + // whether the buyer has signed off. Once both sides have signed off on a deal, + // the proposal can be finalized by the seller. (seller-readonly) HasBuyerSignedOff bool `json:"hasBuyerSignedOff,omitempty"` - - // HasSellerSignedOff: When an proposal is in an accepted state, - // indicates whether the buyer has signed off Once both sides have - // signed off on a deal, the proposal can be finalized by the seller. - // (buyer-readonly) + // HasSellerSignedOff: When an proposal is in an accepted state, indicates + // whether the buyer has signed off Once both sides have signed off on a deal, + // the proposal can be finalized by the seller. (buyer-readonly) HasSellerSignedOff bool `json:"hasSellerSignedOff,omitempty"` - - // InventorySource: What exchange will provide this inventory (readonly, - // except on create). + // InventorySource: What exchange will provide this inventory (readonly, except + // on create). InventorySource string `json:"inventorySource,omitempty"` - - // IsRenegotiating: True if the proposal is being renegotiated - // (readonly). + // IsRenegotiating: True if the proposal is being renegotiated (readonly). IsRenegotiating bool `json:"isRenegotiating,omitempty"` - - // IsSetupComplete: True, if the buyside inventory setup is complete for - // this proposal. (readonly, except via OrderSetupCompleted action) - // Deprecated in favor of deal level setup complete flag. + // IsSetupComplete: True, if the buyside inventory setup is complete for this + // proposal. (readonly, except via OrderSetupCompleted action) Deprecated in + // favor of deal level setup complete flag. IsSetupComplete bool `json:"isSetupComplete,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "adexchangebuyer#proposal". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "adexchangebuyer#proposal". Kind string `json:"kind,omitempty"` - // Labels: List of labels associated with the proposal. (readonly) Labels []*MarketplaceLabel `json:"labels,omitempty"` - - // LastUpdaterOrCommentorRole: The role of the last user that either - // updated the proposal or left a comment. (readonly) + // LastUpdaterOrCommentorRole: The role of the last user that either updated + // the proposal or left a comment. (readonly) LastUpdaterOrCommentorRole string `json:"lastUpdaterOrCommentorRole,omitempty"` - // Name: The name for the proposal (updatable) Name string `json:"name,omitempty"` - - // NegotiationId: Optional negotiation id if this proposal is a - // preferred deal proposal. + // NegotiationId: Optional negotiation id if this proposal is a preferred deal + // proposal. NegotiationId string `json:"negotiationId,omitempty"` - // OriginatorRole: Indicates whether the buyer/seller created the // proposal.(readonly) OriginatorRole string `json:"originatorRole,omitempty"` - - // PrivateAuctionId: Optional private auction id if this proposal is a - // private auction proposal. + // PrivateAuctionId: Optional private auction id if this proposal is a private + // auction proposal. PrivateAuctionId string `json:"privateAuctionId,omitempty"` - // ProposalId: The unique id of the proposal. (readonly). ProposalId string `json:"proposalId,omitempty"` - // ProposalState: The current state of the proposal. (readonly) ProposalState string `json:"proposalState,omitempty"` - // RevisionNumber: The revision number for the proposal (readonly). RevisionNumber int64 `json:"revisionNumber,omitempty,string"` - - // RevisionTimeMs: The time (ms since epoch) when the proposal was last - // revised (readonly). + // RevisionTimeMs: The time (ms since epoch) when the proposal was last revised + // (readonly). RevisionTimeMs int64 `json:"revisionTimeMs,omitempty,string"` - // Seller: Reference to the seller on the proposal. (readonly, except on // create) Seller *Seller `json:"seller,omitempty"` - - // SellerContacts: Optional contact information of the seller - // (buyer-readonly). + // SellerContacts: Optional contact information of the seller (buyer-readonly). SellerContacts []*ContactInformation `json:"sellerContacts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BilledBuyer") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BilledBuyer") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BilledBuyer") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Proposal) MarshalJSON() ([]byte, error) { +func (s Proposal) MarshalJSON() ([]byte, error) { type NoMethod Proposal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PublisherProfileApiProto struct { // Audience: Publisher provided info on its audience. Audience string `json:"audience,omitempty"` - // BuyerPitchStatement: A pitch statement for the buyer BuyerPitchStatement string `json:"buyerPitchStatement,omitempty"` - // DirectContact: Direct contact for the publisher profile. DirectContact string `json:"directContact,omitempty"` - - // Exchange: Exchange where this publisher profile is from. E.g. AdX, - // Rubicon etc... - Exchange string `json:"exchange,omitempty"` - + // Exchange: Exchange where this publisher profile is from. E.g. AdX, Rubicon + // etc... + Exchange string `json:"exchange,omitempty"` ForecastInventory string `json:"forecastInventory,omitempty"` - // GooglePlusLink: Link to publisher's Google+ page. GooglePlusLink string `json:"googlePlusLink,omitempty"` - - // IsParent: True, if this is the parent profile, which represents all - // domains owned by the publisher. + // IsParent: True, if this is the parent profile, which represents all domains + // owned by the publisher. IsParent bool `json:"isParent,omitempty"` - - // IsPublished: True, if this profile is published. Deprecated for - // state. + // IsPublished: True, if this profile is published. Deprecated for state. IsPublished bool `json:"isPublished,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "adexchangebuyer#publisherProfileApiProto". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "adexchangebuyer#publisherProfileApiProto". Kind string `json:"kind,omitempty"` - // LogoUrl: The url to the logo for the publisher. LogoUrl string `json:"logoUrl,omitempty"` - // MediaKitLink: The url for additional marketing and sales materials. MediaKitLink string `json:"mediaKitLink,omitempty"` - - Name string `json:"name,omitempty"` - + Name string `json:"name,omitempty"` // Overview: Publisher provided overview. Overview string `json:"overview,omitempty"` - - // ProfileId: The pair of (seller.account_id, profile_id) uniquely - // identifies a publisher profile for a given publisher. + // ProfileId: The pair of (seller.account_id, profile_id) uniquely identifies a + // publisher profile for a given publisher. ProfileId int64 `json:"profileId,omitempty"` - // ProgrammaticContact: Programmatic contact for the publisher profile. ProgrammaticContact string `json:"programmaticContact,omitempty"` - - // PublisherAppIds: The list of app IDs represented in this publisher - // profile. Empty if this is a parent profile. Deprecated in favor of - // publisher_app. + // PublisherAppIds: The list of app IDs represented in this publisher profile. + // Empty if this is a parent profile. Deprecated in favor of publisher_app. PublisherAppIds googleapi.Int64s `json:"publisherAppIds,omitempty"` - - // PublisherApps: The list of apps represented in this publisher - // profile. Empty if this is a parent profile. + // PublisherApps: The list of apps represented in this publisher profile. Empty + // if this is a parent profile. PublisherApps []*MobileApplication `json:"publisherApps,omitempty"` - - // PublisherDomains: The list of domains represented in this publisher - // profile. Empty if this is a parent profile. + // PublisherDomains: The list of domains represented in this publisher profile. + // Empty if this is a parent profile. PublisherDomains []string `json:"publisherDomains,omitempty"` - // PublisherProfileId: Unique Id for publisher profile. PublisherProfileId string `json:"publisherProfileId,omitempty"` - - // PublisherProvidedForecast: Publisher provided forecasting - // information. + // PublisherProvidedForecast: Publisher provided forecasting information. PublisherProvidedForecast *PublisherProvidedForecast `json:"publisherProvidedForecast,omitempty"` - // RateCardInfoLink: Link to publisher rate card RateCardInfoLink string `json:"rateCardInfoLink,omitempty"` - // SamplePageLink: Link for a sample content page. SamplePageLink string `json:"samplePageLink,omitempty"` - // Seller: Seller of the publisher profile. Seller *Seller `json:"seller,omitempty"` - // State: State of the publisher profile. State string `json:"state,omitempty"` - // TopHeadlines: Publisher provided key metrics and rankings. TopHeadlines []string `json:"topHeadlines,omitempty"` - // ForceSendFields is a list of field names (e.g. "Audience") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audience") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audience") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PublisherProfileApiProto) MarshalJSON() ([]byte, error) { +func (s PublisherProfileApiProto) MarshalJSON() ([]byte, error) { type NoMethod PublisherProfileApiProto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PublisherProvidedForecast: This message carries publisher provided @@ -3640,406 +2828,299 @@ func (s *PublisherProfileApiProto) MarshalJSON() ([]byte, error) { type PublisherProvidedForecast struct { // Dimensions: Publisher provided dimensions. E.g. geo, sizes etc... Dimensions []*Dimension `json:"dimensions,omitempty"` - // WeeklyImpressions: Publisher provided weekly impressions. WeeklyImpressions int64 `json:"weeklyImpressions,omitempty,string"` - // WeeklyUniques: Publisher provided weekly uniques. WeeklyUniques int64 `json:"weeklyUniques,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Dimensions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimensions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimensions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PublisherProvidedForecast) MarshalJSON() ([]byte, error) { +func (s PublisherProvidedForecast) MarshalJSON() ([]byte, error) { type NoMethod PublisherProvidedForecast - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Seller struct { - // AccountId: The unique id for the seller. The seller fills in this - // field. The seller account id is then available to buyer in the - // product. + // AccountId: The unique id for the seller. The seller fills in this field. The + // seller account id is then available to buyer in the product. AccountId string `json:"accountId,omitempty"` - // SubAccountId: Optional sub-account id for the seller. SubAccountId string `json:"subAccountId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Seller) MarshalJSON() ([]byte, error) { +func (s Seller) MarshalJSON() ([]byte, error) { type NoMethod Seller - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SharedTargeting struct { - // Exclusions: The list of values to exclude from targeting. Each value - // is AND'd together. + // Exclusions: The list of values to exclude from targeting. Each value is + // AND'd together. Exclusions []*TargetingValue `json:"exclusions,omitempty"` - - // Inclusions: The list of value to include as part of the targeting. - // Each value is OR'd together. + // Inclusions: The list of value to include as part of the targeting. Each + // value is OR'd together. Inclusions []*TargetingValue `json:"inclusions,omitempty"` - // Key: The key representing the shared targeting criterion. Key string `json:"key,omitempty"` - // ForceSendFields is a list of field names (e.g. "Exclusions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Exclusions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Exclusions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SharedTargeting) MarshalJSON() ([]byte, error) { +func (s SharedTargeting) MarshalJSON() ([]byte, error) { type NoMethod SharedTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TargetingValue struct { // CreativeSizeValue: The creative size value to exclude/include. CreativeSizeValue *TargetingValueCreativeSize `json:"creativeSizeValue,omitempty"` - - // DayPartTargetingValue: The daypart targeting to include / exclude. - // Filled in when the key is GOOG_DAYPART_TARGETING. - DayPartTargetingValue *TargetingValueDayPartTargeting `json:"dayPartTargetingValue,omitempty"` - - DemogAgeCriteriaValue *TargetingValueDemogAgeCriteria `json:"demogAgeCriteriaValue,omitempty"` - + // DayPartTargetingValue: The daypart targeting to include / exclude. Filled in + // when the key is GOOG_DAYPART_TARGETING. + DayPartTargetingValue *TargetingValueDayPartTargeting `json:"dayPartTargetingValue,omitempty"` + DemogAgeCriteriaValue *TargetingValueDemogAgeCriteria `json:"demogAgeCriteriaValue,omitempty"` DemogGenderCriteriaValue *TargetingValueDemogGenderCriteria `json:"demogGenderCriteriaValue,omitempty"` - // LongValue: The long value to exclude/include. - LongValue int64 `json:"longValue,omitempty,string"` - + LongValue int64 `json:"longValue,omitempty,string"` RequestPlatformTargetingValue *TargetingValueRequestPlatformTargeting `json:"requestPlatformTargetingValue,omitempty"` - // StringValue: The string value to exclude/include. StringValue string `json:"stringValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreativeSizeValue") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeSizeValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeSizeValue") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeSizeValue") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingValue) MarshalJSON() ([]byte, error) { +func (s TargetingValue) MarshalJSON() ([]byte, error) { type NoMethod TargetingValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetingValueCreativeSize: Next Id: 7 type TargetingValueCreativeSize struct { // AllowedFormats: The formats allowed by the publisher. AllowedFormats []string `json:"allowedFormats,omitempty"` - // CompanionSizes: For video size type, the list of companion sizes. CompanionSizes []*TargetingValueSize `json:"companionSizes,omitempty"` - // CreativeSizeType: The Creative size type. CreativeSizeType string `json:"creativeSizeType,omitempty"` - // NativeTemplate: The native template for native ad. NativeTemplate string `json:"nativeTemplate,omitempty"` - - // Size: For regular or video creative size type, specifies the size of - // the creative. + // Size: For regular or video creative size type, specifies the size of the + // creative. Size *TargetingValueSize `json:"size,omitempty"` - // SkippableAdType: The skippable ad type for video size. SkippableAdType string `json:"skippableAdType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowedFormats") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedFormats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowedFormats") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingValueCreativeSize) MarshalJSON() ([]byte, error) { +func (s TargetingValueCreativeSize) MarshalJSON() ([]byte, error) { type NoMethod TargetingValueCreativeSize - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TargetingValueDayPartTargeting struct { - DayParts []*TargetingValueDayPartTargetingDayPart `json:"dayParts,omitempty"` - - TimeZoneType string `json:"timeZoneType,omitempty"` - + DayParts []*TargetingValueDayPartTargetingDayPart `json:"dayParts,omitempty"` + TimeZoneType string `json:"timeZoneType,omitempty"` // ForceSendFields is a list of field names (e.g. "DayParts") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DayParts") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DayParts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingValueDayPartTargeting) MarshalJSON() ([]byte, error) { +func (s TargetingValueDayPartTargeting) MarshalJSON() ([]byte, error) { type NoMethod TargetingValueDayPartTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TargetingValueDayPartTargetingDayPart struct { - DayOfWeek string `json:"dayOfWeek,omitempty"` - - EndHour int64 `json:"endHour,omitempty"` - - EndMinute int64 `json:"endMinute,omitempty"` - - StartHour int64 `json:"startHour,omitempty"` - - StartMinute int64 `json:"startMinute,omitempty"` - + DayOfWeek string `json:"dayOfWeek,omitempty"` + EndHour int64 `json:"endHour,omitempty"` + EndMinute int64 `json:"endMinute,omitempty"` + StartHour int64 `json:"startHour,omitempty"` + StartMinute int64 `json:"startMinute,omitempty"` // ForceSendFields is a list of field names (e.g. "DayOfWeek") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DayOfWeek") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DayOfWeek") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingValueDayPartTargetingDayPart) MarshalJSON() ([]byte, error) { +func (s TargetingValueDayPartTargetingDayPart) MarshalJSON() ([]byte, error) { type NoMethod TargetingValueDayPartTargetingDayPart - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TargetingValueDemogAgeCriteria struct { DemogAgeCriteriaIds []string `json:"demogAgeCriteriaIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DemogAgeCriteriaIds") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DemogAgeCriteriaIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DemogAgeCriteriaIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DemogAgeCriteriaIds") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingValueDemogAgeCriteria) MarshalJSON() ([]byte, error) { +func (s TargetingValueDemogAgeCriteria) MarshalJSON() ([]byte, error) { type NoMethod TargetingValueDemogAgeCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TargetingValueDemogGenderCriteria struct { DemogGenderCriteriaIds []string `json:"demogGenderCriteriaIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DemogGenderCriteriaIds") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DemogGenderCriteriaIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DemogGenderCriteriaIds") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DemogGenderCriteriaIds") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingValueDemogGenderCriteria) MarshalJSON() ([]byte, error) { +func (s TargetingValueDemogGenderCriteria) MarshalJSON() ([]byte, error) { type NoMethod TargetingValueDemogGenderCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TargetingValueRequestPlatformTargeting struct { RequestPlatforms []string `json:"requestPlatforms,omitempty"` - // ForceSendFields is a list of field names (e.g. "RequestPlatforms") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestPlatforms") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "RequestPlatforms") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingValueRequestPlatformTargeting) MarshalJSON() ([]byte, error) { +func (s TargetingValueRequestPlatformTargeting) MarshalJSON() ([]byte, error) { type NoMethod TargetingValueRequestPlatformTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TargetingValueSize struct { // Height: The height of the creative. Height int64 `json:"height,omitempty"` - // Width: The width of the creative. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingValueSize) MarshalJSON() ([]byte, error) { +func (s TargetingValueSize) MarshalJSON() ([]byte, error) { type NoMethod TargetingValueSize - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UpdatePrivateAuctionProposalRequest struct { // ExternalDealId: The externalDealId of the deal to be updated. ExternalDealId string `json:"externalDealId,omitempty"` - // Note: Optional note to be added. Note *MarketplaceNote `json:"note,omitempty"` - - // ProposalRevisionNumber: The current revision number of the proposal - // to be updated. + // ProposalRevisionNumber: The current revision number of the proposal to be + // updated. ProposalRevisionNumber int64 `json:"proposalRevisionNumber,omitempty,string"` - // UpdateAction: The proposed action on the private auction proposal. UpdateAction string `json:"updateAction,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExternalDealId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExternalDealId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExternalDealId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdatePrivateAuctionProposalRequest) MarshalJSON() ([]byte, error) { +func (s UpdatePrivateAuctionProposalRequest) MarshalJSON() ([]byte, error) { type NoMethod UpdatePrivateAuctionProposalRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "adexchangebuyer.accounts.get": - type AccountsGetCall struct { s *Service id int64 @@ -4059,33 +3140,29 @@ func (r *AccountsService) Get(id int64) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4094,12 +3171,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4116,16 +3188,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4133,17 +3203,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -4156,34 +3226,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Gets one account by ID.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.accounts.get", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The account id", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "accounts/{id}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.accounts.list": +} type AccountsListCall struct { s *Service @@ -4200,33 +3243,29 @@ func (r *AccountsService) List() *AccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4235,12 +3274,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4254,16 +3288,14 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.list" call. -// Exactly one of *AccountsList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AccountsList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4271,17 +3303,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsList{ ServerResponse: googleapi.ServerResponse{ @@ -4294,23 +3326,8 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsList, erro return nil, err } return ret, nil - // { - // "description": "Retrieves the authenticated user's list of accounts.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.accounts.list", - // "path": "accounts", - // "response": { - // "$ref": "AccountsList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } -// method id "adexchangebuyer.accounts.patch": - type AccountsPatchCall struct { s *Service id int64 @@ -4320,8 +3337,7 @@ type AccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing account. This method supports patch -// semantics. +// Patch: Updates an existing account. This method supports patch semantics. // // - id: The account id. func (r *AccountsService) Patch(id int64, account *Account) *AccountsPatchCall { @@ -4332,31 +3348,29 @@ func (r *AccountsService) Patch(id int64, account *Account) *AccountsPatchCall { } // ConfirmUnsafeAccountChange sets the optional parameter -// "confirmUnsafeAccountChange": Confirmation for erasing bidder and -// cookie matching urls. +// "confirmUnsafeAccountChange": Confirmation for erasing bidder and cookie +// matching urls. func (c *AccountsPatchCall) ConfirmUnsafeAccountChange(confirmUnsafeAccountChange bool) *AccountsPatchCall { c.urlParams_.Set("confirmUnsafeAccountChange", fmt.Sprint(confirmUnsafeAccountChange)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4365,18 +3379,12 @@ func (c *AccountsPatchCall) Header() http.Header { } func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{id}") @@ -4389,16 +3397,14 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.patch" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4406,17 +3412,17 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -4429,42 +3435,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing account. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "adexchangebuyer.accounts.patch", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "confirmUnsafeAccountChange": { - // "description": "Confirmation for erasing bidder and cookie matching urls.", - // "location": "query", - // "type": "boolean" - // }, - // "id": { - // "description": "The account id", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "accounts/{id}", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.accounts.update": +} type AccountsUpdateCall struct { s *Service @@ -4486,31 +3457,29 @@ func (r *AccountsService) Update(id int64, account *Account) *AccountsUpdateCall } // ConfirmUnsafeAccountChange sets the optional parameter -// "confirmUnsafeAccountChange": Confirmation for erasing bidder and -// cookie matching urls. +// "confirmUnsafeAccountChange": Confirmation for erasing bidder and cookie +// matching urls. func (c *AccountsUpdateCall) ConfirmUnsafeAccountChange(confirmUnsafeAccountChange bool) *AccountsUpdateCall { c.urlParams_.Set("confirmUnsafeAccountChange", fmt.Sprint(confirmUnsafeAccountChange)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4519,18 +3488,12 @@ func (c *AccountsUpdateCall) Header() http.Header { } func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{id}") @@ -4543,16 +3506,14 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4560,17 +3521,17 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -4583,42 +3544,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing account.", - // "httpMethod": "PUT", - // "id": "adexchangebuyer.accounts.update", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "confirmUnsafeAccountChange": { - // "description": "Confirmation for erasing bidder and cookie matching urls.", - // "location": "query", - // "type": "boolean" - // }, - // "id": { - // "description": "The account id", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "accounts/{id}", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.billingInfo.get": +} type BillingInfoGetCall struct { s *Service @@ -4629,8 +3555,8 @@ type BillingInfoGetCall struct { header_ http.Header } -// Get: Returns the billing information for one account specified by -// account ID. +// Get: Returns the billing information for one account specified by account +// ID. // // - accountId: The account id. func (r *BillingInfoService) Get(accountId int64) *BillingInfoGetCall { @@ -4640,33 +3566,29 @@ func (r *BillingInfoService) Get(accountId int64) *BillingInfoGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BillingInfoGetCall) Fields(s ...googleapi.Field) *BillingInfoGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BillingInfoGetCall) IfNoneMatch(entityTag string) *BillingInfoGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BillingInfoGetCall) Context(ctx context.Context) *BillingInfoGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BillingInfoGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4675,12 +3597,7 @@ func (c *BillingInfoGetCall) Header() http.Header { } func (c *BillingInfoGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4697,16 +3614,14 @@ func (c *BillingInfoGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.billingInfo.get" call. -// Exactly one of *BillingInfo or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *BillingInfo.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BillingInfo.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BillingInfoGetCall) Do(opts ...googleapi.CallOption) (*BillingInfo, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4714,17 +3629,17 @@ func (c *BillingInfoGetCall) Do(opts ...googleapi.CallOption) (*BillingInfo, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BillingInfo{ ServerResponse: googleapi.ServerResponse{ @@ -4737,34 +3652,7 @@ func (c *BillingInfoGetCall) Do(opts ...googleapi.CallOption) (*BillingInfo, err return nil, err } return ret, nil - // { - // "description": "Returns the billing information for one account specified by account ID.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.billingInfo.get", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "billinginfo/{accountId}", - // "response": { - // "$ref": "BillingInfo" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.billingInfo.list": +} type BillingInfoListCall struct { s *Service @@ -4782,33 +3670,29 @@ func (r *BillingInfoService) List() *BillingInfoListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BillingInfoListCall) Fields(s ...googleapi.Field) *BillingInfoListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BillingInfoListCall) IfNoneMatch(entityTag string) *BillingInfoListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BillingInfoListCall) Context(ctx context.Context) *BillingInfoListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BillingInfoListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4817,12 +3701,7 @@ func (c *BillingInfoListCall) Header() http.Header { } func (c *BillingInfoListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4836,16 +3715,15 @@ func (c *BillingInfoListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.billingInfo.list" call. -// Exactly one of *BillingInfoList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *BillingInfoList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BillingInfoList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BillingInfoListCall) Do(opts ...googleapi.CallOption) (*BillingInfoList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4853,17 +3731,17 @@ func (c *BillingInfoListCall) Do(opts ...googleapi.CallOption) (*BillingInfoList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BillingInfoList{ ServerResponse: googleapi.ServerResponse{ @@ -4876,23 +3754,8 @@ func (c *BillingInfoListCall) Do(opts ...googleapi.CallOption) (*BillingInfoList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of billing information for all accounts of the authenticated user.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.billingInfo.list", - // "path": "billinginfo", - // "response": { - // "$ref": "BillingInfoList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } -// method id "adexchangebuyer.budget.get": - type BudgetGetCall struct { s *Service accountId int64 @@ -4916,33 +3779,29 @@ func (r *BudgetService) Get(accountId int64, billingId int64) *BudgetGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BudgetGetCall) Fields(s ...googleapi.Field) *BudgetGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BudgetGetCall) IfNoneMatch(entityTag string) *BudgetGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BudgetGetCall) Context(ctx context.Context) *BudgetGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BudgetGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4951,12 +3810,7 @@ func (c *BudgetGetCall) Header() http.Header { } func (c *BudgetGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4974,16 +3828,14 @@ func (c *BudgetGetCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "billingId": strconv.FormatInt(c.billingId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.budget.get" call. -// Exactly one of *Budget or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Budget.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Budget.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BudgetGetCall) Do(opts ...googleapi.CallOption) (*Budget, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4991,17 +3843,17 @@ func (c *BudgetGetCall) Do(opts ...googleapi.CallOption) (*Budget, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Budget{ ServerResponse: googleapi.ServerResponse{ @@ -5014,42 +3866,7 @@ func (c *BudgetGetCall) Do(opts ...googleapi.CallOption) (*Budget, error) { return nil, err } return ret, nil - // { - // "description": "Returns the budget information for the adgroup specified by the accountId and billingId.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.budget.get", - // "parameterOrder": [ - // "accountId", - // "billingId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to get the budget information for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "billingId": { - // "description": "The billing id to get the budget information for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "billinginfo/{accountId}/{billingId}", - // "response": { - // "$ref": "Budget" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.budget.patch": +} type BudgetPatchCall struct { s *Service @@ -5061,9 +3878,9 @@ type BudgetPatchCall struct { header_ http.Header } -// Patch: Updates the budget amount for the budget of the adgroup -// specified by the accountId and billingId, with the budget amount in -// the request. This method supports patch semantics. +// Patch: Updates the budget amount for the budget of the adgroup specified by +// the accountId and billingId, with the budget amount in the request. This +// method supports patch semantics. // // - accountId: The account id associated with the budget being updated. // - billingId: The billing id associated with the budget being updated. @@ -5076,23 +3893,21 @@ func (r *BudgetService) Patch(accountId int64, billingId int64, budget *Budget) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BudgetPatchCall) Fields(s ...googleapi.Field) *BudgetPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BudgetPatchCall) Context(ctx context.Context) *BudgetPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BudgetPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5101,18 +3916,12 @@ func (c *BudgetPatchCall) Header() http.Header { } func (c *BudgetPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.budget) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "billinginfo/{accountId}/{billingId}") @@ -5126,16 +3935,14 @@ func (c *BudgetPatchCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "billingId": strconv.FormatInt(c.billingId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.budget.patch" call. -// Exactly one of *Budget or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Budget.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Budget.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BudgetPatchCall) Do(opts ...googleapi.CallOption) (*Budget, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5143,17 +3950,17 @@ func (c *BudgetPatchCall) Do(opts ...googleapi.CallOption) (*Budget, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Budget{ ServerResponse: googleapi.ServerResponse{ @@ -5166,45 +3973,7 @@ func (c *BudgetPatchCall) Do(opts ...googleapi.CallOption) (*Budget, error) { return nil, err } return ret, nil - // { - // "description": "Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "adexchangebuyer.budget.patch", - // "parameterOrder": [ - // "accountId", - // "billingId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id associated with the budget being updated.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "billingId": { - // "description": "The billing id associated with the budget being updated.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "billinginfo/{accountId}/{billingId}", - // "request": { - // "$ref": "Budget" - // }, - // "response": { - // "$ref": "Budget" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.budget.update": +} type BudgetUpdateCall struct { s *Service @@ -5216,9 +3985,8 @@ type BudgetUpdateCall struct { header_ http.Header } -// Update: Updates the budget amount for the budget of the adgroup -// specified by the accountId and billingId, with the budget amount in -// the request. +// Update: Updates the budget amount for the budget of the adgroup specified by +// the accountId and billingId, with the budget amount in the request. // // - accountId: The account id associated with the budget being updated. // - billingId: The billing id associated with the budget being updated. @@ -5231,23 +3999,21 @@ func (r *BudgetService) Update(accountId int64, billingId int64, budget *Budget) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BudgetUpdateCall) Fields(s ...googleapi.Field) *BudgetUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BudgetUpdateCall) Context(ctx context.Context) *BudgetUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BudgetUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5256,18 +4022,12 @@ func (c *BudgetUpdateCall) Header() http.Header { } func (c *BudgetUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.budget) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "billinginfo/{accountId}/{billingId}") @@ -5281,16 +4041,14 @@ func (c *BudgetUpdateCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "billingId": strconv.FormatInt(c.billingId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.budget.update" call. -// Exactly one of *Budget or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Budget.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Budget.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BudgetUpdateCall) Do(opts ...googleapi.CallOption) (*Budget, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5298,17 +4056,17 @@ func (c *BudgetUpdateCall) Do(opts ...googleapi.CallOption) (*Budget, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Budget{ ServerResponse: googleapi.ServerResponse{ @@ -5321,45 +4079,7 @@ func (c *BudgetUpdateCall) Do(opts ...googleapi.CallOption) (*Budget, error) { return nil, err } return ret, nil - // { - // "description": "Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request.", - // "httpMethod": "PUT", - // "id": "adexchangebuyer.budget.update", - // "parameterOrder": [ - // "accountId", - // "billingId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id associated with the budget being updated.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "billingId": { - // "description": "The billing id associated with the budget being updated.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "billinginfo/{accountId}/{billingId}", - // "request": { - // "$ref": "Budget" - // }, - // "response": { - // "$ref": "Budget" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.addDeal": +} type CreativesAddDealCall struct { s *Service @@ -5385,23 +4105,21 @@ func (r *CreativesService) AddDeal(accountId int64, buyerCreativeId string, deal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesAddDealCall) Fields(s ...googleapi.Field) *CreativesAddDealCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesAddDealCall) Context(ctx context.Context) *CreativesAddDealCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesAddDealCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5410,12 +4128,7 @@ func (c *CreativesAddDealCall) Header() http.Header { } func (c *CreativesAddDealCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5431,7 +4144,7 @@ func (c *CreativesAddDealCall) doRequest(alt string) (*http.Response, error) { "buyerCreativeId": c.buyerCreativeId, "dealId": strconv.FormatInt(c.dealId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.addDeal" call. @@ -5443,49 +4156,10 @@ func (c *CreativesAddDealCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Add a deal id association for the creative.", - // "httpMethod": "POST", - // "id": "adexchangebuyer.creatives.addDeal", - // "parameterOrder": [ - // "accountId", - // "buyerCreativeId", - // "dealId" - // ], - // "parameters": { - // "accountId": { - // "description": "The id for the account that will serve this creative.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "buyerCreativeId": { - // "description": "The buyer-specific id for this creative.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dealId": { - // "description": "The id of the deal id to associate with this creative.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}", - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.get": +} type CreativesGetCall struct { s *Service @@ -5497,8 +4171,8 @@ type CreativesGetCall struct { header_ http.Header } -// Get: Gets the status for a single creative. A creative will be -// available 30-40 minutes after submission. +// Get: Gets the status for a single creative. A creative will be available +// 30-40 minutes after submission. // // - accountId: The id for the account that will serve this creative. // - buyerCreativeId: The buyer-specific id for this creative. @@ -5510,33 +4184,29 @@ func (r *CreativesService) Get(accountId int64, buyerCreativeId string) *Creativ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5545,12 +4215,7 @@ func (c *CreativesGetCall) Header() http.Header { } func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5568,16 +4233,14 @@ func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "buyerCreativeId": c.buyerCreativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5585,17 +4248,17 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -5608,41 +4271,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return nil, err } return ret, nil - // { - // "description": "Gets the status for a single creative. A creative will be available 30-40 minutes after submission.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.creatives.get", - // "parameterOrder": [ - // "accountId", - // "buyerCreativeId" - // ], - // "parameters": { - // "accountId": { - // "description": "The id for the account that will serve this creative.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "buyerCreativeId": { - // "description": "The buyer-specific id for this creative.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "creatives/{accountId}/{buyerCreativeId}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.insert": +} type CreativesInsertCall struct { s *Service @@ -5660,23 +4289,21 @@ func (r *CreativesService) Insert(creative *Creative) *CreativesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5685,18 +4312,12 @@ func (c *CreativesInsertCall) Header() http.Header { } func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "creatives") @@ -5706,16 +4327,14 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.insert" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5723,17 +4342,17 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -5746,25 +4365,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Submit a new creative.", - // "httpMethod": "POST", - // "id": "adexchangebuyer.creatives.insert", - // "path": "creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.list": +} type CreativesListCall struct { s *Service @@ -5774,15 +4375,15 @@ type CreativesListCall struct { header_ http.Header } -// List: Retrieves a list of the authenticated user's active creatives. -// A creative will be available 30-40 minutes after submission. +// List: Retrieves a list of the authenticated user's active creatives. A +// creative will be available 30-40 minutes after submission. func (r *CreativesService) List() *CreativesListCall { c := &CreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// AccountId sets the optional parameter "accountId": When specified, -// only creatives for the given account ids are returned. +// AccountId sets the optional parameter "accountId": When specified, only +// creatives for the given account ids are returned. func (c *CreativesListCall) AccountId(accountId ...int64) *CreativesListCall { var accountId_ []string for _, v := range accountId { @@ -5793,30 +4394,25 @@ func (c *CreativesListCall) AccountId(accountId ...int64) *CreativesListCall { } // BuyerCreativeId sets the optional parameter "buyerCreativeId": When -// specified, only creatives for the given buyer creative ids are -// returned. +// specified, only creatives for the given buyer creative ids are returned. func (c *CreativesListCall) BuyerCreativeId(buyerCreativeId ...string) *CreativesListCall { c.urlParams_.SetMulti("buyerCreativeId", append([]string{}, buyerCreativeId...)) return c } -// DealsStatusFilter sets the optional parameter "dealsStatusFilter": -// When specified, only creatives having the given deals status are -// returned. +// DealsStatusFilter sets the optional parameter "dealsStatusFilter": When +// specified, only creatives having the given deals status are returned. // // Possible values: // -// "approved" - Creatives which have been approved for serving on -// -// deals. -// +// "approved" - Creatives which have been approved for serving on deals. // "conditionally_approved" - Creatives which have been conditionally // // approved for serving on deals. // -// "disapproved" - Creatives which have been disapproved for serving +// "disapproved" - Creatives which have been disapproved for serving on // -// on deals. +// deals. // // "not_checked" - Creatives whose deals status is not yet checked. func (c *CreativesListCall) DealsStatusFilter(dealsStatusFilter string) *CreativesListCall { @@ -5824,77 +4420,69 @@ func (c *CreativesListCall) DealsStatusFilter(dealsStatusFilter string) *Creativ return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of entries returned on one result page. If not set, the default is -// 100. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// entries returned on one result page. If not set, the default is 100. func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } // OpenAuctionStatusFilter sets the optional parameter -// "openAuctionStatusFilter": When specified, only creatives having the -// given open auction status are returned. +// "openAuctionStatusFilter": When specified, only creatives having the given +// open auction status are returned. // // Possible values: // -// "approved" - Creatives which have been approved for serving on the +// "approved" - Creatives which have been approved for serving on the open // -// open auction. +// auction. // // "conditionally_approved" - Creatives which have been conditionally // // approved for serving on the open auction. // -// "disapproved" - Creatives which have been disapproved for serving -// -// on the open auction. +// "disapproved" - Creatives which have been disapproved for serving on the // -// "not_checked" - Creatives whose open auction status is not yet +// open auction. // -// checked. +// "not_checked" - Creatives whose open auction status is not yet checked. func (c *CreativesListCall) OpenAuctionStatusFilter(openAuctionStatusFilter string) *CreativesListCall { c.urlParams_.Set("openAuctionStatusFilter", openAuctionStatusFilter) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad clients. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad clients. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *CreativesListCall) PageToken(pageToken string) *CreativesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5903,12 +4491,7 @@ func (c *CreativesListCall) Header() http.Header { } func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5922,16 +4505,14 @@ func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.list" call. -// Exactly one of *CreativesList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativesList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativesList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5939,17 +4520,17 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativesList{ ServerResponse: googleapi.ServerResponse{ @@ -5962,81 +4543,6 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.creatives.list", - // "parameters": { - // "accountId": { - // "description": "When specified, only creatives for the given account ids are returned.", - // "format": "int32", - // "location": "query", - // "repeated": true, - // "type": "integer" - // }, - // "buyerCreativeId": { - // "description": "When specified, only creatives for the given buyer creative ids are returned.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dealsStatusFilter": { - // "description": "When specified, only creatives having the given deals status are returned.", - // "enum": [ - // "approved", - // "conditionally_approved", - // "disapproved", - // "not_checked" - // ], - // "enumDescriptions": [ - // "Creatives which have been approved for serving on deals.", - // "Creatives which have been conditionally approved for serving on deals.", - // "Creatives which have been disapproved for serving on deals.", - // "Creatives whose deals status is not yet checked." - // ], - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "description": "Maximum number of entries returned on one result page. If not set, the default is 100. Optional.", - // "format": "uint32", - // "location": "query", - // "maximum": "1000", - // "minimum": "1", - // "type": "integer" - // }, - // "openAuctionStatusFilter": { - // "description": "When specified, only creatives having the given open auction status are returned.", - // "enum": [ - // "approved", - // "conditionally_approved", - // "disapproved", - // "not_checked" - // ], - // "enumDescriptions": [ - // "Creatives which have been approved for serving on the open auction.", - // "Creatives which have been conditionally approved for serving on the open auction.", - // "Creatives which have been disapproved for serving on the open auction.", - // "Creatives whose open auction status is not yet checked." - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response. Optional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "creatives", - // "response": { - // "$ref": "CreativesList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } // Pages invokes f for each page of results. @@ -6044,7 +4550,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, er // The provided context supersedes any context provided to the Context method. func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6060,8 +4566,6 @@ func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesList) er } } -// method id "adexchangebuyer.creatives.listDeals": - type CreativesListDealsCall struct { s *Service accountId int64 @@ -6084,33 +4588,29 @@ func (r *CreativesService) ListDeals(accountId int64, buyerCreativeId string) *C } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesListDealsCall) Fields(s ...googleapi.Field) *CreativesListDealsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesListDealsCall) IfNoneMatch(entityTag string) *CreativesListDealsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesListDealsCall) Context(ctx context.Context) *CreativesListDealsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesListDealsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6119,12 +4619,7 @@ func (c *CreativesListDealsCall) Header() http.Header { } func (c *CreativesListDealsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6142,16 +4637,15 @@ func (c *CreativesListDealsCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "buyerCreativeId": c.buyerCreativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.listDeals" call. -// Exactly one of *CreativeDealIds or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeDealIds.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeDealIds.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativesListDealsCall) Do(opts ...googleapi.CallOption) (*CreativeDealIds, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6159,17 +4653,17 @@ func (c *CreativesListDealsCall) Do(opts ...googleapi.CallOption) (*CreativeDeal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeDealIds{ ServerResponse: googleapi.ServerResponse{ @@ -6182,41 +4676,7 @@ func (c *CreativesListDealsCall) Do(opts ...googleapi.CallOption) (*CreativeDeal return nil, err } return ret, nil - // { - // "description": "Lists the external deal ids associated with the creative.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.creatives.listDeals", - // "parameterOrder": [ - // "accountId", - // "buyerCreativeId" - // ], - // "parameters": { - // "accountId": { - // "description": "The id for the account that will serve this creative.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "buyerCreativeId": { - // "description": "The buyer-specific id for this creative.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "creatives/{accountId}/{buyerCreativeId}/listDeals", - // "response": { - // "$ref": "CreativeDealIds" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.creatives.removeDeal": +} type CreativesRemoveDealCall struct { s *Service @@ -6242,23 +4702,21 @@ func (r *CreativesService) RemoveDeal(accountId int64, buyerCreativeId string, d } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesRemoveDealCall) Fields(s ...googleapi.Field) *CreativesRemoveDealCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesRemoveDealCall) Context(ctx context.Context) *CreativesRemoveDealCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesRemoveDealCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6267,12 +4725,7 @@ func (c *CreativesRemoveDealCall) Header() http.Header { } func (c *CreativesRemoveDealCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -6288,7 +4741,7 @@ func (c *CreativesRemoveDealCall) doRequest(alt string) (*http.Response, error) "buyerCreativeId": c.buyerCreativeId, "dealId": strconv.FormatInt(c.dealId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.creatives.removeDeal" call. @@ -6300,49 +4753,10 @@ func (c *CreativesRemoveDealCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Remove a deal id associated with the creative.", - // "httpMethod": "POST", - // "id": "adexchangebuyer.creatives.removeDeal", - // "parameterOrder": [ - // "accountId", - // "buyerCreativeId", - // "dealId" - // ], - // "parameters": { - // "accountId": { - // "description": "The id for the account that will serve this creative.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "buyerCreativeId": { - // "description": "The buyer-specific id for this creative.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dealId": { - // "description": "The id of the deal id to disassociate with this creative.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}", - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.marketplacedeals.delete": +} type MarketplacedealsDeleteCall struct { s *Service @@ -6364,23 +4778,21 @@ func (r *MarketplacedealsService) Delete(proposalId string, deleteorderdealsrequ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MarketplacedealsDeleteCall) Fields(s ...googleapi.Field) *MarketplacedealsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MarketplacedealsDeleteCall) Context(ctx context.Context) *MarketplacedealsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MarketplacedealsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6389,18 +4801,12 @@ func (c *MarketplacedealsDeleteCall) Header() http.Header { } func (c *MarketplacedealsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.deleteorderdealsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "proposals/{proposalId}/deals/delete") @@ -6413,16 +4819,15 @@ func (c *MarketplacedealsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.marketplacedeals.delete" call. -// Exactly one of *DeleteOrderDealsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *DeleteOrderDealsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *MarketplacedealsDeleteCall) Do(opts ...googleapi.CallOption) (*DeleteOrderDealsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6430,17 +4835,17 @@ func (c *MarketplacedealsDeleteCall) Do(opts ...googleapi.CallOption) (*DeleteOr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DeleteOrderDealsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6453,36 +4858,7 @@ func (c *MarketplacedealsDeleteCall) Do(opts ...googleapi.CallOption) (*DeleteOr return nil, err } return ret, nil - // { - // "description": "Delete the specified deals from the proposal", - // "httpMethod": "POST", - // "id": "adexchangebuyer.marketplacedeals.delete", - // "parameterOrder": [ - // "proposalId" - // ], - // "parameters": { - // "proposalId": { - // "description": "The proposalId to delete deals from.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "proposals/{proposalId}/deals/delete", - // "request": { - // "$ref": "DeleteOrderDealsRequest" - // }, - // "response": { - // "$ref": "DeleteOrderDealsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.marketplacedeals.insert": +} type MarketplacedealsInsertCall struct { s *Service @@ -6504,23 +4880,21 @@ func (r *MarketplacedealsService) Insert(proposalId string, addorderdealsrequest } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MarketplacedealsInsertCall) Fields(s ...googleapi.Field) *MarketplacedealsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MarketplacedealsInsertCall) Context(ctx context.Context) *MarketplacedealsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MarketplacedealsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6529,18 +4903,12 @@ func (c *MarketplacedealsInsertCall) Header() http.Header { } func (c *MarketplacedealsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.addorderdealsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "proposals/{proposalId}/deals/insert") @@ -6553,16 +4921,15 @@ func (c *MarketplacedealsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.marketplacedeals.insert" call. -// Exactly one of *AddOrderDealsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AddOrderDealsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AddOrderDealsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MarketplacedealsInsertCall) Do(opts ...googleapi.CallOption) (*AddOrderDealsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6570,17 +4937,17 @@ func (c *MarketplacedealsInsertCall) Do(opts ...googleapi.CallOption) (*AddOrder if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AddOrderDealsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6593,36 +4960,7 @@ func (c *MarketplacedealsInsertCall) Do(opts ...googleapi.CallOption) (*AddOrder return nil, err } return ret, nil - // { - // "description": "Add new deals for the specified proposal", - // "httpMethod": "POST", - // "id": "adexchangebuyer.marketplacedeals.insert", - // "parameterOrder": [ - // "proposalId" - // ], - // "parameters": { - // "proposalId": { - // "description": "proposalId for which deals need to be added.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "proposals/{proposalId}/deals/insert", - // "request": { - // "$ref": "AddOrderDealsRequest" - // }, - // "response": { - // "$ref": "AddOrderDealsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.marketplacedeals.list": +} type MarketplacedealsListCall struct { s *Service @@ -6643,41 +4981,37 @@ func (r *MarketplacedealsService) List(proposalId string) *MarketplacedealsListC return c } -// PqlQuery sets the optional parameter "pqlQuery": Query string to -// retrieve specific deals. +// PqlQuery sets the optional parameter "pqlQuery": Query string to retrieve +// specific deals. func (c *MarketplacedealsListCall) PqlQuery(pqlQuery string) *MarketplacedealsListCall { c.urlParams_.Set("pqlQuery", pqlQuery) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MarketplacedealsListCall) Fields(s ...googleapi.Field) *MarketplacedealsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MarketplacedealsListCall) IfNoneMatch(entityTag string) *MarketplacedealsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MarketplacedealsListCall) Context(ctx context.Context) *MarketplacedealsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MarketplacedealsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6686,12 +5020,7 @@ func (c *MarketplacedealsListCall) Header() http.Header { } func (c *MarketplacedealsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6708,16 +5037,15 @@ func (c *MarketplacedealsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.marketplacedeals.list" call. -// Exactly one of *GetOrderDealsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GetOrderDealsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GetOrderDealsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MarketplacedealsListCall) Do(opts ...googleapi.CallOption) (*GetOrderDealsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6725,17 +5053,17 @@ func (c *MarketplacedealsListCall) Do(opts ...googleapi.CallOption) (*GetOrderDe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GetOrderDealsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6748,38 +5076,7 @@ func (c *MarketplacedealsListCall) Do(opts ...googleapi.CallOption) (*GetOrderDe return nil, err } return ret, nil - // { - // "description": "List all the deals for a given proposal", - // "httpMethod": "GET", - // "id": "adexchangebuyer.marketplacedeals.list", - // "parameterOrder": [ - // "proposalId" - // ], - // "parameters": { - // "pqlQuery": { - // "description": "Query string to retrieve specific deals.", - // "location": "query", - // "type": "string" - // }, - // "proposalId": { - // "description": "The proposalId to get deals for. To search across all proposals specify order_id = '-' as part of the URL.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "proposals/{proposalId}/deals", - // "response": { - // "$ref": "GetOrderDealsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.marketplacedeals.update": +} type MarketplacedealsUpdateCall struct { s *Service @@ -6790,8 +5087,7 @@ type MarketplacedealsUpdateCall struct { header_ http.Header } -// Update: Replaces all the deals in the proposal with the passed in -// deals +// Update: Replaces all the deals in the proposal with the passed in deals // // - proposalId: The proposalId to edit deals on. func (r *MarketplacedealsService) Update(proposalId string, editallorderdealsrequest *EditAllOrderDealsRequest) *MarketplacedealsUpdateCall { @@ -6802,23 +5098,21 @@ func (r *MarketplacedealsService) Update(proposalId string, editallorderdealsreq } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MarketplacedealsUpdateCall) Fields(s ...googleapi.Field) *MarketplacedealsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MarketplacedealsUpdateCall) Context(ctx context.Context) *MarketplacedealsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MarketplacedealsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6827,18 +5121,12 @@ func (c *MarketplacedealsUpdateCall) Header() http.Header { } func (c *MarketplacedealsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.editallorderdealsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "proposals/{proposalId}/deals/update") @@ -6851,16 +5139,15 @@ func (c *MarketplacedealsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.marketplacedeals.update" call. -// Exactly one of *EditAllOrderDealsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *EditAllOrderDealsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *EditAllOrderDealsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *MarketplacedealsUpdateCall) Do(opts ...googleapi.CallOption) (*EditAllOrderDealsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6868,17 +5155,17 @@ func (c *MarketplacedealsUpdateCall) Do(opts ...googleapi.CallOption) (*EditAllO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EditAllOrderDealsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6891,36 +5178,7 @@ func (c *MarketplacedealsUpdateCall) Do(opts ...googleapi.CallOption) (*EditAllO return nil, err } return ret, nil - // { - // "description": "Replaces all the deals in the proposal with the passed in deals", - // "httpMethod": "POST", - // "id": "adexchangebuyer.marketplacedeals.update", - // "parameterOrder": [ - // "proposalId" - // ], - // "parameters": { - // "proposalId": { - // "description": "The proposalId to edit deals on.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "proposals/{proposalId}/deals/update", - // "request": { - // "$ref": "EditAllOrderDealsRequest" - // }, - // "response": { - // "$ref": "EditAllOrderDealsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.marketplacenotes.insert": +} type MarketplacenotesInsertCall struct { s *Service @@ -6942,23 +5200,21 @@ func (r *MarketplacenotesService) Insert(proposalId string, addordernotesrequest } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MarketplacenotesInsertCall) Fields(s ...googleapi.Field) *MarketplacenotesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MarketplacenotesInsertCall) Context(ctx context.Context) *MarketplacenotesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MarketplacenotesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6967,18 +5223,12 @@ func (c *MarketplacenotesInsertCall) Header() http.Header { } func (c *MarketplacenotesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.addordernotesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "proposals/{proposalId}/notes/insert") @@ -6991,16 +5241,15 @@ func (c *MarketplacenotesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.marketplacenotes.insert" call. -// Exactly one of *AddOrderNotesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AddOrderNotesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AddOrderNotesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MarketplacenotesInsertCall) Do(opts ...googleapi.CallOption) (*AddOrderNotesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7008,17 +5257,17 @@ func (c *MarketplacenotesInsertCall) Do(opts ...googleapi.CallOption) (*AddOrder if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AddOrderNotesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7031,36 +5280,7 @@ func (c *MarketplacenotesInsertCall) Do(opts ...googleapi.CallOption) (*AddOrder return nil, err } return ret, nil - // { - // "description": "Add notes to the proposal", - // "httpMethod": "POST", - // "id": "adexchangebuyer.marketplacenotes.insert", - // "parameterOrder": [ - // "proposalId" - // ], - // "parameters": { - // "proposalId": { - // "description": "The proposalId to add notes for.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "proposals/{proposalId}/notes/insert", - // "request": { - // "$ref": "AddOrderNotesRequest" - // }, - // "response": { - // "$ref": "AddOrderNotesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.marketplacenotes.list": +} type MarketplacenotesListCall struct { s *Service @@ -7081,43 +5301,38 @@ func (r *MarketplacenotesService) List(proposalId string) *MarketplacenotesListC return c } -// PqlQuery sets the optional parameter "pqlQuery": Query string to -// retrieve specific notes. To search the text contents of notes, please -// use syntax like "WHERE note.note = "foo" or "WHERE note.note LIKE -// "%bar%" +// PqlQuery sets the optional parameter "pqlQuery": Query string to retrieve +// specific notes. To search the text contents of notes, please use syntax like +// "WHERE note.note = "foo" or "WHERE note.note LIKE "%bar%" func (c *MarketplacenotesListCall) PqlQuery(pqlQuery string) *MarketplacenotesListCall { c.urlParams_.Set("pqlQuery", pqlQuery) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MarketplacenotesListCall) Fields(s ...googleapi.Field) *MarketplacenotesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MarketplacenotesListCall) IfNoneMatch(entityTag string) *MarketplacenotesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MarketplacenotesListCall) Context(ctx context.Context) *MarketplacenotesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MarketplacenotesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7126,12 +5341,7 @@ func (c *MarketplacenotesListCall) Header() http.Header { } func (c *MarketplacenotesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7148,16 +5358,15 @@ func (c *MarketplacenotesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.marketplacenotes.list" call. -// Exactly one of *GetOrderNotesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GetOrderNotesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GetOrderNotesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MarketplacenotesListCall) Do(opts ...googleapi.CallOption) (*GetOrderNotesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7165,17 +5374,17 @@ func (c *MarketplacenotesListCall) Do(opts ...googleapi.CallOption) (*GetOrderNo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GetOrderNotesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7188,38 +5397,7 @@ func (c *MarketplacenotesListCall) Do(opts ...googleapi.CallOption) (*GetOrderNo return nil, err } return ret, nil - // { - // "description": "Get all the notes associated with a proposal", - // "httpMethod": "GET", - // "id": "adexchangebuyer.marketplacenotes.list", - // "parameterOrder": [ - // "proposalId" - // ], - // "parameters": { - // "pqlQuery": { - // "description": "Query string to retrieve specific notes. To search the text contents of notes, please use syntax like \"WHERE note.note = \"foo\" or \"WHERE note.note LIKE \"%bar%\"", - // "location": "query", - // "type": "string" - // }, - // "proposalId": { - // "description": "The proposalId to get notes for. To search across all proposals specify order_id = '-' as part of the URL.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "proposals/{proposalId}/notes", - // "response": { - // "$ref": "GetOrderNotesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.marketplaceprivateauction.updateproposal": +} type MarketplaceprivateauctionUpdateproposalCall struct { s *Service @@ -7241,23 +5419,21 @@ func (r *MarketplaceprivateauctionService) Updateproposal(privateAuctionId strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MarketplaceprivateauctionUpdateproposalCall) Fields(s ...googleapi.Field) *MarketplaceprivateauctionUpdateproposalCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MarketplaceprivateauctionUpdateproposalCall) Context(ctx context.Context) *MarketplaceprivateauctionUpdateproposalCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MarketplaceprivateauctionUpdateproposalCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7266,18 +5442,12 @@ func (c *MarketplaceprivateauctionUpdateproposalCall) Header() http.Header { } func (c *MarketplaceprivateauctionUpdateproposalCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.updateprivateauctionproposalrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "privateauction/{privateAuctionId}/updateproposal") @@ -7290,7 +5460,7 @@ func (c *MarketplaceprivateauctionUpdateproposalCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "privateAuctionId": c.privateAuctionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.marketplaceprivateauction.updateproposal" call. @@ -7302,36 +5472,10 @@ func (c *MarketplaceprivateauctionUpdateproposalCall) Do(opts ...googleapi.CallO } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Update a given private auction proposal", - // "httpMethod": "POST", - // "id": "adexchangebuyer.marketplaceprivateauction.updateproposal", - // "parameterOrder": [ - // "privateAuctionId" - // ], - // "parameters": { - // "privateAuctionId": { - // "description": "The private auction id to be updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "privateauction/{privateAuctionId}/updateproposal", - // "request": { - // "$ref": "UpdatePrivateAuctionProposalRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.performanceReport.list": +} type PerformanceReportListCall struct { s *Service @@ -7344,10 +5488,10 @@ type PerformanceReportListCall struct { // List: Retrieves the authenticated user's list of performance metrics. // // - accountId: The account id to get the reports. -// - endDateTime: The end time of the report in ISO 8601 timestamp -// format using UTC. -// - startDateTime: The start time of the report in ISO 8601 timestamp -// format using UTC. +// - endDateTime: The end time of the report in ISO 8601 timestamp format using +// UTC. +// - startDateTime: The start time of the report in ISO 8601 timestamp format +// using UTC. func (r *PerformanceReportService) List(accountId int64, endDateTime string, startDateTime string) *PerformanceReportListCall { c := &PerformanceReportListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("accountId", fmt.Sprint(accountId)) @@ -7356,51 +5500,45 @@ func (r *PerformanceReportService) List(accountId int64, endDateTime string, sta return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of entries returned on one result page. If not set, the default is -// 100. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// entries returned on one result page. If not set, the default is 100. func (c *PerformanceReportListCall) MaxResults(maxResults int64) *PerformanceReportListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through performance reports. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through performance reports. To retrieve the next page, set +// this parameter to the value of "nextPageToken" from the previous response. func (c *PerformanceReportListCall) PageToken(pageToken string) *PerformanceReportListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PerformanceReportListCall) Fields(s ...googleapi.Field) *PerformanceReportListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PerformanceReportListCall) IfNoneMatch(entityTag string) *PerformanceReportListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PerformanceReportListCall) Context(ctx context.Context) *PerformanceReportListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PerformanceReportListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7409,12 +5547,7 @@ func (c *PerformanceReportListCall) Header() http.Header { } func (c *PerformanceReportListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7428,16 +5561,15 @@ func (c *PerformanceReportListCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.performanceReport.list" call. -// Exactly one of *PerformanceReportList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PerformanceReportList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PerformanceReportList.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PerformanceReportListCall) Do(opts ...googleapi.CallOption) (*PerformanceReportList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7445,17 +5577,17 @@ func (c *PerformanceReportListCall) Do(opts ...googleapi.CallOption) (*Performan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PerformanceReportList{ ServerResponse: googleapi.ServerResponse{ @@ -7468,61 +5600,7 @@ func (c *PerformanceReportListCall) Do(opts ...googleapi.CallOption) (*Performan return nil, err } return ret, nil - // { - // "description": "Retrieves the authenticated user's list of performance metrics.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.performanceReport.list", - // "parameterOrder": [ - // "accountId", - // "endDateTime", - // "startDateTime" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to get the reports.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "endDateTime": { - // "description": "The end time of the report in ISO 8601 timestamp format using UTC.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Maximum number of entries returned on one result page. If not set, the default is 100. Optional.", - // "format": "uint32", - // "location": "query", - // "maximum": "1000", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through performance reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response. Optional.", - // "location": "query", - // "type": "string" - // }, - // "startDateTime": { - // "description": "The start time of the report in ISO 8601 timestamp format using UTC.", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "performancereport", - // "response": { - // "$ref": "PerformanceReportList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.delete": +} type PretargetingConfigDeleteCall struct { s *Service @@ -7545,23 +5623,21 @@ func (r *PretargetingConfigService) Delete(accountId int64, configId int64) *Pre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigDeleteCall) Fields(s ...googleapi.Field) *PretargetingConfigDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigDeleteCall) Context(ctx context.Context) *PretargetingConfigDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7570,12 +5646,7 @@ func (c *PretargetingConfigDeleteCall) Header() http.Header { } func (c *PretargetingConfigDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -7590,7 +5661,7 @@ func (c *PretargetingConfigDeleteCall) doRequest(alt string) (*http.Response, er "accountId": strconv.FormatInt(c.accountId, 10), "configId": strconv.FormatInt(c.configId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.delete" call. @@ -7602,42 +5673,10 @@ func (c *PretargetingConfigDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing pretargeting config.", - // "httpMethod": "DELETE", - // "id": "adexchangebuyer.pretargetingConfig.delete", - // "parameterOrder": [ - // "accountId", - // "configId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to delete the pretargeting config for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "configId": { - // "description": "The specific id of the configuration to delete.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}/{configId}", - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.get": +} type PretargetingConfigGetCall struct { s *Service @@ -7661,33 +5700,29 @@ func (r *PretargetingConfigService) Get(accountId int64, configId int64) *Pretar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigGetCall) Fields(s ...googleapi.Field) *PretargetingConfigGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PretargetingConfigGetCall) IfNoneMatch(entityTag string) *PretargetingConfigGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigGetCall) Context(ctx context.Context) *PretargetingConfigGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7696,12 +5731,7 @@ func (c *PretargetingConfigGetCall) Header() http.Header { } func (c *PretargetingConfigGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7719,16 +5749,15 @@ func (c *PretargetingConfigGetCall) doRequest(alt string) (*http.Response, error "accountId": strconv.FormatInt(c.accountId, 10), "configId": strconv.FormatInt(c.configId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.get" call. -// Exactly one of *PretargetingConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PretargetingConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PretargetingConfigGetCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7736,17 +5765,17 @@ func (c *PretargetingConfigGetCall) Do(opts ...googleapi.CallOption) (*Pretarget if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PretargetingConfig{ ServerResponse: googleapi.ServerResponse{ @@ -7759,42 +5788,7 @@ func (c *PretargetingConfigGetCall) Do(opts ...googleapi.CallOption) (*Pretarget return nil, err } return ret, nil - // { - // "description": "Gets a specific pretargeting configuration", - // "httpMethod": "GET", - // "id": "adexchangebuyer.pretargetingConfig.get", - // "parameterOrder": [ - // "accountId", - // "configId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to get the pretargeting config for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "configId": { - // "description": "The specific id of the configuration to retrieve.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}/{configId}", - // "response": { - // "$ref": "PretargetingConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.insert": +} type PretargetingConfigInsertCall struct { s *Service @@ -7816,23 +5810,21 @@ func (r *PretargetingConfigService) Insert(accountId int64, pretargetingconfig * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigInsertCall) Fields(s ...googleapi.Field) *PretargetingConfigInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigInsertCall) Context(ctx context.Context) *PretargetingConfigInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7841,18 +5833,12 @@ func (c *PretargetingConfigInsertCall) Header() http.Header { } func (c *PretargetingConfigInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pretargetingconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "pretargetingconfigs/{accountId}") @@ -7865,16 +5851,15 @@ func (c *PretargetingConfigInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.insert" call. -// Exactly one of *PretargetingConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PretargetingConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PretargetingConfigInsertCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7882,17 +5867,17 @@ func (c *PretargetingConfigInsertCall) Do(opts ...googleapi.CallOption) (*Pretar if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PretargetingConfig{ ServerResponse: googleapi.ServerResponse{ @@ -7905,37 +5890,7 @@ func (c *PretargetingConfigInsertCall) Do(opts ...googleapi.CallOption) (*Pretar return nil, err } return ret, nil - // { - // "description": "Inserts a new pretargeting configuration.", - // "httpMethod": "POST", - // "id": "adexchangebuyer.pretargetingConfig.insert", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to insert the pretargeting config for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}", - // "request": { - // "$ref": "PretargetingConfig" - // }, - // "response": { - // "$ref": "PretargetingConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.list": +} type PretargetingConfigListCall struct { s *Service @@ -7957,33 +5912,29 @@ func (r *PretargetingConfigService) List(accountId int64) *PretargetingConfigLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigListCall) Fields(s ...googleapi.Field) *PretargetingConfigListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PretargetingConfigListCall) IfNoneMatch(entityTag string) *PretargetingConfigListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigListCall) Context(ctx context.Context) *PretargetingConfigListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7992,12 +5943,7 @@ func (c *PretargetingConfigListCall) Header() http.Header { } func (c *PretargetingConfigListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8014,16 +5960,15 @@ func (c *PretargetingConfigListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.list" call. -// Exactly one of *PretargetingConfigList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PretargetingConfigList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PretargetingConfigList.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PretargetingConfigListCall) Do(opts ...googleapi.CallOption) (*PretargetingConfigList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8031,17 +5976,17 @@ func (c *PretargetingConfigListCall) Do(opts ...googleapi.CallOption) (*Pretarge if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PretargetingConfigList{ ServerResponse: googleapi.ServerResponse{ @@ -8054,34 +5999,7 @@ func (c *PretargetingConfigListCall) Do(opts ...googleapi.CallOption) (*Pretarge return nil, err } return ret, nil - // { - // "description": "Retrieves a list of the authenticated user's pretargeting configurations.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.pretargetingConfig.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to get the pretargeting configs for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}", - // "response": { - // "$ref": "PretargetingConfigList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.patch": +} type PretargetingConfigPatchCall struct { s *Service @@ -8093,8 +6011,8 @@ type PretargetingConfigPatchCall struct { header_ http.Header } -// Patch: Updates an existing pretargeting config. This method supports -// patch semantics. +// Patch: Updates an existing pretargeting config. This method supports patch +// semantics. // // - accountId: The account id to update the pretargeting config for. // - configId: The specific id of the configuration to update. @@ -8107,23 +6025,21 @@ func (r *PretargetingConfigService) Patch(accountId int64, configId int64, preta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigPatchCall) Fields(s ...googleapi.Field) *PretargetingConfigPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigPatchCall) Context(ctx context.Context) *PretargetingConfigPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8132,18 +6048,12 @@ func (c *PretargetingConfigPatchCall) Header() http.Header { } func (c *PretargetingConfigPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pretargetingconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "pretargetingconfigs/{accountId}/{configId}") @@ -8157,16 +6067,15 @@ func (c *PretargetingConfigPatchCall) doRequest(alt string) (*http.Response, err "accountId": strconv.FormatInt(c.accountId, 10), "configId": strconv.FormatInt(c.configId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.patch" call. -// Exactly one of *PretargetingConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PretargetingConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PretargetingConfigPatchCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8174,17 +6083,17 @@ func (c *PretargetingConfigPatchCall) Do(opts ...googleapi.CallOption) (*Pretarg if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PretargetingConfig{ ServerResponse: googleapi.ServerResponse{ @@ -8197,45 +6106,7 @@ func (c *PretargetingConfigPatchCall) Do(opts ...googleapi.CallOption) (*Pretarg return nil, err } return ret, nil - // { - // "description": "Updates an existing pretargeting config. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "adexchangebuyer.pretargetingConfig.patch", - // "parameterOrder": [ - // "accountId", - // "configId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to update the pretargeting config for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "configId": { - // "description": "The specific id of the configuration to update.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}/{configId}", - // "request": { - // "$ref": "PretargetingConfig" - // }, - // "response": { - // "$ref": "PretargetingConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pretargetingConfig.update": +} type PretargetingConfigUpdateCall struct { s *Service @@ -8260,23 +6131,21 @@ func (r *PretargetingConfigService) Update(accountId int64, configId int64, pret } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PretargetingConfigUpdateCall) Fields(s ...googleapi.Field) *PretargetingConfigUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PretargetingConfigUpdateCall) Context(ctx context.Context) *PretargetingConfigUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PretargetingConfigUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8285,18 +6154,12 @@ func (c *PretargetingConfigUpdateCall) Header() http.Header { } func (c *PretargetingConfigUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pretargetingconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "pretargetingconfigs/{accountId}/{configId}") @@ -8310,16 +6173,15 @@ func (c *PretargetingConfigUpdateCall) doRequest(alt string) (*http.Response, er "accountId": strconv.FormatInt(c.accountId, 10), "configId": strconv.FormatInt(c.configId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pretargetingConfig.update" call. -// Exactly one of *PretargetingConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PretargetingConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PretargetingConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PretargetingConfigUpdateCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8327,17 +6189,17 @@ func (c *PretargetingConfigUpdateCall) Do(opts ...googleapi.CallOption) (*Pretar if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PretargetingConfig{ ServerResponse: googleapi.ServerResponse{ @@ -8350,45 +6212,7 @@ func (c *PretargetingConfigUpdateCall) Do(opts ...googleapi.CallOption) (*Pretar return nil, err } return ret, nil - // { - // "description": "Updates an existing pretargeting config.", - // "httpMethod": "PUT", - // "id": "adexchangebuyer.pretargetingConfig.update", - // "parameterOrder": [ - // "accountId", - // "configId" - // ], - // "parameters": { - // "accountId": { - // "description": "The account id to update the pretargeting config for.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "configId": { - // "description": "The specific id of the configuration to update.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "pretargetingconfigs/{accountId}/{configId}", - // "request": { - // "$ref": "PretargetingConfig" - // }, - // "response": { - // "$ref": "PretargetingConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.products.get": +} type ProductsGetCall struct { s *Service @@ -8409,33 +6233,29 @@ func (r *ProductsService) Get(productId string) *ProductsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProductsGetCall) Fields(s ...googleapi.Field) *ProductsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProductsGetCall) IfNoneMatch(entityTag string) *ProductsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProductsGetCall) Context(ctx context.Context) *ProductsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProductsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8444,12 +6264,7 @@ func (c *ProductsGetCall) Header() http.Header { } func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8466,16 +6281,14 @@ func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.products.get" call. -// Exactly one of *Product or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Product.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Product.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8483,17 +6296,17 @@ func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Product{ ServerResponse: googleapi.ServerResponse{ @@ -8506,33 +6319,7 @@ func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) { return nil, err } return ret, nil - // { - // "description": "Gets the requested product by id.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.products.get", - // "parameterOrder": [ - // "productId" - // ], - // "parameters": { - // "productId": { - // "description": "The id for the product to get the head revision for.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "products/{productId}", - // "response": { - // "$ref": "Product" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.products.search": +} type ProductsSearchCall struct { s *Service @@ -8548,41 +6335,37 @@ func (r *ProductsService) Search() *ProductsSearchCall { return c } -// PqlQuery sets the optional parameter "pqlQuery": The pql query used -// to query for products. +// PqlQuery sets the optional parameter "pqlQuery": The pql query used to query +// for products. func (c *ProductsSearchCall) PqlQuery(pqlQuery string) *ProductsSearchCall { c.urlParams_.Set("pqlQuery", pqlQuery) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProductsSearchCall) Fields(s ...googleapi.Field) *ProductsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProductsSearchCall) IfNoneMatch(entityTag string) *ProductsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProductsSearchCall) Context(ctx context.Context) *ProductsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProductsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8591,12 +6374,7 @@ func (c *ProductsSearchCall) Header() http.Header { } func (c *ProductsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8610,16 +6388,15 @@ func (c *ProductsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.products.search" call. -// Exactly one of *GetOffersResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GetOffersResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GetOffersResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProductsSearchCall) Do(opts ...googleapi.CallOption) (*GetOffersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8627,17 +6404,17 @@ func (c *ProductsSearchCall) Do(opts ...googleapi.CallOption) (*GetOffersRespons if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GetOffersResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8650,29 +6427,7 @@ func (c *ProductsSearchCall) Do(opts ...googleapi.CallOption) (*GetOffersRespons return nil, err } return ret, nil - // { - // "description": "Gets the requested product.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.products.search", - // "parameters": { - // "pqlQuery": { - // "description": "The pql query used to query for products.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "products/search", - // "response": { - // "$ref": "GetOffersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.proposals.get": +} type ProposalsGetCall struct { s *Service @@ -8693,33 +6448,29 @@ func (r *ProposalsService) Get(proposalId string) *ProposalsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProposalsGetCall) Fields(s ...googleapi.Field) *ProposalsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProposalsGetCall) IfNoneMatch(entityTag string) *ProposalsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProposalsGetCall) Context(ctx context.Context) *ProposalsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProposalsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8728,12 +6479,7 @@ func (c *ProposalsGetCall) Header() http.Header { } func (c *ProposalsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8750,16 +6496,14 @@ func (c *ProposalsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.proposals.get" call. -// Exactly one of *Proposal or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Proposal.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Proposal.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProposalsGetCall) Do(opts ...googleapi.CallOption) (*Proposal, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8767,17 +6511,17 @@ func (c *ProposalsGetCall) Do(opts ...googleapi.CallOption) (*Proposal, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Proposal{ ServerResponse: googleapi.ServerResponse{ @@ -8790,33 +6534,7 @@ func (c *ProposalsGetCall) Do(opts ...googleapi.CallOption) (*Proposal, error) { return nil, err } return ret, nil - // { - // "description": "Get a proposal given its id", - // "httpMethod": "GET", - // "id": "adexchangebuyer.proposals.get", - // "parameterOrder": [ - // "proposalId" - // ], - // "parameters": { - // "proposalId": { - // "description": "Id of the proposal to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "proposals/{proposalId}", - // "response": { - // "$ref": "Proposal" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.proposals.insert": +} type ProposalsInsertCall struct { s *Service @@ -8834,23 +6552,21 @@ func (r *ProposalsService) Insert(createordersrequest *CreateOrdersRequest) *Pro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProposalsInsertCall) Fields(s ...googleapi.Field) *ProposalsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProposalsInsertCall) Context(ctx context.Context) *ProposalsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProposalsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8859,18 +6575,12 @@ func (c *ProposalsInsertCall) Header() http.Header { } func (c *ProposalsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.createordersrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "proposals/insert") @@ -8880,16 +6590,15 @@ func (c *ProposalsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.proposals.insert" call. -// Exactly one of *CreateOrdersResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreateOrdersResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreateOrdersResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProposalsInsertCall) Do(opts ...googleapi.CallOption) (*CreateOrdersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8897,17 +6606,17 @@ func (c *ProposalsInsertCall) Do(opts ...googleapi.CallOption) (*CreateOrdersRes if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreateOrdersResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8920,25 +6629,7 @@ func (c *ProposalsInsertCall) Do(opts ...googleapi.CallOption) (*CreateOrdersRes return nil, err } return ret, nil - // { - // "description": "Create the given list of proposals", - // "httpMethod": "POST", - // "id": "adexchangebuyer.proposals.insert", - // "path": "proposals/insert", - // "request": { - // "$ref": "CreateOrdersRequest" - // }, - // "response": { - // "$ref": "CreateOrdersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.proposals.patch": +} type ProposalsPatchCall struct { s *Service @@ -8951,16 +6642,15 @@ type ProposalsPatchCall struct { header_ http.Header } -// Patch: Update the given proposal. This method supports patch -// semantics. +// Patch: Update the given proposal. This method supports patch semantics. // // - proposalId: The proposal id to update. -// - revisionNumber: The last known revision number to update. If the -// head revision in the marketplace database has since changed, an -// error will be thrown. The caller should then fetch the latest -// proposal at head revision and retry the update at that revision. -// - updateAction: The proposed action to take on the proposal. This -// field is required and it must be set when updating a proposal. +// - revisionNumber: The last known revision number to update. If the head +// revision in the marketplace database has since changed, an error will be +// thrown. The caller should then fetch the latest proposal at head revision +// and retry the update at that revision. +// - updateAction: The proposed action to take on the proposal. This field is +// required and it must be set when updating a proposal. func (r *ProposalsService) Patch(proposalId string, revisionNumber int64, updateAction string, proposal *Proposal) *ProposalsPatchCall { c := &ProposalsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.proposalId = proposalId @@ -8971,23 +6661,21 @@ func (r *ProposalsService) Patch(proposalId string, revisionNumber int64, update } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProposalsPatchCall) Fields(s ...googleapi.Field) *ProposalsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProposalsPatchCall) Context(ctx context.Context) *ProposalsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProposalsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8996,18 +6684,12 @@ func (c *ProposalsPatchCall) Header() http.Header { } func (c *ProposalsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.proposal) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "proposals/{proposalId}/{revisionNumber}/{updateAction}") @@ -9022,16 +6704,14 @@ func (c *ProposalsPatchCall) doRequest(alt string) (*http.Response, error) { "revisionNumber": strconv.FormatInt(c.revisionNumber, 10), "updateAction": c.updateAction, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.proposals.patch" call. -// Exactly one of *Proposal or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Proposal.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Proposal.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProposalsPatchCall) Do(opts ...googleapi.CallOption) (*Proposal, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9039,17 +6719,17 @@ func (c *ProposalsPatchCall) Do(opts ...googleapi.CallOption) (*Proposal, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Proposal{ ServerResponse: googleapi.ServerResponse{ @@ -9062,67 +6742,7 @@ func (c *ProposalsPatchCall) Do(opts ...googleapi.CallOption) (*Proposal, error) return nil, err } return ret, nil - // { - // "description": "Update the given proposal. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "adexchangebuyer.proposals.patch", - // "parameterOrder": [ - // "proposalId", - // "revisionNumber", - // "updateAction" - // ], - // "parameters": { - // "proposalId": { - // "description": "The proposal id to update.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "revisionNumber": { - // "description": "The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "updateAction": { - // "description": "The proposed action to take on the proposal. This field is required and it must be set when updating a proposal.", - // "enum": [ - // "accept", - // "cancel", - // "propose", - // "proposeAndAccept", - // "unknownAction", - // "updateNonTerms" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "proposals/{proposalId}/{revisionNumber}/{updateAction}", - // "request": { - // "$ref": "Proposal" - // }, - // "response": { - // "$ref": "Proposal" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.proposals.search": +} type ProposalsSearchCall struct { s *Service @@ -9138,41 +6758,37 @@ func (r *ProposalsService) Search() *ProposalsSearchCall { return c } -// PqlQuery sets the optional parameter "pqlQuery": Query string to -// retrieve specific proposals. +// PqlQuery sets the optional parameter "pqlQuery": Query string to retrieve +// specific proposals. func (c *ProposalsSearchCall) PqlQuery(pqlQuery string) *ProposalsSearchCall { c.urlParams_.Set("pqlQuery", pqlQuery) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProposalsSearchCall) Fields(s ...googleapi.Field) *ProposalsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProposalsSearchCall) IfNoneMatch(entityTag string) *ProposalsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProposalsSearchCall) Context(ctx context.Context) *ProposalsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProposalsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9181,12 +6797,7 @@ func (c *ProposalsSearchCall) Header() http.Header { } func (c *ProposalsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9200,16 +6811,15 @@ func (c *ProposalsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.proposals.search" call. -// Exactly one of *GetOrdersResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GetOrdersResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GetOrdersResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProposalsSearchCall) Do(opts ...googleapi.CallOption) (*GetOrdersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9217,17 +6827,17 @@ func (c *ProposalsSearchCall) Do(opts ...googleapi.CallOption) (*GetOrdersRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GetOrdersResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9240,29 +6850,7 @@ func (c *ProposalsSearchCall) Do(opts ...googleapi.CallOption) (*GetOrdersRespon return nil, err } return ret, nil - // { - // "description": "Search for proposals using pql query", - // "httpMethod": "GET", - // "id": "adexchangebuyer.proposals.search", - // "parameters": { - // "pqlQuery": { - // "description": "Query string to retrieve specific proposals.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "proposals/search", - // "response": { - // "$ref": "GetOrdersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.proposals.setupcomplete": +} type ProposalsSetupcompleteCall struct { s *Service @@ -9272,8 +6860,8 @@ type ProposalsSetupcompleteCall struct { header_ http.Header } -// Setupcomplete: Update the given proposal to indicate that setup has -// been completed. +// Setupcomplete: Update the given proposal to indicate that setup has been +// completed. // // - proposalId: The proposal id for which the setup is complete. func (r *ProposalsService) Setupcomplete(proposalId string) *ProposalsSetupcompleteCall { @@ -9283,23 +6871,21 @@ func (r *ProposalsService) Setupcomplete(proposalId string) *ProposalsSetupcompl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProposalsSetupcompleteCall) Fields(s ...googleapi.Field) *ProposalsSetupcompleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProposalsSetupcompleteCall) Context(ctx context.Context) *ProposalsSetupcompleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProposalsSetupcompleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9308,12 +6894,7 @@ func (c *ProposalsSetupcompleteCall) Header() http.Header { } func (c *ProposalsSetupcompleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -9327,7 +6908,7 @@ func (c *ProposalsSetupcompleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.proposals.setupcomplete" call. @@ -9339,33 +6920,10 @@ func (c *ProposalsSetupcompleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Update the given proposal to indicate that setup has been completed.", - // "httpMethod": "POST", - // "id": "adexchangebuyer.proposals.setupcomplete", - // "parameterOrder": [ - // "proposalId" - // ], - // "parameters": { - // "proposalId": { - // "description": "The proposal id for which the setup is complete", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "proposals/{proposalId}/setupcomplete", - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.proposals.update": +} type ProposalsUpdateCall struct { s *Service @@ -9381,12 +6939,12 @@ type ProposalsUpdateCall struct { // Update: Update the given proposal // // - proposalId: The proposal id to update. -// - revisionNumber: The last known revision number to update. If the -// head revision in the marketplace database has since changed, an -// error will be thrown. The caller should then fetch the latest -// proposal at head revision and retry the update at that revision. -// - updateAction: The proposed action to take on the proposal. This -// field is required and it must be set when updating a proposal. +// - revisionNumber: The last known revision number to update. If the head +// revision in the marketplace database has since changed, an error will be +// thrown. The caller should then fetch the latest proposal at head revision +// and retry the update at that revision. +// - updateAction: The proposed action to take on the proposal. This field is +// required and it must be set when updating a proposal. func (r *ProposalsService) Update(proposalId string, revisionNumber int64, updateAction string, proposal *Proposal) *ProposalsUpdateCall { c := &ProposalsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.proposalId = proposalId @@ -9397,23 +6955,21 @@ func (r *ProposalsService) Update(proposalId string, revisionNumber int64, updat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProposalsUpdateCall) Fields(s ...googleapi.Field) *ProposalsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProposalsUpdateCall) Context(ctx context.Context) *ProposalsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProposalsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9422,18 +6978,12 @@ func (c *ProposalsUpdateCall) Header() http.Header { } func (c *ProposalsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.proposal) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "proposals/{proposalId}/{revisionNumber}/{updateAction}") @@ -9448,16 +6998,14 @@ func (c *ProposalsUpdateCall) doRequest(alt string) (*http.Response, error) { "revisionNumber": strconv.FormatInt(c.revisionNumber, 10), "updateAction": c.updateAction, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.proposals.update" call. -// Exactly one of *Proposal or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Proposal.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Proposal.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProposalsUpdateCall) Do(opts ...googleapi.CallOption) (*Proposal, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9465,17 +7013,17 @@ func (c *ProposalsUpdateCall) Do(opts ...googleapi.CallOption) (*Proposal, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Proposal{ ServerResponse: googleapi.ServerResponse{ @@ -9488,67 +7036,7 @@ func (c *ProposalsUpdateCall) Do(opts ...googleapi.CallOption) (*Proposal, error return nil, err } return ret, nil - // { - // "description": "Update the given proposal", - // "httpMethod": "PUT", - // "id": "adexchangebuyer.proposals.update", - // "parameterOrder": [ - // "proposalId", - // "revisionNumber", - // "updateAction" - // ], - // "parameters": { - // "proposalId": { - // "description": "The proposal id to update.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "revisionNumber": { - // "description": "The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "updateAction": { - // "description": "The proposed action to take on the proposal. This field is required and it must be set when updating a proposal.", - // "enum": [ - // "accept", - // "cancel", - // "propose", - // "proposeAndAccept", - // "unknownAction", - // "updateNonTerms" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "proposals/{proposalId}/{revisionNumber}/{updateAction}", - // "request": { - // "$ref": "Proposal" - // }, - // "response": { - // "$ref": "Proposal" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - -} - -// method id "adexchangebuyer.pubprofiles.list": +} type PubprofilesListCall struct { s *Service @@ -9569,33 +7057,29 @@ func (r *PubprofilesService) List(accountId int64) *PubprofilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PubprofilesListCall) Fields(s ...googleapi.Field) *PubprofilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PubprofilesListCall) IfNoneMatch(entityTag string) *PubprofilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PubprofilesListCall) Context(ctx context.Context) *PubprofilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PubprofilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9604,12 +7088,7 @@ func (c *PubprofilesListCall) Header() http.Header { } func (c *PubprofilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210819") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9626,17 +7105,15 @@ func (c *PubprofilesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer.pubprofiles.list" call. -// Exactly one of *GetPublisherProfilesByAccountIdResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GetPublisherProfilesByAccountIdResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GetPublisherProfilesByAccountIdResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PubprofilesListCall) Do(opts ...googleapi.CallOption) (*GetPublisherProfilesByAccountIdResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9644,17 +7121,17 @@ func (c *PubprofilesListCall) Do(opts ...googleapi.CallOption) (*GetPublisherPro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GetPublisherProfilesByAccountIdResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9667,29 +7144,4 @@ func (c *PubprofilesListCall) Do(opts ...googleapi.CallOption) (*GetPublisherPro return nil, err } return ret, nil - // { - // "description": "Gets the requested publisher profile(s) by publisher accountId.", - // "httpMethod": "GET", - // "id": "adexchangebuyer.pubprofiles.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The accountId of the publisher to get profiles for.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "publisher/{accountId}/profiles", - // "response": { - // "$ref": "GetPublisherProfilesByAccountIdResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.buyer" - // ] - // } - } diff --git a/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go b/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go index 56835874d49..1992eb14fa5 100644 --- a/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go +++ b/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go @@ -4865,7 +4865,7 @@ func (c *AccountsClientsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.clients.create" call. @@ -4977,7 +4977,7 @@ func (c *AccountsClientsGetCall) doRequest(alt string) (*http.Response, error) { "accountId": strconv.FormatInt(c.accountId, 10), "clientAccountId": strconv.FormatInt(c.clientAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.clients.get" call. @@ -5111,7 +5111,7 @@ func (c *AccountsClientsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.clients.list" call. @@ -5240,7 +5240,7 @@ func (c *AccountsClientsUpdateCall) doRequest(alt string) (*http.Response, error "accountId": strconv.FormatInt(c.accountId, 10), "clientAccountId": strconv.FormatInt(c.clientAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.clients.update" call. @@ -5347,7 +5347,7 @@ func (c *AccountsClientsInvitationsCreateCall) doRequest(alt string) (*http.Resp "accountId": strconv.FormatInt(c.accountId, 10), "clientAccountId": strconv.FormatInt(c.clientAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.clients.invitations.create" call. @@ -5465,7 +5465,7 @@ func (c *AccountsClientsInvitationsGetCall) doRequest(alt string) (*http.Respons "clientAccountId": strconv.FormatInt(c.clientAccountId, 10), "invitationId": strconv.FormatInt(c.invitationId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.clients.invitations.get" call. @@ -5598,7 +5598,7 @@ func (c *AccountsClientsInvitationsListCall) doRequest(alt string) (*http.Respon "accountId": strconv.FormatInt(c.accountId, 10), "clientAccountId": c.clientAccountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.clients.invitations.list" call. @@ -5736,7 +5736,7 @@ func (c *AccountsClientsUsersGetCall) doRequest(alt string) (*http.Response, err "clientAccountId": strconv.FormatInt(c.clientAccountId, 10), "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.clients.users.get" call. @@ -5869,7 +5869,7 @@ func (c *AccountsClientsUsersListCall) doRequest(alt string) (*http.Response, er "accountId": strconv.FormatInt(c.accountId, 10), "clientAccountId": c.clientAccountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.clients.users.list" call. @@ -6002,7 +6002,7 @@ func (c *AccountsClientsUsersUpdateCall) doRequest(alt string) (*http.Response, "clientAccountId": strconv.FormatInt(c.clientAccountId, 10), "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.clients.users.update" call. @@ -6126,7 +6126,7 @@ func (c *AccountsCreativesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.creatives.create" call. @@ -6237,7 +6237,7 @@ func (c *AccountsCreativesGetCall) doRequest(alt string) (*http.Response, error) "accountId": c.accountId, "creativeId": c.creativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.creatives.get" call. @@ -6378,7 +6378,7 @@ func (c *AccountsCreativesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.creatives.list" call. @@ -6507,7 +6507,7 @@ func (c *AccountsCreativesStopWatchingCall) doRequest(alt string) (*http.Respons "accountId": c.accountId, "creativeId": c.creativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.creatives.stopWatching" call. @@ -6614,7 +6614,7 @@ func (c *AccountsCreativesUpdateCall) doRequest(alt string) (*http.Response, err "accountId": c.accountId, "creativeId": c.creativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.creatives.update" call. @@ -6723,7 +6723,7 @@ func (c *AccountsCreativesWatchCall) doRequest(alt string) (*http.Response, erro "accountId": c.accountId, "creativeId": c.creativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.creatives.watch" call. @@ -6828,7 +6828,7 @@ func (c *AccountsCreativesDealAssociationsAddCall) doRequest(alt string) (*http. "accountId": c.accountId, "creativeId": c.creativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.add" call. @@ -6970,7 +6970,7 @@ func (c *AccountsCreativesDealAssociationsListCall) doRequest(alt string) (*http "accountId": c.accountId, "creativeId": c.creativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.list" call. @@ -7097,7 +7097,7 @@ func (c *AccountsCreativesDealAssociationsRemoveCall) doRequest(alt string) (*ht "accountId": c.accountId, "creativeId": c.creativeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.remove" call. @@ -7252,7 +7252,7 @@ func (c *AccountsFinalizedProposalsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.finalizedProposals.list" call. @@ -7385,7 +7385,7 @@ func (c *AccountsFinalizedProposalsPauseCall) doRequest(alt string) (*http.Respo "accountId": c.accountId, "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.finalizedProposals.pause" call. @@ -7496,7 +7496,7 @@ func (c *AccountsFinalizedProposalsResumeCall) doRequest(alt string) (*http.Resp "accountId": c.accountId, "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.finalizedProposals.resume" call. @@ -7607,7 +7607,7 @@ func (c *AccountsProductsGetCall) doRequest(alt string) (*http.Response, error) "accountId": c.accountId, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.products.get" call. @@ -7740,7 +7740,7 @@ func (c *AccountsProductsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.products.list" call. @@ -7872,7 +7872,7 @@ func (c *AccountsProposalsAcceptCall) doRequest(alt string) (*http.Response, err "accountId": c.accountId, "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.proposals.accept" call. @@ -7979,7 +7979,7 @@ func (c *AccountsProposalsAddNoteCall) doRequest(alt string) (*http.Response, er "accountId": c.accountId, "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.proposals.addNote" call. @@ -8086,7 +8086,7 @@ func (c *AccountsProposalsCancelNegotiationCall) doRequest(alt string) (*http.Re "accountId": c.accountId, "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.proposals.cancelNegotiation" call. @@ -8199,7 +8199,7 @@ func (c *AccountsProposalsCompleteSetupCall) doRequest(alt string) (*http.Respon "accountId": c.accountId, "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.proposals.completeSetup" call. @@ -8301,7 +8301,7 @@ func (c *AccountsProposalsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.proposals.create" call. @@ -8413,7 +8413,7 @@ func (c *AccountsProposalsGetCall) doRequest(alt string) (*http.Response, error) "accountId": c.accountId, "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.proposals.get" call. @@ -8571,7 +8571,7 @@ func (c *AccountsProposalsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.proposals.list" call. @@ -8702,7 +8702,7 @@ func (c *AccountsProposalsPauseCall) doRequest(alt string) (*http.Response, erro "accountId": c.accountId, "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.proposals.pause" call. @@ -8812,7 +8812,7 @@ func (c *AccountsProposalsResumeCall) doRequest(alt string) (*http.Response, err "accountId": c.accountId, "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.proposals.resume" call. @@ -8926,7 +8926,7 @@ func (c *AccountsProposalsUpdateCall) doRequest(alt string) (*http.Response, err "accountId": c.accountId, "proposalId": c.proposalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.proposals.update" call. @@ -9037,7 +9037,7 @@ func (c *AccountsPublisherProfilesGetCall) doRequest(alt string) (*http.Response "accountId": c.accountId, "publisherProfileId": c.publisherProfileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.publisherProfiles.get" call. @@ -9159,7 +9159,7 @@ func (c *AccountsPublisherProfilesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.accounts.publisherProfiles.list" call. @@ -9297,7 +9297,7 @@ func (c *BiddersAccountsFilterSetsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "ownerName": c.ownerName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.create" call. @@ -9398,7 +9398,7 @@ func (c *BiddersAccountsFilterSetsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.delete" call. @@ -9511,7 +9511,7 @@ func (c *BiddersAccountsFilterSetsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.get" call. @@ -9640,7 +9640,7 @@ func (c *BiddersAccountsFilterSetsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "ownerName": c.ownerName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.list" call. @@ -9792,7 +9792,7 @@ func (c *BiddersAccountsFilterSetsBidMetricsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.bidMetrics.list" call. @@ -9945,7 +9945,7 @@ func (c *BiddersAccountsFilterSetsBidResponseErrorsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.bidResponseErrors.list" call. @@ -10098,7 +10098,7 @@ func (c *BiddersAccountsFilterSetsBidResponsesWithoutBidsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.bidResponsesWithoutBids.list" call. @@ -10251,7 +10251,7 @@ func (c *BiddersAccountsFilterSetsFilteredBidRequestsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.filteredBidRequests.list" call. @@ -10404,7 +10404,7 @@ func (c *BiddersAccountsFilterSetsFilteredBidsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.filteredBids.list" call. @@ -10563,7 +10563,7 @@ func (c *BiddersAccountsFilterSetsFilteredBidsCreativesListCall) doRequest(alt s "filterSetName": c.filterSetName, "creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.filteredBids.creatives.list" call. @@ -10724,7 +10724,7 @@ func (c *BiddersAccountsFilterSetsFilteredBidsDetailsListCall) doRequest(alt str "filterSetName": c.filterSetName, "creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.filteredBids.details.list" call. @@ -10876,7 +10876,7 @@ func (c *BiddersAccountsFilterSetsImpressionMetricsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.impressionMetrics.list" call. @@ -11029,7 +11029,7 @@ func (c *BiddersAccountsFilterSetsLosingBidsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.losingBids.list" call. @@ -11182,7 +11182,7 @@ func (c *BiddersAccountsFilterSetsNonBillableWinningBidsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.accounts.filterSets.nonBillableWinningBids.list" call. @@ -11320,7 +11320,7 @@ func (c *BiddersFilterSetsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "ownerName": c.ownerName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.create" call. @@ -11421,7 +11421,7 @@ func (c *BiddersFilterSetsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.delete" call. @@ -11534,7 +11534,7 @@ func (c *BiddersFilterSetsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.get" call. @@ -11663,7 +11663,7 @@ func (c *BiddersFilterSetsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "ownerName": c.ownerName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.list" call. @@ -11815,7 +11815,7 @@ func (c *BiddersFilterSetsBidMetricsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.bidMetrics.list" call. @@ -11968,7 +11968,7 @@ func (c *BiddersFilterSetsBidResponseErrorsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.bidResponseErrors.list" call. @@ -12121,7 +12121,7 @@ func (c *BiddersFilterSetsBidResponsesWithoutBidsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.bidResponsesWithoutBids.list" call. @@ -12274,7 +12274,7 @@ func (c *BiddersFilterSetsFilteredBidRequestsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.filteredBidRequests.list" call. @@ -12427,7 +12427,7 @@ func (c *BiddersFilterSetsFilteredBidsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.filteredBids.list" call. @@ -12586,7 +12586,7 @@ func (c *BiddersFilterSetsFilteredBidsCreativesListCall) doRequest(alt string) ( "filterSetName": c.filterSetName, "creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.filteredBids.creatives.list" call. @@ -12747,7 +12747,7 @@ func (c *BiddersFilterSetsFilteredBidsDetailsListCall) doRequest(alt string) (*h "filterSetName": c.filterSetName, "creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.filteredBids.details.list" call. @@ -12899,7 +12899,7 @@ func (c *BiddersFilterSetsImpressionMetricsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.impressionMetrics.list" call. @@ -13052,7 +13052,7 @@ func (c *BiddersFilterSetsLosingBidsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.losingBids.list" call. @@ -13205,7 +13205,7 @@ func (c *BiddersFilterSetsNonBillableWinningBidsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.bidders.filterSets.nonBillableWinningBids.list" call. @@ -13343,7 +13343,7 @@ func (c *BuyersFilterSetsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "ownerName": c.ownerName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.create" call. @@ -13444,7 +13444,7 @@ func (c *BuyersFilterSetsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.delete" call. @@ -13557,7 +13557,7 @@ func (c *BuyersFilterSetsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.get" call. @@ -13686,7 +13686,7 @@ func (c *BuyersFilterSetsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "ownerName": c.ownerName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.list" call. @@ -13838,7 +13838,7 @@ func (c *BuyersFilterSetsBidMetricsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.bidMetrics.list" call. @@ -13991,7 +13991,7 @@ func (c *BuyersFilterSetsBidResponseErrorsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.bidResponseErrors.list" call. @@ -14144,7 +14144,7 @@ func (c *BuyersFilterSetsBidResponsesWithoutBidsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.bidResponsesWithoutBids.list" call. @@ -14297,7 +14297,7 @@ func (c *BuyersFilterSetsFilteredBidRequestsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.filteredBidRequests.list" call. @@ -14450,7 +14450,7 @@ func (c *BuyersFilterSetsFilteredBidsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.filteredBids.list" call. @@ -14609,7 +14609,7 @@ func (c *BuyersFilterSetsFilteredBidsCreativesListCall) doRequest(alt string) (* "filterSetName": c.filterSetName, "creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.filteredBids.creatives.list" call. @@ -14770,7 +14770,7 @@ func (c *BuyersFilterSetsFilteredBidsDetailsListCall) doRequest(alt string) (*ht "filterSetName": c.filterSetName, "creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.filteredBids.details.list" call. @@ -14922,7 +14922,7 @@ func (c *BuyersFilterSetsImpressionMetricsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.impressionMetrics.list" call. @@ -15075,7 +15075,7 @@ func (c *BuyersFilterSetsLosingBidsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.losingBids.list" call. @@ -15228,7 +15228,7 @@ func (c *BuyersFilterSetsNonBillableWinningBidsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "filterSetName": c.filterSetName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangebuyer2.buyers.filterSets.nonBillableWinningBids.list" call. diff --git a/adexchangeseller/v1.1/adexchangeseller-gen.go b/adexchangeseller/v1.1/adexchangeseller-gen.go index 11bcfc54514..17272d61a22 100644 --- a/adexchangeseller/v1.1/adexchangeseller-gen.go +++ b/adexchangeseller/v1.1/adexchangeseller-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/ad-exchange/seller-rest/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // adexchangesellerService, err := adexchangeseller.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // adexchangesellerService, err := adexchangeseller.NewService(ctx, option.WithScopes(adexchangeseller.AdexchangeSellerReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // adexchangesellerService, err := adexchangeseller.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // adexchangesellerService, err := adexchangeseller.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package adexchangeseller // import "google.golang.org/api/adexchangeseller/v1.1" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "adexchangeseller:v1.1" const apiName = "adexchangeseller" const apiVersion = "v1.1" const basePath = "https://www.googleapis.com/adexchangeseller/v1.1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/adexchangeseller/v1.1/" // OAuth2 scopes used by this API. const ( @@ -89,12 +108,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -306,345 +328,257 @@ type UrlchannelsService struct { type Account struct { // Id: Unique identifier of this account. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#account. + // Kind: Kind of resource this is, in this case adexchangeseller#account. Kind string `json:"kind,omitempty"` - // Name: Name of this account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdClient struct { // ArcOptIn: Whether this ad client is opted in to ARC. ArcOptIn bool `json:"arcOptIn,omitempty"` - // Id: Unique identifier of this ad client. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#adClient. + // Kind: Kind of resource this is, in this case adexchangeseller#adClient. Kind string `json:"kind,omitempty"` - // ProductCode: This ad client's product code, which corresponds to the // PRODUCT_CODE report dimension. ProductCode string `json:"productCode,omitempty"` - // SupportsReporting: Whether this ad client supports being reported on. SupportsReporting bool `json:"supportsReporting,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArcOptIn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArcOptIn") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArcOptIn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdClient) MarshalJSON() ([]byte, error) { +func (s AdClient) MarshalJSON() ([]byte, error) { type NoMethod AdClient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdClients struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The ad clients returned in this list response. Items []*AdClient `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adexchangeseller#adClients. Kind string `json:"kind,omitempty"` - // NextPageToken: Continuation token used to page through ad clients. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdClients) MarshalJSON() ([]byte, error) { +func (s AdClients) MarshalJSON() ([]byte, error) { type NoMethod AdClients - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdUnit struct { // Code: Identity code of this ad unit, not necessarily unique across ad // clients. Code string `json:"code,omitempty"` - - // Id: Unique identifier of this ad unit. This should be considered an - // opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this ad unit. This should be considered an opaque + // identifier; it is not safe to rely on it being in any particular format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adexchangeseller#adUnit. Kind string `json:"kind,omitempty"` - // Name: Name of this ad unit. Name string `json:"name,omitempty"` - // Status: Status of this ad unit. Possible values are: - // NEW: Indicates that the ad unit was created within the last seven - // days and does not yet have any activity associated with it. + // NEW: Indicates that the ad unit was created within the last seven days and + // does not yet have any activity associated with it. // - // ACTIVE: Indicates that there has been activity on this ad unit in the - // last seven days. + // ACTIVE: Indicates that there has been activity on this ad unit in the last + // seven days. // - // INACTIVE: Indicates that there has been no activity on this ad unit - // in the last seven days. + // INACTIVE: Indicates that there has been no activity on this ad unit in the + // last seven days. Status string `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnit) MarshalJSON() ([]byte, error) { +func (s AdUnit) MarshalJSON() ([]byte, error) { type NoMethod AdUnit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdUnits struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The ad units returned in this list response. Items []*AdUnit `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adexchangeseller#adUnits. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through ad units. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // NextPageToken: Continuation token used to page through ad units. To retrieve + // the next page of results, set the next request's "pageToken" value to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnits) MarshalJSON() ([]byte, error) { +func (s AdUnits) MarshalJSON() ([]byte, error) { type NoMethod AdUnits - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Alert struct { - // Id: Unique identifier of this alert. This should be considered an - // opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this alert. This should be considered an opaque + // identifier; it is not safe to rely on it being in any particular format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adexchangeseller#alert. Kind string `json:"kind,omitempty"` - // Message: The localized alert message. Message string `json:"message,omitempty"` - - // Severity: Severity of this alert. Possible values: INFO, WARNING, - // SEVERE. + // Severity: Severity of this alert. Possible values: INFO, WARNING, SEVERE. Severity string `json:"severity,omitempty"` - - // Type: Type of this alert. Possible values: SELF_HOLD, - // MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, - // PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, - // API_HOLD. + // Type: Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, + // ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, + // GRAYLISTED_PUBLISHER, API_HOLD. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Alert) MarshalJSON() ([]byte, error) { +func (s Alert) MarshalJSON() ([]byte, error) { type NoMethod Alert - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Alerts struct { // Items: The alerts returned in this list response. Items []*Alert `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adexchangeseller#alerts. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Alerts) MarshalJSON() ([]byte, error) { +func (s Alerts) MarshalJSON() ([]byte, error) { type NoMethod Alerts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomChannel struct { - // Code: Code of this custom channel, not necessarily unique across ad - // clients. + // Code: Code of this custom channel, not necessarily unique across ad clients. Code string `json:"code,omitempty"` - - // Id: Unique identifier of this custom channel. This should be - // considered an opaque identifier; it is not safe to rely on it being - // in any particular format. + // Id: Unique identifier of this custom channel. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#customChannel. + // Kind: Kind of resource this is, in this case adexchangeseller#customChannel. Kind string `json:"kind,omitempty"` - // Name: Name of this custom channel. Name string `json:"name,omitempty"` - // TargetingInfo: The targeting information of this custom channel, if // activated. TargetingInfo *CustomChannelTargetingInfo `json:"targetingInfo,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannel) MarshalJSON() ([]byte, error) { +func (s CustomChannel) MarshalJSON() ([]byte, error) { type NoMethod CustomChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomChannelTargetingInfo: The targeting information of this custom @@ -652,532 +586,396 @@ func (s *CustomChannel) MarshalJSON() ([]byte, error) { type CustomChannelTargetingInfo struct { // AdsAppearOn: The name used to describe this channel externally. AdsAppearOn string `json:"adsAppearOn,omitempty"` - // Description: The external description of the channel. Description string `json:"description,omitempty"` - - // Location: The locations in which ads appear. (Only valid for content - // and mobile content ads). Acceptable values for content ads are: - // TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, - // MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, - // MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: - // TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. + // Location: The locations in which ads appear. (Only valid for content and + // mobile content ads). Acceptable values for content ads are: TOP_LEFT, + // TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, + // BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable + // values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. Location string `json:"location,omitempty"` - // SiteLanguage: The language of the sites ads will be displayed on. SiteLanguage string `json:"siteLanguage,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdsAppearOn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdsAppearOn") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdsAppearOn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) { +func (s CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) { type NoMethod CustomChannelTargetingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomChannels struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The custom channels returned in this list response. Items []*CustomChannel `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#customChannels. + // Kind: Kind of list this is, in this case adexchangeseller#customChannels. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through custom - // channels. To retrieve the next page of results, set the next - // request's "pageToken" value to this. + // NextPageToken: Continuation token used to page through custom channels. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannels) MarshalJSON() ([]byte, error) { +func (s CustomChannels) MarshalJSON() ([]byte, error) { type NoMethod CustomChannels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Metadata struct { Items []*ReportingMetadataEntry `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adexchangeseller#metadata. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metadata) MarshalJSON() ([]byte, error) { +func (s Metadata) MarshalJSON() ([]byte, error) { type NoMethod Metadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PreferredDeal struct { // AdvertiserName: The name of the advertiser this deal is for. AdvertiserName string `json:"advertiserName,omitempty"` - // BuyerNetworkName: The name of the buyer network this deal is for. BuyerNetworkName string `json:"buyerNetworkName,omitempty"` - - // CurrencyCode: The currency code that applies to the fixed_cpm value. - // If not set then assumed to be USD. + // CurrencyCode: The currency code that applies to the fixed_cpm value. If not + // set then assumed to be USD. CurrencyCode string `json:"currencyCode,omitempty"` - - // EndTime: Time when this deal stops being active in seconds since the - // epoch (GMT). If not set then this deal is valid until manually - // disabled by the publisher. + // EndTime: Time when this deal stops being active in seconds since the epoch + // (GMT). If not set then this deal is valid until manually disabled by the + // publisher. EndTime uint64 `json:"endTime,omitempty,string"` - - // FixedCpm: The fixed price for this preferred deal. In cpm micros of - // currency according to currencyCode. If set, then this preferred deal - // is eligible for the fixed price tier of buying (highest priority, pay - // exactly the configured fixed price). + // FixedCpm: The fixed price for this preferred deal. In cpm micros of currency + // according to currencyCode. If set, then this preferred deal is eligible for + // the fixed price tier of buying (highest priority, pay exactly the configured + // fixed price). FixedCpm int64 `json:"fixedCpm,omitempty,string"` - // Id: Unique identifier of this preferred deal. Id int64 `json:"id,omitempty,string"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#preferredDeal. + // Kind: Kind of resource this is, in this case adexchangeseller#preferredDeal. Kind string `json:"kind,omitempty"` - - // StartTime: Time when this deal becomes active in seconds since the - // epoch (GMT). If not set then this deal is active immediately upon - // creation. + // StartTime: Time when this deal becomes active in seconds since the epoch + // (GMT). If not set then this deal is active immediately upon creation. StartTime uint64 `json:"startTime,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PreferredDeal) MarshalJSON() ([]byte, error) { +func (s PreferredDeal) MarshalJSON() ([]byte, error) { type NoMethod PreferredDeal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PreferredDeals struct { // Items: The preferred deals returned in this list response. Items []*PreferredDeal `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#preferredDeals. + // Kind: Kind of list this is, in this case adexchangeseller#preferredDeals. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PreferredDeals) MarshalJSON() ([]byte, error) { +func (s PreferredDeals) MarshalJSON() ([]byte, error) { type NoMethod PreferredDeals - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Report struct { - // Averages: The averages of the report. This is the same length as any - // other row in the report; cells corresponding to dimension columns are - // empty. + // Averages: The averages of the report. This is the same length as any other + // row in the report; cells corresponding to dimension columns are empty. Averages []string `json:"averages,omitempty"` - - // Headers: The header information of the columns requested in the - // report. This is a list of headers; one for each dimension in the - // request, followed by one for each metric in the request. + // Headers: The header information of the columns requested in the report. This + // is a list of headers; one for each dimension in the request, followed by one + // for each metric in the request. Headers []*ReportHeaders `json:"headers,omitempty"` - // Kind: Kind this is, in this case adexchangeseller#report. Kind string `json:"kind,omitempty"` - - // Rows: The output rows of the report. Each row is a list of cells; one - // for each dimension in the request, followed by one for each metric in - // the request. The dimension cells contain strings, and the metric - // cells contain numbers. + // Rows: The output rows of the report. Each row is a list of cells; one for + // each dimension in the request, followed by one for each metric in the + // request. The dimension cells contain strings, and the metric cells contain + // numbers. Rows [][]string `json:"rows,omitempty"` - - // TotalMatchedRows: The total number of rows matched by the report - // request. Fewer rows may be returned in the response due to being - // limited by the row count requested or the report row limit. + // TotalMatchedRows: The total number of rows matched by the report request. + // Fewer rows may be returned in the response due to being limited by the row + // count requested or the report row limit. TotalMatchedRows int64 `json:"totalMatchedRows,omitempty,string"` - - // Totals: The totals of the report. This is the same length as any - // other row in the report; cells corresponding to dimension columns are - // empty. + // Totals: The totals of the report. This is the same length as any other row + // in the report; cells corresponding to dimension columns are empty. Totals []string `json:"totals,omitempty"` - // Warnings: Any warnings associated with generation of the report. Warnings []string `json:"warnings,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Averages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Averages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Averages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Report) MarshalJSON() ([]byte, error) { +func (s Report) MarshalJSON() ([]byte, error) { type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReportHeaders struct { - // Currency: The currency of this column. Only present if the header - // type is METRIC_CURRENCY. + // Currency: The currency of this column. Only present if the header type is + // METRIC_CURRENCY. Currency string `json:"currency,omitempty"` - // Name: The name of the header. Name string `json:"name,omitempty"` - - // Type: The type of the header; one of DIMENSION, METRIC_TALLY, - // METRIC_RATIO, or METRIC_CURRENCY. + // Type: The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, + // or METRIC_CURRENCY. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Currency") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Currency") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Currency") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportHeaders) MarshalJSON() ([]byte, error) { +func (s ReportHeaders) MarshalJSON() ([]byte, error) { type NoMethod ReportHeaders - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReportingMetadataEntry struct { - // CompatibleDimensions: For metrics this is a list of dimension IDs - // which the metric is compatible with, for dimensions it is a list of - // compatibility groups the dimension belongs to. + // CompatibleDimensions: For metrics this is a list of dimension IDs which the + // metric is compatible with, for dimensions it is a list of compatibility + // groups the dimension belongs to. CompatibleDimensions []string `json:"compatibleDimensions,omitempty"` - - // CompatibleMetrics: The names of the metrics the dimension or metric - // this reporting metadata entry describes is compatible with. + // CompatibleMetrics: The names of the metrics the dimension or metric this + // reporting metadata entry describes is compatible with. CompatibleMetrics []string `json:"compatibleMetrics,omitempty"` - - // Id: Unique identifier of this reporting metadata entry, corresponding - // to the name of the appropriate dimension or metric. + // Id: Unique identifier of this reporting metadata entry, corresponding to the + // name of the appropriate dimension or metric. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case // adexchangeseller#reportingMetadataEntry. Kind string `json:"kind,omitempty"` - - // RequiredDimensions: The names of the dimensions which the dimension - // or metric this reporting metadata entry describes requires to also be - // present in order for the report to be valid. Omitting these will not - // cause an error or warning, but may result in data which cannot be - // correctly interpreted. + // RequiredDimensions: The names of the dimensions which the dimension or + // metric this reporting metadata entry describes requires to also be present + // in order for the report to be valid. Omitting these will not cause an error + // or warning, but may result in data which cannot be correctly interpreted. RequiredDimensions []string `json:"requiredDimensions,omitempty"` - - // RequiredMetrics: The names of the metrics which the dimension or - // metric this reporting metadata entry describes requires to also be - // present in order for the report to be valid. Omitting these will not - // cause an error or warning, but may result in data which cannot be - // correctly interpreted. + // RequiredMetrics: The names of the metrics which the dimension or metric this + // reporting metadata entry describes requires to also be present in order for + // the report to be valid. Omitting these will not cause an error or warning, + // but may result in data which cannot be correctly interpreted. RequiredMetrics []string `json:"requiredMetrics,omitempty"` - - // SupportedProducts: The codes of the projects supported by the - // dimension or metric this reporting metadata entry describes. + // SupportedProducts: The codes of the projects supported by the dimension or + // metric this reporting metadata entry describes. SupportedProducts []string `json:"supportedProducts,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CompatibleDimensions") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CompatibleDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompatibleDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompatibleDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportingMetadataEntry) MarshalJSON() ([]byte, error) { +func (s ReportingMetadataEntry) MarshalJSON() ([]byte, error) { type NoMethod ReportingMetadataEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedReport struct { // Id: Unique identifier of this saved report. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#savedReport. + // Kind: Kind of resource this is, in this case adexchangeseller#savedReport. Kind string `json:"kind,omitempty"` - // Name: This saved report's name. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedReport) MarshalJSON() ([]byte, error) { +func (s SavedReport) MarshalJSON() ([]byte, error) { type NoMethod SavedReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedReports struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The saved reports returned in this list response. Items []*SavedReport `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#savedReports. + // Kind: Kind of list this is, in this case adexchangeseller#savedReports. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through saved reports. - // To retrieve the next page of results, set the next request's - // "pageToken" value to this. + // NextPageToken: Continuation token used to page through saved reports. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedReports) MarshalJSON() ([]byte, error) { +func (s SavedReports) MarshalJSON() ([]byte, error) { type NoMethod SavedReports - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlChannel struct { - // Id: Unique identifier of this URL channel. This should be considered - // an opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this URL channel. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#urlChannel. + // Kind: Kind of resource this is, in this case adexchangeseller#urlChannel. Kind string `json:"kind,omitempty"` - - // UrlPattern: URL Pattern of this URL channel. Does not include - // "http://" or "https://". Example: www.example.com/home + // UrlPattern: URL Pattern of this URL channel. Does not include "http://" or + // "https://". Example: www.example.com/home UrlPattern string `json:"urlPattern,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlChannel) MarshalJSON() ([]byte, error) { +func (s UrlChannel) MarshalJSON() ([]byte, error) { type NoMethod UrlChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlChannels struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The URL channels returned in this list response. Items []*UrlChannel `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#urlChannels. + // Kind: Kind of list this is, in this case adexchangeseller#urlChannels. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through URL channels. - // To retrieve the next page of results, set the next request's - // "pageToken" value to this. + // NextPageToken: Continuation token used to page through URL channels. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlChannels) MarshalJSON() ([]byte, error) { +func (s UrlChannels) MarshalJSON() ([]byte, error) { type NoMethod UrlChannels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "adexchangeseller.accounts.get": - type AccountsGetCall struct { s *Service accountId string @@ -1188,6 +986,9 @@ type AccountsGetCall struct { } // Get: Get information about the selected Ad Exchange account. +// +// - accountId: Account to get information about. Tip: 'myaccount' is a valid +// ID. func (r *AccountsService) Get(accountId string) *AccountsGetCall { c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -1195,33 +996,29 @@ func (r *AccountsService) Get(accountId string) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1230,12 +1027,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1252,16 +1044,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1269,17 +1059,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -1292,34 +1082,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Get information about the selected Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.get", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to get information about. Tip: 'myaccount' is a valid ID.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.adclients.list": +} type AdclientsListCall struct { s *Service @@ -1335,50 +1098,45 @@ func (r *AdclientsService) List() *AdclientsListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad clients to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad clients to include in the response, used for paging. func (c *AdclientsListCall) MaxResults(maxResults int64) *AdclientsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad clients. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad clients. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AdclientsListCall) PageToken(pageToken string) *AdclientsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdclientsListCall) Fields(s ...googleapi.Field) *AdclientsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdclientsListCall) IfNoneMatch(entityTag string) *AdclientsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdclientsListCall) Context(ctx context.Context) *AdclientsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdclientsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1387,12 +1145,7 @@ func (c *AdclientsListCall) Header() http.Header { } func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1406,16 +1159,14 @@ func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.adclients.list" call. -// Exactly one of *AdClients or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdClients.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdClients.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1423,17 +1174,17 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdClients{ ServerResponse: googleapi.ServerResponse{ @@ -1446,35 +1197,6 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) return nil, err } return ret, nil - // { - // "description": "List all ad clients in this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.adclients.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of ad clients to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients", - // "response": { - // "$ref": "AdClients" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1482,7 +1204,7 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) // The provided context supersedes any context provided to the Context method. func (c *AdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1498,8 +1220,6 @@ func (c *AdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) } } -// method id "adexchangeseller.adunits.get": - type AdunitsGetCall struct { s *Service adClientId string @@ -1511,6 +1231,9 @@ type AdunitsGetCall struct { } // Get: Gets the specified ad unit in the specified ad client. +// +// - adClientId: Ad client for which to get the ad unit. +// - adUnitId: Ad unit to retrieve. func (r *AdunitsService) Get(adClientId string, adUnitId string) *AdunitsGetCall { c := &AdunitsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -1519,33 +1242,29 @@ func (r *AdunitsService) Get(adClientId string, adUnitId string) *AdunitsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsGetCall) Fields(s ...googleapi.Field) *AdunitsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsGetCall) IfNoneMatch(entityTag string) *AdunitsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsGetCall) Context(ctx context.Context) *AdunitsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1554,12 +1273,7 @@ func (c *AdunitsGetCall) Header() http.Header { } func (c *AdunitsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1577,16 +1291,14 @@ func (c *AdunitsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.adunits.get" call. -// Exactly one of *AdUnit or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnit.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnit.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1594,17 +1306,17 @@ func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnit{ ServerResponse: googleapi.ServerResponse{ @@ -1617,41 +1329,7 @@ func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { return nil, err } return ret, nil - // { - // "description": "Gets the specified ad unit in the specified ad client.", - // "httpMethod": "GET", - // "id": "adexchangeseller.adunits.get", - // "parameterOrder": [ - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to get the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits/{adUnitId}", - // "response": { - // "$ref": "AdUnit" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.adunits.list": +} type AdunitsListCall struct { s *Service @@ -1662,65 +1340,62 @@ type AdunitsListCall struct { header_ http.Header } -// List: List all ad units in the specified ad client for this Ad -// Exchange account. +// List: List all ad units in the specified ad client for this Ad Exchange +// account. +// +// - adClientId: Ad client for which to list ad units. func (r *AdunitsService) List(adClientId string) *AdunitsListCall { c := &AdunitsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *AdunitsListCall) IncludeInactive(includeInactive bool) *AdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *AdunitsListCall) MaxResults(maxResults int64) *AdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AdunitsListCall) PageToken(pageToken string) *AdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsListCall) Fields(s ...googleapi.Field) *AdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsListCall) IfNoneMatch(entityTag string) *AdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsListCall) Context(ctx context.Context) *AdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1729,12 +1404,7 @@ func (c *AdunitsListCall) Header() http.Header { } func (c *AdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1751,16 +1421,14 @@ func (c *AdunitsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1768,17 +1436,17 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -1791,49 +1459,6 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified ad client for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.adunits.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1841,7 +1466,7 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { // The provided context supersedes any context provided to the Context method. func (c *AdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1857,8 +1482,6 @@ func (c *AdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) err } } -// method id "adexchangeseller.adunits.customchannels.list": - type AdunitsCustomchannelsListCall struct { s *Service adClientId string @@ -1869,8 +1492,10 @@ type AdunitsCustomchannelsListCall struct { header_ http.Header } -// List: List all custom channels which the specified ad unit belongs -// to. +// List: List all custom channels which the specified ad unit belongs to. +// +// - adClientId: Ad client which contains the ad unit. +// - adUnitId: Ad unit for which to list custom channels. func (r *AdunitsCustomchannelsService) List(adClientId string, adUnitId string) *AdunitsCustomchannelsListCall { c := &AdunitsCustomchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -1878,51 +1503,45 @@ func (r *AdunitsCustomchannelsService) List(adClientId string, adUnitId string) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *AdunitsCustomchannelsListCall) MaxResults(maxResults int64) *AdunitsCustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AdunitsCustomchannelsListCall) PageToken(pageToken string) *AdunitsCustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsCustomchannelsListCall) Fields(s ...googleapi.Field) *AdunitsCustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsCustomchannelsListCall) IfNoneMatch(entityTag string) *AdunitsCustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsCustomchannelsListCall) Context(ctx context.Context) *AdunitsCustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsCustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1931,12 +1550,7 @@ func (c *AdunitsCustomchannelsListCall) Header() http.Header { } func (c *AdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1954,16 +1568,14 @@ func (c *AdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.adunits.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1971,17 +1583,17 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -1994,51 +1606,6 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo return nil, err } return ret, nil - // { - // "description": "List all custom channels which the specified ad unit belongs to.", - // "httpMethod": "GET", - // "id": "adexchangeseller.adunits.customchannels.list", - // "parameterOrder": [ - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2046,7 +1613,7 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo // The provided context supersedes any context provided to the Context method. func (c *AdunitsCustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2062,8 +1629,6 @@ func (c *AdunitsCustomchannelsListCall) Pages(ctx context.Context, f func(*Custo } } -// method id "adexchangeseller.alerts.list": - type AlertsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -2079,42 +1644,38 @@ func (r *AlertsService) List() *AlertsListCall { } // Locale sets the optional parameter "locale": The locale to use for -// translating alert messages. The account locale will be used if this -// is not supplied. The AdSense default (English) will be used if the -// supplied locale is invalid or unsupported. +// translating alert messages. The account locale will be used if this is not +// supplied. The AdSense default (English) will be used if the supplied locale +// is invalid or unsupported. func (c *AlertsListCall) Locale(locale string) *AlertsListCall { c.urlParams_.Set("locale", locale) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AlertsListCall) Fields(s ...googleapi.Field) *AlertsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AlertsListCall) IfNoneMatch(entityTag string) *AlertsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AlertsListCall) Context(ctx context.Context) *AlertsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AlertsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2123,12 +1684,7 @@ func (c *AlertsListCall) Header() http.Header { } func (c *AlertsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2142,16 +1698,14 @@ func (c *AlertsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.alerts.list" call. -// Exactly one of *Alerts or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Alerts.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Alerts.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2159,17 +1713,17 @@ func (c *AlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Alerts{ ServerResponse: googleapi.ServerResponse{ @@ -2182,30 +1736,7 @@ func (c *AlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { return nil, err } return ret, nil - // { - // "description": "List the alerts for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.alerts.list", - // "parameters": { - // "locale": { - // "description": "The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "alerts", - // "response": { - // "$ref": "Alerts" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.customchannels.get": +} type CustomchannelsGetCall struct { s *Service @@ -2218,6 +1749,9 @@ type CustomchannelsGetCall struct { } // Get: Get the specified custom channel from the specified ad client. +// +// - adClientId: Ad client which contains the custom channel. +// - customChannelId: Custom channel to retrieve. func (r *CustomchannelsService) Get(adClientId string, customChannelId string) *CustomchannelsGetCall { c := &CustomchannelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -2226,33 +1760,29 @@ func (r *CustomchannelsService) Get(adClientId string, customChannelId string) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsGetCall) Fields(s ...googleapi.Field) *CustomchannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsGetCall) IfNoneMatch(entityTag string) *CustomchannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsGetCall) Context(ctx context.Context) *CustomchannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2261,12 +1791,7 @@ func (c *CustomchannelsGetCall) Header() http.Header { } func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2284,16 +1809,14 @@ func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.customchannels.get" call. -// Exactly one of *CustomChannel or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannel.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannel.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2301,17 +1824,17 @@ func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannel{ ServerResponse: googleapi.ServerResponse{ @@ -2324,41 +1847,7 @@ func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel return nil, err } return ret, nil - // { - // "description": "Get the specified custom channel from the specified ad client.", - // "httpMethod": "GET", - // "id": "adexchangeseller.customchannels.get", - // "parameterOrder": [ - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels/{customChannelId}", - // "response": { - // "$ref": "CustomChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.customchannels.list": +} type CustomchannelsListCall struct { s *Service @@ -2371,57 +1860,53 @@ type CustomchannelsListCall struct { // List: List all custom channels in the specified ad client for this Ad // Exchange account. +// +// - adClientId: Ad client for which to list custom channels. func (r *CustomchannelsService) List(adClientId string) *CustomchannelsListCall { c := &CustomchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *CustomchannelsListCall) MaxResults(maxResults int64) *CustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *CustomchannelsListCall) PageToken(pageToken string) *CustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsListCall) Fields(s ...googleapi.Field) *CustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsListCall) IfNoneMatch(entityTag string) *CustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsListCall) Context(ctx context.Context) *CustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2430,12 +1915,7 @@ func (c *CustomchannelsListCall) Header() http.Header { } func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2452,16 +1932,14 @@ func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2469,17 +1947,17 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -2492,44 +1970,6 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne return nil, err } return ret, nil - // { - // "description": "List all custom channels in the specified ad client for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.customchannels.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2537,7 +1977,7 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne // The provided context supersedes any context provided to the Context method. func (c *CustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2553,8 +1993,6 @@ func (c *CustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChanne } } -// method id "adexchangeseller.customchannels.adunits.list": - type CustomchannelsAdunitsListCall struct { s *Service adClientId string @@ -2566,6 +2004,9 @@ type CustomchannelsAdunitsListCall struct { } // List: List all ad units in the specified custom channel. +// +// - adClientId: Ad client which contains the custom channel. +// - customChannelId: Custom channel for which to list ad units. func (r *CustomchannelsAdunitsService) List(adClientId string, customChannelId string) *CustomchannelsAdunitsListCall { c := &CustomchannelsAdunitsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -2573,57 +2014,52 @@ func (r *CustomchannelsAdunitsService) List(adClientId string, customChannelId s return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *CustomchannelsAdunitsListCall) IncludeInactive(includeInactive bool) *CustomchannelsAdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *CustomchannelsAdunitsListCall) MaxResults(maxResults int64) *CustomchannelsAdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *CustomchannelsAdunitsListCall) PageToken(pageToken string) *CustomchannelsAdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsAdunitsListCall) Fields(s ...googleapi.Field) *CustomchannelsAdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsAdunitsListCall) IfNoneMatch(entityTag string) *CustomchannelsAdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsAdunitsListCall) Context(ctx context.Context) *CustomchannelsAdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsAdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2632,12 +2068,7 @@ func (c *CustomchannelsAdunitsListCall) Header() http.Header { } func (c *CustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2655,16 +2086,14 @@ func (c *CustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.customchannels.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2672,17 +2101,17 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -2695,56 +2124,6 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified custom channel.", - // "httpMethod": "GET", - // "id": "adexchangeseller.customchannels.adunits.list", - // "parameterOrder": [ - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2752,7 +2131,7 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni // The provided context supersedes any context provided to the Context method. func (c *CustomchannelsAdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2768,8 +2147,6 @@ func (c *CustomchannelsAdunitsListCall) Pages(ctx context.Context, f func(*AdUni } } -// method id "adexchangeseller.metadata.dimensions.list": - type MetadataDimensionsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -2778,41 +2155,37 @@ type MetadataDimensionsListCall struct { header_ http.Header } -// List: List the metadata for the dimensions available to this -// AdExchange account. +// List: List the metadata for the dimensions available to this AdExchange +// account. func (r *MetadataDimensionsService) List() *MetadataDimensionsListCall { c := &MetadataDimensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetadataDimensionsListCall) Fields(s ...googleapi.Field) *MetadataDimensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetadataDimensionsListCall) IfNoneMatch(entityTag string) *MetadataDimensionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetadataDimensionsListCall) Context(ctx context.Context) *MetadataDimensionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetadataDimensionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2821,12 +2194,7 @@ func (c *MetadataDimensionsListCall) Header() http.Header { } func (c *MetadataDimensionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2840,16 +2208,14 @@ func (c *MetadataDimensionsListCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.metadata.dimensions.list" call. -// Exactly one of *Metadata or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Metadata.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Metadata.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2857,17 +2223,17 @@ func (c *MetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Metadata{ ServerResponse: googleapi.ServerResponse{ @@ -2880,24 +2246,8 @@ func (c *MetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata return nil, err } return ret, nil - // { - // "description": "List the metadata for the dimensions available to this AdExchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.metadata.dimensions.list", - // "path": "metadata/dimensions", - // "response": { - // "$ref": "Metadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } -// method id "adexchangeseller.metadata.metrics.list": - type MetadataMetricsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -2914,33 +2264,29 @@ func (r *MetadataMetricsService) List() *MetadataMetricsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetadataMetricsListCall) Fields(s ...googleapi.Field) *MetadataMetricsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetadataMetricsListCall) IfNoneMatch(entityTag string) *MetadataMetricsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetadataMetricsListCall) Context(ctx context.Context) *MetadataMetricsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetadataMetricsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2949,12 +2295,7 @@ func (c *MetadataMetricsListCall) Header() http.Header { } func (c *MetadataMetricsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2968,16 +2309,14 @@ func (c *MetadataMetricsListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.metadata.metrics.list" call. -// Exactly one of *Metadata or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Metadata.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Metadata.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2985,17 +2324,17 @@ func (c *MetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Metadata{ ServerResponse: googleapi.ServerResponse{ @@ -3008,24 +2347,8 @@ func (c *MetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, e return nil, err } return ret, nil - // { - // "description": "List the metadata for the metrics available to this AdExchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.metadata.metrics.list", - // "path": "metadata/metrics", - // "response": { - // "$ref": "Metadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } -// method id "adexchangeseller.preferreddeals.get": - type PreferreddealsGetCall struct { s *Service dealId string @@ -3036,6 +2359,8 @@ type PreferreddealsGetCall struct { } // Get: Get information about the selected Ad Exchange Preferred Deal. +// +// - dealId: Preferred deal to get information about. func (r *PreferreddealsService) Get(dealId string) *PreferreddealsGetCall { c := &PreferreddealsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.dealId = dealId @@ -3043,33 +2368,29 @@ func (r *PreferreddealsService) Get(dealId string) *PreferreddealsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PreferreddealsGetCall) Fields(s ...googleapi.Field) *PreferreddealsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PreferreddealsGetCall) IfNoneMatch(entityTag string) *PreferreddealsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PreferreddealsGetCall) Context(ctx context.Context) *PreferreddealsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PreferreddealsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3078,12 +2399,7 @@ func (c *PreferreddealsGetCall) Header() http.Header { } func (c *PreferreddealsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3100,16 +2416,14 @@ func (c *PreferreddealsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "dealId": c.dealId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.preferreddeals.get" call. -// Exactly one of *PreferredDeal or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PreferredDeal.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PreferredDeal.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PreferreddealsGetCall) Do(opts ...googleapi.CallOption) (*PreferredDeal, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3117,17 +2431,17 @@ func (c *PreferreddealsGetCall) Do(opts ...googleapi.CallOption) (*PreferredDeal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PreferredDeal{ ServerResponse: googleapi.ServerResponse{ @@ -3140,34 +2454,7 @@ func (c *PreferreddealsGetCall) Do(opts ...googleapi.CallOption) (*PreferredDeal return nil, err } return ret, nil - // { - // "description": "Get information about the selected Ad Exchange Preferred Deal.", - // "httpMethod": "GET", - // "id": "adexchangeseller.preferreddeals.get", - // "parameterOrder": [ - // "dealId" - // ], - // "parameters": { - // "dealId": { - // "description": "Preferred deal to get information about.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "preferreddeals/{dealId}", - // "response": { - // "$ref": "PreferredDeal" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.preferreddeals.list": +} type PreferreddealsListCall struct { s *Service @@ -3184,33 +2471,29 @@ func (r *PreferreddealsService) List() *PreferreddealsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PreferreddealsListCall) Fields(s ...googleapi.Field) *PreferreddealsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PreferreddealsListCall) IfNoneMatch(entityTag string) *PreferreddealsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PreferreddealsListCall) Context(ctx context.Context) *PreferreddealsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PreferreddealsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3219,12 +2502,7 @@ func (c *PreferreddealsListCall) Header() http.Header { } func (c *PreferreddealsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3238,16 +2516,14 @@ func (c *PreferreddealsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.preferreddeals.list" call. -// Exactly one of *PreferredDeals or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PreferredDeals.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PreferredDeals.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PreferreddealsListCall) Do(opts ...googleapi.CallOption) (*PreferredDeals, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3255,17 +2531,17 @@ func (c *PreferreddealsListCall) Do(opts ...googleapi.CallOption) (*PreferredDea if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PreferredDeals{ ServerResponse: googleapi.ServerResponse{ @@ -3278,24 +2554,8 @@ func (c *PreferreddealsListCall) Do(opts ...googleapi.CallOption) (*PreferredDea return nil, err } return ret, nil - // { - // "description": "List the preferred deals for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.preferreddeals.list", - // "path": "preferreddeals", - // "response": { - // "$ref": "PreferredDeals" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } -// method id "adexchangeseller.reports.generate": - type ReportsGenerateCall struct { s *Service urlParams_ gensupport.URLParams @@ -3304,9 +2564,14 @@ type ReportsGenerateCall struct { header_ http.Header } -// Generate: Generate an Ad Exchange report based on the report request -// sent in the query parameters. Returns the result as JSON; to retrieve -// output in CSV format specify "alt=csv" as a query parameter. +// Generate: Generate an Ad Exchange report based on the report request sent in +// the query parameters. Returns the result as JSON; to retrieve output in CSV +// format specify "alt=csv" as a query parameter. +// +// - endDate: End of the date range to report on in "YYYY-MM-DD" format, +// inclusive. +// - startDate: Start of the date range to report on in "YYYY-MM-DD" format, +// inclusive. func (r *ReportsService) Generate(startDate string, endDate string) *ReportsGenerateCall { c := &ReportsGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("startDate", startDate) @@ -3314,8 +2579,8 @@ func (r *ReportsService) Generate(startDate string, endDate string) *ReportsGene return c } -// Dimension sets the optional parameter "dimension": Dimensions to base -// the report on. +// Dimension sets the optional parameter "dimension": Dimensions to base the +// report on. func (c *ReportsGenerateCall) Dimension(dimension ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("dimension", append([]string{}, dimension...)) return c @@ -3328,72 +2593,68 @@ func (c *ReportsGenerateCall) Filter(filter ...string) *ReportsGenerateCall { return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *ReportsGenerateCall) Locale(locale string) *ReportsGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *ReportsGenerateCall) MaxResults(maxResults int64) *ReportsGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Metric sets the optional parameter "metric": Numeric columns to -// include in the report. +// Metric sets the optional parameter "metric": Numeric columns to include in +// the report. func (c *ReportsGenerateCall) Metric(metric ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("metric", append([]string{}, metric...)) return c } -// Sort sets the optional parameter "sort": The name of a dimension or -// metric to sort the resulting report on, optionally prefixed with "+" -// to sort ascending or "-" to sort descending. If no prefix is -// specified, the column is sorted ascending. +// Sort sets the optional parameter "sort": The name of a dimension or metric +// to sort the resulting report on, optionally prefixed with "+" to sort +// ascending or "-" to sort descending. If no prefix is specified, the column +// is sorted ascending. func (c *ReportsGenerateCall) Sort(sort ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("sort", append([]string{}, sort...)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *ReportsGenerateCall) StartIndex(startIndex int64) *ReportsGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsGenerateCall) Fields(s ...googleapi.Field) *ReportsGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsGenerateCall) IfNoneMatch(entityTag string) *ReportsGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ReportsGenerateCall) Context(ctx context.Context) *ReportsGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3402,12 +2663,7 @@ func (c *ReportsGenerateCall) Header() http.Header { } func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3421,7 +2677,7 @@ func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -3433,20 +2689,18 @@ func (c *ReportsGenerateCall) Download(opts ...googleapi.CallOption) (*http.Resp if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "adexchangeseller.reports.generate" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3454,17 +2708,17 @@ func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Report, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -3477,94 +2731,7 @@ func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Report, error) return nil, err } return ret, nil - // { - // "description": "Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.", - // "httpMethod": "GET", - // "id": "adexchangeseller.reports.generate", - // "parameterOrder": [ - // "startDate", - // "endDate" - // ], - // "parameters": { - // "dimension": { - // "description": "Dimensions to base the report on.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "endDate": { - // "description": "End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Filters to be run on the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+(==|=@).+", - // "repeated": true, - // "type": "string" - // }, - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "uint32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "metric": { - // "description": "Numeric columns to include in the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "sort": { - // "description": "The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort descending. If no prefix is specified, the column is sorted ascending.", - // "location": "query", - // "pattern": "(\\+|-)?[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "startDate": { - // "description": "Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "uint32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "reports", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "adexchangeseller.reports.saved.generate": +} type ReportsSavedGenerateCall struct { s *Service @@ -3575,64 +2742,62 @@ type ReportsSavedGenerateCall struct { header_ http.Header } -// Generate: Generate an Ad Exchange report based on the saved report ID -// sent in the query parameters. +// Generate: Generate an Ad Exchange report based on the saved report ID sent +// in the query parameters. +// +// - savedReportId: The saved report to retrieve. func (r *ReportsSavedService) Generate(savedReportId string) *ReportsSavedGenerateCall { c := &ReportsSavedGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.savedReportId = savedReportId return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *ReportsSavedGenerateCall) Locale(locale string) *ReportsSavedGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *ReportsSavedGenerateCall) MaxResults(maxResults int64) *ReportsSavedGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *ReportsSavedGenerateCall) StartIndex(startIndex int64) *ReportsSavedGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsSavedGenerateCall) Fields(s ...googleapi.Field) *ReportsSavedGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsSavedGenerateCall) IfNoneMatch(entityTag string) *ReportsSavedGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsSavedGenerateCall) Context(ctx context.Context) *ReportsSavedGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsSavedGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3641,12 +2806,7 @@ func (c *ReportsSavedGenerateCall) Header() http.Header { } func (c *ReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3663,16 +2823,14 @@ func (c *ReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "savedReportId": c.savedReportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.reports.saved.generate" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3680,17 +2838,17 @@ func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Report, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -3703,56 +2861,7 @@ func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Report, er return nil, err } return ret, nil - // { - // "description": "Generate an Ad Exchange report based on the saved report ID sent in the query parameters.", - // "httpMethod": "GET", - // "id": "adexchangeseller.reports.saved.generate", - // "parameterOrder": [ - // "savedReportId" - // ], - // "parameters": { - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "savedReportId": { - // "description": "The saved report to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "reports/{savedReportId}", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.reports.saved.list": +} type ReportsSavedListCall struct { s *Service @@ -3768,50 +2877,45 @@ func (r *ReportsSavedService) List() *ReportsSavedListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved reports to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved reports to include in the response, used for paging. func (c *ReportsSavedListCall) MaxResults(maxResults int64) *ReportsSavedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved reports. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved reports. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *ReportsSavedListCall) PageToken(pageToken string) *ReportsSavedListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsSavedListCall) Fields(s ...googleapi.Field) *ReportsSavedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsSavedListCall) IfNoneMatch(entityTag string) *ReportsSavedListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsSavedListCall) Context(ctx context.Context) *ReportsSavedListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsSavedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3820,12 +2924,7 @@ func (c *ReportsSavedListCall) Header() http.Header { } func (c *ReportsSavedListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3839,16 +2938,14 @@ func (c *ReportsSavedListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.reports.saved.list" call. -// Exactly one of *SavedReports or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedReports.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedReports.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3856,17 +2953,17 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedReports{ ServerResponse: googleapi.ServerResponse{ @@ -3879,35 +2976,6 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, return nil, err } return ret, nil - // { - // "description": "List all saved reports in this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.reports.saved.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of saved reports to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "reports/saved", - // "response": { - // "$ref": "SavedReports" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -3915,7 +2983,7 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, // The provided context supersedes any context provided to the Context method. func (c *ReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3931,8 +2999,6 @@ func (c *ReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) } } -// method id "adexchangeseller.urlchannels.list": - type UrlchannelsListCall struct { s *Service adClientId string @@ -3942,58 +3008,55 @@ type UrlchannelsListCall struct { header_ http.Header } -// List: List all URL channels in the specified ad client for this Ad -// Exchange account. +// List: List all URL channels in the specified ad client for this Ad Exchange +// account. +// +// - adClientId: Ad client for which to list URL channels. func (r *UrlchannelsService) List(adClientId string) *UrlchannelsListCall { c := &UrlchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of URL channels to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// URL channels to include in the response, used for paging. func (c *UrlchannelsListCall) MaxResults(maxResults int64) *UrlchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through URL channels. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through URL channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *UrlchannelsListCall) PageToken(pageToken string) *UrlchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UrlchannelsListCall) Fields(s ...googleapi.Field) *UrlchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UrlchannelsListCall) IfNoneMatch(entityTag string) *UrlchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UrlchannelsListCall) Context(ctx context.Context) *UrlchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UrlchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4002,12 +3065,7 @@ func (c *UrlchannelsListCall) Header() http.Header { } func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4024,16 +3082,14 @@ func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.urlchannels.list" call. -// Exactly one of *UrlChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UrlChannels.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UrlChannels.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4041,17 +3097,17 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UrlChannels{ ServerResponse: googleapi.ServerResponse{ @@ -4064,44 +3120,6 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er return nil, err } return ret, nil - // { - // "description": "List all URL channels in the specified ad client for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.urlchannels.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list URL channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of URL channels to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/urlchannels", - // "response": { - // "$ref": "UrlChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -4109,7 +3127,7 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er // The provided context supersedes any context provided to the Context method. func (c *UrlchannelsListCall) Pages(ctx context.Context, f func(*UrlChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/adexchangeseller/v1/adexchangeseller-gen.go b/adexchangeseller/v1/adexchangeseller-gen.go index 13a34d35c9c..955ca19c363 100644 --- a/adexchangeseller/v1/adexchangeseller-gen.go +++ b/adexchangeseller/v1/adexchangeseller-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/ad-exchange/seller-rest/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // adexchangesellerService, err := adexchangeseller.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // adexchangesellerService, err := adexchangeseller.NewService(ctx, option.WithScopes(adexchangeseller.AdexchangeSellerReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // adexchangesellerService, err := adexchangeseller.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // adexchangesellerService, err := adexchangeseller.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package adexchangeseller // import "google.golang.org/api/adexchangeseller/v1" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "adexchangeseller:v1" const apiName = "adexchangeseller" const apiVersion = "v1" const basePath = "https://www.googleapis.com/adexchangeseller/v1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/adexchangeseller/v1/" // OAuth2 scopes used by this API. const ( @@ -89,12 +108,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -234,228 +256,171 @@ type UrlchannelsService struct { type AdClient struct { // ArcOptIn: Whether this ad client is opted in to ARC. ArcOptIn bool `json:"arcOptIn,omitempty"` - // Id: Unique identifier of this ad client. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#adClient. + // Kind: Kind of resource this is, in this case adexchangeseller#adClient. Kind string `json:"kind,omitempty"` - // ProductCode: This ad client's product code, which corresponds to the // PRODUCT_CODE report dimension. ProductCode string `json:"productCode,omitempty"` - // SupportsReporting: Whether this ad client supports being reported on. SupportsReporting bool `json:"supportsReporting,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArcOptIn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArcOptIn") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArcOptIn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdClient) MarshalJSON() ([]byte, error) { +func (s AdClient) MarshalJSON() ([]byte, error) { type NoMethod AdClient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdClients struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The ad clients returned in this list response. Items []*AdClient `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adexchangeseller#adClients. Kind string `json:"kind,omitempty"` - // NextPageToken: Continuation token used to page through ad clients. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdClients) MarshalJSON() ([]byte, error) { +func (s AdClients) MarshalJSON() ([]byte, error) { type NoMethod AdClients - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdUnit struct { // Code: Identity code of this ad unit, not necessarily unique across ad // clients. Code string `json:"code,omitempty"` - - // Id: Unique identifier of this ad unit. This should be considered an - // opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this ad unit. This should be considered an opaque + // identifier; it is not safe to rely on it being in any particular format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adexchangeseller#adUnit. Kind string `json:"kind,omitempty"` - // Name: Name of this ad unit. Name string `json:"name,omitempty"` - // Status: Status of this ad unit. Possible values are: - // NEW: Indicates that the ad unit was created within the last seven - // days and does not yet have any activity associated with it. + // NEW: Indicates that the ad unit was created within the last seven days and + // does not yet have any activity associated with it. // - // ACTIVE: Indicates that there has been activity on this ad unit in the - // last seven days. + // ACTIVE: Indicates that there has been activity on this ad unit in the last + // seven days. // - // INACTIVE: Indicates that there has been no activity on this ad unit - // in the last seven days. + // INACTIVE: Indicates that there has been no activity on this ad unit in the + // last seven days. Status string `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnit) MarshalJSON() ([]byte, error) { +func (s AdUnit) MarshalJSON() ([]byte, error) { type NoMethod AdUnit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdUnits struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The ad units returned in this list response. Items []*AdUnit `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adexchangeseller#adUnits. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through ad units. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // NextPageToken: Continuation token used to page through ad units. To retrieve + // the next page of results, set the next request's "pageToken" value to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnits) MarshalJSON() ([]byte, error) { +func (s AdUnits) MarshalJSON() ([]byte, error) { type NoMethod AdUnits - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomChannel struct { - // Code: Code of this custom channel, not necessarily unique across ad - // clients. + // Code: Code of this custom channel, not necessarily unique across ad clients. Code string `json:"code,omitempty"` - - // Id: Unique identifier of this custom channel. This should be - // considered an opaque identifier; it is not safe to rely on it being - // in any particular format. + // Id: Unique identifier of this custom channel. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#customChannel. + // Kind: Kind of resource this is, in this case adexchangeseller#customChannel. Kind string `json:"kind,omitempty"` - // Name: Name of this custom channel. Name string `json:"name,omitempty"` - // TargetingInfo: The targeting information of this custom channel, if // activated. TargetingInfo *CustomChannelTargetingInfo `json:"targetingInfo,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannel) MarshalJSON() ([]byte, error) { +func (s CustomChannel) MarshalJSON() ([]byte, error) { type NoMethod CustomChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomChannelTargetingInfo: The targeting information of this custom @@ -463,341 +428,255 @@ func (s *CustomChannel) MarshalJSON() ([]byte, error) { type CustomChannelTargetingInfo struct { // AdsAppearOn: The name used to describe this channel externally. AdsAppearOn string `json:"adsAppearOn,omitempty"` - // Description: The external description of the channel. Description string `json:"description,omitempty"` - - // Location: The locations in which ads appear. (Only valid for content - // and mobile content ads). Acceptable values for content ads are: - // TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, - // MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, - // MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: - // TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. + // Location: The locations in which ads appear. (Only valid for content and + // mobile content ads). Acceptable values for content ads are: TOP_LEFT, + // TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, + // BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable + // values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. Location string `json:"location,omitempty"` - // SiteLanguage: The language of the sites ads will be displayed on. SiteLanguage string `json:"siteLanguage,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdsAppearOn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdsAppearOn") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdsAppearOn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) { +func (s CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) { type NoMethod CustomChannelTargetingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomChannels struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The custom channels returned in this list response. Items []*CustomChannel `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#customChannels. + // Kind: Kind of list this is, in this case adexchangeseller#customChannels. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through custom - // channels. To retrieve the next page of results, set the next - // request's "pageToken" value to this. + // NextPageToken: Continuation token used to page through custom channels. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannels) MarshalJSON() ([]byte, error) { +func (s CustomChannels) MarshalJSON() ([]byte, error) { type NoMethod CustomChannels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Report struct { - // Averages: The averages of the report. This is the same length as any - // other row in the report; cells corresponding to dimension columns are - // empty. + // Averages: The averages of the report. This is the same length as any other + // row in the report; cells corresponding to dimension columns are empty. Averages []string `json:"averages,omitempty"` - - // Headers: The header information of the columns requested in the - // report. This is a list of headers; one for each dimension in the - // request, followed by one for each metric in the request. + // Headers: The header information of the columns requested in the report. This + // is a list of headers; one for each dimension in the request, followed by one + // for each metric in the request. Headers []*ReportHeaders `json:"headers,omitempty"` - // Kind: Kind this is, in this case adexchangeseller#report. Kind string `json:"kind,omitempty"` - - // Rows: The output rows of the report. Each row is a list of cells; one - // for each dimension in the request, followed by one for each metric in - // the request. The dimension cells contain strings, and the metric - // cells contain numbers. + // Rows: The output rows of the report. Each row is a list of cells; one for + // each dimension in the request, followed by one for each metric in the + // request. The dimension cells contain strings, and the metric cells contain + // numbers. Rows [][]string `json:"rows,omitempty"` - - // TotalMatchedRows: The total number of rows matched by the report - // request. Fewer rows may be returned in the response due to being - // limited by the row count requested or the report row limit. + // TotalMatchedRows: The total number of rows matched by the report request. + // Fewer rows may be returned in the response due to being limited by the row + // count requested or the report row limit. TotalMatchedRows int64 `json:"totalMatchedRows,omitempty,string"` - - // Totals: The totals of the report. This is the same length as any - // other row in the report; cells corresponding to dimension columns are - // empty. + // Totals: The totals of the report. This is the same length as any other row + // in the report; cells corresponding to dimension columns are empty. Totals []string `json:"totals,omitempty"` - // Warnings: Any warnings associated with generation of the report. Warnings []string `json:"warnings,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Averages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Averages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Averages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Report) MarshalJSON() ([]byte, error) { +func (s Report) MarshalJSON() ([]byte, error) { type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReportHeaders struct { - // Currency: The currency of this column. Only present if the header - // type is METRIC_CURRENCY. + // Currency: The currency of this column. Only present if the header type is + // METRIC_CURRENCY. Currency string `json:"currency,omitempty"` - // Name: The name of the header. Name string `json:"name,omitempty"` - - // Type: The type of the header; one of DIMENSION, METRIC_TALLY, - // METRIC_RATIO, or METRIC_CURRENCY. + // Type: The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, + // or METRIC_CURRENCY. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Currency") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Currency") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Currency") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportHeaders) MarshalJSON() ([]byte, error) { +func (s ReportHeaders) MarshalJSON() ([]byte, error) { type NoMethod ReportHeaders - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedReport struct { // Id: Unique identifier of this saved report. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#savedReport. + // Kind: Kind of resource this is, in this case adexchangeseller#savedReport. Kind string `json:"kind,omitempty"` - // Name: This saved report's name. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedReport) MarshalJSON() ([]byte, error) { +func (s SavedReport) MarshalJSON() ([]byte, error) { type NoMethod SavedReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedReports struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The saved reports returned in this list response. Items []*SavedReport `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#savedReports. + // Kind: Kind of list this is, in this case adexchangeseller#savedReports. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through saved reports. - // To retrieve the next page of results, set the next request's - // "pageToken" value to this. + // NextPageToken: Continuation token used to page through saved reports. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedReports) MarshalJSON() ([]byte, error) { +func (s SavedReports) MarshalJSON() ([]byte, error) { type NoMethod SavedReports - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlChannel struct { - // Id: Unique identifier of this URL channel. This should be considered - // an opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this URL channel. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#urlChannel. + // Kind: Kind of resource this is, in this case adexchangeseller#urlChannel. Kind string `json:"kind,omitempty"` - - // UrlPattern: URL Pattern of this URL channel. Does not include - // "http://" or "https://". Example: www.example.com/home + // UrlPattern: URL Pattern of this URL channel. Does not include "http://" or + // "https://". Example: www.example.com/home UrlPattern string `json:"urlPattern,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlChannel) MarshalJSON() ([]byte, error) { +func (s UrlChannel) MarshalJSON() ([]byte, error) { type NoMethod UrlChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlChannels struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The URL channels returned in this list response. Items []*UrlChannel `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#urlChannels. + // Kind: Kind of list this is, in this case adexchangeseller#urlChannels. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through URL channels. - // To retrieve the next page of results, set the next request's - // "pageToken" value to this. + // NextPageToken: Continuation token used to page through URL channels. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlChannels) MarshalJSON() ([]byte, error) { +func (s UrlChannels) MarshalJSON() ([]byte, error) { type NoMethod UrlChannels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "adexchangeseller.adclients.list": - type AdclientsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -812,50 +691,45 @@ func (r *AdclientsService) List() *AdclientsListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad clients to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad clients to include in the response, used for paging. func (c *AdclientsListCall) MaxResults(maxResults int64) *AdclientsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad clients. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad clients. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AdclientsListCall) PageToken(pageToken string) *AdclientsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdclientsListCall) Fields(s ...googleapi.Field) *AdclientsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdclientsListCall) IfNoneMatch(entityTag string) *AdclientsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdclientsListCall) Context(ctx context.Context) *AdclientsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdclientsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -864,12 +738,7 @@ func (c *AdclientsListCall) Header() http.Header { } func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -883,16 +752,14 @@ func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.adclients.list" call. -// Exactly one of *AdClients or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdClients.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdClients.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -900,17 +767,17 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdClients{ ServerResponse: googleapi.ServerResponse{ @@ -923,35 +790,6 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) return nil, err } return ret, nil - // { - // "description": "List all ad clients in this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.adclients.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of ad clients to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients", - // "response": { - // "$ref": "AdClients" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -959,7 +797,7 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) // The provided context supersedes any context provided to the Context method. func (c *AdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -975,8 +813,6 @@ func (c *AdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) } } -// method id "adexchangeseller.adunits.get": - type AdunitsGetCall struct { s *Service adClientId string @@ -988,6 +824,9 @@ type AdunitsGetCall struct { } // Get: Gets the specified ad unit in the specified ad client. +// +// - adClientId: Ad client for which to get the ad unit. +// - adUnitId: Ad unit to retrieve. func (r *AdunitsService) Get(adClientId string, adUnitId string) *AdunitsGetCall { c := &AdunitsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -996,33 +835,29 @@ func (r *AdunitsService) Get(adClientId string, adUnitId string) *AdunitsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsGetCall) Fields(s ...googleapi.Field) *AdunitsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsGetCall) IfNoneMatch(entityTag string) *AdunitsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsGetCall) Context(ctx context.Context) *AdunitsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1031,12 +866,7 @@ func (c *AdunitsGetCall) Header() http.Header { } func (c *AdunitsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1054,16 +884,14 @@ func (c *AdunitsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.adunits.get" call. -// Exactly one of *AdUnit or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnit.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnit.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1071,17 +899,17 @@ func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnit{ ServerResponse: googleapi.ServerResponse{ @@ -1094,41 +922,7 @@ func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { return nil, err } return ret, nil - // { - // "description": "Gets the specified ad unit in the specified ad client.", - // "httpMethod": "GET", - // "id": "adexchangeseller.adunits.get", - // "parameterOrder": [ - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to get the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits/{adUnitId}", - // "response": { - // "$ref": "AdUnit" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.adunits.list": +} type AdunitsListCall struct { s *Service @@ -1139,65 +933,62 @@ type AdunitsListCall struct { header_ http.Header } -// List: List all ad units in the specified ad client for this Ad -// Exchange account. +// List: List all ad units in the specified ad client for this Ad Exchange +// account. +// +// - adClientId: Ad client for which to list ad units. func (r *AdunitsService) List(adClientId string) *AdunitsListCall { c := &AdunitsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *AdunitsListCall) IncludeInactive(includeInactive bool) *AdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *AdunitsListCall) MaxResults(maxResults int64) *AdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AdunitsListCall) PageToken(pageToken string) *AdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsListCall) Fields(s ...googleapi.Field) *AdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsListCall) IfNoneMatch(entityTag string) *AdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsListCall) Context(ctx context.Context) *AdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1206,12 +997,7 @@ func (c *AdunitsListCall) Header() http.Header { } func (c *AdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1228,16 +1014,14 @@ func (c *AdunitsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1245,17 +1029,17 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -1268,49 +1052,6 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified ad client for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.adunits.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1318,7 +1059,7 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { // The provided context supersedes any context provided to the Context method. func (c *AdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1334,8 +1075,6 @@ func (c *AdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) err } } -// method id "adexchangeseller.adunits.customchannels.list": - type AdunitsCustomchannelsListCall struct { s *Service adClientId string @@ -1346,8 +1085,10 @@ type AdunitsCustomchannelsListCall struct { header_ http.Header } -// List: List all custom channels which the specified ad unit belongs -// to. +// List: List all custom channels which the specified ad unit belongs to. +// +// - adClientId: Ad client which contains the ad unit. +// - adUnitId: Ad unit for which to list custom channels. func (r *AdunitsCustomchannelsService) List(adClientId string, adUnitId string) *AdunitsCustomchannelsListCall { c := &AdunitsCustomchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -1355,51 +1096,45 @@ func (r *AdunitsCustomchannelsService) List(adClientId string, adUnitId string) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *AdunitsCustomchannelsListCall) MaxResults(maxResults int64) *AdunitsCustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AdunitsCustomchannelsListCall) PageToken(pageToken string) *AdunitsCustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsCustomchannelsListCall) Fields(s ...googleapi.Field) *AdunitsCustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsCustomchannelsListCall) IfNoneMatch(entityTag string) *AdunitsCustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsCustomchannelsListCall) Context(ctx context.Context) *AdunitsCustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsCustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1408,12 +1143,7 @@ func (c *AdunitsCustomchannelsListCall) Header() http.Header { } func (c *AdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1431,16 +1161,14 @@ func (c *AdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.adunits.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1448,17 +1176,17 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -1471,51 +1199,6 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo return nil, err } return ret, nil - // { - // "description": "List all custom channels which the specified ad unit belongs to.", - // "httpMethod": "GET", - // "id": "adexchangeseller.adunits.customchannels.list", - // "parameterOrder": [ - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1523,7 +1206,7 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo // The provided context supersedes any context provided to the Context method. func (c *AdunitsCustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1539,8 +1222,6 @@ func (c *AdunitsCustomchannelsListCall) Pages(ctx context.Context, f func(*Custo } } -// method id "adexchangeseller.customchannels.get": - type CustomchannelsGetCall struct { s *Service adClientId string @@ -1552,6 +1233,9 @@ type CustomchannelsGetCall struct { } // Get: Get the specified custom channel from the specified ad client. +// +// - adClientId: Ad client which contains the custom channel. +// - customChannelId: Custom channel to retrieve. func (r *CustomchannelsService) Get(adClientId string, customChannelId string) *CustomchannelsGetCall { c := &CustomchannelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -1560,33 +1244,29 @@ func (r *CustomchannelsService) Get(adClientId string, customChannelId string) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsGetCall) Fields(s ...googleapi.Field) *CustomchannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsGetCall) IfNoneMatch(entityTag string) *CustomchannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsGetCall) Context(ctx context.Context) *CustomchannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1595,12 +1275,7 @@ func (c *CustomchannelsGetCall) Header() http.Header { } func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1618,16 +1293,14 @@ func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.customchannels.get" call. -// Exactly one of *CustomChannel or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannel.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannel.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1635,17 +1308,17 @@ func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannel{ ServerResponse: googleapi.ServerResponse{ @@ -1658,41 +1331,7 @@ func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel return nil, err } return ret, nil - // { - // "description": "Get the specified custom channel from the specified ad client.", - // "httpMethod": "GET", - // "id": "adexchangeseller.customchannels.get", - // "parameterOrder": [ - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels/{customChannelId}", - // "response": { - // "$ref": "CustomChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.customchannels.list": +} type CustomchannelsListCall struct { s *Service @@ -1705,57 +1344,53 @@ type CustomchannelsListCall struct { // List: List all custom channels in the specified ad client for this Ad // Exchange account. +// +// - adClientId: Ad client for which to list custom channels. func (r *CustomchannelsService) List(adClientId string) *CustomchannelsListCall { c := &CustomchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *CustomchannelsListCall) MaxResults(maxResults int64) *CustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *CustomchannelsListCall) PageToken(pageToken string) *CustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsListCall) Fields(s ...googleapi.Field) *CustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsListCall) IfNoneMatch(entityTag string) *CustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsListCall) Context(ctx context.Context) *CustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1764,12 +1399,7 @@ func (c *CustomchannelsListCall) Header() http.Header { } func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1786,16 +1416,14 @@ func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1803,17 +1431,17 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -1826,44 +1454,6 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne return nil, err } return ret, nil - // { - // "description": "List all custom channels in the specified ad client for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.customchannels.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1871,7 +1461,7 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne // The provided context supersedes any context provided to the Context method. func (c *CustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1887,8 +1477,6 @@ func (c *CustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChanne } } -// method id "adexchangeseller.customchannels.adunits.list": - type CustomchannelsAdunitsListCall struct { s *Service adClientId string @@ -1900,6 +1488,9 @@ type CustomchannelsAdunitsListCall struct { } // List: List all ad units in the specified custom channel. +// +// - adClientId: Ad client which contains the custom channel. +// - customChannelId: Custom channel for which to list ad units. func (r *CustomchannelsAdunitsService) List(adClientId string, customChannelId string) *CustomchannelsAdunitsListCall { c := &CustomchannelsAdunitsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -1907,57 +1498,52 @@ func (r *CustomchannelsAdunitsService) List(adClientId string, customChannelId s return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *CustomchannelsAdunitsListCall) IncludeInactive(includeInactive bool) *CustomchannelsAdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *CustomchannelsAdunitsListCall) MaxResults(maxResults int64) *CustomchannelsAdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *CustomchannelsAdunitsListCall) PageToken(pageToken string) *CustomchannelsAdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsAdunitsListCall) Fields(s ...googleapi.Field) *CustomchannelsAdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsAdunitsListCall) IfNoneMatch(entityTag string) *CustomchannelsAdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsAdunitsListCall) Context(ctx context.Context) *CustomchannelsAdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsAdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1966,12 +1552,7 @@ func (c *CustomchannelsAdunitsListCall) Header() http.Header { } func (c *CustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1989,16 +1570,14 @@ func (c *CustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.customchannels.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2006,17 +1585,17 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -2029,56 +1608,6 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified custom channel.", - // "httpMethod": "GET", - // "id": "adexchangeseller.customchannels.adunits.list", - // "parameterOrder": [ - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2086,7 +1615,7 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni // The provided context supersedes any context provided to the Context method. func (c *CustomchannelsAdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2102,8 +1631,6 @@ func (c *CustomchannelsAdunitsListCall) Pages(ctx context.Context, f func(*AdUni } } -// method id "adexchangeseller.reports.generate": - type ReportsGenerateCall struct { s *Service urlParams_ gensupport.URLParams @@ -2112,9 +1639,14 @@ type ReportsGenerateCall struct { header_ http.Header } -// Generate: Generate an Ad Exchange report based on the report request -// sent in the query parameters. Returns the result as JSON; to retrieve -// output in CSV format specify "alt=csv" as a query parameter. +// Generate: Generate an Ad Exchange report based on the report request sent in +// the query parameters. Returns the result as JSON; to retrieve output in CSV +// format specify "alt=csv" as a query parameter. +// +// - endDate: End of the date range to report on in "YYYY-MM-DD" format, +// inclusive. +// - startDate: Start of the date range to report on in "YYYY-MM-DD" format, +// inclusive. func (r *ReportsService) Generate(startDate string, endDate string) *ReportsGenerateCall { c := &ReportsGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("startDate", startDate) @@ -2122,8 +1654,8 @@ func (r *ReportsService) Generate(startDate string, endDate string) *ReportsGene return c } -// Dimension sets the optional parameter "dimension": Dimensions to base -// the report on. +// Dimension sets the optional parameter "dimension": Dimensions to base the +// report on. func (c *ReportsGenerateCall) Dimension(dimension ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("dimension", append([]string{}, dimension...)) return c @@ -2136,72 +1668,68 @@ func (c *ReportsGenerateCall) Filter(filter ...string) *ReportsGenerateCall { return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *ReportsGenerateCall) Locale(locale string) *ReportsGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *ReportsGenerateCall) MaxResults(maxResults int64) *ReportsGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Metric sets the optional parameter "metric": Numeric columns to -// include in the report. +// Metric sets the optional parameter "metric": Numeric columns to include in +// the report. func (c *ReportsGenerateCall) Metric(metric ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("metric", append([]string{}, metric...)) return c } -// Sort sets the optional parameter "sort": The name of a dimension or -// metric to sort the resulting report on, optionally prefixed with "+" -// to sort ascending or "-" to sort descending. If no prefix is -// specified, the column is sorted ascending. +// Sort sets the optional parameter "sort": The name of a dimension or metric +// to sort the resulting report on, optionally prefixed with "+" to sort +// ascending or "-" to sort descending. If no prefix is specified, the column +// is sorted ascending. func (c *ReportsGenerateCall) Sort(sort ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("sort", append([]string{}, sort...)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *ReportsGenerateCall) StartIndex(startIndex int64) *ReportsGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsGenerateCall) Fields(s ...googleapi.Field) *ReportsGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsGenerateCall) IfNoneMatch(entityTag string) *ReportsGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ReportsGenerateCall) Context(ctx context.Context) *ReportsGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2210,12 +1738,7 @@ func (c *ReportsGenerateCall) Header() http.Header { } func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2229,7 +1752,7 @@ func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -2241,20 +1764,18 @@ func (c *ReportsGenerateCall) Download(opts ...googleapi.CallOption) (*http.Resp if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "adexchangeseller.reports.generate" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2262,17 +1783,17 @@ func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Report, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -2285,94 +1806,7 @@ func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Report, error) return nil, err } return ret, nil - // { - // "description": "Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.", - // "httpMethod": "GET", - // "id": "adexchangeseller.reports.generate", - // "parameterOrder": [ - // "startDate", - // "endDate" - // ], - // "parameters": { - // "dimension": { - // "description": "Dimensions to base the report on.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "endDate": { - // "description": "End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Filters to be run on the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+(==|=@).+", - // "repeated": true, - // "type": "string" - // }, - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "uint32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "metric": { - // "description": "Numeric columns to include in the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "sort": { - // "description": "The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort descending. If no prefix is specified, the column is sorted ascending.", - // "location": "query", - // "pattern": "(\\+|-)?[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "startDate": { - // "description": "Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "uint32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "reports", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "adexchangeseller.reports.saved.generate": +} type ReportsSavedGenerateCall struct { s *Service @@ -2383,64 +1817,62 @@ type ReportsSavedGenerateCall struct { header_ http.Header } -// Generate: Generate an Ad Exchange report based on the saved report ID -// sent in the query parameters. +// Generate: Generate an Ad Exchange report based on the saved report ID sent +// in the query parameters. +// +// - savedReportId: The saved report to retrieve. func (r *ReportsSavedService) Generate(savedReportId string) *ReportsSavedGenerateCall { c := &ReportsSavedGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.savedReportId = savedReportId return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *ReportsSavedGenerateCall) Locale(locale string) *ReportsSavedGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *ReportsSavedGenerateCall) MaxResults(maxResults int64) *ReportsSavedGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *ReportsSavedGenerateCall) StartIndex(startIndex int64) *ReportsSavedGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsSavedGenerateCall) Fields(s ...googleapi.Field) *ReportsSavedGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsSavedGenerateCall) IfNoneMatch(entityTag string) *ReportsSavedGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsSavedGenerateCall) Context(ctx context.Context) *ReportsSavedGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsSavedGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2449,12 +1881,7 @@ func (c *ReportsSavedGenerateCall) Header() http.Header { } func (c *ReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2471,16 +1898,14 @@ func (c *ReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "savedReportId": c.savedReportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.reports.saved.generate" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2488,17 +1913,17 @@ func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Report, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -2511,56 +1936,7 @@ func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Report, er return nil, err } return ret, nil - // { - // "description": "Generate an Ad Exchange report based on the saved report ID sent in the query parameters.", - // "httpMethod": "GET", - // "id": "adexchangeseller.reports.saved.generate", - // "parameterOrder": [ - // "savedReportId" - // ], - // "parameters": { - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "savedReportId": { - // "description": "The saved report to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "reports/{savedReportId}", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.reports.saved.list": +} type ReportsSavedListCall struct { s *Service @@ -2576,50 +1952,45 @@ func (r *ReportsSavedService) List() *ReportsSavedListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved reports to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved reports to include in the response, used for paging. func (c *ReportsSavedListCall) MaxResults(maxResults int64) *ReportsSavedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved reports. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved reports. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *ReportsSavedListCall) PageToken(pageToken string) *ReportsSavedListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsSavedListCall) Fields(s ...googleapi.Field) *ReportsSavedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsSavedListCall) IfNoneMatch(entityTag string) *ReportsSavedListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsSavedListCall) Context(ctx context.Context) *ReportsSavedListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsSavedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2628,12 +1999,7 @@ func (c *ReportsSavedListCall) Header() http.Header { } func (c *ReportsSavedListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2647,16 +2013,14 @@ func (c *ReportsSavedListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.reports.saved.list" call. -// Exactly one of *SavedReports or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedReports.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedReports.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2664,17 +2028,17 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedReports{ ServerResponse: googleapi.ServerResponse{ @@ -2687,35 +2051,6 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, return nil, err } return ret, nil - // { - // "description": "List all saved reports in this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.reports.saved.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of saved reports to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "reports/saved", - // "response": { - // "$ref": "SavedReports" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2723,7 +2058,7 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, // The provided context supersedes any context provided to the Context method. func (c *ReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2739,8 +2074,6 @@ func (c *ReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) } } -// method id "adexchangeseller.urlchannels.list": - type UrlchannelsListCall struct { s *Service adClientId string @@ -2750,58 +2083,55 @@ type UrlchannelsListCall struct { header_ http.Header } -// List: List all URL channels in the specified ad client for this Ad -// Exchange account. +// List: List all URL channels in the specified ad client for this Ad Exchange +// account. +// +// - adClientId: Ad client for which to list URL channels. func (r *UrlchannelsService) List(adClientId string) *UrlchannelsListCall { c := &UrlchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of URL channels to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// URL channels to include in the response, used for paging. func (c *UrlchannelsListCall) MaxResults(maxResults int64) *UrlchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through URL channels. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through URL channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *UrlchannelsListCall) PageToken(pageToken string) *UrlchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UrlchannelsListCall) Fields(s ...googleapi.Field) *UrlchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UrlchannelsListCall) IfNoneMatch(entityTag string) *UrlchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UrlchannelsListCall) Context(ctx context.Context) *UrlchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UrlchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2810,12 +2140,7 @@ func (c *UrlchannelsListCall) Header() http.Header { } func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2832,16 +2157,14 @@ func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.urlchannels.list" call. -// Exactly one of *UrlChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UrlChannels.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UrlChannels.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2849,17 +2172,17 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UrlChannels{ ServerResponse: googleapi.ServerResponse{ @@ -2872,44 +2195,6 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er return nil, err } return ret, nil - // { - // "description": "List all URL channels in the specified ad client for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.urlchannels.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list URL channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of URL channels to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/urlchannels", - // "response": { - // "$ref": "UrlChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2917,7 +2202,7 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er // The provided context supersedes any context provided to the Context method. func (c *UrlchannelsListCall) Pages(ctx context.Context, f func(*UrlChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/adexchangeseller/v2.0/adexchangeseller-gen.go b/adexchangeseller/v2.0/adexchangeseller-gen.go index 34cc1bfff2c..410d4e53cf1 100644 --- a/adexchangeseller/v2.0/adexchangeseller-gen.go +++ b/adexchangeseller/v2.0/adexchangeseller-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/ad-exchange/seller-rest/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // adexchangesellerService, err := adexchangeseller.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // adexchangesellerService, err := adexchangeseller.NewService(ctx, option.WithScopes(adexchangeseller.AdexchangeSellerReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // adexchangesellerService, err := adexchangeseller.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // adexchangesellerService, err := adexchangeseller.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package adexchangeseller // import "google.golang.org/api/adexchangeseller/v2.0" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "adexchangeseller:v2.0" const apiName = "adexchangeseller" const apiVersion = "v2.0" const basePath = "https://www.googleapis.com/adexchangeseller/v2.0/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/adexchangeseller/v2.0/" // OAuth2 scopes used by this API. const ( @@ -89,12 +108,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -270,291 +292,215 @@ type AccountsUrlchannelsService struct { type Account struct { // Id: Unique identifier of this account. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#account. + // Kind: Kind of resource this is, in this case adexchangeseller#account. Kind string `json:"kind,omitempty"` - // Name: Name of this account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Accounts struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The accounts returned in this list response. Items []*Account `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adexchangeseller#accounts. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through accounts. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // NextPageToken: Continuation token used to page through accounts. To retrieve + // the next page of results, set the next request's "pageToken" value to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Accounts) MarshalJSON() ([]byte, error) { +func (s Accounts) MarshalJSON() ([]byte, error) { type NoMethod Accounts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdClient struct { // ArcOptIn: Whether this ad client is opted in to ARC. ArcOptIn bool `json:"arcOptIn,omitempty"` - // Id: Unique identifier of this ad client. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#adClient. + // Kind: Kind of resource this is, in this case adexchangeseller#adClient. Kind string `json:"kind,omitempty"` - // ProductCode: This ad client's product code, which corresponds to the // PRODUCT_CODE report dimension. ProductCode string `json:"productCode,omitempty"` - // SupportsReporting: Whether this ad client supports being reported on. SupportsReporting bool `json:"supportsReporting,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArcOptIn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArcOptIn") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArcOptIn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdClient) MarshalJSON() ([]byte, error) { +func (s AdClient) MarshalJSON() ([]byte, error) { type NoMethod AdClient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdClients struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The ad clients returned in this list response. Items []*AdClient `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adexchangeseller#adClients. Kind string `json:"kind,omitempty"` - // NextPageToken: Continuation token used to page through ad clients. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdClients) MarshalJSON() ([]byte, error) { +func (s AdClients) MarshalJSON() ([]byte, error) { type NoMethod AdClients - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Alert struct { - // Id: Unique identifier of this alert. This should be considered an - // opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this alert. This should be considered an opaque + // identifier; it is not safe to rely on it being in any particular format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adexchangeseller#alert. Kind string `json:"kind,omitempty"` - // Message: The localized alert message. Message string `json:"message,omitempty"` - - // Severity: Severity of this alert. Possible values: INFO, WARNING, - // SEVERE. + // Severity: Severity of this alert. Possible values: INFO, WARNING, SEVERE. Severity string `json:"severity,omitempty"` - - // Type: Type of this alert. Possible values: SELF_HOLD, - // MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, - // PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, - // API_HOLD. + // Type: Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, + // ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, + // GRAYLISTED_PUBLISHER, API_HOLD. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Alert) MarshalJSON() ([]byte, error) { +func (s Alert) MarshalJSON() ([]byte, error) { type NoMethod Alert - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Alerts struct { // Items: The alerts returned in this list response. Items []*Alert `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adexchangeseller#alerts. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Alerts) MarshalJSON() ([]byte, error) { +func (s Alerts) MarshalJSON() ([]byte, error) { type NoMethod Alerts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomChannel struct { - // Code: Code of this custom channel, not necessarily unique across ad - // clients. + // Code: Code of this custom channel, not necessarily unique across ad clients. Code string `json:"code,omitempty"` - - // Id: Unique identifier of this custom channel. This should be - // considered an opaque identifier; it is not safe to rely on it being - // in any particular format. + // Id: Unique identifier of this custom channel. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#customChannel. + // Kind: Kind of resource this is, in this case adexchangeseller#customChannel. Kind string `json:"kind,omitempty"` - // Name: Name of this custom channel. Name string `json:"name,omitempty"` - // TargetingInfo: The targeting information of this custom channel, if // activated. TargetingInfo *CustomChannelTargetingInfo `json:"targetingInfo,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannel) MarshalJSON() ([]byte, error) { +func (s CustomChannel) MarshalJSON() ([]byte, error) { type NoMethod CustomChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomChannelTargetingInfo: The targeting information of this custom @@ -562,532 +508,396 @@ func (s *CustomChannel) MarshalJSON() ([]byte, error) { type CustomChannelTargetingInfo struct { // AdsAppearOn: The name used to describe this channel externally. AdsAppearOn string `json:"adsAppearOn,omitempty"` - // Description: The external description of the channel. Description string `json:"description,omitempty"` - - // Location: The locations in which ads appear. (Only valid for content - // and mobile content ads). Acceptable values for content ads are: - // TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, - // MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, - // MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: - // TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. + // Location: The locations in which ads appear. (Only valid for content and + // mobile content ads). Acceptable values for content ads are: TOP_LEFT, + // TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, + // BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable + // values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. Location string `json:"location,omitempty"` - // SiteLanguage: The language of the sites ads will be displayed on. SiteLanguage string `json:"siteLanguage,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdsAppearOn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdsAppearOn") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdsAppearOn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) { +func (s CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) { type NoMethod CustomChannelTargetingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomChannels struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The custom channels returned in this list response. Items []*CustomChannel `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#customChannels. + // Kind: Kind of list this is, in this case adexchangeseller#customChannels. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through custom - // channels. To retrieve the next page of results, set the next - // request's "pageToken" value to this. + // NextPageToken: Continuation token used to page through custom channels. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannels) MarshalJSON() ([]byte, error) { +func (s CustomChannels) MarshalJSON() ([]byte, error) { type NoMethod CustomChannels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Metadata struct { Items []*ReportingMetadataEntry `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adexchangeseller#metadata. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metadata) MarshalJSON() ([]byte, error) { +func (s Metadata) MarshalJSON() ([]byte, error) { type NoMethod Metadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PreferredDeal struct { // AdvertiserName: The name of the advertiser this deal is for. AdvertiserName string `json:"advertiserName,omitempty"` - // BuyerNetworkName: The name of the buyer network this deal is for. BuyerNetworkName string `json:"buyerNetworkName,omitempty"` - - // CurrencyCode: The currency code that applies to the fixed_cpm value. - // If not set then assumed to be USD. + // CurrencyCode: The currency code that applies to the fixed_cpm value. If not + // set then assumed to be USD. CurrencyCode string `json:"currencyCode,omitempty"` - - // EndTime: Time when this deal stops being active in seconds since the - // epoch (GMT). If not set then this deal is valid until manually - // disabled by the publisher. + // EndTime: Time when this deal stops being active in seconds since the epoch + // (GMT). If not set then this deal is valid until manually disabled by the + // publisher. EndTime uint64 `json:"endTime,omitempty,string"` - - // FixedCpm: The fixed price for this preferred deal. In cpm micros of - // currency according to currencyCode. If set, then this preferred deal - // is eligible for the fixed price tier of buying (highest priority, pay - // exactly the configured fixed price). + // FixedCpm: The fixed price for this preferred deal. In cpm micros of currency + // according to currencyCode. If set, then this preferred deal is eligible for + // the fixed price tier of buying (highest priority, pay exactly the configured + // fixed price). FixedCpm int64 `json:"fixedCpm,omitempty,string"` - // Id: Unique identifier of this preferred deal. Id int64 `json:"id,omitempty,string"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#preferredDeal. + // Kind: Kind of resource this is, in this case adexchangeseller#preferredDeal. Kind string `json:"kind,omitempty"` - - // StartTime: Time when this deal becomes active in seconds since the - // epoch (GMT). If not set then this deal is active immediately upon - // creation. + // StartTime: Time when this deal becomes active in seconds since the epoch + // (GMT). If not set then this deal is active immediately upon creation. StartTime uint64 `json:"startTime,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PreferredDeal) MarshalJSON() ([]byte, error) { +func (s PreferredDeal) MarshalJSON() ([]byte, error) { type NoMethod PreferredDeal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PreferredDeals struct { // Items: The preferred deals returned in this list response. Items []*PreferredDeal `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#preferredDeals. + // Kind: Kind of list this is, in this case adexchangeseller#preferredDeals. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PreferredDeals) MarshalJSON() ([]byte, error) { +func (s PreferredDeals) MarshalJSON() ([]byte, error) { type NoMethod PreferredDeals - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Report struct { - // Averages: The averages of the report. This is the same length as any - // other row in the report; cells corresponding to dimension columns are - // empty. + // Averages: The averages of the report. This is the same length as any other + // row in the report; cells corresponding to dimension columns are empty. Averages []string `json:"averages,omitempty"` - - // Headers: The header information of the columns requested in the - // report. This is a list of headers; one for each dimension in the - // request, followed by one for each metric in the request. + // Headers: The header information of the columns requested in the report. This + // is a list of headers; one for each dimension in the request, followed by one + // for each metric in the request. Headers []*ReportHeaders `json:"headers,omitempty"` - // Kind: Kind this is, in this case adexchangeseller#report. Kind string `json:"kind,omitempty"` - - // Rows: The output rows of the report. Each row is a list of cells; one - // for each dimension in the request, followed by one for each metric in - // the request. The dimension cells contain strings, and the metric - // cells contain numbers. + // Rows: The output rows of the report. Each row is a list of cells; one for + // each dimension in the request, followed by one for each metric in the + // request. The dimension cells contain strings, and the metric cells contain + // numbers. Rows [][]string `json:"rows,omitempty"` - - // TotalMatchedRows: The total number of rows matched by the report - // request. Fewer rows may be returned in the response due to being - // limited by the row count requested or the report row limit. + // TotalMatchedRows: The total number of rows matched by the report request. + // Fewer rows may be returned in the response due to being limited by the row + // count requested or the report row limit. TotalMatchedRows int64 `json:"totalMatchedRows,omitempty,string"` - - // Totals: The totals of the report. This is the same length as any - // other row in the report; cells corresponding to dimension columns are - // empty. + // Totals: The totals of the report. This is the same length as any other row + // in the report; cells corresponding to dimension columns are empty. Totals []string `json:"totals,omitempty"` - // Warnings: Any warnings associated with generation of the report. Warnings []string `json:"warnings,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Averages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Averages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Averages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Report) MarshalJSON() ([]byte, error) { +func (s Report) MarshalJSON() ([]byte, error) { type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReportHeaders struct { - // Currency: The currency of this column. Only present if the header - // type is METRIC_CURRENCY. + // Currency: The currency of this column. Only present if the header type is + // METRIC_CURRENCY. Currency string `json:"currency,omitempty"` - // Name: The name of the header. Name string `json:"name,omitempty"` - - // Type: The type of the header; one of DIMENSION, METRIC_TALLY, - // METRIC_RATIO, or METRIC_CURRENCY. + // Type: The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, + // or METRIC_CURRENCY. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Currency") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Currency") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Currency") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportHeaders) MarshalJSON() ([]byte, error) { +func (s ReportHeaders) MarshalJSON() ([]byte, error) { type NoMethod ReportHeaders - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReportingMetadataEntry struct { - // CompatibleDimensions: For metrics this is a list of dimension IDs - // which the metric is compatible with, for dimensions it is a list of - // compatibility groups the dimension belongs to. + // CompatibleDimensions: For metrics this is a list of dimension IDs which the + // metric is compatible with, for dimensions it is a list of compatibility + // groups the dimension belongs to. CompatibleDimensions []string `json:"compatibleDimensions,omitempty"` - - // CompatibleMetrics: The names of the metrics the dimension or metric - // this reporting metadata entry describes is compatible with. + // CompatibleMetrics: The names of the metrics the dimension or metric this + // reporting metadata entry describes is compatible with. CompatibleMetrics []string `json:"compatibleMetrics,omitempty"` - - // Id: Unique identifier of this reporting metadata entry, corresponding - // to the name of the appropriate dimension or metric. + // Id: Unique identifier of this reporting metadata entry, corresponding to the + // name of the appropriate dimension or metric. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case // adexchangeseller#reportingMetadataEntry. Kind string `json:"kind,omitempty"` - - // RequiredDimensions: The names of the dimensions which the dimension - // or metric this reporting metadata entry describes requires to also be - // present in order for the report to be valid. Omitting these will not - // cause an error or warning, but may result in data which cannot be - // correctly interpreted. + // RequiredDimensions: The names of the dimensions which the dimension or + // metric this reporting metadata entry describes requires to also be present + // in order for the report to be valid. Omitting these will not cause an error + // or warning, but may result in data which cannot be correctly interpreted. RequiredDimensions []string `json:"requiredDimensions,omitempty"` - - // RequiredMetrics: The names of the metrics which the dimension or - // metric this reporting metadata entry describes requires to also be - // present in order for the report to be valid. Omitting these will not - // cause an error or warning, but may result in data which cannot be - // correctly interpreted. + // RequiredMetrics: The names of the metrics which the dimension or metric this + // reporting metadata entry describes requires to also be present in order for + // the report to be valid. Omitting these will not cause an error or warning, + // but may result in data which cannot be correctly interpreted. RequiredMetrics []string `json:"requiredMetrics,omitempty"` - - // SupportedProducts: The codes of the projects supported by the - // dimension or metric this reporting metadata entry describes. + // SupportedProducts: The codes of the projects supported by the dimension or + // metric this reporting metadata entry describes. SupportedProducts []string `json:"supportedProducts,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CompatibleDimensions") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CompatibleDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompatibleDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompatibleDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportingMetadataEntry) MarshalJSON() ([]byte, error) { +func (s ReportingMetadataEntry) MarshalJSON() ([]byte, error) { type NoMethod ReportingMetadataEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedReport struct { // Id: Unique identifier of this saved report. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#savedReport. + // Kind: Kind of resource this is, in this case adexchangeseller#savedReport. Kind string `json:"kind,omitempty"` - // Name: This saved report's name. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedReport) MarshalJSON() ([]byte, error) { +func (s SavedReport) MarshalJSON() ([]byte, error) { type NoMethod SavedReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedReports struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The saved reports returned in this list response. Items []*SavedReport `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#savedReports. + // Kind: Kind of list this is, in this case adexchangeseller#savedReports. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through saved reports. - // To retrieve the next page of results, set the next request's - // "pageToken" value to this. + // NextPageToken: Continuation token used to page through saved reports. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedReports) MarshalJSON() ([]byte, error) { +func (s SavedReports) MarshalJSON() ([]byte, error) { type NoMethod SavedReports - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlChannel struct { - // Id: Unique identifier of this URL channel. This should be considered - // an opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this URL channel. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adexchangeseller#urlChannel. + // Kind: Kind of resource this is, in this case adexchangeseller#urlChannel. Kind string `json:"kind,omitempty"` - - // UrlPattern: URL Pattern of this URL channel. Does not include - // "http://" or "https://". Example: www.example.com/home + // UrlPattern: URL Pattern of this URL channel. Does not include "http://" or + // "https://". Example: www.example.com/home UrlPattern string `json:"urlPattern,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlChannel) MarshalJSON() ([]byte, error) { +func (s UrlChannel) MarshalJSON() ([]byte, error) { type NoMethod UrlChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlChannels struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The URL channels returned in this list response. Items []*UrlChannel `json:"items,omitempty"` - - // Kind: Kind of list this is, in this case - // adexchangeseller#urlChannels. + // Kind: Kind of list this is, in this case adexchangeseller#urlChannels. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through URL channels. - // To retrieve the next page of results, set the next request's - // "pageToken" value to this. + // NextPageToken: Continuation token used to page through URL channels. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlChannels) MarshalJSON() ([]byte, error) { +func (s UrlChannels) MarshalJSON() ([]byte, error) { type NoMethod UrlChannels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "adexchangeseller.accounts.get": - type AccountsGetCall struct { s *Service accountId string @@ -1098,6 +908,9 @@ type AccountsGetCall struct { } // Get: Get information about the selected Ad Exchange account. +// +// - accountId: Account to get information about. Tip: 'myaccount' is a valid +// ID. func (r *AccountsService) Get(accountId string) *AccountsGetCall { c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -1105,33 +918,29 @@ func (r *AccountsService) Get(accountId string) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1140,12 +949,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1162,16 +966,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1179,17 +981,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -1202,34 +1004,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Get information about the selected Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.get", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to get information about. Tip: 'myaccount' is a valid ID.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.accounts.list": +} type AccountsListCall struct { s *Service @@ -1245,50 +1020,45 @@ func (r *AccountsService) List() *AccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of accounts to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// accounts to include in the response, used for paging. func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through accounts. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through accounts. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1297,12 +1067,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1316,16 +1081,14 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.list" call. -// Exactly one of *Accounts or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Accounts.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Accounts.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1333,17 +1096,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Accounts{ ServerResponse: googleapi.ServerResponse{ @@ -1356,35 +1119,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { return nil, err } return ret, nil - // { - // "description": "List all accounts available to this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of accounts to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts", - // "response": { - // "$ref": "Accounts" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1392,7 +1126,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { // The provided context supersedes any context provided to the Context method. func (c *AccountsListCall) Pages(ctx context.Context, f func(*Accounts) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1408,8 +1142,6 @@ func (c *AccountsListCall) Pages(ctx context.Context, f func(*Accounts) error) e } } -// method id "adexchangeseller.accounts.adclients.list": - type AccountsAdclientsListCall struct { s *Service accountId string @@ -1420,56 +1152,53 @@ type AccountsAdclientsListCall struct { } // List: List all ad clients in this Ad Exchange account. +// +// - accountId: Account to which the ad client belongs. func (r *AccountsAdclientsService) List(accountId string) *AccountsAdclientsListCall { c := &AccountsAdclientsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad clients to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad clients to include in the response, used for paging. func (c *AccountsAdclientsListCall) MaxResults(maxResults int64) *AccountsAdclientsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad clients. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad clients. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsAdclientsListCall) PageToken(pageToken string) *AccountsAdclientsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdclientsListCall) Fields(s ...googleapi.Field) *AccountsAdclientsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdclientsListCall) IfNoneMatch(entityTag string) *AccountsAdclientsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdclientsListCall) Context(ctx context.Context) *AccountsAdclientsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdclientsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1478,12 +1207,7 @@ func (c *AccountsAdclientsListCall) Header() http.Header { } func (c *AccountsAdclientsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1500,16 +1224,14 @@ func (c *AccountsAdclientsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.adclients.list" call. -// Exactly one of *AdClients or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdClients.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdClients.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1517,17 +1239,17 @@ func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdClients{ ServerResponse: googleapi.ServerResponse{ @@ -1540,44 +1262,6 @@ func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients return nil, err } return ret, nil - // { - // "description": "List all ad clients in this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.adclients.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of ad clients to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients", - // "response": { - // "$ref": "AdClients" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1585,7 +1269,7 @@ func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients // The provided context supersedes any context provided to the Context method. func (c *AccountsAdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1601,8 +1285,6 @@ func (c *AccountsAdclientsListCall) Pages(ctx context.Context, f func(*AdClients } } -// method id "adexchangeseller.accounts.alerts.list": - type AccountsAlertsListCall struct { s *Service accountId string @@ -1613,6 +1295,8 @@ type AccountsAlertsListCall struct { } // List: List the alerts for this Ad Exchange account. +// +// - accountId: Account owning the alerts. func (r *AccountsAlertsService) List(accountId string) *AccountsAlertsListCall { c := &AccountsAlertsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -1620,42 +1304,38 @@ func (r *AccountsAlertsService) List(accountId string) *AccountsAlertsListCall { } // Locale sets the optional parameter "locale": The locale to use for -// translating alert messages. The account locale will be used if this -// is not supplied. The AdSense default (English) will be used if the -// supplied locale is invalid or unsupported. +// translating alert messages. The account locale will be used if this is not +// supplied. The AdSense default (English) will be used if the supplied locale +// is invalid or unsupported. func (c *AccountsAlertsListCall) Locale(locale string) *AccountsAlertsListCall { c.urlParams_.Set("locale", locale) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAlertsListCall) Fields(s ...googleapi.Field) *AccountsAlertsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAlertsListCall) IfNoneMatch(entityTag string) *AccountsAlertsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAlertsListCall) Context(ctx context.Context) *AccountsAlertsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAlertsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1664,12 +1344,7 @@ func (c *AccountsAlertsListCall) Header() http.Header { } func (c *AccountsAlertsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1686,16 +1361,14 @@ func (c *AccountsAlertsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.alerts.list" call. -// Exactly one of *Alerts or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Alerts.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Alerts.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1703,17 +1376,17 @@ func (c *AccountsAlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Alerts{ ServerResponse: googleapi.ServerResponse{ @@ -1726,39 +1399,7 @@ func (c *AccountsAlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, erro return nil, err } return ret, nil - // { - // "description": "List the alerts for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.alerts.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account owning the alerts.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locale": { - // "description": "The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/alerts", - // "response": { - // "$ref": "Alerts" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.accounts.customchannels.get": +} type AccountsCustomchannelsGetCall struct { s *Service @@ -1772,6 +1413,10 @@ type AccountsCustomchannelsGetCall struct { } // Get: Get the specified custom channel from the specified ad client. +// +// - accountId: Account to which the ad client belongs. +// - adClientId: Ad client which contains the custom channel. +// - customChannelId: Custom channel to retrieve. func (r *AccountsCustomchannelsService) Get(accountId string, adClientId string, customChannelId string) *AccountsCustomchannelsGetCall { c := &AccountsCustomchannelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -1781,33 +1426,29 @@ func (r *AccountsCustomchannelsService) Get(accountId string, adClientId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsCustomchannelsGetCall) Fields(s ...googleapi.Field) *AccountsCustomchannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsCustomchannelsGetCall) IfNoneMatch(entityTag string) *AccountsCustomchannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsCustomchannelsGetCall) Context(ctx context.Context) *AccountsCustomchannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsCustomchannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1816,12 +1457,7 @@ func (c *AccountsCustomchannelsGetCall) Header() http.Header { } func (c *AccountsCustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1840,16 +1476,14 @@ func (c *AccountsCustomchannelsGetCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.customchannels.get" call. -// Exactly one of *CustomChannel or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannel.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannel.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsCustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1857,17 +1491,17 @@ func (c *AccountsCustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*Custo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannel{ ServerResponse: googleapi.ServerResponse{ @@ -1880,48 +1514,7 @@ func (c *AccountsCustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*Custo return nil, err } return ret, nil - // { - // "description": "Get the specified custom channel from the specified ad client.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.customchannels.get", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", - // "response": { - // "$ref": "CustomChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.accounts.customchannels.list": +} type AccountsCustomchannelsListCall struct { s *Service @@ -1935,6 +1528,9 @@ type AccountsCustomchannelsListCall struct { // List: List all custom channels in the specified ad client for this Ad // Exchange account. +// +// - accountId: Account to which the ad client belongs. +// - adClientId: Ad client for which to list custom channels. func (r *AccountsCustomchannelsService) List(accountId string, adClientId string) *AccountsCustomchannelsListCall { c := &AccountsCustomchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -1942,51 +1538,45 @@ func (r *AccountsCustomchannelsService) List(accountId string, adClientId string return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *AccountsCustomchannelsListCall) MaxResults(maxResults int64) *AccountsCustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsCustomchannelsListCall) PageToken(pageToken string) *AccountsCustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsCustomchannelsListCall) Fields(s ...googleapi.Field) *AccountsCustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsCustomchannelsListCall) IfNoneMatch(entityTag string) *AccountsCustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsCustomchannelsListCall) Context(ctx context.Context) *AccountsCustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsCustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1995,12 +1585,7 @@ func (c *AccountsCustomchannelsListCall) Header() http.Header { } func (c *AccountsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2018,16 +1603,14 @@ func (c *AccountsCustomchannelsListCall) doRequest(alt string) (*http.Response, "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2035,17 +1618,17 @@ func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Cust if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -2058,51 +1641,6 @@ func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Cust return nil, err } return ret, nil - // { - // "description": "List all custom channels in the specified ad client for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.customchannels.list", - // "parameterOrder": [ - // "accountId", - // "adClientId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2110,7 +1648,7 @@ func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Cust // The provided context supersedes any context provided to the Context method. func (c *AccountsCustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2126,8 +1664,6 @@ func (c *AccountsCustomchannelsListCall) Pages(ctx context.Context, f func(*Cust } } -// method id "adexchangeseller.accounts.metadata.dimensions.list": - type AccountsMetadataDimensionsListCall struct { s *Service accountId string @@ -2137,8 +1673,10 @@ type AccountsMetadataDimensionsListCall struct { header_ http.Header } -// List: List the metadata for the dimensions available to this -// AdExchange account. +// List: List the metadata for the dimensions available to this AdExchange +// account. +// +// - accountId: Account with visibility to the dimensions. func (r *AccountsMetadataDimensionsService) List(accountId string) *AccountsMetadataDimensionsListCall { c := &AccountsMetadataDimensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2146,33 +1684,29 @@ func (r *AccountsMetadataDimensionsService) List(accountId string) *AccountsMeta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsMetadataDimensionsListCall) Fields(s ...googleapi.Field) *AccountsMetadataDimensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsMetadataDimensionsListCall) IfNoneMatch(entityTag string) *AccountsMetadataDimensionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsMetadataDimensionsListCall) Context(ctx context.Context) *AccountsMetadataDimensionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsMetadataDimensionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2181,12 +1715,7 @@ func (c *AccountsMetadataDimensionsListCall) Header() http.Header { } func (c *AccountsMetadataDimensionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2203,16 +1732,14 @@ func (c *AccountsMetadataDimensionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.metadata.dimensions.list" call. -// Exactly one of *Metadata or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Metadata.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Metadata.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsMetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2220,17 +1747,17 @@ func (c *AccountsMetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Metadata{ ServerResponse: googleapi.ServerResponse{ @@ -2243,34 +1770,7 @@ func (c *AccountsMetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "List the metadata for the dimensions available to this AdExchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.metadata.dimensions.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account with visibility to the dimensions.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/metadata/dimensions", - // "response": { - // "$ref": "Metadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.accounts.metadata.metrics.list": +} type AccountsMetadataMetricsListCall struct { s *Service @@ -2283,6 +1783,8 @@ type AccountsMetadataMetricsListCall struct { // List: List the metadata for the metrics available to this AdExchange // account. +// +// - accountId: Account with visibility to the metrics. func (r *AccountsMetadataMetricsService) List(accountId string) *AccountsMetadataMetricsListCall { c := &AccountsMetadataMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2290,33 +1792,29 @@ func (r *AccountsMetadataMetricsService) List(accountId string) *AccountsMetadat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsMetadataMetricsListCall) Fields(s ...googleapi.Field) *AccountsMetadataMetricsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsMetadataMetricsListCall) IfNoneMatch(entityTag string) *AccountsMetadataMetricsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsMetadataMetricsListCall) Context(ctx context.Context) *AccountsMetadataMetricsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsMetadataMetricsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2325,12 +1823,7 @@ func (c *AccountsMetadataMetricsListCall) Header() http.Header { } func (c *AccountsMetadataMetricsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2347,16 +1840,14 @@ func (c *AccountsMetadataMetricsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.metadata.metrics.list" call. -// Exactly one of *Metadata or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Metadata.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Metadata.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsMetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2364,17 +1855,17 @@ func (c *AccountsMetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Met if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Metadata{ ServerResponse: googleapi.ServerResponse{ @@ -2387,34 +1878,7 @@ func (c *AccountsMetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Met return nil, err } return ret, nil - // { - // "description": "List the metadata for the metrics available to this AdExchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.metadata.metrics.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account with visibility to the metrics.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/metadata/metrics", - // "response": { - // "$ref": "Metadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.accounts.preferreddeals.get": +} type AccountsPreferreddealsGetCall struct { s *Service @@ -2427,6 +1891,9 @@ type AccountsPreferreddealsGetCall struct { } // Get: Get information about the selected Ad Exchange Preferred Deal. +// +// - accountId: Account owning the deal. +// - dealId: Preferred deal to get information about. func (r *AccountsPreferreddealsService) Get(accountId string, dealId string) *AccountsPreferreddealsGetCall { c := &AccountsPreferreddealsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2435,33 +1902,29 @@ func (r *AccountsPreferreddealsService) Get(accountId string, dealId string) *Ac } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPreferreddealsGetCall) Fields(s ...googleapi.Field) *AccountsPreferreddealsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsPreferreddealsGetCall) IfNoneMatch(entityTag string) *AccountsPreferreddealsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPreferreddealsGetCall) Context(ctx context.Context) *AccountsPreferreddealsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPreferreddealsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2470,12 +1933,7 @@ func (c *AccountsPreferreddealsGetCall) Header() http.Header { } func (c *AccountsPreferreddealsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2493,16 +1951,14 @@ func (c *AccountsPreferreddealsGetCall) doRequest(alt string) (*http.Response, e "accountId": c.accountId, "dealId": c.dealId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.preferreddeals.get" call. -// Exactly one of *PreferredDeal or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PreferredDeal.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PreferredDeal.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPreferreddealsGetCall) Do(opts ...googleapi.CallOption) (*PreferredDeal, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2510,17 +1966,17 @@ func (c *AccountsPreferreddealsGetCall) Do(opts ...googleapi.CallOption) (*Prefe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PreferredDeal{ ServerResponse: googleapi.ServerResponse{ @@ -2533,41 +1989,7 @@ func (c *AccountsPreferreddealsGetCall) Do(opts ...googleapi.CallOption) (*Prefe return nil, err } return ret, nil - // { - // "description": "Get information about the selected Ad Exchange Preferred Deal.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.preferreddeals.get", - // "parameterOrder": [ - // "accountId", - // "dealId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account owning the deal.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dealId": { - // "description": "Preferred deal to get information about.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/preferreddeals/{dealId}", - // "response": { - // "$ref": "PreferredDeal" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.accounts.preferreddeals.list": +} type AccountsPreferreddealsListCall struct { s *Service @@ -2579,6 +2001,8 @@ type AccountsPreferreddealsListCall struct { } // List: List the preferred deals for this Ad Exchange account. +// +// - accountId: Account owning the deals. func (r *AccountsPreferreddealsService) List(accountId string) *AccountsPreferreddealsListCall { c := &AccountsPreferreddealsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2586,33 +2010,29 @@ func (r *AccountsPreferreddealsService) List(accountId string) *AccountsPreferre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPreferreddealsListCall) Fields(s ...googleapi.Field) *AccountsPreferreddealsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsPreferreddealsListCall) IfNoneMatch(entityTag string) *AccountsPreferreddealsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPreferreddealsListCall) Context(ctx context.Context) *AccountsPreferreddealsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPreferreddealsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2621,12 +2041,7 @@ func (c *AccountsPreferreddealsListCall) Header() http.Header { } func (c *AccountsPreferreddealsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2643,16 +2058,14 @@ func (c *AccountsPreferreddealsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.preferreddeals.list" call. -// Exactly one of *PreferredDeals or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PreferredDeals.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PreferredDeals.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPreferreddealsListCall) Do(opts ...googleapi.CallOption) (*PreferredDeals, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2660,17 +2073,17 @@ func (c *AccountsPreferreddealsListCall) Do(opts ...googleapi.CallOption) (*Pref if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PreferredDeals{ ServerResponse: googleapi.ServerResponse{ @@ -2683,34 +2096,7 @@ func (c *AccountsPreferreddealsListCall) Do(opts ...googleapi.CallOption) (*Pref return nil, err } return ret, nil - // { - // "description": "List the preferred deals for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.preferreddeals.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account owning the deals.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/preferreddeals", - // "response": { - // "$ref": "PreferredDeals" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.accounts.reports.generate": +} type AccountsReportsGenerateCall struct { s *Service @@ -2721,9 +2107,15 @@ type AccountsReportsGenerateCall struct { header_ http.Header } -// Generate: Generate an Ad Exchange report based on the report request -// sent in the query parameters. Returns the result as JSON; to retrieve -// output in CSV format specify "alt=csv" as a query parameter. +// Generate: Generate an Ad Exchange report based on the report request sent in +// the query parameters. Returns the result as JSON; to retrieve output in CSV +// format specify "alt=csv" as a query parameter. +// +// - accountId: Account which owns the generated report. +// - endDate: End of the date range to report on in "YYYY-MM-DD" format, +// inclusive. +// - startDate: Start of the date range to report on in "YYYY-MM-DD" format, +// inclusive. func (r *AccountsReportsService) Generate(accountId string, startDate string, endDate string) *AccountsReportsGenerateCall { c := &AccountsReportsGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2732,8 +2124,8 @@ func (r *AccountsReportsService) Generate(accountId string, startDate string, en return c } -// Dimension sets the optional parameter "dimension": Dimensions to base -// the report on. +// Dimension sets the optional parameter "dimension": Dimensions to base the +// report on. func (c *AccountsReportsGenerateCall) Dimension(dimension ...string) *AccountsReportsGenerateCall { c.urlParams_.SetMulti("dimension", append([]string{}, dimension...)) return c @@ -2746,72 +2138,68 @@ func (c *AccountsReportsGenerateCall) Filter(filter ...string) *AccountsReportsG return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *AccountsReportsGenerateCall) Locale(locale string) *AccountsReportsGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *AccountsReportsGenerateCall) MaxResults(maxResults int64) *AccountsReportsGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Metric sets the optional parameter "metric": Numeric columns to -// include in the report. +// Metric sets the optional parameter "metric": Numeric columns to include in +// the report. func (c *AccountsReportsGenerateCall) Metric(metric ...string) *AccountsReportsGenerateCall { c.urlParams_.SetMulti("metric", append([]string{}, metric...)) return c } -// Sort sets the optional parameter "sort": The name of a dimension or -// metric to sort the resulting report on, optionally prefixed with "+" -// to sort ascending or "-" to sort descending. If no prefix is -// specified, the column is sorted ascending. +// Sort sets the optional parameter "sort": The name of a dimension or metric +// to sort the resulting report on, optionally prefixed with "+" to sort +// ascending or "-" to sort descending. If no prefix is specified, the column +// is sorted ascending. func (c *AccountsReportsGenerateCall) Sort(sort ...string) *AccountsReportsGenerateCall { c.urlParams_.SetMulti("sort", append([]string{}, sort...)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *AccountsReportsGenerateCall) StartIndex(startIndex int64) *AccountsReportsGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsReportsGenerateCall) Fields(s ...googleapi.Field) *AccountsReportsGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsReportsGenerateCall) IfNoneMatch(entityTag string) *AccountsReportsGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *AccountsReportsGenerateCall) Context(ctx context.Context) *AccountsReportsGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsReportsGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2820,12 +2208,7 @@ func (c *AccountsReportsGenerateCall) Header() http.Header { } func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2842,7 +2225,7 @@ func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -2854,20 +2237,18 @@ func (c *AccountsReportsGenerateCall) Download(opts ...googleapi.CallOption) (*h if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "adexchangeseller.accounts.reports.generate" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2875,17 +2256,17 @@ func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Report, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -2898,101 +2279,7 @@ func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Report, return nil, err } return ret, nil - // { - // "description": "Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.reports.generate", - // "parameterOrder": [ - // "accountId", - // "startDate", - // "endDate" - // ], - // "parameters": { - // "accountId": { - // "description": "Account which owns the generated report.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dimension": { - // "description": "Dimensions to base the report on.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "endDate": { - // "description": "End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Filters to be run on the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+(==|=@).+", - // "repeated": true, - // "type": "string" - // }, - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "uint32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "metric": { - // "description": "Numeric columns to include in the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "sort": { - // "description": "The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort descending. If no prefix is specified, the column is sorted ascending.", - // "location": "query", - // "pattern": "(\\+|-)?[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "startDate": { - // "description": "Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "uint32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "accounts/{accountId}/reports", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "adexchangeseller.accounts.reports.saved.generate": +} type AccountsReportsSavedGenerateCall struct { s *Service @@ -3004,8 +2291,11 @@ type AccountsReportsSavedGenerateCall struct { header_ http.Header } -// Generate: Generate an Ad Exchange report based on the saved report ID -// sent in the query parameters. +// Generate: Generate an Ad Exchange report based on the saved report ID sent +// in the query parameters. +// +// - accountId: Account owning the saved report. +// - savedReportId: The saved report to retrieve. func (r *AccountsReportsSavedService) Generate(accountId string, savedReportId string) *AccountsReportsSavedGenerateCall { c := &AccountsReportsSavedGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -3013,56 +2303,52 @@ func (r *AccountsReportsSavedService) Generate(accountId string, savedReportId s return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *AccountsReportsSavedGenerateCall) Locale(locale string) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *AccountsReportsSavedGenerateCall) MaxResults(maxResults int64) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *AccountsReportsSavedGenerateCall) StartIndex(startIndex int64) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsReportsSavedGenerateCall) Fields(s ...googleapi.Field) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsReportsSavedGenerateCall) IfNoneMatch(entityTag string) *AccountsReportsSavedGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsReportsSavedGenerateCall) Context(ctx context.Context) *AccountsReportsSavedGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsReportsSavedGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3071,12 +2357,7 @@ func (c *AccountsReportsSavedGenerateCall) Header() http.Header { } func (c *AccountsReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3094,16 +2375,14 @@ func (c *AccountsReportsSavedGenerateCall) doRequest(alt string) (*http.Response "accountId": c.accountId, "savedReportId": c.savedReportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.reports.saved.generate" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3111,17 +2390,17 @@ func (c *AccountsReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Re if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -3134,63 +2413,7 @@ func (c *AccountsReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Re return nil, err } return ret, nil - // { - // "description": "Generate an Ad Exchange report based on the saved report ID sent in the query parameters.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.reports.saved.generate", - // "parameterOrder": [ - // "accountId", - // "savedReportId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account owning the saved report.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "savedReportId": { - // "description": "The saved report to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "accounts/{accountId}/reports/{savedReportId}", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - -} - -// method id "adexchangeseller.accounts.reports.saved.list": +} type AccountsReportsSavedListCall struct { s *Service @@ -3202,56 +2425,53 @@ type AccountsReportsSavedListCall struct { } // List: List all saved reports in this Ad Exchange account. +// +// - accountId: Account owning the saved reports. func (r *AccountsReportsSavedService) List(accountId string) *AccountsReportsSavedListCall { c := &AccountsReportsSavedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved reports to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved reports to include in the response, used for paging. func (c *AccountsReportsSavedListCall) MaxResults(maxResults int64) *AccountsReportsSavedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved reports. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved reports. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsReportsSavedListCall) PageToken(pageToken string) *AccountsReportsSavedListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsReportsSavedListCall) Fields(s ...googleapi.Field) *AccountsReportsSavedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsReportsSavedListCall) IfNoneMatch(entityTag string) *AccountsReportsSavedListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsReportsSavedListCall) Context(ctx context.Context) *AccountsReportsSavedListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsReportsSavedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3260,12 +2480,7 @@ func (c *AccountsReportsSavedListCall) Header() http.Header { } func (c *AccountsReportsSavedListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3282,16 +2497,14 @@ func (c *AccountsReportsSavedListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.reports.saved.list" call. -// Exactly one of *SavedReports or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedReports.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedReports.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3299,17 +2512,17 @@ func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedR if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedReports{ ServerResponse: googleapi.ServerResponse{ @@ -3322,44 +2535,6 @@ func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedR return nil, err } return ret, nil - // { - // "description": "List all saved reports in this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.reports.saved.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account owning the saved reports.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of saved reports to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/reports/saved", - // "response": { - // "$ref": "SavedReports" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -3367,7 +2542,7 @@ func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedR // The provided context supersedes any context provided to the Context method. func (c *AccountsReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3383,8 +2558,6 @@ func (c *AccountsReportsSavedListCall) Pages(ctx context.Context, f func(*SavedR } } -// method id "adexchangeseller.accounts.urlchannels.list": - type AccountsUrlchannelsListCall struct { s *Service accountId string @@ -3395,8 +2568,11 @@ type AccountsUrlchannelsListCall struct { header_ http.Header } -// List: List all URL channels in the specified ad client for this Ad -// Exchange account. +// List: List all URL channels in the specified ad client for this Ad Exchange +// account. +// +// - accountId: Account to which the ad client belongs. +// - adClientId: Ad client for which to list URL channels. func (r *AccountsUrlchannelsService) List(accountId string, adClientId string) *AccountsUrlchannelsListCall { c := &AccountsUrlchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -3404,50 +2580,45 @@ func (r *AccountsUrlchannelsService) List(accountId string, adClientId string) * return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of URL channels to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// URL channels to include in the response, used for paging. func (c *AccountsUrlchannelsListCall) MaxResults(maxResults int64) *AccountsUrlchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through URL channels. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through URL channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsUrlchannelsListCall) PageToken(pageToken string) *AccountsUrlchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUrlchannelsListCall) Fields(s ...googleapi.Field) *AccountsUrlchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsUrlchannelsListCall) IfNoneMatch(entityTag string) *AccountsUrlchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUrlchannelsListCall) Context(ctx context.Context) *AccountsUrlchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUrlchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3456,12 +2627,7 @@ func (c *AccountsUrlchannelsListCall) Header() http.Header { } func (c *AccountsUrlchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3479,16 +2645,14 @@ func (c *AccountsUrlchannelsListCall) doRequest(alt string) (*http.Response, err "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexchangeseller.accounts.urlchannels.list" call. -// Exactly one of *UrlChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UrlChannels.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UrlChannels.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3496,17 +2660,17 @@ func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UrlChannels{ ServerResponse: googleapi.ServerResponse{ @@ -3519,51 +2683,6 @@ func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChan return nil, err } return ret, nil - // { - // "description": "List all URL channels in the specified ad client for this Ad Exchange account.", - // "httpMethod": "GET", - // "id": "adexchangeseller.accounts.urlchannels.list", - // "parameterOrder": [ - // "accountId", - // "adClientId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client for which to list URL channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of URL channels to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", - // "response": { - // "$ref": "UrlChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adexchange.seller", - // "https://www.googleapis.com/auth/adexchange.seller.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -3571,7 +2690,7 @@ func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChan // The provided context supersedes any context provided to the Context method. func (c *AccountsUrlchannelsListCall) Pages(ctx context.Context, f func(*UrlChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/adexperiencereport/v1/adexperiencereport-gen.go b/adexperiencereport/v1/adexperiencereport-gen.go index 08d09dc7fb3..174de996796 100644 --- a/adexperiencereport/v1/adexperiencereport-gen.go +++ b/adexperiencereport/v1/adexperiencereport-gen.go @@ -348,7 +348,7 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexperiencereport.sites.get" call. @@ -450,7 +450,7 @@ func (c *ViolatingSitesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adexperiencereport.violatingSites.list" call. diff --git a/admin/datatransfer/v1/admin-gen.go b/admin/datatransfer/v1/admin-gen.go index 199fa9cb745..0683cc6bf47 100644 --- a/admin/datatransfer/v1/admin-gen.go +++ b/admin/datatransfer/v1/admin-gen.go @@ -451,7 +451,7 @@ func (c *ApplicationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "applicationId": strconv.FormatInt(c.applicationId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datatransfer.applications.get" call. @@ -572,7 +572,7 @@ func (c *ApplicationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datatransfer.applications.list" call. @@ -702,7 +702,7 @@ func (c *TransfersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "dataTransferId": c.dataTransferId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datatransfer.transfers.get" call. @@ -798,7 +798,7 @@ func (c *TransfersInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datatransfer.transfers.insert" call. @@ -940,7 +940,7 @@ func (c *TransfersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datatransfer.transfers.list" call. diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index 8bf0eb359c9..167ea04d8e1 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -5403,7 +5403,7 @@ func (c *AspsDeleteCall) doRequest(alt string) (*http.Response, error) { "userKey": c.userKey, "codeId": strconv.FormatInt(c.codeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.asps.delete" call. @@ -5492,7 +5492,7 @@ func (c *AspsGetCall) doRequest(alt string) (*http.Response, error) { "userKey": c.userKey, "codeId": strconv.FormatInt(c.codeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.asps.get" call. @@ -5600,7 +5600,7 @@ func (c *AspsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.asps.list" call. @@ -5694,7 +5694,7 @@ func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.channels.stop" call. @@ -5792,7 +5792,7 @@ func (c *ChromeosdevicesActionCall) doRequest(alt string) (*http.Response, error "customerId": c.customerId, "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.chromeosdevices.action" call. @@ -5900,7 +5900,7 @@ func (c *ChromeosdevicesGetCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.chromeosdevices.get" call. @@ -6102,7 +6102,7 @@ func (c *ChromeosdevicesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.chromeosdevices.list" call. @@ -6228,7 +6228,7 @@ func (c *ChromeosdevicesMoveDevicesToOuCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.chromeosdevices.moveDevicesToOu" call. @@ -6333,7 +6333,7 @@ func (c *ChromeosdevicesPatchCall) doRequest(alt string) (*http.Response, error) "customerId": c.customerId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.chromeosdevices.patch" call. @@ -6459,7 +6459,7 @@ func (c *ChromeosdevicesUpdateCall) doRequest(alt string) (*http.Response, error "customerId": c.customerId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.chromeosdevices.update" call. @@ -6563,7 +6563,7 @@ func (c *CustomerDevicesChromeosBatchChangeStatusCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customer.devices.chromeos.batchChangeStatus" call. @@ -6669,7 +6669,7 @@ func (c *CustomerDevicesChromeosIssueCommandCall) doRequest(alt string) (*http.R "customerId": c.customerId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customer.devices.chromeos.issueCommand" call. @@ -6785,7 +6785,7 @@ func (c *CustomerDevicesChromeosCommandsGetCall) doRequest(alt string) (*http.Re "deviceId": c.deviceId, "commandId": strconv.FormatInt(c.commandId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customer.devices.chromeos.commands.get" call. @@ -6893,7 +6893,7 @@ func (c *CustomersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerKey": c.customerKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.customers.get" call. @@ -6994,7 +6994,7 @@ func (c *CustomersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerKey": c.customerKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.customers.patch" call. @@ -7095,7 +7095,7 @@ func (c *CustomersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerKey": c.customerKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.customers.update" call. @@ -7198,7 +7198,7 @@ func (c *CustomersChromePrintServersBatchCreatePrintServersCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printServers.batchCreatePrintServers" call. @@ -7303,7 +7303,7 @@ func (c *CustomersChromePrintServersBatchDeletePrintServersCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printServers.batchDeletePrintServers" call. @@ -7407,7 +7407,7 @@ func (c *CustomersChromePrintServersCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printServers.create" call. @@ -7503,7 +7503,7 @@ func (c *CustomersChromePrintServersDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printServers.delete" call. @@ -7612,7 +7612,7 @@ func (c *CustomersChromePrintServersGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printServers.get" call. @@ -7767,7 +7767,7 @@ func (c *CustomersChromePrintServersListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printServers.list" call. @@ -7899,7 +7899,7 @@ func (c *CustomersChromePrintServersPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printServers.patch" call. @@ -8000,7 +8000,7 @@ func (c *CustomersChromePrintersBatchCreatePrintersCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printers.batchCreatePrinters" call. @@ -8102,7 +8102,7 @@ func (c *CustomersChromePrintersBatchDeletePrintersCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printers.batchDeletePrinters" call. @@ -8204,7 +8204,7 @@ func (c *CustomersChromePrintersCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printers.create" call. @@ -8300,7 +8300,7 @@ func (c *CustomersChromePrintersDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printers.delete" call. @@ -8408,7 +8408,7 @@ func (c *CustomersChromePrintersGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printers.get" call. @@ -8558,7 +8558,7 @@ func (c *CustomersChromePrintersListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printers.list" call. @@ -8710,7 +8710,7 @@ func (c *CustomersChromePrintersListPrinterModelsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printers.listPrinterModels" call. @@ -8851,7 +8851,7 @@ func (c *CustomersChromePrintersPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.customers.chrome.printers.patch" call. @@ -8950,7 +8950,7 @@ func (c *DomainAliasesDeleteCall) doRequest(alt string) (*http.Response, error) "customer": c.customer, "domainAliasName": c.domainAliasName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.domainAliases.delete" call. @@ -9044,7 +9044,7 @@ func (c *DomainAliasesGetCall) doRequest(alt string) (*http.Response, error) { "customer": c.customer, "domainAliasName": c.domainAliasName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.domainAliases.get" call. @@ -9145,7 +9145,7 @@ func (c *DomainAliasesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.domainAliases.insert" call. @@ -9265,7 +9265,7 @@ func (c *DomainAliasesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.domainAliases.list" call. @@ -9364,7 +9364,7 @@ func (c *DomainsDeleteCall) doRequest(alt string) (*http.Response, error) { "customer": c.customer, "domainName": c.domainName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.domains.delete" call. @@ -9458,7 +9458,7 @@ func (c *DomainsGetCall) doRequest(alt string) (*http.Response, error) { "customer": c.customer, "domainName": c.domainName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.domains.get" call. @@ -9559,7 +9559,7 @@ func (c *DomainsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.domains.insert" call. @@ -9672,7 +9672,7 @@ func (c *DomainsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.domains.list" call. @@ -9768,7 +9768,7 @@ func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupKey": c.groupKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.groups.delete" call. @@ -9853,7 +9853,7 @@ func (c *GroupsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupKey": c.groupKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.groups.get" call. @@ -9947,7 +9947,7 @@ func (c *GroupsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.groups.insert" call. @@ -10121,7 +10121,7 @@ func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.groups.list" call. @@ -10245,7 +10245,7 @@ func (c *GroupsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupKey": c.groupKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.groups.patch" call. @@ -10347,7 +10347,7 @@ func (c *GroupsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupKey": c.groupKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.groups.update" call. @@ -10447,7 +10447,7 @@ func (c *GroupsAliasesDeleteCall) doRequest(alt string) (*http.Response, error) "groupKey": c.groupKey, "alias": c.alias, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.groups.aliases.delete" call. @@ -10526,7 +10526,7 @@ func (c *GroupsAliasesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "groupKey": c.groupKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.groups.aliases.insert" call. @@ -10634,7 +10634,7 @@ func (c *GroupsAliasesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupKey": c.groupKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.groups.aliases.list" call. @@ -10736,7 +10736,7 @@ func (c *MembersDeleteCall) doRequest(alt string) (*http.Response, error) { "groupKey": c.groupKey, "memberKey": c.memberKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.members.delete" call. @@ -10827,7 +10827,7 @@ func (c *MembersGetCall) doRequest(alt string) (*http.Response, error) { "groupKey": c.groupKey, "memberKey": c.memberKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.members.get" call. @@ -10946,7 +10946,7 @@ func (c *MembersHasMemberCall) doRequest(alt string) (*http.Response, error) { "groupKey": c.groupKey, "memberKey": c.memberKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.members.hasMember" call. @@ -11049,7 +11049,7 @@ func (c *MembersInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupKey": c.groupKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.members.insert" call. @@ -11190,7 +11190,7 @@ func (c *MembersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupKey": c.groupKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.members.list" call. @@ -11321,7 +11321,7 @@ func (c *MembersPatchCall) doRequest(alt string) (*http.Response, error) { "groupKey": c.groupKey, "memberKey": c.memberKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.members.patch" call. @@ -11429,7 +11429,7 @@ func (c *MembersUpdateCall) doRequest(alt string) (*http.Response, error) { "groupKey": c.groupKey, "memberKey": c.memberKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.members.update" call. @@ -11539,7 +11539,7 @@ func (c *MobiledevicesActionCall) doRequest(alt string) (*http.Response, error) "customerId": c.customerId, "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.mobiledevices.action" call. @@ -11619,7 +11619,7 @@ func (c *MobiledevicesDeleteCall) doRequest(alt string) (*http.Response, error) "customerId": c.customerId, "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.mobiledevices.delete" call. @@ -11726,7 +11726,7 @@ func (c *MobiledevicesGetCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.mobiledevices.get" call. @@ -11911,7 +11911,7 @@ func (c *MobiledevicesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.mobiledevices.list" call. @@ -12035,7 +12035,7 @@ func (c *OrgunitsDeleteCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "orgUnitPath": c.orgUnitPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.orgunits.delete" call. @@ -12127,7 +12127,7 @@ func (c *OrgunitsGetCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "orgUnitPath": c.orgUnitPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.orgunits.get" call. @@ -12231,7 +12231,7 @@ func (c *OrgunitsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.orgunits.insert" call. @@ -12364,7 +12364,7 @@ func (c *OrgunitsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.orgunits.list" call. @@ -12474,7 +12474,7 @@ func (c *OrgunitsPatchCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "orgUnitPath": c.orgUnitPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.orgunits.patch" call. @@ -12583,7 +12583,7 @@ func (c *OrgunitsUpdateCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "orgUnitPath": c.orgUnitPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.orgunits.update" call. @@ -12696,7 +12696,7 @@ func (c *PrivilegesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.privileges.list" call. @@ -12797,7 +12797,7 @@ func (c *ResourcesBuildingsDeleteCall) doRequest(alt string) (*http.Response, er "customer": c.customer, "buildingId": c.buildingId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.buildings.delete" call. @@ -12887,7 +12887,7 @@ func (c *ResourcesBuildingsGetCall) doRequest(alt string) (*http.Response, error "customer": c.customer, "buildingId": c.buildingId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.buildings.get" call. @@ -13012,7 +13012,7 @@ func (c *ResourcesBuildingsInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.buildings.insert" call. @@ -13135,7 +13135,7 @@ func (c *ResourcesBuildingsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.buildings.list" call. @@ -13285,7 +13285,7 @@ func (c *ResourcesBuildingsPatchCall) doRequest(alt string) (*http.Response, err "customer": c.customer, "buildingId": c.buildingId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.buildings.patch" call. @@ -13414,7 +13414,7 @@ func (c *ResourcesBuildingsUpdateCall) doRequest(alt string) (*http.Response, er "customer": c.customer, "buildingId": c.buildingId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.buildings.update" call. @@ -13515,7 +13515,7 @@ func (c *ResourcesCalendarsDeleteCall) doRequest(alt string) (*http.Response, er "customer": c.customer, "calendarResourceId": c.calendarResourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.calendars.delete" call. @@ -13605,7 +13605,7 @@ func (c *ResourcesCalendarsGetCall) doRequest(alt string) (*http.Response, error "customer": c.customer, "calendarResourceId": c.calendarResourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.calendars.get" call. @@ -13709,7 +13709,7 @@ func (c *ResourcesCalendarsInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.calendars.insert" call. @@ -13860,7 +13860,7 @@ func (c *ResourcesCalendarsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.calendars.list" call. @@ -13989,7 +13989,7 @@ func (c *ResourcesCalendarsPatchCall) doRequest(alt string) (*http.Response, err "customer": c.customer, "calendarResourceId": c.calendarResourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.calendars.patch" call. @@ -14099,7 +14099,7 @@ func (c *ResourcesCalendarsUpdateCall) doRequest(alt string) (*http.Response, er "customer": c.customer, "calendarResourceId": c.calendarResourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.calendars.update" call. @@ -14201,7 +14201,7 @@ func (c *ResourcesFeaturesDeleteCall) doRequest(alt string) (*http.Response, err "customer": c.customer, "featureKey": c.featureKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.features.delete" call. @@ -14291,7 +14291,7 @@ func (c *ResourcesFeaturesGetCall) doRequest(alt string) (*http.Response, error) "customer": c.customer, "featureKey": c.featureKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.features.get" call. @@ -14394,7 +14394,7 @@ func (c *ResourcesFeaturesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.features.insert" call. @@ -14517,7 +14517,7 @@ func (c *ResourcesFeaturesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.features.list" call. @@ -14645,7 +14645,7 @@ func (c *ResourcesFeaturesPatchCall) doRequest(alt string) (*http.Response, erro "customer": c.customer, "featureKey": c.featureKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.features.patch" call. @@ -14752,7 +14752,7 @@ func (c *ResourcesFeaturesRenameCall) doRequest(alt string) (*http.Response, err "customer": c.customer, "oldName": c.oldName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.features.rename" call. @@ -14836,7 +14836,7 @@ func (c *ResourcesFeaturesUpdateCall) doRequest(alt string) (*http.Response, err "customer": c.customer, "featureKey": c.featureKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.resources.features.update" call. @@ -14935,7 +14935,7 @@ func (c *RoleAssignmentsDeleteCall) doRequest(alt string) (*http.Response, error "customer": c.customer, "roleAssignmentId": c.roleAssignmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.roleAssignments.delete" call. @@ -15029,7 +15029,7 @@ func (c *RoleAssignmentsGetCall) doRequest(alt string) (*http.Response, error) { "customer": c.customer, "roleAssignmentId": c.roleAssignmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.roleAssignments.get" call. @@ -15130,7 +15130,7 @@ func (c *RoleAssignmentsInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.roleAssignments.insert" call. @@ -15283,7 +15283,7 @@ func (c *RoleAssignmentsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.roleAssignments.list" call. @@ -15404,7 +15404,7 @@ func (c *RolesDeleteCall) doRequest(alt string) (*http.Response, error) { "customer": c.customer, "roleId": c.roleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.roles.delete" call. @@ -15498,7 +15498,7 @@ func (c *RolesGetCall) doRequest(alt string) (*http.Response, error) { "customer": c.customer, "roleId": c.roleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.roles.get" call. @@ -15599,7 +15599,7 @@ func (c *RolesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.roles.insert" call. @@ -15726,7 +15726,7 @@ func (c *RolesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.roles.list" call. @@ -15852,7 +15852,7 @@ func (c *RolesPatchCall) doRequest(alt string) (*http.Response, error) { "customer": c.customer, "roleId": c.roleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.roles.patch" call. @@ -15957,7 +15957,7 @@ func (c *RolesUpdateCall) doRequest(alt string) (*http.Response, error) { "customer": c.customer, "roleId": c.roleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.roles.update" call. @@ -16056,7 +16056,7 @@ func (c *SchemasDeleteCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "schemaKey": c.schemaKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.schemas.delete" call. @@ -16150,7 +16150,7 @@ func (c *SchemasGetCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "schemaKey": c.schemaKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.schemas.get" call. @@ -16251,7 +16251,7 @@ func (c *SchemasInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.schemas.insert" call. @@ -16364,7 +16364,7 @@ func (c *SchemasListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.schemas.list" call. @@ -16469,7 +16469,7 @@ func (c *SchemasPatchCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "schemaKey": c.schemaKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.schemas.patch" call. @@ -16574,7 +16574,7 @@ func (c *SchemasUpdateCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "schemaKey": c.schemaKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.schemas.update" call. @@ -16674,7 +16674,7 @@ func (c *TokensDeleteCall) doRequest(alt string) (*http.Response, error) { "userKey": c.userKey, "clientId": c.clientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.tokens.delete" call. @@ -16763,7 +16763,7 @@ func (c *TokensGetCall) doRequest(alt string) (*http.Response, error) { "userKey": c.userKey, "clientId": c.clientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.tokens.get" call. @@ -16872,7 +16872,7 @@ func (c *TokensListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.tokens.list" call. @@ -16968,7 +16968,7 @@ func (c *TwoStepVerificationTurnOffCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.twoStepVerification.turnOff" call. @@ -17041,7 +17041,7 @@ func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.delete" call. @@ -17169,7 +17169,7 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.get" call. @@ -17280,7 +17280,7 @@ func (c *UsersInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.insert" call. @@ -17514,7 +17514,7 @@ func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.list" call. @@ -17637,7 +17637,7 @@ func (c *UsersMakeAdminCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.makeAdmin" call. @@ -17723,7 +17723,7 @@ func (c *UsersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.patch" call. @@ -17820,7 +17820,7 @@ func (c *UsersSignOutCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.signOut" call. @@ -17898,7 +17898,7 @@ func (c *UsersUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.undelete" call. @@ -17984,7 +17984,7 @@ func (c *UsersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.update" call. @@ -18205,7 +18205,7 @@ func (c *UsersWatchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.watch" call. @@ -18305,7 +18305,7 @@ func (c *UsersAliasesDeleteCall) doRequest(alt string) (*http.Response, error) { "userKey": c.userKey, "alias": c.alias, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.aliases.delete" call. @@ -18384,7 +18384,7 @@ func (c *UsersAliasesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.aliases.insert" call. @@ -18503,7 +18503,7 @@ func (c *UsersAliasesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.aliases.list" call. @@ -18615,7 +18615,7 @@ func (c *UsersAliasesWatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.aliases.watch" call. @@ -18711,7 +18711,7 @@ func (c *UsersPhotosDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.photos.delete" call. @@ -18796,7 +18796,7 @@ func (c *UsersPhotosGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.photos.get" call. @@ -18899,7 +18899,7 @@ func (c *UsersPhotosPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.photos.patch" call. @@ -19001,7 +19001,7 @@ func (c *UsersPhotosUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.users.photos.update" call. @@ -19096,7 +19096,7 @@ func (c *VerificationCodesGenerateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.verificationCodes.generate" call. @@ -19168,7 +19168,7 @@ func (c *VerificationCodesInvalidateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.verificationCodes.invalidate" call. @@ -19254,7 +19254,7 @@ func (c *VerificationCodesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "userKey": c.userKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "directory.verificationCodes.list" call. diff --git a/admin/reports/v1/admin-gen.go b/admin/reports/v1/admin-gen.go index 13275304cea..e23d81b7b94 100644 --- a/admin/reports/v1/admin-gen.go +++ b/admin/reports/v1/admin-gen.go @@ -971,7 +971,7 @@ func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) { "userKey": c.userKey, "applicationName": c.applicationName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reports.activities.list" call. @@ -1242,7 +1242,7 @@ func (c *ActivitiesWatchCall) doRequest(alt string) (*http.Response, error) { "userKey": c.userKey, "applicationName": c.applicationName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reports.activities.watch" call. @@ -1336,7 +1336,7 @@ func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admin.channels.stop" call. @@ -1461,7 +1461,7 @@ func (c *CustomerUsageReportsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "date": c.date, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reports.customerUsageReports.get" call. @@ -1672,7 +1672,7 @@ func (c *EntityUsageReportsGetCall) doRequest(alt string) (*http.Response, error "entityKey": c.entityKey, "date": c.date, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reports.entityUsageReports.get" call. @@ -1900,7 +1900,7 @@ func (c *UserUsageReportGetCall) doRequest(alt string) (*http.Response, error) { "userKey": c.userKey, "date": c.date, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reports.userUsageReport.get" call. diff --git a/admob/v1/admob-gen.go b/admob/v1/admob-gen.go index ac2592e3b7c..f57c18c4fcc 100644 --- a/admob/v1/admob-gen.go +++ b/admob/v1/admob-gen.go @@ -1552,7 +1552,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.get" call. @@ -1671,7 +1671,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.list" call. @@ -1818,7 +1818,7 @@ func (c *AccountsAdUnitsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.adUnits.list" call. @@ -1964,7 +1964,7 @@ func (c *AccountsAppsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.apps.list" call. @@ -2090,7 +2090,7 @@ func (c *AccountsMediationReportGenerateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.mediationReport.generate" call. @@ -2195,7 +2195,7 @@ func (c *AccountsNetworkReportGenerateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.networkReport.generate" call. diff --git a/admob/v1beta/admob-gen.go b/admob/v1beta/admob-gen.go index c29809cf9c0..b9a644d1309 100644 --- a/admob/v1beta/admob-gen.go +++ b/admob/v1beta/admob-gen.go @@ -2471,7 +2471,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.get" call. @@ -2590,7 +2590,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.list" call. @@ -2737,7 +2737,7 @@ func (c *AccountsAdSourcesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.adSources.list" call. @@ -2884,7 +2884,7 @@ func (c *AccountsAdSourcesAdaptersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.adSources.adapters.list" call. @@ -3013,7 +3013,7 @@ func (c *AccountsAdUnitMappingsBatchCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.adUnitMappings.batchCreate" call. @@ -3118,7 +3118,7 @@ func (c *AccountsAdUnitsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.adUnits.create" call. @@ -3243,7 +3243,7 @@ func (c *AccountsAdUnitsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.adUnits.list" call. @@ -3369,7 +3369,7 @@ func (c *AccountsAdUnitsAdUnitMappingsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.adUnits.adUnitMappings.create" call. @@ -3508,7 +3508,7 @@ func (c *AccountsAdUnitsAdUnitMappingsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.adUnits.adUnitMappings.list" call. @@ -3634,7 +3634,7 @@ func (c *AccountsAppsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.apps.create" call. @@ -3758,7 +3758,7 @@ func (c *AccountsAppsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.apps.list" call. @@ -3882,7 +3882,7 @@ func (c *AccountsCampaignReportGenerateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.campaignReport.generate" call. @@ -3987,7 +3987,7 @@ func (c *AccountsMediationGroupsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.mediationGroups.create" call. @@ -4133,7 +4133,7 @@ func (c *AccountsMediationGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.mediationGroups.list" call. @@ -4281,7 +4281,7 @@ func (c *AccountsMediationGroupsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.mediationGroups.patch" call. @@ -4385,7 +4385,7 @@ func (c *AccountsMediationGroupsMediationAbExperimentsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.mediationGroups.mediationAbExperiments.create" call. @@ -4492,7 +4492,7 @@ func (c *AccountsMediationGroupsMediationAbExperimentsStopCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.mediationGroups.mediationAbExperiments.stop" call. @@ -4597,7 +4597,7 @@ func (c *AccountsMediationReportGenerateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.mediationReport.generate" call. @@ -4702,7 +4702,7 @@ func (c *AccountsNetworkReportGenerateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "admob.accounts.networkReport.generate" call. diff --git a/adsense/v1.3/adsense-gen.go b/adsense/v1.3/adsense-gen.go index 19ab33e7ec0..6908b08a33e 100644 --- a/adsense/v1.3/adsense-gen.go +++ b/adsense/v1.3/adsense-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/adsense/management/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // adsenseService, err := adsense.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // adsenseService, err := adsense.NewService(ctx, option.WithScopes(adsense.AdsenseReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // adsenseService, err := adsense.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // adsenseService, err := adsense.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package adsense // import "google.golang.org/api/adsense/v1.3" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "adsense:v1.3" const apiName = "adsense" const apiVersion = "v1.3" const basePath = "https://www.googleapis.com/adsense/v1.3/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/adsense/v1.3/" // OAuth2 scopes used by this API. const ( @@ -89,12 +108,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -426,422 +448,321 @@ type UrlchannelsService struct { type Account struct { // Id: Unique identifier of this account. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#account. Kind string `json:"kind,omitempty"` - // Name: Name of this account. Name string `json:"name,omitempty"` - // Premium: Whether this account is premium. Premium bool `json:"premium,omitempty"` - // SubAccounts: Sub accounts of the this account. SubAccounts []*Account `json:"subAccounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Accounts struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The accounts returned in this list response. Items []*Account `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#accounts. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through accounts. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // NextPageToken: Continuation token used to page through accounts. To retrieve + // the next page of results, set the next request's "pageToken" value to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Accounts) MarshalJSON() ([]byte, error) { +func (s Accounts) MarshalJSON() ([]byte, error) { type NoMethod Accounts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdClient struct { // ArcOptIn: Whether this ad client is opted in to ARC. ArcOptIn bool `json:"arcOptIn,omitempty"` - // Id: Unique identifier of this ad client. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#adClient. Kind string `json:"kind,omitempty"` - // ProductCode: This ad client's product code, which corresponds to the // PRODUCT_CODE report dimension. ProductCode string `json:"productCode,omitempty"` - // SupportsReporting: Whether this ad client supports being reported on. SupportsReporting bool `json:"supportsReporting,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArcOptIn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArcOptIn") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArcOptIn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdClient) MarshalJSON() ([]byte, error) { +func (s AdClient) MarshalJSON() ([]byte, error) { type NoMethod AdClient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdClients struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The ad clients returned in this list response. Items []*AdClient `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#adClients. Kind string `json:"kind,omitempty"` - // NextPageToken: Continuation token used to page through ad clients. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdClients) MarshalJSON() ([]byte, error) { +func (s AdClients) MarshalJSON() ([]byte, error) { type NoMethod AdClients - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdCode struct { // AdCode: The ad code snippet. AdCode string `json:"adCode,omitempty"` - // Kind: Kind this is, in this case adsense#adCode. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AdCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdCode") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdCode") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdCode) MarshalJSON() ([]byte, error) { +func (s AdCode) MarshalJSON() ([]byte, error) { type NoMethod AdCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdStyle struct { - // Colors: The colors which are included in the style. These are - // represented as six hexadecimal characters, similar to HTML color - // codes, but without the leading hash. + // Colors: The colors which are included in the style. These are represented as + // six hexadecimal characters, similar to HTML color codes, but without the + // leading hash. Colors *AdStyleColors `json:"colors,omitempty"` - - // Corners: The style of the corners in the ad (deprecated: never - // populated, ignored). + // Corners: The style of the corners in the ad (deprecated: never populated, + // ignored). Corners string `json:"corners,omitempty"` - // Font: The font which is included in the style. Font *AdStyleFont `json:"font,omitempty"` - // Kind: Kind this is, in this case adsense#adStyle. Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Colors") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Colors") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Colors") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdStyle) MarshalJSON() ([]byte, error) { +func (s AdStyle) MarshalJSON() ([]byte, error) { type NoMethod AdStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdStyleColors: The colors which are included in the style. These are -// represented as six hexadecimal characters, similar to HTML color -// codes, but without the leading hash. +// represented as six hexadecimal characters, similar to HTML color codes, but +// without the leading hash. type AdStyleColors struct { // Background: The color of the ad background. Background string `json:"background,omitempty"` - // Border: The color of the ad border. Border string `json:"border,omitempty"` - // Text: The color of the ad text. Text string `json:"text,omitempty"` - // Title: The color of the ad title. Title string `json:"title,omitempty"` - // Url: The color of the ad url. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "Background") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Background") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Background") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdStyleColors) MarshalJSON() ([]byte, error) { +func (s AdStyleColors) MarshalJSON() ([]byte, error) { type NoMethod AdStyleColors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdStyleFont: The font which is included in the style. type AdStyleFont struct { // Family: The family of the font. Family string `json:"family,omitempty"` - // Size: The size of the font. Size string `json:"size,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Family") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Family") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Family") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdStyleFont) MarshalJSON() ([]byte, error) { +func (s AdStyleFont) MarshalJSON() ([]byte, error) { type NoMethod AdStyleFont - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdUnit struct { // Code: Identity code of this ad unit, not necessarily unique across ad // clients. Code string `json:"code,omitempty"` - - // ContentAdsSettings: Settings specific to content ads (AFC) and - // highend mobile content ads (AFMC - deprecated). + // ContentAdsSettings: Settings specific to content ads (AFC) and highend + // mobile content ads (AFMC - deprecated). ContentAdsSettings *AdUnitContentAdsSettings `json:"contentAdsSettings,omitempty"` - // CustomStyle: Custom style information specific to this ad unit. CustomStyle *AdStyle `json:"customStyle,omitempty"` - // FeedAdsSettings: Settings specific to feed ads (AFF) - deprecated. FeedAdsSettings *AdUnitFeedAdsSettings `json:"feedAdsSettings,omitempty"` - - // Id: Unique identifier of this ad unit. This should be considered an - // opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this ad unit. This should be considered an opaque + // identifier; it is not safe to rely on it being in any particular format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#adUnit. Kind string `json:"kind,omitempty"` - - // MobileContentAdsSettings: Settings specific to WAP mobile content ads - // (AFMC) - deprecated. + // MobileContentAdsSettings: Settings specific to WAP mobile content ads (AFMC) + // - deprecated. MobileContentAdsSettings *AdUnitMobileContentAdsSettings `json:"mobileContentAdsSettings,omitempty"` - // Name: Name of this ad unit. Name string `json:"name,omitempty"` - - // SavedStyleId: ID of the saved ad style which holds this ad unit's - // style information. + // SavedStyleId: ID of the saved ad style which holds this ad unit's style + // information. SavedStyleId string `json:"savedStyleId,omitempty"` - // Status: Status of this ad unit. Possible values are: - // NEW: Indicates that the ad unit was created within the last seven - // days and does not yet have any activity associated with it. + // NEW: Indicates that the ad unit was created within the last seven days and + // does not yet have any activity associated with it. // - // ACTIVE: Indicates that there has been activity on this ad unit in the - // last seven days. + // ACTIVE: Indicates that there has been activity on this ad unit in the last + // seven days. // - // INACTIVE: Indicates that there has been no activity on this ad unit - // in the last seven days. + // INACTIVE: Indicates that there has been no activity on this ad unit in the + // last seven days. Status string `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnit) MarshalJSON() ([]byte, error) { +func (s AdUnit) MarshalJSON() ([]byte, error) { type NoMethod AdUnit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdUnitContentAdsSettings: Settings specific to content ads (AFC) and -// highend mobile content ads (AFMC - deprecated). +// AdUnitContentAdsSettings: Settings specific to content ads (AFC) and highend +// mobile content ads (AFMC - deprecated). type AdUnitContentAdsSettings struct { - // BackupOption: The backup option to be used in instances where no ad - // is available. + // BackupOption: The backup option to be used in instances where no ad is + // available. BackupOption *AdUnitContentAdsSettingsBackupOption `json:"backupOption,omitempty"` - // Size: Size of this ad unit. Size string `json:"size,omitempty"` - // Type: Type of this ad unit. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "BackupOption") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BackupOption") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BackupOption") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnitContentAdsSettings) MarshalJSON() ([]byte, error) { +func (s AdUnitContentAdsSettings) MarshalJSON() ([]byte, error) { type NoMethod AdUnitContentAdsSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdUnitContentAdsSettingsBackupOption: The backup option to be used in @@ -849,377 +770,281 @@ func (s *AdUnitContentAdsSettings) MarshalJSON() ([]byte, error) { type AdUnitContentAdsSettingsBackupOption struct { // Color: Color to use when type is set to COLOR. Color string `json:"color,omitempty"` - - // Type: Type of the backup option. Possible values are BLANK, COLOR and - // URL. + // Type: Type of the backup option. Possible values are BLANK, COLOR and URL. Type string `json:"type,omitempty"` - // Url: URL to use when type is set to URL. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Color") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Color") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Color") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnitContentAdsSettingsBackupOption) MarshalJSON() ([]byte, error) { +func (s AdUnitContentAdsSettingsBackupOption) MarshalJSON() ([]byte, error) { type NoMethod AdUnitContentAdsSettingsBackupOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdUnitFeedAdsSettings: Settings specific to feed ads (AFF) - -// deprecated. +// AdUnitFeedAdsSettings: Settings specific to feed ads (AFF) - deprecated. type AdUnitFeedAdsSettings struct { // AdPosition: The position of the ads relative to the feed entries. AdPosition string `json:"adPosition,omitempty"` - - // Frequency: The frequency at which ads should appear in the feed (i.e. - // every N entries). + // Frequency: The frequency at which ads should appear in the feed (i.e. every + // N entries). Frequency int64 `json:"frequency,omitempty"` - - // MinimumWordCount: The minimum length an entry should be in order to - // have attached ads. + // MinimumWordCount: The minimum length an entry should be in order to have + // attached ads. MinimumWordCount int64 `json:"minimumWordCount,omitempty"` - // Type: The type of ads which should appear. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdPosition") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdPosition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdPosition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnitFeedAdsSettings) MarshalJSON() ([]byte, error) { +func (s AdUnitFeedAdsSettings) MarshalJSON() ([]byte, error) { type NoMethod AdUnitFeedAdsSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdUnitMobileContentAdsSettings: Settings specific to WAP mobile -// content ads (AFMC) - deprecated. +// AdUnitMobileContentAdsSettings: Settings specific to WAP mobile content ads +// (AFMC) - deprecated. type AdUnitMobileContentAdsSettings struct { // MarkupLanguage: The markup language to use for this ad unit. MarkupLanguage string `json:"markupLanguage,omitempty"` - // ScriptingLanguage: The scripting language to use for this ad unit. ScriptingLanguage string `json:"scriptingLanguage,omitempty"` - // Size: Size of this ad unit. Size string `json:"size,omitempty"` - // Type: Type of this ad unit. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "MarkupLanguage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MarkupLanguage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MarkupLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnitMobileContentAdsSettings) MarshalJSON() ([]byte, error) { +func (s AdUnitMobileContentAdsSettings) MarshalJSON() ([]byte, error) { type NoMethod AdUnitMobileContentAdsSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdUnits struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The ad units returned in this list response. Items []*AdUnit `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#adUnits. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through ad units. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // NextPageToken: Continuation token used to page through ad units. To retrieve + // the next page of results, set the next request's "pageToken" value to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnits) MarshalJSON() ([]byte, error) { +func (s AdUnits) MarshalJSON() ([]byte, error) { type NoMethod AdUnits - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdsenseReportsGenerateResponse struct { - // Averages: The averages of the report. This is the same length as any - // other row in the report; cells corresponding to dimension columns are - // empty. + // Averages: The averages of the report. This is the same length as any other + // row in the report; cells corresponding to dimension columns are empty. Averages []string `json:"averages,omitempty"` - - // Headers: The header information of the columns requested in the - // report. This is a list of headers; one for each dimension in the - // request, followed by one for each metric in the request. + // Headers: The header information of the columns requested in the report. This + // is a list of headers; one for each dimension in the request, followed by one + // for each metric in the request. Headers []*AdsenseReportsGenerateResponseHeaders `json:"headers,omitempty"` - // Kind: Kind this is, in this case adsense#report. Kind string `json:"kind,omitempty"` - - // Rows: The output rows of the report. Each row is a list of cells; one - // for each dimension in the request, followed by one for each metric in - // the request. The dimension cells contain strings, and the metric - // cells contain numbers. + // Rows: The output rows of the report. Each row is a list of cells; one for + // each dimension in the request, followed by one for each metric in the + // request. The dimension cells contain strings, and the metric cells contain + // numbers. Rows [][]string `json:"rows,omitempty"` - - // TotalMatchedRows: The total number of rows matched by the report - // request. Fewer rows may be returned in the response due to being - // limited by the row count requested or the report row limit. + // TotalMatchedRows: The total number of rows matched by the report request. + // Fewer rows may be returned in the response due to being limited by the row + // count requested or the report row limit. TotalMatchedRows int64 `json:"totalMatchedRows,omitempty,string"` - - // Totals: The totals of the report. This is the same length as any - // other row in the report; cells corresponding to dimension columns are - // empty. + // Totals: The totals of the report. This is the same length as any other row + // in the report; cells corresponding to dimension columns are empty. Totals []string `json:"totals,omitempty"` - // Warnings: Any warnings associated with generation of the report. Warnings []string `json:"warnings,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Averages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Averages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Averages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdsenseReportsGenerateResponse) MarshalJSON() ([]byte, error) { +func (s AdsenseReportsGenerateResponse) MarshalJSON() ([]byte, error) { type NoMethod AdsenseReportsGenerateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdsenseReportsGenerateResponseHeaders struct { - // Currency: The currency of this column. Only present if the header - // type is METRIC_CURRENCY. + // Currency: The currency of this column. Only present if the header type is + // METRIC_CURRENCY. Currency string `json:"currency,omitempty"` - // Name: The name of the header. Name string `json:"name,omitempty"` - - // Type: The type of the header; one of DIMENSION, METRIC_TALLY, - // METRIC_RATIO, or METRIC_CURRENCY. + // Type: The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, + // or METRIC_CURRENCY. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Currency") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Currency") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Currency") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdsenseReportsGenerateResponseHeaders) MarshalJSON() ([]byte, error) { +func (s AdsenseReportsGenerateResponseHeaders) MarshalJSON() ([]byte, error) { type NoMethod AdsenseReportsGenerateResponseHeaders - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Alert struct { - // Id: Unique identifier of this alert. This should be considered an - // opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this alert. This should be considered an opaque + // identifier; it is not safe to rely on it being in any particular format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#alert. Kind string `json:"kind,omitempty"` - // Message: The localized alert message. Message string `json:"message,omitempty"` - - // Severity: Severity of this alert. Possible values: INFO, WARNING, - // SEVERE. + // Severity: Severity of this alert. Possible values: INFO, WARNING, SEVERE. Severity string `json:"severity,omitempty"` - - // Type: Type of this alert. Possible values: SELF_HOLD, - // MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, - // PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, - // API_HOLD. + // Type: Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, + // ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, + // GRAYLISTED_PUBLISHER, API_HOLD. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Alert) MarshalJSON() ([]byte, error) { +func (s Alert) MarshalJSON() ([]byte, error) { type NoMethod Alert - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Alerts struct { // Items: The alerts returned in this list response. Items []*Alert `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#alerts. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Alerts) MarshalJSON() ([]byte, error) { +func (s Alerts) MarshalJSON() ([]byte, error) { type NoMethod Alerts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomChannel struct { - // Code: Code of this custom channel, not necessarily unique across ad - // clients. + // Code: Code of this custom channel, not necessarily unique across ad clients. Code string `json:"code,omitempty"` - - // Id: Unique identifier of this custom channel. This should be - // considered an opaque identifier; it is not safe to rely on it being - // in any particular format. + // Id: Unique identifier of this custom channel. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#customChannel. Kind string `json:"kind,omitempty"` - // Name: Name of this custom channel. Name string `json:"name,omitempty"` - // TargetingInfo: The targeting information of this custom channel, if // activated. TargetingInfo *CustomChannelTargetingInfo `json:"targetingInfo,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannel) MarshalJSON() ([]byte, error) { +func (s CustomChannel) MarshalJSON() ([]byte, error) { type NoMethod CustomChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomChannelTargetingInfo: The targeting information of this custom @@ -1227,419 +1052,316 @@ func (s *CustomChannel) MarshalJSON() ([]byte, error) { type CustomChannelTargetingInfo struct { // AdsAppearOn: The name used to describe this channel externally. AdsAppearOn string `json:"adsAppearOn,omitempty"` - // Description: The external description of the channel. Description string `json:"description,omitempty"` - - // Location: The locations in which ads appear. (Only valid for content - // and mobile content ads (deprecated)). Acceptable values for content - // ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, - // MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, - // MULTIPLE_LOCATIONS. Acceptable values for mobile content ads - // (deprecated) are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. + // Location: The locations in which ads appear. (Only valid for content and + // mobile content ads (deprecated)). Acceptable values for content ads are: + // TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, + // BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable + // values for mobile content ads (deprecated) are: TOP, MIDDLE, BOTTOM, + // MULTIPLE_LOCATIONS. Location string `json:"location,omitempty"` - // SiteLanguage: The language of the sites ads will be displayed on. SiteLanguage string `json:"siteLanguage,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdsAppearOn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdsAppearOn") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdsAppearOn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) { +func (s CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) { type NoMethod CustomChannelTargetingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomChannels struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The custom channels returned in this list response. Items []*CustomChannel `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#customChannels. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through custom - // channels. To retrieve the next page of results, set the next - // request's "pageToken" value to this. + // NextPageToken: Continuation token used to page through custom channels. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannels) MarshalJSON() ([]byte, error) { +func (s CustomChannels) MarshalJSON() ([]byte, error) { type NoMethod CustomChannels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Metadata struct { Items []*ReportingMetadataEntry `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#metadata. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metadata) MarshalJSON() ([]byte, error) { +func (s Metadata) MarshalJSON() ([]byte, error) { type NoMethod Metadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReportingMetadataEntry struct { - // CompatibleDimensions: For metrics this is a list of dimension IDs - // which the metric is compatible with, for dimensions it is a list of - // compatibility groups the dimension belongs to. + // CompatibleDimensions: For metrics this is a list of dimension IDs which the + // metric is compatible with, for dimensions it is a list of compatibility + // groups the dimension belongs to. CompatibleDimensions []string `json:"compatibleDimensions,omitempty"` - - // CompatibleMetrics: The names of the metrics the dimension or metric - // this reporting metadata entry describes is compatible with. + // CompatibleMetrics: The names of the metrics the dimension or metric this + // reporting metadata entry describes is compatible with. CompatibleMetrics []string `json:"compatibleMetrics,omitempty"` - - // Id: Unique identifier of this reporting metadata entry, corresponding - // to the name of the appropriate dimension or metric. + // Id: Unique identifier of this reporting metadata entry, corresponding to the + // name of the appropriate dimension or metric. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adsense#reportingMetadataEntry. + // Kind: Kind of resource this is, in this case adsense#reportingMetadataEntry. Kind string `json:"kind,omitempty"` - - // RequiredDimensions: The names of the dimensions which the dimension - // or metric this reporting metadata entry describes requires to also be - // present in order for the report to be valid. Omitting these will not - // cause an error or warning, but may result in data which cannot be - // correctly interpreted. + // RequiredDimensions: The names of the dimensions which the dimension or + // metric this reporting metadata entry describes requires to also be present + // in order for the report to be valid. Omitting these will not cause an error + // or warning, but may result in data which cannot be correctly interpreted. RequiredDimensions []string `json:"requiredDimensions,omitempty"` - - // RequiredMetrics: The names of the metrics which the dimension or - // metric this reporting metadata entry describes requires to also be - // present in order for the report to be valid. Omitting these will not - // cause an error or warning, but may result in data which cannot be - // correctly interpreted. + // RequiredMetrics: The names of the metrics which the dimension or metric this + // reporting metadata entry describes requires to also be present in order for + // the report to be valid. Omitting these will not cause an error or warning, + // but may result in data which cannot be correctly interpreted. RequiredMetrics []string `json:"requiredMetrics,omitempty"` - - // SupportedProducts: The codes of the projects supported by the - // dimension or metric this reporting metadata entry describes. + // SupportedProducts: The codes of the projects supported by the dimension or + // metric this reporting metadata entry describes. SupportedProducts []string `json:"supportedProducts,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CompatibleDimensions") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CompatibleDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompatibleDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompatibleDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportingMetadataEntry) MarshalJSON() ([]byte, error) { +func (s ReportingMetadataEntry) MarshalJSON() ([]byte, error) { type NoMethod ReportingMetadataEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedAdStyle struct { // AdStyle: The AdStyle itself. AdStyle *AdStyle `json:"adStyle,omitempty"` - - // Id: Unique identifier of this saved ad style. This should be - // considered an opaque identifier; it is not safe to rely on it being - // in any particular format. + // Id: Unique identifier of this saved ad style. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#savedAdStyle. Kind string `json:"kind,omitempty"` - // Name: The user selected name of this SavedAdStyle. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AdStyle") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdStyle") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdStyle") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdStyle") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedAdStyle) MarshalJSON() ([]byte, error) { +func (s SavedAdStyle) MarshalJSON() ([]byte, error) { type NoMethod SavedAdStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedAdStyles struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The saved ad styles returned in this list response. Items []*SavedAdStyle `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#savedAdStyles. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through ad units. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // NextPageToken: Continuation token used to page through ad units. To retrieve + // the next page of results, set the next request's "pageToken" value to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedAdStyles) MarshalJSON() ([]byte, error) { +func (s SavedAdStyles) MarshalJSON() ([]byte, error) { type NoMethod SavedAdStyles - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedReport struct { // Id: Unique identifier of this saved report. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#savedReport. Kind string `json:"kind,omitempty"` - // Name: This saved report's name. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedReport) MarshalJSON() ([]byte, error) { +func (s SavedReport) MarshalJSON() ([]byte, error) { type NoMethod SavedReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedReports struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The saved reports returned in this list response. Items []*SavedReport `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#savedReports. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through saved reports. - // To retrieve the next page of results, set the next request's - // "pageToken" value to this. + // NextPageToken: Continuation token used to page through saved reports. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedReports) MarshalJSON() ([]byte, error) { +func (s SavedReports) MarshalJSON() ([]byte, error) { type NoMethod SavedReports - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlChannel struct { - // Id: Unique identifier of this URL channel. This should be considered - // an opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this URL channel. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#urlChannel. Kind string `json:"kind,omitempty"` - - // UrlPattern: URL Pattern of this URL channel. Does not include - // "http://" or "https://". Example: www.example.com/home + // UrlPattern: URL Pattern of this URL channel. Does not include "http://" or + // "https://". Example: www.example.com/home UrlPattern string `json:"urlPattern,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlChannel) MarshalJSON() ([]byte, error) { +func (s UrlChannel) MarshalJSON() ([]byte, error) { type NoMethod UrlChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlChannels struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The URL channels returned in this list response. Items []*UrlChannel `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#urlChannels. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through URL channels. - // To retrieve the next page of results, set the next request's - // "pageToken" value to this. + // NextPageToken: Continuation token used to page through URL channels. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlChannels) MarshalJSON() ([]byte, error) { +func (s UrlChannels) MarshalJSON() ([]byte, error) { type NoMethod UrlChannels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "adsense.accounts.get": - type AccountsGetCall struct { s *Service accountId string @@ -1650,47 +1372,45 @@ type AccountsGetCall struct { } // Get: Get information about the selected AdSense account. +// +// - accountId: Account to get information about. func (r *AccountsService) Get(accountId string) *AccountsGetCall { c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId return c } -// Tree sets the optional parameter "tree": Whether the tree of sub -// accounts should be returned. +// Tree sets the optional parameter "tree": Whether the tree of sub accounts +// should be returned. func (c *AccountsGetCall) Tree(tree bool) *AccountsGetCall { c.urlParams_.Set("tree", fmt.Sprint(tree)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1699,12 +1419,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1721,16 +1436,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1738,17 +1451,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -1761,39 +1474,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Get information about the selected AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.get", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to get information about.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tree": { - // "description": "Whether the tree of sub accounts should be returned.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "accounts/{accountId}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.list": +} type AccountsListCall struct { s *Service @@ -1809,50 +1490,45 @@ func (r *AccountsService) List() *AccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of accounts to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// accounts to include in the response, used for paging. func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through accounts. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through accounts. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1861,12 +1537,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1880,16 +1551,14 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.list" call. -// Exactly one of *Accounts or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Accounts.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Accounts.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1897,17 +1566,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Accounts{ ServerResponse: googleapi.ServerResponse{ @@ -1920,35 +1589,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { return nil, err } return ret, nil - // { - // "description": "List all accounts available to this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of accounts to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts", - // "response": { - // "$ref": "Accounts" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1956,7 +1596,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { // The provided context supersedes any context provided to the Context method. func (c *AccountsListCall) Pages(ctx context.Context, f func(*Accounts) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1972,8 +1612,6 @@ func (c *AccountsListCall) Pages(ctx context.Context, f func(*Accounts) error) e } } -// method id "adsense.accounts.adclients.list": - type AccountsAdclientsListCall struct { s *Service accountId string @@ -1984,56 +1622,53 @@ type AccountsAdclientsListCall struct { } // List: List all ad clients in the specified account. +// +// - accountId: Account for which to list ad clients. func (r *AccountsAdclientsService) List(accountId string) *AccountsAdclientsListCall { c := &AccountsAdclientsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad clients to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad clients to include in the response, used for paging. func (c *AccountsAdclientsListCall) MaxResults(maxResults int64) *AccountsAdclientsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad clients. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad clients. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsAdclientsListCall) PageToken(pageToken string) *AccountsAdclientsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdclientsListCall) Fields(s ...googleapi.Field) *AccountsAdclientsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdclientsListCall) IfNoneMatch(entityTag string) *AccountsAdclientsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdclientsListCall) Context(ctx context.Context) *AccountsAdclientsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdclientsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2042,12 +1677,7 @@ func (c *AccountsAdclientsListCall) Header() http.Header { } func (c *AccountsAdclientsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2064,16 +1694,14 @@ func (c *AccountsAdclientsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.list" call. -// Exactly one of *AdClients or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdClients.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdClients.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2081,17 +1709,17 @@ func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdClients{ ServerResponse: googleapi.ServerResponse{ @@ -2104,44 +1732,6 @@ func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients return nil, err } return ret, nil - // { - // "description": "List all ad clients in the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adclients.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account for which to list ad clients.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of ad clients to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients", - // "response": { - // "$ref": "AdClients" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2149,7 +1739,7 @@ func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients // The provided context supersedes any context provided to the Context method. func (c *AccountsAdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2165,8 +1755,6 @@ func (c *AccountsAdclientsListCall) Pages(ctx context.Context, f func(*AdClients } } -// method id "adsense.accounts.adunits.get": - type AccountsAdunitsGetCall struct { s *Service accountId string @@ -2178,8 +1766,12 @@ type AccountsAdunitsGetCall struct { header_ http.Header } -// Get: Gets the specified ad unit in the specified ad client for the -// specified account. +// Get: Gets the specified ad unit in the specified ad client for the specified +// account. +// +// - accountId: Account to which the ad client belongs. +// - adClientId: Ad client for which to get the ad unit. +// - adUnitId: Ad unit to retrieve. func (r *AccountsAdunitsService) Get(accountId string, adClientId string, adUnitId string) *AccountsAdunitsGetCall { c := &AccountsAdunitsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2189,33 +1781,29 @@ func (r *AccountsAdunitsService) Get(accountId string, adClientId string, adUnit } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdunitsGetCall) Fields(s ...googleapi.Field) *AccountsAdunitsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdunitsGetCall) IfNoneMatch(entityTag string) *AccountsAdunitsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdunitsGetCall) Context(ctx context.Context) *AccountsAdunitsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdunitsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2224,12 +1812,7 @@ func (c *AccountsAdunitsGetCall) Header() http.Header { } func (c *AccountsAdunitsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2248,16 +1831,14 @@ func (c *AccountsAdunitsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adunits.get" call. -// Exactly one of *AdUnit or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnit.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnit.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2265,17 +1846,17 @@ func (c *AccountsAdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnit{ ServerResponse: googleapi.ServerResponse{ @@ -2288,48 +1869,7 @@ func (c *AccountsAdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, erro return nil, err } return ret, nil - // { - // "description": "Gets the specified ad unit in the specified ad client for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adunits.get", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client for which to get the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", - // "response": { - // "$ref": "AdUnit" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.adunits.getAdCode": +} type AccountsAdunitsGetAdCodeCall struct { s *Service @@ -2343,6 +1883,10 @@ type AccountsAdunitsGetAdCodeCall struct { } // GetAdCode: Get ad code for the specified ad unit. +// +// - accountId: Account which contains the ad client. +// - adClientId: Ad client with contains the ad unit. +// - adUnitId: Ad unit to get the code for. func (r *AccountsAdunitsService) GetAdCode(accountId string, adClientId string, adUnitId string) *AccountsAdunitsGetAdCodeCall { c := &AccountsAdunitsGetAdCodeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2352,33 +1896,29 @@ func (r *AccountsAdunitsService) GetAdCode(accountId string, adClientId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdunitsGetAdCodeCall) Fields(s ...googleapi.Field) *AccountsAdunitsGetAdCodeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdunitsGetAdCodeCall) IfNoneMatch(entityTag string) *AccountsAdunitsGetAdCodeCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdunitsGetAdCodeCall) Context(ctx context.Context) *AccountsAdunitsGetAdCodeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdunitsGetAdCodeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2387,12 +1927,7 @@ func (c *AccountsAdunitsGetAdCodeCall) Header() http.Header { } func (c *AccountsAdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2411,16 +1946,14 @@ func (c *AccountsAdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, er "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adunits.getAdCode" call. -// Exactly one of *AdCode or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdCode.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2428,17 +1961,17 @@ func (c *AccountsAdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdCode{ ServerResponse: googleapi.ServerResponse{ @@ -2451,48 +1984,7 @@ func (c *AccountsAdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode return nil, err } return ret, nil - // { - // "description": "Get ad code for the specified ad unit.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adunits.getAdCode", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account which contains the ad client.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client with contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit to get the code for.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode", - // "response": { - // "$ref": "AdCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.adunits.list": +} type AccountsAdunitsListCall struct { s *Service @@ -2506,6 +1998,9 @@ type AccountsAdunitsListCall struct { // List: List all ad units in the specified ad client for the specified // account. +// +// - accountId: Account to which the ad client belongs. +// - adClientId: Ad client for which to list ad units. func (r *AccountsAdunitsService) List(accountId string, adClientId string) *AccountsAdunitsListCall { c := &AccountsAdunitsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2513,57 +2008,52 @@ func (r *AccountsAdunitsService) List(accountId string, adClientId string) *Acco return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *AccountsAdunitsListCall) IncludeInactive(includeInactive bool) *AccountsAdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *AccountsAdunitsListCall) MaxResults(maxResults int64) *AccountsAdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AccountsAdunitsListCall) PageToken(pageToken string) *AccountsAdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdunitsListCall) Fields(s ...googleapi.Field) *AccountsAdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdunitsListCall) IfNoneMatch(entityTag string) *AccountsAdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdunitsListCall) Context(ctx context.Context) *AccountsAdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2572,12 +2062,7 @@ func (c *AccountsAdunitsListCall) Header() http.Header { } func (c *AccountsAdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2595,16 +2080,14 @@ func (c *AccountsAdunitsListCall) doRequest(alt string) (*http.Response, error) "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2612,17 +2095,17 @@ func (c *AccountsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -2635,56 +2118,6 @@ func (c *AccountsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, er return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified ad client for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adunits.list", - // "parameterOrder": [ - // "accountId", - // "adClientId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2692,7 +2125,7 @@ func (c *AccountsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, er // The provided context supersedes any context provided to the Context method. func (c *AccountsAdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2708,8 +2141,6 @@ func (c *AccountsAdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) er } } -// method id "adsense.accounts.adunits.customchannels.list": - type AccountsAdunitsCustomchannelsListCall struct { s *Service accountId string @@ -2721,8 +2152,11 @@ type AccountsAdunitsCustomchannelsListCall struct { header_ http.Header } -// List: List all custom channels which the specified ad unit belongs -// to. +// List: List all custom channels which the specified ad unit belongs to. +// +// - accountId: Account to which the ad client belongs. +// - adClientId: Ad client which contains the ad unit. +// - adUnitId: Ad unit for which to list custom channels. func (r *AccountsAdunitsCustomchannelsService) List(accountId string, adClientId string, adUnitId string) *AccountsAdunitsCustomchannelsListCall { c := &AccountsAdunitsCustomchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2731,51 +2165,45 @@ func (r *AccountsAdunitsCustomchannelsService) List(accountId string, adClientId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *AccountsAdunitsCustomchannelsListCall) MaxResults(maxResults int64) *AccountsAdunitsCustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsAdunitsCustomchannelsListCall) PageToken(pageToken string) *AccountsAdunitsCustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdunitsCustomchannelsListCall) Fields(s ...googleapi.Field) *AccountsAdunitsCustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdunitsCustomchannelsListCall) IfNoneMatch(entityTag string) *AccountsAdunitsCustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdunitsCustomchannelsListCall) Context(ctx context.Context) *AccountsAdunitsCustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdunitsCustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2784,12 +2212,7 @@ func (c *AccountsAdunitsCustomchannelsListCall) Header() http.Header { } func (c *AccountsAdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2808,16 +2231,14 @@ func (c *AccountsAdunitsCustomchannelsListCall) doRequest(alt string) (*http.Res "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adunits.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2825,17 +2246,17 @@ func (c *AccountsAdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -2848,58 +2269,6 @@ func (c *AccountsAdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "List all custom channels which the specified ad unit belongs to.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adunits.customchannels.list", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client which contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2907,7 +2276,7 @@ func (c *AccountsAdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *AccountsAdunitsCustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2923,8 +2292,6 @@ func (c *AccountsAdunitsCustomchannelsListCall) Pages(ctx context.Context, f fun } } -// method id "adsense.accounts.alerts.list": - type AccountsAlertsListCall struct { s *Service accountId string @@ -2935,6 +2302,8 @@ type AccountsAlertsListCall struct { } // List: List the alerts for the specified AdSense account. +// +// - accountId: Account for which to retrieve the alerts. func (r *AccountsAlertsService) List(accountId string) *AccountsAlertsListCall { c := &AccountsAlertsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2942,42 +2311,38 @@ func (r *AccountsAlertsService) List(accountId string) *AccountsAlertsListCall { } // Locale sets the optional parameter "locale": The locale to use for -// translating alert messages. The account locale will be used if this -// is not supplied. The AdSense default (English) will be used if the -// supplied locale is invalid or unsupported. +// translating alert messages. The account locale will be used if this is not +// supplied. The AdSense default (English) will be used if the supplied locale +// is invalid or unsupported. func (c *AccountsAlertsListCall) Locale(locale string) *AccountsAlertsListCall { c.urlParams_.Set("locale", locale) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAlertsListCall) Fields(s ...googleapi.Field) *AccountsAlertsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAlertsListCall) IfNoneMatch(entityTag string) *AccountsAlertsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAlertsListCall) Context(ctx context.Context) *AccountsAlertsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAlertsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2986,12 +2351,7 @@ func (c *AccountsAlertsListCall) Header() http.Header { } func (c *AccountsAlertsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3008,16 +2368,14 @@ func (c *AccountsAlertsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.alerts.list" call. -// Exactly one of *Alerts or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Alerts.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Alerts.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3025,17 +2383,17 @@ func (c *AccountsAlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Alerts{ ServerResponse: googleapi.ServerResponse{ @@ -3048,39 +2406,7 @@ func (c *AccountsAlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, erro return nil, err } return ret, nil - // { - // "description": "List the alerts for the specified AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.alerts.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account for which to retrieve the alerts.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locale": { - // "description": "The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/alerts", - // "response": { - // "$ref": "Alerts" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.customchannels.get": +} type AccountsCustomchannelsGetCall struct { s *Service @@ -3093,8 +2419,12 @@ type AccountsCustomchannelsGetCall struct { header_ http.Header } -// Get: Get the specified custom channel from the specified ad client -// for the specified account. +// Get: Get the specified custom channel from the specified ad client for the +// specified account. +// +// - accountId: Account to which the ad client belongs. +// - adClientId: Ad client which contains the custom channel. +// - customChannelId: Custom channel to retrieve. func (r *AccountsCustomchannelsService) Get(accountId string, adClientId string, customChannelId string) *AccountsCustomchannelsGetCall { c := &AccountsCustomchannelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -3104,33 +2434,29 @@ func (r *AccountsCustomchannelsService) Get(accountId string, adClientId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsCustomchannelsGetCall) Fields(s ...googleapi.Field) *AccountsCustomchannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsCustomchannelsGetCall) IfNoneMatch(entityTag string) *AccountsCustomchannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsCustomchannelsGetCall) Context(ctx context.Context) *AccountsCustomchannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsCustomchannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3139,12 +2465,7 @@ func (c *AccountsCustomchannelsGetCall) Header() http.Header { } func (c *AccountsCustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3163,16 +2484,14 @@ func (c *AccountsCustomchannelsGetCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.customchannels.get" call. -// Exactly one of *CustomChannel or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannel.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannel.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsCustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3180,17 +2499,17 @@ func (c *AccountsCustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*Custo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannel{ ServerResponse: googleapi.ServerResponse{ @@ -3203,48 +2522,7 @@ func (c *AccountsCustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*Custo return nil, err } return ret, nil - // { - // "description": "Get the specified custom channel from the specified ad client for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.customchannels.get", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", - // "response": { - // "$ref": "CustomChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.customchannels.list": +} type AccountsCustomchannelsListCall struct { s *Service @@ -3256,8 +2534,11 @@ type AccountsCustomchannelsListCall struct { header_ http.Header } -// List: List all custom channels in the specified ad client for the -// specified account. +// List: List all custom channels in the specified ad client for the specified +// account. +// +// - accountId: Account to which the ad client belongs. +// - adClientId: Ad client for which to list custom channels. func (r *AccountsCustomchannelsService) List(accountId string, adClientId string) *AccountsCustomchannelsListCall { c := &AccountsCustomchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -3265,51 +2546,45 @@ func (r *AccountsCustomchannelsService) List(accountId string, adClientId string return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *AccountsCustomchannelsListCall) MaxResults(maxResults int64) *AccountsCustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsCustomchannelsListCall) PageToken(pageToken string) *AccountsCustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsCustomchannelsListCall) Fields(s ...googleapi.Field) *AccountsCustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsCustomchannelsListCall) IfNoneMatch(entityTag string) *AccountsCustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsCustomchannelsListCall) Context(ctx context.Context) *AccountsCustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsCustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3318,12 +2593,7 @@ func (c *AccountsCustomchannelsListCall) Header() http.Header { } func (c *AccountsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3341,16 +2611,14 @@ func (c *AccountsCustomchannelsListCall) doRequest(alt string) (*http.Response, "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3358,17 +2626,17 @@ func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Cust if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -3381,51 +2649,6 @@ func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Cust return nil, err } return ret, nil - // { - // "description": "List all custom channels in the specified ad client for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.customchannels.list", - // "parameterOrder": [ - // "accountId", - // "adClientId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -3433,7 +2656,7 @@ func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Cust // The provided context supersedes any context provided to the Context method. func (c *AccountsCustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3449,8 +2672,6 @@ func (c *AccountsCustomchannelsListCall) Pages(ctx context.Context, f func(*Cust } } -// method id "adsense.accounts.customchannels.adunits.list": - type AccountsCustomchannelsAdunitsListCall struct { s *Service accountId string @@ -3463,6 +2684,10 @@ type AccountsCustomchannelsAdunitsListCall struct { } // List: List all ad units in the specified custom channel. +// +// - accountId: Account to which the ad client belongs. +// - adClientId: Ad client which contains the custom channel. +// - customChannelId: Custom channel for which to list ad units. func (r *AccountsCustomchannelsAdunitsService) List(accountId string, adClientId string, customChannelId string) *AccountsCustomchannelsAdunitsListCall { c := &AccountsCustomchannelsAdunitsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -3471,57 +2696,52 @@ func (r *AccountsCustomchannelsAdunitsService) List(accountId string, adClientId return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *AccountsCustomchannelsAdunitsListCall) IncludeInactive(includeInactive bool) *AccountsCustomchannelsAdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *AccountsCustomchannelsAdunitsListCall) MaxResults(maxResults int64) *AccountsCustomchannelsAdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AccountsCustomchannelsAdunitsListCall) PageToken(pageToken string) *AccountsCustomchannelsAdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsCustomchannelsAdunitsListCall) Fields(s ...googleapi.Field) *AccountsCustomchannelsAdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsCustomchannelsAdunitsListCall) IfNoneMatch(entityTag string) *AccountsCustomchannelsAdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsCustomchannelsAdunitsListCall) Context(ctx context.Context) *AccountsCustomchannelsAdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsCustomchannelsAdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3530,12 +2750,7 @@ func (c *AccountsCustomchannelsAdunitsListCall) Header() http.Header { } func (c *AccountsCustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3554,16 +2769,14 @@ func (c *AccountsCustomchannelsAdunitsListCall) doRequest(alt string) (*http.Res "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.customchannels.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsCustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3571,17 +2784,17 @@ func (c *AccountsCustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -3594,63 +2807,6 @@ func (c *AccountsCustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified custom channel.", - // "httpMethod": "GET", - // "id": "adsense.accounts.customchannels.adunits.list", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -3658,7 +2814,7 @@ func (c *AccountsCustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *AccountsCustomchannelsAdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3674,8 +2830,6 @@ func (c *AccountsCustomchannelsAdunitsListCall) Pages(ctx context.Context, f fun } } -// method id "adsense.accounts.reports.generate": - type AccountsReportsGenerateCall struct { s *Service accountId string @@ -3685,9 +2839,15 @@ type AccountsReportsGenerateCall struct { header_ http.Header } -// Generate: Generate an AdSense report based on the report request sent -// in the query parameters. Returns the result as JSON; to retrieve -// output in CSV format specify "alt=csv" as a query parameter. +// Generate: Generate an AdSense report based on the report request sent in the +// query parameters. Returns the result as JSON; to retrieve output in CSV +// format specify "alt=csv" as a query parameter. +// +// - accountId: Account upon which to report. +// - endDate: End of the date range to report on in "YYYY-MM-DD" format, +// inclusive. +// - startDate: Start of the date range to report on in "YYYY-MM-DD" format, +// inclusive. func (r *AccountsReportsService) Generate(accountId string, startDate string, endDate string) *AccountsReportsGenerateCall { c := &AccountsReportsGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -3696,16 +2856,16 @@ func (r *AccountsReportsService) Generate(accountId string, startDate string, en return c } -// Currency sets the optional parameter "currency": Optional currency to -// use when reporting on monetary metrics. Defaults to the account's -// currency if not set. +// Currency sets the optional parameter "currency": Optional currency to use +// when reporting on monetary metrics. Defaults to the account's currency if +// not set. func (c *AccountsReportsGenerateCall) Currency(currency string) *AccountsReportsGenerateCall { c.urlParams_.Set("currency", currency) return c } -// Dimension sets the optional parameter "dimension": Dimensions to base -// the report on. +// Dimension sets the optional parameter "dimension": Dimensions to base the +// report on. func (c *AccountsReportsGenerateCall) Dimension(dimension ...string) *AccountsReportsGenerateCall { c.urlParams_.SetMulti("dimension", append([]string{}, dimension...)) return c @@ -3718,81 +2878,76 @@ func (c *AccountsReportsGenerateCall) Filter(filter ...string) *AccountsReportsG return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *AccountsReportsGenerateCall) Locale(locale string) *AccountsReportsGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *AccountsReportsGenerateCall) MaxResults(maxResults int64) *AccountsReportsGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Metric sets the optional parameter "metric": Numeric columns to -// include in the report. +// Metric sets the optional parameter "metric": Numeric columns to include in +// the report. func (c *AccountsReportsGenerateCall) Metric(metric ...string) *AccountsReportsGenerateCall { c.urlParams_.SetMulti("metric", append([]string{}, metric...)) return c } -// Sort sets the optional parameter "sort": The name of a dimension or -// metric to sort the resulting report on, optionally prefixed with "+" -// to sort ascending or "-" to sort descending. If no prefix is -// specified, the column is sorted ascending. +// Sort sets the optional parameter "sort": The name of a dimension or metric +// to sort the resulting report on, optionally prefixed with "+" to sort +// ascending or "-" to sort descending. If no prefix is specified, the column +// is sorted ascending. func (c *AccountsReportsGenerateCall) Sort(sort ...string) *AccountsReportsGenerateCall { c.urlParams_.SetMulti("sort", append([]string{}, sort...)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *AccountsReportsGenerateCall) StartIndex(startIndex int64) *AccountsReportsGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } -// UseTimezoneReporting sets the optional parameter -// "useTimezoneReporting": Whether the report should be generated in the -// AdSense account's local timezone. If false default PST/PDT timezone -// will be used. +// UseTimezoneReporting sets the optional parameter "useTimezoneReporting": +// Whether the report should be generated in the AdSense account's local +// timezone. If false default PST/PDT timezone will be used. func (c *AccountsReportsGenerateCall) UseTimezoneReporting(useTimezoneReporting bool) *AccountsReportsGenerateCall { c.urlParams_.Set("useTimezoneReporting", fmt.Sprint(useTimezoneReporting)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsReportsGenerateCall) Fields(s ...googleapi.Field) *AccountsReportsGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsReportsGenerateCall) IfNoneMatch(entityTag string) *AccountsReportsGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *AccountsReportsGenerateCall) Context(ctx context.Context) *AccountsReportsGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsReportsGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3801,12 +2956,7 @@ func (c *AccountsReportsGenerateCall) Header() http.Header { } func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3823,7 +2973,7 @@ func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -3835,20 +2985,19 @@ func (c *AccountsReportsGenerateCall) Download(opts ...googleapi.CallOption) (*h if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "adsense.accounts.reports.generate" call. -// Exactly one of *AdsenseReportsGenerateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsGenerateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3856,17 +3005,17 @@ func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Adsense if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsenseReportsGenerateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3879,112 +3028,7 @@ func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Adsense return nil, err } return ret, nil - // { - // "description": "Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.", - // "httpMethod": "GET", - // "id": "adsense.accounts.reports.generate", - // "parameterOrder": [ - // "accountId", - // "startDate", - // "endDate" - // ], - // "parameters": { - // "accountId": { - // "description": "Account upon which to report.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "currency": { - // "description": "Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.", - // "location": "query", - // "pattern": "[a-zA-Z]+", - // "type": "string" - // }, - // "dimension": { - // "description": "Dimensions to base the report on.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "endDate": { - // "description": "End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Filters to be run on the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+(==|=@).+", - // "repeated": true, - // "type": "string" - // }, - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "metric": { - // "description": "Numeric columns to include in the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "sort": { - // "description": "The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort descending. If no prefix is specified, the column is sorted ascending.", - // "location": "query", - // "pattern": "(\\+|-)?[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "startDate": { - // "description": "Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // }, - // "useTimezoneReporting": { - // "description": "Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "accounts/{accountId}/reports", - // "response": { - // "$ref": "AdsenseReportsGenerateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "adsense.accounts.reports.saved.generate": +} type AccountsReportsSavedGenerateCall struct { s *Service @@ -3996,8 +3040,11 @@ type AccountsReportsSavedGenerateCall struct { header_ http.Header } -// Generate: Generate an AdSense report based on the saved report ID -// sent in the query parameters. +// Generate: Generate an AdSense report based on the saved report ID sent in +// the query parameters. +// +// - accountId: Account to which the saved reports belong. +// - savedReportId: The saved report to retrieve. func (r *AccountsReportsSavedService) Generate(accountId string, savedReportId string) *AccountsReportsSavedGenerateCall { c := &AccountsReportsSavedGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -4005,56 +3052,52 @@ func (r *AccountsReportsSavedService) Generate(accountId string, savedReportId s return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *AccountsReportsSavedGenerateCall) Locale(locale string) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *AccountsReportsSavedGenerateCall) MaxResults(maxResults int64) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *AccountsReportsSavedGenerateCall) StartIndex(startIndex int64) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsReportsSavedGenerateCall) Fields(s ...googleapi.Field) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsReportsSavedGenerateCall) IfNoneMatch(entityTag string) *AccountsReportsSavedGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsReportsSavedGenerateCall) Context(ctx context.Context) *AccountsReportsSavedGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsReportsSavedGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4063,12 +3106,7 @@ func (c *AccountsReportsSavedGenerateCall) Header() http.Header { } func (c *AccountsReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4086,16 +3124,15 @@ func (c *AccountsReportsSavedGenerateCall) doRequest(alt string) (*http.Response "accountId": c.accountId, "savedReportId": c.savedReportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.saved.generate" call. -// Exactly one of *AdsenseReportsGenerateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountsReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsGenerateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4103,17 +3140,17 @@ func (c *AccountsReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Ad if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsenseReportsGenerateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4126,63 +3163,7 @@ func (c *AccountsReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Ad return nil, err } return ret, nil - // { - // "description": "Generate an AdSense report based on the saved report ID sent in the query parameters.", - // "httpMethod": "GET", - // "id": "adsense.accounts.reports.saved.generate", - // "parameterOrder": [ - // "accountId", - // "savedReportId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the saved reports belong.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "savedReportId": { - // "description": "The saved report to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "accounts/{accountId}/reports/{savedReportId}", - // "response": { - // "$ref": "AdsenseReportsGenerateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.reports.saved.list": +} type AccountsReportsSavedListCall struct { s *Service @@ -4194,56 +3175,53 @@ type AccountsReportsSavedListCall struct { } // List: List all saved reports in the specified AdSense account. +// +// - accountId: Account to which the saved reports belong. func (r *AccountsReportsSavedService) List(accountId string) *AccountsReportsSavedListCall { c := &AccountsReportsSavedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved reports to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved reports to include in the response, used for paging. func (c *AccountsReportsSavedListCall) MaxResults(maxResults int64) *AccountsReportsSavedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved reports. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved reports. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsReportsSavedListCall) PageToken(pageToken string) *AccountsReportsSavedListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsReportsSavedListCall) Fields(s ...googleapi.Field) *AccountsReportsSavedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsReportsSavedListCall) IfNoneMatch(entityTag string) *AccountsReportsSavedListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsReportsSavedListCall) Context(ctx context.Context) *AccountsReportsSavedListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsReportsSavedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4252,12 +3230,7 @@ func (c *AccountsReportsSavedListCall) Header() http.Header { } func (c *AccountsReportsSavedListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4274,16 +3247,14 @@ func (c *AccountsReportsSavedListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.saved.list" call. -// Exactly one of *SavedReports or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedReports.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedReports.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4291,17 +3262,17 @@ func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedR if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedReports{ ServerResponse: googleapi.ServerResponse{ @@ -4314,44 +3285,6 @@ func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedR return nil, err } return ret, nil - // { - // "description": "List all saved reports in the specified AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.reports.saved.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the saved reports belong.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of saved reports to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/reports/saved", - // "response": { - // "$ref": "SavedReports" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -4359,7 +3292,7 @@ func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedR // The provided context supersedes any context provided to the Context method. func (c *AccountsReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4375,8 +3308,6 @@ func (c *AccountsReportsSavedListCall) Pages(ctx context.Context, f func(*SavedR } } -// method id "adsense.accounts.savedadstyles.get": - type AccountsSavedadstylesGetCall struct { s *Service accountId string @@ -4388,6 +3319,9 @@ type AccountsSavedadstylesGetCall struct { } // Get: List a specific saved ad style for the specified account. +// +// - accountId: Account for which to get the saved ad style. +// - savedAdStyleId: Saved ad style to retrieve. func (r *AccountsSavedadstylesService) Get(accountId string, savedAdStyleId string) *AccountsSavedadstylesGetCall { c := &AccountsSavedadstylesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -4396,33 +3330,29 @@ func (r *AccountsSavedadstylesService) Get(accountId string, savedAdStyleId stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsSavedadstylesGetCall) Fields(s ...googleapi.Field) *AccountsSavedadstylesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsSavedadstylesGetCall) IfNoneMatch(entityTag string) *AccountsSavedadstylesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsSavedadstylesGetCall) Context(ctx context.Context) *AccountsSavedadstylesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsSavedadstylesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4431,12 +3361,7 @@ func (c *AccountsSavedadstylesGetCall) Header() http.Header { } func (c *AccountsSavedadstylesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4454,16 +3379,14 @@ func (c *AccountsSavedadstylesGetCall) doRequest(alt string) (*http.Response, er "accountId": c.accountId, "savedAdStyleId": c.savedAdStyleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.savedadstyles.get" call. -// Exactly one of *SavedAdStyle or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedAdStyle.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedAdStyle.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsSavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedAdStyle, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4471,17 +3394,17 @@ func (c *AccountsSavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedA if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedAdStyle{ ServerResponse: googleapi.ServerResponse{ @@ -4494,41 +3417,7 @@ func (c *AccountsSavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedA return nil, err } return ret, nil - // { - // "description": "List a specific saved ad style for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.savedadstyles.get", - // "parameterOrder": [ - // "accountId", - // "savedAdStyleId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account for which to get the saved ad style.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "savedAdStyleId": { - // "description": "Saved ad style to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/savedadstyles/{savedAdStyleId}", - // "response": { - // "$ref": "SavedAdStyle" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.savedadstyles.list": +} type AccountsSavedadstylesListCall struct { s *Service @@ -4540,57 +3429,53 @@ type AccountsSavedadstylesListCall struct { } // List: List all saved ad styles in the specified account. +// +// - accountId: Account for which to list saved ad styles. func (r *AccountsSavedadstylesService) List(accountId string) *AccountsSavedadstylesListCall { c := &AccountsSavedadstylesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved ad styles to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved ad styles to include in the response, used for paging. func (c *AccountsSavedadstylesListCall) MaxResults(maxResults int64) *AccountsSavedadstylesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved ad styles. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved ad styles. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsSavedadstylesListCall) PageToken(pageToken string) *AccountsSavedadstylesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsSavedadstylesListCall) Fields(s ...googleapi.Field) *AccountsSavedadstylesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsSavedadstylesListCall) IfNoneMatch(entityTag string) *AccountsSavedadstylesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsSavedadstylesListCall) Context(ctx context.Context) *AccountsSavedadstylesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsSavedadstylesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4599,12 +3484,7 @@ func (c *AccountsSavedadstylesListCall) Header() http.Header { } func (c *AccountsSavedadstylesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4621,16 +3501,14 @@ func (c *AccountsSavedadstylesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.savedadstyles.list" call. -// Exactly one of *SavedAdStyles or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedAdStyles.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedAdStyles.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsSavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4638,17 +3516,17 @@ func (c *AccountsSavedadstylesListCall) Do(opts ...googleapi.CallOption) (*Saved if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedAdStyles{ ServerResponse: googleapi.ServerResponse{ @@ -4661,44 +3539,6 @@ func (c *AccountsSavedadstylesListCall) Do(opts ...googleapi.CallOption) (*Saved return nil, err } return ret, nil - // { - // "description": "List all saved ad styles in the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.savedadstyles.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account for which to list saved ad styles.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of saved ad styles to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/savedadstyles", - // "response": { - // "$ref": "SavedAdStyles" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -4706,7 +3546,7 @@ func (c *AccountsSavedadstylesListCall) Do(opts ...googleapi.CallOption) (*Saved // The provided context supersedes any context provided to the Context method. func (c *AccountsSavedadstylesListCall) Pages(ctx context.Context, f func(*SavedAdStyles) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4722,8 +3562,6 @@ func (c *AccountsSavedadstylesListCall) Pages(ctx context.Context, f func(*Saved } } -// method id "adsense.accounts.urlchannels.list": - type AccountsUrlchannelsListCall struct { s *Service accountId string @@ -4734,8 +3572,11 @@ type AccountsUrlchannelsListCall struct { header_ http.Header } -// List: List all URL channels in the specified ad client for the -// specified account. +// List: List all URL channels in the specified ad client for the specified +// account. +// +// - accountId: Account to which the ad client belongs. +// - adClientId: Ad client for which to list URL channels. func (r *AccountsUrlchannelsService) List(accountId string, adClientId string) *AccountsUrlchannelsListCall { c := &AccountsUrlchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -4743,50 +3584,45 @@ func (r *AccountsUrlchannelsService) List(accountId string, adClientId string) * return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of URL channels to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// URL channels to include in the response, used for paging. func (c *AccountsUrlchannelsListCall) MaxResults(maxResults int64) *AccountsUrlchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through URL channels. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through URL channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsUrlchannelsListCall) PageToken(pageToken string) *AccountsUrlchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUrlchannelsListCall) Fields(s ...googleapi.Field) *AccountsUrlchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsUrlchannelsListCall) IfNoneMatch(entityTag string) *AccountsUrlchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUrlchannelsListCall) Context(ctx context.Context) *AccountsUrlchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUrlchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4795,12 +3631,7 @@ func (c *AccountsUrlchannelsListCall) Header() http.Header { } func (c *AccountsUrlchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4818,16 +3649,14 @@ func (c *AccountsUrlchannelsListCall) doRequest(alt string) (*http.Response, err "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.urlchannels.list" call. -// Exactly one of *UrlChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UrlChannels.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UrlChannels.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4835,17 +3664,17 @@ func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UrlChannels{ ServerResponse: googleapi.ServerResponse{ @@ -4858,51 +3687,6 @@ func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChan return nil, err } return ret, nil - // { - // "description": "List all URL channels in the specified ad client for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.urlchannels.list", - // "parameterOrder": [ - // "accountId", - // "adClientId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client for which to list URL channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of URL channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", - // "response": { - // "$ref": "UrlChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -4910,7 +3694,7 @@ func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChan // The provided context supersedes any context provided to the Context method. func (c *AccountsUrlchannelsListCall) Pages(ctx context.Context, f func(*UrlChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4926,8 +3710,6 @@ func (c *AccountsUrlchannelsListCall) Pages(ctx context.Context, f func(*UrlChan } } -// method id "adsense.adclients.list": - type AdclientsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -4942,50 +3724,45 @@ func (r *AdclientsService) List() *AdclientsListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad clients to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad clients to include in the response, used for paging. func (c *AdclientsListCall) MaxResults(maxResults int64) *AdclientsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad clients. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad clients. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AdclientsListCall) PageToken(pageToken string) *AdclientsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdclientsListCall) Fields(s ...googleapi.Field) *AdclientsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdclientsListCall) IfNoneMatch(entityTag string) *AdclientsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdclientsListCall) Context(ctx context.Context) *AdclientsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdclientsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4994,12 +3771,7 @@ func (c *AdclientsListCall) Header() http.Header { } func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5013,16 +3785,14 @@ func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.adclients.list" call. -// Exactly one of *AdClients or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdClients.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdClients.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5030,17 +3800,17 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdClients{ ServerResponse: googleapi.ServerResponse{ @@ -5053,35 +3823,6 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) return nil, err } return ret, nil - // { - // "description": "List all ad clients in this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.adclients.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of ad clients to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients", - // "response": { - // "$ref": "AdClients" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -5089,7 +3830,7 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) // The provided context supersedes any context provided to the Context method. func (c *AdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5105,8 +3846,6 @@ func (c *AdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) } } -// method id "adsense.adunits.get": - type AdunitsGetCall struct { s *Service adClientId string @@ -5118,6 +3857,9 @@ type AdunitsGetCall struct { } // Get: Gets the specified ad unit in the specified ad client. +// +// - adClientId: Ad client for which to get the ad unit. +// - adUnitId: Ad unit to retrieve. func (r *AdunitsService) Get(adClientId string, adUnitId string) *AdunitsGetCall { c := &AdunitsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -5126,33 +3868,29 @@ func (r *AdunitsService) Get(adClientId string, adUnitId string) *AdunitsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsGetCall) Fields(s ...googleapi.Field) *AdunitsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsGetCall) IfNoneMatch(entityTag string) *AdunitsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsGetCall) Context(ctx context.Context) *AdunitsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5161,12 +3899,7 @@ func (c *AdunitsGetCall) Header() http.Header { } func (c *AdunitsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5184,16 +3917,14 @@ func (c *AdunitsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.adunits.get" call. -// Exactly one of *AdUnit or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnit.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnit.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5201,17 +3932,17 @@ func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnit{ ServerResponse: googleapi.ServerResponse{ @@ -5224,41 +3955,7 @@ func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { return nil, err } return ret, nil - // { - // "description": "Gets the specified ad unit in the specified ad client.", - // "httpMethod": "GET", - // "id": "adsense.adunits.get", - // "parameterOrder": [ - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to get the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits/{adUnitId}", - // "response": { - // "$ref": "AdUnit" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.adunits.getAdCode": +} type AdunitsGetAdCodeCall struct { s *Service @@ -5271,6 +3968,9 @@ type AdunitsGetAdCodeCall struct { } // GetAdCode: Get ad code for the specified ad unit. +// +// - adClientId: Ad client with contains the ad unit. +// - adUnitId: Ad unit to get the code for. func (r *AdunitsService) GetAdCode(adClientId string, adUnitId string) *AdunitsGetAdCodeCall { c := &AdunitsGetAdCodeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -5279,33 +3979,29 @@ func (r *AdunitsService) GetAdCode(adClientId string, adUnitId string) *AdunitsG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsGetAdCodeCall) Fields(s ...googleapi.Field) *AdunitsGetAdCodeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsGetAdCodeCall) IfNoneMatch(entityTag string) *AdunitsGetAdCodeCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsGetAdCodeCall) Context(ctx context.Context) *AdunitsGetAdCodeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsGetAdCodeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5314,12 +4010,7 @@ func (c *AdunitsGetAdCodeCall) Header() http.Header { } func (c *AdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5337,16 +4028,14 @@ func (c *AdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.adunits.getAdCode" call. -// Exactly one of *AdCode or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdCode.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5354,17 +4043,17 @@ func (c *AdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdCode{ ServerResponse: googleapi.ServerResponse{ @@ -5377,41 +4066,7 @@ func (c *AdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode, error) return nil, err } return ret, nil - // { - // "description": "Get ad code for the specified ad unit.", - // "httpMethod": "GET", - // "id": "adsense.adunits.getAdCode", - // "parameterOrder": [ - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client with contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit to get the code for.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits/{adUnitId}/adcode", - // "response": { - // "$ref": "AdCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.adunits.list": +} type AdunitsListCall struct { s *Service @@ -5422,65 +4077,61 @@ type AdunitsListCall struct { header_ http.Header } -// List: List all ad units in the specified ad client for this AdSense -// account. +// List: List all ad units in the specified ad client for this AdSense account. +// +// - adClientId: Ad client for which to list ad units. func (r *AdunitsService) List(adClientId string) *AdunitsListCall { c := &AdunitsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *AdunitsListCall) IncludeInactive(includeInactive bool) *AdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *AdunitsListCall) MaxResults(maxResults int64) *AdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AdunitsListCall) PageToken(pageToken string) *AdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsListCall) Fields(s ...googleapi.Field) *AdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsListCall) IfNoneMatch(entityTag string) *AdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsListCall) Context(ctx context.Context) *AdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5489,12 +4140,7 @@ func (c *AdunitsListCall) Header() http.Header { } func (c *AdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5511,16 +4157,14 @@ func (c *AdunitsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5528,17 +4172,17 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -5551,49 +4195,6 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified ad client for this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.adunits.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -5601,7 +4202,7 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { // The provided context supersedes any context provided to the Context method. func (c *AdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5617,8 +4218,6 @@ func (c *AdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) err } } -// method id "adsense.adunits.customchannels.list": - type AdunitsCustomchannelsListCall struct { s *Service adClientId string @@ -5629,8 +4228,10 @@ type AdunitsCustomchannelsListCall struct { header_ http.Header } -// List: List all custom channels which the specified ad unit belongs -// to. +// List: List all custom channels which the specified ad unit belongs to. +// +// - adClientId: Ad client which contains the ad unit. +// - adUnitId: Ad unit for which to list custom channels. func (r *AdunitsCustomchannelsService) List(adClientId string, adUnitId string) *AdunitsCustomchannelsListCall { c := &AdunitsCustomchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -5638,51 +4239,45 @@ func (r *AdunitsCustomchannelsService) List(adClientId string, adUnitId string) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *AdunitsCustomchannelsListCall) MaxResults(maxResults int64) *AdunitsCustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AdunitsCustomchannelsListCall) PageToken(pageToken string) *AdunitsCustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsCustomchannelsListCall) Fields(s ...googleapi.Field) *AdunitsCustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsCustomchannelsListCall) IfNoneMatch(entityTag string) *AdunitsCustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsCustomchannelsListCall) Context(ctx context.Context) *AdunitsCustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsCustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5691,12 +4286,7 @@ func (c *AdunitsCustomchannelsListCall) Header() http.Header { } func (c *AdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5714,16 +4304,14 @@ func (c *AdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.adunits.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5731,17 +4319,17 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -5754,51 +4342,6 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo return nil, err } return ret, nil - // { - // "description": "List all custom channels which the specified ad unit belongs to.", - // "httpMethod": "GET", - // "id": "adsense.adunits.customchannels.list", - // "parameterOrder": [ - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -5806,7 +4349,7 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo // The provided context supersedes any context provided to the Context method. func (c *AdunitsCustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5822,8 +4365,6 @@ func (c *AdunitsCustomchannelsListCall) Pages(ctx context.Context, f func(*Custo } } -// method id "adsense.alerts.list": - type AlertsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -5839,42 +4380,38 @@ func (r *AlertsService) List() *AlertsListCall { } // Locale sets the optional parameter "locale": The locale to use for -// translating alert messages. The account locale will be used if this -// is not supplied. The AdSense default (English) will be used if the -// supplied locale is invalid or unsupported. +// translating alert messages. The account locale will be used if this is not +// supplied. The AdSense default (English) will be used if the supplied locale +// is invalid or unsupported. func (c *AlertsListCall) Locale(locale string) *AlertsListCall { c.urlParams_.Set("locale", locale) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AlertsListCall) Fields(s ...googleapi.Field) *AlertsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AlertsListCall) IfNoneMatch(entityTag string) *AlertsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AlertsListCall) Context(ctx context.Context) *AlertsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AlertsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5883,12 +4420,7 @@ func (c *AlertsListCall) Header() http.Header { } func (c *AlertsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5902,16 +4434,14 @@ func (c *AlertsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.alerts.list" call. -// Exactly one of *Alerts or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Alerts.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Alerts.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5919,17 +4449,17 @@ func (c *AlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Alerts{ ServerResponse: googleapi.ServerResponse{ @@ -5942,30 +4472,7 @@ func (c *AlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { return nil, err } return ret, nil - // { - // "description": "List the alerts for this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.alerts.list", - // "parameters": { - // "locale": { - // "description": "The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "alerts", - // "response": { - // "$ref": "Alerts" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.customchannels.get": +} type CustomchannelsGetCall struct { s *Service @@ -5978,6 +4485,9 @@ type CustomchannelsGetCall struct { } // Get: Get the specified custom channel from the specified ad client. +// +// - adClientId: Ad client which contains the custom channel. +// - customChannelId: Custom channel to retrieve. func (r *CustomchannelsService) Get(adClientId string, customChannelId string) *CustomchannelsGetCall { c := &CustomchannelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -5986,33 +4496,29 @@ func (r *CustomchannelsService) Get(adClientId string, customChannelId string) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsGetCall) Fields(s ...googleapi.Field) *CustomchannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsGetCall) IfNoneMatch(entityTag string) *CustomchannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsGetCall) Context(ctx context.Context) *CustomchannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6021,12 +4527,7 @@ func (c *CustomchannelsGetCall) Header() http.Header { } func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6044,16 +4545,14 @@ func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.customchannels.get" call. -// Exactly one of *CustomChannel or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannel.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannel.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6061,17 +4560,17 @@ func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannel{ ServerResponse: googleapi.ServerResponse{ @@ -6084,41 +4583,7 @@ func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel return nil, err } return ret, nil - // { - // "description": "Get the specified custom channel from the specified ad client.", - // "httpMethod": "GET", - // "id": "adsense.customchannels.get", - // "parameterOrder": [ - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels/{customChannelId}", - // "response": { - // "$ref": "CustomChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.customchannels.list": +} type CustomchannelsListCall struct { s *Service @@ -6129,59 +4594,55 @@ type CustomchannelsListCall struct { header_ http.Header } -// List: List all custom channels in the specified ad client for this -// AdSense account. +// List: List all custom channels in the specified ad client for this AdSense +// account. +// +// - adClientId: Ad client for which to list custom channels. func (r *CustomchannelsService) List(adClientId string) *CustomchannelsListCall { c := &CustomchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *CustomchannelsListCall) MaxResults(maxResults int64) *CustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *CustomchannelsListCall) PageToken(pageToken string) *CustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsListCall) Fields(s ...googleapi.Field) *CustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsListCall) IfNoneMatch(entityTag string) *CustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsListCall) Context(ctx context.Context) *CustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6190,12 +4651,7 @@ func (c *CustomchannelsListCall) Header() http.Header { } func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6212,16 +4668,14 @@ func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6229,17 +4683,17 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -6252,44 +4706,6 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne return nil, err } return ret, nil - // { - // "description": "List all custom channels in the specified ad client for this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.customchannels.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -6297,7 +4713,7 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne // The provided context supersedes any context provided to the Context method. func (c *CustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6313,8 +4729,6 @@ func (c *CustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChanne } } -// method id "adsense.customchannels.adunits.list": - type CustomchannelsAdunitsListCall struct { s *Service adClientId string @@ -6326,6 +4740,9 @@ type CustomchannelsAdunitsListCall struct { } // List: List all ad units in the specified custom channel. +// +// - adClientId: Ad client which contains the custom channel. +// - customChannelId: Custom channel for which to list ad units. func (r *CustomchannelsAdunitsService) List(adClientId string, customChannelId string) *CustomchannelsAdunitsListCall { c := &CustomchannelsAdunitsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId @@ -6333,57 +4750,52 @@ func (r *CustomchannelsAdunitsService) List(adClientId string, customChannelId s return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *CustomchannelsAdunitsListCall) IncludeInactive(includeInactive bool) *CustomchannelsAdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *CustomchannelsAdunitsListCall) MaxResults(maxResults int64) *CustomchannelsAdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *CustomchannelsAdunitsListCall) PageToken(pageToken string) *CustomchannelsAdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsAdunitsListCall) Fields(s ...googleapi.Field) *CustomchannelsAdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsAdunitsListCall) IfNoneMatch(entityTag string) *CustomchannelsAdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsAdunitsListCall) Context(ctx context.Context) *CustomchannelsAdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsAdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6392,12 +4804,7 @@ func (c *CustomchannelsAdunitsListCall) Header() http.Header { } func (c *CustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6415,16 +4822,14 @@ func (c *CustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.customchannels.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6432,17 +4837,17 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -6455,56 +4860,6 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified custom channel.", - // "httpMethod": "GET", - // "id": "adsense.customchannels.adunits.list", - // "parameterOrder": [ - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -6512,7 +4867,7 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni // The provided context supersedes any context provided to the Context method. func (c *CustomchannelsAdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6528,8 +4883,6 @@ func (c *CustomchannelsAdunitsListCall) Pages(ctx context.Context, f func(*AdUni } } -// method id "adsense.metadata.dimensions.list": - type MetadataDimensionsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -6546,33 +4899,29 @@ func (r *MetadataDimensionsService) List() *MetadataDimensionsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetadataDimensionsListCall) Fields(s ...googleapi.Field) *MetadataDimensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetadataDimensionsListCall) IfNoneMatch(entityTag string) *MetadataDimensionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetadataDimensionsListCall) Context(ctx context.Context) *MetadataDimensionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetadataDimensionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6581,12 +4930,7 @@ func (c *MetadataDimensionsListCall) Header() http.Header { } func (c *MetadataDimensionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6600,16 +4944,14 @@ func (c *MetadataDimensionsListCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.metadata.dimensions.list" call. -// Exactly one of *Metadata or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Metadata.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Metadata.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6617,17 +4959,17 @@ func (c *MetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Metadata{ ServerResponse: googleapi.ServerResponse{ @@ -6640,24 +4982,8 @@ func (c *MetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata return nil, err } return ret, nil - // { - // "description": "List the metadata for the dimensions available to this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.metadata.dimensions.list", - // "path": "metadata/dimensions", - // "response": { - // "$ref": "Metadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } -// method id "adsense.metadata.metrics.list": - type MetadataMetricsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -6666,41 +4992,36 @@ type MetadataMetricsListCall struct { header_ http.Header } -// List: List the metadata for the metrics available to this AdSense -// account. +// List: List the metadata for the metrics available to this AdSense account. func (r *MetadataMetricsService) List() *MetadataMetricsListCall { c := &MetadataMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetadataMetricsListCall) Fields(s ...googleapi.Field) *MetadataMetricsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetadataMetricsListCall) IfNoneMatch(entityTag string) *MetadataMetricsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetadataMetricsListCall) Context(ctx context.Context) *MetadataMetricsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetadataMetricsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6709,12 +5030,7 @@ func (c *MetadataMetricsListCall) Header() http.Header { } func (c *MetadataMetricsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6728,16 +5044,14 @@ func (c *MetadataMetricsListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.metadata.metrics.list" call. -// Exactly one of *Metadata or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Metadata.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Metadata.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6745,17 +5059,17 @@ func (c *MetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Metadata{ ServerResponse: googleapi.ServerResponse{ @@ -6768,24 +5082,8 @@ func (c *MetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, e return nil, err } return ret, nil - // { - // "description": "List the metadata for the metrics available to this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.metadata.metrics.list", - // "path": "metadata/metrics", - // "response": { - // "$ref": "Metadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } -// method id "adsense.reports.generate": - type ReportsGenerateCall struct { s *Service urlParams_ gensupport.URLParams @@ -6794,9 +5092,14 @@ type ReportsGenerateCall struct { header_ http.Header } -// Generate: Generate an AdSense report based on the report request sent -// in the query parameters. Returns the result as JSON; to retrieve -// output in CSV format specify "alt=csv" as a query parameter. +// Generate: Generate an AdSense report based on the report request sent in the +// query parameters. Returns the result as JSON; to retrieve output in CSV +// format specify "alt=csv" as a query parameter. +// +// - endDate: End of the date range to report on in "YYYY-MM-DD" format, +// inclusive. +// - startDate: Start of the date range to report on in "YYYY-MM-DD" format, +// inclusive. func (r *ReportsService) Generate(startDate string, endDate string) *ReportsGenerateCall { c := &ReportsGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("startDate", startDate) @@ -6804,23 +5107,23 @@ func (r *ReportsService) Generate(startDate string, endDate string) *ReportsGene return c } -// AccountId sets the optional parameter "accountId": Accounts upon -// which to report. +// AccountId sets the optional parameter "accountId": Accounts upon which to +// report. func (c *ReportsGenerateCall) AccountId(accountId ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("accountId", append([]string{}, accountId...)) return c } -// Currency sets the optional parameter "currency": Optional currency to -// use when reporting on monetary metrics. Defaults to the account's -// currency if not set. +// Currency sets the optional parameter "currency": Optional currency to use +// when reporting on monetary metrics. Defaults to the account's currency if +// not set. func (c *ReportsGenerateCall) Currency(currency string) *ReportsGenerateCall { c.urlParams_.Set("currency", currency) return c } -// Dimension sets the optional parameter "dimension": Dimensions to base -// the report on. +// Dimension sets the optional parameter "dimension": Dimensions to base the +// report on. func (c *ReportsGenerateCall) Dimension(dimension ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("dimension", append([]string{}, dimension...)) return c @@ -6833,81 +5136,76 @@ func (c *ReportsGenerateCall) Filter(filter ...string) *ReportsGenerateCall { return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *ReportsGenerateCall) Locale(locale string) *ReportsGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *ReportsGenerateCall) MaxResults(maxResults int64) *ReportsGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Metric sets the optional parameter "metric": Numeric columns to -// include in the report. +// Metric sets the optional parameter "metric": Numeric columns to include in +// the report. func (c *ReportsGenerateCall) Metric(metric ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("metric", append([]string{}, metric...)) return c } -// Sort sets the optional parameter "sort": The name of a dimension or -// metric to sort the resulting report on, optionally prefixed with "+" -// to sort ascending or "-" to sort descending. If no prefix is -// specified, the column is sorted ascending. +// Sort sets the optional parameter "sort": The name of a dimension or metric +// to sort the resulting report on, optionally prefixed with "+" to sort +// ascending or "-" to sort descending. If no prefix is specified, the column +// is sorted ascending. func (c *ReportsGenerateCall) Sort(sort ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("sort", append([]string{}, sort...)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *ReportsGenerateCall) StartIndex(startIndex int64) *ReportsGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } -// UseTimezoneReporting sets the optional parameter -// "useTimezoneReporting": Whether the report should be generated in the -// AdSense account's local timezone. If false default PST/PDT timezone -// will be used. +// UseTimezoneReporting sets the optional parameter "useTimezoneReporting": +// Whether the report should be generated in the AdSense account's local +// timezone. If false default PST/PDT timezone will be used. func (c *ReportsGenerateCall) UseTimezoneReporting(useTimezoneReporting bool) *ReportsGenerateCall { c.urlParams_.Set("useTimezoneReporting", fmt.Sprint(useTimezoneReporting)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsGenerateCall) Fields(s ...googleapi.Field) *ReportsGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsGenerateCall) IfNoneMatch(entityTag string) *ReportsGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ReportsGenerateCall) Context(ctx context.Context) *ReportsGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6916,12 +5214,7 @@ func (c *ReportsGenerateCall) Header() http.Header { } func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6935,7 +5228,7 @@ func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -6947,20 +5240,19 @@ func (c *ReportsGenerateCall) Download(opts ...googleapi.CallOption) (*http.Resp if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "adsense.reports.generate" call. -// Exactly one of *AdsenseReportsGenerateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsGenerateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6968,17 +5260,17 @@ func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsenseReportsGenerateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6991,111 +5283,7 @@ func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsG return nil, err } return ret, nil - // { - // "description": "Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.", - // "httpMethod": "GET", - // "id": "adsense.reports.generate", - // "parameterOrder": [ - // "startDate", - // "endDate" - // ], - // "parameters": { - // "accountId": { - // "description": "Accounts upon which to report.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "currency": { - // "description": "Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.", - // "location": "query", - // "pattern": "[a-zA-Z]+", - // "type": "string" - // }, - // "dimension": { - // "description": "Dimensions to base the report on.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "endDate": { - // "description": "End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Filters to be run on the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+(==|=@).+", - // "repeated": true, - // "type": "string" - // }, - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "metric": { - // "description": "Numeric columns to include in the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "sort": { - // "description": "The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort descending. If no prefix is specified, the column is sorted ascending.", - // "location": "query", - // "pattern": "(\\+|-)?[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "startDate": { - // "description": "Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // }, - // "useTimezoneReporting": { - // "description": "Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "reports", - // "response": { - // "$ref": "AdsenseReportsGenerateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "adsense.reports.saved.generate": +} type ReportsSavedGenerateCall struct { s *Service @@ -7106,64 +5294,62 @@ type ReportsSavedGenerateCall struct { header_ http.Header } -// Generate: Generate an AdSense report based on the saved report ID -// sent in the query parameters. +// Generate: Generate an AdSense report based on the saved report ID sent in +// the query parameters. +// +// - savedReportId: The saved report to retrieve. func (r *ReportsSavedService) Generate(savedReportId string) *ReportsSavedGenerateCall { c := &ReportsSavedGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.savedReportId = savedReportId return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *ReportsSavedGenerateCall) Locale(locale string) *ReportsSavedGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *ReportsSavedGenerateCall) MaxResults(maxResults int64) *ReportsSavedGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *ReportsSavedGenerateCall) StartIndex(startIndex int64) *ReportsSavedGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsSavedGenerateCall) Fields(s ...googleapi.Field) *ReportsSavedGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsSavedGenerateCall) IfNoneMatch(entityTag string) *ReportsSavedGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsSavedGenerateCall) Context(ctx context.Context) *ReportsSavedGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsSavedGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7172,12 +5358,7 @@ func (c *ReportsSavedGenerateCall) Header() http.Header { } func (c *ReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7194,16 +5375,15 @@ func (c *ReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "savedReportId": c.savedReportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.reports.saved.generate" call. -// Exactly one of *AdsenseReportsGenerateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsGenerateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7211,17 +5391,17 @@ func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseRep if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsenseReportsGenerateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7234,56 +5414,7 @@ func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseRep return nil, err } return ret, nil - // { - // "description": "Generate an AdSense report based on the saved report ID sent in the query parameters.", - // "httpMethod": "GET", - // "id": "adsense.reports.saved.generate", - // "parameterOrder": [ - // "savedReportId" - // ], - // "parameters": { - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "savedReportId": { - // "description": "The saved report to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "reports/{savedReportId}", - // "response": { - // "$ref": "AdsenseReportsGenerateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.reports.saved.list": +} type ReportsSavedListCall struct { s *Service @@ -7299,50 +5430,45 @@ func (r *ReportsSavedService) List() *ReportsSavedListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved reports to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved reports to include in the response, used for paging. func (c *ReportsSavedListCall) MaxResults(maxResults int64) *ReportsSavedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved reports. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved reports. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *ReportsSavedListCall) PageToken(pageToken string) *ReportsSavedListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsSavedListCall) Fields(s ...googleapi.Field) *ReportsSavedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsSavedListCall) IfNoneMatch(entityTag string) *ReportsSavedListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsSavedListCall) Context(ctx context.Context) *ReportsSavedListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsSavedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7351,12 +5477,7 @@ func (c *ReportsSavedListCall) Header() http.Header { } func (c *ReportsSavedListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7370,16 +5491,14 @@ func (c *ReportsSavedListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.reports.saved.list" call. -// Exactly one of *SavedReports or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedReports.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedReports.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7387,17 +5506,17 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedReports{ ServerResponse: googleapi.ServerResponse{ @@ -7410,35 +5529,6 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, return nil, err } return ret, nil - // { - // "description": "List all saved reports in this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.reports.saved.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of saved reports to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "reports/saved", - // "response": { - // "$ref": "SavedReports" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -7446,7 +5536,7 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, // The provided context supersedes any context provided to the Context method. func (c *ReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -7462,8 +5552,6 @@ func (c *ReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) } } -// method id "adsense.savedadstyles.get": - type SavedadstylesGetCall struct { s *Service savedAdStyleId string @@ -7474,6 +5562,8 @@ type SavedadstylesGetCall struct { } // Get: Get a specific saved ad style from the user's account. +// +// - savedAdStyleId: Saved ad style to retrieve. func (r *SavedadstylesService) Get(savedAdStyleId string) *SavedadstylesGetCall { c := &SavedadstylesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.savedAdStyleId = savedAdStyleId @@ -7481,33 +5571,29 @@ func (r *SavedadstylesService) Get(savedAdStyleId string) *SavedadstylesGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SavedadstylesGetCall) Fields(s ...googleapi.Field) *SavedadstylesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SavedadstylesGetCall) IfNoneMatch(entityTag string) *SavedadstylesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SavedadstylesGetCall) Context(ctx context.Context) *SavedadstylesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SavedadstylesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7516,12 +5602,7 @@ func (c *SavedadstylesGetCall) Header() http.Header { } func (c *SavedadstylesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7538,16 +5619,14 @@ func (c *SavedadstylesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "savedAdStyleId": c.savedAdStyleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.savedadstyles.get" call. -// Exactly one of *SavedAdStyle or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedAdStyle.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedAdStyle.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedAdStyle, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7555,17 +5634,17 @@ func (c *SavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedAdStyle, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedAdStyle{ ServerResponse: googleapi.ServerResponse{ @@ -7578,34 +5657,7 @@ func (c *SavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedAdStyle, return nil, err } return ret, nil - // { - // "description": "Get a specific saved ad style from the user's account.", - // "httpMethod": "GET", - // "id": "adsense.savedadstyles.get", - // "parameterOrder": [ - // "savedAdStyleId" - // ], - // "parameters": { - // "savedAdStyleId": { - // "description": "Saved ad style to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "savedadstyles/{savedAdStyleId}", - // "response": { - // "$ref": "SavedAdStyle" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.savedadstyles.list": +} type SavedadstylesListCall struct { s *Service @@ -7621,51 +5673,45 @@ func (r *SavedadstylesService) List() *SavedadstylesListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved ad styles to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved ad styles to include in the response, used for paging. func (c *SavedadstylesListCall) MaxResults(maxResults int64) *SavedadstylesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved ad styles. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved ad styles. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *SavedadstylesListCall) PageToken(pageToken string) *SavedadstylesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SavedadstylesListCall) Fields(s ...googleapi.Field) *SavedadstylesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SavedadstylesListCall) IfNoneMatch(entityTag string) *SavedadstylesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SavedadstylesListCall) Context(ctx context.Context) *SavedadstylesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SavedadstylesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7674,12 +5720,7 @@ func (c *SavedadstylesListCall) Header() http.Header { } func (c *SavedadstylesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7693,16 +5734,14 @@ func (c *SavedadstylesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.savedadstyles.list" call. -// Exactly one of *SavedAdStyles or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedAdStyles.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedAdStyles.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7710,17 +5749,17 @@ func (c *SavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedAdStyles{ ServerResponse: googleapi.ServerResponse{ @@ -7733,35 +5772,6 @@ func (c *SavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles return nil, err } return ret, nil - // { - // "description": "List all saved ad styles in the user's account.", - // "httpMethod": "GET", - // "id": "adsense.savedadstyles.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of saved ad styles to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "savedadstyles", - // "response": { - // "$ref": "SavedAdStyles" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -7769,7 +5779,7 @@ func (c *SavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles // The provided context supersedes any context provided to the Context method. func (c *SavedadstylesListCall) Pages(ctx context.Context, f func(*SavedAdStyles) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -7785,8 +5795,6 @@ func (c *SavedadstylesListCall) Pages(ctx context.Context, f func(*SavedAdStyles } } -// method id "adsense.urlchannels.list": - type UrlchannelsListCall struct { s *Service adClientId string @@ -7796,58 +5804,55 @@ type UrlchannelsListCall struct { header_ http.Header } -// List: List all URL channels in the specified ad client for this -// AdSense account. +// List: List all URL channels in the specified ad client for this AdSense +// account. +// +// - adClientId: Ad client for which to list URL channels. func (r *UrlchannelsService) List(adClientId string) *UrlchannelsListCall { c := &UrlchannelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.adClientId = adClientId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of URL channels to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// URL channels to include in the response, used for paging. func (c *UrlchannelsListCall) MaxResults(maxResults int64) *UrlchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through URL channels. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through URL channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *UrlchannelsListCall) PageToken(pageToken string) *UrlchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UrlchannelsListCall) Fields(s ...googleapi.Field) *UrlchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UrlchannelsListCall) IfNoneMatch(entityTag string) *UrlchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UrlchannelsListCall) Context(ctx context.Context) *UrlchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UrlchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7856,12 +5861,7 @@ func (c *UrlchannelsListCall) Header() http.Header { } func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7878,16 +5878,14 @@ func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.urlchannels.list" call. -// Exactly one of *UrlChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UrlChannels.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UrlChannels.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7895,17 +5893,17 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UrlChannels{ ServerResponse: googleapi.ServerResponse{ @@ -7918,44 +5916,6 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er return nil, err } return ret, nil - // { - // "description": "List all URL channels in the specified ad client for this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.urlchannels.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list URL channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of URL channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/urlchannels", - // "response": { - // "$ref": "UrlChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -7963,7 +5923,7 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er // The provided context supersedes any context provided to the Context method. func (c *UrlchannelsListCall) Pages(ctx context.Context, f func(*UrlChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/adsense/v1.4/adsense-gen.go b/adsense/v1.4/adsense-gen.go index 3541581ef93..55d418ed86c 100644 --- a/adsense/v1.4/adsense-gen.go +++ b/adsense/v1.4/adsense-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/adsense/management/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // adsenseService, err := adsense.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // adsenseService, err := adsense.NewService(ctx, option.WithScopes(adsense.AdsenseReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // adsenseService, err := adsense.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // adsenseService, err := adsense.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package adsense // import "google.golang.org/api/adsense/v1.4" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "adsense:v1.4" const apiName = "adsense" const apiVersion = "v1.4" const basePath = "https://www.googleapis.com/adsense/v1.4/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/adsense/v1.4/" // OAuth2 scopes used by this API. const ( @@ -91,13 +108,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -452,436 +471,329 @@ type UrlchannelsService struct { type Account struct { CreationTime int64 `json:"creation_time,omitempty,string"` - // Id: Unique identifier of this account. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#account. Kind string `json:"kind,omitempty"` - // Name: Name of this account. Name string `json:"name,omitempty"` - // Premium: Whether this account is premium. Premium bool `json:"premium,omitempty"` - // SubAccounts: Sub accounts of the this account. SubAccounts []*Account `json:"subAccounts,omitempty"` - // Timezone: AdSense timezone of this account. Timezone string `json:"timezone,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreationTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreationTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Accounts struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The accounts returned in this list response. Items []*Account `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#accounts. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through accounts. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // NextPageToken: Continuation token used to page through accounts. To retrieve + // the next page of results, set the next request's "pageToken" value to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Accounts) MarshalJSON() ([]byte, error) { +func (s Accounts) MarshalJSON() ([]byte, error) { type NoMethod Accounts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdClient struct { // ArcOptIn: Whether this ad client is opted in to ARC. ArcOptIn bool `json:"arcOptIn,omitempty"` - // Id: Unique identifier of this ad client. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#adClient. Kind string `json:"kind,omitempty"` - // ProductCode: This ad client's product code, which corresponds to the // PRODUCT_CODE report dimension. ProductCode string `json:"productCode,omitempty"` - // SupportsReporting: Whether this ad client supports being reported on. SupportsReporting bool `json:"supportsReporting,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArcOptIn") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArcOptIn") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArcOptIn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdClient) MarshalJSON() ([]byte, error) { +func (s AdClient) MarshalJSON() ([]byte, error) { type NoMethod AdClient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdClients struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The ad clients returned in this list response. Items []*AdClient `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#adClients. Kind string `json:"kind,omitempty"` - // NextPageToken: Continuation token used to page through ad clients. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdClients) MarshalJSON() ([]byte, error) { +func (s AdClients) MarshalJSON() ([]byte, error) { type NoMethod AdClients - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdCode struct { // AdCode: The Auto ad code snippet. The ad code snippet. AdCode string `json:"adCode,omitempty"` - - // AmpBody: The AMP Auto ad code snippet that goes in the body of an AMP - // page. + // AmpBody: The AMP Auto ad code snippet that goes in the body of an AMP page. AmpBody string `json:"ampBody,omitempty"` - - // AmpHead: The AMP Auto ad code snippet that goes in the head of an AMP - // page. + // AmpHead: The AMP Auto ad code snippet that goes in the head of an AMP page. AmpHead string `json:"ampHead,omitempty"` - // Kind: Kind this is, in this case adsense#adCode. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AdCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdCode") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdCode") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdCode) MarshalJSON() ([]byte, error) { +func (s AdCode) MarshalJSON() ([]byte, error) { type NoMethod AdCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdStyle struct { - // Colors: The colors which are included in the style. These are - // represented as six hexadecimal characters, similar to HTML color - // codes, but without the leading hash. + // Colors: The colors which are included in the style. These are represented as + // six hexadecimal characters, similar to HTML color codes, but without the + // leading hash. Colors *AdStyleColors `json:"colors,omitempty"` - - // Corners: The style of the corners in the ad (deprecated: never - // populated, ignored). + // Corners: The style of the corners in the ad (deprecated: never populated, + // ignored). Corners string `json:"corners,omitempty"` - // Font: The font which is included in the style. Font *AdStyleFont `json:"font,omitempty"` - // Kind: Kind this is, in this case adsense#adStyle. Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Colors") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Colors") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Colors") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdStyle) MarshalJSON() ([]byte, error) { +func (s AdStyle) MarshalJSON() ([]byte, error) { type NoMethod AdStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdStyleColors: The colors which are included in the style. These are -// represented as six hexadecimal characters, similar to HTML color -// codes, but without the leading hash. +// represented as six hexadecimal characters, similar to HTML color codes, but +// without the leading hash. type AdStyleColors struct { // Background: The color of the ad background. Background string `json:"background,omitempty"` - // Border: The color of the ad border. Border string `json:"border,omitempty"` - // Text: The color of the ad text. Text string `json:"text,omitempty"` - // Title: The color of the ad title. Title string `json:"title,omitempty"` - // Url: The color of the ad url. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "Background") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Background") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Background") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdStyleColors) MarshalJSON() ([]byte, error) { +func (s AdStyleColors) MarshalJSON() ([]byte, error) { type NoMethod AdStyleColors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdStyleFont: The font which is included in the style. type AdStyleFont struct { // Family: The family of the font. Family string `json:"family,omitempty"` - // Size: The size of the font. Size string `json:"size,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Family") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Family") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Family") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdStyleFont) MarshalJSON() ([]byte, error) { +func (s AdStyleFont) MarshalJSON() ([]byte, error) { type NoMethod AdStyleFont - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdUnit struct { // Code: Identity code of this ad unit, not necessarily unique across ad // clients. Code string `json:"code,omitempty"` - - // ContentAdsSettings: Settings specific to content ads (AFC) and - // highend mobile content ads (AFMC - deprecated). + // ContentAdsSettings: Settings specific to content ads (AFC) and highend + // mobile content ads (AFMC - deprecated). ContentAdsSettings *AdUnitContentAdsSettings `json:"contentAdsSettings,omitempty"` - // CustomStyle: Custom style information specific to this ad unit. CustomStyle *AdStyle `json:"customStyle,omitempty"` - // FeedAdsSettings: Settings specific to feed ads (AFF) - deprecated. FeedAdsSettings *AdUnitFeedAdsSettings `json:"feedAdsSettings,omitempty"` - - // Id: Unique identifier of this ad unit. This should be considered an - // opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this ad unit. This should be considered an opaque + // identifier; it is not safe to rely on it being in any particular format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#adUnit. Kind string `json:"kind,omitempty"` - - // MobileContentAdsSettings: Settings specific to WAP mobile content ads - // (AFMC) - deprecated. + // MobileContentAdsSettings: Settings specific to WAP mobile content ads (AFMC) + // - deprecated. MobileContentAdsSettings *AdUnitMobileContentAdsSettings `json:"mobileContentAdsSettings,omitempty"` - // Name: Name of this ad unit. Name string `json:"name,omitempty"` - - // SavedStyleId: ID of the saved ad style which holds this ad unit's - // style information. + // SavedStyleId: ID of the saved ad style which holds this ad unit's style + // information. SavedStyleId string `json:"savedStyleId,omitempty"` - // Status: Status of this ad unit. Possible values are: - // NEW: Indicates that the ad unit was created within the last seven - // days and does not yet have any activity associated with it. + // NEW: Indicates that the ad unit was created within the last seven days and + // does not yet have any activity associated with it. // - // ACTIVE: Indicates that there has been activity on this ad unit in the - // last seven days. + // ACTIVE: Indicates that there has been activity on this ad unit in the last + // seven days. // - // INACTIVE: Indicates that there has been no activity on this ad unit - // in the last seven days. + // INACTIVE: Indicates that there has been no activity on this ad unit in the + // last seven days. Status string `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnit) MarshalJSON() ([]byte, error) { +func (s AdUnit) MarshalJSON() ([]byte, error) { type NoMethod AdUnit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdUnitContentAdsSettings: Settings specific to content ads (AFC) and -// highend mobile content ads (AFMC - deprecated). +// AdUnitContentAdsSettings: Settings specific to content ads (AFC) and highend +// mobile content ads (AFMC - deprecated). type AdUnitContentAdsSettings struct { - // BackupOption: The backup option to be used in instances where no ad - // is available. + // BackupOption: The backup option to be used in instances where no ad is + // available. BackupOption *AdUnitContentAdsSettingsBackupOption `json:"backupOption,omitempty"` - // Size: Size of this ad unit. Size string `json:"size,omitempty"` - // Type: Type of this ad unit. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "BackupOption") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BackupOption") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BackupOption") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnitContentAdsSettings) MarshalJSON() ([]byte, error) { +func (s AdUnitContentAdsSettings) MarshalJSON() ([]byte, error) { type NoMethod AdUnitContentAdsSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdUnitContentAdsSettingsBackupOption: The backup option to be used in @@ -889,386 +801,287 @@ func (s *AdUnitContentAdsSettings) MarshalJSON() ([]byte, error) { type AdUnitContentAdsSettingsBackupOption struct { // Color: Color to use when type is set to COLOR. Color string `json:"color,omitempty"` - - // Type: Type of the backup option. Possible values are BLANK, COLOR and - // URL. + // Type: Type of the backup option. Possible values are BLANK, COLOR and URL. Type string `json:"type,omitempty"` - // Url: URL to use when type is set to URL. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Color") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Color") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Color") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnitContentAdsSettingsBackupOption) MarshalJSON() ([]byte, error) { +func (s AdUnitContentAdsSettingsBackupOption) MarshalJSON() ([]byte, error) { type NoMethod AdUnitContentAdsSettingsBackupOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdUnitFeedAdsSettings: Settings specific to feed ads (AFF) - -// deprecated. +// AdUnitFeedAdsSettings: Settings specific to feed ads (AFF) - deprecated. type AdUnitFeedAdsSettings struct { // AdPosition: The position of the ads relative to the feed entries. AdPosition string `json:"adPosition,omitempty"` - - // Frequency: The frequency at which ads should appear in the feed (i.e. - // every N entries). + // Frequency: The frequency at which ads should appear in the feed (i.e. every + // N entries). Frequency int64 `json:"frequency,omitempty"` - - // MinimumWordCount: The minimum length an entry should be in order to - // have attached ads. + // MinimumWordCount: The minimum length an entry should be in order to have + // attached ads. MinimumWordCount int64 `json:"minimumWordCount,omitempty"` - // Type: The type of ads which should appear. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdPosition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdPosition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdPosition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnitFeedAdsSettings) MarshalJSON() ([]byte, error) { +func (s AdUnitFeedAdsSettings) MarshalJSON() ([]byte, error) { type NoMethod AdUnitFeedAdsSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdUnitMobileContentAdsSettings: Settings specific to WAP mobile -// content ads (AFMC) - deprecated. +// AdUnitMobileContentAdsSettings: Settings specific to WAP mobile content ads +// (AFMC) - deprecated. type AdUnitMobileContentAdsSettings struct { // MarkupLanguage: The markup language to use for this ad unit. MarkupLanguage string `json:"markupLanguage,omitempty"` - // ScriptingLanguage: The scripting language to use for this ad unit. ScriptingLanguage string `json:"scriptingLanguage,omitempty"` - // Size: Size of this ad unit. Size string `json:"size,omitempty"` - // Type: Type of this ad unit. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "MarkupLanguage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MarkupLanguage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MarkupLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnitMobileContentAdsSettings) MarshalJSON() ([]byte, error) { +func (s AdUnitMobileContentAdsSettings) MarshalJSON() ([]byte, error) { type NoMethod AdUnitMobileContentAdsSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdUnits struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The ad units returned in this list response. Items []*AdUnit `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#adUnits. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through ad units. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // NextPageToken: Continuation token used to page through ad units. To retrieve + // the next page of results, set the next request's "pageToken" value to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdUnits) MarshalJSON() ([]byte, error) { +func (s AdUnits) MarshalJSON() ([]byte, error) { type NoMethod AdUnits - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdsenseReportsGenerateResponse struct { - // Averages: The averages of the report. This is the same length as any - // other row in the report; cells corresponding to dimension columns are - // empty. + // Averages: The averages of the report. This is the same length as any other + // row in the report; cells corresponding to dimension columns are empty. Averages []string `json:"averages,omitempty"` - // EndDate: The requested end date in yyyy-mm-dd format. EndDate string `json:"endDate,omitempty"` - - // Headers: The header information of the columns requested in the - // report. This is a list of headers; one for each dimension in the - // request, followed by one for each metric in the request. + // Headers: The header information of the columns requested in the report. This + // is a list of headers; one for each dimension in the request, followed by one + // for each metric in the request. Headers []*AdsenseReportsGenerateResponseHeaders `json:"headers,omitempty"` - // Kind: Kind this is, in this case adsense#report. Kind string `json:"kind,omitempty"` - - // Rows: The output rows of the report. Each row is a list of cells; one - // for each dimension in the request, followed by one for each metric in - // the request. The dimension cells contain strings, and the metric - // cells contain numbers. + // Rows: The output rows of the report. Each row is a list of cells; one for + // each dimension in the request, followed by one for each metric in the + // request. The dimension cells contain strings, and the metric cells contain + // numbers. Rows [][]string `json:"rows,omitempty"` - // StartDate: The requested start date in yyyy-mm-dd format. StartDate string `json:"startDate,omitempty"` - - // TotalMatchedRows: The total number of rows matched by the report - // request. Fewer rows may be returned in the response due to being - // limited by the row count requested or the report row limit. + // TotalMatchedRows: The total number of rows matched by the report request. + // Fewer rows may be returned in the response due to being limited by the row + // count requested or the report row limit. TotalMatchedRows int64 `json:"totalMatchedRows,omitempty,string"` - - // Totals: The totals of the report. This is the same length as any - // other row in the report; cells corresponding to dimension columns are - // empty. + // Totals: The totals of the report. This is the same length as any other row + // in the report; cells corresponding to dimension columns are empty. Totals []string `json:"totals,omitempty"` - // Warnings: Any warnings associated with generation of the report. Warnings []string `json:"warnings,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Averages") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Averages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Averages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdsenseReportsGenerateResponse) MarshalJSON() ([]byte, error) { +func (s AdsenseReportsGenerateResponse) MarshalJSON() ([]byte, error) { type NoMethod AdsenseReportsGenerateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AdsenseReportsGenerateResponseHeaders struct { - // Currency: The currency of this column. Only present if the header - // type is METRIC_CURRENCY. + // Currency: The currency of this column. Only present if the header type is + // METRIC_CURRENCY. Currency string `json:"currency,omitempty"` - // Name: The name of the header. Name string `json:"name,omitempty"` - - // Type: The type of the header; one of DIMENSION, METRIC_TALLY, - // METRIC_RATIO, or METRIC_CURRENCY. + // Type: The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, + // or METRIC_CURRENCY. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Currency") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Currency") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Currency") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdsenseReportsGenerateResponseHeaders) MarshalJSON() ([]byte, error) { +func (s AdsenseReportsGenerateResponseHeaders) MarshalJSON() ([]byte, error) { type NoMethod AdsenseReportsGenerateResponseHeaders - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Alert struct { - // Id: Unique identifier of this alert. This should be considered an - // opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this alert. This should be considered an opaque + // identifier; it is not safe to rely on it being in any particular format. Id string `json:"id,omitempty"` - // IsDismissible: Whether this alert can be dismissed. IsDismissible bool `json:"isDismissible,omitempty"` - // Kind: Kind of resource this is, in this case adsense#alert. Kind string `json:"kind,omitempty"` - // Message: The localized alert message. Message string `json:"message,omitempty"` - - // Severity: Severity of this alert. Possible values: INFO, WARNING, - // SEVERE. + // Severity: Severity of this alert. Possible values: INFO, WARNING, SEVERE. Severity string `json:"severity,omitempty"` - - // Type: Type of this alert. Possible values: SELF_HOLD, - // MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, - // PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, - // API_HOLD. + // Type: Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, + // ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, + // GRAYLISTED_PUBLISHER, API_HOLD. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Alert) MarshalJSON() ([]byte, error) { +func (s Alert) MarshalJSON() ([]byte, error) { type NoMethod Alert - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Alerts struct { // Items: The alerts returned in this list response. Items []*Alert `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#alerts. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Alerts) MarshalJSON() ([]byte, error) { +func (s Alerts) MarshalJSON() ([]byte, error) { type NoMethod Alerts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomChannel struct { - // Code: Code of this custom channel, not necessarily unique across ad - // clients. + // Code: Code of this custom channel, not necessarily unique across ad clients. Code string `json:"code,omitempty"` - - // Id: Unique identifier of this custom channel. This should be - // considered an opaque identifier; it is not safe to rely on it being - // in any particular format. + // Id: Unique identifier of this custom channel. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#customChannel. Kind string `json:"kind,omitempty"` - // Name: Name of this custom channel. Name string `json:"name,omitempty"` - // TargetingInfo: The targeting information of this custom channel, if // activated. TargetingInfo *CustomChannelTargetingInfo `json:"targetingInfo,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannel) MarshalJSON() ([]byte, error) { +func (s CustomChannel) MarshalJSON() ([]byte, error) { type NoMethod CustomChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomChannelTargetingInfo: The targeting information of this custom @@ -1276,495 +1089,373 @@ func (s *CustomChannel) MarshalJSON() ([]byte, error) { type CustomChannelTargetingInfo struct { // AdsAppearOn: The name used to describe this channel externally. AdsAppearOn string `json:"adsAppearOn,omitempty"` - // Description: The external description of the channel. Description string `json:"description,omitempty"` - - // Location: The locations in which ads appear. (Only valid for content - // and mobile content ads (deprecated)). Acceptable values for content - // ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, - // MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, - // MULTIPLE_LOCATIONS. Acceptable values for mobile content ads - // (deprecated) are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. + // Location: The locations in which ads appear. (Only valid for content and + // mobile content ads (deprecated)). Acceptable values for content ads are: + // TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, + // BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable + // values for mobile content ads (deprecated) are: TOP, MIDDLE, BOTTOM, + // MULTIPLE_LOCATIONS. Location string `json:"location,omitempty"` - // SiteLanguage: The language of the sites ads will be displayed on. SiteLanguage string `json:"siteLanguage,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdsAppearOn") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdsAppearOn") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdsAppearOn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) { +func (s CustomChannelTargetingInfo) MarshalJSON() ([]byte, error) { type NoMethod CustomChannelTargetingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomChannels struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The custom channels returned in this list response. Items []*CustomChannel `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#customChannels. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through custom - // channels. To retrieve the next page of results, set the next - // request's "pageToken" value to this. + // NextPageToken: Continuation token used to page through custom channels. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomChannels) MarshalJSON() ([]byte, error) { +func (s CustomChannels) MarshalJSON() ([]byte, error) { type NoMethod CustomChannels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Metadata struct { Items []*ReportingMetadataEntry `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#metadata. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metadata) MarshalJSON() ([]byte, error) { +func (s Metadata) MarshalJSON() ([]byte, error) { type NoMethod Metadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Payment struct { // Id: Unique identifier of this Payment. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#payment. Kind string `json:"kind,omitempty"` - // PaymentAmount: The amount to be paid. PaymentAmount string `json:"paymentAmount,omitempty"` - - // PaymentAmountCurrencyCode: The currency code for the amount to be - // paid. + // PaymentAmountCurrencyCode: The currency code for the amount to be paid. PaymentAmountCurrencyCode string `json:"paymentAmountCurrencyCode,omitempty"` - - // PaymentDate: The date this payment was/will be credited to the user, - // or none if the payment threshold has not been met. + // PaymentDate: The date this payment was/will be credited to the user, or none + // if the payment threshold has not been met. PaymentDate string `json:"paymentDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Payment) MarshalJSON() ([]byte, error) { +func (s Payment) MarshalJSON() ([]byte, error) { type NoMethod Payment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Payments struct { - // Items: The list of Payments for the account. One or both of a) the - // account's most recent payment; and b) the account's upcoming payment. + // Items: The list of Payments for the account. One or both of a) the account's + // most recent payment; and b) the account's upcoming payment. Items []*Payment `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#payments. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Payments) MarshalJSON() ([]byte, error) { +func (s Payments) MarshalJSON() ([]byte, error) { type NoMethod Payments - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReportingMetadataEntry struct { - // CompatibleDimensions: For metrics this is a list of dimension IDs - // which the metric is compatible with, for dimensions it is a list of - // compatibility groups the dimension belongs to. + // CompatibleDimensions: For metrics this is a list of dimension IDs which the + // metric is compatible with, for dimensions it is a list of compatibility + // groups the dimension belongs to. CompatibleDimensions []string `json:"compatibleDimensions,omitempty"` - - // CompatibleMetrics: The names of the metrics the dimension or metric - // this reporting metadata entry describes is compatible with. + // CompatibleMetrics: The names of the metrics the dimension or metric this + // reporting metadata entry describes is compatible with. CompatibleMetrics []string `json:"compatibleMetrics,omitempty"` - - // Id: Unique identifier of this reporting metadata entry, corresponding - // to the name of the appropriate dimension or metric. + // Id: Unique identifier of this reporting metadata entry, corresponding to the + // name of the appropriate dimension or metric. Id string `json:"id,omitempty"` - - // Kind: Kind of resource this is, in this case - // adsense#reportingMetadataEntry. + // Kind: Kind of resource this is, in this case adsense#reportingMetadataEntry. Kind string `json:"kind,omitempty"` - - // RequiredDimensions: The names of the dimensions which the dimension - // or metric this reporting metadata entry describes requires to also be - // present in order for the report to be valid. Omitting these will not - // cause an error or warning, but may result in data which cannot be - // correctly interpreted. + // RequiredDimensions: The names of the dimensions which the dimension or + // metric this reporting metadata entry describes requires to also be present + // in order for the report to be valid. Omitting these will not cause an error + // or warning, but may result in data which cannot be correctly interpreted. RequiredDimensions []string `json:"requiredDimensions,omitempty"` - - // RequiredMetrics: The names of the metrics which the dimension or - // metric this reporting metadata entry describes requires to also be - // present in order for the report to be valid. Omitting these will not - // cause an error or warning, but may result in data which cannot be - // correctly interpreted. + // RequiredMetrics: The names of the metrics which the dimension or metric this + // reporting metadata entry describes requires to also be present in order for + // the report to be valid. Omitting these will not cause an error or warning, + // but may result in data which cannot be correctly interpreted. RequiredMetrics []string `json:"requiredMetrics,omitempty"` - - // SupportedProducts: The codes of the projects supported by the - // dimension or metric this reporting metadata entry describes. + // SupportedProducts: The codes of the projects supported by the dimension or + // metric this reporting metadata entry describes. SupportedProducts []string `json:"supportedProducts,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CompatibleDimensions") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CompatibleDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompatibleDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompatibleDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportingMetadataEntry) MarshalJSON() ([]byte, error) { +func (s ReportingMetadataEntry) MarshalJSON() ([]byte, error) { type NoMethod ReportingMetadataEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedAdStyle struct { // AdStyle: The AdStyle itself. AdStyle *AdStyle `json:"adStyle,omitempty"` - - // Id: Unique identifier of this saved ad style. This should be - // considered an opaque identifier; it is not safe to rely on it being - // in any particular format. + // Id: Unique identifier of this saved ad style. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#savedAdStyle. Kind string `json:"kind,omitempty"` - // Name: The user selected name of this SavedAdStyle. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AdStyle") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdStyle") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdStyle") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdStyle") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedAdStyle) MarshalJSON() ([]byte, error) { +func (s SavedAdStyle) MarshalJSON() ([]byte, error) { type NoMethod SavedAdStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedAdStyles struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The saved ad styles returned in this list response. Items []*SavedAdStyle `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#savedAdStyles. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through ad units. To - // retrieve the next page of results, set the next request's "pageToken" - // value to this. + // NextPageToken: Continuation token used to page through ad units. To retrieve + // the next page of results, set the next request's "pageToken" value to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedAdStyles) MarshalJSON() ([]byte, error) { +func (s SavedAdStyles) MarshalJSON() ([]byte, error) { type NoMethod SavedAdStyles - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedReport struct { // Id: Unique identifier of this saved report. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#savedReport. Kind string `json:"kind,omitempty"` - // Name: This saved report's name. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedReport) MarshalJSON() ([]byte, error) { +func (s SavedReport) MarshalJSON() ([]byte, error) { type NoMethod SavedReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SavedReports struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The saved reports returned in this list response. Items []*SavedReport `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#savedReports. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through saved reports. - // To retrieve the next page of results, set the next request's - // "pageToken" value to this. + // NextPageToken: Continuation token used to page through saved reports. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SavedReports) MarshalJSON() ([]byte, error) { +func (s SavedReports) MarshalJSON() ([]byte, error) { type NoMethod SavedReports - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlChannel struct { - // Id: Unique identifier of this URL channel. This should be considered - // an opaque identifier; it is not safe to rely on it being in any - // particular format. + // Id: Unique identifier of this URL channel. This should be considered an + // opaque identifier; it is not safe to rely on it being in any particular + // format. Id string `json:"id,omitempty"` - // Kind: Kind of resource this is, in this case adsense#urlChannel. Kind string `json:"kind,omitempty"` - - // UrlPattern: URL Pattern of this URL channel. Does not include - // "http://" or "https://". Example: www.example.com/home + // UrlPattern: URL Pattern of this URL channel. Does not include "http://" or + // "https://". Example: www.example.com/home UrlPattern string `json:"urlPattern,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlChannel) MarshalJSON() ([]byte, error) { +func (s UrlChannel) MarshalJSON() ([]byte, error) { type NoMethod UrlChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlChannels struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The URL channels returned in this list response. Items []*UrlChannel `json:"items,omitempty"` - // Kind: Kind of list this is, in this case adsense#urlChannels. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through URL channels. - // To retrieve the next page of results, set the next request's - // "pageToken" value to this. + // NextPageToken: Continuation token used to page through URL channels. To + // retrieve the next page of results, set the next request's "pageToken" value + // to this. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlChannels) MarshalJSON() ([]byte, error) { +func (s UrlChannels) MarshalJSON() ([]byte, error) { type NoMethod UrlChannels - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "adsense.accounts.get": - type AccountsGetCall struct { s *Service accountId string @@ -1783,41 +1474,37 @@ func (r *AccountsService) Get(accountId string) *AccountsGetCall { return c } -// Tree sets the optional parameter "tree": Whether the tree of sub -// accounts should be returned. +// Tree sets the optional parameter "tree": Whether the tree of sub accounts +// should be returned. func (c *AccountsGetCall) Tree(tree bool) *AccountsGetCall { c.urlParams_.Set("tree", fmt.Sprint(tree)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1826,12 +1513,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1848,16 +1530,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1865,17 +1545,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -1888,39 +1568,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Get information about the selected AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.get", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to get information about.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tree": { - // "description": "Whether the tree of sub accounts should be returned.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "accounts/{accountId}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.list": +} type AccountsListCall struct { s *Service @@ -1936,50 +1584,45 @@ func (r *AccountsService) List() *AccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of accounts to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// accounts to include in the response, used for paging. func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through accounts. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through accounts. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1988,12 +1631,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2007,16 +1645,14 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.list" call. -// Exactly one of *Accounts or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Accounts.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Accounts.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2024,17 +1660,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Accounts{ ServerResponse: googleapi.ServerResponse{ @@ -2047,35 +1683,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { return nil, err } return ret, nil - // { - // "description": "List all accounts available to this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of accounts to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts", - // "response": { - // "$ref": "Accounts" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2083,7 +1690,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error) { // The provided context supersedes any context provided to the Context method. func (c *AccountsListCall) Pages(ctx context.Context, f func(*Accounts) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2099,8 +1706,6 @@ func (c *AccountsListCall) Pages(ctx context.Context, f func(*Accounts) error) e } } -// method id "adsense.accounts.adclients.getAdCode": - type AccountsAdclientsGetAdCodeCall struct { s *Service accountId string @@ -2122,41 +1727,37 @@ func (r *AccountsAdclientsService) GetAdCode(accountId string, adClientId string return c } -// TagPartner sets the optional parameter "tagPartner": Tag partner to -// include in the ad code snippet. +// TagPartner sets the optional parameter "tagPartner": Tag partner to include +// in the ad code snippet. func (c *AccountsAdclientsGetAdCodeCall) TagPartner(tagPartner string) *AccountsAdclientsGetAdCodeCall { c.urlParams_.Set("tagPartner", tagPartner) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdclientsGetAdCodeCall) Fields(s ...googleapi.Field) *AccountsAdclientsGetAdCodeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdclientsGetAdCodeCall) IfNoneMatch(entityTag string) *AccountsAdclientsGetAdCodeCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdclientsGetAdCodeCall) Context(ctx context.Context) *AccountsAdclientsGetAdCodeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdclientsGetAdCodeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2165,12 +1766,7 @@ func (c *AccountsAdclientsGetAdCodeCall) Header() http.Header { } func (c *AccountsAdclientsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2188,16 +1784,14 @@ func (c *AccountsAdclientsGetAdCodeCall) doRequest(alt string) (*http.Response, "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.getAdCode" call. -// Exactly one of *AdCode or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdCode.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdclientsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2205,17 +1799,17 @@ func (c *AccountsAdclientsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdCode{ ServerResponse: googleapi.ServerResponse{ @@ -2228,46 +1822,7 @@ func (c *AccountsAdclientsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCo return nil, err } return ret, nil - // { - // "description": "Get Auto ad code for a given ad client.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adclients.getAdCode", - // "parameterOrder": [ - // "accountId", - // "adClientId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account which contains the ad client.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client to get the code for.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tagPartner": { - // "description": "Tag partner to include in the ad code snippet.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/adcode", - // "response": { - // "$ref": "AdCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.adclients.list": +} type AccountsAdclientsListCall struct { s *Service @@ -2287,50 +1842,45 @@ func (r *AccountsAdclientsService) List(accountId string) *AccountsAdclientsList return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad clients to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad clients to include in the response, used for paging. func (c *AccountsAdclientsListCall) MaxResults(maxResults int64) *AccountsAdclientsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad clients. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad clients. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsAdclientsListCall) PageToken(pageToken string) *AccountsAdclientsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdclientsListCall) Fields(s ...googleapi.Field) *AccountsAdclientsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdclientsListCall) IfNoneMatch(entityTag string) *AccountsAdclientsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdclientsListCall) Context(ctx context.Context) *AccountsAdclientsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdclientsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2339,12 +1889,7 @@ func (c *AccountsAdclientsListCall) Header() http.Header { } func (c *AccountsAdclientsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2361,16 +1906,14 @@ func (c *AccountsAdclientsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.list" call. -// Exactly one of *AdClients or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdClients.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdClients.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2378,17 +1921,17 @@ func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdClients{ ServerResponse: googleapi.ServerResponse{ @@ -2401,44 +1944,6 @@ func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients return nil, err } return ret, nil - // { - // "description": "List all ad clients in the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adclients.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account for which to list ad clients.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of ad clients to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients", - // "response": { - // "$ref": "AdClients" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2446,7 +1951,7 @@ func (c *AccountsAdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients // The provided context supersedes any context provided to the Context method. func (c *AccountsAdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2462,8 +1967,6 @@ func (c *AccountsAdclientsListCall) Pages(ctx context.Context, f func(*AdClients } } -// method id "adsense.accounts.adunits.get": - type AccountsAdunitsGetCall struct { s *Service accountId string @@ -2475,8 +1978,8 @@ type AccountsAdunitsGetCall struct { header_ http.Header } -// Get: Gets the specified ad unit in the specified ad client for the -// specified account. +// Get: Gets the specified ad unit in the specified ad client for the specified +// account. // // - accountId: Account to which the ad client belongs. // - adClientId: Ad client for which to get the ad unit. @@ -2490,33 +1993,29 @@ func (r *AccountsAdunitsService) Get(accountId string, adClientId string, adUnit } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdunitsGetCall) Fields(s ...googleapi.Field) *AccountsAdunitsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdunitsGetCall) IfNoneMatch(entityTag string) *AccountsAdunitsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdunitsGetCall) Context(ctx context.Context) *AccountsAdunitsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdunitsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2525,12 +2024,7 @@ func (c *AccountsAdunitsGetCall) Header() http.Header { } func (c *AccountsAdunitsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2549,16 +2043,14 @@ func (c *AccountsAdunitsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adunits.get" call. -// Exactly one of *AdUnit or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnit.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnit.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2566,17 +2058,17 @@ func (c *AccountsAdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnit{ ServerResponse: googleapi.ServerResponse{ @@ -2589,48 +2081,7 @@ func (c *AccountsAdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, erro return nil, err } return ret, nil - // { - // "description": "Gets the specified ad unit in the specified ad client for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adunits.get", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client for which to get the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", - // "response": { - // "$ref": "AdUnit" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.adunits.getAdCode": +} type AccountsAdunitsGetAdCodeCall struct { s *Service @@ -2657,33 +2108,29 @@ func (r *AccountsAdunitsService) GetAdCode(accountId string, adClientId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdunitsGetAdCodeCall) Fields(s ...googleapi.Field) *AccountsAdunitsGetAdCodeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdunitsGetAdCodeCall) IfNoneMatch(entityTag string) *AccountsAdunitsGetAdCodeCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdunitsGetAdCodeCall) Context(ctx context.Context) *AccountsAdunitsGetAdCodeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdunitsGetAdCodeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2692,12 +2139,7 @@ func (c *AccountsAdunitsGetAdCodeCall) Header() http.Header { } func (c *AccountsAdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2716,16 +2158,14 @@ func (c *AccountsAdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, er "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adunits.getAdCode" call. -// Exactly one of *AdCode or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdCode.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2733,17 +2173,17 @@ func (c *AccountsAdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdCode{ ServerResponse: googleapi.ServerResponse{ @@ -2756,48 +2196,7 @@ func (c *AccountsAdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode return nil, err } return ret, nil - // { - // "description": "Get ad code for the specified ad unit.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adunits.getAdCode", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account which contains the ad client.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client with contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit to get the code for.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode", - // "response": { - // "$ref": "AdCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.adunits.list": +} type AccountsAdunitsListCall struct { s *Service @@ -2821,57 +2220,52 @@ func (r *AccountsAdunitsService) List(accountId string, adClientId string) *Acco return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *AccountsAdunitsListCall) IncludeInactive(includeInactive bool) *AccountsAdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *AccountsAdunitsListCall) MaxResults(maxResults int64) *AccountsAdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AccountsAdunitsListCall) PageToken(pageToken string) *AccountsAdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdunitsListCall) Fields(s ...googleapi.Field) *AccountsAdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdunitsListCall) IfNoneMatch(entityTag string) *AccountsAdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdunitsListCall) Context(ctx context.Context) *AccountsAdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2880,12 +2274,7 @@ func (c *AccountsAdunitsListCall) Header() http.Header { } func (c *AccountsAdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2903,16 +2292,14 @@ func (c *AccountsAdunitsListCall) doRequest(alt string) (*http.Response, error) "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2920,17 +2307,17 @@ func (c *AccountsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -2943,56 +2330,6 @@ func (c *AccountsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, er return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified ad client for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adunits.list", - // "parameterOrder": [ - // "accountId", - // "adClientId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -3000,7 +2337,7 @@ func (c *AccountsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, er // The provided context supersedes any context provided to the Context method. func (c *AccountsAdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3016,8 +2353,6 @@ func (c *AccountsAdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) er } } -// method id "adsense.accounts.adunits.customchannels.list": - type AccountsAdunitsCustomchannelsListCall struct { s *Service accountId string @@ -3029,8 +2364,7 @@ type AccountsAdunitsCustomchannelsListCall struct { header_ http.Header } -// List: List all custom channels which the specified ad unit belongs -// to. +// List: List all custom channels which the specified ad unit belongs to. // // - accountId: Account to which the ad client belongs. // - adClientId: Ad client which contains the ad unit. @@ -3043,51 +2377,45 @@ func (r *AccountsAdunitsCustomchannelsService) List(accountId string, adClientId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *AccountsAdunitsCustomchannelsListCall) MaxResults(maxResults int64) *AccountsAdunitsCustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsAdunitsCustomchannelsListCall) PageToken(pageToken string) *AccountsAdunitsCustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAdunitsCustomchannelsListCall) Fields(s ...googleapi.Field) *AccountsAdunitsCustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAdunitsCustomchannelsListCall) IfNoneMatch(entityTag string) *AccountsAdunitsCustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAdunitsCustomchannelsListCall) Context(ctx context.Context) *AccountsAdunitsCustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAdunitsCustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3096,12 +2424,7 @@ func (c *AccountsAdunitsCustomchannelsListCall) Header() http.Header { } func (c *AccountsAdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3120,16 +2443,14 @@ func (c *AccountsAdunitsCustomchannelsListCall) doRequest(alt string) (*http.Res "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adunits.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3137,17 +2458,17 @@ func (c *AccountsAdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -3160,58 +2481,6 @@ func (c *AccountsAdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "List all custom channels which the specified ad unit belongs to.", - // "httpMethod": "GET", - // "id": "adsense.accounts.adunits.customchannels.list", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client which contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -3219,7 +2488,7 @@ func (c *AccountsAdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *AccountsAdunitsCustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3235,8 +2504,6 @@ func (c *AccountsAdunitsCustomchannelsListCall) Pages(ctx context.Context, f fun } } -// method id "adsense.accounts.alerts.delete": - type AccountsAlertsDeleteCall struct { s *Service accountId string @@ -3246,8 +2513,8 @@ type AccountsAlertsDeleteCall struct { header_ http.Header } -// Delete: Dismiss (delete) the specified alert from the specified -// publisher AdSense account. +// Delete: Dismiss (delete) the specified alert from the specified publisher +// AdSense account. // // - accountId: Account which contains the ad unit. // - alertId: Alert to delete. @@ -3259,23 +2526,21 @@ func (r *AccountsAlertsService) Delete(accountId string, alertId string) *Accoun } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAlertsDeleteCall) Fields(s ...googleapi.Field) *AccountsAlertsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAlertsDeleteCall) Context(ctx context.Context) *AccountsAlertsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAlertsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3284,12 +2549,7 @@ func (c *AccountsAlertsDeleteCall) Header() http.Header { } func (c *AccountsAlertsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3304,7 +2564,7 @@ func (c *AccountsAlertsDeleteCall) doRequest(alt string) (*http.Response, error) "accountId": c.accountId, "alertId": c.alertId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.alerts.delete" call. @@ -3316,40 +2576,10 @@ func (c *AccountsAlertsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Dismiss (delete) the specified alert from the specified publisher AdSense account.", - // "httpMethod": "DELETE", - // "id": "adsense.accounts.alerts.delete", - // "parameterOrder": [ - // "accountId", - // "alertId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account which contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "alertId": { - // "description": "Alert to delete.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/alerts/{alertId}", - // "scopes": [ - // "https://www.googleapis.com/auth/adsense" - // ] - // } - -} - -// method id "adsense.accounts.alerts.list": +} type AccountsAlertsListCall struct { s *Service @@ -3370,42 +2600,38 @@ func (r *AccountsAlertsService) List(accountId string) *AccountsAlertsListCall { } // Locale sets the optional parameter "locale": The locale to use for -// translating alert messages. The account locale will be used if this -// is not supplied. The AdSense default (English) will be used if the -// supplied locale is invalid or unsupported. +// translating alert messages. The account locale will be used if this is not +// supplied. The AdSense default (English) will be used if the supplied locale +// is invalid or unsupported. func (c *AccountsAlertsListCall) Locale(locale string) *AccountsAlertsListCall { c.urlParams_.Set("locale", locale) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAlertsListCall) Fields(s ...googleapi.Field) *AccountsAlertsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAlertsListCall) IfNoneMatch(entityTag string) *AccountsAlertsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAlertsListCall) Context(ctx context.Context) *AccountsAlertsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAlertsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3414,12 +2640,7 @@ func (c *AccountsAlertsListCall) Header() http.Header { } func (c *AccountsAlertsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3436,16 +2657,14 @@ func (c *AccountsAlertsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.alerts.list" call. -// Exactly one of *Alerts or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Alerts.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Alerts.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3453,17 +2672,17 @@ func (c *AccountsAlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Alerts{ ServerResponse: googleapi.ServerResponse{ @@ -3476,39 +2695,7 @@ func (c *AccountsAlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, erro return nil, err } return ret, nil - // { - // "description": "List the alerts for the specified AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.alerts.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account for which to retrieve the alerts.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locale": { - // "description": "The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/alerts", - // "response": { - // "$ref": "Alerts" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.customchannels.get": +} type AccountsCustomchannelsGetCall struct { s *Service @@ -3521,8 +2708,8 @@ type AccountsCustomchannelsGetCall struct { header_ http.Header } -// Get: Get the specified custom channel from the specified ad client -// for the specified account. +// Get: Get the specified custom channel from the specified ad client for the +// specified account. // // - accountId: Account to which the ad client belongs. // - adClientId: Ad client which contains the custom channel. @@ -3536,33 +2723,29 @@ func (r *AccountsCustomchannelsService) Get(accountId string, adClientId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsCustomchannelsGetCall) Fields(s ...googleapi.Field) *AccountsCustomchannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsCustomchannelsGetCall) IfNoneMatch(entityTag string) *AccountsCustomchannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsCustomchannelsGetCall) Context(ctx context.Context) *AccountsCustomchannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsCustomchannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3571,12 +2754,7 @@ func (c *AccountsCustomchannelsGetCall) Header() http.Header { } func (c *AccountsCustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3595,16 +2773,14 @@ func (c *AccountsCustomchannelsGetCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.customchannels.get" call. -// Exactly one of *CustomChannel or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannel.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannel.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsCustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3612,17 +2788,17 @@ func (c *AccountsCustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*Custo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannel{ ServerResponse: googleapi.ServerResponse{ @@ -3635,48 +2811,7 @@ func (c *AccountsCustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*Custo return nil, err } return ret, nil - // { - // "description": "Get the specified custom channel from the specified ad client for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.customchannels.get", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", - // "response": { - // "$ref": "CustomChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.customchannels.list": +} type AccountsCustomchannelsListCall struct { s *Service @@ -3688,8 +2823,8 @@ type AccountsCustomchannelsListCall struct { header_ http.Header } -// List: List all custom channels in the specified ad client for the -// specified account. +// List: List all custom channels in the specified ad client for the specified +// account. // // - accountId: Account to which the ad client belongs. // - adClientId: Ad client for which to list custom channels. @@ -3700,51 +2835,45 @@ func (r *AccountsCustomchannelsService) List(accountId string, adClientId string return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *AccountsCustomchannelsListCall) MaxResults(maxResults int64) *AccountsCustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsCustomchannelsListCall) PageToken(pageToken string) *AccountsCustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsCustomchannelsListCall) Fields(s ...googleapi.Field) *AccountsCustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsCustomchannelsListCall) IfNoneMatch(entityTag string) *AccountsCustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsCustomchannelsListCall) Context(ctx context.Context) *AccountsCustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsCustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3753,12 +2882,7 @@ func (c *AccountsCustomchannelsListCall) Header() http.Header { } func (c *AccountsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3776,16 +2900,14 @@ func (c *AccountsCustomchannelsListCall) doRequest(alt string) (*http.Response, "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3793,17 +2915,17 @@ func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Cust if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -3816,51 +2938,6 @@ func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Cust return nil, err } return ret, nil - // { - // "description": "List all custom channels in the specified ad client for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.customchannels.list", - // "parameterOrder": [ - // "accountId", - // "adClientId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -3868,7 +2945,7 @@ func (c *AccountsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Cust // The provided context supersedes any context provided to the Context method. func (c *AccountsCustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3884,8 +2961,6 @@ func (c *AccountsCustomchannelsListCall) Pages(ctx context.Context, f func(*Cust } } -// method id "adsense.accounts.customchannels.adunits.list": - type AccountsCustomchannelsAdunitsListCall struct { s *Service accountId string @@ -3910,57 +2985,52 @@ func (r *AccountsCustomchannelsAdunitsService) List(accountId string, adClientId return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *AccountsCustomchannelsAdunitsListCall) IncludeInactive(includeInactive bool) *AccountsCustomchannelsAdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *AccountsCustomchannelsAdunitsListCall) MaxResults(maxResults int64) *AccountsCustomchannelsAdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AccountsCustomchannelsAdunitsListCall) PageToken(pageToken string) *AccountsCustomchannelsAdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsCustomchannelsAdunitsListCall) Fields(s ...googleapi.Field) *AccountsCustomchannelsAdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsCustomchannelsAdunitsListCall) IfNoneMatch(entityTag string) *AccountsCustomchannelsAdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsCustomchannelsAdunitsListCall) Context(ctx context.Context) *AccountsCustomchannelsAdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsCustomchannelsAdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3969,12 +3039,7 @@ func (c *AccountsCustomchannelsAdunitsListCall) Header() http.Header { } func (c *AccountsCustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3993,16 +3058,14 @@ func (c *AccountsCustomchannelsAdunitsListCall) doRequest(alt string) (*http.Res "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.customchannels.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsCustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4010,17 +3073,17 @@ func (c *AccountsCustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -4033,63 +3096,6 @@ func (c *AccountsCustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified custom channel.", - // "httpMethod": "GET", - // "id": "adsense.accounts.customchannels.adunits.list", - // "parameterOrder": [ - // "accountId", - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -4097,7 +3103,7 @@ func (c *AccountsCustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *AccountsCustomchannelsAdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4113,8 +3119,6 @@ func (c *AccountsCustomchannelsAdunitsListCall) Pages(ctx context.Context, f fun } } -// method id "adsense.accounts.payments.list": - type AccountsPaymentsListCall struct { s *Service accountId string @@ -4134,33 +3138,29 @@ func (r *AccountsPaymentsService) List(accountId string) *AccountsPaymentsListCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPaymentsListCall) Fields(s ...googleapi.Field) *AccountsPaymentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsPaymentsListCall) IfNoneMatch(entityTag string) *AccountsPaymentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPaymentsListCall) Context(ctx context.Context) *AccountsPaymentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPaymentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4169,12 +3169,7 @@ func (c *AccountsPaymentsListCall) Header() http.Header { } func (c *AccountsPaymentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4191,16 +3186,14 @@ func (c *AccountsPaymentsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.payments.list" call. -// Exactly one of *Payments or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Payments.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Payments.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPaymentsListCall) Do(opts ...googleapi.CallOption) (*Payments, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4208,17 +3201,17 @@ func (c *AccountsPaymentsListCall) Do(opts ...googleapi.CallOption) (*Payments, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Payments{ ServerResponse: googleapi.ServerResponse{ @@ -4231,34 +3224,7 @@ func (c *AccountsPaymentsListCall) Do(opts ...googleapi.CallOption) (*Payments, return nil, err } return ret, nil - // { - // "description": "List the payments for the specified AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.payments.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account for which to retrieve the payments.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/payments", - // "response": { - // "$ref": "Payments" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.reports.generate": +} type AccountsReportsGenerateCall struct { s *Service @@ -4269,15 +3235,15 @@ type AccountsReportsGenerateCall struct { header_ http.Header } -// Generate: Generate an AdSense report based on the report request sent -// in the query parameters. Returns the result as JSON; to retrieve -// output in CSV format specify "alt=csv" as a query parameter. +// Generate: Generate an AdSense report based on the report request sent in the +// query parameters. Returns the result as JSON; to retrieve output in CSV +// format specify "alt=csv" as a query parameter. // // - accountId: Account upon which to report. // - endDate: End of the date range to report on in "YYYY-MM-DD" format, // inclusive. -// - startDate: Start of the date range to report on in "YYYY-MM-DD" -// format, inclusive. +// - startDate: Start of the date range to report on in "YYYY-MM-DD" format, +// inclusive. func (r *AccountsReportsService) Generate(accountId string, startDate string, endDate string) *AccountsReportsGenerateCall { c := &AccountsReportsGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -4286,16 +3252,16 @@ func (r *AccountsReportsService) Generate(accountId string, startDate string, en return c } -// Currency sets the optional parameter "currency": Optional currency to -// use when reporting on monetary metrics. Defaults to the account's -// currency if not set. +// Currency sets the optional parameter "currency": Optional currency to use +// when reporting on monetary metrics. Defaults to the account's currency if +// not set. func (c *AccountsReportsGenerateCall) Currency(currency string) *AccountsReportsGenerateCall { c.urlParams_.Set("currency", currency) return c } -// Dimension sets the optional parameter "dimension": Dimensions to base -// the report on. +// Dimension sets the optional parameter "dimension": Dimensions to base the +// report on. func (c *AccountsReportsGenerateCall) Dimension(dimension ...string) *AccountsReportsGenerateCall { c.urlParams_.SetMulti("dimension", append([]string{}, dimension...)) return c @@ -4308,81 +3274,76 @@ func (c *AccountsReportsGenerateCall) Filter(filter ...string) *AccountsReportsG return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *AccountsReportsGenerateCall) Locale(locale string) *AccountsReportsGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *AccountsReportsGenerateCall) MaxResults(maxResults int64) *AccountsReportsGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Metric sets the optional parameter "metric": Numeric columns to -// include in the report. +// Metric sets the optional parameter "metric": Numeric columns to include in +// the report. func (c *AccountsReportsGenerateCall) Metric(metric ...string) *AccountsReportsGenerateCall { c.urlParams_.SetMulti("metric", append([]string{}, metric...)) return c } -// Sort sets the optional parameter "sort": The name of a dimension or -// metric to sort the resulting report on, optionally prefixed with "+" -// to sort ascending or "-" to sort descending. If no prefix is -// specified, the column is sorted ascending. +// Sort sets the optional parameter "sort": The name of a dimension or metric +// to sort the resulting report on, optionally prefixed with "+" to sort +// ascending or "-" to sort descending. If no prefix is specified, the column +// is sorted ascending. func (c *AccountsReportsGenerateCall) Sort(sort ...string) *AccountsReportsGenerateCall { c.urlParams_.SetMulti("sort", append([]string{}, sort...)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *AccountsReportsGenerateCall) StartIndex(startIndex int64) *AccountsReportsGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } -// UseTimezoneReporting sets the optional parameter -// "useTimezoneReporting": Whether the report should be generated in the -// AdSense account's local timezone. If false default PST/PDT timezone -// will be used. +// UseTimezoneReporting sets the optional parameter "useTimezoneReporting": +// Whether the report should be generated in the AdSense account's local +// timezone. If false default PST/PDT timezone will be used. func (c *AccountsReportsGenerateCall) UseTimezoneReporting(useTimezoneReporting bool) *AccountsReportsGenerateCall { c.urlParams_.Set("useTimezoneReporting", fmt.Sprint(useTimezoneReporting)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsReportsGenerateCall) Fields(s ...googleapi.Field) *AccountsReportsGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsReportsGenerateCall) IfNoneMatch(entityTag string) *AccountsReportsGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *AccountsReportsGenerateCall) Context(ctx context.Context) *AccountsReportsGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsReportsGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4391,12 +3352,7 @@ func (c *AccountsReportsGenerateCall) Header() http.Header { } func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4413,7 +3369,7 @@ func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -4427,18 +3383,17 @@ func (c *AccountsReportsGenerateCall) Download(opts ...googleapi.CallOption) (*h } if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "adsense.accounts.reports.generate" call. -// Exactly one of *AdsenseReportsGenerateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsGenerateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4446,17 +3401,17 @@ func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Adsense if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsenseReportsGenerateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4469,112 +3424,7 @@ func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*Adsense return nil, err } return ret, nil - // { - // "description": "Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.", - // "httpMethod": "GET", - // "id": "adsense.accounts.reports.generate", - // "parameterOrder": [ - // "accountId", - // "startDate", - // "endDate" - // ], - // "parameters": { - // "accountId": { - // "description": "Account upon which to report.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "currency": { - // "description": "Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.", - // "location": "query", - // "pattern": "[a-zA-Z]+", - // "type": "string" - // }, - // "dimension": { - // "description": "Dimensions to base the report on.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "endDate": { - // "description": "End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)|(latest-(\\d{2})-(\\d{2})(-\\d+y)?)|(latest-latest-(\\d{2})(-\\d+m)?)", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Filters to be run on the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+(==|=@).+", - // "repeated": true, - // "type": "string" - // }, - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "metric": { - // "description": "Numeric columns to include in the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "sort": { - // "description": "The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort descending. If no prefix is specified, the column is sorted ascending.", - // "location": "query", - // "pattern": "(\\+|-)?[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "startDate": { - // "description": "Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)|(latest-(\\d{2})-(\\d{2})(-\\d+y)?)|(latest-latest-(\\d{2})(-\\d+m)?)", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // }, - // "useTimezoneReporting": { - // "description": "Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "accounts/{accountId}/reports", - // "response": { - // "$ref": "AdsenseReportsGenerateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "adsense.accounts.reports.saved.generate": +} type AccountsReportsSavedGenerateCall struct { s *Service @@ -4586,8 +3436,8 @@ type AccountsReportsSavedGenerateCall struct { header_ http.Header } -// Generate: Generate an AdSense report based on the saved report ID -// sent in the query parameters. +// Generate: Generate an AdSense report based on the saved report ID sent in +// the query parameters. // // - accountId: Account to which the saved reports belong. // - savedReportId: The saved report to retrieve. @@ -4598,56 +3448,52 @@ func (r *AccountsReportsSavedService) Generate(accountId string, savedReportId s return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *AccountsReportsSavedGenerateCall) Locale(locale string) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *AccountsReportsSavedGenerateCall) MaxResults(maxResults int64) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *AccountsReportsSavedGenerateCall) StartIndex(startIndex int64) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsReportsSavedGenerateCall) Fields(s ...googleapi.Field) *AccountsReportsSavedGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsReportsSavedGenerateCall) IfNoneMatch(entityTag string) *AccountsReportsSavedGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsReportsSavedGenerateCall) Context(ctx context.Context) *AccountsReportsSavedGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsReportsSavedGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4656,12 +3502,7 @@ func (c *AccountsReportsSavedGenerateCall) Header() http.Header { } func (c *AccountsReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4679,16 +3520,15 @@ func (c *AccountsReportsSavedGenerateCall) doRequest(alt string) (*http.Response "accountId": c.accountId, "savedReportId": c.savedReportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.saved.generate" call. -// Exactly one of *AdsenseReportsGenerateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountsReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsGenerateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4696,17 +3536,17 @@ func (c *AccountsReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Ad if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsenseReportsGenerateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4719,63 +3559,7 @@ func (c *AccountsReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*Ad return nil, err } return ret, nil - // { - // "description": "Generate an AdSense report based on the saved report ID sent in the query parameters.", - // "httpMethod": "GET", - // "id": "adsense.accounts.reports.saved.generate", - // "parameterOrder": [ - // "accountId", - // "savedReportId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the saved reports belong.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "savedReportId": { - // "description": "The saved report to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "accounts/{accountId}/reports/{savedReportId}", - // "response": { - // "$ref": "AdsenseReportsGenerateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.reports.saved.list": +} type AccountsReportsSavedListCall struct { s *Service @@ -4795,50 +3579,45 @@ func (r *AccountsReportsSavedService) List(accountId string) *AccountsReportsSav return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved reports to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved reports to include in the response, used for paging. func (c *AccountsReportsSavedListCall) MaxResults(maxResults int64) *AccountsReportsSavedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved reports. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved reports. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsReportsSavedListCall) PageToken(pageToken string) *AccountsReportsSavedListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsReportsSavedListCall) Fields(s ...googleapi.Field) *AccountsReportsSavedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsReportsSavedListCall) IfNoneMatch(entityTag string) *AccountsReportsSavedListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsReportsSavedListCall) Context(ctx context.Context) *AccountsReportsSavedListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsReportsSavedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4847,12 +3626,7 @@ func (c *AccountsReportsSavedListCall) Header() http.Header { } func (c *AccountsReportsSavedListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4869,16 +3643,14 @@ func (c *AccountsReportsSavedListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.saved.list" call. -// Exactly one of *SavedReports or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedReports.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedReports.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4886,17 +3658,17 @@ func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedR if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedReports{ ServerResponse: googleapi.ServerResponse{ @@ -4909,44 +3681,6 @@ func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedR return nil, err } return ret, nil - // { - // "description": "List all saved reports in the specified AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.reports.saved.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the saved reports belong.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of saved reports to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/reports/saved", - // "response": { - // "$ref": "SavedReports" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -4954,7 +3688,7 @@ func (c *AccountsReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedR // The provided context supersedes any context provided to the Context method. func (c *AccountsReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4970,8 +3704,6 @@ func (c *AccountsReportsSavedListCall) Pages(ctx context.Context, f func(*SavedR } } -// method id "adsense.accounts.savedadstyles.get": - type AccountsSavedadstylesGetCall struct { s *Service accountId string @@ -4994,33 +3726,29 @@ func (r *AccountsSavedadstylesService) Get(accountId string, savedAdStyleId stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsSavedadstylesGetCall) Fields(s ...googleapi.Field) *AccountsSavedadstylesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsSavedadstylesGetCall) IfNoneMatch(entityTag string) *AccountsSavedadstylesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsSavedadstylesGetCall) Context(ctx context.Context) *AccountsSavedadstylesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsSavedadstylesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5029,12 +3757,7 @@ func (c *AccountsSavedadstylesGetCall) Header() http.Header { } func (c *AccountsSavedadstylesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5052,16 +3775,14 @@ func (c *AccountsSavedadstylesGetCall) doRequest(alt string) (*http.Response, er "accountId": c.accountId, "savedAdStyleId": c.savedAdStyleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.savedadstyles.get" call. -// Exactly one of *SavedAdStyle or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedAdStyle.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedAdStyle.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsSavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedAdStyle, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5069,17 +3790,17 @@ func (c *AccountsSavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedA if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedAdStyle{ ServerResponse: googleapi.ServerResponse{ @@ -5092,41 +3813,7 @@ func (c *AccountsSavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedA return nil, err } return ret, nil - // { - // "description": "List a specific saved ad style for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.savedadstyles.get", - // "parameterOrder": [ - // "accountId", - // "savedAdStyleId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account for which to get the saved ad style.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "savedAdStyleId": { - // "description": "Saved ad style to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/savedadstyles/{savedAdStyleId}", - // "response": { - // "$ref": "SavedAdStyle" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.accounts.savedadstyles.list": +} type AccountsSavedadstylesListCall struct { s *Service @@ -5146,51 +3833,45 @@ func (r *AccountsSavedadstylesService) List(accountId string) *AccountsSavedadst return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved ad styles to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved ad styles to include in the response, used for paging. func (c *AccountsSavedadstylesListCall) MaxResults(maxResults int64) *AccountsSavedadstylesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved ad styles. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved ad styles. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsSavedadstylesListCall) PageToken(pageToken string) *AccountsSavedadstylesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsSavedadstylesListCall) Fields(s ...googleapi.Field) *AccountsSavedadstylesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsSavedadstylesListCall) IfNoneMatch(entityTag string) *AccountsSavedadstylesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsSavedadstylesListCall) Context(ctx context.Context) *AccountsSavedadstylesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsSavedadstylesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5199,12 +3880,7 @@ func (c *AccountsSavedadstylesListCall) Header() http.Header { } func (c *AccountsSavedadstylesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5221,16 +3897,14 @@ func (c *AccountsSavedadstylesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.savedadstyles.list" call. -// Exactly one of *SavedAdStyles or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedAdStyles.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedAdStyles.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsSavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5238,17 +3912,17 @@ func (c *AccountsSavedadstylesListCall) Do(opts ...googleapi.CallOption) (*Saved if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedAdStyles{ ServerResponse: googleapi.ServerResponse{ @@ -5261,44 +3935,6 @@ func (c *AccountsSavedadstylesListCall) Do(opts ...googleapi.CallOption) (*Saved return nil, err } return ret, nil - // { - // "description": "List all saved ad styles in the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.savedadstyles.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account for which to list saved ad styles.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of saved ad styles to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/savedadstyles", - // "response": { - // "$ref": "SavedAdStyles" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -5306,7 +3942,7 @@ func (c *AccountsSavedadstylesListCall) Do(opts ...googleapi.CallOption) (*Saved // The provided context supersedes any context provided to the Context method. func (c *AccountsSavedadstylesListCall) Pages(ctx context.Context, f func(*SavedAdStyles) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5322,8 +3958,6 @@ func (c *AccountsSavedadstylesListCall) Pages(ctx context.Context, f func(*Saved } } -// method id "adsense.accounts.urlchannels.list": - type AccountsUrlchannelsListCall struct { s *Service accountId string @@ -5334,8 +3968,8 @@ type AccountsUrlchannelsListCall struct { header_ http.Header } -// List: List all URL channels in the specified ad client for the -// specified account. +// List: List all URL channels in the specified ad client for the specified +// account. // // - accountId: Account to which the ad client belongs. // - adClientId: Ad client for which to list URL channels. @@ -5346,50 +3980,45 @@ func (r *AccountsUrlchannelsService) List(accountId string, adClientId string) * return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of URL channels to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// URL channels to include in the response, used for paging. func (c *AccountsUrlchannelsListCall) MaxResults(maxResults int64) *AccountsUrlchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through URL channels. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through URL channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AccountsUrlchannelsListCall) PageToken(pageToken string) *AccountsUrlchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUrlchannelsListCall) Fields(s ...googleapi.Field) *AccountsUrlchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsUrlchannelsListCall) IfNoneMatch(entityTag string) *AccountsUrlchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUrlchannelsListCall) Context(ctx context.Context) *AccountsUrlchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUrlchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5398,12 +4027,7 @@ func (c *AccountsUrlchannelsListCall) Header() http.Header { } func (c *AccountsUrlchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5421,16 +4045,14 @@ func (c *AccountsUrlchannelsListCall) doRequest(alt string) (*http.Response, err "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.urlchannels.list" call. -// Exactly one of *UrlChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UrlChannels.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UrlChannels.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5438,17 +4060,17 @@ func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UrlChannels{ ServerResponse: googleapi.ServerResponse{ @@ -5461,51 +4083,6 @@ func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChan return nil, err } return ret, nil - // { - // "description": "List all URL channels in the specified ad client for the specified account.", - // "httpMethod": "GET", - // "id": "adsense.accounts.urlchannels.list", - // "parameterOrder": [ - // "accountId", - // "adClientId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account to which the ad client belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adClientId": { - // "description": "Ad client for which to list URL channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of URL channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", - // "response": { - // "$ref": "UrlChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -5513,7 +4090,7 @@ func (c *AccountsUrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChan // The provided context supersedes any context provided to the Context method. func (c *AccountsUrlchannelsListCall) Pages(ctx context.Context, f func(*UrlChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5529,8 +4106,6 @@ func (c *AccountsUrlchannelsListCall) Pages(ctx context.Context, f func(*UrlChan } } -// method id "adsense.adclients.list": - type AdclientsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -5545,50 +4120,45 @@ func (r *AdclientsService) List() *AdclientsListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad clients to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad clients to include in the response, used for paging. func (c *AdclientsListCall) MaxResults(maxResults int64) *AdclientsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad clients. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad clients. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AdclientsListCall) PageToken(pageToken string) *AdclientsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdclientsListCall) Fields(s ...googleapi.Field) *AdclientsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdclientsListCall) IfNoneMatch(entityTag string) *AdclientsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdclientsListCall) Context(ctx context.Context) *AdclientsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdclientsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5597,12 +4167,7 @@ func (c *AdclientsListCall) Header() http.Header { } func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5616,16 +4181,14 @@ func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.adclients.list" call. -// Exactly one of *AdClients or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdClients.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdClients.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5633,17 +4196,17 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdClients{ ServerResponse: googleapi.ServerResponse{ @@ -5656,35 +4219,6 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) return nil, err } return ret, nil - // { - // "description": "List all ad clients in this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.adclients.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of ad clients to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients", - // "response": { - // "$ref": "AdClients" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -5692,7 +4226,7 @@ func (c *AdclientsListCall) Do(opts ...googleapi.CallOption) (*AdClients, error) // The provided context supersedes any context provided to the Context method. func (c *AdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5708,8 +4242,6 @@ func (c *AdclientsListCall) Pages(ctx context.Context, f func(*AdClients) error) } } -// method id "adsense.adunits.get": - type AdunitsGetCall struct { s *Service adClientId string @@ -5732,33 +4264,29 @@ func (r *AdunitsService) Get(adClientId string, adUnitId string) *AdunitsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsGetCall) Fields(s ...googleapi.Field) *AdunitsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsGetCall) IfNoneMatch(entityTag string) *AdunitsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsGetCall) Context(ctx context.Context) *AdunitsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5767,12 +4295,7 @@ func (c *AdunitsGetCall) Header() http.Header { } func (c *AdunitsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5790,16 +4313,14 @@ func (c *AdunitsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.adunits.get" call. -// Exactly one of *AdUnit or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnit.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnit.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5807,17 +4328,17 @@ func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnit{ ServerResponse: googleapi.ServerResponse{ @@ -5830,41 +4351,7 @@ func (c *AdunitsGetCall) Do(opts ...googleapi.CallOption) (*AdUnit, error) { return nil, err } return ret, nil - // { - // "description": "Gets the specified ad unit in the specified ad client.", - // "httpMethod": "GET", - // "id": "adsense.adunits.get", - // "parameterOrder": [ - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to get the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits/{adUnitId}", - // "response": { - // "$ref": "AdUnit" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.adunits.getAdCode": +} type AdunitsGetAdCodeCall struct { s *Service @@ -5888,33 +4375,29 @@ func (r *AdunitsService) GetAdCode(adClientId string, adUnitId string) *AdunitsG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsGetAdCodeCall) Fields(s ...googleapi.Field) *AdunitsGetAdCodeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsGetAdCodeCall) IfNoneMatch(entityTag string) *AdunitsGetAdCodeCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsGetAdCodeCall) Context(ctx context.Context) *AdunitsGetAdCodeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsGetAdCodeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5923,12 +4406,7 @@ func (c *AdunitsGetAdCodeCall) Header() http.Header { } func (c *AdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5946,16 +4424,14 @@ func (c *AdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.adunits.getAdCode" call. -// Exactly one of *AdCode or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdCode.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5963,17 +4439,17 @@ func (c *AdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdCode{ ServerResponse: googleapi.ServerResponse{ @@ -5986,41 +4462,7 @@ func (c *AdunitsGetAdCodeCall) Do(opts ...googleapi.CallOption) (*AdCode, error) return nil, err } return ret, nil - // { - // "description": "Get ad code for the specified ad unit.", - // "httpMethod": "GET", - // "id": "adsense.adunits.getAdCode", - // "parameterOrder": [ - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client with contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit to get the code for.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits/{adUnitId}/adcode", - // "response": { - // "$ref": "AdCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.adunits.list": +} type AdunitsListCall struct { s *Service @@ -6031,8 +4473,7 @@ type AdunitsListCall struct { header_ http.Header } -// List: List all ad units in the specified ad client for this AdSense -// account. +// List: List all ad units in the specified ad client for this AdSense account. // // - adClientId: Ad client for which to list ad units. func (r *AdunitsService) List(adClientId string) *AdunitsListCall { @@ -6041,57 +4482,52 @@ func (r *AdunitsService) List(adClientId string) *AdunitsListCall { return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *AdunitsListCall) IncludeInactive(includeInactive bool) *AdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *AdunitsListCall) MaxResults(maxResults int64) *AdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *AdunitsListCall) PageToken(pageToken string) *AdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsListCall) Fields(s ...googleapi.Field) *AdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsListCall) IfNoneMatch(entityTag string) *AdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsListCall) Context(ctx context.Context) *AdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6100,12 +4536,7 @@ func (c *AdunitsListCall) Header() http.Header { } func (c *AdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6122,16 +4553,14 @@ func (c *AdunitsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6139,17 +4568,17 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -6162,49 +4591,6 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified ad client for this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.adunits.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -6212,7 +4598,7 @@ func (c *AdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { // The provided context supersedes any context provided to the Context method. func (c *AdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6228,8 +4614,6 @@ func (c *AdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) err } } -// method id "adsense.adunits.customchannels.list": - type AdunitsCustomchannelsListCall struct { s *Service adClientId string @@ -6240,8 +4624,7 @@ type AdunitsCustomchannelsListCall struct { header_ http.Header } -// List: List all custom channels which the specified ad unit belongs -// to. +// List: List all custom channels which the specified ad unit belongs to. // // - adClientId: Ad client which contains the ad unit. // - adUnitId: Ad unit for which to list custom channels. @@ -6252,51 +4635,45 @@ func (r *AdunitsCustomchannelsService) List(adClientId string, adUnitId string) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *AdunitsCustomchannelsListCall) MaxResults(maxResults int64) *AdunitsCustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *AdunitsCustomchannelsListCall) PageToken(pageToken string) *AdunitsCustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdunitsCustomchannelsListCall) Fields(s ...googleapi.Field) *AdunitsCustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdunitsCustomchannelsListCall) IfNoneMatch(entityTag string) *AdunitsCustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdunitsCustomchannelsListCall) Context(ctx context.Context) *AdunitsCustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdunitsCustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6305,12 +4682,7 @@ func (c *AdunitsCustomchannelsListCall) Header() http.Header { } func (c *AdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6328,16 +4700,14 @@ func (c *AdunitsCustomchannelsListCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.adunits.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6345,17 +4715,17 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -6368,51 +4738,6 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo return nil, err } return ret, nil - // { - // "description": "List all custom channels which the specified ad unit belongs to.", - // "httpMethod": "GET", - // "id": "adsense.adunits.customchannels.list", - // "parameterOrder": [ - // "adClientId", - // "adUnitId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the ad unit.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "adUnitId": { - // "description": "Ad unit for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -6420,7 +4745,7 @@ func (c *AdunitsCustomchannelsListCall) Do(opts ...googleapi.CallOption) (*Custo // The provided context supersedes any context provided to the Context method. func (c *AdunitsCustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6436,8 +4761,6 @@ func (c *AdunitsCustomchannelsListCall) Pages(ctx context.Context, f func(*Custo } } -// method id "adsense.alerts.delete": - type AlertsDeleteCall struct { s *Service alertId string @@ -6446,8 +4769,8 @@ type AlertsDeleteCall struct { header_ http.Header } -// Delete: Dismiss (delete) the specified alert from the publisher's -// AdSense account. +// Delete: Dismiss (delete) the specified alert from the publisher's AdSense +// account. // // - alertId: Alert to delete. func (r *AlertsService) Delete(alertId string) *AlertsDeleteCall { @@ -6457,23 +4780,21 @@ func (r *AlertsService) Delete(alertId string) *AlertsDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AlertsDeleteCall) Fields(s ...googleapi.Field) *AlertsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AlertsDeleteCall) Context(ctx context.Context) *AlertsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AlertsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6482,12 +4803,7 @@ func (c *AlertsDeleteCall) Header() http.Header { } func (c *AlertsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -6501,7 +4817,7 @@ func (c *AlertsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "alertId": c.alertId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.alerts.delete" call. @@ -6513,33 +4829,10 @@ func (c *AlertsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Dismiss (delete) the specified alert from the publisher's AdSense account.", - // "httpMethod": "DELETE", - // "id": "adsense.alerts.delete", - // "parameterOrder": [ - // "alertId" - // ], - // "parameters": { - // "alertId": { - // "description": "Alert to delete.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "alerts/{alertId}", - // "scopes": [ - // "https://www.googleapis.com/auth/adsense" - // ] - // } - -} - -// method id "adsense.alerts.list": +} type AlertsListCall struct { s *Service @@ -6556,42 +4849,38 @@ func (r *AlertsService) List() *AlertsListCall { } // Locale sets the optional parameter "locale": The locale to use for -// translating alert messages. The account locale will be used if this -// is not supplied. The AdSense default (English) will be used if the -// supplied locale is invalid or unsupported. +// translating alert messages. The account locale will be used if this is not +// supplied. The AdSense default (English) will be used if the supplied locale +// is invalid or unsupported. func (c *AlertsListCall) Locale(locale string) *AlertsListCall { c.urlParams_.Set("locale", locale) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AlertsListCall) Fields(s ...googleapi.Field) *AlertsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AlertsListCall) IfNoneMatch(entityTag string) *AlertsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AlertsListCall) Context(ctx context.Context) *AlertsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AlertsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6600,12 +4889,7 @@ func (c *AlertsListCall) Header() http.Header { } func (c *AlertsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6619,16 +4903,14 @@ func (c *AlertsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.alerts.list" call. -// Exactly one of *Alerts or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Alerts.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Alerts.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6636,17 +4918,17 @@ func (c *AlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Alerts{ ServerResponse: googleapi.ServerResponse{ @@ -6659,30 +4941,7 @@ func (c *AlertsListCall) Do(opts ...googleapi.CallOption) (*Alerts, error) { return nil, err } return ret, nil - // { - // "description": "List the alerts for this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.alerts.list", - // "parameters": { - // "locale": { - // "description": "The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "alerts", - // "response": { - // "$ref": "Alerts" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.customchannels.get": +} type CustomchannelsGetCall struct { s *Service @@ -6706,33 +4965,29 @@ func (r *CustomchannelsService) Get(adClientId string, customChannelId string) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsGetCall) Fields(s ...googleapi.Field) *CustomchannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsGetCall) IfNoneMatch(entityTag string) *CustomchannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsGetCall) Context(ctx context.Context) *CustomchannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6741,12 +4996,7 @@ func (c *CustomchannelsGetCall) Header() http.Header { } func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6764,16 +5014,14 @@ func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.customchannels.get" call. -// Exactly one of *CustomChannel or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannel.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannel.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6781,17 +5029,17 @@ func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannel{ ServerResponse: googleapi.ServerResponse{ @@ -6804,41 +5052,7 @@ func (c *CustomchannelsGetCall) Do(opts ...googleapi.CallOption) (*CustomChannel return nil, err } return ret, nil - // { - // "description": "Get the specified custom channel from the specified ad client.", - // "httpMethod": "GET", - // "id": "adsense.customchannels.get", - // "parameterOrder": [ - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels/{customChannelId}", - // "response": { - // "$ref": "CustomChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.customchannels.list": +} type CustomchannelsListCall struct { s *Service @@ -6849,8 +5063,8 @@ type CustomchannelsListCall struct { header_ http.Header } -// List: List all custom channels in the specified ad client for this -// AdSense account. +// List: List all custom channels in the specified ad client for this AdSense +// account. // // - adClientId: Ad client for which to list custom channels. func (r *CustomchannelsService) List(adClientId string) *CustomchannelsListCall { @@ -6859,51 +5073,45 @@ func (r *CustomchannelsService) List(adClientId string) *CustomchannelsListCall return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of custom channels to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// custom channels to include in the response, used for paging. func (c *CustomchannelsListCall) MaxResults(maxResults int64) *CustomchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through custom channels. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through custom channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *CustomchannelsListCall) PageToken(pageToken string) *CustomchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsListCall) Fields(s ...googleapi.Field) *CustomchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsListCall) IfNoneMatch(entityTag string) *CustomchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsListCall) Context(ctx context.Context) *CustomchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6912,12 +5120,7 @@ func (c *CustomchannelsListCall) Header() http.Header { } func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6934,16 +5137,14 @@ func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.customchannels.list" call. -// Exactly one of *CustomChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomChannels.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomChannels.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6951,17 +5152,17 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomChannels{ ServerResponse: googleapi.ServerResponse{ @@ -6974,44 +5175,6 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne return nil, err } return ret, nil - // { - // "description": "List all custom channels in the specified ad client for this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.customchannels.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list custom channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of custom channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels", - // "response": { - // "$ref": "CustomChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -7019,7 +5182,7 @@ func (c *CustomchannelsListCall) Do(opts ...googleapi.CallOption) (*CustomChanne // The provided context supersedes any context provided to the Context method. func (c *CustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -7035,8 +5198,6 @@ func (c *CustomchannelsListCall) Pages(ctx context.Context, f func(*CustomChanne } } -// method id "adsense.customchannels.adunits.list": - type CustomchannelsAdunitsListCall struct { s *Service adClientId string @@ -7058,57 +5219,52 @@ func (r *CustomchannelsAdunitsService) List(adClientId string, customChannelId s return c } -// IncludeInactive sets the optional parameter "includeInactive": -// Whether to include inactive ad units. Default: true. +// IncludeInactive sets the optional parameter "includeInactive": Whether to +// include inactive ad units. Default: true. func (c *CustomchannelsAdunitsListCall) IncludeInactive(includeInactive bool) *CustomchannelsAdunitsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of ad units to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// ad units to include in the response, used for paging. func (c *CustomchannelsAdunitsListCall) MaxResults(maxResults int64) *CustomchannelsAdunitsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through ad units. To retrieve the next page, set -// this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through ad units. To retrieve the next page, set this parameter +// to the value of "nextPageToken" from the previous response. func (c *CustomchannelsAdunitsListCall) PageToken(pageToken string) *CustomchannelsAdunitsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomchannelsAdunitsListCall) Fields(s ...googleapi.Field) *CustomchannelsAdunitsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomchannelsAdunitsListCall) IfNoneMatch(entityTag string) *CustomchannelsAdunitsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomchannelsAdunitsListCall) Context(ctx context.Context) *CustomchannelsAdunitsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomchannelsAdunitsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7117,12 +5273,7 @@ func (c *CustomchannelsAdunitsListCall) Header() http.Header { } func (c *CustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7140,16 +5291,14 @@ func (c *CustomchannelsAdunitsListCall) doRequest(alt string) (*http.Response, e "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.customchannels.adunits.list" call. -// Exactly one of *AdUnits or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *AdUnits.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdUnits.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUnits, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7157,17 +5306,17 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdUnits{ ServerResponse: googleapi.ServerResponse{ @@ -7180,56 +5329,6 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni return nil, err } return ret, nil - // { - // "description": "List all ad units in the specified custom channel.", - // "httpMethod": "GET", - // "id": "adsense.customchannels.adunits.list", - // "parameterOrder": [ - // "adClientId", - // "customChannelId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client which contains the custom channel.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customChannelId": { - // "description": "Custom channel for which to list ad units.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeInactive": { - // "description": "Whether to include inactive ad units. Default: true.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of ad units to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", - // "response": { - // "$ref": "AdUnits" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -7237,7 +5336,7 @@ func (c *CustomchannelsAdunitsListCall) Do(opts ...googleapi.CallOption) (*AdUni // The provided context supersedes any context provided to the Context method. func (c *CustomchannelsAdunitsListCall) Pages(ctx context.Context, f func(*AdUnits) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -7253,8 +5352,6 @@ func (c *CustomchannelsAdunitsListCall) Pages(ctx context.Context, f func(*AdUni } } -// method id "adsense.metadata.dimensions.list": - type MetadataDimensionsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -7271,33 +5368,29 @@ func (r *MetadataDimensionsService) List() *MetadataDimensionsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetadataDimensionsListCall) Fields(s ...googleapi.Field) *MetadataDimensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetadataDimensionsListCall) IfNoneMatch(entityTag string) *MetadataDimensionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetadataDimensionsListCall) Context(ctx context.Context) *MetadataDimensionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetadataDimensionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7306,12 +5399,7 @@ func (c *MetadataDimensionsListCall) Header() http.Header { } func (c *MetadataDimensionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7325,16 +5413,14 @@ func (c *MetadataDimensionsListCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.metadata.dimensions.list" call. -// Exactly one of *Metadata or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Metadata.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Metadata.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7342,17 +5428,17 @@ func (c *MetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Metadata{ ServerResponse: googleapi.ServerResponse{ @@ -7365,24 +5451,8 @@ func (c *MetadataDimensionsListCall) Do(opts ...googleapi.CallOption) (*Metadata return nil, err } return ret, nil - // { - // "description": "List the metadata for the dimensions available to this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.metadata.dimensions.list", - // "path": "metadata/dimensions", - // "response": { - // "$ref": "Metadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } -// method id "adsense.metadata.metrics.list": - type MetadataMetricsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -7391,41 +5461,36 @@ type MetadataMetricsListCall struct { header_ http.Header } -// List: List the metadata for the metrics available to this AdSense -// account. +// List: List the metadata for the metrics available to this AdSense account. func (r *MetadataMetricsService) List() *MetadataMetricsListCall { c := &MetadataMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetadataMetricsListCall) Fields(s ...googleapi.Field) *MetadataMetricsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetadataMetricsListCall) IfNoneMatch(entityTag string) *MetadataMetricsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetadataMetricsListCall) Context(ctx context.Context) *MetadataMetricsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetadataMetricsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7434,12 +5499,7 @@ func (c *MetadataMetricsListCall) Header() http.Header { } func (c *MetadataMetricsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7453,16 +5513,14 @@ func (c *MetadataMetricsListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.metadata.metrics.list" call. -// Exactly one of *Metadata or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Metadata.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Metadata.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7470,17 +5528,17 @@ func (c *MetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Metadata{ ServerResponse: googleapi.ServerResponse{ @@ -7493,24 +5551,8 @@ func (c *MetadataMetricsListCall) Do(opts ...googleapi.CallOption) (*Metadata, e return nil, err } return ret, nil - // { - // "description": "List the metadata for the metrics available to this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.metadata.metrics.list", - // "path": "metadata/metrics", - // "response": { - // "$ref": "Metadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } -// method id "adsense.payments.list": - type PaymentsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -7526,33 +5568,29 @@ func (r *PaymentsService) List() *PaymentsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PaymentsListCall) Fields(s ...googleapi.Field) *PaymentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PaymentsListCall) IfNoneMatch(entityTag string) *PaymentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PaymentsListCall) Context(ctx context.Context) *PaymentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PaymentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7561,12 +5599,7 @@ func (c *PaymentsListCall) Header() http.Header { } func (c *PaymentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7580,16 +5613,14 @@ func (c *PaymentsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.payments.list" call. -// Exactly one of *Payments or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Payments.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Payments.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PaymentsListCall) Do(opts ...googleapi.CallOption) (*Payments, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7597,17 +5628,17 @@ func (c *PaymentsListCall) Do(opts ...googleapi.CallOption) (*Payments, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Payments{ ServerResponse: googleapi.ServerResponse{ @@ -7620,24 +5651,8 @@ func (c *PaymentsListCall) Do(opts ...googleapi.CallOption) (*Payments, error) { return nil, err } return ret, nil - // { - // "description": "List the payments for this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.payments.list", - // "path": "payments", - // "response": { - // "$ref": "Payments" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } -// method id "adsense.reports.generate": - type ReportsGenerateCall struct { s *Service urlParams_ gensupport.URLParams @@ -7646,14 +5661,14 @@ type ReportsGenerateCall struct { header_ http.Header } -// Generate: Generate an AdSense report based on the report request sent -// in the query parameters. Returns the result as JSON; to retrieve -// output in CSV format specify "alt=csv" as a query parameter. +// Generate: Generate an AdSense report based on the report request sent in the +// query parameters. Returns the result as JSON; to retrieve output in CSV +// format specify "alt=csv" as a query parameter. // // - endDate: End of the date range to report on in "YYYY-MM-DD" format, // inclusive. -// - startDate: Start of the date range to report on in "YYYY-MM-DD" -// format, inclusive. +// - startDate: Start of the date range to report on in "YYYY-MM-DD" format, +// inclusive. func (r *ReportsService) Generate(startDate string, endDate string) *ReportsGenerateCall { c := &ReportsGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("startDate", startDate) @@ -7661,23 +5676,23 @@ func (r *ReportsService) Generate(startDate string, endDate string) *ReportsGene return c } -// AccountId sets the optional parameter "accountId": Accounts upon -// which to report. +// AccountId sets the optional parameter "accountId": Accounts upon which to +// report. func (c *ReportsGenerateCall) AccountId(accountId ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("accountId", append([]string{}, accountId...)) return c } -// Currency sets the optional parameter "currency": Optional currency to -// use when reporting on monetary metrics. Defaults to the account's -// currency if not set. +// Currency sets the optional parameter "currency": Optional currency to use +// when reporting on monetary metrics. Defaults to the account's currency if +// not set. func (c *ReportsGenerateCall) Currency(currency string) *ReportsGenerateCall { c.urlParams_.Set("currency", currency) return c } -// Dimension sets the optional parameter "dimension": Dimensions to base -// the report on. +// Dimension sets the optional parameter "dimension": Dimensions to base the +// report on. func (c *ReportsGenerateCall) Dimension(dimension ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("dimension", append([]string{}, dimension...)) return c @@ -7690,81 +5705,76 @@ func (c *ReportsGenerateCall) Filter(filter ...string) *ReportsGenerateCall { return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *ReportsGenerateCall) Locale(locale string) *ReportsGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *ReportsGenerateCall) MaxResults(maxResults int64) *ReportsGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Metric sets the optional parameter "metric": Numeric columns to -// include in the report. +// Metric sets the optional parameter "metric": Numeric columns to include in +// the report. func (c *ReportsGenerateCall) Metric(metric ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("metric", append([]string{}, metric...)) return c } -// Sort sets the optional parameter "sort": The name of a dimension or -// metric to sort the resulting report on, optionally prefixed with "+" -// to sort ascending or "-" to sort descending. If no prefix is -// specified, the column is sorted ascending. +// Sort sets the optional parameter "sort": The name of a dimension or metric +// to sort the resulting report on, optionally prefixed with "+" to sort +// ascending or "-" to sort descending. If no prefix is specified, the column +// is sorted ascending. func (c *ReportsGenerateCall) Sort(sort ...string) *ReportsGenerateCall { c.urlParams_.SetMulti("sort", append([]string{}, sort...)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *ReportsGenerateCall) StartIndex(startIndex int64) *ReportsGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } -// UseTimezoneReporting sets the optional parameter -// "useTimezoneReporting": Whether the report should be generated in the -// AdSense account's local timezone. If false default PST/PDT timezone -// will be used. +// UseTimezoneReporting sets the optional parameter "useTimezoneReporting": +// Whether the report should be generated in the AdSense account's local +// timezone. If false default PST/PDT timezone will be used. func (c *ReportsGenerateCall) UseTimezoneReporting(useTimezoneReporting bool) *ReportsGenerateCall { c.urlParams_.Set("useTimezoneReporting", fmt.Sprint(useTimezoneReporting)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsGenerateCall) Fields(s ...googleapi.Field) *ReportsGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsGenerateCall) IfNoneMatch(entityTag string) *ReportsGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ReportsGenerateCall) Context(ctx context.Context) *ReportsGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7773,12 +5783,7 @@ func (c *ReportsGenerateCall) Header() http.Header { } func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7792,7 +5797,7 @@ func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -7806,18 +5811,17 @@ func (c *ReportsGenerateCall) Download(opts ...googleapi.CallOption) (*http.Resp } if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "adsense.reports.generate" call. -// Exactly one of *AdsenseReportsGenerateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsGenerateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7825,17 +5829,17 @@ func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsenseReportsGenerateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7848,111 +5852,7 @@ func (c *ReportsGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsG return nil, err } return ret, nil - // { - // "description": "Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.", - // "httpMethod": "GET", - // "id": "adsense.reports.generate", - // "parameterOrder": [ - // "startDate", - // "endDate" - // ], - // "parameters": { - // "accountId": { - // "description": "Accounts upon which to report.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "currency": { - // "description": "Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.", - // "location": "query", - // "pattern": "[a-zA-Z]+", - // "type": "string" - // }, - // "dimension": { - // "description": "Dimensions to base the report on.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "endDate": { - // "description": "End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)|(latest-(\\d{2})-(\\d{2})(-\\d+y)?)|(latest-latest-(\\d{2})(-\\d+m)?)", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Filters to be run on the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+(==|=@).+", - // "repeated": true, - // "type": "string" - // }, - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "metric": { - // "description": "Numeric columns to include in the report.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "sort": { - // "description": "The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort descending. If no prefix is specified, the column is sorted ascending.", - // "location": "query", - // "pattern": "(\\+|-)?[a-zA-Z_]+", - // "repeated": true, - // "type": "string" - // }, - // "startDate": { - // "description": "Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", - // "location": "query", - // "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)|(latest-(\\d{2})-(\\d{2})(-\\d+y)?)|(latest-latest-(\\d{2})(-\\d+m)?)", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // }, - // "useTimezoneReporting": { - // "description": "Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "reports", - // "response": { - // "$ref": "AdsenseReportsGenerateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "adsense.reports.saved.generate": +} type ReportsSavedGenerateCall struct { s *Service @@ -7963,8 +5863,8 @@ type ReportsSavedGenerateCall struct { header_ http.Header } -// Generate: Generate an AdSense report based on the saved report ID -// sent in the query parameters. +// Generate: Generate an AdSense report based on the saved report ID sent in +// the query parameters. // // - savedReportId: The saved report to retrieve. func (r *ReportsSavedService) Generate(savedReportId string) *ReportsSavedGenerateCall { @@ -7973,56 +5873,52 @@ func (r *ReportsSavedService) Generate(savedReportId string) *ReportsSavedGenera return c } -// Locale sets the optional parameter "locale": Optional locale to use -// for translating report output to a local language. Defaults to -// "en_US" if not specified. +// Locale sets the optional parameter "locale": Optional locale to use for +// translating report output to a local language. Defaults to "en_US" if not +// specified. func (c *ReportsSavedGenerateCall) Locale(locale string) *ReportsSavedGenerateCall { c.urlParams_.Set("locale", locale) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of rows of report data to return. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// rows of report data to return. func (c *ReportsSavedGenerateCall) MaxResults(maxResults int64) *ReportsSavedGenerateCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first row of report data to return. +// StartIndex sets the optional parameter "startIndex": Index of the first row +// of report data to return. func (c *ReportsSavedGenerateCall) StartIndex(startIndex int64) *ReportsSavedGenerateCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsSavedGenerateCall) Fields(s ...googleapi.Field) *ReportsSavedGenerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsSavedGenerateCall) IfNoneMatch(entityTag string) *ReportsSavedGenerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsSavedGenerateCall) Context(ctx context.Context) *ReportsSavedGenerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsSavedGenerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8031,12 +5927,7 @@ func (c *ReportsSavedGenerateCall) Header() http.Header { } func (c *ReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8053,16 +5944,15 @@ func (c *ReportsSavedGenerateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "savedReportId": c.savedReportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.reports.saved.generate" call. -// Exactly one of *AdsenseReportsGenerateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsenseReportsGenerateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseReportsGenerateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8070,17 +5960,17 @@ func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseRep if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsenseReportsGenerateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8093,56 +5983,7 @@ func (c *ReportsSavedGenerateCall) Do(opts ...googleapi.CallOption) (*AdsenseRep return nil, err } return ret, nil - // { - // "description": "Generate an AdSense report based on the saved report ID sent in the query parameters.", - // "httpMethod": "GET", - // "id": "adsense.reports.saved.generate", - // "parameterOrder": [ - // "savedReportId" - // ], - // "parameters": { - // "locale": { - // "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", - // "location": "query", - // "pattern": "[a-zA-Z_]+", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of rows of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "50000", - // "minimum": "0", - // "type": "integer" - // }, - // "savedReportId": { - // "description": "The saved report to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first row of report data to return.", - // "format": "int32", - // "location": "query", - // "maximum": "5000", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "reports/{savedReportId}", - // "response": { - // "$ref": "AdsenseReportsGenerateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.reports.saved.list": +} type ReportsSavedListCall struct { s *Service @@ -8158,50 +5999,45 @@ func (r *ReportsSavedService) List() *ReportsSavedListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved reports to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved reports to include in the response, used for paging. func (c *ReportsSavedListCall) MaxResults(maxResults int64) *ReportsSavedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved reports. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved reports. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *ReportsSavedListCall) PageToken(pageToken string) *ReportsSavedListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsSavedListCall) Fields(s ...googleapi.Field) *ReportsSavedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsSavedListCall) IfNoneMatch(entityTag string) *ReportsSavedListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsSavedListCall) Context(ctx context.Context) *ReportsSavedListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsSavedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8210,12 +6046,7 @@ func (c *ReportsSavedListCall) Header() http.Header { } func (c *ReportsSavedListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8229,16 +6060,14 @@ func (c *ReportsSavedListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.reports.saved.list" call. -// Exactly one of *SavedReports or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedReports.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedReports.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8246,17 +6075,17 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedReports{ ServerResponse: googleapi.ServerResponse{ @@ -8269,35 +6098,6 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, return nil, err } return ret, nil - // { - // "description": "List all saved reports in this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.reports.saved.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of saved reports to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "reports/saved", - // "response": { - // "$ref": "SavedReports" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -8305,7 +6105,7 @@ func (c *ReportsSavedListCall) Do(opts ...googleapi.CallOption) (*SavedReports, // The provided context supersedes any context provided to the Context method. func (c *ReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -8321,8 +6121,6 @@ func (c *ReportsSavedListCall) Pages(ctx context.Context, f func(*SavedReports) } } -// method id "adsense.savedadstyles.get": - type SavedadstylesGetCall struct { s *Service savedAdStyleId string @@ -8342,33 +6140,29 @@ func (r *SavedadstylesService) Get(savedAdStyleId string) *SavedadstylesGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SavedadstylesGetCall) Fields(s ...googleapi.Field) *SavedadstylesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SavedadstylesGetCall) IfNoneMatch(entityTag string) *SavedadstylesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SavedadstylesGetCall) Context(ctx context.Context) *SavedadstylesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SavedadstylesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8377,12 +6171,7 @@ func (c *SavedadstylesGetCall) Header() http.Header { } func (c *SavedadstylesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8399,16 +6188,14 @@ func (c *SavedadstylesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "savedAdStyleId": c.savedAdStyleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.savedadstyles.get" call. -// Exactly one of *SavedAdStyle or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedAdStyle.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedAdStyle.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedAdStyle, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8416,17 +6203,17 @@ func (c *SavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedAdStyle, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedAdStyle{ ServerResponse: googleapi.ServerResponse{ @@ -8439,34 +6226,7 @@ func (c *SavedadstylesGetCall) Do(opts ...googleapi.CallOption) (*SavedAdStyle, return nil, err } return ret, nil - // { - // "description": "Get a specific saved ad style from the user's account.", - // "httpMethod": "GET", - // "id": "adsense.savedadstyles.get", - // "parameterOrder": [ - // "savedAdStyleId" - // ], - // "parameters": { - // "savedAdStyleId": { - // "description": "Saved ad style to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "savedadstyles/{savedAdStyleId}", - // "response": { - // "$ref": "SavedAdStyle" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - -} - -// method id "adsense.savedadstyles.list": +} type SavedadstylesListCall struct { s *Service @@ -8482,51 +6242,45 @@ func (r *SavedadstylesService) List() *SavedadstylesListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of saved ad styles to include in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// saved ad styles to include in the response, used for paging. func (c *SavedadstylesListCall) MaxResults(maxResults int64) *SavedadstylesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through saved ad styles. To retrieve the next -// page, set this parameter to the value of "nextPageToken" from the -// previous response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through saved ad styles. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *SavedadstylesListCall) PageToken(pageToken string) *SavedadstylesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SavedadstylesListCall) Fields(s ...googleapi.Field) *SavedadstylesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SavedadstylesListCall) IfNoneMatch(entityTag string) *SavedadstylesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SavedadstylesListCall) Context(ctx context.Context) *SavedadstylesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SavedadstylesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8535,12 +6289,7 @@ func (c *SavedadstylesListCall) Header() http.Header { } func (c *SavedadstylesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8554,16 +6303,14 @@ func (c *SavedadstylesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.savedadstyles.list" call. -// Exactly one of *SavedAdStyles or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SavedAdStyles.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SavedAdStyles.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8571,17 +6318,17 @@ func (c *SavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SavedAdStyles{ ServerResponse: googleapi.ServerResponse{ @@ -8594,35 +6341,6 @@ func (c *SavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles return nil, err } return ret, nil - // { - // "description": "List all saved ad styles in the user's account.", - // "httpMethod": "GET", - // "id": "adsense.savedadstyles.list", - // "parameters": { - // "maxResults": { - // "description": "The maximum number of saved ad styles to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "savedadstyles", - // "response": { - // "$ref": "SavedAdStyles" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -8630,7 +6348,7 @@ func (c *SavedadstylesListCall) Do(opts ...googleapi.CallOption) (*SavedAdStyles // The provided context supersedes any context provided to the Context method. func (c *SavedadstylesListCall) Pages(ctx context.Context, f func(*SavedAdStyles) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -8646,8 +6364,6 @@ func (c *SavedadstylesListCall) Pages(ctx context.Context, f func(*SavedAdStyles } } -// method id "adsense.urlchannels.list": - type UrlchannelsListCall struct { s *Service adClientId string @@ -8657,8 +6373,8 @@ type UrlchannelsListCall struct { header_ http.Header } -// List: List all URL channels in the specified ad client for this -// AdSense account. +// List: List all URL channels in the specified ad client for this AdSense +// account. // // - adClientId: Ad client for which to list URL channels. func (r *UrlchannelsService) List(adClientId string) *UrlchannelsListCall { @@ -8667,50 +6383,45 @@ func (r *UrlchannelsService) List(adClientId string) *UrlchannelsListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of URL channels to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// URL channels to include in the response, used for paging. func (c *UrlchannelsListCall) MaxResults(maxResults int64) *UrlchannelsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A continuation -// token, used to page through URL channels. To retrieve the next page, -// set this parameter to the value of "nextPageToken" from the previous -// response. +// PageToken sets the optional parameter "pageToken": A continuation token, +// used to page through URL channels. To retrieve the next page, set this +// parameter to the value of "nextPageToken" from the previous response. func (c *UrlchannelsListCall) PageToken(pageToken string) *UrlchannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UrlchannelsListCall) Fields(s ...googleapi.Field) *UrlchannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UrlchannelsListCall) IfNoneMatch(entityTag string) *UrlchannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UrlchannelsListCall) Context(ctx context.Context) *UrlchannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UrlchannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8719,12 +6430,7 @@ func (c *UrlchannelsListCall) Header() http.Header { } func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211130") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8741,16 +6447,14 @@ func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.urlchannels.list" call. -// Exactly one of *UrlChannels or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UrlChannels.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UrlChannels.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8758,17 +6462,17 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UrlChannels{ ServerResponse: googleapi.ServerResponse{ @@ -8781,44 +6485,6 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er return nil, err } return ret, nil - // { - // "description": "List all URL channels in the specified ad client for this AdSense account.", - // "httpMethod": "GET", - // "id": "adsense.urlchannels.list", - // "parameterOrder": [ - // "adClientId" - // ], - // "parameters": { - // "adClientId": { - // "description": "Ad client for which to list URL channels.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of URL channels to include in the response, used for paging.", - // "format": "int32", - // "location": "query", - // "maximum": "10000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "adclients/{adClientId}/urlchannels", - // "response": { - // "$ref": "UrlChannels" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/adsense", - // "https://www.googleapis.com/auth/adsense.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -8826,7 +6492,7 @@ func (c *UrlchannelsListCall) Do(opts ...googleapi.CallOption) (*UrlChannels, er // The provided context supersedes any context provided to the Context method. func (c *UrlchannelsListCall) Pages(ctx context.Context, f func(*UrlChannels) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/adsense/v2/adsense-gen.go b/adsense/v2/adsense-gen.go index 4b028f231ae..9ccae574e43 100644 --- a/adsense/v2/adsense-gen.go +++ b/adsense/v2/adsense-gen.go @@ -1599,7 +1599,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.get" call. @@ -1707,7 +1707,7 @@ func (c *AccountsGetAdBlockingRecoveryTagCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.getAdBlockingRecoveryTag" call. @@ -1826,7 +1826,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.list" call. @@ -1975,7 +1975,7 @@ func (c *AccountsListChildAccountsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.listChildAccounts" call. @@ -2105,7 +2105,7 @@ func (c *AccountsAdclientsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.get" call. @@ -2216,7 +2216,7 @@ func (c *AccountsAdclientsGetAdcodeCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.getAdcode" call. @@ -2342,7 +2342,7 @@ func (c *AccountsAdclientsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.list" call. @@ -2474,7 +2474,7 @@ func (c *AccountsAdclientsAdunitsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.adunits.create" call. @@ -2582,7 +2582,7 @@ func (c *AccountsAdclientsAdunitsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.adunits.get" call. @@ -2693,7 +2693,7 @@ func (c *AccountsAdclientsAdunitsGetAdcodeCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.adunits.getAdcode" call. @@ -2819,7 +2819,7 @@ func (c *AccountsAdclientsAdunitsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.adunits.list" call. @@ -2968,7 +2968,7 @@ func (c *AccountsAdclientsAdunitsListLinkedCustomChannelsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.adunits.listLinkedCustomChannels" call. @@ -3104,7 +3104,7 @@ func (c *AccountsAdclientsAdunitsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.adunits.patch" call. @@ -3209,7 +3209,7 @@ func (c *AccountsAdclientsCustomchannelsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.customchannels.create" call. @@ -3308,7 +3308,7 @@ func (c *AccountsAdclientsCustomchannelsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.customchannels.delete" call. @@ -3416,7 +3416,7 @@ func (c *AccountsAdclientsCustomchannelsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.customchannels.get" call. @@ -3542,7 +3542,7 @@ func (c *AccountsAdclientsCustomchannelsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.customchannels.list" call. @@ -3690,7 +3690,7 @@ func (c *AccountsAdclientsCustomchannelsListLinkedAdUnitsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.customchannels.listLinkedAdUnits" call. @@ -3824,7 +3824,7 @@ func (c *AccountsAdclientsCustomchannelsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.customchannels.patch" call. @@ -3932,7 +3932,7 @@ func (c *AccountsAdclientsUrlchannelsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.urlchannels.get" call. @@ -4058,7 +4058,7 @@ func (c *AccountsAdclientsUrlchannelsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.adclients.urlchannels.list" call. @@ -4198,7 +4198,7 @@ func (c *AccountsAlertsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.alerts.list" call. @@ -4307,7 +4307,7 @@ func (c *AccountsPaymentsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.payments.list" call. @@ -4416,7 +4416,7 @@ func (c *AccountsPolicyIssuesGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.policyIssues.get" call. @@ -4543,7 +4543,7 @@ func (c *AccountsPolicyIssuesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.policyIssues.list" call. @@ -5146,7 +5146,7 @@ func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "account": c.account, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.generate" call. @@ -5727,7 +5727,7 @@ func (c *AccountsReportsGenerateCsvCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "account": c.account, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.generateCsv" call. @@ -5835,7 +5835,7 @@ func (c *AccountsReportsGetSavedCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.getSaved" call. @@ -6051,7 +6051,7 @@ func (c *AccountsReportsSavedGenerateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.saved.generate" call. @@ -6267,7 +6267,7 @@ func (c *AccountsReportsSavedGenerateCsvCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.saved.generateCsv" call. @@ -6393,7 +6393,7 @@ func (c *AccountsReportsSavedListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.saved.list" call. @@ -6522,7 +6522,7 @@ func (c *AccountsSitesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.sites.get" call. @@ -6648,7 +6648,7 @@ func (c *AccountsSitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.sites.list" call. diff --git a/adsensehost/v4.1/adsensehost-gen.go b/adsensehost/v4.1/adsensehost-gen.go index c199a854996..90ad1a2477e 100644 --- a/adsensehost/v4.1/adsensehost-gen.go +++ b/adsensehost/v4.1/adsensehost-gen.go @@ -974,7 +974,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.get" call. @@ -1078,7 +1078,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.list" call. @@ -1190,7 +1190,7 @@ func (c *AccountsAdclientsGetCall) doRequest(alt string) (*http.Response, error) "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.adclients.get" call. @@ -1312,7 +1312,7 @@ func (c *AccountsAdclientsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.adclients.list" call. @@ -1437,7 +1437,7 @@ func (c *AccountsAdunitsDeleteCall) doRequest(alt string) (*http.Response, error "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.adunits.delete" call. @@ -1552,7 +1552,7 @@ func (c *AccountsAdunitsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.adunits.get" call. @@ -1675,7 +1675,7 @@ func (c *AccountsAdunitsGetAdCodeCall) doRequest(alt string) (*http.Response, er "adClientId": c.adClientId, "adUnitId": c.adUnitId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.adunits.getAdCode" call. @@ -1781,7 +1781,7 @@ func (c *AccountsAdunitsInsertCall) doRequest(alt string) (*http.Response, error "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.adunits.insert" call. @@ -1914,7 +1914,7 @@ func (c *AccountsAdunitsListCall) doRequest(alt string) (*http.Response, error) "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.adunits.list" call. @@ -2043,7 +2043,7 @@ func (c *AccountsAdunitsPatchCall) doRequest(alt string) (*http.Response, error) "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.adunits.patch" call. @@ -2149,7 +2149,7 @@ func (c *AccountsAdunitsUpdateCall) doRequest(alt string) (*http.Response, error "accountId": c.accountId, "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.adunits.update" call. @@ -2316,7 +2316,7 @@ func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.accounts.reports.generate" call. @@ -2424,7 +2424,7 @@ func (c *AdclientsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.adclients.get" call. @@ -2539,7 +2539,7 @@ func (c *AdclientsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.adclients.list" call. @@ -2688,7 +2688,7 @@ func (c *AssociationsessionsStartCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.associationsessions.start" call. @@ -2793,7 +2793,7 @@ func (c *AssociationsessionsVerifyCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.associationsessions.verify" call. @@ -2893,7 +2893,7 @@ func (c *CustomchannelsDeleteCall) doRequest(alt string) (*http.Response, error) "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.customchannels.delete" call. @@ -3004,7 +3004,7 @@ func (c *CustomchannelsGetCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "customChannelId": c.customChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.customchannels.get" call. @@ -3105,7 +3105,7 @@ func (c *CustomchannelsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.customchannels.insert" call. @@ -3227,7 +3227,7 @@ func (c *CustomchannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.customchannels.list" call. @@ -3352,7 +3352,7 @@ func (c *CustomchannelsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.customchannels.patch" call. @@ -3453,7 +3453,7 @@ func (c *CustomchannelsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.customchannels.update" call. @@ -3614,7 +3614,7 @@ func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.reports.generate" call. @@ -3713,7 +3713,7 @@ func (c *UrlchannelsDeleteCall) doRequest(alt string) (*http.Response, error) { "adClientId": c.adClientId, "urlChannelId": c.urlChannelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.urlchannels.delete" call. @@ -3814,7 +3814,7 @@ func (c *UrlchannelsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.urlchannels.insert" call. @@ -3936,7 +3936,7 @@ func (c *UrlchannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "adClientId": c.adClientId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsensehost.urlchannels.list" call. diff --git a/adsenseplatform/v1/adsenseplatform-gen.go b/adsenseplatform/v1/adsenseplatform-gen.go index 1d24c18dd46..6ab93765399 100644 --- a/adsenseplatform/v1/adsenseplatform-gen.go +++ b/adsenseplatform/v1/adsenseplatform-gen.go @@ -613,7 +613,7 @@ func (c *PlatformsAccountsCloseCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.close" call. @@ -715,7 +715,7 @@ func (c *PlatformsAccountsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.create" call. @@ -823,7 +823,7 @@ func (c *PlatformsAccountsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.get" call. @@ -947,7 +947,7 @@ func (c *PlatformsAccountsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.list" call. @@ -1085,7 +1085,7 @@ func (c *PlatformsAccountsLookupCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.lookup" call. @@ -1188,7 +1188,7 @@ func (c *PlatformsAccountsEventsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.events.create" call. @@ -1290,7 +1290,7 @@ func (c *PlatformsAccountsSitesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.sites.create" call. @@ -1386,7 +1386,7 @@ func (c *PlatformsAccountsSitesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.sites.delete" call. @@ -1494,7 +1494,7 @@ func (c *PlatformsAccountsSitesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.sites.get" call. @@ -1620,7 +1620,7 @@ func (c *PlatformsAccountsSitesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.sites.list" call. @@ -1741,7 +1741,7 @@ func (c *PlatformsAccountsSitesRequestReviewCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.sites.requestReview" call. diff --git a/adsenseplatform/v1alpha/adsenseplatform-gen.go b/adsenseplatform/v1alpha/adsenseplatform-gen.go index 460f3cc8129..0f052736752 100644 --- a/adsenseplatform/v1alpha/adsenseplatform-gen.go +++ b/adsenseplatform/v1alpha/adsenseplatform-gen.go @@ -613,7 +613,7 @@ func (c *PlatformsAccountsCloseCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.close" call. @@ -715,7 +715,7 @@ func (c *PlatformsAccountsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.create" call. @@ -823,7 +823,7 @@ func (c *PlatformsAccountsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.get" call. @@ -947,7 +947,7 @@ func (c *PlatformsAccountsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.list" call. @@ -1085,7 +1085,7 @@ func (c *PlatformsAccountsLookupCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.lookup" call. @@ -1188,7 +1188,7 @@ func (c *PlatformsAccountsEventsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.events.create" call. @@ -1290,7 +1290,7 @@ func (c *PlatformsAccountsSitesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.sites.create" call. @@ -1386,7 +1386,7 @@ func (c *PlatformsAccountsSitesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.sites.delete" call. @@ -1494,7 +1494,7 @@ func (c *PlatformsAccountsSitesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.sites.get" call. @@ -1620,7 +1620,7 @@ func (c *PlatformsAccountsSitesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.sites.list" call. @@ -1741,7 +1741,7 @@ func (c *PlatformsAccountsSitesRequestReviewCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsenseplatform.platforms.accounts.sites.requestReview" call. diff --git a/advisorynotifications/v1/advisorynotifications-gen.go b/advisorynotifications/v1/advisorynotifications-gen.go index 19d1b325297..ed452f368a0 100644 --- a/advisorynotifications/v1/advisorynotifications-gen.go +++ b/advisorynotifications/v1/advisorynotifications-gen.go @@ -615,7 +615,7 @@ func (c *OrganizationsLocationsGetSettingsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "advisorynotifications.organizations.locations.getSettings" call. @@ -719,7 +719,7 @@ func (c *OrganizationsLocationsUpdateSettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "advisorynotifications.organizations.locations.updateSettings" call. @@ -841,7 +841,7 @@ func (c *OrganizationsLocationsNotificationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "advisorynotifications.organizations.locations.notifications.get" call. @@ -997,7 +997,7 @@ func (c *OrganizationsLocationsNotificationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "advisorynotifications.organizations.locations.notifications.list" call. @@ -1128,7 +1128,7 @@ func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "advisorynotifications.projects.locations.getSettings" call. @@ -1232,7 +1232,7 @@ func (c *ProjectsLocationsUpdateSettingsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "advisorynotifications.projects.locations.updateSettings" call. @@ -1354,7 +1354,7 @@ func (c *ProjectsLocationsNotificationsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "advisorynotifications.projects.locations.notifications.get" call. @@ -1510,7 +1510,7 @@ func (c *ProjectsLocationsNotificationsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "advisorynotifications.projects.locations.notifications.list" call. diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index bb57e424e04..0caf7d6a412 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -4271,7 +4271,7 @@ ], "parameters": { "featureGroupId": { - "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", "location": "query", "type": "string" }, @@ -17760,7 +17760,7 @@ } } }, - "revision": "20240830", + "revision": "20240907", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -17899,8 +17899,16 @@ "type": "object" }, "CloudAiLargeModelsVisionRaiInfo": { + "description": "Next ID: 6", "id": "CloudAiLargeModelsVisionRaiInfo", "properties": { + "blockedEntities": { + "description": "List of blocked entities from the blocklist if it is detected.", + "items": { + "type": "string" + }, + "type": "array" + }, "detectedLabels": { "description": "The list of detected labels for different rai categories.", "items": { @@ -19844,6 +19852,10 @@ }, "type": "array" }, + "generationConfig": { + "$ref": "GoogleCloudAiplatformV1GenerationConfig", + "description": "Optional. Generation config that the model will use to generate the response." + }, "instances": { "description": "Optional. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.", "items": { @@ -21062,6 +21074,13 @@ "description": "Output only. Provides paths for users to send requests directly to the deployed index services running on Cloud via private services access. This field is populated if network is configured.", "readOnly": true }, + "pscAutomationConfigs": { + "description": "Optional. If set for PSC deployed index, PSC connection will be automatically created after deployment is done and the endpoint information is populated in private_endpoints.psc_automated_endpoints.", + "items": { + "$ref": "GoogleCloudAiplatformV1PSCAutomationConfig" + }, + "type": "array" + }, "reservedIpRanges": { "description": "Optional. A list of reserved ip ranges under the VPC network that can be used for this DeployedIndex. If set, we will deploy the index within the provided ip ranges. Otherwise, the index might be deployed to any ip ranges under the provided VPC network. The value should be the name of the address (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) Example: ['vertex-ai-ip-range']. For more information about subnets and network IP ranges, please see https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges.", "items": { @@ -23072,7 +23091,7 @@ "description": "Required. Immutable. The BigQuery source URI that points to either a BigQuery Table or View." }, "dense": { - "description": "Optional. If set, all feature values will be fetched from a single row per unique entityId including nulls. If not set, will collapse all rows for each unique entityId into a singe row with any non-null values if present, if no non-null values are present will sync null. ex: If source has schema (entity_id, feature_timestamp, f0, f1) and values (e1, 2020-01-01T10:00:00.123Z, 10, 15) (e1, 2020-02-01T10:00:00.123Z, 20, null) If dense is set, (e1, 20, null) is synced to online stores. If dense is not set, (e1, 20, 15) is synced to online stores.", + "description": "Optional. If set, all feature values will be fetched from a single row per unique entityId including nulls. If not set, will collapse all rows for each unique entityId into a singe row with any non-null values if present, if no non-null values are present will sync null. ex: If source has schema `(entity_id, feature_timestamp, f0, f1)` and the following rows: `(e1, 2020-01-01T10:00:00.123Z, 10, 15)` `(e1, 2020-02-01T10:00:00.123Z, 20, null)` If dense is set, `(e1, 20, null)` is synced to online stores. If dense is not set, `(e1, 20, 15)` is synced to online stores.", "type": "boolean" }, "entityIdColumns": { @@ -23746,7 +23765,7 @@ "type": "string" }, "uri": { - "description": "Required. The BigQuery view/table URI that will be materialized on each manual sync trigger. The table/view is expected to have the following columns at least: Field name Type Mode corpus_id STRING REQUIRED/NULLABLE file_id STRING REQUIRED/NULLABLE chunk_id STRING REQUIRED/NULLABLE chunk_data_type STRING REQUIRED/NULLABLE chunk_data STRING REQUIRED/NULLABLE embeddings FLOAT REPEATED file_original_uri STRING REQUIRED/NULLABLE", + "description": "Required. The BigQuery view/table URI that will be materialized on each manual sync trigger. The table/view is expected to have the following columns and types at least: - `corpus_id` (STRING, NULLABLE/REQUIRED) - `file_id` (STRING, NULLABLE/REQUIRED) - `chunk_id` (STRING, NULLABLE/REQUIRED) - `chunk_data_type` (STRING, NULLABLE/REQUIRED) - `chunk_data` (STRING, NULLABLE/REQUIRED) - `embeddings` (FLOAT, REPEATED) - `file_original_uri` (STRING, NULLABLE/REQUIRED)", "type": "string" } }, @@ -24472,6 +24491,13 @@ "$ref": "GoogleCloudAiplatformV1GenerationConfig", "description": "Optional. Generation config." }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.", + "type": "object" + }, "safetySettings": { "description": "Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.", "items": { @@ -29506,6 +29532,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1PSCAutomationConfig": { + "description": "PSC config that is used to automatically create forwarding rule via ServiceConnectionMap.", + "id": "GoogleCloudAiplatformV1PSCAutomationConfig", + "properties": { + "network": { + "description": "Required. The full name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): `projects/{project}/global/networks/{network}`. Where {project} is a project number, as in '12345', and {network} is network name.", + "type": "string" + }, + "projectId": { + "description": "Required. Project id used to create forwarding rule.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PairwiseMetricInput": { "description": "Input for pairwise metric.", "id": "GoogleCloudAiplatformV1PairwiseMetricInput", @@ -32218,14 +32259,16 @@ "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", - "HARM_CATEGORY_SEXUALLY_EXPLICIT" + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY" ], "enumDescriptions": [ "The harm category is unspecified.", "The harm category is hate speech.", "The harm category is dangerous content.", "The harm category is harassment.", - "The harm category is sexually explicit content." + "The harm category is sexually explicit content.", + "The harm category is civic integrity." ], "readOnly": true, "type": "string" @@ -32318,14 +32361,16 @@ "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", - "HARM_CATEGORY_SEXUALLY_EXPLICIT" + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY" ], "enumDescriptions": [ "The harm category is unspecified.", "The harm category is hate speech.", "The harm category is dangerous content.", "The harm category is harassment.", - "The harm category is sexually explicit content." + "The harm category is sexually explicit content.", + "The harm category is civic integrity." ], "type": "string" }, @@ -32350,14 +32395,16 @@ "BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", - "BLOCK_NONE" + "BLOCK_NONE", + "OFF" ], "enumDescriptions": [ "Unspecified harm block threshold.", "Block low threshold and above (i.e. block more).", "Block medium threshold and above.", "Block only high threshold (i.e. block less).", - "Block none." + "Block none.", + "Turn off the safety filter." ], "type": "string" } @@ -32777,6 +32824,13 @@ "description": "Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT.", "type": "object" }, + "propertyOrdering": { + "description": "Optional. The order of the properties. Not a standard field in open api spec. Only used to support the order of the properties.", + "items": { + "type": "string" + }, + "type": "array" + }, "required": { "description": "Optional. Required properties of Type.OBJECT.", "items": { @@ -38070,7 +38124,7 @@ "type": "object" }, "GoogleCloudAiplatformV1SupervisedTuningSpec": { - "description": "Tuning Spec for Supervised Tuning.", + "description": "Tuning Spec for Supervised Tuning for first party models.", "id": "GoogleCloudAiplatformV1SupervisedTuningSpec", "properties": { "hyperParameters": { diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 4d116df351c..d44de36f510 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -1551,7 +1551,11 @@ func (s *CloudAiLargeModelsVisionNamedBoundingBox) UnmarshalJSON(data []byte) er return nil } +// CloudAiLargeModelsVisionRaiInfo: Next ID: 6 type CloudAiLargeModelsVisionRaiInfo struct { + // BlockedEntities: List of blocked entities from the blocklist if it is + // detected. + BlockedEntities []string `json:"blockedEntities,omitempty"` // DetectedLabels: The list of detected labels for different rai categories. DetectedLabels []*CloudAiLargeModelsVisionRaiInfoDetectedLabels `json:"detectedLabels,omitempty"` // ModelName: The model name used to indexing into the RaiFilterConfig map. @@ -1564,13 +1568,13 @@ type CloudAiLargeModelsVisionRaiInfo struct { // Scores: List of rai scores mapping to the rai categories. Rounded to 1 // decimal place. Scores []float64 `json:"scores,omitempty"` - // ForceSendFields is a list of field names (e.g. "DetectedLabels") to + // ForceSendFields is a list of field names (e.g. "BlockedEntities") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DetectedLabels") to include in + // NullFields is a list of field names (e.g. "BlockedEntities") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -4383,6 +4387,9 @@ func (s GoogleCloudAiplatformV1CopyModelResponse) MarshalJSON() ([]byte, error) type GoogleCloudAiplatformV1CountTokensRequest struct { // Contents: Optional. Input content. Contents []*GoogleCloudAiplatformV1Content `json:"contents,omitempty"` + // GenerationConfig: Optional. Generation config that the model will use to + // generate the response. + GenerationConfig *GoogleCloudAiplatformV1GenerationConfig `json:"generationConfig,omitempty"` // Instances: Optional. The instances that are the input to token counting // call. Schema is identical to the prediction schema of the underlying model. Instances []interface{} `json:"instances,omitempty"` @@ -6190,6 +6197,11 @@ type GoogleCloudAiplatformV1DeployedIndex struct { // directly to the deployed index services running on Cloud via private // services access. This field is populated if network is configured. PrivateEndpoints *GoogleCloudAiplatformV1IndexPrivateEndpoints `json:"privateEndpoints,omitempty"` + // PscAutomationConfigs: Optional. If set for PSC deployed index, PSC + // connection will be automatically created after deployment is done and the + // endpoint information is populated in + // private_endpoints.psc_automated_endpoints. + PscAutomationConfigs []*GoogleCloudAiplatformV1PSCAutomationConfig `json:"pscAutomationConfigs,omitempty"` // ReservedIpRanges: Optional. A list of reserved ip ranges under the VPC // network that can be used for this DeployedIndex. If set, we will deploy the // index within the provided ip ranges. Otherwise, the index might be deployed @@ -8959,10 +8971,10 @@ type GoogleCloudAiplatformV1FeatureGroupBigQuery struct { // row per unique entityId including nulls. If not set, will collapse all rows // for each unique entityId into a singe row with any non-null values if // present, if no non-null values are present will sync null. ex: If source has - // schema (entity_id, feature_timestamp, f0, f1) and values (e1, - // 2020-01-01T10:00:00.123Z, 10, 15) (e1, 2020-02-01T10:00:00.123Z, 20, null) - // If dense is set, (e1, 20, null) is synced to online stores. If dense is not - // set, (e1, 20, 15) is synced to online stores. + // schema `(entity_id, feature_timestamp, f0, f1)` and the following rows: + // `(e1, 2020-01-01T10:00:00.123Z, 10, 15)` `(e1, 2020-02-01T10:00:00.123Z, 20, + // null)` If dense is set, `(e1, 20, null)` is synced to online stores. If + // dense is not set, `(e1, 20, 15)` is synced to online stores. Dense bool `json:"dense,omitempty"` // EntityIdColumns: Optional. Columns to construct entity_id / row keys. If not // provided defaults to `entity_id`. @@ -9926,10 +9938,11 @@ type GoogleCloudAiplatformV1FeatureViewVertexRagSource struct { RagCorpusId int64 `json:"ragCorpusId,omitempty,string"` // Uri: Required. The BigQuery view/table URI that will be materialized on each // manual sync trigger. The table/view is expected to have the following - // columns at least: Field name Type Mode corpus_id STRING REQUIRED/NULLABLE - // file_id STRING REQUIRED/NULLABLE chunk_id STRING REQUIRED/NULLABLE - // chunk_data_type STRING REQUIRED/NULLABLE chunk_data STRING REQUIRED/NULLABLE - // embeddings FLOAT REPEATED file_original_uri STRING REQUIRED/NULLABLE + // columns and types at least: - `corpus_id` (STRING, NULLABLE/REQUIRED) - + // `file_id` (STRING, NULLABLE/REQUIRED) - `chunk_id` (STRING, + // NULLABLE/REQUIRED) - `chunk_data_type` (STRING, NULLABLE/REQUIRED) - + // `chunk_data` (STRING, NULLABLE/REQUIRED) - `embeddings` (FLOAT, REPEATED) - + // `file_original_uri` (STRING, NULLABLE/REQUIRED) Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "RagCorpusId") to // unconditionally include in API requests. By default, fields with empty or @@ -11167,6 +11180,13 @@ type GoogleCloudAiplatformV1GenerateContentRequest struct { Contents []*GoogleCloudAiplatformV1Content `json:"contents,omitempty"` // GenerationConfig: Optional. Generation config. GenerationConfig *GoogleCloudAiplatformV1GenerationConfig `json:"generationConfig,omitempty"` + // Labels: Optional. The labels with user-defined metadata for the request. It + // is used for billing and reporting only. Label keys and values can be no + // longer than 63 characters (Unicode codepoints) and can only contain + // lowercase letters, numeric characters, underscores, and dashes. + // International characters are allowed. Label values are optional. Label keys + // must start with a letter. + Labels map[string]string `json:"labels,omitempty"` // SafetySettings: Optional. Per request settings for blocking unsafe content. // Enforced on GenerateContentResponse.candidates. SafetySettings []*GoogleCloudAiplatformV1SafetySetting `json:"safetySettings,omitempty"` @@ -18019,6 +18039,36 @@ func (s GoogleCloudAiplatformV1NotebookRuntimeTemplateRef) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1PSCAutomationConfig: PSC config that is used to +// automatically create forwarding rule via ServiceConnectionMap. +type GoogleCloudAiplatformV1PSCAutomationConfig struct { + // Network: Required. The full name of the Google Compute Engine network + // (https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + // Format + // (https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + // `projects/{project}/global/networks/{network}`. Where {project} is a project + // number, as in '12345', and {network} is network name. + Network string `json:"network,omitempty"` + // ProjectId: Required. Project id used to create forwarding rule. + ProjectId string `json:"projectId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Network") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Network") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1PSCAutomationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PSCAutomationConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1PairwiseMetricInput: Input for pairwise metric. type GoogleCloudAiplatformV1PairwiseMetricInput struct { // Instance: Required. Pairwise metric instance. @@ -21878,6 +21928,7 @@ type GoogleCloudAiplatformV1SafetyRating struct { // "HARM_CATEGORY_HARASSMENT" - The harm category is harassment. // "HARM_CATEGORY_SEXUALLY_EXPLICIT" - The harm category is sexually explicit // content. + // "HARM_CATEGORY_CIVIC_INTEGRITY" - The harm category is civic integrity. Category string `json:"category,omitempty"` // Probability: Output only. Harm probability levels in the content. // @@ -21989,6 +22040,7 @@ type GoogleCloudAiplatformV1SafetySetting struct { // "HARM_CATEGORY_HARASSMENT" - The harm category is harassment. // "HARM_CATEGORY_SEXUALLY_EXPLICIT" - The harm category is sexually explicit // content. + // "HARM_CATEGORY_CIVIC_INTEGRITY" - The harm category is civic integrity. Category string `json:"category,omitempty"` // Method: Optional. Specify if the threshold is used for probability or // severity score. If not specified, the threshold is used for probability @@ -22008,6 +22060,7 @@ type GoogleCloudAiplatformV1SafetySetting struct { // "BLOCK_MEDIUM_AND_ABOVE" - Block medium threshold and above. // "BLOCK_ONLY_HIGH" - Block only high threshold (i.e. block less). // "BLOCK_NONE" - Block none. + // "OFF" - Turn off the safety filter. Threshold string `json:"threshold,omitempty"` // ForceSendFields is a list of field names (e.g. "Category") to // unconditionally include in API requests. By default, fields with empty or @@ -22487,6 +22540,9 @@ type GoogleCloudAiplatformV1Schema struct { // Properties: Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of // Type.OBJECT. Properties map[string]GoogleCloudAiplatformV1Schema `json:"properties,omitempty"` + // PropertyOrdering: Optional. The order of the properties. Not a standard + // field in open api spec. Only used to support the order of the properties. + PropertyOrdering []string `json:"propertyOrdering,omitempty"` // Required: Optional. Required properties of Type.OBJECT. Required []string `json:"required,omitempty"` // Title: Optional. The title of the Schema. @@ -31025,7 +31081,7 @@ func (s *GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket } // GoogleCloudAiplatformV1SupervisedTuningSpec: Tuning Spec for Supervised -// Tuning. +// Tuning for first party models. type GoogleCloudAiplatformV1SupervisedTuningSpec struct { // HyperParameters: Optional. Hyperparameters for SFT. HyperParameters *GoogleCloudAiplatformV1SupervisedHyperParameters `json:"hyperParameters,omitempty"` @@ -34480,7 +34536,7 @@ func (c *DatasetsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.create" call. @@ -34577,7 +34633,7 @@ func (c *DatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.delete" call. @@ -34692,7 +34748,7 @@ func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.get" call. @@ -34842,7 +34898,7 @@ func (c *DatasetsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.list" call. @@ -34974,7 +35030,7 @@ func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.patch" call. @@ -35077,7 +35133,7 @@ func (c *DatasetsDatasetVersionsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.create" call. @@ -35175,7 +35231,7 @@ func (c *DatasetsDatasetVersionsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.delete" call. @@ -35292,7 +35348,7 @@ func (c *DatasetsDatasetVersionsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.get" call. @@ -35436,7 +35492,7 @@ func (c *DatasetsDatasetVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.list" call. @@ -35567,7 +35623,7 @@ func (c *DatasetsDatasetVersionsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.patch" call. @@ -35677,7 +35733,7 @@ func (c *DatasetsDatasetVersionsRestoreCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.restore" call. @@ -35780,7 +35836,7 @@ func (c *EndpointsComputeTokensCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.endpoints.computeTokens" call. @@ -35883,7 +35939,7 @@ func (c *EndpointsCountTokensCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.endpoints.countTokens" call. @@ -35989,7 +36045,7 @@ func (c *EndpointsGenerateContentCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.endpoints.generateContent" call. @@ -36096,7 +36152,7 @@ func (c *EndpointsStreamGenerateContentCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.endpoints.streamGenerateContent" call. @@ -36199,7 +36255,7 @@ func (c *ProjectsLocationsEvaluateInstancesCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.evaluateInstances" call. @@ -36307,7 +36363,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.get" call. @@ -36439,7 +36495,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.list" call. @@ -36571,7 +36627,7 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.batchPredictionJobs.cancel" call. @@ -36675,7 +36731,7 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.batchPredictionJobs.create" call. @@ -36774,7 +36830,7 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.batchPredictionJobs.delete" call. @@ -36884,7 +36940,7 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.batchPredictionJobs.get" call. @@ -37032,7 +37088,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.batchPredictionJobs.list" call. @@ -37165,7 +37221,7 @@ func (c *ProjectsLocationsCustomJobsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.cancel" call. @@ -37269,7 +37325,7 @@ func (c *ProjectsLocationsCustomJobsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.create" call. @@ -37366,7 +37422,7 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.delete" call. @@ -37475,7 +37531,7 @@ func (c *ProjectsLocationsCustomJobsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.get" call. @@ -37622,7 +37678,7 @@ func (c *ProjectsLocationsCustomJobsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.list" call. @@ -37747,7 +37803,7 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.operations.cancel" call. @@ -37846,7 +37902,7 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.operations.delete" call. @@ -37956,7 +38012,7 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.operations.get" call. @@ -38085,7 +38141,7 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.operations.list" call. @@ -38219,7 +38275,7 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.operations.wait" call. @@ -38324,7 +38380,7 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.cancel" call. @@ -38427,7 +38483,7 @@ func (c *ProjectsLocationsDataLabelingJobsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.create" call. @@ -38525,7 +38581,7 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.delete" call. @@ -38635,7 +38691,7 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.get" call. @@ -38792,7 +38848,7 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.list" call. @@ -38917,7 +38973,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.cancel" call. @@ -39016,7 +39072,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.delete" call. @@ -39126,7 +39182,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.get" call. @@ -39255,7 +39311,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.list" call. @@ -39389,7 +39445,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.wait" call. @@ -39492,7 +39548,7 @@ func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.create" call. @@ -39589,7 +39645,7 @@ func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.delete" call. @@ -39692,7 +39748,7 @@ func (c *ProjectsLocationsDatasetsExportCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.export" call. @@ -39807,7 +39863,7 @@ func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.get" call. @@ -39910,7 +39966,7 @@ func (c *ProjectsLocationsDatasetsImportCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.import" call. @@ -40061,7 +40117,7 @@ func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.list" call. @@ -40193,7 +40249,7 @@ func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.patch" call. @@ -40415,7 +40471,7 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "dataset": c.dataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.searchDataItems" call. @@ -40553,7 +40609,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.get" call. @@ -40657,7 +40713,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel" call. @@ -40756,7 +40812,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete" call. @@ -40866,7 +40922,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.get" call. @@ -40995,7 +41051,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.list" call. @@ -41129,7 +41185,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.wait" call. @@ -41273,7 +41329,7 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.list" call. @@ -41442,7 +41498,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.list" call. @@ -41567,7 +41623,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel" call. @@ -41666,7 +41722,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete" call. @@ -41776,7 +41832,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get" call. @@ -41905,7 +41961,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list" call. @@ -42039,7 +42095,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait" call. @@ -42143,7 +42199,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.cancel" call. @@ -42242,7 +42298,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.delete" call. @@ -42352,7 +42408,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.get" call. @@ -42481,7 +42537,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.list" call. @@ -42615,7 +42671,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.wait" call. @@ -42718,7 +42774,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.create" call. @@ -42816,7 +42872,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.delete" call. @@ -42933,7 +42989,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.get" call. @@ -43077,7 +43133,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.list" call. @@ -43208,7 +43264,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.patch" call. @@ -43318,7 +43374,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.restore" call. @@ -43422,7 +43478,7 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.operations.cancel" call. @@ -43521,7 +43577,7 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.operations.delete" call. @@ -43631,7 +43687,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.operations.get" call. @@ -43760,7 +43816,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.operations.list" call. @@ -43894,7 +43950,7 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.operations.wait" call. @@ -43992,7 +44048,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.delete" call. @@ -44136,7 +44192,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.list" call. @@ -44261,7 +44317,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.cancel" call. @@ -44360,7 +44416,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.delete" call. @@ -44470,7 +44526,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.get" call. @@ -44599,7 +44655,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.list" call. @@ -44733,7 +44789,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.wait" call. @@ -44836,7 +44892,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.create" call. @@ -44934,7 +44990,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.delete" call. @@ -45044,7 +45100,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.get" call. @@ -45171,7 +45227,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.list" call. @@ -45303,7 +45359,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.patch" call. @@ -45431,7 +45487,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "deploymentResourcePool": c.deploymentResourcePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels" call. @@ -45556,7 +45612,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.cancel" call. @@ -45655,7 +45711,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.delete" call. @@ -45765,7 +45821,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.get" call. @@ -45894,7 +45950,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.list" call. @@ -46028,7 +46084,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.wait" call. @@ -46131,7 +46187,7 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.computeTokens" call. @@ -46234,7 +46290,7 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.countTokens" call. @@ -46352,7 +46408,7 @@ func (c *ProjectsLocationsEndpointsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.create" call. @@ -46449,7 +46505,7 @@ func (c *ProjectsLocationsEndpointsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.delete" call. @@ -46553,7 +46609,7 @@ func (c *ProjectsLocationsEndpointsDeployModelCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.deployModel" call. @@ -46657,7 +46713,7 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.directPredict" call. @@ -46761,7 +46817,7 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.directRawPredict" call. @@ -46867,7 +46923,7 @@ func (c *ProjectsLocationsEndpointsExplainCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.explain" call. @@ -46973,7 +47029,7 @@ func (c *ProjectsLocationsEndpointsGenerateContentCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.generateContent" call. @@ -47082,7 +47138,7 @@ func (c *ProjectsLocationsEndpointsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.get" call. @@ -47237,7 +47293,7 @@ func (c *ProjectsLocationsEndpointsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.list" call. @@ -47365,7 +47421,7 @@ func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.mutateDeployedModel" call. @@ -47474,7 +47530,7 @@ func (c *ProjectsLocationsEndpointsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.patch" call. @@ -47577,7 +47633,7 @@ func (c *ProjectsLocationsEndpointsPredictCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.predict" call. @@ -47684,7 +47740,7 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.rawPredict" call. @@ -47788,7 +47844,7 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.serverStreamingPredict" call. @@ -47895,7 +47951,7 @@ func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.streamGenerateContent" call. @@ -47999,7 +48055,7 @@ func (c *ProjectsLocationsEndpointsStreamRawPredictCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.streamRawPredict" call. @@ -48104,7 +48160,7 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.undeployModel" call. @@ -48208,7 +48264,7 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.operations.cancel" call. @@ -48307,7 +48363,7 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.operations.delete" call. @@ -48417,7 +48473,7 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.operations.get" call. @@ -48546,7 +48602,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.operations.list" call. @@ -48680,7 +48736,7 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.operations.wait" call. @@ -48743,9 +48799,9 @@ func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googleclou // FeatureGroupId sets the optional parameter "featureGroupId": Required. The // ID to use for this FeatureGroup, which will become the final component of -// the FeatureGroup's resource name. This value may be up to 60 characters, and -// valid characters are `[a-z0-9_]`. The first character cannot be a number. -// The value must be unique within the project and location. +// the FeatureGroup's resource name. This value may be up to 128 characters, +// and valid characters are `[a-z0-9_]`. The first character cannot be a +// number. The value must be unique within the project and location. func (c *ProjectsLocationsFeatureGroupsCreateCall) FeatureGroupId(featureGroupId string) *ProjectsLocationsFeatureGroupsCreateCall { c.urlParams_.Set("featureGroupId", featureGroupId) return c @@ -48793,7 +48849,7 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.create" call. @@ -48898,7 +48954,7 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.delete" call. @@ -49006,7 +49062,7 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.get" call. @@ -49156,7 +49212,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.list" call. @@ -49293,7 +49349,7 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.patch" call. @@ -49409,7 +49465,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.create" call. @@ -49509,7 +49565,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.delete" call. @@ -49620,7 +49676,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.get" call. @@ -49795,7 +49851,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.list" call. @@ -49939,7 +49995,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.patch" call. @@ -50038,7 +50094,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.operations.delete" call. @@ -50148,7 +50204,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.operations.get" call. @@ -50277,7 +50333,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.operations.listWait" call. @@ -50411,7 +50467,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.operations.wait" call. @@ -50510,7 +50566,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.operations.delete" call. @@ -50620,7 +50676,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.operations.get" call. @@ -50749,7 +50805,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.operations.listWait" call. @@ -50883,7 +50939,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.operations.wait" call. @@ -50997,7 +51053,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.create" call. @@ -51104,7 +51160,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.delete" call. @@ -51212,7 +51268,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.get" call. @@ -51328,7 +51384,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.getIamPolicy" call. @@ -51479,7 +51535,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.list" call. @@ -51620,7 +51676,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.patch" call. @@ -51726,7 +51782,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.setIamPolicy" call. @@ -51838,7 +51894,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.testIamPermissions" call. @@ -51961,7 +52017,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.create" call. @@ -52059,7 +52115,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.delete" call. @@ -52163,7 +52219,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) googleapi.Expand(req.URL, map[string]string{ "featureView": c.featureView, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues" call. @@ -52273,7 +52329,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.get" call. @@ -52389,7 +52445,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall) doReq googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.getIamPolicy" call. @@ -52544,7 +52600,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.list" call. @@ -52685,7 +52741,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.patch" call. @@ -52791,7 +52847,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCa googleapi.Expand(req.URL, map[string]string{ "featureView": c.featureView, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities" call. @@ -52897,7 +52953,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall) doReq googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.setIamPolicy" call. @@ -53001,7 +53057,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "featureView": c.featureView, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.sync" call. @@ -53113,7 +53169,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.testIamPermissions" call. @@ -53223,7 +53279,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get" call. @@ -53372,7 +53428,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list" call. @@ -53492,7 +53548,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete" call. @@ -53602,7 +53658,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get" call. @@ -53731,7 +53787,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.listWait" call. @@ -53865,7 +53921,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.wait" call. @@ -53964,7 +54020,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.delete" call. @@ -54074,7 +54130,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.get" call. @@ -54203,7 +54259,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.listWait" call. @@ -54337,7 +54393,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.wait" call. @@ -54445,7 +54501,7 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "featurestore": c.featurestore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.batchReadFeatureValues" call. @@ -54558,7 +54614,7 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.create" call. @@ -54664,7 +54720,7 @@ func (c *ProjectsLocationsFeaturestoresDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.delete" call. @@ -54772,7 +54828,7 @@ func (c *ProjectsLocationsFeaturestoresGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.get" call. @@ -54888,7 +54944,7 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.getIamPolicy" call. @@ -55047,7 +55103,7 @@ func (c *ProjectsLocationsFeaturestoresListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.list" call. @@ -55185,7 +55241,7 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.patch" call. @@ -55352,7 +55408,7 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.searchFeatures" call. @@ -55479,7 +55535,7 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.setIamPolicy" call. @@ -55591,7 +55647,7 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.testIamPermissions" call. @@ -55705,7 +55761,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.create" call. @@ -55812,7 +55868,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.delete" call. @@ -55924,7 +55980,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) doReq googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues" call. @@ -56030,7 +56086,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) doReq googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues" call. @@ -56140,7 +56196,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.get" call. @@ -56256,7 +56312,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy" call. @@ -56374,7 +56430,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) doReq googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues" call. @@ -56534,7 +56590,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.list" call. @@ -56682,7 +56738,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.patch" call. @@ -56790,7 +56846,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) doReque googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues" call. @@ -56896,7 +56952,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy" call. @@ -57003,7 +57059,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues" call. @@ -57115,7 +57171,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions" call. @@ -57225,7 +57281,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) doRequ googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues" call. @@ -57330,7 +57386,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate" call. @@ -57446,7 +57502,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.create" call. @@ -57546,7 +57602,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.delete" call. @@ -57657,7 +57713,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.get" call. @@ -57832,7 +57888,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.list" call. @@ -57976,7 +58032,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.patch" call. @@ -58080,7 +58136,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.cancel" call. @@ -58179,7 +58235,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete" call. @@ -58289,7 +58345,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get" call. @@ -58418,7 +58474,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list" call. @@ -58552,7 +58608,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait" call. @@ -58656,7 +58712,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel" call. @@ -58755,7 +58811,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.delete" call. @@ -58865,7 +58921,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.get" call. @@ -58994,7 +59050,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.list" call. @@ -59128,7 +59184,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.wait" call. @@ -59232,7 +59288,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.operations.cancel" call. @@ -59331,7 +59387,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.operations.delete" call. @@ -59441,7 +59497,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.operations.get" call. @@ -59570,7 +59626,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.operations.list" call. @@ -59704,7 +59760,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.operations.wait" call. @@ -59816,7 +59872,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.cancel" call. @@ -59920,7 +59976,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.create" call. @@ -60019,7 +60075,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.delete" call. @@ -60129,7 +60185,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.get" call. @@ -60278,7 +60334,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.list" call. @@ -60403,7 +60459,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel" call. @@ -60502,7 +60558,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete" call. @@ -60612,7 +60668,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get" call. @@ -60741,7 +60797,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list" call. @@ -60875,7 +60931,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait" call. @@ -60978,7 +61034,7 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.create" call. @@ -61075,7 +61131,7 @@ func (c *ProjectsLocationsIndexEndpointsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.delete" call. @@ -61180,7 +61236,7 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "indexEndpoint": c.indexEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.deployIndex" call. @@ -61284,7 +61340,7 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "indexEndpoint": c.indexEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.findNeighbors" call. @@ -61393,7 +61449,7 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.get" call. @@ -61540,7 +61596,7 @@ func (c *ProjectsLocationsIndexEndpointsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.list" call. @@ -61666,7 +61722,7 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "indexEndpoint": c.indexEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex" call. @@ -61775,7 +61831,7 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.patch" call. @@ -61879,7 +61935,7 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "indexEndpoint": c.indexEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints" call. @@ -61984,7 +62040,7 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "indexEndpoint": c.indexEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.undeployIndex" call. @@ -62088,7 +62144,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.operations.cancel" call. @@ -62187,7 +62243,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.operations.delete" call. @@ -62297,7 +62353,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.operations.get" call. @@ -62426,7 +62482,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.operations.list" call. @@ -62560,7 +62616,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.operations.wait" call. @@ -62663,7 +62719,7 @@ func (c *ProjectsLocationsIndexesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.create" call. @@ -62761,7 +62817,7 @@ func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.delete" call. @@ -62870,7 +62926,7 @@ func (c *ProjectsLocationsIndexesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.get" call. @@ -63007,7 +63063,7 @@ func (c *ProjectsLocationsIndexesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.list" call. @@ -63138,7 +63194,7 @@ func (c *ProjectsLocationsIndexesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.patch" call. @@ -63241,7 +63297,7 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "index": c.index, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.removeDatapoints" call. @@ -63344,7 +63400,7 @@ func (c *ProjectsLocationsIndexesUpsertDatapointsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "index": c.index, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.upsertDatapoints" call. @@ -63448,7 +63504,7 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.operations.cancel" call. @@ -63547,7 +63603,7 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.operations.delete" call. @@ -63657,7 +63713,7 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.operations.get" call. @@ -63786,7 +63842,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.operations.list" call. @@ -63920,7 +63976,7 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.operations.wait" call. @@ -64036,7 +64092,7 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.create" call. @@ -64141,7 +64197,7 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.delete" call. @@ -64250,7 +64306,7 @@ func (c *ProjectsLocationsMetadataStoresGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.get" call. @@ -64377,7 +64433,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.list" call. @@ -64515,7 +64571,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.create" call. @@ -64621,7 +64677,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.delete" call. @@ -64731,7 +64787,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.get" call. @@ -64894,7 +64950,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.list" call. @@ -65031,7 +65087,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.patch" call. @@ -65134,7 +65190,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.purge" call. @@ -65281,7 +65337,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal googleapi.Expand(req.URL, map[string]string{ "artifact": c.artifact, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph" call. @@ -65385,7 +65441,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.operations.cancel" call. @@ -65484,7 +65540,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.operations.delete" call. @@ -65594,7 +65650,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.operations.get" call. @@ -65723,7 +65779,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.operations.list" call. @@ -65857,7 +65913,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.operations.wait" call. @@ -65964,7 +66020,7 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions googleapi.Expand(req.URL, map[string]string{ "context": c.context, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions" call. @@ -66072,7 +66128,7 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) doReques googleapi.Expand(req.URL, map[string]string{ "context": c.context, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextChildren" call. @@ -66189,7 +66245,7 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.create" call. @@ -66302,7 +66358,7 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.delete" call. @@ -66412,7 +66468,7 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.get" call. @@ -66574,7 +66630,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.list" call. @@ -66711,7 +66767,7 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.patch" call. @@ -66814,7 +66870,7 @@ func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.purge" call. @@ -66929,7 +66985,7 @@ func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) googleapi.Expand(req.URL, map[string]string{ "context": c.context, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph" call. @@ -67035,7 +67091,7 @@ func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) doReq googleapi.Expand(req.URL, map[string]string{ "context": c.context, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren" call. @@ -67139,7 +67195,7 @@ func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.operations.cancel" call. @@ -67238,7 +67294,7 @@ func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.operations.delete" call. @@ -67348,7 +67404,7 @@ func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.operations.get" call. @@ -67477,7 +67533,7 @@ func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.operations.list" call. @@ -67611,7 +67667,7 @@ func (c *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.operations.wait" call. @@ -67719,7 +67775,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "execution": c.execution, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents" call. @@ -67836,7 +67892,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.create" call. @@ -67942,7 +67998,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.delete" call. @@ -68052,7 +68108,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.get" call. @@ -68215,7 +68271,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.list" call. @@ -68352,7 +68408,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.patch" call. @@ -68455,7 +68511,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.purge" call. @@ -68568,7 +68624,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputs googleapi.Expand(req.URL, map[string]string{ "execution": c.execution, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs" call. @@ -68672,7 +68728,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.operations.cancel" call. @@ -68771,7 +68827,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.operations.delete" call. @@ -68881,7 +68937,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.operations.get" call. @@ -69010,7 +69066,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.operations.list" call. @@ -69144,7 +69200,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.operations.wait" call. @@ -69261,7 +69317,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.create" call. @@ -69371,7 +69427,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.get" call. @@ -69505,7 +69561,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.list" call. @@ -69630,7 +69686,7 @@ func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.operations.cancel" call. @@ -69729,7 +69785,7 @@ func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.operations.delete" call. @@ -69839,7 +69895,7 @@ func (c *ProjectsLocationsMetadataStoresOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.operations.get" call. @@ -69968,7 +70024,7 @@ func (c *ProjectsLocationsMetadataStoresOperationsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.operations.list" call. @@ -70102,7 +70158,7 @@ func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.operations.wait" call. @@ -70206,7 +70262,7 @@ func (c *ProjectsLocationsMigratableResourcesBatchMigrateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.batchMigrate" call. @@ -70313,7 +70369,7 @@ func (c *ProjectsLocationsMigratableResourcesSearchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.search" call. @@ -70438,7 +70494,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.operations.cancel" call. @@ -70537,7 +70593,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.operations.delete" call. @@ -70647,7 +70703,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.operations.get" call. @@ -70776,7 +70832,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.operations.list" call. @@ -70910,7 +70966,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.operations.wait" call. @@ -71014,7 +71070,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create" call. @@ -71112,7 +71168,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.delete" call. @@ -71222,7 +71278,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.get" call. @@ -71368,7 +71424,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.list" call. @@ -71518,7 +71574,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.patch" call. @@ -71625,7 +71681,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.pause" call. @@ -71732,7 +71788,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.resume" call. @@ -71838,7 +71894,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMoni googleapi.Expand(req.URL, map[string]string{ "modelDeploymentMonitoringJob": c.modelDeploymentMonitoringJob, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies" call. @@ -71965,7 +72021,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.cancel" call. @@ -72064,7 +72120,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.delete" call. @@ -72174,7 +72230,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.get" call. @@ -72303,7 +72359,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.list" call. @@ -72437,7 +72493,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.wait" call. @@ -72544,7 +72600,7 @@ func (c *ProjectsLocationsModelsCopyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.copy" call. @@ -72642,7 +72698,7 @@ func (c *ProjectsLocationsModelsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.delete" call. @@ -72742,7 +72798,7 @@ func (c *ProjectsLocationsModelsDeleteVersionCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.deleteVersion" call. @@ -72848,7 +72904,7 @@ func (c *ProjectsLocationsModelsExportCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.export" call. @@ -72965,7 +73021,7 @@ func (c *ProjectsLocationsModelsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.get" call. @@ -73081,7 +73137,7 @@ func (c *ProjectsLocationsModelsGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.getIamPolicy" call. @@ -73236,7 +73292,7 @@ func (c *ProjectsLocationsModelsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.list" call. @@ -73407,7 +73463,7 @@ func (c *ProjectsLocationsModelsListVersionsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.listVersions" call. @@ -73532,7 +73588,7 @@ func (c *ProjectsLocationsModelsMergeVersionAliasesCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.mergeVersionAliases" call. @@ -73642,7 +73698,7 @@ func (c *ProjectsLocationsModelsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.patch" call. @@ -73748,7 +73804,7 @@ func (c *ProjectsLocationsModelsSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.setIamPolicy" call. @@ -73860,7 +73916,7 @@ func (c *ProjectsLocationsModelsTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.testIamPermissions" call. @@ -73964,7 +74020,7 @@ func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.updateExplanationDataset" call. @@ -74067,7 +74123,7 @@ func (c *ProjectsLocationsModelsUploadCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.upload" call. @@ -74177,7 +74233,7 @@ func (c *ProjectsLocationsModelsEvaluationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.get" call. @@ -74280,7 +74336,7 @@ func (c *ProjectsLocationsModelsEvaluationsImportCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.import" call. @@ -74417,7 +74473,7 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.list" call. @@ -74542,7 +74598,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.operations.cancel" call. @@ -74641,7 +74697,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.operations.delete" call. @@ -74751,7 +74807,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.operations.get" call. @@ -74880,7 +74936,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.operations.list" call. @@ -75014,7 +75070,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.operations.wait" call. @@ -75118,7 +75174,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.slices.batchImport" call. @@ -75228,7 +75284,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.slices.get" call. @@ -75369,7 +75425,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.slices.list" call. @@ -75494,7 +75550,7 @@ func (c *ProjectsLocationsModelsOperationsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.operations.cancel" call. @@ -75593,7 +75649,7 @@ func (c *ProjectsLocationsModelsOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.operations.delete" call. @@ -75703,7 +75759,7 @@ func (c *ProjectsLocationsModelsOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.operations.get" call. @@ -75832,7 +75888,7 @@ func (c *ProjectsLocationsModelsOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.operations.list" call. @@ -75966,7 +76022,7 @@ func (c *ProjectsLocationsModelsOperationsWaitCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.operations.wait" call. @@ -76076,7 +76132,7 @@ func (c *ProjectsLocationsNasJobsCancelCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.cancel" call. @@ -76179,7 +76235,7 @@ func (c *ProjectsLocationsNasJobsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.create" call. @@ -76276,7 +76332,7 @@ func (c *ProjectsLocationsNasJobsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.delete" call. @@ -76385,7 +76441,7 @@ func (c *ProjectsLocationsNasJobsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.get" call. @@ -76532,7 +76588,7 @@ func (c *ProjectsLocationsNasJobsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.list" call. @@ -76663,7 +76719,7 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.nasTrialDetails.get" call. @@ -76787,7 +76843,7 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.nasTrialDetails.list" call. @@ -76918,7 +76974,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.create" call. @@ -77014,7 +77070,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.delete" call. @@ -77141,7 +77197,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.get" call. @@ -77306,7 +77362,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.list" call. @@ -77431,7 +77487,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsOperationsCancelCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.operations.cancel" call. @@ -77530,7 +77586,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsOperationsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.operations.delete" call. @@ -77640,7 +77696,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.operations.get" call. @@ -77769,7 +77825,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.operations.list" call. @@ -77903,7 +77959,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsOperationsWaitCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.operations.wait" call. @@ -78014,7 +78070,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.create" call. @@ -78113,7 +78169,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.delete" call. @@ -78223,7 +78279,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.get" call. @@ -78339,7 +78395,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy" call. @@ -78499,7 +78555,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.list" call. @@ -78631,7 +78687,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.patch" call. @@ -78737,7 +78793,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.setIamPolicy" call. @@ -78849,7 +78905,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions" call. @@ -78953,7 +79009,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesOperationsCancelCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.operations.cancel" call. @@ -79052,7 +79108,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesOperationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.operations.delete" call. @@ -79162,7 +79218,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.operations.get" call. @@ -79291,7 +79347,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.operations.list" call. @@ -79425,7 +79481,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesOperationsWaitCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.operations.wait" call. @@ -79530,7 +79586,7 @@ func (c *ProjectsLocationsNotebookRuntimesAssignCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.assign" call. @@ -79629,7 +79685,7 @@ func (c *ProjectsLocationsNotebookRuntimesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.delete" call. @@ -79740,7 +79796,7 @@ func (c *ProjectsLocationsNotebookRuntimesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.get" call. @@ -79908,7 +79964,7 @@ func (c *ProjectsLocationsNotebookRuntimesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.list" call. @@ -80034,7 +80090,7 @@ func (c *ProjectsLocationsNotebookRuntimesStartCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.start" call. @@ -80139,7 +80195,7 @@ func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.upgrade" call. @@ -80243,7 +80299,7 @@ func (c *ProjectsLocationsNotebookRuntimesOperationsCancelCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.operations.cancel" call. @@ -80342,7 +80398,7 @@ func (c *ProjectsLocationsNotebookRuntimesOperationsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.operations.delete" call. @@ -80452,7 +80508,7 @@ func (c *ProjectsLocationsNotebookRuntimesOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.operations.get" call. @@ -80581,7 +80637,7 @@ func (c *ProjectsLocationsNotebookRuntimesOperationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.operations.list" call. @@ -80715,7 +80771,7 @@ func (c *ProjectsLocationsNotebookRuntimesOperationsWaitCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.operations.wait" call. @@ -80819,7 +80875,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.operations.cancel" call. @@ -80918,7 +80974,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.operations.delete" call. @@ -81028,7 +81084,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.operations.get" call. @@ -81157,7 +81213,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.operations.list" call. @@ -81291,7 +81347,7 @@ func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.operations.wait" call. @@ -81404,7 +81460,7 @@ func (c *ProjectsLocationsPersistentResourcesCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.create" call. @@ -81502,7 +81558,7 @@ func (c *ProjectsLocationsPersistentResourcesDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.delete" call. @@ -81612,7 +81668,7 @@ func (c *ProjectsLocationsPersistentResourcesGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.get" call. @@ -81736,7 +81792,7 @@ func (c *ProjectsLocationsPersistentResourcesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.list" call. @@ -81868,7 +81924,7 @@ func (c *ProjectsLocationsPersistentResourcesPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.patch" call. @@ -81972,7 +82028,7 @@ func (c *ProjectsLocationsPersistentResourcesRebootCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.reboot" call. @@ -82076,7 +82132,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.operations.cancel" call. @@ -82175,7 +82231,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.operations.delete" call. @@ -82285,7 +82341,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.operations.get" call. @@ -82414,7 +82470,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.operations.list" call. @@ -82548,7 +82604,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.operations.wait" call. @@ -82656,7 +82712,7 @@ func (c *ProjectsLocationsPipelineJobsBatchCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.batchCancel" call. @@ -82761,7 +82817,7 @@ func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.batchDelete" call. @@ -82871,7 +82927,7 @@ func (c *ProjectsLocationsPipelineJobsCancelCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.cancel" call. @@ -82984,7 +83040,7 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.create" call. @@ -83081,7 +83137,7 @@ func (c *ProjectsLocationsPipelineJobsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.delete" call. @@ -83190,7 +83246,7 @@ func (c *ProjectsLocationsPipelineJobsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.get" call. @@ -83362,7 +83418,7 @@ func (c *ProjectsLocationsPipelineJobsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.list" call. @@ -83487,7 +83543,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.operations.cancel" call. @@ -83586,7 +83642,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.operations.delete" call. @@ -83696,7 +83752,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.operations.get" call. @@ -83825,7 +83881,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.operations.list" call. @@ -83959,7 +84015,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.operations.wait" call. @@ -84062,7 +84118,7 @@ func (c *ProjectsLocationsPublishersModelsComputeTokensCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.computeTokens" call. @@ -84165,7 +84221,7 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.countTokens" call. @@ -84271,7 +84327,7 @@ func (c *ProjectsLocationsPublishersModelsGenerateContentCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.generateContent" call. @@ -84374,7 +84430,7 @@ func (c *ProjectsLocationsPublishersModelsPredictCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.predict" call. @@ -84481,7 +84537,7 @@ func (c *ProjectsLocationsPublishersModelsRawPredictCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.rawPredict" call. @@ -84585,7 +84641,7 @@ func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.serverStreamingPredict" call. @@ -84692,7 +84748,7 @@ func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.streamGenerateContent" call. @@ -84796,7 +84852,7 @@ func (c *ProjectsLocationsPublishersModelsStreamRawPredictCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.streamRawPredict" call. @@ -84899,7 +84955,7 @@ func (c *ProjectsLocationsSchedulesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.create" call. @@ -84996,7 +85052,7 @@ func (c *ProjectsLocationsSchedulesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.delete" call. @@ -85105,7 +85161,7 @@ func (c *ProjectsLocationsSchedulesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.get" call. @@ -85266,7 +85322,7 @@ func (c *ProjectsLocationsSchedulesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.list" call. @@ -85400,7 +85456,7 @@ func (c *ProjectsLocationsSchedulesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.patch" call. @@ -85505,7 +85561,7 @@ func (c *ProjectsLocationsSchedulesPauseCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.pause" call. @@ -85613,7 +85669,7 @@ func (c *ProjectsLocationsSchedulesResumeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.resume" call. @@ -85717,7 +85773,7 @@ func (c *ProjectsLocationsSchedulesOperationsCancelCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.operations.cancel" call. @@ -85816,7 +85872,7 @@ func (c *ProjectsLocationsSchedulesOperationsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.operations.delete" call. @@ -85926,7 +85982,7 @@ func (c *ProjectsLocationsSchedulesOperationsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.operations.get" call. @@ -86055,7 +86111,7 @@ func (c *ProjectsLocationsSchedulesOperationsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.operations.list" call. @@ -86189,7 +86245,7 @@ func (c *ProjectsLocationsSchedulesOperationsWaitCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.operations.wait" call. @@ -86292,7 +86348,7 @@ func (c *ProjectsLocationsSpecialistPoolsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.create" call. @@ -86397,7 +86453,7 @@ func (c *ProjectsLocationsSpecialistPoolsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.delete" call. @@ -86507,7 +86563,7 @@ func (c *ProjectsLocationsSpecialistPoolsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.get" call. @@ -86639,7 +86695,7 @@ func (c *ProjectsLocationsSpecialistPoolsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.list" call. @@ -86769,7 +86825,7 @@ func (c *ProjectsLocationsSpecialistPoolsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.patch" call. @@ -86873,7 +86929,7 @@ func (c *ProjectsLocationsSpecialistPoolsOperationsCancelCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.operations.cancel" call. @@ -86972,7 +87028,7 @@ func (c *ProjectsLocationsSpecialistPoolsOperationsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.operations.delete" call. @@ -87082,7 +87138,7 @@ func (c *ProjectsLocationsSpecialistPoolsOperationsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.operations.get" call. @@ -87211,7 +87267,7 @@ func (c *ProjectsLocationsSpecialistPoolsOperationsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.operations.list" call. @@ -87345,7 +87401,7 @@ func (c *ProjectsLocationsSpecialistPoolsOperationsWaitCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.operations.wait" call. @@ -87449,7 +87505,7 @@ func (c *ProjectsLocationsStudiesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.create" call. @@ -87546,7 +87602,7 @@ func (c *ProjectsLocationsStudiesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.delete" call. @@ -87655,7 +87711,7 @@ func (c *ProjectsLocationsStudiesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.get" call. @@ -87779,7 +87835,7 @@ func (c *ProjectsLocationsStudiesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.list" call. @@ -87904,7 +87960,7 @@ func (c *ProjectsLocationsStudiesLookupCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.lookup" call. @@ -88008,7 +88064,7 @@ func (c *ProjectsLocationsStudiesOperationsCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.operations.cancel" call. @@ -88107,7 +88163,7 @@ func (c *ProjectsLocationsStudiesOperationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.operations.delete" call. @@ -88217,7 +88273,7 @@ func (c *ProjectsLocationsStudiesOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.operations.get" call. @@ -88346,7 +88402,7 @@ func (c *ProjectsLocationsStudiesOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.operations.list" call. @@ -88480,7 +88536,7 @@ func (c *ProjectsLocationsStudiesOperationsWaitCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.operations.wait" call. @@ -88584,7 +88640,7 @@ func (c *ProjectsLocationsStudiesTrialsAddTrialMeasurementCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "trialName": c.trialName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.addTrialMeasurement" call. @@ -88689,7 +88745,7 @@ func (c *ProjectsLocationsStudiesTrialsCheckTrialEarlyStoppingStateCall) doReque googleapi.Expand(req.URL, map[string]string{ "trialName": c.trialName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.checkTrialEarlyStoppingState" call. @@ -88792,7 +88848,7 @@ func (c *ProjectsLocationsStudiesTrialsCompleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.complete" call. @@ -88895,7 +88951,7 @@ func (c *ProjectsLocationsStudiesTrialsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.create" call. @@ -88992,7 +89048,7 @@ func (c *ProjectsLocationsStudiesTrialsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.delete" call. @@ -89101,7 +89157,7 @@ func (c *ProjectsLocationsStudiesTrialsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.get" call. @@ -89225,7 +89281,7 @@ func (c *ProjectsLocationsStudiesTrialsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.list" call. @@ -89351,7 +89407,7 @@ func (c *ProjectsLocationsStudiesTrialsListOptimalTrialsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.listOptimalTrials" call. @@ -89454,7 +89510,7 @@ func (c *ProjectsLocationsStudiesTrialsStopCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.stop" call. @@ -89560,7 +89616,7 @@ func (c *ProjectsLocationsStudiesTrialsSuggestCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.suggest" call. @@ -89664,7 +89720,7 @@ func (c *ProjectsLocationsStudiesTrialsOperationsCancelCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.operations.cancel" call. @@ -89763,7 +89819,7 @@ func (c *ProjectsLocationsStudiesTrialsOperationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.operations.delete" call. @@ -89873,7 +89929,7 @@ func (c *ProjectsLocationsStudiesTrialsOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.operations.get" call. @@ -90002,7 +90058,7 @@ func (c *ProjectsLocationsStudiesTrialsOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.operations.list" call. @@ -90136,7 +90192,7 @@ func (c *ProjectsLocationsStudiesTrialsOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.operations.wait" call. @@ -90261,7 +90317,7 @@ func (c *ProjectsLocationsTensorboardsBatchReadCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "tensorboard": c.tensorboard, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.batchRead" call. @@ -90364,7 +90420,7 @@ func (c *ProjectsLocationsTensorboardsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.create" call. @@ -90461,7 +90517,7 @@ func (c *ProjectsLocationsTensorboardsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.delete" call. @@ -90570,7 +90626,7 @@ func (c *ProjectsLocationsTensorboardsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.get" call. @@ -90719,7 +90775,7 @@ func (c *ProjectsLocationsTensorboardsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.list" call. @@ -90854,7 +90910,7 @@ func (c *ProjectsLocationsTensorboardsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.patch" call. @@ -90963,7 +91019,7 @@ func (c *ProjectsLocationsTensorboardsReadSizeCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "tensorboard": c.tensorboard, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.readSize" call. @@ -91073,7 +91129,7 @@ func (c *ProjectsLocationsTensorboardsReadUsageCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "tensorboard": c.tensorboard, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.readUsage" call. @@ -91181,7 +91237,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.batchCreate" call. @@ -91295,7 +91351,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.create" call. @@ -91393,7 +91449,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.delete" call. @@ -91503,7 +91559,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.get" call. @@ -91653,7 +91709,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.list" call. @@ -91789,7 +91845,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.patch" call. @@ -91896,7 +91952,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsWriteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "tensorboardExperiment": c.tensorboardExperiment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.write" call. @@ -92000,7 +92056,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsOperationsCancelCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.operations.cancel" call. @@ -92099,7 +92155,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsOperationsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.operations.delete" call. @@ -92209,7 +92265,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsOperationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.operations.get" call. @@ -92338,7 +92394,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsOperationsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.operations.list" call. @@ -92472,7 +92528,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsOperationsWaitCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.operations.wait" call. @@ -92578,7 +92634,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsBatchCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.batchCreate" call. @@ -92692,7 +92748,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.create" call. @@ -92790,7 +92846,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.delete" call. @@ -92900,7 +92956,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.get" call. @@ -93051,7 +93107,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.list" call. @@ -93187,7 +93243,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.patch" call. @@ -93294,7 +93350,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsWriteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "tensorboardRun": c.tensorboardRun, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.write" call. @@ -93400,7 +93456,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsCancelCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.operations.cancel" call. @@ -93499,7 +93555,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.operations.delete" call. @@ -93609,7 +93665,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.operations.get" call. @@ -93738,7 +93794,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.operations.list" call. @@ -93872,7 +93928,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsWaitCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.operations.wait" call. @@ -93987,7 +94043,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.create" call. @@ -94085,7 +94141,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.delete" call. @@ -94191,7 +94247,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesExportTensorboard googleapi.Expand(req.URL, map[string]string{ "tensorboardTimeSeries": c.tensorboardTimeSeries, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.exportTensorboardTimeSeries" call. @@ -94322,7 +94378,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.get" call. @@ -94473,7 +94529,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.list" call. @@ -94607,7 +94663,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.patch" call. @@ -94736,7 +94792,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesReadCall) doReque googleapi.Expand(req.URL, map[string]string{ "tensorboardTimeSeries": c.tensorboardTimeSeries, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.read" call. @@ -94855,7 +94911,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesReadBlobDataCall) googleapi.Expand(req.URL, map[string]string{ "timeSeries": c.timeSeries, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.readBlobData" call. @@ -94961,7 +95017,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperationsCancelC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.operations.cancel" call. @@ -95060,7 +95116,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperationsDeleteC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.operations.delete" call. @@ -95170,7 +95226,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperationsGetCall googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.operations.get" call. @@ -95299,7 +95355,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperationsListCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.operations.list" call. @@ -95433,7 +95489,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperationsWaitCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.operations.wait" call. @@ -95537,7 +95593,7 @@ func (c *ProjectsLocationsTensorboardsOperationsCancelCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.operations.cancel" call. @@ -95636,7 +95692,7 @@ func (c *ProjectsLocationsTensorboardsOperationsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.operations.delete" call. @@ -95746,7 +95802,7 @@ func (c *ProjectsLocationsTensorboardsOperationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.operations.get" call. @@ -95875,7 +95931,7 @@ func (c *ProjectsLocationsTensorboardsOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.operations.list" call. @@ -96009,7 +96065,7 @@ func (c *ProjectsLocationsTensorboardsOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.operations.wait" call. @@ -96121,7 +96177,7 @@ func (c *ProjectsLocationsTrainingPipelinesCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.cancel" call. @@ -96225,7 +96281,7 @@ func (c *ProjectsLocationsTrainingPipelinesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.create" call. @@ -96323,7 +96379,7 @@ func (c *ProjectsLocationsTrainingPipelinesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.delete" call. @@ -96433,7 +96489,7 @@ func (c *ProjectsLocationsTrainingPipelinesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.get" call. @@ -96581,7 +96637,7 @@ func (c *ProjectsLocationsTrainingPipelinesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.list" call. @@ -96706,7 +96762,7 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsCancelCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.operations.cancel" call. @@ -96805,7 +96861,7 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.operations.delete" call. @@ -96915,7 +96971,7 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.operations.get" call. @@ -97044,7 +97100,7 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.operations.list" call. @@ -97178,7 +97234,7 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsWaitCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.operations.wait" call. @@ -97288,7 +97344,7 @@ func (c *ProjectsLocationsTuningJobsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.cancel" call. @@ -97392,7 +97448,7 @@ func (c *ProjectsLocationsTuningJobsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.create" call. @@ -97501,7 +97557,7 @@ func (c *ProjectsLocationsTuningJobsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.get" call. @@ -97631,7 +97687,7 @@ func (c *ProjectsLocationsTuningJobsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.list" call. @@ -97756,7 +97812,7 @@ func (c *ProjectsLocationsTuningJobsOperationsCancelCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.operations.cancel" call. @@ -97866,7 +97922,7 @@ func (c *ProjectsLocationsTuningJobsOperationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.operations.get" call. @@ -97995,7 +98051,7 @@ func (c *ProjectsLocationsTuningJobsOperationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.operations.list" call. @@ -98119,7 +98175,7 @@ func (c *PublishersModelsComputeTokensCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.computeTokens" call. @@ -98222,7 +98278,7 @@ func (c *PublishersModelsCountTokensCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.countTokens" call. @@ -98328,7 +98384,7 @@ func (c *PublishersModelsGenerateContentCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.generateContent" call. @@ -98481,7 +98537,7 @@ func (c *PublishersModelsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.get" call. @@ -98588,7 +98644,7 @@ func (c *PublishersModelsStreamGenerateContentCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.streamGenerateContent" call. diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 5b6e530efe5..daf78eacc4e 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -6003,7 +6003,7 @@ ], "parameters": { "featureGroupId": { - "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", "location": "query", "type": "string" }, @@ -21143,7 +21143,7 @@ } } }, - "revision": "20240830", + "revision": "20240907", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -21282,8 +21282,16 @@ "type": "object" }, "CloudAiLargeModelsVisionRaiInfo": { + "description": "Next ID: 6", "id": "CloudAiLargeModelsVisionRaiInfo", "properties": { + "blockedEntities": { + "description": "List of blocked entities from the blocklist if it is detected.", + "items": { + "type": "string" + }, + "type": "array" + }, "detectedLabels": { "description": "The list of detected labels for different rai categories.", "items": { @@ -21798,6 +21806,30 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ArtifactTypeSchema": { + "description": "The definition of a artifact type in MLMD.", + "id": "GoogleCloudAiplatformV1beta1ArtifactTypeSchema", + "properties": { + "instanceSchema": { + "description": "Contains a raw YAML string, describing the format of the properties of the type.", + "type": "string" + }, + "schemaTitle": { + "description": "The name of the type. The format of the title must be: `.`. Examples: - `aiplatform.Model` - `acme.CustomModel` When this field is set, the type must be pre-registered in the MLMD store.", + "type": "string" + }, + "schemaUri": { + "deprecated": true, + "description": "Points to a YAML file stored on Cloud Storage describing the format. Deprecated. Use PipelineArtifactTypeSchema.schema_title or PipelineArtifactTypeSchema.instance_schema instead.", + "type": "string" + }, + "schemaVersion": { + "description": "The schema version of the artifact. If the value is not set, it defaults to the latest version in the system.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1AssignNotebookRuntimeOperationMetadata": { "description": "Metadata information for NotebookService.AssignNotebookRuntime.", "id": "GoogleCloudAiplatformV1beta1AssignNotebookRuntimeOperationMetadata", @@ -23714,6 +23746,10 @@ }, "type": "array" }, + "generationConfig": { + "$ref": "GoogleCloudAiplatformV1beta1GenerationConfig", + "description": "Optional. Generation config that the model will use to generate the response." + }, "instances": { "description": "Optional. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.", "items": { @@ -25131,6 +25167,13 @@ "description": "Output only. Provides paths for users to send requests directly to the deployed index services running on Cloud via private services access. This field is populated if network is configured.", "readOnly": true }, + "pscAutomationConfigs": { + "description": "Optional. If set for PSC deployed index, PSC connection will be automatically created after deployment is done and the endpoint information is populated in private_endpoints.psc_automated_endpoints.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1PSCAutomationConfig" + }, + "type": "array" + }, "reservedIpRanges": { "description": "Optional. A list of reserved ip ranges under the VPC network that can be used for this DeployedIndex. If set, we will deploy the index within the provided ip ranges. Otherwise, the index might be deployed to any ip ranges under the provided VPC network. The value should be the name of the address (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) Example: ['vertex-ai-ip-range']. For more information about subnets and network IP ranges, please see https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges.", "items": { @@ -27418,7 +27461,7 @@ "description": "Required. Immutable. The BigQuery source URI that points to either a BigQuery Table or View." }, "dense": { - "description": "Optional. If set, all feature values will be fetched from a single row per unique entityId including nulls. If not set, will collapse all rows for each unique entityId into a singe row with any non-null values if present, if no non-null values are present will sync null. ex: If source has schema (entity_id, feature_timestamp, f0, f1) and values (e1, 2020-01-01T10:00:00.123Z, 10, 15) (e1, 2020-02-01T10:00:00.123Z, 20, null) If dense is set, (e1, 20, null) is synced to online stores. If dense is not set, (e1, 20, 15) is synced to online stores.", + "description": "Optional. If set, all feature values will be fetched from a single row per unique entityId including nulls. If not set, will collapse all rows for each unique entityId into a singe row with any non-null values if present, if no non-null values are present will sync null. ex: If source has schema `(entity_id, feature_timestamp, f0, f1)` and the following rows: `(e1, 2020-01-01T10:00:00.123Z, 10, 15)` `(e1, 2020-02-01T10:00:00.123Z, 20, null)` If dense is set, `(e1, 20, null)` is synced to online stores. If dense is not set, `(e1, 20, 15)` is synced to online stores.", "type": "boolean" }, "entityIdColumns": { @@ -28201,7 +28244,7 @@ "type": "string" }, "uri": { - "description": "Required. The BigQuery view/table URI that will be materialized on each manual sync trigger. The table/view is expected to have the following columns at least: Field name Type Mode corpus_id STRING REQUIRED/NULLABLE file_id STRING REQUIRED/NULLABLE chunk_id STRING REQUIRED/NULLABLE chunk_data_type STRING REQUIRED/NULLABLE chunk_data STRING REQUIRED/NULLABLE embeddings FLOAT REPEATED file_original_uri STRING REQUIRED/NULLABLE", + "description": "Required. The BigQuery view/table URI that will be materialized on each manual sync trigger. The table/view is expected to have the following columns and types at least: - `corpus_id` (STRING, NULLABLE/REQUIRED) - `file_id` (STRING, NULLABLE/REQUIRED) - `chunk_id` (STRING, NULLABLE/REQUIRED) - `chunk_data_type` (STRING, NULLABLE/REQUIRED) - `chunk_data` (STRING, NULLABLE/REQUIRED) - `embeddings` (FLOAT, REPEATED) - `file_original_uri` (STRING, NULLABLE/REQUIRED)", "type": "string" } }, @@ -29019,6 +29062,13 @@ "$ref": "GoogleCloudAiplatformV1beta1GenerationConfig", "description": "Optional. Generation config." }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.", + "type": "object" + }, "safetySettings": { "description": "Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.", "items": { @@ -29920,6 +29970,14 @@ "format": "int32", "type": "integer" }, + "partialFailureBigquerySink": { + "$ref": "GoogleCloudAiplatformV1beta1BigQueryDestination", + "description": "The BigQuery destination to write partial failures to. It should be a bigquery table resource name (e.g. \"bq://projectId.bqDatasetId.bqTableId\"). If the dataset id does not exist, it will be created. If the table does not exist, it will be created with the expected schema. If the table exists, the schema will be validated and data will be added to this existing table." + }, + "partialFailureGcsSink": { + "$ref": "GoogleCloudAiplatformV1beta1GcsDestination", + "description": "The Cloud Storage path to write partial failures to." + }, "ragFileChunkingConfig": { "$ref": "GoogleCloudAiplatformV1beta1RagFileChunkingConfig", "description": "Specifies the size and overlap of chunks after importing RagFiles." @@ -35200,6 +35258,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1PSCAutomationConfig": { + "description": "PSC config that is used to automatically create forwarding rule via ServiceConnectionMap.", + "id": "GoogleCloudAiplatformV1beta1PSCAutomationConfig", + "properties": { + "network": { + "description": "Required. The full name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): `projects/{project}/global/networks/{network}`. Where {project} is a project number, as in '12345', and {network} is network name.", + "type": "string" + }, + "projectId": { + "description": "Required. Project id used to create forwarding rule.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1PairwiseMetricInput": { "description": "Input for pairwise metric.", "id": "GoogleCloudAiplatformV1beta1PairwiseMetricInput", @@ -35674,6 +35747,12 @@ "description": "The full name of the Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to which the Pipeline Job's workload should be peered. For example, `projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/v1/networks/insert) is of the form `projects/{project}/global/networks/{network}`. Where {project} is a project number, as in `12345`, and {network} is a network name. Private services access must already be configured for the network. Pipeline job will apply the network configuration to the Google Cloud resources being launched, if applied, such as Vertex AI Training or Dataflow job. If left unspecified, the workload is not peered with any network.", "type": "string" }, + "originalPipelineJobId": { + "description": "Output only. The original pipeline job id if this pipeline job is a rerun of a previous pipeline job.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "pipelineSpec": { "additionalProperties": { "description": "Properties of the object.", @@ -35682,6 +35761,14 @@ "description": "The spec of the pipeline.", "type": "object" }, + "pipelineTaskRerunConfigs": { + "description": "Output only. The rerun configs for each task in the pipeline job. By default, the rerun will: 1. Use the same input artifacts as the original run. 2. Use the same input parameters as the original run. 3. Skip all the tasks that are already succeeded in the original run. 4. Rerun all the tasks that are not succeeded in the original run. By providing this field, users can override the default behavior and specify the rerun config for each task.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1PipelineTaskRerunConfig" + }, + "readOnly": true, + "type": "array" + }, "preflightValidations": { "description": "Optional. Whether to do component level validations before job creation.", "type": "boolean" @@ -36092,6 +36179,77 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1PipelineTaskRerunConfig": { + "description": "User provided rerun config to submit a rerun pipelinejob. This includes 1. Which task to rerun 2. User override input parameters and artifacts.", + "id": "GoogleCloudAiplatformV1beta1PipelineTaskRerunConfig", + "properties": { + "inputs": { + "$ref": "GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigInputs", + "description": "Output only. The runtime input of the task overridden by the user.", + "readOnly": true + }, + "skipDownstreamTasks": { + "description": "Output only. Whether to skip downstream tasks. Default value is False.", + "readOnly": true, + "type": "boolean" + }, + "skipTask": { + "description": "Output only. Whether to skip this task. Default value is False.", + "readOnly": true, + "type": "boolean" + }, + "taskId": { + "description": "Output only. The system generated ID of the task. Retrieved from original run.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "taskName": { + "description": "Output only. The name of the task.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigArtifactList": { + "description": "A list of artifact metadata.", + "id": "GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigArtifactList", + "properties": { + "artifacts": { + "description": "Output only. A list of artifact metadata.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1RuntimeArtifact" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigInputs": { + "description": "Runtime inputs data of the task.", + "id": "GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigInputs", + "properties": { + "artifacts": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigArtifactList" + }, + "description": "Output only. Input artifacts.", + "readOnly": true, + "type": "object" + }, + "parameterValues": { + "additionalProperties": { + "type": "any" + }, + "description": "Output only. Input parameters.", + "readOnly": true, + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1PipelineTemplateMetadata": { "description": "Pipeline template metadata if PipelineJob.template_uri is from supported template registry. Currently, the only supported registry is Artifact Registry.", "id": "GoogleCloudAiplatformV1beta1PipelineTemplateMetadata", @@ -37720,6 +37878,10 @@ "$ref": "GoogleCloudAiplatformV1beta1ApiAuth", "description": "Authentication config for the chosen Vector DB." }, + "pinecone": { + "$ref": "GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone", + "description": "The config for the Pinecone." + }, "ragManagedDb": { "$ref": "GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb", "description": "The config for the RAG-managed Vector DB." @@ -37728,6 +37890,10 @@ "$ref": "GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexFeatureStore", "description": "The config for the Vertex Feature Store." }, + "vertexVectorSearch": { + "$ref": "GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexVectorSearch", + "description": "The config for the Vertex Vector Search." + }, "weaviate": { "$ref": "GoogleCloudAiplatformV1beta1RagVectorDbConfigWeaviate", "description": "The config for the Weaviate." @@ -37735,6 +37901,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone": { + "description": "The config for the Pinecone.", + "id": "GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone", + "properties": { + "indexName": { + "description": "Pinecone index name. This value cannot be changed after it's set.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb": { "description": "The config for the default RAG-managed Vector DB.", "id": "GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb", @@ -37752,6 +37929,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexVectorSearch": { + "description": "The config for the Vertex Vector Search.", + "id": "GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexVectorSearch", + "properties": { + "index": { + "description": "The resource name of the Index. Format: `projects/{project}/locations/{location}/indexes/{index}`", + "type": "string" + }, + "indexEndpoint": { + "description": "The resource name of the Index Endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RagVectorDbConfigWeaviate": { "description": "The config for the Weaviate.", "id": "GoogleCloudAiplatformV1beta1RagVectorDbConfigWeaviate", @@ -38608,6 +38800,49 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RuntimeArtifact": { + "description": "The definition of a runtime artifact.", + "id": "GoogleCloudAiplatformV1beta1RuntimeArtifact", + "properties": { + "customProperties": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1beta1Value" + }, + "deprecated": true, + "description": "The custom properties of the artifact. Deprecated. Use RuntimeArtifact.metadata instead.", + "type": "object" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Properties of the Artifact.", + "type": "object" + }, + "name": { + "description": "The name of an artifact.", + "type": "string" + }, + "properties": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1beta1Value" + }, + "deprecated": true, + "description": "The properties of the artifact. Deprecated. Use RuntimeArtifact.metadata instead.", + "type": "object" + }, + "type": { + "$ref": "GoogleCloudAiplatformV1beta1ArtifactTypeSchema", + "description": "The type of the artifact." + }, + "uri": { + "description": "The URI of the artifact.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RuntimeConfig": { "description": "Runtime configuration to run the extension.", "id": "GoogleCloudAiplatformV1beta1RuntimeConfig", @@ -38701,14 +38936,16 @@ "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", - "HARM_CATEGORY_SEXUALLY_EXPLICIT" + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY" ], "enumDescriptions": [ "The harm category is unspecified.", "The harm category is hate speech.", "The harm category is dangerous content.", "The harm category is harassment.", - "The harm category is sexually explicit content." + "The harm category is sexually explicit content.", + "The harm category is civic integrity." ], "readOnly": true, "type": "string" @@ -38801,14 +39038,16 @@ "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", - "HARM_CATEGORY_SEXUALLY_EXPLICIT" + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY" ], "enumDescriptions": [ "The harm category is unspecified.", "The harm category is hate speech.", "The harm category is dangerous content.", "The harm category is harassment.", - "The harm category is sexually explicit content." + "The harm category is sexually explicit content.", + "The harm category is civic integrity." ], "type": "string" }, @@ -38833,14 +39072,16 @@ "BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", - "BLOCK_NONE" + "BLOCK_NONE", + "OFF" ], "enumDescriptions": [ "Unspecified harm block threshold.", "Block low threshold and above (i.e. block more).", "Block medium threshold and above.", "Block only high threshold (i.e. block less).", - "Block none." + "Block none.", + "Turn off the safety filter." ], "type": "string" } @@ -39264,6 +39505,13 @@ "description": "Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT.", "type": "object" }, + "propertyOrdering": { + "description": "Optional. The order of the properties. Not a standard field in open api spec. Only used to support the order of the properties.", + "items": { + "type": "string" + }, + "type": "array" + }, "required": { "description": "Optional. Required properties of Type.OBJECT.", "items": { @@ -44719,7 +44967,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1SupervisedTuningSpec": { - "description": "Tuning Spec for Supervised Tuning.", + "description": "Tuning Spec for Supervised Tuning for first party models.", "id": "GoogleCloudAiplatformV1beta1SupervisedTuningSpec", "properties": { "hyperParameters": { diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index f250a1471e3..37f6cc91aac 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -1875,7 +1875,11 @@ func (s *CloudAiLargeModelsVisionNamedBoundingBox) UnmarshalJSON(data []byte) er return nil } +// CloudAiLargeModelsVisionRaiInfo: Next ID: 6 type CloudAiLargeModelsVisionRaiInfo struct { + // BlockedEntities: List of blocked entities from the blocklist if it is + // detected. + BlockedEntities []string `json:"blockedEntities,omitempty"` // DetectedLabels: The list of detected labels for different rai categories. DetectedLabels []*CloudAiLargeModelsVisionRaiInfoDetectedLabels `json:"detectedLabels,omitempty"` // ModelName: The model name used to indexing into the RaiFilterConfig map. @@ -1888,13 +1892,13 @@ type CloudAiLargeModelsVisionRaiInfo struct { // Scores: List of rai scores mapping to the rai categories. Rounded to 1 // decimal place. Scores []float64 `json:"scores,omitempty"` - // ForceSendFields is a list of field names (e.g. "DetectedLabels") to + // ForceSendFields is a list of field names (e.g. "BlockedEntities") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DetectedLabels") to include in + // NullFields is a list of field names (e.g. "BlockedEntities") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2544,6 +2548,41 @@ func (s GoogleCloudAiplatformV1beta1Artifact) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ArtifactTypeSchema: The definition of a artifact +// type in MLMD. +type GoogleCloudAiplatformV1beta1ArtifactTypeSchema struct { + // InstanceSchema: Contains a raw YAML string, describing the format of the + // properties of the type. + InstanceSchema string `json:"instanceSchema,omitempty"` + // SchemaTitle: The name of the type. The format of the title must be: `.`. + // Examples: - `aiplatform.Model` - `acme.CustomModel` When this field is set, + // the type must be pre-registered in the MLMD store. + SchemaTitle string `json:"schemaTitle,omitempty"` + // SchemaUri: Points to a YAML file stored on Cloud Storage describing the + // format. Deprecated. Use PipelineArtifactTypeSchema.schema_title or + // PipelineArtifactTypeSchema.instance_schema instead. + SchemaUri string `json:"schemaUri,omitempty"` + // SchemaVersion: The schema version of the artifact. If the value is not set, + // it defaults to the latest version in the system. + SchemaVersion string `json:"schemaVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstanceSchema") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InstanceSchema") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1ArtifactTypeSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ArtifactTypeSchema + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1AssignNotebookRuntimeOperationMetadata: Metadata // information for NotebookService.AssignNotebookRuntime. type GoogleCloudAiplatformV1beta1AssignNotebookRuntimeOperationMetadata struct { @@ -5408,6 +5447,9 @@ func (s *GoogleCloudAiplatformV1beta1CorroborateContentResponse) UnmarshalJSON(d type GoogleCloudAiplatformV1beta1CountTokensRequest struct { // Contents: Optional. Input content. Contents []*GoogleCloudAiplatformV1beta1Content `json:"contents,omitempty"` + // GenerationConfig: Optional. Generation config that the model will use to + // generate the response. + GenerationConfig *GoogleCloudAiplatformV1beta1GenerationConfig `json:"generationConfig,omitempty"` // Instances: Optional. The instances that are the input to token counting // call. Schema is identical to the prediction schema of the underlying model. Instances []interface{} `json:"instances,omitempty"` @@ -7492,6 +7534,11 @@ type GoogleCloudAiplatformV1beta1DeployedIndex struct { // directly to the deployed index services running on Cloud via private // services access. This field is populated if network is configured. PrivateEndpoints *GoogleCloudAiplatformV1beta1IndexPrivateEndpoints `json:"privateEndpoints,omitempty"` + // PscAutomationConfigs: Optional. If set for PSC deployed index, PSC + // connection will be automatically created after deployment is done and the + // endpoint information is populated in + // private_endpoints.psc_automated_endpoints. + PscAutomationConfigs []*GoogleCloudAiplatformV1beta1PSCAutomationConfig `json:"pscAutomationConfigs,omitempty"` // ReservedIpRanges: Optional. A list of reserved ip ranges under the VPC // network that can be used for this DeployedIndex. If set, we will deploy the // index within the provided ip ranges. Otherwise, the index might be deployed @@ -10636,10 +10683,10 @@ type GoogleCloudAiplatformV1beta1FeatureGroupBigQuery struct { // row per unique entityId including nulls. If not set, will collapse all rows // for each unique entityId into a singe row with any non-null values if // present, if no non-null values are present will sync null. ex: If source has - // schema (entity_id, feature_timestamp, f0, f1) and values (e1, - // 2020-01-01T10:00:00.123Z, 10, 15) (e1, 2020-02-01T10:00:00.123Z, 20, null) - // If dense is set, (e1, 20, null) is synced to online stores. If dense is not - // set, (e1, 20, 15) is synced to online stores. + // schema `(entity_id, feature_timestamp, f0, f1)` and the following rows: + // `(e1, 2020-01-01T10:00:00.123Z, 10, 15)` `(e1, 2020-02-01T10:00:00.123Z, 20, + // null)` If dense is set, `(e1, 20, null)` is synced to online stores. If + // dense is not set, `(e1, 20, 15)` is synced to online stores. Dense bool `json:"dense,omitempty"` // EntityIdColumns: Optional. Columns to construct entity_id / row keys. If not // provided defaults to `entity_id`. @@ -11750,10 +11797,11 @@ type GoogleCloudAiplatformV1beta1FeatureViewVertexRagSource struct { RagCorpusId int64 `json:"ragCorpusId,omitempty,string"` // Uri: Required. The BigQuery view/table URI that will be materialized on each // manual sync trigger. The table/view is expected to have the following - // columns at least: Field name Type Mode corpus_id STRING REQUIRED/NULLABLE - // file_id STRING REQUIRED/NULLABLE chunk_id STRING REQUIRED/NULLABLE - // chunk_data_type STRING REQUIRED/NULLABLE chunk_data STRING REQUIRED/NULLABLE - // embeddings FLOAT REPEATED file_original_uri STRING REQUIRED/NULLABLE + // columns and types at least: - `corpus_id` (STRING, NULLABLE/REQUIRED) - + // `file_id` (STRING, NULLABLE/REQUIRED) - `chunk_id` (STRING, + // NULLABLE/REQUIRED) - `chunk_data_type` (STRING, NULLABLE/REQUIRED) - + // `chunk_data` (STRING, NULLABLE/REQUIRED) - `embeddings` (FLOAT, REPEATED) - + // `file_original_uri` (STRING, NULLABLE/REQUIRED) Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "RagCorpusId") to // unconditionally include in API requests. By default, fields with empty or @@ -13107,6 +13155,13 @@ type GoogleCloudAiplatformV1beta1GenerateContentRequest struct { Contents []*GoogleCloudAiplatformV1beta1Content `json:"contents,omitempty"` // GenerationConfig: Optional. Generation config. GenerationConfig *GoogleCloudAiplatformV1beta1GenerationConfig `json:"generationConfig,omitempty"` + // Labels: Optional. The labels with user-defined metadata for the request. It + // is used for billing and reporting only. Label keys and values can be no + // longer than 63 characters (Unicode codepoints) and can only contain + // lowercase letters, numeric characters, underscores, and dashes. + // International characters are allowed. Label values are optional. Label keys + // must start with a letter. + Labels map[string]string `json:"labels,omitempty"` // SafetySettings: Optional. Per request settings for blocking unsafe content. // Enforced on GenerateContentResponse.candidates. SafetySettings []*GoogleCloudAiplatformV1beta1SafetySetting `json:"safetySettings,omitempty"` @@ -14247,6 +14302,15 @@ type GoogleCloudAiplatformV1beta1ImportRagFilesConfig struct { // import jobs. Consult the Quotas page on the project to set an appropriate // value here. If unspecified, a default value of 1,000 QPM would be used. MaxEmbeddingRequestsPerMin int64 `json:"maxEmbeddingRequestsPerMin,omitempty"` + // PartialFailureBigquerySink: The BigQuery destination to write partial + // failures to. It should be a bigquery table resource name (e.g. + // "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not exist, + // it will be created. If the table does not exist, it will be created with the + // expected schema. If the table exists, the schema will be validated and data + // will be added to this existing table. + PartialFailureBigquerySink *GoogleCloudAiplatformV1beta1BigQueryDestination `json:"partialFailureBigquerySink,omitempty"` + // PartialFailureGcsSink: The Cloud Storage path to write partial failures to. + PartialFailureGcsSink *GoogleCloudAiplatformV1beta1GcsDestination `json:"partialFailureGcsSink,omitempty"` // RagFileChunkingConfig: Specifies the size and overlap of chunks after // importing RagFiles. RagFileChunkingConfig *GoogleCloudAiplatformV1beta1RagFileChunkingConfig `json:"ragFileChunkingConfig,omitempty"` @@ -21619,6 +21683,36 @@ func (s GoogleCloudAiplatformV1beta1NotebookRuntimeTemplateRef) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1PSCAutomationConfig: PSC config that is used to +// automatically create forwarding rule via ServiceConnectionMap. +type GoogleCloudAiplatformV1beta1PSCAutomationConfig struct { + // Network: Required. The full name of the Google Compute Engine network + // (https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + // Format + // (https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + // `projects/{project}/global/networks/{network}`. Where {project} is a project + // number, as in '12345', and {network} is network name. + Network string `json:"network,omitempty"` + // ProjectId: Required. Project id used to create forwarding rule. + ProjectId string `json:"projectId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Network") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Network") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1PSCAutomationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PSCAutomationConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1PairwiseMetricInput: Input for pairwise metric. type GoogleCloudAiplatformV1beta1PairwiseMetricInput struct { // Instance: Required. Pairwise metric instance. @@ -22206,8 +22300,19 @@ type GoogleCloudAiplatformV1beta1PipelineJob struct { // applied, such as Vertex AI Training or Dataflow job. If left unspecified, // the workload is not peered with any network. Network string `json:"network,omitempty"` + // OriginalPipelineJobId: Output only. The original pipeline job id if this + // pipeline job is a rerun of a previous pipeline job. + OriginalPipelineJobId int64 `json:"originalPipelineJobId,omitempty,string"` // PipelineSpec: The spec of the pipeline. PipelineSpec googleapi.RawMessage `json:"pipelineSpec,omitempty"` + // PipelineTaskRerunConfigs: Output only. The rerun configs for each task in + // the pipeline job. By default, the rerun will: 1. Use the same input + // artifacts as the original run. 2. Use the same input parameters as the + // original run. 3. Skip all the tasks that are already succeeded in the + // original run. 4. Rerun all the tasks that are not succeeded in the original + // run. By providing this field, users can override the default behavior and + // specify the rerun config for each task. + PipelineTaskRerunConfigs []*GoogleCloudAiplatformV1beta1PipelineTaskRerunConfig `json:"pipelineTaskRerunConfigs,omitempty"` // PreflightValidations: Optional. Whether to do component level validations // before job creation. PreflightValidations bool `json:"preflightValidations,omitempty"` @@ -22623,6 +22728,88 @@ func (s GoogleCloudAiplatformV1beta1PipelineTaskExecutorDetailCustomJobDetail) M return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1PipelineTaskRerunConfig: User provided rerun +// config to submit a rerun pipelinejob. This includes 1. Which task to rerun +// 2. User override input parameters and artifacts. +type GoogleCloudAiplatformV1beta1PipelineTaskRerunConfig struct { + // Inputs: Output only. The runtime input of the task overridden by the user. + Inputs *GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigInputs `json:"inputs,omitempty"` + // SkipDownstreamTasks: Output only. Whether to skip downstream tasks. Default + // value is False. + SkipDownstreamTasks bool `json:"skipDownstreamTasks,omitempty"` + // SkipTask: Output only. Whether to skip this task. Default value is False. + SkipTask bool `json:"skipTask,omitempty"` + // TaskId: Output only. The system generated ID of the task. Retrieved from + // original run. + TaskId int64 `json:"taskId,omitempty,string"` + // TaskName: Output only. The name of the task. + TaskName string `json:"taskName,omitempty"` + // ForceSendFields is a list of field names (e.g. "Inputs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Inputs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1PipelineTaskRerunConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PipelineTaskRerunConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigArtifactList: A list of +// artifact metadata. +type GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigArtifactList struct { + // Artifacts: Output only. A list of artifact metadata. + Artifacts []*GoogleCloudAiplatformV1beta1RuntimeArtifact `json:"artifacts,omitempty"` + // ForceSendFields is a list of field names (e.g. "Artifacts") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Artifacts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigArtifactList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigArtifactList + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigInputs: Runtime inputs +// data of the task. +type GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigInputs struct { + // Artifacts: Output only. Input artifacts. + Artifacts map[string]GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigArtifactList `json:"artifacts,omitempty"` + // ParameterValues: Output only. Input parameters. + ParameterValues googleapi.RawMessage `json:"parameterValues,omitempty"` + // ForceSendFields is a list of field names (e.g. "Artifacts") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Artifacts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigInputs) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PipelineTaskRerunConfigInputs + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1PipelineTemplateMetadata: Pipeline template // metadata if PipelineJob.template_uri is from supported template registry. // Currently, the only supported registry is Artifact Registry. @@ -25066,10 +25253,14 @@ func (s *GoogleCloudAiplatformV1beta1RagQueryRanking) UnmarshalJSON(data []byte) type GoogleCloudAiplatformV1beta1RagVectorDbConfig struct { // ApiAuth: Authentication config for the chosen Vector DB. ApiAuth *GoogleCloudAiplatformV1beta1ApiAuth `json:"apiAuth,omitempty"` + // Pinecone: The config for the Pinecone. + Pinecone *GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone `json:"pinecone,omitempty"` // RagManagedDb: The config for the RAG-managed Vector DB. RagManagedDb *GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb `json:"ragManagedDb,omitempty"` // VertexFeatureStore: The config for the Vertex Feature Store. VertexFeatureStore *GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexFeatureStore `json:"vertexFeatureStore,omitempty"` + // VertexVectorSearch: The config for the Vertex Vector Search. + VertexVectorSearch *GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexVectorSearch `json:"vertexVectorSearch,omitempty"` // Weaviate: The config for the Weaviate. Weaviate *GoogleCloudAiplatformV1beta1RagVectorDbConfigWeaviate `json:"weaviate,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiAuth") to unconditionally @@ -25090,6 +25281,29 @@ func (s GoogleCloudAiplatformV1beta1RagVectorDbConfig) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone: The config for the +// Pinecone. +type GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone struct { + // IndexName: Pinecone index name. This value cannot be changed after it's set. + IndexName string `json:"indexName,omitempty"` + // ForceSendFields is a list of field names (e.g. "IndexName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IndexName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb: The config for // the default RAG-managed Vector DB. type GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb struct { @@ -25120,6 +25334,33 @@ func (s GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexFeatureStore) Marshal return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexVectorSearch: The config +// for the Vertex Vector Search. +type GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexVectorSearch struct { + // Index: The resource name of the Index. Format: + // `projects/{project}/locations/{location}/indexes/{index}` + Index string `json:"index,omitempty"` + // IndexEndpoint: The resource name of the Index Endpoint. Format: + // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + IndexEndpoint string `json:"indexEndpoint,omitempty"` + // ForceSendFields is a list of field names (e.g. "Index") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Index") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexVectorSearch) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexVectorSearch + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RagVectorDbConfigWeaviate: The config for the // Weaviate. type GoogleCloudAiplatformV1beta1RagVectorDbConfigWeaviate struct { @@ -26500,6 +26741,41 @@ func (s GoogleCloudAiplatformV1beta1RougeSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RuntimeArtifact: The definition of a runtime +// artifact. +type GoogleCloudAiplatformV1beta1RuntimeArtifact struct { + // CustomProperties: The custom properties of the artifact. Deprecated. Use + // RuntimeArtifact.metadata instead. + CustomProperties map[string]GoogleCloudAiplatformV1beta1Value `json:"customProperties,omitempty"` + // Metadata: Properties of the Artifact. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: The name of an artifact. + Name string `json:"name,omitempty"` + // Properties: The properties of the artifact. Deprecated. Use + // RuntimeArtifact.metadata instead. + Properties map[string]GoogleCloudAiplatformV1beta1Value `json:"properties,omitempty"` + // Type: The type of the artifact. + Type *GoogleCloudAiplatformV1beta1ArtifactTypeSchema `json:"type,omitempty"` + // Uri: The URI of the artifact. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "CustomProperties") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CustomProperties") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1RuntimeArtifact) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RuntimeArtifact + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RuntimeConfig: Runtime configuration to run the // extension. type GoogleCloudAiplatformV1beta1RuntimeConfig struct { @@ -26656,6 +26932,7 @@ type GoogleCloudAiplatformV1beta1SafetyRating struct { // "HARM_CATEGORY_HARASSMENT" - The harm category is harassment. // "HARM_CATEGORY_SEXUALLY_EXPLICIT" - The harm category is sexually explicit // content. + // "HARM_CATEGORY_CIVIC_INTEGRITY" - The harm category is civic integrity. Category string `json:"category,omitempty"` // Probability: Output only. Harm probability levels in the content. // @@ -26767,6 +27044,7 @@ type GoogleCloudAiplatformV1beta1SafetySetting struct { // "HARM_CATEGORY_HARASSMENT" - The harm category is harassment. // "HARM_CATEGORY_SEXUALLY_EXPLICIT" - The harm category is sexually explicit // content. + // "HARM_CATEGORY_CIVIC_INTEGRITY" - The harm category is civic integrity. Category string `json:"category,omitempty"` // Method: Optional. Specify if the threshold is used for probability or // severity score. If not specified, the threshold is used for probability @@ -26786,6 +27064,7 @@ type GoogleCloudAiplatformV1beta1SafetySetting struct { // "BLOCK_MEDIUM_AND_ABOVE" - Block medium threshold and above. // "BLOCK_ONLY_HIGH" - Block only high threshold (i.e. block less). // "BLOCK_NONE" - Block none. + // "OFF" - Turn off the safety filter. Threshold string `json:"threshold,omitempty"` // ForceSendFields is a list of field names (e.g. "Category") to // unconditionally include in API requests. By default, fields with empty or @@ -27269,6 +27548,9 @@ type GoogleCloudAiplatformV1beta1Schema struct { // Properties: Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of // Type.OBJECT. Properties map[string]GoogleCloudAiplatformV1beta1Schema `json:"properties,omitempty"` + // PropertyOrdering: Optional. The order of the properties. Not a standard + // field in open api spec. Only used to support the order of the properties. + PropertyOrdering []string `json:"propertyOrdering,omitempty"` // Required: Optional. Required properties of Type.OBJECT. Required []string `json:"required,omitempty"` // Title: Optional. The title of the Schema. @@ -36089,7 +36371,7 @@ func (s *GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetB } // GoogleCloudAiplatformV1beta1SupervisedTuningSpec: Tuning Spec for Supervised -// Tuning. +// Tuning for first party models. type GoogleCloudAiplatformV1beta1SupervisedTuningSpec struct { // HyperParameters: Optional. Hyperparameters for SFT. HyperParameters *GoogleCloudAiplatformV1beta1SupervisedHyperParameters `json:"hyperParameters,omitempty"` @@ -39823,7 +40105,7 @@ func (c *DatasetsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.create" call. @@ -39920,7 +40202,7 @@ func (c *DatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.delete" call. @@ -40035,7 +40317,7 @@ func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.get" call. @@ -40185,7 +40467,7 @@ func (c *DatasetsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.list" call. @@ -40317,7 +40599,7 @@ func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.patch" call. @@ -40420,7 +40702,7 @@ func (c *DatasetsDatasetVersionsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.create" call. @@ -40518,7 +40800,7 @@ func (c *DatasetsDatasetVersionsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.delete" call. @@ -40635,7 +40917,7 @@ func (c *DatasetsDatasetVersionsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.get" call. @@ -40779,7 +41061,7 @@ func (c *DatasetsDatasetVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.list" call. @@ -40910,7 +41192,7 @@ func (c *DatasetsDatasetVersionsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.patch" call. @@ -41020,7 +41302,7 @@ func (c *DatasetsDatasetVersionsRestoreCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.datasets.datasetVersions.restore" call. @@ -41123,7 +41405,7 @@ func (c *EndpointsComputeTokensCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.endpoints.computeTokens" call. @@ -41226,7 +41508,7 @@ func (c *EndpointsCountTokensCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.endpoints.countTokens" call. @@ -41332,7 +41614,7 @@ func (c *EndpointsGenerateContentCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.endpoints.generateContent" call. @@ -41439,7 +41721,7 @@ func (c *EndpointsStreamGenerateContentCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.endpoints.streamGenerateContent" call. @@ -41592,7 +41874,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.media.upload" call. @@ -41718,7 +42000,7 @@ func (c *ProjectsGetCacheConfigCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.getCacheConfig" call. @@ -41821,7 +42103,7 @@ func (c *ProjectsUpdateCacheConfigCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.updateCacheConfig" call. @@ -41926,7 +42208,7 @@ func (c *ProjectsLocationsAugmentPromptCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.augmentPrompt" call. @@ -42032,7 +42314,7 @@ func (c *ProjectsLocationsCorroborateContentCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.corroborateContent" call. @@ -42137,7 +42419,7 @@ func (c *ProjectsLocationsEvaluateInstancesCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.evaluateInstances" call. @@ -42245,7 +42527,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.get" call. @@ -42377,7 +42659,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.list" call. @@ -42502,7 +42784,7 @@ func (c *ProjectsLocationsRetrieveContextsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.retrieveContexts" call. @@ -42606,7 +42888,7 @@ func (c *ProjectsLocationsAgentsOperationsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.agents.operations.cancel" call. @@ -42705,7 +42987,7 @@ func (c *ProjectsLocationsAgentsOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.agents.operations.delete" call. @@ -42815,7 +43097,7 @@ func (c *ProjectsLocationsAgentsOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.agents.operations.get" call. @@ -42944,7 +43226,7 @@ func (c *ProjectsLocationsAgentsOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.agents.operations.list" call. @@ -43078,7 +43360,7 @@ func (c *ProjectsLocationsAgentsOperationsWaitCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.agents.operations.wait" call. @@ -43182,7 +43464,7 @@ func (c *ProjectsLocationsAppsOperationsCancelCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.apps.operations.cancel" call. @@ -43281,7 +43563,7 @@ func (c *ProjectsLocationsAppsOperationsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.apps.operations.delete" call. @@ -43391,7 +43673,7 @@ func (c *ProjectsLocationsAppsOperationsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.apps.operations.get" call. @@ -43520,7 +43802,7 @@ func (c *ProjectsLocationsAppsOperationsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.apps.operations.list" call. @@ -43654,7 +43936,7 @@ func (c *ProjectsLocationsAppsOperationsWaitCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.apps.operations.wait" call. @@ -43765,7 +44047,7 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.batchPredictionJobs.cancel" call. @@ -43869,7 +44151,7 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.batchPredictionJobs.create" call. @@ -43968,7 +44250,7 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.batchPredictionJobs.delete" call. @@ -44078,7 +44360,7 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.batchPredictionJobs.get" call. @@ -44226,7 +44508,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.batchPredictionJobs.list" call. @@ -44350,7 +44632,7 @@ func (c *ProjectsLocationsCachedContentsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.cachedContents.create" call. @@ -44446,7 +44728,7 @@ func (c *ProjectsLocationsCachedContentsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.cachedContents.delete" call. @@ -44554,7 +44836,7 @@ func (c *ProjectsLocationsCachedContentsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.cachedContents.get" call. @@ -44680,7 +44962,7 @@ func (c *ProjectsLocationsCachedContentsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.cachedContents.list" call. @@ -44814,7 +45096,7 @@ func (c *ProjectsLocationsCachedContentsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.cachedContents.patch" call. @@ -44924,7 +45206,7 @@ func (c *ProjectsLocationsCustomJobsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.cancel" call. @@ -45028,7 +45310,7 @@ func (c *ProjectsLocationsCustomJobsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.create" call. @@ -45125,7 +45407,7 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.delete" call. @@ -45234,7 +45516,7 @@ func (c *ProjectsLocationsCustomJobsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.get" call. @@ -45381,7 +45663,7 @@ func (c *ProjectsLocationsCustomJobsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.list" call. @@ -45506,7 +45788,7 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.operations.cancel" call. @@ -45605,7 +45887,7 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.operations.delete" call. @@ -45715,7 +45997,7 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.operations.get" call. @@ -45844,7 +46126,7 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.operations.list" call. @@ -45978,7 +46260,7 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.customJobs.operations.wait" call. @@ -46083,7 +46365,7 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.cancel" call. @@ -46186,7 +46468,7 @@ func (c *ProjectsLocationsDataLabelingJobsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.create" call. @@ -46284,7 +46566,7 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.delete" call. @@ -46394,7 +46676,7 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.get" call. @@ -46551,7 +46833,7 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.list" call. @@ -46676,7 +46958,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.cancel" call. @@ -46775,7 +47057,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.delete" call. @@ -46885,7 +47167,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.get" call. @@ -47014,7 +47296,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.list" call. @@ -47148,7 +47430,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.wait" call. @@ -47251,7 +47533,7 @@ func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.create" call. @@ -47348,7 +47630,7 @@ func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.delete" call. @@ -47451,7 +47733,7 @@ func (c *ProjectsLocationsDatasetsExportCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.export" call. @@ -47566,7 +47848,7 @@ func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.get" call. @@ -47669,7 +47951,7 @@ func (c *ProjectsLocationsDatasetsImportCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.import" call. @@ -47820,7 +48102,7 @@ func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.list" call. @@ -47952,7 +48234,7 @@ func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.patch" call. @@ -48174,7 +48456,7 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "dataset": c.dataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.searchDataItems" call. @@ -48312,7 +48594,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.get" call. @@ -48416,7 +48698,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel" call. @@ -48515,7 +48797,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete" call. @@ -48625,7 +48907,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.get" call. @@ -48754,7 +49036,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.list" call. @@ -48888,7 +49170,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.wait" call. @@ -49032,7 +49314,7 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.list" call. @@ -49201,7 +49483,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.list" call. @@ -49326,7 +49608,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel" call. @@ -49425,7 +49707,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete" call. @@ -49535,7 +49817,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get" call. @@ -49664,7 +49946,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list" call. @@ -49798,7 +50080,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait" call. @@ -49902,7 +50184,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.cancel" call. @@ -50001,7 +50283,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.delete" call. @@ -50111,7 +50393,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.get" call. @@ -50240,7 +50522,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.list" call. @@ -50374,7 +50656,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.wait" call. @@ -50477,7 +50759,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.create" call. @@ -50575,7 +50857,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.delete" call. @@ -50692,7 +50974,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.get" call. @@ -50836,7 +51118,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.list" call. @@ -50967,7 +51249,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.patch" call. @@ -51077,7 +51359,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.datasetVersions.restore" call. @@ -51181,7 +51463,7 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.operations.cancel" call. @@ -51280,7 +51562,7 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.operations.delete" call. @@ -51390,7 +51672,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.operations.get" call. @@ -51519,7 +51801,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.operations.list" call. @@ -51653,7 +51935,7 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.operations.wait" call. @@ -51751,7 +52033,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.delete" call. @@ -51895,7 +52177,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.list" call. @@ -52020,7 +52302,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.cancel" call. @@ -52119,7 +52401,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.delete" call. @@ -52229,7 +52511,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.get" call. @@ -52358,7 +52640,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.list" call. @@ -52492,7 +52774,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.wait" call. @@ -52595,7 +52877,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.create" call. @@ -52693,7 +52975,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.delete" call. @@ -52803,7 +53085,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.get" call. @@ -52930,7 +53212,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.list" call. @@ -53062,7 +53344,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.patch" call. @@ -53190,7 +53472,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "deploymentResourcePool": c.deploymentResourcePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels" call. @@ -53315,7 +53597,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.cancel" call. @@ -53414,7 +53696,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.delete" call. @@ -53524,7 +53806,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.get" call. @@ -53653,7 +53935,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.list" call. @@ -53787,7 +54069,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.wait" call. @@ -53891,7 +54173,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.edgeDevices.operations.cancel" call. @@ -53990,7 +54272,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.edgeDevices.operations.delete" call. @@ -54100,7 +54382,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.edgeDevices.operations.get" call. @@ -54229,7 +54511,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.edgeDevices.operations.list" call. @@ -54363,7 +54645,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.edgeDevices.operations.wait" call. @@ -54466,7 +54748,7 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.computeTokens" call. @@ -54569,7 +54851,7 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.countTokens" call. @@ -54687,7 +54969,7 @@ func (c *ProjectsLocationsEndpointsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.create" call. @@ -54784,7 +55066,7 @@ func (c *ProjectsLocationsEndpointsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.delete" call. @@ -54888,7 +55170,7 @@ func (c *ProjectsLocationsEndpointsDeployModelCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.deployModel" call. @@ -54992,7 +55274,7 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.directPredict" call. @@ -55096,7 +55378,7 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.directRawPredict" call. @@ -55202,7 +55484,7 @@ func (c *ProjectsLocationsEndpointsExplainCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.explain" call. @@ -55308,7 +55590,7 @@ func (c *ProjectsLocationsEndpointsGenerateContentCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.generateContent" call. @@ -55417,7 +55699,7 @@ func (c *ProjectsLocationsEndpointsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.get" call. @@ -55533,7 +55815,7 @@ func (c *ProjectsLocationsEndpointsGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.getIamPolicy" call. @@ -55679,7 +55961,7 @@ func (c *ProjectsLocationsEndpointsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.list" call. @@ -55807,7 +56089,7 @@ func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.mutateDeployedModel" call. @@ -55916,7 +56198,7 @@ func (c *ProjectsLocationsEndpointsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.patch" call. @@ -56019,7 +56301,7 @@ func (c *ProjectsLocationsEndpointsPredictCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.predict" call. @@ -56126,7 +56408,7 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.rawPredict" call. @@ -56230,7 +56512,7 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.serverStreamingPredict" call. @@ -56336,7 +56618,7 @@ func (c *ProjectsLocationsEndpointsSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.setIamPolicy" call. @@ -56443,7 +56725,7 @@ func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.streamGenerateContent" call. @@ -56547,7 +56829,7 @@ func (c *ProjectsLocationsEndpointsStreamRawPredictCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.streamRawPredict" call. @@ -56659,7 +56941,7 @@ func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.testIamPermissions" call. @@ -56764,7 +57046,7 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.undeployModel" call. @@ -56867,7 +57149,7 @@ func (c *ProjectsLocationsEndpointsChatCompletionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.chat.completions" call. @@ -56971,7 +57253,7 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.operations.cancel" call. @@ -57070,7 +57352,7 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.operations.delete" call. @@ -57180,7 +57462,7 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.operations.get" call. @@ -57309,7 +57591,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.operations.list" call. @@ -57443,7 +57725,7 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.endpoints.operations.wait" call. @@ -57542,7 +57824,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.evaluationTasks.operations.delete" call. @@ -57652,7 +57934,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.evaluationTasks.operations.get" call. @@ -57781,7 +58063,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.evaluationTasks.operations.list" call. @@ -57915,7 +58197,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.evaluationTasks.operations.wait" call. @@ -58019,7 +58301,7 @@ func (c *ProjectsLocationsExampleStoresOperationsCancelCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.exampleStores.operations.cancel" call. @@ -58118,7 +58400,7 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.exampleStores.operations.delete" call. @@ -58228,7 +58510,7 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.exampleStores.operations.get" call. @@ -58357,7 +58639,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.exampleStores.operations.list" call. @@ -58491,7 +58773,7 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.exampleStores.operations.wait" call. @@ -58595,7 +58877,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensionControllers.operations.cancel" call. @@ -58694,7 +58976,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensionControllers.operations.delete" call. @@ -58804,7 +59086,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensionControllers.operations.get" call. @@ -58933,7 +59215,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensionControllers.operations.list" call. @@ -59067,7 +59349,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensionControllers.operations.wait" call. @@ -59164,7 +59446,7 @@ func (c *ProjectsLocationsExtensionsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.delete" call. @@ -59267,7 +59549,7 @@ func (c *ProjectsLocationsExtensionsExecuteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.execute" call. @@ -59376,7 +59658,7 @@ func (c *ProjectsLocationsExtensionsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.get" call. @@ -59479,7 +59761,7 @@ func (c *ProjectsLocationsExtensionsImportCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.import" call. @@ -59619,7 +59901,7 @@ func (c *ProjectsLocationsExtensionsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.list" call. @@ -59751,7 +60033,7 @@ func (c *ProjectsLocationsExtensionsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.patch" call. @@ -59854,7 +60136,7 @@ func (c *ProjectsLocationsExtensionsQueryCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.query" call. @@ -59958,7 +60240,7 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.operations.cancel" call. @@ -60057,7 +60339,7 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.operations.delete" call. @@ -60167,7 +60449,7 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.operations.get" call. @@ -60296,7 +60578,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.operations.list" call. @@ -60430,7 +60712,7 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.extensions.operations.wait" call. @@ -60493,9 +60775,9 @@ func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googleclou // FeatureGroupId sets the optional parameter "featureGroupId": Required. The // ID to use for this FeatureGroup, which will become the final component of -// the FeatureGroup's resource name. This value may be up to 60 characters, and -// valid characters are `[a-z0-9_]`. The first character cannot be a number. -// The value must be unique within the project and location. +// the FeatureGroup's resource name. This value may be up to 128 characters, +// and valid characters are `[a-z0-9_]`. The first character cannot be a +// number. The value must be unique within the project and location. func (c *ProjectsLocationsFeatureGroupsCreateCall) FeatureGroupId(featureGroupId string) *ProjectsLocationsFeatureGroupsCreateCall { c.urlParams_.Set("featureGroupId", featureGroupId) return c @@ -60543,7 +60825,7 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.create" call. @@ -60648,7 +60930,7 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.delete" call. @@ -60756,7 +61038,7 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.get" call. @@ -60906,7 +61188,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.list" call. @@ -61043,7 +61325,7 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.patch" call. @@ -61159,7 +61441,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.create" call. @@ -61259,7 +61541,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.delete" call. @@ -61370,7 +61652,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.get" call. @@ -61545,7 +61827,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.list" call. @@ -61689,7 +61971,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.patch" call. @@ -61788,7 +62070,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.operations.delete" call. @@ -61898,7 +62180,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.operations.get" call. @@ -62027,7 +62309,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.operations.list" call. @@ -62161,7 +62443,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.features.operations.wait" call. @@ -62260,7 +62542,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.operations.delete" call. @@ -62370,7 +62652,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.operations.get" call. @@ -62499,7 +62781,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.operations.list" call. @@ -62633,7 +62915,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureGroups.operations.wait" call. @@ -62747,7 +63029,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.create" call. @@ -62854,7 +63136,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.delete" call. @@ -62962,7 +63244,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.get" call. @@ -63078,7 +63360,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.getIamPolicy" call. @@ -63229,7 +63511,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.list" call. @@ -63368,7 +63650,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.patch" call. @@ -63474,7 +63756,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.setIamPolicy" call. @@ -63586,7 +63868,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.testIamPermissions" call. @@ -63709,7 +63991,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.create" call. @@ -63807,7 +64089,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.delete" call. @@ -63911,7 +64193,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) googleapi.Expand(req.URL, map[string]string{ "featureView": c.featureView, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues" call. @@ -64023,7 +64305,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.get" call. @@ -64139,7 +64421,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall) doReq googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.getIamPolicy" call. @@ -64294,7 +64576,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.list" call. @@ -64435,7 +64717,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.patch" call. @@ -64541,7 +64823,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCa googleapi.Expand(req.URL, map[string]string{ "featureView": c.featureView, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities" call. @@ -64647,7 +64929,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall) doReq googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.setIamPolicy" call. @@ -64753,7 +65035,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsStreamingFetchFeatureVa googleapi.Expand(req.URL, map[string]string{ "featureView": c.featureView, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.streamingFetchFeatureValues" call. @@ -64857,7 +65139,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "featureView": c.featureView, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.sync" call. @@ -64969,7 +65251,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.testIamPermissions" call. @@ -65079,7 +65361,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get" call. @@ -65228,7 +65510,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list" call. @@ -65348,7 +65630,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete" call. @@ -65458,7 +65740,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get" call. @@ -65587,7 +65869,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.list" call. @@ -65721,7 +66003,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.wait" call. @@ -65820,7 +66102,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.delete" call. @@ -65930,7 +66212,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.get" call. @@ -66059,7 +66341,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.list" call. @@ -66193,7 +66475,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.wait" call. @@ -66301,7 +66583,7 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "featurestore": c.featurestore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.batchReadFeatureValues" call. @@ -66414,7 +66696,7 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.create" call. @@ -66520,7 +66802,7 @@ func (c *ProjectsLocationsFeaturestoresDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.delete" call. @@ -66628,7 +66910,7 @@ func (c *ProjectsLocationsFeaturestoresGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.get" call. @@ -66733,7 +67015,7 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.getIamPolicy" call. @@ -66892,7 +67174,7 @@ func (c *ProjectsLocationsFeaturestoresListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.list" call. @@ -67030,7 +67312,7 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.patch" call. @@ -67197,7 +67479,7 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.searchFeatures" call. @@ -67324,7 +67606,7 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.setIamPolicy" call. @@ -67433,7 +67715,7 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.testIamPermissions" call. @@ -67547,7 +67829,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.create" call. @@ -67654,7 +67936,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.delete" call. @@ -67766,7 +68048,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) doReq googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues" call. @@ -67872,7 +68154,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) doReq googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues" call. @@ -67982,7 +68264,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.get" call. @@ -68098,7 +68380,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy" call. @@ -68216,7 +68498,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) doReq googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues" call. @@ -68376,7 +68658,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.list" call. @@ -68524,7 +68806,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.patch" call. @@ -68632,7 +68914,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) doReque googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues" call. @@ -68738,7 +69020,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy" call. @@ -68845,7 +69127,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues" call. @@ -68957,7 +69239,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions" call. @@ -69067,7 +69349,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) doRequ googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues" call. @@ -69174,7 +69456,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate" call. @@ -69290,7 +69572,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.create" call. @@ -69390,7 +69672,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.delete" call. @@ -69501,7 +69783,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.get" call. @@ -69676,7 +69958,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.list" call. @@ -69820,7 +70102,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.patch" call. @@ -69924,7 +70206,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.cancel" call. @@ -70023,7 +70305,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete" call. @@ -70133,7 +70415,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get" call. @@ -70262,7 +70544,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list" call. @@ -70396,7 +70678,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait" call. @@ -70500,7 +70782,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel" call. @@ -70599,7 +70881,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.delete" call. @@ -70709,7 +70991,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.get" call. @@ -70838,7 +71120,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.list" call. @@ -70972,7 +71254,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.wait" call. @@ -71076,7 +71358,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.operations.cancel" call. @@ -71175,7 +71457,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.operations.delete" call. @@ -71285,7 +71567,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.operations.get" call. @@ -71414,7 +71696,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.operations.list" call. @@ -71548,7 +71830,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.featurestores.operations.wait" call. @@ -71660,7 +71942,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.cancel" call. @@ -71764,7 +72046,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.create" call. @@ -71863,7 +72145,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.delete" call. @@ -71973,7 +72255,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.get" call. @@ -72122,7 +72404,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.list" call. @@ -72247,7 +72529,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel" call. @@ -72346,7 +72628,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete" call. @@ -72456,7 +72738,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get" call. @@ -72585,7 +72867,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list" call. @@ -72719,7 +73001,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait" call. @@ -72822,7 +73104,7 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.create" call. @@ -72919,7 +73201,7 @@ func (c *ProjectsLocationsIndexEndpointsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.delete" call. @@ -73024,7 +73306,7 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "indexEndpoint": c.indexEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.deployIndex" call. @@ -73128,7 +73410,7 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "indexEndpoint": c.indexEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.findNeighbors" call. @@ -73237,7 +73519,7 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.get" call. @@ -73384,7 +73666,7 @@ func (c *ProjectsLocationsIndexEndpointsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.list" call. @@ -73512,7 +73794,7 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "indexEndpoint": c.indexEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex" call. @@ -73621,7 +73903,7 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.patch" call. @@ -73725,7 +74007,7 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "indexEndpoint": c.indexEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints" call. @@ -73830,7 +74112,7 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "indexEndpoint": c.indexEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.undeployIndex" call. @@ -73934,7 +74216,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.operations.cancel" call. @@ -74033,7 +74315,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.operations.delete" call. @@ -74143,7 +74425,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.operations.get" call. @@ -74272,7 +74554,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.operations.list" call. @@ -74406,7 +74688,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexEndpoints.operations.wait" call. @@ -74509,7 +74791,7 @@ func (c *ProjectsLocationsIndexesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.create" call. @@ -74607,7 +74889,7 @@ func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.delete" call. @@ -74716,7 +74998,7 @@ func (c *ProjectsLocationsIndexesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.get" call. @@ -74853,7 +75135,7 @@ func (c *ProjectsLocationsIndexesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.list" call. @@ -74984,7 +75266,7 @@ func (c *ProjectsLocationsIndexesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.patch" call. @@ -75087,7 +75369,7 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "index": c.index, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.removeDatapoints" call. @@ -75190,7 +75472,7 @@ func (c *ProjectsLocationsIndexesUpsertDatapointsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "index": c.index, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.upsertDatapoints" call. @@ -75294,7 +75576,7 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.operations.cancel" call. @@ -75393,7 +75675,7 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.operations.delete" call. @@ -75503,7 +75785,7 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.operations.get" call. @@ -75632,7 +75914,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.operations.list" call. @@ -75766,7 +76048,7 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.indexes.operations.wait" call. @@ -75882,7 +76164,7 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.create" call. @@ -75987,7 +76269,7 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.delete" call. @@ -76096,7 +76378,7 @@ func (c *ProjectsLocationsMetadataStoresGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.get" call. @@ -76223,7 +76505,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.list" call. @@ -76363,7 +76645,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.create" call. @@ -76469,7 +76751,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.delete" call. @@ -76579,7 +76861,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.get" call. @@ -76742,7 +77024,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.list" call. @@ -76879,7 +77161,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.patch" call. @@ -76982,7 +77264,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.purge" call. @@ -77129,7 +77411,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal googleapi.Expand(req.URL, map[string]string{ "artifact": c.artifact, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph" call. @@ -77233,7 +77515,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.operations.cancel" call. @@ -77332,7 +77614,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.operations.delete" call. @@ -77442,7 +77724,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.operations.get" call. @@ -77571,7 +77853,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.operations.list" call. @@ -77705,7 +77987,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.artifacts.operations.wait" call. @@ -77812,7 +78094,7 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions googleapi.Expand(req.URL, map[string]string{ "context": c.context, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions" call. @@ -77920,7 +78202,7 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) doReques googleapi.Expand(req.URL, map[string]string{ "context": c.context, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextChildren" call. @@ -78039,7 +78321,7 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.create" call. @@ -78152,7 +78434,7 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.delete" call. @@ -78262,7 +78544,7 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.get" call. @@ -78424,7 +78706,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.list" call. @@ -78561,7 +78843,7 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.patch" call. @@ -78664,7 +78946,7 @@ func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.purge" call. @@ -78779,7 +79061,7 @@ func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) googleapi.Expand(req.URL, map[string]string{ "context": c.context, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph" call. @@ -78885,7 +79167,7 @@ func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) doReq googleapi.Expand(req.URL, map[string]string{ "context": c.context, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren" call. @@ -78989,7 +79271,7 @@ func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.operations.cancel" call. @@ -79088,7 +79370,7 @@ func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.operations.delete" call. @@ -79198,7 +79480,7 @@ func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.operations.get" call. @@ -79327,7 +79609,7 @@ func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.operations.list" call. @@ -79461,7 +79743,7 @@ func (c *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.contexts.operations.wait" call. @@ -79569,7 +79851,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "execution": c.execution, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents" call. @@ -79688,7 +79970,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.create" call. @@ -79794,7 +80076,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.delete" call. @@ -79904,7 +80186,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.get" call. @@ -80067,7 +80349,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.list" call. @@ -80204,7 +80486,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.patch" call. @@ -80307,7 +80589,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.purge" call. @@ -80420,7 +80702,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputs googleapi.Expand(req.URL, map[string]string{ "execution": c.execution, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs" call. @@ -80524,7 +80806,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.operations.cancel" call. @@ -80623,7 +80905,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.operations.delete" call. @@ -80733,7 +81015,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.operations.get" call. @@ -80862,7 +81144,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.operations.list" call. @@ -80996,7 +81278,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.executions.operations.wait" call. @@ -81113,7 +81395,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.create" call. @@ -81223,7 +81505,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.get" call. @@ -81357,7 +81639,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.list" call. @@ -81482,7 +81764,7 @@ func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.operations.cancel" call. @@ -81581,7 +81863,7 @@ func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.operations.delete" call. @@ -81691,7 +81973,7 @@ func (c *ProjectsLocationsMetadataStoresOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.operations.get" call. @@ -81820,7 +82102,7 @@ func (c *ProjectsLocationsMetadataStoresOperationsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.operations.list" call. @@ -81954,7 +82236,7 @@ func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.metadataStores.operations.wait" call. @@ -82058,7 +82340,7 @@ func (c *ProjectsLocationsMigratableResourcesBatchMigrateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.batchMigrate" call. @@ -82165,7 +82447,7 @@ func (c *ProjectsLocationsMigratableResourcesSearchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.search" call. @@ -82290,7 +82572,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.operations.cancel" call. @@ -82389,7 +82671,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.operations.delete" call. @@ -82499,7 +82781,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.operations.get" call. @@ -82628,7 +82910,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.operations.list" call. @@ -82762,7 +83044,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.migratableResources.operations.wait" call. @@ -82866,7 +83148,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create" call. @@ -82964,7 +83246,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.delete" call. @@ -83074,7 +83356,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.get" call. @@ -83220,7 +83502,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.list" call. @@ -83370,7 +83652,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.patch" call. @@ -83477,7 +83759,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.pause" call. @@ -83584,7 +83866,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.resume" call. @@ -83690,7 +83972,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMoni googleapi.Expand(req.URL, map[string]string{ "modelDeploymentMonitoringJob": c.modelDeploymentMonitoringJob, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies" call. @@ -83817,7 +84099,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.cancel" call. @@ -83916,7 +84198,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.delete" call. @@ -84026,7 +84308,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.get" call. @@ -84155,7 +84437,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.list" call. @@ -84289,7 +84571,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.wait" call. @@ -84401,7 +84683,7 @@ func (c *ProjectsLocationsModelMonitorsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.create" call. @@ -84505,7 +84787,7 @@ func (c *ProjectsLocationsModelMonitorsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.delete" call. @@ -84614,7 +84896,7 @@ func (c *ProjectsLocationsModelMonitorsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.get" call. @@ -84751,7 +85033,7 @@ func (c *ProjectsLocationsModelMonitorsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.list" call. @@ -84882,7 +85164,7 @@ func (c *ProjectsLocationsModelMonitorsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.patch" call. @@ -84985,7 +85267,7 @@ func (c *ProjectsLocationsModelMonitorsSearchModelMonitoringAlertsCall) doReques googleapi.Expand(req.URL, map[string]string{ "modelMonitor": c.modelMonitor, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.searchModelMonitoringAlerts" call. @@ -85110,7 +85392,7 @@ func (c *ProjectsLocationsModelMonitorsSearchModelMonitoringStatsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "modelMonitor": c.modelMonitor, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.searchModelMonitoringStats" call. @@ -85244,7 +85526,7 @@ func (c *ProjectsLocationsModelMonitorsModelMonitoringJobsCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.modelMonitoringJobs.create" call. @@ -85342,7 +85624,7 @@ func (c *ProjectsLocationsModelMonitorsModelMonitoringJobsDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.modelMonitoringJobs.delete" call. @@ -85452,7 +85734,7 @@ func (c *ProjectsLocationsModelMonitorsModelMonitoringJobsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.modelMonitoringJobs.get" call. @@ -85594,7 +85876,7 @@ func (c *ProjectsLocationsModelMonitorsModelMonitoringJobsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.modelMonitoringJobs.list" call. @@ -85719,7 +86001,7 @@ func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.operations.cancel" call. @@ -85818,7 +86100,7 @@ func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.operations.delete" call. @@ -85928,7 +86210,7 @@ func (c *ProjectsLocationsModelMonitorsOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.operations.get" call. @@ -86057,7 +86339,7 @@ func (c *ProjectsLocationsModelMonitorsOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.operations.list" call. @@ -86191,7 +86473,7 @@ func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.modelMonitors.operations.wait" call. @@ -86298,7 +86580,7 @@ func (c *ProjectsLocationsModelsCopyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.copy" call. @@ -86396,7 +86678,7 @@ func (c *ProjectsLocationsModelsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.delete" call. @@ -86496,7 +86778,7 @@ func (c *ProjectsLocationsModelsDeleteVersionCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.deleteVersion" call. @@ -86602,7 +86884,7 @@ func (c *ProjectsLocationsModelsExportCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.export" call. @@ -86719,7 +87001,7 @@ func (c *ProjectsLocationsModelsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.get" call. @@ -86835,7 +87117,7 @@ func (c *ProjectsLocationsModelsGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.getIamPolicy" call. @@ -86981,7 +87263,7 @@ func (c *ProjectsLocationsModelsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.list" call. @@ -87152,7 +87434,7 @@ func (c *ProjectsLocationsModelsListVersionsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.listVersions" call. @@ -87277,7 +87559,7 @@ func (c *ProjectsLocationsModelsMergeVersionAliasesCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.mergeVersionAliases" call. @@ -87387,7 +87669,7 @@ func (c *ProjectsLocationsModelsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.patch" call. @@ -87493,7 +87775,7 @@ func (c *ProjectsLocationsModelsSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.setIamPolicy" call. @@ -87605,7 +87887,7 @@ func (c *ProjectsLocationsModelsTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.testIamPermissions" call. @@ -87709,7 +87991,7 @@ func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.updateExplanationDataset" call. @@ -87812,7 +88094,7 @@ func (c *ProjectsLocationsModelsUploadCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.upload" call. @@ -87922,7 +88204,7 @@ func (c *ProjectsLocationsModelsEvaluationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.get" call. @@ -88025,7 +88307,7 @@ func (c *ProjectsLocationsModelsEvaluationsImportCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.import" call. @@ -88162,7 +88444,7 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.list" call. @@ -88287,7 +88569,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.operations.cancel" call. @@ -88386,7 +88668,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.operations.delete" call. @@ -88496,7 +88778,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.operations.get" call. @@ -88625,7 +88907,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.operations.list" call. @@ -88759,7 +89041,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.operations.wait" call. @@ -88863,7 +89145,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.slices.batchImport" call. @@ -88973,7 +89255,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.slices.get" call. @@ -89114,7 +89396,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.evaluations.slices.list" call. @@ -89239,7 +89521,7 @@ func (c *ProjectsLocationsModelsOperationsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.operations.cancel" call. @@ -89338,7 +89620,7 @@ func (c *ProjectsLocationsModelsOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.operations.delete" call. @@ -89448,7 +89730,7 @@ func (c *ProjectsLocationsModelsOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.operations.get" call. @@ -89577,7 +89859,7 @@ func (c *ProjectsLocationsModelsOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.operations.list" call. @@ -89711,7 +89993,7 @@ func (c *ProjectsLocationsModelsOperationsWaitCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.models.operations.wait" call. @@ -89821,7 +90103,7 @@ func (c *ProjectsLocationsNasJobsCancelCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.cancel" call. @@ -89924,7 +90206,7 @@ func (c *ProjectsLocationsNasJobsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.create" call. @@ -90021,7 +90303,7 @@ func (c *ProjectsLocationsNasJobsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.delete" call. @@ -90130,7 +90412,7 @@ func (c *ProjectsLocationsNasJobsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.get" call. @@ -90277,7 +90559,7 @@ func (c *ProjectsLocationsNasJobsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.list" call. @@ -90408,7 +90690,7 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.nasTrialDetails.get" call. @@ -90532,7 +90814,7 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.nasJobs.nasTrialDetails.list" call. @@ -90663,7 +90945,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.create" call. @@ -90759,7 +91041,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.delete" call. @@ -90867,7 +91149,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.generateAccessToken" call. @@ -90994,7 +91276,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.get" call. @@ -91159,7 +91441,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.list" call. @@ -91284,7 +91566,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.reportEvent" call. @@ -91388,7 +91670,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsOperationsCancelCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.operations.cancel" call. @@ -91487,7 +91769,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsOperationsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.operations.delete" call. @@ -91597,7 +91879,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.operations.get" call. @@ -91726,7 +92008,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.operations.list" call. @@ -91860,7 +92142,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsOperationsWaitCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.operations.wait" call. @@ -91971,7 +92253,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.create" call. @@ -92070,7 +92352,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.delete" call. @@ -92180,7 +92462,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.get" call. @@ -92296,7 +92578,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy" call. @@ -92456,7 +92738,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.list" call. @@ -92588,7 +92870,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.patch" call. @@ -92694,7 +92976,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.setIamPolicy" call. @@ -92806,7 +93088,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions" call. @@ -92910,7 +93192,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesOperationsCancelCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.operations.cancel" call. @@ -93009,7 +93291,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesOperationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.operations.delete" call. @@ -93119,7 +93401,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.operations.get" call. @@ -93248,7 +93530,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.operations.list" call. @@ -93382,7 +93664,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesOperationsWaitCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.operations.wait" call. @@ -93487,7 +93769,7 @@ func (c *ProjectsLocationsNotebookRuntimesAssignCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.assign" call. @@ -93586,7 +93868,7 @@ func (c *ProjectsLocationsNotebookRuntimesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.delete" call. @@ -93694,7 +93976,7 @@ func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.generateAccessToken" call. @@ -93805,7 +94087,7 @@ func (c *ProjectsLocationsNotebookRuntimesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.get" call. @@ -93973,7 +94255,7 @@ func (c *ProjectsLocationsNotebookRuntimesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.list" call. @@ -94098,7 +94380,7 @@ func (c *ProjectsLocationsNotebookRuntimesReportEventCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.reportEvent" call. @@ -94205,7 +94487,7 @@ func (c *ProjectsLocationsNotebookRuntimesStartCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.start" call. @@ -94310,7 +94592,7 @@ func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.upgrade" call. @@ -94414,7 +94696,7 @@ func (c *ProjectsLocationsNotebookRuntimesOperationsCancelCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.operations.cancel" call. @@ -94513,7 +94795,7 @@ func (c *ProjectsLocationsNotebookRuntimesOperationsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.operations.delete" call. @@ -94623,7 +94905,7 @@ func (c *ProjectsLocationsNotebookRuntimesOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.operations.get" call. @@ -94752,7 +95034,7 @@ func (c *ProjectsLocationsNotebookRuntimesOperationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.operations.list" call. @@ -94886,7 +95168,7 @@ func (c *ProjectsLocationsNotebookRuntimesOperationsWaitCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.notebookRuntimes.operations.wait" call. @@ -94990,7 +95272,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.operations.cancel" call. @@ -95089,7 +95371,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.operations.delete" call. @@ -95199,7 +95481,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.operations.get" call. @@ -95328,7 +95610,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.operations.list" call. @@ -95462,7 +95744,7 @@ func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.operations.wait" call. @@ -95575,7 +95857,7 @@ func (c *ProjectsLocationsPersistentResourcesCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.create" call. @@ -95673,7 +95955,7 @@ func (c *ProjectsLocationsPersistentResourcesDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.delete" call. @@ -95783,7 +96065,7 @@ func (c *ProjectsLocationsPersistentResourcesGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.get" call. @@ -95907,7 +96189,7 @@ func (c *ProjectsLocationsPersistentResourcesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.list" call. @@ -96037,7 +96319,7 @@ func (c *ProjectsLocationsPersistentResourcesPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.patch" call. @@ -96141,7 +96423,7 @@ func (c *ProjectsLocationsPersistentResourcesRebootCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.reboot" call. @@ -96245,7 +96527,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.operations.cancel" call. @@ -96344,7 +96626,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.operations.delete" call. @@ -96454,7 +96736,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.operations.get" call. @@ -96583,7 +96865,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.operations.list" call. @@ -96717,7 +96999,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.persistentResources.operations.wait" call. @@ -96825,7 +97107,7 @@ func (c *ProjectsLocationsPipelineJobsBatchCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.batchCancel" call. @@ -96930,7 +97212,7 @@ func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.batchDelete" call. @@ -97040,7 +97322,7 @@ func (c *ProjectsLocationsPipelineJobsCancelCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.cancel" call. @@ -97153,7 +97435,7 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.create" call. @@ -97250,7 +97532,7 @@ func (c *ProjectsLocationsPipelineJobsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.delete" call. @@ -97359,7 +97641,7 @@ func (c *ProjectsLocationsPipelineJobsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.get" call. @@ -97531,7 +97813,7 @@ func (c *ProjectsLocationsPipelineJobsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.list" call. @@ -97656,7 +97938,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.operations.cancel" call. @@ -97755,7 +98037,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.operations.delete" call. @@ -97865,7 +98147,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.operations.get" call. @@ -97994,7 +98276,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.operations.list" call. @@ -98128,7 +98410,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.pipelineJobs.operations.wait" call. @@ -98231,7 +98513,7 @@ func (c *ProjectsLocationsPublishersModelsComputeTokensCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.computeTokens" call. @@ -98334,7 +98616,7 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.countTokens" call. @@ -98440,7 +98722,7 @@ func (c *ProjectsLocationsPublishersModelsGenerateContentCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.generateContent" call. @@ -98556,7 +98838,7 @@ func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.getIamPolicy" call. @@ -98659,7 +98941,7 @@ func (c *ProjectsLocationsPublishersModelsPredictCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.predict" call. @@ -98766,7 +99048,7 @@ func (c *ProjectsLocationsPublishersModelsRawPredictCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.rawPredict" call. @@ -98870,7 +99152,7 @@ func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.serverStreamingPredict" call. @@ -98977,7 +99259,7 @@ func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.streamGenerateContent" call. @@ -99081,7 +99363,7 @@ func (c *ProjectsLocationsPublishersModelsStreamRawPredictCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.publishers.models.streamRawPredict" call. @@ -99184,7 +99466,7 @@ func (c *ProjectsLocationsRagCorporaCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.create" call. @@ -99289,7 +99571,7 @@ func (c *ProjectsLocationsRagCorporaDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.delete" call. @@ -99398,7 +99680,7 @@ func (c *ProjectsLocationsRagCorporaGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.get" call. @@ -99522,7 +99804,7 @@ func (c *ProjectsLocationsRagCorporaListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.list" call. @@ -99645,7 +99927,7 @@ func (c *ProjectsLocationsRagCorporaPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.patch" call. @@ -99749,7 +100031,7 @@ func (c *ProjectsLocationsRagCorporaOperationsCancelCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.operations.cancel" call. @@ -99848,7 +100130,7 @@ func (c *ProjectsLocationsRagCorporaOperationsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.operations.delete" call. @@ -99958,7 +100240,7 @@ func (c *ProjectsLocationsRagCorporaOperationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.operations.get" call. @@ -100087,7 +100369,7 @@ func (c *ProjectsLocationsRagCorporaOperationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.operations.list" call. @@ -100221,7 +100503,7 @@ func (c *ProjectsLocationsRagCorporaOperationsWaitCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.operations.wait" call. @@ -100319,7 +100601,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.delete" call. @@ -100429,7 +100711,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.get" call. @@ -100533,7 +100815,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesImportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.import" call. @@ -100658,7 +100940,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.list" call. @@ -100783,7 +101065,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel" call. @@ -100882,7 +101164,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete" call. @@ -100992,7 +101274,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get" call. @@ -101121,7 +101403,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list" call. @@ -101255,7 +101537,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait" call. @@ -101358,7 +101640,7 @@ func (c *ProjectsLocationsReasoningEnginesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.create" call. @@ -101456,7 +101738,7 @@ func (c *ProjectsLocationsReasoningEnginesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.delete" call. @@ -101566,7 +101848,7 @@ func (c *ProjectsLocationsReasoningEnginesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.get" call. @@ -101696,7 +101978,7 @@ func (c *ProjectsLocationsReasoningEnginesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.list" call. @@ -101826,7 +102108,7 @@ func (c *ProjectsLocationsReasoningEnginesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.patch" call. @@ -101930,7 +102212,7 @@ func (c *ProjectsLocationsReasoningEnginesQueryCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.query" call. @@ -102034,7 +102316,7 @@ func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.operations.cancel" call. @@ -102133,7 +102415,7 @@ func (c *ProjectsLocationsReasoningEnginesOperationsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.operations.delete" call. @@ -102243,7 +102525,7 @@ func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.operations.get" call. @@ -102372,7 +102654,7 @@ func (c *ProjectsLocationsReasoningEnginesOperationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.operations.list" call. @@ -102506,7 +102788,7 @@ func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.reasoningEngines.operations.wait" call. @@ -102609,7 +102891,7 @@ func (c *ProjectsLocationsSchedulesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.create" call. @@ -102706,7 +102988,7 @@ func (c *ProjectsLocationsSchedulesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.delete" call. @@ -102815,7 +103097,7 @@ func (c *ProjectsLocationsSchedulesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.get" call. @@ -102976,7 +103258,7 @@ func (c *ProjectsLocationsSchedulesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.list" call. @@ -103110,7 +103392,7 @@ func (c *ProjectsLocationsSchedulesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.patch" call. @@ -103215,7 +103497,7 @@ func (c *ProjectsLocationsSchedulesPauseCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.pause" call. @@ -103323,7 +103605,7 @@ func (c *ProjectsLocationsSchedulesResumeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.resume" call. @@ -103427,7 +103709,7 @@ func (c *ProjectsLocationsSchedulesOperationsCancelCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.operations.cancel" call. @@ -103526,7 +103808,7 @@ func (c *ProjectsLocationsSchedulesOperationsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.operations.delete" call. @@ -103636,7 +103918,7 @@ func (c *ProjectsLocationsSchedulesOperationsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.operations.get" call. @@ -103765,7 +104047,7 @@ func (c *ProjectsLocationsSchedulesOperationsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.operations.list" call. @@ -103899,7 +104181,7 @@ func (c *ProjectsLocationsSchedulesOperationsWaitCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.schedules.operations.wait" call. @@ -103998,7 +104280,7 @@ func (c *ProjectsLocationsSolversOperationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.solvers.operations.delete" call. @@ -104108,7 +104390,7 @@ func (c *ProjectsLocationsSolversOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.solvers.operations.get" call. @@ -104237,7 +104519,7 @@ func (c *ProjectsLocationsSolversOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.solvers.operations.list" call. @@ -104361,7 +104643,7 @@ func (c *ProjectsLocationsSpecialistPoolsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.create" call. @@ -104466,7 +104748,7 @@ func (c *ProjectsLocationsSpecialistPoolsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.delete" call. @@ -104576,7 +104858,7 @@ func (c *ProjectsLocationsSpecialistPoolsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.get" call. @@ -104708,7 +104990,7 @@ func (c *ProjectsLocationsSpecialistPoolsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.list" call. @@ -104838,7 +105120,7 @@ func (c *ProjectsLocationsSpecialistPoolsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.patch" call. @@ -104942,7 +105224,7 @@ func (c *ProjectsLocationsSpecialistPoolsOperationsCancelCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.operations.cancel" call. @@ -105041,7 +105323,7 @@ func (c *ProjectsLocationsSpecialistPoolsOperationsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.operations.delete" call. @@ -105151,7 +105433,7 @@ func (c *ProjectsLocationsSpecialistPoolsOperationsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.operations.get" call. @@ -105280,7 +105562,7 @@ func (c *ProjectsLocationsSpecialistPoolsOperationsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.operations.list" call. @@ -105414,7 +105696,7 @@ func (c *ProjectsLocationsSpecialistPoolsOperationsWaitCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.specialistPools.operations.wait" call. @@ -105518,7 +105800,7 @@ func (c *ProjectsLocationsStudiesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.create" call. @@ -105615,7 +105897,7 @@ func (c *ProjectsLocationsStudiesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.delete" call. @@ -105724,7 +106006,7 @@ func (c *ProjectsLocationsStudiesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.get" call. @@ -105848,7 +106130,7 @@ func (c *ProjectsLocationsStudiesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.list" call. @@ -105973,7 +106255,7 @@ func (c *ProjectsLocationsStudiesLookupCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.lookup" call. @@ -106077,7 +106359,7 @@ func (c *ProjectsLocationsStudiesOperationsCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.operations.cancel" call. @@ -106176,7 +106458,7 @@ func (c *ProjectsLocationsStudiesOperationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.operations.delete" call. @@ -106286,7 +106568,7 @@ func (c *ProjectsLocationsStudiesOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.operations.get" call. @@ -106415,7 +106697,7 @@ func (c *ProjectsLocationsStudiesOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.operations.list" call. @@ -106549,7 +106831,7 @@ func (c *ProjectsLocationsStudiesOperationsWaitCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.operations.wait" call. @@ -106653,7 +106935,7 @@ func (c *ProjectsLocationsStudiesTrialsAddTrialMeasurementCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "trialName": c.trialName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.addTrialMeasurement" call. @@ -106758,7 +107040,7 @@ func (c *ProjectsLocationsStudiesTrialsCheckTrialEarlyStoppingStateCall) doReque googleapi.Expand(req.URL, map[string]string{ "trialName": c.trialName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.checkTrialEarlyStoppingState" call. @@ -106861,7 +107143,7 @@ func (c *ProjectsLocationsStudiesTrialsCompleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.complete" call. @@ -106964,7 +107246,7 @@ func (c *ProjectsLocationsStudiesTrialsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.create" call. @@ -107061,7 +107343,7 @@ func (c *ProjectsLocationsStudiesTrialsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.delete" call. @@ -107170,7 +107452,7 @@ func (c *ProjectsLocationsStudiesTrialsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.get" call. @@ -107294,7 +107576,7 @@ func (c *ProjectsLocationsStudiesTrialsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.list" call. @@ -107420,7 +107702,7 @@ func (c *ProjectsLocationsStudiesTrialsListOptimalTrialsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.listOptimalTrials" call. @@ -107523,7 +107805,7 @@ func (c *ProjectsLocationsStudiesTrialsStopCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.stop" call. @@ -107629,7 +107911,7 @@ func (c *ProjectsLocationsStudiesTrialsSuggestCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.suggest" call. @@ -107733,7 +108015,7 @@ func (c *ProjectsLocationsStudiesTrialsOperationsCancelCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.operations.cancel" call. @@ -107832,7 +108114,7 @@ func (c *ProjectsLocationsStudiesTrialsOperationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.operations.delete" call. @@ -107942,7 +108224,7 @@ func (c *ProjectsLocationsStudiesTrialsOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.operations.get" call. @@ -108071,7 +108353,7 @@ func (c *ProjectsLocationsStudiesTrialsOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.operations.list" call. @@ -108205,7 +108487,7 @@ func (c *ProjectsLocationsStudiesTrialsOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.studies.trials.operations.wait" call. @@ -108330,7 +108612,7 @@ func (c *ProjectsLocationsTensorboardsBatchReadCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "tensorboard": c.tensorboard, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.batchRead" call. @@ -108433,7 +108715,7 @@ func (c *ProjectsLocationsTensorboardsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.create" call. @@ -108530,7 +108812,7 @@ func (c *ProjectsLocationsTensorboardsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.delete" call. @@ -108639,7 +108921,7 @@ func (c *ProjectsLocationsTensorboardsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.get" call. @@ -108788,7 +109070,7 @@ func (c *ProjectsLocationsTensorboardsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.list" call. @@ -108923,7 +109205,7 @@ func (c *ProjectsLocationsTensorboardsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.patch" call. @@ -109032,7 +109314,7 @@ func (c *ProjectsLocationsTensorboardsReadSizeCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "tensorboard": c.tensorboard, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.readSize" call. @@ -109142,7 +109424,7 @@ func (c *ProjectsLocationsTensorboardsReadUsageCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "tensorboard": c.tensorboard, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.readUsage" call. @@ -109250,7 +109532,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.batchCreate" call. @@ -109364,7 +109646,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.create" call. @@ -109462,7 +109744,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.delete" call. @@ -109572,7 +109854,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.get" call. @@ -109722,7 +110004,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.list" call. @@ -109858,7 +110140,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.patch" call. @@ -109965,7 +110247,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsWriteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "tensorboardExperiment": c.tensorboardExperiment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.write" call. @@ -110069,7 +110351,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsOperationsCancelCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.operations.cancel" call. @@ -110168,7 +110450,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsOperationsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.operations.delete" call. @@ -110278,7 +110560,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsOperationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.operations.get" call. @@ -110407,7 +110689,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsOperationsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.operations.list" call. @@ -110541,7 +110823,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsOperationsWaitCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.operations.wait" call. @@ -110647,7 +110929,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsBatchCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.batchCreate" call. @@ -110761,7 +111043,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.create" call. @@ -110859,7 +111141,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.delete" call. @@ -110969,7 +111251,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.get" call. @@ -111120,7 +111402,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.list" call. @@ -111256,7 +111538,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.patch" call. @@ -111363,7 +111645,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsWriteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "tensorboardRun": c.tensorboardRun, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.write" call. @@ -111467,7 +111749,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsCancelCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.operations.cancel" call. @@ -111566,7 +111848,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.operations.delete" call. @@ -111676,7 +111958,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.operations.get" call. @@ -111805,7 +112087,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.operations.list" call. @@ -111939,7 +112221,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsWaitCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.operations.wait" call. @@ -112054,7 +112336,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.create" call. @@ -112152,7 +112434,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.delete" call. @@ -112258,7 +112540,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesExportTensorboard googleapi.Expand(req.URL, map[string]string{ "tensorboardTimeSeries": c.tensorboardTimeSeries, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.exportTensorboardTimeSeries" call. @@ -112389,7 +112671,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.get" call. @@ -112540,7 +112822,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.list" call. @@ -112674,7 +112956,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.patch" call. @@ -112803,7 +113085,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesReadCall) doReque googleapi.Expand(req.URL, map[string]string{ "tensorboardTimeSeries": c.tensorboardTimeSeries, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.read" call. @@ -112922,7 +113204,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesReadBlobDataCall) googleapi.Expand(req.URL, map[string]string{ "timeSeries": c.timeSeries, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.readBlobData" call. @@ -113026,7 +113308,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperationsCancelC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.operations.cancel" call. @@ -113125,7 +113407,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperationsDeleteC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.operations.delete" call. @@ -113235,7 +113517,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperationsGetCall googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.operations.get" call. @@ -113364,7 +113646,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperationsListCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.operations.list" call. @@ -113498,7 +113780,7 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperationsWaitCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.operations.wait" call. @@ -113602,7 +113884,7 @@ func (c *ProjectsLocationsTensorboardsOperationsCancelCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.operations.cancel" call. @@ -113701,7 +113983,7 @@ func (c *ProjectsLocationsTensorboardsOperationsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.operations.delete" call. @@ -113811,7 +114093,7 @@ func (c *ProjectsLocationsTensorboardsOperationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.operations.get" call. @@ -113940,7 +114222,7 @@ func (c *ProjectsLocationsTensorboardsOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.operations.list" call. @@ -114074,7 +114356,7 @@ func (c *ProjectsLocationsTensorboardsOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tensorboards.operations.wait" call. @@ -114186,7 +114468,7 @@ func (c *ProjectsLocationsTrainingPipelinesCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.cancel" call. @@ -114290,7 +114572,7 @@ func (c *ProjectsLocationsTrainingPipelinesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.create" call. @@ -114388,7 +114670,7 @@ func (c *ProjectsLocationsTrainingPipelinesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.delete" call. @@ -114498,7 +114780,7 @@ func (c *ProjectsLocationsTrainingPipelinesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.get" call. @@ -114646,7 +114928,7 @@ func (c *ProjectsLocationsTrainingPipelinesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.list" call. @@ -114771,7 +115053,7 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsCancelCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.operations.cancel" call. @@ -114870,7 +115152,7 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.operations.delete" call. @@ -114980,7 +115262,7 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.operations.get" call. @@ -115109,7 +115391,7 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.operations.list" call. @@ -115243,7 +115525,7 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsWaitCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.trainingPipelines.operations.wait" call. @@ -115353,7 +115635,7 @@ func (c *ProjectsLocationsTuningJobsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.cancel" call. @@ -115457,7 +115739,7 @@ func (c *ProjectsLocationsTuningJobsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.create" call. @@ -115566,7 +115848,7 @@ func (c *ProjectsLocationsTuningJobsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.get" call. @@ -115696,7 +115978,7 @@ func (c *ProjectsLocationsTuningJobsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.projects.locations.tuningJobs.list" call. @@ -115820,7 +116102,7 @@ func (c *PublishersModelsComputeTokensCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.computeTokens" call. @@ -115923,7 +116205,7 @@ func (c *PublishersModelsCountTokensCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.countTokens" call. @@ -116029,7 +116311,7 @@ func (c *PublishersModelsGenerateContentCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.generateContent" call. @@ -116182,7 +116464,7 @@ func (c *PublishersModelsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.get" call. @@ -116350,7 +116632,7 @@ func (c *PublishersModelsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.list" call. @@ -116478,7 +116760,7 @@ func (c *PublishersModelsStreamGenerateContentCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "aiplatform.publishers.models.streamGenerateContent" call. diff --git a/airquality/v1/airquality-gen.go b/airquality/v1/airquality-gen.go index dfbbf06f406..85702229e18 100644 --- a/airquality/v1/airquality-gen.go +++ b/airquality/v1/airquality-gen.go @@ -1198,7 +1198,7 @@ func (c *CurrentConditionsLookupCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "airquality.currentConditions.lookup" call. @@ -1294,7 +1294,7 @@ func (c *ForecastLookupCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "airquality.forecast.lookup" call. @@ -1411,7 +1411,7 @@ func (c *HistoryLookupCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "airquality.history.lookup" call. @@ -1561,7 +1561,7 @@ func (c *MapTypesHeatmapTilesLookupHeatmapTileCall) doRequest(alt string) (*http "x": strconv.FormatInt(c.x, 10), "y": strconv.FormatInt(c.y, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "airquality.mapTypes.heatmapTiles.lookupHeatmapTile" call. diff --git a/alertcenter/v1beta1/alertcenter-gen.go b/alertcenter/v1beta1/alertcenter-gen.go index 5509774984e..011019769d6 100644 --- a/alertcenter/v1beta1/alertcenter-gen.go +++ b/alertcenter/v1beta1/alertcenter-gen.go @@ -2482,7 +2482,7 @@ func (c *AlertsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.alerts.batchDelete" call. @@ -2577,7 +2577,7 @@ func (c *AlertsBatchUndeleteCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.alerts.batchUndelete" call. @@ -2687,7 +2687,7 @@ func (c *AlertsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "alertId": c.alertId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.alerts.delete" call. @@ -2805,7 +2805,7 @@ func (c *AlertsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "alertId": c.alertId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.alerts.get" call. @@ -2924,7 +2924,7 @@ func (c *AlertsGetMetadataCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "alertId": c.alertId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.alerts.getMetadata" call. @@ -3071,7 +3071,7 @@ func (c *AlertsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.alerts.list" call. @@ -3198,7 +3198,7 @@ func (c *AlertsUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "alertId": c.alertId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.alerts.undelete" call. @@ -3312,7 +3312,7 @@ func (c *AlertsFeedbackCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "alertId": c.alertId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.alerts.feedback.create" call. @@ -3441,7 +3441,7 @@ func (c *AlertsFeedbackListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "alertId": c.alertId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.alerts.feedback.list" call. @@ -3553,7 +3553,7 @@ func (c *V1beta1GetSettingsCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.getSettings" call. @@ -3658,7 +3658,7 @@ func (c *V1beta1UpdateSettingsCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alertcenter.updateSettings" call. diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index e93dcea8c95..915a41b09d5 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -4013,7 +4013,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.get" call. @@ -4145,7 +4145,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.list" call. @@ -4298,7 +4298,7 @@ func (c *ProjectsLocationsBackupsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.create" call. @@ -4425,7 +4425,7 @@ func (c *ProjectsLocationsBackupsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.delete" call. @@ -4532,7 +4532,7 @@ func (c *ProjectsLocationsBackupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.get" call. @@ -4667,7 +4667,7 @@ func (c *ProjectsLocationsBackupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.list" call. @@ -4838,7 +4838,7 @@ func (c *ProjectsLocationsBackupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.patch" call. @@ -4971,7 +4971,7 @@ func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.create" call. @@ -5105,7 +5105,7 @@ func (c *ProjectsLocationsClustersCreatesecondaryCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.createsecondary" call. @@ -5240,7 +5240,7 @@ func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.delete" call. @@ -5372,7 +5372,7 @@ func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.get" call. @@ -5510,7 +5510,7 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.list" call. @@ -5680,7 +5680,7 @@ func (c *ProjectsLocationsClustersPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.patch" call. @@ -5784,7 +5784,7 @@ func (c *ProjectsLocationsClustersPromoteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.promote" call. @@ -5888,7 +5888,7 @@ func (c *ProjectsLocationsClustersRestoreCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.restore" call. @@ -5992,7 +5992,7 @@ func (c *ProjectsLocationsClustersSwitchoverCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.switchover" call. @@ -6093,7 +6093,7 @@ func (c *ProjectsLocationsClustersUpgradeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.upgrade" call. @@ -6226,7 +6226,7 @@ func (c *ProjectsLocationsClustersInstancesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.create" call. @@ -6360,7 +6360,7 @@ func (c *ProjectsLocationsClustersInstancesCreatesecondaryCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.createsecondary" call. @@ -6488,7 +6488,7 @@ func (c *ProjectsLocationsClustersInstancesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.delete" call. @@ -6591,7 +6591,7 @@ func (c *ProjectsLocationsClustersInstancesFailoverCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.failover" call. @@ -6721,7 +6721,7 @@ func (c *ProjectsLocationsClustersInstancesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.get" call. @@ -6846,7 +6846,7 @@ func (c *ProjectsLocationsClustersInstancesGetConnectionInfoCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.getConnectionInfo" call. @@ -6948,7 +6948,7 @@ func (c *ProjectsLocationsClustersInstancesInjectFaultCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.injectFault" call. @@ -7087,7 +7087,7 @@ func (c *ProjectsLocationsClustersInstancesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.list" call. @@ -7260,7 +7260,7 @@ func (c *ProjectsLocationsClustersInstancesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.patch" call. @@ -7362,7 +7362,7 @@ func (c *ProjectsLocationsClustersInstancesRestartCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.restart" call. @@ -7493,7 +7493,7 @@ func (c *ProjectsLocationsClustersUsersCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.create" call. @@ -7612,7 +7612,7 @@ func (c *ProjectsLocationsClustersUsersDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.delete" call. @@ -7720,7 +7720,7 @@ func (c *ProjectsLocationsClustersUsersGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.get" call. @@ -7855,7 +7855,7 @@ func (c *ProjectsLocationsClustersUsersListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.list" call. @@ -8019,7 +8019,7 @@ func (c *ProjectsLocationsClustersUsersPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.patch" call. @@ -8128,7 +8128,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.cancel" call. @@ -8226,7 +8226,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.delete" call. @@ -8335,7 +8335,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.get" call. @@ -8463,7 +8463,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.list" call. @@ -8611,7 +8611,7 @@ func (c *ProjectsLocationsSupportedDatabaseFlagsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.supportedDatabaseFlags.list" call. diff --git a/alloydb/v1alpha/alloydb-gen.go b/alloydb/v1alpha/alloydb-gen.go index 99589e3a9a9..fd32f36530b 100644 --- a/alloydb/v1alpha/alloydb-gen.go +++ b/alloydb/v1alpha/alloydb-gen.go @@ -4203,7 +4203,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.get" call. @@ -4335,7 +4335,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.list" call. @@ -4488,7 +4488,7 @@ func (c *ProjectsLocationsBackupsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.create" call. @@ -4615,7 +4615,7 @@ func (c *ProjectsLocationsBackupsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.delete" call. @@ -4722,7 +4722,7 @@ func (c *ProjectsLocationsBackupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.get" call. @@ -4857,7 +4857,7 @@ func (c *ProjectsLocationsBackupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.list" call. @@ -5028,7 +5028,7 @@ func (c *ProjectsLocationsBackupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.patch" call. @@ -5161,7 +5161,7 @@ func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.create" call. @@ -5295,7 +5295,7 @@ func (c *ProjectsLocationsClustersCreatesecondaryCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.createsecondary" call. @@ -5430,7 +5430,7 @@ func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.delete" call. @@ -5562,7 +5562,7 @@ func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.get" call. @@ -5700,7 +5700,7 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.list" call. @@ -5870,7 +5870,7 @@ func (c *ProjectsLocationsClustersPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.patch" call. @@ -5974,7 +5974,7 @@ func (c *ProjectsLocationsClustersPromoteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.promote" call. @@ -6078,7 +6078,7 @@ func (c *ProjectsLocationsClustersRestoreCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.restore" call. @@ -6182,7 +6182,7 @@ func (c *ProjectsLocationsClustersSwitchoverCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.switchover" call. @@ -6283,7 +6283,7 @@ func (c *ProjectsLocationsClustersUpgradeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.upgrade" call. @@ -6416,7 +6416,7 @@ func (c *ProjectsLocationsClustersInstancesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.create" call. @@ -6550,7 +6550,7 @@ func (c *ProjectsLocationsClustersInstancesCreatesecondaryCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.createsecondary" call. @@ -6678,7 +6678,7 @@ func (c *ProjectsLocationsClustersInstancesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.delete" call. @@ -6781,7 +6781,7 @@ func (c *ProjectsLocationsClustersInstancesFailoverCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.failover" call. @@ -6911,7 +6911,7 @@ func (c *ProjectsLocationsClustersInstancesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.get" call. @@ -7036,7 +7036,7 @@ func (c *ProjectsLocationsClustersInstancesGetConnectionInfoCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.getConnectionInfo" call. @@ -7138,7 +7138,7 @@ func (c *ProjectsLocationsClustersInstancesInjectFaultCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.injectFault" call. @@ -7277,7 +7277,7 @@ func (c *ProjectsLocationsClustersInstancesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.list" call. @@ -7450,7 +7450,7 @@ func (c *ProjectsLocationsClustersInstancesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.patch" call. @@ -7552,7 +7552,7 @@ func (c *ProjectsLocationsClustersInstancesRestartCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.restart" call. @@ -7683,7 +7683,7 @@ func (c *ProjectsLocationsClustersUsersCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.create" call. @@ -7802,7 +7802,7 @@ func (c *ProjectsLocationsClustersUsersDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.delete" call. @@ -7910,7 +7910,7 @@ func (c *ProjectsLocationsClustersUsersGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.get" call. @@ -8045,7 +8045,7 @@ func (c *ProjectsLocationsClustersUsersListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.list" call. @@ -8209,7 +8209,7 @@ func (c *ProjectsLocationsClustersUsersPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.patch" call. @@ -8318,7 +8318,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.cancel" call. @@ -8416,7 +8416,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.delete" call. @@ -8525,7 +8525,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.get" call. @@ -8653,7 +8653,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.list" call. @@ -8801,7 +8801,7 @@ func (c *ProjectsLocationsSupportedDatabaseFlagsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.supportedDatabaseFlags.list" call. diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go index 95de68ac8e3..e626140e92c 100644 --- a/alloydb/v1beta/alloydb-gen.go +++ b/alloydb/v1beta/alloydb-gen.go @@ -4193,7 +4193,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.get" call. @@ -4325,7 +4325,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.list" call. @@ -4478,7 +4478,7 @@ func (c *ProjectsLocationsBackupsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.create" call. @@ -4605,7 +4605,7 @@ func (c *ProjectsLocationsBackupsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.delete" call. @@ -4712,7 +4712,7 @@ func (c *ProjectsLocationsBackupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.get" call. @@ -4847,7 +4847,7 @@ func (c *ProjectsLocationsBackupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.list" call. @@ -5018,7 +5018,7 @@ func (c *ProjectsLocationsBackupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.backups.patch" call. @@ -5151,7 +5151,7 @@ func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.create" call. @@ -5285,7 +5285,7 @@ func (c *ProjectsLocationsClustersCreatesecondaryCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.createsecondary" call. @@ -5420,7 +5420,7 @@ func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.delete" call. @@ -5552,7 +5552,7 @@ func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.get" call. @@ -5690,7 +5690,7 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.list" call. @@ -5860,7 +5860,7 @@ func (c *ProjectsLocationsClustersPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.patch" call. @@ -5964,7 +5964,7 @@ func (c *ProjectsLocationsClustersPromoteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.promote" call. @@ -6068,7 +6068,7 @@ func (c *ProjectsLocationsClustersRestoreCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.restore" call. @@ -6172,7 +6172,7 @@ func (c *ProjectsLocationsClustersSwitchoverCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.switchover" call. @@ -6273,7 +6273,7 @@ func (c *ProjectsLocationsClustersUpgradeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.upgrade" call. @@ -6406,7 +6406,7 @@ func (c *ProjectsLocationsClustersInstancesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.create" call. @@ -6540,7 +6540,7 @@ func (c *ProjectsLocationsClustersInstancesCreatesecondaryCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.createsecondary" call. @@ -6668,7 +6668,7 @@ func (c *ProjectsLocationsClustersInstancesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.delete" call. @@ -6771,7 +6771,7 @@ func (c *ProjectsLocationsClustersInstancesFailoverCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.failover" call. @@ -6901,7 +6901,7 @@ func (c *ProjectsLocationsClustersInstancesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.get" call. @@ -7026,7 +7026,7 @@ func (c *ProjectsLocationsClustersInstancesGetConnectionInfoCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.getConnectionInfo" call. @@ -7128,7 +7128,7 @@ func (c *ProjectsLocationsClustersInstancesInjectFaultCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.injectFault" call. @@ -7267,7 +7267,7 @@ func (c *ProjectsLocationsClustersInstancesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.list" call. @@ -7440,7 +7440,7 @@ func (c *ProjectsLocationsClustersInstancesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.patch" call. @@ -7542,7 +7542,7 @@ func (c *ProjectsLocationsClustersInstancesRestartCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.instances.restart" call. @@ -7673,7 +7673,7 @@ func (c *ProjectsLocationsClustersUsersCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.create" call. @@ -7792,7 +7792,7 @@ func (c *ProjectsLocationsClustersUsersDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.delete" call. @@ -7900,7 +7900,7 @@ func (c *ProjectsLocationsClustersUsersGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.get" call. @@ -8035,7 +8035,7 @@ func (c *ProjectsLocationsClustersUsersListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.list" call. @@ -8199,7 +8199,7 @@ func (c *ProjectsLocationsClustersUsersPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.clusters.users.patch" call. @@ -8302,7 +8302,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.cancel" call. @@ -8400,7 +8400,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.delete" call. @@ -8509,7 +8509,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.get" call. @@ -8637,7 +8637,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.operations.list" call. @@ -8785,7 +8785,7 @@ func (c *ProjectsLocationsSupportedDatabaseFlagsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "alloydb.projects.locations.supportedDatabaseFlags.list" call. diff --git a/analytics/v2.4/analytics-gen.go b/analytics/v2.4/analytics-gen.go index 64a190b9dac..ebfe835cb31 100644 --- a/analytics/v2.4/analytics-gen.go +++ b/analytics/v2.4/analytics-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/analytics/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // analyticsService, err := analytics.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // analyticsService, err := analytics.NewService(ctx, option.WithScopes(analytics.AnalyticsReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // analyticsService, err := analytics.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // analyticsService, err := analytics.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package analytics // import "google.golang.org/api/analytics/v2.4" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "analytics:v2.4" const apiName = "analytics" const apiVersion = "v2.4" const basePath = "https://www.googleapis.com/analytics/v2.4/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/analytics/v2.4/" // OAuth2 scopes used by this API. const ( @@ -89,12 +108,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -219,8 +241,6 @@ type ManagementWebpropertiesService struct { s *Service } -// method id "analytics.data.get": - type DataGetCall struct { s *Service urlParams_ gensupport.URLParams @@ -230,6 +250,16 @@ type DataGetCall struct { } // Get: Returns Analytics report data for a view (profile). +// +// - endDate: End date for fetching report data. All requests should specify an +// end date formatted as YYYY-MM-DD. +// - ids: Unique table ID for retrieving report data. Table ID is of the form +// ga:XXXX, where XXXX is the Analytics view (profile) ID. +// - metrics: A comma-separated list of Analytics metrics. E.g., +// 'ga:sessions,ga:pageviews'. At least one metric must be specified to +// retrieve a valid Analytics report. +// - startDate: Start date for fetching report data. All requests should +// specify a start date formatted as YYYY-MM-DD. func (r *DataService) Get(ids string, startDate string, endDate string, metrics string) *DataGetCall { c := &DataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("ids", ids) @@ -239,79 +269,73 @@ func (r *DataService) Get(ids string, startDate string, endDate string, metrics return c } -// Dimensions sets the optional parameter "dimensions": A -// comma-separated list of Analytics dimensions. E.g., -// 'ga:browser,ga:city'. +// Dimensions sets the optional parameter "dimensions": A comma-separated list +// of Analytics dimensions. E.g., 'ga:browser,ga:city'. func (c *DataGetCall) Dimensions(dimensions string) *DataGetCall { c.urlParams_.Set("dimensions", dimensions) return c } -// Filters sets the optional parameter "filters": A comma-separated list -// of dimension or metric filters to be applied to the report data. +// Filters sets the optional parameter "filters": A comma-separated list of +// dimension or metric filters to be applied to the report data. func (c *DataGetCall) Filters(filters string) *DataGetCall { c.urlParams_.Set("filters", filters) return c } -// MaxResults sets the optional parameter "max-results": The maximum -// number of entries to include in this feed. +// MaxResults sets the optional parameter "max-results": The maximum number of +// entries to include in this feed. func (c *DataGetCall) MaxResults(maxResults int64) *DataGetCall { c.urlParams_.Set("max-results", fmt.Sprint(maxResults)) return c } -// Segment sets the optional parameter "segment": An Analytics advanced -// segment to be applied to the report data. +// Segment sets the optional parameter "segment": An Analytics advanced segment +// to be applied to the report data. func (c *DataGetCall) Segment(segment string) *DataGetCall { c.urlParams_.Set("segment", segment) return c } // Sort sets the optional parameter "sort": A comma-separated list of -// dimensions or metrics that determine the sort order for the report -// data. +// dimensions or metrics that determine the sort order for the report data. func (c *DataGetCall) Sort(sort string) *DataGetCall { c.urlParams_.Set("sort", sort) return c } -// StartIndex sets the optional parameter "start-index": An index of the -// first entity to retrieve. Use this parameter as a pagination -// mechanism along with the max-results parameter. +// StartIndex sets the optional parameter "start-index": An index of the first +// entity to retrieve. Use this parameter as a pagination mechanism along with +// the max-results parameter. func (c *DataGetCall) StartIndex(startIndex int64) *DataGetCall { c.urlParams_.Set("start-index", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DataGetCall) Fields(s ...googleapi.Field) *DataGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DataGetCall) IfNoneMatch(entityTag string) *DataGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DataGetCall) Context(ctx context.Context) *DataGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DataGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -320,12 +344,7 @@ func (c *DataGetCall) Header() http.Header { } func (c *DataGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200206") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -339,7 +358,7 @@ func (c *DataGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.data.get" call. @@ -351,95 +370,10 @@ func (c *DataGetCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Returns Analytics report data for a view (profile).", - // "httpMethod": "GET", - // "id": "analytics.data.get", - // "parameterOrder": [ - // "ids", - // "start-date", - // "end-date", - // "metrics" - // ], - // "parameters": { - // "dimensions": { - // "description": "A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.", - // "location": "query", - // "pattern": "(ga:.+)?", - // "type": "string" - // }, - // "end-date": { - // "description": "End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.", - // "location": "query", - // "pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}", - // "required": true, - // "type": "string" - // }, - // "filters": { - // "description": "A comma-separated list of dimension or metric filters to be applied to the report data.", - // "location": "query", - // "pattern": "ga:.+", - // "type": "string" - // }, - // "ids": { - // "description": "Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.", - // "location": "query", - // "pattern": "ga:[0-9]+", - // "required": true, - // "type": "string" - // }, - // "max-results": { - // "description": "The maximum number of entries to include in this feed.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "metrics": { - // "description": "A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.", - // "location": "query", - // "pattern": "ga:.+", - // "required": true, - // "type": "string" - // }, - // "segment": { - // "description": "An Analytics advanced segment to be applied to the report data.", - // "location": "query", - // "type": "string" - // }, - // "sort": { - // "description": "A comma-separated list of dimensions or metrics that determine the sort order for the report data.", - // "location": "query", - // "pattern": "(-)?ga:.+", - // "type": "string" - // }, - // "start-date": { - // "description": "Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.", - // "location": "query", - // "pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}", - // "required": true, - // "type": "string" - // }, - // "start-index": { - // "description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.", - // "format": "int32", - // "location": "query", - // "minimum": "1", - // "type": "integer" - // } - // }, - // "path": "data", - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - -// method id "analytics.management.accounts.list": +} type ManagementAccountsListCall struct { s *Service @@ -455,49 +389,45 @@ func (r *ManagementAccountsService) List() *ManagementAccountsListCall { return c } -// MaxResults sets the optional parameter "max-results": The maximum -// number of accounts to include in this response. +// MaxResults sets the optional parameter "max-results": The maximum number of +// accounts to include in this response. func (c *ManagementAccountsListCall) MaxResults(maxResults int64) *ManagementAccountsListCall { c.urlParams_.Set("max-results", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "start-index": An index of the -// first account to retrieve. Use this parameter as a pagination -// mechanism along with the max-results parameter. +// StartIndex sets the optional parameter "start-index": An index of the first +// account to retrieve. Use this parameter as a pagination mechanism along with +// the max-results parameter. func (c *ManagementAccountsListCall) StartIndex(startIndex int64) *ManagementAccountsListCall { c.urlParams_.Set("start-index", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagementAccountsListCall) Fields(s ...googleapi.Field) *ManagementAccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagementAccountsListCall) IfNoneMatch(entityTag string) *ManagementAccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagementAccountsListCall) Context(ctx context.Context) *ManagementAccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagementAccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -506,12 +436,7 @@ func (c *ManagementAccountsListCall) Header() http.Header { } func (c *ManagementAccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200206") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -525,7 +450,7 @@ func (c *ManagementAccountsListCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.accounts.list" call. @@ -537,38 +462,10 @@ func (c *ManagementAccountsListCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Lists all accounts to which the user has access.", - // "httpMethod": "GET", - // "id": "analytics.management.accounts.list", - // "parameters": { - // "max-results": { - // "description": "The maximum number of accounts to include in this response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "start-index": { - // "description": "An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.", - // "format": "int32", - // "location": "query", - // "minimum": "1", - // "type": "integer" - // } - // }, - // "path": "management/accounts", - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - -// method id "analytics.management.goals.list": +} type ManagementGoalsListCall struct { s *Service @@ -582,6 +479,16 @@ type ManagementGoalsListCall struct { } // List: Lists goals to which the user has access. +// +// - accountId: Account ID to retrieve goals for. Can either be a specific +// account ID or '~all', which refers to all the accounts that user has +// access to. +// - profileId: View (Profile) ID to retrieve goals for. Can either be a +// specific view (profile) ID or '~all', which refers to all the views +// (profiles) that user has access to. +// - webPropertyId: Web property ID to retrieve goals for. Can either be a +// specific web property ID or '~all', which refers to all the web properties +// that user has access to. func (r *ManagementGoalsService) List(accountId string, webPropertyId string, profileId string) *ManagementGoalsListCall { c := &ManagementGoalsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -590,49 +497,45 @@ func (r *ManagementGoalsService) List(accountId string, webPropertyId string, pr return c } -// MaxResults sets the optional parameter "max-results": The maximum -// number of goals to include in this response. +// MaxResults sets the optional parameter "max-results": The maximum number of +// goals to include in this response. func (c *ManagementGoalsListCall) MaxResults(maxResults int64) *ManagementGoalsListCall { c.urlParams_.Set("max-results", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "start-index": An index of the -// first goal to retrieve. Use this parameter as a pagination mechanism -// along with the max-results parameter. +// StartIndex sets the optional parameter "start-index": An index of the first +// goal to retrieve. Use this parameter as a pagination mechanism along with +// the max-results parameter. func (c *ManagementGoalsListCall) StartIndex(startIndex int64) *ManagementGoalsListCall { c.urlParams_.Set("start-index", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagementGoalsListCall) Fields(s ...googleapi.Field) *ManagementGoalsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagementGoalsListCall) IfNoneMatch(entityTag string) *ManagementGoalsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagementGoalsListCall) Context(ctx context.Context) *ManagementGoalsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagementGoalsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -641,12 +544,7 @@ func (c *ManagementGoalsListCall) Header() http.Header { } func (c *ManagementGoalsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200206") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -665,7 +563,7 @@ func (c *ManagementGoalsListCall) doRequest(alt string) (*http.Response, error) "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.goals.list" call. @@ -677,61 +575,10 @@ func (c *ManagementGoalsListCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Lists goals to which the user has access.", - // "httpMethod": "GET", - // "id": "analytics.management.goals.list", - // "parameterOrder": [ - // "accountId", - // "webPropertyId", - // "profileId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "max-results": { - // "description": "The maximum number of goals to include in this response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "profileId": { - // "description": "View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "start-index": { - // "description": "An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.", - // "format": "int32", - // "location": "query", - // "minimum": "1", - // "type": "integer" - // }, - // "webPropertyId": { - // "description": "Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - -// method id "analytics.management.profiles.list": +} type ManagementProfilesListCall struct { s *Service @@ -744,6 +591,13 @@ type ManagementProfilesListCall struct { } // List: Lists views (profiles) to which the user has access. +// +// - accountId: Account ID for the views (profiles) to retrieve. Can either be +// a specific account ID or '~all', which refers to all the accounts to which +// the user has access. +// - webPropertyId: Web property ID for the views (profiles) to retrieve. Can +// either be a specific web property ID or '~all', which refers to all the +// web properties to which the user has access. func (r *ManagementProfilesService) List(accountId string, webPropertyId string) *ManagementProfilesListCall { c := &ManagementProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -751,49 +605,45 @@ func (r *ManagementProfilesService) List(accountId string, webPropertyId string) return c } -// MaxResults sets the optional parameter "max-results": The maximum -// number of views (profiles) to include in this response. +// MaxResults sets the optional parameter "max-results": The maximum number of +// views (profiles) to include in this response. func (c *ManagementProfilesListCall) MaxResults(maxResults int64) *ManagementProfilesListCall { c.urlParams_.Set("max-results", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "start-index": An index of the -// first entity to retrieve. Use this parameter as a pagination -// mechanism along with the max-results parameter. +// StartIndex sets the optional parameter "start-index": An index of the first +// entity to retrieve. Use this parameter as a pagination mechanism along with +// the max-results parameter. func (c *ManagementProfilesListCall) StartIndex(startIndex int64) *ManagementProfilesListCall { c.urlParams_.Set("start-index", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagementProfilesListCall) Fields(s ...googleapi.Field) *ManagementProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagementProfilesListCall) IfNoneMatch(entityTag string) *ManagementProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagementProfilesListCall) Context(ctx context.Context) *ManagementProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagementProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -802,12 +652,7 @@ func (c *ManagementProfilesListCall) Header() http.Header { } func (c *ManagementProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200206") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -825,7 +670,7 @@ func (c *ManagementProfilesListCall) doRequest(alt string) (*http.Response, erro "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profiles.list" call. @@ -837,54 +682,10 @@ func (c *ManagementProfilesListCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Lists views (profiles) to which the user has access.", - // "httpMethod": "GET", - // "id": "analytics.management.profiles.list", - // "parameterOrder": [ - // "accountId", - // "webPropertyId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account ID for the views (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "max-results": { - // "description": "The maximum number of views (profiles) to include in this response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "start-index": { - // "description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.", - // "format": "int32", - // "location": "query", - // "minimum": "1", - // "type": "integer" - // }, - // "webPropertyId": { - // "description": "Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - -// method id "analytics.management.segments.list": +} type ManagementSegmentsListCall struct { s *Service @@ -900,49 +701,45 @@ func (r *ManagementSegmentsService) List() *ManagementSegmentsListCall { return c } -// MaxResults sets the optional parameter "max-results": The maximum -// number of advanced segments to include in this response. +// MaxResults sets the optional parameter "max-results": The maximum number of +// advanced segments to include in this response. func (c *ManagementSegmentsListCall) MaxResults(maxResults int64) *ManagementSegmentsListCall { c.urlParams_.Set("max-results", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "start-index": An index of the -// first advanced segment to retrieve. Use this parameter as a -// pagination mechanism along with the max-results parameter. +// StartIndex sets the optional parameter "start-index": An index of the first +// advanced segment to retrieve. Use this parameter as a pagination mechanism +// along with the max-results parameter. func (c *ManagementSegmentsListCall) StartIndex(startIndex int64) *ManagementSegmentsListCall { c.urlParams_.Set("start-index", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagementSegmentsListCall) Fields(s ...googleapi.Field) *ManagementSegmentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagementSegmentsListCall) IfNoneMatch(entityTag string) *ManagementSegmentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagementSegmentsListCall) Context(ctx context.Context) *ManagementSegmentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagementSegmentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -951,12 +748,7 @@ func (c *ManagementSegmentsListCall) Header() http.Header { } func (c *ManagementSegmentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200206") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -970,7 +762,7 @@ func (c *ManagementSegmentsListCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.segments.list" call. @@ -982,38 +774,10 @@ func (c *ManagementSegmentsListCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Lists advanced segments to which the user has access.", - // "httpMethod": "GET", - // "id": "analytics.management.segments.list", - // "parameters": { - // "max-results": { - // "description": "The maximum number of advanced segments to include in this response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "start-index": { - // "description": "An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.", - // "format": "int32", - // "location": "query", - // "minimum": "1", - // "type": "integer" - // } - // }, - // "path": "management/segments", - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - -// method id "analytics.management.webproperties.list": +} type ManagementWebpropertiesListCall struct { s *Service @@ -1025,55 +789,55 @@ type ManagementWebpropertiesListCall struct { } // List: Lists web properties to which the user has access. +// +// - accountId: Account ID to retrieve web properties for. Can either be a +// specific account ID or '~all', which refers to all the accounts that user +// has access to. func (r *ManagementWebpropertiesService) List(accountId string) *ManagementWebpropertiesListCall { c := &ManagementWebpropertiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId return c } -// MaxResults sets the optional parameter "max-results": The maximum -// number of web properties to include in this response. +// MaxResults sets the optional parameter "max-results": The maximum number of +// web properties to include in this response. func (c *ManagementWebpropertiesListCall) MaxResults(maxResults int64) *ManagementWebpropertiesListCall { c.urlParams_.Set("max-results", fmt.Sprint(maxResults)) return c } -// StartIndex sets the optional parameter "start-index": An index of the -// first entity to retrieve. Use this parameter as a pagination -// mechanism along with the max-results parameter. +// StartIndex sets the optional parameter "start-index": An index of the first +// entity to retrieve. Use this parameter as a pagination mechanism along with +// the max-results parameter. func (c *ManagementWebpropertiesListCall) StartIndex(startIndex int64) *ManagementWebpropertiesListCall { c.urlParams_.Set("start-index", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagementWebpropertiesListCall) Fields(s ...googleapi.Field) *ManagementWebpropertiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagementWebpropertiesListCall) IfNoneMatch(entityTag string) *ManagementWebpropertiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagementWebpropertiesListCall) Context(ctx context.Context) *ManagementWebpropertiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagementWebpropertiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1082,12 +846,7 @@ func (c *ManagementWebpropertiesListCall) Header() http.Header { } func (c *ManagementWebpropertiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20200206") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1104,7 +863,7 @@ func (c *ManagementWebpropertiesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webproperties.list" call. @@ -1116,42 +875,7 @@ func (c *ManagementWebpropertiesListCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Lists web properties to which the user has access.", - // "httpMethod": "GET", - // "id": "analytics.management.webproperties.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "max-results": { - // "description": "The maximum number of web properties to include in this response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "start-index": { - // "description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.", - // "format": "int32", - // "location": "query", - // "minimum": "1", - // "type": "integer" - // } - // }, - // "path": "management/accounts/{accountId}/webproperties", - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - } diff --git a/analytics/v3/analytics-gen.go b/analytics/v3/analytics-gen.go index b6c80b320f2..74bf76238c6 100644 --- a/analytics/v3/analytics-gen.go +++ b/analytics/v3/analytics-gen.go @@ -4755,7 +4755,7 @@ func (c *DataGaGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.data.ga.get" call. @@ -4925,7 +4925,7 @@ func (c *DataMcfGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.data.mcf.get" call. @@ -5060,7 +5060,7 @@ func (c *DataRealtimeGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.data.realtime.get" call. @@ -5177,7 +5177,7 @@ func (c *ManagementAccountSummariesListCall) doRequest(alt string) (*http.Respon return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.accountSummaries.list" call. @@ -5277,7 +5277,7 @@ func (c *ManagementAccountUserLinksDeleteCall) doRequest(alt string) (*http.Resp "accountId": c.accountId, "linkId": c.linkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.accountUserLinks.delete" call. @@ -5355,7 +5355,7 @@ func (c *ManagementAccountUserLinksInsertCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.accountUserLinks.insert" call. @@ -5477,7 +5477,7 @@ func (c *ManagementAccountUserLinksListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.accountUserLinks.list" call. @@ -5583,7 +5583,7 @@ func (c *ManagementAccountUserLinksUpdateCall) doRequest(alt string) (*http.Resp "accountId": c.accountId, "linkId": c.linkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.accountUserLinks.update" call. @@ -5698,7 +5698,7 @@ func (c *ManagementAccountsListCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.accounts.list" call. @@ -5792,7 +5792,7 @@ func (c *ManagementClientIdHashClientIdCall) doRequest(alt string) (*http.Respon return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.clientId.hashClientId" call. @@ -5919,7 +5919,7 @@ func (c *ManagementCustomDataSourcesListCall) doRequest(alt string) (*http.Respo "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customDataSources.list" call. @@ -6035,7 +6035,7 @@ func (c *ManagementCustomDimensionsGetCall) doRequest(alt string) (*http.Respons "webPropertyId": c.webPropertyId, "customDimensionId": c.customDimensionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customDimensions.get" call. @@ -6141,7 +6141,7 @@ func (c *ManagementCustomDimensionsInsertCall) doRequest(alt string) (*http.Resp "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customDimensions.insert" call. @@ -6268,7 +6268,7 @@ func (c *ManagementCustomDimensionsListCall) doRequest(alt string) (*http.Respon "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customDimensions.list" call. @@ -6388,7 +6388,7 @@ func (c *ManagementCustomDimensionsPatchCall) doRequest(alt string) (*http.Respo "webPropertyId": c.webPropertyId, "customDimensionId": c.customDimensionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customDimensions.patch" call. @@ -6507,7 +6507,7 @@ func (c *ManagementCustomDimensionsUpdateCall) doRequest(alt string) (*http.Resp "webPropertyId": c.webPropertyId, "customDimensionId": c.customDimensionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customDimensions.update" call. @@ -6623,7 +6623,7 @@ func (c *ManagementCustomMetricsGetCall) doRequest(alt string) (*http.Response, "webPropertyId": c.webPropertyId, "customMetricId": c.customMetricId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customMetrics.get" call. @@ -6728,7 +6728,7 @@ func (c *ManagementCustomMetricsInsertCall) doRequest(alt string) (*http.Respons "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customMetrics.insert" call. @@ -6854,7 +6854,7 @@ func (c *ManagementCustomMetricsListCall) doRequest(alt string) (*http.Response, "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customMetrics.list" call. @@ -6973,7 +6973,7 @@ func (c *ManagementCustomMetricsPatchCall) doRequest(alt string) (*http.Response "webPropertyId": c.webPropertyId, "customMetricId": c.customMetricId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customMetrics.patch" call. @@ -7091,7 +7091,7 @@ func (c *ManagementCustomMetricsUpdateCall) doRequest(alt string) (*http.Respons "webPropertyId": c.webPropertyId, "customMetricId": c.customMetricId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.customMetrics.update" call. @@ -7198,7 +7198,7 @@ func (c *ManagementExperimentsDeleteCall) doRequest(alt string) (*http.Response, "profileId": c.profileId, "experimentId": c.experimentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.experiments.delete" call. @@ -7294,7 +7294,7 @@ func (c *ManagementExperimentsGetCall) doRequest(alt string) (*http.Response, er "profileId": c.profileId, "experimentId": c.experimentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.experiments.get" call. @@ -7403,7 +7403,7 @@ func (c *ManagementExperimentsInsertCall) doRequest(alt string) (*http.Response, "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.experiments.insert" call. @@ -7533,7 +7533,7 @@ func (c *ManagementExperimentsListCall) doRequest(alt string) (*http.Response, e "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.experiments.list" call. @@ -7646,7 +7646,7 @@ func (c *ManagementExperimentsPatchCall) doRequest(alt string) (*http.Response, "profileId": c.profileId, "experimentId": c.experimentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.experiments.patch" call. @@ -7759,7 +7759,7 @@ func (c *ManagementExperimentsUpdateCall) doRequest(alt string) (*http.Response, "profileId": c.profileId, "experimentId": c.experimentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.experiments.update" call. @@ -7858,7 +7858,7 @@ func (c *ManagementFiltersDeleteCall) doRequest(alt string) (*http.Response, err "accountId": c.accountId, "filterId": c.filterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.filters.delete" call. @@ -7969,7 +7969,7 @@ func (c *ManagementFiltersGetCall) doRequest(alt string) (*http.Response, error) "accountId": c.accountId, "filterId": c.filterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.filters.get" call. @@ -8070,7 +8070,7 @@ func (c *ManagementFiltersInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.filters.insert" call. @@ -8192,7 +8192,7 @@ func (c *ManagementFiltersListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.filters.list" call. @@ -8297,7 +8297,7 @@ func (c *ManagementFiltersPatchCall) doRequest(alt string) (*http.Response, erro "accountId": c.accountId, "filterId": c.filterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.filters.patch" call. @@ -8402,7 +8402,7 @@ func (c *ManagementFiltersUpdateCall) doRequest(alt string) (*http.Response, err "accountId": c.accountId, "filterId": c.filterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.filters.update" call. @@ -8521,7 +8521,7 @@ func (c *ManagementGoalsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": c.profileId, "goalId": c.goalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.goals.get" call. @@ -8630,7 +8630,7 @@ func (c *ManagementGoalsInsertCall) doRequest(alt string) (*http.Response, error "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.goals.insert" call. @@ -8766,7 +8766,7 @@ func (c *ManagementGoalsListCall) doRequest(alt string) (*http.Response, error) "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.goals.list" call. @@ -8879,7 +8879,7 @@ func (c *ManagementGoalsPatchCall) doRequest(alt string) (*http.Response, error) "profileId": c.profileId, "goalId": c.goalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.goals.patch" call. @@ -8992,7 +8992,7 @@ func (c *ManagementGoalsUpdateCall) doRequest(alt string) (*http.Response, error "profileId": c.profileId, "goalId": c.goalId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.goals.update" call. @@ -9099,7 +9099,7 @@ func (c *ManagementProfileFilterLinksDeleteCall) doRequest(alt string) (*http.Re "profileId": c.profileId, "linkId": c.linkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profileFilterLinks.delete" call. @@ -9195,7 +9195,7 @@ func (c *ManagementProfileFilterLinksGetCall) doRequest(alt string) (*http.Respo "profileId": c.profileId, "linkId": c.linkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profileFilterLinks.get" call. @@ -9305,7 +9305,7 @@ func (c *ManagementProfileFilterLinksInsertCall) doRequest(alt string) (*http.Re "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profileFilterLinks.insert" call. @@ -9440,7 +9440,7 @@ func (c *ManagementProfileFilterLinksListCall) doRequest(alt string) (*http.Resp "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profileFilterLinks.list" call. @@ -9555,7 +9555,7 @@ func (c *ManagementProfileFilterLinksPatchCall) doRequest(alt string) (*http.Res "profileId": c.profileId, "linkId": c.linkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profileFilterLinks.patch" call. @@ -9669,7 +9669,7 @@ func (c *ManagementProfileFilterLinksUpdateCall) doRequest(alt string) (*http.Re "profileId": c.profileId, "linkId": c.linkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profileFilterLinks.update" call. @@ -9777,7 +9777,7 @@ func (c *ManagementProfileUserLinksDeleteCall) doRequest(alt string) (*http.Resp "profileId": c.profileId, "linkId": c.linkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profileUserLinks.delete" call. @@ -9863,7 +9863,7 @@ func (c *ManagementProfileUserLinksInsertCall) doRequest(alt string) (*http.Resp "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profileUserLinks.insert" call. @@ -9997,7 +9997,7 @@ func (c *ManagementProfileUserLinksListCall) doRequest(alt string) (*http.Respon "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profileUserLinks.list" call. @@ -10112,7 +10112,7 @@ func (c *ManagementProfileUserLinksUpdateCall) doRequest(alt string) (*http.Resp "profileId": c.profileId, "linkId": c.linkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profileUserLinks.update" call. @@ -10215,7 +10215,7 @@ func (c *ManagementProfilesDeleteCall) doRequest(alt string) (*http.Response, er "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profiles.delete" call. @@ -10307,7 +10307,7 @@ func (c *ManagementProfilesGetCall) doRequest(alt string) (*http.Response, error "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profiles.get" call. @@ -10412,7 +10412,7 @@ func (c *ManagementProfilesInsertCall) doRequest(alt string) (*http.Response, er "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profiles.insert" call. @@ -10542,7 +10542,7 @@ func (c *ManagementProfilesListCall) doRequest(alt string) (*http.Response, erro "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profiles.list" call. @@ -10652,7 +10652,7 @@ func (c *ManagementProfilesPatchCall) doRequest(alt string) (*http.Response, err "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profiles.patch" call. @@ -10761,7 +10761,7 @@ func (c *ManagementProfilesUpdateCall) doRequest(alt string) (*http.Response, er "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.profiles.update" call. @@ -10864,7 +10864,7 @@ func (c *ManagementRemarketingAudienceDeleteCall) doRequest(alt string) (*http.R "webPropertyId": c.webPropertyId, "remarketingAudienceId": c.remarketingAudienceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.remarketingAudience.delete" call. @@ -10957,7 +10957,7 @@ func (c *ManagementRemarketingAudienceGetCall) doRequest(alt string) (*http.Resp "webPropertyId": c.webPropertyId, "remarketingAudienceId": c.remarketingAudienceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.remarketingAudience.get" call. @@ -11064,7 +11064,7 @@ func (c *ManagementRemarketingAudienceInsertCall) doRequest(alt string) (*http.R "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.remarketingAudience.insert" call. @@ -11198,7 +11198,7 @@ func (c *ManagementRemarketingAudienceListCall) doRequest(alt string) (*http.Res "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.remarketingAudience.list" call. @@ -11309,7 +11309,7 @@ func (c *ManagementRemarketingAudiencePatchCall) doRequest(alt string) (*http.Re "webPropertyId": c.webPropertyId, "remarketingAudienceId": c.remarketingAudienceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.remarketingAudience.patch" call. @@ -11419,7 +11419,7 @@ func (c *ManagementRemarketingAudienceUpdateCall) doRequest(alt string) (*http.R "webPropertyId": c.webPropertyId, "remarketingAudienceId": c.remarketingAudienceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.remarketingAudience.update" call. @@ -11535,7 +11535,7 @@ func (c *ManagementSegmentsListCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.segments.list" call. @@ -11642,7 +11642,7 @@ func (c *ManagementUnsampledReportsDeleteCall) doRequest(alt string) (*http.Resp "profileId": c.profileId, "unsampledReportId": c.unsampledReportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.unsampledReports.delete" call. @@ -11738,7 +11738,7 @@ func (c *ManagementUnsampledReportsGetCall) doRequest(alt string) (*http.Respons "profileId": c.profileId, "unsampledReportId": c.unsampledReportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.unsampledReports.get" call. @@ -11848,7 +11848,7 @@ func (c *ManagementUnsampledReportsInsertCall) doRequest(alt string) (*http.Resp "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.unsampledReports.insert" call. @@ -11982,7 +11982,7 @@ func (c *ManagementUnsampledReportsListCall) doRequest(alt string) (*http.Respon "webPropertyId": c.webPropertyId, "profileId": c.profileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.unsampledReports.list" call. @@ -12092,7 +12092,7 @@ func (c *ManagementUploadsDeleteUploadDataCall) doRequest(alt string) (*http.Res "webPropertyId": c.webPropertyId, "customDataSourceId": c.customDataSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.uploads.deleteUploadData" call. @@ -12188,7 +12188,7 @@ func (c *ManagementUploadsGetCall) doRequest(alt string) (*http.Response, error) "customDataSourceId": c.customDataSourceId, "uploadId": c.uploadId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.uploads.get" call. @@ -12318,7 +12318,7 @@ func (c *ManagementUploadsListCall) doRequest(alt string) (*http.Response, error "webPropertyId": c.webPropertyId, "customDataSourceId": c.customDataSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.uploads.list" call. @@ -12472,7 +12472,7 @@ func (c *ManagementUploadsUploadDataCall) doRequest(alt string) (*http.Response, "webPropertyId": c.webPropertyId, "customDataSourceId": c.customDataSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.uploads.uploadData" call. @@ -12592,7 +12592,7 @@ func (c *ManagementWebPropertyAdWordsLinksDeleteCall) doRequest(alt string) (*ht "webPropertyId": c.webPropertyId, "webPropertyAdWordsLinkId": c.webPropertyAdWordsLinkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webPropertyAdWordsLinks.delete" call. @@ -12684,7 +12684,7 @@ func (c *ManagementWebPropertyAdWordsLinksGetCall) doRequest(alt string) (*http. "webPropertyId": c.webPropertyId, "webPropertyAdWordsLinkId": c.webPropertyAdWordsLinkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webPropertyAdWordsLinks.get" call. @@ -12790,7 +12790,7 @@ func (c *ManagementWebPropertyAdWordsLinksInsertCall) doRequest(alt string) (*ht "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webPropertyAdWordsLinks.insert" call. @@ -12917,7 +12917,7 @@ func (c *ManagementWebPropertyAdWordsLinksListCall) doRequest(alt string) (*http "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webPropertyAdWordsLinks.list" call. @@ -13028,7 +13028,7 @@ func (c *ManagementWebPropertyAdWordsLinksPatchCall) doRequest(alt string) (*htt "webPropertyId": c.webPropertyId, "webPropertyAdWordsLinkId": c.webPropertyAdWordsLinkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webPropertyAdWordsLinks.patch" call. @@ -13138,7 +13138,7 @@ func (c *ManagementWebPropertyAdWordsLinksUpdateCall) doRequest(alt string) (*ht "webPropertyId": c.webPropertyId, "webPropertyAdWordsLinkId": c.webPropertyAdWordsLinkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webPropertyAdWordsLinks.update" call. @@ -13250,7 +13250,7 @@ func (c *ManagementWebpropertiesGetCall) doRequest(alt string) (*http.Response, "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webproperties.get" call. @@ -13353,7 +13353,7 @@ func (c *ManagementWebpropertiesInsertCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webproperties.insert" call. @@ -13477,7 +13477,7 @@ func (c *ManagementWebpropertiesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webproperties.list" call. @@ -13583,7 +13583,7 @@ func (c *ManagementWebpropertiesPatchCall) doRequest(alt string) (*http.Response "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webproperties.patch" call. @@ -13688,7 +13688,7 @@ func (c *ManagementWebpropertiesUpdateCall) doRequest(alt string) (*http.Respons "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webproperties.update" call. @@ -13791,7 +13791,7 @@ func (c *ManagementWebpropertyUserLinksDeleteCall) doRequest(alt string) (*http. "webPropertyId": c.webPropertyId, "linkId": c.linkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webpropertyUserLinks.delete" call. @@ -13873,7 +13873,7 @@ func (c *ManagementWebpropertyUserLinksInsertCall) doRequest(alt string) (*http. "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webpropertyUserLinks.insert" call. @@ -14001,7 +14001,7 @@ func (c *ManagementWebpropertyUserLinksListCall) doRequest(alt string) (*http.Re "accountId": c.accountId, "webPropertyId": c.webPropertyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webpropertyUserLinks.list" call. @@ -14111,7 +14111,7 @@ func (c *ManagementWebpropertyUserLinksUpdateCall) doRequest(alt string) (*http. "webPropertyId": c.webPropertyId, "linkId": c.linkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.management.webpropertyUserLinks.update" call. @@ -14219,7 +14219,7 @@ func (c *MetadataColumnsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "reportType": c.reportType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.metadata.columns.list" call. @@ -14313,7 +14313,7 @@ func (c *ProvisioningCreateAccountTicketCall) doRequest(alt string) (*http.Respo return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.provisioning.createAccountTicket" call. @@ -14407,7 +14407,7 @@ func (c *ProvisioningCreateAccountTreeCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.provisioning.createAccountTree" call. @@ -14502,7 +14502,7 @@ func (c *UserDeletionUserDeletionRequestUpsertCall) doRequest(alt string) (*http return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analytics.userDeletion.userDeletionRequest.upsert" call. diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 842121015cd..8ae9dce29a8 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -311,7 +311,7 @@ ] }, "runAccessReport": { - "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).", + "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.", "flatPath": "v1alpha/accounts/{accountsId}:runAccessReport", "httpMethod": "POST", "id": "analyticsadmin.accounts.runAccessReport", @@ -1017,7 +1017,7 @@ ] }, "runAccessReport": { - "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).", + "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.", "flatPath": "v1alpha/properties/{propertiesId}:runAccessReport", "httpMethod": "POST", "id": "analyticsadmin.properties.runAccessReport", @@ -4886,7 +4886,7 @@ } } }, - "revision": "20240823", + "revision": "20240916", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 4ee9c5f8801..12ef65944ca 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -6281,7 +6281,7 @@ func (c *AccountSummariesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accountSummaries.list" call. @@ -6405,7 +6405,7 @@ func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.delete" call. @@ -6514,7 +6514,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.get" call. @@ -6625,7 +6625,7 @@ func (c *AccountsGetDataSharingSettingsCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.getDataSharingSettings" call. @@ -6756,7 +6756,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.list" call. @@ -6889,7 +6889,7 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.patch" call. @@ -6984,7 +6984,7 @@ func (c *AccountsProvisionAccountTicketCall) doRequest(alt string) (*http.Respon return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.provisionAccountTicket" call. @@ -7046,6 +7046,10 @@ type AccountsRunAccessReportCall struct { // property configuration changes like adding a stream or changing a property's // time zone. For configuration change history, see searchChangeHistoryEvents // (https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). +// To give your feedback on this API, complete the Google Analytics Access +// Reports feedback +// (https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) +// form. // // - entity: The Data Access Report supports requesting at the property level // or account level. If requested at the account level, Data Access Reports @@ -7103,7 +7107,7 @@ func (c *AccountsRunAccessReportCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.runAccessReport" call. @@ -7207,7 +7211,7 @@ func (c *AccountsSearchChangeHistoryEventsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "account": c.account, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.searchChangeHistoryEvents" call. @@ -7334,7 +7338,7 @@ func (c *AccountsAccessBindingsBatchCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.accessBindings.batchCreate" call. @@ -7440,7 +7444,7 @@ func (c *AccountsAccessBindingsBatchDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.accessBindings.batchDelete" call. @@ -7560,7 +7564,7 @@ func (c *AccountsAccessBindingsBatchGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.accessBindings.batchGet" call. @@ -7665,7 +7669,7 @@ func (c *AccountsAccessBindingsBatchUpdateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.accessBindings.batchUpdate" call. @@ -7767,7 +7771,7 @@ func (c *AccountsAccessBindingsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.accessBindings.create" call. @@ -7864,7 +7868,7 @@ func (c *AccountsAccessBindingsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.accessBindings.delete" call. @@ -7974,7 +7978,7 @@ func (c *AccountsAccessBindingsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.accessBindings.get" call. @@ -8100,7 +8104,7 @@ func (c *AccountsAccessBindingsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.accessBindings.list" call. @@ -8226,7 +8230,7 @@ func (c *AccountsAccessBindingsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.accessBindings.patch" call. @@ -8331,7 +8335,7 @@ func (c *PropertiesAcknowledgeUserDataCollectionCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "property": c.property, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.acknowledgeUserDataCollection" call. @@ -8427,7 +8431,7 @@ func (c *PropertiesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.create" call. @@ -8524,7 +8528,7 @@ func (c *PropertiesCreateConnectedSiteTagCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.createConnectedSiteTag" call. @@ -8620,7 +8624,7 @@ func (c *PropertiesCreateRollupPropertyCall) doRequest(alt string) (*http.Respon return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.createRollupProperty" call. @@ -8723,7 +8727,7 @@ func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.delete" call. @@ -8819,7 +8823,7 @@ func (c *PropertiesDeleteConnectedSiteTagCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.deleteConnectedSiteTag" call. @@ -8916,7 +8920,7 @@ func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) doRequest(alt strin return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut" call. @@ -9027,7 +9031,7 @@ func (c *PropertiesFetchConnectedGa4PropertyCall) doRequest(alt string) (*http.R return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.fetchConnectedGa4Property" call. @@ -9136,7 +9140,7 @@ func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.get" call. @@ -9245,7 +9249,7 @@ func (c *PropertiesGetAttributionSettingsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.getAttributionSettings" call. @@ -9356,7 +9360,7 @@ func (c *PropertiesGetDataRetentionSettingsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.getDataRetentionSettings" call. @@ -9465,7 +9469,7 @@ func (c *PropertiesGetGoogleSignalsSettingsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.getGoogleSignalsSettings" call. @@ -9613,7 +9617,7 @@ func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.list" call. @@ -9731,7 +9735,7 @@ func (c *PropertiesListConnectedSiteTagsCall) doRequest(alt string) (*http.Respo return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.listConnectedSiteTags" call. @@ -9843,7 +9847,7 @@ func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.patch" call. @@ -9939,7 +9943,7 @@ func (c *PropertiesProvisionSubpropertyCall) doRequest(alt string) (*http.Respon return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.provisionSubproperty" call. @@ -10001,6 +10005,10 @@ type PropertiesRunAccessReportCall struct { // property configuration changes like adding a stream or changing a property's // time zone. For configuration change history, see searchChangeHistoryEvents // (https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). +// To give your feedback on this API, complete the Google Analytics Access +// Reports feedback +// (https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) +// form. // // - entity: The Data Access Report supports requesting at the property level // or account level. If requested at the account level, Data Access Reports @@ -10058,7 +10066,7 @@ func (c *PropertiesRunAccessReportCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.runAccessReport" call. @@ -10155,7 +10163,7 @@ func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) doRequest(alt string) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut" call. @@ -10268,7 +10276,7 @@ func (c *PropertiesUpdateAttributionSettingsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.updateAttributionSettings" call. @@ -10381,7 +10389,7 @@ func (c *PropertiesUpdateDataRetentionSettingsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.updateDataRetentionSettings" call. @@ -10494,7 +10502,7 @@ func (c *PropertiesUpdateGoogleSignalsSettingsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.updateGoogleSignalsSettings" call. @@ -10600,7 +10608,7 @@ func (c *PropertiesAccessBindingsBatchCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.accessBindings.batchCreate" call. @@ -10706,7 +10714,7 @@ func (c *PropertiesAccessBindingsBatchDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.accessBindings.batchDelete" call. @@ -10826,7 +10834,7 @@ func (c *PropertiesAccessBindingsBatchGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.accessBindings.batchGet" call. @@ -10931,7 +10939,7 @@ func (c *PropertiesAccessBindingsBatchUpdateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.accessBindings.batchUpdate" call. @@ -11033,7 +11041,7 @@ func (c *PropertiesAccessBindingsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.accessBindings.create" call. @@ -11130,7 +11138,7 @@ func (c *PropertiesAccessBindingsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.accessBindings.delete" call. @@ -11240,7 +11248,7 @@ func (c *PropertiesAccessBindingsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.accessBindings.get" call. @@ -11366,7 +11374,7 @@ func (c *PropertiesAccessBindingsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.accessBindings.list" call. @@ -11492,7 +11500,7 @@ func (c *PropertiesAccessBindingsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.accessBindings.patch" call. @@ -11595,7 +11603,7 @@ func (c *PropertiesAdSenseLinksCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.adSenseLinks.create" call. @@ -11693,7 +11701,7 @@ func (c *PropertiesAdSenseLinksDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.adSenseLinks.delete" call. @@ -11803,7 +11811,7 @@ func (c *PropertiesAdSenseLinksGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.adSenseLinks.get" call. @@ -11929,7 +11937,7 @@ func (c *PropertiesAdSenseLinksListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.adSenseLinks.list" call. @@ -12052,7 +12060,7 @@ func (c *PropertiesAudiencesArchiveCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.audiences.archive" call. @@ -12154,7 +12162,7 @@ func (c *PropertiesAudiencesCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.audiences.create" call. @@ -12264,7 +12272,7 @@ func (c *PropertiesAudiencesGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.audiences.get" call. @@ -12390,7 +12398,7 @@ func (c *PropertiesAudiencesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.audiences.list" call. @@ -12523,7 +12531,7 @@ func (c *PropertiesAudiencesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.audiences.patch" call. @@ -12625,7 +12633,7 @@ func (c *PropertiesBigQueryLinksCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.bigQueryLinks.create" call. @@ -12722,7 +12730,7 @@ func (c *PropertiesBigQueryLinksDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.bigQueryLinks.delete" call. @@ -12832,7 +12840,7 @@ func (c *PropertiesBigQueryLinksGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.bigQueryLinks.get" call. @@ -12960,7 +12968,7 @@ func (c *PropertiesBigQueryLinksListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.bigQueryLinks.list" call. @@ -13094,7 +13102,7 @@ func (c *PropertiesBigQueryLinksPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.bigQueryLinks.patch" call. @@ -13209,7 +13217,7 @@ func (c *PropertiesCalculatedMetricsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.calculatedMetrics.create" call. @@ -13307,7 +13315,7 @@ func (c *PropertiesCalculatedMetricsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.calculatedMetrics.delete" call. @@ -13417,7 +13425,7 @@ func (c *PropertiesCalculatedMetricsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.calculatedMetrics.get" call. @@ -13542,7 +13550,7 @@ func (c *PropertiesCalculatedMetricsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.calculatedMetrics.list" call. @@ -13674,7 +13682,7 @@ func (c *PropertiesCalculatedMetricsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.calculatedMetrics.patch" call. @@ -13777,7 +13785,7 @@ func (c *PropertiesChannelGroupsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.channelGroups.create" call. @@ -13874,7 +13882,7 @@ func (c *PropertiesChannelGroupsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.channelGroups.delete" call. @@ -13983,7 +13991,7 @@ func (c *PropertiesChannelGroupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.channelGroups.get" call. @@ -14109,7 +14117,7 @@ func (c *PropertiesChannelGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.channelGroups.list" call. @@ -14242,7 +14250,7 @@ func (c *PropertiesChannelGroupsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.channelGroups.patch" call. @@ -14346,7 +14354,7 @@ func (c *PropertiesConversionEventsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.conversionEvents.create" call. @@ -14445,7 +14453,7 @@ func (c *PropertiesConversionEventsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.conversionEvents.delete" call. @@ -14556,7 +14564,7 @@ func (c *PropertiesConversionEventsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.conversionEvents.get" call. @@ -14684,7 +14692,7 @@ func (c *PropertiesConversionEventsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.conversionEvents.list" call. @@ -14818,7 +14826,7 @@ func (c *PropertiesConversionEventsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.conversionEvents.patch" call. @@ -14921,7 +14929,7 @@ func (c *PropertiesCustomDimensionsArchiveCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customDimensions.archive" call. @@ -15023,7 +15031,7 @@ func (c *PropertiesCustomDimensionsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customDimensions.create" call. @@ -15132,7 +15140,7 @@ func (c *PropertiesCustomDimensionsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customDimensions.get" call. @@ -15257,7 +15265,7 @@ func (c *PropertiesCustomDimensionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customDimensions.list" call. @@ -15389,7 +15397,7 @@ func (c *PropertiesCustomDimensionsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customDimensions.patch" call. @@ -15492,7 +15500,7 @@ func (c *PropertiesCustomMetricsArchiveCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customMetrics.archive" call. @@ -15594,7 +15602,7 @@ func (c *PropertiesCustomMetricsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customMetrics.create" call. @@ -15703,7 +15711,7 @@ func (c *PropertiesCustomMetricsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customMetrics.get" call. @@ -15828,7 +15836,7 @@ func (c *PropertiesCustomMetricsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customMetrics.list" call. @@ -15960,7 +15968,7 @@ func (c *PropertiesCustomMetricsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customMetrics.patch" call. @@ -16062,7 +16070,7 @@ func (c *PropertiesDataStreamsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.create" call. @@ -16159,7 +16167,7 @@ func (c *PropertiesDataStreamsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.delete" call. @@ -16268,7 +16276,7 @@ func (c *PropertiesDataStreamsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.get" call. @@ -16378,7 +16386,7 @@ func (c *PropertiesDataStreamsGetDataRedactionSettingsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.getDataRedactionSettings" call. @@ -16490,7 +16498,7 @@ func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.getEnhancedMeasurementSettings" call. @@ -16604,7 +16612,7 @@ func (c *PropertiesDataStreamsGetGlobalSiteTagCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.getGlobalSiteTag" call. @@ -16729,7 +16737,7 @@ func (c *PropertiesDataStreamsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.list" call. @@ -16862,7 +16870,7 @@ func (c *PropertiesDataStreamsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.patch" call. @@ -16975,7 +16983,7 @@ func (c *PropertiesDataStreamsUpdateDataRedactionSettingsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.updateDataRedactionSettings" call. @@ -17092,7 +17100,7 @@ func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.updateEnhancedMeasurementSettings" call. @@ -17196,7 +17204,7 @@ func (c *PropertiesDataStreamsEventCreateRulesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventCreateRules.create" call. @@ -17292,7 +17300,7 @@ func (c *PropertiesDataStreamsEventCreateRulesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventCreateRules.delete" call. @@ -17401,7 +17409,7 @@ func (c *PropertiesDataStreamsEventCreateRulesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventCreateRules.get" call. @@ -17526,7 +17534,7 @@ func (c *PropertiesDataStreamsEventCreateRulesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventCreateRules.list" call. @@ -17661,7 +17669,7 @@ func (c *PropertiesDataStreamsEventCreateRulesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventCreateRules.patch" call. @@ -17763,7 +17771,7 @@ func (c *PropertiesDataStreamsEventEditRulesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventEditRules.create" call. @@ -17859,7 +17867,7 @@ func (c *PropertiesDataStreamsEventEditRulesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventEditRules.delete" call. @@ -17968,7 +17976,7 @@ func (c *PropertiesDataStreamsEventEditRulesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventEditRules.get" call. @@ -18093,7 +18101,7 @@ func (c *PropertiesDataStreamsEventEditRulesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventEditRules.list" call. @@ -18227,7 +18235,7 @@ func (c *PropertiesDataStreamsEventEditRulesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventEditRules.patch" call. @@ -18330,7 +18338,7 @@ func (c *PropertiesDataStreamsEventEditRulesReorderCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.eventEditRules.reorder" call. @@ -18433,7 +18441,7 @@ func (c *PropertiesDataStreamsMeasurementProtocolSecretsCreateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.create" call. @@ -18531,7 +18539,7 @@ func (c *PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.delete" call. @@ -18641,7 +18649,7 @@ func (c *PropertiesDataStreamsMeasurementProtocolSecretsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.get" call. @@ -18769,7 +18777,7 @@ func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.list" call. @@ -18902,7 +18910,7 @@ func (c *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.patch" call. @@ -19005,7 +19013,7 @@ func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.sKAdNetworkConversionValueSchema.create" call. @@ -19103,7 +19111,7 @@ func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.sKAdNetworkConversionValueSchema.delete" call. @@ -19214,7 +19222,7 @@ func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.sKAdNetworkConversionValueSchema.get" call. @@ -19345,7 +19353,7 @@ func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.sKAdNetworkConversionValueSchema.list" call. @@ -19479,7 +19487,7 @@ func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.sKAdNetworkConversionValueSchema.patch" call. @@ -19585,7 +19593,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.approve" call. @@ -19692,7 +19700,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.cancel" call. @@ -19794,7 +19802,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.create" call. @@ -19893,7 +19901,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.delete" call. @@ -20003,7 +20011,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.get" call. @@ -20129,7 +20137,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.list" call. @@ -20256,7 +20264,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinksCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinks.create" call. @@ -20353,7 +20361,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinksDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinks.delete" call. @@ -20462,7 +20470,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinksGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinks.get" call. @@ -20588,7 +20596,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinksListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinks.list" call. @@ -20722,7 +20730,7 @@ func (c *PropertiesDisplayVideo360AdvertiserLinksPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinks.patch" call. @@ -20824,7 +20832,7 @@ func (c *PropertiesExpandedDataSetsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.expandedDataSets.create" call. @@ -20920,7 +20928,7 @@ func (c *PropertiesExpandedDataSetsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.expandedDataSets.delete" call. @@ -21029,7 +21037,7 @@ func (c *PropertiesExpandedDataSetsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.expandedDataSets.get" call. @@ -21154,7 +21162,7 @@ func (c *PropertiesExpandedDataSetsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.expandedDataSets.list" call. @@ -21287,7 +21295,7 @@ func (c *PropertiesExpandedDataSetsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.expandedDataSets.patch" call. @@ -21390,7 +21398,7 @@ func (c *PropertiesFirebaseLinksCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.firebaseLinks.create" call. @@ -21487,7 +21495,7 @@ func (c *PropertiesFirebaseLinksDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.firebaseLinks.delete" call. @@ -21615,7 +21623,7 @@ func (c *PropertiesFirebaseLinksListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.firebaseLinks.list" call. @@ -21738,7 +21746,7 @@ func (c *PropertiesGoogleAdsLinksCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.googleAdsLinks.create" call. @@ -21834,7 +21842,7 @@ func (c *PropertiesGoogleAdsLinksDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.googleAdsLinks.delete" call. @@ -21959,7 +21967,7 @@ func (c *PropertiesGoogleAdsLinksListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.googleAdsLinks.list" call. @@ -22093,7 +22101,7 @@ func (c *PropertiesGoogleAdsLinksPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.googleAdsLinks.patch" call. @@ -22196,7 +22204,7 @@ func (c *PropertiesKeyEventsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.keyEvents.create" call. @@ -22294,7 +22302,7 @@ func (c *PropertiesKeyEventsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.keyEvents.delete" call. @@ -22404,7 +22412,7 @@ func (c *PropertiesKeyEventsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.keyEvents.get" call. @@ -22531,7 +22539,7 @@ func (c *PropertiesKeyEventsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.keyEvents.list" call. @@ -22664,7 +22672,7 @@ func (c *PropertiesKeyEventsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.keyEvents.patch" call. @@ -22768,7 +22776,7 @@ func (c *PropertiesRollupPropertySourceLinksCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.create" call. @@ -22868,7 +22876,7 @@ func (c *PropertiesRollupPropertySourceLinksDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.delete" call. @@ -22980,7 +22988,7 @@ func (c *PropertiesRollupPropertySourceLinksGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.get" call. @@ -23111,7 +23119,7 @@ func (c *PropertiesRollupPropertySourceLinksListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.list" call. @@ -23234,7 +23242,7 @@ func (c *PropertiesSearchAds360LinksCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.searchAds360Links.create" call. @@ -23331,7 +23339,7 @@ func (c *PropertiesSearchAds360LinksDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.searchAds360Links.delete" call. @@ -23440,7 +23448,7 @@ func (c *PropertiesSearchAds360LinksGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.searchAds360Links.get" call. @@ -23565,7 +23573,7 @@ func (c *PropertiesSearchAds360LinksListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.searchAds360Links.list" call. @@ -23698,7 +23706,7 @@ func (c *PropertiesSearchAds360LinksPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.searchAds360Links.patch" call. @@ -23801,7 +23809,7 @@ func (c *PropertiesSubpropertyEventFiltersCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.subpropertyEventFilters.create" call. @@ -23899,7 +23907,7 @@ func (c *PropertiesSubpropertyEventFiltersDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.subpropertyEventFilters.delete" call. @@ -24009,7 +24017,7 @@ func (c *PropertiesSubpropertyEventFiltersGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.subpropertyEventFilters.get" call. @@ -24138,7 +24146,7 @@ func (c *PropertiesSubpropertyEventFiltersListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.subpropertyEventFilters.list" call. @@ -24272,7 +24280,7 @@ func (c *PropertiesSubpropertyEventFiltersPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.subpropertyEventFilters.patch" call. diff --git a/analyticsadmin/v1beta/analyticsadmin-api.json b/analyticsadmin/v1beta/analyticsadmin-api.json index 8a79cdc734a..32cec0ec367 100644 --- a/analyticsadmin/v1beta/analyticsadmin-api.json +++ b/analyticsadmin/v1beta/analyticsadmin-api.json @@ -305,7 +305,7 @@ ] }, "runAccessReport": { - "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).", + "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.", "flatPath": "v1beta/accounts/{accountsId}:runAccessReport", "httpMethod": "POST", "id": "analyticsadmin.accounts.runAccessReport", @@ -561,7 +561,7 @@ ] }, "runAccessReport": { - "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).", + "description": "Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase \u0026 Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.", "flatPath": "v1beta/properties/{propertiesId}:runAccessReport", "httpMethod": "POST", "id": "analyticsadmin.properties.runAccessReport", @@ -1788,7 +1788,7 @@ } } }, - "revision": "20240823", + "revision": "20240916", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1betaAccessBetweenFilter": { diff --git a/analyticsadmin/v1beta/analyticsadmin-gen.go b/analyticsadmin/v1beta/analyticsadmin-gen.go index 337ab6befe3..9d72b760aef 100644 --- a/analyticsadmin/v1beta/analyticsadmin-gen.go +++ b/analyticsadmin/v1beta/analyticsadmin-gen.go @@ -2656,7 +2656,7 @@ func (c *AccountSummariesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accountSummaries.list" call. @@ -2782,7 +2782,7 @@ func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.delete" call. @@ -2891,7 +2891,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.get" call. @@ -3002,7 +3002,7 @@ func (c *AccountsGetDataSharingSettingsCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.getDataSharingSettings" call. @@ -3133,7 +3133,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.list" call. @@ -3266,7 +3266,7 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.patch" call. @@ -3361,7 +3361,7 @@ func (c *AccountsProvisionAccountTicketCall) doRequest(alt string) (*http.Respon return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.provisionAccountTicket" call. @@ -3423,6 +3423,10 @@ type AccountsRunAccessReportCall struct { // property configuration changes like adding a stream or changing a property's // time zone. For configuration change history, see searchChangeHistoryEvents // (https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). +// To give your feedback on this API, complete the Google Analytics Access +// Reports feedback +// (https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) +// form. // // - entity: The Data Access Report supports requesting at the property level // or account level. If requested at the account level, Data Access Reports @@ -3480,7 +3484,7 @@ func (c *AccountsRunAccessReportCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.runAccessReport" call. @@ -3584,7 +3588,7 @@ func (c *AccountsSearchChangeHistoryEventsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "account": c.account, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.accounts.searchChangeHistoryEvents" call. @@ -3710,7 +3714,7 @@ func (c *PropertiesAcknowledgeUserDataCollectionCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "property": c.property, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.acknowledgeUserDataCollection" call. @@ -3806,7 +3810,7 @@ func (c *PropertiesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.create" call. @@ -3909,7 +3913,7 @@ func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.delete" call. @@ -4018,7 +4022,7 @@ func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.get" call. @@ -4129,7 +4133,7 @@ func (c *PropertiesGetDataRetentionSettingsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.getDataRetentionSettings" call. @@ -4277,7 +4281,7 @@ func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.list" call. @@ -4410,7 +4414,7 @@ func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.patch" call. @@ -4472,6 +4476,10 @@ type PropertiesRunAccessReportCall struct { // property configuration changes like adding a stream or changing a property's // time zone. For configuration change history, see searchChangeHistoryEvents // (https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). +// To give your feedback on this API, complete the Google Analytics Access +// Reports feedback +// (https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) +// form. // // - entity: The Data Access Report supports requesting at the property level // or account level. If requested at the account level, Data Access Reports @@ -4529,7 +4537,7 @@ func (c *PropertiesRunAccessReportCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.runAccessReport" call. @@ -4642,7 +4650,7 @@ func (c *PropertiesUpdateDataRetentionSettingsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.updateDataRetentionSettings" call. @@ -4746,7 +4754,7 @@ func (c *PropertiesConversionEventsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.conversionEvents.create" call. @@ -4845,7 +4853,7 @@ func (c *PropertiesConversionEventsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.conversionEvents.delete" call. @@ -4956,7 +4964,7 @@ func (c *PropertiesConversionEventsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.conversionEvents.get" call. @@ -5084,7 +5092,7 @@ func (c *PropertiesConversionEventsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.conversionEvents.list" call. @@ -5220,7 +5228,7 @@ func (c *PropertiesConversionEventsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.conversionEvents.patch" call. @@ -5323,7 +5331,7 @@ func (c *PropertiesCustomDimensionsArchiveCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customDimensions.archive" call. @@ -5425,7 +5433,7 @@ func (c *PropertiesCustomDimensionsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customDimensions.create" call. @@ -5534,7 +5542,7 @@ func (c *PropertiesCustomDimensionsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customDimensions.get" call. @@ -5659,7 +5667,7 @@ func (c *PropertiesCustomDimensionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customDimensions.list" call. @@ -5793,7 +5801,7 @@ func (c *PropertiesCustomDimensionsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customDimensions.patch" call. @@ -5896,7 +5904,7 @@ func (c *PropertiesCustomMetricsArchiveCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customMetrics.archive" call. @@ -5998,7 +6006,7 @@ func (c *PropertiesCustomMetricsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customMetrics.create" call. @@ -6107,7 +6115,7 @@ func (c *PropertiesCustomMetricsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customMetrics.get" call. @@ -6232,7 +6240,7 @@ func (c *PropertiesCustomMetricsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customMetrics.list" call. @@ -6364,7 +6372,7 @@ func (c *PropertiesCustomMetricsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.customMetrics.patch" call. @@ -6466,7 +6474,7 @@ func (c *PropertiesDataStreamsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.create" call. @@ -6563,7 +6571,7 @@ func (c *PropertiesDataStreamsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.delete" call. @@ -6672,7 +6680,7 @@ func (c *PropertiesDataStreamsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.get" call. @@ -6797,7 +6805,7 @@ func (c *PropertiesDataStreamsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.list" call. @@ -6930,7 +6938,7 @@ func (c *PropertiesDataStreamsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.patch" call. @@ -7033,7 +7041,7 @@ func (c *PropertiesDataStreamsMeasurementProtocolSecretsCreateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.create" call. @@ -7131,7 +7139,7 @@ func (c *PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.delete" call. @@ -7241,7 +7249,7 @@ func (c *PropertiesDataStreamsMeasurementProtocolSecretsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.get" call. @@ -7369,7 +7377,7 @@ func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.list" call. @@ -7502,7 +7510,7 @@ func (c *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.patch" call. @@ -7605,7 +7613,7 @@ func (c *PropertiesFirebaseLinksCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.firebaseLinks.create" call. @@ -7702,7 +7710,7 @@ func (c *PropertiesFirebaseLinksDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.firebaseLinks.delete" call. @@ -7830,7 +7838,7 @@ func (c *PropertiesFirebaseLinksListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.firebaseLinks.list" call. @@ -7953,7 +7961,7 @@ func (c *PropertiesGoogleAdsLinksCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.googleAdsLinks.create" call. @@ -8049,7 +8057,7 @@ func (c *PropertiesGoogleAdsLinksDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.googleAdsLinks.delete" call. @@ -8174,7 +8182,7 @@ func (c *PropertiesGoogleAdsLinksListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.googleAdsLinks.list" call. @@ -8308,7 +8316,7 @@ func (c *PropertiesGoogleAdsLinksPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.googleAdsLinks.patch" call. @@ -8411,7 +8419,7 @@ func (c *PropertiesKeyEventsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.keyEvents.create" call. @@ -8509,7 +8517,7 @@ func (c *PropertiesKeyEventsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.keyEvents.delete" call. @@ -8619,7 +8627,7 @@ func (c *PropertiesKeyEventsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.keyEvents.get" call. @@ -8746,7 +8754,7 @@ func (c *PropertiesKeyEventsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.keyEvents.list" call. @@ -8879,7 +8887,7 @@ func (c *PropertiesKeyEventsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsadmin.properties.keyEvents.patch" call. diff --git a/analyticsdata/v1alpha/analyticsdata-gen.go b/analyticsdata/v1alpha/analyticsdata-gen.go index 53aca75aea1..c3c8a03ce32 100644 --- a/analyticsdata/v1alpha/analyticsdata-gen.go +++ b/analyticsdata/v1alpha/analyticsdata-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/analytics/devguides/reporting/data/v1/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // analyticsdataService, err := analyticsdata.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // analyticsdataService, err := analyticsdata.NewService(ctx, option.WithScopes(analyticsdata.AnalyticsReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // analyticsdataService, err := analyticsdata.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // analyticsdataService, err := analyticsdata.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package analyticsdata // import "google.golang.org/api/analyticsdata/v1alpha" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "analyticsdata:v1alpha" const apiName = "analyticsdata" const apiVersion = "v1alpha" const basePath = "https://analyticsdata.googleapis.com/" +const basePathTemplate = "https://analyticsdata.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://analyticsdata.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -92,14 +109,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -164,907 +183,713 @@ type V1alphaService struct { s *Service } -// BatchRunPivotReportsRequest: The batch request containing multiple -// pivot report requests. +// BatchRunPivotReportsRequest: The batch request containing multiple pivot +// report requests. type BatchRunPivotReportsRequest struct { - // Entity: A property whose events are tracked. This entity must be - // specified for the batch. The entity within RunPivotReportRequest may - // either be unspecified or consistent with this entity. + // Entity: A property whose events are tracked. This entity must be specified + // for the batch. The entity within RunPivotReportRequest may either be + // unspecified or consistent with this entity. Entity *Entity `json:"entity,omitempty"` - - // Requests: Individual requests. Each request has a separate pivot - // report response. Each batch request is allowed up to 5 requests. + // Requests: Individual requests. Each request has a separate pivot report + // response. Each batch request is allowed up to 5 requests. Requests []*RunPivotReportRequest `json:"requests,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entity") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Entity") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchRunPivotReportsRequest) MarshalJSON() ([]byte, error) { +func (s BatchRunPivotReportsRequest) MarshalJSON() ([]byte, error) { type NoMethod BatchRunPivotReportsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BatchRunPivotReportsResponse: The batch response containing multiple -// pivot reports. +// BatchRunPivotReportsResponse: The batch response containing multiple pivot +// reports. type BatchRunPivotReportsResponse struct { - // Kind: Identifies what kind of resource this message is. This `kind` - // is always the fixed string "analyticsData#batchRunPivotReports". - // Useful to distinguish between response types in JSON. + // Kind: Identifies what kind of resource this message is. This `kind` is + // always the fixed string "analyticsData#batchRunPivotReports". Useful to + // distinguish between response types in JSON. Kind string `json:"kind,omitempty"` - - // PivotReports: Individual responses. Each response has a separate - // pivot report request. + // PivotReports: Individual responses. Each response has a separate pivot + // report request. PivotReports []*RunPivotReportResponse `json:"pivotReports,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchRunPivotReportsResponse) MarshalJSON() ([]byte, error) { +func (s BatchRunPivotReportsResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchRunPivotReportsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchRunReportsRequest: The batch request containing multiple report // requests. type BatchRunReportsRequest struct { - // Entity: A property whose events are tracked. This entity must be - // specified for the batch. The entity within RunReportRequest may - // either be unspecified or consistent with this entity. + // Entity: A property whose events are tracked. This entity must be specified + // for the batch. The entity within RunReportRequest may either be unspecified + // or consistent with this entity. Entity *Entity `json:"entity,omitempty"` - - // Requests: Individual requests. Each request has a separate report - // response. Each batch request is allowed up to 5 requests. + // Requests: Individual requests. Each request has a separate report response. + // Each batch request is allowed up to 5 requests. Requests []*RunReportRequest `json:"requests,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entity") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Entity") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchRunReportsRequest) MarshalJSON() ([]byte, error) { +func (s BatchRunReportsRequest) MarshalJSON() ([]byte, error) { type NoMethod BatchRunReportsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BatchRunReportsResponse: The batch response containing multiple -// reports. +// BatchRunReportsResponse: The batch response containing multiple reports. type BatchRunReportsResponse struct { - // Kind: Identifies what kind of resource this message is. This `kind` - // is always the fixed string "analyticsData#batchRunReports". Useful to + // Kind: Identifies what kind of resource this message is. This `kind` is + // always the fixed string "analyticsData#batchRunReports". Useful to // distinguish between response types in JSON. Kind string `json:"kind,omitempty"` - - // Reports: Individual responses. Each response has a separate report - // request. + // Reports: Individual responses. Each response has a separate report request. Reports []*RunReportResponse `json:"reports,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchRunReportsResponse) MarshalJSON() ([]byte, error) { +func (s BatchRunReportsResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchRunReportsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BetweenFilter: To express that the result needs to be between two -// numbers (inclusive). +// BetweenFilter: To express that the result needs to be between two numbers +// (inclusive). type BetweenFilter struct { // FromValue: Begins with this number. FromValue *NumericValue `json:"fromValue,omitempty"` - // ToValue: Ends with this number. ToValue *NumericValue `json:"toValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "FromValue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FromValue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FromValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BetweenFilter) MarshalJSON() ([]byte, error) { +func (s BetweenFilter) MarshalJSON() ([]byte, error) { type NoMethod BetweenFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CaseExpression: Used to convert a dimension value to a single case. type CaseExpression struct { - // DimensionName: Name of a dimension. The name must refer back to a - // name in dimensions field of the request. + // DimensionName: Name of a dimension. The name must refer back to a name in + // dimensions field of the request. DimensionName string `json:"dimensionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CaseExpression) MarshalJSON() ([]byte, error) { +func (s CaseExpression) MarshalJSON() ([]byte, error) { type NoMethod CaseExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Cohort: Defines a cohort selection criteria. A cohort is a group of -// users who share a common characteristic. For example, users with the -// same `firstSessionDate` belong to the same cohort. +// Cohort: Defines a cohort selection criteria. A cohort is a group of users +// who share a common characteristic. For example, users with the same +// `firstSessionDate` belong to the same cohort. type Cohort struct { - // DateRange: The cohort selects users whose first touch date is between - // start date and end date defined in the `dateRange`. This `dateRange` - // does not specify the full date range of event data that is present in - // a cohort report. In a cohort report, this `dateRange` is extended by - // the granularity and offset present in the `cohortsRange`; event data - // for the extended reporting date range is present in a cohort report. - // In a cohort request, this `dateRange` is required and the - // `dateRanges` in the `RunReportRequest` or `RunPivotReportRequest` - // must be unspecified. This `dateRange` should generally be aligned - // with the cohort's granularity. If `CohortsRange` uses daily - // granularity, this `dateRange` can be a single day. If `CohortsRange` - // uses weekly granularity, this `dateRange` can be aligned to a week - // boundary, starting at Sunday and ending Saturday. If `CohortsRange` - // uses monthly granularity, this `dateRange` can be aligned to a month, - // starting at the first and ending on the last day of the month. + // DateRange: The cohort selects users whose first touch date is between start + // date and end date defined in the `dateRange`. This `dateRange` does not + // specify the full date range of event data that is present in a cohort + // report. In a cohort report, this `dateRange` is extended by the granularity + // and offset present in the `cohortsRange`; event data for the extended + // reporting date range is present in a cohort report. In a cohort request, + // this `dateRange` is required and the `dateRanges` in the `RunReportRequest` + // or `RunPivotReportRequest` must be unspecified. This `dateRange` should + // generally be aligned with the cohort's granularity. If `CohortsRange` uses + // daily granularity, this `dateRange` can be a single day. If `CohortsRange` + // uses weekly granularity, this `dateRange` can be aligned to a week boundary, + // starting at Sunday and ending Saturday. If `CohortsRange` uses monthly + // granularity, this `dateRange` can be aligned to a month, starting at the + // first and ending on the last day of the month. DateRange *DateRange `json:"dateRange,omitempty"` - // Dimension: Dimension used by the cohort. Required and only supports // `firstSessionDate`. Dimension string `json:"dimension,omitempty"` - - // Name: Assigns a name to this cohort. The dimension `cohort` is valued - // to this name in a report response. If set, cannot begin with - // `cohort_` or `RESERVED_`. If not set, cohorts are named by their zero - // based index `cohort_0`, `cohort_1`, etc. + // Name: Assigns a name to this cohort. The dimension `cohort` is valued to + // this name in a report response. If set, cannot begin with `cohort_` or + // `RESERVED_`. If not set, cohorts are named by their zero based index + // `cohort_0`, `cohort_1`, etc. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "DateRange") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DateRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DateRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Cohort) MarshalJSON() ([]byte, error) { +func (s Cohort) MarshalJSON() ([]byte, error) { type NoMethod Cohort - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CohortReportSettings: Optional settings of a cohort report. type CohortReportSettings struct { - // Accumulate: If true, accumulates the result from first touch day to - // the end day. Not supported in `RunReportRequest`. + // Accumulate: If true, accumulates the result from first touch day to the end + // day. Not supported in `RunReportRequest`. Accumulate bool `json:"accumulate,omitempty"` - // ForceSendFields is a list of field names (e.g. "Accumulate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accumulate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accumulate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CohortReportSettings) MarshalJSON() ([]byte, error) { +func (s CohortReportSettings) MarshalJSON() ([]byte, error) { type NoMethod CohortReportSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CohortSpec: The specification of cohorts for a cohort report. Cohort -// reports create a time series of user retention for the cohort. For -// example, you could select the cohort of users that were acquired in -// the first week of September and follow that cohort for the next six -// weeks. Selecting the users acquired in the first week of September -// cohort is specified in the `cohort` object. Following that cohort for -// the next six weeks is specified in the `cohortsRange` object. For -// examples, see Cohort Report Examples + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CohortSpec: The specification of cohorts for a cohort report. Cohort reports +// create a time series of user retention for the cohort. For example, you +// could select the cohort of users that were acquired in the first week of +// September and follow that cohort for the next six weeks. Selecting the users +// acquired in the first week of September cohort is specified in the `cohort` +// object. Following that cohort for the next six weeks is specified in the +// `cohortsRange` object. For examples, see Cohort Report Examples // (https://developers.google.com/analytics/devguides/reporting/data/v1/advanced#cohort_report_examples). -// The report response could show a weekly time series where say your -// app has retained 60% of this cohort after three weeks and 25% of this -// cohort after six weeks. These two percentages can be calculated by -// the metric `cohortActiveUsers/cohortTotalUsers` and will be separate -// rows in the report. +// The report response could show a weekly time series where say your app has +// retained 60% of this cohort after three weeks and 25% of this cohort after +// six weeks. These two percentages can be calculated by the metric +// `cohortActiveUsers/cohortTotalUsers` and will be separate rows in the +// report. type CohortSpec struct { // CohortReportSettings: Optional settings for a cohort report. CohortReportSettings *CohortReportSettings `json:"cohortReportSettings,omitempty"` - - // Cohorts: Defines the selection criteria to group users into cohorts. - // Most cohort reports define only a single cohort. If multiple cohorts - // are specified, each cohort can be recognized in the report by their - // name. + // Cohorts: Defines the selection criteria to group users into cohorts. Most + // cohort reports define only a single cohort. If multiple cohorts are + // specified, each cohort can be recognized in the report by their name. Cohorts []*Cohort `json:"cohorts,omitempty"` - - // CohortsRange: Cohort reports follow cohorts over an extended - // reporting date range. This range specifies an offset duration to - // follow the cohorts over. + // CohortsRange: Cohort reports follow cohorts over an extended reporting date + // range. This range specifies an offset duration to follow the cohorts over. CohortsRange *CohortsRange `json:"cohortsRange,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CohortReportSettings") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CohortReportSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CohortReportSettings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CohortReportSettings") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CohortSpec) MarshalJSON() ([]byte, error) { +func (s CohortSpec) MarshalJSON() ([]byte, error) { type NoMethod CohortSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CohortsRange: Configures the extended reporting date range for a -// cohort report. Specifies an offset duration to follow the cohorts -// over. +// CohortsRange: Configures the extended reporting date range for a cohort +// report. Specifies an offset duration to follow the cohorts over. type CohortsRange struct { - // EndOffset: Required. `endOffset` specifies the end date of the - // extended reporting date range for a cohort report. `endOffset` can be - // any positive integer but is commonly set to 5 to 10 so that reports - // contain data on the cohort for the next several granularity time - // periods. If `granularity` is `DAILY`, the `endDate` of the extended - // reporting date range is `endDate` of the cohort plus `endOffset` - // days. If `granularity` is `WEEKLY`, the `endDate` of the extended - // reporting date range is `endDate` of the cohort plus `endOffset * 7` - // days. If `granularity` is `MONTHLY`, the `endDate` of the extended - // reporting date range is `endDate` of the cohort plus `endOffset * 30` - // days. + // EndOffset: Required. `endOffset` specifies the end date of the extended + // reporting date range for a cohort report. `endOffset` can be any positive + // integer but is commonly set to 5 to 10 so that reports contain data on the + // cohort for the next several granularity time periods. If `granularity` is + // `DAILY`, the `endDate` of the extended reporting date range is `endDate` of + // the cohort plus `endOffset` days. If `granularity` is `WEEKLY`, the + // `endDate` of the extended reporting date range is `endDate` of the cohort + // plus `endOffset * 7` days. If `granularity` is `MONTHLY`, the `endDate` of + // the extended reporting date range is `endDate` of the cohort plus `endOffset + // * 30` days. EndOffset int64 `json:"endOffset,omitempty"` - - // Granularity: Required. The granularity used to interpret the - // `startOffset` and `endOffset` for the extended reporting date range - // for a cohort report. + // Granularity: Required. The granularity used to interpret the `startOffset` + // and `endOffset` for the extended reporting date range for a cohort report. // // Possible values: // "GRANULARITY_UNSPECIFIED" - Should never be specified. - // "DAILY" - Daily granularity. Commonly used if the cohort's - // `dateRange` is a single day and the request contains `cohortNthDay`. - // "WEEKLY" - Weekly granularity. Commonly used if the cohort's - // `dateRange` is a week in duration (starting on Sunday and ending on - // Saturday) and the request contains `cohortNthWeek`. - // "MONTHLY" - Monthly granularity. Commonly used if the cohort's - // `dateRange` is a month in duration and the request contains - // `cohortNthMonth`. + // "DAILY" - Daily granularity. Commonly used if the cohort's `dateRange` is + // a single day and the request contains `cohortNthDay`. + // "WEEKLY" - Weekly granularity. Commonly used if the cohort's `dateRange` + // is a week in duration (starting on Sunday and ending on Saturday) and the + // request contains `cohortNthWeek`. + // "MONTHLY" - Monthly granularity. Commonly used if the cohort's `dateRange` + // is a month in duration and the request contains `cohortNthMonth`. Granularity string `json:"granularity,omitempty"` - // StartOffset: `startOffset` specifies the start date of the extended - // reporting date range for a cohort report. `startOffset` is commonly - // set to 0 so that reports contain data from the acquisition of the - // cohort forward. If `granularity` is `DAILY`, the `startDate` of the - // extended reporting date range is `startDate` of the cohort plus - // `startOffset` days. If `granularity` is `WEEKLY`, the `startDate` of - // the extended reporting date range is `startDate` of the cohort plus - // `startOffset * 7` days. If `granularity` is `MONTHLY`, the - // `startDate` of the extended reporting date range is `startDate` of - // the cohort plus `startOffset * 30` days. + // reporting date range for a cohort report. `startOffset` is commonly set to 0 + // so that reports contain data from the acquisition of the cohort forward. If + // `granularity` is `DAILY`, the `startDate` of the extended reporting date + // range is `startDate` of the cohort plus `startOffset` days. If `granularity` + // is `WEEKLY`, the `startDate` of the extended reporting date range is + // `startDate` of the cohort plus `startOffset * 7` days. If `granularity` is + // `MONTHLY`, the `startDate` of the extended reporting date range is + // `startDate` of the cohort plus `startOffset * 30` days. StartOffset int64 `json:"startOffset,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndOffset") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndOffset") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndOffset") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CohortsRange) MarshalJSON() ([]byte, error) { +func (s CohortsRange) MarshalJSON() ([]byte, error) { type NoMethod CohortsRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConcatenateExpression: Used to combine dimension values to a single // dimension. type ConcatenateExpression struct { - // Delimiter: The delimiter placed between dimension names. Delimiters - // are often single characters such as "|" or "," but can be longer - // strings. If a dimension value contains the delimiter, both will be - // present in response with no distinction. For example if dimension 1 - // value = "US,FR", dimension 2 value = "JP", and delimiter = ",", then - // the response will contain "US,FR,JP". + // Delimiter: The delimiter placed between dimension names. Delimiters are + // often single characters such as "|" or "," but can be longer strings. If a + // dimension value contains the delimiter, both will be present in response + // with no distinction. For example if dimension 1 value = "US,FR", dimension 2 + // value = "JP", and delimiter = ",", then the response will contain + // "US,FR,JP". Delimiter string `json:"delimiter,omitempty"` - - // DimensionNames: Names of dimensions. The names must refer back to - // names in the dimensions field of the request. + // DimensionNames: Names of dimensions. The names must refer back to names in + // the dimensions field of the request. DimensionNames []string `json:"dimensionNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Delimiter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Delimiter") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Delimiter") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConcatenateExpression) MarshalJSON() ([]byte, error) { +func (s ConcatenateExpression) MarshalJSON() ([]byte, error) { type NoMethod ConcatenateExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DateRange: A contiguous set of days: startDate, startDate + 1, ..., -// endDate. Requests are allowed up to 4 date ranges. +// DateRange: A contiguous set of days: startDate, startDate + 1, ..., endDate. +// Requests are allowed up to 4 date ranges. type DateRange struct { - // EndDate: The inclusive end date for the query in the format - // `YYYY-MM-DD`. Cannot be before `start_date`. The format `NdaysAgo`, - // `yesterday`, or `today` is also accepted, and in that case, the date - // is inferred based on the property's reporting time zone. + // EndDate: The inclusive end date for the query in the format `YYYY-MM-DD`. + // Cannot be before `start_date`. The format `NdaysAgo`, `yesterday`, or + // `today` is also accepted, and in that case, the date is inferred based on + // the property's reporting time zone. EndDate string `json:"endDate,omitempty"` - - // Name: Assigns a name to this date range. The dimension `dateRange` is - // valued to this name in a report response. If set, cannot begin with - // `date_range_` or `RESERVED_`. If not set, date ranges are named by - // their zero based index in the request: `date_range_0`, - // `date_range_1`, etc. + // Name: Assigns a name to this date range. The dimension `dateRange` is valued + // to this name in a report response. If set, cannot begin with `date_range_` + // or `RESERVED_`. If not set, date ranges are named by their zero based index + // in the request: `date_range_0`, `date_range_1`, etc. Name string `json:"name,omitempty"` - // StartDate: The inclusive start date for the query in the format // `YYYY-MM-DD`. Cannot be after `end_date`. The format `NdaysAgo`, - // `yesterday`, or `today` is also accepted, and in that case, the date - // is inferred based on the property's reporting time zone. + // `yesterday`, or `today` is also accepted, and in that case, the date is + // inferred based on the property's reporting time zone. StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DateRange) MarshalJSON() ([]byte, error) { +func (s DateRange) MarshalJSON() ([]byte, error) { type NoMethod DateRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Dimension: Dimensions are attributes of your data. For example, the -// dimension city indicates the city from which an event originates. -// Dimension values in report responses are strings; for example, city -// could be "Paris" or "New York". Requests are allowed up to 8 -// dimensions. +// dimension city indicates the city from which an event originates. Dimension +// values in report responses are strings; for example, city could be "Paris" +// or "New York". Requests are allowed up to 8 dimensions. type Dimension struct { - // DimensionExpression: One dimension can be the result of an expression - // of multiple dimensions. For example, dimension "country, city": + // DimensionExpression: One dimension can be the result of an expression of + // multiple dimensions. For example, dimension "country, city": // concatenate(country, ", ", city). DimensionExpression *DimensionExpression `json:"dimensionExpression,omitempty"` - // Name: The name of the dimension. See the API Dimensions // (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - // for the list of dimension names. If `dimensionExpression` is - // specified, `name` can be any string that you would like. For example - // if a `dimensionExpression` concatenates `country` and `city`, you - // could call that dimension `countryAndCity`. Dimensions are referenced - // by `name` in `dimensionFilter`, `orderBys`, `dimensionExpression`, - // and `pivots`. + // for the list of dimension names. If `dimensionExpression` is specified, + // `name` can be any string that you would like. For example if a + // `dimensionExpression` concatenates `country` and `city`, you could call that + // dimension `countryAndCity`. Dimensions are referenced by `name` in + // `dimensionFilter`, `orderBys`, `dimensionExpression`, and `pivots`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DimensionExpression") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DimensionExpression") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionExpression") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionExpression") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Dimension) MarshalJSON() ([]byte, error) { +func (s Dimension) MarshalJSON() ([]byte, error) { type NoMethod Dimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DimensionExpression: Used to express a dimension which is the result -// of a formula of multiple dimensions. Example usages: 1) -// lower_case(dimension) 2) concatenate(dimension1, symbol, dimension2). +// DimensionExpression: Used to express a dimension which is the result of a +// formula of multiple dimensions. Example usages: 1) lower_case(dimension) 2) +// concatenate(dimension1, symbol, dimension2). type DimensionExpression struct { - // Concatenate: Used to combine dimension values to a single dimension. - // For example, dimension "country, city": concatenate(country, ", ", - // city). + // Concatenate: Used to combine dimension values to a single dimension. For + // example, dimension "country, city": concatenate(country, ", ", city). Concatenate *ConcatenateExpression `json:"concatenate,omitempty"` - // LowerCase: Used to convert a dimension value to lower case. LowerCase *CaseExpression `json:"lowerCase,omitempty"` - // UpperCase: Used to convert a dimension value to upper case. UpperCase *CaseExpression `json:"upperCase,omitempty"` - // ForceSendFields is a list of field names (e.g. "Concatenate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Concatenate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Concatenate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionExpression) MarshalJSON() ([]byte, error) { +func (s DimensionExpression) MarshalJSON() ([]byte, error) { type NoMethod DimensionExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DimensionHeader: Describes a dimension column in the report. -// Dimensions requested in a report produce column entries within rows -// and DimensionHeaders. However, dimensions used exclusively within -// filters or expressions do not produce columns in a report; -// correspondingly, those dimensions do not produce headers. +// DimensionHeader: Describes a dimension column in the report. Dimensions +// requested in a report produce column entries within rows and +// DimensionHeaders. However, dimensions used exclusively within filters or +// expressions do not produce columns in a report; correspondingly, those +// dimensions do not produce headers. type DimensionHeader struct { // Name: The dimension's name. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionHeader) MarshalJSON() ([]byte, error) { +func (s DimensionHeader) MarshalJSON() ([]byte, error) { type NoMethod DimensionHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionMetadata: Explains a dimension. type DimensionMetadata struct { - // ApiName: This dimension's name. Useable in Dimension (#Dimension)'s - // `name`. For example, `eventName`. + // ApiName: This dimension's name. Useable in Dimension (#Dimension)'s `name`. + // For example, `eventName`. ApiName string `json:"apiName,omitempty"` - - // CustomDefinition: True if the dimension is a custom dimension for - // this property. + // CustomDefinition: True if the dimension is a custom dimension for this + // property. CustomDefinition bool `json:"customDefinition,omitempty"` - - // DeprecatedApiNames: Still usable but deprecated names for this - // dimension. If populated, this dimension is available by either - // `apiName` or one of `deprecatedApiNames` for a period of time. After - // the deprecation period, the dimension will be available only by - // `apiName`. + // DeprecatedApiNames: Still usable but deprecated names for this dimension. If + // populated, this dimension is available by either `apiName` or one of + // `deprecatedApiNames` for a period of time. After the deprecation period, the + // dimension will be available only by `apiName`. DeprecatedApiNames []string `json:"deprecatedApiNames,omitempty"` - - // Description: Description of how this dimension is used and - // calculated. + // Description: Description of how this dimension is used and calculated. Description string `json:"description,omitempty"` - - // UiName: This dimension's name within the Google Analytics user - // interface. For example, `Event name`. + // UiName: This dimension's name within the Google Analytics user interface. + // For example, `Event name`. UiName string `json:"uiName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApiName") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionMetadata) MarshalJSON() ([]byte, error) { +func (s DimensionMetadata) MarshalJSON() ([]byte, error) { type NoMethod DimensionMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionOrderBy: Sorts by dimension values. type DimensionOrderBy struct { // DimensionName: A dimension name in the request to order by. DimensionName string `json:"dimensionName,omitempty"` - // OrderType: Controls the rule for dimension value ordering. // // Possible values: // "ORDER_TYPE_UNSPECIFIED" - Unspecified. - // "ALPHANUMERIC" - Alphanumeric sort by Unicode code point. For - // example, "2" < "A" < "X" < "b" < "z". - // "CASE_INSENSITIVE_ALPHANUMERIC" - Case insensitive alphanumeric - // sort by lower case Unicode code point. For example, "2" < "A" < "b" < - // "X" < "z". - // "NUMERIC" - Dimension values are converted to numbers before - // sorting. For example in NUMERIC sort, "25" < "100", and in - // `ALPHANUMERIC` sort, "100" < "25". Non-numeric dimension values all - // have equal ordering value below all numeric values. + // "ALPHANUMERIC" - Alphanumeric sort by Unicode code point. For example, "2" + // < "A" < "X" < "b" < "z". + // "CASE_INSENSITIVE_ALPHANUMERIC" - Case insensitive alphanumeric sort by + // lower case Unicode code point. For example, "2" < "A" < "b" < "X" < "z". + // "NUMERIC" - Dimension values are converted to numbers before sorting. For + // example in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < + // "25". Non-numeric dimension values all have equal ordering value below all + // numeric values. OrderType string `json:"orderType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionOrderBy) MarshalJSON() ([]byte, error) { +func (s DimensionOrderBy) MarshalJSON() ([]byte, error) { type NoMethod DimensionOrderBy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValue: The value of a dimension. type DimensionValue struct { // Value: Value as a string if the dimension type is a string. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Value") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Value") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Value") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValue) MarshalJSON() ([]byte, error) { +func (s DimensionValue) MarshalJSON() ([]byte, error) { type NoMethod DimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Entity: The unique identifier of the property whose events are -// tracked. +// Entity: The unique identifier of the property whose events are tracked. type Entity struct { - // PropertyId: A Google Analytics GA4 property id. To learn more, see - // where to find your Property ID + // PropertyId: A Google Analytics GA4 property id. To learn more, see where to + // find your Property ID // (https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). PropertyId string `json:"propertyId,omitempty"` - // ForceSendFields is a list of field names (e.g. "PropertyId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PropertyId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PropertyId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Entity) MarshalJSON() ([]byte, error) { +func (s Entity) MarshalJSON() ([]byte, error) { type NoMethod Entity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Filter: An expression to filter dimension or metric values. type Filter struct { // BetweenFilter: A filter for two values. BetweenFilter *BetweenFilter `json:"betweenFilter,omitempty"` - - // FieldName: The dimension name or metric name. Must be a name defined - // in dimensions or metrics. + // FieldName: The dimension name or metric name. Must be a name defined in + // dimensions or metrics. FieldName string `json:"fieldName,omitempty"` - // InListFilter: A filter for in list values. InListFilter *InListFilter `json:"inListFilter,omitempty"` - // NumericFilter: A filter for numeric or date values. NumericFilter *NumericFilter `json:"numericFilter,omitempty"` - // StringFilter: Strings related filter. StringFilter *StringFilter `json:"stringFilter,omitempty"` - // ForceSendFields is a list of field names (e.g. "BetweenFilter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BetweenFilter") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BetweenFilter") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Filter) MarshalJSON() ([]byte, error) { +func (s Filter) MarshalJSON() ([]byte, error) { type NoMethod Filter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FilterExpression: To express dimension or metric filters. The fields -// in the same FilterExpression need to be either all dimensions or all -// metrics. +// FilterExpression: To express dimension or metric filters. The fields in the +// same FilterExpression need to be either all dimensions or all metrics. type FilterExpression struct { - // AndGroup: The FilterExpressions in and_group have an AND - // relationship. + // AndGroup: The FilterExpressions in and_group have an AND relationship. AndGroup *FilterExpressionList `json:"andGroup,omitempty"` - - // Filter: A primitive filter. All fields in filter in same - // FilterExpression needs to be either all dimensions or metrics. + // Filter: A primitive filter. All fields in filter in same FilterExpression + // needs to be either all dimensions or metrics. Filter *Filter `json:"filter,omitempty"` - // NotExpression: The FilterExpression is NOT of not_expression. NotExpression *FilterExpression `json:"notExpression,omitempty"` - // OrGroup: The FilterExpressions in or_group have an OR relationship. OrGroup *FilterExpressionList `json:"orGroup,omitempty"` - // ForceSendFields is a list of field names (e.g. "AndGroup") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AndGroup") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AndGroup") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FilterExpression) MarshalJSON() ([]byte, error) { +func (s FilterExpression) MarshalJSON() ([]byte, error) { type NoMethod FilterExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FilterExpressionList: A list of filter expressions. type FilterExpressionList struct { // Expressions: A list of filter expressions. Expressions []*FilterExpression `json:"expressions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expressions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expressions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expressions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FilterExpressionList) MarshalJSON() ([]byte, error) { +func (s FilterExpressionList) MarshalJSON() ([]byte, error) { type NoMethod FilterExpressionList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InListFilter: The result needs to be in a list of string values. type InListFilter struct { // CaseSensitive: If true, the string value is case sensitive. CaseSensitive bool `json:"caseSensitive,omitempty"` - // Values: The list of string values. Must be non-empty. Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "CaseSensitive") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CaseSensitive") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CaseSensitive") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InListFilter) MarshalJSON() ([]byte, error) { +func (s InListFilter) MarshalJSON() ([]byte, error) { type NoMethod InListFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Metadata: The dimensions and metrics currently accepted in reporting @@ -1072,272 +897,213 @@ func (s *InListFilter) MarshalJSON() ([]byte, error) { type Metadata struct { // Dimensions: The dimension descriptions. Dimensions []*DimensionMetadata `json:"dimensions,omitempty"` - // Metrics: The metric descriptions. Metrics []*MetricMetadata `json:"metrics,omitempty"` - // Name: Resource name of this metadata. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Dimensions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimensions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimensions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metadata) MarshalJSON() ([]byte, error) { +func (s Metadata) MarshalJSON() ([]byte, error) { type NoMethod Metadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metric: The quantitative measurements of a report. For example, the -// metric `eventCount` is the total number of events. Requests are -// allowed up to 10 metrics. +// Metric: The quantitative measurements of a report. For example, the metric +// `eventCount` is the total number of events. Requests are allowed up to 10 +// metrics. type Metric struct { - // Expression: A mathematical expression for derived metrics. For - // example, the metric Event count per user is `eventCount/totalUsers`. + // Expression: A mathematical expression for derived metrics. For example, the + // metric Event count per user is `eventCount/totalUsers`. Expression string `json:"expression,omitempty"` - - // Invisible: Indicates if a metric is invisible in the report response. - // If a metric is invisible, the metric will not produce a column in the - // response, but can be used in `metricFilter`, `orderBys`, or a metric - // `expression`. + // Invisible: Indicates if a metric is invisible in the report response. If a + // metric is invisible, the metric will not produce a column in the response, + // but can be used in `metricFilter`, `orderBys`, or a metric `expression`. Invisible bool `json:"invisible,omitempty"` - // Name: The name of the metric. See the API Metrics // (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - // for the list of metric names. If `expression` is specified, `name` - // can be any string that you would like. For example if `expression` is + // for the list of metric names. If `expression` is specified, `name` can be + // any string that you would like. For example if `expression` is // `screenPageViews/sessions`, you could call that metric's name = - // `viewsPerSession`. Metrics are referenced by `name` in - // `metricFilter`, `orderBys`, and metric `expression`. + // `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, + // `orderBys`, and metric `expression`. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metric) MarshalJSON() ([]byte, error) { +func (s Metric) MarshalJSON() ([]byte, error) { type NoMethod Metric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MetricHeader: Describes a metric column in the report. Visible -// metrics requested in a report produce column entries within rows and -// MetricHeaders. However, metrics used exclusively within filters or -// expressions do not produce columns in a report; correspondingly, -// those metrics do not produce headers. +// MetricHeader: Describes a metric column in the report. Visible metrics +// requested in a report produce column entries within rows and MetricHeaders. +// However, metrics used exclusively within filters or expressions do not +// produce columns in a report; correspondingly, those metrics do not produce +// headers. type MetricHeader struct { // Name: The metric's name. Name string `json:"name,omitempty"` - // Type: The metric's data type. // // Possible values: // "METRIC_TYPE_UNSPECIFIED" - Unspecified type. // "TYPE_INTEGER" - Integer type. // "TYPE_FLOAT" - Floating point type. - // "TYPE_SECONDS" - A duration of seconds; a special floating point - // type. - // "TYPE_MILLISECONDS" - A duration in milliseconds; a special - // floating point type. - // "TYPE_MINUTES" - A duration in minutes; a special floating point + // "TYPE_SECONDS" - A duration of seconds; a special floating point type. + // "TYPE_MILLISECONDS" - A duration in milliseconds; a special floating point // type. + // "TYPE_MINUTES" - A duration in minutes; a special floating point type. // "TYPE_HOURS" - A duration in hours; a special floating point type. - // "TYPE_STANDARD" - A custom metric of standard type; a special - // floating point type. - // "TYPE_CURRENCY" - An amount of money; a special floating point - // type. + // "TYPE_STANDARD" - A custom metric of standard type; a special floating + // point type. + // "TYPE_CURRENCY" - An amount of money; a special floating point type. // "TYPE_FEET" - A length in feet; a special floating point type. // "TYPE_MILES" - A length in miles; a special floating point type. // "TYPE_METERS" - A length in meters; a special floating point type. - // "TYPE_KILOMETERS" - A length in kilometers; a special floating - // point type. + // "TYPE_KILOMETERS" - A length in kilometers; a special floating point type. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetricHeader) MarshalJSON() ([]byte, error) { +func (s MetricHeader) MarshalJSON() ([]byte, error) { type NoMethod MetricHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetricMetadata: Explains a metric. type MetricMetadata struct { - // ApiName: A metric name. Useable in Metric (#Metric)'s `name`. For - // example, `eventCount`. + // ApiName: A metric name. Useable in Metric (#Metric)'s `name`. For example, + // `eventCount`. ApiName string `json:"apiName,omitempty"` - - // CustomDefinition: True if the metric is a custom metric for this - // property. + // CustomDefinition: True if the metric is a custom metric for this property. CustomDefinition bool `json:"customDefinition,omitempty"` - - // DeprecatedApiNames: Still usable but deprecated names for this - // metric. If populated, this metric is available by either `apiName` or - // one of `deprecatedApiNames` for a period of time. After the - // deprecation period, the metric will be available only by `apiName`. + // DeprecatedApiNames: Still usable but deprecated names for this metric. If + // populated, this metric is available by either `apiName` or one of + // `deprecatedApiNames` for a period of time. After the deprecation period, the + // metric will be available only by `apiName`. DeprecatedApiNames []string `json:"deprecatedApiNames,omitempty"` - // Description: Description of how this metric is used and calculated. Description string `json:"description,omitempty"` - - // Expression: The mathematical expression for this derived metric. Can - // be used in Metric (#Metric)'s `expression` field for equivalent - // reports. Most metrics are not expressions, and for non-expressions, - // this field is empty. + // Expression: The mathematical expression for this derived metric. Can be used + // in Metric (#Metric)'s `expression` field for equivalent reports. Most + // metrics are not expressions, and for non-expressions, this field is empty. Expression string `json:"expression,omitempty"` - // Type: The type of this metric. // // Possible values: // "METRIC_TYPE_UNSPECIFIED" - Unspecified type. // "TYPE_INTEGER" - Integer type. // "TYPE_FLOAT" - Floating point type. - // "TYPE_SECONDS" - A duration of seconds; a special floating point - // type. - // "TYPE_MILLISECONDS" - A duration in milliseconds; a special - // floating point type. - // "TYPE_MINUTES" - A duration in minutes; a special floating point + // "TYPE_SECONDS" - A duration of seconds; a special floating point type. + // "TYPE_MILLISECONDS" - A duration in milliseconds; a special floating point // type. + // "TYPE_MINUTES" - A duration in minutes; a special floating point type. // "TYPE_HOURS" - A duration in hours; a special floating point type. - // "TYPE_STANDARD" - A custom metric of standard type; a special - // floating point type. - // "TYPE_CURRENCY" - An amount of money; a special floating point - // type. + // "TYPE_STANDARD" - A custom metric of standard type; a special floating + // point type. + // "TYPE_CURRENCY" - An amount of money; a special floating point type. // "TYPE_FEET" - A length in feet; a special floating point type. // "TYPE_MILES" - A length in miles; a special floating point type. // "TYPE_METERS" - A length in meters; a special floating point type. - // "TYPE_KILOMETERS" - A length in kilometers; a special floating - // point type. + // "TYPE_KILOMETERS" - A length in kilometers; a special floating point type. Type string `json:"type,omitempty"` - - // UiName: This metric's name within the Google Analytics user - // interface. For example, `Event count`. + // UiName: This metric's name within the Google Analytics user interface. For + // example, `Event count`. UiName string `json:"uiName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApiName") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetricMetadata) MarshalJSON() ([]byte, error) { +func (s MetricMetadata) MarshalJSON() ([]byte, error) { type NoMethod MetricMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetricOrderBy: Sorts by metric values. type MetricOrderBy struct { // MetricName: A metric name in the request to order by. MetricName string `json:"metricName,omitempty"` - // ForceSendFields is a list of field names (e.g. "MetricName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MetricName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MetricName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetricOrderBy) MarshalJSON() ([]byte, error) { +func (s MetricOrderBy) MarshalJSON() ([]byte, error) { type NoMethod MetricOrderBy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetricValue: The value of a metric. type MetricValue struct { // Value: Measurement value. See MetricHeader for type. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Value") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Value") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Value") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetricValue) MarshalJSON() ([]byte, error) { +func (s MetricValue) MarshalJSON() ([]byte, error) { type NoMethod MetricValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NumericFilter: Filters for numeric or date values. @@ -1352,62 +1118,48 @@ type NumericFilter struct { // "GREATER_THAN" - Greater than // "GREATER_THAN_OR_EQUAL" - Greater than or equal Operation string `json:"operation,omitempty"` - // Value: A numeric value or a date value. Value *NumericValue `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Operation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Operation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Operation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NumericFilter) MarshalJSON() ([]byte, error) { +func (s NumericFilter) MarshalJSON() ([]byte, error) { type NoMethod NumericFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NumericValue: To represent a number. type NumericValue struct { // DoubleValue: Double value DoubleValue float64 `json:"doubleValue,omitempty"` - // Int64Value: Integer value Int64Value int64 `json:"int64Value,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "DoubleValue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoubleValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DoubleValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NumericValue) MarshalJSON() ([]byte, error) { +func (s NumericValue) MarshalJSON() ([]byte, error) { type NoMethod NumericValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *NumericValue) UnmarshalJSON(data []byte) error { @@ -1428,59 +1180,46 @@ func (s *NumericValue) UnmarshalJSON(data []byte) error { type OrderBy struct { // Desc: If true, sorts by descending order. Desc bool `json:"desc,omitempty"` - // Dimension: Sorts results by a dimension's values. Dimension *DimensionOrderBy `json:"dimension,omitempty"` - // Metric: Sorts results by a metric's values. Metric *MetricOrderBy `json:"metric,omitempty"` - - // Pivot: Sorts results by a metric's values within a pivot column - // group. + // Pivot: Sorts results by a metric's values within a pivot column group. Pivot *PivotOrderBy `json:"pivot,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Desc") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Desc") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Desc") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Desc") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderBy) MarshalJSON() ([]byte, error) { +func (s OrderBy) MarshalJSON() ([]byte, error) { type NoMethod OrderBy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Pivot: Describes the visible dimension columns and rows in the report // response. type Pivot struct { - // FieldNames: Dimension names for visible columns in the report - // response. Including "dateRange" produces a date range column; for - // each row in the response, dimension values in the date range column - // will indicate the corresponding date range from the request. + // FieldNames: Dimension names for visible columns in the report response. + // Including "dateRange" produces a date range column; for each row in the + // response, dimension values in the date range column will indicate the + // corresponding date range from the request. FieldNames []string `json:"fieldNames,omitempty"` - - // Limit: The number of rows to return in this pivot. The `limit` - // parameter is required. A `limit` of 10,000 is common for single pivot - // requests. The product of the `limit` for each `pivot` in a - // `RunPivotReportRequest` must not exceed 100,000. For example, a two - // pivot request with `limit: 1000` in each pivot will fail because the - // product is `1,000,000`. + // Limit: The number of rows to return in this pivot. The `limit` parameter is + // required. A `limit` of 10,000 is common for single pivot requests. The + // product of the `limit` for each `pivot` in a `RunPivotReportRequest` must + // not exceed 100,000. For example, a two pivot request with `limit: 1000` in + // each pivot will fail because the product is `1,000,000`. Limit int64 `json:"limit,omitempty,string"` - - // MetricAggregations: Aggregate the metrics by dimensions in this pivot - // using the specified metric_aggregations. + // MetricAggregations: Aggregate the metrics by dimensions in this pivot using + // the specified metric_aggregations. // // Possible values: // "METRIC_AGGREGATION_UNSPECIFIED" - Unspecified operator. @@ -1489,69 +1228,52 @@ type Pivot struct { // "MAXIMUM" - Maximum operator. // "COUNT" - Count operator. MetricAggregations []string `json:"metricAggregations,omitempty"` - - // Offset: The row count of the start row. The first row is counted as - // row 0. + // Offset: The row count of the start row. The first row is counted as row 0. Offset int64 `json:"offset,omitempty,string"` - - // OrderBys: Specifies how dimensions are ordered in the pivot. In the - // first Pivot, the OrderBys determine Row and PivotDimensionHeader - // ordering; in subsequent Pivots, the OrderBys determine only - // PivotDimensionHeader ordering. Dimensions specified in these OrderBys - // must be a subset of Pivot.field_names. + // OrderBys: Specifies how dimensions are ordered in the pivot. In the first + // Pivot, the OrderBys determine Row and PivotDimensionHeader ordering; in + // subsequent Pivots, the OrderBys determine only PivotDimensionHeader + // ordering. Dimensions specified in these OrderBys must be a subset of + // Pivot.field_names. OrderBys []*OrderBy `json:"orderBys,omitempty"` - // ForceSendFields is a list of field names (e.g. "FieldNames") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FieldNames") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FieldNames") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pivot) MarshalJSON() ([]byte, error) { +func (s Pivot) MarshalJSON() ([]byte, error) { type NoMethod Pivot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PivotDimensionHeader: Summarizes dimension values from a row for this -// pivot. +// PivotDimensionHeader: Summarizes dimension values from a row for this pivot. type PivotDimensionHeader struct { // DimensionValues: Values of multiple dimensions in a pivot. DimensionValues []*DimensionValue `json:"dimensionValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionValues") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionValues") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PivotDimensionHeader) MarshalJSON() ([]byte, error) { +func (s PivotDimensionHeader) MarshalJSON() ([]byte, error) { type NoMethod PivotDimensionHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PivotHeader: Dimensions' values in a single pivot. @@ -1559,452 +1281,347 @@ type PivotHeader struct { // PivotDimensionHeaders: The size is the same as the cardinality of the // corresponding dimension combinations. PivotDimensionHeaders []*PivotDimensionHeader `json:"pivotDimensionHeaders,omitempty"` - - // RowCount: The cardinality of the pivot. The total number of rows for - // this pivot's fields regardless of how the parameters `offset` and - // `limit` are specified in the request. + // RowCount: The cardinality of the pivot. The total number of rows for this + // pivot's fields regardless of how the parameters `offset` and `limit` are + // specified in the request. RowCount int64 `json:"rowCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PivotDimensionHeaders") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "PivotDimensionHeaders") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PivotDimensionHeaders") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PivotHeader) MarshalJSON() ([]byte, error) { +func (s PivotHeader) MarshalJSON() ([]byte, error) { type NoMethod PivotHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PivotOrderBy: Sorts by a pivot column group. type PivotOrderBy struct { - // MetricName: In the response to order by, order rows by this column. - // Must be a metric name from the request. + // MetricName: In the response to order by, order rows by this column. Must be + // a metric name from the request. MetricName string `json:"metricName,omitempty"` - // PivotSelections: Used to select a dimension name and value pivot. If - // multiple pivot selections are given, the sort occurs on rows where - // all pivot selection dimension name and value pairs match the row's - // dimension name and value pair. + // multiple pivot selections are given, the sort occurs on rows where all pivot + // selection dimension name and value pairs match the row's dimension name and + // value pair. PivotSelections []*PivotSelection `json:"pivotSelections,omitempty"` - // ForceSendFields is a list of field names (e.g. "MetricName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MetricName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MetricName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PivotOrderBy) MarshalJSON() ([]byte, error) { +func (s PivotOrderBy) MarshalJSON() ([]byte, error) { type NoMethod PivotOrderBy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PivotSelection: A pair of dimension names and values. Rows with this -// dimension pivot pair are ordered by the metric's value. For example -// if pivots = {{"browser", "Chrome"}} and metric_name = "Sessions", -// then the rows will be sorted based on Sessions in Chrome. -// ---------|----------|----------------|----------|---------------- | -// Chrome | Chrome | Safari | Safari -// ---------|----------|----------------|----------|---------------- -// Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions -// ---------|----------|----------------|----------|---------------- US -// | 2 | 2 | 3 | 1 -// ---------|----------|----------------|----------|---------------- +// dimension pivot pair are ordered by the metric's value. For example if +// pivots = {{"browser", "Chrome"}} and metric_name = "Sessions", then the rows +// will be sorted based on Sessions in Chrome. +// ---------|----------|----------------|----------|---------------- | Chrome | +// Chrome | Safari | Safari +// ---------|----------|----------------|----------|---------------- Country | +// Sessions | Pages/Sessions | Sessions | Pages/Sessions +// ---------|----------|----------------|----------|---------------- US | 2 | 2 +// | 3 | 1 ---------|----------|----------------|----------|---------------- // Canada | 3 | 1 | 4 | 1 // ---------|----------|----------------|----------|---------------- type PivotSelection struct { // DimensionName: Must be a dimension name from the request. DimensionName string `json:"dimensionName,omitempty"` - // DimensionValue: Order by only when the named dimension is this value. DimensionValue string `json:"dimensionValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PivotSelection) MarshalJSON() ([]byte, error) { +func (s PivotSelection) MarshalJSON() ([]byte, error) { type NoMethod PivotSelection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PropertyQuota: Current state of all quotas for this Analytics -// Property. If any quota for a property is exhausted, all requests to -// that property will return Resource Exhausted errors. +// PropertyQuota: Current state of all quotas for this Analytics Property. If +// any quota for a property is exhausted, all requests to that property will +// return Resource Exhausted errors. type PropertyQuota struct { // ConcurrentRequests: Standard Analytics Properties can send up to 10 - // concurrent requests; Analytics 360 Properties can use up to 50 - // concurrent requests. + // concurrent requests; Analytics 360 Properties can use up to 50 concurrent + // requests. ConcurrentRequests *QuotaStatus `json:"concurrentRequests,omitempty"` - - // PotentiallyThresholdedRequestsPerHour: Analytics Properties can send - // up to 120 requests with potentially thresholded dimensions per hour. - // In a batch request, each report request is individually counted for - // this quota if the request contains potentially thresholded - // dimensions. + // PotentiallyThresholdedRequestsPerHour: Analytics Properties can send up to + // 120 requests with potentially thresholded dimensions per hour. In a batch + // request, each report request is individually counted for this quota if the + // request contains potentially thresholded dimensions. PotentiallyThresholdedRequestsPerHour *QuotaStatus `json:"potentiallyThresholdedRequestsPerHour,omitempty"` - - // ServerErrorsPerProjectPerHour: Standard Analytics Properties and - // cloud project pairs can have up to 10 server errors per hour; - // Analytics 360 Properties and cloud project pairs can have up to 50 - // server errors per hour. + // ServerErrorsPerProjectPerHour: Standard Analytics Properties and cloud + // project pairs can have up to 10 server errors per hour; Analytics 360 + // Properties and cloud project pairs can have up to 50 server errors per hour. ServerErrorsPerProjectPerHour *QuotaStatus `json:"serverErrorsPerProjectPerHour,omitempty"` - - // TokensPerDay: Standard Analytics Properties can use up to 25,000 - // tokens per day; Analytics 360 Properties can use 250,000 tokens per - // day. Most requests consume fewer than 10 tokens. + // TokensPerDay: Standard Analytics Properties can use up to 25,000 tokens per + // day; Analytics 360 Properties can use 250,000 tokens per day. Most requests + // consume fewer than 10 tokens. TokensPerDay *QuotaStatus `json:"tokensPerDay,omitempty"` - - // TokensPerHour: Standard Analytics Properties can use up to 5,000 - // tokens per hour; Analytics 360 Properties can use 50,000 tokens per - // hour. An API request consumes a single number of tokens, and that - // number is deducted from both the hourly and daily quotas. + // TokensPerHour: Standard Analytics Properties can use up to 5,000 tokens per + // hour; Analytics 360 Properties can use 50,000 tokens per hour. An API + // request consumes a single number of tokens, and that number is deducted from + // both the hourly and daily quotas. TokensPerHour *QuotaStatus `json:"tokensPerHour,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConcurrentRequests") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ConcurrentRequests") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConcurrentRequests") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConcurrentRequests") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PropertyQuota) MarshalJSON() ([]byte, error) { +func (s PropertyQuota) MarshalJSON() ([]byte, error) { type NoMethod PropertyQuota - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // QuotaStatus: Current state for a particular quota group. type QuotaStatus struct { // Consumed: Quota consumed by this request. Consumed int64 `json:"consumed,omitempty"` - // Remaining: Quota remaining after this request. Remaining int64 `json:"remaining,omitempty"` - // ForceSendFields is a list of field names (e.g. "Consumed") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Consumed") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Consumed") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *QuotaStatus) MarshalJSON() ([]byte, error) { +func (s QuotaStatus) MarshalJSON() ([]byte, error) { type NoMethod QuotaStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResponseMetaData: Response's metadata carrying additional information -// about the report content. +// ResponseMetaData: Response's metadata carrying additional information about +// the report content. type ResponseMetaData struct { // DataLossFromOtherRow: If true, indicates some buckets of dimension // combinations are rolled into "(other)" row. This can happen for high // cardinality reports. DataLossFromOtherRow bool `json:"dataLossFromOtherRow,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DataLossFromOtherRow") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DataLossFromOtherRow") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataLossFromOtherRow") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DataLossFromOtherRow") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponseMetaData) MarshalJSON() ([]byte, error) { +func (s ResponseMetaData) MarshalJSON() ([]byte, error) { type NoMethod ResponseMetaData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Row: Report data for each row. For example if RunReportRequest -// contains: ```none "dimensions": [ { "name": "eventName" }, { "name": -// "countryId" } ], "metrics": [ { "name": "eventCount" } ] ``` One row -// with 'in_app_purchase' as the eventName, 'JP' as the countryId, and -// 15 as the eventCount, would be: ```none "dimensionValues": [ { -// "value": "in_app_purchase" }, { "value": "JP" } ], "metricValues": [ -// { "value": "15" } ] ``` +// Row: Report data for each row. For example if RunReportRequest contains: +// ```none "dimensions": [ { "name": "eventName" }, { "name": "countryId" } ], +// "metrics": [ { "name": "eventCount" } ] ``` One row with 'in_app_purchase' +// as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: +// ```none "dimensionValues": [ { "value": "in_app_purchase" }, { "value": "JP" +// } ], "metricValues": [ { "value": "15" } ] ``` type Row struct { - // DimensionValues: List of requested dimension values. In a - // PivotReport, dimension_values are only listed for dimensions included - // in a pivot. + // DimensionValues: List of requested dimension values. In a PivotReport, + // dimension_values are only listed for dimensions included in a pivot. DimensionValues []*DimensionValue `json:"dimensionValues,omitempty"` - // MetricValues: List of requested visible metric values. MetricValues []*MetricValue `json:"metricValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionValues") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionValues") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Row) MarshalJSON() ([]byte, error) { +func (s Row) MarshalJSON() ([]byte, error) { type NoMethod Row - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RunPivotReportRequest: The request to generate a pivot report. type RunPivotReportRequest struct { - // CohortSpec: Cohort group associated with this request. If there is a - // cohort group in the request the 'cohort' dimension must be present. + // CohortSpec: Cohort group associated with this request. If there is a cohort + // group in the request the 'cohort' dimension must be present. CohortSpec *CohortSpec `json:"cohortSpec,omitempty"` - - // CurrencyCode: A currency code in ISO4217 format, such as "AED", - // "USD", "JPY". If the field is empty, the report uses the entity's - // default currency. + // CurrencyCode: A currency code in ISO4217 format, such as "AED", "USD", + // "JPY". If the field is empty, the report uses the entity's default currency. CurrencyCode string `json:"currencyCode,omitempty"` - // DateRanges: The date range to retrieve event data for the report. If - // multiple date ranges are specified, event data from each date range - // is used in the report. A special dimension with field name - // "dateRange" can be included in a Pivot's field names; if included, - // the report compares between date ranges. In a cohort request, this - // `dateRanges` must be unspecified. + // multiple date ranges are specified, event data from each date range is used + // in the report. A special dimension with field name "dateRange" can be + // included in a Pivot's field names; if included, the report compares between + // date ranges. In a cohort request, this `dateRanges` must be unspecified. DateRanges []*DateRange `json:"dateRanges,omitempty"` - // DimensionFilter: The filter clause of dimensions. Dimensions must be - // requested to be used in this filter. Metrics cannot be used in this - // filter. + // requested to be used in this filter. Metrics cannot be used in this filter. DimensionFilter *FilterExpression `json:"dimensionFilter,omitempty"` - - // Dimensions: The dimensions requested. All defined dimensions must be - // used by one of the following: dimension_expression, dimension_filter, - // pivots, order_bys. + // Dimensions: The dimensions requested. All defined dimensions must be used by + // one of the following: dimension_expression, dimension_filter, pivots, + // order_bys. Dimensions []*Dimension `json:"dimensions,omitempty"` - - // Entity: A property whose events are tracked. Within a batch request, - // this entity should either be unspecified or consistent with the - // batch-level entity. + // Entity: A property whose events are tracked. Within a batch request, this + // entity should either be unspecified or consistent with the batch-level + // entity. Entity *Entity `json:"entity,omitempty"` - - // KeepEmptyRows: If false or unspecified, each row with all metrics - // equal to 0 will not be returned. If true, these rows will be returned - // if they are not separately removed by a filter. + // KeepEmptyRows: If false or unspecified, each row with all metrics equal to 0 + // will not be returned. If true, these rows will be returned if they are not + // separately removed by a filter. KeepEmptyRows bool `json:"keepEmptyRows,omitempty"` - - // MetricFilter: The filter clause of metrics. Applied at post - // aggregation phase, similar to SQL having-clause. Metrics must be - // requested to be used in this filter. Dimensions cannot be used in - // this filter. + // MetricFilter: The filter clause of metrics. Applied at post aggregation + // phase, similar to SQL having-clause. Metrics must be requested to be used in + // this filter. Dimensions cannot be used in this filter. MetricFilter *FilterExpression `json:"metricFilter,omitempty"` - - // Metrics: The metrics requested, at least one metric needs to be - // specified. All defined metrics must be used by one of the following: - // metric_expression, metric_filter, order_bys. + // Metrics: The metrics requested, at least one metric needs to be specified. + // All defined metrics must be used by one of the following: metric_expression, + // metric_filter, order_bys. Metrics []*Metric `json:"metrics,omitempty"` - - // Pivots: Describes the visual format of the report's dimensions in - // columns or rows. The union of the fieldNames (dimension names) in all - // pivots must be a subset of dimension names defined in Dimensions. No - // two pivots can share a dimension. A dimension is only visible if it - // appears in a pivot. + // Pivots: Describes the visual format of the report's dimensions in columns or + // rows. The union of the fieldNames (dimension names) in all pivots must be a + // subset of dimension names defined in Dimensions. No two pivots can share a + // dimension. A dimension is only visible if it appears in a pivot. Pivots []*Pivot `json:"pivots,omitempty"` - - // ReturnPropertyQuota: Toggles whether to return the current state of - // this Analytics Property's quota. Quota is returned in PropertyQuota + // ReturnPropertyQuota: Toggles whether to return the current state of this + // Analytics Property's quota. Quota is returned in PropertyQuota // (#PropertyQuota). ReturnPropertyQuota bool `json:"returnPropertyQuota,omitempty"` - // ForceSendFields is a list of field names (e.g. "CohortSpec") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CohortSpec") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CohortSpec") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunPivotReportRequest) MarshalJSON() ([]byte, error) { +func (s RunPivotReportRequest) MarshalJSON() ([]byte, error) { type NoMethod RunPivotReportRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RunPivotReportResponse: The response pivot report table corresponding -// to a pivot request. +// RunPivotReportResponse: The response pivot report table corresponding to a +// pivot request. type RunPivotReportResponse struct { // Aggregates: Aggregation of metric values. Can be totals, minimums, or // maximums. The returned aggregations are controlled by the - // metric_aggregations in the pivot. The type of aggregation returned in - // each row is shown by the dimension_values which are set to - // "RESERVED_". + // metric_aggregations in the pivot. The type of aggregation returned in each + // row is shown by the dimension_values which are set to "RESERVED_". Aggregates []*Row `json:"aggregates,omitempty"` - // DimensionHeaders: Describes dimension columns. The number of - // DimensionHeaders and ordering of DimensionHeaders matches the - // dimensions present in rows. + // DimensionHeaders and ordering of DimensionHeaders matches the dimensions + // present in rows. DimensionHeaders []*DimensionHeader `json:"dimensionHeaders,omitempty"` - - // Kind: Identifies what kind of resource this message is. This `kind` - // is always the fixed string "analyticsData#runPivotReport". Useful to + // Kind: Identifies what kind of resource this message is. This `kind` is + // always the fixed string "analyticsData#runPivotReport". Useful to // distinguish between response types in JSON. Kind string `json:"kind,omitempty"` - // Metadata: Metadata for the report. Metadata *ResponseMetaData `json:"metadata,omitempty"` - - // MetricHeaders: Describes metric columns. The number of MetricHeaders - // and ordering of MetricHeaders matches the metrics present in rows. + // MetricHeaders: Describes metric columns. The number of MetricHeaders and + // ordering of MetricHeaders matches the metrics present in rows. MetricHeaders []*MetricHeader `json:"metricHeaders,omitempty"` - - // PivotHeaders: Summarizes the columns and rows created by a pivot. - // Each pivot in the request produces one header in the response. If we - // have a request like this: "pivots": [{ "fieldNames": ["country", - // "city"] }, { "fieldNames": "eventName" }] We will have the following - // `pivotHeaders` in the response: "pivotHeaders" : [{ - // "dimensionHeaders": [{ "dimensionValues": [ { "value": "United - // Kingdom" }, { "value": "London" } ] }, { "dimensionValues": [ { - // "value": "Japan" }, { "value": "Osaka" } ] }] }, { - // "dimensionHeaders": [{ "dimensionValues": [{ "value": "session_start" - // }] }, { "dimensionValues": [{ "value": "scroll" }] }] }] + // PivotHeaders: Summarizes the columns and rows created by a pivot. Each pivot + // in the request produces one header in the response. If we have a request + // like this: "pivots": [{ "fieldNames": ["country", "city"] }, { "fieldNames": + // "eventName" }] We will have the following `pivotHeaders` in the response: + // "pivotHeaders" : [{ "dimensionHeaders": [{ "dimensionValues": [ { "value": + // "United Kingdom" }, { "value": "London" } ] }, { "dimensionValues": [ { + // "value": "Japan" }, { "value": "Osaka" } ] }] }, { "dimensionHeaders": [{ + // "dimensionValues": [{ "value": "session_start" }] }, { "dimensionValues": [{ + // "value": "scroll" }] }] }] PivotHeaders []*PivotHeader `json:"pivotHeaders,omitempty"` - - // PropertyQuota: This Analytics Property's quota state including this - // request. + // PropertyQuota: This Analytics Property's quota state including this request. PropertyQuota *PropertyQuota `json:"propertyQuota,omitempty"` - - // Rows: Rows of dimension value combinations and metric values in the - // report. + // Rows: Rows of dimension value combinations and metric values in the report. Rows []*Row `json:"rows,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Aggregates") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Aggregates") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Aggregates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunPivotReportResponse) MarshalJSON() ([]byte, error) { +func (s RunPivotReportResponse) MarshalJSON() ([]byte, error) { type NoMethod RunPivotReportResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RunRealtimeReportRequest: The request to generate a realtime report. type RunRealtimeReportRequest struct { // DimensionFilter: The filter clause of dimensions. Dimensions must be - // requested to be used in this filter. Metrics cannot be used in this - // filter. + // requested to be used in this filter. Metrics cannot be used in this filter. DimensionFilter *FilterExpression `json:"dimensionFilter,omitempty"` - // Dimensions: The dimensions requested and displayed. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Limit: The number of rows to return. If the `limit` parameter is - // unspecified, 10,000 rows are returned. The API returns a maximum of - // 100,000 rows per request, no matter how many you ask for. + // unspecified, 10,000 rows are returned. The API returns a maximum of 100,000 + // rows per request, no matter how many you ask for. Limit int64 `json:"limit,omitempty,string"` - - // MetricAggregations: Aggregation of metrics. Aggregated metric values - // will be shown in rows where the dimension_values are set to + // MetricAggregations: Aggregation of metrics. Aggregated metric values will be + // shown in rows where the dimension_values are set to // "RESERVED_(MetricAggregation)". // // Possible values: @@ -2014,161 +1631,122 @@ type RunRealtimeReportRequest struct { // "MAXIMUM" - Maximum operator. // "COUNT" - Count operator. MetricAggregations []string `json:"metricAggregations,omitempty"` - - // MetricFilter: The filter clause of metrics. Applied at post - // aggregation phase, similar to SQL having-clause. Metrics must be - // requested to be used in this filter. Dimensions cannot be used in - // this filter. + // MetricFilter: The filter clause of metrics. Applied at post aggregation + // phase, similar to SQL having-clause. Metrics must be requested to be used in + // this filter. Dimensions cannot be used in this filter. MetricFilter *FilterExpression `json:"metricFilter,omitempty"` - // Metrics: The metrics requested and displayed. Metrics []*Metric `json:"metrics,omitempty"` - // OrderBys: Specifies how rows are ordered in the response. OrderBys []*OrderBy `json:"orderBys,omitempty"` - - // ReturnPropertyQuota: Toggles whether to return the current state of - // this Analytics Property's Realtime quota. Quota is returned in - // PropertyQuota (#PropertyQuota). + // ReturnPropertyQuota: Toggles whether to return the current state of this + // Analytics Property's Realtime quota. Quota is returned in PropertyQuota + // (#PropertyQuota). ReturnPropertyQuota bool `json:"returnPropertyQuota,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilter") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilter") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunRealtimeReportRequest) MarshalJSON() ([]byte, error) { +func (s RunRealtimeReportRequest) MarshalJSON() ([]byte, error) { type NoMethod RunRealtimeReportRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RunRealtimeReportResponse: The response realtime report table -// corresponding to a request. +// RunRealtimeReportResponse: The response realtime report table corresponding +// to a request. type RunRealtimeReportResponse struct { // DimensionHeaders: Describes dimension columns. The number of - // DimensionHeaders and ordering of DimensionHeaders matches the - // dimensions present in rows. + // DimensionHeaders and ordering of DimensionHeaders matches the dimensions + // present in rows. DimensionHeaders []*DimensionHeader `json:"dimensionHeaders,omitempty"` - - // Kind: Identifies what kind of resource this message is. This `kind` - // is always the fixed string "analyticsData#runRealtimeReport". Useful - // to distinguish between response types in JSON. + // Kind: Identifies what kind of resource this message is. This `kind` is + // always the fixed string "analyticsData#runRealtimeReport". Useful to + // distinguish between response types in JSON. Kind string `json:"kind,omitempty"` - // Maximums: If requested, the maximum values of metrics. Maximums []*Row `json:"maximums,omitempty"` - - // MetricHeaders: Describes metric columns. The number of MetricHeaders - // and ordering of MetricHeaders matches the metrics present in rows. + // MetricHeaders: Describes metric columns. The number of MetricHeaders and + // ordering of MetricHeaders matches the metrics present in rows. MetricHeaders []*MetricHeader `json:"metricHeaders,omitempty"` - // Minimums: If requested, the minimum values of metrics. Minimums []*Row `json:"minimums,omitempty"` - - // PropertyQuota: This Analytics Property's Realtime quota state - // including this request. + // PropertyQuota: This Analytics Property's Realtime quota state including this + // request. PropertyQuota *PropertyQuota `json:"propertyQuota,omitempty"` - - // RowCount: The total number of rows in the query result, regardless of - // the number of rows returned in the response. For example if a query - // returns 175 rows and includes limit = 50 in the API request, the - // response will contain row_count = 175 but only 50 rows. + // RowCount: The total number of rows in the query result, regardless of the + // number of rows returned in the response. For example if a query returns 175 + // rows and includes limit = 50 in the API request, the response will contain + // row_count = 175 but only 50 rows. RowCount int64 `json:"rowCount,omitempty"` - - // Rows: Rows of dimension value combinations and metric values in the - // report. + // Rows: Rows of dimension value combinations and metric values in the report. Rows []*Row `json:"rows,omitempty"` - // Totals: If requested, the totaled values of metrics. Totals []*Row `json:"totals,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DimensionHeaders") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionHeaders") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionHeaders") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunRealtimeReportResponse) MarshalJSON() ([]byte, error) { +func (s RunRealtimeReportResponse) MarshalJSON() ([]byte, error) { type NoMethod RunRealtimeReportResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RunReportRequest: The request to generate a report. type RunReportRequest struct { - // CohortSpec: Cohort group associated with this request. If there is a - // cohort group in the request the 'cohort' dimension must be present. + // CohortSpec: Cohort group associated with this request. If there is a cohort + // group in the request the 'cohort' dimension must be present. CohortSpec *CohortSpec `json:"cohortSpec,omitempty"` - - // CurrencyCode: A currency code in ISO4217 format, such as "AED", - // "USD", "JPY". If the field is empty, the report uses the entity's - // default currency. + // CurrencyCode: A currency code in ISO4217 format, such as "AED", "USD", + // "JPY". If the field is empty, the report uses the entity's default currency. CurrencyCode string `json:"currencyCode,omitempty"` - // DateRanges: Date ranges of data to read. If multiple date ranges are - // requested, each response row will contain a zero based date range - // index. If two date ranges overlap, the event data for the overlapping - // days is included in the response rows for both date ranges. In a - // cohort request, this `dateRanges` must be unspecified. + // requested, each response row will contain a zero based date range index. If + // two date ranges overlap, the event data for the overlapping days is included + // in the response rows for both date ranges. In a cohort request, this + // `dateRanges` must be unspecified. DateRanges []*DateRange `json:"dateRanges,omitempty"` - // DimensionFilter: The filter clause of dimensions. Dimensions must be - // requested to be used in this filter. Metrics cannot be used in this - // filter. + // requested to be used in this filter. Metrics cannot be used in this filter. DimensionFilter *FilterExpression `json:"dimensionFilter,omitempty"` - // Dimensions: The dimensions requested and displayed. Dimensions []*Dimension `json:"dimensions,omitempty"` - - // Entity: A property whose events are tracked. Within a batch request, - // this entity should either be unspecified or consistent with the - // batch-level entity. + // Entity: A property whose events are tracked. Within a batch request, this + // entity should either be unspecified or consistent with the batch-level + // entity. Entity *Entity `json:"entity,omitempty"` - - // KeepEmptyRows: If false or unspecified, each row with all metrics - // equal to 0 will not be returned. If true, these rows will be returned - // if they are not separately removed by a filter. + // KeepEmptyRows: If false or unspecified, each row with all metrics equal to 0 + // will not be returned. If true, these rows will be returned if they are not + // separately removed by a filter. KeepEmptyRows bool `json:"keepEmptyRows,omitempty"` - // Limit: The number of rows to return. If the `limit` parameter is - // unspecified, 10,000 rows are returned. The API returns a maximum of - // 100,000 rows per request, no matter how many you ask for. To learn - // more about this pagination parameter, see Pagination + // unspecified, 10,000 rows are returned. The API returns a maximum of 100,000 + // rows per request, no matter how many you ask for. To learn more about this + // pagination parameter, see Pagination // (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). Limit int64 `json:"limit,omitempty,string"` - - // MetricAggregations: Aggregation of metrics. Aggregated metric values - // will be shown in rows where the dimension_values are set to + // MetricAggregations: Aggregation of metrics. Aggregated metric values will be + // shown in rows where the dimension_values are set to // "RESERVED_(MetricAggregation)". // // Possible values: @@ -2178,130 +1756,97 @@ type RunReportRequest struct { // "MAXIMUM" - Maximum operator. // "COUNT" - Count operator. MetricAggregations []string `json:"metricAggregations,omitempty"` - - // MetricFilter: The filter clause of metrics. Applied at post - // aggregation phase, similar to SQL having-clause. Metrics must be - // requested to be used in this filter. Dimensions cannot be used in - // this filter. + // MetricFilter: The filter clause of metrics. Applied at post aggregation + // phase, similar to SQL having-clause. Metrics must be requested to be used in + // this filter. Dimensions cannot be used in this filter. MetricFilter *FilterExpression `json:"metricFilter,omitempty"` - // Metrics: The metrics requested and displayed. Metrics []*Metric `json:"metrics,omitempty"` - - // Offset: The row count of the start row. The first row is counted as - // row 0. To learn more about this pagination parameter, see Pagination + // Offset: The row count of the start row. The first row is counted as row 0. + // To learn more about this pagination parameter, see Pagination // (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). Offset int64 `json:"offset,omitempty,string"` - // OrderBys: Specifies how rows are ordered in the response. OrderBys []*OrderBy `json:"orderBys,omitempty"` - - // ReturnPropertyQuota: Toggles whether to return the current state of - // this Analytics Property's quota. Quota is returned in PropertyQuota + // ReturnPropertyQuota: Toggles whether to return the current state of this + // Analytics Property's quota. Quota is returned in PropertyQuota // (#PropertyQuota). ReturnPropertyQuota bool `json:"returnPropertyQuota,omitempty"` - // ForceSendFields is a list of field names (e.g. "CohortSpec") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CohortSpec") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CohortSpec") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunReportRequest) MarshalJSON() ([]byte, error) { +func (s RunReportRequest) MarshalJSON() ([]byte, error) { type NoMethod RunReportRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RunReportResponse: The response report table corresponding to a -// request. +// RunReportResponse: The response report table corresponding to a request. type RunReportResponse struct { // DimensionHeaders: Describes dimension columns. The number of - // DimensionHeaders and ordering of DimensionHeaders matches the - // dimensions present in rows. + // DimensionHeaders and ordering of DimensionHeaders matches the dimensions + // present in rows. DimensionHeaders []*DimensionHeader `json:"dimensionHeaders,omitempty"` - - // Kind: Identifies what kind of resource this message is. This `kind` - // is always the fixed string "analyticsData#runReport". Useful to - // distinguish between response types in JSON. + // Kind: Identifies what kind of resource this message is. This `kind` is + // always the fixed string "analyticsData#runReport". Useful to distinguish + // between response types in JSON. Kind string `json:"kind,omitempty"` - // Maximums: If requested, the maximum values of metrics. Maximums []*Row `json:"maximums,omitempty"` - // Metadata: Metadata for the report. Metadata *ResponseMetaData `json:"metadata,omitempty"` - - // MetricHeaders: Describes metric columns. The number of MetricHeaders - // and ordering of MetricHeaders matches the metrics present in rows. + // MetricHeaders: Describes metric columns. The number of MetricHeaders and + // ordering of MetricHeaders matches the metrics present in rows. MetricHeaders []*MetricHeader `json:"metricHeaders,omitempty"` - // Minimums: If requested, the minimum values of metrics. Minimums []*Row `json:"minimums,omitempty"` - - // PropertyQuota: This Analytics Property's quota state including this - // request. + // PropertyQuota: This Analytics Property's quota state including this request. PropertyQuota *PropertyQuota `json:"propertyQuota,omitempty"` - - // RowCount: The total number of rows in the query result, regardless of - // the number of rows returned in the response. For example if a query - // returns 175 rows and includes limit = 50 in the API request, the - // response will contain row_count = 175 but only 50 rows. To learn more - // about this pagination parameter, see Pagination + // RowCount: The total number of rows in the query result, regardless of the + // number of rows returned in the response. For example if a query returns 175 + // rows and includes limit = 50 in the API request, the response will contain + // row_count = 175 but only 50 rows. To learn more about this pagination + // parameter, see Pagination // (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). RowCount int64 `json:"rowCount,omitempty"` - - // Rows: Rows of dimension value combinations and metric values in the - // report. + // Rows: Rows of dimension value combinations and metric values in the report. Rows []*Row `json:"rows,omitempty"` - // Totals: If requested, the totaled values of metrics. Totals []*Row `json:"totals,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DimensionHeaders") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionHeaders") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionHeaders") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunReportResponse) MarshalJSON() ([]byte, error) { +func (s RunReportResponse) MarshalJSON() ([]byte, error) { type NoMethod RunReportResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StringFilter: The filter for string type StringFilter struct { // CaseSensitive: If true, the string value is case sensitive. CaseSensitive bool `json:"caseSensitive,omitempty"` - // MatchType: The match type for this filter. // // Possible values: @@ -2310,40 +1855,29 @@ type StringFilter struct { // "BEGINS_WITH" - Begins with the string value. // "ENDS_WITH" - Ends with the string value. // "CONTAINS" - Contains the string value. - // "FULL_REGEXP" - Full regular expression match with the string - // value. - // "PARTIAL_REGEXP" - Partial regular expression match with the string - // value. + // "FULL_REGEXP" - Full regular expression match with the string value. + // "PARTIAL_REGEXP" - Partial regular expression match with the string value. MatchType string `json:"matchType,omitempty"` - // Value: The string value used for the matching. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "CaseSensitive") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CaseSensitive") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CaseSensitive") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StringFilter) MarshalJSON() ([]byte, error) { +func (s StringFilter) MarshalJSON() ([]byte, error) { type NoMethod StringFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "analyticsdata.properties.getMetadata": - type PropertiesGetMetadataCall struct { s *Service nameid string @@ -2354,15 +1888,23 @@ type PropertiesGetMetadataCall struct { } // GetMetadata: Returns metadata for dimensions and metrics available in -// reporting methods. Used to explore the dimensions and metrics. In -// this method, a Google Analytics GA4 Property Identifier is specified -// in the request, and the metadata response includes Custom dimensions -// and metrics as well as Universal metadata. For example if a custom -// metric with parameter name `levels_unlocked` is registered to a -// property, the Metadata response will contain -// `customEvent:levels_unlocked`. Universal metadata are dimensions and -// metrics applicable to any property such as `country` and +// reporting methods. Used to explore the dimensions and metrics. In this +// method, a Google Analytics GA4 Property Identifier is specified in the +// request, and the metadata response includes Custom dimensions and metrics as +// well as Universal metadata. For example if a custom metric with parameter +// name `levels_unlocked` is registered to a property, the Metadata response +// will contain `customEvent:levels_unlocked`. Universal metadata are +// dimensions and metrics applicable to any property such as `country` and // `totalUsers`. +// +// - name: The resource name of the metadata to retrieve. This name field is +// specified in the URL path and not URL parameters. Property is a numeric +// Google Analytics GA4 Property identifier. To learn more, see where to find +// your Property ID +// (https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). +// Example: properties/1234/metadata Set the Property ID to 0 for dimensions +// and metrics common to all properties. In this special mode, this method +// will not return custom dimensions and metrics. func (r *PropertiesService) GetMetadata(nameid string) *PropertiesGetMetadataCall { c := &PropertiesGetMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.nameid = nameid @@ -2370,33 +1912,29 @@ func (r *PropertiesService) GetMetadata(nameid string) *PropertiesGetMetadataCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PropertiesGetMetadataCall) Fields(s ...googleapi.Field) *PropertiesGetMetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PropertiesGetMetadataCall) IfNoneMatch(entityTag string) *PropertiesGetMetadataCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PropertiesGetMetadataCall) Context(ctx context.Context) *PropertiesGetMetadataCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PropertiesGetMetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2405,12 +1943,7 @@ func (c *PropertiesGetMetadataCall) Header() http.Header { } func (c *PropertiesGetMetadataCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210321") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2427,16 +1960,14 @@ func (c *PropertiesGetMetadataCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.getMetadata" call. -// Exactly one of *Metadata or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Metadata.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Metadata.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PropertiesGetMetadataCall) Do(opts ...googleapi.CallOption) (*Metadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2444,17 +1975,17 @@ func (c *PropertiesGetMetadataCall) Do(opts ...googleapi.CallOption) (*Metadata, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Metadata{ ServerResponse: googleapi.ServerResponse{ @@ -2467,36 +1998,7 @@ func (c *PropertiesGetMetadataCall) Do(opts ...googleapi.CallOption) (*Metadata, return nil, err } return ret, nil - // { - // "description": "Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`.", - // "flatPath": "v1alpha/properties/{propertiesId}/metadata", - // "httpMethod": "GET", - // "id": "analyticsdata.properties.getMetadata", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the metadata to retrieve. This name field is specified in the URL path and not URL parameters. Property is a numeric Google Analytics GA4 Property identifier. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Example: properties/1234/metadata Set the Property ID to 0 for dimensions and metrics common to all properties. In this special mode, this method will not return custom dimensions and metrics.", - // "location": "path", - // "pattern": "^properties/[^/]+/metadata$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "Metadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - -// method id "analyticsdata.properties.runRealtimeReport": +} type PropertiesRunRealtimeReportCall struct { s *Service @@ -2507,9 +2009,15 @@ type PropertiesRunRealtimeReportCall struct { header_ http.Header } -// RunRealtimeReport: The Google Analytics Realtime API returns a -// customized report of realtime event data for your property. These -// reports show events and usage from the last 30 minutes. +// RunRealtimeReport: The Google Analytics Realtime API returns a customized +// report of realtime event data for your property. These reports show events +// and usage from the last 30 minutes. +// +// - property: A Google Analytics GA4 property identifier whose events are +// tracked. Specified in the URL path and not the body. To learn more, see +// where to find your Property ID +// (https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). +// Example: properties/1234. func (r *PropertiesService) RunRealtimeReport(propertyid string, runrealtimereportrequest *RunRealtimeReportRequest) *PropertiesRunRealtimeReportCall { c := &PropertiesRunRealtimeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.propertyid = propertyid @@ -2518,23 +2026,21 @@ func (r *PropertiesService) RunRealtimeReport(propertyid string, runrealtimerepo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PropertiesRunRealtimeReportCall) Fields(s ...googleapi.Field) *PropertiesRunRealtimeReportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PropertiesRunRealtimeReportCall) Context(ctx context.Context) *PropertiesRunRealtimeReportCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PropertiesRunRealtimeReportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2543,18 +2049,12 @@ func (c *PropertiesRunRealtimeReportCall) Header() http.Header { } func (c *PropertiesRunRealtimeReportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210321") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.runrealtimereportrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+property}:runRealtimeReport") @@ -2567,16 +2067,15 @@ func (c *PropertiesRunRealtimeReportCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "property": c.propertyid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.runRealtimeReport" call. -// Exactly one of *RunRealtimeReportResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *RunRealtimeReportResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *RunRealtimeReportResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PropertiesRunRealtimeReportCall) Do(opts ...googleapi.CallOption) (*RunRealtimeReportResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2584,17 +2083,17 @@ func (c *PropertiesRunRealtimeReportCall) Do(opts ...googleapi.CallOption) (*Run if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RunRealtimeReportResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2607,39 +2106,7 @@ func (c *PropertiesRunRealtimeReportCall) Do(opts ...googleapi.CallOption) (*Run return nil, err } return ret, nil - // { - // "description": "The Google Analytics Realtime API returns a customized report of realtime event data for your property. These reports show events and usage from the last 30 minutes.", - // "flatPath": "v1alpha/properties/{propertiesId}:runRealtimeReport", - // "httpMethod": "POST", - // "id": "analyticsdata.properties.runRealtimeReport", - // "parameterOrder": [ - // "property" - // ], - // "parameters": { - // "property": { - // "description": "A Google Analytics GA4 property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Example: properties/1234", - // "location": "path", - // "pattern": "^properties/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+property}:runRealtimeReport", - // "request": { - // "$ref": "RunRealtimeReportRequest" - // }, - // "response": { - // "$ref": "RunRealtimeReportResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - -// method id "analyticsdata.batchRunPivotReports": +} type V1alphaBatchRunPivotReportsCall struct { s *Service @@ -2649,8 +2116,8 @@ type V1alphaBatchRunPivotReportsCall struct { header_ http.Header } -// BatchRunPivotReports: Returns multiple pivot reports in a batch. All -// reports must be for the same Entity. +// BatchRunPivotReports: Returns multiple pivot reports in a batch. All reports +// must be for the same Entity. func (r *V1alphaService) BatchRunPivotReports(batchrunpivotreportsrequest *BatchRunPivotReportsRequest) *V1alphaBatchRunPivotReportsCall { c := &V1alphaBatchRunPivotReportsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.batchrunpivotreportsrequest = batchrunpivotreportsrequest @@ -2658,23 +2125,21 @@ func (r *V1alphaService) BatchRunPivotReports(batchrunpivotreportsrequest *Batch } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1alphaBatchRunPivotReportsCall) Fields(s ...googleapi.Field) *V1alphaBatchRunPivotReportsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1alphaBatchRunPivotReportsCall) Context(ctx context.Context) *V1alphaBatchRunPivotReportsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1alphaBatchRunPivotReportsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2683,18 +2148,12 @@ func (c *V1alphaBatchRunPivotReportsCall) Header() http.Header { } func (c *V1alphaBatchRunPivotReportsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210321") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchrunpivotreportsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha:batchRunPivotReports") @@ -2704,16 +2163,15 @@ func (c *V1alphaBatchRunPivotReportsCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.batchRunPivotReports" call. -// Exactly one of *BatchRunPivotReportsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *BatchRunPivotReportsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BatchRunPivotReportsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V1alphaBatchRunPivotReportsCall) Do(opts ...googleapi.CallOption) (*BatchRunPivotReportsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2721,17 +2179,17 @@ func (c *V1alphaBatchRunPivotReportsCall) Do(opts ...googleapi.CallOption) (*Bat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BatchRunPivotReportsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2744,29 +2202,7 @@ func (c *V1alphaBatchRunPivotReportsCall) Do(opts ...googleapi.CallOption) (*Bat return nil, err } return ret, nil - // { - // "description": "Returns multiple pivot reports in a batch. All reports must be for the same Entity.", - // "flatPath": "v1alpha:batchRunPivotReports", - // "httpMethod": "POST", - // "id": "analyticsdata.batchRunPivotReports", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha:batchRunPivotReports", - // "request": { - // "$ref": "BatchRunPivotReportsRequest" - // }, - // "response": { - // "$ref": "BatchRunPivotReportsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - -// method id "analyticsdata.batchRunReports": +} type V1alphaBatchRunReportsCall struct { s *Service @@ -2776,8 +2212,8 @@ type V1alphaBatchRunReportsCall struct { header_ http.Header } -// BatchRunReports: Returns multiple reports in a batch. All reports -// must be for the same Entity. +// BatchRunReports: Returns multiple reports in a batch. All reports must be +// for the same Entity. func (r *V1alphaService) BatchRunReports(batchrunreportsrequest *BatchRunReportsRequest) *V1alphaBatchRunReportsCall { c := &V1alphaBatchRunReportsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.batchrunreportsrequest = batchrunreportsrequest @@ -2785,23 +2221,21 @@ func (r *V1alphaService) BatchRunReports(batchrunreportsrequest *BatchRunReports } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1alphaBatchRunReportsCall) Fields(s ...googleapi.Field) *V1alphaBatchRunReportsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1alphaBatchRunReportsCall) Context(ctx context.Context) *V1alphaBatchRunReportsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1alphaBatchRunReportsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2810,18 +2244,12 @@ func (c *V1alphaBatchRunReportsCall) Header() http.Header { } func (c *V1alphaBatchRunReportsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210321") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchrunreportsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha:batchRunReports") @@ -2831,16 +2259,15 @@ func (c *V1alphaBatchRunReportsCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.batchRunReports" call. -// Exactly one of *BatchRunReportsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *BatchRunReportsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V1alphaBatchRunReportsCall) Do(opts ...googleapi.CallOption) (*BatchRunReportsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2848,17 +2275,17 @@ func (c *V1alphaBatchRunReportsCall) Do(opts ...googleapi.CallOption) (*BatchRun if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BatchRunReportsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2871,29 +2298,7 @@ func (c *V1alphaBatchRunReportsCall) Do(opts ...googleapi.CallOption) (*BatchRun return nil, err } return ret, nil - // { - // "description": "Returns multiple reports in a batch. All reports must be for the same Entity.", - // "flatPath": "v1alpha:batchRunReports", - // "httpMethod": "POST", - // "id": "analyticsdata.batchRunReports", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha:batchRunReports", - // "request": { - // "$ref": "BatchRunReportsRequest" - // }, - // "response": { - // "$ref": "BatchRunReportsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - -// method id "analyticsdata.runPivotReport": +} type V1alphaRunPivotReportCall struct { s *Service @@ -2903,11 +2308,11 @@ type V1alphaRunPivotReportCall struct { header_ http.Header } -// RunPivotReport: Returns a customized pivot report of your Google -// Analytics event data. Pivot reports are more advanced and expressive -// formats than regular reports. In a pivot report, dimensions are only -// visible if they are included in a pivot. Multiple pivots can be -// specified to further dissect your data. +// RunPivotReport: Returns a customized pivot report of your Google Analytics +// event data. Pivot reports are more advanced and expressive formats than +// regular reports. In a pivot report, dimensions are only visible if they are +// included in a pivot. Multiple pivots can be specified to further dissect +// your data. func (r *V1alphaService) RunPivotReport(runpivotreportrequest *RunPivotReportRequest) *V1alphaRunPivotReportCall { c := &V1alphaRunPivotReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.runpivotreportrequest = runpivotreportrequest @@ -2915,23 +2320,21 @@ func (r *V1alphaService) RunPivotReport(runpivotreportrequest *RunPivotReportReq } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1alphaRunPivotReportCall) Fields(s ...googleapi.Field) *V1alphaRunPivotReportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1alphaRunPivotReportCall) Context(ctx context.Context) *V1alphaRunPivotReportCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1alphaRunPivotReportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2940,18 +2343,12 @@ func (c *V1alphaRunPivotReportCall) Header() http.Header { } func (c *V1alphaRunPivotReportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210321") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.runpivotreportrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha:runPivotReport") @@ -2961,16 +2358,15 @@ func (c *V1alphaRunPivotReportCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.runPivotReport" call. -// Exactly one of *RunPivotReportResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RunPivotReportResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RunPivotReportResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *V1alphaRunPivotReportCall) Do(opts ...googleapi.CallOption) (*RunPivotReportResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2978,17 +2374,17 @@ func (c *V1alphaRunPivotReportCall) Do(opts ...googleapi.CallOption) (*RunPivotR if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RunPivotReportResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3001,29 +2397,7 @@ func (c *V1alphaRunPivotReportCall) Do(opts ...googleapi.CallOption) (*RunPivotR return nil, err } return ret, nil - // { - // "description": "Returns a customized pivot report of your Google Analytics event data. Pivot reports are more advanced and expressive formats than regular reports. In a pivot report, dimensions are only visible if they are included in a pivot. Multiple pivots can be specified to further dissect your data.", - // "flatPath": "v1alpha:runPivotReport", - // "httpMethod": "POST", - // "id": "analyticsdata.runPivotReport", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha:runPivotReport", - // "request": { - // "$ref": "RunPivotReportRequest" - // }, - // "response": { - // "$ref": "RunPivotReportResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - -} - -// method id "analyticsdata.runReport": +} type V1alphaRunReportCall struct { s *Service @@ -3033,13 +2407,13 @@ type V1alphaRunReportCall struct { header_ http.Header } -// RunReport: Returns a customized report of your Google Analytics event -// data. Reports contain statistics derived from data collected by the -// Google Analytics tracking code. The data returned from the API is as -// a table with columns for the requested dimensions and metrics. -// Metrics are individual measurements of user activity on your -// property, such as active users or event count. Dimensions break down -// metrics across some common criteria, such as country or event name. +// RunReport: Returns a customized report of your Google Analytics event data. +// Reports contain statistics derived from data collected by the Google +// Analytics tracking code. The data returned from the API is as a table with +// columns for the requested dimensions and metrics. Metrics are individual +// measurements of user activity on your property, such as active users or +// event count. Dimensions break down metrics across some common criteria, such +// as country or event name. func (r *V1alphaService) RunReport(runreportrequest *RunReportRequest) *V1alphaRunReportCall { c := &V1alphaRunReportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.runreportrequest = runreportrequest @@ -3047,23 +2421,21 @@ func (r *V1alphaService) RunReport(runreportrequest *RunReportRequest) *V1alphaR } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1alphaRunReportCall) Fields(s ...googleapi.Field) *V1alphaRunReportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1alphaRunReportCall) Context(ctx context.Context) *V1alphaRunReportCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1alphaRunReportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3072,18 +2444,12 @@ func (c *V1alphaRunReportCall) Header() http.Header { } func (c *V1alphaRunReportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210321") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.runreportrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha:runReport") @@ -3093,16 +2459,15 @@ func (c *V1alphaRunReportCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.runReport" call. -// Exactly one of *RunReportResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RunReportResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RunReportResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *V1alphaRunReportCall) Do(opts ...googleapi.CallOption) (*RunReportResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3110,17 +2475,17 @@ func (c *V1alphaRunReportCall) Do(opts ...googleapi.CallOption) (*RunReportRespo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RunReportResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3133,24 +2498,4 @@ func (c *V1alphaRunReportCall) Do(opts ...googleapi.CallOption) (*RunReportRespo return nil, err } return ret, nil - // { - // "description": "Returns a customized report of your Google Analytics event data. Reports contain statistics derived from data collected by the Google Analytics tracking code. The data returned from the API is as a table with columns for the requested dimensions and metrics. Metrics are individual measurements of user activity on your property, such as active users or event count. Dimensions break down metrics across some common criteria, such as country or event name.", - // "flatPath": "v1alpha:runReport", - // "httpMethod": "POST", - // "id": "analyticsdata.runReport", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha:runReport", - // "request": { - // "$ref": "RunReportRequest" - // }, - // "response": { - // "$ref": "RunReportResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/analytics", - // "https://www.googleapis.com/auth/analytics.readonly" - // ] - // } - } diff --git a/analyticsdata/v1beta/analyticsdata-gen.go b/analyticsdata/v1beta/analyticsdata-gen.go index b2f303419f8..dedcb6bc228 100644 --- a/analyticsdata/v1beta/analyticsdata-gen.go +++ b/analyticsdata/v1beta/analyticsdata-gen.go @@ -2744,7 +2744,7 @@ func (c *PropertiesBatchRunPivotReportsCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "property": c.propertyid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.batchRunPivotReports" call. @@ -2853,7 +2853,7 @@ func (c *PropertiesBatchRunReportsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "property": c.propertyid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.batchRunReports" call. @@ -2966,7 +2966,7 @@ func (c *PropertiesCheckCompatibilityCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "property": c.propertyid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.checkCompatibility" call. @@ -3088,7 +3088,7 @@ func (c *PropertiesGetMetadataCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.getMetadata" call. @@ -3198,7 +3198,7 @@ func (c *PropertiesRunPivotReportCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "property": c.propertyid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.runPivotReport" call. @@ -3311,7 +3311,7 @@ func (c *PropertiesRunRealtimeReportCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "property": c.propertyid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.runRealtimeReport" call. @@ -3426,7 +3426,7 @@ func (c *PropertiesRunReportCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "property": c.propertyid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.runReport" call. @@ -3547,7 +3547,7 @@ func (c *PropertiesAudienceExportsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.audienceExports.create" call. @@ -3663,7 +3663,7 @@ func (c *PropertiesAudienceExportsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.audienceExports.get" call. @@ -3799,7 +3799,7 @@ func (c *PropertiesAudienceExportsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.audienceExports.list" call. @@ -3936,7 +3936,7 @@ func (c *PropertiesAudienceExportsQueryCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsdata.properties.audienceExports.query" call. diff --git a/analyticshub/v1/analyticshub-gen.go b/analyticshub/v1/analyticshub-gen.go index 0daaa62c278..a2b02971c57 100644 --- a/analyticshub/v1/analyticshub-gen.go +++ b/analyticshub/v1/analyticshub-gen.go @@ -2406,7 +2406,7 @@ func (c *OrganizationsLocationsDataExchangesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "organization": c.organization, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.organizations.locations.dataExchanges.list" call. @@ -2539,7 +2539,7 @@ func (c *ProjectsLocationsDataExchangesCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.create" call. @@ -2635,7 +2635,7 @@ func (c *ProjectsLocationsDataExchangesDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.delete" call. @@ -2743,7 +2743,7 @@ func (c *ProjectsLocationsDataExchangesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.get" call. @@ -2846,7 +2846,7 @@ func (c *ProjectsLocationsDataExchangesGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.getIamPolicy" call. @@ -2969,7 +2969,7 @@ func (c *ProjectsLocationsDataExchangesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.list" call. @@ -3124,7 +3124,7 @@ func (c *ProjectsLocationsDataExchangesListSubscriptionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listSubscriptions" call. @@ -3257,7 +3257,7 @@ func (c *ProjectsLocationsDataExchangesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.patch" call. @@ -3360,7 +3360,7 @@ func (c *ProjectsLocationsDataExchangesSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.setIamPolicy" call. @@ -3463,7 +3463,7 @@ func (c *ProjectsLocationsDataExchangesSubscribeCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.subscribe" call. @@ -3567,7 +3567,7 @@ func (c *ProjectsLocationsDataExchangesTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.testIamPermissions" call. @@ -3679,7 +3679,7 @@ func (c *ProjectsLocationsDataExchangesListingsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.create" call. @@ -3775,7 +3775,7 @@ func (c *ProjectsLocationsDataExchangesListingsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.delete" call. @@ -3883,7 +3883,7 @@ func (c *ProjectsLocationsDataExchangesListingsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.get" call. @@ -3986,7 +3986,7 @@ func (c *ProjectsLocationsDataExchangesListingsGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.getIamPolicy" call. @@ -4109,7 +4109,7 @@ func (c *ProjectsLocationsDataExchangesListingsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.list" call. @@ -4264,7 +4264,7 @@ func (c *ProjectsLocationsDataExchangesListingsListSubscriptionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.listSubscriptions" call. @@ -4396,7 +4396,7 @@ func (c *ProjectsLocationsDataExchangesListingsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.patch" call. @@ -4499,7 +4499,7 @@ func (c *ProjectsLocationsDataExchangesListingsSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.setIamPolicy" call. @@ -4604,7 +4604,7 @@ func (c *ProjectsLocationsDataExchangesListingsSubscribeCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.subscribe" call. @@ -4709,7 +4709,7 @@ func (c *ProjectsLocationsDataExchangesListingsTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.testIamPermissions" call. @@ -4806,7 +4806,7 @@ func (c *ProjectsLocationsSubscriptionsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.subscriptions.delete" call. @@ -4914,7 +4914,7 @@ func (c *ProjectsLocationsSubscriptionsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.subscriptions.get" call. @@ -5017,7 +5017,7 @@ func (c *ProjectsLocationsSubscriptionsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.subscriptions.getIamPolicy" call. @@ -5153,7 +5153,7 @@ func (c *ProjectsLocationsSubscriptionsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.subscriptions.list" call. @@ -5279,7 +5279,7 @@ func (c *ProjectsLocationsSubscriptionsRefreshCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.subscriptions.refresh" call. @@ -5381,7 +5381,7 @@ func (c *ProjectsLocationsSubscriptionsRevokeCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.subscriptions.revoke" call. @@ -5485,7 +5485,7 @@ func (c *ProjectsLocationsSubscriptionsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.subscriptions.setIamPolicy" call. diff --git a/analyticshub/v1beta1/analyticshub-gen.go b/analyticshub/v1beta1/analyticshub-gen.go index 2b9a30bf366..9a79fc71fc7 100644 --- a/analyticshub/v1beta1/analyticshub-gen.go +++ b/analyticshub/v1beta1/analyticshub-gen.go @@ -1407,7 +1407,7 @@ func (c *OrganizationsLocationsDataExchangesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "organization": c.organization, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.organizations.locations.dataExchanges.list" call. @@ -1540,7 +1540,7 @@ func (c *ProjectsLocationsDataExchangesCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.create" call. @@ -1636,7 +1636,7 @@ func (c *ProjectsLocationsDataExchangesDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.delete" call. @@ -1744,7 +1744,7 @@ func (c *ProjectsLocationsDataExchangesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.get" call. @@ -1847,7 +1847,7 @@ func (c *ProjectsLocationsDataExchangesGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.getIamPolicy" call. @@ -1970,7 +1970,7 @@ func (c *ProjectsLocationsDataExchangesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.list" call. @@ -2103,7 +2103,7 @@ func (c *ProjectsLocationsDataExchangesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.patch" call. @@ -2206,7 +2206,7 @@ func (c *ProjectsLocationsDataExchangesSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.setIamPolicy" call. @@ -2310,7 +2310,7 @@ func (c *ProjectsLocationsDataExchangesTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.testIamPermissions" call. @@ -2422,7 +2422,7 @@ func (c *ProjectsLocationsDataExchangesListingsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.create" call. @@ -2518,7 +2518,7 @@ func (c *ProjectsLocationsDataExchangesListingsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.delete" call. @@ -2626,7 +2626,7 @@ func (c *ProjectsLocationsDataExchangesListingsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.get" call. @@ -2729,7 +2729,7 @@ func (c *ProjectsLocationsDataExchangesListingsGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.getIamPolicy" call. @@ -2852,7 +2852,7 @@ func (c *ProjectsLocationsDataExchangesListingsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.list" call. @@ -2984,7 +2984,7 @@ func (c *ProjectsLocationsDataExchangesListingsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.patch" call. @@ -3087,7 +3087,7 @@ func (c *ProjectsLocationsDataExchangesListingsSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.setIamPolicy" call. @@ -3192,7 +3192,7 @@ func (c *ProjectsLocationsDataExchangesListingsSubscribeCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.subscribe" call. @@ -3297,7 +3297,7 @@ func (c *ProjectsLocationsDataExchangesListingsTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticshub.projects.locations.dataExchanges.listings.testIamPermissions" call. diff --git a/analyticsreporting/v4/analyticsreporting-gen.go b/analyticsreporting/v4/analyticsreporting-gen.go index 1fee3be0a14..6ed5e8ea76d 100644 --- a/analyticsreporting/v4/analyticsreporting-gen.go +++ b/analyticsreporting/v4/analyticsreporting-gen.go @@ -2190,7 +2190,7 @@ func (c *ReportsBatchGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsreporting.reports.batchGet" call. @@ -2285,7 +2285,7 @@ func (c *UserActivitySearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "analyticsreporting.userActivity.search" call. diff --git a/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json b/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json index ed7ef38c1e2..48c7c65ea98 100644 --- a/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json +++ b/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json @@ -851,7 +851,7 @@ } } }, - "revision": "20231112", + "revision": "20240916", "rootUrl": "https://androiddeviceprovisioning.googleapis.com/", "schemas": { "ClaimDeviceRequest": { @@ -1291,6 +1291,10 @@ "description": "The device’s IMEI number. Validated on input.", "type": "string" }, + "imei2": { + "description": "The device’s second IMEI number.", + "type": "string" + }, "manufacturer": { "description": "The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).", "type": "string" @@ -1299,6 +1303,10 @@ "description": "The device’s MEID number.", "type": "string" }, + "meid2": { + "description": "The device’s second MEID number.", + "type": "string" + }, "model": { "description": "The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible).", "type": "string" diff --git a/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go b/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go index e827171e72b..5290993d866 100644 --- a/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go +++ b/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go @@ -831,6 +831,8 @@ type DeviceIdentifier struct { DeviceType string `json:"deviceType,omitempty"` // Imei: The device’s IMEI number. Validated on input. Imei string `json:"imei,omitempty"` + // Imei2: The device’s second IMEI number. + Imei2 string `json:"imei2,omitempty"` // Manufacturer: The device manufacturer’s name. Matches the device's // built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values // are listed in Android manufacturers @@ -838,6 +840,8 @@ type DeviceIdentifier struct { Manufacturer string `json:"manufacturer,omitempty"` // Meid: The device’s MEID number. Meid string `json:"meid,omitempty"` + // Meid2: The device’s second MEID number. + Meid2 string `json:"meid2,omitempty"` // Model: The device model's name. Allowed values are listed in Android models // (/zero-touch/resources/manufacturer-names#model-names) and Chrome OS models // (https://support.google.com/chrome/a/answer/10130175#identify_compatible). @@ -1776,7 +1780,7 @@ func (c *CustomersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.list" call. @@ -1902,7 +1906,7 @@ func (c *CustomersConfigurationsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.configurations.create" call. @@ -2000,7 +2004,7 @@ func (c *CustomersConfigurationsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.configurations.delete" call. @@ -2108,7 +2112,7 @@ func (c *CustomersConfigurationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.configurations.get" call. @@ -2216,7 +2220,7 @@ func (c *CustomersConfigurationsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.configurations.list" call. @@ -2330,7 +2334,7 @@ func (c *CustomersConfigurationsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.configurations.patch" call. @@ -2435,7 +2439,7 @@ func (c *CustomersDevicesApplyConfigurationCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.devices.applyConfiguration" call. @@ -2543,7 +2547,7 @@ func (c *CustomersDevicesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.devices.get" call. @@ -2665,7 +2669,7 @@ func (c *CustomersDevicesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.devices.list" call. @@ -2789,7 +2793,7 @@ func (c *CustomersDevicesRemoveConfigurationCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.devices.removeConfiguration" call. @@ -2893,7 +2897,7 @@ func (c *CustomersDevicesUnclaimCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.devices.unclaim" call. @@ -3002,7 +3006,7 @@ func (c *CustomersDpcsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.customers.dpcs.list" call. @@ -3112,7 +3116,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.operations.get" call. @@ -3218,7 +3222,7 @@ func (c *PartnersCustomersCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.customers.create" call. @@ -3341,7 +3345,7 @@ func (c *PartnersCustomersListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.customers.list" call. @@ -3466,7 +3470,7 @@ func (c *PartnersDevicesClaimCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.devices.claim" call. @@ -3570,7 +3574,7 @@ func (c *PartnersDevicesClaimAsyncCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.devices.claimAsync" call. @@ -3671,7 +3675,7 @@ func (c *PartnersDevicesFindByIdentifierCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.devices.findByIdentifier" call. @@ -3797,7 +3801,7 @@ func (c *PartnersDevicesFindByOwnerCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.devices.findByOwner" call. @@ -3927,7 +3931,7 @@ func (c *PartnersDevicesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.devices.get" call. @@ -4028,7 +4032,7 @@ func (c *PartnersDevicesGetSimLockStateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.devices.getSimLockState" call. @@ -4136,7 +4140,7 @@ func (c *PartnersDevicesMetadataCall) doRequest(alt string) (*http.Response, err "metadataOwnerId": strconv.FormatInt(c.metadataOwnerId, 10), "deviceId": strconv.FormatInt(c.deviceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.devices.metadata" call. @@ -4238,7 +4242,7 @@ func (c *PartnersDevicesUnclaimCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.devices.unclaim" call. @@ -4342,7 +4346,7 @@ func (c *PartnersDevicesUnclaimAsyncCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.devices.unclaimAsync" call. @@ -4447,7 +4451,7 @@ func (c *PartnersDevicesUpdateMetadataAsyncCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.devices.updateMetadataAsync" call. @@ -4568,7 +4572,7 @@ func (c *PartnersVendorsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.vendors.list" call. @@ -4712,7 +4716,7 @@ func (c *PartnersVendorsCustomersListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androiddeviceprovisioning.partners.vendors.customers.list" call. diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index e8d1effa39a..c02f49b62c9 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -3460,7 +3460,7 @@ func (c *DevicesForceReportUploadCall) doRequest(alt string) (*http.Response, er "userId": c.userId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.devices.forceReportUpload" call. @@ -3552,7 +3552,7 @@ func (c *DevicesGetCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.devices.get" call. @@ -3671,7 +3671,7 @@ func (c *DevicesGetStateCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.devices.getState" call. @@ -3782,7 +3782,7 @@ func (c *DevicesListCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.devices.list" call. @@ -3896,7 +3896,7 @@ func (c *DevicesSetStateCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.devices.setState" call. @@ -4020,7 +4020,7 @@ func (c *DevicesUpdateCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.devices.update" call. @@ -4118,7 +4118,7 @@ func (c *EnterprisesAcknowledgeNotificationSetCall) doRequest(alt string) (*http return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.acknowledgeNotificationSet" call. @@ -4199,7 +4199,7 @@ func (c *EnterprisesCompleteSignupCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.completeSignup" call. @@ -4310,7 +4310,7 @@ func (c *EnterprisesCreateEnrollmentTokenCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.createEnrollmentToken" call. @@ -4415,7 +4415,7 @@ func (c *EnterprisesCreateWebTokenCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.createWebToken" call. @@ -4513,7 +4513,7 @@ func (c *EnterprisesEnrollCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.enroll" call. @@ -4622,7 +4622,7 @@ func (c *EnterprisesGenerateSignupUrlCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.generateSignupUrl" call. @@ -4729,7 +4729,7 @@ func (c *EnterprisesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.get" call. @@ -4862,7 +4862,7 @@ func (c *EnterprisesGetServiceAccountCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.getServiceAccount" call. @@ -4971,7 +4971,7 @@ func (c *EnterprisesGetStoreLayoutCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.getStoreLayout" call. @@ -5078,7 +5078,7 @@ func (c *EnterprisesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.list" call. @@ -5199,7 +5199,7 @@ func (c *EnterprisesPullNotificationSetCall) doRequest(alt string) (*http.Respon return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.pullNotificationSet" call. @@ -5296,7 +5296,7 @@ func (c *EnterprisesSendTestPushNotificationCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.sendTestPushNotification" call. @@ -5399,7 +5399,7 @@ func (c *EnterprisesSetAccountCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.setAccount" call. @@ -5508,7 +5508,7 @@ func (c *EnterprisesSetStoreLayoutCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.setStoreLayout" call. @@ -5603,7 +5603,7 @@ func (c *EnterprisesUnenrollCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.enterprises.unenroll" call. @@ -5686,7 +5686,7 @@ func (c *EntitlementsDeleteCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "entitlementId": c.entitlementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.entitlements.delete" call. @@ -5781,7 +5781,7 @@ func (c *EntitlementsGetCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "entitlementId": c.entitlementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.entitlements.get" call. @@ -5894,7 +5894,7 @@ func (c *EntitlementsListCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.entitlements.list" call. @@ -6017,7 +6017,7 @@ func (c *EntitlementsUpdateCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "entitlementId": c.entitlementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.entitlements.update" call. @@ -6131,7 +6131,7 @@ func (c *GrouplicensesGetCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "groupLicenseId": c.groupLicenseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.grouplicenses.get" call. @@ -6240,7 +6240,7 @@ func (c *GrouplicensesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.grouplicenses.list" call. @@ -6355,7 +6355,7 @@ func (c *GrouplicenseusersListCall) doRequest(alt string) (*http.Response, error "enterpriseId": c.enterpriseId, "groupLicenseId": c.groupLicenseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.grouplicenseusers.list" call. @@ -6469,7 +6469,7 @@ func (c *InstallsDeleteCall) doRequest(alt string) (*http.Response, error) { "deviceId": c.deviceId, "installId": c.installId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.installs.delete" call. @@ -6566,7 +6566,7 @@ func (c *InstallsGetCall) doRequest(alt string) (*http.Response, error) { "deviceId": c.deviceId, "installId": c.installId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.installs.get" call. @@ -6681,7 +6681,7 @@ func (c *InstallsListCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.installs.list" call. @@ -6798,7 +6798,7 @@ func (c *InstallsUpdateCall) doRequest(alt string) (*http.Response, error) { "deviceId": c.deviceId, "installId": c.installId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.installs.update" call. @@ -6907,7 +6907,7 @@ func (c *ManagedconfigurationsfordeviceDeleteCall) doRequest(alt string) (*http. "deviceId": c.deviceId, "managedConfigurationForDeviceId": c.managedConfigurationForDeviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.managedconfigurationsfordevice.delete" call. @@ -7004,7 +7004,7 @@ func (c *ManagedconfigurationsfordeviceGetCall) doRequest(alt string) (*http.Res "deviceId": c.deviceId, "managedConfigurationForDeviceId": c.managedConfigurationForDeviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.managedconfigurationsfordevice.get" call. @@ -7121,7 +7121,7 @@ func (c *ManagedconfigurationsfordeviceListCall) doRequest(alt string) (*http.Re "userId": c.userId, "deviceId": c.deviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.managedconfigurationsfordevice.list" call. @@ -7237,7 +7237,7 @@ func (c *ManagedconfigurationsfordeviceUpdateCall) doRequest(alt string) (*http. "deviceId": c.deviceId, "managedConfigurationForDeviceId": c.managedConfigurationForDeviceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.managedconfigurationsfordevice.update" call. @@ -7343,7 +7343,7 @@ func (c *ManagedconfigurationsforuserDeleteCall) doRequest(alt string) (*http.Re "userId": c.userId, "managedConfigurationForUserId": c.managedConfigurationForUserId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.managedconfigurationsforuser.delete" call. @@ -7437,7 +7437,7 @@ func (c *ManagedconfigurationsforuserGetCall) doRequest(alt string) (*http.Respo "userId": c.userId, "managedConfigurationForUserId": c.managedConfigurationForUserId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.managedconfigurationsforuser.get" call. @@ -7550,7 +7550,7 @@ func (c *ManagedconfigurationsforuserListCall) doRequest(alt string) (*http.Resp "enterpriseId": c.enterpriseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.managedconfigurationsforuser.list" call. @@ -7666,7 +7666,7 @@ func (c *ManagedconfigurationsforuserUpdateCall) doRequest(alt string) (*http.Re "userId": c.userId, "managedConfigurationForUserId": c.managedConfigurationForUserId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.managedconfigurationsforuser.update" call. @@ -7779,7 +7779,7 @@ func (c *ManagedconfigurationssettingsListCall) doRequest(alt string) (*http.Res "enterpriseId": c.enterpriseId, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.managedconfigurationssettings.list" call. @@ -7895,7 +7895,7 @@ func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.permissions.get" call. @@ -8005,7 +8005,7 @@ func (c *ProductsApproveCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.products.approve" call. @@ -8098,7 +8098,7 @@ func (c *ProductsGenerateApprovalUrlCall) doRequest(alt string) (*http.Response, "enterpriseId": c.enterpriseId, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.products.generateApprovalUrl" call. @@ -8217,7 +8217,7 @@ func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.products.get" call. @@ -8340,7 +8340,7 @@ func (c *ProductsGetAppRestrictionsSchemaCall) doRequest(alt string) (*http.Resp "enterpriseId": c.enterpriseId, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.products.getAppRestrictionsSchema" call. @@ -8452,7 +8452,7 @@ func (c *ProductsGetPermissionsCall) doRequest(alt string) (*http.Response, erro "enterpriseId": c.enterpriseId, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.products.getPermissions" call. @@ -8604,7 +8604,7 @@ func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.products.list" call. @@ -8707,7 +8707,7 @@ func (c *ProductsUnapproveCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.products.unapprove" call. @@ -8787,7 +8787,7 @@ func (c *ServiceaccountkeysDeleteCall) doRequest(alt string) (*http.Response, er "enterpriseId": c.enterpriseId, "keyId": c.keyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.serviceaccountkeys.delete" call. @@ -8869,7 +8869,7 @@ func (c *ServiceaccountkeysInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.serviceaccountkeys.insert" call. @@ -8981,7 +8981,7 @@ func (c *ServiceaccountkeysListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.serviceaccountkeys.list" call. @@ -9085,7 +9085,7 @@ func (c *StorelayoutclustersDeleteCall) doRequest(alt string) (*http.Response, e "pageId": c.pageId, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.storelayoutclusters.delete" call. @@ -9177,7 +9177,7 @@ func (c *StorelayoutclustersGetCall) doRequest(alt string) (*http.Response, erro "pageId": c.pageId, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.storelayoutclusters.get" call. @@ -9282,7 +9282,7 @@ func (c *StorelayoutclustersInsertCall) doRequest(alt string) (*http.Response, e "enterpriseId": c.enterpriseId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.storelayoutclusters.insert" call. @@ -9393,7 +9393,7 @@ func (c *StorelayoutclustersListCall) doRequest(alt string) (*http.Response, err "enterpriseId": c.enterpriseId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.storelayoutclusters.list" call. @@ -9503,7 +9503,7 @@ func (c *StorelayoutclustersUpdateCall) doRequest(alt string) (*http.Response, e "pageId": c.pageId, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.storelayoutclusters.update" call. @@ -9602,7 +9602,7 @@ func (c *StorelayoutpagesDeleteCall) doRequest(alt string) (*http.Response, erro "enterpriseId": c.enterpriseId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.storelayoutpages.delete" call. @@ -9690,7 +9690,7 @@ func (c *StorelayoutpagesGetCall) doRequest(alt string) (*http.Response, error) "enterpriseId": c.enterpriseId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.storelayoutpages.get" call. @@ -9791,7 +9791,7 @@ func (c *StorelayoutpagesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.storelayoutpages.insert" call. @@ -9898,7 +9898,7 @@ func (c *StorelayoutpagesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.storelayoutpages.list" call. @@ -10004,7 +10004,7 @@ func (c *StorelayoutpagesUpdateCall) doRequest(alt string) (*http.Response, erro "enterpriseId": c.enterpriseId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.storelayoutpages.update" call. @@ -10103,7 +10103,7 @@ func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.users.delete" call. @@ -10183,7 +10183,7 @@ func (c *UsersGenerateAuthenticationTokenCall) doRequest(alt string) (*http.Resp "enterpriseId": c.enterpriseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.users.generateAuthenticationToken" call. @@ -10295,7 +10295,7 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.users.get" call. @@ -10408,7 +10408,7 @@ func (c *UsersGetAvailableProductSetCall) doRequest(alt string) (*http.Response, "enterpriseId": c.enterpriseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.users.getAvailableProductSet" call. @@ -10513,7 +10513,7 @@ func (c *UsersInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.users.insert" call. @@ -10624,7 +10624,7 @@ func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.users.list" call. @@ -10727,7 +10727,7 @@ func (c *UsersRevokeDeviceAccessCall) doRequest(alt string) (*http.Response, err "enterpriseId": c.enterpriseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.users.revokeDeviceAccess" call. @@ -10814,7 +10814,7 @@ func (c *UsersSetAvailableProductSetCall) doRequest(alt string) (*http.Response, "enterpriseId": c.enterpriseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.users.setAvailableProductSet" call. @@ -10923,7 +10923,7 @@ func (c *UsersUpdateCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.users.update" call. @@ -11022,7 +11022,7 @@ func (c *WebappsDeleteCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "webAppId": c.webAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.webapps.delete" call. @@ -11110,7 +11110,7 @@ func (c *WebappsGetCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "webAppId": c.webAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.webapps.get" call. @@ -11211,7 +11211,7 @@ func (c *WebappsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.webapps.insert" call. @@ -11318,7 +11318,7 @@ func (c *WebappsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "enterpriseId": c.enterpriseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.webapps.list" call. @@ -11424,7 +11424,7 @@ func (c *WebappsUpdateCall) doRequest(alt string) (*http.Response, error) { "enterpriseId": c.enterpriseId, "webAppId": c.webAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidenterprise.webapps.update" call. diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 8bf258bd144..33508989977 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -6833,7 +6833,7 @@ func (c *EnterprisesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.create" call. @@ -6931,7 +6931,7 @@ func (c *EnterprisesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.delete" call. @@ -7038,7 +7038,7 @@ func (c *EnterprisesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.get" call. @@ -7174,7 +7174,7 @@ func (c *EnterprisesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.list" call. @@ -7305,7 +7305,7 @@ func (c *EnterprisesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.patch" call. @@ -7422,7 +7422,7 @@ func (c *EnterprisesApplicationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.applications.get" call. @@ -7547,7 +7547,7 @@ func (c *EnterprisesDevicesDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.devices.delete" call. @@ -7655,7 +7655,7 @@ func (c *EnterprisesDevicesGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.devices.get" call. @@ -7759,7 +7759,7 @@ func (c *EnterprisesDevicesIssueCommandCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.devices.issueCommand" call. @@ -7881,7 +7881,7 @@ func (c *EnterprisesDevicesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.devices.list" call. @@ -8013,7 +8013,7 @@ func (c *EnterprisesDevicesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.devices.patch" call. @@ -8116,7 +8116,7 @@ func (c *EnterprisesDevicesOperationsCancelCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.devices.operations.cancel" call. @@ -8225,7 +8225,7 @@ func (c *EnterprisesDevicesOperationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.devices.operations.get" call. @@ -8353,7 +8353,7 @@ func (c *EnterprisesDevicesOperationsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.devices.operations.list" call. @@ -8478,7 +8478,7 @@ func (c *EnterprisesEnrollmentTokensCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.enrollmentTokens.create" call. @@ -8576,7 +8576,7 @@ func (c *EnterprisesEnrollmentTokensDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.enrollmentTokens.delete" call. @@ -8689,7 +8689,7 @@ func (c *EnterprisesEnrollmentTokensGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.enrollmentTokens.get" call. @@ -8819,7 +8819,7 @@ func (c *EnterprisesEnrollmentTokensListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.enrollmentTokens.list" call. @@ -8948,7 +8948,7 @@ func (c *EnterprisesMigrationTokensCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.migrationTokens.create" call. @@ -9056,7 +9056,7 @@ func (c *EnterprisesMigrationTokensGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.migrationTokens.get" call. @@ -9182,7 +9182,7 @@ func (c *EnterprisesMigrationTokensListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.migrationTokens.list" call. @@ -9301,7 +9301,7 @@ func (c *EnterprisesPoliciesDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.policies.delete" call. @@ -9409,7 +9409,7 @@ func (c *EnterprisesPoliciesGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.policies.get" call. @@ -9530,7 +9530,7 @@ func (c *EnterprisesPoliciesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.policies.list" call. @@ -9662,7 +9662,7 @@ func (c *EnterprisesPoliciesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.policies.patch" call. @@ -9763,7 +9763,7 @@ func (c *EnterprisesWebAppsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.webApps.create" call. @@ -9859,7 +9859,7 @@ func (c *EnterprisesWebAppsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.webApps.delete" call. @@ -9967,7 +9967,7 @@ func (c *EnterprisesWebAppsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.webApps.get" call. @@ -10088,7 +10088,7 @@ func (c *EnterprisesWebAppsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.webApps.list" call. @@ -10220,7 +10220,7 @@ func (c *EnterprisesWebAppsPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.webApps.patch" call. @@ -10322,7 +10322,7 @@ func (c *EnterprisesWebTokensCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.enterprises.webTokens.create" call. @@ -10431,7 +10431,7 @@ func (c *ProvisioningInfoGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.provisioningInfo.get" call. @@ -10547,7 +10547,7 @@ func (c *SignupUrlsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidmanagement.signupUrls.create" call. diff --git a/androidpublisher/v1.1/androidpublisher-gen.go b/androidpublisher/v1.1/androidpublisher-gen.go index 976cedcdf9f..c83a5291d36 100644 --- a/androidpublisher/v1.1/androidpublisher-gen.go +++ b/androidpublisher/v1.1/androidpublisher-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/android-publisher // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // androidpublisherService, err := androidpublisher.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // androidpublisherService, err := androidpublisher.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // androidpublisherService, err := androidpublisher.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package androidpublisher // import "google.golang.org/api/androidpublisher/v1.1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "androidpublisher:v1.1" const apiName = "androidpublisher" const apiVersion = "v1.1" const basePath = "https://www.googleapis.com/androidpublisher/v1.1/applications/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/androidpublisher/v1.1/applications/" // OAuth2 scopes used by this API. const ( @@ -84,12 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/androidpublisher", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -142,76 +160,58 @@ type InapppurchasesService struct { s *Service } -// InappPurchase: An InappPurchase resource indicates the status of a -// user's inapp product purchase. +// InappPurchase: An InappPurchase resource indicates the status of a user's +// inapp product purchase. type InappPurchase struct { - // ConsumptionState: The consumption state of the inapp product. - // Possible values are: + // ConsumptionState: The consumption state of the inapp product. Possible + // values are: // - Yet to be consumed // - Consumed ConsumptionState int64 `json:"consumptionState,omitempty"` - - // DeveloperPayload: A developer-specified string that contains - // supplemental information about an order. + // DeveloperPayload: A developer-specified string that contains supplemental + // information about an order. DeveloperPayload string `json:"developerPayload,omitempty"` - - // Kind: This kind represents an inappPurchase object in the - // androidpublisher service. + // Kind: This kind represents an inappPurchase object in the androidpublisher + // service. Kind string `json:"kind,omitempty"` - - // OrderId: The order id associated with the purchase of the inapp - // product. + // OrderId: The order id associated with the purchase of the inapp product. OrderId string `json:"orderId,omitempty"` - // PurchaseState: The purchase state of the order. Possible values are: - // // - Purchased // - Canceled // - Pending PurchaseState int64 `json:"purchaseState,omitempty"` - - // PurchaseTime: The time the product was purchased, in milliseconds - // since the epoch (Jan 1, 1970). + // PurchaseTime: The time the product was purchased, in milliseconds since the + // epoch (Jan 1, 1970). PurchaseTime int64 `json:"purchaseTime,omitempty,string"` - - // PurchaseType: The type of purchase of the inapp product. This field - // is only set if this purchase was not made using the standard in-app - // billing flow. Possible values are: + // PurchaseType: The type of purchase of the inapp product. This field is only + // set if this purchase was not made using the standard in-app billing flow. + // Possible values are: // - Test (i.e. purchased from a license testing account) // - Promo (i.e. purchased using a promo code) // - Rewarded (i.e. from watching a video ad instead of paying) PurchaseType *int64 `json:"purchaseType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConsumptionState") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConsumptionState") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConsumptionState") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InappPurchase) MarshalJSON() ([]byte, error) { +func (s InappPurchase) MarshalJSON() ([]byte, error) { type NoMethod InappPurchase - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "androidpublisher.inapppurchases.get": - type InapppurchasesGetCall struct { s *Service packageName string @@ -224,6 +224,12 @@ type InapppurchasesGetCall struct { } // Get: Checks the purchase and consumption status of an inapp item. +// +// - packageName: The package name of the application the inapp product was +// sold in (for example, 'com.some.thing'). +// - productId: The inapp product SKU (for example, 'com.some.thing.inapp1'). +// - token: The token provided to the user's device when the inapp product was +// purchased. func (r *InapppurchasesService) Get(packageName string, productId string, token string) *InapppurchasesGetCall { c := &InapppurchasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.packageName = packageName @@ -233,33 +239,29 @@ func (r *InapppurchasesService) Get(packageName string, productId string, token } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InapppurchasesGetCall) Fields(s ...googleapi.Field) *InapppurchasesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InapppurchasesGetCall) IfNoneMatch(entityTag string) *InapppurchasesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InapppurchasesGetCall) Context(ctx context.Context) *InapppurchasesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InapppurchasesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -268,12 +270,7 @@ func (c *InapppurchasesGetCall) Header() http.Header { } func (c *InapppurchasesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200627") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -292,16 +289,14 @@ func (c *InapppurchasesGetCall) doRequest(alt string) (*http.Response, error) { "productId": c.productId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.inapppurchases.get" call. -// Exactly one of *InappPurchase or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InappPurchase.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InappPurchase.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InapppurchasesGetCall) Do(opts ...googleapi.CallOption) (*InappPurchase, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -309,17 +304,17 @@ func (c *InapppurchasesGetCall) Do(opts ...googleapi.CallOption) (*InappPurchase if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InappPurchase{ ServerResponse: googleapi.ServerResponse{ @@ -332,42 +327,4 @@ func (c *InapppurchasesGetCall) Do(opts ...googleapi.CallOption) (*InappPurchase return nil, err } return ret, nil - // { - // "description": "Checks the purchase and consumption status of an inapp item.", - // "httpMethod": "GET", - // "id": "androidpublisher.inapppurchases.get", - // "parameterOrder": [ - // "packageName", - // "productId", - // "token" - // ], - // "parameters": { - // "packageName": { - // "description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "productId": { - // "description": "The inapp product SKU (for example, 'com.some.thing.inapp1').", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "token": { - // "description": "The token provided to the user's device when the inapp product was purchased.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{packageName}/inapp/{productId}/purchases/{token}", - // "response": { - // "$ref": "InappPurchase" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/androidpublisher" - // ] - // } - } diff --git a/androidpublisher/v1/androidpublisher-gen.go b/androidpublisher/v1/androidpublisher-gen.go index 527c1258f71..dedf94c98ea 100644 --- a/androidpublisher/v1/androidpublisher-gen.go +++ b/androidpublisher/v1/androidpublisher-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/android-publisher // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // androidpublisherService, err := androidpublisher.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // androidpublisherService, err := androidpublisher.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // androidpublisherService, err := androidpublisher.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package androidpublisher // import "google.golang.org/api/androidpublisher/v1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,15 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "androidpublisher:v1" const apiName = "androidpublisher" const apiVersion = "v1" const basePath = "https://www.googleapis.com/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err diff --git a/androidpublisher/v2/androidpublisher-gen.go b/androidpublisher/v2/androidpublisher-gen.go index 01cf9e3e813..cdeb3b9e50d 100644 --- a/androidpublisher/v2/androidpublisher-gen.go +++ b/androidpublisher/v2/androidpublisher-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/android-publisher // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // androidpublisherService, err := androidpublisher.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // androidpublisherService, err := androidpublisher.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // androidpublisherService, err := androidpublisher.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package androidpublisher // import "google.golang.org/api/androidpublisher/v2" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "androidpublisher:v2" const apiName = "androidpublisher" const apiVersion = "v2" const basePath = "https://www.googleapis.com/androidpublisher/v2/applications/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/androidpublisher/v2/applications/" // OAuth2 scopes used by this API. const ( @@ -84,12 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/androidpublisher", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -168,210 +186,159 @@ type PurchasesVoidedpurchasesService struct { type PageInfo struct { ResultPerPage int64 `json:"resultPerPage,omitempty"` - - StartIndex int64 `json:"startIndex,omitempty"` - - TotalResults int64 `json:"totalResults,omitempty"` - + StartIndex int64 `json:"startIndex,omitempty"` + TotalResults int64 `json:"totalResults,omitempty"` // ForceSendFields is a list of field names (e.g. "ResultPerPage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResultPerPage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResultPerPage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PageInfo) MarshalJSON() ([]byte, error) { +func (s PageInfo) MarshalJSON() ([]byte, error) { type NoMethod PageInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ProductPurchase: A ProductPurchase resource indicates the status of a -// user's inapp product purchase. +// ProductPurchase: A ProductPurchase resource indicates the status of a user's +// inapp product purchase. type ProductPurchase struct { - // ConsumptionState: The consumption state of the inapp product. - // Possible values are: + // ConsumptionState: The consumption state of the inapp product. Possible + // values are: // - Yet to be consumed // - Consumed ConsumptionState int64 `json:"consumptionState,omitempty"` - - // DeveloperPayload: A developer-specified string that contains - // supplemental information about an order. + // DeveloperPayload: A developer-specified string that contains supplemental + // information about an order. DeveloperPayload string `json:"developerPayload,omitempty"` - - // Kind: This kind represents an inappPurchase object in the - // androidpublisher service. + // Kind: This kind represents an inappPurchase object in the androidpublisher + // service. Kind string `json:"kind,omitempty"` - - // OrderId: The order id associated with the purchase of the inapp - // product. + // OrderId: The order id associated with the purchase of the inapp product. OrderId string `json:"orderId,omitempty"` - // PurchaseState: The purchase state of the order. Possible values are: - // // - Purchased // - Canceled // - Pending PurchaseState int64 `json:"purchaseState,omitempty"` - - // PurchaseTimeMillis: The time the product was purchased, in - // milliseconds since the epoch (Jan 1, 1970). + // PurchaseTimeMillis: The time the product was purchased, in milliseconds + // since the epoch (Jan 1, 1970). PurchaseTimeMillis int64 `json:"purchaseTimeMillis,omitempty,string"` - - // PurchaseType: The type of purchase of the inapp product. This field - // is only set if this purchase was not made using the standard in-app - // billing flow. Possible values are: + // PurchaseType: The type of purchase of the inapp product. This field is only + // set if this purchase was not made using the standard in-app billing flow. + // Possible values are: // - Test (i.e. purchased from a license testing account) // - Promo (i.e. purchased using a promo code) // - Rewarded (i.e. from watching a video ad instead of paying) PurchaseType *int64 `json:"purchaseType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConsumptionState") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConsumptionState") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConsumptionState") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductPurchase) MarshalJSON() ([]byte, error) { +func (s ProductPurchase) MarshalJSON() ([]byte, error) { type NoMethod ProductPurchase - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TokenPagination struct { - NextPageToken string `json:"nextPageToken,omitempty"` - + NextPageToken string `json:"nextPageToken,omitempty"` PreviousPageToken string `json:"previousPageToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TokenPagination) MarshalJSON() ([]byte, error) { +func (s TokenPagination) MarshalJSON() ([]byte, error) { type NoMethod TokenPagination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VoidedPurchase: A VoidedPurchase resource indicates a purchase that -// was either canceled/refunded/charged-back. +// VoidedPurchase: A VoidedPurchase resource indicates a purchase that was +// either canceled/refunded/charged-back. type VoidedPurchase struct { - // Kind: This kind represents a voided purchase object in the - // androidpublisher service. + // Kind: This kind represents a voided purchase object in the androidpublisher + // service. Kind string `json:"kind,omitempty"` - - // PurchaseTimeMillis: The time at which the purchase was made, in - // milliseconds since the epoch (Jan 1, 1970). + // PurchaseTimeMillis: The time at which the purchase was made, in milliseconds + // since the epoch (Jan 1, 1970). PurchaseTimeMillis int64 `json:"purchaseTimeMillis,omitempty,string"` - - // PurchaseToken: The token which uniquely identifies a one-time - // purchase or subscription. To uniquely identify subscription renewals - // use order_id (available starting from version 3 of the API). + // PurchaseToken: The token which uniquely identifies a one-time purchase or + // subscription. To uniquely identify subscription renewals use order_id + // (available starting from version 3 of the API). PurchaseToken string `json:"purchaseToken,omitempty"` - // VoidedTimeMillis: The time at which the purchase was - // canceled/refunded/charged-back, in milliseconds since the epoch (Jan - // 1, 1970). + // canceled/refunded/charged-back, in milliseconds since the epoch (Jan 1, + // 1970). VoidedTimeMillis int64 `json:"voidedTimeMillis,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VoidedPurchase) MarshalJSON() ([]byte, error) { +func (s VoidedPurchase) MarshalJSON() ([]byte, error) { type NoMethod VoidedPurchase - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type VoidedPurchasesListResponse struct { - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - TokenPagination *TokenPagination `json:"tokenPagination,omitempty"` - + PageInfo *PageInfo `json:"pageInfo,omitempty"` + TokenPagination *TokenPagination `json:"tokenPagination,omitempty"` VoidedPurchases []*VoidedPurchase `json:"voidedPurchases,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "PageInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PageInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PageInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VoidedPurchasesListResponse) MarshalJSON() ([]byte, error) { +func (s VoidedPurchasesListResponse) MarshalJSON() ([]byte, error) { type NoMethod VoidedPurchasesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "androidpublisher.purchases.products.get": - type PurchasesProductsGetCall struct { s *Service packageName string @@ -384,6 +351,12 @@ type PurchasesProductsGetCall struct { } // Get: Checks the purchase and consumption status of an inapp item. +// +// - packageName: The package name of the application the inapp product was +// sold in (for example, 'com.some.thing'). +// - productId: The inapp product SKU (for example, 'com.some.thing.inapp1'). +// - token: The token provided to the user's device when the inapp product was +// purchased. func (r *PurchasesProductsService) Get(packageName string, productId string, token string) *PurchasesProductsGetCall { c := &PurchasesProductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.packageName = packageName @@ -393,33 +366,29 @@ func (r *PurchasesProductsService) Get(packageName string, productId string, tok } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PurchasesProductsGetCall) Fields(s ...googleapi.Field) *PurchasesProductsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PurchasesProductsGetCall) IfNoneMatch(entityTag string) *PurchasesProductsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PurchasesProductsGetCall) Context(ctx context.Context) *PurchasesProductsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PurchasesProductsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -428,12 +397,7 @@ func (c *PurchasesProductsGetCall) Header() http.Header { } func (c *PurchasesProductsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200627") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -452,16 +416,15 @@ func (c *PurchasesProductsGetCall) doRequest(alt string) (*http.Response, error) "productId": c.productId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.products.get" call. -// Exactly one of *ProductPurchase or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ProductPurchase.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProductPurchase.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PurchasesProductsGetCall) Do(opts ...googleapi.CallOption) (*ProductPurchase, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -469,17 +432,17 @@ func (c *PurchasesProductsGetCall) Do(opts ...googleapi.CallOption) (*ProductPur if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProductPurchase{ ServerResponse: googleapi.ServerResponse{ @@ -492,47 +455,7 @@ func (c *PurchasesProductsGetCall) Do(opts ...googleapi.CallOption) (*ProductPur return nil, err } return ret, nil - // { - // "description": "Checks the purchase and consumption status of an inapp item.", - // "httpMethod": "GET", - // "id": "androidpublisher.purchases.products.get", - // "parameterOrder": [ - // "packageName", - // "productId", - // "token" - // ], - // "parameters": { - // "packageName": { - // "description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "productId": { - // "description": "The inapp product SKU (for example, 'com.some.thing.inapp1').", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "token": { - // "description": "The token provided to the user's device when the inapp product was purchased.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{packageName}/purchases/products/{productId}/tokens/{token}", - // "response": { - // "$ref": "ProductPurchase" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/androidpublisher" - // ] - // } - -} - -// method id "androidpublisher.purchases.voidedpurchases.list": +} type PurchasesVoidedpurchasesListCall struct { s *Service @@ -543,21 +466,23 @@ type PurchasesVoidedpurchasesListCall struct { header_ http.Header } -// List: Lists the purchases that were canceled, refunded or -// charged-back. +// List: Lists the purchases that were canceled, refunded or charged-back. +// +// - packageName: The package name of the application for which voided +// purchases need to be returned (for example, 'com.some.thing'). func (r *PurchasesVoidedpurchasesService) List(packageName string) *PurchasesVoidedpurchasesListCall { c := &PurchasesVoidedpurchasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.packageName = packageName return c } -// EndTime sets the optional parameter "endTime": The time, in -// milliseconds since the Epoch, of the newest voided purchase that you -// want to see in the response. The value of this parameter cannot be -// greater than the current time and is ignored if a pagination token is -// set. Default value is current time. Note: This filter is applied on -// the time at which the record is seen as voided by our systems and not -// the actual voided time returned in the response. +// EndTime sets the optional parameter "endTime": The time, in milliseconds +// since the Epoch, of the newest voided purchase that you want to see in the +// response. The value of this parameter cannot be greater than the current +// time and is ignored if a pagination token is set. Default value is current +// time. Note: This filter is applied on the time at which the record is seen +// as voided by our systems and not the actual voided time returned in the +// response. func (c *PurchasesVoidedpurchasesListCall) EndTime(endTime int64) *PurchasesVoidedpurchasesListCall { c.urlParams_.Set("endTime", fmt.Sprint(endTime)) return c @@ -575,13 +500,13 @@ func (c *PurchasesVoidedpurchasesListCall) StartIndex(startIndex int64) *Purchas return c } -// StartTime sets the optional parameter "startTime": The time, in -// milliseconds since the Epoch, of the oldest voided purchase that you -// want to see in the response. The value of this parameter cannot be -// older than 30 days and is ignored if a pagination token is set. -// Default value is current time minus 30 days. Note: This filter is -// applied on the time at which the record is seen as voided by our -// systems and not the actual voided time returned in the response. +// StartTime sets the optional parameter "startTime": The time, in milliseconds +// since the Epoch, of the oldest voided purchase that you want to see in the +// response. The value of this parameter cannot be older than 30 days and is +// ignored if a pagination token is set. Default value is current time minus 30 +// days. Note: This filter is applied on the time at which the record is seen +// as voided by our systems and not the actual voided time returned in the +// response. func (c *PurchasesVoidedpurchasesListCall) StartTime(startTime int64) *PurchasesVoidedpurchasesListCall { c.urlParams_.Set("startTime", fmt.Sprint(startTime)) return c @@ -594,33 +519,29 @@ func (c *PurchasesVoidedpurchasesListCall) Token(token string) *PurchasesVoidedp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PurchasesVoidedpurchasesListCall) Fields(s ...googleapi.Field) *PurchasesVoidedpurchasesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PurchasesVoidedpurchasesListCall) IfNoneMatch(entityTag string) *PurchasesVoidedpurchasesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PurchasesVoidedpurchasesListCall) Context(ctx context.Context) *PurchasesVoidedpurchasesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PurchasesVoidedpurchasesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -629,12 +550,7 @@ func (c *PurchasesVoidedpurchasesListCall) Header() http.Header { } func (c *PurchasesVoidedpurchasesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200627") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -651,16 +567,15 @@ func (c *PurchasesVoidedpurchasesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.voidedpurchases.list" call. -// Exactly one of *VoidedPurchasesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *VoidedPurchasesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *VoidedPurchasesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*VoidedPurchasesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -668,17 +583,17 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VoidedPurchasesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -691,54 +606,4 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo return nil, err } return ret, nil - // { - // "description": "Lists the purchases that were canceled, refunded or charged-back.", - // "httpMethod": "GET", - // "id": "androidpublisher.purchases.voidedpurchases.list", - // "parameterOrder": [ - // "packageName" - // ], - // "parameters": { - // "endTime": { - // "description": "The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "packageName": { - // "description": "The package name of the application for which voided purchases need to be returned (for example, 'com.some.thing').", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "startIndex": { - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "startTime": { - // "description": "The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "token": { - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{packageName}/purchases/voidedpurchases", - // "response": { - // "$ref": "VoidedPurchasesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/androidpublisher" - // ] - // } - } diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 0110183f3bf..e83e0200388 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -723,7 +723,7 @@ "accept": [ "application/octet-stream" ], - "maxSize": "10737418240", + "maxSize": "53687091200", "protocols": { "resumable": { "multipart": true, @@ -4732,7 +4732,7 @@ } } }, - "revision": "20240912", + "revision": "20240917", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { @@ -8671,7 +8671,7 @@ "type": "string" }, "phases": { - "description": "Required. The phases of this subscription offer. Must contain at least one entry, and may contain at most five. Users will always receive all these phases in the specified order. Phases may not be added, removed, or reordered after initial creation.", + "description": "Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.", "items": { "$ref": "SubscriptionOfferPhase" }, diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 9def30dfca4..54098f7a646 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -5902,9 +5902,8 @@ type SubscriptionOffer struct { // subscription belongs to. PackageName string `json:"packageName,omitempty"` // Phases: Required. The phases of this subscription offer. Must contain at - // least one entry, and may contain at most five. Users will always receive all - // these phases in the specified order. Phases may not be added, removed, or - // reordered after initial creation. + // least one and at most two entries. Users will always receive all these + // phases in the specified order. Phases []*SubscriptionOfferPhase `json:"phases,omitempty"` // ProductId: Required. Immutable. The ID of the parent subscription this offer // belongs to. @@ -7652,7 +7651,7 @@ func (c *ApplicationsDataSafetyCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.applications.dataSafety" call. @@ -7762,7 +7761,7 @@ func (c *ApplicationsDeviceTierConfigsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.applications.deviceTierConfigs.create" call. @@ -7874,7 +7873,7 @@ func (c *ApplicationsDeviceTierConfigsGetCall) doRequest(alt string) (*http.Resp "packageName": c.packageName, "deviceTierConfigId": strconv.FormatInt(c.deviceTierConfigId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.applications.deviceTierConfigs.get" call. @@ -8001,7 +8000,7 @@ func (c *ApplicationsDeviceTierConfigsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.applications.deviceTierConfigs.list" call. @@ -8131,7 +8130,7 @@ func (c *ApprecoveryAddTargetingCall) doRequest(alt string) (*http.Response, err "packageName": c.packageName, "appRecoveryId": strconv.FormatInt(c.appRecoveryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.apprecovery.addTargeting" call. @@ -8239,7 +8238,7 @@ func (c *ApprecoveryCancelCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "appRecoveryId": strconv.FormatInt(c.appRecoveryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.apprecovery.cancel" call. @@ -8343,7 +8342,7 @@ func (c *ApprecoveryCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.apprecovery.create" call. @@ -8452,7 +8451,7 @@ func (c *ApprecoveryDeployCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "appRecoveryId": strconv.FormatInt(c.appRecoveryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.apprecovery.deploy" call. @@ -8569,7 +8568,7 @@ func (c *ApprecoveryListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.apprecovery.list" call. @@ -8679,7 +8678,7 @@ func (c *EditsCommitCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.commit" call. @@ -8778,7 +8777,7 @@ func (c *EditsDeleteCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.delete" call. @@ -8866,7 +8865,7 @@ func (c *EditsGetCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.get" call. @@ -8967,7 +8966,7 @@ func (c *EditsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.insert" call. @@ -9066,7 +9065,7 @@ func (c *EditsValidateCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.validate" call. @@ -9174,7 +9173,7 @@ func (c *EditsApksAddexternallyhostedCall) doRequest(alt string) (*http.Response "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.apks.addexternallyhosted" call. @@ -9286,7 +9285,7 @@ func (c *EditsApksListCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.apks.list" call. @@ -9436,7 +9435,7 @@ func (c *EditsApksUploadCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.apks.upload" call. @@ -9564,7 +9563,7 @@ func (c *EditsBundlesListCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.bundles.list" call. @@ -9735,7 +9734,7 @@ func (c *EditsBundlesUploadCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.bundles.upload" call. @@ -9867,7 +9866,7 @@ func (c *EditsCountryavailabilityGetCall) doRequest(alt string) (*http.Response, "editId": c.editId, "track": c.track, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.countryavailability.get" call. @@ -10026,7 +10025,7 @@ func (c *EditsDeobfuscationfilesUploadCall) doRequest(alt string) (*http.Respons "apkVersionCode": strconv.FormatInt(c.apkVersionCode, 10), "deobfuscationFileType": c.deobfuscationFileType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.deobfuscationfiles.upload" call. @@ -10155,7 +10154,7 @@ func (c *EditsDetailsGetCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.details.get" call. @@ -10260,7 +10259,7 @@ func (c *EditsDetailsPatchCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.details.patch" call. @@ -10365,7 +10364,7 @@ func (c *EditsDetailsUpdateCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.details.update" call. @@ -10486,7 +10485,7 @@ func (c *EditsExpansionfilesGetCall) doRequest(alt string) (*http.Response, erro "apkVersionCode": strconv.FormatInt(c.apkVersionCode, 10), "expansionFileType": c.expansionFileType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.expansionfiles.get" call. @@ -10602,7 +10601,7 @@ func (c *EditsExpansionfilesPatchCall) doRequest(alt string) (*http.Response, er "apkVersionCode": strconv.FormatInt(c.apkVersionCode, 10), "expansionFileType": c.expansionFileType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.expansionfiles.patch" call. @@ -10718,7 +10717,7 @@ func (c *EditsExpansionfilesUpdateCall) doRequest(alt string) (*http.Response, e "apkVersionCode": strconv.FormatInt(c.apkVersionCode, 10), "expansionFileType": c.expansionFileType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.expansionfiles.update" call. @@ -10877,7 +10876,7 @@ func (c *EditsExpansionfilesUploadCall) doRequest(alt string) (*http.Response, e "apkVersionCode": strconv.FormatInt(c.apkVersionCode, 10), "expansionFileType": c.expansionFileType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.expansionfiles.upload" call. @@ -11008,7 +11007,7 @@ func (c *EditsImagesDeleteCall) doRequest(alt string) (*http.Response, error) { "imageType": c.imageType, "imageId": c.imageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.images.delete" call. @@ -11096,7 +11095,7 @@ func (c *EditsImagesDeleteallCall) doRequest(alt string) (*http.Response, error) "language": c.language, "imageType": c.imageType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.images.deleteall" call. @@ -11219,7 +11218,7 @@ func (c *EditsImagesListCall) doRequest(alt string) (*http.Response, error) { "language": c.language, "imageType": c.imageType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.images.list" call. @@ -11380,7 +11379,7 @@ func (c *EditsImagesUploadCall) doRequest(alt string) (*http.Response, error) { "language": c.language, "imageType": c.imageType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.images.upload" call. @@ -11502,7 +11501,7 @@ func (c *EditsListingsDeleteCall) doRequest(alt string) (*http.Response, error) "editId": c.editId, "language": c.language, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.listings.delete" call. @@ -11578,7 +11577,7 @@ func (c *EditsListingsDeleteallCall) doRequest(alt string) (*http.Response, erro "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.listings.deleteall" call. @@ -11671,7 +11670,7 @@ func (c *EditsListingsGetCall) doRequest(alt string) (*http.Response, error) { "editId": c.editId, "language": c.language, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.listings.get" call. @@ -11782,7 +11781,7 @@ func (c *EditsListingsListCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.listings.list" call. @@ -11893,7 +11892,7 @@ func (c *EditsListingsPatchCall) doRequest(alt string) (*http.Response, error) { "editId": c.editId, "language": c.language, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.listings.patch" call. @@ -12003,7 +12002,7 @@ func (c *EditsListingsUpdateCall) doRequest(alt string) (*http.Response, error) "editId": c.editId, "language": c.language, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.listings.update" call. @@ -12118,7 +12117,7 @@ func (c *EditsTestersGetCall) doRequest(alt string) (*http.Response, error) { "editId": c.editId, "track": c.track, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.testers.get" call. @@ -12227,7 +12226,7 @@ func (c *EditsTestersPatchCall) doRequest(alt string) (*http.Response, error) { "editId": c.editId, "track": c.track, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.testers.patch" call. @@ -12337,7 +12336,7 @@ func (c *EditsTestersUpdateCall) doRequest(alt string) (*http.Response, error) { "editId": c.editId, "track": c.track, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.testers.update" call. @@ -12442,7 +12441,7 @@ func (c *EditsTracksCreateCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.tracks.create" call. @@ -12558,7 +12557,7 @@ func (c *EditsTracksGetCall) doRequest(alt string) (*http.Response, error) { "editId": c.editId, "track": c.track, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.tracks.get" call. @@ -12669,7 +12668,7 @@ func (c *EditsTracksListCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "editId": c.editId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.tracks.list" call. @@ -12780,7 +12779,7 @@ func (c *EditsTracksPatchCall) doRequest(alt string) (*http.Response, error) { "editId": c.editId, "track": c.track, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.tracks.patch" call. @@ -12890,7 +12889,7 @@ func (c *EditsTracksUpdateCall) doRequest(alt string) (*http.Response, error) { "editId": c.editId, "track": c.track, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.edits.tracks.update" call. @@ -13003,7 +13002,7 @@ func (c *ExternaltransactionsCreateexternaltransactionCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.externaltransactions.createexternaltransaction" call. @@ -13112,7 +13111,7 @@ func (c *ExternaltransactionsGetexternaltransactionCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.externaltransactions.getexternaltransaction" call. @@ -13216,7 +13215,7 @@ func (c *ExternaltransactionsRefundexternaltransactionCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.externaltransactions.refundexternaltransaction" call. @@ -13333,7 +13332,7 @@ func (c *GeneratedapksDownloadCall) doRequest(alt string) (*http.Response, error "versionCode": strconv.FormatInt(c.versionCode, 10), "downloadId": c.downloadId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -13438,7 +13437,7 @@ func (c *GeneratedapksListCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "versionCode": strconv.FormatInt(c.versionCode, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.generatedapks.list" call. @@ -13541,7 +13540,7 @@ func (c *GrantsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.grants.create" call. @@ -13638,7 +13637,7 @@ func (c *GrantsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.grants.delete" call. @@ -13726,7 +13725,7 @@ func (c *GrantsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.grants.patch" call. @@ -13833,7 +13832,7 @@ func (c *InappproductsBatchDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.inappproducts.batchDelete" call. @@ -13928,7 +13927,7 @@ func (c *InappproductsBatchGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.inappproducts.batchGet" call. @@ -14036,7 +14035,7 @@ func (c *InappproductsBatchUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.inappproducts.batchUpdate" call. @@ -14164,7 +14163,7 @@ func (c *InappproductsDeleteCall) doRequest(alt string) (*http.Response, error) "packageName": c.packageName, "sku": c.skuid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.inappproducts.delete" call. @@ -14256,7 +14255,7 @@ func (c *InappproductsGetCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "sku": c.skuid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.inappproducts.get" call. @@ -14371,7 +14370,7 @@ func (c *InappproductsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.inappproducts.insert" call. @@ -14506,7 +14505,7 @@ func (c *InappproductsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.inappproducts.list" call. @@ -14649,7 +14648,7 @@ func (c *InappproductsPatchCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "sku": c.skuid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.inappproducts.patch" call. @@ -14800,7 +14799,7 @@ func (c *InappproductsUpdateCall) doRequest(alt string) (*http.Response, error) "packageName": c.packageName, "sku": c.skuid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.inappproducts.update" call. @@ -14950,7 +14949,7 @@ func (c *InternalappsharingartifactsUploadapkCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.internalappsharingartifacts.uploadapk" call. @@ -15118,7 +15117,7 @@ func (c *InternalappsharingartifactsUploadbundleCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.internalappsharingartifacts.uploadbundle" call. @@ -15239,7 +15238,7 @@ func (c *MonetizationConvertRegionPricesCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.convertRegionPrices" call. @@ -15346,7 +15345,7 @@ func (c *MonetizationSubscriptionsArchiveCall) doRequest(alt string) (*http.Resp "packageName": c.packageName, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.archive" call. @@ -15462,7 +15461,7 @@ func (c *MonetizationSubscriptionsBatchGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.batchGet" call. @@ -15569,7 +15568,7 @@ func (c *MonetizationSubscriptionsBatchUpdateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.batchUpdate" call. @@ -15697,7 +15696,7 @@ func (c *MonetizationSubscriptionsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.create" call. @@ -15798,7 +15797,7 @@ func (c *MonetizationSubscriptionsDeleteCall) doRequest(alt string) (*http.Respo "packageName": c.packageName, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.delete" call. @@ -15886,7 +15885,7 @@ func (c *MonetizationSubscriptionsGetCall) doRequest(alt string) (*http.Response "packageName": c.packageName, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.get" call. @@ -16019,7 +16018,7 @@ func (c *MonetizationSubscriptionsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.list" call. @@ -16205,7 +16204,7 @@ func (c *MonetizationSubscriptionsPatchCall) doRequest(alt string) (*http.Respon "packageName": c.packageName, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.patch" call. @@ -16315,7 +16314,7 @@ func (c *MonetizationSubscriptionsBasePlansActivateCall) doRequest(alt string) ( "productId": c.productId, "basePlanId": c.basePlanId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.activate" call. @@ -16427,7 +16426,7 @@ func (c *MonetizationSubscriptionsBasePlansBatchMigratePricesCall) doRequest(alt "packageName": c.packageName, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.batchMigratePrices" call. @@ -16538,7 +16537,7 @@ func (c *MonetizationSubscriptionsBasePlansBatchUpdateStatesCall) doRequest(alt "packageName": c.packageName, "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.batchUpdateStates" call. @@ -16650,7 +16649,7 @@ func (c *MonetizationSubscriptionsBasePlansDeactivateCall) doRequest(alt string) "productId": c.productId, "basePlanId": c.basePlanId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.deactivate" call. @@ -16754,7 +16753,7 @@ func (c *MonetizationSubscriptionsBasePlansDeleteCall) doRequest(alt string) (*h "productId": c.productId, "basePlanId": c.basePlanId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.delete" call. @@ -16844,7 +16843,7 @@ func (c *MonetizationSubscriptionsBasePlansMigratePricesCall) doRequest(alt stri "productId": c.productId, "basePlanId": c.basePlanId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.migratePrices" call. @@ -16959,7 +16958,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersActivateCall) doRequest(alt str "basePlanId": c.basePlanId, "offerId": c.offerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.offers.activate" call. @@ -17074,7 +17073,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersBatchGetCall) doRequest(alt str "productId": c.productId, "basePlanId": c.basePlanId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.offers.batchGet" call. @@ -17193,7 +17192,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersBatchUpdateCall) doRequest(alt "productId": c.productId, "basePlanId": c.basePlanId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.offers.batchUpdate" call. @@ -17312,7 +17311,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersBatchUpdateStatesCall) doReques "productId": c.productId, "basePlanId": c.basePlanId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.offers.batchUpdateStates" call. @@ -17453,7 +17452,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersCreateCall) doRequest(alt strin "productId": c.productId, "basePlanId": c.basePlanId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.offers.create" call. @@ -17569,7 +17568,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersDeactivateCall) doRequest(alt s "basePlanId": c.basePlanId, "offerId": c.offerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.offers.deactivate" call. @@ -17678,7 +17677,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersDeleteCall) doRequest(alt strin "basePlanId": c.basePlanId, "offerId": c.offerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.offers.delete" call. @@ -17774,7 +17773,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersGetCall) doRequest(alt string) "basePlanId": c.basePlanId, "offerId": c.offerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.offers.get" call. @@ -17912,7 +17911,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersListCall) doRequest(alt string) "productId": c.productId, "basePlanId": c.basePlanId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.offers.list" call. @@ -18106,7 +18105,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersPatchCall) doRequest(alt string "basePlanId": c.basePlanId, "offerId": c.offerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.monetization.subscriptions.basePlans.offers.patch" call. @@ -18219,7 +18218,7 @@ func (c *OrdersRefundCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.orders.refund" call. @@ -18307,7 +18306,7 @@ func (c *PurchasesProductsAcknowledgeCall) doRequest(alt string) (*http.Response "productId": c.productId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.products.acknowledge" call. @@ -18389,7 +18388,7 @@ func (c *PurchasesProductsConsumeCall) doRequest(alt string) (*http.Response, er "productId": c.productId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.products.consume" call. @@ -18483,7 +18482,7 @@ func (c *PurchasesProductsGetCall) doRequest(alt string) (*http.Response, error) "productId": c.productId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.products.get" call. @@ -18595,7 +18594,7 @@ func (c *PurchasesSubscriptionsAcknowledgeCall) doRequest(alt string) (*http.Res "subscriptionId": c.subscriptionId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.subscriptions.acknowledge" call. @@ -18678,7 +18677,7 @@ func (c *PurchasesSubscriptionsCancelCall) doRequest(alt string) (*http.Response "subscriptionId": c.subscriptionId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.subscriptions.cancel" call. @@ -18767,7 +18766,7 @@ func (c *PurchasesSubscriptionsDeferCall) doRequest(alt string) (*http.Response, "subscriptionId": c.subscriptionId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.subscriptions.defer" call. @@ -18886,7 +18885,7 @@ func (c *PurchasesSubscriptionsGetCall) doRequest(alt string) (*http.Response, e "subscriptionId": c.subscriptionId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.subscriptions.get" call. @@ -18994,7 +18993,7 @@ func (c *PurchasesSubscriptionsRefundCall) doRequest(alt string) (*http.Response "subscriptionId": c.subscriptionId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.subscriptions.refund" call. @@ -19078,7 +19077,7 @@ func (c *PurchasesSubscriptionsRevokeCall) doRequest(alt string) (*http.Response "subscriptionId": c.subscriptionId, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.subscriptions.revoke" call. @@ -19168,7 +19167,7 @@ func (c *PurchasesSubscriptionsv2GetCall) doRequest(alt string) (*http.Response, "packageName": c.packageName, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.subscriptionsv2.get" call. @@ -19276,7 +19275,7 @@ func (c *PurchasesSubscriptionsv2RevokeCall) doRequest(alt string) (*http.Respon "packageName": c.packageName, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.subscriptionsv2.revoke" call. @@ -19458,7 +19457,7 @@ func (c *PurchasesVoidedpurchasesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.purchases.voidedpurchases.list" call. @@ -19577,7 +19576,7 @@ func (c *ReviewsGetCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "reviewId": c.reviewId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.reviews.get" call. @@ -19712,7 +19711,7 @@ func (c *ReviewsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.reviews.list" call. @@ -19818,7 +19817,7 @@ func (c *ReviewsReplyCall) doRequest(alt string) (*http.Response, error) { "packageName": c.packageName, "reviewId": c.reviewId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.reviews.reply" call. @@ -19925,7 +19924,7 @@ func (c *SystemapksVariantsCreateCall) doRequest(alt string) (*http.Response, er "packageName": c.packageName, "versionCode": strconv.FormatInt(c.versionCode, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.systemapks.variants.create" call. @@ -20041,7 +20040,7 @@ func (c *SystemapksVariantsDownloadCall) doRequest(alt string) (*http.Response, "versionCode": strconv.FormatInt(c.versionCode, 10), "variantId": strconv.FormatInt(c.variantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -20149,7 +20148,7 @@ func (c *SystemapksVariantsGetCall) doRequest(alt string) (*http.Response, error "versionCode": strconv.FormatInt(c.versionCode, 10), "variantId": strconv.FormatInt(c.variantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.systemapks.variants.get" call. @@ -20260,7 +20259,7 @@ func (c *SystemapksVariantsListCall) doRequest(alt string) (*http.Response, erro "packageName": c.packageName, "versionCode": strconv.FormatInt(c.versionCode, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.systemapks.variants.list" call. @@ -20363,7 +20362,7 @@ func (c *UsersCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.users.create" call. @@ -20459,7 +20458,7 @@ func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.users.delete" call. @@ -20558,7 +20557,7 @@ func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.users.list" call. @@ -20689,7 +20688,7 @@ func (c *UsersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "androidpublisher.users.patch" call. diff --git a/api-list.json b/api-list.json index bf61e6722ef..acd689ba11f 100644 --- a/api-list.json +++ b/api-list.json @@ -62,21 +62,6 @@ "documentationLink": "https://cloud.google.com/access-context-manager/docs/reference/rest/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "acmedns:v1", - "name": "acmedns", - "version": "v1", - "title": "ACME DNS API", - "description": "Google Domains ACME DNS API that allows users to complete ACME DNS-01 challenges for a domain.", - "discoveryRestUrl": "https://acmedns.googleapis.com/$discovery/rest?version=v1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://developers.google.com/domains/acme-dns/", - "preferred": true - }, { "kind": "discovery#directoryItem", "id": "addressvalidation:v1", @@ -227,6 +212,36 @@ "documentationLink": "https://developers.google.com/adsense/host/index", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "adsenseplatform:v1alpha", + "name": "adsenseplatform", + "version": "v1alpha", + "title": "AdSense Platform API", + "description": "", + "discoveryRestUrl": "https://adsenseplatform.googleapis.com/$discovery/rest?version=v1alpha", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://developers.google.com/adsense/platforms/", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "adsenseplatform:v1", + "name": "adsenseplatform", + "version": "v1", + "title": "AdSense Platform API", + "description": "", + "discoveryRestUrl": "https://adsenseplatform.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://developers.google.com/adsense/platforms/", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "advisorynotifications:v1", @@ -766,6 +781,21 @@ "documentationLink": "https://cloud.google.com/learnmoreurl", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "authorizedbuyersmarketplace:v1alpha", + "name": "authorizedbuyersmarketplace", + "version": "v1alpha", + "title": "Authorized Buyers Marketplace API", + "description": "The Authorized Buyers Marketplace API lets buyers programmatically discover inventory; propose, retrieve and negotiate deals with publishers.", + "discoveryRestUrl": "https://authorizedbuyersmarketplace.googleapis.com/$discovery/rest?version=v1alpha", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "authorizedbuyersmarketplace:v1", @@ -1996,7 +2026,7 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/container-engine/", + "documentationLink": "https://cloud.google.com/kubernetes-engine/docs/", "preferred": false }, { @@ -2011,7 +2041,7 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/container-engine/", + "documentationLink": "https://cloud.google.com/kubernetes-engine/docs/", "preferred": true }, { @@ -2611,7 +2641,7 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/discovery-engine/docs", + "documentationLink": "https://cloud.google.com/generative-ai-app-builder/docs/", "preferred": false }, { @@ -2626,7 +2656,7 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/discovery-engine/docs", + "documentationLink": "https://cloud.google.com/generative-ai-app-builder/docs/", "preferred": false }, { @@ -2641,7 +2671,7 @@ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, - "documentationLink": "https://cloud.google.com/discovery-engine/docs", + "documentationLink": "https://cloud.google.com/generative-ai-app-builder/docs/", "preferred": true }, { @@ -2824,21 +2854,6 @@ "documentationLink": "https://cloud.google.com/domains/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "domainsrdap:v1", - "name": "domainsrdap", - "version": "v1", - "title": "Domains RDAP API", - "description": "Read-only public API that lets users search for information about domain names.", - "discoveryRestUrl": "https://domainsrdap.googleapis.com/$discovery/rest?version=v1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://developers.google.com/domains/rdap/", - "preferred": true - }, { "kind": "discovery#directoryItem", "id": "doubleclickbidmanager:v2", @@ -3456,6 +3471,21 @@ "documentationLink": "https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster", "preferred": false }, + { + "kind": "discovery#directoryItem", + "id": "gkehub:v2beta", + "name": "gkehub", + "version": "v2beta", + "title": "GKE Hub API", + "description": "", + "discoveryRestUrl": "https://gkehub.googleapis.com/$discovery/rest?version=v2beta", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "gkehub:v1", @@ -3469,6 +3499,21 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "gkehub:v2", + "name": "gkehub", + "version": "v2", + "title": "GKE Hub API", + "description": "", + "discoveryRestUrl": "https://gkehub.googleapis.com/$discovery/rest?version=v2", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster", "preferred": true }, { @@ -4279,6 +4324,21 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://developers.devsite.corp.google.com/merchant/api", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "merchantapi:reviews_v1beta", + "name": "merchantapi", + "version": "reviews_v1beta", + "title": "Merchant API", + "description": "Programmatically manage your Merchant Center Accounts.", + "discoveryRestUrl": "https://merchantapi.googleapis.com/$discovery/rest?version=reviews_v1beta", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://developers.devsite.corp.google.com/merchant/api", "preferred": true }, { @@ -4702,6 +4762,21 @@ "documentationLink": "https://cloud.google.com/container-analysis/docs/on-demand-scanning/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "oracledatabase:v1", + "name": "oracledatabase", + "version": "v1", + "title": "Oracle Database@Google Cloud API", + "description": "The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases.", + "discoveryRestUrl": "https://oracledatabase.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/oracle/database/docs", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "orgpolicy:v2", @@ -5257,21 +5332,6 @@ "documentationLink": "https://developers.google.com/news/subscribe/subscription-linking/overview", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "realtimebidding:v1alpha", - "name": "realtimebidding", - "version": "v1alpha", - "title": "Real-time Bidding API", - "description": "Allows external bidders to manage their RTB integration with Google. This includes managing bidder endpoints, QPS quotas, configuring what ad inventory to receive via pretargeting, submitting creatives for verification, and accessing creative metadata such as approval status.", - "discoveryRestUrl": "https://realtimebidding.googleapis.com/$discovery/rest?version=v1alpha", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/", - "preferred": false - }, { "kind": "discovery#directoryItem", "id": "realtimebidding:v1", diff --git a/apigateway/v1/apigateway-gen.go b/apigateway/v1/apigateway-gen.go index 9f6782d0a1b..36990188b37 100644 --- a/apigateway/v1/apigateway-gen.go +++ b/apigateway/v1/apigateway-gen.go @@ -1294,7 +1294,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.get" call. @@ -1426,7 +1426,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.list" call. @@ -1557,7 +1557,7 @@ func (c *ProjectsLocationsApisCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.create" call. @@ -1653,7 +1653,7 @@ func (c *ProjectsLocationsApisDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.delete" call. @@ -1761,7 +1761,7 @@ func (c *ProjectsLocationsApisGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.get" call. @@ -1888,7 +1888,7 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.getIamPolicy" call. @@ -2021,7 +2021,7 @@ func (c *ProjectsLocationsApisListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.list" call. @@ -2155,7 +2155,7 @@ func (c *ProjectsLocationsApisPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.patch" call. @@ -2261,7 +2261,7 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.setIamPolicy" call. @@ -2370,7 +2370,7 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.testIamPermissions" call. @@ -2481,7 +2481,7 @@ func (c *ProjectsLocationsApisConfigsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.create" call. @@ -2578,7 +2578,7 @@ func (c *ProjectsLocationsApisConfigsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.delete" call. @@ -2700,7 +2700,7 @@ func (c *ProjectsLocationsApisConfigsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.get" call. @@ -2828,7 +2828,7 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.getIamPolicy" call. @@ -2961,7 +2961,7 @@ func (c *ProjectsLocationsApisConfigsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.list" call. @@ -3096,7 +3096,7 @@ func (c *ProjectsLocationsApisConfigsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.patch" call. @@ -3202,7 +3202,7 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.setIamPolicy" call. @@ -3311,7 +3311,7 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.testIamPermissions" call. @@ -3421,7 +3421,7 @@ func (c *ProjectsLocationsGatewaysCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.create" call. @@ -3517,7 +3517,7 @@ func (c *ProjectsLocationsGatewaysDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.delete" call. @@ -3625,7 +3625,7 @@ func (c *ProjectsLocationsGatewaysGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.get" call. @@ -3753,7 +3753,7 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.getIamPolicy" call. @@ -3886,7 +3886,7 @@ func (c *ProjectsLocationsGatewaysListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.list" call. @@ -4020,7 +4020,7 @@ func (c *ProjectsLocationsGatewaysPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.patch" call. @@ -4126,7 +4126,7 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.setIamPolicy" call. @@ -4235,7 +4235,7 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.testIamPermissions" call. @@ -4345,7 +4345,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.cancel" call. @@ -4443,7 +4443,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.delete" call. @@ -4552,7 +4552,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.get" call. @@ -4681,7 +4681,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.list" call. diff --git a/apigateway/v1alpha1/apigateway-gen.go b/apigateway/v1alpha1/apigateway-gen.go index 1a23b92b340..03395abd2ff 100644 --- a/apigateway/v1alpha1/apigateway-gen.go +++ b/apigateway/v1alpha1/apigateway-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/api-gateway/docs // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // apigatewayService, err := apigateway.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // apigatewayService, err := apigateway.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // apigatewayService, err := apigateway.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package apigateway // import "google.golang.org/api/apigateway/v1alpha1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "apigateway:v1alpha1" const apiName = "apigateway" const apiVersion = "v1alpha1" const basePath = "https://apigateway.googleapis.com/" +const basePathTemplate = "https://apigateway.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://apigateway.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -204,70 +222,56 @@ type ProjectsLocationsOperationsService struct { s *Service } -// ApigatewayAuditConfig: Specifies the audit configuration for a -// service. The configuration determines which permission types are -// logged, and what identities, if any, are exempted from logging. An -// AuditConfig must have one or more AuditLogConfigs. If there are -// AuditConfigs for both `allServices` and a specific service, the union -// of the two AuditConfigs is used for that service: the log_types -// specified in each AuditConfig are enabled, and the exempted_members -// in each AuditLogConfig are exempted. Example Policy with multiple -// AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": -// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { -// "log_type": "ADMIN_READ" } ] }, { "service": -// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": -// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy -// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts -// jose@example.com from DATA_READ logging, and aliya@example.com from -// DATA_WRITE logging. +// ApigatewayAuditConfig: Specifies the audit configuration for a service. The +// configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +// and a specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted. Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts jose@example.com from DATA_READ logging, and +// aliya@example.com from DATA_WRITE logging. type ApigatewayAuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*ApigatewayAuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit logging. - // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - // `allServices` is a special value that covers all services. + // Service: Specifies a service that will be enabled for audit logging. For + // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` + // is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayAuditConfig) MarshalJSON() ([]byte, error) { +func (s ApigatewayAuditConfig) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayAuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ApigatewayAuditLogConfig: Provides the configuration for logging a -// type of permissions. Example: { "audit_log_configs": [ { "log_type": -// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { -// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and -// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ -// logging. +// ApigatewayAuditLogConfig: Provides the configuration for logging a type of +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. type ApigatewayAuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of permission. Follows the same format of - // Binding.members. + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. // // Possible values: @@ -276,103 +280,84 @@ type ApigatewayAuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayAuditLogConfig) MarshalJSON() ([]byte, error) { +func (s ApigatewayAuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayAuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayBinding: Associates `members` with a `role`. type ApigatewayBinding struct { // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the - // current request. If the condition evaluates to `false`, then this - // binding does not apply to the current request. However, a different - // role binding might grant the same role to one or more of the members - // in this binding. To learn which resources support conditions in their - // IAM policies, see the [IAM - // documentation](https://cloud.google.com/iam/help/conditions/resource-p - // olicies). + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the members in this binding. To learn which + // resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *ApigatewayExpr `json:"condition,omitempty"` - - // Members: Specifies the identities requesting access for a Cloud - // Platform resource. `members` can have the following values: * - // `allUsers`: A special identifier that represents anyone who is on the - // internet; with or without a Google account. * - // `allAuthenticatedUsers`: A special identifier that represents anyone - // who is authenticated with a Google account or a service account. * - // `user:{emailid}`: An email address that represents a specific Google - // account. For example, `alice@example.com` . * - // `serviceAccount:{emailid}`: An email address that represents a - // service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An - // email address that represents a Google group. For example, - // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An - // email address (plus unique identifier) representing a user that has - // been recently deleted. For example, - // `alice@example.com?uid=123456789012345678901`. If the user is - // recovered, this value reverts to `user:{emailid}` and the recovered - // user retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus unique identifier) representing a service account that has been + // Members: Specifies the identities requesting access for a Cloud Platform + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. * `user:{emailid}`: An email address that represents a specific + // Google account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a service + // account. For example, `my-other-app@appspot.gserviceaccount.com`. * + // `group:{emailid}`: An email address that represents a Google group. For + // example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has been + // recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is recovered, + // this value reverts to `user:{emailid}` and the recovered user retains the + // role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a service account that + // has been recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the + // service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + // address (plus unique identifier) representing a Google group that has been // recently deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: - // An email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is - // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // `admins@example.com?uid=123456789012345678901`. If the group is recovered, + // this value reverts to `group:{emailid}` and the recovered group retains the + // role in the binding. * `domain:{domain}`: The G Suite domain (primary) that + // represents all the users of that domain. For example, `google.com` or + // `example.com`. Members []string `json:"members,omitempty"` - - // Role: Role that is assigned to `members`. For example, - // `roles/viewer`, `roles/editor`, or `roles/owner`. + // Role: Role that is assigned to `members`. For example, `roles/viewer`, + // `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayBinding) MarshalJSON() ([]byte, error) { +func (s ApigatewayBinding) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayBinding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayCancelOperationRequest: The request message for @@ -380,101 +365,81 @@ func (s *ApigatewayBinding) MarshalJSON() ([]byte, error) { type ApigatewayCancelOperationRequest struct { } -// ApigatewayExpr: Represents a textual expression in the Common -// Expression Language (CEL) syntax. CEL is a C-like expression -// language. The syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if -// requestor is the document owner" expression: "document.owner == -// request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional +// ApigatewayExpr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The syntax and +// semantics of CEL are documented at https://github.com/google/cel-spec. +// Example (Comparison): title: "Summary size limit" description: "Determines +// if a summary is less than 100 chars" expression: "document.summary.size() < +// 100" Example (Equality): title: "Requestor is owner" description: +// "Determines if requestor is the document owner" expression: "document.owner +// == request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type ApigatewayExpr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayExpr) MarshalJSON() ([]byte, error) { +func (s ApigatewayExpr) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayExpr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayListLocationsResponse: The response message for // Locations.ListLocations. type ApigatewayListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. + // Locations: A list of locations that matches the specified filter in the + // request. Locations []*ApigatewayLocation `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ApigatewayListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayListOperationsResponse: The response message for @@ -482,416 +447,328 @@ func (s *ApigatewayListLocationsResponse) MarshalJSON() ([]byte, error) { type ApigatewayListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*ApigatewayOperation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ApigatewayListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayLocation: A resource that represents Google Cloud Platform // location. type ApigatewayLocation struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". + // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayLocation) MarshalJSON() ([]byte, error) { +func (s ApigatewayLocation) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ApigatewayOperation: This resource represents a long-running -// operation that is the result of a network API call. +// ApigatewayOperation: This resource represents a long-running operation that +// is the result of a network API call. type ApigatewayOperation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *ApigatewayStatus `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayOperation) MarshalJSON() ([]byte, error) { +func (s ApigatewayOperation) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ApigatewayPolicy: An Identity and Access Management (IAM) policy, -// which specifies access controls for Google Cloud resources. A -// `Policy` is a collection of `bindings`. A `binding` binds one or more -// `members` to a single `role`. Members can be user accounts, service -// accounts, Google groups, and domains (such as G Suite). A `role` is a -// named list of permissions; each `role` can be an IAM predefined role -// or a user-created custom role. For some types of Google Cloud -// resources, a `binding` can also specify a `condition`, which is a -// logical expression that allows access to a resource only if the -// expression evaluates to `true`. A condition can add constraints based -// on attributes of the request, the resource, or both. To learn which -// resources support conditions in their IAM policies, see the [IAM -// documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). **JSON example:** { "bindings": [ { "role": + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ApigatewayPolicy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members` to a +// single `role`. Members can be user accounts, service accounts, Google +// groups, and domains (such as G Suite). A `role` is a named list of +// permissions; each `role` can be an IAM predefined role or a user-created +// custom role. For some types of Google Cloud resources, a `binding` can also +// specify a `condition`, which is a logical expression that allows access to a +// resource only if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or both. To +// learn which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: -// 3 For a description of IAM and its features, see the [IAM -// documentation](https://cloud.google.com/iam/docs/). +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type ApigatewayPolicy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*ApigatewayAuditConfig `json:"auditConfigs,omitempty"` - // Bindings: Associates a list of `members` to a `role`. Optionally, may // specify a `condition` that determines how and when the `bindings` are // applied. Each of the `bindings` must contain at least one member. Bindings []*ApigatewayBinding `json:"bindings,omitempty"` - - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the [IAM - // documentation](https://cloud.google.com/iam/help/conditions/resource-p - // olicies). + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayPolicy) MarshalJSON() ([]byte, error) { +func (s ApigatewayPolicy) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ApigatewaySetIamPolicyRequest: Request message for `SetIamPolicy` -// method. +// ApigatewaySetIamPolicyRequest: Request message for `SetIamPolicy` method. type ApigatewaySetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Cloud Platform services - // (such as Projects) might reject them. + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Cloud Platform services (such as Projects) might reject + // them. Policy *ApigatewayPolicy `json:"policy,omitempty"` - - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only the fields in the mask will be modified. If no - // mask is provided, the following default mask is used: `paths: - // "bindings, etag" + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only the fields in the mask will be modified. If no mask is + // provided, the following default mask is used: `paths: "bindings, etag" UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewaySetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s ApigatewaySetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod ApigatewaySetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ApigatewayStatus: The `Status` type defines a logical error model -// that is suitable for different programming environments, including -// REST APIs and RPC APIs. It is used by -// [gRPC](https://github.com/grpc). Each `Status` message contains three -// pieces of data: error code, error message, and error details. You can -// find out more about this error model and how to work with it in the -// [API Design Guide](https://cloud.google.com/apis/design/errors). +// ApigatewayStatus: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs and RPC +// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message +// contains three pieces of data: error code, error message, and error details. +// You can find out more about this error model and how to work with it in the +// API Design Guide (https://cloud.google.com/apis/design/errors). type ApigatewayStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayStatus) MarshalJSON() ([]byte, error) { +func (s ApigatewayStatus) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayTestIamPermissionsRequest: Request message for // `TestIamPermissions` method. type ApigatewayTestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as '*' or 'storage.*') are not - // allowed. For more information see [IAM - // Overview](https://cloud.google.com/iam/docs/overview#permissions). + // Permissions: The set of permissions to check for the `resource`. Permissions + // with wildcards (such as '*' or 'storage.*') are not allowed. For more + // information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayTestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s ApigatewayTestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayTestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayTestIamPermissionsResponse: Response message for // `TestIamPermissions` method. type ApigatewayTestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is allowed. + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayTestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s ApigatewayTestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayTestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON +// representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// method id "apigateway.projects.locations.get": - type ProjectsLocationsGetCall struct { s *Service name string @@ -902,6 +779,8 @@ type ProjectsLocationsGetCall struct { } // Get: Gets information about a location. +// +// - name: Resource name for the location. func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -909,33 +788,29 @@ func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -944,12 +819,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { } func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -966,16 +836,15 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.get" call. -// Exactly one of *ApigatewayLocation or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayLocation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayLocation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*ApigatewayLocation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -983,17 +852,17 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Apigateway if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayLocation{ ServerResponse: googleapi.ServerResponse{ @@ -1006,35 +875,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Apigateway return nil, err } return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the location.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "response": { - // "$ref": "ApigatewayLocation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.list": +} type ProjectsLocationsListCall struct { s *Service @@ -1045,63 +886,59 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this service. +// +// - name: The resource that owns the locations collection, if applicable. func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1110,12 +947,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { } func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1132,16 +964,15 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.list" call. -// Exactly one of *ApigatewayListLocationsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ApigatewayListLocationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ApigatewayListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1149,17 +980,17 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*Apigatewa if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1172,48 +1003,6 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*Apigatewa return nil, err } return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}/locations", - // "response": { - // "$ref": "ApigatewayListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1221,7 +1010,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*Apigatewa // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ApigatewayListLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1237,8 +1026,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*Apigatewa } } -// method id "apigateway.projects.locations.apis.getIamPolicy": - type ProjectsLocationsApisGetIamPolicyCall struct { s *Service resource string @@ -1248,9 +1035,11 @@ type ProjectsLocationsApisGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsApisService) GetIamPolicy(resource string) *ProjectsLocationsApisGetIamPolicyCall { c := &ProjectsLocationsApisGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1258,48 +1047,42 @@ func (r *ProjectsLocationsApisService) GetIamPolicy(resource string) *ProjectsLo } // OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The policy format version to be -// returned. Valid values are 0, 1, and 3. Requests specifying an -// invalid value will be rejected. Requests for policies with any -// conditional bindings must specify version 3. Policies without any -// conditional bindings may specify any valid value or leave the field -// unset. To learn which resources support conditions in their IAM -// policies, see the [IAM -// documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). +// "options.requestedPolicyVersion": The policy format version to be returned. +// Valid values are 0, 1, and 3. Requests specifying an invalid value will be +// rejected. Requests for policies with any conditional bindings must specify +// version 3. Policies without any conditional bindings may specify any valid +// value or leave the field unset. To learn which resources support conditions +// in their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsApisGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApisGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsApisGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsApisGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApisGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1308,12 +1091,7 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsApisGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1330,16 +1108,15 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.getIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsApisGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1347,17 +1124,17 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -1370,41 +1147,7 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/apis/{apisId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.apis.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:getIamPolicy", - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.apis.setIamPolicy": +} type ProjectsLocationsApisSetIamPolicyCall struct { s *Service @@ -1415,9 +1158,12 @@ type ProjectsLocationsApisSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsApisService) SetIamPolicy(resource string, apigatewaysetiampolicyrequest *ApigatewaySetIamPolicyRequest) *ProjectsLocationsApisSetIamPolicyCall { c := &ProjectsLocationsApisSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1426,23 +1172,21 @@ func (r *ProjectsLocationsApisService) SetIamPolicy(resource string, apigateways } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApisSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1451,18 +1195,12 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsApisSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaysetiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:setIamPolicy") @@ -1475,16 +1213,15 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.setIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsApisSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1492,17 +1229,17 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -1515,38 +1252,7 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/apis/{apisId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.apis.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "ApigatewaySetIamPolicyRequest" - // }, - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.apis.testIamPermissions": +} type ProjectsLocationsApisTestIamPermissionsCall struct { s *Service @@ -1557,12 +1263,15 @@ type ProjectsLocationsApisTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsLocationsApisService) TestIamPermissions(resource string, apigatewaytestiampermissionsrequest *ApigatewayTestIamPermissionsRequest) *ProjectsLocationsApisTestIamPermissionsCall { c := &ProjectsLocationsApisTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1571,23 +1280,21 @@ func (r *ProjectsLocationsApisService) TestIamPermissions(resource string, apiga } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsApisTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1596,18 +1303,12 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) Header() http.Header { } func (c *ProjectsLocationsApisTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaytestiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:testIamPermissions") @@ -1620,17 +1321,15 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.testIamPermissions" call. -// Exactly one of *ApigatewayTestIamPermissionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsApisTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*ApigatewayTestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1638,17 +1337,17 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayTestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1661,38 +1360,7 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/apis/{apisId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.apis.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "ApigatewayTestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "ApigatewayTestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.apis.configs.getIamPolicy": +} type ProjectsLocationsApisConfigsGetIamPolicyCall struct { s *Service @@ -1703,9 +1371,11 @@ type ProjectsLocationsApisConfigsGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsApisConfigsService) GetIamPolicy(resource string) *ProjectsLocationsApisConfigsGetIamPolicyCall { c := &ProjectsLocationsApisConfigsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1713,48 +1383,42 @@ func (r *ProjectsLocationsApisConfigsService) GetIamPolicy(resource string) *Pro } // OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The policy format version to be -// returned. Valid values are 0, 1, and 3. Requests specifying an -// invalid value will be rejected. Requests for policies with any -// conditional bindings must specify version 3. Policies without any -// conditional bindings may specify any valid value or leave the field -// unset. To learn which resources support conditions in their IAM -// policies, see the [IAM -// documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). +// "options.requestedPolicyVersion": The policy format version to be returned. +// Valid values are 0, 1, and 3. Requests specifying an invalid value will be +// rejected. Requests for policies with any conditional bindings must specify +// version 3. Policies without any conditional bindings may specify any valid +// value or leave the field unset. To learn which resources support conditions +// in their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApisConfigsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisConfigsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsApisConfigsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApisConfigsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1763,12 +1427,7 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1785,16 +1444,15 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.getIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1802,17 +1460,17 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -1825,41 +1483,7 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/apis/{apisId}/configs/{configsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.apis.configs.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+/configs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:getIamPolicy", - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.apis.configs.setIamPolicy": +} type ProjectsLocationsApisConfigsSetIamPolicyCall struct { s *Service @@ -1870,9 +1494,12 @@ type ProjectsLocationsApisConfigsSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsApisConfigsService) SetIamPolicy(resource string, apigatewaysetiampolicyrequest *ApigatewaySetIamPolicyRequest) *ProjectsLocationsApisConfigsSetIamPolicyCall { c := &ProjectsLocationsApisConfigsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1881,23 +1508,21 @@ func (r *ProjectsLocationsApisConfigsService) SetIamPolicy(resource string, apig } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisConfigsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApisConfigsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1906,18 +1531,12 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaysetiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:setIamPolicy") @@ -1930,16 +1549,15 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.setIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1947,17 +1565,17 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -1970,38 +1588,7 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/apis/{apisId}/configs/{configsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.apis.configs.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+/configs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "ApigatewaySetIamPolicyRequest" - // }, - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.apis.configs.testIamPermissions": +} type ProjectsLocationsApisConfigsTestIamPermissionsCall struct { s *Service @@ -2012,12 +1599,15 @@ type ProjectsLocationsApisConfigsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsLocationsApisConfigsService) TestIamPermissions(resource string, apigatewaytestiampermissionsrequest *ApigatewayTestIamPermissionsRequest) *ProjectsLocationsApisConfigsTestIamPermissionsCall { c := &ProjectsLocationsApisConfigsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2026,23 +1616,21 @@ func (r *ProjectsLocationsApisConfigsService) TestIamPermissions(resource string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisConfigsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsApisConfigsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2051,18 +1639,12 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Header() http.Heade } func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaytestiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:testIamPermissions") @@ -2075,17 +1657,15 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.testIamPermissions" call. -// Exactly one of *ApigatewayTestIamPermissionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*ApigatewayTestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2093,17 +1673,17 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayTestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2116,38 +1696,7 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/apis/{apisId}/configs/{configsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.apis.configs.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+/configs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "ApigatewayTestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "ApigatewayTestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.gateways.getIamPolicy": +} type ProjectsLocationsGatewaysGetIamPolicyCall struct { s *Service @@ -2158,9 +1707,11 @@ type ProjectsLocationsGatewaysGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsGatewaysGetIamPolicyCall { c := &ProjectsLocationsGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2168,48 +1719,42 @@ func (r *ProjectsLocationsGatewaysService) GetIamPolicy(resource string) *Projec } // OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The policy format version to be -// returned. Valid values are 0, 1, and 3. Requests specifying an -// invalid value will be rejected. Requests for policies with any -// conditional bindings must specify version 3. Policies without any -// conditional bindings may specify any valid value or leave the field -// unset. To learn which resources support conditions in their IAM -// policies, see the [IAM -// documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). +// "options.requestedPolicyVersion": The policy format version to be returned. +// Valid values are 0, 1, and 3. Requests specifying an invalid value will be +// rejected. Requests for policies with any conditional bindings must specify +// version 3. Policies without any conditional bindings may specify any valid +// value or leave the field unset. To learn which resources support conditions +// in their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGatewaysGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGatewaysGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2218,12 +1763,7 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsGatewaysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2240,16 +1780,15 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.getIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2257,17 +1796,17 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -2280,41 +1819,7 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/gateways/{gatewaysId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.gateways.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:getIamPolicy", - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.gateways.setIamPolicy": +} type ProjectsLocationsGatewaysSetIamPolicyCall struct { s *Service @@ -2325,9 +1830,12 @@ type ProjectsLocationsGatewaysSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsGatewaysService) SetIamPolicy(resource string, apigatewaysetiampolicyrequest *ApigatewaySetIamPolicyRequest) *ProjectsLocationsGatewaysSetIamPolicyCall { c := &ProjectsLocationsGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2336,23 +1844,21 @@ func (r *ProjectsLocationsGatewaysService) SetIamPolicy(resource string, apigate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGatewaysSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2361,18 +1867,12 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaysetiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:setIamPolicy") @@ -2385,16 +1885,15 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.setIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2402,17 +1901,17 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -2425,38 +1924,7 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/gateways/{gatewaysId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.gateways.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "ApigatewaySetIamPolicyRequest" - // }, - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.gateways.testIamPermissions": +} type ProjectsLocationsGatewaysTestIamPermissionsCall struct { s *Service @@ -2467,12 +1935,15 @@ type ProjectsLocationsGatewaysTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsLocationsGatewaysService) TestIamPermissions(resource string, apigatewaytestiampermissionsrequest *ApigatewayTestIamPermissionsRequest) *ProjectsLocationsGatewaysTestIamPermissionsCall { c := &ProjectsLocationsGatewaysTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2481,23 +1952,21 @@ func (r *ProjectsLocationsGatewaysService) TestIamPermissions(resource string, a } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGatewaysTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2506,18 +1975,12 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Header() http.Header { } func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaytestiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:testIamPermissions") @@ -2530,17 +1993,15 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.testIamPermissions" call. -// Exactly one of *ApigatewayTestIamPermissionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*ApigatewayTestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2548,17 +2009,17 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Do(opts ...googleapi.C if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayTestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2571,38 +2032,7 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/gateways/{gatewaysId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.gateways.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "ApigatewayTestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "ApigatewayTestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.operations.cancel": +} type ProjectsLocationsOperationsCancelCall struct { s *Service @@ -2613,16 +2043,17 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. func (r *ProjectsLocationsOperationsService) Cancel(name string, apigatewaycanceloperationrequest *ApigatewayCancelOperationRequest) *ProjectsLocationsOperationsCancelCall { c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2631,23 +2062,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string, apigatewaycance } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2656,18 +2085,12 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaycanceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:cancel") @@ -2680,16 +2103,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2697,17 +2118,17 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2720,38 +2141,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}:cancel", - // "request": { - // "$ref": "ApigatewayCancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.operations.delete": +} type ProjectsLocationsOperationsDeleteCall struct { s *Service @@ -2761,10 +2151,12 @@ type ProjectsLocationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2772,23 +2164,21 @@ func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2797,12 +2187,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2816,16 +2201,14 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2833,17 +2216,17 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2856,35 +2239,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "apigateway.projects.locations.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.operations.get": +} type ProjectsLocationsOperationsGetCall struct { s *Service @@ -2895,9 +2250,11 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2905,33 +2262,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2940,12 +2293,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2962,16 +2310,15 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.get" call. -// Exactly one of *ApigatewayOperation or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayOperation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*ApigatewayOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2979,17 +2326,17 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayOperation{ ServerResponse: googleapi.ServerResponse{ @@ -3002,35 +2349,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "response": { - // "$ref": "ApigatewayOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.operations.list": +} type ProjectsLocationsOperationsListCall struct { s *Service @@ -3041,71 +2360,67 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. +// +// - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3114,12 +2429,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3136,16 +2446,15 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.list" call. -// Exactly one of *ApigatewayListOperationsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ApigatewayListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayListOperationsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ApigatewayListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3153,17 +2462,17 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3176,48 +2485,6 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}/operations", - // "response": { - // "$ref": "ApigatewayListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3225,7 +2492,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ApigatewayListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/apigateway/v1alpha2/apigateway-gen.go b/apigateway/v1alpha2/apigateway-gen.go index 6e81e827bca..3a30f69f868 100644 --- a/apigateway/v1alpha2/apigateway-gen.go +++ b/apigateway/v1alpha2/apigateway-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/api-gateway/docs // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // apigatewayService, err := apigateway.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // apigatewayService, err := apigateway.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // apigatewayService, err := apigateway.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package apigateway // import "google.golang.org/api/apigateway/v1alpha2" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "apigateway:v1alpha2" const apiName = "apigateway" const apiVersion = "v1alpha2" const basePath = "https://apigateway.googleapis.com/" +const basePathTemplate = "https://apigateway.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://apigateway.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -204,70 +222,56 @@ type ProjectsLocationsOperationsService struct { s *Service } -// ApigatewayAuditConfig: Specifies the audit configuration for a -// service. The configuration determines which permission types are -// logged, and what identities, if any, are exempted from logging. An -// AuditConfig must have one or more AuditLogConfigs. If there are -// AuditConfigs for both `allServices` and a specific service, the union -// of the two AuditConfigs is used for that service: the log_types -// specified in each AuditConfig are enabled, and the exempted_members -// in each AuditLogConfig are exempted. Example Policy with multiple -// AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": -// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { -// "log_type": "ADMIN_READ" } ] }, { "service": -// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": -// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy -// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts -// jose@example.com from DATA_READ logging, and aliya@example.com from -// DATA_WRITE logging. +// ApigatewayAuditConfig: Specifies the audit configuration for a service. The +// configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +// and a specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted. Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts jose@example.com from DATA_READ logging, and +// aliya@example.com from DATA_WRITE logging. type ApigatewayAuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*ApigatewayAuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit logging. - // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - // `allServices` is a special value that covers all services. + // Service: Specifies a service that will be enabled for audit logging. For + // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` + // is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayAuditConfig) MarshalJSON() ([]byte, error) { +func (s ApigatewayAuditConfig) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayAuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ApigatewayAuditLogConfig: Provides the configuration for logging a -// type of permissions. Example: { "audit_log_configs": [ { "log_type": -// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { -// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and -// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ -// logging. +// ApigatewayAuditLogConfig: Provides the configuration for logging a type of +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. type ApigatewayAuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of permission. Follows the same format of - // Binding.members. + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. // // Possible values: @@ -276,103 +280,84 @@ type ApigatewayAuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayAuditLogConfig) MarshalJSON() ([]byte, error) { +func (s ApigatewayAuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayAuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayBinding: Associates `members` with a `role`. type ApigatewayBinding struct { // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the - // current request. If the condition evaluates to `false`, then this - // binding does not apply to the current request. However, a different - // role binding might grant the same role to one or more of the members - // in this binding. To learn which resources support conditions in their - // IAM policies, see the [IAM - // documentation](https://cloud.google.com/iam/help/conditions/resource-p - // olicies). + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the members in this binding. To learn which + // resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *ApigatewayExpr `json:"condition,omitempty"` - - // Members: Specifies the identities requesting access for a Cloud - // Platform resource. `members` can have the following values: * - // `allUsers`: A special identifier that represents anyone who is on the - // internet; with or without a Google account. * - // `allAuthenticatedUsers`: A special identifier that represents anyone - // who is authenticated with a Google account or a service account. * - // `user:{emailid}`: An email address that represents a specific Google - // account. For example, `alice@example.com` . * - // `serviceAccount:{emailid}`: An email address that represents a - // service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An - // email address that represents a Google group. For example, - // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An - // email address (plus unique identifier) representing a user that has - // been recently deleted. For example, - // `alice@example.com?uid=123456789012345678901`. If the user is - // recovered, this value reverts to `user:{emailid}` and the recovered - // user retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus unique identifier) representing a service account that has been + // Members: Specifies the identities requesting access for a Cloud Platform + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. * `user:{emailid}`: An email address that represents a specific + // Google account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a service + // account. For example, `my-other-app@appspot.gserviceaccount.com`. * + // `group:{emailid}`: An email address that represents a Google group. For + // example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has been + // recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is recovered, + // this value reverts to `user:{emailid}` and the recovered user retains the + // role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a service account that + // has been recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the + // service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + // address (plus unique identifier) representing a Google group that has been // recently deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: - // An email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is - // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // `admins@example.com?uid=123456789012345678901`. If the group is recovered, + // this value reverts to `group:{emailid}` and the recovered group retains the + // role in the binding. * `domain:{domain}`: The G Suite domain (primary) that + // represents all the users of that domain. For example, `google.com` or + // `example.com`. Members []string `json:"members,omitempty"` - - // Role: Role that is assigned to `members`. For example, - // `roles/viewer`, `roles/editor`, or `roles/owner`. + // Role: Role that is assigned to `members`. For example, `roles/viewer`, + // `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayBinding) MarshalJSON() ([]byte, error) { +func (s ApigatewayBinding) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayBinding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayCancelOperationRequest: The request message for @@ -380,101 +365,81 @@ func (s *ApigatewayBinding) MarshalJSON() ([]byte, error) { type ApigatewayCancelOperationRequest struct { } -// ApigatewayExpr: Represents a textual expression in the Common -// Expression Language (CEL) syntax. CEL is a C-like expression -// language. The syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if -// requestor is the document owner" expression: "document.owner == -// request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional +// ApigatewayExpr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The syntax and +// semantics of CEL are documented at https://github.com/google/cel-spec. +// Example (Comparison): title: "Summary size limit" description: "Determines +// if a summary is less than 100 chars" expression: "document.summary.size() < +// 100" Example (Equality): title: "Requestor is owner" description: +// "Determines if requestor is the document owner" expression: "document.owner +// == request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type ApigatewayExpr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayExpr) MarshalJSON() ([]byte, error) { +func (s ApigatewayExpr) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayExpr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayListLocationsResponse: The response message for // Locations.ListLocations. type ApigatewayListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. + // Locations: A list of locations that matches the specified filter in the + // request. Locations []*ApigatewayLocation `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ApigatewayListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayListOperationsResponse: The response message for @@ -482,416 +447,328 @@ func (s *ApigatewayListLocationsResponse) MarshalJSON() ([]byte, error) { type ApigatewayListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*ApigatewayOperation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ApigatewayListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayLocation: A resource that represents Google Cloud Platform // location. type ApigatewayLocation struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". + // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayLocation) MarshalJSON() ([]byte, error) { +func (s ApigatewayLocation) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ApigatewayOperation: This resource represents a long-running -// operation that is the result of a network API call. +// ApigatewayOperation: This resource represents a long-running operation that +// is the result of a network API call. type ApigatewayOperation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *ApigatewayStatus `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayOperation) MarshalJSON() ([]byte, error) { +func (s ApigatewayOperation) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// ApigatewayPolicy: An Identity and Access Management (IAM) policy, -// which specifies access controls for Google Cloud resources. A -// `Policy` is a collection of `bindings`. A `binding` binds one or more -// `members` to a single `role`. Members can be user accounts, service -// accounts, Google groups, and domains (such as G Suite). A `role` is a -// named list of permissions; each `role` can be an IAM predefined role -// or a user-created custom role. For some types of Google Cloud -// resources, a `binding` can also specify a `condition`, which is a -// logical expression that allows access to a resource only if the -// expression evaluates to `true`. A condition can add constraints based -// on attributes of the request, the resource, or both. To learn which -// resources support conditions in their IAM policies, see the [IAM -// documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). **JSON example:** { "bindings": [ { "role": + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ApigatewayPolicy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members` to a +// single `role`. Members can be user accounts, service accounts, Google +// groups, and domains (such as G Suite). A `role` is a named list of +// permissions; each `role` can be an IAM predefined role or a user-created +// custom role. For some types of Google Cloud resources, a `binding` can also +// specify a `condition`, which is a logical expression that allows access to a +// resource only if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or both. To +// learn which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: -// 3 For a description of IAM and its features, see the [IAM -// documentation](https://cloud.google.com/iam/docs/). +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type ApigatewayPolicy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*ApigatewayAuditConfig `json:"auditConfigs,omitempty"` - // Bindings: Associates a list of `members` to a `role`. Optionally, may // specify a `condition` that determines how and when the `bindings` are // applied. Each of the `bindings` must contain at least one member. Bindings []*ApigatewayBinding `json:"bindings,omitempty"` - - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the [IAM - // documentation](https://cloud.google.com/iam/help/conditions/resource-p - // olicies). + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayPolicy) MarshalJSON() ([]byte, error) { +func (s ApigatewayPolicy) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ApigatewaySetIamPolicyRequest: Request message for `SetIamPolicy` -// method. +// ApigatewaySetIamPolicyRequest: Request message for `SetIamPolicy` method. type ApigatewaySetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Cloud Platform services - // (such as Projects) might reject them. + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Cloud Platform services (such as Projects) might reject + // them. Policy *ApigatewayPolicy `json:"policy,omitempty"` - - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only the fields in the mask will be modified. If no - // mask is provided, the following default mask is used: `paths: - // "bindings, etag" + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only the fields in the mask will be modified. If no mask is + // provided, the following default mask is used: `paths: "bindings, etag" UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewaySetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s ApigatewaySetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod ApigatewaySetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ApigatewayStatus: The `Status` type defines a logical error model -// that is suitable for different programming environments, including -// REST APIs and RPC APIs. It is used by -// [gRPC](https://github.com/grpc). Each `Status` message contains three -// pieces of data: error code, error message, and error details. You can -// find out more about this error model and how to work with it in the -// [API Design Guide](https://cloud.google.com/apis/design/errors). +// ApigatewayStatus: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs and RPC +// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message +// contains three pieces of data: error code, error message, and error details. +// You can find out more about this error model and how to work with it in the +// API Design Guide (https://cloud.google.com/apis/design/errors). type ApigatewayStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayStatus) MarshalJSON() ([]byte, error) { +func (s ApigatewayStatus) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayTestIamPermissionsRequest: Request message for // `TestIamPermissions` method. type ApigatewayTestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as '*' or 'storage.*') are not - // allowed. For more information see [IAM - // Overview](https://cloud.google.com/iam/docs/overview#permissions). + // Permissions: The set of permissions to check for the `resource`. Permissions + // with wildcards (such as '*' or 'storage.*') are not allowed. For more + // information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayTestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s ApigatewayTestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayTestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApigatewayTestIamPermissionsResponse: Response message for // `TestIamPermissions` method. type ApigatewayTestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is allowed. + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApigatewayTestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s ApigatewayTestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ApigatewayTestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON +// representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// method id "apigateway.projects.locations.get": - type ProjectsLocationsGetCall struct { s *Service name string @@ -902,6 +779,8 @@ type ProjectsLocationsGetCall struct { } // Get: Gets information about a location. +// +// - name: Resource name for the location. func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -909,33 +788,29 @@ func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -944,12 +819,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { } func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -966,16 +836,15 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.get" call. -// Exactly one of *ApigatewayLocation or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayLocation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayLocation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*ApigatewayLocation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -983,17 +852,17 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Apigateway if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayLocation{ ServerResponse: googleapi.ServerResponse{ @@ -1006,35 +875,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Apigateway return nil, err } return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the location.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "ApigatewayLocation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.list": +} type ProjectsLocationsListCall struct { s *Service @@ -1045,63 +886,59 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this service. +// +// - name: The resource that owns the locations collection, if applicable. func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1110,12 +947,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { } func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1132,16 +964,15 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.list" call. -// Exactly one of *ApigatewayListLocationsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ApigatewayListLocationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayListLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ApigatewayListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1149,17 +980,17 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*Apigatewa if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1172,48 +1003,6 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*Apigatewa return nil, err } return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/locations", - // "response": { - // "$ref": "ApigatewayListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1221,7 +1010,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*Apigatewa // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ApigatewayListLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1237,8 +1026,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*Apigatewa } } -// method id "apigateway.projects.locations.apis.getIamPolicy": - type ProjectsLocationsApisGetIamPolicyCall struct { s *Service resource string @@ -1248,9 +1035,11 @@ type ProjectsLocationsApisGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsApisService) GetIamPolicy(resource string) *ProjectsLocationsApisGetIamPolicyCall { c := &ProjectsLocationsApisGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1258,48 +1047,42 @@ func (r *ProjectsLocationsApisService) GetIamPolicy(resource string) *ProjectsLo } // OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The policy format version to be -// returned. Valid values are 0, 1, and 3. Requests specifying an -// invalid value will be rejected. Requests for policies with any -// conditional bindings must specify version 3. Policies without any -// conditional bindings may specify any valid value or leave the field -// unset. To learn which resources support conditions in their IAM -// policies, see the [IAM -// documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). +// "options.requestedPolicyVersion": The policy format version to be returned. +// Valid values are 0, 1, and 3. Requests specifying an invalid value will be +// rejected. Requests for policies with any conditional bindings must specify +// version 3. Policies without any conditional bindings may specify any valid +// value or leave the field unset. To learn which resources support conditions +// in their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsApisGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApisGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsApisGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsApisGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApisGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1308,12 +1091,7 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsApisGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1330,16 +1108,15 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.getIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsApisGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1347,17 +1124,17 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -1370,41 +1147,7 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/apis/{apisId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.apis.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.apis.setIamPolicy": +} type ProjectsLocationsApisSetIamPolicyCall struct { s *Service @@ -1415,9 +1158,12 @@ type ProjectsLocationsApisSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsApisService) SetIamPolicy(resource string, apigatewaysetiampolicyrequest *ApigatewaySetIamPolicyRequest) *ProjectsLocationsApisSetIamPolicyCall { c := &ProjectsLocationsApisSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1426,23 +1172,21 @@ func (r *ProjectsLocationsApisService) SetIamPolicy(resource string, apigateways } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApisSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1451,18 +1195,12 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsApisSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaysetiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy") @@ -1475,16 +1213,15 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.setIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsApisSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1492,17 +1229,17 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -1515,38 +1252,7 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/apis/{apisId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.apis.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "ApigatewaySetIamPolicyRequest" - // }, - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.apis.testIamPermissions": +} type ProjectsLocationsApisTestIamPermissionsCall struct { s *Service @@ -1557,12 +1263,15 @@ type ProjectsLocationsApisTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsLocationsApisService) TestIamPermissions(resource string, apigatewaytestiampermissionsrequest *ApigatewayTestIamPermissionsRequest) *ProjectsLocationsApisTestIamPermissionsCall { c := &ProjectsLocationsApisTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1571,23 +1280,21 @@ func (r *ProjectsLocationsApisService) TestIamPermissions(resource string, apiga } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsApisTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1596,18 +1303,12 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) Header() http.Header { } func (c *ProjectsLocationsApisTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaytestiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions") @@ -1620,17 +1321,15 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.testIamPermissions" call. -// Exactly one of *ApigatewayTestIamPermissionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsApisTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*ApigatewayTestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1638,17 +1337,17 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayTestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1661,38 +1360,7 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/apis/{apisId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.apis.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "ApigatewayTestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "ApigatewayTestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.apis.configs.getIamPolicy": +} type ProjectsLocationsApisConfigsGetIamPolicyCall struct { s *Service @@ -1703,9 +1371,11 @@ type ProjectsLocationsApisConfigsGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsApisConfigsService) GetIamPolicy(resource string) *ProjectsLocationsApisConfigsGetIamPolicyCall { c := &ProjectsLocationsApisConfigsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1713,48 +1383,42 @@ func (r *ProjectsLocationsApisConfigsService) GetIamPolicy(resource string) *Pro } // OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The policy format version to be -// returned. Valid values are 0, 1, and 3. Requests specifying an -// invalid value will be rejected. Requests for policies with any -// conditional bindings must specify version 3. Policies without any -// conditional bindings may specify any valid value or leave the field -// unset. To learn which resources support conditions in their IAM -// policies, see the [IAM -// documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). +// "options.requestedPolicyVersion": The policy format version to be returned. +// Valid values are 0, 1, and 3. Requests specifying an invalid value will be +// rejected. Requests for policies with any conditional bindings must specify +// version 3. Policies without any conditional bindings may specify any valid +// value or leave the field unset. To learn which resources support conditions +// in their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsApisConfigsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisConfigsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsApisConfigsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApisConfigsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1763,12 +1427,7 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1785,16 +1444,15 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.getIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1802,17 +1460,17 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -1825,41 +1483,7 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/apis/{apisId}/configs/{configsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.apis.configs.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+/configs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.apis.configs.setIamPolicy": +} type ProjectsLocationsApisConfigsSetIamPolicyCall struct { s *Service @@ -1870,9 +1494,12 @@ type ProjectsLocationsApisConfigsSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsApisConfigsService) SetIamPolicy(resource string, apigatewaysetiampolicyrequest *ApigatewaySetIamPolicyRequest) *ProjectsLocationsApisConfigsSetIamPolicyCall { c := &ProjectsLocationsApisConfigsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1881,23 +1508,21 @@ func (r *ProjectsLocationsApisConfigsService) SetIamPolicy(resource string, apig } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisConfigsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsApisConfigsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1906,18 +1531,12 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaysetiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy") @@ -1930,16 +1549,15 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.setIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1947,17 +1565,17 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -1970,38 +1588,7 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/apis/{apisId}/configs/{configsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.apis.configs.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+/configs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "ApigatewaySetIamPolicyRequest" - // }, - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.apis.configs.testIamPermissions": +} type ProjectsLocationsApisConfigsTestIamPermissionsCall struct { s *Service @@ -2012,12 +1599,15 @@ type ProjectsLocationsApisConfigsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsLocationsApisConfigsService) TestIamPermissions(resource string, apigatewaytestiampermissionsrequest *ApigatewayTestIamPermissionsRequest) *ProjectsLocationsApisConfigsTestIamPermissionsCall { c := &ProjectsLocationsApisConfigsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2026,23 +1616,21 @@ func (r *ProjectsLocationsApisConfigsService) TestIamPermissions(resource string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsApisConfigsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsApisConfigsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2051,18 +1639,12 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Header() http.Heade } func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaytestiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions") @@ -2075,17 +1657,15 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.testIamPermissions" call. -// Exactly one of *ApigatewayTestIamPermissionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*ApigatewayTestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2093,17 +1673,17 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayTestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2116,38 +1696,7 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/apis/{apisId}/configs/{configsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.apis.configs.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/apis/[^/]+/configs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "ApigatewayTestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "ApigatewayTestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.gateways.getIamPolicy": +} type ProjectsLocationsGatewaysGetIamPolicyCall struct { s *Service @@ -2158,9 +1707,11 @@ type ProjectsLocationsGatewaysGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsGatewaysGetIamPolicyCall { c := &ProjectsLocationsGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2168,48 +1719,42 @@ func (r *ProjectsLocationsGatewaysService) GetIamPolicy(resource string) *Projec } // OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The policy format version to be -// returned. Valid values are 0, 1, and 3. Requests specifying an -// invalid value will be rejected. Requests for policies with any -// conditional bindings must specify version 3. Policies without any -// conditional bindings may specify any valid value or leave the field -// unset. To learn which resources support conditions in their IAM -// policies, see the [IAM -// documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). +// "options.requestedPolicyVersion": The policy format version to be returned. +// Valid values are 0, 1, and 3. Requests specifying an invalid value will be +// rejected. Requests for policies with any conditional bindings must specify +// version 3. Policies without any conditional bindings may specify any valid +// value or leave the field unset. To learn which resources support conditions +// in their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGatewaysGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGatewaysGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2218,12 +1763,7 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsGatewaysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2240,16 +1780,15 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.getIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2257,17 +1796,17 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -2280,41 +1819,7 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/gateways/{gatewaysId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.gateways.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.gateways.setIamPolicy": +} type ProjectsLocationsGatewaysSetIamPolicyCall struct { s *Service @@ -2325,9 +1830,12 @@ type ProjectsLocationsGatewaysSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsGatewaysService) SetIamPolicy(resource string, apigatewaysetiampolicyrequest *ApigatewaySetIamPolicyRequest) *ProjectsLocationsGatewaysSetIamPolicyCall { c := &ProjectsLocationsGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2336,23 +1844,21 @@ func (r *ProjectsLocationsGatewaysService) SetIamPolicy(resource string, apigate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGatewaysSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2361,18 +1867,12 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaysetiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy") @@ -2385,16 +1885,15 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.setIamPolicy" call. -// Exactly one of *ApigatewayPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*ApigatewayPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2402,17 +1901,17 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -2425,38 +1924,7 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/gateways/{gatewaysId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.gateways.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "ApigatewaySetIamPolicyRequest" - // }, - // "response": { - // "$ref": "ApigatewayPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.gateways.testIamPermissions": +} type ProjectsLocationsGatewaysTestIamPermissionsCall struct { s *Service @@ -2467,12 +1935,15 @@ type ProjectsLocationsGatewaysTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsLocationsGatewaysService) TestIamPermissions(resource string, apigatewaytestiampermissionsrequest *ApigatewayTestIamPermissionsRequest) *ProjectsLocationsGatewaysTestIamPermissionsCall { c := &ProjectsLocationsGatewaysTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2481,23 +1952,21 @@ func (r *ProjectsLocationsGatewaysService) TestIamPermissions(resource string, a } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGatewaysTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2506,18 +1975,12 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Header() http.Header { } func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaytestiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions") @@ -2530,17 +1993,15 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.testIamPermissions" call. -// Exactly one of *ApigatewayTestIamPermissionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayTestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*ApigatewayTestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2548,17 +2009,17 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Do(opts ...googleapi.C if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayTestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2571,38 +2032,7 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/gateways/{gatewaysId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.gateways.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "ApigatewayTestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "ApigatewayTestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.operations.cancel": +} type ProjectsLocationsOperationsCancelCall struct { s *Service @@ -2613,16 +2043,17 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. func (r *ProjectsLocationsOperationsService) Cancel(name string, apigatewaycanceloperationrequest *ApigatewayCancelOperationRequest) *ProjectsLocationsOperationsCancelCall { c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2631,23 +2062,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string, apigatewaycance } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2656,18 +2085,12 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.apigatewaycanceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:cancel") @@ -2680,16 +2103,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2697,17 +2118,17 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2720,38 +2141,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "apigateway.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}:cancel", - // "request": { - // "$ref": "ApigatewayCancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.operations.delete": +} type ProjectsLocationsOperationsDeleteCall struct { s *Service @@ -2761,10 +2151,12 @@ type ProjectsLocationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2772,23 +2164,21 @@ func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2797,12 +2187,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2816,16 +2201,14 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2833,17 +2216,17 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2856,35 +2239,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "apigateway.projects.locations.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.operations.get": +} type ProjectsLocationsOperationsGetCall struct { s *Service @@ -2895,9 +2250,11 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2905,33 +2262,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2940,12 +2293,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2962,16 +2310,15 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.get" call. -// Exactly one of *ApigatewayOperation or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ApigatewayOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayOperation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*ApigatewayOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2979,17 +2326,17 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayOperation{ ServerResponse: googleapi.ServerResponse{ @@ -3002,35 +2349,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "ApigatewayOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "apigateway.projects.locations.operations.list": +} type ProjectsLocationsOperationsListCall struct { s *Service @@ -3041,71 +2360,67 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. +// +// - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3114,12 +2429,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3136,16 +2446,15 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.list" call. -// Exactly one of *ApigatewayListOperationsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ApigatewayListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ApigatewayListOperationsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ApigatewayListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3153,17 +2462,17 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ApigatewayListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3176,48 +2485,6 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "apigateway.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/operations", - // "response": { - // "$ref": "ApigatewayListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3225,7 +2492,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ApigatewayListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/apigateway/v1beta/apigateway-gen.go b/apigateway/v1beta/apigateway-gen.go index e134c249a45..2c189163da8 100644 --- a/apigateway/v1beta/apigateway-gen.go +++ b/apigateway/v1beta/apigateway-gen.go @@ -1351,7 +1351,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.get" call. @@ -1483,7 +1483,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.list" call. @@ -1614,7 +1614,7 @@ func (c *ProjectsLocationsApisCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.create" call. @@ -1710,7 +1710,7 @@ func (c *ProjectsLocationsApisDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.delete" call. @@ -1818,7 +1818,7 @@ func (c *ProjectsLocationsApisGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.get" call. @@ -1945,7 +1945,7 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.getIamPolicy" call. @@ -2078,7 +2078,7 @@ func (c *ProjectsLocationsApisListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.list" call. @@ -2212,7 +2212,7 @@ func (c *ProjectsLocationsApisPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.patch" call. @@ -2318,7 +2318,7 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.setIamPolicy" call. @@ -2427,7 +2427,7 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.testIamPermissions" call. @@ -2538,7 +2538,7 @@ func (c *ProjectsLocationsApisConfigsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.create" call. @@ -2635,7 +2635,7 @@ func (c *ProjectsLocationsApisConfigsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.delete" call. @@ -2757,7 +2757,7 @@ func (c *ProjectsLocationsApisConfigsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.get" call. @@ -2885,7 +2885,7 @@ func (c *ProjectsLocationsApisConfigsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.getIamPolicy" call. @@ -3018,7 +3018,7 @@ func (c *ProjectsLocationsApisConfigsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.list" call. @@ -3153,7 +3153,7 @@ func (c *ProjectsLocationsApisConfigsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.patch" call. @@ -3259,7 +3259,7 @@ func (c *ProjectsLocationsApisConfigsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.setIamPolicy" call. @@ -3368,7 +3368,7 @@ func (c *ProjectsLocationsApisConfigsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.apis.configs.testIamPermissions" call. @@ -3478,7 +3478,7 @@ func (c *ProjectsLocationsGatewaysCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.create" call. @@ -3574,7 +3574,7 @@ func (c *ProjectsLocationsGatewaysDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.delete" call. @@ -3682,7 +3682,7 @@ func (c *ProjectsLocationsGatewaysGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.get" call. @@ -3810,7 +3810,7 @@ func (c *ProjectsLocationsGatewaysGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.getIamPolicy" call. @@ -3943,7 +3943,7 @@ func (c *ProjectsLocationsGatewaysListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.list" call. @@ -4077,7 +4077,7 @@ func (c *ProjectsLocationsGatewaysPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.patch" call. @@ -4183,7 +4183,7 @@ func (c *ProjectsLocationsGatewaysSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.setIamPolicy" call. @@ -4292,7 +4292,7 @@ func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.gateways.testIamPermissions" call. @@ -4402,7 +4402,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.cancel" call. @@ -4500,7 +4500,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.delete" call. @@ -4609,7 +4609,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.get" call. @@ -4738,7 +4738,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigateway.projects.locations.operations.list" call. diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 377fe3e6b6f..0e2a3601ae7 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -11676,7 +11676,7 @@ func (c *HybridIssuersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.hybrid.issuers.list" call. @@ -11781,7 +11781,7 @@ func (c *OrganizationsCreateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.create" call. @@ -11910,7 +11910,7 @@ func (c *OrganizationsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.delete" call. @@ -12021,7 +12021,7 @@ func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.get" call. @@ -12155,7 +12155,7 @@ func (c *OrganizationsGetDeployedIngressConfigCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.getDeployedIngressConfig" call. @@ -12265,7 +12265,7 @@ func (c *OrganizationsGetProjectMappingCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.getProjectMapping" call. @@ -12374,7 +12374,7 @@ func (c *OrganizationsGetRuntimeConfigCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.getRuntimeConfig" call. @@ -12484,7 +12484,7 @@ func (c *OrganizationsGetSecuritySettingsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.getSecuritySettings" call. @@ -12596,7 +12596,7 @@ func (c *OrganizationsGetSyncAuthorizationCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.getSyncAuthorization" call. @@ -12706,7 +12706,7 @@ func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.list" call. @@ -12810,7 +12810,7 @@ func (c *OrganizationsSetAddonsCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "org": c.org, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.setAddons" call. @@ -12922,7 +12922,7 @@ func (c *OrganizationsSetSyncAuthorizationCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.setSyncAuthorization" call. @@ -13026,7 +13026,7 @@ func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.update" call. @@ -13137,7 +13137,7 @@ func (c *OrganizationsUpdateSecuritySettingsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.updateSecuritySettings" call. @@ -13240,7 +13240,7 @@ func (c *OrganizationsAnalyticsDatastoresCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.analytics.datastores.create" call. @@ -13337,7 +13337,7 @@ func (c *OrganizationsAnalyticsDatastoresDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.analytics.datastores.delete" call. @@ -13446,7 +13446,7 @@ func (c *OrganizationsAnalyticsDatastoresGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.analytics.datastores.get" call. @@ -13562,7 +13562,7 @@ func (c *OrganizationsAnalyticsDatastoresListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.analytics.datastores.list" call. @@ -13667,7 +13667,7 @@ func (c *OrganizationsAnalyticsDatastoresTestCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.analytics.datastores.test" call. @@ -13770,7 +13770,7 @@ func (c *OrganizationsAnalyticsDatastoresUpdateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.analytics.datastores.update" call. @@ -13882,7 +13882,7 @@ func (c *OrganizationsApiproductsAttributesCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.attributes" call. @@ -14001,7 +14001,7 @@ func (c *OrganizationsApiproductsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.create" call. @@ -14105,7 +14105,7 @@ func (c *OrganizationsApiproductsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.delete" call. @@ -14218,7 +14218,7 @@ func (c *OrganizationsApiproductsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.get" call. @@ -14368,7 +14368,7 @@ func (c *OrganizationsApiproductsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.list" call. @@ -14476,7 +14476,7 @@ func (c *OrganizationsApiproductsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.update" call. @@ -14574,7 +14574,7 @@ func (c *OrganizationsApiproductsAttributesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.attributes.delete" call. @@ -14684,7 +14684,7 @@ func (c *OrganizationsApiproductsAttributesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.attributes.get" call. @@ -14793,7 +14793,7 @@ func (c *OrganizationsApiproductsAttributesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.attributes.list" call. @@ -14902,7 +14902,7 @@ func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.attributes.updateApiProductAttribute" call. @@ -15014,7 +15014,7 @@ func (c *OrganizationsApiproductsRateplansCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.rateplans.create" call. @@ -15111,7 +15111,7 @@ func (c *OrganizationsApiproductsRateplansDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.rateplans.delete" call. @@ -15220,7 +15220,7 @@ func (c *OrganizationsApiproductsRateplansGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.rateplans.get" call. @@ -15382,7 +15382,7 @@ func (c *OrganizationsApiproductsRateplansListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.rateplans.list" call. @@ -15485,7 +15485,7 @@ func (c *OrganizationsApiproductsRateplansUpdateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apiproducts.rateplans.update" call. @@ -15627,7 +15627,7 @@ func (c *OrganizationsApisCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.create" call. @@ -15726,7 +15726,7 @@ func (c *OrganizationsApisDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.delete" call. @@ -15835,7 +15835,7 @@ func (c *OrganizationsApisGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.get" call. @@ -15960,7 +15960,7 @@ func (c *OrganizationsApisListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.list" call. @@ -16070,7 +16070,7 @@ func (c *OrganizationsApisPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.patch" call. @@ -16179,7 +16179,7 @@ func (c *OrganizationsApisDeploymentsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.deployments.list" call. @@ -16282,7 +16282,7 @@ func (c *OrganizationsApisKeyvaluemapsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.keyvaluemaps.create" call. @@ -16379,7 +16379,7 @@ func (c *OrganizationsApisKeyvaluemapsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.keyvaluemaps.delete" call. @@ -16487,7 +16487,7 @@ func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.keyvaluemaps.entries.create" call. @@ -16593,7 +16593,7 @@ func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.keyvaluemaps.entries.delete" call. @@ -16709,7 +16709,7 @@ func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.keyvaluemaps.entries.get" call. @@ -16838,7 +16838,7 @@ func (c *OrganizationsApisKeyvaluemapsEntriesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.keyvaluemaps.entries.list" call. @@ -16966,7 +16966,7 @@ func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.keyvaluemaps.entries.update" call. @@ -17065,7 +17065,7 @@ func (c *OrganizationsApisRevisionsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.revisions.delete" call. @@ -17188,7 +17188,7 @@ func (c *OrganizationsApisRevisionsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.revisions.get" call. @@ -17304,7 +17304,7 @@ func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.revisions.updateApiProxyRevision" call. @@ -17414,7 +17414,7 @@ func (c *OrganizationsApisRevisionsDeploymentsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apis.revisions.deployments.list" call. @@ -17519,7 +17519,7 @@ func (c *OrganizationsAppgroupsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.create" call. @@ -17621,7 +17621,7 @@ func (c *OrganizationsAppgroupsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.delete" call. @@ -17731,7 +17731,7 @@ func (c *OrganizationsAppgroupsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.get" call. @@ -17867,7 +17867,7 @@ func (c *OrganizationsAppgroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.list" call. @@ -18002,7 +18002,7 @@ func (c *OrganizationsAppgroupsUpdateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.update" call. @@ -18109,7 +18109,7 @@ func (c *OrganizationsAppgroupsAppsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.create" call. @@ -18209,7 +18209,7 @@ func (c *OrganizationsAppgroupsAppsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.delete" call. @@ -18318,7 +18318,7 @@ func (c *OrganizationsAppgroupsAppsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.get" call. @@ -18446,7 +18446,7 @@ func (c *OrganizationsAppgroupsAppsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.list" call. @@ -18586,7 +18586,7 @@ func (c *OrganizationsAppgroupsAppsUpdateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.update" call. @@ -18700,7 +18700,7 @@ func (c *OrganizationsAppgroupsAppsKeysCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.keys.create" call. @@ -18800,7 +18800,7 @@ func (c *OrganizationsAppgroupsAppsKeysDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.keys.delete" call. @@ -18911,7 +18911,7 @@ func (c *OrganizationsAppgroupsAppsKeysGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.keys.get" call. @@ -19021,7 +19021,7 @@ func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.keys.updateAppGroupAppKey" call. @@ -19123,7 +19123,7 @@ func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.keys.apiproducts.delete" call. @@ -19236,7 +19236,7 @@ func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProduct googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.appgroups.apps.keys.apiproducts.updateAppGroupAppKeyApiProduct" call. @@ -19344,7 +19344,7 @@ func (c *OrganizationsAppsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apps.get" call. @@ -19544,7 +19544,7 @@ func (c *OrganizationsAppsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.apps.list" call. @@ -19677,7 +19677,7 @@ func (c *OrganizationsDatacollectorsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.datacollectors.create" call. @@ -19774,7 +19774,7 @@ func (c *OrganizationsDatacollectorsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.datacollectors.delete" call. @@ -19883,7 +19883,7 @@ func (c *OrganizationsDatacollectorsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.datacollectors.get" call. @@ -20007,7 +20007,7 @@ func (c *OrganizationsDatacollectorsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.datacollectors.list" call. @@ -20138,7 +20138,7 @@ func (c *OrganizationsDatacollectorsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.datacollectors.patch" call. @@ -20256,7 +20256,7 @@ func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.deployments.list" call. @@ -20369,7 +20369,7 @@ func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.attributes" call. @@ -20474,7 +20474,7 @@ func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.create" call. @@ -20578,7 +20578,7 @@ func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.delete" call. @@ -20696,7 +20696,7 @@ func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.get" call. @@ -20805,7 +20805,7 @@ func (c *OrganizationsDevelopersGetBalanceCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.getBalance" call. @@ -20916,7 +20916,7 @@ func (c *OrganizationsDevelopersGetMonetizationConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.getMonetizationConfig" call. @@ -21078,7 +21078,7 @@ func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.list" call. @@ -21190,7 +21190,7 @@ func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.setDeveloperStatus" call. @@ -21301,7 +21301,7 @@ func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.update" call. @@ -21406,7 +21406,7 @@ func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.updateMonetizationConfig" call. @@ -21510,7 +21510,7 @@ func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.attributes" call. @@ -21618,7 +21618,7 @@ func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.create" call. @@ -21718,7 +21718,7 @@ func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.delete" call. @@ -21851,7 +21851,7 @@ func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus" call. @@ -21978,7 +21978,7 @@ func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.get" call. @@ -22126,7 +22126,7 @@ func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.list" call. @@ -22238,7 +22238,7 @@ func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.update" call. @@ -22337,7 +22337,7 @@ func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.attributes.delete" call. @@ -22448,7 +22448,7 @@ func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.attributes.get" call. @@ -22557,7 +22557,7 @@ func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.attributes.list" call. @@ -22668,7 +22668,7 @@ func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute" call. @@ -22784,7 +22784,7 @@ func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.keys.create" call. @@ -22888,7 +22888,7 @@ func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.keys.delete" call. @@ -22999,7 +22999,7 @@ func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.keys.get" call. @@ -23108,7 +23108,7 @@ func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey" call. @@ -23226,7 +23226,7 @@ func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.keys.updateDeveloperAppKey" call. @@ -23328,7 +23328,7 @@ func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.keys.apiproducts.delete" call. @@ -23439,7 +23439,7 @@ func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProdu googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct" call. @@ -23555,7 +23555,7 @@ func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.apps.keys.create.create" call. @@ -23653,7 +23653,7 @@ func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.attributes.delete" call. @@ -23763,7 +23763,7 @@ func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.attributes.get" call. @@ -23873,7 +23873,7 @@ func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.attributes.list" call. @@ -23983,7 +23983,7 @@ func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.attributes.updateDeveloperAttribute" call. @@ -24087,7 +24087,7 @@ func (c *OrganizationsDevelopersBalanceAdjustCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.balance.adjust" call. @@ -24190,7 +24190,7 @@ func (c *OrganizationsDevelopersBalanceCreditCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.balance.credit" call. @@ -24294,7 +24294,7 @@ func (c *OrganizationsDevelopersSubscriptionsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.subscriptions.create" call. @@ -24399,7 +24399,7 @@ func (c *OrganizationsDevelopersSubscriptionsExpireCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.subscriptions.expire" call. @@ -24510,7 +24510,7 @@ func (c *OrganizationsDevelopersSubscriptionsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.subscriptions.get" call. @@ -24637,7 +24637,7 @@ func (c *OrganizationsDevelopersSubscriptionsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.developers.subscriptions.list" call. @@ -24749,7 +24749,7 @@ func (c *OrganizationsEndpointAttachmentsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.endpointAttachments.create" call. @@ -24846,7 +24846,7 @@ func (c *OrganizationsEndpointAttachmentsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.endpointAttachments.delete" call. @@ -24955,7 +24955,7 @@ func (c *OrganizationsEndpointAttachmentsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.endpointAttachments.get" call. @@ -25080,7 +25080,7 @@ func (c *OrganizationsEndpointAttachmentsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.endpointAttachments.list" call. @@ -25211,7 +25211,7 @@ func (c *OrganizationsEnvgroupsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.envgroups.create" call. @@ -25308,7 +25308,7 @@ func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.envgroups.delete" call. @@ -25417,7 +25417,7 @@ func (c *OrganizationsEnvgroupsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.envgroups.get" call. @@ -25552,7 +25552,7 @@ func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.envgroups.getDeployedIngressConfig" call. @@ -25676,7 +25676,7 @@ func (c *OrganizationsEnvgroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.envgroups.list" call. @@ -25807,7 +25807,7 @@ func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.envgroups.patch" call. @@ -25910,7 +25910,7 @@ func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.envgroups.attachments.create" call. @@ -26008,7 +26008,7 @@ func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.envgroups.attachments.delete" call. @@ -26117,7 +26117,7 @@ func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.envgroups.attachments.get" call. @@ -26241,7 +26241,7 @@ func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.envgroups.attachments.list" call. @@ -26371,7 +26371,7 @@ func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.create" call. @@ -26471,7 +26471,7 @@ func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.delete" call. @@ -26580,7 +26580,7 @@ func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.get" call. @@ -26689,7 +26689,7 @@ func (c *OrganizationsEnvironmentsGetAddonsConfigCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.getAddonsConfig" call. @@ -26801,7 +26801,7 @@ func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.getApiSecurityRuntimeConfig" call. @@ -26910,7 +26910,7 @@ func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.getDebugmask" call. @@ -27020,7 +27020,7 @@ func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.getDeployedConfig" call. @@ -27151,7 +27151,7 @@ func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.getIamPolicy" call. @@ -27261,7 +27261,7 @@ func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.getSecurityActionsConfig" call. @@ -27370,7 +27370,7 @@ func (c *OrganizationsEnvironmentsGetTraceConfigCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.getTraceConfig" call. @@ -27481,7 +27481,7 @@ func (c *OrganizationsEnvironmentsModifyEnvironmentCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.modifyEnvironment" call. @@ -27590,7 +27590,7 @@ func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.setIamPolicy" call. @@ -27689,7 +27689,7 @@ func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.subscribe" call. @@ -27797,7 +27797,7 @@ func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.testIamPermissions" call. @@ -27900,7 +27900,7 @@ func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.unsubscribe" call. @@ -28008,7 +28008,7 @@ func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.update" call. @@ -28127,7 +28127,7 @@ func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.updateDebugmask" call. @@ -28235,7 +28235,7 @@ func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.updateEnvironment" call. @@ -28348,7 +28348,7 @@ func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.updateSecurityActionsConfig" call. @@ -28461,7 +28461,7 @@ func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.updateTraceConfig" call. @@ -28564,7 +28564,7 @@ func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.addonsConfig.setAddonEnablement" call. @@ -28691,7 +28691,7 @@ func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.analytics.admin.getSchemav2" call. @@ -28797,7 +28797,7 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.analytics.exports.create" call. @@ -28908,7 +28908,7 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.analytics.exports.get" call. @@ -29018,7 +29018,7 @@ func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.analytics.exports.list" call. @@ -29127,7 +29127,7 @@ func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.deployments.list" call. @@ -29270,7 +29270,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.revisions.deploy" call. @@ -29381,7 +29381,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.revisions.getDeployments" call. @@ -29499,7 +29499,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.revisions.undeploy" call. @@ -29612,7 +29612,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.create" call. @@ -29712,7 +29712,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.deleteData" call. @@ -29822,7 +29822,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.get" call. @@ -29949,7 +29949,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.list" call. @@ -30080,7 +30080,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.get" call. @@ -30196,7 +30196,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport" call. @@ -30304,7 +30304,7 @@ func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChange googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport" call. @@ -30406,7 +30406,7 @@ func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.archiveDeployments.create" call. @@ -30503,7 +30503,7 @@ func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.archiveDeployments.delete" call. @@ -30608,7 +30608,7 @@ func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.archiveDeployments.generateDownloadUrl" call. @@ -30721,7 +30721,7 @@ func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.archiveDeployments.generateUploadUrl" call. @@ -30830,7 +30830,7 @@ func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.archiveDeployments.get" call. @@ -30963,7 +30963,7 @@ func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.archiveDeployments.list" call. @@ -31095,7 +31095,7 @@ func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.archiveDeployments.patch" call. @@ -31193,7 +31193,7 @@ func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.caches.delete" call. @@ -31304,7 +31304,7 @@ func (c *OrganizationsEnvironmentsDeploymentsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.deployments.get" call. @@ -31435,7 +31435,7 @@ func (c *OrganizationsEnvironmentsDeploymentsGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.deployments.getIamPolicy" call. @@ -31554,7 +31554,7 @@ func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.deployments.list" call. @@ -31663,7 +31663,7 @@ func (c *OrganizationsEnvironmentsDeploymentsSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.deployments.setIamPolicy" call. @@ -31771,7 +31771,7 @@ func (c *OrganizationsEnvironmentsDeploymentsTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.deployments.testIamPermissions" call. @@ -31875,7 +31875,7 @@ func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook" call. @@ -31972,7 +31972,7 @@ func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook" call. @@ -32083,7 +32083,7 @@ func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.flowhooks.get" call. @@ -32197,7 +32197,7 @@ func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keystores.create" call. @@ -32294,7 +32294,7 @@ func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keystores.delete" call. @@ -32403,7 +32403,7 @@ func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keystores.get" call. @@ -32560,7 +32560,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keystores.aliases.create" call. @@ -32671,7 +32671,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keystores.aliases.csr" call. @@ -32769,7 +32769,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keystores.aliases.delete" call. @@ -32879,7 +32879,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keystores.aliases.get" call. @@ -32989,7 +32989,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keystores.aliases.getCertificate" call. @@ -33111,7 +33111,7 @@ func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keystores.aliases.update" call. @@ -33215,7 +33215,7 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keyvaluemaps.create" call. @@ -33313,7 +33313,7 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keyvaluemaps.delete" call. @@ -33421,7 +33421,7 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keyvaluemaps.entries.create" call. @@ -33527,7 +33527,7 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keyvaluemaps.entries.delete" call. @@ -33643,7 +33643,7 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keyvaluemaps.entries.get" call. @@ -33772,7 +33772,7 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keyvaluemaps.entries.list" call. @@ -33900,7 +33900,7 @@ func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.keyvaluemaps.entries.update" call. @@ -34126,7 +34126,7 @@ func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.optimizedStats.get" call. @@ -34232,7 +34232,7 @@ func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.queries.create" call. @@ -34343,7 +34343,7 @@ func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.queries.get" call. @@ -34456,7 +34456,7 @@ func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.queries.getResult" call. @@ -34567,7 +34567,7 @@ func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.queries.getResulturl" call. @@ -34721,7 +34721,7 @@ func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.queries.list" call. @@ -34824,7 +34824,7 @@ func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.references.create" call. @@ -34922,7 +34922,7 @@ func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.references.delete" call. @@ -35031,7 +35031,7 @@ func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.references.get" call. @@ -35136,7 +35136,7 @@ func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.references.update" call. @@ -35257,7 +35257,7 @@ func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.resourcefiles.create" call. @@ -35365,7 +35365,7 @@ func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) "type": c.type_, "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.resourcefiles.delete" call. @@ -35485,7 +35485,7 @@ func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (* "type": c.type_, "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.resourcefiles.get" call. @@ -35603,7 +35603,7 @@ func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.resourcefiles.list" call. @@ -35718,7 +35718,7 @@ func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doR "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.resourcefiles.listEnvironmentResources" call. @@ -35833,7 +35833,7 @@ func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) "type": c.type_, "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.resourcefiles.update" call. @@ -35945,7 +35945,7 @@ func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityActions.create" call. @@ -36051,7 +36051,7 @@ func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityActions.disable" call. @@ -36157,7 +36157,7 @@ func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityActions.enable" call. @@ -36266,7 +36266,7 @@ func (c *OrganizationsEnvironmentsSecurityActionsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityActions.get" call. @@ -36403,7 +36403,7 @@ func (c *OrganizationsEnvironmentsSecurityActionsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityActions.list" call. @@ -36530,7 +36530,7 @@ func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityIncidents.batchUpdate" call. @@ -36644,7 +36644,7 @@ func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityIncidents.get" call. @@ -36779,7 +36779,7 @@ func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityIncidents.list" call. @@ -36915,7 +36915,7 @@ func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityIncidents.patch" call. @@ -37021,7 +37021,7 @@ func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityReports.create" call. @@ -37132,7 +37132,7 @@ func (c *OrganizationsEnvironmentsSecurityReportsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityReports.get" call. @@ -37245,7 +37245,7 @@ func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityReports.getResult" call. @@ -37356,7 +37356,7 @@ func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityReports.getResultView" call. @@ -37516,7 +37516,7 @@ func (c *OrganizationsEnvironmentsSecurityReportsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityReports.list" call. @@ -37639,7 +37639,7 @@ func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "orgenv": c.orgenv, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityStats.queryTabularStats" call. @@ -37763,7 +37763,7 @@ func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) doReque googleapi.Expand(req.URL, map[string]string{ "orgenv": c.orgenv, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.securityStats.queryTimeSeriesStats" call. @@ -37893,7 +37893,7 @@ func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.sharedflows.deployments.list" call. @@ -38018,7 +38018,7 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.sharedflows.revisions.deploy" call. @@ -38130,7 +38130,7 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.sharedflows.revisions.getDeployments" call. @@ -38235,7 +38235,7 @@ func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.sharedflows.revisions.undeploy" call. @@ -38465,7 +38465,7 @@ func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.stats.get" call. @@ -38575,7 +38575,7 @@ func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.targetservers.create" call. @@ -38673,7 +38673,7 @@ func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.targetservers.delete" call. @@ -38782,7 +38782,7 @@ func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.targetservers.get" call. @@ -38887,7 +38887,7 @@ func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.targetservers.update" call. @@ -38994,7 +38994,7 @@ func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.traceConfig.overrides.create" call. @@ -39092,7 +39092,7 @@ func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.traceConfig.overrides.delete" call. @@ -39202,7 +39202,7 @@ func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.traceConfig.overrides.get" call. @@ -39331,7 +39331,7 @@ func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.traceConfig.overrides.list" call. @@ -39466,7 +39466,7 @@ func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.environments.traceConfig.overrides.patch" call. @@ -39572,7 +39572,7 @@ func (c *OrganizationsHostQueriesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostQueries.create" call. @@ -39683,7 +39683,7 @@ func (c *OrganizationsHostQueriesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostQueries.get" call. @@ -39796,7 +39796,7 @@ func (c *OrganizationsHostQueriesGetResultCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostQueries.getResult" call. @@ -39905,7 +39905,7 @@ func (c *OrganizationsHostQueriesGetResultViewCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostQueries.getResultView" call. @@ -40066,7 +40066,7 @@ func (c *OrganizationsHostQueriesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostQueries.list" call. @@ -40172,7 +40172,7 @@ func (c *OrganizationsHostSecurityReportsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostSecurityReports.create" call. @@ -40283,7 +40283,7 @@ func (c *OrganizationsHostSecurityReportsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostSecurityReports.get" call. @@ -40396,7 +40396,7 @@ func (c *OrganizationsHostSecurityReportsGetResultCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostSecurityReports.getResult" call. @@ -40506,7 +40506,7 @@ func (c *OrganizationsHostSecurityReportsGetResultViewCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostSecurityReports.getResultView" call. @@ -40673,7 +40673,7 @@ func (c *OrganizationsHostSecurityReportsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostSecurityReports.list" call. @@ -40914,7 +40914,7 @@ func (c *OrganizationsHostStatsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.hostStats.get" call. @@ -41019,7 +41019,7 @@ func (c *OrganizationsInstancesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.create" call. @@ -41118,7 +41118,7 @@ func (c *OrganizationsInstancesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.delete" call. @@ -41228,7 +41228,7 @@ func (c *OrganizationsInstancesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.get" call. @@ -41353,7 +41353,7 @@ func (c *OrganizationsInstancesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.list" call. @@ -41486,7 +41486,7 @@ func (c *OrganizationsInstancesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.patch" call. @@ -41590,7 +41590,7 @@ func (c *OrganizationsInstancesReportStatusCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.reportStatus" call. @@ -41694,7 +41694,7 @@ func (c *OrganizationsInstancesAttachmentsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.attachments.create" call. @@ -41791,7 +41791,7 @@ func (c *OrganizationsInstancesAttachmentsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.attachments.delete" call. @@ -41900,7 +41900,7 @@ func (c *OrganizationsInstancesAttachmentsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.attachments.get" call. @@ -42025,7 +42025,7 @@ func (c *OrganizationsInstancesAttachmentsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.attachments.list" call. @@ -42149,7 +42149,7 @@ func (c *OrganizationsInstancesCanaryevaluationsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.canaryevaluations.create" call. @@ -42258,7 +42258,7 @@ func (c *OrganizationsInstancesCanaryevaluationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.canaryevaluations.get" call. @@ -42363,7 +42363,7 @@ func (c *OrganizationsInstancesNatAddressesActivateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.natAddresses.activate" call. @@ -42470,7 +42470,7 @@ func (c *OrganizationsInstancesNatAddressesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.natAddresses.create" call. @@ -42570,7 +42570,7 @@ func (c *OrganizationsInstancesNatAddressesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.natAddresses.delete" call. @@ -42681,7 +42681,7 @@ func (c *OrganizationsInstancesNatAddressesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.natAddresses.get" call. @@ -42806,7 +42806,7 @@ func (c *OrganizationsInstancesNatAddressesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.instances.natAddresses.list" call. @@ -42930,7 +42930,7 @@ func (c *OrganizationsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.keyvaluemaps.create" call. @@ -43027,7 +43027,7 @@ func (c *OrganizationsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.keyvaluemaps.delete" call. @@ -43135,7 +43135,7 @@ func (c *OrganizationsKeyvaluemapsEntriesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.keyvaluemaps.entries.create" call. @@ -43241,7 +43241,7 @@ func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.keyvaluemaps.entries.delete" call. @@ -43357,7 +43357,7 @@ func (c *OrganizationsKeyvaluemapsEntriesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.keyvaluemaps.entries.get" call. @@ -43486,7 +43486,7 @@ func (c *OrganizationsKeyvaluemapsEntriesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.keyvaluemaps.entries.list" call. @@ -43614,7 +43614,7 @@ func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.keyvaluemaps.entries.update" call. @@ -43724,7 +43724,7 @@ func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.operations.get" call. @@ -43853,7 +43853,7 @@ func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.operations.list" call. @@ -44091,7 +44091,7 @@ func (c *OrganizationsOptimizedHostStatsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.optimizedHostStats.get" call. @@ -44200,7 +44200,7 @@ func (c *OrganizationsReportsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.reports.create" call. @@ -44297,7 +44297,7 @@ func (c *OrganizationsReportsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.reports.delete" call. @@ -44406,7 +44406,7 @@ func (c *OrganizationsReportsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.reports.get" call. @@ -44522,7 +44522,7 @@ func (c *OrganizationsReportsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.reports.list" call. @@ -44625,7 +44625,7 @@ func (c *OrganizationsReportsUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.reports.update" call. @@ -44728,7 +44728,7 @@ func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.securityAssessmentResults.batchCompute" call. @@ -44860,7 +44860,7 @@ func (c *OrganizationsSecurityProfilesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.securityProfiles.create" call. @@ -44957,7 +44957,7 @@ func (c *OrganizationsSecurityProfilesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.securityProfiles.delete" call. @@ -45070,7 +45070,7 @@ func (c *OrganizationsSecurityProfilesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.securityProfiles.get" call. @@ -45196,7 +45196,7 @@ func (c *OrganizationsSecurityProfilesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.securityProfiles.list" call. @@ -45343,7 +45343,7 @@ func (c *OrganizationsSecurityProfilesListRevisionsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.securityProfiles.listRevisions" call. @@ -45474,7 +45474,7 @@ func (c *OrganizationsSecurityProfilesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.securityProfiles.patch" call. @@ -45579,7 +45579,7 @@ func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) googleapi.Expand(req.URL, map[string]string{ "profileEnvironment": c.profileEnvironment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.securityProfiles.environments.computeEnvironmentScores" call. @@ -45704,7 +45704,7 @@ func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.securityProfiles.environments.create" call. @@ -45802,7 +45802,7 @@ func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.securityProfiles.environments.delete" call. @@ -45923,7 +45923,7 @@ func (c *OrganizationsSharedflowsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sharedflows.create" call. @@ -46021,7 +46021,7 @@ func (c *OrganizationsSharedflowsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sharedflows.delete" call. @@ -46130,7 +46130,7 @@ func (c *OrganizationsSharedflowsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sharedflows.get" call. @@ -46253,7 +46253,7 @@ func (c *OrganizationsSharedflowsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sharedflows.list" call. @@ -46362,7 +46362,7 @@ func (c *OrganizationsSharedflowsDeploymentsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sharedflows.deployments.list" call. @@ -46461,7 +46461,7 @@ func (c *OrganizationsSharedflowsRevisionsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sharedflows.revisions.delete" call. @@ -46585,7 +46585,7 @@ func (c *OrganizationsSharedflowsRevisionsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sharedflows.revisions.get" call. @@ -46701,7 +46701,7 @@ func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision" call. @@ -46811,7 +46811,7 @@ func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sharedflows.revisions.deployments.list" call. @@ -46914,7 +46914,7 @@ func (c *OrganizationsSitesApicategoriesCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apicategories.create" call. @@ -47011,7 +47011,7 @@ func (c *OrganizationsSitesApicategoriesDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apicategories.delete" call. @@ -47120,7 +47120,7 @@ func (c *OrganizationsSitesApicategoriesGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apicategories.get" call. @@ -47229,7 +47229,7 @@ func (c *OrganizationsSitesApicategoriesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apicategories.list" call. @@ -47332,7 +47332,7 @@ func (c *OrganizationsSitesApicategoriesPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apicategories.patch" call. @@ -47435,7 +47435,7 @@ func (c *OrganizationsSitesApidocsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apidocs.create" call. @@ -47532,7 +47532,7 @@ func (c *OrganizationsSitesApidocsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apidocs.delete" call. @@ -47641,7 +47641,7 @@ func (c *OrganizationsSitesApidocsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apidocs.get" call. @@ -47751,7 +47751,7 @@ func (c *OrganizationsSitesApidocsGetDocumentationCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apidocs.getDocumentation" call. @@ -47877,7 +47877,7 @@ func (c *OrganizationsSitesApidocsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apidocs.list" call. @@ -48001,7 +48001,7 @@ func (c *OrganizationsSitesApidocsUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apidocs.update" call. @@ -48107,7 +48107,7 @@ func (c *OrganizationsSitesApidocsUpdateDocumentationCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.organizations.sites.apidocs.updateDocumentation" call. @@ -48212,7 +48212,7 @@ func (c *ProjectsProvisionOrganizationCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigee.projects.provisionOrganization" call. diff --git a/apigeeregistry/v1/apigeeregistry-gen.go b/apigeeregistry/v1/apigeeregistry-gen.go index 415185e8ded..bdc8880ef2f 100644 --- a/apigeeregistry/v1/apigeeregistry-gen.go +++ b/apigeeregistry/v1/apigeeregistry-gen.go @@ -1697,7 +1697,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.get" call. @@ -1828,7 +1828,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.list" call. @@ -1961,7 +1961,7 @@ func (c *ProjectsLocationsApisCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.create" call. @@ -2065,7 +2065,7 @@ func (c *ProjectsLocationsApisDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.delete" call. @@ -2173,7 +2173,7 @@ func (c *ProjectsLocationsApisGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.get" call. @@ -2300,7 +2300,7 @@ func (c *ProjectsLocationsApisGetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.getIamPolicy" call. @@ -2442,7 +2442,7 @@ func (c *ProjectsLocationsApisListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.list" call. @@ -2583,7 +2583,7 @@ func (c *ProjectsLocationsApisPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.patch" call. @@ -2688,7 +2688,7 @@ func (c *ProjectsLocationsApisSetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.setIamPolicy" call. @@ -2796,7 +2796,7 @@ func (c *ProjectsLocationsApisTestIamPermissionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.testIamPermissions" call. @@ -2908,7 +2908,7 @@ func (c *ProjectsLocationsApisArtifactsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.artifacts.create" call. @@ -3003,7 +3003,7 @@ func (c *ProjectsLocationsApisArtifactsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.artifacts.delete" call. @@ -3110,7 +3110,7 @@ func (c *ProjectsLocationsApisArtifactsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.artifacts.get" call. @@ -3221,7 +3221,7 @@ func (c *ProjectsLocationsApisArtifactsGetContentsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.artifacts.getContents" call. @@ -3348,7 +3348,7 @@ func (c *ProjectsLocationsApisArtifactsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.artifacts.getIamPolicy" call. @@ -3490,7 +3490,7 @@ func (c *ProjectsLocationsApisArtifactsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.artifacts.list" call. @@ -3613,7 +3613,7 @@ func (c *ProjectsLocationsApisArtifactsReplaceArtifactCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.artifacts.replaceArtifact" call. @@ -3718,7 +3718,7 @@ func (c *ProjectsLocationsApisArtifactsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.artifacts.setIamPolicy" call. @@ -3826,7 +3826,7 @@ func (c *ProjectsLocationsApisArtifactsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.artifacts.testIamPermissions" call. @@ -3939,7 +3939,7 @@ func (c *ProjectsLocationsApisDeploymentsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.create" call. @@ -4044,7 +4044,7 @@ func (c *ProjectsLocationsApisDeploymentsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.delete" call. @@ -4141,7 +4141,7 @@ func (c *ProjectsLocationsApisDeploymentsDeleteRevisionCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.deleteRevision" call. @@ -4249,7 +4249,7 @@ func (c *ProjectsLocationsApisDeploymentsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.get" call. @@ -4376,7 +4376,7 @@ func (c *ProjectsLocationsApisDeploymentsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.getIamPolicy" call. @@ -4518,7 +4518,7 @@ func (c *ProjectsLocationsApisDeploymentsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.list" call. @@ -4671,7 +4671,7 @@ func (c *ProjectsLocationsApisDeploymentsListRevisionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.listRevisions" call. @@ -4812,7 +4812,7 @@ func (c *ProjectsLocationsApisDeploymentsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.patch" call. @@ -4914,7 +4914,7 @@ func (c *ProjectsLocationsApisDeploymentsRollbackCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.rollback" call. @@ -5019,7 +5019,7 @@ func (c *ProjectsLocationsApisDeploymentsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.setIamPolicy" call. @@ -5122,7 +5122,7 @@ func (c *ProjectsLocationsApisDeploymentsTagRevisionCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.tagRevision" call. @@ -5230,7 +5230,7 @@ func (c *ProjectsLocationsApisDeploymentsTestIamPermissionsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.testIamPermissions" call. @@ -5342,7 +5342,7 @@ func (c *ProjectsLocationsApisDeploymentsArtifactsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.create" call. @@ -5437,7 +5437,7 @@ func (c *ProjectsLocationsApisDeploymentsArtifactsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.delete" call. @@ -5544,7 +5544,7 @@ func (c *ProjectsLocationsApisDeploymentsArtifactsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.get" call. @@ -5655,7 +5655,7 @@ func (c *ProjectsLocationsApisDeploymentsArtifactsGetContentsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.getContents" call. @@ -5797,7 +5797,7 @@ func (c *ProjectsLocationsApisDeploymentsArtifactsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.list" call. @@ -5920,7 +5920,7 @@ func (c *ProjectsLocationsApisDeploymentsArtifactsReplaceArtifactCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.deployments.artifacts.replaceArtifact" call. @@ -6031,7 +6031,7 @@ func (c *ProjectsLocationsApisVersionsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.create" call. @@ -6135,7 +6135,7 @@ func (c *ProjectsLocationsApisVersionsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.delete" call. @@ -6243,7 +6243,7 @@ func (c *ProjectsLocationsApisVersionsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.get" call. @@ -6370,7 +6370,7 @@ func (c *ProjectsLocationsApisVersionsGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.getIamPolicy" call. @@ -6512,7 +6512,7 @@ func (c *ProjectsLocationsApisVersionsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.list" call. @@ -6653,7 +6653,7 @@ func (c *ProjectsLocationsApisVersionsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.patch" call. @@ -6758,7 +6758,7 @@ func (c *ProjectsLocationsApisVersionsSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.setIamPolicy" call. @@ -6866,7 +6866,7 @@ func (c *ProjectsLocationsApisVersionsTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.testIamPermissions" call. @@ -6978,7 +6978,7 @@ func (c *ProjectsLocationsApisVersionsArtifactsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.create" call. @@ -7073,7 +7073,7 @@ func (c *ProjectsLocationsApisVersionsArtifactsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.delete" call. @@ -7180,7 +7180,7 @@ func (c *ProjectsLocationsApisVersionsArtifactsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.get" call. @@ -7291,7 +7291,7 @@ func (c *ProjectsLocationsApisVersionsArtifactsGetContentsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.getContents" call. @@ -7418,7 +7418,7 @@ func (c *ProjectsLocationsApisVersionsArtifactsGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.getIamPolicy" call. @@ -7560,7 +7560,7 @@ func (c *ProjectsLocationsApisVersionsArtifactsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.list" call. @@ -7683,7 +7683,7 @@ func (c *ProjectsLocationsApisVersionsArtifactsReplaceArtifactCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.replaceArtifact" call. @@ -7788,7 +7788,7 @@ func (c *ProjectsLocationsApisVersionsArtifactsSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.setIamPolicy" call. @@ -7896,7 +7896,7 @@ func (c *ProjectsLocationsApisVersionsArtifactsTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.artifacts.testIamPermissions" call. @@ -8008,7 +8008,7 @@ func (c *ProjectsLocationsApisVersionsSpecsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.create" call. @@ -8113,7 +8113,7 @@ func (c *ProjectsLocationsApisVersionsSpecsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.delete" call. @@ -8211,7 +8211,7 @@ func (c *ProjectsLocationsApisVersionsSpecsDeleteRevisionCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.deleteRevision" call. @@ -8319,7 +8319,7 @@ func (c *ProjectsLocationsApisVersionsSpecsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.get" call. @@ -8430,7 +8430,7 @@ func (c *ProjectsLocationsApisVersionsSpecsGetContentsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.getContents" call. @@ -8557,7 +8557,7 @@ func (c *ProjectsLocationsApisVersionsSpecsGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.getIamPolicy" call. @@ -8699,7 +8699,7 @@ func (c *ProjectsLocationsApisVersionsSpecsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.list" call. @@ -8852,7 +8852,7 @@ func (c *ProjectsLocationsApisVersionsSpecsListRevisionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.listRevisions" call. @@ -8993,7 +8993,7 @@ func (c *ProjectsLocationsApisVersionsSpecsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.patch" call. @@ -9095,7 +9095,7 @@ func (c *ProjectsLocationsApisVersionsSpecsRollbackCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.rollback" call. @@ -9200,7 +9200,7 @@ func (c *ProjectsLocationsApisVersionsSpecsSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.setIamPolicy" call. @@ -9302,7 +9302,7 @@ func (c *ProjectsLocationsApisVersionsSpecsTagRevisionCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.tagRevision" call. @@ -9410,7 +9410,7 @@ func (c *ProjectsLocationsApisVersionsSpecsTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.testIamPermissions" call. @@ -9522,7 +9522,7 @@ func (c *ProjectsLocationsApisVersionsSpecsArtifactsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.create" call. @@ -9617,7 +9617,7 @@ func (c *ProjectsLocationsApisVersionsSpecsArtifactsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.delete" call. @@ -9724,7 +9724,7 @@ func (c *ProjectsLocationsApisVersionsSpecsArtifactsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.get" call. @@ -9835,7 +9835,7 @@ func (c *ProjectsLocationsApisVersionsSpecsArtifactsGetContentsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.getContents" call. @@ -9962,7 +9962,7 @@ func (c *ProjectsLocationsApisVersionsSpecsArtifactsGetIamPolicyCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.getIamPolicy" call. @@ -10104,7 +10104,7 @@ func (c *ProjectsLocationsApisVersionsSpecsArtifactsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.list" call. @@ -10227,7 +10227,7 @@ func (c *ProjectsLocationsApisVersionsSpecsArtifactsReplaceArtifactCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.replaceArtifact" call. @@ -10332,7 +10332,7 @@ func (c *ProjectsLocationsApisVersionsSpecsArtifactsSetIamPolicyCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.setIamPolicy" call. @@ -10440,7 +10440,7 @@ func (c *ProjectsLocationsApisVersionsSpecsArtifactsTestIamPermissionsCall) doRe googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.apis.versions.specs.artifacts.testIamPermissions" call. @@ -10552,7 +10552,7 @@ func (c *ProjectsLocationsArtifactsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.artifacts.create" call. @@ -10647,7 +10647,7 @@ func (c *ProjectsLocationsArtifactsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.artifacts.delete" call. @@ -10754,7 +10754,7 @@ func (c *ProjectsLocationsArtifactsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.artifacts.get" call. @@ -10865,7 +10865,7 @@ func (c *ProjectsLocationsArtifactsGetContentsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.artifacts.getContents" call. @@ -10992,7 +10992,7 @@ func (c *ProjectsLocationsArtifactsGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.artifacts.getIamPolicy" call. @@ -11134,7 +11134,7 @@ func (c *ProjectsLocationsArtifactsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.artifacts.list" call. @@ -11257,7 +11257,7 @@ func (c *ProjectsLocationsArtifactsReplaceArtifactCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.artifacts.replaceArtifact" call. @@ -11362,7 +11362,7 @@ func (c *ProjectsLocationsArtifactsSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.artifacts.setIamPolicy" call. @@ -11470,7 +11470,7 @@ func (c *ProjectsLocationsArtifactsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.artifacts.testIamPermissions" call. @@ -11598,7 +11598,7 @@ func (c *ProjectsLocationsDocumentsGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.documents.getIamPolicy" call. @@ -11703,7 +11703,7 @@ func (c *ProjectsLocationsDocumentsSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.documents.setIamPolicy" call. @@ -11811,7 +11811,7 @@ func (c *ProjectsLocationsDocumentsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.documents.testIamPermissions" call. @@ -11921,7 +11921,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.instances.create" call. @@ -12017,7 +12017,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.instances.delete" call. @@ -12125,7 +12125,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.instances.get" call. @@ -12252,7 +12252,7 @@ func (c *ProjectsLocationsInstancesGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.instances.getIamPolicy" call. @@ -12357,7 +12357,7 @@ func (c *ProjectsLocationsInstancesSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.instances.setIamPolicy" call. @@ -12465,7 +12465,7 @@ func (c *ProjectsLocationsInstancesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.instances.testIamPermissions" call. @@ -12575,7 +12575,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.operations.cancel" call. @@ -12673,7 +12673,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.operations.delete" call. @@ -12782,7 +12782,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.operations.get" call. @@ -12910,7 +12910,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.operations.list" call. @@ -13059,7 +13059,7 @@ func (c *ProjectsLocationsRuntimeGetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.runtime.getIamPolicy" call. @@ -13164,7 +13164,7 @@ func (c *ProjectsLocationsRuntimeSetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.runtime.setIamPolicy" call. @@ -13272,7 +13272,7 @@ func (c *ProjectsLocationsRuntimeTestIamPermissionsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apigeeregistry.projects.locations.runtime.testIamPermissions" call. diff --git a/apikeys/v2/apikeys-gen.go b/apikeys/v2/apikeys-gen.go index 3ce249ebc2f..25b62deff13 100644 --- a/apikeys/v2/apikeys-gen.go +++ b/apikeys/v2/apikeys-gen.go @@ -702,7 +702,7 @@ func (c *KeysLookupKeyCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apikeys.keys.lookupKey" call. @@ -812,7 +812,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apikeys.operations.get" call. @@ -925,7 +925,7 @@ func (c *ProjectsLocationsKeysCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apikeys.projects.locations.keys.create" call. @@ -1030,7 +1030,7 @@ func (c *ProjectsLocationsKeysDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apikeys.projects.locations.keys.delete" call. @@ -1139,7 +1139,7 @@ func (c *ProjectsLocationsKeysGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apikeys.projects.locations.keys.get" call. @@ -1247,7 +1247,7 @@ func (c *ProjectsLocationsKeysGetKeyStringCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apikeys.projects.locations.keys.getKeyString" call. @@ -1378,7 +1378,7 @@ func (c *ProjectsLocationsKeysListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apikeys.projects.locations.keys.list" call. @@ -1519,7 +1519,7 @@ func (c *ProjectsLocationsKeysPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apikeys.projects.locations.keys.patch" call. @@ -1622,7 +1622,7 @@ func (c *ProjectsLocationsKeysUndeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apikeys.projects.locations.keys.undelete" call. diff --git a/apim/v1alpha/apim-gen.go b/apim/v1alpha/apim-gen.go index 31bbfc9e4b0..8ed288e3990 100644 --- a/apim/v1alpha/apim-gen.go +++ b/apim/v1alpha/apim-gen.go @@ -1204,7 +1204,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.get" call. @@ -1335,7 +1335,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.list" call. @@ -1484,7 +1484,7 @@ func (c *ProjectsLocationsListApiObservationTagsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.listApiObservationTags" call. @@ -1634,7 +1634,7 @@ func (c *ProjectsLocationsObservationJobsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.create" call. @@ -1732,7 +1732,7 @@ func (c *ProjectsLocationsObservationJobsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.delete" call. @@ -1834,7 +1834,7 @@ func (c *ProjectsLocationsObservationJobsDisableCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.disable" call. @@ -1936,7 +1936,7 @@ func (c *ProjectsLocationsObservationJobsEnableCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.enable" call. @@ -2044,7 +2044,7 @@ func (c *ProjectsLocationsObservationJobsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.get" call. @@ -2171,7 +2171,7 @@ func (c *ProjectsLocationsObservationJobsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.list" call. @@ -2297,7 +2297,7 @@ func (c *ProjectsLocationsObservationJobsApiObservationsBatchEditTagsCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.apiObservations.batchEditTags" call. @@ -2407,7 +2407,7 @@ func (c *ProjectsLocationsObservationJobsApiObservationsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.apiObservations.get" call. @@ -2534,7 +2534,7 @@ func (c *ProjectsLocationsObservationJobsApiObservationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.apiObservations.list" call. @@ -2665,7 +2665,7 @@ func (c *ProjectsLocationsObservationJobsApiObservationsApiOperationsGetCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.apiObservations.apiOperations.get" call. @@ -2793,7 +2793,7 @@ func (c *ProjectsLocationsObservationJobsApiObservationsApiOperationsListCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationJobs.apiObservations.apiOperations.list" call. @@ -2943,7 +2943,7 @@ func (c *ProjectsLocationsObservationSourcesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationSources.create" call. @@ -3041,7 +3041,7 @@ func (c *ProjectsLocationsObservationSourcesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationSources.delete" call. @@ -3149,7 +3149,7 @@ func (c *ProjectsLocationsObservationSourcesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationSources.get" call. @@ -3277,7 +3277,7 @@ func (c *ProjectsLocationsObservationSourcesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.observationSources.list" call. @@ -3408,7 +3408,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.operations.cancel" call. @@ -3506,7 +3506,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.operations.delete" call. @@ -3615,7 +3615,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.operations.get" call. @@ -3743,7 +3743,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apim.projects.locations.operations.list" call. diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index 5a307ed2065..d5696d411db 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -3618,7 +3618,7 @@ func (c *AppsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.create" call. @@ -3744,7 +3744,7 @@ func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.get" call. @@ -3865,7 +3865,7 @@ func (c *AppsListRuntimesCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.listRuntimes" call. @@ -3979,7 +3979,7 @@ func (c *AppsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.patch" call. @@ -4090,7 +4090,7 @@ func (c *AppsRepairCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.repair" call. @@ -4192,7 +4192,7 @@ func (c *AppsAuthorizedCertificatesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.create" call. @@ -4293,7 +4293,7 @@ func (c *AppsAuthorizedCertificatesDeleteCall) doRequest(alt string) (*http.Resp "appsId": c.appsId, "authorizedCertificatesId": c.authorizedCertificatesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.delete" call. @@ -4422,7 +4422,7 @@ func (c *AppsAuthorizedCertificatesGetCall) doRequest(alt string) (*http.Respons "appsId": c.appsId, "authorizedCertificatesId": c.authorizedCertificatesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.get" call. @@ -4562,7 +4562,7 @@ func (c *AppsAuthorizedCertificatesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.list" call. @@ -4701,7 +4701,7 @@ func (c *AppsAuthorizedCertificatesPatchCall) doRequest(alt string) (*http.Respo "appsId": c.appsId, "authorizedCertificatesId": c.authorizedCertificatesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.patch" call. @@ -4824,7 +4824,7 @@ func (c *AppsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedDomains.list" call. @@ -4975,7 +4975,7 @@ func (c *AppsDomainMappingsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.create" call. @@ -5077,7 +5077,7 @@ func (c *AppsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, er "appsId": c.appsId, "domainMappingsId": c.domainMappingsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.delete" call. @@ -5189,7 +5189,7 @@ func (c *AppsDomainMappingsGetCall) doRequest(alt string) (*http.Response, error "appsId": c.appsId, "domainMappingsId": c.domainMappingsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.get" call. @@ -5311,7 +5311,7 @@ func (c *AppsDomainMappingsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.list" call. @@ -5449,7 +5449,7 @@ func (c *AppsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, err "appsId": c.appsId, "domainMappingsId": c.domainMappingsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.patch" call. @@ -5554,7 +5554,7 @@ func (c *AppsFirewallIngressRulesBatchUpdateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.batchUpdate" call. @@ -5657,7 +5657,7 @@ func (c *AppsFirewallIngressRulesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.create" call. @@ -5757,7 +5757,7 @@ func (c *AppsFirewallIngressRulesDeleteCall) doRequest(alt string) (*http.Respon "appsId": c.appsId, "ingressRulesId": c.ingressRulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.delete" call. @@ -5869,7 +5869,7 @@ func (c *AppsFirewallIngressRulesGetCall) doRequest(alt string) (*http.Response, "appsId": c.appsId, "ingressRulesId": c.ingressRulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.get" call. @@ -5999,7 +5999,7 @@ func (c *AppsFirewallIngressRulesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.list" call. @@ -6134,7 +6134,7 @@ func (c *AppsFirewallIngressRulesPatchCall) doRequest(alt string) (*http.Respons "appsId": c.appsId, "ingressRulesId": c.ingressRulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.patch" call. @@ -6245,7 +6245,7 @@ func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "locationsId": c.locationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.get" call. @@ -6377,7 +6377,7 @@ func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.list" call. @@ -6512,7 +6512,7 @@ func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "operationsId": c.operationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.get" call. @@ -6640,7 +6640,7 @@ func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.list" call. @@ -6762,7 +6762,7 @@ func (c *AppsServicesDeleteCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.delete" call. @@ -6874,7 +6874,7 @@ func (c *AppsServicesGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.get" call. @@ -6996,7 +6996,7 @@ func (c *AppsServicesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.list" call. @@ -7150,7 +7150,7 @@ func (c *AppsServicesPatchCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.patch" call. @@ -7256,7 +7256,7 @@ func (c *AppsServicesVersionsCreateCall) doRequest(alt string) (*http.Response, "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.create" call. @@ -7360,7 +7360,7 @@ func (c *AppsServicesVersionsDeleteCall) doRequest(alt string) (*http.Response, "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.delete" call. @@ -7495,7 +7495,7 @@ func (c *AppsServicesVersionsGetCall) doRequest(alt string) (*http.Response, err "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.get" call. @@ -7639,7 +7639,7 @@ func (c *AppsServicesVersionsListCall) doRequest(alt string) (*http.Response, er "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.list" call. @@ -7809,7 +7809,7 @@ func (c *AppsServicesVersionsPatchCall) doRequest(alt string) (*http.Response, e "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.patch" call. @@ -7928,7 +7928,7 @@ func (c *AppsServicesVersionsInstancesDebugCall) doRequest(alt string) (*http.Re "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.debug" call. @@ -8046,7 +8046,7 @@ func (c *AppsServicesVersionsInstancesDeleteCall) doRequest(alt string) (*http.R "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.delete" call. @@ -8166,7 +8166,7 @@ func (c *AppsServicesVersionsInstancesGetCall) doRequest(alt string) (*http.Resp "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.get" call. @@ -8298,7 +8298,7 @@ func (c *AppsServicesVersionsInstancesListCall) doRequest(alt string) (*http.Res "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.list" call. @@ -8450,7 +8450,7 @@ func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) doRequest(alt s "locationsId": c.locationsId, "applicationsId": c.applicationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.applications.authorizedDomains.list" call. diff --git a/appengine/v1alpha/appengine-gen.go b/appengine/v1alpha/appengine-gen.go index bb373e06448..a9b7b867a6d 100644 --- a/appengine/v1alpha/appengine-gen.go +++ b/appengine/v1alpha/appengine-gen.go @@ -1460,7 +1460,7 @@ func (c *AppsAuthorizedCertificatesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.create" call. @@ -1561,7 +1561,7 @@ func (c *AppsAuthorizedCertificatesDeleteCall) doRequest(alt string) (*http.Resp "appsId": c.appsId, "authorizedCertificatesId": c.authorizedCertificatesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.delete" call. @@ -1690,7 +1690,7 @@ func (c *AppsAuthorizedCertificatesGetCall) doRequest(alt string) (*http.Respons "appsId": c.appsId, "authorizedCertificatesId": c.authorizedCertificatesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.get" call. @@ -1830,7 +1830,7 @@ func (c *AppsAuthorizedCertificatesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.list" call. @@ -1969,7 +1969,7 @@ func (c *AppsAuthorizedCertificatesPatchCall) doRequest(alt string) (*http.Respo "appsId": c.appsId, "authorizedCertificatesId": c.authorizedCertificatesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.patch" call. @@ -2092,7 +2092,7 @@ func (c *AppsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedDomains.list" call. @@ -2253,7 +2253,7 @@ func (c *AppsDomainMappingsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.create" call. @@ -2355,7 +2355,7 @@ func (c *AppsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, er "appsId": c.appsId, "domainMappingsId": c.domainMappingsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.delete" call. @@ -2467,7 +2467,7 @@ func (c *AppsDomainMappingsGetCall) doRequest(alt string) (*http.Response, error "appsId": c.appsId, "domainMappingsId": c.domainMappingsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.get" call. @@ -2589,7 +2589,7 @@ func (c *AppsDomainMappingsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.list" call. @@ -2738,7 +2738,7 @@ func (c *AppsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, err "appsId": c.appsId, "domainMappingsId": c.domainMappingsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.patch" call. @@ -2849,7 +2849,7 @@ func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "locationsId": c.locationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.get" call. @@ -2981,7 +2981,7 @@ func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.list" call. @@ -3116,7 +3116,7 @@ func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "operationsId": c.operationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.get" call. @@ -3244,7 +3244,7 @@ func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.list" call. @@ -3377,7 +3377,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) "projectsId": c.projectsId, "locationsId": c.locationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.get" call. @@ -3509,7 +3509,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "projectsId": c.projectsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.list" call. @@ -3661,7 +3661,7 @@ func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) doRequest(alt s "locationsId": c.locationsId, "applicationsId": c.applicationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.applications.authorizedDomains.list" call. @@ -3800,7 +3800,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon "locationsId": c.locationsId, "operationsId": c.operationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.operations.get" call. @@ -3932,7 +3932,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo "projectsId": c.projectsId, "locationsId": c.locationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.operations.list" call. diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index 491f5945051..2656bcdc339 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -3708,7 +3708,7 @@ func (c *AppsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.create" call. @@ -3834,7 +3834,7 @@ func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.get" call. @@ -3955,7 +3955,7 @@ func (c *AppsListRuntimesCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.listRuntimes" call. @@ -4069,7 +4069,7 @@ func (c *AppsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.patch" call. @@ -4180,7 +4180,7 @@ func (c *AppsRepairCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.repair" call. @@ -4282,7 +4282,7 @@ func (c *AppsAuthorizedCertificatesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.create" call. @@ -4383,7 +4383,7 @@ func (c *AppsAuthorizedCertificatesDeleteCall) doRequest(alt string) (*http.Resp "appsId": c.appsId, "authorizedCertificatesId": c.authorizedCertificatesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.delete" call. @@ -4512,7 +4512,7 @@ func (c *AppsAuthorizedCertificatesGetCall) doRequest(alt string) (*http.Respons "appsId": c.appsId, "authorizedCertificatesId": c.authorizedCertificatesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.get" call. @@ -4652,7 +4652,7 @@ func (c *AppsAuthorizedCertificatesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.list" call. @@ -4791,7 +4791,7 @@ func (c *AppsAuthorizedCertificatesPatchCall) doRequest(alt string) (*http.Respo "appsId": c.appsId, "authorizedCertificatesId": c.authorizedCertificatesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedCertificates.patch" call. @@ -4914,7 +4914,7 @@ func (c *AppsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.authorizedDomains.list" call. @@ -5065,7 +5065,7 @@ func (c *AppsDomainMappingsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.create" call. @@ -5167,7 +5167,7 @@ func (c *AppsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, er "appsId": c.appsId, "domainMappingsId": c.domainMappingsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.delete" call. @@ -5279,7 +5279,7 @@ func (c *AppsDomainMappingsGetCall) doRequest(alt string) (*http.Response, error "appsId": c.appsId, "domainMappingsId": c.domainMappingsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.get" call. @@ -5401,7 +5401,7 @@ func (c *AppsDomainMappingsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.list" call. @@ -5539,7 +5539,7 @@ func (c *AppsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, err "appsId": c.appsId, "domainMappingsId": c.domainMappingsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.domainMappings.patch" call. @@ -5644,7 +5644,7 @@ func (c *AppsFirewallIngressRulesBatchUpdateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.batchUpdate" call. @@ -5747,7 +5747,7 @@ func (c *AppsFirewallIngressRulesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.create" call. @@ -5847,7 +5847,7 @@ func (c *AppsFirewallIngressRulesDeleteCall) doRequest(alt string) (*http.Respon "appsId": c.appsId, "ingressRulesId": c.ingressRulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.delete" call. @@ -5959,7 +5959,7 @@ func (c *AppsFirewallIngressRulesGetCall) doRequest(alt string) (*http.Response, "appsId": c.appsId, "ingressRulesId": c.ingressRulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.get" call. @@ -6089,7 +6089,7 @@ func (c *AppsFirewallIngressRulesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.list" call. @@ -6224,7 +6224,7 @@ func (c *AppsFirewallIngressRulesPatchCall) doRequest(alt string) (*http.Respons "appsId": c.appsId, "ingressRulesId": c.ingressRulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.firewall.ingressRules.patch" call. @@ -6335,7 +6335,7 @@ func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "locationsId": c.locationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.get" call. @@ -6467,7 +6467,7 @@ func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.list" call. @@ -6602,7 +6602,7 @@ func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "operationsId": c.operationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.get" call. @@ -6730,7 +6730,7 @@ func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.list" call. @@ -6852,7 +6852,7 @@ func (c *AppsServicesDeleteCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.delete" call. @@ -6982,7 +6982,7 @@ func (c *AppsServicesGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.get" call. @@ -7104,7 +7104,7 @@ func (c *AppsServicesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.list" call. @@ -7258,7 +7258,7 @@ func (c *AppsServicesPatchCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.patch" call. @@ -7364,7 +7364,7 @@ func (c *AppsServicesVersionsCreateCall) doRequest(alt string) (*http.Response, "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.create" call. @@ -7468,7 +7468,7 @@ func (c *AppsServicesVersionsDeleteCall) doRequest(alt string) (*http.Response, "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.delete" call. @@ -7621,7 +7621,7 @@ func (c *AppsServicesVersionsGetCall) doRequest(alt string) (*http.Response, err "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.get" call. @@ -7765,7 +7765,7 @@ func (c *AppsServicesVersionsListCall) doRequest(alt string) (*http.Response, er "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.list" call. @@ -7935,7 +7935,7 @@ func (c *AppsServicesVersionsPatchCall) doRequest(alt string) (*http.Response, e "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.patch" call. @@ -8054,7 +8054,7 @@ func (c *AppsServicesVersionsInstancesDebugCall) doRequest(alt string) (*http.Re "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.debug" call. @@ -8172,7 +8172,7 @@ func (c *AppsServicesVersionsInstancesDeleteCall) doRequest(alt string) (*http.R "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.delete" call. @@ -8292,7 +8292,7 @@ func (c *AppsServicesVersionsInstancesGetCall) doRequest(alt string) (*http.Resp "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.get" call. @@ -8424,7 +8424,7 @@ func (c *AppsServicesVersionsInstancesListCall) doRequest(alt string) (*http.Res "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.list" call. @@ -8557,7 +8557,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) "projectsId": c.projectsId, "locationsId": c.locationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.get" call. @@ -8689,7 +8689,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "projectsId": c.projectsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.list" call. @@ -8841,7 +8841,7 @@ func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) doRequest(alt s "locationsId": c.locationsId, "applicationsId": c.applicationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.applications.authorizedDomains.list" call. @@ -8980,7 +8980,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon "locationsId": c.locationsId, "operationsId": c.operationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.operations.get" call. @@ -9112,7 +9112,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo "projectsId": c.projectsId, "locationsId": c.locationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.projects.locations.operations.list" call. diff --git a/appengine/v1beta4/appengine-gen.go b/appengine/v1beta4/appengine-gen.go index 7be5e92a602..b3056eced4c 100644 --- a/appengine/v1beta4/appengine-gen.go +++ b/appengine/v1beta4/appengine-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/appengine/docs/admin-api/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // appengineService, err := appengine.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // appengineService, err := appengine.NewService(ctx, option.WithScopes(appengine.CloudPlatformReadOnlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // appengineService, err := appengine.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // appengineService, err := appengine.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package appengine // import "google.golang.org/api/appengine/v1beta4" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "appengine:v1beta4" const apiName = "appengine" const apiVersion = "v1beta4" const basePath = "https://appengine.googleapis.com/" +const basePathTemplate = "https://appengine.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -94,7 +111,7 @@ const ( // NewService creates a new APIService. func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/appengine.admin", "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", @@ -102,6 +119,8 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -215,333 +234,261 @@ type AppsOperationsService struct { } // ApiConfigHandler: Google Cloud Endpoints -// (https://cloud.google.com/appengine/docs/python/endpoints/) -// configuration for API handlers. +// (https://cloud.google.com/appengine/docs/python/endpoints/) configuration +// for API handlers. type ApiConfigHandler struct { - // AuthFailAction: Action to take when users access resources that - // require authentication. Defaults to redirect. + // AuthFailAction: Action to take when users access resources that require + // authentication. Defaults to redirect. // // Possible values: - // "AUTH_FAIL_ACTION_UNSPECIFIED" - Not specified. - // AUTH_FAIL_ACTION_REDIRECT is assumed. - // "AUTH_FAIL_ACTION_REDIRECT" - Redirects user to - // "accounts.google.com". The user is redirected back to the application - // URL after signing in or creating an account. - // "AUTH_FAIL_ACTION_UNAUTHORIZED" - Rejects request with a 401 HTTP - // status code and an error message. + // "AUTH_FAIL_ACTION_UNSPECIFIED" - Not specified. AUTH_FAIL_ACTION_REDIRECT + // is assumed. + // "AUTH_FAIL_ACTION_REDIRECT" - Redirects user to "accounts.google.com". The + // user is redirected back to the application URL after signing in or creating + // an account. + // "AUTH_FAIL_ACTION_UNAUTHORIZED" - Rejects request with a 401 HTTP status + // code and an error message. AuthFailAction string `json:"authFailAction,omitempty"` - // Login: Level of login required to access this resource. Defaults to // optional. // // Possible values: // "LOGIN_UNSPECIFIED" - Not specified. LOGIN_OPTIONAL is assumed. // "LOGIN_OPTIONAL" - Does not require that the user is signed in. - // "LOGIN_ADMIN" - If the user is not signed in, the auth_fail_action - // is taken. In addition, if the user is not an administrator for the - // application, they are given an error message regardless of - // auth_fail_action. If the user is an administrator, the handler - // proceeds. + // "LOGIN_ADMIN" - If the user is not signed in, the auth_fail_action is + // taken. In addition, if the user is not an administrator for the application, + // they are given an error message regardless of auth_fail_action. If the user + // is an administrator, the handler proceeds. // "LOGIN_REQUIRED" - If the user has signed in, the handler proceeds // normally. Otherwise, the auth_fail_action is taken. Login string `json:"login,omitempty"` - // Script: Path to the script from the application root directory. Script string `json:"script,omitempty"` - // SecurityLevel: Security (HTTPS) enforcement for this URL. // // Possible values: // "SECURE_UNSPECIFIED" - Not specified. - // "SECURE_DEFAULT" - Both HTTP and HTTPS requests with URLs that - // match the handler succeed without redirects. The application can - // examine the request to determine which protocol was used, and respond - // accordingly. - // "SECURE_NEVER" - Requests for a URL that match this handler that - // use HTTPS are automatically redirected to the HTTP equivalent URL. - // "SECURE_OPTIONAL" - Both HTTP and HTTPS requests with URLs that - // match the handler succeed without redirects. The application can - // examine the request to determine which protocol was used and respond - // accordingly. - // "SECURE_ALWAYS" - Requests for a URL that match this handler that - // do not use HTTPS are automatically redirected to the HTTPS URL with - // the same path. Query parameters are reserved for the redirect. + // "SECURE_DEFAULT" - Both HTTP and HTTPS requests with URLs that match the + // handler succeed without redirects. The application can examine the request + // to determine which protocol was used, and respond accordingly. + // "SECURE_NEVER" - Requests for a URL that match this handler that use HTTPS + // are automatically redirected to the HTTP equivalent URL. + // "SECURE_OPTIONAL" - Both HTTP and HTTPS requests with URLs that match the + // handler succeed without redirects. The application can examine the request + // to determine which protocol was used and respond accordingly. + // "SECURE_ALWAYS" - Requests for a URL that match this handler that do not + // use HTTPS are automatically redirected to the HTTPS URL with the same path. + // Query parameters are reserved for the redirect. SecurityLevel string `json:"securityLevel,omitempty"` - // Url: URL to serve the endpoint at. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthFailAction") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthFailAction") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuthFailAction") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApiConfigHandler) MarshalJSON() ([]byte, error) { +func (s ApiConfigHandler) MarshalJSON() ([]byte, error) { type NoMethod ApiConfigHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApiEndpointHandler: Uses Google Cloud Endpoints to handle requests. type ApiEndpointHandler struct { // ScriptPath: Path to the script from the application root directory. ScriptPath string `json:"scriptPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "ScriptPath") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ScriptPath") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ScriptPath") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApiEndpointHandler) MarshalJSON() ([]byte, error) { +func (s ApiEndpointHandler) MarshalJSON() ([]byte, error) { type NoMethod ApiEndpointHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Application: An Application resource contains the top-level -// configuration of an App Engine application. +// Application: An Application resource contains the top-level configuration of +// an App Engine application. type Application struct { - // AuthDomain: Google Apps authentication domain that controls which - // users can access this application.Defaults to open access for any - // Google Account. + // AuthDomain: Google Apps authentication domain that controls which users can + // access this application.Defaults to open access for any Google Account. AuthDomain string `json:"authDomain,omitempty"` - - // CodeBucket: Google Cloud Storage bucket that can be used for storing - // files associated with this application. This bucket is associated - // with the application and can be used by the gcloud deployment - // commands.@OutputOnly + // CodeBucket: Google Cloud Storage bucket that can be used for storing files + // associated with this application. This bucket is associated with the + // application and can be used by the gcloud deployment commands.@OutputOnly CodeBucket string `json:"codeBucket,omitempty"` - // DefaultBucket: Google Cloud Storage bucket that can be used by this // application to store content.@OutputOnly DefaultBucket string `json:"defaultBucket,omitempty"` - - // DefaultCookieExpiration: Cookie expiration policy for this - // application. + // DefaultCookieExpiration: Cookie expiration policy for this application. DefaultCookieExpiration string `json:"defaultCookieExpiration,omitempty"` - - // DefaultHostname: Hostname used to reach the application, as resolved - // by App Engine.@OutputOnly + // DefaultHostname: Hostname used to reach the application, as resolved by App + // Engine.@OutputOnly DefaultHostname string `json:"defaultHostname,omitempty"` - - // DispatchRules: HTTP path dispatch rules for requests to the - // application that do not explicitly target a module or version. Rules - // are order-dependent.@OutputOnly - DispatchRules []*UrlDispatchRule `json:"dispatchRules,omitempty"` - - Iap *IdentityAwareProxy `json:"iap,omitempty"` - - // Id: Identifier of the Application resource. This identifier is - // equivalent to the project ID of the Google Cloud Platform project - // where you want to deploy your application. Example: myapp. + // DispatchRules: HTTP path dispatch rules for requests to the application that + // do not explicitly target a module or version. Rules are + // order-dependent.@OutputOnly + DispatchRules []*UrlDispatchRule `json:"dispatchRules,omitempty"` + Iap *IdentityAwareProxy `json:"iap,omitempty"` + // Id: Identifier of the Application resource. This identifier is equivalent to + // the project ID of the Google Cloud Platform project where you want to deploy + // your application. Example: myapp. Id string `json:"id,omitempty"` - - // Location: Location from which this application will be run. - // Application instances will run out of data centers in the chosen - // location, which is also where all of the application's end user - // content is stored.Defaults to us-central.Options are:us-central - - // Central USeurope-west - Western Europeus-east1 - Eastern US + // Location: Location from which this application will be run. Application + // instances will run out of data centers in the chosen location, which is also + // where all of the application's end user content is stored.Defaults to + // us-central.Options are:us-central - Central USeurope-west - Western + // Europeus-east1 - Eastern US Location string `json:"location,omitempty"` - // Name: Full path to the Application resource in the API. Example: // apps/myapp.@OutputOnly Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuthDomain") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthDomain") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthDomain") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Application) MarshalJSON() ([]byte, error) { +func (s Application) MarshalJSON() ([]byte, error) { type NoMethod Application - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AutomaticScaling: Automatic scaling is based on request rate, -// response latencies, and other application metrics. +// AutomaticScaling: Automatic scaling is based on request rate, response +// latencies, and other application metrics. type AutomaticScaling struct { // CoolDownPeriod: The time period that the Autoscaler - // (https://cloud.google.com/compute/docs/autoscaler/) should wait - // before it starts collecting information from a new instance. This - // prevents the autoscaler from collecting information when the instance - // is initializing, during which the collected usage would not be - // reliable. Only applicable in the App Engine flexible environment. + // (https://cloud.google.com/compute/docs/autoscaler/) should wait before it + // starts collecting information from a new instance. This prevents the + // autoscaler from collecting information when the instance is initializing, + // during which the collected usage would not be reliable. Only applicable in + // the App Engine flexible environment. CoolDownPeriod string `json:"coolDownPeriod,omitempty"` - // CpuUtilization: Target scaling by CPU usage. CpuUtilization *CpuUtilization `json:"cpuUtilization,omitempty"` - // DiskUtilization: Target scaling by disk usage. DiskUtilization *DiskUtilization `json:"diskUtilization,omitempty"` - - // MaxConcurrentRequests: Number of concurrent requests an automatic - // scaling instance can accept before the scheduler spawns a new - // instance.Defaults to a runtime-specific value. + // MaxConcurrentRequests: Number of concurrent requests an automatic scaling + // instance can accept before the scheduler spawns a new instance.Defaults to a + // runtime-specific value. MaxConcurrentRequests int64 `json:"maxConcurrentRequests,omitempty"` - - // MaxIdleInstances: Maximum number of idle instances that should be - // maintained for this version. + // MaxIdleInstances: Maximum number of idle instances that should be maintained + // for this version. MaxIdleInstances int64 `json:"maxIdleInstances,omitempty"` - - // MaxPendingLatency: Maximum amount of time that a request should wait - // in the pending queue before starting a new instance to handle it. + // MaxPendingLatency: Maximum amount of time that a request should wait in the + // pending queue before starting a new instance to handle it. MaxPendingLatency string `json:"maxPendingLatency,omitempty"` - - // MaxTotalInstances: Maximum number of instances that should be started - // to handle requests. + // MaxTotalInstances: Maximum number of instances that should be started to + // handle requests. MaxTotalInstances int64 `json:"maxTotalInstances,omitempty"` - - // MinIdleInstances: Minimum number of idle instances that should be - // maintained for this version. Only applicable for the default version - // of a module. + // MinIdleInstances: Minimum number of idle instances that should be maintained + // for this version. Only applicable for the default version of a module. MinIdleInstances int64 `json:"minIdleInstances,omitempty"` - - // MinPendingLatency: Minimum amount of time a request should wait in - // the pending queue before starting a new instance to handle it. + // MinPendingLatency: Minimum amount of time a request should wait in the + // pending queue before starting a new instance to handle it. MinPendingLatency string `json:"minPendingLatency,omitempty"` - - // MinTotalInstances: Minimum number of instances that should be - // maintained for this version. + // MinTotalInstances: Minimum number of instances that should be maintained for + // this version. MinTotalInstances int64 `json:"minTotalInstances,omitempty"` - // NetworkUtilization: Target scaling by network usage. NetworkUtilization *NetworkUtilization `json:"networkUtilization,omitempty"` - // RequestUtilization: Target scaling by request utilization. RequestUtilization *RequestUtilization `json:"requestUtilization,omitempty"` - // ForceSendFields is a list of field names (e.g. "CoolDownPeriod") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CoolDownPeriod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CoolDownPeriod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AutomaticScaling) MarshalJSON() ([]byte, error) { +func (s AutomaticScaling) MarshalJSON() ([]byte, error) { type NoMethod AutomaticScaling - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BasicScaling: A module with basic scaling will create an instance -// when the application receives a request. The instance will be turned -// down when the app becomes idle. Basic scaling is ideal for work that -// is intermittent or driven by user activity. +// BasicScaling: A module with basic scaling will create an instance when the +// application receives a request. The instance will be turned down when the +// app becomes idle. Basic scaling is ideal for work that is intermittent or +// driven by user activity. type BasicScaling struct { - // IdleTimeout: Duration of time after the last request that an instance - // must wait before the instance is shut down. + // IdleTimeout: Duration of time after the last request that an instance must + // wait before the instance is shut down. IdleTimeout string `json:"idleTimeout,omitempty"` - // MaxInstances: Maximum number of instances to create for this version. MaxInstances int64 `json:"maxInstances,omitempty"` - // ForceSendFields is a list of field names (e.g. "IdleTimeout") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IdleTimeout") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IdleTimeout") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BasicScaling) MarshalJSON() ([]byte, error) { +func (s BasicScaling) MarshalJSON() ([]byte, error) { type NoMethod BasicScaling - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContainerInfo: Docker image that is used to create a container and -// start a VM instance for the version that you deploy. Only applicable -// for instances running in the App Engine flexible environment. +// ContainerInfo: Docker image that is used to create a container and start a +// VM instance for the version that you deploy. Only applicable for instances +// running in the App Engine flexible environment. type ContainerInfo struct { - // Image: URI to the hosted container image in Google Container - // Registry. The URI must be fully qualified and include a tag or - // digest. Examples: "gcr.io/my-project/image:tag" or - // "gcr.io/my-project/image@digest" + // Image: URI to the hosted container image in Google Container Registry. The + // URI must be fully qualified and include a tag or digest. Examples: + // "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" Image string `json:"image,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Image") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Image") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Image") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerInfo) MarshalJSON() ([]byte, error) { +func (s ContainerInfo) MarshalJSON() ([]byte, error) { type NoMethod ContainerInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CpuUtilization: Target scaling by CPU usage. @@ -549,34 +496,25 @@ type CpuUtilization struct { // AggregationWindowLength: Period of time over which CPU utilization is // calculated. AggregationWindowLength string `json:"aggregationWindowLength,omitempty"` - - // TargetUtilization: Target CPU utilization ratio to maintain when - // scaling. Must be between 0 and 1. + // TargetUtilization: Target CPU utilization ratio to maintain when scaling. + // Must be between 0 and 1. TargetUtilization float64 `json:"targetUtilization,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AggregationWindowLength") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AggregationWindowLength") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregationWindowLength") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AggregationWindowLength") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CpuUtilization) MarshalJSON() ([]byte, error) { +func (s CpuUtilization) MarshalJSON() ([]byte, error) { type NoMethod CpuUtilization - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CpuUtilization) UnmarshalJSON(data []byte) error { @@ -593,172 +531,137 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error { return nil } -// CreateVersionMetadataV1: Metadata for the given -// google.longrunning.Operation during a -// google.appengine.v1.CreateVersionRequest. +// CreateVersionMetadataV1: Metadata for the given google.longrunning.Operation +// during a google.appengine.v1.CreateVersionRequest. type CreateVersionMetadataV1 struct { - // CloudBuildId: The Cloud Build ID if one was created as part of the - // version create. @OutputOnly + // CloudBuildId: The Cloud Build ID if one was created as part of the version + // create. @OutputOnly CloudBuildId string `json:"cloudBuildId,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudBuildId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudBuildId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudBuildId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) { +func (s CreateVersionMetadataV1) MarshalJSON() ([]byte, error) { type NoMethod CreateVersionMetadataV1 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateVersionMetadataV1Alpha: Metadata for the given // google.longrunning.Operation during a // google.appengine.v1alpha.CreateVersionRequest. type CreateVersionMetadataV1Alpha struct { - // CloudBuildId: The Cloud Build ID if one was created as part of the - // version create. @OutputOnly + // CloudBuildId: The Cloud Build ID if one was created as part of the version + // create. @OutputOnly CloudBuildId string `json:"cloudBuildId,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudBuildId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudBuildId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudBuildId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) { +func (s CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) { type NoMethod CreateVersionMetadataV1Alpha - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateVersionMetadataV1Beta: Metadata for the given // google.longrunning.Operation during a // google.appengine.v1beta.CreateVersionRequest. type CreateVersionMetadataV1Beta struct { - // CloudBuildId: The Cloud Build ID if one was created as part of the - // version create. @OutputOnly + // CloudBuildId: The Cloud Build ID if one was created as part of the version + // create. @OutputOnly CloudBuildId string `json:"cloudBuildId,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudBuildId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudBuildId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudBuildId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) { +func (s CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) { type NoMethod CreateVersionMetadataV1Beta - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DebugInstanceRequest: Request message for Instances.DebugInstance. type DebugInstanceRequest struct { - // SshKey: Public SSH key to add to the instance. - // Examples: + // SshKey: Public SSH key to add to the instance. Examples: // [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] // [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh - // {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more - // information, see Adding and Removing SSH Keys + // {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, + // see Adding and Removing SSH Keys // (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). SshKey string `json:"sshKey,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SshKey") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "SshKey") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SshKey") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DebugInstanceRequest) MarshalJSON() ([]byte, error) { +func (s DebugInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod DebugInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Deployment: Code and application artifacts used to deploy a version -// to App Engine. +// Deployment: Code and application artifacts used to deploy a version to App +// Engine. type Deployment struct { - // Container: The Docker image for the container that runs the version. - // Only applicable for instances running in the App Engine flexible - // environment. + // Container: The Docker image for the container that runs the version. Only + // applicable for instances running in the App Engine flexible environment. Container *ContainerInfo `json:"container,omitempty"` - // Files: Manifest of the files stored in Google Cloud Storage that are - // included as part of this version. All files must be readable using - // the credentials supplied with this call. + // included as part of this version. All files must be readable using the + // credentials supplied with this call. Files map[string]FileInfo `json:"files,omitempty"` - - // SourceReferences: Origin of the source code for this deployment. - // There can be more than one source reference per version if source - // code is distributed among multiple repositories. + // SourceReferences: Origin of the source code for this deployment. There can + // be more than one source reference per version if source code is distributed + // among multiple repositories. SourceReferences []*SourceReference `json:"sourceReferences,omitempty"` - // ForceSendFields is a list of field names (e.g. "Container") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Container") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Container") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Deployment) MarshalJSON() ([]byte, error) { +func (s Deployment) MarshalJSON() ([]byte, error) { type NoMethod Deployment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DiskUtilization: Target scaling by disk usage. Only applicable for VM @@ -766,287 +669,221 @@ func (s *Deployment) MarshalJSON() ([]byte, error) { type DiskUtilization struct { // TargetReadBytesPerSec: Target bytes read per second. TargetReadBytesPerSec int64 `json:"targetReadBytesPerSec,omitempty"` - // TargetReadOpsPerSec: Target ops read per second. TargetReadOpsPerSec int64 `json:"targetReadOpsPerSec,omitempty"` - // TargetWriteBytesPerSec: Target bytes written per second. TargetWriteBytesPerSec int64 `json:"targetWriteBytesPerSec,omitempty"` - // TargetWriteOpsPerSec: Target ops written per second. TargetWriteOpsPerSec int64 `json:"targetWriteOpsPerSec,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "TargetReadBytesPerSec") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetReadBytesPerSec") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TargetReadBytesPerSec") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DiskUtilization) MarshalJSON() ([]byte, error) { +func (s DiskUtilization) MarshalJSON() ([]byte, error) { type NoMethod DiskUtilization - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndpointsApiService: Cloud Endpoints -// (https://cloud.google.com/endpoints) configuration. The Endpoints API -// Service provides tooling for serving Open API and gRPC endpoints via -// an NGINX proxy. Only valid for App Engine Flexible environment -// deployments..The fields here refer to the name and configuration id -// of a "service" resource in the Service Management API +// EndpointsApiService: Cloud Endpoints (https://cloud.google.com/endpoints) +// configuration. The Endpoints API Service provides tooling for serving Open +// API and gRPC endpoints via an NGINX proxy. Only valid for App Engine +// Flexible environment deployments..The fields here refer to the name and +// configuration id of a "service" resource in the Service Management API // (https://cloud.google.com/service-management/overview). type EndpointsApiService struct { - // ConfigId: Endpoints service configuration id as specified by the - // Service Management API. For example "2016-09-19r1"By default, the - // Endpoints service configuration id is fixed and config_id must be - // specified. To keep the Endpoints service configuration id updated - // with each rollout, specify RolloutStrategy.MANAGED and omit - // config_id. + // ConfigId: Endpoints service configuration id as specified by the Service + // Management API. For example "2016-09-19r1"By default, the Endpoints service + // configuration id is fixed and config_id must be specified. To keep the + // Endpoints service configuration id updated with each rollout, specify + // RolloutStrategy.MANAGED and omit config_id. ConfigId string `json:"configId,omitempty"` - - // DisableTraceSampling: Enable or disable trace sampling. By default, - // this is set to false for enabled. + // DisableTraceSampling: Enable or disable trace sampling. By default, this is + // set to false for enabled. DisableTraceSampling bool `json:"disableTraceSampling,omitempty"` - - // Name: Endpoints service name which is the name of the "service" - // resource in the Service Management API. For example + // Name: Endpoints service name which is the name of the "service" resource in + // the Service Management API. For example // "myapi.endpoints.myproject.cloud.goog" Name string `json:"name,omitempty"` - - // RolloutStrategy: Endpoints rollout strategy. If FIXED, config_id must - // be specified. If MANAGED, config_id must be omitted. + // RolloutStrategy: Endpoints rollout strategy. If FIXED, config_id must be + // specified. If MANAGED, config_id must be omitted. // // Possible values: // "UNSPECIFIED_ROLLOUT_STRATEGY" - Not specified. Defaults to FIXED. // "FIXED" - Endpoints service configuration id will be fixed to the // configuration id specified by config_id. - // "MANAGED" - Endpoints service configuration id will be updated with - // each rollout. + // "MANAGED" - Endpoints service configuration id will be updated with each + // rollout. RolloutStrategy string `json:"rolloutStrategy,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfigId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConfigId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConfigId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EndpointsApiService) MarshalJSON() ([]byte, error) { +func (s EndpointsApiService) MarshalJSON() ([]byte, error) { type NoMethod EndpointsApiService - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ErrorHandler: Custom static error page to be served when an error -// occurs. +// ErrorHandler: Custom static error page to be served when an error occurs. type ErrorHandler struct { // ErrorCode: Error condition this handler applies to. // // Possible values: - // "ERROR_CODE_UNSPECIFIED" - Not specified. ERROR_CODE_DEFAULT is - // assumed. + // "ERROR_CODE_UNSPECIFIED" - Not specified. ERROR_CODE_DEFAULT is assumed. // "ERROR_CODE_DEFAULT" - All other error types. - // "ERROR_CODE_OVER_QUOTA" - Application has exceeded a resource - // quota. - // "ERROR_CODE_DOS_API_DENIAL" - Client blocked by the application's - // Denial of Service protection configuration. - // "ERROR_CODE_TIMEOUT" - Deadline reached before the application - // responds. + // "ERROR_CODE_OVER_QUOTA" - Application has exceeded a resource quota. + // "ERROR_CODE_DOS_API_DENIAL" - Client blocked by the application's Denial + // of Service protection configuration. + // "ERROR_CODE_TIMEOUT" - Deadline reached before the application responds. ErrorCode string `json:"errorCode,omitempty"` - // MimeType: MIME type of file. Defaults to text/html. MimeType string `json:"mimeType,omitempty"` - // StaticFile: Static file content to be served for this error. StaticFile string `json:"staticFile,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ErrorCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ErrorCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ErrorHandler) MarshalJSON() ([]byte, error) { +func (s ErrorHandler) MarshalJSON() ([]byte, error) { type NoMethod ErrorHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FileInfo: Single source file that is part of the version to be -// deployed. Each source file that is deployed must be specified -// separately. +// FileInfo: Single source file that is part of the version to be deployed. +// Each source file that is deployed must be specified separately. type FileInfo struct { - // MimeType: The MIME type of the file.Defaults to the value from Google - // Cloud Storage. + // MimeType: The MIME type of the file.Defaults to the value from Google Cloud + // Storage. MimeType string `json:"mimeType,omitempty"` - // Sha1Sum: The SHA1 hash of the file, in hex. Sha1Sum string `json:"sha1Sum,omitempty"` - - // SourceUrl: URL source to use to fetch this file. Must be a URL to a - // resource in Google Cloud Storage in the form + // SourceUrl: URL source to use to fetch this file. Must be a URL to a resource + // in Google Cloud Storage in the form // 'http(s)://storage.googleapis.com//'. SourceUrl string `json:"sourceUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "MimeType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MimeType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MimeType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileInfo) MarshalJSON() ([]byte, error) { +func (s FileInfo) MarshalJSON() ([]byte, error) { type NoMethod FileInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HealthCheck: Health checking configuration for VM instances. -// Unhealthy instances are killed and replaced with new instances. Only -// applicable for instances in App Engine flexible environment. +// HealthCheck: Health checking configuration for VM instances. Unhealthy +// instances are killed and replaced with new instances. Only applicable for +// instances in App Engine flexible environment. type HealthCheck struct { // CheckInterval: Interval between health checks. CheckInterval string `json:"checkInterval,omitempty"` - - // DisableHealthCheck: Whether to explicitly disable health checks for - // this instance. + // DisableHealthCheck: Whether to explicitly disable health checks for this + // instance. DisableHealthCheck bool `json:"disableHealthCheck,omitempty"` - - // HealthyThreshold: Number of consecutive successful health checks - // required before receiving traffic. + // HealthyThreshold: Number of consecutive successful health checks required + // before receiving traffic. HealthyThreshold int64 `json:"healthyThreshold,omitempty"` - - // Host: Host header to send when performing an HTTP health check. - // Example: "myapp.appspot.com" + // Host: Host header to send when performing an HTTP health check. Example: + // "myapp.appspot.com" Host string `json:"host,omitempty"` - - // RestartThreshold: Number of consecutive failed health checks required - // before an instance is restarted. + // RestartThreshold: Number of consecutive failed health checks required before + // an instance is restarted. RestartThreshold int64 `json:"restartThreshold,omitempty"` - // Timeout: Time before the health check is considered failed. Timeout string `json:"timeout,omitempty"` - - // UnhealthyThreshold: Number of consecutive failed health checks - // required before removing traffic. + // UnhealthyThreshold: Number of consecutive failed health checks required + // before removing traffic. UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` - // ForceSendFields is a list of field names (e.g. "CheckInterval") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CheckInterval") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CheckInterval") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HealthCheck) MarshalJSON() ([]byte, error) { +func (s HealthCheck) MarshalJSON() ([]byte, error) { type NoMethod HealthCheck - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // IdentityAwareProxy: Identity-Aware Proxy type IdentityAwareProxy struct { - // Enabled: Whether the serving infrastructure will authenticate and - // authorize all incoming requests.If true, the oauth2_client_id and - // oauth2_client_secret fields must be non-empty. + // Enabled: Whether the serving infrastructure will authenticate and authorize + // all incoming requests.If true, the oauth2_client_id and oauth2_client_secret + // fields must be non-empty. Enabled bool `json:"enabled,omitempty"` - // Oauth2ClientId: OAuth2 client ID to use for the authentication flow. Oauth2ClientId string `json:"oauth2ClientId,omitempty"` - - // Oauth2ClientSecret: For security reasons, this value cannot be - // retrieved via the API. Instead, the SHA-256 hash of the value is - // returned in the oauth2_client_secret_sha256 field.@InputOnly + // Oauth2ClientSecret: For security reasons, this value cannot be retrieved via + // the API. Instead, the SHA-256 hash of the value is returned in the + // oauth2_client_secret_sha256 field.@InputOnly Oauth2ClientSecret string `json:"oauth2ClientSecret,omitempty"` - // Oauth2ClientSecretSha256: Hex-encoded SHA-256 hash of the client // secret.@OutputOnly Oauth2ClientSecretSha256 string `json:"oauth2ClientSecretSha256,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IdentityAwareProxy) MarshalJSON() ([]byte, error) { +func (s IdentityAwareProxy) MarshalJSON() ([]byte, error) { type NoMethod IdentityAwareProxy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Instance: An Instance resource is the computing unit that App Engine -// uses to automatically scale an application. +// Instance: An Instance resource is the computing unit that App Engine uses to +// automatically scale an application. type Instance struct { - // AppEngineRelease: App Engine release this instance is running - // on.@OutputOnly + // AppEngineRelease: App Engine release this instance is running on.@OutputOnly AppEngineRelease string `json:"appEngineRelease,omitempty"` - // Availability: Availability of the instance.@OutputOnly // // Possible values: @@ -1054,89 +891,61 @@ type Instance struct { // "RESIDENT" // "DYNAMIC" Availability string `json:"availability,omitempty"` - // AverageLatency: Average latency (ms) over the last minute.@OutputOnly AverageLatency int64 `json:"averageLatency,omitempty"` - // Errors: Number of errors since this instance was started.@OutputOnly Errors int64 `json:"errors,omitempty"` - // Id: Relative name of the instance within the version. Example: // instance-1.@OutputOnly Id string `json:"id,omitempty"` - // MemoryUsage: Total memory in use (bytes).@OutputOnly MemoryUsage int64 `json:"memoryUsage,omitempty,string"` - // Name: Full path to the Instance resource in the API. Example: - // apps/myapp/modules/default/versions/v1/instances/instance-1.@OutputOnl - // y + // apps/myapp/modules/default/versions/v1/instances/instance-1.@OutputOnly Name string `json:"name,omitempty"` - - // Qps: Average queries per second (QPS) over the last - // minute.@OutputOnly + // Qps: Average queries per second (QPS) over the last minute.@OutputOnly Qps float64 `json:"qps,omitempty"` - - // Requests: Number of requests since this instance was - // started.@OutputOnly + // Requests: Number of requests since this instance was started.@OutputOnly Requests int64 `json:"requests,omitempty"` - // StartTimestamp: Time that this instance was started.@OutputOnly StartTimestamp string `json:"startTimestamp,omitempty"` - - // VmId: Virtual machine ID of this instance. Only applicable for - // instances in App Engine flexible environment.@OutputOnly + // VmId: Virtual machine ID of this instance. Only applicable for instances in + // App Engine flexible environment.@OutputOnly VmId string `json:"vmId,omitempty"` - - // VmIp: The IP address of this instance. Only applicable for instances - // in App Engine flexible environment.@OutputOnly + // VmIp: The IP address of this instance. Only applicable for instances in App + // Engine flexible environment.@OutputOnly VmIp string `json:"vmIp,omitempty"` - // VmName: Name of the virtual machine where this instance lives. Only - // applicable for instances in App Engine flexible - // environment.@OutputOnly + // applicable for instances in App Engine flexible environment.@OutputOnly VmName string `json:"vmName,omitempty"` - - // VmStatus: Status of the virtual machine where this instance lives. - // Only applicable for instances in App Engine flexible - // environment.@OutputOnly + // VmStatus: Status of the virtual machine where this instance lives. Only + // applicable for instances in App Engine flexible environment.@OutputOnly VmStatus string `json:"vmStatus,omitempty"` - - // VmUnlocked: Whether this instance is in debug mode. Only applicable - // for instances in App Engine flexible environment.@OutputOnly + // VmUnlocked: Whether this instance is in debug mode. Only applicable for + // instances in App Engine flexible environment.@OutputOnly VmUnlocked bool `json:"vmUnlocked,omitempty"` - - // VmZoneName: Zone where the virtual machine is located. Only - // applicable for instances in App Engine flexible - // environment.@OutputOnly + // VmZoneName: Zone where the virtual machine is located. Only applicable for + // instances in App Engine flexible environment.@OutputOnly VmZoneName string `json:"vmZoneName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AppEngineRelease") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AppEngineRelease") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AppEngineRelease") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Instance) MarshalJSON() ([]byte, error) { +func (s Instance) MarshalJSON() ([]byte, error) { type NoMethod Instance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Instance) UnmarshalJSON(data []byte) error { @@ -1158,732 +967,545 @@ func (s *Instance) UnmarshalJSON(data []byte) error { type Library struct { // Name: Name of the library. Example: "django". Name string `json:"name,omitempty"` - // Version: Version of the library to select, or "latest". Version string `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Library) MarshalJSON() ([]byte, error) { +func (s Library) MarshalJSON() ([]byte, error) { type NoMethod Library - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListInstancesResponse: Response message for Instances.ListInstances. type ListInstancesResponse struct { // Instances: The instances belonging to the requested version. Instances []*Instance `json:"instances,omitempty"` - - // NextPageToken: Continuation token for fetching the next page of - // results. + // NextPageToken: Continuation token for fetching the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Instances") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instances") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instances") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListInstancesResponse) MarshalJSON() ([]byte, error) { +func (s ListInstancesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListInstancesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. +// ListLocationsResponse: The response message for Locations.ListLocations. type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. + // Locations: A list of locations that matches the specified filter in the + // request. Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListModulesResponse: Response message for Modules.ListModules. type ListModulesResponse struct { // Modules: The modules belonging to the requested application. Modules []*Module `json:"modules,omitempty"` - - // NextPageToken: Continuation token for fetching the next page of - // results. + // NextPageToken: Continuation token for fetching the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Modules") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Modules") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Modules") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Modules") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListModulesResponse) MarshalJSON() ([]byte, error) { +func (s ListModulesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListModulesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListVersionsResponse: Response message for Versions.ListVersions. type ListVersionsResponse struct { - // NextPageToken: Continuation token for fetching the next page of - // results. + // NextPageToken: Continuation token for fetching the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // Versions: The versions belonging to the requested module. Versions []*Version `json:"versions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListVersionsResponse) MarshalJSON() ([]byte, error) { +func (s ListVersionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListVersionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Location: A resource that represents Google Cloud Platform location. type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For // example // {"cloud.googleapis.com/region": "us-east1"} // Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". + // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between - // implementations. For example: - // "projects/example-project/locations/us-east1" + // implementations. For example: "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LocationMetadata: Metadata for the given -// google.cloud.location.Location. +// LocationMetadata: Metadata for the given google.cloud.location.Location. type LocationMetadata struct { - // FlexibleEnvironmentAvailable: App Engine flexible environment is - // available in the given location.@OutputOnly + // FlexibleEnvironmentAvailable: App Engine flexible environment is available + // in the given location.@OutputOnly FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"` - - // StandardEnvironmentAvailable: App Engine standard environment is - // available in the given location.@OutputOnly + // StandardEnvironmentAvailable: App Engine standard environment is available + // in the given location.@OutputOnly StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "FlexibleEnvironmentAvailable") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "FlexibleEnvironmentAvailable") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "FlexibleEnvironmentAvailable") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "FlexibleEnvironmentAvailable") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LocationMetadata) MarshalJSON() ([]byte, error) { +func (s LocationMetadata) MarshalJSON() ([]byte, error) { type NoMethod LocationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ManualScaling: A module with manual scaling runs continuously, -// allowing you to perform complex initialization and rely on the state -// of its memory over time. +// ManualScaling: A module with manual scaling runs continuously, allowing you +// to perform complex initialization and rely on the state of its memory over +// time. type ManualScaling struct { - // Instances: Number of instances to assign to the module at the start. - // This number can later be altered by using the Modules API + // Instances: Number of instances to assign to the module at the start. This + // number can later be altered by using the Modules API // (https://cloud.google.com/appengine/docs/python/modules/functions) // set_num_instances() function. Instances int64 `json:"instances,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instances") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instances") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instances") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManualScaling) MarshalJSON() ([]byte, error) { +func (s ManualScaling) MarshalJSON() ([]byte, error) { type NoMethod ManualScaling - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Module: A Module resource is a logical component of an application -// that can share state and communicate in a secure fashion with other -// modules. For example, an application that handles customer requests -// might include separate modules to handle tasks such as backend data -// analysis or API requests from mobile devices. Each module has a -// collection of versions that define a specific set of code used to -// implement the functionality of that module. +// Module: A Module resource is a logical component of an application that can +// share state and communicate in a secure fashion with other modules. For +// example, an application that handles customer requests might include +// separate modules to handle tasks such as backend data analysis or API +// requests from mobile devices. Each module has a collection of versions that +// define a specific set of code used to implement the functionality of that +// module. type Module struct { // Id: Relative name of the module within the application. Example: // default.@OutputOnly Id string `json:"id,omitempty"` - // Name: Full path to the Module resource in the API. Example: // apps/myapp/modules/default.@OutputOnly Name string `json:"name,omitempty"` - - // Split: Mapping that defines fractional HTTP traffic diversion to - // different versions within the module. + // Split: Mapping that defines fractional HTTP traffic diversion to different + // versions within the module. Split *TrafficSplit `json:"split,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Module) MarshalJSON() ([]byte, error) { +func (s Module) MarshalJSON() ([]byte, error) { type NoMethod Module - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Network: Extra network settings. Only applicable for VM runtimes. type Network struct { - // ForwardedPorts: List of ports, or port pairs, to forward from the - // virtual machine to the application container. + // ForwardedPorts: List of ports, or port pairs, to forward from the virtual + // machine to the application container. ForwardedPorts []string `json:"forwardedPorts,omitempty"` - // InstanceTag: Tag to apply to the VM instance during creation. InstanceTag string `json:"instanceTag,omitempty"` - - // Name: Google Cloud Platform network where the virtual machines are - // created. Specify the short name, not the resource path.Defaults to - // default. + // Name: Google Cloud Platform network where the virtual machines are created. + // Specify the short name, not the resource path.Defaults to default. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "ForwardedPorts") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ForwardedPorts") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ForwardedPorts") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Network) MarshalJSON() ([]byte, error) { +func (s Network) MarshalJSON() ([]byte, error) { type NoMethod Network - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NetworkUtilization: Target scaling by network usage. Only applicable -// for VM runtimes. +// NetworkUtilization: Target scaling by network usage. Only applicable for VM +// runtimes. type NetworkUtilization struct { // TargetReceivedBytesPerSec: Target bytes received per second. TargetReceivedBytesPerSec int64 `json:"targetReceivedBytesPerSec,omitempty"` - // TargetReceivedPacketsPerSec: Target packets received per second. TargetReceivedPacketsPerSec int64 `json:"targetReceivedPacketsPerSec,omitempty"` - // TargetSentBytesPerSec: Target bytes sent per second. TargetSentBytesPerSec int64 `json:"targetSentBytesPerSec,omitempty"` - // TargetSentPacketsPerSec: Target packets sent per second. TargetSentPacketsPerSec int64 `json:"targetSentPacketsPerSec,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "TargetReceivedBytesPerSec") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetReceivedBytesPerSec") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "TargetReceivedBytesPerSec") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "TargetReceivedBytesPerSec") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NetworkUtilization) MarshalJSON() ([]byte, error) { +func (s NetworkUtilization) MarshalJSON() ([]byte, error) { type NoMethod NetworkUtilization - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is false, it means the operation is still in - // progress. If true, the operation is completed, and either error or - // response is available. + // Done: If the value is false, it means the operation is still in progress. If + // true, the operation is completed, and either error or response is available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the name should have the format of - // operations/some/unique/name. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the name + // should have the format of operations/some/unique/name. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as Delete, the - // response is google.protobuf.Empty. If the original method is standard - // Get/Create/Update, the response should be the resource. For other - // methods, the response should have the type XxxResponse, where Xxx is - // the original method name. For example, if the original method name is - // TakeSnapshot(), the inferred response type is TakeSnapshotResponse. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as Delete, the response is + // google.protobuf.Empty. If the original method is standard Get/Create/Update, + // the response should be the resource. For other methods, the response should + // have the type XxxResponse, where Xxx is the original method name. For + // example, if the original method name is TakeSnapshot(), the inferred + // response type is TakeSnapshotResponse. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadata: Metadata for the given -// google.longrunning.Operation. +// OperationMetadata: Metadata for the given google.longrunning.Operation. type OperationMetadata struct { // EndTime: Timestamp that this operation completed.@OutputOnly EndTime string `json:"endTime,omitempty"` - // InsertTime: Timestamp that this operation was created.@OutputOnly InsertTime string `json:"insertTime,omitempty"` - // Method: API method that initiated this operation. Example: // google.appengine.v1beta4.Version.CreateVersion.@OutputOnly Method string `json:"method,omitempty"` - - // OperationType: Type of this operation. Deprecated, use method field - // instead. Example: "create_version".@OutputOnly + // OperationType: Type of this operation. Deprecated, use method field instead. + // Example: "create_version".@OutputOnly OperationType string `json:"operationType,omitempty"` - - // Target: Name of the resource that this operation is acting on. - // Example: apps/myapp/modules/default.@OutputOnly + // Target: Name of the resource that this operation is acting on. Example: + // apps/myapp/modules/default.@OutputOnly Target string `json:"target,omitempty"` - // User: User who requested this operation.@OutputOnly User string `json:"user,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { +func (s OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadataV1: Metadata for the given -// google.longrunning.Operation. +// OperationMetadataV1: Metadata for the given google.longrunning.Operation. type OperationMetadataV1 struct { CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"` - // EndTime: Time that this operation completed.@OutputOnly EndTime string `json:"endTime,omitempty"` - - // EphemeralMessage: Ephemeral message that may change every time the - // operation is polled. @OutputOnly + // EphemeralMessage: Ephemeral message that may change every time the operation + // is polled. @OutputOnly EphemeralMessage string `json:"ephemeralMessage,omitempty"` - // InsertTime: Time that this operation was created.@OutputOnly InsertTime string `json:"insertTime,omitempty"` - // Method: API method that initiated this operation. Example: // google.appengine.v1.Versions.CreateVersion.@OutputOnly Method string `json:"method,omitempty"` - - // Target: Name of the resource that this operation is acting on. - // Example: apps/myapp/services/default.@OutputOnly + // Target: Name of the resource that this operation is acting on. Example: + // apps/myapp/services/default.@OutputOnly Target string `json:"target,omitempty"` - // User: User who requested this operation.@OutputOnly User string `json:"user,omitempty"` - - // Warning: Durable messages that persist on every operation poll. - // @OutputOnly + // Warning: Durable messages that persist on every operation poll. @OutputOnly Warning []string `json:"warning,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CreateVersionMetadata") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CreateVersionMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateVersionMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) { +func (s OperationMetadataV1) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadataV1 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadataV1Alpha: Metadata for the given // google.longrunning.Operation. type OperationMetadataV1Alpha struct { CreateVersionMetadata *CreateVersionMetadataV1Alpha `json:"createVersionMetadata,omitempty"` - // EndTime: Time that this operation completed.@OutputOnly EndTime string `json:"endTime,omitempty"` - - // EphemeralMessage: Ephemeral message that may change every time the - // operation is polled. @OutputOnly + // EphemeralMessage: Ephemeral message that may change every time the operation + // is polled. @OutputOnly EphemeralMessage string `json:"ephemeralMessage,omitempty"` - // InsertTime: Time that this operation was created.@OutputOnly InsertTime string `json:"insertTime,omitempty"` - // Method: API method that initiated this operation. Example: // google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly Method string `json:"method,omitempty"` - - // Target: Name of the resource that this operation is acting on. - // Example: apps/myapp/services/default.@OutputOnly + // Target: Name of the resource that this operation is acting on. Example: + // apps/myapp/services/default.@OutputOnly Target string `json:"target,omitempty"` - // User: User who requested this operation.@OutputOnly User string `json:"user,omitempty"` - - // Warning: Durable messages that persist on every operation poll. - // @OutputOnly + // Warning: Durable messages that persist on every operation poll. @OutputOnly Warning []string `json:"warning,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CreateVersionMetadata") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CreateVersionMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateVersionMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) { +func (s OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadataV1Alpha - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadataV1Beta: Metadata for the given // google.longrunning.Operation. type OperationMetadataV1Beta struct { CreateVersionMetadata *CreateVersionMetadataV1Beta `json:"createVersionMetadata,omitempty"` - // EndTime: Time that this operation completed.@OutputOnly EndTime string `json:"endTime,omitempty"` - - // EphemeralMessage: Ephemeral message that may change every time the - // operation is polled. @OutputOnly + // EphemeralMessage: Ephemeral message that may change every time the operation + // is polled. @OutputOnly EphemeralMessage string `json:"ephemeralMessage,omitempty"` - // InsertTime: Time that this operation was created.@OutputOnly InsertTime string `json:"insertTime,omitempty"` - // Method: API method that initiated this operation. Example: // google.appengine.v1beta.Versions.CreateVersion.@OutputOnly Method string `json:"method,omitempty"` - - // Target: Name of the resource that this operation is acting on. - // Example: apps/myapp/services/default.@OutputOnly + // Target: Name of the resource that this operation is acting on. Example: + // apps/myapp/services/default.@OutputOnly Target string `json:"target,omitempty"` - // User: User who requested this operation.@OutputOnly User string `json:"user,omitempty"` - - // Warning: Durable messages that persist on every operation poll. - // @OutputOnly + // Warning: Durable messages that persist on every operation poll. @OutputOnly Warning []string `json:"warning,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CreateVersionMetadata") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CreateVersionMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateVersionMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadataV1Beta) MarshalJSON() ([]byte, error) { +func (s OperationMetadataV1Beta) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadataV1Beta - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadataV1Beta5: Metadata for the given @@ -1891,113 +1513,85 @@ func (s *OperationMetadataV1Beta) MarshalJSON() ([]byte, error) { type OperationMetadataV1Beta5 struct { // EndTime: Timestamp that this operation completed.@OutputOnly EndTime string `json:"endTime,omitempty"` - // InsertTime: Timestamp that this operation was created.@OutputOnly InsertTime string `json:"insertTime,omitempty"` - // Method: API method name that initiated this operation. Example: // google.appengine.v1beta5.Version.CreateVersion.@OutputOnly Method string `json:"method,omitempty"` - - // Target: Name of the resource that this operation is acting on. - // Example: apps/myapp/services/default.@OutputOnly + // Target: Name of the resource that this operation is acting on. Example: + // apps/myapp/services/default.@OutputOnly Target string `json:"target,omitempty"` - // User: User who requested this operation.@OutputOnly User string `json:"user,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadataV1Beta5) MarshalJSON() ([]byte, error) { +func (s OperationMetadataV1Beta5) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadataV1Beta5 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RequestUtilization: Target scaling by request utilization. Only -// applicable for VM runtimes. +// RequestUtilization: Target scaling by request utilization. Only applicable +// for VM runtimes. type RequestUtilization struct { // TargetConcurrentRequests: Target number of concurrent requests. TargetConcurrentRequests int64 `json:"targetConcurrentRequests,omitempty"` - // TargetRequestCountPerSec: Target requests per second. TargetRequestCountPerSec int64 `json:"targetRequestCountPerSec,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "TargetConcurrentRequests") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetConcurrentRequests") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TargetConcurrentRequests") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TargetConcurrentRequests") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RequestUtilization) MarshalJSON() ([]byte, error) { +func (s RequestUtilization) MarshalJSON() ([]byte, error) { type NoMethod RequestUtilization - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Resources: Machine resources for a version. type Resources struct { // Cpu: Number of CPU cores needed. Cpu float64 `json:"cpu,omitempty"` - // DiskGb: Disk size (GB) needed. DiskGb float64 `json:"diskGb,omitempty"` - // MemoryGb: Memory (GB) needed. MemoryGb float64 `json:"memoryGb,omitempty"` - // Volumes: User specified volumes. Volumes []*Volume `json:"volumes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cpu") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cpu") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cpu") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Resources) MarshalJSON() ([]byte, error) { +func (s Resources) MarshalJSON() ([]byte, error) { type NoMethod Resources - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Resources) UnmarshalJSON(data []byte) error { @@ -2018,688 +1612,549 @@ func (s *Resources) UnmarshalJSON(data []byte) error { return nil } -// ScriptHandler: Executes a script to handle the request that matches -// the URL pattern. +// ScriptHandler: Executes a script to handle the request that matches the URL +// pattern. type ScriptHandler struct { // ScriptPath: Path to the script from the application root directory. ScriptPath string `json:"scriptPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "ScriptPath") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ScriptPath") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ScriptPath") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ScriptHandler) MarshalJSON() ([]byte, error) { +func (s ScriptHandler) MarshalJSON() ([]byte, error) { type NoMethod ScriptHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SourceReference: Reference to a particular snapshot of the source -// tree used to build and deploy the application. +// SourceReference: Reference to a particular snapshot of the source tree used +// to build and deploy the application. type SourceReference struct { // Repository: URI string identifying the repository. Example: // "https://source.developers.google.com/p/app-123/r/default" Repository string `json:"repository,omitempty"` - - // RevisionId: The canonical, persistent identifier of the deployed - // revision. Aliases that include tags or branch names are not allowed. - // Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b" + // RevisionId: The canonical, persistent identifier of the deployed revision. + // Aliases that include tags or branch names are not allowed. Example (git): + // "2198322f89e0bb2e25021667c2ed489d1fd34e6b" RevisionId string `json:"revisionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Repository") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Repository") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Repository") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceReference) MarshalJSON() ([]byte, error) { +func (s SourceReference) MarshalJSON() ([]byte, error) { type NoMethod SourceReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StaticDirectoryHandler: Files served directly to the user for a given -// URL, such as images, CSS stylesheets, or JavaScript source files. -// Static directory handlers make it easy to serve the entire contents -// of a directory as static files. +// StaticDirectoryHandler: Files served directly to the user for a given URL, +// such as images, CSS stylesheets, or JavaScript source files. Static +// directory handlers make it easy to serve the entire contents of a directory +// as static files. type StaticDirectoryHandler struct { - // ApplicationReadable: Whether files should also be uploaded as code - // data. By default, files declared in static directory handlers are - // uploaded as static data and are only served to end users; they cannot - // be read by the application. If enabled, uploads are charged against - // both your code and static data storage resource quotas. + // ApplicationReadable: Whether files should also be uploaded as code data. By + // default, files declared in static directory handlers are uploaded as static + // data and are only served to end users; they cannot be read by the + // application. If enabled, uploads are charged against both your code and + // static data storage resource quotas. ApplicationReadable bool `json:"applicationReadable,omitempty"` - // Directory: Path to the directory containing the static files from the - // application root directory. Everything after the end of the matched - // URL pattern is appended to static_dir to form the full path to the - // requested file. + // application root directory. Everything after the end of the matched URL + // pattern is appended to static_dir to form the full path to the requested + // file. Directory string `json:"directory,omitempty"` - - // Expiration: Time a static file served by this handler should be - // cached. + // Expiration: Time a static file served by this handler should be cached. Expiration string `json:"expiration,omitempty"` - // HttpHeaders: HTTP headers to use for all responses from these URLs. HttpHeaders map[string]string `json:"httpHeaders,omitempty"` - - // MimeType: MIME type used to serve all files served by this handler. - // Defaults to file-specific MIME types, which are direved from each - // file's filename extension. + // MimeType: MIME type used to serve all files served by this handler. Defaults + // to file-specific MIME types, which are direved from each file's filename + // extension. MimeType string `json:"mimeType,omitempty"` - - // RequireMatchingFile: Whether this handler should match the request if - // the file referenced by the handler does not exist. + // RequireMatchingFile: Whether this handler should match the request if the + // file referenced by the handler does not exist. RequireMatchingFile bool `json:"requireMatchingFile,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApplicationReadable") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApplicationReadable") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApplicationReadable") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApplicationReadable") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StaticDirectoryHandler) MarshalJSON() ([]byte, error) { +func (s StaticDirectoryHandler) MarshalJSON() ([]byte, error) { type NoMethod StaticDirectoryHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StaticFilesHandler: Files served directly to the user for a given -// URL, such as images, CSS stylesheets, or JavaScript source files. -// Static file handlers describe which files in the application -// directory are static files, and which URLs serve them. +// StaticFilesHandler: Files served directly to the user for a given URL, such +// as images, CSS stylesheets, or JavaScript source files. Static file handlers +// describe which files in the application directory are static files, and +// which URLs serve them. type StaticFilesHandler struct { - // ApplicationReadable: Whether files should also be uploaded as code - // data. By default, files declared in static file handlers are uploaded - // as static data and are only served to end users; they cannot be read - // by the application. If enabled, uploads are charged against both your - // code and static data storage resource quotas. + // ApplicationReadable: Whether files should also be uploaded as code data. By + // default, files declared in static file handlers are uploaded as static data + // and are only served to end users; they cannot be read by the application. If + // enabled, uploads are charged against both your code and static data storage + // resource quotas. ApplicationReadable bool `json:"applicationReadable,omitempty"` - - // Expiration: Time a static file served by this handler should be - // cached. + // Expiration: Time a static file served by this handler should be cached. Expiration string `json:"expiration,omitempty"` - // HttpHeaders: HTTP headers to use for all responses from these URLs. HttpHeaders map[string]string `json:"httpHeaders,omitempty"` - - // MimeType: MIME type used to serve all files served by this handler. - // Defaults to file-specific MIME types, which are derived from each - // file's filename extension. + // MimeType: MIME type used to serve all files served by this handler. Defaults + // to file-specific MIME types, which are derived from each file's filename + // extension. MimeType string `json:"mimeType,omitempty"` - // Path: Path to the static files matched by the URL pattern, from the - // application root directory. The path can refer to text matched in - // groupings in the URL pattern. + // application root directory. The path can refer to text matched in groupings + // in the URL pattern. Path string `json:"path,omitempty"` - - // RequireMatchingFile: Whether this handler should match the request if - // the file referenced by the handler does not exist. + // RequireMatchingFile: Whether this handler should match the request if the + // file referenced by the handler does not exist. RequireMatchingFile bool `json:"requireMatchingFile,omitempty"` - - // UploadPathRegex: Regular expression that matches the file paths for - // all files that should be referenced by this handler. + // UploadPathRegex: Regular expression that matches the file paths for all + // files that should be referenced by this handler. UploadPathRegex string `json:"uploadPathRegex,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApplicationReadable") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApplicationReadable") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApplicationReadable") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApplicationReadable") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StaticFilesHandler) MarshalJSON() ([]byte, error) { +func (s StaticFilesHandler) MarshalJSON() ([]byte, error) { type NoMethod StaticFilesHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The Status type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). The error -// model is designed to be: +// Status: The Status type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). The error model is designed to +// be: // Simple to use and understand for most users -// Flexible enough to meet unexpected needsOverviewThe Status message -// contains three pieces of data: error code, error message, and error -// details. The error code should be an enum value of google.rpc.Code, -// but it may accept additional error codes if needed. The error message -// should be a developer-facing English message that helps developers -// understand and resolve the error. If a localized user-facing error -// message is needed, put the localized message in the error details or -// localize it in the client. The optional error details may contain -// arbitrary information about the error. There is a predefined set of -// error detail types in the package google.rpc that can be used for -// common error conditions.Language mappingThe Status message is the -// logical representation of the error model, but it is not necessarily -// the actual wire format. When the Status message is exposed in -// different client libraries and different wire protocols, it can be -// mapped differently. For example, it will likely be mapped to some -// exceptions in Java, but more likely mapped to some error codes in -// C.Other usesThe error model and the Status message can be used in a -// variety of environments, either with or without APIs, to provide a -// consistent developer experience across different environments.Example -// uses of this error model include: -// Partial errors. If a service needs to return partial errors to the -// client, it may embed the Status in the normal response to indicate -// the partial errors. -// Workflow errors. A typical workflow has multiple steps. Each step may -// have a Status message for error reporting. -// Batch operations. If a client uses batch request and batch response, -// the Status message should be used directly inside batch response, one -// for each error sub-response. +// Flexible enough to meet unexpected needsOverviewThe Status message contains +// three pieces of data: error code, error message, and error details. The +// error code should be an enum value of google.rpc.Code, but it may accept +// additional error codes if needed. The error message should be a +// developer-facing English message that helps developers understand and +// resolve the error. If a localized user-facing error message is needed, put +// the localized message in the error details or localize it in the client. The +// optional error details may contain arbitrary information about the error. +// There is a predefined set of error detail types in the package google.rpc +// that can be used for common error conditions.Language mappingThe Status +// message is the logical representation of the error model, but it is not +// necessarily the actual wire format. When the Status message is exposed in +// different client libraries and different wire protocols, it can be mapped +// differently. For example, it will likely be mapped to some exceptions in +// Java, but more likely mapped to some error codes in C.Other usesThe error +// model and the Status message can be used in a variety of environments, +// either with or without APIs, to provide a consistent developer experience +// across different environments.Example uses of this error model +// include: +// Partial errors. If a service needs to return partial errors to the client, +// it may embed the Status in the normal response to indicate the partial +// errors. +// Workflow errors. A typical workflow has multiple steps. Each step may have a +// Status message for error reporting. +// Batch operations. If a client uses batch request and batch response, the +// Status message should be used directly inside batch response, one for each +// error sub-response. // Asynchronous operations. If an API call embeds asynchronous operation // results in its response, the status of those operations should be // represented directly using the Status message. -// Logging. If some API errors are stored in logs, the message Status -// could be used directly after any stripping needed for -// security/privacy reasons. +// Logging. If some API errors are stored in logs, the message Status could be +// used directly after any stripping needed for security/privacy reasons. type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TrafficSplit: Traffic routing configuration for versions within a -// single module. Traffic splits define how traffic directed to the -// module is assigned to versions. +// TrafficSplit: Traffic routing configuration for versions within a single +// module. Traffic splits define how traffic directed to the module is assigned +// to versions. type TrafficSplit struct { // Allocations: Mapping from version IDs within the module to fractional - // (0.000, 1] allocations of traffic for that version. Each version can - // be specified only once, but some versions in the module may not have - // any traffic allocation. Modules that have traffic allocated cannot be - // deleted until either the module is deleted or their traffic - // allocation is removed. Allocations must sum to 1. Up to two decimal - // place precision is supported for IP-based splits and up to three - // decimal places is supported for cookie-based splits. + // (0.000, 1] allocations of traffic for that version. Each version can be + // specified only once, but some versions in the module may not have any + // traffic allocation. Modules that have traffic allocated cannot be deleted + // until either the module is deleted or their traffic allocation is removed. + // Allocations must sum to 1. Up to two decimal place precision is supported + // for IP-based splits and up to three decimal places is supported for + // cookie-based splits. Allocations map[string]float64 `json:"allocations,omitempty"` - - // ShardBy: Mechanism used to determine which version a request is sent - // to. The traffic selection algorithm will be stable for either type - // until allocations are changed. + // ShardBy: Mechanism used to determine which version a request is sent to. The + // traffic selection algorithm will be stable for either type until allocations + // are changed. // // Possible values: // "UNSPECIFIED" - Diversion method unspecified. - // "COOKIE" - Diversion based on a specially named cookie, - // "GOOGAPPUID." The cookie must be set by the application itself or - // else no diversion will occur. - // "IP" - Diversion based on applying the modulus operation to a - // fingerprint of the IP address. + // "COOKIE" - Diversion based on a specially named cookie, "GOOGAPPUID." The + // cookie must be set by the application itself or else no diversion will + // occur. + // "IP" - Diversion based on applying the modulus operation to a fingerprint + // of the IP address. ShardBy string `json:"shardBy,omitempty"` - // ForceSendFields is a list of field names (e.g. "Allocations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Allocations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Allocations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TrafficSplit) MarshalJSON() ([]byte, error) { +func (s TrafficSplit) MarshalJSON() ([]byte, error) { type NoMethod TrafficSplit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UrlDispatchRule: Rules to match an HTTP request and dispatch that -// request to a module. +// UrlDispatchRule: Rules to match an HTTP request and dispatch that request to +// a module. type UrlDispatchRule struct { - // Domain: Domain name to match against. The wildcard "*" is supported - // if specified before a period: "*.".Defaults to matching all domains: - // "*". + // Domain: Domain name to match against. The wildcard "*" is supported if + // specified before a period: "*.".Defaults to matching all domains: "*". Domain string `json:"domain,omitempty"` - - // Module: Resource ID of a module in this application that should serve - // the matched request. The module must already exist. Example: default. + // Module: Resource ID of a module in this application that should serve the + // matched request. The module must already exist. Example: default. Module string `json:"module,omitempty"` - - // Path: Pathname within the host. Must start with a "/". A single "*" - // can be included at the end of the path. The sum of the lengths of the - // domain and path may not exceed 100 characters. + // Path: Pathname within the host. Must start with a "/". A single "*" can be + // included at the end of the path. The sum of the lengths of the domain and + // path may not exceed 100 characters. Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Domain") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Domain") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Domain") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlDispatchRule) MarshalJSON() ([]byte, error) { +func (s UrlDispatchRule) MarshalJSON() ([]byte, error) { type NoMethod UrlDispatchRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UrlMap: URL pattern and description of how the URL should be handled. -// App Engine can handle URLs by executing application code, or by -// serving static files uploaded with the version, such as images, CSS, -// or JavaScript. +// UrlMap: URL pattern and description of how the URL should be handled. App +// Engine can handle URLs by executing application code, or by serving static +// files uploaded with the version, such as images, CSS, or JavaScript. type UrlMap struct { // ApiEndpoint: Uses API Endpoints to handle requests. ApiEndpoint *ApiEndpointHandler `json:"apiEndpoint,omitempty"` - - // AuthFailAction: Action to take when users access resources that - // require authentication. Defaults to redirect. + // AuthFailAction: Action to take when users access resources that require + // authentication. Defaults to redirect. // // Possible values: - // "AUTH_FAIL_ACTION_UNSPECIFIED" - Not specified. - // AUTH_FAIL_ACTION_REDIRECT is assumed. - // "AUTH_FAIL_ACTION_REDIRECT" - Redirects user to - // "accounts.google.com". The user is redirected back to the application - // URL after signing in or creating an account. - // "AUTH_FAIL_ACTION_UNAUTHORIZED" - Rejects request with a 401 HTTP - // status code and an error message. + // "AUTH_FAIL_ACTION_UNSPECIFIED" - Not specified. AUTH_FAIL_ACTION_REDIRECT + // is assumed. + // "AUTH_FAIL_ACTION_REDIRECT" - Redirects user to "accounts.google.com". The + // user is redirected back to the application URL after signing in or creating + // an account. + // "AUTH_FAIL_ACTION_UNAUTHORIZED" - Rejects request with a 401 HTTP status + // code and an error message. AuthFailAction string `json:"authFailAction,omitempty"` - // Login: Level of login required to access this resource. // // Possible values: // "LOGIN_UNSPECIFIED" - Not specified. LOGIN_OPTIONAL is assumed. // "LOGIN_OPTIONAL" - Does not require that the user is signed in. - // "LOGIN_ADMIN" - If the user is not signed in, the auth_fail_action - // is taken. In addition, if the user is not an administrator for the - // application, they are given an error message regardless of - // auth_fail_action. If the user is an administrator, the handler - // proceeds. + // "LOGIN_ADMIN" - If the user is not signed in, the auth_fail_action is + // taken. In addition, if the user is not an administrator for the application, + // they are given an error message regardless of auth_fail_action. If the user + // is an administrator, the handler proceeds. // "LOGIN_REQUIRED" - If the user has signed in, the handler proceeds // normally. Otherwise, the auth_fail_action is taken. Login string `json:"login,omitempty"` - - // RedirectHttpResponseCode: 30x code to use when performing redirects - // for the secure field. Defaults to 302. + // RedirectHttpResponseCode: 30x code to use when performing redirects for the + // secure field. Defaults to 302. // // Possible values: - // "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" - Not specified. 302 is - // assumed. + // "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" - Not specified. 302 is assumed. // "REDIRECT_HTTP_RESPONSE_CODE_301" - 301 Moved Permanently code. // "REDIRECT_HTTP_RESPONSE_CODE_302" - 302 Moved Temporarily code. // "REDIRECT_HTTP_RESPONSE_CODE_303" - 303 See Other code. // "REDIRECT_HTTP_RESPONSE_CODE_307" - 307 Temporary Redirect code. RedirectHttpResponseCode string `json:"redirectHttpResponseCode,omitempty"` - // Script: Executes a script to handle the request that matches this URL // pattern. Script *ScriptHandler `json:"script,omitempty"` - // SecurityLevel: Security (HTTPS) enforcement for this URL. // // Possible values: // "SECURE_UNSPECIFIED" - Not specified. - // "SECURE_DEFAULT" - Both HTTP and HTTPS requests with URLs that - // match the handler succeed without redirects. The application can - // examine the request to determine which protocol was used, and respond - // accordingly. - // "SECURE_NEVER" - Requests for a URL that match this handler that - // use HTTPS are automatically redirected to the HTTP equivalent URL. - // "SECURE_OPTIONAL" - Both HTTP and HTTPS requests with URLs that - // match the handler succeed without redirects. The application can - // examine the request to determine which protocol was used and respond - // accordingly. - // "SECURE_ALWAYS" - Requests for a URL that match this handler that - // do not use HTTPS are automatically redirected to the HTTPS URL with - // the same path. Query parameters are reserved for the redirect. + // "SECURE_DEFAULT" - Both HTTP and HTTPS requests with URLs that match the + // handler succeed without redirects. The application can examine the request + // to determine which protocol was used, and respond accordingly. + // "SECURE_NEVER" - Requests for a URL that match this handler that use HTTPS + // are automatically redirected to the HTTP equivalent URL. + // "SECURE_OPTIONAL" - Both HTTP and HTTPS requests with URLs that match the + // handler succeed without redirects. The application can examine the request + // to determine which protocol was used and respond accordingly. + // "SECURE_ALWAYS" - Requests for a URL that match this handler that do not + // use HTTPS are automatically redirected to the HTTPS URL with the same path. + // Query parameters are reserved for the redirect. SecurityLevel string `json:"securityLevel,omitempty"` - // StaticDirectory: Serves the entire contents of a directory as static - // files.This attribute is deprecated. You can mimic the behavior of - // static directories using static files. + // files.This attribute is deprecated. You can mimic the behavior of static + // directories using static files. StaticDirectory *StaticDirectoryHandler `json:"staticDirectory,omitempty"` - // StaticFiles: Returns the contents of a file, such as an image, as the // response. StaticFiles *StaticFilesHandler `json:"staticFiles,omitempty"` - - // UrlRegex: A URL prefix. Uses regular expression syntax, which means - // regexp special characters must be escaped, but should not contain - // groupings. All URLs that begin with this prefix are handled by this - // handler, using the portion of the URL after the prefix as part of the - // file path. + // UrlRegex: A URL prefix. Uses regular expression syntax, which means regexp + // special characters must be escaped, but should not contain groupings. All + // URLs that begin with this prefix are handled by this handler, using the + // portion of the URL after the prefix as part of the file path. UrlRegex string `json:"urlRegex,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiEndpoint") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiEndpoint") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiEndpoint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlMap) MarshalJSON() ([]byte, error) { +func (s UrlMap) MarshalJSON() ([]byte, error) { type NoMethod UrlMap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Version: A Version resource is a specific set of source code and // configuration files that are deployed into a module. type Version struct { // ApiConfig: Serving configuration for Google Cloud Endpoints - // (https://cloud.google.com/appengine/docs/python/endpoints/).Only - // returned in GET requests if view=FULL is set. + // (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in + // GET requests if view=FULL is set. ApiConfig *ApiConfigHandler `json:"apiConfig,omitempty"` - - // AutomaticScaling: Automatic scaling is based on request rate, - // response latencies, and other application metrics. + // AutomaticScaling: Automatic scaling is based on request rate, response + // latencies, and other application metrics. AutomaticScaling *AutomaticScaling `json:"automaticScaling,omitempty"` - - // BasicScaling: A module with basic scaling will create an instance - // when the application receives a request. The instance will be turned - // down when the app becomes idle. Basic scaling is ideal for work that - // is intermittent or driven by user activity. + // BasicScaling: A module with basic scaling will create an instance when the + // application receives a request. The instance will be turned down when the + // app becomes idle. Basic scaling is ideal for work that is intermittent or + // driven by user activity. BasicScaling *BasicScaling `json:"basicScaling,omitempty"` - - // BetaSettings: Metadata settings that are supplied to this version to - // enable beta runtime features. + // BetaSettings: Metadata settings that are supplied to this version to enable + // beta runtime features. BetaSettings map[string]string `json:"betaSettings,omitempty"` - // CreationTime: Time that this version was created.@OutputOnly CreationTime string `json:"creationTime,omitempty"` - // DefaultExpiration: Duration that static files should be cached by web // proxies and browsers. Only applicable if the corresponding // StaticFilesHandler // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#staticfileshandler) - // does not specify its own expiration time.Only returned in GET - // requests if view=FULL is set. + // does not specify its own expiration time.Only returned in GET requests if + // view=FULL is set. DefaultExpiration string `json:"defaultExpiration,omitempty"` - - // Deployer: Email address of the user who created this - // version.@OutputOnly + // Deployer: Email address of the user who created this version.@OutputOnly Deployer string `json:"deployer,omitempty"` - - // Deployment: Code and application artifacts that make up this - // version.Only returned in GET requests if view=FULL is set. + // Deployment: Code and application artifacts that make up this version.Only + // returned in GET requests if view=FULL is set. Deployment *Deployment `json:"deployment,omitempty"` - - // EndpointsApiService: Cloud Endpoints configuration.If - // endpoints_api_service is set, the Cloud Endpoints Extensible Service - // Proxy will be provided to serve the API implemented by the app. + // EndpointsApiService: Cloud Endpoints configuration.If endpoints_api_service + // is set, the Cloud Endpoints Extensible Service Proxy will be provided to + // serve the API implemented by the app. EndpointsApiService *EndpointsApiService `json:"endpointsApiService,omitempty"` - - // Env: App Engine execution environment to use for this - // version.Defaults to 1. + // Env: App Engine execution environment to use for this version.Defaults to 1. Env string `json:"env,omitempty"` - - // EnvVariables: Environment variables made available to the - // application.Only returned in GET requests if view=FULL is set. + // EnvVariables: Environment variables made available to the application.Only + // returned in GET requests if view=FULL is set. EnvVariables map[string]string `json:"envVariables,omitempty"` - - // ErrorHandlers: Custom static error pages. Limited to 10KB per - // page.Only returned in GET requests if view=FULL is set. + // ErrorHandlers: Custom static error pages. Limited to 10KB per page.Only + // returned in GET requests if view=FULL is set. ErrorHandlers []*ErrorHandler `json:"errorHandlers,omitempty"` - - // Handlers: An ordered list of URL-matching patterns that should be - // applied to incoming requests. The first matching URL handles the - // request and other request handlers are not attempted.Only returned in - // GET requests if view=FULL is set. + // Handlers: An ordered list of URL-matching patterns that should be applied to + // incoming requests. The first matching URL handles the request and other + // request handlers are not attempted.Only returned in GET requests if + // view=FULL is set. Handlers []*UrlMap `json:"handlers,omitempty"` - // HealthCheck: Configures health checking for VM instances. Unhealthy - // instances are stopped and replaced with new instances. Only - // applicable for VM runtimes.Only returned in GET requests if view=FULL - // is set. + // instances are stopped and replaced with new instances. Only applicable for + // VM runtimes.Only returned in GET requests if view=FULL is set. HealthCheck *HealthCheck `json:"healthCheck,omitempty"` - - // Id: Relative name of the version within the module. Example: v1. - // Version names can contain only lowercase letters, numbers, or - // hyphens. Reserved names: "default", "latest", and any name with the - // prefix "ah-". + // Id: Relative name of the version within the module. Example: v1. Version + // names can contain only lowercase letters, numbers, or hyphens. Reserved + // names: "default", "latest", and any name with the prefix "ah-". Id string `json:"id,omitempty"` - - // InboundServices: Before an application can receive email or XMPP - // messages, the application must be configured to enable the service. + // InboundServices: Before an application can receive email or XMPP messages, + // the application must be configured to enable the service. // // Possible values: // "INBOUND_SERVICE_UNSPECIFIED" - Not specified. // "INBOUND_SERVICE_MAIL" - Allows an application to receive mail. // "INBOUND_SERVICE_MAIL_BOUNCE" - Allows an application to receive // email-bound notifications. - // "INBOUND_SERVICE_XMPP_ERROR" - Allows an application to receive - // error stanzas. - // "INBOUND_SERVICE_XMPP_MESSAGE" - Allows an application to receive - // instant messages. - // "INBOUND_SERVICE_XMPP_SUBSCRIBE" - Allows an application to receive - // user subscription POSTs. - // "INBOUND_SERVICE_XMPP_PRESENCE" - Allows an application to receive - // a user's chat presence. + // "INBOUND_SERVICE_XMPP_ERROR" - Allows an application to receive error + // stanzas. + // "INBOUND_SERVICE_XMPP_MESSAGE" - Allows an application to receive instant + // messages. + // "INBOUND_SERVICE_XMPP_SUBSCRIBE" - Allows an application to receive user + // subscription POSTs. + // "INBOUND_SERVICE_XMPP_PRESENCE" - Allows an application to receive a + // user's chat presence. // "INBOUND_SERVICE_CHANNEL_PRESENCE" - Registers an application for // notifications when a client connects or disconnects from a channel. // "INBOUND_SERVICE_WARMUP" - Enables warmup requests. InboundServices []string `json:"inboundServices,omitempty"` - - // InstanceClass: Instance class that is used to run this version. Valid - // values are: + // InstanceClass: Instance class that is used to run this version. Valid values + // are: // AutomaticScaling: F1, F2, F4, F4_1G - // ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 - // for AutomaticScaling and B1 for ManualScaling or BasicScaling. + // ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for + // AutomaticScaling and B1 for ManualScaling or BasicScaling. InstanceClass string `json:"instanceClass,omitempty"` - - // Libraries: Configuration for third-party Python runtime libraries - // required by the application.Only returned in GET requests if - // view=FULL is set. + // Libraries: Configuration for third-party Python runtime libraries required + // by the application.Only returned in GET requests if view=FULL is set. Libraries []*Library `json:"libraries,omitempty"` - - // ManualScaling: A module with manual scaling runs continuously, - // allowing you to perform complex initialization and rely on the state - // of its memory over time. + // ManualScaling: A module with manual scaling runs continuously, allowing you + // to perform complex initialization and rely on the state of its memory over + // time. ManualScaling *ManualScaling `json:"manualScaling,omitempty"` - // Name: Full path to the Version resource in the API. Example: // apps/myapp/modules/default/versions/v1.@OutputOnly Name string `json:"name,omitempty"` - // Network: Extra network settings. Only applicable for VM runtimes. Network *Network `json:"network,omitempty"` - - // NobuildFilesRegex: Files that match this pattern will not be built - // into this version. Only applicable for Go runtimes.Only returned in - // GET requests if view=FULL is set. + // NobuildFilesRegex: Files that match this pattern will not be built into this + // version. Only applicable for Go runtimes.Only returned in GET requests if + // view=FULL is set. NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"` - // Resources: Machine resources for this version. Only applicable for VM // runtimes. Resources *Resources `json:"resources,omitempty"` - // Runtime: Desired runtime. Example: python27. Runtime string `json:"runtime,omitempty"` - - // RuntimeApiVersion: The version of the API in the given runtime - // environment. Please see the app.yaml reference for valid values at + // RuntimeApiVersion: The version of the API in the given runtime environment. + // Please see the app.yaml reference for valid values at // https://cloud.google.com/appengine/docs/standard//config/appref RuntimeApiVersion string `json:"runtimeApiVersion,omitempty"` - - // RuntimeMainExecutablePath: The path or name of the app's main - // executable. + // RuntimeMainExecutablePath: The path or name of the app's main executable. RuntimeMainExecutablePath string `json:"runtimeMainExecutablePath,omitempty"` - - // ServingStatus: Current serving status of this version. Only the - // versions with a SERVING status create instances and can be - // billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to - // SERVING. + // ServingStatus: Current serving status of this version. Only the versions + // with a SERVING status create instances and can be + // billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING. // // Possible values: // "SERVING_STATUS_UNSPECIFIED" - Not specified. - // "SERVING" - Currently serving. Instances are created according to - // the scaling settings of the version. + // "SERVING" - Currently serving. Instances are created according to the + // scaling settings of the version. // "STOPPED" - Disabled. No instances will be created and the scaling - // settings are ignored until the state of the version changes to - // SERVING. + // settings are ignored until the state of the version changes to SERVING. ServingStatus string `json:"servingStatus,omitempty"` - - // Threadsafe: Whether multiple requests can be dispatched to this - // version at once. + // Threadsafe: Whether multiple requests can be dispatched to this version at + // once. Threadsafe bool `json:"threadsafe,omitempty"` - - // Vm: Whether to deploy this version in a container on a virtual - // machine. + // Vm: Whether to deploy this version in a container on a virtual machine. Vm bool `json:"vm,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ApiConfig") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiConfig") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Version) MarshalJSON() ([]byte, error) { +func (s Version) MarshalJSON() ([]byte, error) { type NoMethod Version - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Volume: Volumes mounted within the app container. Only applicable for -// VM runtimes. +// Volume: Volumes mounted within the app container. Only applicable for VM +// runtimes. type Volume struct { // Name: Unique name for the volume. Name string `json:"name,omitempty"` - // SizeGb: Volume size in gigabytes. SizeGb float64 `json:"sizeGb,omitempty"` - // VolumeType: Underlying volume type, e.g. 'tmpfs'. VolumeType string `json:"volumeType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Volume) MarshalJSON() ([]byte, error) { +func (s Volume) MarshalJSON() ([]byte, error) { type NoMethod Volume - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Volume) UnmarshalJSON(data []byte) error { @@ -2716,8 +2171,6 @@ func (s *Volume) UnmarshalJSON(data []byte) error { return nil } -// method id "appengine.apps.create": - type AppsCreateCall struct { s *APIService application *Application @@ -2729,10 +2182,9 @@ type AppsCreateCall struct { // Create: Creates an App Engine application for a Google Cloud Platform // project. Required fields: // id - The ID of the target Cloud Platform project. -// location - The region -// (https://cloud.google.com/appengine/docs/locations) where you want -// the App Engine application located.For more information about App -// Engine applications, see Managing Projects, Applications, and Billing +// location - The region (https://cloud.google.com/appengine/docs/locations) +// where you want the App Engine application located.For more information about +// App Engine applications, see Managing Projects, Applications, and Billing // (https://cloud.google.com/appengine/docs/python/console/). func (r *AppsService) Create(application *Application) *AppsCreateCall { c := &AppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -2741,23 +2193,21 @@ func (r *AppsService) Create(application *Application) *AppsCreateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsCreateCall) Fields(s ...googleapi.Field) *AppsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsCreateCall) Context(ctx context.Context) *AppsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2766,18 +2216,12 @@ func (c *AppsCreateCall) Header() http.Header { } func (c *AppsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.application) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/apps") @@ -2787,16 +2231,14 @@ func (c *AppsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2804,17 +2246,17 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2827,28 +2269,7 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { return nil, err } return ret, nil - // { - // "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields:\nid - The ID of the target Cloud Platform project.\nlocation - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/python/console/).", - // "flatPath": "v1beta4/apps", - // "httpMethod": "POST", - // "id": "appengine.apps.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta4/apps", - // "request": { - // "$ref": "Application" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.get": +} type AppsGetCall struct { s *APIService @@ -2860,52 +2281,50 @@ type AppsGetCall struct { } // Get: Gets information about an application. +// +// - appsId: Part of `name`. Name of the application to get. Example: +// apps/myapp. func (r *AppsService) Get(appsId string) *AppsGetCall { c := &AppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId return c } -// EnsureResourcesExist sets the optional parameter -// "ensureResourcesExist": Certain resources associated with an -// application are created on-demand. Controls whether these resources -// should be created when performing the GET operation. If specified and -// any resources could not be created, the request will fail with an -// error code. Additionally, this parameter can cause the request to -// take longer to complete. +// EnsureResourcesExist sets the optional parameter "ensureResourcesExist": +// Certain resources associated with an application are created on-demand. +// Controls whether these resources should be created when performing the GET +// operation. If specified and any resources could not be created, the request +// will fail with an error code. Additionally, this parameter can cause the +// request to take longer to complete. func (c *AppsGetCall) EnsureResourcesExist(ensureResourcesExist bool) *AppsGetCall { c.urlParams_.Set("ensureResourcesExist", fmt.Sprint(ensureResourcesExist)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsGetCall) Fields(s ...googleapi.Field) *AppsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsGetCall) IfNoneMatch(entityTag string) *AppsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsGetCall) Context(ctx context.Context) *AppsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2914,12 +2333,7 @@ func (c *AppsGetCall) Header() http.Header { } func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2936,16 +2350,14 @@ func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.get" call. -// Exactly one of *Application or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Application.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Application.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsGetCall) Do(opts ...googleapi.CallOption) (*Application, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2953,17 +2365,17 @@ func (c *AppsGetCall) Do(opts ...googleapi.CallOption) (*Application, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Application{ ServerResponse: googleapi.ServerResponse{ @@ -2976,39 +2388,7 @@ func (c *AppsGetCall) Do(opts ...googleapi.CallOption) (*Application, error) { return nil, err } return ret, nil - // { - // "description": "Gets information about an application.", - // "flatPath": "v1beta4/apps/{appsId}", - // "httpMethod": "GET", - // "id": "appengine.apps.get", - // "parameterOrder": [ - // "appsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the application to get. Example: apps/myapp.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ensureResourcesExist": { - // "description": "Certain resources associated with an application are created on-demand. Controls whether these resources should be created when performing the GET operation. If specified and any resources could not be created, the request will fail with an error code. Additionally, this parameter can cause the request to take longer to complete.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1beta4/apps/{appsId}", - // "response": { - // "$ref": "Application" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.patch": +} type AppsPatchCall struct { s *APIService @@ -3025,6 +2405,9 @@ type AppsPatchCall struct { // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps#Application.FIELDS.auth_domain) // default_cookie_expiration // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps#Application.FIELDS.default_cookie_expiration) +// +// - appsId: Part of `name`. Name of the Application resource to update. +// Example: apps/myapp. func (r *AppsService) Patch(appsId string, application *Application) *AppsPatchCall { c := &AppsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -3032,31 +2415,29 @@ func (r *AppsService) Patch(appsId string, application *Application) *AppsPatchC return c } -// Mask sets the optional parameter "mask": Standard field mask for the -// set of fields to be updated. +// Mask sets the optional parameter "mask": Standard field mask for the set of +// fields to be updated. func (c *AppsPatchCall) Mask(mask string) *AppsPatchCall { c.urlParams_.Set("mask", mask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsPatchCall) Fields(s ...googleapi.Field) *AppsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsPatchCall) Context(ctx context.Context) *AppsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3065,18 +2446,12 @@ func (c *AppsPatchCall) Header() http.Header { } func (c *AppsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.application) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/apps/{appsId}") @@ -3089,16 +2464,14 @@ func (c *AppsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3106,17 +2479,17 @@ func (c *AppsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3129,43 +2502,7 @@ func (c *AppsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { return nil, err } return ret, nil - // { - // "description": "Updates the specified Application resource. You can update the following fields:\nauth_domain (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps#Application.FIELDS.auth_domain)\ndefault_cookie_expiration (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps#Application.FIELDS.default_cookie_expiration)", - // "flatPath": "v1beta4/apps/{appsId}", - // "httpMethod": "PATCH", - // "id": "appengine.apps.patch", - // "parameterOrder": [ - // "appsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the Application resource to update. Example: apps/myapp.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "mask": { - // "description": "Standard field mask for the set of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}", - // "request": { - // "$ref": "Application" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.locations.get": +} type AppsLocationsGetCall struct { s *APIService @@ -3178,6 +2515,9 @@ type AppsLocationsGetCall struct { } // Get: Gets information about a location. +// +// - appsId: Part of `name`. Resource name for the location. +// - locationsId: Part of `name`. See documentation of `appsId`. func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall { c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -3186,33 +2526,29 @@ func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsLocationsGetCall) Fields(s ...googleapi.Field) *AppsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsLocationsGetCall) IfNoneMatch(entityTag string) *AppsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsLocationsGetCall) Context(ctx context.Context) *AppsLocationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3221,12 +2557,7 @@ func (c *AppsLocationsGetCall) Header() http.Header { } func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3244,16 +2575,14 @@ func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "locationsId": c.locationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3261,17 +2590,17 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Location{ ServerResponse: googleapi.ServerResponse{ @@ -3284,43 +2613,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro return nil, err } return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1beta4/apps/{appsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "appengine.apps.locations.get", - // "parameterOrder": [ - // "appsId", - // "locationsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Resource name for the location.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/locations/{locationsId}", - // "response": { - // "$ref": "Location" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.apps.locations.list": +} type AppsLocationsListCall struct { s *APIService @@ -3331,63 +2624,60 @@ type AppsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this service. +// +// - appsId: Part of `name`. The resource that owns the locations collection, +// if applicable. func (r *AppsLocationsService) List(appsId string) *AppsLocationsListCall { c := &AppsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *AppsLocationsListCall) Filter(filter string) *AppsLocationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *AppsLocationsListCall) PageSize(pageSize int64) *AppsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *AppsLocationsListCall) PageToken(pageToken string) *AppsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsLocationsListCall) Fields(s ...googleapi.Field) *AppsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsLocationsListCall) IfNoneMatch(entityTag string) *AppsLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsLocationsListCall) Context(ctx context.Context) *AppsLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3396,12 +2686,7 @@ func (c *AppsLocationsListCall) Header() http.Header { } func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3418,16 +2703,15 @@ func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3435,17 +2719,17 @@ func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocations if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3458,49 +2742,6 @@ func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocations return nil, err } return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1beta4/apps/{appsId}/locations", - // "httpMethod": "GET", - // "id": "appengine.apps.locations.list", - // "parameterOrder": [ - // "appsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. The resource that owns the locations collection, if applicable.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/locations", - // "response": { - // "$ref": "ListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -3508,7 +2749,7 @@ func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocations // The provided context supersedes any context provided to the Context method. func (c *AppsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3524,8 +2765,6 @@ func (c *AppsLocationsListCall) Pages(ctx context.Context, f func(*ListLocations } } -// method id "appengine.apps.modules.delete": - type AppsModulesDeleteCall struct { s *APIService appsId string @@ -3536,6 +2775,10 @@ type AppsModulesDeleteCall struct { } // Delete: Deletes the specified module and all enclosed versions. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/modules/default. +// - modulesId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesService) Delete(appsId string, modulesId string) *AppsModulesDeleteCall { c := &AppsModulesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -3544,23 +2787,21 @@ func (r *AppsModulesService) Delete(appsId string, modulesId string) *AppsModule } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesDeleteCall) Fields(s ...googleapi.Field) *AppsModulesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesDeleteCall) Context(ctx context.Context) *AppsModulesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3569,12 +2810,7 @@ func (c *AppsModulesDeleteCall) Header() http.Header { } func (c *AppsModulesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3589,16 +2825,14 @@ func (c *AppsModulesDeleteCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "modulesId": c.modulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsModulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3606,17 +2840,17 @@ func (c *AppsModulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3629,41 +2863,7 @@ func (c *AppsModulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, er return nil, err } return ret, nil - // { - // "description": "Deletes the specified module and all enclosed versions.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}", - // "httpMethod": "DELETE", - // "id": "appengine.apps.modules.delete", - // "parameterOrder": [ - // "appsId", - // "modulesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.modules.get": +} type AppsModulesGetCall struct { s *APIService @@ -3676,6 +2876,10 @@ type AppsModulesGetCall struct { } // Get: Gets the current configuration of the specified module. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/modules/default. +// - modulesId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesService) Get(appsId string, modulesId string) *AppsModulesGetCall { c := &AppsModulesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -3684,33 +2888,29 @@ func (r *AppsModulesService) Get(appsId string, modulesId string) *AppsModulesGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesGetCall) Fields(s ...googleapi.Field) *AppsModulesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsModulesGetCall) IfNoneMatch(entityTag string) *AppsModulesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesGetCall) Context(ctx context.Context) *AppsModulesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3719,12 +2919,7 @@ func (c *AppsModulesGetCall) Header() http.Header { } func (c *AppsModulesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3742,16 +2937,14 @@ func (c *AppsModulesGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "modulesId": c.modulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.get" call. -// Exactly one of *Module or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Module.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Module.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsModulesGetCall) Do(opts ...googleapi.CallOption) (*Module, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3759,17 +2952,17 @@ func (c *AppsModulesGetCall) Do(opts ...googleapi.CallOption) (*Module, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Module{ ServerResponse: googleapi.ServerResponse{ @@ -3782,43 +2975,7 @@ func (c *AppsModulesGetCall) Do(opts ...googleapi.CallOption) (*Module, error) { return nil, err } return ret, nil - // { - // "description": "Gets the current configuration of the specified module.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}", - // "httpMethod": "GET", - // "id": "appengine.apps.modules.get", - // "parameterOrder": [ - // "appsId", - // "modulesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}", - // "response": { - // "$ref": "Module" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.apps.modules.list": +} type AppsModulesListCall struct { s *APIService @@ -3830,54 +2987,53 @@ type AppsModulesListCall struct { } // List: Lists all the modules in the application. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp. func (r *AppsModulesService) List(appsId string) *AppsModulesListCall { c := &AppsModulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId return c } -// PageSize sets the optional parameter "pageSize": Maximum results to -// return per page. +// PageSize sets the optional parameter "pageSize": Maximum results to return +// per page. func (c *AppsModulesListCall) PageSize(pageSize int64) *AppsModulesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Continuation token -// for fetching the next page of results. +// PageToken sets the optional parameter "pageToken": Continuation token for +// fetching the next page of results. func (c *AppsModulesListCall) PageToken(pageToken string) *AppsModulesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesListCall) Fields(s ...googleapi.Field) *AppsModulesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsModulesListCall) IfNoneMatch(entityTag string) *AppsModulesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesListCall) Context(ctx context.Context) *AppsModulesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3886,12 +3042,7 @@ func (c *AppsModulesListCall) Header() http.Header { } func (c *AppsModulesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3908,16 +3059,15 @@ func (c *AppsModulesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.list" call. -// Exactly one of *ListModulesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListModulesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListModulesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AppsModulesListCall) Do(opts ...googleapi.CallOption) (*ListModulesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3925,17 +3075,17 @@ func (c *AppsModulesListCall) Do(opts ...googleapi.CallOption) (*ListModulesResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListModulesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3948,44 +3098,6 @@ func (c *AppsModulesListCall) Do(opts ...googleapi.CallOption) (*ListModulesResp return nil, err } return ret, nil - // { - // "description": "Lists all the modules in the application.", - // "flatPath": "v1beta4/apps/{appsId}/modules", - // "httpMethod": "GET", - // "id": "appengine.apps.modules.list", - // "parameterOrder": [ - // "appsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum results to return per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token for fetching the next page of results.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules", - // "response": { - // "$ref": "ListModulesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -3993,7 +3105,7 @@ func (c *AppsModulesListCall) Do(opts ...googleapi.CallOption) (*ListModulesResp // The provided context supersedes any context provided to the Context method. func (c *AppsModulesListCall) Pages(ctx context.Context, f func(*ListModulesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4009,8 +3121,6 @@ func (c *AppsModulesListCall) Pages(ctx context.Context, f func(*ListModulesResp } } -// method id "appengine.apps.modules.patch": - type AppsModulesPatchCall struct { s *APIService appsId string @@ -4022,6 +3132,10 @@ type AppsModulesPatchCall struct { } // Patch: Updates the configuration of the specified module. +// +// - appsId: Part of `name`. Name of the resource to update. Example: +// apps/myapp/modules/default. +// - modulesId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesService) Patch(appsId string, modulesId string, module *Module) *AppsModulesPatchCall { c := &AppsModulesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4030,26 +3144,26 @@ func (r *AppsModulesService) Patch(appsId string, modulesId string, module *Modu return c } -// Mask sets the optional parameter "mask": Standard field mask for the -// set of fields to be updated. +// Mask sets the optional parameter "mask": Standard field mask for the set of +// fields to be updated. func (c *AppsModulesPatchCall) Mask(mask string) *AppsModulesPatchCall { c.urlParams_.Set("mask", mask) return c } -// MigrateTraffic sets the optional parameter "migrateTraffic": Set to -// true to gradually shift traffic to one or more versions that you -// specify. By default, traffic is shifted immediately. For gradual -// traffic migration, the target versions must be located within -// instances that are configured for both warmup requests +// MigrateTraffic sets the optional parameter "migrateTraffic": Set to true to +// gradually shift traffic to one or more versions that you specify. By +// default, traffic is shifted immediately. For gradual traffic migration, the +// target versions must be located within instances that are configured for +// both warmup requests // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#inboundservicetype) // and automatic scaling // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#automaticscaling). // You must specify the shardBy // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules#shardby) -// field in the Module resource. Gradual traffic migration is not -// supported in the App Engine flexible environment. For examples, see -// Migrating and Splitting Traffic +// field in the Module resource. Gradual traffic migration is not supported in +// the App Engine flexible environment. For examples, see Migrating and +// Splitting Traffic // (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). func (c *AppsModulesPatchCall) MigrateTraffic(migrateTraffic bool) *AppsModulesPatchCall { c.urlParams_.Set("migrateTraffic", fmt.Sprint(migrateTraffic)) @@ -4057,23 +3171,21 @@ func (c *AppsModulesPatchCall) MigrateTraffic(migrateTraffic bool) *AppsModulesP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesPatchCall) Fields(s ...googleapi.Field) *AppsModulesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesPatchCall) Context(ctx context.Context) *AppsModulesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4082,18 +3194,12 @@ func (c *AppsModulesPatchCall) Header() http.Header { } func (c *AppsModulesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.module) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/apps/{appsId}/modules/{modulesId}") @@ -4107,16 +3213,14 @@ func (c *AppsModulesPatchCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "modulesId": c.modulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsModulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4124,17 +3228,17 @@ func (c *AppsModulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4147,55 +3251,7 @@ func (c *AppsModulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err return nil, err } return ret, nil - // { - // "description": "Updates the configuration of the specified module.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}", - // "httpMethod": "PATCH", - // "id": "appengine.apps.modules.patch", - // "parameterOrder": [ - // "appsId", - // "modulesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "mask": { - // "description": "Standard field mask for the set of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "migrateTraffic": { - // "description": "Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#inboundservicetype) and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#automaticscaling). You must specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules#shardby) field in the Module resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).", - // "location": "query", - // "type": "boolean" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}", - // "request": { - // "$ref": "Module" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.modules.versions.create": +} type AppsModulesVersionsCreateCall struct { s *APIService @@ -4208,6 +3264,10 @@ type AppsModulesVersionsCreateCall struct { } // Create: Deploys code and resource files to a new version. +// +// - appsId: Part of `name`. Name of the resource to update. Example: +// apps/myapp/modules/default. +// - modulesId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesVersionsService) Create(appsId string, modulesId string, version *Version) *AppsModulesVersionsCreateCall { c := &AppsModulesVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4217,23 +3277,21 @@ func (r *AppsModulesVersionsService) Create(appsId string, modulesId string, ver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesVersionsCreateCall) Fields(s ...googleapi.Field) *AppsModulesVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesVersionsCreateCall) Context(ctx context.Context) *AppsModulesVersionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4242,18 +3300,12 @@ func (c *AppsModulesVersionsCreateCall) Header() http.Header { } func (c *AppsModulesVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.version) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/apps/{appsId}/modules/{modulesId}/versions") @@ -4267,16 +3319,14 @@ func (c *AppsModulesVersionsCreateCall) doRequest(alt string) (*http.Response, e "appsId": c.appsId, "modulesId": c.modulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.versions.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsModulesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4284,17 +3334,17 @@ func (c *AppsModulesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Opera if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4307,44 +3357,7 @@ func (c *AppsModulesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Opera return nil, err } return ret, nil - // { - // "description": "Deploys code and resource files to a new version.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}/versions", - // "httpMethod": "POST", - // "id": "appengine.apps.modules.versions.create", - // "parameterOrder": [ - // "appsId", - // "modulesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}/versions", - // "request": { - // "$ref": "Version" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.modules.versions.delete": +} type AppsModulesVersionsDeleteCall struct { s *APIService @@ -4357,6 +3370,11 @@ type AppsModulesVersionsDeleteCall struct { } // Delete: Deletes an existing version. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/modules/default/versions/v1. +// - modulesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesVersionsService) Delete(appsId string, modulesId string, versionsId string) *AppsModulesVersionsDeleteCall { c := &AppsModulesVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4366,23 +3384,21 @@ func (r *AppsModulesVersionsService) Delete(appsId string, modulesId string, ver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesVersionsDeleteCall) Fields(s ...googleapi.Field) *AppsModulesVersionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesVersionsDeleteCall) Context(ctx context.Context) *AppsModulesVersionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesVersionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4391,12 +3407,7 @@ func (c *AppsModulesVersionsDeleteCall) Header() http.Header { } func (c *AppsModulesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4412,16 +3423,14 @@ func (c *AppsModulesVersionsDeleteCall) doRequest(alt string) (*http.Response, e "modulesId": c.modulesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.versions.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsModulesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4429,17 +3438,17 @@ func (c *AppsModulesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Opera if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4452,48 +3461,7 @@ func (c *AppsModulesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Opera return nil, err } return ret, nil - // { - // "description": "Deletes an existing version.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}", - // "httpMethod": "DELETE", - // "id": "appengine.apps.modules.versions.delete", - // "parameterOrder": [ - // "appsId", - // "modulesId", - // "versionsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.modules.versions.get": +} type AppsModulesVersionsGetCall struct { s *APIService @@ -4506,9 +3474,13 @@ type AppsModulesVersionsGetCall struct { header_ http.Header } -// Get: Gets the specified Version resource. By default, only a -// BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get -// the full resource. +// Get: Gets the specified Version resource. By default, only a BASIC_VIEW will +// be returned. Specify the FULL_VIEW parameter to get the full resource. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/modules/default/versions/v1. +// - modulesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesVersionsService) Get(appsId string, modulesId string, versionsId string) *AppsModulesVersionsGetCall { c := &AppsModulesVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4517,8 +3489,8 @@ func (r *AppsModulesVersionsService) Get(appsId string, modulesId string, versio return c } -// View sets the optional parameter "view": Controls the set of fields -// returned in the Get response. +// View sets the optional parameter "view": Controls the set of fields returned +// in the Get response. // // Possible values: // @@ -4530,33 +3502,29 @@ func (c *AppsModulesVersionsGetCall) View(view string) *AppsModulesVersionsGetCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesVersionsGetCall) Fields(s ...googleapi.Field) *AppsModulesVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsModulesVersionsGetCall) IfNoneMatch(entityTag string) *AppsModulesVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesVersionsGetCall) Context(ctx context.Context) *AppsModulesVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4565,12 +3533,7 @@ func (c *AppsModulesVersionsGetCall) Header() http.Header { } func (c *AppsModulesVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4589,16 +3552,14 @@ func (c *AppsModulesVersionsGetCall) doRequest(alt string) (*http.Response, erro "modulesId": c.modulesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.versions.get" call. -// Exactly one of *Version or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Version.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Version.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsModulesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4606,17 +3567,17 @@ func (c *AppsModulesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Version{ ServerResponse: googleapi.ServerResponse{ @@ -4629,59 +3590,7 @@ func (c *AppsModulesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, return nil, err } return ret, nil - // { - // "description": "Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}", - // "httpMethod": "GET", - // "id": "appengine.apps.modules.versions.get", - // "parameterOrder": [ - // "appsId", - // "modulesId", - // "versionsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "view": { - // "description": "Controls the set of fields returned in the Get response.", - // "enum": [ - // "BASIC", - // "FULL" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}", - // "response": { - // "$ref": "Version" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.apps.modules.versions.list": +} type AppsModulesVersionsListCall struct { s *APIService @@ -4694,6 +3603,10 @@ type AppsModulesVersionsListCall struct { } // List: Lists the versions of a module. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/modules/default. +// - modulesId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesVersionsService) List(appsId string, modulesId string) *AppsModulesVersionsListCall { c := &AppsModulesVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4701,22 +3614,22 @@ func (r *AppsModulesVersionsService) List(appsId string, modulesId string) *Apps return c } -// PageSize sets the optional parameter "pageSize": Maximum results to -// return per page. +// PageSize sets the optional parameter "pageSize": Maximum results to return +// per page. func (c *AppsModulesVersionsListCall) PageSize(pageSize int64) *AppsModulesVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Continuation token -// for fetching the next page of results. +// PageToken sets the optional parameter "pageToken": Continuation token for +// fetching the next page of results. func (c *AppsModulesVersionsListCall) PageToken(pageToken string) *AppsModulesVersionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// View sets the optional parameter "view": Controls the set of fields -// returned in the List response. +// View sets the optional parameter "view": Controls the set of fields returned +// in the List response. // // Possible values: // @@ -4728,33 +3641,29 @@ func (c *AppsModulesVersionsListCall) View(view string) *AppsModulesVersionsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesVersionsListCall) Fields(s ...googleapi.Field) *AppsModulesVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsModulesVersionsListCall) IfNoneMatch(entityTag string) *AppsModulesVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesVersionsListCall) Context(ctx context.Context) *AppsModulesVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4763,12 +3672,7 @@ func (c *AppsModulesVersionsListCall) Header() http.Header { } func (c *AppsModulesVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4786,16 +3690,15 @@ func (c *AppsModulesVersionsListCall) doRequest(alt string) (*http.Response, err "appsId": c.appsId, "modulesId": c.modulesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.versions.list" call. -// Exactly one of *ListVersionsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListVersionsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListVersionsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AppsModulesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4803,17 +3706,17 @@ func (c *AppsModulesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVer if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListVersionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4826,60 +3729,6 @@ func (c *AppsModulesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVer return nil, err } return ret, nil - // { - // "description": "Lists the versions of a module.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}/versions", - // "httpMethod": "GET", - // "id": "appengine.apps.modules.versions.list", - // "parameterOrder": [ - // "appsId", - // "modulesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum results to return per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token for fetching the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "view": { - // "description": "Controls the set of fields returned in the List response.", - // "enum": [ - // "BASIC", - // "FULL" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}/versions", - // "response": { - // "$ref": "ListVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -4887,7 +3736,7 @@ func (c *AppsModulesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVer // The provided context supersedes any context provided to the Context method. func (c *AppsModulesVersionsListCall) Pages(ctx context.Context, f func(*ListVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4903,8 +3752,6 @@ func (c *AppsModulesVersionsListCall) Pages(ctx context.Context, f func(*ListVer } } -// method id "appengine.apps.modules.versions.patch": - type AppsModulesVersionsPatchCall struct { s *APIService appsId string @@ -4916,15 +3763,15 @@ type AppsModulesVersionsPatchCall struct { header_ http.Header } -// Patch: Updates the specified Version resource. You can specify the -// following fields depending on the App Engine environment and type of -// scaling that the version resource uses: +// Patch: Updates the specified Version resource. You can specify the following +// fields depending on the App Engine environment and type of scaling that the +// version resource uses: // serving_status // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.serving_status): // -// For Version resources that use basic scaling, manual scaling, or run +// For Version resources that use basic scaling, manual scaling, or run in // -// in the App Engine flexible environment. +// the App Engine flexible environment. // instance_class // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.instance_class): // @@ -4934,15 +3781,20 @@ type AppsModulesVersionsPatchCall struct { // automatic_scaling.min_idle_instances // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.automatic_scaling): // -// For Version resources that use automatic scaling and run in the App +// For Version resources that use automatic scaling and run in the App Engine // -// Engine standard environment. +// standard environment. // automatic_scaling.max_idle_instances // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.automatic_scaling): // -// For Version resources that use automatic scaling and run in the App +// For Version resources that use automatic scaling and run in the App Engine // -// Engine standard environment. +// standard environment. +// +// - appsId: Part of `name`. Name of the resource to update. Example: +// apps/myapp/modules/default/versions/1. +// - modulesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesVersionsService) Patch(appsId string, modulesId string, versionsId string, version *Version) *AppsModulesVersionsPatchCall { c := &AppsModulesVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4952,31 +3804,29 @@ func (r *AppsModulesVersionsService) Patch(appsId string, modulesId string, vers return c } -// Mask sets the optional parameter "mask": Standard field mask for the -// set of fields to be updated. +// Mask sets the optional parameter "mask": Standard field mask for the set of +// fields to be updated. func (c *AppsModulesVersionsPatchCall) Mask(mask string) *AppsModulesVersionsPatchCall { c.urlParams_.Set("mask", mask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesVersionsPatchCall) Fields(s ...googleapi.Field) *AppsModulesVersionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesVersionsPatchCall) Context(ctx context.Context) *AppsModulesVersionsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesVersionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4985,18 +3835,12 @@ func (c *AppsModulesVersionsPatchCall) Header() http.Header { } func (c *AppsModulesVersionsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.version) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}") @@ -5011,16 +3855,14 @@ func (c *AppsModulesVersionsPatchCall) doRequest(alt string) (*http.Response, er "modulesId": c.modulesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.versions.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsModulesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5028,17 +3870,17 @@ func (c *AppsModulesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Operat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5051,57 +3893,7 @@ func (c *AppsModulesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Operat return nil, err } return ret, nil - // { - // "description": "Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:\nserving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment.\ninstance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment.\nautomatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}", - // "httpMethod": "PATCH", - // "id": "appengine.apps.modules.versions.patch", - // "parameterOrder": [ - // "appsId", - // "modulesId", - // "versionsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default/versions/1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "mask": { - // "description": "Standard field mask for the set of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}", - // "request": { - // "$ref": "Version" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.modules.versions.instances.debug": +} type AppsModulesVersionsInstancesDebugCall struct { s *APIService @@ -5115,13 +3907,18 @@ type AppsModulesVersionsInstancesDebugCall struct { header_ http.Header } -// Debug: Enables debugging on a VM instance. This allows you to use the -// SSH command to connect to the virtual machine where the instance -// lives. While in "debug mode", the instance continues to serve live -// traffic. You should delete the instance when you are done debugging -// and then allow the system to take over and determine if another -// instance should be started.Only applicable for instances in App -// Engine flexible environment. +// Debug: Enables debugging on a VM instance. This allows you to use the SSH +// command to connect to the virtual machine where the instance lives. While in +// "debug mode", the instance continues to serve live traffic. You should +// delete the instance when you are done debugging and then allow the system to +// take over and determine if another instance should be started.Only +// applicable for instances in App Engine flexible environment. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/modules/default/versions/v1/instances/instance-1. +// - instancesId: Part of `name`. See documentation of `appsId`. +// - modulesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesVersionsInstancesService) Debug(appsId string, modulesId string, versionsId string, instancesId string, debuginstancerequest *DebugInstanceRequest) *AppsModulesVersionsInstancesDebugCall { c := &AppsModulesVersionsInstancesDebugCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5133,23 +3930,21 @@ func (r *AppsModulesVersionsInstancesService) Debug(appsId string, modulesId str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesVersionsInstancesDebugCall) Fields(s ...googleapi.Field) *AppsModulesVersionsInstancesDebugCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesVersionsInstancesDebugCall) Context(ctx context.Context) *AppsModulesVersionsInstancesDebugCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesVersionsInstancesDebugCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5158,18 +3953,12 @@ func (c *AppsModulesVersionsInstancesDebugCall) Header() http.Header { } func (c *AppsModulesVersionsInstancesDebugCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.debuginstancerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}:debug") @@ -5185,16 +3974,14 @@ func (c *AppsModulesVersionsInstancesDebugCall) doRequest(alt string) (*http.Res "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.versions.instances.debug" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsModulesVersionsInstancesDebugCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5202,17 +3989,17 @@ func (c *AppsModulesVersionsInstancesDebugCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5225,58 +4012,7 @@ func (c *AppsModulesVersionsInstancesDebugCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Enables debugging on a VM instance. This allows you to use the SSH command to connect to the virtual machine where the instance lives. While in \"debug mode\", the instance continues to serve live traffic. You should delete the instance when you are done debugging and then allow the system to take over and determine if another instance should be started.Only applicable for instances in App Engine flexible environment.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}:debug", - // "httpMethod": "POST", - // "id": "appengine.apps.modules.versions.instances.debug", - // "parameterOrder": [ - // "appsId", - // "modulesId", - // "versionsId", - // "instancesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1/instances/instance-1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instancesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}:debug", - // "request": { - // "$ref": "DebugInstanceRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.modules.versions.instances.delete": +} type AppsModulesVersionsInstancesDeleteCall struct { s *APIService @@ -5290,6 +4026,12 @@ type AppsModulesVersionsInstancesDeleteCall struct { } // Delete: Stops a running instance. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/modules/default/versions/v1/instances/instance-1. +// - instancesId: Part of `name`. See documentation of `appsId`. +// - modulesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesVersionsInstancesService) Delete(appsId string, modulesId string, versionsId string, instancesId string) *AppsModulesVersionsInstancesDeleteCall { c := &AppsModulesVersionsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5300,23 +4042,21 @@ func (r *AppsModulesVersionsInstancesService) Delete(appsId string, modulesId st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesVersionsInstancesDeleteCall) Fields(s ...googleapi.Field) *AppsModulesVersionsInstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesVersionsInstancesDeleteCall) Context(ctx context.Context) *AppsModulesVersionsInstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesVersionsInstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5325,12 +4065,7 @@ func (c *AppsModulesVersionsInstancesDeleteCall) Header() http.Header { } func (c *AppsModulesVersionsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5347,16 +4082,14 @@ func (c *AppsModulesVersionsInstancesDeleteCall) doRequest(alt string) (*http.Re "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.versions.instances.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsModulesVersionsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5364,17 +4097,17 @@ func (c *AppsModulesVersionsInstancesDeleteCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5387,55 +4120,7 @@ func (c *AppsModulesVersionsInstancesDeleteCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Stops a running instance.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}", - // "httpMethod": "DELETE", - // "id": "appengine.apps.modules.versions.instances.delete", - // "parameterOrder": [ - // "appsId", - // "modulesId", - // "versionsId", - // "instancesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1/instances/instance-1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instancesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.modules.versions.instances.get": +} type AppsModulesVersionsInstancesGetCall struct { s *APIService @@ -5450,6 +4135,12 @@ type AppsModulesVersionsInstancesGetCall struct { } // Get: Gets instance information. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/modules/default/versions/v1/instances/instance-1. +// - instancesId: Part of `name`. See documentation of `appsId`. +// - modulesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesVersionsInstancesService) Get(appsId string, modulesId string, versionsId string, instancesId string) *AppsModulesVersionsInstancesGetCall { c := &AppsModulesVersionsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5460,33 +4151,29 @@ func (r *AppsModulesVersionsInstancesService) Get(appsId string, modulesId strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesVersionsInstancesGetCall) Fields(s ...googleapi.Field) *AppsModulesVersionsInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsModulesVersionsInstancesGetCall) IfNoneMatch(entityTag string) *AppsModulesVersionsInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesVersionsInstancesGetCall) Context(ctx context.Context) *AppsModulesVersionsInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesVersionsInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5495,12 +4182,7 @@ func (c *AppsModulesVersionsInstancesGetCall) Header() http.Header { } func (c *AppsModulesVersionsInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5520,16 +4202,14 @@ func (c *AppsModulesVersionsInstancesGetCall) doRequest(alt string) (*http.Respo "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.versions.instances.get" call. -// Exactly one of *Instance or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Instance.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Instance.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsModulesVersionsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5537,17 +4217,17 @@ func (c *AppsModulesVersionsInstancesGetCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Instance{ ServerResponse: googleapi.ServerResponse{ @@ -5560,57 +4240,7 @@ func (c *AppsModulesVersionsInstancesGetCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Gets instance information.", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}", - // "httpMethod": "GET", - // "id": "appengine.apps.modules.versions.instances.get", - // "parameterOrder": [ - // "appsId", - // "modulesId", - // "versionsId", - // "instancesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1/instances/instance-1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instancesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}", - // "response": { - // "$ref": "Instance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.apps.modules.versions.instances.list": +} type AppsModulesVersionsInstancesListCall struct { s *APIService @@ -5623,9 +4253,14 @@ type AppsModulesVersionsInstancesListCall struct { header_ http.Header } -// List: Lists the instances of a version.Tip: To aggregate details -// about instances over time, see the Stackdriver Monitoring API +// List: Lists the instances of a version.Tip: To aggregate details about +// instances over time, see the Stackdriver Monitoring API // (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/modules/default/versions/v1. +// - modulesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsModulesVersionsInstancesService) List(appsId string, modulesId string, versionsId string) *AppsModulesVersionsInstancesListCall { c := &AppsModulesVersionsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5634,48 +4269,44 @@ func (r *AppsModulesVersionsInstancesService) List(appsId string, modulesId stri return c } -// PageSize sets the optional parameter "pageSize": Maximum results to -// return per page. +// PageSize sets the optional parameter "pageSize": Maximum results to return +// per page. func (c *AppsModulesVersionsInstancesListCall) PageSize(pageSize int64) *AppsModulesVersionsInstancesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Continuation token -// for fetching the next page of results. +// PageToken sets the optional parameter "pageToken": Continuation token for +// fetching the next page of results. func (c *AppsModulesVersionsInstancesListCall) PageToken(pageToken string) *AppsModulesVersionsInstancesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsModulesVersionsInstancesListCall) Fields(s ...googleapi.Field) *AppsModulesVersionsInstancesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsModulesVersionsInstancesListCall) IfNoneMatch(entityTag string) *AppsModulesVersionsInstancesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsModulesVersionsInstancesListCall) Context(ctx context.Context) *AppsModulesVersionsInstancesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsModulesVersionsInstancesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5684,12 +4315,7 @@ func (c *AppsModulesVersionsInstancesListCall) Header() http.Header { } func (c *AppsModulesVersionsInstancesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5708,16 +4334,15 @@ func (c *AppsModulesVersionsInstancesListCall) doRequest(alt string) (*http.Resp "modulesId": c.modulesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.modules.versions.instances.list" call. -// Exactly one of *ListInstancesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListInstancesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListInstancesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AppsModulesVersionsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5725,17 +4350,17 @@ func (c *AppsModulesVersionsInstancesListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListInstancesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5748,58 +4373,6 @@ func (c *AppsModulesVersionsInstancesListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists the instances of a version.Tip: To aggregate details about instances over time, see the Stackdriver Monitoring API (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).", - // "flatPath": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances", - // "httpMethod": "GET", - // "id": "appengine.apps.modules.versions.instances.list", - // "parameterOrder": [ - // "appsId", - // "modulesId", - // "versionsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "modulesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum results to return per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token for fetching the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances", - // "response": { - // "$ref": "ListInstancesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -5807,7 +4380,7 @@ func (c *AppsModulesVersionsInstancesListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *AppsModulesVersionsInstancesListCall) Pages(ctx context.Context, f func(*ListInstancesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5823,8 +4396,6 @@ func (c *AppsModulesVersionsInstancesListCall) Pages(ctx context.Context, f func } } -// method id "appengine.apps.operations.get": - type AppsOperationsGetCall struct { s *APIService appsId string @@ -5835,9 +4406,12 @@ type AppsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - appsId: Part of `name`. The name of the operation resource. +// - operationsId: Part of `name`. See documentation of `appsId`. func (r *AppsOperationsService) Get(appsId string, operationsId string) *AppsOperationsGetCall { c := &AppsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5846,33 +4420,29 @@ func (r *AppsOperationsService) Get(appsId string, operationsId string) *AppsOpe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsOperationsGetCall) Fields(s ...googleapi.Field) *AppsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsOperationsGetCall) IfNoneMatch(entityTag string) *AppsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsOperationsGetCall) Context(ctx context.Context) *AppsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5881,12 +4451,7 @@ func (c *AppsOperationsGetCall) Header() http.Header { } func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5904,16 +4469,14 @@ func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "operationsId": c.operationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5921,17 +4484,17 @@ func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5944,43 +4507,7 @@ func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, er return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta4/apps/{appsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "appengine.apps.operations.get", - // "parameterOrder": [ - // "appsId", - // "operationsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. The name of the operation resource.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "operationsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/operations/{operationsId}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.apps.operations.list": +} type AppsOperationsListCall struct { s *APIService @@ -5991,71 +4518,67 @@ type AppsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// UNIMPLEMENTED.NOTE: the name binding allows API services to override -// the binding to use different resource name schemes, such as -// users/*/operations. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the +// name binding allows API services to override the binding to use different +// resource name schemes, such as users/*/operations. To override the binding, +// API services can add a binding such as "/v1/{name=users/*}/operations" to +// their service configuration. For backwards compatibility, the default name +// includes the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations collection +// id. +// +// - appsId: Part of `name`. The name of the operation's parent resource. func (r *AppsOperationsService) List(appsId string) *AppsOperationsListCall { c := &AppsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *AppsOperationsListCall) Filter(filter string) *AppsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *AppsOperationsListCall) PageSize(pageSize int64) *AppsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *AppsOperationsListCall) PageToken(pageToken string) *AppsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsOperationsListCall) Fields(s ...googleapi.Field) *AppsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsOperationsListCall) IfNoneMatch(entityTag string) *AppsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsOperationsListCall) Context(ctx context.Context) *AppsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6064,12 +4587,7 @@ func (c *AppsOperationsListCall) Header() http.Header { } func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6086,16 +4604,15 @@ func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6103,17 +4620,17 @@ func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperatio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6126,49 +4643,6 @@ func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperatio return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1beta4/apps/{appsId}/operations", - // "httpMethod": "GET", - // "id": "appengine.apps.operations.list", - // "parameterOrder": [ - // "appsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. The name of the operation's parent resource.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta4/apps/{appsId}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -6176,7 +4650,7 @@ func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperatio // The provided context supersedes any context provided to the Context method. func (c *AppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/appengine/v1beta5/appengine-gen.go b/appengine/v1beta5/appengine-gen.go index a0189f0bd78..5a4e406f78a 100644 --- a/appengine/v1beta5/appengine-gen.go +++ b/appengine/v1beta5/appengine-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/appengine/docs/admin-api/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // appengineService, err := appengine.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // appengineService, err := appengine.NewService(ctx, option.WithScopes(appengine.CloudPlatformReadOnlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // appengineService, err := appengine.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // appengineService, err := appengine.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package appengine // import "google.golang.org/api/appengine/v1beta5" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "appengine:v1beta5" const apiName = "appengine" const apiVersion = "v1beta5" const basePath = "https://appengine.googleapis.com/" +const basePathTemplate = "https://appengine.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -94,7 +111,7 @@ const ( // NewService creates a new APIService. func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/appengine.admin", "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", @@ -102,6 +119,8 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -215,333 +234,261 @@ type AppsServicesVersionsInstancesService struct { } // ApiConfigHandler: Google Cloud Endpoints -// (https://cloud.google.com/appengine/docs/python/endpoints/) -// configuration for API handlers. +// (https://cloud.google.com/appengine/docs/python/endpoints/) configuration +// for API handlers. type ApiConfigHandler struct { - // AuthFailAction: Action to take when users access resources that - // require authentication. Defaults to redirect. + // AuthFailAction: Action to take when users access resources that require + // authentication. Defaults to redirect. // // Possible values: - // "AUTH_FAIL_ACTION_UNSPECIFIED" - Not specified. - // AUTH_FAIL_ACTION_REDIRECT is assumed. - // "AUTH_FAIL_ACTION_REDIRECT" - Redirects user to - // "accounts.google.com". The user is redirected back to the application - // URL after signing in or creating an account. - // "AUTH_FAIL_ACTION_UNAUTHORIZED" - Rejects request with an401 HTTP - // status code and an error message. + // "AUTH_FAIL_ACTION_UNSPECIFIED" - Not specified. AUTH_FAIL_ACTION_REDIRECT + // is assumed. + // "AUTH_FAIL_ACTION_REDIRECT" - Redirects user to "accounts.google.com". The + // user is redirected back to the application URL after signing in or creating + // an account. + // "AUTH_FAIL_ACTION_UNAUTHORIZED" - Rejects request with an401 HTTP status + // code and an error message. AuthFailAction string `json:"authFailAction,omitempty"` - // Login: Level of login required to access this resource. Defaults to // optional. // // Possible values: // "LOGIN_UNSPECIFIED" - Not specified. LOGIN_OPTIONAL is assumed. // "LOGIN_OPTIONAL" - Does not require that the user is signed in. - // "LOGIN_ADMIN" - If the user is not signed in, the auth_fail_action - // is taken. In addition, if the user is not an administrator for the - // application, they are given an error message regardless of - // auth_fail_action. If the user is an administrator, the handler - // proceeds. + // "LOGIN_ADMIN" - If the user is not signed in, the auth_fail_action is + // taken. In addition, if the user is not an administrator for the application, + // they are given an error message regardless of auth_fail_action. If the user + // is an administrator, the handler proceeds. // "LOGIN_REQUIRED" - If the user has signed in, the handler proceeds // normally. Otherwise, the action given in auth_fail_action is taken. Login string `json:"login,omitempty"` - // Script: Path to the script from the application root directory. Script string `json:"script,omitempty"` - // SecurityLevel: Security (HTTPS) enforcement for this URL. // // Possible values: // "SECURE_UNSPECIFIED" - Not specified. - // "SECURE_DEFAULT" - Both HTTP and HTTPS requests with URLs that - // match the handler succeed without redirects. The application can - // examine the request to determine which protocol was used, and respond - // accordingly. - // "SECURE_NEVER" - Requests for a URL that match this handler that - // use HTTPS are automatically redirected to the HTTP equivalent URL. - // "SECURE_OPTIONAL" - Both HTTP and HTTPS requests with URLs that - // match the handler succeed without redirects. The application can - // examine the request to determine which protocol was used and respond - // accordingly. - // "SECURE_ALWAYS" - Requests for a URL that match this handler that - // do not use HTTPS are automatically redirected to the HTTPS URL with - // the same path. Query parameters are reserved for the redirect. + // "SECURE_DEFAULT" - Both HTTP and HTTPS requests with URLs that match the + // handler succeed without redirects. The application can examine the request + // to determine which protocol was used, and respond accordingly. + // "SECURE_NEVER" - Requests for a URL that match this handler that use HTTPS + // are automatically redirected to the HTTP equivalent URL. + // "SECURE_OPTIONAL" - Both HTTP and HTTPS requests with URLs that match the + // handler succeed without redirects. The application can examine the request + // to determine which protocol was used and respond accordingly. + // "SECURE_ALWAYS" - Requests for a URL that match this handler that do not + // use HTTPS are automatically redirected to the HTTPS URL with the same path. + // Query parameters are reserved for the redirect. SecurityLevel string `json:"securityLevel,omitempty"` - // Url: URL to serve the endpoint at. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthFailAction") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthFailAction") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuthFailAction") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApiConfigHandler) MarshalJSON() ([]byte, error) { +func (s ApiConfigHandler) MarshalJSON() ([]byte, error) { type NoMethod ApiConfigHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApiEndpointHandler: Uses Google Cloud Endpoints to handle requests. type ApiEndpointHandler struct { // ScriptPath: Path to the script from the application root directory. ScriptPath string `json:"scriptPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "ScriptPath") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ScriptPath") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ScriptPath") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApiEndpointHandler) MarshalJSON() ([]byte, error) { +func (s ApiEndpointHandler) MarshalJSON() ([]byte, error) { type NoMethod ApiEndpointHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Application: An Application resource contains the top-level -// configuration of an App Engine application. +// Application: An Application resource contains the top-level configuration of +// an App Engine application. type Application struct { - // AuthDomain: Google Apps authentication domain that controls which - // users can access this application.Defaults to open access for any - // Google Account. + // AuthDomain: Google Apps authentication domain that controls which users can + // access this application.Defaults to open access for any Google Account. AuthDomain string `json:"authDomain,omitempty"` - - // CodeBucket: A Google Cloud Storage bucket that can be used for - // storing files associated with this application. This bucket is - // associated with the application and can be used by the gcloud - // deployment commands.@OutputOnly + // CodeBucket: A Google Cloud Storage bucket that can be used for storing files + // associated with this application. This bucket is associated with the + // application and can be used by the gcloud deployment commands.@OutputOnly CodeBucket string `json:"codeBucket,omitempty"` - // DefaultBucket: A Google Cloud Storage bucket that can be used by the // application to store content.@OutputOnly DefaultBucket string `json:"defaultBucket,omitempty"` - - // DefaultCookieExpiration: Cookie expiration policy for this - // application. + // DefaultCookieExpiration: Cookie expiration policy for this application. DefaultCookieExpiration string `json:"defaultCookieExpiration,omitempty"` - - // DefaultHostname: Hostname used to reach the application, as resolved - // by App Engine.@OutputOnly + // DefaultHostname: Hostname used to reach the application, as resolved by App + // Engine.@OutputOnly DefaultHostname string `json:"defaultHostname,omitempty"` - - // DispatchRules: HTTP path dispatch rules for requests to the - // application that do not explicitly target a service or version. Rules - // are order-dependent.@OutputOnly - DispatchRules []*UrlDispatchRule `json:"dispatchRules,omitempty"` - - Iap *IdentityAwareProxy `json:"iap,omitempty"` - - // Id: Identifier of the Application resource. This identifier is - // equivalent to the project ID of the Google Cloud Platform project - // where you want to deploy your application. Example: myapp. + // DispatchRules: HTTP path dispatch rules for requests to the application that + // do not explicitly target a service or version. Rules are + // order-dependent.@OutputOnly + DispatchRules []*UrlDispatchRule `json:"dispatchRules,omitempty"` + Iap *IdentityAwareProxy `json:"iap,omitempty"` + // Id: Identifier of the Application resource. This identifier is equivalent to + // the project ID of the Google Cloud Platform project where you want to deploy + // your application. Example: myapp. Id string `json:"id,omitempty"` - - // Location: Location from which this application will be run. - // Application instances will run out of data centers in the chosen - // location, which is also where all of the application's end user - // content is stored.Defaults to us-central.Options are:us-central - - // Central USeurope-west - Western Europeus-east1 - Eastern US + // Location: Location from which this application will be run. Application + // instances will run out of data centers in the chosen location, which is also + // where all of the application's end user content is stored.Defaults to + // us-central.Options are:us-central - Central USeurope-west - Western + // Europeus-east1 - Eastern US Location string `json:"location,omitempty"` - // Name: Full path to the Application resource in the API. Example: // apps/myapp.@OutputOnly Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuthDomain") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthDomain") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthDomain") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Application) MarshalJSON() ([]byte, error) { +func (s Application) MarshalJSON() ([]byte, error) { type NoMethod Application - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AutomaticScaling: Automatic scaling is based on request rate, -// response latencies, and other application metrics. +// AutomaticScaling: Automatic scaling is based on request rate, response +// latencies, and other application metrics. type AutomaticScaling struct { // CoolDownPeriod: The time period that the Autoscaler - // (https://cloud.google.com/compute/docs/autoscaler/) should wait - // before it starts collecting information from a new instance. This - // prevents the autoscaler from collecting information when the instance - // is initializing, during which the collected usage would not be - // reliable. Only applicable in the App Engine flexible environment. + // (https://cloud.google.com/compute/docs/autoscaler/) should wait before it + // starts collecting information from a new instance. This prevents the + // autoscaler from collecting information when the instance is initializing, + // during which the collected usage would not be reliable. Only applicable in + // the App Engine flexible environment. CoolDownPeriod string `json:"coolDownPeriod,omitempty"` - // CpuUtilization: Target scaling by CPU usage. CpuUtilization *CpuUtilization `json:"cpuUtilization,omitempty"` - // DiskUtilization: Target scaling by disk usage. DiskUtilization *DiskUtilization `json:"diskUtilization,omitempty"` - - // MaxConcurrentRequests: Number of concurrent requests an automatic - // scaling instance can accept before the scheduler spawns a new - // instance.Defaults to a runtime-specific value. + // MaxConcurrentRequests: Number of concurrent requests an automatic scaling + // instance can accept before the scheduler spawns a new instance.Defaults to a + // runtime-specific value. MaxConcurrentRequests int64 `json:"maxConcurrentRequests,omitempty"` - - // MaxIdleInstances: Maximum number of idle instances that should be - // maintained for this version. + // MaxIdleInstances: Maximum number of idle instances that should be maintained + // for this version. MaxIdleInstances int64 `json:"maxIdleInstances,omitempty"` - - // MaxPendingLatency: Maximum amount of time that a request should wait - // in the pending queue before starting a new instance to handle it. + // MaxPendingLatency: Maximum amount of time that a request should wait in the + // pending queue before starting a new instance to handle it. MaxPendingLatency string `json:"maxPendingLatency,omitempty"` - - // MaxTotalInstances: Maximum number of instances that should be started - // to handle requests. + // MaxTotalInstances: Maximum number of instances that should be started to + // handle requests. MaxTotalInstances int64 `json:"maxTotalInstances,omitempty"` - - // MinIdleInstances: Minimum number of idle instances that should be - // maintained for this version. Only applicable for the default version - // of a module. + // MinIdleInstances: Minimum number of idle instances that should be maintained + // for this version. Only applicable for the default version of a module. MinIdleInstances int64 `json:"minIdleInstances,omitempty"` - - // MinPendingLatency: Minimum amount of time a request should wait in - // the pending queue before starting a new instance to handle it. + // MinPendingLatency: Minimum amount of time a request should wait in the + // pending queue before starting a new instance to handle it. MinPendingLatency string `json:"minPendingLatency,omitempty"` - - // MinTotalInstances: Minimum number of instances that should be - // maintained for this version. + // MinTotalInstances: Minimum number of instances that should be maintained for + // this version. MinTotalInstances int64 `json:"minTotalInstances,omitempty"` - // NetworkUtilization: Target scaling by network usage. NetworkUtilization *NetworkUtilization `json:"networkUtilization,omitempty"` - // RequestUtilization: Target scaling by request utilization. RequestUtilization *RequestUtilization `json:"requestUtilization,omitempty"` - // ForceSendFields is a list of field names (e.g. "CoolDownPeriod") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CoolDownPeriod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CoolDownPeriod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AutomaticScaling) MarshalJSON() ([]byte, error) { +func (s AutomaticScaling) MarshalJSON() ([]byte, error) { type NoMethod AutomaticScaling - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BasicScaling: A service with basic scaling will create an instance -// when the application receives a request. The instance will be turned -// down when the app becomes idle. Basic scaling is ideal for work that -// is intermittent or driven by user activity. +// BasicScaling: A service with basic scaling will create an instance when the +// application receives a request. The instance will be turned down when the +// app becomes idle. Basic scaling is ideal for work that is intermittent or +// driven by user activity. type BasicScaling struct { - // IdleTimeout: Duration of time after the last request that an instance - // must wait before the instance is shut down. + // IdleTimeout: Duration of time after the last request that an instance must + // wait before the instance is shut down. IdleTimeout string `json:"idleTimeout,omitempty"` - // MaxInstances: Maximum number of instances to create for this version. MaxInstances int64 `json:"maxInstances,omitempty"` - // ForceSendFields is a list of field names (e.g. "IdleTimeout") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IdleTimeout") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IdleTimeout") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BasicScaling) MarshalJSON() ([]byte, error) { +func (s BasicScaling) MarshalJSON() ([]byte, error) { type NoMethod BasicScaling - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContainerInfo: Docker image that is used to create a container and -// start a VM instance for the version that you deploy. Only applicable -// for instances running in the App Engine flexible environment. +// ContainerInfo: Docker image that is used to create a container and start a +// VM instance for the version that you deploy. Only applicable for instances +// running in the App Engine flexible environment. type ContainerInfo struct { - // Image: URI to the hosted container image in Google Container - // Registry. The URI must be fully qualified and include a tag or - // digest. Examples: "gcr.io/my-project/image:tag" or - // "gcr.io/my-project/image@digest" + // Image: URI to the hosted container image in Google Container Registry. The + // URI must be fully qualified and include a tag or digest. Examples: + // "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" Image string `json:"image,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Image") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Image") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Image") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerInfo) MarshalJSON() ([]byte, error) { +func (s ContainerInfo) MarshalJSON() ([]byte, error) { type NoMethod ContainerInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CpuUtilization: Target scaling by CPU usage. @@ -549,34 +496,25 @@ type CpuUtilization struct { // AggregationWindowLength: Period of time over which CPU utilization is // calculated. AggregationWindowLength string `json:"aggregationWindowLength,omitempty"` - - // TargetUtilization: Target CPU utilization ratio to maintain when - // scaling. Must be between 0 and 1. + // TargetUtilization: Target CPU utilization ratio to maintain when scaling. + // Must be between 0 and 1. TargetUtilization float64 `json:"targetUtilization,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AggregationWindowLength") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AggregationWindowLength") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregationWindowLength") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AggregationWindowLength") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CpuUtilization) MarshalJSON() ([]byte, error) { +func (s CpuUtilization) MarshalJSON() ([]byte, error) { type NoMethod CpuUtilization - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CpuUtilization) UnmarshalJSON(data []byte) error { @@ -593,172 +531,137 @@ func (s *CpuUtilization) UnmarshalJSON(data []byte) error { return nil } -// CreateVersionMetadataV1: Metadata for the given -// google.longrunning.Operation during a -// google.appengine.v1.CreateVersionRequest. +// CreateVersionMetadataV1: Metadata for the given google.longrunning.Operation +// during a google.appengine.v1.CreateVersionRequest. type CreateVersionMetadataV1 struct { - // CloudBuildId: The Cloud Build ID if one was created as part of the - // version create. @OutputOnly + // CloudBuildId: The Cloud Build ID if one was created as part of the version + // create. @OutputOnly CloudBuildId string `json:"cloudBuildId,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudBuildId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudBuildId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudBuildId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) { +func (s CreateVersionMetadataV1) MarshalJSON() ([]byte, error) { type NoMethod CreateVersionMetadataV1 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateVersionMetadataV1Alpha: Metadata for the given // google.longrunning.Operation during a // google.appengine.v1alpha.CreateVersionRequest. type CreateVersionMetadataV1Alpha struct { - // CloudBuildId: The Cloud Build ID if one was created as part of the - // version create. @OutputOnly + // CloudBuildId: The Cloud Build ID if one was created as part of the version + // create. @OutputOnly CloudBuildId string `json:"cloudBuildId,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudBuildId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudBuildId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudBuildId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) { +func (s CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) { type NoMethod CreateVersionMetadataV1Alpha - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateVersionMetadataV1Beta: Metadata for the given // google.longrunning.Operation during a // google.appengine.v1beta.CreateVersionRequest. type CreateVersionMetadataV1Beta struct { - // CloudBuildId: The Cloud Build ID if one was created as part of the - // version create. @OutputOnly + // CloudBuildId: The Cloud Build ID if one was created as part of the version + // create. @OutputOnly CloudBuildId string `json:"cloudBuildId,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudBuildId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudBuildId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudBuildId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) { +func (s CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) { type NoMethod CreateVersionMetadataV1Beta - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DebugInstanceRequest: Request message for Instances.DebugInstance. type DebugInstanceRequest struct { - // SshKey: Public SSH key to add to the instance. - // Examples: + // SshKey: Public SSH key to add to the instance. Examples: // [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] // [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh - // {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more - // information, see Adding and Removing SSH Keys + // {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, + // see Adding and Removing SSH Keys // (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). SshKey string `json:"sshKey,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SshKey") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "SshKey") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SshKey") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DebugInstanceRequest) MarshalJSON() ([]byte, error) { +func (s DebugInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod DebugInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Deployment: Code and application artifacts used to deploy a version -// to App Engine. +// Deployment: Code and application artifacts used to deploy a version to App +// Engine. type Deployment struct { - // Container: The Docker image for the container that runs the version. - // Only applicable for instances running in the App Engine flexible - // environment. + // Container: The Docker image for the container that runs the version. Only + // applicable for instances running in the App Engine flexible environment. Container *ContainerInfo `json:"container,omitempty"` - // Files: Manifest of the files stored in Google Cloud Storage that are - // included as part of this version. All files must be readable using - // the credentials supplied with this call. + // included as part of this version. All files must be readable using the + // credentials supplied with this call. Files map[string]FileInfo `json:"files,omitempty"` - - // SourceReferences: Origin of the source code for this deployment. - // There can be more than one source reference per version if source - // code is distributed among multiple repositories. + // SourceReferences: Origin of the source code for this deployment. There can + // be more than one source reference per version if source code is distributed + // among multiple repositories. SourceReferences []*SourceReference `json:"sourceReferences,omitempty"` - // ForceSendFields is a list of field names (e.g. "Container") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Container") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Container") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Deployment) MarshalJSON() ([]byte, error) { +func (s Deployment) MarshalJSON() ([]byte, error) { type NoMethod Deployment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DiskUtilization: Target scaling by disk usage. Only applicable for VM @@ -766,287 +669,221 @@ func (s *Deployment) MarshalJSON() ([]byte, error) { type DiskUtilization struct { // TargetReadBytesPerSec: Target bytes read per second. TargetReadBytesPerSec int64 `json:"targetReadBytesPerSec,omitempty"` - // TargetReadOpsPerSec: Target ops read per second. TargetReadOpsPerSec int64 `json:"targetReadOpsPerSec,omitempty"` - // TargetWriteBytesPerSec: Target bytes written per second. TargetWriteBytesPerSec int64 `json:"targetWriteBytesPerSec,omitempty"` - // TargetWriteOpsPerSec: Target ops written per second. TargetWriteOpsPerSec int64 `json:"targetWriteOpsPerSec,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "TargetReadBytesPerSec") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetReadBytesPerSec") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TargetReadBytesPerSec") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DiskUtilization) MarshalJSON() ([]byte, error) { +func (s DiskUtilization) MarshalJSON() ([]byte, error) { type NoMethod DiskUtilization - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndpointsApiService: Cloud Endpoints -// (https://cloud.google.com/endpoints) configuration. The Endpoints API -// Service provides tooling for serving Open API and gRPC endpoints via -// an NGINX proxy. Only valid for App Engine Flexible environment -// deployments.The fields here refer to the name and configuration id of -// a "service" resource in the Service Management API +// EndpointsApiService: Cloud Endpoints (https://cloud.google.com/endpoints) +// configuration. The Endpoints API Service provides tooling for serving Open +// API and gRPC endpoints via an NGINX proxy. Only valid for App Engine +// Flexible environment deployments.The fields here refer to the name and +// configuration id of a "service" resource in the Service Management API // (https://cloud.google.com/service-management/overview). type EndpointsApiService struct { - // ConfigId: Endpoints service configuration id as specified by the - // Service Management API. For example "2016-09-19r1"By default, the - // Endpoints service configuration id is fixed and config_id must be - // specified. To keep the Endpoints service configuration id updated - // with each rollout, specify RolloutStrategy.MANAGED and omit - // config_id. + // ConfigId: Endpoints service configuration id as specified by the Service + // Management API. For example "2016-09-19r1"By default, the Endpoints service + // configuration id is fixed and config_id must be specified. To keep the + // Endpoints service configuration id updated with each rollout, specify + // RolloutStrategy.MANAGED and omit config_id. ConfigId string `json:"configId,omitempty"` - - // DisableTraceSampling: Enable or disable trace sampling. By default, - // this is set to false for enabled. + // DisableTraceSampling: Enable or disable trace sampling. By default, this is + // set to false for enabled. DisableTraceSampling bool `json:"disableTraceSampling,omitempty"` - - // Name: Endpoints service name which is the name of the "service" - // resource in the Service Management API. For example + // Name: Endpoints service name which is the name of the "service" resource in + // the Service Management API. For example // "myapi.endpoints.myproject.cloud.goog" Name string `json:"name,omitempty"` - - // RolloutStrategy: Endpoints rollout strategy. If FIXED, config_id must - // be specified. If MANAGED, config_id must be omitted. + // RolloutStrategy: Endpoints rollout strategy. If FIXED, config_id must be + // specified. If MANAGED, config_id must be omitted. // // Possible values: // "UNSPECIFIED_ROLLOUT_STRATEGY" - Not specified. Defaults to FIXED. // "FIXED" - Endpoints service configuration id will be fixed to the // configuration id specified by config_id. - // "MANAGED" - Endpoints service configuration id will be updated with - // each rollout. + // "MANAGED" - Endpoints service configuration id will be updated with each + // rollout. RolloutStrategy string `json:"rolloutStrategy,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfigId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConfigId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConfigId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EndpointsApiService) MarshalJSON() ([]byte, error) { +func (s EndpointsApiService) MarshalJSON() ([]byte, error) { type NoMethod EndpointsApiService - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ErrorHandler: Custom static error page to be served when an error -// occurs. +// ErrorHandler: Custom static error page to be served when an error occurs. type ErrorHandler struct { // ErrorCode: Error condition this handler applies to. // // Possible values: - // "ERROR_CODE_UNSPECIFIED" - Not specified. ERROR_CODE_DEFAULT is - // assumed. + // "ERROR_CODE_UNSPECIFIED" - Not specified. ERROR_CODE_DEFAULT is assumed. // "ERROR_CODE_DEFAULT" - All other error types. - // "ERROR_CODE_OVER_QUOTA" - Application has exceeded a resource - // quota. - // "ERROR_CODE_DOS_API_DENIAL" - Client blocked by the application's - // Denial of Service protection configuration. - // "ERROR_CODE_TIMEOUT" - Deadline reached before the application - // responds. + // "ERROR_CODE_OVER_QUOTA" - Application has exceeded a resource quota. + // "ERROR_CODE_DOS_API_DENIAL" - Client blocked by the application's Denial + // of Service protection configuration. + // "ERROR_CODE_TIMEOUT" - Deadline reached before the application responds. ErrorCode string `json:"errorCode,omitempty"` - // MimeType: MIME type of file. Defaults to text/html. MimeType string `json:"mimeType,omitempty"` - // StaticFile: Static file content to be served for this error. StaticFile string `json:"staticFile,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ErrorCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ErrorCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ErrorHandler) MarshalJSON() ([]byte, error) { +func (s ErrorHandler) MarshalJSON() ([]byte, error) { type NoMethod ErrorHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FileInfo: Single source file that is part of the version to be -// deployed. Each source file that is deployed must be specified -// separately. +// FileInfo: Single source file that is part of the version to be deployed. +// Each source file that is deployed must be specified separately. type FileInfo struct { - // MimeType: The MIME type of the file.Defaults to the value from Google - // Cloud Storage. + // MimeType: The MIME type of the file.Defaults to the value from Google Cloud + // Storage. MimeType string `json:"mimeType,omitempty"` - // Sha1Sum: The SHA1 hash of the file, in hex. Sha1Sum string `json:"sha1Sum,omitempty"` - - // SourceUrl: URL source to use to fetch this file. Must be a URL to a - // resource in Google Cloud Storage in the form + // SourceUrl: URL source to use to fetch this file. Must be a URL to a resource + // in Google Cloud Storage in the form // 'http(s)://storage.googleapis.com//'. SourceUrl string `json:"sourceUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "MimeType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MimeType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MimeType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileInfo) MarshalJSON() ([]byte, error) { +func (s FileInfo) MarshalJSON() ([]byte, error) { type NoMethod FileInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HealthCheck: Health checking configuration for VM instances. -// Unhealthy instances are killed and replaced with new instances. Only -// applicable for instances in App Engine flexible environment. +// HealthCheck: Health checking configuration for VM instances. Unhealthy +// instances are killed and replaced with new instances. Only applicable for +// instances in App Engine flexible environment. type HealthCheck struct { // CheckInterval: Interval between health checks. CheckInterval string `json:"checkInterval,omitempty"` - - // DisableHealthCheck: Whether to explicitly disable health checks for - // this instance. + // DisableHealthCheck: Whether to explicitly disable health checks for this + // instance. DisableHealthCheck bool `json:"disableHealthCheck,omitempty"` - - // HealthyThreshold: Number of consecutive successful health checks - // required before receiving traffic. + // HealthyThreshold: Number of consecutive successful health checks required + // before receiving traffic. HealthyThreshold int64 `json:"healthyThreshold,omitempty"` - - // Host: Host header to send when performing an HTTP health check. - // Example: "myapp.appspot.com" + // Host: Host header to send when performing an HTTP health check. Example: + // "myapp.appspot.com" Host string `json:"host,omitempty"` - - // RestartThreshold: Number of consecutive failed health checks required - // before an instance is restarted. + // RestartThreshold: Number of consecutive failed health checks required before + // an instance is restarted. RestartThreshold int64 `json:"restartThreshold,omitempty"` - // Timeout: Time before the health check is considered failed. Timeout string `json:"timeout,omitempty"` - - // UnhealthyThreshold: Number of consecutive failed health checks - // required before removing traffic. + // UnhealthyThreshold: Number of consecutive failed health checks required + // before removing traffic. UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` - // ForceSendFields is a list of field names (e.g. "CheckInterval") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CheckInterval") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CheckInterval") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HealthCheck) MarshalJSON() ([]byte, error) { +func (s HealthCheck) MarshalJSON() ([]byte, error) { type NoMethod HealthCheck - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // IdentityAwareProxy: Identity-Aware Proxy type IdentityAwareProxy struct { - // Enabled: Whether the serving infrastructure will authenticate and - // authorize all incoming requests.If true, the oauth2_client_id and - // oauth2_client_secret fields must be non-empty. + // Enabled: Whether the serving infrastructure will authenticate and authorize + // all incoming requests.If true, the oauth2_client_id and oauth2_client_secret + // fields must be non-empty. Enabled bool `json:"enabled,omitempty"` - // Oauth2ClientId: OAuth2 client ID to use for the authentication flow. Oauth2ClientId string `json:"oauth2ClientId,omitempty"` - - // Oauth2ClientSecret: For security reasons, this value cannot be - // retrieved via the API. Instead, the SHA-256 hash of the value is - // returned in the oauth2_client_secret_sha256 field.@InputOnly + // Oauth2ClientSecret: For security reasons, this value cannot be retrieved via + // the API. Instead, the SHA-256 hash of the value is returned in the + // oauth2_client_secret_sha256 field.@InputOnly Oauth2ClientSecret string `json:"oauth2ClientSecret,omitempty"` - // Oauth2ClientSecretSha256: Hex-encoded SHA-256 hash of the client // secret.@OutputOnly Oauth2ClientSecretSha256 string `json:"oauth2ClientSecretSha256,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IdentityAwareProxy) MarshalJSON() ([]byte, error) { +func (s IdentityAwareProxy) MarshalJSON() ([]byte, error) { type NoMethod IdentityAwareProxy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Instance: An Instance resource is the computing unit that App Engine -// uses to automatically scale an application. +// Instance: An Instance resource is the computing unit that App Engine uses to +// automatically scale an application. type Instance struct { - // AppEngineRelease: App Engine release this instance is running - // on.@OutputOnly + // AppEngineRelease: App Engine release this instance is running on.@OutputOnly AppEngineRelease string `json:"appEngineRelease,omitempty"` - // Availability: Availability of the instance.@OutputOnly // // Possible values: @@ -1054,89 +891,61 @@ type Instance struct { // "RESIDENT" // "DYNAMIC" Availability string `json:"availability,omitempty"` - // AverageLatency: Average latency (ms) over the last minute.@OutputOnly AverageLatency int64 `json:"averageLatency,omitempty"` - // Errors: Number of errors since this instance was started.@OutputOnly Errors int64 `json:"errors,omitempty"` - // Id: Relative name of the instance within the version. Example: // instance-1.@OutputOnly Id string `json:"id,omitempty"` - // MemoryUsage: Total memory in use (bytes).@OutputOnly MemoryUsage int64 `json:"memoryUsage,omitempty,string"` - // Name: Full path to the Instance resource in the API. Example: - // apps/myapp/services/default/versions/v1/instances/instance-1.@OutputOn - // ly + // apps/myapp/services/default/versions/v1/instances/instance-1.@OutputOnly Name string `json:"name,omitempty"` - - // Qps: Average queries per second (QPS) over the last - // minute.@OutputOnly + // Qps: Average queries per second (QPS) over the last minute.@OutputOnly Qps float64 `json:"qps,omitempty"` - - // Requests: Number of requests since this instance was - // started.@OutputOnly + // Requests: Number of requests since this instance was started.@OutputOnly Requests int64 `json:"requests,omitempty"` - // StartTimestamp: Time that this instance was started.@OutputOnly StartTimestamp string `json:"startTimestamp,omitempty"` - - // VmId: Virtual machine ID of this instance. Only applicable for - // instances in App Engine flexible environment.@OutputOnly + // VmId: Virtual machine ID of this instance. Only applicable for instances in + // App Engine flexible environment.@OutputOnly VmId string `json:"vmId,omitempty"` - - // VmIp: The IP address of this instance. Only applicable for instances - // in App Engine flexible environment.@OutputOnly + // VmIp: The IP address of this instance. Only applicable for instances in App + // Engine flexible environment.@OutputOnly VmIp string `json:"vmIp,omitempty"` - // VmName: Name of the virtual machine where this instance lives. Only - // applicable for instances in App Engine flexible - // environment.@OutputOnly + // applicable for instances in App Engine flexible environment.@OutputOnly VmName string `json:"vmName,omitempty"` - - // VmStatus: Status of the virtual machine where this instance lives. - // Only applicable for instances in App Engine flexible - // environment.@OutputOnly + // VmStatus: Status of the virtual machine where this instance lives. Only + // applicable for instances in App Engine flexible environment.@OutputOnly VmStatus string `json:"vmStatus,omitempty"` - - // VmUnlocked: Whether this instance is in debug mode. Only applicable - // for instances in App Engine flexible environment.@OutputOnly + // VmUnlocked: Whether this instance is in debug mode. Only applicable for + // instances in App Engine flexible environment.@OutputOnly VmUnlocked bool `json:"vmUnlocked,omitempty"` - - // VmZoneName: Zone where the virtual machine is located. Only - // applicable for instances in App Engine flexible - // environment.@OutputOnly + // VmZoneName: Zone where the virtual machine is located. Only applicable for + // instances in App Engine flexible environment.@OutputOnly VmZoneName string `json:"vmZoneName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AppEngineRelease") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AppEngineRelease") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AppEngineRelease") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Instance) MarshalJSON() ([]byte, error) { +func (s Instance) MarshalJSON() ([]byte, error) { type NoMethod Instance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Instance) UnmarshalJSON(data []byte) error { @@ -1158,702 +967,522 @@ func (s *Instance) UnmarshalJSON(data []byte) error { type Library struct { // Name: Name of the library. Example: "django". Name string `json:"name,omitempty"` - // Version: Version of the library to select, or "latest". Version string `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Library) MarshalJSON() ([]byte, error) { +func (s Library) MarshalJSON() ([]byte, error) { type NoMethod Library - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListInstancesResponse: Response message for Instances.ListInstances. type ListInstancesResponse struct { // Instances: The instances belonging to the requested version. Instances []*Instance `json:"instances,omitempty"` - - // NextPageToken: Continuation token for fetching the next page of - // results. + // NextPageToken: Continuation token for fetching the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Instances") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instances") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instances") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListInstancesResponse) MarshalJSON() ([]byte, error) { +func (s ListInstancesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListInstancesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. +// ListLocationsResponse: The response message for Locations.ListLocations. type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. + // Locations: A list of locations that matches the specified filter in the + // request. Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListServicesResponse: Response message for Services.ListServices. type ListServicesResponse struct { - // NextPageToken: Continuation token for fetching the next page of - // results. + // NextPageToken: Continuation token for fetching the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // Services: The services belonging to the requested application. Services []*Service `json:"services,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListServicesResponse) MarshalJSON() ([]byte, error) { +func (s ListServicesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListServicesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListVersionsResponse: Response message for Versions.ListVersions. type ListVersionsResponse struct { - // NextPageToken: Continuation token for fetching the next page of - // results. + // NextPageToken: Continuation token for fetching the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // Versions: The versions belonging to the requested service. Versions []*Version `json:"versions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListVersionsResponse) MarshalJSON() ([]byte, error) { +func (s ListVersionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListVersionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Location: A resource that represents Google Cloud Platform location. type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For // example // {"cloud.googleapis.com/region": "us-east1"} // Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". + // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between - // implementations. For example: - // "projects/example-project/locations/us-east1" + // implementations. For example: "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LocationMetadata: Metadata for the given -// google.cloud.location.Location. +// LocationMetadata: Metadata for the given google.cloud.location.Location. type LocationMetadata struct { - // FlexibleEnvironmentAvailable: App Engine flexible environment is - // available in the given location.@OutputOnly + // FlexibleEnvironmentAvailable: App Engine flexible environment is available + // in the given location.@OutputOnly FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"` - - // StandardEnvironmentAvailable: App Engine standard environment is - // available in the given location.@OutputOnly + // StandardEnvironmentAvailable: App Engine standard environment is available + // in the given location.@OutputOnly StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "FlexibleEnvironmentAvailable") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "FlexibleEnvironmentAvailable") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "FlexibleEnvironmentAvailable") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "FlexibleEnvironmentAvailable") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LocationMetadata) MarshalJSON() ([]byte, error) { +func (s LocationMetadata) MarshalJSON() ([]byte, error) { type NoMethod LocationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ManualScaling: A service with manual scaling runs continuously, -// allowing you to perform complex initialization and rely on the state -// of its memory over time. +// ManualScaling: A service with manual scaling runs continuously, allowing you +// to perform complex initialization and rely on the state of its memory over +// time. type ManualScaling struct { - // Instances: Number of instances to assign to the service at the start. - // This number can later be altered by using the Modules API + // Instances: Number of instances to assign to the service at the start. This + // number can later be altered by using the Modules API // (https://cloud.google.com/appengine/docs/python/modules/functions) // set_num_instances() function. Instances int64 `json:"instances,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instances") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instances") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instances") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManualScaling) MarshalJSON() ([]byte, error) { +func (s ManualScaling) MarshalJSON() ([]byte, error) { type NoMethod ManualScaling - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Network: Extra network settings. Only applicable for VM runtimes. type Network struct { - // ForwardedPorts: List of ports, or port pairs, to forward from the - // virtual machine to the application container. + // ForwardedPorts: List of ports, or port pairs, to forward from the virtual + // machine to the application container. ForwardedPorts []string `json:"forwardedPorts,omitempty"` - // InstanceTag: Tag to apply to the VM instance during creation. InstanceTag string `json:"instanceTag,omitempty"` - - // Name: Google Cloud Platform network where the virtual machines are - // created. Specify the short name, not the resource path.Defaults to - // default. + // Name: Google Cloud Platform network where the virtual machines are created. + // Specify the short name, not the resource path.Defaults to default. Name string `json:"name,omitempty"` - - // SubnetworkName: Google Cloud Platform sub-network where the virtual - // machines are created. Specify the short name, not the resource - // path.If a subnetwork name is specified, a network name will also be - // required unless it is for the default network. - // If the network the VM instance is being created in is a Legacy - // network, then the IP address is allocated from the IPv4Range. - // If the network the VM instance is being created in is an auto Subnet - // Mode Network, then only network name should be specified (not the - // subnetwork_name) and the IP address is created from the IPCidrRange - // of the subnetwork that exists in that zone for that network. - // If the network the VM instance is being created in is a custom Subnet - // Mode Network, then the subnetwork_name must be specified and the IP - // address is created from the IPCidrRange of the subnetwork.If - // specified, the subnetwork must exist in the same region as the Flex - // app. + // SubnetworkName: Google Cloud Platform sub-network where the virtual machines + // are created. Specify the short name, not the resource path.If a subnetwork + // name is specified, a network name will also be required unless it is for the + // default network. + // If the network the VM instance is being created in is a Legacy network, then + // the IP address is allocated from the IPv4Range. + // If the network the VM instance is being created in is an auto Subnet Mode + // Network, then only network name should be specified (not the + // subnetwork_name) and the IP address is created from the IPCidrRange of the + // subnetwork that exists in that zone for that network. + // If the network the VM instance is being created in is a custom Subnet Mode + // Network, then the subnetwork_name must be specified and the IP address is + // created from the IPCidrRange of the subnetwork.If specified, the subnetwork + // must exist in the same region as the Flex app. SubnetworkName string `json:"subnetworkName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ForwardedPorts") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ForwardedPorts") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ForwardedPorts") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Network) MarshalJSON() ([]byte, error) { +func (s Network) MarshalJSON() ([]byte, error) { type NoMethod Network - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NetworkUtilization: Target scaling by network usage. Only applicable -// for VM runtimes. +// NetworkUtilization: Target scaling by network usage. Only applicable for VM +// runtimes. type NetworkUtilization struct { // TargetReceivedBytesPerSec: Target bytes received per second. TargetReceivedBytesPerSec int64 `json:"targetReceivedBytesPerSec,omitempty"` - // TargetReceivedPacketsPerSec: Target packets received per second. TargetReceivedPacketsPerSec int64 `json:"targetReceivedPacketsPerSec,omitempty"` - // TargetSentBytesPerSec: Target bytes sent per second. TargetSentBytesPerSec int64 `json:"targetSentBytesPerSec,omitempty"` - // TargetSentPacketsPerSec: Target packets sent per second. TargetSentPacketsPerSec int64 `json:"targetSentPacketsPerSec,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "TargetReceivedBytesPerSec") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetReceivedBytesPerSec") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "TargetReceivedBytesPerSec") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "TargetReceivedBytesPerSec") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NetworkUtilization) MarshalJSON() ([]byte, error) { +func (s NetworkUtilization) MarshalJSON() ([]byte, error) { type NoMethod NetworkUtilization - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is false, it means the operation is still in - // progress. If true, the operation is completed, and either error or - // response is available. + // Done: If the value is false, it means the operation is still in progress. If + // true, the operation is completed, and either error or response is available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the name should have the format of - // operations/some/unique/name. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the name + // should have the format of operations/some/unique/name. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as Delete, the - // response is google.protobuf.Empty. If the original method is standard - // Get/Create/Update, the response should be the resource. For other - // methods, the response should have the type XxxResponse, where Xxx is - // the original method name. For example, if the original method name is - // TakeSnapshot(), the inferred response type is TakeSnapshotResponse. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as Delete, the response is + // google.protobuf.Empty. If the original method is standard Get/Create/Update, + // the response should be the resource. For other methods, the response should + // have the type XxxResponse, where Xxx is the original method name. For + // example, if the original method name is TakeSnapshot(), the inferred + // response type is TakeSnapshotResponse. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadata: Metadata for the given -// google.longrunning.Operation. +// OperationMetadata: Metadata for the given google.longrunning.Operation. type OperationMetadata struct { // EndTime: Timestamp that this operation completed.@OutputOnly EndTime string `json:"endTime,omitempty"` - // InsertTime: Timestamp that this operation was created.@OutputOnly InsertTime string `json:"insertTime,omitempty"` - // Method: API method that initiated this operation. Example: // google.appengine.v1beta4.Version.CreateVersion.@OutputOnly Method string `json:"method,omitempty"` - - // OperationType: Type of this operation. Deprecated, use method field - // instead. Example: "create_version".@OutputOnly + // OperationType: Type of this operation. Deprecated, use method field instead. + // Example: "create_version".@OutputOnly OperationType string `json:"operationType,omitempty"` - - // Target: Name of the resource that this operation is acting on. - // Example: apps/myapp/modules/default.@OutputOnly + // Target: Name of the resource that this operation is acting on. Example: + // apps/myapp/modules/default.@OutputOnly Target string `json:"target,omitempty"` - // User: User who requested this operation.@OutputOnly User string `json:"user,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { +func (s OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadataV1: Metadata for the given -// google.longrunning.Operation. +// OperationMetadataV1: Metadata for the given google.longrunning.Operation. type OperationMetadataV1 struct { CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"` - // EndTime: Time that this operation completed.@OutputOnly EndTime string `json:"endTime,omitempty"` - - // EphemeralMessage: Ephemeral message that may change every time the - // operation is polled. @OutputOnly + // EphemeralMessage: Ephemeral message that may change every time the operation + // is polled. @OutputOnly EphemeralMessage string `json:"ephemeralMessage,omitempty"` - // InsertTime: Time that this operation was created.@OutputOnly InsertTime string `json:"insertTime,omitempty"` - // Method: API method that initiated this operation. Example: // google.appengine.v1.Versions.CreateVersion.@OutputOnly Method string `json:"method,omitempty"` - - // Target: Name of the resource that this operation is acting on. - // Example: apps/myapp/services/default.@OutputOnly + // Target: Name of the resource that this operation is acting on. Example: + // apps/myapp/services/default.@OutputOnly Target string `json:"target,omitempty"` - // User: User who requested this operation.@OutputOnly User string `json:"user,omitempty"` - - // Warning: Durable messages that persist on every operation poll. - // @OutputOnly + // Warning: Durable messages that persist on every operation poll. @OutputOnly Warning []string `json:"warning,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CreateVersionMetadata") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CreateVersionMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateVersionMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) { +func (s OperationMetadataV1) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadataV1 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadataV1Alpha: Metadata for the given // google.longrunning.Operation. type OperationMetadataV1Alpha struct { CreateVersionMetadata *CreateVersionMetadataV1Alpha `json:"createVersionMetadata,omitempty"` - // EndTime: Time that this operation completed.@OutputOnly EndTime string `json:"endTime,omitempty"` - - // EphemeralMessage: Ephemeral message that may change every time the - // operation is polled. @OutputOnly + // EphemeralMessage: Ephemeral message that may change every time the operation + // is polled. @OutputOnly EphemeralMessage string `json:"ephemeralMessage,omitempty"` - // InsertTime: Time that this operation was created.@OutputOnly InsertTime string `json:"insertTime,omitempty"` - // Method: API method that initiated this operation. Example: // google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly Method string `json:"method,omitempty"` - - // Target: Name of the resource that this operation is acting on. - // Example: apps/myapp/services/default.@OutputOnly + // Target: Name of the resource that this operation is acting on. Example: + // apps/myapp/services/default.@OutputOnly Target string `json:"target,omitempty"` - // User: User who requested this operation.@OutputOnly User string `json:"user,omitempty"` - - // Warning: Durable messages that persist on every operation poll. - // @OutputOnly + // Warning: Durable messages that persist on every operation poll. @OutputOnly Warning []string `json:"warning,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CreateVersionMetadata") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CreateVersionMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateVersionMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) { +func (s OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadataV1Alpha - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadataV1Beta: Metadata for the given // google.longrunning.Operation. type OperationMetadataV1Beta struct { CreateVersionMetadata *CreateVersionMetadataV1Beta `json:"createVersionMetadata,omitempty"` - // EndTime: Time that this operation completed.@OutputOnly EndTime string `json:"endTime,omitempty"` - - // EphemeralMessage: Ephemeral message that may change every time the - // operation is polled. @OutputOnly + // EphemeralMessage: Ephemeral message that may change every time the operation + // is polled. @OutputOnly EphemeralMessage string `json:"ephemeralMessage,omitempty"` - // InsertTime: Time that this operation was created.@OutputOnly InsertTime string `json:"insertTime,omitempty"` - // Method: API method that initiated this operation. Example: // google.appengine.v1beta.Versions.CreateVersion.@OutputOnly Method string `json:"method,omitempty"` - - // Target: Name of the resource that this operation is acting on. - // Example: apps/myapp/services/default.@OutputOnly + // Target: Name of the resource that this operation is acting on. Example: + // apps/myapp/services/default.@OutputOnly Target string `json:"target,omitempty"` - // User: User who requested this operation.@OutputOnly User string `json:"user,omitempty"` - - // Warning: Durable messages that persist on every operation poll. - // @OutputOnly + // Warning: Durable messages that persist on every operation poll. @OutputOnly Warning []string `json:"warning,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CreateVersionMetadata") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CreateVersionMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateVersionMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadataV1Beta) MarshalJSON() ([]byte, error) { +func (s OperationMetadataV1Beta) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadataV1Beta - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadataV1Beta5: Metadata for the given @@ -1861,113 +1490,85 @@ func (s *OperationMetadataV1Beta) MarshalJSON() ([]byte, error) { type OperationMetadataV1Beta5 struct { // EndTime: Timestamp that this operation completed.@OutputOnly EndTime string `json:"endTime,omitempty"` - // InsertTime: Timestamp that this operation was created.@OutputOnly InsertTime string `json:"insertTime,omitempty"` - // Method: API method name that initiated this operation. Example: // google.appengine.v1beta5.Version.CreateVersion.@OutputOnly Method string `json:"method,omitempty"` - - // Target: Name of the resource that this operation is acting on. - // Example: apps/myapp/services/default.@OutputOnly + // Target: Name of the resource that this operation is acting on. Example: + // apps/myapp/services/default.@OutputOnly Target string `json:"target,omitempty"` - // User: User who requested this operation.@OutputOnly User string `json:"user,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadataV1Beta5) MarshalJSON() ([]byte, error) { +func (s OperationMetadataV1Beta5) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadataV1Beta5 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RequestUtilization: Target scaling by request utilization. Only -// applicable for VM runtimes. +// RequestUtilization: Target scaling by request utilization. Only applicable +// for VM runtimes. type RequestUtilization struct { // TargetConcurrentRequests: Target number of concurrent requests. TargetConcurrentRequests int64 `json:"targetConcurrentRequests,omitempty"` - // TargetRequestCountPerSec: Target requests per second. TargetRequestCountPerSec int64 `json:"targetRequestCountPerSec,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "TargetConcurrentRequests") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetConcurrentRequests") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TargetConcurrentRequests") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TargetConcurrentRequests") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RequestUtilization) MarshalJSON() ([]byte, error) { +func (s RequestUtilization) MarshalJSON() ([]byte, error) { type NoMethod RequestUtilization - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Resources: Machine resources for a version. type Resources struct { // Cpu: Number of CPU cores needed. Cpu float64 `json:"cpu,omitempty"` - // DiskGb: Disk size (GB) needed. DiskGb float64 `json:"diskGb,omitempty"` - // MemoryGb: Memory (GB) needed. MemoryGb float64 `json:"memoryGb,omitempty"` - // Volumes: Volumes mounted within the app container. Volumes []*Volume `json:"volumes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cpu") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cpu") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cpu") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Resources) MarshalJSON() ([]byte, error) { +func (s Resources) MarshalJSON() ([]byte, error) { type NoMethod Resources - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Resources) UnmarshalJSON(data []byte) error { @@ -1988,677 +1589,542 @@ func (s *Resources) UnmarshalJSON(data []byte) error { return nil } -// ScriptHandler: Executes a script to handle the request that matches -// the URL pattern. +// ScriptHandler: Executes a script to handle the request that matches the URL +// pattern. type ScriptHandler struct { // ScriptPath: Path to the script from the application root directory. ScriptPath string `json:"scriptPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "ScriptPath") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ScriptPath") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ScriptPath") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ScriptHandler) MarshalJSON() ([]byte, error) { +func (s ScriptHandler) MarshalJSON() ([]byte, error) { type NoMethod ScriptHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Service: A Service resource is a logical component of an application -// that can share state and communicate in a secure fashion with other -// services. For example, an application that handles customer requests -// might include separate services to handle other tasks such as API -// requests from mobile devices or backend data analysis. Each service -// has a collection of versions that define a specific set of code used -// to implement the functionality of that service. +// Service: A Service resource is a logical component of an application that +// can share state and communicate in a secure fashion with other services. For +// example, an application that handles customer requests might include +// separate services to handle other tasks such as API requests from mobile +// devices or backend data analysis. Each service has a collection of versions +// that define a specific set of code used to implement the functionality of +// that service. type Service struct { // Id: Relative name of the service within the application. Example: // default.@OutputOnly Id string `json:"id,omitempty"` - // Name: Full path to the Service resource in the API. Example: // apps/myapp/services/default.@OutputOnly Name string `json:"name,omitempty"` - - // Split: Mapping that defines fractional HTTP traffic diversion to - // different versions within the service. + // Split: Mapping that defines fractional HTTP traffic diversion to different + // versions within the service. Split *TrafficSplit `json:"split,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Service) MarshalJSON() ([]byte, error) { +func (s Service) MarshalJSON() ([]byte, error) { type NoMethod Service - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SourceReference: Reference to a particular snapshot of the source -// tree used to build and deploy the application. +// SourceReference: Reference to a particular snapshot of the source tree used +// to build and deploy the application. type SourceReference struct { // Repository: URI string identifying the repository. Example: // "https://source.developers.google.com/p/app-123/r/default" Repository string `json:"repository,omitempty"` - - // RevisionId: The canonical, persistent identifier of the deployed - // revision. Aliases that include tags or branch names are not allowed. - // Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b" + // RevisionId: The canonical, persistent identifier of the deployed revision. + // Aliases that include tags or branch names are not allowed. Example (git): + // "2198322f89e0bb2e25021667c2ed489d1fd34e6b" RevisionId string `json:"revisionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Repository") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Repository") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Repository") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceReference) MarshalJSON() ([]byte, error) { +func (s SourceReference) MarshalJSON() ([]byte, error) { type NoMethod SourceReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StaticFilesHandler: Files served directly to the user for a given -// URL, such as images, CSS stylesheets, or JavaScript source files. -// Static file handlers describe which files in the application -// directory are static files, and which URLs serve them. +// StaticFilesHandler: Files served directly to the user for a given URL, such +// as images, CSS stylesheets, or JavaScript source files. Static file handlers +// describe which files in the application directory are static files, and +// which URLs serve them. type StaticFilesHandler struct { - // ApplicationReadable: Whether files should also be uploaded as code - // data. By default, files declared in static file handlers are uploaded - // as static data and are only served to end users; they cannot be read - // by the application. If enabled, uploads are charged against both your - // code and static data storage resource quotas. + // ApplicationReadable: Whether files should also be uploaded as code data. By + // default, files declared in static file handlers are uploaded as static data + // and are only served to end users; they cannot be read by the application. If + // enabled, uploads are charged against both your code and static data storage + // resource quotas. ApplicationReadable bool `json:"applicationReadable,omitempty"` - - // Expiration: Time a static file served by this handler should be - // cached. + // Expiration: Time a static file served by this handler should be cached. Expiration string `json:"expiration,omitempty"` - // HttpHeaders: HTTP headers to use for all responses from these URLs. HttpHeaders map[string]string `json:"httpHeaders,omitempty"` - - // MimeType: MIME type used to serve all files served by this handler. - // Defaults to file-specific MIME types, which are derived from each - // file's filename extension. + // MimeType: MIME type used to serve all files served by this handler. Defaults + // to file-specific MIME types, which are derived from each file's filename + // extension. MimeType string `json:"mimeType,omitempty"` - // Path: Path to the static files matched by the URL pattern, from the - // application root directory. The path can refer to text matched in - // groupings in the URL pattern. + // application root directory. The path can refer to text matched in groupings + // in the URL pattern. Path string `json:"path,omitempty"` - - // RequireMatchingFile: Whether this handler should match the request if - // the file referenced by the handler does not exist. + // RequireMatchingFile: Whether this handler should match the request if the + // file referenced by the handler does not exist. RequireMatchingFile bool `json:"requireMatchingFile,omitempty"` - - // UploadPathRegex: Regular expression that matches the file paths for - // all files that should be referenced by this handler. + // UploadPathRegex: Regular expression that matches the file paths for all + // files that should be referenced by this handler. UploadPathRegex string `json:"uploadPathRegex,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApplicationReadable") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApplicationReadable") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApplicationReadable") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApplicationReadable") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StaticFilesHandler) MarshalJSON() ([]byte, error) { +func (s StaticFilesHandler) MarshalJSON() ([]byte, error) { type NoMethod StaticFilesHandler - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The Status type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). The error -// model is designed to be: +// Status: The Status type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). The error model is designed to +// be: // Simple to use and understand for most users -// Flexible enough to meet unexpected needsOverviewThe Status message -// contains three pieces of data: error code, error message, and error -// details. The error code should be an enum value of google.rpc.Code, -// but it may accept additional error codes if needed. The error message -// should be a developer-facing English message that helps developers -// understand and resolve the error. If a localized user-facing error -// message is needed, put the localized message in the error details or -// localize it in the client. The optional error details may contain -// arbitrary information about the error. There is a predefined set of -// error detail types in the package google.rpc that can be used for -// common error conditions.Language mappingThe Status message is the -// logical representation of the error model, but it is not necessarily -// the actual wire format. When the Status message is exposed in -// different client libraries and different wire protocols, it can be -// mapped differently. For example, it will likely be mapped to some -// exceptions in Java, but more likely mapped to some error codes in -// C.Other usesThe error model and the Status message can be used in a -// variety of environments, either with or without APIs, to provide a -// consistent developer experience across different environments.Example -// uses of this error model include: -// Partial errors. If a service needs to return partial errors to the -// client, it may embed the Status in the normal response to indicate -// the partial errors. -// Workflow errors. A typical workflow has multiple steps. Each step may -// have a Status message for error reporting. -// Batch operations. If a client uses batch request and batch response, -// the Status message should be used directly inside batch response, one -// for each error sub-response. +// Flexible enough to meet unexpected needsOverviewThe Status message contains +// three pieces of data: error code, error message, and error details. The +// error code should be an enum value of google.rpc.Code, but it may accept +// additional error codes if needed. The error message should be a +// developer-facing English message that helps developers understand and +// resolve the error. If a localized user-facing error message is needed, put +// the localized message in the error details or localize it in the client. The +// optional error details may contain arbitrary information about the error. +// There is a predefined set of error detail types in the package google.rpc +// that can be used for common error conditions.Language mappingThe Status +// message is the logical representation of the error model, but it is not +// necessarily the actual wire format. When the Status message is exposed in +// different client libraries and different wire protocols, it can be mapped +// differently. For example, it will likely be mapped to some exceptions in +// Java, but more likely mapped to some error codes in C.Other usesThe error +// model and the Status message can be used in a variety of environments, +// either with or without APIs, to provide a consistent developer experience +// across different environments.Example uses of this error model +// include: +// Partial errors. If a service needs to return partial errors to the client, +// it may embed the Status in the normal response to indicate the partial +// errors. +// Workflow errors. A typical workflow has multiple steps. Each step may have a +// Status message for error reporting. +// Batch operations. If a client uses batch request and batch response, the +// Status message should be used directly inside batch response, one for each +// error sub-response. // Asynchronous operations. If an API call embeds asynchronous operation // results in its response, the status of those operations should be // represented directly using the Status message. -// Logging. If some API errors are stored in logs, the message Status -// could be used directly after any stripping needed for -// security/privacy reasons. +// Logging. If some API errors are stored in logs, the message Status could be +// used directly after any stripping needed for security/privacy reasons. type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TrafficSplit: Traffic routing configuration for versions within a -// single service. Traffic splits define how traffic directed to the -// service is assigned to versions. +// TrafficSplit: Traffic routing configuration for versions within a single +// service. Traffic splits define how traffic directed to the service is +// assigned to versions. type TrafficSplit struct { - // Allocations: Mapping from version IDs within the service to - // fractional (0.000, 1] allocations of traffic for that version. Each - // version can be specified only once, but some versions in the service - // may not have any traffic allocation. Services that have traffic - // allocated cannot be deleted until either the service is deleted or - // their traffic allocation is removed. Allocations must sum to 1. Up to - // two decimal place precision is supported for IP-based splits and up - // to three decimal places is supported for cookie-based splits. + // Allocations: Mapping from version IDs within the service to fractional + // (0.000, 1] allocations of traffic for that version. Each version can be + // specified only once, but some versions in the service may not have any + // traffic allocation. Services that have traffic allocated cannot be deleted + // until either the service is deleted or their traffic allocation is removed. + // Allocations must sum to 1. Up to two decimal place precision is supported + // for IP-based splits and up to three decimal places is supported for + // cookie-based splits. Allocations map[string]float64 `json:"allocations,omitempty"` - - // ShardBy: Mechanism used to determine which version a request is sent - // to. The traffic selection algorithm will be stable for either type - // until allocations are changed. + // ShardBy: Mechanism used to determine which version a request is sent to. The + // traffic selection algorithm will be stable for either type until allocations + // are changed. // // Possible values: // "UNSPECIFIED" - Diversion method unspecified. - // "COOKIE" - Diversion based on a specially named cookie, - // "GOOGAPPUID." The cookie must be set by the application itself or - // else no diversion will occur. - // "IP" - Diversion based on applying the modulus operation to a - // fingerprint of the IP address. + // "COOKIE" - Diversion based on a specially named cookie, "GOOGAPPUID." The + // cookie must be set by the application itself or else no diversion will + // occur. + // "IP" - Diversion based on applying the modulus operation to a fingerprint + // of the IP address. ShardBy string `json:"shardBy,omitempty"` - // ForceSendFields is a list of field names (e.g. "Allocations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Allocations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Allocations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TrafficSplit) MarshalJSON() ([]byte, error) { +func (s TrafficSplit) MarshalJSON() ([]byte, error) { type NoMethod TrafficSplit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UrlDispatchRule: Rules to match an HTTP request and dispatch that -// request to a service. +// UrlDispatchRule: Rules to match an HTTP request and dispatch that request to +// a service. type UrlDispatchRule struct { - // Domain: Domain name to match against. The wildcard "*" is supported - // if specified before a period: "*.".Defaults to matching all domains: - // "*". + // Domain: Domain name to match against. The wildcard "*" is supported if + // specified before a period: "*.".Defaults to matching all domains: "*". Domain string `json:"domain,omitempty"` - - // Path: Pathname within the host. Must start with a "/". A single "*" - // can be included at the end of the path. The sum of the lengths of the - // domain and path may not exceed 100 characters. + // Path: Pathname within the host. Must start with a "/". A single "*" can be + // included at the end of the path. The sum of the lengths of the domain and + // path may not exceed 100 characters. Path string `json:"path,omitempty"` - - // Service: Resource id of a service in this application that should - // serve the matched request. The service must already exist. Example: - // default. + // Service: Resource id of a service in this application that should serve the + // matched request. The service must already exist. Example: default. Service string `json:"service,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Domain") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Domain") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Domain") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlDispatchRule) MarshalJSON() ([]byte, error) { +func (s UrlDispatchRule) MarshalJSON() ([]byte, error) { type NoMethod UrlDispatchRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UrlMap: URL pattern and description of how the URL should be handled. -// App Engine can handle URLs by executing application code, or by -// serving static files uploaded with the version, such as images, CSS, -// or JavaScript. +// UrlMap: URL pattern and description of how the URL should be handled. App +// Engine can handle URLs by executing application code, or by serving static +// files uploaded with the version, such as images, CSS, or JavaScript. type UrlMap struct { // ApiEndpoint: Uses API Endpoints to handle requests. ApiEndpoint *ApiEndpointHandler `json:"apiEndpoint,omitempty"` - - // AuthFailAction: Action to take when users access resources that - // require authentication. Defaults to redirect. + // AuthFailAction: Action to take when users access resources that require + // authentication. Defaults to redirect. // // Possible values: - // "AUTH_FAIL_ACTION_UNSPECIFIED" - Not specified. - // AUTH_FAIL_ACTION_REDIRECT is assumed. - // "AUTH_FAIL_ACTION_REDIRECT" - Redirects user to - // "accounts.google.com". The user is redirected back to the application - // URL after signing in or creating an account. - // "AUTH_FAIL_ACTION_UNAUTHORIZED" - Rejects request with an401 HTTP - // status code and an error message. + // "AUTH_FAIL_ACTION_UNSPECIFIED" - Not specified. AUTH_FAIL_ACTION_REDIRECT + // is assumed. + // "AUTH_FAIL_ACTION_REDIRECT" - Redirects user to "accounts.google.com". The + // user is redirected back to the application URL after signing in or creating + // an account. + // "AUTH_FAIL_ACTION_UNAUTHORIZED" - Rejects request with an401 HTTP status + // code and an error message. AuthFailAction string `json:"authFailAction,omitempty"` - // Login: Level of login required to access this resource. // // Possible values: // "LOGIN_UNSPECIFIED" - Not specified. LOGIN_OPTIONAL is assumed. // "LOGIN_OPTIONAL" - Does not require that the user is signed in. - // "LOGIN_ADMIN" - If the user is not signed in, the auth_fail_action - // is taken. In addition, if the user is not an administrator for the - // application, they are given an error message regardless of - // auth_fail_action. If the user is an administrator, the handler - // proceeds. + // "LOGIN_ADMIN" - If the user is not signed in, the auth_fail_action is + // taken. In addition, if the user is not an administrator for the application, + // they are given an error message regardless of auth_fail_action. If the user + // is an administrator, the handler proceeds. // "LOGIN_REQUIRED" - If the user has signed in, the handler proceeds // normally. Otherwise, the action given in auth_fail_action is taken. Login string `json:"login,omitempty"` - - // RedirectHttpResponseCode: 30x code to use when performing redirects - // for the secure field. Defaults to 302. + // RedirectHttpResponseCode: 30x code to use when performing redirects for the + // secure field. Defaults to 302. // // Possible values: - // "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" - Not specified. 302 is - // assumed. + // "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" - Not specified. 302 is assumed. // "REDIRECT_HTTP_RESPONSE_CODE_301" - 301 Moved Permanently code. // "REDIRECT_HTTP_RESPONSE_CODE_302" - 302 Moved Temporarily code. // "REDIRECT_HTTP_RESPONSE_CODE_303" - 303 See Other code. // "REDIRECT_HTTP_RESPONSE_CODE_307" - 307 Temporary Redirect code. RedirectHttpResponseCode string `json:"redirectHttpResponseCode,omitempty"` - // Script: Executes a script to handle the request that matches this URL // pattern. Script *ScriptHandler `json:"script,omitempty"` - // SecurityLevel: Security (HTTPS) enforcement for this URL. // // Possible values: // "SECURE_UNSPECIFIED" - Not specified. - // "SECURE_DEFAULT" - Both HTTP and HTTPS requests with URLs that - // match the handler succeed without redirects. The application can - // examine the request to determine which protocol was used, and respond - // accordingly. - // "SECURE_NEVER" - Requests for a URL that match this handler that - // use HTTPS are automatically redirected to the HTTP equivalent URL. - // "SECURE_OPTIONAL" - Both HTTP and HTTPS requests with URLs that - // match the handler succeed without redirects. The application can - // examine the request to determine which protocol was used and respond - // accordingly. - // "SECURE_ALWAYS" - Requests for a URL that match this handler that - // do not use HTTPS are automatically redirected to the HTTPS URL with - // the same path. Query parameters are reserved for the redirect. + // "SECURE_DEFAULT" - Both HTTP and HTTPS requests with URLs that match the + // handler succeed without redirects. The application can examine the request + // to determine which protocol was used, and respond accordingly. + // "SECURE_NEVER" - Requests for a URL that match this handler that use HTTPS + // are automatically redirected to the HTTP equivalent URL. + // "SECURE_OPTIONAL" - Both HTTP and HTTPS requests with URLs that match the + // handler succeed without redirects. The application can examine the request + // to determine which protocol was used and respond accordingly. + // "SECURE_ALWAYS" - Requests for a URL that match this handler that do not + // use HTTPS are automatically redirected to the HTTPS URL with the same path. + // Query parameters are reserved for the redirect. SecurityLevel string `json:"securityLevel,omitempty"` - // StaticFiles: Returns the contents of a file, such as an image, as the // response. StaticFiles *StaticFilesHandler `json:"staticFiles,omitempty"` - - // UrlRegex: A URL prefix. Uses regular expression syntax, which means - // regexp special characters must be escaped, but should not contain - // groupings. All URLs that begin with this prefix are handled by this - // handler, using the portion of the URL after the prefix as part of the - // file path. + // UrlRegex: A URL prefix. Uses regular expression syntax, which means regexp + // special characters must be escaped, but should not contain groupings. All + // URLs that begin with this prefix are handled by this handler, using the + // portion of the URL after the prefix as part of the file path. UrlRegex string `json:"urlRegex,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiEndpoint") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiEndpoint") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiEndpoint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlMap) MarshalJSON() ([]byte, error) { +func (s UrlMap) MarshalJSON() ([]byte, error) { type NoMethod UrlMap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Version: A Version resource is a specific set of source code and // configuration files that are deployed into a service. type Version struct { // ApiConfig: Serving configuration for Google Cloud Endpoints - // (https://cloud.google.com/appengine/docs/python/endpoints/).Only - // returned in GET requests if view=FULL is set. + // (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in + // GET requests if view=FULL is set. ApiConfig *ApiConfigHandler `json:"apiConfig,omitempty"` - - // AutomaticScaling: Automatic scaling is based on request rate, - // response latencies, and other application metrics. + // AutomaticScaling: Automatic scaling is based on request rate, response + // latencies, and other application metrics. AutomaticScaling *AutomaticScaling `json:"automaticScaling,omitempty"` - - // BasicScaling: A service with basic scaling will create an instance - // when the application receives a request. The instance will be turned - // down when the app becomes idle. Basic scaling is ideal for work that - // is intermittent or driven by user activity. + // BasicScaling: A service with basic scaling will create an instance when the + // application receives a request. The instance will be turned down when the + // app becomes idle. Basic scaling is ideal for work that is intermittent or + // driven by user activity. BasicScaling *BasicScaling `json:"basicScaling,omitempty"` - - // BetaSettings: Metadata settings that are supplied to this version to - // enable beta runtime features. + // BetaSettings: Metadata settings that are supplied to this version to enable + // beta runtime features. BetaSettings map[string]string `json:"betaSettings,omitempty"` - // CreationTime: Time that this version was created.@OutputOnly CreationTime string `json:"creationTime,omitempty"` - // DefaultExpiration: Duration that static files should be cached by web // proxies and browsers. Only applicable if the corresponding // StaticFilesHandler // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#staticfileshandler) - // does not specify its own expiration time.Only returned in GET - // requests if view=FULL is set. + // does not specify its own expiration time.Only returned in GET requests if + // view=FULL is set. DefaultExpiration string `json:"defaultExpiration,omitempty"` - - // Deployer: Email address of the user who created this - // version.@OutputOnly + // Deployer: Email address of the user who created this version.@OutputOnly Deployer string `json:"deployer,omitempty"` - - // Deployment: Code and application artifacts that make up this - // version.Only returned in GET requests if view=FULL is set. + // Deployment: Code and application artifacts that make up this version.Only + // returned in GET requests if view=FULL is set. Deployment *Deployment `json:"deployment,omitempty"` - - // DiskUsageBytes: Total size of version files hosted on App Engine disk - // in bytes.@OutputOnly + // DiskUsageBytes: Total size of version files hosted on App Engine disk in + // bytes.@OutputOnly DiskUsageBytes int64 `json:"diskUsageBytes,omitempty,string"` - - // EndpointsApiService: Cloud Endpoints configuration.If - // endpoints_api_service is set, the Cloud Endpoints Extensible Service - // Proxy will be provided to serve the API implemented by the app. + // EndpointsApiService: Cloud Endpoints configuration.If endpoints_api_service + // is set, the Cloud Endpoints Extensible Service Proxy will be provided to + // serve the API implemented by the app. EndpointsApiService *EndpointsApiService `json:"endpointsApiService,omitempty"` - - // Env: App Engine execution environment to use for this - // version.Defaults to 1. + // Env: App Engine execution environment to use for this version.Defaults to 1. Env string `json:"env,omitempty"` - - // EnvVariables: Environment variables made available to the - // application.Only returned in GET requests if view=FULL is set. + // EnvVariables: Environment variables made available to the application.Only + // returned in GET requests if view=FULL is set. EnvVariables map[string]string `json:"envVariables,omitempty"` - - // ErrorHandlers: Custom static error pages. Limited to 10KB per - // page.Only returned in GET requests if view=FULL is set. + // ErrorHandlers: Custom static error pages. Limited to 10KB per page.Only + // returned in GET requests if view=FULL is set. ErrorHandlers []*ErrorHandler `json:"errorHandlers,omitempty"` - - // Handlers: An ordered list of URL-matching patterns that should be - // applied to incoming requests. The first matching URL handles the - // request and other request handlers are not attempted.Only returned in - // GET requests if view=FULL is set. + // Handlers: An ordered list of URL-matching patterns that should be applied to + // incoming requests. The first matching URL handles the request and other + // request handlers are not attempted.Only returned in GET requests if + // view=FULL is set. Handlers []*UrlMap `json:"handlers,omitempty"` - // HealthCheck: Configures health checking for VM instances. Unhealthy - // instances are be stopped and replaced with new instances. Only - // applicable for VM runtimes.Only returned in GET requests if view=FULL - // is set. + // instances are be stopped and replaced with new instances. Only applicable + // for VM runtimes.Only returned in GET requests if view=FULL is set. HealthCheck *HealthCheck `json:"healthCheck,omitempty"` - - // Id: Relative name of the version within the module. Example: v1. - // Version names can contain only lowercase letters, numbers, or - // hyphens. Reserved names: "default", "latest", and any name with the - // prefix "ah-". + // Id: Relative name of the version within the module. Example: v1. Version + // names can contain only lowercase letters, numbers, or hyphens. Reserved + // names: "default", "latest", and any name with the prefix "ah-". Id string `json:"id,omitempty"` - - // InboundServices: Before an application can receive email or XMPP - // messages, the application must be configured to enable the service. + // InboundServices: Before an application can receive email or XMPP messages, + // the application must be configured to enable the service. // // Possible values: // "INBOUND_SERVICE_UNSPECIFIED" - Not specified. // "INBOUND_SERVICE_MAIL" - Allows an application to receive mail. // "INBOUND_SERVICE_MAIL_BOUNCE" - Allows an application to receive // email-bound notifications. - // "INBOUND_SERVICE_XMPP_ERROR" - Allows an application to receive - // error stanzas. - // "INBOUND_SERVICE_XMPP_MESSAGE" - Allows an application to receive - // instant messages. - // "INBOUND_SERVICE_XMPP_SUBSCRIBE" - Allows an application to receive - // user subscription POSTs. - // "INBOUND_SERVICE_XMPP_PRESENCE" - Allows an application to receive - // a user's chat presence. + // "INBOUND_SERVICE_XMPP_ERROR" - Allows an application to receive error + // stanzas. + // "INBOUND_SERVICE_XMPP_MESSAGE" - Allows an application to receive instant + // messages. + // "INBOUND_SERVICE_XMPP_SUBSCRIBE" - Allows an application to receive user + // subscription POSTs. + // "INBOUND_SERVICE_XMPP_PRESENCE" - Allows an application to receive a + // user's chat presence. // "INBOUND_SERVICE_CHANNEL_PRESENCE" - Registers an application for // notifications when a client connects or disconnects from a channel. // "INBOUND_SERVICE_WARMUP" - Enables warmup requests. InboundServices []string `json:"inboundServices,omitempty"` - - // InstanceClass: Instance class that is used to run this version. Valid - // values are: + // InstanceClass: Instance class that is used to run this version. Valid values + // are: // AutomaticScaling: F1, F2, F4, F4_1G - // ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 - // for AutomaticScaling and B1 for ManualScaling or BasicScaling. + // ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for + // AutomaticScaling and B1 for ManualScaling or BasicScaling. InstanceClass string `json:"instanceClass,omitempty"` - - // Libraries: Configuration for third-party Python runtime libraries - // required by the application.Only returned in GET requests if - // view=FULL is set. + // Libraries: Configuration for third-party Python runtime libraries required + // by the application.Only returned in GET requests if view=FULL is set. Libraries []*Library `json:"libraries,omitempty"` - - // ManualScaling: A service with manual scaling runs continuously, - // allowing you to perform complex initialization and rely on the state - // of its memory over time. + // ManualScaling: A service with manual scaling runs continuously, allowing you + // to perform complex initialization and rely on the state of its memory over + // time. ManualScaling *ManualScaling `json:"manualScaling,omitempty"` - // Name: Full path to the Version resource in the API. Example: // apps/myapp/services/default/versions/v1.@OutputOnly Name string `json:"name,omitempty"` - // Network: Extra network settings. Only applicable for VM runtimes. Network *Network `json:"network,omitempty"` - - // NobuildFilesRegex: Files that match this pattern will not be built - // into this version. Only applicable for Go runtimes.Only returned in - // GET requests if view=FULL is set. + // NobuildFilesRegex: Files that match this pattern will not be built into this + // version. Only applicable for Go runtimes.Only returned in GET requests if + // view=FULL is set. NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"` - // Resources: Machine resources for this version. Only applicable for VM // runtimes. Resources *Resources `json:"resources,omitempty"` - // Runtime: Desired runtime. Example: python27. Runtime string `json:"runtime,omitempty"` - - // RuntimeApiVersion: The version of the API in the given runtime - // environment. Please see the app.yaml reference for valid values at + // RuntimeApiVersion: The version of the API in the given runtime environment. + // Please see the app.yaml reference for valid values at // https://cloud.google.com/appengine/docs/standard//config/appref RuntimeApiVersion string `json:"runtimeApiVersion,omitempty"` - - // RuntimeMainExecutablePath: The path or name of the app's main - // executable. + // RuntimeMainExecutablePath: The path or name of the app's main executable. RuntimeMainExecutablePath string `json:"runtimeMainExecutablePath,omitempty"` - - // ServingStatus: Current serving status of this version. Only the - // versions with a SERVING status create instances and can be - // billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to - // SERVING. + // ServingStatus: Current serving status of this version. Only the versions + // with a SERVING status create instances and can be + // billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING. // // Possible values: // "SERVING_STATUS_UNSPECIFIED" - Not specified. - // "SERVING" - Currently serving. Instances are created according to - // the scaling settings of the version. - // "STOPPED" - Disabled from serving. No instances will be created and - // the scaling settings are ignored until the state of the version - // changes to SERVING. + // "SERVING" - Currently serving. Instances are created according to the + // scaling settings of the version. + // "STOPPED" - Disabled from serving. No instances will be created and the + // scaling settings are ignored until the state of the version changes to + // SERVING. ServingStatus string `json:"servingStatus,omitempty"` - - // Threadsafe: Whether multiple requests can be dispatched to this - // version at once. + // Threadsafe: Whether multiple requests can be dispatched to this version at + // once. Threadsafe bool `json:"threadsafe,omitempty"` - - // Vm: Whether to deploy this version in a container on a virtual - // machine. + // Vm: Whether to deploy this version in a container on a virtual machine. Vm bool `json:"vm,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ApiConfig") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiConfig") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Version) MarshalJSON() ([]byte, error) { +func (s Version) MarshalJSON() ([]byte, error) { type NoMethod Version - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Volume: Volumes mounted within the app container. Only applicable for -// VM runtimes. +// Volume: Volumes mounted within the app container. Only applicable for VM +// runtimes. type Volume struct { // Name: Unique name for the volume. Name string `json:"name,omitempty"` - // SizeGb: Volume size in gigabytes. SizeGb float64 `json:"sizeGb,omitempty"` - // VolumeType: Underlying volume type, e.g. 'tmpfs'. VolumeType string `json:"volumeType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Volume) MarshalJSON() ([]byte, error) { +func (s Volume) MarshalJSON() ([]byte, error) { type NoMethod Volume - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Volume) UnmarshalJSON(data []byte) error { @@ -2675,8 +2141,6 @@ func (s *Volume) UnmarshalJSON(data []byte) error { return nil } -// method id "appengine.apps.create": - type AppsCreateCall struct { s *APIService application *Application @@ -2688,10 +2152,9 @@ type AppsCreateCall struct { // Create: Creates an App Engine application for a Google Cloud Platform // project. Required fields: // id - The ID of the target Cloud Platform project. -// location - The region -// (https://cloud.google.com/appengine/docs/locations) where you want -// the App Engine application located.For more information about App -// Engine applications, see Managing Projects, Applications, and Billing +// location - The region (https://cloud.google.com/appengine/docs/locations) +// where you want the App Engine application located.For more information about +// App Engine applications, see Managing Projects, Applications, and Billing // (https://cloud.google.com/appengine/docs/python/console/). func (r *AppsService) Create(application *Application) *AppsCreateCall { c := &AppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -2700,23 +2163,21 @@ func (r *AppsService) Create(application *Application) *AppsCreateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsCreateCall) Fields(s ...googleapi.Field) *AppsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsCreateCall) Context(ctx context.Context) *AppsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2725,18 +2186,12 @@ func (c *AppsCreateCall) Header() http.Header { } func (c *AppsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.application) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta5/apps") @@ -2746,16 +2201,14 @@ func (c *AppsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2763,17 +2216,17 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2786,28 +2239,7 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { return nil, err } return ret, nil - // { - // "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields:\nid - The ID of the target Cloud Platform project.\nlocation - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/python/console/).", - // "flatPath": "v1beta5/apps", - // "httpMethod": "POST", - // "id": "appengine.apps.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta5/apps", - // "request": { - // "$ref": "Application" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.get": +} type AppsGetCall struct { s *APIService @@ -2819,53 +2251,51 @@ type AppsGetCall struct { } // Get: Gets information about an application. +// +// - appsId: Part of `name`. Name of the application to get. Example: +// apps/myapp. func (r *AppsService) Get(appsId string) *AppsGetCall { c := &AppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId return c } -// EnsureResourcesExist sets the optional parameter -// "ensureResourcesExist": Certain resources associated with an -// application are created on-demand. Controls whether these resources -// should be created when performing the GET operation. If specified and -// any resources could not be created, the request will fail with an -// error code. Additionally, this parameter can cause the request to -// take longer to complete. Note: This parameter will be deprecated in a -// future version of the API. +// EnsureResourcesExist sets the optional parameter "ensureResourcesExist": +// Certain resources associated with an application are created on-demand. +// Controls whether these resources should be created when performing the GET +// operation. If specified and any resources could not be created, the request +// will fail with an error code. Additionally, this parameter can cause the +// request to take longer to complete. Note: This parameter will be deprecated +// in a future version of the API. func (c *AppsGetCall) EnsureResourcesExist(ensureResourcesExist bool) *AppsGetCall { c.urlParams_.Set("ensureResourcesExist", fmt.Sprint(ensureResourcesExist)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsGetCall) Fields(s ...googleapi.Field) *AppsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsGetCall) IfNoneMatch(entityTag string) *AppsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsGetCall) Context(ctx context.Context) *AppsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2874,12 +2304,7 @@ func (c *AppsGetCall) Header() http.Header { } func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2896,16 +2321,14 @@ func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.get" call. -// Exactly one of *Application or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Application.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Application.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsGetCall) Do(opts ...googleapi.CallOption) (*Application, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2913,17 +2336,17 @@ func (c *AppsGetCall) Do(opts ...googleapi.CallOption) (*Application, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Application{ ServerResponse: googleapi.ServerResponse{ @@ -2936,39 +2359,7 @@ func (c *AppsGetCall) Do(opts ...googleapi.CallOption) (*Application, error) { return nil, err } return ret, nil - // { - // "description": "Gets information about an application.", - // "flatPath": "v1beta5/apps/{appsId}", - // "httpMethod": "GET", - // "id": "appengine.apps.get", - // "parameterOrder": [ - // "appsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the application to get. Example: apps/myapp.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ensureResourcesExist": { - // "description": "Certain resources associated with an application are created on-demand. Controls whether these resources should be created when performing the GET operation. If specified and any resources could not be created, the request will fail with an error code. Additionally, this parameter can cause the request to take longer to complete. Note: This parameter will be deprecated in a future version of the API.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1beta5/apps/{appsId}", - // "response": { - // "$ref": "Application" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.patch": +} type AppsPatchCall struct { s *APIService @@ -2985,6 +2376,9 @@ type AppsPatchCall struct { // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps#Application.FIELDS.auth_domain) // default_cookie_expiration // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps#Application.FIELDS.default_cookie_expiration) +// +// - appsId: Part of `name`. Name of the Application resource to update. +// Example: apps/myapp. func (r *AppsService) Patch(appsId string, application *Application) *AppsPatchCall { c := &AppsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -2992,31 +2386,29 @@ func (r *AppsService) Patch(appsId string, application *Application) *AppsPatchC return c } -// Mask sets the optional parameter "mask": Standard field mask for the -// set of fields to be updated. +// Mask sets the optional parameter "mask": Standard field mask for the set of +// fields to be updated. func (c *AppsPatchCall) Mask(mask string) *AppsPatchCall { c.urlParams_.Set("mask", mask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsPatchCall) Fields(s ...googleapi.Field) *AppsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsPatchCall) Context(ctx context.Context) *AppsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3025,18 +2417,12 @@ func (c *AppsPatchCall) Header() http.Header { } func (c *AppsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.application) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta5/apps/{appsId}") @@ -3049,16 +2435,14 @@ func (c *AppsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3066,17 +2450,17 @@ func (c *AppsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3089,43 +2473,7 @@ func (c *AppsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { return nil, err } return ret, nil - // { - // "description": "Updates the specified Application resource. You can update the following fields:\nauth_domain (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps#Application.FIELDS.auth_domain)\ndefault_cookie_expiration (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps#Application.FIELDS.default_cookie_expiration)", - // "flatPath": "v1beta5/apps/{appsId}", - // "httpMethod": "PATCH", - // "id": "appengine.apps.patch", - // "parameterOrder": [ - // "appsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the Application resource to update. Example: apps/myapp.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "mask": { - // "description": "Standard field mask for the set of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}", - // "request": { - // "$ref": "Application" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.locations.get": +} type AppsLocationsGetCall struct { s *APIService @@ -3138,6 +2486,9 @@ type AppsLocationsGetCall struct { } // Get: Gets information about a location. +// +// - appsId: Part of `name`. Resource name for the location. +// - locationsId: Part of `name`. See documentation of `appsId`. func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall { c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -3146,33 +2497,29 @@ func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsLocationsGetCall) Fields(s ...googleapi.Field) *AppsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsLocationsGetCall) IfNoneMatch(entityTag string) *AppsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsLocationsGetCall) Context(ctx context.Context) *AppsLocationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3181,12 +2528,7 @@ func (c *AppsLocationsGetCall) Header() http.Header { } func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3204,16 +2546,14 @@ func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "locationsId": c.locationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3221,17 +2561,17 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Location{ ServerResponse: googleapi.ServerResponse{ @@ -3244,43 +2584,7 @@ func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, erro return nil, err } return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1beta5/apps/{appsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "appengine.apps.locations.get", - // "parameterOrder": [ - // "appsId", - // "locationsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Resource name for the location.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/locations/{locationsId}", - // "response": { - // "$ref": "Location" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.apps.locations.list": +} type AppsLocationsListCall struct { s *APIService @@ -3291,63 +2595,60 @@ type AppsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this service. +// +// - appsId: Part of `name`. The resource that owns the locations collection, +// if applicable. func (r *AppsLocationsService) List(appsId string) *AppsLocationsListCall { c := &AppsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *AppsLocationsListCall) Filter(filter string) *AppsLocationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *AppsLocationsListCall) PageSize(pageSize int64) *AppsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *AppsLocationsListCall) PageToken(pageToken string) *AppsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsLocationsListCall) Fields(s ...googleapi.Field) *AppsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsLocationsListCall) IfNoneMatch(entityTag string) *AppsLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsLocationsListCall) Context(ctx context.Context) *AppsLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3356,12 +2657,7 @@ func (c *AppsLocationsListCall) Header() http.Header { } func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3378,16 +2674,15 @@ func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3395,17 +2690,17 @@ func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocations if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3418,49 +2713,6 @@ func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocations return nil, err } return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1beta5/apps/{appsId}/locations", - // "httpMethod": "GET", - // "id": "appengine.apps.locations.list", - // "parameterOrder": [ - // "appsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. The resource that owns the locations collection, if applicable.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/locations", - // "response": { - // "$ref": "ListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -3468,7 +2720,7 @@ func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocations // The provided context supersedes any context provided to the Context method. func (c *AppsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3484,8 +2736,6 @@ func (c *AppsLocationsListCall) Pages(ctx context.Context, f func(*ListLocations } } -// method id "appengine.apps.operations.get": - type AppsOperationsGetCall struct { s *APIService appsId string @@ -3496,9 +2746,12 @@ type AppsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - appsId: Part of `name`. The name of the operation resource. +// - operationsId: Part of `name`. See documentation of `appsId`. func (r *AppsOperationsService) Get(appsId string, operationsId string) *AppsOperationsGetCall { c := &AppsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -3507,33 +2760,29 @@ func (r *AppsOperationsService) Get(appsId string, operationsId string) *AppsOpe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsOperationsGetCall) Fields(s ...googleapi.Field) *AppsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsOperationsGetCall) IfNoneMatch(entityTag string) *AppsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsOperationsGetCall) Context(ctx context.Context) *AppsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3542,12 +2791,7 @@ func (c *AppsOperationsGetCall) Header() http.Header { } func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3565,16 +2809,14 @@ func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "operationsId": c.operationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3582,17 +2824,17 @@ func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3605,43 +2847,7 @@ func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, er return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta5/apps/{appsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "appengine.apps.operations.get", - // "parameterOrder": [ - // "appsId", - // "operationsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. The name of the operation resource.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "operationsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/operations/{operationsId}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.apps.operations.list": +} type AppsOperationsListCall struct { s *APIService @@ -3652,71 +2858,67 @@ type AppsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// UNIMPLEMENTED.NOTE: the name binding allows API services to override -// the binding to use different resource name schemes, such as -// users/*/operations. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the +// name binding allows API services to override the binding to use different +// resource name schemes, such as users/*/operations. To override the binding, +// API services can add a binding such as "/v1/{name=users/*}/operations" to +// their service configuration. For backwards compatibility, the default name +// includes the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations collection +// id. +// +// - appsId: Part of `name`. The name of the operation's parent resource. func (r *AppsOperationsService) List(appsId string) *AppsOperationsListCall { c := &AppsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *AppsOperationsListCall) Filter(filter string) *AppsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *AppsOperationsListCall) PageSize(pageSize int64) *AppsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *AppsOperationsListCall) PageToken(pageToken string) *AppsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsOperationsListCall) Fields(s ...googleapi.Field) *AppsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsOperationsListCall) IfNoneMatch(entityTag string) *AppsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsOperationsListCall) Context(ctx context.Context) *AppsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3725,12 +2927,7 @@ func (c *AppsOperationsListCall) Header() http.Header { } func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3747,16 +2944,15 @@ func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3764,17 +2960,17 @@ func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperatio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3787,49 +2983,6 @@ func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperatio return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1beta5/apps/{appsId}/operations", - // "httpMethod": "GET", - // "id": "appengine.apps.operations.list", - // "parameterOrder": [ - // "appsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. The name of the operation's parent resource.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -3837,7 +2990,7 @@ func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperatio // The provided context supersedes any context provided to the Context method. func (c *AppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3853,8 +3006,6 @@ func (c *AppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperatio } } -// method id "appengine.apps.services.delete": - type AppsServicesDeleteCall struct { s *APIService appsId string @@ -3865,6 +3016,10 @@ type AppsServicesDeleteCall struct { } // Delete: Deletes the specified service and all enclosed versions. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/services/default. +// - servicesId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesService) Delete(appsId string, servicesId string) *AppsServicesDeleteCall { c := &AppsServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -3873,23 +3028,21 @@ func (r *AppsServicesService) Delete(appsId string, servicesId string) *AppsServ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesDeleteCall) Fields(s ...googleapi.Field) *AppsServicesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesDeleteCall) Context(ctx context.Context) *AppsServicesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3898,12 +3051,7 @@ func (c *AppsServicesDeleteCall) Header() http.Header { } func (c *AppsServicesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3918,16 +3066,14 @@ func (c *AppsServicesDeleteCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3935,17 +3081,17 @@ func (c *AppsServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3958,41 +3104,7 @@ func (c *AppsServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, e return nil, err } return ret, nil - // { - // "description": "Deletes the specified service and all enclosed versions.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}", - // "httpMethod": "DELETE", - // "id": "appengine.apps.services.delete", - // "parameterOrder": [ - // "appsId", - // "servicesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.services.get": +} type AppsServicesGetCall struct { s *APIService @@ -4005,6 +3117,10 @@ type AppsServicesGetCall struct { } // Get: Gets the current configuration of the specified service. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/services/default. +// - servicesId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesService) Get(appsId string, servicesId string) *AppsServicesGetCall { c := &AppsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4013,33 +3129,29 @@ func (r *AppsServicesService) Get(appsId string, servicesId string) *AppsService } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesGetCall) Fields(s ...googleapi.Field) *AppsServicesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsServicesGetCall) IfNoneMatch(entityTag string) *AppsServicesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesGetCall) Context(ctx context.Context) *AppsServicesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4048,12 +3160,7 @@ func (c *AppsServicesGetCall) Header() http.Header { } func (c *AppsServicesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4071,16 +3178,14 @@ func (c *AppsServicesGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.get" call. -// Exactly one of *Service or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Service.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Service.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4088,17 +3193,17 @@ func (c *AppsServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Service{ ServerResponse: googleapi.ServerResponse{ @@ -4111,43 +3216,7 @@ func (c *AppsServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) return nil, err } return ret, nil - // { - // "description": "Gets the current configuration of the specified service.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}", - // "httpMethod": "GET", - // "id": "appengine.apps.services.get", - // "parameterOrder": [ - // "appsId", - // "servicesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}", - // "response": { - // "$ref": "Service" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.apps.services.list": +} type AppsServicesListCall struct { s *APIService @@ -4159,54 +3228,53 @@ type AppsServicesListCall struct { } // List: Lists all the services in the application. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp. func (r *AppsServicesService) List(appsId string) *AppsServicesListCall { c := &AppsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId return c } -// PageSize sets the optional parameter "pageSize": Maximum results to -// return per page. +// PageSize sets the optional parameter "pageSize": Maximum results to return +// per page. func (c *AppsServicesListCall) PageSize(pageSize int64) *AppsServicesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Continuation token -// for fetching the next page of results. +// PageToken sets the optional parameter "pageToken": Continuation token for +// fetching the next page of results. func (c *AppsServicesListCall) PageToken(pageToken string) *AppsServicesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesListCall) Fields(s ...googleapi.Field) *AppsServicesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsServicesListCall) IfNoneMatch(entityTag string) *AppsServicesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesListCall) Context(ctx context.Context) *AppsServicesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4215,12 +3283,7 @@ func (c *AppsServicesListCall) Header() http.Header { } func (c *AppsServicesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4237,16 +3300,15 @@ func (c *AppsServicesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.list" call. -// Exactly one of *ListServicesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListServicesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListServicesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AppsServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4254,17 +3316,17 @@ func (c *AppsServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListServicesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4277,44 +3339,6 @@ func (c *AppsServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesRe return nil, err } return ret, nil - // { - // "description": "Lists all the services in the application.", - // "flatPath": "v1beta5/apps/{appsId}/services", - // "httpMethod": "GET", - // "id": "appengine.apps.services.list", - // "parameterOrder": [ - // "appsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum results to return per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token for fetching the next page of results.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services", - // "response": { - // "$ref": "ListServicesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -4322,7 +3346,7 @@ func (c *AppsServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesRe // The provided context supersedes any context provided to the Context method. func (c *AppsServicesListCall) Pages(ctx context.Context, f func(*ListServicesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4338,8 +3362,6 @@ func (c *AppsServicesListCall) Pages(ctx context.Context, f func(*ListServicesRe } } -// method id "appengine.apps.services.patch": - type AppsServicesPatchCall struct { s *APIService appsId string @@ -4351,6 +3373,10 @@ type AppsServicesPatchCall struct { } // Patch: Updates the configuration of the specified service. +// +// - appsId: Part of `name`. Name of the resource to update. Example: +// apps/myapp/services/default. +// - servicesId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesService) Patch(appsId string, servicesId string, service *Service) *AppsServicesPatchCall { c := &AppsServicesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4359,26 +3385,26 @@ func (r *AppsServicesService) Patch(appsId string, servicesId string, service *S return c } -// Mask sets the optional parameter "mask": Standard field mask for the -// set of fields to be updated. +// Mask sets the optional parameter "mask": Standard field mask for the set of +// fields to be updated. func (c *AppsServicesPatchCall) Mask(mask string) *AppsServicesPatchCall { c.urlParams_.Set("mask", mask) return c } -// MigrateTraffic sets the optional parameter "migrateTraffic": Set to -// true to gradually shift traffic to one or more versions that you -// specify. By default, traffic is shifted immediately. For gradual -// traffic migration, the target versions must be located within -// instances that are configured for both warmup requests +// MigrateTraffic sets the optional parameter "migrateTraffic": Set to true to +// gradually shift traffic to one or more versions that you specify. By +// default, traffic is shifted immediately. For gradual traffic migration, the +// target versions must be located within instances that are configured for +// both warmup requests // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#inboundservicetype) // and automatic scaling // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#automaticscaling). // You must specify the shardBy // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services#shardby) -// field in the Service resource. Gradual traffic migration is not -// supported in the App Engine flexible environment. For examples, see -// Migrating and Splitting Traffic +// field in the Service resource. Gradual traffic migration is not supported in +// the App Engine flexible environment. For examples, see Migrating and +// Splitting Traffic // (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). func (c *AppsServicesPatchCall) MigrateTraffic(migrateTraffic bool) *AppsServicesPatchCall { c.urlParams_.Set("migrateTraffic", fmt.Sprint(migrateTraffic)) @@ -4386,23 +3412,21 @@ func (c *AppsServicesPatchCall) MigrateTraffic(migrateTraffic bool) *AppsService } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesPatchCall) Fields(s ...googleapi.Field) *AppsServicesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesPatchCall) Context(ctx context.Context) *AppsServicesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4411,18 +3435,12 @@ func (c *AppsServicesPatchCall) Header() http.Header { } func (c *AppsServicesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.service) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta5/apps/{appsId}/services/{servicesId}") @@ -4436,16 +3454,14 @@ func (c *AppsServicesPatchCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4453,17 +3469,17 @@ func (c *AppsServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4476,55 +3492,7 @@ func (c *AppsServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, er return nil, err } return ret, nil - // { - // "description": "Updates the configuration of the specified service.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}", - // "httpMethod": "PATCH", - // "id": "appengine.apps.services.patch", - // "parameterOrder": [ - // "appsId", - // "servicesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/services/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "mask": { - // "description": "Standard field mask for the set of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "migrateTraffic": { - // "description": "Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#inboundservicetype) and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#automaticscaling). You must specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services#shardby) field in the Service resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).", - // "location": "query", - // "type": "boolean" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}", - // "request": { - // "$ref": "Service" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.services.versions.create": +} type AppsServicesVersionsCreateCall struct { s *APIService @@ -4537,6 +3505,10 @@ type AppsServicesVersionsCreateCall struct { } // Create: Deploys new code and resource files to a new version. +// +// - appsId: Part of `name`. Name of the resource to update. For example: +// "apps/myapp/services/default". +// - servicesId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesVersionsService) Create(appsId string, servicesId string, version *Version) *AppsServicesVersionsCreateCall { c := &AppsServicesVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4546,23 +3518,21 @@ func (r *AppsServicesVersionsService) Create(appsId string, servicesId string, v } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesVersionsCreateCall) Fields(s ...googleapi.Field) *AppsServicesVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesVersionsCreateCall) Context(ctx context.Context) *AppsServicesVersionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4571,18 +3541,12 @@ func (c *AppsServicesVersionsCreateCall) Header() http.Header { } func (c *AppsServicesVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.version) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta5/apps/{appsId}/services/{servicesId}/versions") @@ -4596,16 +3560,14 @@ func (c *AppsServicesVersionsCreateCall) doRequest(alt string) (*http.Response, "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsServicesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4613,17 +3575,17 @@ func (c *AppsServicesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Oper if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4636,44 +3598,7 @@ func (c *AppsServicesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Oper return nil, err } return ret, nil - // { - // "description": "Deploys new code and resource files to a new version.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}/versions", - // "httpMethod": "POST", - // "id": "appengine.apps.services.versions.create", - // "parameterOrder": [ - // "appsId", - // "servicesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource to update. For example: \"apps/myapp/services/default\".", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}/versions", - // "request": { - // "$ref": "Version" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.services.versions.delete": +} type AppsServicesVersionsDeleteCall struct { s *APIService @@ -4686,6 +3611,11 @@ type AppsServicesVersionsDeleteCall struct { } // Delete: Deletes an existing version. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/services/default/versions/v1. +// - servicesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesVersionsService) Delete(appsId string, servicesId string, versionsId string) *AppsServicesVersionsDeleteCall { c := &AppsServicesVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4695,23 +3625,21 @@ func (r *AppsServicesVersionsService) Delete(appsId string, servicesId string, v } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesVersionsDeleteCall) Fields(s ...googleapi.Field) *AppsServicesVersionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesVersionsDeleteCall) Context(ctx context.Context) *AppsServicesVersionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesVersionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4720,12 +3648,7 @@ func (c *AppsServicesVersionsDeleteCall) Header() http.Header { } func (c *AppsServicesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4741,16 +3664,14 @@ func (c *AppsServicesVersionsDeleteCall) doRequest(alt string) (*http.Response, "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsServicesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4758,17 +3679,17 @@ func (c *AppsServicesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Oper if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4781,48 +3702,7 @@ func (c *AppsServicesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Oper return nil, err } return ret, nil - // { - // "description": "Deletes an existing version.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}", - // "httpMethod": "DELETE", - // "id": "appengine.apps.services.versions.delete", - // "parameterOrder": [ - // "appsId", - // "servicesId", - // "versionsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.services.versions.get": +} type AppsServicesVersionsGetCall struct { s *APIService @@ -4835,9 +3715,13 @@ type AppsServicesVersionsGetCall struct { header_ http.Header } -// Get: Gets the specified Version resource. By default, only a -// BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get -// the full resource. +// Get: Gets the specified Version resource. By default, only a BASIC_VIEW will +// be returned. Specify the FULL_VIEW parameter to get the full resource. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/services/default/versions/v1. +// - servicesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesVersionsService) Get(appsId string, servicesId string, versionsId string) *AppsServicesVersionsGetCall { c := &AppsServicesVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -4846,8 +3730,8 @@ func (r *AppsServicesVersionsService) Get(appsId string, servicesId string, vers return c } -// View sets the optional parameter "view": Controls the set of fields -// returned in the Get response. +// View sets the optional parameter "view": Controls the set of fields returned +// in the Get response. // // Possible values: // @@ -4859,33 +3743,29 @@ func (c *AppsServicesVersionsGetCall) View(view string) *AppsServicesVersionsGet } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesVersionsGetCall) Fields(s ...googleapi.Field) *AppsServicesVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsServicesVersionsGetCall) IfNoneMatch(entityTag string) *AppsServicesVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesVersionsGetCall) Context(ctx context.Context) *AppsServicesVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4894,12 +3774,7 @@ func (c *AppsServicesVersionsGetCall) Header() http.Header { } func (c *AppsServicesVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4918,16 +3793,14 @@ func (c *AppsServicesVersionsGetCall) doRequest(alt string) (*http.Response, err "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.get" call. -// Exactly one of *Version or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Version.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Version.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsServicesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4935,17 +3808,17 @@ func (c *AppsServicesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Version{ ServerResponse: googleapi.ServerResponse{ @@ -4958,59 +3831,7 @@ func (c *AppsServicesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version return nil, err } return ret, nil - // { - // "description": "Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}", - // "httpMethod": "GET", - // "id": "appengine.apps.services.versions.get", - // "parameterOrder": [ - // "appsId", - // "servicesId", - // "versionsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "view": { - // "description": "Controls the set of fields returned in the Get response.", - // "enum": [ - // "BASIC", - // "FULL" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}", - // "response": { - // "$ref": "Version" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.apps.services.versions.list": +} type AppsServicesVersionsListCall struct { s *APIService @@ -5023,6 +3844,10 @@ type AppsServicesVersionsListCall struct { } // List: Lists the versions of a service. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/services/default. +// - servicesId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesVersionsService) List(appsId string, servicesId string) *AppsServicesVersionsListCall { c := &AppsServicesVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5030,22 +3855,22 @@ func (r *AppsServicesVersionsService) List(appsId string, servicesId string) *Ap return c } -// PageSize sets the optional parameter "pageSize": Maximum results to -// return per page. +// PageSize sets the optional parameter "pageSize": Maximum results to return +// per page. func (c *AppsServicesVersionsListCall) PageSize(pageSize int64) *AppsServicesVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Continuation token -// for fetching the next page of results. +// PageToken sets the optional parameter "pageToken": Continuation token for +// fetching the next page of results. func (c *AppsServicesVersionsListCall) PageToken(pageToken string) *AppsServicesVersionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// View sets the optional parameter "view": Controls the set of fields -// returned in the List response. +// View sets the optional parameter "view": Controls the set of fields returned +// in the List response. // // Possible values: // @@ -5057,33 +3882,29 @@ func (c *AppsServicesVersionsListCall) View(view string) *AppsServicesVersionsLi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesVersionsListCall) Fields(s ...googleapi.Field) *AppsServicesVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsServicesVersionsListCall) IfNoneMatch(entityTag string) *AppsServicesVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesVersionsListCall) Context(ctx context.Context) *AppsServicesVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5092,12 +3913,7 @@ func (c *AppsServicesVersionsListCall) Header() http.Header { } func (c *AppsServicesVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5115,16 +3931,15 @@ func (c *AppsServicesVersionsListCall) doRequest(alt string) (*http.Response, er "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.list" call. -// Exactly one of *ListVersionsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListVersionsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListVersionsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AppsServicesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5132,17 +3947,17 @@ func (c *AppsServicesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListVersionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5155,60 +3970,6 @@ func (c *AppsServicesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVe return nil, err } return ret, nil - // { - // "description": "Lists the versions of a service.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}/versions", - // "httpMethod": "GET", - // "id": "appengine.apps.services.versions.list", - // "parameterOrder": [ - // "appsId", - // "servicesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum results to return per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token for fetching the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "view": { - // "description": "Controls the set of fields returned in the List response.", - // "enum": [ - // "BASIC", - // "FULL" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}/versions", - // "response": { - // "$ref": "ListVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -5216,7 +3977,7 @@ func (c *AppsServicesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVe // The provided context supersedes any context provided to the Context method. func (c *AppsServicesVersionsListCall) Pages(ctx context.Context, f func(*ListVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5232,8 +3993,6 @@ func (c *AppsServicesVersionsListCall) Pages(ctx context.Context, f func(*ListVe } } -// method id "appengine.apps.services.versions.patch": - type AppsServicesVersionsPatchCall struct { s *APIService appsId string @@ -5245,15 +4004,15 @@ type AppsServicesVersionsPatchCall struct { header_ http.Header } -// Patch: Updates the specified Version resource. You can specify the -// following fields depending on the App Engine environment and type of -// scaling that the version resource uses: +// Patch: Updates the specified Version resource. You can specify the following +// fields depending on the App Engine environment and type of scaling that the +// version resource uses: // serving_status // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status): // -// For Version resources that use basic scaling, manual scaling, or run +// For Version resources that use basic scaling, manual scaling, or run in // -// in the App Engine flexible environment. +// the App Engine flexible environment. // instance_class // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class): // @@ -5263,15 +4022,20 @@ type AppsServicesVersionsPatchCall struct { // automatic_scaling.min_idle_instances // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): // -// For Version resources that use automatic scaling and run in the App +// For Version resources that use automatic scaling and run in the App Engine // -// Engine standard environment. +// standard environment. // automatic_scaling.max_idle_instances // (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): // -// For Version resources that use automatic scaling and run in the App +// For Version resources that use automatic scaling and run in the App Engine +// +// standard environment. // -// Engine standard environment. +// - appsId: Part of `name`. Name of the resource to update. Example: +// apps/myapp/services/default/versions/1. +// - servicesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesVersionsService) Patch(appsId string, servicesId string, versionsId string, version *Version) *AppsServicesVersionsPatchCall { c := &AppsServicesVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5281,31 +4045,29 @@ func (r *AppsServicesVersionsService) Patch(appsId string, servicesId string, ve return c } -// Mask sets the optional parameter "mask": Standard field mask for the -// set of fields to be updated. +// Mask sets the optional parameter "mask": Standard field mask for the set of +// fields to be updated. func (c *AppsServicesVersionsPatchCall) Mask(mask string) *AppsServicesVersionsPatchCall { c.urlParams_.Set("mask", mask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesVersionsPatchCall) Fields(s ...googleapi.Field) *AppsServicesVersionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesVersionsPatchCall) Context(ctx context.Context) *AppsServicesVersionsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesVersionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5314,18 +4076,12 @@ func (c *AppsServicesVersionsPatchCall) Header() http.Header { } func (c *AppsServicesVersionsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.version) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}") @@ -5340,16 +4096,14 @@ func (c *AppsServicesVersionsPatchCall) doRequest(alt string) (*http.Response, e "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsServicesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5357,17 +4111,17 @@ func (c *AppsServicesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Opera if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5380,57 +4134,7 @@ func (c *AppsServicesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Opera return nil, err } return ret, nil - // { - // "description": "Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:\nserving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment.\ninstance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment.\nautomatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.\nautomatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}", - // "httpMethod": "PATCH", - // "id": "appengine.apps.services.versions.patch", - // "parameterOrder": [ - // "appsId", - // "servicesId", - // "versionsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "mask": { - // "description": "Standard field mask for the set of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}", - // "request": { - // "$ref": "Version" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.services.versions.instances.debug": +} type AppsServicesVersionsInstancesDebugCall struct { s *APIService @@ -5444,13 +4148,18 @@ type AppsServicesVersionsInstancesDebugCall struct { header_ http.Header } -// Debug: Enables debugging on a VM instance. This allows you to use the -// SSH command to connect to the virtual machine where the instance -// lives. While in "debug mode", the instance continues to serve live -// traffic. You should delete the instance when you are done debugging -// and then allow the system to take over and determine if another -// instance should be started.Only applicable for instances in App -// Engine flexible environment. +// Debug: Enables debugging on a VM instance. This allows you to use the SSH +// command to connect to the virtual machine where the instance lives. While in +// "debug mode", the instance continues to serve live traffic. You should +// delete the instance when you are done debugging and then allow the system to +// take over and determine if another instance should be started.Only +// applicable for instances in App Engine flexible environment. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/services/default/versions/v1/instances/instance-1. +// - instancesId: Part of `name`. See documentation of `appsId`. +// - servicesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesVersionsInstancesService) Debug(appsId string, servicesId string, versionsId string, instancesId string, debuginstancerequest *DebugInstanceRequest) *AppsServicesVersionsInstancesDebugCall { c := &AppsServicesVersionsInstancesDebugCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5462,23 +4171,21 @@ func (r *AppsServicesVersionsInstancesService) Debug(appsId string, servicesId s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesVersionsInstancesDebugCall) Fields(s ...googleapi.Field) *AppsServicesVersionsInstancesDebugCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesVersionsInstancesDebugCall) Context(ctx context.Context) *AppsServicesVersionsInstancesDebugCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesVersionsInstancesDebugCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5487,18 +4194,12 @@ func (c *AppsServicesVersionsInstancesDebugCall) Header() http.Header { } func (c *AppsServicesVersionsInstancesDebugCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.debuginstancerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug") @@ -5514,16 +4215,14 @@ func (c *AppsServicesVersionsInstancesDebugCall) doRequest(alt string) (*http.Re "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.debug" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsServicesVersionsInstancesDebugCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5531,17 +4230,17 @@ func (c *AppsServicesVersionsInstancesDebugCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5554,58 +4253,7 @@ func (c *AppsServicesVersionsInstancesDebugCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Enables debugging on a VM instance. This allows you to use the SSH command to connect to the virtual machine where the instance lives. While in \"debug mode\", the instance continues to serve live traffic. You should delete the instance when you are done debugging and then allow the system to take over and determine if another instance should be started.Only applicable for instances in App Engine flexible environment.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug", - // "httpMethod": "POST", - // "id": "appengine.apps.services.versions.instances.debug", - // "parameterOrder": [ - // "appsId", - // "servicesId", - // "versionsId", - // "instancesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instancesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug", - // "request": { - // "$ref": "DebugInstanceRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.services.versions.instances.delete": +} type AppsServicesVersionsInstancesDeleteCall struct { s *APIService @@ -5619,6 +4267,12 @@ type AppsServicesVersionsInstancesDeleteCall struct { } // Delete: Stops a running instance. +// +// - appsId: Part of `name`. Name of the resource requested. For example: +// "apps/myapp/services/default/versions/v1/instances/instance-1". +// - instancesId: Part of `name`. See documentation of `appsId`. +// - servicesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesVersionsInstancesService) Delete(appsId string, servicesId string, versionsId string, instancesId string) *AppsServicesVersionsInstancesDeleteCall { c := &AppsServicesVersionsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5629,23 +4283,21 @@ func (r *AppsServicesVersionsInstancesService) Delete(appsId string, servicesId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesVersionsInstancesDeleteCall) Fields(s ...googleapi.Field) *AppsServicesVersionsInstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesVersionsInstancesDeleteCall) Context(ctx context.Context) *AppsServicesVersionsInstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesVersionsInstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5654,12 +4306,7 @@ func (c *AppsServicesVersionsInstancesDeleteCall) Header() http.Header { } func (c *AppsServicesVersionsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5676,16 +4323,14 @@ func (c *AppsServicesVersionsInstancesDeleteCall) doRequest(alt string) (*http.R "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsServicesVersionsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5693,17 +4338,17 @@ func (c *AppsServicesVersionsInstancesDeleteCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5716,55 +4361,7 @@ func (c *AppsServicesVersionsInstancesDeleteCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Stops a running instance.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}", - // "httpMethod": "DELETE", - // "id": "appengine.apps.services.versions.instances.delete", - // "parameterOrder": [ - // "appsId", - // "servicesId", - // "versionsId", - // "instancesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. For example: \"apps/myapp/services/default/versions/v1/instances/instance-1\".", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instancesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.apps.services.versions.instances.get": +} type AppsServicesVersionsInstancesGetCall struct { s *APIService @@ -5779,6 +4376,12 @@ type AppsServicesVersionsInstancesGetCall struct { } // Get: Gets instance information. +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/services/default/versions/v1/instances/instance-1. +// - instancesId: Part of `name`. See documentation of `appsId`. +// - servicesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesVersionsInstancesService) Get(appsId string, servicesId string, versionsId string, instancesId string) *AppsServicesVersionsInstancesGetCall { c := &AppsServicesVersionsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5789,33 +4392,29 @@ func (r *AppsServicesVersionsInstancesService) Get(appsId string, servicesId str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesVersionsInstancesGetCall) Fields(s ...googleapi.Field) *AppsServicesVersionsInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsServicesVersionsInstancesGetCall) IfNoneMatch(entityTag string) *AppsServicesVersionsInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesVersionsInstancesGetCall) Context(ctx context.Context) *AppsServicesVersionsInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesVersionsInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5824,12 +4423,7 @@ func (c *AppsServicesVersionsInstancesGetCall) Header() http.Header { } func (c *AppsServicesVersionsInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5849,16 +4443,14 @@ func (c *AppsServicesVersionsInstancesGetCall) doRequest(alt string) (*http.Resp "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.get" call. -// Exactly one of *Instance or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Instance.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Instance.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AppsServicesVersionsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5866,17 +4458,17 @@ func (c *AppsServicesVersionsInstancesGetCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Instance{ ServerResponse: googleapi.ServerResponse{ @@ -5889,57 +4481,7 @@ func (c *AppsServicesVersionsInstancesGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets instance information.", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}", - // "httpMethod": "GET", - // "id": "appengine.apps.services.versions.instances.get", - // "parameterOrder": [ - // "appsId", - // "servicesId", - // "versionsId", - // "instancesId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instancesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}", - // "response": { - // "$ref": "Instance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.apps.services.versions.instances.list": +} type AppsServicesVersionsInstancesListCall struct { s *APIService @@ -5952,9 +4494,14 @@ type AppsServicesVersionsInstancesListCall struct { header_ http.Header } -// List: Lists the instances of a version.Tip: To aggregate details -// about instances over time, see the Stackdriver Monitoring API +// List: Lists the instances of a version.Tip: To aggregate details about +// instances over time, see the Stackdriver Monitoring API // (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). +// +// - appsId: Part of `name`. Name of the resource requested. Example: +// apps/myapp/services/default/versions/v1. +// - servicesId: Part of `name`. See documentation of `appsId`. +// - versionsId: Part of `name`. See documentation of `appsId`. func (r *AppsServicesVersionsInstancesService) List(appsId string, servicesId string, versionsId string) *AppsServicesVersionsInstancesListCall { c := &AppsServicesVersionsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.appsId = appsId @@ -5963,48 +4510,44 @@ func (r *AppsServicesVersionsInstancesService) List(appsId string, servicesId st return c } -// PageSize sets the optional parameter "pageSize": Maximum results to -// return per page. +// PageSize sets the optional parameter "pageSize": Maximum results to return +// per page. func (c *AppsServicesVersionsInstancesListCall) PageSize(pageSize int64) *AppsServicesVersionsInstancesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Continuation token -// for fetching the next page of results. +// PageToken sets the optional parameter "pageToken": Continuation token for +// fetching the next page of results. func (c *AppsServicesVersionsInstancesListCall) PageToken(pageToken string) *AppsServicesVersionsInstancesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AppsServicesVersionsInstancesListCall) Fields(s ...googleapi.Field) *AppsServicesVersionsInstancesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AppsServicesVersionsInstancesListCall) IfNoneMatch(entityTag string) *AppsServicesVersionsInstancesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AppsServicesVersionsInstancesListCall) Context(ctx context.Context) *AppsServicesVersionsInstancesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AppsServicesVersionsInstancesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6013,12 +4556,7 @@ func (c *AppsServicesVersionsInstancesListCall) Header() http.Header { } func (c *AppsServicesVersionsInstancesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210110") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6037,16 +4575,15 @@ func (c *AppsServicesVersionsInstancesListCall) doRequest(alt string) (*http.Res "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.list" call. -// Exactly one of *ListInstancesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListInstancesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListInstancesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AppsServicesVersionsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6054,17 +4591,17 @@ func (c *AppsServicesVersionsInstancesListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListInstancesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6077,58 +4614,6 @@ func (c *AppsServicesVersionsInstancesListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists the instances of a version.Tip: To aggregate details about instances over time, see the Stackdriver Monitoring API (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).", - // "flatPath": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances", - // "httpMethod": "GET", - // "id": "appengine.apps.services.versions.instances.list", - // "parameterOrder": [ - // "appsId", - // "servicesId", - // "versionsId" - // ], - // "parameters": { - // "appsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum results to return per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token for fetching the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "versionsId": { - // "description": "Part of `name`. See documentation of `appsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances", - // "response": { - // "$ref": "ListInstancesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -6136,7 +4621,7 @@ func (c *AppsServicesVersionsInstancesListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *AppsServicesVersionsInstancesListCall) Pages(ctx context.Context, f func(*ListInstancesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/apphub/v1/apphub-gen.go b/apphub/v1/apphub-gen.go index f65ebfb3ab4..57781361230 100644 --- a/apphub/v1/apphub-gen.go +++ b/apphub/v1/apphub-gen.go @@ -1800,7 +1800,7 @@ func (c *ProjectsLocationsDetachServiceProjectAttachmentCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.detachServiceProjectAttachment" call. @@ -1908,7 +1908,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.get" call. @@ -2039,7 +2039,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.list" call. @@ -2172,7 +2172,7 @@ func (c *ProjectsLocationsLookupServiceProjectAttachmentCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.lookupServiceProjectAttachment" call. @@ -2300,7 +2300,7 @@ func (c *ProjectsLocationsApplicationsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.create" call. @@ -2412,7 +2412,7 @@ func (c *ProjectsLocationsApplicationsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.delete" call. @@ -2520,7 +2520,7 @@ func (c *ProjectsLocationsApplicationsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.get" call. @@ -2647,7 +2647,7 @@ func (c *ProjectsLocationsApplicationsGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.getIamPolicy" call. @@ -2783,7 +2783,7 @@ func (c *ProjectsLocationsApplicationsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.list" call. @@ -2937,7 +2937,7 @@ func (c *ProjectsLocationsApplicationsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.patch" call. @@ -3042,7 +3042,7 @@ func (c *ProjectsLocationsApplicationsSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.setIamPolicy" call. @@ -3150,7 +3150,7 @@ func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.testIamPermissions" call. @@ -3279,7 +3279,7 @@ func (c *ProjectsLocationsApplicationsServicesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.services.create" call. @@ -3393,7 +3393,7 @@ func (c *ProjectsLocationsApplicationsServicesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.services.delete" call. @@ -3502,7 +3502,7 @@ func (c *ProjectsLocationsApplicationsServicesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.services.get" call. @@ -3639,7 +3639,7 @@ func (c *ProjectsLocationsApplicationsServicesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.services.list" call. @@ -3793,7 +3793,7 @@ func (c *ProjectsLocationsApplicationsServicesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.services.patch" call. @@ -3921,7 +3921,7 @@ func (c *ProjectsLocationsApplicationsWorkloadsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.workloads.create" call. @@ -4035,7 +4035,7 @@ func (c *ProjectsLocationsApplicationsWorkloadsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.workloads.delete" call. @@ -4144,7 +4144,7 @@ func (c *ProjectsLocationsApplicationsWorkloadsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.workloads.get" call. @@ -4281,7 +4281,7 @@ func (c *ProjectsLocationsApplicationsWorkloadsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.workloads.list" call. @@ -4435,7 +4435,7 @@ func (c *ProjectsLocationsApplicationsWorkloadsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.workloads.patch" call. @@ -4545,7 +4545,7 @@ func (c *ProjectsLocationsDiscoveredServicesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredServices.get" call. @@ -4683,7 +4683,7 @@ func (c *ProjectsLocationsDiscoveredServicesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredServices.list" call. @@ -4822,7 +4822,7 @@ func (c *ProjectsLocationsDiscoveredServicesLookupCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredServices.lookup" call. @@ -4933,7 +4933,7 @@ func (c *ProjectsLocationsDiscoveredWorkloadsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredWorkloads.get" call. @@ -5071,7 +5071,7 @@ func (c *ProjectsLocationsDiscoveredWorkloadsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredWorkloads.list" call. @@ -5210,7 +5210,7 @@ func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredWorkloads.lookup" call. @@ -5320,7 +5320,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.operations.cancel" call. @@ -5418,7 +5418,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.operations.delete" call. @@ -5527,7 +5527,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.operations.get" call. @@ -5655,7 +5655,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.operations.list" call. @@ -5805,7 +5805,7 @@ func (c *ProjectsLocationsServiceProjectAttachmentsCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.serviceProjectAttachments.create" call. @@ -5919,7 +5919,7 @@ func (c *ProjectsLocationsServiceProjectAttachmentsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.serviceProjectAttachments.delete" call. @@ -6029,7 +6029,7 @@ func (c *ProjectsLocationsServiceProjectAttachmentsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.serviceProjectAttachments.get" call. @@ -6167,7 +6167,7 @@ func (c *ProjectsLocationsServiceProjectAttachmentsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.serviceProjectAttachments.list" call. diff --git a/apphub/v1alpha/apphub-gen.go b/apphub/v1alpha/apphub-gen.go index 7c11c050d80..4b099e927f8 100644 --- a/apphub/v1alpha/apphub-gen.go +++ b/apphub/v1alpha/apphub-gen.go @@ -1865,7 +1865,7 @@ func (c *ProjectsLocationsDetachServiceProjectAttachmentCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.detachServiceProjectAttachment" call. @@ -1973,7 +1973,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.get" call. @@ -2104,7 +2104,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.list" call. @@ -2237,7 +2237,7 @@ func (c *ProjectsLocationsLookupServiceProjectAttachmentCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.lookupServiceProjectAttachment" call. @@ -2365,7 +2365,7 @@ func (c *ProjectsLocationsApplicationsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.create" call. @@ -2477,7 +2477,7 @@ func (c *ProjectsLocationsApplicationsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.delete" call. @@ -2585,7 +2585,7 @@ func (c *ProjectsLocationsApplicationsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.get" call. @@ -2712,7 +2712,7 @@ func (c *ProjectsLocationsApplicationsGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.getIamPolicy" call. @@ -2848,7 +2848,7 @@ func (c *ProjectsLocationsApplicationsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.list" call. @@ -3002,7 +3002,7 @@ func (c *ProjectsLocationsApplicationsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.patch" call. @@ -3107,7 +3107,7 @@ func (c *ProjectsLocationsApplicationsSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.setIamPolicy" call. @@ -3215,7 +3215,7 @@ func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.testIamPermissions" call. @@ -3344,7 +3344,7 @@ func (c *ProjectsLocationsApplicationsServicesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.services.create" call. @@ -3458,7 +3458,7 @@ func (c *ProjectsLocationsApplicationsServicesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.services.delete" call. @@ -3567,7 +3567,7 @@ func (c *ProjectsLocationsApplicationsServicesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.services.get" call. @@ -3704,7 +3704,7 @@ func (c *ProjectsLocationsApplicationsServicesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.services.list" call. @@ -3858,7 +3858,7 @@ func (c *ProjectsLocationsApplicationsServicesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.services.patch" call. @@ -3986,7 +3986,7 @@ func (c *ProjectsLocationsApplicationsWorkloadsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.workloads.create" call. @@ -4100,7 +4100,7 @@ func (c *ProjectsLocationsApplicationsWorkloadsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.workloads.delete" call. @@ -4209,7 +4209,7 @@ func (c *ProjectsLocationsApplicationsWorkloadsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.workloads.get" call. @@ -4346,7 +4346,7 @@ func (c *ProjectsLocationsApplicationsWorkloadsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.workloads.list" call. @@ -4500,7 +4500,7 @@ func (c *ProjectsLocationsApplicationsWorkloadsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.applications.workloads.patch" call. @@ -4637,7 +4637,7 @@ func (c *ProjectsLocationsDiscoveredServicesFindUnregisteredCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredServices.findUnregistered" call. @@ -4769,7 +4769,7 @@ func (c *ProjectsLocationsDiscoveredServicesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredServices.get" call. @@ -4907,7 +4907,7 @@ func (c *ProjectsLocationsDiscoveredServicesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredServices.list" call. @@ -5046,7 +5046,7 @@ func (c *ProjectsLocationsDiscoveredServicesLookupCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredServices.lookup" call. @@ -5184,7 +5184,7 @@ func (c *ProjectsLocationsDiscoveredWorkloadsFindUnregisteredCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredWorkloads.findUnregistered" call. @@ -5316,7 +5316,7 @@ func (c *ProjectsLocationsDiscoveredWorkloadsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredWorkloads.get" call. @@ -5454,7 +5454,7 @@ func (c *ProjectsLocationsDiscoveredWorkloadsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredWorkloads.list" call. @@ -5593,7 +5593,7 @@ func (c *ProjectsLocationsDiscoveredWorkloadsLookupCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.discoveredWorkloads.lookup" call. @@ -5703,7 +5703,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.operations.cancel" call. @@ -5801,7 +5801,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.operations.delete" call. @@ -5910,7 +5910,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.operations.get" call. @@ -6038,7 +6038,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.operations.list" call. @@ -6188,7 +6188,7 @@ func (c *ProjectsLocationsServiceProjectAttachmentsCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.serviceProjectAttachments.create" call. @@ -6302,7 +6302,7 @@ func (c *ProjectsLocationsServiceProjectAttachmentsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.serviceProjectAttachments.delete" call. @@ -6412,7 +6412,7 @@ func (c *ProjectsLocationsServiceProjectAttachmentsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.serviceProjectAttachments.get" call. @@ -6550,7 +6550,7 @@ func (c *ProjectsLocationsServiceProjectAttachmentsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "apphub.projects.locations.serviceProjectAttachments.list" call. diff --git a/appsactivity/v1/appsactivity-gen.go b/appsactivity/v1/appsactivity-gen.go index 44f28da9dd7..7f70ee6ac2a 100644 --- a/appsactivity/v1/appsactivity-gen.go +++ b/appsactivity/v1/appsactivity-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/google-apps/activity/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // appsactivityService, err := appsactivity.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // appsactivityService, err := appsactivity.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // appsactivityService, err := appsactivity.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package appsactivity // import "google.golang.org/api/appsactivity/v1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "appsactivity:v1" const apiName = "appsactivity" const apiVersion = "v1" const basePath = "https://www.googleapis.com/appsactivity/v1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/appsactivity/v1/" // OAuth2 scopes used by this API. const ( @@ -84,12 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/activity", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -142,47 +160,39 @@ type ActivitiesService struct { s *Service } -// Activity: An Activity resource is a combined view of multiple events. -// An activity has a list of individual events and a combined view of -// the common fields among all events. +// Activity: An Activity resource is a combined view of multiple events. An +// activity has a list of individual events and a combined view of the common +// fields among all events. type Activity struct { - // CombinedEvent: The fields common to all of the singleEvents that make - // up the Activity. + // CombinedEvent: The fields common to all of the singleEvents that make up the + // Activity. CombinedEvent *Event `json:"combinedEvent,omitempty"` - // SingleEvents: A list of all the Events that make up the Activity. SingleEvents []*Event `json:"singleEvents,omitempty"` - // ForceSendFields is a list of field names (e.g. "CombinedEvent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CombinedEvent") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CombinedEvent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Activity) MarshalJSON() ([]byte, error) { +func (s Activity) MarshalJSON() ([]byte, error) { type NoMethod Activity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Event: Represents the changes associated with an action taken by a -// user. +// Event: Represents the changes associated with an action taken by a user. type Event struct { - // AdditionalEventTypes: Additional event types. Some events may have - // multiple types when multiple actions are part of a single event. For - // example, creating a document, renaming it, and sharing it may be part - // of a single file-creation event. + // AdditionalEventTypes: Additional event types. Some events may have multiple + // types when multiple actions are part of a single event. For example, + // creating a document, renaming it, and sharing it may be part of a single + // file-creation event. // // Possible values: // "comment" @@ -197,23 +207,17 @@ type Event struct { // "untrash" // "upload" AdditionalEventTypes []string `json:"additionalEventTypes,omitempty"` - - // EventTimeMillis: The time at which the event occurred formatted as - // Unix time in milliseconds. + // EventTimeMillis: The time at which the event occurred formatted as Unix time + // in milliseconds. EventTimeMillis uint64 `json:"eventTimeMillis,omitempty,string"` - - // FromUserDeletion: Whether this event is caused by a user being - // deleted. + // FromUserDeletion: Whether this event is caused by a user being deleted. FromUserDeletion bool `json:"fromUserDeletion,omitempty"` - - // Move: Extra information for move type events, such as changes in an - // object's parents. + // Move: Extra information for move type events, such as changes in an object's + // parents. Move *Move `json:"move,omitempty"` - - // PermissionChanges: Extra information for permissionChange type - // events, such as the user or group the new permission applies to. + // PermissionChanges: Extra information for permissionChange type events, such + // as the user or group the new permission applies to. PermissionChanges []*PermissionChange `json:"permissionChanges,omitempty"` - // PrimaryEventType: The main type of event that occurred. // // Possible values: @@ -229,162 +233,122 @@ type Event struct { // "untrash" // "upload" PrimaryEventType string `json:"primaryEventType,omitempty"` - - // Rename: Extra information for rename type events, such as the old and - // new names. + // Rename: Extra information for rename type events, such as the old and new + // names. Rename *Rename `json:"rename,omitempty"` - - // Target: Information specific to the Target object modified by the - // event. + // Target: Information specific to the Target object modified by the event. Target *Target `json:"target,omitempty"` - // User: Represents the user responsible for the event. User *User `json:"user,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdditionalEventTypes") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalEventTypes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalEventTypes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalEventTypes") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Event) MarshalJSON() ([]byte, error) { +func (s Event) MarshalJSON() ([]byte, error) { type NoMethod Event - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListActivitiesResponse: The response from the list request. Contains -// a list of activities and a token to retrieve the next page of -// results. +// ListActivitiesResponse: The response from the list request. Contains a list +// of activities and a token to retrieve the next page of results. type ListActivitiesResponse struct { // Activities: List of activities. Activities []*Activity `json:"activities,omitempty"` - // NextPageToken: Token for the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListActivitiesResponse) MarshalJSON() ([]byte, error) { +func (s ListActivitiesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListActivitiesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Move: Contains information about changes in an object's parents as a -// result of a move type event. +// Move: Contains information about changes in an object's parents as a result +// of a move type event. type Move struct { // AddedParents: The added parent(s). AddedParents []*Parent `json:"addedParents,omitempty"` - // RemovedParents: The removed parent(s). RemovedParents []*Parent `json:"removedParents,omitempty"` - // ForceSendFields is a list of field names (e.g. "AddedParents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AddedParents") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AddedParents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Move) MarshalJSON() ([]byte, error) { +func (s Move) MarshalJSON() ([]byte, error) { type NoMethod Move - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Parent: Contains information about a parent object. For example, a -// folder in Drive is a parent for all files within it. +// Parent: Contains information about a parent object. For example, a folder in +// Drive is a parent for all files within it. type Parent struct { // Id: The parent's ID. Id string `json:"id,omitempty"` - // IsRoot: Whether this is the root folder. IsRoot bool `json:"isRoot,omitempty"` - // Title: The parent's title. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Parent) MarshalJSON() ([]byte, error) { +func (s Parent) MarshalJSON() ([]byte, error) { type NoMethod Parent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Permission: Contains information about the permissions and type of -// access allowed with regards to a Google Drive object. This is a -// subset of the fields contained in a corresponding Drive Permissions -// object. +// Permission: Contains information about the permissions and type of access +// allowed with regards to a Google Drive object. This is a subset of the +// fields contained in a corresponding Drive Permissions object. type Permission struct { // Name: The name of the user or group the permission applies to. Name string `json:"name,omitempty"` - - // PermissionId: The ID for this permission. Corresponds to the Drive - // API's permission ID returned as part of the Drive Permissions - // resource. + // PermissionId: The ID for this permission. Corresponds to the Drive API's + // permission ID returned as part of the Drive Permissions resource. PermissionId string `json:"permissionId,omitempty"` - - // Role: Indicates the Google Drive permissions role. The role - // determines a user's ability to read, write, or comment on the file. + // Role: Indicates the Google Drive permissions role. The role determines a + // user's ability to read, write, or comment on the file. // // Possible values: // "commenter" @@ -394,7 +358,6 @@ type Permission struct { // "reader" // "writer" Role string `json:"role,omitempty"` - // Type: Indicates how widely permissions are granted. // // Possible values: @@ -403,211 +366,161 @@ type Permission struct { // "group" // "user" Type string `json:"type,omitempty"` - // User: The user's information if the type is USER. User *User `json:"user,omitempty"` - // WithLink: Whether the permission requires a link to the file. WithLink bool `json:"withLink,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Permission) MarshalJSON() ([]byte, error) { +func (s Permission) MarshalJSON() ([]byte, error) { type NoMethod Permission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PermissionChange: Contains information about a Drive object's -// permissions that changed as a result of a permissionChange type -// event. +// PermissionChange: Contains information about a Drive object's permissions +// that changed as a result of a permissionChange type event. type PermissionChange struct { // AddedPermissions: Lists all Permission objects added. AddedPermissions []*Permission `json:"addedPermissions,omitempty"` - // RemovedPermissions: Lists all Permission objects removed. RemovedPermissions []*Permission `json:"removedPermissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "AddedPermissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AddedPermissions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AddedPermissions") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PermissionChange) MarshalJSON() ([]byte, error) { +func (s PermissionChange) MarshalJSON() ([]byte, error) { type NoMethod PermissionChange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Photo: Photo information for a user. type Photo struct { // Url: The URL of the photo. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Photo) MarshalJSON() ([]byte, error) { +func (s Photo) MarshalJSON() ([]byte, error) { type NoMethod Photo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Rename: Contains information about a renametype event. type Rename struct { // NewTitle: The new title. NewTitle string `json:"newTitle,omitempty"` - // OldTitle: The old title. OldTitle string `json:"oldTitle,omitempty"` - // ForceSendFields is a list of field names (e.g. "NewTitle") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NewTitle") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NewTitle") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rename) MarshalJSON() ([]byte, error) { +func (s Rename) MarshalJSON() ([]byte, error) { type NoMethod Rename - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Target: Information about the object modified by the event. type Target struct { - // Id: The ID of the target. For example, in Google Drive, this is the - // file or folder ID. + // Id: The ID of the target. For example, in Google Drive, this is the file or + // folder ID. Id string `json:"id,omitempty"` - // MimeType: The MIME type of the target. MimeType string `json:"mimeType,omitempty"` - - // Name: The name of the target. For example, in Google Drive, this is - // the title of the file. + // Name: The name of the target. For example, in Google Drive, this is the + // title of the file. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Target) MarshalJSON() ([]byte, error) { +func (s Target) MarshalJSON() ([]byte, error) { type NoMethod Target - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // User: A representation of a user. type User struct { - // IsDeleted: A boolean which indicates whether the specified User was - // deleted. If true, name, photo and permission_id will be omitted. + // IsDeleted: A boolean which indicates whether the specified User was deleted. + // If true, name, photo and permission_id will be omitted. IsDeleted bool `json:"isDeleted,omitempty"` - // IsMe: Whether the user is the authenticated user. IsMe bool `json:"isMe,omitempty"` - // Name: The displayable name of the user. Name string `json:"name,omitempty"` - - // PermissionId: The permission ID associated with this user. Equivalent - // to the Drive API's permission ID for this user, returned as part of - // the Drive Permissions resource. + // PermissionId: The permission ID associated with this user. Equivalent to the + // Drive API's permission ID for this user, returned as part of the Drive + // Permissions resource. PermissionId string `json:"permissionId,omitempty"` - - // Photo: The profile photo of the user. Not present if the user has no - // profile photo. + // Photo: The profile photo of the user. Not present if the user has no profile + // photo. Photo *Photo `json:"photo,omitempty"` - // ForceSendFields is a list of field names (e.g. "IsDeleted") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IsDeleted") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IsDeleted") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *User) MarshalJSON() ([]byte, error) { +func (s User) MarshalJSON() ([]byte, error) { type NoMethod User - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "appsactivity.activities.list": - type ActivitiesListCall struct { s *Service urlParams_ gensupport.URLParams @@ -616,35 +529,34 @@ type ActivitiesListCall struct { header_ http.Header } -// List: Returns a list of activities visible to the current logged in -// user. Visible activities are determined by the visibility settings of -// the object that was acted on, e.g. Drive files a user can see. An -// activity is a record of past events. Multiple events may be merged if -// they are similar. A request is scoped to activities from a given -// Google service using the source parameter. +// List: Returns a list of activities visible to the current logged in user. +// Visible activities are determined by the visibility settings of the object +// that was acted on, e.g. Drive files a user can see. An activity is a record +// of past events. Multiple events may be merged if they are similar. A request +// is scoped to activities from a given Google service using the source +// parameter. func (r *ActivitiesService) List() *ActivitiesListCall { c := &ActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// DriveAncestorId sets the optional parameter "drive.ancestorId": -// Identifies the Drive folder containing the items for which to return -// activities. +// DriveAncestorId sets the optional parameter "drive.ancestorId": Identifies +// the Drive folder containing the items for which to return activities. func (c *ActivitiesListCall) DriveAncestorId(driveAncestorId string) *ActivitiesListCall { c.urlParams_.Set("drive.ancestorId", driveAncestorId) return c } -// DriveFileId sets the optional parameter "drive.fileId": Identifies -// the Drive item to return activities for. +// DriveFileId sets the optional parameter "drive.fileId": Identifies the Drive +// item to return activities for. func (c *ActivitiesListCall) DriveFileId(driveFileId string) *ActivitiesListCall { c.urlParams_.Set("drive.fileId", driveFileId) return c } -// GroupingStrategy sets the optional parameter "groupingStrategy": -// Indicates the strategy to use when grouping singleEvents items in the -// associated combinedEvent object. +// GroupingStrategy sets the optional parameter "groupingStrategy": Indicates +// the strategy to use when grouping singleEvents items in the associated +// combinedEvent object. // // Possible values: // @@ -655,66 +567,61 @@ func (c *ActivitiesListCall) GroupingStrategy(groupingStrategy string) *Activiti return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of events to return on a page. The response includes a continuation -// token if there are more events. +// PageSize sets the optional parameter "pageSize": The maximum number of +// events to return on a page. The response includes a continuation token if +// there are more events. func (c *ActivitiesListCall) PageSize(pageSize int64) *ActivitiesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token to -// retrieve a specific page of results. +// PageToken sets the optional parameter "pageToken": A token to retrieve a +// specific page of results. func (c *ActivitiesListCall) PageToken(pageToken string) *ActivitiesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Source sets the optional parameter "source": The Google service from -// which to return activities. Possible values of source are: +// Source sets the optional parameter "source": The Google service from which +// to return activities. Possible values of source are: // - drive.google.com func (c *ActivitiesListCall) Source(source string) *ActivitiesListCall { c.urlParams_.Set("source", source) return c } -// UserId sets the optional parameter "userId": The ID used for ACL -// checks (does not filter the resulting event list by the assigned -// value). Use the special value me to indicate the currently -// authenticated user. +// UserId sets the optional parameter "userId": The ID used for ACL checks +// (does not filter the resulting event list by the assigned value). Use the +// special value me to indicate the currently authenticated user. func (c *ActivitiesListCall) UserId(userId string) *ActivitiesListCall { c.urlParams_.Set("userId", userId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ActivitiesListCall) Fields(s ...googleapi.Field) *ActivitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ActivitiesListCall) IfNoneMatch(entityTag string) *ActivitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ActivitiesListCall) Context(ctx context.Context) *ActivitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ActivitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -723,12 +630,7 @@ func (c *ActivitiesListCall) Header() http.Header { } func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200926") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -742,16 +644,15 @@ func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appsactivity.activities.list" call. -// Exactly one of *ListActivitiesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListActivitiesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListActivitiesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ListActivitiesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -759,17 +660,17 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ListActivitiesRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListActivitiesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -782,68 +683,6 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ListActivitiesRe return nil, err } return ret, nil - // { - // "description": "Returns a list of activities visible to the current logged in user. Visible activities are determined by the visibility settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.", - // "httpMethod": "GET", - // "id": "appsactivity.activities.list", - // "parameters": { - // "drive.ancestorId": { - // "description": "Identifies the Drive folder containing the items for which to return activities.", - // "location": "query", - // "type": "string" - // }, - // "drive.fileId": { - // "description": "Identifies the Drive item to return activities for.", - // "location": "query", - // "type": "string" - // }, - // "groupingStrategy": { - // "default": "driveUi", - // "description": "Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.", - // "enum": [ - // "driveUi", - // "none" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "default": "50", - // "description": "The maximum number of events to return on a page. The response includes a continuation token if there are more events.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token to retrieve a specific page of results.", - // "location": "query", - // "type": "string" - // }, - // "source": { - // "description": "The Google service from which to return activities. Possible values of source are: \n- drive.google.com", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "default": "me", - // "description": "The ID used for ACL checks (does not filter the resulting event list by the assigned value). Use the special value me to indicate the currently authenticated user.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "activities", - // "response": { - // "$ref": "ListActivitiesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/activity" - // ] - // } - } // Pages invokes f for each page of results. @@ -851,7 +690,7 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ListActivitiesRe // The provided context supersedes any context provided to the Context method. func (c *ActivitiesListCall) Pages(ctx context.Context, f func(*ListActivitiesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/appstate/v1/appstate-gen.go b/appstate/v1/appstate-gen.go index 0bceab0fffb..43ff4ec518c 100644 --- a/appstate/v1/appstate-gen.go +++ b/appstate/v1/appstate-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/games/services/web/api/states // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // appstateService, err := appstate.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // appstateService, err := appstate.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // appstateService, err := appstate.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package appstate // import "google.golang.org/api/appstate/v1" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,11 +83,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "appstate:v1" const apiName = "appstate" const apiVersion = "v1" const basePath = "https://www.googleapis.com/appstate/v1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/appstate/v1/" // OAuth2 scopes used by this API. const ( @@ -82,11 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/appstate", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -143,162 +164,120 @@ type StatesService struct { type GetResponse struct { // CurrentStateVersion: The current app state version. CurrentStateVersion string `json:"currentStateVersion,omitempty"` - // Data: The requested data. Data string `json:"data,omitempty"` - - // Kind: Uniquely identifies the type of this resource. Value is always - // the fixed string appstate#getResponse. + // Kind: Uniquely identifies the type of this resource. Value is always the + // fixed string appstate#getResponse. Kind string `json:"kind,omitempty"` - // StateKey: The key for the data. StateKey int64 `json:"stateKey,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CurrentStateVersion") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CurrentStateVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrentStateVersion") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CurrentStateVersion") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetResponse) MarshalJSON() ([]byte, error) { +func (s GetResponse) MarshalJSON() ([]byte, error) { type NoMethod GetResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListResponse: This is a JSON template to convert a list-response for -// app state. +// ListResponse: This is a JSON template to convert a list-response for app +// state. type ListResponse struct { // Items: The app state data. Items []*GetResponse `json:"items,omitempty"` - - // Kind: Uniquely identifies the type of this resource. Value is always - // the fixed string appstate#listResponse. + // Kind: Uniquely identifies the type of this resource. Value is always the + // fixed string appstate#listResponse. Kind string `json:"kind,omitempty"` - // MaximumKeyCount: The maximum number of keys allowed for this user. MaximumKeyCount int64 `json:"maximumKeyCount,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListResponse) MarshalJSON() ([]byte, error) { +func (s ListResponse) MarshalJSON() ([]byte, error) { type NoMethod ListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpdateRequest: This is a JSON template for a requests which update -// app state +// UpdateRequest: This is a JSON template for a requests which update app state type UpdateRequest struct { - // Data: The new app state data that your application is trying to - // update with. + // Data: The new app state data that your application is trying to update with. Data string `json:"data,omitempty"` - - // Kind: Uniquely identifies the type of this resource. Value is always - // the fixed string appstate#updateRequest. + // Kind: Uniquely identifies the type of this resource. Value is always the + // fixed string appstate#updateRequest. Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateRequest) MarshalJSON() ([]byte, error) { +func (s UpdateRequest) MarshalJSON() ([]byte, error) { type NoMethod UpdateRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WriteResult: This is a JSON template for an app state write result. type WriteResult struct { - // CurrentStateVersion: The version of the data for this key on the - // server. + // CurrentStateVersion: The version of the data for this key on the server. CurrentStateVersion string `json:"currentStateVersion,omitempty"` - - // Kind: Uniquely identifies the type of this resource. Value is always - // the fixed string appstate#writeResult. + // Kind: Uniquely identifies the type of this resource. Value is always the + // fixed string appstate#writeResult. Kind string `json:"kind,omitempty"` - // StateKey: The written key. StateKey int64 `json:"stateKey,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CurrentStateVersion") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CurrentStateVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrentStateVersion") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CurrentStateVersion") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WriteResult) MarshalJSON() ([]byte, error) { +func (s WriteResult) MarshalJSON() ([]byte, error) { type NoMethod WriteResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "appstate.states.clear": - type StatesClearCall struct { s *Service stateKey int64 @@ -307,41 +286,41 @@ type StatesClearCall struct { header_ http.Header } -// Clear: Clears (sets to empty) the data for the passed key if and only -// if the passed version matches the currently stored version. This -// method results in a conflict error on version mismatch. +// Clear: Clears (sets to empty) the data for the passed key if and only if the +// passed version matches the currently stored version. This method results in +// a conflict error on version mismatch. +// +// - stateKey: The key for the data to be retrieved. func (r *StatesService) Clear(stateKey int64) *StatesClearCall { c := &StatesClearCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.stateKey = stateKey return c } -// CurrentDataVersion sets the optional parameter "currentDataVersion": -// The version of the data to be cleared. Version strings are returned -// by the server. +// CurrentDataVersion sets the optional parameter "currentDataVersion": The +// version of the data to be cleared. Version strings are returned by the +// server. func (c *StatesClearCall) CurrentDataVersion(currentDataVersion string) *StatesClearCall { c.urlParams_.Set("currentDataVersion", currentDataVersion) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StatesClearCall) Fields(s ...googleapi.Field) *StatesClearCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StatesClearCall) Context(ctx context.Context) *StatesClearCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StatesClearCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -350,12 +329,7 @@ func (c *StatesClearCall) Header() http.Header { } func (c *StatesClearCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -369,16 +343,14 @@ func (c *StatesClearCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "stateKey": strconv.FormatInt(c.stateKey, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appstate.states.clear" call. -// Exactly one of *WriteResult or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *WriteResult.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WriteResult.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StatesClearCall) Do(opts ...googleapi.CallOption) (*WriteResult, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -386,17 +358,17 @@ func (c *StatesClearCall) Do(opts ...googleapi.CallOption) (*WriteResult, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WriteResult{ ServerResponse: googleapi.ServerResponse{ @@ -409,41 +381,7 @@ func (c *StatesClearCall) Do(opts ...googleapi.CallOption) (*WriteResult, error) return nil, err } return ret, nil - // { - // "description": "Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.", - // "httpMethod": "POST", - // "id": "appstate.states.clear", - // "parameterOrder": [ - // "stateKey" - // ], - // "parameters": { - // "currentDataVersion": { - // "description": "The version of the data to be cleared. Version strings are returned by the server.", - // "location": "query", - // "type": "string" - // }, - // "stateKey": { - // "description": "The key for the data to be retrieved.", - // "format": "int32", - // "location": "path", - // "maximum": "3", - // "minimum": "0", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "states/{stateKey}/clear", - // "response": { - // "$ref": "WriteResult" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appstate" - // ] - // } - -} - -// method id "appstate.states.delete": +} type StatesDeleteCall struct { s *Service @@ -453,12 +391,13 @@ type StatesDeleteCall struct { header_ http.Header } -// Delete: Deletes a key and the data associated with it. The key is -// removed and no longer counts against the key quota. Note that since -// this method is not safe in the face of concurrent modifications, it -// should only be used for development and testing purposes. Invoking -// this method in shipping code can result in data loss and data -// corruption. +// Delete: Deletes a key and the data associated with it. The key is removed +// and no longer counts against the key quota. Note that since this method is +// not safe in the face of concurrent modifications, it should only be used for +// development and testing purposes. Invoking this method in shipping code can +// result in data loss and data corruption. +// +// - stateKey: The key for the data to be retrieved. func (r *StatesService) Delete(stateKey int64) *StatesDeleteCall { c := &StatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.stateKey = stateKey @@ -466,23 +405,21 @@ func (r *StatesService) Delete(stateKey int64) *StatesDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StatesDeleteCall) Fields(s ...googleapi.Field) *StatesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StatesDeleteCall) Context(ctx context.Context) *StatesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StatesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -491,12 +428,7 @@ func (c *StatesDeleteCall) Header() http.Header { } func (c *StatesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -510,7 +442,7 @@ func (c *StatesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "stateKey": strconv.FormatInt(c.stateKey, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appstate.states.delete" call. @@ -522,36 +454,10 @@ func (c *StatesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.", - // "httpMethod": "DELETE", - // "id": "appstate.states.delete", - // "parameterOrder": [ - // "stateKey" - // ], - // "parameters": { - // "stateKey": { - // "description": "The key for the data to be retrieved.", - // "format": "int32", - // "location": "path", - // "maximum": "3", - // "minimum": "0", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "states/{stateKey}", - // "scopes": [ - // "https://www.googleapis.com/auth/appstate" - // ] - // } - -} - -// method id "appstate.states.get": +} type StatesGetCall struct { s *Service @@ -562,8 +468,10 @@ type StatesGetCall struct { header_ http.Header } -// Get: Retrieves the data corresponding to the passed key. If the key -// does not exist on the server, an HTTP 404 will be returned. +// Get: Retrieves the data corresponding to the passed key. If the key does not +// exist on the server, an HTTP 404 will be returned. +// +// - stateKey: The key for the data to be retrieved. func (r *StatesService) Get(stateKey int64) *StatesGetCall { c := &StatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.stateKey = stateKey @@ -571,33 +479,29 @@ func (r *StatesService) Get(stateKey int64) *StatesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StatesGetCall) Fields(s ...googleapi.Field) *StatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *StatesGetCall) IfNoneMatch(entityTag string) *StatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StatesGetCall) Context(ctx context.Context) *StatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -606,12 +510,7 @@ func (c *StatesGetCall) Header() http.Header { } func (c *StatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -628,16 +527,14 @@ func (c *StatesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "stateKey": strconv.FormatInt(c.stateKey, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appstate.states.get" call. -// Exactly one of *GetResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *GetResponse.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GetResponse.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StatesGetCall) Do(opts ...googleapi.CallOption) (*GetResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -645,17 +542,17 @@ func (c *StatesGetCall) Do(opts ...googleapi.CallOption) (*GetResponse, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GetResponse{ ServerResponse: googleapi.ServerResponse{ @@ -668,36 +565,7 @@ func (c *StatesGetCall) Do(opts ...googleapi.CallOption) (*GetResponse, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.", - // "httpMethod": "GET", - // "id": "appstate.states.get", - // "parameterOrder": [ - // "stateKey" - // ], - // "parameters": { - // "stateKey": { - // "description": "The key for the data to be retrieved.", - // "format": "int32", - // "location": "path", - // "maximum": "3", - // "minimum": "0", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "states/{stateKey}", - // "response": { - // "$ref": "GetResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appstate" - // ] - // } - -} - -// method id "appstate.states.list": +} type StatesListCall struct { s *Service @@ -713,41 +581,37 @@ func (r *StatesService) List() *StatesListCall { return c } -// IncludeData sets the optional parameter "includeData": Whether to -// include the full data in addition to the version number +// IncludeData sets the optional parameter "includeData": Whether to include +// the full data in addition to the version number func (c *StatesListCall) IncludeData(includeData bool) *StatesListCall { c.urlParams_.Set("includeData", fmt.Sprint(includeData)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StatesListCall) Fields(s ...googleapi.Field) *StatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *StatesListCall) IfNoneMatch(entityTag string) *StatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StatesListCall) Context(ctx context.Context) *StatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -756,12 +620,7 @@ func (c *StatesListCall) Header() http.Header { } func (c *StatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -775,16 +634,14 @@ func (c *StatesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appstate.states.list" call. -// Exactly one of *ListResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ListResponse.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListResponse.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StatesListCall) Do(opts ...googleapi.CallOption) (*ListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -792,17 +649,17 @@ func (c *StatesListCall) Do(opts ...googleapi.CallOption) (*ListResponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -815,30 +672,7 @@ func (c *StatesListCall) Do(opts ...googleapi.CallOption) (*ListResponse, error) return nil, err } return ret, nil - // { - // "description": "Lists all the states keys, and optionally the state data.", - // "httpMethod": "GET", - // "id": "appstate.states.list", - // "parameters": { - // "includeData": { - // "default": "false", - // "description": "Whether to include the full data in addition to the version number", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "states", - // "response": { - // "$ref": "ListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appstate" - // ] - // } - -} - -// method id "appstate.states.update": +} type StatesUpdateCall struct { s *Service @@ -849,10 +683,11 @@ type StatesUpdateCall struct { header_ http.Header } -// Update: Update the data associated with the input key if and only if -// the passed version matches the currently stored version. This method -// is safe in the face of concurrent writes. Maximum per-key size is -// 128KB. +// Update: Update the data associated with the input key if and only if the +// passed version matches the currently stored version. This method is safe in +// the face of concurrent writes. Maximum per-key size is 128KB. +// +// - stateKey: The key for the data to be retrieved. func (r *StatesService) Update(stateKey int64, updaterequest *UpdateRequest) *StatesUpdateCall { c := &StatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.stateKey = stateKey @@ -860,35 +695,32 @@ func (r *StatesService) Update(stateKey int64, updaterequest *UpdateRequest) *St return c } -// CurrentStateVersion sets the optional parameter -// "currentStateVersion": The version of the app state your application -// is attempting to update. If this does not match the current version, -// this method will return a conflict error. If there is no data stored -// on the server for this key, the update will succeed irrespective of -// the value of this parameter. +// CurrentStateVersion sets the optional parameter "currentStateVersion": The +// version of the app state your application is attempting to update. If this +// does not match the current version, this method will return a conflict +// error. If there is no data stored on the server for this key, the update +// will succeed irrespective of the value of this parameter. func (c *StatesUpdateCall) CurrentStateVersion(currentStateVersion string) *StatesUpdateCall { c.urlParams_.Set("currentStateVersion", currentStateVersion) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StatesUpdateCall) Fields(s ...googleapi.Field) *StatesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StatesUpdateCall) Context(ctx context.Context) *StatesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StatesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -897,18 +729,12 @@ func (c *StatesUpdateCall) Header() http.Header { } func (c *StatesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.updaterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "states/{stateKey}") @@ -921,16 +747,14 @@ func (c *StatesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "stateKey": strconv.FormatInt(c.stateKey, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appstate.states.update" call. -// Exactly one of *WriteResult or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *WriteResult.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WriteResult.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StatesUpdateCall) Do(opts ...googleapi.CallOption) (*WriteResult, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -938,17 +762,17 @@ func (c *StatesUpdateCall) Do(opts ...googleapi.CallOption) (*WriteResult, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WriteResult{ ServerResponse: googleapi.ServerResponse{ @@ -961,39 +785,4 @@ func (c *StatesUpdateCall) Do(opts ...googleapi.CallOption) (*WriteResult, error return nil, err } return ret, nil - // { - // "description": "Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.", - // "httpMethod": "PUT", - // "id": "appstate.states.update", - // "parameterOrder": [ - // "stateKey" - // ], - // "parameters": { - // "currentStateVersion": { - // "description": "The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.", - // "location": "query", - // "type": "string" - // }, - // "stateKey": { - // "description": "The key for the data to be retrieved.", - // "format": "int32", - // "location": "path", - // "maximum": "3", - // "minimum": "0", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "states/{stateKey}", - // "request": { - // "$ref": "UpdateRequest" - // }, - // "response": { - // "$ref": "WriteResult" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appstate" - // ] - // } - } diff --git a/area120tables/v1alpha1/area120tables-gen.go b/area120tables/v1alpha1/area120tables-gen.go index 32daec23751..5d631d7ad7f 100644 --- a/area120tables/v1alpha1/area120tables-gen.go +++ b/area120tables/v1alpha1/area120tables-gen.go @@ -834,7 +834,7 @@ func (c *TablesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.tables.get" call. @@ -959,7 +959,7 @@ func (c *TablesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.tables.list" call. @@ -1083,7 +1083,7 @@ func (c *TablesRowsBatchCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.tables.rows.batchCreate" call. @@ -1186,7 +1186,7 @@ func (c *TablesRowsBatchDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.tables.rows.batchDelete" call. @@ -1288,7 +1288,7 @@ func (c *TablesRowsBatchUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.tables.rows.batchUpdate" call. @@ -1403,7 +1403,7 @@ func (c *TablesRowsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.tables.rows.create" call. @@ -1498,7 +1498,7 @@ func (c *TablesRowsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.tables.rows.delete" call. @@ -1617,7 +1617,7 @@ func (c *TablesRowsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.tables.rows.get" call. @@ -1769,7 +1769,7 @@ func (c *TablesRowsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.tables.rows.list" call. @@ -1912,7 +1912,7 @@ func (c *TablesRowsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.tables.rows.patch" call. @@ -2020,7 +2020,7 @@ func (c *WorkspacesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.workspaces.get" call. @@ -2138,7 +2138,7 @@ func (c *WorkspacesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "area120tables.workspaces.list" call. diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index b77d4d10e0e..fd40d0bee87 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -3323,7 +3323,7 @@ func (c *ProjectsGetProjectSettingsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.getProjectSettings" call. @@ -3434,7 +3434,7 @@ func (c *ProjectsUpdateProjectSettingsCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.updateProjectSettings" call. @@ -3542,7 +3542,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.get" call. @@ -3649,7 +3649,7 @@ func (c *ProjectsLocationsGetVpcscConfigCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.getVpcscConfig" call. @@ -3780,7 +3780,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.list" call. @@ -3912,7 +3912,7 @@ func (c *ProjectsLocationsUpdateVpcscConfigCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.updateVpcscConfig" call. @@ -4021,7 +4021,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.operations.get" call. @@ -4131,7 +4131,7 @@ func (c *ProjectsLocationsRepositoriesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.create" call. @@ -4228,7 +4228,7 @@ func (c *ProjectsLocationsRepositoriesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.delete" call. @@ -4335,7 +4335,7 @@ func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.get" call. @@ -4461,7 +4461,7 @@ func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.getIamPolicy" call. @@ -4606,7 +4606,7 @@ func (c *ProjectsLocationsRepositoriesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.list" call. @@ -4739,7 +4739,7 @@ func (c *ProjectsLocationsRepositoriesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.patch" call. @@ -4842,7 +4842,7 @@ func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.setIamPolicy" call. @@ -4947,7 +4947,7 @@ func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.testIamPermissions" call. @@ -5053,7 +5053,7 @@ func (c *ProjectsLocationsRepositoriesAptArtifactsImportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.aptArtifacts.import" call. @@ -5208,7 +5208,7 @@ func (c *ProjectsLocationsRepositoriesAptArtifactsUploadCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.aptArtifacts.upload" call. @@ -5333,7 +5333,7 @@ func (c *ProjectsLocationsRepositoriesDockerImagesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.dockerImages.get" call. @@ -5462,7 +5462,7 @@ func (c *ProjectsLocationsRepositoriesDockerImagesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.dockerImages.list" call. @@ -5581,7 +5581,7 @@ func (c *ProjectsLocationsRepositoriesFilesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.files.delete" call. @@ -5688,7 +5688,7 @@ func (c *ProjectsLocationsRepositoriesFilesDownloadCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -5812,7 +5812,7 @@ func (c *ProjectsLocationsRepositoriesFilesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.files.get" call. @@ -5980,7 +5980,7 @@ func (c *ProjectsLocationsRepositoriesFilesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.files.list" call. @@ -6157,7 +6157,7 @@ func (c *ProjectsLocationsRepositoriesGenericArtifactsUploadCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.genericArtifacts.upload" call. @@ -6329,7 +6329,7 @@ func (c *ProjectsLocationsRepositoriesGoModulesUploadCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.goModules.upload" call. @@ -6452,7 +6452,7 @@ func (c *ProjectsLocationsRepositoriesGoogetArtifactsImportCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.googetArtifacts.import" call. @@ -6607,7 +6607,7 @@ func (c *ProjectsLocationsRepositoriesGoogetArtifactsUploadCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.googetArtifacts.upload" call. @@ -6780,7 +6780,7 @@ func (c *ProjectsLocationsRepositoriesKfpArtifactsUploadCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.kfpArtifacts.upload" call. @@ -6905,7 +6905,7 @@ func (c *ProjectsLocationsRepositoriesMavenArtifactsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.mavenArtifacts.get" call. @@ -7027,7 +7027,7 @@ func (c *ProjectsLocationsRepositoriesMavenArtifactsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.mavenArtifacts.list" call. @@ -7156,7 +7156,7 @@ func (c *ProjectsLocationsRepositoriesNpmPackagesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.npmPackages.get" call. @@ -7277,7 +7277,7 @@ func (c *ProjectsLocationsRepositoriesNpmPackagesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.npmPackages.list" call. @@ -7395,7 +7395,7 @@ func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.delete" call. @@ -7502,7 +7502,7 @@ func (c *ProjectsLocationsRepositoriesPackagesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.get" call. @@ -7665,7 +7665,7 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.list" call. @@ -7798,7 +7798,7 @@ func (c *ProjectsLocationsRepositoriesPackagesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.patch" call. @@ -7906,7 +7906,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.create" call. @@ -8001,7 +8001,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.delete" call. @@ -8108,7 +8108,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.get" call. @@ -8255,7 +8255,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.list" call. @@ -8390,7 +8390,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.patch" call. @@ -8492,7 +8492,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsBatchDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.versions.batchDelete" call. @@ -8596,7 +8596,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.versions.delete" call. @@ -8722,7 +8722,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.versions.get" call. @@ -8904,7 +8904,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.versions.list" call. @@ -9033,7 +9033,7 @@ func (c *ProjectsLocationsRepositoriesPythonPackagesGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.pythonPackages.get" call. @@ -9155,7 +9155,7 @@ func (c *ProjectsLocationsRepositoriesPythonPackagesListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.pythonPackages.list" call. @@ -9282,7 +9282,7 @@ func (c *ProjectsLocationsRepositoriesYumArtifactsImportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.yumArtifacts.import" call. @@ -9437,7 +9437,7 @@ func (c *ProjectsLocationsRepositoriesYumArtifactsUploadCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.yumArtifacts.upload" call. diff --git a/artifactregistry/v1beta1/artifactregistry-gen.go b/artifactregistry/v1beta1/artifactregistry-gen.go index 5811da08515..d40df193d4b 100644 --- a/artifactregistry/v1beta1/artifactregistry-gen.go +++ b/artifactregistry/v1beta1/artifactregistry-gen.go @@ -1175,7 +1175,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.get" call. @@ -1306,7 +1306,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.list" call. @@ -1437,7 +1437,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.operations.get" call. @@ -1547,7 +1547,7 @@ func (c *ProjectsLocationsRepositoriesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.create" call. @@ -1644,7 +1644,7 @@ func (c *ProjectsLocationsRepositoriesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.delete" call. @@ -1751,7 +1751,7 @@ func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.get" call. @@ -1877,7 +1877,7 @@ func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.getIamPolicy" call. @@ -2005,7 +2005,7 @@ func (c *ProjectsLocationsRepositoriesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.list" call. @@ -2138,7 +2138,7 @@ func (c *ProjectsLocationsRepositoriesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.patch" call. @@ -2241,7 +2241,7 @@ func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.setIamPolicy" call. @@ -2346,7 +2346,7 @@ func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.testIamPermissions" call. @@ -2454,7 +2454,7 @@ func (c *ProjectsLocationsRepositoriesFilesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.files.get" call. @@ -2614,7 +2614,7 @@ func (c *ProjectsLocationsRepositoriesFilesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.files.list" call. @@ -2732,7 +2732,7 @@ func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.delete" call. @@ -2839,7 +2839,7 @@ func (c *ProjectsLocationsRepositoriesPackagesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.get" call. @@ -2967,7 +2967,7 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.list" call. @@ -3097,7 +3097,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.create" call. @@ -3192,7 +3192,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.delete" call. @@ -3299,7 +3299,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.get" call. @@ -3446,7 +3446,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.list" call. @@ -3581,7 +3581,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.patch" call. @@ -3685,7 +3685,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.versions.delete" call. @@ -3811,7 +3811,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.versions.get" call. @@ -3958,7 +3958,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.versions.list" call. diff --git a/artifactregistry/v1beta2/artifactregistry-gen.go b/artifactregistry/v1beta2/artifactregistry-gen.go index 1ac9e872c40..d5b2c2ca06c 100644 --- a/artifactregistry/v1beta2/artifactregistry-gen.go +++ b/artifactregistry/v1beta2/artifactregistry-gen.go @@ -1689,7 +1689,7 @@ func (c *ProjectsGetProjectSettingsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.getProjectSettings" call. @@ -1800,7 +1800,7 @@ func (c *ProjectsUpdateProjectSettingsCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.updateProjectSettings" call. @@ -1908,7 +1908,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.get" call. @@ -2039,7 +2039,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.list" call. @@ -2170,7 +2170,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.operations.get" call. @@ -2280,7 +2280,7 @@ func (c *ProjectsLocationsRepositoriesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.create" call. @@ -2377,7 +2377,7 @@ func (c *ProjectsLocationsRepositoriesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.delete" call. @@ -2484,7 +2484,7 @@ func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.get" call. @@ -2610,7 +2610,7 @@ func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.getIamPolicy" call. @@ -2738,7 +2738,7 @@ func (c *ProjectsLocationsRepositoriesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.list" call. @@ -2871,7 +2871,7 @@ func (c *ProjectsLocationsRepositoriesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.patch" call. @@ -2974,7 +2974,7 @@ func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.setIamPolicy" call. @@ -3079,7 +3079,7 @@ func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.testIamPermissions" call. @@ -3185,7 +3185,7 @@ func (c *ProjectsLocationsRepositoriesAptArtifactsImportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.aptArtifacts.import" call. @@ -3340,7 +3340,7 @@ func (c *ProjectsLocationsRepositoriesAptArtifactsUploadCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.aptArtifacts.upload" call. @@ -3465,7 +3465,7 @@ func (c *ProjectsLocationsRepositoriesFilesDownloadCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -3589,7 +3589,7 @@ func (c *ProjectsLocationsRepositoriesFilesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.files.get" call. @@ -3750,7 +3750,7 @@ func (c *ProjectsLocationsRepositoriesFilesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.files.list" call. @@ -3868,7 +3868,7 @@ func (c *ProjectsLocationsRepositoriesPackagesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.delete" call. @@ -3975,7 +3975,7 @@ func (c *ProjectsLocationsRepositoriesPackagesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.get" call. @@ -4103,7 +4103,7 @@ func (c *ProjectsLocationsRepositoriesPackagesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.list" call. @@ -4236,7 +4236,7 @@ func (c *ProjectsLocationsRepositoriesPackagesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.patch" call. @@ -4344,7 +4344,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.create" call. @@ -4439,7 +4439,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.delete" call. @@ -4546,7 +4546,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.get" call. @@ -4693,7 +4693,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.list" call. @@ -4828,7 +4828,7 @@ func (c *ProjectsLocationsRepositoriesPackagesTagsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.tags.patch" call. @@ -4932,7 +4932,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.versions.delete" call. @@ -5058,7 +5058,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.versions.get" call. @@ -5205,7 +5205,7 @@ func (c *ProjectsLocationsRepositoriesPackagesVersionsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.packages.versions.list" call. @@ -5332,7 +5332,7 @@ func (c *ProjectsLocationsRepositoriesYumArtifactsImportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.yumArtifacts.import" call. @@ -5487,7 +5487,7 @@ func (c *ProjectsLocationsRepositoriesYumArtifactsUploadCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "artifactregistry.projects.locations.repositories.yumArtifacts.upload" call. diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index 2cfbd488fe8..56e8dc875cd 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20240823", + "revision": "20240913", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": { @@ -699,7 +699,8 @@ "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS", - "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT" + "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT", + "IRS_1075" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -724,7 +725,8 @@ "Assured Workloads Sovereign Controls KSA", "Assured Workloads for Regional Controls", "Healthcare and Life Science Controls", - "Healthcare and Life Science Controls with US Support" + "Healthcare and Life Science Controls with US Support", + "Internal Revenue Service 1075 controls" ], "type": "string" }, @@ -1186,7 +1188,8 @@ "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS", - "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT" + "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT", + "IRS_1075" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -1211,7 +1214,8 @@ "Assured Workloads Sovereign Controls KSA", "Assured Workloads for Regional Controls", "Healthcare and Life Science Controls", - "Healthcare and Life Science Controls with US Support" + "Healthcare and Life Science Controls with US Support", + "Internal Revenue Service 1075 controls" ], "type": "string" }, diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 2b17129e525..cb687da9f2b 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -353,6 +353,7 @@ type GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata struct { // Controls // "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT" - Healthcare and Life // Science Controls with US Support + // "IRS_1075" - Internal Revenue Service 1075 controls ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Optional. Time when the operation was created. CreateTime string `json:"createTime,omitempty"` @@ -892,6 +893,7 @@ type GoogleCloudAssuredworkloadsV1Workload struct { // Controls // "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT" - Healthcare and Life // Science Controls with US Support + // "IRS_1075" - Internal Revenue Service 1075 controls ComplianceRegime string `json:"complianceRegime,omitempty"` // ComplianceStatus: Output only. Count of active Violations in the Workload. ComplianceStatus *GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus `json:"complianceStatus,omitempty"` @@ -1472,7 +1474,7 @@ func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.operations.get" call. @@ -1601,7 +1603,7 @@ func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.operations.list" call. @@ -1771,7 +1773,7 @@ func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "target": c.target, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.analyzeWorkloadMove" call. @@ -1905,7 +1907,7 @@ func (c *OrganizationsLocationsWorkloadsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.create" call. @@ -2013,7 +2015,7 @@ func (c *OrganizationsLocationsWorkloadsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.delete" call. @@ -2111,7 +2113,7 @@ func (c *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.enableResourceMonitoring" call. @@ -2223,7 +2225,7 @@ func (c *OrganizationsLocationsWorkloadsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.get" call. @@ -2354,7 +2356,7 @@ func (c *OrganizationsLocationsWorkloadsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.list" call. @@ -2480,7 +2482,7 @@ func (c *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.mutatePartnerPermissions" call. @@ -2593,7 +2595,7 @@ func (c *OrganizationsLocationsWorkloadsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.patch" call. @@ -2704,7 +2706,7 @@ func (c *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.restrictAllowedResources" call. @@ -2812,7 +2814,7 @@ func (c *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.violations.acknowledge" call. @@ -2923,7 +2925,7 @@ func (c *OrganizationsLocationsWorkloadsViolationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.violations.get" call. @@ -3070,7 +3072,7 @@ func (c *OrganizationsLocationsWorkloadsViolationsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.violations.list" call. diff --git a/assuredworkloads/v1beta1/assuredworkloads-api.json b/assuredworkloads/v1beta1/assuredworkloads-api.json index ad17eaf8996..61d7230752e 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-api.json +++ b/assuredworkloads/v1beta1/assuredworkloads-api.json @@ -588,7 +588,7 @@ } } }, - "revision": "20240823", + "revision": "20240913", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": { @@ -696,7 +696,8 @@ "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS", - "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT" + "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT", + "IRS_1075" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -721,7 +722,8 @@ "Assured Workloads Sovereign Controls KSA", "Assured Workloads for Regional Controls", "Healthcare and Life Science Controls", - "Healthcare and Life Science Controls with US Support" + "Healthcare and Life Science Controls with US Support", + "Internal Revenue Service 1075 controls" ], "type": "string" }, @@ -1181,7 +1183,8 @@ "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS", - "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT" + "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT", + "IRS_1075" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -1206,7 +1209,8 @@ "Assured Workloads Sovereign Controls KSA", "Assured Workloads for Regional Controls", "Healthcare and Life Science Controls", - "Healthcare and Life Science Controls with US Support" + "Healthcare and Life Science Controls with US Support", + "Internal Revenue Service 1075 controls" ], "type": "string" }, diff --git a/assuredworkloads/v1beta1/assuredworkloads-gen.go b/assuredworkloads/v1beta1/assuredworkloads-gen.go index 5cbb605f0a6..325cf649f22 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-gen.go +++ b/assuredworkloads/v1beta1/assuredworkloads-gen.go @@ -353,6 +353,7 @@ type GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata struct { // Controls // "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT" - Healthcare and Life // Science Controls with US Support + // "IRS_1075" - Internal Revenue Service 1075 controls ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Optional. Time when the operation was created. CreateTime string `json:"createTime,omitempty"` @@ -876,6 +877,7 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // Controls // "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT" - Healthcare and Life // Science Controls with US Support + // "IRS_1075" - Internal Revenue Service 1075 controls ComplianceRegime string `json:"complianceRegime,omitempty"` // ComplianceStatus: Output only. Count of active Violations in the Workload. ComplianceStatus *GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus `json:"complianceStatus,omitempty"` @@ -1565,7 +1567,7 @@ func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.operations.get" call. @@ -1694,7 +1696,7 @@ func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.operations.list" call. @@ -1864,7 +1866,7 @@ func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "target": c.target, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.analyzeWorkloadMove" call. @@ -1998,7 +2000,7 @@ func (c *OrganizationsLocationsWorkloadsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.create" call. @@ -2106,7 +2108,7 @@ func (c *OrganizationsLocationsWorkloadsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.delete" call. @@ -2209,7 +2211,7 @@ func (c *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.enableComplianceUpdates" call. @@ -2307,7 +2309,7 @@ func (c *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.enableResourceMonitoring" call. @@ -2419,7 +2421,7 @@ func (c *OrganizationsLocationsWorkloadsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.get" call. @@ -2550,7 +2552,7 @@ func (c *OrganizationsLocationsWorkloadsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.list" call. @@ -2684,7 +2686,7 @@ func (c *OrganizationsLocationsWorkloadsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.patch" call. @@ -2795,7 +2797,7 @@ func (c *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.restrictAllowedResources" call. @@ -2903,7 +2905,7 @@ func (c *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.violations.acknowledge" call. @@ -3014,7 +3016,7 @@ func (c *OrganizationsLocationsWorkloadsViolationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.violations.get" call. @@ -3161,7 +3163,7 @@ func (c *OrganizationsLocationsWorkloadsViolationsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "assuredworkloads.organizations.locations.workloads.violations.list" call. diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go index ef607d79d79..51e10e9e6d3 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go @@ -2542,7 +2542,7 @@ func (c *BiddersAuctionPackagesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.bidders.auctionPackages.list" call. @@ -2718,7 +2718,7 @@ func (c *BiddersFinalizedDealsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.bidders.finalizedDeals.list" call. @@ -2848,7 +2848,7 @@ func (c *BuyersAuctionPackagesGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.get" call. @@ -2998,7 +2998,7 @@ func (c *BuyersAuctionPackagesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.list" call. @@ -3125,7 +3125,7 @@ func (c *BuyersAuctionPackagesSubscribeCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.subscribe" call. @@ -3231,7 +3231,7 @@ func (c *BuyersAuctionPackagesSubscribeClientsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "auctionPackage": c.auctionPackage, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.subscribeClients" call. @@ -3335,7 +3335,7 @@ func (c *BuyersAuctionPackagesUnsubscribeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.unsubscribe" call. @@ -3439,7 +3439,7 @@ func (c *BuyersAuctionPackagesUnsubscribeClientsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "auctionPackage": c.auctionPackage, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.unsubscribeClients" call. @@ -3542,7 +3542,7 @@ func (c *BuyersClientsActivateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.activate" call. @@ -3643,7 +3643,7 @@ func (c *BuyersClientsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.create" call. @@ -3746,7 +3746,7 @@ func (c *BuyersClientsDeactivateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.deactivate" call. @@ -3853,7 +3853,7 @@ func (c *BuyersClientsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.get" call. @@ -3989,7 +3989,7 @@ func (c *BuyersClientsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.list" call. @@ -4128,7 +4128,7 @@ func (c *BuyersClientsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.patch" call. @@ -4233,7 +4233,7 @@ func (c *BuyersClientsUsersActivateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.activate" call. @@ -4336,7 +4336,7 @@ func (c *BuyersClientsUsersCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.create" call. @@ -4441,7 +4441,7 @@ func (c *BuyersClientsUsersDeactivateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.deactivate" call. @@ -4540,7 +4540,7 @@ func (c *BuyersClientsUsersDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.delete" call. @@ -4648,7 +4648,7 @@ func (c *BuyersClientsUsersGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.get" call. @@ -4772,7 +4772,7 @@ func (c *BuyersClientsUsersListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.list" call. @@ -4903,7 +4903,7 @@ func (c *BuyersFinalizedDealsAddCreativeCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "deal": c.deal, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.addCreative" call. @@ -5010,7 +5010,7 @@ func (c *BuyersFinalizedDealsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.get" call. @@ -5164,7 +5164,7 @@ func (c *BuyersFinalizedDealsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.list" call. @@ -5290,7 +5290,7 @@ func (c *BuyersFinalizedDealsPauseCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.pause" call. @@ -5395,7 +5395,7 @@ func (c *BuyersFinalizedDealsResumeCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.resume" call. @@ -5504,7 +5504,7 @@ func (c *BuyersFinalizedDealsSetReadyToServeCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "deal": c.deal, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.setReadyToServe" call. @@ -5613,7 +5613,7 @@ func (c *BuyersProposalsAcceptCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.accept" call. @@ -5717,7 +5717,7 @@ func (c *BuyersProposalsAddNoteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "proposal": c.proposal, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.addNote" call. @@ -5827,7 +5827,7 @@ func (c *BuyersProposalsCancelNegotiationCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "proposal": c.proposal, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.cancelNegotiation" call. @@ -5936,7 +5936,7 @@ func (c *BuyersProposalsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.get" call. @@ -6072,7 +6072,7 @@ func (c *BuyersProposalsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.list" call. @@ -6218,7 +6218,7 @@ func (c *BuyersProposalsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.patch" call. @@ -6325,7 +6325,7 @@ func (c *BuyersProposalsSendRfpCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "buyer": c.buyer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.sendRfp" call. @@ -6427,7 +6427,7 @@ func (c *BuyersProposalsDealsBatchUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.batchUpdate" call. @@ -6535,7 +6535,7 @@ func (c *BuyersProposalsDealsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.get" call. @@ -6661,7 +6661,7 @@ func (c *BuyersProposalsDealsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.list" call. @@ -6810,7 +6810,7 @@ func (c *BuyersProposalsDealsPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.patch" call. @@ -6918,7 +6918,7 @@ func (c *BuyersPublisherProfilesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.publisherProfiles.get" call. @@ -7054,7 +7054,7 @@ func (c *BuyersPublisherProfilesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.publisherProfiles.list" call. diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go index 0bb0e4af64d..e1fca8d44ca 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go @@ -2637,7 +2637,7 @@ func (c *BiddersAuctionPackagesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.bidders.auctionPackages.list" call. @@ -2813,7 +2813,7 @@ func (c *BiddersFinalizedDealsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.bidders.finalizedDeals.list" call. @@ -2943,7 +2943,7 @@ func (c *BuyersAuctionPackagesGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.get" call. @@ -3093,7 +3093,7 @@ func (c *BuyersAuctionPackagesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.list" call. @@ -3220,7 +3220,7 @@ func (c *BuyersAuctionPackagesSubscribeCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.subscribe" call. @@ -3326,7 +3326,7 @@ func (c *BuyersAuctionPackagesSubscribeClientsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "auctionPackage": c.auctionPackage, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.subscribeClients" call. @@ -3430,7 +3430,7 @@ func (c *BuyersAuctionPackagesUnsubscribeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.unsubscribe" call. @@ -3534,7 +3534,7 @@ func (c *BuyersAuctionPackagesUnsubscribeClientsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "auctionPackage": c.auctionPackage, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.auctionPackages.unsubscribeClients" call. @@ -3637,7 +3637,7 @@ func (c *BuyersClientsActivateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.activate" call. @@ -3738,7 +3738,7 @@ func (c *BuyersClientsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.create" call. @@ -3841,7 +3841,7 @@ func (c *BuyersClientsDeactivateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.deactivate" call. @@ -3948,7 +3948,7 @@ func (c *BuyersClientsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.get" call. @@ -4084,7 +4084,7 @@ func (c *BuyersClientsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.list" call. @@ -4223,7 +4223,7 @@ func (c *BuyersClientsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.patch" call. @@ -4328,7 +4328,7 @@ func (c *BuyersClientsUsersActivateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.activate" call. @@ -4431,7 +4431,7 @@ func (c *BuyersClientsUsersCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.create" call. @@ -4536,7 +4536,7 @@ func (c *BuyersClientsUsersDeactivateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.deactivate" call. @@ -4635,7 +4635,7 @@ func (c *BuyersClientsUsersDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.delete" call. @@ -4743,7 +4743,7 @@ func (c *BuyersClientsUsersGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.get" call. @@ -4867,7 +4867,7 @@ func (c *BuyersClientsUsersListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.clients.users.list" call. @@ -4991,7 +4991,7 @@ func (c *BuyersDataSegmentsActivateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.dataSegments.activate" call. @@ -5096,7 +5096,7 @@ func (c *BuyersDataSegmentsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.dataSegments.create" call. @@ -5198,7 +5198,7 @@ func (c *BuyersDataSegmentsDeactivateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.dataSegments.deactivate" call. @@ -5306,7 +5306,7 @@ func (c *BuyersDataSegmentsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.dataSegments.get" call. @@ -5429,7 +5429,7 @@ func (c *BuyersDataSegmentsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.dataSegments.list" call. @@ -5569,7 +5569,7 @@ func (c *BuyersDataSegmentsPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.dataSegments.patch" call. @@ -5678,7 +5678,7 @@ func (c *BuyersFinalizedDealsAddCreativeCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "deal": c.deal, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.addCreative" call. @@ -5785,7 +5785,7 @@ func (c *BuyersFinalizedDealsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.get" call. @@ -5939,7 +5939,7 @@ func (c *BuyersFinalizedDealsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.list" call. @@ -6065,7 +6065,7 @@ func (c *BuyersFinalizedDealsPauseCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.pause" call. @@ -6170,7 +6170,7 @@ func (c *BuyersFinalizedDealsResumeCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.resume" call. @@ -6279,7 +6279,7 @@ func (c *BuyersFinalizedDealsSetReadyToServeCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "deal": c.deal, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.finalizedDeals.setReadyToServe" call. @@ -6388,7 +6388,7 @@ func (c *BuyersProposalsAcceptCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.accept" call. @@ -6492,7 +6492,7 @@ func (c *BuyersProposalsAddNoteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "proposal": c.proposal, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.addNote" call. @@ -6602,7 +6602,7 @@ func (c *BuyersProposalsCancelNegotiationCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "proposal": c.proposal, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.cancelNegotiation" call. @@ -6711,7 +6711,7 @@ func (c *BuyersProposalsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.get" call. @@ -6847,7 +6847,7 @@ func (c *BuyersProposalsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.list" call. @@ -6993,7 +6993,7 @@ func (c *BuyersProposalsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.patch" call. @@ -7100,7 +7100,7 @@ func (c *BuyersProposalsSendRfpCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "buyer": c.buyer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.sendRfp" call. @@ -7202,7 +7202,7 @@ func (c *BuyersProposalsDealsBatchUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.batchUpdate" call. @@ -7310,7 +7310,7 @@ func (c *BuyersProposalsDealsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.get" call. @@ -7436,7 +7436,7 @@ func (c *BuyersProposalsDealsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.list" call. @@ -7585,7 +7585,7 @@ func (c *BuyersProposalsDealsPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.proposals.deals.patch" call. @@ -7693,7 +7693,7 @@ func (c *BuyersPublisherProfilesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.publisherProfiles.get" call. @@ -7829,7 +7829,7 @@ func (c *BuyersPublisherProfilesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "authorizedbuyersmarketplace.buyers.publisherProfiles.list" call. diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go index 95131174780..7045f84601e 100644 --- a/backupdr/v1/backupdr-gen.go +++ b/backupdr/v1/backupdr-gen.go @@ -4151,7 +4151,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.get" call. @@ -4282,7 +4282,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.list" call. @@ -4431,7 +4431,7 @@ func (c *ProjectsLocationsBackupPlanAssociationsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupPlanAssociations.create" call. @@ -4544,7 +4544,7 @@ func (c *ProjectsLocationsBackupPlanAssociationsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupPlanAssociations.delete" call. @@ -4653,7 +4653,7 @@ func (c *ProjectsLocationsBackupPlanAssociationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupPlanAssociations.get" call. @@ -4786,7 +4786,7 @@ func (c *ProjectsLocationsBackupPlanAssociationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupPlanAssociations.list" call. @@ -4911,7 +4911,7 @@ func (c *ProjectsLocationsBackupPlanAssociationsTriggerBackupCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupPlanAssociations.triggerBackup" call. @@ -5039,7 +5039,7 @@ func (c *ProjectsLocationsBackupPlansCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupPlans.create" call. @@ -5151,7 +5151,7 @@ func (c *ProjectsLocationsBackupPlansDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupPlans.delete" call. @@ -5259,7 +5259,7 @@ func (c *ProjectsLocationsBackupPlansGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupPlans.get" call. @@ -5404,7 +5404,7 @@ func (c *ProjectsLocationsBackupPlansListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupPlans.list" call. @@ -5558,7 +5558,7 @@ func (c *ProjectsLocationsBackupVaultsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.create" call. @@ -5699,7 +5699,7 @@ func (c *ProjectsLocationsBackupVaultsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.delete" call. @@ -5840,7 +5840,7 @@ func (c *ProjectsLocationsBackupVaultsFetchUsableCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.fetchUsable" call. @@ -5970,7 +5970,7 @@ func (c *ProjectsLocationsBackupVaultsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.get" call. @@ -6109,7 +6109,7 @@ func (c *ProjectsLocationsBackupVaultsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.list" call. @@ -6272,7 +6272,7 @@ func (c *ProjectsLocationsBackupVaultsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.patch" call. @@ -6378,7 +6378,7 @@ func (c *ProjectsLocationsBackupVaultsTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.testIamPermissions" call. @@ -6481,7 +6481,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "dataSource": c.dataSource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.abandonBackup" call. @@ -6584,7 +6584,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.fetchAccessToken" call. @@ -6688,7 +6688,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "dataSource": c.dataSource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.finalizeBackup" call. @@ -6797,7 +6797,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.get" call. @@ -6899,7 +6899,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "dataSource": c.dataSource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.initiateBackup" call. @@ -7039,7 +7039,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.list" call. @@ -7194,7 +7194,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.patch" call. @@ -7297,7 +7297,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesRemoveCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.remove" call. @@ -7399,7 +7399,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall) doReques googleapi.Expand(req.URL, map[string]string{ "dataSource": c.dataSource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.setInternalStatus" call. @@ -7510,7 +7510,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.delete" call. @@ -7619,7 +7619,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.get" call. @@ -7758,7 +7758,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.list" call. @@ -7907,7 +7907,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.patch" call. @@ -8009,7 +8009,7 @@ func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsRestoreCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.restore" call. @@ -8136,7 +8136,7 @@ func (c *ProjectsLocationsManagementServersCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.managementServers.create" call. @@ -8247,7 +8247,7 @@ func (c *ProjectsLocationsManagementServersDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.managementServers.delete" call. @@ -8356,7 +8356,7 @@ func (c *ProjectsLocationsManagementServersGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.managementServers.get" call. @@ -8484,7 +8484,7 @@ func (c *ProjectsLocationsManagementServersGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.managementServers.getIamPolicy" call. @@ -8623,7 +8623,7 @@ func (c *ProjectsLocationsManagementServersListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.managementServers.list" call. @@ -8750,7 +8750,7 @@ func (c *ProjectsLocationsManagementServersSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.managementServers.setIamPolicy" call. @@ -8858,7 +8858,7 @@ func (c *ProjectsLocationsManagementServersTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.managementServers.testIamPermissions" call. @@ -8968,7 +8968,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.operations.cancel" call. @@ -9066,7 +9066,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.operations.delete" call. @@ -9175,7 +9175,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.operations.get" call. @@ -9303,7 +9303,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "backupdr.projects.locations.operations.list" call. diff --git a/baremetalsolution/v1/baremetalsolution-gen.go b/baremetalsolution/v1/baremetalsolution-gen.go index d8a49569d43..a1fd2967aa3 100644 --- a/baremetalsolution/v1/baremetalsolution-gen.go +++ b/baremetalsolution/v1/baremetalsolution-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/bare-metal // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // baremetalsolutionService, err := baremetalsolution.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // baremetalsolutionService, err := baremetalsolution.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // baremetalsolutionService, err := baremetalsolution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package baremetalsolution // import "google.golang.org/api/baremetalsolution/v1" import ( @@ -71,17 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "baremetalsolution:v1" const apiName = "baremetalsolution" const apiVersion = "v1" const basePath = "https://baremetalsolution.googleapis.com/" +const basePathTemplate = "https://baremetalsolution.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://baremetalsolution.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -93,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -146,167 +163,128 @@ type OperationsService struct { s *Service } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. +// CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "baremetalsolution.operations.cancel": - type OperationsCancelCall struct { s *Service name string @@ -316,15 +294,14 @@ type OperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. @@ -336,23 +313,21 @@ func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -361,18 +336,12 @@ func (c *OperationsCancelCall) Header() http.Header { } func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") @@ -385,16 +354,14 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -425,38 +392,7 @@ func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "baremetalsolution.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "baremetalsolution.operations.delete": +} type OperationsDeleteCall struct { s *Service @@ -466,10 +402,10 @@ type OperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. func (r *OperationsService) Delete(name string) *OperationsDeleteCall { @@ -479,23 +415,21 @@ func (r *OperationsService) Delete(name string) *OperationsDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -504,12 +438,7 @@ func (c *OperationsDeleteCall) Header() http.Header { } func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -523,16 +452,14 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -563,35 +490,7 @@ func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "baremetalsolution.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "baremetalsolution.operations.get": +} type OperationsGetCall struct { s *Service @@ -602,9 +501,9 @@ type OperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *OperationsService) Get(name string) *OperationsGetCall { @@ -614,33 +513,29 @@ func (r *OperationsService) Get(name string) *OperationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -649,12 +544,7 @@ func (c *OperationsGetCall) Header() http.Header { } func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -671,16 +561,14 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -711,35 +599,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "baremetalsolution.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "baremetalsolution.operations.list": +} type OperationsListCall struct { s *Service @@ -750,16 +610,15 @@ type OperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. // // - name: The name of the operation's parent resource. func (r *OperationsService) List(name string) *OperationsListCall { @@ -768,55 +627,50 @@ func (r *OperationsService) List(name string) *OperationsListCall { return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -825,12 +679,7 @@ func (c *OperationsListCall) Header() http.Header { } func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -847,16 +696,15 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -887,48 +735,6 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1/operations", - // "httpMethod": "GET", - // "id": "baremetalsolution.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -936,7 +742,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // The provided context supersedes any context provided to the Context method. func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/baremetalsolution/v1alpha1/baremetalsolution-gen.go b/baremetalsolution/v1alpha1/baremetalsolution-gen.go index 31b6e34ba15..b53561fd8a5 100644 --- a/baremetalsolution/v1alpha1/baremetalsolution-gen.go +++ b/baremetalsolution/v1alpha1/baremetalsolution-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/bare-metal // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // baremetalsolutionService, err := baremetalsolution.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // baremetalsolutionService, err := baremetalsolution.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // baremetalsolutionService, err := baremetalsolution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package baremetalsolution // import "google.golang.org/api/baremetalsolution/v1alpha1" import ( @@ -71,17 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "baremetalsolution:v1alpha1" const apiName = "baremetalsolution" const apiVersion = "v1alpha1" const basePath = "https://baremetalsolution.googleapis.com/" +const basePathTemplate = "https://baremetalsolution.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://baremetalsolution.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -93,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -174,199 +191,151 @@ type ProjectsProvisioningQuotasService struct { type InstanceConfig struct { // ClientNetwork: Client network address. ClientNetwork *NetworkAddress `json:"clientNetwork,omitempty"` - // Hyperthreading: Whether the instance should be provisioned with // Hyperthreading enabled. Hyperthreading bool `json:"hyperthreading,omitempty"` - // Id: A transient unique identifier to idenfity an instance within an // ProvisioningConfig request. Id string `json:"id,omitempty"` - // InstanceType: Instance type. InstanceType string `json:"instanceType,omitempty"` - // Location: Location where to deploy the instance. Location string `json:"location,omitempty"` - // OsImage: OS image to initialize the instance. OsImage string `json:"osImage,omitempty"` - // PrivateNetwork: Private network address, if any. PrivateNetwork *NetworkAddress `json:"privateNetwork,omitempty"` - - // UserNote: User note field, it can be used by customers to add - // additional information for the BMS Ops team (b/194021617). + // UserNote: User note field, it can be used by customers to add additional + // information for the BMS Ops team (b/194021617). UserNote string `json:"userNote,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientNetwork") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientNetwork") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientNetwork") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceConfig) MarshalJSON() ([]byte, error) { +func (s InstanceConfig) MarshalJSON() ([]byte, error) { type NoMethod InstanceConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstanceQuota: A resource budget. type InstanceQuota struct { - // AvailableMachineCount: Number of machines than can be created for the - // given location and instance_type. + // AvailableMachineCount: Number of machines than can be created for the given + // location and instance_type. AvailableMachineCount int64 `json:"availableMachineCount,omitempty"` - // InstanceType: Instance type. InstanceType string `json:"instanceType,omitempty"` - // Location: Location where the quota applies. Location string `json:"location,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AvailableMachineCount") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AvailableMachineCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AvailableMachineCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceQuota) MarshalJSON() ([]byte, error) { +func (s InstanceQuota) MarshalJSON() ([]byte, error) { type NoMethod InstanceQuota - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListProvisioningQuotasResponse: Response for ListProvisioningQuotas. type ListProvisioningQuotasResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - - // ProvisioningQuotas: The provisioning quotas registered in this - // project. + // ProvisioningQuotas: The provisioning quotas registered in this project. ProvisioningQuotas []*ProvisioningQuota `json:"provisioningQuotas,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListProvisioningQuotasResponse) MarshalJSON() ([]byte, error) { +func (s ListProvisioningQuotasResponse) MarshalJSON() ([]byte, error) { type NoMethod ListProvisioningQuotasResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LunRange: A LUN range. type LunRange struct { // Quantity: Number of LUNs to create. Quantity int64 `json:"quantity,omitempty"` - // SizeGb: The requested size of each LUN, in GB. SizeGb int64 `json:"sizeGb,omitempty"` - // ForceSendFields is a list of field names (e.g. "Quantity") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Quantity") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Quantity") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LunRange) MarshalJSON() ([]byte, error) { +func (s LunRange) MarshalJSON() ([]byte, error) { type NoMethod LunRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NetworkAddress: A network. type NetworkAddress struct { // Address: IP address to be assigned to the server. Address string `json:"address,omitempty"` - - // ExistingNetworkId: Name of the existing network to use. Will be of - // the format at--vlan for pre-intake UI networks like for eg, - // at-123456-vlan001 or any user-defined name like for eg, - // my-network-name for networks provisioned using intake UI. The field - // is exclusively filled only in case of an already existing network. - // Mutually exclusive with network_id. + // ExistingNetworkId: Name of the existing network to use. Will be of the + // format at--vlan for pre-intake UI networks like for eg, at-123456-vlan001 or + // any user-defined name like for eg, my-network-name for networks provisioned + // using intake UI. The field is exclusively filled only in case of an already + // existing network. Mutually exclusive with network_id. ExistingNetworkId string `json:"existingNetworkId,omitempty"` - - // NetworkId: Name of the network to use, within the same - // ProvisioningConfig request. This represents a new network being - // provisioned in the same request. Can have any user-defined name like - // for eg, my-network-name. Mutually exclusive with existing_network_id. + // NetworkId: Name of the network to use, within the same ProvisioningConfig + // request. This represents a new network being provisioned in the same + // request. Can have any user-defined name like for eg, my-network-name. + // Mutually exclusive with existing_network_id. NetworkId string `json:"networkId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NetworkAddress) MarshalJSON() ([]byte, error) { +func (s NetworkAddress) MarshalJSON() ([]byte, error) { type NoMethod NetworkAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NetworkConfig: Configuration parameters for a new network. @@ -380,91 +349,68 @@ type NetworkConfig struct { // "BW_5_GBPS" - 5 Gbps. // "BW_10_GBPS" - 10 Gbps. Bandwidth string `json:"bandwidth,omitempty"` - // Cidr: CIDR range of the network. Cidr string `json:"cidr,omitempty"` - // Id: A transient unique identifier to identify a volume within an // ProvisioningConfig request. Id string `json:"id,omitempty"` - // Location: Location where to deploy the network. Location string `json:"location,omitempty"` - // ServiceCidr: Service CIDR, if any. // // Possible values: // "SERVICE_CIDR_UNSPECIFIED" - Unspecified value. // "DISABLED" - Services are disabled for the given network. - // "HIGH_26" - Use the highest /26 block of the network to host - // services. - // "HIGH_27" - Use the highest /27 block of the network to host - // services. - // "HIGH_28" - Use the highest /28 block of the network to host - // services. + // "HIGH_26" - Use the highest /26 block of the network to host services. + // "HIGH_27" - Use the highest /27 block of the network to host services. + // "HIGH_28" - Use the highest /28 block of the network to host services. ServiceCidr string `json:"serviceCidr,omitempty"` - // Type: The type of this network. // // Possible values: // "TYPE_UNSPECIFIED" - Unspecified value. // "CLIENT" - Client network, that is a network peered to a GCP VPC. - // "PRIVATE" - Private network, that is a network local to the BMS - // POD. + // "PRIVATE" - Private network, that is a network local to the BMS POD. Type string `json:"type,omitempty"` - - // UserNote: User note field, it can be used by customers to add - // additional information for the BMS Ops team (b/194021617). + // UserNote: User note field, it can be used by customers to add additional + // information for the BMS Ops team (b/194021617). UserNote string `json:"userNote,omitempty"` - - // VlanAttachments: List of VLAN attachments. As of now there are always - // 2 attachments, but it is going to change in the future (multi vlan). + // VlanAttachments: List of VLAN attachments. As of now there are always 2 + // attachments, but it is going to change in the future (multi vlan). VlanAttachments []*VlanAttachment `json:"vlanAttachments,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bandwidth") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bandwidth") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bandwidth") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NetworkConfig) MarshalJSON() ([]byte, error) { +func (s NetworkConfig) MarshalJSON() ([]byte, error) { type NoMethod NetworkConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NfsExport: A NFS export entry. type NfsExport struct { // AllowDev: Allow dev. AllowDev bool `json:"allowDev,omitempty"` - // AllowSuid: Allow the setuid flag. AllowSuid bool `json:"allowSuid,omitempty"` - // Cidr: A CIDR range. Cidr string `json:"cidr,omitempty"` - // MachineId: Either a single machine, identified by an ID, or a // comma-separated list of machine IDs. MachineId string `json:"machineId,omitempty"` - // NetworkId: Network to use to publish the export. NetworkId string `json:"networkId,omitempty"` - // NoRootSquash: Disable root squashing. NoRootSquash bool `json:"noRootSquash,omitempty"` - // Permissions: Export permissions. // // Possible values: @@ -472,161 +418,124 @@ type NfsExport struct { // "READ_ONLY" - Read-only permission. // "READ_WRITE" - Read-write permission. Permissions string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowDev") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowDev") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AllowDev") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NfsExport) MarshalJSON() ([]byte, error) { +func (s NfsExport) MarshalJSON() ([]byte, error) { type NoMethod NfsExport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProvisioningConfig: An provisioning configuration. type ProvisioningConfig struct { // Instances: Instances to be created. Instances []*InstanceConfig `json:"instances,omitempty"` - // Networks: Networks to be created. Networks []*NetworkConfig `json:"networks,omitempty"` - // TicketId: A reference to track the request. TicketId string `json:"ticketId,omitempty"` - // Volumes: Volumes to be created. Volumes []*VolumeConfig `json:"volumes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Instances") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instances") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instances") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProvisioningConfig) MarshalJSON() ([]byte, error) { +func (s ProvisioningConfig) MarshalJSON() ([]byte, error) { type NoMethod ProvisioningConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProvisioningQuota: A provisioning quota for a given project. type ProvisioningQuota struct { // InstanceQuota: Instance quota. InstanceQuota *InstanceQuota `json:"instanceQuota,omitempty"` - // ForceSendFields is a list of field names (e.g. "InstanceQuota") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InstanceQuota") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InstanceQuota") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProvisioningQuota) MarshalJSON() ([]byte, error) { +func (s ProvisioningQuota) MarshalJSON() ([]byte, error) { type NoMethod ProvisioningQuota - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SubmitProvisioningConfigRequest: Request for -// SubmitProvisioningConfig. +// SubmitProvisioningConfigRequest: Request for SubmitProvisioningConfig. type SubmitProvisioningConfigRequest struct { - // Email: Optional. Email provided to send a confirmation with - // provisioning config to. + // Email: Optional. Email provided to send a confirmation with provisioning + // config to. Email string `json:"email,omitempty"` - // ProvisioningConfig: Required. The ProvisioningConfig to submit. ProvisioningConfig *ProvisioningConfig `json:"provisioningConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubmitProvisioningConfigRequest) MarshalJSON() ([]byte, error) { +func (s SubmitProvisioningConfigRequest) MarshalJSON() ([]byte, error) { type NoMethod SubmitProvisioningConfigRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VlanAttachment: A GCP vlan attachment. type VlanAttachment struct { // Id: Identifier of the VLAN attachment. Id string `json:"id,omitempty"` - // PairingKey: Attachment pairing key. PairingKey string `json:"pairingKey,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VlanAttachment) MarshalJSON() ([]byte, error) { +func (s VlanAttachment) MarshalJSON() ([]byte, error) { type NoMethod VlanAttachment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VolumeConfig: Configuration parameters for a new volume. @@ -634,21 +543,16 @@ type VolumeConfig struct { // Id: A transient unique identifier to identify a volume within an // ProvisioningConfig request. Id string `json:"id,omitempty"` - // Location: Location where to deploy the volume. Location string `json:"location,omitempty"` - // LunRanges: LUN ranges to be configured. Set only when protocol is // PROTOCOL_FC. LunRanges []*LunRange `json:"lunRanges,omitempty"` - - // MachineIds: Machine ids connected to this volume. Set only when - // protocol is PROTOCOL_FC. + // MachineIds: Machine ids connected to this volume. Set only when protocol is + // PROTOCOL_FC. MachineIds []string `json:"machineIds,omitempty"` - // NfsExports: NFS exports. Set only when protocol is PROTOCOL_NFS. NfsExports []*NfsExport `json:"nfsExports,omitempty"` - // Protocol: Volume protocol. // // Possible values: @@ -656,14 +560,11 @@ type VolumeConfig struct { // "PROTOCOL_FC" - Fibre channel. // "PROTOCOL_NFS" - Network file system. Protocol string `json:"protocol,omitempty"` - - // SizeGb: The requested size of this volume, in GB. This will be - // updated in a later iteration with a generic size field. + // SizeGb: The requested size of this volume, in GB. This will be updated in a + // later iteration with a generic size field. SizeGb int64 `json:"sizeGb,omitempty"` - // SnapshotsEnabled: Whether snapshots should be enabled. SnapshotsEnabled bool `json:"snapshotsEnabled,omitempty"` - // Type: The type of this Volume. // // Possible values: @@ -671,36 +572,27 @@ type VolumeConfig struct { // "FLASH" - This Volume is on flash. // "DISK" - This Volume is on disk. Type string `json:"type,omitempty"` - - // UserNote: User note field, it can be used by customers to add - // additional information for the BMS Ops team (b/194021617). + // UserNote: User note field, it can be used by customers to add additional + // information for the BMS Ops team (b/194021617). UserNote string `json:"userNote,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VolumeConfig) MarshalJSON() ([]byte, error) { +func (s VolumeConfig) MarshalJSON() ([]byte, error) { type NoMethod VolumeConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "baremetalsolution.projects.locations.submitProvisioningConfig": - type ProjectsLocationsSubmitProvisioningConfigCall struct { s *Service project string @@ -711,8 +603,8 @@ type ProjectsLocationsSubmitProvisioningConfigCall struct { header_ http.Header } -// SubmitProvisioningConfig: Submit a provisiong configuration for a -// given project. +// SubmitProvisioningConfig: Submit a provisiong configuration for a given +// project. // // - location: The target location of the provisioning request. // - project: The target project of the provisioning request. @@ -725,23 +617,21 @@ func (r *ProjectsLocationsService) SubmitProvisioningConfig(project string, loca } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSubmitProvisioningConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsSubmitProvisioningConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSubmitProvisioningConfigCall) Context(ctx context.Context) *ProjectsLocationsSubmitProvisioningConfigCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSubmitProvisioningConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -750,18 +640,12 @@ func (c *ProjectsLocationsSubmitProvisioningConfigCall) Header() http.Header { } func (c *ProjectsLocationsSubmitProvisioningConfigCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.submitprovisioningconfigrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+project}/{+location}:submitProvisioningConfig") @@ -775,16 +659,15 @@ func (c *ProjectsLocationsSubmitProvisioningConfigCall) doRequest(alt string) (* "project": c.project, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.submitProvisioningConfig" call. -// Exactly one of *ProvisioningConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ProvisioningConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProvisioningConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsSubmitProvisioningConfigCall) Do(opts ...googleapi.CallOption) (*ProvisioningConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -792,17 +675,17 @@ func (c *ProjectsLocationsSubmitProvisioningConfigCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProvisioningConfig{ ServerResponse: googleapi.ServerResponse{ @@ -815,47 +698,8 @@ func (c *ProjectsLocationsSubmitProvisioningConfigCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Submit a provisiong configuration for a given project.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}:submitProvisioningConfig", - // "httpMethod": "POST", - // "id": "baremetalsolution.projects.locations.submitProvisioningConfig", - // "parameterOrder": [ - // "project", - // "location" - // ], - // "parameters": { - // "location": { - // "description": "Required. The target location of the provisioning request.", - // "location": "path", - // "pattern": "^locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Required. The target project of the provisioning request.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+project}/{+location}:submitProvisioningConfig", - // "request": { - // "$ref": "SubmitProvisioningConfigRequest" - // }, - // "response": { - // "$ref": "ProvisioningConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } -// method id "baremetalsolution.projects.provisioningQuotas.list": - type ProjectsProvisioningQuotasListCall struct { s *Service parent string @@ -865,8 +709,7 @@ type ProjectsProvisioningQuotasListCall struct { header_ http.Header } -// List: List the budget details to provision resources on a given -// project. +// List: List the budget details to provision resources on a given project. // // - parent: The parent project containing the provisioning quotas. func (r *ProjectsProvisioningQuotasService) List(parent string) *ProjectsProvisioningQuotasListCall { @@ -875,48 +718,44 @@ func (r *ProjectsProvisioningQuotasService) List(parent string) *ProjectsProvisi return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsProvisioningQuotasListCall) PageSize(pageSize int64) *ProjectsProvisioningQuotasListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous List request, if any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. func (c *ProjectsProvisioningQuotasListCall) PageToken(pageToken string) *ProjectsProvisioningQuotasListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsProvisioningQuotasListCall) Fields(s ...googleapi.Field) *ProjectsProvisioningQuotasListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsProvisioningQuotasListCall) IfNoneMatch(entityTag string) *ProjectsProvisioningQuotasListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsProvisioningQuotasListCall) Context(ctx context.Context) *ProjectsProvisioningQuotasListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsProvisioningQuotasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -925,12 +764,7 @@ func (c *ProjectsProvisioningQuotasListCall) Header() http.Header { } func (c *ProjectsProvisioningQuotasListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -947,16 +781,15 @@ func (c *ProjectsProvisioningQuotasListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.provisioningQuotas.list" call. -// Exactly one of *ListProvisioningQuotasResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListProvisioningQuotasResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListProvisioningQuotasResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsProvisioningQuotasListCall) Do(opts ...googleapi.CallOption) (*ListProvisioningQuotasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -964,17 +797,17 @@ func (c *ProjectsProvisioningQuotasListCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListProvisioningQuotasResponse{ ServerResponse: googleapi.ServerResponse{ @@ -987,43 +820,6 @@ func (c *ProjectsProvisioningQuotasListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "List the budget details to provision resources on a given project.", - // "flatPath": "v1alpha1/projects/{projectsId}/provisioningQuotas", - // "httpMethod": "GET", - // "id": "baremetalsolution.projects.provisioningQuotas.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent project containing the provisioning quotas.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/provisioningQuotas", - // "response": { - // "$ref": "ListProvisioningQuotasResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1031,7 +827,7 @@ func (c *ProjectsProvisioningQuotasListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *ProjectsProvisioningQuotasListCall) Pages(ctx context.Context, f func(*ListProvisioningQuotasResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/baremetalsolution/v2/baremetalsolution-gen.go b/baremetalsolution/v2/baremetalsolution-gen.go index 22dbe242ffb..4c87b39a80a 100644 --- a/baremetalsolution/v2/baremetalsolution-gen.go +++ b/baremetalsolution/v2/baremetalsolution-gen.go @@ -2591,7 +2591,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.get" call. @@ -2722,7 +2722,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.list" call. @@ -2845,7 +2845,7 @@ func (c *ProjectsLocationsInstancesDetachLunCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.detachLun" call. @@ -2948,7 +2948,7 @@ func (c *ProjectsLocationsInstancesDisableHyperthreadingCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.disableHyperthreading" call. @@ -3050,7 +3050,7 @@ func (c *ProjectsLocationsInstancesDisableInteractiveSerialConsoleCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.disableInteractiveSerialConsole" call. @@ -3153,7 +3153,7 @@ func (c *ProjectsLocationsInstancesEnableHyperthreadingCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.enableHyperthreading" call. @@ -3255,7 +3255,7 @@ func (c *ProjectsLocationsInstancesEnableInteractiveSerialConsoleCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.enableInteractiveSerialConsole" call. @@ -3362,7 +3362,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.get" call. @@ -3490,7 +3490,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.list" call. @@ -3619,7 +3619,7 @@ func (c *ProjectsLocationsInstancesLoadAuthInfoCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.loadAuthInfo" call. @@ -3732,7 +3732,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.patch" call. @@ -3834,7 +3834,7 @@ func (c *ProjectsLocationsInstancesReimageCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.reimage" call. @@ -3937,7 +3937,7 @@ func (c *ProjectsLocationsInstancesRenameCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.rename" call. @@ -4039,7 +4039,7 @@ func (c *ProjectsLocationsInstancesResetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.reset" call. @@ -4140,7 +4140,7 @@ func (c *ProjectsLocationsInstancesStartCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.start" call. @@ -4241,7 +4241,7 @@ func (c *ProjectsLocationsInstancesStopCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.instances.stop" call. @@ -4348,7 +4348,7 @@ func (c *ProjectsLocationsNetworksGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.networks.get" call. @@ -4476,7 +4476,7 @@ func (c *ProjectsLocationsNetworksListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.networks.list" call. @@ -4606,7 +4606,7 @@ func (c *ProjectsLocationsNetworksListNetworkUsageCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.networks.listNetworkUsage" call. @@ -4719,7 +4719,7 @@ func (c *ProjectsLocationsNetworksPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.networks.patch" call. @@ -4822,7 +4822,7 @@ func (c *ProjectsLocationsNetworksRenameCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.networks.rename" call. @@ -4923,7 +4923,7 @@ func (c *ProjectsLocationsNfsSharesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.nfsShares.create" call. @@ -5018,7 +5018,7 @@ func (c *ProjectsLocationsNfsSharesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.nfsShares.delete" call. @@ -5125,7 +5125,7 @@ func (c *ProjectsLocationsNfsSharesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.nfsShares.get" call. @@ -5253,7 +5253,7 @@ func (c *ProjectsLocationsNfsSharesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.nfsShares.list" call. @@ -5383,7 +5383,7 @@ func (c *ProjectsLocationsNfsSharesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.nfsShares.patch" call. @@ -5486,7 +5486,7 @@ func (c *ProjectsLocationsNfsSharesRenameCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.nfsShares.rename" call. @@ -5593,7 +5593,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.operations.get" call. @@ -5700,7 +5700,7 @@ func (c *ProjectsLocationsOsImagesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.osImages.get" call. @@ -5824,7 +5824,7 @@ func (c *ProjectsLocationsOsImagesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.osImages.list" call. @@ -5954,7 +5954,7 @@ func (c *ProjectsLocationsProvisioningConfigsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.provisioningConfigs.create" call. @@ -6062,7 +6062,7 @@ func (c *ProjectsLocationsProvisioningConfigsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.provisioningConfigs.get" call. @@ -6179,7 +6179,7 @@ func (c *ProjectsLocationsProvisioningConfigsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.provisioningConfigs.patch" call. @@ -6281,7 +6281,7 @@ func (c *ProjectsLocationsProvisioningConfigsSubmitCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.provisioningConfigs.submit" call. @@ -6406,7 +6406,7 @@ func (c *ProjectsLocationsProvisioningQuotasListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.provisioningQuotas.list" call. @@ -6538,7 +6538,7 @@ func (c *ProjectsLocationsSshKeysCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.sshKeys.create" call. @@ -6634,7 +6634,7 @@ func (c *ProjectsLocationsSshKeysDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.sshKeys.delete" call. @@ -6757,7 +6757,7 @@ func (c *ProjectsLocationsSshKeysListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.sshKeys.list" call. @@ -6881,7 +6881,7 @@ func (c *ProjectsLocationsVolumesEvictCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.evict" call. @@ -6988,7 +6988,7 @@ func (c *ProjectsLocationsVolumesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.get" call. @@ -7116,7 +7116,7 @@ func (c *ProjectsLocationsVolumesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.list" call. @@ -7249,7 +7249,7 @@ func (c *ProjectsLocationsVolumesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.patch" call. @@ -7352,7 +7352,7 @@ func (c *ProjectsLocationsVolumesRenameCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.rename" call. @@ -7453,7 +7453,7 @@ func (c *ProjectsLocationsVolumesResizeCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "volume": c.volume, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.resize" call. @@ -7554,7 +7554,7 @@ func (c *ProjectsLocationsVolumesLunsEvictCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.luns.evict" call. @@ -7661,7 +7661,7 @@ func (c *ProjectsLocationsVolumesLunsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.luns.get" call. @@ -7783,7 +7783,7 @@ func (c *ProjectsLocationsVolumesLunsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.luns.list" call. @@ -7907,7 +7907,7 @@ func (c *ProjectsLocationsVolumesSnapshotsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.snapshots.create" call. @@ -8003,7 +8003,7 @@ func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.snapshots.delete" call. @@ -8111,7 +8111,7 @@ func (c *ProjectsLocationsVolumesSnapshotsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.snapshots.get" call. @@ -8234,7 +8234,7 @@ func (c *ProjectsLocationsVolumesSnapshotsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.snapshots.list" call. @@ -8359,7 +8359,7 @@ func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "volumeSnapshot": c.volumeSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "baremetalsolution.projects.locations.volumes.snapshots.restoreVolumeSnapshot" call. diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index 9256063e932..f5f4397fcbb 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -2582,7 +2582,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.get" call. @@ -2713,7 +2713,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.list" call. @@ -2865,7 +2865,7 @@ func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.jobs.create" call. @@ -2982,7 +2982,7 @@ func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.jobs.delete" call. @@ -3089,7 +3089,7 @@ func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.jobs.get" call. @@ -3221,7 +3221,7 @@ func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.jobs.list" call. @@ -3350,7 +3350,7 @@ func (c *ProjectsLocationsJobsTaskGroupsTasksGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.jobs.taskGroups.tasks.get" call. @@ -3479,7 +3479,7 @@ func (c *ProjectsLocationsJobsTaskGroupsTasksListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.jobs.taskGroups.tasks.list" call. @@ -3610,7 +3610,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.operations.cancel" call. @@ -3708,7 +3708,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.operations.delete" call. @@ -3817,7 +3817,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.operations.get" call. @@ -3945,7 +3945,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.operations.list" call. @@ -4069,7 +4069,7 @@ func (c *ProjectsLocationsStateReportCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "batch.projects.locations.state.report" call. diff --git a/beyondcorp/v1/beyondcorp-gen.go b/beyondcorp/v1/beyondcorp-gen.go index 94f86e737b7..b142a8e88c2 100644 --- a/beyondcorp/v1/beyondcorp-gen.go +++ b/beyondcorp/v1/beyondcorp-gen.go @@ -2439,7 +2439,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.getIamPolicy" call. @@ -2545,7 +2545,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.setIamPolicy" call. @@ -2654,7 +2654,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) doReq googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.testIamPermissions" call. @@ -2782,7 +2782,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.getIamPolicy" call. @@ -2888,7 +2888,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.setIamPolicy" call. @@ -2997,7 +2997,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermiss googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.testIamPermissions" call. @@ -3125,7 +3125,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.getIamPolicy" call. @@ -3231,7 +3231,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.setIamPolicy" call. @@ -3340,7 +3340,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermission googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.testIamPermissions" call. @@ -3450,7 +3450,7 @@ func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.operations.cancel" call. @@ -3548,7 +3548,7 @@ func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.operations.delete" call. @@ -3657,7 +3657,7 @@ func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.operations.get" call. @@ -3786,7 +3786,7 @@ func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.operations.list" call. @@ -3915,7 +3915,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.get" call. @@ -4047,7 +4047,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.list" call. @@ -4203,7 +4203,7 @@ func (c *ProjectsLocationsAppConnectionsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.create" call. @@ -4325,7 +4325,7 @@ func (c *ProjectsLocationsAppConnectionsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.delete" call. @@ -4435,7 +4435,7 @@ func (c *ProjectsLocationsAppConnectionsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.get" call. @@ -4563,7 +4563,7 @@ func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.getIamPolicy" call. @@ -4705,7 +4705,7 @@ func (c *ProjectsLocationsAppConnectionsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.list" call. @@ -4870,7 +4870,7 @@ func (c *ProjectsLocationsAppConnectionsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.patch" call. @@ -5007,7 +5007,7 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.resolve" call. @@ -5134,7 +5134,7 @@ func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.setIamPolicy" call. @@ -5243,7 +5243,7 @@ func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.testIamPermissions" call. @@ -5378,7 +5378,7 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.create" call. @@ -5500,7 +5500,7 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.delete" call. @@ -5610,7 +5610,7 @@ func (c *ProjectsLocationsAppConnectorsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.get" call. @@ -5738,7 +5738,7 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.getIamPolicy" call. @@ -5880,7 +5880,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.list" call. @@ -6037,7 +6037,7 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.patch" call. @@ -6140,7 +6140,7 @@ func (c *ProjectsLocationsAppConnectorsReportStatusCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "appConnector": c.appConnector, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.reportStatus" call. @@ -6251,7 +6251,7 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "appConnector": c.appConnector, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.resolveInstanceConfig" call. @@ -6357,7 +6357,7 @@ func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.setIamPolicy" call. @@ -6466,7 +6466,7 @@ func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.testIamPermissions" call. @@ -6601,7 +6601,7 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.create" call. @@ -6723,7 +6723,7 @@ func (c *ProjectsLocationsAppGatewaysDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.delete" call. @@ -6833,7 +6833,7 @@ func (c *ProjectsLocationsAppGatewaysGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.get" call. @@ -6960,7 +6960,7 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.getIamPolicy" call. @@ -7102,7 +7102,7 @@ func (c *ProjectsLocationsAppGatewaysListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.list" call. @@ -7229,7 +7229,7 @@ func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.setIamPolicy" call. @@ -7351,7 +7351,7 @@ func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.shouldThrottle" call. @@ -7460,7 +7460,7 @@ func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.testIamPermissions" call. @@ -7588,7 +7588,7 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientConnectorServices.getIamPolicy" call. @@ -7694,7 +7694,7 @@ func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientConnectorServices.setIamPolicy" call. @@ -7803,7 +7803,7 @@ func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientConnectorServices.testIamPermissions" call. @@ -7931,7 +7931,7 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientGateways.getIamPolicy" call. @@ -8037,7 +8037,7 @@ func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientGateways.setIamPolicy" call. @@ -8146,7 +8146,7 @@ func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientGateways.testIamPermissions" call. @@ -8256,7 +8256,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.operations.cancel" call. @@ -8354,7 +8354,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.operations.delete" call. @@ -8463,7 +8463,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.operations.get" call. @@ -8592,7 +8592,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.operations.list" call. diff --git a/beyondcorp/v1alpha/beyondcorp-gen.go b/beyondcorp/v1alpha/beyondcorp-gen.go index 32d1dc4ca42..1b63ad174a9 100644 --- a/beyondcorp/v1alpha/beyondcorp-gen.go +++ b/beyondcorp/v1alpha/beyondcorp-gen.go @@ -4269,7 +4269,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.create" call. @@ -4381,7 +4381,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.delete" call. @@ -4491,7 +4491,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.get" call. @@ -4619,7 +4619,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsGetIamPolicyCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.getIamPolicy" call. @@ -4769,7 +4769,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.list" call. @@ -4921,7 +4921,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.patch" call. @@ -5027,7 +5027,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsSetIamPolicyCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.setIamPolicy" call. @@ -5136,7 +5136,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsTestIamPermissionsCall) doReq googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.testIamPermissions" call. @@ -5257,7 +5257,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesCreateCall) do googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.create" call. @@ -5371,7 +5371,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.delete" call. @@ -5481,7 +5481,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.get" call. @@ -5609,7 +5609,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.getIamPolicy" call. @@ -5720,7 +5720,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesListCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.list" call. @@ -5847,7 +5847,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.patch" call. @@ -5953,7 +5953,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.setIamPolicy" call. @@ -6062,7 +6062,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesTestIamPermiss googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.testIamPermissions" call. @@ -6184,7 +6184,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.create" call. @@ -6296,7 +6296,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.delete" call. @@ -6406,7 +6406,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.get" call. @@ -6536,7 +6536,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.getIamPolicy" call. @@ -6688,7 +6688,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.list" call. @@ -6835,7 +6835,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.patch" call. @@ -6941,7 +6941,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.setIamPolicy" call. @@ -7050,7 +7050,7 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsTestIamPermission googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.testIamPermissions" call. @@ -7258,7 +7258,7 @@ func (c *OrganizationsLocationsInsightsConfiguredInsightCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "insight": c.insight, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.insights.configuredInsight" call. @@ -7415,7 +7415,7 @@ func (c *OrganizationsLocationsInsightsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.insights.get" call. @@ -7617,7 +7617,7 @@ func (c *OrganizationsLocationsInsightsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.insights.list" call. @@ -7748,7 +7748,7 @@ func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.operations.cancel" call. @@ -7846,7 +7846,7 @@ func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.operations.delete" call. @@ -7955,7 +7955,7 @@ func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.operations.get" call. @@ -8084,7 +8084,7 @@ func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.operations.list" call. @@ -8232,7 +8232,7 @@ func (c *OrganizationsLocationsSubscriptionsCancelCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.subscriptions.cancel" call. @@ -8337,7 +8337,7 @@ func (c *OrganizationsLocationsSubscriptionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.subscriptions.create" call. @@ -8447,7 +8447,7 @@ func (c *OrganizationsLocationsSubscriptionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.subscriptions.get" call. @@ -8573,7 +8573,7 @@ func (c *OrganizationsLocationsSubscriptionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.subscriptions.list" call. @@ -8725,7 +8725,7 @@ func (c *OrganizationsLocationsSubscriptionsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.subscriptions.patch" call. @@ -8852,7 +8852,7 @@ func (c *OrganizationsLocationsSubscriptionsRestartCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.organizations.locations.subscriptions.restart" call. @@ -8960,7 +8960,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.get" call. @@ -9092,7 +9092,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.list" call. @@ -9248,7 +9248,7 @@ func (c *ProjectsLocationsAppConnectionsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.create" call. @@ -9370,7 +9370,7 @@ func (c *ProjectsLocationsAppConnectionsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.delete" call. @@ -9480,7 +9480,7 @@ func (c *ProjectsLocationsAppConnectionsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.get" call. @@ -9608,7 +9608,7 @@ func (c *ProjectsLocationsAppConnectionsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.getIamPolicy" call. @@ -9750,7 +9750,7 @@ func (c *ProjectsLocationsAppConnectionsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.list" call. @@ -9915,7 +9915,7 @@ func (c *ProjectsLocationsAppConnectionsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.patch" call. @@ -10052,7 +10052,7 @@ func (c *ProjectsLocationsAppConnectionsResolveCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.resolve" call. @@ -10179,7 +10179,7 @@ func (c *ProjectsLocationsAppConnectionsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.setIamPolicy" call. @@ -10288,7 +10288,7 @@ func (c *ProjectsLocationsAppConnectionsTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnections.testIamPermissions" call. @@ -10423,7 +10423,7 @@ func (c *ProjectsLocationsAppConnectorsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.create" call. @@ -10545,7 +10545,7 @@ func (c *ProjectsLocationsAppConnectorsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.delete" call. @@ -10655,7 +10655,7 @@ func (c *ProjectsLocationsAppConnectorsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.get" call. @@ -10783,7 +10783,7 @@ func (c *ProjectsLocationsAppConnectorsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.getIamPolicy" call. @@ -10925,7 +10925,7 @@ func (c *ProjectsLocationsAppConnectorsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.list" call. @@ -11082,7 +11082,7 @@ func (c *ProjectsLocationsAppConnectorsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.patch" call. @@ -11185,7 +11185,7 @@ func (c *ProjectsLocationsAppConnectorsReportStatusCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "appConnector": c.appConnector, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.reportStatus" call. @@ -11296,7 +11296,7 @@ func (c *ProjectsLocationsAppConnectorsResolveInstanceConfigCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "appConnector": c.appConnector, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.resolveInstanceConfig" call. @@ -11402,7 +11402,7 @@ func (c *ProjectsLocationsAppConnectorsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.setIamPolicy" call. @@ -11511,7 +11511,7 @@ func (c *ProjectsLocationsAppConnectorsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appConnectors.testIamPermissions" call. @@ -11646,7 +11646,7 @@ func (c *ProjectsLocationsAppGatewaysCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.create" call. @@ -11768,7 +11768,7 @@ func (c *ProjectsLocationsAppGatewaysDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.delete" call. @@ -11878,7 +11878,7 @@ func (c *ProjectsLocationsAppGatewaysGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.get" call. @@ -12005,7 +12005,7 @@ func (c *ProjectsLocationsAppGatewaysGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.getIamPolicy" call. @@ -12147,7 +12147,7 @@ func (c *ProjectsLocationsAppGatewaysListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.list" call. @@ -12274,7 +12274,7 @@ func (c *ProjectsLocationsAppGatewaysSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.setIamPolicy" call. @@ -12396,7 +12396,7 @@ func (c *ProjectsLocationsAppGatewaysShouldThrottleCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.shouldThrottle" call. @@ -12505,7 +12505,7 @@ func (c *ProjectsLocationsAppGatewaysTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.appGateways.testIamPermissions" call. @@ -12633,7 +12633,7 @@ func (c *ProjectsLocationsApplicationDomainsGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.applicationDomains.getIamPolicy" call. @@ -12739,7 +12739,7 @@ func (c *ProjectsLocationsApplicationDomainsSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.applicationDomains.setIamPolicy" call. @@ -12848,7 +12848,7 @@ func (c *ProjectsLocationsApplicationDomainsTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.applicationDomains.testIamPermissions" call. @@ -12976,7 +12976,7 @@ func (c *ProjectsLocationsApplicationsGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.applications.getIamPolicy" call. @@ -13082,7 +13082,7 @@ func (c *ProjectsLocationsApplicationsSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.applications.setIamPolicy" call. @@ -13191,7 +13191,7 @@ func (c *ProjectsLocationsApplicationsTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.applications.testIamPermissions" call. @@ -13319,7 +13319,7 @@ func (c *ProjectsLocationsClientConnectorServicesGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientConnectorServices.getIamPolicy" call. @@ -13425,7 +13425,7 @@ func (c *ProjectsLocationsClientConnectorServicesSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientConnectorServices.setIamPolicy" call. @@ -13534,7 +13534,7 @@ func (c *ProjectsLocationsClientConnectorServicesTestIamPermissionsCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientConnectorServices.testIamPermissions" call. @@ -13662,7 +13662,7 @@ func (c *ProjectsLocationsClientGatewaysGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientGateways.getIamPolicy" call. @@ -13768,7 +13768,7 @@ func (c *ProjectsLocationsClientGatewaysSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientGateways.setIamPolicy" call. @@ -13877,7 +13877,7 @@ func (c *ProjectsLocationsClientGatewaysTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.clientGateways.testIamPermissions" call. @@ -14012,7 +14012,7 @@ func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connections.create" call. @@ -14133,7 +14133,7 @@ func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connections.delete" call. @@ -14242,7 +14242,7 @@ func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connections.get" call. @@ -14369,7 +14369,7 @@ func (c *ProjectsLocationsConnectionsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connections.getIamPolicy" call. @@ -14511,7 +14511,7 @@ func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connections.list" call. @@ -14676,7 +14676,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connections.patch" call. @@ -14812,7 +14812,7 @@ func (c *ProjectsLocationsConnectionsResolveCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connections.resolve" call. @@ -14939,7 +14939,7 @@ func (c *ProjectsLocationsConnectionsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connections.setIamPolicy" call. @@ -15048,7 +15048,7 @@ func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connections.testIamPermissions" call. @@ -15183,7 +15183,7 @@ func (c *ProjectsLocationsConnectorsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connectors.create" call. @@ -15304,7 +15304,7 @@ func (c *ProjectsLocationsConnectorsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connectors.delete" call. @@ -15413,7 +15413,7 @@ func (c *ProjectsLocationsConnectorsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connectors.get" call. @@ -15540,7 +15540,7 @@ func (c *ProjectsLocationsConnectorsGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connectors.getIamPolicy" call. @@ -15682,7 +15682,7 @@ func (c *ProjectsLocationsConnectorsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connectors.list" call. @@ -15839,7 +15839,7 @@ func (c *ProjectsLocationsConnectorsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connectors.patch" call. @@ -15942,7 +15942,7 @@ func (c *ProjectsLocationsConnectorsReportStatusCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "connector": c.connector, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connectors.reportStatus" call. @@ -16052,7 +16052,7 @@ func (c *ProjectsLocationsConnectorsResolveInstanceConfigCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "connector": c.connector, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connectors.resolveInstanceConfig" call. @@ -16158,7 +16158,7 @@ func (c *ProjectsLocationsConnectorsSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connectors.setIamPolicy" call. @@ -16267,7 +16267,7 @@ func (c *ProjectsLocationsConnectorsTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.connectors.testIamPermissions" call. @@ -16389,7 +16389,7 @@ func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.global.securityGateways.applications.create" call. @@ -16514,7 +16514,7 @@ func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.global.securityGateways.applications.patch" call. @@ -16623,7 +16623,7 @@ func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.global.securityGateways.applications.testIamPermissions" call. @@ -16831,7 +16831,7 @@ func (c *ProjectsLocationsInsightsConfiguredInsightCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "insight": c.insight, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.insights.configuredInsight" call. @@ -16988,7 +16988,7 @@ func (c *ProjectsLocationsInsightsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.insights.get" call. @@ -17190,7 +17190,7 @@ func (c *ProjectsLocationsInsightsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.insights.list" call. @@ -17339,7 +17339,7 @@ func (c *ProjectsLocationsNetConnectionsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.netConnections.getIamPolicy" call. @@ -17445,7 +17445,7 @@ func (c *ProjectsLocationsNetConnectionsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.netConnections.setIamPolicy" call. @@ -17554,7 +17554,7 @@ func (c *ProjectsLocationsNetConnectionsTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.netConnections.testIamPermissions" call. @@ -17664,7 +17664,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.operations.cancel" call. @@ -17762,7 +17762,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.operations.delete" call. @@ -17871,7 +17871,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.operations.get" call. @@ -18000,7 +18000,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.operations.list" call. @@ -18143,7 +18143,7 @@ func (c *ProjectsLocationsSecurityGatewaysCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.create" call. @@ -18265,7 +18265,7 @@ func (c *ProjectsLocationsSecurityGatewaysDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.delete" call. @@ -18375,7 +18375,7 @@ func (c *ProjectsLocationsSecurityGatewaysGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.get" call. @@ -18503,7 +18503,7 @@ func (c *ProjectsLocationsSecurityGatewaysGetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.getIamPolicy" call. @@ -18648,7 +18648,7 @@ func (c *ProjectsLocationsSecurityGatewaysListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.list" call. @@ -18794,7 +18794,7 @@ func (c *ProjectsLocationsSecurityGatewaysPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.patch" call. @@ -18900,7 +18900,7 @@ func (c *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.setIamPolicy" call. @@ -19006,7 +19006,7 @@ func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "securityGateway": c.securityGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.setPeering" call. @@ -19115,7 +19115,7 @@ func (c *ProjectsLocationsSecurityGatewaysTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.testIamPermissions" call. @@ -19235,7 +19235,7 @@ func (c *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.applications.delete" call. @@ -19345,7 +19345,7 @@ func (c *ProjectsLocationsSecurityGatewaysApplicationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.applications.get" call. @@ -19473,7 +19473,7 @@ func (c *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.applications.getIamPolicy" call. @@ -19619,7 +19619,7 @@ func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.applications.list" call. @@ -19746,7 +19746,7 @@ func (c *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "beyondcorp.projects.locations.securityGateways.applications.setIamPolicy" call. diff --git a/biglake/v1/biglake-gen.go b/biglake/v1/biglake-gen.go index 870c987b220..be25aa68117 100644 --- a/biglake/v1/biglake-gen.go +++ b/biglake/v1/biglake-gen.go @@ -636,7 +636,7 @@ func (c *ProjectsLocationsCatalogsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.create" call. @@ -733,7 +733,7 @@ func (c *ProjectsLocationsCatalogsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.delete" call. @@ -842,7 +842,7 @@ func (c *ProjectsLocationsCatalogsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.get" call. @@ -968,7 +968,7 @@ func (c *ProjectsLocationsCatalogsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.list" call. @@ -1101,7 +1101,7 @@ func (c *ProjectsLocationsCatalogsDatabasesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.create" call. @@ -1198,7 +1198,7 @@ func (c *ProjectsLocationsCatalogsDatabasesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.delete" call. @@ -1307,7 +1307,7 @@ func (c *ProjectsLocationsCatalogsDatabasesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.get" call. @@ -1434,7 +1434,7 @@ func (c *ProjectsLocationsCatalogsDatabasesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.list" call. @@ -1568,7 +1568,7 @@ func (c *ProjectsLocationsCatalogsDatabasesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.patch" call. @@ -1679,7 +1679,7 @@ func (c *ProjectsLocationsCatalogsDatabasesTablesCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.tables.create" call. @@ -1776,7 +1776,7 @@ func (c *ProjectsLocationsCatalogsDatabasesTablesDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.tables.delete" call. @@ -1885,7 +1885,7 @@ func (c *ProjectsLocationsCatalogsDatabasesTablesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.tables.get" call. @@ -2027,7 +2027,7 @@ func (c *ProjectsLocationsCatalogsDatabasesTablesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.tables.list" call. @@ -2161,7 +2161,7 @@ func (c *ProjectsLocationsCatalogsDatabasesTablesPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.tables.patch" call. @@ -2265,7 +2265,7 @@ func (c *ProjectsLocationsCatalogsDatabasesTablesRenameCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "biglake.projects.locations.catalogs.databases.tables.rename" call. diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index d4bd7e23e40..486f3e49e4c 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -10412,7 +10412,7 @@ func (c *DatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.datasets.delete" call. @@ -10521,7 +10521,7 @@ func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.datasets.get" call. @@ -10622,7 +10622,7 @@ func (c *DatasetsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.datasets.insert" call. @@ -10764,7 +10764,7 @@ func (c *DatasetsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.datasets.list" call. @@ -10893,7 +10893,7 @@ func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.datasets.patch" call. @@ -11000,7 +11000,7 @@ func (c *DatasetsUndeleteCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.datasets.undelete" call. @@ -11107,7 +11107,7 @@ func (c *DatasetsUpdateCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.datasets.update" call. @@ -11219,7 +11219,7 @@ func (c *JobsCancelCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.jobs.cancel" call. @@ -11331,7 +11331,7 @@ func (c *JobsDeleteCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.jobs.delete" call. @@ -11432,7 +11432,7 @@ func (c *JobsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.jobs.get" call. @@ -11599,7 +11599,7 @@ func (c *JobsGetQueryResultsCall) doRequest(alt string) (*http.Response, error) "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.jobs.getQueryResults" call. @@ -11778,7 +11778,7 @@ func (c *JobsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.jobs.insert" call. @@ -11975,7 +11975,7 @@ func (c *JobsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.jobs.list" call. @@ -12098,7 +12098,7 @@ func (c *JobsQueryCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.jobs.query" call. @@ -12201,7 +12201,7 @@ func (c *ModelsDeleteCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "modelId": c.modelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.models.delete" call. @@ -12293,7 +12293,7 @@ func (c *ModelsGetCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "modelId": c.modelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.models.get" call. @@ -12421,7 +12421,7 @@ func (c *ModelsListCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.models.list" call. @@ -12552,7 +12552,7 @@ func (c *ModelsPatchCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "modelId": c.modelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.models.patch" call. @@ -12660,7 +12660,7 @@ func (c *ProjectsGetServiceAccountCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.projects.getServiceAccount" call. @@ -12781,7 +12781,7 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.projects.list" call. @@ -12905,7 +12905,7 @@ func (c *RoutinesDeleteCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "routineId": c.routineId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.routines.delete" call. @@ -13005,7 +13005,7 @@ func (c *RoutinesGetCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "routineId": c.routineId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.routines.get" call. @@ -13109,7 +13109,7 @@ func (c *RoutinesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.routines.getIamPolicy" call. @@ -13214,7 +13214,7 @@ func (c *RoutinesInsertCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.routines.insert" call. @@ -13360,7 +13360,7 @@ func (c *RoutinesListCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.routines.list" call. @@ -13487,7 +13487,7 @@ func (c *RoutinesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.routines.setIamPolicy" call. @@ -13597,7 +13597,7 @@ func (c *RoutinesUpdateCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "routineId": c.routineId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.routines.update" call. @@ -13701,7 +13701,7 @@ func (c *RowAccessPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.rowAccessPolicies.getIamPolicy" call. @@ -13831,7 +13831,7 @@ func (c *RowAccessPoliciesListCall) doRequest(alt string) (*http.Response, error "datasetId": c.datasetId, "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.rowAccessPolicies.list" call. @@ -13961,7 +13961,7 @@ func (c *RowAccessPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.rowAccessPolicies.testIamPermissions" call. @@ -14072,7 +14072,7 @@ func (c *TabledataInsertAllCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tabledata.insertAll" call. @@ -14225,7 +14225,7 @@ func (c *TabledataListCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tabledata.list" call. @@ -14350,7 +14350,7 @@ func (c *TablesDeleteCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tables.delete" call. @@ -14485,7 +14485,7 @@ func (c *TablesGetCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tables.get" call. @@ -14589,7 +14589,7 @@ func (c *TablesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tables.getIamPolicy" call. @@ -14694,7 +14694,7 @@ func (c *TablesInsertCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tables.insert" call. @@ -14821,7 +14821,7 @@ func (c *TablesListCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tables.list" call. @@ -14961,7 +14961,7 @@ func (c *TablesPatchCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tables.patch" call. @@ -15066,7 +15066,7 @@ func (c *TablesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tables.setIamPolicy" call. @@ -15174,7 +15174,7 @@ func (c *TablesTestIamPermissionsCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tables.testIamPermissions" call. @@ -15293,7 +15293,7 @@ func (c *TablesUpdateCall) doRequest(alt string) (*http.Response, error) { "datasetId": c.datasetId, "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquery.tables.update" call. diff --git a/bigqueryconnection/v1/bigqueryconnection-gen.go b/bigqueryconnection/v1/bigqueryconnection-gen.go index e9246c939c0..65b864673cd 100644 --- a/bigqueryconnection/v1/bigqueryconnection-gen.go +++ b/bigqueryconnection/v1/bigqueryconnection-gen.go @@ -1369,7 +1369,7 @@ func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.create" call. @@ -1465,7 +1465,7 @@ func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.delete" call. @@ -1573,7 +1573,7 @@ func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.get" call. @@ -1677,7 +1677,7 @@ func (c *ProjectsLocationsConnectionsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.getIamPolicy" call. @@ -1797,7 +1797,7 @@ func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.list" call. @@ -1929,7 +1929,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.patch" call. @@ -2034,7 +2034,7 @@ func (c *ProjectsLocationsConnectionsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.setIamPolicy" call. @@ -2142,7 +2142,7 @@ func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.testIamPermissions" call. diff --git a/bigqueryconnection/v1beta1/bigqueryconnection-gen.go b/bigqueryconnection/v1beta1/bigqueryconnection-gen.go index 8bffbc91355..26e63b6c46f 100644 --- a/bigqueryconnection/v1beta1/bigqueryconnection-gen.go +++ b/bigqueryconnection/v1beta1/bigqueryconnection-gen.go @@ -877,7 +877,7 @@ func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.create" call. @@ -973,7 +973,7 @@ func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.delete" call. @@ -1081,7 +1081,7 @@ func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.get" call. @@ -1185,7 +1185,7 @@ func (c *ProjectsLocationsConnectionsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.getIamPolicy" call. @@ -1306,7 +1306,7 @@ func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.list" call. @@ -1438,7 +1438,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.patch" call. @@ -1543,7 +1543,7 @@ func (c *ProjectsLocationsConnectionsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.setIamPolicy" call. @@ -1651,7 +1651,7 @@ func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.testIamPermissions" call. @@ -1755,7 +1755,7 @@ func (c *ProjectsLocationsConnectionsUpdateCredentialCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryconnection.projects.locations.connections.updateCredential" call. diff --git a/bigquerydatapolicy/v1/bigquerydatapolicy-gen.go b/bigquerydatapolicy/v1/bigquerydatapolicy-gen.go index 5a447f57b71..77191941118 100644 --- a/bigquerydatapolicy/v1/bigquerydatapolicy-gen.go +++ b/bigquerydatapolicy/v1/bigquerydatapolicy-gen.go @@ -875,7 +875,7 @@ func (c *ProjectsLocationsDataPoliciesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatapolicy.projects.locations.dataPolicies.create" call. @@ -979,7 +979,7 @@ func (c *ProjectsLocationsDataPoliciesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatapolicy.projects.locations.dataPolicies.delete" call. @@ -1088,7 +1088,7 @@ func (c *ProjectsLocationsDataPoliciesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatapolicy.projects.locations.dataPolicies.get" call. @@ -1191,7 +1191,7 @@ func (c *ProjectsLocationsDataPoliciesGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatapolicy.projects.locations.dataPolicies.getIamPolicy" call. @@ -1327,7 +1327,7 @@ func (c *ProjectsLocationsDataPoliciesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatapolicy.projects.locations.dataPolicies.list" call. @@ -1471,7 +1471,7 @@ func (c *ProjectsLocationsDataPoliciesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatapolicy.projects.locations.dataPolicies.patch" call. @@ -1574,7 +1574,7 @@ func (c *ProjectsLocationsDataPoliciesRenameCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatapolicy.projects.locations.dataPolicies.rename" call. @@ -1677,7 +1677,7 @@ func (c *ProjectsLocationsDataPoliciesSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatapolicy.projects.locations.dataPolicies.setIamPolicy" call. @@ -1782,7 +1782,7 @@ func (c *ProjectsLocationsDataPoliciesTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatapolicy.projects.locations.dataPolicies.testIamPermissions" call. diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go index 3b7ead7aeae..29b5dab275e 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go @@ -1316,7 +1316,7 @@ func (c *ProjectsEnrollDataSourcesCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.enrollDataSources" call. @@ -1421,7 +1421,7 @@ func (c *ProjectsDataSourcesCheckValidCredsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.dataSources.checkValidCreds" call. @@ -1532,7 +1532,7 @@ func (c *ProjectsDataSourcesGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.dataSources.get" call. @@ -1658,7 +1658,7 @@ func (c *ProjectsDataSourcesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.dataSources.list" call. @@ -1788,7 +1788,7 @@ func (c *ProjectsLocationsEnrollDataSourcesCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.enrollDataSources" call. @@ -1895,7 +1895,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.get" call. @@ -2026,7 +2026,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.list" call. @@ -2154,7 +2154,7 @@ func (c *ProjectsLocationsUnenrollDataSourcesCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.unenrollDataSources" call. @@ -2259,7 +2259,7 @@ func (c *ProjectsLocationsDataSourcesCheckValidCredsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.dataSources.checkValidCreds" call. @@ -2370,7 +2370,7 @@ func (c *ProjectsLocationsDataSourcesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.dataSources.get" call. @@ -2496,7 +2496,7 @@ func (c *ProjectsLocationsDataSourcesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.dataSources.list" call. @@ -2670,7 +2670,7 @@ func (c *ProjectsLocationsTransferConfigsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.create" call. @@ -2768,7 +2768,7 @@ func (c *ProjectsLocationsTransferConfigsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.delete" call. @@ -2877,7 +2877,7 @@ func (c *ProjectsLocationsTransferConfigsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.get" call. @@ -3011,7 +3011,7 @@ func (c *ProjectsLocationsTransferConfigsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.list" call. @@ -3194,7 +3194,7 @@ func (c *ProjectsLocationsTransferConfigsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.patch" call. @@ -3301,7 +3301,7 @@ func (c *ProjectsLocationsTransferConfigsScheduleRunsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.scheduleRuns" call. @@ -3409,7 +3409,7 @@ func (c *ProjectsLocationsTransferConfigsStartManualRunsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.startManualRuns" call. @@ -3508,7 +3508,7 @@ func (c *ProjectsLocationsTransferConfigsRunsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.runs.delete" call. @@ -3618,7 +3618,7 @@ func (c *ProjectsLocationsTransferConfigsRunsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.runs.get" call. @@ -3777,7 +3777,7 @@ func (c *ProjectsLocationsTransferConfigsRunsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.runs.list" call. @@ -3940,7 +3940,7 @@ func (c *ProjectsLocationsTransferConfigsRunsTransferLogsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.locations.transferConfigs.runs.transferLogs.list" call. @@ -4114,7 +4114,7 @@ func (c *ProjectsTransferConfigsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.create" call. @@ -4212,7 +4212,7 @@ func (c *ProjectsTransferConfigsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.delete" call. @@ -4321,7 +4321,7 @@ func (c *ProjectsTransferConfigsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.get" call. @@ -4455,7 +4455,7 @@ func (c *ProjectsTransferConfigsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.list" call. @@ -4638,7 +4638,7 @@ func (c *ProjectsTransferConfigsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.patch" call. @@ -4745,7 +4745,7 @@ func (c *ProjectsTransferConfigsScheduleRunsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.scheduleRuns" call. @@ -4853,7 +4853,7 @@ func (c *ProjectsTransferConfigsStartManualRunsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.startManualRuns" call. @@ -4952,7 +4952,7 @@ func (c *ProjectsTransferConfigsRunsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.runs.delete" call. @@ -5062,7 +5062,7 @@ func (c *ProjectsTransferConfigsRunsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.runs.get" call. @@ -5221,7 +5221,7 @@ func (c *ProjectsTransferConfigsRunsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.runs.list" call. @@ -5384,7 +5384,7 @@ func (c *ProjectsTransferConfigsRunsTransferLogsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigquerydatatransfer.projects.transferConfigs.runs.transferLogs.list" call. diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index 4eca20cd674..73327e5b49a 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -975,7 +975,7 @@ func (c *ProjectsLocationsGetBiReservationCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.getBiReservation" call. @@ -1116,7 +1116,7 @@ func (c *ProjectsLocationsSearchAllAssignmentsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.searchAllAssignments" call. @@ -1280,7 +1280,7 @@ func (c *ProjectsLocationsSearchAssignmentsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.searchAssignments" call. @@ -1416,7 +1416,7 @@ func (c *ProjectsLocationsUpdateBiReservationCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.updateBiReservation" call. @@ -1537,7 +1537,7 @@ func (c *ProjectsLocationsCapacityCommitmentsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.create" call. @@ -1644,7 +1644,7 @@ func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.delete" call. @@ -1752,7 +1752,7 @@ func (c *ProjectsLocationsCapacityCommitmentsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.get" call. @@ -1875,7 +1875,7 @@ func (c *ProjectsLocationsCapacityCommitmentsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.list" call. @@ -2003,7 +2003,7 @@ func (c *ProjectsLocationsCapacityCommitmentsMergeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.merge" call. @@ -2120,7 +2120,7 @@ func (c *ProjectsLocationsCapacityCommitmentsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.patch" call. @@ -2227,7 +2227,7 @@ func (c *ProjectsLocationsCapacityCommitmentsSplitCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.split" call. @@ -2338,7 +2338,7 @@ func (c *ProjectsLocationsReservationsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.create" call. @@ -2435,7 +2435,7 @@ func (c *ProjectsLocationsReservationsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.delete" call. @@ -2541,7 +2541,7 @@ func (c *ProjectsLocationsReservationsFailoverReservationCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.failoverReservation" call. @@ -2649,7 +2649,7 @@ func (c *ProjectsLocationsReservationsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.get" call. @@ -2771,7 +2771,7 @@ func (c *ProjectsLocationsReservationsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.list" call. @@ -2905,7 +2905,7 @@ func (c *ProjectsLocationsReservationsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.patch" call. @@ -3036,7 +3036,7 @@ func (c *ProjectsLocationsReservationsAssignmentsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.assignments.create" call. @@ -3139,7 +3139,7 @@ func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.assignments.delete" call. @@ -3271,7 +3271,7 @@ func (c *ProjectsLocationsReservationsAssignmentsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.assignments.list" call. @@ -3398,7 +3398,7 @@ func (c *ProjectsLocationsReservationsAssignmentsMoveCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.assignments.move" call. @@ -3510,7 +3510,7 @@ func (c *ProjectsLocationsReservationsAssignmentsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.assignments.patch" call. diff --git a/bigqueryreservation/v1alpha2/bigqueryreservation-gen.go b/bigqueryreservation/v1alpha2/bigqueryreservation-gen.go index 277b385816f..02d92503bfc 100644 --- a/bigqueryreservation/v1alpha2/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1alpha2/bigqueryreservation-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/bigquery/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // bigqueryreservationService, err := bigqueryreservation.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // bigqueryreservationService, err := bigqueryreservation.NewService(ctx, option.WithScopes(bigqueryreservation.CloudPlatformScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // bigqueryreservationService, err := bigqueryreservation.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // bigqueryreservationService, err := bigqueryreservation.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package bigqueryreservation // import "google.golang.org/api/bigqueryreservation/v1alpha2" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "bigqueryreservation:v1alpha2" const apiName = "bigqueryreservation" const apiVersion = "v1alpha2" const basePath = "https://bigqueryreservation.googleapis.com/" +const basePathTemplate = "https://bigqueryreservation.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://bigqueryreservation.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -92,14 +109,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -216,508 +235,399 @@ type ProjectsLocationsReservationsSlotPoolsService struct { // ReservationService.CreateSlotPool. type CreateSlotPoolMetadata struct { // SlotPool: Resource name of the slot pool that is being created. E.g., - // projects/myproject/locations/us-central1/reservations/foo/slotPools/12 - // 3 + // projects/myproject/locations/us-central1/reservations/foo/slotPools/123 SlotPool string `json:"slotPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "SlotPool") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SlotPool") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SlotPool") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateSlotPoolMetadata) MarshalJSON() ([]byte, error) { +func (s CreateSlotPoolMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateSlotPoolMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON +// representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // ListReservationGrantsResponse: The response for // ReservationService.ListReservationGrants. type ListReservationGrantsResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ReservationGrants: List of reservation grants visible to the user. ReservationGrants []*ReservationGrant `json:"reservationGrants,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListReservationGrantsResponse) MarshalJSON() ([]byte, error) { +func (s ListReservationGrantsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListReservationGrantsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListReservationsResponse: The response for // ReservationService.ListReservations. type ListReservationsResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // Reservations: List of reservations visible to the user. Reservations []*Reservation `json:"reservations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListReservationsResponse) MarshalJSON() ([]byte, error) { +func (s ListReservationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListReservationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListSlotPoolsResponse: The response for -// ReservationService.ListSlotPools. +// ListSlotPoolsResponse: The response for ReservationService.ListSlotPools. type ListSlotPoolsResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // SlotPools: List of slot pools visible to the user. SlotPools []*SlotPool `json:"slotPools,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListSlotPoolsResponse) MarshalJSON() ([]byte, error) { +func (s ListSlotPoolsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListSlotPoolsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Reservation: A reservation is a mechanism used to guarantee slots to -// users. +// Reservation: A reservation is a mechanism used to guarantee slots to users. type Reservation struct { // Name: The resource name of the reservation, e.g., - // "projects/*/locations/*/reservations/dev/team/product". Reservation - // names (e.g., "dev/team/product") exceeding a depth of six will fail - // with `google.rpc.Code.INVALID_ARGUMENT`. + // "projects/*/locations/*/reservations/dev/team/product". Reservation names + // (e.g., "dev/team/product") exceeding a depth of six will fail with + // `google.rpc.Code.INVALID_ARGUMENT`. Name string `json:"name,omitempty"` - - // SlotCapacity: Maximum slots available to this reservation and its - // children. A slot is a unit of computational power in BigQuery, and - // serves as the unit of parallelism. In a scan of a multi-partitioned - // table, a single slot operates on a single partition of the table. If - // the new reservation's slot capacity exceed the parent's slot capacity - // or if total slot capacity of the new reservation and its siblings - // exceeds the parent's slot capacity, the request will fail with - // `google.rpc.Code.RESOURCE_EXHAUSTED`. + // SlotCapacity: Maximum slots available to this reservation and its children. + // A slot is a unit of computational power in BigQuery, and serves as the unit + // of parallelism. In a scan of a multi-partitioned table, a single slot + // operates on a single partition of the table. If the new reservation's slot + // capacity exceed the parent's slot capacity or if total slot capacity of the + // new reservation and its siblings exceeds the parent's slot capacity, the + // request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`. SlotCapacity int64 `json:"slotCapacity,omitempty,string"` - - // UseParentReservation: If true, any query using this reservation will - // also be submitted to the parent reservation. This allows the query to - // share the additional slot capacity of the parent with other queries - // in the parent reservation. If the parent also has this field set to - // true, then this process will continue until it encounters a - // reservation for which this is false. If false, a query using this - // reservation will execute with the maximum slot capacity as specified - // above. If not specified, default value is true. Ignored for top-level - // reservation. + // UseParentReservation: If true, any query using this reservation will also be + // submitted to the parent reservation. This allows the query to share the + // additional slot capacity of the parent with other queries in the parent + // reservation. If the parent also has this field set to true, then this + // process will continue until it encounters a reservation for which this is + // false. If false, a query using this reservation will execute with the + // maximum slot capacity as specified above. If not specified, default value is + // true. Ignored for top-level reservation. UseParentReservation bool `json:"useParentReservation,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Reservation) MarshalJSON() ([]byte, error) { +func (s Reservation) MarshalJSON() ([]byte, error) { type NoMethod Reservation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReservationGrant: A ReservationGrant allows a project to submit jobs -// of a certain type using slots from the specified reservation. +// ReservationGrant: A ReservationGrant allows a project to submit jobs of a +// certain type using slots from the specified reservation. type ReservationGrant struct { // Grantee: The resource which will use the reservation. E.g. // projects/myproject, folders/123, organizations/456. Grantee string `json:"grantee,omitempty"` - // JobType: Which type of jobs will use the reservation. // // Possible values: - // "JOB_TYPE_UNSPECIFIED" - Invalid type. Requests with this value - // will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. - // "PIPELINE" - Pipeline (load/export) jobs from the project will use - // the reservation. + // "JOB_TYPE_UNSPECIFIED" - Invalid type. Requests with this value will be + // rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. + // "PIPELINE" - Pipeline (load/export) jobs from the project will use the + // reservation. // "QUERY" - Query jobs from the project will use the reservation. JobType string `json:"jobType,omitempty"` - // Name: Output only. Name of the resource. E.g.: // projects/myproject/locations/eu/reservationGrants/123. Name string `json:"name,omitempty"` - // Reservation: Resource name of the reservation. E.g., // projects/myproject/locations/eu/reservations/my_reservation. This - // reservation must be in the same location as the grant. This - // reservation should belong to the same parent project. + // reservation must be in the same location as the grant. This reservation + // should belong to the same parent project. Reservation string `json:"reservation,omitempty"` - // State: Output only. State of the ReservationGrant. // // Possible values: // "STATE_UNSPECIFIED" - Invalid state value. - // "PENDING" - Queries from grantee will be executed as on-demand, if - // related ReservationGrant is pending. + // "PENDING" - Queries from grantee will be executed as on-demand, if related + // ReservationGrant is pending. // "ACTIVE" - ReservationGrant is ready. State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Grantee") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Grantee") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Grantee") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Grantee") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReservationGrant) MarshalJSON() ([]byte, error) { +func (s ReservationGrant) MarshalJSON() ([]byte, error) { type NoMethod ReservationGrant - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SearchReservationGrantsResponse: The response for // ReservationService.SearchReservationGrants. type SearchReservationGrantsResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ReservationGrants: List of reservation grants visible to the user. ReservationGrants []*ReservationGrant `json:"reservationGrants,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SearchReservationGrantsResponse) MarshalJSON() ([]byte, error) { +func (s SearchReservationGrantsResponse) MarshalJSON() ([]byte, error) { type NoMethod SearchReservationGrantsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SlotPool: Slot pool is a way to purchase slots with some minimum -// committed period of usage. Slot pool is immutable and cannot be -// deleted until the end of the commitment period. After the end of the -// commitment period, slots are still available but can be freely -// removed any time. Annual commitments will automatically be downgraded -// to monthly after the commitment ends. A slot pool resource exists as -// a child resource of a top-level reservation. Sum of all the ACTIVE -// pools slot_count is always equal to the reservation slot_capacity. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SlotPool: Slot pool is a way to purchase slots with some minimum committed +// period of usage. Slot pool is immutable and cannot be deleted until the end +// of the commitment period. After the end of the commitment period, slots are +// still available but can be freely removed any time. Annual commitments will +// automatically be downgraded to monthly after the commitment ends. A slot +// pool resource exists as a child resource of a top-level reservation. Sum of +// all the ACTIVE pools slot_count is always equal to the reservation +// slot_capacity. type SlotPool struct { - // CommitmentEndTime: Output only. The end of the commitment period. - // Slot pool cannot be removed before commitment_end_time. It is - // applicable only for ACTIVE slot pools and is computed as a - // combination of the plan and the time when the slot pool became - // ACTIVE. + // CommitmentEndTime: Output only. The end of the commitment period. Slot pool + // cannot be removed before commitment_end_time. It is applicable only for + // ACTIVE slot pools and is computed as a combination of the plan and the time + // when the slot pool became ACTIVE. CommitmentEndTime string `json:"commitmentEndTime,omitempty"` - - // FailureStatus: Output only. For FAILED slot pool, provides the reason - // of failure. + // FailureStatus: Output only. For FAILED slot pool, provides the reason of + // failure. FailureStatus *Status `json:"failureStatus,omitempty"` - // Name: Output only. The resource name of the slot pool, e.g., - // projects/myproject/locations/us-central1/reservations/myreservation/sl - // otPools/123 + // projects/myproject/locations/us-central1/reservations/myreservation/slotPools + // /123 Name string `json:"name,omitempty"` - // Plan: Slot pool commitment plan. // // Possible values: - // "COMMITMENT_PLAN_UNSPECIFIED" - Invalid plan value. Requests with - // this value will be rejected with error code - // `google.rpc.Code.INVALID_ARGUMENT`. + // "COMMITMENT_PLAN_UNSPECIFIED" - Invalid plan value. Requests with this + // value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. // "FLEX" - Slot pool can be removed at any point, even after becoming // ACTIVE. - // "TRIAL" - Trial commitments have a committed period of 182 days - // after becoming ACTIVE. After that, they are converted to a new - // commitment based on the renewal_plan. Default renewal_plan for Trial - // commitment is Flex so that it can be deleted right after committed - // period ends. - // "MONTHLY" - Slot pool cannot be removed for 30 days after becoming - // ACTIVE. - // "ANNUAL" - Slot pool cannot be removed for 365 days after becoming - // ACTIVE. Note: annual commitments are automatically downgraded to - // monthly after 365 days. + // "TRIAL" - Trial commitments have a committed period of 182 days after + // becoming ACTIVE. After that, they are converted to a new commitment based on + // the renewal_plan. Default renewal_plan for Trial commitment is Flex so that + // it can be deleted right after committed period ends. + // "MONTHLY" - Slot pool cannot be removed for 30 days after becoming ACTIVE. + // "ANNUAL" - Slot pool cannot be removed for 365 days after becoming ACTIVE. + // Note: annual commitments are automatically downgraded to monthly after 365 + // days. Plan string `json:"plan,omitempty"` - // SlotCount: Number of slots in this pool. SlotCount int64 `json:"slotCount,omitempty,string"` - // State: Output only. // // Possible values: // "STATE_UNSPECIFIED" - Invalid state value. - // "PENDING" - Slot pool is pending provisioning. Pending slot pool - // does not contribute to the parent's slot_capacity. + // "PENDING" - Slot pool is pending provisioning. Pending slot pool does not + // contribute to the parent's slot_capacity. // "ACTIVE" - Once slots are provisioned, slot pool becomes active. // slot_count is added to the parent's slot_capacity. // "FAILED" - Slot pool is failed to be activated by the backend. State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CommitmentEndTime") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CommitmentEndTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommitmentEndTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CommitmentEndTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SlotPool) MarshalJSON() ([]byte, error) { +func (s SlotPool) MarshalJSON() ([]byte, error) { type NoMethod SlotPool - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the [API Design -// Guide](https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "bigqueryreservation.projects.locations.searchReservationGrants": - type ProjectsLocationsSearchReservationGrantsCall struct { s *Service parent string @@ -727,39 +637,41 @@ type ProjectsLocationsSearchReservationGrantsCall struct { header_ http.Header } -// SearchReservationGrants: Look up grants for a specified resource for -// a particular region. If the request is about a project: 1) Grants -// created on the project will be returned if they exist. 2) Otherwise -// grants created on the closest ancestor will be returned. 3) Grants -// for different JobTypes will all be returned. Same logic applies if -// the request is about a folder. If the request is about an -// organization, then grants created on the organization will be -// returned (organization doesn't have ancestors). Comparing to -// ListReservationGrants, there are two behavior differences: 1) -// permission on the grantee will be verified in this API. 2) Hierarchy -// lookup (project->folder->organization) happens in this API. +// SearchReservationGrants: Look up grants for a specified resource for a +// particular region. If the request is about a project: 1) Grants created on +// the project will be returned if they exist. 2) Otherwise grants created on +// the closest ancestor will be returned. 3) Grants for different JobTypes will +// all be returned. Same logic applies if the request is about a folder. If the +// request is about an organization, then grants created on the organization +// will be returned (organization doesn't have ancestors). Comparing to +// ListReservationGrants, there are two behavior differences: 1) permission on +// the grantee will be verified in this API. 2) Hierarchy lookup +// (project->folder->organization) happens in this API. +// +// - parent: The parent resource name (containing project and location), which +// owns the grants. e.g.: "projects/myproject/locations/us-central1". func (r *ProjectsLocationsService) SearchReservationGrants(parent string) *ProjectsLocationsSearchReservationGrantsCall { c := &ProjectsLocationsSearchReservationGrantsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsLocationsSearchReservationGrantsCall) PageSize(pageSize int64) *ProjectsLocationsSearchReservationGrantsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous List request, if any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. func (c *ProjectsLocationsSearchReservationGrantsCall) PageToken(pageToken string) *ProjectsLocationsSearchReservationGrantsCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Query sets the optional parameter "query": Please specify resource -// name as grantee in the query. e.g., "grantee=projects/myproject" +// Query sets the optional parameter "query": Please specify resource name as +// grantee in the query. e.g., "grantee=projects/myproject" // "grantee=folders/123" "grantee=organizations/456" func (c *ProjectsLocationsSearchReservationGrantsCall) Query(query string) *ProjectsLocationsSearchReservationGrantsCall { c.urlParams_.Set("query", query) @@ -767,33 +679,29 @@ func (c *ProjectsLocationsSearchReservationGrantsCall) Query(query string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSearchReservationGrantsCall) Fields(s ...googleapi.Field) *ProjectsLocationsSearchReservationGrantsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsSearchReservationGrantsCall) IfNoneMatch(entityTag string) *ProjectsLocationsSearchReservationGrantsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSearchReservationGrantsCall) Context(ctx context.Context) *ProjectsLocationsSearchReservationGrantsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSearchReservationGrantsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -802,12 +710,7 @@ func (c *ProjectsLocationsSearchReservationGrantsCall) Header() http.Header { } func (c *ProjectsLocationsSearchReservationGrantsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -824,16 +727,15 @@ func (c *ProjectsLocationsSearchReservationGrantsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.searchReservationGrants" call. -// Exactly one of *SearchReservationGrantsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *SearchReservationGrantsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SearchReservationGrantsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSearchReservationGrantsCall) Do(opts ...googleapi.CallOption) (*SearchReservationGrantsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -841,17 +743,17 @@ func (c *ProjectsLocationsSearchReservationGrantsCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SearchReservationGrantsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -864,49 +766,6 @@ func (c *ProjectsLocationsSearchReservationGrantsCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Look up grants for a specified resource for a particular region. If the request is about a project: 1) Grants created on the project will be returned if they exist. 2) Otherwise grants created on the closest ancestor will be returned. 3) Grants for different JobTypes will all be returned. Same logic applies if the request is about a folder. If the request is about an organization, then grants created on the organization will be returned (organization doesn't have ancestors). Comparing to ListReservationGrants, there are two behavior differences: 1) permission on the grantee will be verified in this API. 2) Hierarchy lookup (project-\u003efolder-\u003eorganization) happens in this API.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}:SearchReservationGrants", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.searchReservationGrants", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The parent resource name (containing project and location), which owns the grants. e.g.: \"projects/myproject/locations/us-central1\".", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "query": { - // "description": "Please specify resource name as grantee in the query. e.g., \"grantee=projects/myproject\" \"grantee=folders/123\" \"grantee=organizations/456\"", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}:SearchReservationGrants", - // "response": { - // "$ref": "SearchReservationGrantsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -914,7 +773,7 @@ func (c *ProjectsLocationsSearchReservationGrantsCall) Do(opts ...googleapi.Call // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsSearchReservationGrantsCall) Pages(ctx context.Context, f func(*SearchReservationGrantsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -930,8 +789,6 @@ func (c *ProjectsLocationsSearchReservationGrantsCall) Pages(ctx context.Context } } -// method id "bigqueryreservation.projects.locations.operations.cancel": - type ProjectsLocationsOperationsCancelCall struct { s *Service name string @@ -940,16 +797,17 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall { c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -957,23 +815,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -982,12 +838,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1001,16 +852,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1018,17 +867,17 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1041,36 +890,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "bigqueryreservation.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}:cancel", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.operations.get": +} type ProjectsLocationsOperationsGetCall struct { s *Service @@ -1081,9 +901,11 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1091,33 +913,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1126,12 +944,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1148,16 +961,14 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1165,17 +976,17 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -1188,36 +999,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservationGrants.create": +} type ProjectsLocationsReservationGrantsCreateCall struct { s *Service @@ -1228,11 +1010,14 @@ type ProjectsLocationsReservationGrantsCreateCall struct { header_ http.Header } -// Create: Returns `google.rpc.Code.PERMISSION_DENIED` if user does not -// have 'bigquery.admin' permissions on the project using the -// reservation and the project that owns this reservation. Returns -// `google.rpc.Code.INVALID_ARGUMENT` when location of the grant does -// not match location of the reservation. +// Create: Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have +// 'bigquery.admin' permissions on the project using the reservation and the +// project that owns this reservation. Returns +// `google.rpc.Code.INVALID_ARGUMENT` when location of the grant does not match +// location of the reservation. +// +// - parent: The parent resource name of the reservation grant E.g.: +// projects/myproject/location/eu. func (r *ProjectsLocationsReservationGrantsService) Create(parent string, reservationgrant *ReservationGrant) *ProjectsLocationsReservationGrantsCreateCall { c := &ProjectsLocationsReservationGrantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1241,23 +1026,21 @@ func (r *ProjectsLocationsReservationGrantsService) Create(parent string, reserv } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationGrantsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationGrantsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationGrantsCreateCall) Context(ctx context.Context) *ProjectsLocationsReservationGrantsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationGrantsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1266,18 +1049,12 @@ func (c *ProjectsLocationsReservationGrantsCreateCall) Header() http.Header { } func (c *ProjectsLocationsReservationGrantsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.reservationgrant) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/reservationGrants") @@ -1290,16 +1067,15 @@ func (c *ProjectsLocationsReservationGrantsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservationGrants.create" call. -// Exactly one of *ReservationGrant or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ReservationGrant.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReservationGrant.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsReservationGrantsCreateCall) Do(opts ...googleapi.CallOption) (*ReservationGrant, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1307,17 +1083,17 @@ func (c *ProjectsLocationsReservationGrantsCreateCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ReservationGrant{ ServerResponse: googleapi.ServerResponse{ @@ -1330,39 +1106,7 @@ func (c *ProjectsLocationsReservationGrantsCreateCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have 'bigquery.admin' permissions on the project using the reservation and the project that owns this reservation. Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the grant does not match location of the reservation.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservationGrants", - // "httpMethod": "POST", - // "id": "bigqueryreservation.projects.locations.reservationGrants.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The parent resource name of the reservation grant E.g.: projects/myproject/location/eu.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/reservationGrants", - // "request": { - // "$ref": "ReservationGrant" - // }, - // "response": { - // "$ref": "ReservationGrant" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservationGrants.delete": +} type ProjectsLocationsReservationGrantsDeleteCall struct { s *Service @@ -1373,11 +1117,14 @@ type ProjectsLocationsReservationGrantsDeleteCall struct { } // Delete: Deletes a reservation grant. No expansion will happen. E.g: -// organizationA contains project1 and project2. Reservation res1 -// exists. CreateReservationGrant was invoked previously and following -// grants were created explicitly: Then deletion of won't affect . After -// deletion of , queries from project1 will still use res1, while -// queries from project2 will use on-demand mode. +// organizationA contains project1 and project2. Reservation res1 exists. +// CreateReservationGrant was invoked previously and following grants were +// created explicitly: Then deletion of won't affect . After deletion of , +// queries from project1 will still use res1, while queries from project2 will +// use on-demand mode. +// +// - name: Name of the resource, e.g.: +// projects/myproject/locations/eu/reservationGrants/123. func (r *ProjectsLocationsReservationGrantsService) Delete(name string) *ProjectsLocationsReservationGrantsDeleteCall { c := &ProjectsLocationsReservationGrantsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1385,23 +1132,21 @@ func (r *ProjectsLocationsReservationGrantsService) Delete(name string) *Project } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationGrantsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationGrantsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationGrantsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReservationGrantsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationGrantsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1410,12 +1155,7 @@ func (c *ProjectsLocationsReservationGrantsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsReservationGrantsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1429,16 +1169,14 @@ func (c *ProjectsLocationsReservationGrantsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservationGrants.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationGrantsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1446,17 +1184,17 @@ func (c *ProjectsLocationsReservationGrantsDeleteCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1469,36 +1207,7 @@ func (c *ProjectsLocationsReservationGrantsDeleteCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Deletes a reservation grant. No expansion will happen. E.g: organizationA contains project1 and project2. Reservation res1 exists. CreateReservationGrant was invoked previously and following grants were created explicitly: Then deletion of won't affect . After deletion of , queries from project1 will still use res1, while queries from project2 will use on-demand mode.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservationGrants/{reservationGrantsId}", - // "httpMethod": "DELETE", - // "id": "bigqueryreservation.projects.locations.reservationGrants.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the resource, e.g.: projects/myproject/locations/eu/reservationGrants/123", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservationGrants/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservationGrants.list": +} type ProjectsLocationsReservationGrantsListCall struct { s *Service @@ -1509,60 +1218,57 @@ type ProjectsLocationsReservationGrantsListCall struct { header_ http.Header } -// List: Lists reservation grants. Only explicitly created grants will -// be returned. E.g: organizationA contains project1 and project2. -// Reservation res1 exists. CreateReservationGrant was invoked -// previously and following grants were created explicitly: Then this -// API will just return the above two grants for reservation res1, and -// no expansion/merge will happen. +// List: Lists reservation grants. Only explicitly created grants will be +// returned. E.g: organizationA contains project1 and project2. Reservation +// res1 exists. CreateReservationGrant was invoked previously and following +// grants were created explicitly: Then this API will just return the above two +// grants for reservation res1, and no expansion/merge will happen. +// +// - parent: The parent resource name e.g.: projects/myproject/location/eu. func (r *ProjectsLocationsReservationGrantsService) List(parent string) *ProjectsLocationsReservationGrantsListCall { c := &ProjectsLocationsReservationGrantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsLocationsReservationGrantsListCall) PageSize(pageSize int64) *ProjectsLocationsReservationGrantsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous List request, if any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. func (c *ProjectsLocationsReservationGrantsListCall) PageToken(pageToken string) *ProjectsLocationsReservationGrantsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationGrantsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationGrantsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsReservationGrantsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationGrantsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationGrantsListCall) Context(ctx context.Context) *ProjectsLocationsReservationGrantsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationGrantsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1571,12 +1277,7 @@ func (c *ProjectsLocationsReservationGrantsListCall) Header() http.Header { } func (c *ProjectsLocationsReservationGrantsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1593,16 +1294,15 @@ func (c *ProjectsLocationsReservationGrantsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservationGrants.list" call. -// Exactly one of *ListReservationGrantsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListReservationGrantsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListReservationGrantsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsReservationGrantsListCall) Do(opts ...googleapi.CallOption) (*ListReservationGrantsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1610,17 +1310,17 @@ func (c *ProjectsLocationsReservationGrantsListCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListReservationGrantsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1633,44 +1333,6 @@ func (c *ProjectsLocationsReservationGrantsListCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Lists reservation grants. Only explicitly created grants will be returned. E.g: organizationA contains project1 and project2. Reservation res1 exists. CreateReservationGrant was invoked previously and following grants were created explicitly: Then this API will just return the above two grants for reservation res1, and no expansion/merge will happen.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservationGrants", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.reservationGrants.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The parent resource name e.g.: projects/myproject/location/eu.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/reservationGrants", - // "response": { - // "$ref": "ListReservationGrantsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1678,7 +1340,7 @@ func (c *ProjectsLocationsReservationGrantsListCall) Do(opts ...googleapi.CallOp // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsReservationGrantsListCall) Pages(ctx context.Context, f func(*ListReservationGrantsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1694,8 +1356,6 @@ func (c *ProjectsLocationsReservationGrantsListCall) Pages(ctx context.Context, } } -// method id "bigqueryreservation.projects.locations.reservations.create": - type ProjectsLocationsReservationsCreateCall struct { s *Service parent string @@ -1707,6 +1367,9 @@ type ProjectsLocationsReservationsCreateCall struct { // Create: Creates a new reservation resource. Multiple reservations are // created if the ancestor reservations do not exist. +// +// - parent: Project, location, and (optionally) reservation name. E.g., +// projects/myproject/locations/us-central1/reservations/parent. func (r *ProjectsLocationsReservationsService) Create(parent string, reservation *Reservation) *ProjectsLocationsReservationsCreateCall { c := &ProjectsLocationsReservationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1714,32 +1377,30 @@ func (r *ProjectsLocationsReservationsService) Create(parent string, reservation return c } -// ReservationId sets the optional parameter "reservationId": The -// reservation ID relative to the parent, e.g., "dev". This field must -// only contain alphanumeric characters. +// ReservationId sets the optional parameter "reservationId": The reservation +// ID relative to the parent, e.g., "dev". This field must only contain +// alphanumeric characters. func (c *ProjectsLocationsReservationsCreateCall) ReservationId(reservationId string) *ProjectsLocationsReservationsCreateCall { c.urlParams_.Set("reservationId", reservationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsCreateCall) Context(ctx context.Context) *ProjectsLocationsReservationsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1748,18 +1409,12 @@ func (c *ProjectsLocationsReservationsCreateCall) Header() http.Header { } func (c *ProjectsLocationsReservationsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.reservation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/reservations") @@ -1772,16 +1427,14 @@ func (c *ProjectsLocationsReservationsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.create" call. -// Exactly one of *Reservation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Reservation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Reservation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsCreateCall) Do(opts ...googleapi.CallOption) (*Reservation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1789,17 +1442,17 @@ func (c *ProjectsLocationsReservationsCreateCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Reservation{ ServerResponse: googleapi.ServerResponse{ @@ -1812,44 +1465,7 @@ func (c *ProjectsLocationsReservationsCreateCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Creates a new reservation resource. Multiple reservations are created if the ancestor reservations do not exist.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservations", - // "httpMethod": "POST", - // "id": "bigqueryreservation.projects.locations.reservations.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Project, location, and (optionally) reservation name. E.g., projects/myproject/locations/us-central1/reservations/parent", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "reservationId": { - // "description": "The reservation ID relative to the parent, e.g., \"dev\". This field must only contain alphanumeric characters.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/reservations", - // "request": { - // "$ref": "Reservation" - // }, - // "response": { - // "$ref": "Reservation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.createReservation": +} type ProjectsLocationsReservationsCreateReservationCall struct { s *Service @@ -1860,8 +1476,11 @@ type ProjectsLocationsReservationsCreateReservationCall struct { header_ http.Header } -// CreateReservation: Creates a new reservation resource. Multiple -// reservations are created if the ancestor reservations do not exist. +// CreateReservation: Creates a new reservation resource. Multiple reservations +// are created if the ancestor reservations do not exist. +// +// - parent: Project, location, and (optionally) reservation name. E.g., +// projects/myproject/locations/us-central1/reservations/parent. func (r *ProjectsLocationsReservationsService) CreateReservation(parent string, reservation *Reservation) *ProjectsLocationsReservationsCreateReservationCall { c := &ProjectsLocationsReservationsCreateReservationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1869,32 +1488,30 @@ func (r *ProjectsLocationsReservationsService) CreateReservation(parent string, return c } -// ReservationId sets the optional parameter "reservationId": The -// reservation ID relative to the parent, e.g., "dev". This field must -// only contain alphanumeric characters. +// ReservationId sets the optional parameter "reservationId": The reservation +// ID relative to the parent, e.g., "dev". This field must only contain +// alphanumeric characters. func (c *ProjectsLocationsReservationsCreateReservationCall) ReservationId(reservationId string) *ProjectsLocationsReservationsCreateReservationCall { c.urlParams_.Set("reservationId", reservationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsCreateReservationCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsCreateReservationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsCreateReservationCall) Context(ctx context.Context) *ProjectsLocationsReservationsCreateReservationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsCreateReservationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1903,18 +1520,12 @@ func (c *ProjectsLocationsReservationsCreateReservationCall) Header() http.Heade } func (c *ProjectsLocationsReservationsCreateReservationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.reservation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}") @@ -1927,16 +1538,14 @@ func (c *ProjectsLocationsReservationsCreateReservationCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.createReservation" call. -// Exactly one of *Reservation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Reservation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Reservation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsCreateReservationCall) Do(opts ...googleapi.CallOption) (*Reservation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1944,17 +1553,17 @@ func (c *ProjectsLocationsReservationsCreateReservationCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Reservation{ ServerResponse: googleapi.ServerResponse{ @@ -1967,44 +1576,7 @@ func (c *ProjectsLocationsReservationsCreateReservationCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Creates a new reservation resource. Multiple reservations are created if the ancestor reservations do not exist.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}", - // "httpMethod": "POST", - // "id": "bigqueryreservation.projects.locations.reservations.createReservation", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Project, location, and (optionally) reservation name. E.g., projects/myproject/locations/us-central1/reservations/parent", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/.*$", - // "required": true, - // "type": "string" - // }, - // "reservationId": { - // "description": "The reservation ID relative to the parent, e.g., \"dev\". This field must only contain alphanumeric characters.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}", - // "request": { - // "$ref": "Reservation" - // }, - // "response": { - // "$ref": "Reservation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.delete": +} type ProjectsLocationsReservationsDeleteCall struct { s *Service @@ -2014,44 +1586,44 @@ type ProjectsLocationsReservationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a reservation. Returns -// `google.rpc.Code.FAILED_PRECONDITION` in the following cases: 1. When -// reservation has child reservations. This check can be bypassed by -// setting DeleteReservationRequest.force flag to true. 2. When -// top-level reservation with slot pools is being deleted. +// Delete: Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` +// in the following cases: 1. When reservation has child reservations. This +// check can be bypassed by setting DeleteReservationRequest.force flag to +// true. 2. When top-level reservation with slot pools is being deleted. +// +// - name: Resource name of the reservation to retrieve. E.g., +// projects/myproject/locations/us-central1/reservations/my_reservation. func (r *ProjectsLocationsReservationsService) Delete(name string) *ProjectsLocationsReservationsDeleteCall { c := &ProjectsLocationsReservationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": If true, deletes all the -// child reservations of the given reservation. Otherwise, attempting to -// delete a reservation that has child reservations will fail with error -// code `google.rpc.Code.FAILED_PRECONDITION`. +// Force sets the optional parameter "force": If true, deletes all the child +// reservations of the given reservation. Otherwise, attempting to delete a +// reservation that has child reservations will fail with error code +// `google.rpc.Code.FAILED_PRECONDITION`. func (c *ProjectsLocationsReservationsDeleteCall) Force(force bool) *ProjectsLocationsReservationsDeleteCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReservationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2060,12 +1632,7 @@ func (c *ProjectsLocationsReservationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2079,16 +1646,14 @@ func (c *ProjectsLocationsReservationsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2096,17 +1661,17 @@ func (c *ProjectsLocationsReservationsDeleteCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2119,41 +1684,7 @@ func (c *ProjectsLocationsReservationsDeleteCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` in the following cases: 1. When reservation has child reservations. This check can be bypassed by setting DeleteReservationRequest.force flag to true. 2. When top-level reservation with slot pools is being deleted.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}", - // "httpMethod": "DELETE", - // "id": "bigqueryreservation.projects.locations.reservations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "force": { - // "description": "If true, deletes all the child reservations of the given reservation. Otherwise, attempting to delete a reservation that has child reservations will fail with error code `google.rpc.Code.FAILED_PRECONDITION`.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Resource name of the reservation to retrieve. E.g., projects/myproject/locations/us-central1/reservations/my_reservation", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.get": +} type ProjectsLocationsReservationsGetCall struct { s *Service @@ -2165,6 +1696,9 @@ type ProjectsLocationsReservationsGetCall struct { } // Get: Returns information about the reservation. +// +// - name: Resource name of the reservation to retrieve. E.g., +// projects/myproject/locations/us-central1/reservations/path/to/reserv. func (r *ProjectsLocationsReservationsService) Get(name string) *ProjectsLocationsReservationsGetCall { c := &ProjectsLocationsReservationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2172,33 +1706,29 @@ func (r *ProjectsLocationsReservationsService) Get(name string) *ProjectsLocatio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsReservationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsGetCall) Context(ctx context.Context) *ProjectsLocationsReservationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2207,12 +1737,7 @@ func (c *ProjectsLocationsReservationsGetCall) Header() http.Header { } func (c *ProjectsLocationsReservationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2229,16 +1754,14 @@ func (c *ProjectsLocationsReservationsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.get" call. -// Exactly one of *Reservation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Reservation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Reservation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsGetCall) Do(opts ...googleapi.CallOption) (*Reservation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2246,17 +1769,17 @@ func (c *ProjectsLocationsReservationsGetCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Reservation{ ServerResponse: googleapi.ServerResponse{ @@ -2269,36 +1792,7 @@ func (c *ProjectsLocationsReservationsGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Returns information about the reservation.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.reservations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the reservation to retrieve. E.g., projects/myproject/locations/us-central1/reservations/path/to/reserv", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Reservation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.list": +} type ProjectsLocationsReservationsListCall struct { s *Service @@ -2309,66 +1803,64 @@ type ProjectsLocationsReservationsListCall struct { header_ http.Header } -// List: Lists all the reservations for the project in the specified -// location. +// List: Lists all the reservations for the project in the specified location. +// +// - parent: The parent resource name containing project and location, e.g.: +// "projects/myproject/locations/us-central1". func (r *ProjectsLocationsReservationsService) List(parent string) *ProjectsLocationsReservationsListCall { c := &ProjectsLocationsReservationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Can be used to filter -// out reservations based on names, capacity, etc, e.g.: +// Filter sets the optional parameter "filter": Can be used to filter out +// reservations based on names, capacity, etc, e.g.: // filter="reservation.slot_capacity > 200" filter="reservation.name = -// \"*dev/*\"" Advanced filtering syntax can be -// [here](https://cloud.google.com/logging/docs/view/advanced-filters). +// \"*dev/*\"" Advanced filtering syntax can be here +// (https://cloud.google.com/logging/docs/view/advanced-filters). func (c *ProjectsLocationsReservationsListCall) Filter(filter string) *ProjectsLocationsReservationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsLocationsReservationsListCall) PageSize(pageSize int64) *ProjectsLocationsReservationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous List request, if any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. func (c *ProjectsLocationsReservationsListCall) PageToken(pageToken string) *ProjectsLocationsReservationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsReservationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsListCall) Context(ctx context.Context) *ProjectsLocationsReservationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2377,12 +1869,7 @@ func (c *ProjectsLocationsReservationsListCall) Header() http.Header { } func (c *ProjectsLocationsReservationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2399,16 +1886,15 @@ func (c *ProjectsLocationsReservationsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.list" call. -// Exactly one of *ListReservationsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *ListReservationsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsListCall) Do(opts ...googleapi.CallOption) (*ListReservationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2416,17 +1902,17 @@ func (c *ProjectsLocationsReservationsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListReservationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2439,49 +1925,6 @@ func (c *ProjectsLocationsReservationsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists all the reservations for the project in the specified location.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservations", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.reservations.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Can be used to filter out reservations based on names, capacity, etc, e.g.: filter=\"reservation.slot_capacity \u003e 200\" filter=\"reservation.name = \\\"*dev/*\\\"\" Advanced filtering syntax can be [here](https://cloud.google.com/logging/docs/view/advanced-filters).", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The parent resource name containing project and location, e.g.: \"projects/myproject/locations/us-central1\"", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/reservations", - // "response": { - // "$ref": "ListReservationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2489,7 +1932,7 @@ func (c *ProjectsLocationsReservationsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsReservationsListCall) Pages(ctx context.Context, f func(*ListReservationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2505,8 +1948,6 @@ func (c *ProjectsLocationsReservationsListCall) Pages(ctx context.Context, f fun } } -// method id "bigqueryreservation.projects.locations.reservations.patch": - type ProjectsLocationsReservationsPatchCall struct { s *Service name string @@ -2516,8 +1957,13 @@ type ProjectsLocationsReservationsPatchCall struct { header_ http.Header } -// Patch: Updates an existing reservation resource. Applicable only for -// child reservations. +// Patch: Updates an existing reservation resource. Applicable only for child +// reservations. +// +// - name: The resource name of the reservation, e.g., +// "projects/*/locations/*/reservations/dev/team/product". Reservation names +// (e.g., "dev/team/product") exceeding a depth of six will fail with +// `google.rpc.Code.INVALID_ARGUMENT`. func (r *ProjectsLocationsReservationsService) Patch(name string, reservation *Reservation) *ProjectsLocationsReservationsPatchCall { c := &ProjectsLocationsReservationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2525,31 +1971,29 @@ func (r *ProjectsLocationsReservationsService) Patch(name string, reservation *R return c } -// UpdateMask sets the optional parameter "updateMask": Standard field -// mask for the set of fields to be updated. +// UpdateMask sets the optional parameter "updateMask": Standard field mask for +// the set of fields to be updated. func (c *ProjectsLocationsReservationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsReservationsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsPatchCall) Context(ctx context.Context) *ProjectsLocationsReservationsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2558,18 +2002,12 @@ func (c *ProjectsLocationsReservationsPatchCall) Header() http.Header { } func (c *ProjectsLocationsReservationsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.reservation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -2582,16 +2020,14 @@ func (c *ProjectsLocationsReservationsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.patch" call. -// Exactly one of *Reservation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Reservation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Reservation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsPatchCall) Do(opts ...googleapi.CallOption) (*Reservation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2599,17 +2035,17 @@ func (c *ProjectsLocationsReservationsPatchCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Reservation{ ServerResponse: googleapi.ServerResponse{ @@ -2622,45 +2058,7 @@ func (c *ProjectsLocationsReservationsPatchCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Updates an existing reservation resource. Applicable only for child reservations.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/{reservationsId1}", - // "httpMethod": "PATCH", - // "id": "bigqueryreservation.projects.locations.reservations.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the reservation, e.g., \"projects/*/locations/*/reservations/dev/team/product\". Reservation names (e.g., \"dev/team/product\") exceeding a depth of six will fail with `google.rpc.Code.INVALID_ARGUMENT`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+/.*$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Standard field mask for the set of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "Reservation" - // }, - // "response": { - // "$ref": "Reservation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.slotPools.delete": +} type ProjectsLocationsReservationsSlotPoolsDeleteCall struct { s *Service @@ -2670,9 +2068,13 @@ type ProjectsLocationsReservationsSlotPoolsDeleteCall struct { header_ http.Header } -// Delete: Deletes a slot pool. Attempting to delete slot pool before -// its commitment_end_time will fail with the error code +// Delete: Deletes a slot pool. Attempting to delete slot pool before its +// commitment_end_time will fail with the error code // `google.rpc.Code.FAILED_PRECONDITION`. +// +// - name: Resource name of the slot pool to delete. E.g., +// projects/myproject/locations/us-central1/reservations/my_reservation/slotPo +// ols/123. func (r *ProjectsLocationsReservationsSlotPoolsService) Delete(name string) *ProjectsLocationsReservationsSlotPoolsDeleteCall { c := &ProjectsLocationsReservationsSlotPoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2680,23 +2082,21 @@ func (r *ProjectsLocationsReservationsSlotPoolsService) Delete(name string) *Pro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsSlotPoolsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReservationsSlotPoolsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2705,12 +2105,7 @@ func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Header() http.Header } func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2724,16 +2119,14 @@ func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.slotPools.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2741,17 +2134,17 @@ func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Do(opts ...googleapi. if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2764,36 +2157,7 @@ func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Deletes a slot pool. Attempting to delete slot pool before its commitment_end_time will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/slotPools/{slotPoolsId}", - // "httpMethod": "DELETE", - // "id": "bigqueryreservation.projects.locations.reservations.slotPools.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the slot pool to delete. E.g., projects/myproject/locations/us-central1/reservations/my_reservation/slotPools/123", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+/slotPools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.slotPools.get": +} type ProjectsLocationsReservationsSlotPoolsGetCall struct { s *Service @@ -2805,6 +2169,10 @@ type ProjectsLocationsReservationsSlotPoolsGetCall struct { } // Get: Returns information about the slot pool. +// +// - name: Resource name of the slot pool to retrieve. E.g., +// projects/myproject/locations/us-central1/reservations/my_reservation/slotPo +// ols/123. func (r *ProjectsLocationsReservationsSlotPoolsService) Get(name string) *ProjectsLocationsReservationsSlotPoolsGetCall { c := &ProjectsLocationsReservationsSlotPoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2812,33 +2180,29 @@ func (r *ProjectsLocationsReservationsSlotPoolsService) Get(name string) *Projec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsSlotPoolsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsReservationsSlotPoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsSlotPoolsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Context(ctx context.Context) *ProjectsLocationsReservationsSlotPoolsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2847,12 +2211,7 @@ func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Header() http.Header { } func (c *ProjectsLocationsReservationsSlotPoolsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2869,16 +2228,14 @@ func (c *ProjectsLocationsReservationsSlotPoolsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.slotPools.get" call. -// Exactly one of *SlotPool or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *SlotPool.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SlotPool.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Do(opts ...googleapi.CallOption) (*SlotPool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2886,17 +2243,17 @@ func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SlotPool{ ServerResponse: googleapi.ServerResponse{ @@ -2909,36 +2266,7 @@ func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Returns information about the slot pool.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/slotPools/{slotPoolsId}", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.reservations.slotPools.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the slot pool to retrieve. E.g., projects/myproject/locations/us-central1/reservations/my_reservation/slotPools/123", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+/slotPools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "SlotPool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.slotPools.list": +} type ProjectsLocationsReservationsSlotPoolsListCall struct { s *Service @@ -2950,54 +2278,54 @@ type ProjectsLocationsReservationsSlotPoolsListCall struct { } // List: Lists all the slot pools for the reservation. +// +// - parent: Resource name of the parent reservation. Only top-level +// reservations can have slot pools. E.g., +// projects/myproject/locations/us-central1/reservations/my_reservation. func (r *ProjectsLocationsReservationsSlotPoolsService) List(parent string) *ProjectsLocationsReservationsSlotPoolsListCall { c := &ProjectsLocationsReservationsSlotPoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsLocationsReservationsSlotPoolsListCall) PageSize(pageSize int64) *ProjectsLocationsReservationsSlotPoolsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous List request, if any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. func (c *ProjectsLocationsReservationsSlotPoolsListCall) PageToken(pageToken string) *ProjectsLocationsReservationsSlotPoolsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsSlotPoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsSlotPoolsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsReservationsSlotPoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsSlotPoolsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsSlotPoolsListCall) Context(ctx context.Context) *ProjectsLocationsReservationsSlotPoolsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsSlotPoolsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3006,12 +2334,7 @@ func (c *ProjectsLocationsReservationsSlotPoolsListCall) Header() http.Header { } func (c *ProjectsLocationsReservationsSlotPoolsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201209") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3028,16 +2351,15 @@ func (c *ProjectsLocationsReservationsSlotPoolsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.slotPools.list" call. -// Exactly one of *ListSlotPoolsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListSlotPoolsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListSlotPoolsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsReservationsSlotPoolsListCall) Do(opts ...googleapi.CallOption) (*ListSlotPoolsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3045,17 +2367,17 @@ func (c *ProjectsLocationsReservationsSlotPoolsListCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListSlotPoolsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3068,44 +2390,6 @@ func (c *ProjectsLocationsReservationsSlotPoolsListCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Lists all the slot pools for the reservation.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/slotPools", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.reservations.slotPools.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Resource name of the parent reservation. Only top-level reservations can have slot pools. E.g., projects/myproject/locations/us-central1/reservations/my_reservation", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/slotPools", - // "response": { - // "$ref": "ListSlotPoolsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3113,7 +2397,7 @@ func (c *ProjectsLocationsReservationsSlotPoolsListCall) Do(opts ...googleapi.Ca // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsReservationsSlotPoolsListCall) Pages(ctx context.Context, f func(*ListSlotPoolsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/bigqueryreservation/v1beta1/bigqueryreservation-gen.go b/bigqueryreservation/v1beta1/bigqueryreservation-gen.go index e06691ee07e..049d4d1f497 100644 --- a/bigqueryreservation/v1beta1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1beta1/bigqueryreservation-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/bigquery/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // bigqueryreservationService, err := bigqueryreservation.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // bigqueryreservationService, err := bigqueryreservation.NewService(ctx, option.WithScopes(bigqueryreservation.CloudPlatformScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // bigqueryreservationService, err := bigqueryreservation.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // bigqueryreservationService, err := bigqueryreservation.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package bigqueryreservation // import "google.golang.org/api/bigqueryreservation/v1beta1" import ( @@ -75,21 +89,23 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "bigqueryreservation:v1beta1" const apiName = "bigqueryreservation" const apiVersion = "v1beta1" const basePath = "https://bigqueryreservation.googleapis.com/" +const basePathTemplate = "https://bigqueryreservation.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://bigqueryreservation.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // View and manage your data in Google BigQuery and see the email - // address for your Google Account + // View and manage your data in Google BigQuery and see the email address for + // your Google Account BigqueryScope = "https://www.googleapis.com/auth/bigquery" - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -102,7 +118,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -203,32 +221,29 @@ type ProjectsLocationsReservationsAssignmentsService struct { s *Service } -// Assignment: An assignment allows a project to submit jobs of a -// certain type using slots from the specified reservation. +// Assignment: An assignment allows a project to submit jobs of a certain type +// using slots from the specified reservation. type Assignment struct { // Assignee: The resource which will use the reservation. E.g. // `projects/myproject`, `folders/123`, or `organizations/456`. Assignee string `json:"assignee,omitempty"` - // JobType: Which type of jobs will use the reservation. // // Possible values: - // "JOB_TYPE_UNSPECIFIED" - Invalid type. Requests with this value - // will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. - // "PIPELINE" - Pipeline (load/export) jobs from the project will use - // the reservation. + // "JOB_TYPE_UNSPECIFIED" - Invalid type. Requests with this value will be + // rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. + // "PIPELINE" - Pipeline (load/export) jobs from the project will use the + // reservation. // "QUERY" - Query jobs from the project will use the reservation. - // "ML_EXTERNAL" - BigQuery ML jobs that use services external to - // BigQuery for model training. These jobs will not utilize idle slots - // from other reservations. + // "ML_EXTERNAL" - BigQuery ML jobs that use services external to BigQuery + // for model training. These jobs will not utilize idle slots from other + // reservations. JobType string `json:"jobType,omitempty"` - // Name: Output only. Name of the resource. E.g.: - // `projects/myproject/locations/US/reservations/team1-prod/assignments/1 - // 23`. The assignment_id must only contain lower case alphanumeric - // characters or dashes and the max length is 64 characters. + // `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. + // The assignment_id must only contain lower case alphanumeric characters or + // dashes and the max length is 64 characters. Name string `json:"name,omitempty"` - // State: Output only. State of the assignment. // // Possible values: @@ -238,209 +253,167 @@ type Assignment struct { // "ACTIVE" - Assignment is ready. State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Assignee") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Assignee") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Assignee") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Assignment) MarshalJSON() ([]byte, error) { +func (s Assignment) MarshalJSON() ([]byte, error) { type NoMethod Assignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BiReservation: Represents a BI Reservation. type BiReservation struct { - // Name: The resource name of the singleton BI reservation. Reservation - // names have the form - // `projects/{project_id}/locations/{location_id}/biReservation`. + // Name: The resource name of the singleton BI reservation. Reservation names + // have the form `projects/{project_id}/locations/{location_id}/biReservation`. Name string `json:"name,omitempty"` - // PreferredTables: Preferred tables to use BI capacity for. PreferredTables []*TableReference `json:"preferredTables,omitempty"` - // Size: Size of a reservation, in bytes. Size int64 `json:"size,omitempty,string"` - // UpdateTime: Output only. The last update timestamp of a reservation. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BiReservation) MarshalJSON() ([]byte, error) { +func (s BiReservation) MarshalJSON() ([]byte, error) { type NoMethod BiReservation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CapacityCommitment: Capacity commitment is a way to purchase compute -// capacity for BigQuery jobs (in the form of slots) with some committed -// period of usage. Annual commitments renew by default. Commitments can -// be removed after their commitment end time passes. In order to remove -// annual commitment, its plan needs to be changed to monthly or flex -// first. A capacity commitment resource exists as a child resource of -// the admin project. +// capacity for BigQuery jobs (in the form of slots) with some committed period +// of usage. Annual commitments renew by default. Commitments can be removed +// after their commitment end time passes. In order to remove annual +// commitment, its plan needs to be changed to monthly or flex first. A +// capacity commitment resource exists as a child resource of the admin +// project. type CapacityCommitment struct { - // CommitmentEndTime: Output only. The end of the current commitment - // period. It is applicable only for ACTIVE capacity commitments. + // CommitmentEndTime: Output only. The end of the current commitment period. It + // is applicable only for ACTIVE capacity commitments. CommitmentEndTime string `json:"commitmentEndTime,omitempty"` - // CommitmentStartTime: Output only. The start of the current commitment // period. It is applicable only for ACTIVE capacity commitments. CommitmentStartTime string `json:"commitmentStartTime,omitempty"` - - // FailureStatus: Output only. For FAILED commitment plan, provides the - // reason of failure. + // FailureStatus: Output only. For FAILED commitment plan, provides the reason + // of failure. FailureStatus *Status `json:"failureStatus,omitempty"` - - // MultiRegionAuxiliary: Applicable only for commitments located within - // one of the BigQuery multi-regions (US or EU). If set to true, this - // commitment is placed in the organization's secondary region which is - // designated for disaster recovery purposes. If false, this commitment - // is placed in the organization's default region. + // MultiRegionAuxiliary: Applicable only for commitments located within one of + // the BigQuery multi-regions (US or EU). If set to true, this commitment is + // placed in the organization's secondary region which is designated for + // disaster recovery purposes. If false, this commitment is placed in the + // organization's default region. MultiRegionAuxiliary bool `json:"multiRegionAuxiliary,omitempty"` - - // Name: Output only. The resource name of the capacity commitment, - // e.g., `projects/myproject/locations/US/capacityCommitments/123` The - // commitment_id must only contain lower case alphanumeric characters or - // dashes. It must start with a letter and must not end with a dash. Its - // maximum length is 64 characters. + // Name: Output only. The resource name of the capacity commitment, e.g., + // `projects/myproject/locations/US/capacityCommitments/123` The commitment_id + // must only contain lower case alphanumeric characters or dashes. It must + // start with a letter and must not end with a dash. Its maximum length is 64 + // characters. Name string `json:"name,omitempty"` - // Plan: Capacity commitment commitment plan. // // Possible values: - // "COMMITMENT_PLAN_UNSPECIFIED" - Invalid plan value. Requests with - // this value will be rejected with error code - // `google.rpc.Code.INVALID_ARGUMENT`. - // "FLEX" - Flex commitments have committed period of 1 minute after - // becoming ACTIVE. After that, they are not in a committed period - // anymore and can be removed any time. - // "TRIAL" - Trial commitments have a committed period of 182 days - // after becoming ACTIVE. After that, they are converted to a new - // commitment based on the `renewal_plan`. Default `renewal_plan` for - // Trial commitment is Flex so that it can be deleted right after - // committed period ends. - // "MONTHLY" - Monthly commitments have a committed period of 30 days - // after becoming ACTIVE. After that, they are not in a committed period - // anymore and can be removed any time. - // "ANNUAL" - Annual commitments have a committed period of 365 days - // after becoming ACTIVE. After that they are converted to a new - // commitment based on the renewal_plan. + // "COMMITMENT_PLAN_UNSPECIFIED" - Invalid plan value. Requests with this + // value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. + // "FLEX" - Flex commitments have committed period of 1 minute after becoming + // ACTIVE. After that, they are not in a committed period anymore and can be + // removed any time. + // "TRIAL" - Trial commitments have a committed period of 182 days after + // becoming ACTIVE. After that, they are converted to a new commitment based on + // the `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so + // that it can be deleted right after committed period ends. + // "MONTHLY" - Monthly commitments have a committed period of 30 days after + // becoming ACTIVE. After that, they are not in a committed period anymore and + // can be removed any time. + // "ANNUAL" - Annual commitments have a committed period of 365 days after + // becoming ACTIVE. After that they are converted to a new commitment based on + // the renewal_plan. Plan string `json:"plan,omitempty"` - // RenewalPlan: The plan this capacity commitment is converted to after - // commitment_end_time passes. Once the plan is changed, committed - // period is extended according to commitment plan. Only applicable for - // ANNUAL commitments. + // commitment_end_time passes. Once the plan is changed, committed period is + // extended according to commitment plan. Only applicable for ANNUAL + // commitments. // // Possible values: - // "COMMITMENT_PLAN_UNSPECIFIED" - Invalid plan value. Requests with - // this value will be rejected with error code - // `google.rpc.Code.INVALID_ARGUMENT`. - // "FLEX" - Flex commitments have committed period of 1 minute after - // becoming ACTIVE. After that, they are not in a committed period - // anymore and can be removed any time. - // "TRIAL" - Trial commitments have a committed period of 182 days - // after becoming ACTIVE. After that, they are converted to a new - // commitment based on the `renewal_plan`. Default `renewal_plan` for - // Trial commitment is Flex so that it can be deleted right after - // committed period ends. - // "MONTHLY" - Monthly commitments have a committed period of 30 days - // after becoming ACTIVE. After that, they are not in a committed period - // anymore and can be removed any time. - // "ANNUAL" - Annual commitments have a committed period of 365 days - // after becoming ACTIVE. After that they are converted to a new - // commitment based on the renewal_plan. + // "COMMITMENT_PLAN_UNSPECIFIED" - Invalid plan value. Requests with this + // value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. + // "FLEX" - Flex commitments have committed period of 1 minute after becoming + // ACTIVE. After that, they are not in a committed period anymore and can be + // removed any time. + // "TRIAL" - Trial commitments have a committed period of 182 days after + // becoming ACTIVE. After that, they are converted to a new commitment based on + // the `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so + // that it can be deleted right after committed period ends. + // "MONTHLY" - Monthly commitments have a committed period of 30 days after + // becoming ACTIVE. After that, they are not in a committed period anymore and + // can be removed any time. + // "ANNUAL" - Annual commitments have a committed period of 365 days after + // becoming ACTIVE. After that they are converted to a new commitment based on + // the renewal_plan. RenewalPlan string `json:"renewalPlan,omitempty"` - // SlotCount: Number of slots in this commitment. SlotCount int64 `json:"slotCount,omitempty,string"` - // State: Output only. State of the commitment. // // Possible values: // "STATE_UNSPECIFIED" - Invalid state value. - // "PENDING" - Capacity commitment is pending provisioning. Pending - // capacity commitment does not contribute to the project's - // slot_capacity. - // "ACTIVE" - Once slots are provisioned, capacity commitment becomes - // active. slot_count is added to the project's slot_capacity. - // "FAILED" - Capacity commitment is failed to be activated by the - // backend. + // "PENDING" - Capacity commitment is pending provisioning. Pending capacity + // commitment does not contribute to the project's slot_capacity. + // "ACTIVE" - Once slots are provisioned, capacity commitment becomes active. + // slot_count is added to the project's slot_capacity. + // "FAILED" - Capacity commitment is failed to be activated by the backend. State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CommitmentEndTime") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CommitmentEndTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommitmentEndTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CommitmentEndTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CapacityCommitment) MarshalJSON() ([]byte, error) { +func (s CapacityCommitment) MarshalJSON() ([]byte, error) { type NoMethod CapacityCommitment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } @@ -449,261 +422,201 @@ type Empty struct { type ListAssignmentsResponse struct { // Assignments: List of assignments visible to the user. Assignments []*Assignment `json:"assignments,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Assignments") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Assignments") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Assignments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAssignmentsResponse) MarshalJSON() ([]byte, error) { +func (s ListAssignmentsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAssignmentsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListCapacityCommitmentsResponse: The response for // ReservationService.ListCapacityCommitments. type ListCapacityCommitmentsResponse struct { - // CapacityCommitments: List of capacity commitments visible to the - // user. + // CapacityCommitments: List of capacity commitments visible to the user. CapacityCommitments []*CapacityCommitment `json:"capacityCommitments,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CapacityCommitments") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CapacityCommitments") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapacityCommitments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CapacityCommitments") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCapacityCommitmentsResponse) MarshalJSON() ([]byte, error) { +func (s ListCapacityCommitmentsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCapacityCommitmentsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListReservationsResponse: The response for // ReservationService.ListReservations. type ListReservationsResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // Reservations: List of reservations visible to the user. Reservations []*Reservation `json:"reservations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListReservationsResponse) MarshalJSON() ([]byte, error) { +func (s ListReservationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListReservationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MergeCapacityCommitmentsRequest: The request for // ReservationService.MergeCapacityCommitments. type MergeCapacityCommitmentsRequest struct { - // CapacityCommitmentIds: Ids of capacity commitments to merge. These - // capacity commitments must exist under admin project and location - // specified in the parent. ID is the last portion of capacity - // commitment name e.g., 'abc' for + // CapacityCommitmentIds: Ids of capacity commitments to merge. These capacity + // commitments must exist under admin project and location specified in the + // parent. ID is the last portion of capacity commitment name e.g., 'abc' for // projects/myproject/locations/US/capacityCommitments/abc CapacityCommitmentIds []string `json:"capacityCommitmentIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CapacityCommitmentIds") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CapacityCommitmentIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CapacityCommitmentIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MergeCapacityCommitmentsRequest) MarshalJSON() ([]byte, error) { +func (s MergeCapacityCommitmentsRequest) MarshalJSON() ([]byte, error) { type NoMethod MergeCapacityCommitmentsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MoveAssignmentRequest: The request for -// ReservationService.MoveAssignment. **Note**: -// "bigquery.reservationAssignments.create" permission is required on -// the destination_id. **Note**: -// "bigquery.reservationAssignments.create" and -// "bigquery.reservationAssignments.delete" permission are required on -// the related assignee. +// MoveAssignmentRequest: The request for ReservationService.MoveAssignment. +// **Note**: "bigquery.reservationAssignments.create" permission is required on +// the destination_id. **Note**: "bigquery.reservationAssignments.create" and +// "bigquery.reservationAssignments.delete" permission are required on the +// related assignee. type MoveAssignmentRequest struct { // DestinationId: The new reservation ID, e.g.: // `projects/myotherproject/locations/US/reservations/team2-prod` DestinationId string `json:"destinationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DestinationId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DestinationId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DestinationId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MoveAssignmentRequest) MarshalJSON() ([]byte, error) { +func (s MoveAssignmentRequest) MarshalJSON() ([]byte, error) { type NoMethod MoveAssignmentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Reservation: A reservation is a mechanism used to guarantee slots to -// users. +// Reservation: A reservation is a mechanism used to guarantee slots to users. type Reservation struct { - // Concurrency: Job concurrency target which sets a soft upper bound on - // the number of jobs that can run concurrently in this reservation. - // This is a soft target due to asynchronous nature of the system and - // various optimizations for small queries. Default value is 0 which - // means that concurrency target will be automatically computed by the - // system. NOTE: this field is exposed as `target_job_concurrency` in - // the Information Schema, DDL and BQ CLI. + // Concurrency: Job concurrency target which sets a soft upper bound on the + // number of jobs that can run concurrently in this reservation. This is a soft + // target due to asynchronous nature of the system and various optimizations + // for small queries. Default value is 0 which means that concurrency target + // will be automatically computed by the system. NOTE: this field is exposed as + // `target_job_concurrency` in the Information Schema, DDL and BQ CLI. Concurrency int64 `json:"concurrency,omitempty,string"` - // CreationTime: Output only. Creation time of the reservation. CreationTime string `json:"creationTime,omitempty"` - - // IgnoreIdleSlots: If false, any query or pipeline job using this - // reservation will use idle slots from other reservations within the - // same admin project. If true, a query or pipeline job using this - // reservation will execute with the slot capacity specified in the - // slot_capacity field at most. + // IgnoreIdleSlots: If false, any query or pipeline job using this reservation + // will use idle slots from other reservations within the same admin project. + // If true, a query or pipeline job using this reservation will execute with + // the slot capacity specified in the slot_capacity field at most. IgnoreIdleSlots bool `json:"ignoreIdleSlots,omitempty"` - - // MultiRegionAuxiliary: Applicable only for reservations located within - // one of the BigQuery multi-regions (US or EU). If set to true, this - // reservation is placed in the organization's secondary region which is - // designated for disaster recovery purposes. If false, this reservation - // is placed in the organization's default region. + // MultiRegionAuxiliary: Applicable only for reservations located within one of + // the BigQuery multi-regions (US or EU). If set to true, this reservation is + // placed in the organization's secondary region which is designated for + // disaster recovery purposes. If false, this reservation is placed in the + // organization's default region. MultiRegionAuxiliary bool `json:"multiRegionAuxiliary,omitempty"` - // Name: The resource name of the reservation, e.g., - // `projects/*/locations/*/reservations/team1-prod`. The reservation_id - // must only contain lower case alphanumeric characters or dashes. It - // must start with a letter and must not end with a dash. Its maximum - // length is 64 characters. + // `projects/*/locations/*/reservations/team1-prod`. The reservation_id must + // only contain lower case alphanumeric characters or dashes. It must start + // with a letter and must not end with a dash. Its maximum length is 64 + // characters. Name string `json:"name,omitempty"` - - // SlotCapacity: Minimum slots available to this reservation. A slot is - // a unit of computational power in BigQuery, and serves as the unit of - // parallelism. Queries using this reservation might use more slots - // during runtime if ignore_idle_slots is set to false. If the new - // reservation's slot capacity exceeds the project's slot capacity or if - // total slot capacity of the new reservation and its siblings exceeds - // the project's slot capacity, the request will fail with - // `google.rpc.Code.RESOURCE_EXHAUSTED`. NOTE: for reservations in US or - // EU multi-regions, slot capacity constraints are checked separately - // for default and auxiliary regions. See multi_region_auxiliary flag - // for more details. + // SlotCapacity: Minimum slots available to this reservation. A slot is a unit + // of computational power in BigQuery, and serves as the unit of parallelism. + // Queries using this reservation might use more slots during runtime if + // ignore_idle_slots is set to false. If the new reservation's slot capacity + // exceeds the project's slot capacity or if total slot capacity of the new + // reservation and its siblings exceeds the project's slot capacity, the + // request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`. NOTE: for + // reservations in US or EU multi-regions, slot capacity constraints are + // checked separately for default and auxiliary regions. See + // multi_region_auxiliary flag for more details. SlotCapacity int64 `json:"slotCapacity,omitempty,string"` - // UpdateTime: Output only. Last update time of the reservation. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Concurrency") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Concurrency") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Concurrency") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Reservation) MarshalJSON() ([]byte, error) { +func (s Reservation) MarshalJSON() ([]byte, error) { type NoMethod Reservation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SearchAssignmentsResponse: The response for @@ -711,66 +624,51 @@ func (s *Reservation) MarshalJSON() ([]byte, error) { type SearchAssignmentsResponse struct { // Assignments: List of assignments visible to the user. Assignments []*Assignment `json:"assignments,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results in the list. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Assignments") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Assignments") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Assignments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SearchAssignmentsResponse) MarshalJSON() ([]byte, error) { +func (s SearchAssignmentsResponse) MarshalJSON() ([]byte, error) { type NoMethod SearchAssignmentsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SplitCapacityCommitmentRequest: The request for // ReservationService.SplitCapacityCommitment. type SplitCapacityCommitmentRequest struct { - // SlotCount: Number of slots in the capacity commitment after the - // split. + // SlotCount: Number of slots in the capacity commitment after the split. SlotCount int64 `json:"slotCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "SlotCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SlotCount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SlotCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SplitCapacityCommitmentRequest) MarshalJSON() ([]byte, error) { +func (s SplitCapacityCommitmentRequest) MarshalJSON() ([]byte, error) { type NoMethod SplitCapacityCommitmentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SplitCapacityCommitmentResponse: The response for @@ -778,118 +676,90 @@ func (s *SplitCapacityCommitmentRequest) MarshalJSON() ([]byte, error) { type SplitCapacityCommitmentResponse struct { // First: First capacity commitment, result of a split. First *CapacityCommitment `json:"first,omitempty"` - // Second: Second capacity commitment, result of a split. Second *CapacityCommitment `json:"second,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "First") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "First") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "First") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SplitCapacityCommitmentResponse) MarshalJSON() ([]byte, error) { +func (s SplitCapacityCommitmentResponse) MarshalJSON() ([]byte, error) { type NoMethod SplitCapacityCommitmentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TableReference: Fully qualified reference to BigQuery table. -// Internally stored as google.cloud.bi.v1.BqTableReference. +// TableReference: Fully qualified reference to BigQuery table. Internally +// stored as google.cloud.bi.v1.BqTableReference. type TableReference struct { // DatasetId: The ID of the dataset in the above project. DatasetId string `json:"datasetId,omitempty"` - // ProjectId: The assigned project ID of the project. ProjectId string `json:"projectId,omitempty"` - // TableId: The ID of the table in the above dataset. TableId string `json:"tableId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DatasetId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DatasetId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DatasetId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TableReference) MarshalJSON() ([]byte, error) { +func (s TableReference) MarshalJSON() ([]byte, error) { type NoMethod TableReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "bigqueryreservation.projects.locations.getBiReservation": - type ProjectsLocationsGetBiReservationCall struct { s *Service name string @@ -910,33 +780,29 @@ func (r *ProjectsLocationsService) GetBiReservation(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGetBiReservationCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetBiReservationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGetBiReservationCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetBiReservationCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGetBiReservationCall) Context(ctx context.Context) *ProjectsLocationsGetBiReservationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGetBiReservationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -945,12 +811,7 @@ func (c *ProjectsLocationsGetBiReservationCall) Header() http.Header { } func (c *ProjectsLocationsGetBiReservationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -967,16 +828,14 @@ func (c *ProjectsLocationsGetBiReservationCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.getBiReservation" call. -// Exactly one of *BiReservation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *BiReservation.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BiReservation.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsGetBiReservationCall) Do(opts ...googleapi.CallOption) (*BiReservation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -984,17 +843,17 @@ func (c *ProjectsLocationsGetBiReservationCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BiReservation{ ServerResponse: googleapi.ServerResponse{ @@ -1007,36 +866,7 @@ func (c *ProjectsLocationsGetBiReservationCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Retrieves a BI reservation.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/biReservation", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.getBiReservation", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Name of the requested reservation, for example: `projects/{project_id}/locations/{location_id}/biReservation`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/biReservation$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "BiReservation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.searchAssignments": +} type ProjectsLocationsSearchAssignmentsCall struct { s *Service @@ -1047,80 +877,74 @@ type ProjectsLocationsSearchAssignmentsCall struct { header_ http.Header } -// SearchAssignments: Looks up assignments for a specified resource for -// a particular region. If the request is about a project: 1. -// Assignments created on the project will be returned if they exist. 2. -// Otherwise assignments created on the closest ancestor will be -// returned. 3. Assignments for different JobTypes will all be returned. -// The same logic applies if the request is about a folder. If the -// request is about an organization, then assignments created on the -// organization will be returned (organization doesn't have ancestors). -// Comparing to ListAssignments, there are some behavior differences: 1. -// permission on the assignee will be verified in this API. 2. Hierarchy -// lookup (project->folder->organization) happens in this API. 3. Parent -// here is `projects/*/locations/*`, instead of -// `projects/*/locations/*reservations/*`. **Note** "-" cannot be used -// for projects nor locations. +// SearchAssignments: Looks up assignments for a specified resource for a +// particular region. If the request is about a project: 1. Assignments created +// on the project will be returned if they exist. 2. Otherwise assignments +// created on the closest ancestor will be returned. 3. Assignments for +// different JobTypes will all be returned. The same logic applies if the +// request is about a folder. If the request is about an organization, then +// assignments created on the organization will be returned (organization +// doesn't have ancestors). Comparing to ListAssignments, there are some +// behavior differences: 1. permission on the assignee will be verified in this +// API. 2. Hierarchy lookup (project->folder->organization) happens in this +// API. 3. Parent here is `projects/*/locations/*`, instead of +// `projects/*/locations/*reservations/*`. **Note** "-" cannot be used for +// projects nor locations. // -// - parent: The resource name of the admin project(containing project -// and location), e.g.: `projects/myproject/locations/US`. +// - parent: The resource name of the admin project(containing project and +// location), e.g.: `projects/myproject/locations/US`. func (r *ProjectsLocationsService) SearchAssignments(parent string) *ProjectsLocationsSearchAssignmentsCall { c := &ProjectsLocationsSearchAssignmentsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsLocationsSearchAssignmentsCall) PageSize(pageSize int64) *ProjectsLocationsSearchAssignmentsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous List request, if any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. func (c *ProjectsLocationsSearchAssignmentsCall) PageToken(pageToken string) *ProjectsLocationsSearchAssignmentsCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Query sets the optional parameter "query": Please specify resource -// name as assignee in the query. Examples: * -// `assignee=projects/myproject` * `assignee=folders/123` * -// `assignee=organizations/456` +// Query sets the optional parameter "query": Please specify resource name as +// assignee in the query. Examples: * `assignee=projects/myproject` * +// `assignee=folders/123` * `assignee=organizations/456` func (c *ProjectsLocationsSearchAssignmentsCall) Query(query string) *ProjectsLocationsSearchAssignmentsCall { c.urlParams_.Set("query", query) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSearchAssignmentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsSearchAssignmentsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsSearchAssignmentsCall) IfNoneMatch(entityTag string) *ProjectsLocationsSearchAssignmentsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSearchAssignmentsCall) Context(ctx context.Context) *ProjectsLocationsSearchAssignmentsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSearchAssignmentsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1129,12 +953,7 @@ func (c *ProjectsLocationsSearchAssignmentsCall) Header() http.Header { } func (c *ProjectsLocationsSearchAssignmentsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1151,16 +970,15 @@ func (c *ProjectsLocationsSearchAssignmentsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.searchAssignments" call. -// Exactly one of *SearchAssignmentsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *SearchAssignmentsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *SearchAssignmentsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSearchAssignmentsCall) Do(opts ...googleapi.CallOption) (*SearchAssignmentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1168,17 +986,17 @@ func (c *ProjectsLocationsSearchAssignmentsCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SearchAssignmentsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1191,49 +1009,6 @@ func (c *ProjectsLocationsSearchAssignmentsCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Looks up assignments for a specified resource for a particular region. If the request is about a project: 1. Assignments created on the project will be returned if they exist. 2. Otherwise assignments created on the closest ancestor will be returned. 3. Assignments for different JobTypes will all be returned. The same logic applies if the request is about a folder. If the request is about an organization, then assignments created on the organization will be returned (organization doesn't have ancestors). Comparing to ListAssignments, there are some behavior differences: 1. permission on the assignee will be verified in this API. 2. Hierarchy lookup (project-\u003efolder-\u003eorganization) happens in this API. 3. Parent here is `projects/*/locations/*`, instead of `projects/*/locations/*reservations/*`. **Note** \"-\" cannot be used for projects nor locations.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}:searchAssignments", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.searchAssignments", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the admin project(containing project and location), e.g.: `projects/myproject/locations/US`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "query": { - // "description": "Please specify resource name as assignee in the query. Examples: * `assignee=projects/myproject` * `assignee=folders/123` * `assignee=organizations/456`", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}:searchAssignments", - // "response": { - // "$ref": "SearchAssignmentsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1241,7 +1016,7 @@ func (c *ProjectsLocationsSearchAssignmentsCall) Do(opts ...googleapi.CallOption // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsSearchAssignmentsCall) Pages(ctx context.Context, f func(*SearchAssignmentsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1257,8 +1032,6 @@ func (c *ProjectsLocationsSearchAssignmentsCall) Pages(ctx context.Context, f fu } } -// method id "bigqueryreservation.projects.locations.updateBiReservation": - type ProjectsLocationsUpdateBiReservationCall struct { s *Service name string @@ -1268,14 +1041,14 @@ type ProjectsLocationsUpdateBiReservationCall struct { header_ http.Header } -// UpdateBiReservation: Updates a BI reservation. Only fields specified -// in the `field_mask` are updated. A singleton BI reservation always -// exists with default size 0. In order to reserve BI capacity it needs -// to be updated to an amount greater than 0. In order to release BI -// capacity reservation size must be set to 0. +// UpdateBiReservation: Updates a BI reservation. Only fields specified in the +// `field_mask` are updated. A singleton BI reservation always exists with +// default size 0. In order to reserve BI capacity it needs to be updated to an +// amount greater than 0. In order to release BI capacity reservation size must +// be set to 0. // -// - name: The resource name of the singleton BI reservation. -// Reservation names have the form +// - name: The resource name of the singleton BI reservation. Reservation names +// have the form // `projects/{project_id}/locations/{location_id}/biReservation`. func (r *ProjectsLocationsService) UpdateBiReservation(name string, bireservation *BiReservation) *ProjectsLocationsUpdateBiReservationCall { c := &ProjectsLocationsUpdateBiReservationCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1284,31 +1057,29 @@ func (r *ProjectsLocationsService) UpdateBiReservation(name string, bireservatio return c } -// UpdateMask sets the optional parameter "updateMask": A list of fields -// to be updated in this request. +// UpdateMask sets the optional parameter "updateMask": A list of fields to be +// updated in this request. func (c *ProjectsLocationsUpdateBiReservationCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateBiReservationCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsUpdateBiReservationCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateBiReservationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsUpdateBiReservationCall) Context(ctx context.Context) *ProjectsLocationsUpdateBiReservationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsUpdateBiReservationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1317,18 +1088,12 @@ func (c *ProjectsLocationsUpdateBiReservationCall) Header() http.Header { } func (c *ProjectsLocationsUpdateBiReservationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bireservation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -1341,16 +1106,14 @@ func (c *ProjectsLocationsUpdateBiReservationCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.updateBiReservation" call. -// Exactly one of *BiReservation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *BiReservation.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BiReservation.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsUpdateBiReservationCall) Do(opts ...googleapi.CallOption) (*BiReservation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1358,17 +1121,17 @@ func (c *ProjectsLocationsUpdateBiReservationCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BiReservation{ ServerResponse: googleapi.ServerResponse{ @@ -1381,45 +1144,7 @@ func (c *ProjectsLocationsUpdateBiReservationCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Updates a BI reservation. Only fields specified in the `field_mask` are updated. A singleton BI reservation always exists with default size 0. In order to reserve BI capacity it needs to be updated to an amount greater than 0. In order to release BI capacity reservation size must be set to 0.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/biReservation", - // "httpMethod": "PATCH", - // "id": "bigqueryreservation.projects.locations.updateBiReservation", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the singleton BI reservation. Reservation names have the form `projects/{project_id}/locations/{location_id}/biReservation`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/biReservation$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "A list of fields to be updated in this request.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "BiReservation" - // }, - // "response": { - // "$ref": "BiReservation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.capacityCommitments.create": +} type ProjectsLocationsCapacityCommitmentsCreateCall struct { s *Service @@ -1441,12 +1166,11 @@ func (r *ProjectsLocationsCapacityCommitmentsService) Create(parent string, capa return c } -// CapacityCommitmentId sets the optional parameter -// "capacityCommitmentId": The optional capacity commitment ID. Capacity -// commitment name will be generated automatically if this field is -// empty. This field must only contain lower case alphanumeric -// characters or dashes. The first and last character cannot be a dash. -// Max length is 64 characters. NOTE: this ID won't be kept if the +// CapacityCommitmentId sets the optional parameter "capacityCommitmentId": The +// optional capacity commitment ID. Capacity commitment name will be generated +// automatically if this field is empty. This field must only contain lower +// case alphanumeric characters or dashes. The first and last character cannot +// be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the // capacity commitment is split or merged. func (c *ProjectsLocationsCapacityCommitmentsCreateCall) CapacityCommitmentId(capacityCommitmentId string) *ProjectsLocationsCapacityCommitmentsCreateCall { c.urlParams_.Set("capacityCommitmentId", capacityCommitmentId) @@ -1454,31 +1178,29 @@ func (c *ProjectsLocationsCapacityCommitmentsCreateCall) CapacityCommitmentId(ca } // EnforceSingleAdminProjectPerOrg sets the optional parameter -// "enforceSingleAdminProjectPerOrg": If true, fail the request if -// another project in the organization has a capacity commitment. +// "enforceSingleAdminProjectPerOrg": If true, fail the request if another +// project in the organization has a capacity commitment. func (c *ProjectsLocationsCapacityCommitmentsCreateCall) EnforceSingleAdminProjectPerOrg(enforceSingleAdminProjectPerOrg bool) *ProjectsLocationsCapacityCommitmentsCreateCall { c.urlParams_.Set("enforceSingleAdminProjectPerOrg", fmt.Sprint(enforceSingleAdminProjectPerOrg)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCapacityCommitmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCapacityCommitmentsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCapacityCommitmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsCapacityCommitmentsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCapacityCommitmentsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1487,18 +1209,12 @@ func (c *ProjectsLocationsCapacityCommitmentsCreateCall) Header() http.Header { } func (c *ProjectsLocationsCapacityCommitmentsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.capacitycommitment) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/capacityCommitments") @@ -1511,16 +1227,15 @@ func (c *ProjectsLocationsCapacityCommitmentsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.create" call. -// Exactly one of *CapacityCommitment or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CapacityCommitment.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CapacityCommitment.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsCapacityCommitmentsCreateCall) Do(opts ...googleapi.CallOption) (*CapacityCommitment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1528,17 +1243,17 @@ func (c *ProjectsLocationsCapacityCommitmentsCreateCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CapacityCommitment{ ServerResponse: googleapi.ServerResponse{ @@ -1551,49 +1266,7 @@ func (c *ProjectsLocationsCapacityCommitmentsCreateCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Creates a new capacity commitment resource.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/capacityCommitments", - // "httpMethod": "POST", - // "id": "bigqueryreservation.projects.locations.capacityCommitments.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "capacityCommitmentId": { - // "description": "The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.", - // "location": "query", - // "type": "string" - // }, - // "enforceSingleAdminProjectPerOrg": { - // "description": "If true, fail the request if another project in the organization has a capacity commitment.", - // "location": "query", - // "type": "boolean" - // }, - // "parent": { - // "description": "Required. Resource name of the parent reservation. E.g., `projects/myproject/locations/US`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/capacityCommitments", - // "request": { - // "$ref": "CapacityCommitment" - // }, - // "response": { - // "$ref": "CapacityCommitment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.capacityCommitments.delete": +} type ProjectsLocationsCapacityCommitmentsDeleteCall struct { s *Service @@ -1604,8 +1277,8 @@ type ProjectsLocationsCapacityCommitmentsDeleteCall struct { } // Delete: Deletes a capacity commitment. Attempting to delete capacity -// commitment before its commitment_end_time will fail with the error -// code `google.rpc.Code.FAILED_PRECONDITION`. +// commitment before its commitment_end_time will fail with the error code +// `google.rpc.Code.FAILED_PRECONDITION`. // // - name: Resource name of the capacity commitment to delete. E.g., // `projects/myproject/locations/US/capacityCommitments/123`. @@ -1615,33 +1288,30 @@ func (r *ProjectsLocationsCapacityCommitmentsService) Delete(name string) *Proje return c } -// Force sets the optional parameter "force": Can be used to force -// delete commitments even if assignments exist. Deleting commitments -// with assignments may cause queries to fail if they no longer have -// access to slots. +// Force sets the optional parameter "force": Can be used to force delete +// commitments even if assignments exist. Deleting commitments with assignments +// may cause queries to fail if they no longer have access to slots. func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) Force(force bool) *ProjectsLocationsCapacityCommitmentsDeleteCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCapacityCommitmentsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCapacityCommitmentsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1650,12 +1320,7 @@ func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1669,16 +1334,14 @@ func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1686,17 +1349,17 @@ func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1709,41 +1372,7 @@ func (c *ProjectsLocationsCapacityCommitmentsDeleteCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Deletes a capacity commitment. Attempting to delete capacity commitment before its commitment_end_time will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/capacityCommitments/{capacityCommitmentsId}", - // "httpMethod": "DELETE", - // "id": "bigqueryreservation.projects.locations.capacityCommitments.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "force": { - // "description": "Can be used to force delete commitments even if assignments exist. Deleting commitments with assignments may cause queries to fail if they no longer have access to slots.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Required. Resource name of the capacity commitment to delete. E.g., `projects/myproject/locations/US/capacityCommitments/123`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/capacityCommitments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.capacityCommitments.get": +} type ProjectsLocationsCapacityCommitmentsGetCall struct { s *Service @@ -1765,33 +1394,29 @@ func (r *ProjectsLocationsCapacityCommitmentsService) Get(name string) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCapacityCommitmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCapacityCommitmentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsCapacityCommitmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCapacityCommitmentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCapacityCommitmentsGetCall) Context(ctx context.Context) *ProjectsLocationsCapacityCommitmentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCapacityCommitmentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1800,12 +1425,7 @@ func (c *ProjectsLocationsCapacityCommitmentsGetCall) Header() http.Header { } func (c *ProjectsLocationsCapacityCommitmentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1822,16 +1442,15 @@ func (c *ProjectsLocationsCapacityCommitmentsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.get" call. -// Exactly one of *CapacityCommitment or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CapacityCommitment.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CapacityCommitment.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsCapacityCommitmentsGetCall) Do(opts ...googleapi.CallOption) (*CapacityCommitment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1839,17 +1458,17 @@ func (c *ProjectsLocationsCapacityCommitmentsGetCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CapacityCommitment{ ServerResponse: googleapi.ServerResponse{ @@ -1862,36 +1481,7 @@ func (c *ProjectsLocationsCapacityCommitmentsGetCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Returns information about the capacity commitment.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/capacityCommitments/{capacityCommitmentsId}", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.capacityCommitments.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Resource name of the capacity commitment to retrieve. E.g., `projects/myproject/locations/US/capacityCommitments/123`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/capacityCommitments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "CapacityCommitment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.capacityCommitments.list": +} type ProjectsLocationsCapacityCommitmentsListCall struct { s *Service @@ -1912,48 +1502,44 @@ func (r *ProjectsLocationsCapacityCommitmentsService) List(parent string) *Proje return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsLocationsCapacityCommitmentsListCall) PageSize(pageSize int64) *ProjectsLocationsCapacityCommitmentsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous List request, if any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. func (c *ProjectsLocationsCapacityCommitmentsListCall) PageToken(pageToken string) *ProjectsLocationsCapacityCommitmentsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCapacityCommitmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCapacityCommitmentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsCapacityCommitmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCapacityCommitmentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCapacityCommitmentsListCall) Context(ctx context.Context) *ProjectsLocationsCapacityCommitmentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCapacityCommitmentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1962,12 +1548,7 @@ func (c *ProjectsLocationsCapacityCommitmentsListCall) Header() http.Header { } func (c *ProjectsLocationsCapacityCommitmentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1984,16 +1565,15 @@ func (c *ProjectsLocationsCapacityCommitmentsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.list" call. -// Exactly one of *ListCapacityCommitmentsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListCapacityCommitmentsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListCapacityCommitmentsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsCapacityCommitmentsListCall) Do(opts ...googleapi.CallOption) (*ListCapacityCommitmentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2001,17 +1581,17 @@ func (c *ProjectsLocationsCapacityCommitmentsListCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListCapacityCommitmentsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2024,44 +1604,6 @@ func (c *ProjectsLocationsCapacityCommitmentsListCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Lists all the capacity commitments for the admin project.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/capacityCommitments", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.capacityCommitments.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Resource name of the parent reservation. E.g., `projects/myproject/locations/US`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/capacityCommitments", - // "response": { - // "$ref": "ListCapacityCommitmentsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2069,7 +1611,7 @@ func (c *ProjectsLocationsCapacityCommitmentsListCall) Do(opts ...googleapi.Call // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsCapacityCommitmentsListCall) Pages(ctx context.Context, f func(*ListCapacityCommitmentsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2085,8 +1627,6 @@ func (c *ProjectsLocationsCapacityCommitmentsListCall) Pages(ctx context.Context } } -// method id "bigqueryreservation.projects.locations.capacityCommitments.merge": - type ProjectsLocationsCapacityCommitmentsMergeCall struct { s *Service parent string @@ -2098,12 +1638,12 @@ type ProjectsLocationsCapacityCommitmentsMergeCall struct { // Merge: Merges capacity commitments of the same plan into a single // commitment. The resulting capacity commitment has the greater -// commitment_end_time out of the to-be-merged capacity commitments. -// Attempting to merge capacity commitments of different plan will fail -// with the error code `google.rpc.Code.FAILED_PRECONDITION`. +// commitment_end_time out of the to-be-merged capacity commitments. Attempting +// to merge capacity commitments of different plan will fail with the error +// code `google.rpc.Code.FAILED_PRECONDITION`. // -// - parent: Parent resource that identifies admin project and location -// e.g., `projects/myproject/locations/us`. +// - parent: Parent resource that identifies admin project and location e.g., +// `projects/myproject/locations/us`. func (r *ProjectsLocationsCapacityCommitmentsService) Merge(parent string, mergecapacitycommitmentsrequest *MergeCapacityCommitmentsRequest) *ProjectsLocationsCapacityCommitmentsMergeCall { c := &ProjectsLocationsCapacityCommitmentsMergeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2112,23 +1652,21 @@ func (r *ProjectsLocationsCapacityCommitmentsService) Merge(parent string, merge } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCapacityCommitmentsMergeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCapacityCommitmentsMergeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCapacityCommitmentsMergeCall) Context(ctx context.Context) *ProjectsLocationsCapacityCommitmentsMergeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCapacityCommitmentsMergeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2137,18 +1675,12 @@ func (c *ProjectsLocationsCapacityCommitmentsMergeCall) Header() http.Header { } func (c *ProjectsLocationsCapacityCommitmentsMergeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.mergecapacitycommitmentsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/capacityCommitments:merge") @@ -2161,16 +1693,15 @@ func (c *ProjectsLocationsCapacityCommitmentsMergeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.merge" call. -// Exactly one of *CapacityCommitment or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CapacityCommitment.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CapacityCommitment.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsCapacityCommitmentsMergeCall) Do(opts ...googleapi.CallOption) (*CapacityCommitment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2178,17 +1709,17 @@ func (c *ProjectsLocationsCapacityCommitmentsMergeCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CapacityCommitment{ ServerResponse: googleapi.ServerResponse{ @@ -2201,39 +1732,7 @@ func (c *ProjectsLocationsCapacityCommitmentsMergeCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Merges capacity commitments of the same plan into a single commitment. The resulting capacity commitment has the greater commitment_end_time out of the to-be-merged capacity commitments. Attempting to merge capacity commitments of different plan will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/capacityCommitments:merge", - // "httpMethod": "POST", - // "id": "bigqueryreservation.projects.locations.capacityCommitments.merge", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/capacityCommitments:merge", - // "request": { - // "$ref": "MergeCapacityCommitmentsRequest" - // }, - // "response": { - // "$ref": "CapacityCommitment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.capacityCommitments.patch": +} type ProjectsLocationsCapacityCommitmentsPatchCall struct { s *Service @@ -2245,16 +1744,16 @@ type ProjectsLocationsCapacityCommitmentsPatchCall struct { } // Patch: Updates an existing capacity commitment. Only `plan` and -// `renewal_plan` fields can be updated. Plan can only be changed to a -// plan of a longer commitment period. Attempting to change to a plan -// with shorter commitment period will fail with the error code +// `renewal_plan` fields can be updated. Plan can only be changed to a plan of +// a longer commitment period. Attempting to change to a plan with shorter +// commitment period will fail with the error code // `google.rpc.Code.FAILED_PRECONDITION`. // -// - name: Output only. The resource name of the capacity commitment, -// e.g., `projects/myproject/locations/US/capacityCommitments/123` The -// commitment_id must only contain lower case alphanumeric characters -// or dashes. It must start with a letter and must not end with a -// dash. Its maximum length is 64 characters. +// - name: Output only. The resource name of the capacity commitment, e.g., +// `projects/myproject/locations/US/capacityCommitments/123` The +// commitment_id must only contain lower case alphanumeric characters or +// dashes. It must start with a letter and must not end with a dash. Its +// maximum length is 64 characters. func (r *ProjectsLocationsCapacityCommitmentsService) Patch(name string, capacitycommitment *CapacityCommitment) *ProjectsLocationsCapacityCommitmentsPatchCall { c := &ProjectsLocationsCapacityCommitmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2262,31 +1761,29 @@ func (r *ProjectsLocationsCapacityCommitmentsService) Patch(name string, capacit return c } -// UpdateMask sets the optional parameter "updateMask": Standard field -// mask for the set of fields to be updated. +// UpdateMask sets the optional parameter "updateMask": Standard field mask for +// the set of fields to be updated. func (c *ProjectsLocationsCapacityCommitmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCapacityCommitmentsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCapacityCommitmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCapacityCommitmentsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCapacityCommitmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsCapacityCommitmentsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCapacityCommitmentsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2295,18 +1792,12 @@ func (c *ProjectsLocationsCapacityCommitmentsPatchCall) Header() http.Header { } func (c *ProjectsLocationsCapacityCommitmentsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.capacitycommitment) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -2319,16 +1810,15 @@ func (c *ProjectsLocationsCapacityCommitmentsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.patch" call. -// Exactly one of *CapacityCommitment or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CapacityCommitment.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CapacityCommitment.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsCapacityCommitmentsPatchCall) Do(opts ...googleapi.CallOption) (*CapacityCommitment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2336,17 +1826,17 @@ func (c *ProjectsLocationsCapacityCommitmentsPatchCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CapacityCommitment{ ServerResponse: googleapi.ServerResponse{ @@ -2359,45 +1849,7 @@ func (c *ProjectsLocationsCapacityCommitmentsPatchCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Updates an existing capacity commitment. Only `plan` and `renewal_plan` fields can be updated. Plan can only be changed to a plan of a longer commitment period. Attempting to change to a plan with shorter commitment period will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/capacityCommitments/{capacityCommitmentsId}", - // "httpMethod": "PATCH", - // "id": "bigqueryreservation.projects.locations.capacityCommitments.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The resource name of the capacity commitment, e.g., `projects/myproject/locations/US/capacityCommitments/123` The commitment_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/capacityCommitments/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Standard field mask for the set of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "CapacityCommitment" - // }, - // "response": { - // "$ref": "CapacityCommitment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.capacityCommitments.split": +} type ProjectsLocationsCapacityCommitmentsSplitCall struct { s *Service @@ -2408,12 +1860,11 @@ type ProjectsLocationsCapacityCommitmentsSplitCall struct { header_ http.Header } -// Split: Splits capacity commitment to two commitments of the same plan -// and `commitment_end_time`. A common use case is to enable downgrading -// commitments. For example, in order to downgrade from 10000 slots to -// 8000, you might split a 10000 capacity commitment into commitments of -// 2000 and 8000. Then, you delete the first one after the commitment -// end time passes. +// Split: Splits capacity commitment to two commitments of the same plan and +// `commitment_end_time`. A common use case is to enable downgrading +// commitments. For example, in order to downgrade from 10000 slots to 8000, +// you might split a 10000 capacity commitment into commitments of 2000 and +// 8000. Then, you delete the first one after the commitment end time passes. // // - name: The resource name e.g.,: // `projects/myproject/locations/US/capacityCommitments/123`. @@ -2425,23 +1876,21 @@ func (r *ProjectsLocationsCapacityCommitmentsService) Split(name string, splitca } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCapacityCommitmentsSplitCall) Fields(s ...googleapi.Field) *ProjectsLocationsCapacityCommitmentsSplitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCapacityCommitmentsSplitCall) Context(ctx context.Context) *ProjectsLocationsCapacityCommitmentsSplitCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCapacityCommitmentsSplitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2450,18 +1899,12 @@ func (c *ProjectsLocationsCapacityCommitmentsSplitCall) Header() http.Header { } func (c *ProjectsLocationsCapacityCommitmentsSplitCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.splitcapacitycommitmentrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:split") @@ -2474,16 +1917,15 @@ func (c *ProjectsLocationsCapacityCommitmentsSplitCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.capacityCommitments.split" call. -// Exactly one of *SplitCapacityCommitmentResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *SplitCapacityCommitmentResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SplitCapacityCommitmentResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsCapacityCommitmentsSplitCall) Do(opts ...googleapi.CallOption) (*SplitCapacityCommitmentResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2491,17 +1933,17 @@ func (c *ProjectsLocationsCapacityCommitmentsSplitCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SplitCapacityCommitmentResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2514,39 +1956,7 @@ func (c *ProjectsLocationsCapacityCommitmentsSplitCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Splits capacity commitment to two commitments of the same plan and `commitment_end_time`. A common use case is to enable downgrading commitments. For example, in order to downgrade from 10000 slots to 8000, you might split a 10000 capacity commitment into commitments of 2000 and 8000. Then, you delete the first one after the commitment end time passes.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/capacityCommitments/{capacityCommitmentsId}:split", - // "httpMethod": "POST", - // "id": "bigqueryreservation.projects.locations.capacityCommitments.split", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name e.g.,: `projects/myproject/locations/US/capacityCommitments/123`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/capacityCommitments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:split", - // "request": { - // "$ref": "SplitCapacityCommitmentRequest" - // }, - // "response": { - // "$ref": "SplitCapacityCommitmentResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.create": +} type ProjectsLocationsReservationsCreateCall struct { s *Service @@ -2567,33 +1977,31 @@ func (r *ProjectsLocationsReservationsService) Create(parent string, reservation return c } -// ReservationId sets the optional parameter "reservationId": The -// reservation ID. It must only contain lower case alphanumeric -// characters or dashes. It must start with a letter and must not end -// with a dash. Its maximum length is 64 characters. +// ReservationId sets the optional parameter "reservationId": The reservation +// ID. It must only contain lower case alphanumeric characters or dashes. It +// must start with a letter and must not end with a dash. Its maximum length is +// 64 characters. func (c *ProjectsLocationsReservationsCreateCall) ReservationId(reservationId string) *ProjectsLocationsReservationsCreateCall { c.urlParams_.Set("reservationId", reservationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsCreateCall) Context(ctx context.Context) *ProjectsLocationsReservationsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2602,18 +2010,12 @@ func (c *ProjectsLocationsReservationsCreateCall) Header() http.Header { } func (c *ProjectsLocationsReservationsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.reservation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/reservations") @@ -2626,16 +2028,14 @@ func (c *ProjectsLocationsReservationsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.create" call. -// Exactly one of *Reservation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Reservation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Reservation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsCreateCall) Do(opts ...googleapi.CallOption) (*Reservation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2643,17 +2043,17 @@ func (c *ProjectsLocationsReservationsCreateCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Reservation{ ServerResponse: googleapi.ServerResponse{ @@ -2666,44 +2066,7 @@ func (c *ProjectsLocationsReservationsCreateCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Creates a new reservation resource.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations", - // "httpMethod": "POST", - // "id": "bigqueryreservation.projects.locations.reservations.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Project, location. E.g., `projects/myproject/locations/US`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "reservationId": { - // "description": "The reservation ID. It must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/reservations", - // "request": { - // "$ref": "Reservation" - // }, - // "response": { - // "$ref": "Reservation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.delete": +} type ProjectsLocationsReservationsDeleteCall struct { s *Service @@ -2713,9 +2076,8 @@ type ProjectsLocationsReservationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a reservation. Returns -// `google.rpc.Code.FAILED_PRECONDITION` when reservation has -// assignments. +// Delete: Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` +// when reservation has assignments. // // - name: Resource name of the reservation to retrieve. E.g., // `projects/myproject/locations/US/reservations/team1-prod`. @@ -2726,23 +2088,21 @@ func (r *ProjectsLocationsReservationsService) Delete(name string) *ProjectsLoca } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReservationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2751,12 +2111,7 @@ func (c *ProjectsLocationsReservationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2770,16 +2125,14 @@ func (c *ProjectsLocationsReservationsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2787,17 +2140,17 @@ func (c *ProjectsLocationsReservationsDeleteCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2810,36 +2163,7 @@ func (c *ProjectsLocationsReservationsDeleteCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has assignments.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}", - // "httpMethod": "DELETE", - // "id": "bigqueryreservation.projects.locations.reservations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Resource name of the reservation to retrieve. E.g., `projects/myproject/locations/US/reservations/team1-prod`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.get": +} type ProjectsLocationsReservationsGetCall struct { s *Service @@ -2861,33 +2185,29 @@ func (r *ProjectsLocationsReservationsService) Get(name string) *ProjectsLocatio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsReservationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsGetCall) Context(ctx context.Context) *ProjectsLocationsReservationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2896,12 +2216,7 @@ func (c *ProjectsLocationsReservationsGetCall) Header() http.Header { } func (c *ProjectsLocationsReservationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2918,16 +2233,14 @@ func (c *ProjectsLocationsReservationsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.get" call. -// Exactly one of *Reservation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Reservation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Reservation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsGetCall) Do(opts ...googleapi.CallOption) (*Reservation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2935,17 +2248,17 @@ func (c *ProjectsLocationsReservationsGetCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Reservation{ ServerResponse: googleapi.ServerResponse{ @@ -2958,36 +2271,7 @@ func (c *ProjectsLocationsReservationsGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Returns information about the reservation.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.reservations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Resource name of the reservation to retrieve. E.g., `projects/myproject/locations/US/reservations/team1-prod`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Reservation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.list": +} type ProjectsLocationsReservationsListCall struct { s *Service @@ -2998,19 +2282,18 @@ type ProjectsLocationsReservationsListCall struct { header_ http.Header } -// List: Lists all the reservations for the project in the specified -// location. +// List: Lists all the reservations for the project in the specified location. // -// - parent: The parent resource name containing project and location, -// e.g.: `projects/myproject/locations/US`. +// - parent: The parent resource name containing project and location, e.g.: +// `projects/myproject/locations/US`. func (r *ProjectsLocationsReservationsService) List(parent string) *ProjectsLocationsReservationsListCall { c := &ProjectsLocationsReservationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Can be used to filter -// out reservations based on names, capacity, etc, e.g.: +// Filter sets the optional parameter "filter": Can be used to filter out +// reservations based on names, capacity, etc, e.g.: // filter="reservation.slot_capacity > 200" filter="reservation.name = // \"*dev/*\"" Advanced filtering syntax can be here // (https://cloud.google.com/logging/docs/view/advanced-filters). @@ -3019,48 +2302,44 @@ func (c *ProjectsLocationsReservationsListCall) Filter(filter string) *ProjectsL return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsLocationsReservationsListCall) PageSize(pageSize int64) *ProjectsLocationsReservationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous List request, if any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. func (c *ProjectsLocationsReservationsListCall) PageToken(pageToken string) *ProjectsLocationsReservationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsReservationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsListCall) Context(ctx context.Context) *ProjectsLocationsReservationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3069,12 +2348,7 @@ func (c *ProjectsLocationsReservationsListCall) Header() http.Header { } func (c *ProjectsLocationsReservationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3091,16 +2365,15 @@ func (c *ProjectsLocationsReservationsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.list" call. -// Exactly one of *ListReservationsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *ListReservationsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsListCall) Do(opts ...googleapi.CallOption) (*ListReservationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3108,17 +2381,17 @@ func (c *ProjectsLocationsReservationsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListReservationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3131,49 +2404,6 @@ func (c *ProjectsLocationsReservationsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists all the reservations for the project in the specified location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.reservations.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Can be used to filter out reservations based on names, capacity, etc, e.g.: filter=\"reservation.slot_capacity \u003e 200\" filter=\"reservation.name = \\\"*dev/*\\\"\" Advanced filtering syntax can be [here](https://cloud.google.com/logging/docs/view/advanced-filters).", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource name containing project and location, e.g.: `projects/myproject/locations/US`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/reservations", - // "response": { - // "$ref": "ListReservationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3181,7 +2411,7 @@ func (c *ProjectsLocationsReservationsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsReservationsListCall) Pages(ctx context.Context, f func(*ListReservationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3197,8 +2427,6 @@ func (c *ProjectsLocationsReservationsListCall) Pages(ctx context.Context, f fun } } -// method id "bigqueryreservation.projects.locations.reservations.patch": - type ProjectsLocationsReservationsPatchCall struct { s *Service name string @@ -3211,10 +2439,10 @@ type ProjectsLocationsReservationsPatchCall struct { // Patch: Updates an existing reservation resource. // // - name: The resource name of the reservation, e.g., -// `projects/*/locations/*/reservations/team1-prod`. The -// reservation_id must only contain lower case alphanumeric characters -// or dashes. It must start with a letter and must not end with a -// dash. Its maximum length is 64 characters. +// `projects/*/locations/*/reservations/team1-prod`. The reservation_id must +// only contain lower case alphanumeric characters or dashes. It must start +// with a letter and must not end with a dash. Its maximum length is 64 +// characters. func (r *ProjectsLocationsReservationsService) Patch(name string, reservation *Reservation) *ProjectsLocationsReservationsPatchCall { c := &ProjectsLocationsReservationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3222,31 +2450,29 @@ func (r *ProjectsLocationsReservationsService) Patch(name string, reservation *R return c } -// UpdateMask sets the optional parameter "updateMask": Standard field -// mask for the set of fields to be updated. +// UpdateMask sets the optional parameter "updateMask": Standard field mask for +// the set of fields to be updated. func (c *ProjectsLocationsReservationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsReservationsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsPatchCall) Context(ctx context.Context) *ProjectsLocationsReservationsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3255,18 +2481,12 @@ func (c *ProjectsLocationsReservationsPatchCall) Header() http.Header { } func (c *ProjectsLocationsReservationsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.reservation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -3279,16 +2499,14 @@ func (c *ProjectsLocationsReservationsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.patch" call. -// Exactly one of *Reservation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Reservation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Reservation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsPatchCall) Do(opts ...googleapi.CallOption) (*Reservation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3296,17 +2514,17 @@ func (c *ProjectsLocationsReservationsPatchCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Reservation{ ServerResponse: googleapi.ServerResponse{ @@ -3319,45 +2537,7 @@ func (c *ProjectsLocationsReservationsPatchCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Updates an existing reservation resource.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}", - // "httpMethod": "PATCH", - // "id": "bigqueryreservation.projects.locations.reservations.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. The reservation_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Standard field mask for the set of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "Reservation" - // }, - // "response": { - // "$ref": "Reservation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.assignments.create": +} type ProjectsLocationsReservationsAssignmentsCreateCall struct { s *Service @@ -3368,30 +2548,27 @@ type ProjectsLocationsReservationsAssignmentsCreateCall struct { header_ http.Header } -// Create: Creates an assignment object which allows the given project -// to submit jobs of a certain type using slots from the specified -// reservation. Currently a resource (project, folder, organization) can -// only have one assignment per each (job_type, location) combination, -// and that reservation will be used for all jobs of the matching type. -// Different assignments can be created on different levels of the -// projects, folders or organization hierarchy. During query execution, -// the assignment is looked up at the project, folder and organization -// levels in that order. The first assignment found is applied to the -// query. When creating assignments, it does not matter if other -// assignments exist at higher levels. Example: * The organization +// Create: Creates an assignment object which allows the given project to +// submit jobs of a certain type using slots from the specified reservation. +// Currently a resource (project, folder, organization) can only have one +// assignment per each (job_type, location) combination, and that reservation +// will be used for all jobs of the matching type. Different assignments can be +// created on different levels of the projects, folders or organization +// hierarchy. During query execution, the assignment is looked up at the +// project, folder and organization levels in that order. The first assignment +// found is applied to the query. When creating assignments, it does not matter +// if other assignments exist at higher levels. Example: * The organization // `organizationA` contains two projects, `project1` and `project2`. * // Assignments for all three entities (`organizationA`, `project1`, and // `project2`) could all be created and mapped to the same or different -// reservations. "None" assignments represent an absence of the -// assignment. Projects assigned to None use on-demand pricing. To -// create a "None" assignment, use "none" as a reservation_id in the -// parent. Example parent: +// reservations. "None" assignments represent an absence of the assignment. +// Projects assigned to None use on-demand pricing. To create a "None" +// assignment, use "none" as a reservation_id in the parent. Example parent: // `projects/myproject/locations/US/reservations/none`. Returns -// `google.rpc.Code.PERMISSION_DENIED` if user does not have -// 'bigquery.admin' permissions on the project using the reservation and -// the project that owns this reservation. Returns -// `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment -// does not match location of the reservation. +// `google.rpc.Code.PERMISSION_DENIED` if user does not have 'bigquery.admin' +// permissions on the project using the reservation and the project that owns +// this reservation. Returns `google.rpc.Code.INVALID_ARGUMENT` when location +// of the assignment does not match location of the reservation. // // - parent: The parent resource name of the assignment E.g. // `projects/myproject/locations/US/reservations/team1-prod`. @@ -3403,32 +2580,30 @@ func (r *ProjectsLocationsReservationsAssignmentsService) Create(parent string, } // AssignmentId sets the optional parameter "assignmentId": The optional -// assignment ID. Assignment name will be generated automatically if -// this field is empty. This field must only contain lower case -// alphanumeric characters or dashes. Max length is 64 characters. +// assignment ID. Assignment name will be generated automatically if this field +// is empty. This field must only contain lower case alphanumeric characters or +// dashes. Max length is 64 characters. func (c *ProjectsLocationsReservationsAssignmentsCreateCall) AssignmentId(assignmentId string) *ProjectsLocationsReservationsAssignmentsCreateCall { c.urlParams_.Set("assignmentId", assignmentId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsAssignmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsAssignmentsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsAssignmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsReservationsAssignmentsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsAssignmentsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3437,18 +2612,12 @@ func (c *ProjectsLocationsReservationsAssignmentsCreateCall) Header() http.Heade } func (c *ProjectsLocationsReservationsAssignmentsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.assignment) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/assignments") @@ -3461,16 +2630,14 @@ func (c *ProjectsLocationsReservationsAssignmentsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.assignments.create" call. -// Exactly one of *Assignment or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Assignment.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Assignment.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsAssignmentsCreateCall) Do(opts ...googleapi.CallOption) (*Assignment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3478,17 +2645,17 @@ func (c *ProjectsLocationsReservationsAssignmentsCreateCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Assignment{ ServerResponse: googleapi.ServerResponse{ @@ -3501,44 +2668,7 @@ func (c *ProjectsLocationsReservationsAssignmentsCreateCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Creates an assignment object which allows the given project to submit jobs of a certain type using slots from the specified reservation. Currently a resource (project, folder, organization) can only have one assignment per each (job_type, location) combination, and that reservation will be used for all jobs of the matching type. Different assignments can be created on different levels of the projects, folders or organization hierarchy. During query execution, the assignment is looked up at the project, folder and organization levels in that order. The first assignment found is applied to the query. When creating assignments, it does not matter if other assignments exist at higher levels. Example: * The organization `organizationA` contains two projects, `project1` and `project2`. * Assignments for all three entities (`organizationA`, `project1`, and `project2`) could all be created and mapped to the same or different reservations. \"None\" assignments represent an absence of the assignment. Projects assigned to None use on-demand pricing. To create a \"None\" assignment, use \"none\" as a reservation_id in the parent. Example parent: `projects/myproject/locations/US/reservations/none`. Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have 'bigquery.admin' permissions on the project using the reservation and the project that owns this reservation. Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment does not match location of the reservation.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/assignments", - // "httpMethod": "POST", - // "id": "bigqueryreservation.projects.locations.reservations.assignments.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "assignmentId": { - // "description": "The optional assignment ID. Assignment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. Max length is 64 characters.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource name of the assignment E.g. `projects/myproject/locations/US/reservations/team1-prod`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/assignments", - // "request": { - // "$ref": "Assignment" - // }, - // "response": { - // "$ref": "Assignment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.assignments.delete": +} type ProjectsLocationsReservationsAssignmentsDeleteCall struct { s *Service @@ -3551,16 +2681,14 @@ type ProjectsLocationsReservationsAssignmentsDeleteCall struct { // Delete: Deletes a assignment. No expansion will happen. Example: * // Organization `organizationA` contains two projects, `project1` and // `project2`. * Reservation `res1` exists and was created previously. * -// CreateAssignment was used previously to define the following -// associations between entities and reservations: “ and “ In this -// example, deletion of the “ assignment won't affect the other -// assignment “. After said deletion, queries from `project1` will -// still use `res1` while queries from `project2` will switch to use -// on-demand mode. +// CreateAssignment was used previously to define the following associations +// between entities and reservations: “ and “ In this example, deletion of +// the “ assignment won't affect the other assignment “. After said deletion, +// queries from `project1` will still use `res1` while queries from `project2` +// will switch to use on-demand mode. // // - name: Name of the resource, e.g. -// `projects/myproject/locations/US/reservations/team1-prod/assignments -// /123`. +// `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. func (r *ProjectsLocationsReservationsAssignmentsService) Delete(name string) *ProjectsLocationsReservationsAssignmentsDeleteCall { c := &ProjectsLocationsReservationsAssignmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3568,23 +2696,21 @@ func (r *ProjectsLocationsReservationsAssignmentsService) Delete(name string) *P } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsAssignmentsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReservationsAssignmentsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3593,12 +2719,7 @@ func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) Header() http.Heade } func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3612,16 +2733,14 @@ func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.assignments.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3629,17 +2748,17 @@ func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -3652,36 +2771,7 @@ func (c *ProjectsLocationsReservationsAssignmentsDeleteCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Deletes a assignment. No expansion will happen. Example: * Organization `organizationA` contains two projects, `project1` and `project2`. * Reservation `res1` exists and was created previously. * CreateAssignment was used previously to define the following associations between entities and reservations: `` and `` In this example, deletion of the `` assignment won't affect the other assignment ``. After said deletion, queries from `project1` will still use `res1` while queries from `project2` will switch to use on-demand mode.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/assignments/{assignmentsId}", - // "httpMethod": "DELETE", - // "id": "bigqueryreservation.projects.locations.reservations.assignments.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Name of the resource, e.g. `projects/myproject/locations/US/reservations/team1-prod/assignments/123`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+/assignments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.assignments.list": +} type ProjectsLocationsReservationsAssignmentsListCall struct { s *Service @@ -3693,16 +2783,15 @@ type ProjectsLocationsReservationsAssignmentsListCall struct { } // List: Lists assignments. Only explicitly created assignments will be -// returned. Example: * Organization `organizationA` contains two -// projects, `project1` and `project2`. * Reservation `res1` exists and -// was created previously. * CreateAssignment was used previously to -// define the following associations between entities and reservations: -// “ and “ In this example, ListAssignments will just return the above -// two assignments for reservation `res1`, and no expansion/merge will -// happen. The wildcard "-" can be used for reservations in the request. -// In that case all assignments belongs to the specified project and -// location will be listed. **Note** "-" cannot be used for projects nor -// locations. +// returned. Example: * Organization `organizationA` contains two projects, +// `project1` and `project2`. * Reservation `res1` exists and was created +// previously. * CreateAssignment was used previously to define the following +// associations between entities and reservations: “ and “ In this example, +// ListAssignments will just return the above two assignments for reservation +// `res1`, and no expansion/merge will happen. The wildcard "-" can be used for +// reservations in the request. In that case all assignments belongs to the +// specified project and location will be listed. **Note** "-" cannot be used +// for projects nor locations. // // - parent: The parent resource name e.g.: // `projects/myproject/locations/US/reservations/team1-prod` Or: @@ -3713,48 +2802,44 @@ func (r *ProjectsLocationsReservationsAssignmentsService) List(parent string) *P return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsLocationsReservationsAssignmentsListCall) PageSize(pageSize int64) *ProjectsLocationsReservationsAssignmentsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous List request, if any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. func (c *ProjectsLocationsReservationsAssignmentsListCall) PageToken(pageToken string) *ProjectsLocationsReservationsAssignmentsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsAssignmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsAssignmentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsReservationsAssignmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsAssignmentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsAssignmentsListCall) Context(ctx context.Context) *ProjectsLocationsReservationsAssignmentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsAssignmentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3763,12 +2848,7 @@ func (c *ProjectsLocationsReservationsAssignmentsListCall) Header() http.Header } func (c *ProjectsLocationsReservationsAssignmentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3785,16 +2865,15 @@ func (c *ProjectsLocationsReservationsAssignmentsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.assignments.list" call. -// Exactly one of *ListAssignmentsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListAssignmentsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsAssignmentsListCall) Do(opts ...googleapi.CallOption) (*ListAssignmentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3802,17 +2881,17 @@ func (c *ProjectsLocationsReservationsAssignmentsListCall) Do(opts ...googleapi. if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListAssignmentsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3825,44 +2904,6 @@ func (c *ProjectsLocationsReservationsAssignmentsListCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Lists assignments. Only explicitly created assignments will be returned. Example: * Organization `organizationA` contains two projects, `project1` and `project2`. * Reservation `res1` exists and was created previously. * CreateAssignment was used previously to define the following associations between entities and reservations: `` and `` In this example, ListAssignments will just return the above two assignments for reservation `res1`, and no expansion/merge will happen. The wildcard \"-\" can be used for reservations in the request. In that case all assignments belongs to the specified project and location will be listed. **Note** \"-\" cannot be used for projects nor locations.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/assignments", - // "httpMethod": "GET", - // "id": "bigqueryreservation.projects.locations.reservations.assignments.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource name e.g.: `projects/myproject/locations/US/reservations/team1-prod` Or: `projects/myproject/locations/US/reservations/-`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/assignments", - // "response": { - // "$ref": "ListAssignmentsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3870,7 +2911,7 @@ func (c *ProjectsLocationsReservationsAssignmentsListCall) Do(opts ...googleapi. // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsReservationsAssignmentsListCall) Pages(ctx context.Context, f func(*ListAssignmentsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3886,8 +2927,6 @@ func (c *ProjectsLocationsReservationsAssignmentsListCall) Pages(ctx context.Con } } -// method id "bigqueryreservation.projects.locations.reservations.assignments.move": - type ProjectsLocationsReservationsAssignmentsMoveCall struct { s *Service name string @@ -3898,13 +2937,12 @@ type ProjectsLocationsReservationsAssignmentsMoveCall struct { } // Move: Moves an assignment under a new reservation. This differs from -// removing an existing assignment and recreating a new one by providing -// a transactional change that ensures an assignee always has an -// associated reservation. +// removing an existing assignment and recreating a new one by providing a +// transactional change that ensures an assignee always has an associated +// reservation. // // - name: The resource name of the assignment, e.g. -// `projects/myproject/locations/US/reservations/team1-prod/assignments -// /123`. +// `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. func (r *ProjectsLocationsReservationsAssignmentsService) Move(name string, moveassignmentrequest *MoveAssignmentRequest) *ProjectsLocationsReservationsAssignmentsMoveCall { c := &ProjectsLocationsReservationsAssignmentsMoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3913,23 +2951,21 @@ func (r *ProjectsLocationsReservationsAssignmentsService) Move(name string, move } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsAssignmentsMoveCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsAssignmentsMoveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsAssignmentsMoveCall) Context(ctx context.Context) *ProjectsLocationsReservationsAssignmentsMoveCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsAssignmentsMoveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3938,18 +2974,12 @@ func (c *ProjectsLocationsReservationsAssignmentsMoveCall) Header() http.Header } func (c *ProjectsLocationsReservationsAssignmentsMoveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.moveassignmentrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:move") @@ -3962,16 +2992,14 @@ func (c *ProjectsLocationsReservationsAssignmentsMoveCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.assignments.move" call. -// Exactly one of *Assignment or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Assignment.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Assignment.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsAssignmentsMoveCall) Do(opts ...googleapi.CallOption) (*Assignment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3979,17 +3007,17 @@ func (c *ProjectsLocationsReservationsAssignmentsMoveCall) Do(opts ...googleapi. if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Assignment{ ServerResponse: googleapi.ServerResponse{ @@ -4002,39 +3030,7 @@ func (c *ProjectsLocationsReservationsAssignmentsMoveCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Moves an assignment under a new reservation. This differs from removing an existing assignment and recreating a new one by providing a transactional change that ensures an assignee always has an associated reservation.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/assignments/{assignmentsId}:move", - // "httpMethod": "POST", - // "id": "bigqueryreservation.projects.locations.reservations.assignments.move", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the assignment, e.g. `projects/myproject/locations/US/reservations/team1-prod/assignments/123`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+/assignments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:move", - // "request": { - // "$ref": "MoveAssignmentRequest" - // }, - // "response": { - // "$ref": "Assignment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "bigqueryreservation.projects.locations.reservations.assignments.patch": +} type ProjectsLocationsReservationsAssignmentsPatchCall struct { s *Service @@ -4045,13 +3041,13 @@ type ProjectsLocationsReservationsAssignmentsPatchCall struct { header_ http.Header } -// Patch: Updates an existing assignment. Only the `priority` field can -// be updated. +// Patch: Updates an existing assignment. Only the `priority` field can be +// updated. // // - name: Output only. Name of the resource. E.g.: -// `projects/myproject/locations/US/reservations/team1-prod/assignments -// /123`. The assignment_id must only contain lower case alphanumeric -// characters or dashes and the max length is 64 characters. +// `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. +// The assignment_id must only contain lower case alphanumeric characters or +// dashes and the max length is 64 characters. func (r *ProjectsLocationsReservationsAssignmentsService) Patch(name string, assignment *Assignment) *ProjectsLocationsReservationsAssignmentsPatchCall { c := &ProjectsLocationsReservationsAssignmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4059,31 +3055,29 @@ func (r *ProjectsLocationsReservationsAssignmentsService) Patch(name string, ass return c } -// UpdateMask sets the optional parameter "updateMask": Standard field -// mask for the set of fields to be updated. +// UpdateMask sets the optional parameter "updateMask": Standard field mask for +// the set of fields to be updated. func (c *ProjectsLocationsReservationsAssignmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsReservationsAssignmentsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReservationsAssignmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsAssignmentsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReservationsAssignmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsReservationsAssignmentsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReservationsAssignmentsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4092,18 +3086,12 @@ func (c *ProjectsLocationsReservationsAssignmentsPatchCall) Header() http.Header } func (c *ProjectsLocationsReservationsAssignmentsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.assignment) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -4116,16 +3104,14 @@ func (c *ProjectsLocationsReservationsAssignmentsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigqueryreservation.projects.locations.reservations.assignments.patch" call. -// Exactly one of *Assignment or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Assignment.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Assignment.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsReservationsAssignmentsPatchCall) Do(opts ...googleapi.CallOption) (*Assignment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4133,17 +3119,17 @@ func (c *ProjectsLocationsReservationsAssignmentsPatchCall) Do(opts ...googleapi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Assignment{ ServerResponse: googleapi.ServerResponse{ @@ -4156,40 +3142,4 @@ func (c *ProjectsLocationsReservationsAssignmentsPatchCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Updates an existing assignment. Only the `priority` field can be updated.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}/assignments/{assignmentsId}", - // "httpMethod": "PATCH", - // "id": "bigqueryreservation.projects.locations.reservations.assignments.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+/assignments/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Standard field mask for the set of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "Assignment" - // }, - // "response": { - // "$ref": "Assignment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/bigquery", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/bigtableadmin/v1/bigtableadmin-gen.go b/bigtableadmin/v1/bigtableadmin-gen.go index 47483e7ba91..922bb36bb82 100644 --- a/bigtableadmin/v1/bigtableadmin-gen.go +++ b/bigtableadmin/v1/bigtableadmin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/bigtable/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // bigtableadminService, err := bigtableadmin.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // bigtableadminService, err := bigtableadmin.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // bigtableadminService, err := bigtableadmin.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package bigtableadmin // import "google.golang.org/api/bigtableadmin/v1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,17 +84,21 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "bigtableadmin:v1" const apiName = "bigtableadmin" const apiVersion = "v1" const basePath = "https://bigtableadmin.googleapis.com/" +const basePathTemplate = "https://bigtableadmin.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://bigtableadmin.mtls.googleapis.com/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -121,363 +139,277 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } -// AutoscalingLimits: Limits for the number of nodes a Cluster can -// autoscale up/down to. +// AutoscalingLimits: Limits for the number of nodes a Cluster can autoscale +// up/down to. type AutoscalingLimits struct { // MaxServeNodes: Required. Maximum number of nodes to scale up to. MaxServeNodes int64 `json:"maxServeNodes,omitempty"` - // MinServeNodes: Required. Minimum number of nodes to scale down to. MinServeNodes int64 `json:"minServeNodes,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxServeNodes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxServeNodes") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxServeNodes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AutoscalingLimits) MarshalJSON() ([]byte, error) { +func (s AutoscalingLimits) MarshalJSON() ([]byte, error) { type NoMethod AutoscalingLimits - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AutoscalingTargets: The Autoscaling targets for a Cluster. These -// determine the recommended nodes. +// AutoscalingTargets: The Autoscaling targets for a Cluster. These determine +// the recommended nodes. type AutoscalingTargets struct { - // CpuUtilizationPercent: The cpu utilization that the Autoscaler should - // be trying to achieve. This number is on a scale from 0 (no - // utilization) to 100 (total utilization). + // CpuUtilizationPercent: The cpu utilization that the Autoscaler should be + // trying to achieve. This number is on a scale from 0 (no utilization) to 100 + // (total utilization). CpuUtilizationPercent int64 `json:"cpuUtilizationPercent,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CpuUtilizationPercent") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CpuUtilizationPercent") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CpuUtilizationPercent") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AutoscalingTargets) MarshalJSON() ([]byte, error) { +func (s AutoscalingTargets) MarshalJSON() ([]byte, error) { type NoMethod AutoscalingTargets - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Backup: A backup of a Cloud Bigtable table. type Backup struct { - // EncryptionInfo: Output only. The encryption information for the - // backup. + // EncryptionInfo: Output only. The encryption information for the backup. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // EndTime: Output only. `end_time` is the time that the backup was - // finished. The row data in the backup will be no newer than this - // timestamp. + // EndTime: Output only. `end_time` is the time that the backup was finished. + // The row data in the backup will be no newer than this timestamp. EndTime string `json:"endTime,omitempty"` - - // ExpireTime: Required. The expiration time of the backup, with - // microseconds granularity that must be at least 6 hours and at most 30 - // days from the time the request is received. Once the `expire_time` - // has passed, Cloud Bigtable will delete the backup and free the - // resources used by the backup. + // ExpireTime: Required. The expiration time of the backup, with microseconds + // granularity that must be at least 6 hours and at most 30 days from the time + // the request is received. Once the `expire_time` has passed, Cloud Bigtable + // will delete the backup and free the resources used by the backup. ExpireTime string `json:"expireTime,omitempty"` - - // Name: A globally unique identifier for the backup which cannot be - // changed. Values are of the form + // Name: A globally unique identifier for the backup which cannot be changed. + // Values are of the form // `projects/{project}/instances/{instance}/clusters/{cluster}/ - // backups/_a-zA-Z0-9*` The final segment of the name must be between 1 - // and 50 characters in length. The backup is stored in the cluster - // identified by the prefix of the backup name of the form + // backups/_a-zA-Z0-9*` The final segment of the name must be between 1 and 50 + // characters in length. The backup is stored in the cluster identified by the + // prefix of the backup name of the form // `projects/{project}/instances/{instance}/clusters/{cluster}`. Name string `json:"name,omitempty"` - // SizeBytes: Output only. Size of the backup in bytes. SizeBytes int64 `json:"sizeBytes,omitempty,string"` - - // SourceTable: Required. Immutable. Name of the table from which this - // backup was created. This needs to be in the same instance as the - // backup. Values are of the form - // `projects/{project}/instances/{instance}/tables/{source_table}`. + // SourceTable: Required. Immutable. Name of the table from which this backup + // was created. This needs to be in the same instance as the backup. Values are + // of the form `projects/{project}/instances/{instance}/tables/{source_table}`. SourceTable string `json:"sourceTable,omitempty"` - - // StartTime: Output only. `start_time` is the time that the backup was - // started (i.e. approximately the time the CreateBackup request is - // received). The row data in this backup will be no older than this - // timestamp. + // StartTime: Output only. `start_time` is the time that the backup was started + // (i.e. approximately the time the CreateBackup request is received). The row + // data in this backup will be no older than this timestamp. StartTime string `json:"startTime,omitempty"` - // State: Output only. The current state of the backup. // // Possible values: // "STATE_UNSPECIFIED" - Not specified. - // "CREATING" - The pending backup is still being created. Operations - // on the backup may fail with `FAILED_PRECONDITION` in this state. + // "CREATING" - The pending backup is still being created. Operations on the + // backup may fail with `FAILED_PRECONDITION` in this state. // "READY" - The backup is complete and ready for use. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "EncryptionInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptionInfo") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptionInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Backup) MarshalJSON() ([]byte, error) { +func (s Backup) MarshalJSON() ([]byte, error) { type NoMethod Backup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BackupInfo: Information about a backup. type BackupInfo struct { // Backup: Output only. Name of the backup. Backup string `json:"backup,omitempty"` - - // EndTime: Output only. This time that the backup was finished. Row - // data in the backup will be no newer than this timestamp. + // EndTime: Output only. This time that the backup was finished. Row data in + // the backup will be no newer than this timestamp. EndTime string `json:"endTime,omitempty"` - - // SourceTable: Output only. Name of the table the backup was created - // from. + // SourceTable: Output only. Name of the table the backup was created from. SourceTable string `json:"sourceTable,omitempty"` - - // StartTime: Output only. The time that the backup was started. Row - // data in the backup will be no older than this timestamp. + // StartTime: Output only. The time that the backup was started. Row data in + // the backup will be no older than this timestamp. StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Backup") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Backup") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Backup") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BackupInfo) MarshalJSON() ([]byte, error) { +func (s BackupInfo) MarshalJSON() ([]byte, error) { type NoMethod BackupInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Cluster: A resizable group of nodes in a particular cloud location, -// capable of serving all Tables in the parent Instance. +// Cluster: A resizable group of nodes in a particular cloud location, capable +// of serving all Tables in the parent Instance. type Cluster struct { // ClusterConfig: Configuration for this cluster. ClusterConfig *ClusterConfig `json:"clusterConfig,omitempty"` - - // DefaultStorageType: Immutable. The type of storage used by this - // cluster to serve its parent instance's tables, unless explicitly - // overridden. + // DefaultStorageType: Immutable. The type of storage used by this cluster to + // serve its parent instance's tables, unless explicitly overridden. // // Possible values: - // "STORAGE_TYPE_UNSPECIFIED" - The user did not specify a storage - // type. + // "STORAGE_TYPE_UNSPECIFIED" - The user did not specify a storage type. // "SSD" - Flash (SSD) storage should be used. // "HDD" - Magnetic drive (HDD) storage should be used. DefaultStorageType string `json:"defaultStorageType,omitempty"` - - // EncryptionConfig: Immutable. The encryption configuration for - // CMEK-protected clusters. + // EncryptionConfig: Immutable. The encryption configuration for CMEK-protected + // clusters. EncryptionConfig *EncryptionConfig `json:"encryptionConfig,omitempty"` - - // Location: Immutable. The location where this cluster's nodes and - // storage reside. For best performance, clients should be located as - // close as possible to this cluster. Currently only zones are - // supported, so values should be of the form - // `projects/{project}/locations/{zone}`. + // Location: Immutable. The location where this cluster's nodes and storage + // reside. For best performance, clients should be located as close as possible + // to this cluster. Currently only zones are supported, so values should be of + // the form `projects/{project}/locations/{zone}`. Location string `json:"location,omitempty"` - // Name: The unique name of the cluster. Values are of the form // `projects/{project}/instances/{instance}/clusters/a-z*`. Name string `json:"name,omitempty"` - - // ServeNodes: The number of nodes allocated to this cluster. More nodes - // enable higher throughput and more consistent performance. + // ServeNodes: The number of nodes allocated to this cluster. More nodes enable + // higher throughput and more consistent performance. ServeNodes int64 `json:"serveNodes,omitempty"` - // State: Output only. The current state of the cluster. // // Possible values: - // "STATE_NOT_KNOWN" - The state of the cluster could not be - // determined. - // "READY" - The cluster has been successfully created and is ready to - // serve requests. - // "CREATING" - The cluster is currently being created, and may be - // destroyed if the creation process encounters an error. A cluster may - // not be able to serve requests while being created. - // "RESIZING" - The cluster is currently being resized, and may revert - // to its previous node count if the process encounters an error. A - // cluster is still capable of serving requests while being resized, but - // may exhibit performance as if its number of allocated nodes is - // between the starting and requested states. - // "DISABLED" - The cluster has no backing nodes. The data (tables) - // still exist, but no operations can be performed on the cluster. + // "STATE_NOT_KNOWN" - The state of the cluster could not be determined. + // "READY" - The cluster has been successfully created and is ready to serve + // requests. + // "CREATING" - The cluster is currently being created, and may be destroyed + // if the creation process encounters an error. A cluster may not be able to + // serve requests while being created. + // "RESIZING" - The cluster is currently being resized, and may revert to its + // previous node count if the process encounters an error. A cluster is still + // capable of serving requests while being resized, but may exhibit performance + // as if its number of allocated nodes is between the starting and requested + // states. + // "DISABLED" - The cluster has no backing nodes. The data (tables) still + // exist, but no operations can be performed on the cluster. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterConfig") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Cluster) MarshalJSON() ([]byte, error) { +func (s Cluster) MarshalJSON() ([]byte, error) { type NoMethod Cluster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClusterAutoscalingConfig: Autoscaling config for a cluster. type ClusterAutoscalingConfig struct { // AutoscalingLimits: Required. Autoscaling limits for this cluster. AutoscalingLimits *AutoscalingLimits `json:"autoscalingLimits,omitempty"` - // AutoscalingTargets: Required. Autoscaling targets for this cluster. AutoscalingTargets *AutoscalingTargets `json:"autoscalingTargets,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AutoscalingLimits") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AutoscalingLimits") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutoscalingLimits") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AutoscalingLimits") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClusterAutoscalingConfig) MarshalJSON() ([]byte, error) { +func (s ClusterAutoscalingConfig) MarshalJSON() ([]byte, error) { type NoMethod ClusterAutoscalingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClusterConfig: Configuration for a cluster. type ClusterConfig struct { // ClusterAutoscalingConfig: Autoscaling configuration for this cluster. ClusterAutoscalingConfig *ClusterAutoscalingConfig `json:"clusterAutoscalingConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClusterAutoscalingConfig") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ClusterAutoscalingConfig") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterAutoscalingConfig") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClusterAutoscalingConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClusterConfig) MarshalJSON() ([]byte, error) { +func (s ClusterConfig) MarshalJSON() ([]byte, error) { type NoMethod ClusterConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateBackupMetadata: Metadata type for the operation returned by // CreateBackup. type CreateBackupMetadata struct { - // EndTime: If set, the time at which this operation finished or was - // cancelled. + // EndTime: If set, the time at which this operation finished or was cancelled. EndTime string `json:"endTime,omitempty"` - // Name: The name of the backup being created. Name string `json:"name,omitempty"` - // SourceTable: The name of the table the backup is created from. SourceTable string `json:"sourceTable,omitempty"` - // StartTime: The time at which this operation started. StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateBackupMetadata) MarshalJSON() ([]byte, error) { +func (s CreateBackupMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateBackupMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateClusterMetadata: The metadata for the Operation returned by @@ -486,83 +418,64 @@ type CreateClusterMetadata struct { // FinishTime: The time at which the operation failed or was completed // successfully. FinishTime string `json:"finishTime,omitempty"` - // OriginalRequest: The request that prompted the initiation of this // CreateCluster operation. OriginalRequest *CreateClusterRequest `json:"originalRequest,omitempty"` - // RequestTime: The time at which the original request was received. RequestTime string `json:"requestTime,omitempty"` - - // Tables: Keys: the full `name` of each table that existed in the - // instance when CreateCluster was first called, i.e. - // `projects//instances//tables/`. Any table added to the instance by a - // later API call will be created in the new cluster by that API call, - // not this one. Values: information on how much of a table's data has - // been copied to the newly-created cluster so far. + // Tables: Keys: the full `name` of each table that existed in the instance + // when CreateCluster was first called, i.e. `projects//instances//tables/`. + // Any table added to the instance by a later API call will be created in the + // new cluster by that API call, not this one. Values: information on how much + // of a table's data has been copied to the newly-created cluster so far. Tables map[string]TableProgress `json:"tables,omitempty"` - // ForceSendFields is a list of field names (e.g. "FinishTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FinishTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FinishTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateClusterMetadata) MarshalJSON() ([]byte, error) { +func (s CreateClusterMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateClusterMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateClusterRequest: Request message for // BigtableInstanceAdmin.CreateCluster. type CreateClusterRequest struct { - // Cluster: Required. The cluster to be created. Fields marked - // `OutputOnly` must be left blank. + // Cluster: Required. The cluster to be created. Fields marked `OutputOnly` + // must be left blank. Cluster *Cluster `json:"cluster,omitempty"` - - // ClusterId: Required. The ID to be used when referring to the new - // cluster within its instance, e.g., just `mycluster` rather than + // ClusterId: Required. The ID to be used when referring to the new cluster + // within its instance, e.g., just `mycluster` rather than // `projects/myproject/instances/myinstance/clusters/mycluster`. ClusterId string `json:"clusterId,omitempty"` - - // Parent: Required. The unique name of the instance in which to create - // the new cluster. Values are of the form - // `projects/{project}/instances/{instance}`. + // Parent: Required. The unique name of the instance in which to create the new + // cluster. Values are of the form `projects/{project}/instances/{instance}`. Parent string `json:"parent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cluster") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cluster") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cluster") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cluster") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateClusterRequest) MarshalJSON() ([]byte, error) { +func (s CreateClusterRequest) MarshalJSON() ([]byte, error) { type NoMethod CreateClusterRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateInstanceMetadata: The metadata for the Operation returned by @@ -571,571 +484,450 @@ type CreateInstanceMetadata struct { // FinishTime: The time at which the operation failed or was completed // successfully. FinishTime string `json:"finishTime,omitempty"` - // OriginalRequest: The request that prompted the initiation of this // CreateInstance operation. OriginalRequest *CreateInstanceRequest `json:"originalRequest,omitempty"` - // RequestTime: The time at which the original request was received. RequestTime string `json:"requestTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "FinishTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FinishTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FinishTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateInstanceMetadata) MarshalJSON() ([]byte, error) { +func (s CreateInstanceMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateInstanceMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateInstanceRequest: Request message for // BigtableInstanceAdmin.CreateInstance. type CreateInstanceRequest struct { - // Clusters: Required. The clusters to be created within the instance, - // mapped by desired cluster ID, e.g., just `mycluster` rather than - // `projects/myproject/instances/myinstance/clusters/mycluster`. Fields - // marked `OutputOnly` must be left blank. Currently, at most four - // clusters can be specified. + // Clusters: Required. The clusters to be created within the instance, mapped + // by desired cluster ID, e.g., just `mycluster` rather than + // `projects/myproject/instances/myinstance/clusters/mycluster`. Fields marked + // `OutputOnly` must be left blank. Currently, at most four clusters can be + // specified. Clusters map[string]Cluster `json:"clusters,omitempty"` - - // Instance: Required. The instance to create. Fields marked - // `OutputOnly` must be left blank. + // Instance: Required. The instance to create. Fields marked `OutputOnly` must + // be left blank. Instance *Instance `json:"instance,omitempty"` - - // InstanceId: Required. The ID to be used when referring to the new - // instance within its project, e.g., just `myinstance` rather than + // InstanceId: Required. The ID to be used when referring to the new instance + // within its project, e.g., just `myinstance` rather than // `projects/myproject/instances/myinstance`. InstanceId string `json:"instanceId,omitempty"` - - // Parent: Required. The unique name of the project in which to create - // the new instance. Values are of the form `projects/{project}`. + // Parent: Required. The unique name of the project in which to create the new + // instance. Values are of the form `projects/{project}`. Parent string `json:"parent,omitempty"` - // ForceSendFields is a list of field names (e.g. "Clusters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Clusters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Clusters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateInstanceRequest) MarshalJSON() ([]byte, error) { +func (s CreateInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod CreateInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EncryptionConfig: Cloud Key Management Service (Cloud KMS) settings -// for a CMEK-protected cluster. +// EncryptionConfig: Cloud Key Management Service (Cloud KMS) settings for a +// CMEK-protected cluster. type EncryptionConfig struct { - // KmsKeyName: Describes the Cloud KMS encryption key that will be used - // to protect the destination Bigtable cluster. The requirements for - // this key are: 1) The Cloud Bigtable service account associated with - // the project that contains this cluster must be granted the + // KmsKeyName: Describes the Cloud KMS encryption key that will be used to + // protect the destination Bigtable cluster. The requirements for this key are: + // 1) The Cloud Bigtable service account associated with the project that + // contains this cluster must be granted the // `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. 2) Only - // regional keys can be used and the region of the CMEK key must match - // the region of the cluster. 3) All clusters within an instance must - // use the same CMEK key. Values are of the form - // `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys - // /{key}` + // regional keys can be used and the region of the CMEK key must match the + // region of the cluster. 3) All clusters within an instance must use the same + // CMEK key. Values are of the form + // `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` KmsKeyName string `json:"kmsKeyName,omitempty"` - // ForceSendFields is a list of field names (e.g. "KmsKeyName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KmsKeyName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "KmsKeyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncryptionConfig) MarshalJSON() ([]byte, error) { +func (s EncryptionConfig) MarshalJSON() ([]byte, error) { type NoMethod EncryptionConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EncryptionInfo: Encryption information for a given resource. If this -// resource is protected with customer managed encryption, the in-use -// Cloud Key Management Service (Cloud KMS) key version is specified -// along with its status. +// resource is protected with customer managed encryption, the in-use Cloud Key +// Management Service (Cloud KMS) key version is specified along with its +// status. type EncryptionInfo struct { // EncryptionStatus: Output only. The status of encrypt/decrypt calls on - // underlying data for this resource. Regardless of status, the existing - // data is always encrypted at rest. + // underlying data for this resource. Regardless of status, the existing data + // is always encrypted at rest. EncryptionStatus *Status `json:"encryptionStatus,omitempty"` - - // EncryptionType: Output only. The type of encryption used to protect - // this resource. + // EncryptionType: Output only. The type of encryption used to protect this + // resource. // // Possible values: - // "ENCRYPTION_TYPE_UNSPECIFIED" - Encryption type was not specified, - // though data at rest remains encrypted. - // "GOOGLE_DEFAULT_ENCRYPTION" - The data backing this resource is - // encrypted at rest with a key that is fully managed by Google. No key - // version or status will be populated. This is the default state. + // "ENCRYPTION_TYPE_UNSPECIFIED" - Encryption type was not specified, though + // data at rest remains encrypted. + // "GOOGLE_DEFAULT_ENCRYPTION" - The data backing this resource is encrypted + // at rest with a key that is fully managed by Google. No key version or status + // will be populated. This is the default state. // "CUSTOMER_MANAGED_ENCRYPTION" - The data backing this resource is - // encrypted at rest with a key that is managed by the customer. The - // in-use version of the key and its status are populated for - // CMEK-protected tables. CMEK-protected backups are pinned to the key - // version that was in use at the time the backup was taken. This key - // version is populated but its status is not tracked and is reported as - // `UNKNOWN`. + // encrypted at rest with a key that is managed by the customer. The in-use + // version of the key and its status are populated for CMEK-protected tables. + // CMEK-protected backups are pinned to the key version that was in use at the + // time the backup was taken. This key version is populated but its status is + // not tracked and is reported as `UNKNOWN`. EncryptionType string `json:"encryptionType,omitempty"` - - // KmsKeyVersion: Output only. The version of the Cloud KMS key - // specified in the parent cluster that is in use for the data - // underlying this table. + // KmsKeyVersion: Output only. The version of the Cloud KMS key specified in + // the parent cluster that is in use for the data underlying this table. KmsKeyVersion string `json:"kmsKeyVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "EncryptionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncryptionInfo) MarshalJSON() ([]byte, error) { +func (s EncryptionInfo) MarshalJSON() ([]byte, error) { type NoMethod EncryptionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Instance: A collection of Bigtable Tables and the resources that -// serve them. All tables in an instance are served from all Clusters in -// the instance. +// Instance: A collection of Bigtable Tables and the resources that serve them. +// All tables in an instance are served from all Clusters in the instance. type Instance struct { - // CreateTime: Output only. A server-assigned timestamp representing - // when this Instance was created. For instances created before this - // field was added (August 2021), this value is `seconds: 0, nanos: 1`. + // CreateTime: Output only. A server-assigned timestamp representing when this + // Instance was created. For instances created before this field was added + // (August 2021), this value is `seconds: 0, nanos: 1`. CreateTime string `json:"createTime,omitempty"` - - // DisplayName: Required. The descriptive name for this instance as it - // appears in UIs. Can be changed at any time, but should be kept - // globally unique to avoid confusion. + // DisplayName: Required. The descriptive name for this instance as it appears + // in UIs. Can be changed at any time, but should be kept globally unique to + // avoid confusion. DisplayName string `json:"displayName,omitempty"` - // Labels: Required. Labels are a flexible and lightweight mechanism for // organizing cloud resources into groups that reflect a customer's - // organizational needs and deployment strategies. They can be used to - // filter resources and aggregate metrics. * Label keys must be between - // 1 and 63 characters long and must conform to the regular expression: - // `\p{Ll}\p{Lo}{0,62}`. * Label values must be between 0 and 63 + // organizational needs and deployment strategies. They can be used to filter + // resources and aggregate metrics. * Label keys must be between 1 and 63 // characters long and must conform to the regular expression: - // `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. * No more than 64 labels can be - // associated with a given resource. * Keys and values must both be - // under 128 bytes. + // `\p{Ll}\p{Lo}{0,62}`. * Label values must be between 0 and 63 characters + // long and must conform to the regular expression: + // `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. * No more than 64 labels can be associated + // with a given resource. * Keys and values must both be under 128 bytes. Labels map[string]string `json:"labels,omitempty"` - // Name: The unique name of the instance. Values are of the form // `projects/{project}/instances/a-z+[a-z0-9]`. Name string `json:"name,omitempty"` - // State: Output only. The current state of the instance. // // Possible values: - // "STATE_NOT_KNOWN" - The state of the instance could not be - // determined. + // "STATE_NOT_KNOWN" - The state of the instance could not be determined. // "READY" - The instance has been successfully created and can serve // requests to its tables. - // "CREATING" - The instance is currently being created, and may be - // destroyed if the creation process encounters an error. + // "CREATING" - The instance is currently being created, and may be destroyed + // if the creation process encounters an error. State string `json:"state,omitempty"` - // Type: Required. The type of the instance. Defaults to `PRODUCTION`. // // Possible values: - // "TYPE_UNSPECIFIED" - The type of the instance is unspecified. If - // set when creating an instance, a `PRODUCTION` instance will be - // created. If set when updating an instance, the type will be left - // unchanged. - // "PRODUCTION" - An instance meant for production use. `serve_nodes` - // must be set on the cluster. - // "DEVELOPMENT" - DEPRECATED: Prefer PRODUCTION for all use cases, as - // it no longer enforces a higher minimum node count than DEVELOPMENT. + // "TYPE_UNSPECIFIED" - The type of the instance is unspecified. If set when + // creating an instance, a `PRODUCTION` instance will be created. If set when + // updating an instance, the type will be left unchanged. + // "PRODUCTION" - An instance meant for production use. `serve_nodes` must be + // set on the cluster. + // "DEVELOPMENT" - DEPRECATED: Prefer PRODUCTION for all use cases, as it no + // longer enforces a higher minimum node count than DEVELOPMENT. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Instance) MarshalJSON() ([]byte, error) { +func (s Instance) MarshalJSON() ([]byte, error) { type NoMethod Instance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationProgress: Encapsulates progress related information for a -// Cloud Bigtable long running operation. +// OperationProgress: Encapsulates progress related information for a Cloud +// Bigtable long running operation. type OperationProgress struct { - // EndTime: If set, the time at which this operation failed or was - // completed successfully. + // EndTime: If set, the time at which this operation failed or was completed + // successfully. EndTime string `json:"endTime,omitempty"` - - // ProgressPercent: Percent completion of the operation. Values are - // between 0 and 100 inclusive. + // ProgressPercent: Percent completion of the operation. Values are between 0 + // and 100 inclusive. ProgressPercent int64 `json:"progressPercent,omitempty"` - // StartTime: Time the request was received. StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationProgress) MarshalJSON() ([]byte, error) { +func (s OperationProgress) MarshalJSON() ([]byte, error) { type NoMethod OperationProgress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OptimizeRestoredTableMetadata: Metadata type for the long-running -// operation used to track the progress of optimizations performed on a -// newly restored table. This long-running operation is automatically -// created by the system after the successful completion of a table -// restore, and cannot be cancelled. +// OptimizeRestoredTableMetadata: Metadata type for the long-running operation +// used to track the progress of optimizations performed on a newly restored +// table. This long-running operation is automatically created by the system +// after the successful completion of a table restore, and cannot be cancelled. type OptimizeRestoredTableMetadata struct { // Name: Name of the restored table being optimized. Name string `json:"name,omitempty"` - // Progress: The progress of the post-restore optimizations. Progress *OperationProgress `json:"progress,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OptimizeRestoredTableMetadata) MarshalJSON() ([]byte, error) { +func (s OptimizeRestoredTableMetadata) MarshalJSON() ([]byte, error) { type NoMethod OptimizeRestoredTableMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PartialUpdateClusterMetadata: The metadata for the Operation returned -// by PartialUpdateCluster. +// PartialUpdateClusterMetadata: The metadata for the Operation returned by +// PartialUpdateCluster. type PartialUpdateClusterMetadata struct { // FinishTime: The time at which the operation failed or was completed // successfully. FinishTime string `json:"finishTime,omitempty"` - // OriginalRequest: The original request for PartialUpdateCluster. OriginalRequest *PartialUpdateClusterRequest `json:"originalRequest,omitempty"` - // RequestTime: The time at which the original request was received. RequestTime string `json:"requestTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "FinishTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FinishTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FinishTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PartialUpdateClusterMetadata) MarshalJSON() ([]byte, error) { +func (s PartialUpdateClusterMetadata) MarshalJSON() ([]byte, error) { type NoMethod PartialUpdateClusterMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PartialUpdateClusterRequest: Request message for // BigtableInstanceAdmin.PartialUpdateCluster. type PartialUpdateClusterRequest struct { - // Cluster: Required. The Cluster which contains the partial updates to - // be applied, subject to the update_mask. + // Cluster: Required. The Cluster which contains the partial updates to be + // applied, subject to the update_mask. Cluster *Cluster `json:"cluster,omitempty"` - - // UpdateMask: Required. The subset of Cluster fields which should be - // replaced. + // UpdateMask: Required. The subset of Cluster fields which should be replaced. UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cluster") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cluster") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cluster") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cluster") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PartialUpdateClusterRequest) MarshalJSON() ([]byte, error) { +func (s PartialUpdateClusterRequest) MarshalJSON() ([]byte, error) { type NoMethod PartialUpdateClusterRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PartialUpdateInstanceRequest: Request message for // BigtableInstanceAdmin.PartialUpdateInstance. type PartialUpdateInstanceRequest struct { - // Instance: Required. The Instance which will (partially) replace the - // current value. + // Instance: Required. The Instance which will (partially) replace the current + // value. Instance *Instance `json:"instance,omitempty"` - // UpdateMask: Required. The subset of Instance fields which should be // replaced. Must be explicitly set. UpdateMask string `json:"updateMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PartialUpdateInstanceRequest) MarshalJSON() ([]byte, error) { +func (s PartialUpdateInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod PartialUpdateInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RestoreTableMetadata: Metadata type for the long-running operation -// returned by RestoreTable. +// RestoreTableMetadata: Metadata type for the long-running operation returned +// by RestoreTable. type RestoreTableMetadata struct { BackupInfo *BackupInfo `json:"backupInfo,omitempty"` - // Name: Name of the table being created and restored to. Name string `json:"name,omitempty"` - // OptimizeTableOperationName: If exists, the name of the long-running - // operation that will be used to track the post-restore optimization - // process to optimize the performance of the restored table. The - // metadata type of the long-running operation is - // OptimizeRestoreTableMetadata. The response type is Empty. This - // long-running operation may be automatically created by the system if - // applicable after the RestoreTable long-running operation completes - // successfully. This operation may not be created if the table is - // already optimized or the restore was not successful. + // operation that will be used to track the post-restore optimization process + // to optimize the performance of the restored table. The metadata type of the + // long-running operation is OptimizeRestoreTableMetadata. The response type is + // Empty. This long-running operation may be automatically created by the + // system if applicable after the RestoreTable long-running operation completes + // successfully. This operation may not be created if the table is already + // optimized or the restore was not successful. OptimizeTableOperationName string `json:"optimizeTableOperationName,omitempty"` - // Progress: The progress of the RestoreTable operation. Progress *OperationProgress `json:"progress,omitempty"` - // SourceType: The type of the restore source. // // Possible values: // "RESTORE_SOURCE_TYPE_UNSPECIFIED" - No restore associated. // "BACKUP" - A backup was used as the source of the restore. SourceType string `json:"sourceType,omitempty"` - // ForceSendFields is a list of field names (e.g. "BackupInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BackupInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BackupInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RestoreTableMetadata) MarshalJSON() ([]byte, error) { +func (s RestoreTableMetadata) MarshalJSON() ([]byte, error) { type NoMethod RestoreTableMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TableProgress: Progress info for copying a table's data to the new -// cluster. +// TableProgress: Progress info for copying a table's data to the new cluster. type TableProgress struct { - // EstimatedCopiedBytes: Estimate of the number of bytes copied so far - // for this table. This will eventually reach 'estimated_size_bytes' - // unless the table copy is CANCELLED. + // EstimatedCopiedBytes: Estimate of the number of bytes copied so far for this + // table. This will eventually reach 'estimated_size_bytes' unless the table + // copy is CANCELLED. EstimatedCopiedBytes int64 `json:"estimatedCopiedBytes,omitempty,string"` - // EstimatedSizeBytes: Estimate of the size of the table to be copied. EstimatedSizeBytes int64 `json:"estimatedSizeBytes,omitempty,string"` - // Possible values: // "STATE_UNSPECIFIED" // "PENDING" - The table has not yet begun copying to the new cluster. // "COPYING" - The table is actively being copied to the new cluster. // "COMPLETED" - The table has been fully copied to the new cluster. - // "CANCELLED" - The table was deleted before it finished copying to - // the new cluster. Note that tables deleted after completion will stay - // marked as COMPLETED, not CANCELLED. + // "CANCELLED" - The table was deleted before it finished copying to the new + // cluster. Note that tables deleted after completion will stay marked as + // COMPLETED, not CANCELLED. State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "EstimatedCopiedBytes") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "EstimatedCopiedBytes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EstimatedCopiedBytes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EstimatedCopiedBytes") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TableProgress) MarshalJSON() ([]byte, error) { +func (s TableProgress) MarshalJSON() ([]byte, error) { type NoMethod TableProgress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateAppProfileMetadata: The metadata for the Operation returned by @@ -1149,35 +941,27 @@ type UpdateClusterMetadata struct { // FinishTime: The time at which the operation failed or was completed // successfully. FinishTime string `json:"finishTime,omitempty"` - // OriginalRequest: The request that prompted the initiation of this // UpdateCluster operation. OriginalRequest *Cluster `json:"originalRequest,omitempty"` - // RequestTime: The time at which the original request was received. RequestTime string `json:"requestTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "FinishTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FinishTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FinishTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateClusterMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateClusterMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateClusterMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateInstanceMetadata: The metadata for the Operation returned by @@ -1186,33 +970,25 @@ type UpdateInstanceMetadata struct { // FinishTime: The time at which the operation failed or was completed // successfully. FinishTime string `json:"finishTime,omitempty"` - // OriginalRequest: The request that prompted the initiation of this // UpdateInstance operation. OriginalRequest *PartialUpdateInstanceRequest `json:"originalRequest,omitempty"` - // RequestTime: The time at which the original request was received. RequestTime string `json:"requestTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "FinishTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FinishTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FinishTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateInstanceMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateInstanceMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateInstanceMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index 3b162fa8e0d..0a733eb5b5f 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -3862,7 +3862,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.operations.get" call. @@ -3990,7 +3990,7 @@ func (c *OperationsProjectsOperationsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.operations.projects.operations.list" call. @@ -4118,7 +4118,7 @@ func (c *ProjectsInstancesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.create" call. @@ -4214,7 +4214,7 @@ func (c *ProjectsInstancesDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.delete" call. @@ -4322,7 +4322,7 @@ func (c *ProjectsInstancesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.get" call. @@ -4427,7 +4427,7 @@ func (c *ProjectsInstancesGetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.getIamPolicy" call. @@ -4542,7 +4542,7 @@ func (c *ProjectsInstancesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.list" call. @@ -4675,7 +4675,7 @@ func (c *ProjectsInstancesPartialUpdateInstanceCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.partialUpdateInstance" call. @@ -4779,7 +4779,7 @@ func (c *ProjectsInstancesSetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.setIamPolicy" call. @@ -4884,7 +4884,7 @@ func (c *ProjectsInstancesTestIamPermissionsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.testIamPermissions" call. @@ -4989,7 +4989,7 @@ func (c *ProjectsInstancesUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.update" call. @@ -5107,7 +5107,7 @@ func (c *ProjectsInstancesAppProfilesCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.appProfiles.create" call. @@ -5210,7 +5210,7 @@ func (c *ProjectsInstancesAppProfilesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.appProfiles.delete" call. @@ -5318,7 +5318,7 @@ func (c *ProjectsInstancesAppProfilesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.appProfiles.get" call. @@ -5448,7 +5448,7 @@ func (c *ProjectsInstancesAppProfilesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.appProfiles.list" call. @@ -5587,7 +5587,7 @@ func (c *ProjectsInstancesAppProfilesPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.appProfiles.patch" call. @@ -5702,7 +5702,7 @@ func (c *ProjectsInstancesClustersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.create" call. @@ -5798,7 +5798,7 @@ func (c *ProjectsInstancesClustersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.delete" call. @@ -5906,7 +5906,7 @@ func (c *ProjectsInstancesClustersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.get" call. @@ -6024,7 +6024,7 @@ func (c *ProjectsInstancesClustersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.list" call. @@ -6163,7 +6163,7 @@ func (c *ProjectsInstancesClustersPartialUpdateClusterCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.partialUpdateCluster" call. @@ -6267,7 +6267,7 @@ func (c *ProjectsInstancesClustersUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.update" call. @@ -6371,7 +6371,7 @@ func (c *ProjectsInstancesClustersBackupsCopyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.backups.copy" call. @@ -6490,7 +6490,7 @@ func (c *ProjectsInstancesClustersBackupsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.backups.create" call. @@ -6587,7 +6587,7 @@ func (c *ProjectsInstancesClustersBackupsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.backups.delete" call. @@ -6696,7 +6696,7 @@ func (c *ProjectsInstancesClustersBackupsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.backups.get" call. @@ -6801,7 +6801,7 @@ func (c *ProjectsInstancesClustersBackupsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.backups.getIamPolicy" call. @@ -6970,7 +6970,7 @@ func (c *ProjectsInstancesClustersBackupsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.backups.list" call. @@ -7110,7 +7110,7 @@ func (c *ProjectsInstancesClustersBackupsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.backups.patch" call. @@ -7214,7 +7214,7 @@ func (c *ProjectsInstancesClustersBackupsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.backups.setIamPolicy" call. @@ -7319,7 +7319,7 @@ func (c *ProjectsInstancesClustersBackupsTestIamPermissionsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.backups.testIamPermissions" call. @@ -7467,7 +7467,7 @@ func (c *ProjectsInstancesClustersHotTabletsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.clusters.hotTablets.list" call. @@ -7594,7 +7594,7 @@ func (c *ProjectsInstancesTablesCheckConsistencyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.checkConsistency" call. @@ -7699,7 +7699,7 @@ func (c *ProjectsInstancesTablesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.create" call. @@ -7795,7 +7795,7 @@ func (c *ProjectsInstancesTablesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.delete" call. @@ -7903,7 +7903,7 @@ func (c *ProjectsInstancesTablesDropRowRangeCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.dropRowRange" call. @@ -8009,7 +8009,7 @@ func (c *ProjectsInstancesTablesGenerateConsistencyTokenCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.generateConsistencyToken" call. @@ -8152,7 +8152,7 @@ func (c *ProjectsInstancesTablesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.get" call. @@ -8257,7 +8257,7 @@ func (c *ProjectsInstancesTablesGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.getIamPolicy" call. @@ -8419,7 +8419,7 @@ func (c *ProjectsInstancesTablesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.list" call. @@ -8547,7 +8547,7 @@ func (c *ProjectsInstancesTablesModifyColumnFamiliesCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.modifyColumnFamilies" call. @@ -8664,7 +8664,7 @@ func (c *ProjectsInstancesTablesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.patch" call. @@ -8769,7 +8769,7 @@ func (c *ProjectsInstancesTablesRestoreCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.restore" call. @@ -8873,7 +8873,7 @@ func (c *ProjectsInstancesTablesSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.setIamPolicy" call. @@ -8978,7 +8978,7 @@ func (c *ProjectsInstancesTablesTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.testIamPermissions" call. @@ -9081,7 +9081,7 @@ func (c *ProjectsInstancesTablesUndeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.undelete" call. @@ -9195,7 +9195,7 @@ func (c *ProjectsInstancesTablesAuthorizedViewsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.authorizedViews.create" call. @@ -9302,7 +9302,7 @@ func (c *ProjectsInstancesTablesAuthorizedViewsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.authorizedViews.delete" call. @@ -9432,7 +9432,7 @@ func (c *ProjectsInstancesTablesAuthorizedViewsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.authorizedViews.get" call. @@ -9537,7 +9537,7 @@ func (c *ProjectsInstancesTablesAuthorizedViewsGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.authorizedViews.getIamPolicy" call. @@ -9685,7 +9685,7 @@ func (c *ProjectsInstancesTablesAuthorizedViewsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.authorizedViews.list" call. @@ -9828,7 +9828,7 @@ func (c *ProjectsInstancesTablesAuthorizedViewsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.authorizedViews.patch" call. @@ -9932,7 +9932,7 @@ func (c *ProjectsInstancesTablesAuthorizedViewsSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.authorizedViews.setIamPolicy" call. @@ -10037,7 +10037,7 @@ func (c *ProjectsInstancesTablesAuthorizedViewsTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.instances.tables.authorizedViews.testIamPermissions" call. @@ -10169,7 +10169,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "bigtableadmin.projects.locations.list" call. diff --git a/billingbudgets/v1/billingbudgets-gen.go b/billingbudgets/v1/billingbudgets-gen.go index 771c869bb7f..126855d755f 100644 --- a/billingbudgets/v1/billingbudgets-gen.go +++ b/billingbudgets/v1/billingbudgets-gen.go @@ -720,7 +720,7 @@ func (c *BillingAccountsBudgetsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "billingbudgets.billingAccounts.budgets.create" call. @@ -817,7 +817,7 @@ func (c *BillingAccountsBudgetsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "billingbudgets.billingAccounts.budgets.delete" call. @@ -929,7 +929,7 @@ func (c *BillingAccountsBudgetsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "billingbudgets.billingAccounts.budgets.get" call. @@ -1069,7 +1069,7 @@ func (c *BillingAccountsBudgetsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "billingbudgets.billingAccounts.budgets.list" call. @@ -1208,7 +1208,7 @@ func (c *BillingAccountsBudgetsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "billingbudgets.billingAccounts.budgets.patch" call. diff --git a/billingbudgets/v1beta1/billingbudgets-gen.go b/billingbudgets/v1beta1/billingbudgets-gen.go index dbf7db271e8..8f5ac36d135 100644 --- a/billingbudgets/v1beta1/billingbudgets-gen.go +++ b/billingbudgets/v1beta1/billingbudgets-gen.go @@ -755,7 +755,7 @@ func (c *BillingAccountsBudgetsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "billingbudgets.billingAccounts.budgets.create" call. @@ -852,7 +852,7 @@ func (c *BillingAccountsBudgetsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "billingbudgets.billingAccounts.budgets.delete" call. @@ -964,7 +964,7 @@ func (c *BillingAccountsBudgetsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "billingbudgets.billingAccounts.budgets.get" call. @@ -1104,7 +1104,7 @@ func (c *BillingAccountsBudgetsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "billingbudgets.billingAccounts.budgets.list" call. @@ -1232,7 +1232,7 @@ func (c *BillingAccountsBudgetsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "billingbudgets.billingAccounts.budgets.patch" call. diff --git a/binaryauthorization/v1/binaryauthorization-gen.go b/binaryauthorization/v1/binaryauthorization-gen.go index 229fc92c435..0a4b2e704dd 100644 --- a/binaryauthorization/v1/binaryauthorization-gen.go +++ b/binaryauthorization/v1/binaryauthorization-gen.go @@ -2202,7 +2202,7 @@ func (c *ProjectsGetPolicyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.getPolicy" call. @@ -2308,7 +2308,7 @@ func (c *ProjectsUpdatePolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.updatePolicy" call. @@ -2418,7 +2418,7 @@ func (c *ProjectsAttestorsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.create" call. @@ -2515,7 +2515,7 @@ func (c *ProjectsAttestorsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.delete" call. @@ -2623,7 +2623,7 @@ func (c *ProjectsAttestorsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.get" call. @@ -2750,7 +2750,7 @@ func (c *ProjectsAttestorsGetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.getIamPolicy" call. @@ -2876,7 +2876,7 @@ func (c *ProjectsAttestorsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.list" call. @@ -3003,7 +3003,7 @@ func (c *ProjectsAttestorsSetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.setIamPolicy" call. @@ -3111,7 +3111,7 @@ func (c *ProjectsAttestorsTestIamPermissionsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.testIamPermissions" call. @@ -3215,7 +3215,7 @@ func (c *ProjectsAttestorsUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.update" call. @@ -3318,7 +3318,7 @@ func (c *ProjectsAttestorsValidateAttestationOccurrenceCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "attestor": c.attestor, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.validateAttestationOccurrence" call. @@ -3424,7 +3424,7 @@ func (c *ProjectsPlatformsGkePoliciesEvaluateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.platforms.gke.policies.evaluate" call. @@ -3537,7 +3537,7 @@ func (c *ProjectsPlatformsPoliciesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.platforms.policies.create" call. @@ -3641,7 +3641,7 @@ func (c *ProjectsPlatformsPoliciesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.platforms.policies.delete" call. @@ -3750,7 +3750,7 @@ func (c *ProjectsPlatformsPoliciesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.platforms.policies.get" call. @@ -3876,7 +3876,7 @@ func (c *ProjectsPlatformsPoliciesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.platforms.policies.list" call. @@ -4001,7 +4001,7 @@ func (c *ProjectsPlatformsPoliciesReplacePlatformPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.platforms.policies.replacePlatformPolicy" call. @@ -4128,7 +4128,7 @@ func (c *ProjectsPolicyGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.policy.getIamPolicy" call. @@ -4233,7 +4233,7 @@ func (c *ProjectsPolicySetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.policy.setIamPolicy" call. @@ -4341,7 +4341,7 @@ func (c *ProjectsPolicyTestIamPermissionsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.policy.testIamPermissions" call. @@ -4450,7 +4450,7 @@ func (c *SystempolicyGetPolicyCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.systempolicy.getPolicy" call. diff --git a/binaryauthorization/v1beta1/binaryauthorization-gen.go b/binaryauthorization/v1beta1/binaryauthorization-gen.go index 46dbc3538c5..ff21a6a6653 100644 --- a/binaryauthorization/v1beta1/binaryauthorization-gen.go +++ b/binaryauthorization/v1beta1/binaryauthorization-gen.go @@ -1150,7 +1150,7 @@ func (c *ProjectsGetPolicyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.getPolicy" call. @@ -1256,7 +1256,7 @@ func (c *ProjectsUpdatePolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.updatePolicy" call. @@ -1366,7 +1366,7 @@ func (c *ProjectsAttestorsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.create" call. @@ -1463,7 +1463,7 @@ func (c *ProjectsAttestorsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.delete" call. @@ -1571,7 +1571,7 @@ func (c *ProjectsAttestorsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.get" call. @@ -1698,7 +1698,7 @@ func (c *ProjectsAttestorsGetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.getIamPolicy" call. @@ -1824,7 +1824,7 @@ func (c *ProjectsAttestorsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.list" call. @@ -1951,7 +1951,7 @@ func (c *ProjectsAttestorsSetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.setIamPolicy" call. @@ -2059,7 +2059,7 @@ func (c *ProjectsAttestorsTestIamPermissionsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.testIamPermissions" call. @@ -2163,7 +2163,7 @@ func (c *ProjectsAttestorsUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.update" call. @@ -2266,7 +2266,7 @@ func (c *ProjectsAttestorsValidateAttestationOccurrenceCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "attestor": c.attestor, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.attestors.validateAttestationOccurrence" call. @@ -2394,7 +2394,7 @@ func (c *ProjectsPolicyGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.policy.getIamPolicy" call. @@ -2499,7 +2499,7 @@ func (c *ProjectsPolicySetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.policy.setIamPolicy" call. @@ -2607,7 +2607,7 @@ func (c *ProjectsPolicyTestIamPermissionsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.projects.policy.testIamPermissions" call. @@ -2716,7 +2716,7 @@ func (c *SystempolicyGetPolicyCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "binaryauthorization.systempolicy.getPolicy" call. diff --git a/blockchainnodeengine/v1/blockchainnodeengine-gen.go b/blockchainnodeengine/v1/blockchainnodeengine-gen.go index a233ddd2e9d..538831d2a00 100644 --- a/blockchainnodeengine/v1/blockchainnodeengine-gen.go +++ b/blockchainnodeengine/v1/blockchainnodeengine-gen.go @@ -834,7 +834,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.get" call. @@ -965,7 +965,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.list" call. @@ -1111,7 +1111,7 @@ func (c *ProjectsLocationsBlockchainNodesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.blockchainNodes.create" call. @@ -1223,7 +1223,7 @@ func (c *ProjectsLocationsBlockchainNodesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.blockchainNodes.delete" call. @@ -1331,7 +1331,7 @@ func (c *ProjectsLocationsBlockchainNodesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.blockchainNodes.get" call. @@ -1466,7 +1466,7 @@ func (c *ProjectsLocationsBlockchainNodesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.blockchainNodes.list" call. @@ -1617,7 +1617,7 @@ func (c *ProjectsLocationsBlockchainNodesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.blockchainNodes.patch" call. @@ -1726,7 +1726,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.operations.cancel" call. @@ -1825,7 +1825,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.operations.delete" call. @@ -1935,7 +1935,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.operations.get" call. @@ -2063,7 +2063,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blockchainnodeengine.projects.locations.operations.list" call. diff --git a/blogger/v2/blogger-gen.go b/blogger/v2/blogger-gen.go index bd3ca321bde..2186d5c01c1 100644 --- a/blogger/v2/blogger-gen.go +++ b/blogger/v2/blogger-gen.go @@ -1209,7 +1209,7 @@ func (c *BlogsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.blogs.get" call. @@ -1316,7 +1316,7 @@ func (c *BlogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.blogs.list" call. @@ -1431,7 +1431,7 @@ func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.get" call. @@ -1566,7 +1566,7 @@ func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.list" call. @@ -1698,7 +1698,7 @@ func (c *PagesGetCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.get" call. @@ -1811,7 +1811,7 @@ func (c *PagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.list" call. @@ -1922,7 +1922,7 @@ func (c *PostsGetCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.get" call. @@ -2053,7 +2053,7 @@ func (c *PostsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.list" call. @@ -2181,7 +2181,7 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.users.get" call. diff --git a/blogger/v3/blogger-gen.go b/blogger/v3/blogger-gen.go index f599e04be12..da1a7176616 100644 --- a/blogger/v3/blogger-gen.go +++ b/blogger/v3/blogger-gen.go @@ -1408,7 +1408,7 @@ func (c *BlogUserInfosGetCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.blogUserInfos.get" call. @@ -1534,7 +1534,7 @@ func (c *BlogsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.blogs.get" call. @@ -1650,7 +1650,7 @@ func (c *BlogsGetByUrlCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.blogs.getByUrl" call. @@ -1801,7 +1801,7 @@ func (c *BlogsListByUserCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.blogs.listByUser" call. @@ -1904,7 +1904,7 @@ func (c *CommentsApproveCall) doRequest(alt string) (*http.Response, error) { "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.approve" call. @@ -2007,7 +2007,7 @@ func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) { "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.delete" call. @@ -2112,7 +2112,7 @@ func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.get" call. @@ -2279,7 +2279,7 @@ func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.list" call. @@ -2450,7 +2450,7 @@ func (c *CommentsListByBlogCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.listByBlog" call. @@ -2574,7 +2574,7 @@ func (c *CommentsMarkAsSpamCall) doRequest(alt string) (*http.Response, error) { "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.markAsSpam" call. @@ -2678,7 +2678,7 @@ func (c *CommentsRemoveContentCall) doRequest(alt string) (*http.Response, error "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.removeContent" call. @@ -2797,7 +2797,7 @@ func (c *PageViewsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pageViews.get" call. @@ -2902,7 +2902,7 @@ func (c *PagesDeleteCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.delete" call. @@ -3003,7 +3003,7 @@ func (c *PagesGetCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.get" call. @@ -3110,7 +3110,7 @@ func (c *PagesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.insert" call. @@ -3260,7 +3260,7 @@ func (c *PagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.list" call. @@ -3398,7 +3398,7 @@ func (c *PagesPatchCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.patch" call. @@ -3497,7 +3497,7 @@ func (c *PagesPublishCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.publish" call. @@ -3596,7 +3596,7 @@ func (c *PagesRevertCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.revert" call. @@ -3713,7 +3713,7 @@ func (c *PagesUpdateCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.update" call. @@ -3834,7 +3834,7 @@ func (c *PostUserInfosGetCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.postUserInfos.get" call. @@ -4019,7 +4019,7 @@ func (c *PostUserInfosListCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.postUserInfos.list" call. @@ -4146,7 +4146,7 @@ func (c *PostsDeleteCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.delete" call. @@ -4265,7 +4265,7 @@ func (c *PostsGetCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.get" call. @@ -4393,7 +4393,7 @@ func (c *PostsGetByPathCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.getByPath" call. @@ -4512,7 +4512,7 @@ func (c *PostsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.insert" call. @@ -4715,7 +4715,7 @@ func (c *PostsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.list" call. @@ -4871,7 +4871,7 @@ func (c *PostsPatchCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.patch" call. @@ -4976,7 +4976,7 @@ func (c *PostsPublishCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.publish" call. @@ -5075,7 +5075,7 @@ func (c *PostsRevertCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.revert" call. @@ -5202,7 +5202,7 @@ func (c *PostsSearchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.search" call. @@ -5337,7 +5337,7 @@ func (c *PostsUpdateCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.update" call. @@ -5444,7 +5444,7 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.users.get" call. diff --git a/books/v1/books-gen.go b/books/v1/books-gen.go index fdf56b48012..abfffbb31d6 100644 --- a/books/v1/books-gen.go +++ b/books/v1/books-gen.go @@ -3863,7 +3863,7 @@ func (c *BookshelvesGetCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "shelf": c.shelf, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.bookshelves.get" call. @@ -3977,7 +3977,7 @@ func (c *BookshelvesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.bookshelves.list" call. @@ -4116,7 +4116,7 @@ func (c *BookshelvesVolumesListCall) doRequest(alt string) (*http.Response, erro "userId": c.userId, "shelf": c.shelf, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.bookshelves.volumes.list" call. @@ -4232,7 +4232,7 @@ func (c *CloudloadingAddBookCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.cloudloading.addBook" call. @@ -4324,7 +4324,7 @@ func (c *CloudloadingDeleteBookCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.cloudloading.deleteBook" call. @@ -4418,7 +4418,7 @@ func (c *CloudloadingUpdateBookCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.cloudloading.updateBook" call. @@ -4522,7 +4522,7 @@ func (c *DictionaryListOfflineMetadataCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.dictionary.listOfflineMetadata" call. @@ -4630,7 +4630,7 @@ func (c *FamilysharingGetFamilyInfoCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.familysharing.getFamilyInfo" call. @@ -4738,7 +4738,7 @@ func (c *FamilysharingShareCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.familysharing.share" call. @@ -4846,7 +4846,7 @@ func (c *FamilysharingUnshareCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.familysharing.unshare" call. @@ -4971,7 +4971,7 @@ func (c *LayersGetCall) doRequest(alt string) (*http.Response, error) { "volumeId": c.volumeId, "summaryId": c.summaryId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.layers.get" call. @@ -5106,7 +5106,7 @@ func (c *LayersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "volumeId": c.volumeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.layers.list" call. @@ -5266,7 +5266,7 @@ func (c *LayersAnnotationDataGetCall) doRequest(alt string) (*http.Response, err "layerId": c.layerId, "annotationDataId": c.annotationDataId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.layers.annotationData.get" call. @@ -5450,7 +5450,7 @@ func (c *LayersAnnotationDataListCall) doRequest(alt string) (*http.Response, er "volumeId": c.volumeId, "layerId": c.layerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.layers.annotationData.list" call. @@ -5601,7 +5601,7 @@ func (c *LayersVolumeAnnotationsGetCall) doRequest(alt string) (*http.Response, "layerId": c.layerId, "annotationId": c.annotationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.layers.volumeAnnotations.get" call. @@ -5801,7 +5801,7 @@ func (c *LayersVolumeAnnotationsListCall) doRequest(alt string) (*http.Response, "volumeId": c.volumeId, "layerId": c.layerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.layers.volumeAnnotations.list" call. @@ -5930,7 +5930,7 @@ func (c *MyconfigGetUserSettingsCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.myconfig.getUserSettings" call. @@ -6037,7 +6037,7 @@ func (c *MyconfigReleaseDownloadAccessCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.myconfig.releaseDownloadAccess" call. @@ -6156,7 +6156,7 @@ func (c *MyconfigRequestAccessCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.myconfig.requestAccess" call. @@ -6293,7 +6293,7 @@ func (c *MyconfigSyncVolumeLicensesCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.myconfig.syncVolumeLicenses" call. @@ -6389,7 +6389,7 @@ func (c *MyconfigUpdateUserSettingsCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.myconfig.updateUserSettings" call. @@ -6491,7 +6491,7 @@ func (c *MylibraryAnnotationsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "annotationId": c.annotationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.annotations.delete" call. @@ -6614,7 +6614,7 @@ func (c *MylibraryAnnotationsInsertCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.annotations.insert" call. @@ -6785,7 +6785,7 @@ func (c *MylibraryAnnotationsListCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.annotations.list" call. @@ -6906,7 +6906,7 @@ func (c *MylibraryAnnotationsSummaryCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.annotations.summary" call. @@ -7015,7 +7015,7 @@ func (c *MylibraryAnnotationsUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "annotationId": c.annotationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.annotations.update" call. @@ -7133,7 +7133,7 @@ func (c *MylibraryBookshelvesAddVolumeCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "shelf": c.shelf, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.bookshelves.addVolume" call. @@ -7235,7 +7235,7 @@ func (c *MylibraryBookshelvesClearVolumesCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "shelf": c.shelf, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.bookshelves.clearVolumes" call. @@ -7350,7 +7350,7 @@ func (c *MylibraryBookshelvesGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "shelf": c.shelf, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.bookshelves.get" call. @@ -7457,7 +7457,7 @@ func (c *MylibraryBookshelvesListCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.bookshelves.list" call. @@ -7565,7 +7565,7 @@ func (c *MylibraryBookshelvesMoveVolumeCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "shelf": c.shelf, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.bookshelves.moveVolume" call. @@ -7681,7 +7681,7 @@ func (c *MylibraryBookshelvesRemoveVolumeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "shelf": c.shelf, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.bookshelves.removeVolume" call. @@ -7843,7 +7843,7 @@ func (c *MylibraryBookshelvesVolumesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "shelf": c.shelf, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.bookshelves.volumes.list" call. @@ -7964,7 +7964,7 @@ func (c *MylibraryReadingpositionsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "volumeId": c.volumeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.readingpositions.get" call. @@ -8103,7 +8103,7 @@ func (c *MylibraryReadingpositionsSetPositionCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "volumeId": c.volumeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.mylibrary.readingpositions.setPosition" call. @@ -8221,7 +8221,7 @@ func (c *NotificationGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.notification.get" call. @@ -8328,7 +8328,7 @@ func (c *OnboardingListCategoriesCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.onboarding.listCategories" call. @@ -8471,7 +8471,7 @@ func (c *OnboardingListCategoryVolumesCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.onboarding.listCategoryVolumes" call. @@ -8620,7 +8620,7 @@ func (c *PersonalizedstreamGetCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.personalizedstream.get" call. @@ -8758,7 +8758,7 @@ func (c *PromoofferAcceptCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.promooffer.accept" call. @@ -8888,7 +8888,7 @@ func (c *PromoofferDismissCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.promooffer.dismiss" call. @@ -9024,7 +9024,7 @@ func (c *PromoofferGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.promooffer.get" call. @@ -9127,7 +9127,7 @@ func (c *SeriesGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.series.get" call. @@ -9244,7 +9244,7 @@ func (c *SeriesMembershipGetCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.series.membership.get" call. @@ -9399,7 +9399,7 @@ func (c *VolumesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "volumeId": c.volumeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.volumes.get" call. @@ -9637,7 +9637,7 @@ func (c *VolumesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.volumes.list" call. @@ -9785,7 +9785,7 @@ func (c *VolumesAssociatedListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "volumeId": c.volumeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.volumes.associated.list" call. @@ -9954,7 +9954,7 @@ func (c *VolumesMybooksListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.volumes.mybooks.list" call. @@ -10082,7 +10082,7 @@ func (c *VolumesRecommendedListCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.volumes.recommended.list" call. @@ -10189,7 +10189,7 @@ func (c *VolumesRecommendedRateCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.volumes.recommended.rate" call. @@ -10340,7 +10340,7 @@ func (c *VolumesUseruploadedListCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "books.volumes.useruploaded.list" call. diff --git a/businessprofileperformance/v1/businessprofileperformance-gen.go b/businessprofileperformance/v1/businessprofileperformance-gen.go index fec21eda660..601e5560cb7 100644 --- a/businessprofileperformance/v1/businessprofileperformance-gen.go +++ b/businessprofileperformance/v1/businessprofileperformance-gen.go @@ -740,7 +740,7 @@ func (c *LocationsFetchMultiDailyMetricsTimeSeriesCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "businessprofileperformance.locations.fetchMultiDailyMetricsTimeSeries" call. @@ -1014,7 +1014,7 @@ func (c *LocationsGetDailyMetricsTimeSeriesCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "businessprofileperformance.locations.getDailyMetricsTimeSeries" call. @@ -1191,7 +1191,7 @@ func (c *LocationsSearchkeywordsImpressionsMonthlyListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "businessprofileperformance.locations.searchkeywords.impressions.monthly.list" call. diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index 18ceb776a5d..d267e11f442 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -2139,7 +2139,7 @@ func (c *AclDeleteCall) doRequest(alt string) (*http.Response, error) { "calendarId": c.calendarId, "ruleId": c.ruleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.acl.delete" call. @@ -2229,7 +2229,7 @@ func (c *AclGetCall) doRequest(alt string) (*http.Response, error) { "calendarId": c.calendarId, "ruleId": c.ruleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.acl.get" call. @@ -2340,7 +2340,7 @@ func (c *AclInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.acl.insert" call. @@ -2490,7 +2490,7 @@ func (c *AclListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.acl.list" call. @@ -2626,7 +2626,7 @@ func (c *AclPatchCall) doRequest(alt string) (*http.Response, error) { "calendarId": c.calendarId, "ruleId": c.ruleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.acl.patch" call. @@ -2741,7 +2741,7 @@ func (c *AclUpdateCall) doRequest(alt string) (*http.Response, error) { "calendarId": c.calendarId, "ruleId": c.ruleId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.acl.update" call. @@ -2885,7 +2885,7 @@ func (c *AclWatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.acl.watch" call. @@ -2982,7 +2982,7 @@ func (c *CalendarListDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendarList.delete" call. @@ -3068,7 +3068,7 @@ func (c *CalendarListGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendarList.get" call. @@ -3172,7 +3172,7 @@ func (c *CalendarListInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendarList.insert" call. @@ -3338,7 +3338,7 @@ func (c *CalendarListListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendarList.list" call. @@ -3472,7 +3472,7 @@ func (c *CalendarListPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendarList.patch" call. @@ -3585,7 +3585,7 @@ func (c *CalendarListUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendarList.update" call. @@ -3745,7 +3745,7 @@ func (c *CalendarListWatchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendarList.watch" call. @@ -3843,7 +3843,7 @@ func (c *CalendarsClearCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendars.clear" call. @@ -3918,7 +3918,7 @@ func (c *CalendarsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendars.delete" call. @@ -4004,7 +4004,7 @@ func (c *CalendarsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendars.get" call. @@ -4098,7 +4098,7 @@ func (c *CalendarsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendars.insert" call. @@ -4202,7 +4202,7 @@ func (c *CalendarsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendars.patch" call. @@ -4305,7 +4305,7 @@ func (c *CalendarsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.calendars.update" call. @@ -4399,7 +4399,7 @@ func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.channels.stop" call. @@ -4476,7 +4476,7 @@ func (c *ColorsGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.colors.get" call. @@ -4606,7 +4606,7 @@ func (c *EventsDeleteCall) doRequest(alt string) (*http.Response, error) { "calendarId": c.calendarId, "eventId": c.eventId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.delete" call. @@ -4722,7 +4722,7 @@ func (c *EventsGetCall) doRequest(alt string) (*http.Response, error) { "calendarId": c.calendarId, "eventId": c.eventId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.get" call. @@ -4849,7 +4849,7 @@ func (c *EventsImportCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.import" call. @@ -5011,7 +5011,7 @@ func (c *EventsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.insert" call. @@ -5195,7 +5195,7 @@ func (c *EventsInstancesCall) doRequest(alt string) (*http.Response, error) { "calendarId": c.calendarId, "eventId": c.eventId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.instances" call. @@ -5538,7 +5538,7 @@ func (c *EventsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.list" call. @@ -5693,7 +5693,7 @@ func (c *EventsMoveCall) doRequest(alt string) (*http.Response, error) { "calendarId": c.calendarId, "eventId": c.eventId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.move" call. @@ -5866,7 +5866,7 @@ func (c *EventsPatchCall) doRequest(alt string) (*http.Response, error) { "calendarId": c.calendarId, "eventId": c.eventId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.patch" call. @@ -5994,7 +5994,7 @@ func (c *EventsQuickAddCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.quickAdd" call. @@ -6167,7 +6167,7 @@ func (c *EventsUpdateCall) doRequest(alt string) (*http.Response, error) { "calendarId": c.calendarId, "eventId": c.eventId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.update" call. @@ -6483,7 +6483,7 @@ func (c *EventsWatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "calendarId": c.calendarId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.watch" call. @@ -6577,7 +6577,7 @@ func (c *FreebusyQueryCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.freebusy.query" call. @@ -6685,7 +6685,7 @@ func (c *SettingsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "setting": c.setting, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.settings.get" call. @@ -6815,7 +6815,7 @@ func (c *SettingsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.settings.list" call. @@ -6960,7 +6960,7 @@ func (c *SettingsWatchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.settings.watch" call. diff --git a/certificatemanager/v1/certificatemanager-gen.go b/certificatemanager/v1/certificatemanager-gen.go index 991f20e2622..461ce673095 100644 --- a/certificatemanager/v1/certificatemanager-gen.go +++ b/certificatemanager/v1/certificatemanager-gen.go @@ -1478,7 +1478,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.get" call. @@ -1609,7 +1609,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.list" call. @@ -1742,7 +1742,7 @@ func (c *ProjectsLocationsCertificateIssuanceConfigsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateIssuanceConfigs.create" call. @@ -1838,7 +1838,7 @@ func (c *ProjectsLocationsCertificateIssuanceConfigsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateIssuanceConfigs.delete" call. @@ -1946,7 +1946,7 @@ func (c *ProjectsLocationsCertificateIssuanceConfigsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateIssuanceConfigs.get" call. @@ -2087,7 +2087,7 @@ func (c *ProjectsLocationsCertificateIssuanceConfigsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateIssuanceConfigs.list" call. @@ -2220,7 +2220,7 @@ func (c *ProjectsLocationsCertificateIssuanceConfigsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateIssuanceConfigs.patch" call. @@ -2329,7 +2329,7 @@ func (c *ProjectsLocationsCertificateMapsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateMaps.create" call. @@ -2427,7 +2427,7 @@ func (c *ProjectsLocationsCertificateMapsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateMaps.delete" call. @@ -2535,7 +2535,7 @@ func (c *ProjectsLocationsCertificateMapsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateMaps.get" call. @@ -2675,7 +2675,7 @@ func (c *ProjectsLocationsCertificateMapsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateMaps.list" call. @@ -2808,7 +2808,7 @@ func (c *ProjectsLocationsCertificateMapsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateMaps.patch" call. @@ -2917,7 +2917,7 @@ func (c *ProjectsLocationsCertificateMapsCertificateMapEntriesCreateCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateMaps.certificateMapEntries.create" call. @@ -3013,7 +3013,7 @@ func (c *ProjectsLocationsCertificateMapsCertificateMapEntriesDeleteCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateMaps.certificateMapEntries.delete" call. @@ -3121,7 +3121,7 @@ func (c *ProjectsLocationsCertificateMapsCertificateMapEntriesGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateMaps.certificateMapEntries.get" call. @@ -3265,7 +3265,7 @@ func (c *ProjectsLocationsCertificateMapsCertificateMapEntriesListCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateMaps.certificateMapEntries.list" call. @@ -3398,7 +3398,7 @@ func (c *ProjectsLocationsCertificateMapsCertificateMapEntriesPatchCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificateMaps.certificateMapEntries.patch" call. @@ -3507,7 +3507,7 @@ func (c *ProjectsLocationsCertificatesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificates.create" call. @@ -3603,7 +3603,7 @@ func (c *ProjectsLocationsCertificatesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificates.delete" call. @@ -3711,7 +3711,7 @@ func (c *ProjectsLocationsCertificatesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificates.get" call. @@ -3851,7 +3851,7 @@ func (c *ProjectsLocationsCertificatesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificates.list" call. @@ -3984,7 +3984,7 @@ func (c *ProjectsLocationsCertificatesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.certificates.patch" call. @@ -4093,7 +4093,7 @@ func (c *ProjectsLocationsDnsAuthorizationsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.dnsAuthorizations.create" call. @@ -4189,7 +4189,7 @@ func (c *ProjectsLocationsDnsAuthorizationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.dnsAuthorizations.delete" call. @@ -4297,7 +4297,7 @@ func (c *ProjectsLocationsDnsAuthorizationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.dnsAuthorizations.get" call. @@ -4438,7 +4438,7 @@ func (c *ProjectsLocationsDnsAuthorizationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.dnsAuthorizations.list" call. @@ -4571,7 +4571,7 @@ func (c *ProjectsLocationsDnsAuthorizationsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.dnsAuthorizations.patch" call. @@ -4680,7 +4680,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.operations.cancel" call. @@ -4778,7 +4778,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.operations.delete" call. @@ -4887,7 +4887,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.operations.get" call. @@ -5015,7 +5015,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.operations.list" call. @@ -5147,7 +5147,7 @@ func (c *ProjectsLocationsTrustConfigsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.trustConfigs.create" call. @@ -5252,7 +5252,7 @@ func (c *ProjectsLocationsTrustConfigsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.trustConfigs.delete" call. @@ -5360,7 +5360,7 @@ func (c *ProjectsLocationsTrustConfigsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.trustConfigs.get" call. @@ -5500,7 +5500,7 @@ func (c *ProjectsLocationsTrustConfigsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.trustConfigs.list" call. @@ -5633,7 +5633,7 @@ func (c *ProjectsLocationsTrustConfigsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "certificatemanager.projects.locations.trustConfigs.patch" call. diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index ff1066a10f2..5f736389728 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -290,7 +290,7 @@ ] }, "create": { - "description": "Creates a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/workspace/chat/create-spaces). If you receive the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).", + "description": "Creates a space with no members. Can be used to create a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/workspace/chat/create-spaces). If you receive the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. If you're a member of the [Developer Preview program](https://developers.google.com/workspace/preview), you can create a group chat in import mode using `spaceType.GROUP_CHAT`. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).", "flatPath": "v1/spaces", "httpMethod": "POST", "id": "chat.spaces.create", @@ -334,7 +334,7 @@ "type": "string" }, "useAdminAccess": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.delete` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).", + "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.delete` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).", "location": "query", "type": "boolean" } @@ -390,7 +390,7 @@ "type": "string" }, "useAdminAccess": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).", + "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).", "location": "query", "type": "boolean" } @@ -465,7 +465,7 @@ "type": "string" }, "useAdminAccess": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.spaces` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Some `FieldMask` values are not supported using admin access. For details, see the description of `update_mask`.", + "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.spaces` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Some `FieldMask` values are not supported using admin access. For details, see the description of `update_mask`.", "location": "query", "type": "boolean" } @@ -485,7 +485,7 @@ ] }, "search": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). Returns a list of spaces based on a user's search. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). The user must be an administrator for the Google Workspace organization. In the request, set `use_admin_access` to `true`.", + "description": "Returns a list of spaces in a Google Workspace organization based on an administrator's search. Requires [user authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges). In the request, set `use_admin_access` to `true`.", "flatPath": "v1/spaces:search", "httpMethod": "GET", "id": "chat.spaces.search", @@ -567,7 +567,7 @@ "type": "string" }, "useAdminAccess": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Creating app memberships or creating memberships for users outside the administrator's Google Workspace organization isn't supported using admin access.", + "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Creating app memberships or creating memberships for users outside the administrator's Google Workspace organization isn't supported using admin access.", "location": "query", "type": "boolean" } @@ -604,7 +604,7 @@ "type": "string" }, "useAdminAccess": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Deleting app memberships in a space isn't supported using admin access.", + "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Deleting app memberships in a space isn't supported using admin access.", "location": "query", "type": "boolean" } @@ -638,7 +638,7 @@ "type": "string" }, "useAdminAccess": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` [OAuth 2.0 scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Getting app memberships in a space isn't supported when using admin access.", + "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` [OAuth 2.0 scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Getting app memberships in a space isn't supported when using admin access.", "location": "query", "type": "boolean" } @@ -665,7 +665,7 @@ ], "parameters": { "filter": { - "description": "Optional. A query filter. You can filter memberships by a member's role ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) and type ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer Preview: You can also filter for `member.type` using the `!=` operator. To filter by both role and type, use the `AND` operator. To filter by either role or type, use the `OR` operator. Either `member.type = \"HUMAN\"` or `member.type != \"BOT\"` is required when `use_admin_access` is set to true. Other member type filters will be rejected. For example, the following queries are valid: ``` role = \"ROLE_MANAGER\" OR role = \"ROLE_MEMBER\" member.type = \"HUMAN\" AND role = \"ROLE_MANAGER\" member.type != \"BOT\" ``` The following queries are invalid: ``` member.type = \"HUMAN\" AND member.type = \"BOT\" role = \"ROLE_MANAGER\" AND role = \"ROLE_MEMBER\" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error.", + "description": "Optional. A query filter. You can filter memberships by a member's role ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) and type ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also filter for `member.type` using the `!=` operator. To filter by both role and type, use the `AND` operator. To filter by either role or type, use the `OR` operator. Either `member.type = \"HUMAN\"` or `member.type != \"BOT\"` is required when `use_admin_access` is set to true. Other member type filters will be rejected. For example, the following queries are valid: ``` role = \"ROLE_MANAGER\" OR role = \"ROLE_MEMBER\" member.type = \"HUMAN\" AND role = \"ROLE_MANAGER\" member.type != \"BOT\" ``` The following queries are invalid: ``` member.type = \"HUMAN\" AND member.type = \"BOT\" role = \"ROLE_MANAGER\" AND role = \"ROLE_MEMBER\" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error.", "location": "query", "type": "string" }, @@ -698,7 +698,7 @@ "type": "boolean" }, "useAdminAccess": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires either the `chat.admin.memberships.readonly` or `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Listing app memberships in a space isn't supported when using admin access.", + "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires either the `chat.admin.memberships.readonly` or `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Listing app memberships in a space isn't supported when using admin access.", "location": "query", "type": "boolean" } @@ -739,7 +739,7 @@ "type": "string" }, "useAdminAccess": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).", + "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).", "location": "query", "type": "boolean" } @@ -1344,7 +1344,7 @@ } } }, - "revision": "20240908", + "revision": "20240912", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -2341,7 +2341,7 @@ "description": "When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):" }, "sectionDividerStyle": { - "description": "The divider style between sections.", + "description": "The divider style between the header, sections and footer.", "enum": [ "DIVIDER_STYLE_UNSPECIFIED", "SOLID_DIVIDER", @@ -2490,7 +2490,7 @@ "type": "object" }, "GoogleAppsCardV1Columns": { - "description": "The `Columns` widget displays up to 2 columns in a card or dialog. You can add widgets to each column; the widgets appear in the order that they are specified. For an example in Google Chat apps, see [Display cards and dialogs in columns](https://developers.google.com/workspace/chat/format-structure-card-dialog#display_cards_and_dialogs_in_columns). The height of each column is determined by the taller column. For example, if the first column is taller than the second column, both columns have the height of the first column. Because each column can contain a different number of widgets, you can't define rows or align widgets between the columns. Columns are displayed side-by-side. You can customize the width of each column using the `HorizontalSizeStyle` field. If the user's screen width is too narrow, the second column wraps below the first: * On web, the second column wraps if the screen width is less than or equal to 480 pixels. * On iOS devices, the second column wraps if the screen width is less than or equal to 300 pt. * On Android devices, the second column wraps if the screen width is less than or equal to 320 dp. To include more than 2 columns, or to use rows, use the `Grid` widget. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", + "description": "The `Columns` widget displays up to 2 columns in a card or dialog. You can add widgets to each column; the widgets appear in the order that they are specified. For an example in Google Chat apps, see [Display cards and dialogs in columns](https://developers.google.com/workspace/chat/format-structure-card-dialog#display_cards_and_dialogs_in_columns). The height of each column is determined by the taller column. For example, if the first column is taller than the second column, both columns have the height of the first column. Because each column can contain a different number of widgets, you can't define rows or align widgets between the columns. Columns are displayed side-by-side. You can customize the width of each column using the `HorizontalSizeStyle` field. If the user's screen width is too narrow, the second column wraps below the first: * On web, the second column wraps if the screen width is less than or equal to 480 pixels. * On iOS devices, the second column wraps if the screen width is less than or equal to 300 pt. * On Android devices, the second column wraps if the screen width is less than or equal to 320 dp. To include more than two columns, or to use rows, use the `Grid` widget. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): The add-on UIs that support columns include: * The dialog displayed when users open the add-on from an email draft. * The dialog displayed when users open the add-on from the **Add attachment** menu in a Google Calendar event.", "id": "GoogleAppsCardV1Columns", "properties": { "columnItems": { @@ -3694,7 +3694,7 @@ "type": "object" }, "MembershipCount": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). Represents the count of memberships of a space, grouped into categories.", + "description": "Represents the count of memberships of a space, grouped into categories.", "id": "MembershipCount", "properties": { "joinedDirectHumanUserCount": { @@ -4260,7 +4260,7 @@ "type": "string" }, "displayName": { - "description": "The space's display name. Required when [creating a space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create). If you receive the error message `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. For direct messages, this field might be empty. Supports up to 128 characters.", + "description": "The space's display name. Required when [creating a space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) with a `spaceType` of `SPACE`. If you receive the error message `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. For direct messages, this field might be empty. Supports up to 128 characters.", "type": "string" }, "externalUserAllowed": { @@ -4272,14 +4272,14 @@ "type": "boolean" }, "lastActiveTime": { - "description": "Output only. Timestamp of the last message in the space. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Output only. Timestamp of the last message in the space.", "format": "google-datetime", "readOnly": true, "type": "string" }, "membershipCount": { "$ref": "MembershipCount", - "description": "Output only. The count of joined memberships grouped by member type. Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or `GROUP_CHAT`. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Output only. The count of joined memberships grouped by member type. Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or `GROUP_CHAT`.", "readOnly": true }, "name": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 2b9d28b48dc..a70ea8f67bf 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1936,7 +1936,8 @@ type GoogleAppsCardV1Card struct { // homepage cards and the contextual cards. Google Workspace Add-ons // (https://developers.google.com/workspace/add-ons): PeekCardHeader *GoogleAppsCardV1CardHeader `json:"peekCardHeader,omitempty"` - // SectionDividerStyle: The divider style between sections. + // SectionDividerStyle: The divider style between the header, sections and + // footer. // // Possible values: // "DIVIDER_STYLE_UNSPECIFIED" - Don't use. Unspecified. @@ -2148,9 +2149,12 @@ func (s GoogleAppsCardV1Column) MarshalJSON() ([]byte, error) { // second column wraps if the screen width is less than or equal to 480 pixels. // * On iOS devices, the second column wraps if the screen width is less than // or equal to 300 pt. * On Android devices, the second column wraps if the -// screen width is less than or equal to 320 dp. To include more than 2 +// screen width is less than or equal to 320 dp. To include more than two // columns, or to use rows, use the `Grid` widget. Google Workspace Add-ons and -// Chat apps (https://developers.google.com/workspace/extend): +// Chat apps (https://developers.google.com/workspace/extend): The add-on UIs +// that support columns include: * The dialog displayed when users open the +// add-on from an email draft. * The dialog displayed when users open the +// add-on from the **Add attachment** menu in a Google Calendar event. type GoogleAppsCardV1Columns struct { // ColumnItems: An array of columns. You can include up to 2 columns in a card // or dialog. @@ -3890,9 +3894,8 @@ func (s MembershipBatchUpdatedEventData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MembershipCount: Developer Preview -// (https://developers.google.com/workspace/preview). Represents the count of -// memberships of a space, grouped into categories. +// MembershipCount: Represents the count of memberships of a space, grouped +// into categories. type MembershipCount struct { // JoinedDirectHumanUserCount: Count of human users that have directly joined // the space, not counting users joined by having membership in a joined group. @@ -4747,12 +4750,12 @@ type Space struct { // `GROUP_CHAT` or `SPACE`. CreateTime string `json:"createTime,omitempty"` // DisplayName: The space's display name. Required when creating a space - // (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create). - // If you receive the error message `ALREADY_EXISTS` when creating a space or - // updating the `displayName`, try a different `displayName`. An existing space - // within the Google Workspace organization might already use this display - // name. For direct messages, this field might be empty. Supports up to 128 - // characters. + // (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) + // with a `spaceType` of `SPACE`. If you receive the error message + // `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a + // different `displayName`. An existing space within the Google Workspace + // organization might already use this display name. For direct messages, this + // field might be empty. Supports up to 128 characters. DisplayName string `json:"displayName,omitempty"` // ExternalUserAllowed: Immutable. Whether this space permits any Google Chat // user as a member. Input when creating a space in a Google Workspace @@ -4766,12 +4769,10 @@ type Space struct { // they aren't visible to users until the import is complete. ImportMode bool `json:"importMode,omitempty"` // LastActiveTime: Output only. Timestamp of the last message in the space. - // Developer Preview (https://developers.google.com/workspace/preview). LastActiveTime string `json:"lastActiveTime,omitempty"` // MembershipCount: Output only. The count of joined memberships grouped by // member type. Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or - // `GROUP_CHAT`. Developer Preview - // (https://developers.google.com/workspace/preview). + // `GROUP_CHAT`. MembershipCount *MembershipCount `json:"membershipCount,omitempty"` // Name: Resource name of the space. Format: `spaces/{space}` Where `{space}` // represents the system-assigned ID for the space. You can obtain the space ID @@ -5585,7 +5586,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -5760,7 +5761,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.media.upload" call. @@ -5884,7 +5885,7 @@ func (c *SpacesCompleteImportCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.completeImport" call. @@ -5933,12 +5934,15 @@ type SpacesCreateCall struct { header_ http.Header } -// Create: Creates a named space. Spaces grouped by topics aren't supported. -// For an example, see Create a space -// (https://developers.google.com/workspace/chat/create-spaces). If you receive -// the error message `ALREADY_EXISTS` when creating a space, try a different -// `displayName`. An existing space within the Google Workspace organization -// might already use this display name. Requires user authentication +// Create: Creates a space with no members. Can be used to create a named +// space. Spaces grouped by topics aren't supported. For an example, see Create +// a space (https://developers.google.com/workspace/chat/create-spaces). If you +// receive the error message `ALREADY_EXISTS` when creating a space, try a +// different `displayName`. An existing space within the Google Workspace +// organization might already use this display name. If you're a member of the +// Developer Preview program (https://developers.google.com/workspace/preview), +// you can create a group chat in import mode using `spaceType.GROUP_CHAT`. +// Requires user authentication // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). func (r *SpacesService) Create(space *Space) *SpacesCreateCall { c := &SpacesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5995,7 +5999,7 @@ func (c *SpacesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.create" call. @@ -6058,11 +6062,10 @@ func (r *SpacesService) Delete(name string) *SpacesDeleteCall { return c } -// UseAdminAccess sets the optional parameter "useAdminAccess": Developer -// Preview (https://developers.google.com/workspace/preview). When `true`, the -// method runs using the user's Google Workspace administrator privileges. The -// calling user must be a Google Workspace administrator with the manage chat -// and spaces conversations privilege +// UseAdminAccess sets the optional parameter "useAdminAccess": When `true`, +// the method runs using the user's Google Workspace administrator privileges. +// The calling user must be a Google Workspace administrator with the manage +// chat and spaces conversations privilege // (https://support.google.com/a/answer/13369245). Requires the // `chat.admin.delete` OAuth 2.0 scope // (https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). @@ -6109,7 +6112,7 @@ func (c *SpacesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.delete" call. @@ -6239,7 +6242,7 @@ func (c *SpacesFindDirectMessageCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.findDirectMessage" call. @@ -6305,11 +6308,10 @@ func (r *SpacesService) Get(name string) *SpacesGetCall { return c } -// UseAdminAccess sets the optional parameter "useAdminAccess": Developer -// Preview (https://developers.google.com/workspace/preview). When `true`, the -// method runs using the user's Google Workspace administrator privileges. The -// calling user must be a Google Workspace administrator with the manage chat -// and spaces conversations privilege +// UseAdminAccess sets the optional parameter "useAdminAccess": When `true`, +// the method runs using the user's Google Workspace administrator privileges. +// The calling user must be a Google Workspace administrator with the manage +// chat and spaces conversations privilege // (https://support.google.com/a/answer/13369245). Requires the // `chat.admin.spaces` or `chat.admin.spaces.readonly` OAuth 2.0 scopes // (https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). @@ -6367,7 +6369,7 @@ func (c *SpacesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.get" call. @@ -6514,7 +6516,7 @@ func (c *SpacesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.list" call. @@ -6652,11 +6654,10 @@ func (c *SpacesPatchCall) UpdateMask(updateMask string) *SpacesPatchCall { return c } -// UseAdminAccess sets the optional parameter "useAdminAccess": Developer -// Preview (https://developers.google.com/workspace/preview). When `true`, the -// method runs using the user's Google Workspace administrator privileges. The -// calling user must be a Google Workspace administrator with the manage chat -// and spaces conversations privilege +// UseAdminAccess sets the optional parameter "useAdminAccess": When `true`, +// the method runs using the user's Google Workspace administrator privileges. +// The calling user must be a Google Workspace administrator with the manage +// chat and spaces conversations privilege // (https://support.google.com/a/answer/13369245). Requires the // `chat.admin.spaces` OAuth 2.0 scope // (https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). @@ -6709,7 +6710,7 @@ func (c *SpacesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.patch" call. @@ -6757,12 +6758,11 @@ type SpacesSearchCall struct { header_ http.Header } -// Search: Developer Preview (https://developers.google.com/workspace/preview). -// Returns a list of spaces based on a user's search. Requires user -// authentication -// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). -// The user must be an administrator for the Google Workspace organization. In -// the request, set `use_admin_access` to `true`. +// Search: Returns a list of spaces in a Google Workspace organization based on +// an administrator's search. Requires user authentication with administrator +// privileges +// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges). +// In the request, set `use_admin_access` to `true`. func (r *SpacesService) Search() *SpacesSearchCall { c := &SpacesSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c @@ -6907,7 +6907,7 @@ func (c *SpacesSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.search" call. @@ -7061,7 +7061,7 @@ func (c *SpacesSetupCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.setup" call. @@ -7133,11 +7133,10 @@ func (r *SpacesMembersService) Create(parent string, membership *Membership) *Sp return c } -// UseAdminAccess sets the optional parameter "useAdminAccess": Developer -// Preview (https://developers.google.com/workspace/preview). When `true`, the -// method runs using the user's Google Workspace administrator privileges. The -// calling user must be a Google Workspace administrator with the manage chat -// and spaces conversations privilege +// UseAdminAccess sets the optional parameter "useAdminAccess": When `true`, +// the method runs using the user's Google Workspace administrator privileges. +// The calling user must be a Google Workspace administrator with the manage +// chat and spaces conversations privilege // (https://support.google.com/a/answer/13369245). Requires the // `chat.admin.memberships` OAuth 2.0 scope // (https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). @@ -7191,7 +7190,7 @@ func (c *SpacesMembersCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.members.create" call. @@ -7261,11 +7260,10 @@ func (r *SpacesMembersService) Delete(name string) *SpacesMembersDeleteCall { return c } -// UseAdminAccess sets the optional parameter "useAdminAccess": Developer -// Preview (https://developers.google.com/workspace/preview). When `true`, the -// method runs using the user's Google Workspace administrator privileges. The -// calling user must be a Google Workspace administrator with the manage chat -// and spaces conversations privilege +// UseAdminAccess sets the optional parameter "useAdminAccess": When `true`, +// the method runs using the user's Google Workspace administrator privileges. +// The calling user must be a Google Workspace administrator with the manage +// chat and spaces conversations privilege // (https://support.google.com/a/answer/13369245). Requires the // `chat.admin.memberships` OAuth 2.0 scope // (https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). @@ -7313,7 +7311,7 @@ func (c *SpacesMembersDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.members.delete" call. @@ -7388,11 +7386,10 @@ func (r *SpacesMembersService) Get(name string) *SpacesMembersGetCall { return c } -// UseAdminAccess sets the optional parameter "useAdminAccess": Developer -// Preview (https://developers.google.com/workspace/preview). When `true`, the -// method runs using the user's Google Workspace administrator privileges. The -// calling user must be a Google Workspace administrator with the manage chat -// and spaces conversations privilege +// UseAdminAccess sets the optional parameter "useAdminAccess": When `true`, +// the method runs using the user's Google Workspace administrator privileges. +// The calling user must be a Google Workspace administrator with the manage +// chat and spaces conversations privilege // (https://support.google.com/a/answer/13369245). Requires the // `chat.admin.memberships` or `chat.admin.memberships.readonly` OAuth 2.0 // scopes @@ -7452,7 +7449,7 @@ func (c *SpacesMembersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.members.get" call. @@ -7532,14 +7529,14 @@ func (r *SpacesMembersService) List(parent string) *SpacesMembersListCall { // and type (`member.type` // (https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). // To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. To filter -// by type, set `member.type` to `HUMAN` or `BOT`. Developer Preview: You can -// also filter for `member.type` using the `!=` operator. To filter by both -// role and type, use the `AND` operator. To filter by either role or type, use -// the `OR` operator. Either `member.type = "HUMAN" or `member.type != "BOT" -// is required when `use_admin_access` is set to true. Other member type -// filters will be rejected. For example, the following queries are valid: ``` -// role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" member.type = "HUMAN" AND role -// = "ROLE_MANAGER" member.type != "BOT" ``` The following queries are invalid: +// by type, set `member.type` to `HUMAN` or `BOT`. You can also filter for +// `member.type` using the `!=` operator. To filter by both role and type, use +// the `AND` operator. To filter by either role or type, use the `OR` operator. +// Either `member.type = "HUMAN" or `member.type != "BOT" is required when +// `use_admin_access` is set to true. Other member type filters will be +// rejected. For example, the following queries are valid: ``` role = +// "ROLE_MANAGER" OR role = "ROLE_MEMBER" member.type = "HUMAN" AND role = +// "ROLE_MANAGER" member.type != "BOT" ``` The following queries are invalid: // ``` member.type = "HUMAN" AND member.type = "BOT" role = "ROLE_MANAGER" AND // role = "ROLE_MEMBER" ``` Invalid queries are rejected by the server with an // `INVALID_ARGUMENT` error. @@ -7588,11 +7585,10 @@ func (c *SpacesMembersListCall) ShowInvited(showInvited bool) *SpacesMembersList return c } -// UseAdminAccess sets the optional parameter "useAdminAccess": Developer -// Preview (https://developers.google.com/workspace/preview). When `true`, the -// method runs using the user's Google Workspace administrator privileges. The -// calling user must be a Google Workspace administrator with the manage chat -// and spaces conversations privilege +// UseAdminAccess sets the optional parameter "useAdminAccess": When `true`, +// the method runs using the user's Google Workspace administrator privileges. +// The calling user must be a Google Workspace administrator with the manage +// chat and spaces conversations privilege // (https://support.google.com/a/answer/13369245). Requires either the // `chat.admin.memberships.readonly` or `chat.admin.memberships` OAuth 2.0 // scope @@ -7652,7 +7648,7 @@ func (c *SpacesMembersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.members.list" call. @@ -7745,11 +7741,10 @@ func (c *SpacesMembersPatchCall) UpdateMask(updateMask string) *SpacesMembersPat return c } -// UseAdminAccess sets the optional parameter "useAdminAccess": Developer -// Preview (https://developers.google.com/workspace/preview). When `true`, the -// method runs using the user's Google Workspace administrator privileges. The -// calling user must be a Google Workspace administrator with the manage chat -// and spaces conversations privilege +// UseAdminAccess sets the optional parameter "useAdminAccess": When `true`, +// the method runs using the user's Google Workspace administrator privileges. +// The calling user must be a Google Workspace administrator with the manage +// chat and spaces conversations privilege // (https://support.google.com/a/answer/13369245). Requires the // `chat.admin.memberships` OAuth 2.0 scope // (https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). @@ -7800,7 +7795,7 @@ func (c *SpacesMembersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.members.patch" call. @@ -7976,7 +7971,7 @@ func (c *SpacesMessagesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.messages.create" call. @@ -8095,7 +8090,7 @@ func (c *SpacesMessagesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.messages.delete" call. @@ -8214,7 +8209,7 @@ func (c *SpacesMessagesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.messages.get" call. @@ -8391,7 +8386,7 @@ func (c *SpacesMessagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.messages.list" call. @@ -8559,7 +8554,7 @@ func (c *SpacesMessagesPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.messages.patch" call. @@ -8705,7 +8700,7 @@ func (c *SpacesMessagesUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.messages.update" call. @@ -8819,7 +8814,7 @@ func (c *SpacesMessagesAttachmentsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.messages.attachments.get" call. @@ -8925,7 +8920,7 @@ func (c *SpacesMessagesReactionsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.messages.reactions.create" call. @@ -9025,7 +9020,7 @@ func (c *SpacesMessagesReactionsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.messages.reactions.delete" call. @@ -9183,7 +9178,7 @@ func (c *SpacesMessagesReactionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.messages.reactions.list" call. @@ -9322,7 +9317,7 @@ func (c *SpacesSpaceEventsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.spaceEvents.get" call. @@ -9493,7 +9488,7 @@ func (c *SpacesSpaceEventsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.spaces.spaceEvents.list" call. @@ -9634,7 +9629,7 @@ func (c *UsersSpacesGetSpaceReadStateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.users.spaces.getSpaceReadState" call. @@ -9755,7 +9750,7 @@ func (c *UsersSpacesUpdateSpaceReadStateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.users.spaces.updateSpaceReadState" call. @@ -9875,7 +9870,7 @@ func (c *UsersSpacesThreadsGetThreadReadStateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chat.users.spaces.threads.getThreadReadState" call. diff --git a/checks/v1alpha/checks-gen.go b/checks/v1alpha/checks-gen.go index 248288317da..7044cd0c635 100644 --- a/checks/v1alpha/checks-gen.go +++ b/checks/v1alpha/checks-gen.go @@ -1963,7 +1963,7 @@ func (c *AccountsAppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.accounts.apps.get" call. @@ -2088,7 +2088,7 @@ func (c *AccountsAppsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.accounts.apps.list" call. @@ -2219,7 +2219,7 @@ func (c *AccountsAppsOperationsCancelCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.accounts.apps.operations.cancel" call. @@ -2317,7 +2317,7 @@ func (c *AccountsAppsOperationsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.accounts.apps.operations.delete" call. @@ -2426,7 +2426,7 @@ func (c *AccountsAppsOperationsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.accounts.apps.operations.get" call. @@ -2554,7 +2554,7 @@ func (c *AccountsAppsOperationsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.accounts.apps.operations.list" call. @@ -2685,7 +2685,7 @@ func (c *AccountsAppsOperationsWaitCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.accounts.apps.operations.wait" call. @@ -2805,7 +2805,7 @@ func (c *AccountsAppsReportsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.accounts.apps.reports.get" call. @@ -2950,7 +2950,7 @@ func (c *AccountsAppsReportsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.accounts.apps.reports.list" call. @@ -3081,7 +3081,7 @@ func (c *AccountsReposOperationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.accounts.repos.operations.get" call. @@ -3247,7 +3247,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "checks.media.upload" call. diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index 4bb53a28a9b..f407fd42aa6 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -4073,7 +4073,7 @@ func (c *CustomersAppsCountChromeAppRequestsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.apps.countChromeAppRequests" call. @@ -4236,7 +4236,7 @@ func (c *CustomersAppsFetchDevicesRequestingExtensionCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.apps.fetchDevicesRequestingExtension" call. @@ -4397,7 +4397,7 @@ func (c *CustomersAppsFetchUsersRequestingExtensionCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.apps.fetchUsersRequestingExtension" call. @@ -4530,7 +4530,7 @@ func (c *CustomersAppsAndroidGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.apps.android.get" call. @@ -4642,7 +4642,7 @@ func (c *CustomersAppsChromeGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.apps.chrome.get" call. @@ -4754,7 +4754,7 @@ func (c *CustomersAppsWebGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.apps.web.get" call. @@ -4870,7 +4870,7 @@ func (c *CustomersReportsCountChromeBrowsersNeedingAttentionCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.countChromeBrowsersNeedingAttention" call. @@ -5002,7 +5002,7 @@ func (c *CustomersReportsCountChromeCrashEventsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.countChromeCrashEvents" call. @@ -5140,7 +5140,7 @@ func (c *CustomersReportsCountChromeDevicesReachingAutoExpirationDateCall) doReq googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate" call. @@ -5265,7 +5265,7 @@ func (c *CustomersReportsCountChromeDevicesThatNeedAttentionCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.countChromeDevicesThatNeedAttention" call. @@ -5390,7 +5390,7 @@ func (c *CustomersReportsCountChromeHardwareFleetDevicesCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.countChromeHardwareFleetDevices" call. @@ -5528,7 +5528,7 @@ func (c *CustomersReportsCountChromeVersionsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.countChromeVersions" call. @@ -5697,7 +5697,7 @@ func (c *CustomersReportsCountInstalledAppsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.countInstalledApps" call. @@ -5869,7 +5869,7 @@ func (c *CustomersReportsCountPrintJobsByPrinterCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.countPrintJobsByPrinter" call. @@ -6041,7 +6041,7 @@ func (c *CustomersReportsCountPrintJobsByUserCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.countPrintJobsByUser" call. @@ -6220,7 +6220,7 @@ func (c *CustomersReportsEnumeratePrintJobsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.enumeratePrintJobs" call. @@ -6411,7 +6411,7 @@ func (c *CustomersReportsFindInstalledAppDevicesCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.reports.findInstalledAppDevices" call. @@ -6555,7 +6555,7 @@ func (c *CustomersTelemetryDevicesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.telemetry.devices.get" call. @@ -6708,7 +6708,7 @@ func (c *CustomersTelemetryDevicesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.telemetry.devices.list" call. @@ -6879,7 +6879,7 @@ func (c *CustomersTelemetryEventsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.telemetry.events.list" call. @@ -7003,7 +7003,7 @@ func (c *CustomersTelemetryNotificationConfigsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.telemetry.notificationConfigs.create" call. @@ -7100,7 +7100,7 @@ func (c *CustomersTelemetryNotificationConfigsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.telemetry.notificationConfigs.delete" call. @@ -7227,7 +7227,7 @@ func (c *CustomersTelemetryNotificationConfigsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.telemetry.notificationConfigs.list" call. @@ -7367,7 +7367,7 @@ func (c *CustomersTelemetryUsersGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.telemetry.users.get" call. @@ -7508,7 +7508,7 @@ func (c *CustomersTelemetryUsersListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromemanagement.customers.telemetry.users.list" call. diff --git a/chromepolicy/v1/chromepolicy-gen.go b/chromepolicy/v1/chromepolicy-gen.go index f90cbef5f0d..f0feebea737 100644 --- a/chromepolicy/v1/chromepolicy-gen.go +++ b/chromepolicy/v1/chromepolicy-gen.go @@ -1918,7 +1918,7 @@ func (c *CustomersPoliciesResolveCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.resolve" call. @@ -2047,7 +2047,7 @@ func (c *CustomersPoliciesGroupsBatchDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.groups.batchDelete" call. @@ -2155,7 +2155,7 @@ func (c *CustomersPoliciesGroupsBatchModifyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.groups.batchModify" call. @@ -2261,7 +2261,7 @@ func (c *CustomersPoliciesGroupsListGroupPriorityOrderingCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.groups.listGroupPriorityOrdering" call. @@ -2367,7 +2367,7 @@ func (c *CustomersPoliciesGroupsUpdateGroupPriorityOrderingCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.groups.updateGroupPriorityOrdering" call. @@ -2469,7 +2469,7 @@ func (c *CustomersPoliciesNetworksDefineCertificateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.networks.defineCertificate" call. @@ -2571,7 +2571,7 @@ func (c *CustomersPoliciesNetworksDefineNetworkCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.networks.defineNetwork" call. @@ -2673,7 +2673,7 @@ func (c *CustomersPoliciesNetworksRemoveCertificateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.networks.removeCertificate" call. @@ -2775,7 +2775,7 @@ func (c *CustomersPoliciesNetworksRemoveNetworkCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.networks.removeNetwork" call. @@ -2884,7 +2884,7 @@ func (c *CustomersPoliciesOrgunitsBatchInheritCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.orgunits.batchInherit" call. @@ -2992,7 +2992,7 @@ func (c *CustomersPoliciesOrgunitsBatchModifyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policies.orgunits.batchModify" call. @@ -3100,7 +3100,7 @@ func (c *CustomersPolicySchemasGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policySchemas.get" call. @@ -3231,7 +3231,7 @@ func (c *CustomersPolicySchemasListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.customers.policySchemas.list" call. @@ -3405,7 +3405,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromepolicy.media.upload" call. diff --git a/chromeuxreport/v1/chromeuxreport-api.json b/chromeuxreport/v1/chromeuxreport-api.json index 4645cdbd1d1..6cf2a248d49 100644 --- a/chromeuxreport/v1/chromeuxreport-api.json +++ b/chromeuxreport/v1/chromeuxreport-api.json @@ -131,7 +131,7 @@ } } }, - "revision": "20240102", + "revision": "20240916", "rootUrl": "https://chromeuxreport.googleapis.com/", "schemas": { "Bin": { @@ -140,8 +140,7 @@ "properties": { "density": { "description": "The proportion of users that experienced this bin's value for the given metric.", - "format": "double", - "type": "number" + "type": "any" }, "end": { "description": "End is the end of the data bin. If end is not populated, then the bin has no end and is valid from start to +inf.", diff --git a/chromeuxreport/v1/chromeuxreport-gen.go b/chromeuxreport/v1/chromeuxreport-gen.go index 2d989fa46fd..ffe5aa8c170 100644 --- a/chromeuxreport/v1/chromeuxreport-gen.go +++ b/chromeuxreport/v1/chromeuxreport-gen.go @@ -162,7 +162,7 @@ type RecordsService struct { type Bin struct { // Density: The proportion of users that experienced this bin's value for the // given metric. - Density float64 `json:"density,omitempty"` + Density interface{} `json:"density,omitempty"` // End: End is the end of the data bin. If end is not populated, then the bin // has no end and is valid from start to +inf. End interface{} `json:"end,omitempty"` @@ -186,20 +186,6 @@ func (s Bin) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *Bin) UnmarshalJSON(data []byte) error { - type NoMethod Bin - var s1 struct { - Density gensupport.JSONFloat64 `json:"density"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Density = float64(s1.Density) - return nil -} - // CollectionPeriod: The collection period is a date range which includes the // `first` and `last` day. type CollectionPeriod struct { @@ -884,7 +870,7 @@ func (c *RecordsQueryHistoryRecordCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromeuxreport.records.queryHistoryRecord" call. @@ -981,7 +967,7 @@ func (c *RecordsQueryRecordCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "chromeuxreport.records.queryRecord" call. diff --git a/civicinfo/v2/civicinfo-gen.go b/civicinfo/v2/civicinfo-gen.go index 36f28720112..d1594ccd038 100644 --- a/civicinfo/v2/civicinfo-gen.go +++ b/civicinfo/v2/civicinfo-gen.go @@ -1204,7 +1204,7 @@ func (c *DivisionsQueryDivisionByAddressCall) doRequest(alt string) (*http.Respo return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "civicinfo.divisions.queryDivisionByAddress" call. @@ -1315,7 +1315,7 @@ func (c *DivisionsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "civicinfo.divisions.search" call. @@ -1423,7 +1423,7 @@ func (c *ElectionsElectionQueryCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "civicinfo.elections.electionQuery" call. @@ -1568,7 +1568,7 @@ func (c *ElectionsVoterInfoQueryCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "civicinfo.elections.voterInfoQuery" call. @@ -1729,7 +1729,7 @@ func (c *RepresentativesRepresentativeInfoByAddressCall) doRequest(alt string) ( return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "civicinfo.representatives.representativeInfoByAddress" call. @@ -1891,7 +1891,7 @@ func (c *RepresentativesRepresentativeInfoByDivisionCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "ocdId": c.ocdId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "civicinfo.representatives.representativeInfoByDivision" call. diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index 57cd7ebcc25..101025c018c 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -3063,7 +3063,7 @@ func (c *CoursesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.create" call. @@ -3162,7 +3162,7 @@ func (c *CoursesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.delete" call. @@ -3273,7 +3273,7 @@ func (c *CoursesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.get" call. @@ -3452,7 +3452,7 @@ func (c *CoursesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.list" call. @@ -3596,7 +3596,7 @@ func (c *CoursesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.patch" call. @@ -3702,7 +3702,7 @@ func (c *CoursesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.update" call. @@ -3810,7 +3810,7 @@ func (c *CoursesAliasesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.aliases.create" call. @@ -3915,7 +3915,7 @@ func (c *CoursesAliasesDeleteCall) doRequest(alt string) (*http.Response, error) "courseId": c.courseId, "alias": c.aliasid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.aliases.delete" call. @@ -4043,7 +4043,7 @@ func (c *CoursesAliasesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.aliases.list" call. @@ -4173,7 +4173,7 @@ func (c *CoursesAnnouncementsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.create" call. @@ -4282,7 +4282,7 @@ func (c *CoursesAnnouncementsDeleteCall) doRequest(alt string) (*http.Response, "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.delete" call. @@ -4398,7 +4398,7 @@ func (c *CoursesAnnouncementsGetCall) doRequest(alt string) (*http.Response, err "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.get" call. @@ -4545,7 +4545,7 @@ func (c *CoursesAnnouncementsGetAddOnContextCall) doRequest(alt string) (*http.R "courseId": c.courseId, "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.getAddOnContext" call. @@ -4714,7 +4714,7 @@ func (c *CoursesAnnouncementsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.list" call. @@ -4847,7 +4847,7 @@ func (c *CoursesAnnouncementsModifyAssigneesCall) doRequest(alt string) (*http.R "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.modifyAssignees" call. @@ -4971,7 +4971,7 @@ func (c *CoursesAnnouncementsPatchCall) doRequest(alt string) (*http.Response, e "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.patch" call. @@ -5101,7 +5101,7 @@ func (c *CoursesAnnouncementsAddOnAttachmentsCreateCall) doRequest(alt string) ( "courseId": c.courseId, "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.addOnAttachments.create" call. @@ -5218,7 +5218,7 @@ func (c *CoursesAnnouncementsAddOnAttachmentsDeleteCall) doRequest(alt string) ( "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.addOnAttachments.delete" call. @@ -5346,7 +5346,7 @@ func (c *CoursesAnnouncementsAddOnAttachmentsGetCall) doRequest(alt string) (*ht "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.addOnAttachments.get" call. @@ -5491,7 +5491,7 @@ func (c *CoursesAnnouncementsAddOnAttachmentsListCall) doRequest(alt string) (*h "courseId": c.courseId, "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.addOnAttachments.list" call. @@ -5647,7 +5647,7 @@ func (c *CoursesAnnouncementsAddOnAttachmentsPatchCall) doRequest(alt string) (* "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.announcements.addOnAttachments.patch" call. @@ -5761,7 +5761,7 @@ func (c *CoursesCourseWorkCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.create" call. @@ -5870,7 +5870,7 @@ func (c *CoursesCourseWorkDeleteCall) doRequest(alt string) (*http.Response, err "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.delete" call. @@ -5986,7 +5986,7 @@ func (c *CoursesCourseWorkGetCall) doRequest(alt string) (*http.Response, error) "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.get" call. @@ -6133,7 +6133,7 @@ func (c *CoursesCourseWorkGetAddOnContextCall) doRequest(alt string) (*http.Resp "courseId": c.courseId, "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.getAddOnContext" call. @@ -6302,7 +6302,7 @@ func (c *CoursesCourseWorkListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.list" call. @@ -6435,7 +6435,7 @@ func (c *CoursesCourseWorkModifyAssigneesCall) doRequest(alt string) (*http.Resp "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.modifyAssignees" call. @@ -6569,7 +6569,7 @@ func (c *CoursesCourseWorkPatchCall) doRequest(alt string) (*http.Response, erro "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.patch" call. @@ -6699,7 +6699,7 @@ func (c *CoursesCourseWorkAddOnAttachmentsCreateCall) doRequest(alt string) (*ht "courseId": c.courseId, "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.addOnAttachments.create" call. @@ -6816,7 +6816,7 @@ func (c *CoursesCourseWorkAddOnAttachmentsDeleteCall) doRequest(alt string) (*ht "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.addOnAttachments.delete" call. @@ -6944,7 +6944,7 @@ func (c *CoursesCourseWorkAddOnAttachmentsGetCall) doRequest(alt string) (*http. "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.addOnAttachments.get" call. @@ -7089,7 +7089,7 @@ func (c *CoursesCourseWorkAddOnAttachmentsListCall) doRequest(alt string) (*http "courseId": c.courseId, "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.addOnAttachments.list" call. @@ -7245,7 +7245,7 @@ func (c *CoursesCourseWorkAddOnAttachmentsPatchCall) doRequest(alt string) (*htt "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.addOnAttachments.patch" call. @@ -7377,7 +7377,7 @@ func (c *CoursesCourseWorkAddOnAttachmentsStudentSubmissionsGetCall) doRequest(a "attachmentId": c.attachmentId, "submissionId": c.submissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.addOnAttachments.studentSubmissions.get" call. @@ -7516,7 +7516,7 @@ func (c *CoursesCourseWorkAddOnAttachmentsStudentSubmissionsPatchCall) doRequest "attachmentId": c.attachmentId, "submissionId": c.submissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.addOnAttachments.studentSubmissions.patch" call. @@ -7637,7 +7637,7 @@ func (c *CoursesCourseWorkStudentSubmissionsGetCall) doRequest(alt string) (*htt "courseWorkId": c.courseWorkId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.studentSubmissions.get" call. @@ -7827,7 +7827,7 @@ func (c *CoursesCourseWorkStudentSubmissionsListCall) doRequest(alt string) (*ht "courseId": c.courseId, "courseWorkId": c.courseWorkId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.studentSubmissions.list" call. @@ -7969,7 +7969,7 @@ func (c *CoursesCourseWorkStudentSubmissionsModifyAttachmentsCall) doRequest(alt "courseWorkId": c.courseWorkId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.studentSubmissions.modifyAttachments" call. @@ -8100,7 +8100,7 @@ func (c *CoursesCourseWorkStudentSubmissionsPatchCall) doRequest(alt string) (*h "courseWorkId": c.courseWorkId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.studentSubmissions.patch" call. @@ -8224,7 +8224,7 @@ func (c *CoursesCourseWorkStudentSubmissionsReclaimCall) doRequest(alt string) ( "courseWorkId": c.courseWorkId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.studentSubmissions.reclaim" call. @@ -8346,7 +8346,7 @@ func (c *CoursesCourseWorkStudentSubmissionsReturnCall) doRequest(alt string) (* "courseWorkId": c.courseWorkId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.studentSubmissions.return" call. @@ -8467,7 +8467,7 @@ func (c *CoursesCourseWorkStudentSubmissionsTurnInCall) doRequest(alt string) (* "courseWorkId": c.courseWorkId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWork.studentSubmissions.turnIn" call. @@ -8575,7 +8575,7 @@ func (c *CoursesCourseWorkMaterialsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.create" call. @@ -8685,7 +8685,7 @@ func (c *CoursesCourseWorkMaterialsDeleteCall) doRequest(alt string) (*http.Resp "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.delete" call. @@ -8801,7 +8801,7 @@ func (c *CoursesCourseWorkMaterialsGetCall) doRequest(alt string) (*http.Respons "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.get" call. @@ -8949,7 +8949,7 @@ func (c *CoursesCourseWorkMaterialsGetAddOnContextCall) doRequest(alt string) (* "courseId": c.courseId, "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.getAddOnContext" call. @@ -9137,7 +9137,7 @@ func (c *CoursesCourseWorkMaterialsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.list" call. @@ -9284,7 +9284,7 @@ func (c *CoursesCourseWorkMaterialsPatchCall) doRequest(alt string) (*http.Respo "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.patch" call. @@ -9415,7 +9415,7 @@ func (c *CoursesCourseWorkMaterialsAddOnAttachmentsCreateCall) doRequest(alt str "courseId": c.courseId, "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.addOnAttachments.create" call. @@ -9532,7 +9532,7 @@ func (c *CoursesCourseWorkMaterialsAddOnAttachmentsDeleteCall) doRequest(alt str "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.addOnAttachments.delete" call. @@ -9660,7 +9660,7 @@ func (c *CoursesCourseWorkMaterialsAddOnAttachmentsGetCall) doRequest(alt string "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.addOnAttachments.get" call. @@ -9805,7 +9805,7 @@ func (c *CoursesCourseWorkMaterialsAddOnAttachmentsListCall) doRequest(alt strin "courseId": c.courseId, "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.addOnAttachments.list" call. @@ -9961,7 +9961,7 @@ func (c *CoursesCourseWorkMaterialsAddOnAttachmentsPatchCall) doRequest(alt stri "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.courseWorkMaterials.addOnAttachments.patch" call. @@ -10109,7 +10109,7 @@ func (c *CoursesPostsGetAddOnContextCall) doRequest(alt string) (*http.Response, "courseId": c.courseId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.posts.getAddOnContext" call. @@ -10239,7 +10239,7 @@ func (c *CoursesPostsAddOnAttachmentsCreateCall) doRequest(alt string) (*http.Re "courseId": c.courseId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.posts.addOnAttachments.create" call. @@ -10356,7 +10356,7 @@ func (c *CoursesPostsAddOnAttachmentsDeleteCall) doRequest(alt string) (*http.Re "postId": c.postId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.posts.addOnAttachments.delete" call. @@ -10484,7 +10484,7 @@ func (c *CoursesPostsAddOnAttachmentsGetCall) doRequest(alt string) (*http.Respo "postId": c.postId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.posts.addOnAttachments.get" call. @@ -10629,7 +10629,7 @@ func (c *CoursesPostsAddOnAttachmentsListCall) doRequest(alt string) (*http.Resp "courseId": c.courseId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.posts.addOnAttachments.list" call. @@ -10785,7 +10785,7 @@ func (c *CoursesPostsAddOnAttachmentsPatchCall) doRequest(alt string) (*http.Res "postId": c.postId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.posts.addOnAttachments.patch" call. @@ -10917,7 +10917,7 @@ func (c *CoursesPostsAddOnAttachmentsStudentSubmissionsGetCall) doRequest(alt st "attachmentId": c.attachmentId, "submissionId": c.submissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.posts.addOnAttachments.studentSubmissions.get" call. @@ -11056,7 +11056,7 @@ func (c *CoursesPostsAddOnAttachmentsStudentSubmissionsPatchCall) doRequest(alt "attachmentId": c.attachmentId, "submissionId": c.submissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.posts.addOnAttachments.studentSubmissions.patch" call. @@ -11179,7 +11179,7 @@ func (c *CoursesStudentsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.students.create" call. @@ -11284,7 +11284,7 @@ func (c *CoursesStudentsDeleteCall) doRequest(alt string) (*http.Response, error "courseId": c.courseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.students.delete" call. @@ -11401,7 +11401,7 @@ func (c *CoursesStudentsGetCall) doRequest(alt string) (*http.Response, error) { "courseId": c.courseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.students.get" call. @@ -11529,7 +11529,7 @@ func (c *CoursesStudentsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.students.list" call. @@ -11664,7 +11664,7 @@ func (c *CoursesTeachersCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.teachers.create" call. @@ -11773,7 +11773,7 @@ func (c *CoursesTeachersDeleteCall) doRequest(alt string) (*http.Response, error "courseId": c.courseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.teachers.delete" call. @@ -11890,7 +11890,7 @@ func (c *CoursesTeachersGetCall) doRequest(alt string) (*http.Response, error) { "courseId": c.courseId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.teachers.get" call. @@ -12018,7 +12018,7 @@ func (c *CoursesTeachersListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.teachers.list" call. @@ -12146,7 +12146,7 @@ func (c *CoursesTopicsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.topics.create" call. @@ -12250,7 +12250,7 @@ func (c *CoursesTopicsDeleteCall) doRequest(alt string) (*http.Response, error) "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.topics.delete" call. @@ -12365,7 +12365,7 @@ func (c *CoursesTopicsGetCall) doRequest(alt string) (*http.Response, error) { "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.topics.get" call. @@ -12494,7 +12494,7 @@ func (c *CoursesTopicsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "courseId": c.courseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.topics.list" call. @@ -12638,7 +12638,7 @@ func (c *CoursesTopicsPatchCall) doRequest(alt string) (*http.Response, error) { "courseId": c.courseId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.courses.topics.patch" call. @@ -12741,7 +12741,7 @@ func (c *InvitationsAcceptCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.invitations.accept" call. @@ -12843,7 +12843,7 @@ func (c *InvitationsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.invitations.create" call. @@ -12941,7 +12941,7 @@ func (c *InvitationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.invitations.delete" call. @@ -13051,7 +13051,7 @@ func (c *InvitationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.invitations.get" call. @@ -13188,7 +13188,7 @@ func (c *InvitationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.invitations.list" call. @@ -13325,7 +13325,7 @@ func (c *RegistrationsCreateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.registrations.create" call. @@ -13421,7 +13421,7 @@ func (c *RegistrationsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "registrationId": c.registrationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.registrations.delete" call. @@ -13533,7 +13533,7 @@ func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.userProfiles.get" call. @@ -13656,7 +13656,7 @@ func (c *UserProfilesGuardianInvitationsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "studentId": c.studentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.userProfiles.guardianInvitations.create" call. @@ -13778,7 +13778,7 @@ func (c *UserProfilesGuardianInvitationsGetCall) doRequest(alt string) (*http.Re "studentId": c.studentId, "invitationId": c.invitationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.userProfiles.guardianInvitations.get" call. @@ -13943,7 +13943,7 @@ func (c *UserProfilesGuardianInvitationsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "studentId": c.studentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.userProfiles.guardianInvitations.list" call. @@ -14093,7 +14093,7 @@ func (c *UserProfilesGuardianInvitationsPatchCall) doRequest(alt string) (*http. "studentId": c.studentId, "invitationId": c.invitationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.userProfiles.guardianInvitations.patch" call. @@ -14206,7 +14206,7 @@ func (c *UserProfilesGuardiansDeleteCall) doRequest(alt string) (*http.Response, "studentId": c.studentId, "guardianId": c.guardianId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.userProfiles.guardians.delete" call. @@ -14329,7 +14329,7 @@ func (c *UserProfilesGuardiansGetCall) doRequest(alt string) (*http.Response, er "studentId": c.studentId, "guardianId": c.guardianId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.userProfiles.guardians.get" call. @@ -14481,7 +14481,7 @@ func (c *UserProfilesGuardiansListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "studentId": c.studentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "classroom.userProfiles.guardians.list" call. diff --git a/cloudasset/v1/cloudasset-gen.go b/cloudasset/v1/cloudasset-gen.go index cc589c01787..9f90ae92ccd 100644 --- a/cloudasset/v1/cloudasset-gen.go +++ b/cloudasset/v1/cloudasset-gen.go @@ -6016,7 +6016,7 @@ func (c *AssetsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.assets.list" call. @@ -6163,7 +6163,7 @@ func (c *EffectiveIamPoliciesBatchGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.effectiveIamPolicies.batchGet" call. @@ -6270,7 +6270,7 @@ func (c *FeedsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.feeds.create" call. @@ -6367,7 +6367,7 @@ func (c *FeedsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.feeds.delete" call. @@ -6476,7 +6476,7 @@ func (c *FeedsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.feeds.get" call. @@ -6585,7 +6585,7 @@ func (c *FeedsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.feeds.list" call. @@ -6692,7 +6692,7 @@ func (c *FeedsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.feeds.patch" call. @@ -6801,7 +6801,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.operations.get" call. @@ -6917,7 +6917,7 @@ func (c *SavedQueriesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.savedQueries.create" call. @@ -7015,7 +7015,7 @@ func (c *SavedQueriesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.savedQueries.delete" call. @@ -7125,7 +7125,7 @@ func (c *SavedQueriesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.savedQueries.get" call. @@ -7263,7 +7263,7 @@ func (c *SavedQueriesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.savedQueries.list" call. @@ -7396,7 +7396,7 @@ func (c *SavedQueriesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.savedQueries.patch" call. @@ -7686,7 +7686,7 @@ func (c *V1AnalyzeIamPolicyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.analyzeIamPolicy" call. @@ -7804,7 +7804,7 @@ func (c *V1AnalyzeIamPolicyLongrunningCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.analyzeIamPolicyLongrunning" call. @@ -7951,7 +7951,7 @@ func (c *V1AnalyzeMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.analyzeMove" call. @@ -8099,7 +8099,7 @@ func (c *V1AnalyzeOrgPoliciesCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.analyzeOrgPolicies" call. @@ -8323,7 +8323,7 @@ func (c *V1AnalyzeOrgPolicyGovernedAssetsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.analyzeOrgPolicyGovernedAssets" call. @@ -8492,7 +8492,7 @@ func (c *V1AnalyzeOrgPolicyGovernedContainersCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.analyzeOrgPolicyGovernedContainers" call. @@ -8688,7 +8688,7 @@ func (c *V1BatchGetAssetsHistoryCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.batchGetAssetsHistory" call. @@ -8802,7 +8802,7 @@ func (c *V1ExportAssetsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.exportAssets" call. @@ -8916,7 +8916,7 @@ func (c *V1QueryAssetsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.queryAssets" call. @@ -9122,7 +9122,7 @@ func (c *V1SearchAllIamPoliciesCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.searchAllIamPolicies" call. @@ -9400,7 +9400,7 @@ func (c *V1SearchAllResourcesCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.searchAllResources" call. diff --git a/cloudasset/v1beta1/cloudasset-gen.go b/cloudasset/v1beta1/cloudasset-gen.go index d58ad8ce9d5..595e279418a 100644 --- a/cloudasset/v1beta1/cloudasset-gen.go +++ b/cloudasset/v1beta1/cloudasset-gen.go @@ -2379,7 +2379,7 @@ func (c *FoldersExportAssetsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.folders.exportAssets" call. @@ -2488,7 +2488,7 @@ func (c *FoldersOperationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.folders.operations.get" call. @@ -2642,7 +2642,7 @@ func (c *OrganizationsBatchGetAssetsHistoryCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.organizations.batchGetAssetsHistory" call. @@ -2752,7 +2752,7 @@ func (c *OrganizationsExportAssetsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.organizations.exportAssets" call. @@ -2861,7 +2861,7 @@ func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.organizations.operations.get" call. @@ -3015,7 +3015,7 @@ func (c *ProjectsBatchGetAssetsHistoryCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.projects.batchGetAssetsHistory" call. @@ -3125,7 +3125,7 @@ func (c *ProjectsExportAssetsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.projects.exportAssets" call. @@ -3234,7 +3234,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.projects.operations.get" call. diff --git a/cloudasset/v1p1beta1/cloudasset-gen.go b/cloudasset/v1p1beta1/cloudasset-gen.go index 3b4efc5e242..9dabfd01765 100644 --- a/cloudasset/v1p1beta1/cloudasset-gen.go +++ b/cloudasset/v1p1beta1/cloudasset-gen.go @@ -2200,7 +2200,7 @@ func (c *IamPoliciesSearchAllCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.iamPolicies.searchAll" call. @@ -2382,7 +2382,7 @@ func (c *ResourcesSearchAllCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.resources.searchAll" call. diff --git a/cloudasset/v1p4beta1/cloudasset-gen.go b/cloudasset/v1p4beta1/cloudasset-gen.go index 8e20d6b9613..8dce80de741 100644 --- a/cloudasset/v1p4beta1/cloudasset-gen.go +++ b/cloudasset/v1p4beta1/cloudasset-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/asset-inventory/docs/quickstart // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // cloudassetService, err := cloudasset.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // cloudassetService, err := cloudasset.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // cloudassetService, err := cloudasset.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package cloudasset // import "google.golang.org/api/cloudasset/v1p4beta1" import ( @@ -71,17 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "cloudasset:v1p4beta1" const apiName = "cloudasset" const apiVersion = "v1p4beta1" const basePath = "https://cloudasset.googleapis.com/" +const basePathTemplate = "https://cloudasset.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://cloudasset.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -93,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -146,39 +163,32 @@ type V1p4beta1Service struct { s *Service } -// AccessSelector: Specifies roles and/or permissions to analyze, to -// determine both the identities possessing them and the resources they -// control. If multiple values are specified, results will include -// identities and resources matching any of them. The total number of -// roles and permissions should be equal or less than 10. +// AccessSelector: Specifies roles and/or permissions to analyze, to determine +// both the identities possessing them and the resources they control. If +// multiple values are specified, results will include identities and resources +// matching any of them. The total number of roles and permissions should be +// equal or less than 10. type AccessSelector struct { // Permissions: Optional. The permissions to appear in result. Permissions []string `json:"permissions,omitempty"` - // Roles: Optional. The roles to appear in result. Roles []string `json:"roles,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccessSelector) MarshalJSON() ([]byte, error) { +func (s AccessSelector) MarshalJSON() ([]byte, error) { type NoMethod AccessSelector - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnalyzeIamPolicyLongrunningMetadata: Represents the metadata of the @@ -186,28 +196,22 @@ func (s *AccessSelector) MarshalJSON() ([]byte, error) { type AnalyzeIamPolicyLongrunningMetadata struct { // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyzeIamPolicyLongrunningMetadata) MarshalJSON() ([]byte, error) { +func (s AnalyzeIamPolicyLongrunningMetadata) MarshalJSON() ([]byte, error) { type NoMethod AnalyzeIamPolicyLongrunningMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnalyzeIamPolicyLongrunningResponse: A response message for @@ -218,116 +222,91 @@ type AnalyzeIamPolicyLongrunningResponse struct { // AnalyzeIamPolicyResponse: A response message for // AssetService.AnalyzeIamPolicy. type AnalyzeIamPolicyResponse struct { - // FullyExplored: Represents whether all entries in the main_analysis - // and service_account_impersonation_analysis have been fully explored - // to answer the query in the request. + // FullyExplored: Represents whether all entries in the main_analysis and + // service_account_impersonation_analysis have been fully explored to answer + // the query in the request. FullyExplored bool `json:"fullyExplored,omitempty"` - // MainAnalysis: The main analysis that matches the original request. MainAnalysis *IamPolicyAnalysis `json:"mainAnalysis,omitempty"` - - // NonCriticalErrors: A list of non-critical errors happened during the - // request handling to explain why `fully_explored` is false, or empty - // if no error happened. + // NonCriticalErrors: A list of non-critical errors happened during the request + // handling to explain why `fully_explored` is false, or empty if no error + // happened. NonCriticalErrors []*GoogleCloudAssetV1p4beta1AnalysisState `json:"nonCriticalErrors,omitempty"` - - // ServiceAccountImpersonationAnalysis: The service account - // impersonation analysis if - // AnalyzeIamPolicyRequest.analyze_service_account_impersonation is + // ServiceAccountImpersonationAnalysis: The service account impersonation + // analysis if AnalyzeIamPolicyRequest.analyze_service_account_impersonation is // enabled. ServiceAccountImpersonationAnalysis []*IamPolicyAnalysis `json:"serviceAccountImpersonationAnalysis,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "FullyExplored") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FullyExplored") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FullyExplored") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyzeIamPolicyResponse) MarshalJSON() ([]byte, error) { +func (s AnalyzeIamPolicyResponse) MarshalJSON() ([]byte, error) { type NoMethod AnalyzeIamPolicyResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what -// identities, if any, are exempted from logging. An AuditConfig must -// have one or more AuditLogConfigs. If there are AuditConfigs for both -// `allServices` and a specific service, the union of the two -// AuditConfigs is used for that service: the log_types specified in -// each AuditConfig are enabled, and the exempted_members in each -// AuditLogConfig are exempted. Example Policy with multiple -// AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": -// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { -// "log_type": "ADMIN_READ" } ] }, { "service": -// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": -// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy -// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts -// `jose@example.com` from DATA_READ logging, and `aliya@example.com` -// from DATA_WRITE logging. +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +// and a specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted. Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts `jose@example.com` from DATA_READ logging, and +// `aliya@example.com` from DATA_WRITE logging. type AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit logging. - // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - // `allServices` is a special value that covers all services. + // Service: Specifies a service that will be enabled for audit logging. For + // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` + // is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditConfig) MarshalJSON() ([]byte, error) { +func (s AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditLogConfig: Provides the configuration for logging a type of -// permissions. Example: { "audit_log_configs": [ { "log_type": -// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { -// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and -// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ -// logging. +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. type AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of permission. Follows the same format of - // Binding.members. + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. // // Possible values: @@ -336,102 +315,84 @@ type AuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the - // current request. If the condition evaluates to `false`, then this - // binding does not apply to the current request. However, a different - // role binding might grant the same role to one or more of the - // principals in this binding. To learn which resources support - // conditions in their IAM policies, see the IAM documentation + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the principals in this binding. To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` - - // Members: Specifies the principals requesting access for a Google - // Cloud resource. `members` can have the following values: * - // `allUsers`: A special identifier that represents anyone who is on the - // internet; with or without a Google account. * - // `allAuthenticatedUsers`: A special identifier that represents anyone - // who is authenticated with a Google account or a service account. * - // `user:{emailid}`: An email address that represents a specific Google - // account. For example, `alice@example.com` . * - // `serviceAccount:{emailid}`: An email address that represents a - // service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An - // email address that represents a Google group. For example, - // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An - // email address (plus unique identifier) representing a user that has - // been recently deleted. For example, - // `alice@example.com?uid=123456789012345678901`. If the user is - // recovered, this value reverts to `user:{emailid}` and the recovered - // user retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus unique identifier) representing a service account that has been + // Members: Specifies the principals requesting access for a Google Cloud + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. * `user:{emailid}`: An email address that represents a specific + // Google account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a service + // account. For example, `my-other-app@appspot.gserviceaccount.com`. * + // `group:{emailid}`: An email address that represents a Google group. For + // example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has been // recently deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: - // An email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is - // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // `alice@example.com?uid=123456789012345678901`. If the user is recovered, + // this value reverts to `user:{emailid}` and the recovered user retains the + // role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a service account that + // has been recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the + // service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + // address (plus unique identifier) representing a Google group that has been + // recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is recovered, + // this value reverts to `group:{emailid}` and the recovered group retains the + // role in the binding. * `domain:{domain}`: The G Suite domain (primary) that + // represents all the users of that domain. For example, `google.com` or + // `example.com`. Members []string `json:"members,omitempty"` - - // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // Role: Role that is assigned to the list of `members`, or principals. For + // example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ExportIamPolicyAnalysisRequest: A request message for @@ -439,702 +400,566 @@ func (s *Binding) MarshalJSON() ([]byte, error) { type ExportIamPolicyAnalysisRequest struct { // AnalysisQuery: Required. The request query. AnalysisQuery *IamPolicyAnalysisQuery `json:"analysisQuery,omitempty"` - // Options: Optional. The request options. Options *Options `json:"options,omitempty"` - - // OutputConfig: Required. Output configuration indicating where the - // results will be output to. + // OutputConfig: Required. Output configuration indicating where the results + // will be output to. OutputConfig *IamPolicyAnalysisOutputConfig `json:"outputConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisQuery") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnalysisQuery") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnalysisQuery") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExportIamPolicyAnalysisRequest) MarshalJSON() ([]byte, error) { +func (s ExportIamPolicyAnalysisRequest) MarshalJSON() ([]byte, error) { type NoMethod ExportIamPolicyAnalysisRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec. Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if // requestor is the document owner" expression: "document.owner == // request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GcsDestination: A Cloud Storage location. type GcsDestination struct { - // Uri: Required. The uri of the Cloud Storage object. It's the same uri - // that is used by gsutil. For example: "gs://bucket_name/object_name". - // See [Quickstart: Using the gsutil tool] - // (https://cloud.google.com/storage/docs/quickstart-gsutil) for - // examples. + // Uri: Required. The uri of the Cloud Storage object. It's the same uri that + // is used by gsutil. For example: "gs://bucket_name/object_name". See + // [Quickstart: Using the gsutil tool] + // (https://cloud.google.com/storage/docs/quickstart-gsutil) for examples. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GcsDestination) MarshalJSON() ([]byte, error) { +func (s GcsDestination) MarshalJSON() ([]byte, error) { type NoMethod GcsDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAssetV1p4beta1Access: An IAM role or permission under -// analysis. +// GoogleCloudAssetV1p4beta1Access: An IAM role or permission under analysis. type GoogleCloudAssetV1p4beta1Access struct { // AnalysisState: The analysis state of this access. AnalysisState *GoogleCloudAssetV1p4beta1AnalysisState `json:"analysisState,omitempty"` - // Permission: The permission. Permission string `json:"permission,omitempty"` - // Role: The role. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisState") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnalysisState") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnalysisState") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p4beta1Access) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p4beta1Access) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p4beta1Access - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAssetV1p4beta1AccessControlList: An access control list, -// derived from the above IAM policy binding, which contains a set of -// resources and accesses. May include one item from each set to compose -// an access control entry. NOTICE that there could be multiple access -// control lists for one IAM policy binding. The access control lists -// are created based on resource and access combinations. For example, -// assume we have the following cases in one IAM policy binding: - -// Permission P1 and P2 apply to resource R1 and R2; - Permission P3 -// applies to resource R2 and R3; This will result in the following -// access control lists: - AccessControlList 1: [R1, R2], [P1, P2] - + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAssetV1p4beta1AccessControlList: An access control list, derived +// from the above IAM policy binding, which contains a set of resources and +// accesses. May include one item from each set to compose an access control +// entry. NOTICE that there could be multiple access control lists for one IAM +// policy binding. The access control lists are created based on resource and +// access combinations. For example, assume we have the following cases in one +// IAM policy binding: - Permission P1 and P2 apply to resource R1 and R2; - +// Permission P3 applies to resource R2 and R3; This will result in the +// following access control lists: - AccessControlList 1: [R1, R2], [P1, P2] - // AccessControlList 2: [R2, R3], [P3] type GoogleCloudAssetV1p4beta1AccessControlList struct { - // Accesses: The accesses that match one of the following conditions: - - // The access_selector, if it is specified in request; - Otherwise, - // access specifiers reachable from the policy binding's role. + // Accesses: The accesses that match one of the following conditions: - The + // access_selector, if it is specified in request; - Otherwise, access + // specifiers reachable from the policy binding's role. Accesses []*GoogleCloudAssetV1p4beta1Access `json:"accesses,omitempty"` - - // ResourceEdges: Resource edges of the graph starting from the policy - // attached resource to any descendant resources. The Edge.source_node - // contains the full resource name of a parent resource and - // Edge.target_node contains the full resource name of a child resource. - // This field is present only if the output_resource_edges option is - // enabled in request. + // ResourceEdges: Resource edges of the graph starting from the policy attached + // resource to any descendant resources. The Edge.source_node contains the full + // resource name of a parent resource and Edge.target_node contains the full + // resource name of a child resource. This field is present only if the + // output_resource_edges option is enabled in request. ResourceEdges []*GoogleCloudAssetV1p4beta1Edge `json:"resourceEdges,omitempty"` - - // Resources: The resources that match one of the following conditions: - // - The resource_selector, if it is specified in request; - Otherwise, - // resources reachable from the policy attached resource. + // Resources: The resources that match one of the following conditions: - The + // resource_selector, if it is specified in request; - Otherwise, resources + // reachable from the policy attached resource. Resources []*GoogleCloudAssetV1p4beta1Resource `json:"resources,omitempty"` - // ForceSendFields is a list of field names (e.g. "Accesses") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accesses") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accesses") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p4beta1AccessControlList) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p4beta1AccessControlList) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p4beta1AccessControlList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAssetV1p4beta1AnalysisState: Represents the detailed state -// of an entity under analysis, such as a resource, an identity or an -// access. +// GoogleCloudAssetV1p4beta1AnalysisState: Represents the detailed state of an +// entity under analysis, such as a resource, an identity or an access. type GoogleCloudAssetV1p4beta1AnalysisState struct { // Cause: The human-readable description of the cause of failure. Cause string `json:"cause,omitempty"` - - // Code: The Google standard error code that best describes the state. - // For example: - OK means the analysis on this entity has been - // successfully finished; - PERMISSION_DENIED means an access denied - // error is encountered; - DEADLINE_EXCEEDED means the analysis on this - // entity hasn't been started in time; + // Code: The Google standard error code that best describes the state. For + // example: - OK means the analysis on this entity has been successfully + // finished; - PERMISSION_DENIED means an access denied error is encountered; - + // DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in + // time; // // Possible values: // "OK" - Not an error; returned on success HTTP Mapping: 200 OK - // "CANCELLED" - The operation was cancelled, typically by the caller. - // HTTP Mapping: 499 Client Closed Request - // "UNKNOWN" - Unknown error. For example, this error may be returned - // when a `Status` value received from another address space belongs to - // an error space that is not known in this address space. Also errors - // raised by APIs that do not return enough error information may be - // converted to this error. HTTP Mapping: 500 Internal Server Error - // "INVALID_ARGUMENT" - The client specified an invalid argument. Note - // that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` - // indicates arguments that are problematic regardless of the state of - // the system (e.g., a malformed file name). HTTP Mapping: 400 Bad - // Request - // "DEADLINE_EXCEEDED" - The deadline expired before the operation - // could complete. For operations that change the state of the system, - // this error may be returned even if the operation has completed - // successfully. For example, a successful response from a server could - // have been delayed long enough for the deadline to expire. HTTP - // Mapping: 504 Gateway Timeout - // "NOT_FOUND" - Some requested entity (e.g., file or directory) was - // not found. Note to server developers: if a request is denied for an - // entire class of users, such as gradual feature rollout or - // undocumented allowlist, `NOT_FOUND` may be used. If a request is - // denied for some users within a class of users, such as user-based - // access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 - // Not Found - // "ALREADY_EXISTS" - The entity that a client attempted to create - // (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict - // "PERMISSION_DENIED" - The caller does not have permission to - // execute the specified operation. `PERMISSION_DENIED` must not be used - // for rejections caused by exhausting some resource (use - // `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` - // must not be used if the caller can not be identified (use - // `UNAUTHENTICATED` instead for those errors). This error code does not - // imply the request is valid or the requested entity exists or + // "CANCELLED" - The operation was cancelled, typically by the caller. HTTP + // Mapping: 499 Client Closed Request + // "UNKNOWN" - Unknown error. For example, this error may be returned when a + // `Status` value received from another address space belongs to an error space + // that is not known in this address space. Also errors raised by APIs that do + // not return enough error information may be converted to this error. HTTP + // Mapping: 500 Internal Server Error + // "INVALID_ARGUMENT" - The client specified an invalid argument. Note that + // this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates + // arguments that are problematic regardless of the state of the system (e.g., + // a malformed file name). HTTP Mapping: 400 Bad Request + // "DEADLINE_EXCEEDED" - The deadline expired before the operation could + // complete. For operations that change the state of the system, this error may + // be returned even if the operation has completed successfully. For example, a + // successful response from a server could have been delayed long enough for + // the deadline to expire. HTTP Mapping: 504 Gateway Timeout + // "NOT_FOUND" - Some requested entity (e.g., file or directory) was not + // found. Note to server developers: if a request is denied for an entire class + // of users, such as gradual feature rollout or undocumented allowlist, + // `NOT_FOUND` may be used. If a request is denied for some users within a + // class of users, such as user-based access control, `PERMISSION_DENIED` must + // be used. HTTP Mapping: 404 Not Found + // "ALREADY_EXISTS" - The entity that a client attempted to create (e.g., + // file or directory) already exists. HTTP Mapping: 409 Conflict + // "PERMISSION_DENIED" - The caller does not have permission to execute the + // specified operation. `PERMISSION_DENIED` must not be used for rejections + // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for + // those errors). `PERMISSION_DENIED` must not be used if the caller can not be + // identified (use `UNAUTHENTICATED` instead for those errors). This error code + // does not imply the request is valid or the requested entity exists or // satisfies other pre-conditions. HTTP Mapping: 403 Forbidden // "UNAUTHENTICATED" - The request does not have valid authentication // credentials for the operation. HTTP Mapping: 401 Unauthorized // "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a - // per-user quota, or perhaps the entire file system is out of space. - // HTTP Mapping: 429 Too Many Requests - // "FAILED_PRECONDITION" - The operation was rejected because the - // system is not in a state required for the operation's execution. For - // example, the directory to be deleted is non-empty, an rmdir operation - // is applied to a non-directory, etc. Service implementors can use the - // following guidelines to decide between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can - // retry just the failing call. (b) Use `ABORTED` if the client should - // retry at a higher level. For example, when a client-specified - // test-and-set fails, indicating the client should restart a - // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the - // client should not retry until the system state has been explicitly - // fixed. For example, if an "rmdir" fails because the directory is - // non-empty, `FAILED_PRECONDITION` should be returned since the client - // should not retry unless the files are deleted from the directory. - // HTTP Mapping: 400 Bad Request - // "ABORTED" - The operation was aborted, typically due to a - // concurrency issue such as a sequencer check failure or transaction - // abort. See the guidelines above for deciding between - // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: - // 409 Conflict - // "OUT_OF_RANGE" - The operation was attempted past the valid range. - // E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, - // this error indicates a problem that may be fixed if the system state - // changes. For example, a 32-bit file system will generate - // `INVALID_ARGUMENT` if asked to read at an offset that is not in the - // range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to - // read from an offset past the current file size. There is a fair bit - // of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We - // recommend using `OUT_OF_RANGE` (the more specific error) when it - // applies so that callers who are iterating through a space can easily - // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP - // Mapping: 400 Bad Request + // per-user quota, or perhaps the entire file system is out of space. HTTP + // Mapping: 429 Too Many Requests + // "FAILED_PRECONDITION" - The operation was rejected because the system is + // not in a state required for the operation's execution. For example, the + // directory to be deleted is non-empty, an rmdir operation is applied to a + // non-directory, etc. Service implementors can use the following guidelines to + // decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use + // `UNAVAILABLE` if the client can retry just the failing call. (b) Use + // `ABORTED` if the client should retry at a higher level. For example, when a + // client-specified test-and-set fails, indicating the client should restart a + // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the client + // should not retry until the system state has been explicitly fixed. For + // example, if an "rmdir" fails because the directory is non-empty, + // `FAILED_PRECONDITION` should be returned since the client should not retry + // unless the files are deleted from the directory. HTTP Mapping: 400 Bad + // Request + // "ABORTED" - The operation was aborted, typically due to a concurrency + // issue such as a sequencer check failure or transaction abort. See the + // guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and + // `UNAVAILABLE`. HTTP Mapping: 409 Conflict + // "OUT_OF_RANGE" - The operation was attempted past the valid range. E.g., + // seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error + // indicates a problem that may be fixed if the system state changes. For + // example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to + // read at an offset that is not in the range [0,2^32-1], but it will generate + // `OUT_OF_RANGE` if asked to read from an offset past the current file size. + // There is a fair bit of overlap between `FAILED_PRECONDITION` and + // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) + // when it applies so that callers who are iterating through a space can easily + // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: + // 400 Bad Request // "UNIMPLEMENTED" - The operation is not implemented or is not // supported/enabled in this service. HTTP Mapping: 501 Not Implemented - // "INTERNAL" - Internal errors. This means that some invariants - // expected by the underlying system have been broken. This error code - // is reserved for serious errors. HTTP Mapping: 500 Internal Server - // Error - // "UNAVAILABLE" - The service is currently unavailable. This is most - // likely a transient condition, which can be corrected by retrying with - // a backoff. Note that it is not always safe to retry non-idempotent - // operations. See the guidelines above for deciding between - // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: - // 503 Service Unavailable - // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: - // 500 Internal Server Error + // "INTERNAL" - Internal errors. This means that some invariants expected by + // the underlying system have been broken. This error code is reserved for + // serious errors. HTTP Mapping: 500 Internal Server Error + // "UNAVAILABLE" - The service is currently unavailable. This is most likely + // a transient condition, which can be corrected by retrying with a backoff. + // Note that it is not always safe to retry non-idempotent operations. See the + // guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and + // `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable + // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: 500 + // Internal Server Error Code string `json:"code,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cause") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cause") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cause") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p4beta1AnalysisState) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p4beta1AnalysisState) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p4beta1AnalysisState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudAssetV1p4beta1Edge: A directional edge. type GoogleCloudAssetV1p4beta1Edge struct { // SourceNode: The source node of the edge. SourceNode string `json:"sourceNode,omitempty"` - // TargetNode: The target node of the edge. TargetNode string `json:"targetNode,omitempty"` - // ForceSendFields is a list of field names (e.g. "SourceNode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SourceNode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SourceNode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p4beta1Edge) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p4beta1Edge) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p4beta1Edge - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudAssetV1p4beta1Identity: An identity under analysis. type GoogleCloudAssetV1p4beta1Identity struct { // AnalysisState: The analysis state of this identity. AnalysisState *GoogleCloudAssetV1p4beta1AnalysisState `json:"analysisState,omitempty"` - - // Name: The identity name in any form of members appear in IAM policy - // binding (https://cloud.google.com/iam/reference/rest/v1/Binding), - // such as: - user:foo@google.com - group:group1@google.com - + // Name: The identity name in any form of members appear in IAM policy binding + // (https://cloud.google.com/iam/reference/rest/v1/Binding), such as: - + // user:foo@google.com - group:group1@google.com - // serviceAccount:s1@prj1.iam.gserviceaccount.com - // projectOwner:some_project_id - domain:google.com - allUsers - etc. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisState") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnalysisState") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnalysisState") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p4beta1Identity) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p4beta1Identity) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p4beta1Identity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleCloudAssetV1p4beta1IdentityList struct { - // GroupEdges: Group identity edges of the graph starting from the - // binding's group members to any node of the identities. The - // Edge.source_node contains a group, such as "group:parent@google.com". - // The Edge.target_node contains a member of the group, such as - // "group:child@google.com" or "user:foo@google.com". This field is - // present only if the output_group_edges option is enabled in request. + // GroupEdges: Group identity edges of the graph starting from the binding's + // group members to any node of the identities. The Edge.source_node contains a + // group, such as "group:parent@google.com". The Edge.target_node contains a + // member of the group, such as "group:child@google.com" or + // "user:foo@google.com". This field is present only if the output_group_edges + // option is enabled in request. GroupEdges []*GoogleCloudAssetV1p4beta1Edge `json:"groupEdges,omitempty"` - - // Identities: Only the identities that match one of the following - // conditions will be presented: - The identity_selector, if it is - // specified in request; - Otherwise, identities reachable from the - // policy binding's members. + // Identities: Only the identities that match one of the following conditions + // will be presented: - The identity_selector, if it is specified in request; - + // Otherwise, identities reachable from the policy binding's members. Identities []*GoogleCloudAssetV1p4beta1Identity `json:"identities,omitempty"` - // ForceSendFields is a list of field names (e.g. "GroupEdges") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GroupEdges") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GroupEdges") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p4beta1IdentityList) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p4beta1IdentityList) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p4beta1IdentityList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAssetV1p4beta1Resource: A Google Cloud resource under -// analysis. +// GoogleCloudAssetV1p4beta1Resource: A Google Cloud resource under analysis. type GoogleCloudAssetV1p4beta1Resource struct { // AnalysisState: The analysis state of this resource. AnalysisState *GoogleCloudAssetV1p4beta1AnalysisState `json:"analysisState,omitempty"` - // FullResourceName: The full resource name // (https://cloud.google.com/asset-inventory/docs/resource-name-format) FullResourceName string `json:"fullResourceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisState") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnalysisState") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnalysisState") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p4beta1Resource) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p4beta1Resource) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p4beta1Resource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAssetV1p7beta1Asset: An asset in Google Cloud. An asset -// can be any resource in the Google Cloud resource hierarchy +// GoogleCloudAssetV1p7beta1Asset: An asset in Google Cloud. An asset can be +// any resource in the Google Cloud resource hierarchy // (https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), -// a resource outside the Google Cloud resource hierarchy (such as -// Google Kubernetes Engine clusters and objects), or a policy (e.g. -// Cloud IAM policy). See Supported asset types -// (https://cloud.google.com/asset-inventory/docs/supported-asset-types) -// for more information. +// a resource outside the Google Cloud resource hierarchy (such as Google +// Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM +// policy). See Supported asset types +// (https://cloud.google.com/asset-inventory/docs/supported-asset-types) for +// more information. type GoogleCloudAssetV1p7beta1Asset struct { // AccessLevel: Please also refer to the access level user guide // (https://cloud.google.com/access-context-manager/docs/overview#access-levels). AccessLevel *GoogleIdentityAccesscontextmanagerV1AccessLevel `json:"accessLevel,omitempty"` - // AccessPolicy: Please also refer to the access policy user guide // (https://cloud.google.com/access-context-manager/docs/overview#access-policies). AccessPolicy *GoogleIdentityAccesscontextmanagerV1AccessPolicy `json:"accessPolicy,omitempty"` - - // Ancestors: The ancestry path of an asset in Google Cloud resource - // hierarchy + // Ancestors: The ancestry path of an asset in Google Cloud resource hierarchy // (https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), - // represented as a list of relative resource names. An ancestry path - // starts with the closest ancestor in the hierarchy and ends at root. - // If the asset is a project, folder, or organization, the ancestry path - // starts from the asset itself. Example: `["projects/123456789", - // "folders/5432", "organizations/1234"]` + // represented as a list of relative resource names. An ancestry path starts + // with the closest ancestor in the hierarchy and ends at root. If the asset is + // a project, folder, or organization, the ancestry path starts from the asset + // itself. Example: `["projects/123456789", "folders/5432", + // "organizations/1234"]` Ancestors []string `json:"ancestors,omitempty"` - - // AssetType: The type of the asset. Example: - // `compute.googleapis.com/Disk` See Supported asset types - // (https://cloud.google.com/asset-inventory/docs/supported-asset-types) - // for more information. + // AssetType: The type of the asset. Example: `compute.googleapis.com/Disk` See + // Supported asset types + // (https://cloud.google.com/asset-inventory/docs/supported-asset-types) for + // more information. AssetType string `json:"assetType,omitempty"` - - // IamPolicy: A representation of the Cloud IAM policy set on a Google - // Cloud resource. There can be a maximum of one Cloud IAM policy set on - // any given resource. In addition, Cloud IAM policies inherit their - // granted access scope from any policies set on parent resources in the - // resource hierarchy. Therefore, the effectively policy is the union of - // both the policy set on this resource and each policy set on all of - // the resource's ancestry resource levels in the hierarchy. See this - // topic (https://cloud.google.com/iam/help/allow-policies/inheritance) - // for more information. + // IamPolicy: A representation of the Cloud IAM policy set on a Google Cloud + // resource. There can be a maximum of one Cloud IAM policy set on any given + // resource. In addition, Cloud IAM policies inherit their granted access scope + // from any policies set on parent resources in the resource hierarchy. + // Therefore, the effectively policy is the union of both the policy set on + // this resource and each policy set on all of the resource's ancestry resource + // levels in the hierarchy. See this topic + // (https://cloud.google.com/iam/help/allow-policies/inheritance) for more + // information. IamPolicy *Policy `json:"iamPolicy,omitempty"` - // Name: The full name of the asset. Example: - // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instance - // s/instance1` See Resource names - // (https://cloud.google.com/apis/design/resource_names#full_resource_name) - // for more information. + // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/insta + // nce1` See Resource names + // (https://cloud.google.com/apis/design/resource_names#full_resource_name) for + // more information. Name string `json:"name,omitempty"` - // OrgPolicy: A representation of an organization policy // (https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). - // There can be more than one organization policy with different - // constraints set on a given resource. + // There can be more than one organization policy with different constraints + // set on a given resource. OrgPolicy []*GoogleCloudOrgpolicyV1Policy `json:"orgPolicy,omitempty"` - - // RelatedAssets: The related assets of the asset of one relationship - // type. One asset only represents one type of relationship. + // RelatedAssets: The related assets of the asset of one relationship type. One + // asset only represents one type of relationship. RelatedAssets *GoogleCloudAssetV1p7beta1RelatedAssets `json:"relatedAssets,omitempty"` - // Resource: A representation of the resource. Resource *GoogleCloudAssetV1p7beta1Resource `json:"resource,omitempty"` - - // ServicePerimeter: Please also refer to the service perimeter user - // guide (https://cloud.google.com/vpc-service-controls/docs/overview). + // ServicePerimeter: Please also refer to the service perimeter user guide + // (https://cloud.google.com/vpc-service-controls/docs/overview). ServicePerimeter *GoogleIdentityAccesscontextmanagerV1ServicePerimeter `json:"servicePerimeter,omitempty"` - - // UpdateTime: The last update timestamp of an asset. update_time is - // updated when create/update/delete operation is performed. + // UpdateTime: The last update timestamp of an asset. update_time is updated + // when create/update/delete operation is performed. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessLevel") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessLevel") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessLevel") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p7beta1Asset) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p7beta1Asset) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p7beta1Asset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAssetV1p7beta1RelatedAsset: An asset identify in Google -// Cloud which contains its name, type and ancestors. An asset can be -// any resource in the Google Cloud resource hierarchy +// GoogleCloudAssetV1p7beta1RelatedAsset: An asset identify in Google Cloud +// which contains its name, type and ancestors. An asset can be any resource in +// the Google Cloud resource hierarchy // (https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), -// a resource outside the Google Cloud resource hierarchy (such as -// Google Kubernetes Engine clusters and objects), or a policy (e.g. -// Cloud IAM policy). See Supported asset types -// (https://cloud.google.com/asset-inventory/docs/supported-asset-types) -// for more information. +// a resource outside the Google Cloud resource hierarchy (such as Google +// Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM +// policy). See Supported asset types +// (https://cloud.google.com/asset-inventory/docs/supported-asset-types) for +// more information. type GoogleCloudAssetV1p7beta1RelatedAsset struct { - // Ancestors: The ancestors of an asset in Google Cloud resource - // hierarchy + // Ancestors: The ancestors of an asset in Google Cloud resource hierarchy // (https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), - // represented as a list of relative resource names. An ancestry path - // starts with the closest ancestor in the hierarchy and ends at root. - // Example: `["projects/123456789", "folders/5432", - // "organizations/1234"]` + // represented as a list of relative resource names. An ancestry path starts + // with the closest ancestor in the hierarchy and ends at root. Example: + // `["projects/123456789", "folders/5432", "organizations/1234"]` Ancestors []string `json:"ancestors,omitempty"` - // Asset: The full name of the asset. Example: - // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instance - // s/instance1` See Resource names - // (https://cloud.google.com/apis/design/resource_names#full_resource_name) - // for more information. + // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/insta + // nce1` See Resource names + // (https://cloud.google.com/apis/design/resource_names#full_resource_name) for + // more information. Asset string `json:"asset,omitempty"` - - // AssetType: The type of the asset. Example: - // `compute.googleapis.com/Disk` See Supported asset types - // (https://cloud.google.com/asset-inventory/docs/supported-asset-types) - // for more information. + // AssetType: The type of the asset. Example: `compute.googleapis.com/Disk` See + // Supported asset types + // (https://cloud.google.com/asset-inventory/docs/supported-asset-types) for + // more information. AssetType string `json:"assetType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Ancestors") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Ancestors") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Ancestors") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p7beta1RelatedAsset) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p7beta1RelatedAsset) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p7beta1RelatedAsset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAssetV1p7beta1RelatedAssets: The detailed related assets -// with the `relationship_type`. +// GoogleCloudAssetV1p7beta1RelatedAssets: The detailed related assets with the +// `relationship_type`. type GoogleCloudAssetV1p7beta1RelatedAssets struct { // Assets: The peer resources of the relationship. Assets []*GoogleCloudAssetV1p7beta1RelatedAsset `json:"assets,omitempty"` - // RelationshipAttributes: The detailed relation attributes. RelationshipAttributes *GoogleCloudAssetV1p7beta1RelationshipAttributes `json:"relationshipAttributes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Assets") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Assets") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Assets") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p7beta1RelatedAssets) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p7beta1RelatedAssets) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p7beta1RelatedAssets - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAssetV1p7beta1RelationshipAttributes: The relationship -// attributes which include `type`, `source_resource_type`, -// `target_resource_type` and `action`. +// GoogleCloudAssetV1p7beta1RelationshipAttributes: The relationship attributes +// which include `type`, `source_resource_type`, `target_resource_type` and +// `action`. type GoogleCloudAssetV1p7beta1RelationshipAttributes struct { // Action: The detail of the relationship, e.g. `contains`, `attaches` Action string `json:"action,omitempty"` - // SourceResourceType: The source asset type. Example: // `compute.googleapis.com/Instance` SourceResourceType string `json:"sourceResourceType,omitempty"` - // TargetResourceType: The target asset type. Example: // `compute.googleapis.com/Disk` TargetResourceType string `json:"targetResourceType,omitempty"` - // Type: The unique identifier of the relationship type. Example: // `INSTANCE_TO_INSTANCEGROUP` Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p7beta1RelationshipAttributes) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p7beta1RelationshipAttributes) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p7beta1RelationshipAttributes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudAssetV1p7beta1Resource: A representation of a Google Cloud @@ -1143,1092 +968,887 @@ type GoogleCloudAssetV1p7beta1Resource struct { // Data: The content of the resource, in which some sensitive fields are // removed and may not be present. Data googleapi.RawMessage `json:"data,omitempty"` - - // DiscoveryDocumentUri: The URL of the discovery document containing - // the resource's JSON schema. Example: - // `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` This - // value is unspecified for resources that do not have an API based on a - // discovery document, such as Cloud Bigtable. + // DiscoveryDocumentUri: The URL of the discovery document containing the + // resource's JSON schema. Example: + // `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` This value is + // unspecified for resources that do not have an API based on a discovery + // document, such as Cloud Bigtable. DiscoveryDocumentUri string `json:"discoveryDocumentUri,omitempty"` - // DiscoveryName: The JSON schema name listed in the discovery document. - // Example: `Project` This value is unspecified for resources that do - // not have an API based on a discovery document, such as Cloud - // Bigtable. + // Example: `Project` This value is unspecified for resources that do not have + // an API based on a discovery document, such as Cloud Bigtable. DiscoveryName string `json:"discoveryName,omitempty"` - - // Location: The location of the resource in Google Cloud, such as its - // zone and region. For more information, see - // https://cloud.google.com/about/locations/. + // Location: The location of the resource in Google Cloud, such as its zone and + // region. For more information, see https://cloud.google.com/about/locations/. Location string `json:"location,omitempty"` - - // Parent: The full name of the immediate parent of this resource. See - // Resource Names - // (https://cloud.google.com/apis/design/resource_names#full_resource_name) - // for more information. For Google Cloud assets, this value is the - // parent resource defined in the Cloud IAM policy hierarchy - // (https://cloud.google.com/iam/docs/overview#policy_hierarchy). - // Example: + // Parent: The full name of the immediate parent of this resource. See Resource + // Names + // (https://cloud.google.com/apis/design/resource_names#full_resource_name) for + // more information. For Google Cloud assets, this value is the parent resource + // defined in the Cloud IAM policy hierarchy + // (https://cloud.google.com/iam/docs/overview#policy_hierarchy). Example: // `//cloudresourcemanager.googleapis.com/projects/my_project_123` For // third-party assets, this field may be set differently. Parent string `json:"parent,omitempty"` - - // ResourceUrl: The REST URL for accessing the resource. An HTTP `GET` - // request using this URL returns the resource itself. Example: - // `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-12 - // 3` This value is unspecified for resources without a REST API. + // ResourceUrl: The REST URL for accessing the resource. An HTTP `GET` request + // using this URL returns the resource itself. Example: + // `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` + // This value is unspecified for resources without a REST API. ResourceUrl string `json:"resourceUrl,omitempty"` - // Version: The API version. Example: `v1` Version string `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudAssetV1p7beta1Resource) MarshalJSON() ([]byte, error) { +func (s GoogleCloudAssetV1p7beta1Resource) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudAssetV1p7beta1Resource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudOrgpolicyV1BooleanPolicy: Used in `policy_type` to specify -// how `boolean_policy` will behave at this resource. +// GoogleCloudOrgpolicyV1BooleanPolicy: Used in `policy_type` to specify how +// `boolean_policy` will behave at this resource. type GoogleCloudOrgpolicyV1BooleanPolicy struct { - // Enforced: If `true`, then the `Policy` is enforced. If `false`, then - // any configuration is acceptable. Suppose you have a `Constraint` - // `constraints/compute.disableSerialPortAccess` with - // `constraint_default` set to `ALLOW`. A `Policy` for that `Constraint` - // exhibits the following behavior: - If the `Policy` at this resource - // has enforced set to `false`, serial port connection attempts will be - // allowed. - If the `Policy` at this resource has enforced set to - // `true`, serial port connection attempts will be refused. - If the - // `Policy` at this resource is `RestoreDefault`, serial port connection - // attempts will be allowed. - If no `Policy` is set at this resource or - // anywhere higher in the resource hierarchy, serial port connection - // attempts will be allowed. - If no `Policy` is set at this resource, - // but one exists higher in the resource hierarchy, the behavior is as - // if the`Policy` were set at this resource. The following examples + // Enforced: If `true`, then the `Policy` is enforced. If `false`, then any + // configuration is acceptable. Suppose you have a `Constraint` + // `constraints/compute.disableSerialPortAccess` with `constraint_default` set + // to `ALLOW`. A `Policy` for that `Constraint` exhibits the following + // behavior: - If the `Policy` at this resource has enforced set to `false`, + // serial port connection attempts will be allowed. - If the `Policy` at this + // resource has enforced set to `true`, serial port connection attempts will be + // refused. - If the `Policy` at this resource is `RestoreDefault`, serial port + // connection attempts will be allowed. - If no `Policy` is set at this + // resource or anywhere higher in the resource hierarchy, serial port + // connection attempts will be allowed. - If no `Policy` is set at this + // resource, but one exists higher in the resource hierarchy, the behavior is + // as if the`Policy` were set at this resource. The following examples // demonstrate the different possible layerings: Example 1 (nearest - // `Constraint` wins): `organizations/foo` has a `Policy` with: - // {enforced: false} `projects/bar` has no `Policy` set. The constraint - // at `projects/bar` and `organizations/foo` will not be enforced. - // Example 2 (enforcement gets replaced): `organizations/foo` has a - // `Policy` with: {enforced: false} `projects/bar` has a `Policy` with: - // {enforced: true} The constraint at `organizations/foo` is not - // enforced. The constraint at `projects/bar` is enforced. Example 3 - // (RestoreDefault): `organizations/foo` has a `Policy` with: {enforced: - // true} `projects/bar` has a `Policy` with: {RestoreDefault: {}} The - // constraint at `organizations/foo` is enforced. The constraint at + // `Constraint` wins): `organizations/foo` has a `Policy` with: {enforced: + // false} `projects/bar` has no `Policy` set. The constraint at `projects/bar` + // and `organizations/foo` will not be enforced. Example 2 (enforcement gets + // replaced): `organizations/foo` has a `Policy` with: {enforced: false} + // `projects/bar` has a `Policy` with: {enforced: true} The constraint at + // `organizations/foo` is not enforced. The constraint at `projects/bar` is + // enforced. Example 3 (RestoreDefault): `organizations/foo` has a `Policy` + // with: {enforced: true} `projects/bar` has a `Policy` with: {RestoreDefault: + // {}} The constraint at `organizations/foo` is enforced. The constraint at // `projects/bar` is not enforced, because `constraint_default` for the // `Constraint` is `ALLOW`. Enforced bool `json:"enforced,omitempty"` - // ForceSendFields is a list of field names (e.g. "Enforced") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enforced") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enforced") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudOrgpolicyV1BooleanPolicy) MarshalJSON() ([]byte, error) { +func (s GoogleCloudOrgpolicyV1BooleanPolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudOrgpolicyV1BooleanPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudOrgpolicyV1ListPolicy: Used in `policy_type` to specify -// how `list_policy` behaves at this resource. `ListPolicy` can define -// specific values and subtrees of Cloud Resource Manager resource -// hierarchy (`Organizations`, `Folders`, `Projects`) that are allowed -// or denied by setting the `allowed_values` and `denied_values` fields. -// This is achieved by using the `under:` and optional `is:` prefixes. -// The `under:` prefix is used to denote resource subtree values. The -// `is:` prefix is used to denote specific values, and is required only -// if the value contains a ":". Values prefixed with "is:" are treated -// the same as values with no prefix. Ancestry subtrees must be in one -// of the following formats: - "projects/", e.g. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudOrgpolicyV1ListPolicy: Used in `policy_type` to specify how +// `list_policy` behaves at this resource. `ListPolicy` can define specific +// values and subtrees of Cloud Resource Manager resource hierarchy +// (`Organizations`, `Folders`, `Projects`) that are allowed or denied by +// setting the `allowed_values` and `denied_values` fields. This is achieved by +// using the `under:` and optional `is:` prefixes. The `under:` prefix is used +// to denote resource subtree values. The `is:` prefix is used to denote +// specific values, and is required only if the value contains a ":". Values +// prefixed with "is:" are treated the same as values with no prefix. Ancestry +// subtrees must be in one of the following formats: - "projects/", e.g. // "projects/tokyo-rain-123" - "folders/", e.g. "folders/1234" - -// "organizations/", e.g. "organizations/1234" The `supports_under` -// field of the associated `Constraint` defines whether ancestry -// prefixes can be used. You can set `allowed_values` and -// `denied_values` in the same `Policy` if `all_values` is -// `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny -// all values. If `all_values` is set to either `ALLOW` or `DENY`, -// `allowed_values` and `denied_values` must be unset. +// "organizations/", e.g. "organizations/1234" The `supports_under` field of +// the associated `Constraint` defines whether ancestry prefixes can be used. +// You can set `allowed_values` and `denied_values` in the same `Policy` if +// `all_values` is `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to +// allow or deny all values. If `all_values` is set to either `ALLOW` or +// `DENY`, `allowed_values` and `denied_values` must be unset. type GoogleCloudOrgpolicyV1ListPolicy struct { // AllValues: The policy all_values state. // // Possible values: - // "ALL_VALUES_UNSPECIFIED" - Indicates that allowed_values or - // denied_values must be set. + // "ALL_VALUES_UNSPECIFIED" - Indicates that allowed_values or denied_values + // must be set. // "ALLOW" - A policy with this set allows all values. // "DENY" - A policy with this set denies all values. AllValues string `json:"allValues,omitempty"` - - // AllowedValues: List of values allowed at this resource. Can only be - // set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. + // AllowedValues: List of values allowed at this resource. Can only be set if + // `all_values` is set to `ALL_VALUES_UNSPECIFIED`. AllowedValues []string `json:"allowedValues,omitempty"` - - // DeniedValues: List of values denied at this resource. Can only be set - // if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. + // DeniedValues: List of values denied at this resource. Can only be set if + // `all_values` is set to `ALL_VALUES_UNSPECIFIED`. DeniedValues []string `json:"deniedValues,omitempty"` - - // InheritFromParent: Determines the inheritance behavior for this - // `Policy`. By default, a `ListPolicy` set at a resource supersedes any - // `Policy` set anywhere up the resource hierarchy. However, if - // `inherit_from_parent` is set to `true`, then the values from the - // effective `Policy` of the parent resource are inherited, meaning the - // values set in this `Policy` are added to the values inherited up the - // hierarchy. Setting `Policy` hierarchies that inherit both allowed - // values and denied values isn't recommended in most circumstances to - // keep the configuration simple and understandable. However, it is - // possible to set a `Policy` with `allowed_values` set that inherits a - // `Policy` with `denied_values` set. In this case, the values that are - // allowed must be in `allowed_values` and not present in - // `denied_values`. For example, suppose you have a `Constraint` - // `constraints/serviceuser.services`, which has a `constraint_type` of - // `list_constraint`, and with `constraint_default` set to `ALLOW`. - // Suppose that at the Organization level, a `Policy` is applied that - // restricts the allowed API activations to {`E1`, `E2`}. Then, if a - // `Policy` is applied to a project below the Organization that has - // `inherit_from_parent` set to `false` and field all_values set to - // DENY, then an attempt to activate any API will be denied. The - // following examples demonstrate different possible layerings for - // `projects/bar` parented by `organizations/foo`: Example 1 (no - // inherited values): `organizations/foo` has a `Policy` with values: - // {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has - // `inherit_from_parent` `false` and values: {allowed_values: "E3" - // allowed_values: "E4"} The accepted values at `organizations/foo` are - // `E1`, `E2`. The accepted values at `projects/bar` are `E3`, and `E4`. - // Example 2 (inherited values): `organizations/foo` has a `Policy` with - // values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has - // a `Policy` with values: {value: "E3" value: "E4" inherit_from_parent: - // true} The accepted values at `organizations/foo` are `E1`, `E2`. The - // accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`. - // Example 3 (inheriting both allowed and denied values): + // InheritFromParent: Determines the inheritance behavior for this `Policy`. By + // default, a `ListPolicy` set at a resource supersedes any `Policy` set + // anywhere up the resource hierarchy. However, if `inherit_from_parent` is set + // to `true`, then the values from the effective `Policy` of the parent + // resource are inherited, meaning the values set in this `Policy` are added to + // the values inherited up the hierarchy. Setting `Policy` hierarchies that + // inherit both allowed values and denied values isn't recommended in most + // circumstances to keep the configuration simple and understandable. However, + // it is possible to set a `Policy` with `allowed_values` set that inherits a + // `Policy` with `denied_values` set. In this case, the values that are allowed + // must be in `allowed_values` and not present in `denied_values`. For example, + // suppose you have a `Constraint` `constraints/serviceuser.services`, which + // has a `constraint_type` of `list_constraint`, and with `constraint_default` + // set to `ALLOW`. Suppose that at the Organization level, a `Policy` is + // applied that restricts the allowed API activations to {`E1`, `E2`}. Then, if + // a `Policy` is applied to a project below the Organization that has + // `inherit_from_parent` set to `false` and field all_values set to DENY, then + // an attempt to activate any API will be denied. The following examples + // demonstrate different possible layerings for `projects/bar` parented by + // `organizations/foo`: Example 1 (no inherited values): `organizations/foo` + // has a `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} + // `projects/bar` has `inherit_from_parent` `false` and values: + // {allowed_values: "E3" allowed_values: "E4"} The accepted values at + // `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` + // are `E3`, and `E4`. Example 2 (inherited values): `organizations/foo` has a + // `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} + // `projects/bar` has a `Policy` with values: {value: "E3" value: "E4" + // inherit_from_parent: true} The accepted values at `organizations/foo` are + // `E1`, `E2`. The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and + // `E4`. Example 3 (inheriting both allowed and denied values): // `organizations/foo` has a `Policy` with values: {allowed_values: "E1" - // allowed_values: "E2"} `projects/bar` has a `Policy` with: - // {denied_values: "E1"} The accepted values at `organizations/foo` are - // `E1`, `E2`. The value accepted at `projects/bar` is `E2`. Example 4 - // (RestoreDefault): `organizations/foo` has a `Policy` with values: - // {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has a - // `Policy` with values: {RestoreDefault: {}} The accepted values at - // `organizations/foo` are `E1`, `E2`. The accepted values at - // `projects/bar` are either all or none depending on the value of - // `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 5 - // (no policy inherits parent policy): `organizations/foo` has no - // `Policy` set. `projects/bar` has no `Policy` set. The accepted values - // at both levels are either all or none depending on the value of - // `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 6 - // (ListConstraint allowing all): `organizations/foo` has a `Policy` - // with values: {allowed_values: "E1" allowed_values: "E2"} - // `projects/bar` has a `Policy` with: {all: ALLOW} The accepted values - // at `organizations/foo` are `E1`, E2`. Any value is accepted at - // `projects/bar`. Example 7 (ListConstraint allowing none): + // allowed_values: "E2"} `projects/bar` has a `Policy` with: {denied_values: + // "E1"} The accepted values at `organizations/foo` are `E1`, `E2`. The value + // accepted at `projects/bar` is `E2`. Example 4 (RestoreDefault): // `organizations/foo` has a `Policy` with values: {allowed_values: "E1" - // allowed_values: "E2"} `projects/bar` has a `Policy` with: {all: DENY} - // The accepted values at `organizations/foo` are `E1`, E2`. No value is - // accepted at `projects/bar`. Example 10 (allowed and denied subtrees - // of Resource Manager hierarchy): Given the following resource - // hierarchy O1->{F1, F2}; F1->{P1}; F2->{P2, P3}, `organizations/foo` - // has a `Policy` with values: {allowed_values: - // "under:organizations/O1"} `projects/bar` has a `Policy` with: - // {allowed_values: "under:projects/P3"} {denied_values: - // "under:folders/F2"} The accepted values at `organizations/foo` are - // `organizations/O1`, `folders/F1`, `folders/F2`, `projects/P1`, - // `projects/P2`, `projects/P3`. The accepted values at `projects/bar` - // are `organizations/O1`, `folders/F1`, `projects/P1`. + // allowed_values:"E2"} `projects/bar` has a `Policy` with values: + // {RestoreDefault: {}} The accepted values at `organizations/foo` are `E1`, + // `E2`. The accepted values at `projects/bar` are either all or none depending + // on the value of `constraint_default` (if `ALLOW`, all; if `DENY`, none). + // Example 5 (no policy inherits parent policy): `organizations/foo` has no + // `Policy` set. `projects/bar` has no `Policy` set. The accepted values at + // both levels are either all or none depending on the value of + // `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 6 + // (ListConstraint allowing all): `organizations/foo` has a `Policy` with + // values: {allowed_values: "E1" allowed_values: "E2"} `projects/bar` has a + // `Policy` with: {all: ALLOW} The accepted values at `organizations/foo` are + // `E1`, E2`. Any value is accepted at `projects/bar`. Example 7 + // (ListConstraint allowing none): `organizations/foo` has a `Policy` with + // values: {allowed_values: "E1" allowed_values: "E2"} `projects/bar` has a + // `Policy` with: {all: DENY} The accepted values at `organizations/foo` are + // `E1`, E2`. No value is accepted at `projects/bar`. Example 10 (allowed and + // denied subtrees of Resource Manager hierarchy): Given the following resource + // hierarchy O1->{F1, F2}; F1->{P1}; F2->{P2, P3}, `organizations/foo` has a + // `Policy` with values: {allowed_values: "under:organizations/O1"} + // `projects/bar` has a `Policy` with: {allowed_values: "under:projects/P3"} + // {denied_values: "under:folders/F2"} The accepted values at + // `organizations/foo` are `organizations/O1`, `folders/F1`, `folders/F2`, + // `projects/P1`, `projects/P2`, `projects/P3`. The accepted values at + // `projects/bar` are `organizations/O1`, `folders/F1`, `projects/P1`. InheritFromParent bool `json:"inheritFromParent,omitempty"` - - // SuggestedValue: Optional. The Google Cloud Console will try to - // default to a configuration that matches the value specified in this - // `Policy`. If `suggested_value` is not set, it will inherit the value - // specified higher in the hierarchy, unless `inherit_from_parent` is - // `false`. + // SuggestedValue: Optional. The Google Cloud Console will try to default to a + // configuration that matches the value specified in this `Policy`. If + // `suggested_value` is not set, it will inherit the value specified higher in + // the hierarchy, unless `inherit_from_parent` is `false`. SuggestedValue string `json:"suggestedValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllValues") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AllValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudOrgpolicyV1ListPolicy) MarshalJSON() ([]byte, error) { +func (s GoogleCloudOrgpolicyV1ListPolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudOrgpolicyV1ListPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudOrgpolicyV1Policy: Defines a Cloud Organization `Policy` -// which is used to specify `Constraints` for configurations of Cloud -// Platform resources. +// GoogleCloudOrgpolicyV1Policy: Defines a Cloud Organization `Policy` which is +// used to specify `Constraints` for configurations of Cloud Platform +// resources. type GoogleCloudOrgpolicyV1Policy struct { // BooleanPolicy: For boolean `Constraints`, whether to enforce the // `Constraint` or not. BooleanPolicy *GoogleCloudOrgpolicyV1BooleanPolicy `json:"booleanPolicy,omitempty"` - - // Constraint: The name of the `Constraint` the `Policy` is configuring, - // for example, `constraints/serviceuser.services`. A list of available - // constraints - // (/resource-manager/docs/organization-policy/org-policy-constraints) - // is available. Immutable after creation. + // Constraint: The name of the `Constraint` the `Policy` is configuring, for + // example, `constraints/serviceuser.services`. A list of available constraints + // (/resource-manager/docs/organization-policy/org-policy-constraints) is + // available. Immutable after creation. Constraint string `json:"constraint,omitempty"` - - // Etag: An opaque tag indicating the current version of the `Policy`, - // used for concurrency control. When the `Policy` is returned from - // either a `GetPolicy` or a `ListOrgPolicy` request, this `etag` - // indicates the version of the current `Policy` to use when executing a - // read-modify-write loop. When the `Policy` is returned from a - // `GetEffectivePolicy` request, the `etag` will be unset. When the - // `Policy` is used in a `SetOrgPolicy` method, use the `etag` value - // that was returned from a `GetOrgPolicy` request as part of a - // read-modify-write loop for concurrency control. Not setting the - // `etag`in a `SetOrgPolicy` request will result in an unconditional - // write of the `Policy`. + // Etag: An opaque tag indicating the current version of the `Policy`, used for + // concurrency control. When the `Policy` is returned from either a `GetPolicy` + // or a `ListOrgPolicy` request, this `etag` indicates the version of the + // current `Policy` to use when executing a read-modify-write loop. When the + // `Policy` is returned from a `GetEffectivePolicy` request, the `etag` will be + // unset. When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` + // value that was returned from a `GetOrgPolicy` request as part of a + // read-modify-write loop for concurrency control. Not setting the `etag`in a + // `SetOrgPolicy` request will result in an unconditional write of the + // `Policy`. Etag string `json:"etag,omitempty"` - // ListPolicy: List of values either allowed or disallowed. ListPolicy *GoogleCloudOrgpolicyV1ListPolicy `json:"listPolicy,omitempty"` - - // RestoreDefault: Restores the default behavior of the constraint; - // independent of `Constraint` type. + // RestoreDefault: Restores the default behavior of the constraint; independent + // of `Constraint` type. RestoreDefault *GoogleCloudOrgpolicyV1RestoreDefault `json:"restoreDefault,omitempty"` - - // UpdateTime: The time stamp the `Policy` was previously updated. This - // is set by the server, not specified by the caller, and represents the - // last time a call to `SetOrgPolicy` was made for that `Policy`. Any - // value set by the client will be ignored. + // UpdateTime: The time stamp the `Policy` was previously updated. This is set + // by the server, not specified by the caller, and represents the last time a + // call to `SetOrgPolicy` was made for that `Policy`. Any value set by the + // client will be ignored. UpdateTime string `json:"updateTime,omitempty"` - // Version: Version of the `Policy`. Default version is 0; Version int64 `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "BooleanPolicy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanPolicy") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanPolicy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudOrgpolicyV1Policy) MarshalJSON() ([]byte, error) { +func (s GoogleCloudOrgpolicyV1Policy) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudOrgpolicyV1Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudOrgpolicyV1RestoreDefault: Ignores policies set above this -// resource and restores the `constraint_default` enforcement behavior -// of the specific `Constraint` at this resource. Suppose that -// `constraint_default` is set to `ALLOW` for the `Constraint` -// `constraints/serviceuser.services`. Suppose that organization foo.com -// sets a `Policy` at their Organization resource node that restricts -// the allowed service activations to deny all service activations. They -// could then set a `Policy` with the `policy_type` `restore_default` on -// several experimental projects, restoring the `constraint_default` -// enforcement of the `Constraint` for only those projects, allowing -// those projects to have all services activated. +// resource and restores the `constraint_default` enforcement behavior of the +// specific `Constraint` at this resource. Suppose that `constraint_default` is +// set to `ALLOW` for the `Constraint` `constraints/serviceuser.services`. +// Suppose that organization foo.com sets a `Policy` at their Organization +// resource node that restricts the allowed service activations to deny all +// service activations. They could then set a `Policy` with the `policy_type` +// `restore_default` on several experimental projects, restoring the +// `constraint_default` enforcement of the `Constraint` for only those +// projects, allowing those projects to have all services activated. type GoogleCloudOrgpolicyV1RestoreDefault struct { } -// GoogleIdentityAccesscontextmanagerV1AccessLevel: An `AccessLevel` is -// a label that can be applied to requests to Google Cloud services, -// along with a list of requirements necessary for the label to be -// applied. +// GoogleIdentityAccesscontextmanagerV1AccessLevel: An `AccessLevel` is a label +// that can be applied to requests to Google Cloud services, along with a list +// of requirements necessary for the label to be applied. type GoogleIdentityAccesscontextmanagerV1AccessLevel struct { // Basic: A `BasicLevel` composed of `Conditions`. Basic *GoogleIdentityAccesscontextmanagerV1BasicLevel `json:"basic,omitempty"` - // Custom: A `CustomLevel` written in the Common Expression Language. Custom *GoogleIdentityAccesscontextmanagerV1CustomLevel `json:"custom,omitempty"` - - // Description: Description of the `AccessLevel` and its use. Does not - // affect behavior. + // Description: Description of the `AccessLevel` and its use. Does not affect + // behavior. Description string `json:"description,omitempty"` - // Name: Required. Resource name for the Access Level. The `short_name` - // component must begin with a letter and only include alphanumeric and - // '_'. Format: - // `accessPolicies/{access_policy}/accessLevels/{access_level}`. The + // component must begin with a letter and only include alphanumeric and '_'. + // Format: `accessPolicies/{access_policy}/accessLevels/{access_level}`. The // maximum length of the `access_level` component is 50 characters. Name string `json:"name,omitempty"` - // Title: Human readable title. Must be unique within the Policy. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Basic") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Basic") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Basic") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1AccessLevel) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1AccessLevel) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1AccessLevel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIdentityAccesscontextmanagerV1AccessPolicy: `AccessPolicy` is a -// container for `AccessLevels` (which define the necessary attributes -// to use Google Cloud services) and `ServicePerimeters` (which define -// regions of services able to freely pass data within a perimeter). An -// access policy is globally visible within an organization, and the -// restrictions it specifies apply to all projects within an -// organization. +// container for `AccessLevels` (which define the necessary attributes to use +// Google Cloud services) and `ServicePerimeters` (which define regions of +// services able to freely pass data within a perimeter). An access policy is +// globally visible within an organization, and the restrictions it specifies +// apply to all projects within an organization. type GoogleIdentityAccesscontextmanagerV1AccessPolicy struct { - // Etag: Output only. An opaque identifier for the current version of - // the `AccessPolicy`. This will always be a strongly validated etag, - // meaning that two Access Polices will be identical if and only if - // their etags are identical. Clients should not expect this to be in - // any specific format. + // Etag: Output only. An opaque identifier for the current version of the + // `AccessPolicy`. This will always be a strongly validated etag, meaning that + // two Access Polices will be identical if and only if their etags are + // identical. Clients should not expect this to be in any specific format. Etag string `json:"etag,omitempty"` - // Name: Output only. Resource name of the `AccessPolicy`. Format: // `accessPolicies/{access_policy}` Name string `json:"name,omitempty"` - - // Parent: Required. The parent of this `AccessPolicy` in the Cloud - // Resource Hierarchy. Currently immutable once created. Format: + // Parent: Required. The parent of this `AccessPolicy` in the Cloud Resource + // Hierarchy. Currently immutable once created. Format: // `organizations/{organization_id}` Parent string `json:"parent,omitempty"` - - // Scopes: The scopes of a policy define which resources an ACM policy - // can restrict, and where ACM resources can be referenced. For example, - // a policy with scopes=["folders/123"] has the following behavior: - - // vpcsc perimeters can only restrict projects within folders/123 - - // access levels can only be referenced by resources within folders/123. - // If empty, there are no limitations on which resources can be - // restricted by an ACM policy, and there are no limitations on where - // ACM resources can be referenced. Only one policy can include a given - // scope (attempting to create a second policy which includes - // "folders/123" will result in an error). Currently, scopes cannot be - // modified after a policy is created. Currently, policies can only have - // a single scope. Format: list of `folders/{folder_number}` or + // Scopes: The scopes of a policy define which resources an ACM policy can + // restrict, and where ACM resources can be referenced. For example, a policy + // with scopes=["folders/123"] has the following behavior: - vpcsc perimeters + // can only restrict projects within folders/123 - access levels can only be + // referenced by resources within folders/123. If empty, there are no + // limitations on which resources can be restricted by an ACM policy, and there + // are no limitations on where ACM resources can be referenced. Only one policy + // can include a given scope (attempting to create a second policy which + // includes "folders/123" will result in an error). Currently, scopes cannot be + // modified after a policy is created. Currently, policies can only have a + // single scope. Format: list of `folders/{folder_number}` or // `projects/{project_number}` Scopes []string `json:"scopes,omitempty"` - // Title: Required. Human readable title. Does not affect behavior. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1AccessPolicy) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1AccessPolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1AccessPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIdentityAccesscontextmanagerV1ApiOperation: Identification for -// an API Operation. +// GoogleIdentityAccesscontextmanagerV1ApiOperation: Identification for an API +// Operation. type GoogleIdentityAccesscontextmanagerV1ApiOperation struct { - // MethodSelectors: API methods or permissions to allow. Method or - // permission must belong to the service specified by `service_name` - // field. A single MethodSelector entry with `*` specified for the - // `method` field will allow all methods AND permissions for the service - // specified in `service_name`. + // MethodSelectors: API methods or permissions to allow. Method or permission + // must belong to the service specified by `service_name` field. A single + // MethodSelector entry with `*` specified for the `method` field will allow + // all methods AND permissions for the service specified in `service_name`. MethodSelectors []*GoogleIdentityAccesscontextmanagerV1MethodSelector `json:"methodSelectors,omitempty"` - // ServiceName: The name of the API whose methods or permissions the - // IngressPolicy or EgressPolicy want to allow. A single ApiOperation - // with `service_name` field set to `*` will allow all methods AND - // permissions for all services. + // IngressPolicy or EgressPolicy want to allow. A single ApiOperation with + // `service_name` field set to `*` will allow all methods AND permissions for + // all services. ServiceName string `json:"serviceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "MethodSelectors") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MethodSelectors") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MethodSelectors") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1ApiOperation) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1ApiOperation) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1ApiOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIdentityAccesscontextmanagerV1BasicLevel: `BasicLevel` is an // `AccessLevel` using a set of recommended features. type GoogleIdentityAccesscontextmanagerV1BasicLevel struct { - // CombiningFunction: How the `conditions` list should be combined to - // determine if a request is granted this `AccessLevel`. If AND is used, - // each `Condition` in `conditions` must be satisfied for the - // `AccessLevel` to be applied. If OR is used, at least one `Condition` - // in `conditions` must be satisfied for the `AccessLevel` to be - // applied. Default behavior is AND. + // CombiningFunction: How the `conditions` list should be combined to determine + // if a request is granted this `AccessLevel`. If AND is used, each `Condition` + // in `conditions` must be satisfied for the `AccessLevel` to be applied. If OR + // is used, at least one `Condition` in `conditions` must be satisfied for the + // `AccessLevel` to be applied. Default behavior is AND. // // Possible values: - // "AND" - All `Conditions` must be true for the `BasicLevel` to be - // true. - // "OR" - If at least one `Condition` is true, then the `BasicLevel` - // is true. + // "AND" - All `Conditions` must be true for the `BasicLevel` to be true. + // "OR" - If at least one `Condition` is true, then the `BasicLevel` is true. CombiningFunction string `json:"combiningFunction,omitempty"` - - // Conditions: Required. A list of requirements for the `AccessLevel` to - // be granted. + // Conditions: Required. A list of requirements for the `AccessLevel` to be + // granted. Conditions []*GoogleIdentityAccesscontextmanagerV1Condition `json:"conditions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CombiningFunction") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CombiningFunction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CombiningFunction") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CombiningFunction") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1BasicLevel) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1BasicLevel) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1BasicLevel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIdentityAccesscontextmanagerV1Condition: A condition necessary -// for an `AccessLevel` to be granted. The Condition is an AND over its -// fields. So a Condition is true if: 1) the request IP is from one of -// the listed subnetworks AND 2) the originating device complies with -// the listed device policy AND 3) all listed access levels are granted -// AND 4) the request was sent at a time allowed by the -// DateTimeRestriction. +// GoogleIdentityAccesscontextmanagerV1Condition: A condition necessary for an +// `AccessLevel` to be granted. The Condition is an AND over its fields. So a +// Condition is true if: 1) the request IP is from one of the listed +// subnetworks AND 2) the originating device complies with the listed device +// policy AND 3) all listed access levels are granted AND 4) the request was +// sent at a time allowed by the DateTimeRestriction. type GoogleIdentityAccesscontextmanagerV1Condition struct { - // DevicePolicy: Device specific restrictions, all restrictions must - // hold for the Condition to be true. If not specified, all devices are - // allowed. + // DevicePolicy: Device specific restrictions, all restrictions must hold for + // the Condition to be true. If not specified, all devices are allowed. DevicePolicy *GoogleIdentityAccesscontextmanagerV1DevicePolicy `json:"devicePolicy,omitempty"` - - // IpSubnetworks: CIDR block IP subnetwork specification. May be IPv4 or - // IPv6. Note that for a CIDR IP address block, the specified IP address - // portion must be properly truncated (i.e. all the host bits must be - // zero) or the input is considered malformed. For example, - // "192.0.2.0/24" is accepted but "192.0.2.1/24" is not. Similarly, for - // IPv6, "2001:db8::/32" is accepted whereas "2001:db8::1/32" is not. - // The originating IP of a request must be in one of the listed subnets - // in order for this Condition to be true. If empty, all IP addresses - // are allowed. + // IpSubnetworks: CIDR block IP subnetwork specification. May be IPv4 or IPv6. + // Note that for a CIDR IP address block, the specified IP address portion must + // be properly truncated (i.e. all the host bits must be zero) or the input is + // considered malformed. For example, "192.0.2.0/24" is accepted but + // "192.0.2.1/24" is not. Similarly, for IPv6, "2001:db8::/32" is accepted + // whereas "2001:db8::1/32" is not. The originating IP of a request must be in + // one of the listed subnets in order for this Condition to be true. If empty, + // all IP addresses are allowed. IpSubnetworks []string `json:"ipSubnetworks,omitempty"` - - // Members: The request must be made by one of the provided user or - // service accounts. Groups are not supported. Syntax: `user:{emailid}` - // `serviceAccount:{emailid}` If not specified, a request may come from - // any user. + // Members: The request must be made by one of the provided user or service + // accounts. Groups are not supported. Syntax: `user:{emailid}` + // `serviceAccount:{emailid}` If not specified, a request may come from any + // user. Members []string `json:"members,omitempty"` - - // Negate: Whether to negate the Condition. If true, the Condition - // becomes a NAND over its non-empty fields, each field must be false - // for the Condition overall to be satisfied. Defaults to false. + // Negate: Whether to negate the Condition. If true, the Condition becomes a + // NAND over its non-empty fields, each field must be false for the Condition + // overall to be satisfied. Defaults to false. Negate bool `json:"negate,omitempty"` - // Regions: The request must originate from one of the provided // countries/regions. Must be valid ISO 3166-1 alpha-2 codes. Regions []string `json:"regions,omitempty"` - - // RequiredAccessLevels: A list of other access levels defined in the - // same `Policy`, referenced by resource name. Referencing an - // `AccessLevel` which does not exist is an error. All access levels - // listed must be granted for the Condition to be true. Example: + // RequiredAccessLevels: A list of other access levels defined in the same + // `Policy`, referenced by resource name. Referencing an `AccessLevel` which + // does not exist is an error. All access levels listed must be granted for the + // Condition to be true. Example: // "accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME" RequiredAccessLevels []string `json:"requiredAccessLevels,omitempty"` - // ForceSendFields is a list of field names (e.g. "DevicePolicy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DevicePolicy") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DevicePolicy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1Condition) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1Condition) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1Condition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIdentityAccesscontextmanagerV1CustomLevel: `CustomLevel` is an -// `AccessLevel` using the Cloud Common Expression Language to represent -// the necessary conditions for the level to apply to a request. See CEL -// spec at: https://github.com/google/cel-spec +// `AccessLevel` using the Cloud Common Expression Language to represent the +// necessary conditions for the level to apply to a request. See CEL spec at: +// https://github.com/google/cel-spec type GoogleIdentityAccesscontextmanagerV1CustomLevel struct { // Expr: Required. A Cloud CEL expression evaluating to a boolean. Expr *Expr `json:"expr,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Expr") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Expr") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expr") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expr") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1CustomLevel) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1CustomLevel) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1CustomLevel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleIdentityAccesscontextmanagerV1DevicePolicy: `DevicePolicy` -// specifies device specific restrictions necessary to acquire a given -// access level. A `DevicePolicy` specifies requirements for requests -// from devices to be granted access levels, it does not do any -// enforcement on the device. `DevicePolicy` acts as an AND over all -// specified fields, and each repeated field is an OR over its elements. -// Any unset fields are ignored. For example, if the proto is { os_type -// : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX, encryption_status: -// ENCRYPTED}, then the DevicePolicy will be true for requests -// originating from encrypted Linux desktops and encrypted Windows + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIdentityAccesscontextmanagerV1DevicePolicy: `DevicePolicy` specifies +// device specific restrictions necessary to acquire a given access level. A +// `DevicePolicy` specifies requirements for requests from devices to be +// granted access levels, it does not do any enforcement on the device. +// `DevicePolicy` acts as an AND over all specified fields, and each repeated +// field is an OR over its elements. Any unset fields are ignored. For example, +// if the proto is { os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX, +// encryption_status: ENCRYPTED}, then the DevicePolicy will be true for +// requests originating from encrypted Linux desktops and encrypted Windows // desktops. type GoogleIdentityAccesscontextmanagerV1DevicePolicy struct { - // AllowedDeviceManagementLevels: Allowed device management levels, an - // empty list allows all management levels. + // AllowedDeviceManagementLevels: Allowed device management levels, an empty + // list allows all management levels. // // Possible values: - // "MANAGEMENT_UNSPECIFIED" - The device's management level is not - // specified or not known. + // "MANAGEMENT_UNSPECIFIED" - The device's management level is not specified + // or not known. // "NONE" - The device is not managed. - // "BASIC" - Basic management is enabled, which is generally limited - // to monitoring and wiping the corporate account. - // "COMPLETE" - Complete device management. This includes more - // thorough monitoring and the ability to directly manage the device - // (such as remote wiping). This can be enabled through the Android - // Enterprise Platform. + // "BASIC" - Basic management is enabled, which is generally limited to + // monitoring and wiping the corporate account. + // "COMPLETE" - Complete device management. This includes more thorough + // monitoring and the ability to directly manage the device (such as remote + // wiping). This can be enabled through the Android Enterprise Platform. AllowedDeviceManagementLevels []string `json:"allowedDeviceManagementLevels,omitempty"` - - // AllowedEncryptionStatuses: Allowed encryptions statuses, an empty - // list allows all statuses. + // AllowedEncryptionStatuses: Allowed encryptions statuses, an empty list + // allows all statuses. // // Possible values: - // "ENCRYPTION_UNSPECIFIED" - The encryption status of the device is - // not specified or not known. + // "ENCRYPTION_UNSPECIFIED" - The encryption status of the device is not + // specified or not known. // "ENCRYPTION_UNSUPPORTED" - The device does not support encryption. // "UNENCRYPTED" - The device supports encryption, but is currently // unencrypted. // "ENCRYPTED" - The device is encrypted. AllowedEncryptionStatuses []string `json:"allowedEncryptionStatuses,omitempty"` - - // OsConstraints: Allowed OS versions, an empty list allows all types - // and all versions. + // OsConstraints: Allowed OS versions, an empty list allows all types and all + // versions. OsConstraints []*GoogleIdentityAccesscontextmanagerV1OsConstraint `json:"osConstraints,omitempty"` - // RequireAdminApproval: Whether the device needs to be approved by the // customer admin. RequireAdminApproval bool `json:"requireAdminApproval,omitempty"` - // RequireCorpOwned: Whether the device needs to be corp owned. RequireCorpOwned bool `json:"requireCorpOwned,omitempty"` - // RequireScreenlock: Whether or not screenlock is required for the // DevicePolicy to be true. Defaults to `false`. RequireScreenlock bool `json:"requireScreenlock,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AllowedDeviceManagementLevels") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "AllowedDeviceManagementLevels") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AllowedDeviceManagementLevels") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AllowedDeviceManagementLevels") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1DevicePolicy) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1DevicePolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1DevicePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIdentityAccesscontextmanagerV1EgressFrom: Defines the -// conditions under which an EgressPolicy matches a request. Conditions -// based on information about the source of the request. Note that if -// the destination of the request is also protected by a -// ServicePerimeter, then that ServicePerimeter must have an -// IngressPolicy which allows access in order for this request to +// GoogleIdentityAccesscontextmanagerV1EgressFrom: Defines the conditions under +// which an EgressPolicy matches a request. Conditions based on information +// about the source of the request. Note that if the destination of the request +// is also protected by a ServicePerimeter, then that ServicePerimeter must +// have an IngressPolicy which allows access in order for this request to // succeed. type GoogleIdentityAccesscontextmanagerV1EgressFrom struct { // Identities: A list of identities that are allowed access through this - // [EgressPolicy]. Should be in the format of email address. The email - // address should represent individual user or service account only. + // [EgressPolicy]. Should be in the format of email address. The email address + // should represent individual user or service account only. Identities []string `json:"identities,omitempty"` - - // IdentityType: Specifies the type of identities that are allowed - // access to outside the perimeter. If left unspecified, then members of - // `identities` field will be allowed access. + // IdentityType: Specifies the type of identities that are allowed access to + // outside the perimeter. If left unspecified, then members of `identities` + // field will be allowed access. // // Possible values: // "IDENTITY_TYPE_UNSPECIFIED" - No blanket identity group specified. // "ANY_IDENTITY" - Authorize access from all identities outside the // perimeter. - // "ANY_USER_ACCOUNT" - Authorize access from all human users outside + // "ANY_USER_ACCOUNT" - Authorize access from all human users outside the + // perimeter. + // "ANY_SERVICE_ACCOUNT" - Authorize access from all service accounts outside // the perimeter. - // "ANY_SERVICE_ACCOUNT" - Authorize access from all service accounts - // outside the perimeter. IdentityType string `json:"identityType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Identities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Identities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Identities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1EgressFrom) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1EgressFrom) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1EgressFrom - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleIdentityAccesscontextmanagerV1EgressPolicy: Policy for egress -// from perimeter. EgressPolicies match requests based on `egress_from` -// and `egress_to` stanzas. For an EgressPolicy to match, both -// `egress_from` and `egress_to` stanzas must be matched. If an -// EgressPolicy matches a request, the request is allowed to span the -// ServicePerimeter boundary. For example, an EgressPolicy can be used -// to allow VMs on networks within the ServicePerimeter to access a -// defined set of projects outside the perimeter in certain contexts -// (e.g. to read data from a Cloud Storage bucket or query against a -// BigQuery dataset). EgressPolicies are concerned with the *resources* -// that a request relates as well as the API services and API actions -// being used. They do not related to the direction of data movement. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIdentityAccesscontextmanagerV1EgressPolicy: Policy for egress from +// perimeter. EgressPolicies match requests based on `egress_from` and +// `egress_to` stanzas. For an EgressPolicy to match, both `egress_from` and +// `egress_to` stanzas must be matched. If an EgressPolicy matches a request, +// the request is allowed to span the ServicePerimeter boundary. For example, +// an EgressPolicy can be used to allow VMs on networks within the +// ServicePerimeter to access a defined set of projects outside the perimeter +// in certain contexts (e.g. to read data from a Cloud Storage bucket or query +// against a BigQuery dataset). EgressPolicies are concerned with the +// *resources* that a request relates as well as the API services and API +// actions being used. They do not related to the direction of data movement. // More detailed documentation for this concept can be found in the // descriptions of EgressFrom and EgressTo. type GoogleIdentityAccesscontextmanagerV1EgressPolicy struct { - // EgressFrom: Defines conditions on the source of a request causing - // this EgressPolicy to apply. + // EgressFrom: Defines conditions on the source of a request causing this + // EgressPolicy to apply. EgressFrom *GoogleIdentityAccesscontextmanagerV1EgressFrom `json:"egressFrom,omitempty"` - // EgressTo: Defines the conditions on the ApiOperation and destination // resources that cause this EgressPolicy to apply. EgressTo *GoogleIdentityAccesscontextmanagerV1EgressTo `json:"egressTo,omitempty"` - // ForceSendFields is a list of field names (e.g. "EgressFrom") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EgressFrom") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EgressFrom") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1EgressPolicy) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1EgressPolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1EgressPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleIdentityAccesscontextmanagerV1EgressTo: Defines the conditions -// under which an EgressPolicy matches a request. Conditions are based -// on information about the ApiOperation intended to be performed on the -// `resources` specified. Note that if the destination of the request is -// also protected by a ServicePerimeter, then that ServicePerimeter must -// have an IngressPolicy which allows access in order for this request -// to succeed. The request must match `operations` AND `resources` -// fields in order to be allowed egress out of the perimeter. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIdentityAccesscontextmanagerV1EgressTo: Defines the conditions under +// which an EgressPolicy matches a request. Conditions are based on information +// about the ApiOperation intended to be performed on the `resources` +// specified. Note that if the destination of the request is also protected by +// a ServicePerimeter, then that ServicePerimeter must have an IngressPolicy +// which allows access in order for this request to succeed. The request must +// match `operations` AND `resources` fields in order to be allowed egress out +// of the perimeter. type GoogleIdentityAccesscontextmanagerV1EgressTo struct { - // ExternalResources: A list of external resources that are allowed to - // be accessed. A request matches if it contains an external resource in - // this list (Example: s3://bucket/path). Currently '*' is not allowed. + // ExternalResources: A list of external resources that are allowed to be + // accessed. A request matches if it contains an external resource in this list + // (Example: s3://bucket/path). Currently '*' is not allowed. ExternalResources []string `json:"externalResources,omitempty"` - - // Operations: A list of ApiOperations allowed to be performed by the - // sources specified in the corresponding EgressFrom. A request matches - // if it uses an operation/service in this list. + // Operations: A list of ApiOperations allowed to be performed by the sources + // specified in the corresponding EgressFrom. A request matches if it uses an + // operation/service in this list. Operations []*GoogleIdentityAccesscontextmanagerV1ApiOperation `json:"operations,omitempty"` - // Resources: A list of resources, currently only projects in the form - // `projects/`, that are allowed to be accessed by sources defined in - // the corresponding EgressFrom. A request matches if it contains a - // resource in this list. If `*` is specified for `resources`, then this - // EgressTo rule will authorize access to all resources outside the - // perimeter. + // `projects/`, that are allowed to be accessed by sources defined in the + // corresponding EgressFrom. A request matches if it contains a resource in + // this list. If `*` is specified for `resources`, then this EgressTo rule will + // authorize access to all resources outside the perimeter. Resources []string `json:"resources,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ExternalResources") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ExternalResources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExternalResources") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExternalResources") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1EgressTo) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1EgressTo) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1EgressTo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIdentityAccesscontextmanagerV1IngressFrom: Defines the -// conditions under which an IngressPolicy matches a request. Conditions -// are based on information about the source of the request. The request -// must satisfy what is defined in `sources` AND identity related fields -// in order to match. +// GoogleIdentityAccesscontextmanagerV1IngressFrom: Defines the conditions +// under which an IngressPolicy matches a request. Conditions are based on +// information about the source of the request. The request must satisfy what +// is defined in `sources` AND identity related fields in order to match. type GoogleIdentityAccesscontextmanagerV1IngressFrom struct { // Identities: A list of identities that are allowed access through this - // ingress policy. Should be in the format of email address. The email - // address should represent individual user or service account only. + // ingress policy. Should be in the format of email address. The email address + // should represent individual user or service account only. Identities []string `json:"identities,omitempty"` - - // IdentityType: Specifies the type of identities that are allowed - // access from outside the perimeter. If left unspecified, then members - // of `identities` field will be allowed access. + // IdentityType: Specifies the type of identities that are allowed access from + // outside the perimeter. If left unspecified, then members of `identities` + // field will be allowed access. // // Possible values: // "IDENTITY_TYPE_UNSPECIFIED" - No blanket identity group specified. // "ANY_IDENTITY" - Authorize access from all identities outside the // perimeter. - // "ANY_USER_ACCOUNT" - Authorize access from all human users outside + // "ANY_USER_ACCOUNT" - Authorize access from all human users outside the + // perimeter. + // "ANY_SERVICE_ACCOUNT" - Authorize access from all service accounts outside // the perimeter. - // "ANY_SERVICE_ACCOUNT" - Authorize access from all service accounts - // outside the perimeter. IdentityType string `json:"identityType,omitempty"` - // Sources: Sources that this IngressPolicy authorizes access from. Sources []*GoogleIdentityAccesscontextmanagerV1IngressSource `json:"sources,omitempty"` - // ForceSendFields is a list of field names (e.g. "Identities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Identities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Identities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1IngressFrom) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1IngressFrom) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1IngressFrom - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleIdentityAccesscontextmanagerV1IngressPolicy: Policy for ingress -// into ServicePerimeter. IngressPolicies match requests based on -// `ingress_from` and `ingress_to` stanzas. For an ingress policy to -// match, both the `ingress_from` and `ingress_to` stanzas must be -// matched. If an IngressPolicy matches a request, the request is -// allowed through the perimeter boundary from outside the perimeter. -// For example, access from the internet can be allowed either based on -// an AccessLevel or, for traffic hosted on Google Cloud, the project of -// the source network. For access from private networks, using the -// project of the hosting network is required. Individual ingress -// policies can be limited by restricting which services and/or actions -// they match using the `ingress_to` field. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIdentityAccesscontextmanagerV1IngressPolicy: Policy for ingress into +// ServicePerimeter. IngressPolicies match requests based on `ingress_from` and +// `ingress_to` stanzas. For an ingress policy to match, both the +// `ingress_from` and `ingress_to` stanzas must be matched. If an IngressPolicy +// matches a request, the request is allowed through the perimeter boundary +// from outside the perimeter. For example, access from the internet can be +// allowed either based on an AccessLevel or, for traffic hosted on Google +// Cloud, the project of the source network. For access from private networks, +// using the project of the hosting network is required. Individual ingress +// policies can be limited by restricting which services and/or actions they +// match using the `ingress_to` field. type GoogleIdentityAccesscontextmanagerV1IngressPolicy struct { - // IngressFrom: Defines the conditions on the source of a request - // causing this IngressPolicy to apply. + // IngressFrom: Defines the conditions on the source of a request causing this + // IngressPolicy to apply. IngressFrom *GoogleIdentityAccesscontextmanagerV1IngressFrom `json:"ingressFrom,omitempty"` - // IngressTo: Defines the conditions on the ApiOperation and request // destination that cause this IngressPolicy to apply. IngressTo *GoogleIdentityAccesscontextmanagerV1IngressTo `json:"ingressTo,omitempty"` - // ForceSendFields is a list of field names (e.g. "IngressFrom") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IngressFrom") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IngressFrom") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1IngressPolicy) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1IngressPolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1IngressPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIdentityAccesscontextmanagerV1IngressSource: The source that // IngressPolicy authorizes access from. type GoogleIdentityAccesscontextmanagerV1IngressSource struct { - // AccessLevel: An AccessLevel resource name that allow resources within - // the ServicePerimeters to be accessed from the internet. AccessLevels - // listed must be in the same policy as this ServicePerimeter. - // Referencing a nonexistent AccessLevel will cause an error. If no - // AccessLevel names are listed, resources within the perimeter can only - // be accessed via Google Cloud calls with request origins within the - // perimeter. Example: `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. - // If a single `*` is specified for `access_level`, then all - // IngressSources will be allowed. + // AccessLevel: An AccessLevel resource name that allow resources within the + // ServicePerimeters to be accessed from the internet. AccessLevels listed must + // be in the same policy as this ServicePerimeter. Referencing a nonexistent + // AccessLevel will cause an error. If no AccessLevel names are listed, + // resources within the perimeter can only be accessed via Google Cloud calls + // with request origins within the perimeter. Example: + // `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. If a single `*` is + // specified for `access_level`, then all IngressSources will be allowed. AccessLevel string `json:"accessLevel,omitempty"` - - // Resource: A Google Cloud resource that is allowed to ingress the - // perimeter. Requests from these resources will be allowed to access - // perimeter data. Currently only projects are allowed. Format: - // `projects/{project_number}` The project may be in any Google Cloud - // organization, not just the organization that the perimeter is defined - // in. `*` is not allowed, the case of allowing all Google Cloud - // resources only is not supported. + // Resource: A Google Cloud resource that is allowed to ingress the perimeter. + // Requests from these resources will be allowed to access perimeter data. + // Currently only projects are allowed. Format: `projects/{project_number}` The + // project may be in any Google Cloud organization, not just the organization + // that the perimeter is defined in. `*` is not allowed, the case of allowing + // all Google Cloud resources only is not supported. Resource string `json:"resource,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessLevel") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessLevel") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessLevel") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1IngressSource) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1IngressSource) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1IngressSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIdentityAccesscontextmanagerV1IngressTo: Defines the conditions -// under which an IngressPolicy matches a request. Conditions are based -// on information about the ApiOperation intended to be performed on the -// target resource of the request. The request must satisfy what is -// defined in `operations` AND `resources` in order to match. +// GoogleIdentityAccesscontextmanagerV1IngressTo: Defines the conditions under +// which an IngressPolicy matches a request. Conditions are based on +// information about the ApiOperation intended to be performed on the target +// resource of the request. The request must satisfy what is defined in +// `operations` AND `resources` in order to match. type GoogleIdentityAccesscontextmanagerV1IngressTo struct { - // Operations: A list of ApiOperations allowed to be performed by the - // sources specified in corresponding IngressFrom in this - // ServicePerimeter. + // Operations: A list of ApiOperations allowed to be performed by the sources + // specified in corresponding IngressFrom in this ServicePerimeter. Operations []*GoogleIdentityAccesscontextmanagerV1ApiOperation `json:"operations,omitempty"` - // Resources: A list of resources, currently only projects in the form - // `projects/`, protected by this ServicePerimeter that are allowed to - // be accessed by sources defined in the corresponding IngressFrom. If a - // single `*` is specified, then access to all resources inside the - // perimeter are allowed. + // `projects/`, protected by this ServicePerimeter that are allowed to be + // accessed by sources defined in the corresponding IngressFrom. If a single + // `*` is specified, then access to all resources inside the perimeter are + // allowed. Resources []string `json:"resources,omitempty"` - // ForceSendFields is a list of field names (e.g. "Operations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Operations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Operations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1IngressTo) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1IngressTo) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1IngressTo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIdentityAccesscontextmanagerV1MethodSelector: An allowed method -// or permission of a service specified in ApiOperation. +// GoogleIdentityAccesscontextmanagerV1MethodSelector: An allowed method or +// permission of a service specified in ApiOperation. type GoogleIdentityAccesscontextmanagerV1MethodSelector struct { // Method: Value for `method` should be a valid method name for the - // corresponding `service_name` in ApiOperation. If `*` used as value - // for `method`, then ALL methods and permissions are allowed. + // corresponding `service_name` in ApiOperation. If `*` used as value for + // `method`, then ALL methods and permissions are allowed. Method string `json:"method,omitempty"` - - // Permission: Value for `permission` should be a valid Cloud IAM - // permission for the corresponding `service_name` in ApiOperation. + // Permission: Value for `permission` should be a valid Cloud IAM permission + // for the corresponding `service_name` in ApiOperation. Permission string `json:"permission,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Method") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Method") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Method") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1MethodSelector) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1MethodSelector) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1MethodSelector - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIdentityAccesscontextmanagerV1OsConstraint: A restriction on -// the OS type and version of devices making requests. +// GoogleIdentityAccesscontextmanagerV1OsConstraint: A restriction on the OS +// type and version of devices making requests. type GoogleIdentityAccesscontextmanagerV1OsConstraint struct { - // MinimumVersion: The minimum allowed OS version. If not set, any - // version of this OS satisfies the constraint. Format: - // "major.minor.patch". Examples: "10.5.301", "9.2.1". + // MinimumVersion: The minimum allowed OS version. If not set, any version of + // this OS satisfies the constraint. Format: "major.minor.patch". Examples: + // "10.5.301", "9.2.1". MinimumVersion string `json:"minimumVersion,omitempty"` - // OsType: Required. The allowed OS type. // // Possible values: - // "OS_UNSPECIFIED" - The operating system of the device is not - // specified or not known. + // "OS_UNSPECIFIED" - The operating system of the device is not specified or + // not known. // "DESKTOP_MAC" - A desktop Mac operating system. // "DESKTOP_WINDOWS" - A desktop Windows operating system. // "DESKTOP_LINUX" - A desktop Linux operating system. @@ -2236,756 +1856,602 @@ type GoogleIdentityAccesscontextmanagerV1OsConstraint struct { // "ANDROID" - An Android operating system. // "IOS" - An iOS operating system. OsType string `json:"osType,omitempty"` - - // RequireVerifiedChromeOs: Only allows requests from devices with a - // verified Chrome OS. Verifications includes requirements that the - // device is enterprise-managed, conformant to domain policies, and the - // caller has permission to call the API targeted by the request. + // RequireVerifiedChromeOs: Only allows requests from devices with a verified + // Chrome OS. Verifications includes requirements that the device is + // enterprise-managed, conformant to domain policies, and the caller has + // permission to call the API targeted by the request. RequireVerifiedChromeOs bool `json:"requireVerifiedChromeOs,omitempty"` - // ForceSendFields is a list of field names (e.g. "MinimumVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MinimumVersion") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MinimumVersion") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1OsConstraint) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1OsConstraint) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1OsConstraint - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleIdentityAccesscontextmanagerV1ServicePerimeter: -// `ServicePerimeter` describes a set of Google Cloud resources which -// can freely import and export data amongst themselves, but not export -// outside of the `ServicePerimeter`. If a request with a source within -// this `ServicePerimeter` has a target outside of the -// `ServicePerimeter`, the request will be blocked. Otherwise the -// request is allowed. There are two types of Service Perimeter - -// Regular and Bridge. Regular Service Perimeters cannot overlap, a -// single Google Cloud project can only belong to a single regular -// Service Perimeter. Service Perimeter Bridges can contain only Google -// Cloud projects as members, a single Google Cloud project may belong -// to multiple Service Perimeter Bridges. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIdentityAccesscontextmanagerV1ServicePerimeter: `ServicePerimeter` +// describes a set of Google Cloud resources which can freely import and export +// data amongst themselves, but not export outside of the `ServicePerimeter`. +// If a request with a source within this `ServicePerimeter` has a target +// outside of the `ServicePerimeter`, the request will be blocked. Otherwise +// the request is allowed. There are two types of Service Perimeter - Regular +// and Bridge. Regular Service Perimeters cannot overlap, a single Google Cloud +// project can only belong to a single regular Service Perimeter. Service +// Perimeter Bridges can contain only Google Cloud projects as members, a +// single Google Cloud project may belong to multiple Service Perimeter +// Bridges. type GoogleIdentityAccesscontextmanagerV1ServicePerimeter struct { - // Description: Description of the `ServicePerimeter` and its use. Does - // not affect behavior. + // Description: Description of the `ServicePerimeter` and its use. Does not + // affect behavior. Description string `json:"description,omitempty"` - - // Name: Required. Resource name for the ServicePerimeter. The - // `short_name` component must begin with a letter and only include - // alphanumeric and '_'. Format: + // Name: Required. Resource name for the ServicePerimeter. The `short_name` + // component must begin with a letter and only include alphanumeric and '_'. + // Format: // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}` Name string `json:"name,omitempty"` - - // PerimeterType: Perimeter type indicator. A single project is allowed - // to be a member of single regular perimeter, but multiple service - // perimeter bridges. A project cannot be a included in a perimeter - // bridge without being included in regular perimeter. For perimeter - // bridges, the restricted service list as well as access level lists - // must be empty. + // PerimeterType: Perimeter type indicator. A single project is allowed to be a + // member of single regular perimeter, but multiple service perimeter bridges. + // A project cannot be a included in a perimeter bridge without being included + // in regular perimeter. For perimeter bridges, the restricted service list as + // well as access level lists must be empty. // // Possible values: // "PERIMETER_TYPE_REGULAR" - Regular Perimeter. // "PERIMETER_TYPE_BRIDGE" - Perimeter Bridge. PerimeterType string `json:"perimeterType,omitempty"` - // Spec: Proposed (or dry run) ServicePerimeter configuration. This - // configuration allows to specify and test ServicePerimeter - // configuration without enforcing actual access restrictions. Only - // allowed to be set when the "use_explicit_dry_run_spec" flag is set. + // configuration allows to specify and test ServicePerimeter configuration + // without enforcing actual access restrictions. Only allowed to be set when + // the "use_explicit_dry_run_spec" flag is set. Spec *GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig `json:"spec,omitempty"` - - // Status: Current ServicePerimeter configuration. Specifies sets of - // resources, restricted services and access levels that determine - // perimeter content and boundaries. + // Status: Current ServicePerimeter configuration. Specifies sets of resources, + // restricted services and access levels that determine perimeter content and + // boundaries. Status *GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig `json:"status,omitempty"` - // Title: Human readable title. Must be unique within the Policy. Title string `json:"title,omitempty"` - - // UseExplicitDryRunSpec: Use explicit dry run spec flag. Ordinarily, a - // dry-run spec implicitly exists for all Service Perimeters, and that - // spec is identical to the status for those Service Perimeters. When - // this flag is set, it inhibits the generation of the implicit spec, - // thereby allowing the user to explicitly provide a configuration - // ("spec") to use in a dry-run version of the Service Perimeter. This - // allows the user to test changes to the enforced config ("status") - // without actually enforcing them. This testing is done through - // analyzing the differences between currently enforced and suggested - // restrictions. use_explicit_dry_run_spec must bet set to True if any - // of the fields in the spec are set to non-default values. + // UseExplicitDryRunSpec: Use explicit dry run spec flag. Ordinarily, a dry-run + // spec implicitly exists for all Service Perimeters, and that spec is + // identical to the status for those Service Perimeters. When this flag is set, + // it inhibits the generation of the implicit spec, thereby allowing the user + // to explicitly provide a configuration ("spec") to use in a dry-run version + // of the Service Perimeter. This allows the user to test changes to the + // enforced config ("status") without actually enforcing them. This testing is + // done through analyzing the differences between currently enforced and + // suggested restrictions. use_explicit_dry_run_spec must bet set to True if + // any of the fields in the spec are set to non-default values. UseExplicitDryRunSpec bool `json:"useExplicitDryRunSpec,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1ServicePerimeter) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1ServicePerimeter) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1ServicePerimeter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig: -// `ServicePerimeterConfig` specifies a set of Google Cloud resources -// that describe specific Service Perimeter configuration. +// `ServicePerimeterConfig` specifies a set of Google Cloud resources that +// describe specific Service Perimeter configuration. type GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig struct { - // AccessLevels: A list of `AccessLevel` resource names that allow - // resources within the `ServicePerimeter` to be accessed from the - // internet. `AccessLevels` listed must be in the same policy as this - // `ServicePerimeter`. Referencing a nonexistent `AccessLevel` is a - // syntax error. If no `AccessLevel` names are listed, resources within - // the perimeter can only be accessed via Google Cloud calls with - // request origins within the perimeter. Example: - // "accessPolicies/MY_POLICY/accessLevels/MY_LEVEL". For Service + // AccessLevels: A list of `AccessLevel` resource names that allow resources + // within the `ServicePerimeter` to be accessed from the internet. + // `AccessLevels` listed must be in the same policy as this `ServicePerimeter`. + // Referencing a nonexistent `AccessLevel` is a syntax error. If no + // `AccessLevel` names are listed, resources within the perimeter can only be + // accessed via Google Cloud calls with request origins within the perimeter. + // Example: "accessPolicies/MY_POLICY/accessLevels/MY_LEVEL". For Service // Perimeter Bridge, must be empty. AccessLevels []string `json:"accessLevels,omitempty"` - // EgressPolicies: List of EgressPolicies to apply to the perimeter. A - // perimeter may have multiple EgressPolicies, each of which is - // evaluated separately. Access is granted if any EgressPolicy grants - // it. Must be empty for a perimeter bridge. + // perimeter may have multiple EgressPolicies, each of which is evaluated + // separately. Access is granted if any EgressPolicy grants it. Must be empty + // for a perimeter bridge. EgressPolicies []*GoogleIdentityAccesscontextmanagerV1EgressPolicy `json:"egressPolicies,omitempty"` - // IngressPolicies: List of IngressPolicies to apply to the perimeter. A - // perimeter may have multiple IngressPolicies, each of which is - // evaluated separately. Access is granted if any Ingress Policy grants - // it. Must be empty for a perimeter bridge. + // perimeter may have multiple IngressPolicies, each of which is evaluated + // separately. Access is granted if any Ingress Policy grants it. Must be empty + // for a perimeter bridge. IngressPolicies []*GoogleIdentityAccesscontextmanagerV1IngressPolicy `json:"ingressPolicies,omitempty"` - - // Resources: A list of Google Cloud resources that are inside of the - // service perimeter. Currently only projects are allowed. Format: + // Resources: A list of Google Cloud resources that are inside of the service + // perimeter. Currently only projects are allowed. Format: // `projects/{project_number}` Resources []string `json:"resources,omitempty"` - - // RestrictedServices: Google Cloud services that are subject to the - // Service Perimeter restrictions. For example, if - // `storage.googleapis.com` is specified, access to the storage buckets - // inside the perimeter must meet the perimeter's access restrictions. + // RestrictedServices: Google Cloud services that are subject to the Service + // Perimeter restrictions. For example, if `storage.googleapis.com` is + // specified, access to the storage buckets inside the perimeter must meet the + // perimeter's access restrictions. RestrictedServices []string `json:"restrictedServices,omitempty"` - - // VpcAccessibleServices: Configuration for APIs allowed within - // Perimeter. + // VpcAccessibleServices: Configuration for APIs allowed within Perimeter. VpcAccessibleServices *GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices `json:"vpcAccessibleServices,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessLevels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessLevels") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessLevels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices: Specifies -// how APIs are allowed to communicate within the Service Perimeter. +// GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices: Specifies how +// APIs are allowed to communicate within the Service Perimeter. type GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices struct { - // AllowedServices: The list of APIs usable within the Service - // Perimeter. Must be empty unless 'enable_restriction' is True. You can - // specify a list of individual services, as well as include the - // 'RESTRICTED-SERVICES' value, which automatically includes all of the - // services protected by the perimeter. + // AllowedServices: The list of APIs usable within the Service Perimeter. Must + // be empty unless 'enable_restriction' is True. You can specify a list of + // individual services, as well as include the 'RESTRICTED-SERVICES' value, + // which automatically includes all of the services protected by the perimeter. AllowedServices []string `json:"allowedServices,omitempty"` - // EnableRestriction: Whether to restrict API calls within the Service // Perimeter to the list of APIs specified in 'allowed_services'. EnableRestriction bool `json:"enableRestriction,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowedServices") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedServices") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowedServices") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices) MarshalJSON() ([]byte, error) { +func (s GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices) MarshalJSON() ([]byte, error) { type NoMethod GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IamPolicyAnalysis: An analysis message to group the query and -// results. +// IamPolicyAnalysis: An analysis message to group the query and results. type IamPolicyAnalysis struct { // AnalysisQuery: The analysis query. AnalysisQuery *IamPolicyAnalysisQuery `json:"analysisQuery,omitempty"` - - // AnalysisResults: A list of IamPolicyAnalysisResult that matches the - // analysis query, or empty if no result is found. + // AnalysisResults: A list of IamPolicyAnalysisResult that matches the analysis + // query, or empty if no result is found. AnalysisResults []*IamPolicyAnalysisResult `json:"analysisResults,omitempty"` - - // FullyExplored: Represents whether all entries in the analysis_results - // have been fully explored to answer the query. + // FullyExplored: Represents whether all entries in the analysis_results have + // been fully explored to answer the query. FullyExplored bool `json:"fullyExplored,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisQuery") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnalysisQuery") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnalysisQuery") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IamPolicyAnalysis) MarshalJSON() ([]byte, error) { +func (s IamPolicyAnalysis) MarshalJSON() ([]byte, error) { type NoMethod IamPolicyAnalysis - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IamPolicyAnalysisOutputConfig: Output configuration for export IAM -// policy analysis destination. +// IamPolicyAnalysisOutputConfig: Output configuration for export IAM policy +// analysis destination. type IamPolicyAnalysisOutputConfig struct { // GcsDestination: Destination on Cloud Storage. GcsDestination *GcsDestination `json:"gcsDestination,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcsDestination") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GcsDestination") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GcsDestination") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IamPolicyAnalysisOutputConfig) MarshalJSON() ([]byte, error) { +func (s IamPolicyAnalysisOutputConfig) MarshalJSON() ([]byte, error) { type NoMethod IamPolicyAnalysisOutputConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // IamPolicyAnalysisQuery: IAM policy analysis query message. type IamPolicyAnalysisQuery struct { - // AccessSelector: Optional. Specifies roles or permissions for - // analysis. This is optional. + // AccessSelector: Optional. Specifies roles or permissions for analysis. This + // is optional. AccessSelector *AccessSelector `json:"accessSelector,omitempty"` - // IdentitySelector: Optional. Specifies an identity for analysis. IdentitySelector *IdentitySelector `json:"identitySelector,omitempty"` - - // Parent: Required. The relative name of the root asset. Only resources - // and IAM policies within the parent will be analyzed. This can only be - // an organization number (such as "organizations/123"), a folder number - // (such as "folders/123"), a project ID (such as - // "projects/my-project-id"), or a project number (such as - // "projects/12345"). To know how to get organization id, visit here + // Parent: Required. The relative name of the root asset. Only resources and + // IAM policies within the parent will be analyzed. This can only be an + // organization number (such as "organizations/123"), a folder number (such as + // "folders/123"), a project ID (such as "projects/my-project-id"), or a + // project number (such as "projects/12345"). To know how to get organization + // id, visit here // (https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). // To know how to get folder or project id, visit here // (https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). Parent string `json:"parent,omitempty"` - // ResourceSelector: Optional. Specifies a resource for analysis. ResourceSelector *ResourceSelector `json:"resourceSelector,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessSelector") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessSelector") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccessSelector") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IamPolicyAnalysisQuery) MarshalJSON() ([]byte, error) { +func (s IamPolicyAnalysisQuery) MarshalJSON() ([]byte, error) { type NoMethod IamPolicyAnalysisQuery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IamPolicyAnalysisResult: IAM Policy analysis result, consisting of -// one IAM policy binding and derived access control lists. +// IamPolicyAnalysisResult: IAM Policy analysis result, consisting of one IAM +// policy binding and derived access control lists. type IamPolicyAnalysisResult struct { - // AccessControlLists: The access control lists derived from the - // iam_binding that match or potentially match resource and access - // selectors specified in the request. + // AccessControlLists: The access control lists derived from the iam_binding + // that match or potentially match resource and access selectors specified in + // the request. AccessControlLists []*GoogleCloudAssetV1p4beta1AccessControlList `json:"accessControlLists,omitempty"` - // AttachedResourceFullName: The full resource name - // (https://cloud.google.com/asset-inventory/docs/resource-name-format) - // of the resource to which the iam_binding policy attaches. + // (https://cloud.google.com/asset-inventory/docs/resource-name-format) of the + // resource to which the iam_binding policy attaches. AttachedResourceFullName string `json:"attachedResourceFullName,omitempty"` - - // FullyExplored: Represents whether all analyses on the iam_binding - // have successfully finished. + // FullyExplored: Represents whether all analyses on the iam_binding have + // successfully finished. FullyExplored bool `json:"fullyExplored,omitempty"` - // IamBinding: The Cloud IAM policy binding under analysis. IamBinding *Binding `json:"iamBinding,omitempty"` - - // IdentityList: The identity list derived from members of the - // iam_binding that match or potentially match identity selector - // specified in the request. + // IdentityList: The identity list derived from members of the iam_binding that + // match or potentially match identity selector specified in the request. IdentityList *GoogleCloudAssetV1p4beta1IdentityList `json:"identityList,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AccessControlLists") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccessControlLists") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessControlLists") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccessControlLists") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IamPolicyAnalysisResult) MarshalJSON() ([]byte, error) { +func (s IamPolicyAnalysisResult) MarshalJSON() ([]byte, error) { type NoMethod IamPolicyAnalysisResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IdentitySelector: Specifies an identity for which to determine -// resource access, based on roles assigned either directly to them or -// to the groups they belong to, directly or indirectly. +// IdentitySelector: Specifies an identity for which to determine resource +// access, based on roles assigned either directly to them or to the groups +// they belong to, directly or indirectly. type IdentitySelector struct { - // Identity: Required. The identity appear in the form of members in IAM - // policy binding - // (https://cloud.google.com/iam/reference/rest/v1/Binding). The + // Identity: Required. The identity appear in the form of members in IAM policy + // binding (https://cloud.google.com/iam/reference/rest/v1/Binding). The // examples of supported forms are: "user:mike@example.com", // "group:admins@example.com", "domain:google.com", - // "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice - // that wildcard characters (such as * and ?) are not supported. You - // must give a specific identity. + // "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice that + // wildcard characters (such as * and ?) are not supported. You must give a + // specific identity. Identity string `json:"identity,omitempty"` - // ForceSendFields is a list of field names (e.g. "Identity") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Identity") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Identity") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IdentitySelector) MarshalJSON() ([]byte, error) { +func (s IdentitySelector) MarshalJSON() ([]byte, error) { type NoMethod IdentitySelector - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Options: Contains request options. type Options struct { - // AnalyzeServiceAccountImpersonation: Optional. If true, the response - // will include access analysis from identities to resources via service - // account impersonation. This is a very expensive operation, because - // many derived queries will be executed. For example, if the request - // analyzes for which resources user A has permission P, and there's an - // IAM policy states user A has iam.serviceAccounts.getAccessToken - // permission to a service account SA, and there's another IAM policy - // states service account SA has permission P to a GCP folder F, then - // user A potentially has access to the GCP folder F. And those advanced - // analysis results will be included in - // AnalyzeIamPolicyResponse.service_account_impersonation_analysis. - // Another example, if the request analyzes for who has permission P to - // a GCP folder F, and there's an IAM policy states user A has - // iam.serviceAccounts.actAs permission to a service account SA, and - // there's another IAM policy states service account SA has permission P - // to the GCP folder F, then user A potentially has access to the GCP - // folder F. And those advanced analysis results will be included in - // AnalyzeIamPolicyResponse.service_account_impersonation_analysis. - // Default is false. + // AnalyzeServiceAccountImpersonation: Optional. If true, the response will + // include access analysis from identities to resources via service account + // impersonation. This is a very expensive operation, because many derived + // queries will be executed. For example, if the request analyzes for which + // resources user A has permission P, and there's an IAM policy states user A + // has iam.serviceAccounts.getAccessToken permission to a service account SA, + // and there's another IAM policy states service account SA has permission P to + // a GCP folder F, then user A potentially has access to the GCP folder F. And + // those advanced analysis results will be included in + // AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another + // example, if the request analyzes for who has permission P to a GCP folder F, + // and there's an IAM policy states user A has iam.serviceAccounts.actAs + // permission to a service account SA, and there's another IAM policy states + // service account SA has permission P to the GCP folder F, then user A + // potentially has access to the GCP folder F. And those advanced analysis + // results will be included in + // AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Default is + // false. AnalyzeServiceAccountImpersonation bool `json:"analyzeServiceAccountImpersonation,omitempty"` - - // ExpandGroups: Optional. If true, the identities section of the result - // will expand any Google groups appearing in an IAM policy binding. If + // ExpandGroups: Optional. If true, the identities section of the result will + // expand any Google groups appearing in an IAM policy binding. If // identity_selector is specified, the identity in the result will be - // determined by the selector, and this flag will have no effect. - // Default is false. + // determined by the selector, and this flag will have no effect. Default is + // false. ExpandGroups bool `json:"expandGroups,omitempty"` - - // ExpandResources: Optional. If true, the resource section of the - // result will expand any resource attached to an IAM policy to include - // resources lower in the resource hierarchy. For example, if the - // request analyzes for which resources user A has permission P, and the - // results include an IAM policy with P on a GCP folder, the results - // will also include resources in that folder with permission P. If - // resource_selector is specified, the resource section of the result - // will be determined by the selector, and this flag will have no - // effect. Default is false. - ExpandResources bool `json:"expandResources,omitempty"` - - // ExpandRoles: Optional. If true, the access section of result will - // expand any roles appearing in IAM policy bindings to include their - // permissions. If access_selector is specified, the access section of - // the result will be determined by the selector, and this flag will + // ExpandResources: Optional. If true, the resource section of the result will + // expand any resource attached to an IAM policy to include resources lower in + // the resource hierarchy. For example, if the request analyzes for which + // resources user A has permission P, and the results include an IAM policy + // with P on a GCP folder, the results will also include resources in that + // folder with permission P. If resource_selector is specified, the resource + // section of the result will be determined by the selector, and this flag will // have no effect. Default is false. + ExpandResources bool `json:"expandResources,omitempty"` + // ExpandRoles: Optional. If true, the access section of result will expand any + // roles appearing in IAM policy bindings to include their permissions. If + // access_selector is specified, the access section of the result will be + // determined by the selector, and this flag will have no effect. Default is + // false. ExpandRoles bool `json:"expandRoles,omitempty"` - - // OutputGroupEdges: Optional. If true, the result will output group - // identity edges, starting from the binding's group members, to any - // expanded identities. Default is false. + // OutputGroupEdges: Optional. If true, the result will output group identity + // edges, starting from the binding's group members, to any expanded + // identities. Default is false. OutputGroupEdges bool `json:"outputGroupEdges,omitempty"` - - // OutputResourceEdges: Optional. If true, the result will output - // resource edges, starting from the policy attached resource, to any - // expanded resources. Default is false. + // OutputResourceEdges: Optional. If true, the result will output resource + // edges, starting from the policy attached resource, to any expanded + // resources. Default is false. OutputResourceEdges bool `json:"outputResourceEdges,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AnalyzeServiceAccountImpersonation") to unconditionally include in - // API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "AnalyzeServiceAccountImpersonation") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "AnalyzeServiceAccountImpersonation") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // "AnalyzeServiceAccountImpersonation") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } -func (s *Options) MarshalJSON() ([]byte, error) { +func (s Options) MarshalJSON() ([]byte, error) { type NoMethod Options - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members`, or -// principals, to a single `role`. Principals can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. For some types of -// Google Cloud resources, a `binding` can also specify a `condition`, -// which is a logical expression that allows access to a resource only -// if the expression evaluates to `true`. A condition can add -// constraints based on attributes of the request, the resource, or -// both. To learn which resources support conditions in their IAM -// policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which specifies +// access controls for Google Cloud resources. A `Policy` is a collection of +// `bindings`. A `binding` binds one or more `members`, or principals, to a +// single `role`. Principals can be user accounts, service accounts, Google +// groups, and domains (such as G Suite). A `role` is a named list of +// permissions; each `role` can be an IAM predefined role or a user-created +// custom role. For some types of Google Cloud resources, a `binding` can also +// specify a `condition`, which is a logical expression that allows access to a +// resource only if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or both. To +// learn which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - - // Bindings: Associates a list of `members`, or principals, with a - // `role`. Optionally, may specify a `condition` that determines how and - // when the `bindings` are applied. Each of the `bindings` must contain - // at least one principal. The `bindings` in a `Policy` can refer to up - // to 1,500 principals; up to 250 of these principals can be Google - // groups. Each occurrence of a principal counts towards these limits. - // For example, if the `bindings` grant 50 different roles to - // `user:alice@example.com`, and not to any other principal, then you - // can add another 1,450 principals to the `bindings` in the `Policy`. + // Bindings: Associates a list of `members`, or principals, with a `role`. + // Optionally, may specify a `condition` that determines how and when the + // `bindings` are applied. Each of the `bindings` must contain at least one + // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; + // up to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the `bindings` grant + // 50 different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. Bindings []*Binding `json:"bindings,omitempty"` - - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the IAM - // documentation + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResourceSelector: Specifies the resource to analyze for access -// policies, which may be set directly on the resource, or on ancestors -// such as organizations, folders or projects. +// ResourceSelector: Specifies the resource to analyze for access policies, +// which may be set directly on the resource, or on ancestors such as +// organizations, folders or projects. type ResourceSelector struct { // FullResourceName: Required. The full resource name - // (https://cloud.google.com/asset-inventory/docs/resource-name-format) - // of a resource of supported resource types + // (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a + // resource of supported resource types // (https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types). FullResourceName string `json:"fullResourceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FullResourceName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FullResourceName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FullResourceName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResourceSelector) MarshalJSON() ([]byte, error) { +func (s ResourceSelector) MarshalJSON() ([]byte, error) { type NoMethod ResourceSelector - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "cloudasset.analyzeIamPolicy": - type V1p4beta1AnalyzeIamPolicyCall struct { s *Service parent string @@ -2995,15 +2461,15 @@ type V1p4beta1AnalyzeIamPolicyCall struct { header_ http.Header } -// AnalyzeIamPolicy: Analyzes IAM policies to answer which identities -// have what accesses on which resources. +// AnalyzeIamPolicy: Analyzes IAM policies to answer which identities have what +// accesses on which resources. // // - parent: The relative name of the root asset. Only resources and IAM // policies within the parent will be analyzed. This can only be an -// organization number (such as "organizations/123"), a folder number -// (such as "folders/123"), a project ID (such as -// "projects/my-project-id"), or a project number (such as -// "projects/12345"). To know how to get organization id, visit here +// organization number (such as "organizations/123"), a folder number (such +// as "folders/123"), a project ID (such as "projects/my-project-id"), or a +// project number (such as "projects/12345"). To know how to get organization +// id, visit here // (https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). // To know how to get folder or project id, visit here // (https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). @@ -3014,8 +2480,8 @@ func (r *V1p4beta1Service) AnalyzeIamPolicy(parent string) *V1p4beta1AnalyzeIamP } // AnalysisQueryAccessSelectorPermissions sets the optional parameter -// "analysisQuery.accessSelector.permissions": The permissions to appear -// in result. +// "analysisQuery.accessSelector.permissions": The permissions to appear in +// result. func (c *V1p4beta1AnalyzeIamPolicyCall) AnalysisQueryAccessSelectorPermissions(analysisQueryAccessSelectorPermissions ...string) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.SetMulti("analysisQuery.accessSelector.permissions", append([]string{}, analysisQueryAccessSelectorPermissions...)) return c @@ -3029,24 +2495,24 @@ func (c *V1p4beta1AnalyzeIamPolicyCall) AnalysisQueryAccessSelectorRoles(analysi } // AnalysisQueryIdentitySelectorIdentity sets the optional parameter -// "analysisQuery.identitySelector.identity": Required. The identity -// appear in the form of members in IAM policy binding -// (https://cloud.google.com/iam/reference/rest/v1/Binding). The -// examples of supported forms are: "user:mike@example.com", -// "group:admins@example.com", "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice -// that wildcard characters (such as * and ?) are not supported. You -// must give a specific identity. +// "analysisQuery.identitySelector.identity": Required. The identity appear in +// the form of members in IAM policy binding +// (https://cloud.google.com/iam/reference/rest/v1/Binding). The examples of +// supported forms are: "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice that +// wildcard characters (such as * and ?) are not supported. You must give a +// specific identity. func (c *V1p4beta1AnalyzeIamPolicyCall) AnalysisQueryIdentitySelectorIdentity(analysisQueryIdentitySelectorIdentity string) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.Set("analysisQuery.identitySelector.identity", analysisQueryIdentitySelectorIdentity) return c } -// AnalysisQueryResourceSelectorFullResourceName sets the optional -// parameter "analysisQuery.resourceSelector.fullResourceName": -// Required. The full resource name -// (https://cloud.google.com/asset-inventory/docs/resource-name-format) -// of a resource of supported resource types +// AnalysisQueryResourceSelectorFullResourceName sets the optional parameter +// "analysisQuery.resourceSelector.fullResourceName": Required. The full +// resource name +// (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a +// resource of supported resource types // (https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types). func (c *V1p4beta1AnalyzeIamPolicyCall) AnalysisQueryResourceSelectorFullResourceName(analysisQueryResourceSelectorFullResourceName string) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.Set("analysisQuery.resourceSelector.fullResourceName", analysisQueryResourceSelectorFullResourceName) @@ -3054,130 +2520,120 @@ func (c *V1p4beta1AnalyzeIamPolicyCall) AnalysisQueryResourceSelectorFullResourc } // OptionsAnalyzeServiceAccountImpersonation sets the optional parameter -// "options.analyzeServiceAccountImpersonation": If true, the response -// will include access analysis from identities to resources via service -// account impersonation. This is a very expensive operation, because -// many derived queries will be executed. We highly recommend you use +// "options.analyzeServiceAccountImpersonation": If true, the response will +// include access analysis from identities to resources via service account +// impersonation. This is a very expensive operation, because many derived +// queries will be executed. We highly recommend you use // AssetService.ExportIamPolicyAnalysis rpc instead. For example, if the -// request analyzes for which resources user A has permission P, and -// there's an IAM policy states user A has -// iam.serviceAccounts.getAccessToken permission to a service account -// SA, and there's another IAM policy states service account SA has -// permission P to a GCP folder F, then user A potentially has access to -// the GCP folder F. And those advanced analysis results will be -// included in -// AnalyzeIamPolicyResponse.service_account_impersonation_analysis. -// Another example, if the request analyzes for who has permission P to -// a GCP folder F, and there's an IAM policy states user A has -// iam.serviceAccounts.actAs permission to a service account SA, and -// there's another IAM policy states service account SA has permission P -// to the GCP folder F, then user A potentially has access to the GCP -// folder F. And those advanced analysis results will be included in -// AnalyzeIamPolicyResponse.service_account_impersonation_analysis. -// Default is false. +// request analyzes for which resources user A has permission P, and there's an +// IAM policy states user A has iam.serviceAccounts.getAccessToken permission +// to a service account SA, and there's another IAM policy states service +// account SA has permission P to a GCP folder F, then user A potentially has +// access to the GCP folder F. And those advanced analysis results will be +// included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. +// Another example, if the request analyzes for who has permission P to a GCP +// folder F, and there's an IAM policy states user A has +// iam.serviceAccounts.actAs permission to a service account SA, and there's +// another IAM policy states service account SA has permission P to the GCP +// folder F, then user A potentially has access to the GCP folder F. And those +// advanced analysis results will be included in +// AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Default is +// false. func (c *V1p4beta1AnalyzeIamPolicyCall) OptionsAnalyzeServiceAccountImpersonation(optionsAnalyzeServiceAccountImpersonation bool) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.Set("options.analyzeServiceAccountImpersonation", fmt.Sprint(optionsAnalyzeServiceAccountImpersonation)) return c } // OptionsExecutionTimeout sets the optional parameter -// "options.executionTimeout": Amount of time executable has to -// complete. See JSON representation of Duration -// (https://developers.google.com/protocol-buffers/docs/proto3#json). If -// this field is set with a value less than the RPC deadline, and the -// execution of your query hasn't finished in the specified execution -// timeout, you will get a response with partial result. Otherwise, your -// query's execution will continue until the RPC deadline. If it's not -// finished until then, you will get a DEADLINE_EXCEEDED error. Default -// is empty. +// "options.executionTimeout": Amount of time executable has to complete. See +// JSON representation of Duration +// (https://developers.google.com/protocol-buffers/docs/proto3#json). If this +// field is set with a value less than the RPC deadline, and the execution of +// your query hasn't finished in the specified execution timeout, you will get +// a response with partial result. Otherwise, your query's execution will +// continue until the RPC deadline. If it's not finished until then, you will +// get a DEADLINE_EXCEEDED error. Default is empty. func (c *V1p4beta1AnalyzeIamPolicyCall) OptionsExecutionTimeout(optionsExecutionTimeout string) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.Set("options.executionTimeout", optionsExecutionTimeout) return c } -// OptionsExpandGroups sets the optional parameter -// "options.expandGroups": If true, the identities section of the result -// will expand any Google groups appearing in an IAM policy binding. If -// identity_selector is specified, the identity in the result will be -// determined by the selector, and this flag will have no effect. -// Default is false. +// OptionsExpandGroups sets the optional parameter "options.expandGroups": If +// true, the identities section of the result will expand any Google groups +// appearing in an IAM policy binding. If identity_selector is specified, the +// identity in the result will be determined by the selector, and this flag +// will have no effect. Default is false. func (c *V1p4beta1AnalyzeIamPolicyCall) OptionsExpandGroups(optionsExpandGroups bool) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.Set("options.expandGroups", fmt.Sprint(optionsExpandGroups)) return c } // OptionsExpandResources sets the optional parameter -// "options.expandResources": If true, the resource section of the -// result will expand any resource attached to an IAM policy to include -// resources lower in the resource hierarchy. For example, if the -// request analyzes for which resources user A has permission P, and the -// results include an IAM policy with P on a GCP folder, the results -// will also include resources in that folder with permission P. If -// resource_selector is specified, the resource section of the result -// will be determined by the selector, and this flag will have no -// effect. Default is false. +// "options.expandResources": If true, the resource section of the result will +// expand any resource attached to an IAM policy to include resources lower in +// the resource hierarchy. For example, if the request analyzes for which +// resources user A has permission P, and the results include an IAM policy +// with P on a GCP folder, the results will also include resources in that +// folder with permission P. If resource_selector is specified, the resource +// section of the result will be determined by the selector, and this flag will +// have no effect. Default is false. func (c *V1p4beta1AnalyzeIamPolicyCall) OptionsExpandResources(optionsExpandResources bool) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.Set("options.expandResources", fmt.Sprint(optionsExpandResources)) return c } -// OptionsExpandRoles sets the optional parameter "options.expandRoles": -// If true, the access section of result will expand any roles appearing -// in IAM policy bindings to include their permissions. If -// access_selector is specified, the access section of the result will -// be determined by the selector, and this flag will have no effect. -// Default is false. +// OptionsExpandRoles sets the optional parameter "options.expandRoles": If +// true, the access section of result will expand any roles appearing in IAM +// policy bindings to include their permissions. If access_selector is +// specified, the access section of the result will be determined by the +// selector, and this flag will have no effect. Default is false. func (c *V1p4beta1AnalyzeIamPolicyCall) OptionsExpandRoles(optionsExpandRoles bool) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.Set("options.expandRoles", fmt.Sprint(optionsExpandRoles)) return c } // OptionsOutputGroupEdges sets the optional parameter -// "options.outputGroupEdges": If true, the result will output group -// identity edges, starting from the binding's group members, to any -// expanded identities. Default is false. +// "options.outputGroupEdges": If true, the result will output group identity +// edges, starting from the binding's group members, to any expanded +// identities. Default is false. func (c *V1p4beta1AnalyzeIamPolicyCall) OptionsOutputGroupEdges(optionsOutputGroupEdges bool) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.Set("options.outputGroupEdges", fmt.Sprint(optionsOutputGroupEdges)) return c } // OptionsOutputResourceEdges sets the optional parameter -// "options.outputResourceEdges": If true, the result will output -// resource edges, starting from the policy attached resource, to any -// expanded resources. Default is false. +// "options.outputResourceEdges": If true, the result will output resource +// edges, starting from the policy attached resource, to any expanded +// resources. Default is false. func (c *V1p4beta1AnalyzeIamPolicyCall) OptionsOutputResourceEdges(optionsOutputResourceEdges bool) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.Set("options.outputResourceEdges", fmt.Sprint(optionsOutputResourceEdges)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1p4beta1AnalyzeIamPolicyCall) Fields(s ...googleapi.Field) *V1p4beta1AnalyzeIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *V1p4beta1AnalyzeIamPolicyCall) IfNoneMatch(entityTag string) *V1p4beta1AnalyzeIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1p4beta1AnalyzeIamPolicyCall) Context(ctx context.Context) *V1p4beta1AnalyzeIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1p4beta1AnalyzeIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3186,12 +2642,7 @@ func (c *V1p4beta1AnalyzeIamPolicyCall) Header() http.Header { } func (c *V1p4beta1AnalyzeIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3208,16 +2659,15 @@ func (c *V1p4beta1AnalyzeIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.analyzeIamPolicy" call. -// Exactly one of *AnalyzeIamPolicyResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *AnalyzeIamPolicyResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V1p4beta1AnalyzeIamPolicyCall) Do(opts ...googleapi.CallOption) (*AnalyzeIamPolicyResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3225,17 +2675,17 @@ func (c *V1p4beta1AnalyzeIamPolicyCall) Do(opts ...googleapi.CallOption) (*Analy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AnalyzeIamPolicyResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3248,93 +2698,7 @@ func (c *V1p4beta1AnalyzeIamPolicyCall) Do(opts ...googleapi.CallOption) (*Analy return nil, err } return ret, nil - // { - // "description": "Analyzes IAM policies to answer which identities have what accesses on which resources.", - // "flatPath": "v1p4beta1/{v1p4beta1Id}/{v1p4beta1Id1}:analyzeIamPolicy", - // "httpMethod": "GET", - // "id": "cloudasset.analyzeIamPolicy", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "analysisQuery.accessSelector.permissions": { - // "description": "Optional. The permissions to appear in result.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "analysisQuery.accessSelector.roles": { - // "description": "Optional. The roles to appear in result.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "analysisQuery.identitySelector.identity": { - // "description": "Required. The identity appear in the form of members in [IAM policy binding](https://cloud.google.com/iam/reference/rest/v1/Binding). The examples of supported forms are: \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.", - // "location": "query", - // "type": "string" - // }, - // "analysisQuery.resourceSelector.fullResourceName": { - // "description": "Required. The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of [supported resource types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types).", - // "location": "query", - // "type": "string" - // }, - // "options.analyzeServiceAccountImpersonation": { - // "description": "Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.ExportIamPolicyAnalysis rpc instead. For example, if the request analyzes for which resources user A has permission P, and there's an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there's another IAM policy states service account SA has permission P to a GCP folder F, then user A potentially has access to the GCP folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a GCP folder F, and there's an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there's another IAM policy states service account SA has permission P to the GCP folder F, then user A potentially has access to the GCP folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Default is false.", - // "location": "query", - // "type": "boolean" - // }, - // "options.executionTimeout": { - // "description": "Optional. Amount of time executable has to complete. See JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json). If this field is set with a value less than the RPC deadline, and the execution of your query hasn't finished in the specified execution timeout, you will get a response with partial result. Otherwise, your query's execution will continue until the RPC deadline. If it's not finished until then, you will get a DEADLINE_EXCEEDED error. Default is empty.", - // "format": "google-duration", - // "location": "query", - // "type": "string" - // }, - // "options.expandGroups": { - // "description": "Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If identity_selector is specified, the identity in the result will be determined by the selector, and this flag will have no effect. Default is false.", - // "location": "query", - // "type": "boolean" - // }, - // "options.expandResources": { - // "description": "Optional. If true, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a GCP folder, the results will also include resources in that folder with permission P. If resource_selector is specified, the resource section of the result will be determined by the selector, and this flag will have no effect. Default is false.", - // "location": "query", - // "type": "boolean" - // }, - // "options.expandRoles": { - // "description": "Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If access_selector is specified, the access section of the result will be determined by the selector, and this flag will have no effect. Default is false.", - // "location": "query", - // "type": "boolean" - // }, - // "options.outputGroupEdges": { - // "description": "Optional. If true, the result will output group identity edges, starting from the binding's group members, to any expanded identities. Default is false.", - // "location": "query", - // "type": "boolean" - // }, - // "options.outputResourceEdges": { - // "description": "Optional. If true, the result will output resource edges, starting from the policy attached resource, to any expanded resources. Default is false.", - // "location": "query", - // "type": "boolean" - // }, - // "parent": { - // "description": "Required. The relative name of the root asset. Only resources and IAM policies within the parent will be analyzed. This can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).", - // "location": "path", - // "pattern": "^[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p4beta1/{+parent}:analyzeIamPolicy", - // "response": { - // "$ref": "AnalyzeIamPolicyResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudasset.exportIamPolicyAnalysis": +} type V1p4beta1ExportIamPolicyAnalysisCall struct { s *Service @@ -3345,21 +2709,21 @@ type V1p4beta1ExportIamPolicyAnalysisCall struct { header_ http.Header } -// ExportIamPolicyAnalysis: Exports the answers of which identities have -// what accesses on which resources to a Google Cloud Storage -// destination. The output format is the JSON format that represents a -// AnalyzeIamPolicyResponse in the JSON format. This method implements -// the google.longrunning.Operation, which allows you to keep track of -// the export. We recommend intervals of at least 2 seconds with -// exponential retry to poll the export operation result. The metadata -// contains the request to help callers to map responses to requests. +// ExportIamPolicyAnalysis: Exports the answers of which identities have what +// accesses on which resources to a Google Cloud Storage destination. The +// output format is the JSON format that represents a AnalyzeIamPolicyResponse +// in the JSON format. This method implements the google.longrunning.Operation, +// which allows you to keep track of the export. We recommend intervals of at +// least 2 seconds with exponential retry to poll the export operation result. +// The metadata contains the request to help callers to map responses to +// requests. // // - parent: The relative name of the root asset. Only resources and IAM // policies within the parent will be analyzed. This can only be an -// organization number (such as "organizations/123"), a folder number -// (such as "folders/123"), a project ID (such as -// "projects/my-project-id"), or a project number (such as -// "projects/12345"). To know how to get organization id, visit here +// organization number (such as "organizations/123"), a folder number (such +// as "folders/123"), a project ID (such as "projects/my-project-id"), or a +// project number (such as "projects/12345"). To know how to get organization +// id, visit here // (https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). // To know how to get folder or project id, visit here // (https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). @@ -3371,23 +2735,21 @@ func (r *V1p4beta1Service) ExportIamPolicyAnalysis(parent string, exportiampolic } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1p4beta1ExportIamPolicyAnalysisCall) Fields(s ...googleapi.Field) *V1p4beta1ExportIamPolicyAnalysisCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1p4beta1ExportIamPolicyAnalysisCall) Context(ctx context.Context) *V1p4beta1ExportIamPolicyAnalysisCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1p4beta1ExportIamPolicyAnalysisCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3396,18 +2758,12 @@ func (c *V1p4beta1ExportIamPolicyAnalysisCall) Header() http.Header { } func (c *V1p4beta1ExportIamPolicyAnalysisCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportiampolicyanalysisrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p4beta1/{+parent}:exportIamPolicyAnalysis") @@ -3420,16 +2776,14 @@ func (c *V1p4beta1ExportIamPolicyAnalysisCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.exportIamPolicyAnalysis" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *V1p4beta1ExportIamPolicyAnalysisCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3437,17 +2791,17 @@ func (c *V1p4beta1ExportIamPolicyAnalysisCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3460,33 +2814,4 @@ func (c *V1p4beta1ExportIamPolicyAnalysisCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Exports the answers of which identities have what accesses on which resources to a Google Cloud Storage destination. The output format is the JSON format that represents a AnalyzeIamPolicyResponse in the JSON format. This method implements the google.longrunning.Operation, which allows you to keep track of the export. We recommend intervals of at least 2 seconds with exponential retry to poll the export operation result. The metadata contains the request to help callers to map responses to requests.", - // "flatPath": "v1p4beta1/{v1p4beta1Id}/{v1p4beta1Id1}:exportIamPolicyAnalysis", - // "httpMethod": "POST", - // "id": "cloudasset.exportIamPolicyAnalysis", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The relative name of the root asset. Only resources and IAM policies within the parent will be analyzed. This can only be an organization number (such as \"organizations/123\"), a folder number (such as \"folders/123\"), a project ID (such as \"projects/my-project-id\"), or a project number (such as \"projects/12345\"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).", - // "location": "path", - // "pattern": "^[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p4beta1/{+parent}:exportIamPolicyAnalysis", - // "request": { - // "$ref": "ExportIamPolicyAnalysisRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/cloudasset/v1p5beta1/cloudasset-gen.go b/cloudasset/v1p5beta1/cloudasset-gen.go index 6a09f748c21..96dc64415af 100644 --- a/cloudasset/v1p5beta1/cloudasset-gen.go +++ b/cloudasset/v1p5beta1/cloudasset-gen.go @@ -2163,7 +2163,7 @@ func (c *AssetsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.assets.list" call. diff --git a/cloudasset/v1p7beta1/cloudasset-gen.go b/cloudasset/v1p7beta1/cloudasset-gen.go index dd2c98dfe5d..3298fd4d11f 100644 --- a/cloudasset/v1p7beta1/cloudasset-gen.go +++ b/cloudasset/v1p7beta1/cloudasset-gen.go @@ -2277,7 +2277,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.operations.get" call. @@ -2389,7 +2389,7 @@ func (c *V1p7beta1ExportAssetsCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudasset.exportAssets" call. diff --git a/cloudbilling/v1/cloudbilling-gen.go b/cloudbilling/v1/cloudbilling-gen.go index b594ebef2b5..a2264391e2b 100644 --- a/cloudbilling/v1/cloudbilling-gen.go +++ b/cloudbilling/v1/cloudbilling-gen.go @@ -1332,7 +1332,7 @@ func (c *BillingAccountsCreateCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.create" call. @@ -1442,7 +1442,7 @@ func (c *BillingAccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.get" call. @@ -1571,7 +1571,7 @@ func (c *BillingAccountsGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.getIamPolicy" call. @@ -1709,7 +1709,7 @@ func (c *BillingAccountsListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.list" call. @@ -1835,7 +1835,7 @@ func (c *BillingAccountsMoveCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.move" call. @@ -1947,7 +1947,7 @@ func (c *BillingAccountsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.patch" call. @@ -2054,7 +2054,7 @@ func (c *BillingAccountsSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.setIamPolicy" call. @@ -2161,7 +2161,7 @@ func (c *BillingAccountsTestIamPermissionsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.testIamPermissions" call. @@ -2290,7 +2290,7 @@ func (c *BillingAccountsProjectsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.projects.list" call. @@ -2426,7 +2426,7 @@ func (c *BillingAccountsSubAccountsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.subAccounts.create" call. @@ -2565,7 +2565,7 @@ func (c *BillingAccountsSubAccountsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.subAccounts.list" call. @@ -2701,7 +2701,7 @@ func (c *OrganizationsBillingAccountsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.organizations.billingAccounts.create" call. @@ -2840,7 +2840,7 @@ func (c *OrganizationsBillingAccountsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.organizations.billingAccounts.list" call. @@ -2978,7 +2978,7 @@ func (c *OrganizationsBillingAccountsMoveCall) doRequest(alt string) (*http.Resp "destinationParent": c.destinationParent, "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.organizations.billingAccounts.move" call. @@ -3090,7 +3090,7 @@ func (c *ProjectsGetBillingInfoCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.projects.getBillingInfo" call. @@ -3218,7 +3218,7 @@ func (c *ProjectsUpdateBillingInfoCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.projects.updateBillingInfo" call. @@ -3335,7 +3335,7 @@ func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.services.list" call. @@ -3510,7 +3510,7 @@ func (c *ServicesSkusListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.services.skus.list" call. diff --git a/cloudbilling/v1beta/cloudbilling-gen.go b/cloudbilling/v1beta/cloudbilling-gen.go index 4ef31c61438..80fdbf5e00f 100644 --- a/cloudbilling/v1beta/cloudbilling-gen.go +++ b/cloudbilling/v1beta/cloudbilling-gen.go @@ -3480,7 +3480,7 @@ func (c *BillingAccountsEstimateCostScenarioCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "billingAccount": c.billingAccount, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.estimateCostScenario" call. @@ -3589,7 +3589,7 @@ func (c *BillingAccountsServicesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.services.get" call. @@ -3714,7 +3714,7 @@ func (c *BillingAccountsServicesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.services.list" call. @@ -3844,7 +3844,7 @@ func (c *BillingAccountsSkuGroupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.skuGroups.get" call. @@ -3969,7 +3969,7 @@ func (c *BillingAccountsSkuGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.skuGroups.list" call. @@ -4099,7 +4099,7 @@ func (c *BillingAccountsSkuGroupsSkusGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.skuGroups.skus.get" call. @@ -4224,7 +4224,7 @@ func (c *BillingAccountsSkuGroupsSkusListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.skuGroups.skus.list" call. @@ -4354,7 +4354,7 @@ func (c *BillingAccountsSkusGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.skus.get" call. @@ -4489,7 +4489,7 @@ func (c *BillingAccountsSkusListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.skus.list" call. @@ -4627,7 +4627,7 @@ func (c *BillingAccountsSkusPriceGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.skus.price.get" call. @@ -4762,7 +4762,7 @@ func (c *BillingAccountsSkusPricesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.billingAccounts.skus.prices.list" call. @@ -4891,7 +4891,7 @@ func (c *SkuGroupsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.skuGroups.get" call. @@ -5008,7 +5008,7 @@ func (c *SkuGroupsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.skuGroups.list" call. @@ -5140,7 +5140,7 @@ func (c *SkuGroupsSkusGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.skuGroups.skus.get" call. @@ -5266,7 +5266,7 @@ func (c *SkuGroupsSkusListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.skuGroups.skus.list" call. @@ -5402,7 +5402,7 @@ func (c *SkusPriceGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.skus.price.get" call. @@ -5535,7 +5535,7 @@ func (c *SkusPricesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.skus.prices.list" call. @@ -5652,7 +5652,7 @@ func (c *V1betaEstimateCostScenarioCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbilling.estimateCostScenario" call. diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index aa0377d0846..9d61c49f056 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -4393,7 +4393,7 @@ func (c *GithubDotComWebhookReceiveCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.githubDotComWebhook.receive" call. @@ -4503,7 +4503,7 @@ func (c *LocationsRegionalWebhookCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.locations.regionalWebhook" call. @@ -4612,7 +4612,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.operations.cancel" call. @@ -4721,7 +4721,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.operations.get" call. @@ -4825,7 +4825,7 @@ func (c *ProjectsBuildsApproveCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.builds.approve" call. @@ -4930,7 +4930,7 @@ func (c *ProjectsBuildsCancelCall) doRequest(alt string) (*http.Response, error) "projectId": c.projectId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.builds.cancel" call. @@ -5041,7 +5041,7 @@ func (c *ProjectsBuildsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.builds.create" call. @@ -5161,7 +5161,7 @@ func (c *ProjectsBuildsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.builds.get" call. @@ -5300,7 +5300,7 @@ func (c *ProjectsBuildsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.builds.list" call. @@ -5442,7 +5442,7 @@ func (c *ProjectsBuildsRetryCall) doRequest(alt string) (*http.Response, error) "projectId": c.projectId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.builds.retry" call. @@ -5562,7 +5562,7 @@ func (c *ProjectsGithubEnterpriseConfigsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.githubEnterpriseConfigs.create" call. @@ -5674,7 +5674,7 @@ func (c *ProjectsGithubEnterpriseConfigsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.githubEnterpriseConfigs.delete" call. @@ -5797,7 +5797,7 @@ func (c *ProjectsGithubEnterpriseConfigsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.githubEnterpriseConfigs.get" call. @@ -5912,7 +5912,7 @@ func (c *ProjectsGithubEnterpriseConfigsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.githubEnterpriseConfigs.list" call. @@ -6026,7 +6026,7 @@ func (c *ProjectsGithubEnterpriseConfigsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.githubEnterpriseConfigs.patch" call. @@ -6135,7 +6135,7 @@ func (c *ProjectsLocationsGetDefaultServiceAccountCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.getDefaultServiceAccount" call. @@ -6249,7 +6249,7 @@ func (c *ProjectsLocationsBitbucketServerConfigsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.create" call. @@ -6344,7 +6344,7 @@ func (c *ProjectsLocationsBitbucketServerConfigsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.delete" call. @@ -6451,7 +6451,7 @@ func (c *ProjectsLocationsBitbucketServerConfigsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.get" call. @@ -6579,7 +6579,7 @@ func (c *ProjectsLocationsBitbucketServerConfigsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.list" call. @@ -6712,7 +6712,7 @@ func (c *ProjectsLocationsBitbucketServerConfigsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.patch" call. @@ -6817,7 +6817,7 @@ func (c *ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRe googleapi.Expand(req.URL, map[string]string{ "config": c.config, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.removeBitbucketServerConnectedRepository" call. @@ -6920,7 +6920,7 @@ func (c *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreate googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.connectedRepositories.batchCreate" call. @@ -7046,7 +7046,7 @@ func (c *ProjectsLocationsBitbucketServerConfigsReposListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.repos.list" call. @@ -7172,7 +7172,7 @@ func (c *ProjectsLocationsBuildsApproveCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.builds.approve" call. @@ -7274,7 +7274,7 @@ func (c *ProjectsLocationsBuildsCancelCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.builds.cancel" call. @@ -7386,7 +7386,7 @@ func (c *ProjectsLocationsBuildsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.builds.create" call. @@ -7509,7 +7509,7 @@ func (c *ProjectsLocationsBuildsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.builds.get" call. @@ -7649,7 +7649,7 @@ func (c *ProjectsLocationsBuildsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.builds.list" call. @@ -7788,7 +7788,7 @@ func (c *ProjectsLocationsBuildsRetryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.builds.retry" call. @@ -7900,7 +7900,7 @@ func (c *ProjectsLocationsGitLabConfigsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.gitLabConfigs.create" call. @@ -7995,7 +7995,7 @@ func (c *ProjectsLocationsGitLabConfigsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.gitLabConfigs.delete" call. @@ -8102,7 +8102,7 @@ func (c *ProjectsLocationsGitLabConfigsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.gitLabConfigs.get" call. @@ -8228,7 +8228,7 @@ func (c *ProjectsLocationsGitLabConfigsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.gitLabConfigs.list" call. @@ -8360,7 +8360,7 @@ func (c *ProjectsLocationsGitLabConfigsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.gitLabConfigs.patch" call. @@ -8463,7 +8463,7 @@ func (c *ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall) doRe googleapi.Expand(req.URL, map[string]string{ "config": c.config, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.gitLabConfigs.removeGitLabConnectedRepository" call. @@ -8566,7 +8566,7 @@ func (c *ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall) doR googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.gitLabConfigs.connectedRepositories.batchCreate" call. @@ -8691,7 +8691,7 @@ func (c *ProjectsLocationsGitLabConfigsReposListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.gitLabConfigs.repos.list" call. @@ -8833,7 +8833,7 @@ func (c *ProjectsLocationsGithubEnterpriseConfigsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.githubEnterpriseConfigs.create" call. @@ -8945,7 +8945,7 @@ func (c *ProjectsLocationsGithubEnterpriseConfigsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.githubEnterpriseConfigs.delete" call. @@ -9068,7 +9068,7 @@ func (c *ProjectsLocationsGithubEnterpriseConfigsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.githubEnterpriseConfigs.get" call. @@ -9183,7 +9183,7 @@ func (c *ProjectsLocationsGithubEnterpriseConfigsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.githubEnterpriseConfigs.list" call. @@ -9297,7 +9297,7 @@ func (c *ProjectsLocationsGithubEnterpriseConfigsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.githubEnterpriseConfigs.patch" call. @@ -9406,7 +9406,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.operations.cancel" call. @@ -9515,7 +9515,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.operations.get" call. @@ -9624,7 +9624,7 @@ func (c *ProjectsLocationsTriggersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.triggers.create" call. @@ -9734,7 +9734,7 @@ func (c *ProjectsLocationsTriggersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.triggers.delete" call. @@ -9856,7 +9856,7 @@ func (c *ProjectsLocationsTriggersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.triggers.get" call. @@ -9985,7 +9985,7 @@ func (c *ProjectsLocationsTriggersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.triggers.list" call. @@ -10133,7 +10133,7 @@ func (c *ProjectsLocationsTriggersPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.triggers.patch" call. @@ -10240,7 +10240,7 @@ func (c *ProjectsLocationsTriggersRunCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.triggers.run" call. @@ -10364,7 +10364,7 @@ func (c *ProjectsLocationsTriggersWebhookCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.triggers.webhook" call. @@ -10483,7 +10483,7 @@ func (c *ProjectsLocationsWorkerPoolsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.workerPools.create" call. @@ -10601,7 +10601,7 @@ func (c *ProjectsLocationsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.workerPools.delete" call. @@ -10709,7 +10709,7 @@ func (c *ProjectsLocationsWorkerPoolsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.workerPools.get" call. @@ -10833,7 +10833,7 @@ func (c *ProjectsLocationsWorkerPoolsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.workerPools.list" call. @@ -10974,7 +10974,7 @@ func (c *ProjectsLocationsWorkerPoolsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.workerPools.patch" call. @@ -11082,7 +11082,7 @@ func (c *ProjectsTriggersCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.triggers.create" call. @@ -11188,7 +11188,7 @@ func (c *ProjectsTriggersDeleteCall) doRequest(alt string) (*http.Response, erro "projectId": c.projectId, "triggerId": c.triggerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.triggers.delete" call. @@ -11307,7 +11307,7 @@ func (c *ProjectsTriggersGetCall) doRequest(alt string) (*http.Response, error) "projectId": c.projectId, "triggerId": c.triggerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.triggers.get" call. @@ -11435,7 +11435,7 @@ func (c *ProjectsTriggersListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.triggers.list" call. @@ -11571,7 +11571,7 @@ func (c *ProjectsTriggersPatchCall) doRequest(alt string) (*http.Response, error "projectId": c.projectId, "triggerId": c.triggerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.triggers.patch" call. @@ -11688,7 +11688,7 @@ func (c *ProjectsTriggersRunCall) doRequest(alt string) (*http.Response, error) "projectId": c.projectId, "triggerId": c.triggerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.triggers.run" call. @@ -11809,7 +11809,7 @@ func (c *ProjectsTriggersWebhookCall) doRequest(alt string) (*http.Response, err "projectId": c.projectId, "trigger": c.trigger, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.triggers.webhook" call. @@ -11912,7 +11912,7 @@ func (c *V1WebhookCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.webhook" call. diff --git a/cloudbuild/v1alpha1/cloudbuild-gen.go b/cloudbuild/v1alpha1/cloudbuild-gen.go index 39d84ebf6d4..15a727879aa 100644 --- a/cloudbuild/v1alpha1/cloudbuild-gen.go +++ b/cloudbuild/v1alpha1/cloudbuild-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/cloud-build/docs/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // cloudbuildService, err := cloudbuild.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // cloudbuildService, err := cloudbuild.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // cloudbuildService, err := cloudbuild.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package cloudbuild // import "google.golang.org/api/cloudbuild/v1alpha1" import ( @@ -71,17 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "cloudbuild:v1alpha1" const apiName = "cloudbuild" const apiVersion = "v1alpha1" const basePath = "https://cloudbuild.googleapis.com/" +const basePathTemplate = "https://cloudbuild.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://cloudbuild.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -93,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -182,324 +199,254 @@ type ProjectsWorkerPoolsService struct { s *Service } -// ApprovalConfig: ApprovalConfig describes configuration for manual -// approval of a build. +// ApprovalConfig: ApprovalConfig describes configuration for manual approval +// of a build. type ApprovalConfig struct { - // ApprovalRequired: Whether or not approval is needed. If this is set - // on a build, it will become pending when created, and will need to be - // explicitly approved to start. + // ApprovalRequired: Whether or not approval is needed. If this is set on a + // build, it will become pending when created, and will need to be explicitly + // approved to start. ApprovalRequired bool `json:"approvalRequired,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApprovalRequired") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalRequired") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApprovalRequired") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApprovalConfig) MarshalJSON() ([]byte, error) { +func (s ApprovalConfig) MarshalJSON() ([]byte, error) { type NoMethod ApprovalConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApprovalResult: ApprovalResult describes the decision and associated // metadata of a manual approval of a build. type ApprovalResult struct { - // ApprovalTime: Output only. The time when the approval decision was - // made. + // ApprovalTime: Output only. The time when the approval decision was made. ApprovalTime string `json:"approvalTime,omitempty"` - - // ApproverAccount: Output only. Email of the user that called the - // ApproveBuild API to approve or reject a build at the time that the - // API was called. + // ApproverAccount: Output only. Email of the user that called the ApproveBuild + // API to approve or reject a build at the time that the API was called. ApproverAccount string `json:"approverAccount,omitempty"` - - // Comment: Optional. An optional comment for this manual approval - // result. + // Comment: Optional. An optional comment for this manual approval result. Comment string `json:"comment,omitempty"` - // Decision: Required. The decision of this manual approval. // // Possible values: - // "DECISION_UNSPECIFIED" - Default enum type. This should not be - // used. + // "DECISION_UNSPECIFIED" - Default enum type. This should not be used. // "APPROVED" - Build is approved. // "REJECTED" - Build is rejected. Decision string `json:"decision,omitempty"` - - // Url: Optional. An optional URL tied to this manual approval result. - // This field is essentially the same as comment, except that it will be - // rendered by the UI differently. An example use case is a link to an - // external job that approved this Build. + // Url: Optional. An optional URL tied to this manual approval result. This + // field is essentially the same as comment, except that it will be rendered by + // the UI differently. An example use case is a link to an external job that + // approved this Build. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApprovalTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApprovalTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApprovalResult) MarshalJSON() ([]byte, error) { +func (s ApprovalResult) MarshalJSON() ([]byte, error) { type NoMethod ApprovalResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ArtifactObjects: Files in the workspace to upload to Cloud Storage -// upon successful completion of all build steps. +// ArtifactObjects: Files in the workspace to upload to Cloud Storage upon +// successful completion of all build steps. type ArtifactObjects struct { // Location: Cloud Storage bucket and optional object path, in the form // "gs://bucket/path/to/somewhere/". (see Bucket Name Requirements - // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). - // Files in the workspace matching any path pattern will be uploaded to - // Cloud Storage with this location as a prefix. + // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files + // in the workspace matching any path pattern will be uploaded to Cloud Storage + // with this location as a prefix. Location string `json:"location,omitempty"` - // Paths: Path globs used to match files in the build's workspace. Paths []string `json:"paths,omitempty"` - - // Timing: Output only. Stores timing information for pushing all - // artifact objects. + // Timing: Output only. Stores timing information for pushing all artifact + // objects. Timing *TimeSpan `json:"timing,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Location") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Location") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ArtifactObjects) MarshalJSON() ([]byte, error) { +func (s ArtifactObjects) MarshalJSON() ([]byte, error) { type NoMethod ArtifactObjects - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ArtifactResult: An artifact that was uploaded during a build. This is -// a single record in the artifact manifest JSON file. +// ArtifactResult: An artifact that was uploaded during a build. This is a +// single record in the artifact manifest JSON file. type ArtifactResult struct { // FileHash: The file hash of the artifact. FileHash []*FileHashes `json:"fileHash,omitempty"` - - // Location: The path of an artifact in a Google Cloud Storage bucket, - // with the generation number. For example, + // Location: The path of an artifact in a Google Cloud Storage bucket, with the + // generation number. For example, // `gs://mybucket/path/to/output.jar#generation`. Location string `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHash") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHash") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHash") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ArtifactResult) MarshalJSON() ([]byte, error) { +func (s ArtifactResult) MarshalJSON() ([]byte, error) { type NoMethod ArtifactResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Artifacts: Artifacts produced by a build that should be uploaded upon // successful completion of all build steps. type Artifacts struct { - // Images: A list of images to be pushed upon the successful completion - // of all build steps. The images will be pushed using the builder - // service account's credentials. The digests of the pushed images will - // be stored in the Build resource's results field. If any of the images - // fail to be pushed, the build is marked FAILURE. + // Images: A list of images to be pushed upon the successful completion of all + // build steps. The images will be pushed using the builder service account's + // credentials. The digests of the pushed images will be stored in the Build + // resource's results field. If any of the images fail to be pushed, the build + // is marked FAILURE. Images []string `json:"images,omitempty"` - // MavenArtifacts: A list of Maven artifacts to be uploaded to Artifact - // Registry upon successful completion of all build steps. Artifacts in - // the workspace matching specified paths globs will be uploaded to the - // specified Artifact Registry repository using the builder service - // account's credentials. If any artifacts fail to be pushed, the build - // is marked FAILURE. + // Registry upon successful completion of all build steps. Artifacts in the + // workspace matching specified paths globs will be uploaded to the specified + // Artifact Registry repository using the builder service account's + // credentials. If any artifacts fail to be pushed, the build is marked + // FAILURE. MavenArtifacts []*MavenArtifact `json:"mavenArtifacts,omitempty"` - - // Objects: A list of objects to be uploaded to Cloud Storage upon - // successful completion of all build steps. Files in the workspace - // matching specified paths globs will be uploaded to the specified - // Cloud Storage location using the builder service account's - // credentials. The location and generation of the uploaded objects will - // be stored in the Build resource's results field. If any objects fail - // to be pushed, the build is marked FAILURE. + // Objects: A list of objects to be uploaded to Cloud Storage upon successful + // completion of all build steps. Files in the workspace matching specified + // paths globs will be uploaded to the specified Cloud Storage location using + // the builder service account's credentials. The location and generation of + // the uploaded objects will be stored in the Build resource's results field. + // If any objects fail to be pushed, the build is marked FAILURE. Objects *ArtifactObjects `json:"objects,omitempty"` - // PythonPackages: A list of Python packages to be uploaded to Artifact - // Registry upon successful completion of all build steps. The build - // service account credentials will be used to perform the upload. If - // any objects fail to be pushed, the build is marked FAILURE. + // Registry upon successful completion of all build steps. The build service + // account credentials will be used to perform the upload. If any objects fail + // to be pushed, the build is marked FAILURE. PythonPackages []*PythonPackage `json:"pythonPackages,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Images") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Images") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Images") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Artifacts) MarshalJSON() ([]byte, error) { +func (s Artifacts) MarshalJSON() ([]byte, error) { type NoMethod Artifacts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateBitbucketServerConnectedRepositoriesResponse: Response of -// BatchCreateBitbucketServerConnectedRepositories RPC method including -// all successfully connected Bitbucket Server repositories. +// BatchCreateBitbucketServerConnectedRepositories RPC method including all +// successfully connected Bitbucket Server repositories. type BatchCreateBitbucketServerConnectedRepositoriesResponse struct { // BitbucketServerConnectedRepositories: The connected Bitbucket Server // repositories. BitbucketServerConnectedRepositories []*BitbucketServerConnectedRepository `json:"bitbucketServerConnectedRepositories,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConnectedRepositories") to unconditionally include in - // API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "BitbucketServerConnectedRepositories") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "BitbucketServerConnectedRepositories") to include in API requests - // with the JSON null value. By default, fields with empty values are - // omitted from API requests. However, any field with an empty value - // appearing in NullFields will be sent to the server as null. It is an - // error if a field in this list has a non-empty value. This may be used - // to include null fields in Patch requests. + // "BitbucketServerConnectedRepositories") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } -func (s *BatchCreateBitbucketServerConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { +func (s BatchCreateBitbucketServerConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateBitbucketServerConnectedRepositoriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata: -// Metadata for `BatchCreateBitbucketServerConnectedRepositories` -// operation. +// BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata: Metadata +// for `BatchCreateBitbucketServerConnectedRepositories` operation. type BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // Config: The name of the `BitbucketServerConfig` that added connected // repositories. Format: - // `projects/{project}/locations/{location}/bitbucketServerConfigs/{confi - // g}` + // `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` Config string `json:"config,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { +func (s BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateGitLabConnectedRepositoriesResponse: Response of // BatchCreateGitLabConnectedRepositories RPC method. type BatchCreateGitLabConnectedRepositoriesResponse struct { - // GitlabConnectedRepositories: The GitLab connected repository - // requests' responses. + // GitlabConnectedRepositories: The GitLab connected repository requests' + // responses. GitlabConnectedRepositories []*GitLabConnectedRepository `json:"gitlabConnectedRepositories,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "GitlabConnectedRepositories") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "GitlabConnectedRepositories") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "GitlabConnectedRepositories") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "GitlabConnectedRepositories") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateGitLabConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { +func (s BatchCreateGitLabConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateGitLabConnectedRepositoriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateGitLabConnectedRepositoriesResponseMetadata: Metadata for @@ -507,36 +454,27 @@ func (s *BatchCreateGitLabConnectedRepositoriesResponse) MarshalJSON() ([]byte, type BatchCreateGitLabConnectedRepositoriesResponseMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - - // Config: The name of the `GitLabConfig` that added connected - // repositories. Format: - // `projects/{project}/locations/{location}/gitLabConfigs/{config}` + // Config: The name of the `GitLabConfig` that added connected repositories. + // Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` Config string `json:"config,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateGitLabConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { +func (s BatchCreateGitLabConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateGitLabConnectedRepositoriesResponseMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateRepositoriesResponse: Message for response of creating @@ -544,219 +482,168 @@ func (s *BatchCreateGitLabConnectedRepositoriesResponseMetadata) MarshalJSON() ( type BatchCreateRepositoriesResponse struct { // Repositories: Repository resources created. Repositories []*Repository `json:"repositories,omitempty"` - // ForceSendFields is a list of field names (e.g. "Repositories") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Repositories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Repositories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateRepositoriesResponse) MarshalJSON() ([]byte, error) { +func (s BatchCreateRepositoriesResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateRepositoriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BitbucketServerConnectedRepository: / -// BitbucketServerConnectedRepository represents a connected Bitbucket -// Server / repository. +// BitbucketServerConnectedRepository: / BitbucketServerConnectedRepository +// represents a connected Bitbucket Server / repository. type BitbucketServerConnectedRepository struct { // Parent: The name of the `BitbucketServerConfig` that added connected // repository. Format: - // `projects/{project}/locations/{location}/bitbucketServerConfigs/{confi - // g}` + // `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` Parent string `json:"parent,omitempty"` - // Repo: The Bitbucket Server repositories to connect. Repo *BitbucketServerRepositoryId `json:"repo,omitempty"` - // Status: Output only. The status of the repo connection request. Status *Status `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BitbucketServerConnectedRepository) MarshalJSON() ([]byte, error) { +func (s BitbucketServerConnectedRepository) MarshalJSON() ([]byte, error) { type NoMethod BitbucketServerConnectedRepository - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BitbucketServerRepositoryId: BitbucketServerRepositoryId identifies a // specific repository hosted on a Bitbucket Server. type BitbucketServerRepositoryId struct { - // ProjectKey: Required. Identifier for the project storing the - // repository. + // ProjectKey: Required. Identifier for the project storing the repository. ProjectKey string `json:"projectKey,omitempty"` - // RepoSlug: Required. Identifier for the repository. RepoSlug string `json:"repoSlug,omitempty"` - - // WebhookId: Output only. The ID of the webhook that was created for - // receiving events from this repo. We only create and manage a single - // webhook for each repo. + // WebhookId: Output only. The ID of the webhook that was created for receiving + // events from this repo. We only create and manage a single webhook for each + // repo. WebhookId int64 `json:"webhookId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectKey") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProjectKey") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProjectKey") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BitbucketServerRepositoryId) MarshalJSON() ([]byte, error) { +func (s BitbucketServerRepositoryId) MarshalJSON() ([]byte, error) { type NoMethod BitbucketServerRepositoryId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Build: A build resource in the Cloud Build API. At a high level, a -// `Build` describes where to find source code, how to build it (for -// example, the builder image to run on the source), and where to store -// the built artifacts. Fields can include the following variables, -// which will be expanded when the build is created: - $PROJECT_ID: the -// project ID of the build. - $PROJECT_NUMBER: the project number of the -// build. - $LOCATION: the location/region of the build. - $BUILD_ID: -// the autogenerated ID of the build. - $REPO_NAME: the source -// repository name specified by RepoSource. - $BRANCH_NAME: the branch -// name specified by RepoSource. - $TAG_NAME: the tag name specified by -// RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified -// by RepoSource or resolved from the specified branch or tag. - + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Build: A build resource in the Cloud Build API. At a high level, a `Build` +// describes where to find source code, how to build it (for example, the +// builder image to run on the source), and where to store the built artifacts. +// Fields can include the following variables, which will be expanded when the +// build is created: - $PROJECT_ID: the project ID of the build. - +// $PROJECT_NUMBER: the project number of the build. - $LOCATION: the +// location/region of the build. - $BUILD_ID: the autogenerated ID of the +// build. - $REPO_NAME: the source repository name specified by RepoSource. - +// $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag +// name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA +// specified by RepoSource or resolved from the specified branch or tag. - // $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. type Build struct { // Approval: Output only. Describes this build's approval configuration, // status, and result. Approval *BuildApproval `json:"approval,omitempty"` - - // Artifacts: Artifacts produced by the build that should be uploaded - // upon successful completion of all build steps. + // Artifacts: Artifacts produced by the build that should be uploaded upon + // successful completion of all build steps. Artifacts *Artifacts `json:"artifacts,omitempty"` - // AvailableSecrets: Secrets and secret environment variables. AvailableSecrets *Secrets `json:"availableSecrets,omitempty"` - - // BuildTriggerId: Output only. The ID of the `BuildTrigger` that - // triggered this build, if it was triggered automatically. + // BuildTriggerId: Output only. The ID of the `BuildTrigger` that triggered + // this build, if it was triggered automatically. BuildTriggerId string `json:"buildTriggerId,omitempty"` - - // CreateTime: Output only. Time at which the request to create the - // build was received. + // CreateTime: Output only. Time at which the request to create the build was + // received. CreateTime string `json:"createTime,omitempty"` - // FailureInfo: Output only. Contains information about the build when // status=FAILURE. FailureInfo *FailureInfo `json:"failureInfo,omitempty"` - - // FinishTime: Output only. Time at which execution of the build was - // finished. The difference between finish_time and start_time is the - // duration of the build's execution. + // FinishTime: Output only. Time at which execution of the build was finished. + // The difference between finish_time and start_time is the duration of the + // build's execution. FinishTime string `json:"finishTime,omitempty"` - // Id: Output only. Unique identifier of the build. Id string `json:"id,omitempty"` - - // Images: A list of images to be pushed upon the successful completion - // of all build steps. The images are pushed using the builder service - // account's credentials. The digests of the pushed images will be - // stored in the `Build` resource's results field. If any of the images - // fail to be pushed, the build status is marked `FAILURE`. + // Images: A list of images to be pushed upon the successful completion of all + // build steps. The images are pushed using the builder service account's + // credentials. The digests of the pushed images will be stored in the `Build` + // resource's results field. If any of the images fail to be pushed, the build + // status is marked `FAILURE`. Images []string `json:"images,omitempty"` - - // LogUrl: Output only. URL to logs for this build in Google Cloud - // Console. + // LogUrl: Output only. URL to logs for this build in Google Cloud Console. LogUrl string `json:"logUrl,omitempty"` - - // LogsBucket: Google Cloud Storage bucket where logs should be written - // (see Bucket Name Requirements - // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). - // Logs file names will be of the format - // `${logs_bucket}/log-${build_id}.txt`. + // LogsBucket: Google Cloud Storage bucket where logs should be written (see + // Bucket Name Requirements + // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs + // file names will be of the format `${logs_bucket}/log-${build_id}.txt`. LogsBucket string `json:"logsBucket,omitempty"` - // Name: Output only. The 'Build' name with format: - // `projects/{project}/locations/{location}/builds/{build}`, where - // {build} is a unique identifier generated by the service. + // `projects/{project}/locations/{location}/builds/{build}`, where {build} is a + // unique identifier generated by the service. Name string `json:"name,omitempty"` - // Options: Special options for this build. Options *BuildOptions `json:"options,omitempty"` - // ProjectId: Output only. ID of the project. ProjectId string `json:"projectId,omitempty"` - - // QueueTtl: TTL in queue for this build. If provided and the build is - // enqueued longer than this value, the build will expire and the build - // status will be `EXPIRED`. The TTL starts ticking from create_time. + // QueueTtl: TTL in queue for this build. If provided and the build is enqueued + // longer than this value, the build will expire and the build status will be + // `EXPIRED`. The TTL starts ticking from create_time. QueueTtl string `json:"queueTtl,omitempty"` - // Results: Output only. Results of the build. Results *Results `json:"results,omitempty"` - - // Secrets: Secrets to decrypt using Cloud Key Management Service. Note: - // Secret Manager is the recommended technique for managing sensitive - // data with Cloud Build. Use `available_secrets` to configure builds to - // access secrets from Secret Manager. For instructions, see: + // Secrets: Secrets to decrypt using Cloud Key Management Service. Note: Secret + // Manager is the recommended technique for managing sensitive data with Cloud + // Build. Use `available_secrets` to configure builds to access secrets from + // Secret Manager. For instructions, see: // https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets Secrets []*Secret `json:"secrets,omitempty"` - - // ServiceAccount: IAM service account whose credentials will be used at - // build runtime. Must be of the format - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be - // email address or uniqueId of the service account. + // ServiceAccount: IAM service account whose credentials will be used at build + // runtime. Must be of the format + // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email + // address or uniqueId of the service account. ServiceAccount string `json:"serviceAccount,omitempty"` - // Source: The location of the source files to build. Source *Source `json:"source,omitempty"` - - // SourceProvenance: Output only. A permanent fixed identifier for - // source. + // SourceProvenance: Output only. A permanent fixed identifier for source. SourceProvenance *SourceProvenance `json:"sourceProvenance,omitempty"` - - // StartTime: Output only. Time at which execution of the build was - // started. + // StartTime: Output only. Time at which execution of the build was started. StartTime string `json:"startTime,omitempty"` - // Status: Output only. Status of the build. // // Possible values: // "STATUS_UNKNOWN" - Status of the build is unknown. - // "PENDING" - Build has been created and is pending execution and - // queuing. It has not been queued. + // "PENDING" - Build has been created and is pending execution and queuing. + // It has not been queued. // "QUEUED" - Build or step is queued; work has not yet begun. // "WORKING" - Build or step is being executed. // "SUCCESS" - Build or step finished successfully. @@ -764,73 +651,57 @@ type Build struct { // "INTERNAL_ERROR" - Build or step failed due to an internal cause. // "TIMEOUT" - Build or step took longer than was allowed. // "CANCELLED" - Build or step was canceled by a user. - // "EXPIRED" - Build was enqueued for longer than the value of - // `queue_ttl`. + // "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`. Status string `json:"status,omitempty"` - - // StatusDetail: Output only. Customer-readable message about the - // current status. + // StatusDetail: Output only. Customer-readable message about the current + // status. StatusDetail string `json:"statusDetail,omitempty"` - // Steps: Required. The operations to be performed on the workspace. Steps []*BuildStep `json:"steps,omitempty"` - // Substitutions: Substitutions data for `Build` resource. Substitutions map[string]string `json:"substitutions,omitempty"` - // Tags: Tags for annotation of a `Build`. These are not docker tags. Tags []string `json:"tags,omitempty"` - - // Timeout: Amount of time that this build should be allowed to run, to - // second granularity. If this amount of time elapses, work on the build - // will cease and the build status will be `TIMEOUT`. `timeout` starts - // ticking from `startTime`. Default time is ten minutes. + // Timeout: Amount of time that this build should be allowed to run, to second + // granularity. If this amount of time elapses, work on the build will cease + // and the build status will be `TIMEOUT`. `timeout` starts ticking from + // `startTime`. Default time is ten minutes. Timeout string `json:"timeout,omitempty"` - - // Timing: Output only. Stores timing information for phases of the - // build. Valid keys are: * BUILD: time to execute all build steps. * - // PUSH: time to push all artifacts including docker images and non - // docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: - // time to set up build. If the build does not specify source or images, - // these keys will not be included. + // Timing: Output only. Stores timing information for phases of the build. + // Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to + // push all artifacts including docker images and non docker artifacts. * + // FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If + // the build does not specify source or images, these keys will not be + // included. Timing map[string]TimeSpan `json:"timing,omitempty"` - - // Warnings: Output only. Non-fatal problems encountered during the - // execution of the build. + // Warnings: Output only. Non-fatal problems encountered during the execution + // of the build. Warnings []*Warning `json:"warnings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Approval") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Approval") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Approval") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Build) MarshalJSON() ([]byte, error) { +func (s Build) MarshalJSON() ([]byte, error) { type NoMethod Build - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildApproval: BuildApproval describes a build's approval -// configuration, state, and result. +// BuildApproval: BuildApproval describes a build's approval configuration, +// state, and result. type BuildApproval struct { // Config: Output only. Configuration for manual approval of this build. Config *ApprovalConfig `json:"config,omitempty"` - // Result: Output only. Result of manual approval for this Build. Result *ApprovalResult `json:"result,omitempty"` - // State: Output only. The state of this build's approval. // // Possible values: @@ -838,115 +709,92 @@ type BuildApproval struct { // "PENDING" - Build approval is pending. // "APPROVED" - Build approval has been approved. // "REJECTED" - Build approval has been rejected. - // "CANCELLED" - Build was cancelled while it was still pending - // approval. + // "CANCELLED" - Build was cancelled while it was still pending approval. State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildApproval) MarshalJSON() ([]byte, error) { +func (s BuildApproval) MarshalJSON() ([]byte, error) { type NoMethod BuildApproval - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildOperationMetadata: Metadata for build operations. type BuildOperationMetadata struct { // Build: The build that the operation is tracking. Build *Build `json:"build,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Build") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Build") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Build") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildOperationMetadata) MarshalJSON() ([]byte, error) { +func (s BuildOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildOptions: Optional arguments to enable specific features of -// builds. +// BuildOptions: Optional arguments to enable specific features of builds. type BuildOptions struct { - // DiskSizeGb: Requested disk size for the VM that runs the build. Note - // that this is *NOT* "disk free"; some of the space will be used by the - // operating system and build utilities. Also note that this is the - // minimum disk size that will be allocated for the build -- the build - // may run with a larger disk than requested. At present, the maximum - // disk size is 2000GB; builds that request more than the maximum are - // rejected with an error. + // DiskSizeGb: Requested disk size for the VM that runs the build. Note that + // this is *NOT* "disk free"; some of the space will be used by the operating + // system and build utilities. Also note that this is the minimum disk size + // that will be allocated for the build -- the build may run with a larger disk + // than requested. At present, the maximum disk size is 2000GB; builds that + // request more than the maximum are rejected with an error. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // DynamicSubstitutions: Option to specify whether or not to apply bash - // style string operations to the substitutions. NOTE: this is always - // enabled for triggered builds and cannot be overridden in the build - // configuration file. + // DynamicSubstitutions: Option to specify whether or not to apply bash style + // string operations to the substitutions. NOTE: this is always enabled for + // triggered builds and cannot be overridden in the build configuration file. DynamicSubstitutions bool `json:"dynamicSubstitutions,omitempty"` - - // Env: A list of global environment variable definitions that will - // exist for all build steps in this build. If a variable is defined in - // both globally and in a build step, the variable will use the build - // step value. The elements are of the form "KEY=VALUE" for the - // environment variable "KEY" being given the value "VALUE". + // Env: A list of global environment variable definitions that will exist for + // all build steps in this build. If a variable is defined in both globally and + // in a build step, the variable will use the build step value. The elements + // are of the form "KEY=VALUE" for the environment variable "KEY" being given + // the value "VALUE". Env []string `json:"env,omitempty"` - - // LogStreamingOption: Option to define build log streaming behavior to - // Google Cloud Storage. + // LogStreamingOption: Option to define build log streaming behavior to Google + // Cloud Storage. // // Possible values: - // "STREAM_DEFAULT" - Service may automatically determine build log - // streaming behavior. - // "STREAM_ON" - Build logs should be streamed to Google Cloud - // Storage. - // "STREAM_OFF" - Build logs should not be streamed to Google Cloud - // Storage; they will be written when the build is completed. + // "STREAM_DEFAULT" - Service may automatically determine build log streaming + // behavior. + // "STREAM_ON" - Build logs should be streamed to Google Cloud Storage. + // "STREAM_OFF" - Build logs should not be streamed to Google Cloud Storage; + // they will be written when the build is completed. LogStreamingOption string `json:"logStreamingOption,omitempty"` - - // Logging: Option to specify the logging mode, which determines if and - // where build logs are stored. + // Logging: Option to specify the logging mode, which determines if and where + // build logs are stored. // // Possible values: - // "LOGGING_UNSPECIFIED" - The service determines the logging mode. - // The default is `LEGACY`. Do not rely on the default logging behavior - // as it may change in the future. - // "LEGACY" - Build logs are stored in Cloud Logging and Cloud - // Storage. + // "LOGGING_UNSPECIFIED" - The service determines the logging mode. The + // default is `LEGACY`. Do not rely on the default logging behavior as it may + // change in the future. + // "LEGACY" - Build logs are stored in Cloud Logging and Cloud Storage. // "GCS_ONLY" - Build logs are stored in Cloud Storage. // "STACKDRIVER_ONLY" - This option is the same as CLOUD_LOGGING_ONLY. - // "CLOUD_LOGGING_ONLY" - Build logs are stored in Cloud Logging. - // Selecting this option will not allow [logs + // "CLOUD_LOGGING_ONLY" - Build logs are stored in Cloud Logging. Selecting + // this option will not allow [logs // streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). // "NONE" - Turn off all logging. No build logs will be captured. Logging string `json:"logging,omitempty"` - // MachineType: Compute Engine machine type on which to run the build. // // Possible values: @@ -956,26 +804,22 @@ type BuildOptions struct { // "E2_HIGHCPU_8" - Highcpu e2 machine with 8 CPUs. // "E2_HIGHCPU_32" - Highcpu e2 machine with 32 CPUs. MachineType string `json:"machineType,omitempty"` - - // Pool: Optional. Specification for execution on a `WorkerPool`. See - // running builds in a private pool + // Pool: Optional. Specification for execution on a `WorkerPool`. See running + // builds in a private pool // (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) // for more information. Pool *PoolOption `json:"pool,omitempty"` - // RequestedVerifyOption: Requested verifiability options. // // Possible values: // "NOT_VERIFIED" - Not a verifiable build (the default). // "VERIFIED" - Build must be verified. RequestedVerifyOption string `json:"requestedVerifyOption,omitempty"` - - // SecretEnv: A list of global environment variables, which are - // encrypted using a Cloud Key Management Service crypto key. These - // values must be specified in the build's `Secret`. These variables - // will be available to all build steps in this build. + // SecretEnv: A list of global environment variables, which are encrypted using + // a Cloud Key Management Service crypto key. These values must be specified in + // the build's `Secret`. These variables will be available to all build steps + // in this build. SecretEnv []string `json:"secretEnv,omitempty"` - // SourceProvenanceHash: Requested hash for SourceProvenance. // // Possible values: @@ -983,138 +827,112 @@ type BuildOptions struct { // "SHA256" - Use a sha256 hash. // "MD5" - Use a md5 hash. SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"` - - // SubstitutionOption: Option to specify behavior when there is an error - // in the substitution checks. NOTE: this is always set to ALLOW_LOOSE - // for triggered builds and cannot be overridden in the build - // configuration file. + // SubstitutionOption: Option to specify behavior when there is an error in the + // substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered + // builds and cannot be overridden in the build configuration file. // // Possible values: - // "MUST_MATCH" - Fails the build if error in substitutions checks, - // like missing a substitution in the template or in the map. - // "ALLOW_LOOSE" - Do not fail the build if error in substitutions - // checks. + // "MUST_MATCH" - Fails the build if error in substitutions checks, like + // missing a substitution in the template or in the map. + // "ALLOW_LOOSE" - Do not fail the build if error in substitutions checks. SubstitutionOption string `json:"substitutionOption,omitempty"` - - // Volumes: Global list of volumes to mount for ALL build steps Each - // volume is created as an empty volume prior to starting the build - // process. Upon completion of the build, volumes and their contents are - // discarded. Global volume names and paths cannot conflict with the - // volumes defined a build step. Using a global volume in a build with - // only one step is not valid as it is indicative of a build request - // with an incorrect configuration. + // Volumes: Global list of volumes to mount for ALL build steps Each volume is + // created as an empty volume prior to starting the build process. Upon + // completion of the build, volumes and their contents are discarded. Global + // volume names and paths cannot conflict with the volumes defined a build + // step. Using a global volume in a build with only one step is not valid as it + // is indicative of a build request with an incorrect configuration. Volumes []*Volume `json:"volumes,omitempty"` - // WorkerPool: This field deprecated; please use `pool.name` instead. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DiskSizeGb") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DiskSizeGb") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildOptions) MarshalJSON() ([]byte, error) { +func (s BuildOptions) MarshalJSON() ([]byte, error) { type NoMethod BuildOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildStep: A step in the build pipeline. type BuildStep struct { - // AllowExitCodes: Allow this build step to fail without failing the - // entire build if and only if the exit code is one of the specified - // codes. If allow_failure is also specified, this field will take - // precedence. + // AllowExitCodes: Allow this build step to fail without failing the entire + // build if and only if the exit code is one of the specified codes. If + // allow_failure is also specified, this field will take precedence. AllowExitCodes []int64 `json:"allowExitCodes,omitempty"` - - // AllowFailure: Allow this build step to fail without failing the - // entire build. If false, the entire build will fail if this step - // fails. Otherwise, the build will succeed, but this step will still - // have a failure status. Error information will be reported in the - // failure_detail field. + // AllowFailure: Allow this build step to fail without failing the entire + // build. If false, the entire build will fail if this step fails. Otherwise, + // the build will succeed, but this step will still have a failure status. + // Error information will be reported in the failure_detail field. AllowFailure bool `json:"allowFailure,omitempty"` - - // Args: A list of arguments that will be presented to the step when it - // is started. If the image used to run the step's container has an - // entrypoint, the `args` are used as arguments to that entrypoint. If - // the image does not define an entrypoint, the first element in args is - // used as the entrypoint, and the remainder will be used as arguments. + // Args: A list of arguments that will be presented to the step when it is + // started. If the image used to run the step's container has an entrypoint, + // the `args` are used as arguments to that entrypoint. If the image does not + // define an entrypoint, the first element in args is used as the entrypoint, + // and the remainder will be used as arguments. Args []string `json:"args,omitempty"` - - // Dir: Working directory to use when running this step's container. If - // this value is a relative path, it is relative to the build's working - // directory. If this value is absolute, it may be outside the build's - // working directory, in which case the contents of the path may not be - // persisted across build step executions, unless a `volume` for that - // path is specified. If the build specifies a `RepoSource` with `dir` - // and a step with a `dir`, which specifies an absolute path, the - // `RepoSource` `dir` is ignored for the step's execution. + // Dir: Working directory to use when running this step's container. If this + // value is a relative path, it is relative to the build's working directory. + // If this value is absolute, it may be outside the build's working directory, + // in which case the contents of the path may not be persisted across build + // step executions, unless a `volume` for that path is specified. If the build + // specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies + // an absolute path, the `RepoSource` `dir` is ignored for the step's + // execution. Dir string `json:"dir,omitempty"` - - // Entrypoint: Entrypoint to be used instead of the build step image's - // default entrypoint. If unset, the image's default entrypoint is used. + // Entrypoint: Entrypoint to be used instead of the build step image's default + // entrypoint. If unset, the image's default entrypoint is used. Entrypoint string `json:"entrypoint,omitempty"` - - // Env: A list of environment variable definitions to be used when - // running a step. The elements are of the form "KEY=VALUE" for the - // environment variable "KEY" being given the value "VALUE". + // Env: A list of environment variable definitions to be used when running a + // step. The elements are of the form "KEY=VALUE" for the environment variable + // "KEY" being given the value "VALUE". Env []string `json:"env,omitempty"` - // ExitCode: Output only. Return code from running the step. ExitCode int64 `json:"exitCode,omitempty"` - - // Id: Unique identifier for this build step, used in `wait_for` to - // reference this build step as a dependency. + // Id: Unique identifier for this build step, used in `wait_for` to reference + // this build step as a dependency. Id string `json:"id,omitempty"` - // Name: Required. The name of the container image that will run this // particular build step. If the image is available in the host's Docker - // daemon's cache, it will be run directly. If not, the host will - // attempt to pull the image first, using the builder service account's - // credentials if necessary. The Docker daemon's cache will already have - // the latest versions of all of the officially supported build steps + // daemon's cache, it will be run directly. If not, the host will attempt to + // pull the image first, using the builder service account's credentials if + // necessary. The Docker daemon's cache will already have the latest versions + // of all of the officially supported build steps // (https://github.com/GoogleCloudPlatform/cloud-builders - // (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker - // daemon will also have cached many of the layers for some popular - // images, like "ubuntu", "debian", but they will be refreshed at the - // time you attempt to use them. If you built an image in a previous - // build step, it will be stored in the host's Docker daemon's cache and - // is available to use as the name for a later build step. + // (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon + // will also have cached many of the layers for some popular images, like + // "ubuntu", "debian", but they will be refreshed at the time you attempt to + // use them. If you built an image in a previous build step, it will be stored + // in the host's Docker daemon's cache and is available to use as the name for + // a later build step. Name string `json:"name,omitempty"` - - // PullTiming: Output only. Stores timing information for pulling this - // build step's builder image only. + // PullTiming: Output only. Stores timing information for pulling this build + // step's builder image only. PullTiming *TimeSpan `json:"pullTiming,omitempty"` - - // Script: A shell script to be executed in the step. When script is - // provided, the user cannot specify the entrypoint or args. + // Script: A shell script to be executed in the step. When script is provided, + // the user cannot specify the entrypoint or args. Script string `json:"script,omitempty"` - - // SecretEnv: A list of environment variables which are encrypted using - // a Cloud Key Management Service crypto key. These values must be - // specified in the build's `Secret`. + // SecretEnv: A list of environment variables which are encrypted using a Cloud + // Key Management Service crypto key. These values must be specified in the + // build's `Secret`. SecretEnv []string `json:"secretEnv,omitempty"` - - // Status: Output only. Status of the build step. At this time, build - // step status is only updated on build completion; step status is not - // updated in real-time as the build progresses. + // Status: Output only. Status of the build step. At this time, build step + // status is only updated on build completion; step status is not updated in + // real-time as the build progresses. // // Possible values: // "STATUS_UNKNOWN" - Status of the build is unknown. - // "PENDING" - Build has been created and is pending execution and - // queuing. It has not been queued. + // "PENDING" - Build has been created and is pending execution and queuing. + // It has not been queued. // "QUEUED" - Build or step is queued; work has not yet begun. // "WORKING" - Build or step is being executed. // "SUCCESS" - Build or step finished successfully. @@ -1122,135 +940,104 @@ type BuildStep struct { // "INTERNAL_ERROR" - Build or step failed due to an internal cause. // "TIMEOUT" - Build or step took longer than was allowed. // "CANCELLED" - Build or step was canceled by a user. - // "EXPIRED" - Build was enqueued for longer than the value of - // `queue_ttl`. + // "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`. Status string `json:"status,omitempty"` - - // Timeout: Time limit for executing this build step. If not defined, - // the step has no time limit and will be allowed to continue to run - // until either it completes or the build itself times out. + // Timeout: Time limit for executing this build step. If not defined, the step + // has no time limit and will be allowed to continue to run until either it + // completes or the build itself times out. Timeout string `json:"timeout,omitempty"` - - // Timing: Output only. Stores timing information for executing this - // build step. + // Timing: Output only. Stores timing information for executing this build + // step. Timing *TimeSpan `json:"timing,omitempty"` - // Volumes: List of volumes to mount into the build step. Each volume is // created as an empty volume prior to execution of the build step. Upon - // completion of the build, volumes and their contents are discarded. - // Using a named volume in only one step is not valid as it is - // indicative of a build request with an incorrect configuration. + // completion of the build, volumes and their contents are discarded. Using a + // named volume in only one step is not valid as it is indicative of a build + // request with an incorrect configuration. Volumes []*Volume `json:"volumes,omitempty"` - - // WaitFor: The ID(s) of the step(s) that this build step depends on. - // This build step will not start until all the build steps in - // `wait_for` have completed successfully. If `wait_for` is empty, this - // build step will start when all previous build steps in the - // `Build.Steps` list have completed successfully. + // WaitFor: The ID(s) of the step(s) that this build step depends on. This + // build step will not start until all the build steps in `wait_for` have + // completed successfully. If `wait_for` is empty, this build step will start + // when all previous build steps in the `Build.Steps` list have completed + // successfully. WaitFor []string `json:"waitFor,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowExitCodes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowExitCodes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowExitCodes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildStep) MarshalJSON() ([]byte, error) { +func (s BuildStep) MarshalJSON() ([]byte, error) { type NoMethod BuildStep - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuiltImage: An image built by the pipeline. type BuiltImage struct { // Digest: Docker Registry 2.0 digest. Digest string `json:"digest,omitempty"` - - // Name: Name used to push the container image to Google Container - // Registry, as presented to `docker push`. + // Name: Name used to push the container image to Google Container Registry, as + // presented to `docker push`. Name string `json:"name,omitempty"` - - // PushTiming: Output only. Stores timing information for pushing the - // specified image. + // PushTiming: Output only. Stores timing information for pushing the specified + // image. PushTiming *TimeSpan `json:"pushTiming,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuiltImage) MarshalJSON() ([]byte, error) { +func (s BuiltImage) MarshalJSON() ([]byte, error) { type NoMethod BuiltImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. +// CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } // CreateBitbucketServerConfigOperationMetadata: Metadata for // `CreateBitbucketServerConfig` operation. type CreateBitbucketServerConfigOperationMetadata struct { - // BitbucketServerConfig: The resource name of the BitbucketServerConfig - // to be created. Format: + // BitbucketServerConfig: The resource name of the BitbucketServerConfig to be + // created. Format: // `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"` - // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConfig") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BitbucketServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateBitbucketServerConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateGitHubEnterpriseConfigOperationMetadata: Metadata for @@ -1258,148 +1045,113 @@ func (s *CreateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, er type CreateGitHubEnterpriseConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be created. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // created. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateGitHubEnterpriseConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreateGitLabConfigOperationMetadata: Metadata for -// `CreateGitLabConfig` operation. +// CreateGitLabConfigOperationMetadata: Metadata for `CreateGitLabConfig` +// operation. type CreateGitLabConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. + // GitlabConfig: The resource name of the GitLabConfig to be created. Format: + // `projects/{project}/locations/{location}/gitlabConfigs/{id}`. GitlabConfig string `json:"gitlabConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreateWorkerPoolOperationMetadata: Metadata for the -// `CreateWorkerPool` operation. +// CreateWorkerPoolOperationMetadata: Metadata for the `CreateWorkerPool` +// operation. type CreateWorkerPoolOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - // WorkerPool: The resource name of the `WorkerPool` to create. Format: // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateWorkerPoolOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeleteBitbucketServerConfigOperationMetadata: Metadata for // `DeleteBitbucketServerConfig` operation. type DeleteBitbucketServerConfigOperationMetadata struct { - // BitbucketServerConfig: The resource name of the BitbucketServerConfig - // to be deleted. Format: + // BitbucketServerConfig: The resource name of the BitbucketServerConfig to be + // deleted. Format: // `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"` - // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConfig") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BitbucketServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteBitbucketServerConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeleteGitHubEnterpriseConfigOperationMetadata: Metadata for @@ -1407,130 +1159,99 @@ func (s *DeleteBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, er type DeleteGitHubEnterpriseConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be deleted. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // deleted. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteGitHubEnterpriseConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeleteGitLabConfigOperationMetadata: Metadata for -// `DeleteGitLabConfig` operation. +// DeleteGitLabConfigOperationMetadata: Metadata for `DeleteGitLabConfig` +// operation. type DeleteGitLabConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. + // GitlabConfig: The resource name of the GitLabConfig to be created. Format: + // `projects/{project}/locations/{location}/gitlabConfigs/{id}`. GitlabConfig string `json:"gitlabConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeleteWorkerPoolOperationMetadata: Metadata for the -// `DeleteWorkerPool` operation. +// DeleteWorkerPoolOperationMetadata: Metadata for the `DeleteWorkerPool` +// operation. type DeleteWorkerPoolOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // WorkerPool: The resource name of the `WorkerPool` being deleted. - // Format: + // WorkerPool: The resource name of the `WorkerPool` being deleted. Format: // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteWorkerPoolOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// FailureInfo: A fatal problem encountered during the execution of the -// build. +// FailureInfo: A fatal problem encountered during the execution of the build. type FailureInfo struct { - // Detail: Explains the failure issue in more detail using hard-coded - // text. + // Detail: Explains the failure issue in more detail using hard-coded text. Detail string `json:"detail,omitempty"` - // Type: The name of the failure. // // Possible values: @@ -1542,213 +1263,163 @@ type FailureInfo struct { // "USER_BUILD_STEP" - A build step has failed. // "FETCH_SOURCE_FAILED" - The source fetching has failed. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Detail") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Detail") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FailureInfo) MarshalJSON() ([]byte, error) { +func (s FailureInfo) MarshalJSON() ([]byte, error) { type NoMethod FailureInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FileHashes: Container message for hashes of byte content of files, -// used in SourceProvenance messages to verify integrity of source input -// to the build. +// FileHashes: Container message for hashes of byte content of files, used in +// SourceProvenance messages to verify integrity of source input to the build. type FileHashes struct { // FileHash: Collection of file hashes. FileHash []*Hash `json:"fileHash,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHash") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHash") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHash") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileHashes) MarshalJSON() ([]byte, error) { +func (s FileHashes) MarshalJSON() ([]byte, error) { type NoMethod FileHashes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GitLabConnectedRepository: GitLabConnectedRepository represents a -// GitLab connected repository request response. +// GitLabConnectedRepository: GitLabConnectedRepository represents a GitLab +// connected repository request response. type GitLabConnectedRepository struct { - // Parent: The name of the `GitLabConfig` that added connected - // repository. Format: - // `projects/{project}/locations/{location}/gitLabConfigs/{config}` + // Parent: The name of the `GitLabConfig` that added connected repository. + // Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` Parent string `json:"parent,omitempty"` - // Repo: The GitLab repositories to connect. Repo *GitLabRepositoryId `json:"repo,omitempty"` - // Status: Output only. The status of the repo connection request. Status *Status `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GitLabConnectedRepository) MarshalJSON() ([]byte, error) { +func (s GitLabConnectedRepository) MarshalJSON() ([]byte, error) { type NoMethod GitLabConnectedRepository - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GitLabRepositoryId: GitLabRepositoryId identifies a specific -// repository hosted on GitLab.com or GitLabEnterprise +// GitLabRepositoryId: GitLabRepositoryId identifies a specific repository +// hosted on GitLab.com or GitLabEnterprise type GitLabRepositoryId struct { // Id: Required. Identifier for the repository. example: - // "namespace/project-slug", namespace is usually the username or group - // ID + // "namespace/project-slug", namespace is usually the username or group ID Id string `json:"id,omitempty"` - - // WebhookId: Output only. The ID of the webhook that was created for - // receiving events from this repo. We only create and manage a single - // webhook for each repo. + // WebhookId: Output only. The ID of the webhook that was created for receiving + // events from this repo. We only create and manage a single webhook for each + // repo. WebhookId int64 `json:"webhookId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GitLabRepositoryId) MarshalJSON() ([]byte, error) { +func (s GitLabRepositoryId) MarshalJSON() ([]byte, error) { type NoMethod GitLabRepositoryId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata -// of the long-running operation. +// GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata of the +// long-running operation. type GoogleDevtoolsCloudbuildV2OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` - // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // requested cancellation of the operation. Operations that have successfully + // been cancelled have Operation.error value with a google.rpc.Status.code of + // 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // StatusMessage: Output only. Human-readable status of the operation, - // if any. + // StatusMessage: Output only. Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Output only. Server-defined resource path for the target of the + // operation. Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsCloudbuildV2OperationMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsCloudbuildV2OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsCloudbuildV2OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // HTTPDelivery: HTTPDelivery is the delivery configuration for an HTTP // notification. type HTTPDelivery struct { - // Uri: The URI to which JSON-containing HTTP POST requests should be - // sent. + // Uri: The URI to which JSON-containing HTTP POST requests should be sent. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HTTPDelivery) MarshalJSON() ([]byte, error) { +func (s HTTPDelivery) MarshalJSON() ([]byte, error) { type NoMethod HTTPDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Hash: Container message for hash values. @@ -1760,69 +1431,54 @@ type Hash struct { // "SHA256" - Use a sha256 hash. // "MD5" - Use a md5 hash. Type string `json:"type,omitempty"` - // Value: The hash value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Hash) MarshalJSON() ([]byte, error) { +func (s Hash) MarshalJSON() ([]byte, error) { type NoMethod Hash - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InlineSecret: Pairs a set of secret environment variables mapped to // encrypted values with the Cloud KMS key to use to decrypt the value. type InlineSecret struct { - // EnvMap: Map of environment variable name to its encrypted value. - // Secret environment variables must be unique across all of a build's - // secrets, and must be used by at least one build step. Values can be - // at most 64 KB in size. There can be at most 100 secret values across - // all of a build's secrets. + // EnvMap: Map of environment variable name to its encrypted value. Secret + // environment variables must be unique across all of a build's secrets, and + // must be used by at least one build step. Values can be at most 64 KB in + // size. There can be at most 100 secret values across all of a build's + // secrets. EnvMap map[string]string `json:"envMap,omitempty"` - - // KmsKeyName: Resource name of Cloud KMS crypto key to decrypt the - // encrypted value. In format: - // projects/*/locations/*/keyRings/*/cryptoKeys/* + // KmsKeyName: Resource name of Cloud KMS crypto key to decrypt the encrypted + // value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/* KmsKeyName string `json:"kmsKeyName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnvMap") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnvMap") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EnvMap") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InlineSecret) MarshalJSON() ([]byte, error) { +func (s InlineSecret) MarshalJSON() ([]byte, error) { type NoMethod InlineSecret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListWorkerPoolsResponse: Response containing existing `WorkerPools`. @@ -1830,486 +1486,375 @@ type ListWorkerPoolsResponse struct { // WorkerPools: `WorkerPools` for the project. WorkerPools []*WorkerPool `json:"workerPools,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "WorkerPools") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "WorkerPools") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "WorkerPools") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { +func (s ListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListWorkerPoolsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MavenArtifact: A Maven artifact to upload to Artifact Registry upon // successful completion of all build steps. type MavenArtifact struct { - // ArtifactId: Maven `artifactId` value used when uploading the artifact - // to Artifact Registry. - ArtifactId string `json:"artifactId,omitempty"` - - // GroupId: Maven `groupId` value used when uploading the artifact to + // ArtifactId: Maven `artifactId` value used when uploading the artifact to // Artifact Registry. + ArtifactId string `json:"artifactId,omitempty"` + // GroupId: Maven `groupId` value used when uploading the artifact to Artifact + // Registry. GroupId string `json:"groupId,omitempty"` - // Path: Path to an artifact in the build's workspace to be uploaded to // Artifact Registry. This can be either an absolute path, e.g. - // /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path - // from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + // /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from + // /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. Path string `json:"path,omitempty"` - // Repository: Artifact Registry repository, in the form // "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the - // workspace specified by path will be uploaded to Artifact Registry - // with this location as a prefix. + // workspace specified by path will be uploaded to Artifact Registry with this + // location as a prefix. Repository string `json:"repository,omitempty"` - - // Version: Maven `version` value used when uploading the artifact to - // Artifact Registry. + // Version: Maven `version` value used when uploading the artifact to Artifact + // Registry. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArtifactId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArtifactId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArtifactId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MavenArtifact) MarshalJSON() ([]byte, error) { +func (s MavenArtifact) MarshalJSON() ([]byte, error) { type NoMethod MavenArtifact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Network: Network describes the GCP network used to create workers in. type Network struct { - // Network: Network on which the workers are created. "default" network - // is used if empty. + // Network: Network on which the workers are created. "default" network is used + // if empty. Network string `json:"network,omitempty"` - - // ProjectId: Project id containing the defined network and subnetwork. - // For a peered VPC, this will be the same as the project_id in which - // the workers are created. For a shared VPC, this will be the project - // sharing the network with the project_id project in which workers will - // be created. For custom workers with no VPC, this will be the same as - // project_id. + // ProjectId: Project id containing the defined network and subnetwork. For a + // peered VPC, this will be the same as the project_id in which the workers are + // created. For a shared VPC, this will be the project sharing the network with + // the project_id project in which workers will be created. For custom workers + // with no VPC, this will be the same as project_id. ProjectId string `json:"projectId,omitempty"` - // Subnetwork: Subnetwork on which the workers are created. "default" // subnetwork is used if empty. Subnetwork string `json:"subnetwork,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Network") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Network") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Network") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Network") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Network) MarshalJSON() ([]byte, error) { +func (s Network) MarshalJSON() ([]byte, error) { type NoMethod Network - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Notification: Notification is the container which holds the data that -// is relevant to this particular notification. +// Notification: Notification is the container which holds the data that is +// relevant to this particular notification. type Notification struct { - // Filter: The filter string to use for notification filtering. - // Currently, this is assumed to be a CEL program. See - // https://opensource.google/projects/cel for more. + // Filter: The filter string to use for notification filtering. Currently, this + // is assumed to be a CEL program. See https://opensource.google/projects/cel + // for more. Filter string `json:"filter,omitempty"` - // HttpDelivery: Configuration for HTTP delivery. HttpDelivery *HTTPDelivery `json:"httpDelivery,omitempty"` - // SlackDelivery: Configuration for Slack delivery. SlackDelivery *SlackDelivery `json:"slackDelivery,omitempty"` - // SmtpDelivery: Configuration for SMTP (email) delivery. SmtpDelivery *SMTPDelivery `json:"smtpDelivery,omitempty"` - - // StructDelivery: Escape hatch for users to supply custom delivery - // configs. + // StructDelivery: Escape hatch for users to supply custom delivery configs. StructDelivery googleapi.RawMessage `json:"structDelivery,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Notification) MarshalJSON() ([]byte, error) { +func (s Notification) MarshalJSON() ([]byte, error) { type NoMethod Notification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierConfig: NotifierConfig is the top-level configuration -// message. +// NotifierConfig: NotifierConfig is the top-level configuration message. type NotifierConfig struct { // ApiVersion: The API version of this configuration format. ApiVersion string `json:"apiVersion,omitempty"` - // Kind: The type of notifier to use (e.g. SMTPNotifier). Kind string `json:"kind,omitempty"` - // Metadata: Metadata for referring to/handling/deploying this notifier. Metadata *NotifierMetadata `json:"metadata,omitempty"` - // Spec: The actual configuration for this notifier. Spec *NotifierSpec `json:"spec,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierConfig) MarshalJSON() ([]byte, error) { +func (s NotifierConfig) MarshalJSON() ([]byte, error) { type NoMethod NotifierConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierMetadata: NotifierMetadata contains the data which can be -// used to reference or describe this notifier. +// NotifierMetadata: NotifierMetadata contains the data which can be used to +// reference or describe this notifier. type NotifierMetadata struct { - // Name: The human-readable and user-given name for the notifier. For - // example: "repo-merge-email-notifier". + // Name: The human-readable and user-given name for the notifier. For example: + // "repo-merge-email-notifier". Name string `json:"name,omitempty"` - // Notifier: The string representing the name and version of notifier to // deploy. Expected to be of the form of "/:". For example: // "gcr.io/my-project/notifiers/smtp:1.2.34". Notifier string `json:"notifier,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierMetadata) MarshalJSON() ([]byte, error) { +func (s NotifierMetadata) MarshalJSON() ([]byte, error) { type NoMethod NotifierMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierSecret: NotifierSecret is the container that maps a secret -// name (reference) to its Google Cloud Secret Manager resource path. +// NotifierSecret: NotifierSecret is the container that maps a secret name +// (reference) to its Google Cloud Secret Manager resource path. type NotifierSecret struct { - // Name: Name is the local name of the secret, such as the verbatim - // string "my-smtp-password". + // Name: Name is the local name of the secret, such as the verbatim string + // "my-smtp-password". Name string `json:"name,omitempty"` - - // Value: Value is interpreted to be a resource path for fetching the - // actual (versioned) secret data for this secret. For example, this - // would be a Google Cloud Secret Manager secret version resource path - // like: "projects/my-project/secrets/my-secret/versions/latest". + // Value: Value is interpreted to be a resource path for fetching the actual + // (versioned) secret data for this secret. For example, this would be a Google + // Cloud Secret Manager secret version resource path like: + // "projects/my-project/secrets/my-secret/versions/latest". Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierSecret) MarshalJSON() ([]byte, error) { +func (s NotifierSecret) MarshalJSON() ([]byte, error) { type NoMethod NotifierSecret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierSecretRef: NotifierSecretRef contains the reference to a -// secret stored in the corresponding NotifierSpec. +// NotifierSecretRef: NotifierSecretRef contains the reference to a secret +// stored in the corresponding NotifierSpec. type NotifierSecretRef struct { - // SecretRef: The value of `secret_ref` should be a `name` that is - // registered in a `Secret` in the `secrets` list of the `Spec`. + // SecretRef: The value of `secret_ref` should be a `name` that is registered + // in a `Secret` in the `secrets` list of the `Spec`. SecretRef string `json:"secretRef,omitempty"` - // ForceSendFields is a list of field names (e.g. "SecretRef") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SecretRef") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SecretRef") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierSecretRef) MarshalJSON() ([]byte, error) { +func (s NotifierSecretRef) MarshalJSON() ([]byte, error) { type NoMethod NotifierSecretRef - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierSpec: NotifierSpec is the configuration container for -// notifications. +// NotifierSpec: NotifierSpec is the configuration container for notifications. type NotifierSpec struct { // Notification: The configuration of this particular notifier. Notification *Notification `json:"notification,omitempty"` - // Secrets: Configurations for secret resources used by this particular // notifier. Secrets []*NotifierSecret `json:"secrets,omitempty"` - // ForceSendFields is a list of field names (e.g. "Notification") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Notification") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Notification") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierSpec) MarshalJSON() ([]byte, error) { +func (s NotifierSpec) MarshalJSON() ([]byte, error) { type NoMethod NotifierSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadata: Represents the metadata of the long-running -// operation. +// OperationMetadata: Represents the metadata of the long-running operation. type OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` - - // CancelRequested: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have been - // cancelled successfully have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // CancelRequested: Output only. Identifies whether the user has requested + // cancellation of the operation. Operations that have been cancelled + // successfully have Operation.error value with a google.rpc.Status.code of 1, + // corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` - // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - - // StatusDetail: Output only. Human-readable status of the operation, if - // any. + // StatusDetail: Output only. Human-readable status of the operation, if any. StatusDetail string `json:"statusDetail,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Output only. Server-defined resource path for the target of the + // operation. Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { +func (s OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PoolOption: Details about how a build should be executed on a -// `WorkerPool`. See running builds in a private pool +// PoolOption: Details about how a build should be executed on a `WorkerPool`. +// See running builds in a private pool // (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) // for more information. type PoolOption struct { - // Name: The `WorkerPool` resource to execute the build on. You must - // have `cloudbuild.workerpools.use` on the project hosting the - // WorkerPool. Format + // Name: The `WorkerPool` resource to execute the build on. You must have + // `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format // projects/{project}/locations/{location}/workerPools/{workerPoolId} Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoolOption) MarshalJSON() ([]byte, error) { +func (s PoolOption) MarshalJSON() ([]byte, error) { type NoMethod PoolOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProcessAppManifestCallbackOperationMetadata: Metadata for @@ -2317,763 +1862,592 @@ func (s *PoolOption) MarshalJSON() ([]byte, error) { type ProcessAppManifestCallbackOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be created. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // created. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProcessAppManifestCallbackOperationMetadata) MarshalJSON() ([]byte, error) { +func (s ProcessAppManifestCallbackOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod ProcessAppManifestCallbackOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PythonPackage: Python package to upload to Artifact Registry upon -// successful completion of all build steps. A package can encapsulate -// multiple objects to be uploaded to a single repository. +// PythonPackage: Python package to upload to Artifact Registry upon successful +// completion of all build steps. A package can encapsulate multiple objects to +// be uploaded to a single repository. type PythonPackage struct { - // Paths: Path globs used to match files in the build's workspace. For - // Python/ Twine, this is usually `dist/*`, and sometimes additionally - // an `.asc` file. + // Paths: Path globs used to match files in the build's workspace. For Python/ + // Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. Paths []string `json:"paths,omitempty"` - // Repository: Artifact Registry repository, in the form - // "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the - // workspace matching any path pattern will be uploaded to Artifact - // Registry with this location as a prefix. + // "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace + // matching any path pattern will be uploaded to Artifact Registry with this + // location as a prefix. Repository string `json:"repository,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Paths") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Paths") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Paths") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PythonPackage) MarshalJSON() ([]byte, error) { +func (s PythonPackage) MarshalJSON() ([]byte, error) { type NoMethod PythonPackage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RepoSource: Location of the source in a Google Cloud Source -// Repository. +// RepoSource: Location of the source in a Google Cloud Source Repository. type RepoSource struct { - // BranchName: Regex matching branches to build. The syntax of the - // regular expressions accepted is the syntax accepted by RE2 and - // described at https://github.com/google/re2/wiki/Syntax + // BranchName: Regex matching branches to build. The syntax of the regular + // expressions accepted is the syntax accepted by RE2 and described at + // https://github.com/google/re2/wiki/Syntax BranchName string `json:"branchName,omitempty"` - // CommitSha: Explicit commit SHA to build. CommitSha string `json:"commitSha,omitempty"` - - // Dir: Directory, relative to the source root, in which to run the - // build. This must be a relative path. If a step's `dir` is specified - // and is an absolute path, this value is ignored for that step's - // execution. + // Dir: Directory, relative to the source root, in which to run the build. This + // must be a relative path. If a step's `dir` is specified and is an absolute + // path, this value is ignored for that step's execution. Dir string `json:"dir,omitempty"` - - // InvertRegex: Only trigger a build if the revision regex does NOT - // match the revision regex. + // InvertRegex: Only trigger a build if the revision regex does NOT match the + // revision regex. InvertRegex bool `json:"invertRegex,omitempty"` - - // ProjectId: ID of the project that owns the Cloud Source Repository. - // If omitted, the project ID requesting the build is assumed. + // ProjectId: ID of the project that owns the Cloud Source Repository. If + // omitted, the project ID requesting the build is assumed. ProjectId string `json:"projectId,omitempty"` - // RepoName: Name of the Cloud Source Repository. RepoName string `json:"repoName,omitempty"` - - // Substitutions: Substitutions to use in a triggered build. Should only - // be used with RunBuildTrigger + // Substitutions: Substitutions to use in a triggered build. Should only be + // used with RunBuildTrigger Substitutions map[string]string `json:"substitutions,omitempty"` - - // TagName: Regex matching tags to build. The syntax of the regular - // expressions accepted is the syntax accepted by RE2 and described at + // TagName: Regex matching tags to build. The syntax of the regular expressions + // accepted is the syntax accepted by RE2 and described at // https://github.com/google/re2/wiki/Syntax TagName string `json:"tagName,omitempty"` - // ForceSendFields is a list of field names (e.g. "BranchName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BranchName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BranchName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RepoSource) MarshalJSON() ([]byte, error) { +func (s RepoSource) MarshalJSON() ([]byte, error) { type NoMethod RepoSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Repository: A repository associated to a parent connection. type Repository struct { // Annotations: Allows clients to store small amounts of arbitrary data. Annotations map[string]string `json:"annotations,omitempty"` - - // CreateTime: Output only. Server assigned timestamp for when the - // connection was created. + // CreateTime: Output only. Server assigned timestamp for when the connection + // was created. CreateTime string `json:"createTime,omitempty"` - - // Etag: This checksum is computed by the server based on the value of - // other fields, and may be sent on update and delete requests to ensure - // the client has an up-to-date value before proceeding. + // Etag: This checksum is computed by the server based on the value of other + // fields, and may be sent on update and delete requests to ensure the client + // has an up-to-date value before proceeding. Etag string `json:"etag,omitempty"` - // Name: Immutable. Resource name of the repository, in the format // `projects/*/locations/*/connections/*/repositories/*`. Name string `json:"name,omitempty"` - // RemoteUri: Required. Git Clone HTTPS URI. RemoteUri string `json:"remoteUri,omitempty"` - - // UpdateTime: Output only. Server assigned timestamp for when the - // connection was updated. + // UpdateTime: Output only. Server assigned timestamp for when the connection + // was updated. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Repository) MarshalJSON() ([]byte, error) { +func (s Repository) MarshalJSON() ([]byte, error) { type NoMethod Repository - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Results: Artifacts created by the build pipeline. type Results struct { - // ArtifactManifest: Path to the artifact manifest for non-container - // artifacts uploaded to Cloud Storage. Only populated when artifacts - // are uploaded to Cloud Storage. + // ArtifactManifest: Path to the artifact manifest for non-container artifacts + // uploaded to Cloud Storage. Only populated when artifacts are uploaded to + // Cloud Storage. ArtifactManifest string `json:"artifactManifest,omitempty"` - - // ArtifactTiming: Time to push all non-container artifacts to Cloud - // Storage. + // ArtifactTiming: Time to push all non-container artifacts to Cloud Storage. ArtifactTiming *TimeSpan `json:"artifactTiming,omitempty"` - - // BuildStepImages: List of build step digests, in the order - // corresponding to build step indices. + // BuildStepImages: List of build step digests, in the order corresponding to + // build step indices. BuildStepImages []string `json:"buildStepImages,omitempty"` - - // BuildStepOutputs: List of build step outputs, produced by builder - // images, in the order corresponding to build step indices. Cloud - // Builders (https://cloud.google.com/cloud-build/docs/cloud-builders) - // can produce this output by writing to `$BUILDER_OUTPUT/output`. Only - // the first 4KB of data is stored. + // BuildStepOutputs: List of build step outputs, produced by builder images, in + // the order corresponding to build step indices. Cloud Builders + // (https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this + // output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is + // stored. BuildStepOutputs []string `json:"buildStepOutputs,omitempty"` - // Images: Container images that were built as a part of the build. Images []*BuiltImage `json:"images,omitempty"` - - // MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the - // end of the build. + // MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the end of + // the build. MavenArtifacts []*UploadedMavenArtifact `json:"mavenArtifacts,omitempty"` - - // NumArtifacts: Number of non-container artifacts uploaded to Cloud - // Storage. Only populated when artifacts are uploaded to Cloud Storage. + // NumArtifacts: Number of non-container artifacts uploaded to Cloud Storage. + // Only populated when artifacts are uploaded to Cloud Storage. NumArtifacts int64 `json:"numArtifacts,omitempty,string"` - - // PythonPackages: Python artifacts uploaded to Artifact Registry at the - // end of the build. + // PythonPackages: Python artifacts uploaded to Artifact Registry at the end of + // the build. PythonPackages []*UploadedPythonPackage `json:"pythonPackages,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArtifactManifest") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArtifactManifest") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ArtifactManifest") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Results) MarshalJSON() ([]byte, error) { +func (s Results) MarshalJSON() ([]byte, error) { type NoMethod Results - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RunWorkflowCustomOperationMetadata: Represents the custom metadata of -// the RunWorkflow long-running operation. +// RunWorkflowCustomOperationMetadata: Represents the custom metadata of the +// RunWorkflow long-running operation. type RunWorkflowCustomOperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` - // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - - // PipelineRunId: Output only. ID of the pipeline run created by - // RunWorkflow. + // PipelineRunId: Output only. ID of the pipeline run created by RunWorkflow. PipelineRunId string `json:"pipelineRunId,omitempty"` - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // requested cancellation of the operation. Operations that have successfully + // been cancelled have Operation.error value with a google.rpc.Status.code of + // 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Output only. Server-defined resource path for the target of the + // operation. Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunWorkflowCustomOperationMetadata) MarshalJSON() ([]byte, error) { +func (s RunWorkflowCustomOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod RunWorkflowCustomOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SMTPDelivery: SMTPDelivery is the delivery configuration for an SMTP -// (email) notification. +// SMTPDelivery: SMTPDelivery is the delivery configuration for an SMTP (email) +// notification. type SMTPDelivery struct { - // FromAddress: This is the SMTP account/email that appears in the - // `From:` of the email. If empty, it is assumed to be sender. + // FromAddress: This is the SMTP account/email that appears in the `From:` of + // the email. If empty, it is assumed to be sender. FromAddress string `json:"fromAddress,omitempty"` - // Password: The SMTP sender's password. Password *NotifierSecretRef `json:"password,omitempty"` - // Port: The SMTP port of the server. Port string `json:"port,omitempty"` - - // RecipientAddresses: This is the list of addresses to which we send - // the email (i.e. in the `To:` of the email). + // RecipientAddresses: This is the list of addresses to which we send the email + // (i.e. in the `To:` of the email). RecipientAddresses []string `json:"recipientAddresses,omitempty"` - - // SenderAddress: This is the SMTP account/email that is used to send - // the message. + // SenderAddress: This is the SMTP account/email that is used to send the + // message. SenderAddress string `json:"senderAddress,omitempty"` - // Server: The address of the SMTP server. Server string `json:"server,omitempty"` - // ForceSendFields is a list of field names (e.g. "FromAddress") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FromAddress") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FromAddress") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SMTPDelivery) MarshalJSON() ([]byte, error) { +func (s SMTPDelivery) MarshalJSON() ([]byte, error) { type NoMethod SMTPDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Secret: Pairs a set of secret environment variables containing -// encrypted values with the Cloud KMS key to use to decrypt the value. -// Note: Use `kmsKeyName` with `available_secrets` instead of using -// `kmsKeyName` with `secret`. For instructions see: +// Secret: Pairs a set of secret environment variables containing encrypted +// values with the Cloud KMS key to use to decrypt the value. Note: Use +// `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with +// `secret`. For instructions see: // https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. type Secret struct { // KmsKeyName: Cloud KMS key name to use to decrypt these envs. KmsKeyName string `json:"kmsKeyName,omitempty"` - - // SecretEnv: Map of environment variable name to its encrypted value. - // Secret environment variables must be unique across all of a build's - // secrets, and must be used by at least one build step. Values can be - // at most 64 KB in size. There can be at most 100 secret values across - // all of a build's secrets. + // SecretEnv: Map of environment variable name to its encrypted value. Secret + // environment variables must be unique across all of a build's secrets, and + // must be used by at least one build step. Values can be at most 64 KB in + // size. There can be at most 100 secret values across all of a build's + // secrets. SecretEnv map[string]string `json:"secretEnv,omitempty"` - // ForceSendFields is a list of field names (e.g. "KmsKeyName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KmsKeyName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "KmsKeyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Secret) MarshalJSON() ([]byte, error) { +func (s Secret) MarshalJSON() ([]byte, error) { type NoMethod Secret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SecretManagerSecret: Pairs a secret environment variable with a // SecretVersion in Secret Manager. type SecretManagerSecret struct { // Env: Environment variable name to associate with the secret. Secret - // environment variables must be unique across all of a build's secrets, - // and must be used by at least one build step. + // environment variables must be unique across all of a build's secrets, and + // must be used by at least one build step. Env string `json:"env,omitempty"` - // VersionName: Resource name of the SecretVersion. In format: // projects/*/secrets/*/versions/* VersionName string `json:"versionName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Env") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Env") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Env") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Env") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecretManagerSecret) MarshalJSON() ([]byte, error) { +func (s SecretManagerSecret) MarshalJSON() ([]byte, error) { type NoMethod SecretManagerSecret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Secrets: Secrets and secret environment variables. type Secrets struct { - // Inline: Secrets encrypted with KMS key and the associated secret - // environment variable. + // Inline: Secrets encrypted with KMS key and the associated secret environment + // variable. Inline []*InlineSecret `json:"inline,omitempty"` - - // SecretManager: Secrets in Secret Manager and associated secret - // environment variable. + // SecretManager: Secrets in Secret Manager and associated secret environment + // variable. SecretManager []*SecretManagerSecret `json:"secretManager,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Inline") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Inline") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Inline") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Secrets) MarshalJSON() ([]byte, error) { +func (s Secrets) MarshalJSON() ([]byte, error) { type NoMethod Secrets - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SlackDelivery: SlackDelivery is the delivery configuration for -// delivering Slack messages via webhooks. See Slack webhook -// documentation at: https://api.slack.com/messaging/webhooks. +// SlackDelivery: SlackDelivery is the delivery configuration for delivering +// Slack messages via webhooks. See Slack webhook documentation at: +// https://api.slack.com/messaging/webhooks. type SlackDelivery struct { - // WebhookUri: The secret reference for the Slack webhook URI for - // sending messages to a channel. + // WebhookUri: The secret reference for the Slack webhook URI for sending + // messages to a channel. WebhookUri *NotifierSecretRef `json:"webhookUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "WebhookUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "WebhookUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "WebhookUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SlackDelivery) MarshalJSON() ([]byte, error) { +func (s SlackDelivery) MarshalJSON() ([]byte, error) { type NoMethod SlackDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Source: Location of the source in a supported storage service. type Source struct { - // RepoSource: If provided, get the source from this location in a Cloud - // Source Repository. + // RepoSource: If provided, get the source from this location in a Cloud Source + // Repository. RepoSource *RepoSource `json:"repoSource,omitempty"` - - // StorageSource: If provided, get the source from this location in - // Google Cloud Storage. + // StorageSource: If provided, get the source from this location in Google + // Cloud Storage. StorageSource *StorageSource `json:"storageSource,omitempty"` - - // StorageSourceManifest: If provided, get the source from this manifest - // in Google Cloud Storage. This feature is in Preview; see description - // here + // StorageSourceManifest: If provided, get the source from this manifest in + // Google Cloud Storage. This feature is in Preview; see description here // (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). StorageSourceManifest *StorageSourceManifest `json:"storageSourceManifest,omitempty"` - // ForceSendFields is a list of field names (e.g. "RepoSource") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RepoSource") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RepoSource") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Source) MarshalJSON() ([]byte, error) { +func (s Source) MarshalJSON() ([]byte, error) { type NoMethod Source - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SourceProvenance: Provenance of the source. Ways to find the original // source, or verify that some source was used for this build. type SourceProvenance struct { - // FileHashes: Output only. Hash(es) of the build source, which can be - // used to verify that the original source integrity was maintained in - // the build. Note that `FileHashes` will only be populated if - // `BuildOptions` has requested a `SourceProvenanceHash`. The keys to - // this map are file paths used as build source and the values contain - // the hash values for those files. If the build source came in a single - // package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be - // for the single path to that file. + // FileHashes: Output only. Hash(es) of the build source, which can be used to + // verify that the original source integrity was maintained in the build. Note + // that `FileHashes` will only be populated if `BuildOptions` has requested a + // `SourceProvenanceHash`. The keys to this map are file paths used as build + // source and the values contain the hash values for those files. If the build + // source came in a single package such as a gzipped tarfile (`.tar.gz`), the + // `FileHash` will be for the single path to that file. FileHashes map[string]FileHashes `json:"fileHashes,omitempty"` - - // ResolvedRepoSource: A copy of the build's `source.repo_source`, if - // exists, with any revisions resolved. + // ResolvedRepoSource: A copy of the build's `source.repo_source`, if exists, + // with any revisions resolved. ResolvedRepoSource *RepoSource `json:"resolvedRepoSource,omitempty"` - - // ResolvedStorageSource: A copy of the build's `source.storage_source`, - // if exists, with any generations resolved. + // ResolvedStorageSource: A copy of the build's `source.storage_source`, if + // exists, with any generations resolved. ResolvedStorageSource *StorageSource `json:"resolvedStorageSource,omitempty"` - // ResolvedStorageSourceManifest: A copy of the build's - // `source.storage_source_manifest`, if exists, with any revisions - // resolved. This feature is in Preview. + // `source.storage_source_manifest`, if exists, with any revisions resolved. + // This feature is in Preview. ResolvedStorageSourceManifest *StorageSourceManifest `json:"resolvedStorageSourceManifest,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHashes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHashes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHashes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceProvenance) MarshalJSON() ([]byte, error) { +func (s SourceProvenance) MarshalJSON() ([]byte, error) { type NoMethod SourceProvenance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StorageSource: Location of the source in an archive file in Google -// Cloud Storage. +// StorageSource: Location of the source in an archive file in Google Cloud +// Storage. type StorageSource struct { - // Bucket: Google Cloud Storage bucket containing the source (see Bucket - // Name Requirements + // Bucket: Google Cloud Storage bucket containing the source (see Bucket Name + // Requirements // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Bucket string `json:"bucket,omitempty"` - // Generation: Google Cloud Storage generation for the object. If the // generation is omitted, the latest generation will be used. Generation int64 `json:"generation,omitempty,string"` - - // Object: Google Cloud Storage object containing the source. This - // object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) - // containing source to build. + // Object: Google Cloud Storage object containing the source. This object must + // be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source + // to build. Object string `json:"object,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StorageSource) MarshalJSON() ([]byte, error) { +func (s StorageSource) MarshalJSON() ([]byte, error) { type NoMethod StorageSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StorageSourceManifest: Location of the source manifest in Google -// Cloud Storage. This feature is in Preview; see description here +// StorageSourceManifest: Location of the source manifest in Google Cloud +// Storage. This feature is in Preview; see description here // (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). type StorageSourceManifest struct { - // Bucket: Google Cloud Storage bucket containing the source manifest - // (see Bucket Name Requirements + // Bucket: Google Cloud Storage bucket containing the source manifest (see + // Bucket Name Requirements // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Bucket string `json:"bucket,omitempty"` - // Generation: Google Cloud Storage generation for the object. If the // generation is omitted, the latest generation will be used. Generation int64 `json:"generation,omitempty,string"` - - // Object: Google Cloud Storage object containing the source manifest. - // This object must be a JSON file. + // Object: Google Cloud Storage object containing the source manifest. This + // object must be a JSON file. Object string `json:"object,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StorageSourceManifest) MarshalJSON() ([]byte, error) { +func (s StorageSourceManifest) MarshalJSON() ([]byte, error) { type NoMethod StorageSourceManifest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TimeSpan: Start and end times for a build execution phase. type TimeSpan struct { // EndTime: End of time span. EndTime string `json:"endTime,omitempty"` - // StartTime: Start of time span. StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimeSpan) MarshalJSON() ([]byte, error) { +func (s TimeSpan) MarshalJSON() ([]byte, error) { type NoMethod TimeSpan - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateBitbucketServerConfigOperationMetadata: Metadata for // `UpdateBitbucketServerConfig` operation. type UpdateBitbucketServerConfigOperationMetadata struct { - // BitbucketServerConfig: The resource name of the BitbucketServerConfig - // to be updated. Format: + // BitbucketServerConfig: The resource name of the BitbucketServerConfig to be + // updated. Format: // `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"` - // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConfig") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BitbucketServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateBitbucketServerConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateGitHubEnterpriseConfigOperationMetadata: Metadata for @@ -3081,345 +2455,268 @@ func (s *UpdateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, er type UpdateGitHubEnterpriseConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be updated. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // updated. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateGitHubEnterpriseConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpdateGitLabConfigOperationMetadata: Metadata for -// `UpdateGitLabConfig` operation. +// UpdateGitLabConfigOperationMetadata: Metadata for `UpdateGitLabConfig` +// operation. type UpdateGitLabConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. + // GitlabConfig: The resource name of the GitLabConfig to be created. Format: + // `projects/{project}/locations/{location}/gitlabConfigs/{id}`. GitlabConfig string `json:"gitlabConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpdateWorkerPoolOperationMetadata: Metadata for the -// `UpdateWorkerPool` operation. +// UpdateWorkerPoolOperationMetadata: Metadata for the `UpdateWorkerPool` +// operation. type UpdateWorkerPoolOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // WorkerPool: The resource name of the `WorkerPool` being updated. - // Format: + // WorkerPool: The resource name of the `WorkerPool` being updated. Format: // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateWorkerPoolOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UploadedMavenArtifact: A Maven artifact uploaded using the -// MavenArtifact directive. +// UploadedMavenArtifact: A Maven artifact uploaded using the MavenArtifact +// directive. type UploadedMavenArtifact struct { // FileHashes: Hash types and values of the Maven Artifact. FileHashes *FileHashes `json:"fileHashes,omitempty"` - - // PushTiming: Output only. Stores timing information for pushing the - // specified artifact. + // PushTiming: Output only. Stores timing information for pushing the specified + // artifact. PushTiming *TimeSpan `json:"pushTiming,omitempty"` - // Uri: URI of the uploaded artifact. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHashes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHashes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHashes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UploadedMavenArtifact) MarshalJSON() ([]byte, error) { +func (s UploadedMavenArtifact) MarshalJSON() ([]byte, error) { type NoMethod UploadedMavenArtifact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UploadedPythonPackage: Artifact uploaded using the PythonPackage -// directive. +// UploadedPythonPackage: Artifact uploaded using the PythonPackage directive. type UploadedPythonPackage struct { // FileHashes: Hash types and values of the Python Artifact. FileHashes *FileHashes `json:"fileHashes,omitempty"` - - // PushTiming: Output only. Stores timing information for pushing the - // specified artifact. + // PushTiming: Output only. Stores timing information for pushing the specified + // artifact. PushTiming *TimeSpan `json:"pushTiming,omitempty"` - // Uri: URI of the uploaded artifact. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHashes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHashes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHashes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UploadedPythonPackage) MarshalJSON() ([]byte, error) { +func (s UploadedPythonPackage) MarshalJSON() ([]byte, error) { type NoMethod UploadedPythonPackage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Volume: Volume describes a Docker container volume which is mounted -// into build steps in order to persist files across build step -// execution. +// Volume: Volume describes a Docker container volume which is mounted into +// build steps in order to persist files across build step execution. type Volume struct { - // Name: Name of the volume to mount. Volume names must be unique per - // build step and must be valid names for Docker volumes. Each named - // volume must be used by at least two build steps. + // Name: Name of the volume to mount. Volume names must be unique per build + // step and must be valid names for Docker volumes. Each named volume must be + // used by at least two build steps. Name string `json:"name,omitempty"` - - // Path: Path at which to mount the volume. Paths must be absolute and - // cannot conflict with other volume paths on the same build step or - // with certain reserved volume paths. + // Path: Path at which to mount the volume. Paths must be absolute and cannot + // conflict with other volume paths on the same build step or with certain + // reserved volume paths. Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Volume) MarshalJSON() ([]byte, error) { +func (s Volume) MarshalJSON() ([]byte, error) { type NoMethod Volume - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Warning: A non-fatal problem encountered during the execution of the -// build. +// Warning: A non-fatal problem encountered during the execution of the build. type Warning struct { // Priority: The priority for this warning. // // Possible values: // "PRIORITY_UNSPECIFIED" - Should not be used. - // "INFO" - e.g. deprecation warnings and alternative feature - // highlights. - // "WARNING" - e.g. automated detection of possible issues with the - // build. - // "ALERT" - e.g. alerts that a feature used in the build is pending - // removal + // "INFO" - e.g. deprecation warnings and alternative feature highlights. + // "WARNING" - e.g. automated detection of possible issues with the build. + // "ALERT" - e.g. alerts that a feature used in the build is pending removal Priority string `json:"priority,omitempty"` - // Text: Explanation of the warning generated. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Priority") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Priority") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Priority") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Warning) MarshalJSON() ([]byte, error) { +func (s Warning) MarshalJSON() ([]byte, error) { type NoMethod Warning - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WorkerConfig: WorkerConfig defines the configuration to be used for a // creating workers in the pool. type WorkerConfig struct { // DiskSizeGb: Size of the disk attached to the worker, in GB. See - // https://cloud.google.com/compute/docs/disks/ If `0` is specified, - // Cloud Build will use a standard disk size. `disk_size` is overridden - // if you specify a different disk size in `build_options`. In this - // case, a VM with a disk size specified in the `build_options` will be - // created on demand at build time. For more information see + // https://cloud.google.com/compute/docs/disks/ If `0` is specified, Cloud + // Build will use a standard disk size. `disk_size` is overridden if you + // specify a different disk size in `build_options`. In this case, a VM with a + // disk size specified in the `build_options` will be created on demand at + // build time. For more information see // https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.builds#buildoptions DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - // MachineType: Machine Type of the worker, such as n1-standard-1. See - // https://cloud.google.com/compute/docs/machine-types. If left blank, - // Cloud Build will use a standard unspecified machine to create the - // worker pool. `machine_type` is overridden if you specify a different - // machine type in `build_options`. In this case, the VM specified in - // the `build_options` will be created on demand at build time. For more - // information see + // https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud + // Build will use a standard unspecified machine to create the worker pool. + // `machine_type` is overridden if you specify a different machine type in + // `build_options`. In this case, the VM specified in the `build_options` will + // be created on demand at build time. For more information see // https://cloud.google.com/cloud-build/docs/speeding-up-builds#using_custom_virtual_machine_sizes MachineType string `json:"machineType,omitempty"` - - // Network: The network definition used to create the worker. If this - // section is left empty, the workers will be created in - // WorkerPool.project_id on the default network. + // Network: The network definition used to create the worker. If this section + // is left empty, the workers will be created in WorkerPool.project_id on the + // default network. Network *Network `json:"network,omitempty"` - - // Tag: The tag applied to the worker, and the same tag used by the - // firewall rule. It is used to identify the Cloud Build workers among - // other VMs. The default value for tag is `worker`. + // Tag: The tag applied to the worker, and the same tag used by the firewall + // rule. It is used to identify the Cloud Build workers among other VMs. The + // default value for tag is `worker`. Tag string `json:"tag,omitempty"` - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DiskSizeGb") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DiskSizeGb") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerConfig) MarshalJSON() ([]byte, error) { +func (s WorkerConfig) MarshalJSON() ([]byte, error) { type NoMethod WorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkerPool: Configuration for a WorkerPool to run the builds. Workers -// are machines that Cloud Build uses to run your builds. By default, -// all workers run in a project owned by Cloud Build. To have full -// control over the workers that execute your builds -- such as enabling -// them to access private resources on your private network -- you can -// request Cloud Build to run the workers in your own project by -// creating a custom workers pool. +// WorkerPool: Configuration for a WorkerPool to run the builds. Workers are +// machines that Cloud Build uses to run your builds. By default, all workers +// run in a project owned by Cloud Build. To have full control over the workers +// that execute your builds -- such as enabling them to access private +// resources on your private network -- you can request Cloud Build to run the +// workers in your own project by creating a custom workers pool. type WorkerPool struct { // CreateTime: Output only. Time at which the request to create the // `WorkerPool` was received. CreateTime string `json:"createTime,omitempty"` - // DeleteTime: Output only. Time at which the request to delete the // `WorkerPool` was received. DeleteTime string `json:"deleteTime,omitempty"` - // Name: User-defined name of the `WorkerPool`. Name string `json:"name,omitempty"` - - // ProjectId: The project ID of the GCP project for which the - // `WorkerPool` is created. + // ProjectId: The project ID of the GCP project for which the `WorkerPool` is + // created. ProjectId string `json:"projectId,omitempty"` - - // Regions: List of regions to create the `WorkerPool`. Regions can't be - // empty. If Cloud Build adds a new GCP region in the future, the - // existing `WorkerPool` will not be enabled in the new region - // automatically; you must add the new region to the `regions` field to - // enable the `WorkerPool` in that region. + // Regions: List of regions to create the `WorkerPool`. Regions can't be empty. + // If Cloud Build adds a new GCP region in the future, the existing + // `WorkerPool` will not be enabled in the new region automatically; you must + // add the new region to the `regions` field to enable the `WorkerPool` in that + // region. // // Possible values: // "REGION_UNSPECIFIED" - no region @@ -3428,64 +2725,50 @@ type WorkerPool struct { // "us-east1" - us-east1 region // "us-east4" - us-east4 region Regions []string `json:"regions,omitempty"` - - // ServiceAccountEmail: Output only. The service account used to manage - // the `WorkerPool`. The service account must have the Compute Instance - // Admin (Beta) permission at the project level. + // ServiceAccountEmail: Output only. The service account used to manage the + // `WorkerPool`. The service account must have the Compute Instance Admin + // (Beta) permission at the project level. ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` - // Status: Output only. WorkerPool Status. // // Possible values: // "STATUS_UNSPECIFIED" - Status of the `WorkerPool` is unknown. // "CREATING" - `WorkerPool` is being created. // "RUNNING" - `WorkerPool` is running. - // "DELETING" - `WorkerPool` is being deleted: cancelling builds and - // draining workers. + // "DELETING" - `WorkerPool` is being deleted: cancelling builds and draining + // workers. // "DELETED" - `WorkerPool` is deleted. Status string `json:"status,omitempty"` - // UpdateTime: Output only. Time at which the request to update the // `WorkerPool` was received. UpdateTime string `json:"updateTime,omitempty"` - // WorkerConfig: Configuration to be used for a creating workers in the // `WorkerPool`. WorkerConfig *WorkerConfig `json:"workerConfig,omitempty"` - - // WorkerCount: Total number of workers to be created across all - // requested regions. + // WorkerCount: Total number of workers to be created across all requested + // regions. WorkerCount int64 `json:"workerCount,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerPool) MarshalJSON() ([]byte, error) { +func (s WorkerPool) MarshalJSON() ([]byte, error) { type NoMethod WorkerPool - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "cloudbuild.projects.locations.operations.cancel": - type ProjectsLocationsOperationsCancelCall struct { s *Service name string @@ -3495,15 +2778,14 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. @@ -3515,23 +2797,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3540,18 +2820,12 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:cancel") @@ -3564,16 +2838,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3604,38 +2876,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "cloudbuild.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.locations.operations.get": +} type ProjectsLocationsOperationsGetCall struct { s *Service @@ -3646,9 +2887,9 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { @@ -3658,33 +2899,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3693,12 +2930,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3715,16 +2947,14 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3755,35 +2985,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "cloudbuild.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.workerPools.create": +} type ProjectsWorkerPoolsCreateCall struct { s *Service @@ -3794,8 +2996,8 @@ type ProjectsWorkerPoolsCreateCall struct { header_ http.Header } -// Create: Creates a `WorkerPool` to run the builds, and returns the new -// worker pool. +// Create: Creates a `WorkerPool` to run the builds, and returns the new worker +// pool. // // - parent: ID of the parent project. func (r *ProjectsWorkerPoolsService) Create(parent string, workerpool *WorkerPool) *ProjectsWorkerPoolsCreateCall { @@ -3806,23 +3008,21 @@ func (r *ProjectsWorkerPoolsService) Create(parent string, workerpool *WorkerPoo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkerPoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkerPoolsCreateCall) Context(ctx context.Context) *ProjectsWorkerPoolsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkerPoolsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3831,18 +3031,12 @@ func (c *ProjectsWorkerPoolsCreateCall) Header() http.Header { } func (c *ProjectsWorkerPoolsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workerpool) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/workerPools") @@ -3855,16 +3049,14 @@ func (c *ProjectsWorkerPoolsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.workerPools.create" call. -// Exactly one of *WorkerPool or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *WorkerPool.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkerPool.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsWorkerPoolsCreateCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3895,38 +3087,7 @@ func (c *ProjectsWorkerPoolsCreateCall) Do(opts ...googleapi.CallOption) (*Worke return nil, err } return ret, nil - // { - // "description": "Creates a `WorkerPool` to run the builds, and returns the new worker pool.", - // "flatPath": "v1alpha1/projects/{projectsId}/workerPools", - // "httpMethod": "POST", - // "id": "cloudbuild.projects.workerPools.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "ID of the parent project.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/workerPools", - // "request": { - // "$ref": "WorkerPool" - // }, - // "response": { - // "$ref": "WorkerPool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.workerPools.delete": +} type ProjectsWorkerPoolsDeleteCall struct { s *Service @@ -3938,8 +3099,8 @@ type ProjectsWorkerPoolsDeleteCall struct { // Delete: Deletes a `WorkerPool` by its project ID and WorkerPool name. // -// - name: The field will contain name of the resource requested, for -// example: "projects/project-1/workerPools/workerpool-name". +// - name: The field will contain name of the resource requested, for example: +// "projects/project-1/workerPools/workerpool-name". func (r *ProjectsWorkerPoolsService) Delete(name string) *ProjectsWorkerPoolsDeleteCall { c := &ProjectsWorkerPoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3947,23 +3108,21 @@ func (r *ProjectsWorkerPoolsService) Delete(name string) *ProjectsWorkerPoolsDel } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkerPoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkerPoolsDeleteCall) Context(ctx context.Context) *ProjectsWorkerPoolsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkerPoolsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3972,12 +3131,7 @@ func (c *ProjectsWorkerPoolsDeleteCall) Header() http.Header { } func (c *ProjectsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3991,16 +3145,14 @@ func (c *ProjectsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.workerPools.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsWorkerPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4031,35 +3183,7 @@ func (c *ProjectsWorkerPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty return nil, err } return ret, nil - // { - // "description": "Deletes a `WorkerPool` by its project ID and WorkerPool name.", - // "flatPath": "v1alpha1/projects/{projectsId}/workerPools/{workerPoolsId}", - // "httpMethod": "DELETE", - // "id": "cloudbuild.projects.workerPools.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The field will contain name of the resource requested, for example: \"projects/project-1/workerPools/workerpool-name\"", - // "location": "path", - // "pattern": "^projects/[^/]+/workerPools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.workerPools.get": +} type ProjectsWorkerPoolsGetCall struct { s *Service @@ -4072,8 +3196,8 @@ type ProjectsWorkerPoolsGetCall struct { // Get: Returns information about a `WorkerPool`. // -// - name: The field will contain name of the resource requested, for -// example: "projects/project-1/workerPools/workerpool-name". +// - name: The field will contain name of the resource requested, for example: +// "projects/project-1/workerPools/workerpool-name". func (r *ProjectsWorkerPoolsService) Get(name string) *ProjectsWorkerPoolsGetCall { c := &ProjectsWorkerPoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4081,33 +3205,29 @@ func (r *ProjectsWorkerPoolsService) Get(name string) *ProjectsWorkerPoolsGetCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkerPoolsGetCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsWorkerPoolsGetCall) IfNoneMatch(entityTag string) *ProjectsWorkerPoolsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkerPoolsGetCall) Context(ctx context.Context) *ProjectsWorkerPoolsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkerPoolsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4116,12 +3236,7 @@ func (c *ProjectsWorkerPoolsGetCall) Header() http.Header { } func (c *ProjectsWorkerPoolsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4138,16 +3253,14 @@ func (c *ProjectsWorkerPoolsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.workerPools.get" call. -// Exactly one of *WorkerPool or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *WorkerPool.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkerPool.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsWorkerPoolsGetCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4178,35 +3291,7 @@ func (c *ProjectsWorkerPoolsGetCall) Do(opts ...googleapi.CallOption) (*WorkerPo return nil, err } return ret, nil - // { - // "description": "Returns information about a `WorkerPool`.", - // "flatPath": "v1alpha1/projects/{projectsId}/workerPools/{workerPoolsId}", - // "httpMethod": "GET", - // "id": "cloudbuild.projects.workerPools.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The field will contain name of the resource requested, for example: \"projects/project-1/workerPools/workerpool-name\"", - // "location": "path", - // "pattern": "^projects/[^/]+/workerPools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "response": { - // "$ref": "WorkerPool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.workerPools.list": +} type ProjectsWorkerPoolsListCall struct { s *Service @@ -4227,33 +3312,29 @@ func (r *ProjectsWorkerPoolsService) List(parent string) *ProjectsWorkerPoolsLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkerPoolsListCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsWorkerPoolsListCall) IfNoneMatch(entityTag string) *ProjectsWorkerPoolsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkerPoolsListCall) Context(ctx context.Context) *ProjectsWorkerPoolsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkerPoolsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4262,12 +3343,7 @@ func (c *ProjectsWorkerPoolsListCall) Header() http.Header { } func (c *ProjectsWorkerPoolsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4284,16 +3360,15 @@ func (c *ProjectsWorkerPoolsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.workerPools.list" call. -// Exactly one of *ListWorkerPoolsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListWorkerPoolsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsWorkerPoolsListCall) Do(opts ...googleapi.CallOption) (*ListWorkerPoolsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4324,35 +3399,7 @@ func (c *ProjectsWorkerPoolsListCall) Do(opts ...googleapi.CallOption) (*ListWor return nil, err } return ret, nil - // { - // "description": "List project's `WorkerPool`s.", - // "flatPath": "v1alpha1/projects/{projectsId}/workerPools", - // "httpMethod": "GET", - // "id": "cloudbuild.projects.workerPools.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "ID of the parent project.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/workerPools", - // "response": { - // "$ref": "ListWorkerPoolsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.workerPools.patch": +} type ProjectsWorkerPoolsPatchCall struct { s *Service @@ -4365,8 +3412,8 @@ type ProjectsWorkerPoolsPatchCall struct { // Patch: Update a `WorkerPool`. // -// - name: The field will contain name of the resource requested, for -// example: "projects/project-1/workerPools/workerpool-name". +// - name: The field will contain name of the resource requested, for example: +// "projects/project-1/workerPools/workerpool-name". func (r *ProjectsWorkerPoolsService) Patch(name string, workerpool *WorkerPool) *ProjectsWorkerPoolsPatchCall { c := &ProjectsWorkerPoolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4375,23 +3422,21 @@ func (r *ProjectsWorkerPoolsService) Patch(name string, workerpool *WorkerPool) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkerPoolsPatchCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkerPoolsPatchCall) Context(ctx context.Context) *ProjectsWorkerPoolsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkerPoolsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4400,18 +3445,12 @@ func (c *ProjectsWorkerPoolsPatchCall) Header() http.Header { } func (c *ProjectsWorkerPoolsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workerpool) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") @@ -4424,16 +3463,14 @@ func (c *ProjectsWorkerPoolsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.workerPools.patch" call. -// Exactly one of *WorkerPool or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *WorkerPool.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkerPool.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsWorkerPoolsPatchCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4464,33 +3501,4 @@ func (c *ProjectsWorkerPoolsPatchCall) Do(opts ...googleapi.CallOption) (*Worker return nil, err } return ret, nil - // { - // "description": "Update a `WorkerPool`.", - // "flatPath": "v1alpha1/projects/{projectsId}/workerPools/{workerPoolsId}", - // "httpMethod": "PATCH", - // "id": "cloudbuild.projects.workerPools.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The field will contain name of the resource requested, for example: \"projects/project-1/workerPools/workerpool-name\"", - // "location": "path", - // "pattern": "^projects/[^/]+/workerPools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "request": { - // "$ref": "WorkerPool" - // }, - // "response": { - // "$ref": "WorkerPool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/cloudbuild/v1alpha2/cloudbuild-gen.go b/cloudbuild/v1alpha2/cloudbuild-gen.go index 1edbade2f03..eb26f8daf48 100644 --- a/cloudbuild/v1alpha2/cloudbuild-gen.go +++ b/cloudbuild/v1alpha2/cloudbuild-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/cloud-build/docs/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // cloudbuildService, err := cloudbuild.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // cloudbuildService, err := cloudbuild.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // cloudbuildService, err := cloudbuild.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package cloudbuild // import "google.golang.org/api/cloudbuild/v1alpha2" import ( @@ -71,17 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "cloudbuild:v1alpha2" const apiName = "cloudbuild" const apiVersion = "v1alpha2" const basePath = "https://cloudbuild.googleapis.com/" +const basePathTemplate = "https://cloudbuild.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://cloudbuild.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -93,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -182,324 +199,254 @@ type ProjectsWorkerPoolsService struct { s *Service } -// ApprovalConfig: ApprovalConfig describes configuration for manual -// approval of a build. +// ApprovalConfig: ApprovalConfig describes configuration for manual approval +// of a build. type ApprovalConfig struct { - // ApprovalRequired: Whether or not approval is needed. If this is set - // on a build, it will become pending when created, and will need to be - // explicitly approved to start. + // ApprovalRequired: Whether or not approval is needed. If this is set on a + // build, it will become pending when created, and will need to be explicitly + // approved to start. ApprovalRequired bool `json:"approvalRequired,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApprovalRequired") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalRequired") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApprovalRequired") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApprovalConfig) MarshalJSON() ([]byte, error) { +func (s ApprovalConfig) MarshalJSON() ([]byte, error) { type NoMethod ApprovalConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApprovalResult: ApprovalResult describes the decision and associated // metadata of a manual approval of a build. type ApprovalResult struct { - // ApprovalTime: Output only. The time when the approval decision was - // made. + // ApprovalTime: Output only. The time when the approval decision was made. ApprovalTime string `json:"approvalTime,omitempty"` - - // ApproverAccount: Output only. Email of the user that called the - // ApproveBuild API to approve or reject a build at the time that the - // API was called. + // ApproverAccount: Output only. Email of the user that called the ApproveBuild + // API to approve or reject a build at the time that the API was called. ApproverAccount string `json:"approverAccount,omitempty"` - - // Comment: Optional. An optional comment for this manual approval - // result. + // Comment: Optional. An optional comment for this manual approval result. Comment string `json:"comment,omitempty"` - // Decision: Required. The decision of this manual approval. // // Possible values: - // "DECISION_UNSPECIFIED" - Default enum type. This should not be - // used. + // "DECISION_UNSPECIFIED" - Default enum type. This should not be used. // "APPROVED" - Build is approved. // "REJECTED" - Build is rejected. Decision string `json:"decision,omitempty"` - - // Url: Optional. An optional URL tied to this manual approval result. - // This field is essentially the same as comment, except that it will be - // rendered by the UI differently. An example use case is a link to an - // external job that approved this Build. + // Url: Optional. An optional URL tied to this manual approval result. This + // field is essentially the same as comment, except that it will be rendered by + // the UI differently. An example use case is a link to an external job that + // approved this Build. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApprovalTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApprovalTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApprovalResult) MarshalJSON() ([]byte, error) { +func (s ApprovalResult) MarshalJSON() ([]byte, error) { type NoMethod ApprovalResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ArtifactObjects: Files in the workspace to upload to Cloud Storage -// upon successful completion of all build steps. +// ArtifactObjects: Files in the workspace to upload to Cloud Storage upon +// successful completion of all build steps. type ArtifactObjects struct { // Location: Cloud Storage bucket and optional object path, in the form // "gs://bucket/path/to/somewhere/". (see Bucket Name Requirements - // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). - // Files in the workspace matching any path pattern will be uploaded to - // Cloud Storage with this location as a prefix. + // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files + // in the workspace matching any path pattern will be uploaded to Cloud Storage + // with this location as a prefix. Location string `json:"location,omitempty"` - // Paths: Path globs used to match files in the build's workspace. Paths []string `json:"paths,omitempty"` - - // Timing: Output only. Stores timing information for pushing all - // artifact objects. + // Timing: Output only. Stores timing information for pushing all artifact + // objects. Timing *TimeSpan `json:"timing,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Location") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Location") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ArtifactObjects) MarshalJSON() ([]byte, error) { +func (s ArtifactObjects) MarshalJSON() ([]byte, error) { type NoMethod ArtifactObjects - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ArtifactResult: An artifact that was uploaded during a build. This is -// a single record in the artifact manifest JSON file. +// ArtifactResult: An artifact that was uploaded during a build. This is a +// single record in the artifact manifest JSON file. type ArtifactResult struct { // FileHash: The file hash of the artifact. FileHash []*FileHashes `json:"fileHash,omitempty"` - - // Location: The path of an artifact in a Google Cloud Storage bucket, - // with the generation number. For example, + // Location: The path of an artifact in a Google Cloud Storage bucket, with the + // generation number. For example, // `gs://mybucket/path/to/output.jar#generation`. Location string `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHash") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHash") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHash") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ArtifactResult) MarshalJSON() ([]byte, error) { +func (s ArtifactResult) MarshalJSON() ([]byte, error) { type NoMethod ArtifactResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Artifacts: Artifacts produced by a build that should be uploaded upon // successful completion of all build steps. type Artifacts struct { - // Images: A list of images to be pushed upon the successful completion - // of all build steps. The images will be pushed using the builder - // service account's credentials. The digests of the pushed images will - // be stored in the Build resource's results field. If any of the images - // fail to be pushed, the build is marked FAILURE. + // Images: A list of images to be pushed upon the successful completion of all + // build steps. The images will be pushed using the builder service account's + // credentials. The digests of the pushed images will be stored in the Build + // resource's results field. If any of the images fail to be pushed, the build + // is marked FAILURE. Images []string `json:"images,omitempty"` - // MavenArtifacts: A list of Maven artifacts to be uploaded to Artifact - // Registry upon successful completion of all build steps. Artifacts in - // the workspace matching specified paths globs will be uploaded to the - // specified Artifact Registry repository using the builder service - // account's credentials. If any artifacts fail to be pushed, the build - // is marked FAILURE. + // Registry upon successful completion of all build steps. Artifacts in the + // workspace matching specified paths globs will be uploaded to the specified + // Artifact Registry repository using the builder service account's + // credentials. If any artifacts fail to be pushed, the build is marked + // FAILURE. MavenArtifacts []*MavenArtifact `json:"mavenArtifacts,omitempty"` - - // Objects: A list of objects to be uploaded to Cloud Storage upon - // successful completion of all build steps. Files in the workspace - // matching specified paths globs will be uploaded to the specified - // Cloud Storage location using the builder service account's - // credentials. The location and generation of the uploaded objects will - // be stored in the Build resource's results field. If any objects fail - // to be pushed, the build is marked FAILURE. + // Objects: A list of objects to be uploaded to Cloud Storage upon successful + // completion of all build steps. Files in the workspace matching specified + // paths globs will be uploaded to the specified Cloud Storage location using + // the builder service account's credentials. The location and generation of + // the uploaded objects will be stored in the Build resource's results field. + // If any objects fail to be pushed, the build is marked FAILURE. Objects *ArtifactObjects `json:"objects,omitempty"` - // PythonPackages: A list of Python packages to be uploaded to Artifact - // Registry upon successful completion of all build steps. The build - // service account credentials will be used to perform the upload. If - // any objects fail to be pushed, the build is marked FAILURE. + // Registry upon successful completion of all build steps. The build service + // account credentials will be used to perform the upload. If any objects fail + // to be pushed, the build is marked FAILURE. PythonPackages []*PythonPackage `json:"pythonPackages,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Images") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Images") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Images") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Artifacts) MarshalJSON() ([]byte, error) { +func (s Artifacts) MarshalJSON() ([]byte, error) { type NoMethod Artifacts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateBitbucketServerConnectedRepositoriesResponse: Response of -// BatchCreateBitbucketServerConnectedRepositories RPC method including -// all successfully connected Bitbucket Server repositories. +// BatchCreateBitbucketServerConnectedRepositories RPC method including all +// successfully connected Bitbucket Server repositories. type BatchCreateBitbucketServerConnectedRepositoriesResponse struct { // BitbucketServerConnectedRepositories: The connected Bitbucket Server // repositories. BitbucketServerConnectedRepositories []*BitbucketServerConnectedRepository `json:"bitbucketServerConnectedRepositories,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConnectedRepositories") to unconditionally include in - // API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "BitbucketServerConnectedRepositories") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "BitbucketServerConnectedRepositories") to include in API requests - // with the JSON null value. By default, fields with empty values are - // omitted from API requests. However, any field with an empty value - // appearing in NullFields will be sent to the server as null. It is an - // error if a field in this list has a non-empty value. This may be used - // to include null fields in Patch requests. + // "BitbucketServerConnectedRepositories") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } -func (s *BatchCreateBitbucketServerConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { +func (s BatchCreateBitbucketServerConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateBitbucketServerConnectedRepositoriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata: -// Metadata for `BatchCreateBitbucketServerConnectedRepositories` -// operation. +// BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata: Metadata +// for `BatchCreateBitbucketServerConnectedRepositories` operation. type BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // Config: The name of the `BitbucketServerConfig` that added connected // repositories. Format: - // `projects/{project}/locations/{location}/bitbucketServerConfigs/{confi - // g}` + // `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` Config string `json:"config,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { +func (s BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateGitLabConnectedRepositoriesResponse: Response of // BatchCreateGitLabConnectedRepositories RPC method. type BatchCreateGitLabConnectedRepositoriesResponse struct { - // GitlabConnectedRepositories: The GitLab connected repository - // requests' responses. + // GitlabConnectedRepositories: The GitLab connected repository requests' + // responses. GitlabConnectedRepositories []*GitLabConnectedRepository `json:"gitlabConnectedRepositories,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "GitlabConnectedRepositories") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "GitlabConnectedRepositories") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "GitlabConnectedRepositories") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "GitlabConnectedRepositories") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateGitLabConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { +func (s BatchCreateGitLabConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateGitLabConnectedRepositoriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateGitLabConnectedRepositoriesResponseMetadata: Metadata for @@ -507,36 +454,27 @@ func (s *BatchCreateGitLabConnectedRepositoriesResponse) MarshalJSON() ([]byte, type BatchCreateGitLabConnectedRepositoriesResponseMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - - // Config: The name of the `GitLabConfig` that added connected - // repositories. Format: - // `projects/{project}/locations/{location}/gitLabConfigs/{config}` + // Config: The name of the `GitLabConfig` that added connected repositories. + // Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` Config string `json:"config,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateGitLabConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { +func (s BatchCreateGitLabConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateGitLabConnectedRepositoriesResponseMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateRepositoriesResponse: Message for response of creating @@ -544,219 +482,168 @@ func (s *BatchCreateGitLabConnectedRepositoriesResponseMetadata) MarshalJSON() ( type BatchCreateRepositoriesResponse struct { // Repositories: Repository resources created. Repositories []*Repository `json:"repositories,omitempty"` - // ForceSendFields is a list of field names (e.g. "Repositories") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Repositories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Repositories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateRepositoriesResponse) MarshalJSON() ([]byte, error) { +func (s BatchCreateRepositoriesResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateRepositoriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BitbucketServerConnectedRepository: / -// BitbucketServerConnectedRepository represents a connected Bitbucket -// Server / repository. +// BitbucketServerConnectedRepository: / BitbucketServerConnectedRepository +// represents a connected Bitbucket Server / repository. type BitbucketServerConnectedRepository struct { // Parent: The name of the `BitbucketServerConfig` that added connected // repository. Format: - // `projects/{project}/locations/{location}/bitbucketServerConfigs/{confi - // g}` + // `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` Parent string `json:"parent,omitempty"` - // Repo: The Bitbucket Server repositories to connect. Repo *BitbucketServerRepositoryId `json:"repo,omitempty"` - // Status: Output only. The status of the repo connection request. Status *Status `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BitbucketServerConnectedRepository) MarshalJSON() ([]byte, error) { +func (s BitbucketServerConnectedRepository) MarshalJSON() ([]byte, error) { type NoMethod BitbucketServerConnectedRepository - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BitbucketServerRepositoryId: BitbucketServerRepositoryId identifies a // specific repository hosted on a Bitbucket Server. type BitbucketServerRepositoryId struct { - // ProjectKey: Required. Identifier for the project storing the - // repository. + // ProjectKey: Required. Identifier for the project storing the repository. ProjectKey string `json:"projectKey,omitempty"` - // RepoSlug: Required. Identifier for the repository. RepoSlug string `json:"repoSlug,omitempty"` - - // WebhookId: Output only. The ID of the webhook that was created for - // receiving events from this repo. We only create and manage a single - // webhook for each repo. + // WebhookId: Output only. The ID of the webhook that was created for receiving + // events from this repo. We only create and manage a single webhook for each + // repo. WebhookId int64 `json:"webhookId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectKey") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProjectKey") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProjectKey") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BitbucketServerRepositoryId) MarshalJSON() ([]byte, error) { +func (s BitbucketServerRepositoryId) MarshalJSON() ([]byte, error) { type NoMethod BitbucketServerRepositoryId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Build: A build resource in the Cloud Build API. At a high level, a -// `Build` describes where to find source code, how to build it (for -// example, the builder image to run on the source), and where to store -// the built artifacts. Fields can include the following variables, -// which will be expanded when the build is created: - $PROJECT_ID: the -// project ID of the build. - $PROJECT_NUMBER: the project number of the -// build. - $LOCATION: the location/region of the build. - $BUILD_ID: -// the autogenerated ID of the build. - $REPO_NAME: the source -// repository name specified by RepoSource. - $BRANCH_NAME: the branch -// name specified by RepoSource. - $TAG_NAME: the tag name specified by -// RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified -// by RepoSource or resolved from the specified branch or tag. - + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Build: A build resource in the Cloud Build API. At a high level, a `Build` +// describes where to find source code, how to build it (for example, the +// builder image to run on the source), and where to store the built artifacts. +// Fields can include the following variables, which will be expanded when the +// build is created: - $PROJECT_ID: the project ID of the build. - +// $PROJECT_NUMBER: the project number of the build. - $LOCATION: the +// location/region of the build. - $BUILD_ID: the autogenerated ID of the +// build. - $REPO_NAME: the source repository name specified by RepoSource. - +// $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag +// name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA +// specified by RepoSource or resolved from the specified branch or tag. - // $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. type Build struct { // Approval: Output only. Describes this build's approval configuration, // status, and result. Approval *BuildApproval `json:"approval,omitempty"` - - // Artifacts: Artifacts produced by the build that should be uploaded - // upon successful completion of all build steps. + // Artifacts: Artifacts produced by the build that should be uploaded upon + // successful completion of all build steps. Artifacts *Artifacts `json:"artifacts,omitempty"` - // AvailableSecrets: Secrets and secret environment variables. AvailableSecrets *Secrets `json:"availableSecrets,omitempty"` - - // BuildTriggerId: Output only. The ID of the `BuildTrigger` that - // triggered this build, if it was triggered automatically. + // BuildTriggerId: Output only. The ID of the `BuildTrigger` that triggered + // this build, if it was triggered automatically. BuildTriggerId string `json:"buildTriggerId,omitempty"` - - // CreateTime: Output only. Time at which the request to create the - // build was received. + // CreateTime: Output only. Time at which the request to create the build was + // received. CreateTime string `json:"createTime,omitempty"` - // FailureInfo: Output only. Contains information about the build when // status=FAILURE. FailureInfo *FailureInfo `json:"failureInfo,omitempty"` - - // FinishTime: Output only. Time at which execution of the build was - // finished. The difference between finish_time and start_time is the - // duration of the build's execution. + // FinishTime: Output only. Time at which execution of the build was finished. + // The difference between finish_time and start_time is the duration of the + // build's execution. FinishTime string `json:"finishTime,omitempty"` - // Id: Output only. Unique identifier of the build. Id string `json:"id,omitempty"` - - // Images: A list of images to be pushed upon the successful completion - // of all build steps. The images are pushed using the builder service - // account's credentials. The digests of the pushed images will be - // stored in the `Build` resource's results field. If any of the images - // fail to be pushed, the build status is marked `FAILURE`. + // Images: A list of images to be pushed upon the successful completion of all + // build steps. The images are pushed using the builder service account's + // credentials. The digests of the pushed images will be stored in the `Build` + // resource's results field. If any of the images fail to be pushed, the build + // status is marked `FAILURE`. Images []string `json:"images,omitempty"` - - // LogUrl: Output only. URL to logs for this build in Google Cloud - // Console. + // LogUrl: Output only. URL to logs for this build in Google Cloud Console. LogUrl string `json:"logUrl,omitempty"` - - // LogsBucket: Google Cloud Storage bucket where logs should be written - // (see Bucket Name Requirements - // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). - // Logs file names will be of the format - // `${logs_bucket}/log-${build_id}.txt`. + // LogsBucket: Google Cloud Storage bucket where logs should be written (see + // Bucket Name Requirements + // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs + // file names will be of the format `${logs_bucket}/log-${build_id}.txt`. LogsBucket string `json:"logsBucket,omitempty"` - // Name: Output only. The 'Build' name with format: - // `projects/{project}/locations/{location}/builds/{build}`, where - // {build} is a unique identifier generated by the service. + // `projects/{project}/locations/{location}/builds/{build}`, where {build} is a + // unique identifier generated by the service. Name string `json:"name,omitempty"` - // Options: Special options for this build. Options *BuildOptions `json:"options,omitempty"` - // ProjectId: Output only. ID of the project. ProjectId string `json:"projectId,omitempty"` - - // QueueTtl: TTL in queue for this build. If provided and the build is - // enqueued longer than this value, the build will expire and the build - // status will be `EXPIRED`. The TTL starts ticking from create_time. + // QueueTtl: TTL in queue for this build. If provided and the build is enqueued + // longer than this value, the build will expire and the build status will be + // `EXPIRED`. The TTL starts ticking from create_time. QueueTtl string `json:"queueTtl,omitempty"` - // Results: Output only. Results of the build. Results *Results `json:"results,omitempty"` - - // Secrets: Secrets to decrypt using Cloud Key Management Service. Note: - // Secret Manager is the recommended technique for managing sensitive - // data with Cloud Build. Use `available_secrets` to configure builds to - // access secrets from Secret Manager. For instructions, see: + // Secrets: Secrets to decrypt using Cloud Key Management Service. Note: Secret + // Manager is the recommended technique for managing sensitive data with Cloud + // Build. Use `available_secrets` to configure builds to access secrets from + // Secret Manager. For instructions, see: // https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets Secrets []*Secret `json:"secrets,omitempty"` - - // ServiceAccount: IAM service account whose credentials will be used at - // build runtime. Must be of the format - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be - // email address or uniqueId of the service account. + // ServiceAccount: IAM service account whose credentials will be used at build + // runtime. Must be of the format + // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email + // address or uniqueId of the service account. ServiceAccount string `json:"serviceAccount,omitempty"` - // Source: The location of the source files to build. Source *Source `json:"source,omitempty"` - - // SourceProvenance: Output only. A permanent fixed identifier for - // source. + // SourceProvenance: Output only. A permanent fixed identifier for source. SourceProvenance *SourceProvenance `json:"sourceProvenance,omitempty"` - - // StartTime: Output only. Time at which execution of the build was - // started. + // StartTime: Output only. Time at which execution of the build was started. StartTime string `json:"startTime,omitempty"` - // Status: Output only. Status of the build. // // Possible values: // "STATUS_UNKNOWN" - Status of the build is unknown. - // "PENDING" - Build has been created and is pending execution and - // queuing. It has not been queued. + // "PENDING" - Build has been created and is pending execution and queuing. + // It has not been queued. // "QUEUED" - Build or step is queued; work has not yet begun. // "WORKING" - Build or step is being executed. // "SUCCESS" - Build or step finished successfully. @@ -764,73 +651,57 @@ type Build struct { // "INTERNAL_ERROR" - Build or step failed due to an internal cause. // "TIMEOUT" - Build or step took longer than was allowed. // "CANCELLED" - Build or step was canceled by a user. - // "EXPIRED" - Build was enqueued for longer than the value of - // `queue_ttl`. + // "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`. Status string `json:"status,omitempty"` - - // StatusDetail: Output only. Customer-readable message about the - // current status. + // StatusDetail: Output only. Customer-readable message about the current + // status. StatusDetail string `json:"statusDetail,omitempty"` - // Steps: Required. The operations to be performed on the workspace. Steps []*BuildStep `json:"steps,omitempty"` - // Substitutions: Substitutions data for `Build` resource. Substitutions map[string]string `json:"substitutions,omitempty"` - // Tags: Tags for annotation of a `Build`. These are not docker tags. Tags []string `json:"tags,omitempty"` - - // Timeout: Amount of time that this build should be allowed to run, to - // second granularity. If this amount of time elapses, work on the build - // will cease and the build status will be `TIMEOUT`. `timeout` starts - // ticking from `startTime`. Default time is ten minutes. + // Timeout: Amount of time that this build should be allowed to run, to second + // granularity. If this amount of time elapses, work on the build will cease + // and the build status will be `TIMEOUT`. `timeout` starts ticking from + // `startTime`. Default time is ten minutes. Timeout string `json:"timeout,omitempty"` - - // Timing: Output only. Stores timing information for phases of the - // build. Valid keys are: * BUILD: time to execute all build steps. * - // PUSH: time to push all artifacts including docker images and non - // docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: - // time to set up build. If the build does not specify source or images, - // these keys will not be included. + // Timing: Output only. Stores timing information for phases of the build. + // Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to + // push all artifacts including docker images and non docker artifacts. * + // FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If + // the build does not specify source or images, these keys will not be + // included. Timing map[string]TimeSpan `json:"timing,omitempty"` - - // Warnings: Output only. Non-fatal problems encountered during the - // execution of the build. + // Warnings: Output only. Non-fatal problems encountered during the execution + // of the build. Warnings []*Warning `json:"warnings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Approval") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Approval") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Approval") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Build) MarshalJSON() ([]byte, error) { +func (s Build) MarshalJSON() ([]byte, error) { type NoMethod Build - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildApproval: BuildApproval describes a build's approval -// configuration, state, and result. +// BuildApproval: BuildApproval describes a build's approval configuration, +// state, and result. type BuildApproval struct { // Config: Output only. Configuration for manual approval of this build. Config *ApprovalConfig `json:"config,omitempty"` - // Result: Output only. Result of manual approval for this Build. Result *ApprovalResult `json:"result,omitempty"` - // State: Output only. The state of this build's approval. // // Possible values: @@ -838,115 +709,92 @@ type BuildApproval struct { // "PENDING" - Build approval is pending. // "APPROVED" - Build approval has been approved. // "REJECTED" - Build approval has been rejected. - // "CANCELLED" - Build was cancelled while it was still pending - // approval. + // "CANCELLED" - Build was cancelled while it was still pending approval. State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildApproval) MarshalJSON() ([]byte, error) { +func (s BuildApproval) MarshalJSON() ([]byte, error) { type NoMethod BuildApproval - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildOperationMetadata: Metadata for build operations. type BuildOperationMetadata struct { // Build: The build that the operation is tracking. Build *Build `json:"build,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Build") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Build") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Build") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildOperationMetadata) MarshalJSON() ([]byte, error) { +func (s BuildOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildOptions: Optional arguments to enable specific features of -// builds. +// BuildOptions: Optional arguments to enable specific features of builds. type BuildOptions struct { - // DiskSizeGb: Requested disk size for the VM that runs the build. Note - // that this is *NOT* "disk free"; some of the space will be used by the - // operating system and build utilities. Also note that this is the - // minimum disk size that will be allocated for the build -- the build - // may run with a larger disk than requested. At present, the maximum - // disk size is 2000GB; builds that request more than the maximum are - // rejected with an error. + // DiskSizeGb: Requested disk size for the VM that runs the build. Note that + // this is *NOT* "disk free"; some of the space will be used by the operating + // system and build utilities. Also note that this is the minimum disk size + // that will be allocated for the build -- the build may run with a larger disk + // than requested. At present, the maximum disk size is 2000GB; builds that + // request more than the maximum are rejected with an error. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // DynamicSubstitutions: Option to specify whether or not to apply bash - // style string operations to the substitutions. NOTE: this is always - // enabled for triggered builds and cannot be overridden in the build - // configuration file. + // DynamicSubstitutions: Option to specify whether or not to apply bash style + // string operations to the substitutions. NOTE: this is always enabled for + // triggered builds and cannot be overridden in the build configuration file. DynamicSubstitutions bool `json:"dynamicSubstitutions,omitempty"` - - // Env: A list of global environment variable definitions that will - // exist for all build steps in this build. If a variable is defined in - // both globally and in a build step, the variable will use the build - // step value. The elements are of the form "KEY=VALUE" for the - // environment variable "KEY" being given the value "VALUE". + // Env: A list of global environment variable definitions that will exist for + // all build steps in this build. If a variable is defined in both globally and + // in a build step, the variable will use the build step value. The elements + // are of the form "KEY=VALUE" for the environment variable "KEY" being given + // the value "VALUE". Env []string `json:"env,omitempty"` - - // LogStreamingOption: Option to define build log streaming behavior to - // Google Cloud Storage. + // LogStreamingOption: Option to define build log streaming behavior to Google + // Cloud Storage. // // Possible values: - // "STREAM_DEFAULT" - Service may automatically determine build log - // streaming behavior. - // "STREAM_ON" - Build logs should be streamed to Google Cloud - // Storage. - // "STREAM_OFF" - Build logs should not be streamed to Google Cloud - // Storage; they will be written when the build is completed. + // "STREAM_DEFAULT" - Service may automatically determine build log streaming + // behavior. + // "STREAM_ON" - Build logs should be streamed to Google Cloud Storage. + // "STREAM_OFF" - Build logs should not be streamed to Google Cloud Storage; + // they will be written when the build is completed. LogStreamingOption string `json:"logStreamingOption,omitempty"` - - // Logging: Option to specify the logging mode, which determines if and - // where build logs are stored. + // Logging: Option to specify the logging mode, which determines if and where + // build logs are stored. // // Possible values: - // "LOGGING_UNSPECIFIED" - The service determines the logging mode. - // The default is `LEGACY`. Do not rely on the default logging behavior - // as it may change in the future. - // "LEGACY" - Build logs are stored in Cloud Logging and Cloud - // Storage. + // "LOGGING_UNSPECIFIED" - The service determines the logging mode. The + // default is `LEGACY`. Do not rely on the default logging behavior as it may + // change in the future. + // "LEGACY" - Build logs are stored in Cloud Logging and Cloud Storage. // "GCS_ONLY" - Build logs are stored in Cloud Storage. // "STACKDRIVER_ONLY" - This option is the same as CLOUD_LOGGING_ONLY. - // "CLOUD_LOGGING_ONLY" - Build logs are stored in Cloud Logging. - // Selecting this option will not allow [logs + // "CLOUD_LOGGING_ONLY" - Build logs are stored in Cloud Logging. Selecting + // this option will not allow [logs // streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). // "NONE" - Turn off all logging. No build logs will be captured. Logging string `json:"logging,omitempty"` - // MachineType: Compute Engine machine type on which to run the build. // // Possible values: @@ -956,26 +804,22 @@ type BuildOptions struct { // "E2_HIGHCPU_8" - Highcpu e2 machine with 8 CPUs. // "E2_HIGHCPU_32" - Highcpu e2 machine with 32 CPUs. MachineType string `json:"machineType,omitempty"` - - // Pool: Optional. Specification for execution on a `WorkerPool`. See - // running builds in a private pool + // Pool: Optional. Specification for execution on a `WorkerPool`. See running + // builds in a private pool // (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) // for more information. Pool *PoolOption `json:"pool,omitempty"` - // RequestedVerifyOption: Requested verifiability options. // // Possible values: // "NOT_VERIFIED" - Not a verifiable build (the default). // "VERIFIED" - Build must be verified. RequestedVerifyOption string `json:"requestedVerifyOption,omitempty"` - - // SecretEnv: A list of global environment variables, which are - // encrypted using a Cloud Key Management Service crypto key. These - // values must be specified in the build's `Secret`. These variables - // will be available to all build steps in this build. + // SecretEnv: A list of global environment variables, which are encrypted using + // a Cloud Key Management Service crypto key. These values must be specified in + // the build's `Secret`. These variables will be available to all build steps + // in this build. SecretEnv []string `json:"secretEnv,omitempty"` - // SourceProvenanceHash: Requested hash for SourceProvenance. // // Possible values: @@ -983,138 +827,112 @@ type BuildOptions struct { // "SHA256" - Use a sha256 hash. // "MD5" - Use a md5 hash. SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"` - - // SubstitutionOption: Option to specify behavior when there is an error - // in the substitution checks. NOTE: this is always set to ALLOW_LOOSE - // for triggered builds and cannot be overridden in the build - // configuration file. + // SubstitutionOption: Option to specify behavior when there is an error in the + // substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered + // builds and cannot be overridden in the build configuration file. // // Possible values: - // "MUST_MATCH" - Fails the build if error in substitutions checks, - // like missing a substitution in the template or in the map. - // "ALLOW_LOOSE" - Do not fail the build if error in substitutions - // checks. + // "MUST_MATCH" - Fails the build if error in substitutions checks, like + // missing a substitution in the template or in the map. + // "ALLOW_LOOSE" - Do not fail the build if error in substitutions checks. SubstitutionOption string `json:"substitutionOption,omitempty"` - - // Volumes: Global list of volumes to mount for ALL build steps Each - // volume is created as an empty volume prior to starting the build - // process. Upon completion of the build, volumes and their contents are - // discarded. Global volume names and paths cannot conflict with the - // volumes defined a build step. Using a global volume in a build with - // only one step is not valid as it is indicative of a build request - // with an incorrect configuration. + // Volumes: Global list of volumes to mount for ALL build steps Each volume is + // created as an empty volume prior to starting the build process. Upon + // completion of the build, volumes and their contents are discarded. Global + // volume names and paths cannot conflict with the volumes defined a build + // step. Using a global volume in a build with only one step is not valid as it + // is indicative of a build request with an incorrect configuration. Volumes []*Volume `json:"volumes,omitempty"` - // WorkerPool: This field deprecated; please use `pool.name` instead. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DiskSizeGb") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DiskSizeGb") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildOptions) MarshalJSON() ([]byte, error) { +func (s BuildOptions) MarshalJSON() ([]byte, error) { type NoMethod BuildOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildStep: A step in the build pipeline. type BuildStep struct { - // AllowExitCodes: Allow this build step to fail without failing the - // entire build if and only if the exit code is one of the specified - // codes. If allow_failure is also specified, this field will take - // precedence. + // AllowExitCodes: Allow this build step to fail without failing the entire + // build if and only if the exit code is one of the specified codes. If + // allow_failure is also specified, this field will take precedence. AllowExitCodes []int64 `json:"allowExitCodes,omitempty"` - - // AllowFailure: Allow this build step to fail without failing the - // entire build. If false, the entire build will fail if this step - // fails. Otherwise, the build will succeed, but this step will still - // have a failure status. Error information will be reported in the - // failure_detail field. + // AllowFailure: Allow this build step to fail without failing the entire + // build. If false, the entire build will fail if this step fails. Otherwise, + // the build will succeed, but this step will still have a failure status. + // Error information will be reported in the failure_detail field. AllowFailure bool `json:"allowFailure,omitempty"` - - // Args: A list of arguments that will be presented to the step when it - // is started. If the image used to run the step's container has an - // entrypoint, the `args` are used as arguments to that entrypoint. If - // the image does not define an entrypoint, the first element in args is - // used as the entrypoint, and the remainder will be used as arguments. + // Args: A list of arguments that will be presented to the step when it is + // started. If the image used to run the step's container has an entrypoint, + // the `args` are used as arguments to that entrypoint. If the image does not + // define an entrypoint, the first element in args is used as the entrypoint, + // and the remainder will be used as arguments. Args []string `json:"args,omitempty"` - - // Dir: Working directory to use when running this step's container. If - // this value is a relative path, it is relative to the build's working - // directory. If this value is absolute, it may be outside the build's - // working directory, in which case the contents of the path may not be - // persisted across build step executions, unless a `volume` for that - // path is specified. If the build specifies a `RepoSource` with `dir` - // and a step with a `dir`, which specifies an absolute path, the - // `RepoSource` `dir` is ignored for the step's execution. + // Dir: Working directory to use when running this step's container. If this + // value is a relative path, it is relative to the build's working directory. + // If this value is absolute, it may be outside the build's working directory, + // in which case the contents of the path may not be persisted across build + // step executions, unless a `volume` for that path is specified. If the build + // specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies + // an absolute path, the `RepoSource` `dir` is ignored for the step's + // execution. Dir string `json:"dir,omitempty"` - - // Entrypoint: Entrypoint to be used instead of the build step image's - // default entrypoint. If unset, the image's default entrypoint is used. + // Entrypoint: Entrypoint to be used instead of the build step image's default + // entrypoint. If unset, the image's default entrypoint is used. Entrypoint string `json:"entrypoint,omitempty"` - - // Env: A list of environment variable definitions to be used when - // running a step. The elements are of the form "KEY=VALUE" for the - // environment variable "KEY" being given the value "VALUE". + // Env: A list of environment variable definitions to be used when running a + // step. The elements are of the form "KEY=VALUE" for the environment variable + // "KEY" being given the value "VALUE". Env []string `json:"env,omitempty"` - // ExitCode: Output only. Return code from running the step. ExitCode int64 `json:"exitCode,omitempty"` - - // Id: Unique identifier for this build step, used in `wait_for` to - // reference this build step as a dependency. + // Id: Unique identifier for this build step, used in `wait_for` to reference + // this build step as a dependency. Id string `json:"id,omitempty"` - // Name: Required. The name of the container image that will run this // particular build step. If the image is available in the host's Docker - // daemon's cache, it will be run directly. If not, the host will - // attempt to pull the image first, using the builder service account's - // credentials if necessary. The Docker daemon's cache will already have - // the latest versions of all of the officially supported build steps + // daemon's cache, it will be run directly. If not, the host will attempt to + // pull the image first, using the builder service account's credentials if + // necessary. The Docker daemon's cache will already have the latest versions + // of all of the officially supported build steps // (https://github.com/GoogleCloudPlatform/cloud-builders - // (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker - // daemon will also have cached many of the layers for some popular - // images, like "ubuntu", "debian", but they will be refreshed at the - // time you attempt to use them. If you built an image in a previous - // build step, it will be stored in the host's Docker daemon's cache and - // is available to use as the name for a later build step. + // (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon + // will also have cached many of the layers for some popular images, like + // "ubuntu", "debian", but they will be refreshed at the time you attempt to + // use them. If you built an image in a previous build step, it will be stored + // in the host's Docker daemon's cache and is available to use as the name for + // a later build step. Name string `json:"name,omitempty"` - - // PullTiming: Output only. Stores timing information for pulling this - // build step's builder image only. + // PullTiming: Output only. Stores timing information for pulling this build + // step's builder image only. PullTiming *TimeSpan `json:"pullTiming,omitempty"` - - // Script: A shell script to be executed in the step. When script is - // provided, the user cannot specify the entrypoint or args. + // Script: A shell script to be executed in the step. When script is provided, + // the user cannot specify the entrypoint or args. Script string `json:"script,omitempty"` - - // SecretEnv: A list of environment variables which are encrypted using - // a Cloud Key Management Service crypto key. These values must be - // specified in the build's `Secret`. + // SecretEnv: A list of environment variables which are encrypted using a Cloud + // Key Management Service crypto key. These values must be specified in the + // build's `Secret`. SecretEnv []string `json:"secretEnv,omitempty"` - - // Status: Output only. Status of the build step. At this time, build - // step status is only updated on build completion; step status is not - // updated in real-time as the build progresses. + // Status: Output only. Status of the build step. At this time, build step + // status is only updated on build completion; step status is not updated in + // real-time as the build progresses. // // Possible values: // "STATUS_UNKNOWN" - Status of the build is unknown. - // "PENDING" - Build has been created and is pending execution and - // queuing. It has not been queued. + // "PENDING" - Build has been created and is pending execution and queuing. + // It has not been queued. // "QUEUED" - Build or step is queued; work has not yet begun. // "WORKING" - Build or step is being executed. // "SUCCESS" - Build or step finished successfully. @@ -1122,135 +940,104 @@ type BuildStep struct { // "INTERNAL_ERROR" - Build or step failed due to an internal cause. // "TIMEOUT" - Build or step took longer than was allowed. // "CANCELLED" - Build or step was canceled by a user. - // "EXPIRED" - Build was enqueued for longer than the value of - // `queue_ttl`. + // "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`. Status string `json:"status,omitempty"` - - // Timeout: Time limit for executing this build step. If not defined, - // the step has no time limit and will be allowed to continue to run - // until either it completes or the build itself times out. + // Timeout: Time limit for executing this build step. If not defined, the step + // has no time limit and will be allowed to continue to run until either it + // completes or the build itself times out. Timeout string `json:"timeout,omitempty"` - - // Timing: Output only. Stores timing information for executing this - // build step. + // Timing: Output only. Stores timing information for executing this build + // step. Timing *TimeSpan `json:"timing,omitempty"` - // Volumes: List of volumes to mount into the build step. Each volume is // created as an empty volume prior to execution of the build step. Upon - // completion of the build, volumes and their contents are discarded. - // Using a named volume in only one step is not valid as it is - // indicative of a build request with an incorrect configuration. + // completion of the build, volumes and their contents are discarded. Using a + // named volume in only one step is not valid as it is indicative of a build + // request with an incorrect configuration. Volumes []*Volume `json:"volumes,omitempty"` - - // WaitFor: The ID(s) of the step(s) that this build step depends on. - // This build step will not start until all the build steps in - // `wait_for` have completed successfully. If `wait_for` is empty, this - // build step will start when all previous build steps in the - // `Build.Steps` list have completed successfully. + // WaitFor: The ID(s) of the step(s) that this build step depends on. This + // build step will not start until all the build steps in `wait_for` have + // completed successfully. If `wait_for` is empty, this build step will start + // when all previous build steps in the `Build.Steps` list have completed + // successfully. WaitFor []string `json:"waitFor,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowExitCodes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowExitCodes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowExitCodes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildStep) MarshalJSON() ([]byte, error) { +func (s BuildStep) MarshalJSON() ([]byte, error) { type NoMethod BuildStep - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuiltImage: An image built by the pipeline. type BuiltImage struct { // Digest: Docker Registry 2.0 digest. Digest string `json:"digest,omitempty"` - - // Name: Name used to push the container image to Google Container - // Registry, as presented to `docker push`. + // Name: Name used to push the container image to Google Container Registry, as + // presented to `docker push`. Name string `json:"name,omitempty"` - - // PushTiming: Output only. Stores timing information for pushing the - // specified image. + // PushTiming: Output only. Stores timing information for pushing the specified + // image. PushTiming *TimeSpan `json:"pushTiming,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuiltImage) MarshalJSON() ([]byte, error) { +func (s BuiltImage) MarshalJSON() ([]byte, error) { type NoMethod BuiltImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. +// CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } // CreateBitbucketServerConfigOperationMetadata: Metadata for // `CreateBitbucketServerConfig` operation. type CreateBitbucketServerConfigOperationMetadata struct { - // BitbucketServerConfig: The resource name of the BitbucketServerConfig - // to be created. Format: + // BitbucketServerConfig: The resource name of the BitbucketServerConfig to be + // created. Format: // `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"` - // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConfig") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BitbucketServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateBitbucketServerConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateGitHubEnterpriseConfigOperationMetadata: Metadata for @@ -1258,148 +1045,113 @@ func (s *CreateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, er type CreateGitHubEnterpriseConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be created. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // created. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateGitHubEnterpriseConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreateGitLabConfigOperationMetadata: Metadata for -// `CreateGitLabConfig` operation. +// CreateGitLabConfigOperationMetadata: Metadata for `CreateGitLabConfig` +// operation. type CreateGitLabConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. + // GitlabConfig: The resource name of the GitLabConfig to be created. Format: + // `projects/{project}/locations/{location}/gitlabConfigs/{id}`. GitlabConfig string `json:"gitlabConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreateWorkerPoolOperationMetadata: Metadata for the -// `CreateWorkerPool` operation. +// CreateWorkerPoolOperationMetadata: Metadata for the `CreateWorkerPool` +// operation. type CreateWorkerPoolOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - // WorkerPool: The resource name of the `WorkerPool` to create. Format: // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateWorkerPoolOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeleteBitbucketServerConfigOperationMetadata: Metadata for // `DeleteBitbucketServerConfig` operation. type DeleteBitbucketServerConfigOperationMetadata struct { - // BitbucketServerConfig: The resource name of the BitbucketServerConfig - // to be deleted. Format: + // BitbucketServerConfig: The resource name of the BitbucketServerConfig to be + // deleted. Format: // `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"` - // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConfig") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BitbucketServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteBitbucketServerConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeleteGitHubEnterpriseConfigOperationMetadata: Metadata for @@ -1407,130 +1159,99 @@ func (s *DeleteBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, er type DeleteGitHubEnterpriseConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be deleted. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // deleted. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteGitHubEnterpriseConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeleteGitLabConfigOperationMetadata: Metadata for -// `DeleteGitLabConfig` operation. +// DeleteGitLabConfigOperationMetadata: Metadata for `DeleteGitLabConfig` +// operation. type DeleteGitLabConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. + // GitlabConfig: The resource name of the GitLabConfig to be created. Format: + // `projects/{project}/locations/{location}/gitlabConfigs/{id}`. GitlabConfig string `json:"gitlabConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeleteWorkerPoolOperationMetadata: Metadata for the -// `DeleteWorkerPool` operation. +// DeleteWorkerPoolOperationMetadata: Metadata for the `DeleteWorkerPool` +// operation. type DeleteWorkerPoolOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // WorkerPool: The resource name of the `WorkerPool` being deleted. - // Format: + // WorkerPool: The resource name of the `WorkerPool` being deleted. Format: // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteWorkerPoolOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// FailureInfo: A fatal problem encountered during the execution of the -// build. +// FailureInfo: A fatal problem encountered during the execution of the build. type FailureInfo struct { - // Detail: Explains the failure issue in more detail using hard-coded - // text. + // Detail: Explains the failure issue in more detail using hard-coded text. Detail string `json:"detail,omitempty"` - // Type: The name of the failure. // // Possible values: @@ -1542,213 +1263,163 @@ type FailureInfo struct { // "USER_BUILD_STEP" - A build step has failed. // "FETCH_SOURCE_FAILED" - The source fetching has failed. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Detail") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Detail") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FailureInfo) MarshalJSON() ([]byte, error) { +func (s FailureInfo) MarshalJSON() ([]byte, error) { type NoMethod FailureInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FileHashes: Container message for hashes of byte content of files, -// used in SourceProvenance messages to verify integrity of source input -// to the build. +// FileHashes: Container message for hashes of byte content of files, used in +// SourceProvenance messages to verify integrity of source input to the build. type FileHashes struct { // FileHash: Collection of file hashes. FileHash []*Hash `json:"fileHash,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHash") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHash") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHash") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileHashes) MarshalJSON() ([]byte, error) { +func (s FileHashes) MarshalJSON() ([]byte, error) { type NoMethod FileHashes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GitLabConnectedRepository: GitLabConnectedRepository represents a -// GitLab connected repository request response. +// GitLabConnectedRepository: GitLabConnectedRepository represents a GitLab +// connected repository request response. type GitLabConnectedRepository struct { - // Parent: The name of the `GitLabConfig` that added connected - // repository. Format: - // `projects/{project}/locations/{location}/gitLabConfigs/{config}` + // Parent: The name of the `GitLabConfig` that added connected repository. + // Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` Parent string `json:"parent,omitempty"` - // Repo: The GitLab repositories to connect. Repo *GitLabRepositoryId `json:"repo,omitempty"` - // Status: Output only. The status of the repo connection request. Status *Status `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GitLabConnectedRepository) MarshalJSON() ([]byte, error) { +func (s GitLabConnectedRepository) MarshalJSON() ([]byte, error) { type NoMethod GitLabConnectedRepository - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GitLabRepositoryId: GitLabRepositoryId identifies a specific -// repository hosted on GitLab.com or GitLabEnterprise +// GitLabRepositoryId: GitLabRepositoryId identifies a specific repository +// hosted on GitLab.com or GitLabEnterprise type GitLabRepositoryId struct { // Id: Required. Identifier for the repository. example: - // "namespace/project-slug", namespace is usually the username or group - // ID + // "namespace/project-slug", namespace is usually the username or group ID Id string `json:"id,omitempty"` - - // WebhookId: Output only. The ID of the webhook that was created for - // receiving events from this repo. We only create and manage a single - // webhook for each repo. + // WebhookId: Output only. The ID of the webhook that was created for receiving + // events from this repo. We only create and manage a single webhook for each + // repo. WebhookId int64 `json:"webhookId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GitLabRepositoryId) MarshalJSON() ([]byte, error) { +func (s GitLabRepositoryId) MarshalJSON() ([]byte, error) { type NoMethod GitLabRepositoryId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata -// of the long-running operation. +// GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata of the +// long-running operation. type GoogleDevtoolsCloudbuildV2OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` - // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // requested cancellation of the operation. Operations that have successfully + // been cancelled have Operation.error value with a google.rpc.Status.code of + // 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // StatusMessage: Output only. Human-readable status of the operation, - // if any. + // StatusMessage: Output only. Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Output only. Server-defined resource path for the target of the + // operation. Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsCloudbuildV2OperationMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsCloudbuildV2OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsCloudbuildV2OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // HTTPDelivery: HTTPDelivery is the delivery configuration for an HTTP // notification. type HTTPDelivery struct { - // Uri: The URI to which JSON-containing HTTP POST requests should be - // sent. + // Uri: The URI to which JSON-containing HTTP POST requests should be sent. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HTTPDelivery) MarshalJSON() ([]byte, error) { +func (s HTTPDelivery) MarshalJSON() ([]byte, error) { type NoMethod HTTPDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Hash: Container message for hash values. @@ -1760,69 +1431,54 @@ type Hash struct { // "SHA256" - Use a sha256 hash. // "MD5" - Use a md5 hash. Type string `json:"type,omitempty"` - // Value: The hash value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Hash) MarshalJSON() ([]byte, error) { +func (s Hash) MarshalJSON() ([]byte, error) { type NoMethod Hash - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InlineSecret: Pairs a set of secret environment variables mapped to // encrypted values with the Cloud KMS key to use to decrypt the value. type InlineSecret struct { - // EnvMap: Map of environment variable name to its encrypted value. - // Secret environment variables must be unique across all of a build's - // secrets, and must be used by at least one build step. Values can be - // at most 64 KB in size. There can be at most 100 secret values across - // all of a build's secrets. + // EnvMap: Map of environment variable name to its encrypted value. Secret + // environment variables must be unique across all of a build's secrets, and + // must be used by at least one build step. Values can be at most 64 KB in + // size. There can be at most 100 secret values across all of a build's + // secrets. EnvMap map[string]string `json:"envMap,omitempty"` - - // KmsKeyName: Resource name of Cloud KMS crypto key to decrypt the - // encrypted value. In format: - // projects/*/locations/*/keyRings/*/cryptoKeys/* + // KmsKeyName: Resource name of Cloud KMS crypto key to decrypt the encrypted + // value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/* KmsKeyName string `json:"kmsKeyName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnvMap") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnvMap") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EnvMap") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InlineSecret) MarshalJSON() ([]byte, error) { +func (s InlineSecret) MarshalJSON() ([]byte, error) { type NoMethod InlineSecret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListWorkerPoolsResponse: Response containing existing `WorkerPools`. @@ -1830,479 +1486,371 @@ type ListWorkerPoolsResponse struct { // WorkerPools: `WorkerPools` for the specified project. WorkerPools []*WorkerPool `json:"workerPools,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "WorkerPools") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "WorkerPools") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "WorkerPools") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { +func (s ListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListWorkerPoolsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MavenArtifact: A Maven artifact to upload to Artifact Registry upon // successful completion of all build steps. type MavenArtifact struct { - // ArtifactId: Maven `artifactId` value used when uploading the artifact - // to Artifact Registry. - ArtifactId string `json:"artifactId,omitempty"` - - // GroupId: Maven `groupId` value used when uploading the artifact to + // ArtifactId: Maven `artifactId` value used when uploading the artifact to // Artifact Registry. + ArtifactId string `json:"artifactId,omitempty"` + // GroupId: Maven `groupId` value used when uploading the artifact to Artifact + // Registry. GroupId string `json:"groupId,omitempty"` - // Path: Path to an artifact in the build's workspace to be uploaded to // Artifact Registry. This can be either an absolute path, e.g. - // /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path - // from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + // /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from + // /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. Path string `json:"path,omitempty"` - // Repository: Artifact Registry repository, in the form // "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the - // workspace specified by path will be uploaded to Artifact Registry - // with this location as a prefix. + // workspace specified by path will be uploaded to Artifact Registry with this + // location as a prefix. Repository string `json:"repository,omitempty"` - - // Version: Maven `version` value used when uploading the artifact to - // Artifact Registry. + // Version: Maven `version` value used when uploading the artifact to Artifact + // Registry. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArtifactId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArtifactId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArtifactId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MavenArtifact) MarshalJSON() ([]byte, error) { +func (s MavenArtifact) MarshalJSON() ([]byte, error) { type NoMethod MavenArtifact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NetworkConfig: Network describes the network configuration for a // `WorkerPool`. type NetworkConfig struct { - // PeeredNetwork: Required. Immutable. The network definition that the - // workers are peered to. If this section is left empty, the workers - // will be peered to WorkerPool.project_id on the default network. Must - // be in the format `projects/{project}/global/networks/{network}`, - // where {project} is a project number, such as `12345`, and {network} - // is the name of a VPC network in the project. + // PeeredNetwork: Required. Immutable. The network definition that the workers + // are peered to. If this section is left empty, the workers will be peered to + // WorkerPool.project_id on the default network. Must be in the format + // `projects/{project}/global/networks/{network}`, where {project} is a project + // number, such as `12345`, and {network} is the name of a VPC network in the + // project. PeeredNetwork string `json:"peeredNetwork,omitempty"` - // ForceSendFields is a list of field names (e.g. "PeeredNetwork") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PeeredNetwork") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PeeredNetwork") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NetworkConfig) MarshalJSON() ([]byte, error) { +func (s NetworkConfig) MarshalJSON() ([]byte, error) { type NoMethod NetworkConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Notification: Notification is the container which holds the data that -// is relevant to this particular notification. +// Notification: Notification is the container which holds the data that is +// relevant to this particular notification. type Notification struct { - // Filter: The filter string to use for notification filtering. - // Currently, this is assumed to be a CEL program. See - // https://opensource.google/projects/cel for more. + // Filter: The filter string to use for notification filtering. Currently, this + // is assumed to be a CEL program. See https://opensource.google/projects/cel + // for more. Filter string `json:"filter,omitempty"` - // HttpDelivery: Configuration for HTTP delivery. HttpDelivery *HTTPDelivery `json:"httpDelivery,omitempty"` - // SlackDelivery: Configuration for Slack delivery. SlackDelivery *SlackDelivery `json:"slackDelivery,omitempty"` - // SmtpDelivery: Configuration for SMTP (email) delivery. SmtpDelivery *SMTPDelivery `json:"smtpDelivery,omitempty"` - - // StructDelivery: Escape hatch for users to supply custom delivery - // configs. + // StructDelivery: Escape hatch for users to supply custom delivery configs. StructDelivery googleapi.RawMessage `json:"structDelivery,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Notification) MarshalJSON() ([]byte, error) { +func (s Notification) MarshalJSON() ([]byte, error) { type NoMethod Notification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierConfig: NotifierConfig is the top-level configuration -// message. +// NotifierConfig: NotifierConfig is the top-level configuration message. type NotifierConfig struct { // ApiVersion: The API version of this configuration format. ApiVersion string `json:"apiVersion,omitempty"` - // Kind: The type of notifier to use (e.g. SMTPNotifier). Kind string `json:"kind,omitempty"` - // Metadata: Metadata for referring to/handling/deploying this notifier. Metadata *NotifierMetadata `json:"metadata,omitempty"` - // Spec: The actual configuration for this notifier. Spec *NotifierSpec `json:"spec,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierConfig) MarshalJSON() ([]byte, error) { +func (s NotifierConfig) MarshalJSON() ([]byte, error) { type NoMethod NotifierConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierMetadata: NotifierMetadata contains the data which can be -// used to reference or describe this notifier. +// NotifierMetadata: NotifierMetadata contains the data which can be used to +// reference or describe this notifier. type NotifierMetadata struct { - // Name: The human-readable and user-given name for the notifier. For - // example: "repo-merge-email-notifier". + // Name: The human-readable and user-given name for the notifier. For example: + // "repo-merge-email-notifier". Name string `json:"name,omitempty"` - // Notifier: The string representing the name and version of notifier to // deploy. Expected to be of the form of "/:". For example: // "gcr.io/my-project/notifiers/smtp:1.2.34". Notifier string `json:"notifier,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierMetadata) MarshalJSON() ([]byte, error) { +func (s NotifierMetadata) MarshalJSON() ([]byte, error) { type NoMethod NotifierMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierSecret: NotifierSecret is the container that maps a secret -// name (reference) to its Google Cloud Secret Manager resource path. +// NotifierSecret: NotifierSecret is the container that maps a secret name +// (reference) to its Google Cloud Secret Manager resource path. type NotifierSecret struct { - // Name: Name is the local name of the secret, such as the verbatim - // string "my-smtp-password". + // Name: Name is the local name of the secret, such as the verbatim string + // "my-smtp-password". Name string `json:"name,omitempty"` - - // Value: Value is interpreted to be a resource path for fetching the - // actual (versioned) secret data for this secret. For example, this - // would be a Google Cloud Secret Manager secret version resource path - // like: "projects/my-project/secrets/my-secret/versions/latest". + // Value: Value is interpreted to be a resource path for fetching the actual + // (versioned) secret data for this secret. For example, this would be a Google + // Cloud Secret Manager secret version resource path like: + // "projects/my-project/secrets/my-secret/versions/latest". Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierSecret) MarshalJSON() ([]byte, error) { +func (s NotifierSecret) MarshalJSON() ([]byte, error) { type NoMethod NotifierSecret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierSecretRef: NotifierSecretRef contains the reference to a -// secret stored in the corresponding NotifierSpec. +// NotifierSecretRef: NotifierSecretRef contains the reference to a secret +// stored in the corresponding NotifierSpec. type NotifierSecretRef struct { - // SecretRef: The value of `secret_ref` should be a `name` that is - // registered in a `Secret` in the `secrets` list of the `Spec`. + // SecretRef: The value of `secret_ref` should be a `name` that is registered + // in a `Secret` in the `secrets` list of the `Spec`. SecretRef string `json:"secretRef,omitempty"` - // ForceSendFields is a list of field names (e.g. "SecretRef") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SecretRef") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SecretRef") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierSecretRef) MarshalJSON() ([]byte, error) { +func (s NotifierSecretRef) MarshalJSON() ([]byte, error) { type NoMethod NotifierSecretRef - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierSpec: NotifierSpec is the configuration container for -// notifications. +// NotifierSpec: NotifierSpec is the configuration container for notifications. type NotifierSpec struct { // Notification: The configuration of this particular notifier. Notification *Notification `json:"notification,omitempty"` - // Secrets: Configurations for secret resources used by this particular // notifier. Secrets []*NotifierSecret `json:"secrets,omitempty"` - // ForceSendFields is a list of field names (e.g. "Notification") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Notification") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Notification") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierSpec) MarshalJSON() ([]byte, error) { +func (s NotifierSpec) MarshalJSON() ([]byte, error) { type NoMethod NotifierSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadata: Represents the metadata of the long-running -// operation. +// OperationMetadata: Represents the metadata of the long-running operation. type OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` - - // CancelRequested: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have been - // cancelled successfully have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // CancelRequested: Output only. Identifies whether the user has requested + // cancellation of the operation. Operations that have been cancelled + // successfully have Operation.error value with a google.rpc.Status.code of 1, + // corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` - // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - - // StatusDetail: Output only. Human-readable status of the operation, if - // any. + // StatusDetail: Output only. Human-readable status of the operation, if any. StatusDetail string `json:"statusDetail,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Output only. Server-defined resource path for the target of the + // operation. Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { +func (s OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PoolOption: Details about how a build should be executed on a -// `WorkerPool`. See running builds in a private pool +// PoolOption: Details about how a build should be executed on a `WorkerPool`. +// See running builds in a private pool // (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) // for more information. type PoolOption struct { - // Name: The `WorkerPool` resource to execute the build on. You must - // have `cloudbuild.workerpools.use` on the project hosting the - // WorkerPool. Format + // Name: The `WorkerPool` resource to execute the build on. You must have + // `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format // projects/{project}/locations/{location}/workerPools/{workerPoolId} Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoolOption) MarshalJSON() ([]byte, error) { +func (s PoolOption) MarshalJSON() ([]byte, error) { type NoMethod PoolOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProcessAppManifestCallbackOperationMetadata: Metadata for @@ -2310,763 +1858,592 @@ func (s *PoolOption) MarshalJSON() ([]byte, error) { type ProcessAppManifestCallbackOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be created. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // created. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProcessAppManifestCallbackOperationMetadata) MarshalJSON() ([]byte, error) { +func (s ProcessAppManifestCallbackOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod ProcessAppManifestCallbackOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PythonPackage: Python package to upload to Artifact Registry upon -// successful completion of all build steps. A package can encapsulate -// multiple objects to be uploaded to a single repository. +// PythonPackage: Python package to upload to Artifact Registry upon successful +// completion of all build steps. A package can encapsulate multiple objects to +// be uploaded to a single repository. type PythonPackage struct { - // Paths: Path globs used to match files in the build's workspace. For - // Python/ Twine, this is usually `dist/*`, and sometimes additionally - // an `.asc` file. + // Paths: Path globs used to match files in the build's workspace. For Python/ + // Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. Paths []string `json:"paths,omitempty"` - // Repository: Artifact Registry repository, in the form - // "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the - // workspace matching any path pattern will be uploaded to Artifact - // Registry with this location as a prefix. + // "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace + // matching any path pattern will be uploaded to Artifact Registry with this + // location as a prefix. Repository string `json:"repository,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Paths") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Paths") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Paths") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PythonPackage) MarshalJSON() ([]byte, error) { +func (s PythonPackage) MarshalJSON() ([]byte, error) { type NoMethod PythonPackage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RepoSource: Location of the source in a Google Cloud Source -// Repository. +// RepoSource: Location of the source in a Google Cloud Source Repository. type RepoSource struct { - // BranchName: Regex matching branches to build. The syntax of the - // regular expressions accepted is the syntax accepted by RE2 and - // described at https://github.com/google/re2/wiki/Syntax + // BranchName: Regex matching branches to build. The syntax of the regular + // expressions accepted is the syntax accepted by RE2 and described at + // https://github.com/google/re2/wiki/Syntax BranchName string `json:"branchName,omitempty"` - // CommitSha: Explicit commit SHA to build. CommitSha string `json:"commitSha,omitempty"` - - // Dir: Directory, relative to the source root, in which to run the - // build. This must be a relative path. If a step's `dir` is specified - // and is an absolute path, this value is ignored for that step's - // execution. + // Dir: Directory, relative to the source root, in which to run the build. This + // must be a relative path. If a step's `dir` is specified and is an absolute + // path, this value is ignored for that step's execution. Dir string `json:"dir,omitempty"` - - // InvertRegex: Only trigger a build if the revision regex does NOT - // match the revision regex. + // InvertRegex: Only trigger a build if the revision regex does NOT match the + // revision regex. InvertRegex bool `json:"invertRegex,omitempty"` - - // ProjectId: ID of the project that owns the Cloud Source Repository. - // If omitted, the project ID requesting the build is assumed. + // ProjectId: ID of the project that owns the Cloud Source Repository. If + // omitted, the project ID requesting the build is assumed. ProjectId string `json:"projectId,omitempty"` - // RepoName: Name of the Cloud Source Repository. RepoName string `json:"repoName,omitempty"` - - // Substitutions: Substitutions to use in a triggered build. Should only - // be used with RunBuildTrigger + // Substitutions: Substitutions to use in a triggered build. Should only be + // used with RunBuildTrigger Substitutions map[string]string `json:"substitutions,omitempty"` - - // TagName: Regex matching tags to build. The syntax of the regular - // expressions accepted is the syntax accepted by RE2 and described at + // TagName: Regex matching tags to build. The syntax of the regular expressions + // accepted is the syntax accepted by RE2 and described at // https://github.com/google/re2/wiki/Syntax TagName string `json:"tagName,omitempty"` - // ForceSendFields is a list of field names (e.g. "BranchName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BranchName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BranchName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RepoSource) MarshalJSON() ([]byte, error) { +func (s RepoSource) MarshalJSON() ([]byte, error) { type NoMethod RepoSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Repository: A repository associated to a parent connection. type Repository struct { // Annotations: Allows clients to store small amounts of arbitrary data. Annotations map[string]string `json:"annotations,omitempty"` - - // CreateTime: Output only. Server assigned timestamp for when the - // connection was created. + // CreateTime: Output only. Server assigned timestamp for when the connection + // was created. CreateTime string `json:"createTime,omitempty"` - - // Etag: This checksum is computed by the server based on the value of - // other fields, and may be sent on update and delete requests to ensure - // the client has an up-to-date value before proceeding. + // Etag: This checksum is computed by the server based on the value of other + // fields, and may be sent on update and delete requests to ensure the client + // has an up-to-date value before proceeding. Etag string `json:"etag,omitempty"` - // Name: Immutable. Resource name of the repository, in the format // `projects/*/locations/*/connections/*/repositories/*`. Name string `json:"name,omitempty"` - // RemoteUri: Required. Git Clone HTTPS URI. RemoteUri string `json:"remoteUri,omitempty"` - - // UpdateTime: Output only. Server assigned timestamp for when the - // connection was updated. + // UpdateTime: Output only. Server assigned timestamp for when the connection + // was updated. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Repository) MarshalJSON() ([]byte, error) { +func (s Repository) MarshalJSON() ([]byte, error) { type NoMethod Repository - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Results: Artifacts created by the build pipeline. type Results struct { - // ArtifactManifest: Path to the artifact manifest for non-container - // artifacts uploaded to Cloud Storage. Only populated when artifacts - // are uploaded to Cloud Storage. + // ArtifactManifest: Path to the artifact manifest for non-container artifacts + // uploaded to Cloud Storage. Only populated when artifacts are uploaded to + // Cloud Storage. ArtifactManifest string `json:"artifactManifest,omitempty"` - - // ArtifactTiming: Time to push all non-container artifacts to Cloud - // Storage. + // ArtifactTiming: Time to push all non-container artifacts to Cloud Storage. ArtifactTiming *TimeSpan `json:"artifactTiming,omitempty"` - - // BuildStepImages: List of build step digests, in the order - // corresponding to build step indices. + // BuildStepImages: List of build step digests, in the order corresponding to + // build step indices. BuildStepImages []string `json:"buildStepImages,omitempty"` - - // BuildStepOutputs: List of build step outputs, produced by builder - // images, in the order corresponding to build step indices. Cloud - // Builders (https://cloud.google.com/cloud-build/docs/cloud-builders) - // can produce this output by writing to `$BUILDER_OUTPUT/output`. Only - // the first 4KB of data is stored. + // BuildStepOutputs: List of build step outputs, produced by builder images, in + // the order corresponding to build step indices. Cloud Builders + // (https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this + // output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is + // stored. BuildStepOutputs []string `json:"buildStepOutputs,omitempty"` - // Images: Container images that were built as a part of the build. Images []*BuiltImage `json:"images,omitempty"` - - // MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the - // end of the build. + // MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the end of + // the build. MavenArtifacts []*UploadedMavenArtifact `json:"mavenArtifacts,omitempty"` - - // NumArtifacts: Number of non-container artifacts uploaded to Cloud - // Storage. Only populated when artifacts are uploaded to Cloud Storage. + // NumArtifacts: Number of non-container artifacts uploaded to Cloud Storage. + // Only populated when artifacts are uploaded to Cloud Storage. NumArtifacts int64 `json:"numArtifacts,omitempty,string"` - - // PythonPackages: Python artifacts uploaded to Artifact Registry at the - // end of the build. + // PythonPackages: Python artifacts uploaded to Artifact Registry at the end of + // the build. PythonPackages []*UploadedPythonPackage `json:"pythonPackages,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArtifactManifest") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArtifactManifest") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ArtifactManifest") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Results) MarshalJSON() ([]byte, error) { +func (s Results) MarshalJSON() ([]byte, error) { type NoMethod Results - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RunWorkflowCustomOperationMetadata: Represents the custom metadata of -// the RunWorkflow long-running operation. +// RunWorkflowCustomOperationMetadata: Represents the custom metadata of the +// RunWorkflow long-running operation. type RunWorkflowCustomOperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` - // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - - // PipelineRunId: Output only. ID of the pipeline run created by - // RunWorkflow. + // PipelineRunId: Output only. ID of the pipeline run created by RunWorkflow. PipelineRunId string `json:"pipelineRunId,omitempty"` - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // requested cancellation of the operation. Operations that have successfully + // been cancelled have Operation.error value with a google.rpc.Status.code of + // 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Output only. Server-defined resource path for the target of the + // operation. Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunWorkflowCustomOperationMetadata) MarshalJSON() ([]byte, error) { +func (s RunWorkflowCustomOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod RunWorkflowCustomOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SMTPDelivery: SMTPDelivery is the delivery configuration for an SMTP -// (email) notification. +// SMTPDelivery: SMTPDelivery is the delivery configuration for an SMTP (email) +// notification. type SMTPDelivery struct { - // FromAddress: This is the SMTP account/email that appears in the - // `From:` of the email. If empty, it is assumed to be sender. + // FromAddress: This is the SMTP account/email that appears in the `From:` of + // the email. If empty, it is assumed to be sender. FromAddress string `json:"fromAddress,omitempty"` - // Password: The SMTP sender's password. Password *NotifierSecretRef `json:"password,omitempty"` - // Port: The SMTP port of the server. Port string `json:"port,omitempty"` - - // RecipientAddresses: This is the list of addresses to which we send - // the email (i.e. in the `To:` of the email). + // RecipientAddresses: This is the list of addresses to which we send the email + // (i.e. in the `To:` of the email). RecipientAddresses []string `json:"recipientAddresses,omitempty"` - - // SenderAddress: This is the SMTP account/email that is used to send - // the message. + // SenderAddress: This is the SMTP account/email that is used to send the + // message. SenderAddress string `json:"senderAddress,omitempty"` - // Server: The address of the SMTP server. Server string `json:"server,omitempty"` - // ForceSendFields is a list of field names (e.g. "FromAddress") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FromAddress") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FromAddress") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SMTPDelivery) MarshalJSON() ([]byte, error) { +func (s SMTPDelivery) MarshalJSON() ([]byte, error) { type NoMethod SMTPDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Secret: Pairs a set of secret environment variables containing -// encrypted values with the Cloud KMS key to use to decrypt the value. -// Note: Use `kmsKeyName` with `available_secrets` instead of using -// `kmsKeyName` with `secret`. For instructions see: +// Secret: Pairs a set of secret environment variables containing encrypted +// values with the Cloud KMS key to use to decrypt the value. Note: Use +// `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with +// `secret`. For instructions see: // https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. type Secret struct { // KmsKeyName: Cloud KMS key name to use to decrypt these envs. KmsKeyName string `json:"kmsKeyName,omitempty"` - - // SecretEnv: Map of environment variable name to its encrypted value. - // Secret environment variables must be unique across all of a build's - // secrets, and must be used by at least one build step. Values can be - // at most 64 KB in size. There can be at most 100 secret values across - // all of a build's secrets. + // SecretEnv: Map of environment variable name to its encrypted value. Secret + // environment variables must be unique across all of a build's secrets, and + // must be used by at least one build step. Values can be at most 64 KB in + // size. There can be at most 100 secret values across all of a build's + // secrets. SecretEnv map[string]string `json:"secretEnv,omitempty"` - // ForceSendFields is a list of field names (e.g. "KmsKeyName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KmsKeyName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "KmsKeyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Secret) MarshalJSON() ([]byte, error) { +func (s Secret) MarshalJSON() ([]byte, error) { type NoMethod Secret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SecretManagerSecret: Pairs a secret environment variable with a // SecretVersion in Secret Manager. type SecretManagerSecret struct { // Env: Environment variable name to associate with the secret. Secret - // environment variables must be unique across all of a build's secrets, - // and must be used by at least one build step. + // environment variables must be unique across all of a build's secrets, and + // must be used by at least one build step. Env string `json:"env,omitempty"` - // VersionName: Resource name of the SecretVersion. In format: // projects/*/secrets/*/versions/* VersionName string `json:"versionName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Env") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Env") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Env") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Env") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecretManagerSecret) MarshalJSON() ([]byte, error) { +func (s SecretManagerSecret) MarshalJSON() ([]byte, error) { type NoMethod SecretManagerSecret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Secrets: Secrets and secret environment variables. type Secrets struct { - // Inline: Secrets encrypted with KMS key and the associated secret - // environment variable. + // Inline: Secrets encrypted with KMS key and the associated secret environment + // variable. Inline []*InlineSecret `json:"inline,omitempty"` - - // SecretManager: Secrets in Secret Manager and associated secret - // environment variable. + // SecretManager: Secrets in Secret Manager and associated secret environment + // variable. SecretManager []*SecretManagerSecret `json:"secretManager,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Inline") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Inline") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Inline") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Secrets) MarshalJSON() ([]byte, error) { +func (s Secrets) MarshalJSON() ([]byte, error) { type NoMethod Secrets - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SlackDelivery: SlackDelivery is the delivery configuration for -// delivering Slack messages via webhooks. See Slack webhook -// documentation at: https://api.slack.com/messaging/webhooks. +// SlackDelivery: SlackDelivery is the delivery configuration for delivering +// Slack messages via webhooks. See Slack webhook documentation at: +// https://api.slack.com/messaging/webhooks. type SlackDelivery struct { - // WebhookUri: The secret reference for the Slack webhook URI for - // sending messages to a channel. + // WebhookUri: The secret reference for the Slack webhook URI for sending + // messages to a channel. WebhookUri *NotifierSecretRef `json:"webhookUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "WebhookUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "WebhookUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "WebhookUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SlackDelivery) MarshalJSON() ([]byte, error) { +func (s SlackDelivery) MarshalJSON() ([]byte, error) { type NoMethod SlackDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Source: Location of the source in a supported storage service. type Source struct { - // RepoSource: If provided, get the source from this location in a Cloud - // Source Repository. + // RepoSource: If provided, get the source from this location in a Cloud Source + // Repository. RepoSource *RepoSource `json:"repoSource,omitempty"` - - // StorageSource: If provided, get the source from this location in - // Google Cloud Storage. + // StorageSource: If provided, get the source from this location in Google + // Cloud Storage. StorageSource *StorageSource `json:"storageSource,omitempty"` - - // StorageSourceManifest: If provided, get the source from this manifest - // in Google Cloud Storage. This feature is in Preview; see description - // here + // StorageSourceManifest: If provided, get the source from this manifest in + // Google Cloud Storage. This feature is in Preview; see description here // (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). StorageSourceManifest *StorageSourceManifest `json:"storageSourceManifest,omitempty"` - // ForceSendFields is a list of field names (e.g. "RepoSource") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RepoSource") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RepoSource") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Source) MarshalJSON() ([]byte, error) { +func (s Source) MarshalJSON() ([]byte, error) { type NoMethod Source - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SourceProvenance: Provenance of the source. Ways to find the original // source, or verify that some source was used for this build. type SourceProvenance struct { - // FileHashes: Output only. Hash(es) of the build source, which can be - // used to verify that the original source integrity was maintained in - // the build. Note that `FileHashes` will only be populated if - // `BuildOptions` has requested a `SourceProvenanceHash`. The keys to - // this map are file paths used as build source and the values contain - // the hash values for those files. If the build source came in a single - // package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be - // for the single path to that file. + // FileHashes: Output only. Hash(es) of the build source, which can be used to + // verify that the original source integrity was maintained in the build. Note + // that `FileHashes` will only be populated if `BuildOptions` has requested a + // `SourceProvenanceHash`. The keys to this map are file paths used as build + // source and the values contain the hash values for those files. If the build + // source came in a single package such as a gzipped tarfile (`.tar.gz`), the + // `FileHash` will be for the single path to that file. FileHashes map[string]FileHashes `json:"fileHashes,omitempty"` - - // ResolvedRepoSource: A copy of the build's `source.repo_source`, if - // exists, with any revisions resolved. + // ResolvedRepoSource: A copy of the build's `source.repo_source`, if exists, + // with any revisions resolved. ResolvedRepoSource *RepoSource `json:"resolvedRepoSource,omitempty"` - - // ResolvedStorageSource: A copy of the build's `source.storage_source`, - // if exists, with any generations resolved. + // ResolvedStorageSource: A copy of the build's `source.storage_source`, if + // exists, with any generations resolved. ResolvedStorageSource *StorageSource `json:"resolvedStorageSource,omitempty"` - // ResolvedStorageSourceManifest: A copy of the build's - // `source.storage_source_manifest`, if exists, with any revisions - // resolved. This feature is in Preview. + // `source.storage_source_manifest`, if exists, with any revisions resolved. + // This feature is in Preview. ResolvedStorageSourceManifest *StorageSourceManifest `json:"resolvedStorageSourceManifest,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHashes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHashes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHashes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceProvenance) MarshalJSON() ([]byte, error) { +func (s SourceProvenance) MarshalJSON() ([]byte, error) { type NoMethod SourceProvenance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StorageSource: Location of the source in an archive file in Google -// Cloud Storage. +// StorageSource: Location of the source in an archive file in Google Cloud +// Storage. type StorageSource struct { - // Bucket: Google Cloud Storage bucket containing the source (see Bucket - // Name Requirements + // Bucket: Google Cloud Storage bucket containing the source (see Bucket Name + // Requirements // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Bucket string `json:"bucket,omitempty"` - // Generation: Google Cloud Storage generation for the object. If the // generation is omitted, the latest generation will be used. Generation int64 `json:"generation,omitempty,string"` - - // Object: Google Cloud Storage object containing the source. This - // object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) - // containing source to build. + // Object: Google Cloud Storage object containing the source. This object must + // be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source + // to build. Object string `json:"object,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StorageSource) MarshalJSON() ([]byte, error) { +func (s StorageSource) MarshalJSON() ([]byte, error) { type NoMethod StorageSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StorageSourceManifest: Location of the source manifest in Google -// Cloud Storage. This feature is in Preview; see description here +// StorageSourceManifest: Location of the source manifest in Google Cloud +// Storage. This feature is in Preview; see description here // (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). type StorageSourceManifest struct { - // Bucket: Google Cloud Storage bucket containing the source manifest - // (see Bucket Name Requirements + // Bucket: Google Cloud Storage bucket containing the source manifest (see + // Bucket Name Requirements // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Bucket string `json:"bucket,omitempty"` - // Generation: Google Cloud Storage generation for the object. If the // generation is omitted, the latest generation will be used. Generation int64 `json:"generation,omitempty,string"` - - // Object: Google Cloud Storage object containing the source manifest. - // This object must be a JSON file. + // Object: Google Cloud Storage object containing the source manifest. This + // object must be a JSON file. Object string `json:"object,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StorageSourceManifest) MarshalJSON() ([]byte, error) { +func (s StorageSourceManifest) MarshalJSON() ([]byte, error) { type NoMethod StorageSourceManifest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TimeSpan: Start and end times for a build execution phase. type TimeSpan struct { // EndTime: End of time span. EndTime string `json:"endTime,omitempty"` - // StartTime: Start of time span. StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimeSpan) MarshalJSON() ([]byte, error) { +func (s TimeSpan) MarshalJSON() ([]byte, error) { type NoMethod TimeSpan - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateBitbucketServerConfigOperationMetadata: Metadata for // `UpdateBitbucketServerConfig` operation. type UpdateBitbucketServerConfigOperationMetadata struct { - // BitbucketServerConfig: The resource name of the BitbucketServerConfig - // to be updated. Format: + // BitbucketServerConfig: The resource name of the BitbucketServerConfig to be + // updated. Format: // `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"` - // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConfig") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BitbucketServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateBitbucketServerConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateGitHubEnterpriseConfigOperationMetadata: Metadata for @@ -3074,376 +2451,288 @@ func (s *UpdateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, er type UpdateGitHubEnterpriseConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be updated. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // updated. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateGitHubEnterpriseConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpdateGitLabConfigOperationMetadata: Metadata for -// `UpdateGitLabConfig` operation. +// UpdateGitLabConfigOperationMetadata: Metadata for `UpdateGitLabConfig` +// operation. type UpdateGitLabConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. + // GitlabConfig: The resource name of the GitLabConfig to be created. Format: + // `projects/{project}/locations/{location}/gitlabConfigs/{id}`. GitlabConfig string `json:"gitlabConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpdateWorkerPoolOperationMetadata: Metadata for the -// `UpdateWorkerPool` operation. +// UpdateWorkerPoolOperationMetadata: Metadata for the `UpdateWorkerPool` +// operation. type UpdateWorkerPoolOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // WorkerPool: The resource name of the `WorkerPool` being updated. - // Format: + // WorkerPool: The resource name of the `WorkerPool` being updated. Format: // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateWorkerPoolOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UploadedMavenArtifact: A Maven artifact uploaded using the -// MavenArtifact directive. +// UploadedMavenArtifact: A Maven artifact uploaded using the MavenArtifact +// directive. type UploadedMavenArtifact struct { // FileHashes: Hash types and values of the Maven Artifact. FileHashes *FileHashes `json:"fileHashes,omitempty"` - - // PushTiming: Output only. Stores timing information for pushing the - // specified artifact. + // PushTiming: Output only. Stores timing information for pushing the specified + // artifact. PushTiming *TimeSpan `json:"pushTiming,omitempty"` - // Uri: URI of the uploaded artifact. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHashes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHashes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHashes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UploadedMavenArtifact) MarshalJSON() ([]byte, error) { +func (s UploadedMavenArtifact) MarshalJSON() ([]byte, error) { type NoMethod UploadedMavenArtifact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UploadedPythonPackage: Artifact uploaded using the PythonPackage -// directive. +// UploadedPythonPackage: Artifact uploaded using the PythonPackage directive. type UploadedPythonPackage struct { // FileHashes: Hash types and values of the Python Artifact. FileHashes *FileHashes `json:"fileHashes,omitempty"` - - // PushTiming: Output only. Stores timing information for pushing the - // specified artifact. + // PushTiming: Output only. Stores timing information for pushing the specified + // artifact. PushTiming *TimeSpan `json:"pushTiming,omitempty"` - // Uri: URI of the uploaded artifact. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHashes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHashes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHashes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UploadedPythonPackage) MarshalJSON() ([]byte, error) { +func (s UploadedPythonPackage) MarshalJSON() ([]byte, error) { type NoMethod UploadedPythonPackage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Volume: Volume describes a Docker container volume which is mounted -// into build steps in order to persist files across build step -// execution. +// Volume: Volume describes a Docker container volume which is mounted into +// build steps in order to persist files across build step execution. type Volume struct { - // Name: Name of the volume to mount. Volume names must be unique per - // build step and must be valid names for Docker volumes. Each named - // volume must be used by at least two build steps. + // Name: Name of the volume to mount. Volume names must be unique per build + // step and must be valid names for Docker volumes. Each named volume must be + // used by at least two build steps. Name string `json:"name,omitempty"` - - // Path: Path at which to mount the volume. Paths must be absolute and - // cannot conflict with other volume paths on the same build step or - // with certain reserved volume paths. + // Path: Path at which to mount the volume. Paths must be absolute and cannot + // conflict with other volume paths on the same build step or with certain + // reserved volume paths. Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Volume) MarshalJSON() ([]byte, error) { +func (s Volume) MarshalJSON() ([]byte, error) { type NoMethod Volume - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Warning: A non-fatal problem encountered during the execution of the -// build. +// Warning: A non-fatal problem encountered during the execution of the build. type Warning struct { // Priority: The priority for this warning. // // Possible values: // "PRIORITY_UNSPECIFIED" - Should not be used. - // "INFO" - e.g. deprecation warnings and alternative feature - // highlights. - // "WARNING" - e.g. automated detection of possible issues with the - // build. - // "ALERT" - e.g. alerts that a feature used in the build is pending - // removal + // "INFO" - e.g. deprecation warnings and alternative feature highlights. + // "WARNING" - e.g. automated detection of possible issues with the build. + // "ALERT" - e.g. alerts that a feature used in the build is pending removal Priority string `json:"priority,omitempty"` - // Text: Explanation of the warning generated. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Priority") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Priority") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Priority") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Warning) MarshalJSON() ([]byte, error) { +func (s Warning) MarshalJSON() ([]byte, error) { type NoMethod Warning - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WorkerConfig: WorkerConfig defines the configuration to be used for a // creating workers in the pool. type WorkerConfig struct { // DiskSizeGb: Size of the disk attached to the worker, in GB. See - // https://cloud.google.com/compute/docs/disks/ If `0` is specified, - // Cloud Build will use a standard disk size. + // https://cloud.google.com/compute/docs/disks/ If `0` is specified, Cloud + // Build will use a standard disk size. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - // MachineType: Machine Type of the worker, such as n1-standard-1. See - // https://cloud.google.com/compute/docs/machine-types. If left blank, - // Cloud Build will use a standard unspecified machine to create the - // worker pool. + // https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud + // Build will use a standard unspecified machine to create the worker pool. MachineType string `json:"machineType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DiskSizeGb") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DiskSizeGb") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerConfig) MarshalJSON() ([]byte, error) { +func (s WorkerConfig) MarshalJSON() ([]byte, error) { type NoMethod WorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkerPool: Configuration for a WorkerPool to run the builds. Workers -// are machines that Cloud Build uses to run your builds. By default, -// all workers run in a project owned by Cloud Build. To have full -// control over the workers that execute your builds -- such as enabling -// them to access private resources on your private network -- you can -// request Cloud Build to run the workers in your own project by -// creating a custom workers pool. +// WorkerPool: Configuration for a WorkerPool to run the builds. Workers are +// machines that Cloud Build uses to run your builds. By default, all workers +// run in a project owned by Cloud Build. To have full control over the workers +// that execute your builds -- such as enabling them to access private +// resources on your private network -- you can request Cloud Build to run the +// workers in your own project by creating a custom workers pool. type WorkerPool struct { // CreateTime: Output only. Time at which the request to create the // `WorkerPool` was received. CreateTime string `json:"createTime,omitempty"` - // DeleteTime: Output only. Time at which the request to delete the // `WorkerPool` was received. DeleteTime string `json:"deleteTime,omitempty"` - - // Name: Output only. The resource name of the `WorkerPool`. Format of - // the name is `projects/{project_id}/workerPools/{worker_pool_id}`, - // where the value of {worker_pool_id} is provided in the - // CreateWorkerPool request. + // Name: Output only. The resource name of the `WorkerPool`. Format of the name + // is `projects/{project_id}/workerPools/{worker_pool_id}`, where the value of + // {worker_pool_id} is provided in the CreateWorkerPool request. Name string `json:"name,omitempty"` - // NetworkConfig: Network configuration for the `WorkerPool`. NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"` - - // Region: Required. Immutable. The region where the `WorkerPool` runs. - // Only "us-central1" is currently supported. Note that `region` cannot - // be changed once the `WorkerPool` is created. + // Region: Required. Immutable. The region where the `WorkerPool` runs. Only + // "us-central1" is currently supported. Note that `region` cannot be changed + // once the `WorkerPool` is created. Region string `json:"region,omitempty"` - // State: Output only. WorkerPool state. // // Possible values: // "STATE_UNSPECIFIED" - State of the `WorkerPool` is unknown. // "CREATING" - `WorkerPool` is being created. // "RUNNING" - `WorkerPool` is running. - // "DELETING" - `WorkerPool` is being deleted: cancelling builds and - // draining workers. + // "DELETING" - `WorkerPool` is being deleted: cancelling builds and draining + // workers. // "DELETED" - `WorkerPool` is deleted. State string `json:"state,omitempty"` - // UpdateTime: Output only. Time at which the request to update the // `WorkerPool` was received. UpdateTime string `json:"updateTime,omitempty"` - // WorkerConfig: Worker configuration for the `WorkerPool`. WorkerConfig *WorkerConfig `json:"workerConfig,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerPool) MarshalJSON() ([]byte, error) { +func (s WorkerPool) MarshalJSON() ([]byte, error) { type NoMethod WorkerPool - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "cloudbuild.projects.locations.operations.cancel": - type ProjectsLocationsOperationsCancelCall struct { s *Service name string @@ -3453,15 +2742,14 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. @@ -3473,23 +2761,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3498,18 +2784,12 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:cancel") @@ -3522,16 +2802,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3562,38 +2840,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "cloudbuild.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.locations.operations.get": +} type ProjectsLocationsOperationsGetCall struct { s *Service @@ -3604,9 +2851,9 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { @@ -3616,33 +2863,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3651,12 +2894,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3673,16 +2911,14 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3713,35 +2949,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "cloudbuild.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.workerPools.create": +} type ProjectsWorkerPoolsCreateCall struct { s *Service @@ -3752,11 +2960,11 @@ type ProjectsWorkerPoolsCreateCall struct { header_ http.Header } -// Create: Creates a `WorkerPool` to run the builds, and returns the new -// worker pool. +// Create: Creates a `WorkerPool` to run the builds, and returns the new worker +// pool. // -// - parent: The parent resource where this book will be created. -// Format: projects/{project}. +// - parent: The parent resource where this book will be created. Format: +// projects/{project}. func (r *ProjectsWorkerPoolsService) Create(parent string, workerpool *WorkerPool) *ProjectsWorkerPoolsCreateCall { c := &ProjectsWorkerPoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3765,32 +2973,30 @@ func (r *ProjectsWorkerPoolsService) Create(parent string, workerpool *WorkerPoo } // WorkerPoolId sets the optional parameter "workerPoolId": Required. -// Immutable. The ID to use for the `WorkerPool`, which will become the -// final component of the resource name. This value should be 1-63 -// characters, and valid characters are /a-z-/. +// Immutable. The ID to use for the `WorkerPool`, which will become the final +// component of the resource name. This value should be 1-63 characters, and +// valid characters are /a-z-/. func (c *ProjectsWorkerPoolsCreateCall) WorkerPoolId(workerPoolId string) *ProjectsWorkerPoolsCreateCall { c.urlParams_.Set("workerPoolId", workerPoolId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkerPoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkerPoolsCreateCall) Context(ctx context.Context) *ProjectsWorkerPoolsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkerPoolsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3799,18 +3005,12 @@ func (c *ProjectsWorkerPoolsCreateCall) Header() http.Header { } func (c *ProjectsWorkerPoolsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workerpool) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/workerPools") @@ -3823,16 +3023,14 @@ func (c *ProjectsWorkerPoolsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.workerPools.create" call. -// Exactly one of *WorkerPool or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *WorkerPool.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkerPool.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsWorkerPoolsCreateCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3863,43 +3061,7 @@ func (c *ProjectsWorkerPoolsCreateCall) Do(opts ...googleapi.CallOption) (*Worke return nil, err } return ret, nil - // { - // "description": "Creates a `WorkerPool` to run the builds, and returns the new worker pool.", - // "flatPath": "v1alpha2/projects/{projectsId}/workerPools", - // "httpMethod": "POST", - // "id": "cloudbuild.projects.workerPools.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent resource where this book will be created. Format: projects/{project}", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "workerPoolId": { - // "description": "Required. Immutable. The ID to use for the `WorkerPool`, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/workerPools", - // "request": { - // "$ref": "WorkerPool" - // }, - // "response": { - // "$ref": "WorkerPool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.workerPools.delete": +} type ProjectsWorkerPoolsDeleteCall struct { s *Service @@ -3920,23 +3082,21 @@ func (r *ProjectsWorkerPoolsService) Delete(name string) *ProjectsWorkerPoolsDel } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkerPoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkerPoolsDeleteCall) Context(ctx context.Context) *ProjectsWorkerPoolsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkerPoolsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3945,12 +3105,7 @@ func (c *ProjectsWorkerPoolsDeleteCall) Header() http.Header { } func (c *ProjectsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3964,16 +3119,14 @@ func (c *ProjectsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.workerPools.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsWorkerPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4004,35 +3157,7 @@ func (c *ProjectsWorkerPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty return nil, err } return ret, nil - // { - // "description": "Deletes a `WorkerPool`.", - // "flatPath": "v1alpha2/projects/{projectsId}/workerPools/{workerPoolsId}", - // "httpMethod": "DELETE", - // "id": "cloudbuild.projects.workerPools.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the `WorkerPool` to delete. Format: projects/{project}/workerPools/{workerPool}", - // "location": "path", - // "pattern": "^projects/[^/]+/workerPools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.workerPools.get": +} type ProjectsWorkerPoolsGetCall struct { s *Service @@ -4054,33 +3179,29 @@ func (r *ProjectsWorkerPoolsService) Get(name string) *ProjectsWorkerPoolsGetCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkerPoolsGetCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsWorkerPoolsGetCall) IfNoneMatch(entityTag string) *ProjectsWorkerPoolsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkerPoolsGetCall) Context(ctx context.Context) *ProjectsWorkerPoolsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkerPoolsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4089,12 +3210,7 @@ func (c *ProjectsWorkerPoolsGetCall) Header() http.Header { } func (c *ProjectsWorkerPoolsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4111,16 +3227,14 @@ func (c *ProjectsWorkerPoolsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.workerPools.get" call. -// Exactly one of *WorkerPool or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *WorkerPool.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkerPool.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsWorkerPoolsGetCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4151,35 +3265,7 @@ func (c *ProjectsWorkerPoolsGetCall) Do(opts ...googleapi.CallOption) (*WorkerPo return nil, err } return ret, nil - // { - // "description": "Returns details of a `WorkerPool`.", - // "flatPath": "v1alpha2/projects/{projectsId}/workerPools/{workerPoolsId}", - // "httpMethod": "GET", - // "id": "cloudbuild.projects.workerPools.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the `WorkerPool` to retrieve. Format: projects/{project}/workerPools/{workerPool}", - // "location": "path", - // "pattern": "^projects/[^/]+/workerPools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "WorkerPool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.workerPools.list": +} type ProjectsWorkerPoolsListCall struct { s *Service @@ -4192,8 +3278,8 @@ type ProjectsWorkerPoolsListCall struct { // List: Lists `WorkerPool`s by project. // -// - parent: The parent, which owns this collection of `WorkerPools`. -// Format: projects/{project}. +// - parent: The parent, which owns this collection of `WorkerPools`. Format: +// projects/{project}. func (r *ProjectsWorkerPoolsService) List(parent string) *ProjectsWorkerPoolsListCall { c := &ProjectsWorkerPoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4201,33 +3287,29 @@ func (r *ProjectsWorkerPoolsService) List(parent string) *ProjectsWorkerPoolsLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkerPoolsListCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsWorkerPoolsListCall) IfNoneMatch(entityTag string) *ProjectsWorkerPoolsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkerPoolsListCall) Context(ctx context.Context) *ProjectsWorkerPoolsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkerPoolsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4236,12 +3318,7 @@ func (c *ProjectsWorkerPoolsListCall) Header() http.Header { } func (c *ProjectsWorkerPoolsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4258,16 +3335,15 @@ func (c *ProjectsWorkerPoolsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.workerPools.list" call. -// Exactly one of *ListWorkerPoolsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListWorkerPoolsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsWorkerPoolsListCall) Do(opts ...googleapi.CallOption) (*ListWorkerPoolsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4298,35 +3374,7 @@ func (c *ProjectsWorkerPoolsListCall) Do(opts ...googleapi.CallOption) (*ListWor return nil, err } return ret, nil - // { - // "description": "Lists `WorkerPool`s by project.", - // "flatPath": "v1alpha2/projects/{projectsId}/workerPools", - // "httpMethod": "GET", - // "id": "cloudbuild.projects.workerPools.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent, which owns this collection of `WorkerPools`. Format: projects/{project}", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/workerPools", - // "response": { - // "$ref": "ListWorkerPoolsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.workerPools.patch": +} type ProjectsWorkerPoolsPatchCall struct { s *Service @@ -4339,10 +3387,9 @@ type ProjectsWorkerPoolsPatchCall struct { // Patch: Updates a `WorkerPool`. // -// - name: Output only. The resource name of the `WorkerPool`. Format of -// the name is `projects/{project_id}/workerPools/{worker_pool_id}`, -// where the value of {worker_pool_id} is provided in the -// CreateWorkerPool request. +// - name: Output only. The resource name of the `WorkerPool`. Format of the +// name is `projects/{project_id}/workerPools/{worker_pool_id}`, where the +// value of {worker_pool_id} is provided in the CreateWorkerPool request. func (r *ProjectsWorkerPoolsService) Patch(name string, workerpool *WorkerPool) *ProjectsWorkerPoolsPatchCall { c := &ProjectsWorkerPoolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4350,31 +3397,29 @@ func (r *ProjectsWorkerPoolsService) Patch(name string, workerpool *WorkerPool) return c } -// UpdateMask sets the optional parameter "updateMask": A mask -// specifying which fields in `WorkerPool` should be updated. +// UpdateMask sets the optional parameter "updateMask": A mask specifying which +// fields in `WorkerPool` should be updated. func (c *ProjectsWorkerPoolsPatchCall) UpdateMask(updateMask string) *ProjectsWorkerPoolsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkerPoolsPatchCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkerPoolsPatchCall) Context(ctx context.Context) *ProjectsWorkerPoolsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkerPoolsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4383,18 +3428,12 @@ func (c *ProjectsWorkerPoolsPatchCall) Header() http.Header { } func (c *ProjectsWorkerPoolsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workerpool) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -4407,16 +3446,14 @@ func (c *ProjectsWorkerPoolsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.workerPools.patch" call. -// Exactly one of *WorkerPool or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *WorkerPool.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkerPool.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsWorkerPoolsPatchCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4447,39 +3484,4 @@ func (c *ProjectsWorkerPoolsPatchCall) Do(opts ...googleapi.CallOption) (*Worker return nil, err } return ret, nil - // { - // "description": "Updates a `WorkerPool`.", - // "flatPath": "v1alpha2/projects/{projectsId}/workerPools/{workerPoolsId}", - // "httpMethod": "PATCH", - // "id": "cloudbuild.projects.workerPools.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The resource name of the `WorkerPool`. Format of the name is `projects/{project_id}/workerPools/{worker_pool_id}`, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.", - // "location": "path", - // "pattern": "^projects/[^/]+/workerPools/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "A mask specifying which fields in `WorkerPool` should be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "WorkerPool" - // }, - // "response": { - // "$ref": "WorkerPool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/cloudbuild/v1beta1/cloudbuild-gen.go b/cloudbuild/v1beta1/cloudbuild-gen.go index f936c9d148a..e89a5dbbf1e 100644 --- a/cloudbuild/v1beta1/cloudbuild-gen.go +++ b/cloudbuild/v1beta1/cloudbuild-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/cloud-build/docs/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // cloudbuildService, err := cloudbuild.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // cloudbuildService, err := cloudbuild.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // cloudbuildService, err := cloudbuild.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package cloudbuild // import "google.golang.org/api/cloudbuild/v1beta1" import ( @@ -71,17 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "cloudbuild:v1beta1" const apiName = "cloudbuild" const apiVersion = "v1beta1" const basePath = "https://cloudbuild.googleapis.com/" +const basePathTemplate = "https://cloudbuild.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://cloudbuild.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -93,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -182,324 +199,254 @@ type ProjectsLocationsWorkerPoolsService struct { s *Service } -// ApprovalConfig: ApprovalConfig describes configuration for manual -// approval of a build. +// ApprovalConfig: ApprovalConfig describes configuration for manual approval +// of a build. type ApprovalConfig struct { - // ApprovalRequired: Whether or not approval is needed. If this is set - // on a build, it will become pending when created, and will need to be - // explicitly approved to start. + // ApprovalRequired: Whether or not approval is needed. If this is set on a + // build, it will become pending when created, and will need to be explicitly + // approved to start. ApprovalRequired bool `json:"approvalRequired,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApprovalRequired") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalRequired") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApprovalRequired") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApprovalConfig) MarshalJSON() ([]byte, error) { +func (s ApprovalConfig) MarshalJSON() ([]byte, error) { type NoMethod ApprovalConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApprovalResult: ApprovalResult describes the decision and associated // metadata of a manual approval of a build. type ApprovalResult struct { - // ApprovalTime: Output only. The time when the approval decision was - // made. + // ApprovalTime: Output only. The time when the approval decision was made. ApprovalTime string `json:"approvalTime,omitempty"` - - // ApproverAccount: Output only. Email of the user that called the - // ApproveBuild API to approve or reject a build at the time that the - // API was called. + // ApproverAccount: Output only. Email of the user that called the ApproveBuild + // API to approve or reject a build at the time that the API was called. ApproverAccount string `json:"approverAccount,omitempty"` - - // Comment: Optional. An optional comment for this manual approval - // result. + // Comment: Optional. An optional comment for this manual approval result. Comment string `json:"comment,omitempty"` - // Decision: Required. The decision of this manual approval. // // Possible values: - // "DECISION_UNSPECIFIED" - Default enum type. This should not be - // used. + // "DECISION_UNSPECIFIED" - Default enum type. This should not be used. // "APPROVED" - Build is approved. // "REJECTED" - Build is rejected. Decision string `json:"decision,omitempty"` - - // Url: Optional. An optional URL tied to this manual approval result. - // This field is essentially the same as comment, except that it will be - // rendered by the UI differently. An example use case is a link to an - // external job that approved this Build. + // Url: Optional. An optional URL tied to this manual approval result. This + // field is essentially the same as comment, except that it will be rendered by + // the UI differently. An example use case is a link to an external job that + // approved this Build. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApprovalTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApprovalTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApprovalResult) MarshalJSON() ([]byte, error) { +func (s ApprovalResult) MarshalJSON() ([]byte, error) { type NoMethod ApprovalResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ArtifactObjects: Files in the workspace to upload to Cloud Storage -// upon successful completion of all build steps. +// ArtifactObjects: Files in the workspace to upload to Cloud Storage upon +// successful completion of all build steps. type ArtifactObjects struct { // Location: Cloud Storage bucket and optional object path, in the form // "gs://bucket/path/to/somewhere/". (see Bucket Name Requirements - // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). - // Files in the workspace matching any path pattern will be uploaded to - // Cloud Storage with this location as a prefix. + // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files + // in the workspace matching any path pattern will be uploaded to Cloud Storage + // with this location as a prefix. Location string `json:"location,omitempty"` - // Paths: Path globs used to match files in the build's workspace. Paths []string `json:"paths,omitempty"` - - // Timing: Output only. Stores timing information for pushing all - // artifact objects. + // Timing: Output only. Stores timing information for pushing all artifact + // objects. Timing *TimeSpan `json:"timing,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Location") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Location") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ArtifactObjects) MarshalJSON() ([]byte, error) { +func (s ArtifactObjects) MarshalJSON() ([]byte, error) { type NoMethod ArtifactObjects - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ArtifactResult: An artifact that was uploaded during a build. This is -// a single record in the artifact manifest JSON file. +// ArtifactResult: An artifact that was uploaded during a build. This is a +// single record in the artifact manifest JSON file. type ArtifactResult struct { // FileHash: The file hash of the artifact. FileHash []*FileHashes `json:"fileHash,omitempty"` - - // Location: The path of an artifact in a Google Cloud Storage bucket, - // with the generation number. For example, + // Location: The path of an artifact in a Google Cloud Storage bucket, with the + // generation number. For example, // `gs://mybucket/path/to/output.jar#generation`. Location string `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHash") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHash") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHash") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ArtifactResult) MarshalJSON() ([]byte, error) { +func (s ArtifactResult) MarshalJSON() ([]byte, error) { type NoMethod ArtifactResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Artifacts: Artifacts produced by a build that should be uploaded upon // successful completion of all build steps. type Artifacts struct { - // Images: A list of images to be pushed upon the successful completion - // of all build steps. The images will be pushed using the builder - // service account's credentials. The digests of the pushed images will - // be stored in the Build resource's results field. If any of the images - // fail to be pushed, the build is marked FAILURE. + // Images: A list of images to be pushed upon the successful completion of all + // build steps. The images will be pushed using the builder service account's + // credentials. The digests of the pushed images will be stored in the Build + // resource's results field. If any of the images fail to be pushed, the build + // is marked FAILURE. Images []string `json:"images,omitempty"` - // MavenArtifacts: A list of Maven artifacts to be uploaded to Artifact - // Registry upon successful completion of all build steps. Artifacts in - // the workspace matching specified paths globs will be uploaded to the - // specified Artifact Registry repository using the builder service - // account's credentials. If any artifacts fail to be pushed, the build - // is marked FAILURE. + // Registry upon successful completion of all build steps. Artifacts in the + // workspace matching specified paths globs will be uploaded to the specified + // Artifact Registry repository using the builder service account's + // credentials. If any artifacts fail to be pushed, the build is marked + // FAILURE. MavenArtifacts []*MavenArtifact `json:"mavenArtifacts,omitempty"` - - // Objects: A list of objects to be uploaded to Cloud Storage upon - // successful completion of all build steps. Files in the workspace - // matching specified paths globs will be uploaded to the specified - // Cloud Storage location using the builder service account's - // credentials. The location and generation of the uploaded objects will - // be stored in the Build resource's results field. If any objects fail - // to be pushed, the build is marked FAILURE. + // Objects: A list of objects to be uploaded to Cloud Storage upon successful + // completion of all build steps. Files in the workspace matching specified + // paths globs will be uploaded to the specified Cloud Storage location using + // the builder service account's credentials. The location and generation of + // the uploaded objects will be stored in the Build resource's results field. + // If any objects fail to be pushed, the build is marked FAILURE. Objects *ArtifactObjects `json:"objects,omitempty"` - // PythonPackages: A list of Python packages to be uploaded to Artifact - // Registry upon successful completion of all build steps. The build - // service account credentials will be used to perform the upload. If - // any objects fail to be pushed, the build is marked FAILURE. + // Registry upon successful completion of all build steps. The build service + // account credentials will be used to perform the upload. If any objects fail + // to be pushed, the build is marked FAILURE. PythonPackages []*PythonPackage `json:"pythonPackages,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Images") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Images") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Images") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Artifacts) MarshalJSON() ([]byte, error) { +func (s Artifacts) MarshalJSON() ([]byte, error) { type NoMethod Artifacts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateBitbucketServerConnectedRepositoriesResponse: Response of -// BatchCreateBitbucketServerConnectedRepositories RPC method including -// all successfully connected Bitbucket Server repositories. +// BatchCreateBitbucketServerConnectedRepositories RPC method including all +// successfully connected Bitbucket Server repositories. type BatchCreateBitbucketServerConnectedRepositoriesResponse struct { // BitbucketServerConnectedRepositories: The connected Bitbucket Server // repositories. BitbucketServerConnectedRepositories []*BitbucketServerConnectedRepository `json:"bitbucketServerConnectedRepositories,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConnectedRepositories") to unconditionally include in - // API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "BitbucketServerConnectedRepositories") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "BitbucketServerConnectedRepositories") to include in API requests - // with the JSON null value. By default, fields with empty values are - // omitted from API requests. However, any field with an empty value - // appearing in NullFields will be sent to the server as null. It is an - // error if a field in this list has a non-empty value. This may be used - // to include null fields in Patch requests. + // "BitbucketServerConnectedRepositories") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } -func (s *BatchCreateBitbucketServerConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { +func (s BatchCreateBitbucketServerConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateBitbucketServerConnectedRepositoriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata: -// Metadata for `BatchCreateBitbucketServerConnectedRepositories` -// operation. +// BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata: Metadata +// for `BatchCreateBitbucketServerConnectedRepositories` operation. type BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // Config: The name of the `BitbucketServerConfig` that added connected // repositories. Format: - // `projects/{project}/locations/{location}/bitbucketServerConfigs/{confi - // g}` + // `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` Config string `json:"config,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { +func (s BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateGitLabConnectedRepositoriesResponse: Response of // BatchCreateGitLabConnectedRepositories RPC method. type BatchCreateGitLabConnectedRepositoriesResponse struct { - // GitlabConnectedRepositories: The GitLab connected repository - // requests' responses. + // GitlabConnectedRepositories: The GitLab connected repository requests' + // responses. GitlabConnectedRepositories []*GitLabConnectedRepository `json:"gitlabConnectedRepositories,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "GitlabConnectedRepositories") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "GitlabConnectedRepositories") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "GitlabConnectedRepositories") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "GitlabConnectedRepositories") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateGitLabConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { +func (s BatchCreateGitLabConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateGitLabConnectedRepositoriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateGitLabConnectedRepositoriesResponseMetadata: Metadata for @@ -507,36 +454,27 @@ func (s *BatchCreateGitLabConnectedRepositoriesResponse) MarshalJSON() ([]byte, type BatchCreateGitLabConnectedRepositoriesResponseMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - - // Config: The name of the `GitLabConfig` that added connected - // repositories. Format: - // `projects/{project}/locations/{location}/gitLabConfigs/{config}` + // Config: The name of the `GitLabConfig` that added connected repositories. + // Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` Config string `json:"config,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateGitLabConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { +func (s BatchCreateGitLabConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateGitLabConnectedRepositoriesResponseMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchCreateRepositoriesResponse: Message for response of creating @@ -544,219 +482,168 @@ func (s *BatchCreateGitLabConnectedRepositoriesResponseMetadata) MarshalJSON() ( type BatchCreateRepositoriesResponse struct { // Repositories: Repository resources created. Repositories []*Repository `json:"repositories,omitempty"` - // ForceSendFields is a list of field names (e.g. "Repositories") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Repositories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Repositories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchCreateRepositoriesResponse) MarshalJSON() ([]byte, error) { +func (s BatchCreateRepositoriesResponse) MarshalJSON() ([]byte, error) { type NoMethod BatchCreateRepositoriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BitbucketServerConnectedRepository: / -// BitbucketServerConnectedRepository represents a connected Bitbucket -// Server / repository. +// BitbucketServerConnectedRepository: / BitbucketServerConnectedRepository +// represents a connected Bitbucket Server / repository. type BitbucketServerConnectedRepository struct { // Parent: The name of the `BitbucketServerConfig` that added connected // repository. Format: - // `projects/{project}/locations/{location}/bitbucketServerConfigs/{confi - // g}` + // `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}` Parent string `json:"parent,omitempty"` - // Repo: The Bitbucket Server repositories to connect. Repo *BitbucketServerRepositoryId `json:"repo,omitempty"` - // Status: Output only. The status of the repo connection request. Status *Status `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BitbucketServerConnectedRepository) MarshalJSON() ([]byte, error) { +func (s BitbucketServerConnectedRepository) MarshalJSON() ([]byte, error) { type NoMethod BitbucketServerConnectedRepository - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BitbucketServerRepositoryId: BitbucketServerRepositoryId identifies a // specific repository hosted on a Bitbucket Server. type BitbucketServerRepositoryId struct { - // ProjectKey: Required. Identifier for the project storing the - // repository. + // ProjectKey: Required. Identifier for the project storing the repository. ProjectKey string `json:"projectKey,omitempty"` - // RepoSlug: Required. Identifier for the repository. RepoSlug string `json:"repoSlug,omitempty"` - - // WebhookId: Output only. The ID of the webhook that was created for - // receiving events from this repo. We only create and manage a single - // webhook for each repo. + // WebhookId: Output only. The ID of the webhook that was created for receiving + // events from this repo. We only create and manage a single webhook for each + // repo. WebhookId int64 `json:"webhookId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectKey") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProjectKey") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProjectKey") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BitbucketServerRepositoryId) MarshalJSON() ([]byte, error) { +func (s BitbucketServerRepositoryId) MarshalJSON() ([]byte, error) { type NoMethod BitbucketServerRepositoryId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Build: A build resource in the Cloud Build API. At a high level, a -// `Build` describes where to find source code, how to build it (for -// example, the builder image to run on the source), and where to store -// the built artifacts. Fields can include the following variables, -// which will be expanded when the build is created: - $PROJECT_ID: the -// project ID of the build. - $PROJECT_NUMBER: the project number of the -// build. - $LOCATION: the location/region of the build. - $BUILD_ID: -// the autogenerated ID of the build. - $REPO_NAME: the source -// repository name specified by RepoSource. - $BRANCH_NAME: the branch -// name specified by RepoSource. - $TAG_NAME: the tag name specified by -// RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified -// by RepoSource or resolved from the specified branch or tag. - + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Build: A build resource in the Cloud Build API. At a high level, a `Build` +// describes where to find source code, how to build it (for example, the +// builder image to run on the source), and where to store the built artifacts. +// Fields can include the following variables, which will be expanded when the +// build is created: - $PROJECT_ID: the project ID of the build. - +// $PROJECT_NUMBER: the project number of the build. - $LOCATION: the +// location/region of the build. - $BUILD_ID: the autogenerated ID of the +// build. - $REPO_NAME: the source repository name specified by RepoSource. - +// $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag +// name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA +// specified by RepoSource or resolved from the specified branch or tag. - // $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. type Build struct { // Approval: Output only. Describes this build's approval configuration, // status, and result. Approval *BuildApproval `json:"approval,omitempty"` - - // Artifacts: Artifacts produced by the build that should be uploaded - // upon successful completion of all build steps. + // Artifacts: Artifacts produced by the build that should be uploaded upon + // successful completion of all build steps. Artifacts *Artifacts `json:"artifacts,omitempty"` - // AvailableSecrets: Secrets and secret environment variables. AvailableSecrets *Secrets `json:"availableSecrets,omitempty"` - - // BuildTriggerId: Output only. The ID of the `BuildTrigger` that - // triggered this build, if it was triggered automatically. + // BuildTriggerId: Output only. The ID of the `BuildTrigger` that triggered + // this build, if it was triggered automatically. BuildTriggerId string `json:"buildTriggerId,omitempty"` - - // CreateTime: Output only. Time at which the request to create the - // build was received. + // CreateTime: Output only. Time at which the request to create the build was + // received. CreateTime string `json:"createTime,omitempty"` - // FailureInfo: Output only. Contains information about the build when // status=FAILURE. FailureInfo *FailureInfo `json:"failureInfo,omitempty"` - - // FinishTime: Output only. Time at which execution of the build was - // finished. The difference between finish_time and start_time is the - // duration of the build's execution. + // FinishTime: Output only. Time at which execution of the build was finished. + // The difference between finish_time and start_time is the duration of the + // build's execution. FinishTime string `json:"finishTime,omitempty"` - // Id: Output only. Unique identifier of the build. Id string `json:"id,omitempty"` - - // Images: A list of images to be pushed upon the successful completion - // of all build steps. The images are pushed using the builder service - // account's credentials. The digests of the pushed images will be - // stored in the `Build` resource's results field. If any of the images - // fail to be pushed, the build status is marked `FAILURE`. + // Images: A list of images to be pushed upon the successful completion of all + // build steps. The images are pushed using the builder service account's + // credentials. The digests of the pushed images will be stored in the `Build` + // resource's results field. If any of the images fail to be pushed, the build + // status is marked `FAILURE`. Images []string `json:"images,omitempty"` - - // LogUrl: Output only. URL to logs for this build in Google Cloud - // Console. + // LogUrl: Output only. URL to logs for this build in Google Cloud Console. LogUrl string `json:"logUrl,omitempty"` - - // LogsBucket: Google Cloud Storage bucket where logs should be written - // (see Bucket Name Requirements - // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). - // Logs file names will be of the format - // `${logs_bucket}/log-${build_id}.txt`. + // LogsBucket: Google Cloud Storage bucket where logs should be written (see + // Bucket Name Requirements + // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs + // file names will be of the format `${logs_bucket}/log-${build_id}.txt`. LogsBucket string `json:"logsBucket,omitempty"` - // Name: Output only. The 'Build' name with format: - // `projects/{project}/locations/{location}/builds/{build}`, where - // {build} is a unique identifier generated by the service. + // `projects/{project}/locations/{location}/builds/{build}`, where {build} is a + // unique identifier generated by the service. Name string `json:"name,omitempty"` - // Options: Special options for this build. Options *BuildOptions `json:"options,omitempty"` - // ProjectId: Output only. ID of the project. ProjectId string `json:"projectId,omitempty"` - - // QueueTtl: TTL in queue for this build. If provided and the build is - // enqueued longer than this value, the build will expire and the build - // status will be `EXPIRED`. The TTL starts ticking from create_time. + // QueueTtl: TTL in queue for this build. If provided and the build is enqueued + // longer than this value, the build will expire and the build status will be + // `EXPIRED`. The TTL starts ticking from create_time. QueueTtl string `json:"queueTtl,omitempty"` - // Results: Output only. Results of the build. Results *Results `json:"results,omitempty"` - - // Secrets: Secrets to decrypt using Cloud Key Management Service. Note: - // Secret Manager is the recommended technique for managing sensitive - // data with Cloud Build. Use `available_secrets` to configure builds to - // access secrets from Secret Manager. For instructions, see: + // Secrets: Secrets to decrypt using Cloud Key Management Service. Note: Secret + // Manager is the recommended technique for managing sensitive data with Cloud + // Build. Use `available_secrets` to configure builds to access secrets from + // Secret Manager. For instructions, see: // https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets Secrets []*Secret `json:"secrets,omitempty"` - - // ServiceAccount: IAM service account whose credentials will be used at - // build runtime. Must be of the format - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be - // email address or uniqueId of the service account. + // ServiceAccount: IAM service account whose credentials will be used at build + // runtime. Must be of the format + // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email + // address or uniqueId of the service account. ServiceAccount string `json:"serviceAccount,omitempty"` - // Source: The location of the source files to build. Source *Source `json:"source,omitempty"` - - // SourceProvenance: Output only. A permanent fixed identifier for - // source. + // SourceProvenance: Output only. A permanent fixed identifier for source. SourceProvenance *SourceProvenance `json:"sourceProvenance,omitempty"` - - // StartTime: Output only. Time at which execution of the build was - // started. + // StartTime: Output only. Time at which execution of the build was started. StartTime string `json:"startTime,omitempty"` - // Status: Output only. Status of the build. // // Possible values: // "STATUS_UNKNOWN" - Status of the build is unknown. - // "PENDING" - Build has been created and is pending execution and - // queuing. It has not been queued. + // "PENDING" - Build has been created and is pending execution and queuing. + // It has not been queued. // "QUEUED" - Build or step is queued; work has not yet begun. // "WORKING" - Build or step is being executed. // "SUCCESS" - Build or step finished successfully. @@ -764,73 +651,57 @@ type Build struct { // "INTERNAL_ERROR" - Build or step failed due to an internal cause. // "TIMEOUT" - Build or step took longer than was allowed. // "CANCELLED" - Build or step was canceled by a user. - // "EXPIRED" - Build was enqueued for longer than the value of - // `queue_ttl`. + // "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`. Status string `json:"status,omitempty"` - - // StatusDetail: Output only. Customer-readable message about the - // current status. + // StatusDetail: Output only. Customer-readable message about the current + // status. StatusDetail string `json:"statusDetail,omitempty"` - // Steps: Required. The operations to be performed on the workspace. Steps []*BuildStep `json:"steps,omitempty"` - // Substitutions: Substitutions data for `Build` resource. Substitutions map[string]string `json:"substitutions,omitempty"` - // Tags: Tags for annotation of a `Build`. These are not docker tags. Tags []string `json:"tags,omitempty"` - - // Timeout: Amount of time that this build should be allowed to run, to - // second granularity. If this amount of time elapses, work on the build - // will cease and the build status will be `TIMEOUT`. `timeout` starts - // ticking from `startTime`. Default time is ten minutes. + // Timeout: Amount of time that this build should be allowed to run, to second + // granularity. If this amount of time elapses, work on the build will cease + // and the build status will be `TIMEOUT`. `timeout` starts ticking from + // `startTime`. Default time is ten minutes. Timeout string `json:"timeout,omitempty"` - - // Timing: Output only. Stores timing information for phases of the - // build. Valid keys are: * BUILD: time to execute all build steps. * - // PUSH: time to push all artifacts including docker images and non - // docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: - // time to set up build. If the build does not specify source or images, - // these keys will not be included. + // Timing: Output only. Stores timing information for phases of the build. + // Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to + // push all artifacts including docker images and non docker artifacts. * + // FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If + // the build does not specify source or images, these keys will not be + // included. Timing map[string]TimeSpan `json:"timing,omitempty"` - - // Warnings: Output only. Non-fatal problems encountered during the - // execution of the build. + // Warnings: Output only. Non-fatal problems encountered during the execution + // of the build. Warnings []*Warning `json:"warnings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Approval") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Approval") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Approval") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Build) MarshalJSON() ([]byte, error) { +func (s Build) MarshalJSON() ([]byte, error) { type NoMethod Build - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildApproval: BuildApproval describes a build's approval -// configuration, state, and result. +// BuildApproval: BuildApproval describes a build's approval configuration, +// state, and result. type BuildApproval struct { // Config: Output only. Configuration for manual approval of this build. Config *ApprovalConfig `json:"config,omitempty"` - // Result: Output only. Result of manual approval for this Build. Result *ApprovalResult `json:"result,omitempty"` - // State: Output only. The state of this build's approval. // // Possible values: @@ -838,115 +709,92 @@ type BuildApproval struct { // "PENDING" - Build approval is pending. // "APPROVED" - Build approval has been approved. // "REJECTED" - Build approval has been rejected. - // "CANCELLED" - Build was cancelled while it was still pending - // approval. + // "CANCELLED" - Build was cancelled while it was still pending approval. State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildApproval) MarshalJSON() ([]byte, error) { +func (s BuildApproval) MarshalJSON() ([]byte, error) { type NoMethod BuildApproval - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildOperationMetadata: Metadata for build operations. type BuildOperationMetadata struct { // Build: The build that the operation is tracking. Build *Build `json:"build,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Build") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Build") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Build") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildOperationMetadata) MarshalJSON() ([]byte, error) { +func (s BuildOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildOptions: Optional arguments to enable specific features of -// builds. +// BuildOptions: Optional arguments to enable specific features of builds. type BuildOptions struct { - // DiskSizeGb: Requested disk size for the VM that runs the build. Note - // that this is *NOT* "disk free"; some of the space will be used by the - // operating system and build utilities. Also note that this is the - // minimum disk size that will be allocated for the build -- the build - // may run with a larger disk than requested. At present, the maximum - // disk size is 2000GB; builds that request more than the maximum are - // rejected with an error. + // DiskSizeGb: Requested disk size for the VM that runs the build. Note that + // this is *NOT* "disk free"; some of the space will be used by the operating + // system and build utilities. Also note that this is the minimum disk size + // that will be allocated for the build -- the build may run with a larger disk + // than requested. At present, the maximum disk size is 2000GB; builds that + // request more than the maximum are rejected with an error. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // DynamicSubstitutions: Option to specify whether or not to apply bash - // style string operations to the substitutions. NOTE: this is always - // enabled for triggered builds and cannot be overridden in the build - // configuration file. + // DynamicSubstitutions: Option to specify whether or not to apply bash style + // string operations to the substitutions. NOTE: this is always enabled for + // triggered builds and cannot be overridden in the build configuration file. DynamicSubstitutions bool `json:"dynamicSubstitutions,omitempty"` - - // Env: A list of global environment variable definitions that will - // exist for all build steps in this build. If a variable is defined in - // both globally and in a build step, the variable will use the build - // step value. The elements are of the form "KEY=VALUE" for the - // environment variable "KEY" being given the value "VALUE". + // Env: A list of global environment variable definitions that will exist for + // all build steps in this build. If a variable is defined in both globally and + // in a build step, the variable will use the build step value. The elements + // are of the form "KEY=VALUE" for the environment variable "KEY" being given + // the value "VALUE". Env []string `json:"env,omitempty"` - - // LogStreamingOption: Option to define build log streaming behavior to - // Google Cloud Storage. + // LogStreamingOption: Option to define build log streaming behavior to Google + // Cloud Storage. // // Possible values: - // "STREAM_DEFAULT" - Service may automatically determine build log - // streaming behavior. - // "STREAM_ON" - Build logs should be streamed to Google Cloud - // Storage. - // "STREAM_OFF" - Build logs should not be streamed to Google Cloud - // Storage; they will be written when the build is completed. + // "STREAM_DEFAULT" - Service may automatically determine build log streaming + // behavior. + // "STREAM_ON" - Build logs should be streamed to Google Cloud Storage. + // "STREAM_OFF" - Build logs should not be streamed to Google Cloud Storage; + // they will be written when the build is completed. LogStreamingOption string `json:"logStreamingOption,omitempty"` - - // Logging: Option to specify the logging mode, which determines if and - // where build logs are stored. + // Logging: Option to specify the logging mode, which determines if and where + // build logs are stored. // // Possible values: - // "LOGGING_UNSPECIFIED" - The service determines the logging mode. - // The default is `LEGACY`. Do not rely on the default logging behavior - // as it may change in the future. - // "LEGACY" - Build logs are stored in Cloud Logging and Cloud - // Storage. + // "LOGGING_UNSPECIFIED" - The service determines the logging mode. The + // default is `LEGACY`. Do not rely on the default logging behavior as it may + // change in the future. + // "LEGACY" - Build logs are stored in Cloud Logging and Cloud Storage. // "GCS_ONLY" - Build logs are stored in Cloud Storage. // "STACKDRIVER_ONLY" - This option is the same as CLOUD_LOGGING_ONLY. - // "CLOUD_LOGGING_ONLY" - Build logs are stored in Cloud Logging. - // Selecting this option will not allow [logs + // "CLOUD_LOGGING_ONLY" - Build logs are stored in Cloud Logging. Selecting + // this option will not allow [logs // streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). // "NONE" - Turn off all logging. No build logs will be captured. Logging string `json:"logging,omitempty"` - // MachineType: Compute Engine machine type on which to run the build. // // Possible values: @@ -956,26 +804,22 @@ type BuildOptions struct { // "E2_HIGHCPU_8" - Highcpu e2 machine with 8 CPUs. // "E2_HIGHCPU_32" - Highcpu e2 machine with 32 CPUs. MachineType string `json:"machineType,omitempty"` - - // Pool: Optional. Specification for execution on a `WorkerPool`. See - // running builds in a private pool + // Pool: Optional. Specification for execution on a `WorkerPool`. See running + // builds in a private pool // (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) // for more information. Pool *PoolOption `json:"pool,omitempty"` - // RequestedVerifyOption: Requested verifiability options. // // Possible values: // "NOT_VERIFIED" - Not a verifiable build (the default). // "VERIFIED" - Build must be verified. RequestedVerifyOption string `json:"requestedVerifyOption,omitempty"` - - // SecretEnv: A list of global environment variables, which are - // encrypted using a Cloud Key Management Service crypto key. These - // values must be specified in the build's `Secret`. These variables - // will be available to all build steps in this build. + // SecretEnv: A list of global environment variables, which are encrypted using + // a Cloud Key Management Service crypto key. These values must be specified in + // the build's `Secret`. These variables will be available to all build steps + // in this build. SecretEnv []string `json:"secretEnv,omitempty"` - // SourceProvenanceHash: Requested hash for SourceProvenance. // // Possible values: @@ -983,138 +827,112 @@ type BuildOptions struct { // "SHA256" - Use a sha256 hash. // "MD5" - Use a md5 hash. SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"` - - // SubstitutionOption: Option to specify behavior when there is an error - // in the substitution checks. NOTE: this is always set to ALLOW_LOOSE - // for triggered builds and cannot be overridden in the build - // configuration file. + // SubstitutionOption: Option to specify behavior when there is an error in the + // substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered + // builds and cannot be overridden in the build configuration file. // // Possible values: - // "MUST_MATCH" - Fails the build if error in substitutions checks, - // like missing a substitution in the template or in the map. - // "ALLOW_LOOSE" - Do not fail the build if error in substitutions - // checks. + // "MUST_MATCH" - Fails the build if error in substitutions checks, like + // missing a substitution in the template or in the map. + // "ALLOW_LOOSE" - Do not fail the build if error in substitutions checks. SubstitutionOption string `json:"substitutionOption,omitempty"` - - // Volumes: Global list of volumes to mount for ALL build steps Each - // volume is created as an empty volume prior to starting the build - // process. Upon completion of the build, volumes and their contents are - // discarded. Global volume names and paths cannot conflict with the - // volumes defined a build step. Using a global volume in a build with - // only one step is not valid as it is indicative of a build request - // with an incorrect configuration. + // Volumes: Global list of volumes to mount for ALL build steps Each volume is + // created as an empty volume prior to starting the build process. Upon + // completion of the build, volumes and their contents are discarded. Global + // volume names and paths cannot conflict with the volumes defined a build + // step. Using a global volume in a build with only one step is not valid as it + // is indicative of a build request with an incorrect configuration. Volumes []*Volume `json:"volumes,omitempty"` - // WorkerPool: This field deprecated; please use `pool.name` instead. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DiskSizeGb") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DiskSizeGb") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildOptions) MarshalJSON() ([]byte, error) { +func (s BuildOptions) MarshalJSON() ([]byte, error) { type NoMethod BuildOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildStep: A step in the build pipeline. type BuildStep struct { - // AllowExitCodes: Allow this build step to fail without failing the - // entire build if and only if the exit code is one of the specified - // codes. If allow_failure is also specified, this field will take - // precedence. + // AllowExitCodes: Allow this build step to fail without failing the entire + // build if and only if the exit code is one of the specified codes. If + // allow_failure is also specified, this field will take precedence. AllowExitCodes []int64 `json:"allowExitCodes,omitempty"` - - // AllowFailure: Allow this build step to fail without failing the - // entire build. If false, the entire build will fail if this step - // fails. Otherwise, the build will succeed, but this step will still - // have a failure status. Error information will be reported in the - // failure_detail field. + // AllowFailure: Allow this build step to fail without failing the entire + // build. If false, the entire build will fail if this step fails. Otherwise, + // the build will succeed, but this step will still have a failure status. + // Error information will be reported in the failure_detail field. AllowFailure bool `json:"allowFailure,omitempty"` - - // Args: A list of arguments that will be presented to the step when it - // is started. If the image used to run the step's container has an - // entrypoint, the `args` are used as arguments to that entrypoint. If - // the image does not define an entrypoint, the first element in args is - // used as the entrypoint, and the remainder will be used as arguments. + // Args: A list of arguments that will be presented to the step when it is + // started. If the image used to run the step's container has an entrypoint, + // the `args` are used as arguments to that entrypoint. If the image does not + // define an entrypoint, the first element in args is used as the entrypoint, + // and the remainder will be used as arguments. Args []string `json:"args,omitempty"` - - // Dir: Working directory to use when running this step's container. If - // this value is a relative path, it is relative to the build's working - // directory. If this value is absolute, it may be outside the build's - // working directory, in which case the contents of the path may not be - // persisted across build step executions, unless a `volume` for that - // path is specified. If the build specifies a `RepoSource` with `dir` - // and a step with a `dir`, which specifies an absolute path, the - // `RepoSource` `dir` is ignored for the step's execution. + // Dir: Working directory to use when running this step's container. If this + // value is a relative path, it is relative to the build's working directory. + // If this value is absolute, it may be outside the build's working directory, + // in which case the contents of the path may not be persisted across build + // step executions, unless a `volume` for that path is specified. If the build + // specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies + // an absolute path, the `RepoSource` `dir` is ignored for the step's + // execution. Dir string `json:"dir,omitempty"` - - // Entrypoint: Entrypoint to be used instead of the build step image's - // default entrypoint. If unset, the image's default entrypoint is used. + // Entrypoint: Entrypoint to be used instead of the build step image's default + // entrypoint. If unset, the image's default entrypoint is used. Entrypoint string `json:"entrypoint,omitempty"` - - // Env: A list of environment variable definitions to be used when - // running a step. The elements are of the form "KEY=VALUE" for the - // environment variable "KEY" being given the value "VALUE". + // Env: A list of environment variable definitions to be used when running a + // step. The elements are of the form "KEY=VALUE" for the environment variable + // "KEY" being given the value "VALUE". Env []string `json:"env,omitempty"` - // ExitCode: Output only. Return code from running the step. ExitCode int64 `json:"exitCode,omitempty"` - - // Id: Unique identifier for this build step, used in `wait_for` to - // reference this build step as a dependency. + // Id: Unique identifier for this build step, used in `wait_for` to reference + // this build step as a dependency. Id string `json:"id,omitempty"` - // Name: Required. The name of the container image that will run this // particular build step. If the image is available in the host's Docker - // daemon's cache, it will be run directly. If not, the host will - // attempt to pull the image first, using the builder service account's - // credentials if necessary. The Docker daemon's cache will already have - // the latest versions of all of the officially supported build steps + // daemon's cache, it will be run directly. If not, the host will attempt to + // pull the image first, using the builder service account's credentials if + // necessary. The Docker daemon's cache will already have the latest versions + // of all of the officially supported build steps // (https://github.com/GoogleCloudPlatform/cloud-builders - // (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker - // daemon will also have cached many of the layers for some popular - // images, like "ubuntu", "debian", but they will be refreshed at the - // time you attempt to use them. If you built an image in a previous - // build step, it will be stored in the host's Docker daemon's cache and - // is available to use as the name for a later build step. + // (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon + // will also have cached many of the layers for some popular images, like + // "ubuntu", "debian", but they will be refreshed at the time you attempt to + // use them. If you built an image in a previous build step, it will be stored + // in the host's Docker daemon's cache and is available to use as the name for + // a later build step. Name string `json:"name,omitempty"` - - // PullTiming: Output only. Stores timing information for pulling this - // build step's builder image only. + // PullTiming: Output only. Stores timing information for pulling this build + // step's builder image only. PullTiming *TimeSpan `json:"pullTiming,omitempty"` - - // Script: A shell script to be executed in the step. When script is - // provided, the user cannot specify the entrypoint or args. + // Script: A shell script to be executed in the step. When script is provided, + // the user cannot specify the entrypoint or args. Script string `json:"script,omitempty"` - - // SecretEnv: A list of environment variables which are encrypted using - // a Cloud Key Management Service crypto key. These values must be - // specified in the build's `Secret`. + // SecretEnv: A list of environment variables which are encrypted using a Cloud + // Key Management Service crypto key. These values must be specified in the + // build's `Secret`. SecretEnv []string `json:"secretEnv,omitempty"` - - // Status: Output only. Status of the build step. At this time, build - // step status is only updated on build completion; step status is not - // updated in real-time as the build progresses. + // Status: Output only. Status of the build step. At this time, build step + // status is only updated on build completion; step status is not updated in + // real-time as the build progresses. // // Possible values: // "STATUS_UNKNOWN" - Status of the build is unknown. - // "PENDING" - Build has been created and is pending execution and - // queuing. It has not been queued. + // "PENDING" - Build has been created and is pending execution and queuing. + // It has not been queued. // "QUEUED" - Build or step is queued; work has not yet begun. // "WORKING" - Build or step is being executed. // "SUCCESS" - Build or step finished successfully. @@ -1122,135 +940,104 @@ type BuildStep struct { // "INTERNAL_ERROR" - Build or step failed due to an internal cause. // "TIMEOUT" - Build or step took longer than was allowed. // "CANCELLED" - Build or step was canceled by a user. - // "EXPIRED" - Build was enqueued for longer than the value of - // `queue_ttl`. + // "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`. Status string `json:"status,omitempty"` - - // Timeout: Time limit for executing this build step. If not defined, - // the step has no time limit and will be allowed to continue to run - // until either it completes or the build itself times out. + // Timeout: Time limit for executing this build step. If not defined, the step + // has no time limit and will be allowed to continue to run until either it + // completes or the build itself times out. Timeout string `json:"timeout,omitempty"` - - // Timing: Output only. Stores timing information for executing this - // build step. + // Timing: Output only. Stores timing information for executing this build + // step. Timing *TimeSpan `json:"timing,omitempty"` - // Volumes: List of volumes to mount into the build step. Each volume is // created as an empty volume prior to execution of the build step. Upon - // completion of the build, volumes and their contents are discarded. - // Using a named volume in only one step is not valid as it is - // indicative of a build request with an incorrect configuration. + // completion of the build, volumes and their contents are discarded. Using a + // named volume in only one step is not valid as it is indicative of a build + // request with an incorrect configuration. Volumes []*Volume `json:"volumes,omitempty"` - - // WaitFor: The ID(s) of the step(s) that this build step depends on. - // This build step will not start until all the build steps in - // `wait_for` have completed successfully. If `wait_for` is empty, this - // build step will start when all previous build steps in the - // `Build.Steps` list have completed successfully. + // WaitFor: The ID(s) of the step(s) that this build step depends on. This + // build step will not start until all the build steps in `wait_for` have + // completed successfully. If `wait_for` is empty, this build step will start + // when all previous build steps in the `Build.Steps` list have completed + // successfully. WaitFor []string `json:"waitFor,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowExitCodes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowExitCodes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowExitCodes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildStep) MarshalJSON() ([]byte, error) { +func (s BuildStep) MarshalJSON() ([]byte, error) { type NoMethod BuildStep - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuiltImage: An image built by the pipeline. type BuiltImage struct { // Digest: Docker Registry 2.0 digest. Digest string `json:"digest,omitempty"` - - // Name: Name used to push the container image to Google Container - // Registry, as presented to `docker push`. + // Name: Name used to push the container image to Google Container Registry, as + // presented to `docker push`. Name string `json:"name,omitempty"` - - // PushTiming: Output only. Stores timing information for pushing the - // specified image. + // PushTiming: Output only. Stores timing information for pushing the specified + // image. PushTiming *TimeSpan `json:"pushTiming,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuiltImage) MarshalJSON() ([]byte, error) { +func (s BuiltImage) MarshalJSON() ([]byte, error) { type NoMethod BuiltImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. +// CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } // CreateBitbucketServerConfigOperationMetadata: Metadata for // `CreateBitbucketServerConfig` operation. type CreateBitbucketServerConfigOperationMetadata struct { - // BitbucketServerConfig: The resource name of the BitbucketServerConfig - // to be created. Format: + // BitbucketServerConfig: The resource name of the BitbucketServerConfig to be + // created. Format: // `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"` - // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConfig") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BitbucketServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateBitbucketServerConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateGitHubEnterpriseConfigOperationMetadata: Metadata for @@ -1258,148 +1045,113 @@ func (s *CreateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, er type CreateGitHubEnterpriseConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be created. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // created. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateGitHubEnterpriseConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreateGitLabConfigOperationMetadata: Metadata for -// `CreateGitLabConfig` operation. +// CreateGitLabConfigOperationMetadata: Metadata for `CreateGitLabConfig` +// operation. type CreateGitLabConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. + // GitlabConfig: The resource name of the GitLabConfig to be created. Format: + // `projects/{project}/locations/{location}/gitlabConfigs/{id}`. GitlabConfig string `json:"gitlabConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreateWorkerPoolOperationMetadata: Metadata for the -// `CreateWorkerPool` operation. +// CreateWorkerPoolOperationMetadata: Metadata for the `CreateWorkerPool` +// operation. type CreateWorkerPoolOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - // WorkerPool: The resource name of the `WorkerPool` to create. Format: // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { +func (s CreateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreateWorkerPoolOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeleteBitbucketServerConfigOperationMetadata: Metadata for // `DeleteBitbucketServerConfig` operation. type DeleteBitbucketServerConfigOperationMetadata struct { - // BitbucketServerConfig: The resource name of the BitbucketServerConfig - // to be deleted. Format: + // BitbucketServerConfig: The resource name of the BitbucketServerConfig to be + // deleted. Format: // `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"` - // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConfig") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BitbucketServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteBitbucketServerConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeleteGitHubEnterpriseConfigOperationMetadata: Metadata for @@ -1407,130 +1159,99 @@ func (s *DeleteBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, er type DeleteGitHubEnterpriseConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be deleted. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // deleted. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteGitHubEnterpriseConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeleteGitLabConfigOperationMetadata: Metadata for -// `DeleteGitLabConfig` operation. +// DeleteGitLabConfigOperationMetadata: Metadata for `DeleteGitLabConfig` +// operation. type DeleteGitLabConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. + // GitlabConfig: The resource name of the GitLabConfig to be created. Format: + // `projects/{project}/locations/{location}/gitlabConfigs/{id}`. GitlabConfig string `json:"gitlabConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeleteWorkerPoolOperationMetadata: Metadata for the -// `DeleteWorkerPool` operation. +// DeleteWorkerPoolOperationMetadata: Metadata for the `DeleteWorkerPool` +// operation. type DeleteWorkerPoolOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // WorkerPool: The resource name of the `WorkerPool` being deleted. - // Format: + // WorkerPool: The resource name of the `WorkerPool` being deleted. Format: // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { +func (s DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod DeleteWorkerPoolOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// FailureInfo: A fatal problem encountered during the execution of the -// build. +// FailureInfo: A fatal problem encountered during the execution of the build. type FailureInfo struct { - // Detail: Explains the failure issue in more detail using hard-coded - // text. + // Detail: Explains the failure issue in more detail using hard-coded text. Detail string `json:"detail,omitempty"` - // Type: The name of the failure. // // Possible values: @@ -1542,213 +1263,163 @@ type FailureInfo struct { // "USER_BUILD_STEP" - A build step has failed. // "FETCH_SOURCE_FAILED" - The source fetching has failed. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Detail") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Detail") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FailureInfo) MarshalJSON() ([]byte, error) { +func (s FailureInfo) MarshalJSON() ([]byte, error) { type NoMethod FailureInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FileHashes: Container message for hashes of byte content of files, -// used in SourceProvenance messages to verify integrity of source input -// to the build. +// FileHashes: Container message for hashes of byte content of files, used in +// SourceProvenance messages to verify integrity of source input to the build. type FileHashes struct { // FileHash: Collection of file hashes. FileHash []*Hash `json:"fileHash,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHash") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHash") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHash") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileHashes) MarshalJSON() ([]byte, error) { +func (s FileHashes) MarshalJSON() ([]byte, error) { type NoMethod FileHashes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GitLabConnectedRepository: GitLabConnectedRepository represents a -// GitLab connected repository request response. +// GitLabConnectedRepository: GitLabConnectedRepository represents a GitLab +// connected repository request response. type GitLabConnectedRepository struct { - // Parent: The name of the `GitLabConfig` that added connected - // repository. Format: - // `projects/{project}/locations/{location}/gitLabConfigs/{config}` + // Parent: The name of the `GitLabConfig` that added connected repository. + // Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` Parent string `json:"parent,omitempty"` - // Repo: The GitLab repositories to connect. Repo *GitLabRepositoryId `json:"repo,omitempty"` - // Status: Output only. The status of the repo connection request. Status *Status `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GitLabConnectedRepository) MarshalJSON() ([]byte, error) { +func (s GitLabConnectedRepository) MarshalJSON() ([]byte, error) { type NoMethod GitLabConnectedRepository - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GitLabRepositoryId: GitLabRepositoryId identifies a specific -// repository hosted on GitLab.com or GitLabEnterprise +// GitLabRepositoryId: GitLabRepositoryId identifies a specific repository +// hosted on GitLab.com or GitLabEnterprise type GitLabRepositoryId struct { // Id: Required. Identifier for the repository. example: - // "namespace/project-slug", namespace is usually the username or group - // ID + // "namespace/project-slug", namespace is usually the username or group ID Id string `json:"id,omitempty"` - - // WebhookId: Output only. The ID of the webhook that was created for - // receiving events from this repo. We only create and manage a single - // webhook for each repo. + // WebhookId: Output only. The ID of the webhook that was created for receiving + // events from this repo. We only create and manage a single webhook for each + // repo. WebhookId int64 `json:"webhookId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GitLabRepositoryId) MarshalJSON() ([]byte, error) { +func (s GitLabRepositoryId) MarshalJSON() ([]byte, error) { type NoMethod GitLabRepositoryId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata -// of the long-running operation. +// GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata of the +// long-running operation. type GoogleDevtoolsCloudbuildV2OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` - // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // requested cancellation of the operation. Operations that have successfully + // been cancelled have Operation.error value with a google.rpc.Status.code of + // 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // StatusMessage: Output only. Human-readable status of the operation, - // if any. + // StatusMessage: Output only. Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Output only. Server-defined resource path for the target of the + // operation. Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsCloudbuildV2OperationMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsCloudbuildV2OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsCloudbuildV2OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // HTTPDelivery: HTTPDelivery is the delivery configuration for an HTTP // notification. type HTTPDelivery struct { - // Uri: The URI to which JSON-containing HTTP POST requests should be - // sent. + // Uri: The URI to which JSON-containing HTTP POST requests should be sent. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HTTPDelivery) MarshalJSON() ([]byte, error) { +func (s HTTPDelivery) MarshalJSON() ([]byte, error) { type NoMethod HTTPDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Hash: Container message for hash values. @@ -1760,69 +1431,54 @@ type Hash struct { // "SHA256" - Use a sha256 hash. // "MD5" - Use a md5 hash. Type string `json:"type,omitempty"` - // Value: The hash value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Hash) MarshalJSON() ([]byte, error) { +func (s Hash) MarshalJSON() ([]byte, error) { type NoMethod Hash - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InlineSecret: Pairs a set of secret environment variables mapped to // encrypted values with the Cloud KMS key to use to decrypt the value. type InlineSecret struct { - // EnvMap: Map of environment variable name to its encrypted value. - // Secret environment variables must be unique across all of a build's - // secrets, and must be used by at least one build step. Values can be - // at most 64 KB in size. There can be at most 100 secret values across - // all of a build's secrets. + // EnvMap: Map of environment variable name to its encrypted value. Secret + // environment variables must be unique across all of a build's secrets, and + // must be used by at least one build step. Values can be at most 64 KB in + // size. There can be at most 100 secret values across all of a build's + // secrets. EnvMap map[string]string `json:"envMap,omitempty"` - - // KmsKeyName: Resource name of Cloud KMS crypto key to decrypt the - // encrypted value. In format: - // projects/*/locations/*/keyRings/*/cryptoKeys/* + // KmsKeyName: Resource name of Cloud KMS crypto key to decrypt the encrypted + // value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/* KmsKeyName string `json:"kmsKeyName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnvMap") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnvMap") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EnvMap") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InlineSecret) MarshalJSON() ([]byte, error) { +func (s InlineSecret) MarshalJSON() ([]byte, error) { type NoMethod InlineSecret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListWorkerPoolsResponse: Response containing existing `WorkerPools`. @@ -1830,482 +1486,372 @@ type ListWorkerPoolsResponse struct { // WorkerPools: `WorkerPools` for the specified project. WorkerPools []*WorkerPool `json:"workerPools,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "WorkerPools") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "WorkerPools") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "WorkerPools") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { +func (s ListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListWorkerPoolsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MavenArtifact: A Maven artifact to upload to Artifact Registry upon // successful completion of all build steps. type MavenArtifact struct { - // ArtifactId: Maven `artifactId` value used when uploading the artifact - // to Artifact Registry. - ArtifactId string `json:"artifactId,omitempty"` - - // GroupId: Maven `groupId` value used when uploading the artifact to + // ArtifactId: Maven `artifactId` value used when uploading the artifact to // Artifact Registry. + ArtifactId string `json:"artifactId,omitempty"` + // GroupId: Maven `groupId` value used when uploading the artifact to Artifact + // Registry. GroupId string `json:"groupId,omitempty"` - // Path: Path to an artifact in the build's workspace to be uploaded to // Artifact Registry. This can be either an absolute path, e.g. - // /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path - // from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + // /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from + // /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. Path string `json:"path,omitempty"` - // Repository: Artifact Registry repository, in the form // "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the - // workspace specified by path will be uploaded to Artifact Registry - // with this location as a prefix. + // workspace specified by path will be uploaded to Artifact Registry with this + // location as a prefix. Repository string `json:"repository,omitempty"` - - // Version: Maven `version` value used when uploading the artifact to - // Artifact Registry. + // Version: Maven `version` value used when uploading the artifact to Artifact + // Registry. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArtifactId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArtifactId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArtifactId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MavenArtifact) MarshalJSON() ([]byte, error) { +func (s MavenArtifact) MarshalJSON() ([]byte, error) { type NoMethod MavenArtifact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NetworkConfig: Network describes the network configuration for a // `WorkerPool`. type NetworkConfig struct { - // PeeredNetwork: Required. Immutable. The network definition that the - // workers are peered to. If this section is left empty, the workers - // will be peered to `WorkerPool.project_id` on the service producer - // network. Must be in the format - // `projects/{project}/global/networks/{network}`, where `{project}` is - // a project number, such as `12345`, and `{network}` is the name of a - // VPC network in the project. See Understanding network configuration - // options + // PeeredNetwork: Required. Immutable. The network definition that the workers + // are peered to. If this section is left empty, the workers will be peered to + // `WorkerPool.project_id` on the service producer network. Must be in the + // format `projects/{project}/global/networks/{network}`, where `{project}` is + // a project number, such as `12345`, and `{network}` is the name of a VPC + // network in the project. See Understanding network configuration options // (https://cloud.google.com/cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#understanding_the_network_configuration_options) PeeredNetwork string `json:"peeredNetwork,omitempty"` - // ForceSendFields is a list of field names (e.g. "PeeredNetwork") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PeeredNetwork") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PeeredNetwork") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NetworkConfig) MarshalJSON() ([]byte, error) { +func (s NetworkConfig) MarshalJSON() ([]byte, error) { type NoMethod NetworkConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Notification: Notification is the container which holds the data that -// is relevant to this particular notification. +// Notification: Notification is the container which holds the data that is +// relevant to this particular notification. type Notification struct { - // Filter: The filter string to use for notification filtering. - // Currently, this is assumed to be a CEL program. See - // https://opensource.google/projects/cel for more. + // Filter: The filter string to use for notification filtering. Currently, this + // is assumed to be a CEL program. See https://opensource.google/projects/cel + // for more. Filter string `json:"filter,omitempty"` - // HttpDelivery: Configuration for HTTP delivery. HttpDelivery *HTTPDelivery `json:"httpDelivery,omitempty"` - // SlackDelivery: Configuration for Slack delivery. SlackDelivery *SlackDelivery `json:"slackDelivery,omitempty"` - // SmtpDelivery: Configuration for SMTP (email) delivery. SmtpDelivery *SMTPDelivery `json:"smtpDelivery,omitempty"` - - // StructDelivery: Escape hatch for users to supply custom delivery - // configs. + // StructDelivery: Escape hatch for users to supply custom delivery configs. StructDelivery googleapi.RawMessage `json:"structDelivery,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Notification) MarshalJSON() ([]byte, error) { +func (s Notification) MarshalJSON() ([]byte, error) { type NoMethod Notification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierConfig: NotifierConfig is the top-level configuration -// message. +// NotifierConfig: NotifierConfig is the top-level configuration message. type NotifierConfig struct { // ApiVersion: The API version of this configuration format. ApiVersion string `json:"apiVersion,omitempty"` - // Kind: The type of notifier to use (e.g. SMTPNotifier). Kind string `json:"kind,omitempty"` - // Metadata: Metadata for referring to/handling/deploying this notifier. Metadata *NotifierMetadata `json:"metadata,omitempty"` - // Spec: The actual configuration for this notifier. Spec *NotifierSpec `json:"spec,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierConfig) MarshalJSON() ([]byte, error) { +func (s NotifierConfig) MarshalJSON() ([]byte, error) { type NoMethod NotifierConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierMetadata: NotifierMetadata contains the data which can be -// used to reference or describe this notifier. +// NotifierMetadata: NotifierMetadata contains the data which can be used to +// reference or describe this notifier. type NotifierMetadata struct { - // Name: The human-readable and user-given name for the notifier. For - // example: "repo-merge-email-notifier". + // Name: The human-readable and user-given name for the notifier. For example: + // "repo-merge-email-notifier". Name string `json:"name,omitempty"` - // Notifier: The string representing the name and version of notifier to // deploy. Expected to be of the form of "/:". For example: // "gcr.io/my-project/notifiers/smtp:1.2.34". Notifier string `json:"notifier,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierMetadata) MarshalJSON() ([]byte, error) { +func (s NotifierMetadata) MarshalJSON() ([]byte, error) { type NoMethod NotifierMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierSecret: NotifierSecret is the container that maps a secret -// name (reference) to its Google Cloud Secret Manager resource path. +// NotifierSecret: NotifierSecret is the container that maps a secret name +// (reference) to its Google Cloud Secret Manager resource path. type NotifierSecret struct { - // Name: Name is the local name of the secret, such as the verbatim - // string "my-smtp-password". + // Name: Name is the local name of the secret, such as the verbatim string + // "my-smtp-password". Name string `json:"name,omitempty"` - - // Value: Value is interpreted to be a resource path for fetching the - // actual (versioned) secret data for this secret. For example, this - // would be a Google Cloud Secret Manager secret version resource path - // like: "projects/my-project/secrets/my-secret/versions/latest". + // Value: Value is interpreted to be a resource path for fetching the actual + // (versioned) secret data for this secret. For example, this would be a Google + // Cloud Secret Manager secret version resource path like: + // "projects/my-project/secrets/my-secret/versions/latest". Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierSecret) MarshalJSON() ([]byte, error) { +func (s NotifierSecret) MarshalJSON() ([]byte, error) { type NoMethod NotifierSecret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierSecretRef: NotifierSecretRef contains the reference to a -// secret stored in the corresponding NotifierSpec. +// NotifierSecretRef: NotifierSecretRef contains the reference to a secret +// stored in the corresponding NotifierSpec. type NotifierSecretRef struct { - // SecretRef: The value of `secret_ref` should be a `name` that is - // registered in a `Secret` in the `secrets` list of the `Spec`. + // SecretRef: The value of `secret_ref` should be a `name` that is registered + // in a `Secret` in the `secrets` list of the `Spec`. SecretRef string `json:"secretRef,omitempty"` - // ForceSendFields is a list of field names (e.g. "SecretRef") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SecretRef") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SecretRef") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierSecretRef) MarshalJSON() ([]byte, error) { +func (s NotifierSecretRef) MarshalJSON() ([]byte, error) { type NoMethod NotifierSecretRef - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotifierSpec: NotifierSpec is the configuration container for -// notifications. +// NotifierSpec: NotifierSpec is the configuration container for notifications. type NotifierSpec struct { // Notification: The configuration of this particular notifier. Notification *Notification `json:"notification,omitempty"` - // Secrets: Configurations for secret resources used by this particular // notifier. Secrets []*NotifierSecret `json:"secrets,omitempty"` - // ForceSendFields is a list of field names (e.g. "Notification") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Notification") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Notification") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotifierSpec) MarshalJSON() ([]byte, error) { +func (s NotifierSpec) MarshalJSON() ([]byte, error) { type NoMethod NotifierSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadata: Represents the metadata of the long-running -// operation. +// OperationMetadata: Represents the metadata of the long-running operation. type OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` - - // CancelRequested: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have been - // cancelled successfully have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // CancelRequested: Output only. Identifies whether the user has requested + // cancellation of the operation. Operations that have been cancelled + // successfully have Operation.error value with a google.rpc.Status.code of 1, + // corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` - // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - - // StatusDetail: Output only. Human-readable status of the operation, if - // any. + // StatusDetail: Output only. Human-readable status of the operation, if any. StatusDetail string `json:"statusDetail,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Output only. Server-defined resource path for the target of the + // operation. Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { +func (s OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PoolOption: Details about how a build should be executed on a -// `WorkerPool`. See running builds in a private pool +// PoolOption: Details about how a build should be executed on a `WorkerPool`. +// See running builds in a private pool // (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) // for more information. type PoolOption struct { - // Name: The `WorkerPool` resource to execute the build on. You must - // have `cloudbuild.workerpools.use` on the project hosting the - // WorkerPool. Format + // Name: The `WorkerPool` resource to execute the build on. You must have + // `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format // projects/{project}/locations/{location}/workerPools/{workerPoolId} Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoolOption) MarshalJSON() ([]byte, error) { +func (s PoolOption) MarshalJSON() ([]byte, error) { type NoMethod PoolOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProcessAppManifestCallbackOperationMetadata: Metadata for @@ -2313,763 +1859,592 @@ func (s *PoolOption) MarshalJSON() ([]byte, error) { type ProcessAppManifestCallbackOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be created. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // created. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProcessAppManifestCallbackOperationMetadata) MarshalJSON() ([]byte, error) { +func (s ProcessAppManifestCallbackOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod ProcessAppManifestCallbackOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PythonPackage: Python package to upload to Artifact Registry upon -// successful completion of all build steps. A package can encapsulate -// multiple objects to be uploaded to a single repository. +// PythonPackage: Python package to upload to Artifact Registry upon successful +// completion of all build steps. A package can encapsulate multiple objects to +// be uploaded to a single repository. type PythonPackage struct { - // Paths: Path globs used to match files in the build's workspace. For - // Python/ Twine, this is usually `dist/*`, and sometimes additionally - // an `.asc` file. + // Paths: Path globs used to match files in the build's workspace. For Python/ + // Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. Paths []string `json:"paths,omitempty"` - // Repository: Artifact Registry repository, in the form - // "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the - // workspace matching any path pattern will be uploaded to Artifact - // Registry with this location as a prefix. + // "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace + // matching any path pattern will be uploaded to Artifact Registry with this + // location as a prefix. Repository string `json:"repository,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Paths") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Paths") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Paths") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PythonPackage) MarshalJSON() ([]byte, error) { +func (s PythonPackage) MarshalJSON() ([]byte, error) { type NoMethod PythonPackage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RepoSource: Location of the source in a Google Cloud Source -// Repository. +// RepoSource: Location of the source in a Google Cloud Source Repository. type RepoSource struct { - // BranchName: Regex matching branches to build. The syntax of the - // regular expressions accepted is the syntax accepted by RE2 and - // described at https://github.com/google/re2/wiki/Syntax + // BranchName: Regex matching branches to build. The syntax of the regular + // expressions accepted is the syntax accepted by RE2 and described at + // https://github.com/google/re2/wiki/Syntax BranchName string `json:"branchName,omitempty"` - // CommitSha: Explicit commit SHA to build. CommitSha string `json:"commitSha,omitempty"` - - // Dir: Directory, relative to the source root, in which to run the - // build. This must be a relative path. If a step's `dir` is specified - // and is an absolute path, this value is ignored for that step's - // execution. + // Dir: Directory, relative to the source root, in which to run the build. This + // must be a relative path. If a step's `dir` is specified and is an absolute + // path, this value is ignored for that step's execution. Dir string `json:"dir,omitempty"` - - // InvertRegex: Only trigger a build if the revision regex does NOT - // match the revision regex. + // InvertRegex: Only trigger a build if the revision regex does NOT match the + // revision regex. InvertRegex bool `json:"invertRegex,omitempty"` - - // ProjectId: ID of the project that owns the Cloud Source Repository. - // If omitted, the project ID requesting the build is assumed. + // ProjectId: ID of the project that owns the Cloud Source Repository. If + // omitted, the project ID requesting the build is assumed. ProjectId string `json:"projectId,omitempty"` - // RepoName: Name of the Cloud Source Repository. RepoName string `json:"repoName,omitempty"` - - // Substitutions: Substitutions to use in a triggered build. Should only - // be used with RunBuildTrigger + // Substitutions: Substitutions to use in a triggered build. Should only be + // used with RunBuildTrigger Substitutions map[string]string `json:"substitutions,omitempty"` - - // TagName: Regex matching tags to build. The syntax of the regular - // expressions accepted is the syntax accepted by RE2 and described at + // TagName: Regex matching tags to build. The syntax of the regular expressions + // accepted is the syntax accepted by RE2 and described at // https://github.com/google/re2/wiki/Syntax TagName string `json:"tagName,omitempty"` - // ForceSendFields is a list of field names (e.g. "BranchName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BranchName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BranchName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RepoSource) MarshalJSON() ([]byte, error) { +func (s RepoSource) MarshalJSON() ([]byte, error) { type NoMethod RepoSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Repository: A repository associated to a parent connection. type Repository struct { // Annotations: Allows clients to store small amounts of arbitrary data. Annotations map[string]string `json:"annotations,omitempty"` - - // CreateTime: Output only. Server assigned timestamp for when the - // connection was created. + // CreateTime: Output only. Server assigned timestamp for when the connection + // was created. CreateTime string `json:"createTime,omitempty"` - - // Etag: This checksum is computed by the server based on the value of - // other fields, and may be sent on update and delete requests to ensure - // the client has an up-to-date value before proceeding. + // Etag: This checksum is computed by the server based on the value of other + // fields, and may be sent on update and delete requests to ensure the client + // has an up-to-date value before proceeding. Etag string `json:"etag,omitempty"` - // Name: Immutable. Resource name of the repository, in the format // `projects/*/locations/*/connections/*/repositories/*`. Name string `json:"name,omitempty"` - // RemoteUri: Required. Git Clone HTTPS URI. RemoteUri string `json:"remoteUri,omitempty"` - - // UpdateTime: Output only. Server assigned timestamp for when the - // connection was updated. + // UpdateTime: Output only. Server assigned timestamp for when the connection + // was updated. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Repository) MarshalJSON() ([]byte, error) { +func (s Repository) MarshalJSON() ([]byte, error) { type NoMethod Repository - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Results: Artifacts created by the build pipeline. type Results struct { - // ArtifactManifest: Path to the artifact manifest for non-container - // artifacts uploaded to Cloud Storage. Only populated when artifacts - // are uploaded to Cloud Storage. + // ArtifactManifest: Path to the artifact manifest for non-container artifacts + // uploaded to Cloud Storage. Only populated when artifacts are uploaded to + // Cloud Storage. ArtifactManifest string `json:"artifactManifest,omitempty"` - - // ArtifactTiming: Time to push all non-container artifacts to Cloud - // Storage. + // ArtifactTiming: Time to push all non-container artifacts to Cloud Storage. ArtifactTiming *TimeSpan `json:"artifactTiming,omitempty"` - - // BuildStepImages: List of build step digests, in the order - // corresponding to build step indices. + // BuildStepImages: List of build step digests, in the order corresponding to + // build step indices. BuildStepImages []string `json:"buildStepImages,omitempty"` - - // BuildStepOutputs: List of build step outputs, produced by builder - // images, in the order corresponding to build step indices. Cloud - // Builders (https://cloud.google.com/cloud-build/docs/cloud-builders) - // can produce this output by writing to `$BUILDER_OUTPUT/output`. Only - // the first 4KB of data is stored. + // BuildStepOutputs: List of build step outputs, produced by builder images, in + // the order corresponding to build step indices. Cloud Builders + // (https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this + // output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is + // stored. BuildStepOutputs []string `json:"buildStepOutputs,omitempty"` - // Images: Container images that were built as a part of the build. Images []*BuiltImage `json:"images,omitempty"` - - // MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the - // end of the build. + // MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the end of + // the build. MavenArtifacts []*UploadedMavenArtifact `json:"mavenArtifacts,omitempty"` - - // NumArtifacts: Number of non-container artifacts uploaded to Cloud - // Storage. Only populated when artifacts are uploaded to Cloud Storage. + // NumArtifacts: Number of non-container artifacts uploaded to Cloud Storage. + // Only populated when artifacts are uploaded to Cloud Storage. NumArtifacts int64 `json:"numArtifacts,omitempty,string"` - - // PythonPackages: Python artifacts uploaded to Artifact Registry at the - // end of the build. + // PythonPackages: Python artifacts uploaded to Artifact Registry at the end of + // the build. PythonPackages []*UploadedPythonPackage `json:"pythonPackages,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArtifactManifest") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArtifactManifest") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ArtifactManifest") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Results) MarshalJSON() ([]byte, error) { +func (s Results) MarshalJSON() ([]byte, error) { type NoMethod Results - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RunWorkflowCustomOperationMetadata: Represents the custom metadata of -// the RunWorkflow long-running operation. +// RunWorkflowCustomOperationMetadata: Represents the custom metadata of the +// RunWorkflow long-running operation. type RunWorkflowCustomOperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` - // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - - // PipelineRunId: Output only. ID of the pipeline run created by - // RunWorkflow. + // PipelineRunId: Output only. ID of the pipeline run created by RunWorkflow. PipelineRunId string `json:"pipelineRunId,omitempty"` - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // requested cancellation of the operation. Operations that have successfully + // been cancelled have Operation.error value with a google.rpc.Status.code of + // 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Output only. Server-defined resource path for the target of the + // operation. Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunWorkflowCustomOperationMetadata) MarshalJSON() ([]byte, error) { +func (s RunWorkflowCustomOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod RunWorkflowCustomOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SMTPDelivery: SMTPDelivery is the delivery configuration for an SMTP -// (email) notification. +// SMTPDelivery: SMTPDelivery is the delivery configuration for an SMTP (email) +// notification. type SMTPDelivery struct { - // FromAddress: This is the SMTP account/email that appears in the - // `From:` of the email. If empty, it is assumed to be sender. + // FromAddress: This is the SMTP account/email that appears in the `From:` of + // the email. If empty, it is assumed to be sender. FromAddress string `json:"fromAddress,omitempty"` - // Password: The SMTP sender's password. Password *NotifierSecretRef `json:"password,omitempty"` - // Port: The SMTP port of the server. Port string `json:"port,omitempty"` - - // RecipientAddresses: This is the list of addresses to which we send - // the email (i.e. in the `To:` of the email). + // RecipientAddresses: This is the list of addresses to which we send the email + // (i.e. in the `To:` of the email). RecipientAddresses []string `json:"recipientAddresses,omitempty"` - - // SenderAddress: This is the SMTP account/email that is used to send - // the message. + // SenderAddress: This is the SMTP account/email that is used to send the + // message. SenderAddress string `json:"senderAddress,omitempty"` - // Server: The address of the SMTP server. Server string `json:"server,omitempty"` - // ForceSendFields is a list of field names (e.g. "FromAddress") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FromAddress") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FromAddress") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SMTPDelivery) MarshalJSON() ([]byte, error) { +func (s SMTPDelivery) MarshalJSON() ([]byte, error) { type NoMethod SMTPDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Secret: Pairs a set of secret environment variables containing -// encrypted values with the Cloud KMS key to use to decrypt the value. -// Note: Use `kmsKeyName` with `available_secrets` instead of using -// `kmsKeyName` with `secret`. For instructions see: +// Secret: Pairs a set of secret environment variables containing encrypted +// values with the Cloud KMS key to use to decrypt the value. Note: Use +// `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with +// `secret`. For instructions see: // https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. type Secret struct { // KmsKeyName: Cloud KMS key name to use to decrypt these envs. KmsKeyName string `json:"kmsKeyName,omitempty"` - - // SecretEnv: Map of environment variable name to its encrypted value. - // Secret environment variables must be unique across all of a build's - // secrets, and must be used by at least one build step. Values can be - // at most 64 KB in size. There can be at most 100 secret values across - // all of a build's secrets. + // SecretEnv: Map of environment variable name to its encrypted value. Secret + // environment variables must be unique across all of a build's secrets, and + // must be used by at least one build step. Values can be at most 64 KB in + // size. There can be at most 100 secret values across all of a build's + // secrets. SecretEnv map[string]string `json:"secretEnv,omitempty"` - // ForceSendFields is a list of field names (e.g. "KmsKeyName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KmsKeyName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "KmsKeyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Secret) MarshalJSON() ([]byte, error) { +func (s Secret) MarshalJSON() ([]byte, error) { type NoMethod Secret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SecretManagerSecret: Pairs a secret environment variable with a // SecretVersion in Secret Manager. type SecretManagerSecret struct { // Env: Environment variable name to associate with the secret. Secret - // environment variables must be unique across all of a build's secrets, - // and must be used by at least one build step. + // environment variables must be unique across all of a build's secrets, and + // must be used by at least one build step. Env string `json:"env,omitempty"` - // VersionName: Resource name of the SecretVersion. In format: // projects/*/secrets/*/versions/* VersionName string `json:"versionName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Env") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Env") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Env") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Env") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecretManagerSecret) MarshalJSON() ([]byte, error) { +func (s SecretManagerSecret) MarshalJSON() ([]byte, error) { type NoMethod SecretManagerSecret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Secrets: Secrets and secret environment variables. type Secrets struct { - // Inline: Secrets encrypted with KMS key and the associated secret - // environment variable. + // Inline: Secrets encrypted with KMS key and the associated secret environment + // variable. Inline []*InlineSecret `json:"inline,omitempty"` - - // SecretManager: Secrets in Secret Manager and associated secret - // environment variable. + // SecretManager: Secrets in Secret Manager and associated secret environment + // variable. SecretManager []*SecretManagerSecret `json:"secretManager,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Inline") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Inline") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Inline") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Secrets) MarshalJSON() ([]byte, error) { +func (s Secrets) MarshalJSON() ([]byte, error) { type NoMethod Secrets - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SlackDelivery: SlackDelivery is the delivery configuration for -// delivering Slack messages via webhooks. See Slack webhook -// documentation at: https://api.slack.com/messaging/webhooks. +// SlackDelivery: SlackDelivery is the delivery configuration for delivering +// Slack messages via webhooks. See Slack webhook documentation at: +// https://api.slack.com/messaging/webhooks. type SlackDelivery struct { - // WebhookUri: The secret reference for the Slack webhook URI for - // sending messages to a channel. + // WebhookUri: The secret reference for the Slack webhook URI for sending + // messages to a channel. WebhookUri *NotifierSecretRef `json:"webhookUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "WebhookUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "WebhookUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "WebhookUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SlackDelivery) MarshalJSON() ([]byte, error) { +func (s SlackDelivery) MarshalJSON() ([]byte, error) { type NoMethod SlackDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Source: Location of the source in a supported storage service. type Source struct { - // RepoSource: If provided, get the source from this location in a Cloud - // Source Repository. + // RepoSource: If provided, get the source from this location in a Cloud Source + // Repository. RepoSource *RepoSource `json:"repoSource,omitempty"` - - // StorageSource: If provided, get the source from this location in - // Google Cloud Storage. + // StorageSource: If provided, get the source from this location in Google + // Cloud Storage. StorageSource *StorageSource `json:"storageSource,omitempty"` - - // StorageSourceManifest: If provided, get the source from this manifest - // in Google Cloud Storage. This feature is in Preview; see description - // here + // StorageSourceManifest: If provided, get the source from this manifest in + // Google Cloud Storage. This feature is in Preview; see description here // (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). StorageSourceManifest *StorageSourceManifest `json:"storageSourceManifest,omitempty"` - // ForceSendFields is a list of field names (e.g. "RepoSource") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RepoSource") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RepoSource") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Source) MarshalJSON() ([]byte, error) { +func (s Source) MarshalJSON() ([]byte, error) { type NoMethod Source - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SourceProvenance: Provenance of the source. Ways to find the original // source, or verify that some source was used for this build. type SourceProvenance struct { - // FileHashes: Output only. Hash(es) of the build source, which can be - // used to verify that the original source integrity was maintained in - // the build. Note that `FileHashes` will only be populated if - // `BuildOptions` has requested a `SourceProvenanceHash`. The keys to - // this map are file paths used as build source and the values contain - // the hash values for those files. If the build source came in a single - // package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be - // for the single path to that file. + // FileHashes: Output only. Hash(es) of the build source, which can be used to + // verify that the original source integrity was maintained in the build. Note + // that `FileHashes` will only be populated if `BuildOptions` has requested a + // `SourceProvenanceHash`. The keys to this map are file paths used as build + // source and the values contain the hash values for those files. If the build + // source came in a single package such as a gzipped tarfile (`.tar.gz`), the + // `FileHash` will be for the single path to that file. FileHashes map[string]FileHashes `json:"fileHashes,omitempty"` - - // ResolvedRepoSource: A copy of the build's `source.repo_source`, if - // exists, with any revisions resolved. + // ResolvedRepoSource: A copy of the build's `source.repo_source`, if exists, + // with any revisions resolved. ResolvedRepoSource *RepoSource `json:"resolvedRepoSource,omitempty"` - - // ResolvedStorageSource: A copy of the build's `source.storage_source`, - // if exists, with any generations resolved. + // ResolvedStorageSource: A copy of the build's `source.storage_source`, if + // exists, with any generations resolved. ResolvedStorageSource *StorageSource `json:"resolvedStorageSource,omitempty"` - // ResolvedStorageSourceManifest: A copy of the build's - // `source.storage_source_manifest`, if exists, with any revisions - // resolved. This feature is in Preview. + // `source.storage_source_manifest`, if exists, with any revisions resolved. + // This feature is in Preview. ResolvedStorageSourceManifest *StorageSourceManifest `json:"resolvedStorageSourceManifest,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHashes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHashes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHashes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceProvenance) MarshalJSON() ([]byte, error) { +func (s SourceProvenance) MarshalJSON() ([]byte, error) { type NoMethod SourceProvenance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StorageSource: Location of the source in an archive file in Google -// Cloud Storage. +// StorageSource: Location of the source in an archive file in Google Cloud +// Storage. type StorageSource struct { - // Bucket: Google Cloud Storage bucket containing the source (see Bucket - // Name Requirements + // Bucket: Google Cloud Storage bucket containing the source (see Bucket Name + // Requirements // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Bucket string `json:"bucket,omitempty"` - // Generation: Google Cloud Storage generation for the object. If the // generation is omitted, the latest generation will be used. Generation int64 `json:"generation,omitempty,string"` - - // Object: Google Cloud Storage object containing the source. This - // object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) - // containing source to build. + // Object: Google Cloud Storage object containing the source. This object must + // be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source + // to build. Object string `json:"object,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StorageSource) MarshalJSON() ([]byte, error) { +func (s StorageSource) MarshalJSON() ([]byte, error) { type NoMethod StorageSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StorageSourceManifest: Location of the source manifest in Google -// Cloud Storage. This feature is in Preview; see description here +// StorageSourceManifest: Location of the source manifest in Google Cloud +// Storage. This feature is in Preview; see description here // (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). type StorageSourceManifest struct { - // Bucket: Google Cloud Storage bucket containing the source manifest - // (see Bucket Name Requirements + // Bucket: Google Cloud Storage bucket containing the source manifest (see + // Bucket Name Requirements // (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Bucket string `json:"bucket,omitempty"` - // Generation: Google Cloud Storage generation for the object. If the // generation is omitted, the latest generation will be used. Generation int64 `json:"generation,omitempty,string"` - - // Object: Google Cloud Storage object containing the source manifest. - // This object must be a JSON file. + // Object: Google Cloud Storage object containing the source manifest. This + // object must be a JSON file. Object string `json:"object,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StorageSourceManifest) MarshalJSON() ([]byte, error) { +func (s StorageSourceManifest) MarshalJSON() ([]byte, error) { type NoMethod StorageSourceManifest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TimeSpan: Start and end times for a build execution phase. type TimeSpan struct { // EndTime: End of time span. EndTime string `json:"endTime,omitempty"` - // StartTime: Start of time span. StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimeSpan) MarshalJSON() ([]byte, error) { +func (s TimeSpan) MarshalJSON() ([]byte, error) { type NoMethod TimeSpan - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateBitbucketServerConfigOperationMetadata: Metadata for // `UpdateBitbucketServerConfig` operation. type UpdateBitbucketServerConfigOperationMetadata struct { - // BitbucketServerConfig: The resource name of the BitbucketServerConfig - // to be updated. Format: + // BitbucketServerConfig: The resource name of the BitbucketServerConfig to be + // updated. Format: // `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"` - // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BitbucketServerConfig") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BitbucketServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateBitbucketServerConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateGitHubEnterpriseConfigOperationMetadata: Metadata for @@ -3077,400 +2452,310 @@ func (s *UpdateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, er type UpdateGitHubEnterpriseConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to - // be updated. Format: - // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}` - // . + // GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be + // updated. Format: + // `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateGitHubEnterpriseConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpdateGitLabConfigOperationMetadata: Metadata for -// `UpdateGitLabConfig` operation. +// UpdateGitLabConfigOperationMetadata: Metadata for `UpdateGitLabConfig` +// operation. type UpdateGitLabConfigOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. + // GitlabConfig: The resource name of the GitLabConfig to be created. Format: + // `projects/{project}/locations/{location}/gitlabConfigs/{id}`. GitlabConfig string `json:"gitlabConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpdateWorkerPoolOperationMetadata: Metadata for the -// `UpdateWorkerPool` operation. +// UpdateWorkerPoolOperationMetadata: Metadata for the `UpdateWorkerPool` +// operation. type UpdateWorkerPoolOperationMetadata struct { // CompleteTime: Time the operation was completed. CompleteTime string `json:"completeTime,omitempty"` - // CreateTime: Time the operation was created. CreateTime string `json:"createTime,omitempty"` - - // WorkerPool: The resource name of the `WorkerPool` being updated. - // Format: + // WorkerPool: The resource name of the `WorkerPool` being updated. Format: // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. WorkerPool string `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompleteTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { +func (s UpdateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod UpdateWorkerPoolOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UploadedMavenArtifact: A Maven artifact uploaded using the -// MavenArtifact directive. +// UploadedMavenArtifact: A Maven artifact uploaded using the MavenArtifact +// directive. type UploadedMavenArtifact struct { // FileHashes: Hash types and values of the Maven Artifact. FileHashes *FileHashes `json:"fileHashes,omitempty"` - - // PushTiming: Output only. Stores timing information for pushing the - // specified artifact. + // PushTiming: Output only. Stores timing information for pushing the specified + // artifact. PushTiming *TimeSpan `json:"pushTiming,omitempty"` - // Uri: URI of the uploaded artifact. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHashes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHashes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHashes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UploadedMavenArtifact) MarshalJSON() ([]byte, error) { +func (s UploadedMavenArtifact) MarshalJSON() ([]byte, error) { type NoMethod UploadedMavenArtifact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UploadedPythonPackage: Artifact uploaded using the PythonPackage -// directive. +// UploadedPythonPackage: Artifact uploaded using the PythonPackage directive. type UploadedPythonPackage struct { // FileHashes: Hash types and values of the Python Artifact. FileHashes *FileHashes `json:"fileHashes,omitempty"` - - // PushTiming: Output only. Stores timing information for pushing the - // specified artifact. + // PushTiming: Output only. Stores timing information for pushing the specified + // artifact. PushTiming *TimeSpan `json:"pushTiming,omitempty"` - // Uri: URI of the uploaded artifact. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileHashes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileHashes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileHashes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UploadedPythonPackage) MarshalJSON() ([]byte, error) { +func (s UploadedPythonPackage) MarshalJSON() ([]byte, error) { type NoMethod UploadedPythonPackage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Volume: Volume describes a Docker container volume which is mounted -// into build steps in order to persist files across build step -// execution. +// Volume: Volume describes a Docker container volume which is mounted into +// build steps in order to persist files across build step execution. type Volume struct { - // Name: Name of the volume to mount. Volume names must be unique per - // build step and must be valid names for Docker volumes. Each named - // volume must be used by at least two build steps. + // Name: Name of the volume to mount. Volume names must be unique per build + // step and must be valid names for Docker volumes. Each named volume must be + // used by at least two build steps. Name string `json:"name,omitempty"` - - // Path: Path at which to mount the volume. Paths must be absolute and - // cannot conflict with other volume paths on the same build step or - // with certain reserved volume paths. + // Path: Path at which to mount the volume. Paths must be absolute and cannot + // conflict with other volume paths on the same build step or with certain + // reserved volume paths. Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Volume) MarshalJSON() ([]byte, error) { +func (s Volume) MarshalJSON() ([]byte, error) { type NoMethod Volume - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Warning: A non-fatal problem encountered during the execution of the -// build. +// Warning: A non-fatal problem encountered during the execution of the build. type Warning struct { // Priority: The priority for this warning. // // Possible values: // "PRIORITY_UNSPECIFIED" - Should not be used. - // "INFO" - e.g. deprecation warnings and alternative feature - // highlights. - // "WARNING" - e.g. automated detection of possible issues with the - // build. - // "ALERT" - e.g. alerts that a feature used in the build is pending - // removal + // "INFO" - e.g. deprecation warnings and alternative feature highlights. + // "WARNING" - e.g. automated detection of possible issues with the build. + // "ALERT" - e.g. alerts that a feature used in the build is pending removal Priority string `json:"priority,omitempty"` - // Text: Explanation of the warning generated. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Priority") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Priority") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Priority") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Warning) MarshalJSON() ([]byte, error) { +func (s Warning) MarshalJSON() ([]byte, error) { type NoMethod Warning - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkerConfig: Defines the configuration to be used for creating -// workers in the pool. +// WorkerConfig: Defines the configuration to be used for creating workers in +// the pool. type WorkerConfig struct { - // DiskSizeGb: Size of the disk attached to the worker, in GB. See - // Worker pool config file + // DiskSizeGb: Size of the disk attached to the worker, in GB. See Worker pool + // config file // (https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). - // Specify a value of up to 1000. If `0` is specified, Cloud Build will - // use a standard disk size. + // Specify a value of up to 1000. If `0` is specified, Cloud Build will use a + // standard disk size. DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // MachineType: Machine type of a worker, such as `n1-standard-1`. See - // Worker pool config file + // MachineType: Machine type of a worker, such as `n1-standard-1`. See Worker + // pool config file // (https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). // If left blank, Cloud Build will use `n1-standard-1`. MachineType string `json:"machineType,omitempty"` - - // NoExternalIp: If true, workers are created without any public - // address, which prevents network egress to public IPs. + // NoExternalIp: If true, workers are created without any public address, which + // prevents network egress to public IPs. NoExternalIp bool `json:"noExternalIp,omitempty"` - // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DiskSizeGb") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DiskSizeGb") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerConfig) MarshalJSON() ([]byte, error) { +func (s WorkerConfig) MarshalJSON() ([]byte, error) { type NoMethod WorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// WorkerPool: Configuration for a `WorkerPool` to run the builds. -// Workers provide a build environment where Cloud Build runs your -// builds. Cloud Build owns and maintains a pool of workers for general -// use. By default, when you submit a build, Cloud Build uses one of the -// workers from this pool. Builds that run in the default worker pool -// have access to the public internet. If your build needs access to -// resources on a private network, create and use a `WorkerPool` to run -// your builds. Custom `WorkerPool`s give your builds access to any -// single VPC network that you administer, including any on-prem -// resources connected to that VPC network. For an overview of custom -// worker pools, see Custom workers overview + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkerPool: Configuration for a `WorkerPool` to run the builds. Workers +// provide a build environment where Cloud Build runs your builds. Cloud Build +// owns and maintains a pool of workers for general use. By default, when you +// submit a build, Cloud Build uses one of the workers from this pool. Builds +// that run in the default worker pool have access to the public internet. If +// your build needs access to resources on a private network, create and use a +// `WorkerPool` to run your builds. Custom `WorkerPool`s give your builds +// access to any single VPC network that you administer, including any on-prem +// resources connected to that VPC network. For an overview of custom worker +// pools, see Custom workers overview // (https://cloud.google.com/cloud-build/docs/custom-workers/custom-workers-overview). type WorkerPool struct { // Annotations: User specified annotations. See - // https://google.aip.dev/128#annotations for more details such as - // format and size limitations. + // https://google.aip.dev/128#annotations for more details such as format and + // size limitations. Annotations map[string]string `json:"annotations,omitempty"` - // CreateTime: Output only. Time at which the request to create the // `WorkerPool` was received. CreateTime string `json:"createTime,omitempty"` - // DeleteTime: Output only. Time at which the request to delete the // `WorkerPool` was received. DeleteTime string `json:"deleteTime,omitempty"` - - // DisplayName: A user-specified, human-readable name for the - // `WorkerPool`. If provided, this value must be 1-63 characters. + // DisplayName: A user-specified, human-readable name for the `WorkerPool`. If + // provided, this value must be 1-63 characters. DisplayName string `json:"displayName,omitempty"` - - // Etag: Output only. Checksum computed by the server. May be sent on - // update and delete requests to ensure that the client has an - // up-to-date value before proceeding. + // Etag: Output only. Checksum computed by the server. May be sent on update + // and delete requests to ensure that the client has an up-to-date value before + // proceeding. Etag string `json:"etag,omitempty"` - // Name: Output only. The resource name of the `WorkerPool`, with format - // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. - // The value of `{worker_pool}` is provided by `worker_pool_id` in - // `CreateWorkerPool` request and the value of `{location}` is - // determined by the endpoint accessed. + // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The + // value of `{worker_pool}` is provided by `worker_pool_id` in + // `CreateWorkerPool` request and the value of `{location}` is determined by + // the endpoint accessed. Name string `json:"name,omitempty"` - // NetworkConfig: Network configuration for the `WorkerPool`. NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"` - // State: Output only. `WorkerPool` state. // // Possible values: // "STATE_UNSPECIFIED" - State of the `WorkerPool` is unknown. // "CREATING" - `WorkerPool` is being created. // "RUNNING" - `WorkerPool` is running. - // "DELETING" - `WorkerPool` is being deleted: cancelling builds and - // draining workers. + // "DELETING" - `WorkerPool` is being deleted: cancelling builds and draining + // workers. // "DELETED" - `WorkerPool` is deleted. State string `json:"state,omitempty"` - // Uid: Output only. A unique identifier for the `WorkerPool`. Uid string `json:"uid,omitempty"` - // UpdateTime: Output only. Time at which the request to update the // `WorkerPool` was received. UpdateTime string `json:"updateTime,omitempty"` - // WorkerConfig: Worker configuration for the `WorkerPool`. WorkerConfig *WorkerConfig `json:"workerConfig,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerPool) MarshalJSON() ([]byte, error) { +func (s WorkerPool) MarshalJSON() ([]byte, error) { type NoMethod WorkerPool - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "cloudbuild.projects.locations.operations.cancel": - type ProjectsLocationsOperationsCancelCall struct { s *Service name string @@ -3480,15 +2765,14 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. @@ -3500,23 +2784,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3525,18 +2807,12 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") @@ -3549,16 +2825,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3589,38 +2863,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "cloudbuild.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.locations.operations.get": +} type ProjectsLocationsOperationsGetCall struct { s *Service @@ -3631,9 +2874,9 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { @@ -3643,33 +2886,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3678,12 +2917,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3700,16 +2934,14 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3740,35 +2972,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "cloudbuild.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.locations.workerPools.create": +} type ProjectsLocationsWorkerPoolsCreateCall struct { s *Service @@ -3779,9 +2983,9 @@ type ProjectsLocationsWorkerPoolsCreateCall struct { header_ http.Header } -// Create: Creates a `WorkerPool` to run the builds, and returns the new -// worker pool. NOTE: As of now, this method returns an `Operation` that -// is always complete. +// Create: Creates a `WorkerPool` to run the builds, and returns the new worker +// pool. NOTE: As of now, this method returns an `Operation` that is always +// complete. // // - parent: The parent resource where this worker pool will be created. // Format: `projects/{project}/locations/{location}`. @@ -3793,32 +2997,30 @@ func (r *ProjectsLocationsWorkerPoolsService) Create(parent string, workerpool * } // WorkerPoolId sets the optional parameter "workerPoolId": Required. -// Immutable. The ID to use for the `WorkerPool`, which will become the -// final component of the resource name. This value should be 1-63 -// characters, and valid characters are /a-z-/. +// Immutable. The ID to use for the `WorkerPool`, which will become the final +// component of the resource name. This value should be 1-63 characters, and +// valid characters are /a-z-/. func (c *ProjectsLocationsWorkerPoolsCreateCall) WorkerPoolId(workerPoolId string) *ProjectsLocationsWorkerPoolsCreateCall { c.urlParams_.Set("workerPoolId", workerPoolId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkerPoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkerPoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkerPoolsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3827,18 +3029,12 @@ func (c *ProjectsLocationsWorkerPoolsCreateCall) Header() http.Header { } func (c *ProjectsLocationsWorkerPoolsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workerpool) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/workerPools") @@ -3851,16 +3047,14 @@ func (c *ProjectsLocationsWorkerPoolsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.workerPools.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsWorkerPoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3891,43 +3085,7 @@ func (c *ProjectsLocationsWorkerPoolsCreateCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Creates a `WorkerPool` to run the builds, and returns the new worker pool. NOTE: As of now, this method returns an `Operation` that is always complete.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/workerPools", - // "httpMethod": "POST", - // "id": "cloudbuild.projects.locations.workerPools.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent resource where this worker pool will be created. Format: `projects/{project}/locations/{location}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "workerPoolId": { - // "description": "Required. Immutable. The ID to use for the `WorkerPool`, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/workerPools", - // "request": { - // "$ref": "WorkerPool" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.locations.workerPools.delete": +} type ProjectsLocationsWorkerPoolsDeleteCall struct { s *Service @@ -3937,44 +3095,40 @@ type ProjectsLocationsWorkerPoolsDeleteCall struct { header_ http.Header } -// Delete: Deletes a `WorkerPool`. NOTE: As of now, this method returns -// an `Operation` that is always complete. +// Delete: Deletes a `WorkerPool`. NOTE: As of now, this method returns an +// `Operation` that is always complete. // // - name: The name of the `WorkerPool` to delete. Format: -// `projects/{project}/locations/{workerPool}/workerPools/{workerPool}` -// . +// `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`. func (r *ProjectsLocationsWorkerPoolsService) Delete(name string) *ProjectsLocationsWorkerPoolsDeleteCall { c := &ProjectsLocationsWorkerPoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Etag sets the optional parameter "etag": If this is provided, it must -// match the server's etag on the workerpool for the request to be -// processed. +// Etag sets the optional parameter "etag": If this is provided, it must match +// the server's etag on the workerpool for the request to be processed. func (c *ProjectsLocationsWorkerPoolsDeleteCall) Etag(etag string) *ProjectsLocationsWorkerPoolsDeleteCall { c.urlParams_.Set("etag", etag) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkerPoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkerPoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkerPoolsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3983,12 +3137,7 @@ func (c *ProjectsLocationsWorkerPoolsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4002,16 +3151,14 @@ func (c *ProjectsLocationsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.workerPools.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsWorkerPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4042,40 +3189,7 @@ func (c *ProjectsLocationsWorkerPoolsDeleteCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Deletes a `WorkerPool`. NOTE: As of now, this method returns an `Operation` that is always complete.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}", - // "httpMethod": "DELETE", - // "id": "cloudbuild.projects.locations.workerPools.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "etag": { - // "description": "Optional. If this is provided, it must match the server's etag on the workerpool for the request to be processed.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. The name of the `WorkerPool` to delete. Format: `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.locations.workerPools.get": +} type ProjectsLocationsWorkerPoolsGetCall struct { s *Service @@ -4097,33 +3211,29 @@ func (r *ProjectsLocationsWorkerPoolsService) Get(name string) *ProjectsLocation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkerPoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsWorkerPoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkerPoolsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkerPoolsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkerPoolsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4132,12 +3242,7 @@ func (c *ProjectsLocationsWorkerPoolsGetCall) Header() http.Header { } func (c *ProjectsLocationsWorkerPoolsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4154,16 +3259,14 @@ func (c *ProjectsLocationsWorkerPoolsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.workerPools.get" call. -// Exactly one of *WorkerPool or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *WorkerPool.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkerPool.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsWorkerPoolsGetCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4194,35 +3297,7 @@ func (c *ProjectsLocationsWorkerPoolsGetCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Returns details of a `WorkerPool`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}", - // "httpMethod": "GET", - // "id": "cloudbuild.projects.locations.workerPools.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the `WorkerPool` to retrieve. Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "WorkerPool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.locations.workerPools.list": +} type ProjectsLocationsWorkerPoolsListCall struct { s *Service @@ -4244,33 +3319,29 @@ func (r *ProjectsLocationsWorkerPoolsService) List(parent string) *ProjectsLocat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkerPoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsWorkerPoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkerPoolsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkerPoolsListCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkerPoolsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4279,12 +3350,7 @@ func (c *ProjectsLocationsWorkerPoolsListCall) Header() http.Header { } func (c *ProjectsLocationsWorkerPoolsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4301,16 +3367,15 @@ func (c *ProjectsLocationsWorkerPoolsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.workerPools.list" call. -// Exactly one of *ListWorkerPoolsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListWorkerPoolsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsWorkerPoolsListCall) Do(opts ...googleapi.CallOption) (*ListWorkerPoolsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4341,35 +3406,7 @@ func (c *ProjectsLocationsWorkerPoolsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists `WorkerPool`s in the given project.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/workerPools", - // "httpMethod": "GET", - // "id": "cloudbuild.projects.locations.workerPools.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent of the collection of `WorkerPools`. Format: `projects/{project}/locations/location`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/workerPools", - // "response": { - // "$ref": "ListWorkerPoolsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudbuild.projects.locations.workerPools.patch": +} type ProjectsLocationsWorkerPoolsPatchCall struct { s *Service @@ -4380,15 +3417,14 @@ type ProjectsLocationsWorkerPoolsPatchCall struct { header_ http.Header } -// Patch: Updates a `WorkerPool`. NOTE: As of now, this method returns -// an `Operation` that is always complete. +// Patch: Updates a `WorkerPool`. NOTE: As of now, this method returns an +// `Operation` that is always complete. // -// - name: Output only. The resource name of the `WorkerPool`, with -// format -// `projects/{project}/locations/{location}/workerPools/{worker_pool}`. -// The value of `{worker_pool}` is provided by `worker_pool_id` in -// `CreateWorkerPool` request and the value of `{location}` is -// determined by the endpoint accessed. +// - name: Output only. The resource name of the `WorkerPool`, with format +// `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The +// value of `{worker_pool}` is provided by `worker_pool_id` in +// `CreateWorkerPool` request and the value of `{location}` is determined by +// the endpoint accessed. func (r *ProjectsLocationsWorkerPoolsService) Patch(name string, workerpool *WorkerPool) *ProjectsLocationsWorkerPoolsPatchCall { c := &ProjectsLocationsWorkerPoolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4396,31 +3432,29 @@ func (r *ProjectsLocationsWorkerPoolsService) Patch(name string, workerpool *Wor return c } -// UpdateMask sets the optional parameter "updateMask": A mask -// specifying which fields in `WorkerPool` to update. +// UpdateMask sets the optional parameter "updateMask": A mask specifying which +// fields in `WorkerPool` to update. func (c *ProjectsLocationsWorkerPoolsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsWorkerPoolsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkerPoolsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkerPoolsPatchCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkerPoolsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4429,18 +3463,12 @@ func (c *ProjectsLocationsWorkerPoolsPatchCall) Header() http.Header { } func (c *ProjectsLocationsWorkerPoolsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workerpool) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -4453,16 +3481,14 @@ func (c *ProjectsLocationsWorkerPoolsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.workerPools.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsWorkerPoolsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4493,39 +3519,4 @@ func (c *ProjectsLocationsWorkerPoolsPatchCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Updates a `WorkerPool`. NOTE: As of now, this method returns an `Operation` that is always complete.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}", - // "httpMethod": "PATCH", - // "id": "cloudbuild.projects.locations.workerPools.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "A mask specifying which fields in `WorkerPool` to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "WorkerPool" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/cloudbuild/v2/cloudbuild-gen.go b/cloudbuild/v2/cloudbuild-gen.go index 43eea4a9177..cc33cbcdac2 100644 --- a/cloudbuild/v2/cloudbuild-gen.go +++ b/cloudbuild/v2/cloudbuild-gen.go @@ -3064,7 +3064,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.get" call. @@ -3195,7 +3195,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.list" call. @@ -3328,7 +3328,7 @@ func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.create" call. @@ -3439,7 +3439,7 @@ func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.delete" call. @@ -3561,7 +3561,7 @@ func (c *ProjectsLocationsConnectionsFetchLinkableRepositoriesCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "connection": c.connection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.fetchLinkableRepositories" call. @@ -3691,7 +3691,7 @@ func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.get" call. @@ -3818,7 +3818,7 @@ func (c *ProjectsLocationsConnectionsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.getIamPolicy" call. @@ -3939,7 +3939,7 @@ func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.list" call. @@ -4088,7 +4088,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.patch" call. @@ -4198,7 +4198,7 @@ func (c *ProjectsLocationsConnectionsProcessWebhookCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.processWebhook" call. @@ -4303,7 +4303,7 @@ func (c *ProjectsLocationsConnectionsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.setIamPolicy" call. @@ -4411,7 +4411,7 @@ func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.testIamPermissions" call. @@ -4514,7 +4514,7 @@ func (c *ProjectsLocationsConnectionsRepositoriesAccessReadTokenCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "repository": c.repository, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.repositories.accessReadToken" call. @@ -4617,7 +4617,7 @@ func (c *ProjectsLocationsConnectionsRepositoriesAccessReadWriteTokenCall) doReq googleapi.Expand(req.URL, map[string]string{ "repository": c.repository, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.repositories.accessReadWriteToken" call. @@ -4721,7 +4721,7 @@ func (c *ProjectsLocationsConnectionsRepositoriesBatchCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.repositories.batchCreate" call. @@ -4833,7 +4833,7 @@ func (c *ProjectsLocationsConnectionsRepositoriesCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.repositories.create" call. @@ -4944,7 +4944,7 @@ func (c *ProjectsLocationsConnectionsRepositoriesDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.repositories.delete" call. @@ -5077,7 +5077,7 @@ func (c *ProjectsLocationsConnectionsRepositoriesFetchGitRefsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "repository": c.repository, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.repositories.fetchGitRefs" call. @@ -5207,7 +5207,7 @@ func (c *ProjectsLocationsConnectionsRepositoriesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.repositories.get" call. @@ -5337,7 +5337,7 @@ func (c *ProjectsLocationsConnectionsRepositoriesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.connections.repositories.list" call. @@ -5468,7 +5468,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.operations.cancel" call. @@ -5577,7 +5577,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudbuild.projects.locations.operations.get" call. diff --git a/cloudchannel/v1/cloudchannel-gen.go b/cloudchannel/v1/cloudchannel-gen.go index 2d380633e3c..a0d9cb3924d 100644 --- a/cloudchannel/v1/cloudchannel-gen.go +++ b/cloudchannel/v1/cloudchannel-gen.go @@ -5258,7 +5258,7 @@ func (c *AccountsCheckCloudIdentityAccountsExistCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.checkCloudIdentityAccountsExist" call. @@ -5393,7 +5393,7 @@ func (c *AccountsListSubscribersCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "account": c.account, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.listSubscribers" call. @@ -5527,7 +5527,7 @@ func (c *AccountsListTransferableOffersCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.listTransferableOffers" call. @@ -5659,7 +5659,7 @@ func (c *AccountsListTransferableSkusCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.listTransferableSkus" call. @@ -5791,7 +5791,7 @@ func (c *AccountsRegisterCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "account": c.account, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.register" call. @@ -5905,7 +5905,7 @@ func (c *AccountsUnregisterCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "account": c.account, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.unregister" call. @@ -6021,7 +6021,7 @@ func (c *AccountsChannelPartnerLinksCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.create" call. @@ -6156,7 +6156,7 @@ func (c *AccountsChannelPartnerLinksGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.get" call. @@ -6307,7 +6307,7 @@ func (c *AccountsChannelPartnerLinksListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.list" call. @@ -6443,7 +6443,7 @@ func (c *AccountsChannelPartnerLinksPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.patch" call. @@ -6571,7 +6571,7 @@ func (c *AccountsChannelPartnerLinksChannelPartnerRepricingConfigsCreateCall) do googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.channelPartnerRepricingConfigs.create" call. @@ -6675,7 +6675,7 @@ func (c *AccountsChannelPartnerLinksChannelPartnerRepricingConfigsDeleteCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.channelPartnerRepricingConfigs.delete" call. @@ -6791,7 +6791,7 @@ func (c *AccountsChannelPartnerLinksChannelPartnerRepricingConfigsGetCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.channelPartnerRepricingConfigs.get" call. @@ -6943,7 +6943,7 @@ func (c *AccountsChannelPartnerLinksChannelPartnerRepricingConfigsListCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.channelPartnerRepricingConfigs.list" call. @@ -7084,7 +7084,7 @@ func (c *AccountsChannelPartnerLinksChannelPartnerRepricingConfigsPatchCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.channelPartnerRepricingConfigs.patch" call. @@ -7194,7 +7194,7 @@ func (c *AccountsChannelPartnerLinksCustomersCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.create" call. @@ -7294,7 +7294,7 @@ func (c *AccountsChannelPartnerLinksCustomersDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.delete" call. @@ -7408,7 +7408,7 @@ func (c *AccountsChannelPartnerLinksCustomersGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.get" call. @@ -7522,7 +7522,7 @@ func (c *AccountsChannelPartnerLinksCustomersImportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.import" call. @@ -7661,7 +7661,7 @@ func (c *AccountsChannelPartnerLinksCustomersListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.list" call. @@ -7797,7 +7797,7 @@ func (c *AccountsChannelPartnerLinksCustomersPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.patch" call. @@ -7907,7 +7907,7 @@ func (c *AccountsCustomersCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.create" call. @@ -8007,7 +8007,7 @@ func (c *AccountsCustomersDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.delete" call. @@ -8121,7 +8121,7 @@ func (c *AccountsCustomersGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.get" call. @@ -8235,7 +8235,7 @@ func (c *AccountsCustomersImportCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.import" call. @@ -8374,7 +8374,7 @@ func (c *AccountsCustomersListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.list" call. @@ -8580,7 +8580,7 @@ func (c *AccountsCustomersListPurchasableOffersCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.listPurchasableOffers" call. @@ -8769,7 +8769,7 @@ func (c *AccountsCustomersListPurchasableSkusCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.listPurchasableSkus" call. @@ -8905,7 +8905,7 @@ func (c *AccountsCustomersPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.patch" call. @@ -9021,7 +9021,7 @@ func (c *AccountsCustomersProvisionCloudIdentityCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.provisionCloudIdentity" call. @@ -9144,7 +9144,7 @@ func (c *AccountsCustomersQueryEligibleBillingAccountsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "customer": c.customer, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.queryEligibleBillingAccounts" call. @@ -9266,7 +9266,7 @@ func (c *AccountsCustomersTransferEntitlementsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.transferEntitlements" call. @@ -9387,7 +9387,7 @@ func (c *AccountsCustomersTransferEntitlementsToGoogleCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.transferEntitlementsToGoogle" call. @@ -9514,7 +9514,7 @@ func (c *AccountsCustomersCustomerRepricingConfigsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.customerRepricingConfigs.create" call. @@ -9619,7 +9619,7 @@ func (c *AccountsCustomersCustomerRepricingConfigsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.customerRepricingConfigs.delete" call. @@ -9735,7 +9735,7 @@ func (c *AccountsCustomersCustomerRepricingConfigsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.customerRepricingConfigs.get" call. @@ -9884,7 +9884,7 @@ func (c *AccountsCustomersCustomerRepricingConfigsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.customerRepricingConfigs.list" call. @@ -10024,7 +10024,7 @@ func (c *AccountsCustomersCustomerRepricingConfigsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.customerRepricingConfigs.patch" call. @@ -10143,7 +10143,7 @@ func (c *AccountsCustomersEntitlementsActivateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.activate" call. @@ -10262,7 +10262,7 @@ func (c *AccountsCustomersEntitlementsCancelCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.cancel" call. @@ -10377,7 +10377,7 @@ func (c *AccountsCustomersEntitlementsChangeOfferCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.changeOffer" call. @@ -10492,7 +10492,7 @@ func (c *AccountsCustomersEntitlementsChangeParametersCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.changeParameters" call. @@ -10608,7 +10608,7 @@ func (c *AccountsCustomersEntitlementsChangeRenewalSettingsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.changeRenewalSettings" call. @@ -10734,7 +10734,7 @@ func (c *AccountsCustomersEntitlementsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.create" call. @@ -10848,7 +10848,7 @@ func (c *AccountsCustomersEntitlementsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.get" call. @@ -10979,7 +10979,7 @@ func (c *AccountsCustomersEntitlementsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.list" call. @@ -11146,7 +11146,7 @@ func (c *AccountsCustomersEntitlementsListEntitlementChangesCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.listEntitlementChanges" call. @@ -11281,7 +11281,7 @@ func (c *AccountsCustomersEntitlementsLookupOfferCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "entitlement": c.entitlement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.lookupOffer" call. @@ -11397,7 +11397,7 @@ func (c *AccountsCustomersEntitlementsStartPaidServiceCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.startPaidService" call. @@ -11511,7 +11511,7 @@ func (c *AccountsCustomersEntitlementsSuspendCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.customers.entitlements.suspend" call. @@ -11664,7 +11664,7 @@ func (c *AccountsOffersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.offers.list" call. @@ -11793,7 +11793,7 @@ func (c *AccountsReportJobsFetchReportResultsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "reportJob": c.reportJob, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.reportJobs.fetchReportResults" call. @@ -11953,7 +11953,7 @@ func (c *AccountsReportsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.reports.list" call. @@ -12094,7 +12094,7 @@ func (c *AccountsReportsRunCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.reports.run" call. @@ -12230,7 +12230,7 @@ func (c *AccountsSkuGroupsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.skuGroups.list" call. @@ -12386,7 +12386,7 @@ func (c *AccountsSkuGroupsBillableSkusListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.accounts.skuGroups.billableSkus.list" call. @@ -12517,7 +12517,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.operations.cancel" call. @@ -12616,7 +12616,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.operations.delete" call. @@ -12726,7 +12726,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.operations.get" call. @@ -12855,7 +12855,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.operations.list" call. @@ -13010,7 +13010,7 @@ func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.products.list" call. @@ -13174,7 +13174,7 @@ func (c *ProductsSkusListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudchannel.products.skus.list" call. diff --git a/cloudcommerceprocurement/v1/cloudcommerceprocurement-gen.go b/cloudcommerceprocurement/v1/cloudcommerceprocurement-gen.go index 0ab83f81737..fcbc50119d9 100644 --- a/cloudcommerceprocurement/v1/cloudcommerceprocurement-gen.go +++ b/cloudcommerceprocurement/v1/cloudcommerceprocurement-gen.go @@ -243,9 +243,9 @@ type Account struct { NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Approval: An approval for some action on an account. @@ -281,9 +281,9 @@ type Approval struct { NullFields []string `json:"-"` } -func (s *Approval) MarshalJSON() ([]byte, error) { +func (s Approval) MarshalJSON() ([]byte, error) { type NoMethod Approval - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApproveAccountRequest: Request message for @@ -313,9 +313,9 @@ type ApproveAccountRequest struct { NullFields []string `json:"-"` } -func (s *ApproveAccountRequest) MarshalJSON() ([]byte, error) { +func (s ApproveAccountRequest) MarshalJSON() ([]byte, error) { type NoMethod ApproveAccountRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApproveEntitlementPlanChangeRequest: Request message for @@ -336,9 +336,9 @@ type ApproveEntitlementPlanChangeRequest struct { NullFields []string `json:"-"` } -func (s *ApproveEntitlementPlanChangeRequest) MarshalJSON() ([]byte, error) { +func (s ApproveEntitlementPlanChangeRequest) MarshalJSON() ([]byte, error) { type NoMethod ApproveEntitlementPlanChangeRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApproveEntitlementRequest: Request message for @@ -366,9 +366,9 @@ type ApproveEntitlementRequest struct { NullFields []string `json:"-"` } -func (s *ApproveEntitlementRequest) MarshalJSON() ([]byte, error) { +func (s ApproveEntitlementRequest) MarshalJSON() ([]byte, error) { type NoMethod ApproveEntitlementRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Consumer: A resource using (consuming) this entitlement. @@ -388,9 +388,9 @@ type Consumer struct { NullFields []string `json:"-"` } -func (s *Consumer) MarshalJSON() ([]byte, error) { +func (s Consumer) MarshalJSON() ([]byte, error) { type NoMethod Consumer - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining @@ -588,9 +588,9 @@ type Entitlement struct { NullFields []string `json:"-"` } -func (s *Entitlement) MarshalJSON() ([]byte, error) { +func (s Entitlement) MarshalJSON() ([]byte, error) { type NoMethod Entitlement - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAccountsResponse: Response message for @@ -616,9 +616,9 @@ type ListAccountsResponse struct { NullFields []string `json:"-"` } -func (s *ListAccountsResponse) MarshalJSON() ([]byte, error) { +func (s ListAccountsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAccountsResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListEntitlementsResponse: Response message for @@ -644,9 +644,9 @@ type ListEntitlementsResponse struct { NullFields []string `json:"-"` } -func (s *ListEntitlementsResponse) MarshalJSON() ([]byte, error) { +func (s ListEntitlementsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListEntitlementsResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RejectAccountRequest: Request message for @@ -673,9 +673,9 @@ type RejectAccountRequest struct { NullFields []string `json:"-"` } -func (s *RejectAccountRequest) MarshalJSON() ([]byte, error) { +func (s RejectAccountRequest) MarshalJSON() ([]byte, error) { type NoMethod RejectAccountRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RejectEntitlementPlanChangeRequest: Request message for @@ -699,9 +699,9 @@ type RejectEntitlementPlanChangeRequest struct { NullFields []string `json:"-"` } -func (s *RejectEntitlementPlanChangeRequest) MarshalJSON() ([]byte, error) { +func (s RejectEntitlementPlanChangeRequest) MarshalJSON() ([]byte, error) { type NoMethod RejectEntitlementPlanChangeRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RejectEntitlementRequest: Request message for @@ -723,9 +723,9 @@ type RejectEntitlementRequest struct { NullFields []string `json:"-"` } -func (s *RejectEntitlementRequest) MarshalJSON() ([]byte, error) { +func (s RejectEntitlementRequest) MarshalJSON() ([]byte, error) { type NoMethod RejectEntitlementRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ResetAccountRequest: Request message for @@ -752,9 +752,9 @@ type SuspendEntitlementRequest struct { NullFields []string `json:"-"` } -func (s *SuspendEntitlementRequest) MarshalJSON() ([]byte, error) { +func (s SuspendEntitlementRequest) MarshalJSON() ([]byte, error) { type NoMethod SuspendEntitlementRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProvidersAccountsApproveCall struct { @@ -819,7 +819,7 @@ func (c *ProvidersAccountsApproveCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.accounts.approve" call. @@ -926,7 +926,7 @@ func (c *ProvidersAccountsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.accounts.get" call. @@ -1048,7 +1048,7 @@ func (c *ProvidersAccountsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.accounts.list" call. @@ -1171,7 +1171,7 @@ func (c *ProvidersAccountsRejectCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.accounts.reject" call. @@ -1273,7 +1273,7 @@ func (c *ProvidersAccountsResetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.accounts.reset" call. @@ -1377,7 +1377,7 @@ func (c *ProvidersEntitlementsApproveCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.entitlements.approve" call. @@ -1481,7 +1481,7 @@ func (c *ProvidersEntitlementsApprovePlanChangeCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.entitlements.approvePlanChange" call. @@ -1588,7 +1588,7 @@ func (c *ProvidersEntitlementsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.entitlements.get" call. @@ -1742,7 +1742,7 @@ func (c *ProvidersEntitlementsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.entitlements.list" call. @@ -1874,7 +1874,7 @@ func (c *ProvidersEntitlementsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.entitlements.patch" call. @@ -1977,7 +1977,7 @@ func (c *ProvidersEntitlementsRejectCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.entitlements.reject" call. @@ -2081,7 +2081,7 @@ func (c *ProvidersEntitlementsRejectPlanChangeCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.entitlements.rejectPlanChange" call. @@ -2183,7 +2183,7 @@ func (c *ProvidersEntitlementsSuspendCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcommerceprocurement.providers.entitlements.suspend" call. diff --git a/cloudcontrolspartner/v1/cloudcontrolspartner-gen.go b/cloudcontrolspartner/v1/cloudcontrolspartner-gen.go index 0b3fdd87741..dc394e6447a 100644 --- a/cloudcontrolspartner/v1/cloudcontrolspartner-gen.go +++ b/cloudcontrolspartner/v1/cloudcontrolspartner-gen.go @@ -1164,7 +1164,7 @@ func (c *OrganizationsLocationsGetPartnerCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.getPartner" call. @@ -1272,7 +1272,7 @@ func (c *OrganizationsLocationsCustomersGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.get" call. @@ -1410,7 +1410,7 @@ func (c *OrganizationsLocationsCustomersListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.list" call. @@ -1541,7 +1541,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.get" call. @@ -1650,7 +1650,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.getEkmConnections" call. @@ -1759,7 +1759,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.getPartnerPermissions" call. @@ -1897,7 +1897,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.list" call. @@ -2058,7 +2058,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.accessApprovalRequests.list" call. @@ -2189,7 +2189,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.violations.get" call. @@ -2348,7 +2348,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.violations.list" call. diff --git a/cloudcontrolspartner/v1beta/cloudcontrolspartner-gen.go b/cloudcontrolspartner/v1beta/cloudcontrolspartner-gen.go index dad889bbf9d..7b6e4c17d76 100644 --- a/cloudcontrolspartner/v1beta/cloudcontrolspartner-gen.go +++ b/cloudcontrolspartner/v1beta/cloudcontrolspartner-gen.go @@ -1164,7 +1164,7 @@ func (c *OrganizationsLocationsGetPartnerCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.getPartner" call. @@ -1272,7 +1272,7 @@ func (c *OrganizationsLocationsCustomersGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.get" call. @@ -1410,7 +1410,7 @@ func (c *OrganizationsLocationsCustomersListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.list" call. @@ -1541,7 +1541,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.get" call. @@ -1650,7 +1650,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.getEkmConnections" call. @@ -1759,7 +1759,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.getPartnerPermissions" call. @@ -1897,7 +1897,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.list" call. @@ -2058,7 +2058,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.accessApprovalRequests.list" call. @@ -2189,7 +2189,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.violations.get" call. @@ -2348,7 +2348,7 @@ func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.violations.list" call. diff --git a/clouddebugger/v2/clouddebugger-gen.go b/clouddebugger/v2/clouddebugger-gen.go index dcf09e85504..f339822612f 100644 --- a/clouddebugger/v2/clouddebugger-gen.go +++ b/clouddebugger/v2/clouddebugger-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/debugger // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // clouddebuggerService, err := clouddebugger.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // clouddebuggerService, err := clouddebugger.NewService(ctx, option.WithScopes(clouddebugger.CloudDebuggerScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // clouddebuggerService, err := clouddebugger.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // clouddebuggerService, err := clouddebugger.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package clouddebugger // import "google.golang.org/api/clouddebugger/v2" import ( @@ -81,12 +95,13 @@ const apiId = "clouddebugger:v2" const apiName = "clouddebugger" const apiVersion = "v2" const basePath = "https://clouddebugger.googleapis.com/" +const basePathTemplate = "https://clouddebugger.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://clouddebugger.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // Use Stackdriver Debugger @@ -102,7 +117,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -223,1171 +240,926 @@ type AliasContext struct { // "ANY" - Do not use. // "FIXED" - Git tag // "MOVABLE" - Git branch - // "OTHER" - OTHER is used to specify non-standard aliases, those not - // of the kinds above. For example, if a Git repo has a ref named - // "refs/foo/bar", it is considered to be of kind OTHER. + // "OTHER" - OTHER is used to specify non-standard aliases, those not of the + // kinds above. For example, if a Git repo has a ref named "refs/foo/bar", it + // is considered to be of kind OTHER. Kind string `json:"kind,omitempty"` - // Name: The alias name. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AliasContext) MarshalJSON() ([]byte, error) { +func (s AliasContext) MarshalJSON() ([]byte, error) { type NoMethod AliasContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Breakpoint: -// ---------------------------------------------------------------------- -// -------- ## Breakpoint (the resource) Represents the breakpoint -// specification, status and results. +// ----------------------------------------------------------------------------- +// - ## Breakpoint (the resource) Represents the breakpoint specification, +// status and results. type Breakpoint struct { - // Action: Action that the agent should perform when the code at the - // breakpoint location is hit. + // Action: Action that the agent should perform when the code at the breakpoint + // location is hit. // // Possible values: - // "CAPTURE" - Capture stack frame and variables and update the - // breakpoint. The data is only captured once. After that the breakpoint - // is set in a final state. - // "LOG" - Log each breakpoint hit. The breakpoint remains active - // until deleted or expired. + // "CAPTURE" - Capture stack frame and variables and update the breakpoint. + // The data is only captured once. After that the breakpoint is set in a final + // state. + // "LOG" - Log each breakpoint hit. The breakpoint remains active until + // deleted or expired. Action string `json:"action,omitempty"` - - // CanaryExpireTime: The deadline for the breakpoint to stay in - // CANARY_ACTIVE state. The value is meaningless when the breakpoint is - // not in CANARY_ACTIVE state. + // CanaryExpireTime: The deadline for the breakpoint to stay in CANARY_ACTIVE + // state. The value is meaningless when the breakpoint is not in CANARY_ACTIVE + // state. CanaryExpireTime string `json:"canaryExpireTime,omitempty"` - // Condition: Condition that triggers the breakpoint. The condition is a - // compound boolean expression composed using expressions in a - // programming language at the source location. + // compound boolean expression composed using expressions in a programming + // language at the source location. Condition string `json:"condition,omitempty"` - // CreateTime: Time this breakpoint was created by the server in seconds // resolution. CreateTime string `json:"createTime,omitempty"` - - // EvaluatedExpressions: Values of evaluated expressions at breakpoint - // time. The evaluated expressions appear in exactly the same order they - // are listed in the `expressions` field. The `name` field holds the - // original expression text, the `value` or `members` field holds the - // result of the evaluated expression. If the expression cannot be - // evaluated, the `status` inside the `Variable` will indicate an error - // and contain the error text. + // EvaluatedExpressions: Values of evaluated expressions at breakpoint time. + // The evaluated expressions appear in exactly the same order they are listed + // in the `expressions` field. The `name` field holds the original expression + // text, the `value` or `members` field holds the result of the evaluated + // expression. If the expression cannot be evaluated, the `status` inside the + // `Variable` will indicate an error and contain the error text. EvaluatedExpressions []*Variable `json:"evaluatedExpressions,omitempty"` - - // Expressions: List of read-only expressions to evaluate at the - // breakpoint location. The expressions are composed using expressions - // in the programming language at the source location. If the breakpoint - // action is `LOG`, the evaluated expressions are included in log - // statements. + // Expressions: List of read-only expressions to evaluate at the breakpoint + // location. The expressions are composed using expressions in the programming + // language at the source location. If the breakpoint action is `LOG`, the + // evaluated expressions are included in log statements. Expressions []string `json:"expressions,omitempty"` - - // FinalTime: Time this breakpoint was finalized as seen by the server - // in seconds resolution. + // FinalTime: Time this breakpoint was finalized as seen by the server in + // seconds resolution. FinalTime string `json:"finalTime,omitempty"` - // Id: Breakpoint identifier, unique in the scope of the debuggee. Id string `json:"id,omitempty"` - - // IsFinalState: When true, indicates that this is a final result and - // the breakpoint state will not change from here on. + // IsFinalState: When true, indicates that this is a final result and the + // breakpoint state will not change from here on. IsFinalState bool `json:"isFinalState,omitempty"` - - // Labels: A set of custom breakpoint properties, populated by the - // agent, to be displayed to the user. + // Labels: A set of custom breakpoint properties, populated by the agent, to be + // displayed to the user. Labels map[string]string `json:"labels,omitempty"` - // Location: Breakpoint source location. Location *SourceLocation `json:"location,omitempty"` - - // LogLevel: Indicates the severity of the log. Only relevant when - // action is `LOG`. + // LogLevel: Indicates the severity of the log. Only relevant when action is + // `LOG`. // // Possible values: // "INFO" - Information log message. // "WARNING" - Warning log message. // "ERROR" - Error log message. LogLevel string `json:"logLevel,omitempty"` - - // LogMessageFormat: Only relevant when action is `LOG`. Defines the - // message to log when the breakpoint hits. The message may include - // parameter placeholders `$0`, `$1`, etc. These placeholders are - // replaced with the evaluated value of the appropriate expression. - // Expressions not referenced in `log_message_format` are not logged. - // Example: `Message received, id = $0, count = $1` with `expressions` = - // `[ message.id, message.count ]`. + // LogMessageFormat: Only relevant when action is `LOG`. Defines the message to + // log when the breakpoint hits. The message may include parameter placeholders + // `$0`, `$1`, etc. These placeholders are replaced with the evaluated value of + // the appropriate expression. Expressions not referenced in + // `log_message_format` are not logged. Example: `Message received, id = $0, + // count = $1` with `expressions` = `[ message.id, message.count ]`. LogMessageFormat string `json:"logMessageFormat,omitempty"` - - // StackFrames: The stack at breakpoint time, where stack_frames[0] - // represents the most recently entered function. + // StackFrames: The stack at breakpoint time, where stack_frames[0] represents + // the most recently entered function. StackFrames []*StackFrame `json:"stackFrames,omitempty"` - // State: The current state of the breakpoint. // // Possible values: // "STATE_UNSPECIFIED" - Breakpoint state UNSPECIFIED. // "STATE_CANARY_PENDING_AGENTS" - Enabling canary but no agents are // available. - // "STATE_CANARY_ACTIVE" - Enabling canary and successfully assigning - // canary agents. + // "STATE_CANARY_ACTIVE" - Enabling canary and successfully assigning canary + // agents. // "STATE_ROLLING_TO_ALL" - Breakpoint rolling out to all agents. // "STATE_IS_FINAL" - Breakpoint is hit/complete/failed. State string `json:"state,omitempty"` - - // Status: Breakpoint status. The status includes an error flag and a - // human readable message. This field is usually unset. The message can - // be either informational or an error message. Regardless, clients - // should always display the text message back to the user. Error status - // indicates complete failure of the breakpoint. Example (non-final - // state): `Still loading symbols...` Examples (final state): * `Invalid - // line number` referring to location * `Field f not found in class C` - // referring to condition + // Status: Breakpoint status. The status includes an error flag and a human + // readable message. This field is usually unset. The message can be either + // informational or an error message. Regardless, clients should always display + // the text message back to the user. Error status indicates complete failure + // of the breakpoint. Example (non-final state): `Still loading symbols...` + // Examples (final state): * `Invalid line number` referring to location * + // `Field f not found in class C` referring to condition Status *StatusMessage `json:"status,omitempty"` - // UserEmail: E-mail address of the user that created this breakpoint UserEmail string `json:"userEmail,omitempty"` - - // VariableTable: The `variable_table` exists to aid with computation, - // memory and network traffic optimization. It enables storing a - // variable once and reference it from multiple variables, including - // variables stored in the `variable_table` itself. For example, the - // same `this` object, which may appear at many levels of the stack, can - // have all of its data stored once in this table. The stack frame - // variables then would hold only a reference to it. The variable - // `var_table_index` field is an index into this repeated field. The - // stored objects are nameless and get their name from the referencing - // variable. The effective variable is a merge of the referencing + // VariableTable: The `variable_table` exists to aid with computation, memory + // and network traffic optimization. It enables storing a variable once and + // reference it from multiple variables, including variables stored in the + // `variable_table` itself. For example, the same `this` object, which may + // appear at many levels of the stack, can have all of its data stored once in + // this table. The stack frame variables then would hold only a reference to + // it. The variable `var_table_index` field is an index into this repeated + // field. The stored objects are nameless and get their name from the + // referencing variable. The effective variable is a merge of the referencing // variable and the referenced variable. VariableTable []*Variable `json:"variableTable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Breakpoint) MarshalJSON() ([]byte, error) { +func (s Breakpoint) MarshalJSON() ([]byte, error) { type NoMethod Breakpoint - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CloudRepoSourceContext: A CloudRepoSourceContext denotes a particular -// revision in a cloud repo (a repo hosted by the Google Cloud -// Platform). +// revision in a cloud repo (a repo hosted by the Google Cloud Platform). type CloudRepoSourceContext struct { // AliasContext: An alias, which may be a branch or tag. AliasContext *AliasContext `json:"aliasContext,omitempty"` - // AliasName: The name of an alias (branch, tag, etc.). AliasName string `json:"aliasName,omitempty"` - // RepoId: The ID of the repo. RepoId *RepoId `json:"repoId,omitempty"` - // RevisionId: A revision ID. RevisionId string `json:"revisionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AliasContext") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AliasContext") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AliasContext") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CloudRepoSourceContext) MarshalJSON() ([]byte, error) { +func (s CloudRepoSourceContext) MarshalJSON() ([]byte, error) { type NoMethod CloudRepoSourceContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CloudWorkspaceId: A CloudWorkspaceId is a unique identifier for a -// cloud workspace. A cloud workspace is a place associated with a repo -// where modified files can be stored before they are committed. +// CloudWorkspaceId: A CloudWorkspaceId is a unique identifier for a cloud +// workspace. A cloud workspace is a place associated with a repo where +// modified files can be stored before they are committed. type CloudWorkspaceId struct { - // Name: The unique name of the workspace within the repo. This is the - // name chosen by the client in the Source API's CreateWorkspace method. + // Name: The unique name of the workspace within the repo. This is the name + // chosen by the client in the Source API's CreateWorkspace method. Name string `json:"name,omitempty"` - // RepoId: The ID of the repo containing the workspace. RepoId *RepoId `json:"repoId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CloudWorkspaceId) MarshalJSON() ([]byte, error) { +func (s CloudWorkspaceId) MarshalJSON() ([]byte, error) { type NoMethod CloudWorkspaceId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CloudWorkspaceSourceContext: A CloudWorkspaceSourceContext denotes a // workspace at a particular snapshot. type CloudWorkspaceSourceContext struct { - // SnapshotId: The ID of the snapshot. An empty snapshot_id refers to - // the most recent snapshot. + // SnapshotId: The ID of the snapshot. An empty snapshot_id refers to the most + // recent snapshot. SnapshotId string `json:"snapshotId,omitempty"` - // WorkspaceId: The ID of the workspace. WorkspaceId *CloudWorkspaceId `json:"workspaceId,omitempty"` - // ForceSendFields is a list of field names (e.g. "SnapshotId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SnapshotId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SnapshotId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CloudWorkspaceSourceContext) MarshalJSON() ([]byte, error) { +func (s CloudWorkspaceSourceContext) MarshalJSON() ([]byte, error) { type NoMethod CloudWorkspaceSourceContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Debuggee: Represents the debugged application. The application may -// include one or more replicated processes executing the same code. -// Each of these processes is attached with a debugger agent, carrying -// out the debugging commands. Agents attached to the same debuggee -// identify themselves as such by using exactly the same Debuggee -// message value when registering. +// Debuggee: Represents the debugged application. The application may include +// one or more replicated processes executing the same code. Each of these +// processes is attached with a debugger agent, carrying out the debugging +// commands. Agents attached to the same debuggee identify themselves as such +// by using exactly the same Debuggee message value when registering. type Debuggee struct { // AgentVersion: Version ID of the agent. Schema: // `domain/language-platform/vmajor.minor` (for example // `google.com/java-gcp/v1.1`). AgentVersion string `json:"agentVersion,omitempty"` - // CanaryMode: Used when setting breakpoint canary for this debuggee. // // Possible values: - // "CANARY_MODE_UNSPECIFIED" - CANARY_MODE_UNSPECIFIED is equivalent - // to CANARY_MODE_ALWAYS_DISABLED so that if the debuggee is not - // configured to use the canary feature, the feature will be disabled. - // "CANARY_MODE_ALWAYS_ENABLED" - Always enable breakpoint canary - // regardless of the value of breakpoint's canary option. + // "CANARY_MODE_UNSPECIFIED" - CANARY_MODE_UNSPECIFIED is equivalent to + // CANARY_MODE_ALWAYS_DISABLED so that if the debuggee is not configured to use + // the canary feature, the feature will be disabled. + // "CANARY_MODE_ALWAYS_ENABLED" - Always enable breakpoint canary regardless + // of the value of breakpoint's canary option. // "CANARY_MODE_ALWAYS_DISABLED" - Always disable breakpoint canary // regardless of the value of breakpoint's canary option. - // "CANARY_MODE_DEFAULT_ENABLED" - Depends on the breakpoint's canary - // option. Enable canary by default if the breakpoint's canary option is - // not specified. + // "CANARY_MODE_DEFAULT_ENABLED" - Depends on the breakpoint's canary option. + // Enable canary by default if the breakpoint's canary option is not specified. // "CANARY_MODE_DEFAULT_DISABLED" - Depends on the breakpoint's canary - // option. Disable canary by default if the breakpoint's canary option - // is not specified. + // option. Disable canary by default if the breakpoint's canary option is not + // specified. CanaryMode string `json:"canaryMode,omitempty"` - // Description: Human readable description of the debuggee. Including a - // human-readable project name, environment name and version information - // is recommended. + // human-readable project name, environment name and version information is + // recommended. Description string `json:"description,omitempty"` - - // ExtSourceContexts: References to the locations and revisions of the - // source code used in the deployed application. + // ExtSourceContexts: References to the locations and revisions of the source + // code used in the deployed application. ExtSourceContexts []*ExtendedSourceContext `json:"extSourceContexts,omitempty"` - - // Id: Unique identifier for the debuggee generated by the controller - // service. + // Id: Unique identifier for the debuggee generated by the controller service. Id string `json:"id,omitempty"` - - // IsDisabled: If set to `true`, indicates that the agent should disable - // itself and detach from the debuggee. + // IsDisabled: If set to `true`, indicates that the agent should disable itself + // and detach from the debuggee. IsDisabled bool `json:"isDisabled,omitempty"` - - // IsInactive: If set to `true`, indicates that Controller service does - // not detect any activity from the debuggee agents and the application - // is possibly stopped. + // IsInactive: If set to `true`, indicates that Controller service does not + // detect any activity from the debuggee agents and the application is possibly + // stopped. IsInactive bool `json:"isInactive,omitempty"` - - // Labels: A set of custom debuggee properties, populated by the agent, - // to be displayed to the user. + // Labels: A set of custom debuggee properties, populated by the agent, to be + // displayed to the user. Labels map[string]string `json:"labels,omitempty"` - - // Project: Project the debuggee is associated with. Use project number - // or id when registering a Google Cloud Platform project. + // Project: Project the debuggee is associated with. Use project number or id + // when registering a Google Cloud Platform project. Project string `json:"project,omitempty"` - - // SourceContexts: References to the locations and revisions of the - // source code used in the deployed application. + // SourceContexts: References to the locations and revisions of the source code + // used in the deployed application. SourceContexts []*SourceContext `json:"sourceContexts,omitempty"` - // Status: Human readable message to be displayed to the user about this - // debuggee. Absence of this field indicates no status. The message can - // be either informational or an error status. + // debuggee. Absence of this field indicates no status. The message can be + // either informational or an error status. Status *StatusMessage `json:"status,omitempty"` - // Uniquifier: Uniquifier to further distinguish the application. It is - // possible that different applications might have identical values in - // the debuggee message, thus, incorrectly identified as a single - // application by the Controller service. This field adds salt to - // further distinguish the application. Agents should consider seeding - // this field with value that identifies the code, binary, configuration - // and environment. + // possible that different applications might have identical values in the + // debuggee message, thus, incorrectly identified as a single application by + // the Controller service. This field adds salt to further distinguish the + // application. Agents should consider seeding this field with value that + // identifies the code, binary, configuration and environment. Uniquifier string `json:"uniquifier,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgentVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AgentVersion") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AgentVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Debuggee) MarshalJSON() ([]byte, error) { +func (s Debuggee) MarshalJSON() ([]byte, error) { type NoMethod Debuggee - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// ExtendedSourceContext: An ExtendedSourceContext is a SourceContext -// combined with additional details describing the context. +// ExtendedSourceContext: An ExtendedSourceContext is a SourceContext combined +// with additional details describing the context. type ExtendedSourceContext struct { // Context: Any source context. Context *SourceContext `json:"context,omitempty"` - // Labels: Labels with user defined metadata. Labels map[string]string `json:"labels,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Context") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Context") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Context") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Context") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExtendedSourceContext) MarshalJSON() ([]byte, error) { +func (s ExtendedSourceContext) MarshalJSON() ([]byte, error) { type NoMethod ExtendedSourceContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FormatMessage: Represents a message with parameters. type FormatMessage struct { - // Format: Format template for the message. The `format` uses - // placeholders `$0`, `$1`, etc. to reference parameters. `$$` can be - // used to denote the `$` character. Examples: * `Failed to load '$0' - // which helps debug $1 the first time it is loaded. Again, $0 is very - // important.` * `Please pay $$10 to use $0 instead of $1.` + // Format: Format template for the message. The `format` uses placeholders + // `$0`, `$1`, etc. to reference parameters. `$$` can be used to denote the `$` + // character. Examples: * `Failed to load '$0' which helps debug $1 the first + // time it is loaded. Again, $0 is very important.` * `Please pay $$10 to use + // $0 instead of $1.` Format string `json:"format,omitempty"` - // Parameters: Optional parameters to be embedded into the message. Parameters []string `json:"parameters,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Format") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Format") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Format") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FormatMessage) MarshalJSON() ([]byte, error) { +func (s FormatMessage) MarshalJSON() ([]byte, error) { type NoMethod FormatMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GerritSourceContext: A SourceContext referring to a Gerrit project. type GerritSourceContext struct { // AliasContext: An alias, which may be a branch or tag. AliasContext *AliasContext `json:"aliasContext,omitempty"` - // AliasName: The name of an alias (branch, tag, etc.). AliasName string `json:"aliasName,omitempty"` - // GerritProject: The full project name within the host. Projects may be - // nested, so "project/subproject" is a valid project name. The "repo - // name" is hostURI/project. + // nested, so "project/subproject" is a valid project name. The "repo name" is + // hostURI/project. GerritProject string `json:"gerritProject,omitempty"` - // HostUri: The URI of a running Gerrit instance. HostUri string `json:"hostUri,omitempty"` - // RevisionId: A revision (commit) ID. RevisionId string `json:"revisionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AliasContext") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AliasContext") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AliasContext") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GerritSourceContext) MarshalJSON() ([]byte, error) { +func (s GerritSourceContext) MarshalJSON() ([]byte, error) { type NoMethod GerritSourceContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetBreakpointResponse: Response for getting breakpoint information. type GetBreakpointResponse struct { - // Breakpoint: Complete breakpoint state. The fields `id` and `location` - // are guaranteed to be set. + // Breakpoint: Complete breakpoint state. The fields `id` and `location` are + // guaranteed to be set. Breakpoint *Breakpoint `json:"breakpoint,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Breakpoint") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakpoint") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakpoint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetBreakpointResponse) MarshalJSON() ([]byte, error) { +func (s GetBreakpointResponse) MarshalJSON() ([]byte, error) { type NoMethod GetBreakpointResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GitSourceContext: A GitSourceContext denotes a particular revision in -// a third party Git repository (e.g. GitHub). +// GitSourceContext: A GitSourceContext denotes a particular revision in a +// third party Git repository (e.g. GitHub). type GitSourceContext struct { // RevisionId: Git commit hash. required. RevisionId string `json:"revisionId,omitempty"` - // Url: Git repository URL. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "RevisionId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RevisionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RevisionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GitSourceContext) MarshalJSON() ([]byte, error) { +func (s GitSourceContext) MarshalJSON() ([]byte, error) { type NoMethod GitSourceContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListActiveBreakpointsResponse: Response for listing active -// breakpoints. +// ListActiveBreakpointsResponse: Response for listing active breakpoints. type ListActiveBreakpointsResponse struct { - // Breakpoints: List of all active breakpoints. The fields `id` and - // `location` are guaranteed to be set on each breakpoint. + // Breakpoints: List of all active breakpoints. The fields `id` and `location` + // are guaranteed to be set on each breakpoint. Breakpoints []*Breakpoint `json:"breakpoints,omitempty"` - - // NextWaitToken: A token that can be used in the next method call to - // block until the list of breakpoints changes. + // NextWaitToken: A token that can be used in the next method call to block + // until the list of breakpoints changes. NextWaitToken string `json:"nextWaitToken,omitempty"` - - // WaitExpired: If set to `true`, indicates that there is no change to - // the list of active breakpoints and the server-selected timeout has - // expired. The `breakpoints` field would be empty and should be - // ignored. + // WaitExpired: If set to `true`, indicates that there is no change to the list + // of active breakpoints and the server-selected timeout has expired. The + // `breakpoints` field would be empty and should be ignored. WaitExpired bool `json:"waitExpired,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Breakpoints") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakpoints") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakpoints") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListActiveBreakpointsResponse) MarshalJSON() ([]byte, error) { +func (s ListActiveBreakpointsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListActiveBreakpointsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListBreakpointsResponse: Response for listing breakpoints. type ListBreakpointsResponse struct { - // Breakpoints: List of breakpoints matching the request. The fields - // `id` and `location` are guaranteed to be set on each breakpoint. The - // fields: `stack_frames`, `evaluated_expressions` and `variable_table` - // are cleared on each breakpoint regardless of its status. + // Breakpoints: List of breakpoints matching the request. The fields `id` and + // `location` are guaranteed to be set on each breakpoint. The fields: + // `stack_frames`, `evaluated_expressions` and `variable_table` are cleared on + // each breakpoint regardless of its status. Breakpoints []*Breakpoint `json:"breakpoints,omitempty"` - - // NextWaitToken: A wait token that can be used in the next call to - // `list` (REST) or `ListBreakpoints` (RPC) to block until the list of - // breakpoints has changes. + // NextWaitToken: A wait token that can be used in the next call to `list` + // (REST) or `ListBreakpoints` (RPC) to block until the list of breakpoints has + // changes. NextWaitToken string `json:"nextWaitToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Breakpoints") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakpoints") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakpoints") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListBreakpointsResponse) MarshalJSON() ([]byte, error) { +func (s ListBreakpointsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListBreakpointsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListDebuggeesResponse: Response for listing debuggees. type ListDebuggeesResponse struct { - // Debuggees: List of debuggees accessible to the calling user. The - // fields `debuggee.id` and `description` are guaranteed to be set. The - // `description` field is a human readable field provided by agents and - // can be displayed to users. + // Debuggees: List of debuggees accessible to the calling user. The fields + // `debuggee.id` and `description` are guaranteed to be set. The `description` + // field is a human readable field provided by agents and can be displayed to + // users. Debuggees []*Debuggee `json:"debuggees,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Debuggees") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Debuggees") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Debuggees") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListDebuggeesResponse) MarshalJSON() ([]byte, error) { +func (s ListDebuggeesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListDebuggeesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ProjectRepoId: Selects a repo using a Google Cloud Platform project -// ID (e.g. winged-cargo-31) and a repo name within that project. +// ProjectRepoId: Selects a repo using a Google Cloud Platform project ID (e.g. +// winged-cargo-31) and a repo name within that project. type ProjectRepoId struct { // ProjectId: The ID of the project. ProjectId string `json:"projectId,omitempty"` - // RepoName: The name of the repo. Leave empty for the default repo. RepoName string `json:"repoName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProjectId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProjectId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProjectRepoId) MarshalJSON() ([]byte, error) { +func (s ProjectRepoId) MarshalJSON() ([]byte, error) { type NoMethod ProjectRepoId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RegisterDebuggeeRequest: Request to register a debuggee. type RegisterDebuggeeRequest struct { - // Debuggee: Required. Debuggee information to register. The fields - // `project`, `uniquifier`, `description` and `agent_version` of the - // debuggee must be set. + // Debuggee: Required. Debuggee information to register. The fields `project`, + // `uniquifier`, `description` and `agent_version` of the debuggee must be set. Debuggee *Debuggee `json:"debuggee,omitempty"` - // ForceSendFields is a list of field names (e.g. "Debuggee") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Debuggee") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Debuggee") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegisterDebuggeeRequest) MarshalJSON() ([]byte, error) { +func (s RegisterDebuggeeRequest) MarshalJSON() ([]byte, error) { type NoMethod RegisterDebuggeeRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RegisterDebuggeeResponse: Response for registering a debuggee. type RegisterDebuggeeResponse struct { - // AgentId: A unique ID generated for the agent. Each RegisterDebuggee - // request will generate a new agent ID. + // AgentId: A unique ID generated for the agent. Each RegisterDebuggee request + // will generate a new agent ID. AgentId string `json:"agentId,omitempty"` - - // Debuggee: Debuggee resource. The field `id` is guaranteed to be set - // (in addition to the echoed fields). If the field `is_disabled` is set - // to `true`, the agent should disable itself by removing all - // breakpoints and detaching from the application. It should however - // continue to poll `RegisterDebuggee` until reenabled. + // Debuggee: Debuggee resource. The field `id` is guaranteed to be set (in + // addition to the echoed fields). If the field `is_disabled` is set to `true`, + // the agent should disable itself by removing all breakpoints and detaching + // from the application. It should however continue to poll `RegisterDebuggee` + // until reenabled. Debuggee *Debuggee `json:"debuggee,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AgentId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AgentId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AgentId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AgentId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegisterDebuggeeResponse) MarshalJSON() ([]byte, error) { +func (s RegisterDebuggeeResponse) MarshalJSON() ([]byte, error) { type NoMethod RegisterDebuggeeResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RepoId: A unique identifier for a cloud repo. type RepoId struct { // ProjectRepoId: A combination of a project ID and a repo name. ProjectRepoId *ProjectRepoId `json:"projectRepoId,omitempty"` - // Uid: A server-assigned, globally unique identifier. Uid string `json:"uid,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectRepoId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProjectRepoId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProjectRepoId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RepoId) MarshalJSON() ([]byte, error) { +func (s RepoId) MarshalJSON() ([]byte, error) { type NoMethod RepoId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetBreakpointResponse: Response for setting a breakpoint. type SetBreakpointResponse struct { - // Breakpoint: Breakpoint resource. The field `id` is guaranteed to be - // set (in addition to the echoed fields). + // Breakpoint: Breakpoint resource. The field `id` is guaranteed to be set (in + // addition to the echoed fields). Breakpoint *Breakpoint `json:"breakpoint,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Breakpoint") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakpoint") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakpoint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetBreakpointResponse) MarshalJSON() ([]byte, error) { +func (s SetBreakpointResponse) MarshalJSON() ([]byte, error) { type NoMethod SetBreakpointResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SourceContext: A SourceContext is a reference to a tree of files. A -// SourceContext together with a path point to a unique revision of a -// single file or directory. +// SourceContext together with a path point to a unique revision of a single +// file or directory. type SourceContext struct { // CloudRepo: A SourceContext referring to a revision in a cloud repo. CloudRepo *CloudRepoSourceContext `json:"cloudRepo,omitempty"` - // CloudWorkspace: A SourceContext referring to a snapshot in a cloud // workspace. CloudWorkspace *CloudWorkspaceSourceContext `json:"cloudWorkspace,omitempty"` - // Gerrit: A SourceContext referring to a Gerrit project. Gerrit *GerritSourceContext `json:"gerrit,omitempty"` - - // Git: A SourceContext referring to any third party Git repo (e.g. - // GitHub). + // Git: A SourceContext referring to any third party Git repo (e.g. GitHub). Git *GitSourceContext `json:"git,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudRepo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudRepo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudRepo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceContext) MarshalJSON() ([]byte, error) { +func (s SourceContext) MarshalJSON() ([]byte, error) { type NoMethod SourceContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SourceLocation: Represents a location in the source code. type SourceLocation struct { - // Column: Column within a line. The first column in a line as the value - // `1`. Agents that do not support setting breakpoints on specific - // columns ignore this field. + // Column: Column within a line. The first column in a line as the value `1`. + // Agents that do not support setting breakpoints on specific columns ignore + // this field. Column int64 `json:"column,omitempty"` - - // Line: Line inside the file. The first line in the file has the value - // `1`. + // Line: Line inside the file. The first line in the file has the value `1`. Line int64 `json:"line,omitempty"` - // Path: Path to the source file within the source context of the target // binary. Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Column") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Column") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Column") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceLocation) MarshalJSON() ([]byte, error) { +func (s SourceLocation) MarshalJSON() ([]byte, error) { type NoMethod SourceLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StackFrame: Represents a stack frame context. type StackFrame struct { - // Arguments: Set of arguments passed to this function. Note that this - // might not be populated for all stack frames. + // Arguments: Set of arguments passed to this function. Note that this might + // not be populated for all stack frames. Arguments []*Variable `json:"arguments,omitempty"` - // Function: Demangled function name at the call site. Function string `json:"function,omitempty"` - - // Locals: Set of local variables at the stack frame location. Note that - // this might not be populated for all stack frames. + // Locals: Set of local variables at the stack frame location. Note that this + // might not be populated for all stack frames. Locals []*Variable `json:"locals,omitempty"` - // Location: Source location of the call site. Location *SourceLocation `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "Arguments") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Arguments") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Arguments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StackFrame) MarshalJSON() ([]byte, error) { +func (s StackFrame) MarshalJSON() ([]byte, error) { type NoMethod StackFrame - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StatusMessage: Represents a contextual status message. The message -// can indicate an error or informational status, and refer to specific -// parts of the containing object. For example, the `Breakpoint.status` -// field can indicate an error referring to the -// `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. +// StatusMessage: Represents a contextual status message. The message can +// indicate an error or informational status, and refer to specific parts of +// the containing object. For example, the `Breakpoint.status` field can +// indicate an error referring to the `BREAKPOINT_SOURCE_LOCATION` with the +// message `Location not found`. type StatusMessage struct { // Description: Status message text. Description *FormatMessage `json:"description,omitempty"` - // IsError: Distinguishes errors from informational messages. IsError bool `json:"isError,omitempty"` - // RefersTo: Reference to which the message applies. // // Possible values: // "UNSPECIFIED" - Status doesn't refer to any particular input. - // "BREAKPOINT_SOURCE_LOCATION" - Status applies to the breakpoint and - // is related to its location. - // "BREAKPOINT_CONDITION" - Status applies to the breakpoint and is - // related to its condition. - // "BREAKPOINT_EXPRESSION" - Status applies to the breakpoint and is - // related to its expressions. - // "BREAKPOINT_AGE" - Status applies to the breakpoint and is related - // to its age. - // "BREAKPOINT_CANARY_FAILED" - Status applies to the breakpoint when - // the breakpoint failed to exit the canary state. + // "BREAKPOINT_SOURCE_LOCATION" - Status applies to the breakpoint and is + // related to its location. + // "BREAKPOINT_CONDITION" - Status applies to the breakpoint and is related + // to its condition. + // "BREAKPOINT_EXPRESSION" - Status applies to the breakpoint and is related + // to its expressions. + // "BREAKPOINT_AGE" - Status applies to the breakpoint and is related to its + // age. + // "BREAKPOINT_CANARY_FAILED" - Status applies to the breakpoint when the + // breakpoint failed to exit the canary state. // "VARIABLE_NAME" - Status applies to the entire variable. - // "VARIABLE_VALUE" - Status applies to variable value (variable name - // is valid). + // "VARIABLE_VALUE" - Status applies to variable value (variable name is + // valid). RefersTo string `json:"refersTo,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StatusMessage) MarshalJSON() ([]byte, error) { +func (s StatusMessage) MarshalJSON() ([]byte, error) { type NoMethod StatusMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpdateActiveBreakpointRequest: Request to update an active -// breakpoint. +// UpdateActiveBreakpointRequest: Request to update an active breakpoint. type UpdateActiveBreakpointRequest struct { - // Breakpoint: Required. Updated breakpoint information. The field `id` - // must be set. The agent must echo all Breakpoint specification fields - // in the update. + // Breakpoint: Required. Updated breakpoint information. The field `id` must be + // set. The agent must echo all Breakpoint specification fields in the update. Breakpoint *Breakpoint `json:"breakpoint,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakpoint") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakpoint") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakpoint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateActiveBreakpointRequest) MarshalJSON() ([]byte, error) { +func (s UpdateActiveBreakpointRequest) MarshalJSON() ([]byte, error) { type NoMethod UpdateActiveBreakpointRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpdateActiveBreakpointResponse: Response for updating an active -// breakpoint. The message is defined to allow future extensions. +// UpdateActiveBreakpointResponse: Response for updating an active breakpoint. +// The message is defined to allow future extensions. type UpdateActiveBreakpointResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// Variable: Represents a variable or an argument possibly of a compound -// object type. Note how the following variables are represented: 1) A -// simple variable: int x = 5 { name: "x", value: "5", type: "int" } // -// Captured variable 2) A compound object: struct T { int m1; int m2; }; -// T x = { 3, 7 }; { // Captured variable name: "x", type: "T", members -// { name: "m1", value: "3", type: "int" }, members { name: "m2", value: -// "7", type: "int" } } 3) A pointer where the pointee was captured: T x -// = { 3, 7 }; T* p = &x; { // Captured variable name: "p", type: "T*", -// value: "0x00500500", members { name: "m1", value: "3", type: "int" }, -// members { name: "m2", value: "7", type: "int" } } 4) A pointer where -// the pointee was not captured: T* p = new T; { // Captured variable -// name: "p", type: "T*", value: "0x00400400" status { is_error: true, -// description { format: "unavailable" } } } The status should describe -// the reason for the missing value, such as “, “, “. Note that a -// null pointer should not have members. 5) An unnamed value: int* p = -// new int(7); { // Captured variable name: "p", value: "0x00500500", -// type: "int*", members { value: "7", type: "int" } } 6) An unnamed -// pointer where the pointee was not captured: int* p = new int(7); -// int** pp = &p; { // Captured variable name: "pp", value: -// "0x00500500", type: "int**", members { value: "0x00400400", type: -// "int*" status { is_error: true, description: { format: "unavailable" -// } } } } } To optimize computation, memory and network traffic, -// variables that repeat in the output multiple times can be stored once -// in a shared variable table and be referenced using the +// Variable: Represents a variable or an argument possibly of a compound object +// type. Note how the following variables are represented: 1) A simple +// variable: int x = 5 { name: "x", value: "5", type: "int" } // Captured +// variable 2) A compound object: struct T { int m1; int m2; }; T x = { 3, 7 }; +// { // Captured variable name: "x", type: "T", members { name: "m1", value: +// "3", type: "int" }, members { name: "m2", value: "7", type: "int" } } 3) A +// pointer where the pointee was captured: T x = { 3, 7 }; T* p = &x; { // +// Captured variable name: "p", type: "T*", value: "0x00500500", members { +// name: "m1", value: "3", type: "int" }, members { name: "m2", value: "7", +// type: "int" } } 4) A pointer where the pointee was not captured: T* p = new +// T; { // Captured variable name: "p", type: "T*", value: "0x00400400" status +// { is_error: true, description { format: "unavailable" } } } The status +// should describe the reason for the missing value, such as “, “, “. Note +// that a null pointer should not have members. 5) An unnamed value: int* p = +// new int(7); { // Captured variable name: "p", value: "0x00500500", type: +// "int*", members { value: "7", type: "int" } } 6) An unnamed pointer where +// the pointee was not captured: int* p = new int(7); int** pp = &p; { // +// Captured variable name: "pp", value: "0x00500500", type: "int**", members { +// value: "0x00400400", type: "int*" status { is_error: true, description: { +// format: "unavailable" } } } } } To optimize computation, memory and network +// traffic, variables that repeat in the output multiple times can be stored +// once in a shared variable table and be referenced using the // `var_table_index` field. The variables stored in the shared table are // nameless and are essentially a partition of the complete variable. To -// reconstruct the complete variable, merge the referencing variable -// with the referenced variable. When using the shared variable table, -// the following variables: T x = { 3, 7 }; T* p = &x; T& r = x; { name: -// "x", var_table_index: 3, type: "T" } // Captured variables { name: -// "p", value "0x00500500", type="T*", var_table_index: 3 } { name: "r", -// type="T&", var_table_index: 3 } { // Shared variable table entry #3: -// members { name: "m1", value: "3", type: "int" }, members { name: -// "m2", value: "7", type: "int" } } Note that the pointer address is -// stored with the referencing variable and not with the referenced -// variable. This allows the referenced variable to be shared between -// pointers and references. The type field is optional. The debugger -// agent may or may not support it. +// reconstruct the complete variable, merge the referencing variable with the +// referenced variable. When using the shared variable table, the following +// variables: T x = { 3, 7 }; T* p = &x; T& r = x; { name: "x", +// var_table_index: 3, type: "T" } // Captured variables { name: "p", value +// "0x00500500", type="T*", var_table_index: 3 } { name: "r", type="T&", +// var_table_index: 3 } { // Shared variable table entry #3: members { name: +// "m1", value: "3", type: "int" }, members { name: "m2", value: "7", type: +// "int" } } Note that the pointer address is stored with the referencing +// variable and not with the referenced variable. This allows the referenced +// variable to be shared between pointers and references. The type field is +// optional. The debugger agent may or may not support it. type Variable struct { // Members: Members contained or pointed to by the variable. Members []*Variable `json:"members,omitempty"` - // Name: Name of the variable, if any. Name string `json:"name,omitempty"` - - // Status: Status associated with the variable. This field will usually - // stay unset. A status of a single variable only applies to that - // variable or expression. The rest of breakpoint data still remains - // valid. Variables might be reported in error state even when - // breakpoint is not in final state. The message may refer to variable - // name with `refers_to` set to `VARIABLE_NAME`. Alternatively - // `refers_to` will be set to `VARIABLE_VALUE`. In either case variable - // value and members will be unset. Example of error message applied to - // name: `Invalid expression syntax`. Example of information message - // applied to value: `Not captured`. Examples of error message applied - // to value: * `Malformed string`, * `Field f not found in class C` * - // `Null pointer dereference` + // Status: Status associated with the variable. This field will usually stay + // unset. A status of a single variable only applies to that variable or + // expression. The rest of breakpoint data still remains valid. Variables might + // be reported in error state even when breakpoint is not in final state. The + // message may refer to variable name with `refers_to` set to `VARIABLE_NAME`. + // Alternatively `refers_to` will be set to `VARIABLE_VALUE`. In either case + // variable value and members will be unset. Example of error message applied + // to name: `Invalid expression syntax`. Example of information message applied + // to value: `Not captured`. Examples of error message applied to value: * + // `Malformed string`, * `Field f not found in class C` * `Null pointer + // dereference` Status *StatusMessage `json:"status,omitempty"` - // Type: Variable type (e.g. `MyClass`). If the variable is split with - // `var_table_index`, `type` goes next to `value`. The interpretation of - // a type is agent specific. It is recommended to include the dynamic - // type rather than a static type of an object. + // `var_table_index`, `type` goes next to `value`. The interpretation of a type + // is agent specific. It is recommended to include the dynamic type rather than + // a static type of an object. Type string `json:"type,omitempty"` - // Value: Simple value of the variable. Value string `json:"value,omitempty"` - - // VarTableIndex: Reference to a variable in the shared variable table. - // More than one variable can reference the same variable in the table. - // The `var_table_index` field is an index into `variable_table` in - // Breakpoint. + // VarTableIndex: Reference to a variable in the shared variable table. More + // than one variable can reference the same variable in the table. The + // `var_table_index` field is an index into `variable_table` in Breakpoint. VarTableIndex int64 `json:"varTableIndex,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Members") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Members") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Members") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Members") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Variable) MarshalJSON() ([]byte, error) { +func (s Variable) MarshalJSON() ([]byte, error) { type NoMethod Variable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "clouddebugger.controller.debuggees.register": - type ControllerDebuggeesRegisterCall struct { s *Service registerdebuggeerequest *RegisterDebuggeeRequest @@ -1396,14 +1168,14 @@ type ControllerDebuggeesRegisterCall struct { header_ http.Header } -// Register: Registers the debuggee with the controller service. All -// agents attached to the same application must call this method with -// exactly the same request content to get back the same stable -// `debuggee_id`. Agents should call this method again whenever -// `google.rpc.Code.NOT_FOUND` is returned from any controller method. -// This protocol allows the controller service to disable debuggees, -// recover from data loss, or change the `debuggee_id` format. Agents -// must handle `debuggee_id` value changing upon re-registration. +// Register: Registers the debuggee with the controller service. All agents +// attached to the same application must call this method with exactly the same +// request content to get back the same stable `debuggee_id`. Agents should +// call this method again whenever `google.rpc.Code.NOT_FOUND` is returned from +// any controller method. This protocol allows the controller service to +// disable debuggees, recover from data loss, or change the `debuggee_id` +// format. Agents must handle `debuggee_id` value changing upon +// re-registration. func (r *ControllerDebuggeesService) Register(registerdebuggeerequest *RegisterDebuggeeRequest) *ControllerDebuggeesRegisterCall { c := &ControllerDebuggeesRegisterCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.registerdebuggeerequest = registerdebuggeerequest @@ -1411,23 +1183,21 @@ func (r *ControllerDebuggeesService) Register(registerdebuggeerequest *RegisterD } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ControllerDebuggeesRegisterCall) Fields(s ...googleapi.Field) *ControllerDebuggeesRegisterCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ControllerDebuggeesRegisterCall) Context(ctx context.Context) *ControllerDebuggeesRegisterCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ControllerDebuggeesRegisterCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1436,18 +1206,12 @@ func (c *ControllerDebuggeesRegisterCall) Header() http.Header { } func (c *ControllerDebuggeesRegisterCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.registerdebuggeerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/controller/debuggees/register") @@ -1457,16 +1221,15 @@ func (c *ControllerDebuggeesRegisterCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddebugger.controller.debuggees.register" call. -// Exactly one of *RegisterDebuggeeResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *RegisterDebuggeeResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ControllerDebuggeesRegisterCall) Do(opts ...googleapi.CallOption) (*RegisterDebuggeeResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1497,29 +1260,7 @@ func (c *ControllerDebuggeesRegisterCall) Do(opts ...googleapi.CallOption) (*Reg return nil, err } return ret, nil - // { - // "description": "Registers the debuggee with the controller service. All agents attached to the same application must call this method with exactly the same request content to get back the same stable `debuggee_id`. Agents should call this method again whenever `google.rpc.Code.NOT_FOUND` is returned from any controller method. This protocol allows the controller service to disable debuggees, recover from data loss, or change the `debuggee_id` format. Agents must handle `debuggee_id` value changing upon re-registration.", - // "flatPath": "v2/controller/debuggees/register", - // "httpMethod": "POST", - // "id": "clouddebugger.controller.debuggees.register", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/controller/debuggees/register", - // "request": { - // "$ref": "RegisterDebuggeeRequest" - // }, - // "response": { - // "$ref": "RegisterDebuggeeResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud_debugger" - // ] - // } - -} - -// method id "clouddebugger.controller.debuggees.breakpoints.list": +} type ControllerDebuggeesBreakpointsListCall struct { s *Service @@ -1530,16 +1271,15 @@ type ControllerDebuggeesBreakpointsListCall struct { header_ http.Header } -// List: Returns the list of all active breakpoints for the debuggee. -// The breakpoint specification (`location`, `condition`, and -// `expressions` fields) is semantically immutable, although the field -// values may change. For example, an agent may update the location line -// number to reflect the actual line where the breakpoint was set, but -// this doesn't change the breakpoint semantics. This means that an -// agent does not need to check if a breakpoint has changed when it -// encounters the same breakpoint on a successive call. Moreover, an -// agent should remember the breakpoints that are completed until the -// controller removes them from the active list to avoid setting those +// List: Returns the list of all active breakpoints for the debuggee. The +// breakpoint specification (`location`, `condition`, and `expressions` fields) +// is semantically immutable, although the field values may change. For +// example, an agent may update the location line number to reflect the actual +// line where the breakpoint was set, but this doesn't change the breakpoint +// semantics. This means that an agent does not need to check if a breakpoint +// has changed when it encounters the same breakpoint on a successive call. +// Moreover, an agent should remember the breakpoints that are completed until +// the controller removes them from the active list to avoid setting those // breakpoints again. // // - debuggeeId: Identifies the debuggee. @@ -1549,62 +1289,57 @@ func (r *ControllerDebuggeesBreakpointsService) List(debuggeeId string) *Control return c } -// AgentId sets the optional parameter "agentId": Identifies the agent. -// This is the ID returned in the RegisterDebuggee response. +// AgentId sets the optional parameter "agentId": Identifies the agent. This is +// the ID returned in the RegisterDebuggee response. func (c *ControllerDebuggeesBreakpointsListCall) AgentId(agentId string) *ControllerDebuggeesBreakpointsListCall { c.urlParams_.Set("agentId", agentId) return c } -// SuccessOnTimeout sets the optional parameter "successOnTimeout": If -// set to `true` (recommended), returns `google.rpc.Code.OK` status and -// sets the `wait_expired` response field to `true` when the -// server-selected timeout has expired. If set to `false` (deprecated), -// returns `google.rpc.Code.ABORTED` status when the server-selected -// timeout has expired. +// SuccessOnTimeout sets the optional parameter "successOnTimeout": If set to +// `true` (recommended), returns `google.rpc.Code.OK` status and sets the +// `wait_expired` response field to `true` when the server-selected timeout has +// expired. If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` +// status when the server-selected timeout has expired. func (c *ControllerDebuggeesBreakpointsListCall) SuccessOnTimeout(successOnTimeout bool) *ControllerDebuggeesBreakpointsListCall { c.urlParams_.Set("successOnTimeout", fmt.Sprint(successOnTimeout)) return c } // WaitToken sets the optional parameter "waitToken": A token that, if -// specified, blocks the method call until the list of active -// breakpoints has changed, or a server-selected timeout has expired. -// The value should be set from the `next_wait_token` field in the last -// response. The initial value should be set to "init". +// specified, blocks the method call until the list of active breakpoints has +// changed, or a server-selected timeout has expired. The value should be set +// from the `next_wait_token` field in the last response. The initial value +// should be set to "init". func (c *ControllerDebuggeesBreakpointsListCall) WaitToken(waitToken string) *ControllerDebuggeesBreakpointsListCall { c.urlParams_.Set("waitToken", waitToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ControllerDebuggeesBreakpointsListCall) Fields(s ...googleapi.Field) *ControllerDebuggeesBreakpointsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ControllerDebuggeesBreakpointsListCall) IfNoneMatch(entityTag string) *ControllerDebuggeesBreakpointsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ControllerDebuggeesBreakpointsListCall) Context(ctx context.Context) *ControllerDebuggeesBreakpointsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ControllerDebuggeesBreakpointsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1613,12 +1348,7 @@ func (c *ControllerDebuggeesBreakpointsListCall) Header() http.Header { } func (c *ControllerDebuggeesBreakpointsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1635,16 +1365,15 @@ func (c *ControllerDebuggeesBreakpointsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "debuggeeId": c.debuggeeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddebugger.controller.debuggees.breakpoints.list" call. -// Exactly one of *ListActiveBreakpointsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListActiveBreakpointsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListActiveBreakpointsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ControllerDebuggeesBreakpointsListCall) Do(opts ...googleapi.CallOption) (*ListActiveBreakpointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1675,50 +1404,7 @@ func (c *ControllerDebuggeesBreakpointsListCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Returns the list of all active breakpoints for the debuggee. The breakpoint specification (`location`, `condition`, and `expressions` fields) is semantically immutable, although the field values may change. For example, an agent may update the location line number to reflect the actual line where the breakpoint was set, but this doesn't change the breakpoint semantics. This means that an agent does not need to check if a breakpoint has changed when it encounters the same breakpoint on a successive call. Moreover, an agent should remember the breakpoints that are completed until the controller removes them from the active list to avoid setting those breakpoints again.", - // "flatPath": "v2/controller/debuggees/{debuggeeId}/breakpoints", - // "httpMethod": "GET", - // "id": "clouddebugger.controller.debuggees.breakpoints.list", - // "parameterOrder": [ - // "debuggeeId" - // ], - // "parameters": { - // "agentId": { - // "description": "Identifies the agent. This is the ID returned in the RegisterDebuggee response.", - // "location": "query", - // "type": "string" - // }, - // "debuggeeId": { - // "description": "Required. Identifies the debuggee.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "successOnTimeout": { - // "description": "If set to `true` (recommended), returns `google.rpc.Code.OK` status and sets the `wait_expired` response field to `true` when the server-selected timeout has expired. If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status when the server-selected timeout has expired.", - // "location": "query", - // "type": "boolean" - // }, - // "waitToken": { - // "description": "A token that, if specified, blocks the method call until the list of active breakpoints has changed, or a server-selected timeout has expired. The value should be set from the `next_wait_token` field in the last response. The initial value should be set to `\"init\"`.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/controller/debuggees/{debuggeeId}/breakpoints", - // "response": { - // "$ref": "ListActiveBreakpointsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud_debugger" - // ] - // } - -} - -// method id "clouddebugger.controller.debuggees.breakpoints.update": +} type ControllerDebuggeesBreakpointsUpdateCall struct { s *Service @@ -1731,13 +1417,12 @@ type ControllerDebuggeesBreakpointsUpdateCall struct { } // Update: Updates the breakpoint state or mutable fields. The entire -// Breakpoint message must be sent back to the controller service. -// Updates to active breakpoint fields are only allowed if the new value -// does not change the breakpoint specification. Updates to the -// `location`, `condition` and `expressions` fields should not alter the -// breakpoint semantics. These may only make changes such as -// canonicalizing a value or snapping the location to the correct line -// of code. +// Breakpoint message must be sent back to the controller service. Updates to +// active breakpoint fields are only allowed if the new value does not change +// the breakpoint specification. Updates to the `location`, `condition` and +// `expressions` fields should not alter the breakpoint semantics. These may +// only make changes such as canonicalizing a value or snapping the location to +// the correct line of code. // // - debuggeeId: Identifies the debuggee being debugged. // - id: Breakpoint identifier, unique in the scope of the debuggee. @@ -1750,23 +1435,21 @@ func (r *ControllerDebuggeesBreakpointsService) Update(debuggeeId string, id str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ControllerDebuggeesBreakpointsUpdateCall) Fields(s ...googleapi.Field) *ControllerDebuggeesBreakpointsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ControllerDebuggeesBreakpointsUpdateCall) Context(ctx context.Context) *ControllerDebuggeesBreakpointsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ControllerDebuggeesBreakpointsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1775,18 +1458,12 @@ func (c *ControllerDebuggeesBreakpointsUpdateCall) Header() http.Header { } func (c *ControllerDebuggeesBreakpointsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.updateactivebreakpointrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/controller/debuggees/{debuggeeId}/breakpoints/{id}") @@ -1800,16 +1477,15 @@ func (c *ControllerDebuggeesBreakpointsUpdateCall) doRequest(alt string) (*http. "debuggeeId": c.debuggeeId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddebugger.controller.debuggees.breakpoints.update" call. -// Exactly one of *UpdateActiveBreakpointResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UpdateActiveBreakpointResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UpdateActiveBreakpointResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ControllerDebuggeesBreakpointsUpdateCall) Do(opts ...googleapi.CallOption) (*UpdateActiveBreakpointResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1840,45 +1516,7 @@ func (c *ControllerDebuggeesBreakpointsUpdateCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Updates the breakpoint state or mutable fields. The entire Breakpoint message must be sent back to the controller service. Updates to active breakpoint fields are only allowed if the new value does not change the breakpoint specification. Updates to the `location`, `condition` and `expressions` fields should not alter the breakpoint semantics. These may only make changes such as canonicalizing a value or snapping the location to the correct line of code.", - // "flatPath": "v2/controller/debuggees/{debuggeeId}/breakpoints/{id}", - // "httpMethod": "PUT", - // "id": "clouddebugger.controller.debuggees.breakpoints.update", - // "parameterOrder": [ - // "debuggeeId", - // "id" - // ], - // "parameters": { - // "debuggeeId": { - // "description": "Required. Identifies the debuggee being debugged.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Breakpoint identifier, unique in the scope of the debuggee.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/controller/debuggees/{debuggeeId}/breakpoints/{id}", - // "request": { - // "$ref": "UpdateActiveBreakpointRequest" - // }, - // "response": { - // "$ref": "UpdateActiveBreakpointResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud_debugger" - // ] - // } - -} - -// method id "clouddebugger.debugger.debuggees.list": +} type DebuggerDebuggeesListCall struct { s *Service @@ -1894,57 +1532,53 @@ func (r *DebuggerDebuggeesService) List() *DebuggerDebuggeesListCall { return c } -// ClientVersion sets the optional parameter "clientVersion": Required. -// The client version making the call. Schema: `domain/type/version` -// (e.g., `google.com/intellij/v1`). +// ClientVersion sets the optional parameter "clientVersion": Required. The +// client version making the call. Schema: `domain/type/version` (e.g., +// `google.com/intellij/v1`). func (c *DebuggerDebuggeesListCall) ClientVersion(clientVersion string) *DebuggerDebuggeesListCall { c.urlParams_.Set("clientVersion", clientVersion) return c } -// IncludeInactive sets the optional parameter "includeInactive": When -// set to `true`, the result includes all debuggees. Otherwise, the -// result includes only debuggees that are active. +// IncludeInactive sets the optional parameter "includeInactive": When set to +// `true`, the result includes all debuggees. Otherwise, the result includes +// only debuggees that are active. func (c *DebuggerDebuggeesListCall) IncludeInactive(includeInactive bool) *DebuggerDebuggeesListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// Project sets the optional parameter "project": Required. Project -// number of a Google Cloud project whose debuggees to list. +// Project sets the optional parameter "project": Required. Project number of a +// Google Cloud project whose debuggees to list. func (c *DebuggerDebuggeesListCall) Project(project string) *DebuggerDebuggeesListCall { c.urlParams_.Set("project", project) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DebuggerDebuggeesListCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DebuggerDebuggeesListCall) IfNoneMatch(entityTag string) *DebuggerDebuggeesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DebuggerDebuggeesListCall) Context(ctx context.Context) *DebuggerDebuggeesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DebuggerDebuggeesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1953,12 +1587,7 @@ func (c *DebuggerDebuggeesListCall) Header() http.Header { } func (c *DebuggerDebuggeesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1972,16 +1601,15 @@ func (c *DebuggerDebuggeesListCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddebugger.debugger.debuggees.list" call. -// Exactly one of *ListDebuggeesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListDebuggeesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListDebuggeesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DebuggerDebuggeesListCall) Do(opts ...googleapi.CallOption) (*ListDebuggeesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2012,42 +1640,7 @@ func (c *DebuggerDebuggeesListCall) Do(opts ...googleapi.CallOption) (*ListDebug return nil, err } return ret, nil - // { - // "description": "Lists all the debuggees that the user has access to.", - // "flatPath": "v2/debugger/debuggees", - // "httpMethod": "GET", - // "id": "clouddebugger.debugger.debuggees.list", - // "parameterOrder": [], - // "parameters": { - // "clientVersion": { - // "description": "Required. The client version making the call. Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).", - // "location": "query", - // "type": "string" - // }, - // "includeInactive": { - // "description": "When set to `true`, the result includes all debuggees. Otherwise, the result includes only debuggees that are active.", - // "location": "query", - // "type": "boolean" - // }, - // "project": { - // "description": "Required. Project number of a Google Cloud project whose debuggees to list.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/debugger/debuggees", - // "response": { - // "$ref": "ListDebuggeesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud_debugger" - // ] - // } - -} - -// method id "clouddebugger.debugger.debuggees.breakpoints.delete": +} type DebuggerDebuggeesBreakpointsDeleteCall struct { s *Service @@ -2069,32 +1662,30 @@ func (r *DebuggerDebuggeesBreakpointsService) Delete(debuggeeId string, breakpoi return c } -// ClientVersion sets the optional parameter "clientVersion": Required. -// The client version making the call. Schema: `domain/type/version` -// (e.g., `google.com/intellij/v1`). +// ClientVersion sets the optional parameter "clientVersion": Required. The +// client version making the call. Schema: `domain/type/version` (e.g., +// `google.com/intellij/v1`). func (c *DebuggerDebuggeesBreakpointsDeleteCall) ClientVersion(clientVersion string) *DebuggerDebuggeesBreakpointsDeleteCall { c.urlParams_.Set("clientVersion", clientVersion) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DebuggerDebuggeesBreakpointsDeleteCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesBreakpointsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DebuggerDebuggeesBreakpointsDeleteCall) Context(ctx context.Context) *DebuggerDebuggeesBreakpointsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DebuggerDebuggeesBreakpointsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2103,12 +1694,7 @@ func (c *DebuggerDebuggeesBreakpointsDeleteCall) Header() http.Header { } func (c *DebuggerDebuggeesBreakpointsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2123,16 +1709,14 @@ func (c *DebuggerDebuggeesBreakpointsDeleteCall) doRequest(alt string) (*http.Re "debuggeeId": c.debuggeeId, "breakpointId": c.breakpointId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddebugger.debugger.debuggees.breakpoints.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DebuggerDebuggeesBreakpointsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2163,47 +1747,7 @@ func (c *DebuggerDebuggeesBreakpointsDeleteCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Deletes the breakpoint from the debuggee.", - // "flatPath": "v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}", - // "httpMethod": "DELETE", - // "id": "clouddebugger.debugger.debuggees.breakpoints.delete", - // "parameterOrder": [ - // "debuggeeId", - // "breakpointId" - // ], - // "parameters": { - // "breakpointId": { - // "description": "Required. ID of the breakpoint to delete.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "clientVersion": { - // "description": "Required. The client version making the call. Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).", - // "location": "query", - // "type": "string" - // }, - // "debuggeeId": { - // "description": "Required. ID of the debuggee whose breakpoint to delete.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud_debugger" - // ] - // } - -} - -// method id "clouddebugger.debugger.debuggees.breakpoints.get": +} type DebuggerDebuggeesBreakpointsGetCall struct { s *Service @@ -2226,42 +1770,38 @@ func (r *DebuggerDebuggeesBreakpointsService) Get(debuggeeId string, breakpointI return c } -// ClientVersion sets the optional parameter "clientVersion": Required. -// The client version making the call. Schema: `domain/type/version` -// (e.g., `google.com/intellij/v1`). +// ClientVersion sets the optional parameter "clientVersion": Required. The +// client version making the call. Schema: `domain/type/version` (e.g., +// `google.com/intellij/v1`). func (c *DebuggerDebuggeesBreakpointsGetCall) ClientVersion(clientVersion string) *DebuggerDebuggeesBreakpointsGetCall { c.urlParams_.Set("clientVersion", clientVersion) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DebuggerDebuggeesBreakpointsGetCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesBreakpointsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DebuggerDebuggeesBreakpointsGetCall) IfNoneMatch(entityTag string) *DebuggerDebuggeesBreakpointsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DebuggerDebuggeesBreakpointsGetCall) Context(ctx context.Context) *DebuggerDebuggeesBreakpointsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DebuggerDebuggeesBreakpointsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2270,12 +1810,7 @@ func (c *DebuggerDebuggeesBreakpointsGetCall) Header() http.Header { } func (c *DebuggerDebuggeesBreakpointsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2293,16 +1828,15 @@ func (c *DebuggerDebuggeesBreakpointsGetCall) doRequest(alt string) (*http.Respo "debuggeeId": c.debuggeeId, "breakpointId": c.breakpointId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddebugger.debugger.debuggees.breakpoints.get" call. -// Exactly one of *GetBreakpointResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GetBreakpointResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GetBreakpointResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DebuggerDebuggeesBreakpointsGetCall) Do(opts ...googleapi.CallOption) (*GetBreakpointResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2333,47 +1867,7 @@ func (c *DebuggerDebuggeesBreakpointsGetCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Gets breakpoint information.", - // "flatPath": "v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}", - // "httpMethod": "GET", - // "id": "clouddebugger.debugger.debuggees.breakpoints.get", - // "parameterOrder": [ - // "debuggeeId", - // "breakpointId" - // ], - // "parameters": { - // "breakpointId": { - // "description": "Required. ID of the breakpoint to get.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "clientVersion": { - // "description": "Required. The client version making the call. Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).", - // "location": "query", - // "type": "string" - // }, - // "debuggeeId": { - // "description": "Required. ID of the debuggee whose breakpoint to get.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}", - // "response": { - // "$ref": "GetBreakpointResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud_debugger" - // ] - // } - -} - -// method id "clouddebugger.debugger.debuggees.breakpoints.list": +} type DebuggerDebuggeesBreakpointsListCall struct { s *Service @@ -2393,95 +1887,90 @@ func (r *DebuggerDebuggeesBreakpointsService) List(debuggeeId string) *DebuggerD return c } -// ActionValue sets the optional parameter "action.value": Only -// breakpoints with the specified action will pass the filter. +// ActionValue sets the optional parameter "action.value": Only breakpoints +// with the specified action will pass the filter. // // Possible values: // -// "CAPTURE" - Capture stack frame and variables and update the +// "CAPTURE" - Capture stack frame and variables and update the breakpoint. // -// breakpoint. The data is only captured once. After that the breakpoint -// is set in a final state. +// The data is only captured once. After that the breakpoint is set in a final +// state. // -// "LOG" - Log each breakpoint hit. The breakpoint remains active +// "LOG" - Log each breakpoint hit. The breakpoint remains active until // -// until deleted or expired. +// deleted or expired. func (c *DebuggerDebuggeesBreakpointsListCall) ActionValue(actionValue string) *DebuggerDebuggeesBreakpointsListCall { c.urlParams_.Set("action.value", actionValue) return c } -// ClientVersion sets the optional parameter "clientVersion": Required. -// The client version making the call. Schema: `domain/type/version` -// (e.g., `google.com/intellij/v1`). +// ClientVersion sets the optional parameter "clientVersion": Required. The +// client version making the call. Schema: `domain/type/version` (e.g., +// `google.com/intellij/v1`). func (c *DebuggerDebuggeesBreakpointsListCall) ClientVersion(clientVersion string) *DebuggerDebuggeesBreakpointsListCall { c.urlParams_.Set("clientVersion", clientVersion) return c } -// IncludeAllUsers sets the optional parameter "includeAllUsers": When -// set to `true`, the response includes the list of breakpoints set by -// any user. Otherwise, it includes only breakpoints set by the caller. +// IncludeAllUsers sets the optional parameter "includeAllUsers": When set to +// `true`, the response includes the list of breakpoints set by any user. +// Otherwise, it includes only breakpoints set by the caller. func (c *DebuggerDebuggeesBreakpointsListCall) IncludeAllUsers(includeAllUsers bool) *DebuggerDebuggeesBreakpointsListCall { c.urlParams_.Set("includeAllUsers", fmt.Sprint(includeAllUsers)) return c } -// IncludeInactive sets the optional parameter "includeInactive": When -// set to `true`, the response includes active and inactive breakpoints. -// Otherwise, it includes only active breakpoints. +// IncludeInactive sets the optional parameter "includeInactive": When set to +// `true`, the response includes active and inactive breakpoints. Otherwise, it +// includes only active breakpoints. func (c *DebuggerDebuggeesBreakpointsListCall) IncludeInactive(includeInactive bool) *DebuggerDebuggeesBreakpointsListCall { c.urlParams_.Set("includeInactive", fmt.Sprint(includeInactive)) return c } -// StripResults sets the optional parameter "stripResults": This field -// is deprecated. The following fields are always stripped out of the -// result: `stack_frames`, `evaluated_expressions` and `variable_table`. +// StripResults sets the optional parameter "stripResults": This field is +// deprecated. The following fields are always stripped out of the result: +// `stack_frames`, `evaluated_expressions` and `variable_table`. func (c *DebuggerDebuggeesBreakpointsListCall) StripResults(stripResults bool) *DebuggerDebuggeesBreakpointsListCall { c.urlParams_.Set("stripResults", fmt.Sprint(stripResults)) return c } -// WaitToken sets the optional parameter "waitToken": A wait token that, -// if specified, blocks the call until the breakpoints list has changed, -// or a server selected timeout has expired. The value should be set -// from the last response. The error code `google.rpc.Code.ABORTED` -// (RPC) is returned on wait timeout, which should be called again with -// the same `wait_token`. +// WaitToken sets the optional parameter "waitToken": A wait token that, if +// specified, blocks the call until the breakpoints list has changed, or a +// server selected timeout has expired. The value should be set from the last +// response. The error code `google.rpc.Code.ABORTED` (RPC) is returned on wait +// timeout, which should be called again with the same `wait_token`. func (c *DebuggerDebuggeesBreakpointsListCall) WaitToken(waitToken string) *DebuggerDebuggeesBreakpointsListCall { c.urlParams_.Set("waitToken", waitToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DebuggerDebuggeesBreakpointsListCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesBreakpointsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DebuggerDebuggeesBreakpointsListCall) IfNoneMatch(entityTag string) *DebuggerDebuggeesBreakpointsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DebuggerDebuggeesBreakpointsListCall) Context(ctx context.Context) *DebuggerDebuggeesBreakpointsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DebuggerDebuggeesBreakpointsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2490,12 +1979,7 @@ func (c *DebuggerDebuggeesBreakpointsListCall) Header() http.Header { } func (c *DebuggerDebuggeesBreakpointsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2512,16 +1996,15 @@ func (c *DebuggerDebuggeesBreakpointsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "debuggeeId": c.debuggeeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddebugger.debugger.debuggees.breakpoints.list" call. -// Exactly one of *ListBreakpointsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListBreakpointsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DebuggerDebuggeesBreakpointsListCall) Do(opts ...googleapi.CallOption) (*ListBreakpointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2552,74 +2035,7 @@ func (c *DebuggerDebuggeesBreakpointsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists all breakpoints for the debuggee.", - // "flatPath": "v2/debugger/debuggees/{debuggeeId}/breakpoints", - // "httpMethod": "GET", - // "id": "clouddebugger.debugger.debuggees.breakpoints.list", - // "parameterOrder": [ - // "debuggeeId" - // ], - // "parameters": { - // "action.value": { - // "description": "Only breakpoints with the specified action will pass the filter.", - // "enum": [ - // "CAPTURE", - // "LOG" - // ], - // "enumDescriptions": [ - // "Capture stack frame and variables and update the breakpoint. The data is only captured once. After that the breakpoint is set in a final state.", - // "Log each breakpoint hit. The breakpoint remains active until deleted or expired." - // ], - // "location": "query", - // "type": "string" - // }, - // "clientVersion": { - // "description": "Required. The client version making the call. Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).", - // "location": "query", - // "type": "string" - // }, - // "debuggeeId": { - // "description": "Required. ID of the debuggee whose breakpoints to list.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "includeAllUsers": { - // "description": "When set to `true`, the response includes the list of breakpoints set by any user. Otherwise, it includes only breakpoints set by the caller.", - // "location": "query", - // "type": "boolean" - // }, - // "includeInactive": { - // "description": "When set to `true`, the response includes active and inactive breakpoints. Otherwise, it includes only active breakpoints.", - // "location": "query", - // "type": "boolean" - // }, - // "stripResults": { - // "deprecated": true, - // "description": "This field is deprecated. The following fields are always stripped out of the result: `stack_frames`, `evaluated_expressions` and `variable_table`.", - // "location": "query", - // "type": "boolean" - // }, - // "waitToken": { - // "description": "A wait token that, if specified, blocks the call until the breakpoints list has changed, or a server selected timeout has expired. The value should be set from the last response. The error code `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which should be called again with the same `wait_token`.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/debugger/debuggees/{debuggeeId}/breakpoints", - // "response": { - // "$ref": "ListBreakpointsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud_debugger" - // ] - // } - -} - -// method id "clouddebugger.debugger.debuggees.breakpoints.set": +} type DebuggerDebuggeesBreakpointsSetCall struct { s *Service @@ -2640,55 +2056,50 @@ func (r *DebuggerDebuggeesBreakpointsService) Set(debuggeeId string, breakpoint return c } -// CanaryOption sets the optional parameter "canaryOption": The canary -// option set by the user upon setting breakpoint. +// CanaryOption sets the optional parameter "canaryOption": The canary option +// set by the user upon setting breakpoint. // // Possible values: // -// "CANARY_OPTION_UNSPECIFIED" - Depends on the canary_mode of the -// -// debuggee. -// -// "CANARY_OPTION_TRY_ENABLE" - Enable the canary for this breakpoint +// "CANARY_OPTION_UNSPECIFIED" - Depends on the canary_mode of the debuggee. +// "CANARY_OPTION_TRY_ENABLE" - Enable the canary for this breakpoint if the // -// if the canary_mode of the debuggee is not CANARY_MODE_ALWAYS_ENABLED -// or CANARY_MODE_ALWAYS_DISABLED. +// canary_mode of the debuggee is not CANARY_MODE_ALWAYS_ENABLED or +// CANARY_MODE_ALWAYS_DISABLED. // -// "CANARY_OPTION_TRY_DISABLE" - Disable the canary for this +// "CANARY_OPTION_TRY_DISABLE" - Disable the canary for this breakpoint if // -// breakpoint if the canary_mode of the debuggee is not -// CANARY_MODE_ALWAYS_ENABLED or CANARY_MODE_ALWAYS_DISABLED. +// the canary_mode of the debuggee is not CANARY_MODE_ALWAYS_ENABLED or +// CANARY_MODE_ALWAYS_DISABLED. func (c *DebuggerDebuggeesBreakpointsSetCall) CanaryOption(canaryOption string) *DebuggerDebuggeesBreakpointsSetCall { c.urlParams_.Set("canaryOption", canaryOption) return c } -// ClientVersion sets the optional parameter "clientVersion": Required. -// The client version making the call. Schema: `domain/type/version` -// (e.g., `google.com/intellij/v1`). +// ClientVersion sets the optional parameter "clientVersion": Required. The +// client version making the call. Schema: `domain/type/version` (e.g., +// `google.com/intellij/v1`). func (c *DebuggerDebuggeesBreakpointsSetCall) ClientVersion(clientVersion string) *DebuggerDebuggeesBreakpointsSetCall { c.urlParams_.Set("clientVersion", clientVersion) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DebuggerDebuggeesBreakpointsSetCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesBreakpointsSetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DebuggerDebuggeesBreakpointsSetCall) Context(ctx context.Context) *DebuggerDebuggeesBreakpointsSetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DebuggerDebuggeesBreakpointsSetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2697,18 +2108,12 @@ func (c *DebuggerDebuggeesBreakpointsSetCall) Header() http.Header { } func (c *DebuggerDebuggeesBreakpointsSetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.breakpoint) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/debugger/debuggees/{debuggeeId}/breakpoints/set") @@ -2721,16 +2126,15 @@ func (c *DebuggerDebuggeesBreakpointsSetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "debuggeeId": c.debuggeeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddebugger.debugger.debuggees.breakpoints.set" call. -// Exactly one of *SetBreakpointResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SetBreakpointResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SetBreakpointResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DebuggerDebuggeesBreakpointsSetCall) Do(opts ...googleapi.CallOption) (*SetBreakpointResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2761,53 +2165,4 @@ func (c *DebuggerDebuggeesBreakpointsSetCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Sets the breakpoint to the debuggee.", - // "flatPath": "v2/debugger/debuggees/{debuggeeId}/breakpoints/set", - // "httpMethod": "POST", - // "id": "clouddebugger.debugger.debuggees.breakpoints.set", - // "parameterOrder": [ - // "debuggeeId" - // ], - // "parameters": { - // "canaryOption": { - // "description": "The canary option set by the user upon setting breakpoint.", - // "enum": [ - // "CANARY_OPTION_UNSPECIFIED", - // "CANARY_OPTION_TRY_ENABLE", - // "CANARY_OPTION_TRY_DISABLE" - // ], - // "enumDescriptions": [ - // "Depends on the canary_mode of the debuggee.", - // "Enable the canary for this breakpoint if the canary_mode of the debuggee is not CANARY_MODE_ALWAYS_ENABLED or CANARY_MODE_ALWAYS_DISABLED.", - // "Disable the canary for this breakpoint if the canary_mode of the debuggee is not CANARY_MODE_ALWAYS_ENABLED or CANARY_MODE_ALWAYS_DISABLED." - // ], - // "location": "query", - // "type": "string" - // }, - // "clientVersion": { - // "description": "Required. The client version making the call. Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).", - // "location": "query", - // "type": "string" - // }, - // "debuggeeId": { - // "description": "Required. ID of the debuggee where the breakpoint is to be set.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/debugger/debuggees/{debuggeeId}/breakpoints/set", - // "request": { - // "$ref": "Breakpoint" - // }, - // "response": { - // "$ref": "SetBreakpointResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud_debugger" - // ] - // } - } diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 6b8d31a8f48..fe9a2be1763 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -5147,7 +5147,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.get" call. @@ -5254,7 +5254,7 @@ func (c *ProjectsLocationsGetConfigCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.getConfig" call. @@ -5385,7 +5385,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.list" call. @@ -5540,7 +5540,7 @@ func (c *ProjectsLocationsCustomTargetTypesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.customTargetTypes.create" call. @@ -5677,7 +5677,7 @@ func (c *ProjectsLocationsCustomTargetTypesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.customTargetTypes.delete" call. @@ -5786,7 +5786,7 @@ func (c *ProjectsLocationsCustomTargetTypesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.customTargetTypes.get" call. @@ -5914,7 +5914,7 @@ func (c *ProjectsLocationsCustomTargetTypesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.customTargetTypes.getIamPolicy" call. @@ -6054,7 +6054,7 @@ func (c *ProjectsLocationsCustomTargetTypesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.customTargetTypes.list" call. @@ -6223,7 +6223,7 @@ func (c *ProjectsLocationsCustomTargetTypesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.customTargetTypes.patch" call. @@ -6328,7 +6328,7 @@ func (c *ProjectsLocationsCustomTargetTypesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.customTargetTypes.setIamPolicy" call. @@ -6461,7 +6461,7 @@ func (c *ProjectsLocationsDeliveryPipelinesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.create" call. @@ -6606,7 +6606,7 @@ func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.delete" call. @@ -6715,7 +6715,7 @@ func (c *ProjectsLocationsDeliveryPipelinesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.get" call. @@ -6843,7 +6843,7 @@ func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.getIamPolicy" call. @@ -6983,7 +6983,7 @@ func (c *ProjectsLocationsDeliveryPipelinesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.list" call. @@ -7152,7 +7152,7 @@ func (c *ProjectsLocationsDeliveryPipelinesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.patch" call. @@ -7256,7 +7256,7 @@ func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.rollbackTarget" call. @@ -7362,7 +7362,7 @@ func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.setIamPolicy" call. @@ -7470,7 +7470,7 @@ func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.testIamPermissions" call. @@ -7577,7 +7577,7 @@ func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automationRuns.cancel" call. @@ -7687,7 +7687,7 @@ func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automationRuns.get" call. @@ -7828,7 +7828,7 @@ func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automationRuns.list" call. @@ -7985,7 +7985,7 @@ func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.create" call. @@ -8122,7 +8122,7 @@ func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.delete" call. @@ -8231,7 +8231,7 @@ func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.get" call. @@ -8372,7 +8372,7 @@ func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.list" call. @@ -8540,7 +8540,7 @@ func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.patch" call. @@ -8643,7 +8643,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesAbandonCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.abandon" call. @@ -8779,7 +8779,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.create" call. @@ -8888,7 +8888,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.get" call. @@ -9028,7 +9028,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.list" call. @@ -9153,7 +9153,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.advance" call. @@ -9257,7 +9257,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.approve" call. @@ -9361,7 +9361,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.cancel" call. @@ -9505,7 +9505,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.create" call. @@ -9614,7 +9614,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.get" call. @@ -9717,7 +9717,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) doRequ googleapi.Expand(req.URL, map[string]string{ "rollout": c.rollout, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.ignoreJob" call. @@ -9857,7 +9857,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.list" call. @@ -9982,7 +9982,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall) doReque googleapi.Expand(req.URL, map[string]string{ "rollout": c.rollout, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.retryJob" call. @@ -10093,7 +10093,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.get" call. @@ -10232,7 +10232,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.list" call. @@ -10357,7 +10357,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.terminate" call. @@ -10467,7 +10467,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.operations.cancel" call. @@ -10565,7 +10565,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.operations.delete" call. @@ -10674,7 +10674,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.operations.get" call. @@ -10802,7 +10802,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.operations.list" call. @@ -10957,7 +10957,7 @@ func (c *ProjectsLocationsTargetsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.targets.create" call. @@ -11092,7 +11092,7 @@ func (c *ProjectsLocationsTargetsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.targets.delete" call. @@ -11200,7 +11200,7 @@ func (c *ProjectsLocationsTargetsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.targets.get" call. @@ -11327,7 +11327,7 @@ func (c *ProjectsLocationsTargetsGetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.targets.getIamPolicy" call. @@ -11467,7 +11467,7 @@ func (c *ProjectsLocationsTargetsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.targets.list" call. @@ -11634,7 +11634,7 @@ func (c *ProjectsLocationsTargetsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.targets.patch" call. @@ -11739,7 +11739,7 @@ func (c *ProjectsLocationsTargetsSetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.targets.setIamPolicy" call. @@ -11847,7 +11847,7 @@ func (c *ProjectsLocationsTargetsTestIamPermissionsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouddeploy.projects.locations.targets.testIamPermissions" call. diff --git a/clouderrorreporting/v1beta1/clouderrorreporting-gen.go b/clouderrorreporting/v1beta1/clouderrorreporting-gen.go index 45c5cce8913..b9a613beece 100644 --- a/clouderrorreporting/v1beta1/clouderrorreporting-gen.go +++ b/clouderrorreporting/v1beta1/clouderrorreporting-gen.go @@ -823,7 +823,7 @@ func (c *ProjectsDeleteEventsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectName": c.projectName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.deleteEvents" call. @@ -1021,7 +1021,7 @@ func (c *ProjectsEventsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectName": c.projectName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.events.list" call. @@ -1159,7 +1159,7 @@ func (c *ProjectsEventsReportCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectName": c.projectName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.events.report" call. @@ -1423,7 +1423,7 @@ func (c *ProjectsGroupStatsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "projectName": c.projectName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.groupStats.list" call. @@ -1565,7 +1565,7 @@ func (c *ProjectsGroupsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupName": c.groupNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.groups.get" call. @@ -1679,7 +1679,7 @@ func (c *ProjectsGroupsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.groups.update" call. @@ -1783,7 +1783,7 @@ func (c *ProjectsLocationsDeleteEventsCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "projectName": c.projectName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.locations.deleteEvents" call. @@ -1981,7 +1981,7 @@ func (c *ProjectsLocationsEventsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "projectName": c.projectName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.locations.events.list" call. @@ -2266,7 +2266,7 @@ func (c *ProjectsLocationsGroupStatsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "projectName": c.projectName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.locations.groupStats.list" call. @@ -2408,7 +2408,7 @@ func (c *ProjectsLocationsGroupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "groupName": c.groupNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.locations.groups.get" call. @@ -2522,7 +2522,7 @@ func (c *ProjectsLocationsGroupsUpdateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "clouderrorreporting.projects.locations.groups.update" call. diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index 1cc377c3abc..913732f5340 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -1577,7 +1577,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.operations.get" call. @@ -1705,7 +1705,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.operations.list" call. @@ -1858,7 +1858,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.list" call. @@ -1984,7 +1984,7 @@ func (c *ProjectsLocationsFunctionsCallCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.call" call. @@ -2089,7 +2089,7 @@ func (c *ProjectsLocationsFunctionsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.create" call. @@ -2186,7 +2186,7 @@ func (c *ProjectsLocationsFunctionsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.delete" call. @@ -2291,7 +2291,7 @@ func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.generateDownloadUrl" call. @@ -2408,7 +2408,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.generateUploadUrl" call. @@ -2528,7 +2528,7 @@ func (c *ProjectsLocationsFunctionsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.get" call. @@ -2655,7 +2655,7 @@ func (c *ProjectsLocationsFunctionsGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.getIamPolicy" call. @@ -2783,7 +2783,7 @@ func (c *ProjectsLocationsFunctionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.list" call. @@ -2914,7 +2914,7 @@ func (c *ProjectsLocationsFunctionsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.patch" call. @@ -3018,7 +3018,7 @@ func (c *ProjectsLocationsFunctionsSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.setIamPolicy" call. @@ -3124,7 +3124,7 @@ func (c *ProjectsLocationsFunctionsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.testIamPermissions" call. diff --git a/cloudfunctions/v1beta2/cloudfunctions-gen.go b/cloudfunctions/v1beta2/cloudfunctions-gen.go index c296375c0bf..cf678555c50 100644 --- a/cloudfunctions/v1beta2/cloudfunctions-gen.go +++ b/cloudfunctions/v1beta2/cloudfunctions-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/functions // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // cloudfunctionsService, err := cloudfunctions.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // cloudfunctionsService, err := cloudfunctions.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // cloudfunctionsService, err := cloudfunctions.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package cloudfunctions // import "google.golang.org/api/cloudfunctions/v1beta2" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "cloudfunctions:v1beta2" const apiName = "cloudfunctions" const apiVersion = "v1beta2" const basePath = "https://cloudfunctions.googleapis.com/" +const basePathTemplate = "https://cloudfunctions.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://cloudfunctions.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -184,129 +202,101 @@ type ProjectsLocationsFunctionsService struct { type CallFunctionRequest struct { // Data: Required. Input to be passed to the function. Data string `json:"data,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CallFunctionRequest) MarshalJSON() ([]byte, error) { +func (s CallFunctionRequest) MarshalJSON() ([]byte, error) { type NoMethod CallFunctionRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CallFunctionResponse: Response of `CallFunction` method. type CallFunctionResponse struct { - // Error: Either system or user-function generated error. Set if - // execution + // Error: Either system or user-function generated error. Set if execution // was not successful. Error string `json:"error,omitempty"` - // ExecutionId: Execution id of function invocation. ExecutionId string `json:"executionId,omitempty"` - - // Result: Result populated for successful execution of synchronous - // function. Will - // not be populated if function does not return a result through - // context. + // Result: Result populated for successful execution of synchronous function. + // Will + // not be populated if function does not return a result through context. Result string `json:"result,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Error") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Error") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Error") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CallFunctionResponse) MarshalJSON() ([]byte, error) { +func (s CallFunctionResponse) MarshalJSON() ([]byte, error) { type NoMethod CallFunctionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CloudFunction: Describes a Cloud Function that contains user -// computation executed in -// response to an event. It encapsulate function and triggers -// configurations. +// CloudFunction: Describes a Cloud Function that contains user computation +// executed in +// response to an event. It encapsulate function and triggers configurations. type CloudFunction struct { // AvailableMemoryMb: The amount of memory in MB available for a // function. // Defaults to 256MB. AvailableMemoryMb int64 `json:"availableMemoryMb,omitempty"` - - // EntryPoint: The name of the function (as defined in source code) that - // will be + // EntryPoint: The name of the function (as defined in source code) that will + // be // executed. Defaults to the resource name suffix, if not specified. // For - // backward compatibility, if function with given name is not found, - // then the + // backward compatibility, if function with given name is not found, then + // the // system will try to use function named "function". - // For Node.js this is name of a function exported by the module - // specified + // For Node.js this is name of a function exported by the module specified // in `source_location`. EntryPoint string `json:"entryPoint,omitempty"` - - // EnvironmentVariables: Environment variables that shall be available - // during function execution. + // EnvironmentVariables: Environment variables that shall be available during + // function execution. EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"` - - // EventTrigger: A source that fires events in response to a condition - // in another service. + // EventTrigger: A source that fires events in response to a condition in + // another service. EventTrigger *EventTrigger `json:"eventTrigger,omitempty"` - - // HttpsTrigger: An HTTPS endpoint type of source that can be triggered - // via URL. + // HttpsTrigger: An HTTPS endpoint type of source that can be triggered via + // URL. HttpsTrigger *HTTPSTrigger `json:"httpsTrigger,omitempty"` - // Labels: Labels associated with this Cloud Function. Labels map[string]string `json:"labels,omitempty"` - - // LatestOperation: Output only. Name of the most recent operation - // modifying the function. If + // LatestOperation: Output only. Name of the most recent operation modifying + // the function. If // the function status is `DEPLOYING` or `DELETING`, then it points to // the // active operation. LatestOperation string `json:"latestOperation,omitempty"` - - // MaxInstances: The limit on the maximum number of function instances - // that may coexist at a + // MaxInstances: The limit on the maximum number of function instances that may + // coexist at a // given time. MaxInstances int64 `json:"maxInstances,omitempty"` - // Name: A user-defined name of the function. Function names must be // unique // globally and match pattern `projects/*/locations/*/functions/*` Name string `json:"name,omitempty"` - - // Network: The VPC Network that this cloud function can connect to. It - // can be + // Network: The VPC Network that this cloud function can connect to. It can + // be // either the fully-qualified URI, or the short name of the network // resource. // If the short network name is used, the network must belong to the @@ -317,101 +307,84 @@ type CloudFunction struct { // either // `projects/{project}/global/networks/{network}` or `{network}`, // where - // {project} is a project id where the network is defined, and {network} - // is + // {project} is a project id where the network is defined, and {network} is // the short name of the network. // // This field is mutually exclusive with `vpc_connector` and will be // replaced // by it. // - // See [the VPC - // documentation](https://cloud.google.com/compute/docs/vpc) for + // See the VPC documentation (https://cloud.google.com/compute/docs/vpc) + // for // more information on connecting Cloud projects. Network string `json:"network,omitempty"` - - // Runtime: The runtime in which to run the function. Required when - // deploying a new - // function, optional when updating an existing function. For a - // complete + // Runtime: The runtime in which to run the function. Required when deploying a + // new + // function, optional when updating an existing function. For a complete // list of possible choices, see the - // [`gcloud` - // command - // reference](/sdk/gcloud/reference/functions/deploy#--runtime). + // `gcloud` command + // reference (/sdk/gcloud/reference/functions/deploy#--runtime). Runtime string `json:"runtime,omitempty"` - - // ServiceAccount: The email of the function's service account. If - // empty, defaults to + // ServiceAccount: The email of the function's service account. If empty, + // defaults to // `{project_id}@appspot.gserviceaccount.com`. ServiceAccount string `json:"serviceAccount,omitempty"` - // SourceArchiveUrl: The Google Cloud Storage URL, starting with gs://, // pointing to the zip // archive which contains the function. SourceArchiveUrl string `json:"sourceArchiveUrl,omitempty"` - - // SourceRepository: The hosted repository where the function is - // defined. + // SourceRepository: The hosted repository where the function is defined. SourceRepository *SourceRepository `json:"sourceRepository,omitempty"` - - // SourceRepositoryUrl: The URL pointing to the hosted repository where - // the function is defined. + // SourceRepositoryUrl: The URL pointing to the hosted repository where the + // function is defined. // There are supported Cloud Source Repository URLs in the // following // formats: // // To refer to a specific // commit: - // `https://source.developers.google.com/projects/*/repos/*/revis - // ions/*/paths/*` + // `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` + // // To refer to a moveable alias // (branch): - // `https://source.developers.google.com/projects/*/repos/*/mov - // eable-aliases/*/paths/*` + // `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/p + // aths/*` // In particular, to refer to HEAD use `master` moveable alias. // To refer to a specific fixed alias // (tag): - // `https://source.developers.google.com/projects/*/repos/*/fixed- - // aliases/*/paths/*` + // `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/path + // s/*` // // You may omit `paths/*` if you want to use the main directory. SourceRepositoryUrl string `json:"sourceRepositoryUrl,omitempty"` - // SourceUploadUrl: The Google Cloud Storage signed URL used for source // uploading, generated // by google.cloud.functions.v1beta2.GenerateUploadUrl SourceUploadUrl string `json:"sourceUploadUrl,omitempty"` - // Status: Output only. Status of the function deployment. // // Possible values: // "STATUS_UNSPECIFIED" - Status not specified. // "READY" - Successfully deployed. - // "FAILED" - Not deployed correctly - behavior is undefined. The item - // should be updated + // "FAILED" - Not deployed correctly - behavior is undefined. The item should + // be updated // or deleted to move it out of this state. // "DEPLOYING" - Creation or update in progress. // "DELETING" - Deletion in progress. Status string `json:"status,omitempty"` - - // Timeout: The function execution timeout. Execution is considered - // failed and - // can be terminated if the function is not completed at the end of - // the + // Timeout: The function execution timeout. Execution is considered failed + // and + // can be terminated if the function is not completed at the end of the // timeout period. Defaults to 60 seconds. Timeout string `json:"timeout,omitempty"` - - // UpdateTime: Output only. The last update timestamp of a Cloud - // Function. + // UpdateTime: Output only. The last update timestamp of a Cloud Function. UpdateTime string `json:"updateTime,omitempty"` - - // VersionId: Output only. The version identifier of the Cloud Function. - // Each deployment attempt + // VersionId: Output only. The version identifier of the Cloud Function. Each + // deployment attempt // results in a new version of a function being created. VersionId int64 `json:"versionId,omitempty,string"` - - // VpcConnector: The VPC Network Connector that this cloud function can - // connect to. It can + // VpcConnector: The VPC Network Connector that this cloud function can connect + // to. It can // be either the fully-qualified URI, or the short name of the // network // connector resource. The format of this field @@ -422,47 +395,38 @@ type CloudFunction struct { // eventually // replace it. // - // See [the VPC - // documentation](https://cloud.google.com/compute/docs/vpc) for + // See the VPC documentation (https://cloud.google.com/compute/docs/vpc) + // for // more information on connecting Cloud projects. VpcConnector string `json:"vpcConnector,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AvailableMemoryMb") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AvailableMemoryMb") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AvailableMemoryMb") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AvailableMemoryMb") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CloudFunction) MarshalJSON() ([]byte, error) { +func (s CloudFunction) MarshalJSON() ([]byte, error) { type NoMethod CloudFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventTrigger: Describes EventTrigger, used to request events be sent -// from another +// EventTrigger: Describes EventTrigger, used to request events be sent from +// another // service. type EventTrigger struct { - // EventType: `event_type` names contain the service that is sending an - // event and the - // kind of event that was fired. Must be of the - // form + // EventType: `event_type` names contain the service that is sending an event + // and the + // kind of event that was fired. Must be of the form // `providers/*/eventTypes/*` e.g. Directly handle a Message published // to // Google Cloud Pub/Sub @@ -476,146 +440,113 @@ type EventTrigger struct { // Database: // `providers/google.firebase.database/eventTypes/ref.write` EventType string `json:"eventType,omitempty"` - // FailurePolicy: Specifies policy for failed executions. FailurePolicy *FailurePolicy `json:"failurePolicy,omitempty"` - - // Resource: Which instance of the source's service should send events. - // E.g. for Pub/Sub + // Resource: Which instance of the source's service should send events. E.g. + // for Pub/Sub // this would be a Pub/Sub topic at `projects/*/topics/*`. For Google // Cloud // Storage this would be a bucket at `projects/*/buckets/*`. For any // source - // that only supports one instance per-project, this should be the name - // of the + // that only supports one instance per-project, this should be the name of + // the // project (`projects/*`) Resource string `json:"resource,omitempty"` - // Service: The hostname of the service that should be observed. // - // If no string is provided, the default service implementing the API - // will - // be used. For example, `storage.googleapis.com` is the default for - // all + // If no string is provided, the default service implementing the API will + // be used. For example, `storage.googleapis.com` is the default for all // event types in the `google.storage` namespace. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTrigger) MarshalJSON() ([]byte, error) { +func (s EventTrigger) MarshalJSON() ([]byte, error) { type NoMethod EventTrigger - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FailurePolicy: Describes the policy in case of function's execution // failure. -// If empty, then defaults to ignoring failures (i.e. not retrying -// them). +// If empty, then defaults to ignoring failures (i.e. not retrying them). type FailurePolicy struct { - // Retry: If specified, then the function will be retried in case of a - // failure. + // Retry: If specified, then the function will be retried in case of a failure. Retry *Retry `json:"retry,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Retry") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Retry") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Retry") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FailurePolicy) MarshalJSON() ([]byte, error) { +func (s FailurePolicy) MarshalJSON() ([]byte, error) { type NoMethod FailurePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GenerateDownloadUrlRequest: Request of `GenerateDownloadUrl` method. type GenerateDownloadUrlRequest struct { // VersionId: The optional version of function. VersionId uint64 `json:"versionId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "VersionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "VersionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "VersionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GenerateDownloadUrlRequest) MarshalJSON() ([]byte, error) { +func (s GenerateDownloadUrlRequest) MarshalJSON() ([]byte, error) { type NoMethod GenerateDownloadUrlRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GenerateDownloadUrlResponse: Response of `GenerateDownloadUrl` -// method. +// GenerateDownloadUrlResponse: Response of `GenerateDownloadUrl` method. type GenerateDownloadUrlResponse struct { - // DownloadUrl: The generated Google Cloud Storage signed URL that - // should be used for + // DownloadUrl: The generated Google Cloud Storage signed URL that should be + // used for // function source code download. DownloadUrl string `json:"downloadUrl,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DownloadUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DownloadUrl") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DownloadUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GenerateDownloadUrlResponse) MarshalJSON() ([]byte, error) { +func (s GenerateDownloadUrlResponse) MarshalJSON() ([]byte, error) { type NoMethod GenerateDownloadUrlResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GenerateUploadUrlRequest: Request of `GenerateUploadUrl` method. @@ -624,328 +555,255 @@ type GenerateUploadUrlRequest struct { // GenerateUploadUrlResponse: Response of `GenerateUploadUrl` method. type GenerateUploadUrlResponse struct { - // UploadUrl: The generated Google Cloud Storage signed URL that should - // be used for a - // function source code upload. The uploaded file should be a zip - // archive + // UploadUrl: The generated Google Cloud Storage signed URL that should be used + // for a + // function source code upload. The uploaded file should be a zip archive // which contains a function. UploadUrl string `json:"uploadUrl,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "UploadUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "UploadUrl") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "UploadUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GenerateUploadUrlResponse) MarshalJSON() ([]byte, error) { +func (s GenerateUploadUrlResponse) MarshalJSON() ([]byte, error) { type NoMethod GenerateUploadUrlResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HTTPSTrigger: Describes HTTPSTrigger, could be used to connect web -// hooks to function. +// HTTPSTrigger: Describes HTTPSTrigger, could be used to connect web hooks to +// function. type HTTPSTrigger struct { // Url: Output only. The deployed url for the function. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HTTPSTrigger) MarshalJSON() ([]byte, error) { +func (s HTTPSTrigger) MarshalJSON() ([]byte, error) { type NoMethod HTTPSTrigger - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListFunctionsResponse: Response for the `ListFunctions` method. type ListFunctionsResponse struct { // Functions: The functions that match the request. Functions []*CloudFunction `json:"functions,omitempty"` - - // NextPageToken: If not empty, indicates that there may be more - // functions that match + // NextPageToken: If not empty, indicates that there may be more functions that + // match // the request; this value should be passed in a // new // google.cloud.functions.v1beta2.ListFunctionsRequest // to get more functions. NextPageToken string `json:"nextPageToken,omitempty"` - - // Unreachable: Locations that could not be reached. The response does - // not include any + // Unreachable: Locations that could not be reached. The response does not + // include any // functions from these locations. Unreachable []string `json:"unreachable,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Functions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Functions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Functions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListFunctionsResponse) MarshalJSON() ([]byte, error) { +func (s ListFunctionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListFunctionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. +// ListLocationsResponse: The response message for Locations.ListLocations. type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. + // Locations: A list of locations that matches the specified filter in the + // request. Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Location: A resource that represents Google Cloud Platform location. type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. + // DisplayName: The friendly name for this location, typically a nearby city + // name. // For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example // // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". + // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given + // Metadata: Service-specific metadata. For example the available capacity at + // the given // location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between // implementations. // For example: "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a +// Operation: This resource represents a long-running operation that is the +// result of a // network API call. type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. - // If `true`, the operation is completed, and either `error` or - // `response` is + // If `true`, the operation is completed, and either `error` or `response` + // is // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. - // It typically - // contains progress information and common metadata such as create - // time. - // Some services might not provide such metadata. Any method that - // returns a + // Metadata: Service-specific metadata associated with the operation. It + // typically + // contains progress information and common metadata such as create time. + // Some services might not provide such metadata. Any method that returns + // a // long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that - // originally returns it. If you use the default HTTP mapping, - // the - // `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that + // originally returns it. If you use the default HTTP mapping, the + // `name` should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. - // If the original + // Response: The normal response of the operation in case of success. If the + // original // method returns no data on success, such as `Delete`, the response // is // `google.protobuf.Empty`. If the original method is // standard // `Get`/`Create`/`Update`, the response should be the resource. For // other - // methods, the response should have the type `XxxResponse`, where - // `Xxx` - // is the original method name. For example, if the original method - // name - // is `TakeSnapshot()`, the inferred response type - // is + // methods, the response should have the type `XxxResponse`, where `Xxx` + // is the original method name. For example, if the original method name + // is `TakeSnapshot()`, the inferred response type is // `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadataV1: Metadata describing an Operation type OperationMetadataV1 struct { - // BuildId: The Cloud Build ID of the function created or updated by an - // API call. + // BuildId: The Cloud Build ID of the function created or updated by an API + // call. // This field is only populated for Create and Update operations. BuildId string `json:"buildId,omitempty"` - // Request: The original request that started the operation. Request googleapi.RawMessage `json:"request,omitempty"` - // Target: Target of the operation - for // example // projects/project-1/locations/region-1/functions/function-1 Target string `json:"target,omitempty"` - // Type: Type of operation. // // Possible values: @@ -954,48 +812,38 @@ type OperationMetadataV1 struct { // "UPDATE_FUNCTION" - Triggered by UpdateFunction call // "DELETE_FUNCTION" - Triggered by DeleteFunction call. Type string `json:"type,omitempty"` - // UpdateTime: The last update timestamp of the operation. UpdateTime string `json:"updateTime,omitempty"` - // VersionId: Version id of the function created or updated by an API // call. // This field is only populated for Create and Update operations. VersionId int64 `json:"versionId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "BuildId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BuildId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BuildId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BuildId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) { +func (s OperationMetadataV1) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadataV1 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadataV1Beta2: Metadata describing an Operation type OperationMetadataV1Beta2 struct { // Request: The original request that started the operation. Request googleapi.RawMessage `json:"request,omitempty"` - // Target: Target of the operation - for // example // projects/project-1/locations/region-1/functions/function-1 Target string `json:"target,omitempty"` - // Type: Type of operation. // // Possible values: @@ -1004,40 +852,31 @@ type OperationMetadataV1Beta2 struct { // "UPDATE_FUNCTION" - Triggered by UpdateFunction call // "DELETE_FUNCTION" - Triggered by DeleteFunction call. Type string `json:"type,omitempty"` - // UpdateTime: The last update timestamp of the operation. UpdateTime string `json:"updateTime,omitempty"` - // VersionId: Version id of the function created or updated by an API // call. // This field is only populated for Create and Update operations. VersionId int64 `json:"versionId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Request") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Request") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Request") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Request") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadataV1Beta2) MarshalJSON() ([]byte, error) { +func (s OperationMetadataV1Beta2) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadataV1Beta2 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Retry: Describes the retry policy in case of function's execution -// failure. +// Retry: Describes the retry policy in case of function's execution failure. // A function execution will be retried on any failure. // A failed execution will be retried up to 7 days with an exponential // backoff @@ -1046,127 +885,101 @@ func (s *OperationMetadataV1Beta2) MarshalJSON() ([]byte, error) { type Retry struct { } -// SourceRepository: Describes the location of the function source in a -// remote repository. +// SourceRepository: Describes the location of the function source in a remote +// repository. type SourceRepository struct { - // Branch: The name of the branch from which the function should be - // fetched. + // Branch: The name of the branch from which the function should be fetched. Branch string `json:"branch,omitempty"` - - // DeployedRevision: Output only. The id of the revision that was - // resolved at the moment of - // function creation or update. For example when a user deployed from - // a - // branch, it will be the revision id of the latest change on this - // branch at + // DeployedRevision: Output only. The id of the revision that was resolved at + // the moment of + // function creation or update. For example when a user deployed from a + // branch, it will be the revision id of the latest change on this branch + // at // that time. If user deployed from revision then this value will be // always // equal to the revision specified by the user. DeployedRevision string `json:"deployedRevision,omitempty"` - - // RepositoryUrl: URL to the hosted repository where the function is - // defined. Only paths in + // RepositoryUrl: URL to the hosted repository where the function is defined. + // Only paths in // https://source.developers.google.com domain are supported. The path // should // contain the name of the repository. RepositoryUrl string `json:"repositoryUrl,omitempty"` - - // Revision: The id of the revision that captures the state of the - // repository from + // Revision: The id of the revision that captures the state of the repository + // from // which the function should be fetched. Revision string `json:"revision,omitempty"` - - // SourcePath: The path within the repository where the function is - // defined. The path - // should point to the directory where Cloud Functions files are - // located. Use + // SourcePath: The path within the repository where the function is defined. + // The path + // should point to the directory where Cloud Functions files are located. + // Use // "/" if the function is defined directly in the root directory of // a // repository. SourcePath string `json:"sourcePath,omitempty"` - // Tag: The name of the tag that captures the state of the repository // from // which the function should be fetched. Tag string `json:"tag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Branch") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Branch") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Branch") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceRepository) MarshalJSON() ([]byte, error) { +func (s SourceRepository) MarshalJSON() ([]byte, error) { type NoMethod SourceRepository - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for -// different programming environments, including REST APIs and RPC APIs. -// It is -// used by [gRPC](https://github.com/grpc). Each `Status` message -// contains -// three pieces of data: error code, error message, and error -// details. +// Status: The `Status` type defines a logical error model that is suitable +// for +// different programming environments, including REST APIs and RPC APIs. It +// is +// used by gRPC (https://github.com/grpc). Each `Status` message contains +// three pieces of data: error code, error message, and error details. // -// You can find out more about this error model and how to work with it -// in the -// [API Design Guide](https://cloud.google.com/apis/design/errors). +// You can find out more about this error model and how to work with it in +// the +// API Design Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of + // Details: A list of messages that carry the error details. There is a common + // set of // message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any + // Message: A developer-facing error message, which should be in English. + // Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "cloudfunctions.operations.get": - type OperationsGetCall struct { s *Service name string @@ -1176,11 +989,13 @@ type OperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this -// method to poll the operation result at intervals as recommended by -// the API +// Get: Gets the latest state of a long-running operation. Clients can use +// this +// method to poll the operation result at intervals as recommended by the +// API // service. +// +// - name: The name of the operation resource. func (r *OperationsService) Get(name string) *OperationsGetCall { c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1188,33 +1003,29 @@ func (r *OperationsService) Get(name string) *OperationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1223,12 +1034,7 @@ func (c *OperationsGetCall) Header() http.Header { } func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1245,16 +1051,14 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1262,17 +1066,17 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -1285,35 +1089,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", - // "flatPath": "v1beta2/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "cloudfunctions.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudfunctions.operations.list": +} type OperationsListCall struct { s *Service @@ -1323,13 +1099,11 @@ type OperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the -// server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the +// server doesn't support this method, it returns `UNIMPLEMENTED`. // -// NOTE: the `name` binding allows API services to override the -// binding +// NOTE: the `name` binding allows API services to override the binding // to use different resource name schemes, such as `users/*/operations`. // To // override the binding, API services can add a binding such @@ -1337,20 +1111,18 @@ type OperationsListCall struct { // "/v1/{name=users/*}/operations" to their service configuration. // For backwards compatibility, the default name includes the // operations -// collection id, however overriding users must ensure the name -// binding +// collection id, however overriding users must ensure the name binding // is the parent resource, without the operations collection id. func (r *OperationsService) List() *OperationsListCall { c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// Filter sets the optional parameter "filter": Required. A filter for -// matching the requested operations.

                  The supported formats of -// filter are:
                  To query for a specific function: -// project:*,location:*,function:*
                  To query for all of -// the latest operations for a project: -// project:*,latest:true +// Filter sets the optional parameter "filter": Required. A filter for matching +// the requested operations.

                  The supported formats of filter +// are:
                  To query for a specific function: +// project:*,location:*,function:*
                  To query for all of the +// latest operations for a project: project:*,latest:true func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c @@ -1362,52 +1134,47 @@ func (c *OperationsListCall) Name(name string) *OperationsListCall { return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of records that should be returned.
                  Requested page size cannot -// exceed 100. If not set, the default page size is 100.

                  -// Pagination is only supported when querying for a specific function. +// PageSize sets the optional parameter "pageSize": The maximum number of +// records that should be returned.
                  Requested page size cannot exceed 100. +// If not set, the default page size is 100.

                  Pagination is only +// supported when querying for a specific function. func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token identifying -// which result to start with, which is returned by a previous list -// call.

                  Pagination is only supported when querying for a -// specific function. +// PageToken sets the optional parameter "pageToken": Token identifying which +// result to start with, which is returned by a previous list call.

                  +// Pagination is only supported when querying for a specific function. func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1416,12 +1183,7 @@ func (c *OperationsListCall) Header() http.Header { } func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1435,16 +1197,15 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1452,17 +1213,17 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1475,44 +1236,6 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", - // "flatPath": "v1beta2/operations", - // "httpMethod": "GET", - // "id": "cloudfunctions.operations.list", - // "parameterOrder": [], - // "parameters": { - // "filter": { - // "description": "Required. A filter for matching the requested operations.\u003cbr\u003e\u003cbr\u003e The supported formats of \u003cb\u003efilter\u003c/b\u003e are:\u003cbr\u003e To query for a specific function: \u003ccode\u003eproject:*,location:*,function:*\u003c/code\u003e\u003cbr\u003e To query for all of the latest operations for a project: \u003ccode\u003eproject:*,latest:true\u003c/code\u003e", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Must not be set.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of records that should be returned.\u003cbr\u003e Requested page size cannot exceed 100. If not set, the default page size is 100.\u003cbr\u003e\u003cbr\u003e Pagination is only supported when querying for a specific function.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token identifying which result to start with, which is returned by a previous list call.\u003cbr\u003e\u003cbr\u003e Pagination is only supported when querying for a specific function.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta2/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1520,7 +1243,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // The provided context supersedes any context provided to the Context method. func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1536,8 +1259,6 @@ func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsRe } } -// method id "cloudfunctions.projects.locations.list": - type ProjectsLocationsListCall struct { s *Service name string @@ -1547,63 +1268,59 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this service. +// +// - name: The resource that owns the locations collection, if applicable. func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1612,12 +1329,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { } func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1634,16 +1346,15 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1651,17 +1362,17 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1674,48 +1385,6 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat return nil, err } return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1beta2/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "cloudfunctions.projects.locations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}/locations", - // "response": { - // "$ref": "ListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1723,7 +1392,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1739,8 +1408,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -// method id "cloudfunctions.projects.locations.functions.call": - type ProjectsLocationsFunctionsCallCall struct { s *Service name string @@ -1752,11 +1419,12 @@ type ProjectsLocationsFunctionsCallCall struct { // Call: Synchronously invokes a deployed Cloud Function. To be used for // testing -// purposes as very limited traffic is allowed. For more information -// on +// purposes as very limited traffic is allowed. For more information on // the actual limits refer to [API // Calls]( // https://cloud.google.com/functions/quotas#rate_limits). +// +// - name: The name of the function to be called. func (r *ProjectsLocationsFunctionsService) Call(name string, callfunctionrequest *CallFunctionRequest) *ProjectsLocationsFunctionsCallCall { c := &ProjectsLocationsFunctionsCallCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1765,23 +1433,21 @@ func (r *ProjectsLocationsFunctionsService) Call(name string, callfunctionreques } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsFunctionsCallCall) Fields(s ...googleapi.Field) *ProjectsLocationsFunctionsCallCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsFunctionsCallCall) Context(ctx context.Context) *ProjectsLocationsFunctionsCallCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsFunctionsCallCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1790,18 +1456,12 @@ func (c *ProjectsLocationsFunctionsCallCall) Header() http.Header { } func (c *ProjectsLocationsFunctionsCallCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.callfunctionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}:call") @@ -1814,16 +1474,15 @@ func (c *ProjectsLocationsFunctionsCallCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.call" call. -// Exactly one of *CallFunctionResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CallFunctionResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CallFunctionResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsFunctionsCallCall) Do(opts ...googleapi.CallOption) (*CallFunctionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1831,17 +1490,17 @@ func (c *ProjectsLocationsFunctionsCallCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CallFunctionResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1854,38 +1513,7 @@ func (c *ProjectsLocationsFunctionsCallCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Synchronously invokes a deployed Cloud Function. To be used for testing\npurposes as very limited traffic is allowed. For more information on\nthe actual limits refer to [API Calls](\nhttps://cloud.google.com/functions/quotas#rate_limits).", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:call", - // "httpMethod": "POST", - // "id": "cloudfunctions.projects.locations.functions.call", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the function to be called.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}:call", - // "request": { - // "$ref": "CallFunctionRequest" - // }, - // "response": { - // "$ref": "CallFunctionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudfunctions.projects.locations.functions.create": +} type ProjectsLocationsFunctionsCreateCall struct { s *Service @@ -1896,11 +1524,16 @@ type ProjectsLocationsFunctionsCreateCall struct { header_ http.Header } -// Create: Creates a new function. If a function with the given name -// already exists in +// Create: Creates a new function. If a function with the given name already +// exists in // the specified project, the long running operation will // return // `ALREADY_EXISTS` error. +// +// - location: The project and location in which the function should be +// created, specified +// +// in the format `projects/*/locations/*`. func (r *ProjectsLocationsFunctionsService) Create(location string, cloudfunction *CloudFunction) *ProjectsLocationsFunctionsCreateCall { c := &ProjectsLocationsFunctionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.location = location @@ -1909,23 +1542,21 @@ func (r *ProjectsLocationsFunctionsService) Create(location string, cloudfunctio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsFunctionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFunctionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsFunctionsCreateCall) Context(ctx context.Context) *ProjectsLocationsFunctionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsFunctionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1934,18 +1565,12 @@ func (c *ProjectsLocationsFunctionsCreateCall) Header() http.Header { } func (c *ProjectsLocationsFunctionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudfunction) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+location}/functions") @@ -1958,16 +1583,14 @@ func (c *ProjectsLocationsFunctionsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsFunctionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1975,17 +1598,17 @@ func (c *ProjectsLocationsFunctionsCreateCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -1998,38 +1621,7 @@ func (c *ProjectsLocationsFunctionsCreateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates a new function. If a function with the given name already exists in\nthe specified project, the long running operation will return\n`ALREADY_EXISTS` error.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions", - // "httpMethod": "POST", - // "id": "cloudfunctions.projects.locations.functions.create", - // "parameterOrder": [ - // "location" - // ], - // "parameters": { - // "location": { - // "description": "Required. The project and location in which the function should be created, specified\nin the format `projects/*/locations/*`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+location}/functions", - // "request": { - // "$ref": "CloudFunction" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudfunctions.projects.locations.functions.delete": +} type ProjectsLocationsFunctionsDeleteCall struct { s *Service @@ -2039,11 +1631,13 @@ type ProjectsLocationsFunctionsDeleteCall struct { header_ http.Header } -// Delete: Deletes a function with the given name from the specified -// project. If the +// Delete: Deletes a function with the given name from the specified project. +// If the // given function is used by some trigger, the trigger will be updated // to // remove this function. +// +// - name: The name of the function which should be deleted. func (r *ProjectsLocationsFunctionsService) Delete(name string) *ProjectsLocationsFunctionsDeleteCall { c := &ProjectsLocationsFunctionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2051,23 +1645,21 @@ func (r *ProjectsLocationsFunctionsService) Delete(name string) *ProjectsLocatio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsFunctionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFunctionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsFunctionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFunctionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsFunctionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2076,12 +1668,7 @@ func (c *ProjectsLocationsFunctionsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsFunctionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2095,16 +1682,14 @@ func (c *ProjectsLocationsFunctionsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsFunctionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2112,17 +1697,17 @@ func (c *ProjectsLocationsFunctionsDeleteCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2135,35 +1720,7 @@ func (c *ProjectsLocationsFunctionsDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Deletes a function with the given name from the specified project. If the\ngiven function is used by some trigger, the trigger will be updated to\nremove this function.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}", - // "httpMethod": "DELETE", - // "id": "cloudfunctions.projects.locations.functions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the function which should be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudfunctions.projects.locations.functions.generateDownloadUrl": +} type ProjectsLocationsFunctionsGenerateDownloadUrlCall struct { s *Service @@ -2174,14 +1731,18 @@ type ProjectsLocationsFunctionsGenerateDownloadUrlCall struct { header_ http.Header } -// GenerateDownloadUrl: Returns a signed URL for downloading deployed -// function source code. -// The URL is only valid for a limited period and should be used -// within +// GenerateDownloadUrl: Returns a signed URL for downloading deployed function +// source code. +// The URL is only valid for a limited period and should be used within // minutes after generation. // For more information about the signed URL usage // see: // https://cloud.google.com/storage/docs/access-control/signed-urls +// +// - name: The name of function for which source code Google Cloud Storage +// signed +// +// URL should be generated. func (r *ProjectsLocationsFunctionsService) GenerateDownloadUrl(name string, generatedownloadurlrequest *GenerateDownloadUrlRequest) *ProjectsLocationsFunctionsGenerateDownloadUrlCall { c := &ProjectsLocationsFunctionsGenerateDownloadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2190,23 +1751,21 @@ func (r *ProjectsLocationsFunctionsService) GenerateDownloadUrl(name string, gen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Fields(s ...googleapi.Field) *ProjectsLocationsFunctionsGenerateDownloadUrlCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Context(ctx context.Context) *ProjectsLocationsFunctionsGenerateDownloadUrlCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2215,18 +1774,12 @@ func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Header() http.Header } func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.generatedownloadurlrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}:generateDownloadUrl") @@ -2239,16 +1792,15 @@ func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.generateDownloadUrl" call. -// Exactly one of *GenerateDownloadUrlResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GenerateDownloadUrlResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GenerateDownloadUrlResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Do(opts ...googleapi.CallOption) (*GenerateDownloadUrlResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2256,17 +1808,17 @@ func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Do(opts ...googleapi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GenerateDownloadUrlResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2279,38 +1831,7 @@ func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Returns a signed URL for downloading deployed function source code.\nThe URL is only valid for a limited period and should be used within\nminutes after generation.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:generateDownloadUrl", - // "httpMethod": "POST", - // "id": "cloudfunctions.projects.locations.functions.generateDownloadUrl", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of function for which source code Google Cloud Storage signed\nURL should be generated.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}:generateDownloadUrl", - // "request": { - // "$ref": "GenerateDownloadUrlRequest" - // }, - // "response": { - // "$ref": "GenerateDownloadUrlResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudfunctions.projects.locations.functions.generateUploadUrl": +} type ProjectsLocationsFunctionsGenerateUploadUrlCall struct { s *Service @@ -2321,36 +1842,26 @@ type ProjectsLocationsFunctionsGenerateUploadUrlCall struct { header_ http.Header } -// GenerateUploadUrl: Returns a signed URL for uploading a function -// source code. +// GenerateUploadUrl: Returns a signed URL for uploading a function source +// code. // For more information about the signed URL usage // see: // https://cloud.google.com/storage/docs/access-control/signed-urls -// // Once the function source code upload is complete, the used signed // URL should be provided in CreateFunction or UpdateFunction request // as a reference to the function source code. // -// When uploading source code to the generated signed URL, please -// follow +// When uploading source code to the generated signed URL, please follow // these restrictions: // -// * Source file type should be a zip file. -// * Source file size should not exceed 100MB limit. -// * No credentials should be attached - the signed URLs provide access -// to the +// - Source file type should be a zip file. +// - Source file size should not exceed 100MB limit. +// - No credentials should be attached - the signed URLs provide access to the +// target bucket using internal service identity; if credentials were +// attached, the identity from the credentials would be used, but that +// identity does not have permissions to upload files to the URL. // -// target bucket using internal service identity; if credentials were -// attached, the identity from the credentials would be used, but -// -// that -// -// identity does not have permissions to upload files to the -// -// URL. -// -// When making a HTTP PUT request, these two headers need to be -// specified: +// When making a HTTP PUT request, these two headers need to be specified: // // * `content-type: application/zip` // * `x-goog-content-length-range: 0,104857600` @@ -2358,6 +1869,11 @@ type ProjectsLocationsFunctionsGenerateUploadUrlCall struct { // And this header SHOULD NOT be specified: // // * `Authorization: Bearer YOUR_TOKEN` +// +// - parent: The project and location in which the Google Cloud Storage signed +// URL +// +// should be generated, specified in the format `projects/*/locations/*`. func (r *ProjectsLocationsFunctionsService) GenerateUploadUrl(parent string, generateuploadurlrequest *GenerateUploadUrlRequest) *ProjectsLocationsFunctionsGenerateUploadUrlCall { c := &ProjectsLocationsFunctionsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2366,23 +1882,21 @@ func (r *ProjectsLocationsFunctionsService) GenerateUploadUrl(parent string, gen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Fields(s ...googleapi.Field) *ProjectsLocationsFunctionsGenerateUploadUrlCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Context(ctx context.Context) *ProjectsLocationsFunctionsGenerateUploadUrlCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2391,18 +1905,12 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Header() http.Header { } func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.generateuploadurlrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/functions:generateUploadUrl") @@ -2415,16 +1923,15 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.generateUploadUrl" call. -// Exactly one of *GenerateUploadUrlResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GenerateUploadUrlResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GenerateUploadUrlResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.CallOption) (*GenerateUploadUrlResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2432,17 +1939,17 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.C if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GenerateUploadUrlResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2455,38 +1962,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n* No credentials should be attached - the signed URLs provide access to the\n target bucket using internal service identity; if credentials were\n attached, the identity from the credentials would be used, but that\n identity does not have permissions to upload files to the URL.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`\n\nAnd this header SHOULD NOT be specified:\n\n* `Authorization: Bearer YOUR_TOKEN`", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl", - // "httpMethod": "POST", - // "id": "cloudfunctions.projects.locations.functions.generateUploadUrl", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The project and location in which the Google Cloud Storage signed URL\nshould be generated, specified in the format `projects/*/locations/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/functions:generateUploadUrl", - // "request": { - // "$ref": "GenerateUploadUrlRequest" - // }, - // "response": { - // "$ref": "GenerateUploadUrlResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudfunctions.projects.locations.functions.get": +} type ProjectsLocationsFunctionsGetCall struct { s *Service @@ -2497,8 +1973,9 @@ type ProjectsLocationsFunctionsGetCall struct { header_ http.Header } -// Get: Returns a function with the given name from the requested -// project. +// Get: Returns a function with the given name from the requested project. +// +// - name: The name of the function which details should be obtained. func (r *ProjectsLocationsFunctionsService) Get(name string) *ProjectsLocationsFunctionsGetCall { c := &ProjectsLocationsFunctionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2506,33 +1983,29 @@ func (r *ProjectsLocationsFunctionsService) Get(name string) *ProjectsLocationsF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsFunctionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFunctionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsFunctionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFunctionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsFunctionsGetCall) Context(ctx context.Context) *ProjectsLocationsFunctionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsFunctionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2541,12 +2014,7 @@ func (c *ProjectsLocationsFunctionsGetCall) Header() http.Header { } func (c *ProjectsLocationsFunctionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2563,16 +2031,14 @@ func (c *ProjectsLocationsFunctionsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.get" call. -// Exactly one of *CloudFunction or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CloudFunction.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CloudFunction.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsFunctionsGetCall) Do(opts ...googleapi.CallOption) (*CloudFunction, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2580,17 +2046,17 @@ func (c *ProjectsLocationsFunctionsGetCall) Do(opts ...googleapi.CallOption) (*C if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CloudFunction{ ServerResponse: googleapi.ServerResponse{ @@ -2603,35 +2069,7 @@ func (c *ProjectsLocationsFunctionsGetCall) Do(opts ...googleapi.CallOption) (*C return nil, err } return ret, nil - // { - // "description": "Returns a function with the given name from the requested project.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}", - // "httpMethod": "GET", - // "id": "cloudfunctions.projects.locations.functions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the function which details should be obtained.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "CloudFunction" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudfunctions.projects.locations.functions.list": +} type ProjectsLocationsFunctionsListCall struct { s *Service @@ -2642,26 +2080,36 @@ type ProjectsLocationsFunctionsListCall struct { header_ http.Header } -// List: Returns a list of functions that belong to the requested -// project. +// List: Returns a list of functions that belong to the requested project. +// +// - location: The project and location from which the function should be +// listed, +// specified in the format `projects/*/locations/*` +// If you want to list functions in all locations, use "-" in place of +// a +// location. When listing functions in all locations, if one or +// more +// location(s) are unreachable, the response will contain functions from +// all +// +// reachable locations along with the names of any unreachable locations. func (r *ProjectsLocationsFunctionsService) List(location string) *ProjectsLocationsFunctionsListCall { c := &ProjectsLocationsFunctionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.location = location return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// functions to return per call. +// PageSize sets the optional parameter "pageSize": Maximum number of functions +// to return per call. func (c *ProjectsLocationsFunctionsListCall) PageSize(pageSize int64) *ProjectsLocationsFunctionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The value returned -// by the last +// PageToken sets the optional parameter "pageToken": The value returned by the +// last // `ListFunctionsResponse`; indicates that -// this is a continuation of a prior `ListFunctions` call, and that -// the +// this is a continuation of a prior `ListFunctions` call, and that the // system should return the next page of data. func (c *ProjectsLocationsFunctionsListCall) PageToken(pageToken string) *ProjectsLocationsFunctionsListCall { c.urlParams_.Set("pageToken", pageToken) @@ -2669,33 +2117,29 @@ func (c *ProjectsLocationsFunctionsListCall) PageToken(pageToken string) *Projec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsFunctionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFunctionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsFunctionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFunctionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsFunctionsListCall) Context(ctx context.Context) *ProjectsLocationsFunctionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsFunctionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2704,12 +2148,7 @@ func (c *ProjectsLocationsFunctionsListCall) Header() http.Header { } func (c *ProjectsLocationsFunctionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2726,16 +2165,15 @@ func (c *ProjectsLocationsFunctionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.list" call. -// Exactly one of *ListFunctionsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListFunctionsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListFunctionsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsFunctionsListCall) Do(opts ...googleapi.CallOption) (*ListFunctionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2743,17 +2181,17 @@ func (c *ProjectsLocationsFunctionsListCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListFunctionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2766,43 +2204,6 @@ func (c *ProjectsLocationsFunctionsListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Returns a list of functions that belong to the requested project.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions", - // "httpMethod": "GET", - // "id": "cloudfunctions.projects.locations.functions.list", - // "parameterOrder": [ - // "location" - // ], - // "parameters": { - // "location": { - // "description": "Required. The project and location from which the function should be listed,\nspecified in the format `projects/*/locations/*`\nIf you want to list functions in all locations, use \"-\" in place of a\nlocation. When listing functions in all locations, if one or more\nlocation(s) are unreachable, the response will contain functions from all\nreachable locations along with the names of any unreachable locations.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum number of functions to return per call.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value returned by the last\n`ListFunctionsResponse`; indicates that\nthis is a continuation of a prior `ListFunctions` call, and that the\nsystem should return the next page of data.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta2/{+location}/functions", - // "response": { - // "$ref": "ListFunctionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2810,7 +2211,7 @@ func (c *ProjectsLocationsFunctionsListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsFunctionsListCall) Pages(ctx context.Context, f func(*ListFunctionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2826,8 +2227,6 @@ func (c *ProjectsLocationsFunctionsListCall) Pages(ctx context.Context, f func(* } } -// method id "cloudfunctions.projects.locations.functions.update": - type ProjectsLocationsFunctionsUpdateCall struct { s *Service name string @@ -2838,6 +2237,8 @@ type ProjectsLocationsFunctionsUpdateCall struct { } // Update: Updates existing function. +// +// - name: The name of the function to be updated. func (r *ProjectsLocationsFunctionsService) Update(name string, cloudfunction *CloudFunction) *ProjectsLocationsFunctionsUpdateCall { c := &ProjectsLocationsFunctionsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2846,23 +2247,21 @@ func (r *ProjectsLocationsFunctionsService) Update(name string, cloudfunction *C } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsFunctionsUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFunctionsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsFunctionsUpdateCall) Context(ctx context.Context) *ProjectsLocationsFunctionsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsFunctionsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2871,18 +2270,12 @@ func (c *ProjectsLocationsFunctionsUpdateCall) Header() http.Header { } func (c *ProjectsLocationsFunctionsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudfunction) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") @@ -2895,16 +2288,14 @@ func (c *ProjectsLocationsFunctionsUpdateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.update" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsFunctionsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2912,17 +2303,17 @@ func (c *ProjectsLocationsFunctionsUpdateCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2935,33 +2326,4 @@ func (c *ProjectsLocationsFunctionsUpdateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Updates existing function.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}", - // "httpMethod": "PUT", - // "id": "cloudfunctions.projects.locations.functions.update", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the function to be updated.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "request": { - // "$ref": "CloudFunction" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index d0294c4470e..98374e88acf 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -2063,7 +2063,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.list" call. @@ -2188,7 +2188,7 @@ func (c *ProjectsLocationsFunctionsAbortFunctionUpgradeCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.abortFunctionUpgrade" call. @@ -2292,7 +2292,7 @@ func (c *ProjectsLocationsFunctionsCommitFunctionUpgradeCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.commitFunctionUpgrade" call. @@ -2404,7 +2404,7 @@ func (c *ProjectsLocationsFunctionsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.create" call. @@ -2501,7 +2501,7 @@ func (c *ProjectsLocationsFunctionsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.delete" call. @@ -2606,7 +2606,7 @@ func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.generateDownloadUrl" call. @@ -2721,7 +2721,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.generateUploadUrl" call. @@ -2840,7 +2840,7 @@ func (c *ProjectsLocationsFunctionsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.get" call. @@ -2967,7 +2967,7 @@ func (c *ProjectsLocationsFunctionsGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.getIamPolicy" call. @@ -3114,7 +3114,7 @@ func (c *ProjectsLocationsFunctionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.list" call. @@ -3245,7 +3245,7 @@ func (c *ProjectsLocationsFunctionsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.patch" call. @@ -3350,7 +3350,7 @@ func (c *ProjectsLocationsFunctionsRedirectFunctionUpgradeTrafficCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.redirectFunctionUpgradeTraffic" call. @@ -3454,7 +3454,7 @@ func (c *ProjectsLocationsFunctionsRollbackFunctionUpgradeTrafficCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.rollbackFunctionUpgradeTraffic" call. @@ -3559,7 +3559,7 @@ func (c *ProjectsLocationsFunctionsSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.setIamPolicy" call. @@ -3665,7 +3665,7 @@ func (c *ProjectsLocationsFunctionsSetupFunctionUpgradeConfigCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.setupFunctionUpgradeConfig" call. @@ -3773,7 +3773,7 @@ func (c *ProjectsLocationsFunctionsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.testIamPermissions" call. @@ -3883,7 +3883,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.operations.get" call. @@ -4011,7 +4011,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.operations.list" call. @@ -4150,7 +4150,7 @@ func (c *ProjectsLocationsRuntimesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.runtimes.list" call. diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 3dfc02d8198..38f4dbe608c 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -2063,7 +2063,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.list" call. @@ -2188,7 +2188,7 @@ func (c *ProjectsLocationsFunctionsAbortFunctionUpgradeCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.abortFunctionUpgrade" call. @@ -2292,7 +2292,7 @@ func (c *ProjectsLocationsFunctionsCommitFunctionUpgradeCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.commitFunctionUpgrade" call. @@ -2404,7 +2404,7 @@ func (c *ProjectsLocationsFunctionsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.create" call. @@ -2501,7 +2501,7 @@ func (c *ProjectsLocationsFunctionsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.delete" call. @@ -2606,7 +2606,7 @@ func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.generateDownloadUrl" call. @@ -2721,7 +2721,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.generateUploadUrl" call. @@ -2840,7 +2840,7 @@ func (c *ProjectsLocationsFunctionsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.get" call. @@ -2967,7 +2967,7 @@ func (c *ProjectsLocationsFunctionsGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.getIamPolicy" call. @@ -3114,7 +3114,7 @@ func (c *ProjectsLocationsFunctionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.list" call. @@ -3245,7 +3245,7 @@ func (c *ProjectsLocationsFunctionsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.patch" call. @@ -3350,7 +3350,7 @@ func (c *ProjectsLocationsFunctionsRedirectFunctionUpgradeTrafficCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.redirectFunctionUpgradeTraffic" call. @@ -3454,7 +3454,7 @@ func (c *ProjectsLocationsFunctionsRollbackFunctionUpgradeTrafficCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.rollbackFunctionUpgradeTraffic" call. @@ -3559,7 +3559,7 @@ func (c *ProjectsLocationsFunctionsSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.setIamPolicy" call. @@ -3665,7 +3665,7 @@ func (c *ProjectsLocationsFunctionsSetupFunctionUpgradeConfigCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.setupFunctionUpgradeConfig" call. @@ -3773,7 +3773,7 @@ func (c *ProjectsLocationsFunctionsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.testIamPermissions" call. @@ -3883,7 +3883,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.operations.get" call. @@ -4011,7 +4011,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.operations.list" call. @@ -4150,7 +4150,7 @@ func (c *ProjectsLocationsRuntimesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.runtimes.list" call. diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 8eb549b08d0..f6e5d97fbdf 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -2063,7 +2063,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.list" call. @@ -2188,7 +2188,7 @@ func (c *ProjectsLocationsFunctionsAbortFunctionUpgradeCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.abortFunctionUpgrade" call. @@ -2292,7 +2292,7 @@ func (c *ProjectsLocationsFunctionsCommitFunctionUpgradeCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.commitFunctionUpgrade" call. @@ -2404,7 +2404,7 @@ func (c *ProjectsLocationsFunctionsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.create" call. @@ -2501,7 +2501,7 @@ func (c *ProjectsLocationsFunctionsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.delete" call. @@ -2606,7 +2606,7 @@ func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.generateDownloadUrl" call. @@ -2721,7 +2721,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.generateUploadUrl" call. @@ -2840,7 +2840,7 @@ func (c *ProjectsLocationsFunctionsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.get" call. @@ -2967,7 +2967,7 @@ func (c *ProjectsLocationsFunctionsGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.getIamPolicy" call. @@ -3114,7 +3114,7 @@ func (c *ProjectsLocationsFunctionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.list" call. @@ -3245,7 +3245,7 @@ func (c *ProjectsLocationsFunctionsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.patch" call. @@ -3350,7 +3350,7 @@ func (c *ProjectsLocationsFunctionsRedirectFunctionUpgradeTrafficCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.redirectFunctionUpgradeTraffic" call. @@ -3454,7 +3454,7 @@ func (c *ProjectsLocationsFunctionsRollbackFunctionUpgradeTrafficCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.rollbackFunctionUpgradeTraffic" call. @@ -3559,7 +3559,7 @@ func (c *ProjectsLocationsFunctionsSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.setIamPolicy" call. @@ -3665,7 +3665,7 @@ func (c *ProjectsLocationsFunctionsSetupFunctionUpgradeConfigCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.setupFunctionUpgradeConfig" call. @@ -3773,7 +3773,7 @@ func (c *ProjectsLocationsFunctionsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.functions.testIamPermissions" call. @@ -3883,7 +3883,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.operations.get" call. @@ -4011,7 +4011,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.operations.list" call. @@ -4150,7 +4150,7 @@ func (c *ProjectsLocationsRuntimesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudfunctions.projects.locations.runtimes.list" call. diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index c00222d0dda..3a614966d4c 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -3246,7 +3246,7 @@ func (c *CustomersUserinvitationsCancelCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.customers.userinvitations.cancel" call. @@ -3357,7 +3357,7 @@ func (c *CustomersUserinvitationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.customers.userinvitations.get" call. @@ -3471,7 +3471,7 @@ func (c *CustomersUserinvitationsIsInvitableUserCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.customers.userinvitations.isInvitableUser" call. @@ -3620,7 +3620,7 @@ func (c *CustomersUserinvitationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.customers.userinvitations.list" call. @@ -3749,7 +3749,7 @@ func (c *CustomersUserinvitationsSendCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.customers.userinvitations.send" call. @@ -3858,7 +3858,7 @@ func (c *DevicesCancelWipeCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.cancelWipe" call. @@ -3966,7 +3966,7 @@ func (c *DevicesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.create" call. @@ -4074,7 +4074,7 @@ func (c *DevicesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.delete" call. @@ -4195,7 +4195,7 @@ func (c *DevicesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.get" call. @@ -4367,7 +4367,7 @@ func (c *DevicesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.list" call. @@ -4493,7 +4493,7 @@ func (c *DevicesWipeCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.wipe" call. @@ -4597,7 +4597,7 @@ func (c *DevicesDeviceUsersApproveCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.approve" call. @@ -4701,7 +4701,7 @@ func (c *DevicesDeviceUsersBlockCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.block" call. @@ -4807,7 +4807,7 @@ func (c *DevicesDeviceUsersCancelWipeCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.cancelWipe" call. @@ -4917,7 +4917,7 @@ func (c *DevicesDeviceUsersDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.delete" call. @@ -5038,7 +5038,7 @@ func (c *DevicesDeviceUsersGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.get" call. @@ -5193,7 +5193,7 @@ func (c *DevicesDeviceUsersListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.list" call. @@ -5378,7 +5378,7 @@ func (c *DevicesDeviceUsersLookupCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.lookup" call. @@ -5510,7 +5510,7 @@ func (c *DevicesDeviceUsersWipeCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.wipe" call. @@ -5641,7 +5641,7 @@ func (c *DevicesDeviceUsersClientStatesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.clientStates.get" call. @@ -5785,7 +5785,7 @@ func (c *DevicesDeviceUsersClientStatesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.clientStates.list" call. @@ -5945,7 +5945,7 @@ func (c *DevicesDeviceUsersClientStatesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.clientStates.patch" call. @@ -6057,7 +6057,7 @@ func (c *GroupsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.create" call. @@ -6154,7 +6154,7 @@ func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.delete" call. @@ -6263,7 +6263,7 @@ func (c *GroupsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.get" call. @@ -6380,7 +6380,7 @@ func (c *GroupsGetSecuritySettingsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.getSecuritySettings" call. @@ -6524,7 +6524,7 @@ func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.list" call. @@ -6670,7 +6670,7 @@ func (c *GroupsLookupCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.lookup" call. @@ -6782,7 +6782,7 @@ func (c *GroupsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.patch" call. @@ -6934,7 +6934,7 @@ func (c *GroupsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.search" call. @@ -7066,7 +7066,7 @@ func (c *GroupsUpdateSecuritySettingsCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.updateSecuritySettings" call. @@ -7196,7 +7196,7 @@ func (c *GroupsMembershipsCheckTransitiveMembershipCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.checkTransitiveMembership" call. @@ -7299,7 +7299,7 @@ func (c *GroupsMembershipsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.create" call. @@ -7396,7 +7396,7 @@ func (c *GroupsMembershipsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.delete" call. @@ -7506,7 +7506,7 @@ func (c *GroupsMembershipsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.get" call. @@ -7637,7 +7637,7 @@ func (c *GroupsMembershipsGetMembershipGraphCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.getMembershipGraph" call. @@ -7777,7 +7777,7 @@ func (c *GroupsMembershipsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.list" call. @@ -7931,7 +7931,7 @@ func (c *GroupsMembershipsLookupCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.lookup" call. @@ -8036,7 +8036,7 @@ func (c *GroupsMembershipsModifyMembershipRolesCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.modifyMembershipRoles" call. @@ -8188,7 +8188,7 @@ func (c *GroupsMembershipsSearchDirectGroupsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.searchDirectGroups" call. @@ -8359,7 +8359,7 @@ func (c *GroupsMembershipsSearchTransitiveGroupsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.searchTransitiveGroups" call. @@ -8511,7 +8511,7 @@ func (c *GroupsMembershipsSearchTransitiveMembershipsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.searchTransitiveMemberships" call. @@ -8631,7 +8631,7 @@ func (c *InboundSamlSsoProfilesCreateCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.create" call. @@ -8729,7 +8729,7 @@ func (c *InboundSamlSsoProfilesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.delete" call. @@ -8839,7 +8839,7 @@ func (c *InboundSamlSsoProfilesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.get" call. @@ -8972,7 +8972,7 @@ func (c *InboundSamlSsoProfilesListCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.list" call. @@ -9108,7 +9108,7 @@ func (c *InboundSamlSsoProfilesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.patch" call. @@ -9214,7 +9214,7 @@ func (c *InboundSamlSsoProfilesIdpCredentialsAddCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.idpCredentials.add" call. @@ -9313,7 +9313,7 @@ func (c *InboundSamlSsoProfilesIdpCredentialsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.idpCredentials.delete" call. @@ -9424,7 +9424,7 @@ func (c *InboundSamlSsoProfilesIdpCredentialsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.idpCredentials.get" call. @@ -9548,7 +9548,7 @@ func (c *InboundSamlSsoProfilesIdpCredentialsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.idpCredentials.list" call. @@ -9665,7 +9665,7 @@ func (c *InboundSsoAssignmentsCreateCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSsoAssignments.create" call. @@ -9764,7 +9764,7 @@ func (c *InboundSsoAssignmentsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSsoAssignments.delete" call. @@ -9874,7 +9874,7 @@ func (c *InboundSsoAssignmentsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSsoAssignments.get" call. @@ -10006,7 +10006,7 @@ func (c *InboundSsoAssignmentsListCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSsoAssignments.list" call. @@ -10144,7 +10144,7 @@ func (c *InboundSsoAssignmentsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSsoAssignments.patch" call. diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index bd0510aa235..d7d157b2f12 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -4179,7 +4179,7 @@ func (c *CustomersUserinvitationsCancelCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.customers.userinvitations.cancel" call. @@ -4290,7 +4290,7 @@ func (c *CustomersUserinvitationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.customers.userinvitations.get" call. @@ -4404,7 +4404,7 @@ func (c *CustomersUserinvitationsIsInvitableUserCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.customers.userinvitations.isInvitableUser" call. @@ -4553,7 +4553,7 @@ func (c *CustomersUserinvitationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.customers.userinvitations.list" call. @@ -4682,7 +4682,7 @@ func (c *CustomersUserinvitationsSendCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.customers.userinvitations.send" call. @@ -4787,7 +4787,7 @@ func (c *DevicesCancelWipeCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.cancelWipe" call. @@ -4884,7 +4884,7 @@ func (c *DevicesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.create" call. @@ -4992,7 +4992,7 @@ func (c *DevicesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.delete" call. @@ -5110,7 +5110,7 @@ func (c *DevicesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.get" call. @@ -5275,7 +5275,7 @@ func (c *DevicesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.list" call. @@ -5402,7 +5402,7 @@ func (c *DevicesWipeCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.wipe" call. @@ -5507,7 +5507,7 @@ func (c *DevicesDeviceUsersApproveCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.approve" call. @@ -5612,7 +5612,7 @@ func (c *DevicesDeviceUsersBlockCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.block" call. @@ -5719,7 +5719,7 @@ func (c *DevicesDeviceUsersCancelWipeCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.cancelWipe" call. @@ -5830,7 +5830,7 @@ func (c *DevicesDeviceUsersDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.delete" call. @@ -5952,7 +5952,7 @@ func (c *DevicesDeviceUsersGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.get" call. @@ -6106,7 +6106,7 @@ func (c *DevicesDeviceUsersListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.list" call. @@ -6291,7 +6291,7 @@ func (c *DevicesDeviceUsersLookupCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.lookup" call. @@ -6418,7 +6418,7 @@ func (c *DevicesDeviceUsersWipeCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.wipe" call. @@ -6550,7 +6550,7 @@ func (c *DevicesDeviceUsersClientStatesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.clientStates.get" call. @@ -6677,7 +6677,7 @@ func (c *DevicesDeviceUsersClientStatesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.devices.deviceUsers.clientStates.patch" call. @@ -6789,7 +6789,7 @@ func (c *GroupsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.create" call. @@ -6886,7 +6886,7 @@ func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.delete" call. @@ -6995,7 +6995,7 @@ func (c *GroupsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.get" call. @@ -7112,7 +7112,7 @@ func (c *GroupsGetSecuritySettingsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.getSecuritySettings" call. @@ -7256,7 +7256,7 @@ func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.list" call. @@ -7401,7 +7401,7 @@ func (c *GroupsLookupCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.lookup" call. @@ -7514,7 +7514,7 @@ func (c *GroupsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.patch" call. @@ -7676,7 +7676,7 @@ func (c *GroupsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.search" call. @@ -7808,7 +7808,7 @@ func (c *GroupsUpdateSecuritySettingsCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.updateSecuritySettings" call. @@ -7936,7 +7936,7 @@ func (c *GroupsMembershipsCheckTransitiveMembershipCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.checkTransitiveMembership" call. @@ -8039,7 +8039,7 @@ func (c *GroupsMembershipsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.create" call. @@ -8137,7 +8137,7 @@ func (c *GroupsMembershipsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.delete" call. @@ -8247,7 +8247,7 @@ func (c *GroupsMembershipsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.get" call. @@ -8377,7 +8377,7 @@ func (c *GroupsMembershipsGetMembershipGraphCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.getMembershipGraph" call. @@ -8516,7 +8516,7 @@ func (c *GroupsMembershipsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.list" call. @@ -8669,7 +8669,7 @@ func (c *GroupsMembershipsLookupCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.lookup" call. @@ -8774,7 +8774,7 @@ func (c *GroupsMembershipsModifyMembershipRolesCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.modifyMembershipRoles" call. @@ -8926,7 +8926,7 @@ func (c *GroupsMembershipsSearchDirectGroupsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.searchDirectGroups" call. @@ -9096,7 +9096,7 @@ func (c *GroupsMembershipsSearchTransitiveGroupsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.searchTransitiveGroups" call. @@ -9247,7 +9247,7 @@ func (c *GroupsMembershipsSearchTransitiveMembershipsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.groups.memberships.searchTransitiveMemberships" call. @@ -9367,7 +9367,7 @@ func (c *InboundSamlSsoProfilesCreateCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.create" call. @@ -9465,7 +9465,7 @@ func (c *InboundSamlSsoProfilesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.delete" call. @@ -9575,7 +9575,7 @@ func (c *InboundSamlSsoProfilesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.get" call. @@ -9708,7 +9708,7 @@ func (c *InboundSamlSsoProfilesListCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.list" call. @@ -9844,7 +9844,7 @@ func (c *InboundSamlSsoProfilesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.patch" call. @@ -9950,7 +9950,7 @@ func (c *InboundSamlSsoProfilesIdpCredentialsAddCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.idpCredentials.add" call. @@ -10049,7 +10049,7 @@ func (c *InboundSamlSsoProfilesIdpCredentialsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.idpCredentials.delete" call. @@ -10160,7 +10160,7 @@ func (c *InboundSamlSsoProfilesIdpCredentialsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.idpCredentials.get" call. @@ -10284,7 +10284,7 @@ func (c *InboundSamlSsoProfilesIdpCredentialsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSamlSsoProfiles.idpCredentials.list" call. @@ -10401,7 +10401,7 @@ func (c *InboundSsoAssignmentsCreateCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSsoAssignments.create" call. @@ -10500,7 +10500,7 @@ func (c *InboundSsoAssignmentsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSsoAssignments.delete" call. @@ -10610,7 +10610,7 @@ func (c *InboundSsoAssignmentsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSsoAssignments.get" call. @@ -10742,7 +10742,7 @@ func (c *InboundSsoAssignmentsListCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSsoAssignments.list" call. @@ -10880,7 +10880,7 @@ func (c *InboundSsoAssignmentsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.inboundSsoAssignments.patch" call. @@ -11033,7 +11033,7 @@ func (c *OrgUnitsMembershipsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.orgUnits.memberships.list" call. @@ -11171,7 +11171,7 @@ func (c *OrgUnitsMembershipsMoveCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudidentity.orgUnits.memberships.move" call. diff --git a/cloudiot/v1/cloudiot-gen.go b/cloudiot/v1/cloudiot-gen.go index 0602384d075..d1b3132a5db 100644 --- a/cloudiot/v1/cloudiot-gen.go +++ b/cloudiot/v1/cloudiot-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/iot // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // cloudiotService, err := cloudiot.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // cloudiotService, err := cloudiot.NewService(ctx, option.WithScopes(cloudiot.CloudiotScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // cloudiotService, err := cloudiot.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // cloudiotService, err := cloudiot.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package cloudiot // import "google.golang.org/api/cloudiot/v1" import ( @@ -81,12 +95,13 @@ const apiId = "cloudiot:v1" const apiName = "cloudiot" const apiVersion = "v1" const basePath = "https://cloudiot.googleapis.com/" +const basePathTemplate = "https://cloudiot.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://cloudiot.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // Register and manage devices in the Google Cloud IoT service @@ -102,7 +117,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -241,1130 +258,897 @@ type ProjectsLocationsRegistriesGroupsDevicesService struct { // BindDeviceToGatewayRequest: Request for `BindDeviceToGateway`. type BindDeviceToGatewayRequest struct { - // DeviceId: Required. The device to associate with the specified - // gateway. The value of `device_id` can be either the device numeric ID - // or the user-defined device identifier. + // DeviceId: Required. The device to associate with the specified gateway. The + // value of `device_id` can be either the device numeric ID or the user-defined + // device identifier. DeviceId string `json:"deviceId,omitempty"` - - // GatewayId: Required. The value of `gateway_id` can be either the - // device numeric ID or the user-defined device identifier. + // GatewayId: Required. The value of `gateway_id` can be either the device + // numeric ID or the user-defined device identifier. GatewayId string `json:"gatewayId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BindDeviceToGatewayRequest) MarshalJSON() ([]byte, error) { +func (s BindDeviceToGatewayRequest) MarshalJSON() ([]byte, error) { type NoMethod BindDeviceToGatewayRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BindDeviceToGatewayResponse: Response for `BindDeviceToGateway`. type BindDeviceToGatewayResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the - // current request. If the condition evaluates to `false`, then this - // binding does not apply to the current request. However, a different - // role binding might grant the same role to one or more of the - // principals in this binding. To learn which resources support - // conditions in their IAM policies, see the IAM documentation + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the principals in this binding. To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` - - // Members: Specifies the principals requesting access for a Google - // Cloud resource. `members` can have the following values: * - // `allUsers`: A special identifier that represents anyone who is on the - // internet; with or without a Google account. * - // `allAuthenticatedUsers`: A special identifier that represents anyone - // who is authenticated with a Google account or a service account. Does - // not include identities that come from external identity providers - // (IdPs) through identity federation. * `user:{emailid}`: An email + // Members: Specifies the principals requesting access for a Google Cloud + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. Does not include identities that come from external identity + // providers (IdPs) through identity federation. * `user:{emailid}`: An email // address that represents a specific Google account. For example, - // `alice@example.com` . * `serviceAccount:{emailid}`: An email address - // that represents a Google service account. For example, + // `alice@example.com` . * `serviceAccount:{emailid}`: An email address that + // represents a Google service account. For example, // `my-other-app@appspot.gserviceaccount.com`. * - // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: - // An identifier for a Kubernetes service account + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An + // identifier for a Kubernetes service account // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). - // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. - // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * `domain:{domain}`: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, `google.com` or `example.com`. * - // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently - // deleted. For example, `alice@example.com?uid=123456789012345678901`. - // If the user is recovered, this value reverts to `user:{emailid}` and - // the recovered user retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus unique identifier) representing a service account that has been + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + // `group:{emailid}`: An email address that represents a Google group. For + // example, `admins@example.com`. * `domain:{domain}`: The G Suite domain + // (primary) that represents all the users of that domain. For example, + // `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has been + // recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is recovered, + // this value reverts to `user:{emailid}` and the recovered user retains the + // role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a service account that + // has been recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the + // service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + // address (plus unique identifier) representing a Google group that has been // recently deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: - // An email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is - // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. + // `admins@example.com?uid=123456789012345678901`. If the group is recovered, + // this value reverts to `group:{emailid}` and the recovered group retains the + // role in the binding. Members []string `json:"members,omitempty"` - - // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // Role: Role that is assigned to the list of `members`, or principals. For + // example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Device: The device resource. type Device struct { - // Blocked: If a device is blocked, connections or requests from this - // device will fail. Can be used to temporarily prevent the device from - // connecting if, for example, the sensor is generating bad data and - // needs maintenance. + // Blocked: If a device is blocked, connections or requests from this device + // will fail. Can be used to temporarily prevent the device from connecting if, + // for example, the sensor is generating bad data and needs maintenance. Blocked bool `json:"blocked,omitempty"` - - // Config: The most recent device configuration, which is eventually - // sent from Cloud IoT Core to the device. If not present on creation, - // the configuration will be initialized with an empty payload and - // version value of `1`. To update this field after creation, use the + // Config: The most recent device configuration, which is eventually sent from + // Cloud IoT Core to the device. If not present on creation, the configuration + // will be initialized with an empty payload and version value of `1`. To + // update this field after creation, use the // `DeviceManager.ModifyCloudToDeviceConfig` method. Config *DeviceConfig `json:"config,omitempty"` - - // Credentials: The credentials used to authenticate this device. To - // allow credential rotation without interruption, multiple device - // credentials can be bound to this device. No more than 3 credentials - // can be bound to a single device at a time. When new credentials are - // added to a device, they are verified against the registry - // credentials. For details, see the description of the - // `DeviceRegistry.credentials` field. + // Credentials: The credentials used to authenticate this device. To allow + // credential rotation without interruption, multiple device credentials can be + // bound to this device. No more than 3 credentials can be bound to a single + // device at a time. When new credentials are added to a device, they are + // verified against the registry credentials. For details, see the description + // of the `DeviceRegistry.credentials` field. Credentials []*DeviceCredential `json:"credentials,omitempty"` - // GatewayConfig: Gateway-related configuration and state. GatewayConfig *GatewayConfig `json:"gatewayConfig,omitempty"` - - // Id: The user-defined device identifier. The device ID must be unique - // within a device registry. + // Id: The user-defined device identifier. The device ID must be unique within + // a device registry. Id string `json:"id,omitempty"` - - // LastConfigAckTime: [Output only] The last time a cloud-to-device - // config version acknowledgment was received from the device. This - // field is only for configurations sent through MQTT. + // LastConfigAckTime: [Output only] The last time a cloud-to-device config + // version acknowledgment was received from the device. This field is only for + // configurations sent through MQTT. LastConfigAckTime string `json:"lastConfigAckTime,omitempty"` - - // LastConfigSendTime: [Output only] The last time a cloud-to-device - // config version was sent to the device. + // LastConfigSendTime: [Output only] The last time a cloud-to-device config + // version was sent to the device. LastConfigSendTime string `json:"lastConfigSendTime,omitempty"` - - // LastErrorStatus: [Output only] The error message of the most recent - // error, such as a failure to publish to Cloud Pub/Sub. - // 'last_error_time' is the timestamp of this field. If no errors have - // occurred, this field has an empty message and the status code 0 == - // OK. Otherwise, this field is expected to have a status code other - // than OK. + // LastErrorStatus: [Output only] The error message of the most recent error, + // such as a failure to publish to Cloud Pub/Sub. 'last_error_time' is the + // timestamp of this field. If no errors have occurred, this field has an empty + // message and the status code 0 == OK. Otherwise, this field is expected to + // have a status code other than OK. LastErrorStatus *Status `json:"lastErrorStatus,omitempty"` - - // LastErrorTime: [Output only] The time the most recent error occurred, - // such as a failure to publish to Cloud Pub/Sub. This field is the - // timestamp of 'last_error_status'. + // LastErrorTime: [Output only] The time the most recent error occurred, such + // as a failure to publish to Cloud Pub/Sub. This field is the timestamp of + // 'last_error_status'. LastErrorTime string `json:"lastErrorTime,omitempty"` - - // LastEventTime: [Output only] The last time a telemetry event was - // received. Timestamps are periodically collected and written to - // storage; they may be stale by a few minutes. + // LastEventTime: [Output only] The last time a telemetry event was received. + // Timestamps are periodically collected and written to storage; they may be + // stale by a few minutes. LastEventTime string `json:"lastEventTime,omitempty"` - // LastHeartbeatTime: [Output only] The last time an MQTT `PINGREQ` was - // received. This field applies only to devices connecting through MQTT. - // MQTT clients usually only send `PINGREQ` messages if the connection - // is idle, and no other messages have been sent. Timestamps are - // periodically collected and written to storage; they may be stale by a - // few minutes. + // received. This field applies only to devices connecting through MQTT. MQTT + // clients usually only send `PINGREQ` messages if the connection is idle, and + // no other messages have been sent. Timestamps are periodically collected and + // written to storage; they may be stale by a few minutes. LastHeartbeatTime string `json:"lastHeartbeatTime,omitempty"` - - // LastStateTime: [Output only] The last time a state event was - // received. Timestamps are periodically collected and written to - // storage; they may be stale by a few minutes. + // LastStateTime: [Output only] The last time a state event was received. + // Timestamps are periodically collected and written to storage; they may be + // stale by a few minutes. LastStateTime string `json:"lastStateTime,omitempty"` - - // LogLevel: **Beta Feature** The logging verbosity for device activity. - // If unspecified, DeviceRegistry.log_level will be used. + // LogLevel: **Beta Feature** The logging verbosity for device activity. If + // unspecified, DeviceRegistry.log_level will be used. // // Possible values: - // "LOG_LEVEL_UNSPECIFIED" - No logging specified. If not specified, - // logging will be disabled. + // "LOG_LEVEL_UNSPECIFIED" - No logging specified. If not specified, logging + // will be disabled. // "NONE" - Disables logging. // "ERROR" - Error events will be logged. - // "INFO" - Informational events will be logged, such as connections - // and disconnections. + // "INFO" - Informational events will be logged, such as connections and + // disconnections. // "DEBUG" - All events will be logged. LogLevel string `json:"logLevel,omitempty"` - - // Metadata: The metadata key-value pairs assigned to the device. This - // metadata is not interpreted or indexed by Cloud IoT Core. It can be - // used to add contextual information for the device. Keys must conform - // to the regular expression a-zA-Z+ and be less than 128 bytes in - // length. Values are free-form strings. Each value must be less than or - // equal to 32 KB in size. The total size of all keys and values must be - // less than 256 KB, and the maximum number of key-value pairs is 500. + // Metadata: The metadata key-value pairs assigned to the device. This metadata + // is not interpreted or indexed by Cloud IoT Core. It can be used to add + // contextual information for the device. Keys must conform to the regular + // expression a-zA-Z+ and be less than 128 bytes in length. Values are + // free-form strings. Each value must be less than or equal to 32 KB in size. + // The total size of all keys and values must be less than 256 KB, and the + // maximum number of key-value pairs is 500. Metadata map[string]string `json:"metadata,omitempty"` - // Name: The resource path name. For example, - // `projects/p1/locations/us-central1/registries/registry0/devices/dev0` - // or - // `projects/p1/locations/us-central1/registries/registry0/devices/{num_i - // d}`. When `name` is populated as a response from the service, it - // always ends in the device numeric ID. + // `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or + // `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. + // When `name` is populated as a response from the service, it always ends in + // the device numeric ID. Name string `json:"name,omitempty"` - - // NumId: [Output only] A server-defined unique numeric ID for the - // device. This is a more compact way to identify devices, and it is - // globally unique. + // NumId: [Output only] A server-defined unique numeric ID for the device. This + // is a more compact way to identify devices, and it is globally unique. NumId uint64 `json:"numId,omitempty,string"` - - // State: [Output only] The state most recently received from the - // device. If no state has been reported, this field is not present. + // State: [Output only] The state most recently received from the device. If no + // state has been reported, this field is not present. State *DeviceState `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Blocked") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Blocked") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Blocked") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Blocked") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Device) MarshalJSON() ([]byte, error) { +func (s Device) MarshalJSON() ([]byte, error) { type NoMethod Device - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceConfig: The device configuration. Eventually delivered to -// devices. +// DeviceConfig: The device configuration. Eventually delivered to devices. type DeviceConfig struct { // BinaryData: The device configuration data. BinaryData string `json:"binaryData,omitempty"` - - // CloudUpdateTime: [Output only] The time at which this configuration - // version was updated in Cloud IoT Core. This timestamp is set by the - // server. + // CloudUpdateTime: [Output only] The time at which this configuration version + // was updated in Cloud IoT Core. This timestamp is set by the server. CloudUpdateTime string `json:"cloudUpdateTime,omitempty"` - - // DeviceAckTime: [Output only] The time at which Cloud IoT Core - // received the acknowledgment from the device, indicating that the - // device has received this configuration version. If this field is not - // present, the device has not yet acknowledged that it received this - // version. Note that when the config was sent to the device, many - // config versions may have been available in Cloud IoT Core while the - // device was disconnected, and on connection, only the latest version - // is sent to the device. Some versions may never be sent to the device, - // and therefore are never acknowledged. This timestamp is set by Cloud + // DeviceAckTime: [Output only] The time at which Cloud IoT Core received the + // acknowledgment from the device, indicating that the device has received this + // configuration version. If this field is not present, the device has not yet + // acknowledged that it received this version. Note that when the config was + // sent to the device, many config versions may have been available in Cloud + // IoT Core while the device was disconnected, and on connection, only the + // latest version is sent to the device. Some versions may never be sent to the + // device, and therefore are never acknowledged. This timestamp is set by Cloud // IoT Core. DeviceAckTime string `json:"deviceAckTime,omitempty"` - - // Version: [Output only] The version of this update. The version number - // is assigned by the server, and is always greater than 0 after device - // creation. The version must be 0 on the `CreateDevice` request if a - // `config` is specified; the response of `CreateDevice` will always - // have a value of 1. + // Version: [Output only] The version of this update. The version number is + // assigned by the server, and is always greater than 0 after device creation. + // The version must be 0 on the `CreateDevice` request if a `config` is + // specified; the response of `CreateDevice` will always have a value of 1. Version int64 `json:"version,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BinaryData") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BinaryData") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BinaryData") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceConfig) MarshalJSON() ([]byte, error) { +func (s DeviceConfig) MarshalJSON() ([]byte, error) { type NoMethod DeviceConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceCredential: A server-stored device credential used for -// authentication. +// DeviceCredential: A server-stored device credential used for authentication. type DeviceCredential struct { // ExpirationTime: [Optional] The time at which this credential becomes - // invalid. This credential will be ignored for new client - // authentication requests after this timestamp; however, it will not be - // automatically deleted. + // invalid. This credential will be ignored for new client authentication + // requests after this timestamp; however, it will not be automatically + // deleted. ExpirationTime string `json:"expirationTime,omitempty"` - - // PublicKey: A public key used to verify the signature of JSON Web - // Tokens (JWTs). When adding a new device credential, either via device - // creation or via modifications, this public key credential may be - // required to be signed by one of the registry level certificates. More - // specifically, if the registry contains at least one certificate, any - // new device credential must be signed by one of the registry - // certificates. As a result, when the registry contains certificates, - // only X.509 certificates are accepted as device credentials. However, - // if the registry does not contain a certificate, self-signed - // certificates and public keys will be accepted. New device credentials - // must be different from every registry-level certificate. + // PublicKey: A public key used to verify the signature of JSON Web Tokens + // (JWTs). When adding a new device credential, either via device creation or + // via modifications, this public key credential may be required to be signed + // by one of the registry level certificates. More specifically, if the + // registry contains at least one certificate, any new device credential must + // be signed by one of the registry certificates. As a result, when the + // registry contains certificates, only X.509 certificates are accepted as + // device credentials. However, if the registry does not contain a certificate, + // self-signed certificates and public keys will be accepted. New device + // credentials must be different from every registry-level certificate. PublicKey *PublicKeyCredential `json:"publicKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpirationTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpirationTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExpirationTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceCredential) MarshalJSON() ([]byte, error) { +func (s DeviceCredential) MarshalJSON() ([]byte, error) { type NoMethod DeviceCredential - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeviceRegistry: A container for a group of devices. type DeviceRegistry struct { - // Credentials: The credentials used to verify the device credentials. - // No more than 10 credentials can be bound to a single registry at a - // time. The verification process occurs at the time of device creation - // or update. If this field is empty, no verification is performed. - // Otherwise, the credentials of a newly created device or added - // credentials of an updated device should be signed with one of these - // registry credentials. Note, however, that existing devices will never - // be affected by modifications to this list of credentials: after a - // device has been successfully created in a registry, it should be able - // to connect even if its registry credentials are revoked, deleted, or - // modified. + // Credentials: The credentials used to verify the device credentials. No more + // than 10 credentials can be bound to a single registry at a time. The + // verification process occurs at the time of device creation or update. If + // this field is empty, no verification is performed. Otherwise, the + // credentials of a newly created device or added credentials of an updated + // device should be signed with one of these registry credentials. Note, + // however, that existing devices will never be affected by modifications to + // this list of credentials: after a device has been successfully created in a + // registry, it should be able to connect even if its registry credentials are + // revoked, deleted, or modified. Credentials []*RegistryCredential `json:"credentials,omitempty"` - - // EventNotificationConfigs: The configuration for notification of - // telemetry events received from the device. All telemetry events that - // were successfully published by the device and acknowledged by Cloud - // IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple - // configurations match a message, only the first matching configuration - // is used. If you try to publish a device telemetry event using MQTT - // without specifying a Cloud Pub/Sub topic for the device's registry, - // the connection closes automatically. If you try to do so using an - // HTTP connection, an error is returned. Up to 10 configurations may be - // provided. + // EventNotificationConfigs: The configuration for notification of telemetry + // events received from the device. All telemetry events that were successfully + // published by the device and acknowledged by Cloud IoT Core are guaranteed to + // be delivered to Cloud Pub/Sub. If multiple configurations match a message, + // only the first matching configuration is used. If you try to publish a + // device telemetry event using MQTT without specifying a Cloud Pub/Sub topic + // for the device's registry, the connection closes automatically. If you try + // to do so using an HTTP connection, an error is returned. Up to 10 + // configurations may be provided. EventNotificationConfigs []*EventNotificationConfig `json:"eventNotificationConfigs,omitempty"` - - // HttpConfig: The DeviceService (HTTP) configuration for this device - // registry. + // HttpConfig: The DeviceService (HTTP) configuration for this device registry. HttpConfig *HttpConfig `json:"httpConfig,omitempty"` - - // Id: The identifier of this device registry. For example, - // `myRegistry`. + // Id: The identifier of this device registry. For example, `myRegistry`. Id string `json:"id,omitempty"` - - // LogLevel: **Beta Feature** The default logging verbosity for activity - // from devices in this registry. The verbosity level can be overridden - // by Device.log_level. + // LogLevel: **Beta Feature** The default logging verbosity for activity from + // devices in this registry. The verbosity level can be overridden by + // Device.log_level. // // Possible values: - // "LOG_LEVEL_UNSPECIFIED" - No logging specified. If not specified, - // logging will be disabled. + // "LOG_LEVEL_UNSPECIFIED" - No logging specified. If not specified, logging + // will be disabled. // "NONE" - Disables logging. // "ERROR" - Error events will be logged. - // "INFO" - Informational events will be logged, such as connections - // and disconnections. + // "INFO" - Informational events will be logged, such as connections and + // disconnections. // "DEBUG" - All events will be logged. LogLevel string `json:"logLevel,omitempty"` - // MqttConfig: The MQTT configuration for this device registry. MqttConfig *MqttConfig `json:"mqttConfig,omitempty"` - // Name: The resource path name. For example, - // `projects/example-project/locations/us-central1/registries/my-registry - // `. + // `projects/example-project/locations/us-central1/registries/my-registry`. Name string `json:"name,omitempty"` - - // StateNotificationConfig: The configuration for notification of new - // states received from the device. State updates are guaranteed to be - // stored in the state history, but notifications to Cloud Pub/Sub are - // not guaranteed. For example, if permissions are misconfigured or the - // specified topic doesn't exist, no notification will be published but - // the state will still be stored in Cloud IoT Core. + // StateNotificationConfig: The configuration for notification of new states + // received from the device. State updates are guaranteed to be stored in the + // state history, but notifications to Cloud Pub/Sub are not guaranteed. For + // example, if permissions are misconfigured or the specified topic doesn't + // exist, no notification will be published but the state will still be stored + // in Cloud IoT Core. StateNotificationConfig *StateNotificationConfig `json:"stateNotificationConfig,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Credentials") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Credentials") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Credentials") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceRegistry) MarshalJSON() ([]byte, error) { +func (s DeviceRegistry) MarshalJSON() ([]byte, error) { type NoMethod DeviceRegistry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeviceState: The device state, as reported by the device. type DeviceState struct { // BinaryData: The device state data. BinaryData string `json:"binaryData,omitempty"` - - // UpdateTime: [Output only] The time at which this state version was - // updated in Cloud IoT Core. + // UpdateTime: [Output only] The time at which this state version was updated + // in Cloud IoT Core. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "BinaryData") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BinaryData") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BinaryData") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceState) MarshalJSON() ([]byte, error) { +func (s DeviceState) MarshalJSON() ([]byte, error) { type NoMethod DeviceState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// EventNotificationConfig: The configuration for forwarding telemetry -// events. +// EventNotificationConfig: The configuration for forwarding telemetry events. type EventNotificationConfig struct { // PubsubTopicName: A Cloud Pub/Sub topic name. For example, // `projects/myProject/topics/deviceEvents`. PubsubTopicName string `json:"pubsubTopicName,omitempty"` - - // SubfolderMatches: If the subfolder name matches this string exactly, - // this configuration will be used. The string must not include the - // leading '/' character. If empty, all strings are matched. This field - // is used only for telemetry events; subfolders are not supported for - // state changes. + // SubfolderMatches: If the subfolder name matches this string exactly, this + // configuration will be used. The string must not include the leading '/' + // character. If empty, all strings are matched. This field is used only for + // telemetry events; subfolders are not supported for state changes. SubfolderMatches string `json:"subfolderMatches,omitempty"` - // ForceSendFields is a list of field names (e.g. "PubsubTopicName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PubsubTopicName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PubsubTopicName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventNotificationConfig) MarshalJSON() ([]byte, error) { +func (s EventNotificationConfig) MarshalJSON() ([]byte, error) { type NoMethod EventNotificationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec. Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if // requestor is the document owner" expression: "document.owner == // request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GatewayConfig: Gateway-related configuration and state. type GatewayConfig struct { - // GatewayAuthMethod: Indicates how to authorize and/or authenticate - // devices to access the gateway. + // GatewayAuthMethod: Indicates how to authorize and/or authenticate devices to + // access the gateway. // // Possible values: - // "GATEWAY_AUTH_METHOD_UNSPECIFIED" - No authentication/authorization - // method specified. No devices are allowed to access the gateway. - // "ASSOCIATION_ONLY" - The device is authenticated through the - // gateway association only. Device credentials are ignored even if - // provided. - // "DEVICE_AUTH_TOKEN_ONLY" - The device is authenticated through its - // own credentials. Gateway association is not checked. - // "ASSOCIATION_AND_DEVICE_AUTH_TOKEN" - The device is authenticated - // through both device credentials and gateway association. The device - // must be bound to the gateway and must provide its own credentials. + // "GATEWAY_AUTH_METHOD_UNSPECIFIED" - No authentication/authorization method + // specified. No devices are allowed to access the gateway. + // "ASSOCIATION_ONLY" - The device is authenticated through the gateway + // association only. Device credentials are ignored even if provided. + // "DEVICE_AUTH_TOKEN_ONLY" - The device is authenticated through its own + // credentials. Gateway association is not checked. + // "ASSOCIATION_AND_DEVICE_AUTH_TOKEN" - The device is authenticated through + // both device credentials and gateway association. The device must be bound to + // the gateway and must provide its own credentials. GatewayAuthMethod string `json:"gatewayAuthMethod,omitempty"` - // GatewayType: Indicates whether the device is a gateway. // // Possible values: - // "GATEWAY_TYPE_UNSPECIFIED" - If unspecified, the device is - // considered a non-gateway device. + // "GATEWAY_TYPE_UNSPECIFIED" - If unspecified, the device is considered a + // non-gateway device. // "GATEWAY" - The device is a gateway. // "NON_GATEWAY" - The device is not a gateway. GatewayType string `json:"gatewayType,omitempty"` - // LastAccessedGatewayId: [Output only] The ID of the gateway the device // accessed most recently. LastAccessedGatewayId string `json:"lastAccessedGatewayId,omitempty"` - - // LastAccessedGatewayTime: [Output only] The most recent time at which - // the device accessed the gateway specified in `last_accessed_gateway`. + // LastAccessedGatewayTime: [Output only] The most recent time at which the + // device accessed the gateway specified in `last_accessed_gateway`. LastAccessedGatewayTime string `json:"lastAccessedGatewayTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GatewayAuthMethod") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "GatewayAuthMethod") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GatewayAuthMethod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GatewayAuthMethod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GatewayConfig) MarshalJSON() ([]byte, error) { +func (s GatewayConfig) MarshalJSON() ([]byte, error) { type NoMethod GatewayConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetIamPolicyRequest: Request message for `GetIamPolicy` method. type GetIamPolicyRequest struct { - // Options: OPTIONAL: A `GetPolicyOptions` object for specifying options - // to `GetIamPolicy`. + // Options: OPTIONAL: A `GetPolicyOptions` object for specifying options to + // `GetIamPolicy`. Options *GetPolicyOptions `json:"options,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Options") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Options") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Options") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Options") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s GetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod GetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetPolicyOptions: Encapsulates settings provided to GetIamPolicy. type GetPolicyOptions struct { - // RequestedPolicyVersion: Optional. The maximum policy version that - // will be used to format the policy. Valid values are 0, 1, and 3. - // Requests specifying an invalid value will be rejected. Requests for - // policies with any conditional role bindings must specify version 3. - // Policies with no conditional role bindings may specify any valid - // value or leave the field unset. The policy in the response might use - // the policy version that you specified, or it might use a lower policy - // version. For example, if you specify version 3, but the policy has no - // conditional role bindings, the response uses version 1. To learn - // which resources support conditions in their IAM policies, see the IAM - // documentation + // RequestedPolicyVersion: Optional. The maximum policy version that will be + // used to format the policy. Valid values are 0, 1, and 3. Requests specifying + // an invalid value will be rejected. Requests for policies with any + // conditional role bindings must specify version 3. Policies with no + // conditional role bindings may specify any valid value or leave the field + // unset. The policy in the response might use the policy version that you + // specified, or it might use a lower policy version. For example, if you + // specify version 3, but the policy has no conditional role bindings, the + // response uses version 1. To learn which resources support conditions in + // their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "RequestedPolicyVersion") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestedPolicyVersion") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "RequestedPolicyVersion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { +func (s GetPolicyOptions) MarshalJSON() ([]byte, error) { type NoMethod GetPolicyOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HttpConfig: The configuration of the HTTP bridge for a device -// registry. +// HttpConfig: The configuration of the HTTP bridge for a device registry. type HttpConfig struct { - // HttpEnabledState: If enabled, allows devices to use DeviceService via - // the HTTP protocol. Otherwise, any requests to DeviceService will fail - // for this registry. + // HttpEnabledState: If enabled, allows devices to use DeviceService via the + // HTTP protocol. Otherwise, any requests to DeviceService will fail for this + // registry. // // Possible values: - // "HTTP_STATE_UNSPECIFIED" - No HTTP state specified. If not - // specified, DeviceService will be enabled by default. - // "HTTP_ENABLED" - Enables DeviceService (HTTP) service for the - // registry. - // "HTTP_DISABLED" - Disables DeviceService (HTTP) service for the - // registry. + // "HTTP_STATE_UNSPECIFIED" - No HTTP state specified. If not specified, + // DeviceService will be enabled by default. + // "HTTP_ENABLED" - Enables DeviceService (HTTP) service for the registry. + // "HTTP_DISABLED" - Disables DeviceService (HTTP) service for the registry. HttpEnabledState string `json:"httpEnabledState,omitempty"` - // ForceSendFields is a list of field names (e.g. "HttpEnabledState") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HttpEnabledState") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "HttpEnabledState") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HttpConfig) MarshalJSON() ([]byte, error) { +func (s HttpConfig) MarshalJSON() ([]byte, error) { type NoMethod HttpConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListDeviceConfigVersionsResponse: Response for -// `ListDeviceConfigVersions`. +// ListDeviceConfigVersionsResponse: Response for `ListDeviceConfigVersions`. type ListDeviceConfigVersionsResponse struct { - // DeviceConfigs: The device configuration for the last few versions. - // Versions are listed in decreasing order, starting from the most - // recent one. + // DeviceConfigs: The device configuration for the last few versions. Versions + // are listed in decreasing order, starting from the most recent one. DeviceConfigs []*DeviceConfig `json:"deviceConfigs,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DeviceConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListDeviceConfigVersionsResponse) MarshalJSON() ([]byte, error) { +func (s ListDeviceConfigVersionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListDeviceConfigVersionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListDeviceRegistriesResponse: Response for `ListDeviceRegistries`. type ListDeviceRegistriesResponse struct { // DeviceRegistries: The registries that matched the query. DeviceRegistries []*DeviceRegistry `json:"deviceRegistries,omitempty"` - - // NextPageToken: If not empty, indicates that there may be more - // registries that match the request; this value should be passed in a - // new `ListDeviceRegistriesRequest`. + // NextPageToken: If not empty, indicates that there may be more registries + // that match the request; this value should be passed in a new + // `ListDeviceRegistriesRequest`. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DeviceRegistries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceRegistries") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DeviceRegistries") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListDeviceRegistriesResponse) MarshalJSON() ([]byte, error) { +func (s ListDeviceRegistriesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListDeviceRegistriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListDeviceStatesResponse: Response for `ListDeviceStates`. type ListDeviceStatesResponse struct { - // DeviceStates: The last few device states. States are listed in - // descending order of server update time, starting from the most recent - // one. + // DeviceStates: The last few device states. States are listed in descending + // order of server update time, starting from the most recent one. DeviceStates []*DeviceState `json:"deviceStates,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DeviceStates") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceStates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceStates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListDeviceStatesResponse) MarshalJSON() ([]byte, error) { +func (s ListDeviceStatesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListDeviceStatesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListDevicesResponse: Response for `ListDevices`. type ListDevicesResponse struct { // Devices: The devices that match the request. Devices []*Device `json:"devices,omitempty"` - - // NextPageToken: If not empty, indicates that there may be more devices - // that match the request; this value should be passed in a new + // NextPageToken: If not empty, indicates that there may be more devices that + // match the request; this value should be passed in a new // `ListDevicesRequest`. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Devices") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Devices") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Devices") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Devices") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListDevicesResponse) MarshalJSON() ([]byte, error) { +func (s ListDevicesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListDevicesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ModifyCloudToDeviceConfigRequest: Request for -// `ModifyCloudToDeviceConfig`. +// ModifyCloudToDeviceConfigRequest: Request for `ModifyCloudToDeviceConfig`. type ModifyCloudToDeviceConfigRequest struct { // BinaryData: Required. The configuration data for the device. BinaryData string `json:"binaryData,omitempty"` - - // VersionToUpdate: The version number to update. If this value is zero, - // it will not check the version number of the server and will always - // update the current version; otherwise, this update will fail if the - // version number found on the server does not match this version - // number. This is used to support multiple simultaneous updates without - // losing data. + // VersionToUpdate: The version number to update. If this value is zero, it + // will not check the version number of the server and will always update the + // current version; otherwise, this update will fail if the version number + // found on the server does not match this version number. This is used to + // support multiple simultaneous updates without losing data. VersionToUpdate int64 `json:"versionToUpdate,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "BinaryData") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BinaryData") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BinaryData") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ModifyCloudToDeviceConfigRequest) MarshalJSON() ([]byte, error) { +func (s ModifyCloudToDeviceConfigRequest) MarshalJSON() ([]byte, error) { type NoMethod ModifyCloudToDeviceConfigRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MqttConfig: The configuration of MQTT for a device registry. type MqttConfig struct { - // MqttEnabledState: If enabled, allows connections using the MQTT - // protocol. Otherwise, MQTT connections to this registry will fail. + // MqttEnabledState: If enabled, allows connections using the MQTT protocol. + // Otherwise, MQTT connections to this registry will fail. // // Possible values: - // "MQTT_STATE_UNSPECIFIED" - No MQTT state specified. If not - // specified, MQTT will be enabled by default. + // "MQTT_STATE_UNSPECIFIED" - No MQTT state specified. If not specified, MQTT + // will be enabled by default. // "MQTT_ENABLED" - Enables a MQTT connection. // "MQTT_DISABLED" - Disables a MQTT connection. MqttEnabledState string `json:"mqttEnabledState,omitempty"` - // ForceSendFields is a list of field names (e.g. "MqttEnabledState") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MqttEnabledState") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MqttEnabledState") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MqttConfig) MarshalJSON() ([]byte, error) { +func (s MqttConfig) MarshalJSON() ([]byte, error) { type NoMethod MqttConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members`, or -// principals, to a single `role`. Principals can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. For some types of -// Google Cloud resources, a `binding` can also specify a `condition`, -// which is a logical expression that allows access to a resource only -// if the expression evaluates to `true`. A condition can add -// constraints based on attributes of the request, the resource, or -// both. To learn which resources support conditions in their IAM -// policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which specifies +// access controls for Google Cloud resources. A `Policy` is a collection of +// `bindings`. A `binding` binds one or more `members`, or principals, to a +// single `role`. Principals can be user accounts, service accounts, Google +// groups, and domains (such as G Suite). A `role` is a named list of +// permissions; each `role` can be an IAM predefined role or a user-created +// custom role. For some types of Google Cloud resources, a `binding` can also +// specify a `condition`, which is a logical expression that allows access to a +// resource only if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or both. To +// learn which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type Policy struct { - // Bindings: Associates a list of `members`, or principals, with a - // `role`. Optionally, may specify a `condition` that determines how and - // when the `bindings` are applied. Each of the `bindings` must contain - // at least one principal. The `bindings` in a `Policy` can refer to up - // to 1,500 principals; up to 250 of these principals can be Google - // groups. Each occurrence of a principal counts towards these limits. - // For example, if the `bindings` grant 50 different roles to - // `user:alice@example.com`, and not to any other principal, then you - // can add another 1,450 principals to the `bindings` in the `Policy`. + // Bindings: Associates a list of `members`, or principals, with a `role`. + // Optionally, may specify a `condition` that determines how and when the + // `bindings` are applied. Each of the `bindings` must contain at least one + // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; + // up to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the `bindings` grant + // 50 different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. Bindings []*Binding `json:"bindings,omitempty"` - - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the IAM - // documentation + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Bindings") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PublicKeyCertificate: A public key certificate format and data. type PublicKeyCertificate struct { // Certificate: The certificate data. Certificate string `json:"certificate,omitempty"` - // Format: The certificate format. // // Possible values: - // "UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT" - The format has not - // been specified. This is an invalid default value and must not be - // used. + // "UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT" - The format has not been + // specified. This is an invalid default value and must not be used. // "X509_CERTIFICATE_PEM" - An X.509v3 certificate - // ([RFC5280](https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, - // and wrapped by `-----BEGIN CERTIFICATE-----` and `-----END - // CERTIFICATE-----`. + // ([RFC5280](https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and + // wrapped by `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`. Format string `json:"format,omitempty"` - - // X509Details: [Output only] The certificate details. Used only for - // X.509 certificates. + // X509Details: [Output only] The certificate details. Used only for X.509 + // certificates. X509Details *X509CertificateDetails `json:"x509Details,omitempty"` - // ForceSendFields is a list of field names (e.g. "Certificate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Certificate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Certificate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PublicKeyCertificate) MarshalJSON() ([]byte, error) { +func (s PublicKeyCertificate) MarshalJSON() ([]byte, error) { type NoMethod PublicKeyCertificate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PublicKeyCredential: A public key format and data. @@ -1372,392 +1156,304 @@ type PublicKeyCredential struct { // Format: The format of the key. // // Possible values: - // "UNSPECIFIED_PUBLIC_KEY_FORMAT" - The format has not been - // specified. This is an invalid default value and must not be used. + // "UNSPECIFIED_PUBLIC_KEY_FORMAT" - The format has not been specified. This + // is an invalid default value and must not be used. // "RSA_PEM" - An RSA public key encoded in base64, and wrapped by - // `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can - // be used to verify `RS256` signatures in JWT tokens ([RFC7518]( + // `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be + // used to verify `RS256` signatures in JWT tokens ([RFC7518]( // https://www.ietf.org/rfc/rfc7518.txt)). // "RSA_X509_PEM" - As RSA_PEM, but wrapped in an X.509v3 certificate - // ([RFC5280]( https://www.ietf.org/rfc/rfc5280.txt)), encoded in - // base64, and wrapped by `-----BEGIN CERTIFICATE-----` and `-----END - // CERTIFICATE-----`. - // "ES256_PEM" - Public key for the ECDSA algorithm using P-256 and - // SHA-256, encoded in base64, and wrapped by `-----BEGIN PUBLIC - // KEY-----` and `-----END PUBLIC KEY-----`. This can be used to verify - // JWT tokens with the `ES256` algorithm - // ([RFC7518](https://www.ietf.org/rfc/rfc7518.txt)). This curve is - // defined in [OpenSSL](https://www.openssl.org/) as the `prime256v1` - // curve. - // "ES256_X509_PEM" - As ES256_PEM, but wrapped in an X.509v3 - // certificate ([RFC5280]( https://www.ietf.org/rfc/rfc5280.txt)), - // encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and - // `-----END CERTIFICATE-----`. + // ([RFC5280]( https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and + // wrapped by `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`. + // "ES256_PEM" - Public key for the ECDSA algorithm using P-256 and SHA-256, + // encoded in base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END + // PUBLIC KEY-----`. This can be used to verify JWT tokens with the `ES256` + // algorithm ([RFC7518](https://www.ietf.org/rfc/rfc7518.txt)). This curve is + // defined in [OpenSSL](https://www.openssl.org/) as the `prime256v1` curve. + // "ES256_X509_PEM" - As ES256_PEM, but wrapped in an X.509v3 certificate + // ([RFC5280]( https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and + // wrapped by `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`. Format string `json:"format,omitempty"` - // Key: The key data. Key string `json:"key,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Format") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Format") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Format") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PublicKeyCredential) MarshalJSON() ([]byte, error) { +func (s PublicKeyCredential) MarshalJSON() ([]byte, error) { type NoMethod PublicKeyCredential - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RegistryCredential: A server-stored registry credential used to -// validate device credentials. +// RegistryCredential: A server-stored registry credential used to validate +// device credentials. type RegistryCredential struct { - // PublicKeyCertificate: A public key certificate used to verify the - // device credentials. + // PublicKeyCertificate: A public key certificate used to verify the device + // credentials. PublicKeyCertificate *PublicKeyCertificate `json:"publicKeyCertificate,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PublicKeyCertificate") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "PublicKeyCertificate") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PublicKeyCertificate") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PublicKeyCertificate") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegistryCredential) MarshalJSON() ([]byte, error) { +func (s RegistryCredential) MarshalJSON() ([]byte, error) { type NoMethod RegistryCredential - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SendCommandToDeviceRequest: Request for `SendCommandToDevice`. type SendCommandToDeviceRequest struct { // BinaryData: Required. The command data to send to the device. BinaryData string `json:"binaryData,omitempty"` - - // Subfolder: Optional subfolder for the command. If empty, the command - // will be delivered to the /devices/{device-id}/commands topic, - // otherwise it will be delivered to the - // /devices/{device-id}/commands/{subfolder} topic. Multi-level - // subfolders are allowed. This field must not have more than 256 - // characters, and must not contain any MQTT wildcards ("+" or "#") or - // null characters. + // Subfolder: Optional subfolder for the command. If empty, the command will be + // delivered to the /devices/{device-id}/commands topic, otherwise it will be + // delivered to the /devices/{device-id}/commands/{subfolder} topic. + // Multi-level subfolders are allowed. This field must not have more than 256 + // characters, and must not contain any MQTT wildcards ("+" or "#") or null + // characters. Subfolder string `json:"subfolder,omitempty"` - // ForceSendFields is a list of field names (e.g. "BinaryData") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BinaryData") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BinaryData") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SendCommandToDeviceRequest) MarshalJSON() ([]byte, error) { +func (s SendCommandToDeviceRequest) MarshalJSON() ([]byte, error) { type NoMethod SendCommandToDeviceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SendCommandToDeviceResponse: Response for `SendCommandToDevice`. type SendCommandToDeviceResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Google Cloud services - // (such as Projects) might reject them. + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Google Cloud services (such as Projects) might reject + // them. Policy *Policy `json:"policy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StateNotificationConfig: The configuration for notification of new -// states received from the device. +// StateNotificationConfig: The configuration for notification of new states +// received from the device. type StateNotificationConfig struct { // PubsubTopicName: A Cloud Pub/Sub topic name. For example, // `projects/myProject/topics/deviceEvents`. PubsubTopicName string `json:"pubsubTopicName,omitempty"` - // ForceSendFields is a list of field names (e.g. "PubsubTopicName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PubsubTopicName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PubsubTopicName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StateNotificationConfig) MarshalJSON() ([]byte, error) { +func (s StateNotificationConfig) MarshalJSON() ([]byte, error) { type NoMethod StateNotificationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. +// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as `*` or `storage.*`) are not - // allowed. For more information see IAM Overview + // Permissions: The set of permissions to check for the `resource`. Permissions + // with wildcards (such as `*` or `storage.*`) are not allowed. For more + // information see IAM Overview // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsResponse: Response message for `TestIamPermissions` // method. type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is allowed. + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UnbindDeviceFromGatewayRequest: Request for -// `UnbindDeviceFromGateway`. +// UnbindDeviceFromGatewayRequest: Request for `UnbindDeviceFromGateway`. type UnbindDeviceFromGatewayRequest struct { - // DeviceId: Required. The device to disassociate from the specified - // gateway. The value of `device_id` can be either the device numeric ID - // or the user-defined device identifier. + // DeviceId: Required. The device to disassociate from the specified gateway. + // The value of `device_id` can be either the device numeric ID or the + // user-defined device identifier. DeviceId string `json:"deviceId,omitempty"` - - // GatewayId: Required. The value of `gateway_id` can be either the - // device numeric ID or the user-defined device identifier. + // GatewayId: Required. The value of `gateway_id` can be either the device + // numeric ID or the user-defined device identifier. GatewayId string `json:"gatewayId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnbindDeviceFromGatewayRequest) MarshalJSON() ([]byte, error) { +func (s UnbindDeviceFromGatewayRequest) MarshalJSON() ([]byte, error) { type NoMethod UnbindDeviceFromGatewayRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UnbindDeviceFromGatewayResponse: Response for -// `UnbindDeviceFromGateway`. +// UnbindDeviceFromGatewayResponse: Response for `UnbindDeviceFromGateway`. type UnbindDeviceFromGatewayResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// X509CertificateDetails: Details of an X.509 certificate. For -// informational purposes only. +// X509CertificateDetails: Details of an X.509 certificate. For informational +// purposes only. type X509CertificateDetails struct { // ExpiryTime: The time the certificate becomes invalid. ExpiryTime string `json:"expiryTime,omitempty"` - // Issuer: The entity that signed the certificate. Issuer string `json:"issuer,omitempty"` - // PublicKeyType: The type of public key in the certificate. PublicKeyType string `json:"publicKeyType,omitempty"` - // SignatureAlgorithm: The algorithm used to sign the certificate. SignatureAlgorithm string `json:"signatureAlgorithm,omitempty"` - // StartTime: The time the certificate becomes valid. StartTime string `json:"startTime,omitempty"` - // Subject: The entity the certificate and public key belong to. Subject string `json:"subject,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpiryTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpiryTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExpiryTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *X509CertificateDetails) MarshalJSON() ([]byte, error) { +func (s X509CertificateDetails) MarshalJSON() ([]byte, error) { type NoMethod X509CertificateDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "cloudiot.projects.locations.registries.bindDeviceToGateway": - type ProjectsLocationsRegistriesBindDeviceToGatewayCall struct { s *Service parent string @@ -1770,8 +1466,7 @@ type ProjectsLocationsRegistriesBindDeviceToGatewayCall struct { // BindDeviceToGateway: Associates the device with the gateway. // // - parent: The name of the registry. For example, -// `projects/example-project/locations/us-central1/registries/my-regist -// ry`. +// `projects/example-project/locations/us-central1/registries/my-registry`. func (r *ProjectsLocationsRegistriesService) BindDeviceToGateway(parent string, binddevicetogatewayrequest *BindDeviceToGatewayRequest) *ProjectsLocationsRegistriesBindDeviceToGatewayCall { c := &ProjectsLocationsRegistriesBindDeviceToGatewayCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1780,23 +1475,21 @@ func (r *ProjectsLocationsRegistriesService) BindDeviceToGateway(parent string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesBindDeviceToGatewayCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesBindDeviceToGatewayCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesBindDeviceToGatewayCall) Context(ctx context.Context) *ProjectsLocationsRegistriesBindDeviceToGatewayCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesBindDeviceToGatewayCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1805,18 +1498,12 @@ func (c *ProjectsLocationsRegistriesBindDeviceToGatewayCall) Header() http.Heade } func (c *ProjectsLocationsRegistriesBindDeviceToGatewayCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.binddevicetogatewayrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:bindDeviceToGateway") @@ -1829,16 +1516,15 @@ func (c *ProjectsLocationsRegistriesBindDeviceToGatewayCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.bindDeviceToGateway" call. -// Exactly one of *BindDeviceToGatewayResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *BindDeviceToGatewayResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *BindDeviceToGatewayResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesBindDeviceToGatewayCall) Do(opts ...googleapi.CallOption) (*BindDeviceToGatewayResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1869,39 +1555,7 @@ func (c *ProjectsLocationsRegistriesBindDeviceToGatewayCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Associates the device with the gateway.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}:bindDeviceToGateway", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.bindDeviceToGateway", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The name of the registry. For example, `projects/example-project/locations/us-central1/registries/my-registry`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:bindDeviceToGateway", - // "request": { - // "$ref": "BindDeviceToGatewayRequest" - // }, - // "response": { - // "$ref": "BindDeviceToGatewayResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.create": +} type ProjectsLocationsRegistriesCreateCall struct { s *Service @@ -1914,9 +1568,8 @@ type ProjectsLocationsRegistriesCreateCall struct { // Create: Creates a device registry that contains devices. // -// - parent: The project and cloud region where this device registry -// must be created. For example, -// `projects/example-project/locations/us-central1`. +// - parent: The project and cloud region where this device registry must be +// created. For example, `projects/example-project/locations/us-central1`. func (r *ProjectsLocationsRegistriesService) Create(parent string, deviceregistry *DeviceRegistry) *ProjectsLocationsRegistriesCreateCall { c := &ProjectsLocationsRegistriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1925,23 +1578,21 @@ func (r *ProjectsLocationsRegistriesService) Create(parent string, deviceregistr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesCreateCall) Context(ctx context.Context) *ProjectsLocationsRegistriesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1950,18 +1601,12 @@ func (c *ProjectsLocationsRegistriesCreateCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.deviceregistry) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/registries") @@ -1974,16 +1619,14 @@ func (c *ProjectsLocationsRegistriesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.create" call. -// Exactly one of *DeviceRegistry or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DeviceRegistry.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DeviceRegistry.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesCreateCall) Do(opts ...googleapi.CallOption) (*DeviceRegistry, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2014,39 +1657,7 @@ func (c *ProjectsLocationsRegistriesCreateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates a device registry that contains devices.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The project and cloud region where this device registry must be created. For example, `projects/example-project/locations/us-central1`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/registries", - // "request": { - // "$ref": "DeviceRegistry" - // }, - // "response": { - // "$ref": "DeviceRegistry" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.delete": +} type ProjectsLocationsRegistriesDeleteCall struct { s *Service @@ -2059,8 +1670,7 @@ type ProjectsLocationsRegistriesDeleteCall struct { // Delete: Deletes a device registry configuration. // // - name: The name of the device registry. For example, -// `projects/example-project/locations/us-central1/registries/my-regist -// ry`. +// `projects/example-project/locations/us-central1/registries/my-registry`. func (r *ProjectsLocationsRegistriesService) Delete(name string) *ProjectsLocationsRegistriesDeleteCall { c := &ProjectsLocationsRegistriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2068,23 +1678,21 @@ func (r *ProjectsLocationsRegistriesService) Delete(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2093,12 +1701,7 @@ func (c *ProjectsLocationsRegistriesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2112,16 +1715,14 @@ func (c *ProjectsLocationsRegistriesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2152,36 +1753,7 @@ func (c *ProjectsLocationsRegistriesDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Deletes a device registry configuration.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}", - // "httpMethod": "DELETE", - // "id": "cloudiot.projects.locations.registries.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the device registry. For example, `projects/example-project/locations/us-central1/registries/my-registry`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.get": +} type ProjectsLocationsRegistriesGetCall struct { s *Service @@ -2195,8 +1767,7 @@ type ProjectsLocationsRegistriesGetCall struct { // Get: Gets a device registry configuration. // // - name: The name of the device registry. For example, -// `projects/example-project/locations/us-central1/registries/my-regist -// ry`. +// `projects/example-project/locations/us-central1/registries/my-registry`. func (r *ProjectsLocationsRegistriesService) Get(name string) *ProjectsLocationsRegistriesGetCall { c := &ProjectsLocationsRegistriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2204,33 +1775,29 @@ func (r *ProjectsLocationsRegistriesService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsRegistriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRegistriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesGetCall) Context(ctx context.Context) *ProjectsLocationsRegistriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2239,12 +1806,7 @@ func (c *ProjectsLocationsRegistriesGetCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2261,16 +1823,14 @@ func (c *ProjectsLocationsRegistriesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.get" call. -// Exactly one of *DeviceRegistry or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DeviceRegistry.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DeviceRegistry.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesGetCall) Do(opts ...googleapi.CallOption) (*DeviceRegistry, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2301,36 +1861,7 @@ func (c *ProjectsLocationsRegistriesGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets a device registry configuration.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}", - // "httpMethod": "GET", - // "id": "cloudiot.projects.locations.registries.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the device registry. For example, `projects/example-project/locations/us-central1/registries/my-registry`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "DeviceRegistry" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.getIamPolicy": +} type ProjectsLocationsRegistriesGetIamPolicyCall struct { s *Service @@ -2341,14 +1872,12 @@ type ProjectsLocationsRegistriesGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. func (r *ProjectsLocationsRegistriesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsRegistriesGetIamPolicyCall { c := &ProjectsLocationsRegistriesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2357,23 +1886,21 @@ func (r *ProjectsLocationsRegistriesService) GetIamPolicy(resource string, getia } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRegistriesGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2382,18 +1909,12 @@ func (c *ProjectsLocationsRegistriesGetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") @@ -2406,16 +1927,14 @@ func (c *ProjectsLocationsRegistriesGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2446,39 +1965,7 @@ func (c *ProjectsLocationsRegistriesGetIamPolicyCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}:getIamPolicy", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:getIamPolicy", - // "request": { - // "$ref": "GetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.list": +} type ProjectsLocationsRegistriesListCall struct { s *Service @@ -2499,53 +1986,49 @@ func (r *ProjectsLocationsRegistriesService) List(parent string) *ProjectsLocati return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of registries to return in the response. If this value is zero, the -// service will select a default size. A call may return fewer objects -// than requested. A non-empty `next_page_token` in the response -// indicates that more data is available. +// PageSize sets the optional parameter "pageSize": The maximum number of +// registries to return in the response. If this value is zero, the service +// will select a default size. A call may return fewer objects than requested. +// A non-empty `next_page_token` in the response indicates that more data is +// available. func (c *ProjectsLocationsRegistriesListCall) PageSize(pageSize int64) *ProjectsLocationsRegistriesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The value returned -// by the last `ListDeviceRegistriesResponse`; indicates that this is a -// continuation of a prior `ListDeviceRegistries` call and the system -// should return the next page of data. +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListDeviceRegistriesResponse`; indicates that this is a continuation +// of a prior `ListDeviceRegistries` call and the system should return the next +// page of data. func (c *ProjectsLocationsRegistriesListCall) PageToken(pageToken string) *ProjectsLocationsRegistriesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsRegistriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRegistriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesListCall) Context(ctx context.Context) *ProjectsLocationsRegistriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2554,12 +2037,7 @@ func (c *ProjectsLocationsRegistriesListCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2576,16 +2054,15 @@ func (c *ProjectsLocationsRegistriesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.list" call. -// Exactly one of *ListDeviceRegistriesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListDeviceRegistriesResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListDeviceRegistriesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesListCall) Do(opts ...googleapi.CallOption) (*ListDeviceRegistriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2616,44 +2093,6 @@ func (c *ProjectsLocationsRegistriesListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists device registries.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries", - // "httpMethod": "GET", - // "id": "cloudiot.projects.locations.registries.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of registries to return in the response. If this value is zero, the service will select a default size. A call may return fewer objects than requested. A non-empty `next_page_token` in the response indicates that more data is available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value returned by the last `ListDeviceRegistriesResponse`; indicates that this is a continuation of a prior `ListDeviceRegistries` call and the system should return the next page of data.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The project and cloud region path. For example, `projects/example-project/locations/us-central1`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/registries", - // "response": { - // "$ref": "ListDeviceRegistriesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - } // Pages invokes f for each page of results. @@ -2661,7 +2100,7 @@ func (c *ProjectsLocationsRegistriesListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsRegistriesListCall) Pages(ctx context.Context, f func(*ListDeviceRegistriesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2677,8 +2116,6 @@ func (c *ProjectsLocationsRegistriesListCall) Pages(ctx context.Context, f func( } } -// method id "cloudiot.projects.locations.registries.patch": - type ProjectsLocationsRegistriesPatchCall struct { s *Service name string @@ -2691,8 +2128,7 @@ type ProjectsLocationsRegistriesPatchCall struct { // Patch: Updates a device registry configuration. // // - name: The resource path name. For example, -// `projects/example-project/locations/us-central1/registries/my-regist -// ry`. +// `projects/example-project/locations/us-central1/registries/my-registry`. func (r *ProjectsLocationsRegistriesService) Patch(name string, deviceregistry *DeviceRegistry) *ProjectsLocationsRegistriesPatchCall { c := &ProjectsLocationsRegistriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2700,35 +2136,32 @@ func (r *ProjectsLocationsRegistriesService) Patch(name string, deviceregistry * return c } -// UpdateMask sets the optional parameter "updateMask": Required. Only -// updates the `device_registry` fields indicated by this mask. The -// field mask must not be empty, and it must not contain fields that are -// immutable or only set by the server. Mutable top-level fields: -// `event_notification_config`, `http_config`, `mqtt_config`, and -// `state_notification_config`. +// UpdateMask sets the optional parameter "updateMask": Required. Only updates +// the `device_registry` fields indicated by this mask. The field mask must not +// be empty, and it must not contain fields that are immutable or only set by +// the server. Mutable top-level fields: `event_notification_config`, +// `http_config`, `mqtt_config`, and `state_notification_config`. func (c *ProjectsLocationsRegistriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRegistriesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesPatchCall) Context(ctx context.Context) *ProjectsLocationsRegistriesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2737,18 +2170,12 @@ func (c *ProjectsLocationsRegistriesPatchCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.deviceregistry) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -2761,16 +2188,14 @@ func (c *ProjectsLocationsRegistriesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.patch" call. -// Exactly one of *DeviceRegistry or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DeviceRegistry.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DeviceRegistry.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesPatchCall) Do(opts ...googleapi.CallOption) (*DeviceRegistry, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2801,45 +2226,7 @@ func (c *ProjectsLocationsRegistriesPatchCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Updates a device registry configuration.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}", - // "httpMethod": "PATCH", - // "id": "cloudiot.projects.locations.registries.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource path name. For example, `projects/example-project/locations/us-central1/registries/my-registry`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Only updates the `device_registry` fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: `event_notification_config`, `http_config`, `mqtt_config`, and `state_notification_config`.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "DeviceRegistry" - // }, - // "response": { - // "$ref": "DeviceRegistry" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.setIamPolicy": +} type ProjectsLocationsRegistriesSetIamPolicyCall struct { s *Service @@ -2850,13 +2237,12 @@ type ProjectsLocationsRegistriesSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. func (r *ProjectsLocationsRegistriesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsRegistriesSetIamPolicyCall { c := &ProjectsLocationsRegistriesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2865,23 +2251,21 @@ func (r *ProjectsLocationsRegistriesService) SetIamPolicy(resource string, setia } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRegistriesSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2890,18 +2274,12 @@ func (c *ProjectsLocationsRegistriesSetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") @@ -2914,16 +2292,14 @@ func (c *ProjectsLocationsRegistriesSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2954,39 +2330,7 @@ func (c *ProjectsLocationsRegistriesSetIamPolicyCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.testIamPermissions": +} type ProjectsLocationsRegistriesTestIamPermissionsCall struct { s *Service @@ -2997,14 +2341,14 @@ type ProjectsLocationsRegistriesTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a NOT_FOUND error. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. func (r *ProjectsLocationsRegistriesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsRegistriesTestIamPermissionsCall { c := &ProjectsLocationsRegistriesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -3013,23 +2357,21 @@ func (r *ProjectsLocationsRegistriesService) TestIamPermissions(resource string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsRegistriesTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3038,18 +2380,12 @@ func (c *ProjectsLocationsRegistriesTestIamPermissionsCall) Header() http.Header } func (c *ProjectsLocationsRegistriesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") @@ -3062,16 +2398,15 @@ func (c *ProjectsLocationsRegistriesTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3102,39 +2437,7 @@ func (c *ProjectsLocationsRegistriesTestIamPermissionsCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.unbindDeviceFromGateway": +} type ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall struct { s *Service @@ -3145,12 +2448,11 @@ type ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall struct { header_ http.Header } -// UnbindDeviceFromGateway: Deletes the association between the device -// and the gateway. +// UnbindDeviceFromGateway: Deletes the association between the device and the +// gateway. // // - parent: The name of the registry. For example, -// `projects/example-project/locations/us-central1/registries/my-regist -// ry`. +// `projects/example-project/locations/us-central1/registries/my-registry`. func (r *ProjectsLocationsRegistriesService) UnbindDeviceFromGateway(parent string, unbinddevicefromgatewayrequest *UnbindDeviceFromGatewayRequest) *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall { c := &ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3159,23 +2461,21 @@ func (r *ProjectsLocationsRegistriesService) UnbindDeviceFromGateway(parent stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall) Context(ctx context.Context) *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3184,18 +2484,12 @@ func (c *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall) Header() http.H } func (c *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.unbinddevicefromgatewayrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unbindDeviceFromGateway") @@ -3208,16 +2502,15 @@ func (c *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.unbindDeviceFromGateway" call. -// Exactly one of *UnbindDeviceFromGatewayResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UnbindDeviceFromGatewayResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UnbindDeviceFromGatewayResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall) Do(opts ...googleapi.CallOption) (*UnbindDeviceFromGatewayResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3248,39 +2541,7 @@ func (c *ProjectsLocationsRegistriesUnbindDeviceFromGatewayCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Deletes the association between the device and the gateway.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}:unbindDeviceFromGateway", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.unbindDeviceFromGateway", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The name of the registry. For example, `projects/example-project/locations/us-central1/registries/my-registry`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:unbindDeviceFromGateway", - // "request": { - // "$ref": "UnbindDeviceFromGatewayRequest" - // }, - // "response": { - // "$ref": "UnbindDeviceFromGatewayResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.devices.create": +} type ProjectsLocationsRegistriesDevicesCreateCall struct { s *Service @@ -3295,8 +2556,7 @@ type ProjectsLocationsRegistriesDevicesCreateCall struct { // // - parent: The name of the device registry where this device should be // created. For example, -// `projects/example-project/locations/us-central1/registries/my-regist -// ry`. +// `projects/example-project/locations/us-central1/registries/my-registry`. func (r *ProjectsLocationsRegistriesDevicesService) Create(parent string, device *Device) *ProjectsLocationsRegistriesDevicesCreateCall { c := &ProjectsLocationsRegistriesDevicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3305,23 +2565,21 @@ func (r *ProjectsLocationsRegistriesDevicesService) Create(parent string, device } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesDevicesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesDevicesCreateCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesDevicesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3330,18 +2588,12 @@ func (c *ProjectsLocationsRegistriesDevicesCreateCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesDevicesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.device) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/devices") @@ -3354,16 +2606,14 @@ func (c *ProjectsLocationsRegistriesDevicesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.devices.create" call. -// Exactly one of *Device or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Device.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Device.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesDevicesCreateCall) Do(opts ...googleapi.CallOption) (*Device, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3394,39 +2644,7 @@ func (c *ProjectsLocationsRegistriesDevicesCreateCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Creates a device in a device registry.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.devices.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The name of the device registry where this device should be created. For example, `projects/example-project/locations/us-central1/registries/my-registry`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/devices", - // "request": { - // "$ref": "Device" - // }, - // "response": { - // "$ref": "Device" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.devices.delete": +} type ProjectsLocationsRegistriesDevicesDeleteCall struct { s *Service @@ -3439,10 +2657,9 @@ type ProjectsLocationsRegistriesDevicesDeleteCall struct { // Delete: Deletes a device. // // - name: The name of the device. For example, -// `projects/p0/locations/us-central1/registries/registry0/devices/devi -// ce0` or -// `projects/p0/locations/us-central1/registries/registry0/devices/{num -// _id}`. +// `projects/p0/locations/us-central1/registries/registry0/devices/device0` +// or +// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. func (r *ProjectsLocationsRegistriesDevicesService) Delete(name string) *ProjectsLocationsRegistriesDevicesDeleteCall { c := &ProjectsLocationsRegistriesDevicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3450,23 +2667,21 @@ func (r *ProjectsLocationsRegistriesDevicesService) Delete(name string) *Project } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesDevicesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesDevicesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesDevicesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3475,12 +2690,7 @@ func (c *ProjectsLocationsRegistriesDevicesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3494,16 +2704,14 @@ func (c *ProjectsLocationsRegistriesDevicesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.devices.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3534,36 +2742,7 @@ func (c *ProjectsLocationsRegistriesDevicesDeleteCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Deletes a device.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices/{devicesId}", - // "httpMethod": "DELETE", - // "id": "cloudiot.projects.locations.registries.devices.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/devices/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.devices.get": +} type ProjectsLocationsRegistriesDevicesGetCall struct { s *Service @@ -3577,10 +2756,9 @@ type ProjectsLocationsRegistriesDevicesGetCall struct { // Get: Gets details about a device. // // - name: The name of the device. For example, -// `projects/p0/locations/us-central1/registries/registry0/devices/devi -// ce0` or -// `projects/p0/locations/us-central1/registries/registry0/devices/{num -// _id}`. +// `projects/p0/locations/us-central1/registries/registry0/devices/device0` +// or +// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. func (r *ProjectsLocationsRegistriesDevicesService) Get(name string) *ProjectsLocationsRegistriesDevicesGetCall { c := &ProjectsLocationsRegistriesDevicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3588,42 +2766,38 @@ func (r *ProjectsLocationsRegistriesDevicesService) Get(name string) *ProjectsLo } // FieldMask sets the optional parameter "fieldMask": The fields of the -// `Device` resource to be returned in the response. If the field mask -// is unset or empty, all fields are returned. Fields have to be -// provided in snake_case format, for example: `last_heartbeat_time`. +// `Device` resource to be returned in the response. If the field mask is unset +// or empty, all fields are returned. Fields have to be provided in snake_case +// format, for example: `last_heartbeat_time`. func (c *ProjectsLocationsRegistriesDevicesGetCall) FieldMask(fieldMask string) *ProjectsLocationsRegistriesDevicesGetCall { c.urlParams_.Set("fieldMask", fieldMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesDevicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsRegistriesDevicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRegistriesDevicesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesDevicesGetCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesDevicesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3632,12 +2806,7 @@ func (c *ProjectsLocationsRegistriesDevicesGetCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesDevicesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3654,16 +2823,14 @@ func (c *ProjectsLocationsRegistriesDevicesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.devices.get" call. -// Exactly one of *Device or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Device.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Device.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3694,42 +2861,7 @@ func (c *ProjectsLocationsRegistriesDevicesGetCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Gets details about a device.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices/{devicesId}", - // "httpMethod": "GET", - // "id": "cloudiot.projects.locations.registries.devices.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "fieldMask": { - // "description": "The fields of the `Device` resource to be returned in the response. If the field mask is unset or empty, all fields are returned. Fields have to be provided in snake_case format, for example: `last_heartbeat_time`.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/devices/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Device" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.devices.list": +} type ProjectsLocationsRegistriesDevicesListCall struct { s *Service @@ -3750,17 +2882,16 @@ func (r *ProjectsLocationsRegistriesDevicesService) List(parent string) *Project return c } -// DeviceIds sets the optional parameter "deviceIds": A list of device -// string IDs. For example, `['device0', 'device12']`. If empty, this -// field is ignored. Maximum IDs: 10,000 +// DeviceIds sets the optional parameter "deviceIds": A list of device string +// IDs. For example, `['device0', 'device12']`. If empty, this field is +// ignored. Maximum IDs: 10,000 func (c *ProjectsLocationsRegistriesDevicesListCall) DeviceIds(deviceIds ...string) *ProjectsLocationsRegistriesDevicesListCall { c.urlParams_.SetMulti("deviceIds", append([]string{}, deviceIds...)) return c } -// DeviceNumIds sets the optional parameter "deviceNumIds": A list of -// device numeric IDs. If empty, this field is ignored. Maximum IDs: -// 10,000. +// DeviceNumIds sets the optional parameter "deviceNumIds": A list of device +// numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000. func (c *ProjectsLocationsRegistriesDevicesListCall) DeviceNumIds(deviceNumIds ...uint64) *ProjectsLocationsRegistriesDevicesListCall { var deviceNumIds_ []string for _, v := range deviceNumIds { @@ -3772,46 +2903,45 @@ func (c *ProjectsLocationsRegistriesDevicesListCall) DeviceNumIds(deviceNumIds . // FieldMask sets the optional parameter "fieldMask": The fields of the // `Device` resource to be returned in the response. The fields `id` and -// `num_id` are always returned, along with any other fields specified -// in snake_case format, for example: `last_heartbeat_time`. +// `num_id` are always returned, along with any other fields specified in +// snake_case format, for example: `last_heartbeat_time`. func (c *ProjectsLocationsRegistriesDevicesListCall) FieldMask(fieldMask string) *ProjectsLocationsRegistriesDevicesListCall { c.urlParams_.Set("fieldMask", fieldMask) return c } // GatewayListOptionsAssociationsDeviceId sets the optional parameter -// "gatewayListOptions.associationsDeviceId": If set, returns only the -// gateways with which the specified device is associated. The device ID -// can be numeric (`num_id`) or the user-defined string (`id`). For -// example, if `456` is specified, returns only the gateways to which -// the device with `num_id` 456 is bound. +// "gatewayListOptions.associationsDeviceId": If set, returns only the gateways +// with which the specified device is associated. The device ID can be numeric +// (`num_id`) or the user-defined string (`id`). For example, if `456` is +// specified, returns only the gateways to which the device with `num_id` 456 +// is bound. func (c *ProjectsLocationsRegistriesDevicesListCall) GatewayListOptionsAssociationsDeviceId(gatewayListOptionsAssociationsDeviceId string) *ProjectsLocationsRegistriesDevicesListCall { c.urlParams_.Set("gatewayListOptions.associationsDeviceId", gatewayListOptionsAssociationsDeviceId) return c } // GatewayListOptionsAssociationsGatewayId sets the optional parameter -// "gatewayListOptions.associationsGatewayId": If set, only devices -// associated with the specified gateway are returned. The gateway ID -// can be numeric (`num_id`) or the user-defined string (`id`). For -// example, if `123` is specified, only devices bound to the gateway -// with `num_id` 123 are returned. +// "gatewayListOptions.associationsGatewayId": If set, only devices associated +// with the specified gateway are returned. The gateway ID can be numeric +// (`num_id`) or the user-defined string (`id`). For example, if `123` is +// specified, only devices bound to the gateway with `num_id` 123 are returned. func (c *ProjectsLocationsRegistriesDevicesListCall) GatewayListOptionsAssociationsGatewayId(gatewayListOptionsAssociationsGatewayId string) *ProjectsLocationsRegistriesDevicesListCall { c.urlParams_.Set("gatewayListOptions.associationsGatewayId", gatewayListOptionsAssociationsGatewayId) return c } // GatewayListOptionsGatewayType sets the optional parameter -// "gatewayListOptions.gatewayType": If `GATEWAY` is specified, only -// gateways are returned. If `NON_GATEWAY` is specified, only -// non-gateway devices are returned. If `GATEWAY_TYPE_UNSPECIFIED` is -// specified, all devices are returned. +// "gatewayListOptions.gatewayType": If `GATEWAY` is specified, only gateways +// are returned. If `NON_GATEWAY` is specified, only non-gateway devices are +// returned. If `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are +// returned. // // Possible values: // -// "GATEWAY_TYPE_UNSPECIFIED" - If unspecified, the device is +// "GATEWAY_TYPE_UNSPECIFIED" - If unspecified, the device is considered a // -// considered a non-gateway device. +// non-gateway device. // // "GATEWAY" - The device is a gateway. // "NON_GATEWAY" - The device is not a gateway. @@ -3820,53 +2950,48 @@ func (c *ProjectsLocationsRegistriesDevicesListCall) GatewayListOptionsGatewayTy return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of devices to return in the response. If this value is zero, the -// service will select a default size. A call may return fewer objects -// than requested. A non-empty `next_page_token` in the response -// indicates that more data is available. +// PageSize sets the optional parameter "pageSize": The maximum number of +// devices to return in the response. If this value is zero, the service will +// select a default size. A call may return fewer objects than requested. A +// non-empty `next_page_token` in the response indicates that more data is +// available. func (c *ProjectsLocationsRegistriesDevicesListCall) PageSize(pageSize int64) *ProjectsLocationsRegistriesDevicesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The value returned -// by the last `ListDevicesResponse`; indicates that this is a -// continuation of a prior `ListDevices` call and the system should -// return the next page of data. +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListDevicesResponse`; indicates that this is a continuation of a prior +// `ListDevices` call and the system should return the next page of data. func (c *ProjectsLocationsRegistriesDevicesListCall) PageToken(pageToken string) *ProjectsLocationsRegistriesDevicesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesDevicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsRegistriesDevicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRegistriesDevicesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesDevicesListCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesDevicesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3875,12 +3000,7 @@ func (c *ProjectsLocationsRegistriesDevicesListCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesDevicesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3897,16 +3017,15 @@ func (c *ProjectsLocationsRegistriesDevicesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.devices.list" call. -// Exactly one of *ListDevicesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListDevicesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListDevicesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsRegistriesDevicesListCall) Do(opts ...googleapi.CallOption) (*ListDevicesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3937,88 +3056,6 @@ func (c *ProjectsLocationsRegistriesDevicesListCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "List devices in a device registry.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices", - // "httpMethod": "GET", - // "id": "cloudiot.projects.locations.registries.devices.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "deviceIds": { - // "description": "A list of device string IDs. For example, `['device0', 'device12']`. If empty, this field is ignored. Maximum IDs: 10,000", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "deviceNumIds": { - // "description": "A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000.", - // "format": "uint64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "fieldMask": { - // "description": "The fields of the `Device` resource to be returned in the response. The fields `id` and `num_id` are always returned, along with any other fields specified in snake_case format, for example: `last_heartbeat_time`.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "gatewayListOptions.associationsDeviceId": { - // "description": "If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (`num_id`) or the user-defined string (`id`). For example, if `456` is specified, returns only the gateways to which the device with `num_id` 456 is bound.", - // "location": "query", - // "type": "string" - // }, - // "gatewayListOptions.associationsGatewayId": { - // "description": "If set, only devices associated with the specified gateway are returned. The gateway ID can be numeric (`num_id`) or the user-defined string (`id`). For example, if `123` is specified, only devices bound to the gateway with `num_id` 123 are returned.", - // "location": "query", - // "type": "string" - // }, - // "gatewayListOptions.gatewayType": { - // "description": "If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY` is specified, only non-gateway devices are returned. If `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are returned.", - // "enum": [ - // "GATEWAY_TYPE_UNSPECIFIED", - // "GATEWAY", - // "NON_GATEWAY" - // ], - // "enumDescriptions": [ - // "If unspecified, the device is considered a non-gateway device.", - // "The device is a gateway.", - // "The device is not a gateway." - // ], - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of devices to return in the response. If this value is zero, the service will select a default size. A call may return fewer objects than requested. A non-empty `next_page_token` in the response indicates that more data is available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value returned by the last `ListDevicesResponse`; indicates that this is a continuation of a prior `ListDevices` call and the system should return the next page of data.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The device registry path. Required. For example, `projects/my-project/locations/us-central1/registries/my-registry`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/devices", - // "response": { - // "$ref": "ListDevicesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - } // Pages invokes f for each page of results. @@ -4026,7 +3063,7 @@ func (c *ProjectsLocationsRegistriesDevicesListCall) Do(opts ...googleapi.CallOp // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsRegistriesDevicesListCall) Pages(ctx context.Context, f func(*ListDevicesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4042,8 +3079,6 @@ func (c *ProjectsLocationsRegistriesDevicesListCall) Pages(ctx context.Context, } } -// method id "cloudiot.projects.locations.registries.devices.modifyCloudToDeviceConfig": - type ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall struct { s *Service name string @@ -4053,15 +3088,14 @@ type ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall struct { header_ http.Header } -// ModifyCloudToDeviceConfig: Modifies the configuration for the device, -// which is eventually sent from the Cloud IoT Core servers. Returns the -// modified configuration version and its metadata. +// ModifyCloudToDeviceConfig: Modifies the configuration for the device, which +// is eventually sent from the Cloud IoT Core servers. Returns the modified +// configuration version and its metadata. // // - name: The name of the device. For example, -// `projects/p0/locations/us-central1/registries/registry0/devices/devi -// ce0` or -// `projects/p0/locations/us-central1/registries/registry0/devices/{num -// _id}`. +// `projects/p0/locations/us-central1/registries/registry0/devices/device0` +// or +// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. func (r *ProjectsLocationsRegistriesDevicesService) ModifyCloudToDeviceConfig(name string, modifycloudtodeviceconfigrequest *ModifyCloudToDeviceConfigRequest) *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall { c := &ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4070,23 +3104,21 @@ func (r *ProjectsLocationsRegistriesDevicesService) ModifyCloudToDeviceConfig(na } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4095,18 +3127,12 @@ func (c *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall) Header } func (c *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.modifycloudtodeviceconfigrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:modifyCloudToDeviceConfig") @@ -4119,16 +3145,14 @@ func (c *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.devices.modifyCloudToDeviceConfig" call. -// Exactly one of *DeviceConfig or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DeviceConfig.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DeviceConfig.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall) Do(opts ...googleapi.CallOption) (*DeviceConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4159,39 +3183,7 @@ func (c *ProjectsLocationsRegistriesDevicesModifyCloudToDeviceConfigCall) Do(opt return nil, err } return ret, nil - // { - // "description": "Modifies the configuration for the device, which is eventually sent from the Cloud IoT Core servers. Returns the modified configuration version and its metadata.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices/{devicesId}:modifyCloudToDeviceConfig", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.devices.modifyCloudToDeviceConfig", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/devices/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:modifyCloudToDeviceConfig", - // "request": { - // "$ref": "ModifyCloudToDeviceConfigRequest" - // }, - // "response": { - // "$ref": "DeviceConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.devices.patch": +} type ProjectsLocationsRegistriesDevicesPatchCall struct { s *Service @@ -4205,11 +3197,10 @@ type ProjectsLocationsRegistriesDevicesPatchCall struct { // Patch: Updates a device. // // - name: The resource path name. For example, -// `projects/p1/locations/us-central1/registries/registry0/devices/dev0 -// ` or -// `projects/p1/locations/us-central1/registries/registry0/devices/{num -// _id}`. When `name` is populated as a response from the service, it -// always ends in the device numeric ID. +// `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or +// `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. +// When `name` is populated as a response from the service, it always ends in +// the device numeric ID. func (r *ProjectsLocationsRegistriesDevicesService) Patch(name string, device *Device) *ProjectsLocationsRegistriesDevicesPatchCall { c := &ProjectsLocationsRegistriesDevicesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4217,34 +3208,31 @@ func (r *ProjectsLocationsRegistriesDevicesService) Patch(name string, device *D return c } -// UpdateMask sets the optional parameter "updateMask": Required. Only -// updates the `device` fields indicated by this mask. The field mask -// must not be empty, and it must not contain fields that are immutable -// or only set by the server. Mutable top-level fields: `credentials`, -// `blocked`, and `metadata` +// UpdateMask sets the optional parameter "updateMask": Required. Only updates +// the `device` fields indicated by this mask. The field mask must not be +// empty, and it must not contain fields that are immutable or only set by the +// server. Mutable top-level fields: `credentials`, `blocked`, and `metadata` func (c *ProjectsLocationsRegistriesDevicesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRegistriesDevicesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesDevicesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesDevicesPatchCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesDevicesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4253,18 +3241,12 @@ func (c *ProjectsLocationsRegistriesDevicesPatchCall) Header() http.Header { } func (c *ProjectsLocationsRegistriesDevicesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.device) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -4277,16 +3259,14 @@ func (c *ProjectsLocationsRegistriesDevicesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.devices.patch" call. -// Exactly one of *Device or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Device.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Device.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesDevicesPatchCall) Do(opts ...googleapi.CallOption) (*Device, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4317,45 +3297,7 @@ func (c *ProjectsLocationsRegistriesDevicesPatchCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Updates a device.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices/{devicesId}", - // "httpMethod": "PATCH", - // "id": "cloudiot.projects.locations.registries.devices.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource path name. For example, `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. When `name` is populated as a response from the service, it always ends in the device numeric ID.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/devices/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Only updates the `device` fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: `credentials`, `blocked`, and `metadata`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "Device" - // }, - // "response": { - // "$ref": "Device" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.devices.sendCommandToDevice": +} type ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall struct { s *Service @@ -4366,26 +3308,24 @@ type ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall struct { header_ http.Header } -// SendCommandToDevice: Sends a command to the specified device. In -// order for a device to be able to receive commands, it must: 1) be -// connected to Cloud IoT Core using the MQTT protocol, and 2) be -// subscribed to the group of MQTT topics specified by -// /devices/{device-id}/commands/#. This subscription will receive -// commands at the top-level topic /devices/{device-id}/commands as well -// as commands for subfolders, like -// /devices/{device-id}/commands/subfolder. Note that subscribing to -// specific subfolders is not supported. If the command could not be -// delivered to the device, this method will return an error; in -// particular, if the device is not subscribed, this method will return -// FAILED_PRECONDITION. Otherwise, this method will return OK. If the -// subscription is QoS 1, at least once delivery will be guaranteed; for -// QoS 0, no acknowledgment will be expected from the device. +// SendCommandToDevice: Sends a command to the specified device. In order for a +// device to be able to receive commands, it must: 1) be connected to Cloud IoT +// Core using the MQTT protocol, and 2) be subscribed to the group of MQTT +// topics specified by /devices/{device-id}/commands/#. This subscription will +// receive commands at the top-level topic /devices/{device-id}/commands as +// well as commands for subfolders, like +// /devices/{device-id}/commands/subfolder. Note that subscribing to specific +// subfolders is not supported. If the command could not be delivered to the +// device, this method will return an error; in particular, if the device is +// not subscribed, this method will return FAILED_PRECONDITION. Otherwise, this +// method will return OK. If the subscription is QoS 1, at least once delivery +// will be guaranteed; for QoS 0, no acknowledgment will be expected from the +// device. // // - name: The name of the device. For example, -// `projects/p0/locations/us-central1/registries/registry0/devices/devi -// ce0` or -// `projects/p0/locations/us-central1/registries/registry0/devices/{num -// _id}`. +// `projects/p0/locations/us-central1/registries/registry0/devices/device0` +// or +// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. func (r *ProjectsLocationsRegistriesDevicesService) SendCommandToDevice(name string, sendcommandtodevicerequest *SendCommandToDeviceRequest) *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall { c := &ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4394,23 +3334,21 @@ func (r *ProjectsLocationsRegistriesDevicesService) SendCommandToDevice(name str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4419,18 +3357,12 @@ func (c *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall) Header() htt } func (c *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.sendcommandtodevicerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:sendCommandToDevice") @@ -4443,16 +3375,15 @@ func (c *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.devices.sendCommandToDevice" call. -// Exactly one of *SendCommandToDeviceResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *SendCommandToDeviceResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *SendCommandToDeviceResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall) Do(opts ...googleapi.CallOption) (*SendCommandToDeviceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4483,39 +3414,7 @@ func (c *ProjectsLocationsRegistriesDevicesSendCommandToDeviceCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Sends a command to the specified device. In order for a device to be able to receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT protocol, and 2) be subscribed to the group of MQTT topics specified by /devices/{device-id}/commands/#. This subscription will receive commands at the top-level topic /devices/{device-id}/commands as well as commands for subfolders, like /devices/{device-id}/commands/subfolder. Note that subscribing to specific subfolders is not supported. If the command could not be delivered to the device, this method will return an error; in particular, if the device is not subscribed, this method will return FAILED_PRECONDITION. Otherwise, this method will return OK. If the subscription is QoS 1, at least once delivery will be guaranteed; for QoS 0, no acknowledgment will be expected from the device.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices/{devicesId}:sendCommandToDevice", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.devices.sendCommandToDevice", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/devices/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:sendCommandToDevice", - // "request": { - // "$ref": "SendCommandToDeviceRequest" - // }, - // "response": { - // "$ref": "SendCommandToDeviceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.devices.configVersions.list": +} type ProjectsLocationsRegistriesDevicesConfigVersionsListCall struct { s *Service @@ -4526,14 +3425,13 @@ type ProjectsLocationsRegistriesDevicesConfigVersionsListCall struct { header_ http.Header } -// List: Lists the last few versions of the device configuration in -// descending order (i.e.: newest first). +// List: Lists the last few versions of the device configuration in descending +// order (i.e.: newest first). // // - name: The name of the device. For example, -// `projects/p0/locations/us-central1/registries/registry0/devices/devi -// ce0` or -// `projects/p0/locations/us-central1/registries/registry0/devices/{num -// _id}`. +// `projects/p0/locations/us-central1/registries/registry0/devices/device0` +// or +// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. func (r *ProjectsLocationsRegistriesDevicesConfigVersionsService) List(name string) *ProjectsLocationsRegistriesDevicesConfigVersionsListCall { c := &ProjectsLocationsRegistriesDevicesConfigVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4541,42 +3439,38 @@ func (r *ProjectsLocationsRegistriesDevicesConfigVersionsService) List(name stri } // NumVersions sets the optional parameter "numVersions": The number of -// versions to list. Versions are listed in decreasing order of the -// version number. The maximum number of versions retained is 10. If -// this value is zero, it will return all the versions available. +// versions to list. Versions are listed in decreasing order of the version +// number. The maximum number of versions retained is 10. If this value is +// zero, it will return all the versions available. func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) NumVersions(numVersions int64) *ProjectsLocationsRegistriesDevicesConfigVersionsListCall { c.urlParams_.Set("numVersions", fmt.Sprint(numVersions)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesConfigVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRegistriesDevicesConfigVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesConfigVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4585,12 +3479,7 @@ func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) Header() http } func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4607,16 +3496,15 @@ func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.devices.configVersions.list" call. -// Exactly one of *ListDeviceConfigVersionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListDeviceConfigVersionsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListDeviceConfigVersionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) Do(opts ...googleapi.CallOption) (*ListDeviceConfigVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4647,42 +3535,7 @@ func (c *ProjectsLocationsRegistriesDevicesConfigVersionsListCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Lists the last few versions of the device configuration in descending order (i.e.: newest first).", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices/{devicesId}/configVersions", - // "httpMethod": "GET", - // "id": "cloudiot.projects.locations.registries.devices.configVersions.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/devices/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "numVersions": { - // "description": "The number of versions to list. Versions are listed in decreasing order of the version number. The maximum number of versions retained is 10. If this value is zero, it will return all the versions available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // } - // }, - // "path": "v1/{+name}/configVersions", - // "response": { - // "$ref": "ListDeviceConfigVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.devices.states.list": +} type ProjectsLocationsRegistriesDevicesStatesListCall struct { s *Service @@ -4693,57 +3546,52 @@ type ProjectsLocationsRegistriesDevicesStatesListCall struct { header_ http.Header } -// List: Lists the last few versions of the device state in descending -// order (i.e.: newest first). +// List: Lists the last few versions of the device state in descending order +// (i.e.: newest first). // // - name: The name of the device. For example, -// `projects/p0/locations/us-central1/registries/registry0/devices/devi -// ce0` or -// `projects/p0/locations/us-central1/registries/registry0/devices/{num -// _id}`. +// `projects/p0/locations/us-central1/registries/registry0/devices/device0` +// or +// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. func (r *ProjectsLocationsRegistriesDevicesStatesService) List(name string) *ProjectsLocationsRegistriesDevicesStatesListCall { c := &ProjectsLocationsRegistriesDevicesStatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// NumStates sets the optional parameter "numStates": The number of -// states to list. States are listed in descending order of update time. -// The maximum number of states retained is 10. If this value is zero, -// it will return all the states available. +// NumStates sets the optional parameter "numStates": The number of states to +// list. States are listed in descending order of update time. The maximum +// number of states retained is 10. If this value is zero, it will return all +// the states available. func (c *ProjectsLocationsRegistriesDevicesStatesListCall) NumStates(numStates int64) *ProjectsLocationsRegistriesDevicesStatesListCall { c.urlParams_.Set("numStates", fmt.Sprint(numStates)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesDevicesStatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesDevicesStatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsRegistriesDevicesStatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRegistriesDevicesStatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesDevicesStatesListCall) Context(ctx context.Context) *ProjectsLocationsRegistriesDevicesStatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesDevicesStatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4752,12 +3600,7 @@ func (c *ProjectsLocationsRegistriesDevicesStatesListCall) Header() http.Header } func (c *ProjectsLocationsRegistriesDevicesStatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4774,16 +3617,15 @@ func (c *ProjectsLocationsRegistriesDevicesStatesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.devices.states.list" call. -// Exactly one of *ListDeviceStatesResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *ListDeviceStatesResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesDevicesStatesListCall) Do(opts ...googleapi.CallOption) (*ListDeviceStatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4814,42 +3656,7 @@ func (c *ProjectsLocationsRegistriesDevicesStatesListCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Lists the last few versions of the device state in descending order (i.e.: newest first).", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/devices/{devicesId}/states", - // "httpMethod": "GET", - // "id": "cloudiot.projects.locations.registries.devices.states.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/devices/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "numStates": { - // "description": "The number of states to list. States are listed in descending order of update time. The maximum number of states retained is 10. If this value is zero, it will return all the states available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // } - // }, - // "path": "v1/{+name}/states", - // "response": { - // "$ref": "ListDeviceStatesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.groups.getIamPolicy": +} type ProjectsLocationsRegistriesGroupsGetIamPolicyCall struct { s *Service @@ -4860,14 +3667,12 @@ type ProjectsLocationsRegistriesGroupsGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. func (r *ProjectsLocationsRegistriesGroupsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsRegistriesGroupsGetIamPolicyCall { c := &ProjectsLocationsRegistriesGroupsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -4876,23 +3681,21 @@ func (r *ProjectsLocationsRegistriesGroupsService) GetIamPolicy(resource string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesGroupsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesGroupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRegistriesGroupsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesGroupsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4901,18 +3704,12 @@ func (c *ProjectsLocationsRegistriesGroupsGetIamPolicyCall) Header() http.Header } func (c *ProjectsLocationsRegistriesGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") @@ -4925,16 +3722,14 @@ func (c *ProjectsLocationsRegistriesGroupsGetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.groups.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4965,39 +3760,7 @@ func (c *ProjectsLocationsRegistriesGroupsGetIamPolicyCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}:getIamPolicy", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.groups.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:getIamPolicy", - // "request": { - // "$ref": "GetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.groups.setIamPolicy": +} type ProjectsLocationsRegistriesGroupsSetIamPolicyCall struct { s *Service @@ -5008,13 +3771,12 @@ type ProjectsLocationsRegistriesGroupsSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. func (r *ProjectsLocationsRegistriesGroupsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsRegistriesGroupsSetIamPolicyCall { c := &ProjectsLocationsRegistriesGroupsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5023,23 +3785,21 @@ func (r *ProjectsLocationsRegistriesGroupsService) SetIamPolicy(resource string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesGroupsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesGroupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRegistriesGroupsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesGroupsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5048,18 +3808,12 @@ func (c *ProjectsLocationsRegistriesGroupsSetIamPolicyCall) Header() http.Header } func (c *ProjectsLocationsRegistriesGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") @@ -5072,16 +3826,14 @@ func (c *ProjectsLocationsRegistriesGroupsSetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.groups.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5112,39 +3864,7 @@ func (c *ProjectsLocationsRegistriesGroupsSetIamPolicyCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.groups.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.groups.testIamPermissions": +} type ProjectsLocationsRegistriesGroupsTestIamPermissionsCall struct { s *Service @@ -5155,14 +3875,14 @@ type ProjectsLocationsRegistriesGroupsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a NOT_FOUND error. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. func (r *ProjectsLocationsRegistriesGroupsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall { c := &ProjectsLocationsRegistriesGroupsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5171,23 +3891,21 @@ func (r *ProjectsLocationsRegistriesGroupsService) TestIamPermissions(resource s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5196,18 +3914,12 @@ func (c *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall) Header() http. } func (c *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") @@ -5220,16 +3932,15 @@ func (c *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.groups.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5260,39 +3971,7 @@ func (c *ProjectsLocationsRegistriesGroupsTestIamPermissionsCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "cloudiot.projects.locations.registries.groups.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - -} - -// method id "cloudiot.projects.locations.registries.groups.devices.list": +} type ProjectsLocationsRegistriesGroupsDevicesListCall struct { s *Service @@ -5313,17 +3992,16 @@ func (r *ProjectsLocationsRegistriesGroupsDevicesService) List(parent string) *P return c } -// DeviceIds sets the optional parameter "deviceIds": A list of device -// string IDs. For example, `['device0', 'device12']`. If empty, this -// field is ignored. Maximum IDs: 10,000 +// DeviceIds sets the optional parameter "deviceIds": A list of device string +// IDs. For example, `['device0', 'device12']`. If empty, this field is +// ignored. Maximum IDs: 10,000 func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) DeviceIds(deviceIds ...string) *ProjectsLocationsRegistriesGroupsDevicesListCall { c.urlParams_.SetMulti("deviceIds", append([]string{}, deviceIds...)) return c } -// DeviceNumIds sets the optional parameter "deviceNumIds": A list of -// device numeric IDs. If empty, this field is ignored. Maximum IDs: -// 10,000. +// DeviceNumIds sets the optional parameter "deviceNumIds": A list of device +// numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) DeviceNumIds(deviceNumIds ...uint64) *ProjectsLocationsRegistriesGroupsDevicesListCall { var deviceNumIds_ []string for _, v := range deviceNumIds { @@ -5335,46 +4013,45 @@ func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) DeviceNumIds(deviceNu // FieldMask sets the optional parameter "fieldMask": The fields of the // `Device` resource to be returned in the response. The fields `id` and -// `num_id` are always returned, along with any other fields specified -// in snake_case format, for example: `last_heartbeat_time`. +// `num_id` are always returned, along with any other fields specified in +// snake_case format, for example: `last_heartbeat_time`. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) FieldMask(fieldMask string) *ProjectsLocationsRegistriesGroupsDevicesListCall { c.urlParams_.Set("fieldMask", fieldMask) return c } // GatewayListOptionsAssociationsDeviceId sets the optional parameter -// "gatewayListOptions.associationsDeviceId": If set, returns only the -// gateways with which the specified device is associated. The device ID -// can be numeric (`num_id`) or the user-defined string (`id`). For -// example, if `456` is specified, returns only the gateways to which -// the device with `num_id` 456 is bound. +// "gatewayListOptions.associationsDeviceId": If set, returns only the gateways +// with which the specified device is associated. The device ID can be numeric +// (`num_id`) or the user-defined string (`id`). For example, if `456` is +// specified, returns only the gateways to which the device with `num_id` 456 +// is bound. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) GatewayListOptionsAssociationsDeviceId(gatewayListOptionsAssociationsDeviceId string) *ProjectsLocationsRegistriesGroupsDevicesListCall { c.urlParams_.Set("gatewayListOptions.associationsDeviceId", gatewayListOptionsAssociationsDeviceId) return c } // GatewayListOptionsAssociationsGatewayId sets the optional parameter -// "gatewayListOptions.associationsGatewayId": If set, only devices -// associated with the specified gateway are returned. The gateway ID -// can be numeric (`num_id`) or the user-defined string (`id`). For -// example, if `123` is specified, only devices bound to the gateway -// with `num_id` 123 are returned. +// "gatewayListOptions.associationsGatewayId": If set, only devices associated +// with the specified gateway are returned. The gateway ID can be numeric +// (`num_id`) or the user-defined string (`id`). For example, if `123` is +// specified, only devices bound to the gateway with `num_id` 123 are returned. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) GatewayListOptionsAssociationsGatewayId(gatewayListOptionsAssociationsGatewayId string) *ProjectsLocationsRegistriesGroupsDevicesListCall { c.urlParams_.Set("gatewayListOptions.associationsGatewayId", gatewayListOptionsAssociationsGatewayId) return c } // GatewayListOptionsGatewayType sets the optional parameter -// "gatewayListOptions.gatewayType": If `GATEWAY` is specified, only -// gateways are returned. If `NON_GATEWAY` is specified, only -// non-gateway devices are returned. If `GATEWAY_TYPE_UNSPECIFIED` is -// specified, all devices are returned. +// "gatewayListOptions.gatewayType": If `GATEWAY` is specified, only gateways +// are returned. If `NON_GATEWAY` is specified, only non-gateway devices are +// returned. If `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are +// returned. // // Possible values: // -// "GATEWAY_TYPE_UNSPECIFIED" - If unspecified, the device is +// "GATEWAY_TYPE_UNSPECIFIED" - If unspecified, the device is considered a // -// considered a non-gateway device. +// non-gateway device. // // "GATEWAY" - The device is a gateway. // "NON_GATEWAY" - The device is not a gateway. @@ -5383,53 +4060,48 @@ func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) GatewayListOptionsGat return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of devices to return in the response. If this value is zero, the -// service will select a default size. A call may return fewer objects -// than requested. A non-empty `next_page_token` in the response -// indicates that more data is available. +// PageSize sets the optional parameter "pageSize": The maximum number of +// devices to return in the response. If this value is zero, the service will +// select a default size. A call may return fewer objects than requested. A +// non-empty `next_page_token` in the response indicates that more data is +// available. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) PageSize(pageSize int64) *ProjectsLocationsRegistriesGroupsDevicesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The value returned -// by the last `ListDevicesResponse`; indicates that this is a -// continuation of a prior `ListDevices` call and the system should -// return the next page of data. +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListDevicesResponse`; indicates that this is a continuation of a prior +// `ListDevices` call and the system should return the next page of data. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) PageToken(pageToken string) *ProjectsLocationsRegistriesGroupsDevicesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRegistriesGroupsDevicesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRegistriesGroupsDevicesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) Context(ctx context.Context) *ProjectsLocationsRegistriesGroupsDevicesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5438,12 +4110,7 @@ func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) Header() http.Header } func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5460,16 +4127,15 @@ func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudiot.projects.locations.registries.groups.devices.list" call. -// Exactly one of *ListDevicesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListDevicesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListDevicesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) Do(opts ...googleapi.CallOption) (*ListDevicesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5500,88 +4166,6 @@ func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "List devices in a device registry.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registries/{registriesId}/groups/{groupsId}/devices", - // "httpMethod": "GET", - // "id": "cloudiot.projects.locations.registries.groups.devices.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "deviceIds": { - // "description": "A list of device string IDs. For example, `['device0', 'device12']`. If empty, this field is ignored. Maximum IDs: 10,000", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "deviceNumIds": { - // "description": "A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000.", - // "format": "uint64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "fieldMask": { - // "description": "The fields of the `Device` resource to be returned in the response. The fields `id` and `num_id` are always returned, along with any other fields specified in snake_case format, for example: `last_heartbeat_time`.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "gatewayListOptions.associationsDeviceId": { - // "description": "If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (`num_id`) or the user-defined string (`id`). For example, if `456` is specified, returns only the gateways to which the device with `num_id` 456 is bound.", - // "location": "query", - // "type": "string" - // }, - // "gatewayListOptions.associationsGatewayId": { - // "description": "If set, only devices associated with the specified gateway are returned. The gateway ID can be numeric (`num_id`) or the user-defined string (`id`). For example, if `123` is specified, only devices bound to the gateway with `num_id` 123 are returned.", - // "location": "query", - // "type": "string" - // }, - // "gatewayListOptions.gatewayType": { - // "description": "If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY` is specified, only non-gateway devices are returned. If `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are returned.", - // "enum": [ - // "GATEWAY_TYPE_UNSPECIFIED", - // "GATEWAY", - // "NON_GATEWAY" - // ], - // "enumDescriptions": [ - // "If unspecified, the device is considered a non-gateway device.", - // "The device is a gateway.", - // "The device is not a gateway." - // ], - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of devices to return in the response. If this value is zero, the service will select a default size. A call may return fewer objects than requested. A non-empty `next_page_token` in the response indicates that more data is available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value returned by the last `ListDevicesResponse`; indicates that this is a continuation of a prior `ListDevices` call and the system should return the next page of data.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The device registry path. Required. For example, `projects/my-project/locations/us-central1/registries/my-registry`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/devices", - // "response": { - // "$ref": "ListDevicesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloudiot" - // ] - // } - } // Pages invokes f for each page of results. @@ -5589,7 +4173,7 @@ func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) Do(opts ...googleapi. // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsRegistriesGroupsDevicesListCall) Pages(ctx context.Context, f func(*ListDevicesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/cloudkms/v1/cloudkms-gen.go b/cloudkms/v1/cloudkms-gen.go index 5194747f6cb..9bc32cf0e4d 100644 --- a/cloudkms/v1/cloudkms-gen.go +++ b/cloudkms/v1/cloudkms-gen.go @@ -3483,7 +3483,7 @@ func (c *FoldersGetAutokeyConfigCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.folders.getAutokeyConfig" call. @@ -3596,7 +3596,7 @@ func (c *FoldersUpdateAutokeyConfigCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.folders.updateAutokeyConfig" call. @@ -3706,7 +3706,7 @@ func (c *ProjectsShowEffectiveAutokeyConfigCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.showEffectiveAutokeyConfig" call. @@ -3810,7 +3810,7 @@ func (c *ProjectsLocationsGenerateRandomBytesCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.generateRandomBytes" call. @@ -3918,7 +3918,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.get" call. @@ -4026,7 +4026,7 @@ func (c *ProjectsLocationsGetEkmConfigCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.getEkmConfig" call. @@ -4157,7 +4157,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.list" call. @@ -4289,7 +4289,7 @@ func (c *ProjectsLocationsUpdateEkmConfigCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.updateEkmConfig" call. @@ -4416,7 +4416,7 @@ func (c *ProjectsLocationsEkmConfigGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConfig.getIamPolicy" call. @@ -4521,7 +4521,7 @@ func (c *ProjectsLocationsEkmConfigSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConfig.setIamPolicy" call. @@ -4629,7 +4629,7 @@ func (c *ProjectsLocationsEkmConfigTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConfig.testIamPermissions" call. @@ -4740,7 +4740,7 @@ func (c *ProjectsLocationsEkmConnectionsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConnections.create" call. @@ -4847,7 +4847,7 @@ func (c *ProjectsLocationsEkmConnectionsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConnections.get" call. @@ -4974,7 +4974,7 @@ func (c *ProjectsLocationsEkmConnectionsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConnections.getIamPolicy" call. @@ -5117,7 +5117,7 @@ func (c *ProjectsLocationsEkmConnectionsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConnections.list" call. @@ -5248,7 +5248,7 @@ func (c *ProjectsLocationsEkmConnectionsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConnections.patch" call. @@ -5353,7 +5353,7 @@ func (c *ProjectsLocationsEkmConnectionsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConnections.setIamPolicy" call. @@ -5461,7 +5461,7 @@ func (c *ProjectsLocationsEkmConnectionsTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConnections.testIamPermissions" call. @@ -5573,7 +5573,7 @@ func (c *ProjectsLocationsEkmConnectionsVerifyConnectivityCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.ekmConnections.verifyConnectivity" call. @@ -5688,7 +5688,7 @@ func (c *ProjectsLocationsKeyHandlesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyHandles.create" call. @@ -5796,7 +5796,7 @@ func (c *ProjectsLocationsKeyHandlesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyHandles.get" call. @@ -5928,7 +5928,7 @@ func (c *ProjectsLocationsKeyHandlesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyHandles.list" call. @@ -6060,7 +6060,7 @@ func (c *ProjectsLocationsKeyRingsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.create" call. @@ -6167,7 +6167,7 @@ func (c *ProjectsLocationsKeyRingsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.get" call. @@ -6294,7 +6294,7 @@ func (c *ProjectsLocationsKeyRingsGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.getIamPolicy" call. @@ -6437,7 +6437,7 @@ func (c *ProjectsLocationsKeyRingsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.list" call. @@ -6564,7 +6564,7 @@ func (c *ProjectsLocationsKeyRingsSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.setIamPolicy" call. @@ -6672,7 +6672,7 @@ func (c *ProjectsLocationsKeyRingsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.testIamPermissions" call. @@ -6793,7 +6793,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.create" call. @@ -6896,7 +6896,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysDecryptCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.decrypt" call. @@ -7001,7 +7001,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysEncryptCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.encrypt" call. @@ -7110,7 +7110,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.get" call. @@ -7237,7 +7237,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.getIamPolicy" call. @@ -7397,7 +7397,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.list" call. @@ -7528,7 +7528,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.patch" call. @@ -7633,7 +7633,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.setIamPolicy" call. @@ -7741,7 +7741,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.testIamPermissions" call. @@ -7845,7 +7845,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.updatePrimaryVersion" call. @@ -7948,7 +7948,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptCa googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricDecrypt" call. @@ -8052,7 +8052,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricSign" call. @@ -8155,7 +8155,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create" call. @@ -8262,7 +8262,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy" call. @@ -8370,7 +8370,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get" call. @@ -8479,7 +8479,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.getPublicKey" call. @@ -8586,7 +8586,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImportCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.import" call. @@ -8747,7 +8747,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list" call. @@ -8871,7 +8871,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSignCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.macSign" call. @@ -8975,7 +8975,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerifyCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.macVerify" call. @@ -9088,7 +9088,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch" call. @@ -9191,7 +9191,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecryptCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.rawDecrypt" call. @@ -9295,7 +9295,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncryptCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.rawEncrypt" call. @@ -9399,7 +9399,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.restore" call. @@ -9510,7 +9510,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.importJobs.create" call. @@ -9617,7 +9617,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.importJobs.get" call. @@ -9744,7 +9744,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.importJobs.getIamPolicy" call. @@ -9887,7 +9887,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.importJobs.list" call. @@ -10014,7 +10014,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.importJobs.setIamPolicy" call. @@ -10122,7 +10122,7 @@ func (c *ProjectsLocationsKeyRingsImportJobsTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.keyRings.importJobs.testIamPermissions" call. @@ -10232,7 +10232,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudkms.projects.locations.operations.get" call. diff --git a/cloudprivatecatalog/v1beta1/cloudprivatecatalog-gen.go b/cloudprivatecatalog/v1beta1/cloudprivatecatalog-gen.go index 3aa9252475a..3fee5b7722c 100644 --- a/cloudprivatecatalog/v1beta1/cloudprivatecatalog-gen.go +++ b/cloudprivatecatalog/v1beta1/cloudprivatecatalog-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/private-catalog/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // cloudprivatecatalogService, err := cloudprivatecatalog.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // cloudprivatecatalogService, err := cloudprivatecatalog.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // cloudprivatecatalogService, err := cloudprivatecatalog.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package cloudprivatecatalog // import "google.golang.org/api/cloudprivatecatalog/v1beta1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,14 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "cloudprivatecatalog:v1beta1" const apiName = "cloudprivatecatalog" const apiVersion = "v1beta1" const basePath = "https://cloudprivatecatalog.googleapis.com/" +const basePathTemplate = "https://cloudprivatecatalog.UNIVERSE_DOMAIN/" +const mtlsBasePath = "https://cloudprivatecatalog.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -84,12 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -274,66 +294,54 @@ type ProjectsVersionsService struct { s *Service } -// GoogleCloudPrivatecatalogV1beta1Catalog: The readonly representation -// of a catalog computed with a given resource +// GoogleCloudPrivatecatalogV1beta1Catalog: The readonly representation of a +// catalog computed with a given resource // context. type GoogleCloudPrivatecatalogV1beta1Catalog struct { // CreateTime: Output only. The time when the catalog was created. CreateTime string `json:"createTime,omitempty"` - // Description: Output only. The description of the catalog. Description string `json:"description,omitempty"` - - // DisplayName: Output only. The descriptive name of the catalog as it - // appears in UIs. + // DisplayName: Output only. The descriptive name of the catalog as it appears + // in UIs. DisplayName string `json:"displayName,omitempty"` - - // Name: Output only. The resource name of the target catalog, in the - // format of + // Name: Output only. The resource name of the target catalog, in the format + // of // `catalogs/{catalog_id}'. Name string `json:"name,omitempty"` - // UpdateTime: Output only. The time when the catalog was last updated. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogV1beta1Catalog) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogV1beta1Catalog) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogV1beta1Catalog - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPrivatecatalogV1beta1Product: The readonly representation -// of a product computed with a given resource +// GoogleCloudPrivatecatalogV1beta1Product: The readonly representation of a +// product computed with a given resource // context. type GoogleCloudPrivatecatalogV1beta1Product struct { - // AssetType: Output only. The type of the product asset. It can be one - // of the + // AssetType: Output only. The type of the product asset. It can be one of + // the // following values: // // * `google.deploymentmanager.Template` // * `google.cloudprivatecatalog.ListingOnly` AssetType string `json:"assetType,omitempty"` - // CreateTime: Output only. The time when the product was created. CreateTime string `json:"createTime,omitempty"` - // DisplayMetadata: Output only. The display metadata to describe the // product. // The JSON schema of the metadata differs by Product.asset_type. @@ -373,8 +381,7 @@ type GoogleCloudPrivatecatalogV1beta1Product struct { // url: // type: string // pattern: - // - // "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" + // "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" // title: // type: string // minLength: 1 @@ -426,8 +433,7 @@ type GoogleCloudPrivatecatalogV1beta1Product struct { // url: // type: string // pattern: - // - // "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" + // "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" // title: // type: string // minLength: 1 @@ -441,223 +447,175 @@ type GoogleCloudPrivatecatalogV1beta1Product struct { // pattern: // // "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" - // requ - // ired: + // required: // - name // - description // - signup_url // additionalProperties: false // ``` DisplayMetadata googleapi.RawMessage `json:"displayMetadata,omitempty"` - // IconUri: Output only. The icon URI of the product. IconUri string `json:"iconUri,omitempty"` - - // Name: Output only. The resource name of the target product, in the - // format of + // Name: Output only. The resource name of the target product, in the format + // of // `products/a-z*[a-z0-9]'. // // A unique identifier for the product under a catalog. Name string `json:"name,omitempty"` - // UpdateTime: Output only. The time when the product was last updated. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AssetType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssetType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogV1beta1Product) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogV1beta1Product) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogV1beta1Product - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse: Response -// message for PrivateCatalog.SearchCatalogs. +// GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse: Response message for +// PrivateCatalog.SearchCatalogs. type GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse struct { // Catalogs: The `Catalog`s computed from the resource context. Catalogs []*GoogleCloudPrivatecatalogV1beta1Catalog `json:"catalogs,omitempty"` - // NextPageToken: A pagination token returned from a previous call to // SearchCatalogs that // indicates from where listing should continue. // This field is optional. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Catalogs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Catalogs") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Catalogs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPrivatecatalogV1beta1SearchProductsResponse: Response -// message for PrivateCatalog.SearchProducts. +// GoogleCloudPrivatecatalogV1beta1SearchProductsResponse: Response message for +// PrivateCatalog.SearchProducts. type GoogleCloudPrivatecatalogV1beta1SearchProductsResponse struct { // NextPageToken: A pagination token returned from a previous call to // SearchProducts that // indicates from where listing should continue. // This field is optional. NextPageToken string `json:"nextPageToken,omitempty"` - // Products: The `Product` resources computed from the resource context. Products []*GoogleCloudPrivatecatalogV1beta1Product `json:"products,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogV1beta1SearchProductsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogV1beta1SearchProductsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogV1beta1SearchProductsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse: Response -// message for PrivateCatalog.SearchVersions. +// GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse: Response message for +// PrivateCatalog.SearchVersions. type GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse struct { // NextPageToken: A pagination token returned from a previous call to // SearchVersions that // indicates from where the listing should continue. // This field is optional. NextPageToken string `json:"nextPageToken,omitempty"` - // Versions: The `Version` resources computed from the resource context. Versions []*GoogleCloudPrivatecatalogV1beta1Version `json:"versions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPrivatecatalogV1beta1Version: The consumer representation -// of a version which is a child resource under a +// GoogleCloudPrivatecatalogV1beta1Version: The consumer representation of a +// version which is a child resource under a // `Product` with asset data. type GoogleCloudPrivatecatalogV1beta1Version struct { - // Asset: Output only. The asset which has been validated and is ready - // to be - // provisioned. - // See + // Asset: Output only. The asset which has been validated and is ready to + // be + // provisioned. See // google.cloud.privatecatalogproducer.v1beta.Version.asset for details. Asset googleapi.RawMessage `json:"asset,omitempty"` - // CreateTime: Output only. The time when the version was created. CreateTime string `json:"createTime,omitempty"` - - // Description: Output only. The user-supplied description of the - // version. Maximum of 256 + // Description: Output only. The user-supplied description of the version. + // Maximum of 256 // characters. Description string `json:"description,omitempty"` - // Name: Output only. The resource name of the version, in the // format - // `catalogs/{catalog_id}/products/{product_id}/versions/a-z*[a-z0 - // -9]'. + // `catalogs/{catalog_id}/products/{product_id}/versions/a-z*[a-z0-9]'. // // A unique identifier for the version under a product. Name string `json:"name,omitempty"` - // UpdateTime: Output only. The time when the version was last updated. UpdateTime string `json:"updateTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Asset") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Asset") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Asset") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogV1beta1Version) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogV1beta1Version) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogV1beta1Version - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "cloudprivatecatalog.folders.catalogs.search": - type FoldersCatalogsSearchCall struct { s *Service resource string @@ -667,17 +625,26 @@ type FoldersCatalogsSearchCall struct { header_ http.Header } -// Search: Search Catalog resources that consumers have access to, -// within the +// Search: Search Catalog resources that consumers have access to, within +// the // scope of the consumer cloud resource hierarchy context. +// +// - resource: The name of the resource context. It can be in following +// formats: +// +// - `projects/{project_id}` +// +// - `folders/{folder_id}` +// +// * `organizations/{organization_id}`. func (r *FoldersCatalogsService) Search(resource string) *FoldersCatalogsSearchCall { c := &FoldersCatalogsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of entries that are requested. +// PageSize sets the optional parameter "pageSize": The maximum number of +// entries that are requested. func (c *FoldersCatalogsSearchCall) PageSize(pageSize int64) *FoldersCatalogsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -692,8 +659,8 @@ func (c *FoldersCatalogsSearchCall) PageToken(pageToken string) *FoldersCatalogs return c } -// Query sets the optional parameter "query": The query to filter the -// catalogs. The supported queries are: +// Query sets the optional parameter "query": The query to filter the catalogs. +// The supported queries are: // // * Get a single catalog: `name=catalogs/{catalog_id}` func (c *FoldersCatalogsSearchCall) Query(query string) *FoldersCatalogsSearchCall { @@ -702,33 +669,29 @@ func (c *FoldersCatalogsSearchCall) Query(query string) *FoldersCatalogsSearchCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersCatalogsSearchCall) Fields(s ...googleapi.Field) *FoldersCatalogsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FoldersCatalogsSearchCall) IfNoneMatch(entityTag string) *FoldersCatalogsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersCatalogsSearchCall) Context(ctx context.Context) *FoldersCatalogsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersCatalogsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -737,12 +700,7 @@ func (c *FoldersCatalogsSearchCall) Header() http.Header { } func (c *FoldersCatalogsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -759,19 +717,17 @@ func (c *FoldersCatalogsSearchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalog.folders.catalogs.search" call. -// Exactly one of -// *GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FoldersCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -779,17 +735,17 @@ func (c *FoldersCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleClo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -802,48 +758,6 @@ func (c *FoldersCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleClo return nil, err } return ret, nil - // { - // "description": "Search Catalog resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", - // "flatPath": "v1beta1/folders/{foldersId}/catalogs:search", - // "httpMethod": "GET", - // "id": "cloudprivatecatalog.folders.catalogs.search", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of entries that are requested.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to SearchCatalogs that\nindicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "The query to filter the catalogs. The supported queries are:\n\n* Get a single catalog: `name=catalogs/{catalog_id}`", - // "location": "query", - // "type": "string" - // }, - // "resource": { - // "description": "Required. The name of the resource context. It can be in following formats:\n\n* `projects/{project_id}`\n* `folders/{folder_id}`\n* `organizations/{organization_id}`", - // "location": "path", - // "pattern": "^folders/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}/catalogs:search", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -851,7 +765,7 @@ func (c *FoldersCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleClo // The provided context supersedes any context provided to the Context method. func (c *FoldersCatalogsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -867,8 +781,6 @@ func (c *FoldersCatalogsSearchCall) Pages(ctx context.Context, f func(*GoogleClo } } -// method id "cloudprivatecatalog.folders.products.search": - type FoldersProductsSearchCall struct { s *Service resource string @@ -878,17 +790,22 @@ type FoldersProductsSearchCall struct { header_ http.Header } -// Search: Search Product resources that consumers have access to, -// within the +// Search: Search Product resources that consumers have access to, within +// the // scope of the consumer cloud resource hierarchy context. +// +// - resource: The name of the resource context. +// See +// +// SearchCatalogsRequest.resource for details. func (r *FoldersProductsService) Search(resource string) *FoldersProductsSearchCall { c := &FoldersProductsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of entries that are requested. +// PageSize sets the optional parameter "pageSize": The maximum number of +// entries that are requested. func (c *FoldersProductsSearchCall) PageSize(pageSize int64) *FoldersProductsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -909,8 +826,7 @@ func (c *FoldersProductsSearchCall) PageToken(pageToken string) *FoldersProducts // The supported queries are: // * List products of all catalogs: empty // * List products under a catalog: `parent=catalogs/{catalog_id}` -// * Get a product by -// name: +// * Get a product by name: // `name=catalogs/{catalog_id}/products/{product_id}` func (c *FoldersProductsSearchCall) Query(query string) *FoldersProductsSearchCall { c.urlParams_.Set("query", query) @@ -918,33 +834,29 @@ func (c *FoldersProductsSearchCall) Query(query string) *FoldersProductsSearchCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersProductsSearchCall) Fields(s ...googleapi.Field) *FoldersProductsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FoldersProductsSearchCall) IfNoneMatch(entityTag string) *FoldersProductsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersProductsSearchCall) Context(ctx context.Context) *FoldersProductsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersProductsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -953,12 +865,7 @@ func (c *FoldersProductsSearchCall) Header() http.Header { } func (c *FoldersProductsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -975,19 +882,17 @@ func (c *FoldersProductsSearchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalog.folders.products.search" call. -// Exactly one of -// *GoogleCloudPrivatecatalogV1beta1SearchProductsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudPrivatecatalogV1beta1SearchProductsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogV1beta1SearchProductsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FoldersProductsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogV1beta1SearchProductsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -995,17 +900,17 @@ func (c *FoldersProductsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleClo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogV1beta1SearchProductsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1018,48 +923,6 @@ func (c *FoldersProductsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleClo return nil, err } return ret, nil - // { - // "description": "Search Product resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", - // "flatPath": "v1beta1/folders/{foldersId}/products:search", - // "httpMethod": "GET", - // "id": "cloudprivatecatalog.folders.products.search", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of entries that are requested.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to SearchProducts that\nindicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "The query to filter the products.\n\nThe supported queries are:\n* List products of all catalogs: empty\n* List products under a catalog: `parent=catalogs/{catalog_id}`\n* Get a product by name:\n`name=catalogs/{catalog_id}/products/{product_id}`", - // "location": "query", - // "type": "string" - // }, - // "resource": { - // "description": "Required. The name of the resource context. See\nSearchCatalogsRequest.resource for details.", - // "location": "path", - // "pattern": "^folders/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}/products:search", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogV1beta1SearchProductsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1067,7 +930,7 @@ func (c *FoldersProductsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleClo // The provided context supersedes any context provided to the Context method. func (c *FoldersProductsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogV1beta1SearchProductsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1083,8 +946,6 @@ func (c *FoldersProductsSearchCall) Pages(ctx context.Context, f func(*GoogleClo } } -// method id "cloudprivatecatalog.folders.versions.search": - type FoldersVersionsSearchCall struct { s *Service resource string @@ -1094,17 +955,22 @@ type FoldersVersionsSearchCall struct { header_ http.Header } -// Search: Search Version resources that consumers have access to, -// within the +// Search: Search Version resources that consumers have access to, within +// the // scope of the consumer cloud resource hierarchy context. +// +// - resource: The name of the resource context. +// See +// +// SearchCatalogsRequest.resource for details. func (r *FoldersVersionsService) Search(resource string) *FoldersVersionsSearchCall { c := &FoldersVersionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of entries that are requested. +// PageSize sets the optional parameter "pageSize": The maximum number of +// entries that are requested. func (c *FoldersVersionsSearchCall) PageSize(pageSize int64) *FoldersVersionsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -1119,8 +985,8 @@ func (c *FoldersVersionsSearchCall) PageToken(pageToken string) *FoldersVersions return c } -// Query sets the optional parameter "query": The query to filter the -// versions. Required. +// Query sets the optional parameter "query": The query to filter the versions. +// Required. // // The supported queries are: // * List versions under a @@ -1128,41 +994,36 @@ func (c *FoldersVersionsSearchCall) PageToken(pageToken string) *FoldersVersions // `parent=catalogs/{catalog_id}/products/{product_id}` // * Get a version by // name: -// `name=catalogs/{catalog_id}/products/{product_id}/versions/{vers -// ion_id}` +// `name=catalogs/{catalog_id}/products/{product_id}/versions/{version_id}` func (c *FoldersVersionsSearchCall) Query(query string) *FoldersVersionsSearchCall { c.urlParams_.Set("query", query) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersVersionsSearchCall) Fields(s ...googleapi.Field) *FoldersVersionsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FoldersVersionsSearchCall) IfNoneMatch(entityTag string) *FoldersVersionsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersVersionsSearchCall) Context(ctx context.Context) *FoldersVersionsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersVersionsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1171,12 +1032,7 @@ func (c *FoldersVersionsSearchCall) Header() http.Header { } func (c *FoldersVersionsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1193,19 +1049,17 @@ func (c *FoldersVersionsSearchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalog.folders.versions.search" call. -// Exactly one of -// *GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FoldersVersionsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1213,17 +1067,17 @@ func (c *FoldersVersionsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleClo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1236,48 +1090,6 @@ func (c *FoldersVersionsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleClo return nil, err } return ret, nil - // { - // "description": "Search Version resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", - // "flatPath": "v1beta1/folders/{foldersId}/versions:search", - // "httpMethod": "GET", - // "id": "cloudprivatecatalog.folders.versions.search", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of entries that are requested.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to SearchVersions\nthat indicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "The query to filter the versions. Required.\n\nThe supported queries are:\n* List versions under a product:\n`parent=catalogs/{catalog_id}/products/{product_id}`\n* Get a version by name:\n`name=catalogs/{catalog_id}/products/{product_id}/versions/{version_id}`", - // "location": "query", - // "type": "string" - // }, - // "resource": { - // "description": "Required. The name of the resource context. See\nSearchCatalogsRequest.resource for details.", - // "location": "path", - // "pattern": "^folders/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}/versions:search", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1285,7 +1097,7 @@ func (c *FoldersVersionsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleClo // The provided context supersedes any context provided to the Context method. func (c *FoldersVersionsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1301,8 +1113,6 @@ func (c *FoldersVersionsSearchCall) Pages(ctx context.Context, f func(*GoogleClo } } -// method id "cloudprivatecatalog.organizations.catalogs.search": - type OrganizationsCatalogsSearchCall struct { s *Service resource string @@ -1312,17 +1122,26 @@ type OrganizationsCatalogsSearchCall struct { header_ http.Header } -// Search: Search Catalog resources that consumers have access to, -// within the +// Search: Search Catalog resources that consumers have access to, within +// the // scope of the consumer cloud resource hierarchy context. +// +// - resource: The name of the resource context. It can be in following +// formats: +// +// - `projects/{project_id}` +// +// - `folders/{folder_id}` +// +// * `organizations/{organization_id}`. func (r *OrganizationsCatalogsService) Search(resource string) *OrganizationsCatalogsSearchCall { c := &OrganizationsCatalogsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of entries that are requested. +// PageSize sets the optional parameter "pageSize": The maximum number of +// entries that are requested. func (c *OrganizationsCatalogsSearchCall) PageSize(pageSize int64) *OrganizationsCatalogsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -1337,8 +1156,8 @@ func (c *OrganizationsCatalogsSearchCall) PageToken(pageToken string) *Organizat return c } -// Query sets the optional parameter "query": The query to filter the -// catalogs. The supported queries are: +// Query sets the optional parameter "query": The query to filter the catalogs. +// The supported queries are: // // * Get a single catalog: `name=catalogs/{catalog_id}` func (c *OrganizationsCatalogsSearchCall) Query(query string) *OrganizationsCatalogsSearchCall { @@ -1347,33 +1166,29 @@ func (c *OrganizationsCatalogsSearchCall) Query(query string) *OrganizationsCata } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsCatalogsSearchCall) Fields(s ...googleapi.Field) *OrganizationsCatalogsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsCatalogsSearchCall) IfNoneMatch(entityTag string) *OrganizationsCatalogsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsCatalogsSearchCall) Context(ctx context.Context) *OrganizationsCatalogsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsCatalogsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1382,12 +1197,7 @@ func (c *OrganizationsCatalogsSearchCall) Header() http.Header { } func (c *OrganizationsCatalogsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1404,19 +1214,17 @@ func (c *OrganizationsCatalogsSearchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalog.organizations.catalogs.search" call. -// Exactly one of -// *GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1424,17 +1232,17 @@ func (c *OrganizationsCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*Goo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1447,48 +1255,6 @@ func (c *OrganizationsCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*Goo return nil, err } return ret, nil - // { - // "description": "Search Catalog resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", - // "flatPath": "v1beta1/organizations/{organizationsId}/catalogs:search", - // "httpMethod": "GET", - // "id": "cloudprivatecatalog.organizations.catalogs.search", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of entries that are requested.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to SearchCatalogs that\nindicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "The query to filter the catalogs. The supported queries are:\n\n* Get a single catalog: `name=catalogs/{catalog_id}`", - // "location": "query", - // "type": "string" - // }, - // "resource": { - // "description": "Required. The name of the resource context. It can be in following formats:\n\n* `projects/{project_id}`\n* `folders/{folder_id}`\n* `organizations/{organization_id}`", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}/catalogs:search", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1496,7 +1262,7 @@ func (c *OrganizationsCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*Goo // The provided context supersedes any context provided to the Context method. func (c *OrganizationsCatalogsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1512,8 +1278,6 @@ func (c *OrganizationsCatalogsSearchCall) Pages(ctx context.Context, f func(*Goo } } -// method id "cloudprivatecatalog.organizations.products.search": - type OrganizationsProductsSearchCall struct { s *Service resource string @@ -1523,17 +1287,22 @@ type OrganizationsProductsSearchCall struct { header_ http.Header } -// Search: Search Product resources that consumers have access to, -// within the +// Search: Search Product resources that consumers have access to, within +// the // scope of the consumer cloud resource hierarchy context. +// +// - resource: The name of the resource context. +// See +// +// SearchCatalogsRequest.resource for details. func (r *OrganizationsProductsService) Search(resource string) *OrganizationsProductsSearchCall { c := &OrganizationsProductsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of entries that are requested. +// PageSize sets the optional parameter "pageSize": The maximum number of +// entries that are requested. func (c *OrganizationsProductsSearchCall) PageSize(pageSize int64) *OrganizationsProductsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -1554,8 +1323,7 @@ func (c *OrganizationsProductsSearchCall) PageToken(pageToken string) *Organizat // The supported queries are: // * List products of all catalogs: empty // * List products under a catalog: `parent=catalogs/{catalog_id}` -// * Get a product by -// name: +// * Get a product by name: // `name=catalogs/{catalog_id}/products/{product_id}` func (c *OrganizationsProductsSearchCall) Query(query string) *OrganizationsProductsSearchCall { c.urlParams_.Set("query", query) @@ -1563,33 +1331,29 @@ func (c *OrganizationsProductsSearchCall) Query(query string) *OrganizationsProd } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsProductsSearchCall) Fields(s ...googleapi.Field) *OrganizationsProductsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsProductsSearchCall) IfNoneMatch(entityTag string) *OrganizationsProductsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsProductsSearchCall) Context(ctx context.Context) *OrganizationsProductsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsProductsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1598,12 +1362,7 @@ func (c *OrganizationsProductsSearchCall) Header() http.Header { } func (c *OrganizationsProductsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1620,19 +1379,17 @@ func (c *OrganizationsProductsSearchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalog.organizations.products.search" call. -// Exactly one of -// *GoogleCloudPrivatecatalogV1beta1SearchProductsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudPrivatecatalogV1beta1SearchProductsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogV1beta1SearchProductsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsProductsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogV1beta1SearchProductsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1640,17 +1397,17 @@ func (c *OrganizationsProductsSearchCall) Do(opts ...googleapi.CallOption) (*Goo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogV1beta1SearchProductsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1663,48 +1420,6 @@ func (c *OrganizationsProductsSearchCall) Do(opts ...googleapi.CallOption) (*Goo return nil, err } return ret, nil - // { - // "description": "Search Product resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", - // "flatPath": "v1beta1/organizations/{organizationsId}/products:search", - // "httpMethod": "GET", - // "id": "cloudprivatecatalog.organizations.products.search", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of entries that are requested.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to SearchProducts that\nindicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "The query to filter the products.\n\nThe supported queries are:\n* List products of all catalogs: empty\n* List products under a catalog: `parent=catalogs/{catalog_id}`\n* Get a product by name:\n`name=catalogs/{catalog_id}/products/{product_id}`", - // "location": "query", - // "type": "string" - // }, - // "resource": { - // "description": "Required. The name of the resource context. See\nSearchCatalogsRequest.resource for details.", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}/products:search", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogV1beta1SearchProductsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1712,7 +1427,7 @@ func (c *OrganizationsProductsSearchCall) Do(opts ...googleapi.CallOption) (*Goo // The provided context supersedes any context provided to the Context method. func (c *OrganizationsProductsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogV1beta1SearchProductsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1728,8 +1443,6 @@ func (c *OrganizationsProductsSearchCall) Pages(ctx context.Context, f func(*Goo } } -// method id "cloudprivatecatalog.organizations.versions.search": - type OrganizationsVersionsSearchCall struct { s *Service resource string @@ -1739,17 +1452,22 @@ type OrganizationsVersionsSearchCall struct { header_ http.Header } -// Search: Search Version resources that consumers have access to, -// within the +// Search: Search Version resources that consumers have access to, within +// the // scope of the consumer cloud resource hierarchy context. +// +// - resource: The name of the resource context. +// See +// +// SearchCatalogsRequest.resource for details. func (r *OrganizationsVersionsService) Search(resource string) *OrganizationsVersionsSearchCall { c := &OrganizationsVersionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of entries that are requested. +// PageSize sets the optional parameter "pageSize": The maximum number of +// entries that are requested. func (c *OrganizationsVersionsSearchCall) PageSize(pageSize int64) *OrganizationsVersionsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -1764,8 +1482,8 @@ func (c *OrganizationsVersionsSearchCall) PageToken(pageToken string) *Organizat return c } -// Query sets the optional parameter "query": The query to filter the -// versions. Required. +// Query sets the optional parameter "query": The query to filter the versions. +// Required. // // The supported queries are: // * List versions under a @@ -1773,41 +1491,36 @@ func (c *OrganizationsVersionsSearchCall) PageToken(pageToken string) *Organizat // `parent=catalogs/{catalog_id}/products/{product_id}` // * Get a version by // name: -// `name=catalogs/{catalog_id}/products/{product_id}/versions/{vers -// ion_id}` +// `name=catalogs/{catalog_id}/products/{product_id}/versions/{version_id}` func (c *OrganizationsVersionsSearchCall) Query(query string) *OrganizationsVersionsSearchCall { c.urlParams_.Set("query", query) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsVersionsSearchCall) Fields(s ...googleapi.Field) *OrganizationsVersionsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsVersionsSearchCall) IfNoneMatch(entityTag string) *OrganizationsVersionsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsVersionsSearchCall) Context(ctx context.Context) *OrganizationsVersionsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsVersionsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1816,12 +1529,7 @@ func (c *OrganizationsVersionsSearchCall) Header() http.Header { } func (c *OrganizationsVersionsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1838,19 +1546,17 @@ func (c *OrganizationsVersionsSearchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalog.organizations.versions.search" call. -// Exactly one of -// *GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsVersionsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1858,17 +1564,17 @@ func (c *OrganizationsVersionsSearchCall) Do(opts ...googleapi.CallOption) (*Goo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1881,48 +1587,6 @@ func (c *OrganizationsVersionsSearchCall) Do(opts ...googleapi.CallOption) (*Goo return nil, err } return ret, nil - // { - // "description": "Search Version resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", - // "flatPath": "v1beta1/organizations/{organizationsId}/versions:search", - // "httpMethod": "GET", - // "id": "cloudprivatecatalog.organizations.versions.search", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of entries that are requested.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to SearchVersions\nthat indicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "The query to filter the versions. Required.\n\nThe supported queries are:\n* List versions under a product:\n`parent=catalogs/{catalog_id}/products/{product_id}`\n* Get a version by name:\n`name=catalogs/{catalog_id}/products/{product_id}/versions/{version_id}`", - // "location": "query", - // "type": "string" - // }, - // "resource": { - // "description": "Required. The name of the resource context. See\nSearchCatalogsRequest.resource for details.", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}/versions:search", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1930,7 +1594,7 @@ func (c *OrganizationsVersionsSearchCall) Do(opts ...googleapi.CallOption) (*Goo // The provided context supersedes any context provided to the Context method. func (c *OrganizationsVersionsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1946,8 +1610,6 @@ func (c *OrganizationsVersionsSearchCall) Pages(ctx context.Context, f func(*Goo } } -// method id "cloudprivatecatalog.projects.catalogs.search": - type ProjectsCatalogsSearchCall struct { s *Service resource string @@ -1957,17 +1619,26 @@ type ProjectsCatalogsSearchCall struct { header_ http.Header } -// Search: Search Catalog resources that consumers have access to, -// within the +// Search: Search Catalog resources that consumers have access to, within +// the // scope of the consumer cloud resource hierarchy context. +// +// - resource: The name of the resource context. It can be in following +// formats: +// +// - `projects/{project_id}` +// +// - `folders/{folder_id}` +// +// * `organizations/{organization_id}`. func (r *ProjectsCatalogsService) Search(resource string) *ProjectsCatalogsSearchCall { c := &ProjectsCatalogsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of entries that are requested. +// PageSize sets the optional parameter "pageSize": The maximum number of +// entries that are requested. func (c *ProjectsCatalogsSearchCall) PageSize(pageSize int64) *ProjectsCatalogsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -1982,8 +1653,8 @@ func (c *ProjectsCatalogsSearchCall) PageToken(pageToken string) *ProjectsCatalo return c } -// Query sets the optional parameter "query": The query to filter the -// catalogs. The supported queries are: +// Query sets the optional parameter "query": The query to filter the catalogs. +// The supported queries are: // // * Get a single catalog: `name=catalogs/{catalog_id}` func (c *ProjectsCatalogsSearchCall) Query(query string) *ProjectsCatalogsSearchCall { @@ -1992,33 +1663,29 @@ func (c *ProjectsCatalogsSearchCall) Query(query string) *ProjectsCatalogsSearch } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsCatalogsSearchCall) Fields(s ...googleapi.Field) *ProjectsCatalogsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsCatalogsSearchCall) IfNoneMatch(entityTag string) *ProjectsCatalogsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsCatalogsSearchCall) Context(ctx context.Context) *ProjectsCatalogsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsCatalogsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2027,12 +1694,7 @@ func (c *ProjectsCatalogsSearchCall) Header() http.Header { } func (c *ProjectsCatalogsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2049,19 +1711,17 @@ func (c *ProjectsCatalogsSearchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalog.projects.catalogs.search" call. -// Exactly one of -// *GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2069,17 +1729,17 @@ func (c *ProjectsCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2092,48 +1752,6 @@ func (c *ProjectsCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCl return nil, err } return ret, nil - // { - // "description": "Search Catalog resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", - // "flatPath": "v1beta1/projects/{projectsId}/catalogs:search", - // "httpMethod": "GET", - // "id": "cloudprivatecatalog.projects.catalogs.search", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of entries that are requested.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to SearchCatalogs that\nindicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "The query to filter the catalogs. The supported queries are:\n\n* Get a single catalog: `name=catalogs/{catalog_id}`", - // "location": "query", - // "type": "string" - // }, - // "resource": { - // "description": "Required. The name of the resource context. It can be in following formats:\n\n* `projects/{project_id}`\n* `folders/{folder_id}`\n* `organizations/{organization_id}`", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}/catalogs:search", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2141,7 +1759,7 @@ func (c *ProjectsCatalogsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCl // The provided context supersedes any context provided to the Context method. func (c *ProjectsCatalogsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2157,8 +1775,6 @@ func (c *ProjectsCatalogsSearchCall) Pages(ctx context.Context, f func(*GoogleCl } } -// method id "cloudprivatecatalog.projects.products.search": - type ProjectsProductsSearchCall struct { s *Service resource string @@ -2168,17 +1784,22 @@ type ProjectsProductsSearchCall struct { header_ http.Header } -// Search: Search Product resources that consumers have access to, -// within the +// Search: Search Product resources that consumers have access to, within +// the // scope of the consumer cloud resource hierarchy context. +// +// - resource: The name of the resource context. +// See +// +// SearchCatalogsRequest.resource for details. func (r *ProjectsProductsService) Search(resource string) *ProjectsProductsSearchCall { c := &ProjectsProductsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of entries that are requested. +// PageSize sets the optional parameter "pageSize": The maximum number of +// entries that are requested. func (c *ProjectsProductsSearchCall) PageSize(pageSize int64) *ProjectsProductsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -2199,8 +1820,7 @@ func (c *ProjectsProductsSearchCall) PageToken(pageToken string) *ProjectsProduc // The supported queries are: // * List products of all catalogs: empty // * List products under a catalog: `parent=catalogs/{catalog_id}` -// * Get a product by -// name: +// * Get a product by name: // `name=catalogs/{catalog_id}/products/{product_id}` func (c *ProjectsProductsSearchCall) Query(query string) *ProjectsProductsSearchCall { c.urlParams_.Set("query", query) @@ -2208,33 +1828,29 @@ func (c *ProjectsProductsSearchCall) Query(query string) *ProjectsProductsSearch } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsProductsSearchCall) Fields(s ...googleapi.Field) *ProjectsProductsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsProductsSearchCall) IfNoneMatch(entityTag string) *ProjectsProductsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsProductsSearchCall) Context(ctx context.Context) *ProjectsProductsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsProductsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2243,12 +1859,7 @@ func (c *ProjectsProductsSearchCall) Header() http.Header { } func (c *ProjectsProductsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2265,19 +1876,17 @@ func (c *ProjectsProductsSearchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalog.projects.products.search" call. -// Exactly one of -// *GoogleCloudPrivatecatalogV1beta1SearchProductsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudPrivatecatalogV1beta1SearchProductsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogV1beta1SearchProductsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsProductsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogV1beta1SearchProductsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2285,17 +1894,17 @@ func (c *ProjectsProductsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogV1beta1SearchProductsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2308,48 +1917,6 @@ func (c *ProjectsProductsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCl return nil, err } return ret, nil - // { - // "description": "Search Product resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", - // "flatPath": "v1beta1/projects/{projectsId}/products:search", - // "httpMethod": "GET", - // "id": "cloudprivatecatalog.projects.products.search", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of entries that are requested.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to SearchProducts that\nindicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "The query to filter the products.\n\nThe supported queries are:\n* List products of all catalogs: empty\n* List products under a catalog: `parent=catalogs/{catalog_id}`\n* Get a product by name:\n`name=catalogs/{catalog_id}/products/{product_id}`", - // "location": "query", - // "type": "string" - // }, - // "resource": { - // "description": "Required. The name of the resource context. See\nSearchCatalogsRequest.resource for details.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}/products:search", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogV1beta1SearchProductsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2357,7 +1924,7 @@ func (c *ProjectsProductsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCl // The provided context supersedes any context provided to the Context method. func (c *ProjectsProductsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogV1beta1SearchProductsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2373,8 +1940,6 @@ func (c *ProjectsProductsSearchCall) Pages(ctx context.Context, f func(*GoogleCl } } -// method id "cloudprivatecatalog.projects.versions.search": - type ProjectsVersionsSearchCall struct { s *Service resource string @@ -2384,17 +1949,22 @@ type ProjectsVersionsSearchCall struct { header_ http.Header } -// Search: Search Version resources that consumers have access to, -// within the +// Search: Search Version resources that consumers have access to, within +// the // scope of the consumer cloud resource hierarchy context. +// +// - resource: The name of the resource context. +// See +// +// SearchCatalogsRequest.resource for details. func (r *ProjectsVersionsService) Search(resource string) *ProjectsVersionsSearchCall { c := &ProjectsVersionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of entries that are requested. +// PageSize sets the optional parameter "pageSize": The maximum number of +// entries that are requested. func (c *ProjectsVersionsSearchCall) PageSize(pageSize int64) *ProjectsVersionsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -2409,8 +1979,8 @@ func (c *ProjectsVersionsSearchCall) PageToken(pageToken string) *ProjectsVersio return c } -// Query sets the optional parameter "query": The query to filter the -// versions. Required. +// Query sets the optional parameter "query": The query to filter the versions. +// Required. // // The supported queries are: // * List versions under a @@ -2418,41 +1988,36 @@ func (c *ProjectsVersionsSearchCall) PageToken(pageToken string) *ProjectsVersio // `parent=catalogs/{catalog_id}/products/{product_id}` // * Get a version by // name: -// `name=catalogs/{catalog_id}/products/{product_id}/versions/{vers -// ion_id}` +// `name=catalogs/{catalog_id}/products/{product_id}/versions/{version_id}` func (c *ProjectsVersionsSearchCall) Query(query string) *ProjectsVersionsSearchCall { c.urlParams_.Set("query", query) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsVersionsSearchCall) Fields(s ...googleapi.Field) *ProjectsVersionsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsVersionsSearchCall) IfNoneMatch(entityTag string) *ProjectsVersionsSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsVersionsSearchCall) Context(ctx context.Context) *ProjectsVersionsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsVersionsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2461,12 +2026,7 @@ func (c *ProjectsVersionsSearchCall) Header() http.Header { } func (c *ProjectsVersionsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2483,19 +2043,17 @@ func (c *ProjectsVersionsSearchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalog.projects.versions.search" call. -// Exactly one of -// *GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsVersionsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2503,17 +2061,17 @@ func (c *ProjectsVersionsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2526,48 +2084,6 @@ func (c *ProjectsVersionsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCl return nil, err } return ret, nil - // { - // "description": "Search Version resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", - // "flatPath": "v1beta1/projects/{projectsId}/versions:search", - // "httpMethod": "GET", - // "id": "cloudprivatecatalog.projects.versions.search", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of entries that are requested.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to SearchVersions\nthat indicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "The query to filter the versions. Required.\n\nThe supported queries are:\n* List versions under a product:\n`parent=catalogs/{catalog_id}/products/{product_id}`\n* Get a version by name:\n`name=catalogs/{catalog_id}/products/{product_id}/versions/{version_id}`", - // "location": "query", - // "type": "string" - // }, - // "resource": { - // "description": "Required. The name of the resource context. See\nSearchCatalogsRequest.resource for details.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}/versions:search", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2575,7 +2091,7 @@ func (c *ProjectsVersionsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCl // The provided context supersedes any context provided to the Context method. func (c *ProjectsVersionsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/cloudprivatecatalogproducer/v1beta1/cloudprivatecatalogproducer-gen.go b/cloudprivatecatalogproducer/v1beta1/cloudprivatecatalogproducer-gen.go index f94d4e8b4fc..0926d895318 100644 --- a/cloudprivatecatalogproducer/v1beta1/cloudprivatecatalogproducer-gen.go +++ b/cloudprivatecatalogproducer/v1beta1/cloudprivatecatalogproducer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/private-catalog/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // cloudprivatecatalogproducerService, err := cloudprivatecatalogproducer.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // cloudprivatecatalogproducerService, err := cloudprivatecatalogproducer.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // cloudprivatecatalogproducerService, err := cloudprivatecatalogproducer.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package cloudprivatecatalogproducer // import "google.golang.org/api/cloudprivatecatalogproducer/v1beta1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,14 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "cloudprivatecatalogproducer:v1beta1" const apiName = "cloudprivatecatalogproducer" const apiVersion = "v1beta1" const basePath = "https://cloudprivatecatalogproducer.googleapis.com/" +const basePathTemplate = "https://cloudprivatecatalogproducer.UNIVERSE_DOMAIN/" +const mtlsBasePath = "https://cloudprivatecatalogproducer.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -84,12 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -202,19 +222,18 @@ type OperationsService struct { s *Service } -// GoogleCloudPrivatecatalogproducerV1beta1Association: An association -// tuple that pairs a `Catalog` to a resource +// GoogleCloudPrivatecatalogproducerV1beta1Association: An association tuple +// that pairs a `Catalog` to a resource // that can use the `Catalog`. After association, // a -// google.cloud.privatecatalog.v1beta1.Catalog becomes available -// to +// google.cloud.privatecatalog.v1beta1.Catalog becomes available to // consumers under specified Association.resource and all of its // child // nodes. -// Users who have the `cloudprivatecatalog.targets.get` permission on -// any of -// the resource nodes can access the catalog and child products under -// the node. +// Users who have the `cloudprivatecatalog.targets.get` permission on any +// of +// the resource nodes can access the catalog and child products under the +// node. // // For example, suppose the cloud resource hierarchy is as follows: // @@ -230,80 +249,62 @@ type OperationsService struct { // * folders/team // * projects/test // -// Users can access them -// by +// Users can access them by // google.cloud.v1beta1.PrivateCatalog.SearchCatalogs action. type GoogleCloudPrivatecatalogproducerV1beta1Association struct { // CreateTime: The creation time of the association. CreateTime string `json:"createTime,omitempty"` - - // Name: Output only. The resource name of the catalog association, in - // the format + // Name: Output only. The resource name of the catalog association, in the + // format // `catalogs/{catalog_id}/associations/{association_id}'. // // A unique identifier for the catalog association, which is // generated by catalog service. Name string `json:"name,omitempty"` - // Resource: Required. The user-supplied fully qualified name of the // `Resource` - // associated to the `Catalog`. It supports `Organization`, - // `Folder`, + // associated to the `Catalog`. It supports `Organization`, `Folder`, // and `Project`. Values are of the form // // * `//cloudresourcemanager.googleapis.com/projects/{product_number}` // * `//cloudresourcemanager.googleapis.com/folders/{folder_id}` - // * - // `//cloudresourcemanager.googleapis.com/organizations/{organization_id} - // ` + // * `//cloudresourcemanager.googleapis.com/organizations/{organization_id}` Resource string `json:"resource,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1Association) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1Association) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1Association - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPrivatecatalogproducerV1beta1Catalog: The producer -// representation of a catalog which is a curated collection -// of -// solutions that can be managed, controlled, and shared by cloud -// admins. +// GoogleCloudPrivatecatalogproducerV1beta1Catalog: The producer representation +// of a catalog which is a curated collection of +// solutions that can be managed, controlled, and shared by cloud admins. type GoogleCloudPrivatecatalogproducerV1beta1Catalog struct { // CreateTime: Output only. The time when the catalog was created. CreateTime string `json:"createTime,omitempty"` - - // Description: Required. The user-supplied description of the catalog. - // Maximum of 512 + // Description: Required. The user-supplied description of the catalog. Maximum + // of 512 // characters. Description string `json:"description,omitempty"` - - // DisplayName: Required. The user-supplied descriptive name of the - // catalog as it appears + // DisplayName: Required. The user-supplied descriptive name of the catalog as + // it appears // in UIs. Maximum 256 characters in length. DisplayName string `json:"displayName,omitempty"` - // Name: Output only. The resource name of the catalog, in the // format // `catalogs/{catalog_id}'. @@ -311,74 +312,56 @@ type GoogleCloudPrivatecatalogproducerV1beta1Catalog struct { // A unique identifier for the catalog, which is generated // by catalog service. Name string `json:"name,omitempty"` - - // Parent: Required. The parent resource name of the catalog, which - // can't be changed - // after a catalog is created. It can only be an organization. Values - // are of - // the form - // `//cloudresourcemanager.googleapis.com/organizations/`. + // Parent: Required. The parent resource name of the catalog, which can't be + // changed + // after a catalog is created. It can only be an organization. Values are + // of + // the form `//cloudresourcemanager.googleapis.com/organizations/`. // Maximum 256 characters in length. Parent string `json:"parent,omitempty"` - // UpdateTime: Output only. The time when the catalog was last updated. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1Catalog) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1Catalog) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1Catalog - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest struct { - // DestinationProductName: The resource name of the destination product - // that is copied to. + // DestinationProductName: The resource name of the destination product that is + // copied to. DestinationProductName string `json:"destinationProductName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DestinationProductName") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DestinationProductName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DestinationProductName") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DestinationProductName") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest struct { @@ -387,39 +370,31 @@ type GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest struct { // // If the `resource` field is set, // the - // `privatecatalogproducer.catalogTargets.associate` permission is - // checked on + // `privatecatalogproducer.catalogTargets.associate` permission is checked + // on // the target resource. Association *GoogleCloudPrivatecatalogproducerV1beta1Association `json:"association,omitempty"` - // ForceSendFields is a list of field names (e.g. "Association") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Association") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Association") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse struct { - // Associations: The returned `Association` resources from the list - // call. + // Associations: The returned `Association` resources from the list call. Associations []*GoogleCloudPrivatecatalogproducerV1beta1Association `json:"associations,omitempty"` - // NextPageToken: A pagination token returned from a previous call // to // `ListAssociations` that indicates where the listing should continue @@ -427,68 +402,53 @@ type GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse struct { // This field is optional. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Associations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Associations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Associations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse struct { // Catalogs: The `Catalogs` returned from the list call. Catalogs []*GoogleCloudPrivatecatalogproducerV1beta1Catalog `json:"catalogs,omitempty"` - // NextPageToken: A pagination token returned from a previous call to // ListCatalogs // that indicates where the listing should continue from. // This field is optional. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Catalogs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Catalogs") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Catalogs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse struct { @@ -497,35 +457,27 @@ type GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse struct { // that indicates where the listing should continue from. // This field is optional. NextPageToken string `json:"nextPageToken,omitempty"` - // Products: The `Product` returned from the list call. Products []*GoogleCloudPrivatecatalogproducerV1beta1Product `json:"products,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse struct { @@ -534,66 +486,53 @@ type GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse struct { // that indicates where the listing should continue from. // This field is optional. NextPageToken string `json:"nextPageToken,omitempty"` - // Versions: The `VersiVersionon` returned from the list call. Versions []*GoogleCloudPrivatecatalogproducerV1beta1Version `json:"versions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPrivatecatalogproducerV1beta1Product: The producer -// representation of a product which is a child resource of +// GoogleCloudPrivatecatalogproducerV1beta1Product: The producer representation +// of a product which is a child resource of // `Catalog` with display metadata and a list of `Version` resources. type GoogleCloudPrivatecatalogproducerV1beta1Product struct { - // AssetType: Required. The type of the product asset, which cannot be - // changed after the + // AssetType: Required. The type of the product asset, which cannot be changed + // after the // product is created. It supports the // values // `google.deploymentmanager.Template` // and - // `google.cloudprivatecatalog.ListingOnly`. Other values will - // be + // `google.cloudprivatecatalog.ListingOnly`. Other values will be // rejected by the server. Read only after creation. // - // The following fields or resource types have different validation - // rules + // The following fields or resource types have different validation rules // under each `asset_type` values: // - // * Product.display_metadata has different validation schema for - // each + // * Product.display_metadata has different validation schema for each // asset type value. See its comment for details. // * Version resource isn't allowed to be added under // the // `google.cloudprivatecatalog.ListingOnly` type. AssetType string `json:"assetType,omitempty"` - // CreateTime: Output only. The time when the product was created. CreateTime string `json:"createTime,omitempty"` - // DisplayMetadata: The user-supplied display metadata to describe the // product. // The JSON schema of the metadata differs by Product.asset_type. @@ -633,8 +572,7 @@ type GoogleCloudPrivatecatalogproducerV1beta1Product struct { // url: // type: string // pattern: - // - // "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" + // "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" // title: // type: string // minLength: 1 @@ -686,8 +624,7 @@ type GoogleCloudPrivatecatalogproducerV1beta1Product struct { // url: // type: string // pattern: - // - // "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" + // "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" // title: // type: string // minLength: 1 @@ -701,22 +638,19 @@ type GoogleCloudPrivatecatalogproducerV1beta1Product struct { // pattern: // // "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" - // requ - // ired: + // required: // - name // - description // - signup_url // additionalProperties: false // ``` DisplayMetadata googleapi.RawMessage `json:"displayMetadata,omitempty"` - // IconUri: Output only. The public accessible URI of the icon uploaded // by // PrivateCatalogProducer.UploadIcon. // // If no icon is uploaded, it will be the default icon's URI. IconUri string `json:"iconUri,omitempty"` - // Name: Required. The resource name of the product in the // format // `catalogs/{catalog_id}/products/a-z*[a-z0-9]'. @@ -725,103 +659,82 @@ type GoogleCloudPrivatecatalogproducerV1beta1Product struct { // be changed after the product is created. The final // segment of the name must between 1 and 256 characters in length. Name string `json:"name,omitempty"` - // UpdateTime: Output only. The time when the product was last updated. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AssetType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssetType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1Product) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1Product) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1Product - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest struct { } type GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest struct { - // Icon: The raw icon bytes user-supplied to be uploaded to the product. - // The format + // Icon: The raw icon bytes user-supplied to be uploaded to the product. The + // format // of the icon can only be PNG or JPEG. The minimum allowed dimensions // are - // 130x130 pixels and the maximum dimensions are 10000x10000 - // pixels. + // 130x130 pixels and the maximum dimensions are 10000x10000 pixels. // Required. Icon string `json:"icon,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Icon") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Icon") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Icon") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Icon") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPrivatecatalogproducerV1beta1Version: The producer -// representation of a version, which is a child resource under -// a +// GoogleCloudPrivatecatalogproducerV1beta1Version: The producer representation +// of a version, which is a child resource under a // `Product` with asset data. type GoogleCloudPrivatecatalogproducerV1beta1Version struct { - // Asset: Output only. The asset which has been validated and is ready - // to be + // Asset: Output only. The asset which has been validated and is ready to + // be // provisioned. See Version.original_asset for the schema. Asset googleapi.RawMessage `json:"asset,omitempty"` - // CreateTime: Output only. The time when the version was created. CreateTime string `json:"createTime,omitempty"` - - // Description: The user-supplied description of the version. Maximum of - // 256 characters. + // Description: The user-supplied description of the version. Maximum of 256 + // characters. Description string `json:"description,omitempty"` - // Name: Required. The resource name of the version, in the // format - // `catalogs/{catalog_id}/products/{product_id}/versions/a-z*[a-z0 - // -9]'. + // `catalogs/{catalog_id}/products/{product_id}/versions/a-z*[a-z0-9]'. // // A unique identifier for the version under a product, which can't - // be changed after the version is created. The final segment of the - // name must + // be changed after the version is created. The final segment of the name + // must // between 1 and 63 characters in length. Name string `json:"name,omitempty"` - - // OriginalAsset: The user-supplied asset payload. The maximum size of - // the payload is 2MB. + // OriginalAsset: The user-supplied asset payload. The maximum size of the + // payload is 2MB. // The JSON schema of the payload is defined as: // // ``` @@ -829,18 +742,14 @@ type GoogleCloudPrivatecatalogproducerV1beta1Version struct { // properties: // mainTemplate: // type: string - // description: The file name of the main template and name prefix - // of - // schema file. The content of the main template should be set in - // the + // description: The file name of the main template and name prefix of + // schema file. The content of the main template should be set in the // imports list. The schema file name is expected to be // .schema in the imports list. required: true // imports: // type: array - // description: Import template and schema file contents. Required - // to have - // both and .schema files. required: - // true + // description: Import template and schema file contents. Required to have + // both and .schema files. required: true // minItems: 2 // items: // type: object @@ -851,50 +760,40 @@ type GoogleCloudPrivatecatalogproducerV1beta1Version struct { // type: string // ``` OriginalAsset googleapi.RawMessage `json:"originalAsset,omitempty"` - // UpdateTime: Output only. The time when the version was last updated. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Asset") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Asset") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Asset") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPrivatecatalogproducerV1beta1Version) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPrivatecatalogproducerV1beta1Version) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPrivatecatalogproducerV1beta1Version - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1AuditConfig: Specifies the audit configuration for a -// service. +// GoogleIamV1AuditConfig: Specifies the audit configuration for a service. // The configuration determines which permission types are logged, and // what // identities, if any, are exempted from logging. // An AuditConfig must have one or more AuditLogConfigs. // -// If there are AuditConfigs for both `allServices` and a specific -// service, +// If there are AuditConfigs for both `allServices` and a specific service, // the union of the two AuditConfigs is used for that service: the // log_types -// specified in each AuditConfig are enabled, and the exempted_members -// in each +// specified in each AuditConfig are enabled, and the exempted_members in +// each // AuditLogConfig are exempted. // // Example Policy with multiple AuditConfigs: @@ -941,43 +840,33 @@ func (s *GoogleCloudPrivatecatalogproducerV1beta1Version) MarshalJSON() ([]byte, // and // aliya@example.com from DATA_WRITE logging. type GoogleIamV1AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit - // logging. + // Service: Specifies a service that will be enabled for audit logging. // For example, `storage.googleapis.com`, // `cloudsql.googleapis.com`. // `allServices` is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1AuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1AuditLogConfig: Provides the configuration for logging a -// type of permissions. +// GoogleIamV1AuditLogConfig: Provides the configuration for logging a type of +// permissions. // Example: // // { @@ -998,12 +887,11 @@ func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { // exempting // jose@example.com from DATA_READ logging. type GoogleIamV1AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of // permission. // Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. // // Possible values: @@ -1012,29 +900,22 @@ type GoogleIamV1AuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1AuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1Binding: Associates `members` with a `role`. @@ -1046,111 +927,83 @@ type GoogleIamV1Binding struct { // examined // independently. Condition *GoogleTypeExpr `json:"condition,omitempty"` - - // Members: Specifies the identities requesting access for a Cloud - // Platform resource. + // Members: Specifies the identities requesting access for a Cloud Platform + // resource. // `members` can have the following values: // // * `allUsers`: A special identifier that represents anyone who is // on the internet; with or without a Google account. // - // * `allAuthenticatedUsers`: A special identifier that represents - // anyone - // who is authenticated with a Google account or a service - // account. + // * `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. // - // * `user:{emailid}`: An email address that represents a specific - // Google + // * `user:{emailid}`: An email address that represents a specific Google // account. For example, `alice@example.com` . // // - // * `serviceAccount:{emailid}`: An email address that represents a - // service - // account. For example, - // `my-other-app@appspot.gserviceaccount.com`. + // * `serviceAccount:{emailid}`: An email address that represents a service + // account. For example, `my-other-app@appspot.gserviceaccount.com`. // - // * `group:{emailid}`: An email address that represents a Google - // group. + // * `group:{emailid}`: An email address that represents a Google group. // For example, `admins@example.com`. // - // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique - // identifier) representing a user that has been recently deleted. - // For - // example, `alice@example.com?uid=123456789012345678901`. If the - // user is - // recovered, this value reverts to `user:{emailid}` and the - // recovered user + // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + // identifier) representing a user that has been recently deleted. For + // example, `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered user // retains the role in the binding. // - // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus - // unique identifier) representing a service account that has been - // recently + // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a service account that has been recently // deleted. For example, - // - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account - // retains the + // `serviceAccount:{emailid}` and the undeleted service account retains the // role in the binding. // - // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus - // unique + // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique // identifier) representing a Google group that has been recently - // deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If - // the group is recovered, this value reverts to `group:{emailid}` - // and the + // deleted. For example, `admins@example.com?uid=123456789012345678901`. If + // the group is recovered, this value reverts to `group:{emailid}` and the // recovered group retains the role in the binding. // // - // * `domain:{domain}`: The G Suite domain (primary) that represents all - // the - // users of that domain. For example, `google.com` or - // `example.com`. + // * `domain:{domain}`: The G Suite domain (primary) that represents all the + // users of that domain. For example, `google.com` or `example.com`. // // Members []string `json:"members,omitempty"` - // Role: Role that is assigned to `members`. // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1Binding) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, -// which specifies access +// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, which +// specifies access // controls for Google Cloud resources. // // A `Policy` is a collection of `bindings`. A `binding` binds one or // more // `members` to a single `role`. Members can be user accounts, service // accounts, -// Google groups, and domains (such as G Suite). A `role` is a named -// list of +// Google groups, and domains (such as G Suite). A `role` is a named list +// of // permissions; each `role` can be an IAM predefined role or a // user-created // custom role. @@ -1173,18 +1026,16 @@ func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) { // "user:mike@example.com", // "group:admins@example.com", // "domain:google.com", -// -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" -// -// ] -// }, -// { -// "role": "roles/resourcemanager.organizationViewer", -// "members": ["user:eve@example.com"], -// "condition": { -// "title": "expirable access", -// "description": "Does not grant access after Sep 2020", -// "expression": "request.time < +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" +// ] +// }, +// { +// "role": "roles/resourcemanager.organizationViewer", +// "members": ["user:eve@example.com"], +// "condition": { +// "title": "expirable access", +// "description": "Does not grant access after Sep 2020", +// "expression": "request.time < // // timestamp('2020-10-01T00:00:00.000Z')", // @@ -1210,38 +1061,31 @@ func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) { // condition: // title: expirable access // description: Does not grant access after Sep 2020 -// expression: request.time < -// -// timestamp('2020-10-01T00:00:00.000Z') -// - etag: BwWWja0YfJA= -// - version: 3 +// expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +// - etag: BwWWja0YfJA= +// - version: 3 // // For a description of IAM and its features, see the -// [IAM documentation](https://cloud.google.com/iam/docs/). +// IAM documentation (https://cloud.google.com/iam/docs/). type GoogleIamV1Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"` - // Bindings: Associates a list of `members` to a `role`. Optionally, may // specify a - // `condition` that determines how and when the `bindings` are applied. - // Each + // `condition` that determines how and when the `bindings` are applied. Each // of the `bindings` must contain at least one member. Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to // help - // prevent simultaneous updates of a policy from overwriting each - // other. + // prevent simultaneous updates of a policy from overwriting each other. // It is strongly suggested that systems make use of the `etag` in // the // read-modify-write cycle to perform policy updates in order to avoid // race // conditions: An `etag` is returned in the response to `getIamPolicy`, // and - // systems are expected to put that etag in the request to - // `setIamPolicy` to + // systems are expected to put that etag in the request to `setIamPolicy` + // to // ensure that their change will be applied to the same version of the // policy. // @@ -1249,11 +1093,10 @@ type GoogleIamV1Policy struct { // field // whenever you call `setIamPolicy`. If you omit this field, then IAM // allows - // you to overwrite a version `3` policy with a version `1` policy, and - // all of + // you to overwrite a version `3` policy with a version `1` policy, and all + // of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - // Version: Specifies the format of the policy. // // Valid values are `0`, `1`, and `3`. Requests that specify an invalid @@ -1267,161 +1110,129 @@ type GoogleIamV1Policy struct { // * Getting a policy that includes a conditional role binding // * Adding a conditional role binding to a policy // * Changing a conditional role binding in a policy - // * Removing any role binding, with or without a condition, from a - // policy + // * Removing any role binding, with or without a condition, from a policy // that includes conditions // // **Important:** If you use IAM Conditions, you must include the `etag` // field // whenever you call `setIamPolicy`. If you omit this field, then IAM // allows - // you to overwrite a version `3` policy with a version `1` policy, and - // all of + // you to overwrite a version `3` policy with a version `1` policy, and all + // of // the conditions in the version `3` policy are lost. // - // If a policy does not include any conditions, operations on that - // policy may + // If a policy does not include any conditions, operations on that policy + // may // specify any valid version or leave the field unset. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1Policy) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` -// method. +// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` method. type GoogleIamV1SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of // the policy is limited to a few 10s of KB. An empty policy is a - // valid policy but certain Cloud Platform services (such as - // Projects) + // valid policy but certain Cloud Platform services (such as Projects) // might reject them. Policy *GoogleIamV1Policy `json:"policy,omitempty"` - - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only // the fields in the mask will be modified. If no mask is provided, // the // following default mask is used: // paths: "bindings, etag" // This field is only used by Cloud IAM. UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1TestIamPermissionsRequest: Request message for // `TestIamPermissions` method. type GoogleIamV1TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with - // wildcards (such as '*' or 'storage.*') are not allowed. For - // more + // Permissions: The set of permissions to check for the `resource`. Permissions + // with + // wildcards (such as '*' or 'storage.*') are not allowed. For more // information see - // [IAM - // Overview](https://cloud.google.com/iam/docs/overview#permissions). + // IAM Overview (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1TestIamPermissionsResponse: Response message for // `TestIamPermissions` method. type GoogleIamV1TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is // allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningCancelOperationRequest: The request message for @@ -1434,36 +1245,28 @@ type GoogleLongrunningCancelOperationRequest struct { type GoogleLongrunningListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningOperation: This resource represents a long-running @@ -1472,152 +1275,119 @@ func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) type GoogleLongrunningOperation struct { // Done: If the value is `false`, it means the operation is still in // progress. - // If `true`, the operation is completed, and either `error` or - // `response` is + // If `true`, the operation is completed, and either `error` or `response` + // is // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. - // It typically - // contains progress information and common metadata such as create - // time. - // Some services might not provide such metadata. Any method that - // returns a + // Metadata: Service-specific metadata associated with the operation. It + // typically + // contains progress information and common metadata such as create time. + // Some services might not provide such metadata. Any method that returns + // a // long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that - // originally returns it. If you use the default HTTP mapping, - // the - // `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that + // originally returns it. If you use the default HTTP mapping, the + // `name` should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. - // If the original + // Response: The normal response of the operation in case of success. If the + // original // method returns no data on success, such as `Delete`, the response // is // `google.protobuf.Empty`. If the original method is // standard // `Get`/`Create`/`Update`, the response should be the resource. For // other - // methods, the response should have the type `XxxResponse`, where - // `Xxx` - // is the original method name. For example, if the original method - // name - // is `TakeSnapshot()`, the inferred response type - // is + // methods, the response should have the type `XxxResponse`, where `Xxx` + // is the original method name. For example, if the original method name + // is `TakeSnapshot()`, the inferred response type is // `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleProtobufEmpty: A generic empty message that you can re-use to -// avoid defining duplicated +// GoogleProtobufEmpty: A generic empty message that you can re-use to avoid +// defining duplicated // empty messages in your APIs. A typical example is to use it as the // request // or the response type of an API method. For instance: // // service Foo { -// rpc Bar(google.protobuf.Empty) returns -// -// (google.protobuf.Empty); -// +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); // } // // The JSON representation for `Empty` is empty JSON object `{}`. type GoogleProtobufEmpty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// GoogleRpcStatus: The `Status` type defines a logical error model that -// is suitable for -// different programming environments, including REST APIs and RPC APIs. -// It is -// used by [gRPC](https://github.com/grpc). Each `Status` message -// contains -// three pieces of data: error code, error message, and error -// details. +// GoogleRpcStatus: The `Status` type defines a logical error model that is +// suitable for +// different programming environments, including REST APIs and RPC APIs. It +// is +// used by gRPC (https://github.com/grpc). Each `Status` message contains +// three pieces of data: error code, error message, and error details. // -// You can find out more about this error model and how to work with it -// in the -// [API Design Guide](https://cloud.google.com/apis/design/errors). +// You can find out more about this error model and how to work with it in +// the +// API Design Guide (https://cloud.google.com/apis/design/errors). type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of + // Details: A list of messages that carry the error details. There is a common + // set of // message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any + // Message: A developer-facing error message, which should be in English. + // Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { +func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleRpcStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleTypeExpr: Represents a textual expression in the Common -// Expression Language (CEL) -// syntax. CEL is a C-like expression language. The syntax and semantics -// of CEL +// GoogleTypeExpr: Represents a textual expression in the Common Expression +// Language (CEL) +// syntax. CEL is a C-like expression language. The syntax and semantics of +// CEL // are documented at https://github.com/google/cel-spec. // // Example (Comparison): @@ -1630,9 +1400,7 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // // title: "Requestor is owner" // description: "Determines if requestor is the document owner" -// expression: "document.owner == -// -// request.auth.claims.email" +// expression: "document.owner == request.auth.claims.email" // // Example (Logic): // @@ -1659,53 +1427,42 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // service // documentation for additional information. type GoogleTypeExpr struct { - // Description: Optional. Description of the expression. This is a - // longer text which + // Description: Optional. Description of the expression. This is a longer text + // which // describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language + // Expression: Textual representation of an expression in Common Expression + // Language // syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error + // Location: Optional. String indicating the location of the expression for + // error // reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - // Title: Optional. Title for the expression, i.e. a short string // describing // its purpose. This can be used e.g. in UIs which allow to enter // the // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) { +func (s GoogleTypeExpr) MarshalJSON() ([]byte, error) { type NoMethod GoogleTypeExpr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "cloudprivatecatalogproducer.catalogs.create": - type CatalogsCreateCall struct { s *Service googlecloudprivatecatalogproducerv1beta1catalog *GoogleCloudPrivatecatalogproducerV1beta1Catalog @@ -1722,23 +1479,21 @@ func (r *CatalogsService) Create(googlecloudprivatecatalogproducerv1beta1catalog } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsCreateCall) Fields(s ...googleapi.Field) *CatalogsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsCreateCall) Context(ctx context.Context) *CatalogsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1747,18 +1502,12 @@ func (c *CatalogsCreateCall) Header() http.Header { } func (c *CatalogsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudprivatecatalogproducerv1beta1catalog) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/catalogs") @@ -1768,16 +1517,15 @@ func (c *CatalogsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.create" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1785,17 +1533,17 @@ func (c *CatalogsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -1808,28 +1556,7 @@ func (c *CatalogsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin return nil, err } return ret, nil - // { - // "description": "Creates a new Catalog resource.", - // "flatPath": "v1beta1/catalogs", - // "httpMethod": "POST", - // "id": "cloudprivatecatalogproducer.catalogs.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta1/catalogs", - // "request": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Catalog" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.delete": +} type CatalogsDeleteCall struct { s *Service @@ -1839,22 +1566,22 @@ type CatalogsDeleteCall struct { header_ http.Header } -// Delete: Soft deletes an existing Catalog and all resources under -// it. +// Delete: Soft deletes an existing Catalog and all resources under it. // The catalog can only be deleted if there is no associations under it // or // DeleteCatalogRequest.force is true. The delete operation -// can be recovered by the -// PrivateCatalogProducer.UndeleteCatalog +// can be recovered by the PrivateCatalogProducer.UndeleteCatalog // method. +// +// - name: The resource name of the catalog. func (r *CatalogsService) Delete(name string) *CatalogsDeleteCall { c := &CatalogsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": Forces deletion of the -// `Catalog` and its `Association` resources. +// Force sets the optional parameter "force": Forces deletion of the `Catalog` +// and its `Association` resources. // If the `Catalog` is still associated with other resources and // force is not set to true, then the operation fails. func (c *CatalogsDeleteCall) Force(force bool) *CatalogsDeleteCall { @@ -1863,23 +1590,21 @@ func (c *CatalogsDeleteCall) Force(force bool) *CatalogsDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsDeleteCall) Fields(s ...googleapi.Field) *CatalogsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsDeleteCall) Context(ctx context.Context) *CatalogsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1888,12 +1613,7 @@ func (c *CatalogsDeleteCall) Header() http.Header { } func (c *CatalogsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1907,20 +1627,15 @@ func (c *CatalogsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.delete" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Catalog or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1928,17 +1643,17 @@ func (c *CatalogsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPriva if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Catalog{ ServerResponse: googleapi.ServerResponse{ @@ -1951,40 +1666,7 @@ func (c *CatalogsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPriva return nil, err } return ret, nil - // { - // "description": "Soft deletes an existing Catalog and all resources under it.\nThe catalog can only be deleted if there is no associations under it or\nDeleteCatalogRequest.force is true. The delete operation\ncan be recovered by the PrivateCatalogProducer.UndeleteCatalog\nmethod.", - // "flatPath": "v1beta1/catalogs/{catalogsId}", - // "httpMethod": "DELETE", - // "id": "cloudprivatecatalogproducer.catalogs.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "force": { - // "description": "Forces deletion of the `Catalog` and its `Association` resources.\nIf the `Catalog` is still associated with other resources and\nforce is not set to true, then the operation fails.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "The resource name of the catalog.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Catalog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.get": +} type CatalogsGetCall struct { s *Service @@ -1996,6 +1678,8 @@ type CatalogsGetCall struct { } // Get: Returns the requested Catalog resource. +// +// - name: The resource name of the catalog. func (r *CatalogsService) Get(name string) *CatalogsGetCall { c := &CatalogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2003,33 +1687,29 @@ func (r *CatalogsService) Get(name string) *CatalogsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsGetCall) Fields(s ...googleapi.Field) *CatalogsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CatalogsGetCall) IfNoneMatch(entityTag string) *CatalogsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsGetCall) Context(ctx context.Context) *CatalogsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2038,12 +1718,7 @@ func (c *CatalogsGetCall) Header() http.Header { } func (c *CatalogsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2060,20 +1735,15 @@ func (c *CatalogsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.get" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Catalog or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2081,17 +1751,17 @@ func (c *CatalogsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatec if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Catalog{ ServerResponse: googleapi.ServerResponse{ @@ -2104,35 +1774,7 @@ func (c *CatalogsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatec return nil, err } return ret, nil - // { - // "description": "Returns the requested Catalog resource.", - // "flatPath": "v1beta1/catalogs/{catalogsId}", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.catalogs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the catalog.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Catalog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.getIamPolicy": +} type CatalogsGetIamPolicyCall struct { s *Service @@ -2144,6 +1786,10 @@ type CatalogsGetIamPolicyCall struct { } // GetIamPolicy: Gets IAM policy for the specified Catalog. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *CatalogsService) GetIamPolicy(resource string) *CatalogsGetIamPolicyCall { c := &CatalogsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2154,12 +1800,12 @@ func (r *CatalogsService) GetIamPolicy(resource string) *CatalogsGetIamPolicyCal // "options.requestedPolicyVersion": The policy format version to be // returned. // -// Valid values are 0, 1, and 3. Requests specifying an invalid value -// will be +// Valid values are 0, 1, and 3. Requests specifying an invalid value will +// be // rejected. // -// Requests for policies with any conditional bindings must specify -// version 3. +// Requests for policies with any conditional bindings must specify version +// 3. // Policies without any conditional bindings may specify any valid value // or // leave the field unset. @@ -2169,33 +1815,29 @@ func (c *CatalogsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequeste } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsGetIamPolicyCall) Fields(s ...googleapi.Field) *CatalogsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CatalogsGetIamPolicyCall) IfNoneMatch(entityTag string) *CatalogsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsGetIamPolicyCall) Context(ctx context.Context) *CatalogsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2204,12 +1846,7 @@ func (c *CatalogsGetIamPolicyCall) Header() http.Header { } func (c *CatalogsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2226,16 +1863,15 @@ func (c *CatalogsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.getIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CatalogsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2243,17 +1879,17 @@ func (c *CatalogsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ @@ -2266,41 +1902,7 @@ func (c *CatalogsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV return nil, err } return ret, nil - // { - // "description": "Gets IAM policy for the specified Catalog.", - // "flatPath": "v1beta1/catalogs/{catalogsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.catalogs.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.\n\nValid values are 0, 1, and 3. Requests specifying an invalid value will be\nrejected.\n\nRequests for policies with any conditional bindings must specify version 3.\nPolicies without any conditional bindings may specify any valid value or\nleave the field unset.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:getIamPolicy", - // "response": { - // "$ref": "GoogleIamV1Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.list": +} type CatalogsListCall struct { s *Service @@ -2318,8 +1920,8 @@ func (r *CatalogsService) List() *CatalogsListCall { return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of catalogs to return. +// PageSize sets the optional parameter "pageSize": The maximum number of +// catalogs to return. func (c *CatalogsListCall) PageSize(pageSize int64) *CatalogsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -2334,41 +1936,37 @@ func (c *CatalogsListCall) PageToken(pageToken string) *CatalogsListCall { return c } -// Parent sets the optional parameter "parent": The resource name of the -// parent resource. +// Parent sets the optional parameter "parent": The resource name of the parent +// resource. func (c *CatalogsListCall) Parent(parent string) *CatalogsListCall { c.urlParams_.Set("parent", parent) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsListCall) Fields(s ...googleapi.Field) *CatalogsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CatalogsListCall) IfNoneMatch(entityTag string) *CatalogsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsListCall) Context(ctx context.Context) *CatalogsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2377,12 +1975,7 @@ func (c *CatalogsListCall) Header() http.Header { } func (c *CatalogsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2396,19 +1989,15 @@ func (c *CatalogsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.list" call. -// Exactly one of -// *GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse.ServerRe -// sponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse.ServerResponse. +// Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *CatalogsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2416,17 +2005,17 @@ func (c *CatalogsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivate if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2439,39 +2028,6 @@ func (c *CatalogsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivate return nil, err } return ret, nil - // { - // "description": "Lists Catalog resources that the producer has access to, within the\nscope of the parent resource.", - // "flatPath": "v1beta1/catalogs", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.catalogs.list", - // "parameterOrder": [], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of catalogs to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to ListCatalogs\nthat indicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The resource name of the parent resource.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/catalogs", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2479,7 +2035,7 @@ func (c *CatalogsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivate // The provided context supersedes any context provided to the Context method. func (c *CatalogsListCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2495,8 +2051,6 @@ func (c *CatalogsListCall) Pages(ctx context.Context, f func(*GoogleCloudPrivate } } -// method id "cloudprivatecatalogproducer.catalogs.patch": - type CatalogsPatchCall struct { s *Service nameid string @@ -2507,6 +2061,13 @@ type CatalogsPatchCall struct { } // Patch: Updates a specific Catalog resource. +// +// - name: Output only. The resource name of the catalog, in the +// format +// `catalogs/{catalog_id}'. +// +// A unique identifier for the catalog, which is generated +// by catalog service. func (r *CatalogsService) Patch(nameid string, googlecloudprivatecatalogproducerv1beta1catalog *GoogleCloudPrivatecatalogproducerV1beta1Catalog) *CatalogsPatchCall { c := &CatalogsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.nameid = nameid @@ -2522,23 +2083,21 @@ func (c *CatalogsPatchCall) UpdateMask(updateMask string) *CatalogsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsPatchCall) Fields(s ...googleapi.Field) *CatalogsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsPatchCall) Context(ctx context.Context) *CatalogsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2547,18 +2106,12 @@ func (c *CatalogsPatchCall) Header() http.Header { } func (c *CatalogsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudprivatecatalogproducerv1beta1catalog) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -2571,20 +2124,15 @@ func (c *CatalogsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.patch" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Catalog or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2592,17 +2140,17 @@ func (c *CatalogsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Catalog{ ServerResponse: googleapi.ServerResponse{ @@ -2615,44 +2163,7 @@ func (c *CatalogsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivat return nil, err } return ret, nil - // { - // "description": "Updates a specific Catalog resource.", - // "flatPath": "v1beta1/catalogs/{catalogsId}", - // "httpMethod": "PATCH", - // "id": "cloudprivatecatalogproducer.catalogs.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The resource name of the catalog, in the format\n`catalogs/{catalog_id}'.\n\nA unique identifier for the catalog, which is generated\nby catalog service.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask that controls which fields of the catalog should be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Catalog" - // }, - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Catalog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.setIamPolicy": +} type CatalogsSetIamPolicyCall struct { s *Service @@ -2664,6 +2175,10 @@ type CatalogsSetIamPolicyCall struct { } // SetIamPolicy: Sets the IAM policy for the specified Catalog. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *CatalogsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *CatalogsSetIamPolicyCall { c := &CatalogsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2672,23 +2187,21 @@ func (r *CatalogsService) SetIamPolicy(resource string, googleiamv1setiampolicyr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsSetIamPolicyCall) Fields(s ...googleapi.Field) *CatalogsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsSetIamPolicyCall) Context(ctx context.Context) *CatalogsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2697,18 +2210,12 @@ func (c *CatalogsSetIamPolicyCall) Header() http.Header { } func (c *CatalogsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") @@ -2721,16 +2228,15 @@ func (c *CatalogsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.setIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CatalogsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2738,17 +2244,17 @@ func (c *CatalogsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ @@ -2761,38 +2267,7 @@ func (c *CatalogsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV return nil, err } return ret, nil - // { - // "description": "Sets the IAM policy for the specified Catalog.", - // "flatPath": "v1beta1/catalogs/{catalogsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "cloudprivatecatalogproducer.catalogs.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "GoogleIamV1Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.testIamPermissions": +} type CatalogsTestIamPermissionsCall struct { s *Service @@ -2803,8 +2278,11 @@ type CatalogsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Tests the IAM permissions for the specified -// Catalog. +// TestIamPermissions: Tests the IAM permissions for the specified Catalog. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *CatalogsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *CatalogsTestIamPermissionsCall { c := &CatalogsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2813,23 +2291,21 @@ func (r *CatalogsService) TestIamPermissions(resource string, googleiamv1testiam } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsTestIamPermissionsCall) Fields(s ...googleapi.Field) *CatalogsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsTestIamPermissionsCall) Context(ctx context.Context) *CatalogsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2838,18 +2314,12 @@ func (c *CatalogsTestIamPermissionsCall) Header() http.Header { } func (c *CatalogsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") @@ -2862,17 +2332,15 @@ func (c *CatalogsTestIamPermissionsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.testIamPermissions" call. -// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either +// Any non-2xx status code is an error. Response headers are in either // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2880,17 +2348,17 @@ func (c *CatalogsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Goog if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2903,38 +2371,7 @@ func (c *CatalogsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Goog return nil, err } return ret, nil - // { - // "description": "Tests the IAM permissions for the specified Catalog.", - // "flatPath": "v1beta1/catalogs/{catalogsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "cloudprivatecatalogproducer.catalogs.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "GoogleIamV1TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.undelete": +} type CatalogsUndeleteCall struct { s *Service @@ -2946,6 +2383,8 @@ type CatalogsUndeleteCall struct { } // Undelete: Undeletes a deleted Catalog and all resources under it. +// +// - name: The resource name of the catalog. func (r *CatalogsService) Undelete(name string, googlecloudprivatecatalogproducerv1beta1undeletecatalogrequest *GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest) *CatalogsUndeleteCall { c := &CatalogsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2954,23 +2393,21 @@ func (r *CatalogsService) Undelete(name string, googlecloudprivatecatalogproduce } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsUndeleteCall) Fields(s ...googleapi.Field) *CatalogsUndeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsUndeleteCall) Context(ctx context.Context) *CatalogsUndeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsUndeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2979,18 +2416,12 @@ func (c *CatalogsUndeleteCall) Header() http.Header { } func (c *CatalogsUndeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudprivatecatalogproducerv1beta1undeletecatalogrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:undelete") @@ -3003,20 +2434,15 @@ func (c *CatalogsUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.undelete" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Catalog or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Catalog.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsUndeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Catalog, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3024,17 +2450,17 @@ func (c *CatalogsUndeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPri if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Catalog{ ServerResponse: googleapi.ServerResponse{ @@ -3047,38 +2473,7 @@ func (c *CatalogsUndeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPri return nil, err } return ret, nil - // { - // "description": "Undeletes a deleted Catalog and all resources under it.", - // "flatPath": "v1beta1/catalogs/{catalogsId}:undelete", - // "httpMethod": "POST", - // "id": "cloudprivatecatalogproducer.catalogs.undelete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the catalog.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:undelete", - // "request": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest" - // }, - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Catalog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.associations.create": +} type CatalogsAssociationsCreateCall struct { s *Service @@ -3090,6 +2485,8 @@ type CatalogsAssociationsCreateCall struct { } // Create: Creates an Association instance under a given Catalog. +// +// - parent: The `Catalog` resource's name. func (r *CatalogsAssociationsService) Create(parent string, googlecloudprivatecatalogproducerv1beta1createassociationrequest *GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest) *CatalogsAssociationsCreateCall { c := &CatalogsAssociationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3098,23 +2495,21 @@ func (r *CatalogsAssociationsService) Create(parent string, googlecloudprivateca } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsAssociationsCreateCall) Fields(s ...googleapi.Field) *CatalogsAssociationsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsAssociationsCreateCall) Context(ctx context.Context) *CatalogsAssociationsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsAssociationsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3123,18 +2518,12 @@ func (c *CatalogsAssociationsCreateCall) Header() http.Header { } func (c *CatalogsAssociationsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudprivatecatalogproducerv1beta1createassociationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/associations") @@ -3147,18 +2536,15 @@ func (c *CatalogsAssociationsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.associations.create" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Association -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Association.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Association.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsAssociationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Association, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3166,17 +2552,17 @@ func (c *CatalogsAssociationsCreateCall) Do(opts ...googleapi.CallOption) (*Goog if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Association{ ServerResponse: googleapi.ServerResponse{ @@ -3189,38 +2575,7 @@ func (c *CatalogsAssociationsCreateCall) Do(opts ...googleapi.CallOption) (*Goog return nil, err } return ret, nil - // { - // "description": "Creates an Association instance under a given Catalog.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/associations", - // "httpMethod": "POST", - // "id": "cloudprivatecatalogproducer.catalogs.associations.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The `Catalog` resource's name.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/associations", - // "request": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest" - // }, - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Association" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.associations.delete": +} type CatalogsAssociationsDeleteCall struct { s *Service @@ -3231,6 +2586,8 @@ type CatalogsAssociationsDeleteCall struct { } // Delete: Deletes the given Association. +// +// - name: The resource name of the `Association` to delete. func (r *CatalogsAssociationsService) Delete(name string) *CatalogsAssociationsDeleteCall { c := &CatalogsAssociationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3238,23 +2595,21 @@ func (r *CatalogsAssociationsService) Delete(name string) *CatalogsAssociationsD } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsAssociationsDeleteCall) Fields(s ...googleapi.Field) *CatalogsAssociationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsAssociationsDeleteCall) Context(ctx context.Context) *CatalogsAssociationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsAssociationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3263,12 +2618,7 @@ func (c *CatalogsAssociationsDeleteCall) Header() http.Header { } func (c *CatalogsAssociationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3282,16 +2632,15 @@ func (c *CatalogsAssociationsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.associations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CatalogsAssociationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3299,17 +2648,17 @@ func (c *CatalogsAssociationsDeleteCall) Do(opts ...googleapi.CallOption) (*Goog if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ @@ -3322,35 +2671,7 @@ func (c *CatalogsAssociationsDeleteCall) Do(opts ...googleapi.CallOption) (*Goog return nil, err } return ret, nil - // { - // "description": "Deletes the given Association.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/associations/{associationsId}", - // "httpMethod": "DELETE", - // "id": "cloudprivatecatalogproducer.catalogs.associations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the `Association` to delete.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/associations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.associations.get": +} type CatalogsAssociationsGetCall struct { s *Service @@ -3362,6 +2683,8 @@ type CatalogsAssociationsGetCall struct { } // Get: Returns the requested Association resource. +// +// - name: The resource name of the `Association` to retrieve. func (r *CatalogsAssociationsService) Get(name string) *CatalogsAssociationsGetCall { c := &CatalogsAssociationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3369,33 +2692,29 @@ func (r *CatalogsAssociationsService) Get(name string) *CatalogsAssociationsGetC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsAssociationsGetCall) Fields(s ...googleapi.Field) *CatalogsAssociationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CatalogsAssociationsGetCall) IfNoneMatch(entityTag string) *CatalogsAssociationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsAssociationsGetCall) Context(ctx context.Context) *CatalogsAssociationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsAssociationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3404,12 +2723,7 @@ func (c *CatalogsAssociationsGetCall) Header() http.Header { } func (c *CatalogsAssociationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3426,18 +2740,15 @@ func (c *CatalogsAssociationsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.associations.get" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Association -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Association.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Association.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsAssociationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Association, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3445,17 +2756,17 @@ func (c *CatalogsAssociationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleC if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Association{ ServerResponse: googleapi.ServerResponse{ @@ -3468,35 +2779,7 @@ func (c *CatalogsAssociationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleC return nil, err } return ret, nil - // { - // "description": "Returns the requested Association resource.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/associations/{associationsId}", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.catalogs.associations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the `Association` to retrieve.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/associations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Association" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.associations.list": +} type CatalogsAssociationsListCall struct { s *Service @@ -3508,14 +2791,17 @@ type CatalogsAssociationsListCall struct { } // List: Lists all Association resources under a catalog. +// +// - parent: The resource name of the `Catalog` whose `Associations` are +// being retrieved. In the format `catalogs/`. func (r *CatalogsAssociationsService) List(parent string) *CatalogsAssociationsListCall { c := &CatalogsAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of catalog associations to return. +// PageSize sets the optional parameter "pageSize": The maximum number of +// catalog associations to return. func (c *CatalogsAssociationsListCall) PageSize(pageSize int64) *CatalogsAssociationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -3530,33 +2816,29 @@ func (c *CatalogsAssociationsListCall) PageToken(pageToken string) *CatalogsAsso } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsAssociationsListCall) Fields(s ...googleapi.Field) *CatalogsAssociationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CatalogsAssociationsListCall) IfNoneMatch(entityTag string) *CatalogsAssociationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsAssociationsListCall) Context(ctx context.Context) *CatalogsAssociationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsAssociationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3565,12 +2847,7 @@ func (c *CatalogsAssociationsListCall) Header() http.Header { } func (c *CatalogsAssociationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3587,19 +2864,15 @@ func (c *CatalogsAssociationsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.associations.list" call. -// Exactly one of -// *GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse.ServerRespo +// nse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *CatalogsAssociationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3607,17 +2880,17 @@ func (c *CatalogsAssociationsListCall) Do(opts ...googleapi.CallOption) (*Google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3630,43 +2903,6 @@ func (c *CatalogsAssociationsListCall) Do(opts ...googleapi.CallOption) (*Google return nil, err } return ret, nil - // { - // "description": "Lists all Association resources under a catalog.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/associations", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.catalogs.associations.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of catalog associations to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from the previous call to\n`ListAssociations`.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The resource name of the `Catalog` whose `Associations` are\nbeing retrieved. In the format `catalogs/\u003ccatalog\u003e`.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/associations", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3674,7 +2910,7 @@ func (c *CatalogsAssociationsListCall) Do(opts ...googleapi.CallOption) (*Google // The provided context supersedes any context provided to the Context method. func (c *CatalogsAssociationsListCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3690,8 +2926,6 @@ func (c *CatalogsAssociationsListCall) Pages(ctx context.Context, f func(*Google } } -// method id "cloudprivatecatalogproducer.catalogs.products.copy": - type CatalogsProductsCopyCall struct { s *Service name string @@ -3702,6 +2936,8 @@ type CatalogsProductsCopyCall struct { } // Copy: Copies a Product under another Catalog. +// +// - name: The resource name of the current product that is copied from. func (r *CatalogsProductsService) Copy(name string, googlecloudprivatecatalogproducerv1beta1copyproductrequest *GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest) *CatalogsProductsCopyCall { c := &CatalogsProductsCopyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3710,23 +2946,21 @@ func (r *CatalogsProductsService) Copy(name string, googlecloudprivatecatalogpro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsCopyCall) Fields(s ...googleapi.Field) *CatalogsProductsCopyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsCopyCall) Context(ctx context.Context) *CatalogsProductsCopyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsCopyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3735,18 +2969,12 @@ func (c *CatalogsProductsCopyCall) Header() http.Header { } func (c *CatalogsProductsCopyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudprivatecatalogproducerv1beta1copyproductrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:copy") @@ -3759,16 +2987,15 @@ func (c *CatalogsProductsCopyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.copy" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsProductsCopyCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3776,17 +3003,17 @@ func (c *CatalogsProductsCopyCall) Do(opts ...googleapi.CallOption) (*GoogleLong if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -3799,38 +3026,7 @@ func (c *CatalogsProductsCopyCall) Do(opts ...googleapi.CallOption) (*GoogleLong return nil, err } return ret, nil - // { - // "description": "Copies a Product under another Catalog.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products/{productsId}:copy", - // "httpMethod": "POST", - // "id": "cloudprivatecatalogproducer.catalogs.products.copy", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the current product that is copied from.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:copy", - // "request": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.products.create": +} type CatalogsProductsCreateCall struct { s *Service @@ -3842,6 +3038,8 @@ type CatalogsProductsCreateCall struct { } // Create: Creates a Product instance under a given Catalog. +// +// - parent: The catalog name of the new product's parent. func (r *CatalogsProductsService) Create(parent string, googlecloudprivatecatalogproducerv1beta1product *GoogleCloudPrivatecatalogproducerV1beta1Product) *CatalogsProductsCreateCall { c := &CatalogsProductsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3850,23 +3048,21 @@ func (r *CatalogsProductsService) Create(parent string, googlecloudprivatecatalo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsCreateCall) Fields(s ...googleapi.Field) *CatalogsProductsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsCreateCall) Context(ctx context.Context) *CatalogsProductsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3875,18 +3071,12 @@ func (c *CatalogsProductsCreateCall) Header() http.Header { } func (c *CatalogsProductsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudprivatecatalogproducerv1beta1product) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/products") @@ -3899,20 +3089,15 @@ func (c *CatalogsProductsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.create" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Product or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Product.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Product.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsProductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Product, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3920,17 +3105,17 @@ func (c *CatalogsProductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Product{ ServerResponse: googleapi.ServerResponse{ @@ -3943,38 +3128,7 @@ func (c *CatalogsProductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCl return nil, err } return ret, nil - // { - // "description": "Creates a Product instance under a given Catalog.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products", - // "httpMethod": "POST", - // "id": "cloudprivatecatalogproducer.catalogs.products.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The catalog name of the new product's parent.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/products", - // "request": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Product" - // }, - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Product" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.products.delete": +} type CatalogsProductsDeleteCall struct { s *Service @@ -3985,6 +3139,8 @@ type CatalogsProductsDeleteCall struct { } // Delete: Hard deletes a Product. +// +// - name: The resource name of the product. func (r *CatalogsProductsService) Delete(name string) *CatalogsProductsDeleteCall { c := &CatalogsProductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3992,23 +3148,21 @@ func (r *CatalogsProductsService) Delete(name string) *CatalogsProductsDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsDeleteCall) Fields(s ...googleapi.Field) *CatalogsProductsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsDeleteCall) Context(ctx context.Context) *CatalogsProductsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4017,12 +3171,7 @@ func (c *CatalogsProductsDeleteCall) Header() http.Header { } func (c *CatalogsProductsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4036,16 +3185,15 @@ func (c *CatalogsProductsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CatalogsProductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4053,17 +3201,17 @@ func (c *CatalogsProductsDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ @@ -4076,35 +3224,7 @@ func (c *CatalogsProductsDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePr return nil, err } return ret, nil - // { - // "description": "Hard deletes a Product.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products/{productsId}", - // "httpMethod": "DELETE", - // "id": "cloudprivatecatalogproducer.catalogs.products.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the product.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.products.get": +} type CatalogsProductsGetCall struct { s *Service @@ -4116,6 +3236,8 @@ type CatalogsProductsGetCall struct { } // Get: Returns the requested Product resource. +// +// - name: The resource name of the product. func (r *CatalogsProductsService) Get(name string) *CatalogsProductsGetCall { c := &CatalogsProductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4123,33 +3245,29 @@ func (r *CatalogsProductsService) Get(name string) *CatalogsProductsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsGetCall) Fields(s ...googleapi.Field) *CatalogsProductsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CatalogsProductsGetCall) IfNoneMatch(entityTag string) *CatalogsProductsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsGetCall) Context(ctx context.Context) *CatalogsProductsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4158,12 +3276,7 @@ func (c *CatalogsProductsGetCall) Header() http.Header { } func (c *CatalogsProductsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4180,20 +3293,15 @@ func (c *CatalogsProductsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.get" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Product or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Product.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Product.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsProductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Product, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4201,17 +3309,17 @@ func (c *CatalogsProductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloud if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Product{ ServerResponse: googleapi.ServerResponse{ @@ -4224,35 +3332,7 @@ func (c *CatalogsProductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloud return nil, err } return ret, nil - // { - // "description": "Returns the requested Product resource.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products/{productsId}", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.catalogs.products.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the product.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Product" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.products.list": +} type CatalogsProductsListCall struct { s *Service @@ -4266,22 +3346,24 @@ type CatalogsProductsListCall struct { // List: Lists Product resources that the producer has access to, within // the // scope of the parent catalog. +// +// - parent: The resource name of the parent resource. func (r *CatalogsProductsService) List(parent string) *CatalogsProductsListCall { c := &CatalogsProductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": A filter expression used -// to restrict the returned results based +// Filter sets the optional parameter "filter": A filter expression used to +// restrict the returned results based // upon properties of the product. func (c *CatalogsProductsListCall) Filter(filter string) *CatalogsProductsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of products to return. +// PageSize sets the optional parameter "pageSize": The maximum number of +// products to return. func (c *CatalogsProductsListCall) PageSize(pageSize int64) *CatalogsProductsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -4297,33 +3379,29 @@ func (c *CatalogsProductsListCall) PageToken(pageToken string) *CatalogsProducts } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsListCall) Fields(s ...googleapi.Field) *CatalogsProductsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CatalogsProductsListCall) IfNoneMatch(entityTag string) *CatalogsProductsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsListCall) Context(ctx context.Context) *CatalogsProductsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4332,12 +3410,7 @@ func (c *CatalogsProductsListCall) Header() http.Header { } func (c *CatalogsProductsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4354,19 +3427,15 @@ func (c *CatalogsProductsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.list" call. -// Exactly one of -// *GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse.ServerRe -// sponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse.ServerResponse. +// Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *CatalogsProductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4374,17 +3443,17 @@ func (c *CatalogsProductsListCall) Do(opts ...googleapi.CallOption) (*GoogleClou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4397,48 +3466,6 @@ func (c *CatalogsProductsListCall) Do(opts ...googleapi.CallOption) (*GoogleClou return nil, err } return ret, nil - // { - // "description": "Lists Product resources that the producer has access to, within the\nscope of the parent catalog.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.catalogs.products.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "A filter expression used to restrict the returned results based\nupon properties of the product.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of products to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to ListProducts\nthat indicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The resource name of the parent resource.", - // "location": "path", - // "pattern": "^catalogs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/products", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -4446,7 +3473,7 @@ func (c *CatalogsProductsListCall) Do(opts ...googleapi.CallOption) (*GoogleClou // The provided context supersedes any context provided to the Context method. func (c *CatalogsProductsListCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4462,8 +3489,6 @@ func (c *CatalogsProductsListCall) Pages(ctx context.Context, f func(*GoogleClou } } -// method id "cloudprivatecatalogproducer.catalogs.products.patch": - type CatalogsProductsPatchCall struct { s *Service nameid string @@ -4474,6 +3499,14 @@ type CatalogsProductsPatchCall struct { } // Patch: Updates a specific Product resource. +// +// - name: The resource name of the product in the +// format +// `catalogs/{catalog_id}/products/a-z*[a-z0-9]'. +// +// A unique identifier for the product under a catalog, which cannot +// be changed after the product is created. The final +// segment of the name must between 1 and 256 characters in length. func (r *CatalogsProductsService) Patch(nameid string, googlecloudprivatecatalogproducerv1beta1product *GoogleCloudPrivatecatalogproducerV1beta1Product) *CatalogsProductsPatchCall { c := &CatalogsProductsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.nameid = nameid @@ -4489,23 +3522,21 @@ func (c *CatalogsProductsPatchCall) UpdateMask(updateMask string) *CatalogsProdu } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsPatchCall) Fields(s ...googleapi.Field) *CatalogsProductsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsPatchCall) Context(ctx context.Context) *CatalogsProductsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4514,18 +3545,12 @@ func (c *CatalogsProductsPatchCall) Header() http.Header { } func (c *CatalogsProductsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudprivatecatalogproducerv1beta1product) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -4538,20 +3563,15 @@ func (c *CatalogsProductsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.patch" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Product or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Product.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Product.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsProductsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Product, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4559,17 +3579,17 @@ func (c *CatalogsProductsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Product{ ServerResponse: googleapi.ServerResponse{ @@ -4582,44 +3602,7 @@ func (c *CatalogsProductsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClo return nil, err } return ret, nil - // { - // "description": "Updates a specific Product resource.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products/{productsId}", - // "httpMethod": "PATCH", - // "id": "cloudprivatecatalogproducer.catalogs.products.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the product in the format\n`catalogs/{catalog_id}/products/a-z*[a-z0-9]'.\n\nA unique identifier for the product under a catalog, which cannot\nbe changed after the product is created. The final\nsegment of the name must between 1 and 256 characters in length.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask that controls which fields of the product should be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Product" - // }, - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Product" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.products.icons.upload": +} type CatalogsProductsIconsUploadCall struct { s *Service @@ -4636,6 +3619,8 @@ type CatalogsProductsIconsUploadCall struct { // If Product already has a non-default icon, the action creates // a new Icon instance, associates the newly created // Icon with the given Product and deletes the old icon. +// +// - product: The resource name of the product. func (r *CatalogsProductsIconsService) Upload(product string, googlecloudprivatecatalogproducerv1beta1uploadiconrequest *GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest) *CatalogsProductsIconsUploadCall { c := &CatalogsProductsIconsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.product = product @@ -4644,23 +3629,21 @@ func (r *CatalogsProductsIconsService) Upload(product string, googlecloudprivate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsIconsUploadCall) Fields(s ...googleapi.Field) *CatalogsProductsIconsUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsIconsUploadCall) Context(ctx context.Context) *CatalogsProductsIconsUploadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsIconsUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4669,18 +3652,12 @@ func (c *CatalogsProductsIconsUploadCall) Header() http.Header { } func (c *CatalogsProductsIconsUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudprivatecatalogproducerv1beta1uploadiconrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+product}/icons:upload") @@ -4693,16 +3670,15 @@ func (c *CatalogsProductsIconsUploadCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.icons.upload" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CatalogsProductsIconsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4710,17 +3686,17 @@ func (c *CatalogsProductsIconsUploadCall) Do(opts ...googleapi.CallOption) (*Goo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ @@ -4733,38 +3709,7 @@ func (c *CatalogsProductsIconsUploadCall) Do(opts ...googleapi.CallOption) (*Goo return nil, err } return ret, nil - // { - // "description": "Creates an Icon instance under a given Product.\nIf Product only has a default icon, a new Icon\ninstance is created and associated with the given Product.\nIf Product already has a non-default icon, the action creates\na new Icon instance, associates the newly created\nIcon with the given Product and deletes the old icon.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products/{productsId}/icons:upload", - // "httpMethod": "POST", - // "id": "cloudprivatecatalogproducer.catalogs.products.icons.upload", - // "parameterOrder": [ - // "product" - // ], - // "parameters": { - // "product": { - // "description": "The resource name of the product.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+product}/icons:upload", - // "request": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest" - // }, - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.products.versions.create": +} type CatalogsProductsVersionsCreateCall struct { s *Service @@ -4776,6 +3721,8 @@ type CatalogsProductsVersionsCreateCall struct { } // Create: Creates a Version instance under a given Product. +// +// - parent: The product name of the new version's parent. func (r *CatalogsProductsVersionsService) Create(parent string, googlecloudprivatecatalogproducerv1beta1version *GoogleCloudPrivatecatalogproducerV1beta1Version) *CatalogsProductsVersionsCreateCall { c := &CatalogsProductsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4784,23 +3731,21 @@ func (r *CatalogsProductsVersionsService) Create(parent string, googlecloudpriva } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsVersionsCreateCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsVersionsCreateCall) Context(ctx context.Context) *CatalogsProductsVersionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4809,18 +3754,12 @@ func (c *CatalogsProductsVersionsCreateCall) Header() http.Header { } func (c *CatalogsProductsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudprivatecatalogproducerv1beta1version) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/versions") @@ -4833,16 +3772,15 @@ func (c *CatalogsProductsVersionsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.versions.create" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsProductsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4850,17 +3788,17 @@ func (c *CatalogsProductsVersionsCreateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -4873,38 +3811,7 @@ func (c *CatalogsProductsVersionsCreateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Creates a Version instance under a given Product.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products/{productsId}/versions", - // "httpMethod": "POST", - // "id": "cloudprivatecatalogproducer.catalogs.products.versions.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The product name of the new version's parent.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/versions", - // "request": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Version" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.products.versions.delete": +} type CatalogsProductsVersionsDeleteCall struct { s *Service @@ -4915,6 +3822,8 @@ type CatalogsProductsVersionsDeleteCall struct { } // Delete: Hard deletes a Version. +// +// - name: The resource name of the version. func (r *CatalogsProductsVersionsService) Delete(name string) *CatalogsProductsVersionsDeleteCall { c := &CatalogsProductsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4922,23 +3831,21 @@ func (r *CatalogsProductsVersionsService) Delete(name string) *CatalogsProductsV } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsVersionsDeleteCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsVersionsDeleteCall) Context(ctx context.Context) *CatalogsProductsVersionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsVersionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4947,12 +3854,7 @@ func (c *CatalogsProductsVersionsDeleteCall) Header() http.Header { } func (c *CatalogsProductsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4966,16 +3868,15 @@ func (c *CatalogsProductsVersionsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.versions.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CatalogsProductsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4983,17 +3884,17 @@ func (c *CatalogsProductsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ @@ -5006,35 +3907,7 @@ func (c *CatalogsProductsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Hard deletes a Version.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products/{productsId}/versions/{versionsId}", - // "httpMethod": "DELETE", - // "id": "cloudprivatecatalogproducer.catalogs.products.versions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the version.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/products/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.products.versions.get": +} type CatalogsProductsVersionsGetCall struct { s *Service @@ -5046,6 +3919,8 @@ type CatalogsProductsVersionsGetCall struct { } // Get: Returns the requested Version resource. +// +// - name: The resource name of the version. func (r *CatalogsProductsVersionsService) Get(name string) *CatalogsProductsVersionsGetCall { c := &CatalogsProductsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5053,33 +3928,29 @@ func (r *CatalogsProductsVersionsService) Get(name string) *CatalogsProductsVers } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsVersionsGetCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CatalogsProductsVersionsGetCall) IfNoneMatch(entityTag string) *CatalogsProductsVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsVersionsGetCall) Context(ctx context.Context) *CatalogsProductsVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5088,12 +3959,7 @@ func (c *CatalogsProductsVersionsGetCall) Header() http.Header { } func (c *CatalogsProductsVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5110,20 +3976,15 @@ func (c *CatalogsProductsVersionsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.versions.get" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Version or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Version.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Version.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsProductsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Version, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5131,17 +3992,17 @@ func (c *CatalogsProductsVersionsGetCall) Do(opts ...googleapi.CallOption) (*Goo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Version{ ServerResponse: googleapi.ServerResponse{ @@ -5154,35 +4015,7 @@ func (c *CatalogsProductsVersionsGetCall) Do(opts ...googleapi.CallOption) (*Goo return nil, err } return ret, nil - // { - // "description": "Returns the requested Version resource.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products/{productsId}/versions/{versionsId}", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.catalogs.products.versions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the version.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/products/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Version" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.catalogs.products.versions.list": +} type CatalogsProductsVersionsListCall struct { s *Service @@ -5196,14 +4029,16 @@ type CatalogsProductsVersionsListCall struct { // List: Lists Version resources that the producer has access to, within // the // scope of the parent Product. +// +// - parent: The resource name of the parent resource. func (r *CatalogsProductsVersionsService) List(parent string) *CatalogsProductsVersionsListCall { c := &CatalogsProductsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of versions to return. +// PageSize sets the optional parameter "pageSize": The maximum number of +// versions to return. func (c *CatalogsProductsVersionsListCall) PageSize(pageSize int64) *CatalogsProductsVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -5219,33 +4054,29 @@ func (c *CatalogsProductsVersionsListCall) PageToken(pageToken string) *Catalogs } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsVersionsListCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CatalogsProductsVersionsListCall) IfNoneMatch(entityTag string) *CatalogsProductsVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsVersionsListCall) Context(ctx context.Context) *CatalogsProductsVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5254,12 +4085,7 @@ func (c *CatalogsProductsVersionsListCall) Header() http.Header { } func (c *CatalogsProductsVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5276,19 +4102,15 @@ func (c *CatalogsProductsVersionsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.versions.list" call. -// Exactly one of -// *GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse.ServerRe -// sponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse.ServerResponse. +// Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *CatalogsProductsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5296,17 +4118,17 @@ func (c *CatalogsProductsVersionsListCall) Do(opts ...googleapi.CallOption) (*Go if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5319,43 +4141,6 @@ func (c *CatalogsProductsVersionsListCall) Do(opts ...googleapi.CallOption) (*Go return nil, err } return ret, nil - // { - // "description": "Lists Version resources that the producer has access to, within the\nscope of the parent Product.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products/{productsId}/versions", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.catalogs.products.versions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of versions to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token returned from a previous call to ListVersions\nthat indicates where this listing should continue from.\nThis field is optional.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The resource name of the parent resource.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/versions", - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -5363,7 +4148,7 @@ func (c *CatalogsProductsVersionsListCall) Do(opts ...googleapi.CallOption) (*Go // The provided context supersedes any context provided to the Context method. func (c *CatalogsProductsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5379,8 +4164,6 @@ func (c *CatalogsProductsVersionsListCall) Pages(ctx context.Context, f func(*Go } } -// method id "cloudprivatecatalogproducer.catalogs.products.versions.patch": - type CatalogsProductsVersionsPatchCall struct { s *Service nameid string @@ -5391,6 +4174,16 @@ type CatalogsProductsVersionsPatchCall struct { } // Patch: Updates a specific Version resource. +// +// - name: The resource name of the version, in the +// format +// `catalogs/{catalog_id}/products/{product_id}/versions/a-z*[a-z0-9]'. +// +// A unique identifier for the version under a product, which can't +// be changed after the version is created. The final segment of the name +// must +// +// between 1 and 63 characters in length. func (r *CatalogsProductsVersionsService) Patch(nameid string, googlecloudprivatecatalogproducerv1beta1version *GoogleCloudPrivatecatalogproducerV1beta1Version) *CatalogsProductsVersionsPatchCall { c := &CatalogsProductsVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.nameid = nameid @@ -5406,23 +4199,21 @@ func (c *CatalogsProductsVersionsPatchCall) UpdateMask(updateMask string) *Catal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CatalogsProductsVersionsPatchCall) Fields(s ...googleapi.Field) *CatalogsProductsVersionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CatalogsProductsVersionsPatchCall) Context(ctx context.Context) *CatalogsProductsVersionsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CatalogsProductsVersionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5431,18 +4222,12 @@ func (c *CatalogsProductsVersionsPatchCall) Header() http.Header { } func (c *CatalogsProductsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudprivatecatalogproducerv1beta1version) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -5455,20 +4240,15 @@ func (c *CatalogsProductsVersionsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.catalogs.products.versions.patch" call. -// Exactly one of *GoogleCloudPrivatecatalogproducerV1beta1Version or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudPrivatecatalogproducerV1beta1Version.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPrivatecatalogproducerV1beta1Version.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CatalogsProductsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPrivatecatalogproducerV1beta1Version, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5476,17 +4256,17 @@ func (c *CatalogsProductsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*G if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudPrivatecatalogproducerV1beta1Version{ ServerResponse: googleapi.ServerResponse{ @@ -5499,44 +4279,7 @@ func (c *CatalogsProductsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*G return nil, err } return ret, nil - // { - // "description": "Updates a specific Version resource.", - // "flatPath": "v1beta1/catalogs/{catalogsId}/products/{productsId}/versions/{versionsId}", - // "httpMethod": "PATCH", - // "id": "cloudprivatecatalogproducer.catalogs.products.versions.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the version, in the format\n`catalogs/{catalog_id}/products/{product_id}/versions/a-z*[a-z0-9]'.\n\nA unique identifier for the version under a product, which can't\nbe changed after the version is created. The final segment of the name must\nbetween 1 and 63 characters in length.", - // "location": "path", - // "pattern": "^catalogs/[^/]+/products/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask that controls which fields of the version should be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Version" - // }, - // "response": { - // "$ref": "GoogleCloudPrivatecatalogproducerV1beta1Version" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.operations.cancel": +} type OperationsCancelCall struct { s *Service @@ -5547,26 +4290,21 @@ type OperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// -// The server -// -// makes a best effort to cancel the operation, but success is -// not +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server +// makes a best effort to cancel the operation, but success is not // guaranteed. If the server doesn't support this method, it // returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can -// use +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use // Operations.GetOperation or // other methods to check whether the cancellation succeeded or whether // the -// operation completed despite cancellation. On successful -// cancellation, -// the operation is not deleted; instead, it becomes an operation -// with -// an Operation.error value with a google.rpc.Status.code of -// 1, +// operation completed despite cancellation. On successful cancellation, +// the operation is not deleted; instead, it becomes an operation with +// an Operation.error value with a google.rpc.Status.code of 1, // corresponding to `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. func (r *OperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *OperationsCancelCall { c := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5575,23 +4313,21 @@ func (r *OperationsService) Cancel(name string, googlelongrunningcanceloperation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5600,18 +4336,12 @@ func (c *OperationsCancelCall) Header() http.Header { } func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") @@ -5624,16 +4354,15 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5641,17 +4370,17 @@ func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ @@ -5664,38 +4393,7 @@ func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", - // "flatPath": "v1beta1/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "cloudprivatecatalogproducer.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:cancel", - // "request": { - // "$ref": "GoogleLongrunningCancelOperationRequest" - // }, - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.operations.delete": +} type OperationsDeleteCall struct { s *Service @@ -5705,13 +4403,15 @@ type OperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is +// Delete: Deletes a long-running operation. This method indicates that the +// client is // no longer interested in the operation result. It does not cancel // the // operation. If the server doesn't support this method, it // returns // `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. func (r *OperationsService) Delete(name string) *OperationsDeleteCall { c := &OperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5719,23 +4419,21 @@ func (r *OperationsService) Delete(name string) *OperationsDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5744,12 +4442,7 @@ func (c *OperationsDeleteCall) Header() http.Header { } func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5763,16 +4456,15 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.operations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5780,17 +4472,17 @@ func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ @@ -5803,35 +4495,7 @@ func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "cloudprivatecatalogproducer.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.operations.get": +} type OperationsGetCall struct { s *Service @@ -5842,11 +4506,13 @@ type OperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this -// method to poll the operation result at intervals as recommended by -// the API +// Get: Gets the latest state of a long-running operation. Clients can use +// this +// method to poll the operation result at intervals as recommended by the +// API // service. +// +// - name: The name of the operation resource. func (r *OperationsService) Get(name string) *OperationsGetCall { c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5854,33 +4520,29 @@ func (r *OperationsService) Get(name string) *OperationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5889,12 +4551,7 @@ func (c *OperationsGetCall) Header() http.Header { } func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5911,16 +4568,15 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5928,17 +4584,17 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunning if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -5951,35 +4607,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunning return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", - // "flatPath": "v1beta1/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudprivatecatalogproducer.operations.list": +} type OperationsListCall struct { s *Service @@ -5989,13 +4617,11 @@ type OperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the -// server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the +// server doesn't support this method, it returns `UNIMPLEMENTED`. // -// NOTE: the `name` binding allows API services to override the -// binding +// NOTE: the `name` binding allows API services to override the binding // to use different resource name schemes, such as `users/*/operations`. // To // override the binding, API services can add a binding such @@ -6003,70 +4629,64 @@ type OperationsListCall struct { // "/v1/{name=users/*}/operations" to their service configuration. // For backwards compatibility, the default name includes the // operations -// collection id, however overriding users must ensure the name -// binding +// collection id, however overriding users must ensure the name binding // is the parent resource, without the operations collection id. func (r *OperationsService) List() *OperationsListCall { c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c } -// Name sets the optional parameter "name": The name of the operation's -// parent resource. +// Name sets the optional parameter "name": The name of the operation's parent +// resource. func (c *OperationsListCall) Name(name string) *OperationsListCall { c.urlParams_.Set("name", name) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6075,12 +4695,7 @@ func (c *OperationsListCall) Header() http.Header { } func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200310") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6094,17 +4709,15 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprivatecatalogproducer.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6112,17 +4725,17 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6135,44 +4748,6 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", - // "flatPath": "v1beta1/operations", - // "httpMethod": "GET", - // "id": "cloudprivatecatalogproducer.operations.list", - // "parameterOrder": [], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/operations", - // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -6180,7 +4755,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin // The provided context supersedes any context provided to the Context method. func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/cloudprofiler/v2/cloudprofiler-gen.go b/cloudprofiler/v2/cloudprofiler-gen.go index 501195b9ba9..da49ee6dec1 100644 --- a/cloudprofiler/v2/cloudprofiler-gen.go +++ b/cloudprofiler/v2/cloudprofiler-gen.go @@ -446,7 +446,7 @@ func (c *ProjectsProfilesCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprofiler.projects.profiles.create" call. @@ -552,7 +552,7 @@ func (c *ProjectsProfilesCreateOfflineCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprofiler.projects.profiles.createOffline" call. @@ -677,7 +677,7 @@ func (c *ProjectsProfilesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprofiler.projects.profiles.list" call. @@ -815,7 +815,7 @@ func (c *ProjectsProfilesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudprofiler.projects.profiles.patch" call. diff --git a/cloudresourcemanager/v1/cloudresourcemanager-gen.go b/cloudresourcemanager/v1/cloudresourcemanager-gen.go index 86e108d6cd8..10dc0934cae 100644 --- a/cloudresourcemanager/v1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v1/cloudresourcemanager-gen.go @@ -2117,7 +2117,7 @@ func (c *FoldersClearOrgPolicyCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.clearOrgPolicy" call. @@ -2223,7 +2223,7 @@ func (c *FoldersGetEffectiveOrgPolicyCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.getEffectiveOrgPolicy" call. @@ -2328,7 +2328,7 @@ func (c *FoldersGetOrgPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.getOrgPolicy" call. @@ -2430,7 +2430,7 @@ func (c *FoldersListAvailableOrgPolicyConstraintsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.listAvailableOrgPolicyConstraints" call. @@ -2553,7 +2553,7 @@ func (c *FoldersListOrgPoliciesCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.listOrgPolicies" call. @@ -2679,7 +2679,7 @@ func (c *FoldersSetOrgPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.setOrgPolicy" call. @@ -2777,7 +2777,7 @@ func (c *LiensCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.liens.create" call. @@ -2874,7 +2874,7 @@ func (c *LiensDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.liens.delete" call. @@ -2983,7 +2983,7 @@ func (c *LiensGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.liens.get" call. @@ -3111,7 +3111,7 @@ func (c *LiensListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.liens.list" call. @@ -3242,7 +3242,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.operations.get" call. @@ -3343,7 +3343,7 @@ func (c *OrganizationsClearOrgPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.clearOrgPolicy" call. @@ -3453,7 +3453,7 @@ func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.get" call. @@ -3559,7 +3559,7 @@ func (c *OrganizationsGetEffectiveOrgPolicyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.getEffectiveOrgPolicy" call. @@ -3666,7 +3666,7 @@ func (c *OrganizationsGetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.getIamPolicy" call. @@ -3771,7 +3771,7 @@ func (c *OrganizationsGetOrgPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.getOrgPolicy" call. @@ -3873,7 +3873,7 @@ func (c *OrganizationsListAvailableOrgPolicyConstraintsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.listAvailableOrgPolicyConstraints" call. @@ -3996,7 +3996,7 @@ func (c *OrganizationsListOrgPoliciesCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.listOrgPolicies" call. @@ -4117,7 +4117,7 @@ func (c *OrganizationsSearchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.search" call. @@ -4246,7 +4246,7 @@ func (c *OrganizationsSetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.setIamPolicy" call. @@ -4350,7 +4350,7 @@ func (c *OrganizationsSetOrgPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.setOrgPolicy" call. @@ -4457,7 +4457,7 @@ func (c *OrganizationsTestIamPermissionsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.testIamPermissions" call. @@ -4559,7 +4559,7 @@ func (c *ProjectsClearOrgPolicyCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.clearOrgPolicy" call. @@ -4664,7 +4664,7 @@ func (c *ProjectsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.create" call. @@ -4769,7 +4769,7 @@ func (c *ProjectsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.delete" call. @@ -4878,7 +4878,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.get" call. @@ -4981,7 +4981,7 @@ func (c *ProjectsGetAncestryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.getAncestry" call. @@ -5088,7 +5088,7 @@ func (c *ProjectsGetEffectiveOrgPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.getEffectiveOrgPolicy" call. @@ -5197,7 +5197,7 @@ func (c *ProjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.getIamPolicy" call. @@ -5302,7 +5302,7 @@ func (c *ProjectsGetOrgPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.getOrgPolicy" call. @@ -5456,7 +5456,7 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.list" call. @@ -5580,7 +5580,7 @@ func (c *ProjectsListAvailableOrgPolicyConstraintsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.listAvailableOrgPolicyConstraints" call. @@ -5703,7 +5703,7 @@ func (c *ProjectsListOrgPoliciesCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.listOrgPolicies" call. @@ -5860,7 +5860,7 @@ func (c *ProjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.setIamPolicy" call. @@ -5964,7 +5964,7 @@ func (c *ProjectsSetOrgPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.setOrgPolicy" call. @@ -6072,7 +6072,7 @@ func (c *ProjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.testIamPermissions" call. @@ -6178,7 +6178,7 @@ func (c *ProjectsUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.undelete" call. @@ -6281,7 +6281,7 @@ func (c *ProjectsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.update" call. diff --git a/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go b/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go index 5b512d68a3c..4178e9573eb 100644 --- a/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go @@ -1369,7 +1369,7 @@ func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.get" call. @@ -1474,7 +1474,7 @@ func (c *OrganizationsGetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.getIamPolicy" call. @@ -1604,7 +1604,7 @@ func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.list" call. @@ -1731,7 +1731,7 @@ func (c *OrganizationsSetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.setIamPolicy" call. @@ -1837,7 +1837,7 @@ func (c *OrganizationsTestIamPermissionsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.testIamPermissions" call. @@ -1942,7 +1942,7 @@ func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.update" call. @@ -2051,7 +2051,7 @@ func (c *ProjectsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.create" call. @@ -2156,7 +2156,7 @@ func (c *ProjectsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.delete" call. @@ -2265,7 +2265,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.get" call. @@ -2368,7 +2368,7 @@ func (c *ProjectsGetAncestryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.getAncestry" call. @@ -2475,7 +2475,7 @@ func (c *ProjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.getIamPolicy" call. @@ -2627,7 +2627,7 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.list" call. @@ -2779,7 +2779,7 @@ func (c *ProjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.setIamPolicy" call. @@ -2884,7 +2884,7 @@ func (c *ProjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.testIamPermissions" call. @@ -2990,7 +2990,7 @@ func (c *ProjectsUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.undelete" call. @@ -3093,7 +3093,7 @@ func (c *ProjectsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.update" call. diff --git a/cloudresourcemanager/v2/cloudresourcemanager-gen.go b/cloudresourcemanager/v2/cloudresourcemanager-gen.go index 28afbd66f86..bd66bc5a774 100644 --- a/cloudresourcemanager/v2/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v2/cloudresourcemanager-gen.go @@ -1321,7 +1321,7 @@ func (c *FoldersCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.create" call. @@ -1422,7 +1422,7 @@ func (c *FoldersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.delete" call. @@ -1533,7 +1533,7 @@ func (c *FoldersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.get" call. @@ -1640,7 +1640,7 @@ func (c *FoldersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.getIamPolicy" call. @@ -1777,7 +1777,7 @@ func (c *FoldersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.list" call. @@ -1913,7 +1913,7 @@ func (c *FoldersMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.move" call. @@ -2031,7 +2031,7 @@ func (c *FoldersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.patch" call. @@ -2128,7 +2128,7 @@ func (c *FoldersSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.search" call. @@ -2256,7 +2256,7 @@ func (c *FoldersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.setIamPolicy" call. @@ -2362,7 +2362,7 @@ func (c *FoldersTestIamPermissionsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.testIamPermissions" call. @@ -2470,7 +2470,7 @@ func (c *FoldersUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.undelete" call. @@ -2579,7 +2579,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.operations.get" call. diff --git a/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go b/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go index e05fb14c406..7650bd76ab7 100644 --- a/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go @@ -1321,7 +1321,7 @@ func (c *FoldersCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.create" call. @@ -1422,7 +1422,7 @@ func (c *FoldersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.delete" call. @@ -1533,7 +1533,7 @@ func (c *FoldersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.get" call. @@ -1640,7 +1640,7 @@ func (c *FoldersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.getIamPolicy" call. @@ -1777,7 +1777,7 @@ func (c *FoldersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.list" call. @@ -1913,7 +1913,7 @@ func (c *FoldersMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.move" call. @@ -2031,7 +2031,7 @@ func (c *FoldersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.patch" call. @@ -2128,7 +2128,7 @@ func (c *FoldersSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.search" call. @@ -2256,7 +2256,7 @@ func (c *FoldersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.setIamPolicy" call. @@ -2362,7 +2362,7 @@ func (c *FoldersTestIamPermissionsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.testIamPermissions" call. @@ -2470,7 +2470,7 @@ func (c *FoldersUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.undelete" call. @@ -2579,7 +2579,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.operations.get" call. diff --git a/cloudresourcemanager/v3/cloudresourcemanager-gen.go b/cloudresourcemanager/v3/cloudresourcemanager-gen.go index 3b5c6ff5c1a..8c89a957ab7 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v3/cloudresourcemanager-gen.go @@ -2158,7 +2158,7 @@ func (c *EffectiveTagsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.effectiveTags.list" call. @@ -2291,7 +2291,7 @@ func (c *FoldersCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.create" call. @@ -2393,7 +2393,7 @@ func (c *FoldersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.delete" call. @@ -2504,7 +2504,7 @@ func (c *FoldersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.get" call. @@ -2611,7 +2611,7 @@ func (c *FoldersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.getIamPolicy" call. @@ -2750,7 +2750,7 @@ func (c *FoldersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.list" call. @@ -2886,7 +2886,7 @@ func (c *FoldersMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.move" call. @@ -3004,7 +3004,7 @@ func (c *FoldersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.patch" call. @@ -3147,7 +3147,7 @@ func (c *FoldersSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.search" call. @@ -3275,7 +3275,7 @@ func (c *FoldersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.setIamPolicy" call. @@ -3382,7 +3382,7 @@ func (c *FoldersTestIamPermissionsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.testIamPermissions" call. @@ -3491,7 +3491,7 @@ func (c *FoldersUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.folders.undelete" call. @@ -3589,7 +3589,7 @@ func (c *LiensCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.liens.create" call. @@ -3686,7 +3686,7 @@ func (c *LiensDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.liens.delete" call. @@ -3795,7 +3795,7 @@ func (c *LiensGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.liens.get" call. @@ -3923,7 +3923,7 @@ func (c *LiensListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.liens.list" call. @@ -4054,7 +4054,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.operations.get" call. @@ -4164,7 +4164,7 @@ func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.get" call. @@ -4271,7 +4271,7 @@ func (c *OrganizationsGetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.getIamPolicy" call. @@ -4409,7 +4409,7 @@ func (c *OrganizationsSearchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.search" call. @@ -4538,7 +4538,7 @@ func (c *OrganizationsSetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.setIamPolicy" call. @@ -4645,7 +4645,7 @@ func (c *OrganizationsTestIamPermissionsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.organizations.testIamPermissions" call. @@ -4744,7 +4744,7 @@ func (c *ProjectsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.create" call. @@ -4851,7 +4851,7 @@ func (c *ProjectsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.delete" call. @@ -4960,7 +4960,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.get" call. @@ -5065,7 +5065,7 @@ func (c *ProjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.getIamPolicy" call. @@ -5204,7 +5204,7 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.list" call. @@ -5334,7 +5334,7 @@ func (c *ProjectsMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.move" call. @@ -5446,7 +5446,7 @@ func (c *ProjectsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.patch" call. @@ -5597,7 +5597,7 @@ func (c *ProjectsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.search" call. @@ -5748,7 +5748,7 @@ func (c *ProjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.setIamPolicy" call. @@ -5853,7 +5853,7 @@ func (c *ProjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.testIamPermissions" call. @@ -5960,7 +5960,7 @@ func (c *ProjectsUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.projects.undelete" call. @@ -6062,7 +6062,7 @@ func (c *TagBindingsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagBindings.create" call. @@ -6160,7 +6160,7 @@ func (c *TagBindingsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagBindings.delete" call. @@ -6288,7 +6288,7 @@ func (c *TagBindingsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagBindings.list" call. @@ -6415,7 +6415,7 @@ func (c *TagKeysCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagKeys.create" call. @@ -6529,7 +6529,7 @@ func (c *TagKeysDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagKeys.delete" call. @@ -6637,7 +6637,7 @@ func (c *TagKeysGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagKeys.get" call. @@ -6744,7 +6744,7 @@ func (c *TagKeysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagKeys.getIamPolicy" call. @@ -6855,7 +6855,7 @@ func (c *TagKeysGetNamespacedCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagKeys.getNamespaced" call. @@ -6979,7 +6979,7 @@ func (c *TagKeysListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagKeys.list" call. @@ -7120,7 +7120,7 @@ func (c *TagKeysPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagKeys.patch" call. @@ -7227,7 +7227,7 @@ func (c *TagKeysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagKeys.setIamPolicy" call. @@ -7334,7 +7334,7 @@ func (c *TagKeysTestIamPermissionsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagKeys.testIamPermissions" call. @@ -7440,7 +7440,7 @@ func (c *TagValuesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.create" call. @@ -7553,7 +7553,7 @@ func (c *TagValuesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.delete" call. @@ -7662,7 +7662,7 @@ func (c *TagValuesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.get" call. @@ -7770,7 +7770,7 @@ func (c *TagValuesGetIamPolicyCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.getIamPolicy" call. @@ -7883,7 +7883,7 @@ func (c *TagValuesGetNamespacedCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.getNamespaced" call. @@ -8007,7 +8007,7 @@ func (c *TagValuesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.list" call. @@ -8144,7 +8144,7 @@ func (c *TagValuesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.patch" call. @@ -8251,7 +8251,7 @@ func (c *TagValuesSetIamPolicyCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.setIamPolicy" call. @@ -8358,7 +8358,7 @@ func (c *TagValuesTestIamPermissionsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.testIamPermissions" call. @@ -8470,7 +8470,7 @@ func (c *TagValuesTagHoldsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.tagHolds.create" call. @@ -8574,7 +8574,7 @@ func (c *TagValuesTagHoldsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.tagHolds.delete" call. @@ -8712,7 +8712,7 @@ func (c *TagValuesTagHoldsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudresourcemanager.tagValues.tagHolds.list" call. diff --git a/cloudscheduler/v1/cloudscheduler-gen.go b/cloudscheduler/v1/cloudscheduler-gen.go index a91fd3f8cf0..f902153daee 100644 --- a/cloudscheduler/v1/cloudscheduler-gen.go +++ b/cloudscheduler/v1/cloudscheduler-gen.go @@ -944,7 +944,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.get" call. @@ -1075,7 +1075,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.list" call. @@ -1199,7 +1199,7 @@ func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.create" call. @@ -1295,7 +1295,7 @@ func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.delete" call. @@ -1403,7 +1403,7 @@ func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.get" call. @@ -1531,7 +1531,7 @@ func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.list" call. @@ -1675,7 +1675,7 @@ func (c *ProjectsLocationsJobsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.patch" call. @@ -1780,7 +1780,7 @@ func (c *ProjectsLocationsJobsPauseCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.pause" call. @@ -1885,7 +1885,7 @@ func (c *ProjectsLocationsJobsResumeCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.resume" call. @@ -1988,7 +1988,7 @@ func (c *ProjectsLocationsJobsRunCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.run" call. diff --git a/cloudscheduler/v1beta1/cloudscheduler-gen.go b/cloudscheduler/v1beta1/cloudscheduler-gen.go index 8ffec079319..57948568865 100644 --- a/cloudscheduler/v1beta1/cloudscheduler-gen.go +++ b/cloudscheduler/v1beta1/cloudscheduler-gen.go @@ -970,7 +970,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.get" call. @@ -1101,7 +1101,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.list" call. @@ -1225,7 +1225,7 @@ func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.create" call. @@ -1330,7 +1330,7 @@ func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.delete" call. @@ -1438,7 +1438,7 @@ func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.get" call. @@ -1586,7 +1586,7 @@ func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.list" call. @@ -1730,7 +1730,7 @@ func (c *ProjectsLocationsJobsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.patch" call. @@ -1835,7 +1835,7 @@ func (c *ProjectsLocationsJobsPauseCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.pause" call. @@ -1940,7 +1940,7 @@ func (c *ProjectsLocationsJobsResumeCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.resume" call. @@ -2043,7 +2043,7 @@ func (c *ProjectsLocationsJobsRunCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudscheduler.projects.locations.jobs.run" call. diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index 817eb39df55..b12e281e3f0 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -8050,7 +8050,7 @@ func (c *DebugDatasourcesItemsCheckAccessCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.debug.datasources.items.checkAccess" call. @@ -8154,7 +8154,7 @@ func (c *DebugDatasourcesItemsSearchByViewUrlCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.debug.datasources.items.searchByViewUrl" call. @@ -8307,7 +8307,7 @@ func (c *DebugDatasourcesItemsUnmappedidsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.debug.datasources.items.unmappedids.list" call. @@ -8472,7 +8472,7 @@ func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.debug.identitysources.items.listForunmappedidentity" call. @@ -8656,7 +8656,7 @@ func (c *DebugIdentitysourcesUnmappedidsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.debug.identitysources.unmappedids.list" call. @@ -8783,7 +8783,7 @@ func (c *IndexingDatasourcesDeleteSchemaCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.deleteSchema" call. @@ -8900,7 +8900,7 @@ func (c *IndexingDatasourcesGetSchemaCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.getSchema" call. @@ -9005,7 +9005,7 @@ func (c *IndexingDatasourcesUpdateSchemaCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.updateSchema" call. @@ -9150,7 +9150,7 @@ func (c *IndexingDatasourcesItemsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.items.delete" call. @@ -9255,7 +9255,7 @@ func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.items.deleteQueueItems" call. @@ -9380,7 +9380,7 @@ func (c *IndexingDatasourcesItemsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.items.get" call. @@ -9487,7 +9487,7 @@ func (c *IndexingDatasourcesItemsIndexCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.items.index" call. @@ -9640,7 +9640,7 @@ func (c *IndexingDatasourcesItemsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.items.list" call. @@ -9774,7 +9774,7 @@ func (c *IndexingDatasourcesItemsPollCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.items.poll" call. @@ -9880,7 +9880,7 @@ func (c *IndexingDatasourcesItemsPushCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.items.push" call. @@ -9986,7 +9986,7 @@ func (c *IndexingDatasourcesItemsUnreserveCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.items.unreserve" call. @@ -10092,7 +10092,7 @@ func (c *IndexingDatasourcesItemsUploadCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.indexing.datasources.items.upload" call. @@ -10259,7 +10259,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.media.upload" call. @@ -10385,7 +10385,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.operations.get" call. @@ -10513,7 +10513,7 @@ func (c *OperationsLroListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.operations.lro.list" call. @@ -10634,7 +10634,7 @@ func (c *QueryDebugSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.query.debugSearch" call. @@ -10733,7 +10733,7 @@ func (c *QueryRemoveActivityCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.query.removeActivity" call. @@ -10835,7 +10835,7 @@ func (c *QuerySearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.query.search" call. @@ -10933,7 +10933,7 @@ func (c *QuerySuggestCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.query.suggest" call. @@ -11090,7 +11090,7 @@ func (c *QuerySourcesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.query.sources.list" call. @@ -11213,7 +11213,7 @@ func (c *SettingsGetCustomerCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.getCustomer" call. @@ -11319,7 +11319,7 @@ func (c *SettingsUpdateCustomerCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.updateCustomer" call. @@ -11414,7 +11414,7 @@ func (c *SettingsDatasourcesCreateCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.datasources.create" call. @@ -11518,7 +11518,7 @@ func (c *SettingsDatasourcesDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.datasources.delete" call. @@ -11635,7 +11635,7 @@ func (c *SettingsDatasourcesGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.datasources.get" call. @@ -11759,7 +11759,7 @@ func (c *SettingsDatasourcesListCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.datasources.list" call. @@ -11906,7 +11906,7 @@ func (c *SettingsDatasourcesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.datasources.patch" call. @@ -12009,7 +12009,7 @@ func (c *SettingsDatasourcesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.datasources.update" call. @@ -12104,7 +12104,7 @@ func (c *SettingsSearchapplicationsCreateCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.searchapplications.create" call. @@ -12209,7 +12209,7 @@ func (c *SettingsSearchapplicationsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.searchapplications.delete" call. @@ -12326,7 +12326,7 @@ func (c *SettingsSearchapplicationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.searchapplications.get" call. @@ -12450,7 +12450,7 @@ func (c *SettingsSearchapplicationsListCall) doRequest(alt string) (*http.Respon return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.searchapplications.list" call. @@ -12590,7 +12590,7 @@ func (c *SettingsSearchapplicationsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.searchapplications.patch" call. @@ -12693,7 +12693,7 @@ func (c *SettingsSearchapplicationsResetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.searchapplications.reset" call. @@ -12811,7 +12811,7 @@ func (c *SettingsSearchapplicationsUpdateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.settings.searchapplications.update" call. @@ -12956,7 +12956,7 @@ func (c *StatsGetIndexCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.stats.getIndex" call. @@ -13100,7 +13100,7 @@ func (c *StatsGetQueryCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.stats.getQuery" call. @@ -13244,7 +13244,7 @@ func (c *StatsGetSearchapplicationCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.stats.getSearchapplication" call. @@ -13389,7 +13389,7 @@ func (c *StatsGetSessionCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.stats.getSession" call. @@ -13533,7 +13533,7 @@ func (c *StatsGetUserCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.stats.getUser" call. @@ -13685,7 +13685,7 @@ func (c *StatsIndexDatasourcesGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.stats.index.datasources.get" call. @@ -13837,7 +13837,7 @@ func (c *StatsQuerySearchapplicationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.stats.query.searchapplications.get" call. @@ -13990,7 +13990,7 @@ func (c *StatsSessionSearchapplicationsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.stats.session.searchapplications.get" call. @@ -14142,7 +14142,7 @@ func (c *StatsUserSearchapplicationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.stats.user.searchapplications.get" call. @@ -14238,7 +14238,7 @@ func (c *V1InitializeCustomerCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsearch.initializeCustomer" call. diff --git a/cloudshell/v1/cloudshell-gen.go b/cloudshell/v1/cloudshell-gen.go index 9ff66ec7a9c..6a1f1b08d08 100644 --- a/cloudshell/v1/cloudshell-gen.go +++ b/cloudshell/v1/cloudshell-gen.go @@ -667,7 +667,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.operations.cancel" call. @@ -765,7 +765,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.operations.delete" call. @@ -874,7 +874,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.operations.get" call. @@ -1002,7 +1002,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.operations.list" call. @@ -1129,7 +1129,7 @@ func (c *UsersEnvironmentsAddPublicKeyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.addPublicKey" call. @@ -1235,7 +1235,7 @@ func (c *UsersEnvironmentsAuthorizeCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.authorize" call. @@ -1345,7 +1345,7 @@ func (c *UsersEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.get" call. @@ -1450,7 +1450,7 @@ func (c *UsersEnvironmentsRemovePublicKeyCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.removePublicKey" call. @@ -1558,7 +1558,7 @@ func (c *UsersEnvironmentsStartCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.start" call. diff --git a/cloudshell/v1alpha1/cloudshell-gen.go b/cloudshell/v1alpha1/cloudshell-gen.go index e2290e8f088..705edb434c1 100644 --- a/cloudshell/v1alpha1/cloudshell-gen.go +++ b/cloudshell/v1alpha1/cloudshell-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/shell/docs/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // cloudshellService, err := cloudshell.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // cloudshellService, err := cloudshell.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // cloudshellService, err := cloudshell.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package cloudshell // import "google.golang.org/api/cloudshell/v1alpha1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "cloudshell:v1alpha1" const apiName = "cloudshell" const apiVersion = "v1alpha1" const basePath = "https://cloudshell.googleapis.com/" +const basePathTemplate = "https://cloudshell.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://cloudshell.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -168,252 +186,198 @@ type UsersEnvironmentsPublicKeysService struct { s *Service } -// AuthorizeEnvironmentRequest: Request message for -// AuthorizeEnvironment. +// AuthorizeEnvironmentRequest: Request message for AuthorizeEnvironment. type AuthorizeEnvironmentRequest struct { - // AccessToken: The OAuth access token that should be sent to the - // environment. + // AccessToken: The OAuth access token that should be sent to the environment. AccessToken string `json:"accessToken,omitempty"` - - // ExpireTime: The time when the credentials expire. If not set, - // defaults to one hour from when the server received the request. + // ExpireTime: The time when the credentials expire. If not set, defaults to + // one hour from when the server received the request. ExpireTime string `json:"expireTime,omitempty"` - // IdToken: The OAuth ID token that should be sent to the environment. IdToken string `json:"idToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuthorizeEnvironmentRequest) MarshalJSON() ([]byte, error) { +func (s AuthorizeEnvironmentRequest) MarshalJSON() ([]byte, error) { type NoMethod AuthorizeEnvironmentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreatePublicKeyRequest: Request message for CreatePublicKey. type CreatePublicKeyRequest struct { // Key: Key that should be added to the environment. Key *PublicKey `json:"key,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreatePublicKeyRequest) MarshalJSON() ([]byte, error) { +func (s CreatePublicKeyRequest) MarshalJSON() ([]byte, error) { type NoMethod CreatePublicKeyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON +// representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// Environment: A Cloud Shell environment, which is defined as the -// combination of a Docker image specifying what is installed on the -// environment and a home directory containing the user's data that will -// remain across sessions. Each user has a single environment with the -// ID "default". +// Environment: A Cloud Shell environment, which is defined as the combination +// of a Docker image specifying what is installed on the environment and a home +// directory containing the user's data that will remain across sessions. Each +// user has a single environment with the ID "default". type Environment struct { // DockerImage: Required. Full path to the Docker image used to run this // environment, e.g. "gcr.io/dev-con/cloud-devshell:latest". DockerImage string `json:"dockerImage,omitempty"` - - // Id: Output only. The environment's identifier, unique among the - // user's environments. + // Id: Output only. The environment's identifier, unique among the user's + // environments. Id string `json:"id,omitempty"` - // Name: Output only. Full name of this resource, in the format - // `users/{owner_email}/environments/{environment_id}`. `{owner_email}` - // is the email address of the user to whom this environment belongs, - // and `{environment_id}` is the identifier of this environment. For - // example, `users/someone@example.com/environments/default`. + // `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the + // email address of the user to whom this environment belongs, and + // `{environment_id}` is the identifier of this environment. For example, + // `users/someone@example.com/environments/default`. Name string `json:"name,omitempty"` - // PublicKeys: Output only. Public keys associated with the environment. - // Clients can connect to this environment via SSH only if they possess - // a private key corresponding to at least one of these public keys. - // Keys can be added to or removed from the environment using the - // CreatePublicKey and DeletePublicKey methods. + // Clients can connect to this environment via SSH only if they possess a + // private key corresponding to at least one of these public keys. Keys can be + // added to or removed from the environment using the CreatePublicKey and + // DeletePublicKey methods. PublicKeys []*PublicKey `json:"publicKeys,omitempty"` - - // Size: Indicates the size of the backing VM running the environment. - // If set to something other than DEFAULT, it will be reverted to the - // default VM size after vm_size_expire_time. + // Size: Indicates the size of the backing VM running the environment. If set + // to something other than DEFAULT, it will be reverted to the default VM size + // after vm_size_expire_time. // // Possible values: // "VM_SIZE_UNSPECIFIED" - The VM size is unknown. // "DEFAULT" - The default VM size. // "BOOSTED" - The boosted VM size. Size string `json:"size,omitempty"` - - // SshHost: Output only. Host to which clients can connect to initiate - // SSH sessions with the environment. + // SshHost: Output only. Host to which clients can connect to initiate SSH + // sessions with the environment. SshHost string `json:"sshHost,omitempty"` - - // SshPort: Output only. Port to which clients can connect to initiate - // SSH sessions with the environment. + // SshPort: Output only. Port to which clients can connect to initiate SSH + // sessions with the environment. SshPort int64 `json:"sshPort,omitempty"` - - // SshUsername: Output only. Username that clients should use when - // initiating SSH sessions with the environment. + // SshUsername: Output only. Username that clients should use when initiating + // SSH sessions with the environment. SshUsername string `json:"sshUsername,omitempty"` - // State: Output only. Current execution state of this environment. // // Possible values: // "STATE_UNSPECIFIED" - The environment's states is unknown. - // "DISABLED" - The environment is not running and can't be connected - // to. Starting the environment will transition it to the STARTING - // state. - // "STARTING" - The environment is being started but is not yet ready - // to accept connections. - // "RUNNING" - The environment is running and ready to accept - // connections. It will automatically transition back to DISABLED after - // a period of inactivity or if another environment is started. - // "DELETING" - The environment is being deleted and can't be - // connected to. + // "DISABLED" - The environment is not running and can't be connected to. + // Starting the environment will transition it to the STARTING state. + // "STARTING" - The environment is being started but is not yet ready to + // accept connections. + // "RUNNING" - The environment is running and ready to accept connections. It + // will automatically transition back to DISABLED after a period of inactivity + // or if another environment is started. + // "DELETING" - The environment is being deleted and can't be connected to. State string `json:"state,omitempty"` - - // VmSizeExpireTime: Output only. The time when the Environment will - // expire back to the default VM size. + // VmSizeExpireTime: Output only. The time when the Environment will expire + // back to the default VM size. VmSizeExpireTime string `json:"vmSizeExpireTime,omitempty"` - - // WebHost: Output only. Host to which clients can connect to initiate - // HTTPS or WSS connections with the environment. + // WebHost: Output only. Host to which clients can connect to initiate HTTPS or + // WSS connections with the environment. WebHost string `json:"webHost,omitempty"` - - // WebPorts: Output only. Ports to which clients can connect to initiate - // HTTPS or WSS connections with the environment. + // WebPorts: Output only. Ports to which clients can connect to initiate HTTPS + // or WSS connections with the environment. WebPorts []int64 `json:"webPorts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DockerImage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DockerImage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DockerImage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Environment) MarshalJSON() ([]byte, error) { +func (s Environment) MarshalJSON() ([]byte, error) { type NoMethod Environment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PublicKey: A public SSH key, corresponding to a private SSH key held -// by the client. +// PublicKey: A public SSH key, corresponding to a private SSH key held by the +// client. type PublicKey struct { // Format: Required. Format of this key's content. // @@ -421,51 +385,38 @@ type PublicKey struct { // "FORMAT_UNSPECIFIED" - Unknown format. Do not use. // "SSH_DSS" - `ssh-dss` key format (see RFC4253). // "SSH_RSA" - `ssh-rsa` key format (see RFC4253). - // "ECDSA_SHA2_NISTP256" - `ecdsa-sha2-nistp256` key format (see - // RFC5656). - // "ECDSA_SHA2_NISTP384" - `ecdsa-sha2-nistp384` key format (see - // RFC5656). - // "ECDSA_SHA2_NISTP521" - `ecdsa-sha2-nistp521` key format (see - // RFC5656). + // "ECDSA_SHA2_NISTP256" - `ecdsa-sha2-nistp256` key format (see RFC5656). + // "ECDSA_SHA2_NISTP384" - `ecdsa-sha2-nistp384` key format (see RFC5656). + // "ECDSA_SHA2_NISTP521" - `ecdsa-sha2-nistp521` key format (see RFC5656). Format string `json:"format,omitempty"` - // Key: Required. Content of this key. Key string `json:"key,omitempty"` - // Name: Output only. Full name of this resource, in the format - // `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id} - // `. `{owner_email}` is the email address of the user to whom the key - // belongs. `{environment_id}` is the identifier of the environment to - // which the key grants access. `{key_id}` is the unique identifier of - // the key. For example, + // `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`. + // `{owner_email}` is the email address of the user to whom the key belongs. + // `{environment_id}` is the identifier of the environment to which the key + // grants access. `{key_id}` is the unique identifier of the key. For example, // `users/someone@example.com/environments/default/publicKeys/myKey`. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Format") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Format") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Format") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PublicKey) MarshalJSON() ([]byte, error) { +func (s PublicKey) MarshalJSON() ([]byte, error) { type NoMethod PublicKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StartEnvironmentMetadata: Message included in the metadata field of @@ -475,161 +426,127 @@ type StartEnvironmentMetadata struct { // // Possible values: // "STATE_UNSPECIFIED" - The environment's start state is unknown. - // "STARTING" - The environment is in the process of being started, - // but no additional details are available. + // "STARTING" - The environment is in the process of being started, but no + // additional details are available. // "UNARCHIVING_DISK" - Startup is waiting for the user's disk to be - // unarchived. This can happen when the user returns to Cloud Shell - // after not having used it for a while, and suggests that startup will - // take longer than normal. + // unarchived. This can happen when the user returns to Cloud Shell after not + // having used it for a while, and suggests that startup will take longer than + // normal. // "AWAITING_VM" - Startup is waiting for a VM to be assigned to the - // environment. This should normally happen very quickly, but an - // environment might stay in this state for an extended period of time + // environment. This should normally happen very quickly, but an environment + // might stay in this state for an extended period of time if the system is + // experiencing heavy load. + // "AWAITING_COMPUTE_RESOURCES" - Startup is waiting for compute resources to + // be assigned to the environment. This should normally happen very quickly, + // but an environment might stay in this state for an extended period of time // if the system is experiencing heavy load. - // "AWAITING_COMPUTE_RESOURCES" - Startup is waiting for compute - // resources to be assigned to the environment. This should normally - // happen very quickly, but an environment might stay in this state for - // an extended period of time if the system is experiencing heavy load. - // "FINISHED" - Startup has completed. If the start operation was - // successful, the user should be able to establish an SSH connection to - // their environment. Otherwise, the operation will contain details of - // the failure. + // "FINISHED" - Startup has completed. If the start operation was successful, + // the user should be able to establish an SSH connection to their environment. + // Otherwise, the operation will contain details of the failure. State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "State") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "State") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "State") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StartEnvironmentMetadata) MarshalJSON() ([]byte, error) { +func (s StartEnvironmentMetadata) MarshalJSON() ([]byte, error) { type NoMethod StartEnvironmentMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StartEnvironmentRequest: Request message for StartEnvironment. type StartEnvironmentRequest struct { - // AccessToken: The initial access token passed to the environment. If - // this is present and valid, the environment will be pre-authenticated - // with gcloud so that the user can run gcloud commands in Cloud Shell - // without having to log in. This code can be updated later by calling - // AuthorizeEnvironment. + // AccessToken: The initial access token passed to the environment. If this is + // present and valid, the environment will be pre-authenticated with gcloud so + // that the user can run gcloud commands in Cloud Shell without having to log + // in. This code can be updated later by calling AuthorizeEnvironment. AccessToken string `json:"accessToken,omitempty"` - - // PublicKeys: Public keys that should be added to the environment - // before it is started. + // PublicKeys: Public keys that should be added to the environment before it is + // started. PublicKeys []*PublicKey `json:"publicKeys,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StartEnvironmentRequest) MarshalJSON() ([]byte, error) { +func (s StartEnvironmentRequest) MarshalJSON() ([]byte, error) { type NoMethod StartEnvironmentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StartEnvironmentResponse: Message included in the response field of -// operations returned from StartEnvironment once the operation is -// complete. +// operations returned from StartEnvironment once the operation is complete. type StartEnvironmentResponse struct { // Environment: Environment that was started. Environment *Environment `json:"environment,omitempty"` - // ForceSendFields is a list of field names (e.g. "Environment") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Environment") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Environment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StartEnvironmentResponse) MarshalJSON() ([]byte, error) { +func (s StartEnvironmentResponse) MarshalJSON() ([]byte, error) { type NoMethod StartEnvironmentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "cloudshell.users.environments.authorize": - type UsersEnvironmentsAuthorizeCall struct { s *Service name string @@ -639,10 +556,14 @@ type UsersEnvironmentsAuthorizeCall struct { header_ http.Header } -// Authorize: Sends OAuth credentials to a running environment on behalf -// of a user. When this completes, the environment will be authorized to -// run various Google Cloud command line tools without requiring the -// user to manually authenticate. +// Authorize: Sends OAuth credentials to a running environment on behalf of a +// user. When this completes, the environment will be authorized to run various +// Google Cloud command line tools without requiring the user to manually +// authenticate. +// +// - name: Name of the resource that should receive the credentials, for +// example `users/me/environments/default` or +// `users/someone@example.com/environments/default`. func (r *UsersEnvironmentsService) Authorize(name string, authorizeenvironmentrequest *AuthorizeEnvironmentRequest) *UsersEnvironmentsAuthorizeCall { c := &UsersEnvironmentsAuthorizeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -651,23 +572,21 @@ func (r *UsersEnvironmentsService) Authorize(name string, authorizeenvironmentre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersEnvironmentsAuthorizeCall) Fields(s ...googleapi.Field) *UsersEnvironmentsAuthorizeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersEnvironmentsAuthorizeCall) Context(ctx context.Context) *UsersEnvironmentsAuthorizeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersEnvironmentsAuthorizeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -676,18 +595,12 @@ func (c *UsersEnvironmentsAuthorizeCall) Header() http.Header { } func (c *UsersEnvironmentsAuthorizeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210316") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.authorizeenvironmentrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:authorize") @@ -700,16 +613,14 @@ func (c *UsersEnvironmentsAuthorizeCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.authorize" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersEnvironmentsAuthorizeCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -717,17 +628,17 @@ func (c *UsersEnvironmentsAuthorizeCall) Do(opts ...googleapi.CallOption) (*Empt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -740,38 +651,7 @@ func (c *UsersEnvironmentsAuthorizeCall) Do(opts ...googleapi.CallOption) (*Empt return nil, err } return ret, nil - // { - // "description": "Sends OAuth credentials to a running environment on behalf of a user. When this completes, the environment will be authorized to run various Google Cloud command line tools without requiring the user to manually authenticate.", - // "flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}:authorize", - // "httpMethod": "POST", - // "id": "cloudshell.users.environments.authorize", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.", - // "location": "path", - // "pattern": "^users/[^/]+/environments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}:authorize", - // "request": { - // "$ref": "AuthorizeEnvironmentRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudshell.users.environments.get": +} type UsersEnvironmentsGetCall struct { s *Service @@ -782,8 +662,12 @@ type UsersEnvironmentsGetCall struct { header_ http.Header } -// Get: Gets an environment. Returns NOT_FOUND if the environment does -// not exist. +// Get: Gets an environment. Returns NOT_FOUND if the environment does not +// exist. +// +// - name: Name of the requested resource, for example +// `users/me/environments/default` or +// `users/someone@example.com/environments/default`. func (r *UsersEnvironmentsService) Get(name string) *UsersEnvironmentsGetCall { c := &UsersEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -791,33 +675,29 @@ func (r *UsersEnvironmentsService) Get(name string) *UsersEnvironmentsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersEnvironmentsGetCall) Fields(s ...googleapi.Field) *UsersEnvironmentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UsersEnvironmentsGetCall) IfNoneMatch(entityTag string) *UsersEnvironmentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersEnvironmentsGetCall) Context(ctx context.Context) *UsersEnvironmentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersEnvironmentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -826,12 +706,7 @@ func (c *UsersEnvironmentsGetCall) Header() http.Header { } func (c *UsersEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210316") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -848,16 +723,14 @@ func (c *UsersEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.get" call. -// Exactly one of *Environment or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Environment.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Environment.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*Environment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -865,17 +738,17 @@ func (c *UsersEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*Environmen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Environment{ ServerResponse: googleapi.ServerResponse{ @@ -888,35 +761,7 @@ func (c *UsersEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*Environmen return nil, err } return ret, nil - // { - // "description": "Gets an environment. Returns NOT_FOUND if the environment does not exist.", - // "flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}", - // "httpMethod": "GET", - // "id": "cloudshell.users.environments.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the requested resource, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.", - // "location": "path", - // "pattern": "^users/[^/]+/environments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "response": { - // "$ref": "Environment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudshell.users.environments.patch": +} type UsersEnvironmentsPatchCall struct { s *Service @@ -928,6 +773,10 @@ type UsersEnvironmentsPatchCall struct { } // Patch: Updates an existing environment. +// +// - name: Name of the resource to be updated, for example +// `users/me/environments/default` or +// `users/someone@example.com/environments/default`. func (r *UsersEnvironmentsService) Patch(name string, environment *Environment) *UsersEnvironmentsPatchCall { c := &UsersEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -935,31 +784,29 @@ func (r *UsersEnvironmentsService) Patch(name string, environment *Environment) return c } -// UpdateMask sets the optional parameter "updateMask": Mask specifying -// which fields in the environment should be updated. +// UpdateMask sets the optional parameter "updateMask": Mask specifying which +// fields in the environment should be updated. func (c *UsersEnvironmentsPatchCall) UpdateMask(updateMask string) *UsersEnvironmentsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersEnvironmentsPatchCall) Fields(s ...googleapi.Field) *UsersEnvironmentsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersEnvironmentsPatchCall) Context(ctx context.Context) *UsersEnvironmentsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersEnvironmentsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -968,18 +815,12 @@ func (c *UsersEnvironmentsPatchCall) Header() http.Header { } func (c *UsersEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210316") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.environment) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") @@ -992,16 +833,14 @@ func (c *UsersEnvironmentsPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.patch" call. -// Exactly one of *Environment or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Environment.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Environment.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*Environment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1009,17 +848,17 @@ func (c *UsersEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*Environm if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Environment{ ServerResponse: googleapi.ServerResponse{ @@ -1032,44 +871,7 @@ func (c *UsersEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*Environm return nil, err } return ret, nil - // { - // "description": "Updates an existing environment.", - // "flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}", - // "httpMethod": "PATCH", - // "id": "cloudshell.users.environments.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the resource to be updated, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.", - // "location": "path", - // "pattern": "^users/[^/]+/environments/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Mask specifying which fields in the environment should be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "request": { - // "$ref": "Environment" - // }, - // "response": { - // "$ref": "Environment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudshell.users.environments.start": +} type UsersEnvironmentsStartCall struct { s *Service @@ -1080,13 +882,16 @@ type UsersEnvironmentsStartCall struct { header_ http.Header } -// Start: Starts an existing environment, allowing clients to connect to -// it. The returned operation will contain an instance of -// StartEnvironmentMetadata in its metadata field. Users can wait for -// the environment to start by polling this operation via GetOperation. -// Once the environment has finished starting and is ready to accept -// connections, the operation will contain a StartEnvironmentResponse in -// its response field. +// Start: Starts an existing environment, allowing clients to connect to it. +// The returned operation will contain an instance of StartEnvironmentMetadata +// in its metadata field. Users can wait for the environment to start by +// polling this operation via GetOperation. Once the environment has finished +// starting and is ready to accept connections, the operation will contain a +// StartEnvironmentResponse in its response field. +// +// - name: Name of the resource that should be started, for example +// `users/me/environments/default` or +// `users/someone@example.com/environments/default`. func (r *UsersEnvironmentsService) Start(name string, startenvironmentrequest *StartEnvironmentRequest) *UsersEnvironmentsStartCall { c := &UsersEnvironmentsStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1095,23 +900,21 @@ func (r *UsersEnvironmentsService) Start(name string, startenvironmentrequest *S } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersEnvironmentsStartCall) Fields(s ...googleapi.Field) *UsersEnvironmentsStartCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersEnvironmentsStartCall) Context(ctx context.Context) *UsersEnvironmentsStartCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersEnvironmentsStartCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1120,18 +923,12 @@ func (c *UsersEnvironmentsStartCall) Header() http.Header { } func (c *UsersEnvironmentsStartCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210316") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.startenvironmentrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:start") @@ -1144,16 +941,14 @@ func (c *UsersEnvironmentsStartCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.start" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersEnvironmentsStartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1161,17 +956,17 @@ func (c *UsersEnvironmentsStartCall) Do(opts ...googleapi.CallOption) (*Operatio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -1184,38 +979,7 @@ func (c *UsersEnvironmentsStartCall) Do(opts ...googleapi.CallOption) (*Operatio return nil, err } return ret, nil - // { - // "description": "Starts an existing environment, allowing clients to connect to it. The returned operation will contain an instance of StartEnvironmentMetadata in its metadata field. Users can wait for the environment to start by polling this operation via GetOperation. Once the environment has finished starting and is ready to accept connections, the operation will contain a StartEnvironmentResponse in its response field.", - // "flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}:start", - // "httpMethod": "POST", - // "id": "cloudshell.users.environments.start", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.", - // "location": "path", - // "pattern": "^users/[^/]+/environments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}:start", - // "request": { - // "$ref": "StartEnvironmentRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudshell.users.environments.publicKeys.create": +} type UsersEnvironmentsPublicKeysCreateCall struct { s *Service @@ -1226,10 +990,12 @@ type UsersEnvironmentsPublicKeysCreateCall struct { header_ http.Header } -// Create: Adds a public SSH key to an environment, allowing clients -// with the corresponding private key to connect to that environment via -// SSH. If a key with the same format and content already exists, this -// will return the existing key. +// Create: Adds a public SSH key to an environment, allowing clients with the +// corresponding private key to connect to that environment via SSH. If a key +// with the same format and content already exists, this will return the +// existing key. +// +// - parent: Parent resource name, e.g. `users/me/environments/default`. func (r *UsersEnvironmentsPublicKeysService) Create(parent string, createpublickeyrequest *CreatePublicKeyRequest) *UsersEnvironmentsPublicKeysCreateCall { c := &UsersEnvironmentsPublicKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1238,23 +1004,21 @@ func (r *UsersEnvironmentsPublicKeysService) Create(parent string, createpublick } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersEnvironmentsPublicKeysCreateCall) Fields(s ...googleapi.Field) *UsersEnvironmentsPublicKeysCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersEnvironmentsPublicKeysCreateCall) Context(ctx context.Context) *UsersEnvironmentsPublicKeysCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersEnvironmentsPublicKeysCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1263,18 +1027,12 @@ func (c *UsersEnvironmentsPublicKeysCreateCall) Header() http.Header { } func (c *UsersEnvironmentsPublicKeysCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210316") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.createpublickeyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/publicKeys") @@ -1287,16 +1045,14 @@ func (c *UsersEnvironmentsPublicKeysCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.publicKeys.create" call. -// Exactly one of *PublicKey or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PublicKey.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PublicKey.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersEnvironmentsPublicKeysCreateCall) Do(opts ...googleapi.CallOption) (*PublicKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1304,17 +1060,17 @@ func (c *UsersEnvironmentsPublicKeysCreateCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PublicKey{ ServerResponse: googleapi.ServerResponse{ @@ -1327,38 +1083,7 @@ func (c *UsersEnvironmentsPublicKeysCreateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Adds a public SSH key to an environment, allowing clients with the corresponding private key to connect to that environment via SSH. If a key with the same format and content already exists, this will return the existing key.", - // "flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}/publicKeys", - // "httpMethod": "POST", - // "id": "cloudshell.users.environments.publicKeys.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Parent resource name, e.g. `users/me/environments/default`.", - // "location": "path", - // "pattern": "^users/[^/]+/environments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/publicKeys", - // "request": { - // "$ref": "CreatePublicKeyRequest" - // }, - // "response": { - // "$ref": "PublicKey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "cloudshell.users.environments.publicKeys.delete": +} type UsersEnvironmentsPublicKeysDeleteCall struct { s *Service @@ -1368,9 +1093,11 @@ type UsersEnvironmentsPublicKeysDeleteCall struct { header_ http.Header } -// Delete: Removes a public SSH key from an environment. Clients will no -// longer be able to connect to the environment using the corresponding -// private key. +// Delete: Removes a public SSH key from an environment. Clients will no longer +// be able to connect to the environment using the corresponding private key. +// +// - name: Name of the resource to be deleted, e.g. +// `users/me/environments/default/publicKeys/my-key`. func (r *UsersEnvironmentsPublicKeysService) Delete(name string) *UsersEnvironmentsPublicKeysDeleteCall { c := &UsersEnvironmentsPublicKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1378,23 +1105,21 @@ func (r *UsersEnvironmentsPublicKeysService) Delete(name string) *UsersEnvironme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersEnvironmentsPublicKeysDeleteCall) Fields(s ...googleapi.Field) *UsersEnvironmentsPublicKeysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersEnvironmentsPublicKeysDeleteCall) Context(ctx context.Context) *UsersEnvironmentsPublicKeysDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersEnvironmentsPublicKeysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1403,12 +1128,7 @@ func (c *UsersEnvironmentsPublicKeysDeleteCall) Header() http.Header { } func (c *UsersEnvironmentsPublicKeysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210316") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1422,16 +1142,14 @@ func (c *UsersEnvironmentsPublicKeysDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudshell.users.environments.publicKeys.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersEnvironmentsPublicKeysDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1439,17 +1157,17 @@ func (c *UsersEnvironmentsPublicKeysDeleteCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1462,30 +1180,4 @@ func (c *UsersEnvironmentsPublicKeysDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Removes a public SSH key from an environment. Clients will no longer be able to connect to the environment using the corresponding private key.", - // "flatPath": "v1alpha1/users/{usersId}/environments/{environmentsId}/publicKeys/{publicKeysId}", - // "httpMethod": "DELETE", - // "id": "cloudshell.users.environments.publicKeys.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the resource to be deleted, e.g. `users/me/environments/default/publicKeys/my-key`.", - // "location": "path", - // "pattern": "^users/[^/]+/environments/[^/]+/publicKeys/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/cloudsupport/v2/cloudsupport-gen.go b/cloudsupport/v2/cloudsupport-gen.go index 833b3a2cb70..708ae12459c 100644 --- a/cloudsupport/v2/cloudsupport-gen.go +++ b/cloudsupport/v2/cloudsupport-gen.go @@ -1231,7 +1231,7 @@ func (c *CaseClassificationsSearchCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.caseClassifications.search" call. @@ -1363,7 +1363,7 @@ func (c *CasesCloseCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.close" call. @@ -1488,7 +1488,7 @@ func (c *CasesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.create" call. @@ -1606,7 +1606,7 @@ func (c *CasesEscalateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.escalate" call. @@ -1722,7 +1722,7 @@ func (c *CasesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.get" call. @@ -1871,7 +1871,7 @@ func (c *CasesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.list" call. @@ -2018,7 +2018,7 @@ func (c *CasesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.patch" call. @@ -2173,7 +2173,7 @@ func (c *CasesSearchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.search" call. @@ -2327,7 +2327,7 @@ func (c *CasesAttachmentsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.attachments.list" call. @@ -2462,7 +2462,7 @@ func (c *CasesCommentsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.comments.create" call. @@ -2593,7 +2593,7 @@ func (c *CasesCommentsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.comments.list" call. @@ -2734,7 +2734,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -2919,7 +2919,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.media.upload" call. diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index c9d8a45b7b8..de2dffaf842 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -1405,7 +1405,7 @@ func (c *CaseClassificationsSearchCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.caseClassifications.search" call. @@ -1537,7 +1537,7 @@ func (c *CasesCloseCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.close" call. @@ -1662,7 +1662,7 @@ func (c *CasesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.create" call. @@ -1780,7 +1780,7 @@ func (c *CasesEscalateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.escalate" call. @@ -1896,7 +1896,7 @@ func (c *CasesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.get" call. @@ -2058,7 +2058,7 @@ func (c *CasesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.list" call. @@ -2205,7 +2205,7 @@ func (c *CasesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.patch" call. @@ -2360,7 +2360,7 @@ func (c *CasesSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.search" call. @@ -2515,7 +2515,7 @@ func (c *CasesShowFeedCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.showFeed" call. @@ -2669,7 +2669,7 @@ func (c *CasesAttachmentsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.attachments.list" call. @@ -2804,7 +2804,7 @@ func (c *CasesCommentsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.comments.create" call. @@ -2935,7 +2935,7 @@ func (c *CasesCommentsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.cases.comments.list" call. @@ -3076,7 +3076,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -3261,7 +3261,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudsupport.media.upload" call. diff --git a/cloudtasks/v2/cloudtasks-gen.go b/cloudtasks/v2/cloudtasks-gen.go index 6b2383e761b..bb4ff4d1a8a 100644 --- a/cloudtasks/v2/cloudtasks-gen.go +++ b/cloudtasks/v2/cloudtasks-gen.go @@ -2029,7 +2029,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.get" call. @@ -2139,7 +2139,7 @@ func (c *ProjectsLocationsGetCmekConfigCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.getCmekConfig" call. @@ -2270,7 +2270,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.list" call. @@ -2405,7 +2405,7 @@ func (c *ProjectsLocationsUpdateCmekConfigCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.updateCmekConfig" call. @@ -2514,7 +2514,7 @@ func (c *ProjectsLocationsQueuesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.create" call. @@ -2622,7 +2622,7 @@ func (c *ProjectsLocationsQueuesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.delete" call. @@ -2730,7 +2730,7 @@ func (c *ProjectsLocationsQueuesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.get" call. @@ -2836,7 +2836,7 @@ func (c *ProjectsLocationsQueuesGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.getIamPolicy" call. @@ -2977,7 +2977,7 @@ func (c *ProjectsLocationsQueuesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.list" call. @@ -3125,7 +3125,7 @@ func (c *ProjectsLocationsQueuesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.patch" call. @@ -3230,7 +3230,7 @@ func (c *ProjectsLocationsQueuesPauseCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.pause" call. @@ -3335,7 +3335,7 @@ func (c *ProjectsLocationsQueuesPurgeCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.purge" call. @@ -3443,7 +3443,7 @@ func (c *ProjectsLocationsQueuesResumeCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.resume" call. @@ -3551,7 +3551,7 @@ func (c *ProjectsLocationsQueuesSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.setIamPolicy" call. @@ -3659,7 +3659,7 @@ func (c *ProjectsLocationsQueuesTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.testIamPermissions" call. @@ -3774,7 +3774,7 @@ func (c *ProjectsLocationsQueuesTasksBufferCall) doRequest(alt string) (*http.Re "queue": c.queue, "taskId": c.taskId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.buffer" call. @@ -3879,7 +3879,7 @@ func (c *ProjectsLocationsQueuesTasksCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.create" call. @@ -3977,7 +3977,7 @@ func (c *ProjectsLocationsQueuesTasksDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.delete" call. @@ -4111,7 +4111,7 @@ func (c *ProjectsLocationsQueuesTasksGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.get" call. @@ -4268,7 +4268,7 @@ func (c *ProjectsLocationsQueuesTasksListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.list" call. @@ -4403,7 +4403,7 @@ func (c *ProjectsLocationsQueuesTasksRunCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.run" call. diff --git a/cloudtasks/v2beta2/cloudtasks-gen.go b/cloudtasks/v2beta2/cloudtasks-gen.go index c957b7e6ff0..cf640f6dd6d 100644 --- a/cloudtasks/v2beta2/cloudtasks-gen.go +++ b/cloudtasks/v2beta2/cloudtasks-gen.go @@ -2364,7 +2364,7 @@ func (c *ApiQueueUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.api.queue.update" call. @@ -2471,7 +2471,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.get" call. @@ -2581,7 +2581,7 @@ func (c *ProjectsLocationsGetCmekConfigCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.getCmekConfig" call. @@ -2712,7 +2712,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.list" call. @@ -2847,7 +2847,7 @@ func (c *ProjectsLocationsUpdateCmekConfigCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.updateCmekConfig" call. @@ -2956,7 +2956,7 @@ func (c *ProjectsLocationsQueuesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.create" call. @@ -3064,7 +3064,7 @@ func (c *ProjectsLocationsQueuesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.delete" call. @@ -3181,7 +3181,7 @@ func (c *ProjectsLocationsQueuesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.get" call. @@ -3287,7 +3287,7 @@ func (c *ProjectsLocationsQueuesGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.getIamPolicy" call. @@ -3437,7 +3437,7 @@ func (c *ProjectsLocationsQueuesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.list" call. @@ -3585,7 +3585,7 @@ func (c *ProjectsLocationsQueuesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.patch" call. @@ -3690,7 +3690,7 @@ func (c *ProjectsLocationsQueuesPauseCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.pause" call. @@ -3795,7 +3795,7 @@ func (c *ProjectsLocationsQueuesPurgeCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.purge" call. @@ -3903,7 +3903,7 @@ func (c *ProjectsLocationsQueuesResumeCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.resume" call. @@ -4011,7 +4011,7 @@ func (c *ProjectsLocationsQueuesSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.setIamPolicy" call. @@ -4119,7 +4119,7 @@ func (c *ProjectsLocationsQueuesTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.testIamPermissions" call. @@ -4227,7 +4227,7 @@ func (c *ProjectsLocationsQueuesTasksAcknowledgeCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.acknowledge" call. @@ -4341,7 +4341,7 @@ func (c *ProjectsLocationsQueuesTasksBufferCall) doRequest(alt string) (*http.Re "queue": c.queue, "taskId": c.taskId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.buffer" call. @@ -4446,7 +4446,7 @@ func (c *ProjectsLocationsQueuesTasksCancelLeaseCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.cancelLease" call. @@ -4551,7 +4551,7 @@ func (c *ProjectsLocationsQueuesTasksCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.create" call. @@ -4649,7 +4649,7 @@ func (c *ProjectsLocationsQueuesTasksDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.delete" call. @@ -4784,7 +4784,7 @@ func (c *ProjectsLocationsQueuesTasksGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.get" call. @@ -4894,7 +4894,7 @@ func (c *ProjectsLocationsQueuesTasksLeaseCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.lease" call. @@ -5053,7 +5053,7 @@ func (c *ProjectsLocationsQueuesTasksListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.list" call. @@ -5179,7 +5179,7 @@ func (c *ProjectsLocationsQueuesTasksRenewLeaseCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.renewLease" call. @@ -5293,7 +5293,7 @@ func (c *ProjectsLocationsQueuesTasksRunCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.run" call. diff --git a/cloudtasks/v2beta3/cloudtasks-gen.go b/cloudtasks/v2beta3/cloudtasks-gen.go index 610f158e8a5..df3f33c83d8 100644 --- a/cloudtasks/v2beta3/cloudtasks-gen.go +++ b/cloudtasks/v2beta3/cloudtasks-gen.go @@ -2185,7 +2185,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.get" call. @@ -2295,7 +2295,7 @@ func (c *ProjectsLocationsGetCmekConfigCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.getCmekConfig" call. @@ -2426,7 +2426,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.list" call. @@ -2561,7 +2561,7 @@ func (c *ProjectsLocationsUpdateCmekConfigCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.updateCmekConfig" call. @@ -2670,7 +2670,7 @@ func (c *ProjectsLocationsQueuesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.create" call. @@ -2778,7 +2778,7 @@ func (c *ProjectsLocationsQueuesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.delete" call. @@ -2895,7 +2895,7 @@ func (c *ProjectsLocationsQueuesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.get" call. @@ -3001,7 +3001,7 @@ func (c *ProjectsLocationsQueuesGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.getIamPolicy" call. @@ -3151,7 +3151,7 @@ func (c *ProjectsLocationsQueuesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.list" call. @@ -3299,7 +3299,7 @@ func (c *ProjectsLocationsQueuesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.patch" call. @@ -3404,7 +3404,7 @@ func (c *ProjectsLocationsQueuesPauseCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.pause" call. @@ -3509,7 +3509,7 @@ func (c *ProjectsLocationsQueuesPurgeCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.purge" call. @@ -3617,7 +3617,7 @@ func (c *ProjectsLocationsQueuesResumeCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.resume" call. @@ -3725,7 +3725,7 @@ func (c *ProjectsLocationsQueuesSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.setIamPolicy" call. @@ -3833,7 +3833,7 @@ func (c *ProjectsLocationsQueuesTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.testIamPermissions" call. @@ -3948,7 +3948,7 @@ func (c *ProjectsLocationsQueuesTasksBufferCall) doRequest(alt string) (*http.Re "queue": c.queue, "taskId": c.taskId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.buffer" call. @@ -4053,7 +4053,7 @@ func (c *ProjectsLocationsQueuesTasksCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.create" call. @@ -4151,7 +4151,7 @@ func (c *ProjectsLocationsQueuesTasksDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.delete" call. @@ -4285,7 +4285,7 @@ func (c *ProjectsLocationsQueuesTasksGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.get" call. @@ -4442,7 +4442,7 @@ func (c *ProjectsLocationsQueuesTasksListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.list" call. @@ -4577,7 +4577,7 @@ func (c *ProjectsLocationsQueuesTasksRunCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtasks.projects.locations.queues.tasks.run" call. diff --git a/cloudtrace/v1/cloudtrace-gen.go b/cloudtrace/v1/cloudtrace-gen.go index 83ef93afed1..166f137dc82 100644 --- a/cloudtrace/v1/cloudtrace-gen.go +++ b/cloudtrace/v1/cloudtrace-gen.go @@ -405,7 +405,7 @@ func (c *ProjectsPatchTracesCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtrace.projects.patchTraces" call. @@ -516,7 +516,7 @@ func (c *ProjectsTracesGetCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "traceId": c.traceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtrace.projects.traces.get" call. @@ -715,7 +715,7 @@ func (c *ProjectsTracesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtrace.projects.traces.list" call. diff --git a/cloudtrace/v2/cloudtrace-gen.go b/cloudtrace/v2/cloudtrace-gen.go index 35964843290..d28c08a4943 100644 --- a/cloudtrace/v2/cloudtrace-gen.go +++ b/cloudtrace/v2/cloudtrace-gen.go @@ -818,7 +818,7 @@ func (c *ProjectsTracesBatchWriteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtrace.projects.traces.batchWrite" call. @@ -925,7 +925,7 @@ func (c *ProjectsTracesSpansCreateSpanCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtrace.projects.traces.spans.createSpan" call. diff --git a/cloudtrace/v2beta1/cloudtrace-gen.go b/cloudtrace/v2beta1/cloudtrace-gen.go index f68ce9afbbf..b23b402d32f 100644 --- a/cloudtrace/v2beta1/cloudtrace-gen.go +++ b/cloudtrace/v2beta1/cloudtrace-gen.go @@ -360,7 +360,7 @@ func (c *ProjectsTraceSinksCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtrace.projects.traceSinks.create" call. @@ -458,7 +458,7 @@ func (c *ProjectsTraceSinksDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtrace.projects.traceSinks.delete" call. @@ -567,7 +567,7 @@ func (c *ProjectsTraceSinksGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtrace.projects.traceSinks.get" call. @@ -694,7 +694,7 @@ func (c *ProjectsTraceSinksListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtrace.projects.traceSinks.list" call. @@ -834,7 +834,7 @@ func (c *ProjectsTraceSinksPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "cloudtrace.projects.traceSinks.patch" call. diff --git a/commentanalyzer/v1alpha1/commentanalyzer-gen.go b/commentanalyzer/v1alpha1/commentanalyzer-gen.go index acb83da036c..4b2011199df 100644 --- a/commentanalyzer/v1alpha1/commentanalyzer-gen.go +++ b/commentanalyzer/v1alpha1/commentanalyzer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://github.com/conversationai/perspectiveapi/blob/master/README.md // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // commentanalyzerService, err := commentanalyzer.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // commentanalyzerService, err := commentanalyzer.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // commentanalyzerService, err := commentanalyzer.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package commentanalyzer // import "google.golang.org/api/commentanalyzer/v1alpha1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,14 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "commentanalyzer:v1alpha1" const apiName = "commentanalyzer" const apiVersion = "v1alpha1" const basePath = "https://commentanalyzer.googleapis.com/" +const basePathTemplate = "https://commentanalyzer.UNIVERSE_DOMAIN/" +const mtlsBasePath = "https://commentanalyzer.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -84,12 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/userinfo.email", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -142,34 +162,27 @@ type CommentsService struct { s *Service } -// AnalyzeCommentRequest: The comment analysis request -// message. +// AnalyzeCommentRequest: The comment analysis request message. // LINT.IfChange type AnalyzeCommentRequest struct { - // ClientToken: Opaque token that is echoed from the request to the - // response. + // ClientToken: Opaque token that is echoed from the request to the response. ClientToken string `json:"clientToken,omitempty"` - // Comment: The comment to analyze. Comment *TextEntry `json:"comment,omitempty"` - - // CommunityId: Optional identifier associating this - // AnalyzeCommentRequest with a + // CommunityId: Optional identifier associating this AnalyzeCommentRequest with + // a // particular client's community. Different communities may have // different // norms and rules. Specifying this value enables us to explore // building // community-specific models for clients. CommunityId string `json:"communityId,omitempty"` - // Context: The context of the comment. Context *Context `json:"context,omitempty"` - - // DoNotStore: Do not store the comment or context sent in this request. - // By default, the + // DoNotStore: Do not store the comment or context sent in this request. By + // default, the // service may store comments/context for debugging purposes. DoNotStore bool `json:"doNotStore,omitempty"` - // Languages: The language(s) of the comment and context. If none are // specified, we // attempt to automatically detect the language. Specifying multiple @@ -186,7 +199,6 @@ type AnalyzeCommentRequest struct { // the // service. Languages []string `json:"languages,omitempty"` - // RequestedAttributes: Specification of requested attributes. The // AttributeParameters serve as // configuration for each associated attribute. The map keys are @@ -200,204 +212,165 @@ type AnalyzeCommentRequest struct { // see // go/checker-models (internal) // and - // https://github.com/conversationai/perspectiveapi/blob/master/2-api - // /models.md#all-attribute-types. + // https://github.com/conversationai/perspectiveapi/blob/master/2-api/models.md#all-attribute-types. RequestedAttributes map[string]AttributeParameters `json:"requestedAttributes,omitempty"` - - // SessionId: Session ID. Used to join related RPCs into a single - // session. For example, + // SessionId: Session ID. Used to join related RPCs into a single session. For + // example, // an interactive tool that calls both the AnalyzeComment // and - // SuggestCommentScore RPCs should set all invocations of both RPCs to - // the + // SuggestCommentScore RPCs should set all invocations of both RPCs to the // same Session ID, typically a random 64-bit integer. SessionId string `json:"sessionId,omitempty"` - - // SpanAnnotations: An advisory parameter that will return span - // annotations if the model - // is capable of providing scores with sub-comment resolution. This - // will + // SpanAnnotations: An advisory parameter that will return span annotations if + // the model + // is capable of providing scores with sub-comment resolution. This will // likely increase the size of the returned message. SpanAnnotations bool `json:"spanAnnotations,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyzeCommentRequest) MarshalJSON() ([]byte, error) { +func (s AnalyzeCommentRequest) MarshalJSON() ([]byte, error) { type NoMethod AnalyzeCommentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnalyzeCommentResponse: The comment analysis response message. type AnalyzeCommentResponse struct { - // AttributeScores: Scores for the requested attributes. The map keys - // are attribute names (same + // AttributeScores: Scores for the requested attributes. The map keys are + // attribute names (same // as the requested_attribute field in AnalyzeCommentRequest, for // example // "ATTACK_ON_AUTHOR", "INFLAMMATORY", etc). AttributeScores map[string]AttributeScores `json:"attributeScores,omitempty"` - // ClientToken: Same token from the original AnalyzeCommentRequest. ClientToken string `json:"clientToken,omitempty"` - - // DetectedLanguages: Contains the languages detected from the text - // content, sorted in order of + // DetectedLanguages: Contains the languages detected from the text content, + // sorted in order of // likelihood. DetectedLanguages []string `json:"detectedLanguages,omitempty"` - - // Languages: The language(s) used by CommentAnalyzer service to choose - // which Model to + // Languages: The language(s) used by CommentAnalyzer service to choose which + // Model to // use when analyzing the comment. Might better be // called - // "effective_languages". The logic used to make the choice is as - // follows: + // "effective_languages". The logic used to make the choice is as follows: // if !Request.languages.empty() // effective_languages = Request.languages // else // effective_languages = detected_languages[0] Languages []string `json:"languages,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AttributeScores") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttributeScores") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AttributeScores") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyzeCommentResponse) MarshalJSON() ([]byte, error) { +func (s AnalyzeCommentResponse) MarshalJSON() ([]byte, error) { type NoMethod AnalyzeCommentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ArticleAndParentComment: A type of context specific to a comment left -// on a single-threaded comment -// message board, where comments are either a top level comment or the -// child of +// ArticleAndParentComment: A type of context specific to a comment left on a +// single-threaded comment +// message board, where comments are either a top level comment or the child +// of // a top level comment. type ArticleAndParentComment struct { - // Article: The source content about which the comment was made (article - // text, article + // Article: The source content about which the comment was made (article text, + // article // summary, video transcript, etc). Article *TextEntry `json:"article,omitempty"` - - // ParentComment: Refers to text that is a direct parent of the source - // comment, such as in a + // ParentComment: Refers to text that is a direct parent of the source comment, + // such as in a // one-deep threaded message board. This field will only be present // for // comments that are replies to other comments and will not be populated // for // direct comments on the article_text. ParentComment *TextEntry `json:"parentComment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Article") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Article") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Article") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Article") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ArticleAndParentComment) MarshalJSON() ([]byte, error) { +func (s ArticleAndParentComment) MarshalJSON() ([]byte, error) { type NoMethod ArticleAndParentComment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AttributeParameters: Configurable parameters for attribute scoring. type AttributeParameters struct { - // ScoreThreshold: Don't return scores for this attribute that are below - // this threshold. If - // unset, a default threshold will be applied. A FloatValue wrapper is - // used to + // ScoreThreshold: Don't return scores for this attribute that are below this + // threshold. If + // unset, a default threshold will be applied. A FloatValue wrapper is used + // to // distinguish between 0 vs. default/unset. ScoreThreshold float64 `json:"scoreThreshold,omitempty"` - - // ScoreType: What type of scores to return. If unset, defaults to - // probability scores. + // ScoreType: What type of scores to return. If unset, defaults to probability + // scores. // // Possible values: - // "SCORE_TYPE_UNSPECIFIED" - Unspecified. Defaults to PROBABILITY - // scores if available, and otherwise + // "SCORE_TYPE_UNSPECIFIED" - Unspecified. Defaults to PROBABILITY scores if + // available, and otherwise // RAW. Every model has a RAW score. - // "PROBABILITY" - Probability scores are in the range [0, 1] and - // indicate level of confidence + // "PROBABILITY" - Probability scores are in the range [0, 1] and indicate + // level of confidence // in the attribute label. - // "STD_DEV_SCORE" - Standard deviation scores are in the range (-inf, - // +inf). - // "PERCENTILE" - Percentile scores are in the range [0, 1] and - // indicate the percentile of + // "STD_DEV_SCORE" - Standard deviation scores are in the range (-inf, +inf). + // "PERCENTILE" - Percentile scores are in the range [0, 1] and indicate the + // percentile of // the raw score, normalized with a test dataset. This is not // generally // recommended, as the normalization is dependent on the dataset used, // which // may not match other usecases. - // "RAW" - Raw scores are the raw values from the model, and may take - // any value. This + // "RAW" - Raw scores are the raw values from the model, and may take any + // value. This // is primarily for debugging/testing, and not generally recommended. ScoreType string `json:"scoreType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ScoreThreshold") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ScoreThreshold") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ScoreThreshold") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AttributeParameters) MarshalJSON() ([]byte, error) { +func (s AttributeParameters) MarshalJSON() ([]byte, error) { type NoMethod AttributeParameters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *AttributeParameters) UnmarshalJSON(data []byte) error { @@ -414,82 +387,66 @@ func (s *AttributeParameters) UnmarshalJSON(data []byte) error { return nil } -// AttributeScores: This holds score values for a single attribute. It -// contains both per-span +// AttributeScores: This holds score values for a single attribute. It contains +// both per-span // scores as well as an overall summary score.. type AttributeScores struct { // SpanScores: Per-span scores. SpanScores []*SpanScore `json:"spanScores,omitempty"` - // SummaryScore: Overall score for comment as a whole. SummaryScore *Score `json:"summaryScore,omitempty"` - // ForceSendFields is a list of field names (e.g. "SpanScores") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SpanScores") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SpanScores") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AttributeScores) MarshalJSON() ([]byte, error) { +func (s AttributeScores) MarshalJSON() ([]byte, error) { type NoMethod AttributeScores - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Context: Context is typically something that a Comment is referencing -// or replying to +// Context: Context is typically something that a Comment is referencing or +// replying to // (such as an article, or previous comment). -// Note: Populate only ONE OF the following fields. The oneof syntax -// cannot be -// used because that would require nesting entries inside another -// message and +// Note: Populate only ONE OF the following fields. The oneof syntax cannot +// be +// used because that would require nesting entries inside another message +// and // breaking backwards compatibility. The server will return an error if // more // than one of the following fields is present. type Context struct { - // ArticleAndParentComment: Information about the source for which the - // original comment was made, and + // ArticleAndParentComment: Information about the source for which the original + // comment was made, and // any parent comment info. ArticleAndParentComment *ArticleAndParentComment `json:"articleAndParentComment,omitempty"` - - // Entries: A list of messages. For example, a linear comments section - // or forum thread. + // Entries: A list of messages. For example, a linear comments section or forum + // thread. Entries []*TextEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ArticleAndParentComment") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ArticleAndParentComment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArticleAndParentComment") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ArticleAndParentComment") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Context) MarshalJSON() ([]byte, error) { +func (s Context) MarshalJSON() ([]byte, error) { type NoMethod Context - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Score: Analysis scores are described by a value and a ScoreType. @@ -497,50 +454,42 @@ type Score struct { // Type: The type of the above value. // // Possible values: - // "SCORE_TYPE_UNSPECIFIED" - Unspecified. Defaults to PROBABILITY - // scores if available, and otherwise + // "SCORE_TYPE_UNSPECIFIED" - Unspecified. Defaults to PROBABILITY scores if + // available, and otherwise // RAW. Every model has a RAW score. - // "PROBABILITY" - Probability scores are in the range [0, 1] and - // indicate level of confidence + // "PROBABILITY" - Probability scores are in the range [0, 1] and indicate + // level of confidence // in the attribute label. - // "STD_DEV_SCORE" - Standard deviation scores are in the range (-inf, - // +inf). - // "PERCENTILE" - Percentile scores are in the range [0, 1] and - // indicate the percentile of + // "STD_DEV_SCORE" - Standard deviation scores are in the range (-inf, +inf). + // "PERCENTILE" - Percentile scores are in the range [0, 1] and indicate the + // percentile of // the raw score, normalized with a test dataset. This is not // generally // recommended, as the normalization is dependent on the dataset used, // which // may not match other usecases. - // "RAW" - Raw scores are the raw values from the model, and may take - // any value. This + // "RAW" - Raw scores are the raw values from the model, and may take any + // value. This // is primarily for debugging/testing, and not generally recommended. Type string `json:"type,omitempty"` - // Value: Score value. Semantics described by type below. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Score) MarshalJSON() ([]byte, error) { +func (s Score) MarshalJSON() ([]byte, error) { type NoMethod Score - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Score) UnmarshalJSON(data []byte) error { @@ -559,8 +508,8 @@ func (s *Score) UnmarshalJSON(data []byte) error { // SpanScore: This is a single score for a given span of text. type SpanScore struct { - // Begin: "begin" and "end" describe the span of the original text that - // the attribute + // Begin: "begin" and "end" describe the span of the original text that the + // attribute // score applies to. The values are the UTF-16 codepoint range. "end" // is // exclusive. For example, with the text "Hi there", the begin/end pair @@ -569,56 +518,45 @@ type SpanScore struct { // // If "begin" and "end" are unset, the score applies to the full text. Begin int64 `json:"begin,omitempty"` - - End int64 `json:"end,omitempty"` - + End int64 `json:"end,omitempty"` // Score: The score value. Score *Score `json:"score,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Begin") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Begin") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Begin") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpanScore) MarshalJSON() ([]byte, error) { +func (s SpanScore) MarshalJSON() ([]byte, error) { type NoMethod SpanScore - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SuggestCommentScoreRequest: The comment score suggestion request -// message. +// SuggestCommentScoreRequest: The comment score suggestion request message. type SuggestCommentScoreRequest struct { // AttributeScores: Attribute scores for the comment. The map keys are // attribute names, same as // the requested_attribute field in AnalyzeCommentRequest (for // example - // "ATTACK_ON_AUTHOR", "INFLAMMATORY", etc.). This field has the same - // type as + // "ATTACK_ON_AUTHOR", "INFLAMMATORY", etc.). This field has the same type + // as // the `attribute_scores` field in AnalyzeCommentResponse. // - // To specify an overall attribute score for the entire comment as a - // whole, + // To specify an overall attribute score for the entire comment as a whole, // use the `summary_score` field of the mapped AttributeScores object. // To // specify scores on specific subparts of the comment, use the // `span_scores` // field. All SpanScore objects must have begin and end fields set. // - // All Score objects must be explicitly set (for binary classification, - // use + // All Score objects must be explicitly set (for binary classification, use // the score values 0 and 1). If Score objects don't include a // ScoreType, // `PROBABILITY` is assumed. @@ -629,146 +567,109 @@ type SuggestCommentScoreRequest struct { // all // malformed requests. AttributeScores map[string]AttributeScores `json:"attributeScores,omitempty"` - - // ClientToken: Opaque token that is echoed from the request to the - // response. + // ClientToken: Opaque token that is echoed from the request to the response. ClientToken string `json:"clientToken,omitempty"` - // Comment: The comment being scored. Comment *TextEntry `json:"comment,omitempty"` - - // CommunityId: Optional identifier associating this comment score - // suggestion with a - // particular sub-community. Different communities may have different - // norms - // and rules. Specifying this value enables training - // community-specific + // CommunityId: Optional identifier associating this comment score suggestion + // with a + // particular sub-community. Different communities may have different norms + // and rules. Specifying this value enables training community-specific // models. CommunityId string `json:"communityId,omitempty"` - // Context: The context of the comment. Context *Context `json:"context,omitempty"` - // Languages: The language(s) of the comment and context. If none are // specified, we // attempt to automatically detect the language. Both ISO and BCP-47 // language // codes are accepted. Languages []string `json:"languages,omitempty"` - - // SessionId: Session ID. Used to join related RPCs into a single - // session. For example, + // SessionId: Session ID. Used to join related RPCs into a single session. For + // example, // an interactive tool that calls both the AnalyzeComment // and - // SuggestCommentScore RPCs should set all invocations of both RPCs to - // the + // SuggestCommentScore RPCs should set all invocations of both RPCs to the // same Session ID, typically a random 64-bit integer. SessionId string `json:"sessionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AttributeScores") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttributeScores") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AttributeScores") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SuggestCommentScoreRequest) MarshalJSON() ([]byte, error) { +func (s SuggestCommentScoreRequest) MarshalJSON() ([]byte, error) { type NoMethod SuggestCommentScoreRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SuggestCommentScoreResponse: The comment score suggestion response -// message. +// SuggestCommentScoreResponse: The comment score suggestion response message. type SuggestCommentScoreResponse struct { // ClientToken: Same token from the original SuggestCommentScoreRequest. ClientToken string `json:"clientToken,omitempty"` - - // DetectedLanguages: The list of languages detected from the comment - // text. + // DetectedLanguages: The list of languages detected from the comment text. DetectedLanguages []string `json:"detectedLanguages,omitempty"` - // RequestedLanguages: The list of languages provided in the request. RequestedLanguages []string `json:"requestedLanguages,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ClientToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SuggestCommentScoreResponse) MarshalJSON() ([]byte, error) { +func (s SuggestCommentScoreResponse) MarshalJSON() ([]byte, error) { type NoMethod SuggestCommentScoreResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TextEntry: Represents a body of text. type TextEntry struct { // Text: UTF-8 encoded text. Text string `json:"text,omitempty"` - // Type: Type of the text field. // // Possible values: - // "TEXT_TYPE_UNSPECIFIED" - The content type is not specified. Text - // will be interpreted as plain text + // "TEXT_TYPE_UNSPECIFIED" - The content type is not specified. Text will be + // interpreted as plain text // by default. // "PLAIN_TEXT" - Plain text. // "HTML" - HTML. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Text") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Text") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Text") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TextEntry) MarshalJSON() ([]byte, error) { +func (s TextEntry) MarshalJSON() ([]byte, error) { type NoMethod TextEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "commentanalyzer.comments.analyze": - type CommentsAnalyzeCall struct { s *Service analyzecommentrequest *AnalyzeCommentRequest @@ -786,23 +687,21 @@ func (r *CommentsService) Analyze(analyzecommentrequest *AnalyzeCommentRequest) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CommentsAnalyzeCall) Fields(s ...googleapi.Field) *CommentsAnalyzeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CommentsAnalyzeCall) Context(ctx context.Context) *CommentsAnalyzeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CommentsAnalyzeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -811,18 +710,12 @@ func (c *CommentsAnalyzeCall) Header() http.Header { } func (c *CommentsAnalyzeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200506") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzecommentrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/comments:analyze") @@ -832,16 +725,15 @@ func (c *CommentsAnalyzeCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "commentanalyzer.comments.analyze" call. -// Exactly one of *AnalyzeCommentResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AnalyzeCommentResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AnalyzeCommentResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CommentsAnalyzeCall) Do(opts ...googleapi.CallOption) (*AnalyzeCommentResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -849,17 +741,17 @@ func (c *CommentsAnalyzeCall) Do(opts ...googleapi.CallOption) (*AnalyzeCommentR if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AnalyzeCommentResponse{ ServerResponse: googleapi.ServerResponse{ @@ -872,28 +764,7 @@ func (c *CommentsAnalyzeCall) Do(opts ...googleapi.CallOption) (*AnalyzeCommentR return nil, err } return ret, nil - // { - // "description": "Analyzes the provided text and returns scores for requested attributes.", - // "flatPath": "v1alpha1/comments:analyze", - // "httpMethod": "POST", - // "id": "commentanalyzer.comments.analyze", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha1/comments:analyze", - // "request": { - // "$ref": "AnalyzeCommentRequest" - // }, - // "response": { - // "$ref": "AnalyzeCommentResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "commentanalyzer.comments.suggestscore": +} type CommentsSuggestscoreCall struct { s *Service @@ -911,23 +782,21 @@ func (r *CommentsService) Suggestscore(suggestcommentscorerequest *SuggestCommen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CommentsSuggestscoreCall) Fields(s ...googleapi.Field) *CommentsSuggestscoreCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CommentsSuggestscoreCall) Context(ctx context.Context) *CommentsSuggestscoreCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CommentsSuggestscoreCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -936,18 +805,12 @@ func (c *CommentsSuggestscoreCall) Header() http.Header { } func (c *CommentsSuggestscoreCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200506") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.suggestcommentscorerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/comments:suggestscore") @@ -957,16 +820,15 @@ func (c *CommentsSuggestscoreCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "commentanalyzer.comments.suggestscore" call. -// Exactly one of *SuggestCommentScoreResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *SuggestCommentScoreResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *SuggestCommentScoreResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CommentsSuggestscoreCall) Do(opts ...googleapi.CallOption) (*SuggestCommentScoreResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -974,17 +836,17 @@ func (c *CommentsSuggestscoreCall) Do(opts ...googleapi.CallOption) (*SuggestCom if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SuggestCommentScoreResponse{ ServerResponse: googleapi.ServerResponse{ @@ -997,23 +859,4 @@ func (c *CommentsSuggestscoreCall) Do(opts ...googleapi.CallOption) (*SuggestCom return nil, err } return ret, nil - // { - // "description": "Suggest comment scores as training data.", - // "flatPath": "v1alpha1/comments:suggestscore", - // "httpMethod": "POST", - // "id": "commentanalyzer.comments.suggestscore", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha1/comments:suggestscore", - // "request": { - // "$ref": "SuggestCommentScoreRequest" - // }, - // "response": { - // "$ref": "SuggestCommentScoreResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - } diff --git a/composer/v1/composer-gen.go b/composer/v1/composer-gen.go index 2f355b53686..252bcbe178f 100644 --- a/composer/v1/composer-gen.go +++ b/composer/v1/composer-gen.go @@ -2551,7 +2551,7 @@ func (c *ProjectsLocationsEnvironmentsCheckUpgradeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.checkUpgrade" call. @@ -2653,7 +2653,7 @@ func (c *ProjectsLocationsEnvironmentsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.create" call. @@ -2756,7 +2756,7 @@ func (c *ProjectsLocationsEnvironmentsDatabaseFailoverCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.databaseFailover" call. @@ -2852,7 +2852,7 @@ func (c *ProjectsLocationsEnvironmentsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.delete" call. @@ -2954,7 +2954,7 @@ func (c *ProjectsLocationsEnvironmentsExecuteAirflowCommandCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.executeAirflowCommand" call. @@ -3063,7 +3063,7 @@ func (c *ProjectsLocationsEnvironmentsFetchDatabasePropertiesCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.fetchDatabaseProperties" call. @@ -3172,7 +3172,7 @@ func (c *ProjectsLocationsEnvironmentsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.get" call. @@ -3294,7 +3294,7 @@ func (c *ProjectsLocationsEnvironmentsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.list" call. @@ -3420,7 +3420,7 @@ func (c *ProjectsLocationsEnvironmentsLoadSnapshotCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.loadSnapshot" call. @@ -3604,7 +3604,7 @@ func (c *ProjectsLocationsEnvironmentsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.patch" call. @@ -3706,7 +3706,7 @@ func (c *ProjectsLocationsEnvironmentsPollAirflowCommandCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.pollAirflowCommand" call. @@ -3811,7 +3811,7 @@ func (c *ProjectsLocationsEnvironmentsSaveSnapshotCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.saveSnapshot" call. @@ -3913,7 +3913,7 @@ func (c *ProjectsLocationsEnvironmentsStopAirflowCommandCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.stopAirflowCommand" call. @@ -4018,7 +4018,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsConfigMapsCreateCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsConfigMaps.create" call. @@ -4118,7 +4118,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsConfigMapsDeleteCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsConfigMaps.delete" call. @@ -4229,7 +4229,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsConfigMapsGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsConfigMaps.get" call. @@ -4353,7 +4353,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsConfigMapsListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsConfigMaps.list" call. @@ -4480,7 +4480,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsConfigMapsUpdateCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsConfigMaps.update" call. @@ -4584,7 +4584,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsSecretsCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsSecrets.create" call. @@ -4683,7 +4683,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsSecretsDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsSecrets.delete" call. @@ -4794,7 +4794,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsSecretsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsSecrets.get" call. @@ -4918,7 +4918,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsSecretsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsSecrets.list" call. @@ -5044,7 +5044,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsSecretsUpdateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsSecrets.update" call. @@ -5179,7 +5179,7 @@ func (c *ProjectsLocationsEnvironmentsWorkloadsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.workloads.list" call. @@ -5330,7 +5330,7 @@ func (c *ProjectsLocationsImageVersionsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.imageVersions.list" call. @@ -5450,7 +5450,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.operations.delete" call. @@ -5559,7 +5559,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.operations.get" call. @@ -5687,7 +5687,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.operations.list" call. diff --git a/composer/v1beta1/composer-gen.go b/composer/v1beta1/composer-gen.go index 957c1d1f202..7e5f429ab42 100644 --- a/composer/v1beta1/composer-gen.go +++ b/composer/v1beta1/composer-gen.go @@ -2574,7 +2574,7 @@ func (c *ProjectsLocationsEnvironmentsCheckUpgradeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.checkUpgrade" call. @@ -2676,7 +2676,7 @@ func (c *ProjectsLocationsEnvironmentsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.create" call. @@ -2779,7 +2779,7 @@ func (c *ProjectsLocationsEnvironmentsDatabaseFailoverCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.databaseFailover" call. @@ -2875,7 +2875,7 @@ func (c *ProjectsLocationsEnvironmentsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.delete" call. @@ -2977,7 +2977,7 @@ func (c *ProjectsLocationsEnvironmentsExecuteAirflowCommandCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.executeAirflowCommand" call. @@ -3086,7 +3086,7 @@ func (c *ProjectsLocationsEnvironmentsFetchDatabasePropertiesCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.fetchDatabaseProperties" call. @@ -3195,7 +3195,7 @@ func (c *ProjectsLocationsEnvironmentsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.get" call. @@ -3317,7 +3317,7 @@ func (c *ProjectsLocationsEnvironmentsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.list" call. @@ -3443,7 +3443,7 @@ func (c *ProjectsLocationsEnvironmentsLoadSnapshotCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.loadSnapshot" call. @@ -3642,7 +3642,7 @@ func (c *ProjectsLocationsEnvironmentsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.patch" call. @@ -3744,7 +3744,7 @@ func (c *ProjectsLocationsEnvironmentsPollAirflowCommandCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.pollAirflowCommand" call. @@ -3848,7 +3848,7 @@ func (c *ProjectsLocationsEnvironmentsRestartWebServerCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.restartWebServer" call. @@ -3952,7 +3952,7 @@ func (c *ProjectsLocationsEnvironmentsSaveSnapshotCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.saveSnapshot" call. @@ -4054,7 +4054,7 @@ func (c *ProjectsLocationsEnvironmentsStopAirflowCommandCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.stopAirflowCommand" call. @@ -4159,7 +4159,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsConfigMapsCreateCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsConfigMaps.create" call. @@ -4259,7 +4259,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsConfigMapsDeleteCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsConfigMaps.delete" call. @@ -4370,7 +4370,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsConfigMapsGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsConfigMaps.get" call. @@ -4494,7 +4494,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsConfigMapsListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsConfigMaps.list" call. @@ -4621,7 +4621,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsConfigMapsUpdateCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsConfigMaps.update" call. @@ -4725,7 +4725,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsSecretsCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsSecrets.create" call. @@ -4824,7 +4824,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsSecretsDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsSecrets.delete" call. @@ -4935,7 +4935,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsSecretsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsSecrets.get" call. @@ -5059,7 +5059,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsSecretsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsSecrets.list" call. @@ -5185,7 +5185,7 @@ func (c *ProjectsLocationsEnvironmentsUserWorkloadsSecretsUpdateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.userWorkloadsSecrets.update" call. @@ -5320,7 +5320,7 @@ func (c *ProjectsLocationsEnvironmentsWorkloadsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.environments.workloads.list" call. @@ -5471,7 +5471,7 @@ func (c *ProjectsLocationsImageVersionsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.imageVersions.list" call. @@ -5591,7 +5591,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.operations.delete" call. @@ -5700,7 +5700,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.operations.get" call. @@ -5828,7 +5828,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "composer.projects.locations.operations.list" call. diff --git a/compute/v0.alpha/compute2-gen.go b/compute/v0.alpha/compute2-gen.go index 782d35de5fb..aa25a27042f 100644 --- a/compute/v0.alpha/compute2-gen.go +++ b/compute/v0.alpha/compute2-gen.go @@ -184,7 +184,7 @@ func (c *AcceleratorTypesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.acceleratorTypes.aggregatedList" call. @@ -321,7 +321,7 @@ func (c *AcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "acceleratorType": c.acceleratorType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.acceleratorTypes.get" call. @@ -512,7 +512,7 @@ func (c *AcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.acceleratorTypes.list" call. @@ -742,7 +742,7 @@ func (c *AddressesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.aggregatedList" call. @@ -882,7 +882,7 @@ func (c *AddressesDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.delete" call. @@ -997,7 +997,7 @@ func (c *AddressesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.get" call. @@ -1118,7 +1118,7 @@ func (c *AddressesInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.insert" call. @@ -1307,7 +1307,7 @@ func (c *AddressesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.list" call. @@ -1452,7 +1452,7 @@ func (c *AddressesMoveCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.move" call. @@ -1577,7 +1577,7 @@ func (c *AddressesSetLabelsCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.setLabels" call. @@ -1687,7 +1687,7 @@ func (c *AddressesTestIamPermissionsCall) doRequest(alt string) (*http.Response, "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.testIamPermissions" call. @@ -1896,7 +1896,7 @@ func (c *AutoscalersAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.aggregatedList" call. @@ -2036,7 +2036,7 @@ func (c *AutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.delete" call. @@ -2151,7 +2151,7 @@ func (c *AutoscalersGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.get" call. @@ -2272,7 +2272,7 @@ func (c *AutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.insert" call. @@ -2461,7 +2461,7 @@ func (c *AutoscalersListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.list" call. @@ -2611,7 +2611,7 @@ func (c *AutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.patch" call. @@ -2721,7 +2721,7 @@ func (c *AutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.Respons "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.testIamPermissions" call. @@ -2850,7 +2850,7 @@ func (c *AutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.update" call. @@ -2972,7 +2972,7 @@ func (c *BackendBucketsAddSignedUrlKeyCall) doRequest(alt string) (*http.Respons "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.addSignedUrlKey" call. @@ -3086,7 +3086,7 @@ func (c *BackendBucketsDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.delete" call. @@ -3204,7 +3204,7 @@ func (c *BackendBucketsDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Resp "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.deleteSignedUrlKey" call. @@ -3315,7 +3315,7 @@ func (c *BackendBucketsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.get" call. @@ -3434,7 +3434,7 @@ func (c *BackendBucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.getIamPolicy" call. @@ -3551,7 +3551,7 @@ func (c *BackendBucketsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.insert" call. @@ -3737,7 +3737,7 @@ func (c *BackendBucketsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.list" call. @@ -3945,7 +3945,7 @@ func (c *BackendBucketsListUsableCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.listUsable" call. @@ -4089,7 +4089,7 @@ func (c *BackendBucketsPatchCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.patch" call. @@ -4211,7 +4211,7 @@ func (c *BackendBucketsSetEdgeSecurityPolicyCall) doRequest(alt string) (*http.R "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.setEdgeSecurityPolicy" call. @@ -4317,7 +4317,7 @@ func (c *BackendBucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.setIamPolicy" call. @@ -4423,7 +4423,7 @@ func (c *BackendBucketsTestIamPermissionsCall) doRequest(alt string) (*http.Resp "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.testIamPermissions" call. @@ -4545,7 +4545,7 @@ func (c *BackendBucketsUpdateCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.update" call. @@ -4667,7 +4667,7 @@ func (c *BackendServicesAddSignedUrlKeyCall) doRequest(alt string) (*http.Respon "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.addSignedUrlKey" call. @@ -4875,7 +4875,7 @@ func (c *BackendServicesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.aggregatedList" call. @@ -5011,7 +5011,7 @@ func (c *BackendServicesDeleteCall) doRequest(alt string) (*http.Response, error "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.delete" call. @@ -5129,7 +5129,7 @@ func (c *BackendServicesDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Res "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.deleteSignedUrlKey" call. @@ -5240,7 +5240,7 @@ func (c *BackendServicesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.get" call. @@ -5348,7 +5348,7 @@ func (c *BackendServicesGetHealthCall) doRequest(alt string) (*http.Response, er "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.getHealth" call. @@ -5468,7 +5468,7 @@ func (c *BackendServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.getIamPolicy" call. @@ -5586,7 +5586,7 @@ func (c *BackendServicesInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.insert" call. @@ -5772,7 +5772,7 @@ func (c *BackendServicesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.list" call. @@ -5980,7 +5980,7 @@ func (c *BackendServicesListUsableCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.listUsable" call. @@ -6125,7 +6125,7 @@ func (c *BackendServicesPatchCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.patch" call. @@ -6247,7 +6247,7 @@ func (c *BackendServicesSetEdgeSecurityPolicyCall) doRequest(alt string) (*http. "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.setEdgeSecurityPolicy" call. @@ -6353,7 +6353,7 @@ func (c *BackendServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.setIamPolicy" call. @@ -6476,7 +6476,7 @@ func (c *BackendServicesSetSecurityPolicyCall) doRequest(alt string) (*http.Resp "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.setSecurityPolicy" call. @@ -6582,7 +6582,7 @@ func (c *BackendServicesTestIamPermissionsCall) doRequest(alt string) (*http.Res "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.testIamPermissions" call. @@ -6704,7 +6704,7 @@ func (c *BackendServicesUpdateCall) doRequest(alt string) (*http.Response, error "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.update" call. @@ -6815,7 +6815,7 @@ func (c *DiskSettingsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskSettings.get" call. @@ -6942,7 +6942,7 @@ func (c *DiskSettingsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskSettings.patch" call. @@ -7150,7 +7150,7 @@ func (c *DiskTypesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskTypes.aggregatedList" call. @@ -7287,7 +7287,7 @@ func (c *DiskTypesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "diskType": c.diskType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskTypes.get" call. @@ -7476,7 +7476,7 @@ func (c *DiskTypesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskTypes.list" call. @@ -7623,7 +7623,7 @@ func (c *DisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.addResourcePolicies" call. @@ -7831,7 +7831,7 @@ func (c *DisksAggregatedListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.aggregatedList" call. @@ -7973,7 +7973,7 @@ func (c *DisksBulkInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.bulkInsert" call. @@ -8108,7 +8108,7 @@ func (c *DisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.createSnapshot" call. @@ -8229,7 +8229,7 @@ func (c *DisksDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.delete" call. @@ -8344,7 +8344,7 @@ func (c *DisksGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.get" call. @@ -8467,7 +8467,7 @@ func (c *DisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.getIamPolicy" call. @@ -8598,7 +8598,7 @@ func (c *DisksInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.insert" call. @@ -8788,7 +8788,7 @@ func (c *DisksListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.list" call. @@ -8933,7 +8933,7 @@ func (c *DisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.removeResourcePolicies" call. @@ -9058,7 +9058,7 @@ func (c *DisksResizeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.resize" call. @@ -9168,7 +9168,7 @@ func (c *DisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.setIamPolicy" call. @@ -9293,7 +9293,7 @@ func (c *DisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.setLabels" call. @@ -9418,7 +9418,7 @@ func (c *DisksStartAsyncReplicationCall) doRequest(alt string) (*http.Response, "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.startAsyncReplication" call. @@ -9537,7 +9537,7 @@ func (c *DisksStopAsyncReplicationCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.stopAsyncReplication" call. @@ -9659,7 +9659,7 @@ func (c *DisksStopGroupAsyncReplicationCall) doRequest(alt string) (*http.Respon "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.stopGroupAsyncReplication" call. @@ -9769,7 +9769,7 @@ func (c *DisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, err "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.testIamPermissions" call. @@ -9909,7 +9909,7 @@ func (c *DisksUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.update" call. @@ -10023,7 +10023,7 @@ func (c *ExternalVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, e "project": c.project, "externalVpnGateway": c.externalVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.delete" call. @@ -10135,7 +10135,7 @@ func (c *ExternalVpnGatewaysGetCall) doRequest(alt string) (*http.Response, erro "project": c.project, "externalVpnGateway": c.externalVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.get" call. @@ -10253,7 +10253,7 @@ func (c *ExternalVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.insert" call. @@ -10439,7 +10439,7 @@ func (c *ExternalVpnGatewaysListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.list" call. @@ -10567,7 +10567,7 @@ func (c *ExternalVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.setLabels" call. @@ -10673,7 +10673,7 @@ func (c *ExternalVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.testIamPermissions" call. @@ -10799,7 +10799,7 @@ func (c *FirewallPoliciesAddAssociationCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.addAssociation" call. @@ -10916,7 +10916,7 @@ func (c *FirewallPoliciesAddPacketMirroringRuleCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.addPacketMirroringRule" call. @@ -11032,7 +11032,7 @@ func (c *FirewallPoliciesAddRuleCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.addRule" call. @@ -11149,7 +11149,7 @@ func (c *FirewallPoliciesCloneRulesCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.cloneRules" call. @@ -11259,7 +11259,7 @@ func (c *FirewallPoliciesDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.delete" call. @@ -11366,7 +11366,7 @@ func (c *FirewallPoliciesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.get" call. @@ -11481,7 +11481,7 @@ func (c *FirewallPoliciesGetAssociationCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getAssociation" call. @@ -11597,7 +11597,7 @@ func (c *FirewallPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getIamPolicy" call. @@ -11713,7 +11713,7 @@ func (c *FirewallPoliciesGetPacketMirroringRuleCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getPacketMirroringRule" call. @@ -11829,7 +11829,7 @@ func (c *FirewallPoliciesGetRuleCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getRule" call. @@ -11948,7 +11948,7 @@ func (c *FirewallPoliciesInsertCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.insert" call. @@ -12135,7 +12135,7 @@ func (c *FirewallPoliciesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.list" call. @@ -12265,7 +12265,7 @@ func (c *FirewallPoliciesListAssociationsCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.listAssociations" call. @@ -12385,7 +12385,7 @@ func (c *FirewallPoliciesMoveCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.move" call. @@ -12501,7 +12501,7 @@ func (c *FirewallPoliciesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.patch" call. @@ -12625,7 +12625,7 @@ func (c *FirewallPoliciesPatchPacketMirroringRuleCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.patchPacketMirroringRule" call. @@ -12748,7 +12748,7 @@ func (c *FirewallPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.patchRule" call. @@ -12865,7 +12865,7 @@ func (c *FirewallPoliciesRemoveAssociationCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.removeAssociation" call. @@ -12983,7 +12983,7 @@ func (c *FirewallPoliciesRemovePacketMirroringRuleCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.removePacketMirroringRule" call. @@ -13100,7 +13100,7 @@ func (c *FirewallPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.removeRule" call. @@ -13202,7 +13202,7 @@ func (c *FirewallPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.setIamPolicy" call. @@ -13304,7 +13304,7 @@ func (c *FirewallPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.testIamPermissions" call. @@ -13419,7 +13419,7 @@ func (c *FirewallsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.delete" call. @@ -13530,7 +13530,7 @@ func (c *FirewallsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.get" call. @@ -13647,7 +13647,7 @@ func (c *FirewallsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.insert" call. @@ -13833,7 +13833,7 @@ func (c *FirewallsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.list" call. @@ -13976,7 +13976,7 @@ func (c *FirewallsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.patch" call. @@ -14082,7 +14082,7 @@ func (c *FirewallsTestIamPermissionsCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.testIamPermissions" call. @@ -14205,7 +14205,7 @@ func (c *FirewallsUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.update" call. @@ -14413,7 +14413,7 @@ func (c *ForwardingRulesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.aggregatedList" call. @@ -14553,7 +14553,7 @@ func (c *ForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, error "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.delete" call. @@ -14668,7 +14668,7 @@ func (c *ForwardingRulesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.get" call. @@ -14789,7 +14789,7 @@ func (c *ForwardingRulesInsertCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.insert" call. @@ -14979,7 +14979,7 @@ func (c *ForwardingRulesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.list" call. @@ -15128,7 +15128,7 @@ func (c *ForwardingRulesPatchCall) doRequest(alt string) (*http.Response, error) "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.patch" call. @@ -15253,7 +15253,7 @@ func (c *ForwardingRulesSetLabelsCall) doRequest(alt string) (*http.Response, er "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.setLabels" call. @@ -15379,7 +15379,7 @@ func (c *ForwardingRulesSetTargetCall) doRequest(alt string) (*http.Response, er "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.setTarget" call. @@ -15489,7 +15489,7 @@ func (c *ForwardingRulesTestIamPermissionsCall) doRequest(alt string) (*http.Res "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.testIamPermissions" call. @@ -15698,7 +15698,7 @@ func (c *FutureReservationsAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.aggregatedList" call. @@ -15839,7 +15839,7 @@ func (c *FutureReservationsCancelCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.cancel" call. @@ -15958,7 +15958,7 @@ func (c *FutureReservationsDeleteCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.delete" call. @@ -16074,7 +16074,7 @@ func (c *FutureReservationsGetCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.get" call. @@ -16195,7 +16195,7 @@ func (c *FutureReservationsInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.insert" call. @@ -16385,7 +16385,7 @@ func (c *FutureReservationsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.list" call. @@ -16545,7 +16545,7 @@ func (c *FutureReservationsUpdateCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.update" call. @@ -16659,7 +16659,7 @@ func (c *GlobalAddressesDeleteCall) doRequest(alt string) (*http.Response, error "project": c.project, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.delete" call. @@ -16770,7 +16770,7 @@ func (c *GlobalAddressesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.get" call. @@ -16883,7 +16883,7 @@ func (c *GlobalAddressesGetOwnerInstanceCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.getOwnerInstance" call. @@ -17001,7 +17001,7 @@ func (c *GlobalAddressesInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.insert" call. @@ -17186,7 +17186,7 @@ func (c *GlobalAddressesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.list" call. @@ -17328,7 +17328,7 @@ func (c *GlobalAddressesMoveCall) doRequest(alt string) (*http.Response, error) "project": c.project, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.move" call. @@ -17434,7 +17434,7 @@ func (c *GlobalAddressesSetLabelsCall) doRequest(alt string) (*http.Response, er "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.setLabels" call. @@ -17540,7 +17540,7 @@ func (c *GlobalAddressesTestIamPermissionsCall) doRequest(alt string) (*http.Res "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.testIamPermissions" call. @@ -17655,7 +17655,7 @@ func (c *GlobalForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.delete" call. @@ -17767,7 +17767,7 @@ func (c *GlobalForwardingRulesGetCall) doRequest(alt string) (*http.Response, er "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.get" call. @@ -17884,7 +17884,7 @@ func (c *GlobalForwardingRulesInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.insert" call. @@ -18070,7 +18070,7 @@ func (c *GlobalForwardingRulesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.list" call. @@ -18215,7 +18215,7 @@ func (c *GlobalForwardingRulesPatchCall) doRequest(alt string) (*http.Response, "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.patch" call. @@ -18321,7 +18321,7 @@ func (c *GlobalForwardingRulesSetLabelsCall) doRequest(alt string) (*http.Respon "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.setLabels" call. @@ -18443,7 +18443,7 @@ func (c *GlobalForwardingRulesSetTargetCall) doRequest(alt string) (*http.Respon "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.setTarget" call. @@ -18549,7 +18549,7 @@ func (c *GlobalForwardingRulesTestIamPermissionsCall) doRequest(alt string) (*ht "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.testIamPermissions" call. @@ -18672,7 +18672,7 @@ func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt st "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.attachNetworkEndpoints" call. @@ -18788,7 +18788,7 @@ func (c *GlobalNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Res "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.delete" call. @@ -18910,7 +18910,7 @@ func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt st "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.detachNetworkEndpoints" call. @@ -19022,7 +19022,7 @@ func (c *GlobalNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Respon "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.get" call. @@ -19140,7 +19140,7 @@ func (c *GlobalNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.insert" call. @@ -19326,7 +19326,7 @@ func (c *GlobalNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.list" call. @@ -19528,7 +19528,7 @@ func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt stri "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.listNetworkEndpoints" call. @@ -19758,7 +19758,7 @@ func (c *GlobalOperationsAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.aggregatedList" call. @@ -19880,7 +19880,7 @@ func (c *GlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.delete" call. @@ -19969,7 +19969,7 @@ func (c *GlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.get" call. @@ -20155,7 +20155,7 @@ func (c *GlobalOperationsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.list" call. @@ -20286,7 +20286,7 @@ func (c *GlobalOperationsWaitCall) doRequest(alt string) (*http.Response, error) "project": c.project, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.wait" call. @@ -20388,7 +20388,7 @@ func (c *GlobalOrganizationOperationsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOrganizationOperations.delete" call. @@ -20480,7 +20480,7 @@ func (c *GlobalOrganizationOperationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOrganizationOperations.get" call. @@ -20665,7 +20665,7 @@ func (c *GlobalOrganizationOperationsListCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOrganizationOperations.list" call. @@ -20801,7 +20801,7 @@ func (c *GlobalPublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.R "project": c.project, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.delete" call. @@ -20913,7 +20913,7 @@ func (c *GlobalPublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Resp "project": c.project, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.get" call. @@ -21031,7 +21031,7 @@ func (c *GlobalPublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.insert" call. @@ -21216,7 +21216,7 @@ func (c *GlobalPublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.list" call. @@ -21361,7 +21361,7 @@ func (c *GlobalPublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Re "project": c.project, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.patch" call. @@ -21569,7 +21569,7 @@ func (c *HealthChecksAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.aggregatedList" call. @@ -21705,7 +21705,7 @@ func (c *HealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.delete" call. @@ -21816,7 +21816,7 @@ func (c *HealthChecksGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.get" call. @@ -21933,7 +21933,7 @@ func (c *HealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.insert" call. @@ -22119,7 +22119,7 @@ func (c *HealthChecksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.list" call. @@ -22263,7 +22263,7 @@ func (c *HealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.patch" call. @@ -22369,7 +22369,7 @@ func (c *HealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Respon "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.testIamPermissions" call. @@ -22491,7 +22491,7 @@ func (c *HealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.update" call. @@ -22605,7 +22605,7 @@ func (c *HttpHealthChecksDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.delete" call. @@ -22716,7 +22716,7 @@ func (c *HttpHealthChecksGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.get" call. @@ -22834,7 +22834,7 @@ func (c *HttpHealthChecksInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.insert" call. @@ -23020,7 +23020,7 @@ func (c *HttpHealthChecksListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.list" call. @@ -23164,7 +23164,7 @@ func (c *HttpHealthChecksPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.patch" call. @@ -23270,7 +23270,7 @@ func (c *HttpHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Re "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.testIamPermissions" call. @@ -23392,7 +23392,7 @@ func (c *HttpHealthChecksUpdateCall) doRequest(alt string) (*http.Response, erro "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.update" call. @@ -23506,7 +23506,7 @@ func (c *HttpsHealthChecksDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.delete" call. @@ -23617,7 +23617,7 @@ func (c *HttpsHealthChecksGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.get" call. @@ -23735,7 +23735,7 @@ func (c *HttpsHealthChecksInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.insert" call. @@ -23921,7 +23921,7 @@ func (c *HttpsHealthChecksListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.list" call. @@ -24065,7 +24065,7 @@ func (c *HttpsHealthChecksPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.patch" call. @@ -24171,7 +24171,7 @@ func (c *HttpsHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.testIamPermissions" call. @@ -24293,7 +24293,7 @@ func (c *HttpsHealthChecksUpdateCall) doRequest(alt string) (*http.Response, err "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.update" call. @@ -24409,7 +24409,7 @@ func (c *ImageFamilyViewsGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "family": c.family, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.imageFamilyViews.get" call. @@ -24524,7 +24524,7 @@ func (c *ImagesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.delete" call. @@ -24645,7 +24645,7 @@ func (c *ImagesDeprecateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.deprecate" call. @@ -24756,7 +24756,7 @@ func (c *ImagesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.get" call. @@ -24870,7 +24870,7 @@ func (c *ImagesGetFromFamilyCall) doRequest(alt string) (*http.Response, error) "project": c.project, "family": c.family, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.getFromFamily" call. @@ -24989,7 +24989,7 @@ func (c *ImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.getIamPolicy" call. @@ -25113,7 +25113,7 @@ func (c *ImagesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.insert" call. @@ -25309,7 +25309,7 @@ func (c *ImagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.list" call. @@ -25452,7 +25452,7 @@ func (c *ImagesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.patch" call. @@ -25558,7 +25558,7 @@ func (c *ImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.setIamPolicy" call. @@ -25664,7 +25664,7 @@ func (c *ImagesSetLabelsCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.setLabels" call. @@ -25770,7 +25770,7 @@ func (c *ImagesTestIamPermissionsCall) doRequest(alt string) (*http.Response, er "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.testIamPermissions" call. @@ -25899,7 +25899,7 @@ func (c *InstanceGroupManagerResizeRequestsCancelCall) doRequest(alt string) (*h "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.cancel" call. @@ -26026,7 +26026,7 @@ func (c *InstanceGroupManagerResizeRequestsDeleteCall) doRequest(alt string) (*h "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.delete" call. @@ -26148,7 +26148,7 @@ func (c *InstanceGroupManagerResizeRequestsGetCall) doRequest(alt string) (*http "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.get" call. @@ -26277,7 +26277,7 @@ func (c *InstanceGroupManagerResizeRequestsInsertCall) doRequest(alt string) (*h "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.insert" call. @@ -26473,7 +26473,7 @@ func (c *InstanceGroupManagerResizeRequestsListCall) doRequest(alt string) (*htt "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.list" call. @@ -26630,7 +26630,7 @@ func (c *InstanceGroupManagersAbandonInstancesCall) doRequest(alt string) (*http "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.abandonInstances" call. @@ -26838,7 +26838,7 @@ func (c *InstanceGroupManagersAggregatedListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.aggregatedList" call. @@ -26973,7 +26973,7 @@ func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.applyUpdatesToInstances" call. @@ -27103,7 +27103,7 @@ func (c *InstanceGroupManagersCreateInstancesCall) doRequest(alt string) (*http. "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.createInstances" call. @@ -27223,7 +27223,7 @@ func (c *InstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.delete" call. @@ -27357,7 +27357,7 @@ func (c *InstanceGroupManagersDeleteInstancesCall) doRequest(alt string) (*http. "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.deleteInstances" call. @@ -27469,7 +27469,7 @@ func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt string "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.deletePerInstanceConfigs" call. @@ -27584,7 +27584,7 @@ func (c *InstanceGroupManagersGetCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.get" call. @@ -27713,7 +27713,7 @@ func (c *InstanceGroupManagersInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.insert" call. @@ -27903,7 +27903,7 @@ func (c *InstanceGroupManagersListCall) doRequest(alt string) (*http.Response, e "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.list" call. @@ -28124,7 +28124,7 @@ func (c *InstanceGroupManagersListErrorsCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.listErrors" call. @@ -28334,7 +28334,7 @@ func (c *InstanceGroupManagersListManagedInstancesCall) doRequest(alt string) (* "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.listManagedInstances" call. @@ -28541,7 +28541,7 @@ func (c *InstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.listPerInstanceConfigs" call. @@ -28697,7 +28697,7 @@ func (c *InstanceGroupManagersPatchCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.patch" call. @@ -28825,7 +28825,7 @@ func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.patchPerInstanceConfigs" call. @@ -28958,7 +28958,7 @@ func (c *InstanceGroupManagersRecreateInstancesCall) doRequest(alt string) (*htt "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.recreateInstances" call. @@ -29094,7 +29094,7 @@ func (c *InstanceGroupManagersResizeCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.resize" call. @@ -29229,7 +29229,7 @@ func (c *InstanceGroupManagersResizeAdvancedCall) doRequest(alt string) (*http.R "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.resizeAdvanced" call. @@ -29365,7 +29365,7 @@ func (c *InstanceGroupManagersResumeInstancesCall) doRequest(alt string) (*http. "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.resumeInstances" call. @@ -29491,7 +29491,7 @@ func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.setAutoHealingPolicies" call. @@ -29618,7 +29618,7 @@ func (c *InstanceGroupManagersSetInstanceTemplateCall) doRequest(alt string) (*h "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.setInstanceTemplate" call. @@ -29747,7 +29747,7 @@ func (c *InstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (*http.R "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.setTargetPools" call. @@ -29882,7 +29882,7 @@ func (c *InstanceGroupManagersStartInstancesCall) doRequest(alt string) (*http.R "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.startInstances" call. @@ -30023,7 +30023,7 @@ func (c *InstanceGroupManagersStopInstancesCall) doRequest(alt string) (*http.Re "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.stopInstances" call. @@ -30165,7 +30165,7 @@ func (c *InstanceGroupManagersSuspendInstancesCall) doRequest(alt string) (*http "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.suspendInstances" call. @@ -30275,7 +30275,7 @@ func (c *InstanceGroupManagersTestIamPermissionsCall) doRequest(alt string) (*ht "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.testIamPermissions" call. @@ -30409,7 +30409,7 @@ func (c *InstanceGroupManagersUpdateCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.update" call. @@ -30537,7 +30537,7 @@ func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt string "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.updatePerInstanceConfigs" call. @@ -30664,7 +30664,7 @@ func (c *InstanceGroupsAddInstancesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.addInstances" call. @@ -30872,7 +30872,7 @@ func (c *InstanceGroupsAggregatedListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.aggregatedList" call. @@ -31014,7 +31014,7 @@ func (c *InstanceGroupsDeleteCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.delete" call. @@ -31132,7 +31132,7 @@ func (c *InstanceGroupsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.get" call. @@ -31253,7 +31253,7 @@ func (c *InstanceGroupsInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.insert" call. @@ -31444,7 +31444,7 @@ func (c *InstanceGroupsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.list" call. @@ -31657,7 +31657,7 @@ func (c *InstanceGroupsListInstancesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.listInstances" call. @@ -31808,7 +31808,7 @@ func (c *InstanceGroupsRemoveInstancesCall) doRequest(alt string) (*http.Respons "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.removeInstances" call. @@ -31933,7 +31933,7 @@ func (c *InstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.setNamedPorts" call. @@ -32043,7 +32043,7 @@ func (c *InstanceGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Resp "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.testIamPermissions" call. @@ -32155,7 +32155,7 @@ func (c *InstanceSettingsGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceSettings.get" call. @@ -32283,7 +32283,7 @@ func (c *InstanceSettingsPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceSettings.patch" call. @@ -32492,7 +32492,7 @@ func (c *InstanceTemplatesAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.aggregatedList" call. @@ -32630,7 +32630,7 @@ func (c *InstanceTemplatesDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.delete" call. @@ -32755,7 +32755,7 @@ func (c *InstanceTemplatesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.get" call. @@ -32875,7 +32875,7 @@ func (c *InstanceTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.getIamPolicy" call. @@ -32995,7 +32995,7 @@ func (c *InstanceTemplatesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.insert" call. @@ -33195,7 +33195,7 @@ func (c *InstanceTemplatesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.list" call. @@ -33323,7 +33323,7 @@ func (c *InstanceTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.setIamPolicy" call. @@ -33429,7 +33429,7 @@ func (c *InstanceTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.testIamPermissions" call. @@ -33557,7 +33557,7 @@ func (c *InstancesAddAccessConfigCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.addAccessConfig" call. @@ -33682,7 +33682,7 @@ func (c *InstancesAddNetworkInterfaceCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.addNetworkInterface" call. @@ -33808,7 +33808,7 @@ func (c *InstancesAddResourcePoliciesCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.addResourcePolicies" call. @@ -34018,7 +34018,7 @@ func (c *InstancesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.aggregatedList" call. @@ -34176,7 +34176,7 @@ func (c *InstancesAttachDiskCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.attachDisk" call. @@ -34297,7 +34297,7 @@ func (c *InstancesBulkInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.bulkInsert" call. @@ -34423,7 +34423,7 @@ func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.delete" call. @@ -34546,7 +34546,7 @@ func (c *InstancesDeleteAccessConfigCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.deleteAccessConfig" call. @@ -34672,7 +34672,7 @@ func (c *InstancesDeleteNetworkInterfaceCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.deleteNetworkInterface" call. @@ -34793,7 +34793,7 @@ func (c *InstancesDetachDiskCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.detachDisk" call. @@ -34922,7 +34922,7 @@ func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.get" call. @@ -35041,7 +35041,7 @@ func (c *InstancesGetEffectiveFirewallsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getEffectiveFirewalls" call. @@ -35171,7 +35171,7 @@ func (c *InstancesGetGuestAttributesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getGuestAttributes" call. @@ -35295,7 +35295,7 @@ func (c *InstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getIamPolicy" call. @@ -35418,7 +35418,7 @@ func (c *InstancesGetPartnerMetadataCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getPartnerMetadata" call. @@ -35534,7 +35534,7 @@ func (c *InstancesGetScreenshotCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getScreenshot" call. @@ -35674,7 +35674,7 @@ func (c *InstancesGetSerialPortOutputCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getSerialPortOutput" call. @@ -35791,7 +35791,7 @@ func (c *InstancesGetShieldedInstanceIdentityCall) doRequest(alt string) (*http. "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getShieldedInstanceIdentity" call. @@ -35907,7 +35907,7 @@ func (c *InstancesGetShieldedVmIdentityCall) doRequest(alt string) (*http.Respon "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getShieldedVmIdentity" call. @@ -36055,7 +36055,7 @@ func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.insert" call. @@ -36258,7 +36258,7 @@ func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.list" call. @@ -36477,7 +36477,7 @@ func (c *InstancesListReferrersCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.listReferrers" call. @@ -36623,7 +36623,7 @@ func (c *InstancesPatchPartnerMetadataCall) doRequest(alt string) (*http.Respons "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.patchPartnerMetadata" call. @@ -36741,7 +36741,7 @@ func (c *InstancesPerformMaintenanceCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.performMaintenance" call. @@ -36865,7 +36865,7 @@ func (c *InstancesRemoveResourcePoliciesCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.removeResourcePolicies" call. @@ -36984,7 +36984,7 @@ func (c *InstancesResetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.reset" call. @@ -37109,7 +37109,7 @@ func (c *InstancesResumeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.resume" call. @@ -37212,7 +37212,7 @@ func (c *InstancesSendDiagnosticInterruptCall) doRequest(alt string) (*http.Resp "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.sendDiagnosticInterrupt" call. @@ -37314,7 +37314,7 @@ func (c *InstancesSetDeletionProtectionCall) doRequest(alt string) (*http.Respon "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setDeletionProtection" call. @@ -37438,7 +37438,7 @@ func (c *InstancesSetDiskAutoDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setDiskAutoDelete" call. @@ -37548,7 +37548,7 @@ func (c *InstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setIamPolicy" call. @@ -37673,7 +37673,7 @@ func (c *InstancesSetLabelsCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setLabels" call. @@ -37798,7 +37798,7 @@ func (c *InstancesSetMachineResourcesCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMachineResources" call. @@ -37923,7 +37923,7 @@ func (c *InstancesSetMachineTypeCall) doRequest(alt string) (*http.Response, err "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMachineType" call. @@ -38048,7 +38048,7 @@ func (c *InstancesSetMetadataCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMetadata" call. @@ -38174,7 +38174,7 @@ func (c *InstancesSetMinCpuPlatformCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMinCpuPlatform" call. @@ -38298,7 +38298,7 @@ func (c *InstancesSetNameCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setName" call. @@ -38426,7 +38426,7 @@ func (c *InstancesSetSchedulingCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setScheduling" call. @@ -38552,7 +38552,7 @@ func (c *InstancesSetSecurityPolicyCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setSecurityPolicy" call. @@ -38678,7 +38678,7 @@ func (c *InstancesSetServiceAccountCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setServiceAccount" call. @@ -38805,7 +38805,7 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) doRequest(alt string) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setShieldedInstanceIntegrityPolicy" call. @@ -38932,7 +38932,7 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) doRequest(alt string) (*http "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setShieldedVmIntegrityPolicy" call. @@ -39057,7 +39057,7 @@ func (c *InstancesSetTagsCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setTags" call. @@ -39184,7 +39184,7 @@ func (c *InstancesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Res "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.simulateMaintenanceEvent" call. @@ -39303,7 +39303,7 @@ func (c *InstancesStartCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.start" call. @@ -39428,7 +39428,7 @@ func (c *InstancesStartWithEncryptionKeyCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.startWithEncryptionKey" call. @@ -39567,7 +39567,7 @@ func (c *InstancesStopCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.stop" call. @@ -39700,7 +39700,7 @@ func (c *InstancesSuspendCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.suspend" call. @@ -39810,7 +39810,7 @@ func (c *InstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.testIamPermissions" call. @@ -39979,7 +39979,7 @@ func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.update" call. @@ -40109,7 +40109,7 @@ func (c *InstancesUpdateAccessConfigCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateAccessConfig" call. @@ -40235,7 +40235,7 @@ func (c *InstancesUpdateDisplayDeviceCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateDisplayDevice" call. @@ -40365,7 +40365,7 @@ func (c *InstancesUpdateNetworkInterfaceCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateNetworkInterface" call. @@ -40492,7 +40492,7 @@ func (c *InstancesUpdateShieldedInstanceConfigCall) doRequest(alt string) (*http "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateShieldedInstanceConfig" call. @@ -40618,7 +40618,7 @@ func (c *InstancesUpdateShieldedVmConfigCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateShieldedVmConfig" call. @@ -40736,7 +40736,7 @@ func (c *InstantSnapshotGroupsDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instantSnapshotGroup": c.instantSnapshotGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshotGroups.delete" call. @@ -40852,7 +40852,7 @@ func (c *InstantSnapshotGroupsGetCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "instantSnapshotGroup": c.instantSnapshotGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshotGroups.get" call. @@ -40976,7 +40976,7 @@ func (c *InstantSnapshotGroupsGetIamPolicyCall) doRequest(alt string) (*http.Res "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshotGroups.getIamPolicy" call. @@ -41103,7 +41103,7 @@ func (c *InstantSnapshotGroupsInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshotGroups.insert" call. @@ -41293,7 +41293,7 @@ func (c *InstantSnapshotGroupsListCall) doRequest(alt string) (*http.Response, e "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshotGroups.list" call. @@ -41425,7 +41425,7 @@ func (c *InstantSnapshotGroupsSetIamPolicyCall) doRequest(alt string) (*http.Res "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshotGroups.setIamPolicy" call. @@ -41535,7 +41535,7 @@ func (c *InstantSnapshotGroupsTestIamPermissionsCall) doRequest(alt string) (*ht "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshotGroups.testIamPermissions" call. @@ -41744,7 +41744,7 @@ func (c *InstantSnapshotsAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.aggregatedList" call. @@ -41889,7 +41889,7 @@ func (c *InstantSnapshotsDeleteCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.delete" call. @@ -42004,7 +42004,7 @@ func (c *InstantSnapshotsGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.get" call. @@ -42128,7 +42128,7 @@ func (c *InstantSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.getIamPolicy" call. @@ -42248,7 +42248,7 @@ func (c *InstantSnapshotsInsertCall) doRequest(alt string) (*http.Response, erro "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.insert" call. @@ -42438,7 +42438,7 @@ func (c *InstantSnapshotsListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.list" call. @@ -42570,7 +42570,7 @@ func (c *InstantSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.setIamPolicy" call. @@ -42695,7 +42695,7 @@ func (c *InstantSnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.setLabels" call. @@ -42805,7 +42805,7 @@ func (c *InstantSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Re "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.testIamPermissions" call. @@ -43014,7 +43014,7 @@ func (c *InterconnectAttachmentsAggregatedListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.aggregatedList" call. @@ -43154,7 +43154,7 @@ func (c *InterconnectAttachmentsDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "interconnectAttachment": c.interconnectAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.delete" call. @@ -43269,7 +43269,7 @@ func (c *InterconnectAttachmentsGetCall) doRequest(alt string) (*http.Response, "region": c.region, "interconnectAttachment": c.interconnectAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.get" call. @@ -43393,7 +43393,7 @@ func (c *InterconnectAttachmentsGetIamPolicyCall) doRequest(alt string) (*http.R "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.getIamPolicy" call. @@ -43521,7 +43521,7 @@ func (c *InterconnectAttachmentsInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.insert" call. @@ -43711,7 +43711,7 @@ func (c *InterconnectAttachmentsListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.list" call. @@ -43859,7 +43859,7 @@ func (c *InterconnectAttachmentsPatchCall) doRequest(alt string) (*http.Response "region": c.region, "interconnectAttachment": c.interconnectAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.patch" call. @@ -43969,7 +43969,7 @@ func (c *InterconnectAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.R "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.setIamPolicy" call. @@ -44094,7 +44094,7 @@ func (c *InterconnectAttachmentsSetLabelsCall) doRequest(alt string) (*http.Resp "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.setLabels" call. @@ -44204,7 +44204,7 @@ func (c *InterconnectAttachmentsTestIamPermissionsCall) doRequest(alt string) (* "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.testIamPermissions" call. @@ -44317,7 +44317,7 @@ func (c *InterconnectLocationsGetCall) doRequest(alt string) (*http.Response, er "project": c.project, "interconnectLocation": c.interconnectLocation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectLocations.get" call. @@ -44504,7 +44504,7 @@ func (c *InterconnectLocationsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectLocations.list" call. @@ -44632,7 +44632,7 @@ func (c *InterconnectLocationsTestIamPermissionsCall) doRequest(alt string) (*ht "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectLocations.testIamPermissions" call. @@ -44747,7 +44747,7 @@ func (c *InterconnectRemoteLocationsGetCall) doRequest(alt string) (*http.Respon "project": c.project, "interconnectRemoteLocation": c.interconnectRemoteLocation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectRemoteLocations.get" call. @@ -44934,7 +44934,7 @@ func (c *InterconnectRemoteLocationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectRemoteLocations.list" call. @@ -45062,7 +45062,7 @@ func (c *InterconnectRemoteLocationsTestIamPermissionsCall) doRequest(alt string "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectRemoteLocations.testIamPermissions" call. @@ -45177,7 +45177,7 @@ func (c *InterconnectsDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.delete" call. @@ -45289,7 +45289,7 @@ func (c *InterconnectsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.get" call. @@ -45404,7 +45404,7 @@ func (c *InterconnectsGetDiagnosticsCall) doRequest(alt string) (*http.Response, "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.getDiagnostics" call. @@ -45524,7 +45524,7 @@ func (c *InterconnectsGetIamPolicyCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.getIamPolicy" call. @@ -45636,7 +45636,7 @@ func (c *InterconnectsGetMacsecConfigCall) doRequest(alt string) (*http.Response "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.getMacsecConfig" call. @@ -45754,7 +45754,7 @@ func (c *InterconnectsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.insert" call. @@ -45940,7 +45940,7 @@ func (c *InterconnectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.list" call. @@ -46084,7 +46084,7 @@ func (c *InterconnectsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.patch" call. @@ -46190,7 +46190,7 @@ func (c *InterconnectsSetIamPolicyCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.setIamPolicy" call. @@ -46296,7 +46296,7 @@ func (c *InterconnectsSetLabelsCall) doRequest(alt string) (*http.Response, erro "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.setLabels" call. @@ -46402,7 +46402,7 @@ func (c *InterconnectsTestIamPermissionsCall) doRequest(alt string) (*http.Respo "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.testIamPermissions" call. @@ -46517,7 +46517,7 @@ func (c *LicenseCodesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "licenseCode": c.licenseCode, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenseCodes.get" call. @@ -46637,7 +46637,7 @@ func (c *LicenseCodesGetIamPolicyCall) doRequest(alt string) (*http.Response, er "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenseCodes.getIamPolicy" call. @@ -46744,7 +46744,7 @@ func (c *LicenseCodesSetIamPolicyCall) doRequest(alt string) (*http.Response, er "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenseCodes.setIamPolicy" call. @@ -46851,7 +46851,7 @@ func (c *LicenseCodesTestIamPermissionsCall) doRequest(alt string) (*http.Respon "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenseCodes.testIamPermissions" call. @@ -46968,7 +46968,7 @@ func (c *LicensesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "license": c.license, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.delete" call. @@ -47081,7 +47081,7 @@ func (c *LicensesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "license": c.license, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.get" call. @@ -47201,7 +47201,7 @@ func (c *LicensesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.getIamPolicy" call. @@ -47319,7 +47319,7 @@ func (c *LicensesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.insert" call. @@ -47510,7 +47510,7 @@ func (c *LicensesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.list" call. @@ -47639,7 +47639,7 @@ func (c *LicensesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.setIamPolicy" call. @@ -47746,7 +47746,7 @@ func (c *LicensesTestIamPermissionsCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.testIamPermissions" call. @@ -47862,7 +47862,7 @@ func (c *MachineImagesDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "machineImage": c.machineImage, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.delete" call. @@ -47973,7 +47973,7 @@ func (c *MachineImagesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "machineImage": c.machineImage, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.get" call. @@ -48092,7 +48092,7 @@ func (c *MachineImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.getIamPolicy" call. @@ -48218,7 +48218,7 @@ func (c *MachineImagesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.insert" call. @@ -48404,7 +48404,7 @@ func (c *MachineImagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.list" call. @@ -48532,7 +48532,7 @@ func (c *MachineImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.setIamPolicy" call. @@ -48638,7 +48638,7 @@ func (c *MachineImagesTestIamPermissionsCall) doRequest(alt string) (*http.Respo "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.testIamPermissions" call. @@ -48847,7 +48847,7 @@ func (c *MachineTypesAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineTypes.aggregatedList" call. @@ -48984,7 +48984,7 @@ func (c *MachineTypesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "machineType": c.machineType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineTypes.get" call. @@ -49173,7 +49173,7 @@ func (c *MachineTypesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineTypes.list" call. @@ -49404,7 +49404,7 @@ func (c *NetworkAttachmentsAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.aggregatedList" call. @@ -49545,7 +49545,7 @@ func (c *NetworkAttachmentsDeleteCall) doRequest(alt string) (*http.Response, er "region": c.region, "networkAttachment": c.networkAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.delete" call. @@ -49660,7 +49660,7 @@ func (c *NetworkAttachmentsGetCall) doRequest(alt string) (*http.Response, error "region": c.region, "networkAttachment": c.networkAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.get" call. @@ -49784,7 +49784,7 @@ func (c *NetworkAttachmentsGetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.getIamPolicy" call. @@ -49906,7 +49906,7 @@ func (c *NetworkAttachmentsInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.insert" call. @@ -50095,7 +50095,7 @@ func (c *NetworkAttachmentsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.list" call. @@ -50244,7 +50244,7 @@ func (c *NetworkAttachmentsPatchCall) doRequest(alt string) (*http.Response, err "region": c.region, "networkAttachment": c.networkAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.patch" call. @@ -50354,7 +50354,7 @@ func (c *NetworkAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.setIamPolicy" call. @@ -50464,7 +50464,7 @@ func (c *NetworkAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http. "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.testIamPermissions" call. @@ -50673,7 +50673,7 @@ func (c *NetworkEdgeSecurityServicesAggregatedListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.aggregatedList" call. @@ -50814,7 +50814,7 @@ func (c *NetworkEdgeSecurityServicesDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "networkEdgeSecurityService": c.networkEdgeSecurityService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.delete" call. @@ -50930,7 +50930,7 @@ func (c *NetworkEdgeSecurityServicesGetCall) doRequest(alt string) (*http.Respon "region": c.region, "networkEdgeSecurityService": c.networkEdgeSecurityService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.get" call. @@ -51059,7 +51059,7 @@ func (c *NetworkEdgeSecurityServicesInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.insert" call. @@ -51197,7 +51197,7 @@ func (c *NetworkEdgeSecurityServicesPatchCall) doRequest(alt string) (*http.Resp "region": c.region, "networkEdgeSecurityService": c.networkEdgeSecurityService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.patch" call. @@ -51405,7 +51405,7 @@ func (c *NetworkEndpointGroupsAggregatedListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.aggregatedList" call. @@ -51554,7 +51554,7 @@ func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt string) "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.attachNetworkEndpoints" call. @@ -51677,7 +51677,7 @@ func (c *NetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.delete" call. @@ -51804,7 +51804,7 @@ func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt string) "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.detachNetworkEndpoints" call. @@ -51921,7 +51921,7 @@ func (c *NetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.get" call. @@ -52044,7 +52044,7 @@ func (c *NetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.insert" call. @@ -52235,7 +52235,7 @@ func (c *NetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, e "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.list" call. @@ -52448,7 +52448,7 @@ func (c *NetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt string) (* "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.listNetworkEndpoints" call. @@ -52580,7 +52580,7 @@ func (c *NetworkEndpointGroupsTestIamPermissionsCall) doRequest(alt string) (*ht "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.testIamPermissions" call. @@ -52719,7 +52719,7 @@ func (c *NetworkFirewallPoliciesAddAssociationCall) doRequest(alt string) (*http "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.addAssociation" call. @@ -52856,7 +52856,7 @@ func (c *NetworkFirewallPoliciesAddPacketMirroringRuleCall) doRequest(alt string "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.addPacketMirroringRule" call. @@ -52992,7 +52992,7 @@ func (c *NetworkFirewallPoliciesAddRuleCall) doRequest(alt string) (*http.Respon "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.addRule" call. @@ -53113,7 +53113,7 @@ func (c *NetworkFirewallPoliciesCloneRulesCall) doRequest(alt string) (*http.Res "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.cloneRules" call. @@ -53227,7 +53227,7 @@ func (c *NetworkFirewallPoliciesDeleteCall) doRequest(alt string) (*http.Respons "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.delete" call. @@ -53338,7 +53338,7 @@ func (c *NetworkFirewallPoliciesGetCall) doRequest(alt string) (*http.Response, "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.get" call. @@ -53457,7 +53457,7 @@ func (c *NetworkFirewallPoliciesGetAssociationCall) doRequest(alt string) (*http "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getAssociation" call. @@ -53577,7 +53577,7 @@ func (c *NetworkFirewallPoliciesGetIamPolicyCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getIamPolicy" call. @@ -53697,7 +53697,7 @@ func (c *NetworkFirewallPoliciesGetPacketMirroringRuleCall) doRequest(alt string "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getPacketMirroringRule" call. @@ -53817,7 +53817,7 @@ func (c *NetworkFirewallPoliciesGetRuleCall) doRequest(alt string) (*http.Respon "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getRule" call. @@ -53935,7 +53935,7 @@ func (c *NetworkFirewallPoliciesInsertCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.insert" call. @@ -54121,7 +54121,7 @@ func (c *NetworkFirewallPoliciesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.list" call. @@ -54263,7 +54263,7 @@ func (c *NetworkFirewallPoliciesPatchCall) doRequest(alt string) (*http.Response "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.patch" call. @@ -54384,7 +54384,7 @@ func (c *NetworkFirewallPoliciesPatchAssociationCall) doRequest(alt string) (*ht "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.patchAssociation" call. @@ -54512,7 +54512,7 @@ func (c *NetworkFirewallPoliciesPatchPacketMirroringRuleCall) doRequest(alt stri "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.patchPacketMirroringRule" call. @@ -54639,7 +54639,7 @@ func (c *NetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*http.Resp "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.patchRule" call. @@ -54760,7 +54760,7 @@ func (c *NetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt string) (*h "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.removeAssociation" call. @@ -54882,7 +54882,7 @@ func (c *NetworkFirewallPoliciesRemovePacketMirroringRuleCall) doRequest(alt str "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.removePacketMirroringRule" call. @@ -55003,7 +55003,7 @@ func (c *NetworkFirewallPoliciesRemoveRuleCall) doRequest(alt string) (*http.Res "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.removeRule" call. @@ -55109,7 +55109,7 @@ func (c *NetworkFirewallPoliciesSetIamPolicyCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.setIamPolicy" call. @@ -55215,7 +55215,7 @@ func (c *NetworkFirewallPoliciesTestIamPermissionsCall) doRequest(alt string) (* "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.testIamPermissions" call. @@ -55327,7 +55327,7 @@ func (c *NetworkProfilesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "networkProfile": c.networkProfile, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkProfiles.get" call. @@ -55513,7 +55513,7 @@ func (c *NetworkProfilesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkProfiles.list" call. @@ -55655,7 +55655,7 @@ func (c *NetworksAddPeeringCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.addPeering" call. @@ -55769,7 +55769,7 @@ func (c *NetworksDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.delete" call. @@ -55880,7 +55880,7 @@ func (c *NetworksGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.get" call. @@ -55991,7 +55991,7 @@ func (c *NetworksGetEffectiveFirewallsCall) doRequest(alt string) (*http.Respons "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.getEffectiveFirewalls" call. @@ -56109,7 +56109,7 @@ func (c *NetworksInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.insert" call. @@ -56294,7 +56294,7 @@ func (c *NetworksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.list" call. @@ -56512,7 +56512,7 @@ func (c *NetworksListIpAddressesCall) doRequest(alt string) (*http.Response, err "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.listIpAddresses" call. @@ -56758,7 +56758,7 @@ func (c *NetworksListIpOwnersCall) doRequest(alt string) (*http.Response, error) "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.listIpOwners" call. @@ -56996,7 +56996,7 @@ func (c *NetworksListPeeringRoutesCall) doRequest(alt string) (*http.Response, e "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.listPeeringRoutes" call. @@ -57139,7 +57139,7 @@ func (c *NetworksPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.patch" call. @@ -57259,7 +57259,7 @@ func (c *NetworksRemovePeeringCall) doRequest(alt string) (*http.Response, error "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.removePeering" call. @@ -57374,7 +57374,7 @@ func (c *NetworksSwitchToCustomModeCall) doRequest(alt string) (*http.Response, "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.switchToCustomMode" call. @@ -57480,7 +57480,7 @@ func (c *NetworksTestIamPermissionsCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.testIamPermissions" call. @@ -57604,7 +57604,7 @@ func (c *NetworksUpdatePeeringCall) doRequest(alt string) (*http.Response, error "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.updatePeering" call. @@ -57728,7 +57728,7 @@ func (c *NodeGroupsAddNodesCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.addNodes" call. @@ -57937,7 +57937,7 @@ func (c *NodeGroupsAggregatedListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.aggregatedList" call. @@ -58077,7 +58077,7 @@ func (c *NodeGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.delete" call. @@ -58201,7 +58201,7 @@ func (c *NodeGroupsDeleteNodesCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.deleteNodes" call. @@ -58318,7 +58318,7 @@ func (c *NodeGroupsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.get" call. @@ -58441,7 +58441,7 @@ func (c *NodeGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.getIamPolicy" call. @@ -58564,7 +58564,7 @@ func (c *NodeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.insert" call. @@ -58754,7 +58754,7 @@ func (c *NodeGroupsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.list" call. @@ -58956,7 +58956,7 @@ func (c *NodeGroupsListNodesCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.listNodes" call. @@ -59102,7 +59102,7 @@ func (c *NodeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.patch" call. @@ -59227,7 +59227,7 @@ func (c *NodeGroupsPerformMaintenanceCall) doRequest(alt string) (*http.Response "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.performMaintenance" call. @@ -59337,7 +59337,7 @@ func (c *NodeGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.setIamPolicy" call. @@ -59461,7 +59461,7 @@ func (c *NodeGroupsSetNodeTemplateCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.setNodeTemplate" call. @@ -59587,7 +59587,7 @@ func (c *NodeGroupsSimulateMaintenanceEventCall) doRequest(alt string) (*http.Re "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.simulateMaintenanceEvent" call. @@ -59697,7 +59697,7 @@ func (c *NodeGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.testIamPermissions" call. @@ -59906,7 +59906,7 @@ func (c *NodeTemplatesAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.aggregatedList" call. @@ -60046,7 +60046,7 @@ func (c *NodeTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) "region": c.region, "nodeTemplate": c.nodeTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.delete" call. @@ -60161,7 +60161,7 @@ func (c *NodeTemplatesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "nodeTemplate": c.nodeTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.get" call. @@ -60284,7 +60284,7 @@ func (c *NodeTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, e "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.getIamPolicy" call. @@ -60405,7 +60405,7 @@ func (c *NodeTemplatesInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.insert" call. @@ -60594,7 +60594,7 @@ func (c *NodeTemplatesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.list" call. @@ -60726,7 +60726,7 @@ func (c *NodeTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, e "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.setIamPolicy" call. @@ -60836,7 +60836,7 @@ func (c *NodeTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Respo "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.testIamPermissions" call. @@ -61045,7 +61045,7 @@ func (c *NodeTypesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTypes.aggregatedList" call. @@ -61182,7 +61182,7 @@ func (c *NodeTypesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeType": c.nodeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTypes.get" call. @@ -61371,7 +61371,7 @@ func (c *NodeTypesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTypes.list" call. @@ -61517,7 +61517,7 @@ func (c *OrganizationSecurityPoliciesAddAssociationCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.addAssociation" call. @@ -61633,7 +61633,7 @@ func (c *OrganizationSecurityPoliciesAddRuleCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.addRule" call. @@ -61750,7 +61750,7 @@ func (c *OrganizationSecurityPoliciesCopyRulesCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.copyRules" call. @@ -61860,7 +61860,7 @@ func (c *OrganizationSecurityPoliciesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.delete" call. @@ -61967,7 +61967,7 @@ func (c *OrganizationSecurityPoliciesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.get" call. @@ -62082,7 +62082,7 @@ func (c *OrganizationSecurityPoliciesGetAssociationCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.getAssociation" call. @@ -62198,7 +62198,7 @@ func (c *OrganizationSecurityPoliciesGetRuleCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.getRule" call. @@ -62317,7 +62317,7 @@ func (c *OrganizationSecurityPoliciesInsertCall) doRequest(alt string) (*http.Re return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.insert" call. @@ -62502,7 +62502,7 @@ func (c *OrganizationSecurityPoliciesListCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.list" call. @@ -62632,7 +62632,7 @@ func (c *OrganizationSecurityPoliciesListAssociationsCall) doRequest(alt string) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.listAssociations" call. @@ -62750,7 +62750,7 @@ func (c *OrganizationSecurityPoliciesMoveCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.move" call. @@ -62866,7 +62866,7 @@ func (c *OrganizationSecurityPoliciesPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.patch" call. @@ -62989,7 +62989,7 @@ func (c *OrganizationSecurityPoliciesPatchRuleCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.patchRule" call. @@ -63106,7 +63106,7 @@ func (c *OrganizationSecurityPoliciesRemoveAssociationCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.removeAssociation" call. @@ -63223,7 +63223,7 @@ func (c *OrganizationSecurityPoliciesRemoveRuleCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.removeRule" call. @@ -63431,7 +63431,7 @@ func (c *PacketMirroringsAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.aggregatedList" call. @@ -63571,7 +63571,7 @@ func (c *PacketMirroringsDeleteCall) doRequest(alt string) (*http.Response, erro "region": c.region, "packetMirroring": c.packetMirroring, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.delete" call. @@ -63686,7 +63686,7 @@ func (c *PacketMirroringsGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "packetMirroring": c.packetMirroring, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.get" call. @@ -63808,7 +63808,7 @@ func (c *PacketMirroringsInsertCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.insert" call. @@ -63998,7 +63998,7 @@ func (c *PacketMirroringsListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.list" call. @@ -64146,7 +64146,7 @@ func (c *PacketMirroringsPatchCall) doRequest(alt string) (*http.Response, error "region": c.region, "packetMirroring": c.packetMirroring, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.patch" call. @@ -64256,7 +64256,7 @@ func (c *PacketMirroringsTestIamPermissionsCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.testIamPermissions" call. @@ -64367,7 +64367,7 @@ func (c *ProjectsDisableXpnHostCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.disableXpnHost" call. @@ -64484,7 +64484,7 @@ func (c *ProjectsDisableXpnResourceCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.disableXpnResource" call. @@ -64594,7 +64594,7 @@ func (c *ProjectsEnableXpnHostCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.enableXpnHost" call. @@ -64712,7 +64712,7 @@ func (c *ProjectsEnableXpnResourceCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.enableXpnResource" call. @@ -64825,7 +64825,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.get" call. @@ -64933,7 +64933,7 @@ func (c *ProjectsGetXpnHostCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.getXpnHost" call. @@ -65119,7 +65119,7 @@ func (c *ProjectsGetXpnResourcesCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.getXpnResources" call. @@ -65321,7 +65321,7 @@ func (c *ProjectsListXpnHostsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.listXpnHosts" call. @@ -65458,7 +65458,7 @@ func (c *ProjectsMoveDiskCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.moveDisk" call. @@ -65580,7 +65580,7 @@ func (c *ProjectsMoveInstanceCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.moveInstance" call. @@ -65699,7 +65699,7 @@ func (c *ProjectsSetCloudArmorTierCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setCloudArmorTier" call. @@ -65816,7 +65816,7 @@ func (c *ProjectsSetCommonInstanceMetadataCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setCommonInstanceMetadata" call. @@ -65934,7 +65934,7 @@ func (c *ProjectsSetDefaultNetworkTierCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setDefaultNetworkTier" call. @@ -66052,7 +66052,7 @@ func (c *ProjectsSetDefaultServiceAccountCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setDefaultServiceAccount" call. @@ -66171,7 +66171,7 @@ func (c *ProjectsSetManagedProtectionTierCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setManagedProtectionTier" call. @@ -66289,7 +66289,7 @@ func (c *ProjectsSetUsageExportBucketCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setUsageExportBucket" call. @@ -66404,7 +66404,7 @@ func (c *PublicAdvertisedPrefixesAnnounceCall) doRequest(alt string) (*http.Resp "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.announce" call. @@ -66519,7 +66519,7 @@ func (c *PublicAdvertisedPrefixesDeleteCall) doRequest(alt string) (*http.Respon "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.delete" call. @@ -66631,7 +66631,7 @@ func (c *PublicAdvertisedPrefixesGetCall) doRequest(alt string) (*http.Response, "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.get" call. @@ -66749,7 +66749,7 @@ func (c *PublicAdvertisedPrefixesInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.insert" call. @@ -66934,7 +66934,7 @@ func (c *PublicAdvertisedPrefixesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.list" call. @@ -67079,7 +67079,7 @@ func (c *PublicAdvertisedPrefixesPatchCall) doRequest(alt string) (*http.Respons "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.patch" call. @@ -67194,7 +67194,7 @@ func (c *PublicAdvertisedPrefixesWithdrawCall) doRequest(alt string) (*http.Resp "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.withdraw" call. @@ -67402,7 +67402,7 @@ func (c *PublicDelegatedPrefixesAggregatedListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.aggregatedList" call. @@ -67544,7 +67544,7 @@ func (c *PublicDelegatedPrefixesAnnounceCall) doRequest(alt string) (*http.Respo "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.announce" call. @@ -67663,7 +67663,7 @@ func (c *PublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.delete" call. @@ -67780,7 +67780,7 @@ func (c *PublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.get" call. @@ -67902,7 +67902,7 @@ func (c *PublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.insert" call. @@ -68091,7 +68091,7 @@ func (c *PublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.list" call. @@ -68240,7 +68240,7 @@ func (c *PublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Response "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.patch" call. @@ -68360,7 +68360,7 @@ func (c *PublicDelegatedPrefixesWithdrawCall) doRequest(alt string) (*http.Respo "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.withdraw" call. @@ -68478,7 +68478,7 @@ func (c *RegionAutoscalersDeleteCall) doRequest(alt string) (*http.Response, err "region": c.region, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.delete" call. @@ -68593,7 +68593,7 @@ func (c *RegionAutoscalersGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.get" call. @@ -68714,7 +68714,7 @@ func (c *RegionAutoscalersInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.insert" call. @@ -68903,7 +68903,7 @@ func (c *RegionAutoscalersListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.list" call. @@ -69054,7 +69054,7 @@ func (c *RegionAutoscalersPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.patch" call. @@ -69164,7 +69164,7 @@ func (c *RegionAutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.R "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.testIamPermissions" call. @@ -69293,7 +69293,7 @@ func (c *RegionAutoscalersUpdateCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.update" call. @@ -69411,7 +69411,7 @@ func (c *RegionBackendServicesDeleteCall) doRequest(alt string) (*http.Response, "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.delete" call. @@ -69526,7 +69526,7 @@ func (c *RegionBackendServicesGetCall) doRequest(alt string) (*http.Response, er "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.get" call. @@ -69637,7 +69637,7 @@ func (c *RegionBackendServicesGetHealthCall) doRequest(alt string) (*http.Respon "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.getHealth" call. @@ -69761,7 +69761,7 @@ func (c *RegionBackendServicesGetIamPolicyCall) doRequest(alt string) (*http.Res "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.getIamPolicy" call. @@ -69883,7 +69883,7 @@ func (c *RegionBackendServicesInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.insert" call. @@ -70073,7 +70073,7 @@ func (c *RegionBackendServicesListCall) doRequest(alt string) (*http.Response, e "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.list" call. @@ -70286,7 +70286,7 @@ func (c *RegionBackendServicesListUsableCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.listUsable" call. @@ -70435,7 +70435,7 @@ func (c *RegionBackendServicesPatchCall) doRequest(alt string) (*http.Response, "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.patch" call. @@ -70545,7 +70545,7 @@ func (c *RegionBackendServicesSetIamPolicyCall) doRequest(alt string) (*http.Res "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.setIamPolicy" call. @@ -70672,7 +70672,7 @@ func (c *RegionBackendServicesSetSecurityPolicyCall) doRequest(alt string) (*htt "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.setSecurityPolicy" call. @@ -70782,7 +70782,7 @@ func (c *RegionBackendServicesTestIamPermissionsCall) doRequest(alt string) (*ht "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.testIamPermissions" call. @@ -70909,7 +70909,7 @@ func (c *RegionBackendServicesUpdateCall) doRequest(alt string) (*http.Response, "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.update" call. diff --git a/compute/v0.alpha/compute3-gen.go b/compute/v0.alpha/compute3-gen.go index b9cc385912b..2a6dcef10a4 100644 --- a/compute/v0.alpha/compute3-gen.go +++ b/compute/v0.alpha/compute3-gen.go @@ -184,7 +184,7 @@ func (c *RegionCommitmentsAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.aggregatedList" call. @@ -325,7 +325,7 @@ func (c *RegionCommitmentsCalculateCancellationFeeCall) doRequest(alt string) (* "region": c.region, "commitment": c.commitment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.calculateCancellationFee" call. @@ -443,7 +443,7 @@ func (c *RegionCommitmentsCancelCall) doRequest(alt string) (*http.Response, err "region": c.region, "commitment": c.commitment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.cancel" call. @@ -558,7 +558,7 @@ func (c *RegionCommitmentsGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "commitment": c.commitment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.get" call. @@ -679,7 +679,7 @@ func (c *RegionCommitmentsInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.insert" call. @@ -868,7 +868,7 @@ func (c *RegionCommitmentsListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.list" call. @@ -999,7 +999,7 @@ func (c *RegionCommitmentsTestIamPermissionsCall) doRequest(alt string) (*http.R "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.testIamPermissions" call. @@ -1139,7 +1139,7 @@ func (c *RegionCommitmentsUpdateCall) doRequest(alt string) (*http.Response, err "region": c.region, "commitment": c.commitment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.update" call. @@ -1265,7 +1265,7 @@ func (c *RegionCommitmentsUpdateReservationsCall) doRequest(alt string) (*http.R "region": c.region, "commitment": c.commitment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.updateReservations" call. @@ -1376,7 +1376,7 @@ func (c *RegionDiskSettingsGetCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDiskSettings.get" call. @@ -1503,7 +1503,7 @@ func (c *RegionDiskSettingsPatchCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDiskSettings.patch" call. @@ -1618,7 +1618,7 @@ func (c *RegionDiskTypesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "diskType": c.diskType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDiskTypes.get" call. @@ -1808,7 +1808,7 @@ func (c *RegionDiskTypesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDiskTypes.list" call. @@ -1956,7 +1956,7 @@ func (c *RegionDisksAddResourcePoliciesCall) doRequest(alt string) (*http.Respon "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.addResourcePolicies" call. @@ -2076,7 +2076,7 @@ func (c *RegionDisksBulkInsertCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.bulkInsert" call. @@ -2211,7 +2211,7 @@ func (c *RegionDisksCreateSnapshotCall) doRequest(alt string) (*http.Response, e "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.createSnapshot" call. @@ -2332,7 +2332,7 @@ func (c *RegionDisksDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.delete" call. @@ -2447,7 +2447,7 @@ func (c *RegionDisksGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.get" call. @@ -2570,7 +2570,7 @@ func (c *RegionDisksGetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.getIamPolicy" call. @@ -2698,7 +2698,7 @@ func (c *RegionDisksInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.insert" call. @@ -2888,7 +2888,7 @@ func (c *RegionDisksListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.list" call. @@ -3033,7 +3033,7 @@ func (c *RegionDisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Res "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.removeResourcePolicies" call. @@ -3157,7 +3157,7 @@ func (c *RegionDisksResizeCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.resize" call. @@ -3267,7 +3267,7 @@ func (c *RegionDisksSetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.setIamPolicy" call. @@ -3391,7 +3391,7 @@ func (c *RegionDisksSetLabelsCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.setLabels" call. @@ -3516,7 +3516,7 @@ func (c *RegionDisksStartAsyncReplicationCall) doRequest(alt string) (*http.Resp "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.startAsyncReplication" call. @@ -3635,7 +3635,7 @@ func (c *RegionDisksStopAsyncReplicationCall) doRequest(alt string) (*http.Respo "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.stopAsyncReplication" call. @@ -3757,7 +3757,7 @@ func (c *RegionDisksStopGroupAsyncReplicationCall) doRequest(alt string) (*http. "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.stopGroupAsyncReplication" call. @@ -3867,7 +3867,7 @@ func (c *RegionDisksTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.testIamPermissions" call. @@ -4007,7 +4007,7 @@ func (c *RegionDisksUpdateCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.update" call. @@ -4216,7 +4216,7 @@ func (c *RegionHealthCheckServicesAggregatedListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.aggregatedList" call. @@ -4357,7 +4357,7 @@ func (c *RegionHealthCheckServicesDeleteCall) doRequest(alt string) (*http.Respo "region": c.region, "healthCheckService": c.healthCheckService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.delete" call. @@ -4473,7 +4473,7 @@ func (c *RegionHealthCheckServicesGetCall) doRequest(alt string) (*http.Response "region": c.region, "healthCheckService": c.healthCheckService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.get" call. @@ -4595,7 +4595,7 @@ func (c *RegionHealthCheckServicesInsertCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.insert" call. @@ -4785,7 +4785,7 @@ func (c *RegionHealthCheckServicesListCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.list" call. @@ -4934,7 +4934,7 @@ func (c *RegionHealthCheckServicesPatchCall) doRequest(alt string) (*http.Respon "region": c.region, "healthCheckService": c.healthCheckService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.patch" call. @@ -5044,7 +5044,7 @@ func (c *RegionHealthCheckServicesTestIamPermissionsCall) doRequest(alt string) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.testIamPermissions" call. @@ -5163,7 +5163,7 @@ func (c *RegionHealthChecksDeleteCall) doRequest(alt string) (*http.Response, er "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.delete" call. @@ -5278,7 +5278,7 @@ func (c *RegionHealthChecksGetCall) doRequest(alt string) (*http.Response, error "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.get" call. @@ -5399,7 +5399,7 @@ func (c *RegionHealthChecksInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.insert" call. @@ -5589,7 +5589,7 @@ func (c *RegionHealthChecksListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.list" call. @@ -5737,7 +5737,7 @@ func (c *RegionHealthChecksPatchCall) doRequest(alt string) (*http.Response, err "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.patch" call. @@ -5847,7 +5847,7 @@ func (c *RegionHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http. "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.testIamPermissions" call. @@ -5973,7 +5973,7 @@ func (c *RegionHealthChecksUpdateCall) doRequest(alt string) (*http.Response, er "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.update" call. @@ -6100,7 +6100,7 @@ func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) doRequest(alt strin "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagerResizeRequests.cancel" call. @@ -6227,7 +6227,7 @@ func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) doRequest(alt strin "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagerResizeRequests.delete" call. @@ -6349,7 +6349,7 @@ func (c *RegionInstanceGroupManagerResizeRequestsGetCall) doRequest(alt string) "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagerResizeRequests.get" call. @@ -6478,7 +6478,7 @@ func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) doRequest(alt strin "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagerResizeRequests.insert" call. @@ -6674,7 +6674,7 @@ func (c *RegionInstanceGroupManagerResizeRequestsListCall) doRequest(alt string) "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagerResizeRequests.list" call. @@ -6831,7 +6831,7 @@ func (c *RegionInstanceGroupManagersAbandonInstancesCall) doRequest(alt string) "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.abandonInstances" call. @@ -6943,7 +6943,7 @@ func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt s "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.applyUpdatesToInstances" call. @@ -7073,7 +7073,7 @@ func (c *RegionInstanceGroupManagersCreateInstancesCall) doRequest(alt string) ( "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.createInstances" call. @@ -7192,7 +7192,7 @@ func (c *RegionInstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.delete" call. @@ -7326,7 +7326,7 @@ func (c *RegionInstanceGroupManagersDeleteInstancesCall) doRequest(alt string) ( "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.deleteInstances" call. @@ -7438,7 +7438,7 @@ func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.deletePerInstanceConfigs" call. @@ -7553,7 +7553,7 @@ func (c *RegionInstanceGroupManagersGetCall) doRequest(alt string) (*http.Respon "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.get" call. @@ -7680,7 +7680,7 @@ func (c *RegionInstanceGroupManagersInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.insert" call. @@ -7870,7 +7870,7 @@ func (c *RegionInstanceGroupManagersListCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.list" call. @@ -8091,7 +8091,7 @@ func (c *RegionInstanceGroupManagersListErrorsCall) doRequest(alt string) (*http "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.listErrors" call. @@ -8299,7 +8299,7 @@ func (c *RegionInstanceGroupManagersListManagedInstancesCall) doRequest(alt stri "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.listManagedInstances" call. @@ -8506,7 +8506,7 @@ func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt st "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.listPerInstanceConfigs" call. @@ -8661,7 +8661,7 @@ func (c *RegionInstanceGroupManagersPatchCall) doRequest(alt string) (*http.Resp "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.patch" call. @@ -8789,7 +8789,7 @@ func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt s "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.patchPerInstanceConfigs" call. @@ -8922,7 +8922,7 @@ func (c *RegionInstanceGroupManagersRecreateInstancesCall) doRequest(alt string) "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.recreateInstances" call. @@ -9052,7 +9052,7 @@ func (c *RegionInstanceGroupManagersResizeCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.resize" call. @@ -9188,7 +9188,7 @@ func (c *RegionInstanceGroupManagersResizeAdvancedCall) doRequest(alt string) (* "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.resizeAdvanced" call. @@ -9324,7 +9324,7 @@ func (c *RegionInstanceGroupManagersResumeInstancesCall) doRequest(alt string) ( "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.resumeInstances" call. @@ -9450,7 +9450,7 @@ func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) doRequest(alt st "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.setAutoHealingPolicies" call. @@ -9576,7 +9576,7 @@ func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) doRequest(alt strin "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.setInstanceTemplate" call. @@ -9701,7 +9701,7 @@ func (c *RegionInstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (* "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.setTargetPools" call. @@ -9836,7 +9836,7 @@ func (c *RegionInstanceGroupManagersStartInstancesCall) doRequest(alt string) (* "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.startInstances" call. @@ -9977,7 +9977,7 @@ func (c *RegionInstanceGroupManagersStopInstancesCall) doRequest(alt string) (*h "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.stopInstances" call. @@ -10119,7 +10119,7 @@ func (c *RegionInstanceGroupManagersSuspendInstancesCall) doRequest(alt string) "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.suspendInstances" call. @@ -10229,7 +10229,7 @@ func (c *RegionInstanceGroupManagersTestIamPermissionsCall) doRequest(alt string "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.testIamPermissions" call. @@ -10362,7 +10362,7 @@ func (c *RegionInstanceGroupManagersUpdateCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.update" call. @@ -10490,7 +10490,7 @@ func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.updatePerInstanceConfigs" call. @@ -10605,7 +10605,7 @@ func (c *RegionInstanceGroupsGetCall) doRequest(alt string) (*http.Response, err "region": c.region, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.get" call. @@ -10795,7 +10795,7 @@ func (c *RegionInstanceGroupsListCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.list" call. @@ -11008,7 +11008,7 @@ func (c *RegionInstanceGroupsListInstancesCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.listInstances" call. @@ -11156,7 +11156,7 @@ func (c *RegionInstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.setNamedPorts" call. @@ -11266,7 +11266,7 @@ func (c *RegionInstanceGroupsTestIamPermissionsCall) doRequest(alt string) (*htt "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.testIamPermissions" call. @@ -11386,7 +11386,7 @@ func (c *RegionInstanceTemplatesDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.delete" call. @@ -11515,7 +11515,7 @@ func (c *RegionInstanceTemplatesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.get" call. @@ -11637,7 +11637,7 @@ func (c *RegionInstanceTemplatesInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.insert" call. @@ -11841,7 +11841,7 @@ func (c *RegionInstanceTemplatesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.list" call. @@ -11984,7 +11984,7 @@ func (c *RegionInstancesBulkInsertCall) doRequest(alt string) (*http.Response, e "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstances.bulkInsert" call. @@ -12102,7 +12102,7 @@ func (c *RegionInstantSnapshotGroupsDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "instantSnapshotGroup": c.instantSnapshotGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshotGroups.delete" call. @@ -12218,7 +12218,7 @@ func (c *RegionInstantSnapshotGroupsGetCall) doRequest(alt string) (*http.Respon "region": c.region, "instantSnapshotGroup": c.instantSnapshotGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshotGroups.get" call. @@ -12342,7 +12342,7 @@ func (c *RegionInstantSnapshotGroupsGetIamPolicyCall) doRequest(alt string) (*ht "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshotGroups.getIamPolicy" call. @@ -12469,7 +12469,7 @@ func (c *RegionInstantSnapshotGroupsInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshotGroups.insert" call. @@ -12659,7 +12659,7 @@ func (c *RegionInstantSnapshotGroupsListCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshotGroups.list" call. @@ -12791,7 +12791,7 @@ func (c *RegionInstantSnapshotGroupsSetIamPolicyCall) doRequest(alt string) (*ht "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshotGroups.setIamPolicy" call. @@ -12901,7 +12901,7 @@ func (c *RegionInstantSnapshotGroupsTestIamPermissionsCall) doRequest(alt string "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshotGroups.testIamPermissions" call. @@ -13025,7 +13025,7 @@ func (c *RegionInstantSnapshotsDeleteCall) doRequest(alt string) (*http.Response "region": c.region, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.delete" call. @@ -13140,7 +13140,7 @@ func (c *RegionInstantSnapshotsGetCall) doRequest(alt string) (*http.Response, e "region": c.region, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.get" call. @@ -13264,7 +13264,7 @@ func (c *RegionInstantSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.getIamPolicy" call. @@ -13384,7 +13384,7 @@ func (c *RegionInstantSnapshotsInsertCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.insert" call. @@ -13574,7 +13574,7 @@ func (c *RegionInstantSnapshotsListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.list" call. @@ -13706,7 +13706,7 @@ func (c *RegionInstantSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.setIamPolicy" call. @@ -13831,7 +13831,7 @@ func (c *RegionInstantSnapshotsSetLabelsCall) doRequest(alt string) (*http.Respo "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.setLabels" call. @@ -13941,7 +13941,7 @@ func (c *RegionInstantSnapshotsTestIamPermissionsCall) doRequest(alt string) (*h "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.testIamPermissions" call. @@ -14069,7 +14069,7 @@ func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt st "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.attachNetworkEndpoints" call. @@ -14190,7 +14190,7 @@ func (c *RegionNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.delete" call. @@ -14318,7 +14318,7 @@ func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt st "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.detachNetworkEndpoints" call. @@ -14435,7 +14435,7 @@ func (c *RegionNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Respon "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.get" call. @@ -14558,7 +14558,7 @@ func (c *RegionNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.insert" call. @@ -14749,7 +14749,7 @@ func (c *RegionNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.list" call. @@ -14956,7 +14956,7 @@ func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt stri "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.listNetworkEndpoints" call. @@ -15121,7 +15121,7 @@ func (c *RegionNetworkFirewallPoliciesAddAssociationCall) doRequest(alt string) "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.addAssociation" call. @@ -15261,7 +15261,7 @@ func (c *RegionNetworkFirewallPoliciesAddRuleCall) doRequest(alt string) (*http. "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.addRule" call. @@ -15386,7 +15386,7 @@ func (c *RegionNetworkFirewallPoliciesCloneRulesCall) doRequest(alt string) (*ht "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.cloneRules" call. @@ -15504,7 +15504,7 @@ func (c *RegionNetworkFirewallPoliciesDeleteCall) doRequest(alt string) (*http.R "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.delete" call. @@ -15619,7 +15619,7 @@ func (c *RegionNetworkFirewallPoliciesGetCall) doRequest(alt string) (*http.Resp "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.get" call. @@ -15742,7 +15742,7 @@ func (c *RegionNetworkFirewallPoliciesGetAssociationCall) doRequest(alt string) "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getAssociation" call. @@ -15856,7 +15856,7 @@ func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) doRequest(alt s "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getEffectiveFirewalls" call. @@ -15980,7 +15980,7 @@ func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) doRequest(alt string) (* "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getIamPolicy" call. @@ -16103,7 +16103,7 @@ func (c *RegionNetworkFirewallPoliciesGetRuleCall) doRequest(alt string) (*http. "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getRule" call. @@ -16225,7 +16225,7 @@ func (c *RegionNetworkFirewallPoliciesInsertCall) doRequest(alt string) (*http.R "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.insert" call. @@ -16415,7 +16415,7 @@ func (c *RegionNetworkFirewallPoliciesListCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.list" call. @@ -16561,7 +16561,7 @@ func (c *RegionNetworkFirewallPoliciesPatchCall) doRequest(alt string) (*http.Re "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.patch" call. @@ -16686,7 +16686,7 @@ func (c *RegionNetworkFirewallPoliciesPatchAssociationCall) doRequest(alt string "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.patchAssociation" call. @@ -16817,7 +16817,7 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*htt "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.patchRule" call. @@ -16943,7 +16943,7 @@ func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt strin "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.removeAssociation" call. @@ -17068,7 +17068,7 @@ func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) doRequest(alt string) (*ht "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.removeRule" call. @@ -17178,7 +17178,7 @@ func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) doRequest(alt string) (* "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.setIamPolicy" call. @@ -17288,7 +17288,7 @@ func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) doRequest(alt stri "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.testIamPermissions" call. @@ -17496,7 +17496,7 @@ func (c *RegionNotificationEndpointsAggregatedListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.aggregatedList" call. @@ -17636,7 +17636,7 @@ func (c *RegionNotificationEndpointsDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "notificationEndpoint": c.notificationEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.delete" call. @@ -17752,7 +17752,7 @@ func (c *RegionNotificationEndpointsGetCall) doRequest(alt string) (*http.Respon "region": c.region, "notificationEndpoint": c.notificationEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.get" call. @@ -17874,7 +17874,7 @@ func (c *RegionNotificationEndpointsInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.insert" call. @@ -18063,7 +18063,7 @@ func (c *RegionNotificationEndpointsListCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.list" call. @@ -18195,7 +18195,7 @@ func (c *RegionNotificationEndpointsTestIamPermissionsCall) doRequest(alt string "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.testIamPermissions" call. @@ -18300,7 +18300,7 @@ func (c *RegionOperationsDeleteCall) doRequest(alt string) (*http.Response, erro "region": c.region, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.delete" call. @@ -18393,7 +18393,7 @@ func (c *RegionOperationsGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.get" call. @@ -18583,7 +18583,7 @@ func (c *RegionOperationsListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.list" call. @@ -18718,7 +18718,7 @@ func (c *RegionOperationsWaitCall) doRequest(alt string) (*http.Response, error) "region": c.region, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.wait" call. @@ -18834,7 +18834,7 @@ func (c *RegionSecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Respons "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.addRule" call. @@ -18952,7 +18952,7 @@ func (c *RegionSecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.delete" call. @@ -19067,7 +19067,7 @@ func (c *RegionSecurityPoliciesGetCall) doRequest(alt string) (*http.Response, e "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.get" call. @@ -19190,7 +19190,7 @@ func (c *RegionSecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Respons "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.getRule" call. @@ -19319,7 +19319,7 @@ func (c *RegionSecurityPoliciesInsertCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.insert" call. @@ -19509,7 +19509,7 @@ func (c *RegionSecurityPoliciesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.list" call. @@ -19672,7 +19672,7 @@ func (c *RegionSecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.patch" call. @@ -19803,7 +19803,7 @@ func (c *RegionSecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Respo "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.patchRule" call. @@ -19913,7 +19913,7 @@ func (c *RegionSecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Resp "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.removeRule" call. @@ -20024,7 +20024,7 @@ func (c *RegionSnapshotSettingsGetCall) doRequest(alt string) (*http.Response, e "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSnapshotSettings.get" call. @@ -20152,7 +20152,7 @@ func (c *RegionSnapshotSettingsPatchCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSnapshotSettings.patch" call. @@ -20274,7 +20274,7 @@ func (c *RegionSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error "region": c.region, "snapshot": c.snapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSnapshots.delete" call. @@ -20389,7 +20389,7 @@ func (c *RegionSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "snapshot": c.snapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSnapshots.get" call. @@ -20512,7 +20512,7 @@ func (c *RegionSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSnapshots.getIamPolicy" call. @@ -20633,7 +20633,7 @@ func (c *RegionSnapshotsInsertCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSnapshots.insert" call. @@ -20823,7 +20823,7 @@ func (c *RegionSnapshotsListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSnapshots.list" call. @@ -20954,7 +20954,7 @@ func (c *RegionSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSnapshots.setIamPolicy" call. @@ -21079,7 +21079,7 @@ func (c *RegionSnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, er "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSnapshots.setLabels" call. @@ -21189,7 +21189,7 @@ func (c *RegionSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Res "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSnapshots.testIamPermissions" call. @@ -21308,7 +21308,7 @@ func (c *RegionSslCertificatesDeleteCall) doRequest(alt string) (*http.Response, "region": c.region, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.delete" call. @@ -21424,7 +21424,7 @@ func (c *RegionSslCertificatesGetCall) doRequest(alt string) (*http.Response, er "region": c.region, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.get" call. @@ -21545,7 +21545,7 @@ func (c *RegionSslCertificatesInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.insert" call. @@ -21735,7 +21735,7 @@ func (c *RegionSslCertificatesListCall) doRequest(alt string) (*http.Response, e "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.list" call. @@ -21867,7 +21867,7 @@ func (c *RegionSslCertificatesTestIamPermissionsCall) doRequest(alt string) (*ht "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.testIamPermissions" call. @@ -21989,7 +21989,7 @@ func (c *RegionSslPoliciesDeleteCall) doRequest(alt string) (*http.Response, err "region": c.region, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.delete" call. @@ -22105,7 +22105,7 @@ func (c *RegionSslPoliciesGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.get" call. @@ -22226,7 +22226,7 @@ func (c *RegionSslPoliciesInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.insert" call. @@ -22416,7 +22416,7 @@ func (c *RegionSslPoliciesListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.list" call. @@ -22628,7 +22628,7 @@ func (c *RegionSslPoliciesListAvailableFeaturesCall) doRequest(alt string) (*htt "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.listAvailableFeatures" call. @@ -22755,7 +22755,7 @@ func (c *RegionSslPoliciesPatchCall) doRequest(alt string) (*http.Response, erro "region": c.region, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.patch" call. @@ -22865,7 +22865,7 @@ func (c *RegionSslPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.R "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.testIamPermissions" call. @@ -22984,7 +22984,7 @@ func (c *RegionTargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.delete" call. @@ -23099,7 +23099,7 @@ func (c *RegionTargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.get" call. @@ -23221,7 +23221,7 @@ func (c *RegionTargetHttpProxiesInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.insert" call. @@ -23411,7 +23411,7 @@ func (c *RegionTargetHttpProxiesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.list" call. @@ -23557,7 +23557,7 @@ func (c *RegionTargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Resp "region": c.region, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.setUrlMap" call. @@ -23667,7 +23667,7 @@ func (c *RegionTargetHttpProxiesTestIamPermissionsCall) doRequest(alt string) (* "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.testIamPermissions" call. @@ -23786,7 +23786,7 @@ func (c *RegionTargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Respon "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.delete" call. @@ -23902,7 +23902,7 @@ func (c *RegionTargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.get" call. @@ -24024,7 +24024,7 @@ func (c *RegionTargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Respon "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.insert" call. @@ -24214,7 +24214,7 @@ func (c *RegionTargetHttpsProxiesListCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.list" call. @@ -24362,7 +24362,7 @@ func (c *RegionTargetHttpsProxiesPatchCall) doRequest(alt string) (*http.Respons "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.patch" call. @@ -24487,7 +24487,7 @@ func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) ( "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.setSslCertificates" call. @@ -24611,7 +24611,7 @@ func (c *RegionTargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Res "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.setUrlMap" call. @@ -24721,7 +24721,7 @@ func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) doRequest(alt string) ( "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.testIamPermissions" call. @@ -24840,7 +24840,7 @@ func (c *RegionTargetTcpProxiesDeleteCall) doRequest(alt string) (*http.Response "region": c.region, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.delete" call. @@ -24955,7 +24955,7 @@ func (c *RegionTargetTcpProxiesGetCall) doRequest(alt string) (*http.Response, e "region": c.region, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.get" call. @@ -25076,7 +25076,7 @@ func (c *RegionTargetTcpProxiesInsertCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.insert" call. @@ -25266,7 +25266,7 @@ func (c *RegionTargetTcpProxiesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.list" call. @@ -25398,7 +25398,7 @@ func (c *RegionTargetTcpProxiesTestIamPermissionsCall) doRequest(alt string) (*h "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.testIamPermissions" call. @@ -25509,7 +25509,7 @@ func (c *RegionUrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.delete" call. @@ -25624,7 +25624,7 @@ func (c *RegionUrlMapsGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.get" call. @@ -25737,7 +25737,7 @@ func (c *RegionUrlMapsInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.insert" call. @@ -25855,7 +25855,7 @@ func (c *RegionUrlMapsInvalidateCacheCall) doRequest(alt string) (*http.Response "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.invalidateCache" call. @@ -26045,7 +26045,7 @@ func (c *RegionUrlMapsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.list" call. @@ -26184,7 +26184,7 @@ func (c *RegionUrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.patch" call. @@ -26294,7 +26294,7 @@ func (c *RegionUrlMapsTestIamPermissionsCall) doRequest(alt string) (*http.Respo "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.testIamPermissions" call. @@ -26412,7 +26412,7 @@ func (c *RegionUrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.update" call. @@ -26523,7 +26523,7 @@ func (c *RegionUrlMapsValidateCall) doRequest(alt string) (*http.Response, error "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.validate" call. @@ -26714,7 +26714,7 @@ func (c *RegionZonesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionZones.list" call. @@ -26858,7 +26858,7 @@ func (c *RegionsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regions.get" call. @@ -27056,7 +27056,7 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regions.list" call. @@ -27199,7 +27199,7 @@ func (c *ReservationBlocksGetCall) doRequest(alt string) (*http.Response, error) "reservation": c.reservation, "reservationBlock": c.reservationBlock, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservationBlocks.get" call. @@ -27395,7 +27395,7 @@ func (c *ReservationBlocksListCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservationBlocks.list" call. @@ -27625,7 +27625,7 @@ func (c *ReservationsAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.aggregatedList" call. @@ -27765,7 +27765,7 @@ func (c *ReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.delete" call. @@ -27880,7 +27880,7 @@ func (c *ReservationsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.get" call. @@ -28003,7 +28003,7 @@ func (c *ReservationsGetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.getIamPolicy" call. @@ -28124,7 +28124,7 @@ func (c *ReservationsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.insert" call. @@ -28314,7 +28314,7 @@ func (c *ReservationsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.list" call. @@ -28461,7 +28461,7 @@ func (c *ReservationsResizeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.resize" call. @@ -28571,7 +28571,7 @@ func (c *ReservationsSetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.setIamPolicy" call. @@ -28681,7 +28681,7 @@ func (c *ReservationsTestIamPermissionsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.testIamPermissions" call. @@ -28819,7 +28819,7 @@ func (c *ReservationsUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.update" call. @@ -29027,7 +29027,7 @@ func (c *ResourcePoliciesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.aggregatedList" call. @@ -29167,7 +29167,7 @@ func (c *ResourcePoliciesDeleteCall) doRequest(alt string) (*http.Response, erro "region": c.region, "resourcePolicy": c.resourcePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.delete" call. @@ -29282,7 +29282,7 @@ func (c *ResourcePoliciesGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resourcePolicy": c.resourcePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.get" call. @@ -29405,7 +29405,7 @@ func (c *ResourcePoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.getIamPolicy" call. @@ -29525,7 +29525,7 @@ func (c *ResourcePoliciesInsertCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.insert" call. @@ -29715,7 +29715,7 @@ func (c *ResourcePoliciesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.list" call. @@ -29874,7 +29874,7 @@ func (c *ResourcePoliciesPatchCall) doRequest(alt string) (*http.Response, error "region": c.region, "resourcePolicy": c.resourcePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.patch" call. @@ -29984,7 +29984,7 @@ func (c *ResourcePoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.setIamPolicy" call. @@ -30094,7 +30094,7 @@ func (c *ResourcePoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.testIamPermissions" call. @@ -30303,7 +30303,7 @@ func (c *RoutersAggregatedListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.aggregatedList" call. @@ -30443,7 +30443,7 @@ func (c *RoutersDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.delete" call. @@ -30568,7 +30568,7 @@ func (c *RoutersDeleteNamedSetCall) doRequest(alt string) (*http.Response, error "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.deleteNamedSet" call. @@ -30693,7 +30693,7 @@ func (c *RoutersDeleteRoutePolicyCall) doRequest(alt string) (*http.Response, er "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.deleteRoutePolicy" call. @@ -30808,7 +30808,7 @@ func (c *RoutersGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.get" call. @@ -30931,7 +30931,7 @@ func (c *RoutersGetNamedSetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getNamedSet" call. @@ -31056,7 +31056,7 @@ func (c *RoutersGetNatIpInfoCall) doRequest(alt string) (*http.Response, error) "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getNatIpInfo" call. @@ -31260,7 +31260,7 @@ func (c *RoutersGetNatMappingInfoCall) doRequest(alt string) (*http.Response, er "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getNatMappingInfo" call. @@ -31405,7 +31405,7 @@ func (c *RoutersGetRoutePolicyCall) doRequest(alt string) (*http.Response, error "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getRoutePolicy" call. @@ -31521,7 +31521,7 @@ func (c *RoutersGetRouterStatusCall) doRequest(alt string) (*http.Response, erro "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getRouterStatus" call. @@ -31643,7 +31643,7 @@ func (c *RoutersInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.insert" call. @@ -31833,7 +31833,7 @@ func (c *RoutersListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.list" call. @@ -32096,7 +32096,7 @@ func (c *RoutersListBgpRoutesCall) doRequest(alt string) (*http.Response, error) "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.listBgpRoutes" call. @@ -32313,7 +32313,7 @@ func (c *RoutersListNamedSetsCall) doRequest(alt string) (*http.Response, error) "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.listNamedSets" call. @@ -32530,7 +32530,7 @@ func (c *RoutersListRoutePoliciesCall) doRequest(alt string) (*http.Response, er "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.listRoutePolicies" call. @@ -32678,7 +32678,7 @@ func (c *RoutersPatchCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.patch" call. @@ -32802,7 +32802,7 @@ func (c *RoutersPatchNamedSetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.patchNamedSet" call. @@ -32926,7 +32926,7 @@ func (c *RoutersPatchRoutePolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.patchRoutePolicy" call. @@ -33036,7 +33036,7 @@ func (c *RoutersPreviewCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.preview" call. @@ -33147,7 +33147,7 @@ func (c *RoutersTestIamPermissionsCall) doRequest(alt string) (*http.Response, e "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.testIamPermissions" call. @@ -33275,7 +33275,7 @@ func (c *RoutersUpdateCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.update" call. @@ -33399,7 +33399,7 @@ func (c *RoutersUpdateNamedSetCall) doRequest(alt string) (*http.Response, error "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.updateNamedSet" call. @@ -33523,7 +33523,7 @@ func (c *RoutersUpdateRoutePolicyCall) doRequest(alt string) (*http.Response, er "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.updateRoutePolicy" call. @@ -33637,7 +33637,7 @@ func (c *RoutesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "route": c.route, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.delete" call. @@ -33748,7 +33748,7 @@ func (c *RoutesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "route": c.route, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.get" call. @@ -33865,7 +33865,7 @@ func (c *RoutesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.insert" call. @@ -34051,7 +34051,7 @@ func (c *RoutesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.list" call. @@ -34178,7 +34178,7 @@ func (c *RoutesTestIamPermissionsCall) doRequest(alt string) (*http.Response, er "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.testIamPermissions" call. @@ -34291,7 +34291,7 @@ func (c *SecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Response, err "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.addRule" call. @@ -34499,7 +34499,7 @@ func (c *SecurityPoliciesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.aggregatedList" call. @@ -34635,7 +34635,7 @@ func (c *SecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.delete" call. @@ -34746,7 +34746,7 @@ func (c *SecurityPoliciesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.get" call. @@ -34865,7 +34865,7 @@ func (c *SecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Response, err "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.getRule" call. @@ -34990,7 +34990,7 @@ func (c *SecurityPoliciesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.insert" call. @@ -35176,7 +35176,7 @@ func (c *SecurityPoliciesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.list" call. @@ -35384,7 +35384,7 @@ func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.listPreconfiguredExpressionSets" call. @@ -35522,7 +35522,7 @@ func (c *SecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.patch" call. @@ -35649,7 +35649,7 @@ func (c *SecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, e "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.patchRule" call. @@ -35755,7 +35755,7 @@ func (c *SecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.removeRule" call. @@ -35861,7 +35861,7 @@ func (c *SecurityPoliciesSetLabelsCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.setLabels" call. @@ -35967,7 +35967,7 @@ func (c *SecurityPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Re "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.testIamPermissions" call. @@ -36177,7 +36177,7 @@ func (c *ServiceAttachmentsAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.aggregatedList" call. @@ -36317,7 +36317,7 @@ func (c *ServiceAttachmentsDeleteCall) doRequest(alt string) (*http.Response, er "region": c.region, "serviceAttachment": c.serviceAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.delete" call. @@ -36432,7 +36432,7 @@ func (c *ServiceAttachmentsGetCall) doRequest(alt string) (*http.Response, error "region": c.region, "serviceAttachment": c.serviceAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.get" call. @@ -36556,7 +36556,7 @@ func (c *ServiceAttachmentsGetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.getIamPolicy" call. @@ -36677,7 +36677,7 @@ func (c *ServiceAttachmentsInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.insert" call. @@ -36866,7 +36866,7 @@ func (c *ServiceAttachmentsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.list" call. @@ -37016,7 +37016,7 @@ func (c *ServiceAttachmentsPatchCall) doRequest(alt string) (*http.Response, err "region": c.region, "serviceAttachment": c.serviceAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.patch" call. @@ -37126,7 +37126,7 @@ func (c *ServiceAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.setIamPolicy" call. @@ -37236,7 +37236,7 @@ func (c *ServiceAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http. "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.testIamPermissions" call. @@ -37344,7 +37344,7 @@ func (c *SnapshotSettingsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshotSettings.get" call. @@ -37468,7 +37468,7 @@ func (c *SnapshotSettingsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshotSettings.patch" call. @@ -37676,7 +37676,7 @@ func (c *SnapshotsAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.aggregatedList" call. @@ -37816,7 +37816,7 @@ func (c *SnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "snapshot": c.snapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.delete" call. @@ -37927,7 +37927,7 @@ func (c *SnapshotsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "snapshot": c.snapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.get" call. @@ -38046,7 +38046,7 @@ func (c *SnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.getIamPolicy" call. @@ -38165,7 +38165,7 @@ func (c *SnapshotsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.insert" call. @@ -38351,7 +38351,7 @@ func (c *SnapshotsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.list" call. @@ -38478,7 +38478,7 @@ func (c *SnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.setIamPolicy" call. @@ -38584,7 +38584,7 @@ func (c *SnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.setLabels" call. @@ -38690,7 +38690,7 @@ func (c *SnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.testIamPermissions" call. @@ -38899,7 +38899,7 @@ func (c *SslCertificatesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.aggregatedList" call. @@ -39035,7 +39035,7 @@ func (c *SslCertificatesDeleteCall) doRequest(alt string) (*http.Response, error "project": c.project, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.delete" call. @@ -39146,7 +39146,7 @@ func (c *SslCertificatesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.get" call. @@ -39263,7 +39263,7 @@ func (c *SslCertificatesInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.insert" call. @@ -39449,7 +39449,7 @@ func (c *SslCertificatesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.list" call. @@ -39577,7 +39577,7 @@ func (c *SslCertificatesTestIamPermissionsCall) doRequest(alt string) (*http.Res "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.testIamPermissions" call. @@ -39786,7 +39786,7 @@ func (c *SslPoliciesAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.aggregatedList" call. @@ -39925,7 +39925,7 @@ func (c *SslPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.delete" call. @@ -40037,7 +40037,7 @@ func (c *SslPoliciesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.get" call. @@ -40153,7 +40153,7 @@ func (c *SslPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.insert" call. @@ -40339,7 +40339,7 @@ func (c *SslPoliciesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.list" call. @@ -40547,7 +40547,7 @@ func (c *SslPoliciesListAvailableFeaturesCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.listAvailableFeatures" call. @@ -40670,7 +40670,7 @@ func (c *SslPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.patch" call. @@ -40776,7 +40776,7 @@ func (c *SslPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.testIamPermissions" call. @@ -40985,7 +40985,7 @@ func (c *StoragePoolTypesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePoolTypes.aggregatedList" call. @@ -41122,7 +41122,7 @@ func (c *StoragePoolTypesGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "storagePoolType": c.storagePoolType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePoolTypes.get" call. @@ -41313,7 +41313,7 @@ func (c *StoragePoolTypesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePoolTypes.list" call. @@ -41543,7 +41543,7 @@ func (c *StoragePoolsAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.aggregatedList" call. @@ -41686,7 +41686,7 @@ func (c *StoragePoolsDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.delete" call. @@ -41802,7 +41802,7 @@ func (c *StoragePoolsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.get" call. @@ -41925,7 +41925,7 @@ func (c *StoragePoolsGetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.getIamPolicy" call. @@ -42046,7 +42046,7 @@ func (c *StoragePoolsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.insert" call. @@ -42235,7 +42235,7 @@ func (c *StoragePoolsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.list" call. @@ -42450,7 +42450,7 @@ func (c *StoragePoolsListDisksCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.listDisks" call. @@ -42582,7 +42582,7 @@ func (c *StoragePoolsSetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.setIamPolicy" call. @@ -42707,7 +42707,7 @@ func (c *StoragePoolsSetLabelsCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.setLabels" call. @@ -42817,7 +42817,7 @@ func (c *StoragePoolsTestIamPermissionsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.testIamPermissions" call. @@ -42953,7 +42953,7 @@ func (c *StoragePoolsUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.update" call. @@ -43161,7 +43161,7 @@ func (c *SubnetworksAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.aggregatedList" call. @@ -43301,7 +43301,7 @@ func (c *SubnetworksDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.delete" call. @@ -43426,7 +43426,7 @@ func (c *SubnetworksExpandIpCidrRangeCall) doRequest(alt string) (*http.Response "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.expandIpCidrRange" call. @@ -43541,7 +43541,7 @@ func (c *SubnetworksGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.get" call. @@ -43664,7 +43664,7 @@ func (c *SubnetworksGetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.getIamPolicy" call. @@ -43785,7 +43785,7 @@ func (c *SubnetworksInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.insert" call. @@ -43974,7 +43974,7 @@ func (c *SubnetworksListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.list" call. @@ -44190,7 +44190,7 @@ func (c *SubnetworksListUsableCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.listUsable" call. @@ -44353,7 +44353,7 @@ func (c *SubnetworksPatchCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.patch" call. @@ -44463,7 +44463,7 @@ func (c *SubnetworksSetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.setIamPolicy" call. @@ -44589,7 +44589,7 @@ func (c *SubnetworksSetPrivateIpGoogleAccessCall) doRequest(alt string) (*http.R "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.setPrivateIpGoogleAccess" call. @@ -44699,7 +44699,7 @@ func (c *SubnetworksTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.testIamPermissions" call. @@ -44814,7 +44814,7 @@ func (c *TargetGrpcProxiesDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "targetGrpcProxy": c.targetGrpcProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.delete" call. @@ -44925,7 +44925,7 @@ func (c *TargetGrpcProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetGrpcProxy": c.targetGrpcProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.get" call. @@ -45043,7 +45043,7 @@ func (c *TargetGrpcProxiesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.insert" call. @@ -45228,7 +45228,7 @@ func (c *TargetGrpcProxiesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.list" call. @@ -45372,7 +45372,7 @@ func (c *TargetGrpcProxiesPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetGrpcProxy": c.targetGrpcProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.patch" call. @@ -45478,7 +45478,7 @@ func (c *TargetGrpcProxiesTestIamPermissionsCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.testIamPermissions" call. @@ -45688,7 +45688,7 @@ func (c *TargetHttpProxiesAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.aggregatedList" call. @@ -45824,7 +45824,7 @@ func (c *TargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.delete" call. @@ -45935,7 +45935,7 @@ func (c *TargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.get" call. @@ -46053,7 +46053,7 @@ func (c *TargetHttpProxiesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.insert" call. @@ -46239,7 +46239,7 @@ func (c *TargetHttpProxiesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.list" call. @@ -46383,7 +46383,7 @@ func (c *TargetHttpProxiesPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.patch" call. @@ -46503,7 +46503,7 @@ func (c *TargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.setUrlMap" call. @@ -46609,7 +46609,7 @@ func (c *TargetHttpProxiesTestIamPermissionsCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.testIamPermissions" call. @@ -46819,7 +46819,7 @@ func (c *TargetHttpsProxiesAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.aggregatedList" call. @@ -46955,7 +46955,7 @@ func (c *TargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Response, er "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.delete" call. @@ -47066,7 +47066,7 @@ func (c *TargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, error "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.get" call. @@ -47184,7 +47184,7 @@ func (c *TargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.insert" call. @@ -47370,7 +47370,7 @@ func (c *TargetHttpsProxiesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.list" call. @@ -47514,7 +47514,7 @@ func (c *TargetHttpsProxiesPatchCall) doRequest(alt string) (*http.Response, err "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.patch" call. @@ -47636,7 +47636,7 @@ func (c *TargetHttpsProxiesSetCertificateMapCall) doRequest(alt string) (*http.R "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setCertificateMap" call. @@ -47757,7 +47757,7 @@ func (c *TargetHttpsProxiesSetQuicOverrideCall) doRequest(alt string) (*http.Res "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setQuicOverride" call. @@ -47878,7 +47878,7 @@ func (c *TargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) (*http. "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setSslCertificates" call. @@ -48003,7 +48003,7 @@ func (c *TargetHttpsProxiesSetSslPolicyCall) doRequest(alt string) (*http.Respon "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setSslPolicy" call. @@ -48124,7 +48124,7 @@ func (c *TargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setUrlMap" call. @@ -48230,7 +48230,7 @@ func (c *TargetHttpsProxiesTestIamPermissionsCall) doRequest(alt string) (*http. "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.testIamPermissions" call. @@ -48439,7 +48439,7 @@ func (c *TargetInstancesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.aggregatedList" call. @@ -48579,7 +48579,7 @@ func (c *TargetInstancesDeleteCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "targetInstance": c.targetInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.delete" call. @@ -48694,7 +48694,7 @@ func (c *TargetInstancesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "targetInstance": c.targetInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.get" call. @@ -48815,7 +48815,7 @@ func (c *TargetInstancesInsertCall) doRequest(alt string) (*http.Response, error "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.insert" call. @@ -49005,7 +49005,7 @@ func (c *TargetInstancesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.list" call. @@ -49154,7 +49154,7 @@ func (c *TargetInstancesSetSecurityPolicyCall) doRequest(alt string) (*http.Resp "zone": c.zone, "targetInstance": c.targetInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.setSecurityPolicy" call. @@ -49264,7 +49264,7 @@ func (c *TargetInstancesTestIamPermissionsCall) doRequest(alt string) (*http.Res "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.testIamPermissions" call. @@ -49389,7 +49389,7 @@ func (c *TargetPoolsAddHealthCheckCall) doRequest(alt string) (*http.Response, e "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.addHealthCheck" call. @@ -49513,7 +49513,7 @@ func (c *TargetPoolsAddInstanceCall) doRequest(alt string) (*http.Response, erro "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.addInstance" call. @@ -49721,7 +49721,7 @@ func (c *TargetPoolsAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.aggregatedList" call. @@ -49861,7 +49861,7 @@ func (c *TargetPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.delete" call. @@ -49976,7 +49976,7 @@ func (c *TargetPoolsGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.get" call. @@ -50087,7 +50087,7 @@ func (c *TargetPoolsGetHealthCall) doRequest(alt string) (*http.Response, error) "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.getHealth" call. @@ -50209,7 +50209,7 @@ func (c *TargetPoolsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.insert" call. @@ -50399,7 +50399,7 @@ func (c *TargetPoolsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.list" call. @@ -50544,7 +50544,7 @@ func (c *TargetPoolsRemoveHealthCheckCall) doRequest(alt string) (*http.Response "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.removeHealthCheck" call. @@ -50668,7 +50668,7 @@ func (c *TargetPoolsRemoveInstanceCall) doRequest(alt string) (*http.Response, e "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.removeInstance" call. @@ -50799,7 +50799,7 @@ func (c *TargetPoolsSetBackupCall) doRequest(alt string) (*http.Response, error) "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.setBackup" call. @@ -50925,7 +50925,7 @@ func (c *TargetPoolsSetSecurityPolicyCall) doRequest(alt string) (*http.Response "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.setSecurityPolicy" call. @@ -51035,7 +51035,7 @@ func (c *TargetPoolsTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.testIamPermissions" call. @@ -51150,7 +51150,7 @@ func (c *TargetSslProxiesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.delete" call. @@ -51261,7 +51261,7 @@ func (c *TargetSslProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.get" call. @@ -51378,7 +51378,7 @@ func (c *TargetSslProxiesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.insert" call. @@ -51564,7 +51564,7 @@ func (c *TargetSslProxiesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.list" call. @@ -51707,7 +51707,7 @@ func (c *TargetSslProxiesSetBackendServiceCall) doRequest(alt string) (*http.Res "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setBackendService" call. @@ -51829,7 +51829,7 @@ func (c *TargetSslProxiesSetCertificateMapCall) doRequest(alt string) (*http.Res "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setCertificateMap" call. @@ -51950,7 +51950,7 @@ func (c *TargetSslProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Respon "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setProxyHeader" call. @@ -52071,7 +52071,7 @@ func (c *TargetSslProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Re "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setSslCertificates" call. @@ -52195,7 +52195,7 @@ func (c *TargetSslProxiesSetSslPolicyCall) doRequest(alt string) (*http.Response "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setSslPolicy" call. @@ -52301,7 +52301,7 @@ func (c *TargetSslProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Re "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.testIamPermissions" call. @@ -52510,7 +52510,7 @@ func (c *TargetTcpProxiesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.aggregatedList" call. @@ -52646,7 +52646,7 @@ func (c *TargetTcpProxiesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.delete" call. @@ -52757,7 +52757,7 @@ func (c *TargetTcpProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.get" call. @@ -52874,7 +52874,7 @@ func (c *TargetTcpProxiesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.insert" call. @@ -53060,7 +53060,7 @@ func (c *TargetTcpProxiesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.list" call. @@ -53203,7 +53203,7 @@ func (c *TargetTcpProxiesSetBackendServiceCall) doRequest(alt string) (*http.Res "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.setBackendService" call. @@ -53324,7 +53324,7 @@ func (c *TargetTcpProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Respon "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.setProxyHeader" call. @@ -53430,7 +53430,7 @@ func (c *TargetTcpProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Re "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.testIamPermissions" call. @@ -53639,7 +53639,7 @@ func (c *TargetVpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.aggregatedList" call. @@ -53779,7 +53779,7 @@ func (c *TargetVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, err "region": c.region, "targetVpnGateway": c.targetVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.delete" call. @@ -53894,7 +53894,7 @@ func (c *TargetVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "targetVpnGateway": c.targetVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.get" call. @@ -54016,7 +54016,7 @@ func (c *TargetVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.insert" call. @@ -54206,7 +54206,7 @@ func (c *TargetVpnGatewaysListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.list" call. @@ -54353,7 +54353,7 @@ func (c *TargetVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.setLabels" call. @@ -54463,7 +54463,7 @@ func (c *TargetVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.R "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.testIamPermissions" call. @@ -54672,7 +54672,7 @@ func (c *UrlMapsAggregatedListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.aggregatedList" call. @@ -54808,7 +54808,7 @@ func (c *UrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.delete" call. @@ -54919,7 +54919,7 @@ func (c *UrlMapsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.get" call. @@ -55036,7 +55036,7 @@ func (c *UrlMapsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.insert" call. @@ -55158,7 +55158,7 @@ func (c *UrlMapsInvalidateCacheCall) doRequest(alt string) (*http.Response, erro "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.invalidateCache" call. @@ -55344,7 +55344,7 @@ func (c *UrlMapsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.list" call. @@ -55487,7 +55487,7 @@ func (c *UrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.patch" call. @@ -55593,7 +55593,7 @@ func (c *UrlMapsTestIamPermissionsCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.testIamPermissions" call. @@ -55715,7 +55715,7 @@ func (c *UrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.update" call. @@ -55822,7 +55822,7 @@ func (c *UrlMapsValidateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.validate" call. @@ -56031,7 +56031,7 @@ func (c *VpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.aggregatedList" call. @@ -56171,7 +56171,7 @@ func (c *VpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnGateway": c.vpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.delete" call. @@ -56286,7 +56286,7 @@ func (c *VpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnGateway": c.vpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.get" call. @@ -56401,7 +56401,7 @@ func (c *VpnGatewaysGetStatusCall) doRequest(alt string) (*http.Response, error) "region": c.region, "vpnGateway": c.vpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.getStatus" call. @@ -56523,7 +56523,7 @@ func (c *VpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.insert" call. @@ -56713,7 +56713,7 @@ func (c *VpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.list" call. @@ -56859,7 +56859,7 @@ func (c *VpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.setLabels" call. @@ -56969,7 +56969,7 @@ func (c *VpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.testIamPermissions" call. @@ -57178,7 +57178,7 @@ func (c *VpnTunnelsAggregatedListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.aggregatedList" call. @@ -57318,7 +57318,7 @@ func (c *VpnTunnelsDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnTunnel": c.vpnTunnel, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.delete" call. @@ -57433,7 +57433,7 @@ func (c *VpnTunnelsGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnTunnel": c.vpnTunnel, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.get" call. @@ -57554,7 +57554,7 @@ func (c *VpnTunnelsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.insert" call. @@ -57744,7 +57744,7 @@ func (c *VpnTunnelsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.list" call. @@ -57890,7 +57890,7 @@ func (c *VpnTunnelsSetLabelsCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.setLabels" call. @@ -58000,7 +58000,7 @@ func (c *VpnTunnelsTestIamPermissionsCall) doRequest(alt string) (*http.Response "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.testIamPermissions" call. @@ -58105,7 +58105,7 @@ func (c *ZoneOperationsDeleteCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.delete" call. @@ -58198,7 +58198,7 @@ func (c *ZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.get" call. @@ -58388,7 +58388,7 @@ func (c *ZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.list" call. @@ -58522,7 +58522,7 @@ func (c *ZoneOperationsWaitCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.wait" call. @@ -58730,7 +58730,7 @@ func (c *ZoneQueuedResourcesAggregatedListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneQueuedResources.aggregatedList" call. @@ -58871,7 +58871,7 @@ func (c *ZoneQueuedResourcesCancelCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "queuedResource": c.queuedResource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneQueuedResources.cancel" call. @@ -58993,7 +58993,7 @@ func (c *ZoneQueuedResourcesDeleteCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "queuedResource": c.queuedResource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneQueuedResources.delete" call. @@ -59108,7 +59108,7 @@ func (c *ZoneQueuedResourcesGetCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "queuedResource": c.queuedResource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneQueuedResources.get" call. @@ -59228,7 +59228,7 @@ func (c *ZoneQueuedResourcesInsertCall) doRequest(alt string) (*http.Response, e "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneQueuedResources.insert" call. @@ -59417,7 +59417,7 @@ func (c *ZoneQueuedResourcesListCall) doRequest(alt string) (*http.Response, err "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneQueuedResources.list" call. @@ -59550,7 +59550,7 @@ func (c *ZonesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zones.get" call. @@ -59736,7 +59736,7 @@ func (c *ZonesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zones.list" call. diff --git a/compute/v0.beta/compute2-gen.go b/compute/v0.beta/compute2-gen.go index bb9ee65edef..e8b6d802358 100644 --- a/compute/v0.beta/compute2-gen.go +++ b/compute/v0.beta/compute2-gen.go @@ -184,7 +184,7 @@ func (c *AcceleratorTypesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.acceleratorTypes.aggregatedList" call. @@ -321,7 +321,7 @@ func (c *AcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "acceleratorType": c.acceleratorType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.acceleratorTypes.get" call. @@ -512,7 +512,7 @@ func (c *AcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.acceleratorTypes.list" call. @@ -742,7 +742,7 @@ func (c *AddressesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.aggregatedList" call. @@ -882,7 +882,7 @@ func (c *AddressesDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.delete" call. @@ -997,7 +997,7 @@ func (c *AddressesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.get" call. @@ -1118,7 +1118,7 @@ func (c *AddressesInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.insert" call. @@ -1307,7 +1307,7 @@ func (c *AddressesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.list" call. @@ -1452,7 +1452,7 @@ func (c *AddressesMoveCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.move" call. @@ -1577,7 +1577,7 @@ func (c *AddressesSetLabelsCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.setLabels" call. @@ -1687,7 +1687,7 @@ func (c *AddressesTestIamPermissionsCall) doRequest(alt string) (*http.Response, "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.testIamPermissions" call. @@ -1896,7 +1896,7 @@ func (c *AutoscalersAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.aggregatedList" call. @@ -2036,7 +2036,7 @@ func (c *AutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.delete" call. @@ -2151,7 +2151,7 @@ func (c *AutoscalersGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.get" call. @@ -2272,7 +2272,7 @@ func (c *AutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.insert" call. @@ -2461,7 +2461,7 @@ func (c *AutoscalersListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.list" call. @@ -2611,7 +2611,7 @@ func (c *AutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.patch" call. @@ -2721,7 +2721,7 @@ func (c *AutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.Respons "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.testIamPermissions" call. @@ -2850,7 +2850,7 @@ func (c *AutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.update" call. @@ -2972,7 +2972,7 @@ func (c *BackendBucketsAddSignedUrlKeyCall) doRequest(alt string) (*http.Respons "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.addSignedUrlKey" call. @@ -3086,7 +3086,7 @@ func (c *BackendBucketsDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.delete" call. @@ -3204,7 +3204,7 @@ func (c *BackendBucketsDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Resp "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.deleteSignedUrlKey" call. @@ -3315,7 +3315,7 @@ func (c *BackendBucketsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.get" call. @@ -3434,7 +3434,7 @@ func (c *BackendBucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.getIamPolicy" call. @@ -3551,7 +3551,7 @@ func (c *BackendBucketsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.insert" call. @@ -3737,7 +3737,7 @@ func (c *BackendBucketsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.list" call. @@ -3881,7 +3881,7 @@ func (c *BackendBucketsPatchCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.patch" call. @@ -4003,7 +4003,7 @@ func (c *BackendBucketsSetEdgeSecurityPolicyCall) doRequest(alt string) (*http.R "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.setEdgeSecurityPolicy" call. @@ -4109,7 +4109,7 @@ func (c *BackendBucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.setIamPolicy" call. @@ -4215,7 +4215,7 @@ func (c *BackendBucketsTestIamPermissionsCall) doRequest(alt string) (*http.Resp "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.testIamPermissions" call. @@ -4337,7 +4337,7 @@ func (c *BackendBucketsUpdateCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.update" call. @@ -4459,7 +4459,7 @@ func (c *BackendServicesAddSignedUrlKeyCall) doRequest(alt string) (*http.Respon "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.addSignedUrlKey" call. @@ -4667,7 +4667,7 @@ func (c *BackendServicesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.aggregatedList" call. @@ -4803,7 +4803,7 @@ func (c *BackendServicesDeleteCall) doRequest(alt string) (*http.Response, error "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.delete" call. @@ -4921,7 +4921,7 @@ func (c *BackendServicesDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Res "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.deleteSignedUrlKey" call. @@ -5032,7 +5032,7 @@ func (c *BackendServicesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.get" call. @@ -5140,7 +5140,7 @@ func (c *BackendServicesGetHealthCall) doRequest(alt string) (*http.Response, er "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.getHealth" call. @@ -5260,7 +5260,7 @@ func (c *BackendServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.getIamPolicy" call. @@ -5378,7 +5378,7 @@ func (c *BackendServicesInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.insert" call. @@ -5564,7 +5564,7 @@ func (c *BackendServicesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.list" call. @@ -5772,7 +5772,7 @@ func (c *BackendServicesListUsableCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.listUsable" call. @@ -5917,7 +5917,7 @@ func (c *BackendServicesPatchCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.patch" call. @@ -6039,7 +6039,7 @@ func (c *BackendServicesSetEdgeSecurityPolicyCall) doRequest(alt string) (*http. "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.setEdgeSecurityPolicy" call. @@ -6145,7 +6145,7 @@ func (c *BackendServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.setIamPolicy" call. @@ -6268,7 +6268,7 @@ func (c *BackendServicesSetSecurityPolicyCall) doRequest(alt string) (*http.Resp "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.setSecurityPolicy" call. @@ -6374,7 +6374,7 @@ func (c *BackendServicesTestIamPermissionsCall) doRequest(alt string) (*http.Res "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.testIamPermissions" call. @@ -6496,7 +6496,7 @@ func (c *BackendServicesUpdateCall) doRequest(alt string) (*http.Response, error "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.update" call. @@ -6704,7 +6704,7 @@ func (c *DiskTypesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskTypes.aggregatedList" call. @@ -6841,7 +6841,7 @@ func (c *DiskTypesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "diskType": c.diskType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskTypes.get" call. @@ -7030,7 +7030,7 @@ func (c *DiskTypesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskTypes.list" call. @@ -7177,7 +7177,7 @@ func (c *DisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.addResourcePolicies" call. @@ -7385,7 +7385,7 @@ func (c *DisksAggregatedListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.aggregatedList" call. @@ -7527,7 +7527,7 @@ func (c *DisksBulkInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.bulkInsert" call. @@ -7662,7 +7662,7 @@ func (c *DisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.createSnapshot" call. @@ -7783,7 +7783,7 @@ func (c *DisksDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.delete" call. @@ -7898,7 +7898,7 @@ func (c *DisksGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.get" call. @@ -8021,7 +8021,7 @@ func (c *DisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.getIamPolicy" call. @@ -8152,7 +8152,7 @@ func (c *DisksInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.insert" call. @@ -8342,7 +8342,7 @@ func (c *DisksListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.list" call. @@ -8487,7 +8487,7 @@ func (c *DisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.removeResourcePolicies" call. @@ -8612,7 +8612,7 @@ func (c *DisksResizeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.resize" call. @@ -8722,7 +8722,7 @@ func (c *DisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.setIamPolicy" call. @@ -8847,7 +8847,7 @@ func (c *DisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.setLabels" call. @@ -8972,7 +8972,7 @@ func (c *DisksStartAsyncReplicationCall) doRequest(alt string) (*http.Response, "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.startAsyncReplication" call. @@ -9091,7 +9091,7 @@ func (c *DisksStopAsyncReplicationCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.stopAsyncReplication" call. @@ -9213,7 +9213,7 @@ func (c *DisksStopGroupAsyncReplicationCall) doRequest(alt string) (*http.Respon "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.stopGroupAsyncReplication" call. @@ -9323,7 +9323,7 @@ func (c *DisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, err "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.testIamPermissions" call. @@ -9463,7 +9463,7 @@ func (c *DisksUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.update" call. @@ -9577,7 +9577,7 @@ func (c *ExternalVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, e "project": c.project, "externalVpnGateway": c.externalVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.delete" call. @@ -9689,7 +9689,7 @@ func (c *ExternalVpnGatewaysGetCall) doRequest(alt string) (*http.Response, erro "project": c.project, "externalVpnGateway": c.externalVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.get" call. @@ -9807,7 +9807,7 @@ func (c *ExternalVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.insert" call. @@ -9993,7 +9993,7 @@ func (c *ExternalVpnGatewaysListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.list" call. @@ -10121,7 +10121,7 @@ func (c *ExternalVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.setLabels" call. @@ -10227,7 +10227,7 @@ func (c *ExternalVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.testIamPermissions" call. @@ -10353,7 +10353,7 @@ func (c *FirewallPoliciesAddAssociationCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.addAssociation" call. @@ -10470,7 +10470,7 @@ func (c *FirewallPoliciesAddPacketMirroringRuleCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.addPacketMirroringRule" call. @@ -10586,7 +10586,7 @@ func (c *FirewallPoliciesAddRuleCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.addRule" call. @@ -10703,7 +10703,7 @@ func (c *FirewallPoliciesCloneRulesCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.cloneRules" call. @@ -10813,7 +10813,7 @@ func (c *FirewallPoliciesDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.delete" call. @@ -10920,7 +10920,7 @@ func (c *FirewallPoliciesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.get" call. @@ -11035,7 +11035,7 @@ func (c *FirewallPoliciesGetAssociationCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getAssociation" call. @@ -11151,7 +11151,7 @@ func (c *FirewallPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getIamPolicy" call. @@ -11267,7 +11267,7 @@ func (c *FirewallPoliciesGetPacketMirroringRuleCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getPacketMirroringRule" call. @@ -11383,7 +11383,7 @@ func (c *FirewallPoliciesGetRuleCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getRule" call. @@ -11502,7 +11502,7 @@ func (c *FirewallPoliciesInsertCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.insert" call. @@ -11689,7 +11689,7 @@ func (c *FirewallPoliciesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.list" call. @@ -11819,7 +11819,7 @@ func (c *FirewallPoliciesListAssociationsCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.listAssociations" call. @@ -11939,7 +11939,7 @@ func (c *FirewallPoliciesMoveCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.move" call. @@ -12055,7 +12055,7 @@ func (c *FirewallPoliciesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.patch" call. @@ -12179,7 +12179,7 @@ func (c *FirewallPoliciesPatchPacketMirroringRuleCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.patchPacketMirroringRule" call. @@ -12302,7 +12302,7 @@ func (c *FirewallPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.patchRule" call. @@ -12419,7 +12419,7 @@ func (c *FirewallPoliciesRemoveAssociationCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.removeAssociation" call. @@ -12537,7 +12537,7 @@ func (c *FirewallPoliciesRemovePacketMirroringRuleCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.removePacketMirroringRule" call. @@ -12654,7 +12654,7 @@ func (c *FirewallPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.removeRule" call. @@ -12756,7 +12756,7 @@ func (c *FirewallPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.setIamPolicy" call. @@ -12858,7 +12858,7 @@ func (c *FirewallPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.testIamPermissions" call. @@ -12973,7 +12973,7 @@ func (c *FirewallsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.delete" call. @@ -13084,7 +13084,7 @@ func (c *FirewallsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.get" call. @@ -13201,7 +13201,7 @@ func (c *FirewallsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.insert" call. @@ -13387,7 +13387,7 @@ func (c *FirewallsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.list" call. @@ -13530,7 +13530,7 @@ func (c *FirewallsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.patch" call. @@ -13636,7 +13636,7 @@ func (c *FirewallsTestIamPermissionsCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.testIamPermissions" call. @@ -13759,7 +13759,7 @@ func (c *FirewallsUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.update" call. @@ -13967,7 +13967,7 @@ func (c *ForwardingRulesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.aggregatedList" call. @@ -14107,7 +14107,7 @@ func (c *ForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, error "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.delete" call. @@ -14222,7 +14222,7 @@ func (c *ForwardingRulesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.get" call. @@ -14343,7 +14343,7 @@ func (c *ForwardingRulesInsertCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.insert" call. @@ -14533,7 +14533,7 @@ func (c *ForwardingRulesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.list" call. @@ -14682,7 +14682,7 @@ func (c *ForwardingRulesPatchCall) doRequest(alt string) (*http.Response, error) "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.patch" call. @@ -14807,7 +14807,7 @@ func (c *ForwardingRulesSetLabelsCall) doRequest(alt string) (*http.Response, er "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.setLabels" call. @@ -14933,7 +14933,7 @@ func (c *ForwardingRulesSetTargetCall) doRequest(alt string) (*http.Response, er "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.setTarget" call. @@ -15043,7 +15043,7 @@ func (c *ForwardingRulesTestIamPermissionsCall) doRequest(alt string) (*http.Res "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.testIamPermissions" call. @@ -15252,7 +15252,7 @@ func (c *FutureReservationsAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.aggregatedList" call. @@ -15393,7 +15393,7 @@ func (c *FutureReservationsCancelCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.cancel" call. @@ -15512,7 +15512,7 @@ func (c *FutureReservationsDeleteCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.delete" call. @@ -15628,7 +15628,7 @@ func (c *FutureReservationsGetCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.get" call. @@ -15749,7 +15749,7 @@ func (c *FutureReservationsInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.insert" call. @@ -15939,7 +15939,7 @@ func (c *FutureReservationsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.list" call. @@ -16093,7 +16093,7 @@ func (c *FutureReservationsUpdateCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.update" call. @@ -16207,7 +16207,7 @@ func (c *GlobalAddressesDeleteCall) doRequest(alt string) (*http.Response, error "project": c.project, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.delete" call. @@ -16318,7 +16318,7 @@ func (c *GlobalAddressesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.get" call. @@ -16435,7 +16435,7 @@ func (c *GlobalAddressesInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.insert" call. @@ -16620,7 +16620,7 @@ func (c *GlobalAddressesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.list" call. @@ -16762,7 +16762,7 @@ func (c *GlobalAddressesMoveCall) doRequest(alt string) (*http.Response, error) "project": c.project, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.move" call. @@ -16868,7 +16868,7 @@ func (c *GlobalAddressesSetLabelsCall) doRequest(alt string) (*http.Response, er "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.setLabels" call. @@ -16974,7 +16974,7 @@ func (c *GlobalAddressesTestIamPermissionsCall) doRequest(alt string) (*http.Res "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.testIamPermissions" call. @@ -17089,7 +17089,7 @@ func (c *GlobalForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.delete" call. @@ -17201,7 +17201,7 @@ func (c *GlobalForwardingRulesGetCall) doRequest(alt string) (*http.Response, er "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.get" call. @@ -17318,7 +17318,7 @@ func (c *GlobalForwardingRulesInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.insert" call. @@ -17504,7 +17504,7 @@ func (c *GlobalForwardingRulesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.list" call. @@ -17649,7 +17649,7 @@ func (c *GlobalForwardingRulesPatchCall) doRequest(alt string) (*http.Response, "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.patch" call. @@ -17755,7 +17755,7 @@ func (c *GlobalForwardingRulesSetLabelsCall) doRequest(alt string) (*http.Respon "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.setLabels" call. @@ -17877,7 +17877,7 @@ func (c *GlobalForwardingRulesSetTargetCall) doRequest(alt string) (*http.Respon "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.setTarget" call. @@ -17983,7 +17983,7 @@ func (c *GlobalForwardingRulesTestIamPermissionsCall) doRequest(alt string) (*ht "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.testIamPermissions" call. @@ -18106,7 +18106,7 @@ func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt st "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.attachNetworkEndpoints" call. @@ -18222,7 +18222,7 @@ func (c *GlobalNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Res "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.delete" call. @@ -18344,7 +18344,7 @@ func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt st "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.detachNetworkEndpoints" call. @@ -18456,7 +18456,7 @@ func (c *GlobalNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Respon "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.get" call. @@ -18574,7 +18574,7 @@ func (c *GlobalNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.insert" call. @@ -18760,7 +18760,7 @@ func (c *GlobalNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.list" call. @@ -18962,7 +18962,7 @@ func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt stri "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.listNetworkEndpoints" call. @@ -19192,7 +19192,7 @@ func (c *GlobalOperationsAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.aggregatedList" call. @@ -19314,7 +19314,7 @@ func (c *GlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.delete" call. @@ -19403,7 +19403,7 @@ func (c *GlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.get" call. @@ -19589,7 +19589,7 @@ func (c *GlobalOperationsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.list" call. @@ -19720,7 +19720,7 @@ func (c *GlobalOperationsWaitCall) doRequest(alt string) (*http.Response, error) "project": c.project, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.wait" call. @@ -19822,7 +19822,7 @@ func (c *GlobalOrganizationOperationsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOrganizationOperations.delete" call. @@ -19914,7 +19914,7 @@ func (c *GlobalOrganizationOperationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOrganizationOperations.get" call. @@ -20099,7 +20099,7 @@ func (c *GlobalOrganizationOperationsListCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOrganizationOperations.list" call. @@ -20235,7 +20235,7 @@ func (c *GlobalPublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.R "project": c.project, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.delete" call. @@ -20347,7 +20347,7 @@ func (c *GlobalPublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Resp "project": c.project, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.get" call. @@ -20465,7 +20465,7 @@ func (c *GlobalPublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.insert" call. @@ -20650,7 +20650,7 @@ func (c *GlobalPublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.list" call. @@ -20795,7 +20795,7 @@ func (c *GlobalPublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Re "project": c.project, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.patch" call. @@ -21003,7 +21003,7 @@ func (c *HealthChecksAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.aggregatedList" call. @@ -21139,7 +21139,7 @@ func (c *HealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.delete" call. @@ -21250,7 +21250,7 @@ func (c *HealthChecksGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.get" call. @@ -21367,7 +21367,7 @@ func (c *HealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.insert" call. @@ -21553,7 +21553,7 @@ func (c *HealthChecksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.list" call. @@ -21697,7 +21697,7 @@ func (c *HealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.patch" call. @@ -21803,7 +21803,7 @@ func (c *HealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Respon "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.testIamPermissions" call. @@ -21925,7 +21925,7 @@ func (c *HealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.update" call. @@ -22039,7 +22039,7 @@ func (c *HttpHealthChecksDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.delete" call. @@ -22150,7 +22150,7 @@ func (c *HttpHealthChecksGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.get" call. @@ -22268,7 +22268,7 @@ func (c *HttpHealthChecksInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.insert" call. @@ -22454,7 +22454,7 @@ func (c *HttpHealthChecksListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.list" call. @@ -22598,7 +22598,7 @@ func (c *HttpHealthChecksPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.patch" call. @@ -22704,7 +22704,7 @@ func (c *HttpHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.Re "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.testIamPermissions" call. @@ -22826,7 +22826,7 @@ func (c *HttpHealthChecksUpdateCall) doRequest(alt string) (*http.Response, erro "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.update" call. @@ -22940,7 +22940,7 @@ func (c *HttpsHealthChecksDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.delete" call. @@ -23051,7 +23051,7 @@ func (c *HttpsHealthChecksGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.get" call. @@ -23169,7 +23169,7 @@ func (c *HttpsHealthChecksInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.insert" call. @@ -23355,7 +23355,7 @@ func (c *HttpsHealthChecksListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.list" call. @@ -23499,7 +23499,7 @@ func (c *HttpsHealthChecksPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.patch" call. @@ -23605,7 +23605,7 @@ func (c *HttpsHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.testIamPermissions" call. @@ -23727,7 +23727,7 @@ func (c *HttpsHealthChecksUpdateCall) doRequest(alt string) (*http.Response, err "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.update" call. @@ -23843,7 +23843,7 @@ func (c *ImageFamilyViewsGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "family": c.family, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.imageFamilyViews.get" call. @@ -23958,7 +23958,7 @@ func (c *ImagesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.delete" call. @@ -24079,7 +24079,7 @@ func (c *ImagesDeprecateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.deprecate" call. @@ -24190,7 +24190,7 @@ func (c *ImagesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.get" call. @@ -24304,7 +24304,7 @@ func (c *ImagesGetFromFamilyCall) doRequest(alt string) (*http.Response, error) "project": c.project, "family": c.family, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.getFromFamily" call. @@ -24423,7 +24423,7 @@ func (c *ImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.getIamPolicy" call. @@ -24547,7 +24547,7 @@ func (c *ImagesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.insert" call. @@ -24743,7 +24743,7 @@ func (c *ImagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.list" call. @@ -24886,7 +24886,7 @@ func (c *ImagesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.patch" call. @@ -24992,7 +24992,7 @@ func (c *ImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.setIamPolicy" call. @@ -25098,7 +25098,7 @@ func (c *ImagesSetLabelsCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.setLabels" call. @@ -25204,7 +25204,7 @@ func (c *ImagesTestIamPermissionsCall) doRequest(alt string) (*http.Response, er "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.testIamPermissions" call. @@ -25333,7 +25333,7 @@ func (c *InstanceGroupManagerResizeRequestsCancelCall) doRequest(alt string) (*h "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.cancel" call. @@ -25460,7 +25460,7 @@ func (c *InstanceGroupManagerResizeRequestsDeleteCall) doRequest(alt string) (*h "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.delete" call. @@ -25582,7 +25582,7 @@ func (c *InstanceGroupManagerResizeRequestsGetCall) doRequest(alt string) (*http "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.get" call. @@ -25711,7 +25711,7 @@ func (c *InstanceGroupManagerResizeRequestsInsertCall) doRequest(alt string) (*h "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.insert" call. @@ -25907,7 +25907,7 @@ func (c *InstanceGroupManagerResizeRequestsListCall) doRequest(alt string) (*htt "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.list" call. @@ -26064,7 +26064,7 @@ func (c *InstanceGroupManagersAbandonInstancesCall) doRequest(alt string) (*http "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.abandonInstances" call. @@ -26272,7 +26272,7 @@ func (c *InstanceGroupManagersAggregatedListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.aggregatedList" call. @@ -26407,7 +26407,7 @@ func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.applyUpdatesToInstances" call. @@ -26537,7 +26537,7 @@ func (c *InstanceGroupManagersCreateInstancesCall) doRequest(alt string) (*http. "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.createInstances" call. @@ -26657,7 +26657,7 @@ func (c *InstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.delete" call. @@ -26791,7 +26791,7 @@ func (c *InstanceGroupManagersDeleteInstancesCall) doRequest(alt string) (*http. "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.deleteInstances" call. @@ -26903,7 +26903,7 @@ func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt string "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.deletePerInstanceConfigs" call. @@ -27018,7 +27018,7 @@ func (c *InstanceGroupManagersGetCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.get" call. @@ -27147,7 +27147,7 @@ func (c *InstanceGroupManagersInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.insert" call. @@ -27337,7 +27337,7 @@ func (c *InstanceGroupManagersListCall) doRequest(alt string) (*http.Response, e "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.list" call. @@ -27558,7 +27558,7 @@ func (c *InstanceGroupManagersListErrorsCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.listErrors" call. @@ -27768,7 +27768,7 @@ func (c *InstanceGroupManagersListManagedInstancesCall) doRequest(alt string) (* "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.listManagedInstances" call. @@ -27975,7 +27975,7 @@ func (c *InstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.listPerInstanceConfigs" call. @@ -28131,7 +28131,7 @@ func (c *InstanceGroupManagersPatchCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.patch" call. @@ -28259,7 +28259,7 @@ func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.patchPerInstanceConfigs" call. @@ -28392,7 +28392,7 @@ func (c *InstanceGroupManagersRecreateInstancesCall) doRequest(alt string) (*htt "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.recreateInstances" call. @@ -28528,7 +28528,7 @@ func (c *InstanceGroupManagersResizeCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.resize" call. @@ -28663,7 +28663,7 @@ func (c *InstanceGroupManagersResizeAdvancedCall) doRequest(alt string) (*http.R "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.resizeAdvanced" call. @@ -28799,7 +28799,7 @@ func (c *InstanceGroupManagersResumeInstancesCall) doRequest(alt string) (*http. "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.resumeInstances" call. @@ -28925,7 +28925,7 @@ func (c *InstanceGroupManagersSetAutoHealingPoliciesCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.setAutoHealingPolicies" call. @@ -29052,7 +29052,7 @@ func (c *InstanceGroupManagersSetInstanceTemplateCall) doRequest(alt string) (*h "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.setInstanceTemplate" call. @@ -29181,7 +29181,7 @@ func (c *InstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (*http.R "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.setTargetPools" call. @@ -29316,7 +29316,7 @@ func (c *InstanceGroupManagersStartInstancesCall) doRequest(alt string) (*http.R "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.startInstances" call. @@ -29457,7 +29457,7 @@ func (c *InstanceGroupManagersStopInstancesCall) doRequest(alt string) (*http.Re "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.stopInstances" call. @@ -29599,7 +29599,7 @@ func (c *InstanceGroupManagersSuspendInstancesCall) doRequest(alt string) (*http "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.suspendInstances" call. @@ -29709,7 +29709,7 @@ func (c *InstanceGroupManagersTestIamPermissionsCall) doRequest(alt string) (*ht "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.testIamPermissions" call. @@ -29843,7 +29843,7 @@ func (c *InstanceGroupManagersUpdateCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.update" call. @@ -29971,7 +29971,7 @@ func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt string "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.updatePerInstanceConfigs" call. @@ -30098,7 +30098,7 @@ func (c *InstanceGroupsAddInstancesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.addInstances" call. @@ -30306,7 +30306,7 @@ func (c *InstanceGroupsAggregatedListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.aggregatedList" call. @@ -30448,7 +30448,7 @@ func (c *InstanceGroupsDeleteCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.delete" call. @@ -30566,7 +30566,7 @@ func (c *InstanceGroupsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.get" call. @@ -30687,7 +30687,7 @@ func (c *InstanceGroupsInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.insert" call. @@ -30878,7 +30878,7 @@ func (c *InstanceGroupsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.list" call. @@ -31091,7 +31091,7 @@ func (c *InstanceGroupsListInstancesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.listInstances" call. @@ -31242,7 +31242,7 @@ func (c *InstanceGroupsRemoveInstancesCall) doRequest(alt string) (*http.Respons "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.removeInstances" call. @@ -31367,7 +31367,7 @@ func (c *InstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.setNamedPorts" call. @@ -31477,7 +31477,7 @@ func (c *InstanceGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Resp "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.testIamPermissions" call. @@ -31589,7 +31589,7 @@ func (c *InstanceSettingsGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceSettings.get" call. @@ -31717,7 +31717,7 @@ func (c *InstanceSettingsPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceSettings.patch" call. @@ -31926,7 +31926,7 @@ func (c *InstanceTemplatesAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.aggregatedList" call. @@ -32064,7 +32064,7 @@ func (c *InstanceTemplatesDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.delete" call. @@ -32189,7 +32189,7 @@ func (c *InstanceTemplatesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.get" call. @@ -32309,7 +32309,7 @@ func (c *InstanceTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.getIamPolicy" call. @@ -32429,7 +32429,7 @@ func (c *InstanceTemplatesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.insert" call. @@ -32629,7 +32629,7 @@ func (c *InstanceTemplatesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.list" call. @@ -32757,7 +32757,7 @@ func (c *InstanceTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.setIamPolicy" call. @@ -32863,7 +32863,7 @@ func (c *InstanceTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.testIamPermissions" call. @@ -32991,7 +32991,7 @@ func (c *InstancesAddAccessConfigCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.addAccessConfig" call. @@ -33117,7 +33117,7 @@ func (c *InstancesAddResourcePoliciesCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.addResourcePolicies" call. @@ -33327,7 +33327,7 @@ func (c *InstancesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.aggregatedList" call. @@ -33485,7 +33485,7 @@ func (c *InstancesAttachDiskCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.attachDisk" call. @@ -33606,7 +33606,7 @@ func (c *InstancesBulkInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.bulkInsert" call. @@ -33725,7 +33725,7 @@ func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.delete" call. @@ -33848,7 +33848,7 @@ func (c *InstancesDeleteAccessConfigCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.deleteAccessConfig" call. @@ -33969,7 +33969,7 @@ func (c *InstancesDetachDiskCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.detachDisk" call. @@ -34098,7 +34098,7 @@ func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.get" call. @@ -34217,7 +34217,7 @@ func (c *InstancesGetEffectiveFirewallsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getEffectiveFirewalls" call. @@ -34347,7 +34347,7 @@ func (c *InstancesGetGuestAttributesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getGuestAttributes" call. @@ -34471,7 +34471,7 @@ func (c *InstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getIamPolicy" call. @@ -34594,7 +34594,7 @@ func (c *InstancesGetPartnerMetadataCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getPartnerMetadata" call. @@ -34710,7 +34710,7 @@ func (c *InstancesGetScreenshotCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getScreenshot" call. @@ -34850,7 +34850,7 @@ func (c *InstancesGetSerialPortOutputCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getSerialPortOutput" call. @@ -34967,7 +34967,7 @@ func (c *InstancesGetShieldedInstanceIdentityCall) doRequest(alt string) (*http. "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getShieldedInstanceIdentity" call. @@ -35083,7 +35083,7 @@ func (c *InstancesGetShieldedVmIdentityCall) doRequest(alt string) (*http.Respon "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getShieldedVmIdentity" call. @@ -35231,7 +35231,7 @@ func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.insert" call. @@ -35434,7 +35434,7 @@ func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.list" call. @@ -35653,7 +35653,7 @@ func (c *InstancesListReferrersCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.listReferrers" call. @@ -35799,7 +35799,7 @@ func (c *InstancesPatchPartnerMetadataCall) doRequest(alt string) (*http.Respons "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.patchPartnerMetadata" call. @@ -35917,7 +35917,7 @@ func (c *InstancesPerformMaintenanceCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.performMaintenance" call. @@ -36041,7 +36041,7 @@ func (c *InstancesRemoveResourcePoliciesCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.removeResourcePolicies" call. @@ -36160,7 +36160,7 @@ func (c *InstancesResetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.reset" call. @@ -36285,7 +36285,7 @@ func (c *InstancesResumeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.resume" call. @@ -36388,7 +36388,7 @@ func (c *InstancesSendDiagnosticInterruptCall) doRequest(alt string) (*http.Resp "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.sendDiagnosticInterrupt" call. @@ -36490,7 +36490,7 @@ func (c *InstancesSetDeletionProtectionCall) doRequest(alt string) (*http.Respon "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setDeletionProtection" call. @@ -36614,7 +36614,7 @@ func (c *InstancesSetDiskAutoDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setDiskAutoDelete" call. @@ -36724,7 +36724,7 @@ func (c *InstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setIamPolicy" call. @@ -36849,7 +36849,7 @@ func (c *InstancesSetLabelsCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setLabels" call. @@ -36974,7 +36974,7 @@ func (c *InstancesSetMachineResourcesCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMachineResources" call. @@ -37099,7 +37099,7 @@ func (c *InstancesSetMachineTypeCall) doRequest(alt string) (*http.Response, err "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMachineType" call. @@ -37224,7 +37224,7 @@ func (c *InstancesSetMetadataCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMetadata" call. @@ -37350,7 +37350,7 @@ func (c *InstancesSetMinCpuPlatformCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMinCpuPlatform" call. @@ -37474,7 +37474,7 @@ func (c *InstancesSetNameCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setName" call. @@ -37602,7 +37602,7 @@ func (c *InstancesSetSchedulingCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setScheduling" call. @@ -37728,7 +37728,7 @@ func (c *InstancesSetSecurityPolicyCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setSecurityPolicy" call. @@ -37854,7 +37854,7 @@ func (c *InstancesSetServiceAccountCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setServiceAccount" call. @@ -37981,7 +37981,7 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) doRequest(alt string) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setShieldedInstanceIntegrityPolicy" call. @@ -38108,7 +38108,7 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) doRequest(alt string) (*http "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setShieldedVmIntegrityPolicy" call. @@ -38233,7 +38233,7 @@ func (c *InstancesSetTagsCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setTags" call. @@ -38360,7 +38360,7 @@ func (c *InstancesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Res "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.simulateMaintenanceEvent" call. @@ -38479,7 +38479,7 @@ func (c *InstancesStartCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.start" call. @@ -38604,7 +38604,7 @@ func (c *InstancesStartWithEncryptionKeyCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.startWithEncryptionKey" call. @@ -38736,7 +38736,7 @@ func (c *InstancesStopCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.stop" call. @@ -38869,7 +38869,7 @@ func (c *InstancesSuspendCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.suspend" call. @@ -38979,7 +38979,7 @@ func (c *InstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.testIamPermissions" call. @@ -39140,7 +39140,7 @@ func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.update" call. @@ -39270,7 +39270,7 @@ func (c *InstancesUpdateAccessConfigCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateAccessConfig" call. @@ -39396,7 +39396,7 @@ func (c *InstancesUpdateDisplayDeviceCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateDisplayDevice" call. @@ -39526,7 +39526,7 @@ func (c *InstancesUpdateNetworkInterfaceCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateNetworkInterface" call. @@ -39653,7 +39653,7 @@ func (c *InstancesUpdateShieldedInstanceConfigCall) doRequest(alt string) (*http "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateShieldedInstanceConfig" call. @@ -39779,7 +39779,7 @@ func (c *InstancesUpdateShieldedVmConfigCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateShieldedVmConfig" call. @@ -39987,7 +39987,7 @@ func (c *InstantSnapshotsAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.aggregatedList" call. @@ -40132,7 +40132,7 @@ func (c *InstantSnapshotsDeleteCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.delete" call. @@ -40247,7 +40247,7 @@ func (c *InstantSnapshotsGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.get" call. @@ -40371,7 +40371,7 @@ func (c *InstantSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.getIamPolicy" call. @@ -40491,7 +40491,7 @@ func (c *InstantSnapshotsInsertCall) doRequest(alt string) (*http.Response, erro "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.insert" call. @@ -40681,7 +40681,7 @@ func (c *InstantSnapshotsListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.list" call. @@ -40813,7 +40813,7 @@ func (c *InstantSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.setIamPolicy" call. @@ -40938,7 +40938,7 @@ func (c *InstantSnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.setLabels" call. @@ -41048,7 +41048,7 @@ func (c *InstantSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Re "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.testIamPermissions" call. @@ -41257,7 +41257,7 @@ func (c *InterconnectAttachmentsAggregatedListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.aggregatedList" call. @@ -41397,7 +41397,7 @@ func (c *InterconnectAttachmentsDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "interconnectAttachment": c.interconnectAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.delete" call. @@ -41512,7 +41512,7 @@ func (c *InterconnectAttachmentsGetCall) doRequest(alt string) (*http.Response, "region": c.region, "interconnectAttachment": c.interconnectAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.get" call. @@ -41641,7 +41641,7 @@ func (c *InterconnectAttachmentsInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.insert" call. @@ -41831,7 +41831,7 @@ func (c *InterconnectAttachmentsListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.list" call. @@ -41979,7 +41979,7 @@ func (c *InterconnectAttachmentsPatchCall) doRequest(alt string) (*http.Response "region": c.region, "interconnectAttachment": c.interconnectAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.patch" call. @@ -42104,7 +42104,7 @@ func (c *InterconnectAttachmentsSetLabelsCall) doRequest(alt string) (*http.Resp "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.setLabels" call. @@ -42214,7 +42214,7 @@ func (c *InterconnectAttachmentsTestIamPermissionsCall) doRequest(alt string) (* "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.testIamPermissions" call. @@ -42327,7 +42327,7 @@ func (c *InterconnectLocationsGetCall) doRequest(alt string) (*http.Response, er "project": c.project, "interconnectLocation": c.interconnectLocation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectLocations.get" call. @@ -42514,7 +42514,7 @@ func (c *InterconnectLocationsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectLocations.list" call. @@ -42650,7 +42650,7 @@ func (c *InterconnectRemoteLocationsGetCall) doRequest(alt string) (*http.Respon "project": c.project, "interconnectRemoteLocation": c.interconnectRemoteLocation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectRemoteLocations.get" call. @@ -42837,7 +42837,7 @@ func (c *InterconnectRemoteLocationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectRemoteLocations.list" call. @@ -42973,7 +42973,7 @@ func (c *InterconnectsDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.delete" call. @@ -43085,7 +43085,7 @@ func (c *InterconnectsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.get" call. @@ -43200,7 +43200,7 @@ func (c *InterconnectsGetDiagnosticsCall) doRequest(alt string) (*http.Response, "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.getDiagnostics" call. @@ -43313,7 +43313,7 @@ func (c *InterconnectsGetMacsecConfigCall) doRequest(alt string) (*http.Response "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.getMacsecConfig" call. @@ -43431,7 +43431,7 @@ func (c *InterconnectsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.insert" call. @@ -43617,7 +43617,7 @@ func (c *InterconnectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.list" call. @@ -43761,7 +43761,7 @@ func (c *InterconnectsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.patch" call. @@ -43867,7 +43867,7 @@ func (c *InterconnectsSetLabelsCall) doRequest(alt string) (*http.Response, erro "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.setLabels" call. @@ -43973,7 +43973,7 @@ func (c *InterconnectsTestIamPermissionsCall) doRequest(alt string) (*http.Respo "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.testIamPermissions" call. @@ -44088,7 +44088,7 @@ func (c *LicenseCodesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "licenseCode": c.licenseCode, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenseCodes.get" call. @@ -44195,7 +44195,7 @@ func (c *LicenseCodesTestIamPermissionsCall) doRequest(alt string) (*http.Respon "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenseCodes.testIamPermissions" call. @@ -44312,7 +44312,7 @@ func (c *LicensesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "license": c.license, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.delete" call. @@ -44425,7 +44425,7 @@ func (c *LicensesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "license": c.license, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.get" call. @@ -44545,7 +44545,7 @@ func (c *LicensesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.getIamPolicy" call. @@ -44663,7 +44663,7 @@ func (c *LicensesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.insert" call. @@ -44854,7 +44854,7 @@ func (c *LicensesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.list" call. @@ -44983,7 +44983,7 @@ func (c *LicensesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.setIamPolicy" call. @@ -45090,7 +45090,7 @@ func (c *LicensesTestIamPermissionsCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.testIamPermissions" call. @@ -45206,7 +45206,7 @@ func (c *MachineImagesDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "machineImage": c.machineImage, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.delete" call. @@ -45317,7 +45317,7 @@ func (c *MachineImagesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "machineImage": c.machineImage, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.get" call. @@ -45436,7 +45436,7 @@ func (c *MachineImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.getIamPolicy" call. @@ -45562,7 +45562,7 @@ func (c *MachineImagesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.insert" call. @@ -45748,7 +45748,7 @@ func (c *MachineImagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.list" call. @@ -45876,7 +45876,7 @@ func (c *MachineImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.setIamPolicy" call. @@ -45982,7 +45982,7 @@ func (c *MachineImagesTestIamPermissionsCall) doRequest(alt string) (*http.Respo "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.testIamPermissions" call. @@ -46191,7 +46191,7 @@ func (c *MachineTypesAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineTypes.aggregatedList" call. @@ -46328,7 +46328,7 @@ func (c *MachineTypesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "machineType": c.machineType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineTypes.get" call. @@ -46517,7 +46517,7 @@ func (c *MachineTypesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineTypes.list" call. @@ -46748,7 +46748,7 @@ func (c *NetworkAttachmentsAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.aggregatedList" call. @@ -46889,7 +46889,7 @@ func (c *NetworkAttachmentsDeleteCall) doRequest(alt string) (*http.Response, er "region": c.region, "networkAttachment": c.networkAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.delete" call. @@ -47004,7 +47004,7 @@ func (c *NetworkAttachmentsGetCall) doRequest(alt string) (*http.Response, error "region": c.region, "networkAttachment": c.networkAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.get" call. @@ -47128,7 +47128,7 @@ func (c *NetworkAttachmentsGetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.getIamPolicy" call. @@ -47250,7 +47250,7 @@ func (c *NetworkAttachmentsInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.insert" call. @@ -47439,7 +47439,7 @@ func (c *NetworkAttachmentsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.list" call. @@ -47588,7 +47588,7 @@ func (c *NetworkAttachmentsPatchCall) doRequest(alt string) (*http.Response, err "region": c.region, "networkAttachment": c.networkAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.patch" call. @@ -47698,7 +47698,7 @@ func (c *NetworkAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.setIamPolicy" call. @@ -47808,7 +47808,7 @@ func (c *NetworkAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http. "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.testIamPermissions" call. @@ -48017,7 +48017,7 @@ func (c *NetworkEdgeSecurityServicesAggregatedListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.aggregatedList" call. @@ -48158,7 +48158,7 @@ func (c *NetworkEdgeSecurityServicesDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "networkEdgeSecurityService": c.networkEdgeSecurityService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.delete" call. @@ -48274,7 +48274,7 @@ func (c *NetworkEdgeSecurityServicesGetCall) doRequest(alt string) (*http.Respon "region": c.region, "networkEdgeSecurityService": c.networkEdgeSecurityService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.get" call. @@ -48403,7 +48403,7 @@ func (c *NetworkEdgeSecurityServicesInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.insert" call. @@ -48541,7 +48541,7 @@ func (c *NetworkEdgeSecurityServicesPatchCall) doRequest(alt string) (*http.Resp "region": c.region, "networkEdgeSecurityService": c.networkEdgeSecurityService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.patch" call. @@ -48749,7 +48749,7 @@ func (c *NetworkEndpointGroupsAggregatedListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.aggregatedList" call. @@ -48898,7 +48898,7 @@ func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt string) "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.attachNetworkEndpoints" call. @@ -49021,7 +49021,7 @@ func (c *NetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.delete" call. @@ -49148,7 +49148,7 @@ func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt string) "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.detachNetworkEndpoints" call. @@ -49265,7 +49265,7 @@ func (c *NetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.get" call. @@ -49388,7 +49388,7 @@ func (c *NetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.insert" call. @@ -49579,7 +49579,7 @@ func (c *NetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, e "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.list" call. @@ -49792,7 +49792,7 @@ func (c *NetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt string) (* "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.listNetworkEndpoints" call. @@ -49924,7 +49924,7 @@ func (c *NetworkEndpointGroupsTestIamPermissionsCall) doRequest(alt string) (*ht "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.testIamPermissions" call. @@ -50054,7 +50054,7 @@ func (c *NetworkFirewallPoliciesAddAssociationCall) doRequest(alt string) (*http "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.addAssociation" call. @@ -50191,7 +50191,7 @@ func (c *NetworkFirewallPoliciesAddPacketMirroringRuleCall) doRequest(alt string "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.addPacketMirroringRule" call. @@ -50327,7 +50327,7 @@ func (c *NetworkFirewallPoliciesAddRuleCall) doRequest(alt string) (*http.Respon "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.addRule" call. @@ -50448,7 +50448,7 @@ func (c *NetworkFirewallPoliciesCloneRulesCall) doRequest(alt string) (*http.Res "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.cloneRules" call. @@ -50562,7 +50562,7 @@ func (c *NetworkFirewallPoliciesDeleteCall) doRequest(alt string) (*http.Respons "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.delete" call. @@ -50673,7 +50673,7 @@ func (c *NetworkFirewallPoliciesGetCall) doRequest(alt string) (*http.Response, "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.get" call. @@ -50792,7 +50792,7 @@ func (c *NetworkFirewallPoliciesGetAssociationCall) doRequest(alt string) (*http "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getAssociation" call. @@ -50912,7 +50912,7 @@ func (c *NetworkFirewallPoliciesGetIamPolicyCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getIamPolicy" call. @@ -51032,7 +51032,7 @@ func (c *NetworkFirewallPoliciesGetPacketMirroringRuleCall) doRequest(alt string "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getPacketMirroringRule" call. @@ -51152,7 +51152,7 @@ func (c *NetworkFirewallPoliciesGetRuleCall) doRequest(alt string) (*http.Respon "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getRule" call. @@ -51270,7 +51270,7 @@ func (c *NetworkFirewallPoliciesInsertCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.insert" call. @@ -51456,7 +51456,7 @@ func (c *NetworkFirewallPoliciesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.list" call. @@ -51598,7 +51598,7 @@ func (c *NetworkFirewallPoliciesPatchCall) doRequest(alt string) (*http.Response "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.patch" call. @@ -51726,7 +51726,7 @@ func (c *NetworkFirewallPoliciesPatchPacketMirroringRuleCall) doRequest(alt stri "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.patchPacketMirroringRule" call. @@ -51853,7 +51853,7 @@ func (c *NetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*http.Resp "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.patchRule" call. @@ -51974,7 +51974,7 @@ func (c *NetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt string) (*h "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.removeAssociation" call. @@ -52096,7 +52096,7 @@ func (c *NetworkFirewallPoliciesRemovePacketMirroringRuleCall) doRequest(alt str "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.removePacketMirroringRule" call. @@ -52217,7 +52217,7 @@ func (c *NetworkFirewallPoliciesRemoveRuleCall) doRequest(alt string) (*http.Res "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.removeRule" call. @@ -52323,7 +52323,7 @@ func (c *NetworkFirewallPoliciesSetIamPolicyCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.setIamPolicy" call. @@ -52429,7 +52429,7 @@ func (c *NetworkFirewallPoliciesTestIamPermissionsCall) doRequest(alt string) (* "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.testIamPermissions" call. @@ -52550,7 +52550,7 @@ func (c *NetworksAddPeeringCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.addPeering" call. @@ -52664,7 +52664,7 @@ func (c *NetworksDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.delete" call. @@ -52775,7 +52775,7 @@ func (c *NetworksGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.get" call. @@ -52886,7 +52886,7 @@ func (c *NetworksGetEffectiveFirewallsCall) doRequest(alt string) (*http.Respons "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.getEffectiveFirewalls" call. @@ -53004,7 +53004,7 @@ func (c *NetworksInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.insert" call. @@ -53189,7 +53189,7 @@ func (c *NetworksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.list" call. @@ -53427,7 +53427,7 @@ func (c *NetworksListPeeringRoutesCall) doRequest(alt string) (*http.Response, e "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.listPeeringRoutes" call. @@ -53570,7 +53570,7 @@ func (c *NetworksPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.patch" call. @@ -53690,7 +53690,7 @@ func (c *NetworksRemovePeeringCall) doRequest(alt string) (*http.Response, error "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.removePeering" call. @@ -53805,7 +53805,7 @@ func (c *NetworksSwitchToCustomModeCall) doRequest(alt string) (*http.Response, "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.switchToCustomMode" call. @@ -53911,7 +53911,7 @@ func (c *NetworksTestIamPermissionsCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.testIamPermissions" call. @@ -54035,7 +54035,7 @@ func (c *NetworksUpdatePeeringCall) doRequest(alt string) (*http.Response, error "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.updatePeering" call. @@ -54159,7 +54159,7 @@ func (c *NodeGroupsAddNodesCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.addNodes" call. @@ -54368,7 +54368,7 @@ func (c *NodeGroupsAggregatedListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.aggregatedList" call. @@ -54508,7 +54508,7 @@ func (c *NodeGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.delete" call. @@ -54632,7 +54632,7 @@ func (c *NodeGroupsDeleteNodesCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.deleteNodes" call. @@ -54749,7 +54749,7 @@ func (c *NodeGroupsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.get" call. @@ -54872,7 +54872,7 @@ func (c *NodeGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.getIamPolicy" call. @@ -54995,7 +54995,7 @@ func (c *NodeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.insert" call. @@ -55185,7 +55185,7 @@ func (c *NodeGroupsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.list" call. @@ -55387,7 +55387,7 @@ func (c *NodeGroupsListNodesCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.listNodes" call. @@ -55533,7 +55533,7 @@ func (c *NodeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.patch" call. @@ -55658,7 +55658,7 @@ func (c *NodeGroupsPerformMaintenanceCall) doRequest(alt string) (*http.Response "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.performMaintenance" call. @@ -55768,7 +55768,7 @@ func (c *NodeGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.setIamPolicy" call. @@ -55892,7 +55892,7 @@ func (c *NodeGroupsSetNodeTemplateCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.setNodeTemplate" call. @@ -56018,7 +56018,7 @@ func (c *NodeGroupsSimulateMaintenanceEventCall) doRequest(alt string) (*http.Re "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.simulateMaintenanceEvent" call. @@ -56128,7 +56128,7 @@ func (c *NodeGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.testIamPermissions" call. @@ -56337,7 +56337,7 @@ func (c *NodeTemplatesAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.aggregatedList" call. @@ -56477,7 +56477,7 @@ func (c *NodeTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) "region": c.region, "nodeTemplate": c.nodeTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.delete" call. @@ -56592,7 +56592,7 @@ func (c *NodeTemplatesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "nodeTemplate": c.nodeTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.get" call. @@ -56715,7 +56715,7 @@ func (c *NodeTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, e "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.getIamPolicy" call. @@ -56836,7 +56836,7 @@ func (c *NodeTemplatesInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.insert" call. @@ -57025,7 +57025,7 @@ func (c *NodeTemplatesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.list" call. @@ -57157,7 +57157,7 @@ func (c *NodeTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, e "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.setIamPolicy" call. @@ -57267,7 +57267,7 @@ func (c *NodeTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Respo "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.testIamPermissions" call. @@ -57476,7 +57476,7 @@ func (c *NodeTypesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTypes.aggregatedList" call. @@ -57613,7 +57613,7 @@ func (c *NodeTypesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeType": c.nodeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTypes.get" call. @@ -57802,7 +57802,7 @@ func (c *NodeTypesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTypes.list" call. @@ -57948,7 +57948,7 @@ func (c *OrganizationSecurityPoliciesAddAssociationCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.addAssociation" call. @@ -58064,7 +58064,7 @@ func (c *OrganizationSecurityPoliciesAddRuleCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.addRule" call. @@ -58181,7 +58181,7 @@ func (c *OrganizationSecurityPoliciesCopyRulesCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.copyRules" call. @@ -58291,7 +58291,7 @@ func (c *OrganizationSecurityPoliciesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.delete" call. @@ -58398,7 +58398,7 @@ func (c *OrganizationSecurityPoliciesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.get" call. @@ -58513,7 +58513,7 @@ func (c *OrganizationSecurityPoliciesGetAssociationCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.getAssociation" call. @@ -58629,7 +58629,7 @@ func (c *OrganizationSecurityPoliciesGetRuleCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.getRule" call. @@ -58748,7 +58748,7 @@ func (c *OrganizationSecurityPoliciesInsertCall) doRequest(alt string) (*http.Re return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.insert" call. @@ -58933,7 +58933,7 @@ func (c *OrganizationSecurityPoliciesListCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.list" call. @@ -59063,7 +59063,7 @@ func (c *OrganizationSecurityPoliciesListAssociationsCall) doRequest(alt string) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.listAssociations" call. @@ -59181,7 +59181,7 @@ func (c *OrganizationSecurityPoliciesMoveCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.move" call. @@ -59297,7 +59297,7 @@ func (c *OrganizationSecurityPoliciesPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.patch" call. @@ -59420,7 +59420,7 @@ func (c *OrganizationSecurityPoliciesPatchRuleCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.patchRule" call. @@ -59537,7 +59537,7 @@ func (c *OrganizationSecurityPoliciesRemoveAssociationCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.removeAssociation" call. @@ -59654,7 +59654,7 @@ func (c *OrganizationSecurityPoliciesRemoveRuleCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.organizationSecurityPolicies.removeRule" call. @@ -59862,7 +59862,7 @@ func (c *PacketMirroringsAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.aggregatedList" call. @@ -60002,7 +60002,7 @@ func (c *PacketMirroringsDeleteCall) doRequest(alt string) (*http.Response, erro "region": c.region, "packetMirroring": c.packetMirroring, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.delete" call. @@ -60117,7 +60117,7 @@ func (c *PacketMirroringsGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "packetMirroring": c.packetMirroring, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.get" call. @@ -60239,7 +60239,7 @@ func (c *PacketMirroringsInsertCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.insert" call. @@ -60429,7 +60429,7 @@ func (c *PacketMirroringsListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.list" call. @@ -60577,7 +60577,7 @@ func (c *PacketMirroringsPatchCall) doRequest(alt string) (*http.Response, error "region": c.region, "packetMirroring": c.packetMirroring, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.patch" call. @@ -60687,7 +60687,7 @@ func (c *PacketMirroringsTestIamPermissionsCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.testIamPermissions" call. @@ -60798,7 +60798,7 @@ func (c *ProjectsDisableXpnHostCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.disableXpnHost" call. @@ -60915,7 +60915,7 @@ func (c *ProjectsDisableXpnResourceCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.disableXpnResource" call. @@ -61025,7 +61025,7 @@ func (c *ProjectsEnableXpnHostCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.enableXpnHost" call. @@ -61143,7 +61143,7 @@ func (c *ProjectsEnableXpnResourceCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.enableXpnResource" call. @@ -61256,7 +61256,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.get" call. @@ -61364,7 +61364,7 @@ func (c *ProjectsGetXpnHostCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.getXpnHost" call. @@ -61550,7 +61550,7 @@ func (c *ProjectsGetXpnResourcesCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.getXpnResources" call. @@ -61752,7 +61752,7 @@ func (c *ProjectsListXpnHostsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.listXpnHosts" call. @@ -61889,7 +61889,7 @@ func (c *ProjectsMoveDiskCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.moveDisk" call. @@ -62011,7 +62011,7 @@ func (c *ProjectsMoveInstanceCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.moveInstance" call. @@ -62130,7 +62130,7 @@ func (c *ProjectsSetCloudArmorTierCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setCloudArmorTier" call. @@ -62247,7 +62247,7 @@ func (c *ProjectsSetCommonInstanceMetadataCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setCommonInstanceMetadata" call. @@ -62365,7 +62365,7 @@ func (c *ProjectsSetDefaultNetworkTierCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setDefaultNetworkTier" call. @@ -62484,7 +62484,7 @@ func (c *ProjectsSetManagedProtectionTierCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setManagedProtectionTier" call. @@ -62602,7 +62602,7 @@ func (c *ProjectsSetUsageExportBucketCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setUsageExportBucket" call. @@ -62717,7 +62717,7 @@ func (c *PublicAdvertisedPrefixesAnnounceCall) doRequest(alt string) (*http.Resp "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.announce" call. @@ -62832,7 +62832,7 @@ func (c *PublicAdvertisedPrefixesDeleteCall) doRequest(alt string) (*http.Respon "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.delete" call. @@ -62944,7 +62944,7 @@ func (c *PublicAdvertisedPrefixesGetCall) doRequest(alt string) (*http.Response, "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.get" call. @@ -63062,7 +63062,7 @@ func (c *PublicAdvertisedPrefixesInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.insert" call. @@ -63247,7 +63247,7 @@ func (c *PublicAdvertisedPrefixesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.list" call. @@ -63392,7 +63392,7 @@ func (c *PublicAdvertisedPrefixesPatchCall) doRequest(alt string) (*http.Respons "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.patch" call. @@ -63507,7 +63507,7 @@ func (c *PublicAdvertisedPrefixesWithdrawCall) doRequest(alt string) (*http.Resp "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.withdraw" call. @@ -63715,7 +63715,7 @@ func (c *PublicDelegatedPrefixesAggregatedListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.aggregatedList" call. @@ -63857,7 +63857,7 @@ func (c *PublicDelegatedPrefixesAnnounceCall) doRequest(alt string) (*http.Respo "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.announce" call. @@ -63976,7 +63976,7 @@ func (c *PublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.delete" call. @@ -64093,7 +64093,7 @@ func (c *PublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.get" call. @@ -64215,7 +64215,7 @@ func (c *PublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.insert" call. @@ -64404,7 +64404,7 @@ func (c *PublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.list" call. @@ -64553,7 +64553,7 @@ func (c *PublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Response "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.patch" call. @@ -64673,7 +64673,7 @@ func (c *PublicDelegatedPrefixesWithdrawCall) doRequest(alt string) (*http.Respo "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.withdraw" call. diff --git a/compute/v0.beta/compute3-gen.go b/compute/v0.beta/compute3-gen.go index 8ef614c2273..61a012eca3b 100644 --- a/compute/v0.beta/compute3-gen.go +++ b/compute/v0.beta/compute3-gen.go @@ -94,7 +94,7 @@ func (c *RegionAutoscalersDeleteCall) doRequest(alt string) (*http.Response, err "region": c.region, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.delete" call. @@ -209,7 +209,7 @@ func (c *RegionAutoscalersGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.get" call. @@ -330,7 +330,7 @@ func (c *RegionAutoscalersInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.insert" call. @@ -519,7 +519,7 @@ func (c *RegionAutoscalersListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.list" call. @@ -670,7 +670,7 @@ func (c *RegionAutoscalersPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.patch" call. @@ -780,7 +780,7 @@ func (c *RegionAutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.R "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.testIamPermissions" call. @@ -909,7 +909,7 @@ func (c *RegionAutoscalersUpdateCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.update" call. @@ -1027,7 +1027,7 @@ func (c *RegionBackendServicesDeleteCall) doRequest(alt string) (*http.Response, "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.delete" call. @@ -1142,7 +1142,7 @@ func (c *RegionBackendServicesGetCall) doRequest(alt string) (*http.Response, er "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.get" call. @@ -1253,7 +1253,7 @@ func (c *RegionBackendServicesGetHealthCall) doRequest(alt string) (*http.Respon "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.getHealth" call. @@ -1377,7 +1377,7 @@ func (c *RegionBackendServicesGetIamPolicyCall) doRequest(alt string) (*http.Res "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.getIamPolicy" call. @@ -1499,7 +1499,7 @@ func (c *RegionBackendServicesInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.insert" call. @@ -1689,7 +1689,7 @@ func (c *RegionBackendServicesListCall) doRequest(alt string) (*http.Response, e "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.list" call. @@ -1902,7 +1902,7 @@ func (c *RegionBackendServicesListUsableCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.listUsable" call. @@ -2051,7 +2051,7 @@ func (c *RegionBackendServicesPatchCall) doRequest(alt string) (*http.Response, "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.patch" call. @@ -2161,7 +2161,7 @@ func (c *RegionBackendServicesSetIamPolicyCall) doRequest(alt string) (*http.Res "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.setIamPolicy" call. @@ -2288,7 +2288,7 @@ func (c *RegionBackendServicesSetSecurityPolicyCall) doRequest(alt string) (*htt "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.setSecurityPolicy" call. @@ -2398,7 +2398,7 @@ func (c *RegionBackendServicesTestIamPermissionsCall) doRequest(alt string) (*ht "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.testIamPermissions" call. @@ -2525,7 +2525,7 @@ func (c *RegionBackendServicesUpdateCall) doRequest(alt string) (*http.Response, "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.update" call. @@ -2733,7 +2733,7 @@ func (c *RegionCommitmentsAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.aggregatedList" call. @@ -2870,7 +2870,7 @@ func (c *RegionCommitmentsGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "commitment": c.commitment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.get" call. @@ -2991,7 +2991,7 @@ func (c *RegionCommitmentsInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.insert" call. @@ -3180,7 +3180,7 @@ func (c *RegionCommitmentsListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.list" call. @@ -3311,7 +3311,7 @@ func (c *RegionCommitmentsTestIamPermissionsCall) doRequest(alt string) (*http.R "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.testIamPermissions" call. @@ -3451,7 +3451,7 @@ func (c *RegionCommitmentsUpdateCall) doRequest(alt string) (*http.Response, err "region": c.region, "commitment": c.commitment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.update" call. @@ -3577,7 +3577,7 @@ func (c *RegionCommitmentsUpdateReservationsCall) doRequest(alt string) (*http.R "region": c.region, "commitment": c.commitment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.updateReservations" call. @@ -3692,7 +3692,7 @@ func (c *RegionDiskTypesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "diskType": c.diskType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDiskTypes.get" call. @@ -3882,7 +3882,7 @@ func (c *RegionDiskTypesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDiskTypes.list" call. @@ -4030,7 +4030,7 @@ func (c *RegionDisksAddResourcePoliciesCall) doRequest(alt string) (*http.Respon "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.addResourcePolicies" call. @@ -4150,7 +4150,7 @@ func (c *RegionDisksBulkInsertCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.bulkInsert" call. @@ -4277,7 +4277,7 @@ func (c *RegionDisksCreateSnapshotCall) doRequest(alt string) (*http.Response, e "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.createSnapshot" call. @@ -4398,7 +4398,7 @@ func (c *RegionDisksDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.delete" call. @@ -4513,7 +4513,7 @@ func (c *RegionDisksGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.get" call. @@ -4636,7 +4636,7 @@ func (c *RegionDisksGetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.getIamPolicy" call. @@ -4764,7 +4764,7 @@ func (c *RegionDisksInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.insert" call. @@ -4954,7 +4954,7 @@ func (c *RegionDisksListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.list" call. @@ -5099,7 +5099,7 @@ func (c *RegionDisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Res "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.removeResourcePolicies" call. @@ -5223,7 +5223,7 @@ func (c *RegionDisksResizeCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.resize" call. @@ -5333,7 +5333,7 @@ func (c *RegionDisksSetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.setIamPolicy" call. @@ -5457,7 +5457,7 @@ func (c *RegionDisksSetLabelsCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.setLabels" call. @@ -5582,7 +5582,7 @@ func (c *RegionDisksStartAsyncReplicationCall) doRequest(alt string) (*http.Resp "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.startAsyncReplication" call. @@ -5701,7 +5701,7 @@ func (c *RegionDisksStopAsyncReplicationCall) doRequest(alt string) (*http.Respo "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.stopAsyncReplication" call. @@ -5823,7 +5823,7 @@ func (c *RegionDisksStopGroupAsyncReplicationCall) doRequest(alt string) (*http. "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.stopGroupAsyncReplication" call. @@ -5933,7 +5933,7 @@ func (c *RegionDisksTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.testIamPermissions" call. @@ -6073,7 +6073,7 @@ func (c *RegionDisksUpdateCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.update" call. @@ -6192,7 +6192,7 @@ func (c *RegionHealthCheckServicesDeleteCall) doRequest(alt string) (*http.Respo "region": c.region, "healthCheckService": c.healthCheckService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.delete" call. @@ -6308,7 +6308,7 @@ func (c *RegionHealthCheckServicesGetCall) doRequest(alt string) (*http.Response "region": c.region, "healthCheckService": c.healthCheckService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.get" call. @@ -6430,7 +6430,7 @@ func (c *RegionHealthCheckServicesInsertCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.insert" call. @@ -6620,7 +6620,7 @@ func (c *RegionHealthCheckServicesListCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.list" call. @@ -6769,7 +6769,7 @@ func (c *RegionHealthCheckServicesPatchCall) doRequest(alt string) (*http.Respon "region": c.region, "healthCheckService": c.healthCheckService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.patch" call. @@ -6879,7 +6879,7 @@ func (c *RegionHealthCheckServicesTestIamPermissionsCall) doRequest(alt string) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.testIamPermissions" call. @@ -6998,7 +6998,7 @@ func (c *RegionHealthChecksDeleteCall) doRequest(alt string) (*http.Response, er "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.delete" call. @@ -7113,7 +7113,7 @@ func (c *RegionHealthChecksGetCall) doRequest(alt string) (*http.Response, error "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.get" call. @@ -7234,7 +7234,7 @@ func (c *RegionHealthChecksInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.insert" call. @@ -7424,7 +7424,7 @@ func (c *RegionHealthChecksListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.list" call. @@ -7572,7 +7572,7 @@ func (c *RegionHealthChecksPatchCall) doRequest(alt string) (*http.Response, err "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.patch" call. @@ -7682,7 +7682,7 @@ func (c *RegionHealthChecksTestIamPermissionsCall) doRequest(alt string) (*http. "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.testIamPermissions" call. @@ -7808,7 +7808,7 @@ func (c *RegionHealthChecksUpdateCall) doRequest(alt string) (*http.Response, er "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.update" call. @@ -7943,7 +7943,7 @@ func (c *RegionInstanceGroupManagersAbandonInstancesCall) doRequest(alt string) "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.abandonInstances" call. @@ -8055,7 +8055,7 @@ func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt s "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.applyUpdatesToInstances" call. @@ -8185,7 +8185,7 @@ func (c *RegionInstanceGroupManagersCreateInstancesCall) doRequest(alt string) ( "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.createInstances" call. @@ -8304,7 +8304,7 @@ func (c *RegionInstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.delete" call. @@ -8438,7 +8438,7 @@ func (c *RegionInstanceGroupManagersDeleteInstancesCall) doRequest(alt string) ( "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.deleteInstances" call. @@ -8550,7 +8550,7 @@ func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.deletePerInstanceConfigs" call. @@ -8665,7 +8665,7 @@ func (c *RegionInstanceGroupManagersGetCall) doRequest(alt string) (*http.Respon "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.get" call. @@ -8792,7 +8792,7 @@ func (c *RegionInstanceGroupManagersInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.insert" call. @@ -8982,7 +8982,7 @@ func (c *RegionInstanceGroupManagersListCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.list" call. @@ -9203,7 +9203,7 @@ func (c *RegionInstanceGroupManagersListErrorsCall) doRequest(alt string) (*http "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.listErrors" call. @@ -9411,7 +9411,7 @@ func (c *RegionInstanceGroupManagersListManagedInstancesCall) doRequest(alt stri "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.listManagedInstances" call. @@ -9618,7 +9618,7 @@ func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt st "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.listPerInstanceConfigs" call. @@ -9773,7 +9773,7 @@ func (c *RegionInstanceGroupManagersPatchCall) doRequest(alt string) (*http.Resp "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.patch" call. @@ -9901,7 +9901,7 @@ func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt s "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.patchPerInstanceConfigs" call. @@ -10034,7 +10034,7 @@ func (c *RegionInstanceGroupManagersRecreateInstancesCall) doRequest(alt string) "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.recreateInstances" call. @@ -10164,7 +10164,7 @@ func (c *RegionInstanceGroupManagersResizeCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.resize" call. @@ -10300,7 +10300,7 @@ func (c *RegionInstanceGroupManagersResizeAdvancedCall) doRequest(alt string) (* "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.resizeAdvanced" call. @@ -10436,7 +10436,7 @@ func (c *RegionInstanceGroupManagersResumeInstancesCall) doRequest(alt string) ( "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.resumeInstances" call. @@ -10562,7 +10562,7 @@ func (c *RegionInstanceGroupManagersSetAutoHealingPoliciesCall) doRequest(alt st "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.setAutoHealingPolicies" call. @@ -10688,7 +10688,7 @@ func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) doRequest(alt strin "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.setInstanceTemplate" call. @@ -10813,7 +10813,7 @@ func (c *RegionInstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (* "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.setTargetPools" call. @@ -10948,7 +10948,7 @@ func (c *RegionInstanceGroupManagersStartInstancesCall) doRequest(alt string) (* "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.startInstances" call. @@ -11089,7 +11089,7 @@ func (c *RegionInstanceGroupManagersStopInstancesCall) doRequest(alt string) (*h "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.stopInstances" call. @@ -11231,7 +11231,7 @@ func (c *RegionInstanceGroupManagersSuspendInstancesCall) doRequest(alt string) "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.suspendInstances" call. @@ -11341,7 +11341,7 @@ func (c *RegionInstanceGroupManagersTestIamPermissionsCall) doRequest(alt string "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.testIamPermissions" call. @@ -11474,7 +11474,7 @@ func (c *RegionInstanceGroupManagersUpdateCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.update" call. @@ -11602,7 +11602,7 @@ func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.updatePerInstanceConfigs" call. @@ -11717,7 +11717,7 @@ func (c *RegionInstanceGroupsGetCall) doRequest(alt string) (*http.Response, err "region": c.region, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.get" call. @@ -11907,7 +11907,7 @@ func (c *RegionInstanceGroupsListCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.list" call. @@ -12120,7 +12120,7 @@ func (c *RegionInstanceGroupsListInstancesCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.listInstances" call. @@ -12268,7 +12268,7 @@ func (c *RegionInstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.setNamedPorts" call. @@ -12378,7 +12378,7 @@ func (c *RegionInstanceGroupsTestIamPermissionsCall) doRequest(alt string) (*htt "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.testIamPermissions" call. @@ -12498,7 +12498,7 @@ func (c *RegionInstanceTemplatesDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.delete" call. @@ -12627,7 +12627,7 @@ func (c *RegionInstanceTemplatesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.get" call. @@ -12749,7 +12749,7 @@ func (c *RegionInstanceTemplatesInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.insert" call. @@ -12953,7 +12953,7 @@ func (c *RegionInstanceTemplatesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.list" call. @@ -13096,7 +13096,7 @@ func (c *RegionInstancesBulkInsertCall) doRequest(alt string) (*http.Response, e "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstances.bulkInsert" call. @@ -13219,7 +13219,7 @@ func (c *RegionInstantSnapshotsDeleteCall) doRequest(alt string) (*http.Response "region": c.region, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.delete" call. @@ -13334,7 +13334,7 @@ func (c *RegionInstantSnapshotsGetCall) doRequest(alt string) (*http.Response, e "region": c.region, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.get" call. @@ -13458,7 +13458,7 @@ func (c *RegionInstantSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.getIamPolicy" call. @@ -13578,7 +13578,7 @@ func (c *RegionInstantSnapshotsInsertCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.insert" call. @@ -13768,7 +13768,7 @@ func (c *RegionInstantSnapshotsListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.list" call. @@ -13900,7 +13900,7 @@ func (c *RegionInstantSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.setIamPolicy" call. @@ -14025,7 +14025,7 @@ func (c *RegionInstantSnapshotsSetLabelsCall) doRequest(alt string) (*http.Respo "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.setLabels" call. @@ -14135,7 +14135,7 @@ func (c *RegionInstantSnapshotsTestIamPermissionsCall) doRequest(alt string) (*h "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.testIamPermissions" call. @@ -14263,7 +14263,7 @@ func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt st "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.attachNetworkEndpoints" call. @@ -14384,7 +14384,7 @@ func (c *RegionNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.delete" call. @@ -14512,7 +14512,7 @@ func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt st "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.detachNetworkEndpoints" call. @@ -14629,7 +14629,7 @@ func (c *RegionNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Respon "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.get" call. @@ -14752,7 +14752,7 @@ func (c *RegionNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.insert" call. @@ -14943,7 +14943,7 @@ func (c *RegionNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.list" call. @@ -15150,7 +15150,7 @@ func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt stri "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.listNetworkEndpoints" call. @@ -15306,7 +15306,7 @@ func (c *RegionNetworkFirewallPoliciesAddAssociationCall) doRequest(alt string) "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.addAssociation" call. @@ -15446,7 +15446,7 @@ func (c *RegionNetworkFirewallPoliciesAddRuleCall) doRequest(alt string) (*http. "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.addRule" call. @@ -15571,7 +15571,7 @@ func (c *RegionNetworkFirewallPoliciesCloneRulesCall) doRequest(alt string) (*ht "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.cloneRules" call. @@ -15689,7 +15689,7 @@ func (c *RegionNetworkFirewallPoliciesDeleteCall) doRequest(alt string) (*http.R "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.delete" call. @@ -15804,7 +15804,7 @@ func (c *RegionNetworkFirewallPoliciesGetCall) doRequest(alt string) (*http.Resp "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.get" call. @@ -15927,7 +15927,7 @@ func (c *RegionNetworkFirewallPoliciesGetAssociationCall) doRequest(alt string) "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getAssociation" call. @@ -16041,7 +16041,7 @@ func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) doRequest(alt s "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getEffectiveFirewalls" call. @@ -16165,7 +16165,7 @@ func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) doRequest(alt string) (* "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getIamPolicy" call. @@ -16288,7 +16288,7 @@ func (c *RegionNetworkFirewallPoliciesGetRuleCall) doRequest(alt string) (*http. "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getRule" call. @@ -16410,7 +16410,7 @@ func (c *RegionNetworkFirewallPoliciesInsertCall) doRequest(alt string) (*http.R "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.insert" call. @@ -16600,7 +16600,7 @@ func (c *RegionNetworkFirewallPoliciesListCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.list" call. @@ -16746,7 +16746,7 @@ func (c *RegionNetworkFirewallPoliciesPatchCall) doRequest(alt string) (*http.Re "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.patch" call. @@ -16877,7 +16877,7 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*htt "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.patchRule" call. @@ -17003,7 +17003,7 @@ func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt strin "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.removeAssociation" call. @@ -17128,7 +17128,7 @@ func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) doRequest(alt string) (*ht "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.removeRule" call. @@ -17238,7 +17238,7 @@ func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) doRequest(alt string) (* "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.setIamPolicy" call. @@ -17348,7 +17348,7 @@ func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) doRequest(alt stri "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.testIamPermissions" call. @@ -17467,7 +17467,7 @@ func (c *RegionNotificationEndpointsDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "notificationEndpoint": c.notificationEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.delete" call. @@ -17583,7 +17583,7 @@ func (c *RegionNotificationEndpointsGetCall) doRequest(alt string) (*http.Respon "region": c.region, "notificationEndpoint": c.notificationEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.get" call. @@ -17705,7 +17705,7 @@ func (c *RegionNotificationEndpointsInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.insert" call. @@ -17894,7 +17894,7 @@ func (c *RegionNotificationEndpointsListCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.list" call. @@ -18026,7 +18026,7 @@ func (c *RegionNotificationEndpointsTestIamPermissionsCall) doRequest(alt string "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.testIamPermissions" call. @@ -18131,7 +18131,7 @@ func (c *RegionOperationsDeleteCall) doRequest(alt string) (*http.Response, erro "region": c.region, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.delete" call. @@ -18224,7 +18224,7 @@ func (c *RegionOperationsGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.get" call. @@ -18414,7 +18414,7 @@ func (c *RegionOperationsListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.list" call. @@ -18549,7 +18549,7 @@ func (c *RegionOperationsWaitCall) doRequest(alt string) (*http.Response, error) "region": c.region, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.wait" call. @@ -18665,7 +18665,7 @@ func (c *RegionSecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Respons "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.addRule" call. @@ -18783,7 +18783,7 @@ func (c *RegionSecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.delete" call. @@ -18898,7 +18898,7 @@ func (c *RegionSecurityPoliciesGetCall) doRequest(alt string) (*http.Response, e "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.get" call. @@ -19021,7 +19021,7 @@ func (c *RegionSecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Respons "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.getRule" call. @@ -19150,7 +19150,7 @@ func (c *RegionSecurityPoliciesInsertCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.insert" call. @@ -19340,7 +19340,7 @@ func (c *RegionSecurityPoliciesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.list" call. @@ -19497,7 +19497,7 @@ func (c *RegionSecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.patch" call. @@ -19628,7 +19628,7 @@ func (c *RegionSecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Respo "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.patchRule" call. @@ -19738,7 +19738,7 @@ func (c *RegionSecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Resp "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.removeRule" call. @@ -19856,7 +19856,7 @@ func (c *RegionSslCertificatesDeleteCall) doRequest(alt string) (*http.Response, "region": c.region, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.delete" call. @@ -19972,7 +19972,7 @@ func (c *RegionSslCertificatesGetCall) doRequest(alt string) (*http.Response, er "region": c.region, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.get" call. @@ -20093,7 +20093,7 @@ func (c *RegionSslCertificatesInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.insert" call. @@ -20283,7 +20283,7 @@ func (c *RegionSslCertificatesListCall) doRequest(alt string) (*http.Response, e "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.list" call. @@ -20415,7 +20415,7 @@ func (c *RegionSslCertificatesTestIamPermissionsCall) doRequest(alt string) (*ht "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.testIamPermissions" call. @@ -20537,7 +20537,7 @@ func (c *RegionSslPoliciesDeleteCall) doRequest(alt string) (*http.Response, err "region": c.region, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.delete" call. @@ -20653,7 +20653,7 @@ func (c *RegionSslPoliciesGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.get" call. @@ -20774,7 +20774,7 @@ func (c *RegionSslPoliciesInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.insert" call. @@ -20964,7 +20964,7 @@ func (c *RegionSslPoliciesListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.list" call. @@ -21176,7 +21176,7 @@ func (c *RegionSslPoliciesListAvailableFeaturesCall) doRequest(alt string) (*htt "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.listAvailableFeatures" call. @@ -21303,7 +21303,7 @@ func (c *RegionSslPoliciesPatchCall) doRequest(alt string) (*http.Response, erro "region": c.region, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.patch" call. @@ -21413,7 +21413,7 @@ func (c *RegionSslPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.R "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.testIamPermissions" call. @@ -21532,7 +21532,7 @@ func (c *RegionTargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.delete" call. @@ -21647,7 +21647,7 @@ func (c *RegionTargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.get" call. @@ -21769,7 +21769,7 @@ func (c *RegionTargetHttpProxiesInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.insert" call. @@ -21959,7 +21959,7 @@ func (c *RegionTargetHttpProxiesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.list" call. @@ -22105,7 +22105,7 @@ func (c *RegionTargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Resp "region": c.region, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.setUrlMap" call. @@ -22215,7 +22215,7 @@ func (c *RegionTargetHttpProxiesTestIamPermissionsCall) doRequest(alt string) (* "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.testIamPermissions" call. @@ -22334,7 +22334,7 @@ func (c *RegionTargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Respon "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.delete" call. @@ -22450,7 +22450,7 @@ func (c *RegionTargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.get" call. @@ -22572,7 +22572,7 @@ func (c *RegionTargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Respon "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.insert" call. @@ -22762,7 +22762,7 @@ func (c *RegionTargetHttpsProxiesListCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.list" call. @@ -22910,7 +22910,7 @@ func (c *RegionTargetHttpsProxiesPatchCall) doRequest(alt string) (*http.Respons "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.patch" call. @@ -23035,7 +23035,7 @@ func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) ( "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.setSslCertificates" call. @@ -23159,7 +23159,7 @@ func (c *RegionTargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Res "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.setUrlMap" call. @@ -23269,7 +23269,7 @@ func (c *RegionTargetHttpsProxiesTestIamPermissionsCall) doRequest(alt string) ( "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.testIamPermissions" call. @@ -23388,7 +23388,7 @@ func (c *RegionTargetTcpProxiesDeleteCall) doRequest(alt string) (*http.Response "region": c.region, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.delete" call. @@ -23503,7 +23503,7 @@ func (c *RegionTargetTcpProxiesGetCall) doRequest(alt string) (*http.Response, e "region": c.region, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.get" call. @@ -23624,7 +23624,7 @@ func (c *RegionTargetTcpProxiesInsertCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.insert" call. @@ -23814,7 +23814,7 @@ func (c *RegionTargetTcpProxiesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.list" call. @@ -23946,7 +23946,7 @@ func (c *RegionTargetTcpProxiesTestIamPermissionsCall) doRequest(alt string) (*h "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.testIamPermissions" call. @@ -24057,7 +24057,7 @@ func (c *RegionUrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.delete" call. @@ -24172,7 +24172,7 @@ func (c *RegionUrlMapsGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.get" call. @@ -24285,7 +24285,7 @@ func (c *RegionUrlMapsInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.insert" call. @@ -24403,7 +24403,7 @@ func (c *RegionUrlMapsInvalidateCacheCall) doRequest(alt string) (*http.Response "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.invalidateCache" call. @@ -24593,7 +24593,7 @@ func (c *RegionUrlMapsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.list" call. @@ -24732,7 +24732,7 @@ func (c *RegionUrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.patch" call. @@ -24842,7 +24842,7 @@ func (c *RegionUrlMapsTestIamPermissionsCall) doRequest(alt string) (*http.Respo "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.testIamPermissions" call. @@ -24960,7 +24960,7 @@ func (c *RegionUrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.update" call. @@ -25071,7 +25071,7 @@ func (c *RegionUrlMapsValidateCall) doRequest(alt string) (*http.Response, error "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.validate" call. @@ -25262,7 +25262,7 @@ func (c *RegionZonesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionZones.list" call. @@ -25406,7 +25406,7 @@ func (c *RegionsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regions.get" call. @@ -25604,7 +25604,7 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regions.list" call. @@ -25833,7 +25833,7 @@ func (c *ReservationsAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.aggregatedList" call. @@ -25973,7 +25973,7 @@ func (c *ReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.delete" call. @@ -26088,7 +26088,7 @@ func (c *ReservationsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.get" call. @@ -26211,7 +26211,7 @@ func (c *ReservationsGetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.getIamPolicy" call. @@ -26332,7 +26332,7 @@ func (c *ReservationsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.insert" call. @@ -26522,7 +26522,7 @@ func (c *ReservationsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.list" call. @@ -26669,7 +26669,7 @@ func (c *ReservationsResizeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.resize" call. @@ -26779,7 +26779,7 @@ func (c *ReservationsSetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.setIamPolicy" call. @@ -26889,7 +26889,7 @@ func (c *ReservationsTestIamPermissionsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.testIamPermissions" call. @@ -27027,7 +27027,7 @@ func (c *ReservationsUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.update" call. @@ -27235,7 +27235,7 @@ func (c *ResourcePoliciesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.aggregatedList" call. @@ -27375,7 +27375,7 @@ func (c *ResourcePoliciesDeleteCall) doRequest(alt string) (*http.Response, erro "region": c.region, "resourcePolicy": c.resourcePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.delete" call. @@ -27490,7 +27490,7 @@ func (c *ResourcePoliciesGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resourcePolicy": c.resourcePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.get" call. @@ -27613,7 +27613,7 @@ func (c *ResourcePoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.getIamPolicy" call. @@ -27733,7 +27733,7 @@ func (c *ResourcePoliciesInsertCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.insert" call. @@ -27923,7 +27923,7 @@ func (c *ResourcePoliciesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.list" call. @@ -28076,7 +28076,7 @@ func (c *ResourcePoliciesPatchCall) doRequest(alt string) (*http.Response, error "region": c.region, "resourcePolicy": c.resourcePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.patch" call. @@ -28186,7 +28186,7 @@ func (c *ResourcePoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.setIamPolicy" call. @@ -28296,7 +28296,7 @@ func (c *ResourcePoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.testIamPermissions" call. @@ -28505,7 +28505,7 @@ func (c *RoutersAggregatedListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.aggregatedList" call. @@ -28645,7 +28645,7 @@ func (c *RoutersDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.delete" call. @@ -28770,7 +28770,7 @@ func (c *RoutersDeleteRoutePolicyCall) doRequest(alt string) (*http.Response, er "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.deleteRoutePolicy" call. @@ -28885,7 +28885,7 @@ func (c *RoutersGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.get" call. @@ -29009,7 +29009,7 @@ func (c *RoutersGetNatIpInfoCall) doRequest(alt string) (*http.Response, error) "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getNatIpInfo" call. @@ -29213,7 +29213,7 @@ func (c *RoutersGetNatMappingInfoCall) doRequest(alt string) (*http.Response, er "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getNatMappingInfo" call. @@ -29358,7 +29358,7 @@ func (c *RoutersGetRoutePolicyCall) doRequest(alt string) (*http.Response, error "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getRoutePolicy" call. @@ -29474,7 +29474,7 @@ func (c *RoutersGetRouterStatusCall) doRequest(alt string) (*http.Response, erro "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getRouterStatus" call. @@ -29596,7 +29596,7 @@ func (c *RoutersInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.insert" call. @@ -29786,7 +29786,7 @@ func (c *RoutersListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.list" call. @@ -30049,7 +30049,7 @@ func (c *RoutersListBgpRoutesCall) doRequest(alt string) (*http.Response, error) "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.listBgpRoutes" call. @@ -30266,7 +30266,7 @@ func (c *RoutersListRoutePoliciesCall) doRequest(alt string) (*http.Response, er "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.listRoutePolicies" call. @@ -30414,7 +30414,7 @@ func (c *RoutersPatchCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.patch" call. @@ -30524,7 +30524,7 @@ func (c *RoutersPreviewCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.preview" call. @@ -30635,7 +30635,7 @@ func (c *RoutersTestIamPermissionsCall) doRequest(alt string) (*http.Response, e "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.testIamPermissions" call. @@ -30763,7 +30763,7 @@ func (c *RoutersUpdateCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.update" call. @@ -30887,7 +30887,7 @@ func (c *RoutersUpdateRoutePolicyCall) doRequest(alt string) (*http.Response, er "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.updateRoutePolicy" call. @@ -31001,7 +31001,7 @@ func (c *RoutesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "route": c.route, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.delete" call. @@ -31112,7 +31112,7 @@ func (c *RoutesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "route": c.route, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.get" call. @@ -31229,7 +31229,7 @@ func (c *RoutesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.insert" call. @@ -31415,7 +31415,7 @@ func (c *RoutesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.list" call. @@ -31542,7 +31542,7 @@ func (c *RoutesTestIamPermissionsCall) doRequest(alt string) (*http.Response, er "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.testIamPermissions" call. @@ -31655,7 +31655,7 @@ func (c *SecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Response, err "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.addRule" call. @@ -31863,7 +31863,7 @@ func (c *SecurityPoliciesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.aggregatedList" call. @@ -31999,7 +31999,7 @@ func (c *SecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.delete" call. @@ -32110,7 +32110,7 @@ func (c *SecurityPoliciesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.get" call. @@ -32229,7 +32229,7 @@ func (c *SecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Response, err "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.getRule" call. @@ -32354,7 +32354,7 @@ func (c *SecurityPoliciesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.insert" call. @@ -32540,7 +32540,7 @@ func (c *SecurityPoliciesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.list" call. @@ -32748,7 +32748,7 @@ func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.listPreconfiguredExpressionSets" call. @@ -32880,7 +32880,7 @@ func (c *SecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.patch" call. @@ -33007,7 +33007,7 @@ func (c *SecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, e "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.patchRule" call. @@ -33113,7 +33113,7 @@ func (c *SecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.removeRule" call. @@ -33219,7 +33219,7 @@ func (c *SecurityPoliciesSetLabelsCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.setLabels" call. @@ -33325,7 +33325,7 @@ func (c *SecurityPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Re "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.testIamPermissions" call. @@ -33535,7 +33535,7 @@ func (c *ServiceAttachmentsAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.aggregatedList" call. @@ -33675,7 +33675,7 @@ func (c *ServiceAttachmentsDeleteCall) doRequest(alt string) (*http.Response, er "region": c.region, "serviceAttachment": c.serviceAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.delete" call. @@ -33790,7 +33790,7 @@ func (c *ServiceAttachmentsGetCall) doRequest(alt string) (*http.Response, error "region": c.region, "serviceAttachment": c.serviceAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.get" call. @@ -33914,7 +33914,7 @@ func (c *ServiceAttachmentsGetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.getIamPolicy" call. @@ -34035,7 +34035,7 @@ func (c *ServiceAttachmentsInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.insert" call. @@ -34224,7 +34224,7 @@ func (c *ServiceAttachmentsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.list" call. @@ -34374,7 +34374,7 @@ func (c *ServiceAttachmentsPatchCall) doRequest(alt string) (*http.Response, err "region": c.region, "serviceAttachment": c.serviceAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.patch" call. @@ -34484,7 +34484,7 @@ func (c *ServiceAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.setIamPolicy" call. @@ -34594,7 +34594,7 @@ func (c *ServiceAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http. "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.testIamPermissions" call. @@ -34702,7 +34702,7 @@ func (c *SnapshotSettingsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshotSettings.get" call. @@ -34826,7 +34826,7 @@ func (c *SnapshotSettingsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshotSettings.patch" call. @@ -34944,7 +34944,7 @@ func (c *SnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "snapshot": c.snapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.delete" call. @@ -35055,7 +35055,7 @@ func (c *SnapshotsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "snapshot": c.snapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.get" call. @@ -35174,7 +35174,7 @@ func (c *SnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.getIamPolicy" call. @@ -35293,7 +35293,7 @@ func (c *SnapshotsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.insert" call. @@ -35479,7 +35479,7 @@ func (c *SnapshotsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.list" call. @@ -35606,7 +35606,7 @@ func (c *SnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.setIamPolicy" call. @@ -35712,7 +35712,7 @@ func (c *SnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.setLabels" call. @@ -35818,7 +35818,7 @@ func (c *SnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.testIamPermissions" call. @@ -36027,7 +36027,7 @@ func (c *SslCertificatesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.aggregatedList" call. @@ -36163,7 +36163,7 @@ func (c *SslCertificatesDeleteCall) doRequest(alt string) (*http.Response, error "project": c.project, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.delete" call. @@ -36274,7 +36274,7 @@ func (c *SslCertificatesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.get" call. @@ -36391,7 +36391,7 @@ func (c *SslCertificatesInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.insert" call. @@ -36577,7 +36577,7 @@ func (c *SslCertificatesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.list" call. @@ -36705,7 +36705,7 @@ func (c *SslCertificatesTestIamPermissionsCall) doRequest(alt string) (*http.Res "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.testIamPermissions" call. @@ -36914,7 +36914,7 @@ func (c *SslPoliciesAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.aggregatedList" call. @@ -37053,7 +37053,7 @@ func (c *SslPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.delete" call. @@ -37165,7 +37165,7 @@ func (c *SslPoliciesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.get" call. @@ -37281,7 +37281,7 @@ func (c *SslPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.insert" call. @@ -37467,7 +37467,7 @@ func (c *SslPoliciesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.list" call. @@ -37675,7 +37675,7 @@ func (c *SslPoliciesListAvailableFeaturesCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.listAvailableFeatures" call. @@ -37798,7 +37798,7 @@ func (c *SslPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.patch" call. @@ -37904,7 +37904,7 @@ func (c *SslPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.testIamPermissions" call. @@ -38113,7 +38113,7 @@ func (c *StoragePoolTypesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePoolTypes.aggregatedList" call. @@ -38250,7 +38250,7 @@ func (c *StoragePoolTypesGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "storagePoolType": c.storagePoolType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePoolTypes.get" call. @@ -38441,7 +38441,7 @@ func (c *StoragePoolTypesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePoolTypes.list" call. @@ -38671,7 +38671,7 @@ func (c *StoragePoolsAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.aggregatedList" call. @@ -38814,7 +38814,7 @@ func (c *StoragePoolsDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.delete" call. @@ -38930,7 +38930,7 @@ func (c *StoragePoolsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.get" call. @@ -39053,7 +39053,7 @@ func (c *StoragePoolsGetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.getIamPolicy" call. @@ -39174,7 +39174,7 @@ func (c *StoragePoolsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.insert" call. @@ -39363,7 +39363,7 @@ func (c *StoragePoolsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.list" call. @@ -39578,7 +39578,7 @@ func (c *StoragePoolsListDisksCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.listDisks" call. @@ -39710,7 +39710,7 @@ func (c *StoragePoolsSetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.setIamPolicy" call. @@ -39820,7 +39820,7 @@ func (c *StoragePoolsTestIamPermissionsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.testIamPermissions" call. @@ -39956,7 +39956,7 @@ func (c *StoragePoolsUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.update" call. @@ -40164,7 +40164,7 @@ func (c *SubnetworksAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.aggregatedList" call. @@ -40304,7 +40304,7 @@ func (c *SubnetworksDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.delete" call. @@ -40429,7 +40429,7 @@ func (c *SubnetworksExpandIpCidrRangeCall) doRequest(alt string) (*http.Response "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.expandIpCidrRange" call. @@ -40544,7 +40544,7 @@ func (c *SubnetworksGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.get" call. @@ -40667,7 +40667,7 @@ func (c *SubnetworksGetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.getIamPolicy" call. @@ -40788,7 +40788,7 @@ func (c *SubnetworksInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.insert" call. @@ -40977,7 +40977,7 @@ func (c *SubnetworksListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.list" call. @@ -41193,7 +41193,7 @@ func (c *SubnetworksListUsableCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.listUsable" call. @@ -41356,7 +41356,7 @@ func (c *SubnetworksPatchCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.patch" call. @@ -41466,7 +41466,7 @@ func (c *SubnetworksSetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.setIamPolicy" call. @@ -41592,7 +41592,7 @@ func (c *SubnetworksSetPrivateIpGoogleAccessCall) doRequest(alt string) (*http.R "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.setPrivateIpGoogleAccess" call. @@ -41702,7 +41702,7 @@ func (c *SubnetworksTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.testIamPermissions" call. @@ -41817,7 +41817,7 @@ func (c *TargetGrpcProxiesDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "targetGrpcProxy": c.targetGrpcProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.delete" call. @@ -41928,7 +41928,7 @@ func (c *TargetGrpcProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetGrpcProxy": c.targetGrpcProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.get" call. @@ -42046,7 +42046,7 @@ func (c *TargetGrpcProxiesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.insert" call. @@ -42231,7 +42231,7 @@ func (c *TargetGrpcProxiesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.list" call. @@ -42375,7 +42375,7 @@ func (c *TargetGrpcProxiesPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetGrpcProxy": c.targetGrpcProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.patch" call. @@ -42481,7 +42481,7 @@ func (c *TargetGrpcProxiesTestIamPermissionsCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.testIamPermissions" call. @@ -42691,7 +42691,7 @@ func (c *TargetHttpProxiesAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.aggregatedList" call. @@ -42827,7 +42827,7 @@ func (c *TargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.delete" call. @@ -42938,7 +42938,7 @@ func (c *TargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.get" call. @@ -43056,7 +43056,7 @@ func (c *TargetHttpProxiesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.insert" call. @@ -43242,7 +43242,7 @@ func (c *TargetHttpProxiesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.list" call. @@ -43386,7 +43386,7 @@ func (c *TargetHttpProxiesPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.patch" call. @@ -43506,7 +43506,7 @@ func (c *TargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.setUrlMap" call. @@ -43612,7 +43612,7 @@ func (c *TargetHttpProxiesTestIamPermissionsCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.testIamPermissions" call. @@ -43822,7 +43822,7 @@ func (c *TargetHttpsProxiesAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.aggregatedList" call. @@ -43958,7 +43958,7 @@ func (c *TargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Response, er "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.delete" call. @@ -44069,7 +44069,7 @@ func (c *TargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, error "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.get" call. @@ -44187,7 +44187,7 @@ func (c *TargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.insert" call. @@ -44373,7 +44373,7 @@ func (c *TargetHttpsProxiesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.list" call. @@ -44517,7 +44517,7 @@ func (c *TargetHttpsProxiesPatchCall) doRequest(alt string) (*http.Response, err "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.patch" call. @@ -44639,7 +44639,7 @@ func (c *TargetHttpsProxiesSetCertificateMapCall) doRequest(alt string) (*http.R "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setCertificateMap" call. @@ -44760,7 +44760,7 @@ func (c *TargetHttpsProxiesSetQuicOverrideCall) doRequest(alt string) (*http.Res "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setQuicOverride" call. @@ -44881,7 +44881,7 @@ func (c *TargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) (*http. "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setSslCertificates" call. @@ -45006,7 +45006,7 @@ func (c *TargetHttpsProxiesSetSslPolicyCall) doRequest(alt string) (*http.Respon "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setSslPolicy" call. @@ -45127,7 +45127,7 @@ func (c *TargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setUrlMap" call. @@ -45233,7 +45233,7 @@ func (c *TargetHttpsProxiesTestIamPermissionsCall) doRequest(alt string) (*http. "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.testIamPermissions" call. @@ -45442,7 +45442,7 @@ func (c *TargetInstancesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.aggregatedList" call. @@ -45582,7 +45582,7 @@ func (c *TargetInstancesDeleteCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "targetInstance": c.targetInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.delete" call. @@ -45697,7 +45697,7 @@ func (c *TargetInstancesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "targetInstance": c.targetInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.get" call. @@ -45818,7 +45818,7 @@ func (c *TargetInstancesInsertCall) doRequest(alt string) (*http.Response, error "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.insert" call. @@ -46008,7 +46008,7 @@ func (c *TargetInstancesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.list" call. @@ -46157,7 +46157,7 @@ func (c *TargetInstancesSetSecurityPolicyCall) doRequest(alt string) (*http.Resp "zone": c.zone, "targetInstance": c.targetInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.setSecurityPolicy" call. @@ -46267,7 +46267,7 @@ func (c *TargetInstancesTestIamPermissionsCall) doRequest(alt string) (*http.Res "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.testIamPermissions" call. @@ -46392,7 +46392,7 @@ func (c *TargetPoolsAddHealthCheckCall) doRequest(alt string) (*http.Response, e "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.addHealthCheck" call. @@ -46516,7 +46516,7 @@ func (c *TargetPoolsAddInstanceCall) doRequest(alt string) (*http.Response, erro "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.addInstance" call. @@ -46724,7 +46724,7 @@ func (c *TargetPoolsAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.aggregatedList" call. @@ -46864,7 +46864,7 @@ func (c *TargetPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.delete" call. @@ -46979,7 +46979,7 @@ func (c *TargetPoolsGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.get" call. @@ -47090,7 +47090,7 @@ func (c *TargetPoolsGetHealthCall) doRequest(alt string) (*http.Response, error) "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.getHealth" call. @@ -47212,7 +47212,7 @@ func (c *TargetPoolsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.insert" call. @@ -47402,7 +47402,7 @@ func (c *TargetPoolsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.list" call. @@ -47547,7 +47547,7 @@ func (c *TargetPoolsRemoveHealthCheckCall) doRequest(alt string) (*http.Response "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.removeHealthCheck" call. @@ -47671,7 +47671,7 @@ func (c *TargetPoolsRemoveInstanceCall) doRequest(alt string) (*http.Response, e "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.removeInstance" call. @@ -47802,7 +47802,7 @@ func (c *TargetPoolsSetBackupCall) doRequest(alt string) (*http.Response, error) "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.setBackup" call. @@ -47928,7 +47928,7 @@ func (c *TargetPoolsSetSecurityPolicyCall) doRequest(alt string) (*http.Response "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.setSecurityPolicy" call. @@ -48038,7 +48038,7 @@ func (c *TargetPoolsTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.testIamPermissions" call. @@ -48153,7 +48153,7 @@ func (c *TargetSslProxiesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.delete" call. @@ -48264,7 +48264,7 @@ func (c *TargetSslProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.get" call. @@ -48381,7 +48381,7 @@ func (c *TargetSslProxiesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.insert" call. @@ -48567,7 +48567,7 @@ func (c *TargetSslProxiesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.list" call. @@ -48710,7 +48710,7 @@ func (c *TargetSslProxiesSetBackendServiceCall) doRequest(alt string) (*http.Res "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setBackendService" call. @@ -48832,7 +48832,7 @@ func (c *TargetSslProxiesSetCertificateMapCall) doRequest(alt string) (*http.Res "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setCertificateMap" call. @@ -48953,7 +48953,7 @@ func (c *TargetSslProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Respon "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setProxyHeader" call. @@ -49074,7 +49074,7 @@ func (c *TargetSslProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Re "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setSslCertificates" call. @@ -49198,7 +49198,7 @@ func (c *TargetSslProxiesSetSslPolicyCall) doRequest(alt string) (*http.Response "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setSslPolicy" call. @@ -49304,7 +49304,7 @@ func (c *TargetSslProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Re "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.testIamPermissions" call. @@ -49513,7 +49513,7 @@ func (c *TargetTcpProxiesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.aggregatedList" call. @@ -49649,7 +49649,7 @@ func (c *TargetTcpProxiesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.delete" call. @@ -49760,7 +49760,7 @@ func (c *TargetTcpProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.get" call. @@ -49877,7 +49877,7 @@ func (c *TargetTcpProxiesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.insert" call. @@ -50063,7 +50063,7 @@ func (c *TargetTcpProxiesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.list" call. @@ -50206,7 +50206,7 @@ func (c *TargetTcpProxiesSetBackendServiceCall) doRequest(alt string) (*http.Res "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.setBackendService" call. @@ -50327,7 +50327,7 @@ func (c *TargetTcpProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Respon "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.setProxyHeader" call. @@ -50433,7 +50433,7 @@ func (c *TargetTcpProxiesTestIamPermissionsCall) doRequest(alt string) (*http.Re "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.testIamPermissions" call. @@ -50642,7 +50642,7 @@ func (c *TargetVpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.aggregatedList" call. @@ -50782,7 +50782,7 @@ func (c *TargetVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, err "region": c.region, "targetVpnGateway": c.targetVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.delete" call. @@ -50897,7 +50897,7 @@ func (c *TargetVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "targetVpnGateway": c.targetVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.get" call. @@ -51019,7 +51019,7 @@ func (c *TargetVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.insert" call. @@ -51209,7 +51209,7 @@ func (c *TargetVpnGatewaysListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.list" call. @@ -51356,7 +51356,7 @@ func (c *TargetVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.setLabels" call. @@ -51466,7 +51466,7 @@ func (c *TargetVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.R "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.testIamPermissions" call. @@ -51675,7 +51675,7 @@ func (c *UrlMapsAggregatedListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.aggregatedList" call. @@ -51811,7 +51811,7 @@ func (c *UrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.delete" call. @@ -51922,7 +51922,7 @@ func (c *UrlMapsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.get" call. @@ -52039,7 +52039,7 @@ func (c *UrlMapsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.insert" call. @@ -52161,7 +52161,7 @@ func (c *UrlMapsInvalidateCacheCall) doRequest(alt string) (*http.Response, erro "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.invalidateCache" call. @@ -52347,7 +52347,7 @@ func (c *UrlMapsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.list" call. @@ -52490,7 +52490,7 @@ func (c *UrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.patch" call. @@ -52596,7 +52596,7 @@ func (c *UrlMapsTestIamPermissionsCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.testIamPermissions" call. @@ -52718,7 +52718,7 @@ func (c *UrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.update" call. @@ -52825,7 +52825,7 @@ func (c *UrlMapsValidateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.validate" call. @@ -53034,7 +53034,7 @@ func (c *VpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.aggregatedList" call. @@ -53174,7 +53174,7 @@ func (c *VpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnGateway": c.vpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.delete" call. @@ -53289,7 +53289,7 @@ func (c *VpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnGateway": c.vpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.get" call. @@ -53404,7 +53404,7 @@ func (c *VpnGatewaysGetStatusCall) doRequest(alt string) (*http.Response, error) "region": c.region, "vpnGateway": c.vpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.getStatus" call. @@ -53526,7 +53526,7 @@ func (c *VpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.insert" call. @@ -53716,7 +53716,7 @@ func (c *VpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.list" call. @@ -53862,7 +53862,7 @@ func (c *VpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.setLabels" call. @@ -53972,7 +53972,7 @@ func (c *VpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.testIamPermissions" call. @@ -54181,7 +54181,7 @@ func (c *VpnTunnelsAggregatedListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.aggregatedList" call. @@ -54321,7 +54321,7 @@ func (c *VpnTunnelsDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnTunnel": c.vpnTunnel, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.delete" call. @@ -54436,7 +54436,7 @@ func (c *VpnTunnelsGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnTunnel": c.vpnTunnel, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.get" call. @@ -54557,7 +54557,7 @@ func (c *VpnTunnelsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.insert" call. @@ -54747,7 +54747,7 @@ func (c *VpnTunnelsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.list" call. @@ -54893,7 +54893,7 @@ func (c *VpnTunnelsSetLabelsCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.setLabels" call. @@ -55003,7 +55003,7 @@ func (c *VpnTunnelsTestIamPermissionsCall) doRequest(alt string) (*http.Response "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.testIamPermissions" call. @@ -55108,7 +55108,7 @@ func (c *ZoneOperationsDeleteCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.delete" call. @@ -55201,7 +55201,7 @@ func (c *ZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.get" call. @@ -55391,7 +55391,7 @@ func (c *ZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.list" call. @@ -55525,7 +55525,7 @@ func (c *ZoneOperationsWaitCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.wait" call. @@ -55636,7 +55636,7 @@ func (c *ZonesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zones.get" call. @@ -55822,7 +55822,7 @@ func (c *ZonesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zones.list" call. diff --git a/compute/v1/compute2-gen.go b/compute/v1/compute2-gen.go index 74f8dee4bf6..816a83bd4da 100644 --- a/compute/v1/compute2-gen.go +++ b/compute/v1/compute2-gen.go @@ -184,7 +184,7 @@ func (c *AcceleratorTypesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.acceleratorTypes.aggregatedList" call. @@ -321,7 +321,7 @@ func (c *AcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "acceleratorType": c.acceleratorType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.acceleratorTypes.get" call. @@ -512,7 +512,7 @@ func (c *AcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.acceleratorTypes.list" call. @@ -742,7 +742,7 @@ func (c *AddressesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.aggregatedList" call. @@ -882,7 +882,7 @@ func (c *AddressesDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.delete" call. @@ -997,7 +997,7 @@ func (c *AddressesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.get" call. @@ -1118,7 +1118,7 @@ func (c *AddressesInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.insert" call. @@ -1307,7 +1307,7 @@ func (c *AddressesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.list" call. @@ -1452,7 +1452,7 @@ func (c *AddressesMoveCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.move" call. @@ -1577,7 +1577,7 @@ func (c *AddressesSetLabelsCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.addresses.setLabels" call. @@ -1785,7 +1785,7 @@ func (c *AutoscalersAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.aggregatedList" call. @@ -1925,7 +1925,7 @@ func (c *AutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.delete" call. @@ -2040,7 +2040,7 @@ func (c *AutoscalersGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.get" call. @@ -2161,7 +2161,7 @@ func (c *AutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.insert" call. @@ -2350,7 +2350,7 @@ func (c *AutoscalersListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.list" call. @@ -2500,7 +2500,7 @@ func (c *AutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.patch" call. @@ -2628,7 +2628,7 @@ func (c *AutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.autoscalers.update" call. @@ -2750,7 +2750,7 @@ func (c *BackendBucketsAddSignedUrlKeyCall) doRequest(alt string) (*http.Respons "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.addSignedUrlKey" call. @@ -2864,7 +2864,7 @@ func (c *BackendBucketsDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.delete" call. @@ -2982,7 +2982,7 @@ func (c *BackendBucketsDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Resp "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.deleteSignedUrlKey" call. @@ -3093,7 +3093,7 @@ func (c *BackendBucketsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.get" call. @@ -3212,7 +3212,7 @@ func (c *BackendBucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.getIamPolicy" call. @@ -3329,7 +3329,7 @@ func (c *BackendBucketsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.insert" call. @@ -3515,7 +3515,7 @@ func (c *BackendBucketsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.list" call. @@ -3659,7 +3659,7 @@ func (c *BackendBucketsPatchCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.patch" call. @@ -3781,7 +3781,7 @@ func (c *BackendBucketsSetEdgeSecurityPolicyCall) doRequest(alt string) (*http.R "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.setEdgeSecurityPolicy" call. @@ -3887,7 +3887,7 @@ func (c *BackendBucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.setIamPolicy" call. @@ -3993,7 +3993,7 @@ func (c *BackendBucketsTestIamPermissionsCall) doRequest(alt string) (*http.Resp "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.testIamPermissions" call. @@ -4115,7 +4115,7 @@ func (c *BackendBucketsUpdateCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendBucket": c.backendBucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendBuckets.update" call. @@ -4237,7 +4237,7 @@ func (c *BackendServicesAddSignedUrlKeyCall) doRequest(alt string) (*http.Respon "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.addSignedUrlKey" call. @@ -4445,7 +4445,7 @@ func (c *BackendServicesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.aggregatedList" call. @@ -4581,7 +4581,7 @@ func (c *BackendServicesDeleteCall) doRequest(alt string) (*http.Response, error "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.delete" call. @@ -4699,7 +4699,7 @@ func (c *BackendServicesDeleteSignedUrlKeyCall) doRequest(alt string) (*http.Res "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.deleteSignedUrlKey" call. @@ -4810,7 +4810,7 @@ func (c *BackendServicesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.get" call. @@ -4918,7 +4918,7 @@ func (c *BackendServicesGetHealthCall) doRequest(alt string) (*http.Response, er "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.getHealth" call. @@ -5038,7 +5038,7 @@ func (c *BackendServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.getIamPolicy" call. @@ -5156,7 +5156,7 @@ func (c *BackendServicesInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.insert" call. @@ -5342,7 +5342,7 @@ func (c *BackendServicesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.list" call. @@ -5550,7 +5550,7 @@ func (c *BackendServicesListUsableCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.listUsable" call. @@ -5695,7 +5695,7 @@ func (c *BackendServicesPatchCall) doRequest(alt string) (*http.Response, error) "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.patch" call. @@ -5817,7 +5817,7 @@ func (c *BackendServicesSetEdgeSecurityPolicyCall) doRequest(alt string) (*http. "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.setEdgeSecurityPolicy" call. @@ -5923,7 +5923,7 @@ func (c *BackendServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.setIamPolicy" call. @@ -6046,7 +6046,7 @@ func (c *BackendServicesSetSecurityPolicyCall) doRequest(alt string) (*http.Resp "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.setSecurityPolicy" call. @@ -6152,7 +6152,7 @@ func (c *BackendServicesTestIamPermissionsCall) doRequest(alt string) (*http.Res "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.testIamPermissions" call. @@ -6274,7 +6274,7 @@ func (c *BackendServicesUpdateCall) doRequest(alt string) (*http.Response, error "project": c.project, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.backendServices.update" call. @@ -6482,7 +6482,7 @@ func (c *DiskTypesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskTypes.aggregatedList" call. @@ -6619,7 +6619,7 @@ func (c *DiskTypesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "diskType": c.diskType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskTypes.get" call. @@ -6808,7 +6808,7 @@ func (c *DiskTypesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.diskTypes.list" call. @@ -6955,7 +6955,7 @@ func (c *DisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.addResourcePolicies" call. @@ -7163,7 +7163,7 @@ func (c *DisksAggregatedListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.aggregatedList" call. @@ -7305,7 +7305,7 @@ func (c *DisksBulkInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.bulkInsert" call. @@ -7440,7 +7440,7 @@ func (c *DisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.createSnapshot" call. @@ -7561,7 +7561,7 @@ func (c *DisksDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.delete" call. @@ -7676,7 +7676,7 @@ func (c *DisksGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.get" call. @@ -7799,7 +7799,7 @@ func (c *DisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.getIamPolicy" call. @@ -7930,7 +7930,7 @@ func (c *DisksInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.insert" call. @@ -8120,7 +8120,7 @@ func (c *DisksListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.list" call. @@ -8265,7 +8265,7 @@ func (c *DisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.removeResourcePolicies" call. @@ -8390,7 +8390,7 @@ func (c *DisksResizeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.resize" call. @@ -8500,7 +8500,7 @@ func (c *DisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.setIamPolicy" call. @@ -8625,7 +8625,7 @@ func (c *DisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.setLabels" call. @@ -8750,7 +8750,7 @@ func (c *DisksStartAsyncReplicationCall) doRequest(alt string) (*http.Response, "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.startAsyncReplication" call. @@ -8869,7 +8869,7 @@ func (c *DisksStopAsyncReplicationCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.stopAsyncReplication" call. @@ -8991,7 +8991,7 @@ func (c *DisksStopGroupAsyncReplicationCall) doRequest(alt string) (*http.Respon "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.stopGroupAsyncReplication" call. @@ -9101,7 +9101,7 @@ func (c *DisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, err "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.testIamPermissions" call. @@ -9241,7 +9241,7 @@ func (c *DisksUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.disks.update" call. @@ -9355,7 +9355,7 @@ func (c *ExternalVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, e "project": c.project, "externalVpnGateway": c.externalVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.delete" call. @@ -9467,7 +9467,7 @@ func (c *ExternalVpnGatewaysGetCall) doRequest(alt string) (*http.Response, erro "project": c.project, "externalVpnGateway": c.externalVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.get" call. @@ -9585,7 +9585,7 @@ func (c *ExternalVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.insert" call. @@ -9771,7 +9771,7 @@ func (c *ExternalVpnGatewaysListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.list" call. @@ -9899,7 +9899,7 @@ func (c *ExternalVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.setLabels" call. @@ -10005,7 +10005,7 @@ func (c *ExternalVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.externalVpnGateways.testIamPermissions" call. @@ -10131,7 +10131,7 @@ func (c *FirewallPoliciesAddAssociationCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.addAssociation" call. @@ -10247,7 +10247,7 @@ func (c *FirewallPoliciesAddRuleCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.addRule" call. @@ -10364,7 +10364,7 @@ func (c *FirewallPoliciesCloneRulesCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.cloneRules" call. @@ -10474,7 +10474,7 @@ func (c *FirewallPoliciesDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.delete" call. @@ -10581,7 +10581,7 @@ func (c *FirewallPoliciesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.get" call. @@ -10696,7 +10696,7 @@ func (c *FirewallPoliciesGetAssociationCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getAssociation" call. @@ -10812,7 +10812,7 @@ func (c *FirewallPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getIamPolicy" call. @@ -10927,7 +10927,7 @@ func (c *FirewallPoliciesGetRuleCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.getRule" call. @@ -11046,7 +11046,7 @@ func (c *FirewallPoliciesInsertCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.insert" call. @@ -11233,7 +11233,7 @@ func (c *FirewallPoliciesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.list" call. @@ -11363,7 +11363,7 @@ func (c *FirewallPoliciesListAssociationsCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.listAssociations" call. @@ -11483,7 +11483,7 @@ func (c *FirewallPoliciesMoveCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.move" call. @@ -11599,7 +11599,7 @@ func (c *FirewallPoliciesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.patch" call. @@ -11722,7 +11722,7 @@ func (c *FirewallPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.patchRule" call. @@ -11839,7 +11839,7 @@ func (c *FirewallPoliciesRemoveAssociationCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.removeAssociation" call. @@ -11956,7 +11956,7 @@ func (c *FirewallPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.removeRule" call. @@ -12058,7 +12058,7 @@ func (c *FirewallPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.setIamPolicy" call. @@ -12160,7 +12160,7 @@ func (c *FirewallPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewallPolicies.testIamPermissions" call. @@ -12275,7 +12275,7 @@ func (c *FirewallsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.delete" call. @@ -12386,7 +12386,7 @@ func (c *FirewallsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.get" call. @@ -12503,7 +12503,7 @@ func (c *FirewallsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.insert" call. @@ -12689,7 +12689,7 @@ func (c *FirewallsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.list" call. @@ -12832,7 +12832,7 @@ func (c *FirewallsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.patch" call. @@ -12954,7 +12954,7 @@ func (c *FirewallsUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "firewall": c.firewall, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.firewalls.update" call. @@ -13162,7 +13162,7 @@ func (c *ForwardingRulesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.aggregatedList" call. @@ -13302,7 +13302,7 @@ func (c *ForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, error "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.delete" call. @@ -13417,7 +13417,7 @@ func (c *ForwardingRulesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.get" call. @@ -13538,7 +13538,7 @@ func (c *ForwardingRulesInsertCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.insert" call. @@ -13728,7 +13728,7 @@ func (c *ForwardingRulesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.list" call. @@ -13877,7 +13877,7 @@ func (c *ForwardingRulesPatchCall) doRequest(alt string) (*http.Response, error) "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.patch" call. @@ -14002,7 +14002,7 @@ func (c *ForwardingRulesSetLabelsCall) doRequest(alt string) (*http.Response, er "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.setLabels" call. @@ -14128,7 +14128,7 @@ func (c *ForwardingRulesSetTargetCall) doRequest(alt string) (*http.Response, er "region": c.region, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.forwardingRules.setTarget" call. @@ -14336,7 +14336,7 @@ func (c *FutureReservationsAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.aggregatedList" call. @@ -14477,7 +14477,7 @@ func (c *FutureReservationsCancelCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.cancel" call. @@ -14596,7 +14596,7 @@ func (c *FutureReservationsDeleteCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.delete" call. @@ -14712,7 +14712,7 @@ func (c *FutureReservationsGetCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.get" call. @@ -14833,7 +14833,7 @@ func (c *FutureReservationsInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.insert" call. @@ -15023,7 +15023,7 @@ func (c *FutureReservationsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.list" call. @@ -15177,7 +15177,7 @@ func (c *FutureReservationsUpdateCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "futureReservation": c.futureReservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.futureReservations.update" call. @@ -15291,7 +15291,7 @@ func (c *GlobalAddressesDeleteCall) doRequest(alt string) (*http.Response, error "project": c.project, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.delete" call. @@ -15402,7 +15402,7 @@ func (c *GlobalAddressesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.get" call. @@ -15519,7 +15519,7 @@ func (c *GlobalAddressesInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.insert" call. @@ -15704,7 +15704,7 @@ func (c *GlobalAddressesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.list" call. @@ -15846,7 +15846,7 @@ func (c *GlobalAddressesMoveCall) doRequest(alt string) (*http.Response, error) "project": c.project, "address": c.address, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.move" call. @@ -15952,7 +15952,7 @@ func (c *GlobalAddressesSetLabelsCall) doRequest(alt string) (*http.Response, er "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalAddresses.setLabels" call. @@ -16066,7 +16066,7 @@ func (c *GlobalForwardingRulesDeleteCall) doRequest(alt string) (*http.Response, "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.delete" call. @@ -16178,7 +16178,7 @@ func (c *GlobalForwardingRulesGetCall) doRequest(alt string) (*http.Response, er "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.get" call. @@ -16295,7 +16295,7 @@ func (c *GlobalForwardingRulesInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.insert" call. @@ -16481,7 +16481,7 @@ func (c *GlobalForwardingRulesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.list" call. @@ -16626,7 +16626,7 @@ func (c *GlobalForwardingRulesPatchCall) doRequest(alt string) (*http.Response, "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.patch" call. @@ -16732,7 +16732,7 @@ func (c *GlobalForwardingRulesSetLabelsCall) doRequest(alt string) (*http.Respon "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.setLabels" call. @@ -16854,7 +16854,7 @@ func (c *GlobalForwardingRulesSetTargetCall) doRequest(alt string) (*http.Respon "project": c.project, "forwardingRule": c.forwardingRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalForwardingRules.setTarget" call. @@ -16976,7 +16976,7 @@ func (c *GlobalNetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt st "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.attachNetworkEndpoints" call. @@ -17092,7 +17092,7 @@ func (c *GlobalNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Res "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.delete" call. @@ -17214,7 +17214,7 @@ func (c *GlobalNetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt st "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.detachNetworkEndpoints" call. @@ -17326,7 +17326,7 @@ func (c *GlobalNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Respon "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.get" call. @@ -17444,7 +17444,7 @@ func (c *GlobalNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.insert" call. @@ -17630,7 +17630,7 @@ func (c *GlobalNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.list" call. @@ -17832,7 +17832,7 @@ func (c *GlobalNetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt stri "project": c.project, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalNetworkEndpointGroups.listNetworkEndpoints" call. @@ -18062,7 +18062,7 @@ func (c *GlobalOperationsAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.aggregatedList" call. @@ -18184,7 +18184,7 @@ func (c *GlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.delete" call. @@ -18273,7 +18273,7 @@ func (c *GlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.get" call. @@ -18459,7 +18459,7 @@ func (c *GlobalOperationsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.list" call. @@ -18590,7 +18590,7 @@ func (c *GlobalOperationsWaitCall) doRequest(alt string) (*http.Response, error) "project": c.project, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOperations.wait" call. @@ -18692,7 +18692,7 @@ func (c *GlobalOrganizationOperationsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOrganizationOperations.delete" call. @@ -18784,7 +18784,7 @@ func (c *GlobalOrganizationOperationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOrganizationOperations.get" call. @@ -18969,7 +18969,7 @@ func (c *GlobalOrganizationOperationsListCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalOrganizationOperations.list" call. @@ -19105,7 +19105,7 @@ func (c *GlobalPublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.R "project": c.project, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.delete" call. @@ -19217,7 +19217,7 @@ func (c *GlobalPublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Resp "project": c.project, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.get" call. @@ -19335,7 +19335,7 @@ func (c *GlobalPublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.insert" call. @@ -19520,7 +19520,7 @@ func (c *GlobalPublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.list" call. @@ -19665,7 +19665,7 @@ func (c *GlobalPublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Re "project": c.project, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.globalPublicDelegatedPrefixes.patch" call. @@ -19873,7 +19873,7 @@ func (c *HealthChecksAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.aggregatedList" call. @@ -20009,7 +20009,7 @@ func (c *HealthChecksDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.delete" call. @@ -20120,7 +20120,7 @@ func (c *HealthChecksGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.get" call. @@ -20237,7 +20237,7 @@ func (c *HealthChecksInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.insert" call. @@ -20423,7 +20423,7 @@ func (c *HealthChecksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.list" call. @@ -20567,7 +20567,7 @@ func (c *HealthChecksPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.patch" call. @@ -20688,7 +20688,7 @@ func (c *HealthChecksUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.healthChecks.update" call. @@ -20802,7 +20802,7 @@ func (c *HttpHealthChecksDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.delete" call. @@ -20913,7 +20913,7 @@ func (c *HttpHealthChecksGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.get" call. @@ -21031,7 +21031,7 @@ func (c *HttpHealthChecksInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.insert" call. @@ -21217,7 +21217,7 @@ func (c *HttpHealthChecksListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.list" call. @@ -21361,7 +21361,7 @@ func (c *HttpHealthChecksPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.patch" call. @@ -21482,7 +21482,7 @@ func (c *HttpHealthChecksUpdateCall) doRequest(alt string) (*http.Response, erro "project": c.project, "httpHealthCheck": c.httpHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpHealthChecks.update" call. @@ -21596,7 +21596,7 @@ func (c *HttpsHealthChecksDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.delete" call. @@ -21707,7 +21707,7 @@ func (c *HttpsHealthChecksGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.get" call. @@ -21825,7 +21825,7 @@ func (c *HttpsHealthChecksInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.insert" call. @@ -22011,7 +22011,7 @@ func (c *HttpsHealthChecksListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.list" call. @@ -22155,7 +22155,7 @@ func (c *HttpsHealthChecksPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.patch" call. @@ -22276,7 +22276,7 @@ func (c *HttpsHealthChecksUpdateCall) doRequest(alt string) (*http.Response, err "project": c.project, "httpsHealthCheck": c.httpsHealthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.httpsHealthChecks.update" call. @@ -22392,7 +22392,7 @@ func (c *ImageFamilyViewsGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "family": c.family, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.imageFamilyViews.get" call. @@ -22507,7 +22507,7 @@ func (c *ImagesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.delete" call. @@ -22628,7 +22628,7 @@ func (c *ImagesDeprecateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.deprecate" call. @@ -22739,7 +22739,7 @@ func (c *ImagesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.get" call. @@ -22853,7 +22853,7 @@ func (c *ImagesGetFromFamilyCall) doRequest(alt string) (*http.Response, error) "project": c.project, "family": c.family, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.getFromFamily" call. @@ -22972,7 +22972,7 @@ func (c *ImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.getIamPolicy" call. @@ -23096,7 +23096,7 @@ func (c *ImagesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.insert" call. @@ -23286,7 +23286,7 @@ func (c *ImagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.list" call. @@ -23429,7 +23429,7 @@ func (c *ImagesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "image": c.image, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.patch" call. @@ -23535,7 +23535,7 @@ func (c *ImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.setIamPolicy" call. @@ -23641,7 +23641,7 @@ func (c *ImagesSetLabelsCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.setLabels" call. @@ -23747,7 +23747,7 @@ func (c *ImagesTestIamPermissionsCall) doRequest(alt string) (*http.Response, er "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.images.testIamPermissions" call. @@ -23876,7 +23876,7 @@ func (c *InstanceGroupManagerResizeRequestsCancelCall) doRequest(alt string) (*h "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.cancel" call. @@ -24003,7 +24003,7 @@ func (c *InstanceGroupManagerResizeRequestsDeleteCall) doRequest(alt string) (*h "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.delete" call. @@ -24125,7 +24125,7 @@ func (c *InstanceGroupManagerResizeRequestsGetCall) doRequest(alt string) (*http "instanceGroupManager": c.instanceGroupManager, "resizeRequest": c.resizeRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.get" call. @@ -24254,7 +24254,7 @@ func (c *InstanceGroupManagerResizeRequestsInsertCall) doRequest(alt string) (*h "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.insert" call. @@ -24450,7 +24450,7 @@ func (c *InstanceGroupManagerResizeRequestsListCall) doRequest(alt string) (*htt "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagerResizeRequests.list" call. @@ -24607,7 +24607,7 @@ func (c *InstanceGroupManagersAbandonInstancesCall) doRequest(alt string) (*http "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.abandonInstances" call. @@ -24815,7 +24815,7 @@ func (c *InstanceGroupManagersAggregatedListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.aggregatedList" call. @@ -24950,7 +24950,7 @@ func (c *InstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.applyUpdatesToInstances" call. @@ -25080,7 +25080,7 @@ func (c *InstanceGroupManagersCreateInstancesCall) doRequest(alt string) (*http. "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.createInstances" call. @@ -25200,7 +25200,7 @@ func (c *InstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.delete" call. @@ -25334,7 +25334,7 @@ func (c *InstanceGroupManagersDeleteInstancesCall) doRequest(alt string) (*http. "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.deleteInstances" call. @@ -25446,7 +25446,7 @@ func (c *InstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt string "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.deletePerInstanceConfigs" call. @@ -25561,7 +25561,7 @@ func (c *InstanceGroupManagersGetCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.get" call. @@ -25690,7 +25690,7 @@ func (c *InstanceGroupManagersInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.insert" call. @@ -25880,7 +25880,7 @@ func (c *InstanceGroupManagersListCall) doRequest(alt string) (*http.Response, e "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.list" call. @@ -26101,7 +26101,7 @@ func (c *InstanceGroupManagersListErrorsCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.listErrors" call. @@ -26311,7 +26311,7 @@ func (c *InstanceGroupManagersListManagedInstancesCall) doRequest(alt string) (* "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.listManagedInstances" call. @@ -26518,7 +26518,7 @@ func (c *InstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.listPerInstanceConfigs" call. @@ -26674,7 +26674,7 @@ func (c *InstanceGroupManagersPatchCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.patch" call. @@ -26802,7 +26802,7 @@ func (c *InstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt string) "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.patchPerInstanceConfigs" call. @@ -26935,7 +26935,7 @@ func (c *InstanceGroupManagersRecreateInstancesCall) doRequest(alt string) (*htt "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.recreateInstances" call. @@ -27071,7 +27071,7 @@ func (c *InstanceGroupManagersResizeCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.resize" call. @@ -27198,7 +27198,7 @@ func (c *InstanceGroupManagersSetInstanceTemplateCall) doRequest(alt string) (*h "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.setInstanceTemplate" call. @@ -27327,7 +27327,7 @@ func (c *InstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (*http.R "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.setTargetPools" call. @@ -27455,7 +27455,7 @@ func (c *InstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt string "zone": c.zone, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroupManagers.updatePerInstanceConfigs" call. @@ -27582,7 +27582,7 @@ func (c *InstanceGroupsAddInstancesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.addInstances" call. @@ -27790,7 +27790,7 @@ func (c *InstanceGroupsAggregatedListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.aggregatedList" call. @@ -27932,7 +27932,7 @@ func (c *InstanceGroupsDeleteCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.delete" call. @@ -28050,7 +28050,7 @@ func (c *InstanceGroupsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.get" call. @@ -28171,7 +28171,7 @@ func (c *InstanceGroupsInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.insert" call. @@ -28362,7 +28362,7 @@ func (c *InstanceGroupsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.list" call. @@ -28575,7 +28575,7 @@ func (c *InstanceGroupsListInstancesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.listInstances" call. @@ -28726,7 +28726,7 @@ func (c *InstanceGroupsRemoveInstancesCall) doRequest(alt string) (*http.Respons "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.removeInstances" call. @@ -28851,7 +28851,7 @@ func (c *InstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceGroups.setNamedPorts" call. @@ -28962,7 +28962,7 @@ func (c *InstanceSettingsGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceSettings.get" call. @@ -29090,7 +29090,7 @@ func (c *InstanceSettingsPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceSettings.patch" call. @@ -29299,7 +29299,7 @@ func (c *InstanceTemplatesAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.aggregatedList" call. @@ -29437,7 +29437,7 @@ func (c *InstanceTemplatesDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.delete" call. @@ -29548,7 +29548,7 @@ func (c *InstanceTemplatesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.get" call. @@ -29668,7 +29668,7 @@ func (c *InstanceTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.getIamPolicy" call. @@ -29788,7 +29788,7 @@ func (c *InstanceTemplatesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.insert" call. @@ -29974,7 +29974,7 @@ func (c *InstanceTemplatesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.list" call. @@ -30102,7 +30102,7 @@ func (c *InstanceTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.setIamPolicy" call. @@ -30208,7 +30208,7 @@ func (c *InstanceTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instanceTemplates.testIamPermissions" call. @@ -30336,7 +30336,7 @@ func (c *InstancesAddAccessConfigCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.addAccessConfig" call. @@ -30462,7 +30462,7 @@ func (c *InstancesAddResourcePoliciesCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.addResourcePolicies" call. @@ -30672,7 +30672,7 @@ func (c *InstancesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.aggregatedList" call. @@ -30830,7 +30830,7 @@ func (c *InstancesAttachDiskCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.attachDisk" call. @@ -30951,7 +30951,7 @@ func (c *InstancesBulkInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.bulkInsert" call. @@ -31070,7 +31070,7 @@ func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.delete" call. @@ -31193,7 +31193,7 @@ func (c *InstancesDeleteAccessConfigCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.deleteAccessConfig" call. @@ -31314,7 +31314,7 @@ func (c *InstancesDetachDiskCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.detachDisk" call. @@ -31429,7 +31429,7 @@ func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.get" call. @@ -31548,7 +31548,7 @@ func (c *InstancesGetEffectiveFirewallsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getEffectiveFirewalls" call. @@ -31678,7 +31678,7 @@ func (c *InstancesGetGuestAttributesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getGuestAttributes" call. @@ -31802,7 +31802,7 @@ func (c *InstancesGetIamPolicyCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getIamPolicy" call. @@ -31917,7 +31917,7 @@ func (c *InstancesGetScreenshotCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getScreenshot" call. @@ -32057,7 +32057,7 @@ func (c *InstancesGetSerialPortOutputCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getSerialPortOutput" call. @@ -32174,7 +32174,7 @@ func (c *InstancesGetShieldedInstanceIdentityCall) doRequest(alt string) (*http. "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.getShieldedInstanceIdentity" call. @@ -32322,7 +32322,7 @@ func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.insert" call. @@ -32511,7 +32511,7 @@ func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.list" call. @@ -32730,7 +32730,7 @@ func (c *InstancesListReferrersCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.listReferrers" call. @@ -32870,7 +32870,7 @@ func (c *InstancesPerformMaintenanceCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.performMaintenance" call. @@ -32994,7 +32994,7 @@ func (c *InstancesRemoveResourcePoliciesCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.removeResourcePolicies" call. @@ -33113,7 +33113,7 @@ func (c *InstancesResetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.reset" call. @@ -33232,7 +33232,7 @@ func (c *InstancesResumeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.resume" call. @@ -33335,7 +33335,7 @@ func (c *InstancesSendDiagnosticInterruptCall) doRequest(alt string) (*http.Resp "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.sendDiagnosticInterrupt" call. @@ -33437,7 +33437,7 @@ func (c *InstancesSetDeletionProtectionCall) doRequest(alt string) (*http.Respon "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setDeletionProtection" call. @@ -33561,7 +33561,7 @@ func (c *InstancesSetDiskAutoDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setDiskAutoDelete" call. @@ -33671,7 +33671,7 @@ func (c *InstancesSetIamPolicyCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setIamPolicy" call. @@ -33796,7 +33796,7 @@ func (c *InstancesSetLabelsCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setLabels" call. @@ -33921,7 +33921,7 @@ func (c *InstancesSetMachineResourcesCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMachineResources" call. @@ -34046,7 +34046,7 @@ func (c *InstancesSetMachineTypeCall) doRequest(alt string) (*http.Response, err "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMachineType" call. @@ -34171,7 +34171,7 @@ func (c *InstancesSetMetadataCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMetadata" call. @@ -34297,7 +34297,7 @@ func (c *InstancesSetMinCpuPlatformCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setMinCpuPlatform" call. @@ -34421,7 +34421,7 @@ func (c *InstancesSetNameCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setName" call. @@ -34549,7 +34549,7 @@ func (c *InstancesSetSchedulingCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setScheduling" call. @@ -34675,7 +34675,7 @@ func (c *InstancesSetSecurityPolicyCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setSecurityPolicy" call. @@ -34801,7 +34801,7 @@ func (c *InstancesSetServiceAccountCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setServiceAccount" call. @@ -34928,7 +34928,7 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) doRequest(alt string) "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setShieldedInstanceIntegrityPolicy" call. @@ -35053,7 +35053,7 @@ func (c *InstancesSetTagsCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.setTags" call. @@ -35180,7 +35180,7 @@ func (c *InstancesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Res "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.simulateMaintenanceEvent" call. @@ -35299,7 +35299,7 @@ func (c *InstancesStartCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.start" call. @@ -35424,7 +35424,7 @@ func (c *InstancesStartWithEncryptionKeyCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.startWithEncryptionKey" call. @@ -35556,7 +35556,7 @@ func (c *InstancesStopCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.stop" call. @@ -35689,7 +35689,7 @@ func (c *InstancesSuspendCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.suspend" call. @@ -35799,7 +35799,7 @@ func (c *InstancesTestIamPermissionsCall) doRequest(alt string) (*http.Response, "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.testIamPermissions" call. @@ -35960,7 +35960,7 @@ func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.update" call. @@ -36090,7 +36090,7 @@ func (c *InstancesUpdateAccessConfigCall) doRequest(alt string) (*http.Response, "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateAccessConfig" call. @@ -36216,7 +36216,7 @@ func (c *InstancesUpdateDisplayDeviceCall) doRequest(alt string) (*http.Response "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateDisplayDevice" call. @@ -36346,7 +36346,7 @@ func (c *InstancesUpdateNetworkInterfaceCall) doRequest(alt string) (*http.Respo "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateNetworkInterface" call. @@ -36473,7 +36473,7 @@ func (c *InstancesUpdateShieldedInstanceConfigCall) doRequest(alt string) (*http "zone": c.zone, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instances.updateShieldedInstanceConfig" call. @@ -36681,7 +36681,7 @@ func (c *InstantSnapshotsAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.aggregatedList" call. @@ -36826,7 +36826,7 @@ func (c *InstantSnapshotsDeleteCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.delete" call. @@ -36941,7 +36941,7 @@ func (c *InstantSnapshotsGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.get" call. @@ -37065,7 +37065,7 @@ func (c *InstantSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.getIamPolicy" call. @@ -37185,7 +37185,7 @@ func (c *InstantSnapshotsInsertCall) doRequest(alt string) (*http.Response, erro "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.insert" call. @@ -37375,7 +37375,7 @@ func (c *InstantSnapshotsListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.list" call. @@ -37507,7 +37507,7 @@ func (c *InstantSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.setIamPolicy" call. @@ -37632,7 +37632,7 @@ func (c *InstantSnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.setLabels" call. @@ -37742,7 +37742,7 @@ func (c *InstantSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Re "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.instantSnapshots.testIamPermissions" call. @@ -37951,7 +37951,7 @@ func (c *InterconnectAttachmentsAggregatedListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.aggregatedList" call. @@ -38091,7 +38091,7 @@ func (c *InterconnectAttachmentsDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "interconnectAttachment": c.interconnectAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.delete" call. @@ -38206,7 +38206,7 @@ func (c *InterconnectAttachmentsGetCall) doRequest(alt string) (*http.Response, "region": c.region, "interconnectAttachment": c.interconnectAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.get" call. @@ -38335,7 +38335,7 @@ func (c *InterconnectAttachmentsInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.insert" call. @@ -38525,7 +38525,7 @@ func (c *InterconnectAttachmentsListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.list" call. @@ -38673,7 +38673,7 @@ func (c *InterconnectAttachmentsPatchCall) doRequest(alt string) (*http.Response "region": c.region, "interconnectAttachment": c.interconnectAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.patch" call. @@ -38798,7 +38798,7 @@ func (c *InterconnectAttachmentsSetLabelsCall) doRequest(alt string) (*http.Resp "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectAttachments.setLabels" call. @@ -38910,7 +38910,7 @@ func (c *InterconnectLocationsGetCall) doRequest(alt string) (*http.Response, er "project": c.project, "interconnectLocation": c.interconnectLocation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectLocations.get" call. @@ -39097,7 +39097,7 @@ func (c *InterconnectLocationsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectLocations.list" call. @@ -39233,7 +39233,7 @@ func (c *InterconnectRemoteLocationsGetCall) doRequest(alt string) (*http.Respon "project": c.project, "interconnectRemoteLocation": c.interconnectRemoteLocation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectRemoteLocations.get" call. @@ -39420,7 +39420,7 @@ func (c *InterconnectRemoteLocationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnectRemoteLocations.list" call. @@ -39556,7 +39556,7 @@ func (c *InterconnectsDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.delete" call. @@ -39668,7 +39668,7 @@ func (c *InterconnectsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.get" call. @@ -39783,7 +39783,7 @@ func (c *InterconnectsGetDiagnosticsCall) doRequest(alt string) (*http.Response, "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.getDiagnostics" call. @@ -39896,7 +39896,7 @@ func (c *InterconnectsGetMacsecConfigCall) doRequest(alt string) (*http.Response "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.getMacsecConfig" call. @@ -40014,7 +40014,7 @@ func (c *InterconnectsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.insert" call. @@ -40200,7 +40200,7 @@ func (c *InterconnectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.list" call. @@ -40344,7 +40344,7 @@ func (c *InterconnectsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "interconnect": c.interconnect, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.patch" call. @@ -40450,7 +40450,7 @@ func (c *InterconnectsSetLabelsCall) doRequest(alt string) (*http.Response, erro "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.interconnects.setLabels" call. @@ -40564,7 +40564,7 @@ func (c *LicenseCodesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "licenseCode": c.licenseCode, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenseCodes.get" call. @@ -40671,7 +40671,7 @@ func (c *LicenseCodesTestIamPermissionsCall) doRequest(alt string) (*http.Respon "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenseCodes.testIamPermissions" call. @@ -40788,7 +40788,7 @@ func (c *LicensesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "license": c.license, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.delete" call. @@ -40901,7 +40901,7 @@ func (c *LicensesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "license": c.license, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.get" call. @@ -41021,7 +41021,7 @@ func (c *LicensesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.getIamPolicy" call. @@ -41139,7 +41139,7 @@ func (c *LicensesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.insert" call. @@ -41330,7 +41330,7 @@ func (c *LicensesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.list" call. @@ -41459,7 +41459,7 @@ func (c *LicensesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.setIamPolicy" call. @@ -41566,7 +41566,7 @@ func (c *LicensesTestIamPermissionsCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.licenses.testIamPermissions" call. @@ -41682,7 +41682,7 @@ func (c *MachineImagesDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "machineImage": c.machineImage, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.delete" call. @@ -41793,7 +41793,7 @@ func (c *MachineImagesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "machineImage": c.machineImage, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.get" call. @@ -41912,7 +41912,7 @@ func (c *MachineImagesGetIamPolicyCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.getIamPolicy" call. @@ -42038,7 +42038,7 @@ func (c *MachineImagesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.insert" call. @@ -42224,7 +42224,7 @@ func (c *MachineImagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.list" call. @@ -42352,7 +42352,7 @@ func (c *MachineImagesSetIamPolicyCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.setIamPolicy" call. @@ -42458,7 +42458,7 @@ func (c *MachineImagesTestIamPermissionsCall) doRequest(alt string) (*http.Respo "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineImages.testIamPermissions" call. @@ -42667,7 +42667,7 @@ func (c *MachineTypesAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineTypes.aggregatedList" call. @@ -42804,7 +42804,7 @@ func (c *MachineTypesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "machineType": c.machineType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineTypes.get" call. @@ -42993,7 +42993,7 @@ func (c *MachineTypesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.machineTypes.list" call. @@ -43224,7 +43224,7 @@ func (c *NetworkAttachmentsAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.aggregatedList" call. @@ -43365,7 +43365,7 @@ func (c *NetworkAttachmentsDeleteCall) doRequest(alt string) (*http.Response, er "region": c.region, "networkAttachment": c.networkAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.delete" call. @@ -43480,7 +43480,7 @@ func (c *NetworkAttachmentsGetCall) doRequest(alt string) (*http.Response, error "region": c.region, "networkAttachment": c.networkAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.get" call. @@ -43604,7 +43604,7 @@ func (c *NetworkAttachmentsGetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.getIamPolicy" call. @@ -43726,7 +43726,7 @@ func (c *NetworkAttachmentsInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.insert" call. @@ -43915,7 +43915,7 @@ func (c *NetworkAttachmentsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.list" call. @@ -44064,7 +44064,7 @@ func (c *NetworkAttachmentsPatchCall) doRequest(alt string) (*http.Response, err "region": c.region, "networkAttachment": c.networkAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.patch" call. @@ -44174,7 +44174,7 @@ func (c *NetworkAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.setIamPolicy" call. @@ -44284,7 +44284,7 @@ func (c *NetworkAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http. "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkAttachments.testIamPermissions" call. @@ -44493,7 +44493,7 @@ func (c *NetworkEdgeSecurityServicesAggregatedListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.aggregatedList" call. @@ -44634,7 +44634,7 @@ func (c *NetworkEdgeSecurityServicesDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "networkEdgeSecurityService": c.networkEdgeSecurityService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.delete" call. @@ -44750,7 +44750,7 @@ func (c *NetworkEdgeSecurityServicesGetCall) doRequest(alt string) (*http.Respon "region": c.region, "networkEdgeSecurityService": c.networkEdgeSecurityService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.get" call. @@ -44879,7 +44879,7 @@ func (c *NetworkEdgeSecurityServicesInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.insert" call. @@ -45017,7 +45017,7 @@ func (c *NetworkEdgeSecurityServicesPatchCall) doRequest(alt string) (*http.Resp "region": c.region, "networkEdgeSecurityService": c.networkEdgeSecurityService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEdgeSecurityServices.patch" call. @@ -45225,7 +45225,7 @@ func (c *NetworkEndpointGroupsAggregatedListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.aggregatedList" call. @@ -45374,7 +45374,7 @@ func (c *NetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt string) "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.attachNetworkEndpoints" call. @@ -45497,7 +45497,7 @@ func (c *NetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.delete" call. @@ -45624,7 +45624,7 @@ func (c *NetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt string) "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.detachNetworkEndpoints" call. @@ -45741,7 +45741,7 @@ func (c *NetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.get" call. @@ -45864,7 +45864,7 @@ func (c *NetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.insert" call. @@ -46055,7 +46055,7 @@ func (c *NetworkEndpointGroupsListCall) doRequest(alt string) (*http.Response, e "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.list" call. @@ -46268,7 +46268,7 @@ func (c *NetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt string) (* "zone": c.zone, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.listNetworkEndpoints" call. @@ -46400,7 +46400,7 @@ func (c *NetworkEndpointGroupsTestIamPermissionsCall) doRequest(alt string) (*ht "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkEndpointGroups.testIamPermissions" call. @@ -46530,7 +46530,7 @@ func (c *NetworkFirewallPoliciesAddAssociationCall) doRequest(alt string) (*http "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.addAssociation" call. @@ -46666,7 +46666,7 @@ func (c *NetworkFirewallPoliciesAddRuleCall) doRequest(alt string) (*http.Respon "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.addRule" call. @@ -46787,7 +46787,7 @@ func (c *NetworkFirewallPoliciesCloneRulesCall) doRequest(alt string) (*http.Res "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.cloneRules" call. @@ -46901,7 +46901,7 @@ func (c *NetworkFirewallPoliciesDeleteCall) doRequest(alt string) (*http.Respons "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.delete" call. @@ -47012,7 +47012,7 @@ func (c *NetworkFirewallPoliciesGetCall) doRequest(alt string) (*http.Response, "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.get" call. @@ -47131,7 +47131,7 @@ func (c *NetworkFirewallPoliciesGetAssociationCall) doRequest(alt string) (*http "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getAssociation" call. @@ -47251,7 +47251,7 @@ func (c *NetworkFirewallPoliciesGetIamPolicyCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getIamPolicy" call. @@ -47370,7 +47370,7 @@ func (c *NetworkFirewallPoliciesGetRuleCall) doRequest(alt string) (*http.Respon "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.getRule" call. @@ -47488,7 +47488,7 @@ func (c *NetworkFirewallPoliciesInsertCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.insert" call. @@ -47674,7 +47674,7 @@ func (c *NetworkFirewallPoliciesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.list" call. @@ -47816,7 +47816,7 @@ func (c *NetworkFirewallPoliciesPatchCall) doRequest(alt string) (*http.Response "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.patch" call. @@ -47943,7 +47943,7 @@ func (c *NetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*http.Resp "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.patchRule" call. @@ -48064,7 +48064,7 @@ func (c *NetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt string) (*h "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.removeAssociation" call. @@ -48185,7 +48185,7 @@ func (c *NetworkFirewallPoliciesRemoveRuleCall) doRequest(alt string) (*http.Res "project": c.project, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.removeRule" call. @@ -48291,7 +48291,7 @@ func (c *NetworkFirewallPoliciesSetIamPolicyCall) doRequest(alt string) (*http.R "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.setIamPolicy" call. @@ -48397,7 +48397,7 @@ func (c *NetworkFirewallPoliciesTestIamPermissionsCall) doRequest(alt string) (* "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networkFirewallPolicies.testIamPermissions" call. @@ -48518,7 +48518,7 @@ func (c *NetworksAddPeeringCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.addPeering" call. @@ -48632,7 +48632,7 @@ func (c *NetworksDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.delete" call. @@ -48743,7 +48743,7 @@ func (c *NetworksGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.get" call. @@ -48854,7 +48854,7 @@ func (c *NetworksGetEffectiveFirewallsCall) doRequest(alt string) (*http.Respons "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.getEffectiveFirewalls" call. @@ -48972,7 +48972,7 @@ func (c *NetworksInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.insert" call. @@ -49157,7 +49157,7 @@ func (c *NetworksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.list" call. @@ -49395,7 +49395,7 @@ func (c *NetworksListPeeringRoutesCall) doRequest(alt string) (*http.Response, e "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.listPeeringRoutes" call. @@ -49538,7 +49538,7 @@ func (c *NetworksPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.patch" call. @@ -49658,7 +49658,7 @@ func (c *NetworksRemovePeeringCall) doRequest(alt string) (*http.Response, error "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.removePeering" call. @@ -49773,7 +49773,7 @@ func (c *NetworksSwitchToCustomModeCall) doRequest(alt string) (*http.Response, "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.switchToCustomMode" call. @@ -49896,7 +49896,7 @@ func (c *NetworksUpdatePeeringCall) doRequest(alt string) (*http.Response, error "project": c.project, "network": c.network, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.networks.updatePeering" call. @@ -50020,7 +50020,7 @@ func (c *NodeGroupsAddNodesCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.addNodes" call. @@ -50229,7 +50229,7 @@ func (c *NodeGroupsAggregatedListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.aggregatedList" call. @@ -50369,7 +50369,7 @@ func (c *NodeGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.delete" call. @@ -50493,7 +50493,7 @@ func (c *NodeGroupsDeleteNodesCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.deleteNodes" call. @@ -50610,7 +50610,7 @@ func (c *NodeGroupsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.get" call. @@ -50733,7 +50733,7 @@ func (c *NodeGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.getIamPolicy" call. @@ -50856,7 +50856,7 @@ func (c *NodeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.insert" call. @@ -51046,7 +51046,7 @@ func (c *NodeGroupsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.list" call. @@ -51248,7 +51248,7 @@ func (c *NodeGroupsListNodesCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.listNodes" call. @@ -51394,7 +51394,7 @@ func (c *NodeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.patch" call. @@ -51519,7 +51519,7 @@ func (c *NodeGroupsPerformMaintenanceCall) doRequest(alt string) (*http.Response "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.performMaintenance" call. @@ -51629,7 +51629,7 @@ func (c *NodeGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.setIamPolicy" call. @@ -51753,7 +51753,7 @@ func (c *NodeGroupsSetNodeTemplateCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.setNodeTemplate" call. @@ -51879,7 +51879,7 @@ func (c *NodeGroupsSimulateMaintenanceEventCall) doRequest(alt string) (*http.Re "zone": c.zone, "nodeGroup": c.nodeGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.simulateMaintenanceEvent" call. @@ -51989,7 +51989,7 @@ func (c *NodeGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeGroups.testIamPermissions" call. @@ -52198,7 +52198,7 @@ func (c *NodeTemplatesAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.aggregatedList" call. @@ -52338,7 +52338,7 @@ func (c *NodeTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) "region": c.region, "nodeTemplate": c.nodeTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.delete" call. @@ -52453,7 +52453,7 @@ func (c *NodeTemplatesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "nodeTemplate": c.nodeTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.get" call. @@ -52576,7 +52576,7 @@ func (c *NodeTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, e "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.getIamPolicy" call. @@ -52697,7 +52697,7 @@ func (c *NodeTemplatesInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.insert" call. @@ -52886,7 +52886,7 @@ func (c *NodeTemplatesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.list" call. @@ -53018,7 +53018,7 @@ func (c *NodeTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, e "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.setIamPolicy" call. @@ -53128,7 +53128,7 @@ func (c *NodeTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Respo "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTemplates.testIamPermissions" call. @@ -53337,7 +53337,7 @@ func (c *NodeTypesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTypes.aggregatedList" call. @@ -53474,7 +53474,7 @@ func (c *NodeTypesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "nodeType": c.nodeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTypes.get" call. @@ -53663,7 +53663,7 @@ func (c *NodeTypesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.nodeTypes.list" call. @@ -53892,7 +53892,7 @@ func (c *PacketMirroringsAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.aggregatedList" call. @@ -54032,7 +54032,7 @@ func (c *PacketMirroringsDeleteCall) doRequest(alt string) (*http.Response, erro "region": c.region, "packetMirroring": c.packetMirroring, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.delete" call. @@ -54147,7 +54147,7 @@ func (c *PacketMirroringsGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "packetMirroring": c.packetMirroring, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.get" call. @@ -54269,7 +54269,7 @@ func (c *PacketMirroringsInsertCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.insert" call. @@ -54459,7 +54459,7 @@ func (c *PacketMirroringsListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.list" call. @@ -54607,7 +54607,7 @@ func (c *PacketMirroringsPatchCall) doRequest(alt string) (*http.Response, error "region": c.region, "packetMirroring": c.packetMirroring, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.patch" call. @@ -54717,7 +54717,7 @@ func (c *PacketMirroringsTestIamPermissionsCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.packetMirrorings.testIamPermissions" call. @@ -54828,7 +54828,7 @@ func (c *ProjectsDisableXpnHostCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.disableXpnHost" call. @@ -54945,7 +54945,7 @@ func (c *ProjectsDisableXpnResourceCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.disableXpnResource" call. @@ -55055,7 +55055,7 @@ func (c *ProjectsEnableXpnHostCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.enableXpnHost" call. @@ -55173,7 +55173,7 @@ func (c *ProjectsEnableXpnResourceCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.enableXpnResource" call. @@ -55286,7 +55286,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.get" call. @@ -55394,7 +55394,7 @@ func (c *ProjectsGetXpnHostCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.getXpnHost" call. @@ -55580,7 +55580,7 @@ func (c *ProjectsGetXpnResourcesCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.getXpnResources" call. @@ -55782,7 +55782,7 @@ func (c *ProjectsListXpnHostsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.listXpnHosts" call. @@ -55919,7 +55919,7 @@ func (c *ProjectsMoveDiskCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.moveDisk" call. @@ -56041,7 +56041,7 @@ func (c *ProjectsMoveInstanceCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.moveInstance" call. @@ -56160,7 +56160,7 @@ func (c *ProjectsSetCloudArmorTierCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setCloudArmorTier" call. @@ -56277,7 +56277,7 @@ func (c *ProjectsSetCommonInstanceMetadataCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setCommonInstanceMetadata" call. @@ -56395,7 +56395,7 @@ func (c *ProjectsSetDefaultNetworkTierCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setDefaultNetworkTier" call. @@ -56513,7 +56513,7 @@ func (c *ProjectsSetUsageExportBucketCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.projects.setUsageExportBucket" call. @@ -56628,7 +56628,7 @@ func (c *PublicAdvertisedPrefixesAnnounceCall) doRequest(alt string) (*http.Resp "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.announce" call. @@ -56743,7 +56743,7 @@ func (c *PublicAdvertisedPrefixesDeleteCall) doRequest(alt string) (*http.Respon "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.delete" call. @@ -56855,7 +56855,7 @@ func (c *PublicAdvertisedPrefixesGetCall) doRequest(alt string) (*http.Response, "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.get" call. @@ -56973,7 +56973,7 @@ func (c *PublicAdvertisedPrefixesInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.insert" call. @@ -57158,7 +57158,7 @@ func (c *PublicAdvertisedPrefixesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.list" call. @@ -57303,7 +57303,7 @@ func (c *PublicAdvertisedPrefixesPatchCall) doRequest(alt string) (*http.Respons "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.patch" call. @@ -57418,7 +57418,7 @@ func (c *PublicAdvertisedPrefixesWithdrawCall) doRequest(alt string) (*http.Resp "project": c.project, "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicAdvertisedPrefixes.withdraw" call. @@ -57626,7 +57626,7 @@ func (c *PublicDelegatedPrefixesAggregatedListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.aggregatedList" call. @@ -57768,7 +57768,7 @@ func (c *PublicDelegatedPrefixesAnnounceCall) doRequest(alt string) (*http.Respo "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.announce" call. @@ -57887,7 +57887,7 @@ func (c *PublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.delete" call. @@ -58004,7 +58004,7 @@ func (c *PublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.get" call. @@ -58126,7 +58126,7 @@ func (c *PublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.insert" call. @@ -58315,7 +58315,7 @@ func (c *PublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.list" call. @@ -58464,7 +58464,7 @@ func (c *PublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Response "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.patch" call. @@ -58584,7 +58584,7 @@ func (c *PublicDelegatedPrefixesWithdrawCall) doRequest(alt string) (*http.Respo "region": c.region, "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.publicDelegatedPrefixes.withdraw" call. diff --git a/compute/v1/compute3-gen.go b/compute/v1/compute3-gen.go index dc8c4d4ffcf..c0d4ddb5e9c 100644 --- a/compute/v1/compute3-gen.go +++ b/compute/v1/compute3-gen.go @@ -94,7 +94,7 @@ func (c *RegionAutoscalersDeleteCall) doRequest(alt string) (*http.Response, err "region": c.region, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.delete" call. @@ -209,7 +209,7 @@ func (c *RegionAutoscalersGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "autoscaler": c.autoscaler, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.get" call. @@ -330,7 +330,7 @@ func (c *RegionAutoscalersInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.insert" call. @@ -519,7 +519,7 @@ func (c *RegionAutoscalersListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.list" call. @@ -670,7 +670,7 @@ func (c *RegionAutoscalersPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.patch" call. @@ -798,7 +798,7 @@ func (c *RegionAutoscalersUpdateCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionAutoscalers.update" call. @@ -916,7 +916,7 @@ func (c *RegionBackendServicesDeleteCall) doRequest(alt string) (*http.Response, "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.delete" call. @@ -1031,7 +1031,7 @@ func (c *RegionBackendServicesGetCall) doRequest(alt string) (*http.Response, er "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.get" call. @@ -1142,7 +1142,7 @@ func (c *RegionBackendServicesGetHealthCall) doRequest(alt string) (*http.Respon "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.getHealth" call. @@ -1266,7 +1266,7 @@ func (c *RegionBackendServicesGetIamPolicyCall) doRequest(alt string) (*http.Res "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.getIamPolicy" call. @@ -1388,7 +1388,7 @@ func (c *RegionBackendServicesInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.insert" call. @@ -1578,7 +1578,7 @@ func (c *RegionBackendServicesListCall) doRequest(alt string) (*http.Response, e "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.list" call. @@ -1791,7 +1791,7 @@ func (c *RegionBackendServicesListUsableCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.listUsable" call. @@ -1940,7 +1940,7 @@ func (c *RegionBackendServicesPatchCall) doRequest(alt string) (*http.Response, "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.patch" call. @@ -2050,7 +2050,7 @@ func (c *RegionBackendServicesSetIamPolicyCall) doRequest(alt string) (*http.Res "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.setIamPolicy" call. @@ -2177,7 +2177,7 @@ func (c *RegionBackendServicesSetSecurityPolicyCall) doRequest(alt string) (*htt "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.setSecurityPolicy" call. @@ -2287,7 +2287,7 @@ func (c *RegionBackendServicesTestIamPermissionsCall) doRequest(alt string) (*ht "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.testIamPermissions" call. @@ -2414,7 +2414,7 @@ func (c *RegionBackendServicesUpdateCall) doRequest(alt string) (*http.Response, "region": c.region, "backendService": c.backendService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionBackendServices.update" call. @@ -2622,7 +2622,7 @@ func (c *RegionCommitmentsAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.aggregatedList" call. @@ -2759,7 +2759,7 @@ func (c *RegionCommitmentsGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "commitment": c.commitment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.get" call. @@ -2880,7 +2880,7 @@ func (c *RegionCommitmentsInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.insert" call. @@ -3069,7 +3069,7 @@ func (c *RegionCommitmentsListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.list" call. @@ -3229,7 +3229,7 @@ func (c *RegionCommitmentsUpdateCall) doRequest(alt string) (*http.Response, err "region": c.region, "commitment": c.commitment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionCommitments.update" call. @@ -3344,7 +3344,7 @@ func (c *RegionDiskTypesGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "diskType": c.diskType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDiskTypes.get" call. @@ -3534,7 +3534,7 @@ func (c *RegionDiskTypesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDiskTypes.list" call. @@ -3682,7 +3682,7 @@ func (c *RegionDisksAddResourcePoliciesCall) doRequest(alt string) (*http.Respon "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.addResourcePolicies" call. @@ -3802,7 +3802,7 @@ func (c *RegionDisksBulkInsertCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.bulkInsert" call. @@ -3929,7 +3929,7 @@ func (c *RegionDisksCreateSnapshotCall) doRequest(alt string) (*http.Response, e "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.createSnapshot" call. @@ -4050,7 +4050,7 @@ func (c *RegionDisksDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.delete" call. @@ -4165,7 +4165,7 @@ func (c *RegionDisksGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.get" call. @@ -4288,7 +4288,7 @@ func (c *RegionDisksGetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.getIamPolicy" call. @@ -4416,7 +4416,7 @@ func (c *RegionDisksInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.insert" call. @@ -4606,7 +4606,7 @@ func (c *RegionDisksListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.list" call. @@ -4751,7 +4751,7 @@ func (c *RegionDisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Res "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.removeResourcePolicies" call. @@ -4875,7 +4875,7 @@ func (c *RegionDisksResizeCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.resize" call. @@ -4985,7 +4985,7 @@ func (c *RegionDisksSetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.setIamPolicy" call. @@ -5109,7 +5109,7 @@ func (c *RegionDisksSetLabelsCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.setLabels" call. @@ -5234,7 +5234,7 @@ func (c *RegionDisksStartAsyncReplicationCall) doRequest(alt string) (*http.Resp "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.startAsyncReplication" call. @@ -5353,7 +5353,7 @@ func (c *RegionDisksStopAsyncReplicationCall) doRequest(alt string) (*http.Respo "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.stopAsyncReplication" call. @@ -5475,7 +5475,7 @@ func (c *RegionDisksStopGroupAsyncReplicationCall) doRequest(alt string) (*http. "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.stopGroupAsyncReplication" call. @@ -5585,7 +5585,7 @@ func (c *RegionDisksTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.testIamPermissions" call. @@ -5725,7 +5725,7 @@ func (c *RegionDisksUpdateCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "disk": c.disk, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionDisks.update" call. @@ -5844,7 +5844,7 @@ func (c *RegionHealthCheckServicesDeleteCall) doRequest(alt string) (*http.Respo "region": c.region, "healthCheckService": c.healthCheckService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.delete" call. @@ -5960,7 +5960,7 @@ func (c *RegionHealthCheckServicesGetCall) doRequest(alt string) (*http.Response "region": c.region, "healthCheckService": c.healthCheckService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.get" call. @@ -6082,7 +6082,7 @@ func (c *RegionHealthCheckServicesInsertCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.insert" call. @@ -6272,7 +6272,7 @@ func (c *RegionHealthCheckServicesListCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.list" call. @@ -6421,7 +6421,7 @@ func (c *RegionHealthCheckServicesPatchCall) doRequest(alt string) (*http.Respon "region": c.region, "healthCheckService": c.healthCheckService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthCheckServices.patch" call. @@ -6539,7 +6539,7 @@ func (c *RegionHealthChecksDeleteCall) doRequest(alt string) (*http.Response, er "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.delete" call. @@ -6654,7 +6654,7 @@ func (c *RegionHealthChecksGetCall) doRequest(alt string) (*http.Response, error "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.get" call. @@ -6775,7 +6775,7 @@ func (c *RegionHealthChecksInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.insert" call. @@ -6965,7 +6965,7 @@ func (c *RegionHealthChecksListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.list" call. @@ -7113,7 +7113,7 @@ func (c *RegionHealthChecksPatchCall) doRequest(alt string) (*http.Response, err "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.patch" call. @@ -7238,7 +7238,7 @@ func (c *RegionHealthChecksUpdateCall) doRequest(alt string) (*http.Response, er "region": c.region, "healthCheck": c.healthCheck, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionHealthChecks.update" call. @@ -7373,7 +7373,7 @@ func (c *RegionInstanceGroupManagersAbandonInstancesCall) doRequest(alt string) "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.abandonInstances" call. @@ -7485,7 +7485,7 @@ func (c *RegionInstanceGroupManagersApplyUpdatesToInstancesCall) doRequest(alt s "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.applyUpdatesToInstances" call. @@ -7615,7 +7615,7 @@ func (c *RegionInstanceGroupManagersCreateInstancesCall) doRequest(alt string) ( "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.createInstances" call. @@ -7734,7 +7734,7 @@ func (c *RegionInstanceGroupManagersDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.delete" call. @@ -7868,7 +7868,7 @@ func (c *RegionInstanceGroupManagersDeleteInstancesCall) doRequest(alt string) ( "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.deleteInstances" call. @@ -7980,7 +7980,7 @@ func (c *RegionInstanceGroupManagersDeletePerInstanceConfigsCall) doRequest(alt "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.deletePerInstanceConfigs" call. @@ -8095,7 +8095,7 @@ func (c *RegionInstanceGroupManagersGetCall) doRequest(alt string) (*http.Respon "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.get" call. @@ -8222,7 +8222,7 @@ func (c *RegionInstanceGroupManagersInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.insert" call. @@ -8412,7 +8412,7 @@ func (c *RegionInstanceGroupManagersListCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.list" call. @@ -8633,7 +8633,7 @@ func (c *RegionInstanceGroupManagersListErrorsCall) doRequest(alt string) (*http "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.listErrors" call. @@ -8841,7 +8841,7 @@ func (c *RegionInstanceGroupManagersListManagedInstancesCall) doRequest(alt stri "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.listManagedInstances" call. @@ -9048,7 +9048,7 @@ func (c *RegionInstanceGroupManagersListPerInstanceConfigsCall) doRequest(alt st "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.listPerInstanceConfigs" call. @@ -9203,7 +9203,7 @@ func (c *RegionInstanceGroupManagersPatchCall) doRequest(alt string) (*http.Resp "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.patch" call. @@ -9331,7 +9331,7 @@ func (c *RegionInstanceGroupManagersPatchPerInstanceConfigsCall) doRequest(alt s "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.patchPerInstanceConfigs" call. @@ -9464,7 +9464,7 @@ func (c *RegionInstanceGroupManagersRecreateInstancesCall) doRequest(alt string) "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.recreateInstances" call. @@ -9594,7 +9594,7 @@ func (c *RegionInstanceGroupManagersResizeCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.resize" call. @@ -9720,7 +9720,7 @@ func (c *RegionInstanceGroupManagersSetInstanceTemplateCall) doRequest(alt strin "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.setInstanceTemplate" call. @@ -9845,7 +9845,7 @@ func (c *RegionInstanceGroupManagersSetTargetPoolsCall) doRequest(alt string) (* "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.setTargetPools" call. @@ -9973,7 +9973,7 @@ func (c *RegionInstanceGroupManagersUpdatePerInstanceConfigsCall) doRequest(alt "region": c.region, "instanceGroupManager": c.instanceGroupManager, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroupManagers.updatePerInstanceConfigs" call. @@ -10088,7 +10088,7 @@ func (c *RegionInstanceGroupsGetCall) doRequest(alt string) (*http.Response, err "region": c.region, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.get" call. @@ -10278,7 +10278,7 @@ func (c *RegionInstanceGroupsListCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.list" call. @@ -10491,7 +10491,7 @@ func (c *RegionInstanceGroupsListInstancesCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.listInstances" call. @@ -10639,7 +10639,7 @@ func (c *RegionInstanceGroupsSetNamedPortsCall) doRequest(alt string) (*http.Res "region": c.region, "instanceGroup": c.instanceGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceGroups.setNamedPorts" call. @@ -10758,7 +10758,7 @@ func (c *RegionInstanceTemplatesDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.delete" call. @@ -10873,7 +10873,7 @@ func (c *RegionInstanceTemplatesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "instanceTemplate": c.instanceTemplate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.get" call. @@ -10995,7 +10995,7 @@ func (c *RegionInstanceTemplatesInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.insert" call. @@ -11185,7 +11185,7 @@ func (c *RegionInstanceTemplatesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstanceTemplates.list" call. @@ -11328,7 +11328,7 @@ func (c *RegionInstancesBulkInsertCall) doRequest(alt string) (*http.Response, e "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstances.bulkInsert" call. @@ -11451,7 +11451,7 @@ func (c *RegionInstantSnapshotsDeleteCall) doRequest(alt string) (*http.Response "region": c.region, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.delete" call. @@ -11566,7 +11566,7 @@ func (c *RegionInstantSnapshotsGetCall) doRequest(alt string) (*http.Response, e "region": c.region, "instantSnapshot": c.instantSnapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.get" call. @@ -11690,7 +11690,7 @@ func (c *RegionInstantSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.getIamPolicy" call. @@ -11810,7 +11810,7 @@ func (c *RegionInstantSnapshotsInsertCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.insert" call. @@ -12000,7 +12000,7 @@ func (c *RegionInstantSnapshotsListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.list" call. @@ -12132,7 +12132,7 @@ func (c *RegionInstantSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.setIamPolicy" call. @@ -12257,7 +12257,7 @@ func (c *RegionInstantSnapshotsSetLabelsCall) doRequest(alt string) (*http.Respo "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.setLabels" call. @@ -12367,7 +12367,7 @@ func (c *RegionInstantSnapshotsTestIamPermissionsCall) doRequest(alt string) (*h "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionInstantSnapshots.testIamPermissions" call. @@ -12495,7 +12495,7 @@ func (c *RegionNetworkEndpointGroupsAttachNetworkEndpointsCall) doRequest(alt st "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.attachNetworkEndpoints" call. @@ -12616,7 +12616,7 @@ func (c *RegionNetworkEndpointGroupsDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.delete" call. @@ -12744,7 +12744,7 @@ func (c *RegionNetworkEndpointGroupsDetachNetworkEndpointsCall) doRequest(alt st "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.detachNetworkEndpoints" call. @@ -12861,7 +12861,7 @@ func (c *RegionNetworkEndpointGroupsGetCall) doRequest(alt string) (*http.Respon "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.get" call. @@ -12984,7 +12984,7 @@ func (c *RegionNetworkEndpointGroupsInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.insert" call. @@ -13175,7 +13175,7 @@ func (c *RegionNetworkEndpointGroupsListCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.list" call. @@ -13382,7 +13382,7 @@ func (c *RegionNetworkEndpointGroupsListNetworkEndpointsCall) doRequest(alt stri "region": c.region, "networkEndpointGroup": c.networkEndpointGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkEndpointGroups.listNetworkEndpoints" call. @@ -13538,7 +13538,7 @@ func (c *RegionNetworkFirewallPoliciesAddAssociationCall) doRequest(alt string) "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.addAssociation" call. @@ -13678,7 +13678,7 @@ func (c *RegionNetworkFirewallPoliciesAddRuleCall) doRequest(alt string) (*http. "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.addRule" call. @@ -13803,7 +13803,7 @@ func (c *RegionNetworkFirewallPoliciesCloneRulesCall) doRequest(alt string) (*ht "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.cloneRules" call. @@ -13921,7 +13921,7 @@ func (c *RegionNetworkFirewallPoliciesDeleteCall) doRequest(alt string) (*http.R "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.delete" call. @@ -14036,7 +14036,7 @@ func (c *RegionNetworkFirewallPoliciesGetCall) doRequest(alt string) (*http.Resp "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.get" call. @@ -14159,7 +14159,7 @@ func (c *RegionNetworkFirewallPoliciesGetAssociationCall) doRequest(alt string) "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getAssociation" call. @@ -14273,7 +14273,7 @@ func (c *RegionNetworkFirewallPoliciesGetEffectiveFirewallsCall) doRequest(alt s "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getEffectiveFirewalls" call. @@ -14397,7 +14397,7 @@ func (c *RegionNetworkFirewallPoliciesGetIamPolicyCall) doRequest(alt string) (* "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getIamPolicy" call. @@ -14520,7 +14520,7 @@ func (c *RegionNetworkFirewallPoliciesGetRuleCall) doRequest(alt string) (*http. "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.getRule" call. @@ -14642,7 +14642,7 @@ func (c *RegionNetworkFirewallPoliciesInsertCall) doRequest(alt string) (*http.R "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.insert" call. @@ -14832,7 +14832,7 @@ func (c *RegionNetworkFirewallPoliciesListCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.list" call. @@ -14978,7 +14978,7 @@ func (c *RegionNetworkFirewallPoliciesPatchCall) doRequest(alt string) (*http.Re "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.patch" call. @@ -15109,7 +15109,7 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*htt "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.patchRule" call. @@ -15235,7 +15235,7 @@ func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt strin "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.removeAssociation" call. @@ -15360,7 +15360,7 @@ func (c *RegionNetworkFirewallPoliciesRemoveRuleCall) doRequest(alt string) (*ht "region": c.region, "firewallPolicy": c.firewallPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.removeRule" call. @@ -15470,7 +15470,7 @@ func (c *RegionNetworkFirewallPoliciesSetIamPolicyCall) doRequest(alt string) (* "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.setIamPolicy" call. @@ -15580,7 +15580,7 @@ func (c *RegionNetworkFirewallPoliciesTestIamPermissionsCall) doRequest(alt stri "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNetworkFirewallPolicies.testIamPermissions" call. @@ -15699,7 +15699,7 @@ func (c *RegionNotificationEndpointsDeleteCall) doRequest(alt string) (*http.Res "region": c.region, "notificationEndpoint": c.notificationEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.delete" call. @@ -15815,7 +15815,7 @@ func (c *RegionNotificationEndpointsGetCall) doRequest(alt string) (*http.Respon "region": c.region, "notificationEndpoint": c.notificationEndpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.get" call. @@ -15937,7 +15937,7 @@ func (c *RegionNotificationEndpointsInsertCall) doRequest(alt string) (*http.Res "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.insert" call. @@ -16126,7 +16126,7 @@ func (c *RegionNotificationEndpointsListCall) doRequest(alt string) (*http.Respo "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionNotificationEndpoints.list" call. @@ -16252,7 +16252,7 @@ func (c *RegionOperationsDeleteCall) doRequest(alt string) (*http.Response, erro "region": c.region, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.delete" call. @@ -16345,7 +16345,7 @@ func (c *RegionOperationsGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.get" call. @@ -16535,7 +16535,7 @@ func (c *RegionOperationsListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.list" call. @@ -16670,7 +16670,7 @@ func (c *RegionOperationsWaitCall) doRequest(alt string) (*http.Response, error) "region": c.region, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionOperations.wait" call. @@ -16786,7 +16786,7 @@ func (c *RegionSecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Respons "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.addRule" call. @@ -16904,7 +16904,7 @@ func (c *RegionSecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.delete" call. @@ -17019,7 +17019,7 @@ func (c *RegionSecurityPoliciesGetCall) doRequest(alt string) (*http.Response, e "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.get" call. @@ -17142,7 +17142,7 @@ func (c *RegionSecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Respons "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.getRule" call. @@ -17271,7 +17271,7 @@ func (c *RegionSecurityPoliciesInsertCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.insert" call. @@ -17461,7 +17461,7 @@ func (c *RegionSecurityPoliciesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.list" call. @@ -17618,7 +17618,7 @@ func (c *RegionSecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.patch" call. @@ -17749,7 +17749,7 @@ func (c *RegionSecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Respo "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.patchRule" call. @@ -17859,7 +17859,7 @@ func (c *RegionSecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Resp "region": c.region, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSecurityPolicies.removeRule" call. @@ -17977,7 +17977,7 @@ func (c *RegionSslCertificatesDeleteCall) doRequest(alt string) (*http.Response, "region": c.region, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.delete" call. @@ -18093,7 +18093,7 @@ func (c *RegionSslCertificatesGetCall) doRequest(alt string) (*http.Response, er "region": c.region, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.get" call. @@ -18214,7 +18214,7 @@ func (c *RegionSslCertificatesInsertCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.insert" call. @@ -18404,7 +18404,7 @@ func (c *RegionSslCertificatesListCall) doRequest(alt string) (*http.Response, e "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslCertificates.list" call. @@ -18547,7 +18547,7 @@ func (c *RegionSslPoliciesDeleteCall) doRequest(alt string) (*http.Response, err "region": c.region, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.delete" call. @@ -18663,7 +18663,7 @@ func (c *RegionSslPoliciesGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.get" call. @@ -18784,7 +18784,7 @@ func (c *RegionSslPoliciesInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.insert" call. @@ -18974,7 +18974,7 @@ func (c *RegionSslPoliciesListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.list" call. @@ -19186,7 +19186,7 @@ func (c *RegionSslPoliciesListAvailableFeaturesCall) doRequest(alt string) (*htt "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.listAvailableFeatures" call. @@ -19313,7 +19313,7 @@ func (c *RegionSslPoliciesPatchCall) doRequest(alt string) (*http.Response, erro "region": c.region, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionSslPolicies.patch" call. @@ -19431,7 +19431,7 @@ func (c *RegionTargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.delete" call. @@ -19546,7 +19546,7 @@ func (c *RegionTargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.get" call. @@ -19668,7 +19668,7 @@ func (c *RegionTargetHttpProxiesInsertCall) doRequest(alt string) (*http.Respons "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.insert" call. @@ -19858,7 +19858,7 @@ func (c *RegionTargetHttpProxiesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.list" call. @@ -20004,7 +20004,7 @@ func (c *RegionTargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Resp "region": c.region, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpProxies.setUrlMap" call. @@ -20122,7 +20122,7 @@ func (c *RegionTargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Respon "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.delete" call. @@ -20238,7 +20238,7 @@ func (c *RegionTargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.get" call. @@ -20360,7 +20360,7 @@ func (c *RegionTargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Respon "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.insert" call. @@ -20550,7 +20550,7 @@ func (c *RegionTargetHttpsProxiesListCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.list" call. @@ -20698,7 +20698,7 @@ func (c *RegionTargetHttpsProxiesPatchCall) doRequest(alt string) (*http.Respons "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.patch" call. @@ -20823,7 +20823,7 @@ func (c *RegionTargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) ( "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.setSslCertificates" call. @@ -20947,7 +20947,7 @@ func (c *RegionTargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Res "region": c.region, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetHttpsProxies.setUrlMap" call. @@ -21065,7 +21065,7 @@ func (c *RegionTargetTcpProxiesDeleteCall) doRequest(alt string) (*http.Response "region": c.region, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.delete" call. @@ -21180,7 +21180,7 @@ func (c *RegionTargetTcpProxiesGetCall) doRequest(alt string) (*http.Response, e "region": c.region, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.get" call. @@ -21301,7 +21301,7 @@ func (c *RegionTargetTcpProxiesInsertCall) doRequest(alt string) (*http.Response "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.insert" call. @@ -21491,7 +21491,7 @@ func (c *RegionTargetTcpProxiesListCall) doRequest(alt string) (*http.Response, "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionTargetTcpProxies.list" call. @@ -21623,7 +21623,7 @@ func (c *RegionUrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.delete" call. @@ -21738,7 +21738,7 @@ func (c *RegionUrlMapsGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.get" call. @@ -21851,7 +21851,7 @@ func (c *RegionUrlMapsInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.insert" call. @@ -22041,7 +22041,7 @@ func (c *RegionUrlMapsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.list" call. @@ -22180,7 +22180,7 @@ func (c *RegionUrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.patch" call. @@ -22297,7 +22297,7 @@ func (c *RegionUrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.update" call. @@ -22408,7 +22408,7 @@ func (c *RegionUrlMapsValidateCall) doRequest(alt string) (*http.Response, error "region": c.region, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionUrlMaps.validate" call. @@ -22599,7 +22599,7 @@ func (c *RegionZonesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regionZones.list" call. @@ -22743,7 +22743,7 @@ func (c *RegionsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regions.get" call. @@ -22941,7 +22941,7 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.regions.list" call. @@ -23170,7 +23170,7 @@ func (c *ReservationsAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.aggregatedList" call. @@ -23310,7 +23310,7 @@ func (c *ReservationsDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.delete" call. @@ -23425,7 +23425,7 @@ func (c *ReservationsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.get" call. @@ -23548,7 +23548,7 @@ func (c *ReservationsGetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.getIamPolicy" call. @@ -23669,7 +23669,7 @@ func (c *ReservationsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.insert" call. @@ -23859,7 +23859,7 @@ func (c *ReservationsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.list" call. @@ -24006,7 +24006,7 @@ func (c *ReservationsResizeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.resize" call. @@ -24116,7 +24116,7 @@ func (c *ReservationsSetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.setIamPolicy" call. @@ -24226,7 +24226,7 @@ func (c *ReservationsTestIamPermissionsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.testIamPermissions" call. @@ -24364,7 +24364,7 @@ func (c *ReservationsUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "reservation": c.reservation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.reservations.update" call. @@ -24572,7 +24572,7 @@ func (c *ResourcePoliciesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.aggregatedList" call. @@ -24712,7 +24712,7 @@ func (c *ResourcePoliciesDeleteCall) doRequest(alt string) (*http.Response, erro "region": c.region, "resourcePolicy": c.resourcePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.delete" call. @@ -24827,7 +24827,7 @@ func (c *ResourcePoliciesGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resourcePolicy": c.resourcePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.get" call. @@ -24950,7 +24950,7 @@ func (c *ResourcePoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.getIamPolicy" call. @@ -25070,7 +25070,7 @@ func (c *ResourcePoliciesInsertCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.insert" call. @@ -25260,7 +25260,7 @@ func (c *ResourcePoliciesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.list" call. @@ -25413,7 +25413,7 @@ func (c *ResourcePoliciesPatchCall) doRequest(alt string) (*http.Response, error "region": c.region, "resourcePolicy": c.resourcePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.patch" call. @@ -25523,7 +25523,7 @@ func (c *ResourcePoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.setIamPolicy" call. @@ -25633,7 +25633,7 @@ func (c *ResourcePoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Re "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.resourcePolicies.testIamPermissions" call. @@ -25842,7 +25842,7 @@ func (c *RoutersAggregatedListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.aggregatedList" call. @@ -25982,7 +25982,7 @@ func (c *RoutersDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.delete" call. @@ -26097,7 +26097,7 @@ func (c *RoutersGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.get" call. @@ -26221,7 +26221,7 @@ func (c *RoutersGetNatIpInfoCall) doRequest(alt string) (*http.Response, error) "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getNatIpInfo" call. @@ -26425,7 +26425,7 @@ func (c *RoutersGetNatMappingInfoCall) doRequest(alt string) (*http.Response, er "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getNatMappingInfo" call. @@ -26562,7 +26562,7 @@ func (c *RoutersGetRouterStatusCall) doRequest(alt string) (*http.Response, erro "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.getRouterStatus" call. @@ -26684,7 +26684,7 @@ func (c *RoutersInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.insert" call. @@ -26874,7 +26874,7 @@ func (c *RoutersListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.list" call. @@ -27021,7 +27021,7 @@ func (c *RoutersPatchCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.patch" call. @@ -27131,7 +27131,7 @@ func (c *RoutersPreviewCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.preview" call. @@ -27259,7 +27259,7 @@ func (c *RoutersUpdateCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "router": c.router, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routers.update" call. @@ -27373,7 +27373,7 @@ func (c *RoutesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "route": c.route, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.delete" call. @@ -27484,7 +27484,7 @@ func (c *RoutesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "route": c.route, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.get" call. @@ -27601,7 +27601,7 @@ func (c *RoutesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.insert" call. @@ -27787,7 +27787,7 @@ func (c *RoutesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.routes.list" call. @@ -27920,7 +27920,7 @@ func (c *SecurityPoliciesAddRuleCall) doRequest(alt string) (*http.Response, err "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.addRule" call. @@ -28128,7 +28128,7 @@ func (c *SecurityPoliciesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.aggregatedList" call. @@ -28264,7 +28264,7 @@ func (c *SecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.delete" call. @@ -28375,7 +28375,7 @@ func (c *SecurityPoliciesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.get" call. @@ -28494,7 +28494,7 @@ func (c *SecurityPoliciesGetRuleCall) doRequest(alt string) (*http.Response, err "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.getRule" call. @@ -28619,7 +28619,7 @@ func (c *SecurityPoliciesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.insert" call. @@ -28805,7 +28805,7 @@ func (c *SecurityPoliciesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.list" call. @@ -29013,7 +29013,7 @@ func (c *SecurityPoliciesListPreconfiguredExpressionSetsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.listPreconfiguredExpressionSets" call. @@ -29145,7 +29145,7 @@ func (c *SecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.patch" call. @@ -29272,7 +29272,7 @@ func (c *SecurityPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, e "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.patchRule" call. @@ -29378,7 +29378,7 @@ func (c *SecurityPoliciesRemoveRuleCall) doRequest(alt string) (*http.Response, "project": c.project, "securityPolicy": c.securityPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.removeRule" call. @@ -29484,7 +29484,7 @@ func (c *SecurityPoliciesSetLabelsCall) doRequest(alt string) (*http.Response, e "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.securityPolicies.setLabels" call. @@ -29693,7 +29693,7 @@ func (c *ServiceAttachmentsAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.aggregatedList" call. @@ -29833,7 +29833,7 @@ func (c *ServiceAttachmentsDeleteCall) doRequest(alt string) (*http.Response, er "region": c.region, "serviceAttachment": c.serviceAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.delete" call. @@ -29948,7 +29948,7 @@ func (c *ServiceAttachmentsGetCall) doRequest(alt string) (*http.Response, error "region": c.region, "serviceAttachment": c.serviceAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.get" call. @@ -30072,7 +30072,7 @@ func (c *ServiceAttachmentsGetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.getIamPolicy" call. @@ -30193,7 +30193,7 @@ func (c *ServiceAttachmentsInsertCall) doRequest(alt string) (*http.Response, er "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.insert" call. @@ -30382,7 +30382,7 @@ func (c *ServiceAttachmentsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.list" call. @@ -30532,7 +30532,7 @@ func (c *ServiceAttachmentsPatchCall) doRequest(alt string) (*http.Response, err "region": c.region, "serviceAttachment": c.serviceAttachment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.patch" call. @@ -30642,7 +30642,7 @@ func (c *ServiceAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Respon "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.setIamPolicy" call. @@ -30752,7 +30752,7 @@ func (c *ServiceAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http. "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.serviceAttachments.testIamPermissions" call. @@ -30860,7 +30860,7 @@ func (c *SnapshotSettingsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshotSettings.get" call. @@ -30984,7 +30984,7 @@ func (c *SnapshotSettingsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshotSettings.patch" call. @@ -31102,7 +31102,7 @@ func (c *SnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "snapshot": c.snapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.delete" call. @@ -31213,7 +31213,7 @@ func (c *SnapshotsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "snapshot": c.snapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.get" call. @@ -31332,7 +31332,7 @@ func (c *SnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.getIamPolicy" call. @@ -31451,7 +31451,7 @@ func (c *SnapshotsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.insert" call. @@ -31637,7 +31637,7 @@ func (c *SnapshotsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.list" call. @@ -31764,7 +31764,7 @@ func (c *SnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.setIamPolicy" call. @@ -31870,7 +31870,7 @@ func (c *SnapshotsSetLabelsCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.setLabels" call. @@ -31976,7 +31976,7 @@ func (c *SnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.snapshots.testIamPermissions" call. @@ -32185,7 +32185,7 @@ func (c *SslCertificatesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.aggregatedList" call. @@ -32321,7 +32321,7 @@ func (c *SslCertificatesDeleteCall) doRequest(alt string) (*http.Response, error "project": c.project, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.delete" call. @@ -32432,7 +32432,7 @@ func (c *SslCertificatesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslCertificate": c.sslCertificate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.get" call. @@ -32549,7 +32549,7 @@ func (c *SslCertificatesInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.insert" call. @@ -32735,7 +32735,7 @@ func (c *SslCertificatesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslCertificates.list" call. @@ -32965,7 +32965,7 @@ func (c *SslPoliciesAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.aggregatedList" call. @@ -33104,7 +33104,7 @@ func (c *SslPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.delete" call. @@ -33216,7 +33216,7 @@ func (c *SslPoliciesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.get" call. @@ -33332,7 +33332,7 @@ func (c *SslPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.insert" call. @@ -33518,7 +33518,7 @@ func (c *SslPoliciesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.list" call. @@ -33726,7 +33726,7 @@ func (c *SslPoliciesListAvailableFeaturesCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.listAvailableFeatures" call. @@ -33849,7 +33849,7 @@ func (c *SslPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "sslPolicy": c.sslPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.sslPolicies.patch" call. @@ -34057,7 +34057,7 @@ func (c *StoragePoolTypesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePoolTypes.aggregatedList" call. @@ -34194,7 +34194,7 @@ func (c *StoragePoolTypesGetCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "storagePoolType": c.storagePoolType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePoolTypes.get" call. @@ -34385,7 +34385,7 @@ func (c *StoragePoolTypesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePoolTypes.list" call. @@ -34615,7 +34615,7 @@ func (c *StoragePoolsAggregatedListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.aggregatedList" call. @@ -34758,7 +34758,7 @@ func (c *StoragePoolsDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.delete" call. @@ -34874,7 +34874,7 @@ func (c *StoragePoolsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.get" call. @@ -34997,7 +34997,7 @@ func (c *StoragePoolsGetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.getIamPolicy" call. @@ -35118,7 +35118,7 @@ func (c *StoragePoolsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.insert" call. @@ -35307,7 +35307,7 @@ func (c *StoragePoolsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.list" call. @@ -35522,7 +35522,7 @@ func (c *StoragePoolsListDisksCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.listDisks" call. @@ -35654,7 +35654,7 @@ func (c *StoragePoolsSetIamPolicyCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.setIamPolicy" call. @@ -35764,7 +35764,7 @@ func (c *StoragePoolsTestIamPermissionsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.testIamPermissions" call. @@ -35900,7 +35900,7 @@ func (c *StoragePoolsUpdateCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "storagePool": c.storagePool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.storagePools.update" call. @@ -36108,7 +36108,7 @@ func (c *SubnetworksAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.aggregatedList" call. @@ -36248,7 +36248,7 @@ func (c *SubnetworksDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.delete" call. @@ -36373,7 +36373,7 @@ func (c *SubnetworksExpandIpCidrRangeCall) doRequest(alt string) (*http.Response "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.expandIpCidrRange" call. @@ -36488,7 +36488,7 @@ func (c *SubnetworksGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.get" call. @@ -36611,7 +36611,7 @@ func (c *SubnetworksGetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.getIamPolicy" call. @@ -36732,7 +36732,7 @@ func (c *SubnetworksInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.insert" call. @@ -36921,7 +36921,7 @@ func (c *SubnetworksListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.list" call. @@ -37128,7 +37128,7 @@ func (c *SubnetworksListUsableCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.listUsable" call. @@ -37291,7 +37291,7 @@ func (c *SubnetworksPatchCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.patch" call. @@ -37401,7 +37401,7 @@ func (c *SubnetworksSetIamPolicyCall) doRequest(alt string) (*http.Response, err "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.setIamPolicy" call. @@ -37527,7 +37527,7 @@ func (c *SubnetworksSetPrivateIpGoogleAccessCall) doRequest(alt string) (*http.R "region": c.region, "subnetwork": c.subnetwork, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.setPrivateIpGoogleAccess" call. @@ -37637,7 +37637,7 @@ func (c *SubnetworksTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.subnetworks.testIamPermissions" call. @@ -37752,7 +37752,7 @@ func (c *TargetGrpcProxiesDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "targetGrpcProxy": c.targetGrpcProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.delete" call. @@ -37863,7 +37863,7 @@ func (c *TargetGrpcProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetGrpcProxy": c.targetGrpcProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.get" call. @@ -37981,7 +37981,7 @@ func (c *TargetGrpcProxiesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.insert" call. @@ -38166,7 +38166,7 @@ func (c *TargetGrpcProxiesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.list" call. @@ -38310,7 +38310,7 @@ func (c *TargetGrpcProxiesPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetGrpcProxy": c.targetGrpcProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetGrpcProxies.patch" call. @@ -38519,7 +38519,7 @@ func (c *TargetHttpProxiesAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.aggregatedList" call. @@ -38655,7 +38655,7 @@ func (c *TargetHttpProxiesDeleteCall) doRequest(alt string) (*http.Response, err "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.delete" call. @@ -38766,7 +38766,7 @@ func (c *TargetHttpProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.get" call. @@ -38884,7 +38884,7 @@ func (c *TargetHttpProxiesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.insert" call. @@ -39070,7 +39070,7 @@ func (c *TargetHttpProxiesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.list" call. @@ -39214,7 +39214,7 @@ func (c *TargetHttpProxiesPatchCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.patch" call. @@ -39334,7 +39334,7 @@ func (c *TargetHttpProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, "project": c.project, "targetHttpProxy": c.targetHttpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpProxies.setUrlMap" call. @@ -39543,7 +39543,7 @@ func (c *TargetHttpsProxiesAggregatedListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.aggregatedList" call. @@ -39679,7 +39679,7 @@ func (c *TargetHttpsProxiesDeleteCall) doRequest(alt string) (*http.Response, er "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.delete" call. @@ -39790,7 +39790,7 @@ func (c *TargetHttpsProxiesGetCall) doRequest(alt string) (*http.Response, error "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.get" call. @@ -39908,7 +39908,7 @@ func (c *TargetHttpsProxiesInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.insert" call. @@ -40094,7 +40094,7 @@ func (c *TargetHttpsProxiesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.list" call. @@ -40238,7 +40238,7 @@ func (c *TargetHttpsProxiesPatchCall) doRequest(alt string) (*http.Response, err "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.patch" call. @@ -40360,7 +40360,7 @@ func (c *TargetHttpsProxiesSetCertificateMapCall) doRequest(alt string) (*http.R "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setCertificateMap" call. @@ -40481,7 +40481,7 @@ func (c *TargetHttpsProxiesSetQuicOverrideCall) doRequest(alt string) (*http.Res "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setQuicOverride" call. @@ -40602,7 +40602,7 @@ func (c *TargetHttpsProxiesSetSslCertificatesCall) doRequest(alt string) (*http. "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setSslCertificates" call. @@ -40727,7 +40727,7 @@ func (c *TargetHttpsProxiesSetSslPolicyCall) doRequest(alt string) (*http.Respon "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setSslPolicy" call. @@ -40848,7 +40848,7 @@ func (c *TargetHttpsProxiesSetUrlMapCall) doRequest(alt string) (*http.Response, "project": c.project, "targetHttpsProxy": c.targetHttpsProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetHttpsProxies.setUrlMap" call. @@ -41056,7 +41056,7 @@ func (c *TargetInstancesAggregatedListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.aggregatedList" call. @@ -41196,7 +41196,7 @@ func (c *TargetInstancesDeleteCall) doRequest(alt string) (*http.Response, error "zone": c.zone, "targetInstance": c.targetInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.delete" call. @@ -41311,7 +41311,7 @@ func (c *TargetInstancesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "targetInstance": c.targetInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.get" call. @@ -41432,7 +41432,7 @@ func (c *TargetInstancesInsertCall) doRequest(alt string) (*http.Response, error "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.insert" call. @@ -41622,7 +41622,7 @@ func (c *TargetInstancesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.list" call. @@ -41771,7 +41771,7 @@ func (c *TargetInstancesSetSecurityPolicyCall) doRequest(alt string) (*http.Resp "zone": c.zone, "targetInstance": c.targetInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetInstances.setSecurityPolicy" call. @@ -41895,7 +41895,7 @@ func (c *TargetPoolsAddHealthCheckCall) doRequest(alt string) (*http.Response, e "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.addHealthCheck" call. @@ -42019,7 +42019,7 @@ func (c *TargetPoolsAddInstanceCall) doRequest(alt string) (*http.Response, erro "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.addInstance" call. @@ -42227,7 +42227,7 @@ func (c *TargetPoolsAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.aggregatedList" call. @@ -42367,7 +42367,7 @@ func (c *TargetPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.delete" call. @@ -42482,7 +42482,7 @@ func (c *TargetPoolsGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.get" call. @@ -42593,7 +42593,7 @@ func (c *TargetPoolsGetHealthCall) doRequest(alt string) (*http.Response, error) "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.getHealth" call. @@ -42715,7 +42715,7 @@ func (c *TargetPoolsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.insert" call. @@ -42905,7 +42905,7 @@ func (c *TargetPoolsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.list" call. @@ -43050,7 +43050,7 @@ func (c *TargetPoolsRemoveHealthCheckCall) doRequest(alt string) (*http.Response "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.removeHealthCheck" call. @@ -43174,7 +43174,7 @@ func (c *TargetPoolsRemoveInstanceCall) doRequest(alt string) (*http.Response, e "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.removeInstance" call. @@ -43305,7 +43305,7 @@ func (c *TargetPoolsSetBackupCall) doRequest(alt string) (*http.Response, error) "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.setBackup" call. @@ -43431,7 +43431,7 @@ func (c *TargetPoolsSetSecurityPolicyCall) doRequest(alt string) (*http.Response "region": c.region, "targetPool": c.targetPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetPools.setSecurityPolicy" call. @@ -43545,7 +43545,7 @@ func (c *TargetSslProxiesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.delete" call. @@ -43656,7 +43656,7 @@ func (c *TargetSslProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.get" call. @@ -43773,7 +43773,7 @@ func (c *TargetSslProxiesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.insert" call. @@ -43959,7 +43959,7 @@ func (c *TargetSslProxiesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.list" call. @@ -44102,7 +44102,7 @@ func (c *TargetSslProxiesSetBackendServiceCall) doRequest(alt string) (*http.Res "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setBackendService" call. @@ -44224,7 +44224,7 @@ func (c *TargetSslProxiesSetCertificateMapCall) doRequest(alt string) (*http.Res "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setCertificateMap" call. @@ -44345,7 +44345,7 @@ func (c *TargetSslProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Respon "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setProxyHeader" call. @@ -44466,7 +44466,7 @@ func (c *TargetSslProxiesSetSslCertificatesCall) doRequest(alt string) (*http.Re "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setSslCertificates" call. @@ -44590,7 +44590,7 @@ func (c *TargetSslProxiesSetSslPolicyCall) doRequest(alt string) (*http.Response "project": c.project, "targetSslProxy": c.targetSslProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetSslProxies.setSslPolicy" call. @@ -44798,7 +44798,7 @@ func (c *TargetTcpProxiesAggregatedListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.aggregatedList" call. @@ -44934,7 +44934,7 @@ func (c *TargetTcpProxiesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.delete" call. @@ -45045,7 +45045,7 @@ func (c *TargetTcpProxiesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.get" call. @@ -45162,7 +45162,7 @@ func (c *TargetTcpProxiesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.insert" call. @@ -45348,7 +45348,7 @@ func (c *TargetTcpProxiesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.list" call. @@ -45491,7 +45491,7 @@ func (c *TargetTcpProxiesSetBackendServiceCall) doRequest(alt string) (*http.Res "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.setBackendService" call. @@ -45612,7 +45612,7 @@ func (c *TargetTcpProxiesSetProxyHeaderCall) doRequest(alt string) (*http.Respon "project": c.project, "targetTcpProxy": c.targetTcpProxy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetTcpProxies.setProxyHeader" call. @@ -45820,7 +45820,7 @@ func (c *TargetVpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.aggregatedList" call. @@ -45960,7 +45960,7 @@ func (c *TargetVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, err "region": c.region, "targetVpnGateway": c.targetVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.delete" call. @@ -46075,7 +46075,7 @@ func (c *TargetVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) "region": c.region, "targetVpnGateway": c.targetVpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.get" call. @@ -46197,7 +46197,7 @@ func (c *TargetVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, err "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.insert" call. @@ -46387,7 +46387,7 @@ func (c *TargetVpnGatewaysListCall) doRequest(alt string) (*http.Response, error "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.list" call. @@ -46534,7 +46534,7 @@ func (c *TargetVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.targetVpnGateways.setLabels" call. @@ -46742,7 +46742,7 @@ func (c *UrlMapsAggregatedListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.aggregatedList" call. @@ -46878,7 +46878,7 @@ func (c *UrlMapsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.delete" call. @@ -46989,7 +46989,7 @@ func (c *UrlMapsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.get" call. @@ -47106,7 +47106,7 @@ func (c *UrlMapsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.insert" call. @@ -47228,7 +47228,7 @@ func (c *UrlMapsInvalidateCacheCall) doRequest(alt string) (*http.Response, erro "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.invalidateCache" call. @@ -47414,7 +47414,7 @@ func (c *UrlMapsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.list" call. @@ -47557,7 +47557,7 @@ func (c *UrlMapsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.patch" call. @@ -47678,7 +47678,7 @@ func (c *UrlMapsUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.update" call. @@ -47785,7 +47785,7 @@ func (c *UrlMapsValidateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "urlMap": c.urlMap, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.urlMaps.validate" call. @@ -47994,7 +47994,7 @@ func (c *VpnGatewaysAggregatedListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.aggregatedList" call. @@ -48134,7 +48134,7 @@ func (c *VpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnGateway": c.vpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.delete" call. @@ -48249,7 +48249,7 @@ func (c *VpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnGateway": c.vpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.get" call. @@ -48364,7 +48364,7 @@ func (c *VpnGatewaysGetStatusCall) doRequest(alt string) (*http.Response, error) "region": c.region, "vpnGateway": c.vpnGateway, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.getStatus" call. @@ -48486,7 +48486,7 @@ func (c *VpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.insert" call. @@ -48676,7 +48676,7 @@ func (c *VpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.list" call. @@ -48822,7 +48822,7 @@ func (c *VpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.setLabels" call. @@ -48932,7 +48932,7 @@ func (c *VpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Respons "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnGateways.testIamPermissions" call. @@ -49141,7 +49141,7 @@ func (c *VpnTunnelsAggregatedListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.aggregatedList" call. @@ -49281,7 +49281,7 @@ func (c *VpnTunnelsDeleteCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnTunnel": c.vpnTunnel, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.delete" call. @@ -49396,7 +49396,7 @@ func (c *VpnTunnelsGetCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "vpnTunnel": c.vpnTunnel, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.get" call. @@ -49517,7 +49517,7 @@ func (c *VpnTunnelsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.insert" call. @@ -49707,7 +49707,7 @@ func (c *VpnTunnelsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.list" call. @@ -49853,7 +49853,7 @@ func (c *VpnTunnelsSetLabelsCall) doRequest(alt string) (*http.Response, error) "region": c.region, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.vpnTunnels.setLabels" call. @@ -49957,7 +49957,7 @@ func (c *ZoneOperationsDeleteCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.delete" call. @@ -50050,7 +50050,7 @@ func (c *ZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.get" call. @@ -50240,7 +50240,7 @@ func (c *ZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.list" call. @@ -50374,7 +50374,7 @@ func (c *ZoneOperationsWaitCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "operation": c.operationid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zoneOperations.wait" call. @@ -50485,7 +50485,7 @@ func (c *ZonesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zones.get" call. @@ -50671,7 +50671,7 @@ func (c *ZonesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "compute.zones.list" call. diff --git a/config/v1/config-gen.go b/config/v1/config-gen.go index d970f7e10b7..f4a3eb8f4c8 100644 --- a/config/v1/config-gen.go +++ b/config/v1/config-gen.go @@ -2156,7 +2156,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.get" call. @@ -2287,7 +2287,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.list" call. @@ -2434,7 +2434,7 @@ func (c *ProjectsLocationsDeploymentsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.create" call. @@ -2573,7 +2573,7 @@ func (c *ProjectsLocationsDeploymentsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.delete" call. @@ -2675,7 +2675,7 @@ func (c *ProjectsLocationsDeploymentsDeleteStateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.deleteState" call. @@ -2783,7 +2783,7 @@ func (c *ProjectsLocationsDeploymentsExportLockCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.exportLock" call. @@ -2886,7 +2886,7 @@ func (c *ProjectsLocationsDeploymentsExportStateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.exportState" call. @@ -2994,7 +2994,7 @@ func (c *ProjectsLocationsDeploymentsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.get" call. @@ -3121,7 +3121,7 @@ func (c *ProjectsLocationsDeploymentsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.getIamPolicy" call. @@ -3225,7 +3225,7 @@ func (c *ProjectsLocationsDeploymentsImportStateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.importState" call. @@ -3372,7 +3372,7 @@ func (c *ProjectsLocationsDeploymentsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.list" call. @@ -3496,7 +3496,7 @@ func (c *ProjectsLocationsDeploymentsLockCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.lock" call. @@ -3625,7 +3625,7 @@ func (c *ProjectsLocationsDeploymentsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.patch" call. @@ -3730,7 +3730,7 @@ func (c *ProjectsLocationsDeploymentsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.setIamPolicy" call. @@ -3838,7 +3838,7 @@ func (c *ProjectsLocationsDeploymentsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.testIamPermissions" call. @@ -3941,7 +3941,7 @@ func (c *ProjectsLocationsDeploymentsUnlockCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.unlock" call. @@ -4045,7 +4045,7 @@ func (c *ProjectsLocationsDeploymentsRevisionsExportStateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.revisions.exportState" call. @@ -4154,7 +4154,7 @@ func (c *ProjectsLocationsDeploymentsRevisionsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.revisions.get" call. @@ -4302,7 +4302,7 @@ func (c *ProjectsLocationsDeploymentsRevisionsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.revisions.list" call. @@ -4433,7 +4433,7 @@ func (c *ProjectsLocationsDeploymentsRevisionsResourcesGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.revisions.resources.get" call. @@ -4581,7 +4581,7 @@ func (c *ProjectsLocationsDeploymentsRevisionsResourcesListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.deployments.revisions.resources.list" call. @@ -4712,7 +4712,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.operations.cancel" call. @@ -4810,7 +4810,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.operations.delete" call. @@ -4919,7 +4919,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.operations.get" call. @@ -5047,7 +5047,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.operations.list" call. @@ -5193,7 +5193,7 @@ func (c *ProjectsLocationsPreviewsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.previews.create" call. @@ -5305,7 +5305,7 @@ func (c *ProjectsLocationsPreviewsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.previews.delete" call. @@ -5408,7 +5408,7 @@ func (c *ProjectsLocationsPreviewsExportCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.previews.export" call. @@ -5517,7 +5517,7 @@ func (c *ProjectsLocationsPreviewsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.previews.get" call. @@ -5664,7 +5664,7 @@ func (c *ProjectsLocationsPreviewsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.previews.list" call. @@ -5795,7 +5795,7 @@ func (c *ProjectsLocationsTerraformVersionsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.terraformVersions.get" call. @@ -5940,7 +5940,7 @@ func (c *ProjectsLocationsTerraformVersionsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "config.projects.locations.terraformVersions.list" call. diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 08ef23a15dd..026ff0bff0f 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -5734,7 +5734,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.get" call. @@ -5842,7 +5842,7 @@ func (c *ProjectsLocationsGetRegionalSettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.getRegionalSettings" call. @@ -5951,7 +5951,7 @@ func (c *ProjectsLocationsGetRuntimeConfigCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.getRuntimeConfig" call. @@ -6082,7 +6082,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.list" call. @@ -6213,7 +6213,7 @@ func (c *ProjectsLocationsUpdateRegionalSettingsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.updateRegionalSettings" call. @@ -6323,7 +6323,7 @@ func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.create" call. @@ -6418,7 +6418,7 @@ func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.delete" call. @@ -6538,7 +6538,7 @@ func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.get" call. @@ -6648,7 +6648,7 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.getConnectionSchemaMetadata" call. @@ -6776,7 +6776,7 @@ func (c *ProjectsLocationsConnectionsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.getIamPolicy" call. @@ -6921,7 +6921,7 @@ func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.list" call. @@ -7044,7 +7044,7 @@ func (c *ProjectsLocationsConnectionsListenEventCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resourcePath": c.resourcePath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.listenEvent" call. @@ -7159,7 +7159,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.patch" call. @@ -7261,7 +7261,7 @@ func (c *ProjectsLocationsConnectionsRepairEventingCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.repairEventing" call. @@ -7389,7 +7389,7 @@ func (c *ProjectsLocationsConnectionsSearchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.search" call. @@ -7516,7 +7516,7 @@ func (c *ProjectsLocationsConnectionsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.setIamPolicy" call. @@ -7624,7 +7624,7 @@ func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.testIamPermissions" call. @@ -7740,7 +7740,7 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.getAction" call. @@ -7856,7 +7856,7 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.getEntityType" call. @@ -7997,7 +7997,7 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.listActions" call. @@ -8160,7 +8160,7 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.listEntityTypes" call. @@ -8285,7 +8285,7 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.refresh" call. @@ -8396,7 +8396,7 @@ func (c *ProjectsLocationsConnectionsEventSubscriptionsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.eventSubscriptions.create" call. @@ -8492,7 +8492,7 @@ func (c *ProjectsLocationsConnectionsEventSubscriptionsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.eventSubscriptions.delete" call. @@ -8600,7 +8600,7 @@ func (c *ProjectsLocationsConnectionsEventSubscriptionsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.eventSubscriptions.get" call. @@ -8733,7 +8733,7 @@ func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.eventSubscriptions.list" call. @@ -8867,7 +8867,7 @@ func (c *ProjectsLocationsConnectionsEventSubscriptionsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.eventSubscriptions.patch" call. @@ -8969,7 +8969,7 @@ func (c *ProjectsLocationsConnectionsEventSubscriptionsRetryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.eventSubscriptions.retry" call. @@ -9098,7 +9098,7 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.runtimeActionSchemas.list" call. @@ -9249,7 +9249,7 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.runtimeEntitySchemas.list" call. @@ -9372,7 +9372,7 @@ func (c *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.customConnectors.validateCustomConnectorSpec" call. @@ -9470,7 +9470,7 @@ func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.customConnectors.customConnectorVersions.delete" call. @@ -9573,7 +9573,7 @@ func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.customConnectors.customConnectorVersions.deprecate" call. @@ -9683,7 +9683,7 @@ func (c *ProjectsLocationsEndpointAttachmentsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.endpointAttachments.create" call. @@ -9779,7 +9779,7 @@ func (c *ProjectsLocationsEndpointAttachmentsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.endpointAttachments.delete" call. @@ -9904,7 +9904,7 @@ func (c *ProjectsLocationsEndpointAttachmentsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.endpointAttachments.get" call. @@ -10054,7 +10054,7 @@ func (c *ProjectsLocationsEndpointAttachmentsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.endpointAttachments.list" call. @@ -10189,7 +10189,7 @@ func (c *ProjectsLocationsEndpointAttachmentsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.endpointAttachments.patch" call. @@ -10297,7 +10297,7 @@ func (c *ProjectsLocationsGlobalGetSettingsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.getSettings" call. @@ -10406,7 +10406,7 @@ func (c *ProjectsLocationsGlobalUpdateSettingsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.updateSettings" call. @@ -10516,7 +10516,7 @@ func (c *ProjectsLocationsGlobalCustomConnectorsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.customConnectors.create" call. @@ -10620,7 +10620,7 @@ func (c *ProjectsLocationsGlobalCustomConnectorsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.customConnectors.delete" call. @@ -10728,7 +10728,7 @@ func (c *ProjectsLocationsGlobalCustomConnectorsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.customConnectors.get" call. @@ -10856,7 +10856,7 @@ func (c *ProjectsLocationsGlobalCustomConnectorsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.customConnectors.list" call. @@ -10991,7 +10991,7 @@ func (c *ProjectsLocationsGlobalCustomConnectorsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.customConnectors.patch" call. @@ -11104,7 +11104,7 @@ func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCal googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.customConnectors.customConnectorVersions.create" call. @@ -11213,7 +11213,7 @@ func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.customConnectors.customConnectorVersions.get" call. @@ -11335,7 +11335,7 @@ func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.customConnectors.customConnectorVersions.list" call. @@ -11467,7 +11467,7 @@ func (c *ProjectsLocationsGlobalManagedZonesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.managedZones.create" call. @@ -11563,7 +11563,7 @@ func (c *ProjectsLocationsGlobalManagedZonesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.managedZones.delete" call. @@ -11671,7 +11671,7 @@ func (c *ProjectsLocationsGlobalManagedZonesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.managedZones.get" call. @@ -11803,7 +11803,7 @@ func (c *ProjectsLocationsGlobalManagedZonesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.managedZones.list" call. @@ -11937,7 +11937,7 @@ func (c *ProjectsLocationsGlobalManagedZonesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.global.managedZones.patch" call. @@ -12046,7 +12046,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.operations.cancel" call. @@ -12144,7 +12144,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.operations.delete" call. @@ -12253,7 +12253,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.operations.get" call. @@ -12381,7 +12381,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.operations.list" call. @@ -12511,7 +12511,7 @@ func (c *ProjectsLocationsProvidersGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.get" call. @@ -12638,7 +12638,7 @@ func (c *ProjectsLocationsProvidersGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.getIamPolicy" call. @@ -12758,7 +12758,7 @@ func (c *ProjectsLocationsProvidersListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.list" call. @@ -12885,7 +12885,7 @@ func (c *ProjectsLocationsProvidersSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.setIamPolicy" call. @@ -12993,7 +12993,7 @@ func (c *ProjectsLocationsProvidersTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.testIamPermissions" call. @@ -13103,7 +13103,7 @@ func (c *ProjectsLocationsProvidersConnectorsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.connectors.get" call. @@ -13230,7 +13230,7 @@ func (c *ProjectsLocationsProvidersConnectorsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.connectors.list" call. @@ -13374,7 +13374,7 @@ func (c *ProjectsLocationsProvidersConnectorsVersionsFetchAuthSchemaCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.connectors.versions.fetchAuthSchema" call. @@ -13497,7 +13497,7 @@ func (c *ProjectsLocationsProvidersConnectorsVersionsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.connectors.versions.get" call. @@ -13632,7 +13632,7 @@ func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.connectors.versions.list" call. @@ -13763,7 +13763,7 @@ func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.connectors.versions.eventtypes.get" call. @@ -13884,7 +13884,7 @@ func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.providers.connectors.versions.eventtypes.list" call. diff --git a/connectors/v2/connectors-gen.go b/connectors/v2/connectors-gen.go index 550eaa66093..a69ff482770 100644 --- a/connectors/v2/connectors-gen.go +++ b/connectors/v2/connectors-gen.go @@ -2007,7 +2007,7 @@ func (c *ProjectsLocationsConnectionsCheckReadinessCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.checkReadiness" call. @@ -2119,7 +2119,7 @@ func (c *ProjectsLocationsConnectionsCheckStatusCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.checkStatus" call. @@ -2222,7 +2222,7 @@ func (c *ProjectsLocationsConnectionsExchangeAuthCodeCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.exchangeAuthCode" call. @@ -2328,7 +2328,7 @@ func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "connection": c.connection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.executeSqlQuery" call. @@ -2432,7 +2432,7 @@ func (c *ProjectsLocationsConnectionsRefreshAccessTokenCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.refreshAccessToken" call. @@ -2538,7 +2538,7 @@ func (c *ProjectsLocationsConnectionsActionsExecuteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.actions.execute" call. @@ -2648,7 +2648,7 @@ func (c *ProjectsLocationsConnectionsActionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.actions.get" call. @@ -2787,7 +2787,7 @@ func (c *ProjectsLocationsConnectionsActionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.actions.list" call. @@ -2918,7 +2918,7 @@ func (c *ProjectsLocationsConnectionsEntityTypesGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.entityTypes.get" call. @@ -3058,7 +3058,7 @@ func (c *ProjectsLocationsConnectionsEntityTypesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.entityTypes.list" call. @@ -3186,7 +3186,7 @@ func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.entityTypes.entities.create" call. @@ -3284,7 +3284,7 @@ func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.entityTypes.entities.delete" call. @@ -3395,7 +3395,7 @@ func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithCondit googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.entityTypes.entities.deleteEntitiesWithConditions" call. @@ -3505,7 +3505,7 @@ func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.entityTypes.entities.get" call. @@ -3653,7 +3653,7 @@ func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.entityTypes.entities.list" call. @@ -3782,7 +3782,7 @@ func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.entityTypes.entities.patch" call. @@ -3899,7 +3899,7 @@ func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithCondit googleapi.Expand(req.URL, map[string]string{ "entityType": c.entityType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "connectors.projects.locations.connections.entityTypes.entities.updateEntitiesWithConditions" call. diff --git a/consumersurveys/v2/consumersurveys-gen.go b/consumersurveys/v2/consumersurveys-gen.go index 611555a9361..6948cc2c458 100644 --- a/consumersurveys/v2/consumersurveys-gen.go +++ b/consumersurveys/v2/consumersurveys-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -6,6 +6,17 @@ // Package consumersurveys provides access to the Consumer Surveys API. // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -15,28 +26,31 @@ // ctx := context.Background() // consumersurveysService, err := consumersurveys.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // consumersurveysService, err := consumersurveys.NewService(ctx, option.WithScopes(consumersurveys.UserinfoEmailScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // consumersurveysService, err := consumersurveys.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // consumersurveysService, err := consumersurveys.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package consumersurveys // import "google.golang.org/api/consumersurveys/v2" import ( @@ -52,8 +66,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -70,11 +86,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "consumersurveys:v2" const apiName = "consumersurveys" const apiVersion = "v2" const basePath = "https://www.googleapis.com/consumersurveys/v2/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/consumersurveys/v2/" // OAuth2 scopes used by this API. const ( @@ -90,13 +109,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/consumersurveys", "https://www.googleapis.com/auth/consumersurveys.readonly", "https://www.googleapis.com/auth/userinfo.email", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -175,664 +197,479 @@ type SurveysService struct { type FieldMask struct { Fields []*FieldMask `json:"fields,omitempty"` - - Id int64 `json:"id,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Fields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Id int64 `json:"id,omitempty"` + // ForceSendFields is a list of field names (e.g. "Fields") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FieldMask) MarshalJSON() ([]byte, error) { +func (s FieldMask) MarshalJSON() ([]byte, error) { type NoMethod FieldMask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type MobileAppPanel struct { - Country string `json:"country,omitempty"` - - IsPublicPanel bool `json:"isPublicPanel,omitempty"` - - Language string `json:"language,omitempty"` - - MobileAppPanelId string `json:"mobileAppPanelId,omitempty"` - - Name string `json:"name,omitempty"` - - Owners []string `json:"owners,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + Country string `json:"country,omitempty"` + IsPublicPanel bool `json:"isPublicPanel,omitempty"` + Language string `json:"language,omitempty"` + MobileAppPanelId string `json:"mobileAppPanelId,omitempty"` + Name string `json:"name,omitempty"` + Owners []string `json:"owners,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileAppPanel) MarshalJSON() ([]byte, error) { +func (s MobileAppPanel) MarshalJSON() ([]byte, error) { type NoMethod MobileAppPanel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type MobileAppPanelsListResponse struct { PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // RequestId: Unique request ID used for logging and debugging. Please - // include in any error reporting or troubleshooting requests. + // RequestId: Unique request ID used for logging and debugging. Please include + // in any error reporting or troubleshooting requests. RequestId string `json:"requestId,omitempty"` + // Resources: An individual predefined panel of Opinion Rewards mobile users. + Resources []*MobileAppPanel `json:"resources,omitempty"` + TokenPagination *TokenPagination `json:"tokenPagination,omitempty"` - // Resources: An individual predefined panel of Opinion Rewards mobile - // users. - Resources []*MobileAppPanel `json:"resources,omitempty"` - - TokenPagination *TokenPagination `json:"tokenPagination,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "PageInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PageInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PageInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileAppPanelsListResponse) MarshalJSON() ([]byte, error) { +func (s MobileAppPanelsListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileAppPanelsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PageInfo struct { ResultPerPage int64 `json:"resultPerPage,omitempty"` - - StartIndex int64 `json:"startIndex,omitempty"` - - TotalResults int64 `json:"totalResults,omitempty"` - + StartIndex int64 `json:"startIndex,omitempty"` + TotalResults int64 `json:"totalResults,omitempty"` // ForceSendFields is a list of field names (e.g. "ResultPerPage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResultPerPage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResultPerPage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PageInfo) MarshalJSON() ([]byte, error) { +func (s PageInfo) MarshalJSON() ([]byte, error) { type NoMethod PageInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultsGetRequest struct { ResultMask *ResultsMask `json:"resultMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResultMask") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResultMask") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResultMask") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultsGetRequest) MarshalJSON() ([]byte, error) { +func (s ResultsGetRequest) MarshalJSON() ([]byte, error) { type NoMethod ResultsGetRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultsMask struct { - Fields []*FieldMask `json:"fields,omitempty"` - - Projection string `json:"projection,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Fields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Fields []*FieldMask `json:"fields,omitempty"` + Projection string `json:"projection,omitempty"` + // ForceSendFields is a list of field names (e.g. "Fields") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultsMask) MarshalJSON() ([]byte, error) { +func (s ResultsMask) MarshalJSON() ([]byte, error) { type NoMethod ResultsMask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Survey struct { - Audience *SurveyAudience `json:"audience,omitempty"` - - Cost *SurveyCost `json:"cost,omitempty"` - - CustomerData string `json:"customerData,omitempty"` - - Description string `json:"description,omitempty"` - - Owners []string `json:"owners,omitempty"` - - Questions []*SurveyQuestion `json:"questions,omitempty"` - - RejectionReason *SurveyRejection `json:"rejectionReason,omitempty"` - - State string `json:"state,omitempty"` - - SurveyUrlId string `json:"surveyUrlId,omitempty"` - - Title string `json:"title,omitempty"` - - WantedResponseCount int64 `json:"wantedResponseCount,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + Audience *SurveyAudience `json:"audience,omitempty"` + Cost *SurveyCost `json:"cost,omitempty"` + CustomerData string `json:"customerData,omitempty"` + Description string `json:"description,omitempty"` + Owners []string `json:"owners,omitempty"` + Questions []*SurveyQuestion `json:"questions,omitempty"` + RejectionReason *SurveyRejection `json:"rejectionReason,omitempty"` + State string `json:"state,omitempty"` + SurveyUrlId string `json:"surveyUrlId,omitempty"` + Title string `json:"title,omitempty"` + WantedResponseCount int64 `json:"wantedResponseCount,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Audience") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audience") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audience") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Survey) MarshalJSON() ([]byte, error) { +func (s Survey) MarshalJSON() ([]byte, error) { type NoMethod Survey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveyAudience struct { - Ages []string `json:"ages,omitempty"` - - Country string `json:"country,omitempty"` - - CountrySubdivision string `json:"countrySubdivision,omitempty"` - - Gender string `json:"gender,omitempty"` - - Languages []string `json:"languages,omitempty"` - - MobileAppPanelId string `json:"mobileAppPanelId,omitempty"` - - PopulationSource string `json:"populationSource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Ages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Ages []string `json:"ages,omitempty"` + Country string `json:"country,omitempty"` + CountrySubdivision string `json:"countrySubdivision,omitempty"` + Gender string `json:"gender,omitempty"` + Languages []string `json:"languages,omitempty"` + MobileAppPanelId string `json:"mobileAppPanelId,omitempty"` + PopulationSource string `json:"populationSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "Ages") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Ages") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Ages") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyAudience) MarshalJSON() ([]byte, error) { +func (s SurveyAudience) MarshalJSON() ([]byte, error) { type NoMethod SurveyAudience - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveyCost struct { - CostPerResponseNanos int64 `json:"costPerResponseNanos,omitempty,string"` - - CurrencyCode string `json:"currencyCode,omitempty"` - - MaxCostPerResponseNanos int64 `json:"maxCostPerResponseNanos,omitempty,string"` - - Nanos int64 `json:"nanos,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "CostPerResponseNanos") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + CostPerResponseNanos int64 `json:"costPerResponseNanos,omitempty,string"` + CurrencyCode string `json:"currencyCode,omitempty"` + MaxCostPerResponseNanos int64 `json:"maxCostPerResponseNanos,omitempty,string"` + Nanos int64 `json:"nanos,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CostPerResponseNanos") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CostPerResponseNanos") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CostPerResponseNanos") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyCost) MarshalJSON() ([]byte, error) { +func (s SurveyCost) MarshalJSON() ([]byte, error) { type NoMethod SurveyCost - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveyQuestion struct { - AnswerOrder string `json:"answerOrder,omitempty"` - - Answers []string `json:"answers,omitempty"` - - HasOther bool `json:"hasOther,omitempty"` - - HighValueLabel string `json:"highValueLabel,omitempty"` - - Images []*SurveyQuestionImage `json:"images,omitempty"` - - LastAnswerPositionPinned bool `json:"lastAnswerPositionPinned,omitempty"` - - LowValueLabel string `json:"lowValueLabel,omitempty"` - - MustPickSuggestion bool `json:"mustPickSuggestion,omitempty"` - - NumStars string `json:"numStars,omitempty"` - - OpenTextPlaceholder string `json:"openTextPlaceholder,omitempty"` - - OpenTextSuggestions []string `json:"openTextSuggestions,omitempty"` - - Question string `json:"question,omitempty"` - - SentimentText string `json:"sentimentText,omitempty"` - - SingleLineResponse bool `json:"singleLineResponse,omitempty"` - - ThresholdAnswers []string `json:"thresholdAnswers,omitempty"` - - Type string `json:"type,omitempty"` - - UnitOfMeasurementLabel string `json:"unitOfMeasurementLabel,omitempty"` - - VideoId string `json:"videoId,omitempty"` - + AnswerOrder string `json:"answerOrder,omitempty"` + Answers []string `json:"answers,omitempty"` + HasOther bool `json:"hasOther,omitempty"` + HighValueLabel string `json:"highValueLabel,omitempty"` + Images []*SurveyQuestionImage `json:"images,omitempty"` + LastAnswerPositionPinned bool `json:"lastAnswerPositionPinned,omitempty"` + LowValueLabel string `json:"lowValueLabel,omitempty"` + MustPickSuggestion bool `json:"mustPickSuggestion,omitempty"` + NumStars string `json:"numStars,omitempty"` + OpenTextPlaceholder string `json:"openTextPlaceholder,omitempty"` + OpenTextSuggestions []string `json:"openTextSuggestions,omitempty"` + Question string `json:"question,omitempty"` + SentimentText string `json:"sentimentText,omitempty"` + SingleLineResponse bool `json:"singleLineResponse,omitempty"` + ThresholdAnswers []string `json:"thresholdAnswers,omitempty"` + Type string `json:"type,omitempty"` + UnitOfMeasurementLabel string `json:"unitOfMeasurementLabel,omitempty"` + VideoId string `json:"videoId,omitempty"` // ForceSendFields is a list of field names (e.g. "AnswerOrder") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnswerOrder") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnswerOrder") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyQuestion) MarshalJSON() ([]byte, error) { +func (s SurveyQuestion) MarshalJSON() ([]byte, error) { type NoMethod SurveyQuestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveyQuestionImage struct { AltText string `json:"altText,omitempty"` - - Data string `json:"data,omitempty"` - - Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Data string `json:"data,omitempty"` + Url string `json:"url,omitempty"` + // ForceSendFields is a list of field names (e.g. "AltText") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AltText") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AltText") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyQuestionImage) MarshalJSON() ([]byte, error) { +func (s SurveyQuestionImage) MarshalJSON() ([]byte, error) { type NoMethod SurveyQuestionImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveyRejection struct { Explanation string `json:"explanation,omitempty"` - - Type string `json:"type,omitempty"` - + Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Explanation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Explanation") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Explanation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyRejection) MarshalJSON() ([]byte, error) { +func (s SurveyRejection) MarshalJSON() ([]byte, error) { type NoMethod SurveyRejection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveyResults struct { - Status string `json:"status,omitempty"` - + Status string `json:"status,omitempty"` SurveyUrlId string `json:"surveyUrlId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Status") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Status") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Status") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyResults) MarshalJSON() ([]byte, error) { +func (s SurveyResults) MarshalJSON() ([]byte, error) { type NoMethod SurveyResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveysDeleteResponse struct { - // RequestId: Unique request ID used for logging and debugging. Please - // include in any error reporting or troubleshooting requests. + // RequestId: Unique request ID used for logging and debugging. Please include + // in any error reporting or troubleshooting requests. RequestId string `json:"requestId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "RequestId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RequestId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveysDeleteResponse) MarshalJSON() ([]byte, error) { +func (s SurveysDeleteResponse) MarshalJSON() ([]byte, error) { type NoMethod SurveysDeleteResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveysListResponse struct { PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // RequestId: Unique request ID used for logging and debugging. Please - // include in any error reporting or troubleshooting requests. + // RequestId: Unique request ID used for logging and debugging. Please include + // in any error reporting or troubleshooting requests. RequestId string `json:"requestId,omitempty"` - // Resources: An individual survey resource. - Resources []*Survey `json:"resources,omitempty"` - + Resources []*Survey `json:"resources,omitempty"` TokenPagination *TokenPagination `json:"tokenPagination,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "PageInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PageInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PageInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveysListResponse) MarshalJSON() ([]byte, error) { +func (s SurveysListResponse) MarshalJSON() ([]byte, error) { type NoMethod SurveysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveysStartRequest struct { - // MaxCostPerResponseNanos: Threshold to start a survey automically if - // the quoted prices is less than or equal to this value. See - // Survey.Cost for more details. + // MaxCostPerResponseNanos: Threshold to start a survey automically if the + // quoted prices is less than or equal to this value. See Survey.Cost for more + // details. MaxCostPerResponseNanos int64 `json:"maxCostPerResponseNanos,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "MaxCostPerResponseNanos") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "MaxCostPerResponseNanos") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxCostPerResponseNanos") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MaxCostPerResponseNanos") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveysStartRequest) MarshalJSON() ([]byte, error) { +func (s SurveysStartRequest) MarshalJSON() ([]byte, error) { type NoMethod SurveysStartRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveysStartResponse struct { - // RequestId: Unique request ID used for logging and debugging. Please - // include in any error reporting or troubleshooting requests. + // RequestId: Unique request ID used for logging and debugging. Please include + // in any error reporting or troubleshooting requests. RequestId string `json:"requestId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "RequestId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RequestId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveysStartResponse) MarshalJSON() ([]byte, error) { +func (s SurveysStartResponse) MarshalJSON() ([]byte, error) { type NoMethod SurveysStartResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveysStopResponse struct { - // RequestId: Unique request ID used for logging and debugging. Please - // include in any error reporting or troubleshooting requests. + // RequestId: Unique request ID used for logging and debugging. Please include + // in any error reporting or troubleshooting requests. RequestId string `json:"requestId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "RequestId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RequestId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveysStopResponse) MarshalJSON() ([]byte, error) { +func (s SurveysStopResponse) MarshalJSON() ([]byte, error) { type NoMethod SurveysStopResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TokenPagination struct { - NextPageToken string `json:"nextPageToken,omitempty"` - + NextPageToken string `json:"nextPageToken,omitempty"` PreviousPageToken string `json:"previousPageToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TokenPagination) MarshalJSON() ([]byte, error) { +func (s TokenPagination) MarshalJSON() ([]byte, error) { type NoMethod TokenPagination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "consumersurveys.mobileapppanels.get": - type MobileapppanelsGetCall struct { s *Service panelId string @@ -842,8 +679,9 @@ type MobileapppanelsGetCall struct { header_ http.Header } -// Get: Retrieves a MobileAppPanel that is available to the -// authenticated user. +// Get: Retrieves a MobileAppPanel that is available to the authenticated user. +// +// - panelId: External URL ID for the panel. func (r *MobileapppanelsService) Get(panelId string) *MobileapppanelsGetCall { c := &MobileapppanelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.panelId = panelId @@ -851,33 +689,29 @@ func (r *MobileapppanelsService) Get(panelId string) *MobileapppanelsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileapppanelsGetCall) Fields(s ...googleapi.Field) *MobileapppanelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileapppanelsGetCall) IfNoneMatch(entityTag string) *MobileapppanelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileapppanelsGetCall) Context(ctx context.Context) *MobileapppanelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileapppanelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -886,12 +720,7 @@ func (c *MobileapppanelsGetCall) Header() http.Header { } func (c *MobileapppanelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -908,16 +737,14 @@ func (c *MobileapppanelsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "panelId": c.panelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "consumersurveys.mobileapppanels.get" call. -// Exactly one of *MobileAppPanel or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileAppPanel.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileAppPanel.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileapppanelsGetCall) Do(opts ...googleapi.CallOption) (*MobileAppPanel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -925,17 +752,17 @@ func (c *MobileapppanelsGetCall) Do(opts ...googleapi.CallOption) (*MobileAppPan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileAppPanel{ ServerResponse: googleapi.ServerResponse{ @@ -948,35 +775,7 @@ func (c *MobileapppanelsGetCall) Do(opts ...googleapi.CallOption) (*MobileAppPan return nil, err } return ret, nil - // { - // "description": "Retrieves a MobileAppPanel that is available to the authenticated user.", - // "httpMethod": "GET", - // "id": "consumersurveys.mobileapppanels.get", - // "parameterOrder": [ - // "panelId" - // ], - // "parameters": { - // "panelId": { - // "description": "External URL ID for the panel.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "mobileAppPanels/{panelId}", - // "response": { - // "$ref": "MobileAppPanel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/consumersurveys.readonly", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "consumersurveys.mobileapppanels.list": +} type MobileapppanelsListCall struct { s *Service @@ -1011,33 +810,29 @@ func (c *MobileapppanelsListCall) Token(token string) *MobileapppanelsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileapppanelsListCall) Fields(s ...googleapi.Field) *MobileapppanelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileapppanelsListCall) IfNoneMatch(entityTag string) *MobileapppanelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileapppanelsListCall) Context(ctx context.Context) *MobileapppanelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileapppanelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1046,12 +841,7 @@ func (c *MobileapppanelsListCall) Header() http.Header { } func (c *MobileapppanelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1065,16 +855,15 @@ func (c *MobileapppanelsListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "consumersurveys.mobileapppanels.list" call. -// Exactly one of *MobileAppPanelsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *MobileAppPanelsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *MobileAppPanelsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *MobileapppanelsListCall) Do(opts ...googleapi.CallOption) (*MobileAppPanelsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1082,17 +871,17 @@ func (c *MobileapppanelsListCall) Do(opts ...googleapi.CallOption) (*MobileAppPa if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileAppPanelsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1105,40 +894,7 @@ func (c *MobileapppanelsListCall) Do(opts ...googleapi.CallOption) (*MobileAppPa return nil, err } return ret, nil - // { - // "description": "Lists the MobileAppPanels available to the authenticated user.", - // "httpMethod": "GET", - // "id": "consumersurveys.mobileapppanels.list", - // "parameters": { - // "maxResults": { - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "startIndex": { - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "token": { - // "location": "query", - // "type": "string" - // } - // }, - // "path": "mobileAppPanels", - // "response": { - // "$ref": "MobileAppPanelsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/consumersurveys.readonly", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "consumersurveys.mobileapppanels.update": +} type MobileapppanelsUpdateCall struct { s *Service @@ -1149,8 +905,10 @@ type MobileapppanelsUpdateCall struct { header_ http.Header } -// Update: Updates a MobileAppPanel. Currently the only property that -// can be updated is the owners property. +// Update: Updates a MobileAppPanel. Currently the only property that can be +// updated is the owners property. +// +// - panelId: External URL ID for the panel. func (r *MobileapppanelsService) Update(panelId string, mobileapppanel *MobileAppPanel) *MobileapppanelsUpdateCall { c := &MobileapppanelsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.panelId = panelId @@ -1159,23 +917,21 @@ func (r *MobileapppanelsService) Update(panelId string, mobileapppanel *MobileAp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileapppanelsUpdateCall) Fields(s ...googleapi.Field) *MobileapppanelsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileapppanelsUpdateCall) Context(ctx context.Context) *MobileapppanelsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileapppanelsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1184,18 +940,12 @@ func (c *MobileapppanelsUpdateCall) Header() http.Header { } func (c *MobileapppanelsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.mobileapppanel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "mobileAppPanels/{panelId}") @@ -1208,16 +958,14 @@ func (c *MobileapppanelsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "panelId": c.panelId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "consumersurveys.mobileapppanels.update" call. -// Exactly one of *MobileAppPanel or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileAppPanel.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileAppPanel.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileapppanelsUpdateCall) Do(opts ...googleapi.CallOption) (*MobileAppPanel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1225,17 +973,17 @@ func (c *MobileapppanelsUpdateCall) Do(opts ...googleapi.CallOption) (*MobileApp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileAppPanel{ ServerResponse: googleapi.ServerResponse{ @@ -1248,37 +996,7 @@ func (c *MobileapppanelsUpdateCall) Do(opts ...googleapi.CallOption) (*MobileApp return nil, err } return ret, nil - // { - // "description": "Updates a MobileAppPanel. Currently the only property that can be updated is the owners property.", - // "httpMethod": "PUT", - // "id": "consumersurveys.mobileapppanels.update", - // "parameterOrder": [ - // "panelId" - // ], - // "parameters": { - // "panelId": { - // "description": "External URL ID for the panel.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "mobileAppPanels/{panelId}", - // "request": { - // "$ref": "MobileAppPanel" - // }, - // "response": { - // "$ref": "MobileAppPanel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "consumersurveys.results.get": +} type ResultsGetCall struct { s *Service @@ -1290,9 +1008,11 @@ type ResultsGetCall struct { header_ http.Header } -// Get: Retrieves any survey results that have been produced so far. -// Results are formatted as an Excel file. You must add "?alt=media" to -// the URL as an argument to get results. +// Get: Retrieves any survey results that have been produced so far. Results +// are formatted as an Excel file. You must add "?alt=media" to the URL as an +// argument to get results. +// +// - surveyUrlId: External URL ID for the survey. func (r *ResultsService) Get(surveyUrlId string, resultsgetrequest *ResultsGetRequest) *ResultsGetCall { c := &ResultsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.surveyUrlId = surveyUrlId @@ -1301,33 +1021,29 @@ func (r *ResultsService) Get(surveyUrlId string, resultsgetrequest *ResultsGetRe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResultsGetCall) Fields(s ...googleapi.Field) *ResultsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ResultsGetCall) IfNoneMatch(entityTag string) *ResultsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ResultsGetCall) Context(ctx context.Context) *ResultsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResultsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1336,12 +1052,7 @@ func (c *ResultsGetCall) Header() http.Header { } func (c *ResultsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1358,7 +1069,7 @@ func (c *ResultsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "surveyUrlId": c.surveyUrlId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -1370,20 +1081,18 @@ func (c *ResultsGetCall) Download(opts ...googleapi.CallOption) (*http.Response, if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "consumersurveys.results.get" call. -// Exactly one of *SurveyResults or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SurveyResults.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SurveyResults.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ResultsGetCall) Do(opts ...googleapi.CallOption) (*SurveyResults, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1391,17 +1100,17 @@ func (c *ResultsGetCall) Do(opts ...googleapi.CallOption) (*SurveyResults, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SurveyResults{ ServerResponse: googleapi.ServerResponse{ @@ -1414,39 +1123,7 @@ func (c *ResultsGetCall) Do(opts ...googleapi.CallOption) (*SurveyResults, error return nil, err } return ret, nil - // { - // "description": "Retrieves any survey results that have been produced so far. Results are formatted as an Excel file. You must add \"?alt=media\" to the URL as an argument to get results.", - // "httpMethod": "GET", - // "id": "consumersurveys.results.get", - // "parameterOrder": [ - // "surveyUrlId" - // ], - // "parameters": { - // "surveyUrlId": { - // "description": "External URL ID for the survey.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{surveyUrlId}/results", - // "request": { - // "$ref": "ResultsGetRequest" - // }, - // "response": { - // "$ref": "SurveyResults" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/consumersurveys.readonly", - // "https://www.googleapis.com/auth/userinfo.email" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "consumersurveys.surveys.delete": +} type SurveysDeleteCall struct { s *Service @@ -1457,6 +1134,8 @@ type SurveysDeleteCall struct { } // Delete: Removes a survey from view in all user GET requests. +// +// - surveyUrlId: External URL ID for the survey. func (r *SurveysService) Delete(surveyUrlId string) *SurveysDeleteCall { c := &SurveysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.surveyUrlId = surveyUrlId @@ -1464,23 +1143,21 @@ func (r *SurveysService) Delete(surveyUrlId string) *SurveysDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysDeleteCall) Fields(s ...googleapi.Field) *SurveysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysDeleteCall) Context(ctx context.Context) *SurveysDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1489,12 +1166,7 @@ func (c *SurveysDeleteCall) Header() http.Header { } func (c *SurveysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1508,16 +1180,15 @@ func (c *SurveysDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "surveyUrlId": c.surveyUrlId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "consumersurveys.surveys.delete" call. -// Exactly one of *SurveysDeleteResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SurveysDeleteResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SurveysDeleteResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SurveysDeleteCall) Do(opts ...googleapi.CallOption) (*SurveysDeleteResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1525,17 +1196,17 @@ func (c *SurveysDeleteCall) Do(opts ...googleapi.CallOption) (*SurveysDeleteResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SurveysDeleteResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1548,34 +1219,7 @@ func (c *SurveysDeleteCall) Do(opts ...googleapi.CallOption) (*SurveysDeleteResp return nil, err } return ret, nil - // { - // "description": "Removes a survey from view in all user GET requests.", - // "httpMethod": "DELETE", - // "id": "consumersurveys.surveys.delete", - // "parameterOrder": [ - // "surveyUrlId" - // ], - // "parameters": { - // "surveyUrlId": { - // "description": "External URL ID for the survey.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{surveyUrlId}", - // "response": { - // "$ref": "SurveysDeleteResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "consumersurveys.surveys.get": +} type SurveysGetCall struct { s *Service @@ -1587,6 +1231,8 @@ type SurveysGetCall struct { } // Get: Retrieves information about the specified survey. +// +// - surveyUrlId: External URL ID for the survey. func (r *SurveysService) Get(surveyUrlId string) *SurveysGetCall { c := &SurveysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.surveyUrlId = surveyUrlId @@ -1594,33 +1240,29 @@ func (r *SurveysService) Get(surveyUrlId string) *SurveysGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysGetCall) Fields(s ...googleapi.Field) *SurveysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SurveysGetCall) IfNoneMatch(entityTag string) *SurveysGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysGetCall) Context(ctx context.Context) *SurveysGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1629,12 +1271,7 @@ func (c *SurveysGetCall) Header() http.Header { } func (c *SurveysGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1651,16 +1288,14 @@ func (c *SurveysGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "surveyUrlId": c.surveyUrlId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "consumersurveys.surveys.get" call. -// Exactly one of *Survey or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Survey.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Survey.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SurveysGetCall) Do(opts ...googleapi.CallOption) (*Survey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1668,17 +1303,17 @@ func (c *SurveysGetCall) Do(opts ...googleapi.CallOption) (*Survey, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Survey{ ServerResponse: googleapi.ServerResponse{ @@ -1691,35 +1326,7 @@ func (c *SurveysGetCall) Do(opts ...googleapi.CallOption) (*Survey, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves information about the specified survey.", - // "httpMethod": "GET", - // "id": "consumersurveys.surveys.get", - // "parameterOrder": [ - // "surveyUrlId" - // ], - // "parameters": { - // "surveyUrlId": { - // "description": "External URL ID for the survey.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{surveyUrlId}", - // "response": { - // "$ref": "Survey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/consumersurveys.readonly", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "consumersurveys.surveys.insert": +} type SurveysInsertCall struct { s *Service @@ -1737,23 +1344,21 @@ func (r *SurveysService) Insert(survey *Survey) *SurveysInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysInsertCall) Fields(s ...googleapi.Field) *SurveysInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysInsertCall) Context(ctx context.Context) *SurveysInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1762,18 +1367,12 @@ func (c *SurveysInsertCall) Header() http.Header { } func (c *SurveysInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.survey) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "surveys") @@ -1783,16 +1382,14 @@ func (c *SurveysInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "consumersurveys.surveys.insert" call. -// Exactly one of *Survey or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Survey.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Survey.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SurveysInsertCall) Do(opts ...googleapi.CallOption) (*Survey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1800,17 +1397,17 @@ func (c *SurveysInsertCall) Do(opts ...googleapi.CallOption) (*Survey, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Survey{ ServerResponse: googleapi.ServerResponse{ @@ -1823,26 +1420,7 @@ func (c *SurveysInsertCall) Do(opts ...googleapi.CallOption) (*Survey, error) { return nil, err } return ret, nil - // { - // "description": "Creates a survey.", - // "httpMethod": "POST", - // "id": "consumersurveys.surveys.insert", - // "path": "surveys", - // "request": { - // "$ref": "Survey" - // }, - // "response": { - // "$ref": "Survey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "consumersurveys.surveys.list": +} type SurveysListCall struct { s *Service @@ -1877,33 +1455,29 @@ func (c *SurveysListCall) Token(token string) *SurveysListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysListCall) Fields(s ...googleapi.Field) *SurveysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SurveysListCall) IfNoneMatch(entityTag string) *SurveysListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysListCall) Context(ctx context.Context) *SurveysListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1912,12 +1486,7 @@ func (c *SurveysListCall) Header() http.Header { } func (c *SurveysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1931,16 +1500,15 @@ func (c *SurveysListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "consumersurveys.surveys.list" call. -// Exactly one of *SurveysListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SurveysListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SurveysListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SurveysListCall) Do(opts ...googleapi.CallOption) (*SurveysListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1948,17 +1516,17 @@ func (c *SurveysListCall) Do(opts ...googleapi.CallOption) (*SurveysListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SurveysListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1971,40 +1539,7 @@ func (c *SurveysListCall) Do(opts ...googleapi.CallOption) (*SurveysListResponse return nil, err } return ret, nil - // { - // "description": "Lists the surveys owned by the authenticated user.", - // "httpMethod": "GET", - // "id": "consumersurveys.surveys.list", - // "parameters": { - // "maxResults": { - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "startIndex": { - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "token": { - // "location": "query", - // "type": "string" - // } - // }, - // "path": "surveys", - // "response": { - // "$ref": "SurveysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/consumersurveys.readonly", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "consumersurveys.surveys.start": +} type SurveysStartCall struct { s *Service @@ -2016,6 +1551,8 @@ type SurveysStartCall struct { } // Start: Begins running a survey. +// +// - resourceId: . func (r *SurveysService) Start(resourceId string, surveysstartrequest *SurveysStartRequest) *SurveysStartCall { c := &SurveysStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resourceId = resourceId @@ -2024,23 +1561,21 @@ func (r *SurveysService) Start(resourceId string, surveysstartrequest *SurveysSt } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysStartCall) Fields(s ...googleapi.Field) *SurveysStartCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysStartCall) Context(ctx context.Context) *SurveysStartCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysStartCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2049,18 +1584,12 @@ func (c *SurveysStartCall) Header() http.Header { } func (c *SurveysStartCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.surveysstartrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "surveys/{resourceId}/start") @@ -2073,16 +1602,15 @@ func (c *SurveysStartCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "consumersurveys.surveys.start" call. -// Exactly one of *SurveysStartResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SurveysStartResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SurveysStartResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SurveysStartCall) Do(opts ...googleapi.CallOption) (*SurveysStartResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2090,17 +1618,17 @@ func (c *SurveysStartCall) Do(opts ...googleapi.CallOption) (*SurveysStartRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SurveysStartResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2113,36 +1641,7 @@ func (c *SurveysStartCall) Do(opts ...googleapi.CallOption) (*SurveysStartRespon return nil, err } return ret, nil - // { - // "description": "Begins running a survey.", - // "httpMethod": "POST", - // "id": "consumersurveys.surveys.start", - // "parameterOrder": [ - // "resourceId" - // ], - // "parameters": { - // "resourceId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{resourceId}/start", - // "request": { - // "$ref": "SurveysStartRequest" - // }, - // "response": { - // "$ref": "SurveysStartResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "consumersurveys.surveys.stop": +} type SurveysStopCall struct { s *Service @@ -2153,6 +1652,8 @@ type SurveysStopCall struct { } // Stop: Stops a running survey. +// +// - resourceId: . func (r *SurveysService) Stop(resourceId string) *SurveysStopCall { c := &SurveysStopCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resourceId = resourceId @@ -2160,23 +1661,21 @@ func (r *SurveysService) Stop(resourceId string) *SurveysStopCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysStopCall) Fields(s ...googleapi.Field) *SurveysStopCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysStopCall) Context(ctx context.Context) *SurveysStopCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysStopCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2185,12 +1684,7 @@ func (c *SurveysStopCall) Header() http.Header { } func (c *SurveysStopCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2204,16 +1698,15 @@ func (c *SurveysStopCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "consumersurveys.surveys.stop" call. -// Exactly one of *SurveysStopResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SurveysStopResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SurveysStopResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SurveysStopCall) Do(opts ...googleapi.CallOption) (*SurveysStopResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2221,17 +1714,17 @@ func (c *SurveysStopCall) Do(opts ...googleapi.CallOption) (*SurveysStopResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SurveysStopResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2244,33 +1737,7 @@ func (c *SurveysStopCall) Do(opts ...googleapi.CallOption) (*SurveysStopResponse return nil, err } return ret, nil - // { - // "description": "Stops a running survey.", - // "httpMethod": "POST", - // "id": "consumersurveys.surveys.stop", - // "parameterOrder": [ - // "resourceId" - // ], - // "parameters": { - // "resourceId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{resourceId}/stop", - // "response": { - // "$ref": "SurveysStopResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "consumersurveys.surveys.update": +} type SurveysUpdateCall struct { s *Service @@ -2281,8 +1748,10 @@ type SurveysUpdateCall struct { header_ http.Header } -// Update: Updates a survey. Currently the only property that can be -// updated is the owners property. +// Update: Updates a survey. Currently the only property that can be updated is +// the owners property. +// +// - surveyUrlId: External URL ID for the survey. func (r *SurveysService) Update(surveyUrlId string, survey *Survey) *SurveysUpdateCall { c := &SurveysUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.surveyUrlId = surveyUrlId @@ -2291,23 +1760,21 @@ func (r *SurveysService) Update(surveyUrlId string, survey *Survey) *SurveysUpda } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysUpdateCall) Fields(s ...googleapi.Field) *SurveysUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysUpdateCall) Context(ctx context.Context) *SurveysUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2316,18 +1783,12 @@ func (c *SurveysUpdateCall) Header() http.Header { } func (c *SurveysUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.survey) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "surveys/{surveyUrlId}") @@ -2340,16 +1801,14 @@ func (c *SurveysUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "surveyUrlId": c.surveyUrlId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "consumersurveys.surveys.update" call. -// Exactly one of *Survey or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Survey.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Survey.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SurveysUpdateCall) Do(opts ...googleapi.CallOption) (*Survey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2357,17 +1816,17 @@ func (c *SurveysUpdateCall) Do(opts ...googleapi.CallOption) (*Survey, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Survey{ ServerResponse: googleapi.ServerResponse{ @@ -2380,32 +1839,4 @@ func (c *SurveysUpdateCall) Do(opts ...googleapi.CallOption) (*Survey, error) { return nil, err } return ret, nil - // { - // "description": "Updates a survey. Currently the only property that can be updated is the owners property.", - // "httpMethod": "PUT", - // "id": "consumersurveys.surveys.update", - // "parameterOrder": [ - // "surveyUrlId" - // ], - // "parameters": { - // "surveyUrlId": { - // "description": "External URL ID for the survey.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{surveyUrlId}", - // "request": { - // "$ref": "Survey" - // }, - // "response": { - // "$ref": "Survey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/consumersurveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - } diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go index 63c793d6a6e..4f5014dfcd7 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go @@ -1126,7 +1126,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.get" call. @@ -1257,7 +1257,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.list" call. @@ -1388,7 +1388,7 @@ func (c *ProjectsLocationsQueryContactCenterQuotaCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.queryContactCenterQuota" call. @@ -1514,7 +1514,7 @@ func (c *ProjectsLocationsContactCentersCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.contactCenters.create" call. @@ -1625,7 +1625,7 @@ func (c *ProjectsLocationsContactCentersDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.contactCenters.delete" call. @@ -1732,7 +1732,7 @@ func (c *ProjectsLocationsContactCentersGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.contactCenters.get" call. @@ -1867,7 +1867,7 @@ func (c *ProjectsLocationsContactCentersListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.contactCenters.list" call. @@ -2017,7 +2017,7 @@ func (c *ProjectsLocationsContactCentersPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.contactCenters.patch" call. @@ -2126,7 +2126,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.operations.cancel" call. @@ -2224,7 +2224,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.operations.delete" call. @@ -2333,7 +2333,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.operations.get" call. @@ -2461,7 +2461,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenteraiplatform.projects.locations.operations.list" call. diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 1d3ae819961..dcaa6f04118 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -6852,7 +6852,7 @@ func (c *ProjectsLocationsGetEncryptionSpecCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.getEncryptionSpec" call. @@ -6960,7 +6960,7 @@ func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.getSettings" call. @@ -7070,7 +7070,7 @@ func (c *ProjectsLocationsUpdateSettingsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.updateSettings" call. @@ -7172,7 +7172,7 @@ func (c *ProjectsLocationsConversationsBulkAnalyzeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.bulkAnalyze" call. @@ -7275,7 +7275,7 @@ func (c *ProjectsLocationsConversationsBulkDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.bulkDelete" call. @@ -7391,7 +7391,7 @@ func (c *ProjectsLocationsConversationsCalculateStatsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.calculateStats" call. @@ -7504,7 +7504,7 @@ func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.create" call. @@ -7608,7 +7608,7 @@ func (c *ProjectsLocationsConversationsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.delete" call. @@ -7733,7 +7733,7 @@ func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.get" call. @@ -7836,7 +7836,7 @@ func (c *ProjectsLocationsConversationsIngestCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.ingest" call. @@ -7999,7 +7999,7 @@ func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.list" call. @@ -8135,7 +8135,7 @@ func (c *ProjectsLocationsConversationsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.patch" call. @@ -8239,7 +8239,7 @@ func (c *ProjectsLocationsConversationsUploadCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.upload" call. @@ -8342,7 +8342,7 @@ func (c *ProjectsLocationsConversationsAnalysesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.analyses.create" call. @@ -8438,7 +8438,7 @@ func (c *ProjectsLocationsConversationsAnalysesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.analyses.delete" call. @@ -8546,7 +8546,7 @@ func (c *ProjectsLocationsConversationsAnalysesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.analyses.get" call. @@ -8680,7 +8680,7 @@ func (c *ProjectsLocationsConversationsAnalysesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.conversations.analyses.list" call. @@ -8810,7 +8810,7 @@ func (c *ProjectsLocationsEncryptionSpecInitializeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.encryptionSpec.initialize" call. @@ -8912,7 +8912,7 @@ func (c *ProjectsLocationsInsightsdataExportCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.insightsdata.export" call. @@ -9020,7 +9020,7 @@ func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "issueModel": c.issueModel, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.calculateIssueModelStats" call. @@ -9122,7 +9122,7 @@ func (c *ProjectsLocationsIssueModelsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.create" call. @@ -9218,7 +9218,7 @@ func (c *ProjectsLocationsIssueModelsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.delete" call. @@ -9322,7 +9322,7 @@ func (c *ProjectsLocationsIssueModelsDeployCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.deploy" call. @@ -9424,7 +9424,7 @@ func (c *ProjectsLocationsIssueModelsExportCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.export" call. @@ -9532,7 +9532,7 @@ func (c *ProjectsLocationsIssueModelsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.get" call. @@ -9634,7 +9634,7 @@ func (c *ProjectsLocationsIssueModelsImportCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.import" call. @@ -9742,7 +9742,7 @@ func (c *ProjectsLocationsIssueModelsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.list" call. @@ -9852,7 +9852,7 @@ func (c *ProjectsLocationsIssueModelsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.patch" call. @@ -9955,7 +9955,7 @@ func (c *ProjectsLocationsIssueModelsUndeployCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.undeploy" call. @@ -10051,7 +10051,7 @@ func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.issues.delete" call. @@ -10159,7 +10159,7 @@ func (c *ProjectsLocationsIssueModelsIssuesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.issues.get" call. @@ -10267,7 +10267,7 @@ func (c *ProjectsLocationsIssueModelsIssuesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.issues.list" call. @@ -10378,7 +10378,7 @@ func (c *ProjectsLocationsIssueModelsIssuesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.issueModels.issues.patch" call. @@ -10482,7 +10482,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.operations.cancel" call. @@ -10592,7 +10592,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.operations.get" call. @@ -10721,7 +10721,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.operations.list" call. @@ -10846,7 +10846,7 @@ func (c *ProjectsLocationsPhraseMatchersCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.phraseMatchers.create" call. @@ -10942,7 +10942,7 @@ func (c *ProjectsLocationsPhraseMatchersDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.phraseMatchers.delete" call. @@ -11050,7 +11050,7 @@ func (c *ProjectsLocationsPhraseMatchersGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.phraseMatchers.get" call. @@ -11185,7 +11185,7 @@ func (c *ProjectsLocationsPhraseMatchersListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.phraseMatchers.list" call. @@ -11316,7 +11316,7 @@ func (c *ProjectsLocationsPhraseMatchersPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.phraseMatchers.patch" call. @@ -11419,7 +11419,7 @@ func (c *ProjectsLocationsViewsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.views.create" call. @@ -11515,7 +11515,7 @@ func (c *ProjectsLocationsViewsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.views.delete" call. @@ -11623,7 +11623,7 @@ func (c *ProjectsLocationsViewsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.views.get" call. @@ -11748,7 +11748,7 @@ func (c *ProjectsLocationsViewsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.views.list" call. @@ -11879,7 +11879,7 @@ func (c *ProjectsLocationsViewsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contactcenterinsights.projects.locations.views.patch" call. diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 3a6035210a3..e022cd76c40 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -7358,7 +7358,7 @@ func (c *ProjectsAggregatedUsableSubnetworksListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.aggregated.usableSubnetworks.list" call. @@ -7507,7 +7507,7 @@ func (c *ProjectsLocationsGetServerConfigCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.getServerConfig" call. @@ -7616,7 +7616,7 @@ func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.checkAutopilotCompatibility" call. @@ -7720,7 +7720,7 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.completeIpRotation" call. @@ -7830,7 +7830,7 @@ func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.create" call. @@ -7956,7 +7956,7 @@ func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.delete" call. @@ -8090,7 +8090,7 @@ func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.get" call. @@ -8199,7 +8199,7 @@ func (c *ProjectsLocationsClustersGetJwksCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.getJwks" call. @@ -8328,7 +8328,7 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.list" call. @@ -8431,7 +8431,7 @@ func (c *ProjectsLocationsClustersSetAddonsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setAddons" call. @@ -8534,7 +8534,7 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setLegacyAbac" call. @@ -8639,7 +8639,7 @@ func (c *ProjectsLocationsClustersSetLocationsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setLocations" call. @@ -8741,7 +8741,7 @@ func (c *ProjectsLocationsClustersSetLoggingCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setLogging" call. @@ -8844,7 +8844,7 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setMaintenancePolicy" call. @@ -8948,7 +8948,7 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setMasterAuth" call. @@ -9050,7 +9050,7 @@ func (c *ProjectsLocationsClustersSetMonitoringCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setMonitoring" call. @@ -9153,7 +9153,7 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setNetworkPolicy" call. @@ -9255,7 +9255,7 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setResourceLabels" call. @@ -9357,7 +9357,7 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.startIpRotation" call. @@ -9459,7 +9459,7 @@ func (c *ProjectsLocationsClustersUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.update" call. @@ -9561,7 +9561,7 @@ func (c *ProjectsLocationsClustersUpdateMasterCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.updateMaster" call. @@ -9665,7 +9665,7 @@ func (c *ProjectsLocationsClustersNodePoolsCompleteUpgradeCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.completeUpgrade" call. @@ -9768,7 +9768,7 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.create" call. @@ -9898,7 +9898,7 @@ func (c *ProjectsLocationsClustersNodePoolsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.delete" call. @@ -10040,7 +10040,7 @@ func (c *ProjectsLocationsClustersNodePoolsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.get" call. @@ -10175,7 +10175,7 @@ func (c *ProjectsLocationsClustersNodePoolsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.list" call. @@ -10280,7 +10280,7 @@ func (c *ProjectsLocationsClustersNodePoolsRollbackCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.rollback" call. @@ -10383,7 +10383,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.setAutoscaling" call. @@ -10486,7 +10486,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.setManagement" call. @@ -10591,7 +10591,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.setSize" call. @@ -10694,7 +10694,7 @@ func (c *ProjectsLocationsClustersNodePoolsUpdateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.update" call. @@ -10804,7 +10804,7 @@ func (c *ProjectsLocationsClustersWellKnownGetOpenidConfigurationCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.well-known.getOpenid-configuration" call. @@ -10907,7 +10907,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.operations.cancel" call. @@ -11041,7 +11041,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.operations.get" call. @@ -11168,7 +11168,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.operations.list" call. @@ -11294,7 +11294,7 @@ func (c *ProjectsZonesGetServerconfigCall) doRequest(alt string) (*http.Response "projectId": c.projectId, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.getServerconfig" call. @@ -11410,7 +11410,7 @@ func (c *ProjectsZonesClustersAddonsCall) doRequest(alt string) (*http.Response, "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.addons" call. @@ -11526,7 +11526,7 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) doRequest(alt string) (*ht "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.completeIpRotation" call. @@ -11645,7 +11645,7 @@ func (c *ProjectsZonesClustersCreateCall) doRequest(alt string) (*http.Response, "projectId": c.projectId, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.create" call. @@ -11767,7 +11767,7 @@ func (c *ProjectsZonesClustersDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.delete" call. @@ -11897,7 +11897,7 @@ func (c *ProjectsZonesClustersGetCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.get" call. @@ -12014,7 +12014,7 @@ func (c *ProjectsZonesClustersLegacyAbacCall) doRequest(alt string) (*http.Respo "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.legacyAbac" call. @@ -12140,7 +12140,7 @@ func (c *ProjectsZonesClustersListCall) doRequest(alt string) (*http.Response, e "projectId": c.projectId, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.list" call. @@ -12260,7 +12260,7 @@ func (c *ProjectsZonesClustersLocationsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.locations" call. @@ -12376,7 +12376,7 @@ func (c *ProjectsZonesClustersLoggingCall) doRequest(alt string) (*http.Response "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.logging" call. @@ -12492,7 +12492,7 @@ func (c *ProjectsZonesClustersMasterCall) doRequest(alt string) (*http.Response, "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.master" call. @@ -12608,7 +12608,7 @@ func (c *ProjectsZonesClustersMonitoringCall) doRequest(alt string) (*http.Respo "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.monitoring" call. @@ -12724,7 +12724,7 @@ func (c *ProjectsZonesClustersResourceLabelsCall) doRequest(alt string) (*http.R "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.resourceLabels" call. @@ -12836,7 +12836,7 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) doRequest(alt string) (* "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.setMaintenancePolicy" call. @@ -12954,7 +12954,7 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) doRequest(alt string) (*http.Re "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.setMasterAuth" call. @@ -13070,7 +13070,7 @@ func (c *ProjectsZonesClustersSetNetworkPolicyCall) doRequest(alt string) (*http "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.setNetworkPolicy" call. @@ -13186,7 +13186,7 @@ func (c *ProjectsZonesClustersStartIpRotationCall) doRequest(alt string) (*http. "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.startIpRotation" call. @@ -13302,7 +13302,7 @@ func (c *ProjectsZonesClustersUpdateCall) doRequest(alt string) (*http.Response, "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.update" call. @@ -13423,7 +13423,7 @@ func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) doRequest(alt string) (* "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.autoscaling" call. @@ -13539,7 +13539,7 @@ func (c *ProjectsZonesClustersNodePoolsCreateCall) doRequest(alt string) (*http. "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.create" call. @@ -13662,7 +13662,7 @@ func (c *ProjectsZonesClustersNodePoolsDeleteCall) doRequest(alt string) (*http. "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.delete" call. @@ -13797,7 +13797,7 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) doRequest(alt string) (*http.Res "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.get" call. @@ -13927,7 +13927,7 @@ func (c *ProjectsZonesClustersNodePoolsListCall) doRequest(alt string) (*http.Re "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.list" call. @@ -14050,7 +14050,7 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) doRequest(alt string) (*htt "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.rollback" call. @@ -14171,7 +14171,7 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) doRequest(alt string) "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.setManagement" call. @@ -14294,7 +14294,7 @@ func (c *ProjectsZonesClustersNodePoolsSetSizeCall) doRequest(alt string) (*http "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.setSize" call. @@ -14415,7 +14415,7 @@ func (c *ProjectsZonesClustersNodePoolsUpdateCall) doRequest(alt string) (*http. "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.update" call. @@ -14531,7 +14531,7 @@ func (c *ProjectsZonesOperationsCancelCall) doRequest(alt string) (*http.Respons "zone": c.zone, "operationId": c.operationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.operations.cancel" call. @@ -14661,7 +14661,7 @@ func (c *ProjectsZonesOperationsGetCall) doRequest(alt string) (*http.Response, "zone": c.zone, "operationId": c.operationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.operations.get" call. @@ -14786,7 +14786,7 @@ func (c *ProjectsZonesOperationsListCall) doRequest(alt string) (*http.Response, "projectId": c.projectId, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.operations.list" call. diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 3a48cce7d15..92f04262006 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -8097,7 +8097,7 @@ func (c *ProjectsAggregatedUsableSubnetworksListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.aggregated.usableSubnetworks.list" call. @@ -8246,7 +8246,7 @@ func (c *ProjectsLocationsGetServerConfigCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.getServerConfig" call. @@ -8354,7 +8354,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.list" call. @@ -8464,7 +8464,7 @@ func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.checkAutopilotCompatibility" call. @@ -8568,7 +8568,7 @@ func (c *ProjectsLocationsClustersCompleteIpRotationCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.completeIpRotation" call. @@ -8678,7 +8678,7 @@ func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.create" call. @@ -8804,7 +8804,7 @@ func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.delete" call. @@ -8938,7 +8938,7 @@ func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.get" call. @@ -9047,7 +9047,7 @@ func (c *ProjectsLocationsClustersGetJwksCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.getJwks" call. @@ -9177,7 +9177,7 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.list" call. @@ -9280,7 +9280,7 @@ func (c *ProjectsLocationsClustersSetAddonsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setAddons" call. @@ -9383,7 +9383,7 @@ func (c *ProjectsLocationsClustersSetLegacyAbacCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setLegacyAbac" call. @@ -9488,7 +9488,7 @@ func (c *ProjectsLocationsClustersSetLocationsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setLocations" call. @@ -9590,7 +9590,7 @@ func (c *ProjectsLocationsClustersSetLoggingCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setLogging" call. @@ -9693,7 +9693,7 @@ func (c *ProjectsLocationsClustersSetMaintenancePolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setMaintenancePolicy" call. @@ -9797,7 +9797,7 @@ func (c *ProjectsLocationsClustersSetMasterAuthCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setMasterAuth" call. @@ -9899,7 +9899,7 @@ func (c *ProjectsLocationsClustersSetMonitoringCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setMonitoring" call. @@ -10002,7 +10002,7 @@ func (c *ProjectsLocationsClustersSetNetworkPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setNetworkPolicy" call. @@ -10104,7 +10104,7 @@ func (c *ProjectsLocationsClustersSetResourceLabelsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.setResourceLabels" call. @@ -10206,7 +10206,7 @@ func (c *ProjectsLocationsClustersStartIpRotationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.startIpRotation" call. @@ -10308,7 +10308,7 @@ func (c *ProjectsLocationsClustersUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.update" call. @@ -10410,7 +10410,7 @@ func (c *ProjectsLocationsClustersUpdateMasterCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.updateMaster" call. @@ -10514,7 +10514,7 @@ func (c *ProjectsLocationsClustersNodePoolsCompleteUpgradeCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.completeUpgrade" call. @@ -10617,7 +10617,7 @@ func (c *ProjectsLocationsClustersNodePoolsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.create" call. @@ -10748,7 +10748,7 @@ func (c *ProjectsLocationsClustersNodePoolsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.delete" call. @@ -10891,7 +10891,7 @@ func (c *ProjectsLocationsClustersNodePoolsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.get" call. @@ -11026,7 +11026,7 @@ func (c *ProjectsLocationsClustersNodePoolsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.list" call. @@ -11131,7 +11131,7 @@ func (c *ProjectsLocationsClustersNodePoolsRollbackCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.rollback" call. @@ -11234,7 +11234,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetAutoscalingCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.setAutoscaling" call. @@ -11337,7 +11337,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetManagementCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.setManagement" call. @@ -11442,7 +11442,7 @@ func (c *ProjectsLocationsClustersNodePoolsSetSizeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.setSize" call. @@ -11545,7 +11545,7 @@ func (c *ProjectsLocationsClustersNodePoolsUpdateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.nodePools.update" call. @@ -11655,7 +11655,7 @@ func (c *ProjectsLocationsClustersWellKnownGetOpenidConfigurationCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.clusters.well-known.getOpenid-configuration" call. @@ -11758,7 +11758,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.operations.cancel" call. @@ -11892,7 +11892,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.operations.get" call. @@ -12020,7 +12020,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.locations.operations.list" call. @@ -12146,7 +12146,7 @@ func (c *ProjectsZonesGetServerconfigCall) doRequest(alt string) (*http.Response "projectId": c.projectId, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.getServerconfig" call. @@ -12262,7 +12262,7 @@ func (c *ProjectsZonesClustersAddonsCall) doRequest(alt string) (*http.Response, "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.addons" call. @@ -12378,7 +12378,7 @@ func (c *ProjectsZonesClustersCompleteIpRotationCall) doRequest(alt string) (*ht "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.completeIpRotation" call. @@ -12497,7 +12497,7 @@ func (c *ProjectsZonesClustersCreateCall) doRequest(alt string) (*http.Response, "projectId": c.projectId, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.create" call. @@ -12619,7 +12619,7 @@ func (c *ProjectsZonesClustersDeleteCall) doRequest(alt string) (*http.Response, "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.delete" call. @@ -12749,7 +12749,7 @@ func (c *ProjectsZonesClustersGetCall) doRequest(alt string) (*http.Response, er "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.get" call. @@ -12866,7 +12866,7 @@ func (c *ProjectsZonesClustersLegacyAbacCall) doRequest(alt string) (*http.Respo "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.legacyAbac" call. @@ -12992,7 +12992,7 @@ func (c *ProjectsZonesClustersListCall) doRequest(alt string) (*http.Response, e "projectId": c.projectId, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.list" call. @@ -13112,7 +13112,7 @@ func (c *ProjectsZonesClustersLocationsCall) doRequest(alt string) (*http.Respon "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.locations" call. @@ -13228,7 +13228,7 @@ func (c *ProjectsZonesClustersLoggingCall) doRequest(alt string) (*http.Response "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.logging" call. @@ -13344,7 +13344,7 @@ func (c *ProjectsZonesClustersMasterCall) doRequest(alt string) (*http.Response, "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.master" call. @@ -13460,7 +13460,7 @@ func (c *ProjectsZonesClustersMonitoringCall) doRequest(alt string) (*http.Respo "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.monitoring" call. @@ -13576,7 +13576,7 @@ func (c *ProjectsZonesClustersResourceLabelsCall) doRequest(alt string) (*http.R "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.resourceLabels" call. @@ -13688,7 +13688,7 @@ func (c *ProjectsZonesClustersSetMaintenancePolicyCall) doRequest(alt string) (* "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.setMaintenancePolicy" call. @@ -13806,7 +13806,7 @@ func (c *ProjectsZonesClustersSetMasterAuthCall) doRequest(alt string) (*http.Re "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.setMasterAuth" call. @@ -13922,7 +13922,7 @@ func (c *ProjectsZonesClustersSetNetworkPolicyCall) doRequest(alt string) (*http "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.setNetworkPolicy" call. @@ -14038,7 +14038,7 @@ func (c *ProjectsZonesClustersStartIpRotationCall) doRequest(alt string) (*http. "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.startIpRotation" call. @@ -14154,7 +14154,7 @@ func (c *ProjectsZonesClustersUpdateCall) doRequest(alt string) (*http.Response, "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.update" call. @@ -14275,7 +14275,7 @@ func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) doRequest(alt string) (* "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.autoscaling" call. @@ -14391,7 +14391,7 @@ func (c *ProjectsZonesClustersNodePoolsCreateCall) doRequest(alt string) (*http. "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.create" call. @@ -14514,7 +14514,7 @@ func (c *ProjectsZonesClustersNodePoolsDeleteCall) doRequest(alt string) (*http. "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.delete" call. @@ -14649,7 +14649,7 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) doRequest(alt string) (*http.Res "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.get" call. @@ -14779,7 +14779,7 @@ func (c *ProjectsZonesClustersNodePoolsListCall) doRequest(alt string) (*http.Re "zone": c.zone, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.list" call. @@ -14902,7 +14902,7 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) doRequest(alt string) (*htt "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.rollback" call. @@ -15023,7 +15023,7 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) doRequest(alt string) "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.setManagement" call. @@ -15146,7 +15146,7 @@ func (c *ProjectsZonesClustersNodePoolsSetSizeCall) doRequest(alt string) (*http "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.setSize" call. @@ -15267,7 +15267,7 @@ func (c *ProjectsZonesClustersNodePoolsUpdateCall) doRequest(alt string) (*http. "clusterId": c.clusterId, "nodePoolId": c.nodePoolId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.clusters.nodePools.update" call. @@ -15383,7 +15383,7 @@ func (c *ProjectsZonesOperationsCancelCall) doRequest(alt string) (*http.Respons "zone": c.zone, "operationId": c.operationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.operations.cancel" call. @@ -15513,7 +15513,7 @@ func (c *ProjectsZonesOperationsGetCall) doRequest(alt string) (*http.Response, "zone": c.zone, "operationId": c.operationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.operations.get" call. @@ -15638,7 +15638,7 @@ func (c *ProjectsZonesOperationsListCall) doRequest(alt string) (*http.Response, "projectId": c.projectId, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "container.projects.zones.operations.list" call. diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index 842bd4cbffc..0a48308676e 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -6391,7 +6391,7 @@ func (c *ProjectsLocationsNotesBatchCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.batchCreate" call. @@ -6501,7 +6501,7 @@ func (c *ProjectsLocationsNotesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.create" call. @@ -6597,7 +6597,7 @@ func (c *ProjectsLocationsNotesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.delete" call. @@ -6705,7 +6705,7 @@ func (c *ProjectsLocationsNotesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.get" call. @@ -6813,7 +6813,7 @@ func (c *ProjectsLocationsNotesGetIamPolicyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.getIamPolicy" call. @@ -6942,7 +6942,7 @@ func (c *ProjectsLocationsNotesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.list" call. @@ -7072,7 +7072,7 @@ func (c *ProjectsLocationsNotesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.patch" call. @@ -7180,7 +7180,7 @@ func (c *ProjectsLocationsNotesSetIamPolicyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.setIamPolicy" call. @@ -7288,7 +7288,7 @@ func (c *ProjectsLocationsNotesTestIamPermissionsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.testIamPermissions" call. @@ -7419,7 +7419,7 @@ func (c *ProjectsLocationsNotesOccurrencesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.occurrences.list" call. @@ -7543,7 +7543,7 @@ func (c *ProjectsLocationsOccurrencesBatchCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.batchCreate" call. @@ -7646,7 +7646,7 @@ func (c *ProjectsLocationsOccurrencesCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.create" call. @@ -7744,7 +7744,7 @@ func (c *ProjectsLocationsOccurrencesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.delete" call. @@ -7852,7 +7852,7 @@ func (c *ProjectsLocationsOccurrencesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.get" call. @@ -7960,7 +7960,7 @@ func (c *ProjectsLocationsOccurrencesGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.getIamPolicy" call. @@ -8070,7 +8070,7 @@ func (c *ProjectsLocationsOccurrencesGetNotesCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.getNotes" call. @@ -8185,7 +8185,7 @@ func (c *ProjectsLocationsOccurrencesGetVulnerabilitySummaryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.getVulnerabilitySummary" call. @@ -8315,7 +8315,7 @@ func (c *ProjectsLocationsOccurrencesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.list" call. @@ -8445,7 +8445,7 @@ func (c *ProjectsLocationsOccurrencesPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.patch" call. @@ -8553,7 +8553,7 @@ func (c *ProjectsLocationsOccurrencesSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.setIamPolicy" call. @@ -8661,7 +8661,7 @@ func (c *ProjectsLocationsOccurrencesTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.testIamPermissions" call. @@ -8764,7 +8764,7 @@ func (c *ProjectsLocationsResourcesExportSBOMCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.resources.exportSBOM" call. @@ -8867,7 +8867,7 @@ func (c *ProjectsNotesBatchCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.batchCreate" call. @@ -8977,7 +8977,7 @@ func (c *ProjectsNotesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.create" call. @@ -9073,7 +9073,7 @@ func (c *ProjectsNotesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.delete" call. @@ -9181,7 +9181,7 @@ func (c *ProjectsNotesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.get" call. @@ -9289,7 +9289,7 @@ func (c *ProjectsNotesGetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.getIamPolicy" call. @@ -9418,7 +9418,7 @@ func (c *ProjectsNotesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.list" call. @@ -9548,7 +9548,7 @@ func (c *ProjectsNotesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.patch" call. @@ -9656,7 +9656,7 @@ func (c *ProjectsNotesSetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.setIamPolicy" call. @@ -9764,7 +9764,7 @@ func (c *ProjectsNotesTestIamPermissionsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.testIamPermissions" call. @@ -9895,7 +9895,7 @@ func (c *ProjectsNotesOccurrencesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.occurrences.list" call. @@ -10019,7 +10019,7 @@ func (c *ProjectsOccurrencesBatchCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.batchCreate" call. @@ -10122,7 +10122,7 @@ func (c *ProjectsOccurrencesCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.create" call. @@ -10220,7 +10220,7 @@ func (c *ProjectsOccurrencesDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.delete" call. @@ -10328,7 +10328,7 @@ func (c *ProjectsOccurrencesGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.get" call. @@ -10436,7 +10436,7 @@ func (c *ProjectsOccurrencesGetIamPolicyCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.getIamPolicy" call. @@ -10546,7 +10546,7 @@ func (c *ProjectsOccurrencesGetNotesCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.getNotes" call. @@ -10661,7 +10661,7 @@ func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.getVulnerabilitySummary" call. @@ -10791,7 +10791,7 @@ func (c *ProjectsOccurrencesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.list" call. @@ -10921,7 +10921,7 @@ func (c *ProjectsOccurrencesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.patch" call. @@ -11029,7 +11029,7 @@ func (c *ProjectsOccurrencesSetIamPolicyCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.setIamPolicy" call. @@ -11137,7 +11137,7 @@ func (c *ProjectsOccurrencesTestIamPermissionsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.testIamPermissions" call. @@ -11240,7 +11240,7 @@ func (c *ProjectsResourcesExportSBOMCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.resources.exportSBOM" call. diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index bda9b1ea455..91b46cca2a5 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -7055,7 +7055,7 @@ func (c *ProjectsNotesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.create" call. @@ -7151,7 +7151,7 @@ func (c *ProjectsNotesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.delete" call. @@ -7259,7 +7259,7 @@ func (c *ProjectsNotesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.get" call. @@ -7371,7 +7371,7 @@ func (c *ProjectsNotesGetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.getIamPolicy" call. @@ -7506,7 +7506,7 @@ func (c *ProjectsNotesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.list" call. @@ -7636,7 +7636,7 @@ func (c *ProjectsNotesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.patch" call. @@ -7749,7 +7749,7 @@ func (c *ProjectsNotesSetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.setIamPolicy" call. @@ -7861,7 +7861,7 @@ func (c *ProjectsNotesTestIamPermissionsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.testIamPermissions" call. @@ -7992,7 +7992,7 @@ func (c *ProjectsNotesOccurrencesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.occurrences.list" call. @@ -8124,7 +8124,7 @@ func (c *ProjectsOccurrencesCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.create" call. @@ -8221,7 +8221,7 @@ func (c *ProjectsOccurrencesDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.delete" call. @@ -8329,7 +8329,7 @@ func (c *ProjectsOccurrencesGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.get" call. @@ -8441,7 +8441,7 @@ func (c *ProjectsOccurrencesGetIamPolicyCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.getIamPolicy" call. @@ -8549,7 +8549,7 @@ func (c *ProjectsOccurrencesGetNotesCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.getNotes" call. @@ -8663,7 +8663,7 @@ func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.getVulnerabilitySummary" call. @@ -8840,7 +8840,7 @@ func (c *ProjectsOccurrencesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.list" call. @@ -8970,7 +8970,7 @@ func (c *ProjectsOccurrencesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.patch" call. @@ -9083,7 +9083,7 @@ func (c *ProjectsOccurrencesSetIamPolicyCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.setIamPolicy" call. @@ -9195,7 +9195,7 @@ func (c *ProjectsOccurrencesTestIamPermissionsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.testIamPermissions" call. @@ -9297,7 +9297,7 @@ func (c *ProjectsOperationsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.operations.create" call. @@ -9401,7 +9401,7 @@ func (c *ProjectsOperationsPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.operations.patch" call. @@ -9509,7 +9509,7 @@ func (c *ProjectsScanConfigsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.scanConfigs.get" call. @@ -9636,7 +9636,7 @@ func (c *ProjectsScanConfigsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.scanConfigs.list" call. @@ -9766,7 +9766,7 @@ func (c *ProjectsScanConfigsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.scanConfigs.patch" call. @@ -9881,7 +9881,7 @@ func (c *ProvidersNotesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.providers.notes.create" call. @@ -9977,7 +9977,7 @@ func (c *ProvidersNotesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.providers.notes.delete" call. @@ -10085,7 +10085,7 @@ func (c *ProvidersNotesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.providers.notes.get" call. @@ -10197,7 +10197,7 @@ func (c *ProvidersNotesGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.providers.notes.getIamPolicy" call. @@ -10332,7 +10332,7 @@ func (c *ProvidersNotesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.providers.notes.list" call. @@ -10462,7 +10462,7 @@ func (c *ProvidersNotesPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.providers.notes.patch" call. @@ -10575,7 +10575,7 @@ func (c *ProvidersNotesSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.providers.notes.setIamPolicy" call. @@ -10687,7 +10687,7 @@ func (c *ProvidersNotesTestIamPermissionsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.providers.notes.testIamPermissions" call. @@ -10818,7 +10818,7 @@ func (c *ProvidersNotesOccurrencesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.providers.notes.occurrences.list" call. diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index abd3b91f036..738d16d0a2b 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -6573,7 +6573,7 @@ func (c *ProjectsLocationsNotesBatchCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.batchCreate" call. @@ -6683,7 +6683,7 @@ func (c *ProjectsLocationsNotesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.create" call. @@ -6779,7 +6779,7 @@ func (c *ProjectsLocationsNotesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.delete" call. @@ -6887,7 +6887,7 @@ func (c *ProjectsLocationsNotesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.get" call. @@ -6995,7 +6995,7 @@ func (c *ProjectsLocationsNotesGetIamPolicyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.getIamPolicy" call. @@ -7124,7 +7124,7 @@ func (c *ProjectsLocationsNotesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.list" call. @@ -7254,7 +7254,7 @@ func (c *ProjectsLocationsNotesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.patch" call. @@ -7362,7 +7362,7 @@ func (c *ProjectsLocationsNotesSetIamPolicyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.setIamPolicy" call. @@ -7470,7 +7470,7 @@ func (c *ProjectsLocationsNotesTestIamPermissionsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.testIamPermissions" call. @@ -7601,7 +7601,7 @@ func (c *ProjectsLocationsNotesOccurrencesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.notes.occurrences.list" call. @@ -7725,7 +7725,7 @@ func (c *ProjectsLocationsOccurrencesBatchCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.batchCreate" call. @@ -7828,7 +7828,7 @@ func (c *ProjectsLocationsOccurrencesCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.create" call. @@ -7926,7 +7926,7 @@ func (c *ProjectsLocationsOccurrencesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.delete" call. @@ -8034,7 +8034,7 @@ func (c *ProjectsLocationsOccurrencesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.get" call. @@ -8142,7 +8142,7 @@ func (c *ProjectsLocationsOccurrencesGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.getIamPolicy" call. @@ -8252,7 +8252,7 @@ func (c *ProjectsLocationsOccurrencesGetNotesCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.getNotes" call. @@ -8367,7 +8367,7 @@ func (c *ProjectsLocationsOccurrencesGetVulnerabilitySummaryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.getVulnerabilitySummary" call. @@ -8497,7 +8497,7 @@ func (c *ProjectsLocationsOccurrencesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.list" call. @@ -8627,7 +8627,7 @@ func (c *ProjectsLocationsOccurrencesPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.patch" call. @@ -8735,7 +8735,7 @@ func (c *ProjectsLocationsOccurrencesSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.setIamPolicy" call. @@ -8843,7 +8843,7 @@ func (c *ProjectsLocationsOccurrencesTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.occurrences.testIamPermissions" call. @@ -8947,7 +8947,7 @@ func (c *ProjectsLocationsResourcesExportSBOMCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.resources.exportSBOM" call. @@ -9051,7 +9051,7 @@ func (c *ProjectsLocationsResourcesGeneratePackagesSummaryCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.locations.resources.generatePackagesSummary" call. @@ -9154,7 +9154,7 @@ func (c *ProjectsNotesBatchCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.batchCreate" call. @@ -9264,7 +9264,7 @@ func (c *ProjectsNotesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.create" call. @@ -9360,7 +9360,7 @@ func (c *ProjectsNotesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.delete" call. @@ -9468,7 +9468,7 @@ func (c *ProjectsNotesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.get" call. @@ -9576,7 +9576,7 @@ func (c *ProjectsNotesGetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.getIamPolicy" call. @@ -9705,7 +9705,7 @@ func (c *ProjectsNotesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.list" call. @@ -9835,7 +9835,7 @@ func (c *ProjectsNotesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.patch" call. @@ -9943,7 +9943,7 @@ func (c *ProjectsNotesSetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.setIamPolicy" call. @@ -10051,7 +10051,7 @@ func (c *ProjectsNotesTestIamPermissionsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.testIamPermissions" call. @@ -10182,7 +10182,7 @@ func (c *ProjectsNotesOccurrencesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.notes.occurrences.list" call. @@ -10306,7 +10306,7 @@ func (c *ProjectsOccurrencesBatchCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.batchCreate" call. @@ -10409,7 +10409,7 @@ func (c *ProjectsOccurrencesCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.create" call. @@ -10507,7 +10507,7 @@ func (c *ProjectsOccurrencesDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.delete" call. @@ -10615,7 +10615,7 @@ func (c *ProjectsOccurrencesGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.get" call. @@ -10723,7 +10723,7 @@ func (c *ProjectsOccurrencesGetIamPolicyCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.getIamPolicy" call. @@ -10833,7 +10833,7 @@ func (c *ProjectsOccurrencesGetNotesCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.getNotes" call. @@ -10948,7 +10948,7 @@ func (c *ProjectsOccurrencesGetVulnerabilitySummaryCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.getVulnerabilitySummary" call. @@ -11078,7 +11078,7 @@ func (c *ProjectsOccurrencesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.list" call. @@ -11208,7 +11208,7 @@ func (c *ProjectsOccurrencesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.patch" call. @@ -11316,7 +11316,7 @@ func (c *ProjectsOccurrencesSetIamPolicyCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.setIamPolicy" call. @@ -11424,7 +11424,7 @@ func (c *ProjectsOccurrencesTestIamPermissionsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.occurrences.testIamPermissions" call. @@ -11528,7 +11528,7 @@ func (c *ProjectsResourcesExportSBOMCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.resources.exportSBOM" call. @@ -11632,7 +11632,7 @@ func (c *ProjectsResourcesGeneratePackagesSummaryCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "containeranalysis.projects.resources.generatePackagesSummary" call. diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index bfcdfba6dd7..b88780f5cbe 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -13198,7 +13198,7 @@ func (c *AccountsAuthinfoCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.authinfo" call. @@ -13311,7 +13311,7 @@ func (c *AccountsClaimwebsiteCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.claimwebsite" call. @@ -13407,7 +13407,7 @@ func (c *AccountsCustombatchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.custombatch" call. @@ -13515,7 +13515,7 @@ func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.delete" call. @@ -13618,7 +13618,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.get" call. @@ -13720,7 +13720,7 @@ func (c *AccountsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.insert" call. @@ -13828,7 +13828,7 @@ func (c *AccountsLinkCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.link" call. @@ -13978,7 +13978,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.list" call. @@ -14130,7 +14130,7 @@ func (c *AccountsListlinksCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.listlinks" call. @@ -14260,7 +14260,7 @@ func (c *AccountsRequestphoneverificationCall) doRequest(alt string) (*http.Resp "merchantId": strconv.FormatInt(c.merchantId, 10), "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.requestphoneverification" call. @@ -14369,7 +14369,7 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.update" call. @@ -14475,7 +14475,7 @@ func (c *AccountsUpdatelabelsCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.updatelabels" call. @@ -14586,7 +14586,7 @@ func (c *AccountsVerifyphonenumberCall) doRequest(alt string) (*http.Response, e "merchantId": strconv.FormatInt(c.merchantId, 10), "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.verifyphonenumber" call. @@ -14690,7 +14690,7 @@ func (c *AccountsCredentialsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.credentials.create" call. @@ -14792,7 +14792,7 @@ func (c *AccountsLabelsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.labels.create" call. @@ -14892,7 +14892,7 @@ func (c *AccountsLabelsDeleteCall) doRequest(alt string) (*http.Response, error) "accountId": strconv.FormatInt(c.accountId, 10), "labelId": strconv.FormatInt(c.labelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.labels.delete" call. @@ -14994,7 +14994,7 @@ func (c *AccountsLabelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.labels.list" call. @@ -15121,7 +15121,7 @@ func (c *AccountsLabelsPatchCall) doRequest(alt string) (*http.Response, error) "accountId": strconv.FormatInt(c.accountId, 10), "labelId": strconv.FormatInt(c.labelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.labels.patch" call. @@ -15223,7 +15223,7 @@ func (c *AccountsReturncarrierCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.returncarrier.create" call. @@ -15325,7 +15325,7 @@ func (c *AccountsReturncarrierDeleteCall) doRequest(alt string) (*http.Response, "accountId": strconv.FormatInt(c.accountId, 10), "carrierAccountId": strconv.FormatInt(c.carrierAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.returncarrier.delete" call. @@ -15410,7 +15410,7 @@ func (c *AccountsReturncarrierListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "accountId": strconv.FormatInt(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.returncarrier.list" call. @@ -15518,7 +15518,7 @@ func (c *AccountsReturncarrierPatchCall) doRequest(alt string) (*http.Response, "accountId": strconv.FormatInt(c.accountId, 10), "carrierAccountId": strconv.FormatInt(c.carrierAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.returncarrier.patch" call. @@ -15614,7 +15614,7 @@ func (c *AccountstatusesCustombatchCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accountstatuses.custombatch" call. @@ -15737,7 +15737,7 @@ func (c *AccountstatusesGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accountstatuses.get" call. @@ -15875,7 +15875,7 @@ func (c *AccountstatusesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accountstatuses.list" call. @@ -15992,7 +15992,7 @@ func (c *AccounttaxCustombatchCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounttax.custombatch" call. @@ -16107,7 +16107,7 @@ func (c *AccounttaxGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounttax.get" call. @@ -16230,7 +16230,7 @@ func (c *AccounttaxListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounttax.list" call. @@ -16361,7 +16361,7 @@ func (c *AccounttaxUpdateCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounttax.update" call. @@ -16466,7 +16466,7 @@ func (c *CollectionsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.collections.create" call. @@ -16567,7 +16567,7 @@ func (c *CollectionsDeleteCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatInt(c.merchantId, 10), "collectionId": c.collectionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.collections.delete" call. @@ -16656,7 +16656,7 @@ func (c *CollectionsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatInt(c.merchantId, 10), "collectionId": c.collectionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.collections.get" call. @@ -16782,7 +16782,7 @@ func (c *CollectionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.collections.list" call. @@ -16917,7 +16917,7 @@ func (c *CollectionstatusesGetCall) doRequest(alt string) (*http.Response, error "merchantId": strconv.FormatInt(c.merchantId, 10), "collectionId": c.collectionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.collectionstatuses.get" call. @@ -17042,7 +17042,7 @@ func (c *CollectionstatusesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.collectionstatuses.list" call. @@ -17165,7 +17165,7 @@ func (c *ConversionsourcesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.conversionsources.create" call. @@ -17267,7 +17267,7 @@ func (c *ConversionsourcesDeleteCall) doRequest(alt string) (*http.Response, err "merchantId": strconv.FormatInt(c.merchantId, 10), "conversionSourceId": c.conversionSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.conversionsources.delete" call. @@ -17355,7 +17355,7 @@ func (c *ConversionsourcesGetCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatInt(c.merchantId, 10), "conversionSourceId": c.conversionSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.conversionsources.get" call. @@ -17486,7 +17486,7 @@ func (c *ConversionsourcesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.conversionsources.list" call. @@ -17620,7 +17620,7 @@ func (c *ConversionsourcesPatchCall) doRequest(alt string) (*http.Response, erro "merchantId": strconv.FormatInt(c.merchantId, 10), "conversionSourceId": c.conversionSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.conversionsources.patch" call. @@ -17726,7 +17726,7 @@ func (c *ConversionsourcesUndeleteCall) doRequest(alt string) (*http.Response, e "merchantId": strconv.FormatInt(c.merchantId, 10), "conversionSourceId": c.conversionSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.conversionsources.undelete" call. @@ -17817,7 +17817,7 @@ func (c *CssesGetCall) doRequest(alt string) (*http.Response, error) { "cssGroupId": strconv.FormatInt(c.cssGroupId, 10), "cssDomainId": strconv.FormatInt(c.cssDomainId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.csses.get" call. @@ -17942,7 +17942,7 @@ func (c *CssesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "cssGroupId": strconv.FormatInt(c.cssGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.csses.list" call. @@ -18070,7 +18070,7 @@ func (c *CssesUpdatelabelsCall) doRequest(alt string) (*http.Response, error) { "cssGroupId": strconv.FormatInt(c.cssGroupId, 10), "cssDomainId": strconv.FormatInt(c.cssDomainId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.csses.updatelabels" call. @@ -18165,7 +18165,7 @@ func (c *DatafeedsCustombatchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.custombatch" call. @@ -18266,7 +18266,7 @@ func (c *DatafeedsDeleteCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "datafeedId": strconv.FormatUint(c.datafeedId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.delete" call. @@ -18347,7 +18347,7 @@ func (c *DatafeedsFetchnowCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "datafeedId": strconv.FormatUint(c.datafeedId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.fetchnow" call. @@ -18460,7 +18460,7 @@ func (c *DatafeedsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "datafeedId": strconv.FormatUint(c.datafeedId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.get" call. @@ -18563,7 +18563,7 @@ func (c *DatafeedsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.insert" call. @@ -18686,7 +18686,7 @@ func (c *DatafeedsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.list" call. @@ -18815,7 +18815,7 @@ func (c *DatafeedsUpdateCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "datafeedId": strconv.FormatUint(c.datafeedId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.update" call. @@ -18910,7 +18910,7 @@ func (c *DatafeedstatusesCustombatchCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeedstatuses.custombatch" call. @@ -19053,7 +19053,7 @@ func (c *DatafeedstatusesGetCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "datafeedId": strconv.FormatUint(c.datafeedId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeedstatuses.get" call. @@ -19175,7 +19175,7 @@ func (c *DatafeedstatusesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeedstatuses.list" call. @@ -19307,7 +19307,7 @@ func (c *FreelistingsprogramGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.freelistingsprogram.get" call. @@ -19411,7 +19411,7 @@ func (c *FreelistingsprogramRequestreviewCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.freelistingsprogram.requestreview" call. @@ -19484,7 +19484,7 @@ func (c *FreelistingsprogramCheckoutsettingsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.freelistingsprogram.checkoutsettings.delete" call. @@ -19569,7 +19569,7 @@ func (c *FreelistingsprogramCheckoutsettingsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.freelistingsprogram.checkoutsettings.get" call. @@ -19671,7 +19671,7 @@ func (c *FreelistingsprogramCheckoutsettingsInsertCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.freelistingsprogram.checkoutsettings.insert" call. @@ -19767,7 +19767,7 @@ func (c *LiasettingsCustombatchCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.custombatch" call. @@ -19881,7 +19881,7 @@ func (c *LiasettingsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.get" call. @@ -19996,7 +19996,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) doRequest(alt string) (*http.R "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.getaccessiblegmbaccounts" call. @@ -20120,7 +20120,7 @@ func (c *LiasettingsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.list" call. @@ -20243,7 +20243,7 @@ func (c *LiasettingsListposdataprovidersCall) doRequest(alt string) (*http.Respo return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.listposdataproviders" call. @@ -20348,7 +20348,7 @@ func (c *LiasettingsRequestgmbaccessCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.requestgmbaccess" call. @@ -20456,7 +20456,7 @@ func (c *LiasettingsRequestinventoryverificationCall) doRequest(alt string) (*ht "accountId": strconv.FormatUint(c.accountId, 10), "country": c.country, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.requestinventoryverification" call. @@ -20568,7 +20568,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) doRequest(alt string) ( "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.setinventoryverificationcontact" call. @@ -20700,7 +20700,7 @@ func (c *LiasettingsSetomnichannelexperienceCall) doRequest(alt string) (*http.R "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.setomnichannelexperience" call. @@ -20819,7 +20819,7 @@ func (c *LiasettingsSetposdataproviderCall) doRequest(alt string) (*http.Respons "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.setposdataprovider" call. @@ -20928,7 +20928,7 @@ func (c *LiasettingsUpdateCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.update" call. @@ -21023,7 +21023,7 @@ func (c *LocalinventoryCustombatchCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.localinventory.custombatch" call. @@ -21131,7 +21131,7 @@ func (c *LocalinventoryInsertCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.localinventory.insert" call. @@ -21251,7 +21251,7 @@ func (c *MerchantsupportRenderaccountissuesCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.merchantsupport.renderaccountissues" call. @@ -21378,7 +21378,7 @@ func (c *MerchantsupportRenderproductissuesCall) doRequest(alt string) (*http.Re "merchantId": strconv.FormatInt(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.merchantsupport.renderproductissues" call. @@ -21495,7 +21495,7 @@ func (c *MerchantsupportTriggeractionCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.merchantsupport.triggeraction" call. @@ -21597,7 +21597,7 @@ func (c *OrdertrackingsignalsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.ordertrackingsignals.create" call. @@ -21692,7 +21692,7 @@ func (c *PosCustombatchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.custombatch" call. @@ -21796,7 +21796,7 @@ func (c *PosDeleteCall) doRequest(alt string) (*http.Response, error) { "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), "storeCode": c.storeCode, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.delete" call. @@ -21888,7 +21888,7 @@ func (c *PosGetCall) doRequest(alt string) (*http.Response, error) { "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), "storeCode": c.storeCode, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.get" call. @@ -21993,7 +21993,7 @@ func (c *PosInsertCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.insert" call. @@ -22098,7 +22098,7 @@ func (c *PosInventoryCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.inventory" call. @@ -22210,7 +22210,7 @@ func (c *PosListCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.list" call. @@ -22316,7 +22316,7 @@ func (c *PosSaleCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.sale" call. @@ -22419,7 +22419,7 @@ func (c *ProductdeliverytimeCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.productdeliverytime.create" call. @@ -22521,7 +22521,7 @@ func (c *ProductdeliverytimeDeleteCall) doRequest(alt string) (*http.Response, e "merchantId": strconv.FormatInt(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.productdeliverytime.delete" call. @@ -22611,7 +22611,7 @@ func (c *ProductdeliverytimeGetCall) doRequest(alt string) (*http.Response, erro "merchantId": strconv.FormatInt(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.productdeliverytime.get" call. @@ -22707,7 +22707,7 @@ func (c *ProductsCustombatchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.custombatch" call. @@ -22816,7 +22816,7 @@ func (c *ProductsDeleteCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.delete" call. @@ -22905,7 +22905,7 @@ func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.get" call. @@ -23017,7 +23017,7 @@ func (c *ProductsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.insert" call. @@ -23142,7 +23142,7 @@ func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.list" call. @@ -23283,7 +23283,7 @@ func (c *ProductsUpdateCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.update" call. @@ -23377,7 +23377,7 @@ func (c *ProductstatusesCustombatchCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.productstatuses.custombatch" call. @@ -23498,7 +23498,7 @@ func (c *ProductstatusesGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.productstatuses.get" call. @@ -23629,7 +23629,7 @@ func (c *ProductstatusesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.productstatuses.list" call. @@ -23757,7 +23757,7 @@ func (c *PromotionsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.promotions.create" call. @@ -23868,7 +23868,7 @@ func (c *PromotionsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatInt(c.merchantId, 10), "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.promotions.get" call. @@ -24008,7 +24008,7 @@ func (c *PromotionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.promotions.list" call. @@ -24138,7 +24138,7 @@ func (c *PubsubnotificationsettingsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pubsubnotificationsettings.get" call. @@ -24241,7 +24241,7 @@ func (c *PubsubnotificationsettingsUpdateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pubsubnotificationsettings.update" call. @@ -24367,7 +24367,7 @@ func (c *QuotasListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.quotas.list" call. @@ -24517,7 +24517,7 @@ func (c *RecommendationsGenerateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.recommendations.generate" call. @@ -24620,7 +24620,7 @@ func (c *RecommendationsReportInteractionCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.recommendations.reportInteraction" call. @@ -24692,7 +24692,7 @@ func (c *RegionalinventoryCustombatchCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.regionalinventory.custombatch" call. @@ -24802,7 +24802,7 @@ func (c *RegionalinventoryInsertCall) doRequest(alt string) (*http.Response, err "merchantId": strconv.FormatUint(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.regionalinventory.insert" call. @@ -24911,7 +24911,7 @@ func (c *RegionsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.regions.create" call. @@ -25010,7 +25010,7 @@ func (c *RegionsDeleteCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatInt(c.merchantId, 10), "regionId": c.regionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.regions.delete" call. @@ -25099,7 +25099,7 @@ func (c *RegionsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatInt(c.merchantId, 10), "regionId": c.regionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.regions.get" call. @@ -25224,7 +25224,7 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.regions.list" call. @@ -25359,7 +25359,7 @@ func (c *RegionsPatchCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatInt(c.merchantId, 10), "regionId": c.regionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.regions.patch" call. @@ -25462,7 +25462,7 @@ func (c *ReportsSearchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.reports.search" call. @@ -25578,7 +25578,7 @@ func (c *ReturnaddressCustombatchCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnaddress.custombatch" call. @@ -25679,7 +25679,7 @@ func (c *ReturnaddressDeleteCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "returnAddressId": c.returnAddressId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnaddress.delete" call. @@ -25767,7 +25767,7 @@ func (c *ReturnaddressGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "returnAddressId": c.returnAddressId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnaddress.get" call. @@ -25868,7 +25868,7 @@ func (c *ReturnaddressInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnaddress.insert" call. @@ -25997,7 +25997,7 @@ func (c *ReturnaddressListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnaddress.list" call. @@ -26114,7 +26114,7 @@ func (c *ReturnpolicyCustombatchCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnpolicy.custombatch" call. @@ -26215,7 +26215,7 @@ func (c *ReturnpolicyDeleteCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "returnPolicyId": c.returnPolicyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnpolicy.delete" call. @@ -26303,7 +26303,7 @@ func (c *ReturnpolicyGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "returnPolicyId": c.returnPolicyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnpolicy.get" call. @@ -26404,7 +26404,7 @@ func (c *ReturnpolicyInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnpolicy.insert" call. @@ -26511,7 +26511,7 @@ func (c *ReturnpolicyListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnpolicy.list" call. @@ -26614,7 +26614,7 @@ func (c *ReturnpolicyonlineCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnpolicyonline.create" call. @@ -26715,7 +26715,7 @@ func (c *ReturnpolicyonlineDeleteCall) doRequest(alt string) (*http.Response, er "merchantId": strconv.FormatInt(c.merchantId, 10), "returnPolicyId": c.returnPolicyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnpolicyonline.delete" call. @@ -26804,7 +26804,7 @@ func (c *ReturnpolicyonlineGetCall) doRequest(alt string) (*http.Response, error "merchantId": strconv.FormatInt(c.merchantId, 10), "returnPolicyId": c.returnPolicyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnpolicyonline.get" call. @@ -26913,7 +26913,7 @@ func (c *ReturnpolicyonlineListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnpolicyonline.list" call. @@ -27020,7 +27020,7 @@ func (c *ReturnpolicyonlinePatchCall) doRequest(alt string) (*http.Response, err "merchantId": strconv.FormatInt(c.merchantId, 10), "returnPolicyId": c.returnPolicyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.returnpolicyonline.patch" call. @@ -27132,7 +27132,7 @@ func (c *SettlementreportsGetCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "settlementId": c.settlementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.settlementreports.get" call. @@ -27273,7 +27273,7 @@ func (c *SettlementreportsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.settlementreports.list" call. @@ -27429,7 +27429,7 @@ func (c *SettlementtransactionsListCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "settlementId": c.settlementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.settlementtransactions.list" call. @@ -27546,7 +27546,7 @@ func (c *ShippingsettingsCustombatchCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.custombatch" call. @@ -27661,7 +27661,7 @@ func (c *ShippingsettingsGetCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.get" call. @@ -27771,7 +27771,7 @@ func (c *ShippingsettingsGetsupportedcarriersCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.getsupportedcarriers" call. @@ -27880,7 +27880,7 @@ func (c *ShippingsettingsGetsupportedholidaysCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.getsupportedholidays" call. @@ -27990,7 +27990,7 @@ func (c *ShippingsettingsGetsupportedpickupservicesCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.getsupportedpickupservices" call. @@ -28114,7 +28114,7 @@ func (c *ShippingsettingsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.list" call. @@ -28245,7 +28245,7 @@ func (c *ShippingsettingsUpdateCall) doRequest(alt string) (*http.Response, erro "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.update" call. @@ -28356,7 +28356,7 @@ func (c *ShoppingadsprogramGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shoppingadsprogram.get" call. @@ -28460,7 +28460,7 @@ func (c *ShoppingadsprogramRequestreviewCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatInt(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shoppingadsprogram.requestreview" call. diff --git a/content/v2/content-gen.go b/content/v2/content-gen.go index aa7955d7512..e3bbe74ec62 100644 --- a/content/v2/content-gen.go +++ b/content/v2/content-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/shopping-content/v2/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // contentService, err := content.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // contentService, err := content.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // contentService, err := content.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package content // import "google.golang.org/api/content/v2" import ( @@ -71,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "content:v2" const apiName = "content" const apiVersion = "v2" const basePath = "https://shoppingcontent.googleapis.com/content/v2/" +const basePathTemplate = "https://shoppingcontent.UNIVERSE_DOMAIN/content/v2/" const mtlsBasePath = "https://shoppingcontent.mtls.googleapis.com/content/v2/" // OAuth2 scopes used by this API. @@ -92,7 +107,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -301,309 +318,237 @@ type ShippingsettingsService struct { s *APIService } -// Account: Account data. After the creation of a new account it may -// take a few minutes before it is fully operational. The methods -// delete, insert, and update require the admin role. +// Account: Account data. After the creation of a new account it may take a few +// minutes before it is fully operational. The methods delete, insert, and +// update require the admin role. type Account struct { // AdultContent: Indicates whether the merchant sells adult content. AdultContent bool `json:"adultContent,omitempty"` - - // AdwordsLinks: List of linked AdWords accounts that are active or - // pending approval. To create a new link request, add a new link with - // status `active` to the list. It will remain in a `pending` state - // until approved or rejected either in the AdWords interface or through - // the AdWords API. To delete an active link, or to cancel a link - // request, remove it from the list. + // AdwordsLinks: List of linked AdWords accounts that are active or pending + // approval. To create a new link request, add a new link with status `active` + // to the list. It will remain in a `pending` state until approved or rejected + // either in the AdWords interface or through the AdWords API. To delete an + // active link, or to cancel a link request, remove it from the list. AdwordsLinks []*AccountAdwordsLink `json:"adwordsLinks,omitempty"` - // BusinessInformation: The business information of the account. BusinessInformation *AccountBusinessInformation `json:"businessInformation,omitempty"` - - // GoogleMyBusinessLink: The GMB account which is linked or in the - // process of being linked with the Merchant Center account. + // GoogleMyBusinessLink: The GMB account which is linked or in the process of + // being linked with the Merchant Center account. GoogleMyBusinessLink *AccountGoogleMyBusinessLink `json:"googleMyBusinessLink,omitempty"` - // Id: Required for update. Merchant Center account ID. Id uint64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#account" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#account" Kind string `json:"kind,omitempty"` - // Name: Required. Display name for the account. Name string `json:"name,omitempty"` - - // ReviewsUrl: [DEPRECATED] This field is never returned and will be - // ignored if provided. + // ReviewsUrl: [DEPRECATED] This field is never returned and will be ignored if + // provided. ReviewsUrl string `json:"reviewsUrl,omitempty"` - // SellerId: Client-specific, locally-unique, internal ID for the child // account. SellerId string `json:"sellerId,omitempty"` - // Users: Users with access to the account. Every account (except for // subaccounts) must have at least one admin user. Users []*AccountUser `json:"users,omitempty"` - // WebsiteUrl: The merchant's website. WebsiteUrl string `json:"websiteUrl,omitempty"` - - // YoutubeChannelLinks: List of linked YouTube channels that are active - // or pending approval. To create a new link request, add a new link - // with status `active` to the list. It will remain in a `pending` state - // until approved or rejected in the YT Creator Studio interface. To - // delete an active link, or to cancel a link request, remove it from - // the list. + // YoutubeChannelLinks: List of linked YouTube channels that are active or + // pending approval. To create a new link request, add a new link with status + // `active` to the list. It will remain in a `pending` state until approved or + // rejected in the YT Creator Studio interface. To delete an active link, or to + // cancel a link request, remove it from the list. YoutubeChannelLinks []*AccountYouTubeChannelLink `json:"youtubeChannelLinks,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdultContent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdultContent") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdultContent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountAddress struct { - // Country: CLDR country code (e.g. "US"). This value cannot be set for - // a sub-account of an MCA. All MCA sub-accounts inherit the country of - // their parent MCA. + // Country: CLDR country code (e.g. "US"). This value cannot be set for a + // sub-account of an MCA. All MCA sub-accounts inherit the country of their + // parent MCA. Country string `json:"country,omitempty"` - - // Locality: City, town or commune. May also include dependent - // localities or sublocalities (e.g. neighborhoods or suburbs). + // Locality: City, town or commune. May also include dependent localities or + // sublocalities (e.g. neighborhoods or suburbs). Locality string `json:"locality,omitempty"` - // PostalCode: Postal code or ZIP (e.g. "94043"). PostalCode string `json:"postalCode,omitempty"` - - // Region: Top-level administrative subdivision of the country. For - // example, a state like California ("CA") or a province like Quebec - // ("QC"). + // Region: Top-level administrative subdivision of the country. For example, a + // state like California ("CA") or a province like Quebec ("QC"). Region string `json:"region,omitempty"` - // StreetAddress: Street-level part of the address. StreetAddress string `json:"streetAddress,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountAddress) MarshalJSON() ([]byte, error) { +func (s AccountAddress) MarshalJSON() ([]byte, error) { type NoMethod AccountAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountAdwordsLink struct { // AdwordsId: Customer ID of the AdWords account. AdwordsId uint64 `json:"adwordsId,omitempty,string"` - - // Status: Status of the link between this Merchant Center account and - // the AdWords account. Upon retrieval, it represents the actual status - // of the link and can be either `active` if it was approved in Google - // AdWords or `pending` if it's pending approval. Upon insertion, it - // represents the *intended* status of the link. Re-uploading a link - // with status `active` when it's still pending or with status `pending` - // when it's already active will have no effect: the status will remain - // unchanged. Re-uploading a link with deprecated status `inactive` is - // equivalent to not submitting the link at all and will delete the link - // if it was active or cancel the link request if it was pending. - // Acceptable values are: - "active" - "pending" + // Status: Status of the link between this Merchant Center account and the + // AdWords account. Upon retrieval, it represents the actual status of the link + // and can be either `active` if it was approved in Google AdWords or `pending` + // if it's pending approval. Upon insertion, it represents the *intended* + // status of the link. Re-uploading a link with status `active` when it's still + // pending or with status `pending` when it's already active will have no + // effect: the status will remain unchanged. Re-uploading a link with + // deprecated status `inactive` is equivalent to not submitting the link at all + // and will delete the link if it was active or cancel the link request if it + // was pending. Acceptable values are: - "active" - "pending" Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdwordsId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdwordsId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdwordsId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountAdwordsLink) MarshalJSON() ([]byte, error) { +func (s AccountAdwordsLink) MarshalJSON() ([]byte, error) { type NoMethod AccountAdwordsLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountBusinessInformation struct { // Address: The address of the business. Address *AccountAddress `json:"address,omitempty"` - // CustomerService: The customer service information of the business. CustomerService *AccountCustomerService `json:"customerService,omitempty"` - - // KoreanBusinessRegistrationNumber: The 10-digit Korean business - // registration number - // (https://support.google.com/merchants/answer/9037766) separated with - // dashes in the format: XXX-XX-XXXXX. This field will only be updated - // if explicitly set. + // KoreanBusinessRegistrationNumber: The 10-digit Korean business registration + // number (https://support.google.com/merchants/answer/9037766) separated with + // dashes in the format: XXX-XX-XXXXX. This field will only be updated if + // explicitly set. KoreanBusinessRegistrationNumber string `json:"koreanBusinessRegistrationNumber,omitempty"` - // PhoneNumber: The phone number of the business. PhoneNumber string `json:"phoneNumber,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountBusinessInformation) MarshalJSON() ([]byte, error) { +func (s AccountBusinessInformation) MarshalJSON() ([]byte, error) { type NoMethod AccountBusinessInformation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountCustomerService struct { // Email: Customer service email. Email string `json:"email,omitempty"` - // PhoneNumber: Customer service phone number. PhoneNumber string `json:"phoneNumber,omitempty"` - // Url: Customer service URL. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountCustomerService) MarshalJSON() ([]byte, error) { +func (s AccountCustomerService) MarshalJSON() ([]byte, error) { type NoMethod AccountCustomerService - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountGoogleMyBusinessLink struct { - // GmbEmail: The GMB email address of which a specific account within a - // GMB account. A sample account within a GMB account could be a - // business account with set of locations, managed under the GMB - // account. + // GmbEmail: The GMB email address of which a specific account within a GMB + // account. A sample account within a GMB account could be a business account + // with set of locations, managed under the GMB account. GmbEmail string `json:"gmbEmail,omitempty"` - - // Status: Status of the link between this Merchant Center account and - // the GMB account. Acceptable values are: - "active" - "pending" + // Status: Status of the link between this Merchant Center account and the GMB + // account. Acceptable values are: - "active" - "pending" Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "GmbEmail") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GmbEmail") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GmbEmail") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountGoogleMyBusinessLink) MarshalJSON() ([]byte, error) { +func (s AccountGoogleMyBusinessLink) MarshalJSON() ([]byte, error) { type NoMethod AccountGoogleMyBusinessLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountIdentifier struct { - // AggregatorId: The aggregator ID, set for aggregators and subaccounts - // (in that case, it represents the aggregator of the subaccount). + // AggregatorId: The aggregator ID, set for aggregators and subaccounts (in + // that case, it represents the aggregator of the subaccount). AggregatorId uint64 `json:"aggregatorId,omitempty,string"` - // MerchantId: The merchant account ID, set for individual accounts and // subaccounts. MerchantId uint64 `json:"merchantId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "AggregatorId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregatorId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AggregatorId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountIdentifier) MarshalJSON() ([]byte, error) { +func (s AccountIdentifier) MarshalJSON() ([]byte, error) { type NoMethod AccountIdentifier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountStatus: The status of an account, i.e., information about its @@ -612,1134 +557,860 @@ func (s *AccountIdentifier) MarshalJSON() ([]byte, error) { type AccountStatus struct { // AccountId: The ID of the account for which the status is reported. AccountId string `json:"accountId,omitempty"` - // AccountLevelIssues: A list of account level issues. AccountLevelIssues []*AccountStatusAccountLevelIssue `json:"accountLevelIssues,omitempty"` - // DataQualityIssues: DEPRECATED - never populated. DataQualityIssues []*AccountStatusDataQualityIssue `json:"dataQualityIssues,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accountStatus" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accountStatus" Kind string `json:"kind,omitempty"` - - // Products: List of product-related data by channel, destination, and - // country. Data in this field may be delayed by up to 30 minutes. + // Products: List of product-related data by channel, destination, and country. + // Data in this field may be delayed by up to 30 minutes. Products []*AccountStatusProducts `json:"products,omitempty"` - // WebsiteClaimed: Whether the account's website is claimed or not. WebsiteClaimed bool `json:"websiteClaimed,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountStatus) MarshalJSON() ([]byte, error) { +func (s AccountStatus) MarshalJSON() ([]byte, error) { type NoMethod AccountStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountStatusAccountLevelIssue struct { // Country: Country for which this issue is reported. Country string `json:"country,omitempty"` - - // Destination: The destination the issue applies to. If this field is - // empty then the issue applies to all available destinations. + // Destination: The destination the issue applies to. If this field is empty + // then the issue applies to all available destinations. Destination string `json:"destination,omitempty"` - // Detail: Additional details about the issue. Detail string `json:"detail,omitempty"` - // Documentation: The URL of a web page to help resolving this issue. Documentation string `json:"documentation,omitempty"` - // Id: Issue identifier. Id string `json:"id,omitempty"` - - // Severity: Severity of the issue. Acceptable values are: - - // "critical" - "error" - "suggestion" + // Severity: Severity of the issue. Acceptable values are: - "critical" - + // "error" - "suggestion" Severity string `json:"severity,omitempty"` - // Title: Short description of the issue. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountStatusAccountLevelIssue) MarshalJSON() ([]byte, error) { +func (s AccountStatusAccountLevelIssue) MarshalJSON() ([]byte, error) { type NoMethod AccountStatusAccountLevelIssue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountStatusDataQualityIssue struct { - Country string `json:"country,omitempty"` - - Destination string `json:"destination,omitempty"` - - Detail string `json:"detail,omitempty"` - - DisplayedValue string `json:"displayedValue,omitempty"` - - ExampleItems []*AccountStatusExampleItem `json:"exampleItems,omitempty"` - - Id string `json:"id,omitempty"` - - LastChecked string `json:"lastChecked,omitempty"` - - Location string `json:"location,omitempty"` - - NumItems int64 `json:"numItems,omitempty"` - + Country string `json:"country,omitempty"` + Destination string `json:"destination,omitempty"` + Detail string `json:"detail,omitempty"` + DisplayedValue string `json:"displayedValue,omitempty"` + ExampleItems []*AccountStatusExampleItem `json:"exampleItems,omitempty"` + Id string `json:"id,omitempty"` + LastChecked string `json:"lastChecked,omitempty"` + Location string `json:"location,omitempty"` + NumItems int64 `json:"numItems,omitempty"` // Severity: Acceptable values are: - "critical" - "error" - // "suggestion" - Severity string `json:"severity,omitempty"` - + Severity string `json:"severity,omitempty"` SubmittedValue string `json:"submittedValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountStatusDataQualityIssue) MarshalJSON() ([]byte, error) { +func (s AccountStatusDataQualityIssue) MarshalJSON() ([]byte, error) { type NoMethod AccountStatusDataQualityIssue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountStatusExampleItem struct { - ItemId string `json:"itemId,omitempty"` - - Link string `json:"link,omitempty"` - - SubmittedValue string `json:"submittedValue,omitempty"` - - Title string `json:"title,omitempty"` - + ItemId string `json:"itemId,omitempty"` + Link string `json:"link,omitempty"` + SubmittedValue string `json:"submittedValue,omitempty"` + Title string `json:"title,omitempty"` ValueOnLandingPage string `json:"valueOnLandingPage,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ItemId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ItemId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ItemId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountStatusExampleItem) MarshalJSON() ([]byte, error) { +func (s AccountStatusExampleItem) MarshalJSON() ([]byte, error) { type NoMethod AccountStatusExampleItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountStatusItemLevelIssue struct { - // AttributeName: The attribute's name, if the issue is caused by a - // single attribute. + // AttributeName: The attribute's name, if the issue is caused by a single + // attribute. AttributeName string `json:"attributeName,omitempty"` - // Code: The error code of the issue. Code string `json:"code,omitempty"` - // Description: A short issue description in English. Description string `json:"description,omitempty"` - // Detail: A detailed issue description in English. Detail string `json:"detail,omitempty"` - - // Documentation: The URL of a web page to help with resolving this - // issue. + // Documentation: The URL of a web page to help with resolving this issue. Documentation string `json:"documentation,omitempty"` - // NumItems: Number of items with this issue. NumItems int64 `json:"numItems,omitempty,string"` - // Resolution: Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` - // Servability: How this issue affects serving of the offer. Servability string `json:"servability,omitempty"` - // ForceSendFields is a list of field names (e.g. "AttributeName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttributeName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AttributeName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountStatusItemLevelIssue) MarshalJSON() ([]byte, error) { +func (s AccountStatusItemLevelIssue) MarshalJSON() ([]byte, error) { type NoMethod AccountStatusItemLevelIssue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountStatusProducts struct { - // Channel: The channel the data applies to. Acceptable values are: - - // "local" - "online" + // Channel: The channel the data applies to. Acceptable values are: - "local" + // - "online" Channel string `json:"channel,omitempty"` - // Country: The country the data applies to. Country string `json:"country,omitempty"` - // Destination: The destination the data applies to. Destination string `json:"destination,omitempty"` - // ItemLevelIssues: List of item-level issues. ItemLevelIssues []*AccountStatusItemLevelIssue `json:"itemLevelIssues,omitempty"` - // Statistics: Aggregated product statistics. Statistics *AccountStatusStatistics `json:"statistics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Channel") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Channel") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Channel") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Channel") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountStatusProducts) MarshalJSON() ([]byte, error) { +func (s AccountStatusProducts) MarshalJSON() ([]byte, error) { type NoMethod AccountStatusProducts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountStatusStatistics struct { // Active: Number of active offers. Active int64 `json:"active,omitempty,string"` - // Disapproved: Number of disapproved offers. Disapproved int64 `json:"disapproved,omitempty,string"` - // Expiring: Number of expiring offers. Expiring int64 `json:"expiring,omitempty,string"` - // Pending: Number of pending offers. Pending int64 `json:"pending,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountStatusStatistics) MarshalJSON() ([]byte, error) { +func (s AccountStatusStatistics) MarshalJSON() ([]byte, error) { type NoMethod AccountStatusStatistics - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountTax: The tax settings of a merchant account. All methods -// require the admin role. +// AccountTax: The tax settings of a merchant account. All methods require the +// admin role. type AccountTax struct { // AccountId: Required. The ID of the account to which these account tax // settings belong. AccountId uint64 `json:"accountId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accountTax". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accountTax". Kind string `json:"kind,omitempty"` - // Rules: Tax rules. Updating the tax rules will enable US taxes (not - // reversible). Defining no rules is equivalent to not charging tax at - // all. + // reversible). Defining no rules is equivalent to not charging tax at all. Rules []*AccountTaxTaxRule `json:"rules,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountTax) MarshalJSON() ([]byte, error) { +func (s AccountTax) MarshalJSON() ([]byte, error) { type NoMethod AccountTax - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountTaxTaxRule: Tax calculation rule to apply in a state or -// province (USA only). +// AccountTaxTaxRule: Tax calculation rule to apply in a state or province (USA +// only). type AccountTaxTaxRule struct { // Country: Country code in which tax is applicable. Country string `json:"country,omitempty"` - - // LocationId: Required. State (or province) is which the tax is - // applicable, described by its location ID (also called criteria ID). + // LocationId: Required. State (or province) is which the tax is applicable, + // described by its location ID (also called criteria ID). LocationId uint64 `json:"locationId,omitempty,string"` - - // RatePercent: Explicit tax rate in percent, represented as a floating - // point number without the percentage character. Must not be negative. + // RatePercent: Explicit tax rate in percent, represented as a floating point + // number without the percentage character. Must not be negative. RatePercent string `json:"ratePercent,omitempty"` - // ShippingTaxed: If true, shipping charges are also taxed. ShippingTaxed bool `json:"shippingTaxed,omitempty"` - - // UseGlobalRate: Whether the tax rate is taken from a global tax table - // or specified explicitly. + // UseGlobalRate: Whether the tax rate is taken from a global tax table or + // specified explicitly. UseGlobalRate bool `json:"useGlobalRate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountTaxTaxRule) MarshalJSON() ([]byte, error) { +func (s AccountTaxTaxRule) MarshalJSON() ([]byte, error) { type NoMethod AccountTaxTaxRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountUser struct { // Admin: Whether user is an admin. Admin *bool `json:"admin,omitempty"` - // EmailAddress: User's email address. EmailAddress string `json:"emailAddress,omitempty"` - // OrderManager: Whether user is an order manager. OrderManager bool `json:"orderManager,omitempty"` - // PaymentsAnalyst: Whether user can access payment statements. PaymentsAnalyst bool `json:"paymentsAnalyst,omitempty"` - // PaymentsManager: Whether user can manage payment settings. PaymentsManager bool `json:"paymentsManager,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Admin") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Admin") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Admin") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUser) MarshalJSON() ([]byte, error) { +func (s AccountUser) MarshalJSON() ([]byte, error) { type NoMethod AccountUser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountYouTubeChannelLink struct { // ChannelId: Channel ID. ChannelId string `json:"channelId,omitempty"` - - // Status: Status of the link between this Merchant Center account and - // the YouTube channel. Upon retrieval, it represents the actual status - // of the link and can be either `active` if it was approved in YT - // Creator Studio or `pending` if it's pending approval. Upon insertion, - // it represents the *intended* status of the link. Re-uploading a link - // with status `active` when it's still pending or with status `pending` - // when it's already active will have no effect: the status will remain - // unchanged. Re-uploading a link with deprecated status `inactive` is - // equivalent to not submitting the link at all and will delete the link - // if it was active or cancel the link request if it was pending. + // Status: Status of the link between this Merchant Center account and the + // YouTube channel. Upon retrieval, it represents the actual status of the link + // and can be either `active` if it was approved in YT Creator Studio or + // `pending` if it's pending approval. Upon insertion, it represents the + // *intended* status of the link. Re-uploading a link with status `active` when + // it's still pending or with status `pending` when it's already active will + // have no effect: the status will remain unchanged. Re-uploading a link with + // deprecated status `inactive` is equivalent to not submitting the link at all + // and will delete the link if it was active or cancel the link request if it + // was pending. Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountYouTubeChannelLink) MarshalJSON() ([]byte, error) { +func (s AccountYouTubeChannelLink) MarshalJSON() ([]byte, error) { type NoMethod AccountYouTubeChannelLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountsAuthInfoResponse struct { // AccountIdentifiers: The account identifiers corresponding to the - // authenticated user. - For an individual account: only the merchant ID - // is defined - For an aggregator: only the aggregator ID is defined - - // For a subaccount of an MCA: both the merchant ID and the aggregator - // ID are defined. + // authenticated user. - For an individual account: only the merchant ID is + // defined - For an aggregator: only the aggregator ID is defined - For a + // subaccount of an MCA: both the merchant ID and the aggregator ID are + // defined. AccountIdentifiers []*AccountIdentifier `json:"accountIdentifiers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accountsAuthInfoResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accountsAuthInfoResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountIdentifiers") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountIdentifiers") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountIdentifiers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountIdentifiers") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsAuthInfoResponse) MarshalJSON() ([]byte, error) { +func (s AccountsAuthInfoResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsAuthInfoResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountsClaimWebsiteResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accountsClaimWebsiteResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accountsClaimWebsiteResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsClaimWebsiteResponse) MarshalJSON() ([]byte, error) { +func (s AccountsClaimWebsiteResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsClaimWebsiteResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountsCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*AccountsCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s AccountsCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod AccountsCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountsCustomBatchRequestEntry: A batch entry encoding a single -// non-batch accounts request. +// AccountsCustomBatchRequestEntry: A batch entry encoding a single non-batch +// accounts request. type AccountsCustomBatchRequestEntry struct { - // Account: The account to create or update. Only defined if the method - // is `insert` or `update`. + // Account: The account to create or update. Only defined if the method is + // `insert` or `update`. Account *Account `json:"account,omitempty"` - - // AccountId: The ID of the targeted account. Only defined if the method - // is not `insert`. + // AccountId: The ID of the targeted account. Only defined if the method is not + // `insert`. AccountId uint64 `json:"accountId,omitempty,string"` - // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - - // Force: Whether the account should be deleted if the account has - // offers. Only applicable if the method is `delete`. + // Force: Whether the account should be deleted if the account has offers. Only + // applicable if the method is `delete`. Force bool `json:"force,omitempty"` - // LabelIds: Label IDs for the 'updatelabels' request. LabelIds googleapi.Uint64s `json:"labelIds,omitempty"` - // LinkRequest: Details about the `link` request. LinkRequest *AccountsCustomBatchRequestEntryLinkRequest `json:"linkRequest,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // Method: The method of the batch entry. Acceptable values are: - - // "claimWebsite" - "delete" - "get" - "insert" - "link" - - // "update" + // "claimWebsite" - "delete" - "get" - "insert" - "link" - "update" Method string `json:"method,omitempty"` - // Overwrite: Only applicable if the method is `claimwebsite`. Indicates - // whether or not to take the claim from another account in case there - // is a conflict. + // whether or not to take the claim from another account in case there is a + // conflict. Overwrite bool `json:"overwrite,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Account") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Account") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Account") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Account") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s AccountsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod AccountsCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountsCustomBatchRequestEntryLinkRequest struct { - // Action: Action to perform for this link. The "request" action is - // only available to select merchants. Acceptable values are: - - // "approve" - "remove" - "request" + // Action: Action to perform for this link. The "request" action is only + // available to select merchants. Acceptable values are: - "approve" - + // "remove" - "request" Action string `json:"action,omitempty"` - - // LinkType: Type of the link between the two accounts. Acceptable - // values are: - "channelPartner" - "eCommercePlatform" + // LinkType: Type of the link between the two accounts. Acceptable values are: + // - "channelPartner" - "eCommercePlatform" LinkType string `json:"linkType,omitempty"` - // LinkedAccountId: The ID of the linked account. LinkedAccountId string `json:"linkedAccountId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsCustomBatchRequestEntryLinkRequest) MarshalJSON() ([]byte, error) { +func (s AccountsCustomBatchRequestEntryLinkRequest) MarshalJSON() ([]byte, error) { type NoMethod AccountsCustomBatchRequestEntryLinkRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountsCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*AccountsCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accountsCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accountsCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s AccountsCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountsCustomBatchResponseEntry: A batch entry encoding a single -// non-batch accounts response. +// AccountsCustomBatchResponseEntry: A batch entry encoding a single non-batch +// accounts response. type AccountsCustomBatchResponseEntry struct { - // Account: The retrieved, created, or updated account. Not defined if - // the method was `delete`, `claimwebsite` or `link`. + // Account: The retrieved, created, or updated account. Not defined if the + // method was `delete`, `claimwebsite` or `link`. Account *Account `json:"account,omitempty"` - // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` - // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accountsCustomBatchResponseEntry" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accountsCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` - - // LinkStatus: Deprecated. This field is never set. Acceptable values - // are: - "active" - "inactive" - "pending" + // LinkStatus: Deprecated. This field is never set. Acceptable values are: - + // "active" - "inactive" - "pending" LinkStatus string `json:"linkStatus,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Account") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Account") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Account") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Account") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s AccountsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod AccountsCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountsLinkRequest struct { - // Action: Action to perform for this link. The "request" action is - // only available to select merchants. Acceptable values are: - - // "approve" - "remove" - "request" + // Action: Action to perform for this link. The "request" action is only + // available to select merchants. Acceptable values are: - "approve" - + // "remove" - "request" Action string `json:"action,omitempty"` - - // LinkType: Type of the link between the two accounts. Acceptable - // values are: - "channelPartner" - "eCommercePlatform" + // LinkType: Type of the link between the two accounts. Acceptable values are: + // - "channelPartner" - "eCommercePlatform" LinkType string `json:"linkType,omitempty"` - // LinkedAccountId: The ID of the linked account. LinkedAccountId string `json:"linkedAccountId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsLinkRequest) MarshalJSON() ([]byte, error) { +func (s AccountsLinkRequest) MarshalJSON() ([]byte, error) { type NoMethod AccountsLinkRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountsLinkResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accountsLinkResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accountsLinkResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsLinkResponse) MarshalJSON() ([]byte, error) { +func (s AccountsLinkResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsLinkResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accountsListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of accounts. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*Account `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // accounts. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*Account `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountstatusesCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*AccountstatusesCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s AccountstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod AccountstatusesCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountstatusesCustomBatchRequestEntry: A batch entry encoding a -// single non-batch accountstatuses request. +// AccountstatusesCustomBatchRequestEntry: A batch entry encoding a single +// non-batch accountstatuses request. type AccountstatusesCustomBatchRequestEntry struct { // AccountId: The ID of the (sub-)account whose status to get. AccountId uint64 `json:"accountId,omitempty,string"` - // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // Destinations: If set, only issues for the specified destinations are // returned, otherwise only issues for the Shopping destination. Destinations []string `json:"destinations,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // Method: The method of the batch entry. Acceptable values are: - - // "get" + // Method: The method of the batch entry. Acceptable values are: - "get" Method string `json:"method,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s AccountstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod AccountstatusesCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountstatusesCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*AccountstatusesCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accountstatusesCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accountstatusesCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s AccountstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountstatusesCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountstatusesCustomBatchResponseEntry: A batch entry encoding a -// single non-batch accountstatuses response. +// AccountstatusesCustomBatchResponseEntry: A batch entry encoding a single +// non-batch accountstatuses response. type AccountstatusesCustomBatchResponseEntry struct { - // AccountStatus: The requested account status. Defined if and only if - // the request was successful. + // AccountStatus: The requested account status. Defined if and only if the + // request was successful. AccountStatus *AccountStatus `json:"accountStatus,omitempty"` - // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` - // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccountStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountStatus") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountStatus") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s AccountstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod AccountstatusesCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccountstatusesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accountstatusesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accountstatusesListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of account + // statuses. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*AccountStatus `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // account statuses. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*AccountStatus `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountstatusesListResponse) MarshalJSON() ([]byte, error) { +func (s AccountstatusesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountstatusesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccounttaxCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*AccounttaxCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccounttaxCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s AccounttaxCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod AccounttaxCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccounttaxCustomBatchRequestEntry: A batch entry encoding a single -// non-batch accounttax request. +// AccounttaxCustomBatchRequestEntry: A batch entry encoding a single non-batch +// accounttax request. type AccounttaxCustomBatchRequestEntry struct { // AccountId: The ID of the account for which to get/update account tax // settings. AccountId uint64 `json:"accountId,omitempty,string"` - - // AccountTax: The account tax settings to update. Only defined if the - // method is `update`. + // AccountTax: The account tax settings to update. Only defined if the method + // is `update`. AccountTax *AccountTax `json:"accountTax,omitempty"` - // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // Method: The method of the batch entry. Acceptable values are: - - // "get" - "update" + // Method: The method of the batch entry. Acceptable values are: - "get" - + // "update" Method string `json:"method,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccounttaxCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s AccounttaxCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod AccounttaxCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccounttaxCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*AccounttaxCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accounttaxCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accounttaxCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccounttaxCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s AccounttaxCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod AccounttaxCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccounttaxCustomBatchResponseEntry: A batch entry encoding a single @@ -1747,350 +1418,266 @@ func (s *AccounttaxCustomBatchResponse) MarshalJSON() ([]byte, error) { type AccounttaxCustomBatchResponseEntry struct { // AccountTax: The retrieved or updated account tax settings. AccountTax *AccountTax `json:"accountTax,omitempty"` - // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` - // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accounttaxCustomBatchResponseEntry" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accounttaxCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccountTax") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountTax") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountTax") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccounttaxCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s AccounttaxCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod AccounttaxCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AccounttaxListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#accounttaxListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#accounttaxListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of account tax + // settings. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*AccountTax `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // account tax settings. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*AccountTax `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccounttaxListResponse) MarshalJSON() ([]byte, error) { +func (s AccounttaxListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccounttaxListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Address struct { - // AdministrativeArea: Required. Top-level administrative subdivision of - // the country. For example, a state like California ("CA") or a - // province like Quebec ("QC"). + // AdministrativeArea: Required. Top-level administrative subdivision of the + // country. For example, a state like California ("CA") or a province like + // Quebec ("QC"). AdministrativeArea string `json:"administrativeArea,omitempty"` - - // City: Required. City, town or commune. May also include dependent - // localities or sublocalities (e.g. neighborhoods or suburbs). + // City: Required. City, town or commune. May also include dependent localities + // or sublocalities (e.g. neighborhoods or suburbs). City string `json:"city,omitempty"` - // Country: Required. CLDR country code // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)(e.g. // "US"). Country string `json:"country,omitempty"` - // PostalCode: Required. Postal code or ZIP (e.g. "94043"). Required. PostalCode string `json:"postalCode,omitempty"` - // StreetAddress: Street-level part of the address. StreetAddress string `json:"streetAddress,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdministrativeArea") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdministrativeArea") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdministrativeArea") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdministrativeArea") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Address) MarshalJSON() ([]byte, error) { +func (s Address) MarshalJSON() ([]byte, error) { type NoMethod Address - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Amount struct { // Pretax: [required] Value before taxes. Pretax *Price `json:"pretax,omitempty"` - // Tax: [required] Tax value. Tax *Price `json:"tax,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Pretax") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Pretax") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Pretax") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Amount) MarshalJSON() ([]byte, error) { +func (s Amount) MarshalJSON() ([]byte, error) { type NoMethod Amount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BusinessDayConfig struct { - // BusinessDays: Regular business days, such as '"monday"'. May not be - // empty. + // BusinessDays: Regular business days, such as '"monday"'. May not be empty. BusinessDays []string `json:"businessDays,omitempty"` - // ForceSendFields is a list of field names (e.g. "BusinessDays") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BusinessDays") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BusinessDays") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BusinessDayConfig) MarshalJSON() ([]byte, error) { +func (s BusinessDayConfig) MarshalJSON() ([]byte, error) { type NoMethod BusinessDayConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CarrierRate struct { - // CarrierName: Carrier service, such as "UPS" or "Fedex". The list - // of supported carriers can be retrieved via the `getSupportedCarriers` - // method. Required. + // CarrierName: Carrier service, such as "UPS" or "Fedex". The list of + // supported carriers can be retrieved via the `getSupportedCarriers` method. + // Required. CarrierName string `json:"carrierName,omitempty"` - - // CarrierService: Carrier service, such as "ground" or "2 days". - // The list of supported services for a carrier can be retrieved via the + // CarrierService: Carrier service, such as "ground" or "2 days". The list + // of supported services for a carrier can be retrieved via the // `getSupportedCarriers` method. Required. CarrierService string `json:"carrierService,omitempty"` - // FlatAdjustment: Additive shipping rate modifier. Can be negative. For - // example `{ "value": "1", "currency" : "USD" }` adds $1 to the rate, - // `{ "value": "-3", "currency" : "USD" }` removes $3 from the rate. - // Optional. + // example `{ "value": "1", "currency" : "USD" }` adds $1 to the rate, `{ + // "value": "-3", "currency" : "USD" }` removes $3 from the rate. Optional. FlatAdjustment *Price `json:"flatAdjustment,omitempty"` - - // Name: Name of the carrier rate. Must be unique per rate group. - // Required. + // Name: Name of the carrier rate. Must be unique per rate group. Required. Name string `json:"name,omitempty"` - // OriginPostalCode: Shipping origin for this carrier rate. Required. OriginPostalCode string `json:"originPostalCode,omitempty"` - - // PercentageAdjustment: Multiplicative shipping rate modifier as a - // number in decimal notation. Can be negative. For example "5.4" - // increases the rate by 5.4%, "-3" decreases the rate by 3%. - // Optional. + // PercentageAdjustment: Multiplicative shipping rate modifier as a number in + // decimal notation. Can be negative. For example "5.4" increases the rate by + // 5.4%, "-3" decreases the rate by 3%. Optional. PercentageAdjustment string `json:"percentageAdjustment,omitempty"` - // ForceSendFields is a list of field names (e.g. "CarrierName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CarrierName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CarrierName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CarrierRate) MarshalJSON() ([]byte, error) { +func (s CarrierRate) MarshalJSON() ([]byte, error) { type NoMethod CarrierRate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CarriersCarrier struct { - // Country: The CLDR country code of the carrier (e.g., "US"). Always - // present. + // Country: The CLDR country code of the carrier (e.g., "US"). Always present. Country string `json:"country,omitempty"` - - // EddServices: A list of services supported for EDD (Estimated Delivery - // Date) calculation. This is the list of valid values for + // EddServices: A list of services supported for EDD (Estimated Delivery Date) + // calculation. This is the list of valid values for // WarehouseBasedDeliveryTime.carrierService. EddServices []string `json:"eddServices,omitempty"` - // Name: The name of the carrier (e.g., "UPS"). Always present. Name string `json:"name,omitempty"` - - // Services: A list of supported services (e.g., "ground") for that - // carrier. Contains at least one service. This is the list of valid - // values for CarrierRate.carrierService. + // Services: A list of supported services (e.g., "ground") for that carrier. + // Contains at least one service. This is the list of valid values for + // CarrierRate.carrierService. Services []string `json:"services,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CarriersCarrier) MarshalJSON() ([]byte, error) { +func (s CarriersCarrier) MarshalJSON() ([]byte, error) { type NoMethod CarriersCarrier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomAttribute struct { - // Name: The name of the attribute. Underscores will be replaced by - // spaces upon insertion. + // Name: The name of the attribute. Underscores will be replaced by spaces upon + // insertion. Name string `json:"name,omitempty"` - - // Type: The type of the attribute. Acceptable values are: - "boolean" - // - "datetimerange" - "float" - "group" - "int" - "price" - - // "text" - "time" - "url" + // Type: The type of the attribute. Acceptable values are: - "boolean" - + // "datetimerange" - "float" - "group" - "int" - "price" - "text" - + // "time" - "url" Type string `json:"type,omitempty"` - - // Unit: Free-form unit of the attribute. Unit can only be used for - // values of type int, float, or price. + // Unit: Free-form unit of the attribute. Unit can only be used for values of + // type int, float, or price. Unit string `json:"unit,omitempty"` - // Value: The value of the attribute. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomAttribute) MarshalJSON() ([]byte, error) { +func (s CustomAttribute) MarshalJSON() ([]byte, error) { type NoMethod CustomAttribute - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomGroup struct { // Attributes: The sub-attributes. Attributes []*CustomAttribute `json:"attributes,omitempty"` - - // Name: The name of the group. Underscores will be replaced by spaces - // upon insertion. + // Name: The name of the group. Underscores will be replaced by spaces upon + // insertion. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Attributes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attributes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attributes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomGroup) MarshalJSON() ([]byte, error) { +func (s CustomGroup) MarshalJSON() ([]byte, error) { type NoMethod CustomGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomerReturnReason struct { // Description: Description of the reason. Description string `json:"description,omitempty"` - // ReasonCode: Code of the return reason. Acceptable values are: - // "betterPriceFound" - "changedMind" - "damagedOrDefectiveItem" - // "didNotMatchDescription" - "doesNotFit" - "expiredItem" - @@ -2098,2015 +1685,1533 @@ type CustomerReturnReason struct { // "orderedWrongItem" - "other" - "qualityNotExpected" - // "receivedTooLate" - "undeliverable" ReasonCode string `json:"reasonCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomerReturnReason) MarshalJSON() ([]byte, error) { +func (s CustomerReturnReason) MarshalJSON() ([]byte, error) { type NoMethod CustomerReturnReason - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CutoffTime struct { - // Hour: Hour of the cutoff time until which an order has to be placed - // to be processed in the same day. Required. + // Hour: Hour of the cutoff time until which an order has to be placed to be + // processed in the same day. Required. Hour int64 `json:"hour,omitempty"` - - // Minute: Minute of the cutoff time until which an order has to be - // placed to be processed in the same day. Required. + // Minute: Minute of the cutoff time until which an order has to be placed to + // be processed in the same day. Required. Minute int64 `json:"minute,omitempty"` - - // Timezone: Timezone identifier for the cutoff time. A list of - // identifiers can be found in the AdWords API documentation. E.g. - // "Europe/Zurich". Required. + // Timezone: Timezone identifier for the cutoff time. A list of identifiers can + // be found in the AdWords API documentation. E.g. "Europe/Zurich". Required. Timezone string `json:"timezone,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Hour") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hour") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Hour") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Hour") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CutoffTime) MarshalJSON() ([]byte, error) { +func (s CutoffTime) MarshalJSON() ([]byte, error) { type NoMethod CutoffTime - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Datafeed: Datafeed configuration data. type Datafeed struct { - // AttributeLanguage: The two-letter ISO 639-1 language in which the - // attributes are defined in the data feed. + // AttributeLanguage: The two-letter ISO 639-1 language in which the attributes + // are defined in the data feed. AttributeLanguage string `json:"attributeLanguage,omitempty"` - - // ContentLanguage: [DEPRECATED] Please use targets[].language instead. - // The two-letter ISO 639-1 language of the items in the feed. Must be a - // valid language for `targetCountry`. + // ContentLanguage: [DEPRECATED] Please use targets[].language instead. The + // two-letter ISO 639-1 language of the items in the feed. Must be a valid + // language for `targetCountry`. ContentLanguage string `json:"contentLanguage,omitempty"` - - // ContentType: Required. The type of data feed. For product inventory - // feeds, only feeds for local stores, not online stores, are supported. - // Acceptable values are: - "local products" - "product inventory" - - // "products" + // ContentType: Required. The type of data feed. For product inventory feeds, + // only feeds for local stores, not online stores, are supported. Acceptable + // values are: - "local products" - "product inventory" - "products" ContentType string `json:"contentType,omitempty"` - // FetchSchedule: Fetch schedule for the feed file. FetchSchedule *DatafeedFetchSchedule `json:"fetchSchedule,omitempty"` - - // FileName: Required. The filename of the feed. All feeds must have a - // unique file name. + // FileName: Required. The filename of the feed. All feeds must have a unique + // file name. FileName string `json:"fileName,omitempty"` - // Format: Format of the feed file. Format *DatafeedFormat `json:"format,omitempty"` - // Id: Required for update. The ID of the data feed. Id int64 `json:"id,omitempty,string"` - - // IntendedDestinations: [DEPRECATED] Please use - // targets[].includedDestinations instead. The list of intended - // destinations (corresponds to checked check boxes in Merchant Center). + // IntendedDestinations: [DEPRECATED] Please use targets[].includedDestinations + // instead. The list of intended destinations (corresponds to checked check + // boxes in Merchant Center). IntendedDestinations []string `json:"intendedDestinations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#datafeed" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#datafeed" Kind string `json:"kind,omitempty"` - // Name: Required for insert. A descriptive name of the data feed. Name string `json:"name,omitempty"` - // TargetCountry: [DEPRECATED] Please use targets[].country instead. The - // country where the items in the feed will be included in the search - // index, represented as a CLDR territory code. + // country where the items in the feed will be included in the search index, + // represented as a CLDR territory code. TargetCountry string `json:"targetCountry,omitempty"` - // Targets: The targets this feed should apply to (country, language, // destinations). Targets []*DatafeedTarget `json:"targets,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AttributeLanguage") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AttributeLanguage") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttributeLanguage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AttributeLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Datafeed) MarshalJSON() ([]byte, error) { +func (s Datafeed) MarshalJSON() ([]byte, error) { type NoMethod Datafeed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DatafeedFetchSchedule: The required fields vary based on the -// frequency of fetching. For a monthly fetch schedule, day_of_month and -// hour are required. For a weekly fetch schedule, weekday and hour are -// required. For a daily fetch schedule, only hour is required. +// DatafeedFetchSchedule: The required fields vary based on the frequency of +// fetching. For a monthly fetch schedule, day_of_month and hour are required. +// For a weekly fetch schedule, weekday and hour are required. For a daily +// fetch schedule, only hour is required. type DatafeedFetchSchedule struct { - // DayOfMonth: The day of the month the feed file should be fetched - // (1-31). + // DayOfMonth: The day of the month the feed file should be fetched (1-31). DayOfMonth int64 `json:"dayOfMonth,omitempty"` - - // FetchUrl: The URL where the feed file can be fetched. Google Merchant - // Center will support automatic scheduled uploads using the HTTP, - // HTTPS, FTP, or SFTP protocols, so the value will need to be a valid - // link using one of those four protocols. + // FetchUrl: The URL where the feed file can be fetched. Google Merchant Center + // will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP + // protocols, so the value will need to be a valid link using one of those four + // protocols. FetchUrl string `json:"fetchUrl,omitempty"` - // Hour: The hour of the day the feed file should be fetched (0-23). Hour int64 `json:"hour,omitempty"` - - // MinuteOfHour: The minute of the hour the feed file should be fetched - // (0-59). Read-only. + // MinuteOfHour: The minute of the hour the feed file should be fetched (0-59). + // Read-only. MinuteOfHour int64 `json:"minuteOfHour,omitempty"` - // Password: An optional password for fetch_url. Password string `json:"password,omitempty"` - // Paused: Whether the scheduled fetch is paused or not. Paused bool `json:"paused,omitempty"` - // TimeZone: Time zone used for schedule. UTC by default. E.g., // "America/Los_Angeles". TimeZone string `json:"timeZone,omitempty"` - // Username: An optional user name for fetch_url. Username string `json:"username,omitempty"` - - // Weekday: The day of the week the feed file should be fetched. - // Acceptable values are: - "monday" - "tuesday" - "wednesday" - - // "thursday" - "friday" - "saturday" - "sunday" + // Weekday: The day of the week the feed file should be fetched. Acceptable + // values are: - "monday" - "tuesday" - "wednesday" - "thursday" - + // "friday" - "saturday" - "sunday" Weekday string `json:"weekday,omitempty"` - // ForceSendFields is a list of field names (e.g. "DayOfMonth") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DayOfMonth") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DayOfMonth") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedFetchSchedule) MarshalJSON() ([]byte, error) { +func (s DatafeedFetchSchedule) MarshalJSON() ([]byte, error) { type NoMethod DatafeedFetchSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DatafeedFormat struct { // ColumnDelimiter: Delimiter for the separation of values in a - // delimiter-separated values feed. If not specified, the delimiter will - // be auto-detected. Ignored for non-DSV data feeds. Acceptable values - // are: - "pipe" - "tab" - "tilde" + // delimiter-separated values feed. If not specified, the delimiter will be + // auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - + // "pipe" - "tab" - "tilde" ColumnDelimiter string `json:"columnDelimiter,omitempty"` - - // FileEncoding: Character encoding scheme of the data feed. If not - // specified, the encoding will be auto-detected. Acceptable values are: - // - "latin-1" - "utf-16be" - "utf-16le" - "utf-8" - - // "windows-1252" + // FileEncoding: Character encoding scheme of the data feed. If not specified, + // the encoding will be auto-detected. Acceptable values are: - "latin-1" - + // "utf-16be" - "utf-16le" - "utf-8" - "windows-1252" FileEncoding string `json:"fileEncoding,omitempty"` - - // QuotingMode: Specifies how double quotes are interpreted. If not - // specified, the mode will be auto-detected. Ignored for non-DSV data - // feeds. Acceptable values are: - "normal character" - "value - // quoting" + // QuotingMode: Specifies how double quotes are interpreted. If not specified, + // the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable + // values are: - "normal character" - "value quoting" QuotingMode string `json:"quotingMode,omitempty"` - // ForceSendFields is a list of field names (e.g. "ColumnDelimiter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ColumnDelimiter") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ColumnDelimiter") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedFormat) MarshalJSON() ([]byte, error) { +func (s DatafeedFormat) MarshalJSON() ([]byte, error) { type NoMethod DatafeedFormat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DatafeedStatus: The status of a datafeed, i.e., the result of the -// last retrieval of the datafeed computed asynchronously when the feed -// processing is finished. +// DatafeedStatus: The status of a datafeed, i.e., the result of the last +// retrieval of the datafeed computed asynchronously when the feed processing +// is finished. type DatafeedStatus struct { - // Country: The country for which the status is reported, represented as - // a CLDR territory code. + // Country: The country for which the status is reported, represented as a CLDR + // territory code. Country string `json:"country,omitempty"` - // DatafeedId: The ID of the feed for which the status is reported. DatafeedId uint64 `json:"datafeedId,omitempty,string"` - // Errors: The list of errors occurring in the feed. Errors []*DatafeedStatusError `json:"errors,omitempty"` - // ItemsTotal: The number of items in the feed that were processed. ItemsTotal uint64 `json:"itemsTotal,omitempty,string"` - // ItemsValid: The number of items in the feed that were valid. ItemsValid uint64 `json:"itemsValid,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#datafeedStatus" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#datafeedStatus" Kind string `json:"kind,omitempty"` - // Language: The two-letter ISO 639-1 language for which the status is // reported. Language string `json:"language,omitempty"` - // LastUploadDate: The last date at which the feed was uploaded. LastUploadDate string `json:"lastUploadDate,omitempty"` - - // ProcessingStatus: The processing status of the feed. Acceptable - // values are: - ""failure": The feed could not be processed or all - // items had errors." - "in progress": The feed is being processed. - - // "none": The feed has not yet been processed. For example, a feed - // that has never been uploaded will have this processing status. - - // "success": The feed was processed successfully, though some items - // might have had errors. + // ProcessingStatus: The processing status of the feed. Acceptable values are: + // - ""failure": The feed could not be processed or all items had errors." + // - "in progress": The feed is being processed. - "none": The feed has not + // yet been processed. For example, a feed that has never been uploaded will + // have this processing status. - "success": The feed was processed + // successfully, though some items might have had errors. ProcessingStatus string `json:"processingStatus,omitempty"` - // Warnings: The list of errors occurring in the feed. Warnings []*DatafeedStatusError `json:"warnings,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedStatus) MarshalJSON() ([]byte, error) { +func (s DatafeedStatus) MarshalJSON() ([]byte, error) { type NoMethod DatafeedStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DatafeedStatusError: An error occurring in the feed, like "invalid -// price". +// DatafeedStatusError: An error occurring in the feed, like "invalid price". type DatafeedStatusError struct { // Code: The code of the error, e.g., "validation/invalid_value". Code string `json:"code,omitempty"` - // Count: The number of occurrences of the error in the feed. Count uint64 `json:"count,omitempty,string"` - - // Examples: A list of example occurrences of the error, grouped by - // product. + // Examples: A list of example occurrences of the error, grouped by product. Examples []*DatafeedStatusExample `json:"examples,omitempty"` - // Message: The error message, e.g., "Invalid price". Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedStatusError) MarshalJSON() ([]byte, error) { +func (s DatafeedStatusError) MarshalJSON() ([]byte, error) { type NoMethod DatafeedStatusError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DatafeedStatusExample: An example occurrence for a particular error. type DatafeedStatusExample struct { // ItemId: The ID of the example item. ItemId string `json:"itemId,omitempty"` - // LineNumber: Line number in the data feed where the example is found. LineNumber uint64 `json:"lineNumber,omitempty,string"` - // Value: The problematic value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ItemId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ItemId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ItemId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedStatusExample) MarshalJSON() ([]byte, error) { +func (s DatafeedStatusExample) MarshalJSON() ([]byte, error) { type NoMethod DatafeedStatusExample - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DatafeedTarget struct { - // Country: The country where the items in the feed will be included in - // the search index, represented as a CLDR territory code. + // Country: The country where the items in the feed will be included in the + // search index, represented as a CLDR territory code. Country string `json:"country,omitempty"` - - // ExcludedDestinations: The list of destinations to exclude for this - // target (corresponds to unchecked check boxes in Merchant Center). + // ExcludedDestinations: The list of destinations to exclude for this target + // (corresponds to unchecked check boxes in Merchant Center). ExcludedDestinations []string `json:"excludedDestinations,omitempty"` - - // IncludedDestinations: The list of destinations to include for this - // target (corresponds to checked check boxes in Merchant Center). - // Default destinations are always included unless provided in - // `excludedDestinations`. List of supported destinations (if available - // to the account): - DisplayAds - Shopping - ShoppingActions - - // SurfacesAcrossGoogle + // IncludedDestinations: The list of destinations to include for this target + // (corresponds to checked check boxes in Merchant Center). Default + // destinations are always included unless provided in `excludedDestinations`. + // List of supported destinations (if available to the account): - DisplayAds - + // Shopping - ShoppingActions - SurfacesAcrossGoogle IncludedDestinations []string `json:"includedDestinations,omitempty"` - - // Language: The two-letter ISO 639-1 language of the items in the feed. - // Must be a valid language for `targets[].country`. + // Language: The two-letter ISO 639-1 language of the items in the feed. Must + // be a valid language for `targets[].country`. Language string `json:"language,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedTarget) MarshalJSON() ([]byte, error) { +func (s DatafeedTarget) MarshalJSON() ([]byte, error) { type NoMethod DatafeedTarget - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DatafeedsCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*DatafeedsCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedsCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s DatafeedsCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod DatafeedsCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DatafeedsCustomBatchRequestEntry: A batch entry encoding a single -// non-batch datafeeds request. +// DatafeedsCustomBatchRequestEntry: A batch entry encoding a single non-batch +// datafeeds request. type DatafeedsCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // Datafeed: The data feed to insert. Datafeed *Datafeed `json:"datafeed,omitempty"` - // DatafeedId: The ID of the data feed to get, delete or fetch. DatafeedId uint64 `json:"datafeedId,omitempty,string"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // Method: The method of the batch entry. Acceptable values are: - - // "delete" - "fetchNow" - "get" - "insert" - "update" + // Method: The method of the batch entry. Acceptable values are: - "delete" - + // "fetchNow" - "get" - "insert" - "update" Method string `json:"method,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s DatafeedsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod DatafeedsCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DatafeedsCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*DatafeedsCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#datafeedsCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#datafeedsCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedsCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s DatafeedsCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod DatafeedsCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DatafeedsCustomBatchResponseEntry: A batch entry encoding a single -// non-batch datafeeds response. +// DatafeedsCustomBatchResponseEntry: A batch entry encoding a single non-batch +// datafeeds response. type DatafeedsCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` - - // Datafeed: The requested data feed. Defined if and only if the request - // was successful. + // Datafeed: The requested data feed. Defined if and only if the request was + // successful. Datafeed *Datafeed `json:"datafeed,omitempty"` - // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s DatafeedsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod DatafeedsCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DatafeedsFetchNowResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#datafeedsFetchNowResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#datafeedsFetchNowResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedsFetchNowResponse) MarshalJSON() ([]byte, error) { +func (s DatafeedsFetchNowResponse) MarshalJSON() ([]byte, error) { type NoMethod DatafeedsFetchNowResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DatafeedsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#datafeedsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#datafeedsListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of datafeeds. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*Datafeed `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // datafeeds. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*Datafeed `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedsListResponse) MarshalJSON() ([]byte, error) { +func (s DatafeedsListResponse) MarshalJSON() ([]byte, error) { type NoMethod DatafeedsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DatafeedstatusesCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*DatafeedstatusesCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s DatafeedstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod DatafeedstatusesCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DatafeedstatusesCustomBatchRequestEntry: A batch entry encoding a -// single non-batch datafeedstatuses request. +// DatafeedstatusesCustomBatchRequestEntry: A batch entry encoding a single +// non-batch datafeedstatuses request. type DatafeedstatusesCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - - // Country: The country for which to get the datafeed status. If this - // parameter is provided then language must also be provided. Note that - // for multi-target datafeeds this parameter is required. + // Country: The country for which to get the datafeed status. If this parameter + // is provided then language must also be provided. Note that for multi-target + // datafeeds this parameter is required. Country string `json:"country,omitempty"` - // DatafeedId: The ID of the data feed to get. DatafeedId uint64 `json:"datafeedId,omitempty,string"` - // Language: The language for which to get the datafeed status. If this - // parameter is provided then country must also be provided. Note that - // for multi-target datafeeds this parameter is required. + // parameter is provided then country must also be provided. Note that for + // multi-target datafeeds this parameter is required. Language string `json:"language,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // Method: The method of the batch entry. Acceptable values are: - - // "get" + // Method: The method of the batch entry. Acceptable values are: - "get" Method string `json:"method,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s DatafeedstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod DatafeedstatusesCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DatafeedstatusesCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*DatafeedstatusesCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#datafeedstatusesCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#datafeedstatusesCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s DatafeedstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod DatafeedstatusesCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DatafeedstatusesCustomBatchResponseEntry: A batch entry encoding a -// single non-batch datafeedstatuses response. +// DatafeedstatusesCustomBatchResponseEntry: A batch entry encoding a single +// non-batch datafeedstatuses response. type DatafeedstatusesCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` - - // DatafeedStatus: The requested data feed status. Defined if and only - // if the request was successful. + // DatafeedStatus: The requested data feed status. Defined if and only if the + // request was successful. DatafeedStatus *DatafeedStatus `json:"datafeedStatus,omitempty"` - // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s DatafeedstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod DatafeedstatusesCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DatafeedstatusesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#datafeedstatusesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#datafeedstatusesListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of datafeed + // statuses. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*DatafeedStatus `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // datafeed statuses. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*DatafeedStatus `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatafeedstatusesListResponse) MarshalJSON() ([]byte, error) { +func (s DatafeedstatusesListResponse) MarshalJSON() ([]byte, error) { type NoMethod DatafeedstatusesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DeliveryTime struct { - // CutoffTime: Business days cutoff time definition. If not configured - // the cutoff time will be defaulted to 8AM PST. + // CutoffTime: Business days cutoff time definition. If not configured the + // cutoff time will be defaulted to 8AM PST. CutoffTime *CutoffTime `json:"cutoffTime,omitempty"` - - // HandlingBusinessDayConfig: The business days during which orders can - // be handled. If not provided, Monday to Friday business days will be - // assumed. + // HandlingBusinessDayConfig: The business days during which orders can be + // handled. If not provided, Monday to Friday business days will be assumed. HandlingBusinessDayConfig *BusinessDayConfig `json:"handlingBusinessDayConfig,omitempty"` - - // HolidayCutoffs: Holiday cutoff definitions. If configured, they - // specify order cutoff times for holiday-specific shipping. + // HolidayCutoffs: Holiday cutoff definitions. If configured, they specify + // order cutoff times for holiday-specific shipping. HolidayCutoffs []*HolidayCutoff `json:"holidayCutoffs,omitempty"` - - // MaxHandlingTimeInDays: Maximum number of business days spent before - // an order is shipped. 0 means same day shipped, 1 means next day - // shipped. Must be greater than or equal to `minHandlingTimeInDays`. + // MaxHandlingTimeInDays: Maximum number of business days spent before an order + // is shipped. 0 means same day shipped, 1 means next day shipped. Must be + // greater than or equal to `minHandlingTimeInDays`. MaxHandlingTimeInDays int64 `json:"maxHandlingTimeInDays,omitempty"` - - // MaxTransitTimeInDays: Maximum number of business days that is spent - // in transit. 0 means same day delivery, 1 means next day delivery. - // Must be greater than or equal to `minTransitTimeInDays`. + // MaxTransitTimeInDays: Maximum number of business days that is spent in + // transit. 0 means same day delivery, 1 means next day delivery. Must be + // greater than or equal to `minTransitTimeInDays`. MaxTransitTimeInDays int64 `json:"maxTransitTimeInDays,omitempty"` - - // MinHandlingTimeInDays: Minimum number of business days spent before - // an order is shipped. 0 means same day shipped, 1 means next day - // shipped. + // MinHandlingTimeInDays: Minimum number of business days spent before an order + // is shipped. 0 means same day shipped, 1 means next day shipped. MinHandlingTimeInDays int64 `json:"minHandlingTimeInDays,omitempty"` - - // MinTransitTimeInDays: Minimum number of business days that is spent - // in transit. 0 means same day delivery, 1 means next day delivery. - // Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be - // set, but not both. + // MinTransitTimeInDays: Minimum number of business days that is spent in + // transit. 0 means same day delivery, 1 means next day delivery. Either + // `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not + // both. MinTransitTimeInDays int64 `json:"minTransitTimeInDays,omitempty"` - - // TransitBusinessDayConfig: The business days during which orders can - // be in-transit. If not provided, Monday to Friday business days will - // be assumed. + // TransitBusinessDayConfig: The business days during which orders can be + // in-transit. If not provided, Monday to Friday business days will be assumed. TransitBusinessDayConfig *BusinessDayConfig `json:"transitBusinessDayConfig,omitempty"` - - // TransitTimeTable: Transit time table, number of business days spent - // in transit based on row and column dimensions. Either - // `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but - // not both. + // TransitTimeTable: Transit time table, number of business days spent in + // transit based on row and column dimensions. Either + // `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both. TransitTimeTable *TransitTable `json:"transitTimeTable,omitempty"` - - // WarehouseBasedDeliveryTimes: Indicates that the delivery time should - // be calculated per warehouse (shipping origin location) based on the - // settings of the selected carrier. When set, no other transit time - // related field in DeliveryTime should be set. + // WarehouseBasedDeliveryTimes: Indicates that the delivery time should be + // calculated per warehouse (shipping origin location) based on the settings of + // the selected carrier. When set, no other transit time related field in + // DeliveryTime should be set. WarehouseBasedDeliveryTimes []*WarehouseBasedDeliveryTime `json:"warehouseBasedDeliveryTimes,omitempty"` - // ForceSendFields is a list of field names (e.g. "CutoffTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CutoffTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CutoffTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeliveryTime) MarshalJSON() ([]byte, error) { +func (s DeliveryTime) MarshalJSON() ([]byte, error) { type NoMethod DeliveryTime - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Error: An error returned by the API. type Error struct { // Domain: The domain of the error. Domain string `json:"domain,omitempty"` - // Message: A description of the error. Message string `json:"message,omitempty"` - // Reason: The error code. Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Domain") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Domain") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Domain") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Error) MarshalJSON() ([]byte, error) { +func (s Error) MarshalJSON() ([]byte, error) { type NoMethod Error - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Errors: A list of errors returned by a failed batch entry. type Errors struct { // Code: The HTTP status of the first error in `errors`. Code int64 `json:"code,omitempty"` - // Errors: A list of errors. Errors []*Error `json:"errors,omitempty"` - // Message: The message of the first error in `errors`. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Errors) MarshalJSON() ([]byte, error) { +func (s Errors) MarshalJSON() ([]byte, error) { type NoMethod Errors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GmbAccounts struct { // AccountId: The ID of the Merchant Center account. AccountId uint64 `json:"accountId,omitempty,string"` - - // GmbAccounts: A list of GMB accounts which are available to the - // merchant. + // GmbAccounts: A list of GMB accounts which are available to the merchant. GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GmbAccounts) MarshalJSON() ([]byte, error) { +func (s GmbAccounts) MarshalJSON() ([]byte, error) { type NoMethod GmbAccounts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GmbAccountsGmbAccount struct { // Email: The email which identifies the GMB account. Email string `json:"email,omitempty"` - // ListingCount: Number of listings under this account. ListingCount uint64 `json:"listingCount,omitempty,string"` - // Name: The name of the GMB account. Name string `json:"name,omitempty"` - // Type: The type of the GMB account (User or Business). Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GmbAccountsGmbAccount) MarshalJSON() ([]byte, error) { +func (s GmbAccountsGmbAccount) MarshalJSON() ([]byte, error) { type NoMethod GmbAccountsGmbAccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Headers: A non-empty list of row or column headers for a table. -// Exactly one of `prices`, `weights`, `numItems`, -// `postalCodeGroupNames`, or `location` must be set. +// Headers: A non-empty list of row or column headers for a table. Exactly one +// of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` +// must be set. type Headers struct { - // Locations: A list of location ID sets. Must be non-empty. Can only be - // set if all other fields are not set. + // Locations: A list of location ID sets. Must be non-empty. Can only be set if + // all other fields are not set. Locations []*LocationIdSet `json:"locations,omitempty"` - - // NumberOfItems: A list of inclusive number of items upper bounds. The - // last value can be "infinity". For example `["10", "50", - // "infinity"]` represents the headers "<= 10 items", "<= 50 items", and - // "> 50 items". Must be non-empty. Can only be set if all other fields - // are not set. + // NumberOfItems: A list of inclusive number of items upper bounds. The last + // value can be "infinity". For example `["10", "50", "infinity"]` represents + // the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be + // non-empty. Can only be set if all other fields are not set. NumberOfItems []string `json:"numberOfItems,omitempty"` - - // PostalCodeGroupNames: A list of postal group names. The last value - // can be "all other locations". Example: `["zone 1", "zone 2", "all - // other locations"]`. The referred postal code groups must match the - // delivery country of the service. Must be non-empty. Can only be set - // if all other fields are not set. + // PostalCodeGroupNames: A list of postal group names. The last value can be + // "all other locations". Example: `["zone 1", "zone 2", "all other + // locations"]`. The referred postal code groups must match the delivery + // country of the service. Must be non-empty. Can only be set if all other + // fields are not set. PostalCodeGroupNames []string `json:"postalCodeGroupNames,omitempty"` - - // Prices: A list of inclusive order price upper bounds. The last - // price's value can be "infinity". For example `[{"value": "10", - // "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": - // "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= - // $500", and "> $500". All prices within a service must have the same - // currency. Must be non-empty. Can only be set if all other fields are - // not set. + // Prices: A list of inclusive order price upper bounds. The last price's value + // can be "infinity". For example `[{"value": "10", "currency": "USD"}, + // {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": + // "USD"}]` represents the headers "<= $10", "<= $500", and "> $500". All + // prices within a service must have the same currency. Must be non-empty. Can + // only be set if all other fields are not set. Prices []*Price `json:"prices,omitempty"` - - // Weights: A list of inclusive order weight upper bounds. The last - // weight's value can be "infinity". For example `[{"value": "10", - // "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", - // "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> - // 50kg". All weights within a service must have the same unit. Must be - // non-empty. Can only be set if all other fields are not set. + // Weights: A list of inclusive order weight upper bounds. The last weight's + // value can be "infinity". For example `[{"value": "10", "unit": "kg"}, + // {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` + // represents the headers "<= 10kg", "<= 50kg", and "> 50kg". All weights + // within a service must have the same unit. Must be non-empty. Can only be set + // if all other fields are not set. Weights []*Weight `json:"weights,omitempty"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Headers) MarshalJSON() ([]byte, error) { +func (s Headers) MarshalJSON() ([]byte, error) { type NoMethod Headers - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type HolidayCutoff struct { // DeadlineDate: Date of the order deadline, in ISO 8601 format. E.g. // "2016-11-29" for 29th November 2016. Required. DeadlineDate string `json:"deadlineDate,omitempty"` - - // DeadlineHour: Hour of the day on the deadline date until which the - // order has to be placed to qualify for the delivery guarantee. - // Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. - // Required. + // DeadlineHour: Hour of the day on the deadline date until which the order has + // to be placed to qualify for the delivery guarantee. Possible values are: 0 + // (midnight), 1, ..., 12 (noon), 13, ..., 23. Required. DeadlineHour int64 `json:"deadlineHour,omitempty"` - - // DeadlineTimezone: Timezone identifier for the deadline hour. A list - // of identifiers can be found in the AdWords API documentation. E.g. + // DeadlineTimezone: Timezone identifier for the deadline hour. A list of + // identifiers can be found in the AdWords API documentation. E.g. // "Europe/Zurich". Required. DeadlineTimezone string `json:"deadlineTimezone,omitempty"` - // HolidayId: Unique identifier for the holiday. Required. HolidayId string `json:"holidayId,omitempty"` - - // VisibleFromDate: Date on which the deadline will become visible to - // consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October - // 2016. Required. + // VisibleFromDate: Date on which the deadline will become visible to consumers + // in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required. VisibleFromDate string `json:"visibleFromDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeadlineDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeadlineDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeadlineDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HolidayCutoff) MarshalJSON() ([]byte, error) { +func (s HolidayCutoff) MarshalJSON() ([]byte, error) { type NoMethod HolidayCutoff - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type HolidaysHoliday struct { - // CountryCode: The CLDR territory code of the country in which the - // holiday is available. E.g. "US", "DE", "GB". A holiday cutoff can - // only be configured in a shipping settings service with matching - // delivery country. Always present. + // CountryCode: The CLDR territory code of the country in which the holiday is + // available. E.g. "US", "DE", "GB". A holiday cutoff can only be configured in + // a shipping settings service with matching delivery country. Always present. CountryCode string `json:"countryCode,omitempty"` - // Date: Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for // Christmas 2016. Always present. Date string `json:"date,omitempty"` - // DeliveryGuaranteeDate: Date on which the order has to arrive at the - // customer's, in ISO 8601 format. E.g. "2016-12-24" for 24th December - // 2016. Always present. + // customer's, in ISO 8601 format. E.g. "2016-12-24" for 24th December 2016. + // Always present. DeliveryGuaranteeDate string `json:"deliveryGuaranteeDate,omitempty"` - - // DeliveryGuaranteeHour: Hour of the day in the delivery location's - // timezone on the guaranteed delivery date by which the order has to - // arrive at the customer's. Possible values are: 0 (midnight), 1, ..., - // 12 (noon), 13, ..., 23. Always present. + // DeliveryGuaranteeHour: Hour of the day in the delivery location's timezone + // on the guaranteed delivery date by which the order has to arrive at the + // customer's. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., + // 23. Always present. DeliveryGuaranteeHour uint64 `json:"deliveryGuaranteeHour,omitempty,string"` - - // Id: Unique identifier for the holiday to be used when configuring - // holiday cutoffs. Always present. + // Id: Unique identifier for the holiday to be used when configuring holiday + // cutoffs. Always present. Id string `json:"id,omitempty"` - // Type: The holiday type. Always present. Acceptable values are: - // "Christmas" - "Easter" - "Father's Day" - "Halloween" - // "Independence Day (USA)" - "Mother's Day" - "Thanksgiving" - // "Valentine's Day" Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HolidaysHoliday) MarshalJSON() ([]byte, error) { +func (s HolidaysHoliday) MarshalJSON() ([]byte, error) { type NoMethod HolidaysHoliday - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Installment struct { // Amount: The amount the buyer has to pay per month. Amount *Price `json:"amount,omitempty"` - // Months: The number of installments the buyer has to pay. Months int64 `json:"months,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Installment) MarshalJSON() ([]byte, error) { +func (s Installment) MarshalJSON() ([]byte, error) { type NoMethod Installment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type InvoiceSummary struct { - // AdditionalChargeSummaries: Summary of the total amounts of the - // additional charges. + // AdditionalChargeSummaries: Summary of the total amounts of the additional + // charges. AdditionalChargeSummaries []*InvoiceSummaryAdditionalChargeSummary `json:"additionalChargeSummaries,omitempty"` - // CustomerBalance: Deprecated. CustomerBalance *Amount `json:"customerBalance,omitempty"` - // GoogleBalance: Deprecated. GoogleBalance *Amount `json:"googleBalance,omitempty"` - // MerchantBalance: Deprecated. MerchantBalance *Amount `json:"merchantBalance,omitempty"` - // ProductTotal: [required] Total price for the product. ProductTotal *Amount `json:"productTotal,omitempty"` - // PromotionSummaries: Deprecated. PromotionSummaries []*Promotion `json:"promotionSummaries,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdditionalChargeSummaries") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalChargeSummaries") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AdditionalChargeSummaries") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdditionalChargeSummaries") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InvoiceSummary) MarshalJSON() ([]byte, error) { +func (s InvoiceSummary) MarshalJSON() ([]byte, error) { type NoMethod InvoiceSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type InvoiceSummaryAdditionalChargeSummary struct { // TotalAmount: [required] Total additional charge for this type. TotalAmount *Amount `json:"totalAmount,omitempty"` - - // Type: [required] Type of the additional charge. Acceptable values - // are: - "shipping" + // Type: [required] Type of the additional charge. Acceptable values are: - + // "shipping" Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "TotalAmount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TotalAmount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "TotalAmount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error) { +func (s InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error) { type NoMethod InvoiceSummaryAdditionalChargeSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiaAboutPageSettings struct { // Status: The status of the verification process for the About page. // Acceptable values are: - "active" - "inactive" - "pending" Status string `json:"status,omitempty"` - // Url: The URL for the About page. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Status") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Status") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Status") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiaAboutPageSettings) MarshalJSON() ([]byte, error) { +func (s LiaAboutPageSettings) MarshalJSON() ([]byte, error) { type NoMethod LiaAboutPageSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiaCountrySettings struct { // About: The settings for the About page. About *LiaAboutPageSettings `json:"about,omitempty"` - // Country: Required. CLDR country code (e.g. "US"). Country string `json:"country,omitempty"` - // HostedLocalStorefrontActive: The status of the "Merchant hosted local // storefront" feature. HostedLocalStorefrontActive bool `json:"hostedLocalStorefrontActive,omitempty"` - // Inventory: LIA inventory verification settings. Inventory *LiaInventorySettings `json:"inventory,omitempty"` - // OnDisplayToOrder: LIA "On Display To Order" settings. OnDisplayToOrder *LiaOnDisplayToOrderSettings `json:"onDisplayToOrder,omitempty"` - // PosDataProvider: The POS data provider linked with this country. PosDataProvider *LiaPosDataProvider `json:"posDataProvider,omitempty"` - // StorePickupActive: The status of the "Store pickup" feature. StorePickupActive bool `json:"storePickupActive,omitempty"` - - // ForceSendFields is a list of field names (e.g. "About") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "About") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "About") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiaCountrySettings) MarshalJSON() ([]byte, error) { +func (s LiaCountrySettings) MarshalJSON() ([]byte, error) { type NoMethod LiaCountrySettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiaInventorySettings struct { // InventoryVerificationContactEmail: The email of the contact for the // inventory verification process. InventoryVerificationContactEmail string `json:"inventoryVerificationContactEmail,omitempty"` - - // InventoryVerificationContactName: The name of the contact for the - // inventory verification process. + // InventoryVerificationContactName: The name of the contact for the inventory + // verification process. InventoryVerificationContactName string `json:"inventoryVerificationContactName,omitempty"` - - // InventoryVerificationContactStatus: The status of the verification - // contact. Acceptable values are: - "active" - "inactive" - - // "pending" + // InventoryVerificationContactStatus: The status of the verification contact. + // Acceptable values are: - "active" - "inactive" - "pending" InventoryVerificationContactStatus string `json:"inventoryVerificationContactStatus,omitempty"` - - // Status: The status of the inventory verification process. Acceptable - // values are: - "active" - "inactive" - "pending" + // Status: The status of the inventory verification process. Acceptable values + // are: - "active" - "inactive" - "pending" Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "InventoryVerificationContactEmail") to unconditionally include in - // API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "InventoryVerificationContactEmail") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "InventoryVerificationContactEmail") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // "InventoryVerificationContactEmail") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } -func (s *LiaInventorySettings) MarshalJSON() ([]byte, error) { +func (s LiaInventorySettings) MarshalJSON() ([]byte, error) { type NoMethod LiaInventorySettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiaOnDisplayToOrderSettings struct { // ShippingCostPolicyUrl: Shipping cost and policy URL. ShippingCostPolicyUrl string `json:"shippingCostPolicyUrl,omitempty"` - - // Status: The status of the ?On display to order? feature. Acceptable - // values are: - "active" - "inactive" - "pending" + // Status: The status of the ?On display to order? feature. Acceptable values + // are: - "active" - "inactive" - "pending" Status string `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ShippingCostPolicyUrl") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ShippingCostPolicyUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ShippingCostPolicyUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiaOnDisplayToOrderSettings) MarshalJSON() ([]byte, error) { +func (s LiaOnDisplayToOrderSettings) MarshalJSON() ([]byte, error) { type NoMethod LiaOnDisplayToOrderSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiaPosDataProvider struct { // PosDataProviderId: The ID of the POS data provider. PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"` - - // PosExternalAccountId: The account ID by which this merchant is known - // to the POS data provider. + // PosExternalAccountId: The account ID by which this merchant is known to the + // POS data provider. PosExternalAccountId string `json:"posExternalAccountId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PosDataProviderId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "PosDataProviderId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PosDataProviderId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PosDataProviderId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiaPosDataProvider) MarshalJSON() ([]byte, error) { +func (s LiaPosDataProvider) MarshalJSON() ([]byte, error) { type NoMethod LiaPosDataProvider - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LiaSettings: Local Inventory ads (LIA) settings. All methods except // listposdataproviders require the admin role. type LiaSettings struct { - // AccountId: The ID of the account to which these LIA settings belong. - // Ignored upon update, always present in get request responses. + // AccountId: The ID of the account to which these LIA settings belong. Ignored + // upon update, always present in get request responses. AccountId uint64 `json:"accountId,omitempty,string"` - // CountrySettings: The LIA settings for each country. CountrySettings []*LiaCountrySettings `json:"countrySettings,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#liaSettings" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#liaSettings" Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiaSettings) MarshalJSON() ([]byte, error) { +func (s LiaSettings) MarshalJSON() ([]byte, error) { type NoMethod LiaSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*LiasettingsCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s LiasettingsCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsCustomBatchRequestEntry struct { // AccountId: The ID of the account for which to get/update account LIA // settings. AccountId uint64 `json:"accountId,omitempty,string"` - // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // ContactEmail: Inventory validation contact email. Required only for // SetInventoryValidationContact. ContactEmail string `json:"contactEmail,omitempty"` - // ContactName: Inventory validation contact name. Required only for // SetInventoryValidationContact. ContactName string `json:"contactName,omitempty"` - - // Country: The country code. Required only for - // RequestInventoryVerification. + // Country: The country code. Required only for RequestInventoryVerification. Country string `json:"country,omitempty"` - // GmbEmail: The GMB account. Required only for RequestGmbAccess. GmbEmail string `json:"gmbEmail,omitempty"` - - // LiaSettings: The account Lia settings to update. Only defined if the - // method is `update`. + // LiaSettings: The account Lia settings to update. Only defined if the method + // is `update`. LiaSettings *LiaSettings `json:"liaSettings,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // Method: The method of the batch entry. Acceptable values are: - - // "get" - "getAccessibleGmbAccounts" - "requestGmbAccess" - - // "requestInventoryVerification" - - // "setInventoryVerificationContact" - "update" + // Method: The method of the batch entry. Acceptable values are: - "get" - + // "getAccessibleGmbAccounts" - "requestGmbAccess" - + // "requestInventoryVerification" - "setInventoryVerificationContact" - + // "update" Method string `json:"method,omitempty"` - // PosDataProviderId: The ID of POS data provider. Required only for // SetPosProvider. PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"` - - // PosExternalAccountId: The account ID by which this merchant is known - // to the POS provider. + // PosExternalAccountId: The account ID by which this merchant is known to the + // POS provider. PosExternalAccountId string `json:"posExternalAccountId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s LiasettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*LiasettingsCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#liasettingsCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#liasettingsCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s LiasettingsCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsCustomBatchResponseEntry struct { // BatchId: The ID of the request entry to which this entry responds. BatchId int64 `json:"batchId,omitempty"` - // Errors: A list of errors defined if, and only if, the request failed. Errors *Errors `json:"errors,omitempty"` - // GmbAccounts: The list of accessible GMB accounts. GmbAccounts *GmbAccounts `json:"gmbAccounts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#liasettingsCustomBatchResponseEntry" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#liasettingsCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` - // LiaSettings: The retrieved or updated Lia settings. LiaSettings *LiaSettings `json:"liaSettings,omitempty"` - // PosDataProviders: The list of POS data providers. PosDataProviders []*PosDataProviders `json:"posDataProviders,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s LiasettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsGetAccessibleGmbAccountsResponse struct { // AccountId: The ID of the Merchant Center account. AccountId uint64 `json:"accountId,omitempty,string"` - - // GmbAccounts: A list of GMB accounts which are available to the - // merchant. + // GmbAccounts: A list of GMB accounts which are available to the merchant. GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#liasettingsGetAccessibleGmbAccountsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#liasettingsGetAccessibleGmbAccountsResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsGetAccessibleGmbAccountsResponse) MarshalJSON() ([]byte, error) { +func (s LiasettingsGetAccessibleGmbAccountsResponse) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsGetAccessibleGmbAccountsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsListPosDataProvidersResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#liasettingsListPosDataProvidersResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#liasettingsListPosDataProvidersResponse". Kind string `json:"kind,omitempty"` - - // PosDataProviders: The list of POS data providers for each eligible - // country + // PosDataProviders: The list of POS data providers for each eligible country PosDataProviders []*PosDataProviders `json:"posDataProviders,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsListPosDataProvidersResponse) MarshalJSON() ([]byte, error) { +func (s LiasettingsListPosDataProvidersResponse) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsListPosDataProvidersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#liasettingsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#liasettingsListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of LIA settings. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*LiaSettings `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of LIA - // settings. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*LiaSettings `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsListResponse) MarshalJSON() ([]byte, error) { +func (s LiasettingsListResponse) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsRequestGmbAccessResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#liasettingsRequestGmbAccessResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#liasettingsRequestGmbAccessResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsRequestGmbAccessResponse) MarshalJSON() ([]byte, error) { +func (s LiasettingsRequestGmbAccessResponse) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsRequestGmbAccessResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsRequestInventoryVerificationResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#liasettingsRequestInventoryVerificationResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#liasettingsRequestInventoryVerificationResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsRequestInventoryVerificationResponse) MarshalJSON() ([]byte, error) { +func (s LiasettingsRequestInventoryVerificationResponse) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsRequestInventoryVerificationResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsSetInventoryVerificationContactResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#liasettingsSetInventoryVerificationContactResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#liasettingsSetInventoryVerificationContactResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsSetInventoryVerificationContactResponse) MarshalJSON() ([]byte, error) { +func (s LiasettingsSetInventoryVerificationContactResponse) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsSetInventoryVerificationContactResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LiasettingsSetPosDataProviderResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#liasettingsSetPosDataProviderResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#liasettingsSetPosDataProviderResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LiasettingsSetPosDataProviderResponse) MarshalJSON() ([]byte, error) { +func (s LiasettingsSetPosDataProviderResponse) MarshalJSON() ([]byte, error) { type NoMethod LiasettingsSetPosDataProviderResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LocationIdSet struct { - // LocationIds: A non-empty list of location IDs. They must all be of - // the same location type (e.g., state). + // LocationIds: A non-empty list of location IDs. They must all be of the same + // location type (e.g., state). LocationIds []string `json:"locationIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "LocationIds") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LocationIds") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LocationIds") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LocationIdSet) MarshalJSON() ([]byte, error) { +func (s LocationIdSet) MarshalJSON() ([]byte, error) { type NoMethod LocationIdSet - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LoyaltyPoints struct { - // Name: Name of loyalty points program. It is recommended to limit the - // name to 12 full-width characters or 24 Roman characters. + // Name: Name of loyalty points program. It is recommended to limit the name to + // 12 full-width characters or 24 Roman characters. Name string `json:"name,omitempty"` - // PointsValue: The retailer's loyalty points in absolute value. PointsValue int64 `json:"pointsValue,omitempty,string"` - - // Ratio: The ratio of a point when converted to currency. Google - // assumes currency based on Merchant Center settings. If ratio is left - // out, it defaults to 1.0. + // Ratio: The ratio of a point when converted to currency. Google assumes + // currency based on Merchant Center settings. If ratio is left out, it + // defaults to 1.0. Ratio float64 `json:"ratio,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LoyaltyPoints) MarshalJSON() ([]byte, error) { +func (s LoyaltyPoints) MarshalJSON() ([]byte, error) { type NoMethod LoyaltyPoints - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *LoyaltyPoints) UnmarshalJSON(data []byte) error { @@ -4123,1095 +3228,826 @@ func (s *LoyaltyPoints) UnmarshalJSON(data []byte) error { return nil } -// MerchantOrderReturn: Order return. Production access (all methods) -// requires the order manager role. Sandbox access does not. +// MerchantOrderReturn: Order return. Production access (all methods) requires +// the order manager role. Sandbox access does not. type MerchantOrderReturn struct { // CreationDate: The date of creation of the return, in ISO 8601 format. CreationDate string `json:"creationDate,omitempty"` - // MerchantOrderId: Merchant defined order ID. MerchantOrderId string `json:"merchantOrderId,omitempty"` - // OrderId: Google order ID. OrderId string `json:"orderId,omitempty"` - // OrderReturnId: Order return ID generated by Google. OrderReturnId string `json:"orderReturnId,omitempty"` - // ReturnItems: Items of the return. ReturnItems []*MerchantOrderReturnItem `json:"returnItems,omitempty"` - // ReturnShipments: Shipments of the return. ReturnShipments []*ReturnShipment `json:"returnShipments,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreationDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreationDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MerchantOrderReturn) MarshalJSON() ([]byte, error) { +func (s MerchantOrderReturn) MarshalJSON() ([]byte, error) { type NoMethod MerchantOrderReturn - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type MerchantOrderReturnItem struct { - // CustomerReturnReason: The reason that the customer chooses to return - // an item. + // CustomerReturnReason: The reason that the customer chooses to return an + // item. CustomerReturnReason *CustomerReturnReason `json:"customerReturnReason,omitempty"` - // ItemId: Product level item ID. If the returned items are of the same // product, they will have the same ID. ItemId string `json:"itemId,omitempty"` - - // MerchantReturnReason: The reason that merchant chooses to accept a - // return item. + // MerchantReturnReason: The reason that merchant chooses to accept a return + // item. MerchantReturnReason *RefundReason `json:"merchantReturnReason,omitempty"` - // Product: Product data from the time of the order placement. Product *OrderLineItemProduct `json:"product,omitempty"` - - // ReturnShipmentIds: IDs of the return shipments that this return item - // belongs to. + // ReturnShipmentIds: IDs of the return shipments that this return item belongs + // to. ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"` - - // State: State of the item. Acceptable values are: - "canceled" - - // "new" - "received" - "refunded" - "rejected" + // State: State of the item. Acceptable values are: - "canceled" - "new" - + // "received" - "refunded" - "rejected" State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomerReturnReason") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomerReturnReason") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomerReturnReason") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CustomerReturnReason") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MerchantOrderReturnItem) MarshalJSON() ([]byte, error) { +func (s MerchantOrderReturnItem) MarshalJSON() ([]byte, error) { type NoMethod MerchantOrderReturnItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type MinimumOrderValueTable struct { StoreCodeSetWithMovs []*MinimumOrderValueTableStoreCodeSetWithMov `json:"storeCodeSetWithMovs,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "StoreCodeSetWithMovs") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "StoreCodeSetWithMovs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StoreCodeSetWithMovs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "StoreCodeSetWithMovs") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MinimumOrderValueTable) MarshalJSON() ([]byte, error) { +func (s MinimumOrderValueTable) MarshalJSON() ([]byte, error) { type NoMethod MinimumOrderValueTable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MinimumOrderValueTableStoreCodeSetWithMov: A list of store code sets -// sharing the same minimum order value. At least two sets are required -// and the last one must be empty, which signifies 'MOV for all other -// stores'. Each store code can only appear once across all the sets. -// All prices within a service must have the same currency. +// MinimumOrderValueTableStoreCodeSetWithMov: A list of store code sets sharing +// the same minimum order value. At least two sets are required and the last +// one must be empty, which signifies 'MOV for all other stores'. Each store +// code can only appear once across all the sets. All prices within a service +// must have the same currency. type MinimumOrderValueTableStoreCodeSetWithMov struct { // StoreCodes: A list of unique store codes or empty for the catch all. StoreCodes []string `json:"storeCodes,omitempty"` - // Value: The minimum order value for the given stores. Value *Price `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "StoreCodes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StoreCodes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StoreCodes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MinimumOrderValueTableStoreCodeSetWithMov) MarshalJSON() ([]byte, error) { +func (s MinimumOrderValueTableStoreCodeSetWithMov) MarshalJSON() ([]byte, error) { type NoMethod MinimumOrderValueTableStoreCodeSetWithMov - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Order: Order. Production access (all methods) requires the order -// manager role. Sandbox access does not. +// Order: Order. Production access (all methods) requires the order manager +// role. Sandbox access does not. type Order struct { // Acknowledged: Whether the order was acknowledged. Acknowledged bool `json:"acknowledged,omitempty"` - // ChannelType: Deprecated. Acceptable values are: - "googleExpress" - // "purchasesOnGoogle" ChannelType string `json:"channelType,omitempty"` - // Customer: The details of the customer who placed the order. Customer *OrderCustomer `json:"customer,omitempty"` - // DeliveryDetails: Delivery details for shipments of type `delivery`. DeliveryDetails *OrderDeliveryDetails `json:"deliveryDetails,omitempty"` - // Id: The REST ID of the order. Globally unique. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#order" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#order" Kind string `json:"kind,omitempty"` - // LineItems: Line items that are ordered. - LineItems []*OrderLineItem `json:"lineItems,omitempty"` - - MerchantId uint64 `json:"merchantId,omitempty,string"` - + LineItems []*OrderLineItem `json:"lineItems,omitempty"` + MerchantId uint64 `json:"merchantId,omitempty,string"` // MerchantOrderId: Merchant-provided ID of the order. MerchantOrderId string `json:"merchantOrderId,omitempty"` - // NetAmount: The net amount for the order. For example, if an order was - // originally for a grand total of $100 and a refund was issued for $20, - // the net amount will be $80. + // originally for a grand total of $100 and a refund was issued for $20, the + // net amount will be $80. NetAmount *Price `json:"netAmount,omitempty"` - // PaymentMethod: The details of the payment method. PaymentMethod *OrderPaymentMethod `json:"paymentMethod,omitempty"` - // PaymentStatus: The status of the payment. Acceptable values are: - // "paymentCaptured" - "paymentRejected" - "paymentSecured" - // "pendingAuthorization" PaymentStatus string `json:"paymentStatus,omitempty"` - // PickupDetails: Pickup details for shipments of type `pickup`. PickupDetails *OrderPickupDetails `json:"pickupDetails,omitempty"` - // PlacedDate: The date when the order was placed, in ISO 8601 format. PlacedDate string `json:"placedDate,omitempty"` - - // Promotions: The details of the merchant provided promotions applied - // to the order. To determine which promotions apply to which products, - // check the `Promotions[].Benefits[].OfferIds` field against the - // `LineItems[].Product.OfferId` field for each promotion. If a - // promotion is applied to more than 1 `offerId`, divide the discount - // value by the number of affected offers to determine how much discount - // to apply to each `offerId`. Examples: 1. To calculate the line item - // level discount for a single specific item: For each promotion, - // subtract the `Promotions[].Benefits[].Discount.value` amount from the - // `LineItems[].Price.value`. 2. To calculate the line item level - // discount for multiple quantity of a specific item: For each - // promotion, divide the `Promotions[].Benefits[].Discount.value` by the - // quantity of products and substract it from - // `LineItems[].Product.Price.value` for each quantity item. Only 1 - // promotion can be applied to an offerId in a given order. To refund an - // item which had a promotion applied to it, make sure to refund the - // amount after first subtracting the promotion discount from the item - // price. More details about the program are here. + // Promotions: The details of the merchant provided promotions applied to the + // order. To determine which promotions apply to which products, check the + // `Promotions[].Benefits[].OfferIds` field against the + // `LineItems[].Product.OfferId` field for each promotion. If a promotion is + // applied to more than 1 `offerId`, divide the discount value by the number of + // affected offers to determine how much discount to apply to each `offerId`. + // Examples: 1. To calculate the line item level discount for a single specific + // item: For each promotion, subtract the + // `Promotions[].Benefits[].Discount.value` amount from the + // `LineItems[].Price.value`. 2. To calculate the line item level discount for + // multiple quantity of a specific item: For each promotion, divide the + // `Promotions[].Benefits[].Discount.value` by the quantity of products and + // substract it from `LineItems[].Product.Price.value` for each quantity item. + // Only 1 promotion can be applied to an offerId in a given order. To refund an + // item which had a promotion applied to it, make sure to refund the amount + // after first subtracting the promotion discount from the item price. More + // details about the program are here. Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"` - // Refunds: Refunds for the order. Refunds []*OrderRefund `json:"refunds,omitempty"` - // Shipments: Shipments of the order. Shipments []*OrderShipment `json:"shipments,omitempty"` - // ShippingCost: The total cost of shipping for all items. ShippingCost *Price `json:"shippingCost,omitempty"` - // ShippingCostTax: The tax for the total shipping cost. ShippingCostTax *Price `json:"shippingCostTax,omitempty"` - - // ShippingOption: Deprecated. Shipping details are provided with line - // items instead. Acceptable values are: - "economy" - "expedited" - - // "oneDay" - "sameDay" - "standard" - "twoDay" + // ShippingOption: Deprecated. Shipping details are provided with line items + // instead. Acceptable values are: - "economy" - "expedited" - "oneDay" - + // "sameDay" - "standard" - "twoDay" ShippingOption string `json:"shippingOption,omitempty"` - - // Status: The status of the order. Acceptable values are: - - // "canceled" - "delivered" - "inProgress" - - // "partiallyDelivered" - "partiallyReturned" - "partiallyShipped" - // - "pendingShipment" - "returned" - "shipped" + // Status: The status of the order. Acceptable values are: - "canceled" - + // "delivered" - "inProgress" - "partiallyDelivered" - + // "partiallyReturned" - "partiallyShipped" - "pendingShipment" - + // "returned" - "shipped" Status string `json:"status,omitempty"` - - // TaxCollector: The party responsible for collecting and remitting - // taxes. Acceptable values are: - "marketplaceFacilitator" - - // "merchant" + // TaxCollector: The party responsible for collecting and remitting taxes. + // Acceptable values are: - "marketplaceFacilitator" - "merchant" TaxCollector string `json:"taxCollector,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Acknowledged") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Acknowledged") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Acknowledged") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Order) MarshalJSON() ([]byte, error) { +func (s Order) MarshalJSON() ([]byte, error) { type NoMethod Order - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderAddress struct { // Country: CLDR country code (e.g. "US"). Country string `json:"country,omitempty"` - - // FullAddress: Strings representing the lines of the printed label for - // mailing the order, for example: John Smith 1600 Amphitheatre Parkway - // Mountain View, CA, 94043 United States + // FullAddress: Strings representing the lines of the printed label for mailing + // the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, + // CA, 94043 United States FullAddress []string `json:"fullAddress,omitempty"` - // IsPostOfficeBox: Whether the address is a post office box. IsPostOfficeBox bool `json:"isPostOfficeBox,omitempty"` - - // Locality: City, town or commune. May also include dependent - // localities or sublocalities (e.g. neighborhoods or suburbs). + // Locality: City, town or commune. May also include dependent localities or + // sublocalities (e.g. neighborhoods or suburbs). Locality string `json:"locality,omitempty"` - // PostalCode: Postal Code or ZIP (e.g. "94043"). PostalCode string `json:"postalCode,omitempty"` - // RecipientName: Name of the recipient. RecipientName string `json:"recipientName,omitempty"` - - // Region: Top-level administrative subdivision of the country. For - // example, a state like California ("CA") or a province like Quebec - // ("QC"). + // Region: Top-level administrative subdivision of the country. For example, a + // state like California ("CA") or a province like Quebec ("QC"). Region string `json:"region,omitempty"` - // StreetAddress: Street-level part of the address. StreetAddress []string `json:"streetAddress,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderAddress) MarshalJSON() ([]byte, error) { +func (s OrderAddress) MarshalJSON() ([]byte, error) { type NoMethod OrderAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderCancellation struct { - // Actor: The actor that created the cancellation. Acceptable values - // are: - "customer" - "googleBot" - "googleCustomerService" - + // Actor: The actor that created the cancellation. Acceptable values are: - + // "customer" - "googleBot" - "googleCustomerService" - // "googlePayments" - "googleSabre" - "merchant" Actor string `json:"actor,omitempty"` - - // CreationDate: Date on which the cancellation has been created, in ISO - // 8601 format. + // CreationDate: Date on which the cancellation has been created, in ISO 8601 + // format. CreationDate string `json:"creationDate,omitempty"` - // Quantity: The quantity that was canceled. Quantity int64 `json:"quantity,omitempty"` - - // Reason: The reason for the cancellation. Orders that are canceled - // with a noInventory reason will lead to the removal of the product - // from Buy on Google until you make an update to that product. This - // will not affect your Shopping ads. Acceptable values are: - - // "autoPostInternal" - "autoPostInvalidBillingAddress" - - // "autoPostNoInventory" - "autoPostPriceError" - - // "autoPostUndeliverableShippingAddress" - "couponAbuse" - - // "customerCanceled" - "customerInitiatedCancel" - + // Reason: The reason for the cancellation. Orders that are canceled with a + // noInventory reason will lead to the removal of the product from Buy on + // Google until you make an update to that product. This will not affect your + // Shopping ads. Acceptable values are: - "autoPostInternal" - + // "autoPostInvalidBillingAddress" - "autoPostNoInventory" - + // "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - + // "couponAbuse" - "customerCanceled" - "customerInitiatedCancel" - // "customerSupportRequested" - "failToPushOrderGoogleError" - // "failToPushOrderMerchantError" - - // "failToPushOrderMerchantFulfillmentError" - - // "failToPushOrderToMerchant" - - // "failToPushOrderToMerchantOutOfStock" - "invalidCoupon" - + // "failToPushOrderMerchantFulfillmentError" - "failToPushOrderToMerchant" + // - "failToPushOrderToMerchantOutOfStock" - "invalidCoupon" - // "malformedShippingAddress" - "merchantDidNotShipOnTime" - // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - // "paymentDeclined" - "priceError" - "returnRefundAbuse" - - // "shippingPriceError" - "taxError" - - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" + // "shippingPriceError" - "taxError" - "undeliverableShippingAddress" - + // "unsupportedPoBoxAddress" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Actor") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actor") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderCancellation) MarshalJSON() ([]byte, error) { +func (s OrderCancellation) MarshalJSON() ([]byte, error) { type NoMethod OrderCancellation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderCustomer struct { // Email: Deprecated. Email string `json:"email,omitempty"` - - // ExplicitMarketingPreference: Deprecated. Please use - // marketingRightsInfo instead. + // ExplicitMarketingPreference: Deprecated. Please use marketingRightsInfo + // instead. ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"` - // FullName: Full name of the customer. FullName string `json:"fullName,omitempty"` - - // InvoiceReceivingEmail: Email address for the merchant to send - // value-added tax or invoice documentation of the order. Only the last - // document sent is made available to the customer. For more - // information, see About automated VAT invoicing for Buy on Google. + // InvoiceReceivingEmail: Email address for the merchant to send value-added + // tax or invoice documentation of the order. Only the last document sent is + // made available to the customer. For more information, see About automated + // VAT invoicing for Buy on Google. InvoiceReceivingEmail string `json:"invoiceReceivingEmail,omitempty"` - // MarketingRightsInfo: Customer's marketing preferences. Contains the - // marketing opt-in information that is current at the time that the - // merchant call. User preference selections can change from one order - // to the next so preferences must be checked with every order. + // marketing opt-in information that is current at the time that the merchant + // call. User preference selections can change from one order to the next so + // preferences must be checked with every order. MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderCustomer) MarshalJSON() ([]byte, error) { +func (s OrderCustomer) MarshalJSON() ([]byte, error) { type NoMethod OrderCustomer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderCustomerMarketingRightsInfo struct { // ExplicitMarketingPreference: Last known customer selection regarding - // marketing preferences. In certain cases this selection might not be - // known, so this field would be empty. If a customer selected `granted` - // in their most recent order, they can be subscribed to marketing - // emails. Customers who have chosen `denied` must not be subscribed, or - // must be unsubscribed if already opted-in. Acceptable values are: - - // "denied" - "granted" + // marketing preferences. In certain cases this selection might not be known, + // so this field would be empty. If a customer selected `granted` in their most + // recent order, they can be subscribed to marketing emails. Customers who have + // chosen `denied` must not be subscribed, or must be unsubscribed if already + // opted-in. Acceptable values are: - "denied" - "granted" ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"` - - // LastUpdatedTimestamp: Timestamp when last time marketing preference - // was updated. Could be empty, if user wasn't offered a selection yet. + // LastUpdatedTimestamp: Timestamp when last time marketing preference was + // updated. Could be empty, if user wasn't offered a selection yet. LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"` - // MarketingEmailAddress: Email address that can be used for marketing - // purposes. The field may be empty even if - // `explicitMarketingPreference` is 'granted'. This happens when - // retrieving an old order from the customer who deleted their account. + // purposes. The field may be empty even if `explicitMarketingPreference` is + // 'granted'. This happens when retrieving an old order from the customer who + // deleted their account. MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ExplicitMarketingPreference") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "ExplicitMarketingPreference") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExplicitMarketingPreference") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExplicitMarketingPreference") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) { +func (s OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) { type NoMethod OrderCustomerMarketingRightsInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderDeliveryDetails struct { // Address: The delivery address Address *OrderAddress `json:"address,omitempty"` - // PhoneNumber: The phone number of the person receiving the delivery. PhoneNumber string `json:"phoneNumber,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDeliveryDetails) MarshalJSON() ([]byte, error) { +func (s OrderDeliveryDetails) MarshalJSON() ([]byte, error) { type NoMethod OrderDeliveryDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLegacyPromotion struct { Benefits []*OrderLegacyPromotionBenefit `json:"benefits,omitempty"` - - // EffectiveDates: The date and time frame when the promotion is active - // and ready for validation review. Note that the promotion live time - // may be delayed for a few hours due to the validation review. Start - // date and end date are separated by a forward slash (/). The start - // date is specified by the format (YYYY-MM-DD), followed by the letter - // ?T?, the time of the day when the sale starts (in Greenwich Mean - // Time, GMT), followed by an expression of the time zone for the sale. - // The end date is in the same format. + // EffectiveDates: The date and time frame when the promotion is active and + // ready for validation review. Note that the promotion live time may be + // delayed for a few hours due to the validation review. Start date and end + // date are separated by a forward slash (/). The start date is specified by + // the format (YYYY-MM-DD), followed by the letter ?T?, the time of the day + // when the sale starts (in Greenwich Mean Time, GMT), followed by an + // expression of the time zone for the sale. The end date is in the same + // format. EffectiveDates string `json:"effectiveDates,omitempty"` - - // GenericRedemptionCode: Optional. The text code that corresponds to - // the promotion when applied on the retailer?s website. + // GenericRedemptionCode: Optional. The text code that corresponds to the + // promotion when applied on the retailer?s website. GenericRedemptionCode string `json:"genericRedemptionCode,omitempty"` - // Id: The unique ID of the promotion. Id string `json:"id,omitempty"` - // LongTitle: The full title of the promotion. LongTitle string `json:"longTitle,omitempty"` - - // ProductApplicability: Whether the promotion is applicable to all - // products or only specific products. Acceptable values are: - - // "allProducts" - "specificProducts" + // ProductApplicability: Whether the promotion is applicable to all products or + // only specific products. Acceptable values are: - "allProducts" - + // "specificProducts" ProductApplicability string `json:"productApplicability,omitempty"` - - // RedemptionChannel: Indicates that the promotion is valid online. - // Acceptable values are: - "online" + // RedemptionChannel: Indicates that the promotion is valid online. Acceptable + // values are: - "online" RedemptionChannel string `json:"redemptionChannel,omitempty"` - // ForceSendFields is a list of field names (e.g. "Benefits") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Benefits") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Benefits") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLegacyPromotion) MarshalJSON() ([]byte, error) { +func (s OrderLegacyPromotion) MarshalJSON() ([]byte, error) { type NoMethod OrderLegacyPromotion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLegacyPromotionBenefit struct { - // Discount: The discount in the order price when the promotion is - // applied. + // Discount: The discount in the order price when the promotion is applied. Discount *Price `json:"discount,omitempty"` - - // OfferIds: The OfferId(s) that were purchased in this order and map to - // this specific benefit of the promotion. + // OfferIds: The OfferId(s) that were purchased in this order and map to this + // specific benefit of the promotion. OfferIds []string `json:"offerIds,omitempty"` - - // SubType: Further describes the benefit of the promotion. Note that we - // will expand on this enumeration as we support new promotion - // sub-types. Acceptable values are: - "buyMGetMoneyOff" - - // "buyMGetNMoneyOff" - "buyMGetNPercentOff" - "buyMGetPercentOff" - // - "freeGift" - "freeGiftWithItemId" - "freeGiftWithValue" - - // "freeOvernightShipping" - "freeShipping" - "freeTwoDayShipping" - // - "moneyOff" - "percentageOff" - "rewardPoints" - "salePrice" + // SubType: Further describes the benefit of the promotion. Note that we will + // expand on this enumeration as we support new promotion sub-types. Acceptable + // values are: - "buyMGetMoneyOff" - "buyMGetNMoneyOff" - + // "buyMGetNPercentOff" - "buyMGetPercentOff" - "freeGift" - + // "freeGiftWithItemId" - "freeGiftWithValue" - "freeOvernightShipping" - + // "freeShipping" - "freeTwoDayShipping" - "moneyOff" - "percentageOff" + // - "rewardPoints" - "salePrice" SubType string `json:"subType,omitempty"` - // TaxImpact: The impact on tax when the promotion is applied. TaxImpact *Price `json:"taxImpact,omitempty"` - - // Type: Describes whether the promotion applies to products (e.g. 20% - // off) or to shipping (e.g. Free Shipping). Acceptable values are: - - // "product" - "shipping" + // Type: Describes whether the promotion applies to products (e.g. 20% off) or + // to shipping (e.g. Free Shipping). Acceptable values are: - "product" - + // "shipping" Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Discount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Discount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Discount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLegacyPromotionBenefit) MarshalJSON() ([]byte, error) { +func (s OrderLegacyPromotionBenefit) MarshalJSON() ([]byte, error) { type NoMethod OrderLegacyPromotionBenefit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItem struct { // Annotations: Annotations that are attached to the line item. Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"` - // Cancellations: Cancellations of the line item. Cancellations []*OrderCancellation `json:"cancellations,omitempty"` - // Id: The ID of the line item. Id string `json:"id,omitempty"` - - // Price: Total price for the line item. For example, if two items for - // $10 are purchased, the total price will be $20. + // Price: Total price for the line item. For example, if two items for $10 are + // purchased, the total price will be $20. Price *Price `json:"price,omitempty"` - // Product: Product data as seen by customer from the time of the order - // placement. Note that certain attributes values (e.g. title or gtin) - // might be reformatted and no longer match values submitted via product - // feed. + // placement. Note that certain attributes values (e.g. title or gtin) might be + // reformatted and no longer match values submitted via product feed. Product *OrderLineItemProduct `json:"product,omitempty"` - // QuantityCanceled: Number of items canceled. QuantityCanceled int64 `json:"quantityCanceled,omitempty"` - // QuantityDelivered: Number of items delivered. QuantityDelivered int64 `json:"quantityDelivered,omitempty"` - // QuantityOrdered: Number of items ordered. QuantityOrdered int64 `json:"quantityOrdered,omitempty"` - // QuantityPending: Number of items pending. QuantityPending int64 `json:"quantityPending,omitempty"` - // QuantityReadyForPickup: Number of items ready for pickup. QuantityReadyForPickup int64 `json:"quantityReadyForPickup,omitempty"` - // QuantityReturned: Number of items returned. QuantityReturned int64 `json:"quantityReturned,omitempty"` - // QuantityShipped: Number of items shipped. QuantityShipped int64 `json:"quantityShipped,omitempty"` - // ReturnInfo: Details of the return policy for the line item. ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"` - // Returns: Returns of the line item. Returns []*OrderReturn `json:"returns,omitempty"` - // ShippingDetails: Details of the requested shipping for the line item. ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"` - - // Tax: Total tax amount for the line item. For example, if two items - // are purchased, and each have a cost tax of $2, the total tax amount - // will be $4. + // Tax: Total tax amount for the line item. For example, if two items are + // purchased, and each have a cost tax of $2, the total tax amount will be $4. Tax *Price `json:"tax,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItem) MarshalJSON() ([]byte, error) { +func (s OrderLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemProduct struct { // Brand: Brand of the item. Brand string `json:"brand,omitempty"` - - // Channel: The item's channel (online or local). Acceptable values are: - // - "local" - "online" + // Channel: The item's channel (online or local). Acceptable values are: - + // "local" - "online" Channel string `json:"channel,omitempty"` - - // Condition: Condition or state of the item. Acceptable values are: - - // "new" - "refurbished" - "used" + // Condition: Condition or state of the item. Acceptable values are: - "new" + // - "refurbished" - "used" Condition string `json:"condition,omitempty"` - // ContentLanguage: The two-letter ISO 639-1 language code for the item. ContentLanguage string `json:"contentLanguage,omitempty"` - // Fees: Associated fees at order creation time. Fees []*OrderLineItemProductFee `json:"fees,omitempty"` - // Gtin: Global Trade Item Number (GTIN) of the item. Gtin string `json:"gtin,omitempty"` - // Id: The REST ID of the product. Id string `json:"id,omitempty"` - // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` - // ItemGroupId: Shared identifier for all variants of the same product. ItemGroupId string `json:"itemGroupId,omitempty"` - // Mpn: Manufacturer Part Number (MPN) of the item. Mpn string `json:"mpn,omitempty"` - // OfferId: An identifier of the item. OfferId string `json:"offerId,omitempty"` - // Price: Price of the item. Price *Price `json:"price,omitempty"` - - // ShownImage: URL to the cached image shown to the user when order was - // placed. + // ShownImage: URL to the cached image shown to the user when order was placed. ShownImage string `json:"shownImage,omitempty"` - - // TargetCountry: The CLDR territory // code of the target country of - // the product. + // TargetCountry: The CLDR territory // code of the target country of the + // product. TargetCountry string `json:"targetCountry,omitempty"` - // Title: The title of the product. Title string `json:"title,omitempty"` - - // VariantAttributes: Variant attributes for the item. These are - // dimensions of the product, such as color, gender, material, pattern, - // and size. You can find a comprehensive list of variant attributes - // here. + // VariantAttributes: Variant attributes for the item. These are dimensions of + // the product, such as color, gender, material, pattern, and size. You can + // find a comprehensive list of variant attributes here. VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Brand") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Brand") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Brand") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemProduct) MarshalJSON() ([]byte, error) { +func (s OrderLineItemProduct) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemProduct - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemProductFee struct { // Amount: Amount of the fee. Amount *Price `json:"amount,omitempty"` - // Name: Name of the fee. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemProductFee) MarshalJSON() ([]byte, error) { +func (s OrderLineItemProductFee) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemProductFee - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemProductVariantAttribute struct { // Dimension: The dimension of the variant. Dimension string `json:"dimension,omitempty"` - // Value: The value for the dimension. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimension") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemProductVariantAttribute) MarshalJSON() ([]byte, error) { +func (s OrderLineItemProductVariantAttribute) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemProductVariantAttribute - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemReturnInfo struct { // DaysToReturn: Required. How many days later the item can be returned. DaysToReturn int64 `json:"daysToReturn,omitempty"` - // IsReturnable: Required. Whether the item is returnable. IsReturnable bool `json:"isReturnable,omitempty"` - // PolicyUrl: Required. URL of the item return policy. PolicyUrl string `json:"policyUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "DaysToReturn") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DaysToReturn") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DaysToReturn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemReturnInfo) MarshalJSON() ([]byte, error) { +func (s OrderLineItemReturnInfo) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemReturnInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemShippingDetails struct { // DeliverByDate: Required. The delivery by date, in ISO 8601 format. DeliverByDate string `json:"deliverByDate,omitempty"` - // Method: Required. Details of the shipping method. Method *OrderLineItemShippingDetailsMethod `json:"method,omitempty"` - // ShipByDate: Required. The ship by date, in ISO 8601 format. ShipByDate string `json:"shipByDate,omitempty"` - // Type: Type of shipment. Indicates whether `deliveryDetails` or - // `pickupDetails` is applicable for this shipment. Acceptable values - // are: - "delivery" - "pickup" + // `pickupDetails` is applicable for this shipment. Acceptable values are: - + // "delivery" - "pickup" Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliverByDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliverByDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliverByDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error) { +func (s OrderLineItemShippingDetails) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemShippingDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemShippingDetailsMethod struct { - // Carrier: The carrier for the shipping. Optional. See - // `shipments[].carrier` for a list of acceptable values. + // Carrier: The carrier for the shipping. Optional. See `shipments[].carrier` + // for a list of acceptable values. Carrier string `json:"carrier,omitempty"` - // MaxDaysInTransit: Required. Maximum transit time. MaxDaysInTransit int64 `json:"maxDaysInTransit,omitempty"` - // MethodName: Required. The name of the shipping method. MethodName string `json:"methodName,omitempty"` - // MinDaysInTransit: Required. Minimum transit time. MinDaysInTransit int64 `json:"minDaysInTransit,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemShippingDetailsMethod) MarshalJSON() ([]byte, error) { +func (s OrderLineItemShippingDetailsMethod) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemShippingDetailsMethod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderMerchantProvidedAnnotation struct { - // Key: Key for additional merchant provided (as key-value pairs) - // annotation about the line item. + // Key: Key for additional merchant provided (as key-value pairs) annotation + // about the line item. Key string `json:"key,omitempty"` - // Value: Value for additional merchant provided (as key-value pairs) // annotation about the line item. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderMerchantProvidedAnnotation) MarshalJSON() ([]byte, error) { +func (s OrderMerchantProvidedAnnotation) MarshalJSON() ([]byte, error) { type NoMethod OrderMerchantProvidedAnnotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderPaymentMethod struct { // BillingAddress: The billing address. BillingAddress *OrderAddress `json:"billingAddress,omitempty"` - - // ExpirationMonth: The card expiration month (January = 1, February = 2 - // etc.). + // ExpirationMonth: The card expiration month (January = 1, February = 2 etc.). ExpirationMonth int64 `json:"expirationMonth,omitempty"` - // ExpirationYear: The card expiration year (4-digit, e.g. 2015). ExpirationYear int64 `json:"expirationYear,omitempty"` - // LastFourDigits: The last four digits of the card number. LastFourDigits string `json:"lastFourDigits,omitempty"` - // PhoneNumber: The billing phone number. PhoneNumber string `json:"phoneNumber,omitempty"` - // Type: The type of instrument. Acceptable values are: - "AMEX" - - // "DISCOVER" - "JCB" - "MASTERCARD" - "UNIONPAY" - "VISA" - - // "" + // "DISCOVER" - "JCB" - "MASTERCARD" - "UNIONPAY" - "VISA" - "" Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "BillingAddress") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BillingAddress") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BillingAddress") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderPaymentMethod) MarshalJSON() ([]byte, error) { +func (s OrderPaymentMethod) MarshalJSON() ([]byte, error) { type NoMethod OrderPaymentMethod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderPickupDetails struct { - // Address: Address of the pickup location where the shipment should be - // sent. Note that `recipientName` in the address is the name of the - // business at the pickup location. + // Address: Address of the pickup location where the shipment should be sent. + // Note that `recipientName` in the address is the name of the business at the + // pickup location. Address *OrderAddress `json:"address,omitempty"` - // Collectors: Collectors authorized to pick up shipment from the pickup // location. Collectors []*OrderPickupDetailsCollector `json:"collectors,omitempty"` - // LocationId: ID of the pickup location. LocationId string `json:"locationId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderPickupDetails) MarshalJSON() ([]byte, error) { +func (s OrderPickupDetails) MarshalJSON() ([]byte, error) { type NoMethod OrderPickupDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderPickupDetailsCollector struct { // Name: Name of the person picking up the shipment. Name string `json:"name,omitempty"` - // PhoneNumber: Phone number of the person picking up the shipment. PhoneNumber string `json:"phoneNumber,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderPickupDetailsCollector) MarshalJSON() ([]byte, error) { +func (s OrderPickupDetailsCollector) MarshalJSON() ([]byte, error) { type NoMethod OrderPickupDetailsCollector - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderRefund struct { @@ -5219,163 +4055,121 @@ type OrderRefund struct { // "customer" - "googleBot" - "googleCustomerService" - // "googlePayments" - "googleSabre" - "merchant" Actor string `json:"actor,omitempty"` - // Amount: The amount that is refunded. Amount *Price `json:"amount,omitempty"` - - // CreationDate: Date on which the item has been created, in ISO 8601 - // format. + // CreationDate: Date on which the item has been created, in ISO 8601 format. CreationDate string `json:"creationDate,omitempty"` - - // Reason: The reason for the refund. Acceptable values are: - - // "adjustment" - "autoPostInternal" - - // "autoPostInvalidBillingAddress" - "autoPostNoInventory" - - // "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - - // "couponAbuse" - "courtesyAdjustment" - "customerCanceled" - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "customerSupportRequested" - "deliveredLateByCarrier" - - // "deliveredTooLate" - "expiredItem" - - // "failToPushOrderGoogleError" - "failToPushOrderMerchantError" - - // "failToPushOrderMerchantFulfillmentError" - - // "failToPushOrderToMerchant" - - // "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - - // "invalidCoupon" - "lateShipmentCredit" - - // "malformedShippingAddress" - "merchantDidNotShipOnTime" - - // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - - // "paymentDeclined" - "priceAdjustment" - "priceError" - - // "productArrivedDamaged" - "productNotAsDescribed" - - // "promoReallocation" - "qualityNotAsExpected" - - // "returnRefundAbuse" - "shippingCostAdjustment" - - // "shippingPriceError" - "taxAdjustment" - "taxError" - - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - - // "wrongProductShipped" + // Reason: The reason for the refund. Acceptable values are: - "adjustment" - + // "autoPostInternal" - "autoPostInvalidBillingAddress" - + // "autoPostNoInventory" - "autoPostPriceError" - + // "autoPostUndeliverableShippingAddress" - "couponAbuse" - + // "courtesyAdjustment" - "customerCanceled" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "customerSupportRequested" - "deliveredLateByCarrier" - + // "deliveredTooLate" - "expiredItem" - "failToPushOrderGoogleError" - + // "failToPushOrderMerchantError" - + // "failToPushOrderMerchantFulfillmentError" - "failToPushOrderToMerchant" + // - "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - + // "invalidCoupon" - "lateShipmentCredit" - "malformedShippingAddress" - + // "merchantDidNotShipOnTime" - "noInventory" - "orderTimeout" - + // "other" - "paymentAbuse" - "paymentDeclined" - "priceAdjustment" - + // "priceError" - "productArrivedDamaged" - "productNotAsDescribed" - + // "promoReallocation" - "qualityNotAsExpected" - "returnRefundAbuse" - + // "shippingCostAdjustment" - "shippingPriceError" - "taxAdjustment" - + // "taxError" - "undeliverableShippingAddress" - + // "unsupportedPoBoxAddress" - "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Actor") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actor") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderRefund) MarshalJSON() ([]byte, error) { +func (s OrderRefund) MarshalJSON() ([]byte, error) { type NoMethod OrderRefund - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OrderReportDisbursement: Order disbursement. All methods require the -// payment analyst role. +// OrderReportDisbursement: Order disbursement. All methods require the payment +// analyst role. type OrderReportDisbursement struct { // DisbursementAmount: The disbursement amount. DisbursementAmount *Price `json:"disbursementAmount,omitempty"` - // DisbursementCreationDate: The disbursement date, in ISO 8601 format. DisbursementCreationDate string `json:"disbursementCreationDate,omitempty"` - - // DisbursementDate: The date the disbursement was initiated, in ISO - // 8601 format. + // DisbursementDate: The date the disbursement was initiated, in ISO 8601 + // format. DisbursementDate string `json:"disbursementDate,omitempty"` - // DisbursementId: The ID of the disbursement. DisbursementId string `json:"disbursementId,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "DisbursementAmount") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DisbursementAmount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisbursementAmount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DisbursementAmount") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderReportDisbursement) MarshalJSON() ([]byte, error) { +func (s OrderReportDisbursement) MarshalJSON() ([]byte, error) { type NoMethod OrderReportDisbursement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderReportTransaction struct { // DisbursementAmount: The disbursement amount. DisbursementAmount *Price `json:"disbursementAmount,omitempty"` - - // DisbursementCreationDate: The date the disbursement was created, in - // ISO 8601 format. + // DisbursementCreationDate: The date the disbursement was created, in ISO 8601 + // format. DisbursementCreationDate string `json:"disbursementCreationDate,omitempty"` - - // DisbursementDate: The date the disbursement was initiated, in ISO - // 8601 format. + // DisbursementDate: The date the disbursement was initiated, in ISO 8601 + // format. DisbursementDate string `json:"disbursementDate,omitempty"` - // DisbursementId: The ID of the disbursement. DisbursementId string `json:"disbursementId,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - // MerchantOrderId: Merchant-provided ID of the order. MerchantOrderId string `json:"merchantOrderId,omitempty"` - // OrderId: The ID of the order. OrderId string `json:"orderId,omitempty"` - // ProductAmount: Total amount for the items. ProductAmount *Amount `json:"productAmount,omitempty"` - - // ProductAmountWithRemittedTax: Total amount with remitted tax for the - // items. + // ProductAmountWithRemittedTax: Total amount with remitted tax for the items. ProductAmountWithRemittedTax *ProductAmount `json:"productAmountWithRemittedTax,omitempty"` - // TransactionDate: The date of the transaction, in ISO 8601 format. TransactionDate string `json:"transactionDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisbursementAmount") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DisbursementAmount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisbursementAmount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DisbursementAmount") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderReportTransaction) MarshalJSON() ([]byte, error) { +func (s OrderReportTransaction) MarshalJSON() ([]byte, error) { type NoMethod OrderReportTransaction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderReturn struct { @@ -5383,3949 +4177,2994 @@ type OrderReturn struct { // "customer" - "googleBot" - "googleCustomerService" - // "googlePayments" - "googleSabre" - "merchant" Actor string `json:"actor,omitempty"` - - // CreationDate: Date on which the item has been created, in ISO 8601 - // format. + // CreationDate: Date on which the item has been created, in ISO 8601 format. CreationDate string `json:"creationDate,omitempty"` - // Quantity: Quantity that is returned. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Acceptable values are: - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - - // "malformedShippingAddress" - "other" - "productArrivedDamaged" - // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" - + // "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Actor") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actor") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderReturn) MarshalJSON() ([]byte, error) { +func (s OrderReturn) MarshalJSON() ([]byte, error) { type NoMethod OrderReturn - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderShipment struct { - // Carrier: The carrier handling the shipment. For supported carriers, - // Google includes the carrier name and tracking URL in emails to - // customers. For select supported carriers, Google also automatically - // updates the shipment status based on the provided shipment ID. - // *Note:* You can also use unsupported carriers, but emails to - // customers will not include the carrier name or tracking URL, and - // there will be no automatic order status updates. Supported carriers - // for US are: - "ups" (United Parcel Service) *automatic status - // updates* - "usps" (United States Postal Service) *automatic status - // updates* - "fedex" (FedEx) *automatic status updates * - "dhl" - // (DHL eCommerce) *automatic status updates* (US only) - "ontrac" - // (OnTrac) *automatic status updates * - "dhl express" (DHL Express) - // - "deliv" (Deliv) - "dynamex" (TForce) - "lasership" - // (LaserShip) - "mpx" (Military Parcel Xpress) - "uds" (United - // Delivery Service) - "efw" (Estes Forwarding Worldwide) - "jd - // logistics" (JD Logistics) - "yunexpress" (YunExpress) - "china - // post" (China Post) - "china ems" (China Post Express Mail Service) - // - "singapore post" (Singapore Post) - "pos malaysia" (Pos - // Malaysia) - "postnl" (PostNL) - "ptt" (PTT Turkish Post) - - // "eub" (ePacket) - "chukou1" (Chukou1 Logistics) - "bestex" - // (Best Express) - "canada post" (Canada Post) - "purolator" - // (Purolator) - "canpar" (Canpar) - "india post" (India Post) - - // "blue dart" (Blue Dart) - "delhivery" (Delhivery) - "dtdc" - // (DTDC) - "tpc india" (TPC India) Supported carriers for FR are: - - // "la poste" (La Poste) *automatic status updates * - "colissimo" - // (Colissimo by La Poste) *automatic status updates* - "ups" (United - // Parcel Service) *automatic status updates * - "chronopost" - // (Chronopost by La Poste) - "gls" (General Logistics Systems France) - // - "dpd" (DPD Group by GeoPost) - "bpost" (Belgian Post Group) - - // "colis prive" (Colis Privé) - "boxtal" (Boxtal) - "geodis" - // (GEODIS) - "tnt" (TNT) - "db schenker" (DB Schenker) - "aramex" - // (Aramex) + // Carrier: The carrier handling the shipment. For supported carriers, Google + // includes the carrier name and tracking URL in emails to customers. For + // select supported carriers, Google also automatically updates the shipment + // status based on the provided shipment ID. *Note:* You can also use + // unsupported carriers, but emails to customers will not include the carrier + // name or tracking URL, and there will be no automatic order status updates. + // Supported carriers for US are: - "ups" (United Parcel Service) *automatic + // status updates* - "usps" (United States Postal Service) *automatic status + // updates* - "fedex" (FedEx) *automatic status updates * - "dhl" (DHL + // eCommerce) *automatic status updates* (US only) - "ontrac" (OnTrac) + // *automatic status updates * - "dhl express" (DHL Express) - "deliv" + // (Deliv) - "dynamex" (TForce) - "lasership" (LaserShip) - "mpx" + // (Military Parcel Xpress) - "uds" (United Delivery Service) - "efw" + // (Estes Forwarding Worldwide) - "jd logistics" (JD Logistics) - + // "yunexpress" (YunExpress) - "china post" (China Post) - "china ems" + // (China Post Express Mail Service) - "singapore post" (Singapore Post) - + // "pos malaysia" (Pos Malaysia) - "postnl" (PostNL) - "ptt" (PTT Turkish + // Post) - "eub" (ePacket) - "chukou1" (Chukou1 Logistics) - "bestex" + // (Best Express) - "canada post" (Canada Post) - "purolator" (Purolator) - + // "canpar" (Canpar) - "india post" (India Post) - "blue dart" (Blue + // Dart) - "delhivery" (Delhivery) - "dtdc" (DTDC) - "tpc india" (TPC + // India) Supported carriers for FR are: - "la poste" (La Poste) *automatic + // status updates * - "colissimo" (Colissimo by La Poste) *automatic status + // updates* - "ups" (United Parcel Service) *automatic status updates * - + // "chronopost" (Chronopost by La Poste) - "gls" (General Logistics Systems + // France) - "dpd" (DPD Group by GeoPost) - "bpost" (Belgian Post Group) - + // "colis prive" (Colis Privé) - "boxtal" (Boxtal) - "geodis" (GEODIS) - + // "tnt" (TNT) - "db schenker" (DB Schenker) - "aramex" (Aramex) Carrier string `json:"carrier,omitempty"` - - // CreationDate: Date on which the shipment has been created, in ISO - // 8601 format. + // CreationDate: Date on which the shipment has been created, in ISO 8601 + // format. CreationDate string `json:"creationDate,omitempty"` - - // DeliveryDate: Date on which the shipment has been delivered, in ISO - // 8601 format. Present only if `status` is `delivered` + // DeliveryDate: Date on which the shipment has been delivered, in ISO 8601 + // format. Present only if `status` is `delivered` DeliveryDate string `json:"deliveryDate,omitempty"` - // Id: The ID of the shipment. Id string `json:"id,omitempty"` - // LineItems: The line items that are shipped. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` - - // ScheduledDeliveryDetails: Delivery details of the shipment if - // scheduling is needed. + // ScheduledDeliveryDetails: Delivery details of the shipment if scheduling is + // needed. ScheduledDeliveryDetails *OrderShipmentScheduledDeliveryDetails `json:"scheduledDeliveryDetails,omitempty"` - - // Status: The status of the shipment. Acceptable values are: - - // "delivered" - "readyForPickup" - "shipped" - "undeliverable" + // Status: The status of the shipment. Acceptable values are: - "delivered" - + // "readyForPickup" - "shipped" - "undeliverable" Status string `json:"status,omitempty"` - // TrackingId: The tracking ID for the shipment. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderShipment) MarshalJSON() ([]byte, error) { +func (s OrderShipment) MarshalJSON() ([]byte, error) { type NoMethod OrderShipment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderShipmentLineItemShipment struct { - // LineItemId: The ID of the line item that is shipped. This value is - // assigned by Google when an order is created. Either lineItemId or - // productId is required. + // LineItemId: The ID of the line item that is shipped. This value is assigned + // by Google when an order is created. Either lineItemId or productId is + // required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to ship. This is the REST ID used in - // the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to ship. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity that is shipped. Quantity int64 `json:"quantity,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderShipmentLineItemShipment) MarshalJSON() ([]byte, error) { +func (s OrderShipmentLineItemShipment) MarshalJSON() ([]byte, error) { type NoMethod OrderShipmentLineItemShipment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderShipmentScheduledDeliveryDetails struct { - // CarrierPhoneNumber: The phone number of the carrier fulfilling the - // delivery. The phone number is formatted as the international notation - // in ITU-T Recommendation E.123 (e.g., "+41 44 668 1800"). + // CarrierPhoneNumber: The phone number of the carrier fulfilling the delivery. + // The phone number is formatted as the international notation in ITU-T + // Recommendation E.123 (e.g., "+41 44 668 1800"). CarrierPhoneNumber string `json:"carrierPhoneNumber,omitempty"` - - // ScheduledDate: The date a shipment is scheduled for delivery, in ISO - // 8601 format. + // ScheduledDate: The date a shipment is scheduled for delivery, in ISO 8601 + // format. ScheduledDate string `json:"scheduledDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CarrierPhoneNumber") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CarrierPhoneNumber") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CarrierPhoneNumber") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CarrierPhoneNumber") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderShipmentScheduledDeliveryDetails) MarshalJSON() ([]byte, error) { +func (s OrderShipmentScheduledDeliveryDetails) MarshalJSON() ([]byte, error) { type NoMethod OrderShipmentScheduledDeliveryDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCreateChargeInvoiceRequest struct { // InvoiceId: [required] The ID of the invoice. InvoiceId string `json:"invoiceId,omitempty"` - // InvoiceSummary: [required] Invoice summary. InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"` - // LineItemInvoices: [required] Invoice details per line item. LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"` - // OperationId: [required] The ID of the operation, unique across all // operations for a given order. OperationId string `json:"operationId,omitempty"` - - // ShipmentGroupId: [required] ID of the shipment group. It is assigned - // by the merchant in the `shipLineItems` method and is used to group - // multiple line items that have the same kind of shipping charges. + // ShipmentGroupId: [required] ID of the shipment group. It is assigned by the + // merchant in the `shipLineItems` method and is used to group multiple line + // items that have the same kind of shipping charges. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` - // ForceSendFields is a list of field names (e.g. "InvoiceId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InvoiceId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InvoiceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCreateChargeInvoiceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCreateChargeInvoiceResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderinvoicesCreateChargeInvoiceResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderinvoicesCreateChargeInvoiceResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCreateChargeInvoiceResponse) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCreateChargeInvoiceResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCreateChargeInvoiceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCreateRefundInvoiceRequest struct { // InvoiceId: [required] The ID of the invoice. InvoiceId string `json:"invoiceId,omitempty"` - // OperationId: [required] The ID of the operation, unique across all // operations for a given order. OperationId string `json:"operationId,omitempty"` - - // RefundOnlyOption: Option to create a refund-only invoice. Exactly one - // of `refundOnlyOption` or `returnOption` must be provided. - RefundOnlyOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption `json:"refundOnlyOption,omitempty"` - - // ReturnOption: Option to create an invoice for a refund and mark all - // items within the invoice as returned. Exactly one of + // RefundOnlyOption: Option to create a refund-only invoice. Exactly one of // `refundOnlyOption` or `returnOption` must be provided. + RefundOnlyOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption `json:"refundOnlyOption,omitempty"` + // ReturnOption: Option to create an invoice for a refund and mark all items + // within the invoice as returned. Exactly one of `refundOnlyOption` or + // `returnOption` must be provided. ReturnOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption `json:"returnOption,omitempty"` - // ShipmentInvoices: Invoice details for different shipment groups. ShipmentInvoices []*ShipmentInvoice `json:"shipmentInvoices,omitempty"` - // ForceSendFields is a list of field names (e.g. "InvoiceId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InvoiceId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InvoiceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCreateRefundInvoiceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCreateRefundInvoiceResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderinvoicesCreateRefundInvoiceResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderinvoicesCreateRefundInvoiceResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCreateRefundInvoiceResponse) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCreateRefundInvoiceResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCreateRefundInvoiceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption struct { // Description: Optional description of the refund reason. Description string `json:"description,omitempty"` - // Reason: [required] Reason for the refund. Acceptable values are: - - // "adjustment" - "autoPostInternal" - - // "autoPostInvalidBillingAddress" - "autoPostNoInventory" - - // "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - - // "couponAbuse" - "courtesyAdjustment" - "customerCanceled" - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "customerSupportRequested" - "deliveredLateByCarrier" - - // "deliveredTooLate" - "expiredItem" - - // "failToPushOrderGoogleError" - "failToPushOrderMerchantError" - - // "failToPushOrderMerchantFulfillmentError" - - // "failToPushOrderToMerchant" - - // "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - - // "invalidCoupon" - "lateShipmentCredit" - - // "malformedShippingAddress" - "merchantDidNotShipOnTime" - - // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - - // "paymentDeclined" - "priceAdjustment" - "priceError" - - // "productArrivedDamaged" - "productNotAsDescribed" - - // "promoReallocation" - "qualityNotAsExpected" - - // "returnRefundAbuse" - "shippingCostAdjustment" - - // "shippingPriceError" - "taxAdjustment" - "taxError" - - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - - // "wrongProductShipped" + // "adjustment" - "autoPostInternal" - "autoPostInvalidBillingAddress" - + // "autoPostNoInventory" - "autoPostPriceError" - + // "autoPostUndeliverableShippingAddress" - "couponAbuse" - + // "courtesyAdjustment" - "customerCanceled" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "customerSupportRequested" - "deliveredLateByCarrier" - + // "deliveredTooLate" - "expiredItem" - "failToPushOrderGoogleError" - + // "failToPushOrderMerchantError" - + // "failToPushOrderMerchantFulfillmentError" - "failToPushOrderToMerchant" + // - "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - + // "invalidCoupon" - "lateShipmentCredit" - "malformedShippingAddress" - + // "merchantDidNotShipOnTime" - "noInventory" - "orderTimeout" - + // "other" - "paymentAbuse" - "paymentDeclined" - "priceAdjustment" - + // "priceError" - "productArrivedDamaged" - "productNotAsDescribed" - + // "promoReallocation" - "qualityNotAsExpected" - "returnRefundAbuse" - + // "shippingCostAdjustment" - "shippingPriceError" - "taxAdjustment" - + // "taxError" - "undeliverableShippingAddress" - + // "unsupportedPoBoxAddress" - "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption struct { // Description: Optional description of the return reason. Description string `json:"description,omitempty"` - // Reason: [required] Reason for the return. Acceptable values are: - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - - // "malformedShippingAddress" - "other" - "productArrivedDamaged" - // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" - + // "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderreportsListDisbursementsResponse struct { // Disbursements: The list of disbursements. Disbursements []*OrderReportDisbursement `json:"disbursements,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderreportsListDisbursementsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderreportsListDisbursementsResponse". Kind string `json:"kind,omitempty"` - // NextPageToken: The token for the retrieval of the next page of // disbursements. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Disbursements") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Disbursements") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Disbursements") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderreportsListDisbursementsResponse) MarshalJSON() ([]byte, error) { +func (s OrderreportsListDisbursementsResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderreportsListDisbursementsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderreportsListTransactionsResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderreportsListTransactionsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderreportsListTransactionsResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: The token for the retrieval of the next page of - // transactions. + // NextPageToken: The token for the retrieval of the next page of transactions. NextPageToken string `json:"nextPageToken,omitempty"` - // Transactions: The list of transactions. Transactions []*OrderReportTransaction `json:"transactions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderreportsListTransactionsResponse) MarshalJSON() ([]byte, error) { +func (s OrderreportsListTransactionsResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderreportsListTransactionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderreturnsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderreturnsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderreturnsListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of returns. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*MerchantOrderReturn `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // returns. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*MerchantOrderReturn `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderreturnsListResponse) MarshalJSON() ([]byte, error) { +func (s OrderreturnsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderreturnsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersAcknowledgeRequest struct { - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "OperationId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OperationId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OperationId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersAcknowledgeRequest) MarshalJSON() ([]byte, error) { +func (s OrdersAcknowledgeRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersAcknowledgeRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersAcknowledgeResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersAcknowledgeResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersAcknowledgeResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersAcknowledgeResponse) MarshalJSON() ([]byte, error) { +func (s OrdersAcknowledgeResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersAcknowledgeResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersAdvanceTestOrderResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersAdvanceTestOrderResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersAdvanceTestOrderResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersAdvanceTestOrderResponse) MarshalJSON() ([]byte, error) { +func (s OrdersAdvanceTestOrderResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersAdvanceTestOrderResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelLineItemRequest struct { // Amount: Deprecated. Please use amountPretax and amountTax instead. Amount *Price `json:"amount,omitempty"` - - // AmountPretax: Amount to refund for the cancelation. Optional. If not - // set, Google will calculate the default based on the price and tax of - // the items involved. The amount must not be larger than the net amount - // left on the order. + // AmountPretax: Amount to refund for the cancelation. Optional. If not set, + // Google will calculate the default based on the price and tax of the items + // involved. The amount must not be larger than the net amount left on the + // order. AmountPretax *Price `json:"amountPretax,omitempty"` - // AmountTax: Tax amount that corresponds to cancellation amount in // amountPretax. Optional, but if filled, then amountPretax must be set. // Calculated automatically if not provided. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to cancel. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to cancel. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to cancel. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the cancellation. Acceptable values are: - // "customerInitiatedCancel" - "invalidCoupon" - - // "malformedShippingAddress" - "noInventory" - "other" - - // "priceError" - "shippingPriceError" - "taxError" - - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" + // "malformedShippingAddress" - "noInventory" - "other" - "priceError" + // - "shippingPriceError" - "taxError" - "undeliverableShippingAddress" - + // "unsupportedPoBoxAddress" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelLineItemResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCancelLineItemResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCancelLineItemResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelLineItemResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCancelLineItemResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelLineItemResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelRequest struct { - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - // Reason: The reason for the cancellation. Acceptable values are: - // "customerInitiatedCancel" - "invalidCoupon" - - // "malformedShippingAddress" - "noInventory" - "other" - - // "priceError" - "shippingPriceError" - "taxError" - - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" + // "malformedShippingAddress" - "noInventory" - "other" - "priceError" + // - "shippingPriceError" - "taxError" - "undeliverableShippingAddress" - + // "unsupportedPoBoxAddress" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "OperationId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OperationId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OperationId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCancelRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCancelResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCancelResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCancelResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelTestOrderByCustomerRequest struct { // Reason: The reason for the cancellation. Acceptable values are: - // "changedMind" - "orderedWrongItem" - "other" Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Reason") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Reason") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Reason") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelTestOrderByCustomerRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCancelTestOrderByCustomerRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelTestOrderByCustomerRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelTestOrderByCustomerResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCancelTestOrderByCustomerResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCancelTestOrderByCustomerResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelTestOrderByCustomerResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCancelTestOrderByCustomerResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelTestOrderByCustomerResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCreateTestOrderRequest struct { - // Country: The CLDR territory code of the country of the test order to - // create. Affects the currency and addresses of orders created via - // `template_name`, or the addresses of orders created via `test_order`. - // Acceptable values are: - "US" - "FR" Defaults to `US`. + // Country: The CLDR territory code of the country of the test order to create. + // Affects the currency and addresses of orders created via `template_name`, or + // the addresses of orders created via `test_order`. Acceptable values are: - + // "US" - "FR" Defaults to `US`. Country string `json:"country,omitempty"` - - // TemplateName: The test order template to use. Specify as an - // alternative to `testOrder` as a shortcut for retrieving a template - // and then creating an order using that template. Acceptable values - // are: - "template1" - "template1a" - "template1b" - - // "template2" - "template3" + // TemplateName: The test order template to use. Specify as an alternative to + // `testOrder` as a shortcut for retrieving a template and then creating an + // order using that template. Acceptable values are: - "template1" - + // "template1a" - "template1b" - "template2" - "template3" TemplateName string `json:"templateName,omitempty"` - // TestOrder: The test order to create. TestOrder *TestOrder `json:"testOrder,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCreateTestOrderRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCreateTestOrderRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCreateTestOrderRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCreateTestOrderResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCreateTestOrderResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCreateTestOrderResponse". Kind string `json:"kind,omitempty"` - // OrderId: The ID of the newly created test order. OrderId string `json:"orderId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCreateTestOrderResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCreateTestOrderResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCreateTestOrderResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCreateTestReturnRequest struct { // Items: Returned items. Items []*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem `json:"items,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCreateTestReturnRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCreateTestReturnRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCreateTestReturnRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCreateTestReturnResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCreateTestReturnResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCreateTestReturnResponse". Kind string `json:"kind,omitempty"` - // ReturnId: The ID of the newly created test order return. ReturnId string `json:"returnId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCreateTestReturnResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCreateTestReturnResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCreateTestReturnResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*OrdersCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // Cancel: Required for `cancel` method. Cancel *OrdersCustomBatchRequestEntryCancel `json:"cancel,omitempty"` - // CancelLineItem: Required for `cancelLineItem` method. CancelLineItem *OrdersCustomBatchRequestEntryCancelLineItem `json:"cancelLineItem,omitempty"` - // InStoreRefundLineItem: Required for `inStoreReturnLineItem` method. InStoreRefundLineItem *OrdersCustomBatchRequestEntryInStoreRefundLineItem `json:"inStoreRefundLineItem,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // MerchantOrderId: The merchant order ID. Required for - // `updateMerchantOrderId` and `getByMerchantOrderId` methods. + // MerchantOrderId: The merchant order ID. Required for `updateMerchantOrderId` + // and `getByMerchantOrderId` methods. MerchantOrderId string `json:"merchantOrderId,omitempty"` - // Method: The method of the batch entry. Acceptable values are: - // "acknowledge" - "cancel" - "cancelLineItem" - "get" - // "getByMerchantOrderId" - "inStoreRefundLineItem" - "refund" - - // "rejectReturnLineItem" - "returnLineItem" - - // "returnRefundLineItem" - "setLineItemMetadata" - - // "shipLineItems" - "updateLineItemShippingDetails" - - // "updateMerchantOrderId" - "updateShipment" + // "rejectReturnLineItem" - "returnLineItem" - "returnRefundLineItem" - + // "setLineItemMetadata" - "shipLineItems" - + // "updateLineItemShippingDetails" - "updateMerchantOrderId" - + // "updateShipment" Method string `json:"method,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. Required for all methods beside `get` and + // OperationId: The ID of the operation. Unique across all operations for a + // given order. Required for all methods beside `get` and // `getByMerchantOrderId`. OperationId string `json:"operationId,omitempty"` - // OrderId: The ID of the order. Required for all methods beside // `getByMerchantOrderId`. OrderId string `json:"orderId,omitempty"` - // Refund: Required for `refund` method. Refund *OrdersCustomBatchRequestEntryRefund `json:"refund,omitempty"` - // RejectReturnLineItem: Required for `rejectReturnLineItem` method. RejectReturnLineItem *OrdersCustomBatchRequestEntryRejectReturnLineItem `json:"rejectReturnLineItem,omitempty"` - // ReturnLineItem: Required for `returnLineItem` method. ReturnLineItem *OrdersCustomBatchRequestEntryReturnLineItem `json:"returnLineItem,omitempty"` - // ReturnRefundLineItem: Required for `returnRefundLineItem` method. ReturnRefundLineItem *OrdersCustomBatchRequestEntryReturnRefundLineItem `json:"returnRefundLineItem,omitempty"` - // SetLineItemMetadata: Required for `setLineItemMetadata` method. SetLineItemMetadata *OrdersCustomBatchRequestEntrySetLineItemMetadata `json:"setLineItemMetadata,omitempty"` - // ShipLineItems: Required for `shipLineItems` method. ShipLineItems *OrdersCustomBatchRequestEntryShipLineItems `json:"shipLineItems,omitempty"` - - // UpdateLineItemShippingDetails: Required for - // `updateLineItemShippingDate` method. + // UpdateLineItemShippingDetails: Required for `updateLineItemShippingDate` + // method. UpdateLineItemShippingDetails *OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails `json:"updateLineItemShippingDetails,omitempty"` - // UpdateShipment: Required for `updateShipment` method. UpdateShipment *OrdersCustomBatchRequestEntryUpdateShipment `json:"updateShipment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryCancel struct { // Reason: The reason for the cancellation. Acceptable values are: - // "customerInitiatedCancel" - "invalidCoupon" - - // "malformedShippingAddress" - "noInventory" - "other" - - // "priceError" - "shippingPriceError" - "taxError" - - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" + // "malformedShippingAddress" - "noInventory" - "other" - "priceError" + // - "shippingPriceError" - "taxError" - "undeliverableShippingAddress" - + // "unsupportedPoBoxAddress" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Reason") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Reason") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Reason") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryCancel) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryCancel) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryCancel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryCancelLineItem struct { // Amount: Deprecated. Please use amountPretax and amountTax instead. Amount *Price `json:"amount,omitempty"` - - // AmountPretax: Amount to refund for the cancelation. Optional. If not - // set, Google will calculate the default based on the price and tax of - // the items involved. The amount must not be larger than the net amount - // left on the order. + // AmountPretax: Amount to refund for the cancelation. Optional. If not set, + // Google will calculate the default based on the price and tax of the items + // involved. The amount must not be larger than the net amount left on the + // order. AmountPretax *Price `json:"amountPretax,omitempty"` - // AmountTax: Tax amount that corresponds to cancellation amount in // amountPretax. Optional, but if filled, then amountPretax must be set. // Calculated automatically if not provided. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to cancel. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to cancel. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to cancel. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the cancellation. Acceptable values are: - // "customerInitiatedCancel" - "invalidCoupon" - - // "malformedShippingAddress" - "noInventory" - "other" - - // "priceError" - "shippingPriceError" - "taxError" - - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" + // "malformedShippingAddress" - "noInventory" - "other" - "priceError" + // - "shippingPriceError" - "taxError" - "undeliverableShippingAddress" - + // "unsupportedPoBoxAddress" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryCancelLineItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryCancelLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryCancelLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem struct { // LineItemId: The ID of the line item to return. LineItemId string `json:"lineItemId,omitempty"` - // Quantity: Quantity that is returned. Quantity int64 `json:"quantity,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryCreateTestReturnReturnItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryCreateTestReturnReturnItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryCreateTestReturnReturnItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryInStoreRefundLineItem struct { // AmountPretax: The amount that is refunded. Required. AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that correspond to refund amount in - // amountPretax. Required. + // AmountTax: Tax amount that correspond to refund amount in amountPretax. + // Required. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Acceptable values are: - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - - // "malformedShippingAddress" - "other" - "productArrivedDamaged" - // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" - + // "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "AmountPretax") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AmountPretax") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AmountPretax") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryInStoreRefundLineItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryInStoreRefundLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryInStoreRefundLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryRefund struct { // Amount: Deprecated. Please use amountPretax and amountTax instead. Amount *Price `json:"amount,omitempty"` - - // AmountPretax: The amount that is refunded. Either amount or - // amountPretax should be filled. + // AmountPretax: The amount that is refunded. Either amount or amountPretax + // should be filled. AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that corresponds to refund amount in - // amountPretax. Optional, but if filled, amountPretax must be set. - // Calculated automatically if not provided. + // AmountTax: Tax amount that corresponds to refund amount in amountPretax. + // Optional, but if filled, amountPretax must be set. Calculated automatically + // if not provided. AmountTax *Price `json:"amountTax,omitempty"` - - // Reason: The reason for the refund. Acceptable values are: - - // "adjustment" - "courtesyAdjustment" - "customerCanceled" - + // Reason: The reason for the refund. Acceptable values are: - "adjustment" - + // "courtesyAdjustment" - "customerCanceled" - // "customerDiscretionaryReturn" - "deliveredLateByCarrier" - - // "feeAdjustment" - "lateShipmentCredit" - "noInventory" - - // "other" - "priceError" - "productArrivedDamaged" - - // "productNotAsDescribed" - "shippingCostAdjustment" - - // "taxAdjustment" - "undeliverableShippingAddress" - - // "wrongProductShipped" + // "feeAdjustment" - "lateShipmentCredit" - "noInventory" - "other" - + // "priceError" - "productArrivedDamaged" - "productNotAsDescribed" - + // "shippingCostAdjustment" - "taxAdjustment" - + // "undeliverableShippingAddress" - "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryRefund) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryRefund) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryRefund - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryRejectReturnLineItem struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Acceptable values are: - - // "damagedOrUsed" - "missingComponent" - "notEligible" - - // "other" - "outOfReturnWindow" + // "damagedOrUsed" - "missingComponent" - "notEligible" - "other" - + // "outOfReturnWindow" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryRejectReturnLineItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryRejectReturnLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryRejectReturnLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryReturnLineItem struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Acceptable values are: - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - - // "malformedShippingAddress" - "other" - "productArrivedDamaged" - // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" - + // "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryReturnLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryReturnRefundLineItem struct { - // AmountPretax: The amount that is refunded. If omitted, refundless - // return is assumed (same as calling returnLineItem method). + // AmountPretax: The amount that is refunded. If omitted, refundless return is + // assumed (same as calling returnLineItem method). AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that corresponds to refund amount in - // amountPretax. Optional, but if filled, then amountPretax must be set. - // Calculated automatically if not provided. + // AmountTax: Tax amount that corresponds to refund amount in amountPretax. + // Optional, but if filled, then amountPretax must be set. Calculated + // automatically if not provided. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Acceptable values are: - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - - // "malformedShippingAddress" - "other" - "productArrivedDamaged" - // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" - + // "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "AmountPretax") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AmountPretax") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AmountPretax") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryReturnRefundLineItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryReturnRefundLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryReturnRefundLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntrySetLineItemMetadata struct { Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"` - - // LineItemId: The ID of the line item to set metadata. Either - // lineItemId or productId is required. + // LineItemId: The ID of the line item to set metadata. Either lineItemId or + // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to set metadata. This is the REST ID - // used in the products service. Either lineItemId or productId is - // required. + // ProductId: The ID of the product to set metadata. This is the REST ID used + // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntrySetLineItemMetadata) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntrySetLineItemMetadata) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntrySetLineItemMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryShipLineItems struct { - // Carrier: Deprecated. Please use shipmentInfo instead. The carrier - // handling the shipment. See `shipments[].carrier` in the Orders - // resource representation for a list of acceptable values. + // Carrier: Deprecated. Please use shipmentInfo instead. The carrier handling + // the shipment. See `shipments[].carrier` in the Orders resource + // representation for a list of acceptable values. Carrier string `json:"carrier,omitempty"` - // LineItems: Line items to ship. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` - - // ShipmentGroupId: ID of the shipment group. Required for orders that - // use the orderinvoices service. + // ShipmentGroupId: ID of the shipment group. Required for orders that use the + // orderinvoices service. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` - - // ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of - // the shipment. + // ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of the + // shipment. ShipmentId string `json:"shipmentId,omitempty"` - - // ShipmentInfos: Shipment information. This field is repeated because a - // single line item can be shipped in several packages (and have several - // tracking IDs). + // ShipmentInfos: Shipment information. This field is repeated because a single + // line item can be shipped in several packages (and have several tracking + // IDs). ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"` - - // TrackingId: Deprecated. Please use shipmentInfo instead. The tracking - // ID for the shipment. + // TrackingId: Deprecated. Please use shipmentInfo instead. The tracking ID for + // the shipment. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryShipLineItems - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct { - // Carrier: The carrier handling the shipment. See `shipments[].carrier` - // in the Orders resource representation for a list of acceptable - // values. + // Carrier: The carrier handling the shipment. See `shipments[].carrier` in the + // Orders resource representation for a list of acceptable values. Carrier string `json:"carrier,omitempty"` - // ShipmentId: Required. The ID of the shipment. This is assigned by the // merchant and is unique to each shipment. ShipmentId string `json:"shipmentId,omitempty"` - // TrackingId: The tracking ID for the shipment. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails struct { // DeliverByDate: Updated delivery by date, in ISO 8601 format. If not - // specified only ship by date is updated. Provided date should be - // within 1 year timeframe and can not be a date in the past. + // specified only ship by date is updated. Provided date should be within 1 + // year timeframe and can not be a date in the past. DeliverByDate string `json:"deliverByDate,omitempty"` - - // LineItemId: The ID of the line item to set metadata. Either - // lineItemId or productId is required. + // LineItemId: The ID of the line item to set metadata. Either lineItemId or + // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to set metadata. This is the REST ID - // used in the products service. Either lineItemId or productId is - // required. + // ProductId: The ID of the product to set metadata. This is the REST ID used + // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - - // ShipByDate: Updated ship by date, in ISO 8601 format. If not - // specified only deliver by date is updated. Provided date should be - // within 1 year timeframe and can not be a date in the past. + // ShipByDate: Updated ship by date, in ISO 8601 format. If not specified only + // deliver by date is updated. Provided date should be within 1 year timeframe + // and can not be a date in the past. ShipByDate string `json:"shipByDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliverByDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliverByDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliverByDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryUpdateShipment struct { - // Carrier: The carrier handling the shipment. Not updated if missing. - // See `shipments[].carrier` in the Orders resource representation for a - // list of acceptable values. + // Carrier: The carrier handling the shipment. Not updated if missing. See + // `shipments[].carrier` in the Orders resource representation for a list of + // acceptable values. Carrier string `json:"carrier,omitempty"` - - // DeliveryDate: Date on which the shipment has been delivered, in ISO - // 8601 format. Optional and can be provided only if `status` is - // `delivered`. + // DeliveryDate: Date on which the shipment has been delivered, in ISO 8601 + // format. Optional and can be provided only if `status` is `delivered`. DeliveryDate string `json:"deliveryDate,omitempty"` - // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` - - // Status: New status for the shipment. Not updated if missing. - // Acceptable values are: - "delivered" - "undeliverable" - - // "readyForPickup" + // Status: New status for the shipment. Not updated if missing. Acceptable + // values are: - "delivered" - "undeliverable" - "readyForPickup" Status string `json:"status,omitempty"` - // TrackingId: The tracking ID for the shipment. Not updated if missing. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryUpdateShipment) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryUpdateShipment) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryUpdateShipment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*OrdersCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` - // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` - - // ExecutionStatus: The status of the execution. Only defined if 1. the - // request was successful; and 2. the method is not `get`, - // `getByMerchantOrderId`, or one of the test methods. Acceptable values - // are: - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Only defined if 1. the request + // was successful; and 2. the method is not `get`, `getByMerchantOrderId`, or + // one of the test methods. Acceptable values are: - "duplicate" - + // "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCustomBatchResponseEntry" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` - - // Order: The retrieved order. Only defined if the method is `get` and - // if the request was successful. + // Order: The retrieved order. Only defined if the method is `get` and if the + // request was successful. Order *Order `json:"order,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersGetByMerchantOrderIdResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersGetByMerchantOrderIdResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersGetByMerchantOrderIdResponse". Kind string `json:"kind,omitempty"` - // Order: The requested order. Order *Order `json:"order,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersGetByMerchantOrderIdResponse) MarshalJSON() ([]byte, error) { +func (s OrdersGetByMerchantOrderIdResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersGetByMerchantOrderIdResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersGetTestOrderTemplateResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersGetTestOrderTemplateResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersGetTestOrderTemplateResponse". Kind string `json:"kind,omitempty"` - // Template: The requested test order template. Template *TestOrder `json:"template,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersGetTestOrderTemplateResponse) MarshalJSON() ([]byte, error) { +func (s OrdersGetTestOrderTemplateResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersGetTestOrderTemplateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersInStoreRefundLineItemRequest struct { // AmountPretax: The amount that is refunded. Required. AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that correspond to refund amount in - // amountPretax. Required. + // AmountTax: Tax amount that correspond to refund amount in amountPretax. + // Required. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Acceptable values are: - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - - // "malformedShippingAddress" - "other" - "productArrivedDamaged" - // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" - + // "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "AmountPretax") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AmountPretax") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AmountPretax") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersInStoreRefundLineItemRequest) MarshalJSON() ([]byte, error) { +func (s OrdersInStoreRefundLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersInStoreRefundLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersInStoreRefundLineItemResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersInStoreRefundLineItemResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersInStoreRefundLineItemResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersInStoreRefundLineItemResponse) MarshalJSON() ([]byte, error) { +func (s OrdersInStoreRefundLineItemResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersInStoreRefundLineItemResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of orders. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*Order `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // orders. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*Order `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersListResponse) MarshalJSON() ([]byte, error) { +func (s OrdersListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersRefundRequest struct { // Amount: Deprecated. Please use amountPretax and amountTax instead. Amount *Price `json:"amount,omitempty"` - - // AmountPretax: The amount that is refunded. Either amount or - // amountPretax should be filled. + // AmountPretax: The amount that is refunded. Either amount or amountPretax + // should be filled. AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that corresponds to refund amount in - // amountPretax. Optional, but if filled, amountPretax must be set. - // Calculated automatically if not provided. + // AmountTax: Tax amount that corresponds to refund amount in amountPretax. + // Optional, but if filled, amountPretax must be set. Calculated automatically + // if not provided. AmountTax *Price `json:"amountTax,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // Reason: The reason for the refund. Acceptable values are: - - // "adjustment" - "courtesyAdjustment" - "customerCanceled" - + // Reason: The reason for the refund. Acceptable values are: - "adjustment" - + // "courtesyAdjustment" - "customerCanceled" - // "customerDiscretionaryReturn" - "deliveredLateByCarrier" - - // "feeAdjustment" - "lateShipmentCredit" - "noInventory" - - // "other" - "priceError" - "productArrivedDamaged" - - // "productNotAsDescribed" - "shippingCostAdjustment" - - // "taxAdjustment" - "undeliverableShippingAddress" - - // "wrongProductShipped" + // "feeAdjustment" - "lateShipmentCredit" - "noInventory" - "other" - + // "priceError" - "productArrivedDamaged" - "productNotAsDescribed" - + // "shippingCostAdjustment" - "taxAdjustment" - + // "undeliverableShippingAddress" - "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersRefundRequest) MarshalJSON() ([]byte, error) { +func (s OrdersRefundRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersRefundRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersRefundResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersRefundResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersRefundResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersRefundResponse) MarshalJSON() ([]byte, error) { +func (s OrdersRefundResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersRefundResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersRejectReturnLineItemRequest struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Acceptable values are: - - // "damagedOrUsed" - "missingComponent" - "notEligible" - - // "other" - "outOfReturnWindow" + // "damagedOrUsed" - "missingComponent" - "notEligible" - "other" - + // "outOfReturnWindow" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersRejectReturnLineItemRequest) MarshalJSON() ([]byte, error) { +func (s OrdersRejectReturnLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersRejectReturnLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersRejectReturnLineItemResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersRejectReturnLineItemResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersRejectReturnLineItemResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersRejectReturnLineItemResponse) MarshalJSON() ([]byte, error) { +func (s OrdersRejectReturnLineItemResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersRejectReturnLineItemResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersReturnLineItemRequest struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Acceptable values are: - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - - // "malformedShippingAddress" - "other" - "productArrivedDamaged" - // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" - + // "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersReturnLineItemRequest) MarshalJSON() ([]byte, error) { +func (s OrdersReturnLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersReturnLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersReturnLineItemResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersReturnLineItemResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersReturnLineItemResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersReturnLineItemResponse) MarshalJSON() ([]byte, error) { +func (s OrdersReturnLineItemResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersReturnLineItemResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersReturnRefundLineItemRequest struct { - // AmountPretax: The amount that is refunded. If omitted, refundless - // return is assumed (same as calling returnLineItem method). + // AmountPretax: The amount that is refunded. If omitted, refundless return is + // assumed (same as calling returnLineItem method). AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that corresponds to refund amount in - // amountPretax. Optional, but if filled, then amountPretax must be set. - // Calculated automatically if not provided. + // AmountTax: Tax amount that corresponds to refund amount in amountPretax. + // Optional, but if filled, then amountPretax must be set. Calculated + // automatically if not provided. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity is required. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Acceptable values are: - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - - // "malformedShippingAddress" - "other" - "productArrivedDamaged" - // - "productNotAsDescribed" - "qualityNotAsExpected" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "deliveredTooLate" - "expiredItem" - "invalidCoupon" - + // "malformedShippingAddress" - "other" - "productArrivedDamaged" - + // "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "AmountPretax") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AmountPretax") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AmountPretax") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersReturnRefundLineItemRequest) MarshalJSON() ([]byte, error) { +func (s OrdersReturnRefundLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersReturnRefundLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersReturnRefundLineItemResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersReturnRefundLineItemResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersReturnRefundLineItemResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersReturnRefundLineItemResponse) MarshalJSON() ([]byte, error) { +func (s OrdersReturnRefundLineItemResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersReturnRefundLineItemResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersSetLineItemMetadataRequest struct { Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"` - - // LineItemId: The ID of the line item to set metadata. Either - // lineItemId or productId is required. + // LineItemId: The ID of the line item to set metadata. Either lineItemId or + // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to set metadata. This is the REST ID - // used in the products service. Either lineItemId or productId is - // required. + // ProductId: The ID of the product to set metadata. This is the REST ID used + // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersSetLineItemMetadataRequest) MarshalJSON() ([]byte, error) { +func (s OrdersSetLineItemMetadataRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersSetLineItemMetadataRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersSetLineItemMetadataResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersSetLineItemMetadataResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersSetLineItemMetadataResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersSetLineItemMetadataResponse) MarshalJSON() ([]byte, error) { +func (s OrdersSetLineItemMetadataResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersSetLineItemMetadataResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersShipLineItemsRequest struct { - // Carrier: Deprecated. Please use shipmentInfo instead. The carrier - // handling the shipment. See `shipments[].carrier` in the Orders - // resource representation for a list of acceptable values. + // Carrier: Deprecated. Please use shipmentInfo instead. The carrier handling + // the shipment. See `shipments[].carrier` in the Orders resource + // representation for a list of acceptable values. Carrier string `json:"carrier,omitempty"` - // LineItems: Line items to ship. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ShipmentGroupId: ID of the shipment group. Required for orders that - // use the orderinvoices service. + // ShipmentGroupId: ID of the shipment group. Required for orders that use the + // orderinvoices service. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` - - // ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of - // the shipment. + // ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of the + // shipment. ShipmentId string `json:"shipmentId,omitempty"` - - // ShipmentInfos: Shipment information. This field is repeated because a - // single line item can be shipped in several packages (and have several - // tracking IDs). + // ShipmentInfos: Shipment information. This field is repeated because a single + // line item can be shipped in several packages (and have several tracking + // IDs). ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"` - - // TrackingId: Deprecated. Please use shipmentInfo instead. The tracking - // ID for the shipment. + // TrackingId: Deprecated. Please use shipmentInfo instead. The tracking ID for + // the shipment. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersShipLineItemsRequest) MarshalJSON() ([]byte, error) { +func (s OrdersShipLineItemsRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersShipLineItemsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersShipLineItemsResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersShipLineItemsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersShipLineItemsResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersShipLineItemsResponse) MarshalJSON() ([]byte, error) { +func (s OrdersShipLineItemsResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersShipLineItemsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateLineItemShippingDetailsRequest struct { // DeliverByDate: Updated delivery by date, in ISO 8601 format. If not - // specified only ship by date is updated. Provided date should be - // within 1 year timeframe and can not be a date in the past. + // specified only ship by date is updated. Provided date should be within 1 + // year timeframe and can not be a date in the past. DeliverByDate string `json:"deliverByDate,omitempty"` - - // LineItemId: The ID of the line item to set metadata. Either - // lineItemId or productId is required. + // LineItemId: The ID of the line item to set metadata. Either lineItemId or + // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to set metadata. This is the REST ID - // used in the products service. Either lineItemId or productId is - // required. + // ProductId: The ID of the product to set metadata. This is the REST ID used + // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - - // ShipByDate: Updated ship by date, in ISO 8601 format. If not - // specified only deliver by date is updated. Provided date should be - // within 1 year timeframe and can not be a date in the past. + // ShipByDate: Updated ship by date, in ISO 8601 format. If not specified only + // deliver by date is updated. Provided date should be within 1 year timeframe + // and can not be a date in the past. ShipByDate string `json:"shipByDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliverByDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliverByDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliverByDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateLineItemShippingDetailsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateLineItemShippingDetailsResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersUpdateLineItemShippingDetailsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersUpdateLineItemShippingDetailsResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateLineItemShippingDetailsResponse) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateLineItemShippingDetailsResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateLineItemShippingDetailsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateMerchantOrderIdRequest struct { - // MerchantOrderId: The merchant order id to be assigned to the order. - // Must be unique per merchant. + // MerchantOrderId: The merchant order id to be assigned to the order. Must be + // unique per merchant. MerchantOrderId string `json:"merchantOrderId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "MerchantOrderId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MerchantOrderId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MerchantOrderId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateMerchantOrderIdRequest) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateMerchantOrderIdRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateMerchantOrderIdRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateMerchantOrderIdResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersUpdateMerchantOrderIdResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersUpdateMerchantOrderIdResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateMerchantOrderIdResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateShipmentRequest struct { - // Carrier: The carrier handling the shipment. Not updated if missing. - // See `shipments[].carrier` in the Orders resource representation for a - // list of acceptable values. + // Carrier: The carrier handling the shipment. Not updated if missing. See + // `shipments[].carrier` in the Orders resource representation for a list of + // acceptable values. Carrier string `json:"carrier,omitempty"` - - // DeliveryDate: Date on which the shipment has been delivered, in ISO - // 8601 format. Optional and can be provided only if `status` is - // `delivered`. + // DeliveryDate: Date on which the shipment has been delivered, in ISO 8601 + // format. Optional and can be provided only if `status` is `delivered`. DeliveryDate string `json:"deliveryDate,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` - - // Status: New status for the shipment. Not updated if missing. - // Acceptable values are: - "delivered" - "undeliverable" - - // "readyForPickup" + // Status: New status for the shipment. Not updated if missing. Acceptable + // values are: - "delivered" - "undeliverable" - "readyForPickup" Status string `json:"status,omitempty"` - // TrackingId: The tracking ID for the shipment. Not updated if missing. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateShipmentRequest) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateShipmentRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateShipmentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateShipmentResponse struct { - // ExecutionStatus: The status of the execution. Acceptable values are: - // - "duplicate" - "executed" + // ExecutionStatus: The status of the execution. Acceptable values are: - + // "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersUpdateShipmentResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersUpdateShipmentResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateShipmentResponse) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateShipmentResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateShipmentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PickupCarrierService struct { - // CarrierName: The name of the pickup carrier (e.g., "UPS"). - // Required. + // CarrierName: The name of the pickup carrier (e.g., "UPS"). Required. CarrierName string `json:"carrierName,omitempty"` - // ServiceName: The name of the pickup service (e.g., "Access point"). // Required. ServiceName string `json:"serviceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "CarrierName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CarrierName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CarrierName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PickupCarrierService) MarshalJSON() ([]byte, error) { +func (s PickupCarrierService) MarshalJSON() ([]byte, error) { type NoMethod PickupCarrierService - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PickupServicesPickupService struct { // CarrierName: The name of the carrier (e.g., "UPS"). Always present. CarrierName string `json:"carrierName,omitempty"` - - // Country: The CLDR country code of the carrier (e.g., "US"). Always - // present. + // Country: The CLDR country code of the carrier (e.g., "US"). Always present. Country string `json:"country,omitempty"` - - // ServiceName: The name of the pickup service (e.g., "Access point"). - // Always present. + // ServiceName: The name of the pickup service (e.g., "Access point"). Always + // present. ServiceName string `json:"serviceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "CarrierName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CarrierName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CarrierName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PickupServicesPickupService) MarshalJSON() ([]byte, error) { +func (s PickupServicesPickupService) MarshalJSON() ([]byte, error) { type NoMethod PickupServicesPickupService - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*PosCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s PosCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod PosCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - - // Inventory: The inventory to submit. This should be set only if the - // method is `inventory`. + // Inventory: The inventory to submit. This should be set only if the method is + // `inventory`. Inventory *PosInventory `json:"inventory,omitempty"` - // MerchantId: The ID of the POS data provider. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // Method: The method of the batch entry. Acceptable values are: - - // "delete" - "get" - "insert" - "inventory" - "sale" + // Method: The method of the batch entry. Acceptable values are: - "delete" - + // "get" - "insert" - "inventory" - "sale" Method string `json:"method,omitempty"` - - // Sale: The sale information to submit. This should be set only if the - // method is `sale`. + // Sale: The sale information to submit. This should be set only if the method + // is `sale`. Sale *PosSale `json:"sale,omitempty"` - - // Store: The store information to submit. This should be set only if - // the method is `insert`. + // Store: The store information to submit. This should be set only if the + // method is `insert`. Store *PosStore `json:"store,omitempty"` - - // StoreCode: The store code. This should be set only if the method is - // `delete` or `get`. + // StoreCode: The store code. This should be set only if the method is `delete` + // or `get`. StoreCode string `json:"storeCode,omitempty"` - // TargetMerchantId: The ID of the account for which to get/submit data. TargetMerchantId uint64 `json:"targetMerchantId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s PosCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod PosCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*PosCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#posCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#posCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s PosCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod PosCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosCustomBatchResponseEntry struct { // BatchId: The ID of the request entry to which this entry responds. BatchId int64 `json:"batchId,omitempty"` - // Errors: A list of errors defined if, and only if, the request failed. Errors *Errors `json:"errors,omitempty"` - // Inventory: The updated inventory information. Inventory *PosInventory `json:"inventory,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#posCustomBatchResponseEntry" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#posCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` - // Sale: The updated sale information. Sale *PosSale `json:"sale,omitempty"` - // Store: The retrieved or updated store information. Store *PosStore `json:"store,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s PosCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod PosCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosDataProviders struct { // Country: Country code. Country string `json:"country,omitempty"` - // PosDataProviders: A list of POS data providers. PosDataProviders []*PosDataProvidersPosDataProvider `json:"posDataProviders,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosDataProviders) MarshalJSON() ([]byte, error) { +func (s PosDataProviders) MarshalJSON() ([]byte, error) { type NoMethod PosDataProviders - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosDataProvidersPosDataProvider struct { // DisplayName: The display name of Pos data Provider. DisplayName string `json:"displayName,omitempty"` - // FullName: The full name of this POS data Provider. FullName string `json:"fullName,omitempty"` - // ProviderId: The ID of the account. ProviderId uint64 `json:"providerId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosDataProvidersPosDataProvider) MarshalJSON() ([]byte, error) { +func (s PosDataProvidersPosDataProvider) MarshalJSON() ([]byte, error) { type NoMethod PosDataProvidersPosDataProvider - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PosInventory: The absolute quantity of an item available at the given -// store. +// PosInventory: The absolute quantity of an item available at the given store. type PosInventory struct { - // ContentLanguage: Required. The two-letter ISO 639-1 language code for - // the item. + // ContentLanguage: Required. The two-letter ISO 639-1 language code for the + // item. ContentLanguage string `json:"contentLanguage,omitempty"` - // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` - // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#posInventory" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#posInventory" Kind string `json:"kind,omitempty"` - // Price: Required. The current price of the item. Price *Price `json:"price,omitempty"` - // Quantity: Required. The available quantity of the item. Quantity int64 `json:"quantity,omitempty,string"` - // StoreCode: Required. The identifier of the merchant's store. Either a - // `storeCode` inserted via the API or the code of the store in Google - // My Business. + // `storeCode` inserted via the API or the code of the store in Google My + // Business. StoreCode string `json:"storeCode,omitempty"` - // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` - // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentLanguage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentLanguage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosInventory) MarshalJSON() ([]byte, error) { +func (s PosInventory) MarshalJSON() ([]byte, error) { type NoMethod PosInventory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosInventoryRequest struct { - // ContentLanguage: Required. The two-letter ISO 639-1 language code for - // the item. + // ContentLanguage: Required. The two-letter ISO 639-1 language code for the + // item. ContentLanguage string `json:"contentLanguage,omitempty"` - // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` - // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` - // Price: Required. The current price of the item. Price *Price `json:"price,omitempty"` - // Quantity: Required. The available quantity of the item. Quantity int64 `json:"quantity,omitempty,string"` - // StoreCode: Required. The identifier of the merchant's store. Either a - // `storeCode` inserted via the API or the code of the store in Google - // My Business. + // `storeCode` inserted via the API or the code of the store in Google My + // Business. StoreCode string `json:"storeCode,omitempty"` - // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` - // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentLanguage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentLanguage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosInventoryRequest) MarshalJSON() ([]byte, error) { +func (s PosInventoryRequest) MarshalJSON() ([]byte, error) { type NoMethod PosInventoryRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosInventoryResponse struct { - // ContentLanguage: Required. The two-letter ISO 639-1 language code for - // the item. + // ContentLanguage: Required. The two-letter ISO 639-1 language code for the + // item. ContentLanguage string `json:"contentLanguage,omitempty"` - // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` - // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#posInventoryResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#posInventoryResponse". Kind string `json:"kind,omitempty"` - // Price: Required. The current price of the item. Price *Price `json:"price,omitempty"` - // Quantity: Required. The available quantity of the item. Quantity int64 `json:"quantity,omitempty,string"` - // StoreCode: Required. The identifier of the merchant's store. Either a - // `storeCode` inserted via the API or the code of the store in Google - // My Business. + // `storeCode` inserted via the API or the code of the store in Google My + // Business. StoreCode string `json:"storeCode,omitempty"` - // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` - // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ContentLanguage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentLanguage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosInventoryResponse) MarshalJSON() ([]byte, error) { +func (s PosInventoryResponse) MarshalJSON() ([]byte, error) { type NoMethod PosInventoryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#posListResponse". - Kind string `json:"kind,omitempty"` - + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#posListResponse". + Kind string `json:"kind,omitempty"` Resources []*PosStore `json:"resources,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosListResponse) MarshalJSON() ([]byte, error) { +func (s PosListResponse) MarshalJSON() ([]byte, error) { type NoMethod PosListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PosSale: The change of the available quantity of an item at the given -// store. +// PosSale: The change of the available quantity of an item at the given store. type PosSale struct { - // ContentLanguage: Required. The two-letter ISO 639-1 language code for - // the item. + // ContentLanguage: Required. The two-letter ISO 639-1 language code for the + // item. ContentLanguage string `json:"contentLanguage,omitempty"` - // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` - // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#posSale" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#posSale" Kind string `json:"kind,omitempty"` - // Price: Required. The price of the item. Price *Price `json:"price,omitempty"` - - // Quantity: Required. The relative change of the available quantity. - // Negative for items returned. + // Quantity: Required. The relative change of the available quantity. Negative + // for items returned. Quantity int64 `json:"quantity,omitempty,string"` - // SaleId: A unique ID to group items from the same sale event. SaleId string `json:"saleId,omitempty"` - // StoreCode: Required. The identifier of the merchant's store. Either a - // `storeCode` inserted via the API or the code of the store in Google - // My Business. + // `storeCode` inserted via the API or the code of the store in Google My + // Business. StoreCode string `json:"storeCode,omitempty"` - // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` - // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentLanguage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentLanguage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosSale) MarshalJSON() ([]byte, error) { +func (s PosSale) MarshalJSON() ([]byte, error) { type NoMethod PosSale - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosSaleRequest struct { - // ContentLanguage: Required. The two-letter ISO 639-1 language code for - // the item. + // ContentLanguage: Required. The two-letter ISO 639-1 language code for the + // item. ContentLanguage string `json:"contentLanguage,omitempty"` - // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` - // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` - // Price: Required. The price of the item. Price *Price `json:"price,omitempty"` - - // Quantity: Required. The relative change of the available quantity. - // Negative for items returned. + // Quantity: Required. The relative change of the available quantity. Negative + // for items returned. Quantity int64 `json:"quantity,omitempty,string"` - // SaleId: A unique ID to group items from the same sale event. SaleId string `json:"saleId,omitempty"` - // StoreCode: Required. The identifier of the merchant's store. Either a - // `storeCode` inserted via the API or the code of the store in Google - // My Business. + // `storeCode` inserted via the API or the code of the store in Google My + // Business. StoreCode string `json:"storeCode,omitempty"` - // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` - // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentLanguage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentLanguage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosSaleRequest) MarshalJSON() ([]byte, error) { +func (s PosSaleRequest) MarshalJSON() ([]byte, error) { type NoMethod PosSaleRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PosSaleResponse struct { - // ContentLanguage: Required. The two-letter ISO 639-1 language code for - // the item. + // ContentLanguage: Required. The two-letter ISO 639-1 language code for the + // item. ContentLanguage string `json:"contentLanguage,omitempty"` - // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` - // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#posSaleResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#posSaleResponse". Kind string `json:"kind,omitempty"` - // Price: Required. The price of the item. Price *Price `json:"price,omitempty"` - - // Quantity: Required. The relative change of the available quantity. - // Negative for items returned. + // Quantity: Required. The relative change of the available quantity. Negative + // for items returned. Quantity int64 `json:"quantity,omitempty,string"` - // SaleId: A unique ID to group items from the same sale event. SaleId string `json:"saleId,omitempty"` - // StoreCode: Required. The identifier of the merchant's store. Either a - // `storeCode` inserted via the API or the code of the store in Google - // My Business. + // `storeCode` inserted via the API or the code of the store in Google My + // Business. StoreCode string `json:"storeCode,omitempty"` - // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` - // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ContentLanguage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentLanguage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosSaleResponse) MarshalJSON() ([]byte, error) { +func (s PosSaleResponse) MarshalJSON() ([]byte, error) { type NoMethod PosSaleResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PosStore: Store resource. type PosStore struct { // GcidCategory: The business type of the store. GcidCategory []string `json:"gcidCategory,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#posStore" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#posStore" Kind string `json:"kind,omitempty"` - // PhoneNumber: The store phone number. PhoneNumber string `json:"phoneNumber,omitempty"` - // PlaceId: The Google Place Id of the store location. PlaceId string `json:"placeId,omitempty"` - // StoreAddress: Required. The street address of the store. StoreAddress string `json:"storeAddress,omitempty"` - // StoreCode: Required. A store identifier that is unique for the given // merchant. StoreCode string `json:"storeCode,omitempty"` - // StoreName: The merchant or store name. StoreName string `json:"storeName,omitempty"` - // WebsiteUrl: The website url for the store or merchant. WebsiteUrl string `json:"websiteUrl,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "GcidCategory") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GcidCategory") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GcidCategory") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PosStore) MarshalJSON() ([]byte, error) { +func (s PosStore) MarshalJSON() ([]byte, error) { type NoMethod PosStore - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PostalCodeGroup struct { // Country: The CLDR territory code of the country the postal code group // applies to. Required. Country string `json:"country,omitempty"` - - // Name: The name of the postal code group, referred to in headers. - // Required. + // Name: The name of the postal code group, referred to in headers. Required. Name string `json:"name,omitempty"` - // PostalCodeRanges: A range of postal codes. Required. PostalCodeRanges []*PostalCodeRange `json:"postalCodeRanges,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCodeGroup) MarshalJSON() ([]byte, error) { +func (s PostalCodeGroup) MarshalJSON() ([]byte, error) { type NoMethod PostalCodeGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PostalCodeRange struct { - // PostalCodeRangeBegin: A postal code or a pattern of the form - // `prefix*` denoting the inclusive lower bound of the range defining - // the area. Examples values: "94108", "9410*", "9*". Required. + // PostalCodeRangeBegin: A postal code or a pattern of the form `prefix*` + // denoting the inclusive lower bound of the range defining the area. Examples + // values: "94108", "9410*", "9*". Required. PostalCodeRangeBegin string `json:"postalCodeRangeBegin,omitempty"` - // PostalCodeRangeEnd: A postal code or a pattern of the form `prefix*` - // denoting the inclusive upper bound of the range defining the area. It - // must have the same length as `postalCodeRangeBegin`: if - // `postalCodeRangeBegin` is a postal code then `postalCodeRangeEnd` - // must be a postal code too; if `postalCodeRangeBegin` is a pattern - // then `postalCodeRangeEnd` must be a pattern with the same prefix - // length. Optional: if not set, then the area is defined as being all - // the postal codes matching `postalCodeRangeBegin`. + // denoting the inclusive upper bound of the range defining the area. It must + // have the same length as `postalCodeRangeBegin`: if `postalCodeRangeBegin` is + // a postal code then `postalCodeRangeEnd` must be a postal code too; if + // `postalCodeRangeBegin` is a pattern then `postalCodeRangeEnd` must be a + // pattern with the same prefix length. Optional: if not set, then the area is + // defined as being all the postal codes matching `postalCodeRangeBegin`. PostalCodeRangeEnd string `json:"postalCodeRangeEnd,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PostalCodeRangeBegin") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "PostalCodeRangeBegin") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PostalCodeRangeBegin") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PostalCodeRangeBegin") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCodeRange) MarshalJSON() ([]byte, error) { +func (s PostalCodeRange) MarshalJSON() ([]byte, error) { type NoMethod PostalCodeRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Price struct { // Currency: The currency of the price. Currency string `json:"currency,omitempty"` - // Value: The price represented as a number. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Currency") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Currency") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Currency") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Price) MarshalJSON() ([]byte, error) { +func (s Price) MarshalJSON() ([]byte, error) { type NoMethod Price - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Product: Required product attributes are primarily defined by the -// products data specification. See the Products Data Specification Help -// Center article for information. Product data. After inserting, -// updating, or deleting a product, it may take several minutes before -// changes take effect. +// Product: Required product attributes are primarily defined by the products +// data specification. See the Products Data Specification Help Center article +// for information. Product data. After inserting, updating, or deleting a +// product, it may take several minutes before changes take effect. type Product struct { // AdditionalImageLinks: Additional URLs of images of the item. AdditionalImageLinks []string `json:"additionalImageLinks,omitempty"` - - // AdditionalProductTypes: Additional categories of the item (formatted - // as in products data specification). + // AdditionalProductTypes: Additional categories of the item (formatted as in + // products data specification). AdditionalProductTypes []string `json:"additionalProductTypes,omitempty"` - // Adult: Should be set to true if the item is targeted towards adults. Adult bool `json:"adult,omitempty"` - - // AdwordsGrouping: Used to group items in an arbitrary way. Only for - // CPA%, discouraged otherwise. + // AdwordsGrouping: Used to group items in an arbitrary way. Only for CPA%, + // discouraged otherwise. AdwordsGrouping string `json:"adwordsGrouping,omitempty"` - // AdwordsLabels: Similar to adwords_grouping, but only works on CPC. AdwordsLabels []string `json:"adwordsLabels,omitempty"` - // AdwordsRedirect: Allows advertisers to override the item URL when the // product is shown within the context of Product Ads. AdwordsRedirect string `json:"adwordsRedirect,omitempty"` - - // AgeGroup: Target age group of the item. Acceptable values are: - - // "adult" - "infant" - "kids" - "newborn" - "toddler" - - // "youngAdult" + // AgeGroup: Target age group of the item. Acceptable values are: - "adult" - + // "infant" - "kids" - "newborn" - "toddler" - "youngAdult" AgeGroup string `json:"ageGroup,omitempty"` - // Aspects: Deprecated. Do not use. Aspects []*ProductAspect `json:"aspects,omitempty"` - - // Availability: Availability status of the item. Acceptable values are: - // - "in stock" - "out of stock" - "preorder" + // Availability: Availability status of the item. Acceptable values are: - "in + // stock" - "out of stock" - "preorder" Availability string `json:"availability,omitempty"` - // AvailabilityDate: The day a pre-ordered product becomes available for // delivery, in ISO 8601 format. AvailabilityDate string `json:"availabilityDate,omitempty"` - // Brand: Brand of the item. Brand string `json:"brand,omitempty"` - - // CanonicalLink: URL for the canonical version of your item's landing - // page. + // CanonicalLink: URL for the canonical version of your item's landing page. CanonicalLink string `json:"canonicalLink,omitempty"` - - // Channel: Required. The item's channel (online or local). Acceptable - // values are: - "local" - "online" + // Channel: Required. The item's channel (online or local). Acceptable values + // are: - "local" - "online" Channel string `json:"channel,omitempty"` - // Color: Color of the item. Color string `json:"color,omitempty"` - - // Condition: Condition or state of the item. Acceptable values are: - - // "new" - "refurbished" - "used" + // Condition: Condition or state of the item. Acceptable values are: - "new" + // - "refurbished" - "used" Condition string `json:"condition,omitempty"` - - // ContentLanguage: Required. The two-letter ISO 639-1 language code for - // the item. + // ContentLanguage: Required. The two-letter ISO 639-1 language code for the + // item. ContentLanguage string `json:"contentLanguage,omitempty"` - // CostOfGoodsSold: Cost of goods sold. Used for gross profit reporting. CostOfGoodsSold *Price `json:"costOfGoodsSold,omitempty"` - - // CustomAttributes: A list of custom (merchant-provided) attributes. It - // can also be used for submitting any attribute of the feed - // specification in its generic form (e.g., `{ "name": "size type", - // "value": "regular" }`). This is useful for submitting attributes not - // explicitly exposed by the API, such as additional attributes used for - // Buy on Google (formerly known as Shopping Actions). + // CustomAttributes: A list of custom (merchant-provided) attributes. It can + // also be used for submitting any attribute of the feed specification in its + // generic form (e.g., `{ "name": "size type", "value": "regular" }`). This is + // useful for submitting attributes not explicitly exposed by the API, such as + // additional attributes used for Buy on Google (formerly known as Shopping + // Actions). CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"` - - // CustomGroups: A list of custom (merchant-provided) custom attribute - // groups. + // CustomGroups: A list of custom (merchant-provided) custom attribute groups. CustomGroups []*CustomGroup `json:"customGroups,omitempty"` - - // CustomLabel0: Custom label 0 for custom grouping of items in a - // Shopping campaign. + // CustomLabel0: Custom label 0 for custom grouping of items in a Shopping + // campaign. CustomLabel0 string `json:"customLabel0,omitempty"` - - // CustomLabel1: Custom label 1 for custom grouping of items in a - // Shopping campaign. + // CustomLabel1: Custom label 1 for custom grouping of items in a Shopping + // campaign. CustomLabel1 string `json:"customLabel1,omitempty"` - - // CustomLabel2: Custom label 2 for custom grouping of items in a - // Shopping campaign. + // CustomLabel2: Custom label 2 for custom grouping of items in a Shopping + // campaign. CustomLabel2 string `json:"customLabel2,omitempty"` - - // CustomLabel3: Custom label 3 for custom grouping of items in a - // Shopping campaign. + // CustomLabel3: Custom label 3 for custom grouping of items in a Shopping + // campaign. CustomLabel3 string `json:"customLabel3,omitempty"` - - // CustomLabel4: Custom label 4 for custom grouping of items in a - // Shopping campaign. + // CustomLabel4: Custom label 4 for custom grouping of items in a Shopping + // campaign. CustomLabel4 string `json:"customLabel4,omitempty"` - // Description: Description of the item. Description string `json:"description,omitempty"` - // Destinations: Specifies the intended destinations for the product. Destinations []*ProductDestination `json:"destinations,omitempty"` - - // DisplayAdsId: An identifier for an item for dynamic remarketing - // campaigns. + // DisplayAdsId: An identifier for an item for dynamic remarketing campaigns. DisplayAdsId string `json:"displayAdsId,omitempty"` - // DisplayAdsLink: URL directly to your item's landing page for dynamic // remarketing campaigns. DisplayAdsLink string `json:"displayAdsLink,omitempty"` - // DisplayAdsSimilarIds: Advertiser-specified recommendations. DisplayAdsSimilarIds []string `json:"displayAdsSimilarIds,omitempty"` - // DisplayAdsTitle: Title of an item for dynamic remarketing campaigns. DisplayAdsTitle string `json:"displayAdsTitle,omitempty"` - // DisplayAdsValue: Offer margin for dynamic remarketing campaigns. DisplayAdsValue float64 `json:"displayAdsValue,omitempty"` - // EnergyEfficiencyClass: The energy efficiency class as defined in EU - // directive 2010/30/EU. Acceptable values are: - "A" - "A+" - - // "A++" - "A+++" - "B" - "C" - "D" - "E" - "F" - "G" + // directive 2010/30/EU. Acceptable values are: - "A" - "A+" - "A++" - + // "A+++" - "B" - "C" - "D" - "E" - "F" - "G" EnergyEfficiencyClass string `json:"energyEfficiencyClass,omitempty"` - - // ExpirationDate: Date on which the item should expire, as specified - // upon insertion, in ISO 8601 format. The actual expiration date in - // Google Shopping is exposed in `productstatuses` as - // `googleExpirationDate` and might be earlier if `expirationDate` is - // too far in the future. + // ExpirationDate: Date on which the item should expire, as specified upon + // insertion, in ISO 8601 format. The actual expiration date in Google Shopping + // is exposed in `productstatuses` as `googleExpirationDate` and might be + // earlier if `expirationDate` is too far in the future. ExpirationDate string `json:"expirationDate,omitempty"` - - // Gender: Target gender of the item. Acceptable values are: - - // "female" - "male" - "unisex" + // Gender: Target gender of the item. Acceptable values are: - "female" - + // "male" - "unisex" Gender string `json:"gender,omitempty"` - - // GoogleProductCategory: Google's category of the item (see Google - // product taxonomy - // (https://support.google.com/merchants/answer/1705911)). When querying - // products, this field will contain the user provided value. There is - // currently no way to get back the auto assigned google product - // categories through the API. + // GoogleProductCategory: Google's category of the item (see Google product + // taxonomy (https://support.google.com/merchants/answer/1705911)). When + // querying products, this field will contain the user provided value. There is + // currently no way to get back the auto assigned google product categories + // through the API. GoogleProductCategory string `json:"googleProductCategory,omitempty"` - // Gtin: Global Trade Item Number (GTIN) of the item. Gtin string `json:"gtin,omitempty"` - - // Id: The REST ID of the product. Content API methods that operate on - // products take this as their `productId` parameter. The REST ID for a - // product is of the form channel:contentLanguage: targetCountry: - // offerId. + // Id: The REST ID of the product. Content API methods that operate on products + // take this as their `productId` parameter. The REST ID for a product is of + // the form channel:contentLanguage: targetCountry: offerId. Id string `json:"id,omitempty"` - // IdentifierExists: False when the item does not have unique product - // identifiers appropriate to its category, such as GTIN, MPN, and - // brand. Required according to the Unique Product Identifier Rules for - // all target countries except for Canada. + // identifiers appropriate to its category, such as GTIN, MPN, and brand. + // Required according to the Unique Product Identifier Rules for all target + // countries except for Canada. IdentifierExists bool `json:"identifierExists,omitempty"` - // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` - // Installment: Number and amount of installments to pay for an item. Installment *Installment `json:"installment,omitempty"` - - // IsBundle: Whether the item is a merchant-defined bundle. A bundle is - // a custom grouping of different products sold by a merchant for a - // single price. + // IsBundle: Whether the item is a merchant-defined bundle. A bundle is a + // custom grouping of different products sold by a merchant for a single price. IsBundle bool `json:"isBundle,omitempty"` - // ItemGroupId: Shared identifier for all variants of the same product. ItemGroupId string `json:"itemGroupId,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#product" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#product" Kind string `json:"kind,omitempty"` - // Link: URL directly linking to your item's page on your website. Link string `json:"link,omitempty"` - - // LoyaltyPoints: Loyalty points that users receive after purchasing the - // item. Japan only. + // LoyaltyPoints: Loyalty points that users receive after purchasing the item. + // Japan only. LoyaltyPoints *LoyaltyPoints `json:"loyaltyPoints,omitempty"` - // Material: The material of which the item is made. Material string `json:"material,omitempty"` - - // MaxEnergyEfficiencyClass: The energy efficiency class as defined in - // EU directive 2010/30/EU. Acceptable values are: - "A" - "A+" - - // "A++" - "A+++" - "B" - "C" - "D" - "E" - "F" - "G" + // MaxEnergyEfficiencyClass: The energy efficiency class as defined in EU + // directive 2010/30/EU. Acceptable values are: - "A" - "A+" - "A++" - + // "A+++" - "B" - "C" - "D" - "E" - "F" - "G" MaxEnergyEfficiencyClass string `json:"maxEnergyEfficiencyClass,omitempty"` - // MaxHandlingTime: Maximal product handling time (in business days). MaxHandlingTime int64 `json:"maxHandlingTime,omitempty,string"` - - // MinEnergyEfficiencyClass: The energy efficiency class as defined in - // EU directive 2010/30/EU. Acceptable values are: - "A" - "A+" - - // "A++" - "A+++" - "B" - "C" - "D" - "E" - "F" - "G" + // MinEnergyEfficiencyClass: The energy efficiency class as defined in EU + // directive 2010/30/EU. Acceptable values are: - "A" - "A+" - "A++" - + // "A+++" - "B" - "C" - "D" - "E" - "F" - "G" MinEnergyEfficiencyClass string `json:"minEnergyEfficiencyClass,omitempty"` - // MinHandlingTime: Minimal product handling time (in business days). MinHandlingTime int64 `json:"minHandlingTime,omitempty,string"` - - // MobileLink: URL for the mobile-optimized version of your item's - // landing page. + // MobileLink: URL for the mobile-optimized version of your item's landing + // page. MobileLink string `json:"mobileLink,omitempty"` - // Mpn: Manufacturer Part Number (MPN) of the item. Mpn string `json:"mpn,omitempty"` - - // Multipack: The number of identical products in a merchant-defined - // multipack. + // Multipack: The number of identical products in a merchant-defined multipack. Multipack int64 `json:"multipack,omitempty,string"` - - // OfferId: Required. A unique identifier for the item. Leading and - // trailing whitespaces are stripped and multiple whitespaces are - // replaced by a single whitespace upon submission. Only valid unicode - // characters are accepted. See the products feed specification for - // details. *Note:* Content API methods that operate on products take - // the REST ID of the product, *not* this identifier. + // OfferId: Required. A unique identifier for the item. Leading and trailing + // whitespaces are stripped and multiple whitespaces are replaced by a single + // whitespace upon submission. Only valid unicode characters are accepted. See + // the products feed specification for details. *Note:* Content API methods + // that operate on products take the REST ID of the product, *not* this + // identifier. OfferId string `json:"offerId,omitempty"` - // OnlineOnly: Deprecated. OnlineOnly bool `json:"onlineOnly,omitempty"` - // Pattern: The item's pattern (e.g. polka dots). Pattern string `json:"pattern,omitempty"` - // Price: Price of the item. Price *Price `json:"price,omitempty"` - // ProductType: Your category of the item (formatted as in products data // specification). ProductType string `json:"productType,omitempty"` - // PromotionIds: The unique ID of a promotion. PromotionIds []string `json:"promotionIds,omitempty"` - // SalePrice: Advertised sale price of the item. SalePrice *Price `json:"salePrice,omitempty"` - - // SalePriceEffectiveDate: Date range during which the item is on sale - // (see products data specification ). + // SalePriceEffectiveDate: Date range during which the item is on sale (see + // products data specification ). SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"` - - // SellOnGoogleQuantity: The quantity of the product that is available - // for selling on Google. Supported only for online products. + // SellOnGoogleQuantity: The quantity of the product that is available for + // selling on Google. Supported only for online products. SellOnGoogleQuantity int64 `json:"sellOnGoogleQuantity,omitempty,string"` - // Shipping: Shipping rules. Shipping []*ProductShipping `json:"shipping,omitempty"` - // ShippingHeight: Height of the item for shipping. ShippingHeight *ProductShippingDimension `json:"shippingHeight,omitempty"` - - // ShippingLabel: The shipping label of the product, used to group - // product in account-level shipping rules. + // ShippingLabel: The shipping label of the product, used to group product in + // account-level shipping rules. ShippingLabel string `json:"shippingLabel,omitempty"` - // ShippingLength: Length of the item for shipping. ShippingLength *ProductShippingDimension `json:"shippingLength,omitempty"` - // ShippingWeight: Weight of the item for shipping. ShippingWeight *ProductShippingWeight `json:"shippingWeight,omitempty"` - // ShippingWidth: Width of the item for shipping. ShippingWidth *ProductShippingDimension `json:"shippingWidth,omitempty"` - - // SizeSystem: System in which the size is specified. Recommended for - // apparel items. Acceptable values are: - "AU" - "BR" - "CN" - - // "DE" - "EU" - "FR" - "IT" - "JP" - "MEX" - "UK" - - // "US" + // SizeSystem: System in which the size is specified. Recommended for apparel + // items. Acceptable values are: - "AU" - "BR" - "CN" - "DE" - "EU" - + // "FR" - "IT" - "JP" - "MEX" - "UK" - "US" SizeSystem string `json:"sizeSystem,omitempty"` - - // SizeType: The cut of the item. Recommended for apparel items. - // Acceptable values are: - "big and tall" - "maternity" - - // "oversize" - "petite" - "plus" - "regular" + // SizeType: The cut of the item. Recommended for apparel items. Acceptable + // values are: - "big and tall" - "maternity" - "oversize" - "petite" - + // "plus" - "regular" SizeType string `json:"sizeType,omitempty"` - // Sizes: Size of the item. Only one value is allowed. For variants with - // different sizes, insert a separate product for each size with the - // same `itemGroupId` value (see size definition). + // different sizes, insert a separate product for each size with the same + // `itemGroupId` value (see size definition). Sizes []string `json:"sizes,omitempty"` - - // Source: The source of the offer, i.e., how the offer was created. - // Acceptable values are: - "api" - "crawl" - "feed" + // Source: The source of the offer, i.e., how the offer was created. Acceptable + // values are: - "api" - "crawl" - "feed" Source string `json:"source,omitempty"` - // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` - // Taxes: Tax information. Taxes []*ProductTax `json:"taxes,omitempty"` - // Title: Title of the item. Title string `json:"title,omitempty"` - - // UnitPricingBaseMeasure: The preference of the denominator of the unit - // price. + // UnitPricingBaseMeasure: The preference of the denominator of the unit price. UnitPricingBaseMeasure *ProductUnitPricingBaseMeasure `json:"unitPricingBaseMeasure,omitempty"` - // UnitPricingMeasure: The measure and dimension of an item. UnitPricingMeasure *ProductUnitPricingMeasure `json:"unitPricingMeasure,omitempty"` - // ValidatedDestinations: Deprecated. The read-only list of intended // destinations which passed validation. ValidatedDestinations []string `json:"validatedDestinations,omitempty"` - // Warnings: Read-only warnings. Warnings []*Error `json:"warnings,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AdditionalImageLinks") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalImageLinks") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalImageLinks") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalImageLinks") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Product) MarshalJSON() ([]byte, error) { +func (s Product) MarshalJSON() ([]byte, error) { type NoMethod Product - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Product) UnmarshalJSON(data []byte) error { @@ -9343,186 +7182,141 @@ func (s *Product) UnmarshalJSON(data []byte) error { } type ProductAmount struct { - // PriceAmount: The pre-tax or post-tax price depending on the location - // of the order. + // PriceAmount: The pre-tax or post-tax price depending on the location of the + // order. PriceAmount *Price `json:"priceAmount,omitempty"` - // RemittedTaxAmount: Remitted tax value. RemittedTaxAmount *Price `json:"remittedTaxAmount,omitempty"` - // TaxAmount: Tax value. TaxAmount *Price `json:"taxAmount,omitempty"` - // ForceSendFields is a list of field names (e.g. "PriceAmount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PriceAmount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PriceAmount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductAmount) MarshalJSON() ([]byte, error) { +func (s ProductAmount) MarshalJSON() ([]byte, error) { type NoMethod ProductAmount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductAspect struct { // AspectName: Deprecated. AspectName string `json:"aspectName,omitempty"` - // DestinationName: Deprecated. DestinationName string `json:"destinationName,omitempty"` - // Intention: Deprecated. Intention string `json:"intention,omitempty"` - // ForceSendFields is a list of field names (e.g. "AspectName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AspectName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AspectName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductAspect) MarshalJSON() ([]byte, error) { +func (s ProductAspect) MarshalJSON() ([]byte, error) { type NoMethod ProductAspect - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductDestination struct { // DestinationName: The name of the destination. DestinationName string `json:"destinationName,omitempty"` - // Intention: Whether the destination is required, excluded or should be // validated. Acceptable values are: - "default" - "excluded" - // "optional" - "required" Intention string `json:"intention,omitempty"` - // ForceSendFields is a list of field names (e.g. "DestinationName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DestinationName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DestinationName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductDestination) MarshalJSON() ([]byte, error) { +func (s ProductDestination) MarshalJSON() ([]byte, error) { type NoMethod ProductDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductShipping struct { - // Country: The CLDR territory code of the country to which an item will - // ship. + // Country: The CLDR territory code of the country to which an item will ship. Country string `json:"country,omitempty"` - // LocationGroupName: The location where the shipping is applicable, // represented by a location group name. LocationGroupName string `json:"locationGroupName,omitempty"` - - // LocationId: The numeric ID of a location that the shipping rate - // applies to as defined in the AdWords API. + // LocationId: The numeric ID of a location that the shipping rate applies to + // as defined in the AdWords API. LocationId int64 `json:"locationId,omitempty,string"` - // PostalCode: The postal code range that the shipping rate applies to, - // represented by a postal code, a postal code prefix followed by a * - // wildcard, a range between two postal codes or two postal code - // prefixes of equal length. + // represented by a postal code, a postal code prefix followed by a * wildcard, + // a range between two postal codes or two postal code prefixes of equal + // length. PostalCode string `json:"postalCode,omitempty"` - // Price: Fixed shipping price, represented as a number. Price *Price `json:"price,omitempty"` - // Region: The geographic region to which a shipping rate applies. Region string `json:"region,omitempty"` - - // Service: A free-form description of the service class or delivery - // speed. + // Service: A free-form description of the service class or delivery speed. Service string `json:"service,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductShipping) MarshalJSON() ([]byte, error) { +func (s ProductShipping) MarshalJSON() ([]byte, error) { type NoMethod ProductShipping - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductShippingDimension struct { // Unit: The unit of value. Unit string `json:"unit,omitempty"` - - // Value: The dimension of the product used to calculate the shipping - // cost of the item. + // Value: The dimension of the product used to calculate the shipping cost of + // the item. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Unit") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Unit") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Unit") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Unit") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductShippingDimension) MarshalJSON() ([]byte, error) { +func (s ProductShippingDimension) MarshalJSON() ([]byte, error) { type NoMethod ProductShippingDimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *ProductShippingDimension) UnmarshalJSON(data []byte) error { @@ -9542,32 +7336,25 @@ func (s *ProductShippingDimension) UnmarshalJSON(data []byte) error { type ProductShippingWeight struct { // Unit: The unit of value. Unit string `json:"unit,omitempty"` - - // Value: The weight of the product used to calculate the shipping cost - // of the item. + // Value: The weight of the product used to calculate the shipping cost of the + // item. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Unit") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Unit") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Unit") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Unit") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductShippingWeight) MarshalJSON() ([]byte, error) { +func (s ProductShippingWeight) MarshalJSON() ([]byte, error) { type NoMethod ProductShippingWeight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *ProductShippingWeight) UnmarshalJSON(data []byte) error { @@ -9584,251 +7371,184 @@ func (s *ProductShippingWeight) UnmarshalJSON(data []byte) error { return nil } -// ProductStatus: The status of a product, i.e., information about a -// product computed asynchronously. +// ProductStatus: The status of a product, i.e., information about a product +// computed asynchronously. type ProductStatus struct { - // CreationDate: Date on which the item has been created, in ISO 8601 - // format. + // CreationDate: Date on which the item has been created, in ISO 8601 format. CreationDate string `json:"creationDate,omitempty"` - // DataQualityIssues: DEPRECATED - never populated DataQualityIssues []*ProductStatusDataQualityIssue `json:"dataQualityIssues,omitempty"` - // DestinationStatuses: The intended destinations for the product. DestinationStatuses []*ProductStatusDestinationStatus `json:"destinationStatuses,omitempty"` - - // GoogleExpirationDate: Date on which the item expires in Google - // Shopping, in ISO 8601 format. + // GoogleExpirationDate: Date on which the item expires in Google Shopping, in + // ISO 8601 format. GoogleExpirationDate string `json:"googleExpirationDate,omitempty"` - // ItemLevelIssues: A list of all issues associated with the product. ItemLevelIssues []*ProductStatusItemLevelIssue `json:"itemLevelIssues,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#productStatus" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#productStatus" Kind string `json:"kind,omitempty"` - - // LastUpdateDate: Date on which the item has been last updated, in ISO - // 8601 format. + // LastUpdateDate: Date on which the item has been last updated, in ISO 8601 + // format. LastUpdateDate string `json:"lastUpdateDate,omitempty"` - // Link: The link to the product. Link string `json:"link,omitempty"` - // Product: Product data after applying all the join inputs. Product *Product `json:"product,omitempty"` - // ProductId: The ID of the product for which status is reported. ProductId string `json:"productId,omitempty"` - // Title: The title of the product. Title string `json:"title,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreationDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreationDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductStatus) MarshalJSON() ([]byte, error) { +func (s ProductStatus) MarshalJSON() ([]byte, error) { type NoMethod ProductStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductStatusDataQualityIssue struct { - Destination string `json:"destination,omitempty"` - - Detail string `json:"detail,omitempty"` - - FetchStatus string `json:"fetchStatus,omitempty"` - - Id string `json:"id,omitempty"` - - Location string `json:"location,omitempty"` - - Severity string `json:"severity,omitempty"` - - Timestamp string `json:"timestamp,omitempty"` - + Destination string `json:"destination,omitempty"` + Detail string `json:"detail,omitempty"` + FetchStatus string `json:"fetchStatus,omitempty"` + Id string `json:"id,omitempty"` + Location string `json:"location,omitempty"` + Severity string `json:"severity,omitempty"` + Timestamp string `json:"timestamp,omitempty"` ValueOnLandingPage string `json:"valueOnLandingPage,omitempty"` - - ValueProvided string `json:"valueProvided,omitempty"` - + ValueProvided string `json:"valueProvided,omitempty"` // ForceSendFields is a list of field names (e.g. "Destination") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Destination") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Destination") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductStatusDataQualityIssue) MarshalJSON() ([]byte, error) { +func (s ProductStatusDataQualityIssue) MarshalJSON() ([]byte, error) { type NoMethod ProductStatusDataQualityIssue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductStatusDestinationStatus struct { - // ApprovalPending: Whether the approval status might change due to - // further processing. + // ApprovalPending: Whether the approval status might change due to further + // processing. ApprovalPending bool `json:"approvalPending,omitempty"` - - // ApprovalStatus: The destination's approval status. Acceptable values - // are: - "approved" - "disapproved" + // ApprovalStatus: The destination's approval status. Acceptable values are: - + // "approved" - "disapproved" ApprovalStatus string `json:"approvalStatus,omitempty"` - // Destination: The name of the destination Destination string `json:"destination,omitempty"` - // Intention: Provided for backward compatibility only. Always set to // "required". Acceptable values are: - "default" - "excluded" - // "optional" - "required" Intention string `json:"intention,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApprovalPending") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalPending") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApprovalPending") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductStatusDestinationStatus) MarshalJSON() ([]byte, error) { +func (s ProductStatusDestinationStatus) MarshalJSON() ([]byte, error) { type NoMethod ProductStatusDestinationStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductStatusItemLevelIssue struct { - // AttributeName: The attribute's name, if the issue is caused by a - // single attribute. + // AttributeName: The attribute's name, if the issue is caused by a single + // attribute. AttributeName string `json:"attributeName,omitempty"` - // Code: The error code of the issue. Code string `json:"code,omitempty"` - // Description: A short issue description in English. Description string `json:"description,omitempty"` - // Destination: The destination the issue applies to. Destination string `json:"destination,omitempty"` - // Detail: A detailed issue description in English. Detail string `json:"detail,omitempty"` - - // Documentation: The URL of a web page to help with resolving this - // issue. + // Documentation: The URL of a web page to help with resolving this issue. Documentation string `json:"documentation,omitempty"` - // Resolution: Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` - // Servability: How this issue affects serving of the offer. Servability string `json:"servability,omitempty"` - // ForceSendFields is a list of field names (e.g. "AttributeName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttributeName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AttributeName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductStatusItemLevelIssue) MarshalJSON() ([]byte, error) { +func (s ProductStatusItemLevelIssue) MarshalJSON() ([]byte, error) { type NoMethod ProductStatusItemLevelIssue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductTax struct { - // Country: The country within which the item is taxed, specified as a - // CLDR territory code. + // Country: The country within which the item is taxed, specified as a CLDR + // territory code. Country string `json:"country,omitempty"` - - // LocationId: The numeric ID of a location that the tax rate applies to - // as defined in the AdWords API. + // LocationId: The numeric ID of a location that the tax rate applies to as + // defined in the AdWords API. LocationId int64 `json:"locationId,omitempty,string"` - - // PostalCode: The postal code range that the tax rate applies to, - // represented by a ZIP code, a ZIP code prefix using * wildcard, a - // range between two ZIP codes or two ZIP code prefixes of equal length. - // Examples: 94114, 94*, 94002-95460, 94*-95*. + // PostalCode: The postal code range that the tax rate applies to, represented + // by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP + // codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, + // 94002-95460, 94*-95*. PostalCode string `json:"postalCode,omitempty"` - // Rate: The percentage of tax rate that applies to the item price. Rate float64 `json:"rate,omitempty"` - // Region: The geographic region to which the tax rate applies. Region string `json:"region,omitempty"` - // TaxShip: Should be set to true if tax is charged on shipping. TaxShip bool `json:"taxShip,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductTax) MarshalJSON() ([]byte, error) { +func (s ProductTax) MarshalJSON() ([]byte, error) { type NoMethod ProductTax - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *ProductTax) UnmarshalJSON(data []byte) error { @@ -9848,61 +7568,47 @@ func (s *ProductTax) UnmarshalJSON(data []byte) error { type ProductUnitPricingBaseMeasure struct { // Unit: The unit of the denominator. Unit string `json:"unit,omitempty"` - // Value: The denominator of the unit price. Value int64 `json:"value,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Unit") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Unit") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Unit") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Unit") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductUnitPricingBaseMeasure) MarshalJSON() ([]byte, error) { +func (s ProductUnitPricingBaseMeasure) MarshalJSON() ([]byte, error) { type NoMethod ProductUnitPricingBaseMeasure - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductUnitPricingMeasure struct { // Unit: The unit of the measure. Unit string `json:"unit,omitempty"` - // Value: The measure of an item. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Unit") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Unit") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Unit") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Unit") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductUnitPricingMeasure) MarshalJSON() ([]byte, error) { +func (s ProductUnitPricingMeasure) MarshalJSON() ([]byte, error) { type NoMethod ProductUnitPricingMeasure - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *ProductUnitPricingMeasure) UnmarshalJSON(data []byte) error { @@ -9922,1893 +7628,1426 @@ func (s *ProductUnitPricingMeasure) UnmarshalJSON(data []byte) error { type ProductsCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*ProductsCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductsCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s ProductsCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod ProductsCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ProductsCustomBatchRequestEntry: A batch entry encoding a single -// non-batch products request. +// ProductsCustomBatchRequestEntry: A batch entry encoding a single non-batch +// products request. type ProductsCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // Method: The method of the batch entry. Acceptable values are: - - // "delete" - "get" - "insert" + // Method: The method of the batch entry. Acceptable values are: - "delete" - + // "get" - "insert" Method string `json:"method,omitempty"` - - // Product: The product to insert. Only required if the method is - // `insert`. + // Product: The product to insert. Only required if the method is `insert`. Product *Product `json:"product,omitempty"` - - // ProductId: The ID of the product to get or delete. Only defined if - // the method is `get` or `delete`. + // ProductId: The ID of the product to get or delete. Only defined if the + // method is `get` or `delete`. ProductId string `json:"productId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s ProductsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod ProductsCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductsCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*ProductsCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#productsCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#productsCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductsCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s ProductsCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod ProductsCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ProductsCustomBatchResponseEntry: A batch entry encoding a single -// non-batch products response. +// ProductsCustomBatchResponseEntry: A batch entry encoding a single non-batch +// products response. type ProductsCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` - // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#productsCustomBatchResponseEntry" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#productsCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` - - // Product: The inserted product. Only defined if the method is `insert` - // and if the request was successful. + // Product: The inserted product. Only defined if the method is `insert` and if + // the request was successful. Product *Product `json:"product,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s ProductsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod ProductsCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ProductsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#productsListResponse". - Kind string `json:"kind,omitempty"` - - // NextPageToken: The token for the retrieval of the next page of - // products. - NextPageToken string `json:"nextPageToken,omitempty"` + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} - Resources []*Product `json:"resources,omitempty"` +type ProductsListResponse struct { + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#productsListResponse". + Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of products. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*Product `json:"resources,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductsListResponse) MarshalJSON() ([]byte, error) { +func (s ProductsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ProductsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductstatusesCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*ProductstatusesCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s ProductstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod ProductstatusesCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ProductstatusesCustomBatchRequestEntry: A batch entry encoding a -// single non-batch productstatuses request. +// ProductstatusesCustomBatchRequestEntry: A batch entry encoding a single +// non-batch productstatuses request. type ProductstatusesCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // Destinations: If set, only issues for the specified destinations are // returned, otherwise only issues for the Shopping destination. - Destinations []string `json:"destinations,omitempty"` - - IncludeAttributes bool `json:"includeAttributes,omitempty"` - + Destinations []string `json:"destinations,omitempty"` + IncludeAttributes bool `json:"includeAttributes,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // Method: The method of the batch entry. Acceptable values are: - - // "get" + // Method: The method of the batch entry. Acceptable values are: - "get" Method string `json:"method,omitempty"` - // ProductId: The ID of the product whose status to get. ProductId string `json:"productId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s ProductstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod ProductstatusesCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductstatusesCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*ProductstatusesCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#productstatusesCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#productstatusesCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s ProductstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod ProductstatusesCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ProductstatusesCustomBatchResponseEntry: A batch entry encoding a -// single non-batch productstatuses response. +// ProductstatusesCustomBatchResponseEntry: A batch entry encoding a single +// non-batch productstatuses response. type ProductstatusesCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` - // Errors: A list of errors, if the request failed. Errors *Errors `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#productstatusesCustomBatchResponseEntry" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#productstatusesCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` - - // ProductStatus: The requested product status. Only defined if the - // request was successful. + // ProductStatus: The requested product status. Only defined if the request was + // successful. ProductStatus *ProductStatus `json:"productStatus,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s ProductstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod ProductstatusesCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProductstatusesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#productstatusesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#productstatusesListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of products + // statuses. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*ProductStatus `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // products statuses. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*ProductStatus `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProductstatusesListResponse) MarshalJSON() ([]byte, error) { +func (s ProductstatusesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ProductstatusesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Promotion struct { - // PromotionAmount: [required] Amount of the promotion. The values here - // are the promotion applied to the unit price pretax and to the total - // of the tax amounts. + // PromotionAmount: [required] Amount of the promotion. The values here are the + // promotion applied to the unit price pretax and to the total of the tax + // amounts. PromotionAmount *Amount `json:"promotionAmount,omitempty"` - // PromotionId: [required] ID of the promotion. PromotionId string `json:"promotionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "PromotionAmount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PromotionAmount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PromotionAmount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Promotion) MarshalJSON() ([]byte, error) { +func (s Promotion) MarshalJSON() ([]byte, error) { type NoMethod Promotion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type RateGroup struct { - // ApplicableShippingLabels: A list of shipping labels defining the - // products to which this rate group applies to. This is a disjunction: - // only one of the labels has to match for the rate group to apply. May - // only be empty for the last rate group of a service. Required. + // ApplicableShippingLabels: A list of shipping labels defining the products to + // which this rate group applies to. This is a disjunction: only one of the + // labels has to match for the rate group to apply. May only be empty for the + // last rate group of a service. Required. ApplicableShippingLabels []string `json:"applicableShippingLabels,omitempty"` - - // CarrierRates: A list of carrier rates that can be referred to by - // `mainTable` or `singleValue`. + // CarrierRates: A list of carrier rates that can be referred to by `mainTable` + // or `singleValue`. CarrierRates []*CarrierRate `json:"carrierRates,omitempty"` - // MainTable: A table defining the rate group, when `singleValue` is not // expressive enough. Can only be set if `singleValue` is not set. MainTable *Table `json:"mainTable,omitempty"` - - // Name: Name of the rate group. Optional. If set has to be unique - // within shipping service. + // Name: Name of the rate group. Optional. If set has to be unique within + // shipping service. Name string `json:"name,omitempty"` - - // SingleValue: The value of the rate group (e.g. flat rate $10). Can - // only be set if `mainTable` and `subtables` are not set. + // SingleValue: The value of the rate group (e.g. flat rate $10). Can only be + // set if `mainTable` and `subtables` are not set. SingleValue *Value `json:"singleValue,omitempty"` - - // Subtables: A list of subtables referred to by `mainTable`. Can only - // be set if `mainTable` is set. + // Subtables: A list of subtables referred to by `mainTable`. Can only be set + // if `mainTable` is set. Subtables []*Table `json:"subtables,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ApplicableShippingLabels") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApplicableShippingLabels") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApplicableShippingLabels") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApplicableShippingLabels") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RateGroup) MarshalJSON() ([]byte, error) { +func (s RateGroup) MarshalJSON() ([]byte, error) { type NoMethod RateGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type RefundReason struct { // Description: Description of the reason. Description string `json:"description,omitempty"` - // ReasonCode: Code of the refund reason. Acceptable values are: - - // "adjustment" - "autoPostInternal" - - // "autoPostInvalidBillingAddress" - "autoPostNoInventory" - - // "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - - // "couponAbuse" - "courtesyAdjustment" - "customerCanceled" - - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - // - "customerSupportRequested" - "deliveredLateByCarrier" - - // "deliveredTooLate" - "expiredItem" - - // "failToPushOrderGoogleError" - "failToPushOrderMerchantError" - - // "failToPushOrderMerchantFulfillmentError" - - // "failToPushOrderToMerchant" - - // "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - - // "invalidCoupon" - "lateShipmentCredit" - - // "malformedShippingAddress" - "merchantDidNotShipOnTime" - - // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - - // "paymentDeclined" - "priceAdjustment" - "priceError" - - // "productArrivedDamaged" - "productNotAsDescribed" - - // "promoReallocation" - "qualityNotAsExpected" - - // "returnRefundAbuse" - "shippingCostAdjustment" - - // "shippingPriceError" - "taxAdjustment" - "taxError" - - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - - // "wrongProductShipped" + // "adjustment" - "autoPostInternal" - "autoPostInvalidBillingAddress" - + // "autoPostNoInventory" - "autoPostPriceError" - + // "autoPostUndeliverableShippingAddress" - "couponAbuse" - + // "courtesyAdjustment" - "customerCanceled" - + // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" - + // "customerSupportRequested" - "deliveredLateByCarrier" - + // "deliveredTooLate" - "expiredItem" - "failToPushOrderGoogleError" - + // "failToPushOrderMerchantError" - + // "failToPushOrderMerchantFulfillmentError" - "failToPushOrderToMerchant" + // - "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - + // "invalidCoupon" - "lateShipmentCredit" - "malformedShippingAddress" - + // "merchantDidNotShipOnTime" - "noInventory" - "orderTimeout" - + // "other" - "paymentAbuse" - "paymentDeclined" - "priceAdjustment" - + // "priceError" - "productArrivedDamaged" - "productNotAsDescribed" - + // "promoReallocation" - "qualityNotAsExpected" - "returnRefundAbuse" - + // "shippingCostAdjustment" - "shippingPriceError" - "taxAdjustment" - + // "taxError" - "undeliverableShippingAddress" - + // "unsupportedPoBoxAddress" - "wrongProductShipped" ReasonCode string `json:"reasonCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RefundReason) MarshalJSON() ([]byte, error) { +func (s RefundReason) MarshalJSON() ([]byte, error) { type NoMethod RefundReason - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReturnShipment struct { - // CreationDate: The date of creation of the shipment, in ISO 8601 - // format. + // CreationDate: The date of creation of the shipment, in ISO 8601 format. CreationDate string `json:"creationDate,omitempty"` - - // DeliveryDate: The date of delivery of the shipment, in ISO 8601 - // format. + // DeliveryDate: The date of delivery of the shipment, in ISO 8601 format. DeliveryDate string `json:"deliveryDate,omitempty"` - // ReturnMethodType: Type of the return method. Acceptable values are: - // "byMail" - "contactCustomerSupport" - "returnless" ReturnMethodType string `json:"returnMethodType,omitempty"` - // ShipmentId: Shipment ID generated by Google. ShipmentId string `json:"shipmentId,omitempty"` - - // ShipmentTrackingInfos: Tracking information of the shipment. One - // return shipment might be handled by several shipping carriers - // sequentially. + // ShipmentTrackingInfos: Tracking information of the shipment. One return + // shipment might be handled by several shipping carriers sequentially. ShipmentTrackingInfos []*ShipmentTrackingInfo `json:"shipmentTrackingInfos,omitempty"` - - // ShippingDate: The date of shipping of the shipment, in ISO 8601 - // format. + // ShippingDate: The date of shipping of the shipment, in ISO 8601 format. ShippingDate string `json:"shippingDate,omitempty"` - - // State: State of the shipment. Acceptable values are: - "completed" - // - "new" - "shipped" - "undeliverable" - "pending" + // State: State of the shipment. Acceptable values are: - "completed" - + // "new" - "shipped" - "undeliverable" - "pending" State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreationDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreationDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreationDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReturnShipment) MarshalJSON() ([]byte, error) { +func (s ReturnShipment) MarshalJSON() ([]byte, error) { type NoMethod ReturnShipment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Row struct { - // Cells: The list of cells that constitute the row. Must have the same - // length as `columnHeaders` for two-dimensional tables, a length of 1 - // for one-dimensional tables. Required. + // Cells: The list of cells that constitute the row. Must have the same length + // as `columnHeaders` for two-dimensional tables, a length of 1 for + // one-dimensional tables. Required. Cells []*Value `json:"cells,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cells") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cells") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cells") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Row) MarshalJSON() ([]byte, error) { +func (s Row) MarshalJSON() ([]byte, error) { type NoMethod Row - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Service struct { // Active: A boolean exposing the active status of the shipping service. // Required. Active bool `json:"active,omitempty"` - - // Currency: The CLDR code of the currency to which this service - // applies. Must match that of the prices in rate groups. + // Currency: The CLDR code of the currency to which this service applies. Must + // match that of the prices in rate groups. Currency string `json:"currency,omitempty"` - - // DeliveryCountry: The CLDR territory code of the country to which the - // service applies. Required. + // DeliveryCountry: The CLDR territory code of the country to which the service + // applies. Required. DeliveryCountry string `json:"deliveryCountry,omitempty"` - - // DeliveryTime: Time spent in various aspects from order to the - // delivery of the product. Required. + // DeliveryTime: Time spent in various aspects from order to the delivery of + // the product. Required. DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"` - - // Eligibility: Eligibility for this service. Acceptable values are: - - // "All scenarios" - "All scenarios except Shopping Actions" - - // "Shopping Actions" + // Eligibility: Eligibility for this service. Acceptable values are: - "All + // scenarios" - "All scenarios except Shopping Actions" - "Shopping + // Actions" Eligibility string `json:"eligibility,omitempty"` - - // MinimumOrderValue: Minimum order value for this service. If set, - // indicates that customers will have to spend at least this amount. All - // prices within a service must have the same currency. Cannot be set - // together with minimum_order_value_table. + // MinimumOrderValue: Minimum order value for this service. If set, indicates + // that customers will have to spend at least this amount. All prices within a + // service must have the same currency. Cannot be set together with + // minimum_order_value_table. MinimumOrderValue *Price `json:"minimumOrderValue,omitempty"` - - // MinimumOrderValueTable: Table of per store minimum order values for - // the pickup fulfillment type. Cannot be set together with - // minimum_order_value. + // MinimumOrderValueTable: Table of per store minimum order values for the + // pickup fulfillment type. Cannot be set together with minimum_order_value. MinimumOrderValueTable *MinimumOrderValueTable `json:"minimumOrderValueTable,omitempty"` - - // Name: Free-form name of the service. Must be unique within target - // account. Required. + // Name: Free-form name of the service. Must be unique within target account. + // Required. Name string `json:"name,omitempty"` - - // PickupService: The carrier-service pair delivering items to - // collection points. The list of supported pickup services can be - // retrieved via the `getSupportedPickupServices` method. Required if - // and only if the service delivery type is `pickup`. + // PickupService: The carrier-service pair delivering items to collection + // points. The list of supported pickup services can be retrieved via the + // `getSupportedPickupServices` method. Required if and only if the service + // delivery type is `pickup`. PickupService *PickupCarrierService `json:"pickupService,omitempty"` - - // RateGroups: Shipping rate group definitions. Only the last one is - // allowed to have an empty `applicableShippingLabels`, which means - // "everything else". The other `applicableShippingLabels` must not - // overlap. + // RateGroups: Shipping rate group definitions. Only the last one is allowed to + // have an empty `applicableShippingLabels`, which means "everything else". The + // other `applicableShippingLabels` must not overlap. RateGroups []*RateGroup `json:"rateGroups,omitempty"` - - // ShipmentType: Type of locations this service ships orders to. - // Acceptable values are: - "delivery" - "pickup" + // ShipmentType: Type of locations this service ships orders to. Acceptable + // values are: - "delivery" - "pickup" ShipmentType string `json:"shipmentType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Service) MarshalJSON() ([]byte, error) { +func (s Service) MarshalJSON() ([]byte, error) { type NoMethod Service - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShipmentInvoice struct { // InvoiceSummary: [required] Invoice summary. InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"` - // LineItemInvoices: [required] Invoice details per line item. LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"` - - // ShipmentGroupId: [required] ID of the shipment group. It is assigned - // by the merchant in the `shipLineItems` method and is used to group - // multiple line items that have the same kind of shipping charges. + // ShipmentGroupId: [required] ID of the shipment group. It is assigned by the + // merchant in the `shipLineItems` method and is used to group multiple line + // items that have the same kind of shipping charges. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` - // ForceSendFields is a list of field names (e.g. "InvoiceSummary") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InvoiceSummary") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InvoiceSummary") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShipmentInvoice) MarshalJSON() ([]byte, error) { +func (s ShipmentInvoice) MarshalJSON() ([]byte, error) { type NoMethod ShipmentInvoice - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShipmentInvoiceLineItemInvoice struct { - // LineItemId: ID of the line item. Either lineItemId or productId must - // be set. + // LineItemId: ID of the line item. Either lineItemId or productId must be set. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: ID of the product. This is the REST ID used in the - // products service. Either lineItemId or productId must be set. + // ProductId: ID of the product. This is the REST ID used in the products + // service. Either lineItemId or productId must be set. ProductId string `json:"productId,omitempty"` - - // ShipmentUnitIds: [required] The shipment unit ID is assigned by the - // merchant and defines individual quantities within a line item. The - // same ID can be assigned to units that are the same while units that - // differ must be assigned a different ID (for example: free or - // promotional units). + // ShipmentUnitIds: [required] The shipment unit ID is assigned by the merchant + // and defines individual quantities within a line item. The same ID can be + // assigned to units that are the same while units that differ must be assigned + // a different ID (for example: free or promotional units). ShipmentUnitIds []string `json:"shipmentUnitIds,omitempty"` - // UnitInvoice: [required] Invoice details for a single unit. UnitInvoice *UnitInvoice `json:"unitInvoice,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShipmentInvoiceLineItemInvoice) MarshalJSON() ([]byte, error) { +func (s ShipmentInvoiceLineItemInvoice) MarshalJSON() ([]byte, error) { type NoMethod ShipmentInvoiceLineItemInvoice - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShipmentTrackingInfo struct { - // Carrier: The shipping carrier that handles the package. Acceptable - // values are: - "boxtal" - "bpost" - "chronopost" - - // "colisPrive" - "colissimo" - "cxt" - "deliv" - "dhl" - - // "dpd" - "dynamex" - "eCourier" - "easypost" - "efw" - - // "fedex" - "fedexSmartpost" - "geodis" - "gls" - - // "googleCourier" - "gsx" - "jdLogistics" - "laPoste" - - // "lasership" - "manual" - "mpx" - "onTrac" - "other" - - // "tnt" - "uds" - "ups" - "usps" + // Carrier: The shipping carrier that handles the package. Acceptable values + // are: - "boxtal" - "bpost" - "chronopost" - "colisPrive" - + // "colissimo" - "cxt" - "deliv" - "dhl" - "dpd" - "dynamex" - + // "eCourier" - "easypost" - "efw" - "fedex" - "fedexSmartpost" - + // "geodis" - "gls" - "googleCourier" - "gsx" - "jdLogistics" - + // "laPoste" - "lasership" - "manual" - "mpx" - "onTrac" - "other" + // - "tnt" - "uds" - "ups" - "usps" Carrier string `json:"carrier,omitempty"` - // TrackingNumber: The tracking number for the package. TrackingNumber string `json:"trackingNumber,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShipmentTrackingInfo) MarshalJSON() ([]byte, error) { +func (s ShipmentTrackingInfo) MarshalJSON() ([]byte, error) { type NoMethod ShipmentTrackingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ShippingSettings: The merchant account's shipping settings. All -// methods except getsupportedcarriers and getsupportedholidays require -// the admin role. +// ShippingSettings: The merchant account's shipping settings. All methods +// except getsupportedcarriers and getsupportedholidays require the admin role. type ShippingSettings struct { - // AccountId: The ID of the account to which these account shipping - // settings belong. Ignored upon update, always present in get request - // responses. + // AccountId: The ID of the account to which these account shipping settings + // belong. Ignored upon update, always present in get request responses. AccountId uint64 `json:"accountId,omitempty,string"` - - // PostalCodeGroups: A list of postal code groups that can be referred - // to in `services`. Optional. + // PostalCodeGroups: A list of postal code groups that can be referred to in + // `services`. Optional. PostalCodeGroups []*PostalCodeGroup `json:"postalCodeGroups,omitempty"` - // Services: The target account's list of services. Optional. Services []*Service `json:"services,omitempty"` - - // Warehouses: Optional. A list of warehouses which can be referred to - // in `services`. + // Warehouses: Optional. A list of warehouses which can be referred to in + // `services`. Warehouses []*Warehouse `json:"warehouses,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShippingSettings) MarshalJSON() ([]byte, error) { +func (s ShippingSettings) MarshalJSON() ([]byte, error) { type NoMethod ShippingSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShippingsettingsCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*ShippingsettingsCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShippingsettingsCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s ShippingsettingsCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod ShippingsettingsCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ShippingsettingsCustomBatchRequestEntry: A batch entry encoding a -// single non-batch shippingsettings request. +// ShippingsettingsCustomBatchRequestEntry: A batch entry encoding a single +// non-batch shippingsettings request. type ShippingsettingsCustomBatchRequestEntry struct { - // AccountId: The ID of the account for which to get/update account - // shipping settings. + // AccountId: The ID of the account for which to get/update account shipping + // settings. AccountId uint64 `json:"accountId,omitempty,string"` - // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // Method: The method of the batch entry. Acceptable values are: - - // "get" - "update" + // Method: The method of the batch entry. Acceptable values are: - "get" - + // "update" Method string `json:"method,omitempty"` - - // ShippingSettings: The account shipping settings to update. Only - // defined if the method is `update`. + // ShippingSettings: The account shipping settings to update. Only defined if + // the method is `update`. ShippingSettings *ShippingSettings `json:"shippingSettings,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShippingsettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s ShippingsettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod ShippingsettingsCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShippingsettingsCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*ShippingsettingsCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#shippingsettingsCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#shippingsettingsCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShippingsettingsCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s ShippingsettingsCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod ShippingsettingsCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ShippingsettingsCustomBatchResponseEntry: A batch entry encoding a -// single non-batch shipping settings response. +// ShippingsettingsCustomBatchResponseEntry: A batch entry encoding a single +// non-batch shipping settings response. type ShippingsettingsCustomBatchResponseEntry struct { // BatchId: The ID of the request entry to which this entry responds. BatchId int64 `json:"batchId,omitempty"` - // Errors: A list of errors defined if, and only if, the request failed. Errors *Errors `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#shippingsettingsCustomBatchResponseEntry" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#shippingsettingsCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` - // ShippingSettings: The retrieved or updated account shipping settings. ShippingSettings *ShippingSettings `json:"shippingSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShippingsettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s ShippingsettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod ShippingsettingsCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShippingsettingsGetSupportedCarriersResponse struct { // Carriers: A list of supported carriers. May be empty. Carriers []*CarriersCarrier `json:"carriers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#shippingsettingsGetSupportedCarriersResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#shippingsettingsGetSupportedCarriersResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Carriers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carriers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carriers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShippingsettingsGetSupportedCarriersResponse) MarshalJSON() ([]byte, error) { +func (s ShippingsettingsGetSupportedCarriersResponse) MarshalJSON() ([]byte, error) { type NoMethod ShippingsettingsGetSupportedCarriersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShippingsettingsGetSupportedHolidaysResponse struct { - // Holidays: A list of holidays applicable for delivery guarantees. May - // be empty. + // Holidays: A list of holidays applicable for delivery guarantees. May be + // empty. Holidays []*HolidaysHoliday `json:"holidays,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#shippingsettingsGetSupportedHolidaysResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#shippingsettingsGetSupportedHolidaysResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Holidays") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Holidays") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Holidays") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShippingsettingsGetSupportedHolidaysResponse) MarshalJSON() ([]byte, error) { +func (s ShippingsettingsGetSupportedHolidaysResponse) MarshalJSON() ([]byte, error) { type NoMethod ShippingsettingsGetSupportedHolidaysResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShippingsettingsGetSupportedPickupServicesResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#shippingsettingsGetSupportedPickupServicesResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#shippingsettingsGetSupportedPickupServicesResponse". Kind string `json:"kind,omitempty"` - // PickupServices: A list of supported pickup services. May be empty. PickupServices []*PickupServicesPickupService `json:"pickupServices,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShippingsettingsGetSupportedPickupServicesResponse) MarshalJSON() ([]byte, error) { +func (s ShippingsettingsGetSupportedPickupServicesResponse) MarshalJSON() ([]byte, error) { type NoMethod ShippingsettingsGetSupportedPickupServicesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShippingsettingsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#shippingsettingsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#shippingsettingsListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of shipping + // settings. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*ShippingSettings `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // shipping settings. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*ShippingSettings `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShippingsettingsListResponse) MarshalJSON() ([]byte, error) { +func (s ShippingsettingsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ShippingsettingsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Table struct { - // ColumnHeaders: Headers of the table's columns. Optional: if not set - // then the table has only one dimension. + // ColumnHeaders: Headers of the table's columns. Optional: if not set then the + // table has only one dimension. ColumnHeaders *Headers `json:"columnHeaders,omitempty"` - - // Name: Name of the table. Required for subtables, ignored for the main - // table. + // Name: Name of the table. Required for subtables, ignored for the main table. Name string `json:"name,omitempty"` - // RowHeaders: Headers of the table's rows. Required. RowHeaders *Headers `json:"rowHeaders,omitempty"` - - // Rows: The list of rows that constitute the table. Must have the same - // length as `rowHeaders`. Required. + // Rows: The list of rows that constitute the table. Must have the same length + // as `rowHeaders`. Required. Rows []*Row `json:"rows,omitempty"` - // ForceSendFields is a list of field names (e.g. "ColumnHeaders") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ColumnHeaders") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ColumnHeaders") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Table) MarshalJSON() ([]byte, error) { +func (s Table) MarshalJSON() ([]byte, error) { type NoMethod Table - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrder struct { // Customer: Required. The details of the customer who placed the order. Customer *TestOrderCustomer `json:"customer,omitempty"` - - // EnableOrderinvoices: Whether the orderinvoices service should support - // this order. + // EnableOrderinvoices: Whether the orderinvoices service should support this + // order. EnableOrderinvoices bool `json:"enableOrderinvoices,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#testOrder" + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#testOrder" Kind string `json:"kind,omitempty"` - - // LineItems: Required. Line items that are ordered. At least one line - // item must be provided. + // LineItems: Required. Line items that are ordered. At least one line item + // must be provided. LineItems []*TestOrderLineItem `json:"lineItems,omitempty"` - // NotificationMode: Restricted. Do not use. NotificationMode string `json:"notificationMode,omitempty"` - // PaymentMethod: The details of the payment method. PaymentMethod *TestOrderPaymentMethod `json:"paymentMethod,omitempty"` - - // PredefinedDeliveryAddress: Required. Identifier of one of the - // predefined delivery addresses for the delivery. Acceptable values - // are: - "dwight" - "jim" - "pam" + // PredefinedDeliveryAddress: Required. Identifier of one of the predefined + // delivery addresses for the delivery. Acceptable values are: - "dwight" - + // "jim" - "pam" PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"` - - // PredefinedPickupDetails: Identifier of one of the predefined pickup - // details. Required for orders containing line items with shipping type - // `pickup`. Acceptable values are: - "dwight" - "jim" - "pam" + // PredefinedPickupDetails: Identifier of one of the predefined pickup details. + // Required for orders containing line items with shipping type `pickup`. + // Acceptable values are: - "dwight" - "jim" - "pam" PredefinedPickupDetails string `json:"predefinedPickupDetails,omitempty"` - // Promotions: Deprecated. Ignored if provided. Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"` - - // ShippingCost: Required. The price of shipping for all items. Shipping - // tax is automatically calculated for orders where marketplace - // facilitator tax laws are applicable. Otherwise, tax settings from - // Merchant Center are applied. Note that shipping is not taxed in - // certain states. + // ShippingCost: Required. The price of shipping for all items. Shipping tax is + // automatically calculated for orders where marketplace facilitator tax laws + // are applicable. Otherwise, tax settings from Merchant Center are applied. + // Note that shipping is not taxed in certain states. ShippingCost *Price `json:"shippingCost,omitempty"` - // ShippingCostTax: Deprecated. Ignored if provided. ShippingCostTax *Price `json:"shippingCostTax,omitempty"` - - // ShippingOption: Required. The requested shipping option. Acceptable - // values are: - "economy" - "expedited" - "oneDay" - "sameDay" - // - "standard" - "twoDay" + // ShippingOption: Required. The requested shipping option. Acceptable values + // are: - "economy" - "expedited" - "oneDay" - "sameDay" - "standard" + // - "twoDay" ShippingOption string `json:"shippingOption,omitempty"` - // ForceSendFields is a list of field names (e.g. "Customer") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Customer") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Customer") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrder) MarshalJSON() ([]byte, error) { +func (s TestOrder) MarshalJSON() ([]byte, error) { type NoMethod TestOrder - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrderCustomer struct { - // Email: Required. Email address of the customer. Acceptable values - // are: - "pog.dwight.schrute@gmail.com" - - // "pog.jim.halpert@gmail.com" - "penpog.pam.beesly@gmail.comding" + // Email: Required. Email address of the customer. Acceptable values are: - + // "pog.dwight.schrute@gmail.com" - "pog.jim.halpert@gmail.com" - + // "penpog.pam.beesly@gmail.comding" Email string `json:"email,omitempty"` - - // ExplicitMarketingPreference: Deprecated. Please use - // marketingRightsInfo instead. + // ExplicitMarketingPreference: Deprecated. Please use marketingRightsInfo + // instead. ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"` - // FullName: Full name of the customer. FullName string `json:"fullName,omitempty"` - // MarketingRightsInfo: Customer's marketing preferences. MarketingRightsInfo *TestOrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrderCustomer) MarshalJSON() ([]byte, error) { +func (s TestOrderCustomer) MarshalJSON() ([]byte, error) { type NoMethod TestOrderCustomer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrderCustomerMarketingRightsInfo struct { - // ExplicitMarketingPreference: Last know user use selection regards - // marketing preferences. In certain cases selection might not be known, - // so this field would be empty. Acceptable values are: - "denied" - - // "granted" + // ExplicitMarketingPreference: Last know user use selection regards marketing + // preferences. In certain cases selection might not be known, so this field + // would be empty. Acceptable values are: - "denied" - "granted" ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"` - - // LastUpdatedTimestamp: Timestamp when last time marketing preference - // was updated. Could be empty, if user wasn't offered a selection yet. + // LastUpdatedTimestamp: Timestamp when last time marketing preference was + // updated. Could be empty, if user wasn't offered a selection yet. LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ExplicitMarketingPreference") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "ExplicitMarketingPreference") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExplicitMarketingPreference") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExplicitMarketingPreference") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) { +func (s TestOrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) { type NoMethod TestOrderCustomerMarketingRightsInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrderLineItem struct { // Product: Required. Product data from the time of the order placement. Product *TestOrderLineItemProduct `json:"product,omitempty"` - // QuantityOrdered: Required. Number of items ordered. QuantityOrdered int64 `json:"quantityOrdered,omitempty"` - // ReturnInfo: Required. Details of the return policy for the line item. ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"` - - // ShippingDetails: Required. Details of the requested shipping for the - // line item. + // ShippingDetails: Required. Details of the requested shipping for the line + // item. ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"` - // UnitTax: Deprecated. Ignored if provided. UnitTax *Price `json:"unitTax,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Product") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Product") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Product") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Product") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrderLineItem) MarshalJSON() ([]byte, error) { +func (s TestOrderLineItem) MarshalJSON() ([]byte, error) { type NoMethod TestOrderLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrderLineItemProduct struct { // Brand: Required. Brand of the item. Brand string `json:"brand,omitempty"` - // Channel: Deprecated. Acceptable values are: - "online" Channel string `json:"channel,omitempty"` - - // Condition: Required. Condition or state of the item. Acceptable - // values are: - "new" + // Condition: Required. Condition or state of the item. Acceptable values are: + // - "new" Condition string `json:"condition,omitempty"` - - // ContentLanguage: Required. The two-letter ISO 639-1 language code for - // the item. Acceptable values are: - "en" - "fr" + // ContentLanguage: Required. The two-letter ISO 639-1 language code for the + // item. Acceptable values are: - "en" - "fr" ContentLanguage string `json:"contentLanguage,omitempty"` - // Fees: Fees for the item. Optional. Fees []*OrderLineItemProductFee `json:"fees,omitempty"` - // Gtin: Global Trade Item Number (GTIN) of the item. Optional. Gtin string `json:"gtin,omitempty"` - // ImageLink: Required. URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` - // ItemGroupId: Shared identifier for all variants of the same product. // Optional. ItemGroupId string `json:"itemGroupId,omitempty"` - // Mpn: Manufacturer Part Number (MPN) of the item. Optional. Mpn string `json:"mpn,omitempty"` - // OfferId: Required. An identifier of the item. OfferId string `json:"offerId,omitempty"` - - // Price: Required. The price for the product. Tax is automatically - // calculated for orders where marketplace facilitator tax laws are - // applicable. Otherwise, tax settings from Merchant Center are applied. + // Price: Required. The price for the product. Tax is automatically calculated + // for orders where marketplace facilitator tax laws are applicable. Otherwise, + // tax settings from Merchant Center are applied. Price *Price `json:"price,omitempty"` - - // TargetCountry: Required. The CLDR territory // code of the target - // country of the product. + // TargetCountry: Required. The CLDR territory // code of the target country of + // the product. TargetCountry string `json:"targetCountry,omitempty"` - // Title: Required. The title of the product. Title string `json:"title,omitempty"` - // VariantAttributes: Variant attributes for the item. Optional. VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Brand") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Brand") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Brand") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrderLineItemProduct) MarshalJSON() ([]byte, error) { +func (s TestOrderLineItemProduct) MarshalJSON() ([]byte, error) { type NoMethod TestOrderLineItemProduct - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrderPaymentMethod struct { - // ExpirationMonth: The card expiration month (January = 1, February = 2 - // etc.). + // ExpirationMonth: The card expiration month (January = 1, February = 2 etc.). ExpirationMonth int64 `json:"expirationMonth,omitempty"` - // ExpirationYear: The card expiration year (4-digit, e.g. 2015). ExpirationYear int64 `json:"expirationYear,omitempty"` - // LastFourDigits: The last four digits of the card number. LastFourDigits string `json:"lastFourDigits,omitempty"` - - // PredefinedBillingAddress: The billing address. Acceptable values are: - // - "dwight" - "jim" - "pam" + // PredefinedBillingAddress: The billing address. Acceptable values are: - + // "dwight" - "jim" - "pam" PredefinedBillingAddress string `json:"predefinedBillingAddress,omitempty"` - - // Type: The type of instrument. Note that real orders might have - // different values than the four values accepted by `createTestOrder`. - // Acceptable values are: - "AMEX" - "DISCOVER" - "MASTERCARD" - - // "VISA" + // Type: The type of instrument. Note that real orders might have different + // values than the four values accepted by `createTestOrder`. Acceptable values + // are: - "AMEX" - "DISCOVER" - "MASTERCARD" - "VISA" Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpirationMonth") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpirationMonth") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExpirationMonth") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrderPaymentMethod) MarshalJSON() ([]byte, error) { +func (s TestOrderPaymentMethod) MarshalJSON() ([]byte, error) { type NoMethod TestOrderPaymentMethod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TransitTable struct { - // PostalCodeGroupNames: A list of postal group names. The last value - // can be "all other locations". Example: `["zone 1", "zone 2", "all - // other locations"]`. The referred postal code groups must match the - // delivery country of the service. - PostalCodeGroupNames []string `json:"postalCodeGroupNames,omitempty"` - - Rows []*TransitTableTransitTimeRow `json:"rows,omitempty"` - - // TransitTimeLabels: A list of transit time labels. The last value can - // be "all other labels". Example: `["food", "electronics", "all other + // PostalCodeGroupNames: A list of postal group names. The last value can be + // "all other locations". Example: `["zone 1", "zone 2", "all other + // locations"]`. The referred postal code groups must match the delivery + // country of the service. + PostalCodeGroupNames []string `json:"postalCodeGroupNames,omitempty"` + Rows []*TransitTableTransitTimeRow `json:"rows,omitempty"` + // TransitTimeLabels: A list of transit time labels. The last value can be + // "all other labels". Example: `["food", "electronics", "all other // labels"]`. TransitTimeLabels []string `json:"transitTimeLabels,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PostalCodeGroupNames") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "PostalCodeGroupNames") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PostalCodeGroupNames") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PostalCodeGroupNames") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TransitTable) MarshalJSON() ([]byte, error) { +func (s TransitTable) MarshalJSON() ([]byte, error) { type NoMethod TransitTable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TransitTableTransitTimeRow struct { Values []*TransitTableTransitTimeRowTransitTimeValue `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TransitTableTransitTimeRow) MarshalJSON() ([]byte, error) { +func (s TransitTableTransitTimeRow) MarshalJSON() ([]byte, error) { type NoMethod TransitTableTransitTimeRow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TransitTableTransitTimeRowTransitTimeValue struct { // MaxTransitTimeInDays: Must be greater than or equal to // `minTransitTimeInDays`. MaxTransitTimeInDays int64 `json:"maxTransitTimeInDays,omitempty"` - - // MinTransitTimeInDays: Transit time range (min-max) in business days. - // 0 means same day delivery, 1 means next day delivery. + // MinTransitTimeInDays: Transit time range (min-max) in business days. 0 means + // same day delivery, 1 means next day delivery. MinTransitTimeInDays int64 `json:"minTransitTimeInDays,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "MaxTransitTimeInDays") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "MaxTransitTimeInDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxTransitTimeInDays") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MaxTransitTimeInDays") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TransitTableTransitTimeRowTransitTimeValue) MarshalJSON() ([]byte, error) { +func (s TransitTableTransitTimeRowTransitTimeValue) MarshalJSON() ([]byte, error) { type NoMethod TransitTableTransitTimeRowTransitTimeValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UnitInvoice struct { - // AdditionalCharges: Additional charges for a unit, e.g. shipping - // costs. + // AdditionalCharges: Additional charges for a unit, e.g. shipping costs. AdditionalCharges []*UnitInvoiceAdditionalCharge `json:"additionalCharges,omitempty"` - // Promotions: Deprecated. Promotions []*Promotion `json:"promotions,omitempty"` - // UnitPricePretax: [required] Price of the unit, before applying taxes. UnitPricePretax *Price `json:"unitPricePretax,omitempty"` - // UnitPriceTaxes: Tax amounts to apply to the unit price. UnitPriceTaxes []*UnitInvoiceTaxLine `json:"unitPriceTaxes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalCharges") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalCharges") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalCharges") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalCharges") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnitInvoice) MarshalJSON() ([]byte, error) { +func (s UnitInvoice) MarshalJSON() ([]byte, error) { type NoMethod UnitInvoice - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UnitInvoiceAdditionalCharge struct { // AdditionalChargeAmount: [required] Amount of the additional charge. AdditionalChargeAmount *Amount `json:"additionalChargeAmount,omitempty"` - // AdditionalChargePromotions: Deprecated. AdditionalChargePromotions []*Promotion `json:"additionalChargePromotions,omitempty"` - - // Type: [required] Type of the additional charge. Acceptable values - // are: - "shipping" + // Type: [required] Type of the additional charge. Acceptable values are: - + // "shipping" Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdditionalChargeAmount") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalChargeAmount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalChargeAmount") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalChargeAmount") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnitInvoiceAdditionalCharge) MarshalJSON() ([]byte, error) { +func (s UnitInvoiceAdditionalCharge) MarshalJSON() ([]byte, error) { type NoMethod UnitInvoiceAdditionalCharge - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UnitInvoiceTaxLine struct { // TaxAmount: [required] Tax amount for the tax type. TaxAmount *Price `json:"taxAmount,omitempty"` - - // TaxName: Optional name of the tax type. This should only be provided - // if `taxType` is `otherFeeTax`. + // TaxName: Optional name of the tax type. This should only be provided if + // `taxType` is `otherFeeTax`. TaxName string `json:"taxName,omitempty"` - - // TaxType: [required] Type of the tax. Acceptable values are: - - // "otherFee" - "otherFeeTax" - "sales" + // TaxType: [required] Type of the tax. Acceptable values are: - "otherFee" - + // "otherFeeTax" - "sales" TaxType string `json:"taxType,omitempty"` - // ForceSendFields is a list of field names (e.g. "TaxAmount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaxAmount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "TaxAmount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnitInvoiceTaxLine) MarshalJSON() ([]byte, error) { +func (s UnitInvoiceTaxLine) MarshalJSON() ([]byte, error) { type NoMethod UnitInvoiceTaxLine - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Value: The single value of a rate group or the value of a rate group -// table's cell. Exactly one of `noShipping`, `flatRate`, -// `pricePercentage`, `carrierRateName`, `subtableName` must be set. +// Value: The single value of a rate group or the value of a rate group table's +// cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`, +// `carrierRateName`, `subtableName` must be set. type Value struct { - // CarrierRateName: The name of a carrier rate referring to a carrier - // rate defined in the same rate group. Can only be set if all other - // fields are not set. - CarrierRateName string `json:"carrierRateName,omitempty"` - - // FlatRate: A flat rate. Can only be set if all other fields are not + // CarrierRateName: The name of a carrier rate referring to a carrier rate + // defined in the same rate group. Can only be set if all other fields are not // set. + CarrierRateName string `json:"carrierRateName,omitempty"` + // FlatRate: A flat rate. Can only be set if all other fields are not set. FlatRate *Price `json:"flatRate,omitempty"` - - // NoShipping: If true, then the product can't ship. Must be true when - // set, can only be set if all other fields are not set. + // NoShipping: If true, then the product can't ship. Must be true when set, can + // only be set if all other fields are not set. NoShipping bool `json:"noShipping,omitempty"` - // PricePercentage: A percentage of the price represented as a number in - // decimal notation (e.g., "5.4"). Can only be set if all other fields - // are not set. + // decimal notation (e.g., "5.4"). Can only be set if all other fields are + // not set. PricePercentage string `json:"pricePercentage,omitempty"` - - // SubtableName: The name of a subtable. Can only be set in table cells - // (i.e., not for single values), and only if all other fields are not - // set. + // SubtableName: The name of a subtable. Can only be set in table cells (i.e., + // not for single values), and only if all other fields are not set. SubtableName string `json:"subtableName,omitempty"` - // ForceSendFields is a list of field names (e.g. "CarrierRateName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CarrierRateName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CarrierRateName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Value) MarshalJSON() ([]byte, error) { +func (s Value) MarshalJSON() ([]byte, error) { type NoMethod Value - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Warehouse: A fulfillment warehouse, which stores and handles -// inventory. +// Warehouse: A fulfillment warehouse, which stores and handles inventory. type Warehouse struct { - // BusinessDayConfig: Business days of the warehouse. If not set, will - // be Monday to Friday by default. + // BusinessDayConfig: Business days of the warehouse. If not set, will be + // Monday to Friday by default. BusinessDayConfig *BusinessDayConfig `json:"businessDayConfig,omitempty"` - - // CutoffTime: Required. The latest time of day that an order can be - // accepted and begin processing. Later orders will be processed in the - // next day. The time is based on the warehouse postal code. + // CutoffTime: Required. The latest time of day that an order can be accepted + // and begin processing. Later orders will be processed in the next day. The + // time is based on the warehouse postal code. CutoffTime *WarehouseCutoffTime `json:"cutoffTime,omitempty"` - - // HandlingDays: Required. The number of days it takes for this - // warehouse to pack up and ship an item. This is on the warehouse - // level, but can be overridden on the offer level based on the - // attributes of an item. + // HandlingDays: Required. The number of days it takes for this warehouse to + // pack up and ship an item. This is on the warehouse level, but can be + // overridden on the offer level based on the attributes of an item. HandlingDays int64 `json:"handlingDays,omitempty,string"` - - // Name: Required. The name of the warehouse. Must be unique within - // account. + // Name: Required. The name of the warehouse. Must be unique within account. Name string `json:"name,omitempty"` - // ShippingAddress: Required. Shipping address of the warehouse. ShippingAddress *Address `json:"shippingAddress,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BusinessDayConfig") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BusinessDayConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BusinessDayConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BusinessDayConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Warehouse) MarshalJSON() ([]byte, error) { +func (s Warehouse) MarshalJSON() ([]byte, error) { type NoMethod Warehouse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type WarehouseBasedDeliveryTime struct { // Carrier: Required. Carrier, such as "UPS" or "Fedex". The list of - // supported carriers can be retrieved via the `listSupportedCarriers` - // method. + // supported carriers can be retrieved via the `listSupportedCarriers` method. Carrier string `json:"carrier,omitempty"` - - // CarrierService: Required. Carrier service, such as "ground" or "2 - // days". The list of supported services for a carrier can be retrieved - // via the `listSupportedCarriers` method. The name of the service must - // be in the eddSupportedServices list. + // CarrierService: Required. Carrier service, such as "ground" or "2 days". + // The list of supported services for a carrier can be retrieved via the + // `listSupportedCarriers` method. The name of the service must be in the + // eddSupportedServices list. CarrierService string `json:"carrierService,omitempty"` - // OriginAdministrativeArea: Shipping origin's state. OriginAdministrativeArea string `json:"originAdministrativeArea,omitempty"` - // OriginCity: Shipping origin's city. OriginCity string `json:"originCity,omitempty"` - - // OriginCountry: Shipping origin's country represented as a CLDR - // territory code - // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml). + // OriginCountry: Shipping origin's country represented as a CLDR territory + // code (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml). OriginCountry string `json:"originCountry,omitempty"` - // OriginPostalCode: Shipping origin. OriginPostalCode string `json:"originPostalCode,omitempty"` - // OriginStreetAddress: Shipping origin's street address OriginStreetAddress string `json:"originStreetAddress,omitempty"` - - // WarehouseName: The name of the warehouse. Warehouse name need to be - // matched with name. If warehouseName is set, the below fields will be - // ignored. The warehouse info will be read from warehouse. + // WarehouseName: The name of the warehouse. Warehouse name need to be matched + // with name. If warehouseName is set, the below fields will be ignored. The + // warehouse info will be read from warehouse. WarehouseName string `json:"warehouseName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WarehouseBasedDeliveryTime) MarshalJSON() ([]byte, error) { +func (s WarehouseBasedDeliveryTime) MarshalJSON() ([]byte, error) { type NoMethod WarehouseBasedDeliveryTime - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type WarehouseCutoffTime struct { - // Hour: Required. Hour (24-hour clock) of the cutoff time until which - // an order has to be placed to be processed in the same day by the - // warehouse. Hour is based on the timezone of warehouse. + // Hour: Required. Hour (24-hour clock) of the cutoff time until which an order + // has to be placed to be processed in the same day by the warehouse. Hour is + // based on the timezone of warehouse. Hour int64 `json:"hour,omitempty"` - - // Minute: Required. Minute of the cutoff time until which an order has - // to be placed to be processed in the same day by the warehouse. Minute - // is based on the timezone of warehouse. + // Minute: Required. Minute of the cutoff time until which an order has to be + // placed to be processed in the same day by the warehouse. Minute is based on + // the timezone of warehouse. Minute int64 `json:"minute,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Hour") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hour") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Hour") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Hour") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WarehouseCutoffTime) MarshalJSON() ([]byte, error) { +func (s WarehouseCutoffTime) MarshalJSON() ([]byte, error) { type NoMethod WarehouseCutoffTime - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Weight struct { - // Unit: Required. The weight unit. Acceptable values are: - "kg" - - // "lb" + // Unit: Required. The weight unit. Acceptable values are: - "kg" - "lb" Unit string `json:"unit,omitempty"` - - // Value: Required. The weight represented as a number. The weight can - // have a maximum precision of four decimal places. + // Value: Required. The weight represented as a number. The weight can have a + // maximum precision of four decimal places. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Unit") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Unit") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Unit") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Unit") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Weight) MarshalJSON() ([]byte, error) { +func (s Weight) MarshalJSON() ([]byte, error) { type NoMethod Weight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "content.accounts.authinfo": - type AccountsAuthinfoCall struct { s *APIService urlParams_ gensupport.URLParams @@ -11824,33 +9063,29 @@ func (r *AccountsService) Authinfo() *AccountsAuthinfoCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAuthinfoCall) Fields(s ...googleapi.Field) *AccountsAuthinfoCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAuthinfoCall) IfNoneMatch(entityTag string) *AccountsAuthinfoCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAuthinfoCall) Context(ctx context.Context) *AccountsAuthinfoCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAuthinfoCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11859,12 +9094,7 @@ func (c *AccountsAuthinfoCall) Header() http.Header { } func (c *AccountsAuthinfoCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11878,16 +9108,15 @@ func (c *AccountsAuthinfoCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.authinfo" call. -// Exactly one of *AccountsAuthInfoResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *AccountsAuthInfoResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountsAuthinfoCall) Do(opts ...googleapi.CallOption) (*AccountsAuthInfoResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11895,17 +9124,17 @@ func (c *AccountsAuthinfoCall) Do(opts ...googleapi.CallOption) (*AccountsAuthIn if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsAuthInfoResponse{ ServerResponse: googleapi.ServerResponse{ @@ -11918,25 +9147,7 @@ func (c *AccountsAuthinfoCall) Do(opts ...googleapi.CallOption) (*AccountsAuthIn return nil, err } return ret, nil - // { - // "description": "Returns information about the authenticated user.", - // "flatPath": "accounts/authinfo", - // "httpMethod": "GET", - // "id": "content.accounts.authinfo", - // "parameterOrder": [], - // "parameters": {}, - // "path": "accounts/authinfo", - // "response": { - // "$ref": "AccountsAuthInfoResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounts.claimwebsite": +} type AccountsClaimwebsiteCall struct { s *APIService @@ -11950,10 +9161,9 @@ type AccountsClaimwebsiteCall struct { // Claimwebsite: Claims the website of a Merchant Center sub-account. // // - accountId: The ID of the account whose website is claimed. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *AccountsService) Claimwebsite(merchantId uint64, accountId uint64) *AccountsClaimwebsiteCall { c := &AccountsClaimwebsiteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -11962,32 +9172,30 @@ func (r *AccountsService) Claimwebsite(merchantId uint64, accountId uint64) *Acc } // Overwrite sets the optional parameter "overwrite": Only available to -// selected merchants. When set to `True`, this flag removes any -// existing claim on the requested website by another account and -// replaces it with a claim from this account. +// selected merchants. When set to `True`, this flag removes any existing claim +// on the requested website by another account and replaces it with a claim +// from this account. func (c *AccountsClaimwebsiteCall) Overwrite(overwrite bool) *AccountsClaimwebsiteCall { c.urlParams_.Set("overwrite", fmt.Sprint(overwrite)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsClaimwebsiteCall) Fields(s ...googleapi.Field) *AccountsClaimwebsiteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsClaimwebsiteCall) Context(ctx context.Context) *AccountsClaimwebsiteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsClaimwebsiteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11996,12 +9204,7 @@ func (c *AccountsClaimwebsiteCall) Header() http.Header { } func (c *AccountsClaimwebsiteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -12016,16 +9219,15 @@ func (c *AccountsClaimwebsiteCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.claimwebsite" call. -// Exactly one of *AccountsClaimWebsiteResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountsClaimWebsiteResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsClaimWebsiteResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsClaimWebsiteResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12033,17 +9235,17 @@ func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsCl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsClaimWebsiteResponse{ ServerResponse: googleapi.ServerResponse{ @@ -12056,48 +9258,7 @@ func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsCl return nil, err } return ret, nil - // { - // "description": "Claims the website of a Merchant Center sub-account.", - // "flatPath": "{merchantId}/accounts/{accountId}/claimwebsite", - // "httpMethod": "POST", - // "id": "content.accounts.claimwebsite", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account whose website is claimed.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "overwrite": { - // "description": "Only available to selected merchants. When set to `True`, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "{merchantId}/accounts/{accountId}/claimwebsite", - // "response": { - // "$ref": "AccountsClaimWebsiteResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounts.custombatch": +} type AccountsCustombatchCall struct { s *APIService @@ -12107,40 +9268,38 @@ type AccountsCustombatchCall struct { header_ http.Header } -// Custombatch: Retrieves, inserts, updates, and deletes multiple -// Merchant Center (sub-)accounts in a single request. +// Custombatch: Retrieves, inserts, updates, and deletes multiple Merchant +// Center (sub-)accounts in a single request. func (r *AccountsService) Custombatch(accountscustombatchrequest *AccountsCustomBatchRequest) *AccountsCustombatchCall { c := &AccountsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountscustombatchrequest = accountscustombatchrequest return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *AccountsCustombatchCall) DryRun(dryRun bool) *AccountsCustombatchCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsCustombatchCall) Fields(s ...googleapi.Field) *AccountsCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsCustombatchCall) Context(ctx context.Context) *AccountsCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12149,18 +9308,12 @@ func (c *AccountsCustombatchCall) Header() http.Header { } func (c *AccountsCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountscustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/batch") @@ -12170,16 +9323,15 @@ func (c *AccountsCustombatchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.custombatch" call. -// Exactly one of *AccountsCustomBatchResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *AccountsCustomBatchResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *AccountsCustomBatchResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountsCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountsCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12187,17 +9339,17 @@ func (c *AccountsCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountsCus if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -12210,34 +9362,7 @@ func (c *AccountsCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountsCus return nil, err } return ret, nil - // { - // "description": "Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.", - // "flatPath": "accounts/batch", - // "httpMethod": "POST", - // "id": "content.accounts.custombatch", - // "parameterOrder": [], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "accounts/batch", - // "request": { - // "$ref": "AccountsCustomBatchRequest" - // }, - // "response": { - // "$ref": "AccountsCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounts.delete": +} type AccountsDeleteCall struct { s *APIService @@ -12251,9 +9376,8 @@ type AccountsDeleteCall struct { // Delete: Deletes a Merchant Center sub-account. // // - accountId: The ID of the account. -// - merchantId: The ID of the managing account. This must be a -// multi-client account, and accountId must be the ID of a sub-account -// of this account. +// - merchantId: The ID of the managing account. This must be a multi-client +// account, and accountId must be the ID of a sub-account of this account. func (r *AccountsService) Delete(merchantId uint64, accountId uint64) *AccountsDeleteCall { c := &AccountsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -12261,39 +9385,37 @@ func (r *AccountsService) Delete(merchantId uint64, accountId uint64) *AccountsD return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *AccountsDeleteCall) DryRun(dryRun bool) *AccountsDeleteCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } -// Force sets the optional parameter "force": Flag to delete -// sub-accounts with products. The default value is false. +// Force sets the optional parameter "force": Flag to delete sub-accounts with +// products. The default value is false. func (c *AccountsDeleteCall) Force(force bool) *AccountsDeleteCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsDeleteCall) Fields(s ...googleapi.Field) *AccountsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsDeleteCall) Context(ctx context.Context) *AccountsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12302,12 +9424,7 @@ func (c *AccountsDeleteCall) Header() http.Header { } func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -12322,7 +9439,7 @@ func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.delete" call. @@ -12334,54 +9451,10 @@ func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a Merchant Center sub-account.", - // "flatPath": "{merchantId}/accounts/{accountId}", - // "httpMethod": "DELETE", - // "id": "content.accounts.delete", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "force": { - // "default": "false", - // "description": "Flag to delete sub-accounts with products. The default value is false.", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the managing account. This must be a multi-client account, and accountId must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/accounts/{accountId}", - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounts.get": +} type AccountsGetCall struct { s *APIService @@ -12396,10 +9469,9 @@ type AccountsGetCall struct { // Get: Retrieves a Merchant Center account. // // - accountId: The ID of the account. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetCall { c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -12408,33 +9480,29 @@ func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12443,12 +9511,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12466,16 +9529,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12483,17 +9544,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -12506,43 +9567,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a Merchant Center account.", - // "flatPath": "{merchantId}/accounts/{accountId}", - // "httpMethod": "GET", - // "id": "content.accounts.get", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/accounts/{accountId}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounts.insert": +} type AccountsInsertCall struct { s *APIService @@ -12555,8 +9580,8 @@ type AccountsInsertCall struct { // Insert: Creates a Merchant Center sub-account. // -// - merchantId: The ID of the managing account. This must be a -// multi-client account. +// - merchantId: The ID of the managing account. This must be a multi-client +// account. func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsInsertCall { c := &AccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -12564,32 +9589,30 @@ func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsI return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *AccountsInsertCall) DryRun(dryRun bool) *AccountsInsertCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsInsertCall) Fields(s ...googleapi.Field) *AccountsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsInsertCall) Context(ctx context.Context) *AccountsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12598,18 +9621,12 @@ func (c *AccountsInsertCall) Header() http.Header { } func (c *AccountsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts") @@ -12622,16 +9639,14 @@ func (c *AccountsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.insert" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12639,17 +9654,17 @@ func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -12662,43 +9677,7 @@ func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Creates a Merchant Center sub-account.", - // "flatPath": "{merchantId}/accounts", - // "httpMethod": "POST", - // "id": "content.accounts.insert", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the managing account. This must be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounts.link": +} type AccountsLinkCall struct { s *APIService @@ -12710,14 +9689,13 @@ type AccountsLinkCall struct { header_ http.Header } -// Link: Performs an action on a link between two Merchant Center -// accounts, namely accountId and linkedAccountId. +// Link: Performs an action on a link between two Merchant Center accounts, +// namely accountId and linkedAccountId. // // - accountId: The ID of the account that should be linked. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *AccountsService) Link(merchantId uint64, accountId uint64, accountslinkrequest *AccountsLinkRequest) *AccountsLinkCall { c := &AccountsLinkCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -12727,23 +9705,21 @@ func (r *AccountsService) Link(merchantId uint64, accountId uint64, accountslink } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsLinkCall) Fields(s ...googleapi.Field) *AccountsLinkCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsLinkCall) Context(ctx context.Context) *AccountsLinkCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsLinkCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12752,18 +9728,12 @@ func (c *AccountsLinkCall) Header() http.Header { } func (c *AccountsLinkCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountslinkrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/link") @@ -12777,16 +9747,15 @@ func (c *AccountsLinkCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.link" call. -// Exactly one of *AccountsLinkResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountsLinkResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsLinkResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsLinkCall) Do(opts ...googleapi.CallOption) (*AccountsLinkResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12794,17 +9763,17 @@ func (c *AccountsLinkCall) Do(opts ...googleapi.CallOption) (*AccountsLinkRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsLinkResponse{ ServerResponse: googleapi.ServerResponse{ @@ -12817,46 +9786,7 @@ func (c *AccountsLinkCall) Do(opts ...googleapi.CallOption) (*AccountsLinkRespon return nil, err } return ret, nil - // { - // "description": "Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.", - // "flatPath": "{merchantId}/accounts/{accountId}/link", - // "httpMethod": "POST", - // "id": "content.accounts.link", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account that should be linked.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/accounts/{accountId}/link", - // "request": { - // "$ref": "AccountsLinkRequest" - // }, - // "response": { - // "$ref": "AccountsLinkResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounts.list": +} type AccountsListCall struct { s *APIService @@ -12869,56 +9799,52 @@ type AccountsListCall struct { // List: Lists the sub-accounts in your Merchant Center account. // -// - merchantId: The ID of the managing account. This must be a -// multi-client account. +// - merchantId: The ID of the managing account. This must be a multi-client +// account. func (r *AccountsService) List(merchantId uint64) *AccountsListCall { c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of accounts to return in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// accounts to return in the response, used for paging. func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12927,12 +9853,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12949,16 +9870,15 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.list" call. -// Exactly one of *AccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12966,17 +9886,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -12989,43 +9909,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon return nil, err } return ret, nil - // { - // "description": "Lists the sub-accounts in your Merchant Center account.", - // "flatPath": "{merchantId}/accounts", - // "httpMethod": "GET", - // "id": "content.accounts.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "maxResults": { - // "description": "The maximum number of accounts to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the managing account. This must be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/accounts", - // "response": { - // "$ref": "AccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -13033,7 +9916,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // The provided context supersedes any context provided to the Context method. func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -13049,8 +9932,6 @@ func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListRespon } } -// method id "content.accounts.update": - type AccountsUpdateCall struct { s *APIService merchantId uint64 @@ -13061,14 +9942,13 @@ type AccountsUpdateCall struct { header_ http.Header } -// Update: Updates a Merchant Center account. Any fields that are not -// provided are deleted from the resource. +// Update: Updates a Merchant Center account. Any fields that are not provided +// are deleted from the resource. // // - accountId: The ID of the account. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *Account) *AccountsUpdateCall { c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -13077,32 +9957,30 @@ func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *A return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *AccountsUpdateCall) DryRun(dryRun bool) *AccountsUpdateCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13111,18 +9989,12 @@ func (c *AccountsUpdateCall) Header() http.Header { } func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}") @@ -13136,16 +10008,14 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13153,17 +10023,17 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -13176,51 +10046,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.", - // "flatPath": "{merchantId}/accounts/{accountId}", - // "httpMethod": "PUT", - // "id": "content.accounts.update", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/accounts/{accountId}", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accountstatuses.custombatch": +} type AccountstatusesCustombatchCall struct { s *APIService @@ -13230,8 +10056,8 @@ type AccountstatusesCustombatchCall struct { header_ http.Header } -// Custombatch: Retrieves multiple Merchant Center account statuses in a -// single request. +// Custombatch: Retrieves multiple Merchant Center account statuses in a single +// request. func (r *AccountstatusesService) Custombatch(accountstatusescustombatchrequest *AccountstatusesCustomBatchRequest) *AccountstatusesCustombatchCall { c := &AccountstatusesCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountstatusescustombatchrequest = accountstatusescustombatchrequest @@ -13239,23 +10065,21 @@ func (r *AccountstatusesService) Custombatch(accountstatusescustombatchrequest * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountstatusesCustombatchCall) Fields(s ...googleapi.Field) *AccountstatusesCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountstatusesCustombatchCall) Context(ctx context.Context) *AccountstatusesCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountstatusesCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13264,18 +10088,12 @@ func (c *AccountstatusesCustombatchCall) Header() http.Header { } func (c *AccountstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountstatusescustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accountstatuses/batch") @@ -13285,17 +10103,15 @@ func (c *AccountstatusesCustombatchCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accountstatuses.custombatch" call. -// Exactly one of *AccountstatusesCustomBatchResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountstatusesCustomBatchResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountstatusesCustomBatchResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountstatusesCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13303,17 +10119,17 @@ func (c *AccountstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*Acco if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountstatusesCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -13326,28 +10142,7 @@ func (c *AccountstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*Acco return nil, err } return ret, nil - // { - // "description": "Retrieves multiple Merchant Center account statuses in a single request.", - // "flatPath": "accountstatuses/batch", - // "httpMethod": "POST", - // "id": "content.accountstatuses.custombatch", - // "parameterOrder": [], - // "parameters": {}, - // "path": "accountstatuses/batch", - // "request": { - // "$ref": "AccountstatusesCustomBatchRequest" - // }, - // "response": { - // "$ref": "AccountstatusesCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accountstatuses.get": +} type AccountstatusesGetCall struct { s *APIService @@ -13359,14 +10154,13 @@ type AccountstatusesGetCall struct { header_ http.Header } -// Get: Retrieves the status of a Merchant Center account. No -// itemLevelIssues are returned for multi-client accounts. +// Get: Retrieves the status of a Merchant Center account. No itemLevelIssues +// are returned for multi-client accounts. // // - accountId: The ID of the account. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *AccountstatusesGetCall { c := &AccountstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -13374,42 +10168,38 @@ func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *Accou return c } -// Destinations sets the optional parameter "destinations": If set, only -// issues for the specified destinations are returned, otherwise only -// issues for the Shopping destination. +// Destinations sets the optional parameter "destinations": If set, only issues +// for the specified destinations are returned, otherwise only issues for the +// Shopping destination. func (c *AccountstatusesGetCall) Destinations(destinations ...string) *AccountstatusesGetCall { c.urlParams_.SetMulti("destinations", append([]string{}, destinations...)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountstatusesGetCall) Fields(s ...googleapi.Field) *AccountstatusesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountstatusesGetCall) IfNoneMatch(entityTag string) *AccountstatusesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountstatusesGetCall) Context(ctx context.Context) *AccountstatusesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountstatusesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13418,12 +10208,7 @@ func (c *AccountstatusesGetCall) Header() http.Header { } func (c *AccountstatusesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13441,16 +10226,14 @@ func (c *AccountstatusesGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accountstatuses.get" call. -// Exactly one of *AccountStatus or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AccountStatus.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountStatus.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatus, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13458,17 +10241,17 @@ func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatu if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountStatus{ ServerResponse: googleapi.ServerResponse{ @@ -13481,49 +10264,7 @@ func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatu return nil, err } return ret, nil - // { - // "description": "Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.", - // "flatPath": "{merchantId}/accountstatuses/{accountId}", - // "httpMethod": "GET", - // "id": "content.accountstatuses.get", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "destinations": { - // "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/accountstatuses/{accountId}", - // "response": { - // "$ref": "AccountStatus" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accountstatuses.list": +} type AccountstatusesListCall struct { s *APIService @@ -13537,65 +10278,60 @@ type AccountstatusesListCall struct { // List: Lists the statuses of the sub-accounts in your Merchant Center // account. // -// - merchantId: The ID of the managing account. This must be a -// multi-client account. +// - merchantId: The ID of the managing account. This must be a multi-client +// account. func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCall { c := &AccountstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// Destinations sets the optional parameter "destinations": If set, only -// issues for the specified destinations are returned, otherwise only -// issues for the Shopping destination. +// Destinations sets the optional parameter "destinations": If set, only issues +// for the specified destinations are returned, otherwise only issues for the +// Shopping destination. func (c *AccountstatusesListCall) Destinations(destinations ...string) *AccountstatusesListCall { c.urlParams_.SetMulti("destinations", append([]string{}, destinations...)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of account statuses to return in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// account statuses to return in the response, used for paging. func (c *AccountstatusesListCall) MaxResults(maxResults int64) *AccountstatusesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *AccountstatusesListCall) PageToken(pageToken string) *AccountstatusesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountstatusesListCall) Fields(s ...googleapi.Field) *AccountstatusesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountstatusesListCall) IfNoneMatch(entityTag string) *AccountstatusesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountstatusesListCall) Context(ctx context.Context) *AccountstatusesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountstatusesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13604,12 +10340,7 @@ func (c *AccountstatusesListCall) Header() http.Header { } func (c *AccountstatusesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13626,16 +10357,15 @@ func (c *AccountstatusesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accountstatuses.list" call. -// Exactly one of *AccountstatusesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *AccountstatusesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *AccountstatusesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*AccountstatusesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13643,17 +10373,17 @@ func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*Accountstat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountstatusesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -13666,49 +10396,6 @@ func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*Accountstat return nil, err } return ret, nil - // { - // "description": "Lists the statuses of the sub-accounts in your Merchant Center account.", - // "flatPath": "{merchantId}/accountstatuses", - // "httpMethod": "GET", - // "id": "content.accountstatuses.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "destinations": { - // "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of account statuses to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the managing account. This must be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/accountstatuses", - // "response": { - // "$ref": "AccountstatusesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -13716,7 +10403,7 @@ func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*Accountstat // The provided context supersedes any context provided to the Context method. func (c *AccountstatusesListCall) Pages(ctx context.Context, f func(*AccountstatusesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -13732,8 +10419,6 @@ func (c *AccountstatusesListCall) Pages(ctx context.Context, f func(*Accountstat } } -// method id "content.accounttax.custombatch": - type AccounttaxCustombatchCall struct { s *APIService accounttaxcustombatchrequest *AccounttaxCustomBatchRequest @@ -13742,40 +10427,38 @@ type AccounttaxCustombatchCall struct { header_ http.Header } -// Custombatch: Retrieves and updates tax settings of multiple accounts -// in a single request. +// Custombatch: Retrieves and updates tax settings of multiple accounts in a +// single request. func (r *AccounttaxService) Custombatch(accounttaxcustombatchrequest *AccounttaxCustomBatchRequest) *AccounttaxCustombatchCall { c := &AccounttaxCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accounttaxcustombatchrequest = accounttaxcustombatchrequest return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *AccounttaxCustombatchCall) DryRun(dryRun bool) *AccounttaxCustombatchCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccounttaxCustombatchCall) Fields(s ...googleapi.Field) *AccounttaxCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccounttaxCustombatchCall) Context(ctx context.Context) *AccounttaxCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccounttaxCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13784,18 +10467,12 @@ func (c *AccounttaxCustombatchCall) Header() http.Header { } func (c *AccounttaxCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accounttaxcustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accounttax/batch") @@ -13805,16 +10482,15 @@ func (c *AccounttaxCustombatchCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounttax.custombatch" call. -// Exactly one of *AccounttaxCustomBatchResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccounttaxCustomBatchResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccounttaxCustomBatchResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccounttaxCustombatchCall) Do(opts ...googleapi.CallOption) (*AccounttaxCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13822,17 +10498,17 @@ func (c *AccounttaxCustombatchCall) Do(opts ...googleapi.CallOption) (*Accountta if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccounttaxCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -13845,34 +10521,7 @@ func (c *AccounttaxCustombatchCall) Do(opts ...googleapi.CallOption) (*Accountta return nil, err } return ret, nil - // { - // "description": "Retrieves and updates tax settings of multiple accounts in a single request.", - // "flatPath": "accounttax/batch", - // "httpMethod": "POST", - // "id": "content.accounttax.custombatch", - // "parameterOrder": [], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "accounttax/batch", - // "request": { - // "$ref": "AccounttaxCustomBatchRequest" - // }, - // "response": { - // "$ref": "AccounttaxCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounttax.get": +} type AccounttaxGetCall struct { s *APIService @@ -13886,12 +10535,11 @@ type AccounttaxGetCall struct { // Get: Retrieves the tax settings of the account. // -// - accountId: The ID of the account for which to get/update account -// tax settings. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - accountId: The ID of the account for which to get/update account tax +// settings. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *AccounttaxService) Get(merchantId uint64, accountId uint64) *AccounttaxGetCall { c := &AccounttaxGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -13900,33 +10548,29 @@ func (r *AccounttaxService) Get(merchantId uint64, accountId uint64) *Accounttax } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccounttaxGetCall) Fields(s ...googleapi.Field) *AccounttaxGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccounttaxGetCall) IfNoneMatch(entityTag string) *AccounttaxGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccounttaxGetCall) Context(ctx context.Context) *AccounttaxGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccounttaxGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13935,12 +10579,7 @@ func (c *AccounttaxGetCall) Header() http.Header { } func (c *AccounttaxGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13958,16 +10597,14 @@ func (c *AccounttaxGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounttax.get" call. -// Exactly one of *AccountTax or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AccountTax.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountTax.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13975,17 +10612,17 @@ func (c *AccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountTax{ ServerResponse: googleapi.ServerResponse{ @@ -13998,43 +10635,7 @@ func (c *AccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error return nil, err } return ret, nil - // { - // "description": "Retrieves the tax settings of the account.", - // "flatPath": "{merchantId}/accounttax/{accountId}", - // "httpMethod": "GET", - // "id": "content.accounttax.get", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account for which to get/update account tax settings.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/accounttax/{accountId}", - // "response": { - // "$ref": "AccountTax" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.accounttax.list": +} type AccounttaxListCall struct { s *APIService @@ -14045,59 +10646,55 @@ type AccounttaxListCall struct { header_ http.Header } -// List: Lists the tax settings of the sub-accounts in your Merchant -// Center account. +// List: Lists the tax settings of the sub-accounts in your Merchant Center +// account. // -// - merchantId: The ID of the managing account. This must be a -// multi-client account. +// - merchantId: The ID of the managing account. This must be a multi-client +// account. func (r *AccounttaxService) List(merchantId uint64) *AccounttaxListCall { c := &AccounttaxListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of tax settings to return in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// tax settings to return in the response, used for paging. func (c *AccounttaxListCall) MaxResults(maxResults int64) *AccounttaxListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *AccounttaxListCall) PageToken(pageToken string) *AccounttaxListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccounttaxListCall) Fields(s ...googleapi.Field) *AccounttaxListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccounttaxListCall) IfNoneMatch(entityTag string) *AccounttaxListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccounttaxListCall) Context(ctx context.Context) *AccounttaxListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccounttaxListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14106,12 +10703,7 @@ func (c *AccounttaxListCall) Header() http.Header { } func (c *AccounttaxListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14128,16 +10720,15 @@ func (c *AccounttaxListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounttax.list" call. -// Exactly one of *AccounttaxListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccounttaxListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccounttaxListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccounttaxListCall) Do(opts ...googleapi.CallOption) (*AccounttaxListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14145,17 +10736,17 @@ func (c *AccounttaxListCall) Do(opts ...googleapi.CallOption) (*AccounttaxListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccounttaxListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14168,43 +10759,6 @@ func (c *AccounttaxListCall) Do(opts ...googleapi.CallOption) (*AccounttaxListRe return nil, err } return ret, nil - // { - // "description": "Lists the tax settings of the sub-accounts in your Merchant Center account.", - // "flatPath": "{merchantId}/accounttax", - // "httpMethod": "GET", - // "id": "content.accounttax.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "maxResults": { - // "description": "The maximum number of tax settings to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the managing account. This must be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/accounttax", - // "response": { - // "$ref": "AccounttaxListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -14212,7 +10766,7 @@ func (c *AccounttaxListCall) Do(opts ...googleapi.CallOption) (*AccounttaxListRe // The provided context supersedes any context provided to the Context method. func (c *AccounttaxListCall) Pages(ctx context.Context, f func(*AccounttaxListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -14228,8 +10782,6 @@ func (c *AccounttaxListCall) Pages(ctx context.Context, f func(*AccounttaxListRe } } -// method id "content.accounttax.update": - type AccounttaxUpdateCall struct { s *APIService merchantId uint64 @@ -14240,15 +10792,14 @@ type AccounttaxUpdateCall struct { header_ http.Header } -// Update: Updates the tax settings of the account. Any fields that are -// not provided are deleted from the resource. +// Update: Updates the tax settings of the account. Any fields that are not +// provided are deleted from the resource. // -// - accountId: The ID of the account for which to get/update account -// tax settings. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - accountId: The ID of the account for which to get/update account tax +// settings. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *AccounttaxService) Update(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxUpdateCall { c := &AccounttaxUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -14257,32 +10808,30 @@ func (r *AccounttaxService) Update(merchantId uint64, accountId uint64, accountt return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *AccounttaxUpdateCall) DryRun(dryRun bool) *AccounttaxUpdateCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccounttaxUpdateCall) Fields(s ...googleapi.Field) *AccounttaxUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccounttaxUpdateCall) Context(ctx context.Context) *AccounttaxUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccounttaxUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14291,18 +10840,12 @@ func (c *AccounttaxUpdateCall) Header() http.Header { } func (c *AccounttaxUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accounttax) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounttax/{accountId}") @@ -14316,16 +10859,14 @@ func (c *AccounttaxUpdateCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.accounttax.update" call. -// Exactly one of *AccountTax or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AccountTax.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountTax.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccounttaxUpdateCall) Do(opts ...googleapi.CallOption) (*AccountTax, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14333,17 +10874,17 @@ func (c *AccounttaxUpdateCall) Do(opts ...googleapi.CallOption) (*AccountTax, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountTax{ ServerResponse: googleapi.ServerResponse{ @@ -14356,51 +10897,7 @@ func (c *AccounttaxUpdateCall) Do(opts ...googleapi.CallOption) (*AccountTax, er return nil, err } return ret, nil - // { - // "description": "Updates the tax settings of the account. Any fields that are not provided are deleted from the resource.", - // "flatPath": "{merchantId}/accounttax/{accountId}", - // "httpMethod": "PUT", - // "id": "content.accounttax.update", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account for which to get/update account tax settings.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/accounttax/{accountId}", - // "request": { - // "$ref": "AccountTax" - // }, - // "response": { - // "$ref": "AccountTax" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.datafeeds.custombatch": +} type DatafeedsCustombatchCall struct { s *APIService @@ -14410,40 +10907,38 @@ type DatafeedsCustombatchCall struct { header_ http.Header } -// Custombatch: Deletes, fetches, gets, inserts and updates multiple -// datafeeds in a single request. +// Custombatch: Deletes, fetches, gets, inserts and updates multiple datafeeds +// in a single request. func (r *DatafeedsService) Custombatch(datafeedscustombatchrequest *DatafeedsCustomBatchRequest) *DatafeedsCustombatchCall { c := &DatafeedsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.datafeedscustombatchrequest = datafeedscustombatchrequest return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *DatafeedsCustombatchCall) DryRun(dryRun bool) *DatafeedsCustombatchCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatafeedsCustombatchCall) Fields(s ...googleapi.Field) *DatafeedsCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatafeedsCustombatchCall) Context(ctx context.Context) *DatafeedsCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatafeedsCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14452,18 +10947,12 @@ func (c *DatafeedsCustombatchCall) Header() http.Header { } func (c *DatafeedsCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeedscustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "datafeeds/batch") @@ -14473,16 +10962,15 @@ func (c *DatafeedsCustombatchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.custombatch" call. -// Exactly one of *DatafeedsCustomBatchResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DatafeedsCustomBatchResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DatafeedsCustomBatchResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DatafeedsCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedsCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14490,17 +10978,17 @@ func (c *DatafeedsCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedsC if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DatafeedsCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14513,34 +11001,7 @@ func (c *DatafeedsCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedsC return nil, err } return ret, nil - // { - // "description": "Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.", - // "flatPath": "datafeeds/batch", - // "httpMethod": "POST", - // "id": "content.datafeeds.custombatch", - // "parameterOrder": [], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "datafeeds/batch", - // "request": { - // "$ref": "DatafeedsCustomBatchRequest" - // }, - // "response": { - // "$ref": "DatafeedsCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.datafeeds.delete": +} type DatafeedsDeleteCall struct { s *APIService @@ -14551,12 +11012,11 @@ type DatafeedsDeleteCall struct { header_ http.Header } -// Delete: Deletes a datafeed configuration from your Merchant Center -// account. +// Delete: Deletes a datafeed configuration from your Merchant Center account. // // - datafeedId: The ID of the datafeed. -// - merchantId: The ID of the account that manages the datafeed. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that manages the datafeed. This account +// cannot be a multi-client account. func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *DatafeedsDeleteCall { c := &DatafeedsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -14564,32 +11024,30 @@ func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *Datafee return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *DatafeedsDeleteCall) DryRun(dryRun bool) *DatafeedsDeleteCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatafeedsDeleteCall) Fields(s ...googleapi.Field) *DatafeedsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatafeedsDeleteCall) Context(ctx context.Context) *DatafeedsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatafeedsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14598,12 +11056,7 @@ func (c *DatafeedsDeleteCall) Header() http.Header { } func (c *DatafeedsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -14618,7 +11071,7 @@ func (c *DatafeedsDeleteCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "datafeedId": strconv.FormatUint(c.datafeedId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.delete" call. @@ -14630,48 +11083,10 @@ func (c *DatafeedsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a datafeed configuration from your Merchant Center account.", - // "flatPath": "{merchantId}/datafeeds/{datafeedId}", - // "httpMethod": "DELETE", - // "id": "content.datafeeds.delete", - // "parameterOrder": [ - // "merchantId", - // "datafeedId" - // ], - // "parameters": { - // "datafeedId": { - // "description": "The ID of the datafeed.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the datafeed. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/datafeeds/{datafeedId}", - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.datafeeds.fetchnow": +} type DatafeedsFetchnowCall struct { s *APIService @@ -14682,13 +11097,13 @@ type DatafeedsFetchnowCall struct { header_ http.Header } -// Fetchnow: Invokes a fetch for the datafeed in your Merchant Center -// account. If you need to call this method more than once per day, we -// recommend you use the Products service to update your product data. +// Fetchnow: Invokes a fetch for the datafeed in your Merchant Center account. +// If you need to call this method more than once per day, we recommend you use +// the Products service to update your product data. // // - datafeedId: The ID of the datafeed to be fetched. -// - merchantId: The ID of the account that manages the datafeed. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that manages the datafeed. This account +// cannot be a multi-client account. func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *DatafeedsFetchnowCall { c := &DatafeedsFetchnowCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -14696,32 +11111,30 @@ func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *Dataf return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *DatafeedsFetchnowCall) DryRun(dryRun bool) *DatafeedsFetchnowCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatafeedsFetchnowCall) Fields(s ...googleapi.Field) *DatafeedsFetchnowCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatafeedsFetchnowCall) Context(ctx context.Context) *DatafeedsFetchnowCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatafeedsFetchnowCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14730,12 +11143,7 @@ func (c *DatafeedsFetchnowCall) Header() http.Header { } func (c *DatafeedsFetchnowCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -14750,16 +11158,15 @@ func (c *DatafeedsFetchnowCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "datafeedId": strconv.FormatUint(c.datafeedId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.fetchnow" call. -// Exactly one of *DatafeedsFetchNowResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *DatafeedsFetchNowResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *DatafeedsFetchNowResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetchNowResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14767,17 +11174,17 @@ func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DatafeedsFetchNowResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14790,48 +11197,7 @@ func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetc return nil, err } return ret, nil - // { - // "description": "Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.", - // "flatPath": "{merchantId}/datafeeds/{datafeedId}/fetchNow", - // "httpMethod": "POST", - // "id": "content.datafeeds.fetchnow", - // "parameterOrder": [ - // "merchantId", - // "datafeedId" - // ], - // "parameters": { - // "datafeedId": { - // "description": "The ID of the datafeed to be fetched.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the datafeed. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/datafeeds/{datafeedId}/fetchNow", - // "response": { - // "$ref": "DatafeedsFetchNowResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.datafeeds.get": +} type DatafeedsGetCall struct { s *APIService @@ -14843,12 +11209,11 @@ type DatafeedsGetCall struct { header_ http.Header } -// Get: Retrieves a datafeed configuration from your Merchant Center -// account. +// Get: Retrieves a datafeed configuration from your Merchant Center account. // // - datafeedId: The ID of the datafeed. -// - merchantId: The ID of the account that manages the datafeed. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that manages the datafeed. This account +// cannot be a multi-client account. func (r *DatafeedsService) Get(merchantId uint64, datafeedId uint64) *DatafeedsGetCall { c := &DatafeedsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -14857,33 +11222,29 @@ func (r *DatafeedsService) Get(merchantId uint64, datafeedId uint64) *DatafeedsG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatafeedsGetCall) Fields(s ...googleapi.Field) *DatafeedsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DatafeedsGetCall) IfNoneMatch(entityTag string) *DatafeedsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatafeedsGetCall) Context(ctx context.Context) *DatafeedsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatafeedsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14892,12 +11253,7 @@ func (c *DatafeedsGetCall) Header() http.Header { } func (c *DatafeedsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14915,16 +11271,14 @@ func (c *DatafeedsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "datafeedId": strconv.FormatUint(c.datafeedId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.get" call. -// Exactly one of *Datafeed or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Datafeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Datafeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DatafeedsGetCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14932,17 +11286,17 @@ func (c *DatafeedsGetCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Datafeed{ ServerResponse: googleapi.ServerResponse{ @@ -14955,43 +11309,7 @@ func (c *DatafeedsGetCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a datafeed configuration from your Merchant Center account.", - // "flatPath": "{merchantId}/datafeeds/{datafeedId}", - // "httpMethod": "GET", - // "id": "content.datafeeds.get", - // "parameterOrder": [ - // "merchantId", - // "datafeedId" - // ], - // "parameters": { - // "datafeedId": { - // "description": "The ID of the datafeed.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the datafeed. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/datafeeds/{datafeedId}", - // "response": { - // "$ref": "Datafeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.datafeeds.insert": +} type DatafeedsInsertCall struct { s *APIService @@ -15005,8 +11323,8 @@ type DatafeedsInsertCall struct { // Insert: Registers a datafeed configuration with your Merchant Center // account. // -// - merchantId: The ID of the account that manages the datafeed. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that manages the datafeed. This account +// cannot be a multi-client account. func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *DatafeedsInsertCall { c := &DatafeedsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -15014,32 +11332,30 @@ func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *Datafe return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *DatafeedsInsertCall) DryRun(dryRun bool) *DatafeedsInsertCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatafeedsInsertCall) Fields(s ...googleapi.Field) *DatafeedsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatafeedsInsertCall) Context(ctx context.Context) *DatafeedsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatafeedsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15048,18 +11364,12 @@ func (c *DatafeedsInsertCall) Header() http.Header { } func (c *DatafeedsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeed) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds") @@ -15072,16 +11382,14 @@ func (c *DatafeedsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.insert" call. -// Exactly one of *Datafeed or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Datafeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Datafeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DatafeedsInsertCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15089,17 +11397,17 @@ func (c *DatafeedsInsertCall) Do(opts ...googleapi.CallOption) (*Datafeed, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Datafeed{ ServerResponse: googleapi.ServerResponse{ @@ -15112,43 +11420,7 @@ func (c *DatafeedsInsertCall) Do(opts ...googleapi.CallOption) (*Datafeed, error return nil, err } return ret, nil - // { - // "description": "Registers a datafeed configuration with your Merchant Center account.", - // "flatPath": "{merchantId}/datafeeds", - // "httpMethod": "POST", - // "id": "content.datafeeds.insert", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the datafeed. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/datafeeds", - // "request": { - // "$ref": "Datafeed" - // }, - // "response": { - // "$ref": "Datafeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.datafeeds.list": +} type DatafeedsListCall struct { s *APIService @@ -15162,56 +11434,52 @@ type DatafeedsListCall struct { // List: Lists the configurations for datafeeds in your Merchant Center // account. // -// - merchantId: The ID of the account that manages the datafeeds. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that manages the datafeeds. This account +// cannot be a multi-client account. func (r *DatafeedsService) List(merchantId uint64) *DatafeedsListCall { c := &DatafeedsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of products to return in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// products to return in the response, used for paging. func (c *DatafeedsListCall) MaxResults(maxResults int64) *DatafeedsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *DatafeedsListCall) PageToken(pageToken string) *DatafeedsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatafeedsListCall) Fields(s ...googleapi.Field) *DatafeedsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DatafeedsListCall) IfNoneMatch(entityTag string) *DatafeedsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatafeedsListCall) Context(ctx context.Context) *DatafeedsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatafeedsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15220,12 +11488,7 @@ func (c *DatafeedsListCall) Header() http.Header { } func (c *DatafeedsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15242,16 +11505,15 @@ func (c *DatafeedsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.list" call. -// Exactly one of *DatafeedsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DatafeedsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DatafeedsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DatafeedsListCall) Do(opts ...googleapi.CallOption) (*DatafeedsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15259,17 +11521,17 @@ func (c *DatafeedsListCall) Do(opts ...googleapi.CallOption) (*DatafeedsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DatafeedsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15282,43 +11544,6 @@ func (c *DatafeedsListCall) Do(opts ...googleapi.CallOption) (*DatafeedsListResp return nil, err } return ret, nil - // { - // "description": "Lists the configurations for datafeeds in your Merchant Center account.", - // "flatPath": "{merchantId}/datafeeds", - // "httpMethod": "GET", - // "id": "content.datafeeds.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "maxResults": { - // "description": "The maximum number of products to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the datafeeds. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/datafeeds", - // "response": { - // "$ref": "DatafeedsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -15326,7 +11551,7 @@ func (c *DatafeedsListCall) Do(opts ...googleapi.CallOption) (*DatafeedsListResp // The provided context supersedes any context provided to the Context method. func (c *DatafeedsListCall) Pages(ctx context.Context, f func(*DatafeedsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15342,8 +11567,6 @@ func (c *DatafeedsListCall) Pages(ctx context.Context, f func(*DatafeedsListResp } } -// method id "content.datafeeds.update": - type DatafeedsUpdateCall struct { s *APIService merchantId uint64 @@ -15354,13 +11577,12 @@ type DatafeedsUpdateCall struct { header_ http.Header } -// Update: Updates a datafeed configuration of your Merchant Center -// account. Any fields that are not provided are deleted from the -// resource. +// Update: Updates a datafeed configuration of your Merchant Center account. +// Any fields that are not provided are deleted from the resource. // // - datafeedId: The ID of the datafeed. -// - merchantId: The ID of the account that manages the datafeed. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that manages the datafeed. This account +// cannot be a multi-client account. func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsUpdateCall { c := &DatafeedsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -15369,32 +11591,30 @@ func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *DatafeedsUpdateCall) DryRun(dryRun bool) *DatafeedsUpdateCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatafeedsUpdateCall) Fields(s ...googleapi.Field) *DatafeedsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatafeedsUpdateCall) Context(ctx context.Context) *DatafeedsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatafeedsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15403,18 +11623,12 @@ func (c *DatafeedsUpdateCall) Header() http.Header { } func (c *DatafeedsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeed) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}") @@ -15428,16 +11642,14 @@ func (c *DatafeedsUpdateCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "datafeedId": strconv.FormatUint(c.datafeedId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeeds.update" call. -// Exactly one of *Datafeed or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Datafeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Datafeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DatafeedsUpdateCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15445,17 +11657,17 @@ func (c *DatafeedsUpdateCall) Do(opts ...googleapi.CallOption) (*Datafeed, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Datafeed{ ServerResponse: googleapi.ServerResponse{ @@ -15468,51 +11680,7 @@ func (c *DatafeedsUpdateCall) Do(opts ...googleapi.CallOption) (*Datafeed, error return nil, err } return ret, nil - // { - // "description": "Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.", - // "flatPath": "{merchantId}/datafeeds/{datafeedId}", - // "httpMethod": "PUT", - // "id": "content.datafeeds.update", - // "parameterOrder": [ - // "merchantId", - // "datafeedId" - // ], - // "parameters": { - // "datafeedId": { - // "description": "The ID of the datafeed.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the datafeed. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/datafeeds/{datafeedId}", - // "request": { - // "$ref": "Datafeed" - // }, - // "response": { - // "$ref": "Datafeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.datafeedstatuses.custombatch": +} type DatafeedstatusesCustombatchCall struct { s *APIService @@ -15522,8 +11690,8 @@ type DatafeedstatusesCustombatchCall struct { header_ http.Header } -// Custombatch: Gets multiple Merchant Center datafeed statuses in a -// single request. +// Custombatch: Gets multiple Merchant Center datafeed statuses in a single +// request. func (r *DatafeedstatusesService) Custombatch(datafeedstatusescustombatchrequest *DatafeedstatusesCustomBatchRequest) *DatafeedstatusesCustombatchCall { c := &DatafeedstatusesCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.datafeedstatusescustombatchrequest = datafeedstatusescustombatchrequest @@ -15531,23 +11699,21 @@ func (r *DatafeedstatusesService) Custombatch(datafeedstatusescustombatchrequest } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatafeedstatusesCustombatchCall) Fields(s ...googleapi.Field) *DatafeedstatusesCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatafeedstatusesCustombatchCall) Context(ctx context.Context) *DatafeedstatusesCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatafeedstatusesCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15556,18 +11722,12 @@ func (c *DatafeedstatusesCustombatchCall) Header() http.Header { } func (c *DatafeedstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeedstatusescustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "datafeedstatuses/batch") @@ -15577,17 +11737,15 @@ func (c *DatafeedstatusesCustombatchCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeedstatuses.custombatch" call. -// Exactly one of *DatafeedstatusesCustomBatchResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DatafeedstatusesCustomBatchResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *DatafeedstatusesCustomBatchResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DatafeedstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedstatusesCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15595,17 +11753,17 @@ func (c *DatafeedstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*Dat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DatafeedstatusesCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15618,28 +11776,7 @@ func (c *DatafeedstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*Dat return nil, err } return ret, nil - // { - // "description": "Gets multiple Merchant Center datafeed statuses in a single request.", - // "flatPath": "datafeedstatuses/batch", - // "httpMethod": "POST", - // "id": "content.datafeedstatuses.custombatch", - // "parameterOrder": [], - // "parameters": {}, - // "path": "datafeedstatuses/batch", - // "request": { - // "$ref": "DatafeedstatusesCustomBatchRequest" - // }, - // "response": { - // "$ref": "DatafeedstatusesCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.datafeedstatuses.get": +} type DatafeedstatusesGetCall struct { s *APIService @@ -15651,12 +11788,11 @@ type DatafeedstatusesGetCall struct { header_ http.Header } -// Get: Retrieves the status of a datafeed from your Merchant Center -// account. +// Get: Retrieves the status of a datafeed from your Merchant Center account. // // - datafeedId: The ID of the datafeed. -// - merchantId: The ID of the account that manages the datafeed. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that manages the datafeed. This account +// cannot be a multi-client account. func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *DatafeedstatusesGetCall { c := &DatafeedstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -15664,54 +11800,50 @@ func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *Dat return c } -// Country sets the optional parameter "country": The country for which -// to get the datafeed status. If this parameter is provided then -// language must also be provided. Note that this parameter is required -// for feeds targeting multiple countries and languages, since a feed -// may have a different status for each target. +// Country sets the optional parameter "country": The country for which to get +// the datafeed status. If this parameter is provided then language must also +// be provided. Note that this parameter is required for feeds targeting +// multiple countries and languages, since a feed may have a different status +// for each target. func (c *DatafeedstatusesGetCall) Country(country string) *DatafeedstatusesGetCall { c.urlParams_.Set("country", country) return c } -// Language sets the optional parameter "language": The language for -// which to get the datafeed status. If this parameter is provided then -// country must also be provided. Note that this parameter is required -// for feeds targeting multiple countries and languages, since a feed -// may have a different status for each target. +// Language sets the optional parameter "language": The language for which to +// get the datafeed status. If this parameter is provided then country must +// also be provided. Note that this parameter is required for feeds targeting +// multiple countries and languages, since a feed may have a different status +// for each target. func (c *DatafeedstatusesGetCall) Language(language string) *DatafeedstatusesGetCall { c.urlParams_.Set("language", language) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatafeedstatusesGetCall) Fields(s ...googleapi.Field) *DatafeedstatusesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DatafeedstatusesGetCall) IfNoneMatch(entityTag string) *DatafeedstatusesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatafeedstatusesGetCall) Context(ctx context.Context) *DatafeedstatusesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatafeedstatusesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15720,12 +11852,7 @@ func (c *DatafeedstatusesGetCall) Header() http.Header { } func (c *DatafeedstatusesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15743,16 +11870,14 @@ func (c *DatafeedstatusesGetCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "datafeedId": strconv.FormatUint(c.datafeedId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeedstatuses.get" call. -// Exactly one of *DatafeedStatus or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DatafeedStatus.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DatafeedStatus.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DatafeedstatusesGetCall) Do(opts ...googleapi.CallOption) (*DatafeedStatus, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15760,17 +11885,17 @@ func (c *DatafeedstatusesGetCall) Do(opts ...googleapi.CallOption) (*DatafeedSta if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DatafeedStatus{ ServerResponse: googleapi.ServerResponse{ @@ -15783,53 +11908,7 @@ func (c *DatafeedstatusesGetCall) Do(opts ...googleapi.CallOption) (*DatafeedSta return nil, err } return ret, nil - // { - // "description": "Retrieves the status of a datafeed from your Merchant Center account.", - // "flatPath": "{merchantId}/datafeedstatuses/{datafeedId}", - // "httpMethod": "GET", - // "id": "content.datafeedstatuses.get", - // "parameterOrder": [ - // "merchantId", - // "datafeedId" - // ], - // "parameters": { - // "country": { - // "description": "The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.", - // "location": "query", - // "type": "string" - // }, - // "datafeedId": { - // "description": "The ID of the datafeed.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "language": { - // "description": "The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.", - // "location": "query", - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the datafeed. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/datafeedstatuses/{datafeedId}", - // "response": { - // "$ref": "DatafeedStatus" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.datafeedstatuses.list": +} type DatafeedstatusesListCall struct { s *APIService @@ -15840,59 +11919,54 @@ type DatafeedstatusesListCall struct { header_ http.Header } -// List: Lists the statuses of the datafeeds in your Merchant Center -// account. +// List: Lists the statuses of the datafeeds in your Merchant Center account. // -// - merchantId: The ID of the account that manages the datafeeds. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that manages the datafeeds. This account +// cannot be a multi-client account. func (r *DatafeedstatusesService) List(merchantId uint64) *DatafeedstatusesListCall { c := &DatafeedstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of products to return in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// products to return in the response, used for paging. func (c *DatafeedstatusesListCall) MaxResults(maxResults int64) *DatafeedstatusesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *DatafeedstatusesListCall) PageToken(pageToken string) *DatafeedstatusesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatafeedstatusesListCall) Fields(s ...googleapi.Field) *DatafeedstatusesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DatafeedstatusesListCall) IfNoneMatch(entityTag string) *DatafeedstatusesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatafeedstatusesListCall) Context(ctx context.Context) *DatafeedstatusesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatafeedstatusesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15901,12 +11975,7 @@ func (c *DatafeedstatusesListCall) Header() http.Header { } func (c *DatafeedstatusesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15923,16 +11992,15 @@ func (c *DatafeedstatusesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.datafeedstatuses.list" call. -// Exactly one of *DatafeedstatusesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DatafeedstatusesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DatafeedstatusesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DatafeedstatusesListCall) Do(opts ...googleapi.CallOption) (*DatafeedstatusesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15940,17 +12008,17 @@ func (c *DatafeedstatusesListCall) Do(opts ...googleapi.CallOption) (*Datafeedst if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DatafeedstatusesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15963,43 +12031,6 @@ func (c *DatafeedstatusesListCall) Do(opts ...googleapi.CallOption) (*Datafeedst return nil, err } return ret, nil - // { - // "description": "Lists the statuses of the datafeeds in your Merchant Center account.", - // "flatPath": "{merchantId}/datafeedstatuses", - // "httpMethod": "GET", - // "id": "content.datafeedstatuses.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "maxResults": { - // "description": "The maximum number of products to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the datafeeds. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/datafeedstatuses", - // "response": { - // "$ref": "DatafeedstatusesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -16007,7 +12038,7 @@ func (c *DatafeedstatusesListCall) Do(opts ...googleapi.CallOption) (*Datafeedst // The provided context supersedes any context provided to the Context method. func (c *DatafeedstatusesListCall) Pages(ctx context.Context, f func(*DatafeedstatusesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -16023,8 +12054,6 @@ func (c *DatafeedstatusesListCall) Pages(ctx context.Context, f func(*Datafeedst } } -// method id "content.liasettings.custombatch": - type LiasettingsCustombatchCall struct { s *APIService liasettingscustombatchrequest *LiasettingsCustomBatchRequest @@ -16033,40 +12062,38 @@ type LiasettingsCustombatchCall struct { header_ http.Header } -// Custombatch: Retrieves and/or updates the LIA settings of multiple -// accounts in a single request. +// Custombatch: Retrieves and/or updates the LIA settings of multiple accounts +// in a single request. func (r *LiasettingsService) Custombatch(liasettingscustombatchrequest *LiasettingsCustomBatchRequest) *LiasettingsCustombatchCall { c := &LiasettingsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.liasettingscustombatchrequest = liasettingscustombatchrequest return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *LiasettingsCustombatchCall) DryRun(dryRun bool) *LiasettingsCustombatchCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LiasettingsCustombatchCall) Fields(s ...googleapi.Field) *LiasettingsCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LiasettingsCustombatchCall) Context(ctx context.Context) *LiasettingsCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LiasettingsCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16075,18 +12102,12 @@ func (c *LiasettingsCustombatchCall) Header() http.Header { } func (c *LiasettingsCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.liasettingscustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "liasettings/batch") @@ -16096,16 +12117,15 @@ func (c *LiasettingsCustombatchCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.custombatch" call. -// Exactly one of *LiasettingsCustomBatchResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *LiasettingsCustomBatchResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LiasettingsCustomBatchResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*LiasettingsCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16113,17 +12133,17 @@ func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*Liasetti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LiasettingsCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16136,34 +12156,7 @@ func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*Liasetti return nil, err } return ret, nil - // { - // "description": "Retrieves and/or updates the LIA settings of multiple accounts in a single request.", - // "flatPath": "liasettings/batch", - // "httpMethod": "POST", - // "id": "content.liasettings.custombatch", - // "parameterOrder": [], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "liasettings/batch", - // "request": { - // "$ref": "LiasettingsCustomBatchRequest" - // }, - // "response": { - // "$ref": "LiasettingsCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.liasettings.get": +} type LiasettingsGetCall struct { s *APIService @@ -16177,12 +12170,10 @@ type LiasettingsGetCall struct { // Get: Retrieves the LIA settings of the account. // -// - accountId: The ID of the account for which to get or update LIA -// settings. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - accountId: The ID of the account for which to get or update LIA settings. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *LiasettingsService) Get(merchantId uint64, accountId uint64) *LiasettingsGetCall { c := &LiasettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -16191,33 +12182,29 @@ func (r *LiasettingsService) Get(merchantId uint64, accountId uint64) *Liasettin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LiasettingsGetCall) Fields(s ...googleapi.Field) *LiasettingsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LiasettingsGetCall) IfNoneMatch(entityTag string) *LiasettingsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LiasettingsGetCall) Context(ctx context.Context) *LiasettingsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LiasettingsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16226,12 +12213,7 @@ func (c *LiasettingsGetCall) Header() http.Header { } func (c *LiasettingsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16249,16 +12231,14 @@ func (c *LiasettingsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.get" call. -// Exactly one of *LiaSettings or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LiaSettings.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LiaSettings.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16266,17 +12246,17 @@ func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LiaSettings{ ServerResponse: googleapi.ServerResponse{ @@ -16289,43 +12269,7 @@ func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, err return nil, err } return ret, nil - // { - // "description": "Retrieves the LIA settings of the account.", - // "flatPath": "{merchantId}/liasettings/{accountId}", - // "httpMethod": "GET", - // "id": "content.liasettings.get", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account for which to get or update LIA settings.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/liasettings/{accountId}", - // "response": { - // "$ref": "LiaSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.liasettings.getaccessiblegmbaccounts": +} type LiasettingsGetaccessiblegmbaccountsCall struct { s *APIService @@ -16340,12 +12284,11 @@ type LiasettingsGetaccessiblegmbaccountsCall struct { // Getaccessiblegmbaccounts: Retrieves the list of accessible Google My // Business accounts. // -// - accountId: The ID of the account for which to retrieve accessible -// Google My Business accounts. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - accountId: The ID of the account for which to retrieve accessible Google +// My Business accounts. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *LiasettingsService) Getaccessiblegmbaccounts(merchantId uint64, accountId uint64) *LiasettingsGetaccessiblegmbaccountsCall { c := &LiasettingsGetaccessiblegmbaccountsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -16354,33 +12297,29 @@ func (r *LiasettingsService) Getaccessiblegmbaccounts(merchantId uint64, account } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LiasettingsGetaccessiblegmbaccountsCall) Fields(s ...googleapi.Field) *LiasettingsGetaccessiblegmbaccountsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LiasettingsGetaccessiblegmbaccountsCall) IfNoneMatch(entityTag string) *LiasettingsGetaccessiblegmbaccountsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LiasettingsGetaccessiblegmbaccountsCall) Context(ctx context.Context) *LiasettingsGetaccessiblegmbaccountsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LiasettingsGetaccessiblegmbaccountsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16389,12 +12328,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Header() http.Header { } func (c *LiasettingsGetaccessiblegmbaccountsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16412,18 +12346,15 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) doRequest(alt string) (*http.R "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.getaccessiblegmbaccounts" call. -// Exactly one of *LiasettingsGetAccessibleGmbAccountsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *LiasettingsGetAccessibleGmbAccountsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *LiasettingsGetAccessibleGmbAccountsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOption) (*LiasettingsGetAccessibleGmbAccountsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16431,17 +12362,17 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LiasettingsGetAccessibleGmbAccountsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16454,43 +12385,7 @@ func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Retrieves the list of accessible Google My Business accounts.", - // "flatPath": "{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", - // "httpMethod": "GET", - // "id": "content.liasettings.getaccessiblegmbaccounts", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account for which to retrieve accessible Google My Business accounts.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", - // "response": { - // "$ref": "LiasettingsGetAccessibleGmbAccountsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.liasettings.list": +} type LiasettingsListCall struct { s *APIService @@ -16501,59 +12396,55 @@ type LiasettingsListCall struct { header_ http.Header } -// List: Lists the LIA settings of the sub-accounts in your Merchant -// Center account. +// List: Lists the LIA settings of the sub-accounts in your Merchant Center +// account. // -// - merchantId: The ID of the managing account. This must be a -// multi-client account. +// - merchantId: The ID of the managing account. This must be a multi-client +// account. func (r *LiasettingsService) List(merchantId uint64) *LiasettingsListCall { c := &LiasettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of LIA settings to return in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// LIA settings to return in the response, used for paging. func (c *LiasettingsListCall) MaxResults(maxResults int64) *LiasettingsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *LiasettingsListCall) PageToken(pageToken string) *LiasettingsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LiasettingsListCall) Fields(s ...googleapi.Field) *LiasettingsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LiasettingsListCall) IfNoneMatch(entityTag string) *LiasettingsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LiasettingsListCall) Context(ctx context.Context) *LiasettingsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LiasettingsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16562,12 +12453,7 @@ func (c *LiasettingsListCall) Header() http.Header { } func (c *LiasettingsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16584,16 +12470,15 @@ func (c *LiasettingsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.list" call. -// Exactly one of *LiasettingsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *LiasettingsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16601,17 +12486,17 @@ func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LiasettingsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16624,43 +12509,6 @@ func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsList return nil, err } return ret, nil - // { - // "description": "Lists the LIA settings of the sub-accounts in your Merchant Center account.", - // "flatPath": "{merchantId}/liasettings", - // "httpMethod": "GET", - // "id": "content.liasettings.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "maxResults": { - // "description": "The maximum number of LIA settings to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the managing account. This must be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/liasettings", - // "response": { - // "$ref": "LiasettingsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -16668,7 +12516,7 @@ func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsList // The provided context supersedes any context provided to the Context method. func (c *LiasettingsListCall) Pages(ctx context.Context, f func(*LiasettingsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -16684,8 +12532,6 @@ func (c *LiasettingsListCall) Pages(ctx context.Context, f func(*LiasettingsList } } -// method id "content.liasettings.listposdataproviders": - type LiasettingsListposdataprovidersCall struct { s *APIService urlParams_ gensupport.URLParams @@ -16694,41 +12540,37 @@ type LiasettingsListposdataprovidersCall struct { header_ http.Header } -// Listposdataproviders: Retrieves the list of POS data providers that -// have active settings for the all eiligible countries. +// Listposdataproviders: Retrieves the list of POS data providers that have +// active settings for the all eiligible countries. func (r *LiasettingsService) Listposdataproviders() *LiasettingsListposdataprovidersCall { c := &LiasettingsListposdataprovidersCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LiasettingsListposdataprovidersCall) Fields(s ...googleapi.Field) *LiasettingsListposdataprovidersCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LiasettingsListposdataprovidersCall) IfNoneMatch(entityTag string) *LiasettingsListposdataprovidersCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LiasettingsListposdataprovidersCall) Context(ctx context.Context) *LiasettingsListposdataprovidersCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LiasettingsListposdataprovidersCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16737,12 +12579,7 @@ func (c *LiasettingsListposdataprovidersCall) Header() http.Header { } func (c *LiasettingsListposdataprovidersCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16756,17 +12593,15 @@ func (c *LiasettingsListposdataprovidersCall) doRequest(alt string) (*http.Respo return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.listposdataproviders" call. -// Exactly one of *LiasettingsListPosDataProvidersResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *LiasettingsListPosDataProvidersResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LiasettingsListPosDataProvidersResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *LiasettingsListposdataprovidersCall) Do(opts ...googleapi.CallOption) (*LiasettingsListPosDataProvidersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16774,17 +12609,17 @@ func (c *LiasettingsListposdataprovidersCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LiasettingsListPosDataProvidersResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16797,25 +12632,7 @@ func (c *LiasettingsListposdataprovidersCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Retrieves the list of POS data providers that have active settings for the all eiligible countries.", - // "flatPath": "liasettings/posdataproviders", - // "httpMethod": "GET", - // "id": "content.liasettings.listposdataproviders", - // "parameterOrder": [], - // "parameters": {}, - // "path": "liasettings/posdataproviders", - // "response": { - // "$ref": "LiasettingsListPosDataProvidersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.liasettings.requestgmbaccess": +} type LiasettingsRequestgmbaccessCall struct { s *APIService @@ -16826,15 +12643,13 @@ type LiasettingsRequestgmbaccessCall struct { header_ http.Header } -// Requestgmbaccess: Requests access to a specified Google My Business -// account. +// Requestgmbaccess: Requests access to a specified Google My Business account. // // - accountId: The ID of the account for which GMB access is requested. // - gmbEmail: The email of the Google My Business account. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint64, gmbEmail string) *LiasettingsRequestgmbaccessCall { c := &LiasettingsRequestgmbaccessCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -16844,23 +12659,21 @@ func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LiasettingsRequestgmbaccessCall) Fields(s ...googleapi.Field) *LiasettingsRequestgmbaccessCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LiasettingsRequestgmbaccessCall) Context(ctx context.Context) *LiasettingsRequestgmbaccessCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LiasettingsRequestgmbaccessCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16869,12 +12682,7 @@ func (c *LiasettingsRequestgmbaccessCall) Header() http.Header { } func (c *LiasettingsRequestgmbaccessCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -16889,17 +12697,15 @@ func (c *LiasettingsRequestgmbaccessCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.requestgmbaccess" call. -// Exactly one of *LiasettingsRequestGmbAccessResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *LiasettingsRequestGmbAccessResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *LiasettingsRequestGmbAccessResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestGmbAccessResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16907,17 +12713,17 @@ func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*Lia if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LiasettingsRequestGmbAccessResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16930,50 +12736,7 @@ func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*Lia return nil, err } return ret, nil - // { - // "description": "Requests access to a specified Google My Business account.", - // "flatPath": "{merchantId}/liasettings/{accountId}/requestgmbaccess", - // "httpMethod": "POST", - // "id": "content.liasettings.requestgmbaccess", - // "parameterOrder": [ - // "merchantId", - // "accountId", - // "gmbEmail" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account for which GMB access is requested.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "gmbEmail": { - // "description": "The email of the Google My Business account.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/liasettings/{accountId}/requestgmbaccess", - // "response": { - // "$ref": "LiasettingsRequestGmbAccessResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.liasettings.requestinventoryverification": +} type LiasettingsRequestinventoryverificationCall struct { s *APIService @@ -16988,13 +12751,12 @@ type LiasettingsRequestinventoryverificationCall struct { // Requestinventoryverification: Requests inventory validation for the // specified country. // -// - accountId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - accountId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - country: The country for which inventory validation is requested. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *LiasettingsService) Requestinventoryverification(merchantId uint64, accountId uint64, country string) *LiasettingsRequestinventoryverificationCall { c := &LiasettingsRequestinventoryverificationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -17004,23 +12766,21 @@ func (r *LiasettingsService) Requestinventoryverification(merchantId uint64, acc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LiasettingsRequestinventoryverificationCall) Fields(s ...googleapi.Field) *LiasettingsRequestinventoryverificationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LiasettingsRequestinventoryverificationCall) Context(ctx context.Context) *LiasettingsRequestinventoryverificationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LiasettingsRequestinventoryverificationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17029,12 +12789,7 @@ func (c *LiasettingsRequestinventoryverificationCall) Header() http.Header { } func (c *LiasettingsRequestinventoryverificationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17050,20 +12805,15 @@ func (c *LiasettingsRequestinventoryverificationCall) doRequest(alt string) (*ht "accountId": strconv.FormatUint(c.accountId, 10), "country": c.country, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.requestinventoryverification" call. -// Exactly one of *LiasettingsRequestInventoryVerificationResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *LiasettingsRequestInventoryVerificationResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *LiasettingsRequestInventoryVerificationResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestInventoryVerificationResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17071,17 +12821,17 @@ func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LiasettingsRequestInventoryVerificationResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17094,50 +12844,7 @@ func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Requests inventory validation for the specified country.", - // "flatPath": "{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", - // "httpMethod": "POST", - // "id": "content.liasettings.requestinventoryverification", - // "parameterOrder": [ - // "merchantId", - // "accountId", - // "country" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "country": { - // "description": "The country for which inventory validation is requested.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", - // "response": { - // "$ref": "LiasettingsRequestInventoryVerificationResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.liasettings.setinventoryverificationcontact": +} type LiasettingsSetinventoryverificationcontactCall struct { s *APIService @@ -17148,20 +12855,18 @@ type LiasettingsSetinventoryverificationcontactCall struct { header_ http.Header } -// Setinventoryverificationcontact: Sets the inventory verification -// contract for the specified country. +// Setinventoryverificationcontact: Sets the inventory verification contract +// for the specified country. // -// - accountId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - accountId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - contactEmail: The email of the inventory verification contact. // - contactName: The name of the inventory verification contact. // - country: The country for which inventory verification is requested. -// - language: The language for which inventory verification is -// requested. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - language: The language for which inventory verification is requested. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64, country string, language string, contactName string, contactEmail string) *LiasettingsSetinventoryverificationcontactCall { c := &LiasettingsSetinventoryverificationcontactCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -17174,23 +12879,21 @@ func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LiasettingsSetinventoryverificationcontactCall) Fields(s ...googleapi.Field) *LiasettingsSetinventoryverificationcontactCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LiasettingsSetinventoryverificationcontactCall) Context(ctx context.Context) *LiasettingsSetinventoryverificationcontactCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LiasettingsSetinventoryverificationcontactCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17199,12 +12902,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Header() http.Header { } func (c *LiasettingsSetinventoryverificationcontactCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17219,18 +12917,15 @@ func (c *LiasettingsSetinventoryverificationcontactCall) doRequest(alt string) ( "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.setinventoryverificationcontact" call. -// Exactly one of *LiasettingsSetInventoryVerificationContactResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *LiasettingsSetInventoryVerificationContactResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *LiasettingsSetInventoryVerificationContactResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetInventoryVerificationContactResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17238,17 +12933,17 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LiasettingsSetInventoryVerificationContactResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17261,71 +12956,7 @@ func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Sets the inventory verification contract for the specified country.", - // "flatPath": "{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", - // "httpMethod": "POST", - // "id": "content.liasettings.setinventoryverificationcontact", - // "parameterOrder": [ - // "merchantId", - // "accountId", - // "country", - // "language", - // "contactName", - // "contactEmail" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "contactEmail": { - // "description": "The email of the inventory verification contact.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "contactName": { - // "description": "The name of the inventory verification contact.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "country": { - // "description": "The country for which inventory verification is requested.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "language": { - // "description": "The language for which inventory verification is requested.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", - // "response": { - // "$ref": "LiasettingsSetInventoryVerificationContactResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.liasettings.setposdataprovider": +} type LiasettingsSetposdataproviderCall struct { s *APIService @@ -17336,16 +12967,14 @@ type LiasettingsSetposdataproviderCall struct { header_ http.Header } -// Setposdataprovider: Sets the POS data provider for the specified -// country. +// Setposdataprovider: Sets the POS data provider for the specified country. // -// - accountId: The ID of the account for which to retrieve accessible -// Google My Business accounts. +// - accountId: The ID of the account for which to retrieve accessible Google +// My Business accounts. // - country: The country for which the POS data provider is selected. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *LiasettingsService) Setposdataprovider(merchantId uint64, accountId uint64, country string) *LiasettingsSetposdataproviderCall { c := &LiasettingsSetposdataproviderCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -17354,39 +12983,36 @@ func (r *LiasettingsService) Setposdataprovider(merchantId uint64, accountId uin return c } -// PosDataProviderId sets the optional parameter "posDataProviderId": -// The ID of POS data provider. +// PosDataProviderId sets the optional parameter "posDataProviderId": The ID of +// POS data provider. func (c *LiasettingsSetposdataproviderCall) PosDataProviderId(posDataProviderId uint64) *LiasettingsSetposdataproviderCall { c.urlParams_.Set("posDataProviderId", fmt.Sprint(posDataProviderId)) return c } -// PosExternalAccountId sets the optional parameter -// "posExternalAccountId": The account ID by which this merchant is -// known to the POS data provider. +// PosExternalAccountId sets the optional parameter "posExternalAccountId": The +// account ID by which this merchant is known to the POS data provider. func (c *LiasettingsSetposdataproviderCall) PosExternalAccountId(posExternalAccountId string) *LiasettingsSetposdataproviderCall { c.urlParams_.Set("posExternalAccountId", posExternalAccountId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LiasettingsSetposdataproviderCall) Fields(s ...googleapi.Field) *LiasettingsSetposdataproviderCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LiasettingsSetposdataproviderCall) Context(ctx context.Context) *LiasettingsSetposdataproviderCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LiasettingsSetposdataproviderCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17395,12 +13021,7 @@ func (c *LiasettingsSetposdataproviderCall) Header() http.Header { } func (c *LiasettingsSetposdataproviderCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17415,17 +13036,15 @@ func (c *LiasettingsSetposdataproviderCall) doRequest(alt string) (*http.Respons "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.setposdataprovider" call. -// Exactly one of *LiasettingsSetPosDataProviderResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either +// Any non-2xx status code is an error. Response headers are in either // *LiasettingsSetPosDataProviderResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetPosDataProviderResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17433,17 +13052,17 @@ func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*L if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LiasettingsSetPosDataProviderResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17456,61 +13075,7 @@ func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*L return nil, err } return ret, nil - // { - // "description": "Sets the POS data provider for the specified country.", - // "flatPath": "{merchantId}/liasettings/{accountId}/setposdataprovider", - // "httpMethod": "POST", - // "id": "content.liasettings.setposdataprovider", - // "parameterOrder": [ - // "merchantId", - // "accountId", - // "country" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account for which to retrieve accessible Google My Business accounts.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "country": { - // "description": "The country for which the POS data provider is selected.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "posDataProviderId": { - // "description": "The ID of POS data provider.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "posExternalAccountId": { - // "description": "The account ID by which this merchant is known to the POS data provider.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/liasettings/{accountId}/setposdataprovider", - // "response": { - // "$ref": "LiasettingsSetPosDataProviderResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.liasettings.update": +} type LiasettingsUpdateCall struct { s *APIService @@ -17522,15 +13087,13 @@ type LiasettingsUpdateCall struct { header_ http.Header } -// Update: Updates the LIA settings of the account. Any fields that are -// not provided are deleted from the resource. +// Update: Updates the LIA settings of the account. Any fields that are not +// provided are deleted from the resource. // -// - accountId: The ID of the account for which to get or update LIA -// settings. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - accountId: The ID of the account for which to get or update LIA settings. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *LiasettingsService) Update(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsUpdateCall { c := &LiasettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -17539,32 +13102,30 @@ func (r *LiasettingsService) Update(merchantId uint64, accountId uint64, liasett return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *LiasettingsUpdateCall) DryRun(dryRun bool) *LiasettingsUpdateCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LiasettingsUpdateCall) Fields(s ...googleapi.Field) *LiasettingsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LiasettingsUpdateCall) Context(ctx context.Context) *LiasettingsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LiasettingsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17573,18 +13134,12 @@ func (c *LiasettingsUpdateCall) Header() http.Header { } func (c *LiasettingsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.liasettings) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}") @@ -17598,16 +13153,14 @@ func (c *LiasettingsUpdateCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.liasettings.update" call. -// Exactly one of *LiaSettings or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LiaSettings.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LiaSettings.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17615,17 +13168,17 @@ func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LiaSettings{ ServerResponse: googleapi.ServerResponse{ @@ -17638,51 +13191,7 @@ func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings, return nil, err } return ret, nil - // { - // "description": "Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource.", - // "flatPath": "{merchantId}/liasettings/{accountId}", - // "httpMethod": "PUT", - // "id": "content.liasettings.update", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account for which to get or update LIA settings.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/liasettings/{accountId}", - // "request": { - // "$ref": "LiaSettings" - // }, - // "response": { - // "$ref": "LiaSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderinvoices.createchargeinvoice": +} type OrderinvoicesCreatechargeinvoiceCall struct { s *APIService @@ -17694,11 +13203,11 @@ type OrderinvoicesCreatechargeinvoiceCall struct { header_ http.Header } -// Createchargeinvoice: Creates a charge invoice for a shipment group, -// and triggers a charge capture for orderinvoice enabled orders. +// Createchargeinvoice: Creates a charge invoice for a shipment group, and +// triggers a charge capture for orderinvoice enabled orders. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrderinvoicesService) Createchargeinvoice(merchantId uint64, orderId string, orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest) *OrderinvoicesCreatechargeinvoiceCall { c := &OrderinvoicesCreatechargeinvoiceCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -17709,23 +13218,21 @@ func (r *OrderinvoicesService) Createchargeinvoice(merchantId uint64, orderId st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderinvoicesCreatechargeinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreatechargeinvoiceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderinvoicesCreatechargeinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreatechargeinvoiceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17734,18 +13241,12 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header { } func (c *OrderinvoicesCreatechargeinvoiceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderinvoicescreatechargeinvoicerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createChargeInvoice") @@ -17759,18 +13260,15 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) doRequest(alt string) (*http.Resp "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderinvoices.createchargeinvoice" call. -// Exactly one of *OrderinvoicesCreateChargeInvoiceResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *OrderinvoicesCreateChargeInvoiceResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderinvoicesCreateChargeInvoiceResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateChargeInvoiceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17778,17 +13276,17 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderinvoicesCreateChargeInvoiceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17801,45 +13299,7 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.", - // "flatPath": "{merchantId}/orderinvoices/{orderId}/createChargeInvoice", - // "httpMethod": "POST", - // "id": "content.orderinvoices.createchargeinvoice", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderinvoices/{orderId}/createChargeInvoice", - // "request": { - // "$ref": "OrderinvoicesCreateChargeInvoiceRequest" - // }, - // "response": { - // "$ref": "OrderinvoicesCreateChargeInvoiceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderinvoices.createrefundinvoice": +} type OrderinvoicesCreaterefundinvoiceCall struct { s *APIService @@ -17851,14 +13311,14 @@ type OrderinvoicesCreaterefundinvoiceCall struct { header_ http.Header } -// Createrefundinvoice: Creates a refund invoice for one or more -// shipment groups, and triggers a refund for orderinvoice enabled -// orders. This can only be used for line items that have previously -// been charged using `createChargeInvoice`. All amounts (except for the -// summary) are incremental with respect to the previous invoice. +// Createrefundinvoice: Creates a refund invoice for one or more shipment +// groups, and triggers a refund for orderinvoice enabled orders. This can only +// be used for line items that have previously been charged using +// `createChargeInvoice`. All amounts (except for the summary) are incremental +// with respect to the previous invoice. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrderinvoicesService) Createrefundinvoice(merchantId uint64, orderId string, orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest) *OrderinvoicesCreaterefundinvoiceCall { c := &OrderinvoicesCreaterefundinvoiceCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -17869,23 +13329,21 @@ func (r *OrderinvoicesService) Createrefundinvoice(merchantId uint64, orderId st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderinvoicesCreaterefundinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreaterefundinvoiceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderinvoicesCreaterefundinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreaterefundinvoiceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17894,18 +13352,12 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header { } func (c *OrderinvoicesCreaterefundinvoiceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderinvoicescreaterefundinvoicerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createRefundInvoice") @@ -17919,18 +13371,15 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) doRequest(alt string) (*http.Resp "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderinvoices.createrefundinvoice" call. -// Exactly one of *OrderinvoicesCreateRefundInvoiceResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *OrderinvoicesCreateRefundInvoiceResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderinvoicesCreateRefundInvoiceResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateRefundInvoiceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17938,17 +13387,17 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderinvoicesCreateRefundInvoiceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17961,45 +13410,7 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using `createChargeInvoice`. All amounts (except for the summary) are incremental with respect to the previous invoice.", - // "flatPath": "{merchantId}/orderinvoices/{orderId}/createRefundInvoice", - // "httpMethod": "POST", - // "id": "content.orderinvoices.createrefundinvoice", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderinvoices/{orderId}/createRefundInvoice", - // "request": { - // "$ref": "OrderinvoicesCreateRefundInvoiceRequest" - // }, - // "response": { - // "$ref": "OrderinvoicesCreateRefundInvoiceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderreports.listdisbursements": +} type OrderreportsListdisbursementsCall struct { s *APIService @@ -18010,75 +13421,70 @@ type OrderreportsListdisbursementsCall struct { header_ http.Header } -// Listdisbursements: Retrieves a report for disbursements from your -// Merchant Center account. +// Listdisbursements: Retrieves a report for disbursements from your Merchant +// Center account. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. func (r *OrderreportsService) Listdisbursements(merchantId uint64) *OrderreportsListdisbursementsCall { c := &OrderreportsListdisbursementsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// DisbursementEndDate sets the optional parameter -// "disbursementEndDate": The last date which disbursements occurred. In -// ISO 8601 format. Default: current date. +// DisbursementEndDate sets the optional parameter "disbursementEndDate": The +// last date which disbursements occurred. In ISO 8601 format. Default: current +// date. func (c *OrderreportsListdisbursementsCall) DisbursementEndDate(disbursementEndDate string) *OrderreportsListdisbursementsCall { c.urlParams_.Set("disbursementEndDate", disbursementEndDate) return c } -// DisbursementStartDate sets the optional parameter -// "disbursementStartDate": The first date which disbursements occurred. -// In ISO 8601 format. +// DisbursementStartDate sets the optional parameter "disbursementStartDate": +// The first date which disbursements occurred. In ISO 8601 format. func (c *OrderreportsListdisbursementsCall) DisbursementStartDate(disbursementStartDate string) *OrderreportsListdisbursementsCall { c.urlParams_.Set("disbursementStartDate", disbursementStartDate) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of disbursements to return in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// disbursements to return in the response, used for paging. func (c *OrderreportsListdisbursementsCall) MaxResults(maxResults int64) *OrderreportsListdisbursementsCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *OrderreportsListdisbursementsCall) PageToken(pageToken string) *OrderreportsListdisbursementsCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderreportsListdisbursementsCall) Fields(s ...googleapi.Field) *OrderreportsListdisbursementsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderreportsListdisbursementsCall) IfNoneMatch(entityTag string) *OrderreportsListdisbursementsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderreportsListdisbursementsCall) Context(ctx context.Context) *OrderreportsListdisbursementsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderreportsListdisbursementsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18087,12 +13493,7 @@ func (c *OrderreportsListdisbursementsCall) Header() http.Header { } func (c *OrderreportsListdisbursementsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18109,17 +13510,15 @@ func (c *OrderreportsListdisbursementsCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderreports.listdisbursements" call. -// Exactly one of *OrderreportsListDisbursementsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either +// Any non-2xx status code is an error. Response headers are in either // *OrderreportsListDisbursementsResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*OrderreportsListDisbursementsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18127,17 +13526,17 @@ func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*O if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderreportsListDisbursementsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18150,53 +13549,6 @@ func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*O return nil, err } return ret, nil - // { - // "description": "Retrieves a report for disbursements from your Merchant Center account.", - // "flatPath": "{merchantId}/orderreports/disbursements", - // "httpMethod": "GET", - // "id": "content.orderreports.listdisbursements", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "disbursementEndDate": { - // "description": "The last date which disbursements occurred. In ISO 8601 format. Default: current date.", - // "location": "query", - // "type": "string" - // }, - // "disbursementStartDate": { - // "description": "The first date which disbursements occurred. In ISO 8601 format.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of disbursements to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderreports/disbursements", - // "response": { - // "$ref": "OrderreportsListDisbursementsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -18204,7 +13556,7 @@ func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*O // The provided context supersedes any context provided to the Context method. func (c *OrderreportsListdisbursementsCall) Pages(ctx context.Context, f func(*OrderreportsListDisbursementsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18220,8 +13572,6 @@ func (c *OrderreportsListdisbursementsCall) Pages(ctx context.Context, f func(*O } } -// method id "content.orderreports.listtransactions": - type OrderreportsListtransactionsCall struct { s *APIService merchantId uint64 @@ -18232,13 +13582,13 @@ type OrderreportsListtransactionsCall struct { header_ http.Header } -// Listtransactions: Retrieves a list of transactions for a disbursement -// from your Merchant Center account. +// Listtransactions: Retrieves a list of transactions for a disbursement from +// your Merchant Center account. // -// - disbursementId: The Google-provided ID of the disbursement (found -// in Wallet). -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - disbursementId: The Google-provided ID of the disbursement (found in +// Wallet). +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. func (r *OrderreportsService) Listtransactions(merchantId uint64, disbursementId string) *OrderreportsListtransactionsCall { c := &OrderreportsListtransactionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -18246,64 +13596,59 @@ func (r *OrderreportsService) Listtransactions(merchantId uint64, disbursementId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of disbursements to return in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// disbursements to return in the response, used for paging. func (c *OrderreportsListtransactionsCall) MaxResults(maxResults int64) *OrderreportsListtransactionsCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *OrderreportsListtransactionsCall) PageToken(pageToken string) *OrderreportsListtransactionsCall { c.urlParams_.Set("pageToken", pageToken) return c } -// TransactionEndDate sets the optional parameter "transactionEndDate": -// The last date in which transaction occurred. In ISO 8601 format. -// Default: current date. +// TransactionEndDate sets the optional parameter "transactionEndDate": The +// last date in which transaction occurred. In ISO 8601 format. Default: +// current date. func (c *OrderreportsListtransactionsCall) TransactionEndDate(transactionEndDate string) *OrderreportsListtransactionsCall { c.urlParams_.Set("transactionEndDate", transactionEndDate) return c } -// TransactionStartDate sets the optional parameter -// "transactionStartDate": The first date in which transaction occurred. -// In ISO 8601 format. +// TransactionStartDate sets the optional parameter "transactionStartDate": The +// first date in which transaction occurred. In ISO 8601 format. func (c *OrderreportsListtransactionsCall) TransactionStartDate(transactionStartDate string) *OrderreportsListtransactionsCall { c.urlParams_.Set("transactionStartDate", transactionStartDate) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderreportsListtransactionsCall) Fields(s ...googleapi.Field) *OrderreportsListtransactionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderreportsListtransactionsCall) IfNoneMatch(entityTag string) *OrderreportsListtransactionsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderreportsListtransactionsCall) Context(ctx context.Context) *OrderreportsListtransactionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderreportsListtransactionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18312,12 +13657,7 @@ func (c *OrderreportsListtransactionsCall) Header() http.Header { } func (c *OrderreportsListtransactionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18335,17 +13675,15 @@ func (c *OrderreportsListtransactionsCall) doRequest(alt string) (*http.Response "merchantId": strconv.FormatUint(c.merchantId, 10), "disbursementId": c.disbursementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderreports.listtransactions" call. -// Exactly one of *OrderreportsListTransactionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrderreportsListTransactionsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderreportsListTransactionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderreportsListtransactionsCall) Do(opts ...googleapi.CallOption) (*OrderreportsListTransactionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18353,17 +13691,17 @@ func (c *OrderreportsListtransactionsCall) Do(opts ...googleapi.CallOption) (*Or if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderreportsListTransactionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18376,60 +13714,6 @@ func (c *OrderreportsListtransactionsCall) Do(opts ...googleapi.CallOption) (*Or return nil, err } return ret, nil - // { - // "description": "Retrieves a list of transactions for a disbursement from your Merchant Center account.", - // "flatPath": "{merchantId}/orderreports/disbursements/{disbursementId}/transactions", - // "httpMethod": "GET", - // "id": "content.orderreports.listtransactions", - // "parameterOrder": [ - // "merchantId", - // "disbursementId" - // ], - // "parameters": { - // "disbursementId": { - // "description": "The Google-provided ID of the disbursement (found in Wallet).", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of disbursements to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // }, - // "transactionEndDate": { - // "description": "The last date in which transaction occurred. In ISO 8601 format. Default: current date.", - // "location": "query", - // "type": "string" - // }, - // "transactionStartDate": { - // "description": "The first date in which transaction occurred. In ISO 8601 format.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderreports/disbursements/{disbursementId}/transactions", - // "response": { - // "$ref": "OrderreportsListTransactionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -18437,7 +13721,7 @@ func (c *OrderreportsListtransactionsCall) Do(opts ...googleapi.CallOption) (*Or // The provided context supersedes any context provided to the Context method. func (c *OrderreportsListtransactionsCall) Pages(ctx context.Context, f func(*OrderreportsListTransactionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18453,8 +13737,6 @@ func (c *OrderreportsListtransactionsCall) Pages(ctx context.Context, f func(*Or } } -// method id "content.orderreturns.get": - type OrderreturnsGetCall struct { s *APIService merchantId uint64 @@ -18467,8 +13749,8 @@ type OrderreturnsGetCall struct { // Get: Retrieves an order return from your Merchant Center account. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - returnId: Merchant order return ID generated by Google. func (r *OrderreturnsService) Get(merchantId uint64, returnId string) *OrderreturnsGetCall { c := &OrderreturnsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -18478,33 +13760,29 @@ func (r *OrderreturnsService) Get(merchantId uint64, returnId string) *Orderretu } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderreturnsGetCall) Fields(s ...googleapi.Field) *OrderreturnsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderreturnsGetCall) IfNoneMatch(entityTag string) *OrderreturnsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderreturnsGetCall) Context(ctx context.Context) *OrderreturnsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderreturnsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18513,12 +13791,7 @@ func (c *OrderreturnsGetCall) Header() http.Header { } func (c *OrderreturnsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18536,16 +13809,15 @@ func (c *OrderreturnsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "returnId": c.returnId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderreturns.get" call. -// Exactly one of *MerchantOrderReturn or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MerchantOrderReturn.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MerchantOrderReturn.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderReturn, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18553,17 +13825,17 @@ func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MerchantOrderReturn{ ServerResponse: googleapi.ServerResponse{ @@ -18576,42 +13848,7 @@ func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderRe return nil, err } return ret, nil - // { - // "description": "Retrieves an order return from your Merchant Center account.", - // "flatPath": "{merchantId}/orderreturns/{returnId}", - // "httpMethod": "GET", - // "id": "content.orderreturns.get", - // "parameterOrder": [ - // "merchantId", - // "returnId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "returnId": { - // "description": "Merchant order return ID generated by Google.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderreturns/{returnId}", - // "response": { - // "$ref": "MerchantOrderReturn" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderreturns.list": +} type OrderreturnsListCall struct { s *APIService @@ -18624,41 +13861,39 @@ type OrderreturnsListCall struct { // List: Lists order returns in your Merchant Center account. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. func (r *OrderreturnsService) List(merchantId uint64) *OrderreturnsListCall { c := &OrderreturnsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// CreatedEndDate sets the optional parameter "createdEndDate": Obtains -// order returns created before this date (inclusively), in ISO 8601 -// format. +// CreatedEndDate sets the optional parameter "createdEndDate": Obtains order +// returns created before this date (inclusively), in ISO 8601 format. func (c *OrderreturnsListCall) CreatedEndDate(createdEndDate string) *OrderreturnsListCall { c.urlParams_.Set("createdEndDate", createdEndDate) return c } -// CreatedStartDate sets the optional parameter "createdStartDate": -// Obtains order returns created after this date (inclusively), in ISO -// 8601 format. +// CreatedStartDate sets the optional parameter "createdStartDate": Obtains +// order returns created after this date (inclusively), in ISO 8601 format. func (c *OrderreturnsListCall) CreatedStartDate(createdStartDate string) *OrderreturnsListCall { c.urlParams_.Set("createdStartDate", createdStartDate) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of order returns to return in the response, used for paging. -// The default value is 25 returns per page, and the maximum allowed -// value is 250 returns per page. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// order returns to return in the response, used for paging. The default value +// is 25 returns per page, and the maximum allowed value is 250 returns per +// page. func (c *OrderreturnsListCall) MaxResults(maxResults int64) *OrderreturnsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderBy sets the optional parameter "orderBy": Return the results in -// the specified order. +// OrderBy sets the optional parameter "orderBy": Return the results in the +// specified order. // // Possible values: // @@ -18669,41 +13904,37 @@ func (c *OrderreturnsListCall) OrderBy(orderBy string) *OrderreturnsListCall { return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *OrderreturnsListCall) PageToken(pageToken string) *OrderreturnsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderreturnsListCall) Fields(s ...googleapi.Field) *OrderreturnsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderreturnsListCall) IfNoneMatch(entityTag string) *OrderreturnsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderreturnsListCall) Context(ctx context.Context) *OrderreturnsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderreturnsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18712,12 +13943,7 @@ func (c *OrderreturnsListCall) Header() http.Header { } func (c *OrderreturnsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18734,16 +13960,15 @@ func (c *OrderreturnsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderreturns.list" call. -// Exactly one of *OrderreturnsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *OrderreturnsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18751,17 +13976,17 @@ func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderreturnsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18774,66 +13999,6 @@ func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsLi return nil, err } return ret, nil - // { - // "description": "Lists order returns in your Merchant Center account.", - // "flatPath": "{merchantId}/orderreturns", - // "httpMethod": "GET", - // "id": "content.orderreturns.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "createdEndDate": { - // "description": "Obtains order returns created before this date (inclusively), in ISO 8601 format.", - // "location": "query", - // "type": "string" - // }, - // "createdStartDate": { - // "description": "Obtains order returns created after this date (inclusively), in ISO 8601 format.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Return the results in the specified order.", - // "enum": [ - // "RETURN_CREATION_TIME_DESC", - // "RETURN_CREATION_TIME_ASC" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderreturns", - // "response": { - // "$ref": "OrderreturnsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -18841,7 +14006,7 @@ func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsLi // The provided context supersedes any context provided to the Context method. func (c *OrderreturnsListCall) Pages(ctx context.Context, f func(*OrderreturnsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18857,8 +14022,6 @@ func (c *OrderreturnsListCall) Pages(ctx context.Context, f func(*OrderreturnsLi } } -// method id "content.orders.acknowledge": - type OrdersAcknowledgeCall struct { s *APIService merchantId uint64 @@ -18871,8 +14034,8 @@ type OrdersAcknowledgeCall struct { // Acknowledge: Marks an order as acknowledged. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ordersacknowledgerequest *OrdersAcknowledgeRequest) *OrdersAcknowledgeCall { c := &OrdersAcknowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -18883,23 +14046,21 @@ func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ordersack } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersAcknowledgeCall) Fields(s ...googleapi.Field) *OrdersAcknowledgeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersAcknowledgeCall) Context(ctx context.Context) *OrdersAcknowledgeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersAcknowledgeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18908,18 +14069,12 @@ func (c *OrdersAcknowledgeCall) Header() http.Header { } func (c *OrdersAcknowledgeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersacknowledgerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/acknowledge") @@ -18933,16 +14088,15 @@ func (c *OrdersAcknowledgeCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.acknowledge" call. -// Exactly one of *OrdersAcknowledgeResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrdersAcknowledgeResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrdersAcknowledgeResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowledgeResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18950,17 +14104,17 @@ func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersAcknowledgeResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18973,45 +14127,7 @@ func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowl return nil, err } return ret, nil - // { - // "description": "Marks an order as acknowledged.", - // "flatPath": "{merchantId}/orders/{orderId}/acknowledge", - // "httpMethod": "POST", - // "id": "content.orders.acknowledge", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/acknowledge", - // "request": { - // "$ref": "OrdersAcknowledgeRequest" - // }, - // "response": { - // "$ref": "OrdersAcknowledgeResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.advancetestorder": +} type OrdersAdvancetestorderCall struct { s *APIService @@ -19022,11 +14138,11 @@ type OrdersAdvancetestorderCall struct { header_ http.Header } -// Advancetestorder: Sandbox only. Moves a test order from state -// "inProgress" to state "pendingShipment". +// Advancetestorder: Sandbox only. Moves a test order from state "inProgress" +// to state "pendingShipment". // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the test order to modify. func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *OrdersAdvancetestorderCall { c := &OrdersAdvancetestorderCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -19036,23 +14152,21 @@ func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *Ord } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersAdvancetestorderCall) Fields(s ...googleapi.Field) *OrdersAdvancetestorderCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersAdvancetestorderCall) Context(ctx context.Context) *OrdersAdvancetestorderCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersAdvancetestorderCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19061,12 +14175,7 @@ func (c *OrdersAdvancetestorderCall) Header() http.Header { } func (c *OrdersAdvancetestorderCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -19081,16 +14190,15 @@ func (c *OrdersAdvancetestorderCall) doRequest(alt string) (*http.Response, erro "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.advancetestorder" call. -// Exactly one of *OrdersAdvanceTestOrderResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersAdvanceTestOrderResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersAdvanceTestOrderResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAdvanceTestOrderResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19098,17 +14206,17 @@ func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAd if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersAdvanceTestOrderResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19121,42 +14229,7 @@ func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAd return nil, err } return ret, nil - // { - // "description": "Sandbox only. Moves a test order from state \"`inProgress`\" to state \"`pendingShipment`\".", - // "flatPath": "{merchantId}/testorders/{orderId}/advance", - // "httpMethod": "POST", - // "id": "content.orders.advancetestorder", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the test order to modify.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/testorders/{orderId}/advance", - // "response": { - // "$ref": "OrdersAdvanceTestOrderResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.cancel": +} type OrdersCancelCall struct { s *APIService @@ -19170,8 +14243,8 @@ type OrdersCancelCall struct { // Cancel: Cancels all line items in an order, making a full refund. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order to cancel. func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall { c := &OrdersCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -19182,23 +14255,21 @@ func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCancelCall) Fields(s ...googleapi.Field) *OrdersCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCancelCall) Context(ctx context.Context) *OrdersCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19207,18 +14278,12 @@ func (c *OrdersCancelCall) Header() http.Header { } func (c *OrdersCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscancelrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancel") @@ -19232,16 +14297,15 @@ func (c *OrdersCancelCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.cancel" call. -// Exactly one of *OrdersCancelResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersCancelResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersCancelResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19249,17 +14313,17 @@ func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCancelResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19272,45 +14336,7 @@ func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelRespon return nil, err } return ret, nil - // { - // "description": "Cancels all line items in an order, making a full refund.", - // "flatPath": "{merchantId}/orders/{orderId}/cancel", - // "httpMethod": "POST", - // "id": "content.orders.cancel", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order to cancel.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/cancel", - // "request": { - // "$ref": "OrdersCancelRequest" - // }, - // "response": { - // "$ref": "OrdersCancelResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.cancellineitem": +} type OrdersCancellineitemCall struct { s *APIService @@ -19324,8 +14350,8 @@ type OrdersCancellineitemCall struct { // Cancellineitem: Cancels a line item, making a full refund. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orderscancellineitemrequest *OrdersCancelLineItemRequest) *OrdersCancellineitemCall { c := &OrdersCancellineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -19336,23 +14362,21 @@ func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orders } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCancellineitemCall) Fields(s ...googleapi.Field) *OrdersCancellineitemCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCancellineitemCall) Context(ctx context.Context) *OrdersCancellineitemCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCancellineitemCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19361,18 +14385,12 @@ func (c *OrdersCancellineitemCall) Header() http.Header { } func (c *OrdersCancellineitemCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscancellineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancelLineItem") @@ -19386,16 +14404,15 @@ func (c *OrdersCancellineitemCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.cancellineitem" call. -// Exactly one of *OrdersCancelLineItemResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersCancelLineItemResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersCancelLineItemResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCancelLineItemResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19403,17 +14420,17 @@ func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCanc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCancelLineItemResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19426,45 +14443,7 @@ func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCanc return nil, err } return ret, nil - // { - // "description": "Cancels a line item, making a full refund.", - // "flatPath": "{merchantId}/orders/{orderId}/cancelLineItem", - // "httpMethod": "POST", - // "id": "content.orders.cancellineitem", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/cancelLineItem", - // "request": { - // "$ref": "OrdersCancelLineItemRequest" - // }, - // "response": { - // "$ref": "OrdersCancelLineItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.canceltestorderbycustomer": +} type OrdersCanceltestorderbycustomerCall struct { s *APIService @@ -19479,8 +14458,8 @@ type OrdersCanceltestorderbycustomerCall struct { // Canceltestorderbycustomer: Sandbox only. Cancels a test order for // customer-initiated cancellation. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the test order to cancel. func (r *OrdersService) Canceltestorderbycustomer(merchantId uint64, orderId string, orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest) *OrdersCanceltestorderbycustomerCall { c := &OrdersCanceltestorderbycustomerCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -19491,23 +14470,21 @@ func (r *OrdersService) Canceltestorderbycustomer(merchantId uint64, orderId str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCanceltestorderbycustomerCall) Fields(s ...googleapi.Field) *OrdersCanceltestorderbycustomerCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCanceltestorderbycustomerCall) Context(ctx context.Context) *OrdersCanceltestorderbycustomerCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCanceltestorderbycustomerCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19516,18 +14493,12 @@ func (c *OrdersCanceltestorderbycustomerCall) Header() http.Header { } func (c *OrdersCanceltestorderbycustomerCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscanceltestorderbycustomerrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders/{orderId}/cancelByCustomer") @@ -19541,17 +14512,15 @@ func (c *OrdersCanceltestorderbycustomerCall) doRequest(alt string) (*http.Respo "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.canceltestorderbycustomer" call. -// Exactly one of *OrdersCancelTestOrderByCustomerResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *OrdersCancelTestOrderByCustomerResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersCancelTestOrderByCustomerResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) (*OrdersCancelTestOrderByCustomerResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19559,17 +14528,17 @@ func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCancelTestOrderByCustomerResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19582,45 +14551,7 @@ func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Sandbox only. Cancels a test order for customer-initiated cancellation.", - // "flatPath": "{merchantId}/testorders/{orderId}/cancelByCustomer", - // "httpMethod": "POST", - // "id": "content.orders.canceltestorderbycustomer", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the test order to cancel.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/testorders/{orderId}/cancelByCustomer", - // "request": { - // "$ref": "OrdersCancelTestOrderByCustomerRequest" - // }, - // "response": { - // "$ref": "OrdersCancelTestOrderByCustomerResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.createtestorder": +} type OrdersCreatetestorderCall struct { s *APIService @@ -19633,8 +14564,8 @@ type OrdersCreatetestorderCall struct { // Createtestorder: Sandbox only. Creates a test order. // -// - merchantId: The ID of the account that should manage the order. -// This cannot be a multi-client account. +// - merchantId: The ID of the account that should manage the order. This +// cannot be a multi-client account. func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall { c := &OrdersCreatetestorderCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -19643,23 +14574,21 @@ func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorder } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCreatetestorderCall) Fields(s ...googleapi.Field) *OrdersCreatetestorderCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCreatetestorderCall) Context(ctx context.Context) *OrdersCreatetestorderCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCreatetestorderCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19668,18 +14597,12 @@ func (c *OrdersCreatetestorderCall) Header() http.Header { } func (c *OrdersCreatetestorderCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscreatetestorderrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders") @@ -19692,16 +14615,15 @@ func (c *OrdersCreatetestorderCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.createtestorder" call. -// Exactly one of *OrdersCreateTestOrderResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersCreateTestOrderResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersCreateTestOrderResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestOrderResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19709,17 +14631,17 @@ func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCre if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCreateTestOrderResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19732,38 +14654,7 @@ func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCre return nil, err } return ret, nil - // { - // "description": "Sandbox only. Creates a test order.", - // "flatPath": "{merchantId}/testorders", - // "httpMethod": "POST", - // "id": "content.orders.createtestorder", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that should manage the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/testorders", - // "request": { - // "$ref": "OrdersCreateTestOrderRequest" - // }, - // "response": { - // "$ref": "OrdersCreateTestOrderResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.createtestreturn": +} type OrdersCreatetestreturnCall struct { s *APIService @@ -19777,8 +14668,8 @@ type OrdersCreatetestreturnCall struct { // Createtestreturn: Sandbox only. Creates a test return. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Createtestreturn(merchantId uint64, orderId string, orderscreatetestreturnrequest *OrdersCreateTestReturnRequest) *OrdersCreatetestreturnCall { c := &OrdersCreatetestreturnCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -19789,23 +14680,21 @@ func (r *OrdersService) Createtestreturn(merchantId uint64, orderId string, orde } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCreatetestreturnCall) Fields(s ...googleapi.Field) *OrdersCreatetestreturnCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCreatetestreturnCall) Context(ctx context.Context) *OrdersCreatetestreturnCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCreatetestreturnCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19814,18 +14703,12 @@ func (c *OrdersCreatetestreturnCall) Header() http.Header { } func (c *OrdersCreatetestreturnCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscreatetestreturnrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/testreturn") @@ -19839,16 +14722,15 @@ func (c *OrdersCreatetestreturnCall) doRequest(alt string) (*http.Response, erro "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.createtestreturn" call. -// Exactly one of *OrdersCreateTestReturnResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersCreateTestReturnResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersCreateTestReturnResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestReturnResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19856,17 +14738,17 @@ func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCreateTestReturnResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19879,45 +14761,7 @@ func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCr return nil, err } return ret, nil - // { - // "description": "Sandbox only. Creates a test return.", - // "flatPath": "{merchantId}/orders/{orderId}/testreturn", - // "httpMethod": "POST", - // "id": "content.orders.createtestreturn", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/testreturn", - // "request": { - // "$ref": "OrdersCreateTestReturnRequest" - // }, - // "response": { - // "$ref": "OrdersCreateTestReturnResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.custombatch": +} type OrdersCustombatchCall struct { s *APIService @@ -19927,8 +14771,7 @@ type OrdersCustombatchCall struct { header_ http.Header } -// Custombatch: Retrieves or modifies multiple orders in a single -// request. +// Custombatch: Retrieves or modifies multiple orders in a single request. func (r *OrdersService) Custombatch(orderscustombatchrequest *OrdersCustomBatchRequest) *OrdersCustombatchCall { c := &OrdersCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.orderscustombatchrequest = orderscustombatchrequest @@ -19936,23 +14779,21 @@ func (r *OrdersService) Custombatch(orderscustombatchrequest *OrdersCustomBatchR } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCustombatchCall) Fields(s ...googleapi.Field) *OrdersCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCustombatchCall) Context(ctx context.Context) *OrdersCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19961,18 +14802,12 @@ func (c *OrdersCustombatchCall) Header() http.Header { } func (c *OrdersCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "orders/batch") @@ -19982,16 +14817,15 @@ func (c *OrdersCustombatchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.custombatch" call. -// Exactly one of *OrdersCustomBatchResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrdersCustomBatchResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrdersCustomBatchResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersCustombatchCall) Do(opts ...googleapi.CallOption) (*OrdersCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19999,17 +14833,17 @@ func (c *OrdersCustombatchCall) Do(opts ...googleapi.CallOption) (*OrdersCustomB if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20022,28 +14856,7 @@ func (c *OrdersCustombatchCall) Do(opts ...googleapi.CallOption) (*OrdersCustomB return nil, err } return ret, nil - // { - // "description": "Retrieves or modifies multiple orders in a single request.", - // "flatPath": "orders/batch", - // "httpMethod": "POST", - // "id": "content.orders.custombatch", - // "parameterOrder": [], - // "parameters": {}, - // "path": "orders/batch", - // "request": { - // "$ref": "OrdersCustomBatchRequest" - // }, - // "response": { - // "$ref": "OrdersCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.get": +} type OrdersGetCall struct { s *APIService @@ -20057,8 +14870,8 @@ type OrdersGetCall struct { // Get: Retrieves an order from your Merchant Center account. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall { c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -20068,33 +14881,29 @@ func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20103,12 +14912,7 @@ func (c *OrdersGetCall) Header() http.Header { } func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20126,16 +14930,14 @@ func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Order.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20143,17 +14945,17 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Order{ ServerResponse: googleapi.ServerResponse{ @@ -20166,42 +14968,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves an order from your Merchant Center account.", - // "flatPath": "{merchantId}/orders/{orderId}", - // "httpMethod": "GET", - // "id": "content.orders.get", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.getbymerchantorderid": +} type OrdersGetbymerchantorderidCall struct { s *APIService @@ -20215,8 +14982,8 @@ type OrdersGetbymerchantorderidCall struct { // Getbymerchantorderid: Retrieves an order using merchant order ID. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - merchantOrderId: The merchant order ID to be looked for. func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall { c := &OrdersGetbymerchantorderidCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -20226,33 +14993,29 @@ func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGetbymerchantorderidCall) Fields(s ...googleapi.Field) *OrdersGetbymerchantorderidCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGetbymerchantorderidCall) IfNoneMatch(entityTag string) *OrdersGetbymerchantorderidCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGetbymerchantorderidCall) Context(ctx context.Context) *OrdersGetbymerchantorderidCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGetbymerchantorderidCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20261,12 +15024,7 @@ func (c *OrdersGetbymerchantorderidCall) Header() http.Header { } func (c *OrdersGetbymerchantorderidCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20284,17 +15042,15 @@ func (c *OrdersGetbymerchantorderidCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "merchantOrderId": c.merchantOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.getbymerchantorderid" call. -// Exactly one of *OrdersGetByMerchantOrderIdResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersGetByMerchantOrderIdResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersGetByMerchantOrderIdResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersGetByMerchantOrderIdResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20302,17 +15058,17 @@ func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*Orde if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersGetByMerchantOrderIdResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20325,42 +15081,7 @@ func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*Orde return nil, err } return ret, nil - // { - // "description": "Retrieves an order using merchant order ID.", - // "flatPath": "{merchantId}/ordersbymerchantid/{merchantOrderId}", - // "httpMethod": "GET", - // "id": "content.orders.getbymerchantorderid", - // "parameterOrder": [ - // "merchantId", - // "merchantOrderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantOrderId": { - // "description": "The merchant order ID to be looked for.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/ordersbymerchantid/{merchantOrderId}", - // "response": { - // "$ref": "OrdersGetByMerchantOrderIdResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.gettestordertemplate": +} type OrdersGettestordertemplateCall struct { s *APIService @@ -20372,11 +15093,11 @@ type OrdersGettestordertemplateCall struct { header_ http.Header } -// Gettestordertemplate: Sandbox only. Retrieves an order template that -// can be used to quickly create a new order in sandbox. +// Gettestordertemplate: Sandbox only. Retrieves an order template that can be +// used to quickly create a new order in sandbox. // -// - merchantId: The ID of the account that should manage the order. -// This cannot be a multi-client account. +// - merchantId: The ID of the account that should manage the order. This +// cannot be a multi-client account. // - templateName: The name of the template to retrieve. func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName string) *OrdersGettestordertemplateCall { c := &OrdersGettestordertemplateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -20385,41 +15106,37 @@ func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName str return c } -// Country sets the optional parameter "country": The country of the -// template to retrieve. Defaults to `US`. +// Country sets the optional parameter "country": The country of the template +// to retrieve. Defaults to `US`. func (c *OrdersGettestordertemplateCall) Country(country string) *OrdersGettestordertemplateCall { c.urlParams_.Set("country", country) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGettestordertemplateCall) Fields(s ...googleapi.Field) *OrdersGettestordertemplateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGettestordertemplateCall) IfNoneMatch(entityTag string) *OrdersGettestordertemplateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGettestordertemplateCall) Context(ctx context.Context) *OrdersGettestordertemplateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGettestordertemplateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20428,12 +15145,7 @@ func (c *OrdersGettestordertemplateCall) Header() http.Header { } func (c *OrdersGettestordertemplateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20451,17 +15163,15 @@ func (c *OrdersGettestordertemplateCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "templateName": c.templateName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.gettestordertemplate" call. -// Exactly one of *OrdersGetTestOrderTemplateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersGetTestOrderTemplateResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersGetTestOrderTemplateResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*OrdersGetTestOrderTemplateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20469,17 +15179,17 @@ func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*Orde if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersGetTestOrderTemplateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20492,61 +15202,7 @@ func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*Orde return nil, err } return ret, nil - // { - // "description": "Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.", - // "flatPath": "{merchantId}/testordertemplates/{templateName}", - // "httpMethod": "GET", - // "id": "content.orders.gettestordertemplate", - // "parameterOrder": [ - // "merchantId", - // "templateName" - // ], - // "parameters": { - // "country": { - // "description": "The country of the template to retrieve. Defaults to `US`.", - // "location": "query", - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the account that should manage the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "templateName": { - // "description": "The name of the template to retrieve.", - // "enum": [ - // "TEMPLATE1", - // "TEMPLATE2", - // "TEMPLATE1A", - // "TEMPLATE1B", - // "TEMPLATE3" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/testordertemplates/{templateName}", - // "response": { - // "$ref": "OrdersGetTestOrderTemplateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.instorerefundlineitem": +} type OrdersInstorerefundlineitemCall struct { s *APIService @@ -20558,19 +15214,18 @@ type OrdersInstorerefundlineitemCall struct { header_ http.Header } -// Instorerefundlineitem: Deprecated. Notifies that item return and -// refund was handled directly by merchant outside of Google payments -// processing (e.g. cash refund done in store). Note: We recommend -// calling the returnrefundlineitem method to refund in-store returns. -// We will issue the refund directly to the customer. This helps to -// prevent possible differences arising between merchant and Google -// transaction records. We also recommend having the point of sale -// system communicate with Google to ensure that customers do not -// receive a double refund by first refunding via Google then via an -// in-store return. +// Instorerefundlineitem: Deprecated. Notifies that item return and refund was +// handled directly by merchant outside of Google payments processing (e.g. +// cash refund done in store). Note: We recommend calling the +// returnrefundlineitem method to refund in-store returns. We will issue the +// refund directly to the customer. This helps to prevent possible differences +// arising between merchant and Google transaction records. We also recommend +// having the point of sale system communicate with Google to ensure that +// customers do not receive a double refund by first refunding via Google then +// via an in-store return. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest) *OrdersInstorerefundlineitemCall { c := &OrdersInstorerefundlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -20581,23 +15236,21 @@ func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersInstorerefundlineitemCall) Fields(s ...googleapi.Field) *OrdersInstorerefundlineitemCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersInstorerefundlineitemCall) Context(ctx context.Context) *OrdersInstorerefundlineitemCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersInstorerefundlineitemCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20606,18 +15259,12 @@ func (c *OrdersInstorerefundlineitemCall) Header() http.Header { } func (c *OrdersInstorerefundlineitemCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersinstorerefundlineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/inStoreRefundLineItem") @@ -20631,17 +15278,15 @@ func (c *OrdersInstorerefundlineitemCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.instorerefundlineitem" call. -// Exactly one of *OrdersInStoreRefundLineItemResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersInStoreRefundLineItemResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersInStoreRefundLineItemResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersInStoreRefundLineItemResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20649,17 +15294,17 @@ func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*Ord if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersInStoreRefundLineItemResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20672,45 +15317,7 @@ func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*Ord return nil, err } return ret, nil - // { - // "description": "Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.", - // "flatPath": "{merchantId}/orders/{orderId}/inStoreRefundLineItem", - // "httpMethod": "POST", - // "id": "content.orders.instorerefundlineitem", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/inStoreRefundLineItem", - // "request": { - // "$ref": "OrdersInStoreRefundLineItemRequest" - // }, - // "response": { - // "$ref": "OrdersInStoreRefundLineItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.list": +} type OrdersListCall struct { s *APIService @@ -20723,69 +15330,67 @@ type OrdersListCall struct { // List: Lists the orders in your Merchant Center account. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. func (r *OrdersService) List(merchantId uint64) *OrdersListCall { c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// Acknowledged sets the optional parameter "acknowledged": Obtains -// orders that match the acknowledgement status. When set to true, -// obtains orders that have been acknowledged. When false, obtains -// orders that have not been acknowledged. We recommend using this -// filter set to `false`, in conjunction with the `acknowledge` call, -// such that only un-acknowledged orders are returned. +// Acknowledged sets the optional parameter "acknowledged": Obtains orders that +// match the acknowledgement status. When set to true, obtains orders that have +// been acknowledged. When false, obtains orders that have not been +// acknowledged. We recommend using this filter set to `false`, in conjunction +// with the `acknowledge` call, such that only un-acknowledged orders are +// returned. func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall { c.urlParams_.Set("acknowledged", fmt.Sprint(acknowledged)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of orders to return in the response, used for paging. The -// default value is 25 orders per page, and the maximum allowed value is -// 250 orders per page. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// orders to return in the response, used for paging. The default value is 25 +// orders per page, and the maximum allowed value is 250 orders per page. func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderBy sets the optional parameter "orderBy": Order results by -// placement date in descending or ascending order. Acceptable values -// are: - placedDateAsc - placedDateDesc +// OrderBy sets the optional parameter "orderBy": Order results by placement +// date in descending or ascending order. Acceptable values are: - +// placedDateAsc - placedDateDesc func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PlacedDateEnd sets the optional parameter "placedDateEnd": Obtains -// orders placed before this date (exclusively), in ISO 8601 format. +// PlacedDateEnd sets the optional parameter "placedDateEnd": Obtains orders +// placed before this date (exclusively), in ISO 8601 format. func (c *OrdersListCall) PlacedDateEnd(placedDateEnd string) *OrdersListCall { c.urlParams_.Set("placedDateEnd", placedDateEnd) return c } -// PlacedDateStart sets the optional parameter "placedDateStart": -// Obtains orders placed after this date (inclusively), in ISO 8601 -// format. +// PlacedDateStart sets the optional parameter "placedDateStart": Obtains +// orders placed after this date (inclusively), in ISO 8601 format. func (c *OrdersListCall) PlacedDateStart(placedDateStart string) *OrdersListCall { c.urlParams_.Set("placedDateStart", placedDateStart) return c } -// Statuses sets the optional parameter "statuses": Obtains orders that -// match any of the specified statuses. Please note that `active` is a -// shortcut for `pendingShipment` and `partiallyShipped`, and -// `completed` is a shortcut for `shipped`, `partiallyDelivered`, -// `delivered`, `partiallyReturned`, `returned`, and `canceled`. +// Statuses sets the optional parameter "statuses": Obtains orders that match +// any of the specified statuses. Please note that `active` is a shortcut for +// `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for +// `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, +// `returned`, and `canceled`. // // Possible values: // @@ -20806,33 +15411,29 @@ func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20841,12 +15442,7 @@ func (c *OrdersListCall) Header() http.Header { } func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20863,16 +15459,15 @@ func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.list" call. -// Exactly one of *OrdersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20880,17 +15475,17 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20903,95 +15498,6 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return nil, err } return ret, nil - // { - // "description": "Lists the orders in your Merchant Center account.", - // "flatPath": "{merchantId}/orders", - // "httpMethod": "GET", - // "id": "content.orders.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "acknowledged": { - // "description": "Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned. ", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc ", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // }, - // "placedDateEnd": { - // "description": "Obtains orders placed before this date (exclusively), in ISO 8601 format.", - // "location": "query", - // "type": "string" - // }, - // "placedDateStart": { - // "description": "Obtains orders placed after this date (inclusively), in ISO 8601 format.", - // "location": "query", - // "type": "string" - // }, - // "statuses": { - // "description": "Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`.", - // "enum": [ - // "ACTIVE", - // "COMPLETED", - // "CANCELED", - // "IN_PROGRESS", - // "PENDING_SHIPMENT", - // "PARTIALLY_SHIPPED", - // "SHIPPED", - // "PARTIALLY_DELIVERED", - // "DELIVERED", - // "PARTIALLY_RETURNED", - // "RETURNED" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders", - // "response": { - // "$ref": "OrdersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -20999,7 +15505,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // The provided context supersedes any context provided to the Context method. func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21015,8 +15521,6 @@ func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) } } -// method id "content.orders.refund": - type OrdersRefundCall struct { s *APIService merchantId uint64 @@ -21029,8 +15533,8 @@ type OrdersRefundCall struct { // Refund: Deprecated, please use returnRefundLineItem instead. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order to refund. func (r *OrdersService) Refund(merchantId uint64, orderId string, ordersrefundrequest *OrdersRefundRequest) *OrdersRefundCall { c := &OrdersRefundCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -21041,23 +15545,21 @@ func (r *OrdersService) Refund(merchantId uint64, orderId string, ordersrefundre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersRefundCall) Fields(s ...googleapi.Field) *OrdersRefundCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersRefundCall) Context(ctx context.Context) *OrdersRefundCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersRefundCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21066,18 +15568,12 @@ func (c *OrdersRefundCall) Header() http.Header { } func (c *OrdersRefundCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrefundrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/refund") @@ -21091,16 +15587,15 @@ func (c *OrdersRefundCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.refund" call. -// Exactly one of *OrdersRefundResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersRefundResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersRefundResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21108,17 +15603,17 @@ func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersRefundResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21131,45 +15626,7 @@ func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundRespon return nil, err } return ret, nil - // { - // "description": "Deprecated, please use returnRefundLineItem instead.", - // "flatPath": "{merchantId}/orders/{orderId}/refund", - // "httpMethod": "POST", - // "id": "content.orders.refund", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order to refund.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/refund", - // "request": { - // "$ref": "OrdersRefundRequest" - // }, - // "response": { - // "$ref": "OrdersRefundResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.rejectreturnlineitem": +} type OrdersRejectreturnlineitemCall struct { s *APIService @@ -21183,8 +15640,8 @@ type OrdersRejectreturnlineitemCall struct { // Rejectreturnlineitem: Rejects return on an line item. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Rejectreturnlineitem(merchantId uint64, orderId string, ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest) *OrdersRejectreturnlineitemCall { c := &OrdersRejectreturnlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -21195,23 +15652,21 @@ func (r *OrdersService) Rejectreturnlineitem(merchantId uint64, orderId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersRejectreturnlineitemCall) Fields(s ...googleapi.Field) *OrdersRejectreturnlineitemCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersRejectreturnlineitemCall) Context(ctx context.Context) *OrdersRejectreturnlineitemCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersRejectreturnlineitemCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21220,18 +15675,12 @@ func (c *OrdersRejectreturnlineitemCall) Header() http.Header { } func (c *OrdersRejectreturnlineitemCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrejectreturnlineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/rejectReturnLineItem") @@ -21245,17 +15694,15 @@ func (c *OrdersRejectreturnlineitemCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.rejectreturnlineitem" call. -// Exactly one of *OrdersRejectReturnLineItemResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersRejectReturnLineItemResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersRejectReturnLineItemResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRejectReturnLineItemResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21263,17 +15710,17 @@ func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*Orde if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersRejectReturnLineItemResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21286,45 +15733,7 @@ func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*Orde return nil, err } return ret, nil - // { - // "description": "Rejects return on an line item.", - // "flatPath": "{merchantId}/orders/{orderId}/rejectReturnLineItem", - // "httpMethod": "POST", - // "id": "content.orders.rejectreturnlineitem", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/rejectReturnLineItem", - // "request": { - // "$ref": "OrdersRejectReturnLineItemRequest" - // }, - // "response": { - // "$ref": "OrdersRejectReturnLineItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.returnlineitem": +} type OrdersReturnlineitemCall struct { s *APIService @@ -21338,8 +15747,8 @@ type OrdersReturnlineitemCall struct { // Returnlineitem: Returns a line item. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Returnlineitem(merchantId uint64, orderId string, ordersreturnlineitemrequest *OrdersReturnLineItemRequest) *OrdersReturnlineitemCall { c := &OrdersReturnlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -21350,23 +15759,21 @@ func (r *OrdersService) Returnlineitem(merchantId uint64, orderId string, orders } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersReturnlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnlineitemCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersReturnlineitemCall) Context(ctx context.Context) *OrdersReturnlineitemCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersReturnlineitemCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21375,18 +15782,12 @@ func (c *OrdersReturnlineitemCall) Header() http.Header { } func (c *OrdersReturnlineitemCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersreturnlineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/returnLineItem") @@ -21400,16 +15801,15 @@ func (c *OrdersReturnlineitemCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.returnlineitem" call. -// Exactly one of *OrdersReturnLineItemResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersReturnLineItemResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersReturnLineItemResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnLineItemResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21417,17 +15817,17 @@ func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRetu if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersReturnLineItemResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21440,45 +15840,7 @@ func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRetu return nil, err } return ret, nil - // { - // "description": "Returns a line item.", - // "flatPath": "{merchantId}/orders/{orderId}/returnLineItem", - // "httpMethod": "POST", - // "id": "content.orders.returnlineitem", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/returnLineItem", - // "request": { - // "$ref": "OrdersReturnLineItemRequest" - // }, - // "response": { - // "$ref": "OrdersReturnLineItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.returnrefundlineitem": +} type OrdersReturnrefundlineitemCall struct { s *APIService @@ -21490,17 +15852,16 @@ type OrdersReturnrefundlineitemCall struct { header_ http.Header } -// Returnrefundlineitem: Returns and refunds a line item. Note that this -// method can only be called on fully shipped orders. Please also note -// that the Orderreturns API is the preferred way to handle returns -// after you receive a return from a customer. You can use -// Orderreturns.list or Orderreturns.get to search for the return, and -// then use Orderreturns.processreturn to issue the refund. If the -// return cannot be found, then we recommend using this API to issue a -// refund. +// Returnrefundlineitem: Returns and refunds a line item. Note that this method +// can only be called on fully shipped orders. Please also note that the +// Orderreturns API is the preferred way to handle returns after you receive a +// return from a customer. You can use Orderreturns.list or Orderreturns.get to +// search for the return, and then use Orderreturns.processreturn to issue the +// refund. If the return cannot be found, then we recommend using this API to +// issue a refund. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Returnrefundlineitem(merchantId uint64, orderId string, ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest) *OrdersReturnrefundlineitemCall { c := &OrdersReturnrefundlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -21511,23 +15872,21 @@ func (r *OrdersService) Returnrefundlineitem(merchantId uint64, orderId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersReturnrefundlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnrefundlineitemCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersReturnrefundlineitemCall) Context(ctx context.Context) *OrdersReturnrefundlineitemCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersReturnrefundlineitemCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21536,18 +15895,12 @@ func (c *OrdersReturnrefundlineitemCall) Header() http.Header { } func (c *OrdersReturnrefundlineitemCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersreturnrefundlineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/returnRefundLineItem") @@ -21561,17 +15914,15 @@ func (c *OrdersReturnrefundlineitemCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.returnrefundlineitem" call. -// Exactly one of *OrdersReturnRefundLineItemResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersReturnRefundLineItemResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersReturnRefundLineItemResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnRefundLineItemResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21579,17 +15930,17 @@ func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*Orde if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersReturnRefundLineItemResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21602,45 +15953,7 @@ func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*Orde return nil, err } return ret, nil - // { - // "description": "Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.", - // "flatPath": "{merchantId}/orders/{orderId}/returnRefundLineItem", - // "httpMethod": "POST", - // "id": "content.orders.returnrefundlineitem", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/returnRefundLineItem", - // "request": { - // "$ref": "OrdersReturnRefundLineItemRequest" - // }, - // "response": { - // "$ref": "OrdersReturnRefundLineItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.setlineitemmetadata": +} type OrdersSetlineitemmetadataCall struct { s *APIService @@ -21652,15 +15965,14 @@ type OrdersSetlineitemmetadataCall struct { header_ http.Header } -// Setlineitemmetadata: Sets (or overrides if it already exists) -// merchant provided annotations in the form of key-value pairs. A -// common use case would be to supply us with additional structured -// information about a line item that cannot be provided via other -// methods. Submitted key-value pairs can be retrieved as part of the -// orders resource. +// Setlineitemmetadata: Sets (or overrides if it already exists) merchant +// provided annotations in the form of key-value pairs. A common use case would +// be to supply us with additional structured information about a line item +// that cannot be provided via other methods. Submitted key-value pairs can be +// retrieved as part of the orders resource. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Setlineitemmetadata(merchantId uint64, orderId string, orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest) *OrdersSetlineitemmetadataCall { c := &OrdersSetlineitemmetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -21671,23 +15983,21 @@ func (r *OrdersService) Setlineitemmetadata(merchantId uint64, orderId string, o } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersSetlineitemmetadataCall) Fields(s ...googleapi.Field) *OrdersSetlineitemmetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersSetlineitemmetadataCall) Context(ctx context.Context) *OrdersSetlineitemmetadataCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersSetlineitemmetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21696,18 +16006,12 @@ func (c *OrdersSetlineitemmetadataCall) Header() http.Header { } func (c *OrdersSetlineitemmetadataCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderssetlineitemmetadatarequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/setLineItemMetadata") @@ -21721,17 +16025,15 @@ func (c *OrdersSetlineitemmetadataCall) doRequest(alt string) (*http.Response, e "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.setlineitemmetadata" call. -// Exactly one of *OrdersSetLineItemMetadataResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersSetLineItemMetadataResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersSetLineItemMetadataResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*OrdersSetLineItemMetadataResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21739,17 +16041,17 @@ func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*Order if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersSetLineItemMetadataResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21762,45 +16064,7 @@ func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*Order return nil, err } return ret, nil - // { - // "description": "Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.", - // "flatPath": "{merchantId}/orders/{orderId}/setLineItemMetadata", - // "httpMethod": "POST", - // "id": "content.orders.setlineitemmetadata", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/setLineItemMetadata", - // "request": { - // "$ref": "OrdersSetLineItemMetadataRequest" - // }, - // "response": { - // "$ref": "OrdersSetLineItemMetadataResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.shiplineitems": +} type OrdersShiplineitemsCall struct { s *APIService @@ -21814,8 +16078,8 @@ type OrdersShiplineitemsCall struct { // Shiplineitems: Marks line item(s) as shipped. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ordersshiplineitemsrequest *OrdersShipLineItemsRequest) *OrdersShiplineitemsCall { c := &OrdersShiplineitemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -21826,23 +16090,21 @@ func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, orderss } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersShiplineitemsCall) Fields(s ...googleapi.Field) *OrdersShiplineitemsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersShiplineitemsCall) Context(ctx context.Context) *OrdersShiplineitemsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersShiplineitemsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21851,18 +16113,12 @@ func (c *OrdersShiplineitemsCall) Header() http.Header { } func (c *OrdersShiplineitemsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersshiplineitemsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/shipLineItems") @@ -21876,16 +16132,15 @@ func (c *OrdersShiplineitemsCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.shiplineitems" call. -// Exactly one of *OrdersShipLineItemsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrdersShipLineItemsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrdersShipLineItemsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipLineItemsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21893,17 +16148,17 @@ func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipL if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersShipLineItemsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21916,45 +16171,7 @@ func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipL return nil, err } return ret, nil - // { - // "description": "Marks line item(s) as shipped.", - // "flatPath": "{merchantId}/orders/{orderId}/shipLineItems", - // "httpMethod": "POST", - // "id": "content.orders.shiplineitems", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/shipLineItems", - // "request": { - // "$ref": "OrdersShipLineItemsRequest" - // }, - // "response": { - // "$ref": "OrdersShipLineItemsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.updatelineitemshippingdetails": +} type OrdersUpdatelineitemshippingdetailsCall struct { s *APIService @@ -21966,11 +16183,11 @@ type OrdersUpdatelineitemshippingdetailsCall struct { header_ http.Header } -// Updatelineitemshippingdetails: Updates ship by and delivery by dates -// for a line item. +// Updatelineitemshippingdetails: Updates ship by and delivery by dates for a +// line item. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Updatelineitemshippingdetails(merchantId uint64, orderId string, ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest) *OrdersUpdatelineitemshippingdetailsCall { c := &OrdersUpdatelineitemshippingdetailsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -21981,23 +16198,21 @@ func (r *OrdersService) Updatelineitemshippingdetails(merchantId uint64, orderId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersUpdatelineitemshippingdetailsCall) Fields(s ...googleapi.Field) *OrdersUpdatelineitemshippingdetailsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersUpdatelineitemshippingdetailsCall) Context(ctx context.Context) *OrdersUpdatelineitemshippingdetailsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22006,18 +16221,12 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header { } func (c *OrdersUpdatelineitemshippingdetailsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdatelineitemshippingdetailsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateLineItemShippingDetails") @@ -22031,18 +16240,15 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) doRequest(alt string) (*http.R "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.updatelineitemshippingdetails" call. -// Exactly one of *OrdersUpdateLineItemShippingDetailsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *OrdersUpdateLineItemShippingDetailsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersUpdateLineItemShippingDetailsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateLineItemShippingDetailsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22050,17 +16256,17 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersUpdateLineItemShippingDetailsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22073,45 +16279,7 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Updates ship by and delivery by dates for a line item.", - // "flatPath": "{merchantId}/orders/{orderId}/updateLineItemShippingDetails", - // "httpMethod": "POST", - // "id": "content.orders.updatelineitemshippingdetails", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/updateLineItemShippingDetails", - // "request": { - // "$ref": "OrdersUpdateLineItemShippingDetailsRequest" - // }, - // "response": { - // "$ref": "OrdersUpdateLineItemShippingDetailsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.updatemerchantorderid": +} type OrdersUpdatemerchantorderidCall struct { s *APIService @@ -22123,11 +16291,10 @@ type OrdersUpdatemerchantorderidCall struct { header_ http.Header } -// Updatemerchantorderid: Updates the merchant order ID for a given -// order. +// Updatemerchantorderid: Updates the merchant order ID for a given order. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest) *OrdersUpdatemerchantorderidCall { c := &OrdersUpdatemerchantorderidCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -22138,23 +16305,21 @@ func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersUpdatemerchantorderidCall) Fields(s ...googleapi.Field) *OrdersUpdatemerchantorderidCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersUpdatemerchantorderidCall) Context(ctx context.Context) *OrdersUpdatemerchantorderidCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersUpdatemerchantorderidCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22163,18 +16328,12 @@ func (c *OrdersUpdatemerchantorderidCall) Header() http.Header { } func (c *OrdersUpdatemerchantorderidCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdatemerchantorderidrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateMerchantOrderId") @@ -22188,17 +16347,15 @@ func (c *OrdersUpdatemerchantorderidCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.updatemerchantorderid" call. -// Exactly one of *OrdersUpdateMerchantOrderIdResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersUpdateMerchantOrderIdResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersUpdateMerchantOrderIdResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateMerchantOrderIdResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22206,17 +16363,17 @@ func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*Ord if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersUpdateMerchantOrderIdResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22229,45 +16386,7 @@ func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*Ord return nil, err } return ret, nil - // { - // "description": "Updates the merchant order ID for a given order.", - // "flatPath": "{merchantId}/orders/{orderId}/updateMerchantOrderId", - // "httpMethod": "POST", - // "id": "content.orders.updatemerchantorderid", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/updateMerchantOrderId", - // "request": { - // "$ref": "OrdersUpdateMerchantOrderIdRequest" - // }, - // "response": { - // "$ref": "OrdersUpdateMerchantOrderIdResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.updateshipment": +} type OrdersUpdateshipmentCall struct { s *APIService @@ -22279,11 +16398,10 @@ type OrdersUpdateshipmentCall struct { header_ http.Header } -// Updateshipment: Updates a shipment's status, carrier, and/or tracking -// ID. +// Updateshipment: Updates a shipment's status, carrier, and/or tracking ID. // -// - merchantId: The ID of the account that manages the order. This -// cannot be a multi-client account. +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. // - orderId: The ID of the order. func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, ordersupdateshipmentrequest *OrdersUpdateShipmentRequest) *OrdersUpdateshipmentCall { c := &OrdersUpdateshipmentCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -22294,23 +16412,21 @@ func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, orders } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersUpdateshipmentCall) Fields(s ...googleapi.Field) *OrdersUpdateshipmentCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersUpdateshipmentCall) Context(ctx context.Context) *OrdersUpdateshipmentCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersUpdateshipmentCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22319,18 +16435,12 @@ func (c *OrdersUpdateshipmentCall) Header() http.Header { } func (c *OrdersUpdateshipmentCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdateshipmentrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateShipment") @@ -22344,16 +16454,15 @@ func (c *OrdersUpdateshipmentCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.updateshipment" call. -// Exactly one of *OrdersUpdateShipmentResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersUpdateShipmentResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersUpdateShipmentResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateShipmentResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22361,17 +16470,17 @@ func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpda if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersUpdateShipmentResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22384,45 +16493,7 @@ func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpda return nil, err } return ret, nil - // { - // "description": "Updates a shipment's status, carrier, and/or tracking ID.", - // "flatPath": "{merchantId}/orders/{orderId}/updateShipment", - // "httpMethod": "POST", - // "id": "content.orders.updateshipment", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/updateShipment", - // "request": { - // "$ref": "OrdersUpdateShipmentRequest" - // }, - // "response": { - // "$ref": "OrdersUpdateShipmentResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.pos.custombatch": +} type PosCustombatchCall struct { s *APIService @@ -22439,32 +16510,30 @@ func (r *PosService) Custombatch(poscustombatchrequest *PosCustomBatchRequest) * return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *PosCustombatchCall) DryRun(dryRun bool) *PosCustombatchCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PosCustombatchCall) Fields(s ...googleapi.Field) *PosCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PosCustombatchCall) Context(ctx context.Context) *PosCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PosCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22473,18 +16542,12 @@ func (c *PosCustombatchCall) Header() http.Header { } func (c *PosCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.poscustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "pos/batch") @@ -22494,16 +16557,15 @@ func (c *PosCustombatchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.custombatch" call. -// Exactly one of *PosCustomBatchResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PosCustomBatchResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PosCustomBatchResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22511,17 +16573,17 @@ func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PosCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22534,34 +16596,7 @@ func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchRe return nil, err } return ret, nil - // { - // "description": "Batches multiple POS-related calls in a single request.", - // "flatPath": "pos/batch", - // "httpMethod": "POST", - // "id": "content.pos.custombatch", - // "parameterOrder": [], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "pos/batch", - // "request": { - // "$ref": "PosCustomBatchRequest" - // }, - // "response": { - // "$ref": "PosCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.pos.delete": +} type PosDeleteCall struct { s *APIService @@ -22586,32 +16621,30 @@ func (r *PosService) Delete(merchantId uint64, targetMerchantId uint64, storeCod return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *PosDeleteCall) DryRun(dryRun bool) *PosDeleteCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PosDeleteCall) Fields(s ...googleapi.Field) *PosDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PosDeleteCall) Context(ctx context.Context) *PosDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PosDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22620,12 +16653,7 @@ func (c *PosDeleteCall) Header() http.Header { } func (c *PosDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -22641,7 +16669,7 @@ func (c *PosDeleteCall) doRequest(alt string) (*http.Response, error) { "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), "storeCode": c.storeCode, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.delete" call. @@ -22653,55 +16681,10 @@ func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a store for the given merchant.", - // "flatPath": "{merchantId}/pos/{targetMerchantId}/store/{storeCode}", - // "httpMethod": "DELETE", - // "id": "content.pos.delete", - // "parameterOrder": [ - // "merchantId", - // "targetMerchantId", - // "storeCode" - // ], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the POS or inventory data provider.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "storeCode": { - // "description": "A store code that is unique per merchant.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "targetMerchantId": { - // "description": "The ID of the target merchant.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/pos/{targetMerchantId}/store/{storeCode}", - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.pos.get": +} type PosGetCall struct { s *APIService @@ -22728,33 +16711,29 @@ func (r *PosService) Get(merchantId uint64, targetMerchantId uint64, storeCode s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PosGetCall) Fields(s ...googleapi.Field) *PosGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PosGetCall) IfNoneMatch(entityTag string) *PosGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PosGetCall) Context(ctx context.Context) *PosGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PosGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22763,12 +16742,7 @@ func (c *PosGetCall) Header() http.Header { } func (c *PosGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22787,16 +16761,14 @@ func (c *PosGetCall) doRequest(alt string) (*http.Response, error) { "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), "storeCode": c.storeCode, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.get" call. -// Exactly one of *PosStore or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *PosStore.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PosStore.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22804,17 +16776,17 @@ func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PosStore{ ServerResponse: googleapi.ServerResponse{ @@ -22827,50 +16799,7 @@ func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves information about the given store.", - // "flatPath": "{merchantId}/pos/{targetMerchantId}/store/{storeCode}", - // "httpMethod": "GET", - // "id": "content.pos.get", - // "parameterOrder": [ - // "merchantId", - // "targetMerchantId", - // "storeCode" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the POS or inventory data provider.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "storeCode": { - // "description": "A store code that is unique per merchant.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "targetMerchantId": { - // "description": "The ID of the target merchant.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/pos/{targetMerchantId}/store/{storeCode}", - // "response": { - // "$ref": "PosStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.pos.insert": +} type PosInsertCall struct { s *APIService @@ -22894,32 +16823,30 @@ func (r *PosService) Insert(merchantId uint64, targetMerchantId uint64, posstore return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *PosInsertCall) DryRun(dryRun bool) *PosInsertCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PosInsertCall) Fields(s ...googleapi.Field) *PosInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PosInsertCall) Context(ctx context.Context) *PosInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PosInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22928,18 +16855,12 @@ func (c *PosInsertCall) Header() http.Header { } func (c *PosInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.posstore) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store") @@ -22953,16 +16874,14 @@ func (c *PosInsertCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.insert" call. -// Exactly one of *PosStore or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *PosStore.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PosStore.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PosInsertCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22970,17 +16889,17 @@ func (c *PosInsertCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PosStore{ ServerResponse: googleapi.ServerResponse{ @@ -22993,51 +16912,7 @@ func (c *PosInsertCall) Do(opts ...googleapi.CallOption) (*PosStore, error) { return nil, err } return ret, nil - // { - // "description": "Creates a store for the given merchant.", - // "flatPath": "{merchantId}/pos/{targetMerchantId}/store", - // "httpMethod": "POST", - // "id": "content.pos.insert", - // "parameterOrder": [ - // "merchantId", - // "targetMerchantId" - // ], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the POS or inventory data provider.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "targetMerchantId": { - // "description": "The ID of the target merchant.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/pos/{targetMerchantId}/store", - // "request": { - // "$ref": "PosStore" - // }, - // "response": { - // "$ref": "PosStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.pos.inventory": +} type PosInventoryCall struct { s *APIService @@ -23061,32 +16936,30 @@ func (r *PosService) Inventory(merchantId uint64, targetMerchantId uint64, posin return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *PosInventoryCall) DryRun(dryRun bool) *PosInventoryCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PosInventoryCall) Fields(s ...googleapi.Field) *PosInventoryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PosInventoryCall) Context(ctx context.Context) *PosInventoryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PosInventoryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23095,18 +16968,12 @@ func (c *PosInventoryCall) Header() http.Header { } func (c *PosInventoryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.posinventoryrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/inventory") @@ -23120,16 +16987,15 @@ func (c *PosInventoryCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.inventory" call. -// Exactly one of *PosInventoryResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PosInventoryResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PosInventoryResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PosInventoryCall) Do(opts ...googleapi.CallOption) (*PosInventoryResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23137,17 +17003,17 @@ func (c *PosInventoryCall) Do(opts ...googleapi.CallOption) (*PosInventoryRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PosInventoryResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23160,51 +17026,7 @@ func (c *PosInventoryCall) Do(opts ...googleapi.CallOption) (*PosInventoryRespon return nil, err } return ret, nil - // { - // "description": "Submit inventory for the given merchant.", - // "flatPath": "{merchantId}/pos/{targetMerchantId}/inventory", - // "httpMethod": "POST", - // "id": "content.pos.inventory", - // "parameterOrder": [ - // "merchantId", - // "targetMerchantId" - // ], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the POS or inventory data provider.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "targetMerchantId": { - // "description": "The ID of the target merchant.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/pos/{targetMerchantId}/inventory", - // "request": { - // "$ref": "PosInventoryRequest" - // }, - // "response": { - // "$ref": "PosInventoryResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.pos.list": +} type PosListCall struct { s *APIService @@ -23228,33 +17050,29 @@ func (r *PosService) List(merchantId uint64, targetMerchantId uint64) *PosListCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PosListCall) Fields(s ...googleapi.Field) *PosListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PosListCall) IfNoneMatch(entityTag string) *PosListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PosListCall) Context(ctx context.Context) *PosListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PosListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23263,12 +17081,7 @@ func (c *PosListCall) Header() http.Header { } func (c *PosListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23286,16 +17099,15 @@ func (c *PosListCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.list" call. -// Exactly one of *PosListResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PosListResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PosListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23303,17 +17115,17 @@ func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PosListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23326,43 +17138,7 @@ func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error) return nil, err } return ret, nil - // { - // "description": "Lists the stores of the target merchant.", - // "flatPath": "{merchantId}/pos/{targetMerchantId}/store", - // "httpMethod": "GET", - // "id": "content.pos.list", - // "parameterOrder": [ - // "merchantId", - // "targetMerchantId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the POS or inventory data provider.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "targetMerchantId": { - // "description": "The ID of the target merchant.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/pos/{targetMerchantId}/store", - // "response": { - // "$ref": "PosListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.pos.sale": +} type PosSaleCall struct { s *APIService @@ -23386,32 +17162,30 @@ func (r *PosService) Sale(merchantId uint64, targetMerchantId uint64, possalereq return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *PosSaleCall) DryRun(dryRun bool) *PosSaleCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PosSaleCall) Fields(s ...googleapi.Field) *PosSaleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PosSaleCall) Context(ctx context.Context) *PosSaleCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PosSaleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23420,18 +17194,12 @@ func (c *PosSaleCall) Header() http.Header { } func (c *PosSaleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.possalerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/sale") @@ -23445,16 +17213,15 @@ func (c *PosSaleCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.pos.sale" call. -// Exactly one of *PosSaleResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PosSaleResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PosSaleResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PosSaleCall) Do(opts ...googleapi.CallOption) (*PosSaleResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23462,17 +17229,17 @@ func (c *PosSaleCall) Do(opts ...googleapi.CallOption) (*PosSaleResponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PosSaleResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23485,51 +17252,7 @@ func (c *PosSaleCall) Do(opts ...googleapi.CallOption) (*PosSaleResponse, error) return nil, err } return ret, nil - // { - // "description": "Submit a sale event for the given merchant.", - // "flatPath": "{merchantId}/pos/{targetMerchantId}/sale", - // "httpMethod": "POST", - // "id": "content.pos.sale", - // "parameterOrder": [ - // "merchantId", - // "targetMerchantId" - // ], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the POS or inventory data provider.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "targetMerchantId": { - // "description": "The ID of the target merchant.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/pos/{targetMerchantId}/sale", - // "request": { - // "$ref": "PosSaleRequest" - // }, - // "response": { - // "$ref": "PosSaleResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.products.custombatch": +} type ProductsCustombatchCall struct { s *APIService @@ -23539,40 +17262,38 @@ type ProductsCustombatchCall struct { header_ http.Header } -// Custombatch: Retrieves, inserts, and deletes multiple products in a -// single request. +// Custombatch: Retrieves, inserts, and deletes multiple products in a single +// request. func (r *ProductsService) Custombatch(productscustombatchrequest *ProductsCustomBatchRequest) *ProductsCustombatchCall { c := &ProductsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.productscustombatchrequest = productscustombatchrequest return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *ProductsCustombatchCall) DryRun(dryRun bool) *ProductsCustombatchCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProductsCustombatchCall) Fields(s ...googleapi.Field) *ProductsCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProductsCustombatchCall) Context(ctx context.Context) *ProductsCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProductsCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23581,18 +17302,12 @@ func (c *ProductsCustombatchCall) Header() http.Header { } func (c *ProductsCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.productscustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "products/batch") @@ -23602,16 +17317,15 @@ func (c *ProductsCustombatchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.custombatch" call. -// Exactly one of *ProductsCustomBatchResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ProductsCustomBatchResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ProductsCustomBatchResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProductsCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductsCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23619,17 +17333,17 @@ func (c *ProductsCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductsCus if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProductsCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23642,34 +17356,7 @@ func (c *ProductsCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductsCus return nil, err } return ret, nil - // { - // "description": "Retrieves, inserts, and deletes multiple products in a single request.", - // "flatPath": "products/batch", - // "httpMethod": "POST", - // "id": "content.products.custombatch", - // "parameterOrder": [], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "products/batch", - // "request": { - // "$ref": "ProductsCustomBatchRequest" - // }, - // "response": { - // "$ref": "ProductsCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.products.delete": +} type ProductsDeleteCall struct { s *APIService @@ -23682,8 +17369,8 @@ type ProductsDeleteCall struct { // Delete: Deletes a product from your Merchant Center account. // -// - merchantId: The ID of the account that contains the product. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that contains the product. This account +// cannot be a multi-client account. // - productId: The REST ID of the product. func (r *ProductsService) Delete(merchantId uint64, productId string) *ProductsDeleteCall { c := &ProductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -23692,32 +17379,30 @@ func (r *ProductsService) Delete(merchantId uint64, productId string) *ProductsD return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *ProductsDeleteCall) DryRun(dryRun bool) *ProductsDeleteCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProductsDeleteCall) Fields(s ...googleapi.Field) *ProductsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProductsDeleteCall) Context(ctx context.Context) *ProductsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProductsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23726,12 +17411,7 @@ func (c *ProductsDeleteCall) Header() http.Header { } func (c *ProductsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -23746,7 +17426,7 @@ func (c *ProductsDeleteCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.delete" call. @@ -23758,47 +17438,10 @@ func (c *ProductsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a product from your Merchant Center account.", - // "flatPath": "{merchantId}/products/{productId}", - // "httpMethod": "DELETE", - // "id": "content.products.delete", - // "parameterOrder": [ - // "merchantId", - // "productId" - // ], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the account that contains the product. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "productId": { - // "description": "The REST ID of the product.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/products/{productId}", - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.products.get": +} type ProductsGetCall struct { s *APIService @@ -23812,8 +17455,8 @@ type ProductsGetCall struct { // Get: Retrieves a product from your Merchant Center account. // -// - merchantId: The ID of the account that contains the product. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that contains the product. This account +// cannot be a multi-client account. // - productId: The REST ID of the product. func (r *ProductsService) Get(merchantId uint64, productId string) *ProductsGetCall { c := &ProductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -23823,33 +17466,29 @@ func (r *ProductsService) Get(merchantId uint64, productId string) *ProductsGetC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProductsGetCall) Fields(s ...googleapi.Field) *ProductsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProductsGetCall) IfNoneMatch(entityTag string) *ProductsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProductsGetCall) Context(ctx context.Context) *ProductsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProductsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23858,12 +17497,7 @@ func (c *ProductsGetCall) Header() http.Header { } func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23881,16 +17515,14 @@ func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.get" call. -// Exactly one of *Product or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Product.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Product.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23898,17 +17530,17 @@ func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Product{ ServerResponse: googleapi.ServerResponse{ @@ -23921,42 +17553,7 @@ func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a product from your Merchant Center account.", - // "flatPath": "{merchantId}/products/{productId}", - // "httpMethod": "GET", - // "id": "content.products.get", - // "parameterOrder": [ - // "merchantId", - // "productId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that contains the product. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "productId": { - // "description": "The REST ID of the product.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/products/{productId}", - // "response": { - // "$ref": "Product" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.products.insert": +} type ProductsInsertCall struct { s *APIService @@ -23967,12 +17564,12 @@ type ProductsInsertCall struct { header_ http.Header } -// Insert: Uploads a product to your Merchant Center account. If an item -// with the same channel, contentLanguage, offerId, and targetCountry -// already exists, this method updates that entry. +// Insert: Uploads a product to your Merchant Center account. If an item with +// the same channel, contentLanguage, offerId, and targetCountry already +// exists, this method updates that entry. // -// - merchantId: The ID of the account that contains the product. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that contains the product. This account +// cannot be a multi-client account. func (r *ProductsService) Insert(merchantId uint64, product *Product) *ProductsInsertCall { c := &ProductsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -23980,32 +17577,30 @@ func (r *ProductsService) Insert(merchantId uint64, product *Product) *ProductsI return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *ProductsInsertCall) DryRun(dryRun bool) *ProductsInsertCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProductsInsertCall) Fields(s ...googleapi.Field) *ProductsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProductsInsertCall) Context(ctx context.Context) *ProductsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProductsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24014,18 +17609,12 @@ func (c *ProductsInsertCall) Header() http.Header { } func (c *ProductsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.product) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products") @@ -24038,16 +17627,14 @@ func (c *ProductsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.insert" call. -// Exactly one of *Product or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Product.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Product.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProductsInsertCall) Do(opts ...googleapi.CallOption) (*Product, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24055,17 +17642,17 @@ func (c *ProductsInsertCall) Do(opts ...googleapi.CallOption) (*Product, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Product{ ServerResponse: googleapi.ServerResponse{ @@ -24078,43 +17665,7 @@ func (c *ProductsInsertCall) Do(opts ...googleapi.CallOption) (*Product, error) return nil, err } return ret, nil - // { - // "description": "Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry.", - // "flatPath": "{merchantId}/products", - // "httpMethod": "POST", - // "id": "content.products.insert", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the account that contains the product. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/products", - // "request": { - // "$ref": "Product" - // }, - // "response": { - // "$ref": "Product" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.products.list": +} type ProductsListCall struct { s *APIService @@ -24125,13 +17676,12 @@ type ProductsListCall struct { header_ http.Header } -// List: Lists the products in your Merchant Center account. The -// response might contain fewer items than specified by maxResults. Rely -// on nextPageToken to determine if there are more items to be -// requested. +// List: Lists the products in your Merchant Center account. The response might +// contain fewer items than specified by maxResults. Rely on nextPageToken to +// determine if there are more items to be requested. // -// - merchantId: The ID of the account that contains the products. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that contains the products. This account +// cannot be a multi-client account. func (r *ProductsService) List(merchantId uint64) *ProductsListCall { c := &ProductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -24139,56 +17689,52 @@ func (r *ProductsService) List(merchantId uint64) *ProductsListCall { } // IncludeInvalidInsertedItems sets the optional parameter -// "includeInvalidInsertedItems": Flag to include the invalid inserted -// items in the result of the list request. By default the invalid items -// are not shown (the default value is false). +// "includeInvalidInsertedItems": Flag to include the invalid inserted items in +// the result of the list request. By default the invalid items are not shown +// (the default value is false). func (c *ProductsListCall) IncludeInvalidInsertedItems(includeInvalidInsertedItems bool) *ProductsListCall { c.urlParams_.Set("includeInvalidInsertedItems", fmt.Sprint(includeInvalidInsertedItems)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of products to return in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// products to return in the response, used for paging. func (c *ProductsListCall) MaxResults(maxResults int64) *ProductsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *ProductsListCall) PageToken(pageToken string) *ProductsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProductsListCall) Fields(s ...googleapi.Field) *ProductsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProductsListCall) IfNoneMatch(entityTag string) *ProductsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProductsListCall) Context(ctx context.Context) *ProductsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProductsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24197,12 +17743,7 @@ func (c *ProductsListCall) Header() http.Header { } func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24219,16 +17760,15 @@ func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.products.list" call. -// Exactly one of *ProductsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ProductsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProductsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24236,17 +17776,17 @@ func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProductsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24259,48 +17799,6 @@ func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListRespon return nil, err } return ret, nil - // { - // "description": "Lists the products in your Merchant Center account. The response might contain fewer items than specified by maxResults. Rely on nextPageToken to determine if there are more items to be requested.", - // "flatPath": "{merchantId}/products", - // "httpMethod": "GET", - // "id": "content.products.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "includeInvalidInsertedItems": { - // "description": "Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false).", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of products to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the account that contains the products. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/products", - // "response": { - // "$ref": "ProductsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -24308,7 +17806,7 @@ func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListRespon // The provided context supersedes any context provided to the Context method. func (c *ProductsListCall) Pages(ctx context.Context, f func(*ProductsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -24324,8 +17822,6 @@ func (c *ProductsListCall) Pages(ctx context.Context, f func(*ProductsListRespon } } -// method id "content.productstatuses.custombatch": - type ProductstatusesCustombatchCall struct { s *APIService productstatusescustombatchrequest *ProductstatusesCustomBatchRequest @@ -24334,40 +17830,37 @@ type ProductstatusesCustombatchCall struct { header_ http.Header } -// Custombatch: Gets the statuses of multiple products in a single -// request. +// Custombatch: Gets the statuses of multiple products in a single request. func (r *ProductstatusesService) Custombatch(productstatusescustombatchrequest *ProductstatusesCustomBatchRequest) *ProductstatusesCustombatchCall { c := &ProductstatusesCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.productstatusescustombatchrequest = productstatusescustombatchrequest return c } -// IncludeAttributes sets the optional parameter "includeAttributes": -// Flag to include full product data in the results of this request. The -// default value is false. +// IncludeAttributes sets the optional parameter "includeAttributes": Flag to +// include full product data in the results of this request. The default value +// is false. func (c *ProductstatusesCustombatchCall) IncludeAttributes(includeAttributes bool) *ProductstatusesCustombatchCall { c.urlParams_.Set("includeAttributes", fmt.Sprint(includeAttributes)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProductstatusesCustombatchCall) Fields(s ...googleapi.Field) *ProductstatusesCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProductstatusesCustombatchCall) Context(ctx context.Context) *ProductstatusesCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProductstatusesCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24376,18 +17869,12 @@ func (c *ProductstatusesCustombatchCall) Header() http.Header { } func (c *ProductstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.productstatusescustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "productstatuses/batch") @@ -24397,17 +17884,15 @@ func (c *ProductstatusesCustombatchCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.productstatuses.custombatch" call. -// Exactly one of *ProductstatusesCustomBatchResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ProductstatusesCustomBatchResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProductstatusesCustomBatchResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProductstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductstatusesCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24415,17 +17900,17 @@ func (c *ProductstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*Prod if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProductstatusesCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24438,34 +17923,7 @@ func (c *ProductstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*Prod return nil, err } return ret, nil - // { - // "description": "Gets the statuses of multiple products in a single request.", - // "flatPath": "productstatuses/batch", - // "httpMethod": "POST", - // "id": "content.productstatuses.custombatch", - // "parameterOrder": [], - // "parameters": { - // "includeAttributes": { - // "description": "Flag to include full product data in the results of this request. The default value is false.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "productstatuses/batch", - // "request": { - // "$ref": "ProductstatusesCustomBatchRequest" - // }, - // "response": { - // "$ref": "ProductstatusesCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.productstatuses.get": +} type ProductstatusesGetCall struct { s *APIService @@ -24479,8 +17937,8 @@ type ProductstatusesGetCall struct { // Get: Gets the status of a product from your Merchant Center account. // -// - merchantId: The ID of the account that contains the product. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that contains the product. This account +// cannot be a multi-client account. // - productId: The REST ID of the product. func (r *ProductstatusesService) Get(merchantId uint64, productId string) *ProductstatusesGetCall { c := &ProductstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -24489,50 +17947,46 @@ func (r *ProductstatusesService) Get(merchantId uint64, productId string) *Produ return c } -// Destinations sets the optional parameter "destinations": If set, only -// issues for the specified destinations are returned, otherwise only -// issues for the Shopping destination. +// Destinations sets the optional parameter "destinations": If set, only issues +// for the specified destinations are returned, otherwise only issues for the +// Shopping destination. func (c *ProductstatusesGetCall) Destinations(destinations ...string) *ProductstatusesGetCall { c.urlParams_.SetMulti("destinations", append([]string{}, destinations...)) return c } -// IncludeAttributes sets the optional parameter "includeAttributes": -// Flag to include full product data in the result of this get request. -// The default value is false. +// IncludeAttributes sets the optional parameter "includeAttributes": Flag to +// include full product data in the result of this get request. The default +// value is false. func (c *ProductstatusesGetCall) IncludeAttributes(includeAttributes bool) *ProductstatusesGetCall { c.urlParams_.Set("includeAttributes", fmt.Sprint(includeAttributes)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProductstatusesGetCall) Fields(s ...googleapi.Field) *ProductstatusesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProductstatusesGetCall) IfNoneMatch(entityTag string) *ProductstatusesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProductstatusesGetCall) Context(ctx context.Context) *ProductstatusesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProductstatusesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24541,12 +17995,7 @@ func (c *ProductstatusesGetCall) Header() http.Header { } func (c *ProductstatusesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24564,16 +18013,14 @@ func (c *ProductstatusesGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.productstatuses.get" call. -// Exactly one of *ProductStatus or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ProductStatus.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProductStatus.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatus, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24581,17 +18028,17 @@ func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatu if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProductStatus{ ServerResponse: googleapi.ServerResponse{ @@ -24604,53 +18051,7 @@ func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatu return nil, err } return ret, nil - // { - // "description": "Gets the status of a product from your Merchant Center account.", - // "flatPath": "{merchantId}/productstatuses/{productId}", - // "httpMethod": "GET", - // "id": "content.productstatuses.get", - // "parameterOrder": [ - // "merchantId", - // "productId" - // ], - // "parameters": { - // "destinations": { - // "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "includeAttributes": { - // "description": "Flag to include full product data in the result of this get request. The default value is false.", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the account that contains the product. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "productId": { - // "description": "The REST ID of the product.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/productstatuses/{productId}", - // "response": { - // "$ref": "ProductStatus" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.productstatuses.list": +} type ProductstatusesListCall struct { s *APIService @@ -24661,85 +18062,79 @@ type ProductstatusesListCall struct { header_ http.Header } -// List: Lists the statuses of the products in your Merchant Center -// account. +// List: Lists the statuses of the products in your Merchant Center account. // -// - merchantId: The ID of the account that contains the products. This -// account cannot be a multi-client account. +// - merchantId: The ID of the account that contains the products. This account +// cannot be a multi-client account. func (r *ProductstatusesService) List(merchantId uint64) *ProductstatusesListCall { c := &ProductstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// Destinations sets the optional parameter "destinations": If set, only -// issues for the specified destinations are returned, otherwise only -// issues for the Shopping destination. +// Destinations sets the optional parameter "destinations": If set, only issues +// for the specified destinations are returned, otherwise only issues for the +// Shopping destination. func (c *ProductstatusesListCall) Destinations(destinations ...string) *ProductstatusesListCall { c.urlParams_.SetMulti("destinations", append([]string{}, destinations...)) return c } -// IncludeAttributes sets the optional parameter "includeAttributes": -// Flag to include full product data in the results of the list request. -// The default value is false. +// IncludeAttributes sets the optional parameter "includeAttributes": Flag to +// include full product data in the results of the list request. The default +// value is false. func (c *ProductstatusesListCall) IncludeAttributes(includeAttributes bool) *ProductstatusesListCall { c.urlParams_.Set("includeAttributes", fmt.Sprint(includeAttributes)) return c } // IncludeInvalidInsertedItems sets the optional parameter -// "includeInvalidInsertedItems": Flag to include the invalid inserted -// items in the result of the list request. By default the invalid items -// are not shown (the default value is false). +// "includeInvalidInsertedItems": Flag to include the invalid inserted items in +// the result of the list request. By default the invalid items are not shown +// (the default value is false). func (c *ProductstatusesListCall) IncludeInvalidInsertedItems(includeInvalidInsertedItems bool) *ProductstatusesListCall { c.urlParams_.Set("includeInvalidInsertedItems", fmt.Sprint(includeInvalidInsertedItems)) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of product statuses to return in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// product statuses to return in the response, used for paging. func (c *ProductstatusesListCall) MaxResults(maxResults int64) *ProductstatusesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *ProductstatusesListCall) PageToken(pageToken string) *ProductstatusesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProductstatusesListCall) Fields(s ...googleapi.Field) *ProductstatusesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProductstatusesListCall) IfNoneMatch(entityTag string) *ProductstatusesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProductstatusesListCall) Context(ctx context.Context) *ProductstatusesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProductstatusesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24748,12 +18143,7 @@ func (c *ProductstatusesListCall) Header() http.Header { } func (c *ProductstatusesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24770,16 +18160,15 @@ func (c *ProductstatusesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.productstatuses.list" call. -// Exactly one of *ProductstatusesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ProductstatusesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ProductstatusesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*ProductstatusesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24787,17 +18176,17 @@ func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*Productstat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProductstatusesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24810,59 +18199,6 @@ func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*Productstat return nil, err } return ret, nil - // { - // "description": "Lists the statuses of the products in your Merchant Center account.", - // "flatPath": "{merchantId}/productstatuses", - // "httpMethod": "GET", - // "id": "content.productstatuses.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "destinations": { - // "description": "If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "includeAttributes": { - // "description": "Flag to include full product data in the results of the list request. The default value is false.", - // "location": "query", - // "type": "boolean" - // }, - // "includeInvalidInsertedItems": { - // "description": "Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false).", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of product statuses to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the account that contains the products. This account cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/productstatuses", - // "response": { - // "$ref": "ProductstatusesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -24870,7 +18206,7 @@ func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*Productstat // The provided context supersedes any context provided to the Context method. func (c *ProductstatusesListCall) Pages(ctx context.Context, f func(*ProductstatusesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -24886,8 +18222,6 @@ func (c *ProductstatusesListCall) Pages(ctx context.Context, f func(*Productstat } } -// method id "content.shippingsettings.custombatch": - type ShippingsettingsCustombatchCall struct { s *APIService shippingsettingscustombatchrequest *ShippingsettingsCustomBatchRequest @@ -24904,32 +18238,30 @@ func (r *ShippingsettingsService) Custombatch(shippingsettingscustombatchrequest return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *ShippingsettingsCustombatchCall) DryRun(dryRun bool) *ShippingsettingsCustombatchCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ShippingsettingsCustombatchCall) Fields(s ...googleapi.Field) *ShippingsettingsCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ShippingsettingsCustombatchCall) Context(ctx context.Context) *ShippingsettingsCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ShippingsettingsCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24938,18 +18270,12 @@ func (c *ShippingsettingsCustombatchCall) Header() http.Header { } func (c *ShippingsettingsCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.shippingsettingscustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "shippingsettings/batch") @@ -24959,17 +18285,15 @@ func (c *ShippingsettingsCustombatchCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.custombatch" call. -// Exactly one of *ShippingsettingsCustomBatchResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ShippingsettingsCustomBatchResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ShippingsettingsCustomBatchResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ShippingsettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24977,17 +18301,17 @@ func (c *ShippingsettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*Shi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ShippingsettingsCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25000,34 +18324,7 @@ func (c *ShippingsettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*Shi return nil, err } return ret, nil - // { - // "description": "Retrieves and updates the shipping settings of multiple accounts in a single request.", - // "flatPath": "shippingsettings/batch", - // "httpMethod": "POST", - // "id": "content.shippingsettings.custombatch", - // "parameterOrder": [], - // "parameters": { - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "shippingsettings/batch", - // "request": { - // "$ref": "ShippingsettingsCustomBatchRequest" - // }, - // "response": { - // "$ref": "ShippingsettingsCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.shippingsettings.get": +} type ShippingsettingsGetCall struct { s *APIService @@ -25043,10 +18340,9 @@ type ShippingsettingsGetCall struct { // // - accountId: The ID of the account for which to get/update shipping // settings. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *ShippingsettingsService) Get(merchantId uint64, accountId uint64) *ShippingsettingsGetCall { c := &ShippingsettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -25055,33 +18351,29 @@ func (r *ShippingsettingsService) Get(merchantId uint64, accountId uint64) *Ship } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ShippingsettingsGetCall) Fields(s ...googleapi.Field) *ShippingsettingsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ShippingsettingsGetCall) IfNoneMatch(entityTag string) *ShippingsettingsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ShippingsettingsGetCall) Context(ctx context.Context) *ShippingsettingsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ShippingsettingsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25090,12 +18382,7 @@ func (c *ShippingsettingsGetCall) Header() http.Header { } func (c *ShippingsettingsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25113,16 +18400,15 @@ func (c *ShippingsettingsGetCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.get" call. -// Exactly one of *ShippingSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ShippingSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ShippingSettings.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ShippingsettingsGetCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25130,17 +18416,17 @@ func (c *ShippingsettingsGetCall) Do(opts ...googleapi.CallOption) (*ShippingSet if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ShippingSettings{ ServerResponse: googleapi.ServerResponse{ @@ -25153,43 +18439,7 @@ func (c *ShippingsettingsGetCall) Do(opts ...googleapi.CallOption) (*ShippingSet return nil, err } return ret, nil - // { - // "description": "Retrieves the shipping settings of the account.", - // "flatPath": "{merchantId}/shippingsettings/{accountId}", - // "httpMethod": "GET", - // "id": "content.shippingsettings.get", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account for which to get/update shipping settings.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/shippingsettings/{accountId}", - // "response": { - // "$ref": "ShippingSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.shippingsettings.getsupportedcarriers": +} type ShippingsettingsGetsupportedcarriersCall struct { s *APIService @@ -25200,11 +18450,11 @@ type ShippingsettingsGetsupportedcarriersCall struct { header_ http.Header } -// Getsupportedcarriers: Retrieves supported carriers and carrier -// services for an account. +// Getsupportedcarriers: Retrieves supported carriers and carrier services for +// an account. // -// - merchantId: The ID of the account for which to retrieve the -// supported carriers. +// - merchantId: The ID of the account for which to retrieve the supported +// carriers. func (r *ShippingsettingsService) Getsupportedcarriers(merchantId uint64) *ShippingsettingsGetsupportedcarriersCall { c := &ShippingsettingsGetsupportedcarriersCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -25212,33 +18462,29 @@ func (r *ShippingsettingsService) Getsupportedcarriers(merchantId uint64) *Shipp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ShippingsettingsGetsupportedcarriersCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedcarriersCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ShippingsettingsGetsupportedcarriersCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedcarriersCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ShippingsettingsGetsupportedcarriersCall) Context(ctx context.Context) *ShippingsettingsGetsupportedcarriersCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ShippingsettingsGetsupportedcarriersCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25247,12 +18493,7 @@ func (c *ShippingsettingsGetsupportedcarriersCall) Header() http.Header { } func (c *ShippingsettingsGetsupportedcarriersCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25269,18 +18510,15 @@ func (c *ShippingsettingsGetsupportedcarriersCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.getsupportedcarriers" call. -// Exactly one of *ShippingsettingsGetSupportedCarriersResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *ShippingsettingsGetSupportedCarriersResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ShippingsettingsGetSupportedCarriersResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ShippingsettingsGetsupportedcarriersCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedCarriersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25288,17 +18526,17 @@ func (c *ShippingsettingsGetsupportedcarriersCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ShippingsettingsGetSupportedCarriersResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25311,35 +18549,7 @@ func (c *ShippingsettingsGetsupportedcarriersCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Retrieves supported carriers and carrier services for an account.", - // "flatPath": "{merchantId}/supportedCarriers", - // "httpMethod": "GET", - // "id": "content.shippingsettings.getsupportedcarriers", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account for which to retrieve the supported carriers.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/supportedCarriers", - // "response": { - // "$ref": "ShippingsettingsGetSupportedCarriersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.shippingsettings.getsupportedholidays": +} type ShippingsettingsGetsupportedholidaysCall struct { s *APIService @@ -25352,8 +18562,8 @@ type ShippingsettingsGetsupportedholidaysCall struct { // Getsupportedholidays: Retrieves supported holidays for an account. // -// - merchantId: The ID of the account for which to retrieve the -// supported holidays. +// - merchantId: The ID of the account for which to retrieve the supported +// holidays. func (r *ShippingsettingsService) Getsupportedholidays(merchantId uint64) *ShippingsettingsGetsupportedholidaysCall { c := &ShippingsettingsGetsupportedholidaysCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -25361,33 +18571,29 @@ func (r *ShippingsettingsService) Getsupportedholidays(merchantId uint64) *Shipp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ShippingsettingsGetsupportedholidaysCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedholidaysCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ShippingsettingsGetsupportedholidaysCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedholidaysCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ShippingsettingsGetsupportedholidaysCall) Context(ctx context.Context) *ShippingsettingsGetsupportedholidaysCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ShippingsettingsGetsupportedholidaysCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25396,12 +18602,7 @@ func (c *ShippingsettingsGetsupportedholidaysCall) Header() http.Header { } func (c *ShippingsettingsGetsupportedholidaysCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25418,18 +18619,15 @@ func (c *ShippingsettingsGetsupportedholidaysCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.getsupportedholidays" call. -// Exactly one of *ShippingsettingsGetSupportedHolidaysResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *ShippingsettingsGetSupportedHolidaysResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ShippingsettingsGetSupportedHolidaysResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ShippingsettingsGetsupportedholidaysCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedHolidaysResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25437,17 +18635,17 @@ func (c *ShippingsettingsGetsupportedholidaysCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ShippingsettingsGetSupportedHolidaysResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25460,35 +18658,7 @@ func (c *ShippingsettingsGetsupportedholidaysCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Retrieves supported holidays for an account.", - // "flatPath": "{merchantId}/supportedHolidays", - // "httpMethod": "GET", - // "id": "content.shippingsettings.getsupportedholidays", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account for which to retrieve the supported holidays.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/supportedHolidays", - // "response": { - // "$ref": "ShippingsettingsGetSupportedHolidaysResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.shippingsettings.getsupportedpickupservices": +} type ShippingsettingsGetsupportedpickupservicesCall struct { s *APIService @@ -25499,11 +18669,11 @@ type ShippingsettingsGetsupportedpickupservicesCall struct { header_ http.Header } -// Getsupportedpickupservices: Retrieves supported pickup services for -// an account. +// Getsupportedpickupservices: Retrieves supported pickup services for an +// account. // -// - merchantId: The ID of the account for which to retrieve the -// supported pickup services. +// - merchantId: The ID of the account for which to retrieve the supported +// pickup services. func (r *ShippingsettingsService) Getsupportedpickupservices(merchantId uint64) *ShippingsettingsGetsupportedpickupservicesCall { c := &ShippingsettingsGetsupportedpickupservicesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -25511,33 +18681,29 @@ func (r *ShippingsettingsService) Getsupportedpickupservices(merchantId uint64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ShippingsettingsGetsupportedpickupservicesCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedpickupservicesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ShippingsettingsGetsupportedpickupservicesCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedpickupservicesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ShippingsettingsGetsupportedpickupservicesCall) Context(ctx context.Context) *ShippingsettingsGetsupportedpickupservicesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ShippingsettingsGetsupportedpickupservicesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25546,12 +18712,7 @@ func (c *ShippingsettingsGetsupportedpickupservicesCall) Header() http.Header { } func (c *ShippingsettingsGetsupportedpickupservicesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25568,18 +18729,15 @@ func (c *ShippingsettingsGetsupportedpickupservicesCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.getsupportedpickupservices" call. -// Exactly one of *ShippingsettingsGetSupportedPickupServicesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *ShippingsettingsGetSupportedPickupServicesResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ShippingsettingsGetSupportedPickupServicesResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ShippingsettingsGetsupportedpickupservicesCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedPickupServicesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25587,17 +18745,17 @@ func (c *ShippingsettingsGetsupportedpickupservicesCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ShippingsettingsGetSupportedPickupServicesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25610,35 +18768,7 @@ func (c *ShippingsettingsGetsupportedpickupservicesCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Retrieves supported pickup services for an account.", - // "flatPath": "{merchantId}/supportedPickupServices", - // "httpMethod": "GET", - // "id": "content.shippingsettings.getsupportedpickupservices", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account for which to retrieve the supported pickup services.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/supportedPickupServices", - // "response": { - // "$ref": "ShippingsettingsGetSupportedPickupServicesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.shippingsettings.list": +} type ShippingsettingsListCall struct { s *APIService @@ -25649,60 +18779,55 @@ type ShippingsettingsListCall struct { header_ http.Header } -// List: Lists the shipping settings of the sub-accounts in your -// Merchant Center account. +// List: Lists the shipping settings of the sub-accounts in your Merchant +// Center account. // -// - merchantId: The ID of the managing account. This must be a -// multi-client account. +// - merchantId: The ID of the managing account. This must be a multi-client +// account. func (r *ShippingsettingsService) List(merchantId uint64) *ShippingsettingsListCall { c := &ShippingsettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of shipping settings to return in the response, used for -// paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// shipping settings to return in the response, used for paging. func (c *ShippingsettingsListCall) MaxResults(maxResults int64) *ShippingsettingsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *ShippingsettingsListCall) PageToken(pageToken string) *ShippingsettingsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ShippingsettingsListCall) Fields(s ...googleapi.Field) *ShippingsettingsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ShippingsettingsListCall) IfNoneMatch(entityTag string) *ShippingsettingsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ShippingsettingsListCall) Context(ctx context.Context) *ShippingsettingsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ShippingsettingsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25711,12 +18836,7 @@ func (c *ShippingsettingsListCall) Header() http.Header { } func (c *ShippingsettingsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25733,16 +18853,15 @@ func (c *ShippingsettingsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.list" call. -// Exactly one of *ShippingsettingsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ShippingsettingsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ShippingsettingsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ShippingsettingsListCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25750,17 +18869,17 @@ func (c *ShippingsettingsListCall) Do(opts ...googleapi.CallOption) (*Shippingse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ShippingsettingsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25773,43 +18892,6 @@ func (c *ShippingsettingsListCall) Do(opts ...googleapi.CallOption) (*Shippingse return nil, err } return ret, nil - // { - // "description": "Lists the shipping settings of the sub-accounts in your Merchant Center account.", - // "flatPath": "{merchantId}/shippingsettings", - // "httpMethod": "GET", - // "id": "content.shippingsettings.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "maxResults": { - // "description": "The maximum number of shipping settings to return in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the managing account. This must be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/shippingsettings", - // "response": { - // "$ref": "ShippingsettingsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -25817,7 +18899,7 @@ func (c *ShippingsettingsListCall) Do(opts ...googleapi.CallOption) (*Shippingse // The provided context supersedes any context provided to the Context method. func (c *ShippingsettingsListCall) Pages(ctx context.Context, f func(*ShippingsettingsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -25833,8 +18915,6 @@ func (c *ShippingsettingsListCall) Pages(ctx context.Context, f func(*Shippingse } } -// method id "content.shippingsettings.update": - type ShippingsettingsUpdateCall struct { s *APIService merchantId uint64 @@ -25845,15 +18925,14 @@ type ShippingsettingsUpdateCall struct { header_ http.Header } -// Update: Updates the shipping settings of the account. Any fields that -// are not provided are deleted from the resource. +// Update: Updates the shipping settings of the account. Any fields that are +// not provided are deleted from the resource. // // - accountId: The ID of the account for which to get/update shipping // settings. -// - merchantId: The ID of the managing account. If this parameter is -// not the same as accountId, then this account must be a multi-client -// account and `accountId` must be the ID of a sub-account of this -// account. +// - merchantId: The ID of the managing account. If this parameter is not the +// same as accountId, then this account must be a multi-client account and +// `accountId` must be the ID of a sub-account of this account. func (r *ShippingsettingsService) Update(merchantId uint64, accountId uint64, shippingsettings *ShippingSettings) *ShippingsettingsUpdateCall { c := &ShippingsettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -25862,32 +18941,30 @@ func (r *ShippingsettingsService) Update(merchantId uint64, accountId uint64, sh return c } -// DryRun sets the optional parameter "dryRun": Flag to simulate a -// request like in a live environment. If set to true, dry-run mode -// checks the validity of the request and returns errors (if any). +// DryRun sets the optional parameter "dryRun": Flag to simulate a request like +// in a live environment. If set to true, dry-run mode checks the validity of +// the request and returns errors (if any). func (c *ShippingsettingsUpdateCall) DryRun(dryRun bool) *ShippingsettingsUpdateCall { c.urlParams_.Set("dryRun", fmt.Sprint(dryRun)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ShippingsettingsUpdateCall) Fields(s ...googleapi.Field) *ShippingsettingsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ShippingsettingsUpdateCall) Context(ctx context.Context) *ShippingsettingsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ShippingsettingsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25896,18 +18973,12 @@ func (c *ShippingsettingsUpdateCall) Header() http.Header { } func (c *ShippingsettingsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.shippingsettings) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shippingsettings/{accountId}") @@ -25921,16 +18992,15 @@ func (c *ShippingsettingsUpdateCall) doRequest(alt string) (*http.Response, erro "merchantId": strconv.FormatUint(c.merchantId, 10), "accountId": strconv.FormatUint(c.accountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.shippingsettings.update" call. -// Exactly one of *ShippingSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ShippingSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ShippingSettings.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ShippingsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25938,17 +19008,17 @@ func (c *ShippingsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*Shipping if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ShippingSettings{ ServerResponse: googleapi.ServerResponse{ @@ -25961,46 +19031,4 @@ func (c *ShippingsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*Shipping return nil, err } return ret, nil - // { - // "description": "Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource.", - // "flatPath": "{merchantId}/shippingsettings/{accountId}", - // "httpMethod": "PUT", - // "id": "content.shippingsettings.update", - // "parameterOrder": [ - // "merchantId", - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "The ID of the account for which to get/update shipping settings.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "dryRun": { - // "description": "Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).", - // "location": "query", - // "type": "boolean" - // }, - // "merchantId": { - // "description": "The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/shippingsettings/{accountId}", - // "request": { - // "$ref": "ShippingSettings" - // }, - // "response": { - // "$ref": "ShippingSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } diff --git a/content/v2sandbox/content-gen.go b/content/v2sandbox/content-gen.go index 5392d41f8bd..69c669224db 100644 --- a/content/v2sandbox/content-gen.go +++ b/content/v2sandbox/content-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/shopping-content // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // contentService, err := content.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // contentService, err := content.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // contentService, err := content.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package content // import "google.golang.org/api/content/v2sandbox" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,11 +83,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "content:v2sandbox" const apiName = "content" const apiVersion = "v2sandbox" const basePath = "https://www.googleapis.com/content/v2sandbox/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/content/v2sandbox/" // OAuth2 scopes used by this API. const ( @@ -82,11 +100,14 @@ const ( // NewService creates a new APIService. func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/content", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -178,1019 +199,753 @@ type OrdersService struct { type Amount struct { // Pretax: [required] Value before taxes. Pretax *Price `json:"pretax,omitempty"` - // Tax: [required] Tax value. Tax *Price `json:"tax,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Pretax") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Pretax") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Pretax") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Amount) MarshalJSON() ([]byte, error) { +func (s Amount) MarshalJSON() ([]byte, error) { type NoMethod Amount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomerReturnReason struct { Description string `json:"description,omitempty"` - - ReasonCode string `json:"reasonCode,omitempty"` - + ReasonCode string `json:"reasonCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomerReturnReason) MarshalJSON() ([]byte, error) { +func (s CustomerReturnReason) MarshalJSON() ([]byte, error) { type NoMethod CustomerReturnReason - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Error: An error returned by the API. type Error struct { // Domain: The domain of the error. Domain string `json:"domain,omitempty"` - // Message: A description of the error. Message string `json:"message,omitempty"` - // Reason: The error code. Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Domain") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Domain") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Domain") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Error) MarshalJSON() ([]byte, error) { +func (s Error) MarshalJSON() ([]byte, error) { type NoMethod Error - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Errors: A list of errors returned by a failed batch entry. type Errors struct { // Code: The HTTP status of the first error in errors. Code int64 `json:"code,omitempty"` - // Errors: A list of errors. Errors []*Error `json:"errors,omitempty"` - // Message: The message of the first error in errors. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Errors) MarshalJSON() ([]byte, error) { +func (s Errors) MarshalJSON() ([]byte, error) { type NoMethod Errors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type InvoiceSummary struct { - // AdditionalChargeSummaries: Summary of the total amounts of the - // additional charges. + // AdditionalChargeSummaries: Summary of the total amounts of the additional + // charges. AdditionalChargeSummaries []*InvoiceSummaryAdditionalChargeSummary `json:"additionalChargeSummaries,omitempty"` - - // CustomerBalance: [required] Customer balance on this invoice. A - // negative amount means the customer is paying, a positive one means - // the customer is receiving money. Note: the sum of merchant_balance, - // customer_balance and google_balance must always be zero. + // CustomerBalance: [required] Customer balance on this invoice. A negative + // amount means the customer is paying, a positive one means the customer is + // receiving money. Note: the sum of merchant_balance, customer_balance and + // google_balance must always be zero. // - // Furthermore the absolute value of this amount is expected to be equal - // to the sum of product amount and additional charges, minus - // promotions. + // Furthermore the absolute value of this amount is expected to be equal to the + // sum of product amount and additional charges, minus promotions. CustomerBalance *Amount `json:"customerBalance,omitempty"` - - // GoogleBalance: [required] Google balance on this invoice. A negative - // amount means Google is paying, a positive one means Google is - // receiving money. Note: the sum of merchant_balance, customer_balance - // and google_balance must always be zero. + // GoogleBalance: [required] Google balance on this invoice. A negative amount + // means Google is paying, a positive one means Google is receiving money. + // Note: the sum of merchant_balance, customer_balance and google_balance must + // always be zero. GoogleBalance *Amount `json:"googleBalance,omitempty"` - - // MerchantBalance: [required] Merchant balance on this invoice. A - // negative amount means the merchant is paying, a positive one means - // the merchant is receiving money. Note: the sum of merchant_balance, - // customer_balance and google_balance must always be zero. + // MerchantBalance: [required] Merchant balance on this invoice. A negative + // amount means the merchant is paying, a positive one means the merchant is + // receiving money. Note: the sum of merchant_balance, customer_balance and + // google_balance must always be zero. MerchantBalance *Amount `json:"merchantBalance,omitempty"` - // ProductTotal: [required] Total price for the product. ProductTotal *Amount `json:"productTotal,omitempty"` - // PromotionSummaries: Summary for each promotion. PromotionSummaries []*Promotion `json:"promotionSummaries,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdditionalChargeSummaries") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalChargeSummaries") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AdditionalChargeSummaries") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdditionalChargeSummaries") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InvoiceSummary) MarshalJSON() ([]byte, error) { +func (s InvoiceSummary) MarshalJSON() ([]byte, error) { type NoMethod InvoiceSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type InvoiceSummaryAdditionalChargeSummary struct { // TotalAmount: [required] Total additional charge for this type. TotalAmount *Amount `json:"totalAmount,omitempty"` - // Type: [required] Type of the additional charge. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "TotalAmount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TotalAmount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "TotalAmount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error) { +func (s InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error) { type NoMethod InvoiceSummaryAdditionalChargeSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type MerchantOrderReturn struct { - CreationDate string `json:"creationDate,omitempty"` - - MerchantOrderId string `json:"merchantOrderId,omitempty"` - - OrderId string `json:"orderId,omitempty"` - - OrderReturnId string `json:"orderReturnId,omitempty"` - - ReturnItems []*MerchantOrderReturnItem `json:"returnItems,omitempty"` - - ReturnShipments []*ReturnShipment `json:"returnShipments,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + CreationDate string `json:"creationDate,omitempty"` + MerchantOrderId string `json:"merchantOrderId,omitempty"` + OrderId string `json:"orderId,omitempty"` + OrderReturnId string `json:"orderReturnId,omitempty"` + ReturnItems []*MerchantOrderReturnItem `json:"returnItems,omitempty"` + ReturnShipments []*ReturnShipment `json:"returnShipments,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreationDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreationDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MerchantOrderReturn) MarshalJSON() ([]byte, error) { +func (s MerchantOrderReturn) MarshalJSON() ([]byte, error) { type NoMethod MerchantOrderReturn - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type MerchantOrderReturnItem struct { CustomerReturnReason *CustomerReturnReason `json:"customerReturnReason,omitempty"` - - ItemId string `json:"itemId,omitempty"` - - MerchantReturnReason *RefundReason `json:"merchantReturnReason,omitempty"` - - Product *OrderLineItemProduct `json:"product,omitempty"` - - ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"` - - State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomerReturnReason") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + ItemId string `json:"itemId,omitempty"` + MerchantReturnReason *RefundReason `json:"merchantReturnReason,omitempty"` + Product *OrderLineItemProduct `json:"product,omitempty"` + ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"` + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "CustomerReturnReason") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomerReturnReason") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CustomerReturnReason") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MerchantOrderReturnItem) MarshalJSON() ([]byte, error) { +func (s MerchantOrderReturnItem) MarshalJSON() ([]byte, error) { type NoMethod MerchantOrderReturnItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Order struct { // Acknowledged: Whether the order was acknowledged. Acknowledged bool `json:"acknowledged,omitempty"` - // ChannelType: The channel type of the order: "purchaseOnGoogle" or // "googleExpress". ChannelType string `json:"channelType,omitempty"` - // Customer: The details of the customer who placed the order. Customer *OrderCustomer `json:"customer,omitempty"` - // DeliveryDetails: The details for the delivery. DeliveryDetails *OrderDeliveryDetails `json:"deliveryDetails,omitempty"` - // Id: The REST id of the order. Globally unique. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#order". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#order". Kind string `json:"kind,omitempty"` - // LineItems: Line items that are ordered. - LineItems []*OrderLineItem `json:"lineItems,omitempty"` - - MerchantId uint64 `json:"merchantId,omitempty,string"` - + LineItems []*OrderLineItem `json:"lineItems,omitempty"` + MerchantId uint64 `json:"merchantId,omitempty,string"` // MerchantOrderId: Merchant-provided id of the order. MerchantOrderId string `json:"merchantOrderId,omitempty"` - // NetAmount: The net amount for the order. For example, if an order was - // originally for a grand total of $100 and a refund was issued for $20, - // the net amount will be $80. + // originally for a grand total of $100 and a refund was issued for $20, the + // net amount will be $80. NetAmount *Price `json:"netAmount,omitempty"` - // PaymentMethod: The details of the payment method. PaymentMethod *OrderPaymentMethod `json:"paymentMethod,omitempty"` - // PaymentStatus: The status of the payment. PaymentStatus string `json:"paymentStatus,omitempty"` - // PlacedDate: The date when the order was placed, in ISO 8601 format. PlacedDate string `json:"placedDate,omitempty"` - - // Promotions: Deprecated. The details of the merchant provided - // promotions applied to the order. More details about the program are - // here. + // Promotions: Deprecated. The details of the merchant provided promotions + // applied to the order. More details about the program are here. Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"` - // Refunds: Refunds for the order. Refunds []*OrderRefund `json:"refunds,omitempty"` - // Shipments: Shipments of the order. Shipments []*OrderShipment `json:"shipments,omitempty"` - // ShippingCost: The total cost of shipping for all items. ShippingCost *Price `json:"shippingCost,omitempty"` - // ShippingCostTax: The tax for the total shipping cost. ShippingCostTax *Price `json:"shippingCostTax,omitempty"` - // ShippingOption: The requested shipping option. ShippingOption string `json:"shippingOption,omitempty"` - // Status: The status of the order. Status string `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Acknowledged") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Acknowledged") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Acknowledged") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Order) MarshalJSON() ([]byte, error) { +func (s Order) MarshalJSON() ([]byte, error) { type NoMethod Order - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderAddress struct { // Country: CLDR country code (e.g. "US"). Country string `json:"country,omitempty"` - - // FullAddress: Strings representing the lines of the printed label for - // mailing the order, for example: + // FullAddress: Strings representing the lines of the printed label for mailing + // the order, for example: // John Smith // 1600 Amphitheatre Parkway // Mountain View, CA, 94043 // United States FullAddress []string `json:"fullAddress,omitempty"` - // IsPostOfficeBox: Whether the address is a post office box. IsPostOfficeBox bool `json:"isPostOfficeBox,omitempty"` - - // Locality: City, town or commune. May also include dependent - // localities or sublocalities (e.g. neighborhoods or suburbs). + // Locality: City, town or commune. May also include dependent localities or + // sublocalities (e.g. neighborhoods or suburbs). Locality string `json:"locality,omitempty"` - // PostalCode: Postal Code or ZIP (e.g. "94043"). PostalCode string `json:"postalCode,omitempty"` - // RecipientName: Name of the recipient. RecipientName string `json:"recipientName,omitempty"` - - // Region: Top-level administrative subdivision of the country. For - // example, a state like California ("CA") or a province like Quebec - // ("QC"). + // Region: Top-level administrative subdivision of the country. For example, a + // state like California ("CA") or a province like Quebec ("QC"). Region string `json:"region,omitempty"` - // StreetAddress: Street-level part of the address. StreetAddress []string `json:"streetAddress,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderAddress) MarshalJSON() ([]byte, error) { +func (s OrderAddress) MarshalJSON() ([]byte, error) { type NoMethod OrderAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderCancellation struct { // Actor: The actor that created the cancellation. Actor string `json:"actor,omitempty"` - - // CreationDate: Date on which the cancellation has been created, in ISO - // 8601 format. + // CreationDate: Date on which the cancellation has been created, in ISO 8601 + // format. CreationDate string `json:"creationDate,omitempty"` - // Quantity: The quantity that was canceled. Quantity int64 `json:"quantity,omitempty"` - - // Reason: The reason for the cancellation. Orders that are cancelled - // with a noInventory reason will lead to the removal of the product - // from Shopping Actions until you make an update to that product. This - // will not affect your Shopping ads. + // Reason: The reason for the cancellation. Orders that are cancelled with a + // noInventory reason will lead to the removal of the product from Shopping + // Actions until you make an update to that product. This will not affect your + // Shopping ads. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Actor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actor") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderCancellation) MarshalJSON() ([]byte, error) { +func (s OrderCancellation) MarshalJSON() ([]byte, error) { type NoMethod OrderCancellation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderCustomer struct { // Email: Deprecated. Email string `json:"email,omitempty"` - - // ExplicitMarketingPreference: Deprecated. Please use - // marketingRightsInfo instead. + // ExplicitMarketingPreference: Deprecated. Please use marketingRightsInfo + // instead. ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"` - // FullName: Full name of the customer. FullName string `json:"fullName,omitempty"` - // MarketingRightsInfo: Customer's marketing preferences. MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderCustomer) MarshalJSON() ([]byte, error) { +func (s OrderCustomer) MarshalJSON() ([]byte, error) { type NoMethod OrderCustomer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderCustomerMarketingRightsInfo struct { - // ExplicitMarketingPreference: Last known user selection regarding - // marketing preferences. In certain cases this selection might not be - // known, so this field would be empty. + // ExplicitMarketingPreference: Last known user selection regarding marketing + // preferences. In certain cases this selection might not be known, so this + // field would be empty. ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"` - - // LastUpdatedTimestamp: Timestamp when last time marketing preference - // was updated. Could be empty, if user wasn't offered a selection yet. + // LastUpdatedTimestamp: Timestamp when last time marketing preference was + // updated. Could be empty, if user wasn't offered a selection yet. LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"` - // MarketingEmailAddress: Email address that can be used for marketing - // purposes. This field is only filled when explicitMarketingPreference - // is equal to 'granted'. + // purposes. This field is only filled when explicitMarketingPreference is + // equal to 'granted'. MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ExplicitMarketingPreference") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "ExplicitMarketingPreference") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExplicitMarketingPreference") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExplicitMarketingPreference") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) { +func (s OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) { type NoMethod OrderCustomerMarketingRightsInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderDeliveryDetails struct { // Address: The delivery address Address *OrderAddress `json:"address,omitempty"` - // PhoneNumber: The phone number of the person receiving the delivery. PhoneNumber string `json:"phoneNumber,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDeliveryDetails) MarshalJSON() ([]byte, error) { +func (s OrderDeliveryDetails) MarshalJSON() ([]byte, error) { type NoMethod OrderDeliveryDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLegacyPromotion struct { Benefits []*OrderLegacyPromotionBenefit `json:"benefits,omitempty"` - - // EffectiveDates: The date and time frame when the promotion is active - // and ready for validation review. Note that the promotion live time - // may be delayed for a few hours due to the validation review. - // Start date and end date are separated by a forward slash (/). The - // start date is specified by the format (YYYY-MM-DD), followed by the - // letter ?T?, the time of the day when the sale starts (in Greenwich - // Mean Time, GMT), followed by an expression of the time zone for the - // sale. The end date is in the same format. + // EffectiveDates: The date and time frame when the promotion is active and + // ready for validation review. Note that the promotion live time may be + // delayed for a few hours due to the validation review. + // Start date and end date are separated by a forward slash (/). The start date + // is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the + // time of the day when the sale starts (in Greenwich Mean Time, GMT), followed + // by an expression of the time zone for the sale. The end date is in the same + // format. EffectiveDates string `json:"effectiveDates,omitempty"` - - // GenericRedemptionCode: Optional. The text code that corresponds to - // the promotion when applied on the retailer?s website. + // GenericRedemptionCode: Optional. The text code that corresponds to the + // promotion when applied on the retailer?s website. GenericRedemptionCode string `json:"genericRedemptionCode,omitempty"` - // Id: The unique ID of the promotion. Id string `json:"id,omitempty"` - // LongTitle: The full title of the promotion. LongTitle string `json:"longTitle,omitempty"` - - // ProductApplicability: Whether the promotion is applicable to all - // products or only specific products. + // ProductApplicability: Whether the promotion is applicable to all products or + // only specific products. ProductApplicability string `json:"productApplicability,omitempty"` - // RedemptionChannel: Indicates that the promotion is valid online. RedemptionChannel string `json:"redemptionChannel,omitempty"` - // ForceSendFields is a list of field names (e.g. "Benefits") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Benefits") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Benefits") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLegacyPromotion) MarshalJSON() ([]byte, error) { +func (s OrderLegacyPromotion) MarshalJSON() ([]byte, error) { type NoMethod OrderLegacyPromotion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLegacyPromotionBenefit struct { - // Discount: The discount in the order price when the promotion is - // applied. + // Discount: The discount in the order price when the promotion is applied. Discount *Price `json:"discount,omitempty"` - - // OfferIds: The OfferId(s) that were purchased in this order and map to - // this specific benefit of the promotion. + // OfferIds: The OfferId(s) that were purchased in this order and map to this + // specific benefit of the promotion. OfferIds []string `json:"offerIds,omitempty"` - - // SubType: Further describes the benefit of the promotion. Note that we - // will expand on this enumeration as we support new promotion - // sub-types. + // SubType: Further describes the benefit of the promotion. Note that we will + // expand on this enumeration as we support new promotion sub-types. SubType string `json:"subType,omitempty"` - // TaxImpact: The impact on tax when the promotion is applied. TaxImpact *Price `json:"taxImpact,omitempty"` - - // Type: Describes whether the promotion applies to products (e.g. 20% - // off) or to shipping (e.g. Free Shipping). + // Type: Describes whether the promotion applies to products (e.g. 20% off) or + // to shipping (e.g. Free Shipping). Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Discount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Discount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Discount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLegacyPromotionBenefit) MarshalJSON() ([]byte, error) { +func (s OrderLegacyPromotionBenefit) MarshalJSON() ([]byte, error) { type NoMethod OrderLegacyPromotionBenefit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItem struct { // Annotations: Annotations that are attached to the line item. Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"` - // Cancellations: Cancellations of the line item. Cancellations []*OrderCancellation `json:"cancellations,omitempty"` - // Id: The id of the line item. Id string `json:"id,omitempty"` - - // Price: Total price for the line item. For example, if two items for - // $10 are purchased, the total price will be $20. + // Price: Total price for the line item. For example, if two items for $10 are + // purchased, the total price will be $20. Price *Price `json:"price,omitempty"` - // Product: Product data from the time of the order placement. Product *OrderLineItemProduct `json:"product,omitempty"` - // QuantityCanceled: Number of items canceled. QuantityCanceled int64 `json:"quantityCanceled,omitempty"` - // QuantityDelivered: Number of items delivered. QuantityDelivered int64 `json:"quantityDelivered,omitempty"` - // QuantityOrdered: Number of items ordered. QuantityOrdered int64 `json:"quantityOrdered,omitempty"` - // QuantityPending: Number of items pending. QuantityPending int64 `json:"quantityPending,omitempty"` - // QuantityReturned: Number of items returned. QuantityReturned int64 `json:"quantityReturned,omitempty"` - // QuantityShipped: Number of items shipped. QuantityShipped int64 `json:"quantityShipped,omitempty"` - // ReturnInfo: Details of the return policy for the line item. ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"` - // Returns: Returns of the line item. Returns []*OrderReturn `json:"returns,omitempty"` - // ShippingDetails: Details of the requested shipping for the line item. ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"` - - // Tax: Total tax amount for the line item. For example, if two items - // are purchased, and each have a cost tax of $2, the total tax amount - // will be $4. + // Tax: Total tax amount for the line item. For example, if two items are + // purchased, and each have a cost tax of $2, the total tax amount will be $4. Tax *Price `json:"tax,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItem) MarshalJSON() ([]byte, error) { +func (s OrderLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemProduct struct { // Brand: Brand of the item. Brand string `json:"brand,omitempty"` - // Channel: The item's channel (online or local). Channel string `json:"channel,omitempty"` - // Condition: Condition or state of the item. Condition string `json:"condition,omitempty"` - // ContentLanguage: The two-letter ISO 639-1 language code for the item. ContentLanguage string `json:"contentLanguage,omitempty"` - // Gtin: Global Trade Item Number (GTIN) of the item. Gtin string `json:"gtin,omitempty"` - // Id: The REST id of the product. Id string `json:"id,omitempty"` - // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` - // ItemGroupId: Shared identifier for all variants of the same product. ItemGroupId string `json:"itemGroupId,omitempty"` - // Mpn: Manufacturer Part Number (MPN) of the item. Mpn string `json:"mpn,omitempty"` - // OfferId: An identifier of the item. OfferId string `json:"offerId,omitempty"` - // Price: Price of the item. Price *Price `json:"price,omitempty"` - - // ShownImage: URL to the cached image shown to the user when order was - // placed. + // ShownImage: URL to the cached image shown to the user when order was placed. ShownImage string `json:"shownImage,omitempty"` - - // TargetCountry: The CLDR territory code of the target country of the - // product. + // TargetCountry: The CLDR territory code of the target country of the product. TargetCountry string `json:"targetCountry,omitempty"` - // Title: The title of the product. Title string `json:"title,omitempty"` - - // VariantAttributes: Variant attributes for the item. These are - // dimensions of the product, such as color, gender, material, pattern, - // and size. You can find a comprehensive list of variant attributes - // here. + // VariantAttributes: Variant attributes for the item. These are dimensions of + // the product, such as color, gender, material, pattern, and size. You can + // find a comprehensive list of variant attributes here. VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Brand") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Brand") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Brand") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemProduct) MarshalJSON() ([]byte, error) { +func (s OrderLineItemProduct) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemProduct - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemProductVariantAttribute struct { // Dimension: The dimension of the variant. Dimension string `json:"dimension,omitempty"` - // Value: The value for the dimension. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimension") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemProductVariantAttribute) MarshalJSON() ([]byte, error) { +func (s OrderLineItemProductVariantAttribute) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemProductVariantAttribute - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemReturnInfo struct { // DaysToReturn: How many days later the item can be returned. DaysToReturn int64 `json:"daysToReturn,omitempty"` - // IsReturnable: Whether the item is returnable. IsReturnable bool `json:"isReturnable,omitempty"` - // PolicyUrl: URL of the item return policy. PolicyUrl string `json:"policyUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "DaysToReturn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DaysToReturn") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DaysToReturn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemReturnInfo) MarshalJSON() ([]byte, error) { +func (s OrderLineItemReturnInfo) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemReturnInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemShippingDetails struct { // DeliverByDate: The delivery by date, in ISO 8601 format. DeliverByDate string `json:"deliverByDate,omitempty"` - // Method: Details of the shipping method. Method *OrderLineItemShippingDetailsMethod `json:"method,omitempty"` - // ShipByDate: The ship by date, in ISO 8601 format. ShipByDate string `json:"shipByDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliverByDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliverByDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliverByDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error) { +func (s OrderLineItemShippingDetails) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemShippingDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderLineItemShippingDetailsMethod struct { - // Carrier: The carrier for the shipping. Optional. See - // shipments[].carrier for a list of acceptable values. + // Carrier: The carrier for the shipping. Optional. See shipments[].carrier for + // a list of acceptable values. Carrier string `json:"carrier,omitempty"` - // MaxDaysInTransit: Maximum transit time. MaxDaysInTransit int64 `json:"maxDaysInTransit,omitempty"` - // MethodName: The name of the shipping method. MethodName string `json:"methodName,omitempty"` - // MinDaysInTransit: Minimum transit time. MinDaysInTransit int64 `json:"minDaysInTransit,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderLineItemShippingDetailsMethod) MarshalJSON() ([]byte, error) { +func (s OrderLineItemShippingDetailsMethod) MarshalJSON() ([]byte, error) { type NoMethod OrderLineItemShippingDetailsMethod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderMerchantProvidedAnnotation struct { - // Key: Key for additional merchant provided (as key-value pairs) - // annotation about the line item. + // Key: Key for additional merchant provided (as key-value pairs) annotation + // about the line item. Key string `json:"key,omitempty"` - // Value: Value for additional merchant provided (as key-value pairs) // annotation about the line item. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderMerchantProvidedAnnotation) MarshalJSON() ([]byte, error) { +func (s OrderMerchantProvidedAnnotation) MarshalJSON() ([]byte, error) { type NoMethod OrderMerchantProvidedAnnotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderPaymentMethod struct { // BillingAddress: The billing address. BillingAddress *OrderAddress `json:"billingAddress,omitempty"` - - // ExpirationMonth: The card expiration month (January = 1, February = 2 - // etc.). + // ExpirationMonth: The card expiration month (January = 1, February = 2 etc.). ExpirationMonth int64 `json:"expirationMonth,omitempty"` - // ExpirationYear: The card expiration year (4-digit, e.g. 2015). ExpirationYear int64 `json:"expirationYear,omitempty"` - // LastFourDigits: The last four digits of the card number. LastFourDigits string `json:"lastFourDigits,omitempty"` - // PhoneNumber: The billing phone number. PhoneNumber string `json:"phoneNumber,omitempty"` - // Type: The type of instrument. // // Acceptable values are: @@ -1202,109 +957,80 @@ type OrderPaymentMethod struct { // - "VISA" // - "" Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "BillingAddress") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BillingAddress") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BillingAddress") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderPaymentMethod) MarshalJSON() ([]byte, error) { +func (s OrderPaymentMethod) MarshalJSON() ([]byte, error) { type NoMethod OrderPaymentMethod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderRefund struct { // Actor: The actor that created the refund. Actor string `json:"actor,omitempty"` - // Amount: The amount that is refunded. Amount *Price `json:"amount,omitempty"` - - // CreationDate: Date on which the item has been created, in ISO 8601 - // format. + // CreationDate: Date on which the item has been created, in ISO 8601 format. CreationDate string `json:"creationDate,omitempty"` - // Reason: The reason for the refund. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Actor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actor") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderRefund) MarshalJSON() ([]byte, error) { +func (s OrderRefund) MarshalJSON() ([]byte, error) { type NoMethod OrderRefund - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderReturn struct { // Actor: The actor that created the refund. Actor string `json:"actor,omitempty"` - - // CreationDate: Date on which the item has been created, in ISO 8601 - // format. + // CreationDate: Date on which the item has been created, in ISO 8601 format. CreationDate string `json:"creationDate,omitempty"` - // Quantity: Quantity that is returned. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Actor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actor") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderReturn) MarshalJSON() ([]byte, error) { +func (s OrderReturn) MarshalJSON() ([]byte, error) { type NoMethod OrderReturn - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderShipment struct { @@ -1328,923 +1054,700 @@ type OrderShipment struct { // - "mpx" // - "uds" Carrier string `json:"carrier,omitempty"` - - // CreationDate: Date on which the shipment has been created, in ISO - // 8601 format. + // CreationDate: Date on which the shipment has been created, in ISO 8601 + // format. CreationDate string `json:"creationDate,omitempty"` - - // DeliveryDate: Date on which the shipment has been delivered, in ISO - // 8601 format. Present only if status is delivered + // DeliveryDate: Date on which the shipment has been delivered, in ISO 8601 + // format. Present only if status is delivered DeliveryDate string `json:"deliveryDate,omitempty"` - // Id: The id of the shipment. Id string `json:"id,omitempty"` - // LineItems: The line items that are shipped. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` - // Status: The status of the shipment. Status string `json:"status,omitempty"` - // TrackingId: The tracking id for the shipment. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderShipment) MarshalJSON() ([]byte, error) { +func (s OrderShipment) MarshalJSON() ([]byte, error) { type NoMethod OrderShipment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderShipmentLineItemShipment struct { - // LineItemId: The id of the line item that is shipped. Either - // lineItemId or productId is required. + // LineItemId: The id of the line item that is shipped. Either lineItemId or + // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to ship. This is the REST ID used in - // the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to ship. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity that is shipped. Quantity int64 `json:"quantity,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderShipmentLineItemShipment) MarshalJSON() ([]byte, error) { +func (s OrderShipmentLineItemShipment) MarshalJSON() ([]byte, error) { type NoMethod OrderShipmentLineItemShipment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCreateChargeInvoiceRequest struct { // InvoiceId: [required] The ID of the invoice. InvoiceId string `json:"invoiceId,omitempty"` - // InvoiceSummary: [required] Invoice summary. InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"` - // LineItemInvoices: [required] Invoice details per line item. LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"` - // OperationId: [required] The ID of the operation, unique across all // operations for a given order. OperationId string `json:"operationId,omitempty"` - // ShipmentGroupId: [required] ID of the shipment group. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` - // ForceSendFields is a list of field names (e.g. "InvoiceId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InvoiceId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InvoiceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCreateChargeInvoiceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCreateChargeInvoiceResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderinvoicesCreateChargeInvoiceResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderinvoicesCreateChargeInvoiceResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCreateChargeInvoiceResponse) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCreateChargeInvoiceResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCreateChargeInvoiceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCreateRefundInvoiceRequest struct { // InvoiceId: [required] The ID of the invoice. InvoiceId string `json:"invoiceId,omitempty"` - // OperationId: [required] The ID of the operation, unique across all // operations for a given order. OperationId string `json:"operationId,omitempty"` - - // RefundOnlyOption: Option to create a refund-only invoice. Exactly one - // of refundOnlyOption or returnOption must be provided. + // RefundOnlyOption: Option to create a refund-only invoice. Exactly one of + // refundOnlyOption or returnOption must be provided. RefundOnlyOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption `json:"refundOnlyOption,omitempty"` - - // ReturnOption: Option to create an invoice for a refund and mark all - // items within the invoice as returned. Exactly one of refundOnlyOption - // or returnOption must be provided. + // ReturnOption: Option to create an invoice for a refund and mark all items + // within the invoice as returned. Exactly one of refundOnlyOption or + // returnOption must be provided. ReturnOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption `json:"returnOption,omitempty"` - // ShipmentInvoices: Invoice details for different shipment groups. ShipmentInvoices []*ShipmentInvoice `json:"shipmentInvoices,omitempty"` - // ForceSendFields is a list of field names (e.g. "InvoiceId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InvoiceId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InvoiceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCreateRefundInvoiceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCreateRefundInvoiceResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderinvoicesCreateRefundInvoiceResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderinvoicesCreateRefundInvoiceResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCreateRefundInvoiceResponse) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCreateRefundInvoiceResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCreateRefundInvoiceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption struct { // Description: Optional description of the refund reason. Description string `json:"description,omitempty"` - // Reason: [required] Reason for the refund. Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption struct { // Description: Optional description of the return reason. Description string `json:"description,omitempty"` - // Reason: [required] Reason for the return. Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption) MarshalJSON() ([]byte, error) { +func (s OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption) MarshalJSON() ([]byte, error) { type NoMethod OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderpaymentsNotifyAuthApprovedRequest struct { AuthAmountPretax *Price `json:"authAmountPretax,omitempty"` - - AuthAmountTax *Price `json:"authAmountTax,omitempty"` - + AuthAmountTax *Price `json:"authAmountTax,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthAmountPretax") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthAmountPretax") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuthAmountPretax") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderpaymentsNotifyAuthApprovedRequest) MarshalJSON() ([]byte, error) { +func (s OrderpaymentsNotifyAuthApprovedRequest) MarshalJSON() ([]byte, error) { type NoMethod OrderpaymentsNotifyAuthApprovedRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderpaymentsNotifyAuthApprovedResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderpaymentsNotifyAuthApprovedResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderpaymentsNotifyAuthApprovedResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderpaymentsNotifyAuthApprovedResponse) MarshalJSON() ([]byte, error) { +func (s OrderpaymentsNotifyAuthApprovedResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderpaymentsNotifyAuthApprovedResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderpaymentsNotifyAuthDeclinedRequest struct { // DeclineReason: Reason why payment authorization was declined. DeclineReason string `json:"declineReason,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeclineReason") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeclineReason") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeclineReason") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderpaymentsNotifyAuthDeclinedRequest) MarshalJSON() ([]byte, error) { +func (s OrderpaymentsNotifyAuthDeclinedRequest) MarshalJSON() ([]byte, error) { type NoMethod OrderpaymentsNotifyAuthDeclinedRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderpaymentsNotifyAuthDeclinedResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderpaymentsNotifyAuthDeclinedResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderpaymentsNotifyAuthDeclinedResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderpaymentsNotifyAuthDeclinedResponse) MarshalJSON() ([]byte, error) { +func (s OrderpaymentsNotifyAuthDeclinedResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderpaymentsNotifyAuthDeclinedResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderpaymentsNotifyChargeRequest struct { // ChargeState: Whether charge was successful. ChargeState string `json:"chargeState,omitempty"` - // InvoiceId: Deprecated. Please use invoiceIds instead. InvoiceId string `json:"invoiceId,omitempty"` - - // InvoiceIds: Invoice IDs from the orderinvoices service that - // correspond to the charge. + // InvoiceIds: Invoice IDs from the orderinvoices service that correspond to + // the charge. InvoiceIds []string `json:"invoiceIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChargeState") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChargeState") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChargeState") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderpaymentsNotifyChargeRequest) MarshalJSON() ([]byte, error) { +func (s OrderpaymentsNotifyChargeRequest) MarshalJSON() ([]byte, error) { type NoMethod OrderpaymentsNotifyChargeRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderpaymentsNotifyChargeResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderpaymentsNotifyChargeResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderpaymentsNotifyChargeResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderpaymentsNotifyChargeResponse) MarshalJSON() ([]byte, error) { +func (s OrderpaymentsNotifyChargeResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderpaymentsNotifyChargeResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderpaymentsNotifyRefundRequest struct { // InvoiceId: Deprecated. Please use invoiceIds instead. InvoiceId string `json:"invoiceId,omitempty"` - - // InvoiceIds: Invoice IDs from the orderinvoices service that - // correspond to the refund. + // InvoiceIds: Invoice IDs from the orderinvoices service that correspond to + // the refund. InvoiceIds []string `json:"invoiceIds,omitempty"` - // RefundState: Whether refund was successful. RefundState string `json:"refundState,omitempty"` - // ForceSendFields is a list of field names (e.g. "InvoiceId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InvoiceId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InvoiceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderpaymentsNotifyRefundRequest) MarshalJSON() ([]byte, error) { +func (s OrderpaymentsNotifyRefundRequest) MarshalJSON() ([]byte, error) { type NoMethod OrderpaymentsNotifyRefundRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderpaymentsNotifyRefundResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderpaymentsNotifyRefundResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderpaymentsNotifyRefundResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderpaymentsNotifyRefundResponse) MarshalJSON() ([]byte, error) { +func (s OrderpaymentsNotifyRefundResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderpaymentsNotifyRefundResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrderreturnsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#orderreturnsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#orderreturnsListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of returns. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*MerchantOrderReturn `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // returns. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*MerchantOrderReturn `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderreturnsListResponse) MarshalJSON() ([]byte, error) { +func (s OrderreturnsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderreturnsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersAcknowledgeRequest struct { - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "OperationId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OperationId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OperationId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersAcknowledgeRequest) MarshalJSON() ([]byte, error) { +func (s OrdersAcknowledgeRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersAcknowledgeRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersAcknowledgeResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersAcknowledgeResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersAcknowledgeResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersAcknowledgeResponse) MarshalJSON() ([]byte, error) { +func (s OrdersAcknowledgeResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersAcknowledgeResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersAdvanceTestOrderResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersAdvanceTestOrderResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersAdvanceTestOrderResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersAdvanceTestOrderResponse) MarshalJSON() ([]byte, error) { +func (s OrdersAdvanceTestOrderResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersAdvanceTestOrderResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelLineItemRequest struct { // Amount: Deprecated. Please use amountPretax and amountTax instead. Amount *Price `json:"amount,omitempty"` - - // AmountPretax: Amount to refund for the cancelation. Optional. If not - // set, Google will calculate the default based on the price and tax of - // the items involved. The amount must not be larger than the net amount - // left on the order. + // AmountPretax: Amount to refund for the cancelation. Optional. If not set, + // Google will calculate the default based on the price and tax of the items + // involved. The amount must not be larger than the net amount left on the + // order. AmountPretax *Price `json:"amountPretax,omitempty"` - // AmountTax: Tax amount that correspond to cancellation amount in // amountPretax. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to cancel. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to cancel. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to cancel. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the cancellation. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelLineItemResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCancelLineItemResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCancelLineItemResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelLineItemResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCancelLineItemResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelLineItemResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelRequest struct { - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - // Reason: The reason for the cancellation. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "OperationId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OperationId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OperationId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCancelRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCancelResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCancelResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCancelResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelTestOrderByCustomerRequest struct { // Reason: The reason for the cancellation. Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Reason") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Reason") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Reason") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelTestOrderByCustomerRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCancelTestOrderByCustomerRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelTestOrderByCustomerRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCancelTestOrderByCustomerResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCancelTestOrderByCustomerResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCancelTestOrderByCustomerResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCancelTestOrderByCustomerResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCancelTestOrderByCustomerResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCancelTestOrderByCustomerResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCreateTestOrderRequest struct { @@ -2257,2401 +1760,1795 @@ type OrdersCreateTestOrderRequest struct { // - "US" // - "FR" Defaults to US. Country string `json:"country,omitempty"` - - // TemplateName: The test order template to use. Specify as an - // alternative to testOrder as a shortcut for retrieving a template and - // then creating an order using that template. + // TemplateName: The test order template to use. Specify as an alternative to + // testOrder as a shortcut for retrieving a template and then creating an order + // using that template. TemplateName string `json:"templateName,omitempty"` - // TestOrder: The test order to create. TestOrder *TestOrder `json:"testOrder,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Country") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Country") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Country") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Country") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCreateTestOrderRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCreateTestOrderRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCreateTestOrderRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCreateTestOrderResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCreateTestOrderResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCreateTestOrderResponse". Kind string `json:"kind,omitempty"` - // OrderId: The ID of the newly created test order. OrderId string `json:"orderId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCreateTestOrderResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCreateTestOrderResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCreateTestOrderResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCreateTestReturnRequest struct { // Items: Returned items. Items []*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem `json:"items,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCreateTestReturnRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCreateTestReturnRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCreateTestReturnRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCreateTestReturnResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCreateTestReturnResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCreateTestReturnResponse". Kind string `json:"kind,omitempty"` - // ReturnId: The ID of the newly created test order return. ReturnId string `json:"returnId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCreateTestReturnResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCreateTestReturnResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCreateTestReturnResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*OrdersCustomBatchRequestEntry `json:"entries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequest) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` - // Cancel: Required for cancel method. Cancel *OrdersCustomBatchRequestEntryCancel `json:"cancel,omitempty"` - // CancelLineItem: Required for cancelLineItem method. CancelLineItem *OrdersCustomBatchRequestEntryCancelLineItem `json:"cancelLineItem,omitempty"` - // InStoreRefundLineItem: Required for inStoreReturnLineItem method. InStoreRefundLineItem *OrdersCustomBatchRequestEntryInStoreRefundLineItem `json:"inStoreRefundLineItem,omitempty"` - // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` - - // MerchantOrderId: The merchant order id. Required for - // updateMerchantOrderId and getByMerchantOrderId methods. + // MerchantOrderId: The merchant order id. Required for updateMerchantOrderId + // and getByMerchantOrderId methods. MerchantOrderId string `json:"merchantOrderId,omitempty"` - // Method: The method to apply. Method string `json:"method,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. Required for all methods beside get and - // getByMerchantOrderId. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. Required for all methods beside get and getByMerchantOrderId. OperationId string `json:"operationId,omitempty"` - // OrderId: The ID of the order. Required for all methods beside // getByMerchantOrderId. OrderId string `json:"orderId,omitempty"` - // Refund: Required for refund method. Refund *OrdersCustomBatchRequestEntryRefund `json:"refund,omitempty"` - // RejectReturnLineItem: Required for rejectReturnLineItem method. RejectReturnLineItem *OrdersCustomBatchRequestEntryRejectReturnLineItem `json:"rejectReturnLineItem,omitempty"` - // ReturnLineItem: Required for returnLineItem method. ReturnLineItem *OrdersCustomBatchRequestEntryReturnLineItem `json:"returnLineItem,omitempty"` - // ReturnRefundLineItem: Required for returnRefundLineItem method. ReturnRefundLineItem *OrdersCustomBatchRequestEntryReturnRefundLineItem `json:"returnRefundLineItem,omitempty"` - // SetLineItemMetadata: Required for setLineItemMetadata method. SetLineItemMetadata *OrdersCustomBatchRequestEntrySetLineItemMetadata `json:"setLineItemMetadata,omitempty"` - // ShipLineItems: Required for shipLineItems method. ShipLineItems *OrdersCustomBatchRequestEntryShipLineItems `json:"shipLineItems,omitempty"` - - // UpdateLineItemShippingDetails: Required for - // updateLineItemShippingDate method. + // UpdateLineItemShippingDetails: Required for updateLineItemShippingDate + // method. UpdateLineItemShippingDetails *OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails `json:"updateLineItemShippingDetails,omitempty"` - // UpdateShipment: Required for updateShipment method. UpdateShipment *OrdersCustomBatchRequestEntryUpdateShipment `json:"updateShipment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntry) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryCancel struct { // Reason: The reason for the cancellation. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Reason") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Reason") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Reason") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryCancel) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryCancel) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryCancel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryCancelLineItem struct { // Amount: Deprecated. Please use amountPretax and amountTax instead. Amount *Price `json:"amount,omitempty"` - - // AmountPretax: Amount to refund for the cancelation. Optional. If not - // set, Google will calculate the default based on the price and tax of - // the items involved. The amount must not be larger than the net amount - // left on the order. + // AmountPretax: Amount to refund for the cancelation. Optional. If not set, + // Google will calculate the default based on the price and tax of the items + // involved. The amount must not be larger than the net amount left on the + // order. AmountPretax *Price `json:"amountPretax,omitempty"` - // AmountTax: Tax amount that correspond to cancellation amount in // amountPretax. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to cancel. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to cancel. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to cancel. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the cancellation. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryCancelLineItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryCancelLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryCancelLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem struct { // LineItemId: The ID of the line item to return. LineItemId string `json:"lineItemId,omitempty"` - // Quantity: Quantity that is returned. Quantity int64 `json:"quantity,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryCreateTestReturnReturnItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryCreateTestReturnReturnItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryCreateTestReturnReturnItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryInStoreRefundLineItem struct { // AmountPretax: The amount that is refunded. Required. AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that correspond to refund amount in - // amountPretax. Required. + // AmountTax: Tax amount that correspond to refund amount in amountPretax. + // Required. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "AmountPretax") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AmountPretax") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AmountPretax") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryInStoreRefundLineItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryInStoreRefundLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryInStoreRefundLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryRefund struct { // Amount: Deprecated. Please use amountPretax and amountTax instead. Amount *Price `json:"amount,omitempty"` - - // AmountPretax: The amount that is refunded. Either amount or - // amountPretax and amountTax should be filled. + // AmountPretax: The amount that is refunded. Either amount or amountPretax and + // amountTax should be filled. AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that correspond to refund amount in - // amountPretax. + // AmountTax: Tax amount that correspond to refund amount in amountPretax. AmountTax *Price `json:"amountTax,omitempty"` - // Reason: The reason for the refund. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryRefund) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryRefund) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryRefund - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryRejectReturnLineItem struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryRejectReturnLineItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryRejectReturnLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryRejectReturnLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryReturnLineItem struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryReturnLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryReturnRefundLineItem struct { - // AmountPretax: The amount that is refunded. If omitted, refundless - // return is assumed (same as calling returnLineItem method). Optional, - // but if filled then both amountPretax and amountTax must be set. + // AmountPretax: The amount that is refunded. If omitted, refundless return is + // assumed (same as calling returnLineItem method). Optional, but if filled + // then both amountPretax and amountTax must be set. AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that correspond to refund amount in - // amountPretax. + // AmountTax: Tax amount that correspond to refund amount in amountPretax. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "AmountPretax") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AmountPretax") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AmountPretax") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryReturnRefundLineItem) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryReturnRefundLineItem) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryReturnRefundLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntrySetLineItemMetadata struct { Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"` - - // LineItemId: The ID of the line item to set metadata. Either - // lineItemId or productId is required. + // LineItemId: The ID of the line item to set metadata. Either lineItemId or + // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to set metadata. This is the REST ID - // used in the products service. Either lineItemId or productId is - // required. + // ProductId: The ID of the product to set metadata. This is the REST ID used + // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntrySetLineItemMetadata) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntrySetLineItemMetadata) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntrySetLineItemMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryShipLineItems struct { - // Carrier: Deprecated. Please use shipmentInfo instead. The carrier - // handling the shipment. See shipments[].carrier in the Orders - // resource representation for a list of acceptable values. + // Carrier: Deprecated. Please use shipmentInfo instead. The carrier handling + // the shipment. See shipments[].carrier in the Orders resource representation + // for a list of acceptable values. Carrier string `json:"carrier,omitempty"` - // LineItems: Line items to ship. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` - - // ShipmentGroupId: ID of the shipment group. Required for orders that - // use the orderinvoices service. + // ShipmentGroupId: ID of the shipment group. Required for orders that use the + // orderinvoices service. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` - - // ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of - // the shipment. + // ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of the + // shipment. ShipmentId string `json:"shipmentId,omitempty"` - - // ShipmentInfos: Shipment information. This field is repeated because a - // single line item can be shipped in several packages (and have several - // tracking IDs). + // ShipmentInfos: Shipment information. This field is repeated because a single + // line item can be shipped in several packages (and have several tracking + // IDs). ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"` - - // TrackingId: Deprecated. Please use shipmentInfo instead. The tracking - // id for the shipment. + // TrackingId: Deprecated. Please use shipmentInfo instead. The tracking id for + // the shipment. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryShipLineItems - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct { - // Carrier: The carrier handling the shipment. See shipments[].carrier - // in the Orders resource representation for a list of acceptable - // values. + // Carrier: The carrier handling the shipment. See shipments[].carrier in the + // Orders resource representation for a list of acceptable values. Carrier string `json:"carrier,omitempty"` - // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` - // TrackingId: The tracking id for the shipment. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails struct { // DeliverByDate: Updated delivery by date, in ISO 8601 format. If not // specified only ship by date is updated. DeliverByDate string `json:"deliverByDate,omitempty"` - - // LineItemId: The ID of the line item to set metadata. Either - // lineItemId or productId is required. + // LineItemId: The ID of the line item to set metadata. Either lineItemId or + // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: The ID of the product to set metadata. This is the REST ID - // used in the products service. Either lineItemId or productId is - // required. + // ProductId: The ID of the product to set metadata. This is the REST ID used + // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - - // ShipByDate: Updated ship by date, in ISO 8601 format. If not - // specified only deliver by date is updated. + // ShipByDate: Updated ship by date, in ISO 8601 format. If not specified only + // deliver by date is updated. ShipByDate string `json:"shipByDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliverByDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliverByDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliverByDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchRequestEntryUpdateShipment struct { - // Carrier: The carrier handling the shipment. Not updated if missing. - // See shipments[].carrier in the Orders resource representation for a - // list of acceptable values. + // Carrier: The carrier handling the shipment. Not updated if missing. See + // shipments[].carrier in the Orders resource representation for a list of + // acceptable values. Carrier string `json:"carrier,omitempty"` - - // DeliveryDate: Date on which the shipment has been delivered, in ISO - // 8601 format. Optional and can be provided only if status is - // delivered. + // DeliveryDate: Date on which the shipment has been delivered, in ISO 8601 + // format. Optional and can be provided only if status is delivered. DeliveryDate string `json:"deliveryDate,omitempty"` - // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` - // Status: New status for the shipment. Not updated if missing. Status string `json:"status,omitempty"` - // TrackingId: The tracking id for the shipment. Not updated if missing. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchRequestEntryUpdateShipment) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchRequestEntryUpdateShipment) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchRequestEntryUpdateShipment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*OrdersCustomBatchResponseEntry `json:"entries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCustomBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCustomBatchResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchResponse) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` - // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` - // ExecutionStatus: The status of the execution. Only defined if // - the request was successful; and - // - the method is not get, getByMerchantOrderId, or one of the test - // methods. + // - the method is not get, getByMerchantOrderId, or one of the test methods. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersCustomBatchResponseEntry". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` - - // Order: The retrieved order. Only defined if the method is get and if - // the request was successful. + // Order: The retrieved order. Only defined if the method is get and if the + // request was successful. Order *Order `json:"order,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BatchId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BatchId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BatchId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { +func (s OrdersCustomBatchResponseEntry) MarshalJSON() ([]byte, error) { type NoMethod OrdersCustomBatchResponseEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersGetByMerchantOrderIdResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersGetByMerchantOrderIdResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersGetByMerchantOrderIdResponse". Kind string `json:"kind,omitempty"` - // Order: The requested order. Order *Order `json:"order,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersGetByMerchantOrderIdResponse) MarshalJSON() ([]byte, error) { +func (s OrdersGetByMerchantOrderIdResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersGetByMerchantOrderIdResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersGetTestOrderTemplateResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersGetTestOrderTemplateResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersGetTestOrderTemplateResponse". Kind string `json:"kind,omitempty"` - // Template: The requested test order template. Template *TestOrder `json:"template,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersGetTestOrderTemplateResponse) MarshalJSON() ([]byte, error) { +func (s OrdersGetTestOrderTemplateResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersGetTestOrderTemplateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersInStoreRefundLineItemRequest struct { // AmountPretax: The amount that is refunded. Required. AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that correspond to refund amount in - // amountPretax. Required. + // AmountTax: Tax amount that correspond to refund amount in amountPretax. + // Required. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "AmountPretax") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AmountPretax") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AmountPretax") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersInStoreRefundLineItemRequest) MarshalJSON() ([]byte, error) { +func (s OrdersInStoreRefundLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersInStoreRefundLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersInStoreRefundLineItemResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersInStoreRefundLineItemResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersInStoreRefundLineItemResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersInStoreRefundLineItemResponse) MarshalJSON() ([]byte, error) { +func (s OrdersInStoreRefundLineItemResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersInStoreRefundLineItemResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersListResponse". Kind string `json:"kind,omitempty"` + // NextPageToken: The token for the retrieval of the next page of orders. + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*Order `json:"resources,omitempty"` - // NextPageToken: The token for the retrieval of the next page of - // orders. - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*Order `json:"resources,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersListResponse) MarshalJSON() ([]byte, error) { +func (s OrdersListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersRefundRequest struct { // Amount: Deprecated. Please use amountPretax and amountTax instead. Amount *Price `json:"amount,omitempty"` - - // AmountPretax: The amount that is refunded. Either amount or - // amountPretax and amountTax should be filled. + // AmountPretax: The amount that is refunded. Either amount or amountPretax and + // amountTax should be filled. AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that correspond to refund amount in - // amountPretax. + // AmountTax: Tax amount that correspond to refund amount in amountPretax. AmountTax *Price `json:"amountTax,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - // Reason: The reason for the refund. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersRefundRequest) MarshalJSON() ([]byte, error) { +func (s OrdersRefundRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersRefundRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersRefundResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersRefundResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersRefundResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersRefundResponse) MarshalJSON() ([]byte, error) { +func (s OrdersRefundResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersRefundResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersRejectReturnLineItemRequest struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersRejectReturnLineItemRequest) MarshalJSON() ([]byte, error) { +func (s OrdersRejectReturnLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersRejectReturnLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersRejectReturnLineItemResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersRejectReturnLineItemResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersRejectReturnLineItemResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersRejectReturnLineItemResponse) MarshalJSON() ([]byte, error) { +func (s OrdersRejectReturnLineItemResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersRejectReturnLineItemResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersReturnLineItemRequest struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersReturnLineItemRequest) MarshalJSON() ([]byte, error) { +func (s OrdersReturnLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersReturnLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersReturnLineItemResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersReturnLineItemResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersReturnLineItemResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersReturnLineItemResponse) MarshalJSON() ([]byte, error) { +func (s OrdersReturnLineItemResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersReturnLineItemResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersReturnRefundLineItemRequest struct { - // AmountPretax: The amount that is refunded. If omitted, refundless - // return is assumed (same as calling returnLineItem method). Optional, - // but if filled then both amountPretax and amountTax must be set. + // AmountPretax: The amount that is refunded. If omitted, refundless return is + // assumed (same as calling returnLineItem method). Optional, but if filled + // then both amountPretax and amountTax must be set. AmountPretax *Price `json:"amountPretax,omitempty"` - - // AmountTax: Tax amount that correspond to refund amount in - // amountPretax. + // AmountTax: Tax amount that correspond to refund amount in amountPretax. AmountTax *Price `json:"amountTax,omitempty"` - // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to return. This is the REST ID used - // in the products service. Either lineItemId or productId is required. + // ProductId: The ID of the product to return. This is the REST ID used in the + // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` - // Reason: The reason for the return. Reason string `json:"reason,omitempty"` - // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` - // ForceSendFields is a list of field names (e.g. "AmountPretax") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AmountPretax") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AmountPretax") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersReturnRefundLineItemRequest) MarshalJSON() ([]byte, error) { +func (s OrdersReturnRefundLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersReturnRefundLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersReturnRefundLineItemResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersReturnRefundLineItemResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersReturnRefundLineItemResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersReturnRefundLineItemResponse) MarshalJSON() ([]byte, error) { +func (s OrdersReturnRefundLineItemResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersReturnRefundLineItemResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersSetLineItemMetadataRequest struct { Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"` - - // LineItemId: The ID of the line item to set metadata. Either - // lineItemId or productId is required. + // LineItemId: The ID of the line item to set metadata. Either lineItemId or + // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to set metadata. This is the REST ID - // used in the products service. Either lineItemId or productId is - // required. + // ProductId: The ID of the product to set metadata. This is the REST ID used + // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersSetLineItemMetadataRequest) MarshalJSON() ([]byte, error) { +func (s OrdersSetLineItemMetadataRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersSetLineItemMetadataRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersSetLineItemMetadataResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersSetLineItemMetadataResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersSetLineItemMetadataResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersSetLineItemMetadataResponse) MarshalJSON() ([]byte, error) { +func (s OrdersSetLineItemMetadataResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersSetLineItemMetadataResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersShipLineItemsRequest struct { - // Carrier: Deprecated. Please use shipmentInfo instead. The carrier - // handling the shipment. See shipments[].carrier in the Orders - // resource representation for a list of acceptable values. + // Carrier: Deprecated. Please use shipmentInfo instead. The carrier handling + // the shipment. See shipments[].carrier in the Orders resource representation + // for a list of acceptable values. Carrier string `json:"carrier,omitempty"` - // LineItems: Line items to ship. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ShipmentGroupId: ID of the shipment group. Required for orders that - // use the orderinvoices service. + // ShipmentGroupId: ID of the shipment group. Required for orders that use the + // orderinvoices service. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` - - // ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of - // the shipment. + // ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of the + // shipment. ShipmentId string `json:"shipmentId,omitempty"` - - // ShipmentInfos: Shipment information. This field is repeated because a - // single line item can be shipped in several packages (and have several - // tracking IDs). + // ShipmentInfos: Shipment information. This field is repeated because a single + // line item can be shipped in several packages (and have several tracking + // IDs). ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"` - - // TrackingId: Deprecated. Please use shipmentInfo instead. The tracking - // id for the shipment. + // TrackingId: Deprecated. Please use shipmentInfo instead. The tracking id for + // the shipment. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersShipLineItemsRequest) MarshalJSON() ([]byte, error) { +func (s OrdersShipLineItemsRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersShipLineItemsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersShipLineItemsResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersShipLineItemsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersShipLineItemsResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersShipLineItemsResponse) MarshalJSON() ([]byte, error) { +func (s OrdersShipLineItemsResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersShipLineItemsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateLineItemShippingDetailsRequest struct { // DeliverByDate: Updated delivery by date, in ISO 8601 format. If not // specified only ship by date is updated. DeliverByDate string `json:"deliverByDate,omitempty"` - - // LineItemId: The ID of the line item to set metadata. Either - // lineItemId or productId is required. + // LineItemId: The ID of the line item to set metadata. Either lineItemId or + // productId is required. LineItemId string `json:"lineItemId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - - // ProductId: The ID of the product to set metadata. This is the REST ID - // used in the products service. Either lineItemId or productId is - // required. + // ProductId: The ID of the product to set metadata. This is the REST ID used + // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` - - // ShipByDate: Updated ship by date, in ISO 8601 format. If not - // specified only deliver by date is updated. + // ShipByDate: Updated ship by date, in ISO 8601 format. If not specified only + // deliver by date is updated. ShipByDate string `json:"shipByDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliverByDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliverByDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliverByDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateLineItemShippingDetailsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateLineItemShippingDetailsResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersUpdateLineItemShippingDetailsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersUpdateLineItemShippingDetailsResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateLineItemShippingDetailsResponse) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateLineItemShippingDetailsResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateLineItemShippingDetailsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateMerchantOrderIdRequest struct { - // MerchantOrderId: The merchant order id to be assigned to the order. - // Must be unique per merchant. + // MerchantOrderId: The merchant order id to be assigned to the order. Must be + // unique per merchant. MerchantOrderId string `json:"merchantOrderId,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "MerchantOrderId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MerchantOrderId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MerchantOrderId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateMerchantOrderIdRequest) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateMerchantOrderIdRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateMerchantOrderIdRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateMerchantOrderIdResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersUpdateMerchantOrderIdResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersUpdateMerchantOrderIdResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateMerchantOrderIdResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateShipmentRequest struct { - // Carrier: The carrier handling the shipment. Not updated if missing. - // See shipments[].carrier in the Orders resource representation for a - // list of acceptable values. + // Carrier: The carrier handling the shipment. Not updated if missing. See + // shipments[].carrier in the Orders resource representation for a list of + // acceptable values. Carrier string `json:"carrier,omitempty"` - - // DeliveryDate: Date on which the shipment has been delivered, in ISO - // 8601 format. Optional and can be provided only if status is - // delivered. + // DeliveryDate: Date on which the shipment has been delivered, in ISO 8601 + // format. Optional and can be provided only if status is delivered. DeliveryDate string `json:"deliveryDate,omitempty"` - - // OperationId: The ID of the operation. Unique across all operations - // for a given order. + // OperationId: The ID of the operation. Unique across all operations for a + // given order. OperationId string `json:"operationId,omitempty"` - // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` - // Status: New status for the shipment. Not updated if missing. Status string `json:"status,omitempty"` - // TrackingId: The tracking id for the shipment. Not updated if missing. TrackingId string `json:"trackingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateShipmentRequest) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateShipmentRequest) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateShipmentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OrdersUpdateShipmentResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#ordersUpdateShipmentResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#ordersUpdateShipmentResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersUpdateShipmentResponse) MarshalJSON() ([]byte, error) { +func (s OrdersUpdateShipmentResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersUpdateShipmentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Price struct { // Currency: The currency of the price. Currency string `json:"currency,omitempty"` - // Value: The price represented as a number. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Currency") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Currency") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Currency") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Price) MarshalJSON() ([]byte, error) { +func (s Price) MarshalJSON() ([]byte, error) { type NoMethod Price - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Promotion struct { - // PromotionAmount: [required] Amount of the promotion. The values here - // are the promotion applied to the unit price pretax and to the total - // of the tax amounts. + // PromotionAmount: [required] Amount of the promotion. The values here are the + // promotion applied to the unit price pretax and to the total of the tax + // amounts. PromotionAmount *Amount `json:"promotionAmount,omitempty"` - // PromotionId: [required] ID of the promotion. PromotionId string `json:"promotionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "PromotionAmount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PromotionAmount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PromotionAmount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Promotion) MarshalJSON() ([]byte, error) { +func (s Promotion) MarshalJSON() ([]byte, error) { type NoMethod Promotion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type RefundReason struct { Description string `json:"description,omitempty"` - - ReasonCode string `json:"reasonCode,omitempty"` - + ReasonCode string `json:"reasonCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RefundReason) MarshalJSON() ([]byte, error) { +func (s RefundReason) MarshalJSON() ([]byte, error) { type NoMethod RefundReason - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReturnShipment struct { - CreationDate string `json:"creationDate,omitempty"` - - ReturnMethodType string `json:"returnMethodType,omitempty"` - - ShipmentId string `json:"shipmentId,omitempty"` - + CreationDate string `json:"creationDate,omitempty"` + ReturnMethodType string `json:"returnMethodType,omitempty"` + ShipmentId string `json:"shipmentId,omitempty"` ShipmentTrackingInfos []*ShipmentTrackingInfo `json:"shipmentTrackingInfos,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreationDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreationDate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreationDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReturnShipment) MarshalJSON() ([]byte, error) { +func (s ReturnShipment) MarshalJSON() ([]byte, error) { type NoMethod ReturnShipment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShipmentInvoice struct { // InvoiceSummary: [required] Invoice summary. InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"` - // LineItemInvoices: [required] Invoice details per line item. LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"` - // ShipmentGroupId: [required] ID of the shipment group. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` - // ForceSendFields is a list of field names (e.g. "InvoiceSummary") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InvoiceSummary") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InvoiceSummary") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShipmentInvoice) MarshalJSON() ([]byte, error) { +func (s ShipmentInvoice) MarshalJSON() ([]byte, error) { type NoMethod ShipmentInvoice - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShipmentInvoiceLineItemInvoice struct { - // LineItemId: ID of the line item. Either lineItemId or productId must - // be set. + // LineItemId: ID of the line item. Either lineItemId or productId must be set. LineItemId string `json:"lineItemId,omitempty"` - - // ProductId: ID of the product. This is the REST ID used in the - // products service. Either lineItemId or productId must be set. + // ProductId: ID of the product. This is the REST ID used in the products + // service. Either lineItemId or productId must be set. ProductId string `json:"productId,omitempty"` - - // ShipmentUnitIds: [required] Unit IDs to define specific units within - // the line item. + // ShipmentUnitIds: [required] Unit IDs to define specific units within the + // line item. ShipmentUnitIds []string `json:"shipmentUnitIds,omitempty"` - // UnitInvoice: [required] Invoice details for a single unit. UnitInvoice *UnitInvoice `json:"unitInvoice,omitempty"` - // ForceSendFields is a list of field names (e.g. "LineItemId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItemId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItemId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShipmentInvoiceLineItemInvoice) MarshalJSON() ([]byte, error) { +func (s ShipmentInvoiceLineItemInvoice) MarshalJSON() ([]byte, error) { type NoMethod ShipmentInvoiceLineItemInvoice - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ShipmentTrackingInfo struct { - Carrier string `json:"carrier,omitempty"` - + Carrier string `json:"carrier,omitempty"` TrackingNumber string `json:"trackingNumber,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShipmentTrackingInfo) MarshalJSON() ([]byte, error) { +func (s ShipmentTrackingInfo) MarshalJSON() ([]byte, error) { type NoMethod ShipmentTrackingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrder struct { // Customer: The details of the customer who placed the order. Customer *TestOrderCustomer `json:"customer,omitempty"` - - // EnableOrderinvoices: Whether the orderinvoices service should support - // this order. + // EnableOrderinvoices: Whether the orderinvoices service should support this + // order. EnableOrderinvoices bool `json:"enableOrderinvoices,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "content#testOrder". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "content#testOrder". Kind string `json:"kind,omitempty"` - - // LineItems: Line items that are ordered. At least one line item must - // be provided. + // LineItems: Line items that are ordered. At least one line item must be + // provided. LineItems []*TestOrderLineItem `json:"lineItems,omitempty"` - - // NotificationMode: Determines if test order must be pulled by merchant - // or pushed to merchant via push integration. + // NotificationMode: Determines if test order must be pulled by merchant or + // pushed to merchant via push integration. NotificationMode string `json:"notificationMode,omitempty"` - // PaymentMethod: The details of the payment method. PaymentMethod *TestOrderPaymentMethod `json:"paymentMethod,omitempty"` - - // PredefinedDeliveryAddress: Identifier of one of the predefined - // delivery addresses for the delivery. + // PredefinedDeliveryAddress: Identifier of one of the predefined delivery + // addresses for the delivery. PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"` - - // Promotions: Deprecated. The details of the merchant provided - // promotions applied to the order. More details about the program are - // here. + // Promotions: Deprecated. The details of the merchant provided promotions + // applied to the order. More details about the program are here. Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"` - // ShippingCost: The total cost of shipping for all items. ShippingCost *Price `json:"shippingCost,omitempty"` - // ShippingCostTax: The tax for the total shipping cost. ShippingCostTax *Price `json:"shippingCostTax,omitempty"` - // ShippingOption: The requested shipping option. ShippingOption string `json:"shippingOption,omitempty"` - // ForceSendFields is a list of field names (e.g. "Customer") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Customer") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Customer") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrder) MarshalJSON() ([]byte, error) { +func (s TestOrder) MarshalJSON() ([]byte, error) { type NoMethod TestOrder - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrderCustomer struct { // Email: Deprecated. Email string `json:"email,omitempty"` - - // ExplicitMarketingPreference: Deprecated. Please use - // marketingRightsInfo instead. + // ExplicitMarketingPreference: Deprecated. Please use marketingRightsInfo + // instead. ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"` - // FullName: Full name of the customer. FullName string `json:"fullName,omitempty"` - // MarketingRightsInfo: Customer's marketing preferences. MarketingRightsInfo *TestOrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrderCustomer) MarshalJSON() ([]byte, error) { +func (s TestOrderCustomer) MarshalJSON() ([]byte, error) { type NoMethod TestOrderCustomer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrderCustomerMarketingRightsInfo struct { - // ExplicitMarketingPreference: Last know user use selection regards - // marketing preferences. In certain cases selection might not be known, - // so this field would be empty. + // ExplicitMarketingPreference: Last know user use selection regards marketing + // preferences. In certain cases selection might not be known, so this field + // would be empty. ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"` - - // LastUpdatedTimestamp: Timestamp when last time marketing preference - // was updated. Could be empty, if user wasn't offered a selection yet. + // LastUpdatedTimestamp: Timestamp when last time marketing preference was + // updated. Could be empty, if user wasn't offered a selection yet. LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ExplicitMarketingPreference") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "ExplicitMarketingPreference") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExplicitMarketingPreference") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExplicitMarketingPreference") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) { +func (s TestOrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) { type NoMethod TestOrderCustomerMarketingRightsInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrderLineItem struct { // Product: Product data from the time of the order placement. Product *TestOrderLineItemProduct `json:"product,omitempty"` - // QuantityOrdered: Number of items ordered. QuantityOrdered int64 `json:"quantityOrdered,omitempty"` - // ReturnInfo: Details of the return policy for the line item. ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"` - // ShippingDetails: Details of the requested shipping for the line item. ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"` - // UnitTax: Unit tax for the line item. UnitTax *Price `json:"unitTax,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Product") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Product") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Product") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Product") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrderLineItem) MarshalJSON() ([]byte, error) { +func (s TestOrderLineItem) MarshalJSON() ([]byte, error) { type NoMethod TestOrderLineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrderLineItemProduct struct { // Brand: Brand of the item. Brand string `json:"brand,omitempty"` - // Channel: The item's channel. Channel string `json:"channel,omitempty"` - // Condition: Condition or state of the item. Condition string `json:"condition,omitempty"` - // ContentLanguage: The two-letter ISO 639-1 language code for the item. ContentLanguage string `json:"contentLanguage,omitempty"` - // Gtin: Global Trade Item Number (GTIN) of the item. Optional. Gtin string `json:"gtin,omitempty"` - // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` - // ItemGroupId: Shared identifier for all variants of the same product. // Optional. ItemGroupId string `json:"itemGroupId,omitempty"` - // Mpn: Manufacturer Part Number (MPN) of the item. Optional. Mpn string `json:"mpn,omitempty"` - // OfferId: An identifier of the item. OfferId string `json:"offerId,omitempty"` - // Price: The price for the product. Price *Price `json:"price,omitempty"` - - // TargetCountry: The CLDR territory code of the target country of the - // product. + // TargetCountry: The CLDR territory code of the target country of the product. TargetCountry string `json:"targetCountry,omitempty"` - // Title: The title of the product. Title string `json:"title,omitempty"` - // VariantAttributes: Variant attributes for the item. Optional. VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Brand") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Brand") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Brand") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrderLineItemProduct) MarshalJSON() ([]byte, error) { +func (s TestOrderLineItemProduct) MarshalJSON() ([]byte, error) { type NoMethod TestOrderLineItemProduct - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TestOrderPaymentMethod struct { - // ExpirationMonth: The card expiration month (January = 1, February = 2 - // etc.). + // ExpirationMonth: The card expiration month (January = 1, February = 2 etc.). ExpirationMonth int64 `json:"expirationMonth,omitempty"` - // ExpirationYear: The card expiration year (4-digit, e.g. 2015). ExpirationYear int64 `json:"expirationYear,omitempty"` - // LastFourDigits: The last four digits of the card number. LastFourDigits string `json:"lastFourDigits,omitempty"` - // PredefinedBillingAddress: The billing address. PredefinedBillingAddress string `json:"predefinedBillingAddress,omitempty"` - - // Type: The type of instrument. Note that real orders might have - // different values than the four values accepted by createTestOrder. + // Type: The type of instrument. Note that real orders might have different + // values than the four values accepted by createTestOrder. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpirationMonth") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpirationMonth") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExpirationMonth") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestOrderPaymentMethod) MarshalJSON() ([]byte, error) { +func (s TestOrderPaymentMethod) MarshalJSON() ([]byte, error) { type NoMethod TestOrderPaymentMethod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UnitInvoice struct { - // AdditionalCharges: Additional charges for a unit, e.g. shipping - // costs. + // AdditionalCharges: Additional charges for a unit, e.g. shipping costs. AdditionalCharges []*UnitInvoiceAdditionalCharge `json:"additionalCharges,omitempty"` - // Promotions: Promotions applied to a unit. Promotions []*Promotion `json:"promotions,omitempty"` - // UnitPricePretax: [required] Price of the unit, before applying taxes. UnitPricePretax *Price `json:"unitPricePretax,omitempty"` - // UnitPriceTaxes: Tax amounts to apply to the unit price. UnitPriceTaxes []*UnitInvoiceTaxLine `json:"unitPriceTaxes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalCharges") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalCharges") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalCharges") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalCharges") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnitInvoice) MarshalJSON() ([]byte, error) { +func (s UnitInvoice) MarshalJSON() ([]byte, error) { type NoMethod UnitInvoice - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UnitInvoiceAdditionalCharge struct { // AdditionalChargeAmount: [required] Amount of the additional charge. AdditionalChargeAmount *Amount `json:"additionalChargeAmount,omitempty"` - - // AdditionalChargePromotions: Promotions applied to the additional - // charge. + // AdditionalChargePromotions: Promotions applied to the additional charge. AdditionalChargePromotions []*Promotion `json:"additionalChargePromotions,omitempty"` - // Type: [required] Type of the additional charge. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdditionalChargeAmount") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalChargeAmount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalChargeAmount") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalChargeAmount") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnitInvoiceAdditionalCharge) MarshalJSON() ([]byte, error) { +func (s UnitInvoiceAdditionalCharge) MarshalJSON() ([]byte, error) { type NoMethod UnitInvoiceAdditionalCharge - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UnitInvoiceTaxLine struct { // TaxAmount: [required] Tax amount for the tax type. TaxAmount *Price `json:"taxAmount,omitempty"` - - // TaxName: Optional name of the tax type. This should only be provided - // if taxType is otherFeeTax. + // TaxName: Optional name of the tax type. This should only be provided if + // taxType is otherFeeTax. TaxName string `json:"taxName,omitempty"` - // TaxType: [required] Type of the tax. TaxType string `json:"taxType,omitempty"` - // ForceSendFields is a list of field names (e.g. "TaxAmount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaxAmount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "TaxAmount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnitInvoiceTaxLine) MarshalJSON() ([]byte, error) { +func (s UnitInvoiceTaxLine) MarshalJSON() ([]byte, error) { type NoMethod UnitInvoiceTaxLine - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "content.orderinvoices.createchargeinvoice": - type OrderinvoicesCreatechargeinvoiceCall struct { s *APIService merchantId uint64 @@ -4662,8 +3559,12 @@ type OrderinvoicesCreatechargeinvoiceCall struct { header_ http.Header } -// Createchargeinvoice: Creates a charge invoice for a shipment group, -// and triggers a charge capture for non-facilitated payment orders. +// Createchargeinvoice: Creates a charge invoice for a shipment group, and +// triggers a charge capture for non-facilitated payment orders. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrderinvoicesService) Createchargeinvoice(merchantId uint64, orderId string, orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest) *OrderinvoicesCreatechargeinvoiceCall { c := &OrderinvoicesCreatechargeinvoiceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -4673,23 +3574,21 @@ func (r *OrderinvoicesService) Createchargeinvoice(merchantId uint64, orderId st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderinvoicesCreatechargeinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreatechargeinvoiceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderinvoicesCreatechargeinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreatechargeinvoiceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4698,18 +3597,12 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header { } func (c *OrderinvoicesCreatechargeinvoiceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderinvoicescreatechargeinvoicerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createChargeInvoice") @@ -4723,18 +3616,15 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) doRequest(alt string) (*http.Resp "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderinvoices.createchargeinvoice" call. -// Exactly one of *OrderinvoicesCreateChargeInvoiceResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *OrderinvoicesCreateChargeInvoiceResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderinvoicesCreateChargeInvoiceResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateChargeInvoiceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4742,17 +3632,17 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderinvoicesCreateChargeInvoiceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4765,44 +3655,7 @@ func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates a charge invoice for a shipment group, and triggers a charge capture for non-facilitated payment orders.", - // "httpMethod": "POST", - // "id": "content.orderinvoices.createchargeinvoice", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderinvoices/{orderId}/createChargeInvoice", - // "request": { - // "$ref": "OrderinvoicesCreateChargeInvoiceRequest" - // }, - // "response": { - // "$ref": "OrderinvoicesCreateChargeInvoiceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderinvoices.createrefundinvoice": +} type OrderinvoicesCreaterefundinvoiceCall struct { s *APIService @@ -4814,11 +3667,15 @@ type OrderinvoicesCreaterefundinvoiceCall struct { header_ http.Header } -// Createrefundinvoice: Creates a refund invoice for one or more -// shipment groups, and triggers a refund for non-facilitated payment -// orders. This can only be used for line items that have previously -// been charged using createChargeInvoice. All amounts (except for the -// summary) are incremental with respect to the previous invoice. +// Createrefundinvoice: Creates a refund invoice for one or more shipment +// groups, and triggers a refund for non-facilitated payment orders. This can +// only be used for line items that have previously been charged using +// createChargeInvoice. All amounts (except for the summary) are incremental +// with respect to the previous invoice. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrderinvoicesService) Createrefundinvoice(merchantId uint64, orderId string, orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest) *OrderinvoicesCreaterefundinvoiceCall { c := &OrderinvoicesCreaterefundinvoiceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -4828,23 +3685,21 @@ func (r *OrderinvoicesService) Createrefundinvoice(merchantId uint64, orderId st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderinvoicesCreaterefundinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreaterefundinvoiceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderinvoicesCreaterefundinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreaterefundinvoiceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4853,18 +3708,12 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header { } func (c *OrderinvoicesCreaterefundinvoiceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderinvoicescreaterefundinvoicerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createRefundInvoice") @@ -4878,18 +3727,15 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) doRequest(alt string) (*http.Resp "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderinvoices.createrefundinvoice" call. -// Exactly one of *OrderinvoicesCreateRefundInvoiceResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *OrderinvoicesCreateRefundInvoiceResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderinvoicesCreateRefundInvoiceResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateRefundInvoiceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4897,17 +3743,17 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderinvoicesCreateRefundInvoiceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4920,44 +3766,7 @@ func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates a refund invoice for one or more shipment groups, and triggers a refund for non-facilitated payment orders. This can only be used for line items that have previously been charged using createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous invoice.", - // "httpMethod": "POST", - // "id": "content.orderinvoices.createrefundinvoice", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderinvoices/{orderId}/createRefundInvoice", - // "request": { - // "$ref": "OrderinvoicesCreateRefundInvoiceRequest" - // }, - // "response": { - // "$ref": "OrderinvoicesCreateRefundInvoiceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderpayments.notifyauthapproved": +} type OrderpaymentsNotifyauthapprovedCall struct { s *APIService @@ -4969,8 +3778,13 @@ type OrderpaymentsNotifyauthapprovedCall struct { header_ http.Header } -// Notifyauthapproved: Notify about successfully authorizing user's -// payment method for a given amount. +// Notifyauthapproved: Notify about successfully authorizing user's payment +// method for a given amount. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order for for which payment authorization is +// happening. func (r *OrderpaymentsService) Notifyauthapproved(merchantId uint64, orderId string, orderpaymentsnotifyauthapprovedrequest *OrderpaymentsNotifyAuthApprovedRequest) *OrderpaymentsNotifyauthapprovedCall { c := &OrderpaymentsNotifyauthapprovedCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -4980,23 +3794,21 @@ func (r *OrderpaymentsService) Notifyauthapproved(merchantId uint64, orderId str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderpaymentsNotifyauthapprovedCall) Fields(s ...googleapi.Field) *OrderpaymentsNotifyauthapprovedCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderpaymentsNotifyauthapprovedCall) Context(ctx context.Context) *OrderpaymentsNotifyauthapprovedCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderpaymentsNotifyauthapprovedCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5005,18 +3817,12 @@ func (c *OrderpaymentsNotifyauthapprovedCall) Header() http.Header { } func (c *OrderpaymentsNotifyauthapprovedCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderpaymentsnotifyauthapprovedrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderpayments/{orderId}/notifyAuthApproved") @@ -5030,17 +3836,15 @@ func (c *OrderpaymentsNotifyauthapprovedCall) doRequest(alt string) (*http.Respo "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderpayments.notifyauthapproved" call. -// Exactly one of *OrderpaymentsNotifyAuthApprovedResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *OrderpaymentsNotifyAuthApprovedResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderpaymentsNotifyAuthApprovedResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderpaymentsNotifyauthapprovedCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyAuthApprovedResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5048,17 +3852,17 @@ func (c *OrderpaymentsNotifyauthapprovedCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderpaymentsNotifyAuthApprovedResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5071,44 +3875,7 @@ func (c *OrderpaymentsNotifyauthapprovedCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Notify about successfully authorizing user's payment method for a given amount.", - // "httpMethod": "POST", - // "id": "content.orderpayments.notifyauthapproved", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order for for which payment authorization is happening.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderpayments/{orderId}/notifyAuthApproved", - // "request": { - // "$ref": "OrderpaymentsNotifyAuthApprovedRequest" - // }, - // "response": { - // "$ref": "OrderpaymentsNotifyAuthApprovedResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderpayments.notifyauthdeclined": +} type OrderpaymentsNotifyauthdeclinedCall struct { s *APIService @@ -5120,8 +3887,11 @@ type OrderpaymentsNotifyauthdeclinedCall struct { header_ http.Header } -// Notifyauthdeclined: Notify about failure to authorize user's payment -// method. +// Notifyauthdeclined: Notify about failure to authorize user's payment method. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order for which payment authorization was declined. func (r *OrderpaymentsService) Notifyauthdeclined(merchantId uint64, orderId string, orderpaymentsnotifyauthdeclinedrequest *OrderpaymentsNotifyAuthDeclinedRequest) *OrderpaymentsNotifyauthdeclinedCall { c := &OrderpaymentsNotifyauthdeclinedCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -5131,23 +3901,21 @@ func (r *OrderpaymentsService) Notifyauthdeclined(merchantId uint64, orderId str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderpaymentsNotifyauthdeclinedCall) Fields(s ...googleapi.Field) *OrderpaymentsNotifyauthdeclinedCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderpaymentsNotifyauthdeclinedCall) Context(ctx context.Context) *OrderpaymentsNotifyauthdeclinedCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderpaymentsNotifyauthdeclinedCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5156,18 +3924,12 @@ func (c *OrderpaymentsNotifyauthdeclinedCall) Header() http.Header { } func (c *OrderpaymentsNotifyauthdeclinedCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderpaymentsnotifyauthdeclinedrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderpayments/{orderId}/notifyAuthDeclined") @@ -5181,17 +3943,15 @@ func (c *OrderpaymentsNotifyauthdeclinedCall) doRequest(alt string) (*http.Respo "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderpayments.notifyauthdeclined" call. -// Exactly one of *OrderpaymentsNotifyAuthDeclinedResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *OrderpaymentsNotifyAuthDeclinedResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderpaymentsNotifyAuthDeclinedResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderpaymentsNotifyauthdeclinedCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyAuthDeclinedResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5199,17 +3959,17 @@ func (c *OrderpaymentsNotifyauthdeclinedCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderpaymentsNotifyAuthDeclinedResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5222,44 +3982,7 @@ func (c *OrderpaymentsNotifyauthdeclinedCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Notify about failure to authorize user's payment method.", - // "httpMethod": "POST", - // "id": "content.orderpayments.notifyauthdeclined", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order for which payment authorization was declined.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderpayments/{orderId}/notifyAuthDeclined", - // "request": { - // "$ref": "OrderpaymentsNotifyAuthDeclinedRequest" - // }, - // "response": { - // "$ref": "OrderpaymentsNotifyAuthDeclinedResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderpayments.notifycharge": +} type OrderpaymentsNotifychargeCall struct { s *APIService @@ -5272,6 +3995,10 @@ type OrderpaymentsNotifychargeCall struct { } // Notifycharge: Notify about charge on user's selected payments method. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order for which charge is happening. func (r *OrderpaymentsService) Notifycharge(merchantId uint64, orderId string, orderpaymentsnotifychargerequest *OrderpaymentsNotifyChargeRequest) *OrderpaymentsNotifychargeCall { c := &OrderpaymentsNotifychargeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -5281,23 +4008,21 @@ func (r *OrderpaymentsService) Notifycharge(merchantId uint64, orderId string, o } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderpaymentsNotifychargeCall) Fields(s ...googleapi.Field) *OrderpaymentsNotifychargeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderpaymentsNotifychargeCall) Context(ctx context.Context) *OrderpaymentsNotifychargeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderpaymentsNotifychargeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5306,18 +4031,12 @@ func (c *OrderpaymentsNotifychargeCall) Header() http.Header { } func (c *OrderpaymentsNotifychargeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderpaymentsnotifychargerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderpayments/{orderId}/notifyCharge") @@ -5331,17 +4050,15 @@ func (c *OrderpaymentsNotifychargeCall) doRequest(alt string) (*http.Response, e "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderpayments.notifycharge" call. -// Exactly one of *OrderpaymentsNotifyChargeResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrderpaymentsNotifyChargeResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderpaymentsNotifyChargeResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderpaymentsNotifychargeCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyChargeResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5349,17 +4066,17 @@ func (c *OrderpaymentsNotifychargeCall) Do(opts ...googleapi.CallOption) (*Order if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderpaymentsNotifyChargeResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5372,44 +4089,7 @@ func (c *OrderpaymentsNotifychargeCall) Do(opts ...googleapi.CallOption) (*Order return nil, err } return ret, nil - // { - // "description": "Notify about charge on user's selected payments method.", - // "httpMethod": "POST", - // "id": "content.orderpayments.notifycharge", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order for which charge is happening.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderpayments/{orderId}/notifyCharge", - // "request": { - // "$ref": "OrderpaymentsNotifyChargeRequest" - // }, - // "response": { - // "$ref": "OrderpaymentsNotifyChargeResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderpayments.notifyrefund": +} type OrderpaymentsNotifyrefundCall struct { s *APIService @@ -5422,6 +4102,10 @@ type OrderpaymentsNotifyrefundCall struct { } // Notifyrefund: Notify about refund on user's selected payments method. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order for which charge is happening. func (r *OrderpaymentsService) Notifyrefund(merchantId uint64, orderId string, orderpaymentsnotifyrefundrequest *OrderpaymentsNotifyRefundRequest) *OrderpaymentsNotifyrefundCall { c := &OrderpaymentsNotifyrefundCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -5431,23 +4115,21 @@ func (r *OrderpaymentsService) Notifyrefund(merchantId uint64, orderId string, o } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderpaymentsNotifyrefundCall) Fields(s ...googleapi.Field) *OrderpaymentsNotifyrefundCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderpaymentsNotifyrefundCall) Context(ctx context.Context) *OrderpaymentsNotifyrefundCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderpaymentsNotifyrefundCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5456,18 +4138,12 @@ func (c *OrderpaymentsNotifyrefundCall) Header() http.Header { } func (c *OrderpaymentsNotifyrefundCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderpaymentsnotifyrefundrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderpayments/{orderId}/notifyRefund") @@ -5481,17 +4157,15 @@ func (c *OrderpaymentsNotifyrefundCall) doRequest(alt string) (*http.Response, e "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderpayments.notifyrefund" call. -// Exactly one of *OrderpaymentsNotifyRefundResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrderpaymentsNotifyRefundResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderpaymentsNotifyRefundResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderpaymentsNotifyrefundCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyRefundResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5499,17 +4173,17 @@ func (c *OrderpaymentsNotifyrefundCall) Do(opts ...googleapi.CallOption) (*Order if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderpaymentsNotifyRefundResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5522,44 +4196,7 @@ func (c *OrderpaymentsNotifyrefundCall) Do(opts ...googleapi.CallOption) (*Order return nil, err } return ret, nil - // { - // "description": "Notify about refund on user's selected payments method.", - // "httpMethod": "POST", - // "id": "content.orderpayments.notifyrefund", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order for which charge is happening.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderpayments/{orderId}/notifyRefund", - // "request": { - // "$ref": "OrderpaymentsNotifyRefundRequest" - // }, - // "response": { - // "$ref": "OrderpaymentsNotifyRefundResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderreturns.get": +} type OrderreturnsGetCall struct { s *APIService @@ -5572,6 +4209,10 @@ type OrderreturnsGetCall struct { } // Get: Retrieves an order return from your Merchant Center account. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - returnId: Merchant order return ID generated by Google. func (r *OrderreturnsService) Get(merchantId uint64, returnId string) *OrderreturnsGetCall { c := &OrderreturnsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -5580,33 +4221,29 @@ func (r *OrderreturnsService) Get(merchantId uint64, returnId string) *Orderretu } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderreturnsGetCall) Fields(s ...googleapi.Field) *OrderreturnsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderreturnsGetCall) IfNoneMatch(entityTag string) *OrderreturnsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderreturnsGetCall) Context(ctx context.Context) *OrderreturnsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderreturnsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5615,12 +4252,7 @@ func (c *OrderreturnsGetCall) Header() http.Header { } func (c *OrderreturnsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5638,16 +4270,15 @@ func (c *OrderreturnsGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "returnId": c.returnId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderreturns.get" call. -// Exactly one of *MerchantOrderReturn or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MerchantOrderReturn.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MerchantOrderReturn.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderReturn, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5655,17 +4286,17 @@ func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MerchantOrderReturn{ ServerResponse: googleapi.ServerResponse{ @@ -5678,41 +4309,7 @@ func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderRe return nil, err } return ret, nil - // { - // "description": "Retrieves an order return from your Merchant Center account.", - // "httpMethod": "GET", - // "id": "content.orderreturns.get", - // "parameterOrder": [ - // "merchantId", - // "returnId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "returnId": { - // "description": "Merchant order return ID generated by Google.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderreturns/{returnId}", - // "response": { - // "$ref": "MerchantOrderReturn" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orderreturns.list": +} type OrderreturnsListCall struct { s *APIService @@ -5724,39 +4321,40 @@ type OrderreturnsListCall struct { } // List: Lists order returns in your Merchant Center account. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. func (r *OrderreturnsService) List(merchantId uint64) *OrderreturnsListCall { c := &OrderreturnsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// CreatedEndDate sets the optional parameter "createdEndDate": Obtains -// order returns created before this date (inclusively), in ISO 8601 -// format. +// CreatedEndDate sets the optional parameter "createdEndDate": Obtains order +// returns created before this date (inclusively), in ISO 8601 format. func (c *OrderreturnsListCall) CreatedEndDate(createdEndDate string) *OrderreturnsListCall { c.urlParams_.Set("createdEndDate", createdEndDate) return c } -// CreatedStartDate sets the optional parameter "createdStartDate": -// Obtains order returns created after this date (inclusively), in ISO -// 8601 format. +// CreatedStartDate sets the optional parameter "createdStartDate": Obtains +// order returns created after this date (inclusively), in ISO 8601 format. func (c *OrderreturnsListCall) CreatedStartDate(createdStartDate string) *OrderreturnsListCall { c.urlParams_.Set("createdStartDate", createdStartDate) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of order returns to return in the response, used for paging. -// The default value is 25 returns per page, and the maximum allowed -// value is 250 returns per page. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// order returns to return in the response, used for paging. The default value +// is 25 returns per page, and the maximum allowed value is 250 returns per +// page. func (c *OrderreturnsListCall) MaxResults(maxResults int64) *OrderreturnsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderBy sets the optional parameter "orderBy": Return the results in -// the specified order. +// OrderBy sets the optional parameter "orderBy": Return the results in the +// specified order. // // Possible values: // @@ -5767,41 +4365,37 @@ func (c *OrderreturnsListCall) OrderBy(orderBy string) *OrderreturnsListCall { return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *OrderreturnsListCall) PageToken(pageToken string) *OrderreturnsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderreturnsListCall) Fields(s ...googleapi.Field) *OrderreturnsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderreturnsListCall) IfNoneMatch(entityTag string) *OrderreturnsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderreturnsListCall) Context(ctx context.Context) *OrderreturnsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderreturnsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5810,12 +4404,7 @@ func (c *OrderreturnsListCall) Header() http.Header { } func (c *OrderreturnsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5832,16 +4421,15 @@ func (c *OrderreturnsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orderreturns.list" call. -// Exactly one of *OrderreturnsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *OrderreturnsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5849,17 +4437,17 @@ func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderreturnsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5872,65 +4460,6 @@ func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsLi return nil, err } return ret, nil - // { - // "description": "Lists order returns in your Merchant Center account.", - // "httpMethod": "GET", - // "id": "content.orderreturns.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "createdEndDate": { - // "description": "Obtains order returns created before this date (inclusively), in ISO 8601 format.", - // "location": "query", - // "type": "string" - // }, - // "createdStartDate": { - // "description": "Obtains order returns created after this date (inclusively), in ISO 8601 format.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Return the results in the specified order.", - // "enum": [ - // "returnCreationTimeAsc", - // "returnCreationTimeDesc" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "{merchantId}/orderreturns", - // "response": { - // "$ref": "OrderreturnsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -5938,7 +4467,7 @@ func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsLi // The provided context supersedes any context provided to the Context method. func (c *OrderreturnsListCall) Pages(ctx context.Context, f func(*OrderreturnsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5954,8 +4483,6 @@ func (c *OrderreturnsListCall) Pages(ctx context.Context, f func(*OrderreturnsLi } } -// method id "content.orders.acknowledge": - type OrdersAcknowledgeCall struct { s *APIService merchantId uint64 @@ -5967,6 +4494,10 @@ type OrdersAcknowledgeCall struct { } // Acknowledge: Marks an order as acknowledged. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ordersacknowledgerequest *OrdersAcknowledgeRequest) *OrdersAcknowledgeCall { c := &OrdersAcknowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -5976,23 +4507,21 @@ func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ordersack } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersAcknowledgeCall) Fields(s ...googleapi.Field) *OrdersAcknowledgeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersAcknowledgeCall) Context(ctx context.Context) *OrdersAcknowledgeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersAcknowledgeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6001,18 +4530,12 @@ func (c *OrdersAcknowledgeCall) Header() http.Header { } func (c *OrdersAcknowledgeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersacknowledgerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/acknowledge") @@ -6026,16 +4549,15 @@ func (c *OrdersAcknowledgeCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.acknowledge" call. -// Exactly one of *OrdersAcknowledgeResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrdersAcknowledgeResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrdersAcknowledgeResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowledgeResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6043,17 +4565,17 @@ func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersAcknowledgeResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6066,44 +4588,7 @@ func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowl return nil, err } return ret, nil - // { - // "description": "Marks an order as acknowledged.", - // "httpMethod": "POST", - // "id": "content.orders.acknowledge", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/acknowledge", - // "request": { - // "$ref": "OrdersAcknowledgeRequest" - // }, - // "response": { - // "$ref": "OrdersAcknowledgeResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.advancetestorder": +} type OrdersAdvancetestorderCall struct { s *APIService @@ -6114,8 +4599,12 @@ type OrdersAdvancetestorderCall struct { header_ http.Header } -// Advancetestorder: Sandbox only. Moves a test order from state -// "inProgress" to state "pendingShipment". +// Advancetestorder: Sandbox only. Moves a test order from state "inProgress" +// to state "pendingShipment". +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the test order to modify. func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *OrdersAdvancetestorderCall { c := &OrdersAdvancetestorderCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -6124,23 +4613,21 @@ func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *Ord } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersAdvancetestorderCall) Fields(s ...googleapi.Field) *OrdersAdvancetestorderCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersAdvancetestorderCall) Context(ctx context.Context) *OrdersAdvancetestorderCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersAdvancetestorderCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6149,12 +4636,7 @@ func (c *OrdersAdvancetestorderCall) Header() http.Header { } func (c *OrdersAdvancetestorderCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -6169,16 +4651,15 @@ func (c *OrdersAdvancetestorderCall) doRequest(alt string) (*http.Response, erro "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.advancetestorder" call. -// Exactly one of *OrdersAdvanceTestOrderResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersAdvanceTestOrderResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersAdvanceTestOrderResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAdvanceTestOrderResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6186,17 +4667,17 @@ func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAd if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersAdvanceTestOrderResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6209,41 +4690,7 @@ func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAd return nil, err } return ret, nil - // { - // "description": "Sandbox only. Moves a test order from state \"inProgress\" to state \"pendingShipment\".", - // "httpMethod": "POST", - // "id": "content.orders.advancetestorder", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the test order to modify.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/testorders/{orderId}/advance", - // "response": { - // "$ref": "OrdersAdvanceTestOrderResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.cancel": +} type OrdersCancelCall struct { s *APIService @@ -6256,6 +4703,10 @@ type OrdersCancelCall struct { } // Cancel: Cancels all line items in an order, making a full refund. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order to cancel. func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall { c := &OrdersCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -6265,23 +4716,21 @@ func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCancelCall) Fields(s ...googleapi.Field) *OrdersCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCancelCall) Context(ctx context.Context) *OrdersCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6290,18 +4739,12 @@ func (c *OrdersCancelCall) Header() http.Header { } func (c *OrdersCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscancelrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancel") @@ -6315,16 +4758,15 @@ func (c *OrdersCancelCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.cancel" call. -// Exactly one of *OrdersCancelResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersCancelResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersCancelResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6332,17 +4774,17 @@ func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCancelResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6355,44 +4797,7 @@ func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelRespon return nil, err } return ret, nil - // { - // "description": "Cancels all line items in an order, making a full refund.", - // "httpMethod": "POST", - // "id": "content.orders.cancel", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order to cancel.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/cancel", - // "request": { - // "$ref": "OrdersCancelRequest" - // }, - // "response": { - // "$ref": "OrdersCancelResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.cancellineitem": +} type OrdersCancellineitemCall struct { s *APIService @@ -6405,6 +4810,10 @@ type OrdersCancellineitemCall struct { } // Cancellineitem: Cancels a line item, making a full refund. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orderscancellineitemrequest *OrdersCancelLineItemRequest) *OrdersCancellineitemCall { c := &OrdersCancellineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -6414,23 +4823,21 @@ func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orders } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCancellineitemCall) Fields(s ...googleapi.Field) *OrdersCancellineitemCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCancellineitemCall) Context(ctx context.Context) *OrdersCancellineitemCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCancellineitemCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6439,18 +4846,12 @@ func (c *OrdersCancellineitemCall) Header() http.Header { } func (c *OrdersCancellineitemCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscancellineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancelLineItem") @@ -6464,16 +4865,15 @@ func (c *OrdersCancellineitemCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.cancellineitem" call. -// Exactly one of *OrdersCancelLineItemResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersCancelLineItemResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersCancelLineItemResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCancelLineItemResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6481,17 +4881,17 @@ func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCanc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCancelLineItemResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6504,44 +4904,7 @@ func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCanc return nil, err } return ret, nil - // { - // "description": "Cancels a line item, making a full refund.", - // "httpMethod": "POST", - // "id": "content.orders.cancellineitem", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/cancelLineItem", - // "request": { - // "$ref": "OrdersCancelLineItemRequest" - // }, - // "response": { - // "$ref": "OrdersCancelLineItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.canceltestorderbycustomer": +} type OrdersCanceltestorderbycustomerCall struct { s *APIService @@ -6555,6 +4918,10 @@ type OrdersCanceltestorderbycustomerCall struct { // Canceltestorderbycustomer: Sandbox only. Cancels a test order for // customer-initiated cancellation. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the test order to cancel. func (r *OrdersService) Canceltestorderbycustomer(merchantId uint64, orderId string, orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest) *OrdersCanceltestorderbycustomerCall { c := &OrdersCanceltestorderbycustomerCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -6564,23 +4931,21 @@ func (r *OrdersService) Canceltestorderbycustomer(merchantId uint64, orderId str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCanceltestorderbycustomerCall) Fields(s ...googleapi.Field) *OrdersCanceltestorderbycustomerCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCanceltestorderbycustomerCall) Context(ctx context.Context) *OrdersCanceltestorderbycustomerCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCanceltestorderbycustomerCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6589,18 +4954,12 @@ func (c *OrdersCanceltestorderbycustomerCall) Header() http.Header { } func (c *OrdersCanceltestorderbycustomerCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscanceltestorderbycustomerrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders/{orderId}/cancelByCustomer") @@ -6614,17 +4973,15 @@ func (c *OrdersCanceltestorderbycustomerCall) doRequest(alt string) (*http.Respo "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.canceltestorderbycustomer" call. -// Exactly one of *OrdersCancelTestOrderByCustomerResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *OrdersCancelTestOrderByCustomerResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersCancelTestOrderByCustomerResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) (*OrdersCancelTestOrderByCustomerResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6632,17 +4989,17 @@ func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCancelTestOrderByCustomerResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6655,44 +5012,7 @@ func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Sandbox only. Cancels a test order for customer-initiated cancellation.", - // "httpMethod": "POST", - // "id": "content.orders.canceltestorderbycustomer", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the test order to cancel.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/testorders/{orderId}/cancelByCustomer", - // "request": { - // "$ref": "OrdersCancelTestOrderByCustomerRequest" - // }, - // "response": { - // "$ref": "OrdersCancelTestOrderByCustomerResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.createtestorder": +} type OrdersCreatetestorderCall struct { s *APIService @@ -6704,6 +5024,9 @@ type OrdersCreatetestorderCall struct { } // Createtestorder: Sandbox only. Creates a test order. +// +// - merchantId: The ID of the account that should manage the order. This +// cannot be a multi-client account. func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall { c := &OrdersCreatetestorderCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -6712,23 +5035,21 @@ func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorder } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCreatetestorderCall) Fields(s ...googleapi.Field) *OrdersCreatetestorderCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCreatetestorderCall) Context(ctx context.Context) *OrdersCreatetestorderCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCreatetestorderCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6737,18 +5058,12 @@ func (c *OrdersCreatetestorderCall) Header() http.Header { } func (c *OrdersCreatetestorderCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscreatetestorderrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders") @@ -6761,16 +5076,15 @@ func (c *OrdersCreatetestorderCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.createtestorder" call. -// Exactly one of *OrdersCreateTestOrderResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersCreateTestOrderResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersCreateTestOrderResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestOrderResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6778,17 +5092,17 @@ func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCre if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCreateTestOrderResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6801,37 +5115,7 @@ func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCre return nil, err } return ret, nil - // { - // "description": "Sandbox only. Creates a test order.", - // "httpMethod": "POST", - // "id": "content.orders.createtestorder", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that should manage the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/testorders", - // "request": { - // "$ref": "OrdersCreateTestOrderRequest" - // }, - // "response": { - // "$ref": "OrdersCreateTestOrderResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.createtestreturn": +} type OrdersCreatetestreturnCall struct { s *APIService @@ -6844,6 +5128,10 @@ type OrdersCreatetestreturnCall struct { } // Createtestreturn: Sandbox only. Creates a test return. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Createtestreturn(merchantId uint64, orderId string, orderscreatetestreturnrequest *OrdersCreateTestReturnRequest) *OrdersCreatetestreturnCall { c := &OrdersCreatetestreturnCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -6853,23 +5141,21 @@ func (r *OrdersService) Createtestreturn(merchantId uint64, orderId string, orde } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCreatetestreturnCall) Fields(s ...googleapi.Field) *OrdersCreatetestreturnCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCreatetestreturnCall) Context(ctx context.Context) *OrdersCreatetestreturnCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCreatetestreturnCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6878,18 +5164,12 @@ func (c *OrdersCreatetestreturnCall) Header() http.Header { } func (c *OrdersCreatetestreturnCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscreatetestreturnrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/testreturn") @@ -6903,16 +5183,15 @@ func (c *OrdersCreatetestreturnCall) doRequest(alt string) (*http.Response, erro "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.createtestreturn" call. -// Exactly one of *OrdersCreateTestReturnResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersCreateTestReturnResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersCreateTestReturnResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestReturnResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6920,17 +5199,17 @@ func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCreateTestReturnResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6943,44 +5222,7 @@ func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCr return nil, err } return ret, nil - // { - // "description": "Sandbox only. Creates a test return.", - // "httpMethod": "POST", - // "id": "content.orders.createtestreturn", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/testreturn", - // "request": { - // "$ref": "OrdersCreateTestReturnRequest" - // }, - // "response": { - // "$ref": "OrdersCreateTestReturnResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.custombatch": +} type OrdersCustombatchCall struct { s *APIService @@ -6990,8 +5232,7 @@ type OrdersCustombatchCall struct { header_ http.Header } -// Custombatch: Retrieves or modifies multiple orders in a single -// request. +// Custombatch: Retrieves or modifies multiple orders in a single request. func (r *OrdersService) Custombatch(orderscustombatchrequest *OrdersCustomBatchRequest) *OrdersCustombatchCall { c := &OrdersCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.orderscustombatchrequest = orderscustombatchrequest @@ -6999,23 +5240,21 @@ func (r *OrdersService) Custombatch(orderscustombatchrequest *OrdersCustomBatchR } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersCustombatchCall) Fields(s ...googleapi.Field) *OrdersCustombatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersCustombatchCall) Context(ctx context.Context) *OrdersCustombatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersCustombatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7024,18 +5263,12 @@ func (c *OrdersCustombatchCall) Header() http.Header { } func (c *OrdersCustombatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscustombatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "orders/batch") @@ -7045,16 +5278,15 @@ func (c *OrdersCustombatchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.custombatch" call. -// Exactly one of *OrdersCustomBatchResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrdersCustomBatchResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrdersCustomBatchResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersCustombatchCall) Do(opts ...googleapi.CallOption) (*OrdersCustomBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7062,17 +5294,17 @@ func (c *OrdersCustombatchCall) Do(opts ...googleapi.CallOption) (*OrdersCustomB if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersCustomBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7085,25 +5317,7 @@ func (c *OrdersCustombatchCall) Do(opts ...googleapi.CallOption) (*OrdersCustomB return nil, err } return ret, nil - // { - // "description": "Retrieves or modifies multiple orders in a single request.", - // "httpMethod": "POST", - // "id": "content.orders.custombatch", - // "path": "orders/batch", - // "request": { - // "$ref": "OrdersCustomBatchRequest" - // }, - // "response": { - // "$ref": "OrdersCustomBatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.get": +} type OrdersGetCall struct { s *APIService @@ -7116,6 +5330,10 @@ type OrdersGetCall struct { } // Get: Retrieves an order from your Merchant Center account. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall { c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -7124,33 +5342,29 @@ func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7159,12 +5373,7 @@ func (c *OrdersGetCall) Header() http.Header { } func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7182,16 +5391,14 @@ func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Order.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7199,17 +5406,17 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Order{ ServerResponse: googleapi.ServerResponse{ @@ -7222,41 +5429,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves an order from your Merchant Center account.", - // "httpMethod": "GET", - // "id": "content.orders.get", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.getbymerchantorderid": +} type OrdersGetbymerchantorderidCall struct { s *APIService @@ -7269,6 +5442,10 @@ type OrdersGetbymerchantorderidCall struct { } // Getbymerchantorderid: Retrieves an order using merchant order id. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - merchantOrderId: The merchant order id to be looked for. func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall { c := &OrdersGetbymerchantorderidCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -7277,33 +5454,29 @@ func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGetbymerchantorderidCall) Fields(s ...googleapi.Field) *OrdersGetbymerchantorderidCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGetbymerchantorderidCall) IfNoneMatch(entityTag string) *OrdersGetbymerchantorderidCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGetbymerchantorderidCall) Context(ctx context.Context) *OrdersGetbymerchantorderidCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGetbymerchantorderidCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7312,12 +5485,7 @@ func (c *OrdersGetbymerchantorderidCall) Header() http.Header { } func (c *OrdersGetbymerchantorderidCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7335,17 +5503,15 @@ func (c *OrdersGetbymerchantorderidCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "merchantOrderId": c.merchantOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.getbymerchantorderid" call. -// Exactly one of *OrdersGetByMerchantOrderIdResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersGetByMerchantOrderIdResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersGetByMerchantOrderIdResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersGetByMerchantOrderIdResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7353,17 +5519,17 @@ func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*Orde if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersGetByMerchantOrderIdResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7376,41 +5542,7 @@ func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*Orde return nil, err } return ret, nil - // { - // "description": "Retrieves an order using merchant order id.", - // "httpMethod": "GET", - // "id": "content.orders.getbymerchantorderid", - // "parameterOrder": [ - // "merchantId", - // "merchantOrderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "merchantOrderId": { - // "description": "The merchant order id to be looked for.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/ordersbymerchantid/{merchantOrderId}", - // "response": { - // "$ref": "OrdersGetByMerchantOrderIdResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.gettestordertemplate": +} type OrdersGettestordertemplateCall struct { s *APIService @@ -7422,8 +5554,12 @@ type OrdersGettestordertemplateCall struct { header_ http.Header } -// Gettestordertemplate: Sandbox only. Retrieves an order template that -// can be used to quickly create a new order in sandbox. +// Gettestordertemplate: Sandbox only. Retrieves an order template that can be +// used to quickly create a new order in sandbox. +// +// - merchantId: The ID of the account that should manage the order. This +// cannot be a multi-client account. +// - templateName: The name of the template to retrieve. func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName string) *OrdersGettestordertemplateCall { c := &OrdersGettestordertemplateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -7431,41 +5567,37 @@ func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName str return c } -// Country sets the optional parameter "country": The country of the -// template to retrieve. Defaults to US. +// Country sets the optional parameter "country": The country of the template +// to retrieve. Defaults to US. func (c *OrdersGettestordertemplateCall) Country(country string) *OrdersGettestordertemplateCall { c.urlParams_.Set("country", country) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGettestordertemplateCall) Fields(s ...googleapi.Field) *OrdersGettestordertemplateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGettestordertemplateCall) IfNoneMatch(entityTag string) *OrdersGettestordertemplateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGettestordertemplateCall) Context(ctx context.Context) *OrdersGettestordertemplateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGettestordertemplateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7474,12 +5606,7 @@ func (c *OrdersGettestordertemplateCall) Header() http.Header { } func (c *OrdersGettestordertemplateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7497,17 +5624,15 @@ func (c *OrdersGettestordertemplateCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "templateName": c.templateName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.gettestordertemplate" call. -// Exactly one of *OrdersGetTestOrderTemplateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersGetTestOrderTemplateResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersGetTestOrderTemplateResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*OrdersGetTestOrderTemplateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7515,17 +5640,17 @@ func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*Orde if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersGetTestOrderTemplateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7538,58 +5663,7 @@ func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*Orde return nil, err } return ret, nil - // { - // "description": "Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.", - // "httpMethod": "GET", - // "id": "content.orders.gettestordertemplate", - // "parameterOrder": [ - // "merchantId", - // "templateName" - // ], - // "parameters": { - // "country": { - // "description": "The country of the template to retrieve. Defaults to US.", - // "location": "query", - // "type": "string" - // }, - // "merchantId": { - // "description": "The ID of the account that should manage the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "templateName": { - // "description": "The name of the template to retrieve.", - // "enum": [ - // "template1", - // "template1a", - // "template1b", - // "template2" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/testordertemplates/{templateName}", - // "response": { - // "$ref": "OrdersGetTestOrderTemplateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.instorerefundlineitem": +} type OrdersInstorerefundlineitemCall struct { s *APIService @@ -7601,9 +5675,13 @@ type OrdersInstorerefundlineitemCall struct { header_ http.Header } -// Instorerefundlineitem: Notifies that item return and refund was -// handled directly by merchant outside of Google payments processing -// (e.g. cash refund done in store). +// Instorerefundlineitem: Notifies that item return and refund was handled +// directly by merchant outside of Google payments processing (e.g. cash refund +// done in store). +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest) *OrdersInstorerefundlineitemCall { c := &OrdersInstorerefundlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -7613,23 +5691,21 @@ func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersInstorerefundlineitemCall) Fields(s ...googleapi.Field) *OrdersInstorerefundlineitemCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersInstorerefundlineitemCall) Context(ctx context.Context) *OrdersInstorerefundlineitemCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersInstorerefundlineitemCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7638,18 +5714,12 @@ func (c *OrdersInstorerefundlineitemCall) Header() http.Header { } func (c *OrdersInstorerefundlineitemCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersinstorerefundlineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/inStoreRefundLineItem") @@ -7663,17 +5733,15 @@ func (c *OrdersInstorerefundlineitemCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.instorerefundlineitem" call. -// Exactly one of *OrdersInStoreRefundLineItemResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersInStoreRefundLineItemResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersInStoreRefundLineItemResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersInStoreRefundLineItemResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7681,17 +5749,17 @@ func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*Ord if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersInStoreRefundLineItemResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7704,44 +5772,7 @@ func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*Ord return nil, err } return ret, nil - // { - // "description": "Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store).", - // "httpMethod": "POST", - // "id": "content.orders.instorerefundlineitem", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/inStoreRefundLineItem", - // "request": { - // "$ref": "OrdersInStoreRefundLineItemRequest" - // }, - // "response": { - // "$ref": "OrdersInStoreRefundLineItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.list": +} type OrdersListCall struct { s *APIService @@ -7753,16 +5784,19 @@ type OrdersListCall struct { } // List: Lists the orders in your Merchant Center account. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. func (r *OrdersService) List(merchantId uint64) *OrdersListCall { c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId return c } -// Acknowledged sets the optional parameter "acknowledged": Obtains -// orders that match the acknowledgement status. When set to true, -// obtains orders that have been acknowledged. When false, obtains -// orders that have not been acknowledged. +// Acknowledged sets the optional parameter "acknowledged": Obtains orders that +// match the acknowledgement status. When set to true, obtains orders that have +// been acknowledged. When false, obtains orders that have not been +// acknowledged. // We recommend using this filter set to false, in conjunction with the // acknowledge call, such that only un-acknowledged orders are returned. func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall { @@ -7770,24 +5804,22 @@ func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of orders to return in the response, used for paging. The -// default value is 25 orders per page, and the maximum allowed value is -// 250 orders per page. -// Known issue: All List calls will return all Orders without limit -// regardless of the value of this field. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// orders to return in the response, used for paging. The default value is 25 +// orders per page, and the maximum allowed value is 250 orders per page. +// Known issue: All List calls will return all Orders without limit regardless +// of the value of this field. func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderBy sets the optional parameter "orderBy": The ordering of the -// returned list. The only supported value are placedDate desc and -// placedDate asc for now, which returns orders sorted by placement -// date. "placedDate desc" stands for listing orders by placement date, -// from oldest to most recent. "placedDate asc" stands for listing -// orders by placement date, from most recent to oldest. In future -// releases we'll support other sorting criteria. +// OrderBy sets the optional parameter "orderBy": The ordering of the returned +// list. The only supported value are placedDate desc and placedDate asc for +// now, which returns orders sorted by placement date. "placedDate desc" stands +// for listing orders by placement date, from oldest to most recent. +// "placedDate asc" stands for listing orders by placement date, from most +// recent to oldest. In future releases we'll support other sorting criteria. // // Possible values: // @@ -7798,34 +5830,33 @@ func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall { return c } -// PageToken sets the optional parameter "pageToken": The token returned -// by the previous request. +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous request. func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PlacedDateEnd sets the optional parameter "placedDateEnd": Obtains -// orders placed before this date (exclusively), in ISO 8601 format. +// PlacedDateEnd sets the optional parameter "placedDateEnd": Obtains orders +// placed before this date (exclusively), in ISO 8601 format. func (c *OrdersListCall) PlacedDateEnd(placedDateEnd string) *OrdersListCall { c.urlParams_.Set("placedDateEnd", placedDateEnd) return c } -// PlacedDateStart sets the optional parameter "placedDateStart": -// Obtains orders placed after this date (inclusively), in ISO 8601 -// format. +// PlacedDateStart sets the optional parameter "placedDateStart": Obtains +// orders placed after this date (inclusively), in ISO 8601 format. func (c *OrdersListCall) PlacedDateStart(placedDateStart string) *OrdersListCall { c.urlParams_.Set("placedDateStart", placedDateStart) return c } -// Statuses sets the optional parameter "statuses": Obtains orders that -// match any of the specified statuses. Multiple values can be specified -// with comma separation. Additionally, please note that active is a -// shortcut for pendingShipment and partiallyShipped, and completed is a -// shortcut for shipped , partiallyDelivered, delivered, -// partiallyReturned, returned, and canceled. +// Statuses sets the optional parameter "statuses": Obtains orders that match +// any of the specified statuses. Multiple values can be specified with comma +// separation. Additionally, please note that active is a shortcut for +// pendingShipment and partiallyShipped, and completed is a shortcut for +// shipped , partiallyDelivered, delivered, partiallyReturned, returned, and +// canceled. // // Possible values: // @@ -7846,33 +5877,29 @@ func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7881,12 +5908,7 @@ func (c *OrdersListCall) Header() http.Header { } func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7903,16 +5925,15 @@ func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "merchantId": strconv.FormatUint(c.merchantId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.list" call. -// Exactly one of *OrdersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7920,17 +5941,17 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7943,102 +5964,6 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return nil, err } return ret, nil - // { - // "description": "Lists the orders in your Merchant Center account.", - // "httpMethod": "GET", - // "id": "content.orders.list", - // "parameterOrder": [ - // "merchantId" - // ], - // "parameters": { - // "acknowledged": { - // "description": "Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged.\nWe recommend using this filter set to false, in conjunction with the acknowledge call, such that only un-acknowledged orders are returned.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page.\nKnown issue: All List calls will return all Orders without limit regardless of the value of this field.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "The ordering of the returned list. The only supported value are placedDate desc and placedDate asc for now, which returns orders sorted by placement date. \"placedDate desc\" stands for listing orders by placement date, from oldest to most recent. \"placedDate asc\" stands for listing orders by placement date, from most recent to oldest. In future releases we'll support other sorting criteria.", - // "enum": [ - // "placedDate asc", - // "placedDate desc" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "The token returned by the previous request.", - // "location": "query", - // "type": "string" - // }, - // "placedDateEnd": { - // "description": "Obtains orders placed before this date (exclusively), in ISO 8601 format.", - // "location": "query", - // "type": "string" - // }, - // "placedDateStart": { - // "description": "Obtains orders placed after this date (inclusively), in ISO 8601 format.", - // "location": "query", - // "type": "string" - // }, - // "statuses": { - // "description": "Obtains orders that match any of the specified statuses. Multiple values can be specified with comma separation. Additionally, please note that active is a shortcut for pendingShipment and partiallyShipped, and completed is a shortcut for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and canceled.", - // "enum": [ - // "active", - // "canceled", - // "completed", - // "delivered", - // "inProgress", - // "partiallyDelivered", - // "partiallyReturned", - // "partiallyShipped", - // "pendingShipment", - // "returned", - // "shipped" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders", - // "response": { - // "$ref": "OrdersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } // Pages invokes f for each page of results. @@ -8046,7 +5971,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // The provided context supersedes any context provided to the Context method. func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -8062,8 +5987,6 @@ func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) } } -// method id "content.orders.refund": - type OrdersRefundCall struct { s *APIService merchantId uint64 @@ -8075,6 +5998,10 @@ type OrdersRefundCall struct { } // Refund: Deprecated, please use returnRefundLineItem instead. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order to refund. func (r *OrdersService) Refund(merchantId uint64, orderId string, ordersrefundrequest *OrdersRefundRequest) *OrdersRefundCall { c := &OrdersRefundCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -8084,23 +6011,21 @@ func (r *OrdersService) Refund(merchantId uint64, orderId string, ordersrefundre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersRefundCall) Fields(s ...googleapi.Field) *OrdersRefundCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersRefundCall) Context(ctx context.Context) *OrdersRefundCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersRefundCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8109,18 +6034,12 @@ func (c *OrdersRefundCall) Header() http.Header { } func (c *OrdersRefundCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrefundrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/refund") @@ -8134,16 +6053,15 @@ func (c *OrdersRefundCall) doRequest(alt string) (*http.Response, error) { "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.refund" call. -// Exactly one of *OrdersRefundResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersRefundResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersRefundResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8151,17 +6069,17 @@ func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersRefundResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8174,44 +6092,7 @@ func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundRespon return nil, err } return ret, nil - // { - // "description": "Deprecated, please use returnRefundLineItem instead.", - // "httpMethod": "POST", - // "id": "content.orders.refund", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order to refund.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/refund", - // "request": { - // "$ref": "OrdersRefundRequest" - // }, - // "response": { - // "$ref": "OrdersRefundResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.rejectreturnlineitem": +} type OrdersRejectreturnlineitemCall struct { s *APIService @@ -8224,6 +6105,10 @@ type OrdersRejectreturnlineitemCall struct { } // Rejectreturnlineitem: Rejects return on an line item. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Rejectreturnlineitem(merchantId uint64, orderId string, ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest) *OrdersRejectreturnlineitemCall { c := &OrdersRejectreturnlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -8233,23 +6118,21 @@ func (r *OrdersService) Rejectreturnlineitem(merchantId uint64, orderId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersRejectreturnlineitemCall) Fields(s ...googleapi.Field) *OrdersRejectreturnlineitemCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersRejectreturnlineitemCall) Context(ctx context.Context) *OrdersRejectreturnlineitemCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersRejectreturnlineitemCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8258,18 +6141,12 @@ func (c *OrdersRejectreturnlineitemCall) Header() http.Header { } func (c *OrdersRejectreturnlineitemCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrejectreturnlineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/rejectReturnLineItem") @@ -8283,17 +6160,15 @@ func (c *OrdersRejectreturnlineitemCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.rejectreturnlineitem" call. -// Exactly one of *OrdersRejectReturnLineItemResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersRejectReturnLineItemResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersRejectReturnLineItemResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRejectReturnLineItemResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8301,17 +6176,17 @@ func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*Orde if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersRejectReturnLineItemResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8324,44 +6199,7 @@ func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*Orde return nil, err } return ret, nil - // { - // "description": "Rejects return on an line item.", - // "httpMethod": "POST", - // "id": "content.orders.rejectreturnlineitem", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/rejectReturnLineItem", - // "request": { - // "$ref": "OrdersRejectReturnLineItemRequest" - // }, - // "response": { - // "$ref": "OrdersRejectReturnLineItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.returnlineitem": +} type OrdersReturnlineitemCall struct { s *APIService @@ -8374,6 +6212,10 @@ type OrdersReturnlineitemCall struct { } // Returnlineitem: Returns a line item. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Returnlineitem(merchantId uint64, orderId string, ordersreturnlineitemrequest *OrdersReturnLineItemRequest) *OrdersReturnlineitemCall { c := &OrdersReturnlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -8383,23 +6225,21 @@ func (r *OrdersService) Returnlineitem(merchantId uint64, orderId string, orders } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersReturnlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnlineitemCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersReturnlineitemCall) Context(ctx context.Context) *OrdersReturnlineitemCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersReturnlineitemCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8408,18 +6248,12 @@ func (c *OrdersReturnlineitemCall) Header() http.Header { } func (c *OrdersReturnlineitemCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersreturnlineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/returnLineItem") @@ -8433,16 +6267,15 @@ func (c *OrdersReturnlineitemCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.returnlineitem" call. -// Exactly one of *OrdersReturnLineItemResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersReturnLineItemResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersReturnLineItemResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnLineItemResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8450,17 +6283,17 @@ func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRetu if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersReturnLineItemResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8473,44 +6306,7 @@ func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRetu return nil, err } return ret, nil - // { - // "description": "Returns a line item.", - // "httpMethod": "POST", - // "id": "content.orders.returnlineitem", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/returnLineItem", - // "request": { - // "$ref": "OrdersReturnLineItemRequest" - // }, - // "response": { - // "$ref": "OrdersReturnLineItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.returnrefundlineitem": +} type OrdersReturnrefundlineitemCall struct { s *APIService @@ -8522,8 +6318,12 @@ type OrdersReturnrefundlineitemCall struct { header_ http.Header } -// Returnrefundlineitem: Returns and refunds a line item. Note that this -// method can only be called on fully shipped orders. +// Returnrefundlineitem: Returns and refunds a line item. Note that this method +// can only be called on fully shipped orders. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Returnrefundlineitem(merchantId uint64, orderId string, ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest) *OrdersReturnrefundlineitemCall { c := &OrdersReturnrefundlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -8533,23 +6333,21 @@ func (r *OrdersService) Returnrefundlineitem(merchantId uint64, orderId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersReturnrefundlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnrefundlineitemCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersReturnrefundlineitemCall) Context(ctx context.Context) *OrdersReturnrefundlineitemCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersReturnrefundlineitemCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8558,18 +6356,12 @@ func (c *OrdersReturnrefundlineitemCall) Header() http.Header { } func (c *OrdersReturnrefundlineitemCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersreturnrefundlineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/returnRefundLineItem") @@ -8583,17 +6375,15 @@ func (c *OrdersReturnrefundlineitemCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.returnrefundlineitem" call. -// Exactly one of *OrdersReturnRefundLineItemResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersReturnRefundLineItemResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersReturnRefundLineItemResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnRefundLineItemResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8601,17 +6391,17 @@ func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*Orde if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersReturnRefundLineItemResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8624,44 +6414,7 @@ func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*Orde return nil, err } return ret, nil - // { - // "description": "Returns and refunds a line item. Note that this method can only be called on fully shipped orders.", - // "httpMethod": "POST", - // "id": "content.orders.returnrefundlineitem", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/returnRefundLineItem", - // "request": { - // "$ref": "OrdersReturnRefundLineItemRequest" - // }, - // "response": { - // "$ref": "OrdersReturnRefundLineItemResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.setlineitemmetadata": +} type OrdersSetlineitemmetadataCall struct { s *APIService @@ -8673,8 +6426,12 @@ type OrdersSetlineitemmetadataCall struct { header_ http.Header } -// Setlineitemmetadata: Sets (overrides) merchant provided annotations -// on the line item. +// Setlineitemmetadata: Sets (overrides) merchant provided annotations on the +// line item. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Setlineitemmetadata(merchantId uint64, orderId string, orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest) *OrdersSetlineitemmetadataCall { c := &OrdersSetlineitemmetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -8684,23 +6441,21 @@ func (r *OrdersService) Setlineitemmetadata(merchantId uint64, orderId string, o } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersSetlineitemmetadataCall) Fields(s ...googleapi.Field) *OrdersSetlineitemmetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersSetlineitemmetadataCall) Context(ctx context.Context) *OrdersSetlineitemmetadataCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersSetlineitemmetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8709,18 +6464,12 @@ func (c *OrdersSetlineitemmetadataCall) Header() http.Header { } func (c *OrdersSetlineitemmetadataCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderssetlineitemmetadatarequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/setLineItemMetadata") @@ -8734,17 +6483,15 @@ func (c *OrdersSetlineitemmetadataCall) doRequest(alt string) (*http.Response, e "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.setlineitemmetadata" call. -// Exactly one of *OrdersSetLineItemMetadataResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersSetLineItemMetadataResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersSetLineItemMetadataResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*OrdersSetLineItemMetadataResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8752,17 +6499,17 @@ func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*Order if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersSetLineItemMetadataResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8775,44 +6522,7 @@ func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*Order return nil, err } return ret, nil - // { - // "description": "Sets (overrides) merchant provided annotations on the line item.", - // "httpMethod": "POST", - // "id": "content.orders.setlineitemmetadata", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/setLineItemMetadata", - // "request": { - // "$ref": "OrdersSetLineItemMetadataRequest" - // }, - // "response": { - // "$ref": "OrdersSetLineItemMetadataResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.shiplineitems": +} type OrdersShiplineitemsCall struct { s *APIService @@ -8825,6 +6535,10 @@ type OrdersShiplineitemsCall struct { } // Shiplineitems: Marks line item(s) as shipped. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ordersshiplineitemsrequest *OrdersShipLineItemsRequest) *OrdersShiplineitemsCall { c := &OrdersShiplineitemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -8834,23 +6548,21 @@ func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, orderss } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersShiplineitemsCall) Fields(s ...googleapi.Field) *OrdersShiplineitemsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersShiplineitemsCall) Context(ctx context.Context) *OrdersShiplineitemsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersShiplineitemsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8859,18 +6571,12 @@ func (c *OrdersShiplineitemsCall) Header() http.Header { } func (c *OrdersShiplineitemsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersshiplineitemsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/shipLineItems") @@ -8884,16 +6590,15 @@ func (c *OrdersShiplineitemsCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.shiplineitems" call. -// Exactly one of *OrdersShipLineItemsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrdersShipLineItemsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrdersShipLineItemsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipLineItemsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8901,17 +6606,17 @@ func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipL if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersShipLineItemsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8924,44 +6629,7 @@ func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipL return nil, err } return ret, nil - // { - // "description": "Marks line item(s) as shipped.", - // "httpMethod": "POST", - // "id": "content.orders.shiplineitems", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/shipLineItems", - // "request": { - // "$ref": "OrdersShipLineItemsRequest" - // }, - // "response": { - // "$ref": "OrdersShipLineItemsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.updatelineitemshippingdetails": +} type OrdersUpdatelineitemshippingdetailsCall struct { s *APIService @@ -8973,8 +6641,12 @@ type OrdersUpdatelineitemshippingdetailsCall struct { header_ http.Header } -// Updatelineitemshippingdetails: Updates ship by and delivery by dates -// for a line item. +// Updatelineitemshippingdetails: Updates ship by and delivery by dates for a +// line item. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Updatelineitemshippingdetails(merchantId uint64, orderId string, ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest) *OrdersUpdatelineitemshippingdetailsCall { c := &OrdersUpdatelineitemshippingdetailsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -8984,23 +6656,21 @@ func (r *OrdersService) Updatelineitemshippingdetails(merchantId uint64, orderId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersUpdatelineitemshippingdetailsCall) Fields(s ...googleapi.Field) *OrdersUpdatelineitemshippingdetailsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersUpdatelineitemshippingdetailsCall) Context(ctx context.Context) *OrdersUpdatelineitemshippingdetailsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9009,18 +6679,12 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header { } func (c *OrdersUpdatelineitemshippingdetailsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdatelineitemshippingdetailsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateLineItemShippingDetails") @@ -9034,18 +6698,15 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) doRequest(alt string) (*http.R "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.updatelineitemshippingdetails" call. -// Exactly one of *OrdersUpdateLineItemShippingDetailsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *OrdersUpdateLineItemShippingDetailsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersUpdateLineItemShippingDetailsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateLineItemShippingDetailsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9053,17 +6714,17 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersUpdateLineItemShippingDetailsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9076,44 +6737,7 @@ func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Updates ship by and delivery by dates for a line item.", - // "httpMethod": "POST", - // "id": "content.orders.updatelineitemshippingdetails", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/updateLineItemShippingDetails", - // "request": { - // "$ref": "OrdersUpdateLineItemShippingDetailsRequest" - // }, - // "response": { - // "$ref": "OrdersUpdateLineItemShippingDetailsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.updatemerchantorderid": +} type OrdersUpdatemerchantorderidCall struct { s *APIService @@ -9125,8 +6749,11 @@ type OrdersUpdatemerchantorderidCall struct { header_ http.Header } -// Updatemerchantorderid: Updates the merchant order ID for a given -// order. +// Updatemerchantorderid: Updates the merchant order ID for a given order. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest) *OrdersUpdatemerchantorderidCall { c := &OrdersUpdatemerchantorderidCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -9136,23 +6763,21 @@ func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersUpdatemerchantorderidCall) Fields(s ...googleapi.Field) *OrdersUpdatemerchantorderidCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersUpdatemerchantorderidCall) Context(ctx context.Context) *OrdersUpdatemerchantorderidCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersUpdatemerchantorderidCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9161,18 +6786,12 @@ func (c *OrdersUpdatemerchantorderidCall) Header() http.Header { } func (c *OrdersUpdatemerchantorderidCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdatemerchantorderidrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateMerchantOrderId") @@ -9186,17 +6805,15 @@ func (c *OrdersUpdatemerchantorderidCall) doRequest(alt string) (*http.Response, "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.updatemerchantorderid" call. -// Exactly one of *OrdersUpdateMerchantOrderIdResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersUpdateMerchantOrderIdResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersUpdateMerchantOrderIdResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateMerchantOrderIdResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9204,17 +6821,17 @@ func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*Ord if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersUpdateMerchantOrderIdResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9227,44 +6844,7 @@ func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*Ord return nil, err } return ret, nil - // { - // "description": "Updates the merchant order ID for a given order.", - // "httpMethod": "POST", - // "id": "content.orders.updatemerchantorderid", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/updateMerchantOrderId", - // "request": { - // "$ref": "OrdersUpdateMerchantOrderIdRequest" - // }, - // "response": { - // "$ref": "OrdersUpdateMerchantOrderIdResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - -} - -// method id "content.orders.updateshipment": +} type OrdersUpdateshipmentCall struct { s *APIService @@ -9276,8 +6856,11 @@ type OrdersUpdateshipmentCall struct { header_ http.Header } -// Updateshipment: Updates a shipment's status, carrier, and/or tracking -// ID. +// Updateshipment: Updates a shipment's status, carrier, and/or tracking ID. +// +// - merchantId: The ID of the account that manages the order. This cannot be a +// multi-client account. +// - orderId: The ID of the order. func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, ordersupdateshipmentrequest *OrdersUpdateShipmentRequest) *OrdersUpdateshipmentCall { c := &OrdersUpdateshipmentCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.merchantId = merchantId @@ -9287,23 +6870,21 @@ func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, orders } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersUpdateshipmentCall) Fields(s ...googleapi.Field) *OrdersUpdateshipmentCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersUpdateshipmentCall) Context(ctx context.Context) *OrdersUpdateshipmentCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersUpdateshipmentCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9312,18 +6893,12 @@ func (c *OrdersUpdateshipmentCall) Header() http.Header { } func (c *OrdersUpdateshipmentCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdateshipmentrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateShipment") @@ -9337,16 +6912,15 @@ func (c *OrdersUpdateshipmentCall) doRequest(alt string) (*http.Response, error) "merchantId": strconv.FormatUint(c.merchantId, 10), "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "content.orders.updateshipment" call. -// Exactly one of *OrdersUpdateShipmentResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OrdersUpdateShipmentResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersUpdateShipmentResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateShipmentResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9354,17 +6928,17 @@ func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpda if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersUpdateShipmentResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9377,39 +6951,4 @@ func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpda return nil, err } return ret, nil - // { - // "description": "Updates a shipment's status, carrier, and/or tracking ID.", - // "httpMethod": "POST", - // "id": "content.orders.updateshipment", - // "parameterOrder": [ - // "merchantId", - // "orderId" - // ], - // "parameters": { - // "merchantId": { - // "description": "The ID of the account that manages the order. This cannot be a multi-client account.", - // "format": "uint64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "The ID of the order.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{merchantId}/orders/{orderId}/updateShipment", - // "request": { - // "$ref": "OrdersUpdateShipmentRequest" - // }, - // "response": { - // "$ref": "OrdersUpdateShipmentResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/content" - // ] - // } - } diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index a9b312f470a..77e003e6f7a 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -6826,7 +6826,7 @@ func (c *ProjectsFetchAclCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.fetchAcl" call. @@ -6934,7 +6934,7 @@ func (c *ProjectsSetAclCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.setAcl" call. @@ -7043,7 +7043,7 @@ func (c *ProjectsLocationsGetStatusCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.getStatus" call. @@ -7147,7 +7147,7 @@ func (c *ProjectsLocationsInitializeCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.initialize" call. @@ -7250,7 +7250,7 @@ func (c *ProjectsLocationsRunPipelineCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.runPipeline" call. @@ -7352,7 +7352,7 @@ func (c *ProjectsLocationsDocumentSchemasCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documentSchemas.create" call. @@ -7450,7 +7450,7 @@ func (c *ProjectsLocationsDocumentSchemasDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documentSchemas.delete" call. @@ -7559,7 +7559,7 @@ func (c *ProjectsLocationsDocumentSchemasGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documentSchemas.get" call. @@ -7686,7 +7686,7 @@ func (c *ProjectsLocationsDocumentSchemasListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documentSchemas.list" call. @@ -7816,7 +7816,7 @@ func (c *ProjectsLocationsDocumentSchemasPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documentSchemas.patch" call. @@ -7919,7 +7919,7 @@ func (c *ProjectsLocationsDocumentsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.create" call. @@ -8025,7 +8025,7 @@ func (c *ProjectsLocationsDocumentsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.delete" call. @@ -8134,7 +8134,7 @@ func (c *ProjectsLocationsDocumentsFetchAclCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.fetchAcl" call. @@ -8239,7 +8239,7 @@ func (c *ProjectsLocationsDocumentsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.get" call. @@ -8344,7 +8344,7 @@ func (c *ProjectsLocationsDocumentsLinkedSourcesCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.linkedSources" call. @@ -8472,7 +8472,7 @@ func (c *ProjectsLocationsDocumentsLinkedTargetsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.linkedTargets" call. @@ -8577,7 +8577,7 @@ func (c *ProjectsLocationsDocumentsLockCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.lock" call. @@ -8683,7 +8683,7 @@ func (c *ProjectsLocationsDocumentsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.patch" call. @@ -8788,7 +8788,7 @@ func (c *ProjectsLocationsDocumentsSearchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.search" call. @@ -8917,7 +8917,7 @@ func (c *ProjectsLocationsDocumentsSetAclCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.setAcl" call. @@ -9022,7 +9022,7 @@ func (c *ProjectsLocationsDocumentsDocumentLinksCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.documentLinks.create" call. @@ -9126,7 +9126,7 @@ func (c *ProjectsLocationsDocumentsDocumentLinksDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.documentLinks.delete" call. @@ -9232,7 +9232,7 @@ func (c *ProjectsLocationsDocumentsReferenceIdDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.referenceId.delete" call. @@ -9337,7 +9337,7 @@ func (c *ProjectsLocationsDocumentsReferenceIdGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.referenceId.get" call. @@ -9443,7 +9443,7 @@ func (c *ProjectsLocationsDocumentsReferenceIdPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.documents.referenceId.patch" call. @@ -9553,7 +9553,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.operations.get" call. @@ -9656,7 +9656,7 @@ func (c *ProjectsLocationsRuleSetsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.ruleSets.create" call. @@ -9753,7 +9753,7 @@ func (c *ProjectsLocationsRuleSetsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.ruleSets.delete" call. @@ -9862,7 +9862,7 @@ func (c *ProjectsLocationsRuleSetsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.ruleSets.get" call. @@ -9989,7 +9989,7 @@ func (c *ProjectsLocationsRuleSetsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.ruleSets.list" call. @@ -10114,7 +10114,7 @@ func (c *ProjectsLocationsRuleSetsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.ruleSets.patch" call. @@ -10218,7 +10218,7 @@ func (c *ProjectsLocationsSynonymSetsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.synonymSets.create" call. @@ -10316,7 +10316,7 @@ func (c *ProjectsLocationsSynonymSetsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.synonymSets.delete" call. @@ -10426,7 +10426,7 @@ func (c *ProjectsLocationsSynonymSetsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.synonymSets.get" call. @@ -10553,7 +10553,7 @@ func (c *ProjectsLocationsSynonymSetsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.synonymSets.list" call. @@ -10678,7 +10678,7 @@ func (c *ProjectsLocationsSynonymSetsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "contentwarehouse.projects.locations.synonymSets.patch" call. diff --git a/css/v1/css-gen.go b/css/v1/css-gen.go index 8f5882c6fb7..89200f09d7b 100644 --- a/css/v1/css-gen.go +++ b/css/v1/css-gen.go @@ -1123,7 +1123,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.get" call. @@ -1264,7 +1264,7 @@ func (c *AccountsListChildAccountsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.listChildAccounts" call. @@ -1387,7 +1387,7 @@ func (c *AccountsUpdateLabelsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.updateLabels" call. @@ -1493,7 +1493,7 @@ func (c *AccountsCssProductInputsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.cssProductInputs.delete" call. @@ -1609,7 +1609,7 @@ func (c *AccountsCssProductInputsInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.cssProductInputs.insert" call. @@ -1719,7 +1719,7 @@ func (c *AccountsCssProductsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.cssProducts.get" call. @@ -1849,7 +1849,7 @@ func (c *AccountsCssProductsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.cssProducts.list" call. @@ -1972,7 +1972,7 @@ func (c *AccountsLabelsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.labels.create" call. @@ -2069,7 +2069,7 @@ func (c *AccountsLabelsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.labels.delete" call. @@ -2194,7 +2194,7 @@ func (c *AccountsLabelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.labels.list" call. @@ -2318,7 +2318,7 @@ func (c *AccountsLabelsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "css.accounts.labels.patch" call. diff --git a/customsearch/v1/customsearch-gen.go b/customsearch/v1/customsearch-gen.go index ab1c23ce769..54bbfd5648b 100644 --- a/customsearch/v1/customsearch-gen.go +++ b/customsearch/v1/customsearch-gen.go @@ -1493,7 +1493,7 @@ func (c *CseListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "search.cse.list" call. @@ -1966,7 +1966,7 @@ func (c *CseSiterestrictListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "search.cse.siterestrict.list" call. diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index 31e31543338..22df810b0c1 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -4042,7 +4042,7 @@ func (c *CatalogSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.catalog.search" call. @@ -4226,7 +4226,7 @@ func (c *EntriesLookupCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.entries.lookup" call. @@ -4354,7 +4354,7 @@ func (c *ProjectsLocationsEntryGroupsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.create" call. @@ -4460,7 +4460,7 @@ func (c *ProjectsLocationsEntryGroupsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.delete" call. @@ -4574,7 +4574,7 @@ func (c *ProjectsLocationsEntryGroupsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.get" call. @@ -4686,7 +4686,7 @@ func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.getIamPolicy" call. @@ -4809,7 +4809,7 @@ func (c *ProjectsLocationsEntryGroupsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.list" call. @@ -4946,7 +4946,7 @@ func (c *ProjectsLocationsEntryGroupsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.patch" call. @@ -5057,7 +5057,7 @@ func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.setIamPolicy" call. @@ -5167,7 +5167,7 @@ func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.testIamPermissions" call. @@ -5286,7 +5286,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.create" call. @@ -5386,7 +5386,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.delete" call. @@ -5493,7 +5493,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.get" call. @@ -5605,7 +5605,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.getIamPolicy" call. @@ -5714,7 +5714,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesImportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.import" call. @@ -5848,7 +5848,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.list" call. @@ -5974,7 +5974,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.modifyEntryContacts" call. @@ -6079,7 +6079,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.modifyEntryOverview" call. @@ -6201,7 +6201,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.patch" call. @@ -6304,7 +6304,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesStarCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.star" call. @@ -6415,7 +6415,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.testIamPermissions" call. @@ -6518,7 +6518,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.unstar" call. @@ -6630,7 +6630,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.create" call. @@ -6726,7 +6726,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.delete" call. @@ -6850,7 +6850,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.list" call. @@ -6985,7 +6985,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.patch" call. @@ -7092,7 +7092,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.reconcile" call. @@ -7203,7 +7203,7 @@ func (c *ProjectsLocationsEntryGroupsTagsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.tags.create" call. @@ -7299,7 +7299,7 @@ func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.tags.delete" call. @@ -7423,7 +7423,7 @@ func (c *ProjectsLocationsEntryGroupsTagsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.tags.list" call. @@ -7558,7 +7558,7 @@ func (c *ProjectsLocationsEntryGroupsTagsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.tags.patch" call. @@ -7662,7 +7662,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.operations.cancel" call. @@ -7760,7 +7760,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.operations.delete" call. @@ -7869,7 +7869,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.operations.get" call. @@ -7997,7 +7997,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.operations.list" call. @@ -8133,7 +8133,7 @@ func (c *ProjectsLocationsTagTemplatesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.create" call. @@ -8239,7 +8239,7 @@ func (c *ProjectsLocationsTagTemplatesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.delete" call. @@ -8346,7 +8346,7 @@ func (c *ProjectsLocationsTagTemplatesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.get" call. @@ -8458,7 +8458,7 @@ func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.getIamPolicy" call. @@ -8578,7 +8578,7 @@ func (c *ProjectsLocationsTagTemplatesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.patch" call. @@ -8689,7 +8689,7 @@ func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.setIamPolicy" call. @@ -8799,7 +8799,7 @@ func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.testIamPermissions" call. @@ -8916,7 +8916,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.fields.create" call. @@ -9024,7 +9024,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.fields.delete" call. @@ -9144,7 +9144,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.fields.patch" call. @@ -9249,7 +9249,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.fields.rename" call. @@ -9352,7 +9352,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.fields.enumValues.rename" call. @@ -9455,7 +9455,7 @@ func (c *ProjectsLocationsTaxonomiesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.create" call. @@ -9554,7 +9554,7 @@ func (c *ProjectsLocationsTaxonomiesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.delete" call. @@ -9680,7 +9680,7 @@ func (c *ProjectsLocationsTaxonomiesExportCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.export" call. @@ -9788,7 +9788,7 @@ func (c *ProjectsLocationsTaxonomiesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.get" call. @@ -9892,7 +9892,7 @@ func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.getIamPolicy" call. @@ -9998,7 +9998,7 @@ func (c *ProjectsLocationsTaxonomiesImportCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.import" call. @@ -10130,7 +10130,7 @@ func (c *ProjectsLocationsTaxonomiesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.list" call. @@ -10264,7 +10264,7 @@ func (c *ProjectsLocationsTaxonomiesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.patch" call. @@ -10372,7 +10372,7 @@ func (c *ProjectsLocationsTaxonomiesReplaceCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.replace" call. @@ -10476,7 +10476,7 @@ func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.setIamPolicy" call. @@ -10581,7 +10581,7 @@ func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.testIamPermissions" call. @@ -10683,7 +10683,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.create" call. @@ -10783,7 +10783,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.delete" call. @@ -10890,7 +10890,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.get" call. @@ -10994,7 +10994,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.getIamPolicy" call. @@ -11117,7 +11117,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.list" call. @@ -11252,7 +11252,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.patch" call. @@ -11356,7 +11356,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.setIamPolicy" call. @@ -11461,7 +11461,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.testIamPermissions" call. diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index f2dbc65c59a..f9f85eae667 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -4301,7 +4301,7 @@ func (c *CatalogSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.catalog.search" call. @@ -4449,7 +4449,7 @@ func (c *EntriesLookupCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.entries.lookup" call. @@ -4568,7 +4568,7 @@ func (c *ProjectsLocationsEntryGroupsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.create" call. @@ -4676,7 +4676,7 @@ func (c *ProjectsLocationsEntryGroupsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.delete" call. @@ -4791,7 +4791,7 @@ func (c *ProjectsLocationsEntryGroupsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.get" call. @@ -4904,7 +4904,7 @@ func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.getIamPolicy" call. @@ -5028,7 +5028,7 @@ func (c *ProjectsLocationsEntryGroupsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.list" call. @@ -5168,7 +5168,7 @@ func (c *ProjectsLocationsEntryGroupsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.patch" call. @@ -5279,7 +5279,7 @@ func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.setIamPolicy" call. @@ -5389,7 +5389,7 @@ func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.testIamPermissions" call. @@ -5506,7 +5506,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.create" call. @@ -5609,7 +5609,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.delete" call. @@ -5718,7 +5718,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.get" call. @@ -5831,7 +5831,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.getIamPolicy" call. @@ -5964,7 +5964,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.list" call. @@ -6110,7 +6110,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.patch" call. @@ -6221,7 +6221,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.testIamPermissions" call. @@ -6332,7 +6332,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.create" call. @@ -6430,7 +6430,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.delete" call. @@ -6556,7 +6556,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.list" call. @@ -6694,7 +6694,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.patch" call. @@ -6805,7 +6805,7 @@ func (c *ProjectsLocationsEntryGroupsTagsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.tags.create" call. @@ -6903,7 +6903,7 @@ func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.tags.delete" call. @@ -7029,7 +7029,7 @@ func (c *ProjectsLocationsEntryGroupsTagsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.tags.list" call. @@ -7167,7 +7167,7 @@ func (c *ProjectsLocationsEntryGroupsTagsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.entryGroups.tags.patch" call. @@ -7282,7 +7282,7 @@ func (c *ProjectsLocationsTagTemplatesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.create" call. @@ -7391,7 +7391,7 @@ func (c *ProjectsLocationsTagTemplatesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.delete" call. @@ -7499,7 +7499,7 @@ func (c *ProjectsLocationsTagTemplatesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.get" call. @@ -7612,7 +7612,7 @@ func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.getIamPolicy" call. @@ -7733,7 +7733,7 @@ func (c *ProjectsLocationsTagTemplatesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.patch" call. @@ -7844,7 +7844,7 @@ func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.setIamPolicy" call. @@ -7954,7 +7954,7 @@ func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.testIamPermissions" call. @@ -8072,7 +8072,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.fields.create" call. @@ -8182,7 +8182,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.fields.delete" call. @@ -8305,7 +8305,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.fields.patch" call. @@ -8413,7 +8413,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.fields.rename" call. @@ -8519,7 +8519,7 @@ func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.tagTemplates.fields.enumValues.rename" call. @@ -8621,7 +8621,7 @@ func (c *ProjectsLocationsTaxonomiesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.create" call. @@ -8719,7 +8719,7 @@ func (c *ProjectsLocationsTaxonomiesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.delete" call. @@ -8843,7 +8843,7 @@ func (c *ProjectsLocationsTaxonomiesExportCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.export" call. @@ -8951,7 +8951,7 @@ func (c *ProjectsLocationsTaxonomiesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.get" call. @@ -9055,7 +9055,7 @@ func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.getIamPolicy" call. @@ -9159,7 +9159,7 @@ func (c *ProjectsLocationsTaxonomiesImportCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.import" call. @@ -9290,7 +9290,7 @@ func (c *ProjectsLocationsTaxonomiesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.list" call. @@ -9423,7 +9423,7 @@ func (c *ProjectsLocationsTaxonomiesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.patch" call. @@ -9527,7 +9527,7 @@ func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.setIamPolicy" call. @@ -9632,7 +9632,7 @@ func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.testIamPermissions" call. @@ -9734,7 +9734,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.create" call. @@ -9832,7 +9832,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.delete" call. @@ -9939,7 +9939,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.get" call. @@ -10043,7 +10043,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.getIamPolicy" call. @@ -10165,7 +10165,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.list" call. @@ -10302,7 +10302,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.patch" call. @@ -10406,7 +10406,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.setIamPolicy" call. @@ -10511,7 +10511,7 @@ func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.testIamPermissions" call. diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index 4026cccb544..bd175d68f36 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -7366,7 +7366,7 @@ func (c *ProjectsDeleteSnapshotsCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.deleteSnapshots" call. @@ -7468,7 +7468,7 @@ func (c *ProjectsWorkerMessagesCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.workerMessages" call. @@ -7664,7 +7664,7 @@ func (c *ProjectsJobsAggregatedCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.aggregated" call. @@ -7839,7 +7839,7 @@ func (c *ProjectsJobsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.create" call. @@ -7995,7 +7995,7 @@ func (c *ProjectsJobsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.get" call. @@ -8127,7 +8127,7 @@ func (c *ProjectsJobsGetMetricsCall) doRequest(alt string) (*http.Response, erro "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.getMetrics" call. @@ -8328,7 +8328,7 @@ func (c *ProjectsJobsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.list" call. @@ -8455,7 +8455,7 @@ func (c *ProjectsJobsSnapshotCall) doRequest(alt string) (*http.Response, error) "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.snapshot" call. @@ -8585,7 +8585,7 @@ func (c *ProjectsJobsUpdateCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.update" call. @@ -8690,7 +8690,7 @@ func (c *ProjectsJobsDebugGetConfigCall) doRequest(alt string) (*http.Response, "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.debug.getConfig" call. @@ -8796,7 +8796,7 @@ func (c *ProjectsJobsDebugSendCaptureCall) doRequest(alt string) (*http.Response "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.debug.sendCapture" call. @@ -8997,7 +8997,7 @@ func (c *ProjectsJobsMessagesListCall) doRequest(alt string) (*http.Response, er "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.messages.list" call. @@ -9124,7 +9124,7 @@ func (c *ProjectsJobsWorkItemsLeaseCall) doRequest(alt string) (*http.Response, "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.workItems.lease" call. @@ -9230,7 +9230,7 @@ func (c *ProjectsJobsWorkItemsReportStatusCall) doRequest(alt string) (*http.Res "projectId": c.projectId, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.jobs.workItems.reportStatus" call. @@ -9338,7 +9338,7 @@ func (c *ProjectsLocationsWorkerMessagesCall) doRequest(alt string) (*http.Respo "projectId": c.projectId, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.workerMessages" call. @@ -9446,7 +9446,7 @@ func (c *ProjectsLocationsFlexTemplatesLaunchCall) doRequest(alt string) (*http. "projectId": c.projectId, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.flexTemplates.launch" call. @@ -9598,7 +9598,7 @@ func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, "projectId": c.projectId, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.create" call. @@ -9752,7 +9752,7 @@ func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, er "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.get" call. @@ -9888,7 +9888,7 @@ func (c *ProjectsLocationsJobsGetExecutionDetailsCall) doRequest(alt string) (*h "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.getExecutionDetails" call. @@ -10040,7 +10040,7 @@ func (c *ProjectsLocationsJobsGetMetricsCall) doRequest(alt string) (*http.Respo "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.getMetrics" call. @@ -10239,7 +10239,7 @@ func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, e "projectId": c.projectId, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.list" call. @@ -10370,7 +10370,7 @@ func (c *ProjectsLocationsJobsSnapshotCall) doRequest(alt string) (*http.Respons "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.snapshot" call. @@ -10498,7 +10498,7 @@ func (c *ProjectsLocationsJobsUpdateCall) doRequest(alt string) (*http.Response, "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.update" call. @@ -10609,7 +10609,7 @@ func (c *ProjectsLocationsJobsDebugGetConfigCall) doRequest(alt string) (*http.R "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.debug.getConfig" call. @@ -10721,7 +10721,7 @@ func (c *ProjectsLocationsJobsDebugSendCaptureCall) doRequest(alt string) (*http "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.debug.sendCapture" call. @@ -10920,7 +10920,7 @@ func (c *ProjectsLocationsJobsMessagesListCall) doRequest(alt string) (*http.Res "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.messages.list" call. @@ -11057,7 +11057,7 @@ func (c *ProjectsLocationsJobsSnapshotsListCall) doRequest(alt string) (*http.Re "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.snapshots.list" call. @@ -11212,7 +11212,7 @@ func (c *ProjectsLocationsJobsStagesGetExecutionDetailsCall) doRequest(alt strin "jobId": c.jobId, "stageId": c.stageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.stages.getExecutionDetails" call. @@ -11345,7 +11345,7 @@ func (c *ProjectsLocationsJobsWorkItemsLeaseCall) doRequest(alt string) (*http.R "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.workItems.lease" call. @@ -11457,7 +11457,7 @@ func (c *ProjectsLocationsJobsWorkItemsReportStatusCall) doRequest(alt string) ( "location": c.location, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.jobs.workItems.reportStatus" call. @@ -11562,7 +11562,7 @@ func (c *ProjectsLocationsSnapshotsDeleteCall) doRequest(alt string) (*http.Resp "location": c.location, "snapshotId": c.snapshotId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.snapshots.delete" call. @@ -11679,7 +11679,7 @@ func (c *ProjectsLocationsSnapshotsGetCall) doRequest(alt string) (*http.Respons "location": c.location, "snapshotId": c.snapshotId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.snapshots.get" call. @@ -11797,7 +11797,7 @@ func (c *ProjectsLocationsSnapshotsListCall) doRequest(alt string) (*http.Respon "projectId": c.projectId, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.snapshots.list" call. @@ -11911,7 +11911,7 @@ func (c *ProjectsLocationsTemplatesCreateCall) doRequest(alt string) (*http.Resp "projectId": c.projectId, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.templates.create" call. @@ -12050,7 +12050,7 @@ func (c *ProjectsLocationsTemplatesGetCall) doRequest(alt string) (*http.Respons "projectId": c.projectId, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.templates.get" call. @@ -12194,7 +12194,7 @@ func (c *ProjectsLocationsTemplatesLaunchCall) doRequest(alt string) (*http.Resp "projectId": c.projectId, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.locations.templates.launch" call. @@ -12314,7 +12314,7 @@ func (c *ProjectsSnapshotsGetCall) doRequest(alt string) (*http.Response, error) "projectId": c.projectId, "snapshotId": c.snapshotId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.snapshots.get" call. @@ -12435,7 +12435,7 @@ func (c *ProjectsSnapshotsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.snapshots.list" call. @@ -12543,7 +12543,7 @@ func (c *ProjectsTemplatesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.templates.create" call. @@ -12684,7 +12684,7 @@ func (c *ProjectsTemplatesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.templates.get" call. @@ -12830,7 +12830,7 @@ func (c *ProjectsTemplatesLaunchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataflow.projects.templates.launch" call. diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index 607db32ffe3..90fc242d922 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -3129,7 +3129,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.get" call. @@ -3236,7 +3236,7 @@ func (c *ProjectsLocationsGetConfigCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.getConfig" call. @@ -3367,7 +3367,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.list" call. @@ -3497,7 +3497,7 @@ func (c *ProjectsLocationsUpdateConfigCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.updateConfig" call. @@ -3624,7 +3624,7 @@ func (c *ProjectsLocationsCollectionsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.collections.getIamPolicy" call. @@ -3729,7 +3729,7 @@ func (c *ProjectsLocationsCollectionsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.collections.setIamPolicy" call. @@ -3837,7 +3837,7 @@ func (c *ProjectsLocationsCollectionsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.collections.testIamPermissions" call. @@ -3940,7 +3940,7 @@ func (c *ProjectsLocationsRepositoriesCommitCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.commit" call. @@ -4048,7 +4048,7 @@ func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.computeAccessTokenStatus" call. @@ -4159,7 +4159,7 @@ func (c *ProjectsLocationsRepositoriesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.create" call. @@ -4262,7 +4262,7 @@ func (c *ProjectsLocationsRepositoriesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.delete" call. @@ -4387,7 +4387,7 @@ func (c *ProjectsLocationsRepositoriesFetchHistoryCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.fetchHistory" call. @@ -4516,7 +4516,7 @@ func (c *ProjectsLocationsRepositoriesFetchRemoteBranchesCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.fetchRemoteBranches" call. @@ -4624,7 +4624,7 @@ func (c *ProjectsLocationsRepositoriesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.get" call. @@ -4751,7 +4751,7 @@ func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.getIamPolicy" call. @@ -4890,7 +4890,7 @@ func (c *ProjectsLocationsRepositoriesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.list" call. @@ -5020,7 +5020,7 @@ func (c *ProjectsLocationsRepositoriesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.patch" call. @@ -5161,7 +5161,7 @@ func (c *ProjectsLocationsRepositoriesQueryDirectoryContentsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.queryDirectoryContents" call. @@ -5305,7 +5305,7 @@ func (c *ProjectsLocationsRepositoriesReadFileCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.readFile" call. @@ -5411,7 +5411,7 @@ func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.setIamPolicy" call. @@ -5519,7 +5519,7 @@ func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.testIamPermissions" call. @@ -5647,7 +5647,7 @@ func (c *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.commentThreads.getIamPolicy" call. @@ -5752,7 +5752,7 @@ func (c *ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.commentThreads.setIamPolicy" call. @@ -5879,7 +5879,7 @@ func (c *ProjectsLocationsRepositoriesCommentThreadsCommentsGetIamPolicyCall) do googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.commentThreads.comments.getIamPolicy" call. @@ -5984,7 +5984,7 @@ func (c *ProjectsLocationsRepositoriesCommentThreadsCommentsSetIamPolicyCall) do googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.commentThreads.comments.setIamPolicy" call. @@ -6086,7 +6086,7 @@ func (c *ProjectsLocationsRepositoriesCompilationResultsCreateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.compilationResults.create" call. @@ -6194,7 +6194,7 @@ func (c *ProjectsLocationsRepositoriesCompilationResultsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.compilationResults.get" call. @@ -6335,7 +6335,7 @@ func (c *ProjectsLocationsRepositoriesCompilationResultsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.compilationResults.list" call. @@ -6490,7 +6490,7 @@ func (c *ProjectsLocationsRepositoriesCompilationResultsQueryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.compilationResults.query" call. @@ -6622,7 +6622,7 @@ func (c *ProjectsLocationsRepositoriesReleaseConfigsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.releaseConfigs.create" call. @@ -6717,7 +6717,7 @@ func (c *ProjectsLocationsRepositoriesReleaseConfigsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.releaseConfigs.delete" call. @@ -6824,7 +6824,7 @@ func (c *ProjectsLocationsRepositoriesReleaseConfigsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.releaseConfigs.get" call. @@ -6949,7 +6949,7 @@ func (c *ProjectsLocationsRepositoriesReleaseConfigsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.releaseConfigs.list" call. @@ -7079,7 +7079,7 @@ func (c *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.releaseConfigs.patch" call. @@ -7189,7 +7189,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowConfigs.create" call. @@ -7284,7 +7284,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowConfigs.delete" call. @@ -7391,7 +7391,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowConfigsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowConfigs.get" call. @@ -7516,7 +7516,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowConfigsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowConfigs.list" call. @@ -7647,7 +7647,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowConfigs.patch" call. @@ -7748,7 +7748,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowInvocations.cancel" call. @@ -7850,7 +7850,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowInvocationsCreateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowInvocations.create" call. @@ -7946,7 +7946,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowInvocationsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowInvocations.delete" call. @@ -8053,7 +8053,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowInvocationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowInvocations.get" call. @@ -8193,7 +8193,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowInvocationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowInvocations.list" call. @@ -8340,7 +8340,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowInvocationsQueryCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workflowInvocations.query" call. @@ -8463,7 +8463,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesCommitCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.commit" call. @@ -8573,7 +8573,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.create" call. @@ -8668,7 +8668,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.delete" call. @@ -8782,7 +8782,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileDiffCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.fetchFileDiff" call. @@ -8890,7 +8890,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesFetchFileGitStatusesCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.fetchFileGitStatuses" call. @@ -9006,7 +9006,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesFetchGitAheadBehindCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.fetchGitAheadBehind" call. @@ -9114,7 +9114,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.get" call. @@ -9241,7 +9241,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.getIamPolicy" call. @@ -9342,7 +9342,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesInstallNpmPackagesCall) doReques googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.installNpmPackages" call. @@ -9482,7 +9482,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.list" call. @@ -9605,7 +9605,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesMakeDirectoryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.makeDirectory" call. @@ -9708,7 +9708,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesMoveDirectoryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.moveDirectory" call. @@ -9810,7 +9810,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesMoveFileCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.moveFile" call. @@ -9912,7 +9912,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesPullCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.pull" call. @@ -10013,7 +10013,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesPushCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.push" call. @@ -10145,7 +10145,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesQueryDirectoryContentsCall) doRe googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.queryDirectoryContents" call. @@ -10289,7 +10289,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesReadFileCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.readFile" call. @@ -10392,7 +10392,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesRemoveDirectoryCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.removeDirectory" call. @@ -10493,7 +10493,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesRemoveFileCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.removeFile" call. @@ -10594,7 +10594,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesResetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.reset" call. @@ -10726,7 +10726,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesSearchFilesCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.searchFiles" call. @@ -10853,7 +10853,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.setIamPolicy" call. @@ -10961,7 +10961,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesTestIamPermissionsCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.testIamPermissions" call. @@ -11063,7 +11063,7 @@ func (c *ProjectsLocationsRepositoriesWorkspacesWriteFileCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "workspace": c.workspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataform.projects.locations.repositories.workspaces.writeFile" call. diff --git a/datafusion/v1/datafusion-gen.go b/datafusion/v1/datafusion-gen.go index 89f4181ff8f..974a3788dbc 100644 --- a/datafusion/v1/datafusion-gen.go +++ b/datafusion/v1/datafusion-gen.go @@ -1916,7 +1916,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.get" call. @@ -2047,7 +2047,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.list" call. @@ -2181,7 +2181,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.create" call. @@ -2277,7 +2277,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.delete" call. @@ -2385,7 +2385,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.get" call. @@ -2512,7 +2512,7 @@ func (c *ProjectsLocationsInstancesGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.getIamPolicy" call. @@ -2649,7 +2649,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.list" call. @@ -2783,7 +2783,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.patch" call. @@ -2886,7 +2886,7 @@ func (c *ProjectsLocationsInstancesRestartCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.restart" call. @@ -2991,7 +2991,7 @@ func (c *ProjectsLocationsInstancesSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.setIamPolicy" call. @@ -3099,7 +3099,7 @@ func (c *ProjectsLocationsInstancesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.testIamPermissions" call. @@ -3208,7 +3208,7 @@ func (c *ProjectsLocationsInstancesDnsPeeringsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.dnsPeerings.create" call. @@ -3305,7 +3305,7 @@ func (c *ProjectsLocationsInstancesDnsPeeringsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.dnsPeerings.delete" call. @@ -3431,7 +3431,7 @@ func (c *ProjectsLocationsInstancesDnsPeeringsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.dnsPeerings.list" call. @@ -3562,7 +3562,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.operations.cancel" call. @@ -3660,7 +3660,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.operations.delete" call. @@ -3769,7 +3769,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.operations.get" call. @@ -3897,7 +3897,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.operations.list" call. @@ -4051,7 +4051,7 @@ func (c *ProjectsLocationsVersionsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.versions.list" call. diff --git a/datafusion/v1beta1/datafusion-gen.go b/datafusion/v1beta1/datafusion-gen.go index 35c05a8fa39..fd8062acf52 100644 --- a/datafusion/v1beta1/datafusion-gen.go +++ b/datafusion/v1beta1/datafusion-gen.go @@ -2019,7 +2019,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.get" call. @@ -2150,7 +2150,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.list" call. @@ -2274,7 +2274,7 @@ func (c *ProjectsLocationsRemoveIamPolicyCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.removeIamPolicy" call. @@ -2387,7 +2387,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.create" call. @@ -2483,7 +2483,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.delete" call. @@ -2591,7 +2591,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.get" call. @@ -2718,7 +2718,7 @@ func (c *ProjectsLocationsInstancesGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.getIamPolicy" call. @@ -2855,7 +2855,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.list" call. @@ -2990,7 +2990,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.patch" call. @@ -3093,7 +3093,7 @@ func (c *ProjectsLocationsInstancesRestartCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.restart" call. @@ -3198,7 +3198,7 @@ func (c *ProjectsLocationsInstancesSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.setIamPolicy" call. @@ -3306,7 +3306,7 @@ func (c *ProjectsLocationsInstancesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.testIamPermissions" call. @@ -3412,7 +3412,7 @@ func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.upgrade" call. @@ -3520,7 +3520,7 @@ func (c *ProjectsLocationsInstancesDnsPeeringsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.dnsPeerings.create" call. @@ -3617,7 +3617,7 @@ func (c *ProjectsLocationsInstancesDnsPeeringsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.dnsPeerings.delete" call. @@ -3743,7 +3743,7 @@ func (c *ProjectsLocationsInstancesDnsPeeringsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.dnsPeerings.list" call. @@ -3892,7 +3892,7 @@ func (c *ProjectsLocationsInstancesNamespacesGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.namespaces.getIamPolicy" call. @@ -4031,7 +4031,7 @@ func (c *ProjectsLocationsInstancesNamespacesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.namespaces.list" call. @@ -4158,7 +4158,7 @@ func (c *ProjectsLocationsInstancesNamespacesSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.namespaces.setIamPolicy" call. @@ -4266,7 +4266,7 @@ func (c *ProjectsLocationsInstancesNamespacesTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.instances.namespaces.testIamPermissions" call. @@ -4376,7 +4376,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.operations.cancel" call. @@ -4474,7 +4474,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.operations.delete" call. @@ -4583,7 +4583,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.operations.get" call. @@ -4711,7 +4711,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.operations.list" call. @@ -4865,7 +4865,7 @@ func (c *ProjectsLocationsVersionsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datafusion.projects.locations.versions.list" call. diff --git a/datalabeling/v1beta1/datalabeling-gen.go b/datalabeling/v1beta1/datalabeling-gen.go index d07b59689e1..08f0750c34d 100644 --- a/datalabeling/v1beta1/datalabeling-gen.go +++ b/datalabeling/v1beta1/datalabeling-gen.go @@ -6326,7 +6326,7 @@ func (c *ProjectsAnnotationSpecSetsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.annotationSpecSets.create" call. @@ -6423,7 +6423,7 @@ func (c *ProjectsAnnotationSpecSetsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.annotationSpecSets.delete" call. @@ -6532,7 +6532,7 @@ func (c *ProjectsAnnotationSpecSetsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.annotationSpecSets.get" call. @@ -6665,7 +6665,7 @@ func (c *ProjectsAnnotationSpecSetsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.annotationSpecSets.list" call. @@ -6788,7 +6788,7 @@ func (c *ProjectsDatasetsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.create" call. @@ -6885,7 +6885,7 @@ func (c *ProjectsDatasetsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.delete" call. @@ -6988,7 +6988,7 @@ func (c *ProjectsDatasetsExportDataCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.exportData" call. @@ -7097,7 +7097,7 @@ func (c *ProjectsDatasetsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.get" call. @@ -7204,7 +7204,7 @@ func (c *ProjectsDatasetsImportDataCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.importData" call. @@ -7335,7 +7335,7 @@ func (c *ProjectsDatasetsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.list" call. @@ -7454,7 +7454,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.delete" call. @@ -7564,7 +7564,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.get" call. @@ -7697,7 +7697,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.list" call. @@ -7828,7 +7828,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.dataItems.get" call. @@ -7961,7 +7961,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.dataItems.list" call. @@ -8100,7 +8100,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.examples.get" call. @@ -8233,7 +8233,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.examples.list" call. @@ -8352,7 +8352,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.delete" call. @@ -8462,7 +8462,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.get" call. @@ -8588,7 +8588,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.list" call. @@ -8713,7 +8713,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateC googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.create" call. @@ -8812,7 +8812,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.delete" call. @@ -8923,7 +8923,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.get" call. @@ -9049,7 +9049,7 @@ func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCal googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.list" call. @@ -9180,7 +9180,7 @@ func (c *ProjectsDatasetsDataItemsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.dataItems.get" call. @@ -9313,7 +9313,7 @@ func (c *ProjectsDatasetsDataItemsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.dataItems.list" call. @@ -9444,7 +9444,7 @@ func (c *ProjectsDatasetsEvaluationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.evaluations.get" call. @@ -9550,7 +9550,7 @@ func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.evaluations.exampleComparisons.search" call. @@ -9675,7 +9675,7 @@ func (c *ProjectsDatasetsImageLabelCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.image.label" call. @@ -9779,7 +9779,7 @@ func (c *ProjectsDatasetsTextLabelCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.text.label" call. @@ -9883,7 +9883,7 @@ func (c *ProjectsDatasetsVideoLabelCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.datasets.video.label" call. @@ -9985,7 +9985,7 @@ func (c *ProjectsEvaluationJobsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.evaluationJobs.create" call. @@ -10082,7 +10082,7 @@ func (c *ProjectsEvaluationJobsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.evaluationJobs.delete" call. @@ -10191,7 +10191,7 @@ func (c *ProjectsEvaluationJobsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.evaluationJobs.get" call. @@ -10328,7 +10328,7 @@ func (c *ProjectsEvaluationJobsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.evaluationJobs.list" call. @@ -10468,7 +10468,7 @@ func (c *ProjectsEvaluationJobsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.evaluationJobs.patch" call. @@ -10572,7 +10572,7 @@ func (c *ProjectsEvaluationJobsPauseCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.evaluationJobs.pause" call. @@ -10676,7 +10676,7 @@ func (c *ProjectsEvaluationJobsResumeCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.evaluationJobs.resume" call. @@ -10823,7 +10823,7 @@ func (c *ProjectsEvaluationsSearchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.evaluations.search" call. @@ -10946,7 +10946,7 @@ func (c *ProjectsInstructionsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.instructions.create" call. @@ -11043,7 +11043,7 @@ func (c *ProjectsInstructionsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.instructions.delete" call. @@ -11152,7 +11152,7 @@ func (c *ProjectsInstructionsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.instructions.get" call. @@ -11283,7 +11283,7 @@ func (c *ProjectsInstructionsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.instructions.list" call. @@ -11422,7 +11422,7 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.operations.cancel" call. @@ -11521,7 +11521,7 @@ func (c *ProjectsOperationsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.operations.delete" call. @@ -11631,7 +11631,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.operations.get" call. @@ -11760,7 +11760,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalabeling.projects.operations.list" call. diff --git a/datalineage/v1/datalineage-gen.go b/datalineage/v1/datalineage-gen.go index b9f1b0cc45a..cc11919f300 100644 --- a/datalineage/v1/datalineage-gen.go +++ b/datalineage/v1/datalineage-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/data-catalog // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // datalineageService, err := datalineage.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // datalineageService, err := datalineage.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // datalineageService, err := datalineage.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package datalineage // import "google.golang.org/api/datalineage/v1" import ( @@ -77,12 +90,13 @@ const apiId = "datalineage:v1" const apiName = "datalineage" const apiVersion = "v1" const basePath = "https://datalineage.googleapis.com/" +const basePathTemplate = "https://datalineage.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://datalineage.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -94,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -207,396 +223,304 @@ type ProjectsLocationsProcessesRunsLineageEventsService struct { s *Service } -// GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest: -// Request message for BatchSearchLinkProcesses. +// GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest: Request +// message for BatchSearchLinkProcesses. type GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest struct { // Links: Required. An array of links to check for their associated - // LineageProcesses. The maximum number of items in this array is 100. - // If the request contains more than 100 links, it returns the - // `INVALID_ARGUMENT` error. Format: - // `projects/{project}/locations/{location}/links/{link}`. + // LineageProcesses. The maximum number of items in this array is 100. If the + // request contains more than 100 links, it returns the `INVALID_ARGUMENT` + // error. Format: `projects/{project}/locations/{location}/links/{link}`. Links []string `json:"links,omitempty"` - - // PageSize: The maximum number of processes to return in a single page - // of the response. A page may contain fewer results than this value. + // PageSize: The maximum number of processes to return in a single page of the + // response. A page may contain fewer results than this value. PageSize int64 `json:"pageSize,omitempty"` - // PageToken: The page token received from a previous // `BatchSearchLinkProcesses` call. Use it to get the next page. When - // requesting subsequent pages of a response, remember that all - // parameters must match the values you provided in the original - // request. + // requesting subsequent pages of a response, remember that all parameters must + // match the values you provided in the original request. PageToken string `json:"pageToken,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Links") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Links") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Links") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse: -// Response message for BatchSearchLinkProcesses. +// GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse: Response +// message for BatchSearchLinkProcesses. type GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse struct { - // NextPageToken: The token to specify as `page_token` in the subsequent - // call to get the next page. Omitted if there are no more pages in the - // response. + // NextPageToken: The token to specify as `page_token` in the subsequent call + // to get the next page. Omitted if there are no more pages in the response. NextPageToken string `json:"nextPageToken,omitempty"` - - // ProcessLinks: An array of processes associated with the specified - // links. + // ProcessLinks: An array of processes associated with the specified links. ProcessLinks []*GoogleCloudDatacatalogLineageV1ProcessLinks `json:"processLinks,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDatacatalogLineageV1EntityReference: The soft reference to // everything you can attach a lineage event to. type GoogleCloudDatacatalogLineageV1EntityReference struct { // FullyQualifiedName: Required. Fully Qualified Name (FQN) - // (https://cloud.google.com/data-catalog/docs/fully-qualified-names) of - // the entity. + // (https://cloud.google.com/data-catalog/docs/fully-qualified-names) of the + // entity. FullyQualifiedName string `json:"fullyQualifiedName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FullyQualifiedName") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FullyQualifiedName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FullyQualifiedName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FullyQualifiedName") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1EntityReference) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1EntityReference) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1EntityReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1EventLink: A lineage between source -// and target entities. +// GoogleCloudDatacatalogLineageV1EventLink: A lineage between source and +// target entities. type GoogleCloudDatacatalogLineageV1EventLink struct { // Source: Required. Reference to the source entity Source *GoogleCloudDatacatalogLineageV1EntityReference `json:"source,omitempty"` - // Target: Required. Reference to the target entity Target *GoogleCloudDatacatalogLineageV1EntityReference `json:"target,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Source") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Source") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Source") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1EventLink) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1EventLink) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1EventLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1LineageEvent: A lineage event -// represents an operation on assets. Within the operation, the data -// flows from the source to the target defined in the links field. +// GoogleCloudDatacatalogLineageV1LineageEvent: A lineage event represents an +// operation on assets. Within the operation, the data flows from the source to +// the target defined in the links field. type GoogleCloudDatacatalogLineageV1LineageEvent struct { - // EndTime: Optional. The end of the transformation which resulted in - // this lineage event. For streaming scenarios, it should be the end of - // the period from which the lineage is being reported. + // EndTime: Optional. The end of the transformation which resulted in this + // lineage event. For streaming scenarios, it should be the end of the period + // from which the lineage is being reported. EndTime string `json:"endTime,omitempty"` - - // Links: Optional. List of source-target pairs. Can't contain more than - // 100 tuples. + // Links: Optional. List of source-target pairs. Can't contain more than 100 + // tuples. Links []*GoogleCloudDatacatalogLineageV1EventLink `json:"links,omitempty"` - // Name: Immutable. The resource name of the lineage event. Format: - // `projects/{project}/locations/{location}/processes/{process}/runs/{run - // }/lineageEvents/{lineage_event}`. Can be specified or auto-assigned. - // {lineage_event} must be not longer than 200 characters and only - // contain characters in a set: `a-zA-Z0-9_-:.` + // `projects/{project}/locations/{location}/processes/{process}/runs/{run}/linea + // geEvents/{lineage_event}`. Can be specified or auto-assigned. + // {lineage_event} must be not longer than 200 characters and only contain + // characters in a set: `a-zA-Z0-9_-:.` Name string `json:"name,omitempty"` - - // StartTime: Required. The beginning of the transformation which - // resulted in this lineage event. For streaming scenarios, it should be - // the beginning of the period from which the lineage is being reported. + // StartTime: Required. The beginning of the transformation which resulted in + // this lineage event. For streaming scenarios, it should be the beginning of + // the period from which the lineage is being reported. StartTime string `json:"startTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1LineageEvent) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1LineageEvent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1LineageEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1Link: Links represent the data flow -// between **source** (upstream) and **target** (downstream) assets in -// transformation pipelines. Links are created when LineageEvents record -// data transformation between related assets. +// GoogleCloudDatacatalogLineageV1Link: Links represent the data flow between +// **source** (upstream) and **target** (downstream) assets in transformation +// pipelines. Links are created when LineageEvents record data transformation +// between related assets. type GoogleCloudDatacatalogLineageV1Link struct { // EndTime: The end of the last event establishing this link. EndTime string `json:"endTime,omitempty"` - // Name: Output only. Immutable. The name of the link. Format: // `projects/{project}/locations/{location}/links/{link}`. Name string `json:"name,omitempty"` - - // Source: The pointer to the entity that is the **source** of this - // link. + // Source: The pointer to the entity that is the **source** of this link. Source *GoogleCloudDatacatalogLineageV1EntityReference `json:"source,omitempty"` - // StartTime: The start of the first event establishing this link. StartTime string `json:"startTime,omitempty"` - - // Target: The pointer to the entity that is the **target** of this - // link. + // Target: The pointer to the entity that is the **target** of this link. Target *GoogleCloudDatacatalogLineageV1EntityReference `json:"target,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1Link) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1Link) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1Link - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1ListLineageEventsResponse: Response -// message for ListLineageEvents. +// GoogleCloudDatacatalogLineageV1ListLineageEventsResponse: Response message +// for ListLineageEvents. type GoogleCloudDatacatalogLineageV1ListLineageEventsResponse struct { - // LineageEvents: Lineage events from the specified project and - // location. + // LineageEvents: Lineage events from the specified project and location. LineageEvents []*GoogleCloudDatacatalogLineageV1LineageEvent `json:"lineageEvents,omitempty"` - - // NextPageToken: The token to specify as `page_token` in the next call - // to get the next page. If this field is omitted, there are no - // subsequent pages. + // NextPageToken: The token to specify as `page_token` in the next call to get + // the next page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "LineageEvents") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineageEvents") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineageEvents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1ListLineageEventsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1ListLineageEventsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1ListLineageEventsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1ListProcessesResponse: Response -// message for ListProcesses. +// GoogleCloudDatacatalogLineageV1ListProcessesResponse: Response message for +// ListProcesses. type GoogleCloudDatacatalogLineageV1ListProcessesResponse struct { - // NextPageToken: The token to specify as `page_token` in the next call - // to get the next page. If this field is omitted, there are no - // subsequent pages. + // NextPageToken: The token to specify as `page_token` in the next call to get + // the next page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` - // Processes: The processes from the specified project and location. Processes []*GoogleCloudDatacatalogLineageV1Process `json:"processes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1ListProcessesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1ListProcessesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1ListProcessesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDatacatalogLineageV1ListRunsResponse: Response message for // ListRuns. type GoogleCloudDatacatalogLineageV1ListRunsResponse struct { - // NextPageToken: The token to specify as `page_token` in the next call - // to get the next page. If this field is omitted, there are no - // subsequent pages. + // NextPageToken: The token to specify as `page_token` in the next call to get + // the next page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` - // Runs: The runs from the specified project and location. Runs []*GoogleCloudDatacatalogLineageV1Run `json:"runs,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1ListRunsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1ListRunsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1ListRunsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1OperationMetadata: Metadata describing -// the operation. +// GoogleCloudDatacatalogLineageV1OperationMetadata: Metadata describing the +// operation. type GoogleCloudDatacatalogLineageV1OperationMetadata struct { - // CreateTime: Output only. The timestamp of the operation submission to - // the server. + // CreateTime: Output only. The timestamp of the operation submission to the + // server. CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The timestamp of the operation termination, - // regardless of its success. This field is unset if the operation is - // still ongoing. + // EndTime: Output only. The timestamp of the operation termination, regardless + // of its success. This field is unset if the operation is still ongoing. EndTime string `json:"endTime,omitempty"` - - // OperationType: Output only. The type of the operation being - // performed. + // OperationType: Output only. The type of the operation being performed. // // Possible values: // "TYPE_UNSPECIFIED" - Unused. // "DELETE" - The resource deletion operation. // "CREATE" - The resource creation operation. OperationType string `json:"operationType,omitempty"` - // Resource: Output only. The [relative name] // (https://cloud.google.com//apis/design/resource_names#relative_resource_name) // of the resource being operated on. Resource string `json:"resource,omitempty"` - - // ResourceUuid: Output only. The UUID of the resource being operated - // on. + // ResourceUuid: Output only. The UUID of the resource being operated on. ResourceUuid string `json:"resourceUuid,omitempty"` - // State: Output only. The current operation state. // // Possible values: @@ -606,45 +530,37 @@ type GoogleCloudDatacatalogLineageV1OperationMetadata struct { // "SUCCEEDED" - The operation completed successfully. // "FAILED" - The operation is no longer running and did not succeed. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1OperationMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDatacatalogLineageV1Origin: Origin of a process. type GoogleCloudDatacatalogLineageV1Origin struct { - // Name: If the source_type isn't CUSTOM, the value of this field should - // be a GCP resource name of the system, which reports lineage. The - // project and location parts of the resource name must match the - // project and location of the lineage resource being created. Examples: - // - `{source_type: COMPOSER, name: - // "projects/foo/locations/us/environments/bar"}` - `{source_type: - // BIGQUERY, name: "projects/foo/locations/eu"}` - `{source_type: - // CUSTOM, name: "myCustomIntegration"}` + // Name: If the source_type isn't CUSTOM, the value of this field should be a + // GCP resource name of the system, which reports lineage. The project and + // location parts of the resource name must match the project and location of + // the lineage resource being created. Examples: - `{source_type: COMPOSER, + // name: "projects/foo/locations/us/environments/bar"}` - `{source_type: + // BIGQUERY, name: "projects/foo/locations/eu"}` - `{source_type: CUSTOM, name: + // "myCustomIntegration"}` Name string `json:"name,omitempty"` - - // SourceType: Type of the source. Use of a source_type other than - // `CUSTOM` for process creation or updating is highly discouraged, and - // may be restricted in the future without notice. + // SourceType: Type of the source. Use of a source_type other than `CUSTOM` for + // process creation or updating is highly discouraged, and may be restricted in + // the future without notice. // // Possible values: // "SOURCE_TYPE_UNSPECIFIED" - Source is Unspecified @@ -655,303 +571,237 @@ type GoogleCloudDatacatalogLineageV1Origin struct { // "LOOKER_STUDIO" - Looker Studio // "DATAPROC" - Dataproc SourceType string `json:"sourceType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1Origin) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1Origin) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1Origin - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1Process: A process is the definition -// of a data transformation operation. +// GoogleCloudDatacatalogLineageV1Process: A process is the definition of a +// data transformation operation. type GoogleCloudDatacatalogLineageV1Process struct { - // Attributes: Optional. The attributes of the process. Should only be - // used for the purpose of non-semantic management (classifying, - // describing or labeling the process). Up to 100 attributes are - // allowed. + // Attributes: Optional. The attributes of the process. Should only be used for + // the purpose of non-semantic management (classifying, describing or labeling + // the process). Up to 100 attributes are allowed. Attributes googleapi.RawMessage `json:"attributes,omitempty"` - - // DisplayName: Optional. A human-readable name you can set to display - // in a user interface. Must be not longer than 200 characters and only - // contain UTF-8 letters or numbers, spaces or characters like `_-:&.` + // DisplayName: Optional. A human-readable name you can set to display in a + // user interface. Must be not longer than 200 characters and only contain + // UTF-8 letters or numbers, spaces or characters like `_-:&.` DisplayName string `json:"displayName,omitempty"` - // Name: Immutable. The resource name of the lineage process. Format: // `projects/{project}/locations/{location}/processes/{process}`. Can be - // specified or auto-assigned. {process} must be not longer than 200 - // characters and only contain characters in a set: `a-zA-Z0-9_-:.` + // specified or auto-assigned. {process} must be not longer than 200 characters + // and only contain characters in a set: `a-zA-Z0-9_-:.` Name string `json:"name,omitempty"` - // Origin: Optional. The origin of this process and its runs and lineage // events. Origin *GoogleCloudDatacatalogLineageV1Origin `json:"origin,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Attributes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attributes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attributes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1Process) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1Process) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1Process - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDatacatalogLineageV1ProcessLinkInfo: Link details. type GoogleCloudDatacatalogLineageV1ProcessLinkInfo struct { - // EndTime: The end of the last event establishing this link-process - // tuple. + // EndTime: The end of the last event establishing this link-process tuple. EndTime string `json:"endTime,omitempty"` - // Link: The name of the link in the format of // `projects/{project}/locations/{location}/links/{link}`. Link string `json:"link,omitempty"` - - // StartTime: The start of the first event establishing this - // link-process tuple. + // StartTime: The start of the first event establishing this link-process + // tuple. StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1ProcessLinkInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1ProcessLinkInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1ProcessLinkInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDatacatalogLineageV1ProcessLinks: Links associated with a // specific process. type GoogleCloudDatacatalogLineageV1ProcessLinks struct { - // Links: An array containing link details objects of the links provided - // in the original request. A single process can result in creating - // multiple links. If any of the links you provide in the request are - // created by the same process, they all are included in this array. + // Links: An array containing link details objects of the links provided in the + // original request. A single process can result in creating multiple links. If + // any of the links you provide in the request are created by the same process, + // they all are included in this array. Links []*GoogleCloudDatacatalogLineageV1ProcessLinkInfo `json:"links,omitempty"` - // Process: The process name in the format of // `projects/{project}/locations/{location}/processes/{process}`. Process string `json:"process,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Links") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Links") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Links") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1ProcessLinks) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1ProcessLinks) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1ProcessLinks - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1Run: A lineage run represents an -// execution of a process that creates lineage events. +// GoogleCloudDatacatalogLineageV1Run: A lineage run represents an execution of +// a process that creates lineage events. type GoogleCloudDatacatalogLineageV1Run struct { - // Attributes: Optional. The attributes of the run. Should only be used - // for the purpose of non-semantic management (classifying, describing - // or labeling the run). Up to 100 attributes are allowed. + // Attributes: Optional. The attributes of the run. Should only be used for the + // purpose of non-semantic management (classifying, describing or labeling the + // run). Up to 100 attributes are allowed. Attributes googleapi.RawMessage `json:"attributes,omitempty"` - - // DisplayName: Optional. A human-readable name you can set to display - // in a user interface. Must be not longer than 1024 characters and only - // contain UTF-8 letters or numbers, spaces or characters like `_-:&.` + // DisplayName: Optional. A human-readable name you can set to display in a + // user interface. Must be not longer than 1024 characters and only contain + // UTF-8 letters or numbers, spaces or characters like `_-:&.` DisplayName string `json:"displayName,omitempty"` - // EndTime: Optional. The timestamp of the end of the run. EndTime string `json:"endTime,omitempty"` - // Name: Immutable. The resource name of the run. Format: - // `projects/{project}/locations/{location}/processes/{process}/runs/{run - // }`. Can be specified or auto-assigned. {run} must be not longer than - // 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.` + // `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. + // Can be specified or auto-assigned. {run} must be not longer than 200 + // characters and only contain characters in a set: `a-zA-Z0-9_-:.` Name string `json:"name,omitempty"` - // StartTime: Required. The timestamp of the start of the run. StartTime string `json:"startTime,omitempty"` - // State: Required. The state of the run. // // Possible values: - // "UNKNOWN" - The state is unknown. The true state may be any of the - // below or a different state that is not supported here explicitly. + // "UNKNOWN" - The state is unknown. The true state may be any of the below + // or a different state that is not supported here explicitly. // "STARTED" - The run is still executing. // "COMPLETED" - The run completed. // "FAILED" - The run failed. // "ABORTED" - The run aborted. State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Attributes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attributes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attributes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1Run) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1Run) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1Run - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1SearchLinksRequest: Request message -// for SearchLinks. +// GoogleCloudDatacatalogLineageV1SearchLinksRequest: Request message for +// SearchLinks. type GoogleCloudDatacatalogLineageV1SearchLinksRequest struct { - // PageSize: Optional. The maximum number of links to return in a single - // page of the response. A page may contain fewer links than this value. - // If unspecified, at most 10 links are returned. Maximum value is 100; - // values greater than 100 are reduced to 100. + // PageSize: Optional. The maximum number of links to return in a single page + // of the response. A page may contain fewer links than this value. If + // unspecified, at most 10 links are returned. Maximum value is 100; values + // greater than 100 are reduced to 100. PageSize int64 `json:"pageSize,omitempty"` - // PageToken: Optional. The page token received from a previous - // `SearchLinksRequest` call. Use it to get the next page. When - // requesting subsequent pages of a response, remember that all - // parameters must match the values you provided in the original - // request. + // `SearchLinksRequest` call. Use it to get the next page. When requesting + // subsequent pages of a response, remember that all parameters must match the + // values you provided in the original request. PageToken string `json:"pageToken,omitempty"` - - // Source: Optional. Send asset information in the **source** field to - // retrieve all links that lead from the specified asset to downstream - // assets. + // Source: Optional. Send asset information in the **source** field to retrieve + // all links that lead from the specified asset to downstream assets. Source *GoogleCloudDatacatalogLineageV1EntityReference `json:"source,omitempty"` - - // Target: Optional. Send asset information in the **target** field to - // retrieve all links that lead from upstream assets to the specified - // asset. + // Target: Optional. Send asset information in the **target** field to retrieve + // all links that lead from upstream assets to the specified asset. Target *GoogleCloudDatacatalogLineageV1EntityReference `json:"target,omitempty"` - // ForceSendFields is a list of field names (e.g. "PageSize") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PageSize") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PageSize") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1SearchLinksRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1SearchLinksRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1SearchLinksRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogLineageV1SearchLinksResponse: Response message -// for SearchLinks. +// GoogleCloudDatacatalogLineageV1SearchLinksResponse: Response message for +// SearchLinks. type GoogleCloudDatacatalogLineageV1SearchLinksResponse struct { - // Links: The list of links for a given asset. Can be empty if the asset - // has no relations of requested type (source or target). + // Links: The list of links for a given asset. Can be empty if the asset has no + // relations of requested type (source or target). Links []*GoogleCloudDatacatalogLineageV1Link `json:"links,omitempty"` - - // NextPageToken: The token to specify as `page_token` in the subsequent - // call to get the next page. Omitted if there are no more pages in the - // response. + // NextPageToken: The token to specify as `page_token` in the subsequent call + // to get the next page. Omitted if there are no more pages in the response. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Links") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Links") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Links") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogLineageV1SearchLinksResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDatacatalogLineageV1SearchLinksResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDatacatalogLineageV1SearchLinksResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningCancelOperationRequest: The request message for @@ -964,157 +814,121 @@ type GoogleLongrunningCancelOperationRequest struct { type GoogleLongrunningListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningOperation: This resource represents a long-running // operation that is the result of a network API call. type GoogleLongrunningOperation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleProtobufEmpty: A generic empty message that you can re-use to -// avoid defining duplicated empty messages in your APIs. A typical -// example is to use it as the request or the response type of an API -// method. For instance: service Foo { rpc Bar(google.protobuf.Empty) -// returns (google.protobuf.Empty); } +// GoogleProtobufEmpty: A generic empty message that you can re-use to avoid +// defining duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For instance: +// service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } type GoogleProtobufEmpty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// GoogleRpcStatus: The `Status` type defines a logical error model that -// is suitable for different programming environments, including REST -// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// GoogleRpcStatus: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs and RPC +// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message +// contains three pieces of data: error code, error message, and error details. +// You can find out more about this error model and how to work with it in the +// API Design Guide (https://cloud.google.com/apis/design/errors). type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { +func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleRpcStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "datalineage.projects.locations.batchSearchLinkProcesses": - type ProjectsLocationsBatchSearchLinkProcessesCall struct { s *Service parent string @@ -1126,14 +940,13 @@ type ProjectsLocationsBatchSearchLinkProcessesCall struct { // BatchSearchLinkProcesses: Retrieve information about LineageProcesses // associated with specific links. LineageProcesses are transformation -// pipelines that result in data flowing from **source** to **target** -// assets. Links between assets represent this operation. If you have -// specific link names, you can use this method to verify which -// LineageProcesses contribute to creating those links. See the -// SearchLinks method for more information on how to retrieve link name. -// You can retrieve the LineageProcess information in every project -// where you have the `datalineage.events.get` permission. The project -// provided in the URL is used for Billing and Quota. +// pipelines that result in data flowing from **source** to **target** assets. +// Links between assets represent this operation. If you have specific link +// names, you can use this method to verify which LineageProcesses contribute +// to creating those links. See the SearchLinks method for more information on +// how to retrieve link name. You can retrieve the LineageProcess information +// in every project where you have the `datalineage.events.get` permission. The +// project provided in the URL is used for Billing and Quota. // // - parent: The project and location where you want to search. func (r *ProjectsLocationsService) BatchSearchLinkProcesses(parent string, googleclouddatacataloglineagev1batchsearchlinkprocessesrequest *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest) *ProjectsLocationsBatchSearchLinkProcessesCall { @@ -1144,23 +957,21 @@ func (r *ProjectsLocationsService) BatchSearchLinkProcesses(parent string, googl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchSearchLinkProcessesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Context(ctx context.Context) *ProjectsLocationsBatchSearchLinkProcessesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1169,18 +980,12 @@ func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Header() http.Header { } func (c *ProjectsLocationsBatchSearchLinkProcessesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1batchsearchlinkprocessesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:batchSearchLinkProcesses") @@ -1193,19 +998,15 @@ func (c *ProjectsLocationsBatchSearchLinkProcessesCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.batchSearchLinkProcesses" call. -// Exactly one of -// *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1236,35 +1037,6 @@ func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Retrieve information about LineageProcesses associated with specific links. LineageProcesses are transformation pipelines that result in data flowing from **source** to **target** assets. Links between assets represent this operation. If you have specific link names, you can use this method to verify which LineageProcesses contribute to creating those links. See the SearchLinks method for more information on how to retrieve link name. You can retrieve the LineageProcess information in every project where you have the `datalineage.events.get` permission. The project provided in the URL is used for Billing and Quota.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:batchSearchLinkProcesses", - // "httpMethod": "POST", - // "id": "datalineage.projects.locations.batchSearchLinkProcesses", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The project and location where you want to search.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:batchSearchLinkProcesses", - // "request": { - // "$ref": "GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest" - // }, - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1272,7 +1044,7 @@ func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Do(opts ...googleapi.Cal // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.googleclouddatacataloglineagev1batchsearchlinkprocessesrequest.PageToken = pt }(c.googleclouddatacataloglineagev1batchsearchlinkprocessesrequest.PageToken) // reset paging to original point + defer func(pt string) { c.googleclouddatacataloglineagev1batchsearchlinkprocessesrequest.PageToken = pt }(c.googleclouddatacataloglineagev1batchsearchlinkprocessesrequest.PageToken) for { x, err := c.Do() if err != nil { @@ -1288,8 +1060,6 @@ func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Pages(ctx context.Contex } } -// method id "datalineage.projects.locations.searchLinks": - type ProjectsLocationsSearchLinksCall struct { s *Service parent string @@ -1299,13 +1069,12 @@ type ProjectsLocationsSearchLinksCall struct { header_ http.Header } -// SearchLinks: Retrieve a list of links connected to a specific asset. -// Links represent the data flow between **source** (upstream) and -// **target** (downstream) assets in transformation pipelines. Links are -// stored in the same project as the Lineage Events that create them. -// You can retrieve links in every project where you have the -// `datalineage.events.get` permission. The project provided in the URL -// is used for Billing and Quota. +// SearchLinks: Retrieve a list of links connected to a specific asset. Links +// represent the data flow between **source** (upstream) and **target** +// (downstream) assets in transformation pipelines. Links are stored in the +// same project as the Lineage Events that create them. You can retrieve links +// in every project where you have the `datalineage.events.get` permission. The +// project provided in the URL is used for Billing and Quota. // // - parent: The project and location you want search in. func (r *ProjectsLocationsService) SearchLinks(parent string, googleclouddatacataloglineagev1searchlinksrequest *GoogleCloudDatacatalogLineageV1SearchLinksRequest) *ProjectsLocationsSearchLinksCall { @@ -1316,23 +1085,21 @@ func (r *ProjectsLocationsService) SearchLinks(parent string, googleclouddatacat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSearchLinksCall) Fields(s ...googleapi.Field) *ProjectsLocationsSearchLinksCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSearchLinksCall) Context(ctx context.Context) *ProjectsLocationsSearchLinksCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSearchLinksCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1341,18 +1108,12 @@ func (c *ProjectsLocationsSearchLinksCall) Header() http.Header { } func (c *ProjectsLocationsSearchLinksCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1searchlinksrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:searchLinks") @@ -1365,18 +1126,15 @@ func (c *ProjectsLocationsSearchLinksCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.searchLinks" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1SearchLinksResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudDatacatalogLineageV1SearchLinksResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1SearchLinksResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSearchLinksCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1SearchLinksResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1407,35 +1165,6 @@ func (c *ProjectsLocationsSearchLinksCall) Do(opts ...googleapi.CallOption) (*Go return nil, err } return ret, nil - // { - // "description": "Retrieve a list of links connected to a specific asset. Links represent the data flow between **source** (upstream) and **target** (downstream) assets in transformation pipelines. Links are stored in the same project as the Lineage Events that create them. You can retrieve links in every project where you have the `datalineage.events.get` permission. The project provided in the URL is used for Billing and Quota.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:searchLinks", - // "httpMethod": "POST", - // "id": "datalineage.projects.locations.searchLinks", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The project and location you want search in.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:searchLinks", - // "request": { - // "$ref": "GoogleCloudDatacatalogLineageV1SearchLinksRequest" - // }, - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1SearchLinksResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1443,7 +1172,7 @@ func (c *ProjectsLocationsSearchLinksCall) Do(opts ...googleapi.CallOption) (*Go // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsSearchLinksCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogLineageV1SearchLinksResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.googleclouddatacataloglineagev1searchlinksrequest.PageToken = pt }(c.googleclouddatacataloglineagev1searchlinksrequest.PageToken) // reset paging to original point + defer func(pt string) { c.googleclouddatacataloglineagev1searchlinksrequest.PageToken = pt }(c.googleclouddatacataloglineagev1searchlinksrequest.PageToken) for { x, err := c.Do() if err != nil { @@ -1459,8 +1188,6 @@ func (c *ProjectsLocationsSearchLinksCall) Pages(ctx context.Context, f func(*Go } } -// method id "datalineage.projects.locations.operations.cancel": - type ProjectsLocationsOperationsCancelCall struct { s *Service name string @@ -1470,15 +1197,14 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. @@ -1490,23 +1216,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string, googlelongrunni } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1515,18 +1239,12 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") @@ -1539,16 +1257,15 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1579,38 +1296,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "datalineage.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:cancel", - // "request": { - // "$ref": "GoogleLongrunningCancelOperationRequest" - // }, - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.operations.delete": +} type ProjectsLocationsOperationsDeleteCall struct { s *Service @@ -1620,10 +1306,10 @@ type ProjectsLocationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { @@ -1633,23 +1319,21 @@ func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1658,12 +1342,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1677,16 +1356,15 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.operations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1717,35 +1395,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "datalineage.projects.locations.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.operations.get": +} type ProjectsLocationsOperationsGetCall struct { s *Service @@ -1756,9 +1406,9 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { @@ -1768,33 +1418,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1803,12 +1449,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1825,16 +1466,15 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1865,35 +1505,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "datalineage.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.operations.list": +} type ProjectsLocationsOperationsListCall struct { s *Service @@ -1904,9 +1516,8 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -1915,55 +1526,50 @@ func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocation return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1972,12 +1578,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1994,17 +1595,15 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2035,48 +1634,6 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "datalineage.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}/operations", - // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2084,7 +1641,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2100,8 +1657,6 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( } } -// method id "datalineage.projects.locations.processes.create": - type ProjectsLocationsProcessesCreateCall struct { s *Service parent string @@ -2113,8 +1668,8 @@ type ProjectsLocationsProcessesCreateCall struct { // Create: Creates a new process. // -// - parent: The name of the project and its location that should own -// the process. +// - parent: The name of the project and its location that should own the +// process. func (r *ProjectsLocationsProcessesService) Create(parent string, googleclouddatacataloglineagev1process *GoogleCloudDatacatalogLineageV1Process) *ProjectsLocationsProcessesCreateCall { c := &ProjectsLocationsProcessesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2122,33 +1677,30 @@ func (r *ProjectsLocationsProcessesService) Create(parent string, googleclouddat return c } -// RequestId sets the optional parameter "requestId": A unique -// identifier for this request. Restricted to 36 ASCII characters. A -// random UUID is recommended. This request is idempotent only if a -// `request_id` is provided. +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Restricted to 36 ASCII characters. A random UUID is +// recommended. This request is idempotent only if a `request_id` is provided. func (c *ProjectsLocationsProcessesCreateCall) RequestId(requestId string) *ProjectsLocationsProcessesCreateCall { c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesCreateCall) Context(ctx context.Context) *ProjectsLocationsProcessesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2157,18 +1709,12 @@ func (c *ProjectsLocationsProcessesCreateCall) Header() http.Header { } func (c *ProjectsLocationsProcessesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1process) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/processes") @@ -2181,17 +1727,15 @@ func (c *ProjectsLocationsProcessesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.create" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1Process or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudDatacatalogLineageV1Process.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1Process.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Process, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2222,43 +1766,7 @@ func (c *ProjectsLocationsProcessesCreateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates a new process.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes", - // "httpMethod": "POST", - // "id": "datalineage.projects.locations.processes.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The name of the project and its location that should own the process.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/processes", - // "request": { - // "$ref": "GoogleCloudDatacatalogLineageV1Process" - // }, - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1Process" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.delete": +} type ProjectsLocationsProcessesDeleteCall struct { s *Service @@ -2277,32 +1785,30 @@ func (r *ProjectsLocationsProcessesService) Delete(name string) *ProjectsLocatio return c } -// AllowMissing sets the optional parameter "allowMissing": If set to -// true and the process is not found, the request succeeds but the -// server doesn't perform any actions. +// AllowMissing sets the optional parameter "allowMissing": If set to true and +// the process is not found, the request succeeds but the server doesn't +// perform any actions. func (c *ProjectsLocationsProcessesDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsProcessesDeleteCall { c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2311,12 +1817,7 @@ func (c *ProjectsLocationsProcessesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsProcessesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2330,16 +1831,15 @@ func (c *ProjectsLocationsProcessesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.delete" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2370,40 +1870,7 @@ func (c *ProjectsLocationsProcessesDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Deletes the process with the specified name.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}", - // "httpMethod": "DELETE", - // "id": "datalineage.projects.locations.processes.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "allowMissing": { - // "description": "If set to true and the process is not found, the request succeeds but the server doesn't perform any actions.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Required. The name of the process to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.get": +} type ProjectsLocationsProcessesGetCall struct { s *Service @@ -2424,33 +1891,29 @@ func (r *ProjectsLocationsProcessesService) Get(name string) *ProjectsLocationsP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProcessesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesGetCall) Context(ctx context.Context) *ProjectsLocationsProcessesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2459,12 +1922,7 @@ func (c *ProjectsLocationsProcessesGetCall) Header() http.Header { } func (c *ProjectsLocationsProcessesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2481,17 +1939,15 @@ func (c *ProjectsLocationsProcessesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.get" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1Process or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudDatacatalogLineageV1Process.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1Process.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Process, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2522,35 +1978,7 @@ func (c *ProjectsLocationsProcessesGetCall) Do(opts ...googleapi.CallOption) (*G return nil, err } return ret, nil - // { - // "description": "Gets the details of the specified process.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}", - // "httpMethod": "GET", - // "id": "datalineage.projects.locations.processes.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the process to get.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1Process" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.list": +} type ProjectsLocationsProcessesListCall struct { s *Service @@ -2564,61 +1992,56 @@ type ProjectsLocationsProcessesListCall struct { // List: List processes in the given project and location. List order is // descending by insertion time. // -// - parent: The name of the project and its location that owns this -// collection of processes. +// - parent: The name of the project and its location that owns this collection +// of processes. func (r *ProjectsLocationsProcessesService) List(parent string) *ProjectsLocationsProcessesListCall { c := &ProjectsLocationsProcessesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of processes to return. The service may return fewer than this value. -// If unspecified, at most 50 processes are returned. The maximum value -// is 100; values greater than 100 are cut to 100. +// PageSize sets the optional parameter "pageSize": The maximum number of +// processes to return. The service may return fewer than this value. If +// unspecified, at most 50 processes are returned. The maximum value is 100; +// values greater than 100 are cut to 100. func (c *ProjectsLocationsProcessesListCall) PageSize(pageSize int64) *ProjectsLocationsProcessesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token -// received from a previous `ListProcesses` call. Specify it to get the -// next page. When paginating, all other parameters specified in this -// call must match the parameters of the call that provided the page -// token. +// PageToken sets the optional parameter "pageToken": The page token received +// from a previous `ListProcesses` call. Specify it to get the next page. When +// paginating, all other parameters specified in this call must match the +// parameters of the call that provided the page token. func (c *ProjectsLocationsProcessesListCall) PageToken(pageToken string) *ProjectsLocationsProcessesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProcessesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesListCall) Context(ctx context.Context) *ProjectsLocationsProcessesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2627,12 +2050,7 @@ func (c *ProjectsLocationsProcessesListCall) Header() http.Header { } func (c *ProjectsLocationsProcessesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2649,18 +2067,15 @@ func (c *ProjectsLocationsProcessesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.list" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1ListProcessesResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudDatacatalogLineageV1ListProcessesResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1ListProcessesResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1ListProcessesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2691,43 +2106,6 @@ func (c *ProjectsLocationsProcessesListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "List processes in the given project and location. List order is descending by insertion time.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes", - // "httpMethod": "GET", - // "id": "datalineage.projects.locations.processes.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of processes to return. The service may return fewer than this value. If unspecified, at most 50 processes are returned. The maximum value is 100; values greater than 100 are cut to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The page token received from a previous `ListProcesses` call. Specify it to get the next page. When paginating, all other parameters specified in this call must match the parameters of the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The name of the project and its location that owns this collection of processes.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/processes", - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1ListProcessesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2735,7 +2113,7 @@ func (c *ProjectsLocationsProcessesListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProcessesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogLineageV1ListProcessesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2751,8 +2129,6 @@ func (c *ProjectsLocationsProcessesListCall) Pages(ctx context.Context, f func(* } } -// method id "datalineage.projects.locations.processes.patch": - type ProjectsLocationsProcessesPatchCall struct { s *Service name string @@ -2765,10 +2141,9 @@ type ProjectsLocationsProcessesPatchCall struct { // Patch: Updates a process. // // - name: Immutable. The resource name of the lineage process. Format: -// `projects/{project}/locations/{location}/processes/{process}`. Can -// be specified or auto-assigned. {process} must be not longer than -// 200 characters and only contain characters in a set: -// `a-zA-Z0-9_-:.`. +// `projects/{project}/locations/{location}/processes/{process}`. Can be +// specified or auto-assigned. {process} must be not longer than 200 +// characters and only contain characters in a set: `a-zA-Z0-9_-:.`. func (r *ProjectsLocationsProcessesService) Patch(name string, googleclouddatacataloglineagev1process *GoogleCloudDatacatalogLineageV1Process) *ProjectsLocationsProcessesPatchCall { c := &ProjectsLocationsProcessesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2776,38 +2151,36 @@ func (r *ProjectsLocationsProcessesService) Patch(name string, googleclouddataca return c } -// AllowMissing sets the optional parameter "allowMissing": If set to -// true and the process is not found, the request inserts it. +// AllowMissing sets the optional parameter "allowMissing": If set to true and +// the process is not found, the request inserts it. func (c *ProjectsLocationsProcessesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsProcessesPatchCall { c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } -// UpdateMask sets the optional parameter "updateMask": The list of -// fields to update. Currently not used. The whole message is updated. +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// update. Currently not used. The whole message is updated. func (c *ProjectsLocationsProcessesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProcessesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesPatchCall) Context(ctx context.Context) *ProjectsLocationsProcessesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2816,18 +2189,12 @@ func (c *ProjectsLocationsProcessesPatchCall) Header() http.Header { } func (c *ProjectsLocationsProcessesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1process) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -2840,17 +2207,15 @@ func (c *ProjectsLocationsProcessesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.patch" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1Process or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudDatacatalogLineageV1Process.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1Process.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Process, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2881,49 +2246,7 @@ func (c *ProjectsLocationsProcessesPatchCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Updates a process.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}", - // "httpMethod": "PATCH", - // "id": "datalineage.projects.locations.processes.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "allowMissing": { - // "description": "If set to true and the process is not found, the request inserts it.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Immutable. The resource name of the lineage process. Format: `projects/{project}/locations/{location}/processes/{process}`. Can be specified or auto-assigned. {process} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The list of fields to update. Currently not used. The whole message is updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudDatacatalogLineageV1Process" - // }, - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1Process" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.runs.create": +} type ProjectsLocationsProcessesRunsCreateCall struct { s *Service @@ -2944,33 +2267,30 @@ func (r *ProjectsLocationsProcessesRunsService) Create(parent string, googleclou return c } -// RequestId sets the optional parameter "requestId": A unique -// identifier for this request. Restricted to 36 ASCII characters. A -// random UUID is recommended. This request is idempotent only if a -// `request_id` is provided. +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Restricted to 36 ASCII characters. A random UUID is +// recommended. This request is idempotent only if a `request_id` is provided. func (c *ProjectsLocationsProcessesRunsCreateCall) RequestId(requestId string) *ProjectsLocationsProcessesRunsCreateCall { c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesRunsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesRunsCreateCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesRunsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2979,18 +2299,12 @@ func (c *ProjectsLocationsProcessesRunsCreateCall) Header() http.Header { } func (c *ProjectsLocationsProcessesRunsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1run) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/runs") @@ -3003,17 +2317,15 @@ func (c *ProjectsLocationsProcessesRunsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.runs.create" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1Run or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudDatacatalogLineageV1Run.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1Run.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesRunsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Run, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3044,43 +2356,7 @@ func (c *ProjectsLocationsProcessesRunsCreateCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Creates a new run.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs", - // "httpMethod": "POST", - // "id": "datalineage.projects.locations.processes.runs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The name of the process that should own the run.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/runs", - // "request": { - // "$ref": "GoogleCloudDatacatalogLineageV1Run" - // }, - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1Run" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.runs.delete": +} type ProjectsLocationsProcessesRunsDeleteCall struct { s *Service @@ -3099,32 +2375,30 @@ func (r *ProjectsLocationsProcessesRunsService) Delete(name string) *ProjectsLoc return c } -// AllowMissing sets the optional parameter "allowMissing": If set to -// true and the run is not found, the request succeeds but the server -// doesn't perform any actions. +// AllowMissing sets the optional parameter "allowMissing": If set to true and +// the run is not found, the request succeeds but the server doesn't perform +// any actions. func (c *ProjectsLocationsProcessesRunsDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsProcessesRunsDeleteCall { c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesRunsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesRunsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesRunsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3133,12 +2407,7 @@ func (c *ProjectsLocationsProcessesRunsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsProcessesRunsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3152,16 +2421,15 @@ func (c *ProjectsLocationsProcessesRunsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.runs.delete" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesRunsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3192,40 +2460,7 @@ func (c *ProjectsLocationsProcessesRunsDeleteCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Deletes the run with the specified name.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}", - // "httpMethod": "DELETE", - // "id": "datalineage.projects.locations.processes.runs.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "allowMissing": { - // "description": "If set to true and the run is not found, the request succeeds but the server doesn't perform any actions.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Required. The name of the run to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.runs.get": +} type ProjectsLocationsProcessesRunsGetCall struct { s *Service @@ -3246,33 +2481,29 @@ func (r *ProjectsLocationsProcessesRunsService) Get(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesRunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProcessesRunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesRunsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesRunsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesRunsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3281,12 +2512,7 @@ func (c *ProjectsLocationsProcessesRunsGetCall) Header() http.Header { } func (c *ProjectsLocationsProcessesRunsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3303,17 +2529,15 @@ func (c *ProjectsLocationsProcessesRunsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.runs.get" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1Run or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudDatacatalogLineageV1Run.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1Run.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesRunsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Run, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3344,35 +2568,7 @@ func (c *ProjectsLocationsProcessesRunsGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets the details of the specified run.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}", - // "httpMethod": "GET", - // "id": "datalineage.projects.locations.processes.runs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the run to get.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1Run" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.runs.list": +} type ProjectsLocationsProcessesRunsListCall struct { s *Service @@ -3383,8 +2579,8 @@ type ProjectsLocationsProcessesRunsListCall struct { header_ http.Header } -// List: Lists runs in the given project and location. List order is -// descending by `start_time`. +// List: Lists runs in the given project and location. List order is descending +// by `start_time`. // // - parent: The name of process that owns this collection of runs. func (r *ProjectsLocationsProcessesRunsService) List(parent string) *ProjectsLocationsProcessesRunsListCall { @@ -3393,52 +2589,48 @@ func (r *ProjectsLocationsProcessesRunsService) List(parent string) *ProjectsLoc return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of runs to return. The service may return fewer than this value. If -// unspecified, at most 50 runs are returned. The maximum value is 100; -// values greater than 100 are cut to 100. +// PageSize sets the optional parameter "pageSize": The maximum number of runs +// to return. The service may return fewer than this value. If unspecified, at +// most 50 runs are returned. The maximum value is 100; values greater than 100 +// are cut to 100. func (c *ProjectsLocationsProcessesRunsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessesRunsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token -// received from a previous `ListRuns` call. Specify it to get the next -// page. When paginating, all other parameters specified in this call -// must match the parameters of the call that provided the page token. +// PageToken sets the optional parameter "pageToken": The page token received +// from a previous `ListRuns` call. Specify it to get the next page. When +// paginating, all other parameters specified in this call must match the +// parameters of the call that provided the page token. func (c *ProjectsLocationsProcessesRunsListCall) PageToken(pageToken string) *ProjectsLocationsProcessesRunsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesRunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProcessesRunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesRunsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesRunsListCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesRunsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3447,12 +2639,7 @@ func (c *ProjectsLocationsProcessesRunsListCall) Header() http.Header { } func (c *ProjectsLocationsProcessesRunsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3469,20 +2656,15 @@ func (c *ProjectsLocationsProcessesRunsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.runs.list" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1ListRunsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudDatacatalogLineageV1ListRunsResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1ListRunsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesRunsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1ListRunsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3513,43 +2695,6 @@ func (c *ProjectsLocationsProcessesRunsListCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Lists runs in the given project and location. List order is descending by `start_time`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs", - // "httpMethod": "GET", - // "id": "datalineage.projects.locations.processes.runs.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of runs to return. The service may return fewer than this value. If unspecified, at most 50 runs are returned. The maximum value is 100; values greater than 100 are cut to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The page token received from a previous `ListRuns` call. Specify it to get the next page. When paginating, all other parameters specified in this call must match the parameters of the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The name of process that owns this collection of runs.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/runs", - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1ListRunsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3557,7 +2702,7 @@ func (c *ProjectsLocationsProcessesRunsListCall) Do(opts ...googleapi.CallOption // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProcessesRunsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogLineageV1ListRunsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3573,8 +2718,6 @@ func (c *ProjectsLocationsProcessesRunsListCall) Pages(ctx context.Context, f fu } } -// method id "datalineage.projects.locations.processes.runs.patch": - type ProjectsLocationsProcessesRunsPatchCall struct { s *Service name string @@ -3587,10 +2730,9 @@ type ProjectsLocationsProcessesRunsPatchCall struct { // Patch: Updates a run. // // - name: Immutable. The resource name of the run. Format: -// `projects/{project}/locations/{location}/processes/{process}/runs/{r -// un}`. Can be specified or auto-assigned. {run} must be not longer -// than 200 characters and only contain characters in a set: -// `a-zA-Z0-9_-:.`. +// `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. +// Can be specified or auto-assigned. {run} must be not longer than 200 +// characters and only contain characters in a set: `a-zA-Z0-9_-:.`. func (r *ProjectsLocationsProcessesRunsService) Patch(name string, googleclouddatacataloglineagev1run *GoogleCloudDatacatalogLineageV1Run) *ProjectsLocationsProcessesRunsPatchCall { c := &ProjectsLocationsProcessesRunsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3598,38 +2740,36 @@ func (r *ProjectsLocationsProcessesRunsService) Patch(name string, googlecloudda return c } -// AllowMissing sets the optional parameter "allowMissing": If set to -// true and the run is not found, the request creates it. +// AllowMissing sets the optional parameter "allowMissing": If set to true and +// the run is not found, the request creates it. func (c *ProjectsLocationsProcessesRunsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsProcessesRunsPatchCall { c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } -// UpdateMask sets the optional parameter "updateMask": The list of -// fields to update. Currently not used. The whole message is updated. +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// update. Currently not used. The whole message is updated. func (c *ProjectsLocationsProcessesRunsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProcessesRunsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesRunsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesRunsPatchCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesRunsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3638,18 +2778,12 @@ func (c *ProjectsLocationsProcessesRunsPatchCall) Header() http.Header { } func (c *ProjectsLocationsProcessesRunsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1run) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -3662,17 +2796,15 @@ func (c *ProjectsLocationsProcessesRunsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.runs.patch" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1Run or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudDatacatalogLineageV1Run.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1Run.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesRunsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Run, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3703,49 +2835,7 @@ func (c *ProjectsLocationsProcessesRunsPatchCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Updates a run.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}", - // "httpMethod": "PATCH", - // "id": "datalineage.projects.locations.processes.runs.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "allowMissing": { - // "description": "If set to true and the run is not found, the request creates it.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Immutable. The resource name of the run. Format: `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. Can be specified or auto-assigned. {run} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The list of fields to update. Currently not used. The whole message is updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudDatacatalogLineageV1Run" - // }, - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1Run" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.runs.lineageEvents.create": +} type ProjectsLocationsProcessesRunsLineageEventsCreateCall struct { s *Service @@ -3766,33 +2856,30 @@ func (r *ProjectsLocationsProcessesRunsLineageEventsService) Create(parent strin return c } -// RequestId sets the optional parameter "requestId": A unique -// identifier for this request. Restricted to 36 ASCII characters. A -// random UUID is recommended. This request is idempotent only if a -// `request_id` is provided. +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Restricted to 36 ASCII characters. A random UUID is +// recommended. This request is idempotent only if a `request_id` is provided. func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) RequestId(requestId string) *ProjectsLocationsProcessesRunsLineageEventsCreateCall { c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsLineageEventsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsLineageEventsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3801,18 +2888,12 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) Header() http.He } func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1lineageevent) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/lineageEvents") @@ -3825,18 +2906,15 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.runs.lineageEvents.create" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1LineageEvent or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudDatacatalogLineageV1LineageEvent.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1LineageEvent.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1LineageEvent, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3867,43 +2945,7 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Creates a new lineage event.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents", - // "httpMethod": "POST", - // "id": "datalineage.projects.locations.processes.runs.lineageEvents.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The name of the run that should own the lineage event.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/lineageEvents", - // "request": { - // "$ref": "GoogleCloudDatacatalogLineageV1LineageEvent" - // }, - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1LineageEvent" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.runs.lineageEvents.delete": +} type ProjectsLocationsProcessesRunsLineageEventsDeleteCall struct { s *Service @@ -3922,32 +2964,30 @@ func (r *ProjectsLocationsProcessesRunsLineageEventsService) Delete(name string) return c } -// AllowMissing sets the optional parameter "allowMissing": If set to -// true and the lineage event is not found, the request succeeds but the -// server doesn't perform any actions. +// AllowMissing sets the optional parameter "allowMissing": If set to true and +// the lineage event is not found, the request succeeds but the server doesn't +// perform any actions. func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsProcessesRunsLineageEventsDeleteCall { c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsLineageEventsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsLineageEventsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3956,12 +2996,7 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) Header() http.He } func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3975,16 +3010,15 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.runs.lineageEvents.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4015,40 +3049,7 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Deletes the lineage event with the specified name.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents/{lineageEventsId}", - // "httpMethod": "DELETE", - // "id": "datalineage.projects.locations.processes.runs.lineageEvents.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "allowMissing": { - // "description": "If set to true and the lineage event is not found, the request succeeds but the server doesn't perform any actions.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Required. The name of the lineage event to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+/lineageEvents/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.runs.lineageEvents.get": +} type ProjectsLocationsProcessesRunsLineageEventsGetCall struct { s *Service @@ -4069,33 +3070,29 @@ func (r *ProjectsLocationsProcessesRunsLineageEventsService) Get(name string) *P } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsLineageEventsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesRunsLineageEventsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsLineageEventsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4104,12 +3101,7 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) Header() http.Heade } func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4126,18 +3118,15 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.runs.lineageEvents.get" call. -// Exactly one of *GoogleCloudDatacatalogLineageV1LineageEvent or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudDatacatalogLineageV1LineageEvent.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1LineageEvent.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1LineageEvent, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4168,35 +3157,7 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Gets details of a specified lineage event.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents/{lineageEventsId}", - // "httpMethod": "GET", - // "id": "datalineage.projects.locations.processes.runs.lineageEvents.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the lineage event to get.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+/lineageEvents/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1LineageEvent" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "datalineage.projects.locations.processes.runs.lineageEvents.list": +} type ProjectsLocationsProcessesRunsLineageEventsListCall struct { s *Service @@ -4207,64 +3168,59 @@ type ProjectsLocationsProcessesRunsLineageEventsListCall struct { header_ http.Header } -// List: Lists lineage events in the given project and location. The -// list order is not defined. +// List: Lists lineage events in the given project and location. The list order +// is not defined. // -// - parent: The name of the run that owns the collection of lineage -// events to get. +// - parent: The name of the run that owns the collection of lineage events to +// get. func (r *ProjectsLocationsProcessesRunsLineageEventsService) List(parent string) *ProjectsLocationsProcessesRunsLineageEventsListCall { c := &ProjectsLocationsProcessesRunsLineageEventsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of lineage events to return. The service may return fewer events than -// this value. If unspecified, at most 50 events are returned. The -// maximum value is 100; values greater than 100 are cut to 100. +// PageSize sets the optional parameter "pageSize": The maximum number of +// lineage events to return. The service may return fewer events than this +// value. If unspecified, at most 50 events are returned. The maximum value is +// 100; values greater than 100 are cut to 100. func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessesRunsLineageEventsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token -// received from a previous `ListLineageEvents` call. Specify it to get -// the next page. When paginating, all other parameters specified in -// this call must match the parameters of the call that provided the -// page token. +// PageToken sets the optional parameter "pageToken": The page token received +// from a previous `ListLineageEvents` call. Specify it to get the next page. +// When paginating, all other parameters specified in this call must match the +// parameters of the call that provided the page token. func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) PageToken(pageToken string) *ProjectsLocationsProcessesRunsLineageEventsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsLineageEventsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesRunsLineageEventsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsLineageEventsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4273,12 +3229,7 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Header() http.Head } func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4295,19 +3246,15 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datalineage.projects.locations.processes.runs.lineageEvents.list" call. -// Exactly one of -// *GoogleCloudDatacatalogLineageV1ListLineageEventsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudDatacatalogLineageV1ListLineageEventsResponse.ServerRespon -// se.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDatacatalogLineageV1ListLineageEventsResponse.ServerResponse.Head +// er or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1ListLineageEventsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4338,43 +3285,6 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Lists lineage events in the given project and location. The list order is not defined.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents", - // "httpMethod": "GET", - // "id": "datalineage.projects.locations.processes.runs.lineageEvents.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of lineage events to return. The service may return fewer events than this value. If unspecified, at most 50 events are returned. The maximum value is 100; values greater than 100 are cut to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The page token received from a previous `ListLineageEvents` call. Specify it to get the next page. When paginating, all other parameters specified in this call must match the parameters of the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The name of the run that owns the collection of lineage events to get.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/lineageEvents", - // "response": { - // "$ref": "GoogleCloudDatacatalogLineageV1ListLineageEventsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -4382,7 +3292,7 @@ func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Do(opts ...googlea // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogLineageV1ListLineageEventsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index c347f571b4a..ccda4141acb 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -5151,7 +5151,7 @@ func (c *ProjectsLocationsFetchStaticIpsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.fetchStaticIps" call. @@ -5280,7 +5280,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.get" call. @@ -5411,7 +5411,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.list" call. @@ -5567,7 +5567,7 @@ func (c *ProjectsLocationsConnectionProfilesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.create" call. @@ -5682,7 +5682,7 @@ func (c *ProjectsLocationsConnectionProfilesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.delete" call. @@ -5789,7 +5789,7 @@ func (c *ProjectsLocationsConnectionProfilesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.get" call. @@ -5917,7 +5917,7 @@ func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.getIamPolicy" call. @@ -6064,7 +6064,7 @@ func (c *ProjectsLocationsConnectionProfilesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.list" call. @@ -6223,7 +6223,7 @@ func (c *ProjectsLocationsConnectionProfilesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.patch" call. @@ -6328,7 +6328,7 @@ func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.setIamPolicy" call. @@ -6436,7 +6436,7 @@ func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.testIamPermissions" call. @@ -6541,7 +6541,7 @@ func (c *ProjectsLocationsConversionWorkspacesApplyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.apply" call. @@ -6642,7 +6642,7 @@ func (c *ProjectsLocationsConversionWorkspacesCommitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.commit" call. @@ -6745,7 +6745,7 @@ func (c *ProjectsLocationsConversionWorkspacesConvertCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.convert" call. @@ -6863,7 +6863,7 @@ func (c *ProjectsLocationsConversionWorkspacesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.create" call. @@ -6975,7 +6975,7 @@ func (c *ProjectsLocationsConversionWorkspacesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.delete" call. @@ -7093,7 +7093,7 @@ func (c *ProjectsLocationsConversionWorkspacesDescribeConversionWorkspaceRevisio googleapi.Expand(req.URL, map[string]string{ "conversionWorkspace": c.conversionWorkspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.describeConversionWorkspaceRevisions" call. @@ -7291,7 +7291,7 @@ func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) doRe googleapi.Expand(req.URL, map[string]string{ "conversionWorkspace": c.conversionWorkspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.describeDatabaseEntities" call. @@ -7420,7 +7420,7 @@ func (c *ProjectsLocationsConversionWorkspacesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.get" call. @@ -7548,7 +7548,7 @@ func (c *ProjectsLocationsConversionWorkspacesGetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.getIamPolicy" call. @@ -7687,7 +7687,7 @@ func (c *ProjectsLocationsConversionWorkspacesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.list" call. @@ -7830,7 +7830,7 @@ func (c *ProjectsLocationsConversionWorkspacesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.patch" call. @@ -7931,7 +7931,7 @@ func (c *ProjectsLocationsConversionWorkspacesRollbackCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.rollback" call. @@ -8069,7 +8069,7 @@ func (c *ProjectsLocationsConversionWorkspacesSearchBackgroundJobsCall) doReques googleapi.Expand(req.URL, map[string]string{ "conversionWorkspace": c.conversionWorkspace, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.searchBackgroundJobs" call. @@ -8175,7 +8175,7 @@ func (c *ProjectsLocationsConversionWorkspacesSeedCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.seed" call. @@ -8280,7 +8280,7 @@ func (c *ProjectsLocationsConversionWorkspacesSetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.setIamPolicy" call. @@ -8388,7 +8388,7 @@ func (c *ProjectsLocationsConversionWorkspacesTestIamPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.testIamPermissions" call. @@ -8507,7 +8507,7 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.create" call. @@ -8612,7 +8612,7 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.delete" call. @@ -8724,7 +8724,7 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.get" call. @@ -8829,7 +8829,7 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.import" call. @@ -8956,7 +8956,7 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.list" call. @@ -9096,7 +9096,7 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.create" call. @@ -9209,7 +9209,7 @@ func (c *ProjectsLocationsMigrationJobsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.delete" call. @@ -9313,7 +9313,7 @@ func (c *ProjectsLocationsMigrationJobsDemoteDestinationCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.demoteDestination" call. @@ -9416,7 +9416,7 @@ func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "migrationJob": c.migrationJob, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.generateSshScript" call. @@ -9519,7 +9519,7 @@ func (c *ProjectsLocationsMigrationJobsGenerateTcpProxyScriptCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "migrationJob": c.migrationJob, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.generateTcpProxyScript" call. @@ -9626,7 +9626,7 @@ func (c *ProjectsLocationsMigrationJobsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.get" call. @@ -9753,7 +9753,7 @@ func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.getIamPolicy" call. @@ -9901,7 +9901,7 @@ func (c *ProjectsLocationsMigrationJobsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.list" call. @@ -10043,7 +10043,7 @@ func (c *ProjectsLocationsMigrationJobsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.patch" call. @@ -10145,7 +10145,7 @@ func (c *ProjectsLocationsMigrationJobsPromoteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.promote" call. @@ -10248,7 +10248,7 @@ func (c *ProjectsLocationsMigrationJobsRestartCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.restart" call. @@ -10350,7 +10350,7 @@ func (c *ProjectsLocationsMigrationJobsResumeCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.resume" call. @@ -10455,7 +10455,7 @@ func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.setIamPolicy" call. @@ -10556,7 +10556,7 @@ func (c *ProjectsLocationsMigrationJobsStartCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.start" call. @@ -10657,7 +10657,7 @@ func (c *ProjectsLocationsMigrationJobsStopCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.stop" call. @@ -10765,7 +10765,7 @@ func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.testIamPermissions" call. @@ -10868,7 +10868,7 @@ func (c *ProjectsLocationsMigrationJobsVerifyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.verify" call. @@ -10995,7 +10995,7 @@ func (c *ProjectsLocationsMigrationJobsObjectsGetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.objects.getIamPolicy" call. @@ -11100,7 +11100,7 @@ func (c *ProjectsLocationsMigrationJobsObjectsSetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.objects.setIamPolicy" call. @@ -11208,7 +11208,7 @@ func (c *ProjectsLocationsMigrationJobsObjectsTestIamPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.objects.testIamPermissions" call. @@ -11318,7 +11318,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.operations.cancel" call. @@ -11416,7 +11416,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.operations.delete" call. @@ -11525,7 +11525,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.operations.get" call. @@ -11653,7 +11653,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.operations.list" call. @@ -11800,7 +11800,7 @@ func (c *ProjectsLocationsPrivateConnectionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.privateConnections.create" call. @@ -11905,7 +11905,7 @@ func (c *ProjectsLocationsPrivateConnectionsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.privateConnections.delete" call. @@ -12012,7 +12012,7 @@ func (c *ProjectsLocationsPrivateConnectionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.privateConnections.get" call. @@ -12140,7 +12140,7 @@ func (c *ProjectsLocationsPrivateConnectionsGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.privateConnections.getIamPolicy" call. @@ -12285,7 +12285,7 @@ func (c *ProjectsLocationsPrivateConnectionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.privateConnections.list" call. @@ -12412,7 +12412,7 @@ func (c *ProjectsLocationsPrivateConnectionsSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.privateConnections.setIamPolicy" call. @@ -12520,7 +12520,7 @@ func (c *ProjectsLocationsPrivateConnectionsTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.privateConnections.testIamPermissions" call. diff --git a/datamigration/v1beta1/datamigration-gen.go b/datamigration/v1beta1/datamigration-gen.go index 2fa70a815e6..199d42f36f0 100644 --- a/datamigration/v1beta1/datamigration-gen.go +++ b/datamigration/v1beta1/datamigration-gen.go @@ -1706,7 +1706,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.get" call. @@ -1837,7 +1837,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.list" call. @@ -1978,7 +1978,7 @@ func (c *ProjectsLocationsConnectionProfilesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.create" call. @@ -2094,7 +2094,7 @@ func (c *ProjectsLocationsConnectionProfilesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.delete" call. @@ -2201,7 +2201,7 @@ func (c *ProjectsLocationsConnectionProfilesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.get" call. @@ -2329,7 +2329,7 @@ func (c *ProjectsLocationsConnectionProfilesGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.getIamPolicy" call. @@ -2476,7 +2476,7 @@ func (c *ProjectsLocationsConnectionProfilesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.list" call. @@ -2620,7 +2620,7 @@ func (c *ProjectsLocationsConnectionProfilesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.patch" call. @@ -2725,7 +2725,7 @@ func (c *ProjectsLocationsConnectionProfilesSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.setIamPolicy" call. @@ -2833,7 +2833,7 @@ func (c *ProjectsLocationsConnectionProfilesTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.connectionProfiles.testIamPermissions" call. @@ -2953,7 +2953,7 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.create" call. @@ -3067,7 +3067,7 @@ func (c *ProjectsLocationsMigrationJobsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.delete" call. @@ -3170,7 +3170,7 @@ func (c *ProjectsLocationsMigrationJobsGenerateSshScriptCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "migrationJob": c.migrationJob, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.generateSshScript" call. @@ -3277,7 +3277,7 @@ func (c *ProjectsLocationsMigrationJobsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.get" call. @@ -3404,7 +3404,7 @@ func (c *ProjectsLocationsMigrationJobsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.getIamPolicy" call. @@ -3552,7 +3552,7 @@ func (c *ProjectsLocationsMigrationJobsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.list" call. @@ -3695,7 +3695,7 @@ func (c *ProjectsLocationsMigrationJobsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.patch" call. @@ -3797,7 +3797,7 @@ func (c *ProjectsLocationsMigrationJobsPromoteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.promote" call. @@ -3900,7 +3900,7 @@ func (c *ProjectsLocationsMigrationJobsRestartCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.restart" call. @@ -4002,7 +4002,7 @@ func (c *ProjectsLocationsMigrationJobsResumeCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.resume" call. @@ -4107,7 +4107,7 @@ func (c *ProjectsLocationsMigrationJobsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.setIamPolicy" call. @@ -4208,7 +4208,7 @@ func (c *ProjectsLocationsMigrationJobsStartCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.start" call. @@ -4309,7 +4309,7 @@ func (c *ProjectsLocationsMigrationJobsStopCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.stop" call. @@ -4417,7 +4417,7 @@ func (c *ProjectsLocationsMigrationJobsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.testIamPermissions" call. @@ -4520,7 +4520,7 @@ func (c *ProjectsLocationsMigrationJobsVerifyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.migrationJobs.verify" call. @@ -4629,7 +4629,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.operations.cancel" call. @@ -4727,7 +4727,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.operations.delete" call. @@ -4836,7 +4836,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.operations.get" call. @@ -4964,7 +4964,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datamigration.projects.locations.operations.list" call. diff --git a/datapipelines/v1/datapipelines-gen.go b/datapipelines/v1/datapipelines-gen.go index bb7486c24a0..0977c87e804 100644 --- a/datapipelines/v1/datapipelines-gen.go +++ b/datapipelines/v1/datapipelines-gen.go @@ -997,7 +997,7 @@ func (c *ProjectsLocationsPipelinesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datapipelines.projects.locations.pipelines.create" call. @@ -1095,7 +1095,7 @@ func (c *ProjectsLocationsPipelinesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datapipelines.projects.locations.pipelines.delete" call. @@ -1206,7 +1206,7 @@ func (c *ProjectsLocationsPipelinesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datapipelines.projects.locations.pipelines.get" call. @@ -1347,7 +1347,7 @@ func (c *ProjectsLocationsPipelinesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datapipelines.projects.locations.pipelines.list" call. @@ -1493,7 +1493,7 @@ func (c *ProjectsLocationsPipelinesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datapipelines.projects.locations.pipelines.patch" call. @@ -1600,7 +1600,7 @@ func (c *ProjectsLocationsPipelinesRunCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datapipelines.projects.locations.pipelines.run" call. @@ -1705,7 +1705,7 @@ func (c *ProjectsLocationsPipelinesStopCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datapipelines.projects.locations.pipelines.stop" call. @@ -1833,7 +1833,7 @@ func (c *ProjectsLocationsPipelinesJobsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datapipelines.projects.locations.pipelines.jobs.list" call. diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index eccf899e4a8..bd1accd80b6 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -8458,7 +8458,7 @@ func (c *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.organizations.locations.encryptionConfigs.getIamPolicy" call. @@ -8564,7 +8564,7 @@ func (c *OrganizationsLocationsEncryptionConfigsSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.organizations.locations.encryptionConfigs.setIamPolicy" call. @@ -8673,7 +8673,7 @@ func (c *OrganizationsLocationsEncryptionConfigsTestIamPermissionsCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.organizations.locations.encryptionConfigs.testIamPermissions" call. @@ -8783,7 +8783,7 @@ func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.organizations.locations.operations.cancel" call. @@ -8881,7 +8881,7 @@ func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.organizations.locations.operations.delete" call. @@ -8990,7 +8990,7 @@ func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.organizations.locations.operations.get" call. @@ -9120,7 +9120,7 @@ func (c *OrganizationsLocationsOperationsListOperationsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.organizations.locations.operations.listOperations" call. @@ -9249,7 +9249,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.get" call. @@ -9381,7 +9381,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.list" call. @@ -9559,7 +9559,7 @@ func (c *ProjectsLocationsLookupEntryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lookupEntry" call. @@ -9694,7 +9694,7 @@ func (c *ProjectsLocationsSearchEntriesCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.searchEntries" call. @@ -9834,7 +9834,7 @@ func (c *ProjectsLocationsAspectTypesCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.aspectTypes.create" call. @@ -9940,7 +9940,7 @@ func (c *ProjectsLocationsAspectTypesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.aspectTypes.delete" call. @@ -10050,7 +10050,7 @@ func (c *ProjectsLocationsAspectTypesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.aspectTypes.get" call. @@ -10178,7 +10178,7 @@ func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.aspectTypes.getIamPolicy" call. @@ -10322,7 +10322,7 @@ func (c *ProjectsLocationsAspectTypesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.aspectTypes.list" call. @@ -10462,7 +10462,7 @@ func (c *ProjectsLocationsAspectTypesPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.aspectTypes.patch" call. @@ -10568,7 +10568,7 @@ func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.aspectTypes.setIamPolicy" call. @@ -10677,7 +10677,7 @@ func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.aspectTypes.testIamPermissions" call. @@ -10797,7 +10797,7 @@ func (c *ProjectsLocationsDataAttributeBindingsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataAttributeBindings.create" call. @@ -10906,7 +10906,7 @@ func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataAttributeBindings.delete" call. @@ -11016,7 +11016,7 @@ func (c *ProjectsLocationsDataAttributeBindingsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataAttributeBindings.get" call. @@ -11144,7 +11144,7 @@ func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataAttributeBindings.getIamPolicy" call. @@ -11287,7 +11287,7 @@ func (c *ProjectsLocationsDataAttributeBindingsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataAttributeBindings.list" call. @@ -11429,7 +11429,7 @@ func (c *ProjectsLocationsDataAttributeBindingsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataAttributeBindings.patch" call. @@ -11535,7 +11535,7 @@ func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataAttributeBindings.setIamPolicy" call. @@ -11644,7 +11644,7 @@ func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataAttributeBindings.testIamPermissions" call. @@ -11764,7 +11764,7 @@ func (c *ProjectsLocationsDataScansCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.create" call. @@ -11863,7 +11863,7 @@ func (c *ProjectsLocationsDataScansDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.delete" call. @@ -11970,7 +11970,7 @@ func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.generateDataQualityRules" call. @@ -12094,7 +12094,7 @@ func (c *ProjectsLocationsDataScansGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.get" call. @@ -12222,7 +12222,7 @@ func (c *ProjectsLocationsDataScansGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.getIamPolicy" call. @@ -12363,7 +12363,7 @@ func (c *ProjectsLocationsDataScansListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.list" call. @@ -12503,7 +12503,7 @@ func (c *ProjectsLocationsDataScansPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.patch" call. @@ -12608,7 +12608,7 @@ func (c *ProjectsLocationsDataScansRunCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.run" call. @@ -12714,7 +12714,7 @@ func (c *ProjectsLocationsDataScansSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.setIamPolicy" call. @@ -12823,7 +12823,7 @@ func (c *ProjectsLocationsDataScansTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.testIamPermissions" call. @@ -12930,7 +12930,7 @@ func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.jobs.generateDataQualityRules" call. @@ -13054,7 +13054,7 @@ func (c *ProjectsLocationsDataScansJobsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.jobs.get" call. @@ -13197,7 +13197,7 @@ func (c *ProjectsLocationsDataScansJobsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataScans.jobs.list" call. @@ -13338,7 +13338,7 @@ func (c *ProjectsLocationsDataTaxonomiesCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.create" call. @@ -13445,7 +13445,7 @@ func (c *ProjectsLocationsDataTaxonomiesDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.delete" call. @@ -13555,7 +13555,7 @@ func (c *ProjectsLocationsDataTaxonomiesGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.get" call. @@ -13683,7 +13683,7 @@ func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.getIamPolicy" call. @@ -13824,7 +13824,7 @@ func (c *ProjectsLocationsDataTaxonomiesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.list" call. @@ -13964,7 +13964,7 @@ func (c *ProjectsLocationsDataTaxonomiesPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.patch" call. @@ -14070,7 +14070,7 @@ func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.setIamPolicy" call. @@ -14179,7 +14179,7 @@ func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.testIamPermissions" call. @@ -14300,7 +14300,7 @@ func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.create" call. @@ -14406,7 +14406,7 @@ func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.delete" call. @@ -14516,7 +14516,7 @@ func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.get" call. @@ -14644,7 +14644,7 @@ func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.getIamPolicy" call. @@ -14785,7 +14785,7 @@ func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.list" call. @@ -14925,7 +14925,7 @@ func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.patch" call. @@ -15031,7 +15031,7 @@ func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.setIamPolicy" call. @@ -15140,7 +15140,7 @@ func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.testIamPermissions" call. @@ -15259,7 +15259,7 @@ func (c *ProjectsLocationsEntryGroupsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.create" call. @@ -15365,7 +15365,7 @@ func (c *ProjectsLocationsEntryGroupsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.delete" call. @@ -15475,7 +15475,7 @@ func (c *ProjectsLocationsEntryGroupsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.get" call. @@ -15603,7 +15603,7 @@ func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.getIamPolicy" call. @@ -15744,7 +15744,7 @@ func (c *ProjectsLocationsEntryGroupsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.list" call. @@ -15885,7 +15885,7 @@ func (c *ProjectsLocationsEntryGroupsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.patch" call. @@ -15991,7 +15991,7 @@ func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.setIamPolicy" call. @@ -16100,7 +16100,7 @@ func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.testIamPermissions" call. @@ -16221,7 +16221,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.entries.create" call. @@ -16319,7 +16319,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.entries.delete" call. @@ -16467,7 +16467,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.entries.get" call. @@ -16609,7 +16609,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.entries.list" call. @@ -16772,7 +16772,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryGroups.entries.patch" call. @@ -16900,7 +16900,7 @@ func (c *ProjectsLocationsEntryLinkTypesGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryLinkTypes.getIamPolicy" call. @@ -17006,7 +17006,7 @@ func (c *ProjectsLocationsEntryLinkTypesSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryLinkTypes.setIamPolicy" call. @@ -17115,7 +17115,7 @@ func (c *ProjectsLocationsEntryLinkTypesTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryLinkTypes.testIamPermissions" call. @@ -17234,7 +17234,7 @@ func (c *ProjectsLocationsEntryTypesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryTypes.create" call. @@ -17340,7 +17340,7 @@ func (c *ProjectsLocationsEntryTypesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryTypes.delete" call. @@ -17450,7 +17450,7 @@ func (c *ProjectsLocationsEntryTypesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryTypes.get" call. @@ -17578,7 +17578,7 @@ func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryTypes.getIamPolicy" call. @@ -17722,7 +17722,7 @@ func (c *ProjectsLocationsEntryTypesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryTypes.list" call. @@ -17863,7 +17863,7 @@ func (c *ProjectsLocationsEntryTypesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryTypes.patch" call. @@ -17969,7 +17969,7 @@ func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryTypes.setIamPolicy" call. @@ -18078,7 +18078,7 @@ func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.entryTypes.testIamPermissions" call. @@ -18206,7 +18206,7 @@ func (c *ProjectsLocationsGlossariesGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.glossaries.getIamPolicy" call. @@ -18312,7 +18312,7 @@ func (c *ProjectsLocationsGlossariesSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.glossaries.setIamPolicy" call. @@ -18421,7 +18421,7 @@ func (c *ProjectsLocationsGlossariesTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.glossaries.testIamPermissions" call. @@ -18549,7 +18549,7 @@ func (c *ProjectsLocationsGlossariesCategoriesGetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.glossaries.categories.getIamPolicy" call. @@ -18655,7 +18655,7 @@ func (c *ProjectsLocationsGlossariesCategoriesSetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.glossaries.categories.setIamPolicy" call. @@ -18764,7 +18764,7 @@ func (c *ProjectsLocationsGlossariesCategoriesTestIamPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.glossaries.categories.testIamPermissions" call. @@ -18892,7 +18892,7 @@ func (c *ProjectsLocationsGlossariesTermsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.glossaries.terms.getIamPolicy" call. @@ -18998,7 +18998,7 @@ func (c *ProjectsLocationsGlossariesTermsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.glossaries.terms.setIamPolicy" call. @@ -19107,7 +19107,7 @@ func (c *ProjectsLocationsGlossariesTermsTestIamPermissionsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.glossaries.terms.testIamPermissions" call. @@ -19235,7 +19235,7 @@ func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.governanceRules.getIamPolicy" call. @@ -19341,7 +19341,7 @@ func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.governanceRules.setIamPolicy" call. @@ -19450,7 +19450,7 @@ func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.governanceRules.testIamPermissions" call. @@ -19572,7 +19572,7 @@ func (c *ProjectsLocationsLakesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.create" call. @@ -19670,7 +19670,7 @@ func (c *ProjectsLocationsLakesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.delete" call. @@ -19779,7 +19779,7 @@ func (c *ProjectsLocationsLakesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.get" call. @@ -19907,7 +19907,7 @@ func (c *ProjectsLocationsLakesGetIamPolicyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.getIamPolicy" call. @@ -20048,7 +20048,7 @@ func (c *ProjectsLocationsLakesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.list" call. @@ -20186,7 +20186,7 @@ func (c *ProjectsLocationsLakesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.patch" call. @@ -20292,7 +20292,7 @@ func (c *ProjectsLocationsLakesSetIamPolicyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.setIamPolicy" call. @@ -20401,7 +20401,7 @@ func (c *ProjectsLocationsLakesTestIamPermissionsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.testIamPermissions" call. @@ -20528,7 +20528,7 @@ func (c *ProjectsLocationsLakesActionsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.actions.list" call. @@ -20659,7 +20659,7 @@ func (c *ProjectsLocationsLakesContentCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.content.create" call. @@ -20757,7 +20757,7 @@ func (c *ProjectsLocationsLakesContentDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.content.delete" call. @@ -20882,7 +20882,7 @@ func (c *ProjectsLocationsLakesContentGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.content.get" call. @@ -21013,7 +21013,7 @@ func (c *ProjectsLocationsLakesContentGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.content.getIamPolicy" call. @@ -21149,7 +21149,7 @@ func (c *ProjectsLocationsLakesContentListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.content.list" call. @@ -21288,7 +21288,7 @@ func (c *ProjectsLocationsLakesContentPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.content.patch" call. @@ -21394,7 +21394,7 @@ func (c *ProjectsLocationsLakesContentSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.content.setIamPolicy" call. @@ -21504,7 +21504,7 @@ func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.content.testIamPermissions" call. @@ -21614,7 +21614,7 @@ func (c *ProjectsLocationsLakesContentitemsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.contentitems.create" call. @@ -21712,7 +21712,7 @@ func (c *ProjectsLocationsLakesContentitemsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.contentitems.delete" call. @@ -21837,7 +21837,7 @@ func (c *ProjectsLocationsLakesContentitemsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.contentitems.get" call. @@ -21968,7 +21968,7 @@ func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.contentitems.getIamPolicy" call. @@ -22104,7 +22104,7 @@ func (c *ProjectsLocationsLakesContentitemsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.contentitems.list" call. @@ -22243,7 +22243,7 @@ func (c *ProjectsLocationsLakesContentitemsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.contentitems.patch" call. @@ -22349,7 +22349,7 @@ func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.contentitems.setIamPolicy" call. @@ -22459,7 +22459,7 @@ func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.contentitems.testIamPermissions" call. @@ -22578,7 +22578,7 @@ func (c *ProjectsLocationsLakesEnvironmentsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.environments.create" call. @@ -22677,7 +22677,7 @@ func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.environments.delete" call. @@ -22787,7 +22787,7 @@ func (c *ProjectsLocationsLakesEnvironmentsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.environments.get" call. @@ -22915,7 +22915,7 @@ func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.environments.getIamPolicy" call. @@ -23055,7 +23055,7 @@ func (c *ProjectsLocationsLakesEnvironmentsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.environments.list" call. @@ -23195,7 +23195,7 @@ func (c *ProjectsLocationsLakesEnvironmentsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.environments.patch" call. @@ -23301,7 +23301,7 @@ func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.environments.setIamPolicy" call. @@ -23410,7 +23410,7 @@ func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.environments.testIamPermissions" call. @@ -23550,7 +23550,7 @@ func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.environments.sessions.list" call. @@ -23687,7 +23687,7 @@ func (c *ProjectsLocationsLakesTasksCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.create" call. @@ -23785,7 +23785,7 @@ func (c *ProjectsLocationsLakesTasksDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.delete" call. @@ -23895,7 +23895,7 @@ func (c *ProjectsLocationsLakesTasksGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.get" call. @@ -24023,7 +24023,7 @@ func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.getIamPolicy" call. @@ -24163,7 +24163,7 @@ func (c *ProjectsLocationsLakesTasksListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.list" call. @@ -24302,7 +24302,7 @@ func (c *ProjectsLocationsLakesTasksPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.patch" call. @@ -24406,7 +24406,7 @@ func (c *ProjectsLocationsLakesTasksRunCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.run" call. @@ -24512,7 +24512,7 @@ func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.setIamPolicy" call. @@ -24621,7 +24621,7 @@ func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.testIamPermissions" call. @@ -24725,7 +24725,7 @@ func (c *ProjectsLocationsLakesTasksJobsCancelCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.jobs.cancel" call. @@ -24834,7 +24834,7 @@ func (c *ProjectsLocationsLakesTasksJobsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.jobs.get" call. @@ -24962,7 +24962,7 @@ func (c *ProjectsLocationsLakesTasksJobsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.tasks.jobs.list" call. @@ -25105,7 +25105,7 @@ func (c *ProjectsLocationsLakesZonesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.create" call. @@ -25204,7 +25204,7 @@ func (c *ProjectsLocationsLakesZonesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.delete" call. @@ -25314,7 +25314,7 @@ func (c *ProjectsLocationsLakesZonesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.get" call. @@ -25442,7 +25442,7 @@ func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.getIamPolicy" call. @@ -25582,7 +25582,7 @@ func (c *ProjectsLocationsLakesZonesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.list" call. @@ -25721,7 +25721,7 @@ func (c *ProjectsLocationsLakesZonesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.patch" call. @@ -25827,7 +25827,7 @@ func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.setIamPolicy" call. @@ -25936,7 +25936,7 @@ func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.testIamPermissions" call. @@ -26064,7 +26064,7 @@ func (c *ProjectsLocationsLakesZonesActionsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.actions.list" call. @@ -26207,7 +26207,7 @@ func (c *ProjectsLocationsLakesZonesAssetsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.assets.create" call. @@ -26306,7 +26306,7 @@ func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.assets.delete" call. @@ -26416,7 +26416,7 @@ func (c *ProjectsLocationsLakesZonesAssetsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.assets.get" call. @@ -26544,7 +26544,7 @@ func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.assets.getIamPolicy" call. @@ -26685,7 +26685,7 @@ func (c *ProjectsLocationsLakesZonesAssetsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.assets.list" call. @@ -26824,7 +26824,7 @@ func (c *ProjectsLocationsLakesZonesAssetsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.assets.patch" call. @@ -26930,7 +26930,7 @@ func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.assets.setIamPolicy" call. @@ -27039,7 +27039,7 @@ func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.assets.testIamPermissions" call. @@ -27167,7 +27167,7 @@ func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.assets.actions.list" call. @@ -27299,7 +27299,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.entities.create" call. @@ -27404,7 +27404,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.entities.delete" call. @@ -27529,7 +27529,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.entities.get" call. @@ -27684,7 +27684,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.entities.list" call. @@ -27816,7 +27816,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.entities.update" call. @@ -27927,7 +27927,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.entities.partitions.create" call. @@ -28034,7 +28034,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.entities.partitions.delete" call. @@ -28145,7 +28145,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.entities.partitions.get" call. @@ -28288,7 +28288,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.lakes.zones.entities.partitions.list" call. @@ -28416,7 +28416,7 @@ func (c *ProjectsLocationsMetadataJobsCancelCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.metadataJobs.cancel" call. @@ -28527,7 +28527,7 @@ func (c *ProjectsLocationsMetadataJobsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.metadataJobs.create" call. @@ -28637,7 +28637,7 @@ func (c *ProjectsLocationsMetadataJobsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.metadataJobs.get" call. @@ -28781,7 +28781,7 @@ func (c *ProjectsLocationsMetadataJobsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.metadataJobs.list" call. @@ -28912,7 +28912,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.operations.cancel" call. @@ -29010,7 +29010,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.operations.delete" call. @@ -29119,7 +29119,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.operations.get" call. @@ -29248,7 +29248,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataplex.projects.locations.operations.list" call. diff --git a/dataportability/v1/dataportability-gen.go b/dataportability/v1/dataportability-gen.go index 46b45dd8d12..db34ab6f1bf 100644 --- a/dataportability/v1/dataportability-gen.go +++ b/dataportability/v1/dataportability-gen.go @@ -662,7 +662,7 @@ func (c *ArchiveJobsGetPortabilityArchiveStateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataportability.archiveJobs.getPortabilityArchiveState" call. @@ -766,7 +766,7 @@ func (c *ArchiveJobsRetryCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataportability.archiveJobs.retry" call. @@ -865,7 +865,7 @@ func (c *AuthorizationResetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataportability.authorization.reset" call. @@ -959,7 +959,7 @@ func (c *PortabilityArchiveInitiateCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataportability.portabilityArchive.initiate" call. diff --git a/dataportability/v1beta/dataportability-gen.go b/dataportability/v1beta/dataportability-gen.go index d421de3fa54..db241338fcb 100644 --- a/dataportability/v1beta/dataportability-gen.go +++ b/dataportability/v1beta/dataportability-gen.go @@ -662,7 +662,7 @@ func (c *ArchiveJobsGetPortabilityArchiveStateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataportability.archiveJobs.getPortabilityArchiveState" call. @@ -766,7 +766,7 @@ func (c *ArchiveJobsRetryCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataportability.archiveJobs.retry" call. @@ -865,7 +865,7 @@ func (c *AuthorizationResetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataportability.authorization.reset" call. @@ -959,7 +959,7 @@ func (c *PortabilityArchiveInitiateCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataportability.portabilityArchive.initiate" call. diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index 37803d70653..cd3a2f58d30 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -6088,7 +6088,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.create" call. @@ -6192,7 +6192,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.delete" call. @@ -6306,7 +6306,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.get" call. @@ -6411,7 +6411,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.getIamPolicy" call. @@ -6539,7 +6539,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.list" call. @@ -6666,7 +6666,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.setIamPolicy" call. @@ -6774,7 +6774,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.testIamPermissions" call. @@ -6884,7 +6884,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.update" call. @@ -6987,7 +6987,7 @@ func (c *ProjectsLocationsBatchesAnalyzeCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.batches.analyze" call. @@ -7110,7 +7110,7 @@ func (c *ProjectsLocationsBatchesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.batches.create" call. @@ -7208,7 +7208,7 @@ func (c *ProjectsLocationsBatchesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.batches.delete" call. @@ -7316,7 +7316,7 @@ func (c *ProjectsLocationsBatchesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.batches.get" call. @@ -7464,7 +7464,7 @@ func (c *ProjectsLocationsBatchesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.batches.list" call. @@ -7589,7 +7589,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.operations.cancel" call. @@ -7687,7 +7687,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.operations.delete" call. @@ -7796,7 +7796,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.operations.get" call. @@ -7924,7 +7924,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.operations.list" call. @@ -8047,7 +8047,7 @@ func (c *ProjectsLocationsSessionTemplatesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.sessionTemplates.create" call. @@ -8143,7 +8143,7 @@ func (c *ProjectsLocationsSessionTemplatesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.sessionTemplates.delete" call. @@ -8250,7 +8250,7 @@ func (c *ProjectsLocationsSessionTemplatesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.sessionTemplates.get" call. @@ -8382,7 +8382,7 @@ func (c *ProjectsLocationsSessionTemplatesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.sessionTemplates.list" call. @@ -8505,7 +8505,7 @@ func (c *ProjectsLocationsSessionTemplatesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.sessionTemplates.patch" call. @@ -8628,7 +8628,7 @@ func (c *ProjectsLocationsSessionsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.sessions.create" call. @@ -8737,7 +8737,7 @@ func (c *ProjectsLocationsSessionsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.sessions.delete" call. @@ -8844,7 +8844,7 @@ func (c *ProjectsLocationsSessionsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.sessions.get" call. @@ -8984,7 +8984,7 @@ func (c *ProjectsLocationsSessionsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.sessions.list" call. @@ -9107,7 +9107,7 @@ func (c *ProjectsLocationsSessionsTerminateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.sessions.terminate" call. @@ -9214,7 +9214,7 @@ func (c *ProjectsLocationsWorkflowTemplatesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.create" call. @@ -9326,7 +9326,7 @@ func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.delete" call. @@ -9449,7 +9449,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.get" call. @@ -9554,7 +9554,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.getIamPolicy" call. @@ -9671,7 +9671,7 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.instantiate" call. @@ -9802,7 +9802,7 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.instantiateInline" call. @@ -9929,7 +9929,7 @@ func (c *ProjectsLocationsWorkflowTemplatesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.list" call. @@ -10056,7 +10056,7 @@ func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.setIamPolicy" call. @@ -10164,7 +10164,7 @@ func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.testIamPermissions" call. @@ -10274,7 +10274,7 @@ func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.update" call. @@ -10382,7 +10382,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.create" call. @@ -10486,7 +10486,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.delete" call. @@ -10600,7 +10600,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.get" call. @@ -10705,7 +10705,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.getIamPolicy" call. @@ -10833,7 +10833,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.list" call. @@ -10960,7 +10960,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.setIamPolicy" call. @@ -11068,7 +11068,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.testIamPermissions" call. @@ -11178,7 +11178,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.update" call. @@ -11321,7 +11321,7 @@ func (c *ProjectsRegionsClustersCreateCall) doRequest(alt string) (*http.Respons "projectId": c.projectId, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.create" call. @@ -11462,7 +11462,7 @@ func (c *ProjectsRegionsClustersDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.delete" call. @@ -11577,7 +11577,7 @@ func (c *ProjectsRegionsClustersDiagnoseCall) doRequest(alt string) (*http.Respo "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.diagnose" call. @@ -11693,7 +11693,7 @@ func (c *ProjectsRegionsClustersGetCall) doRequest(alt string) (*http.Response, "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.get" call. @@ -11797,7 +11797,7 @@ func (c *ProjectsRegionsClustersGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.getIamPolicy" call. @@ -11909,7 +11909,7 @@ func (c *ProjectsRegionsClustersInjectCredentialsCall) doRequest(alt string) (*h "region": c.region, "cluster": c.cluster, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.injectCredentials" call. @@ -12052,7 +12052,7 @@ func (c *ProjectsRegionsClustersListCall) doRequest(alt string) (*http.Response, "projectId": c.projectId, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.list" call. @@ -12235,7 +12235,7 @@ func (c *ProjectsRegionsClustersPatchCall) doRequest(alt string) (*http.Response "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.patch" call. @@ -12345,7 +12345,7 @@ func (c *ProjectsRegionsClustersRepairCall) doRequest(alt string) (*http.Respons "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.repair" call. @@ -12450,7 +12450,7 @@ func (c *ProjectsRegionsClustersSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.setIamPolicy" call. @@ -12560,7 +12560,7 @@ func (c *ProjectsRegionsClustersStartCall) doRequest(alt string) (*http.Response "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.start" call. @@ -12670,7 +12670,7 @@ func (c *ProjectsRegionsClustersStopCall) doRequest(alt string) (*http.Response, "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.stop" call. @@ -12778,7 +12778,7 @@ func (c *ProjectsRegionsClustersTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.testIamPermissions" call. @@ -12913,7 +12913,7 @@ func (c *ProjectsRegionsClustersNodeGroupsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.nodeGroups.create" call. @@ -13022,7 +13022,7 @@ func (c *ProjectsRegionsClustersNodeGroupsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.nodeGroups.get" call. @@ -13125,7 +13125,7 @@ func (c *ProjectsRegionsClustersNodeGroupsRepairCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.nodeGroups.repair" call. @@ -13230,7 +13230,7 @@ func (c *ProjectsRegionsClustersNodeGroupsResizeCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.nodeGroups.resize" call. @@ -13344,7 +13344,7 @@ func (c *ProjectsRegionsJobsCancelCall) doRequest(alt string) (*http.Response, e "region": c.region, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.cancel" call. @@ -13449,7 +13449,7 @@ func (c *ProjectsRegionsJobsDeleteCall) doRequest(alt string) (*http.Response, e "region": c.region, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.delete" call. @@ -13565,7 +13565,7 @@ func (c *ProjectsRegionsJobsGetCall) doRequest(alt string) (*http.Response, erro "region": c.region, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.get" call. @@ -13669,7 +13669,7 @@ func (c *ProjectsRegionsJobsGetIamPolicyCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.getIamPolicy" call. @@ -13833,7 +13833,7 @@ func (c *ProjectsRegionsJobsListCall) doRequest(alt string) (*http.Response, err "projectId": c.projectId, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.list" call. @@ -13975,7 +13975,7 @@ func (c *ProjectsRegionsJobsPatchCall) doRequest(alt string) (*http.Response, er "region": c.region, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.patch" call. @@ -14080,7 +14080,7 @@ func (c *ProjectsRegionsJobsSetIamPolicyCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.setIamPolicy" call. @@ -14186,7 +14186,7 @@ func (c *ProjectsRegionsJobsSubmitCall) doRequest(alt string) (*http.Response, e "projectId": c.projectId, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.submit" call. @@ -14292,7 +14292,7 @@ func (c *ProjectsRegionsJobsSubmitAsOperationCall) doRequest(alt string) (*http. "projectId": c.projectId, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.submitAsOperation" call. @@ -14400,7 +14400,7 @@ func (c *ProjectsRegionsJobsTestIamPermissionsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.testIamPermissions" call. @@ -14504,7 +14504,7 @@ func (c *ProjectsRegionsOperationsCancelCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.cancel" call. @@ -14602,7 +14602,7 @@ func (c *ProjectsRegionsOperationsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.delete" call. @@ -14711,7 +14711,7 @@ func (c *ProjectsRegionsOperationsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.get" call. @@ -14815,7 +14815,7 @@ func (c *ProjectsRegionsOperationsGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.getIamPolicy" call. @@ -14943,7 +14943,7 @@ func (c *ProjectsRegionsOperationsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.list" call. @@ -15070,7 +15070,7 @@ func (c *ProjectsRegionsOperationsSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.setIamPolicy" call. @@ -15178,7 +15178,7 @@ func (c *ProjectsRegionsOperationsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.testIamPermissions" call. @@ -15286,7 +15286,7 @@ func (c *ProjectsRegionsWorkflowTemplatesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.create" call. @@ -15398,7 +15398,7 @@ func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.delete" call. @@ -15521,7 +15521,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.get" call. @@ -15626,7 +15626,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.getIamPolicy" call. @@ -15743,7 +15743,7 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.instantiate" call. @@ -15874,7 +15874,7 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.instantiateInline" call. @@ -16001,7 +16001,7 @@ func (c *ProjectsRegionsWorkflowTemplatesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.list" call. @@ -16128,7 +16128,7 @@ func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.setIamPolicy" call. @@ -16236,7 +16236,7 @@ func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.testIamPermissions" call. @@ -16346,7 +16346,7 @@ func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.update" call. diff --git a/dataproc/v1beta2/dataproc-gen.go b/dataproc/v1beta2/dataproc-gen.go index 19eb7208328..583cc5c8cfc 100644 --- a/dataproc/v1beta2/dataproc-gen.go +++ b/dataproc/v1beta2/dataproc-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -10,6 +10,17 @@ // // For product documentation, see: https://cloud.google.com/dataproc/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -19,24 +30,26 @@ // ctx := context.Background() // dataprocService, err := dataproc.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // dataprocService, err := dataproc.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // dataprocService, err := dataproc.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package dataproc // import "google.golang.org/api/dataproc/v1beta2" import ( @@ -52,6 +65,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -72,29 +86,33 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dataproc:v1beta2" const apiName = "dataproc" const apiVersion = "v1beta2" const basePath = "https://dataproc.googleapis.com/" +const basePathTemplate = "https://dataproc.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://dataproc.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -256,246 +274,191 @@ type ProjectsRegionsWorkflowTemplatesService struct { } // AcceleratorConfig: Specifies the type and number of accelerator cards -// attached to the instances of an instance group (see GPUs on Compute -// Engine (https://cloud.google.com/compute/docs/gpus/)). +// attached to the instances of an instance group (see GPUs on Compute Engine +// (https://cloud.google.com/compute/docs/gpus/)). type AcceleratorConfig struct { - // AcceleratorCount: The number of the accelerator cards of this type - // exposed to this instance. + // AcceleratorCount: The number of the accelerator cards of this type exposed + // to this instance. AcceleratorCount int64 `json:"acceleratorCount,omitempty"` - - // AcceleratorTypeUri: Full URL, partial URI, or short name of the - // accelerator type resource to expose to this instance. See Compute - // Engine AcceleratorTypes + // AcceleratorTypeUri: Full URL, partial URI, or short name of the accelerator + // type resource to expose to this instance. See Compute Engine + // AcceleratorTypes // (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)Examples // * // https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 - // * - // projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k - // 80 * nvidia-tesla-k80Auto Zone Exception: If you are using the - // Dataproc Auto Zone Placement + // * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * + // nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone + // Placement // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) - // feature, you must use the short name of the accelerator type - // resource, for example, nvidia-tesla-k80. + // feature, you must use the short name of the accelerator type resource, for + // example, nvidia-tesla-k80. AcceleratorTypeUri string `json:"acceleratorTypeUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AcceleratorCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AcceleratorCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) { +func (s AcceleratorConfig) MarshalJSON() ([]byte, error) { type NoMethod AcceleratorConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AutoscalingConfig: Autoscaling Policy config associated with the -// cluster. +// AutoscalingConfig: Autoscaling Policy config associated with the cluster. type AutoscalingConfig struct { // PolicyUri: Optional. The autoscaling policy used by the cluster.Only // resource names including projectid and location (region) are valid. // Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id] - // projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/ - // [policy_id]Note that the policy must be in the same project and - // Dataproc region. + // projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy + // _id]Note that the policy must be in the same project and Dataproc region. PolicyUri string `json:"policyUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "PolicyUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PolicyUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PolicyUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AutoscalingConfig) MarshalJSON() ([]byte, error) { +func (s AutoscalingConfig) MarshalJSON() ([]byte, error) { type NoMethod AutoscalingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AutoscalingPolicy: Describes an autoscaling policy for Dataproc -// cluster autoscaler. +// AutoscalingPolicy: Describes an autoscaling policy for Dataproc cluster +// autoscaler. type AutoscalingPolicy struct { BasicAlgorithm *BasicAutoscalingAlgorithm `json:"basicAlgorithm,omitempty"` - - // Id: Required. The policy id.The id must contain only letters (a-z, - // A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin - // or end with underscore or hyphen. Must consist of between 3 and 50 - // characters. + // Id: Required. The policy id.The id must contain only letters (a-z, A-Z), + // numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with + // underscore or hyphen. Must consist of between 3 and 50 characters. Id string `json:"id,omitempty"` - // Name: Output only. The "resource name" of the autoscaling policy, as // described in https://cloud.google.com/apis/design/resource_names. For - // projects.regions.autoscalingPolicies, the resource name of the policy - // has the following format: - // projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} - // For projects.locations.autoscalingPolicies, the resource name of the - // policy has the following format: - // projects/{project_id}/locations/{location}/autoscalingPolicies/{policy - // _id} + // projects.regions.autoscalingPolicies, the resource name of the policy has + // the following format: + // projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For + // projects.locations.autoscalingPolicies, the resource name of the policy has + // the following format: + // projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} Name string `json:"name,omitempty"` - - // SecondaryWorkerConfig: Optional. Describes how the autoscaler will - // operate for secondary workers. + // SecondaryWorkerConfig: Optional. Describes how the autoscaler will operate + // for secondary workers. SecondaryWorkerConfig *InstanceGroupAutoscalingPolicyConfig `json:"secondaryWorkerConfig,omitempty"` - // WorkerConfig: Required. Describes how the autoscaler will operate for // primary workers. WorkerConfig *InstanceGroupAutoscalingPolicyConfig `json:"workerConfig,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BasicAlgorithm") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BasicAlgorithm") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BasicAlgorithm") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AutoscalingPolicy) MarshalJSON() ([]byte, error) { +func (s AutoscalingPolicy) MarshalJSON() ([]byte, error) { type NoMethod AutoscalingPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BasicAutoscalingAlgorithm: Basic algorithm for autoscaling. type BasicAutoscalingAlgorithm struct { - // CooldownPeriod: Optional. Duration between scaling events. A scaling - // period starts after the update operation from the previous event has + // CooldownPeriod: Optional. Duration between scaling events. A scaling period + // starts after the update operation from the previous event has // completed.Bounds: 2m, 1d. Default: 2m. CooldownPeriod string `json:"cooldownPeriod,omitempty"` - // YarnConfig: Optional. YARN autoscaling configuration. YarnConfig *BasicYarnAutoscalingConfig `json:"yarnConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CooldownPeriod") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CooldownPeriod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CooldownPeriod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BasicAutoscalingAlgorithm) MarshalJSON() ([]byte, error) { +func (s BasicAutoscalingAlgorithm) MarshalJSON() ([]byte, error) { type NoMethod BasicAutoscalingAlgorithm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BasicYarnAutoscalingConfig: Basic autoscaling configurations for -// YARN. +// BasicYarnAutoscalingConfig: Basic autoscaling configurations for YARN. type BasicYarnAutoscalingConfig struct { // GracefulDecommissionTimeout: Required. Timeout for YARN graceful - // decommissioning of Node Managers. Specifies the duration to wait for - // jobs to complete before forcefully removing workers (and potentially - // interrupting jobs). Only applicable to downscaling operations.Bounds: - // 0s, 1d. + // decommissioning of Node Managers. Specifies the duration to wait for jobs to + // complete before forcefully removing workers (and potentially interrupting + // jobs). Only applicable to downscaling operations.Bounds: 0s, 1d. GracefulDecommissionTimeout string `json:"gracefulDecommissionTimeout,omitempty"` - - // ScaleDownFactor: Required. Fraction of average YARN pending memory in - // the last cooldown period for which to remove workers. A scale-down - // factor of 1 will result in scaling down so that there is no available - // memory remaining after the update (more aggressive scaling). A - // scale-down factor of 0 disables removing workers, which can be - // beneficial for autoscaling a single job. See How autoscaling works - // for more information.Bounds: 0.0, 1.0. + // ScaleDownFactor: Required. Fraction of average YARN pending memory in the + // last cooldown period for which to remove workers. A scale-down factor of 1 + // will result in scaling down so that there is no available memory remaining + // after the update (more aggressive scaling). A scale-down factor of 0 + // disables removing workers, which can be beneficial for autoscaling a single + // job. See How autoscaling works for more information.Bounds: 0.0, 1.0. ScaleDownFactor float64 `json:"scaleDownFactor,omitempty"` - - // ScaleDownMinWorkerFraction: Optional. Minimum scale-down threshold as - // a fraction of total cluster size before scaling occurs. For example, - // in a 20-worker cluster, a threshold of 0.1 means the autoscaler must - // recommend at least a 2 worker scale-down for the cluster to scale. A - // threshold of 0 means the autoscaler will scale down on any - // recommended change.Bounds: 0.0, 1.0. Default: 0.0. + // ScaleDownMinWorkerFraction: Optional. Minimum scale-down threshold as a + // fraction of total cluster size before scaling occurs. For example, in a + // 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at + // least a 2 worker scale-down for the cluster to scale. A threshold of 0 means + // the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. + // Default: 0.0. ScaleDownMinWorkerFraction float64 `json:"scaleDownMinWorkerFraction,omitempty"` - - // ScaleUpFactor: Required. Fraction of average YARN pending memory in - // the last cooldown period for which to add workers. A scale-up factor - // of 1.0 will result in scaling up so that there is no pending memory - // remaining after the update (more aggressive scaling). A scale-up - // factor closer to 0 will result in a smaller magnitude of scaling up - // (less aggressive scaling). See How autoscaling works for more - // information.Bounds: 0.0, 1.0. + // ScaleUpFactor: Required. Fraction of average YARN pending memory in the last + // cooldown period for which to add workers. A scale-up factor of 1.0 will + // result in scaling up so that there is no pending memory remaining after the + // update (more aggressive scaling). A scale-up factor closer to 0 will result + // in a smaller magnitude of scaling up (less aggressive scaling). See How + // autoscaling works for more information.Bounds: 0.0, 1.0. ScaleUpFactor float64 `json:"scaleUpFactor,omitempty"` - - // ScaleUpMinWorkerFraction: Optional. Minimum scale-up threshold as a - // fraction of total cluster size before scaling occurs. For example, in - // a 20-worker cluster, a threshold of 0.1 means the autoscaler must - // recommend at least a 2-worker scale-up for the cluster to scale. A - // threshold of 0 means the autoscaler will scale up on any recommended - // change.Bounds: 0.0, 1.0. Default: 0.0. + // ScaleUpMinWorkerFraction: Optional. Minimum scale-up threshold as a fraction + // of total cluster size before scaling occurs. For example, in a 20-worker + // cluster, a threshold of 0.1 means the autoscaler must recommend at least a + // 2-worker scale-up for the cluster to scale. A threshold of 0 means the + // autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. + // Default: 0.0. ScaleUpMinWorkerFraction float64 `json:"scaleUpMinWorkerFraction,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "GracefulDecommissionTimeout") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "GracefulDecommissionTimeout") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "GracefulDecommissionTimeout") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "GracefulDecommissionTimeout") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BasicYarnAutoscalingConfig) MarshalJSON() ([]byte, error) { +func (s BasicYarnAutoscalingConfig) MarshalJSON() ([]byte, error) { type NoMethod BasicYarnAutoscalingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *BasicYarnAutoscalingConfig) UnmarshalJSON(data []byte) error { @@ -522,378 +485,294 @@ func (s *BasicYarnAutoscalingConfig) UnmarshalJSON(data []byte) error { type Binding struct { // Condition: The condition that is associated with this binding.If the // condition evaluates to true, then this binding applies to the current - // request.If the condition evaluates to false, then this binding does - // not apply to the current request. However, a different role binding - // might grant the same role to one or more of the members in this - // binding.To learn which resources support conditions in their IAM - // policies, see the IAM documentation + // request.If the condition evaluates to false, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the members in this binding.To learn which + // resources support conditions in their IAM policies, see the IAM + // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` - - // Members: Specifies the identities requesting access for a Cloud - // Platform resource. members can have the following values: allUsers: A - // special identifier that represents anyone who is on the internet; - // with or without a Google account. allAuthenticatedUsers: A special - // identifier that represents anyone who is authenticated with a Google - // account or a service account. user:{emailid}: An email address that - // represents a specific Google account. For example, alice@example.com - // . serviceAccount:{emailid}: An email address that represents a - // service account. For example, - // my-other-app@appspot.gserviceaccount.com. group:{emailid}: An email - // address that represents a Google group. For example, - // admins@example.com. deleted:user:{emailid}?uid={uniqueid}: An email - // address (plus unique identifier) representing a user that has been - // recently deleted. For example, - // alice@example.com?uid=123456789012345678901. If the user is - // recovered, this value reverts to user:{emailid} and the recovered - // user retains the role in the binding. - // deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address - // (plus unique identifier) representing a service account that has been - // recently deleted. For example, - // my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. - // If the service account is undeleted, this value reverts to - // serviceAccount:{emailid} and the undeleted service account retains - // the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An - // email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // admins@example.com?uid=123456789012345678901. If the group is - // recovered, this value reverts to group:{emailid} and the recovered - // group retains the role in the binding. domain:{domain}: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, google.com or example.com. + // Members: Specifies the identities requesting access for a Cloud Platform + // resource. members can have the following values: allUsers: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. allAuthenticatedUsers: A special identifier that represents + // anyone who is authenticated with a Google account or a service account. + // user:{emailid}: An email address that represents a specific Google account. + // For example, alice@example.com . serviceAccount:{emailid}: An email address + // that represents a service account. For example, + // my-other-app@appspot.gserviceaccount.com. group:{emailid}: An email address + // that represents a Google group. For example, admins@example.com. + // deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique + // identifier) representing a user that has been recently deleted. For example, + // alice@example.com?uid=123456789012345678901. If the user is recovered, this + // value reverts to user:{emailid} and the recovered user retains the role in + // the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email + // address (plus unique identifier) representing a service account that has + // been recently deleted. For example, + // my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the + // service account is undeleted, this value reverts to serviceAccount:{emailid} + // and the undeleted service account retains the role in the binding. + // deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique + // identifier) representing a Google group that has been recently deleted. For + // example, admins@example.com?uid=123456789012345678901. If the group is + // recovered, this value reverts to group:{emailid} and the recovered group + // retains the role in the binding. domain:{domain}: The G Suite domain + // (primary) that represents all the users of that domain. For example, + // google.com or example.com. Members []string `json:"members,omitempty"` - // Role: Role that is assigned to members. For example, roles/viewer, // roles/editor, or roles/owner. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CancelJobRequest: A request to cancel a job. type CancelJobRequest struct { } -// Cluster: Describes the identifying information, config, and status of -// a cluster of Compute Engine instances. +// Cluster: Describes the identifying information, config, and status of a +// cluster of Compute Engine instances. type Cluster struct { - // ClusterName: Required. The cluster name. Cluster names within a - // project must be unique. Names of deleted clusters can be reused. + // ClusterName: Required. The cluster name. Cluster names within a project must + // be unique. Names of deleted clusters can be reused. ClusterName string `json:"clusterName,omitempty"` - - // ClusterUuid: Output only. A cluster UUID (Unique Universal - // Identifier). Dataproc generates this value when it creates the - // cluster. + // ClusterUuid: Output only. A cluster UUID (Unique Universal Identifier). + // Dataproc generates this value when it creates the cluster. ClusterUuid string `json:"clusterUuid,omitempty"` - - // Config: Required. The cluster config. Note that Dataproc may set - // default values, and values may change when clusters are updated. + // Config: Required. The cluster config. Note that Dataproc may set default + // values, and values may change when clusters are updated. Config *ClusterConfig `json:"config,omitempty"` - - // Labels: Optional. The labels to associate with this cluster. Label - // keys must contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, - // but, if present, must contain 1 to 63 characters, and must conform to - // RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 - // labels can be associated with a cluster. + // Labels: Optional. The labels to associate with this cluster. Label keys must + // contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if + // present, must contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + // associated with a cluster. Labels map[string]string `json:"labels,omitempty"` - - // Metrics: Output only. Contains cluster daemon metrics such as HDFS - // and YARN stats.Beta Feature: This report is available for testing - // purposes only. It may be changed before final release. + // Metrics: Output only. Contains cluster daemon metrics such as HDFS and YARN + // stats.Beta Feature: This report is available for testing purposes only. It + // may be changed before final release. Metrics *ClusterMetrics `json:"metrics,omitempty"` - - // ProjectId: Required. The Google Cloud Platform project ID that the - // cluster belongs to. + // ProjectId: Required. The Google Cloud Platform project ID that the cluster + // belongs to. ProjectId string `json:"projectId,omitempty"` - // Status: Output only. Cluster status. Status *ClusterStatus `json:"status,omitempty"` - // StatusHistory: Output only. The previous cluster status. StatusHistory []*ClusterStatus `json:"statusHistory,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ClusterName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Cluster) MarshalJSON() ([]byte, error) { +func (s Cluster) MarshalJSON() ([]byte, error) { type NoMethod Cluster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClusterConfig: The cluster config. type ClusterConfig struct { - // AutoscalingConfig: Optional. Autoscaling config for the policy - // associated with the cluster. Cluster does not autoscale if this field - // is unset. + // AutoscalingConfig: Optional. Autoscaling config for the policy associated + // with the cluster. Cluster does not autoscale if this field is unset. AutoscalingConfig *AutoscalingConfig `json:"autoscalingConfig,omitempty"` - // ConfigBucket: Optional. A Cloud Storage bucket used to stage job - // dependencies, config files, and job driver console output. If you do - // not specify a staging bucket, Cloud Dataproc will determine a Cloud - // Storage location (US, ASIA, or EU) for your cluster's staging bucket - // according to the Compute Engine zone where your cluster is deployed, - // and then create and manage this project-level, per-location bucket - // (see Dataproc staging bucket + // dependencies, config files, and job driver console output. If you do not + // specify a staging bucket, Cloud Dataproc will determine a Cloud Storage + // location (US, ASIA, or EU) for your cluster's staging bucket according to + // the Compute Engine zone where your cluster is deployed, and then create and + // manage this project-level, per-location bucket (see Dataproc staging bucket // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). // This field requires a Cloud Storage bucket name, not a URI to a Cloud // Storage bucket. ConfigBucket string `json:"configBucket,omitempty"` - // EncryptionConfig: Optional. Encryption settings for the cluster. EncryptionConfig *EncryptionConfig `json:"encryptionConfig,omitempty"` - - // EndpointConfig: Optional. Port/endpoint configuration for this - // cluster + // EndpointConfig: Optional. Port/endpoint configuration for this cluster EndpointConfig *EndpointConfig `json:"endpointConfig,omitempty"` - - // GceClusterConfig: Optional. The shared Compute Engine config settings - // for all instances in a cluster. + // GceClusterConfig: Optional. The shared Compute Engine config settings for + // all instances in a cluster. GceClusterConfig *GceClusterConfig `json:"gceClusterConfig,omitempty"` - // GkeClusterConfig: Optional. The Kubernetes Engine config for Dataproc // clusters deployed to Kubernetes. Setting this is considered mutually - // exclusive with Compute Engine-based options such as - // gce_cluster_config, master_config, worker_config, - // secondary_worker_config, and autoscaling_config. + // exclusive with Compute Engine-based options such as gce_cluster_config, + // master_config, worker_config, secondary_worker_config, and + // autoscaling_config. GkeClusterConfig *GkeClusterConfig `json:"gkeClusterConfig,omitempty"` - - // InitializationActions: Optional. Commands to execute on each node - // after config is completed. By default, executables are run on master - // and all worker nodes. You can test a node's role metadata to run an - // executable on a master or worker node, as shown below using curl (you - // can also use wget): ROLE=$(curl -H Metadata-Flavor:Google + // InitializationActions: Optional. Commands to execute on each node after + // config is completed. By default, executables are run on master and all + // worker nodes. You can test a node's role metadata to run an executable on a + // master or worker node, as shown below using curl (you can also use wget): + // ROLE=$(curl -H Metadata-Flavor:Google // http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) - // if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... - // else ... worker specific actions ... fi + // if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else + // ... worker specific actions ... fi InitializationActions []*NodeInitializationAction `json:"initializationActions,omitempty"` - // LifecycleConfig: Optional. The config setting for auto delete cluster // schedule. LifecycleConfig *LifecycleConfig `json:"lifecycleConfig,omitempty"` - - // MasterConfig: Optional. The Compute Engine config settings for the - // master instance in a cluster. + // MasterConfig: Optional. The Compute Engine config settings for the master + // instance in a cluster. MasterConfig *InstanceGroupConfig `json:"masterConfig,omitempty"` - // MetastoreConfig: Optional. Metastore configuration. MetastoreConfig *MetastoreConfig `json:"metastoreConfig,omitempty"` - - // SecondaryWorkerConfig: Optional. The Compute Engine config settings - // for additional worker instances in a cluster. + // SecondaryWorkerConfig: Optional. The Compute Engine config settings for + // additional worker instances in a cluster. SecondaryWorkerConfig *InstanceGroupConfig `json:"secondaryWorkerConfig,omitempty"` - // SecurityConfig: Optional. Security related configuration. SecurityConfig *SecurityConfig `json:"securityConfig,omitempty"` - // SoftwareConfig: Optional. The config settings for software inside the // cluster. SoftwareConfig *SoftwareConfig `json:"softwareConfig,omitempty"` - - // TempBucket: Optional. A Cloud Storage bucket used to store ephemeral - // cluster and jobs data, such as Spark and MapReduce history files. If - // you do not specify a temp bucket, Dataproc will determine a Cloud - // Storage location (US, ASIA, or EU) for your cluster's temp bucket - // according to the Compute Engine zone where your cluster is deployed, - // and then create and manage this project-level, per-location bucket. - // The default bucket has a TTL of 90 days, but you can use any TTL (or - // none) if you specify a bucket. This field requires a Cloud Storage - // bucket name, not a URI to a Cloud Storage bucket. + // TempBucket: Optional. A Cloud Storage bucket used to store ephemeral cluster + // and jobs data, such as Spark and MapReduce history files. If you do not + // specify a temp bucket, Dataproc will determine a Cloud Storage location (US, + // ASIA, or EU) for your cluster's temp bucket according to the Compute Engine + // zone where your cluster is deployed, and then create and manage this + // project-level, per-location bucket. The default bucket has a TTL of 90 days, + // but you can use any TTL (or none) if you specify a bucket. This field + // requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket. TempBucket string `json:"tempBucket,omitempty"` - // WorkerConfig: Optional. The Compute Engine config settings for worker // instances in a cluster. WorkerConfig *InstanceGroupConfig `json:"workerConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AutoscalingConfig") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AutoscalingConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutoscalingConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AutoscalingConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClusterConfig) MarshalJSON() ([]byte, error) { +func (s ClusterConfig) MarshalJSON() ([]byte, error) { type NoMethod ClusterConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ClusterMetrics: Contains cluster daemon metrics, such as HDFS and -// YARN stats.Beta Feature: This report is available for testing -// purposes only. It may be changed before final release. +// ClusterMetrics: Contains cluster daemon metrics, such as HDFS and YARN +// stats.Beta Feature: This report is available for testing purposes only. It +// may be changed before final release. type ClusterMetrics struct { // HdfsMetrics: The HDFS metrics. HdfsMetrics map[string]string `json:"hdfsMetrics,omitempty"` - // YarnMetrics: The YARN metrics. YarnMetrics map[string]string `json:"yarnMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "HdfsMetrics") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HdfsMetrics") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HdfsMetrics") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClusterMetrics) MarshalJSON() ([]byte, error) { +func (s ClusterMetrics) MarshalJSON() ([]byte, error) { type NoMethod ClusterMetrics - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClusterOperation: The cluster operation triggered by a workflow. type ClusterOperation struct { // Done: Output only. Indicates the operation is done. Done bool `json:"done,omitempty"` - // Error: Output only. Error, if operation failed. Error string `json:"error,omitempty"` - // OperationId: Output only. The id of the cluster operation. OperationId string `json:"operationId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClusterOperation) MarshalJSON() ([]byte, error) { +func (s ClusterOperation) MarshalJSON() ([]byte, error) { type NoMethod ClusterOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClusterOperationMetadata: Metadata describing the operation. type ClusterOperationMetadata struct { // ClusterName: Output only. Name of the cluster for the operation. ClusterName string `json:"clusterName,omitempty"` - // ClusterUuid: Output only. Cluster UUID for the operation. ClusterUuid string `json:"clusterUuid,omitempty"` - // Description: Output only. Short description of operation. Description string `json:"description,omitempty"` - // Labels: Output only. Labels associated with the operation Labels map[string]string `json:"labels,omitempty"` - // OperationType: Output only. The operation type. OperationType string `json:"operationType,omitempty"` - // Status: Output only. Current operation status. Status *ClusterOperationStatus `json:"status,omitempty"` - // StatusHistory: Output only. The previous operation status. StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"` - // Warnings: Output only. Errors encountered during operation execution. Warnings []string `json:"warnings,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClusterOperationMetadata) MarshalJSON() ([]byte, error) { +func (s ClusterOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod ClusterOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClusterOperationStatus: The status of the operation. type ClusterOperationStatus struct { - // Details: Output only. A message containing any operation metadata - // details. + // Details: Output only. A message containing any operation metadata details. Details string `json:"details,omitempty"` - - // InnerState: Output only. A message containing the detailed operation - // state. + // InnerState: Output only. A message containing the detailed operation state. InnerState string `json:"innerState,omitempty"` - // State: Output only. A message containing the operation state. // // Possible values: @@ -902,227 +781,179 @@ type ClusterOperationStatus struct { // "RUNNING" - The operation is running. // "DONE" - The operation is done; either cancelled or completed. State string `json:"state,omitempty"` - // StateStartTime: Output only. The time this state was entered. StateStartTime string `json:"stateStartTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClusterOperationStatus) MarshalJSON() ([]byte, error) { +func (s ClusterOperationStatus) MarshalJSON() ([]byte, error) { type NoMethod ClusterOperationStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ClusterSelector: A selector that chooses target cluster for jobs -// based on metadata. +// ClusterSelector: A selector that chooses target cluster for jobs based on +// metadata. type ClusterSelector struct { - // ClusterLabels: Required. The cluster labels. Cluster must have all - // labels to match. + // ClusterLabels: Required. The cluster labels. Cluster must have all labels to + // match. ClusterLabels map[string]string `json:"clusterLabels,omitempty"` - - // Zone: Optional. The zone where workflow process executes. This - // parameter does not affect the selection of the cluster.If - // unspecified, the zone of the first cluster matching the selector is - // used. + // Zone: Optional. The zone where workflow process executes. This parameter + // does not affect the selection of the cluster.If unspecified, the zone of the + // first cluster matching the selector is used. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterLabels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterLabels") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterLabels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClusterSelector) MarshalJSON() ([]byte, error) { +func (s ClusterSelector) MarshalJSON() ([]byte, error) { type NoMethod ClusterSelector - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClusterStatus: The status of a cluster and its instances. type ClusterStatus struct { // Detail: Output only. Optional details of cluster's state. Detail string `json:"detail,omitempty"` - // State: Output only. The cluster's state. // // Possible values: // "UNKNOWN" - The cluster state is unknown. - // "CREATING" - The cluster is being created and set up. It is not - // ready for use. - // "RUNNING" - The cluster is currently running and healthy. It is - // ready for use. - // "ERROR" - The cluster encountered an error. It is not ready for + // "CREATING" - The cluster is being created and set up. It is not ready for // use. - // "ERROR_DUE_TO_UPDATE" - The cluster has encountered an error while - // being updated. Jobs can be submitted to the cluster, but the cluster - // cannot be updated. + // "RUNNING" - The cluster is currently running and healthy. It is ready for + // use. + // "ERROR" - The cluster encountered an error. It is not ready for use. + // "ERROR_DUE_TO_UPDATE" - The cluster has encountered an error while being + // updated. Jobs can be submitted to the cluster, but the cluster cannot be + // updated. // "DELETING" - The cluster is being deleted. It cannot be used. - // "UPDATING" - The cluster is being updated. It continues to accept - // and process jobs. + // "UPDATING" - The cluster is being updated. It continues to accept and + // process jobs. // "STOPPING" - The cluster is being stopped. It cannot be used. - // "STOPPED" - The cluster is currently stopped. It is not ready for - // use. + // "STOPPED" - The cluster is currently stopped. It is not ready for use. // "STARTING" - The cluster is being started. It is not ready for use. State string `json:"state,omitempty"` - - // StateStartTime: Output only. Time when this state was entered (see - // JSON representation of Timestamp + // StateStartTime: Output only. Time when this state was entered (see JSON + // representation of Timestamp // (https://developers.google.com/protocol-buffers/docs/proto3#json)). StateStartTime string `json:"stateStartTime,omitempty"` - - // Substate: Output only. Additional state information that includes - // status reported by the agent. + // Substate: Output only. Additional state information that includes status + // reported by the agent. // // Possible values: // "UNSPECIFIED" - The cluster substate is unknown. // "UNHEALTHY" - The cluster is known to be in an unhealthy state (for // example, critical daemons are not running or HDFS capacity is // exhausted).Applies to RUNNING state. - // "STALE_STATUS" - The agent-reported status is out of date (may - // occur if Dataproc loses communication with Agent).Applies to RUNNING - // state. + // "STALE_STATUS" - The agent-reported status is out of date (may occur if + // Dataproc loses communication with Agent).Applies to RUNNING state. Substate string `json:"substate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Detail") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Detail") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClusterStatus) MarshalJSON() ([]byte, error) { +func (s ClusterStatus) MarshalJSON() ([]byte, error) { type NoMethod ClusterStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DiagnoseClusterRequest: A request to collect cluster diagnostic -// information. +// DiagnoseClusterRequest: A request to collect cluster diagnostic information. type DiagnoseClusterRequest struct { } // DiagnoseClusterResults: The location of diagnostic output. type DiagnoseClusterResults struct { - // OutputUri: Output only. The Cloud Storage URI of the diagnostic - // output. The output report is a plain text file with a summary of - // collected diagnostics. + // OutputUri: Output only. The Cloud Storage URI of the diagnostic output. The + // output report is a plain text file with a summary of collected diagnostics. OutputUri string `json:"outputUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "OutputUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OutputUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OutputUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DiagnoseClusterResults) MarshalJSON() ([]byte, error) { +func (s DiagnoseClusterResults) MarshalJSON() ([]byte, error) { type NoMethod DiagnoseClusterResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DiskConfig: Specifies the config of disk options for a group of VM // instances. type DiskConfig struct { - // BootDiskSizeGb: Optional. Size in GB of the boot disk (default is - // 500GB). + // BootDiskSizeGb: Optional. Size in GB of the boot disk (default is 500GB). BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` - - // BootDiskType: Optional. Type of the boot disk (default is - // "pd-standard"). Valid values: "pd-balanced" (Persistent Disk Balanced - // Solid State Drive), "pd-ssd" (Persistent Disk Solid State Drive), or - // "pd-standard" (Persistent Disk Hard Disk Drive). See Disk types + // BootDiskType: Optional. Type of the boot disk (default is "pd-standard"). + // Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), + // "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent + // Disk Hard Disk Drive). See Disk types // (https://cloud.google.com/compute/docs/disks#disk-types). BootDiskType string `json:"bootDiskType,omitempty"` - - // NumLocalSsds: Number of attached SSDs, from 0 to 4 (default is 0). If - // SSDs are not attached, the boot disk is used to store runtime logs - // and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) - // data. If one or more SSDs are attached, this runtime bulk data is - // spread across them, and the boot disk contains only basic config and - // installed binaries. + // NumLocalSsds: Number of attached SSDs, from 0 to 4 (default is 0). If SSDs + // are not attached, the boot disk is used to store runtime logs and HDFS + // (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or + // more SSDs are attached, this runtime bulk data is spread across them, and + // the boot disk contains only basic config and installed binaries. NumLocalSsds int64 `json:"numLocalSsds,omitempty"` - // ForceSendFields is a list of field names (e.g. "BootDiskSizeGb") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BootDiskSizeGb") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BootDiskSizeGb") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DiskConfig) MarshalJSON() ([]byte, error) { +func (s DiskConfig) MarshalJSON() ([]byte, error) { type NoMethod DiskConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for Empty is empty -// JSON object {}. +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON +// representation for Empty is empty JSON object {}. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } @@ -1131,180 +962,140 @@ type EncryptionConfig struct { // GcePdKmsKeyName: Optional. The Cloud KMS key name to use for PD disk // encryption for all instances in the cluster. GcePdKmsKeyName string `json:"gcePdKmsKeyName,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcePdKmsKeyName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GcePdKmsKeyName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GcePdKmsKeyName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncryptionConfig) MarshalJSON() ([]byte, error) { +func (s EncryptionConfig) MarshalJSON() ([]byte, error) { type NoMethod EncryptionConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EndpointConfig: Endpoint config for this cluster type EndpointConfig struct { - // EnableHttpPortAccess: Optional. If true, enable http access to - // specific ports on the cluster from external sources. Defaults to - // false. + // EnableHttpPortAccess: Optional. If true, enable http access to specific + // ports on the cluster from external sources. Defaults to false. EnableHttpPortAccess bool `json:"enableHttpPortAccess,omitempty"` - - // HttpPorts: Output only. The map of port descriptions to URLs. Will - // only be populated if enable_http_port_access is true. + // HttpPorts: Output only. The map of port descriptions to URLs. Will only be + // populated if enable_http_port_access is true. HttpPorts map[string]string `json:"httpPorts,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "EnableHttpPortAccess") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "EnableHttpPortAccess") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnableHttpPortAccess") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnableHttpPortAccess") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EndpointConfig) MarshalJSON() ([]byte, error) { +func (s EndpointConfig) MarshalJSON() ([]byte, error) { type NoMethod EndpointConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec.Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec.Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if // requestor is the document owner" expression: "document.owner == // request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GceClusterConfig: Common config settings for resources of Compute -// Engine cluster instances, applicable to all instances in the cluster. +// GceClusterConfig: Common config settings for resources of Compute Engine +// cluster instances, applicable to all instances in the cluster. type GceClusterConfig struct { - // InternalIpOnly: Optional. If true, all instances in the cluster will - // only have internal IP addresses. By default, clusters are not - // restricted to internal IP addresses, and will have ephemeral external - // IP addresses assigned to each instance. This internal_ip_only - // restriction can only be enabled for subnetwork enabled networks, and - // all off-cluster dependencies must be configured to be accessible - // without external IP addresses. + // InternalIpOnly: Optional. If true, all instances in the cluster will only + // have internal IP addresses. By default, clusters are not restricted to + // internal IP addresses, and will have ephemeral external IP addresses + // assigned to each instance. This internal_ip_only restriction can only be + // enabled for subnetwork enabled networks, and all off-cluster dependencies + // must be configured to be accessible without external IP addresses. InternalIpOnly bool `json:"internalIpOnly,omitempty"` - - // Metadata: The Compute Engine metadata entries to add to all instances - // (see Project and instance metadata + // Metadata: The Compute Engine metadata entries to add to all instances (see + // Project and instance metadata // (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). Metadata map[string]string `json:"metadata,omitempty"` - - // NetworkUri: Optional. The Compute Engine network to be used for - // machine communications. Cannot be specified with subnetwork_uri. If - // neither network_uri nor subnetwork_uri is specified, the "default" - // network of the project is used, if it exists. Cannot be a "Custom - // Subnet Network" (see Using Subnetworks - // (https://cloud.google.com/compute/docs/subnetworks) for more - // information).A full URL, partial URI, or short name are valid. + // NetworkUri: Optional. The Compute Engine network to be used for machine + // communications. Cannot be specified with subnetwork_uri. If neither + // network_uri nor subnetwork_uri is specified, the "default" network of the + // project is used, if it exists. Cannot be a "Custom Subnet Network" (see + // Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for + // more information).A full URL, partial URI, or short name are valid. // Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default // projects/[project_id]/regions/global/default default NetworkUri string `json:"networkUri,omitempty"` - - // NodeGroupAffinity: Optional. Node Group Affinity for sole-tenant - // clusters. + // NodeGroupAffinity: Optional. Node Group Affinity for sole-tenant clusters. NodeGroupAffinity *NodeGroupAffinity `json:"nodeGroupAffinity,omitempty"` - - // PrivateIpv6GoogleAccess: Optional. The type of IPv6 access for a - // cluster. + // PrivateIpv6GoogleAccess: Optional. The type of IPv6 access for a cluster. // // Possible values: - // "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" - If unspecified, Compute - // Engine default behavior will apply, which is the same as - // INHERIT_FROM_SUBNETWORK. - // "INHERIT_FROM_SUBNETWORK" - Private access to and from Google - // Services configuration inherited from the subnetwork configuration. - // This is the default Compute Engine behavior. - // "OUTBOUND" - Enables outbound private IPv6 access to Google - // Services from the Dataproc cluster. - // "BIDIRECTIONAL" - Enables bidirectional private IPv6 access between - // Google Services and the Dataproc cluster. + // "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" - If unspecified, Compute Engine + // default behavior will apply, which is the same as INHERIT_FROM_SUBNETWORK. + // "INHERIT_FROM_SUBNETWORK" - Private access to and from Google Services + // configuration inherited from the subnetwork configuration. This is the + // default Compute Engine behavior. + // "OUTBOUND" - Enables outbound private IPv6 access to Google Services from + // the Dataproc cluster. + // "BIDIRECTIONAL" - Enables bidirectional private IPv6 access between Google + // Services and the Dataproc cluster. PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` - - // ReservationAffinity: Optional. Reservation Affinity for consuming - // Zonal reservation. + // ReservationAffinity: Optional. Reservation Affinity for consuming Zonal + // reservation. ReservationAffinity *ReservationAffinity `json:"reservationAffinity,omitempty"` - // ServiceAccount: Optional. The Dataproc service account // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) // (also see VM Data Plane identity @@ -1314,165 +1105,127 @@ type GceClusterConfig struct { // (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) // is used. ServiceAccount string `json:"serviceAccount,omitempty"` - - // ServiceAccountScopes: Optional. The URIs of service account scopes to - // be included in Compute Engine instances. The following base set of - // scopes is always included: - // https://www.googleapis.com/auth/cloud.useraccounts.readonly + // ServiceAccountScopes: Optional. The URIs of service account scopes to be + // included in Compute Engine instances. The following base set of scopes is + // always included: https://www.googleapis.com/auth/cloud.useraccounts.readonly // https://www.googleapis.com/auth/devstorage.read_write - // https://www.googleapis.com/auth/logging.writeIf no scopes are - // specified, the following defaults are also provided: + // https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the + // following defaults are also provided: // https://www.googleapis.com/auth/bigquery // https://www.googleapis.com/auth/bigtable.admin.table // https://www.googleapis.com/auth/bigtable.data // https://www.googleapis.com/auth/devstorage.full_control ServiceAccountScopes []string `json:"serviceAccountScopes,omitempty"` - - // ShieldedInstanceConfig: Optional. Shielded Instance Config for - // clusters using Compute Engine Shielded VMs + // ShieldedInstanceConfig: Optional. Shielded Instance Config for clusters + // using Compute Engine Shielded VMs // (https://cloud.google.com/security/shielded-cloud/shielded-vm). ShieldedInstanceConfig *ShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` - // SubnetworkUri: Optional. The Compute Engine subnetwork to be used for - // machine communications. Cannot be specified with network_uri.A full - // URL, partial URI, or short name are valid. Examples: + // machine communications. Cannot be specified with network_uri.A full URL, + // partial URI, or short name are valid. Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 // projects/[project_id]/regions/us-east1/subnetworks/sub0 sub0 SubnetworkUri string `json:"subnetworkUri,omitempty"` - - // Tags: The Compute Engine tags to add to all instances (see Tagging - // instances + // Tags: The Compute Engine tags to add to all instances (see Tagging instances // (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). Tags []string `json:"tags,omitempty"` - // ZoneUri: Optional. The zone where the Compute Engine cluster will be - // located. On a create request, it is required in the "global" region. - // If omitted in a non-global Dataproc region, the service will pick a - // zone in the corresponding Compute Engine region. On a get request, - // zone will always be present.A full URL, partial URI, or short name - // are valid. Examples: + // located. On a create request, it is required in the "global" region. If + // omitted in a non-global Dataproc region, the service will pick a zone in the + // corresponding Compute Engine region. On a get request, zone will always be + // present.A full URL, partial URI, or short name are valid. Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] // projects/[project_id]/zones/[zone] us-central1-f ZoneUri string `json:"zoneUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "InternalIpOnly") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InternalIpOnly") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InternalIpOnly") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GceClusterConfig) MarshalJSON() ([]byte, error) { +func (s GceClusterConfig) MarshalJSON() ([]byte, error) { type NoMethod GceClusterConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetIamPolicyRequest: Request message for GetIamPolicy method. type GetIamPolicyRequest struct { - // Options: OPTIONAL: A GetPolicyOptions object for specifying options - // to GetIamPolicy. + // Options: OPTIONAL: A GetPolicyOptions object for specifying options to + // GetIamPolicy. Options *GetPolicyOptions `json:"options,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Options") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Options") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Options") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Options") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s GetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod GetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetPolicyOptions: Encapsulates settings provided to GetIamPolicy. type GetPolicyOptions struct { // RequestedPolicyVersion: Optional. The policy format version to be - // returned.Valid values are 0, 1, and 3. Requests specifying an invalid - // value will be rejected.Requests for policies with any conditional - // bindings must specify version 3. Policies without any conditional - // bindings may specify any valid value or leave the field unset.To - // learn which resources support conditions in their IAM policies, see - // the IAM documentation + // returned.Valid values are 0, 1, and 3. Requests specifying an invalid value + // will be rejected.Requests for policies with any conditional bindings must + // specify version 3. Policies without any conditional bindings may specify any + // valid value or leave the field unset.To learn which resources support + // conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "RequestedPolicyVersion") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestedPolicyVersion") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "RequestedPolicyVersion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { +func (s GetPolicyOptions) MarshalJSON() ([]byte, error) { type NoMethod GetPolicyOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GkeClusterConfig: The GKE config for this cluster. type GkeClusterConfig struct { // NamespacedGkeDeploymentTarget: Optional. A target for the deployment. NamespacedGkeDeploymentTarget *NamespacedGkeDeploymentTarget `json:"namespacedGkeDeploymentTarget,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "NamespacedGkeDeploymentTarget") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "NamespacedGkeDeploymentTarget") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "NamespacedGkeDeploymentTarget") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "NamespacedGkeDeploymentTarget") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GkeClusterConfig) MarshalJSON() ([]byte, error) { +func (s GkeClusterConfig) MarshalJSON() ([]byte, error) { type NoMethod GkeClusterConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // HadoopJob: A Dataproc job for running Apache Hadoop MapReduce @@ -1480,660 +1233,511 @@ func (s *GkeClusterConfig) MarshalJSON() ([]byte, error) { // jobs on Apache Hadoop YARN // (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). type HadoopJob struct { - // ArchiveUris: Optional. HCFS URIs of archives to be extracted in the - // working directory of Hadoop drivers and tasks. Supported file types: - // .jar, .tar, .tar.gz, .tgz, or .zip. + // ArchiveUris: Optional. HCFS URIs of archives to be extracted in the working + // directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, + // .tar.gz, .tgz, or .zip. ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the driver. Do not include - // arguments, such as -libjars or -Dfoo=bar, that can be set as job - // properties, since a collision may occur that causes an incorrect job - // submission. + // arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, + // since a collision may occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` - - // FileUris: Optional. HCFS (Hadoop Compatible Filesystem) URIs of files - // to be copied to the working directory of Hadoop drivers and - // distributed tasks. Useful for naively parallel tasks. + // FileUris: Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be + // copied to the working directory of Hadoop drivers and distributed tasks. + // Useful for naively parallel tasks. FileUris []string `json:"fileUris,omitempty"` - - // JarFileUris: Optional. Jar file URIs to add to the CLASSPATHs of the - // Hadoop driver and tasks. + // JarFileUris: Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop + // driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - - // MainClass: The name of the driver's main class. The jar file - // containing the class must be in the default CLASSPATH or specified in - // jar_file_uris. + // MainClass: The name of the driver's main class. The jar file containing the + // class must be in the default CLASSPATH or specified in jar_file_uris. MainClass string `json:"mainClass,omitempty"` - - // MainJarFileUri: The HCFS URI of the jar file containing the main - // class. Examples: - // 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' + // MainJarFileUri: The HCFS URI of the jar file containing the main class. + // Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' // 'hdfs:/tmp/test-samples/custom-wordcount.jar' // 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' MainJarFileUri string `json:"mainJarFileUri,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure Hadoop. Properties that conflict with values set by the - // Dataproc API may be overwritten. Can include properties set in + // configure Hadoop. Properties that conflict with values set by the Dataproc + // API may be overwritten. Can include properties set in // /etc/hadoop/conf/*-site and classes in user code. Properties map[string]string `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArchiveUris") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HadoopJob) MarshalJSON() ([]byte, error) { +func (s HadoopJob) MarshalJSON() ([]byte, error) { type NoMethod HadoopJob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HiveJob: A Dataproc job for running Apache Hive -// (https://hive.apache.org/) queries on YARN. +// HiveJob: A Dataproc job for running Apache Hive (https://hive.apache.org/) +// queries on YARN. type HiveJob struct { - // ContinueOnFailure: Optional. Whether to continue executing queries if - // a query fails. The default value is false. Setting to true can be - // useful when executing independent parallel queries. + // ContinueOnFailure: Optional. Whether to continue executing queries if a + // query fails. The default value is false. Setting to true can be useful when + // executing independent parallel queries. ContinueOnFailure bool `json:"continueOnFailure,omitempty"` - - // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATH - // of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive - // SerDes and UDFs. + // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATH of the + // Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and + // UDFs. JarFileUris []string `json:"jarFileUris,omitempty"` - // Properties: Optional. A mapping of property names and values, used to - // configure Hive. Properties that conflict with values set by the - // Dataproc API may be overwritten. Can include properties set in - // /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and - // classes in user code. + // configure Hive. Properties that conflict with values set by the Dataproc API + // may be overwritten. Can include properties set in + // /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in + // user code. Properties map[string]string `json:"properties,omitempty"` - // QueryFileUri: The HCFS URI of the script that contains Hive queries. QueryFileUri string `json:"queryFileUri,omitempty"` - // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` - // ScriptVariables: Optional. Mapping of query variable names to values // (equivalent to the Hive command: SET name="value";). ScriptVariables map[string]string `json:"scriptVariables,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContinueOnFailure") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContinueOnFailure") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HiveJob) MarshalJSON() ([]byte, error) { +func (s HiveJob) MarshalJSON() ([]byte, error) { type NoMethod HiveJob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InjectCredentialsRequest: A request to inject credentials into a -// cluster. +// InjectCredentialsRequest: A request to inject credentials into a cluster. type InjectCredentialsRequest struct { // ClusterUuid: Required. The cluster UUID. ClusterUuid string `json:"clusterUuid,omitempty"` - - // CredentialsCiphertext: Required. The encrypted credentials being - // injected in to the cluster.The client is responsible for encrypting - // the credentials in a way that is supported by the cluster.A wrapped - // value is used here so that the actual contents of the encrypted - // credentials are not written to audit logs. + // CredentialsCiphertext: Required. The encrypted credentials being injected in + // to the cluster.The client is responsible for encrypting the credentials in a + // way that is supported by the cluster.A wrapped value is used here so that + // the actual contents of the encrypted credentials are not written to audit + // logs. CredentialsCiphertext string `json:"credentialsCiphertext,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterUuid") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterUuid") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterUuid") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InjectCredentialsRequest) MarshalJSON() ([]byte, error) { +func (s InjectCredentialsRequest) MarshalJSON() ([]byte, error) { type NoMethod InjectCredentialsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstanceGroupAutoscalingPolicyConfig: Configuration for the size -// bounds of an instance group, including its proportional size to other -// groups. +// InstanceGroupAutoscalingPolicyConfig: Configuration for the size bounds of +// an instance group, including its proportional size to other groups. type InstanceGroupAutoscalingPolicyConfig struct { - // MaxInstances: Optional. Maximum number of instances for this group. - // Required for primary workers. Note that by default, clusters will not - // use secondary workers. Required for secondary workers if the minimum - // secondary instances is set.Primary workers - Bounds: [min_instances, - // ). Required. Secondary workers - Bounds: [min_instances, ). Default: - // 0. + // MaxInstances: Optional. Maximum number of instances for this group. Required + // for primary workers. Note that by default, clusters will not use secondary + // workers. Required for secondary workers if the minimum secondary instances + // is set.Primary workers - Bounds: [min_instances, ). Required. Secondary + // workers - Bounds: [min_instances, ). Default: 0. MaxInstances int64 `json:"maxInstances,omitempty"` - - // MinInstances: Optional. Minimum number of instances for this - // group.Primary workers - Bounds: 2, max_instances. Default: 2. - // Secondary workers - Bounds: 0, max_instances. Default: 0. + // MinInstances: Optional. Minimum number of instances for this group.Primary + // workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: + // 0, max_instances. Default: 0. MinInstances int64 `json:"minInstances,omitempty"` - - // Weight: Optional. Weight for the instance group, which is used to - // determine the fraction of total workers in the cluster from this - // instance group. For example, if primary workers have weight 2, and - // secondary workers have weight 1, the cluster will have approximately - // 2 primary workers for each secondary worker.The cluster may not reach - // the specified balance if constrained by min/max bounds or other - // autoscaling settings. For example, if max_instances for secondary - // workers is 0, then only primary workers will be added. The cluster - // can also be out of balance when created.If weight is not set on any - // instance group, the cluster will default to equal weight for all - // groups: the cluster will attempt to maintain an equal number of - // workers in each group within the configured size bounds for each - // group. If weight is set for one group only, the cluster will default - // to zero weight on the unset group. For example if weight is set only - // on primary workers, the cluster will use primary workers only and no - // secondary workers. + // Weight: Optional. Weight for the instance group, which is used to determine + // the fraction of total workers in the cluster from this instance group. For + // example, if primary workers have weight 2, and secondary workers have weight + // 1, the cluster will have approximately 2 primary workers for each secondary + // worker.The cluster may not reach the specified balance if constrained by + // min/max bounds or other autoscaling settings. For example, if max_instances + // for secondary workers is 0, then only primary workers will be added. The + // cluster can also be out of balance when created.If weight is not set on any + // instance group, the cluster will default to equal weight for all groups: the + // cluster will attempt to maintain an equal number of workers in each group + // within the configured size bounds for each group. If weight is set for one + // group only, the cluster will default to zero weight on the unset group. For + // example if weight is set only on primary workers, the cluster will use + // primary workers only and no secondary workers. Weight int64 `json:"weight,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxInstances") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxInstances") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxInstances") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceGroupAutoscalingPolicyConfig) MarshalJSON() ([]byte, error) { +func (s InstanceGroupAutoscalingPolicyConfig) MarshalJSON() ([]byte, error) { type NoMethod InstanceGroupAutoscalingPolicyConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstanceGroupConfig: The config settings for Compute Engine resources -// in an instance group, such as a master or worker group. +// InstanceGroupConfig: The config settings for Compute Engine resources in an +// instance group, such as a master or worker group. type InstanceGroupConfig struct { - // Accelerators: Optional. The Compute Engine accelerator configuration - // for these instances. + // Accelerators: Optional. The Compute Engine accelerator configuration for + // these instances. Accelerators []*AcceleratorConfig `json:"accelerators,omitempty"` - // DiskConfig: Optional. Disk option config settings. DiskConfig *DiskConfig `json:"diskConfig,omitempty"` - - // ImageUri: Optional. The Compute Engine image resource used for - // cluster instances.The URI can represent an image or image - // family.Image examples: + // ImageUri: Optional. The Compute Engine image resource used for cluster + // instances.The URI can represent an image or image family.Image examples: // https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id] // projects/[project_id]/global/images/[image-id] image-idImage family // examples. Dataproc will use the most recent image from the family: // https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name] - // projects/[project_id]/global/images/family/[custom-image-family-name]I - // f the URI is unspecified, it will be inferred from - // SoftwareConfig.image_version or the system default. + // projects/[project_id]/global/images/family/[custom-image-family-name]If the + // URI is unspecified, it will be inferred from SoftwareConfig.image_version or + // the system default. ImageUri string `json:"imageUri,omitempty"` - - // InstanceNames: Output only. The list of instance names. Dataproc - // derives the names from cluster_name, num_instances, and the instance - // group. + // InstanceNames: Output only. The list of instance names. Dataproc derives the + // names from cluster_name, num_instances, and the instance group. InstanceNames []string `json:"instanceNames,omitempty"` - // InstanceReferences: Output only. List of references to Compute Engine // instances. InstanceReferences []*InstanceReference `json:"instanceReferences,omitempty"` - - // IsPreemptible: Output only. Specifies that this instance group - // contains preemptible instances. + // IsPreemptible: Output only. Specifies that this instance group contains + // preemptible instances. IsPreemptible bool `json:"isPreemptible,omitempty"` - - // MachineTypeUri: Optional. The Compute Engine machine type used for - // cluster instances.A full URL, partial URI, or short name are valid. - // Examples: + // MachineTypeUri: Optional. The Compute Engine machine type used for cluster + // instances.A full URL, partial URI, or short name are valid. Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 // projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 - // n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto - // Zone Placement + // n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone + // Placement // (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) - // feature, you must use the short name of the machine type resource, - // for example, n1-standard-2. + // feature, you must use the short name of the machine type resource, for + // example, n1-standard-2. MachineTypeUri string `json:"machineTypeUri,omitempty"` - - // ManagedGroupConfig: Output only. The config for Compute Engine - // Instance Group Manager that manages this group. This is only used for - // preemptible instance groups. + // ManagedGroupConfig: Output only. The config for Compute Engine Instance + // Group Manager that manages this group. This is only used for preemptible + // instance groups. ManagedGroupConfig *ManagedGroupConfig `json:"managedGroupConfig,omitempty"` - - // MinCpuPlatform: Specifies the minimum cpu platform for the Instance - // Group. See Dataproc -> Minimum CPU Platform + // MinCpuPlatform: Specifies the minimum cpu platform for the Instance Group. + // See Dataproc -> Minimum CPU Platform // (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). MinCpuPlatform string `json:"minCpuPlatform,omitempty"` - - // NumInstances: Optional. The number of VM instances in the instance - // group. For HA cluster master_config groups, must be set to 3. For - // standard cluster master_config groups, must be set to 1. + // NumInstances: Optional. The number of VM instances in the instance group. + // For HA cluster master_config groups, must be set to 3. For standard cluster + // master_config groups, must be set to 1. NumInstances int64 `json:"numInstances,omitempty"` - - // Preemptibility: Optional. Specifies the preemptibility of the - // instance group.The default value for master and worker groups is - // NON_PREEMPTIBLE. This default cannot be changed.The default value for - // secondary instances is PREEMPTIBLE. + // Preemptibility: Optional. Specifies the preemptibility of the instance + // group.The default value for master and worker groups is NON_PREEMPTIBLE. + // This default cannot be changed.The default value for secondary instances is + // PREEMPTIBLE. // // Possible values: - // "PREEMPTIBILITY_UNSPECIFIED" - Preemptibility is unspecified, the - // system will choose the appropriate setting for each instance group. - // "NON_PREEMPTIBLE" - Instances are non-preemptible.This option is - // allowed for all instance groups and is the only valid value for - // Master and Worker instance groups. - // "PREEMPTIBLE" - Instances are preemptible.This option is allowed - // only for secondary worker groups. + // "PREEMPTIBILITY_UNSPECIFIED" - Preemptibility is unspecified, the system + // will choose the appropriate setting for each instance group. + // "NON_PREEMPTIBLE" - Instances are non-preemptible.This option is allowed + // for all instance groups and is the only valid value for Master and Worker + // instance groups. + // "PREEMPTIBLE" - Instances are preemptible.This option is allowed only for + // secondary worker groups. Preemptibility string `json:"preemptibility,omitempty"` - // ForceSendFields is a list of field names (e.g. "Accelerators") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accelerators") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accelerators") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceGroupConfig) MarshalJSON() ([]byte, error) { +func (s InstanceGroupConfig) MarshalJSON() ([]byte, error) { type NoMethod InstanceGroupConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstanceReference: A reference to a Compute Engine instance. type InstanceReference struct { // InstanceId: The unique identifier of the Compute Engine instance. InstanceId string `json:"instanceId,omitempty"` - // InstanceName: The user-friendly name of the Compute Engine instance. InstanceName string `json:"instanceName,omitempty"` - // PublicKey: The public key used for sharing data with this instance. PublicKey string `json:"publicKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "InstanceId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InstanceId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InstanceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceReference) MarshalJSON() ([]byte, error) { +func (s InstanceReference) MarshalJSON() ([]byte, error) { type NoMethod InstanceReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstantiateWorkflowTemplateRequest: A request to instantiate a -// workflow template. +// InstantiateWorkflowTemplateRequest: A request to instantiate a workflow +// template. type InstantiateWorkflowTemplateRequest struct { // InstanceId: Deprecated. Please use request_id field instead. InstanceId string `json:"instanceId,omitempty"` - - // Parameters: Optional. Map from parameter names to values that should - // be used for those parameters. Values may not exceed 1000 characters. + // Parameters: Optional. Map from parameter names to values that should be used + // for those parameters. Values may not exceed 1000 characters. Parameters map[string]string `json:"parameters,omitempty"` - // RequestId: Optional. A tag that prevents multiple concurrent workflow - // instances with the same tag from running. This mitigates risk of - // concurrent instances started due to retries.It is recommended to - // always set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag - // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), + // instances with the same tag from running. This mitigates risk of concurrent + // instances started due to retries.It is recommended to always set this value + // to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The + // tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), // and hyphens (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` - - // Version: Optional. The version of workflow template to instantiate. - // If specified, the workflow will be instantiated only if the current - // version of the workflow template has the supplied version.This option - // cannot be used to instantiate a previous version of workflow - // template. + // Version: Optional. The version of workflow template to instantiate. If + // specified, the workflow will be instantiated only if the current version of + // the workflow template has the supplied version.This option cannot be used to + // instantiate a previous version of workflow template. Version int64 `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "InstanceId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InstanceId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InstanceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstantiateWorkflowTemplateRequest) MarshalJSON() ([]byte, error) { +func (s InstantiateWorkflowTemplateRequest) MarshalJSON() ([]byte, error) { type NoMethod InstantiateWorkflowTemplateRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Job: A Dataproc job resource. type Job struct { - // Done: Output only. Indicates whether the job is completed. If the - // value is false, the job is still in progress. If true, the job is - // completed, and status.state field will indicate if it was successful, - // failed, or cancelled. + // Done: Output only. Indicates whether the job is completed. If the value is + // false, the job is still in progress. If true, the job is completed, and + // status.state field will indicate if it was successful, failed, or cancelled. Done bool `json:"done,omitempty"` - // DriverControlFilesUri: Output only. If present, the location of - // miscellaneous control files which may be used as part of job setup - // and handling. If not present, control files may be placed in the same - // location as driver_output_uri. + // miscellaneous control files which may be used as part of job setup and + // handling. If not present, control files may be placed in the same location + // as driver_output_uri. DriverControlFilesUri string `json:"driverControlFilesUri,omitempty"` - - // DriverOutputResourceUri: Output only. A URI pointing to the location - // of the stdout of the job's driver program. + // DriverOutputResourceUri: Output only. A URI pointing to the location of the + // stdout of the job's driver program. DriverOutputResourceUri string `json:"driverOutputResourceUri,omitempty"` - // HadoopJob: Optional. Job is a Hadoop job. HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` - // HiveJob: Optional. Job is a Hive job. HiveJob *HiveJob `json:"hiveJob,omitempty"` - - // JobUuid: Output only. A UUID that uniquely identifies a job within - // the project over time. This is in contrast to a user-settable - // reference.job_id that may be reused over time. + // JobUuid: Output only. A UUID that uniquely identifies a job within the + // project over time. This is in contrast to a user-settable reference.job_id + // that may be reused over time. JobUuid string `json:"jobUuid,omitempty"` - - // Labels: Optional. The labels to associate with this job. Label keys - // must contain 1 to 63 characters, and must conform to RFC 1035 - // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, - // but, if present, must contain 1 to 63 characters, and must conform to - // RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 - // labels can be associated with a job. + // Labels: Optional. The labels to associate with this job. Label keys must + // contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if + // present, must contain 1 to 63 characters, and must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + // associated with a job. Labels map[string]string `json:"labels,omitempty"` - // PigJob: Optional. Job is a Pig job. PigJob *PigJob `json:"pigJob,omitempty"` - - // Placement: Required. Job information, including how, when, and where - // to run the job. + // Placement: Required. Job information, including how, when, and where to run + // the job. Placement *JobPlacement `json:"placement,omitempty"` - // PrestoJob: Optional. Job is a Presto job. PrestoJob *PrestoJob `json:"prestoJob,omitempty"` - // PysparkJob: Optional. Job is a PySpark job. PysparkJob *PySparkJob `json:"pysparkJob,omitempty"` - - // Reference: Optional. The fully qualified reference to the job, which - // can be used to obtain the equivalent REST path of the job resource. - // If this property is not specified when a job is created, the server - // generates a job_id. + // Reference: Optional. The fully qualified reference to the job, which can be + // used to obtain the equivalent REST path of the job resource. If this + // property is not specified when a job is created, the server generates a + // job_id. Reference *JobReference `json:"reference,omitempty"` - // Scheduling: Optional. Job scheduling configuration. Scheduling *JobScheduling `json:"scheduling,omitempty"` - // SparkJob: Optional. Job is a Spark job. SparkJob *SparkJob `json:"sparkJob,omitempty"` - // SparkRJob: Optional. Job is a SparkR job. SparkRJob *SparkRJob `json:"sparkRJob,omitempty"` - // SparkSqlJob: Optional. Job is a SparkSql job. SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"` - - // Status: Output only. The job status. Additional application-specific - // status information may be contained in the type_job and - // yarn_applications fields. + // Status: Output only. The job status. Additional application-specific status + // information may be contained in the type_job and yarn_applications fields. Status *JobStatus `json:"status,omitempty"` - // StatusHistory: Output only. The previous job status. StatusHistory []*JobStatus `json:"statusHistory,omitempty"` - - // SubmittedBy: Output only. The email address of the user submitting - // the job. For jobs submitted on the cluster, the address is - // username@hostname. + // SubmittedBy: Output only. The email address of the user submitting the job. + // For jobs submitted on the cluster, the address is username@hostname. SubmittedBy string `json:"submittedBy,omitempty"` - - // YarnApplications: Output only. The collection of YARN applications - // spun up by this job.Beta Feature: This report is available for - // testing purposes only. It may be changed before final release. + // YarnApplications: Output only. The collection of YARN applications spun up + // by this job.Beta Feature: This report is available for testing purposes + // only. It may be changed before final release. YarnApplications []*YarnApplication `json:"yarnApplications,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Job) MarshalJSON() ([]byte, error) { +func (s Job) MarshalJSON() ([]byte, error) { type NoMethod Job - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobMetadata: Job Operation metadata. type JobMetadata struct { // JobId: Output only. The job id. JobId string `json:"jobId,omitempty"` - // OperationType: Output only. Operation type. OperationType string `json:"operationType,omitempty"` - // StartTime: Output only. Job submission time. StartTime string `json:"startTime,omitempty"` - // Status: Output only. Most recent job status. Status *JobStatus `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "JobId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "JobId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JobId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobMetadata) MarshalJSON() ([]byte, error) { +func (s JobMetadata) MarshalJSON() ([]byte, error) { type NoMethod JobMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobPlacement: Dataproc job config. type JobPlacement struct { - // ClusterLabels: Optional. Cluster labels to identify a cluster where - // the job will be submitted. + // ClusterLabels: Optional. Cluster labels to identify a cluster where the job + // will be submitted. ClusterLabels map[string]string `json:"clusterLabels,omitempty"` - // ClusterName: Required. The name of the cluster where the job will be // submitted. ClusterName string `json:"clusterName,omitempty"` - - // ClusterUuid: Output only. A cluster UUID generated by the Dataproc - // service when the job is submitted. + // ClusterUuid: Output only. A cluster UUID generated by the Dataproc service + // when the job is submitted. ClusterUuid string `json:"clusterUuid,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterLabels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterLabels") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterLabels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobPlacement) MarshalJSON() ([]byte, error) { +func (s JobPlacement) MarshalJSON() ([]byte, error) { type NoMethod JobPlacement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobReference: Encapsulates the full scoping used to reference a job. type JobReference struct { - // JobId: Optional. The job ID, which must be unique within the project. - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), or hyphens (-). The maximum length is 100 - // characters.If not specified by the caller, the job ID will be - // provided by the server. + // JobId: Optional. The job ID, which must be unique within the project. The ID + // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or + // hyphens (-). The maximum length is 100 characters.If not specified by the + // caller, the job ID will be provided by the server. JobId string `json:"jobId,omitempty"` - - // ProjectId: Optional. The ID of the Google Cloud Platform project that - // the job belongs to. If specified, must match the request project ID. + // ProjectId: Optional. The ID of the Google Cloud Platform project that the + // job belongs to. If specified, must match the request project ID. ProjectId string `json:"projectId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "JobId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "JobId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JobId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobReference) MarshalJSON() ([]byte, error) { +func (s JobReference) MarshalJSON() ([]byte, error) { type NoMethod JobReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobScheduling: Job scheduling options. type JobScheduling struct { - // MaxFailuresPerHour: Optional. Maximum number of times per hour a - // driver may be restarted as a result of driver terminating with - // non-zero code before job is reported failed.A job may be reported as - // thrashing if driver exits with non-zero code 4 times within 10 minute - // window.Maximum value is 10. + // MaxFailuresPerHour: Optional. Maximum number of times per hour a driver may + // be restarted as a result of driver terminating with non-zero code before job + // is reported failed.A job may be reported as thrashing if driver exits with + // non-zero code 4 times within 10 minute window.Maximum value is 10. MaxFailuresPerHour int64 `json:"maxFailuresPerHour,omitempty"` - - // MaxFailuresTotal: Optional. Maximum number of times in total a driver - // may be restarted as a result of driver exiting with non-zero code - // before job is reported failed. Maximum value is 240. + // MaxFailuresTotal: Optional. Maximum number of times in total a driver may be + // restarted as a result of driver exiting with non-zero code before job is + // reported failed. Maximum value is 240. MaxFailuresTotal int64 `json:"maxFailuresTotal,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MaxFailuresPerHour") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "MaxFailuresPerHour") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxFailuresPerHour") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MaxFailuresPerHour") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobScheduling) MarshalJSON() ([]byte, error) { +func (s JobScheduling) MarshalJSON() ([]byte, error) { type NoMethod JobScheduling - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobStatus: Dataproc job status. @@ -2141,621 +1745,480 @@ type JobStatus struct { // Details: Output only. Optional Job state details, such as an error // description if the state is ERROR. Details string `json:"details,omitempty"` - // State: Output only. A state message specifying the overall job state. // // Possible values: // "STATE_UNSPECIFIED" - The job state is unknown. - // "PENDING" - The job is pending; it has been submitted, but is not - // yet running. - // "SETUP_DONE" - Job has been received by the service and completed - // initial setup; it will soon be submitted to the cluster. + // "PENDING" - The job is pending; it has been submitted, but is not yet + // running. + // "SETUP_DONE" - Job has been received by the service and completed initial + // setup; it will soon be submitted to the cluster. // "RUNNING" - The job is running on the cluster. - // "CANCEL_PENDING" - A CancelJob request has been received, but is - // pending. - // "CANCEL_STARTED" - Transient in-flight resources have been - // canceled, and the request to cancel the running job has been issued - // to the cluster. + // "CANCEL_PENDING" - A CancelJob request has been received, but is pending. + // "CANCEL_STARTED" - Transient in-flight resources have been canceled, and + // the request to cancel the running job has been issued to the cluster. // "CANCELLED" - The job cancellation was successful. // "DONE" - The job has completed successfully. // "ERROR" - The job has completed, but encountered an error. - // "ATTEMPT_FAILURE" - Job attempt has failed. The detail field - // contains failure details for this attempt.Applies to restartable jobs - // only. + // "ATTEMPT_FAILURE" - Job attempt has failed. The detail field contains + // failure details for this attempt.Applies to restartable jobs only. State string `json:"state,omitempty"` - // StateStartTime: Output only. The time when this state was entered. StateStartTime string `json:"stateStartTime,omitempty"` - - // Substate: Output only. Additional state information, which includes - // status reported by the agent. + // Substate: Output only. Additional state information, which includes status + // reported by the agent. // // Possible values: // "UNSPECIFIED" - The job substate is unknown. - // "SUBMITTED" - The Job is submitted to the agent.Applies to RUNNING + // "SUBMITTED" - The Job is submitted to the agent.Applies to RUNNING state. + // "QUEUED" - The Job has been received and is awaiting execution (it may be + // waiting for a condition to be met). See the "details" field for the reason + // for the delay.Applies to RUNNING state. + // "STALE_STATUS" - The agent-reported status is out of date, which may be + // caused by a loss of communication between the agent and Dataproc. If the + // agent does not send a timely update, the job will fail.Applies to RUNNING // state. - // "QUEUED" - The Job has been received and is awaiting execution (it - // may be waiting for a condition to be met). See the "details" field - // for the reason for the delay.Applies to RUNNING state. - // "STALE_STATUS" - The agent-reported status is out of date, which - // may be caused by a loss of communication between the agent and - // Dataproc. If the agent does not send a timely update, the job will - // fail.Applies to RUNNING state. Substate string `json:"substate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobStatus) MarshalJSON() ([]byte, error) { +func (s JobStatus) MarshalJSON() ([]byte, error) { type NoMethod JobStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // KerberosConfig: Specifies Kerberos related configuration. type KerberosConfig struct { - // CrossRealmTrustAdminServer: Optional. The admin server (IP or - // hostname) for the remote trusted realm in a cross realm trust - // relationship. + // CrossRealmTrustAdminServer: Optional. The admin server (IP or hostname) for + // the remote trusted realm in a cross realm trust relationship. CrossRealmTrustAdminServer string `json:"crossRealmTrustAdminServer,omitempty"` - // CrossRealmTrustKdc: Optional. The KDC (IP or hostname) for the remote // trusted realm in a cross realm trust relationship. CrossRealmTrustKdc string `json:"crossRealmTrustKdc,omitempty"` - - // CrossRealmTrustRealm: Optional. The remote realm the Dataproc - // on-cluster KDC will trust, should the user enable cross realm trust. + // CrossRealmTrustRealm: Optional. The remote realm the Dataproc on-cluster KDC + // will trust, should the user enable cross realm trust. CrossRealmTrustRealm string `json:"crossRealmTrustRealm,omitempty"` - - // CrossRealmTrustSharedPasswordUri: Optional. The Cloud Storage URI of - // a KMS encrypted file containing the shared password between the - // on-cluster Kerberos realm and the remote trusted realm, in a cross - // realm trust relationship. + // CrossRealmTrustSharedPasswordUri: Optional. The Cloud Storage URI of a KMS + // encrypted file containing the shared password between the on-cluster + // Kerberos realm and the remote trusted realm, in a cross realm trust + // relationship. CrossRealmTrustSharedPasswordUri string `json:"crossRealmTrustSharedPasswordUri,omitempty"` - - // EnableKerberos: Optional. Flag to indicate whether to Kerberize the - // cluster (default: false). Set this field to true to enable Kerberos - // on a cluster. + // EnableKerberos: Optional. Flag to indicate whether to Kerberize the cluster + // (default: false). Set this field to true to enable Kerberos on a cluster. EnableKerberos bool `json:"enableKerberos,omitempty"` - // KdcDbKeyUri: Optional. The Cloud Storage URI of a KMS encrypted file // containing the master key of the KDC database. KdcDbKeyUri string `json:"kdcDbKeyUri,omitempty"` - - // KeyPasswordUri: Optional. The Cloud Storage URI of a KMS encrypted - // file containing the password to the user provided key. For the - // self-signed certificate, this password is generated by Dataproc. + // KeyPasswordUri: Optional. The Cloud Storage URI of a KMS encrypted file + // containing the password to the user provided key. For the self-signed + // certificate, this password is generated by Dataproc. KeyPasswordUri string `json:"keyPasswordUri,omitempty"` - - // KeystorePasswordUri: Optional. The Cloud Storage URI of a KMS - // encrypted file containing the password to the user provided keystore. - // For the self-signed certificate, this password is generated by - // Dataproc. + // KeystorePasswordUri: Optional. The Cloud Storage URI of a KMS encrypted file + // containing the password to the user provided keystore. For the self-signed + // certificate, this password is generated by Dataproc. KeystorePasswordUri string `json:"keystorePasswordUri,omitempty"` - - // KeystoreUri: Optional. The Cloud Storage URI of the keystore file - // used for SSL encryption. If not provided, Dataproc will provide a - // self-signed certificate. + // KeystoreUri: Optional. The Cloud Storage URI of the keystore file used for + // SSL encryption. If not provided, Dataproc will provide a self-signed + // certificate. KeystoreUri string `json:"keystoreUri,omitempty"` - // KmsKeyUri: Optional. The uri of the KMS key used to encrypt various // sensitive files. KmsKeyUri string `json:"kmsKeyUri,omitempty"` - // Realm: Optional. The name of the on-cluster Kerberos realm. If not // specified, the uppercased domain of hostnames will be the realm. Realm string `json:"realm,omitempty"` - - // RootPrincipalPasswordUri: Optional. The Cloud Storage URI of a KMS - // encrypted file containing the root principal password. + // RootPrincipalPasswordUri: Optional. The Cloud Storage URI of a KMS encrypted + // file containing the root principal password. RootPrincipalPasswordUri string `json:"rootPrincipalPasswordUri,omitempty"` - - // TgtLifetimeHours: Optional. The lifetime of the ticket granting - // ticket, in hours. If not specified, or user specifies 0, then default - // value 10 will be used. + // TgtLifetimeHours: Optional. The lifetime of the ticket granting ticket, in + // hours. If not specified, or user specifies 0, then default value 10 will be + // used. TgtLifetimeHours int64 `json:"tgtLifetimeHours,omitempty"` - - // TruststorePasswordUri: Optional. The Cloud Storage URI of a KMS - // encrypted file containing the password to the user provided - // truststore. For the self-signed certificate, this password is - // generated by Dataproc. + // TruststorePasswordUri: Optional. The Cloud Storage URI of a KMS encrypted + // file containing the password to the user provided truststore. For the + // self-signed certificate, this password is generated by Dataproc. TruststorePasswordUri string `json:"truststorePasswordUri,omitempty"` - - // TruststoreUri: Optional. The Cloud Storage URI of the truststore file - // used for SSL encryption. If not provided, Dataproc will provide a - // self-signed certificate. + // TruststoreUri: Optional. The Cloud Storage URI of the truststore file used + // for SSL encryption. If not provided, Dataproc will provide a self-signed + // certificate. TruststoreUri string `json:"truststoreUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CrossRealmTrustAdminServer") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CrossRealmTrustAdminServer") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CrossRealmTrustAdminServer") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CrossRealmTrustAdminServer") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KerberosConfig) MarshalJSON() ([]byte, error) { +func (s KerberosConfig) MarshalJSON() ([]byte, error) { type NoMethod KerberosConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LifecycleConfig: Specifies the cluster auto-delete schedule -// configuration. +// LifecycleConfig: Specifies the cluster auto-delete schedule configuration. type LifecycleConfig struct { - // AutoDeleteTime: Optional. The time when cluster will be auto-deleted. - // (see JSON representation of Timestamp + // AutoDeleteTime: Optional. The time when cluster will be auto-deleted. (see + // JSON representation of Timestamp // (https://developers.google.com/protocol-buffers/docs/proto3#json)). AutoDeleteTime string `json:"autoDeleteTime,omitempty"` - - // AutoDeleteTtl: Optional. The lifetime duration of cluster. The - // cluster will be auto-deleted at the end of this period. Minimum value - // is 10 minutes; maximum value is 14 days (see JSON representation of - // Duration + // AutoDeleteTtl: Optional. The lifetime duration of cluster. The cluster will + // be auto-deleted at the end of this period. Minimum value is 10 minutes; + // maximum value is 14 days (see JSON representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). AutoDeleteTtl string `json:"autoDeleteTtl,omitempty"` - - // IdleDeleteTtl: Optional. The duration to keep the cluster alive while - // idling (when no jobs are running). Passing this threshold will cause - // the cluster to be deleted. Minimum value is 5 minutes; maximum value - // is 14 days (see JSON representation of Duration + // IdleDeleteTtl: Optional. The duration to keep the cluster alive while idling + // (when no jobs are running). Passing this threshold will cause the cluster to + // be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON + // representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). IdleDeleteTtl string `json:"idleDeleteTtl,omitempty"` - - // IdleStartTime: Output only. The time when cluster became idle (most - // recent job finished) and became eligible for deletion due to idleness - // (see JSON representation of Timestamp + // IdleStartTime: Output only. The time when cluster became idle (most recent + // job finished) and became eligible for deletion due to idleness (see JSON + // representation of Timestamp // (https://developers.google.com/protocol-buffers/docs/proto3#json)). IdleStartTime string `json:"idleStartTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoDeleteTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutoDeleteTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AutoDeleteTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LifecycleConfig) MarshalJSON() ([]byte, error) { +func (s LifecycleConfig) MarshalJSON() ([]byte, error) { type NoMethod LifecycleConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAutoscalingPoliciesResponse: A response to a request to list -// autoscaling policies in a project. +// ListAutoscalingPoliciesResponse: A response to a request to list autoscaling +// policies in a project. type ListAutoscalingPoliciesResponse struct { - // NextPageToken: Output only. This token is included in the response if - // there are more results to fetch. + // NextPageToken: Output only. This token is included in the response if there + // are more results to fetch. NextPageToken string `json:"nextPageToken,omitempty"` - // Policies: Output only. Autoscaling policies list. Policies []*AutoscalingPolicy `json:"policies,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAutoscalingPoliciesResponse) MarshalJSON() ([]byte, error) { +func (s ListAutoscalingPoliciesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAutoscalingPoliciesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListClustersResponse: The list of all clusters in a project. type ListClustersResponse struct { // Clusters: Output only. The clusters in the project. Clusters []*Cluster `json:"clusters,omitempty"` - - // NextPageToken: Output only. This token is included in the response if - // there are more results to fetch. To fetch additional results, provide - // this value as the page_token in a subsequent ListClustersRequest. + // NextPageToken: Output only. This token is included in the response if there + // are more results to fetch. To fetch additional results, provide this value + // as the page_token in a subsequent ListClustersRequest. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Clusters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Clusters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Clusters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListClustersResponse) MarshalJSON() ([]byte, error) { +func (s ListClustersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListClustersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListJobsResponse: A list of jobs in a project. type ListJobsResponse struct { // Jobs: Output only. Jobs list. Jobs []*Job `json:"jobs,omitempty"` - - // NextPageToken: Optional. This token is included in the response if - // there are more results to fetch. To fetch additional results, provide - // this value as the page_token in a subsequent ListJobsRequest. + // NextPageToken: Optional. This token is included in the response if there are + // more results to fetch. To fetch additional results, provide this value as + // the page_token in a subsequent ListJobsRequest. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Jobs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Jobs") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Jobs") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListJobsResponse) MarshalJSON() ([]byte, error) { +func (s ListJobsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListJobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListWorkflowTemplatesResponse: A response to a request to list -// workflow templates in a project. +// ListWorkflowTemplatesResponse: A response to a request to list workflow +// templates in a project. type ListWorkflowTemplatesResponse struct { - // NextPageToken: Output only. This token is included in the response if - // there are more results to fetch. To fetch additional results, provide - // this value as the page_token in a subsequent - // ListWorkflowTemplatesRequest. + // NextPageToken: Output only. This token is included in the response if there + // are more results to fetch. To fetch additional results, provide this value + // as the page_token in a subsequent ListWorkflowTemplatesRequest. NextPageToken string `json:"nextPageToken,omitempty"` - // Templates: Output only. WorkflowTemplates list. Templates []*WorkflowTemplate `json:"templates,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListWorkflowTemplatesResponse) MarshalJSON() ([]byte, error) { +func (s ListWorkflowTemplatesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListWorkflowTemplatesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LoggingConfig: The runtime logging config of the job. type LoggingConfig struct { - // DriverLogLevels: The per-package log levels for the driver. This may - // include "root" package name to configure rootLogger. Examples: - // 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' + // DriverLogLevels: The per-package log levels for the driver. This may include + // "root" package name to configure rootLogger. Examples: 'com.google = FATAL', + // 'root = INFO', 'org.apache = DEBUG' DriverLogLevels map[string]string `json:"driverLogLevels,omitempty"` - // ForceSendFields is a list of field names (e.g. "DriverLogLevels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DriverLogLevels") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DriverLogLevels") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LoggingConfig) MarshalJSON() ([]byte, error) { +func (s LoggingConfig) MarshalJSON() ([]byte, error) { type NoMethod LoggingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ManagedCluster: Cluster that is managed by the workflow. type ManagedCluster struct { - // ClusterName: Required. The cluster name prefix. A unique cluster name - // will be formed by appending a random suffix.The name must contain - // only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must - // begin with a letter. Cannot begin or end with hyphen. Must consist of - // between 2 and 35 characters. + // ClusterName: Required. The cluster name prefix. A unique cluster name will + // be formed by appending a random suffix.The name must contain only lower-case + // letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. + // Cannot begin or end with hyphen. Must consist of between 2 and 35 + // characters. ClusterName string `json:"clusterName,omitempty"` - // Config: Required. The cluster configuration. Config *ClusterConfig `json:"config,omitempty"` - - // Labels: Optional. The labels to associate with this cluster.Label - // keys must be between 1 and 63 characters long, and must conform to - // the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values - // must be between 1 and 63 characters long, and must conform to the - // following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more - // than 32 labels can be associated with a given cluster. + // Labels: Optional. The labels to associate with this cluster.Label keys must + // be between 1 and 63 characters long, and must conform to the following PCRE + // regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 + // characters long, and must conform to the following PCRE regular expression: + // \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a + // given cluster. Labels map[string]string `json:"labels,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedCluster) MarshalJSON() ([]byte, error) { +func (s ManagedCluster) MarshalJSON() ([]byte, error) { type NoMethod ManagedCluster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ManagedGroupConfig: Specifies the resources used to actively manage -// an instance group. +// ManagedGroupConfig: Specifies the resources used to actively manage an +// instance group. type ManagedGroupConfig struct { // InstanceGroupManagerName: Output only. The name of the Instance Group // Manager for this group. InstanceGroupManagerName string `json:"instanceGroupManagerName,omitempty"` - - // InstanceTemplateName: Output only. The name of the Instance Template - // used for the Managed Instance Group. + // InstanceTemplateName: Output only. The name of the Instance Template used + // for the Managed Instance Group. InstanceTemplateName string `json:"instanceTemplateName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "InstanceGroupManagerName") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "InstanceGroupManagerName") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InstanceGroupManagerName") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InstanceGroupManagerName") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedGroupConfig) MarshalJSON() ([]byte, error) { +func (s ManagedGroupConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedGroupConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetastoreConfig: Specifies a Metastore configuration. type MetastoreConfig struct { - // DataprocMetastoreService: Required. Resource name of an existing - // Dataproc Metastore service.Example: - // projects/[project_id]/locations/[dataproc_region]/services/[service-na - // me] + // DataprocMetastoreService: Required. Resource name of an existing Dataproc + // Metastore service.Example: + // projects/[project_id]/locations/[dataproc_region]/services/[service-name] DataprocMetastoreService string `json:"dataprocMetastoreService,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DataprocMetastoreService") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DataprocMetastoreService") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataprocMetastoreService") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DataprocMetastoreService") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetastoreConfig) MarshalJSON() ([]byte, error) { +func (s MetastoreConfig) MarshalJSON() ([]byte, error) { type NoMethod MetastoreConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NamespacedGkeDeploymentTarget: A full, namespace-isolated deployment -// target for an existing GKE cluster. +// NamespacedGkeDeploymentTarget: A full, namespace-isolated deployment target +// for an existing GKE cluster. type NamespacedGkeDeploymentTarget struct { - // ClusterNamespace: Optional. A namespace within the GKE cluster to - // deploy into. + // ClusterNamespace: Optional. A namespace within the GKE cluster to deploy + // into. ClusterNamespace string `json:"clusterNamespace,omitempty"` - - // TargetGkeCluster: Optional. The target GKE cluster to deploy to. - // Format: + // TargetGkeCluster: Optional. The target GKE cluster to deploy to. Format: // 'projects/{project}/locations/{location}/clusters/{cluster_id}' TargetGkeCluster string `json:"targetGkeCluster,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterNamespace") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterNamespace") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClusterNamespace") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NamespacedGkeDeploymentTarget) MarshalJSON() ([]byte, error) { +func (s NamespacedGkeDeploymentTarget) MarshalJSON() ([]byte, error) { type NoMethod NamespacedGkeDeploymentTarget - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NodeGroupAffinity: Node Group Affinity for clusters using sole-tenant -// node groups. +// NodeGroupAffinity: Node Group Affinity for clusters using sole-tenant node +// groups. type NodeGroupAffinity struct { // NodeGroupUri: Required. The URI of a sole-tenant node group resource - // (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) - // that the cluster will be created on.A full URL, partial URI, or node - // group name are valid. Examples: + // (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that + // the cluster will be created on.A full URL, partial URI, or node group name + // are valid. Examples: // https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 // projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 // node-group-1 NodeGroupUri string `json:"nodeGroupUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "NodeGroupUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NodeGroupUri") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NodeGroupUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NodeGroupAffinity) MarshalJSON() ([]byte, error) { +func (s NodeGroupAffinity) MarshalJSON() ([]byte, error) { type NoMethod NodeGroupAffinity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NodeInitializationAction: Specifies an executable to run on a fully @@ -2763,415 +2226,323 @@ func (s *NodeGroupAffinity) MarshalJSON() ([]byte, error) { type NodeInitializationAction struct { // ExecutableFile: Required. Cloud Storage URI of executable file. ExecutableFile string `json:"executableFile,omitempty"` - - // ExecutionTimeout: Optional. Amount of time executable has to - // complete. Default is 10 minutes (see JSON representation of Duration + // ExecutionTimeout: Optional. Amount of time executable has to complete. + // Default is 10 minutes (see JSON representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster - // creation fails with an explanatory error message (the name of the - // executable that caused the error and the exceeded timeout period) if - // the executable is not completed at end of the timeout period. + // creation fails with an explanatory error message (the name of the executable + // that caused the error and the exceeded timeout period) if the executable is + // not completed at end of the timeout period. ExecutionTimeout string `json:"executionTimeout,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExecutableFile") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutableFile") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutableFile") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NodeInitializationAction) MarshalJSON() ([]byte, error) { +func (s NodeInitializationAction) MarshalJSON() ([]byte, error) { type NoMethod NodeInitializationAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is false, it means the operation is still in - // progress. If true, the operation is completed, and either error or - // response is available. + // Done: If the value is false, it means the operation is still in progress. If + // true, the operation is completed, and either error or response is available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the name should be a resource name ending with - // operations/{unique_id}. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the name + // should be a resource name ending with operations/{unique_id}. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as Delete, the - // response is google.protobuf.Empty. If the original method is standard - // Get/Create/Update, the response should be the resource. For other - // methods, the response should have the type XxxResponse, where Xxx is - // the original method name. For example, if the original method name is - // TakeSnapshot(), the inferred response type is TakeSnapshotResponse. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as Delete, the response is + // google.protobuf.Empty. If the original method is standard Get/Create/Update, + // the response should be the resource. For other methods, the response should + // have the type XxxResponse, where Xxx is the original method name. For + // example, if the original method name is TakeSnapshot(), the inferred + // response type is TakeSnapshotResponse. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderedJob: A job executed by the workflow. type OrderedJob struct { // HadoopJob: Optional. Job is a Hadoop job. HadoopJob *HadoopJob `json:"hadoopJob,omitempty"` - // HiveJob: Optional. Job is a Hive job. HiveJob *HiveJob `json:"hiveJob,omitempty"` - - // Labels: Optional. The labels to associate with this job.Label keys - // must be between 1 and 63 characters long, and must conform to the - // following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be - // between 1 and 63 characters long, and must conform to the following - // regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels - // can be associated with a given job. + // Labels: Optional. The labels to associate with this job.Label keys must be + // between 1 and 63 characters long, and must conform to the following regular + // expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 + // characters long, and must conform to the following regular expression: + // \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a + // given job. Labels map[string]string `json:"labels,omitempty"` - // PigJob: Optional. Job is a Pig job. PigJob *PigJob `json:"pigJob,omitempty"` - // PrerequisiteStepIds: Optional. The optional list of prerequisite job - // step_ids. If not specified, the job will start at the beginning of - // workflow. + // step_ids. If not specified, the job will start at the beginning of workflow. PrerequisiteStepIds []string `json:"prerequisiteStepIds,omitempty"` - // PrestoJob: Optional. Job is a Presto job. PrestoJob *PrestoJob `json:"prestoJob,omitempty"` - // PysparkJob: Optional. Job is a PySpark job. PysparkJob *PySparkJob `json:"pysparkJob,omitempty"` - // Scheduling: Optional. Job scheduling configuration. Scheduling *JobScheduling `json:"scheduling,omitempty"` - // SparkJob: Optional. Job is a Spark job. SparkJob *SparkJob `json:"sparkJob,omitempty"` - // SparkRJob: Optional. Job is a SparkR job. SparkRJob *SparkRJob `json:"sparkRJob,omitempty"` - // SparkSqlJob: Optional. Job is a SparkSql job. SparkSqlJob *SparkSqlJob `json:"sparkSqlJob,omitempty"` - - // StepId: Required. The step id. The id must be unique among all jobs - // within the template.The step id is used as prefix for job id, as job - // goog-dataproc-workflow-step-id label, and in prerequisiteStepIds - // field from other steps.The id must contain only letters (a-z, A-Z), - // numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end - // with underscore or hyphen. Must consist of between 3 and 50 - // characters. + // StepId: Required. The step id. The id must be unique among all jobs within + // the template.The step id is used as prefix for job id, as job + // goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from + // other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), and hyphens (-). Cannot begin or end with underscore or + // hyphen. Must consist of between 3 and 50 characters. StepId string `json:"stepId,omitempty"` - // ForceSendFields is a list of field names (e.g. "HadoopJob") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HadoopJob") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HadoopJob") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderedJob) MarshalJSON() ([]byte, error) { +func (s OrderedJob) MarshalJSON() ([]byte, error) { type NoMethod OrderedJob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ParameterValidation: Configuration for parameter validation. type ParameterValidation struct { // Regex: Validation based on regular expressions. Regex *RegexValidation `json:"regex,omitempty"` - // Values: Validation based on a list of allowed values. Values *ValueValidation `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Regex") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Regex") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Regex") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ParameterValidation) MarshalJSON() ([]byte, error) { +func (s ParameterValidation) MarshalJSON() ([]byte, error) { type NoMethod ParameterValidation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PigJob: A Dataproc job for running Apache Pig -// (https://pig.apache.org/) queries on YARN. +// PigJob: A Dataproc job for running Apache Pig (https://pig.apache.org/) +// queries on YARN. type PigJob struct { - // ContinueOnFailure: Optional. Whether to continue executing queries if - // a query fails. The default value is false. Setting to true can be - // useful when executing independent parallel queries. + // ContinueOnFailure: Optional. Whether to continue executing queries if a + // query fails. The default value is false. Setting to true can be useful when + // executing independent parallel queries. ContinueOnFailure bool `json:"continueOnFailure,omitempty"` - - // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATH - // of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig - // UDFs. + // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATH of the + // Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. JarFileUris []string `json:"jarFileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure Pig. Properties that conflict with values set by the - // Dataproc API may be overwritten. Can include properties set in - // /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and - // classes in user code. + // configure Pig. Properties that conflict with values set by the Dataproc API + // may be overwritten. Can include properties set in + // /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in + // user code. Properties map[string]string `json:"properties,omitempty"` - - // QueryFileUri: The HCFS URI of the script that contains the Pig - // queries. + // QueryFileUri: The HCFS URI of the script that contains the Pig queries. QueryFileUri string `json:"queryFileUri,omitempty"` - // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` - // ScriptVariables: Optional. Mapping of query variable names to values // (equivalent to the Pig command: name=[value]). ScriptVariables map[string]string `json:"scriptVariables,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContinueOnFailure") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContinueOnFailure") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContinueOnFailure") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PigJob) MarshalJSON() ([]byte, error) { +func (s PigJob) MarshalJSON() ([]byte, error) { type NoMethod PigJob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources.A Policy is a -// collection of bindings. A binding binds one or more members to a -// single role. Members can be user accounts, service accounts, Google -// groups, and domains (such as G Suite). A role is a named list of -// permissions; each role can be an IAM predefined role or a -// user-created custom role.For some types of Google Cloud resources, a -// binding can also specify a condition, which is a logical expression -// that allows access to a resource only if the expression evaluates to -// true. A condition can add constraints based on attributes of the -// request, the resource, or both. To learn which resources support -// conditions in their IAM policies, see the IAM documentation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which specifies +// access controls for Google Cloud resources.A Policy is a collection of +// bindings. A binding binds one or more members to a single role. Members can +// be user accounts, service accounts, Google groups, and domains (such as G +// Suite). A role is a named list of permissions; each role can be an IAM +// predefined role or a user-created custom role.For some types of Google Cloud +// resources, a binding can also specify a condition, which is a logical +// expression that allows access to a resource only if the expression evaluates +// to true. A condition can add constraints based on attributes of the request, +// the resource, or both. To learn which resources support conditions in their +// IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies).JSON // example: { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type Policy struct { - // Bindings: Associates a list of members to a role. Optionally, may - // specify a condition that determines how and when the bindings are - // applied. Each of the bindings must contain at least one member. + // Bindings: Associates a list of members to a role. Optionally, may specify a + // condition that determines how and when the bindings are applied. Each of the + // bindings must contain at least one member. Bindings []*Binding `json:"bindings,omitempty"` - - // Etag: etag is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the etag in - // the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An etag is returned in the response to - // getIamPolicy, and systems are expected to put that etag in the - // request to setIamPolicy to ensure that their change will be applied - // to the same version of the policy.Important: If you use IAM - // Conditions, you must include the etag field whenever you call - // setIamPolicy. If you omit this field, then IAM allows you to - // overwrite a version 3 policy with a version 1 policy, and all of the - // conditions in the version 3 policy are lost. + // Etag: etag is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the etag in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An etag is returned in the response to getIamPolicy, and systems + // are expected to put that etag in the request to setIamPolicy to ensure that + // their change will be applied to the same version of the policy.Important: If + // you use IAM Conditions, you must include the etag field whenever you call + // setIamPolicy. If you omit this field, then IAM allows you to overwrite a + // version 3 policy with a version 1 policy, and all of the conditions in the + // version 3 policy are lost. Etag string `json:"etag,omitempty"` - - // Version: Specifies the format of the policy.Valid values are 0, 1, - // and 3. Requests that specify an invalid value are rejected.Any - // operation that affects conditional role bindings must specify version - // 3. This requirement applies to the following operations: Getting a - // policy that includes a conditional role binding Adding a conditional - // role binding to a policy Changing a conditional role binding in a - // policy Removing any role binding, with or without a condition, from a - // policy that includes conditionsImportant: If you use IAM Conditions, - // you must include the etag field whenever you call setIamPolicy. If - // you omit this field, then IAM allows you to overwrite a version 3 - // policy with a version 1 policy, and all of the conditions in the - // version 3 policy are lost.If a policy does not include any - // conditions, operations on that policy may specify any valid version - // or leave the field unset.To learn which resources support conditions + // Version: Specifies the format of the policy.Valid values are 0, 1, and 3. + // Requests that specify an invalid value are rejected.Any operation that + // affects conditional role bindings must specify version 3. This requirement + // applies to the following operations: Getting a policy that includes a + // conditional role binding Adding a conditional role binding to a policy + // Changing a conditional role binding in a policy Removing any role binding, + // with or without a condition, from a policy that includes + // conditionsImportant: If you use IAM Conditions, you must include the etag + // field whenever you call setIamPolicy. If you omit this field, then IAM + // allows you to overwrite a version 3 policy with a version 1 policy, and all + // of the conditions in the version 3 policy are lost.If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset.To learn which resources support conditions // in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Bindings") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PrestoJob: A Dataproc job for running Presto (https://prestosql.io/) // queries. IMPORTANT: The Dataproc Presto Optional Component -// (https://cloud.google.com/dataproc/docs/concepts/components/presto) -// must be enabled when the cluster is created to submit a Presto job to -// the cluster. +// (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be +// enabled when the cluster is created to submit a Presto job to the cluster. type PrestoJob struct { // ClientTags: Optional. Presto client tags to attach to this query ClientTags []string `json:"clientTags,omitempty"` - - // ContinueOnFailure: Optional. Whether to continue executing queries if - // a query fails. The default value is false. Setting to true can be - // useful when executing independent parallel queries. + // ContinueOnFailure: Optional. Whether to continue executing queries if a + // query fails. The default value is false. Setting to true can be useful when + // executing independent parallel queries. ContinueOnFailure bool `json:"continueOnFailure,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - - // OutputFormat: Optional. The format in which query output will be - // displayed. See the Presto documentation for supported output formats + // OutputFormat: Optional. The format in which query output will be displayed. + // See the Presto documentation for supported output formats OutputFormat string `json:"outputFormat,omitempty"` - - // Properties: Optional. A mapping of property names to values. Used to - // set Presto session properties - // (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to - // using the --session flag in the Presto CLI + // Properties: Optional. A mapping of property names to values. Used to set + // Presto session properties + // (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using + // the --session flag in the Presto CLI Properties map[string]string `json:"properties,omitempty"` - // QueryFileUri: The HCFS URI of the script that contains SQL queries. QueryFileUri string `json:"queryFileUri,omitempty"` - // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientTags") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientTags") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientTags") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PrestoJob) MarshalJSON() ([]byte, error) { +func (s PrestoJob) MarshalJSON() ([]byte, error) { type NoMethod PrestoJob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PySparkJob: A Dataproc job for running Apache PySpark @@ -3182,125 +2553,98 @@ type PySparkJob struct { // working directory of each executor. Supported file types: .jar, .tar, // .tar.gz, .tgz, and .zip. ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the driver. Do not include // arguments, such as --conf, that can be set as job properties, since a // collision may occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` - - // FileUris: Optional. HCFS URIs of files to be placed in the working - // directory of each executor. Useful for naively parallel tasks. + // FileUris: Optional. HCFS URIs of files to be placed in the working directory + // of each executor. Useful for naively parallel tasks. FileUris []string `json:"fileUris,omitempty"` - - // JarFileUris: Optional. HCFS URIs of jar files to add to the - // CLASSPATHs of the Python driver and tasks. + // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATHs of + // the Python driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - - // MainPythonFileUri: Required. The HCFS URI of the main Python file to - // use as the driver. Must be a .py file. + // MainPythonFileUri: Required. The HCFS URI of the main Python file to use as + // the driver. Must be a .py file. MainPythonFileUri string `json:"mainPythonFileUri,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure PySpark. Properties that conflict with values set by the - // Dataproc API may be overwritten. Can include properties set in + // configure PySpark. Properties that conflict with values set by the Dataproc + // API may be overwritten. Can include properties set in // /etc/spark/conf/spark-defaults.conf and classes in user code. Properties map[string]string `json:"properties,omitempty"` - - // PythonFileUris: Optional. HCFS file URIs of Python files to pass to - // the PySpark framework. Supported file types: .py, .egg, and .zip. + // PythonFileUris: Optional. HCFS file URIs of Python files to pass to the + // PySpark framework. Supported file types: .py, .egg, and .zip. PythonFileUris []string `json:"pythonFileUris,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArchiveUris") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PySparkJob) MarshalJSON() ([]byte, error) { +func (s PySparkJob) MarshalJSON() ([]byte, error) { type NoMethod PySparkJob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // QueryList: A list of queries to run on a cluster. type QueryList struct { - // Queries: Required. The queries to execute. You do not need to end a - // query expression with a semicolon. Multiple queries can be specified - // in one string by separating each with a semicolon. Here is an example - // of a Dataproc API snippet that uses a QueryList to specify a HiveJob: - // "hiveJob": { "queryList": { "queries": [ "query1", "query2", - // "query3;query4", ] } } + // Queries: Required. The queries to execute. You do not need to end a query + // expression with a semicolon. Multiple queries can be specified in one string + // by separating each with a semicolon. Here is an example of a Dataproc API + // snippet that uses a QueryList to specify a HiveJob: "hiveJob": { + // "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } } Queries []string `json:"queries,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Queries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Queries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Queries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Queries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *QueryList) MarshalJSON() ([]byte, error) { +func (s QueryList) MarshalJSON() ([]byte, error) { type NoMethod QueryList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RegexValidation: Validation based on regular expressions. type RegexValidation struct { - // Regexes: Required. RE2 regular expressions used to validate the - // parameter's value. The value must match the regex in its entirety - // (substring matches are not sufficient). + // Regexes: Required. RE2 regular expressions used to validate the parameter's + // value. The value must match the regex in its entirety (substring matches are + // not sufficient). Regexes []string `json:"regexes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Regexes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Regexes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Regexes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Regexes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegexValidation) MarshalJSON() ([]byte, error) { +func (s RegexValidation) MarshalJSON() ([]byte, error) { type NoMethod RegexValidation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReservationAffinity: Reservation Affinity for consuming Zonal -// reservation. +// ReservationAffinity: Reservation Affinity for consuming Zonal reservation. type ReservationAffinity struct { // ConsumeReservationType: Optional. Type of reservation to consume // @@ -3308,40 +2652,29 @@ type ReservationAffinity struct { // "TYPE_UNSPECIFIED" // "NO_RESERVATION" - Do not consume from any allocated capacity. // "ANY_RESERVATION" - Consume any reservation available. - // "SPECIFIC_RESERVATION" - Must consume from a specific reservation. - // Must specify key value fields for specifying the reservations. + // "SPECIFIC_RESERVATION" - Must consume from a specific reservation. Must + // specify key value fields for specifying the reservations. ConsumeReservationType string `json:"consumeReservationType,omitempty"` - // Key: Optional. Corresponds to the label key of reservation resource. Key string `json:"key,omitempty"` - - // Values: Optional. Corresponds to the label values of reservation - // resource. + // Values: Optional. Corresponds to the label values of reservation resource. Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConsumeReservationType") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ConsumeReservationType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConsumeReservationType") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConsumeReservationType") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReservationAffinity) MarshalJSON() ([]byte, error) { +func (s ReservationAffinity) MarshalJSON() ([]byte, error) { type NoMethod ReservationAffinity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SecurityConfig: Security related configuration, including encryption, @@ -3349,130 +2682,105 @@ func (s *ReservationAffinity) MarshalJSON() ([]byte, error) { type SecurityConfig struct { // KerberosConfig: Optional. Kerberos related configuration. KerberosConfig *KerberosConfig `json:"kerberosConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "KerberosConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KerberosConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "KerberosConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecurityConfig) MarshalJSON() ([]byte, error) { +func (s SecurityConfig) MarshalJSON() ([]byte, error) { type NoMethod SecurityConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetIamPolicyRequest: Request message for SetIamPolicy method. type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the resource. - // The size of the policy is limited to a few 10s of KB. An empty policy - // is a valid policy but certain Cloud Platform services (such as - // Projects) might reject them. + // Policy: REQUIRED: The complete policy to be applied to the resource. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Cloud Platform services (such as Projects) might reject + // them. Policy *Policy `json:"policy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ShieldedInstanceConfig: Shielded Instance Config for clusters using -// Compute Engine Shielded VMs +// ShieldedInstanceConfig: Shielded Instance Config for clusters using Compute +// Engine Shielded VMs // (https://cloud.google.com/security/shielded-cloud/shielded-vm). type ShieldedInstanceConfig struct { // EnableIntegrityMonitoring: Optional. Defines whether instances have // integrity monitoring enabled. EnableIntegrityMonitoring bool `json:"enableIntegrityMonitoring,omitempty"` - - // EnableSecureBoot: Optional. Defines whether instances have Secure - // Boot enabled. - EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` - - // EnableVtpm: Optional. Defines whether instances have the vTPM + // EnableSecureBoot: Optional. Defines whether instances have Secure Boot // enabled. + EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` + // EnableVtpm: Optional. Defines whether instances have the vTPM enabled. EnableVtpm bool `json:"enableVtpm,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "EnableIntegrityMonitoring") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnableIntegrityMonitoring") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "EnableIntegrityMonitoring") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "EnableIntegrityMonitoring") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ShieldedInstanceConfig) MarshalJSON() ([]byte, error) { +func (s ShieldedInstanceConfig) MarshalJSON() ([]byte, error) { type NoMethod ShieldedInstanceConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SoftwareConfig: Specifies the selection and config of software inside -// the cluster. +// SoftwareConfig: Specifies the selection and config of software inside the +// cluster. type SoftwareConfig struct { - // ImageVersion: Optional. The version of software inside the cluster. - // It must be one of the supported Dataproc Versions + // ImageVersion: Optional. The version of software inside the cluster. It must + // be one of the supported Dataproc Versions // (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), - // such as "1.2" (including a subminor version, such as "1.2.29"), or - // the "preview" version + // such as "1.2" (including a subminor version, such as "1.2.29"), or the + // "preview" version // (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). // If unspecified, it defaults to the latest Debian version. ImageVersion string `json:"imageVersion,omitempty"` - // OptionalComponents: The set of optional components to activate on the // cluster. // // Possible values: - // "COMPONENT_UNSPECIFIED" - Unspecified component. Specifying this - // will cause Cluster creation to fail. - // "ANACONDA" - The Anaconda python distribution. The Anaconda - // component is not supported in the Dataproc 2.0 image. The 2.0 image - // is pre-installed with Miniconda. + // "COMPONENT_UNSPECIFIED" - Unspecified component. Specifying this will + // cause Cluster creation to fail. + // "ANACONDA" - The Anaconda python distribution. The Anaconda component is + // not supported in the Dataproc 2.0 image. The 2.0 image is pre-installed with + // Miniconda. // "DOCKER" - Docker // "DRUID" - The Druid query engine. // "FLINK" - Flink // "HBASE" - HBase. - // "HIVE_WEBHCAT" - The Hive Web HCatalog (the REST service for - // accessing HCatalog). + // "HIVE_WEBHCAT" - The Hive Web HCatalog (the REST service for accessing + // HCatalog). // "JUPYTER" - The Jupyter Notebook. // "KERBEROS" - The Kerberos security feature. // "PRESTO" - The Presto query engine. @@ -3481,611 +2789,478 @@ type SoftwareConfig struct { // "ZEPPELIN" - The Zeppelin notebook. // "ZOOKEEPER" - The Zookeeper service. OptionalComponents []string `json:"optionalComponents,omitempty"` - - // Properties: Optional. The properties to set on daemon config - // files.Property keys are specified in prefix:property format, for - // example core:hadoop.tmp.dir. The following are supported prefixes and - // their mappings: capacity-scheduler: capacity-scheduler.xml core: - // core-site.xml distcp: distcp-default.xml hdfs: hdfs-site.xml hive: - // hive-site.xml mapred: mapred-site.xml pig: pig.properties spark: - // spark-defaults.conf yarn: yarn-site.xmlFor more information, see - // Cluster properties + // Properties: Optional. The properties to set on daemon config files.Property + // keys are specified in prefix:property format, for example + // core:hadoop.tmp.dir. The following are supported prefixes and their + // mappings: capacity-scheduler: capacity-scheduler.xml core: core-site.xml + // distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: + // mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: + // yarn-site.xmlFor more information, see Cluster properties // (https://cloud.google.com/dataproc/docs/concepts/cluster-properties). Properties map[string]string `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageVersion") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ImageVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SoftwareConfig) MarshalJSON() ([]byte, error) { +func (s SoftwareConfig) MarshalJSON() ([]byte, error) { type NoMethod SoftwareConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SparkJob: A Dataproc job for running Apache Spark -// (http://spark.apache.org/) applications on YARN. The specification of -// the main method to call to drive the job. Specify either the jar file -// that contains the main class or the main class name. To pass both a -// main jar and a main class in that jar, add the jar to -// CommonJob.jar_file_uris, and then specify the main class name in +// SparkJob: A Dataproc job for running Apache Spark (http://spark.apache.org/) +// applications on YARN. The specification of the main method to call to drive +// the job. Specify either the jar file that contains the main class or the +// main class name. To pass both a main jar and a main class in that jar, add +// the jar to CommonJob.jar_file_uris, and then specify the main class name in // main_class. type SparkJob struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the // working directory of each executor. Supported file types: .jar, .tar, // .tar.gz, .tgz, and .zip. ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the driver. Do not include // arguments, such as --conf, that can be set as job properties, since a // collision may occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` - - // FileUris: Optional. HCFS URIs of files to be placed in the working - // directory of each executor. Useful for naively parallel tasks. + // FileUris: Optional. HCFS URIs of files to be placed in the working directory + // of each executor. Useful for naively parallel tasks. FileUris []string `json:"fileUris,omitempty"` - - // JarFileUris: Optional. HCFS URIs of jar files to add to the - // CLASSPATHs of the Spark driver and tasks. + // JarFileUris: Optional. HCFS URIs of jar files to add to the CLASSPATHs of + // the Spark driver and tasks. JarFileUris []string `json:"jarFileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - - // MainClass: The name of the driver's main class. The jar file that - // contains the class must be in the default CLASSPATH or specified in - // jar_file_uris. + // MainClass: The name of the driver's main class. The jar file that contains + // the class must be in the default CLASSPATH or specified in jar_file_uris. MainClass string `json:"mainClass,omitempty"` - - // MainJarFileUri: The HCFS URI of the jar file that contains the main - // class. + // MainJarFileUri: The HCFS URI of the jar file that contains the main class. MainJarFileUri string `json:"mainJarFileUri,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure Spark. Properties that conflict with values set by the - // Dataproc API may be overwritten. Can include properties set in + // configure Spark. Properties that conflict with values set by the Dataproc + // API may be overwritten. Can include properties set in // /etc/spark/conf/spark-defaults.conf and classes in user code. Properties map[string]string `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArchiveUris") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SparkJob) MarshalJSON() ([]byte, error) { +func (s SparkJob) MarshalJSON() ([]byte, error) { type NoMethod SparkJob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SparkRJob: A Dataproc job for running Apache SparkR -// (https://spark.apache.org/docs/latest/sparkr.html) applications on -// YARN. +// (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. type SparkRJob struct { // ArchiveUris: Optional. HCFS URIs of archives to be extracted into the // working directory of each executor. Supported file types: .jar, .tar, // .tar.gz, .tgz, and .zip. ArchiveUris []string `json:"archiveUris,omitempty"` - // Args: Optional. The arguments to pass to the driver. Do not include // arguments, such as --conf, that can be set as job properties, since a // collision may occur that causes an incorrect job submission. Args []string `json:"args,omitempty"` - - // FileUris: Optional. HCFS URIs of files to be placed in the working - // directory of each executor. Useful for naively parallel tasks. + // FileUris: Optional. HCFS URIs of files to be placed in the working directory + // of each executor. Useful for naively parallel tasks. FileUris []string `json:"fileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // MainRFileUri: Required. The HCFS URI of the main R file to use as the // driver. Must be a .R file. MainRFileUri string `json:"mainRFileUri,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure SparkR. Properties that conflict with values set by the - // Dataproc API may be overwritten. Can include properties set in + // configure SparkR. Properties that conflict with values set by the Dataproc + // API may be overwritten. Can include properties set in // /etc/spark/conf/spark-defaults.conf and classes in user code. Properties map[string]string `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArchiveUris") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArchiveUris") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArchiveUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SparkRJob) MarshalJSON() ([]byte, error) { +func (s SparkRJob) MarshalJSON() ([]byte, error) { type NoMethod SparkRJob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SparkSqlJob: A Dataproc job for running Apache Spark SQL // (http://spark.apache.org/sql/) queries. type SparkSqlJob struct { - // JarFileUris: Optional. HCFS URIs of jar files to be added to the - // Spark CLASSPATH. + // JarFileUris: Optional. HCFS URIs of jar files to be added to the Spark + // CLASSPATH. JarFileUris []string `json:"jarFileUris,omitempty"` - // LoggingConfig: Optional. The runtime log config for job execution. LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` - // Properties: Optional. A mapping of property names to values, used to - // configure Spark SQL's SparkConf. Properties that conflict with values - // set by the Dataproc API may be overwritten. + // configure Spark SQL's SparkConf. Properties that conflict with values set by + // the Dataproc API may be overwritten. Properties map[string]string `json:"properties,omitempty"` - // QueryFileUri: The HCFS URI of the script that contains SQL queries. QueryFileUri string `json:"queryFileUri,omitempty"` - // QueryList: A list of queries. QueryList *QueryList `json:"queryList,omitempty"` - // ScriptVariables: Optional. Mapping of query variable names to values // (equivalent to the Spark SQL command: SET name="value";). ScriptVariables map[string]string `json:"scriptVariables,omitempty"` - // ForceSendFields is a list of field names (e.g. "JarFileUris") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "JarFileUris") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "JarFileUris") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SparkSqlJob) MarshalJSON() ([]byte, error) { +func (s SparkSqlJob) MarshalJSON() ([]byte, error) { type NoMethod SparkSqlJob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StartClusterRequest: A request to start a cluster. type StartClusterRequest struct { - // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will - // fail (with error NOT_FOUND) if a cluster with the specified UUID does - // not exist. + // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail + // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. ClusterUuid string `json:"clusterUuid,omitempty"` - - // RequestId: Optional. A unique id used to identify the request. If the - // server receives two StartClusterRequest + // RequestId: Optional. A unique id used to identify the request. If the server + // receives two StartClusterRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1beta2.StartClusterRequest)s - // with the same id, then the second request will be ignored and the - // first google.longrunning.Operation created and stored in the backend - // is returned.Recommendation: Set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id - // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), - // and hyphens (-). The maximum length is 40 characters. + // with the same id, then the second request will be ignored and the first + // google.longrunning.Operation created and stored in the backend is + // returned.Recommendation: Set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterUuid") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterUuid") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterUuid") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StartClusterRequest) MarshalJSON() ([]byte, error) { +func (s StartClusterRequest) MarshalJSON() ([]byte, error) { type NoMethod StartClusterRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The Status type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// Status message contains three pieces of data: error code, error -// message, and error details.You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The Status type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each Status message contains three +// pieces of data: error code, error message, and error details.You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StopClusterRequest: A request to stop a cluster. type StopClusterRequest struct { - // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will - // fail (with error NOT_FOUND) if a cluster with the specified UUID does - // not exist. + // ClusterUuid: Optional. Specifying the cluster_uuid means the RPC will fail + // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. ClusterUuid string `json:"clusterUuid,omitempty"` - - // RequestId: Optional. A unique id used to identify the request. If the - // server receives two StopClusterRequest + // RequestId: Optional. A unique id used to identify the request. If the server + // receives two StopClusterRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1beta2.StopClusterRequest)s - // with the same id, then the second request will be ignored and the - // first google.longrunning.Operation created and stored in the backend - // is returned.Recommendation: Set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id - // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), - // and hyphens (-). The maximum length is 40 characters. + // with the same id, then the second request will be ignored and the first + // google.longrunning.Operation created and stored in the backend is + // returned.Recommendation: Set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterUuid") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterUuid") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterUuid") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StopClusterRequest) MarshalJSON() ([]byte, error) { +func (s StopClusterRequest) MarshalJSON() ([]byte, error) { type NoMethod StopClusterRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SubmitJobRequest: A request to submit a job. type SubmitJobRequest struct { // Job: Required. The job resource. Job *Job `json:"job,omitempty"` - - // RequestId: Optional. A unique id used to identify the request. If the - // server receives two SubmitJobRequest + // RequestId: Optional. A unique id used to identify the request. If the server + // receives two SubmitJobRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1.SubmitJobRequest)s - // with the same id, then the second request will be ignored and the - // first Job created and stored in the backend is returned.It is - // recommended to always set this value to a UUID - // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id - // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), - // and hyphens (-). The maximum length is 40 characters. + // with the same id, then the second request will be ignored and the first Job + // created and stored in the backend is returned.It is recommended to always + // set this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + // (-). The maximum length is 40 characters. RequestId string `json:"requestId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Job") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Job") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Job") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Job") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubmitJobRequest) MarshalJSON() ([]byte, error) { +func (s SubmitJobRequest) MarshalJSON() ([]byte, error) { type NoMethod SubmitJobRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TemplateParameter: A configurable parameter that replaces one or more -// fields in the template. Parameterizable fields: - Labels - File uris -// - Job properties - Job arguments - Script variables - Main class (in -// HadoopJob and SparkJob) - Zone (in ClusterSelector) +// TemplateParameter: A configurable parameter that replaces one or more fields +// in the template. Parameterizable fields: - Labels - File uris - Job +// properties - Job arguments - Script variables - Main class (in HadoopJob and +// SparkJob) - Zone (in ClusterSelector) type TemplateParameter struct { - // Description: Optional. Brief description of the parameter. Must not - // exceed 1024 characters. + // Description: Optional. Brief description of the parameter. Must not exceed + // 1024 characters. Description string `json:"description,omitempty"` - - // Fields: Required. Paths to all fields that the parameter replaces. A - // field is allowed to appear in at most one parameter's list of field - // paths.A field path is similar in syntax to a - // google.protobuf.FieldMask. For example, a field path that references - // the zone field of a workflow template's cluster selector would be - // specified as placement.clusterSelector.zone.Also, field paths can - // reference fields using the following syntax: Values in maps can be - // referenced by key: labels'key' - // placement.clusterSelector.clusterLabels'key' + // Fields: Required. Paths to all fields that the parameter replaces. A field + // is allowed to appear in at most one parameter's list of field paths.A field + // path is similar in syntax to a google.protobuf.FieldMask. For example, a + // field path that references the zone field of a workflow template's cluster + // selector would be specified as placement.clusterSelector.zone.Also, field + // paths can reference fields using the following syntax: Values in maps can be + // referenced by key: labels'key' placement.clusterSelector.clusterLabels'key' // placement.managedCluster.labels'key' - // placement.clusterSelector.clusterLabels'key' - // jobs'step-id'.labels'key' Jobs in the jobs list can be referenced by - // step-id: jobs'step-id'.hadoopJob.mainJarFileUri - // jobs'step-id'.hiveJob.queryFileUri + // placement.clusterSelector.clusterLabels'key' jobs'step-id'.labels'key' Jobs + // in the jobs list can be referenced by step-id: + // jobs'step-id'.hadoopJob.mainJarFileUri jobs'step-id'.hiveJob.queryFileUri // jobs'step-id'.pySparkJob.mainPythonFileUri - // jobs'step-id'.hadoopJob.jarFileUris0 - // jobs'step-id'.hadoopJob.archiveUris0 - // jobs'step-id'.hadoopJob.fileUris0 - // jobs'step-id'.pySparkJob.pythonFileUris0 Items in repeated fields can - // be referenced by a zero-based index: jobs'step-id'.sparkJob.args0 - // Other examples: jobs'step-id'.hadoopJob.properties'key' - // jobs'step-id'.hadoopJob.args0 + // jobs'step-id'.hadoopJob.jarFileUris0 jobs'step-id'.hadoopJob.archiveUris0 + // jobs'step-id'.hadoopJob.fileUris0 jobs'step-id'.pySparkJob.pythonFileUris0 + // Items in repeated fields can be referenced by a zero-based index: + // jobs'step-id'.sparkJob.args0 Other examples: + // jobs'step-id'.hadoopJob.properties'key' jobs'step-id'.hadoopJob.args0 // jobs'step-id'.hiveJob.scriptVariables'key' - // jobs'step-id'.hadoopJob.mainJarFileUri - // placement.clusterSelector.zoneIt may not be possible to parameterize - // maps and repeated fields in their entirety since only individual map - // values and individual items in repeated fields can be referenced. For - // example, the following field paths are invalid: + // jobs'step-id'.hadoopJob.mainJarFileUri placement.clusterSelector.zoneIt may + // not be possible to parameterize maps and repeated fields in their entirety + // since only individual map values and individual items in repeated fields can + // be referenced. For example, the following field paths are invalid: // placement.clusterSelector.clusterLabels jobs'step-id'.sparkJob.args Fields []string `json:"fields,omitempty"` - - // Name: Required. Parameter name. The parameter name is used as the - // key, and paired with the parameter value, which are passed to the - // template when the template is instantiated. The name must contain - // only capital letters (A-Z), numbers (0-9), and underscores (_), and - // must not start with a number. The maximum length is 40 characters. + // Name: Required. Parameter name. The parameter name is used as the key, and + // paired with the parameter value, which are passed to the template when the + // template is instantiated. The name must contain only capital letters (A-Z), + // numbers (0-9), and underscores (_), and must not start with a number. The + // maximum length is 40 characters. Name string `json:"name,omitempty"` - - // Validation: Optional. Validation rules to be applied to this - // parameter's value. + // Validation: Optional. Validation rules to be applied to this parameter's + // value. Validation *ParameterValidation `json:"validation,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TemplateParameter) MarshalJSON() ([]byte, error) { +func (s TemplateParameter) MarshalJSON() ([]byte, error) { type NoMethod TemplateParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for TestIamPermissions -// method. +// TestIamPermissionsRequest: Request message for TestIamPermissions method. type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the resource. - // Permissions with wildcards (such as '*' or 'storage.*') are not - // allowed. For more information see IAM Overview + // Permissions: The set of permissions to check for the resource. Permissions + // with wildcards (such as '*' or 'storage.*') are not allowed. For more + // information see IAM Overview // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsResponse: Response message for TestIamPermissions -// method. +// TestIamPermissionsResponse: Response message for TestIamPermissions method. type TestIamPermissionsResponse struct { - // Permissions: A subset of TestPermissionsRequest.permissions that the - // caller is allowed. + // Permissions: A subset of TestPermissionsRequest.permissions that the caller + // is allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ValueValidation: Validation based on a list of allowed values. type ValueValidation struct { // Values: Required. List of allowed values for the parameter. Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ValueValidation) MarshalJSON() ([]byte, error) { +func (s ValueValidation) MarshalJSON() ([]byte, error) { type NoMethod ValueValidation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WorkflowGraph: The workflow graph. type WorkflowGraph struct { // Nodes: Output only. The workflow nodes. Nodes []*WorkflowNode `json:"nodes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Nodes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Nodes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Nodes") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkflowGraph) MarshalJSON() ([]byte, error) { +func (s WorkflowGraph) MarshalJSON() ([]byte, error) { type NoMethod WorkflowGraph - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WorkflowMetadata: A Dataproc workflow template resource. type WorkflowMetadata struct { // ClusterName: Output only. The name of the target cluster. ClusterName string `json:"clusterName,omitempty"` - // ClusterUuid: Output only. The UUID of target cluster. ClusterUuid string `json:"clusterUuid,omitempty"` - // CreateCluster: Output only. The create cluster operation metadata. CreateCluster *ClusterOperation `json:"createCluster,omitempty"` - - // DagEndTime: Output only. DAG end time, which is only set for - // workflows with dag_timeout when the DAG ends. + // DagEndTime: Output only. DAG end time, which is only set for workflows with + // dag_timeout when the DAG ends. DagEndTime string `json:"dagEndTime,omitempty"` - - // DagStartTime: Output only. DAG start time, which is only set for - // workflows with dag_timeout when the DAG begins. + // DagStartTime: Output only. DAG start time, which is only set for workflows + // with dag_timeout when the DAG begins. DagStartTime string `json:"dagStartTime,omitempty"` - - // DagTimeout: Output only. The timeout duration for the DAG of jobs, - // expressed in seconds (see JSON representation of duration + // DagTimeout: Output only. The timeout duration for the DAG of jobs, expressed + // in seconds (see JSON representation of duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). DagTimeout string `json:"dagTimeout,omitempty"` - // DeleteCluster: Output only. The delete cluster operation metadata. DeleteCluster *ClusterOperation `json:"deleteCluster,omitempty"` - // EndTime: Output only. Workflow end time. EndTime string `json:"endTime,omitempty"` - // Graph: Output only. The workflow graph. Graph *WorkflowGraph `json:"graph,omitempty"` - - // Parameters: Map from parameter names to values that were used for - // those parameters. + // Parameters: Map from parameter names to values that were used for those + // parameters. Parameters map[string]string `json:"parameters,omitempty"` - // StartTime: Output only. Workflow start time. StartTime string `json:"startTime,omitempty"` - // State: Output only. The workflow state. // // Possible values: @@ -4094,57 +3269,45 @@ type WorkflowMetadata struct { // "RUNNING" - The operation is running. // "DONE" - The operation is done; either cancelled or completed. State string `json:"state,omitempty"` - // Template: Output only. The resource name of the workflow template as // described in https://cloud.google.com/apis/design/resource_names. For - // projects.regions.workflowTemplates, the resource name of the template - // has the following format: - // projects/{project_id}/regions/{region}/workflowTemplates/{template_id} - // For projects.locations.workflowTemplates, the resource name of the - // template has the following format: - // projects/{project_id}/locations/{location}/workflowTemplates/{template - // _id} + // projects.regions.workflowTemplates, the resource name of the template has + // the following format: + // projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For + // projects.locations.workflowTemplates, the resource name of the template has + // the following format: + // projects/{project_id}/locations/{location}/workflowTemplates/{template_id} Template string `json:"template,omitempty"` - // Version: Output only. The version of template at the time of workflow // instantiation. Version int64 `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkflowMetadata) MarshalJSON() ([]byte, error) { +func (s WorkflowMetadata) MarshalJSON() ([]byte, error) { type NoMethod WorkflowMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WorkflowNode: The workflow node. type WorkflowNode struct { // Error: Output only. The error detail. Error string `json:"error,omitempty"` - - // JobId: Output only. The job id; populated after the node enters - // RUNNING state. + // JobId: Output only. The job id; populated after the node enters RUNNING + // state. JobId string `json:"jobId,omitempty"` - // PrerequisiteStepIds: Output only. Node's prerequisite nodes. PrerequisiteStepIds []string `json:"prerequisiteStepIds,omitempty"` - // State: Output only. The node state. // // Possible values: @@ -4156,175 +3319,138 @@ type WorkflowNode struct { // "FAILED" - The node failed. A node can be marked FAILED because its // ancestor or peer failed. State string `json:"state,omitempty"` - // StepId: Output only. The name of the node. StepId string `json:"stepId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Error") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Error") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Error") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkflowNode) MarshalJSON() ([]byte, error) { +func (s WorkflowNode) MarshalJSON() ([]byte, error) { type NoMethod WorkflowNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WorkflowTemplate: A Dataproc workflow template resource. type WorkflowTemplate struct { // CreateTime: Output only. The time template was created. CreateTime string `json:"createTime,omitempty"` - - // DagTimeout: Optional. Timeout duration for the DAG of jobs, expressed - // in seconds (see JSON representation of duration - // (https://developers.google.com/protocol-buffers/docs/proto3#json)). - // The timeout duration must be from 10 minutes ("600s") to 24 hours - // ("86400s"). The timer begins when the first job is submitted. If the - // workflow is running at the end of the timeout period, any remaining - // jobs are cancelled, the workflow is ended, and if the workflow was - // running on a managed cluster, the cluster is deleted. + // DagTimeout: Optional. Timeout duration for the DAG of jobs, expressed in + // seconds (see JSON representation of duration + // (https://developers.google.com/protocol-buffers/docs/proto3#json)). The + // timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). + // The timer begins when the first job is submitted. If the workflow is running + // at the end of the timeout period, any remaining jobs are cancelled, the + // workflow is ended, and if the workflow was running on a managed cluster, the + // cluster is deleted. DagTimeout string `json:"dagTimeout,omitempty"` - - // Id: Required. The template id.The id must contain only letters (a-z, - // A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin - // or end with underscore or hyphen. Must consist of between 3 and 50 - // characters.. + // Id: Required. The template id.The id must contain only letters (a-z, A-Z), + // numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with + // underscore or hyphen. Must consist of between 3 and 50 characters.. Id string `json:"id,omitempty"` - // Jobs: Required. The Directed Acyclic Graph of Jobs to submit. Jobs []*OrderedJob `json:"jobs,omitempty"` - - // Labels: Optional. The labels to associate with this template. These - // labels will be propagated to all jobs and clusters created by the - // workflow instance.Label keys must contain 1 to 63 characters, and - // must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label - // values may be empty, but, if present, must contain 1 to 63 - // characters, and must conform to RFC 1035 + // Labels: Optional. The labels to associate with this template. These labels + // will be propagated to all jobs and clusters created by the workflow + // instance.Label keys must contain 1 to 63 characters, and must conform to RFC + // 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, + // if present, must contain 1 to 63 characters, and must conform to RFC 1035 // (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be // associated with a template. Labels map[string]string `json:"labels,omitempty"` - - // Name: Output only. The resource name of the workflow template, as - // described in https://cloud.google.com/apis/design/resource_names. For - // projects.regions.workflowTemplates, the resource name of the template - // has the following format: - // projects/{project_id}/regions/{region}/workflowTemplates/{template_id} - // For projects.locations.workflowTemplates, the resource name of the - // template has the following format: - // projects/{project_id}/locations/{location}/workflowTemplates/{template - // _id} + // Name: Output only. The resource name of the workflow template, as described + // in https://cloud.google.com/apis/design/resource_names. For + // projects.regions.workflowTemplates, the resource name of the template has + // the following format: + // projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For + // projects.locations.workflowTemplates, the resource name of the template has + // the following format: + // projects/{project_id}/locations/{location}/workflowTemplates/{template_id} Name string `json:"name,omitempty"` - - // Parameters: Optional. Template parameters whose values are - // substituted into the template. Values for parameters must be provided - // when the template is instantiated. + // Parameters: Optional. Template parameters whose values are substituted into + // the template. Values for parameters must be provided when the template is + // instantiated. Parameters []*TemplateParameter `json:"parameters,omitempty"` - // Placement: Required. WorkflowTemplate scheduling information. Placement *WorkflowTemplatePlacement `json:"placement,omitempty"` - // UpdateTime: Output only. The time template was last updated. UpdateTime string `json:"updateTime,omitempty"` - - // Version: Optional. Used to perform a consistent - // read-modify-write.This field should be left blank for a - // CreateWorkflowTemplate request. It is required for an - // UpdateWorkflowTemplate request, and must match the current server - // version. A typical update template flow would fetch the current - // template with a GetWorkflowTemplate request, which will return the - // current template with the version field filled in with the current - // server version. The user updates other fields in the template, then - // returns it as part of the UpdateWorkflowTemplate request. + // Version: Optional. Used to perform a consistent read-modify-write.This field + // should be left blank for a CreateWorkflowTemplate request. It is required + // for an UpdateWorkflowTemplate request, and must match the current server + // version. A typical update template flow would fetch the current template + // with a GetWorkflowTemplate request, which will return the current template + // with the version field filled in with the current server version. The user + // updates other fields in the template, then returns it as part of the + // UpdateWorkflowTemplate request. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkflowTemplate) MarshalJSON() ([]byte, error) { +func (s WorkflowTemplate) MarshalJSON() ([]byte, error) { type NoMethod WorkflowTemplate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WorkflowTemplatePlacement: Specifies workflow execution target.Either // managed_cluster or cluster_selector is required. type WorkflowTemplatePlacement struct { - // ClusterSelector: Optional. A selector that chooses target cluster for - // jobs based on metadata.The selector is evaluated at the time each job - // is submitted. + // ClusterSelector: Optional. A selector that chooses target cluster for jobs + // based on metadata.The selector is evaluated at the time each job is + // submitted. ClusterSelector *ClusterSelector `json:"clusterSelector,omitempty"` - // ManagedCluster: Optional. A cluster that is managed by the workflow. ManagedCluster *ManagedCluster `json:"managedCluster,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterSelector") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterSelector") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClusterSelector") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkflowTemplatePlacement) MarshalJSON() ([]byte, error) { +func (s WorkflowTemplatePlacement) MarshalJSON() ([]byte, error) { type NoMethod WorkflowTemplatePlacement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // YarnApplication: A YARN application created by a job. Application // information is a subset of -// org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Beta -// Feature: This report is available for testing purposes only. It may -// be changed before final release. +// org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Beta Feature: +// This report is available for testing purposes only. It may be changed before +// final release. type YarnApplication struct { // Name: Output only. The application name. Name string `json:"name,omitempty"` - - // Progress: Output only. The numerical progress of the application, - // from 1 to 100. + // Progress: Output only. The numerical progress of the application, from 1 to + // 100. Progress float64 `json:"progress,omitempty"` - // State: Output only. The application state. // // Possible values: @@ -4338,34 +3464,27 @@ type YarnApplication struct { // "FAILED" - Status is FAILED. // "KILLED" - Status is KILLED. State string `json:"state,omitempty"` - // TrackingUrl: Output only. The HTTP URL of the ApplicationMaster, // HistoryServer, or TimelineServer that provides application-specific - // information. The URL uses the internal hostname, and requires a proxy - // server for resolution and, possibly, access. + // information. The URL uses the internal hostname, and requires a proxy server + // for resolution and, possibly, access. TrackingUrl string `json:"trackingUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *YarnApplication) MarshalJSON() ([]byte, error) { +func (s YarnApplication) MarshalJSON() ([]byte, error) { type NoMethod YarnApplication - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *YarnApplication) UnmarshalJSON(data []byte) error { @@ -4382,8 +3501,6 @@ func (s *YarnApplication) UnmarshalJSON(data []byte) error { return nil } -// method id "dataproc.projects.locations.autoscalingPolicies.create": - type ProjectsLocationsAutoscalingPoliciesCreateCall struct { s *Service parent string @@ -4395,13 +3512,12 @@ type ProjectsLocationsAutoscalingPoliciesCreateCall struct { // Create: Creates new autoscaling policy. // -// - parent: The "resource name" of the region or location, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.create, the resource name has -// the following format: projects/{project_id}/regions/{region} For -// projects.locations.autoscalingPolicies.create, the resource name -// has the following format: -// projects/{project_id}/locations/{location}. +// - parent: The "resource name" of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.create, the resource name has the +// following format: projects/{project_id}/regions/{region} For +// projects.locations.autoscalingPolicies.create, the resource name has the +// following format: projects/{project_id}/locations/{location}. func (r *ProjectsLocationsAutoscalingPoliciesService) Create(parent string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesCreateCall { c := &ProjectsLocationsAutoscalingPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4410,23 +3526,21 @@ func (r *ProjectsLocationsAutoscalingPoliciesService) Create(parent string, auto } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4435,18 +3549,12 @@ func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Header() http.Header { } func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscalingpolicy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/autoscalingPolicies") @@ -4459,16 +3567,15 @@ func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.create" call. -// Exactly one of *AutoscalingPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AutoscalingPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4476,17 +3583,17 @@ func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AutoscalingPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -4499,38 +3606,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Creates new autoscaling policy.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/autoscalingPolicies", - // "httpMethod": "POST", - // "id": "dataproc.projects.locations.autoscalingPolicies.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The \"resource name\" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name has the following format: projects/{project_id}/locations/{location}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/autoscalingPolicies", - // "request": { - // "$ref": "AutoscalingPolicy" - // }, - // "response": { - // "$ref": "AutoscalingPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.autoscalingPolicies.delete": +} type ProjectsLocationsAutoscalingPoliciesDeleteCall struct { s *Service @@ -4543,15 +3619,14 @@ type ProjectsLocationsAutoscalingPoliciesDeleteCall struct { // Delete: Deletes an autoscaling policy. It is an error to delete an // autoscaling policy that is in use by one or more clusters. // -// - name: The "resource name" of the autoscaling policy, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.delete, the resource name of -// the policy has the following format: -// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_i -// d} For projects.locations.autoscalingPolicies.delete, the resource -// name of the policy has the following format: -// projects/{project_id}/locations/{location}/autoscalingPolicies/{poli -// cy_id}. +// - name: The "resource name" of the autoscaling policy, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.delete, the resource name of the +// policy has the following format: +// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For +// projects.locations.autoscalingPolicies.delete, the resource name of the +// policy has the following format: +// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. func (r *ProjectsLocationsAutoscalingPoliciesService) Delete(name string) *ProjectsLocationsAutoscalingPoliciesDeleteCall { c := &ProjectsLocationsAutoscalingPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4559,23 +3634,21 @@ func (r *ProjectsLocationsAutoscalingPoliciesService) Delete(name string) *Proje } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4584,12 +3657,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4603,16 +3671,14 @@ func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4620,17 +3686,17 @@ func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -4643,35 +3709,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/autoscalingPolicies/{autoscalingPoliciesId}", - // "httpMethod": "DELETE", - // "id": "dataproc.projects.locations.autoscalingPolicies.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.autoscalingPolicies.get": +} type ProjectsLocationsAutoscalingPoliciesGetCall struct { s *Service @@ -4684,15 +3722,14 @@ type ProjectsLocationsAutoscalingPoliciesGetCall struct { // Get: Retrieves autoscaling policy. // -// - name: The "resource name" of the autoscaling policy, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.get, the resource name of the +// - name: The "resource name" of the autoscaling policy, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.get, the resource name of the policy +// has the following format: +// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For +// projects.locations.autoscalingPolicies.get, the resource name of the // policy has the following format: -// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_i -// d} For projects.locations.autoscalingPolicies.get, the resource -// name of the policy has the following format: -// projects/{project_id}/locations/{location}/autoscalingPolicies/{poli -// cy_id}. +// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. func (r *ProjectsLocationsAutoscalingPoliciesService) Get(name string) *ProjectsLocationsAutoscalingPoliciesGetCall { c := &ProjectsLocationsAutoscalingPoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4700,33 +3737,29 @@ func (r *ProjectsLocationsAutoscalingPoliciesService) Get(name string) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsAutoscalingPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4735,12 +3768,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Header() http.Header { } func (c *ProjectsLocationsAutoscalingPoliciesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4757,16 +3785,15 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.get" call. -// Exactly one of *AutoscalingPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AutoscalingPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4774,17 +3801,17 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AutoscalingPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -4797,35 +3824,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Retrieves autoscaling policy.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/autoscalingPolicies/{autoscalingPoliciesId}", - // "httpMethod": "GET", - // "id": "dataproc.projects.locations.autoscalingPolicies.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "AutoscalingPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.autoscalingPolicies.getIamPolicy": +} type ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall struct { s *Service @@ -4836,13 +3835,11 @@ type ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsAutoscalingPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { c := &ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -4851,12 +3848,11 @@ func (r *ProjectsLocationsAutoscalingPoliciesService) GetIamPolicy(resource stri // OptionsRequestedPolicyVersion sets the optional parameter // "options.requestedPolicyVersion": The policy format version to be -// returned.Valid values are 0, 1, and 3. Requests specifying an invalid -// value will be rejected.Requests for policies with any conditional -// bindings must specify version 3. Policies without any conditional -// bindings may specify any valid value or leave the field unset.To -// learn which resources support conditions in their IAM policies, see -// the IAM documentation +// returned.Valid values are 0, 1, and 3. Requests specifying an invalid value +// will be rejected.Requests for policies with any conditional bindings must +// specify version 3. Policies without any conditional bindings may specify any +// valid value or leave the field unset.To learn which resources support +// conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -4864,33 +3860,29 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) OptionsRequestedP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4899,12 +3891,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Header() http.Hea } func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4921,16 +3908,14 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4938,17 +3923,17 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -4961,41 +3946,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/autoscalingPolicies/{autoscalingPoliciesId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "dataproc.projects.locations.autoscalingPolicies.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.autoscalingPolicies.list": +} type ProjectsLocationsAutoscalingPoliciesListCall struct { s *Service @@ -5008,13 +3959,12 @@ type ProjectsLocationsAutoscalingPoliciesListCall struct { // List: Lists autoscaling policies in the project. // -// - parent: The "resource name" of the region or location, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.list, the resource name of the -// region has the following format: -// projects/{project_id}/regions/{region} For -// projects.locations.autoscalingPolicies.list, the resource name of -// the location has the following format: +// - parent: The "resource name" of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.list, the resource name of the region +// has the following format: projects/{project_id}/regions/{region} For +// projects.locations.autoscalingPolicies.list, the resource name of the +// location has the following format: // projects/{project_id}/locations/{location}. func (r *ProjectsLocationsAutoscalingPoliciesService) List(parent string) *ProjectsLocationsAutoscalingPoliciesListCall { c := &ProjectsLocationsAutoscalingPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5022,49 +3972,45 @@ func (r *ProjectsLocationsAutoscalingPoliciesService) List(parent string) *Proje return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return in each response. Must be less than or equal to -// 1000. Defaults to 100. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return in each response. Must be less than or equal to 1000. +// Defaults to 100. func (c *ProjectsLocationsAutoscalingPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsAutoscalingPoliciesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token, -// returned by a previous call, to request the next page of results. +// PageToken sets the optional parameter "pageToken": The page token, returned +// by a previous call, to request the next page of results. func (c *ProjectsLocationsAutoscalingPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsAutoscalingPoliciesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAutoscalingPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsAutoscalingPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutoscalingPoliciesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAutoscalingPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAutoscalingPoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5073,12 +4019,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) Header() http.Header { } func (c *ProjectsLocationsAutoscalingPoliciesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5095,16 +4036,15 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.list" call. -// Exactly one of *ListAutoscalingPoliciesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListAutoscalingPoliciesResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListAutoscalingPoliciesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAutoscalingPoliciesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5112,17 +4052,17 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListAutoscalingPoliciesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5135,43 +4075,6 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Lists autoscaling policies in the project.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/autoscalingPolicies", - // "httpMethod": "GET", - // "id": "dataproc.projects.locations.autoscalingPolicies.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return in each response. Must be less than or equal to 1000. Defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The page token, returned by a previous call, to request the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The \"resource name\" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/autoscalingPolicies", - // "response": { - // "$ref": "ListAutoscalingPoliciesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -5179,7 +4082,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) Do(opts ...googleapi.Call // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsAutoscalingPoliciesListCall) Pages(ctx context.Context, f func(*ListAutoscalingPoliciesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5195,8 +4098,6 @@ func (c *ProjectsLocationsAutoscalingPoliciesListCall) Pages(ctx context.Context } } -// method id "dataproc.projects.locations.autoscalingPolicies.setIamPolicy": - type ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall struct { s *Service resource string @@ -5206,13 +4107,12 @@ type ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy.Can return NOT_FOUND, -// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsAutoscalingPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall { c := &ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5221,23 +4121,21 @@ func (r *ProjectsLocationsAutoscalingPoliciesService) SetIamPolicy(resource stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5246,18 +4144,12 @@ func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Header() http.Hea } func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:setIamPolicy") @@ -5270,16 +4162,14 @@ func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5287,17 +4177,17 @@ func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -5310,38 +4200,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/autoscalingPolicies/{autoscalingPoliciesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "dataproc.projects.locations.autoscalingPolicies.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.autoscalingPolicies.testIamPermissions": +} type ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall struct { s *Service @@ -5352,16 +4211,15 @@ type ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a NOT_FOUND error.Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsLocationsAutoscalingPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall { c := &ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5370,23 +4228,21 @@ func (r *ProjectsLocationsAutoscalingPoliciesService) TestIamPermissions(resourc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5395,18 +4251,12 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Header() ht } func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:testIamPermissions") @@ -5419,16 +4269,15 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5436,17 +4285,17 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ... if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5459,38 +4308,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/autoscalingPolicies/{autoscalingPoliciesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "dataproc.projects.locations.autoscalingPolicies.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.autoscalingPolicies.update": +} type ProjectsLocationsAutoscalingPoliciesUpdateCall struct { s *Service @@ -5504,16 +4322,14 @@ type ProjectsLocationsAutoscalingPoliciesUpdateCall struct { // Update: Updates (replaces) autoscaling policy.Disabled check for // update_mask, because all updates will be full replacements. // -// - name: Output only. The "resource name" of the autoscaling policy, -// as described in -// https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies, the resource name of the -// policy has the following format: -// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_i -// d} For projects.locations.autoscalingPolicies, the resource name of -// the policy has the following format: -// projects/{project_id}/locations/{location}/autoscalingPolicies/{poli -// cy_id}. +// - name: Output only. The "resource name" of the autoscaling policy, as +// described in https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies, the resource name of the policy has +// the following format: +// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For +// projects.locations.autoscalingPolicies, the resource name of the policy +// has the following format: +// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. func (r *ProjectsLocationsAutoscalingPoliciesService) Update(name string, autoscalingpolicy *AutoscalingPolicy) *ProjectsLocationsAutoscalingPoliciesUpdateCall { c := &ProjectsLocationsAutoscalingPoliciesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5522,23 +4338,21 @@ func (r *ProjectsLocationsAutoscalingPoliciesService) Update(name string, autosc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutoscalingPoliciesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Context(ctx context.Context) *ProjectsLocationsAutoscalingPoliciesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5547,18 +4361,12 @@ func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Header() http.Header { } func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscalingpolicy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") @@ -5571,16 +4379,15 @@ func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.autoscalingPolicies.update" call. -// Exactly one of *AutoscalingPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AutoscalingPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5588,17 +4395,17 @@ func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AutoscalingPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -5611,38 +4418,7 @@ func (c *ProjectsLocationsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Updates (replaces) autoscaling policy.Disabled check for update_mask, because all updates will be full replacements.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/autoscalingPolicies/{autoscalingPoliciesId}", - // "httpMethod": "PUT", - // "id": "dataproc.projects.locations.autoscalingPolicies.update", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "request": { - // "$ref": "AutoscalingPolicy" - // }, - // "response": { - // "$ref": "AutoscalingPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.workflowTemplates.create": +} type ProjectsLocationsWorkflowTemplatesCreateCall struct { s *Service @@ -5655,13 +4431,12 @@ type ProjectsLocationsWorkflowTemplatesCreateCall struct { // Create: Creates new workflow template. // -// - parent: The resource name of the region or location, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.workflowTemplates,create, the resource name of the -// region has the following format: -// projects/{project_id}/regions/{region} For -// projects.locations.workflowTemplates.create, the resource name of -// the location has the following format: +// - parent: The resource name of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.workflowTemplates,create, the resource name of the region +// has the following format: projects/{project_id}/regions/{region} For +// projects.locations.workflowTemplates.create, the resource name of the +// location has the following format: // projects/{project_id}/locations/{location}. func (r *ProjectsLocationsWorkflowTemplatesService) Create(parent string, workflowtemplate *WorkflowTemplate) *ProjectsLocationsWorkflowTemplatesCreateCall { c := &ProjectsLocationsWorkflowTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5671,23 +4446,21 @@ func (r *ProjectsLocationsWorkflowTemplatesService) Create(parent string, workfl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5696,18 +4469,12 @@ func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Header() http.Header { } func (c *ProjectsLocationsWorkflowTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workflowtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/workflowTemplates") @@ -5720,16 +4487,15 @@ func (c *ProjectsLocationsWorkflowTemplatesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.create" call. -// Exactly one of *WorkflowTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *WorkflowTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkflowTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5737,17 +4503,17 @@ func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WorkflowTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -5760,38 +4526,7 @@ func (c *ProjectsLocationsWorkflowTemplatesCreateCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Creates new workflow template.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates", - // "httpMethod": "POST", - // "id": "dataproc.projects.locations.workflowTemplates.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/workflowTemplates", - // "request": { - // "$ref": "WorkflowTemplate" - // }, - // "response": { - // "$ref": "WorkflowTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.workflowTemplates.delete": +} type ProjectsLocationsWorkflowTemplatesDeleteCall struct { s *Service @@ -5808,43 +4543,40 @@ type ProjectsLocationsWorkflowTemplatesDeleteCall struct { // https://cloud.google.com/apis/design/resource_names. For // projects.regions.workflowTemplates.delete, the resource name of the // template has the following format: -// projects/{project_id}/regions/{region}/workflowTemplates/{template_i -// d} For projects.locations.workflowTemplates.instantiate, the -// resource name of the template has the following format: -// projects/{project_id}/locations/{location}/workflowTemplates/{templa -// te_id}. +// projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For +// projects.locations.workflowTemplates.instantiate, the resource name of the +// template has the following format: +// projects/{project_id}/locations/{location}/workflowTemplates/{template_id}. func (r *ProjectsLocationsWorkflowTemplatesService) Delete(name string) *ProjectsLocationsWorkflowTemplatesDeleteCall { c := &ProjectsLocationsWorkflowTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Version sets the optional parameter "version": The version of -// workflow template to delete. If specified, will only delete the -// template if the current server version matches specified version. +// Version sets the optional parameter "version": The version of workflow +// template to delete. If specified, will only delete the template if the +// current server version matches specified version. func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Version(version int64) *ProjectsLocationsWorkflowTemplatesDeleteCall { c.urlParams_.Set("version", fmt.Sprint(version)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5853,12 +4585,7 @@ func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5872,16 +4599,14 @@ func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5889,17 +4614,17 @@ func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -5912,41 +4637,7 @@ func (c *ProjectsLocationsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Deletes a workflow template. It does not cancel in-progress workflows.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}", - // "httpMethod": "DELETE", - // "id": "dataproc.projects.locations.workflowTemplates.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "version": { - // "description": "Optional. The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.workflowTemplates.get": +} type ProjectsLocationsWorkflowTemplatesGetCall struct { s *Service @@ -5962,55 +4653,50 @@ type ProjectsLocationsWorkflowTemplatesGetCall struct { // // - name: The resource name of the workflow template, as described in // https://cloud.google.com/apis/design/resource_names. For -// projects.regions.workflowTemplates.get, the resource name of the +// projects.regions.workflowTemplates.get, the resource name of the template +// has the following format: +// projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For +// projects.locations.workflowTemplates.get, the resource name of the // template has the following format: -// projects/{project_id}/regions/{region}/workflowTemplates/{template_i -// d} For projects.locations.workflowTemplates.get, the resource name -// of the template has the following format: -// projects/{project_id}/locations/{location}/workflowTemplates/{templa -// te_id}. +// projects/{project_id}/locations/{location}/workflowTemplates/{template_id}. func (r *ProjectsLocationsWorkflowTemplatesService) Get(name string) *ProjectsLocationsWorkflowTemplatesGetCall { c := &ProjectsLocationsWorkflowTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Version sets the optional parameter "version": The version of -// workflow template to retrieve. Only previously instantiated versions -// can be retrieved.If unspecified, retrieves the current version. +// Version sets the optional parameter "version": The version of workflow +// template to retrieve. Only previously instantiated versions can be +// retrieved.If unspecified, retrieves the current version. func (c *ProjectsLocationsWorkflowTemplatesGetCall) Version(version int64) *ProjectsLocationsWorkflowTemplatesGetCall { c.urlParams_.Set("version", fmt.Sprint(version)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkflowTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsWorkflowTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkflowTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkflowTemplatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6019,12 +4705,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetCall) Header() http.Header { } func (c *ProjectsLocationsWorkflowTemplatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6041,16 +4722,15 @@ func (c *ProjectsLocationsWorkflowTemplatesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.get" call. -// Exactly one of *WorkflowTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *WorkflowTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkflowTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6058,17 +4738,17 @@ func (c *ProjectsLocationsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WorkflowTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -6081,41 +4761,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}", - // "httpMethod": "GET", - // "id": "dataproc.projects.locations.workflowTemplates.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "version": { - // "description": "Optional. The version of workflow template to retrieve. Only previously instantiated versions can be retrieved.If unspecified, retrieves the current version.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "WorkflowTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.workflowTemplates.getIamPolicy": +} type ProjectsLocationsWorkflowTemplatesGetIamPolicyCall struct { s *Service @@ -6126,13 +4772,11 @@ type ProjectsLocationsWorkflowTemplatesGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsWorkflowTemplatesService) GetIamPolicy(resource string) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall { c := &ProjectsLocationsWorkflowTemplatesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -6141,12 +4785,11 @@ func (r *ProjectsLocationsWorkflowTemplatesService) GetIamPolicy(resource string // OptionsRequestedPolicyVersion sets the optional parameter // "options.requestedPolicyVersion": The policy format version to be -// returned.Valid values are 0, 1, and 3. Requests specifying an invalid -// value will be rejected.Requests for policies with any conditional -// bindings must specify version 3. Policies without any conditional -// bindings may specify any valid value or leave the field unset.To -// learn which resources support conditions in their IAM policies, see -// the IAM documentation +// returned.Valid values are 0, 1, and 3. Requests specifying an invalid value +// will be rejected.Requests for policies with any conditional bindings must +// specify version 3. Policies without any conditional bindings may specify any +// valid value or leave the field unset.To learn which resources support +// conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -6154,33 +4797,29 @@ func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) OptionsRequestedPol } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6189,12 +4828,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Header() http.Heade } func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6211,16 +4845,14 @@ func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6228,17 +4860,17 @@ func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -6251,41 +4883,7 @@ func (c *ProjectsLocationsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "dataproc.projects.locations.workflowTemplates.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.workflowTemplates.instantiate": +} type ProjectsLocationsWorkflowTemplatesInstantiateCall struct { s *Service @@ -6296,13 +4894,12 @@ type ProjectsLocationsWorkflowTemplatesInstantiateCall struct { header_ http.Header } -// Instantiate: Instantiates a template and begins execution.The -// returned Operation can be used to track execution of workflow by -// polling operations.get. The Operation will complete when entire -// workflow is finished.The running workflow can be aborted via -// operations.cancel. This will cause any inflight jobs to be cancelled -// and workflow-owned clusters to be deleted.The Operation.metadata will -// be WorkflowMetadata +// Instantiate: Instantiates a template and begins execution.The returned +// Operation can be used to track execution of workflow by polling +// operations.get. The Operation will complete when entire workflow is +// finished.The running workflow can be aborted via operations.cancel. This +// will cause any inflight jobs to be cancelled and workflow-owned clusters to +// be deleted.The Operation.metadata will be WorkflowMetadata // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). // Also see Using WorkflowMetadata // (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On @@ -6310,13 +4907,12 @@ type ProjectsLocationsWorkflowTemplatesInstantiateCall struct { // // - name: The resource name of the workflow template, as described in // https://cloud.google.com/apis/design/resource_names. For -// projects.regions.workflowTemplates.instantiate, the resource name -// of the template has the following format: -// projects/{project_id}/regions/{region}/workflowTemplates/{template_i -// d} For projects.locations.workflowTemplates.instantiate, the -// resource name of the template has the following format: -// projects/{project_id}/locations/{location}/workflowTemplates/{templa -// te_id}. +// projects.regions.workflowTemplates.instantiate, the resource name of the +// template has the following format: +// projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For +// projects.locations.workflowTemplates.instantiate, the resource name of the +// template has the following format: +// projects/{project_id}/locations/{location}/workflowTemplates/{template_id}. func (r *ProjectsLocationsWorkflowTemplatesService) Instantiate(name string, instantiateworkflowtemplaterequest *InstantiateWorkflowTemplateRequest) *ProjectsLocationsWorkflowTemplatesInstantiateCall { c := &ProjectsLocationsWorkflowTemplatesInstantiateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6325,23 +4921,21 @@ func (r *ProjectsLocationsWorkflowTemplatesService) Instantiate(name string, ins } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesInstantiateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesInstantiateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6350,18 +4944,12 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Header() http.Header } func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.instantiateworkflowtemplaterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}:instantiate") @@ -6374,16 +4962,14 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.instantiate" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6391,17 +4977,17 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -6414,38 +5000,7 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:instantiate", - // "httpMethod": "POST", - // "id": "dataproc.projects.locations.workflowTemplates.instantiate", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}:instantiate", - // "request": { - // "$ref": "InstantiateWorkflowTemplateRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.workflowTemplates.instantiateInline": +} type ProjectsLocationsWorkflowTemplatesInstantiateInlineCall struct { s *Service @@ -6456,27 +5011,26 @@ type ProjectsLocationsWorkflowTemplatesInstantiateInlineCall struct { header_ http.Header } -// InstantiateInline: Instantiates a template and begins execution.This -// method is equivalent to executing the sequence -// CreateWorkflowTemplate, InstantiateWorkflowTemplate, -// DeleteWorkflowTemplate.The returned Operation can be used to track -// execution of workflow by polling operations.get. The Operation will -// complete when entire workflow is finished.The running workflow can be -// aborted via operations.cancel. This will cause any inflight jobs to -// be cancelled and workflow-owned clusters to be deleted.The +// InstantiateInline: Instantiates a template and begins execution.This method +// is equivalent to executing the sequence CreateWorkflowTemplate, +// InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation +// can be used to track execution of workflow by polling operations.get. The +// Operation will complete when entire workflow is finished.The running +// workflow can be aborted via operations.cancel. This will cause any inflight +// jobs to be cancelled and workflow-owned clusters to be deleted.The // Operation.metadata will be WorkflowMetadata // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). // Also see Using WorkflowMetadata // (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On // successful completion, Operation.response will be Empty. // -// - parent: The resource name of the region or location, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.workflowTemplates,instantiateinline, the resource -// name of the region has the following format: +// - parent: The resource name of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.workflowTemplates,instantiateinline, the resource name of +// the region has the following format: // projects/{project_id}/regions/{region} For -// projects.locations.workflowTemplates.instantiateinline, the -// resource name of the location has the following format: +// projects.locations.workflowTemplates.instantiateinline, the resource name +// of the location has the following format: // projects/{project_id}/locations/{location}. func (r *ProjectsLocationsWorkflowTemplatesService) InstantiateInline(parent string, workflowtemplate *WorkflowTemplate) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall { c := &ProjectsLocationsWorkflowTemplatesInstantiateInlineCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -6485,43 +5039,41 @@ func (r *ProjectsLocationsWorkflowTemplatesService) InstantiateInline(parent str return c } -// InstanceId sets the optional parameter "instanceId": Deprecated. -// Please use request_id field instead. +// InstanceId sets the optional parameter "instanceId": Deprecated. Please use +// request_id field instead. func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) InstanceId(instanceId string) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall { c.urlParams_.Set("instanceId", instanceId) return c } -// RequestId sets the optional parameter "requestId": A tag that -// prevents multiple concurrent workflow instances with the same tag -// from running. This mitigates risk of concurrent instances started due -// to retries.It is recommended to always set this value to a UUID -// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag -// must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), -// and hyphens (-). The maximum length is 40 characters. +// RequestId sets the optional parameter "requestId": A tag that prevents +// multiple concurrent workflow instances with the same tag from running. This +// mitigates risk of concurrent instances started due to retries.It is +// recommended to always set this value to a UUID +// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must +// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens +// (-). The maximum length is 40 characters. func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) RequestId(requestId string) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall { c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6530,18 +5082,12 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Header() http. } func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workflowtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/workflowTemplates:instantiateInline") @@ -6554,16 +5100,14 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.instantiateInline" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6571,17 +5115,17 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Do(opts ...goo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -6594,48 +5138,7 @@ func (c *ProjectsLocationsWorkflowTemplatesInstantiateInlineCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates:instantiateInline", - // "httpMethod": "POST", - // "id": "dataproc.projects.locations.workflowTemplates.instantiateInline", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "instanceId": { - // "description": "Deprecated. Please use request_id field instead.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/workflowTemplates:instantiateInline", - // "request": { - // "$ref": "WorkflowTemplate" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.workflowTemplates.list": +} type ProjectsLocationsWorkflowTemplatesListCall struct { s *Service @@ -6648,11 +5151,10 @@ type ProjectsLocationsWorkflowTemplatesListCall struct { // List: Lists workflows that match the specified filter in the request. // -// - parent: The resource name of the region or location, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.workflowTemplates,list, the resource name of the -// region has the following format: -// projects/{project_id}/regions/{region} For +// - parent: The resource name of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.workflowTemplates,list, the resource name of the region +// has the following format: projects/{project_id}/regions/{region} For // projects.locations.workflowTemplates.list, the resource name of the // location has the following format: // projects/{project_id}/locations/{location}. @@ -6662,48 +5164,44 @@ func (r *ProjectsLocationsWorkflowTemplatesService) List(parent string) *Project return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return in each response. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return in each response. func (c *ProjectsLocationsWorkflowTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsWorkflowTemplatesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token, -// returned by a previous call, to request the next page of results. +// PageToken sets the optional parameter "pageToken": The page token, returned +// by a previous call, to request the next page of results. func (c *ProjectsLocationsWorkflowTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsWorkflowTemplatesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkflowTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsWorkflowTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkflowTemplatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkflowTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkflowTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6712,12 +5210,7 @@ func (c *ProjectsLocationsWorkflowTemplatesListCall) Header() http.Header { } func (c *ProjectsLocationsWorkflowTemplatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6734,16 +5227,15 @@ func (c *ProjectsLocationsWorkflowTemplatesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.list" call. -// Exactly one of *ListWorkflowTemplatesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListWorkflowTemplatesResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListWorkflowTemplatesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowTemplatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6751,17 +5243,17 @@ func (c *ProjectsLocationsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListWorkflowTemplatesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6774,43 +5266,6 @@ func (c *ProjectsLocationsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Lists workflows that match the specified filter in the request.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates", - // "httpMethod": "GET", - // "id": "dataproc.projects.locations.workflowTemplates.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return in each response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The page token, returned by a previous call, to request the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/workflowTemplates", - // "response": { - // "$ref": "ListWorkflowTemplatesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -6818,7 +5273,7 @@ func (c *ProjectsLocationsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOp // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsWorkflowTemplatesListCall) Pages(ctx context.Context, f func(*ListWorkflowTemplatesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6834,8 +5289,6 @@ func (c *ProjectsLocationsWorkflowTemplatesListCall) Pages(ctx context.Context, } } -// method id "dataproc.projects.locations.workflowTemplates.setIamPolicy": - type ProjectsLocationsWorkflowTemplatesSetIamPolicyCall struct { s *Service resource string @@ -6845,13 +5298,12 @@ type ProjectsLocationsWorkflowTemplatesSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy.Can return NOT_FOUND, -// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsWorkflowTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall { c := &ProjectsLocationsWorkflowTemplatesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -6860,23 +5312,21 @@ func (r *ProjectsLocationsWorkflowTemplatesService) SetIamPolicy(resource string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6885,18 +5335,12 @@ func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Header() http.Heade } func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:setIamPolicy") @@ -6909,16 +5353,14 @@ func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6926,17 +5368,17 @@ func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -6949,38 +5391,7 @@ func (c *ProjectsLocationsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "dataproc.projects.locations.workflowTemplates.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.workflowTemplates.testIamPermissions": +} type ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall struct { s *Service @@ -6991,16 +5402,15 @@ type ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a NOT_FOUND error.Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsLocationsWorkflowTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall { c := &ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -7009,23 +5419,21 @@ func (r *ProjectsLocationsWorkflowTemplatesService) TestIamPermissions(resource } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7034,18 +5442,12 @@ func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Header() http } func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:testIamPermissions") @@ -7058,16 +5460,15 @@ func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7075,17 +5476,17 @@ func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...go if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7098,38 +5499,7 @@ func (c *ProjectsLocationsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "dataproc.projects.locations.workflowTemplates.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.locations.workflowTemplates.update": +} type ProjectsLocationsWorkflowTemplatesUpdateCall struct { s *Service @@ -7140,18 +5510,17 @@ type ProjectsLocationsWorkflowTemplatesUpdateCall struct { header_ http.Header } -// Update: Updates (replaces) workflow template. The updated template -// must contain version that matches the current server version. +// Update: Updates (replaces) workflow template. The updated template must +// contain version that matches the current server version. // // - name: Output only. The resource name of the workflow template, as -// described in https://cloud.google.com/apis/design/resource_names. -// For projects.regions.workflowTemplates, the resource name of the -// template has the following format: -// projects/{project_id}/regions/{region}/workflowTemplates/{template_i -// d} For projects.locations.workflowTemplates, the resource name of -// the template has the following format: -// projects/{project_id}/locations/{location}/workflowTemplates/{templa -// te_id}. +// described in https://cloud.google.com/apis/design/resource_names. For +// projects.regions.workflowTemplates, the resource name of the template has +// the following format: +// projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For +// projects.locations.workflowTemplates, the resource name of the template +// has the following format: +// projects/{project_id}/locations/{location}/workflowTemplates/{template_id}. func (r *ProjectsLocationsWorkflowTemplatesService) Update(name string, workflowtemplate *WorkflowTemplate) *ProjectsLocationsWorkflowTemplatesUpdateCall { c := &ProjectsLocationsWorkflowTemplatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7160,23 +5529,21 @@ func (r *ProjectsLocationsWorkflowTemplatesService) Update(name string, workflow } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowTemplatesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Context(ctx context.Context) *ProjectsLocationsWorkflowTemplatesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7185,18 +5552,12 @@ func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Header() http.Header { } func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workflowtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") @@ -7209,16 +5570,15 @@ func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.locations.workflowTemplates.update" call. -// Exactly one of *WorkflowTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *WorkflowTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkflowTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7226,17 +5586,17 @@ func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WorkflowTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -7249,38 +5609,7 @@ func (c *ProjectsLocationsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Updates (replaces) workflow template. The updated template must contain version that matches the current server version.", - // "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/workflowTemplates/{workflowTemplatesId}", - // "httpMethod": "PUT", - // "id": "dataproc.projects.locations.workflowTemplates.update", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "request": { - // "$ref": "WorkflowTemplate" - // }, - // "response": { - // "$ref": "WorkflowTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.autoscalingPolicies.create": +} type ProjectsRegionsAutoscalingPoliciesCreateCall struct { s *Service @@ -7293,13 +5622,12 @@ type ProjectsRegionsAutoscalingPoliciesCreateCall struct { // Create: Creates new autoscaling policy. // -// - parent: The "resource name" of the region or location, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.create, the resource name has -// the following format: projects/{project_id}/regions/{region} For -// projects.locations.autoscalingPolicies.create, the resource name -// has the following format: -// projects/{project_id}/locations/{location}. +// - parent: The "resource name" of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.create, the resource name has the +// following format: projects/{project_id}/regions/{region} For +// projects.locations.autoscalingPolicies.create, the resource name has the +// following format: projects/{project_id}/locations/{location}. func (r *ProjectsRegionsAutoscalingPoliciesService) Create(parent string, autoscalingpolicy *AutoscalingPolicy) *ProjectsRegionsAutoscalingPoliciesCreateCall { c := &ProjectsRegionsAutoscalingPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -7308,23 +5636,21 @@ func (r *ProjectsRegionsAutoscalingPoliciesService) Create(parent string, autosc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7333,18 +5659,12 @@ func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Header() http.Header { } func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscalingpolicy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/autoscalingPolicies") @@ -7357,16 +5677,15 @@ func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.create" call. -// Exactly one of *AutoscalingPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AutoscalingPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7374,17 +5693,17 @@ func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AutoscalingPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -7397,38 +5716,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesCreateCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Creates new autoscaling policy.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.autoscalingPolicies.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The \"resource name\" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name has the following format: projects/{project_id}/locations/{location}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/autoscalingPolicies", - // "request": { - // "$ref": "AutoscalingPolicy" - // }, - // "response": { - // "$ref": "AutoscalingPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.autoscalingPolicies.delete": +} type ProjectsRegionsAutoscalingPoliciesDeleteCall struct { s *Service @@ -7441,15 +5729,14 @@ type ProjectsRegionsAutoscalingPoliciesDeleteCall struct { // Delete: Deletes an autoscaling policy. It is an error to delete an // autoscaling policy that is in use by one or more clusters. // -// - name: The "resource name" of the autoscaling policy, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.delete, the resource name of -// the policy has the following format: -// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_i -// d} For projects.locations.autoscalingPolicies.delete, the resource -// name of the policy has the following format: -// projects/{project_id}/locations/{location}/autoscalingPolicies/{poli -// cy_id}. +// - name: The "resource name" of the autoscaling policy, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.delete, the resource name of the +// policy has the following format: +// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For +// projects.locations.autoscalingPolicies.delete, the resource name of the +// policy has the following format: +// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. func (r *ProjectsRegionsAutoscalingPoliciesService) Delete(name string) *ProjectsRegionsAutoscalingPoliciesDeleteCall { c := &ProjectsRegionsAutoscalingPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7457,23 +5744,21 @@ func (r *ProjectsRegionsAutoscalingPoliciesService) Delete(name string) *Project } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7482,12 +5767,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Header() http.Header { } func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -7501,16 +5781,14 @@ func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7518,17 +5796,17 @@ func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -7541,35 +5819,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesDeleteCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}", - // "httpMethod": "DELETE", - // "id": "dataproc.projects.regions.autoscalingPolicies.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.autoscalingPolicies.get": +} type ProjectsRegionsAutoscalingPoliciesGetCall struct { s *Service @@ -7582,15 +5832,14 @@ type ProjectsRegionsAutoscalingPoliciesGetCall struct { // Get: Retrieves autoscaling policy. // -// - name: The "resource name" of the autoscaling policy, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.get, the resource name of the +// - name: The "resource name" of the autoscaling policy, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.get, the resource name of the policy +// has the following format: +// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For +// projects.locations.autoscalingPolicies.get, the resource name of the // policy has the following format: -// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_i -// d} For projects.locations.autoscalingPolicies.get, the resource -// name of the policy has the following format: -// projects/{project_id}/locations/{location}/autoscalingPolicies/{poli -// cy_id}. +// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. func (r *ProjectsRegionsAutoscalingPoliciesService) Get(name string) *ProjectsRegionsAutoscalingPoliciesGetCall { c := &ProjectsRegionsAutoscalingPoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7598,33 +5847,29 @@ func (r *ProjectsRegionsAutoscalingPoliciesService) Get(name string) *ProjectsRe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsAutoscalingPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7633,12 +5878,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Header() http.Header { } func (c *ProjectsRegionsAutoscalingPoliciesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7655,16 +5895,15 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.get" call. -// Exactly one of *AutoscalingPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AutoscalingPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7672,17 +5911,17 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AutoscalingPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -7695,35 +5934,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Retrieves autoscaling policy.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.autoscalingPolicies.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies.get, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "AutoscalingPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.autoscalingPolicies.getIamPolicy": +} type ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall struct { s *Service @@ -7734,13 +5945,11 @@ type ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsRegionsAutoscalingPoliciesService) GetIamPolicy(resource string) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall { c := &ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -7749,12 +5958,11 @@ func (r *ProjectsRegionsAutoscalingPoliciesService) GetIamPolicy(resource string // OptionsRequestedPolicyVersion sets the optional parameter // "options.requestedPolicyVersion": The policy format version to be -// returned.Valid values are 0, 1, and 3. Requests specifying an invalid -// value will be rejected.Requests for policies with any conditional -// bindings must specify version 3. Policies without any conditional -// bindings may specify any valid value or leave the field unset.To -// learn which resources support conditions in their IAM policies, see -// the IAM documentation +// returned.Valid values are 0, 1, and 3. Requests specifying an invalid value +// will be rejected.Requests for policies with any conditional bindings must +// specify version 3. Policies without any conditional bindings may specify any +// valid value or leave the field unset.To learn which resources support +// conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -7762,33 +5970,29 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) OptionsRequestedPol } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7797,12 +6001,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Header() http.Heade } func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7819,16 +6018,14 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7836,17 +6033,17 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -7859,41 +6056,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesGetIamPolicyCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.autoscalingPolicies.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.autoscalingPolicies.list": +} type ProjectsRegionsAutoscalingPoliciesListCall struct { s *Service @@ -7906,13 +6069,12 @@ type ProjectsRegionsAutoscalingPoliciesListCall struct { // List: Lists autoscaling policies in the project. // -// - parent: The "resource name" of the region or location, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies.list, the resource name of the -// region has the following format: -// projects/{project_id}/regions/{region} For -// projects.locations.autoscalingPolicies.list, the resource name of -// the location has the following format: +// - parent: The "resource name" of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies.list, the resource name of the region +// has the following format: projects/{project_id}/regions/{region} For +// projects.locations.autoscalingPolicies.list, the resource name of the +// location has the following format: // projects/{project_id}/locations/{location}. func (r *ProjectsRegionsAutoscalingPoliciesService) List(parent string) *ProjectsRegionsAutoscalingPoliciesListCall { c := &ProjectsRegionsAutoscalingPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -7920,49 +6082,45 @@ func (r *ProjectsRegionsAutoscalingPoliciesService) List(parent string) *Project return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return in each response. Must be less than or equal to -// 1000. Defaults to 100. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return in each response. Must be less than or equal to 1000. +// Defaults to 100. func (c *ProjectsRegionsAutoscalingPoliciesListCall) PageSize(pageSize int64) *ProjectsRegionsAutoscalingPoliciesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token, -// returned by a previous call, to request the next page of results. +// PageToken sets the optional parameter "pageToken": The page token, returned +// by a previous call, to request the next page of results. func (c *ProjectsRegionsAutoscalingPoliciesListCall) PageToken(pageToken string) *ProjectsRegionsAutoscalingPoliciesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsAutoscalingPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsAutoscalingPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsRegionsAutoscalingPoliciesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsAutoscalingPoliciesListCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsAutoscalingPoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7971,12 +6129,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesListCall) Header() http.Header { } func (c *ProjectsRegionsAutoscalingPoliciesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7993,16 +6146,15 @@ func (c *ProjectsRegionsAutoscalingPoliciesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.list" call. -// Exactly one of *ListAutoscalingPoliciesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListAutoscalingPoliciesResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListAutoscalingPoliciesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsRegionsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAutoscalingPoliciesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8010,17 +6162,17 @@ func (c *ProjectsRegionsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListAutoscalingPoliciesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8033,43 +6185,6 @@ func (c *ProjectsRegionsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Lists autoscaling policies in the project.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.autoscalingPolicies.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return in each response. Must be less than or equal to 1000. Defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The page token, returned by a previous call, to request the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The \"resource name\" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/autoscalingPolicies", - // "response": { - // "$ref": "ListAutoscalingPoliciesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -8077,7 +6192,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesListCall) Do(opts ...googleapi.CallOp // The provided context supersedes any context provided to the Context method. func (c *ProjectsRegionsAutoscalingPoliciesListCall) Pages(ctx context.Context, f func(*ListAutoscalingPoliciesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -8093,8 +6208,6 @@ func (c *ProjectsRegionsAutoscalingPoliciesListCall) Pages(ctx context.Context, } } -// method id "dataproc.projects.regions.autoscalingPolicies.setIamPolicy": - type ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall struct { s *Service resource string @@ -8104,13 +6217,12 @@ type ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy.Can return NOT_FOUND, -// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsRegionsAutoscalingPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall { c := &ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -8119,23 +6231,21 @@ func (r *ProjectsRegionsAutoscalingPoliciesService) SetIamPolicy(resource string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8144,18 +6254,12 @@ func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Header() http.Heade } func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:setIamPolicy") @@ -8168,16 +6272,14 @@ func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8185,17 +6287,17 @@ func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -8208,38 +6310,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesSetIamPolicyCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.autoscalingPolicies.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.autoscalingPolicies.testIamPermissions": +} type ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall struct { s *Service @@ -8250,16 +6321,15 @@ type ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a NOT_FOUND error.Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsRegionsAutoscalingPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall { c := &ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -8268,23 +6338,21 @@ func (r *ProjectsRegionsAutoscalingPoliciesService) TestIamPermissions(resource } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8293,18 +6361,12 @@ func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Header() http } func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:testIamPermissions") @@ -8317,16 +6379,15 @@ func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8334,17 +6395,17 @@ func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...go if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8357,38 +6418,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesTestIamPermissionsCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.autoscalingPolicies.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.autoscalingPolicies.update": +} type ProjectsRegionsAutoscalingPoliciesUpdateCall struct { s *Service @@ -8402,16 +6432,14 @@ type ProjectsRegionsAutoscalingPoliciesUpdateCall struct { // Update: Updates (replaces) autoscaling policy.Disabled check for // update_mask, because all updates will be full replacements. // -// - name: Output only. The "resource name" of the autoscaling policy, -// as described in -// https://cloud.google.com/apis/design/resource_names. For -// projects.regions.autoscalingPolicies, the resource name of the -// policy has the following format: -// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_i -// d} For projects.locations.autoscalingPolicies, the resource name of -// the policy has the following format: -// projects/{project_id}/locations/{location}/autoscalingPolicies/{poli -// cy_id}. +// - name: Output only. The "resource name" of the autoscaling policy, as +// described in https://cloud.google.com/apis/design/resource_names. For +// projects.regions.autoscalingPolicies, the resource name of the policy has +// the following format: +// projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For +// projects.locations.autoscalingPolicies, the resource name of the policy +// has the following format: +// projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}. func (r *ProjectsRegionsAutoscalingPoliciesService) Update(name string, autoscalingpolicy *AutoscalingPolicy) *ProjectsRegionsAutoscalingPoliciesUpdateCall { c := &ProjectsRegionsAutoscalingPoliciesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -8420,23 +6448,21 @@ func (r *ProjectsRegionsAutoscalingPoliciesService) Update(name string, autoscal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Fields(s ...googleapi.Field) *ProjectsRegionsAutoscalingPoliciesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Context(ctx context.Context) *ProjectsRegionsAutoscalingPoliciesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8445,18 +6471,12 @@ func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Header() http.Header { } func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.autoscalingpolicy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") @@ -8469,16 +6489,15 @@ func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.autoscalingPolicies.update" call. -// Exactly one of *AutoscalingPolicy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AutoscalingPolicy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AutoscalingPolicy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*AutoscalingPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8486,17 +6505,17 @@ func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AutoscalingPolicy{ ServerResponse: googleapi.ServerResponse{ @@ -8509,38 +6528,7 @@ func (c *ProjectsRegionsAutoscalingPoliciesUpdateCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Updates (replaces) autoscaling policy.Disabled check for update_mask, because all updates will be full replacements.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/autoscalingPolicies/{autoscalingPoliciesId}", - // "httpMethod": "PUT", - // "id": "dataproc.projects.regions.autoscalingPolicies.update", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The \"resource name\" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/autoscalingPolicies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "request": { - // "$ref": "AutoscalingPolicy" - // }, - // "response": { - // "$ref": "AutoscalingPolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.create": +} type ProjectsRegionsClustersCreateCall struct { s *Service @@ -8552,12 +6540,12 @@ type ProjectsRegionsClustersCreateCall struct { header_ http.Header } -// Create: Creates a cluster in a project. The returned -// Operation.metadata will be ClusterOperationMetadata +// Create: Creates a cluster in a project. The returned Operation.metadata will +// be ClusterOperationMetadata // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). // -// - projectId: The ID of the Google Cloud Platform project that the -// cluster belongs to. +// - projectId: The ID of the Google Cloud Platform project that the cluster +// belongs to. // - region: The Dataproc region in which to handle the request. func (r *ProjectsRegionsClustersService) Create(projectId string, region string, cluster *Cluster) *ProjectsRegionsClustersCreateCall { c := &ProjectsRegionsClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -8567,39 +6555,36 @@ func (r *ProjectsRegionsClustersService) Create(projectId string, region string, return c } -// RequestId sets the optional parameter "requestId": A unique id used -// to identify the request. If the server receives two -// CreateClusterRequest +// RequestId sets the optional parameter "requestId": A unique id used to +// identify the request. If the server receives two CreateClusterRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1beta2.CreateClusterRequest)s -// with the same id, then the second request will be ignored and the -// first google.longrunning.Operation created and stored in the backend -// is returned.It is recommended to always set this value to a UUID -// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id -// must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), -// and hyphens (-). The maximum length is 40 characters. +// with the same id, then the second request will be ignored and the first +// google.longrunning.Operation created and stored in the backend is +// returned.It is recommended to always set this value to a UUID +// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must +// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens +// (-). The maximum length is 40 characters. func (c *ProjectsRegionsClustersCreateCall) RequestId(requestId string) *ProjectsRegionsClustersCreateCall { c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersCreateCall) Context(ctx context.Context) *ProjectsRegionsClustersCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8608,18 +6593,12 @@ func (c *ProjectsRegionsClustersCreateCall) Header() http.Header { } func (c *ProjectsRegionsClustersCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.cluster) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/projects/{projectId}/regions/{region}/clusters") @@ -8633,16 +6612,14 @@ func (c *ProjectsRegionsClustersCreateCall) doRequest(alt string) (*http.Respons "projectId": c.projectId, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8650,17 +6627,17 @@ func (c *ProjectsRegionsClustersCreateCall) Do(opts ...googleapi.CallOption) (*O if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8673,49 +6650,7 @@ func (c *ProjectsRegionsClustersCreateCall) Do(opts ...googleapi.CallOption) (*O return nil, err } return ret, nil - // { - // "description": "Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/clusters", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.clusters.create", - // "parameterOrder": [ - // "projectId", - // "region" - // ], - // "parameters": { - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. A unique id used to identify the request. If the server receives two CreateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1beta2.CreateClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/clusters", - // "request": { - // "$ref": "Cluster" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.delete": +} type ProjectsRegionsClustersDeleteCall struct { s *Service @@ -8727,13 +6662,13 @@ type ProjectsRegionsClustersDeleteCall struct { header_ http.Header } -// Delete: Deletes a cluster in a project. The returned -// Operation.metadata will be ClusterOperationMetadata +// Delete: Deletes a cluster in a project. The returned Operation.metadata will +// be ClusterOperationMetadata // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). // // - clusterName: The cluster name. -// - projectId: The ID of the Google Cloud Platform project that the -// cluster belongs to. +// - projectId: The ID of the Google Cloud Platform project that the cluster +// belongs to. // - region: The Dataproc region in which to handle the request. func (r *ProjectsRegionsClustersService) Delete(projectId string, region string, clusterName string) *ProjectsRegionsClustersDeleteCall { c := &ProjectsRegionsClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -8744,46 +6679,43 @@ func (r *ProjectsRegionsClustersService) Delete(projectId string, region string, } // ClusterUuid sets the optional parameter "clusterUuid": Specifying the -// cluster_uuid means the RPC should fail (with error NOT_FOUND) if -// cluster with specified UUID does not exist. +// cluster_uuid means the RPC should fail (with error NOT_FOUND) if cluster +// with specified UUID does not exist. func (c *ProjectsRegionsClustersDeleteCall) ClusterUuid(clusterUuid string) *ProjectsRegionsClustersDeleteCall { c.urlParams_.Set("clusterUuid", clusterUuid) return c } -// RequestId sets the optional parameter "requestId": A unique id used -// to identify the request. If the server receives two -// DeleteClusterRequest +// RequestId sets the optional parameter "requestId": A unique id used to +// identify the request. If the server receives two DeleteClusterRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1beta2.DeleteClusterRequest)s -// with the same id, then the second request will be ignored and the -// first google.longrunning.Operation created and stored in the backend -// is returned.It is recommended to always set this value to a UUID -// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id -// must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), -// and hyphens (-). The maximum length is 40 characters. +// with the same id, then the second request will be ignored and the first +// google.longrunning.Operation created and stored in the backend is +// returned.It is recommended to always set this value to a UUID +// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must +// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens +// (-). The maximum length is 40 characters. func (c *ProjectsRegionsClustersDeleteCall) RequestId(requestId string) *ProjectsRegionsClustersDeleteCall { c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersDeleteCall) Context(ctx context.Context) *ProjectsRegionsClustersDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8792,12 +6724,7 @@ func (c *ProjectsRegionsClustersDeleteCall) Header() http.Header { } func (c *ProjectsRegionsClustersDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -8813,16 +6740,14 @@ func (c *ProjectsRegionsClustersDeleteCall) doRequest(alt string) (*http.Respons "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8830,17 +6755,17 @@ func (c *ProjectsRegionsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*O if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8853,58 +6778,7 @@ func (c *ProjectsRegionsClustersDeleteCall) Do(opts ...googleapi.CallOption) (*O return nil, err } return ret, nil - // { - // "description": "Deletes a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}", - // "httpMethod": "DELETE", - // "id": "dataproc.projects.regions.clusters.delete", - // "parameterOrder": [ - // "projectId", - // "region", - // "clusterName" - // ], - // "parameters": { - // "clusterName": { - // "description": "Required. The cluster name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "clusterUuid": { - // "description": "Optional. Specifying the cluster_uuid means the RPC should fail (with error NOT_FOUND) if cluster with specified UUID does not exist.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. A unique id used to identify the request. If the server receives two DeleteClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1beta2.DeleteClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.diagnose": +} type ProjectsRegionsClustersDiagnoseCall struct { s *Service @@ -8923,8 +6797,8 @@ type ProjectsRegionsClustersDiagnoseCall struct { // After the operation completes, Operation.response contains Empty. // // - clusterName: The cluster name. -// - projectId: The ID of the Google Cloud Platform project that the -// cluster belongs to. +// - projectId: The ID of the Google Cloud Platform project that the cluster +// belongs to. // - region: The Dataproc region in which to handle the request. func (r *ProjectsRegionsClustersService) Diagnose(projectId string, region string, clusterName string, diagnoseclusterrequest *DiagnoseClusterRequest) *ProjectsRegionsClustersDiagnoseCall { c := &ProjectsRegionsClustersDiagnoseCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -8936,23 +6810,21 @@ func (r *ProjectsRegionsClustersService) Diagnose(projectId string, region strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersDiagnoseCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersDiagnoseCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersDiagnoseCall) Context(ctx context.Context) *ProjectsRegionsClustersDiagnoseCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersDiagnoseCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8961,18 +6833,12 @@ func (c *ProjectsRegionsClustersDiagnoseCall) Header() http.Header { } func (c *ProjectsRegionsClustersDiagnoseCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.diagnoseclusterrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose") @@ -8987,16 +6853,14 @@ func (c *ProjectsRegionsClustersDiagnoseCall) doRequest(alt string) (*http.Respo "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.diagnose" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsClustersDiagnoseCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9004,17 +6868,17 @@ func (c *ProjectsRegionsClustersDiagnoseCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -9027,51 +6891,7 @@ func (c *ProjectsRegionsClustersDiagnoseCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Gets cluster diagnostic information. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). After the operation completes, Operation.response contains Empty.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.clusters.diagnose", - // "parameterOrder": [ - // "projectId", - // "region", - // "clusterName" - // ], - // "parameters": { - // "clusterName": { - // "description": "Required. The cluster name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose", - // "request": { - // "$ref": "DiagnoseClusterRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.get": +} type ProjectsRegionsClustersGetCall struct { s *Service @@ -9087,8 +6907,8 @@ type ProjectsRegionsClustersGetCall struct { // Get: Gets the resource representation for a cluster in a project. // // - clusterName: The cluster name. -// - projectId: The ID of the Google Cloud Platform project that the -// cluster belongs to. +// - projectId: The ID of the Google Cloud Platform project that the cluster +// belongs to. // - region: The Dataproc region in which to handle the request. func (r *ProjectsRegionsClustersService) Get(projectId string, region string, clusterName string) *ProjectsRegionsClustersGetCall { c := &ProjectsRegionsClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -9099,33 +6919,29 @@ func (r *ProjectsRegionsClustersService) Get(projectId string, region string, cl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsClustersGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersGetCall) Context(ctx context.Context) *ProjectsRegionsClustersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9134,12 +6950,7 @@ func (c *ProjectsRegionsClustersGetCall) Header() http.Header { } func (c *ProjectsRegionsClustersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9158,16 +6969,14 @@ func (c *ProjectsRegionsClustersGetCall) doRequest(alt string) (*http.Response, "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.get" call. -// Exactly one of *Cluster or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Cluster.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Cluster.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9175,17 +6984,17 @@ func (c *ProjectsRegionsClustersGetCall) Do(opts ...googleapi.CallOption) (*Clus if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Cluster{ ServerResponse: googleapi.ServerResponse{ @@ -9198,48 +7007,7 @@ func (c *ProjectsRegionsClustersGetCall) Do(opts ...googleapi.CallOption) (*Clus return nil, err } return ret, nil - // { - // "description": "Gets the resource representation for a cluster in a project.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.clusters.get", - // "parameterOrder": [ - // "projectId", - // "region", - // "clusterName" - // ], - // "parameters": { - // "clusterName": { - // "description": "Required. The cluster name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}", - // "response": { - // "$ref": "Cluster" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.getIamPolicy": +} type ProjectsRegionsClustersGetIamPolicyCall struct { s *Service @@ -9250,13 +7018,11 @@ type ProjectsRegionsClustersGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsRegionsClustersService) GetIamPolicy(resource string) *ProjectsRegionsClustersGetIamPolicyCall { c := &ProjectsRegionsClustersGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -9265,12 +7031,11 @@ func (r *ProjectsRegionsClustersService) GetIamPolicy(resource string) *Projects // OptionsRequestedPolicyVersion sets the optional parameter // "options.requestedPolicyVersion": The policy format version to be -// returned.Valid values are 0, 1, and 3. Requests specifying an invalid -// value will be rejected.Requests for policies with any conditional -// bindings must specify version 3. Policies without any conditional -// bindings may specify any valid value or leave the field unset.To -// learn which resources support conditions in their IAM policies, see -// the IAM documentation +// returned.Valid values are 0, 1, and 3. Requests specifying an invalid value +// will be rejected.Requests for policies with any conditional bindings must +// specify version 3. Policies without any conditional bindings may specify any +// valid value or leave the field unset.To learn which resources support +// conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsRegionsClustersGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsClustersGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -9278,33 +7043,29 @@ func (c *ProjectsRegionsClustersGetIamPolicyCall) OptionsRequestedPolicyVersion( } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsClustersGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsClustersGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9313,12 +7074,7 @@ func (c *ProjectsRegionsClustersGetIamPolicyCall) Header() http.Header { } func (c *ProjectsRegionsClustersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9335,16 +7091,14 @@ func (c *ProjectsRegionsClustersGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsClustersGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9352,17 +7106,17 @@ func (c *ProjectsRegionsClustersGetIamPolicyCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -9375,41 +7129,7 @@ func (c *ProjectsRegionsClustersGetIamPolicyCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.clusters.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.injectCredentials": +} type ProjectsRegionsClustersInjectCredentialsCall struct { s *Service @@ -9422,13 +7142,13 @@ type ProjectsRegionsClustersInjectCredentialsCall struct { header_ http.Header } -// InjectCredentials: Inject encrypted credentials into all of the VMs -// in a cluster.The target cluster must be a personal auth cluster -// assigned to the user who is issuing the RPC. +// InjectCredentials: Inject encrypted credentials into all of the VMs in a +// cluster.The target cluster must be a personal auth cluster assigned to the +// user who is issuing the RPC. // // - cluster: The cluster, in the form clusters/. -// - project: The ID of the Google Cloud Platform project the cluster -// belongs to, of the form projects/. +// - project: The ID of the Google Cloud Platform project the cluster belongs +// to, of the form projects/. // - region: The region containing the cluster, of the form regions/. func (r *ProjectsRegionsClustersService) InjectCredentials(project string, region string, cluster string, injectcredentialsrequest *InjectCredentialsRequest) *ProjectsRegionsClustersInjectCredentialsCall { c := &ProjectsRegionsClustersInjectCredentialsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -9440,23 +7160,21 @@ func (r *ProjectsRegionsClustersService) InjectCredentials(project string, regio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersInjectCredentialsCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersInjectCredentialsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersInjectCredentialsCall) Context(ctx context.Context) *ProjectsRegionsClustersInjectCredentialsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersInjectCredentialsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9465,18 +7183,12 @@ func (c *ProjectsRegionsClustersInjectCredentialsCall) Header() http.Header { } func (c *ProjectsRegionsClustersInjectCredentialsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.injectcredentialsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+project}/{+region}/{+cluster}:injectCredentials") @@ -9491,16 +7203,14 @@ func (c *ProjectsRegionsClustersInjectCredentialsCall) doRequest(alt string) (*h "region": c.region, "cluster": c.cluster, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.injectCredentials" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsClustersInjectCredentialsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9508,17 +7218,17 @@ func (c *ProjectsRegionsClustersInjectCredentialsCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -9531,54 +7241,7 @@ func (c *ProjectsRegionsClustersInjectCredentialsCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Inject encrypted credentials into all of the VMs in a cluster.The target cluster must be a personal auth cluster assigned to the user who is issuing the RPC.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:injectCredentials", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.clusters.injectCredentials", - // "parameterOrder": [ - // "project", - // "region", - // "cluster" - // ], - // "parameters": { - // "cluster": { - // "description": "Required. The cluster, in the form clusters/.", - // "location": "path", - // "pattern": "^clusters/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to, of the form projects/.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The region containing the cluster, of the form regions/.", - // "location": "path", - // "pattern": "^regions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+project}/{+region}/{+cluster}:injectCredentials", - // "request": { - // "$ref": "InjectCredentialsRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.list": +} type ProjectsRegionsClustersListCall struct { s *Service @@ -9590,11 +7253,10 @@ type ProjectsRegionsClustersListCall struct { header_ http.Header } -// List: Lists all regions/{region}/clusters in a project -// alphabetically. +// List: Lists all regions/{region}/clusters in a project alphabetically. // -// - projectId: The ID of the Google Cloud Platform project that the -// cluster belongs to. +// - projectId: The ID of the Google Cloud Platform project that the cluster +// belongs to. // - region: The Dataproc region in which to handle the request. func (r *ProjectsRegionsClustersService) List(projectId string, region string) *ProjectsRegionsClustersListCall { c := &ProjectsRegionsClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -9603,66 +7265,61 @@ func (r *ProjectsRegionsClustersService) List(projectId string, region string) * return c } -// Filter sets the optional parameter "filter": A filter constraining -// the clusters to list. Filters are case-sensitive and have the -// following syntax:field = value AND field = value ...where field is -// one of status.state, clusterName, or labels.[KEY], and [KEY] is a -// label key. value can be * to match all values. status.state can be -// one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, -// DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and -// RUNNING states. INACTIVE contains the DELETING and ERROR states. -// clusterName is the name of the cluster provided at creation time. -// Only the logical AND operator is supported; space-separated items are -// treated as having an implicit AND operator.Example -// filter:status.state = ACTIVE AND clusterName = mycluster AND -// labels.env = staging AND labels.starred = * +// Filter sets the optional parameter "filter": A filter constraining the +// clusters to list. Filters are case-sensitive and have the following +// syntax:field = value AND field = value ...where field is one of +// status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value +// can be * to match all values. status.state can be one of the following: +// ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE +// contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the +// DELETING and ERROR states. clusterName is the name of the cluster provided +// at creation time. Only the logical AND operator is supported; +// space-separated items are treated as having an implicit AND operator.Example +// filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = +// staging AND labels.starred = * func (c *ProjectsRegionsClustersListCall) Filter(filter string) *ProjectsRegionsClustersListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard List -// page size. +// PageSize sets the optional parameter "pageSize": The standard List page +// size. func (c *ProjectsRegionsClustersListCall) PageSize(pageSize int64) *ProjectsRegionsClustersListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard List -// page token. +// PageToken sets the optional parameter "pageToken": The standard List page +// token. func (c *ProjectsRegionsClustersListCall) PageToken(pageToken string) *ProjectsRegionsClustersListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersListCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsClustersListCall) IfNoneMatch(entityTag string) *ProjectsRegionsClustersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersListCall) Context(ctx context.Context) *ProjectsRegionsClustersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9671,12 +7328,7 @@ func (c *ProjectsRegionsClustersListCall) Header() http.Header { } func (c *ProjectsRegionsClustersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9694,16 +7346,15 @@ func (c *ProjectsRegionsClustersListCall) doRequest(alt string) (*http.Response, "projectId": c.projectId, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.list" call. -// Exactly one of *ListClustersResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListClustersResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListClustersResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsRegionsClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9711,17 +7362,17 @@ func (c *ProjectsRegionsClustersListCall) Do(opts ...googleapi.CallOption) (*Lis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListClustersResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9734,54 +7385,6 @@ func (c *ProjectsRegionsClustersListCall) Do(opts ...googleapi.CallOption) (*Lis return nil, err } return ret, nil - // { - // "description": "Lists all regions/{region}/clusters in a project alphabetically.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/clusters", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.clusters.list", - // "parameterOrder": [ - // "projectId", - // "region" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING and ERROR states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The standard List page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The standard List page token.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/clusters", - // "response": { - // "$ref": "ListClustersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -9789,7 +7392,7 @@ func (c *ProjectsRegionsClustersListCall) Do(opts ...googleapi.CallOption) (*Lis // The provided context supersedes any context provided to the Context method. func (c *ProjectsRegionsClustersListCall) Pages(ctx context.Context, f func(*ListClustersResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -9805,8 +7408,6 @@ func (c *ProjectsRegionsClustersListCall) Pages(ctx context.Context, f func(*Lis } } -// method id "dataproc.projects.regions.clusters.patch": - type ProjectsRegionsClustersPatchCall struct { s *Service projectId string @@ -9818,14 +7419,14 @@ type ProjectsRegionsClustersPatchCall struct { header_ http.Header } -// Patch: Updates a cluster in a project. The returned -// Operation.metadata will be ClusterOperationMetadata +// Patch: Updates a cluster in a project. The returned Operation.metadata will +// be ClusterOperationMetadata // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). // The cluster must be in a RUNNING state or an error is returned. // // - clusterName: The cluster name. -// - projectId: The ID of the Google Cloud Platform project the cluster -// belongs to. +// - projectId: The ID of the Google Cloud Platform project the cluster belongs +// to. // - region: The Dataproc region in which to handle the request. func (r *ProjectsRegionsClustersService) Patch(projectId string, region string, clusterName string, cluster *Cluster) *ProjectsRegionsClustersPatchCall { c := &ProjectsRegionsClustersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -9837,13 +7438,12 @@ func (r *ProjectsRegionsClustersService) Patch(projectId string, region string, } // GracefulDecommissionTimeout sets the optional parameter -// "gracefulDecommissionTimeout": Timeout for graceful YARN -// decomissioning. Graceful decommissioning allows removing nodes from -// the cluster without interrupting jobs in progress. Timeout specifies -// how long to wait for jobs in progress to finish before forcefully -// removing nodes (and potentially interrupting jobs). Default timeout -// is 0 (for forceful decommission), and the maximum allowed timeout is -// 1 day (see JSON representation of Duration +// "gracefulDecommissionTimeout": Timeout for graceful YARN decomissioning. +// Graceful decommissioning allows removing nodes from the cluster without +// interrupting jobs in progress. Timeout specifies how long to wait for jobs +// in progress to finish before forcefully removing nodes (and potentially +// interrupting jobs). Default timeout is 0 (for forceful decommission), and +// the maximum allowed timeout is 1 day (see JSON representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only // supported on Dataproc image versions 1.2 and higher. func (c *ProjectsRegionsClustersPatchCall) GracefulDecommissionTimeout(gracefulDecommissionTimeout string) *ProjectsRegionsClustersPatchCall { @@ -9851,63 +7451,59 @@ func (c *ProjectsRegionsClustersPatchCall) GracefulDecommissionTimeout(gracefulD return c } -// RequestId sets the optional parameter "requestId": A unique id used -// to identify the request. If the server receives two -// UpdateClusterRequest +// RequestId sets the optional parameter "requestId": A unique id used to +// identify the request. If the server receives two UpdateClusterRequest // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1beta2.UpdateClusterRequest)s -// with the same id, then the second request will be ignored and the -// first google.longrunning.Operation created and stored in the backend -// is returned.It is recommended to always set this value to a UUID -// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id -// must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), -// and hyphens (-). The maximum length is 40 characters. +// with the same id, then the second request will be ignored and the first +// google.longrunning.Operation created and stored in the backend is +// returned.It is recommended to always set this value to a UUID +// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must +// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens +// (-). The maximum length is 40 characters. func (c *ProjectsRegionsClustersPatchCall) RequestId(requestId string) *ProjectsRegionsClustersPatchCall { c.urlParams_.Set("requestId", requestId) return c } -// UpdateMask sets the optional parameter "updateMask": Required. -// Specifies the path, relative to Cluster, of the field to update. For -// example, to change the number of workers in a cluster to 5, the -// update_mask parameter would be specified as -// config.worker_config.num_instances, and the PATCH request body would -// specify the new value, as follows: { "config":{ "workerConfig":{ -// "numInstances":"5" } } } Similarly, to change the number of -// preemptible workers in a cluster to 5, the update_mask parameter -// would be config.secondary_worker_config.num_instances, and the PATCH -// request body would be set as follows: { "config":{ -// "secondaryWorkerConfig":{ "numInstances":"5" } } } *Note:* currently -// only the following fields can be updated: *Mask* *Purpose* labels -// Updates labels config.worker_config.num_instances Resize primary -// worker group config.secondary_worker_config.num_instances Resize -// secondary worker group config.lifecycle_config.auto_delete_ttl Reset -// MAX TTL duration config.lifecycle_config.auto_delete_time Update MAX -// TTL deletion timestamp config.lifecycle_config.idle_delete_ttl Update -// Idle TTL duration config.autoscaling_config.policy_uri Use, stop -// using, or change autoscaling policies +// UpdateMask sets the optional parameter "updateMask": Required. Specifies the +// path, relative to Cluster, of the field to update. For example, to change +// the number of workers in a cluster to 5, the update_mask parameter would be +// specified as config.worker_config.num_instances, and the PATCH request body +// would specify the new value, as follows: { "config":{ "workerConfig":{ +// "numInstances":"5" } } } Similarly, to change the number of preemptible +// workers in a cluster to 5, the update_mask parameter would be +// config.secondary_worker_config.num_instances, and the PATCH request body +// would be set as follows: { "config":{ "secondaryWorkerConfig":{ +// "numInstances":"5" } } } *Note:* currently only the following fields can be +// updated: *Mask* *Purpose* labels Updates labels +// config.worker_config.num_instances Resize primary worker group +// config.secondary_worker_config.num_instances Resize secondary worker group +// config.lifecycle_config.auto_delete_ttl Reset MAX TTL duration +// config.lifecycle_config.auto_delete_time Update MAX TTL deletion timestamp +// config.lifecycle_config.idle_delete_ttl Update Idle TTL duration +// config.autoscaling_config.policy_uri Use, stop using, or change autoscaling +// policies func (c *ProjectsRegionsClustersPatchCall) UpdateMask(updateMask string) *ProjectsRegionsClustersPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersPatchCall) Context(ctx context.Context) *ProjectsRegionsClustersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9916,18 +7512,12 @@ func (c *ProjectsRegionsClustersPatchCall) Header() http.Header { } func (c *ProjectsRegionsClustersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.cluster) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}") @@ -9942,16 +7532,14 @@ func (c *ProjectsRegionsClustersPatchCall) doRequest(alt string) (*http.Response "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9959,17 +7547,17 @@ func (c *ProjectsRegionsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Op if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -9982,68 +7570,7 @@ func (c *ProjectsRegionsClustersPatchCall) Do(opts ...googleapi.CallOption) (*Op return nil, err } return ret, nil - // { - // "description": "Updates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). The cluster must be in a RUNNING state or an error is returned.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}", - // "httpMethod": "PATCH", - // "id": "dataproc.projects.regions.clusters.patch", - // "parameterOrder": [ - // "projectId", - // "region", - // "clusterName" - // ], - // "parameters": { - // "clusterName": { - // "description": "Required. The cluster name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "gracefulDecommissionTimeout": { - // "description": "Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image versions 1.2 and higher.", - // "format": "google-duration", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. A unique id used to identify the request. If the server receives two UpdateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1beta2.UpdateClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows: { \"config\":{ \"workerConfig\":{ \"numInstances\":\"5\" } } } Similarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows: { \"config\":{ \"secondaryWorkerConfig\":{ \"numInstances\":\"5\" } } } *Note:* currently only the following fields can be updated: *Mask* *Purpose* labels Updates labels config.worker_config.num_instances Resize primary worker group config.secondary_worker_config.num_instances Resize secondary worker group config.lifecycle_config.auto_delete_ttl Reset MAX TTL duration config.lifecycle_config.auto_delete_time Update MAX TTL deletion timestamp config.lifecycle_config.idle_delete_ttl Update Idle TTL duration config.autoscaling_config.policy_uri Use, stop using, or change autoscaling policies ", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}", - // "request": { - // "$ref": "Cluster" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.setIamPolicy": +} type ProjectsRegionsClustersSetIamPolicyCall struct { s *Service @@ -10054,13 +7581,12 @@ type ProjectsRegionsClustersSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy.Can return NOT_FOUND, -// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsRegionsClustersService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsClustersSetIamPolicyCall { c := &ProjectsRegionsClustersSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -10069,23 +7595,21 @@ func (r *ProjectsRegionsClustersService) SetIamPolicy(resource string, setiampol } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsClustersSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10094,18 +7618,12 @@ func (c *ProjectsRegionsClustersSetIamPolicyCall) Header() http.Header { } func (c *ProjectsRegionsClustersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:setIamPolicy") @@ -10118,16 +7636,14 @@ func (c *ProjectsRegionsClustersSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsClustersSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10135,17 +7651,17 @@ func (c *ProjectsRegionsClustersSetIamPolicyCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -10158,38 +7674,7 @@ func (c *ProjectsRegionsClustersSetIamPolicyCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.clusters.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.start": +} type ProjectsRegionsClustersStartCall struct { s *Service @@ -10205,8 +7690,8 @@ type ProjectsRegionsClustersStartCall struct { // Start: Starts a cluster in a project. // // - clusterName: The cluster name. -// - projectId: The ID of the Google Cloud Platform project the cluster -// belongs to. +// - projectId: The ID of the Google Cloud Platform project the cluster belongs +// to. // - region: The Dataproc region in which to handle the request. func (r *ProjectsRegionsClustersService) Start(projectId string, region string, clusterName string, startclusterrequest *StartClusterRequest) *ProjectsRegionsClustersStartCall { c := &ProjectsRegionsClustersStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -10218,23 +7703,21 @@ func (r *ProjectsRegionsClustersService) Start(projectId string, region string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersStartCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersStartCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersStartCall) Context(ctx context.Context) *ProjectsRegionsClustersStartCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersStartCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10243,18 +7726,12 @@ func (c *ProjectsRegionsClustersStartCall) Header() http.Header { } func (c *ProjectsRegionsClustersStartCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.startclusterrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:start") @@ -10269,16 +7746,14 @@ func (c *ProjectsRegionsClustersStartCall) doRequest(alt string) (*http.Response "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.start" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsClustersStartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10286,17 +7761,17 @@ func (c *ProjectsRegionsClustersStartCall) Do(opts ...googleapi.CallOption) (*Op if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -10309,51 +7784,7 @@ func (c *ProjectsRegionsClustersStartCall) Do(opts ...googleapi.CallOption) (*Op return nil, err } return ret, nil - // { - // "description": "Starts a cluster in a project.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:start", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.clusters.start", - // "parameterOrder": [ - // "projectId", - // "region", - // "clusterName" - // ], - // "parameters": { - // "clusterName": { - // "description": "Required. The cluster name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:start", - // "request": { - // "$ref": "StartClusterRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.stop": +} type ProjectsRegionsClustersStopCall struct { s *Service @@ -10369,8 +7800,8 @@ type ProjectsRegionsClustersStopCall struct { // Stop: Stops a cluster in a project. // // - clusterName: The cluster name. -// - projectId: The ID of the Google Cloud Platform project the cluster -// belongs to. +// - projectId: The ID of the Google Cloud Platform project the cluster belongs +// to. // - region: The Dataproc region in which to handle the request. func (r *ProjectsRegionsClustersService) Stop(projectId string, region string, clusterName string, stopclusterrequest *StopClusterRequest) *ProjectsRegionsClustersStopCall { c := &ProjectsRegionsClustersStopCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -10382,23 +7813,21 @@ func (r *ProjectsRegionsClustersService) Stop(projectId string, region string, c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersStopCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersStopCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersStopCall) Context(ctx context.Context) *ProjectsRegionsClustersStopCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersStopCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10407,18 +7836,12 @@ func (c *ProjectsRegionsClustersStopCall) Header() http.Header { } func (c *ProjectsRegionsClustersStopCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.stopclusterrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop") @@ -10433,16 +7856,14 @@ func (c *ProjectsRegionsClustersStopCall) doRequest(alt string) (*http.Response, "region": c.region, "clusterName": c.clusterName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.stop" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsClustersStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10450,17 +7871,17 @@ func (c *ProjectsRegionsClustersStopCall) Do(opts ...googleapi.CallOption) (*Ope if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -10473,51 +7894,7 @@ func (c *ProjectsRegionsClustersStopCall) Do(opts ...googleapi.CallOption) (*Ope return nil, err } return ret, nil - // { - // "description": "Stops a cluster in a project.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.clusters.stop", - // "parameterOrder": [ - // "projectId", - // "region", - // "clusterName" - // ], - // "parameters": { - // "clusterName": { - // "description": "Required. The cluster name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project the cluster belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop", - // "request": { - // "$ref": "StopClusterRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.clusters.testIamPermissions": +} type ProjectsRegionsClustersTestIamPermissionsCall struct { s *Service @@ -10528,16 +7905,15 @@ type ProjectsRegionsClustersTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a NOT_FOUND error.Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsRegionsClustersService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsClustersTestIamPermissionsCall { c := &ProjectsRegionsClustersTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -10546,23 +7922,21 @@ func (r *ProjectsRegionsClustersService) TestIamPermissions(resource string, tes } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsClustersTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsClustersTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsClustersTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsClustersTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10571,18 +7945,12 @@ func (c *ProjectsRegionsClustersTestIamPermissionsCall) Header() http.Header { } func (c *ProjectsRegionsClustersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:testIamPermissions") @@ -10595,16 +7963,15 @@ func (c *ProjectsRegionsClustersTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.clusters.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsRegionsClustersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10612,17 +7979,17 @@ func (c *ProjectsRegionsClustersTestIamPermissionsCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -10635,38 +8002,7 @@ func (c *ProjectsRegionsClustersTestIamPermissionsCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.clusters.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.jobs.cancel": +} type ProjectsRegionsJobsCancelCall struct { s *Service @@ -10679,8 +8015,8 @@ type ProjectsRegionsJobsCancelCall struct { header_ http.Header } -// Cancel: Starts a job cancellation request. To access the job resource -// after cancellation, call regions/{region}/jobs.list +// Cancel: Starts a job cancellation request. To access the job resource after +// cancellation, call regions/{region}/jobs.list // (https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list) // or regions/{region}/jobs.get // (https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). @@ -10699,23 +8035,21 @@ func (r *ProjectsRegionsJobsService) Cancel(projectId string, region string, job } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsJobsCancelCall) Context(ctx context.Context) *ProjectsRegionsJobsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsJobsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10724,18 +8058,12 @@ func (c *ProjectsRegionsJobsCancelCall) Header() http.Header { } func (c *ProjectsRegionsJobsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceljobrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel") @@ -10750,16 +8078,14 @@ func (c *ProjectsRegionsJobsCancelCall) doRequest(alt string) (*http.Response, e "region": c.region, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.cancel" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsJobsCancelCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10767,17 +8093,17 @@ func (c *ProjectsRegionsJobsCancelCall) Do(opts ...googleapi.CallOption) (*Job, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -10790,51 +8116,7 @@ func (c *ProjectsRegionsJobsCancelCall) Do(opts ...googleapi.CallOption) (*Job, return nil, err } return ret, nil - // { - // "description": "Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list (https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list) or regions/{region}/jobs.get (https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get).", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.jobs.cancel", - // "parameterOrder": [ - // "projectId", - // "region", - // "jobId" - // ], - // "parameters": { - // "jobId": { - // "description": "Required. The job ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel", - // "request": { - // "$ref": "CancelJobRequest" - // }, - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.jobs.delete": +} type ProjectsRegionsJobsDeleteCall struct { s *Service @@ -10846,8 +8128,8 @@ type ProjectsRegionsJobsDeleteCall struct { header_ http.Header } -// Delete: Deletes the job from the project. If the job is active, the -// delete fails, and the response returns FAILED_PRECONDITION. +// Delete: Deletes the job from the project. If the job is active, the delete +// fails, and the response returns FAILED_PRECONDITION. // // - jobId: The job ID. // - projectId: The ID of the Google Cloud Platform project that the job @@ -10862,23 +8144,21 @@ func (r *ProjectsRegionsJobsService) Delete(projectId string, region string, job } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsJobsDeleteCall) Context(ctx context.Context) *ProjectsRegionsJobsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10887,12 +8167,7 @@ func (c *ProjectsRegionsJobsDeleteCall) Header() http.Header { } func (c *ProjectsRegionsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -10908,16 +8183,14 @@ func (c *ProjectsRegionsJobsDeleteCall) doRequest(alt string) (*http.Response, e "region": c.region, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10925,17 +8198,17 @@ func (c *ProjectsRegionsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -10948,48 +8221,7 @@ func (c *ProjectsRegionsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty return nil, err } return ret, nil - // { - // "description": "Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}", - // "httpMethod": "DELETE", - // "id": "dataproc.projects.regions.jobs.delete", - // "parameterOrder": [ - // "projectId", - // "region", - // "jobId" - // ], - // "parameters": { - // "jobId": { - // "description": "Required. The job ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.jobs.get": +} type ProjectsRegionsJobsGetCall struct { s *Service @@ -11017,33 +8249,29 @@ func (r *ProjectsRegionsJobsService) Get(projectId string, region string, jobId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsJobsGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsJobsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsJobsGetCall) Context(ctx context.Context) *ProjectsRegionsJobsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11052,12 +8280,7 @@ func (c *ProjectsRegionsJobsGetCall) Header() http.Header { } func (c *ProjectsRegionsJobsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11076,16 +8299,14 @@ func (c *ProjectsRegionsJobsGetCall) doRequest(alt string) (*http.Response, erro "region": c.region, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.get" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11093,17 +8314,17 @@ func (c *ProjectsRegionsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -11116,48 +8337,7 @@ func (c *ProjectsRegionsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, err return nil, err } return ret, nil - // { - // "description": "Gets the resource representation for a job in a project.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.jobs.get", - // "parameterOrder": [ - // "projectId", - // "region", - // "jobId" - // ], - // "parameters": { - // "jobId": { - // "description": "Required. The job ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}", - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.jobs.getIamPolicy": +} type ProjectsRegionsJobsGetIamPolicyCall struct { s *Service @@ -11168,13 +8348,11 @@ type ProjectsRegionsJobsGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsRegionsJobsService) GetIamPolicy(resource string) *ProjectsRegionsJobsGetIamPolicyCall { c := &ProjectsRegionsJobsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -11183,12 +8361,11 @@ func (r *ProjectsRegionsJobsService) GetIamPolicy(resource string) *ProjectsRegi // OptionsRequestedPolicyVersion sets the optional parameter // "options.requestedPolicyVersion": The policy format version to be -// returned.Valid values are 0, 1, and 3. Requests specifying an invalid -// value will be rejected.Requests for policies with any conditional -// bindings must specify version 3. Policies without any conditional -// bindings may specify any valid value or leave the field unset.To -// learn which resources support conditions in their IAM policies, see -// the IAM documentation +// returned.Valid values are 0, 1, and 3. Requests specifying an invalid value +// will be rejected.Requests for policies with any conditional bindings must +// specify version 3. Policies without any conditional bindings may specify any +// valid value or leave the field unset.To learn which resources support +// conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsRegionsJobsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsJobsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -11196,33 +8373,29 @@ func (c *ProjectsRegionsJobsGetIamPolicyCall) OptionsRequestedPolicyVersion(opti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsJobsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsJobsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsJobsGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsJobsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsJobsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11231,12 +8404,7 @@ func (c *ProjectsRegionsJobsGetIamPolicyCall) Header() http.Header { } func (c *ProjectsRegionsJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11253,16 +8421,14 @@ func (c *ProjectsRegionsJobsGetIamPolicyCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11270,17 +8436,17 @@ func (c *ProjectsRegionsJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -11293,41 +8459,7 @@ func (c *ProjectsRegionsJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/jobs/{jobsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.jobs.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.jobs.list": +} type ProjectsRegionsJobsListCall struct { s *Service @@ -11351,88 +8483,82 @@ func (r *ProjectsRegionsJobsService) List(projectId string, region string) *Proj return c } -// ClusterName sets the optional parameter "clusterName": If set, the -// returned jobs list includes only jobs that were submitted to the -// named cluster. +// ClusterName sets the optional parameter "clusterName": If set, the returned +// jobs list includes only jobs that were submitted to the named cluster. func (c *ProjectsRegionsJobsListCall) ClusterName(clusterName string) *ProjectsRegionsJobsListCall { c.urlParams_.Set("clusterName", clusterName) return c } -// Filter sets the optional parameter "filter": A filter constraining -// the jobs to list. Filters are case-sensitive and have the following -// syntax:field = value AND field = value ...where field is status.state -// or labels.[KEY], and [KEY] is a label key. value can be * to match -// all values. status.state can be either ACTIVE or NON_ACTIVE. Only the -// logical AND operator is supported; space-separated items are treated -// as having an implicit AND operator.Example filter:status.state = -// ACTIVE AND labels.env = staging AND labels.starred = * +// Filter sets the optional parameter "filter": A filter constraining the jobs +// to list. Filters are case-sensitive and have the following syntax:field = +// value AND field = value ...where field is status.state or labels.[KEY], and +// [KEY] is a label key. value can be * to match all values. status.state can +// be either ACTIVE or NON_ACTIVE. Only the logical AND operator is supported; +// space-separated items are treated as having an implicit AND operator.Example +// filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = * func (c *ProjectsRegionsJobsListCall) Filter(filter string) *ProjectsRegionsJobsListCall { c.urlParams_.Set("filter", filter) return c } -// JobStateMatcher sets the optional parameter "jobStateMatcher": -// Specifies enumerated categories of jobs to list. (default = match ALL -// jobs).If filter is provided, jobStateMatcher will be ignored. +// JobStateMatcher sets the optional parameter "jobStateMatcher": Specifies +// enumerated categories of jobs to list. (default = match ALL jobs).If filter +// is provided, jobStateMatcher will be ignored. // // Possible values: // // "ALL" - Match all jobs, regardless of state. -// "ACTIVE" - Only match jobs in non-terminal states: PENDING, +// "ACTIVE" - Only match jobs in non-terminal states: PENDING, RUNNING, or // -// RUNNING, or CANCEL_PENDING. +// CANCEL_PENDING. // -// "NON_ACTIVE" - Only match jobs in terminal states: CANCELLED, DONE, +// "NON_ACTIVE" - Only match jobs in terminal states: CANCELLED, DONE, or // -// or ERROR. +// ERROR. func (c *ProjectsRegionsJobsListCall) JobStateMatcher(jobStateMatcher string) *ProjectsRegionsJobsListCall { c.urlParams_.Set("jobStateMatcher", jobStateMatcher) return c } -// PageSize sets the optional parameter "pageSize": The number of -// results to return in each response. +// PageSize sets the optional parameter "pageSize": The number of results to +// return in each response. func (c *ProjectsRegionsJobsListCall) PageSize(pageSize int64) *ProjectsRegionsJobsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token, -// returned by a previous call, to request the next page of results. +// PageToken sets the optional parameter "pageToken": The page token, returned +// by a previous call, to request the next page of results. func (c *ProjectsRegionsJobsListCall) PageToken(pageToken string) *ProjectsRegionsJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsJobsListCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsJobsListCall) IfNoneMatch(entityTag string) *ProjectsRegionsJobsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsJobsListCall) Context(ctx context.Context) *ProjectsRegionsJobsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11441,12 +8567,7 @@ func (c *ProjectsRegionsJobsListCall) Header() http.Header { } func (c *ProjectsRegionsJobsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11464,16 +8585,15 @@ func (c *ProjectsRegionsJobsListCall) doRequest(alt string) (*http.Response, err "projectId": c.projectId, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.list" call. -// Exactly one of *ListJobsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListJobsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListJobsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsRegionsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11481,17 +8601,17 @@ func (c *ProjectsRegionsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJob if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListJobsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -11504,74 +8624,6 @@ func (c *ProjectsRegionsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJob return nil, err } return ret, nil - // { - // "description": "Lists regions/{region}/jobs in a project.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/jobs", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.jobs.list", - // "parameterOrder": [ - // "projectId", - // "region" - // ], - // "parameters": { - // "clusterName": { - // "description": "Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster.", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Optional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is status.state or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be either ACTIVE or NON_ACTIVE. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *", - // "location": "query", - // "type": "string" - // }, - // "jobStateMatcher": { - // "description": "Optional. Specifies enumerated categories of jobs to list. (default = match ALL jobs).If filter is provided, jobStateMatcher will be ignored.", - // "enum": [ - // "ALL", - // "ACTIVE", - // "NON_ACTIVE" - // ], - // "enumDescriptions": [ - // "Match all jobs, regardless of state.", - // "Only match jobs in non-terminal states: PENDING, RUNNING, or CANCEL_PENDING.", - // "Only match jobs in terminal states: CANCELLED, DONE, or ERROR." - // ], - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The number of results to return in each response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The page token, returned by a previous call, to request the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/jobs", - // "response": { - // "$ref": "ListJobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -11579,7 +8631,7 @@ func (c *ProjectsRegionsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJob // The provided context supersedes any context provided to the Context method. func (c *ProjectsRegionsJobsListCall) Pages(ctx context.Context, f func(*ListJobsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -11595,8 +8647,6 @@ func (c *ProjectsRegionsJobsListCall) Pages(ctx context.Context, f func(*ListJob } } -// method id "dataproc.projects.regions.jobs.patch": - type ProjectsRegionsJobsPatchCall struct { s *Service projectId string @@ -11623,35 +8673,32 @@ func (r *ProjectsRegionsJobsService) Patch(projectId string, region string, jobI return c } -// UpdateMask sets the optional parameter "updateMask": Required. -// Specifies the path, relative to Job, of the field to update. For -// example, to update the labels of a Job the update_mask parameter -// would be specified as labels, and the PATCH request body would -// specify the new value. *Note:* Currently, labels is the only field -// that can be updated. +// UpdateMask sets the optional parameter "updateMask": Required. Specifies the +// path, relative to Job, of the field to update. For example, to update the +// labels of a Job the update_mask parameter would be specified as labels, and +// the PATCH request body would specify the new value. *Note:* Currently, +// labels is the only field that can be updated. func (c *ProjectsRegionsJobsPatchCall) UpdateMask(updateMask string) *ProjectsRegionsJobsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsJobsPatchCall) Context(ctx context.Context) *ProjectsRegionsJobsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsJobsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11660,18 +8707,12 @@ func (c *ProjectsRegionsJobsPatchCall) Header() http.Header { } func (c *ProjectsRegionsJobsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.job) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}") @@ -11686,16 +8727,14 @@ func (c *ProjectsRegionsJobsPatchCall) doRequest(alt string) (*http.Response, er "region": c.region, "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.patch" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsJobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11703,17 +8742,17 @@ func (c *ProjectsRegionsJobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -11726,57 +8765,7 @@ func (c *ProjectsRegionsJobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, e return nil, err } return ret, nil - // { - // "description": "Updates a job in a project.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}", - // "httpMethod": "PATCH", - // "id": "dataproc.projects.regions.jobs.patch", - // "parameterOrder": [ - // "projectId", - // "region", - // "jobId" - // ], - // "parameters": { - // "jobId": { - // "description": "Required. The job ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Specifies the path, relative to Job, of the field to update. For example, to update the labels of a Job the update_mask parameter would be specified as labels, and the PATCH request body would specify the new value. *Note:* Currently, labels is the only field that can be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}", - // "request": { - // "$ref": "Job" - // }, - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.jobs.setIamPolicy": +} type ProjectsRegionsJobsSetIamPolicyCall struct { s *Service @@ -11787,13 +8776,12 @@ type ProjectsRegionsJobsSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy.Can return NOT_FOUND, -// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsRegionsJobsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsJobsSetIamPolicyCall { c := &ProjectsRegionsJobsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -11802,23 +8790,21 @@ func (r *ProjectsRegionsJobsService) SetIamPolicy(resource string, setiampolicyr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsJobsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsJobsSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsJobsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsJobsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11827,18 +8813,12 @@ func (c *ProjectsRegionsJobsSetIamPolicyCall) Header() http.Header { } func (c *ProjectsRegionsJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:setIamPolicy") @@ -11851,16 +8831,14 @@ func (c *ProjectsRegionsJobsSetIamPolicyCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11868,17 +8846,17 @@ func (c *ProjectsRegionsJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -11891,38 +8869,7 @@ func (c *ProjectsRegionsJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/jobs/{jobsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.jobs.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.jobs.submit": +} type ProjectsRegionsJobsSubmitCall struct { s *Service @@ -11948,23 +8895,21 @@ func (r *ProjectsRegionsJobsService) Submit(projectId string, region string, sub } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsJobsSubmitCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsSubmitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsJobsSubmitCall) Context(ctx context.Context) *ProjectsRegionsJobsSubmitCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsJobsSubmitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11973,18 +8918,12 @@ func (c *ProjectsRegionsJobsSubmitCall) Header() http.Header { } func (c *ProjectsRegionsJobsSubmitCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.submitjobrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/projects/{projectId}/regions/{region}/jobs:submit") @@ -11998,16 +8937,14 @@ func (c *ProjectsRegionsJobsSubmitCall) doRequest(alt string) (*http.Response, e "projectId": c.projectId, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.submit" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsJobsSubmitCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12015,17 +8952,17 @@ func (c *ProjectsRegionsJobsSubmitCall) Do(opts ...googleapi.CallOption) (*Job, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -12038,44 +8975,7 @@ func (c *ProjectsRegionsJobsSubmitCall) Do(opts ...googleapi.CallOption) (*Job, return nil, err } return ret, nil - // { - // "description": "Submits a job to a cluster.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/jobs:submit", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.jobs.submit", - // "parameterOrder": [ - // "projectId", - // "region" - // ], - // "parameters": { - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/jobs:submit", - // "request": { - // "$ref": "SubmitJobRequest" - // }, - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.jobs.submitAsOperation": +} type ProjectsRegionsJobsSubmitAsOperationCall struct { s *Service @@ -12101,23 +9001,21 @@ func (r *ProjectsRegionsJobsService) SubmitAsOperation(projectId string, region } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsJobsSubmitAsOperationCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsSubmitAsOperationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsJobsSubmitAsOperationCall) Context(ctx context.Context) *ProjectsRegionsJobsSubmitAsOperationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsJobsSubmitAsOperationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12126,18 +9024,12 @@ func (c *ProjectsRegionsJobsSubmitAsOperationCall) Header() http.Header { } func (c *ProjectsRegionsJobsSubmitAsOperationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.submitjobrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/projects/{projectId}/regions/{region}/jobs:submitAsOperation") @@ -12151,16 +9043,14 @@ func (c *ProjectsRegionsJobsSubmitAsOperationCall) doRequest(alt string) (*http. "projectId": c.projectId, "region": c.region, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.submitAsOperation" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsJobsSubmitAsOperationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12168,17 +9058,17 @@ func (c *ProjectsRegionsJobsSubmitAsOperationCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -12191,44 +9081,7 @@ func (c *ProjectsRegionsJobsSubmitAsOperationCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Submits job to a cluster.", - // "flatPath": "v1beta2/projects/{projectId}/regions/{region}/jobs:submitAsOperation", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.jobs.submitAsOperation", - // "parameterOrder": [ - // "projectId", - // "region" - // ], - // "parameters": { - // "projectId": { - // "description": "Required. The ID of the Google Cloud Platform project that the job belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "Required. The Dataproc region in which to handle the request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/projects/{projectId}/regions/{region}/jobs:submitAsOperation", - // "request": { - // "$ref": "SubmitJobRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.jobs.testIamPermissions": +} type ProjectsRegionsJobsTestIamPermissionsCall struct { s *Service @@ -12239,16 +9092,15 @@ type ProjectsRegionsJobsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a NOT_FOUND error.Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsRegionsJobsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsJobsTestIamPermissionsCall { c := &ProjectsRegionsJobsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -12257,23 +9109,21 @@ func (r *ProjectsRegionsJobsService) TestIamPermissions(resource string, testiam } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsJobsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsJobsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsJobsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsJobsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsJobsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12282,18 +9132,12 @@ func (c *ProjectsRegionsJobsTestIamPermissionsCall) Header() http.Header { } func (c *ProjectsRegionsJobsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:testIamPermissions") @@ -12306,16 +9150,15 @@ func (c *ProjectsRegionsJobsTestIamPermissionsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.jobs.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsRegionsJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12323,17 +9166,17 @@ func (c *ProjectsRegionsJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -12346,38 +9189,7 @@ func (c *ProjectsRegionsJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/jobs/{jobsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.jobs.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/jobs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.operations.cancel": +} type ProjectsRegionsOperationsCancelCall struct { s *Service @@ -12387,15 +9199,14 @@ type ProjectsRegionsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns google.rpc.Code.UNIMPLEMENTED. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // Code.CANCELLED. // // - name: The name of the operation resource to be cancelled. @@ -12406,23 +9217,21 @@ func (r *ProjectsRegionsOperationsService) Cancel(name string) *ProjectsRegionsO } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsOperationsCancelCall) Context(ctx context.Context) *ProjectsRegionsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12431,12 +9240,7 @@ func (c *ProjectsRegionsOperationsCancelCall) Header() http.Header { } func (c *ProjectsRegionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -12450,16 +9254,14 @@ func (c *ProjectsRegionsOperationsCancelCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12467,17 +9269,17 @@ func (c *ProjectsRegionsOperationsCancelCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -12490,35 +9292,7 @@ func (c *ProjectsRegionsOperationsCancelCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}:cancel", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.operations.delete": +} type ProjectsRegionsOperationsDeleteCall struct { s *Service @@ -12528,10 +9302,10 @@ type ProjectsRegionsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns google.rpc.Code.UNIMPLEMENTED. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// google.rpc.Code.UNIMPLEMENTED. // // - name: The name of the operation resource to be deleted. func (r *ProjectsRegionsOperationsService) Delete(name string) *ProjectsRegionsOperationsDeleteCall { @@ -12541,23 +9315,21 @@ func (r *ProjectsRegionsOperationsService) Delete(name string) *ProjectsRegionsO } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsRegionsOperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12566,12 +9338,7 @@ func (c *ProjectsRegionsOperationsDeleteCall) Header() http.Header { } func (c *ProjectsRegionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -12585,16 +9352,14 @@ func (c *ProjectsRegionsOperationsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12602,17 +9367,17 @@ func (c *ProjectsRegionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -12625,35 +9390,7 @@ func (c *ProjectsRegionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "dataproc.projects.regions.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.operations.get": +} type ProjectsRegionsOperationsGetCall struct { s *Service @@ -12664,9 +9401,9 @@ type ProjectsRegionsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsRegionsOperationsService) Get(name string) *ProjectsRegionsOperationsGetCall { @@ -12676,33 +9413,29 @@ func (r *ProjectsRegionsOperationsService) Get(name string) *ProjectsRegionsOper } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsOperationsGetCall) Context(ctx context.Context) *ProjectsRegionsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12711,12 +9444,7 @@ func (c *ProjectsRegionsOperationsGetCall) Header() http.Header { } func (c *ProjectsRegionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12733,16 +9461,14 @@ func (c *ProjectsRegionsOperationsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12750,17 +9476,17 @@ func (c *ProjectsRegionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Op if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -12773,35 +9499,7 @@ func (c *ProjectsRegionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Op return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.operations.getIamPolicy": +} type ProjectsRegionsOperationsGetIamPolicyCall struct { s *Service @@ -12812,13 +9510,11 @@ type ProjectsRegionsOperationsGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsRegionsOperationsService) GetIamPolicy(resource string) *ProjectsRegionsOperationsGetIamPolicyCall { c := &ProjectsRegionsOperationsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -12827,12 +9523,11 @@ func (r *ProjectsRegionsOperationsService) GetIamPolicy(resource string) *Projec // OptionsRequestedPolicyVersion sets the optional parameter // "options.requestedPolicyVersion": The policy format version to be -// returned.Valid values are 0, 1, and 3. Requests specifying an invalid -// value will be rejected.Requests for policies with any conditional -// bindings must specify version 3. Policies without any conditional -// bindings may specify any valid value or leave the field unset.To -// learn which resources support conditions in their IAM policies, see -// the IAM documentation +// returned.Valid values are 0, 1, and 3. Requests specifying an invalid value +// will be rejected.Requests for policies with any conditional bindings must +// specify version 3. Policies without any conditional bindings may specify any +// valid value or leave the field unset.To learn which resources support +// conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsRegionsOperationsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsOperationsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -12840,33 +9535,29 @@ func (c *ProjectsRegionsOperationsGetIamPolicyCall) OptionsRequestedPolicyVersio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsOperationsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsOperationsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsOperationsGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsOperationsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsOperationsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12875,12 +9566,7 @@ func (c *ProjectsRegionsOperationsGetIamPolicyCall) Header() http.Header { } func (c *ProjectsRegionsOperationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12897,16 +9583,14 @@ func (c *ProjectsRegionsOperationsGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsOperationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12914,17 +9598,17 @@ func (c *ProjectsRegionsOperationsGetIamPolicyCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -12937,41 +9621,7 @@ func (c *ProjectsRegionsOperationsGetIamPolicyCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.operations.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.operations.list": +} type ProjectsRegionsOperationsListCall struct { s *Service @@ -12982,16 +9632,15 @@ type ProjectsRegionsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// UNIMPLEMENTED.NOTE: the name binding allows API services to override -// the binding to use different resource name schemes, such as -// users/*/operations. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the +// name binding allows API services to override the binding to use different +// resource name schemes, such as users/*/operations. To override the binding, +// API services can add a binding such as "/v1/{name=users/*}/operations" to +// their service configuration. For backwards compatibility, the default name +// includes the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations collection +// id. // // - name: The name of the operation's parent resource. func (r *ProjectsRegionsOperationsService) List(name string) *ProjectsRegionsOperationsListCall { @@ -13000,55 +9649,50 @@ func (r *ProjectsRegionsOperationsService) List(name string) *ProjectsRegionsOpe return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsRegionsOperationsListCall) Filter(filter string) *ProjectsRegionsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsRegionsOperationsListCall) PageSize(pageSize int64) *ProjectsRegionsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsRegionsOperationsListCall) PageToken(pageToken string) *ProjectsRegionsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsRegionsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsOperationsListCall) Context(ctx context.Context) *ProjectsRegionsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13057,12 +9701,7 @@ func (c *ProjectsRegionsOperationsListCall) Header() http.Header { } func (c *ProjectsRegionsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13079,16 +9718,15 @@ func (c *ProjectsRegionsOperationsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsRegionsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13096,17 +9734,17 @@ func (c *ProjectsRegionsOperationsListCall) Do(opts ...googleapi.CallOption) (*L if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -13119,48 +9757,6 @@ func (c *ProjectsRegionsOperationsListCall) Do(opts ...googleapi.CallOption) (*L return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/operations", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -13168,7 +9764,7 @@ func (c *ProjectsRegionsOperationsListCall) Do(opts ...googleapi.CallOption) (*L // The provided context supersedes any context provided to the Context method. func (c *ProjectsRegionsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -13184,8 +9780,6 @@ func (c *ProjectsRegionsOperationsListCall) Pages(ctx context.Context, f func(*L } } -// method id "dataproc.projects.regions.operations.setIamPolicy": - type ProjectsRegionsOperationsSetIamPolicyCall struct { s *Service resource string @@ -13195,13 +9789,12 @@ type ProjectsRegionsOperationsSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy.Can return NOT_FOUND, -// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsRegionsOperationsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsOperationsSetIamPolicyCall { c := &ProjectsRegionsOperationsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -13210,23 +9803,21 @@ func (r *ProjectsRegionsOperationsService) SetIamPolicy(resource string, setiamp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsOperationsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsOperationsSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsOperationsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsOperationsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13235,18 +9826,12 @@ func (c *ProjectsRegionsOperationsSetIamPolicyCall) Header() http.Header { } func (c *ProjectsRegionsOperationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:setIamPolicy") @@ -13259,16 +9844,14 @@ func (c *ProjectsRegionsOperationsSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsOperationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13276,17 +9859,17 @@ func (c *ProjectsRegionsOperationsSetIamPolicyCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -13299,38 +9882,7 @@ func (c *ProjectsRegionsOperationsSetIamPolicyCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.operations.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.operations.testIamPermissions": +} type ProjectsRegionsOperationsTestIamPermissionsCall struct { s *Service @@ -13341,16 +9893,15 @@ type ProjectsRegionsOperationsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a NOT_FOUND error.Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsRegionsOperationsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsOperationsTestIamPermissionsCall { c := &ProjectsRegionsOperationsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -13359,23 +9910,21 @@ func (r *ProjectsRegionsOperationsService) TestIamPermissions(resource string, t } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsOperationsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsOperationsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13384,18 +9933,12 @@ func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Header() http.Header { } func (c *ProjectsRegionsOperationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:testIamPermissions") @@ -13408,16 +9951,15 @@ func (c *ProjectsRegionsOperationsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.operations.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13425,17 +9967,17 @@ func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Do(opts ...googleapi.C if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -13448,38 +9990,7 @@ func (c *ProjectsRegionsOperationsTestIamPermissionsCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/operations/{operationsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.operations.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.workflowTemplates.create": +} type ProjectsRegionsWorkflowTemplatesCreateCall struct { s *Service @@ -13492,13 +10003,12 @@ type ProjectsRegionsWorkflowTemplatesCreateCall struct { // Create: Creates new workflow template. // -// - parent: The resource name of the region or location, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.workflowTemplates,create, the resource name of the -// region has the following format: -// projects/{project_id}/regions/{region} For -// projects.locations.workflowTemplates.create, the resource name of -// the location has the following format: +// - parent: The resource name of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.workflowTemplates,create, the resource name of the region +// has the following format: projects/{project_id}/regions/{region} For +// projects.locations.workflowTemplates.create, the resource name of the +// location has the following format: // projects/{project_id}/locations/{location}. func (r *ProjectsRegionsWorkflowTemplatesService) Create(parent string, workflowtemplate *WorkflowTemplate) *ProjectsRegionsWorkflowTemplatesCreateCall { c := &ProjectsRegionsWorkflowTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -13508,23 +10018,21 @@ func (r *ProjectsRegionsWorkflowTemplatesService) Create(parent string, workflow } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13533,18 +10041,12 @@ func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Header() http.Header { } func (c *ProjectsRegionsWorkflowTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workflowtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/workflowTemplates") @@ -13557,16 +10059,15 @@ func (c *ProjectsRegionsWorkflowTemplatesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.create" call. -// Exactly one of *WorkflowTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *WorkflowTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkflowTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13574,17 +10075,17 @@ func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WorkflowTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -13597,38 +10098,7 @@ func (c *ProjectsRegionsWorkflowTemplatesCreateCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Creates new workflow template.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.workflowTemplates.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/workflowTemplates", - // "request": { - // "$ref": "WorkflowTemplate" - // }, - // "response": { - // "$ref": "WorkflowTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.workflowTemplates.delete": +} type ProjectsRegionsWorkflowTemplatesDeleteCall struct { s *Service @@ -13645,43 +10115,40 @@ type ProjectsRegionsWorkflowTemplatesDeleteCall struct { // https://cloud.google.com/apis/design/resource_names. For // projects.regions.workflowTemplates.delete, the resource name of the // template has the following format: -// projects/{project_id}/regions/{region}/workflowTemplates/{template_i -// d} For projects.locations.workflowTemplates.instantiate, the -// resource name of the template has the following format: -// projects/{project_id}/locations/{location}/workflowTemplates/{templa -// te_id}. +// projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For +// projects.locations.workflowTemplates.instantiate, the resource name of the +// template has the following format: +// projects/{project_id}/locations/{location}/workflowTemplates/{template_id}. func (r *ProjectsRegionsWorkflowTemplatesService) Delete(name string) *ProjectsRegionsWorkflowTemplatesDeleteCall { c := &ProjectsRegionsWorkflowTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Version sets the optional parameter "version": The version of -// workflow template to delete. If specified, will only delete the -// template if the current server version matches specified version. +// Version sets the optional parameter "version": The version of workflow +// template to delete. If specified, will only delete the template if the +// current server version matches specified version. func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Version(version int64) *ProjectsRegionsWorkflowTemplatesDeleteCall { c.urlParams_.Set("version", fmt.Sprint(version)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13690,12 +10157,7 @@ func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Header() http.Header { } func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -13709,16 +10171,14 @@ func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13726,17 +10186,17 @@ func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -13749,41 +10209,7 @@ func (c *ProjectsRegionsWorkflowTemplatesDeleteCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Deletes a workflow template. It does not cancel in-progress workflows.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}", - // "httpMethod": "DELETE", - // "id": "dataproc.projects.regions.workflowTemplates.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "version": { - // "description": "Optional. The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.workflowTemplates.get": +} type ProjectsRegionsWorkflowTemplatesGetCall struct { s *Service @@ -13799,55 +10225,50 @@ type ProjectsRegionsWorkflowTemplatesGetCall struct { // // - name: The resource name of the workflow template, as described in // https://cloud.google.com/apis/design/resource_names. For -// projects.regions.workflowTemplates.get, the resource name of the +// projects.regions.workflowTemplates.get, the resource name of the template +// has the following format: +// projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For +// projects.locations.workflowTemplates.get, the resource name of the // template has the following format: -// projects/{project_id}/regions/{region}/workflowTemplates/{template_i -// d} For projects.locations.workflowTemplates.get, the resource name -// of the template has the following format: -// projects/{project_id}/locations/{location}/workflowTemplates/{templa -// te_id}. +// projects/{project_id}/locations/{location}/workflowTemplates/{template_id}. func (r *ProjectsRegionsWorkflowTemplatesService) Get(name string) *ProjectsRegionsWorkflowTemplatesGetCall { c := &ProjectsRegionsWorkflowTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Version sets the optional parameter "version": The version of -// workflow template to retrieve. Only previously instantiated versions -// can be retrieved.If unspecified, retrieves the current version. +// Version sets the optional parameter "version": The version of workflow +// template to retrieve. Only previously instantiated versions can be +// retrieved.If unspecified, retrieves the current version. func (c *ProjectsRegionsWorkflowTemplatesGetCall) Version(version int64) *ProjectsRegionsWorkflowTemplatesGetCall { c.urlParams_.Set("version", fmt.Sprint(version)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsWorkflowTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsWorkflowTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsWorkflowTemplatesGetCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsWorkflowTemplatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13856,12 +10277,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetCall) Header() http.Header { } func (c *ProjectsRegionsWorkflowTemplatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13878,16 +10294,15 @@ func (c *ProjectsRegionsWorkflowTemplatesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.get" call. -// Exactly one of *WorkflowTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *WorkflowTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkflowTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsRegionsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13895,17 +10310,17 @@ func (c *ProjectsRegionsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WorkflowTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -13918,41 +10333,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.workflowTemplates.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "version": { - // "description": "Optional. The version of workflow template to retrieve. Only previously instantiated versions can be retrieved.If unspecified, retrieves the current version.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "WorkflowTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.workflowTemplates.getIamPolicy": +} type ProjectsRegionsWorkflowTemplatesGetIamPolicyCall struct { s *Service @@ -13963,13 +10344,11 @@ type ProjectsRegionsWorkflowTemplatesGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsRegionsWorkflowTemplatesService) GetIamPolicy(resource string) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall { c := &ProjectsRegionsWorkflowTemplatesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -13978,12 +10357,11 @@ func (r *ProjectsRegionsWorkflowTemplatesService) GetIamPolicy(resource string) // OptionsRequestedPolicyVersion sets the optional parameter // "options.requestedPolicyVersion": The policy format version to be -// returned.Valid values are 0, 1, and 3. Requests specifying an invalid -// value will be rejected.Requests for policies with any conditional -// bindings must specify version 3. Policies without any conditional -// bindings may specify any valid value or leave the field unset.To -// learn which resources support conditions in their IAM policies, see -// the IAM documentation +// returned.Valid values are 0, 1, and 3. Requests specifying an invalid value +// will be rejected.Requests for policies with any conditional bindings must +// specify version 3. Policies without any conditional bindings may specify any +// valid value or leave the field unset.To learn which resources support +// conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -13991,33 +10369,29 @@ func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) OptionsRequestedPolic } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14026,12 +10400,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Header() http.Header } func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14048,16 +10417,14 @@ func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14065,17 +10432,17 @@ func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi. if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -14088,41 +10455,7 @@ func (c *ProjectsRegionsWorkflowTemplatesGetIamPolicyCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.workflowTemplates.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.workflowTemplates.instantiate": +} type ProjectsRegionsWorkflowTemplatesInstantiateCall struct { s *Service @@ -14133,13 +10466,12 @@ type ProjectsRegionsWorkflowTemplatesInstantiateCall struct { header_ http.Header } -// Instantiate: Instantiates a template and begins execution.The -// returned Operation can be used to track execution of workflow by -// polling operations.get. The Operation will complete when entire -// workflow is finished.The running workflow can be aborted via -// operations.cancel. This will cause any inflight jobs to be cancelled -// and workflow-owned clusters to be deleted.The Operation.metadata will -// be WorkflowMetadata +// Instantiate: Instantiates a template and begins execution.The returned +// Operation can be used to track execution of workflow by polling +// operations.get. The Operation will complete when entire workflow is +// finished.The running workflow can be aborted via operations.cancel. This +// will cause any inflight jobs to be cancelled and workflow-owned clusters to +// be deleted.The Operation.metadata will be WorkflowMetadata // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). // Also see Using WorkflowMetadata // (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On @@ -14147,13 +10479,12 @@ type ProjectsRegionsWorkflowTemplatesInstantiateCall struct { // // - name: The resource name of the workflow template, as described in // https://cloud.google.com/apis/design/resource_names. For -// projects.regions.workflowTemplates.instantiate, the resource name -// of the template has the following format: -// projects/{project_id}/regions/{region}/workflowTemplates/{template_i -// d} For projects.locations.workflowTemplates.instantiate, the -// resource name of the template has the following format: -// projects/{project_id}/locations/{location}/workflowTemplates/{templa -// te_id}. +// projects.regions.workflowTemplates.instantiate, the resource name of the +// template has the following format: +// projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For +// projects.locations.workflowTemplates.instantiate, the resource name of the +// template has the following format: +// projects/{project_id}/locations/{location}/workflowTemplates/{template_id}. func (r *ProjectsRegionsWorkflowTemplatesService) Instantiate(name string, instantiateworkflowtemplaterequest *InstantiateWorkflowTemplateRequest) *ProjectsRegionsWorkflowTemplatesInstantiateCall { c := &ProjectsRegionsWorkflowTemplatesInstantiateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -14162,23 +10493,21 @@ func (r *ProjectsRegionsWorkflowTemplatesService) Instantiate(name string, insta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesInstantiateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesInstantiateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14187,18 +10516,12 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Header() http.Header { } func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.instantiateworkflowtemplaterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}:instantiate") @@ -14211,16 +10534,14 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.instantiate" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14228,17 +10549,17 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.C if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -14251,38 +10572,7 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:instantiate", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.workflowTemplates.instantiate", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}:instantiate", - // "request": { - // "$ref": "InstantiateWorkflowTemplateRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.workflowTemplates.instantiateInline": +} type ProjectsRegionsWorkflowTemplatesInstantiateInlineCall struct { s *Service @@ -14293,27 +10583,26 @@ type ProjectsRegionsWorkflowTemplatesInstantiateInlineCall struct { header_ http.Header } -// InstantiateInline: Instantiates a template and begins execution.This -// method is equivalent to executing the sequence -// CreateWorkflowTemplate, InstantiateWorkflowTemplate, -// DeleteWorkflowTemplate.The returned Operation can be used to track -// execution of workflow by polling operations.get. The Operation will -// complete when entire workflow is finished.The running workflow can be -// aborted via operations.cancel. This will cause any inflight jobs to -// be cancelled and workflow-owned clusters to be deleted.The +// InstantiateInline: Instantiates a template and begins execution.This method +// is equivalent to executing the sequence CreateWorkflowTemplate, +// InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation +// can be used to track execution of workflow by polling operations.get. The +// Operation will complete when entire workflow is finished.The running +// workflow can be aborted via operations.cancel. This will cause any inflight +// jobs to be cancelled and workflow-owned clusters to be deleted.The // Operation.metadata will be WorkflowMetadata // (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). // Also see Using WorkflowMetadata // (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On // successful completion, Operation.response will be Empty. // -// - parent: The resource name of the region or location, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.workflowTemplates,instantiateinline, the resource -// name of the region has the following format: +// - parent: The resource name of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.workflowTemplates,instantiateinline, the resource name of +// the region has the following format: // projects/{project_id}/regions/{region} For -// projects.locations.workflowTemplates.instantiateinline, the -// resource name of the location has the following format: +// projects.locations.workflowTemplates.instantiateinline, the resource name +// of the location has the following format: // projects/{project_id}/locations/{location}. func (r *ProjectsRegionsWorkflowTemplatesService) InstantiateInline(parent string, workflowtemplate *WorkflowTemplate) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall { c := &ProjectsRegionsWorkflowTemplatesInstantiateInlineCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -14322,43 +10611,41 @@ func (r *ProjectsRegionsWorkflowTemplatesService) InstantiateInline(parent strin return c } -// InstanceId sets the optional parameter "instanceId": Deprecated. -// Please use request_id field instead. +// InstanceId sets the optional parameter "instanceId": Deprecated. Please use +// request_id field instead. func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) InstanceId(instanceId string) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall { c.urlParams_.Set("instanceId", instanceId) return c } -// RequestId sets the optional parameter "requestId": A tag that -// prevents multiple concurrent workflow instances with the same tag -// from running. This mitigates risk of concurrent instances started due -// to retries.It is recommended to always set this value to a UUID -// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag -// must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), -// and hyphens (-). The maximum length is 40 characters. +// RequestId sets the optional parameter "requestId": A tag that prevents +// multiple concurrent workflow instances with the same tag from running. This +// mitigates risk of concurrent instances started due to retries.It is +// recommended to always set this value to a UUID +// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must +// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens +// (-). The maximum length is 40 characters. func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) RequestId(requestId string) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall { c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14367,18 +10654,12 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Header() http.He } func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workflowtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/workflowTemplates:instantiateInline") @@ -14391,16 +10672,14 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.instantiateInline" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14408,17 +10687,17 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Do(opts ...googl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -14431,48 +10710,7 @@ func (c *ProjectsRegionsWorkflowTemplatesInstantiateInlineCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates:instantiateInline", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.workflowTemplates.instantiateInline", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "instanceId": { - // "description": "Deprecated. Please use request_id field instead.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/workflowTemplates:instantiateInline", - // "request": { - // "$ref": "WorkflowTemplate" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.workflowTemplates.list": +} type ProjectsRegionsWorkflowTemplatesListCall struct { s *Service @@ -14485,11 +10723,10 @@ type ProjectsRegionsWorkflowTemplatesListCall struct { // List: Lists workflows that match the specified filter in the request. // -// - parent: The resource name of the region or location, as described -// in https://cloud.google.com/apis/design/resource_names. For -// projects.regions.workflowTemplates,list, the resource name of the -// region has the following format: -// projects/{project_id}/regions/{region} For +// - parent: The resource name of the region or location, as described in +// https://cloud.google.com/apis/design/resource_names. For +// projects.regions.workflowTemplates,list, the resource name of the region +// has the following format: projects/{project_id}/regions/{region} For // projects.locations.workflowTemplates.list, the resource name of the // location has the following format: // projects/{project_id}/locations/{location}. @@ -14499,48 +10736,44 @@ func (r *ProjectsRegionsWorkflowTemplatesService) List(parent string) *ProjectsR return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return in each response. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return in each response. func (c *ProjectsRegionsWorkflowTemplatesListCall) PageSize(pageSize int64) *ProjectsRegionsWorkflowTemplatesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token, -// returned by a previous call, to request the next page of results. +// PageToken sets the optional parameter "pageToken": The page token, returned +// by a previous call, to request the next page of results. func (c *ProjectsRegionsWorkflowTemplatesListCall) PageToken(pageToken string) *ProjectsRegionsWorkflowTemplatesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsWorkflowTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsRegionsWorkflowTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsRegionsWorkflowTemplatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsWorkflowTemplatesListCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsWorkflowTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14549,12 +10782,7 @@ func (c *ProjectsRegionsWorkflowTemplatesListCall) Header() http.Header { } func (c *ProjectsRegionsWorkflowTemplatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14571,16 +10799,15 @@ func (c *ProjectsRegionsWorkflowTemplatesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.list" call. -// Exactly one of *ListWorkflowTemplatesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListWorkflowTemplatesResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListWorkflowTemplatesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsRegionsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowTemplatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14588,17 +10815,17 @@ func (c *ProjectsRegionsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListWorkflowTemplatesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14611,43 +10838,6 @@ func (c *ProjectsRegionsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Lists workflows that match the specified filter in the request.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates", - // "httpMethod": "GET", - // "id": "dataproc.projects.regions.workflowTemplates.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return in each response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The page token, returned by a previous call, to request the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{project_id}/locations/{location}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+parent}/workflowTemplates", - // "response": { - // "$ref": "ListWorkflowTemplatesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -14655,7 +10845,7 @@ func (c *ProjectsRegionsWorkflowTemplatesListCall) Do(opts ...googleapi.CallOpti // The provided context supersedes any context provided to the Context method. func (c *ProjectsRegionsWorkflowTemplatesListCall) Pages(ctx context.Context, f func(*ListWorkflowTemplatesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -14671,8 +10861,6 @@ func (c *ProjectsRegionsWorkflowTemplatesListCall) Pages(ctx context.Context, f } } -// method id "dataproc.projects.regions.workflowTemplates.setIamPolicy": - type ProjectsRegionsWorkflowTemplatesSetIamPolicyCall struct { s *Service resource string @@ -14682,13 +10870,12 @@ type ProjectsRegionsWorkflowTemplatesSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy.Can return NOT_FOUND, -// INVALID_ARGUMENT, and PERMISSION_DENIED errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsRegionsWorkflowTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall { c := &ProjectsRegionsWorkflowTemplatesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -14697,23 +10884,21 @@ func (r *ProjectsRegionsWorkflowTemplatesService) SetIamPolicy(resource string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14722,18 +10907,12 @@ func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Header() http.Header } func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:setIamPolicy") @@ -14746,16 +10925,14 @@ func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14763,17 +10940,17 @@ func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi. if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -14786,38 +10963,7 @@ func (c *ProjectsRegionsWorkflowTemplatesSetIamPolicyCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.workflowTemplates.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.workflowTemplates.testIamPermissions": +} type ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall struct { s *Service @@ -14828,16 +10974,15 @@ type ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a NOT_FOUND error.Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *ProjectsRegionsWorkflowTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall { c := &ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -14846,23 +10991,21 @@ func (r *ProjectsRegionsWorkflowTemplatesService) TestIamPermissions(resource st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14871,18 +11014,12 @@ func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Header() http.H } func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+resource}:testIamPermissions") @@ -14895,16 +11032,15 @@ func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14912,17 +11048,17 @@ func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...goog if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14935,38 +11071,7 @@ func (c *ProjectsRegionsWorkflowTemplatesTestIamPermissionsCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "dataproc.projects.regions.workflowTemplates.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "dataproc.projects.regions.workflowTemplates.update": +} type ProjectsRegionsWorkflowTemplatesUpdateCall struct { s *Service @@ -14977,18 +11082,17 @@ type ProjectsRegionsWorkflowTemplatesUpdateCall struct { header_ http.Header } -// Update: Updates (replaces) workflow template. The updated template -// must contain version that matches the current server version. +// Update: Updates (replaces) workflow template. The updated template must +// contain version that matches the current server version. // // - name: Output only. The resource name of the workflow template, as -// described in https://cloud.google.com/apis/design/resource_names. -// For projects.regions.workflowTemplates, the resource name of the -// template has the following format: -// projects/{project_id}/regions/{region}/workflowTemplates/{template_i -// d} For projects.locations.workflowTemplates, the resource name of -// the template has the following format: -// projects/{project_id}/locations/{location}/workflowTemplates/{templa -// te_id}. +// described in https://cloud.google.com/apis/design/resource_names. For +// projects.regions.workflowTemplates, the resource name of the template has +// the following format: +// projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For +// projects.locations.workflowTemplates, the resource name of the template +// has the following format: +// projects/{project_id}/locations/{location}/workflowTemplates/{template_id}. func (r *ProjectsRegionsWorkflowTemplatesService) Update(name string, workflowtemplate *WorkflowTemplate) *ProjectsRegionsWorkflowTemplatesUpdateCall { c := &ProjectsRegionsWorkflowTemplatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -14997,23 +11101,21 @@ func (r *ProjectsRegionsWorkflowTemplatesService) Update(name string, workflowte } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Fields(s ...googleapi.Field) *ProjectsRegionsWorkflowTemplatesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Context(ctx context.Context) *ProjectsRegionsWorkflowTemplatesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15022,18 +11124,12 @@ func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Header() http.Header { } func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210908") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.workflowtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}") @@ -15046,16 +11142,15 @@ func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dataproc.projects.regions.workflowTemplates.update" call. -// Exactly one of *WorkflowTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *WorkflowTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WorkflowTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*WorkflowTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15063,17 +11158,17 @@ func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WorkflowTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -15086,33 +11181,4 @@ func (c *ProjectsRegionsWorkflowTemplatesUpdateCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Updates (replaces) workflow template. The updated template must contain version that matches the current server version.", - // "flatPath": "v1beta2/projects/{projectsId}/regions/{regionsId}/workflowTemplates/{workflowTemplatesId}", - // "httpMethod": "PUT", - // "id": "dataproc.projects.regions.workflowTemplates.update", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/regions/[^/]+/workflowTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "request": { - // "$ref": "WorkflowTemplate" - // }, - // "response": { - // "$ref": "WorkflowTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/datastore/v1/datastore-gen.go b/datastore/v1/datastore-gen.go index 62f76a6366b..a0271d63dec 100644 --- a/datastore/v1/datastore-gen.go +++ b/datastore/v1/datastore-gen.go @@ -2949,7 +2949,7 @@ func (c *ProjectsAllocateIdsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.allocateIds" call. @@ -3051,7 +3051,7 @@ func (c *ProjectsBeginTransactionCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.beginTransaction" call. @@ -3154,7 +3154,7 @@ func (c *ProjectsCommitCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.commit" call. @@ -3261,7 +3261,7 @@ func (c *ProjectsExportCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.export" call. @@ -3367,7 +3367,7 @@ func (c *ProjectsImportCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.import" call. @@ -3469,7 +3469,7 @@ func (c *ProjectsLookupCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.lookup" call. @@ -3571,7 +3571,7 @@ func (c *ProjectsReserveIdsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.reserveIds" call. @@ -3673,7 +3673,7 @@ func (c *ProjectsRollbackCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.rollback" call. @@ -3775,7 +3775,7 @@ func (c *ProjectsRunAggregationQueryCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.runAggregationQuery" call. @@ -3877,7 +3877,7 @@ func (c *ProjectsRunQueryCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.runQuery" call. @@ -3986,7 +3986,7 @@ func (c *ProjectsIndexesCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.indexes.create" call. @@ -4092,7 +4092,7 @@ func (c *ProjectsIndexesDeleteCall) doRequest(alt string) (*http.Response, error "projectId": c.projectId, "indexId": c.indexId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.indexes.delete" call. @@ -4204,7 +4204,7 @@ func (c *ProjectsIndexesGetCall) doRequest(alt string) (*http.Response, error) { "projectId": c.projectId, "indexId": c.indexId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.indexes.get" call. @@ -4334,7 +4334,7 @@ func (c *ProjectsIndexesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.indexes.list" call. @@ -4459,7 +4459,7 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.operations.cancel" call. @@ -4557,7 +4557,7 @@ func (c *ProjectsOperationsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.operations.delete" call. @@ -4666,7 +4666,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.operations.get" call. @@ -4795,7 +4795,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.operations.list" call. diff --git a/datastore/v1beta1/datastore-gen.go b/datastore/v1beta1/datastore-gen.go index e1aff3d7b05..85100c9a97e 100644 --- a/datastore/v1beta1/datastore-gen.go +++ b/datastore/v1beta1/datastore-gen.go @@ -1034,7 +1034,7 @@ func (c *ProjectsExportCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.export" call. @@ -1140,7 +1140,7 @@ func (c *ProjectsImportCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.import" call. diff --git a/datastore/v1beta3/datastore-gen.go b/datastore/v1beta3/datastore-gen.go index ed84fb15e49..42bad909274 100644 --- a/datastore/v1beta3/datastore-gen.go +++ b/datastore/v1beta3/datastore-gen.go @@ -2555,7 +2555,7 @@ func (c *ProjectsAllocateIdsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.allocateIds" call. @@ -2657,7 +2657,7 @@ func (c *ProjectsBeginTransactionCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.beginTransaction" call. @@ -2760,7 +2760,7 @@ func (c *ProjectsCommitCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.commit" call. @@ -2861,7 +2861,7 @@ func (c *ProjectsLookupCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.lookup" call. @@ -2963,7 +2963,7 @@ func (c *ProjectsReserveIdsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.reserveIds" call. @@ -3065,7 +3065,7 @@ func (c *ProjectsRollbackCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.rollback" call. @@ -3167,7 +3167,7 @@ func (c *ProjectsRunAggregationQueryCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.runAggregationQuery" call. @@ -3269,7 +3269,7 @@ func (c *ProjectsRunQueryCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastore.projects.runQuery" call. diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index b10b945d3f3..3c1795c86c6 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -2760,7 +2760,7 @@ func (c *ProjectsLocationsFetchStaticIpsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.fetchStaticIps" call. @@ -2889,7 +2889,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.get" call. @@ -3020,7 +3020,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.list" call. @@ -3181,7 +3181,7 @@ func (c *ProjectsLocationsConnectionProfilesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.create" call. @@ -3292,7 +3292,7 @@ func (c *ProjectsLocationsConnectionProfilesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.delete" call. @@ -3397,7 +3397,7 @@ func (c *ProjectsLocationsConnectionProfilesDiscoverCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.discover" call. @@ -3505,7 +3505,7 @@ func (c *ProjectsLocationsConnectionProfilesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.get" call. @@ -3645,7 +3645,7 @@ func (c *ProjectsLocationsConnectionProfilesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.list" call. @@ -3809,7 +3809,7 @@ func (c *ProjectsLocationsConnectionProfilesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.patch" call. @@ -3918,7 +3918,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.operations.cancel" call. @@ -4016,7 +4016,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.operations.delete" call. @@ -4125,7 +4125,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.operations.get" call. @@ -4253,7 +4253,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.operations.list" call. @@ -4406,7 +4406,7 @@ func (c *ProjectsLocationsPrivateConnectionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.create" call. @@ -4524,7 +4524,7 @@ func (c *ProjectsLocationsPrivateConnectionsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.delete" call. @@ -4632,7 +4632,7 @@ func (c *ProjectsLocationsPrivateConnectionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.get" call. @@ -4773,7 +4773,7 @@ func (c *ProjectsLocationsPrivateConnectionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.list" call. @@ -4920,7 +4920,7 @@ func (c *ProjectsLocationsPrivateConnectionsRoutesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.routes.create" call. @@ -5031,7 +5031,7 @@ func (c *ProjectsLocationsPrivateConnectionsRoutesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.routes.delete" call. @@ -5138,7 +5138,7 @@ func (c *ProjectsLocationsPrivateConnectionsRoutesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.routes.get" call. @@ -5277,7 +5277,7 @@ func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.routes.list" call. @@ -5437,7 +5437,7 @@ func (c *ProjectsLocationsStreamsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.create" call. @@ -5548,7 +5548,7 @@ func (c *ProjectsLocationsStreamsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.delete" call. @@ -5655,7 +5655,7 @@ func (c *ProjectsLocationsStreamsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.get" call. @@ -5792,7 +5792,7 @@ func (c *ProjectsLocationsStreamsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.list" call. @@ -5955,7 +5955,7 @@ func (c *ProjectsLocationsStreamsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.patch" call. @@ -6058,7 +6058,7 @@ func (c *ProjectsLocationsStreamsRunCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.run" call. @@ -6165,7 +6165,7 @@ func (c *ProjectsLocationsStreamsObjectsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.objects.get" call. @@ -6289,7 +6289,7 @@ func (c *ProjectsLocationsStreamsObjectsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.objects.list" call. @@ -6413,7 +6413,7 @@ func (c *ProjectsLocationsStreamsObjectsLookupCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.objects.lookup" call. @@ -6516,7 +6516,7 @@ func (c *ProjectsLocationsStreamsObjectsStartBackfillJobCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.objects.startBackfillJob" call. @@ -6620,7 +6620,7 @@ func (c *ProjectsLocationsStreamsObjectsStopBackfillJobCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.objects.stopBackfillJob" call. diff --git a/datastream/v1alpha1/datastream-gen.go b/datastream/v1alpha1/datastream-gen.go index ae0a84f21c6..c3a72512669 100644 --- a/datastream/v1alpha1/datastream-gen.go +++ b/datastream/v1alpha1/datastream-gen.go @@ -1992,7 +1992,7 @@ func (c *ProjectsLocationsFetchStaticIpsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.fetchStaticIps" call. @@ -2121,7 +2121,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.get" call. @@ -2252,7 +2252,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.list" call. @@ -2399,7 +2399,7 @@ func (c *ProjectsLocationsConnectionProfilesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.create" call. @@ -2510,7 +2510,7 @@ func (c *ProjectsLocationsConnectionProfilesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.delete" call. @@ -2615,7 +2615,7 @@ func (c *ProjectsLocationsConnectionProfilesDiscoverCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.discover" call. @@ -2723,7 +2723,7 @@ func (c *ProjectsLocationsConnectionProfilesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.get" call. @@ -2863,7 +2863,7 @@ func (c *ProjectsLocationsConnectionProfilesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.list" call. @@ -3020,7 +3020,7 @@ func (c *ProjectsLocationsConnectionProfilesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.connectionProfiles.patch" call. @@ -3129,7 +3129,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.operations.cancel" call. @@ -3227,7 +3227,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.operations.delete" call. @@ -3336,7 +3336,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.operations.get" call. @@ -3464,7 +3464,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.operations.list" call. @@ -3610,7 +3610,7 @@ func (c *ProjectsLocationsPrivateConnectionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.create" call. @@ -3728,7 +3728,7 @@ func (c *ProjectsLocationsPrivateConnectionsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.delete" call. @@ -3836,7 +3836,7 @@ func (c *ProjectsLocationsPrivateConnectionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.get" call. @@ -3977,7 +3977,7 @@ func (c *ProjectsLocationsPrivateConnectionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.list" call. @@ -4124,7 +4124,7 @@ func (c *ProjectsLocationsPrivateConnectionsRoutesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.routes.create" call. @@ -4235,7 +4235,7 @@ func (c *ProjectsLocationsPrivateConnectionsRoutesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.routes.delete" call. @@ -4342,7 +4342,7 @@ func (c *ProjectsLocationsPrivateConnectionsRoutesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.routes.get" call. @@ -4481,7 +4481,7 @@ func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.privateConnections.routes.list" call. @@ -4641,7 +4641,7 @@ func (c *ProjectsLocationsStreamsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.create" call. @@ -4752,7 +4752,7 @@ func (c *ProjectsLocationsStreamsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.delete" call. @@ -4853,7 +4853,7 @@ func (c *ProjectsLocationsStreamsFetchErrorsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "stream": c.stream, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.fetchErrors" call. @@ -4960,7 +4960,7 @@ func (c *ProjectsLocationsStreamsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.get" call. @@ -5097,7 +5097,7 @@ func (c *ProjectsLocationsStreamsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.list" call. @@ -5260,7 +5260,7 @@ func (c *ProjectsLocationsStreamsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.patch" call. @@ -5367,7 +5367,7 @@ func (c *ProjectsLocationsStreamsObjectsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.objects.get" call. @@ -5491,7 +5491,7 @@ func (c *ProjectsLocationsStreamsObjectsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.objects.list" call. @@ -5609,7 +5609,7 @@ func (c *ProjectsLocationsStreamsObjectsStartBackfillJobCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.objects.startBackfillJob" call. @@ -5706,7 +5706,7 @@ func (c *ProjectsLocationsStreamsObjectsStopBackfillJobCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "datastream.projects.locations.streams.objects.stopBackfillJob" call. diff --git a/deploymentmanager/v0.alpha/deploymentmanager-gen.go b/deploymentmanager/v0.alpha/deploymentmanager-gen.go index c664340a2bc..009d6a8213c 100644 --- a/deploymentmanager/v0.alpha/deploymentmanager-gen.go +++ b/deploymentmanager/v0.alpha/deploymentmanager-gen.go @@ -2866,7 +2866,7 @@ func (c *CompositeTypesDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "compositeType": c.compositeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.delete" call. @@ -2977,7 +2977,7 @@ func (c *CompositeTypesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "compositeType": c.compositeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.get" call. @@ -3078,7 +3078,7 @@ func (c *CompositeTypesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.insert" call. @@ -3253,7 +3253,7 @@ func (c *CompositeTypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.list" call. @@ -3380,7 +3380,7 @@ func (c *CompositeTypesPatchCall) doRequest(alt string) (*http.Response, error) "project": c.project, "compositeType": c.compositeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.patch" call. @@ -3485,7 +3485,7 @@ func (c *CompositeTypesUpdateCall) doRequest(alt string) (*http.Response, error) "project": c.project, "compositeType": c.compositeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.update" call. @@ -3591,7 +3591,7 @@ func (c *DeploymentsCancelPreviewCall) doRequest(alt string) (*http.Response, er "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.cancelPreview" call. @@ -3702,7 +3702,7 @@ func (c *DeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.delete" call. @@ -3813,7 +3813,7 @@ func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.get" call. @@ -3932,7 +3932,7 @@ func (c *DeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, err "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.getIamPolicy" call. @@ -4060,7 +4060,7 @@ func (c *DeploymentsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.insert" call. @@ -4235,7 +4235,7 @@ func (c *DeploymentsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.list" call. @@ -4403,7 +4403,7 @@ func (c *DeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.patch" call. @@ -4509,7 +4509,7 @@ func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, err "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.setIamPolicy" call. @@ -4615,7 +4615,7 @@ func (c *DeploymentsStopCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.stop" call. @@ -4721,7 +4721,7 @@ func (c *DeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.testIamPermissions" call. @@ -4868,7 +4868,7 @@ func (c *DeploymentsUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.update" call. @@ -4983,7 +4983,7 @@ func (c *ManifestsGetCall) doRequest(alt string) (*http.Response, error) { "deployment": c.deployment, "manifest": c.manifest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.manifests.get" call. @@ -5162,7 +5162,7 @@ func (c *ManifestsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.manifests.list" call. @@ -5295,7 +5295,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.operations.get" call. @@ -5470,7 +5470,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.operations.list" call. @@ -5607,7 +5607,7 @@ func (c *ResourcesGetCall) doRequest(alt string) (*http.Response, error) { "deployment": c.deployment, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.resources.get" call. @@ -5786,7 +5786,7 @@ func (c *ResourcesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.resources.list" call. @@ -5907,7 +5907,7 @@ func (c *TypeProvidersDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "typeProvider": c.typeProvider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.delete" call. @@ -6018,7 +6018,7 @@ func (c *TypeProvidersGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "typeProvider": c.typeProvider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.get" call. @@ -6133,7 +6133,7 @@ func (c *TypeProvidersGetTypeCall) doRequest(alt string) (*http.Response, error) "typeProvider": c.typeProvider, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.getType" call. @@ -6234,7 +6234,7 @@ func (c *TypeProvidersInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.insert" call. @@ -6409,7 +6409,7 @@ func (c *TypeProvidersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.list" call. @@ -6610,7 +6610,7 @@ func (c *TypeProvidersListTypesCall) doRequest(alt string) (*http.Response, erro "project": c.project, "typeProvider": c.typeProvider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.listTypes" call. @@ -6737,7 +6737,7 @@ func (c *TypeProvidersPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "typeProvider": c.typeProvider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.patch" call. @@ -6842,7 +6842,7 @@ func (c *TypeProvidersUpdateCall) doRequest(alt string) (*http.Response, error) "project": c.project, "typeProvider": c.typeProvider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.update" call. @@ -6953,7 +6953,7 @@ func (c *TypesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.types.get" call. @@ -7128,7 +7128,7 @@ func (c *TypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.types.list" call. diff --git a/deploymentmanager/v2/deploymentmanager-gen.go b/deploymentmanager/v2/deploymentmanager-gen.go index 6455479549c..cb5c812b64e 100644 --- a/deploymentmanager/v2/deploymentmanager-gen.go +++ b/deploymentmanager/v2/deploymentmanager-gen.go @@ -2028,7 +2028,7 @@ func (c *DeploymentsCancelPreviewCall) doRequest(alt string) (*http.Response, er "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.cancelPreview" call. @@ -2139,7 +2139,7 @@ func (c *DeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.delete" call. @@ -2250,7 +2250,7 @@ func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.get" call. @@ -2369,7 +2369,7 @@ func (c *DeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, err "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.getIamPolicy" call. @@ -2496,7 +2496,7 @@ func (c *DeploymentsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.insert" call. @@ -2671,7 +2671,7 @@ func (c *DeploymentsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.list" call. @@ -2838,7 +2838,7 @@ func (c *DeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.patch" call. @@ -2944,7 +2944,7 @@ func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, err "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.setIamPolicy" call. @@ -3050,7 +3050,7 @@ func (c *DeploymentsStopCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.stop" call. @@ -3156,7 +3156,7 @@ func (c *DeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.testIamPermissions" call. @@ -3302,7 +3302,7 @@ func (c *DeploymentsUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.update" call. @@ -3417,7 +3417,7 @@ func (c *ManifestsGetCall) doRequest(alt string) (*http.Response, error) { "deployment": c.deployment, "manifest": c.manifest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.manifests.get" call. @@ -3596,7 +3596,7 @@ func (c *ManifestsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.manifests.list" call. @@ -3729,7 +3729,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.operations.get" call. @@ -3904,7 +3904,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.operations.list" call. @@ -4041,7 +4041,7 @@ func (c *ResourcesGetCall) doRequest(alt string) (*http.Response, error) { "deployment": c.deployment, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.resources.get" call. @@ -4220,7 +4220,7 @@ func (c *ResourcesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.resources.list" call. @@ -4417,7 +4417,7 @@ func (c *TypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.types.list" call. diff --git a/deploymentmanager/v2beta/deploymentmanager-gen.go b/deploymentmanager/v2beta/deploymentmanager-gen.go index 5e30a9fe793..c296e4b0725 100644 --- a/deploymentmanager/v2beta/deploymentmanager-gen.go +++ b/deploymentmanager/v2beta/deploymentmanager-gen.go @@ -2767,7 +2767,7 @@ func (c *CompositeTypesDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "compositeType": c.compositeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.delete" call. @@ -2878,7 +2878,7 @@ func (c *CompositeTypesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "compositeType": c.compositeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.get" call. @@ -2979,7 +2979,7 @@ func (c *CompositeTypesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.insert" call. @@ -3154,7 +3154,7 @@ func (c *CompositeTypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.list" call. @@ -3281,7 +3281,7 @@ func (c *CompositeTypesPatchCall) doRequest(alt string) (*http.Response, error) "project": c.project, "compositeType": c.compositeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.patch" call. @@ -3386,7 +3386,7 @@ func (c *CompositeTypesUpdateCall) doRequest(alt string) (*http.Response, error) "project": c.project, "compositeType": c.compositeType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.compositeTypes.update" call. @@ -3492,7 +3492,7 @@ func (c *DeploymentsCancelPreviewCall) doRequest(alt string) (*http.Response, er "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.cancelPreview" call. @@ -3603,7 +3603,7 @@ func (c *DeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.delete" call. @@ -3714,7 +3714,7 @@ func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.get" call. @@ -3833,7 +3833,7 @@ func (c *DeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, err "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.getIamPolicy" call. @@ -3961,7 +3961,7 @@ func (c *DeploymentsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.insert" call. @@ -4136,7 +4136,7 @@ func (c *DeploymentsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.list" call. @@ -4304,7 +4304,7 @@ func (c *DeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.patch" call. @@ -4410,7 +4410,7 @@ func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, err "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.setIamPolicy" call. @@ -4516,7 +4516,7 @@ func (c *DeploymentsStopCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.stop" call. @@ -4622,7 +4622,7 @@ func (c *DeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Respons "project": c.project, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.testIamPermissions" call. @@ -4769,7 +4769,7 @@ func (c *DeploymentsUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.deployments.update" call. @@ -4884,7 +4884,7 @@ func (c *ManifestsGetCall) doRequest(alt string) (*http.Response, error) { "deployment": c.deployment, "manifest": c.manifest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.manifests.get" call. @@ -5063,7 +5063,7 @@ func (c *ManifestsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.manifests.list" call. @@ -5196,7 +5196,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.operations.get" call. @@ -5371,7 +5371,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.operations.list" call. @@ -5508,7 +5508,7 @@ func (c *ResourcesGetCall) doRequest(alt string) (*http.Response, error) { "deployment": c.deployment, "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.resources.get" call. @@ -5687,7 +5687,7 @@ func (c *ResourcesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "deployment": c.deployment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.resources.list" call. @@ -5808,7 +5808,7 @@ func (c *TypeProvidersDeleteCall) doRequest(alt string) (*http.Response, error) "project": c.project, "typeProvider": c.typeProvider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.delete" call. @@ -5919,7 +5919,7 @@ func (c *TypeProvidersGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "typeProvider": c.typeProvider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.get" call. @@ -6034,7 +6034,7 @@ func (c *TypeProvidersGetTypeCall) doRequest(alt string) (*http.Response, error) "typeProvider": c.typeProvider, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.getType" call. @@ -6135,7 +6135,7 @@ func (c *TypeProvidersInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.insert" call. @@ -6310,7 +6310,7 @@ func (c *TypeProvidersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.list" call. @@ -6511,7 +6511,7 @@ func (c *TypeProvidersListTypesCall) doRequest(alt string) (*http.Response, erro "project": c.project, "typeProvider": c.typeProvider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.listTypes" call. @@ -6638,7 +6638,7 @@ func (c *TypeProvidersPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "typeProvider": c.typeProvider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.patch" call. @@ -6743,7 +6743,7 @@ func (c *TypeProvidersUpdateCall) doRequest(alt string) (*http.Response, error) "project": c.project, "typeProvider": c.typeProvider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.typeProviders.update" call. @@ -6918,7 +6918,7 @@ func (c *TypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "deploymentmanager.types.list" call. diff --git a/developerconnect/v1/developerconnect-gen.go b/developerconnect/v1/developerconnect-gen.go index 568985f827e..f7e726d00bd 100644 --- a/developerconnect/v1/developerconnect-gen.go +++ b/developerconnect/v1/developerconnect-gen.go @@ -980,7 +980,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.get" call. @@ -1111,7 +1111,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.list" call. @@ -1265,7 +1265,7 @@ func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.create" call. @@ -1391,7 +1391,7 @@ func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.delete" call. @@ -1502,7 +1502,7 @@ func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "connection": c.connection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.fetchGitHubInstallations" call. @@ -1625,7 +1625,7 @@ func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) doRequest googleapi.Expand(req.URL, map[string]string{ "connection": c.connection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.fetchLinkableGitRepositories" call. @@ -1754,7 +1754,7 @@ func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.get" call. @@ -1889,7 +1889,7 @@ func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.list" call. @@ -2057,7 +2057,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.patch" call. @@ -2194,7 +2194,7 @@ func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.create" call. @@ -2321,7 +2321,7 @@ func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.delete" call. @@ -2455,7 +2455,7 @@ func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) doReque googleapi.Expand(req.URL, map[string]string{ "gitRepositoryLink": c.gitRepositoryLink, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.fetchGitRefs" call. @@ -2579,7 +2579,7 @@ func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) doReq googleapi.Expand(req.URL, map[string]string{ "gitRepositoryLink": c.gitRepositoryLink, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.fetchReadToken" call. @@ -2682,7 +2682,7 @@ func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) googleapi.Expand(req.URL, map[string]string{ "gitRepositoryLink": c.gitRepositoryLink, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.fetchReadWriteToken" call. @@ -2790,7 +2790,7 @@ func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.get" call. @@ -2926,7 +2926,7 @@ func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.list" call. @@ -3057,7 +3057,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.operations.cancel" call. @@ -3155,7 +3155,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.operations.delete" call. @@ -3264,7 +3264,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.operations.get" call. @@ -3392,7 +3392,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "developerconnect.projects.locations.operations.list" call. diff --git a/dfareporting/v2.7/dfareporting-gen.go b/dfareporting/v2.7/dfareporting-gen.go index b14dc2f79c3..fa34a5bdccd 100644 --- a/dfareporting/v2.7/dfareporting-gen.go +++ b/dfareporting/v2.7/dfareporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/doubleclick-advertisers/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // dfareportingService, err := dfareporting.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithScopes(dfareporting.DfatraffickingScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // dfareportingService, err := dfareporting.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package dfareporting // import "google.golang.org/api/dfareporting/v2.7" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dfareporting:v2.7" const apiName = "dfareporting" const apiVersion = "v2.7" const basePath = "https://www.googleapis.com/dfareporting/v2.7/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/dfareporting/v2.7/" // OAuth2 scopes used by this API. const ( @@ -93,13 +112,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/ddmconversions", "https://www.googleapis.com/auth/dfareporting", "https://www.googleapis.com/auth/dfatrafficking", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -888,20 +910,16 @@ type VideoFormatsService struct { type Account struct { // AccountPermissionIds: Account permissions assigned to this account. AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"` - - // AccountProfile: Profile for this account. This is a read-only field - // that can be left blank. + // AccountProfile: Profile for this account. This is a read-only field that can + // be left blank. // // Possible values: // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfile string `json:"accountProfile,omitempty"` - // Active: Whether this account is active. Active bool `json:"active,omitempty"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for this - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for this account. // // Possible values: // "ACTIVE_ADS_TIER_100K" @@ -913,21 +931,16 @@ type Account struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_75K" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - - // ActiveViewOptOut: Whether to serve creatives with Active View tags. - // If disabled, viewability data will not be available for any - // impressions. + // ActiveViewOptOut: Whether to serve creatives with Active View tags. If + // disabled, viewability data will not be available for any impressions. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AvailablePermissionIds: User role permissions available to the user - // roles of this account. + // AvailablePermissionIds: User role permissions available to the user roles of + // this account. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // CountryId: ID of the country associated with this account. CountryId int64 `json:"countryId,omitempty,string"` - - // CurrencyId: ID of currency associated with this account. This is a - // required field. + // CurrencyId: ID of currency associated with this account. This is a required + // field. // Acceptable values are: // - "1" for USD // - "2" for GBP @@ -979,20 +992,15 @@ type Account struct { // - "49" for MXN // - "50" for NGN CurrencyId int64 `json:"currencyId,omitempty,string"` - // DefaultCreativeSizeId: Default placement dimensions for this account. DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"` - // Description: Description of this account. Description string `json:"description,omitempty"` - // Id: ID of this account. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#account". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#account". Kind string `json:"kind,omitempty"` - // Locale: Locale of this account. // Acceptable values are: // - "cs" (Czech) @@ -1012,69 +1020,50 @@ type Account struct { // - "zh-CN" (Chinese Simplified) // - "zh-TW" (Chinese Traditional) Locale string `json:"locale,omitempty"` - - // MaximumImageSize: Maximum image size allowed for this account, in - // kilobytes. Value must be greater than or equal to 1. + // MaximumImageSize: Maximum image size allowed for this account, in kilobytes. + // Value must be greater than or equal to 1. MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"` - - // Name: Name of this account. This is a required field, and must be - // less than 128 characters long and be globally unique. + // Name: Name of this account. This is a required field, and must be less than + // 128 characters long and be globally unique. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether campaigns created in this account will be - // enabled for Nielsen OCR reach ratings by default. + // NielsenOcrEnabled: Whether campaigns created in this account will be enabled + // for Nielsen OCR reach ratings by default. NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - // ReportsConfiguration: Reporting configuration of this account. ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"` - - // ShareReportsWithTwitter: Share Path to Conversion reports with - // Twitter. + // ShareReportsWithTwitter: Share Path to Conversion reports with Twitter. ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"` - // TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser // creatives. Acceptable values are 1 to 10240, inclusive. TeaserSizeLimit int64 `json:"teaserSizeLimit,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionIds") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionIds") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountActiveAdSummary: Gets a summary of active ads in an account. type AccountActiveAdSummary struct { // AccountId: ID of the account. AccountId int64 `json:"accountId,omitempty,string"` - // ActiveAds: Ads that have been activated for the account ActiveAds int64 `json:"activeAds,omitempty,string"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for the - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for the account. // // Possible values: // "ACTIVE_ADS_TIER_100K" @@ -1086,44 +1075,35 @@ type AccountActiveAdSummary struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_75K" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - // AvailableAds: Ads that can be activated for the account. AvailableAds int64 `json:"availableAds,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountActiveAdSummary". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountActiveAdSummary". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountActiveAdSummary) MarshalJSON() ([]byte, error) { +func (s AccountActiveAdSummary) MarshalJSON() ([]byte, error) { type NoMethod AccountActiveAdSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermission: AccountPermissions contains information about a -// particular account permission. Some features of DCM require an -// account permission to be present in the account. +// particular account permission. Some features of DCM require an account +// permission to be present in the account. type AccountPermission struct { // AccountProfiles: Account profiles associated with this account // permission. @@ -1136,211 +1116,158 @@ type AccountPermission struct { // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfiles []string `json:"accountProfiles,omitempty"` - // Id: ID of this account permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermission". Kind string `json:"kind,omitempty"` - - // Level: Administrative level required to enable this account - // permission. + // Level: Administrative level required to enable this account permission. // // Possible values: // "ADMINISTRATOR" // "USER" Level string `json:"level,omitempty"` - // Name: Name of this account permission. Name string `json:"name,omitempty"` - // PermissionGroupId: Permission group of this account permission. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountProfiles") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountProfiles") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermission) MarshalJSON() ([]byte, error) { +func (s AccountPermission) MarshalJSON() ([]byte, error) { type NoMethod AccountPermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionGroup: AccountPermissionGroups contains a mapping of -// permission group IDs to names. A permission group is a grouping of -// account permissions. +// permission group IDs to names. A permission group is a grouping of account +// permissions. type AccountPermissionGroup struct { // Id: ID of this account permission group. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this account permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroup) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountPermissionGroupsListResponse: Account Permission Group List -// Response +// AccountPermissionGroupsListResponse: Account Permission Group List Response type AccountPermissionGroupsListResponse struct { // AccountPermissionGroups: Account permission group collection. AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionGroups") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionGroups") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionsListResponse: Account Permission List Response type AccountPermissionsListResponse struct { // AccountPermissions: Account permission collection. AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountPermissions") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountUserProfile: AccountUserProfiles contains properties of a DCM -// user profile. This resource is specifically for managing user -// profiles, whereas UserProfiles is for accessing the API. +// AccountUserProfile: AccountUserProfiles contains properties of a DCM user +// profile. This resource is specifically for managing user profiles, whereas +// UserProfiles is for accessing the API. type AccountUserProfile struct { - // AccountId: Account ID of the user profile. This is a read-only field - // that can be left blank. + // AccountId: Account ID of the user profile. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether this user profile is active. This defaults to false, - // and must be set true on insert for the user profile to be usable. + // Active: Whether this user profile is active. This defaults to false, and + // must be set true on insert for the user profile to be usable. Active bool `json:"active,omitempty"` - - // AdvertiserFilter: Filter that describes which advertisers are visible - // to the user profile. + // AdvertiserFilter: Filter that describes which advertisers are visible to the + // user profile. AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"` - - // CampaignFilter: Filter that describes which campaigns are visible to - // the user profile. + // CampaignFilter: Filter that describes which campaigns are visible to the + // user profile. CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"` - // Comments: Comments for this user profile. Comments string `json:"comments,omitempty"` - - // Email: Email of the user profile. The email addresss must be linked - // to a Google Account. This field is required on insertion and is - // read-only after insertion. + // Email: Email of the user profile. The email addresss must be linked to a + // Google Account. This field is required on insertion and is read-only after + // insertion. Email string `json:"email,omitempty"` - - // Id: ID of the user profile. This is a read-only, auto-generated - // field. + // Id: ID of the user profile. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfile". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfile". Kind string `json:"kind,omitempty"` - - // Locale: Locale of the user profile. This is a required - // field. + // Locale: Locale of the user profile. This is a required field. // Acceptable values are: // - "cs" (Czech) // - "de" (German) @@ -1359,20 +1286,16 @@ type AccountUserProfile struct { // - "zh-CN" (Chinese Simplified) // - "zh-TW" (Chinese Traditional) Locale string `json:"locale,omitempty"` - - // Name: Name of the user profile. This is a required field. Must be - // less than 64 characters long, must be globally unique, and cannot - // contain whitespace or any of the following characters: "&;"#%,". + // Name: Name of the user profile. This is a required field. Must be less than + // 64 characters long, must be globally unique, and cannot contain whitespace + // or any of the following characters: "&;"#%,". Name string `json:"name,omitempty"` - // SiteFilter: Filter that describes which sites are visible to the user // profile. SiteFilter *ObjectFilter `json:"siteFilter,omitempty"` - - // SubaccountId: Subaccount ID of the user profile. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of the user profile. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TraffickerType: Trafficker type of this user profile. // // Possible values: @@ -1380,9 +1303,8 @@ type AccountUserProfile struct { // "INTERNAL_NON_TRAFFICKER" // "INTERNAL_TRAFFICKER" TraffickerType string `json:"traffickerType,omitempty"` - - // UserAccessType: User type of the user profile. This is a read-only - // field that can be left blank. + // UserAccessType: User type of the user profile. This is a read-only field + // that can be left blank. // // Possible values: // "INTERNAL_ADMINISTRATOR" @@ -1390,213 +1312,159 @@ type AccountUserProfile struct { // "READ_ONLY_SUPER_USER" // "SUPER_USER" UserAccessType string `json:"userAccessType,omitempty"` - - // UserRoleFilter: Filter that describes which user roles are visible to - // the user profile. + // UserRoleFilter: Filter that describes which user roles are visible to the + // user profile. UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"` - - // UserRoleId: User role ID of the user profile. This is a required - // field. + // UserRoleId: User role ID of the user profile. This is a required field. UserRoleId int64 `json:"userRoleId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfile) MarshalJSON() ([]byte, error) { +func (s AccountUserProfile) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountUserProfilesListResponse: Account User Profile List Response type AccountUserProfilesListResponse struct { // AccountUserProfiles: Account user profile collection. AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfilesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfilesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountUserProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountUserProfiles") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { +func (s AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfilesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountsListResponse: Account List Response type AccountsListResponse struct { // Accounts: Account collection. Accounts []*Account `json:"accounts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Accounts") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accounts") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accounts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Activities: Represents an activity group. type Activities struct { - // Filters: List of activity filters. The dimension values need to be - // all either of type "dfa:activity" or "dfa:activityGroup". + // Filters: List of activity filters. The dimension values need to be all + // either of type "dfa:activity" or "dfa:activityGroup". Filters []*DimensionValue `json:"filters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#activities. + // Kind: The kind of resource this is, in this case dfareporting#activities. Kind string `json:"kind,omitempty"` - // MetricNames: List of names of floodlight activity metrics. MetricNames []string `json:"metricNames,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filters") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Activities) MarshalJSON() ([]byte, error) { +func (s Activities) MarshalJSON() ([]byte, error) { type NoMethod Activities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Ad: Contains properties of a DCM ad. type Ad struct { - // AccountId: Account ID of this ad. This is a read-only field that can - // be left blank. + // AccountId: Account ID of this ad. This is a read-only field that can be left + // blank. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this ad is active. When true, archived must be false. Active bool `json:"active,omitempty"` - // AdvertiserId: Advertiser ID of this ad. This is a required field on // insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Archived: Whether this ad is archived. When true, active must be - // false. + // Archived: Whether this ad is archived. When true, active must be false. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentId: Audience segment ID that is being targeted for - // this ad. Applicable when type is AD_SERVING_STANDARD_AD. + // AudienceSegmentId: Audience segment ID that is being targeted for this ad. + // Applicable when type is AD_SERVING_STANDARD_AD. AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"` - - // CampaignId: Campaign ID of this ad. This is a required field on - // insertion. + // CampaignId: Campaign ID of this ad. This is a required field on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ClickThroughUrl: Click-through URL for this ad. This is a required - // field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. + // ClickThroughUrl: Click-through URL for this ad. This is a required field on + // insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // ClickThroughUrlSuffixProperties: Click-through URL suffix properties - // for this ad. Applies to the URL in the ad or (if overriding ad - // properties) the URL in the creative. + // ClickThroughUrlSuffixProperties: Click-through URL suffix properties for + // this ad. Applies to the URL in the ad or (if overriding ad properties) the + // URL in the creative. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - // Comments: Comments for this ad. Comments string `json:"comments,omitempty"` - // Compatibility: Compatibility of this ad. Applicable when type is - // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to - // either rendering on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are only used for existing default ads. New mobile - // placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and - // default ads created for those placements will be limited to those - // compatibility types. IN_STREAM_VIDEO refers to rendering in-stream - // video ads developed with the VAST standard. + // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either + // rendering on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for + // existing default ads. New mobile placements must be assigned DISPLAY or + // DISPLAY_INTERSTITIAL and default ads created for those placements will be + // limited to those compatibility types. IN_STREAM_VIDEO refers to rendering + // in-stream video ads developed with the VAST standard. // // Possible values: // "APP" @@ -1605,129 +1473,99 @@ type Ad struct { // "DISPLAY_INTERSTITIAL" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - - // CreateInfo: Information about the creation of this ad. This is a - // read-only field. + // CreateInfo: Information about the creation of this ad. This is a read-only + // field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this ad. - // Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment - // per creative group number is allowed for a maximum of two - // assignments. + // CreativeGroupAssignments: Creative group assignments for this ad. Applicable + // when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative + // group number is allowed for a maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeRotation: Creative rotation for this ad. Applicable when type - // is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or - // AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field - // should have exactly one creativeAssignment. + // CreativeRotation: Creative rotation for this ad. Applicable when type is + // AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When + // type is AD_SERVING_DEFAULT_AD, this field should have exactly one + // creativeAssignment. CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"` - - // DayPartTargeting: Time and day targeting information for this ad. - // This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // DayPartTargeting: Time and day targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - - // DefaultClickThroughEventTagProperties: Default click-through event - // tag properties for this ad. + // DefaultClickThroughEventTagProperties: Default click-through event tag + // properties for this ad. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - - // DeliverySchedule: Delivery schedule information for this ad. - // Applicable when type is AD_SERVING_STANDARD_AD or - // AD_SERVING_TRACKING. This field along with subfields priority and - // impressionRatio are required on insertion when type is - // AD_SERVING_STANDARD_AD. + // DeliverySchedule: Delivery schedule information for this ad. Applicable when + // type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with + // subfields priority and impressionRatio are required on insertion when type + // is AD_SERVING_STANDARD_AD. DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"` - - // DynamicClickTracker: Whether this ad is a dynamic click tracker. - // Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required - // field on insert, and is read-only after insert. + // DynamicClickTracker: Whether this ad is a dynamic click tracker. Applicable + // when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, + // and is read-only after insert. DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"` - - // EndTime: Date and time that this ad should stop serving. Must be - // later than the start time. This is a required field on insertion. + // EndTime: Date and time that this ad should stop serving. Must be later than + // the start time. This is a required field on insertion. EndTime string `json:"endTime,omitempty"` - // EventTagOverrides: Event tag overrides for this ad. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - - // GeoTargeting: Geographical targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // GeoTargeting: Geographical targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - // Id: ID of this ad. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this ad. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyValueTargetingExpression: Key-value targeting information for this - // ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // KeyValueTargetingExpression: Key-value targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ad". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ad". Kind string `json:"kind,omitempty"` - - // LanguageTargeting: Language targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // LanguageTargeting: Language targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this ad. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this ad. + // This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this ad. This is a required field and must be less than - // 256 characters long. + // Name: Name of this ad. This is a required field and must be less than 256 + // characters long. Name string `json:"name,omitempty"` - // PlacementAssignments: Placement assignments for this ad. PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"` - - // RemarketingListExpression: Remarketing list targeting expression for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // RemarketingListExpression: Remarketing list targeting expression for this + // ad. This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"` - // Size: Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether this ad is ssl compliant. This is a read-only - // field that is auto-generated when the ad is inserted or updated. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslRequired: Whether this ad requires ssl. This is a read-only field + // SslCompliant: Whether this ad is ssl compliant. This is a read-only field // that is auto-generated when the ad is inserted or updated. + SslCompliant bool `json:"sslCompliant,omitempty"` + // SslRequired: Whether this ad requires ssl. This is a read-only field that is + // auto-generated when the ad is inserted or updated. SslRequired bool `json:"sslRequired,omitempty"` - - // StartTime: Date and time that this ad should start serving. If - // creating an ad, this field must be a time in the future. This is a - // required field on insertion. + // StartTime: Date and time that this ad should start serving. If creating an + // ad, this field must be a time in the future. This is a required field on + // insertion. StartTime string `json:"startTime,omitempty"` - - // SubaccountId: Subaccount ID of this ad. This is a read-only field - // that can be left blank. + // SubaccountId: Subaccount ID of this ad. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TargetingTemplateId: Targeting template ID, used to apply - // preconfigured targeting information to this ad. This cannot be set - // while any of dayPartTargeting, geoTargeting, - // keyValueTargetingExpression, languageTargeting, - // remarketingListExpression, or technologyTargeting are set. Applicable - // when type is AD_SERVING_STANDARD_AD. + // TargetingTemplateId: Targeting template ID, used to apply preconfigured + // targeting information to this ad. This cannot be set while any of + // dayPartTargeting, geoTargeting, keyValueTargetingExpression, + // languageTargeting, remarketingListExpression, or technologyTargeting are + // set. Applicable when type is AD_SERVING_STANDARD_AD. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // TechnologyTargeting: Technology platform targeting information for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // TechnologyTargeting: Technology platform targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - - // Type: Type of ad. This is a required field on insertion. Note that - // default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see - // Creative resource). + // Type: Type of ad. This is a required field on insertion. Note that default + // ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative + // resource). // // Possible values: // "AD_SERVING_CLICK_TRACKER" @@ -1736,43 +1574,34 @@ type Ad struct { // "AD_SERVING_TRACKING" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Ad) MarshalJSON() ([]byte, error) { +func (s Ad) MarshalJSON() ([]byte, error) { type NoMethod Ad - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdSlot: Ad Slot type AdSlot struct { // Comment: Comment for this ad slot. Comment string `json:"comment,omitempty"` - - // Compatibility: Ad slot compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile - // devices or in mobile apps for regular or interstitial ads - // respectively. APP and APP_INTERSTITIAL are for rendering in mobile - // apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // Compatibility: Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer + // to rendering either on desktop, mobile devices or in mobile apps for regular + // or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads // developed with the VAST standard. // // Possible values: @@ -1782,1270 +1611,951 @@ type AdSlot struct { // "DISPLAY_INTERSTITIAL" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - // Height: Height of this ad slot. Height int64 `json:"height,omitempty,string"` - - // LinkedPlacementId: ID of the placement from an external platform that - // is linked to this ad slot. + // LinkedPlacementId: ID of the placement from an external platform that is + // linked to this ad slot. LinkedPlacementId int64 `json:"linkedPlacementId,omitempty,string"` - // Name: Name of this ad slot. Name string `json:"name,omitempty"` - // PaymentSourceType: Payment source type of this ad slot. // // Possible values: // "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID" // "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" PaymentSourceType string `json:"paymentSourceType,omitempty"` - // Primary: Primary ad slot of a roadblock inventory item. Primary bool `json:"primary,omitempty"` - // Width: Width of this ad slot. Width int64 `json:"width,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Comment") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Comment") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Comment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Comment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdSlot) MarshalJSON() ([]byte, error) { +func (s AdSlot) MarshalJSON() ([]byte, error) { type NoMethod AdSlot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdsListResponse: Ad List Response type AdsListResponse struct { // Ads: Ad collection. Ads []*Ad `json:"ads,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#adsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#adsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Ads") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ads") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Ads") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Ads") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdsListResponse) MarshalJSON() ([]byte, error) { +func (s AdsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Advertiser: Contains properties of a DCM advertiser. type Advertiser struct { - // AccountId: Account ID of this advertiser.This is a read-only field - // that can be left blank. + // AccountId: Account ID of this advertiser.This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserGroupId: ID of the advertiser group this advertiser belongs - // to. You can group advertisers for reporting purposes, allowing you to - // see aggregated information for all advertisers in each group. + // AdvertiserGroupId: ID of the advertiser group this advertiser belongs to. + // You can group advertisers for reporting purposes, allowing you to see + // aggregated information for all advertisers in each group. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // ClickThroughUrlSuffix: Suffix added to click-through URL of ad - // creative associations under this advertiser. Must be less than 129 - // characters long. + // ClickThroughUrlSuffix: Suffix added to click-through URL of ad creative + // associations under this advertiser. Must be less than 129 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply by default to the landing pages of this advertiser's campaigns. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply by + // default to the landing pages of this advertiser's campaigns. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // DefaultEmail: Default email address used in sender field for tag - // emails. + // DefaultEmail: Default email address used in sender field for tag emails. DefaultEmail string `json:"defaultEmail,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // advertiser. The floodlight configuration ID will be created - // automatically, so on insert this field should be left blank. This - // field can be set to another advertiser's floodlight configuration ID - // in order to share that advertiser's floodlight configuration with - // this advertiser, so long as: + // FloodlightConfigurationId: Floodlight configuration ID of this advertiser. + // The floodlight configuration ID will be created automatically, so on insert + // this field should be left blank. This field can be set to another + // advertiser's floodlight configuration ID in order to share that advertiser's + // floodlight configuration with this advertiser, so long as: // - This advertiser's original floodlight configuration is not already // associated with floodlight activities or floodlight activity groups. - // - // - This advertiser's original floodlight configuration is not already - // shared with another advertiser. + // - This advertiser's original floodlight configuration is not already shared + // with another advertiser. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this advertiser. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this advertiser. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this advertiser. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiser". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser. This is a required field and must be - // less than 256 characters long and unique among advertisers of the - // same account. + // Name: Name of this advertiser. This is a required field and must be less + // than 256 characters long and unique among advertisers of the same account. Name string `json:"name,omitempty"` - - // OriginalFloodlightConfigurationId: Original floodlight configuration - // before any sharing occurred. Set the floodlightConfigurationId of - // this advertiser to originalFloodlightConfigurationId to unshare the - // advertiser's current floodlight configuration. You cannot unshare an - // advertiser's floodlight configuration if the shared configuration has - // activities associated with any campaign or placement. + // OriginalFloodlightConfigurationId: Original floodlight configuration before + // any sharing occurred. Set the floodlightConfigurationId of this advertiser + // to originalFloodlightConfigurationId to unshare the advertiser's current + // floodlight configuration. You cannot unshare an advertiser's floodlight + // configuration if the shared configuration has activities associated with any + // campaign or placement. OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"` - // Status: Status of this advertiser. // // Possible values: // "APPROVED" // "ON_HOLD" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this advertiser.This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this advertiser.This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Suspended: Suspension status of this advertiser. Suspended bool `json:"suspended,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Advertiser) MarshalJSON() ([]byte, error) { +func (s Advertiser) MarshalJSON() ([]byte, error) { type NoMethod Advertiser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroup: Groups advertisers together so that reports can be // generated for the entire group at once. type AdvertiserGroup struct { - // AccountId: Account ID of this advertiser group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this advertiser group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this advertiser group. This is a read-only, auto-generated - // field. + // Id: ID of this advertiser group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser group. This is a required field and - // must be less than 256 characters long and unique among advertiser - // groups of the same account. + // Name: Name of this advertiser group. This is a required field and must be + // less than 256 characters long and unique among advertiser groups of the same + // account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroup) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroup) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroupsListResponse: Advertiser Group List Response type AdvertiserGroupsListResponse struct { // AdvertiserGroups: Advertiser group collection. AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserGroups") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertisersListResponse: Advertiser List Response type AdvertisersListResponse struct { // Advertisers: Advertiser collection. Advertisers []*Advertiser `json:"advertisers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertisersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertisersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Advertisers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Advertisers") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Advertisers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertisersListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertisersListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertisersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegment: Audience Segment. type AudienceSegment struct { - // Allocation: Weight allocated to this segment. The weight assigned - // will be understood in proportion to the weights assigned to other - // segments in the same segment group. Acceptable values are 1 to 1000, - // inclusive. + // Allocation: Weight allocated to this segment. The weight assigned will be + // understood in proportion to the weights assigned to other segments in the + // same segment group. Acceptable values are 1 to 1000, inclusive. Allocation int64 `json:"allocation,omitempty"` - - // Id: ID of this audience segment. This is a read-only, auto-generated - // field. + // Id: ID of this audience segment. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment. This is a required field and - // must be less than 65 characters long. + // Name: Name of this audience segment. This is a required field and must be + // less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Allocation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Allocation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Allocation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegment) MarshalJSON() ([]byte, error) { +func (s AudienceSegment) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegmentGroup: Audience Segment Group. type AudienceSegmentGroup struct { - // AudienceSegments: Audience segments assigned to this group. The - // number of segments must be between 2 and 100. + // AudienceSegments: Audience segments assigned to this group. The number of + // segments must be between 2 and 100. AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"` - - // Id: ID of this audience segment group. This is a read-only, - // auto-generated field. + // Id: ID of this audience segment group. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment group. This is a required field - // and must be less than 65 characters long. + // Name: Name of this audience segment group. This is a required field and must + // be less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudienceSegments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudienceSegments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AudienceSegments") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegmentGroup) MarshalJSON() ([]byte, error) { +func (s AudienceSegmentGroup) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegmentGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Browser: Contains information about a browser that can be targeted by -// ads. +// Browser: Contains information about a browser that can be targeted by ads. type Browser struct { - // BrowserVersionId: ID referring to this grouping of browser and - // version numbers. This is the ID used for targeting. + // BrowserVersionId: ID referring to this grouping of browser and version + // numbers. This is the ID used for targeting. BrowserVersionId int64 `json:"browserVersionId,omitempty,string"` - // DartId: DART ID of this browser. This is the ID used when generating // reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browser". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version number (leftmost number) of this browser. - // For example, for Chrome 5.0.376.86 beta, this field should be set to - // 5. An asterisk (*) may be used to target any version number, and a - // question mark (?) may be used to target cases where the version - // number cannot be identified. For example, Chrome *.* targets any - // version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MajorVersion: Major version number (leftmost number) of this browser. For + // example, for Chrome 5.0.376.86 beta, this field should be set to 5. An + // asterisk (*) may be used to target any version number, and a question mark + // (?) may be used to target cases where the version number cannot be + // identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, + // 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? + // targets cases where the ad server knows the browser is Firefox but can't + // tell which version it is. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version number (number after first dot on left) - // of this browser. For example, for Chrome 5.0.375.86 beta, this field - // should be set to 0. An asterisk (*) may be used to target any version - // number, and a question mark (?) may be used to target cases where the - // version number cannot be identified. For example, Chrome *.* targets - // any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MinorVersion: Minor version number (number after first dot on left) of this + // browser. For example, for Chrome 5.0.375.86 beta, this field should be set + // to 0. An asterisk (*) may be used to target any version number, and a + // question mark (?) may be used to target cases where the version number + // cannot be identified. For example, Chrome *.* targets any version of Chrome: + // 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. + // Firefox ?.? targets cases where the ad server knows the browser is Firefox + // but can't tell which version it is. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this browser. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "BrowserVersionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BrowserVersionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BrowserVersionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Browser) MarshalJSON() ([]byte, error) { +func (s Browser) MarshalJSON() ([]byte, error) { type NoMethod Browser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BrowsersListResponse: Browser List Response type BrowsersListResponse struct { // Browsers: Browser collection. Browsers []*Browser `json:"browsers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browsersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browsersListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BrowsersListResponse) MarshalJSON() ([]byte, error) { +func (s BrowsersListResponse) MarshalJSON() ([]byte, error) { type NoMethod BrowsersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Campaign: Contains properties of a DCM campaign. type Campaign struct { - // AccountId: Account ID of this campaign. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this campaign. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - // AdditionalCreativeOptimizationConfigurations: Additional creative // optimization configurations for the campaign. AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"` - // AdvertiserGroupId: Advertiser group ID of the associated advertiser. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this campaign. This is a required - // field. + // AdvertiserId: Advertiser ID of this campaign. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of - // this campaign. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of this + // campaign. This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this campaign has been archived. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentGroups: Audience segment groups assigned to this - // campaign. Cannot have more than 300 segment groups. + // AudienceSegmentGroups: Audience segment groups assigned to this campaign. + // Cannot have more than 300 segment groups. AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"` - - // BillingInvoiceCode: Billing invoice code included in the DCM client - // billing invoices associated with the campaign. + // BillingInvoiceCode: Billing invoice code included in the DCM client billing + // invoices associated with the campaign. BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"` - // ClickThroughUrlSuffixProperties: Click-through URL suffix override // properties for this campaign. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - - // Comment: Arbitrary comments about this campaign. Must be less than - // 256 characters long. + // Comment: Arbitrary comments about this campaign. Must be less than 256 + // characters long. Comment string `json:"comment,omitempty"` - - // CreateInfo: Information about the creation of this campaign. This is - // a read-only field. + // CreateInfo: Information about the creation of this campaign. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - // CreativeGroupIds: List of creative group IDs that are assigned to the // campaign. CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"` - - // CreativeOptimizationConfiguration: Creative optimization - // configuration for the campaign. + // CreativeOptimizationConfiguration: Creative optimization configuration for + // the campaign. CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"` - - // DefaultClickThroughEventTagProperties: Click-through event tag ID - // override properties for this campaign. + // DefaultClickThroughEventTagProperties: Click-through event tag ID override + // properties for this campaign. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - - // EndDate: Date on which the campaign will stop running. On insert, the - // end date must be today or a future date. The end date must be later - // than or be the same as the start date. If, for example, you set - // 6/25/2015 as both the start and end dates, the effective campaign run - // date is just that day only, 6/25/2015. The hours, minutes, and - // seconds of the end date should not be set, as doing so will result in - // an error. This is a required field. + // EndDate: Date on which the campaign will stop running. On insert, the end + // date must be today or a future date. The end date must be later than or be + // the same as the start date. If, for example, you set 6/25/2015 as both the + // start and end dates, the effective campaign run date is just that day only, + // 6/25/2015. The hours, minutes, and seconds of the end date should not be + // set, as doing so will result in an error. This is a required field. EndDate string `json:"endDate,omitempty"` - - // EventTagOverrides: Overrides that can be used to activate or - // deactivate advertiser event tags. + // EventTagOverrides: Overrides that can be used to activate or deactivate + // advertiser event tags. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - // ExternalId: External ID for this campaign. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this campaign. This is a read-only auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this campaign. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this campaign. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaign". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaign". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this campaign. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // campaign. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // LookbackConfiguration: Lookback window settings for the campaign. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // Name: Name of this campaign. This is a required field and must be - // less than 256 characters long and unique among campaigns of the same - // advertiser. + // Name: Name of this campaign. This is a required field and must be less than + // 256 characters long and unique among campaigns of the same advertiser. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether Nielsen reports are enabled for this - // campaign. + // NielsenOcrEnabled: Whether Nielsen reports are enabled for this campaign. NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - - // StartDate: Date on which the campaign starts running. The start date - // can be any date. The hours, minutes, and seconds of the start date - // should not be set, as doing so will result in an error. This is a - // required field. + // StartDate: Date on which the campaign starts running. The start date can be + // any date. The hours, minutes, and seconds of the start date should not be + // set, as doing so will result in an error. This is a required field. StartDate string `json:"startDate,omitempty"` - - // SubaccountId: Subaccount ID of this campaign. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this campaign. This is a read-only field that + // can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TraffickerEmails: Campaign trafficker contact emails. TraffickerEmails []string `json:"traffickerEmails,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Campaign) MarshalJSON() ([]byte, error) { +func (s Campaign) MarshalJSON() ([]byte, error) { type NoMethod Campaign - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociation: Identifies a creative which has been -// associated with a given campaign. +// CampaignCreativeAssociation: Identifies a creative which has been associated +// with a given campaign. type CampaignCreativeAssociation struct { - // CreativeId: ID of the creative associated with the campaign. This is - // a required field. + // CreativeId: ID of the creative associated with the campaign. This is a + // required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociation". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociation". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreativeId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociationsListResponse: Campaign Creative -// Association List Response +// CampaignCreativeAssociationsListResponse: Campaign Creative Association List +// Response type CampaignCreativeAssociationsListResponse struct { - // CampaignCreativeAssociations: Campaign creative association - // collection + // CampaignCreativeAssociations: Campaign creative association collection CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociationsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "CampaignCreativeAssociations") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CampaignCreativeAssociations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CampaignsListResponse: Campaign List Response type CampaignsListResponse struct { // Campaigns: Campaign collection. Campaigns []*Campaign `json:"campaigns,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Campaigns") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Campaigns") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Campaigns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLog: Describes a change that a user has made to a resource. type ChangeLog struct { // AccountId: Account ID of the modified object. AccountId int64 `json:"accountId,omitempty,string"` - // Action: Action which caused the change. Action string `json:"action,omitempty"` - // ChangeTime: Time when the object was modified. ChangeTime string `json:"changeTime,omitempty"` - // FieldName: Field name of the object which changed. FieldName string `json:"fieldName,omitempty"` - // Id: ID of this change log. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLog". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLog". Kind string `json:"kind,omitempty"` - // NewValue: New value of the object field. NewValue string `json:"newValue,omitempty"` - // ObjectId: ID of the object of this change log. The object could be a // campaign, placement, ad, or other type. ObjectId int64 `json:"objectId,omitempty,string"` - // ObjectType: Object type of the change log. ObjectType string `json:"objectType,omitempty"` - // OldValue: Old value of the object field. OldValue string `json:"oldValue,omitempty"` - // SubaccountId: Subaccount ID of the modified object. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TransactionId: Transaction ID of this change log. When a single API - // call results in many changes, each change will have a separate ID in - // the change log but will share the same transactionId. + // TransactionId: Transaction ID of this change log. When a single API call + // results in many changes, each change will have a separate ID in the change + // log but will share the same transactionId. TransactionId int64 `json:"transactionId,omitempty,string"` - // UserProfileId: ID of the user who modified the object. UserProfileId int64 `json:"userProfileId,omitempty,string"` - - // UserProfileName: User profile name of the user who modified the - // object. + // UserProfileName: User profile name of the user who modified the object. UserProfileName string `json:"userProfileName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLog) MarshalJSON() ([]byte, error) { +func (s ChangeLog) MarshalJSON() ([]byte, error) { type NoMethod ChangeLog - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLogsListResponse: Change Log List Response type ChangeLogsListResponse struct { // ChangeLogs: Change log collection. ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLogsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLogsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ChangeLogs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChangeLogs") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChangeLogs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLogsListResponse) MarshalJSON() ([]byte, error) { +func (s ChangeLogsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ChangeLogsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CitiesListResponse: City List Response type CitiesListResponse struct { // Cities: City collection. Cities []*City `json:"cities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#citiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#citiesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CitiesListResponse) MarshalJSON() ([]byte, error) { +func (s CitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // City: Contains information about a city that can be targeted by ads. type City struct { // CountryCode: Country code of the country to which this city belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this city belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this city. This is the ID used for targeting and // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#city". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#city". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro region code of the metro region (DMA) to which this - // city belongs. + // MetroCode: Metro region code of the metro region (DMA) to which this city + // belongs. MetroCode string `json:"metroCode,omitempty"` - // MetroDmaId: ID of the metro region (DMA) to which this city belongs. MetroDmaId int64 `json:"metroDmaId,omitempty,string"` - // Name: Name of this city. Name string `json:"name,omitempty"` - // RegionCode: Region code of the region to which this city belongs. RegionCode string `json:"regionCode,omitempty"` - // RegionDartId: DART ID of the region to which this city belongs. RegionDartId int64 `json:"regionDartId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *City) MarshalJSON() ([]byte, error) { +func (s City) MarshalJSON() ([]byte, error) { type NoMethod City - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickTag: Creative Click Tag. type ClickTag struct { - // EventName: Advertiser event name associated with the click tag. This - // field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // EventName: Advertiser event name associated with the click tag. This field + // is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. EventName string `json:"eventName,omitempty"` - - // Name: Parameter name for the specified click tag. For - // DISPLAY_IMAGE_GALLERY creative assets, this field must match the - // value of the creative asset's creativeAssetId.name field. + // Name: Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY + // creative assets, this field must match the value of the creative asset's + // creativeAssetId.name field. Name string `json:"name,omitempty"` - - // Value: Parameter value for the specified click tag. This field - // contains a click-through url. + // Value: Parameter value for the specified click tag. This field contains a + // click-through url. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickTag) MarshalJSON() ([]byte, error) { +func (s ClickTag) MarshalJSON() ([]byte, error) { type NoMethod ClickTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrl: Click-through URL type ClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - // - If defaultLandingPage is enabled then the campaign's default - // landing page URL is assigned to this field. - // - If defaultLandingPage is not enabled and a landingPageId is - // specified then that landing page's URL is assigned to this field. - // - If neither of the above cases apply, then the customClickThroughUrl - // is assigned to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: + // - If defaultLandingPage is enabled then the campaign's default landing page + // URL is assigned to this field. + // - If defaultLandingPage is not enabled and a landingPageId is specified then + // that landing page's URL is assigned to this field. + // - If neither of the above cases apply, then the customClickThroughUrl is + // assigned to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the - // defaultLandingPage field is set to false and the landingPageId field - // is left unset. + // defaultLandingPage field is set to false and the landingPageId field is left + // unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - - // DefaultLandingPage: Whether the campaign default landing page is - // used. + // DefaultLandingPage: Whether the campaign default landing page is used. DefaultLandingPage bool `json:"defaultLandingPage,omitempty"` - - // LandingPageId: ID of the landing page for the click-through URL. - // Applicable if the defaultLandingPage field is set to false. + // LandingPageId: ID of the landing page for the click-through URL. Applicable + // if the defaultLandingPage field is set to false. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrlSuffixProperties: Click Through URL Suffix settings. type ClickThroughUrlSuffixProperties struct { - // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads - // in this entity's scope. Must be less than 128 characters long. + // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads in this + // entity's scope. Must be less than 128 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // OverrideInheritedSuffix: Whether this entity should override the - // inherited click-through URL suffix with its own defined value. + // OverrideInheritedSuffix: Whether this entity should override the inherited + // click-through URL suffix with its own defined value. OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClickThroughUrlSuffix") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClickThroughUrlSuffix") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClickThroughUrlSuffix") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrlSuffixProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionClickThroughOverride: Companion Click-through override. type CompanionClickThroughOverride struct { - // ClickThroughUrl: Click-through URL of this companion click-through - // override. + // ClickThroughUrl: Click-through URL of this companion click-through override. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CreativeId: ID of the creative for this companion click-through - // override. + // CreativeId: ID of the creative for this companion click-through override. CreativeId int64 `json:"creativeId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { +func (s CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { type NoMethod CompanionClickThroughOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionSetting: Companion Settings type CompanionSetting struct { - // CompanionsDisabled: Whether companions are disabled for this - // placement. + // CompanionsDisabled: Whether companions are disabled for this placement. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - - // EnabledSizes: Whitelist of companion sizes to be served to this - // placement. Set this list to null or empty to serve all companion - // sizes. + // EnabledSizes: Whitelist of companion sizes to be served to this placement. + // Set this list to null or empty to serve all companion sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` - // ImageOnly: Whether to serve only static images as companions. ImageOnly bool `json:"imageOnly,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#companionSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#companionSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionsDisabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionsDisabled") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionSetting) MarshalJSON() ([]byte, error) { +func (s CompanionSetting) MarshalJSON() ([]byte, error) { type NoMethod CompanionSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompatibleFields: Represents a response to the queryCompatibleFields -// method. +// CompatibleFields: Represents a response to the queryCompatibleFields method. type CompatibleFields struct { // CrossDimensionReachReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type - // "CROSS_DIMENSION_REACH". + // compatible to be selected for a report of type "CROSS_DIMENSION_REACH". CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"` - - // FloodlightReportCompatibleFields: Contains items that are compatible - // to be selected for a report of type "FLOODLIGHT". + // FloodlightReportCompatibleFields: Contains items that are compatible to be + // selected for a report of type "FLOODLIGHT". FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#compatibleFields. Kind string `json:"kind,omitempty"` - - // PathToConversionReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type "PATH_TO_CONVERSION". + // PathToConversionReportCompatibleFields: Contains items that are compatible + // to be selected for a report of type "PATH_TO_CONVERSION". PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"` - // ReachReportCompatibleFields: Contains items that are compatible to be // selected for a report of type "REACH". ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"` - - // ReportCompatibleFields: Contains items that are compatible to be - // selected for a report of type "STANDARD". + // ReportCompatibleFields: Contains items that are compatible to be selected + // for a report of type "STANDARD". ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to unconditionally - // include in API requests. By default, fields with empty values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to unconditionally include in + // API requests. By default, fields with empty or default values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted from + // API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields + // for more details. NullFields []string `json:"-"` } -func (s *CompatibleFields) MarshalJSON() ([]byte, error) { +func (s CompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConnectionType: Contains information about an internet connection -// type that can be targeted by ads. Clients can use the connection type -// to target mobile vs. broadband users. +// ConnectionType: Contains information about an internet connection type that +// can be targeted by ads. Clients can use the connection type to target mobile +// vs. broadband users. type ConnectionType struct { // Id: ID of this connection type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionType". Kind string `json:"kind,omitempty"` - // Name: Name of this connection type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionType) MarshalJSON() ([]byte, error) { +func (s ConnectionType) MarshalJSON() ([]byte, error) { type NoMethod ConnectionType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConnectionTypesListResponse: Connection Type List Response @@ -3053,214 +2563,161 @@ type ConnectionTypesListResponse struct { // ConnectionTypes: Collection of connection types such as broadband and // mobile. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionTypesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConnectionTypes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConnectionTypes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConnectionTypes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { +func (s ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ConnectionTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContentCategoriesListResponse: Content Category List Response type ContentCategoriesListResponse struct { // ContentCategories: Content category collection. ContentCategories []*ContentCategory `json:"contentCategories,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategoriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategoriesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ContentCategories") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentCategories") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentCategories") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentCategories") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { +func (s ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ContentCategoriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentCategory: Organizes placements according to the contents of -// their associated webpages. +// ContentCategory: Organizes placements according to the contents of their +// associated webpages. type ContentCategory struct { - // AccountId: Account ID of this content category. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this content category. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this content category. This is a read-only, auto-generated - // field. + // Id: ID of this content category. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategory". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategory". Kind string `json:"kind,omitempty"` - - // Name: Name of this content category. This is a required field and - // must be less than 256 characters long and unique among content - // categories of the same account. + // Name: Name of this content category. This is a required field and must be + // less than 256 characters long and unique among content categories of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategory) MarshalJSON() ([]byte, error) { +func (s ContentCategory) MarshalJSON() ([]byte, error) { type NoMethod ContentCategory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Conversion: A Conversion represents when a user successfully performs -// a desired action after seeing an ad. +// Conversion: A Conversion represents when a user successfully performs a +// desired action after seeing an ad. type Conversion struct { - // ChildDirectedTreatment: Whether the conversion was directed toward - // children. + // ChildDirectedTreatment: Whether the conversion was directed toward children. ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"` - // CustomVariables: Custom floodlight variables. CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"` - // EncryptedUserId: The alphanumeric encrypted user ID. When set, - // encryptionInfo should also be specified. This field is mutually - // exclusive with encryptedUserIdCandidates[] and mobileDeviceId. This - // or encryptedUserIdCandidates[] or mobileDeviceId is a required field. + // encryptionInfo should also be specified. This field is mutually exclusive + // with encryptedUserIdCandidates[] and mobileDeviceId. This or + // encryptedUserIdCandidates[] or mobileDeviceId is a required field. EncryptedUserId string `json:"encryptedUserId,omitempty"` - - // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user - // IDs. Any user ID with exposure prior to the conversion timestamp will - // be used in the inserted conversion. If no such user ID is found then - // the conversion will be rejected with NO_COOKIE_MATCH_FOUND error. - // When set, encryptionInfo should also be specified. This field should - // only be used when calling conversions.batchinsert. This field is - // mutually exclusive with encryptedUserId and mobileDeviceId. This or - // encryptedUserId or mobileDeviceId is a required field. + // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user IDs. + // Any user ID with exposure prior to the conversion timestamp will be used in + // the inserted conversion. If no such user ID is found then the conversion + // will be rejected with NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo + // should also be specified. This field should only be used when calling + // conversions.batchinsert. This field is mutually exclusive with + // encryptedUserId and mobileDeviceId. This or encryptedUserId or + // mobileDeviceId is a required field. EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"` - - // FloodlightActivityId: Floodlight Activity ID of this conversion. This - // is a required field. + // FloodlightActivityId: Floodlight Activity ID of this conversion. This is a + // required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightConfigurationId: Floodlight Configuration ID of this - // conversion. This is a required field. + // FloodlightConfigurationId: Floodlight Configuration ID of this conversion. + // This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversion". Kind string `json:"kind,omitempty"` - - // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to - // true, the conversion will be used for reporting but not targeting. - // This will prevent remarketing. + // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to true, the + // conversion will be used for reporting but not targeting. This will prevent + // remarketing. LimitAdTracking bool `json:"limitAdTracking,omitempty"` - - // MobileDeviceId: The mobile device ID. This field is mutually - // exclusive with encryptedUserId and encryptedUserIdCandidates[]. This - // or encryptedUserId or encryptedUserIdCandidates[] is a required - // field. + // MobileDeviceId: The mobile device ID. This field is mutually exclusive with + // encryptedUserId and encryptedUserIdCandidates[]. This or encryptedUserId or + // encryptedUserIdCandidates[] is a required field. MobileDeviceId string `json:"mobileDeviceId,omitempty"` - // Ordinal: The ordinal of the conversion. Use this field to control how - // conversions of the same user and day are de-duplicated. This is a - // required field. + // conversions of the same user and day are de-duplicated. This is a required + // field. Ordinal string `json:"ordinal,omitempty"` - // Quantity: The quantity of the conversion. Quantity int64 `json:"quantity,omitempty,string"` - - // TimestampMicros: The timestamp of conversion, in Unix epoch micros. - // This is a required field. + // TimestampMicros: The timestamp of conversion, in Unix epoch micros. This is + // a required field. TimestampMicros int64 `json:"timestampMicros,omitempty,string"` - // Value: The value of the conversion. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ChildDirectedTreatment") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ChildDirectedTreatment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChildDirectedTreatment") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ChildDirectedTreatment") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Conversion) MarshalJSON() ([]byte, error) { +func (s Conversion) MarshalJSON() ([]byte, error) { type NoMethod Conversion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Conversion) UnmarshalJSON(data []byte) error { @@ -3277,8 +2734,8 @@ func (s *Conversion) UnmarshalJSON(data []byte) error { return nil } -// ConversionError: The error code and description for a conversion that -// failed to insert or update. +// ConversionError: The error code and description for a conversion that failed +// to insert or update. type ConversionError struct { // Code: The error code. // @@ -3288,275 +2745,210 @@ type ConversionError struct { // "NOT_FOUND" // "PERMISSION_DENIED" Code string `json:"code,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionError". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionError". Kind string `json:"kind,omitempty"` - // Message: A description of the error. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionError) MarshalJSON() ([]byte, error) { +func (s ConversionError) MarshalJSON() ([]byte, error) { type NoMethod ConversionError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConversionStatus: The original conversion that was inserted or -// updated and whether there were any errors. +// ConversionStatus: The original conversion that was inserted or updated and +// whether there were any errors. type ConversionStatus struct { // Conversion: The original conversion that was inserted or updated. Conversion *Conversion `json:"conversion,omitempty"` - // Errors: A list of errors related to this conversion. Errors []*ConversionError `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionStatus". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionStatus". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversion") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionStatus) MarshalJSON() ([]byte, error) { +func (s ConversionStatus) MarshalJSON() ([]byte, error) { type NoMethod ConversionStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertRequest: Insert Conversions Request. type ConversionsBatchInsertRequest struct { // Conversions: The set of conversions to insert. Conversions []*Conversion `json:"conversions,omitempty"` - - // EncryptionInfo: Describes how encryptedUserId or - // encryptedUserIdCandidates[] is encrypted. This is a required field if - // encryptedUserId or encryptedUserIdCandidates[] is used. + // EncryptionInfo: Describes how encryptedUserId or encryptedUserIdCandidates[] + // is encrypted. This is a required field if encryptedUserId or + // encryptedUserIdCandidates[] is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertResponse: Insert Conversions Response. type ConversionsBatchInsertResponse struct { // HasFailures: Indicates that some or all conversions failed to insert. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertResponse". Kind string `json:"kind,omitempty"` - - // Status: The insert status of each conversion. Statuses are returned - // in the same order that conversions are inserted. + // Status: The insert status of each conversion. Statuses are returned in the + // same order that conversions are inserted. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CountriesListResponse: Country List Response type CountriesListResponse struct { // Countries: Country collection. Countries []*Country `json:"countries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#countriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#countriesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Countries") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Countries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Countries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CountriesListResponse) MarshalJSON() ([]byte, error) { +func (s CountriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CountriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Country: Contains information about a country that can be targeted by -// ads. +// Country: Contains information about a country that can be targeted by ads. type Country struct { // CountryCode: Country code. CountryCode string `json:"countryCode,omitempty"` - - // DartId: DART ID of this country. This is the ID used for targeting - // and generating reports. + // DartId: DART ID of this country. This is the ID used for targeting and + // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#country". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#country". Kind string `json:"kind,omitempty"` - // Name: Name of this country. Name string `json:"name,omitempty"` - - // SslEnabled: Whether ad serving supports secure servers in this - // country. + // SslEnabled: Whether ad serving supports secure servers in this country. SslEnabled bool `json:"sslEnabled,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Country) MarshalJSON() ([]byte, error) { +func (s Country) MarshalJSON() ([]byte, error) { type NoMethod Country - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Creative: Contains properties of a Creative. type Creative struct { - // AccountId: Account ID of this creative. This field, if left unset, - // will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // AccountId: Account ID of this creative. This field, if left unset, will be + // auto-generated for both insert and update operations. Applicable to all + // creative types. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether the creative is active. Applicable to all creative - // types. + // Active: Whether the creative is active. Applicable to all creative types. Active bool `json:"active,omitempty"` - - // AdParameters: Ad parameters user for VPAID creative. This is a - // read-only field. Applicable to the following creative types: all - // VPAID. + // AdParameters: Ad parameters user for VPAID creative. This is a read-only + // field. Applicable to the following creative types: all VPAID. AdParameters string `json:"adParameters,omitempty"` - - // AdTagKeys: Keywords for a Rich Media creative. Keywords let you - // customize the creative settings of a Rich Media ad running on your - // site without having to contact the advertiser. You can use keywords - // to dynamically change the look or functionality of a creative. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // AdTagKeys: Keywords for a Rich Media creative. Keywords let you customize + // the creative settings of a Rich Media ad running on your site without having + // to contact the advertiser. You can use keywords to dynamically change the + // look or functionality of a creative. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. AdTagKeys []string `json:"adTagKeys,omitempty"` - - // AdvertiserId: Advertiser ID of this creative. This is a required - // field. Applicable to all creative types. + // AdvertiserId: Advertiser ID of this creative. This is a required field. + // Applicable to all creative types. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AllowScriptAccess: Whether script access is allowed for this - // creative. This is a read-only and deprecated field which will - // automatically be set to true on update. Applicable to the following - // creative types: FLASH_INPAGE. + // AllowScriptAccess: Whether script access is allowed for this creative. This + // is a read-only and deprecated field which will automatically be set to true + // on update. Applicable to the following creative types: FLASH_INPAGE. AllowScriptAccess bool `json:"allowScriptAccess,omitempty"` - - // Archived: Whether the creative is archived. Applicable to all - // creative types. + // Archived: Whether the creative is archived. Applicable to all creative + // types. Archived bool `json:"archived,omitempty"` - - // ArtworkType: Type of artwork used for the creative. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // ArtworkType: Type of artwork used for the creative. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -3564,53 +2956,43 @@ type Creative struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // AuthoringSource: Source application where creative was authored. - // Presently, only DBM authored creatives will have this field set. - // Applicable to all creative types. + // AuthoringSource: Source application where creative was authored. Presently, + // only DBM authored creatives will have this field set. Applicable to all + // creative types. // // Possible values: // "CREATIVE_AUTHORING_SOURCE_DBM" // "CREATIVE_AUTHORING_SOURCE_DCM" // "CREATIVE_AUTHORING_SOURCE_STUDIO" AuthoringSource string `json:"authoringSource,omitempty"` - // AuthoringTool: Authoring tool for HTML5 banner creatives. This is a - // read-only field. Applicable to the following creative types: - // HTML5_BANNER. + // read-only field. Applicable to the following creative types: HTML5_BANNER. // // Possible values: // "NINJA" // "SWIFFY" AuthoringTool string `json:"authoringTool,omitempty"` - - // AutoAdvanceImages: Whether images are automatically advanced for - // image gallery creatives. Applicable to the following creative types: + // AutoAdvanceImages: Whether images are automatically advanced for image + // gallery creatives. Applicable to the following creative types: // DISPLAY_IMAGE_GALLERY. AutoAdvanceImages bool `json:"auto_advance_images,omitempty"` - - // BackgroundColor: The 6-character HTML color code, beginning with #, - // for the background of the window area where the Flash file is - // displayed. Default is white. Applicable to the following creative - // types: FLASH_INPAGE. + // BackgroundColor: The 6-character HTML color code, beginning with #, for the + // background of the window area where the Flash file is displayed. Default is + // white. Applicable to the following creative types: FLASH_INPAGE. BackgroundColor string `json:"backgroundColor,omitempty"` - - // BackupImageClickThroughUrl: Click-through URL for backup image. - // Applicable to the following creative types: FLASH_INPAGE, and - // HTML5_BANNER. Applicable to DISPLAY when the primary asset type is - // not HTML_IMAGE. + // BackupImageClickThroughUrl: Click-through URL for backup image. Applicable + // to the following creative types: FLASH_INPAGE, and HTML5_BANNER. Applicable + // to DISPLAY when the primary asset type is not HTML_IMAGE. BackupImageClickThroughUrl string `json:"backupImageClickThroughUrl,omitempty"` - - // BackupImageFeatures: List of feature dependencies that will cause a - // backup image to be served if the browser that serves the ad does not - // support them. Feature dependencies are features that a browser must - // be able to support in order to render your HTML5 creative asset - // correctly. This field is initially auto-generated to contain all - // features detected by DCM for all the assets of this creative and can - // then be modified by the client. To reset this field, copy over all - // the creativeAssets' detected features. Applicable to the following - // creative types: HTML5_BANNER. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // BackupImageFeatures: List of feature dependencies that will cause a backup + // image to be served if the browser that serves the ad does not support them. + // Feature dependencies are features that a browser must be able to support in + // order to render your HTML5 creative asset correctly. This field is initially + // auto-generated to contain all features detected by DCM for all the assets of + // this creative and can then be modified by the client. To reset this field, + // copy over all the creativeAssets' detected features. Applicable to the + // following creative types: HTML5_BANNER. Applicable to DISPLAY when the + // primary asset type is not HTML_IMAGE. // // Possible values: // "APPLICATION_CACHE" @@ -3680,53 +3062,45 @@ type Creative struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" BackupImageFeatures []string `json:"backupImageFeatures,omitempty"` - - // BackupImageReportingLabel: Reporting label used for HTML5 banner - // backup image. Applicable to the following creative types: DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageReportingLabel: Reporting label used for HTML5 banner backup + // image. Applicable to the following creative types: DISPLAY when the primary + // asset type is not HTML_IMAGE. BackupImageReportingLabel string `json:"backupImageReportingLabel,omitempty"` - - // BackupImageTargetWindow: Target window for backup image. Applicable - // to the following creative types: FLASH_INPAGE and HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // BackupImageTargetWindow: Target window for backup image. Applicable to the + // following creative types: FLASH_INPAGE and HTML5_BANNER. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"` - // ClickTags: Click tags of the creative. For DISPLAY, FLASH_INPAGE, and - // HTML5_BANNER creatives, this is a subset of detected click tags for - // the assets associated with this creative. After creating a flash - // asset, detected click tags will be returned in the - // creativeAssetMetadata. When inserting the creative, populate the - // creative clickTags field using the creativeAssetMetadata.clickTags - // field. For DISPLAY_IMAGE_GALLERY creatives, there should be exactly - // one entry in this list for each image creative asset. A click tag is - // matched with a corresponding creative asset by matching the - // clickTag.name field with the creativeAsset.assetIdentifier.name - // field. Applicable to the following creative types: - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. Applicable to - // DISPLAY when the primary asset type is not HTML_IMAGE. + // HTML5_BANNER creatives, this is a subset of detected click tags for the + // assets associated with this creative. After creating a flash asset, detected + // click tags will be returned in the creativeAssetMetadata. When inserting the + // creative, populate the creative clickTags field using the + // creativeAssetMetadata.clickTags field. For DISPLAY_IMAGE_GALLERY creatives, + // there should be exactly one entry in this list for each image creative + // asset. A click tag is matched with a corresponding creative asset by + // matching the clickTag.name field with the creativeAsset.assetIdentifier.name + // field. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, + // FLASH_INPAGE, HTML5_BANNER. Applicable to DISPLAY when the primary asset + // type is not HTML_IMAGE. ClickTags []*ClickTag `json:"clickTags,omitempty"` - // CommercialId: Industry standard ID assigned to creative for reach and - // frequency. Applicable to the following creative types: all - // INSTREAM_VIDEO and all VPAID. + // frequency. Applicable to the following creative types: all INSTREAM_VIDEO + // and all VPAID. CommercialId string `json:"commercialId,omitempty"` - - // CompanionCreatives: List of companion creatives assigned to an - // in-Stream videocreative. Acceptable values include IDs of existing - // flash and image creatives. Applicable to the following creative - // types: all VPAID and all INSTREAM_VIDEO with dynamicAssetSelection - // set to false. + // CompanionCreatives: List of companion creatives assigned to an in-Stream + // videocreative. Acceptable values include IDs of existing flash and image + // creatives. Applicable to the following creative types: all VPAID and all + // INSTREAM_VIDEO with dynamicAssetSelection set to false. CompanionCreatives googleapi.Int64s `json:"companionCreatives,omitempty"` - - // Compatibility: Compatibilities associated with this creative. This is - // a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to - // rendering either on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing - // creatives may have these compatibilities since new creatives will - // either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. Applicable to all creative types. + // Compatibility: Compatibilities associated with this creative. This is a + // read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either + // on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. Only pre-existing creatives may have these compatibilities + // since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL + // instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // developed with the VAST standard. Applicable to all creative + // types. // // Acceptable values are: // - "APP" @@ -3742,224 +3116,172 @@ type Creative struct { // "DISPLAY_INTERSTITIAL" // "IN_STREAM_VIDEO" Compatibility []string `json:"compatibility,omitempty"` - - // ConvertFlashToHtml5: Whether Flash assets associated with the - // creative need to be automatically converted to HTML5. This flag is - // enabled by default and users can choose to disable it if they don't - // want the system to generate and use HTML5 asset for this creative. - // Applicable to the following creative type: FLASH_INPAGE. Applicable - // to DISPLAY when the primary asset type is not HTML_IMAGE. + // ConvertFlashToHtml5: Whether Flash assets associated with the creative need + // to be automatically converted to HTML5. This flag is enabled by default and + // users can choose to disable it if they don't want the system to generate and + // use HTML5 asset for this creative. Applicable to the following creative + // type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. ConvertFlashToHtml5 bool `json:"convertFlashToHtml5,omitempty"` - - // CounterCustomEvents: List of counter events configured for the - // creative. For DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. + // CounterCustomEvents: List of counter events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"` - // CreativeAssetSelection: Required if dynamicAssetSelection is true. CreativeAssetSelection *CreativeAssetSelection `json:"creativeAssetSelection,omitempty"` - - // CreativeAssets: Assets associated with a creative. Applicable to all - // but the following creative types: INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT + // CreativeAssets: Assets associated with a creative. Applicable to all but the + // following creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, + // and REDIRECT CreativeAssets []*CreativeAsset `json:"creativeAssets,omitempty"` - - // CreativeFieldAssignments: Creative field assignments for this - // creative. Applicable to all creative types. + // CreativeFieldAssignments: Creative field assignments for this creative. + // Applicable to all creative types. CreativeFieldAssignments []*CreativeFieldAssignment `json:"creativeFieldAssignments,omitempty"` - - // CustomKeyValues: Custom key-values for a Rich Media creative. - // Key-values let you customize the creative settings of a Rich Media ad - // running on your site without having to contact the advertiser. You - // can use key-values to dynamically change the look or functionality of - // a creative. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // CustomKeyValues: Custom key-values for a Rich Media creative. Key-values let + // you customize the creative settings of a Rich Media ad running on your site + // without having to contact the advertiser. You can use key-values to + // dynamically change the look or functionality of a creative. Applicable to + // the following creative types: all RICH_MEDIA, and all VPAID. CustomKeyValues []string `json:"customKeyValues,omitempty"` - - // DynamicAssetSelection: Set this to true to enable the use of rules to - // target individual assets in this creative. When set to true - // creativeAssetSelection must be set. This also controls asset-level - // companions. When this is true, companion creatives should be assigned - // to creative assets. Learn more. Applicable to INSTREAM_VIDEO - // creatives. + // DynamicAssetSelection: Set this to true to enable the use of rules to target + // individual assets in this creative. When set to true creativeAssetSelection + // must be set. This also controls asset-level companions. When this is true, + // companion creatives should be assigned to creative assets. Learn more. + // Applicable to INSTREAM_VIDEO creatives. DynamicAssetSelection bool `json:"dynamicAssetSelection,omitempty"` - - // ExitCustomEvents: List of exit events configured for the creative. - // For DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags, For DISPLAY, an event is also - // created from the backupImageReportingLabel. Applicable to the - // following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and - // all VPAID. Applicable to DISPLAY when the primary asset type is not - // HTML_IMAGE. + // ExitCustomEvents: List of exit events configured for the creative. For + // DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only and + // auto-generated from clickTags, For DISPLAY, an event is also created from + // the backupImageReportingLabel. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset type is not HTML_IMAGE. ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"` - - // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF - // file communicate with either Flash Player or the program hosting - // Flash Player, such as a web browser. This is only triggered if - // allowScriptAccess field is true. Applicable to the following creative - // types: FLASH_INPAGE. + // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF file + // communicate with either Flash Player or the program hosting Flash Player, + // such as a web browser. This is only triggered if allowScriptAccess field is + // true. Applicable to the following creative types: FLASH_INPAGE. FsCommand *FsCommand `json:"fsCommand,omitempty"` - // HtmlCode: HTML code for the creative. This is a required field when - // applicable. This field is ignored if htmlCodeLocked is true. - // Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, - // and HTML5_BANNER, and all RICH_MEDIA. + // applicable. This field is ignored if htmlCodeLocked is true. Applicable to + // the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, + // and all RICH_MEDIA. HtmlCode string `json:"htmlCode,omitempty"` - - // HtmlCodeLocked: Whether HTML code is DCM-generated or manually - // entered. Set to true to ignore changes to htmlCode. Applicable to the - // following creative types: FLASH_INPAGE and HTML5_BANNER. + // HtmlCodeLocked: Whether HTML code is DCM-generated or manually entered. Set + // to true to ignore changes to htmlCode. Applicable to the following creative + // types: FLASH_INPAGE and HTML5_BANNER. HtmlCodeLocked bool `json:"htmlCodeLocked,omitempty"` - // Id: ID of this creative. This is a read-only, auto-generated field. // Applicable to all creative types. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this creative. This - // is a read-only field. Applicable to all creative types. + // IdDimensionValue: Dimension value for the ID of this creative. This is a + // read-only field. Applicable to all creative types. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creative". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creative". Kind string `json:"kind,omitempty"` - // LastModifiedInfo: Creative last modification information. This is a // read-only field. Applicable to all creative types. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // LatestTraffickedCreativeId: Latest Studio trafficked creative ID - // associated with rich media and VPAID creatives. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // LatestTraffickedCreativeId: Latest Studio trafficked creative ID associated + // with rich media and VPAID creatives. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA, and all VPAID. LatestTraffickedCreativeId int64 `json:"latestTraffickedCreativeId,omitempty,string"` - - // Name: Name of the creative. This is a required field and must be less - // than 256 characters long. Applicable to all creative types. + // Name: Name of the creative. This is a required field and must be less than + // 256 characters long. Applicable to all creative types. Name string `json:"name,omitempty"` - - // OverrideCss: Override CSS value for rich media creatives. Applicable - // to the following creative types: all RICH_MEDIA. + // OverrideCss: Override CSS value for rich media creatives. Applicable to the + // following creative types: all RICH_MEDIA. OverrideCss string `json:"overrideCss,omitempty"` - - // ProgressOffset: Amount of time to play the video before counting a - // view. Applicable to the following creative types: all INSTREAM_VIDEO. + // ProgressOffset: Amount of time to play the video before counting a view. + // Applicable to the following creative types: all INSTREAM_VIDEO. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // RedirectUrl: URL of hosted image or hosted video or another ad tag. - // For INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video - // redirect URL. The standard for a VAST (Video Ad Serving Template) ad - // response allows for a redirect link to another VAST 2.0 or 3.0 call. - // This is a required field when applicable. Applicable to the following - // creative types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT + // RedirectUrl: URL of hosted image or hosted video or another ad tag. For + // INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. + // The standard for a VAST (Video Ad Serving Template) ad response allows for a + // redirect link to another VAST 2.0 or 3.0 call. This is a required field when + // applicable. Applicable to the following creative types: DISPLAY_REDIRECT, + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and + // INSTREAM_VIDEO_REDIRECT RedirectUrl string `json:"redirectUrl,omitempty"` - - // RenderingId: ID of current rendering version. This is a read-only - // field. Applicable to all creative types. + // RenderingId: ID of current rendering version. This is a read-only field. + // Applicable to all creative types. RenderingId int64 `json:"renderingId,omitempty,string"` - - // RenderingIdDimensionValue: Dimension value for the rendering ID of - // this creative. This is a read-only field. Applicable to all creative - // types. + // RenderingIdDimensionValue: Dimension value for the rendering ID of this + // creative. This is a read-only field. Applicable to all creative types. RenderingIdDimensionValue *DimensionValue `json:"renderingIdDimensionValue,omitempty"` - - // RequiredFlashPluginVersion: The minimum required Flash plugin version - // for this creative. For example, 11.2.202.235. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // RequiredFlashPluginVersion: The minimum required Flash plugin version for + // this creative. For example, 11.2.202.235. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA, and all VPAID. RequiredFlashPluginVersion string `json:"requiredFlashPluginVersion,omitempty"` - // RequiredFlashVersion: The internal Flash version for this creative as - // calculated by DoubleClick Studio. This is a read-only field. - // Applicable to the following creative types: FLASH_INPAGE all - // RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // calculated by DoubleClick Studio. This is a read-only field. Applicable to + // the following creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. + // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. RequiredFlashVersion int64 `json:"requiredFlashVersion,omitempty"` - - // Size: Size associated with this creative. When inserting or updating - // a creative either the size ID field or size width and height fields - // can be used. This is a required field when applicable; however for - // IMAGE, FLASH_INPAGE creatives, and for DISPLAY creatives with a - // primary asset of type HTML_IMAGE, if left blank, this field will be - // automatically set using the actual size of the associated image - // assets. Applicable to the following creative types: DISPLAY, - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all - // RICH_MEDIA. + // Size: Size associated with this creative. When inserting or updating a + // creative either the size ID field or size width and height fields can be + // used. This is a required field when applicable; however for IMAGE, + // FLASH_INPAGE creatives, and for DISPLAY creatives with a primary asset of + // type HTML_IMAGE, if left blank, this field will be automatically set using + // the actual size of the associated image assets. Applicable to the following + // creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, + // IMAGE, and all RICH_MEDIA. Size *Size `json:"size,omitempty"` - - // SkipOffset: Amount of time to play the video before the skip button - // appears. Applicable to the following creative types: all - // INSTREAM_VIDEO. + // SkipOffset: Amount of time to play the video before the skip button appears. + // Applicable to the following creative types: all INSTREAM_VIDEO. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can choose to skip the creative. - // Applicable to the following creative types: all INSTREAM_VIDEO and - // all VPAID. + // Skippable: Whether the user can choose to skip the creative. Applicable to + // the following creative types: all INSTREAM_VIDEO and all VPAID. Skippable bool `json:"skippable,omitempty"` - - // SslCompliant: Whether the creative is SSL-compliant. This is a - // read-only field. Applicable to all creative types. + // SslCompliant: Whether the creative is SSL-compliant. This is a read-only + // field. Applicable to all creative types. SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslOverride: Whether creative should be treated as SSL compliant even - // if the system scan shows it's not. Applicable to all creative types. + // SslOverride: Whether creative should be treated as SSL compliant even if the + // system scan shows it's not. Applicable to all creative types. SslOverride bool `json:"sslOverride,omitempty"` - - // StudioAdvertiserId: Studio advertiser ID associated with rich media - // and VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioAdvertiserId: Studio advertiser ID associated with rich media and + // VPAID creatives. This is a read-only field. Applicable to the following + // creative types: all RICH_MEDIA, and all VPAID. StudioAdvertiserId int64 `json:"studioAdvertiserId,omitempty,string"` - - // StudioCreativeId: Studio creative ID associated with rich media and - // VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioCreativeId: Studio creative ID associated with rich media and VPAID + // creatives. This is a read-only field. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. StudioCreativeId int64 `json:"studioCreativeId,omitempty,string"` - - // StudioTraffickedCreativeId: Studio trafficked creative ID associated - // with rich media and VPAID creatives. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // StudioTraffickedCreativeId: Studio trafficked creative ID associated with + // rich media and VPAID creatives. This is a read-only field. Applicable to the + // following creative types: all RICH_MEDIA, and all VPAID. StudioTraffickedCreativeId int64 `json:"studioTraffickedCreativeId,omitempty,string"` - - // SubaccountId: Subaccount ID of this creative. This field, if left - // unset, will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // SubaccountId: Subaccount ID of this creative. This field, if left unset, + // will be auto-generated for both insert and update operations. Applicable to + // all creative types. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record - // backup image impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record backup + // image impressions. Applicable to the following creative types: all + // RICH_MEDIA. ThirdPartyBackupImageImpressionsUrl string `json:"thirdPartyBackupImageImpressionsUrl,omitempty"` - - // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record - // rich media impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record rich media + // impressions. Applicable to the following creative types: all RICH_MEDIA. ThirdPartyRichMediaImpressionsUrl string `json:"thirdPartyRichMediaImpressionsUrl,omitempty"` - - // ThirdPartyUrls: Third-party URLs for tracking in-stream video - // creative events. Applicable to the following creative types: all - // INSTREAM_VIDEO and all VPAID. + // ThirdPartyUrls: Third-party URLs for tracking in-stream video creative + // events. Applicable to the following creative types: all INSTREAM_VIDEO and + // all VPAID. ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"` - - // TimerCustomEvents: List of timer events configured for the creative. - // For DISPLAY_IMAGE_GALLERY creatives, these are read-only and - // auto-generated from clickTags. Applicable to the following creative - // types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset is not HTML_IMAGE. + // TimerCustomEvents: List of timer events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset is not HTML_IMAGE. TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"` - - // TotalFileSize: Combined size of all creative assets. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // TotalFileSize: Combined size of all creative assets. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. TotalFileSize int64 `json:"totalFileSize,omitempty,string"` - - // Type: Type of this creative. This is a required field. Applicable to - // all creative types. + // Type: Type of this creative. This is a required field. Applicable to all + // creative types. // - // Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for - // existing creatives. New creatives should use DISPLAY as a replacement - // for these types. + // Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing + // creatives. New creatives should use DISPLAY as a replacement for these + // types. // // Possible values: // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" @@ -3987,51 +3309,41 @@ type Creative struct { // "VPAID_LINEAR_VIDEO" // "VPAID_NON_LINEAR_VIDEO" Type string `json:"type,omitempty"` - - // Version: The version number helps you keep track of multiple versions - // of your creative in your reports. The version number will always be + // Version: The version number helps you keep track of multiple versions of + // your creative in your reports. The version number will always be // auto-generated during insert operations to start at 1. For tracking - // creatives the version cannot be incremented and will always remain at - // 1. For all other creative types the version can be incremented only - // by 1 during update operations. In addition, the version will be - // automatically incremented by 1 when undergoing Rich Media creative - // merging. Applicable to all creative types. + // creatives the version cannot be incremented and will always remain at 1. For + // all other creative types the version can be incremented only by 1 during + // update operations. In addition, the version will be automatically + // incremented by 1 when undergoing Rich Media creative merging. Applicable to + // all creative types. Version int64 `json:"version,omitempty"` - - // VideoDescription: Description of the video ad. Applicable to the - // following creative types: all INSTREAM_VIDEO and all VPAID. + // VideoDescription: Description of the video ad. Applicable to the following + // creative types: all INSTREAM_VIDEO and all VPAID. VideoDescription string `json:"videoDescription,omitempty"` - - // VideoDuration: Creative video duration in seconds. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO, all RICH_MEDIA, and all VPAID. + // VideoDuration: Creative video duration in seconds. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO, all + // RICH_MEDIA, and all VPAID. VideoDuration float64 `json:"videoDuration,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Creative) MarshalJSON() ([]byte, error) { +func (s Creative) MarshalJSON() ([]byte, error) { type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Creative) UnmarshalJSON(data []byte) error { @@ -4050,19 +3362,16 @@ func (s *Creative) UnmarshalJSON(data []byte) error { // CreativeAsset: Creative Asset. type CreativeAsset struct { - // ActionScript3: Whether ActionScript3 is enabled for the flash asset. - // This is a read-only field. Applicable to the following creative type: - // FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is - // not HTML_IMAGE. + // ActionScript3: Whether ActionScript3 is enabled for the flash asset. This is + // a read-only field. Applicable to the following creative type: FLASH_INPAGE. + // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ActionScript3 bool `json:"actionScript3,omitempty"` - - // Active: Whether the video asset is active. This is a read-only field - // for VPAID_NON_LINEAR_VIDEO assets. Applicable to the following - // creative types: INSTREAM_VIDEO and all VPAID. + // Active: Whether the video asset is active. This is a read-only field for + // VPAID_NON_LINEAR_VIDEO assets. Applicable to the following creative types: + // INSTREAM_VIDEO and all VPAID. Active bool `json:"active,omitempty"` - - // Alignment: Possible alignments for an asset. This is a read-only - // field. Applicable to the following creative types: + // Alignment: Possible alignments for an asset. This is a read-only field. + // Applicable to the following creative types: // RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. // // Possible values: @@ -4071,9 +3380,8 @@ type CreativeAsset struct { // "ALIGNMENT_RIGHT" // "ALIGNMENT_TOP" Alignment string `json:"alignment,omitempty"` - - // ArtworkType: Artwork type of rich media creative. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // ArtworkType: Artwork type of rich media creative. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -4081,24 +3389,19 @@ type CreativeAsset struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // AssetIdentifier: Identifier of this asset. This is the same - // identifier returned during creative asset insert operation. This is a - // required field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // AssetIdentifier: Identifier of this asset. This is the same identifier + // returned during creative asset insert operation. This is a required field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // BackupImageExit: Exit event configured for the backup image. - // Applicable to the following creative types: all RICH_MEDIA. + // BackupImageExit: Exit event configured for the backup image. Applicable to + // the following creative types: all RICH_MEDIA. BackupImageExit *CreativeCustomEvent `json:"backupImageExit,omitempty"` - - // BitRate: Detected bit-rate for video asset. This is a read-only - // field. Applicable to the following creative types: INSTREAM_VIDEO and - // all VPAID. + // BitRate: Detected bit-rate for video asset. This is a read-only field. + // Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. BitRate int64 `json:"bitRate,omitempty"` - - // ChildAssetType: Rich media child asset type. This is a read-only - // field. Applicable to the following creative types: all VPAID. + // ChildAssetType: Rich media child asset type. This is a read-only field. + // Applicable to the following creative types: all VPAID. // // Possible values: // "CHILD_ASSET_TYPE_DATA" @@ -4106,30 +3409,26 @@ type CreativeAsset struct { // "CHILD_ASSET_TYPE_IMAGE" // "CHILD_ASSET_TYPE_VIDEO" ChildAssetType string `json:"childAssetType,omitempty"` - - // CollapsedSize: Size of an asset when collapsed. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA and - // all VPAID. Additionally, applicable to assets whose displayType is + // CollapsedSize: Size of an asset when collapsed. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA and all VPAID. + // Additionally, applicable to assets whose displayType is // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. CollapsedSize *Size `json:"collapsedSize,omitempty"` - - // CompanionCreativeIds: List of companion creatives assigned to an - // in-stream video creative asset. Acceptable values include IDs of - // existing flash and image creatives. Applicable to INSTREAM_VIDEO - // creative type with dynamicAssetSelection set to true. + // CompanionCreativeIds: List of companion creatives assigned to an in-stream + // video creative asset. Acceptable values include IDs of existing flash and + // image creatives. Applicable to INSTREAM_VIDEO creative type with + // dynamicAssetSelection set to true. CompanionCreativeIds googleapi.Int64s `json:"companionCreativeIds,omitempty"` - - // CustomStartTimeValue: Custom start time in seconds for making the - // asset visible. Applicable to the following creative types: all - // RICH_MEDIA. Value must be greater than or equal to 0. + // CustomStartTimeValue: Custom start time in seconds for making the asset + // visible. Applicable to the following creative types: all RICH_MEDIA. Value + // must be greater than or equal to 0. CustomStartTimeValue int64 `json:"customStartTimeValue,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by DCM. Feature dependencies are features that a - // browser must be able to support in order to render your HTML5 - // creative correctly. This is a read-only, auto-generated field. - // Applicable to the following creative types: HTML5_BANNER. Applicable - // to DISPLAY when the primary asset type is not HTML_IMAGE. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by DCM. Feature dependencies are features that a browser must + // be able to support in order to render your HTML5 creative correctly. This is + // a read-only, auto-generated field. Applicable to the following creative + // types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is + // not HTML_IMAGE. // // Possible values: // "APPLICATION_CACHE" @@ -4199,9 +3498,8 @@ type CreativeAsset struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // DisplayType: Type of rich media asset. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA. + // DisplayType: Type of rich media asset. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DISPLAY_TYPE_BACKDROP" @@ -4215,147 +3513,117 @@ type CreativeAsset struct { // "ASSET_DISPLAY_TYPE_VPAID_LINEAR" // "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" DisplayType string `json:"displayType,omitempty"` - // Duration: Duration in seconds for which an asset will be displayed. // Applicable to the following creative types: INSTREAM_VIDEO and // VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. Duration int64 `json:"duration,omitempty"` - - // DurationType: Duration type for which an asset will be displayed. - // Applicable to the following creative types: all RICH_MEDIA. + // DurationType: Duration type for which an asset will be displayed. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DURATION_TYPE_AUTO" // "ASSET_DURATION_TYPE_CUSTOM" // "ASSET_DURATION_TYPE_NONE" DurationType string `json:"durationType,omitempty"` - - // ExpandedDimension: Detected expanded dimension for video asset. This - // is a read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ExpandedDimension: Detected expanded dimension for video asset. This is a + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO + // and all VPAID. ExpandedDimension *Size `json:"expandedDimension,omitempty"` - - // FileSize: File size associated with this creative asset. This is a - // read-only field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // FileSize: File size associated with this creative asset. This is a read-only + // field. Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. FileSize int64 `json:"fileSize,omitempty,string"` - // FlashVersion: Flash version of the asset. This is a read-only field. - // Applicable to the following creative types: FLASH_INPAGE, all - // RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Applicable to the following creative types: FLASH_INPAGE, all RICH_MEDIA, + // and all VPAID. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. FlashVersion int64 `json:"flashVersion,omitempty"` - // HideFlashObjects: Whether to hide Flash objects flag for an asset. // Applicable to the following creative types: all RICH_MEDIA. HideFlashObjects bool `json:"hideFlashObjects,omitempty"` - - // HideSelectionBoxes: Whether to hide selection boxes flag for an - // asset. Applicable to the following creative types: all RICH_MEDIA. + // HideSelectionBoxes: Whether to hide selection boxes flag for an asset. + // Applicable to the following creative types: all RICH_MEDIA. HideSelectionBoxes bool `json:"hideSelectionBoxes,omitempty"` - - // HorizontallyLocked: Whether the asset is horizontally locked. This is - // a read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // HorizontallyLocked: Whether the asset is horizontally locked. This is a + // read-only field. Applicable to the following creative types: all RICH_MEDIA. HorizontallyLocked bool `json:"horizontallyLocked,omitempty"` - - // Id: Numeric ID of this creative asset. This is a required field and - // should not be modified. Applicable to all but the following creative - // types: all REDIRECT and TRACKING_TEXT. + // Id: Numeric ID of this creative asset. This is a required field and should + // not be modified. Applicable to all but the following creative types: all + // REDIRECT and TRACKING_TEXT. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of the asset. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // MimeType: Detected MIME type for video asset. This is a read-only - // field. Applicable to the following creative types: INSTREAM_VIDEO and - // all VPAID. + // MimeType: Detected MIME type for video asset. This is a read-only field. + // Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. MimeType string `json:"mimeType,omitempty"` - - // Offset: Offset position for an asset in collapsed mode. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA and all VPAID. Additionally, only applicable to assets - // whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or - // ASSET_DISPLAY_TYPE_PEEL_DOWN. + // Offset: Offset position for an asset in collapsed mode. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA and all + // VPAID. Additionally, only applicable to assets whose displayType is + // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. Offset *OffsetPosition `json:"offset,omitempty"` - - // OriginalBackup: Whether the backup asset is original or changed by - // the user in DCM. Applicable to the following creative types: all - // RICH_MEDIA. + // OriginalBackup: Whether the backup asset is original or changed by the user + // in DCM. Applicable to the following creative types: all RICH_MEDIA. OriginalBackup bool `json:"originalBackup,omitempty"` - - // Position: Offset position for an asset. Applicable to the following - // creative types: all RICH_MEDIA. + // Position: Offset position for an asset. Applicable to the following creative + // types: all RICH_MEDIA. Position *OffsetPosition `json:"position,omitempty"` - - // PositionLeftUnit: Offset left unit for an asset. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // PositionLeftUnit: Offset left unit for an asset. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionLeftUnit string `json:"positionLeftUnit,omitempty"` - - // PositionTopUnit: Offset top unit for an asset. This is a read-only - // field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. - // Applicable to the following creative types: all RICH_MEDIA. + // PositionTopUnit: Offset top unit for an asset. This is a read-only field if + // the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the + // following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionTopUnit string `json:"positionTopUnit,omitempty"` - - // ProgressiveServingUrl: Progressive URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ProgressiveServingUrl: Progressive URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. ProgressiveServingUrl string `json:"progressiveServingUrl,omitempty"` - - // Pushdown: Whether the asset pushes down other content. Applicable to - // the following creative types: all RICH_MEDIA. Additionally, only - // applicable when the asset offsets are 0, the collapsedSize.width - // matches size.width, and the collapsedSize.height is less than - // size.height. + // Pushdown: Whether the asset pushes down other content. Applicable to the + // following creative types: all RICH_MEDIA. Additionally, only applicable when + // the asset offsets are 0, the collapsedSize.width matches size.width, and the + // collapsedSize.height is less than size.height. Pushdown bool `json:"pushdown,omitempty"` - - // PushdownDuration: Pushdown duration in seconds for an asset. - // Applicable to the following creative types: all - // RICH_MEDIA.Additionally, only applicable when the asset pushdown - // field is true, the offsets are 0, the collapsedSize.width matches - // size.width, and the collapsedSize.height is less than size.height. - // Acceptable values are 0 to 9.99, inclusive. + // PushdownDuration: Pushdown duration in seconds for an asset. Applicable to + // the following creative types: all RICH_MEDIA.Additionally, only applicable + // when the asset pushdown field is true, the offsets are 0, the + // collapsedSize.width matches size.width, and the collapsedSize.height is less + // than size.height. Acceptable values are 0 to 9.99, inclusive. PushdownDuration float64 `json:"pushdownDuration,omitempty"` - - // Role: Role of the asset in relation to creative. Applicable to all - // but the following creative types: all REDIRECT and TRACKING_TEXT. - // This is a required field. + // Role: Role of the asset in relation to creative. Applicable to all but the + // following creative types: all REDIRECT and TRACKING_TEXT. This is a required + // field. // PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, - // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple - // primary assets), and all VPAID creatives. - // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, - // and all VPAID creatives. Applicable to DISPLAY when the primary asset - // type is not HTML_IMAGE. - // ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE - // creatives. - // OTHER refers to assets from sources other than DCM, such as Studio - // uploaded assets, applicable to all RICH_MEDIA and all VPAID - // creatives. - // PARENT_VIDEO refers to videos uploaded by the user in DCM and is - // applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO - // creatives. - // TRANSCODED_VIDEO refers to videos transcoded by DCM from PARENT_VIDEO - // assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary + // assets), and all VPAID creatives. + // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all + // VPAID creatives. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. + // ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. + // OTHER refers to assets from sources other than DCM, such as Studio uploaded + // assets, applicable to all RICH_MEDIA and all VPAID creatives. + // PARENT_VIDEO refers to videos uploaded by the user in DCM and is applicable + // to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. + // TRANSCODED_VIDEO refers to videos transcoded by DCM from PARENT_VIDEO assets + // and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO // creatives. - // ALTERNATE_VIDEO refers to the DCM representation of child asset - // videos from Studio, and is applicable to VPAID_LINEAR_VIDEO - // creatives. These cannot be added or removed within DCM. + // ALTERNATE_VIDEO refers to the DCM representation of child asset videos from + // Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be + // added or removed within DCM. // For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and - // ALTERNATE_VIDEO assets that are marked active serve as backup in case - // the VPAID creative cannot be served. Only PARENT_VIDEO assets can be - // added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO - // creative. + // ALTERNATE_VIDEO assets that are marked active serve as backup in case the + // VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or + // removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. // // Possible values: // "ADDITIONAL_FLASH" @@ -4367,49 +3635,40 @@ type CreativeAsset struct { // "PRIMARY" // "TRANSCODED_VIDEO" Role string `json:"role,omitempty"` - - // Size: Size associated with this creative asset. This is a required - // field when applicable; however for IMAGE and FLASH_INPAGE, creatives - // if left blank, this field will be automatically set using the actual - // size of the associated image asset. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, - // IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Size: Size associated with this creative asset. This is a required field + // when applicable; however for IMAGE and FLASH_INPAGE, creatives if left + // blank, this field will be automatically set using the actual size of the + // associated image asset. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all + // RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether the asset is SSL-compliant. This is a read-only - // field. Applicable to all but the following creative types: all - // REDIRECT and TRACKING_TEXT. + // SslCompliant: Whether the asset is SSL-compliant. This is a read-only field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTimeType: Initial wait time type before making the asset - // visible. Applicable to the following creative types: all RICH_MEDIA. + // StartTimeType: Initial wait time type before making the asset visible. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_START_TIME_TYPE_CUSTOM" // "ASSET_START_TIME_TYPE_NONE" StartTimeType string `json:"startTimeType,omitempty"` - - // StreamingServingUrl: Streaming URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // StreamingServingUrl: Streaming URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. StreamingServingUrl string `json:"streamingServingUrl,omitempty"` - - // Transparency: Whether the asset is transparent. Applicable to the - // following creative types: all RICH_MEDIA. Additionally, only - // applicable to HTML5 assets. + // Transparency: Whether the asset is transparent. Applicable to the following + // creative types: all RICH_MEDIA. Additionally, only applicable to HTML5 + // assets. Transparency bool `json:"transparency,omitempty"` - // VerticallyLocked: Whether the asset is vertically locked. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // read-only field. Applicable to the following creative types: all RICH_MEDIA. VerticallyLocked bool `json:"verticallyLocked,omitempty"` - - // VideoDuration: Detected video duration for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // VideoDuration: Detected video duration for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. VideoDuration float64 `json:"videoDuration,omitempty"` - // WindowMode: Window mode options for flash assets. Applicable to the // following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, // RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and @@ -4420,43 +3679,34 @@ type CreativeAsset struct { // "TRANSPARENT" // "WINDOW" WindowMode string `json:"windowMode,omitempty"` - - // ZIndex: zIndex value of an asset. Applicable to the following - // creative types: all RICH_MEDIA.Additionally, only applicable to - // assets whose displayType is NOT one of the following types: - // ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable - // values are -999999999 to 999999999, inclusive. + // ZIndex: zIndex value of an asset. Applicable to the following creative + // types: all RICH_MEDIA.Additionally, only applicable to assets whose + // displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or + // ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, + // inclusive. ZIndex int64 `json:"zIndex,omitempty"` - - // ZipFilename: File name of zip file. This is a read-only field. - // Applicable to the following creative types: HTML5_BANNER. + // ZipFilename: File name of zip file. This is a read-only field. Applicable to + // the following creative types: HTML5_BANNER. ZipFilename string `json:"zipFilename,omitempty"` - - // ZipFilesize: Size of zip file. This is a read-only field. Applicable - // to the following creative types: HTML5_BANNER. + // ZipFilesize: Size of zip file. This is a read-only field. Applicable to the + // following creative types: HTML5_BANNER. ZipFilesize string `json:"zipFilesize,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionScript3") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionScript3") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionScript3") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAsset) MarshalJSON() ([]byte, error) { +func (s CreativeAsset) MarshalJSON() ([]byte, error) { type NoMethod CreativeAsset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CreativeAsset) UnmarshalJSON(data []byte) error { @@ -4477,15 +3727,13 @@ func (s *CreativeAsset) UnmarshalJSON(data []byte) error { // CreativeAssetId: Creative Asset ID. type CreativeAssetId struct { - // Name: Name of the creative asset. This is a required field while - // inserting an asset. After insertion, this assetIdentifier is used to - // identify the uploaded asset. Characters in the name must be - // alphanumeric or one of the following: ".-_ ". Spaces are allowed. + // Name: Name of the creative asset. This is a required field while inserting + // an asset. After insertion, this assetIdentifier is used to identify the + // uploaded asset. Characters in the name must be alphanumeric or one of the + // following: ".-_ ". Spaces are allowed. Name string `json:"name,omitempty"` - - // Type: Type of asset to upload. This is a required field. FLASH and - // IMAGE are no longer supported for new uploads. All image assets - // should use HTML_IMAGE. + // Type: Type of asset to upload. This is a required field. FLASH and IMAGE are + // no longer supported for new uploads. All image assets should use HTML_IMAGE. // // Possible values: // "FLASH" @@ -4494,46 +3742,37 @@ type CreativeAssetId struct { // "IMAGE" // "VIDEO" Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetId) MarshalJSON() ([]byte, error) { +func (s CreativeAssetId) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetMetadata: CreativeAssets contains properties of a -// creative asset file which will be uploaded or has already been -// uploaded. Refer to the creative sample code for how to upload assets -// and insert a creative. +// CreativeAssetMetadata: CreativeAssets contains properties of a creative +// asset file which will be uploaded or has already been uploaded. Refer to the +// creative sample code for how to upload assets and insert a creative. type CreativeAssetMetadata struct { // AssetIdentifier: ID of the creative asset. This is a required field. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // ClickTags: List of detected click tags for assets. This is a - // read-only auto-generated field. + // ClickTags: List of detected click tags for assets. This is a read-only + // auto-generated field. ClickTags []*ClickTag `json:"clickTags,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by DCM. Feature dependencies are features that a - // browser must be able to support in order to render your HTML5 - // creative correctly. This is a read-only, auto-generated field. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by DCM. Feature dependencies are features that a browser must + // be able to support in order to render your HTML5 creative correctly. This is + // a read-only, auto-generated field. // // Possible values: // "APPLICATION_CACHE" @@ -4603,22 +3842,16 @@ type CreativeAssetMetadata struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // Id: Numeric ID of the asset. This is a read-only, auto-generated - // field. + // Id: Numeric ID of the asset. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the numeric ID of the asset. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the numeric ID of the asset. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeAssetMetadata". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeAssetMetadata". Kind string `json:"kind,omitempty"` - - // WarnedValidationRules: Rules validated during code generation that - // generated a warning. This is a read-only, auto-generated - // field. + // WarnedValidationRules: Rules validated during code generation that generated + // a warning. This is a read-only, auto-generated field. // // Possible values are: // - "ADMOB_REFERENCED" @@ -4673,110 +3906,83 @@ type CreativeAssetMetadata struct { // "ZIP_INVALID" WarnedValidationRules []string `json:"warnedValidationRules,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AssetIdentifier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetIdentifier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssetIdentifier") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetMetadata) MarshalJSON() ([]byte, error) { +func (s CreativeAssetMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetSelection: Encapsulates the list of rules for asset -// selection and a default asset in case none of the rules match. -// Applicable to INSTREAM_VIDEO creatives. +// CreativeAssetSelection: Encapsulates the list of rules for asset selection +// and a default asset in case none of the rules match. Applicable to +// INSTREAM_VIDEO creatives. type CreativeAssetSelection struct { - // DefaultAssetId: A creativeAssets[].id. This should refer to one of - // the parent assets in this creative, and will be served if none of the - // rules match. This is a required field. + // DefaultAssetId: A creativeAssets[].id. This should refer to one of the + // parent assets in this creative, and will be served if none of the rules + // match. This is a required field. DefaultAssetId int64 `json:"defaultAssetId,omitempty,string"` - - // Rules: Rules determine which asset will be served to a viewer. Rules - // will be evaluated in the order in which they are stored in this list. - // This list must contain at least one rule. Applicable to - // INSTREAM_VIDEO creatives. + // Rules: Rules determine which asset will be served to a viewer. Rules will be + // evaluated in the order in which they are stored in this list. This list must + // contain at least one rule. Applicable to INSTREAM_VIDEO creatives. Rules []*Rule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultAssetId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultAssetId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DefaultAssetId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetSelection) MarshalJSON() ([]byte, error) { +func (s CreativeAssetSelection) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetSelection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeAssignment: Creative Assignment. type CreativeAssignment struct { - // Active: Whether this creative assignment is active. When true, the - // creative will be included in the ad's rotation. + // Active: Whether this creative assignment is active. When true, the creative + // will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // ApplyEventTags: Whether applicable event tags should fire when this - // creative assignment is rendered. If this value is unset when the ad - // is inserted or updated, it will default to true for all creative - // types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, - // and INSTREAM_VIDEO. + // ApplyEventTags: Whether applicable event tags should fire when this creative + // assignment is rendered. If this value is unset when the ad is inserted or + // updated, it will default to true for all creative types EXCEPT for + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. ApplyEventTags bool `json:"applyEventTags,omitempty"` - // ClickThroughUrl: Click-through URL of the creative assignment. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CompanionCreativeOverrides: Companion creative overrides for this - // creative assignment. Applicable to video ads. + // CompanionCreativeOverrides: Companion creative overrides for this creative + // assignment. Applicable to video ads. CompanionCreativeOverrides []*CompanionClickThroughOverride `json:"companionCreativeOverrides,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this - // creative assignment. Only one assignment per creative group number is - // allowed for a maximum of two assignments. + // CreativeGroupAssignments: Creative group assignments for this creative + // assignment. Only one assignment per creative group number is allowed for a + // maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeId: ID of the creative to be assigned. This is a required - // field. + // CreativeId: ID of the creative to be assigned. This is a required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // CreativeIdDimensionValue: Dimension value for the ID of the creative. - // This is a read-only, auto-generated field. + // CreativeIdDimensionValue: Dimension value for the ID of the creative. This + // is a read-only, auto-generated field. CreativeIdDimensionValue *DimensionValue `json:"creativeIdDimensionValue,omitempty"` - - // EndTime: Date and time that the assigned creative should stop - // serving. Must be later than the start time. + // EndTime: Date and time that the assigned creative should stop serving. Must + // be later than the start time. EndTime string `json:"endTime,omitempty"` - // RichMediaExitOverrides: Rich media exit overrides for this creative // assignment. // Applicable when the creative type is any of the following: @@ -4792,74 +3998,55 @@ type CreativeAssignment struct { // - VPAID_LINEAR // - VPAID_NON_LINEAR RichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"` - - // Sequence: Sequence number of the creative assignment, applicable when - // the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable - // values are 1 to 65535, inclusive. + // Sequence: Sequence number of the creative assignment, applicable when the + // rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 + // to 65535, inclusive. Sequence int64 `json:"sequence,omitempty"` - - // SslCompliant: Whether the creative to be assigned is SSL-compliant. - // This is a read-only field that is auto-generated when the ad is - // inserted or updated. + // SslCompliant: Whether the creative to be assigned is SSL-compliant. This is + // a read-only field that is auto-generated when the ad is inserted or updated. SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTime: Date and time that the assigned creative should start - // serving. + // StartTime: Date and time that the assigned creative should start serving. StartTime string `json:"startTime,omitempty"` - - // Weight: Weight of the creative assignment, applicable when the - // rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater - // than or equal to 1. + // Weight: Weight of the creative assignment, applicable when the rotation type + // is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeCustomEvent: Creative Custom Event. type CreativeCustomEvent struct { - // AdvertiserCustomEventId: Unique ID of this event used by DDM - // Reporting and Data Transfer. This is a read-only field. + // AdvertiserCustomEventId: Unique ID of this event used by DDM Reporting and + // Data Transfer. This is a read-only field. AdvertiserCustomEventId int64 `json:"advertiserCustomEventId,omitempty,string"` - // AdvertiserCustomEventName: User-entered name for the event. AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"` - - // AdvertiserCustomEventType: Type of the event. This is a read-only - // field. + // AdvertiserCustomEventType: Type of the event. This is a read-only field. // // Possible values: // "ADVERTISER_EVENT_COUNTER" // "ADVERTISER_EVENT_EXIT" // "ADVERTISER_EVENT_TIMER" AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"` - - // ArtworkLabel: Artwork label column, used to link events in DCM back - // to events in Studio. This is a required field and should not be - // modified after insertion. + // ArtworkLabel: Artwork label column, used to link events in DCM back to + // events in Studio. This is a required field and should not be modified after + // insertion. ArtworkLabel string `json:"artworkLabel,omitempty"` - - // ArtworkType: Artwork type used by the creative.This is a read-only - // field. + // ArtworkType: Artwork type used by the creative.This is a read-only field. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -4867,19 +4054,14 @@ type CreativeCustomEvent struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // ExitUrl: Exit URL of the event. This field is used only for exit - // events. + // ExitUrl: Exit URL of the event. This field is used only for exit events. ExitUrl string `json:"exitUrl,omitempty"` - - // Id: ID of this event. This is a required field and should not be - // modified after insertion. + // Id: ID of this event. This is a required field and should not be modified + // after insertion. Id int64 `json:"id,omitempty,string"` - - // PopupWindowProperties: Properties for rich media popup windows. This - // field is used only for exit events. + // PopupWindowProperties: Properties for rich media popup windows. This field + // is used only for exit events. PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"` - // TargetType: Target type used by the event. // // Possible values: @@ -4889,406 +4071,306 @@ type CreativeCustomEvent struct { // "TARGET_SELF" // "TARGET_TOP" TargetType string `json:"targetType,omitempty"` - - // VideoReportingId: Video reporting ID, used to differentiate multiple - // videos in a single creative. This is a read-only field. + // VideoReportingId: Video reporting ID, used to differentiate multiple videos + // in a single creative. This is a read-only field. VideoReportingId string `json:"videoReportingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdvertiserCustomEventId") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeCustomEvent) MarshalJSON() ([]byte, error) { +func (s CreativeCustomEvent) MarshalJSON() ([]byte, error) { type NoMethod CreativeCustomEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeField: Contains properties of a creative field. type CreativeField struct { - // AccountId: Account ID of this creative field. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative field. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative field. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative field. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Id: ID of this creative field. This is a read-only, auto-generated - // field. + // Id: ID of this creative field. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeField". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeField". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative field. This is a required field and must - // be less than 256 characters long and unique among creative fields of - // the same advertiser. + // Name: Name of this creative field. This is a required field and must be less + // than 256 characters long and unique among creative fields of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative field. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative field. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeField) MarshalJSON() ([]byte, error) { +func (s CreativeField) MarshalJSON() ([]byte, error) { type NoMethod CreativeField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldAssignment: Creative Field Assignment. type CreativeFieldAssignment struct { // CreativeFieldId: ID of the creative field. CreativeFieldId int64 `json:"creativeFieldId,omitempty,string"` - // CreativeFieldValueId: ID of the creative field value. CreativeFieldValueId int64 `json:"creativeFieldValueId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CreativeFieldId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeFieldAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValue: Contains properties of a creative field value. type CreativeFieldValue struct { - // Id: ID of this creative field value. This is a read-only, - // auto-generated field. + // Id: ID of this creative field value. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValue". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValue". Kind string `json:"kind,omitempty"` - - // Value: Value of this creative field value. It needs to be less than - // 256 characters in length and unique per creative field. + // Value: Value of this creative field value. It needs to be less than 256 + // characters in length and unique per creative field. Value string `json:"value,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValue) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValue) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValuesListResponse: Creative Field Value List Response type CreativeFieldValuesListResponse struct { // CreativeFieldValues: Creative field value collection. CreativeFieldValues []*CreativeFieldValue `json:"creativeFieldValues,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValuesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValuesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValuesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldsListResponse: Creative Field List Response type CreativeFieldsListResponse struct { // CreativeFields: Creative field collection. CreativeFields []*CreativeField `json:"creativeFields,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeFields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFields") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFields") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroup: Contains properties of a creative group. type CreativeGroup struct { - // AccountId: Account ID of this creative group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative group. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative group. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // GroupNumber: Subgroup of the creative group. Assign your creative - // groups to a subgroup in order to filter or manage them more easily. - // This field is required on insertion and is read-only after insertion. - // Acceptable values are 1 to 2, inclusive. + // GroupNumber: Subgroup of the creative group. Assign your creative groups to + // a subgroup in order to filter or manage them more easily. This field is + // required on insertion and is read-only after insertion. Acceptable values + // are 1 to 2, inclusive. GroupNumber int64 `json:"groupNumber,omitempty"` - - // Id: ID of this creative group. This is a read-only, auto-generated - // field. + // Id: ID of this creative group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative group. This is a required field and must - // be less than 256 characters long and unique among creative groups of - // the same advertiser. + // Name: Name of this creative group. This is a required field and must be less + // than 256 characters long and unique among creative groups of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroup) MarshalJSON() ([]byte, error) { +func (s CreativeGroup) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupAssignment: Creative Group Assignment. type CreativeGroupAssignment struct { // CreativeGroupId: ID of the creative group to be assigned. CreativeGroupId int64 `json:"creativeGroupId,omitempty,string"` - - // CreativeGroupNumber: Creative group number of the creative group - // assignment. + // CreativeGroupNumber: Creative group number of the creative group assignment. // // Possible values: // "CREATIVE_GROUP_ONE" // "CREATIVE_GROUP_TWO" CreativeGroupNumber string `json:"creativeGroupNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreativeGroupId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroupId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroupId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeGroupAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupsListResponse: Creative Group List Response type CreativeGroupsListResponse struct { // CreativeGroups: Creative group collection. CreativeGroups []*CreativeGroup `json:"creativeGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeGroups") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeOptimizationConfiguration: Creative optimization settings. type CreativeOptimizationConfiguration struct { - // Id: ID of this creative optimization config. This field is - // auto-generated when the campaign is inserted or updated. It can be - // null for existing campaigns. + // Id: ID of this creative optimization config. This field is auto-generated + // when the campaign is inserted or updated. It can be null for existing + // campaigns. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this creative optimization config. This is a required - // field and must be less than 129 characters long. + // Name: Name of this creative optimization config. This is a required field + // and must be less than 129 characters long. Name string `json:"name,omitempty"` - - // OptimizationActivitys: List of optimization activities associated - // with this configuration. + // OptimizationActivitys: List of optimization activities associated with this + // configuration. OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"` - // OptimizationModel: Optimization model for this configuration. // // Possible values: @@ -5298,52 +4380,42 @@ type CreativeOptimizationConfiguration struct { // "POST_IMPRESSION" // "VIDEO_COMPLETION" OptimizationModel string `json:"optimizationModel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { +func (s CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { type NoMethod CreativeOptimizationConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeRotation: Creative Rotation. type CreativeRotation struct { // CreativeAssignments: Creative assignments in this creative rotation. CreativeAssignments []*CreativeAssignment `json:"creativeAssignments,omitempty"` - - // CreativeOptimizationConfigurationId: Creative optimization - // configuration that is used by this ad. It should refer to one of the - // existing optimization configurations in the ad's campaign. If it is - // unset or set to 0, then the campaign's default optimization - // configuration will be used for this ad. + // CreativeOptimizationConfigurationId: Creative optimization configuration + // that is used by this ad. It should refer to one of the existing optimization + // configurations in the ad's campaign. If it is unset or set to 0, then the + // campaign's default optimization configuration will be used for this ad. CreativeOptimizationConfigurationId int64 `json:"creativeOptimizationConfigurationId,omitempty,string"` - - // Type: Type of creative rotation. Can be used to specify whether to - // use sequential or random rotation. + // Type: Type of creative rotation. Can be used to specify whether to use + // sequential or random rotation. // // Possible values: // "CREATIVE_ROTATION_TYPE_RANDOM" // "CREATIVE_ROTATION_TYPE_SEQUENTIAL" Type string `json:"type,omitempty"` - - // WeightCalculationStrategy: Strategy for calculating weights. Used - // with CREATIVE_ROTATION_TYPE_RANDOM. + // WeightCalculationStrategy: Strategy for calculating weights. Used with + // CREATIVE_ROTATION_TYPE_RANDOM. // // Possible values: // "WEIGHT_STRATEGY_CUSTOM" @@ -5351,159 +4423,123 @@ type CreativeRotation struct { // "WEIGHT_STRATEGY_HIGHEST_CTR" // "WEIGHT_STRATEGY_OPTIMIZED" WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreativeAssignments") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeAssignments") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeAssignments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeAssignments") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeRotation) MarshalJSON() ([]byte, error) { +func (s CreativeRotation) MarshalJSON() ([]byte, error) { type NoMethod CreativeRotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeSettings: Creative Settings type CreativeSettings struct { - // IFrameFooter: Header text for iFrames for this site. Must be less - // than or equal to 2000 characters long. + // IFrameFooter: Header text for iFrames for this site. Must be less than or + // equal to 2000 characters long. IFrameFooter string `json:"iFrameFooter,omitempty"` - - // IFrameHeader: Header text for iFrames for this site. Must be less - // than or equal to 2000 characters long. + // IFrameHeader: Header text for iFrames for this site. Must be less than or + // equal to 2000 characters long. IFrameHeader string `json:"iFrameHeader,omitempty"` - // ForceSendFields is a list of field names (e.g. "IFrameFooter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IFrameFooter") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IFrameFooter") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeSettings) MarshalJSON() ([]byte, error) { +func (s CreativeSettings) MarshalJSON() ([]byte, error) { type NoMethod CreativeSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativesListResponse: Creative List Response type CreativesListResponse struct { // Creatives: Creative collection. Creatives []*Creative `json:"creatives,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Creatives") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Creatives") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Creatives") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CrossDimensionReachReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type -// "CROSS_DIMENSION_REACH". +// compatible to be selected for a report of type "CROSS_DIMENSION_REACH". type CrossDimensionReachReportCompatibleFields struct { - // Breakdown: Dimensions which are compatible to be selected in the - // "breakdown" section of the report. + // Breakdown: Dimensions which are compatible to be selected in the "breakdown" + // section of the report. Breakdown []*Dimension `json:"breakdown,omitempty"` - - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#crossDimensionReachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // OverlapMetrics: Metrics which are compatible to be selected in the // "overlapMetricNames" section of the report. OverlapMetrics []*Metric `json:"overlapMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CrossDimensionReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomFloodlightVariable: A custom floodlight variable. type CustomFloodlightVariable struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customFloodlightVariable". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customFloodlightVariable". Kind string `json:"kind,omitempty"` - - // Type: The type of custom floodlight variable to supply a value for. - // These map to the "u[1-20]=" in the tags. + // Type: The type of custom floodlight variable to supply a value for. These + // map to the "u[1-20]=" in the tags. // // Possible values: // "U1" @@ -5607,80 +4643,62 @@ type CustomFloodlightVariable struct { // "U98" // "U99" Type string `json:"type,omitempty"` - - // Value: The value of the custom floodlight variable. The length of - // string must not exceed 50 characters. + // Value: The value of the custom floodlight variable. The length of string + // must not exceed 50 characters. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomFloodlightVariable) MarshalJSON() ([]byte, error) { +func (s CustomFloodlightVariable) MarshalJSON() ([]byte, error) { type NoMethod CustomFloodlightVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomRichMediaEvents: Represents a Custom Rich Media Events group. type CustomRichMediaEvents struct { - // FilteredEventIds: List of custom rich media event IDs. Dimension - // values must be all of type dfa:richMediaEventTypeIdAndName. + // FilteredEventIds: List of custom rich media event IDs. Dimension values must + // be all of type dfa:richMediaEventTypeIdAndName. FilteredEventIds []*DimensionValue `json:"filteredEventIds,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#customRichMediaEvents. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilteredEventIds") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FilteredEventIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FilteredEventIds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomRichMediaEvents) MarshalJSON() ([]byte, error) { +func (s CustomRichMediaEvents) MarshalJSON() ([]byte, error) { type NoMethod CustomRichMediaEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DateRange: Represents a date range. type DateRange struct { - // EndDate: The end date of the date range, inclusive. A string of the - // format: "yyyy-MM-dd". + // EndDate: The end date of the date range, inclusive. A string of the format: + // "yyyy-MM-dd". EndDate string `json:"endDate,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#dateRange. + // Kind: The kind of resource this is, in this case dfareporting#dateRange. Kind string `json:"kind,omitempty"` - - // RelativeDateRange: The date range relative to the date of when the - // report is run. + // RelativeDateRange: The date range relative to the date of when the report is + // run. // // Possible values: // "LAST_24_MONTHS" @@ -5699,32 +4717,25 @@ type DateRange struct { // "YEAR_TO_DATE" // "YESTERDAY" RelativeDateRange string `json:"relativeDateRange,omitempty"` - - // StartDate: The start date of the date range, inclusive. A string of - // the format: "yyyy-MM-dd". + // StartDate: The start date of the date range, inclusive. A string of the + // format: "yyyy-MM-dd". StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DateRange) MarshalJSON() ([]byte, error) { +func (s DateRange) MarshalJSON() ([]byte, error) { type NoMethod DateRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DayPartTargeting: Day Part Targeting. @@ -5749,102 +4760,81 @@ type DayPartTargeting struct { // "TUESDAY" // "WEDNESDAY" DaysOfWeek []string `json:"daysOfWeek,omitempty"` - - // HoursOfDay: Hours of the day when the ad will serve, where 0 is - // midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with - // days of week, in which case the ad would serve during these hours on - // the specified days. For example if Monday, Wednesday, Friday are the - // days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is - // specified, the ad would serve Monday, Wednesdays, and Fridays at - // 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. + // HoursOfDay: Hours of the day when the ad will serve, where 0 is midnight to + // 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in + // which case the ad would serve during these hours on the specified days. For + // example if Monday, Wednesday, Friday are the days of week specified and + // 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, + // Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, + // inclusive. HoursOfDay []int64 `json:"hoursOfDay,omitempty"` - - // UserLocalTime: Whether or not to use the user's local time. If false, - // the America/New York time zone applies. + // UserLocalTime: Whether or not to use the user's local time. If false, the + // America/New York time zone applies. UserLocalTime bool `json:"userLocalTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "DaysOfWeek") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DaysOfWeek") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DaysOfWeek") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DayPartTargeting) MarshalJSON() ([]byte, error) { +func (s DayPartTargeting) MarshalJSON() ([]byte, error) { type NoMethod DayPartTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DefaultClickThroughEventTagProperties: Properties of inheriting and -// overriding the default click-through event tag. A campaign may -// override the event tag defined at the advertiser level, and an ad may -// also override the campaign's setting further. +// overriding the default click-through event tag. A campaign may override the +// event tag defined at the advertiser level, and an ad may also override the +// campaign's setting further. type DefaultClickThroughEventTagProperties struct { - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply to all ads in this entity's scope. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply to + // all ads in this entity's scope. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // OverrideInheritedEventTag: Whether this entity should override the - // inherited default click-through event tag with its own defined value. + // OverrideInheritedEventTag: Whether this entity should override the inherited + // default click-through event tag with its own defined value. OverrideInheritedEventTag bool `json:"overrideInheritedEventTag,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "DefaultClickThroughEventTagId") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultClickThroughEventTagId") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { +func (s DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { type NoMethod DefaultClickThroughEventTagProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeliverySchedule: Delivery Schedule. type DeliverySchedule struct { - // FrequencyCap: Limit on the number of times an individual user can be - // served the ad within a specified period of time. + // FrequencyCap: Limit on the number of times an individual user can be served + // the ad within a specified period of time. FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"` - - // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad - // will not serve after the end date and time. Otherwise the ad will - // continue to be served until it has reached its delivery goals. + // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad will not + // serve after the end date and time. Otherwise the ad will continue to be + // served until it has reached its delivery goals. HardCutoff bool `json:"hardCutoff,omitempty"` - - // ImpressionRatio: Impression ratio for this ad. This ratio determines - // how often each ad is served relative to the others. For example, if - // ad A has an impression ratio of 1 and ad B has an impression ratio of - // 3, then DCM will serve ad B three times as often as ad A. Acceptable - // values are 1 to 10, inclusive. + // ImpressionRatio: Impression ratio for this ad. This ratio determines how + // often each ad is served relative to the others. For example, if ad A has an + // impression ratio of 1 and ad B has an impression ratio of 3, then DCM will + // serve ad B three times as often as ad A. Acceptable values are 1 to 10, + // inclusive. ImpressionRatio int64 `json:"impressionRatio,omitempty,string"` - - // Priority: Serving priority of an ad, with respect to other ads. The - // lower the priority number, the greater the priority with which it is - // served. + // Priority: Serving priority of an ad, with respect to other ads. The lower + // the priority number, the greater the priority with which it is served. // // Possible values: // "AD_PRIORITY_01" @@ -5864,162 +4854,124 @@ type DeliverySchedule struct { // "AD_PRIORITY_15" // "AD_PRIORITY_16" Priority string `json:"priority,omitempty"` - // ForceSendFields is a list of field names (e.g. "FrequencyCap") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FrequencyCap") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FrequencyCap") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeliverySchedule) MarshalJSON() ([]byte, error) { +func (s DeliverySchedule) MarshalJSON() ([]byte, error) { type NoMethod DeliverySchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DfpSettings: DFP Settings type DfpSettings struct { // DfpNetworkCode: DFP network code for this directory site. DfpNetworkCode string `json:"dfp_network_code,omitempty"` - // DfpNetworkName: DFP network name for this directory site. DfpNetworkName string `json:"dfp_network_name,omitempty"` - // ProgrammaticPlacementAccepted: Whether this directory site accepts // programmatic placements. ProgrammaticPlacementAccepted bool `json:"programmaticPlacementAccepted,omitempty"` - - // PubPaidPlacementAccepted: Whether this directory site accepts - // publisher-paid tags. + // PubPaidPlacementAccepted: Whether this directory site accepts publisher-paid + // tags. PubPaidPlacementAccepted bool `json:"pubPaidPlacementAccepted,omitempty"` - - // PublisherPortalOnly: Whether this directory site is available only - // via DoubleClick Publisher Portal. + // PublisherPortalOnly: Whether this directory site is available only via + // DoubleClick Publisher Portal. PublisherPortalOnly bool `json:"publisherPortalOnly,omitempty"` - // ForceSendFields is a list of field names (e.g. "DfpNetworkCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DfpNetworkCode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DfpNetworkCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DfpSettings) MarshalJSON() ([]byte, error) { +func (s DfpSettings) MarshalJSON() ([]byte, error) { type NoMethod DfpSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Dimension: Represents a dimension. type Dimension struct { - // Kind: The kind of resource this is, in this case - // dfareporting#dimension. + // Kind: The kind of resource this is, in this case dfareporting#dimension. Kind string `json:"kind,omitempty"` - // Name: The dimension name, e.g. dfa:advertiser Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Dimension) MarshalJSON() ([]byte, error) { +func (s Dimension) MarshalJSON() ([]byte, error) { type NoMethod Dimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionFilter: Represents a dimension filter. type DimensionFilter struct { // DimensionName: The name of the dimension to filter. DimensionName string `json:"dimensionName,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionFilter. Kind string `json:"kind,omitempty"` - // Value: The value of the dimension to filter. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionFilter) MarshalJSON() ([]byte, error) { +func (s DimensionFilter) MarshalJSON() ([]byte, error) { type NoMethod DimensionFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValue: Represents a DimensionValue resource. type DimensionValue struct { // DimensionName: The name of the dimension. DimensionName string `json:"dimensionName,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID associated with the value if available. Id string `json:"id,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionValue. Kind string `json:"kind,omitempty"` - - // MatchType: Determines how the 'value' field is matched when - // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. + // MatchType: Determines how the 'value' field is matched when filtering. If + // not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is + // allowed as a placeholder for variable length character sequences, and it can + // be escaped with a backslash. Note, only paid search dimensions + // ('dfa:paidSearch*') allow a matchType other than EXACT. // // Possible values: // "BEGINS_WITH" @@ -6027,76 +4979,59 @@ type DimensionValue struct { // "EXACT" // "WILDCARD_EXPRESSION" MatchType string `json:"matchType,omitempty"` - // Value: The value of the dimension. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValue) MarshalJSON() ([]byte, error) { +func (s DimensionValue) MarshalJSON() ([]byte, error) { type NoMethod DimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueList: Represents the list of DimensionValue resources. type DimensionValueList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The dimension values returned in this response. Items []*DimensionValue `json:"items,omitempty"` - // Kind: The kind of list this is, in this case // dfareporting#dimensionValueList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through dimension - // values. To retrieve the next page of results, set the next request's - // "pageToken" to the value of this field. The page token is only valid - // for a limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through dimension values. To + // retrieve the next page of results, set the next request's "pageToken" to the + // value of this field. The page token is only valid for a limited amount of + // time and should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueList) MarshalJSON() ([]byte, error) { +func (s DimensionValueList) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueRequest: Represents a DimensionValuesRequest. @@ -6104,60 +5039,46 @@ type DimensionValueRequest struct { // DimensionName: The name of the dimension for which values should be // requested. DimensionName string `json:"dimensionName,omitempty"` - - // EndDate: The end date of the date range for which to retrieve - // dimension values. A string of the format "yyyy-MM-dd". + // EndDate: The end date of the date range for which to retrieve dimension + // values. A string of the format "yyyy-MM-dd". EndDate string `json:"endDate,omitempty"` - - // Filters: The list of filters by which to filter values. The filters - // are ANDed. + // Filters: The list of filters by which to filter values. The filters are + // ANDed. Filters []*DimensionFilter `json:"filters,omitempty"` - // Kind: The kind of request this is, in this case // dfareporting#dimensionValueRequest. Kind string `json:"kind,omitempty"` - - // StartDate: The start date of the date range for which to retrieve - // dimension values. A string of the format "yyyy-MM-dd". + // StartDate: The start date of the date range for which to retrieve dimension + // values. A string of the format "yyyy-MM-dd". StartDate string `json:"startDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueRequest) MarshalJSON() ([]byte, error) { +func (s DimensionValueRequest) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySite: DirectorySites contains properties of a website from -// the Site Directory. Sites need to be added to an account via the -// Sites resource before they can be assigned to a placement. +// DirectorySite: DirectorySites contains properties of a website from the Site +// Directory. Sites need to be added to an account via the Sites resource +// before they can be assigned to a placement. type DirectorySite struct { // Active: Whether this directory site is active. Active bool `json:"active,omitempty"` - // ContactAssignments: Directory site contacts. ContactAssignments []*DirectorySiteContactAssignment `json:"contactAssignments,omitempty"` - - // CountryId: Country ID of this directory site. This is a read-only - // field. + // CountryId: Country ID of this directory site. This is a read-only field. CountryId int64 `json:"countryId,omitempty,string"` - // CurrencyId: Currency ID of this directory site. This is a read-only // field. // Possible values are: @@ -6211,19 +5132,13 @@ type DirectorySite struct { // - "49" for MXN // - "50" for NGN CurrencyId int64 `json:"currencyId,omitempty,string"` - - // Description: Description of this directory site. This is a read-only - // field. + // Description: Description of this directory site. This is a read-only field. Description string `json:"description,omitempty"` - - // Id: ID of this directory site. This is a read-only, auto-generated - // field. + // Id: ID of this directory site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this directory site. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this directory site. This is + // a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - // InpageTagFormats: Tag types for regular placements. // // Acceptable values are: @@ -6238,9 +5153,7 @@ type DirectorySite struct { // "JAVASCRIPT_INPAGE" // "STANDARD" InpageTagFormats []string `json:"inpageTagFormats,omitempty"` - - // InterstitialTagFormats: Tag types for interstitial - // placements. + // InterstitialTagFormats: Tag types for interstitial placements. // // Acceptable values are: // - "IFRAME_JAVASCRIPT_INTERSTITIAL" @@ -6252,76 +5165,56 @@ type DirectorySite struct { // "INTERNAL_REDIRECT_INTERSTITIAL" // "JAVASCRIPT_INTERSTITIAL" InterstitialTagFormats []string `json:"interstitialTagFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySite". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySite". Kind string `json:"kind,omitempty"` - // Name: Name of this directory site. Name string `json:"name,omitempty"` - // ParentId: Parent directory site ID. ParentId int64 `json:"parentId,omitempty,string"` - // Settings: Directory site settings. Settings *DirectorySiteSettings `json:"settings,omitempty"` - // Url: URL of this directory site. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySite) MarshalJSON() ([]byte, error) { +func (s DirectorySite) MarshalJSON() ([]byte, error) { type NoMethod DirectorySite - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySiteContact: Contains properties of a Site Directory -// contact. +// DirectorySiteContact: Contains properties of a Site Directory contact. type DirectorySiteContact struct { // Address: Address of this directory site contact. Address string `json:"address,omitempty"` - // Email: Email address of this directory site contact. Email string `json:"email,omitempty"` - // FirstName: First name of this directory site contact. FirstName string `json:"firstName,omitempty"` - - // Id: ID of this directory site contact. This is a read-only, - // auto-generated field. + // Id: ID of this directory site contact. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySiteContact". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySiteContact". Kind string `json:"kind,omitempty"` - // LastName: Last name of this directory site contact. LastName string `json:"lastName,omitempty"` - // Phone: Phone number of this directory site contact. Phone string `json:"phone,omitempty"` - // Role: Directory site contact role. // // Possible values: @@ -6329,10 +5222,8 @@ type DirectorySiteContact struct { // "EDIT" // "VIEW" Role string `json:"role,omitempty"` - // Title: Title or designation of this directory site contact. Title string `json:"title,omitempty"` - // Type: Directory site contact type. // // Possible values: @@ -6342,31 +5233,24 @@ type DirectorySiteContact struct { // "TECHNICAL" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteContact) MarshalJSON() ([]byte, error) { +func (s DirectorySiteContact) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySiteContactAssignment: Directory Site Contact Assignment @@ -6374,198 +5258,150 @@ type DirectorySiteContactAssignment struct { // ContactId: ID of this directory site contact. This is a read-only, // auto-generated field. ContactId int64 `json:"contactId,omitempty,string"` - - // Visibility: Visibility of this directory site contact assignment. - // When set to PUBLIC this contact assignment is visible to all account - // and agency users; when set to PRIVATE it is visible only to the site. + // Visibility: Visibility of this directory site contact assignment. When set + // to PUBLIC this contact assignment is visible to all account and agency + // users; when set to PRIVATE it is visible only to the site. // // Possible values: // "PRIVATE" // "PUBLIC" Visibility string `json:"visibility,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContactId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContactId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContactId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteContactAssignment) MarshalJSON() ([]byte, error) { +func (s DirectorySiteContactAssignment) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteContactAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySiteContactsListResponse: Directory Site Contact List -// Response +// DirectorySiteContactsListResponse: Directory Site Contact List Response type DirectorySiteContactsListResponse struct { // DirectorySiteContacts: Directory site contact collection DirectorySiteContacts []*DirectorySiteContact `json:"directorySiteContacts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySiteContactsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySiteContactsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DirectorySiteContacts") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DirectorySiteContacts") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DirectorySiteContacts") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteContactsListResponse) MarshalJSON() ([]byte, error) { +func (s DirectorySiteContactsListResponse) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteContactsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySiteSettings: Directory Site Settings type DirectorySiteSettings struct { - // ActiveViewOptOut: Whether this directory site has disabled active - // view creatives. + // ActiveViewOptOut: Whether this directory site has disabled active view + // creatives. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - // DfpSettings: Directory site DFP settings. DfpSettings *DfpSettings `json:"dfp_settings,omitempty"` - - // InstreamVideoPlacementAccepted: Whether this site accepts in-stream - // video ads. - InstreamVideoPlacementAccepted bool `json:"instream_video_placement_accepted,omitempty"` - - // InterstitialPlacementAccepted: Whether this site accepts interstitial + // InstreamVideoPlacementAccepted: Whether this site accepts in-stream video // ads. + InstreamVideoPlacementAccepted bool `json:"instream_video_placement_accepted,omitempty"` + // InterstitialPlacementAccepted: Whether this site accepts interstitial ads. InterstitialPlacementAccepted bool `json:"interstitialPlacementAccepted,omitempty"` - - // NielsenOcrOptOut: Whether this directory site has disabled Nielsen - // OCR reach ratings. + // NielsenOcrOptOut: Whether this directory site has disabled Nielsen OCR reach + // ratings. NielsenOcrOptOut bool `json:"nielsenOcrOptOut,omitempty"` - - // VerificationTagOptOut: Whether this directory site has disabled - // generation of Verification ins tags. + // VerificationTagOptOut: Whether this directory site has disabled generation + // of Verification ins tags. VerificationTagOptOut bool `json:"verificationTagOptOut,omitempty"` - - // VideoActiveViewOptOut: Whether this directory site has disabled - // active view for in-stream video creatives. This is a read-only field. + // VideoActiveViewOptOut: Whether this directory site has disabled active view + // for in-stream video creatives. This is a read-only field. VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteSettings) MarshalJSON() ([]byte, error) { +func (s DirectorySiteSettings) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySitesListResponse: Directory Site List Response type DirectorySitesListResponse struct { // DirectorySites: Directory site collection. DirectorySites []*DirectorySite `json:"directorySites,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DirectorySites") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DirectorySites") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DirectorySites") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySitesListResponse) MarshalJSON() ([]byte, error) { +func (s DirectorySitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod DirectorySitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DynamicTargetingKey: Contains properties of a dynamic targeting key. -// Dynamic targeting keys are unique, user-friendly labels, created at -// the advertiser level in DCM, that can be assigned to ads, creatives, -// and placements and used for targeting with DoubleClick Studio dynamic -// creatives. Use these labels instead of numeric DCM IDs (such as -// placement IDs) to save time and avoid errors in your dynamic feeds. +// DynamicTargetingKey: Contains properties of a dynamic targeting key. Dynamic +// targeting keys are unique, user-friendly labels, created at the advertiser +// level in DCM, that can be assigned to ads, creatives, and placements and +// used for targeting with DoubleClick Studio dynamic creatives. Use these +// labels instead of numeric DCM IDs (such as placement IDs) to save time and +// avoid errors in your dynamic feeds. type DynamicTargetingKey struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKey". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKey". Kind string `json:"kind,omitempty"` - - // Name: Name of this dynamic targeting key. This is a required field. - // Must be less than 256 characters long and cannot contain commas. All - // characters are converted to lowercase. + // Name: Name of this dynamic targeting key. This is a required field. Must be + // less than 256 characters long and cannot contain commas. All characters are + // converted to lowercase. Name string `json:"name,omitempty"` - - // ObjectId: ID of the object of this dynamic targeting key. This is a - // required field. + // ObjectId: ID of the object of this dynamic targeting key. This is a required + // field. ObjectId int64 `json:"objectId,omitempty,string"` - - // ObjectType: Type of the object of this dynamic targeting key. This is - // a required field. + // ObjectType: Type of the object of this dynamic targeting key. This is a + // required field. // // Possible values: // "OBJECT_AD" @@ -6574,69 +5410,52 @@ type DynamicTargetingKey struct { // "OBJECT_PLACEMENT" ObjectType string `json:"objectType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKey) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKey) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DynamicTargetingKeysListResponse: Dynamic Targeting Key List Response type DynamicTargetingKeysListResponse struct { // DynamicTargetingKeys: Dynamic targeting key collection. DynamicTargetingKeys []*DynamicTargetingKey `json:"dynamicTargetingKeys,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKeysListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKeysListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DynamicTargetingKeys") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTargetingKeys") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKeysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EncryptionInfo: A description of how user IDs are encrypted. @@ -6644,9 +5463,8 @@ type EncryptionInfo struct { // EncryptionEntityId: The encryption entity ID. This should match the // encryption configuration for ad serving or Data Transfer. EncryptionEntityId int64 `json:"encryptionEntityId,omitempty,string"` - - // EncryptionEntityType: The encryption entity type. This should match - // the encryption configuration for ad serving or Data Transfer. + // EncryptionEntityType: The encryption entity type. This should match the + // encryption configuration for ad serving or Data Transfer. // // Possible values: // "ADWORDS_CUSTOMER" @@ -6656,271 +5474,209 @@ type EncryptionInfo struct { // "DCM_ADVERTISER" // "ENCRYPTION_ENTITY_TYPE_UNKNOWN" EncryptionEntityType string `json:"encryptionEntityType,omitempty"` - - // EncryptionSource: Describes whether the encrypted cookie was received - // from ad serving (the %m macro) or from Data Transfer. + // EncryptionSource: Describes whether the encrypted cookie was received from + // ad serving (the %m macro) or from Data Transfer. // // Possible values: // "AD_SERVING" // "DATA_TRANSFER" // "ENCRYPTION_SCOPE_UNKNOWN" EncryptionSource string `json:"encryptionSource,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#encryptionInfo". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#encryptionInfo". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptionEntityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptionEntityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncryptionInfo) MarshalJSON() ([]byte, error) { +func (s EncryptionInfo) MarshalJSON() ([]byte, error) { type NoMethod EncryptionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTag: Contains properties of an event tag. type EventTag struct { - // AccountId: Account ID of this event tag. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this event tag. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this event tag. This field or the - // campaignId field is required on insertion. + // AdvertiserId: Advertiser ID of this event tag. This field or the campaignId + // field is required on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CampaignId: Campaign ID of this event tag. This field or the - // advertiserId field is required on insertion. + // CampaignId: Campaign ID of this event tag. This field or the advertiserId + // field is required on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // EnabledByDefault: Whether this event tag should be automatically - // enabled for all of the advertiser's campaigns and ads. + // EnabledByDefault: Whether this event tag should be automatically enabled for + // all of the advertiser's campaigns and ads. EnabledByDefault bool `json:"enabledByDefault,omitempty"` - - // ExcludeFromAdxRequests: Whether to remove this event tag from ads - // that are trafficked through DoubleClick Bid Manager to Ad Exchange. - // This may be useful if the event tag uses a pixel that is unapproved - // for Ad Exchange bids on one or more networks, such as the Google - // Display Network. + // ExcludeFromAdxRequests: Whether to remove this event tag from ads that are + // trafficked through DoubleClick Bid Manager to Ad Exchange. This may be + // useful if the event tag uses a pixel that is unapproved for Ad Exchange bids + // on one or more networks, such as the Google Display Network. ExcludeFromAdxRequests bool `json:"excludeFromAdxRequests,omitempty"` - // Id: ID of this event tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTag". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTag". Kind string `json:"kind,omitempty"` - - // Name: Name of this event tag. This is a required field and must be - // less than 256 characters long. + // Name: Name of this event tag. This is a required field and must be less than + // 256 characters long. Name string `json:"name,omitempty"` - - // SiteFilterType: Site filter type for this event tag. If no type is - // specified then the event tag will be applied to all sites. + // SiteFilterType: Site filter type for this event tag. If no type is specified + // then the event tag will be applied to all sites. // // Possible values: // "BLACKLIST" // "WHITELIST" SiteFilterType string `json:"siteFilterType,omitempty"` - // SiteIds: Filter list of site IDs associated with this event tag. The - // siteFilterType determines whether this is a whitelist or blacklist - // filter. + // siteFilterType determines whether this is a whitelist or blacklist filter. SiteIds googleapi.Int64s `json:"siteIds,omitempty"` - - // SslCompliant: Whether this tag is SSL-compliant or not. This is a - // read-only field. + // SslCompliant: Whether this tag is SSL-compliant or not. This is a read-only + // field. SslCompliant bool `json:"sslCompliant,omitempty"` - - // Status: Status of this event tag. Must be ENABLED for this event tag - // to fire. This is a required field. + // Status: Status of this event tag. Must be ENABLED for this event tag to + // fire. This is a required field. // // Possible values: // "DISABLED" // "ENABLED" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this event tag. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this event tag. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Type: Event tag type. Can be used to specify whether to use a - // third-party pixel, a third-party JavaScript URL, or a third-party - // click-through URL for either impression or click tracking. This is a - // required field. + // Type: Event tag type. Can be used to specify whether to use a third-party + // pixel, a third-party JavaScript URL, or a third-party click-through URL for + // either impression or click tracking. This is a required field. // // Possible values: // "CLICK_THROUGH_EVENT_TAG" // "IMPRESSION_IMAGE_EVENT_TAG" // "IMPRESSION_JAVASCRIPT_EVENT_TAG" Type string `json:"type,omitempty"` - - // Url: Payload URL for this event tag. The URL on a click-through event - // tag should have a landing page URL appended to the end of it. This - // field is required on insertion. + // Url: Payload URL for this event tag. The URL on a click-through event tag + // should have a landing page URL appended to the end of it. This field is + // required on insertion. Url string `json:"url,omitempty"` - - // UrlEscapeLevels: Number of times the landing page URL should be - // URL-escaped before being appended to the click-through event tag URL. - // Only applies to click-through event tags as specified by the event - // tag type. + // UrlEscapeLevels: Number of times the landing page URL should be URL-escaped + // before being appended to the click-through event tag URL. Only applies to + // click-through event tags as specified by the event tag type. UrlEscapeLevels int64 `json:"urlEscapeLevels,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTag) MarshalJSON() ([]byte, error) { +func (s EventTag) MarshalJSON() ([]byte, error) { type NoMethod EventTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagOverride: Event tag override information. type EventTagOverride struct { // Enabled: Whether this override is enabled. Enabled bool `json:"enabled,omitempty"` - - // Id: ID of this event tag override. This is a read-only, - // auto-generated field. + // Id: ID of this event tag override. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagOverride) MarshalJSON() ([]byte, error) { +func (s EventTagOverride) MarshalJSON() ([]byte, error) { type NoMethod EventTagOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagsListResponse: Event Tag List Response type EventTagsListResponse struct { // EventTags: Event tag collection. EventTags []*EventTag `json:"eventTags,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTagsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTagsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EventTags") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventTags") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventTags") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagsListResponse) MarshalJSON() ([]byte, error) { +func (s EventTagsListResponse) MarshalJSON() ([]byte, error) { type NoMethod EventTagsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// File: Represents a File resource. A file contains the metadata for a -// report run. It shows the status of the run and holds the URLs to the -// generated report data if the run is finished and the status is -// "REPORT_AVAILABLE". +// File: Represents a File resource. A file contains the metadata for a report +// run. It shows the status of the run and holds the URLs to the generated +// report data if the run is finished and the status is "REPORT_AVAILABLE". type File struct { - // DateRange: The date range for which the file has report data. The - // date range will always be the absolute date range for which the - // report is run. + // DateRange: The date range for which the file has report data. The date range + // will always be the absolute date range for which the report is run. DateRange *DateRange `json:"dateRange,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // FileName: The filename of the file. FileName string `json:"fileName,omitempty"` - - // Format: The output format of the report. Only available once the file - // is available. + // Format: The output format of the report. Only available once the file is + // available. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID of this report file. Id int64 `json:"id,omitempty,string"` - // Kind: The kind of resource this is, in this case dfareporting#file. Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp in milliseconds since epoch when this - // file was last modified. + // LastModifiedTime: The timestamp in milliseconds since epoch when this file + // was last modified. LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"` - // ReportId: The ID of the report this file was generated from. ReportId int64 `json:"reportId,omitempty,string"` - // Status: The status of the report file. // // Possible values: @@ -6929,249 +5685,189 @@ type File struct { // "PROCESSING" // "REPORT_AVAILABLE" Status string `json:"status,omitempty"` - // Urls: The URLs where the completed report file can be downloaded. Urls *FileUrls `json:"urls,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DateRange") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DateRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DateRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *File) MarshalJSON() ([]byte, error) { +func (s File) MarshalJSON() ([]byte, error) { type NoMethod File - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileUrls: The URLs where the completed report file can be downloaded. type FileUrls struct { // ApiUrl: The URL for downloading the report data through the API. ApiUrl string `json:"apiUrl,omitempty"` - - // BrowserUrl: The URL for downloading the report data through a - // browser. + // BrowserUrl: The URL for downloading the report data through a browser. BrowserUrl string `json:"browserUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApiUrl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiUrl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileUrls) MarshalJSON() ([]byte, error) { +func (s FileUrls) MarshalJSON() ([]byte, error) { type NoMethod FileUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileList: Represents the list of File resources. type FileList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The files returned in this response. Items []*File `json:"items,omitempty"` - // Kind: The kind of list this is, in this case dfareporting#fileList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through files. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through files. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileList) MarshalJSON() ([]byte, error) { +func (s FileList) MarshalJSON() ([]byte, error) { type NoMethod FileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Flight: Flight type Flight struct { // EndDate: Inventory item flight end date. EndDate string `json:"endDate,omitempty"` - // RateOrCost: Rate or cost of this flight. RateOrCost int64 `json:"rateOrCost,omitempty,string"` - // StartDate: Inventory item flight start date. StartDate string `json:"startDate,omitempty"` - // Units: Units of this flight. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Flight) MarshalJSON() ([]byte, error) { +func (s Flight) MarshalJSON() ([]byte, error) { type NoMethod Flight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivitiesGenerateTagResponse: Floodlight Activity -// GenerateTag Response +// FloodlightActivitiesGenerateTagResponse: Floodlight Activity GenerateTag +// Response type FloodlightActivitiesGenerateTagResponse struct { - // FloodlightActivityTag: Generated tag for this Floodlight activity. - // For global site tags, this is the event snippet. + // FloodlightActivityTag: Generated tag for this Floodlight activity. For + // global site tags, this is the event snippet. FloodlightActivityTag string `json:"floodlightActivityTag,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesGenerateTagResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesGenerateTagResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityTag") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityTag") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FloodlightActivityTag") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesGenerateTagResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivitiesListResponse: Floodlight Activity List Response type FloodlightActivitiesListResponse struct { // FloodlightActivities: Floodlight activity collection. FloodlightActivities []*FloodlightActivity `json:"floodlightActivities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivities") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivities") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivities") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivities") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivity: Contains properties of a Floodlight activity. type FloodlightActivity struct { - // AccountId: Account ID of this floodlight activity. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity. If this - // field is left blank, the value will be copied over either from the - // activity group's advertiser or the existing activity's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity. If this field is + // left blank, the value will be copied over either from the activity group's + // advertiser or the existing activity's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CacheBustingType: Code type used for cache busting in the generated - // tag. Applicable only when floodlightActivityGroupType is COUNTER and + // CacheBustingType: Code type used for cache busting in the generated tag. + // Applicable only when floodlightActivityGroupType is COUNTER and // countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. // // Possible values: @@ -7181,7 +5877,6 @@ type FloodlightActivity struct { // "JSP" // "PHP" CacheBustingType string `json:"cacheBustingType,omitempty"` - // CountingMethod: Counting method for conversions for this floodlight // activity. This is a required field. // @@ -7192,108 +5887,82 @@ type FloodlightActivity struct { // "TRANSACTIONS_COUNTING" // "UNIQUE_COUNTING" CountingMethod string `json:"countingMethod,omitempty"` - // DefaultTags: Dynamic floodlight tags. DefaultTags []*FloodlightActivityDynamicTag `json:"defaultTags,omitempty"` - - // ExpectedUrl: URL where this tag will be deployed. If specified, must - // be less than 256 characters long. + // ExpectedUrl: URL where this tag will be deployed. If specified, must be less + // than 256 characters long. ExpectedUrl string `json:"expectedUrl,omitempty"` - - // FloodlightActivityGroupId: Floodlight activity group ID of this - // floodlight activity. This is a required field. + // FloodlightActivityGroupId: Floodlight activity group ID of this floodlight + // activity. This is a required field. FloodlightActivityGroupId int64 `json:"floodlightActivityGroupId,omitempty,string"` - - // FloodlightActivityGroupName: Name of the associated floodlight - // activity group. This is a read-only field. + // FloodlightActivityGroupName: Name of the associated floodlight activity + // group. This is a read-only field. FloodlightActivityGroupName string `json:"floodlightActivityGroupName,omitempty"` - - // FloodlightActivityGroupTagString: Tag string of the associated - // floodlight activity group. This is a read-only field. - FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` - - // FloodlightActivityGroupType: Type of the associated floodlight + // FloodlightActivityGroupTagString: Tag string of the associated floodlight // activity group. This is a read-only field. + FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` + // FloodlightActivityGroupType: Type of the associated floodlight activity + // group. This is a read-only field. // // Possible values: // "COUNTER" // "SALE" FloodlightActivityGroupType string `json:"floodlightActivityGroupType,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity. If this field is left blank, the value will be - // copied over either from the activity group's floodlight configuration - // or from the existing activity's floodlight configuration. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity. If this field is left blank, the value will be copied over either + // from the activity group's floodlight configuration or from the existing + // activity's floodlight configuration. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Hidden: Whether this activity is archived. Hidden bool `json:"hidden,omitempty"` - - // Id: ID of this floodlight activity. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight activity. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity. + // This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - // ImageTagEnabled: Whether the image tag is enabled for this activity. ImageTagEnabled bool `json:"imageTagEnabled,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivity". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivity". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity. This is a required field. - // Must be less than 129 characters long and cannot contain quotes. + // Name: Name of this floodlight activity. This is a required field. Must be + // less than 129 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - // Notes: General notes or implementation instructions for the tag. Notes string `json:"notes,omitempty"` - // PublisherTags: Publisher dynamic floodlight tags. PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"` - // Secure: Whether this tag should use SSL. Secure bool `json:"secure,omitempty"` - - // SslCompliant: Whether the floodlight activity is SSL-compliant. This - // is a read-only field, its value detected by the system from the - // floodlight tags. + // SslCompliant: Whether the floodlight activity is SSL-compliant. This is a + // read-only field, its value detected by the system from the floodlight tags. SslCompliant bool `json:"sslCompliant,omitempty"` - // SslRequired: Whether this floodlight activity must be SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagFormat: Tag format type for the floodlight activity. If left - // blank, the tag format will default to HTML. + // TagFormat: Tag format type for the floodlight activity. If left blank, the + // tag format will default to HTML. // // Possible values: // "HTML" // "XHTML" TagFormat string `json:"tagFormat,omitempty"` - - // TagString: Value of the cat= parameter in the floodlight tag, which - // the ad servers use to identify the activity. This is optional: if - // empty, a new tag string will be generated for you. This string must - // be 1 to 8 characters long, with valid characters being - // [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among - // activities of the same activity group. This field is read-only after - // insertion. + // TagString: Value of the cat= parameter in the floodlight tag, which the ad + // servers use to identify the activity. This is optional: if empty, a new tag + // string will be generated for you. This string must be 1 to 8 characters + // long, with valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string + // must also be unique among activities of the same activity group. This field + // is read-only after insertion. TagString string `json:"tagString,omitempty"` - - // UserDefinedVariableTypes: List of the user-defined variables used by - // this conversion tag. These map to the "u[1-100]=" in the tags. Each - // of these can have a user defined type. + // UserDefinedVariableTypes: List of the user-defined variables used by this + // conversion tag. These map to the "u[1-100]=" in the tags. Each of these can + // have a user defined type. // Acceptable values are U1 to U100, inclusive. // // Possible values: @@ -7399,157 +6068,119 @@ type FloodlightActivity struct { // "U99" UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivity) MarshalJSON() ([]byte, error) { +func (s FloodlightActivity) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityDynamicTag: Dynamic Tag type FloodlightActivityDynamicTag struct { - // Id: ID of this dynamic tag. This is a read-only, auto-generated - // field. + // Id: ID of this dynamic tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // Name: Name of this tag. Name string `json:"name,omitempty"` - // Tag: Tag code. Tag string `json:"tag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivityGroup: Contains properties of a Floodlight activity -// group. +// FloodlightActivityGroup: Contains properties of a Floodlight activity group. type FloodlightActivityGroup struct { - // AccountId: Account ID of this floodlight activity group. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity group. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity group. If - // this field is left blank, the value will be copied over either from - // the floodlight configuration's advertiser or from the existing - // activity group's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity group. If this field + // is left blank, the value will be copied over either from the floodlight + // configuration's advertiser or from the existing activity group's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity group. This is a required field. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity group. This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this floodlight activity group. This is a read-only, // auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity group. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity + // group. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity group. This is a required - // field. Must be less than 65 characters long and cannot contain - // quotes. + // Name: Name of this floodlight activity group. This is a required field. Must + // be less than 65 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity group. This - // is a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity group. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagString: Value of the type= parameter in the floodlight tag, which - // the ad servers use to identify the activity group that the activity - // belongs to. This is optional: if empty, a new tag string will be - // generated for you. This string must be 1 to 8 characters long, with - // valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must - // also be unique among activity groups of the same floodlight - // configuration. This field is read-only after insertion. + // TagString: Value of the type= parameter in the floodlight tag, which the ad + // servers use to identify the activity group that the activity belongs to. + // This is optional: if empty, a new tag string will be generated for you. This + // string must be 1 to 8 characters long, with valid characters being + // [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activity + // groups of the same floodlight configuration. This field is read-only after + // insertion. TagString string `json:"tagString,omitempty"` - - // Type: Type of the floodlight activity group. This is a required field - // that is read-only after insertion. + // Type: Type of the floodlight activity group. This is a required field that + // is read-only after insertion. // // Possible values: // "COUNTER" // "SALE" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityGroupsListResponse: Floodlight Activity Group List @@ -7557,156 +6188,117 @@ func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type FloodlightActivityGroupsListResponse struct { // FloodlightActivityGroups: Floodlight activity group collection. FloodlightActivityGroups []*FloodlightActivityGroup `json:"floodlightActivityGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityGroups") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityGroups") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityPublisherDynamicTag: Publisher Dynamic Tag type FloodlightActivityPublisherDynamicTag struct { // ClickThrough: Whether this tag is applicable only for click-throughs. ClickThrough bool `json:"clickThrough,omitempty"` - - // DirectorySiteId: Directory site ID of this dynamic tag. This is a - // write-only field that can be used as an alternative to the siteId - // field. When this resource is retrieved, only the siteId field will be - // populated. + // DirectorySiteId: Directory site ID of this dynamic tag. This is a write-only + // field that can be used as an alternative to the siteId field. When this + // resource is retrieved, only the siteId field will be populated. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - // DynamicTag: Dynamic floodlight tag. DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"` - // SiteId: Site ID of this dynamic tag. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - // ViewThrough: Whether this tag is applicable only for view-throughs. ViewThrough bool `json:"viewThrough,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThrough") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThrough") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickThrough") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityPublisherDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfiguration: Contains properties of a Floodlight -// configuration. +// FloodlightConfiguration: Contains properties of a Floodlight configuration. type FloodlightConfiguration struct { - // AccountId: Account ID of this floodlight configuration. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight configuration. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of the parent advertiser of this - // floodlight configuration. + // AdvertiserId: Advertiser ID of the parent advertiser of this floodlight + // configuration. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // AnalyticsDataSharingEnabled: Whether advertiser data is shared with - // Google Analytics. + // AnalyticsDataSharingEnabled: Whether advertiser data is shared with Google + // Analytics. AnalyticsDataSharingEnabled bool `json:"analyticsDataSharingEnabled,omitempty"` - - // ExposureToConversionEnabled: Whether the exposure-to-conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure-to-conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // FirstDayOfWeek: Day that will be counted as the first day of the week - // in reports. This is a required field. + // FirstDayOfWeek: Day that will be counted as the first day of the week in + // reports. This is a required field. // // Possible values: // "MONDAY" // "SUNDAY" FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"` - - // Id: ID of this floodlight configuration. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight configuration. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this floodlight // configuration. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // InAppAttributionTrackingEnabled: Whether in-app attribution tracking - // is enabled. + // InAppAttributionTrackingEnabled: Whether in-app attribution tracking is + // enabled. InAppAttributionTrackingEnabled bool `json:"inAppAttributionTrackingEnabled,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfiguration". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfiguration". Kind string `json:"kind,omitempty"` - // LookbackConfiguration: Lookback window settings for this floodlight // configuration. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // NaturalSearchConversionAttributionOption: Types of attribution - // options for natural search conversions. + // NaturalSearchConversionAttributionOption: Types of attribution options for + // natural search conversions. // // Possible values: // "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" NaturalSearchConversionAttributionOption string `json:"naturalSearchConversionAttributionOption,omitempty"` - // OmnitureSettings: Settings for DCM Omniture integration. OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"` - // StandardVariableTypes: List of standard variables enabled for this // configuration. // @@ -7720,346 +6312,259 @@ type FloodlightConfiguration struct { // "TRAN" // "U" StandardVariableTypes []string `json:"standardVariableTypes,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight configuration. This is - // a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight configuration. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagSettings: Configuration settings for dynamic and image floodlight - // tags. + // TagSettings: Configuration settings for dynamic and image floodlight tags. TagSettings *TagSettings `json:"tagSettings,omitempty"` - - // ThirdPartyAuthenticationTokens: List of third-party authentication - // tokens enabled for this configuration. - ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` - - // UserDefinedVariableConfigurations: List of user defined variables + // ThirdPartyAuthenticationTokens: List of third-party authentication tokens // enabled for this configuration. + ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` + // UserDefinedVariableConfigurations: List of user defined variables enabled + // for this configuration. UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfiguration) MarshalJSON() ([]byte, error) { +func (s FloodlightConfiguration) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfigurationsListResponse: Floodlight Configuration List -// Response +// FloodlightConfigurationsListResponse: Floodlight Configuration List Response type FloodlightConfigurationsListResponse struct { // FloodlightConfigurations: Floodlight configuration collection. FloodlightConfigurations []*FloodlightConfiguration `json:"floodlightConfigurations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfigurationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfigurationsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightConfigurations") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightConfigurations") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightConfigurations") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightConfigurations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfigurationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type "FlOODLIGHT". +// FloodlightReportCompatibleFields: Represents fields that are compatible to +// be selected for a report of type "FlOODLIGHT". type FloodlightReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#floodlightReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod FloodlightReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FrequencyCap: Frequency Cap. type FrequencyCap struct { - // Duration: Duration of time, in seconds, for this frequency cap. The - // maximum duration is 90 days. Acceptable values are 1 to 7776000, - // inclusive. + // Duration: Duration of time, in seconds, for this frequency cap. The maximum + // duration is 90 days. Acceptable values are 1 to 7776000, inclusive. Duration int64 `json:"duration,omitempty,string"` - - // Impressions: Number of times an individual user can be served the ad - // within the specified duration. Acceptable values are 1 to 15, - // inclusive. + // Impressions: Number of times an individual user can be served the ad within + // the specified duration. Acceptable values are 1 to 15, inclusive. Impressions int64 `json:"impressions,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FrequencyCap) MarshalJSON() ([]byte, error) { +func (s FrequencyCap) MarshalJSON() ([]byte, error) { type NoMethod FrequencyCap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FsCommand: FsCommand. type FsCommand struct { - // Left: Distance from the left of the browser.Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Left: Distance from the left of the browser.Applicable when positionOption + // is DISTANCE_FROM_TOP_LEFT_CORNER. Left int64 `json:"left,omitempty"` - // PositionOption: Position in the browser where the window will open. // // Possible values: // "CENTERED" // "DISTANCE_FROM_TOP_LEFT_CORNER" PositionOption string `json:"positionOption,omitempty"` - - // Top: Distance from the top of the browser. Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Top: Distance from the top of the browser. Applicable when positionOption is + // DISTANCE_FROM_TOP_LEFT_CORNER. Top int64 `json:"top,omitempty"` - // WindowHeight: Height of the window. WindowHeight int64 `json:"windowHeight,omitempty"` - // WindowWidth: Width of the window. WindowWidth int64 `json:"windowWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FsCommand) MarshalJSON() ([]byte, error) { +func (s FsCommand) MarshalJSON() ([]byte, error) { type NoMethod FsCommand - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GeoTargeting: Geographical Targeting. type GeoTargeting struct { - // Cities: Cities to be targeted. For each city only dartId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a city, do not target or exclude the country - // of the city, and do not target the metro or region of the city. + // Cities: Cities to be targeted. For each city only dartId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a city, do not target or exclude the country of the city, and + // do not target the metro or region of the city. Cities []*City `json:"cities,omitempty"` - - // Countries: Countries to be targeted or excluded from targeting, - // depending on the setting of the excludeCountries field. For each - // country only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting or - // excluding a country, do not target regions, cities, metros, or postal - // codes in the same country. + // Countries: Countries to be targeted or excluded from targeting, depending on + // the setting of the excludeCountries field. For each country only dartId is + // required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting or excluding a country, do not target + // regions, cities, metros, or postal codes in the same country. Countries []*Country `json:"countries,omitempty"` - - // ExcludeCountries: Whether or not to exclude the countries in the - // countries field from targeting. If false, the countries field refers - // to countries which will be targeted by the ad. + // ExcludeCountries: Whether or not to exclude the countries in the countries + // field from targeting. If false, the countries field refers to countries + // which will be targeted by the ad. ExcludeCountries bool `json:"excludeCountries,omitempty"` - - // Metros: Metros to be targeted. For each metro only dmaId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a metro, do not target or exclude the - // country of the metro. + // Metros: Metros to be targeted. For each metro only dmaId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a metro, do not target or exclude the country of the metro. Metros []*Metro `json:"metros,omitempty"` - - // PostalCodes: Postal codes to be targeted. For each postal code only - // id is required. The other fields are populated automatically when the - // ad is inserted or updated. If targeting a postal code, do not target - // or exclude the country of the postal code. - PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - - // Regions: Regions to be targeted. For each region only dartId is + // PostalCodes: Postal codes to be targeted. For each postal code only id is // required. The other fields are populated automatically when the ad is - // inserted or updated. If targeting a region, do not target or exclude - // the country of the region. + // inserted or updated. If targeting a postal code, do not target or exclude + // the country of the postal code. + PostalCodes []*PostalCode `json:"postalCodes,omitempty"` + // Regions: Regions to be targeted. For each region only dartId is required. + // The other fields are populated automatically when the ad is inserted or + // updated. If targeting a region, do not target or exclude the country of the + // region. Regions []*Region `json:"regions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoTargeting) MarshalJSON() ([]byte, error) { +func (s GeoTargeting) MarshalJSON() ([]byte, error) { type NoMethod GeoTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InventoryItem: Represents a buy from the DoubleClick Planning -// inventory store. +// InventoryItem: Represents a buy from the DoubleClick Planning inventory +// store. type InventoryItem struct { // AccountId: Account ID of this inventory item. AccountId int64 `json:"accountId,omitempty,string"` - - // AdSlots: Ad slots of this inventory item. If this inventory item - // represents a standalone placement, there will be exactly one ad slot. - // If this inventory item represents a placement group, there will be - // more than one ad slot, each representing one child placement in that - // placement group. + // AdSlots: Ad slots of this inventory item. If this inventory item represents + // a standalone placement, there will be exactly one ad slot. If this inventory + // item represents a placement group, there will be more than one ad slot, each + // representing one child placement in that placement group. AdSlots []*AdSlot `json:"adSlots,omitempty"` - // AdvertiserId: Advertiser ID of this inventory item. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // ContentCategoryId: Content category ID of this inventory item. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // EstimatedClickThroughRate: Estimated click-through rate of this - // inventory item. - EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` - - // EstimatedConversionRate: Estimated conversion rate of this inventory + // EstimatedClickThroughRate: Estimated click-through rate of this inventory // item. + EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` + // EstimatedConversionRate: Estimated conversion rate of this inventory item. EstimatedConversionRate int64 `json:"estimatedConversionRate,omitempty,string"` - // Id: ID of this inventory item. Id int64 `json:"id,omitempty,string"` - // InPlan: Whether this inventory item is in plan. InPlan bool `json:"inPlan,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItem". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this inventory item. + // LastModifiedInfo: Information about the most recent modification of this + // inventory item. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this inventory item. For standalone inventory items, - // this is the same name as that of its only ad slot. For group - // inventory items, this can differ from the name of any of its ad - // slots. + // Name: Name of this inventory item. For standalone inventory items, this is + // the same name as that of its only ad slot. For group inventory items, this + // can differ from the name of any of its ad slots. Name string `json:"name,omitempty"` - // NegotiationChannelId: Negotiation channel ID of this inventory item. NegotiationChannelId int64 `json:"negotiationChannelId,omitempty,string"` - // OrderId: Order ID of this inventory item. OrderId int64 `json:"orderId,omitempty,string"` - // PlacementStrategyId: Placement strategy ID of this inventory item. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - // Pricing: Pricing of this inventory item. Pricing *Pricing `json:"pricing,omitempty"` - // ProjectId: Project ID of this inventory item. ProjectId int64 `json:"projectId,omitempty,string"` - // RfpId: RFP ID of this inventory item. RfpId int64 `json:"rfpId,omitempty,string"` - // SiteId: ID of the site this inventory item is associated with. SiteId int64 `json:"siteId,omitempty,string"` - // SubaccountId: Subaccount ID of this inventory item. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Type: Type of inventory item. // // Possible values: @@ -8067,413 +6572,318 @@ type InventoryItem struct { // "PLANNING_PLACEMENT_TYPE_REGULAR" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItem) MarshalJSON() ([]byte, error) { +func (s InventoryItem) MarshalJSON() ([]byte, error) { type NoMethod InventoryItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItemsListResponse: Inventory item List Response type InventoryItemsListResponse struct { // InventoryItems: Inventory item collection InventoryItems []*InventoryItem `json:"inventoryItems,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItemsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "InventoryItems") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventoryItems") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventoryItems") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItemsListResponse) MarshalJSON() ([]byte, error) { +func (s InventoryItemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod InventoryItemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // KeyValueTargetingExpression: Key Value Targeting Expression. type KeyValueTargetingExpression struct { // Expression: Keyword expression being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { +func (s KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod KeyValueTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LandingPage: Contains information about where a user's browser is -// taken after the user clicks an ad. +// LandingPage: Contains information about where a user's browser is taken +// after the user clicks an ad. type LandingPage struct { - // Default: Whether or not this landing page will be assigned to any ads - // or creatives that do not have a landing page assigned explicitly. - // Only one default landing page is allowed per campaign. + // Default: Whether or not this landing page will be assigned to any ads or + // creatives that do not have a landing page assigned explicitly. Only one + // default landing page is allowed per campaign. Default bool `json:"default,omitempty"` - - // Id: ID of this landing page. This is a read-only, auto-generated - // field. + // Id: ID of this landing page. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#landingPage". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#landingPage". Kind string `json:"kind,omitempty"` - - // Name: Name of this landing page. This is a required field. It must be - // less than 256 characters long, and must be unique among landing pages - // of the same campaign. + // Name: Name of this landing page. This is a required field. It must be less + // than 256 characters long, and must be unique among landing pages of the same + // campaign. Name string `json:"name,omitempty"` - // Url: URL of this landing page. This is a required field. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Default") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Default") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Default") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Default") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LandingPage) MarshalJSON() ([]byte, error) { +func (s LandingPage) MarshalJSON() ([]byte, error) { type NoMethod LandingPage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LandingPagesListResponse: Landing Page List Response type LandingPagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#landingPagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#landingPagesListResponse". Kind string `json:"kind,omitempty"` - // LandingPages: Landing page collection LandingPages []*LandingPage `json:"landingPages,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LandingPagesListResponse) MarshalJSON() ([]byte, error) { +func (s LandingPagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod LandingPagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Language: Contains information about a language that can be targeted -// by ads. +// Language: Contains information about a language that can be targeted by ads. type Language struct { - // Id: Language ID of this language. This is the ID used for targeting - // and generating reports. + // Id: Language ID of this language. This is the ID used for targeting and + // generating reports. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#language". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#language". Kind string `json:"kind,omitempty"` - - // LanguageCode: Format of language code is an ISO 639 two-letter - // language code optionally followed by an underscore followed by an ISO - // 3166 code. Examples are "en" for English or "zh_CN" for Simplified - // Chinese. + // LanguageCode: Format of language code is an ISO 639 two-letter language code + // optionally followed by an underscore followed by an ISO 3166 code. Examples + // are "en" for English or "zh_CN" for Simplified Chinese. LanguageCode string `json:"languageCode,omitempty"` - // Name: Name of this language. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Language) MarshalJSON() ([]byte, error) { +func (s Language) MarshalJSON() ([]byte, error) { type NoMethod Language - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguageTargeting: Language Targeting. type LanguageTargeting struct { - // Languages: Languages that this ad targets. For each language only - // languageId is required. The other fields are populated automatically - // when the ad is inserted or updated. + // Languages: Languages that this ad targets. For each language only languageId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. Languages []*Language `json:"languages,omitempty"` - // ForceSendFields is a list of field names (e.g. "Languages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Languages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Languages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguageTargeting) MarshalJSON() ([]byte, error) { +func (s LanguageTargeting) MarshalJSON() ([]byte, error) { type NoMethod LanguageTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguagesListResponse: Language List Response type LanguagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#languagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#languagesListResponse". Kind string `json:"kind,omitempty"` - // Languages: Language collection. Languages []*Language `json:"languages,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguagesListResponse) MarshalJSON() ([]byte, error) { +func (s LanguagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod LanguagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LastModifiedInfo: Modification timestamp. type LastModifiedInfo struct { // Time: Timestamp of the last change in milliseconds since epoch. Time int64 `json:"time,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Time") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Time") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Time") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Time") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LastModifiedInfo) MarshalJSON() ([]byte, error) { +func (s LastModifiedInfo) MarshalJSON() ([]byte, error) { type NoMethod LastModifiedInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationClause: A group clause made up of list population terms // representing constraints joined by ORs. type ListPopulationClause struct { - // Terms: Terms of this list population clause. Each clause is made up - // of list population terms representing constraints and are joined by - // ORs. + // Terms: Terms of this list population clause. Each clause is made up of list + // population terms representing constraints and are joined by ORs. Terms []*ListPopulationTerm `json:"terms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Terms") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Terms") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Terms") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationClause) MarshalJSON() ([]byte, error) { +func (s ListPopulationClause) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationClause - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationRule: Remarketing List Population Rule. type ListPopulationRule struct { - // FloodlightActivityId: Floodlight activity ID associated with this - // rule. This field can be left blank. + // FloodlightActivityId: Floodlight activity ID associated with this rule. This + // field can be left blank. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightActivityName: Name of floodlight activity associated with - // this rule. This is a read-only, auto-generated field. + // FloodlightActivityName: Name of floodlight activity associated with this + // rule. This is a read-only, auto-generated field. FloodlightActivityName string `json:"floodlightActivityName,omitempty"` - - // ListPopulationClauses: Clauses that make up this list population - // rule. Clauses are joined by ANDs, and the clauses themselves are made - // up of list population terms which are joined by ORs. + // ListPopulationClauses: Clauses that make up this list population rule. + // Clauses are joined by ANDs, and the clauses themselves are made up of list + // population terms which are joined by ORs. ListPopulationClauses []*ListPopulationClause `json:"listPopulationClauses,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationRule) MarshalJSON() ([]byte, error) { +func (s ListPopulationRule) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationTerm: Remarketing List Population Rule Term. type ListPopulationTerm struct { - // Contains: Will be true if the term should check if the user is in the - // list and false if the term should check if the user is not in the - // list. This field is only relevant when type is set to - // LIST_MEMBERSHIP_TERM. False by default. + // Contains: Will be true if the term should check if the user is in the list + // and false if the term should check if the user is not in the list. This + // field is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by + // default. Contains bool `json:"contains,omitempty"` - - // Negation: Whether to negate the comparison result of this term during - // rule evaluation. This field is only relevant when type is left unset - // or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. + // Negation: Whether to negate the comparison result of this term during rule + // evaluation. This field is only relevant when type is left unset or set to + // CUSTOM_VARIABLE_TERM or REFERRER_TERM. Negation bool `json:"negation,omitempty"` - - // Operator: Comparison operator of this term. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Operator: Comparison operator of this term. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. // // Possible values: // "NUM_EQUALS" @@ -8484,763 +6894,579 @@ type ListPopulationTerm struct { // "STRING_CONTAINS" // "STRING_EQUALS" Operator string `json:"operator,omitempty"` - - // RemarketingListId: ID of the list in question. This field is only - // relevant when type is set to LIST_MEMBERSHIP_TERM. + // RemarketingListId: ID of the list in question. This field is only relevant + // when type is set to LIST_MEMBERSHIP_TERM. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - - // Type: List population term type determines the applicable fields in - // this object. If left unset or set to CUSTOM_VARIABLE_TERM, then - // variableName, variableFriendlyName, operator, value, and negation are - // applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and - // contains are applicable. If set to REFERRER_TERM then operator, - // value, and negation are applicable. + // Type: List population term type determines the applicable fields in this + // object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, + // variableFriendlyName, operator, value, and negation are applicable. If set + // to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. + // If set to REFERRER_TERM then operator, value, and negation are applicable. // // Possible values: // "CUSTOM_VARIABLE_TERM" // "LIST_MEMBERSHIP_TERM" // "REFERRER_TERM" Type string `json:"type,omitempty"` - - // Value: Literal to compare the variable to. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Value: Literal to compare the variable to. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. Value string `json:"value,omitempty"` - - // VariableFriendlyName: Friendly name of this term's variable. This is - // a read-only, auto-generated field. This field is only relevant when - // type is left unset or set to CUSTOM_VARIABLE_TERM. + // VariableFriendlyName: Friendly name of this term's variable. This is a + // read-only, auto-generated field. This field is only relevant when type is + // left unset or set to CUSTOM_VARIABLE_TERM. VariableFriendlyName string `json:"variableFriendlyName,omitempty"` - - // VariableName: Name of the variable (U1, U2, etc.) being compared in - // this term. This field is only relevant when type is set to null, + // VariableName: Name of the variable (U1, U2, etc.) being compared in this + // term. This field is only relevant when type is set to null, // CUSTOM_VARIABLE_TERM or REFERRER_TERM. VariableName string `json:"variableName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contains") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contains") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contains") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationTerm) MarshalJSON() ([]byte, error) { +func (s ListPopulationTerm) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationTerm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListTargetingExpression: Remarketing List Targeting Expression. type ListTargetingExpression struct { - // Expression: Expression describing which lists are being targeted by - // the ad. + // Expression: Expression describing which lists are being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListTargetingExpression) MarshalJSON() ([]byte, error) { +func (s ListTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod ListTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LookbackConfiguration: Lookback configuration settings. type LookbackConfiguration struct { - // ClickDuration: Lookback window, in days, from the last time a given - // user clicked on one of your ads. If you enter 0, clicks will not be - // considered as triggering events for floodlight tracking. If you leave + // ClickDuration: Lookback window, in days, from the last time a given user + // clicked on one of your ads. If you enter 0, clicks will not be considered as + // triggering events for floodlight tracking. If you leave this field blank, + // the default value for your account will be used. Acceptable values are 0 to + // 90, inclusive. + ClickDuration int64 `json:"clickDuration,omitempty"` + // PostImpressionActivitiesDuration: Lookback window, in days, from the last + // time a given user viewed one of your ads. If you enter 0, impressions will + // not be considered as triggering events for floodlight tracking. If you leave // this field blank, the default value for your account will be used. // Acceptable values are 0 to 90, inclusive. - ClickDuration int64 `json:"clickDuration,omitempty"` - - // PostImpressionActivitiesDuration: Lookback window, in days, from the - // last time a given user viewed one of your ads. If you enter 0, - // impressions will not be considered as triggering events for - // floodlight tracking. If you leave this field blank, the default value - // for your account will be used. Acceptable values are 0 to 90, - // inclusive. PostImpressionActivitiesDuration int64 `json:"postImpressionActivitiesDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickDuration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickDuration") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickDuration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LookbackConfiguration) MarshalJSON() ([]byte, error) { +func (s LookbackConfiguration) MarshalJSON() ([]byte, error) { type NoMethod LookbackConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Metric: Represents a metric. type Metric struct { // Kind: The kind of resource this is, in this case dfareporting#metric. Kind string `json:"kind,omitempty"` - // Name: The metric name, e.g. dfa:impressions Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metric) MarshalJSON() ([]byte, error) { +func (s Metric) MarshalJSON() ([]byte, error) { type NoMethod Metric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metro: Contains information about a metro region that can be targeted -// by ads. +// Metro: Contains information about a metro region that can be targeted by +// ads. type Metro struct { - // CountryCode: Country code of the country to which this metro region - // belongs. + // CountryCode: Country code of the country to which this metro region belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this metro region - // belongs. + // CountryDartId: DART ID of the country to which this metro region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this metro region. DartId int64 `json:"dartId,omitempty,string"` - - // DmaId: DMA ID of this metro region. This is the ID used for targeting - // and generating reports, and is equivalent to metro_code. + // DmaId: DMA ID of this metro region. This is the ID used for targeting and + // generating reports, and is equivalent to metro_code. DmaId int64 `json:"dmaId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metro". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metro". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro code of this metro region. This is equivalent to - // dma_id. + // MetroCode: Metro code of this metro region. This is equivalent to dma_id. MetroCode string `json:"metroCode,omitempty"` - // Name: Name of this metro region. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metro) MarshalJSON() ([]byte, error) { +func (s Metro) MarshalJSON() ([]byte, error) { type NoMethod Metro - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetrosListResponse: Metro List Response type MetrosListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metrosListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metrosListResponse". Kind string `json:"kind,omitempty"` - // Metros: Metro collection. Metros []*Metro `json:"metros,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetrosListResponse) MarshalJSON() ([]byte, error) { +func (s MetrosListResponse) MarshalJSON() ([]byte, error) { type NoMethod MetrosListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileCarrier: Contains information about a mobile carrier that can -// be targeted by ads. +// MobileCarrier: Contains information about a mobile carrier that can be +// targeted by ads. type MobileCarrier struct { // CountryCode: Country code of the country to which this mobile carrier // belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this mobile carrier - // belongs. + // CountryDartId: DART ID of the country to which this mobile carrier belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this mobile carrier. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarrier". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarrier". Kind string `json:"kind,omitempty"` - // Name: Name of this mobile carrier. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarrier) MarshalJSON() ([]byte, error) { +func (s MobileCarrier) MarshalJSON() ([]byte, error) { type NoMethod MobileCarrier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileCarriersListResponse: Mobile Carrier List Response type MobileCarriersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarriersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarriersListResponse". Kind string `json:"kind,omitempty"` - // MobileCarriers: Mobile carrier collection. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarriersListResponse) MarshalJSON() ([]byte, error) { +func (s MobileCarriersListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileCarriersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObjectFilter: Object Filter. type ObjectFilter struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#objectFilter". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#objectFilter". Kind string `json:"kind,omitempty"` - // ObjectIds: Applicable when status is ASSIGNED. The user has access to // objects with these object IDs. ObjectIds googleapi.Int64s `json:"objectIds,omitempty"` - - // Status: Status of the filter. NONE means the user has access to none - // of the objects. ALL means the user has access to all objects. - // ASSIGNED means the user has access to the objects with IDs in the - // objectIds list. + // Status: Status of the filter. NONE means the user has access to none of the + // objects. ALL means the user has access to all objects. ASSIGNED means the + // user has access to the objects with IDs in the objectIds list. // // Possible values: // "ALL" // "ASSIGNED" // "NONE" Status string `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectFilter) MarshalJSON() ([]byte, error) { +func (s ObjectFilter) MarshalJSON() ([]byte, error) { type NoMethod ObjectFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OffsetPosition: Offset Position. type OffsetPosition struct { // Left: Offset distance from left side of an asset or a window. Left int64 `json:"left,omitempty"` - // Top: Offset distance from top side of an asset or a window. Top int64 `json:"top,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OffsetPosition) MarshalJSON() ([]byte, error) { +func (s OffsetPosition) MarshalJSON() ([]byte, error) { type NoMethod OffsetPosition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OmnitureSettings: Omniture Integration Settings. type OmnitureSettings struct { // OmnitureCostDataEnabled: Whether placement cost data will be sent to - // Omniture. This property can be enabled only if - // omnitureIntegrationEnabled is true. + // Omniture. This property can be enabled only if omnitureIntegrationEnabled is + // true. OmnitureCostDataEnabled bool `json:"omnitureCostDataEnabled,omitempty"` - - // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. - // This property can be enabled only when the "Advanced Ad Serving" - // account setting is enabled. + // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. This + // property can be enabled only when the "Advanced Ad Serving" account setting + // is enabled. OmnitureIntegrationEnabled bool `json:"omnitureIntegrationEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "OmnitureCostDataEnabled") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OmnitureSettings) MarshalJSON() ([]byte, error) { +func (s OmnitureSettings) MarshalJSON() ([]byte, error) { type NoMethod OmnitureSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystem: Contains information about an operating system that -// can be targeted by ads. +// OperatingSystem: Contains information about an operating system that can be +// targeted by ads. type OperatingSystem struct { - // DartId: DART ID of this operating system. This is the ID used for - // targeting. + // DartId: DART ID of this operating system. This is the ID used for targeting. DartId int64 `json:"dartId,omitempty,string"` - // Desktop: Whether this operating system is for desktop. Desktop bool `json:"desktop,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystem". Kind string `json:"kind,omitempty"` - // Mobile: Whether this operating system is for mobile. Mobile bool `json:"mobile,omitempty"` - // Name: Name of this operating system. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DartId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DartId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DartId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystem) MarshalJSON() ([]byte, error) { +func (s OperatingSystem) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersion: Contains information about a particular -// version of an operating system that can be targeted by ads. +// OperatingSystemVersion: Contains information about a particular version of +// an operating system that can be targeted by ads. type OperatingSystemVersion struct { // Id: ID of this operating system version. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersion". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version (leftmost number) of this operating - // system version. + // MajorVersion: Major version (leftmost number) of this operating system + // version. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version (number after the first dot) of this - // operating system version. + // MinorVersion: Minor version (number after the first dot) of this operating + // system version. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this operating system version. Name string `json:"name,omitempty"` - // OperatingSystem: Operating system of this operating system version. OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersion) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersion) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersionsListResponse: Operating System Version List -// Response +// OperatingSystemVersionsListResponse: Operating System Version List Response type OperatingSystemVersionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersionsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystemVersions: Operating system version collection. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperatingSystemsListResponse: Operating System List Response type OperatingSystemsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystems: Operating system collection. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OptimizationActivity: Creative optimization activity. type OptimizationActivity struct { - // FloodlightActivityId: Floodlight activity ID of this optimization - // activity. This is a required field. + // FloodlightActivityId: Floodlight activity ID of this optimization activity. + // This is a required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // FloodlightActivityIdDimensionValue: Dimension value for the ID of the // floodlight activity. This is a read-only, auto-generated field. FloodlightActivityIdDimensionValue *DimensionValue `json:"floodlightActivityIdDimensionValue,omitempty"` - - // Weight: Weight associated with this optimization. The weight assigned - // will be understood in proportion to the weights assigned to the other + // Weight: Weight associated with this optimization. The weight assigned will + // be understood in proportion to the weights assigned to the other // optimization activities. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OptimizationActivity) MarshalJSON() ([]byte, error) { +func (s OptimizationActivity) MarshalJSON() ([]byte, error) { type NoMethod OptimizationActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Order: Describes properties of a DoubleClick Planning order. type Order struct { // AccountId: Account ID of this order. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // ApproverUserProfileIds: IDs for users that have to approve documents - // created for this order. + // ApproverUserProfileIds: IDs for users that have to approve documents created + // for this order. ApproverUserProfileIds googleapi.Int64s `json:"approverUserProfileIds,omitempty"` - // BuyerInvoiceId: Buyer invoice ID associated with this order. BuyerInvoiceId string `json:"buyerInvoiceId,omitempty"` - // BuyerOrganizationName: Name of the buyer organization. BuyerOrganizationName string `json:"buyerOrganizationName,omitempty"` - // Comments: Comments in this order. Comments string `json:"comments,omitempty"` - // Contacts: Contacts for this order. Contacts []*OrderContact `json:"contacts,omitempty"` - // Id: ID of this order. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#order". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#order". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this order. + // LastModifiedInfo: Information about the most recent modification of this + // order. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this order. Name string `json:"name,omitempty"` - // Notes: Notes of this order. Notes string `json:"notes,omitempty"` - - // PlanningTermId: ID of the terms and conditions template used in this - // order. + // PlanningTermId: ID of the terms and conditions template used in this order. PlanningTermId int64 `json:"planningTermId,omitempty,string"` - // ProjectId: Project ID of this order. ProjectId int64 `json:"projectId,omitempty,string"` - // SellerOrderId: Seller order ID associated with this order. SellerOrderId string `json:"sellerOrderId,omitempty"` - // SellerOrganizationName: Name of the seller organization. SellerOrganizationName string `json:"sellerOrganizationName,omitempty"` - // SiteId: Site IDs this order is associated with. SiteId googleapi.Int64s `json:"siteId,omitempty"` - // SiteNames: Free-form site names this order is associated with. SiteNames []string `json:"siteNames,omitempty"` - // SubaccountId: Subaccount ID of this order. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TermsAndConditions: Terms and conditions of this order. TermsAndConditions string `json:"termsAndConditions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Order) MarshalJSON() ([]byte, error) { +func (s Order) MarshalJSON() ([]byte, error) { type NoMethod Order - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderContact: Contact of an order. type OrderContact struct { - // ContactInfo: Free-form information about this contact. It could be - // any information related to this contact in addition to type, title, - // name, and signature user profile ID. + // ContactInfo: Free-form information about this contact. It could be any + // information related to this contact in addition to type, title, name, and + // signature user profile ID. ContactInfo string `json:"contactInfo,omitempty"` - // ContactName: Name of this contact. ContactName string `json:"contactName,omitempty"` - // ContactTitle: Title of this contact. ContactTitle string `json:"contactTitle,omitempty"` - // ContactType: Type of this contact. // // Possible values: @@ -9248,91 +7474,66 @@ type OrderContact struct { // "PLANNING_ORDER_CONTACT_BUYER_CONTACT" // "PLANNING_ORDER_CONTACT_SELLER_CONTACT" ContactType string `json:"contactType,omitempty"` - - // SignatureUserProfileId: ID of the user profile containing the - // signature that will be embedded into order documents. + // SignatureUserProfileId: ID of the user profile containing the signature that + // will be embedded into order documents. SignatureUserProfileId int64 `json:"signatureUserProfileId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ContactInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContactInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContactInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderContact) MarshalJSON() ([]byte, error) { +func (s OrderContact) MarshalJSON() ([]byte, error) { type NoMethod OrderContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OrderDocument: Contains properties of a DoubleClick Planning order -// document. +// OrderDocument: Contains properties of a DoubleClick Planning order document. type OrderDocument struct { // AccountId: Account ID of this order document. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order document. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AmendedOrderDocumentId: The amended order document ID of this order - // document. An order document can be created by optionally amending - // another order document so that the change history can be preserved. + // document. An order document can be created by optionally amending another + // order document so that the change history can be preserved. AmendedOrderDocumentId int64 `json:"amendedOrderDocumentId,omitempty,string"` - // ApprovedByUserProfileIds: IDs of users who have approved this order // document. ApprovedByUserProfileIds googleapi.Int64s `json:"approvedByUserProfileIds,omitempty"` - // Cancelled: Whether this order document is cancelled. Cancelled bool `json:"cancelled,omitempty"` - // CreatedInfo: Information about the creation of this order document. CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"` - // EffectiveDate: Effective date of this order document. EffectiveDate string `json:"effectiveDate,omitempty"` - // Id: ID of this order document. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocument". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocument". Kind string `json:"kind,omitempty"` - - // LastSentRecipients: List of email addresses that received the last - // sent document. - LastSentRecipients []string `json:"lastSentRecipients,omitempty"` - - // LastSentTime: Timestamp of the last email sent with this order + // LastSentRecipients: List of email addresses that received the last sent // document. + LastSentRecipients []string `json:"lastSentRecipients,omitempty"` + // LastSentTime: Timestamp of the last email sent with this order document. LastSentTime string `json:"lastSentTime,omitempty"` - // OrderId: ID of the order from which this order document is created. OrderId int64 `json:"orderId,omitempty,string"` - // ProjectId: Project ID of this order document. ProjectId int64 `json:"projectId,omitempty,string"` - // Signed: Whether this order document has been signed. Signed bool `json:"signed,omitempty"` - // SubaccountId: Subaccount ID of this order document. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Title: Title of this order document. Title string `json:"title,omitempty"` - // Type: Type of this order document // // Possible values: @@ -9340,198 +7541,147 @@ type OrderDocument struct { // "PLANNING_ORDER_TYPE_INSERTION_ORDER" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocument) MarshalJSON() ([]byte, error) { +func (s OrderDocument) MarshalJSON() ([]byte, error) { type NoMethod OrderDocument - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocumentsListResponse: Order document List Response type OrderDocumentsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocumentsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocumentsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // OrderDocuments: Order document collection OrderDocuments []*OrderDocument `json:"orderDocuments,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { +func (s OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderDocumentsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrdersListResponse: Order List Response type OrdersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ordersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ordersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Orders: Order collection. Orders []*Order `json:"orders,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersListResponse) MarshalJSON() ([]byte, error) { +func (s OrdersListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PathToConversionReportCompatibleFields: Represents fields that are // compatible to be selected for a report of type "PATH_TO_CONVERSION". type PathToConversionReportCompatibleFields struct { - // ConversionDimensions: Conversion dimensions which are compatible to - // be selected in the "conversionDimensions" section of the report. + // ConversionDimensions: Conversion dimensions which are compatible to be + // selected in the "conversionDimensions" section of the report. ConversionDimensions []*Dimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: Custom floodlight variables which are - // compatible to be selected in the "customFloodlightVariables" section - // of the report. + // CustomFloodlightVariables: Custom floodlight variables which are compatible + // to be selected in the "customFloodlightVariables" section of the report. CustomFloodlightVariables []*Dimension `json:"customFloodlightVariables,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#pathToConversionReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PerInteractionDimensions: Per-interaction dimensions which are - // compatible to be selected in the "perInteractionDimensions" section - // of the report. + // PerInteractionDimensions: Per-interaction dimensions which are compatible to + // be selected in the "perInteractionDimensions" section of the report. PerInteractionDimensions []*Dimension `json:"perInteractionDimensions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConversionDimensions") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ConversionDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConversionDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConversionDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod PathToConversionReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Placement: Contains properties of a placement. type Placement struct { - // AccountId: Account ID of this placement. This field can be left - // blank. + // AccountId: Account ID of this placement. This field can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this placement. This field can be left - // blank. + // AdvertiserId: Advertiser ID of this placement. This field can be left blank. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement. This field is a required - // field on insertion. + // CampaignId: Campaign ID of this placement. This field is a required field on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - // Comment: Comments for this placement. Comment string `json:"comment,omitempty"` - - // Compatibility: Placement compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices - // or in mobile apps for regular or interstitial ads respectively. APP - // and APP_INTERSTITIAL are no longer allowed for new placement - // insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. This field is required on insertion. + // Compatibility: Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL + // refer to rendering on desktop, on mobile devices or in mobile apps for + // regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no + // longer allowed for new placement insertions. Instead, use DISPLAY or + // DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video + // ads developed with the VAST standard. This field is required on insertion. // // Possible values: // "APP" @@ -9540,113 +7690,85 @@ type Placement struct { // "DISPLAY_INTERSTITIAL" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement. + // ContentCategoryId: ID of the content category assigned to this placement. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement. This is - // a read-only field. + // CreateInfo: Information about the creation of this placement. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID of this placement. On insert, you - // must set either this field or the siteId field to specify the site - // associated with this placement. This is a required field that is - // read-only after insertion. + // DirectorySiteId: Directory site ID of this placement. On insert, you must + // set either this field or the siteId field to specify the site associated + // with this placement. This is a required field that is read-only after + // insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this placement. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this placement. This is a read-only, - // auto-generated field. + // KeyName: Key name of this placement. This is a read-only, auto-generated + // field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placement". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placement". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // LookbackConfiguration: Lookback window settings for this placement. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // Name: Name of this placement.This is a required field and must be - // less than 256 characters long. + // Name: Name of this placement.This is a required field and must be less than + // 256 characters long. Name string `json:"name,omitempty"` - - // PaymentApproved: Whether payment was approved for this placement. - // This is a read-only field relevant only to publisher-paid placements. + // PaymentApproved: Whether payment was approved for this placement. This is a + // read-only field relevant only to publisher-paid placements. PaymentApproved bool `json:"paymentApproved,omitempty"` - - // PaymentSource: Payment source for this placement. This is a required - // field that is read-only after insertion. + // PaymentSource: Payment source for this placement. This is a required field + // that is read-only after insertion. // // Possible values: // "PLACEMENT_AGENCY_PAID" // "PLACEMENT_PUBLISHER_PAID" PaymentSource string `json:"paymentSource,omitempty"` - // PlacementGroupId: ID of this placement's group, if applicable. PlacementGroupId int64 `json:"placementGroupId,omitempty,string"` - - // PlacementGroupIdDimensionValue: Dimension value for the ID of the - // placement group. This is a read-only, auto-generated field. + // PlacementGroupIdDimensionValue: Dimension value for the ID of the placement + // group. This is a read-only, auto-generated field. PlacementGroupIdDimensionValue *DimensionValue `json:"placementGroupIdDimensionValue,omitempty"` - // PlacementStrategyId: ID of the placement strategy assigned to this // placement. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement. This field is - // required on insertion, specifically subfields startDate, endDate and - // pricingType. + // PricingSchedule: Pricing schedule of this placement. This field is required + // on insertion, specifically subfields startDate, endDate and pricingType. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // Primary: Whether this placement is the primary placement of a - // roadblock (placement group). You cannot change this field from true - // to false. Setting this field to true will automatically set the - // primary field on the original primary placement of the roadblock to - // false, and it will automatically set the roadblock's - // primaryPlacementId field to the ID of this placement. + // Primary: Whether this placement is the primary placement of a roadblock + // (placement group). You cannot change this field from true to false. Setting + // this field to true will automatically set the primary field on the original + // primary placement of the roadblock to false, and it will automatically set + // the roadblock's primaryPlacementId field to the ID of this placement. Primary bool `json:"primary,omitempty"` - - // PublisherUpdateInfo: Information about the last publisher update. - // This is a read-only field. + // PublisherUpdateInfo: Information about the last publisher update. This is a + // read-only field. PublisherUpdateInfo *LastModifiedInfo `json:"publisherUpdateInfo,omitempty"` - - // SiteId: Site ID associated with this placement. On insert, you must - // set either this field or the directorySiteId field to specify the - // site associated with this placement. This is a required field that is - // read-only after insertion. + // SiteId: Site ID associated with this placement. On insert, you must set + // either this field or the directorySiteId field to specify the site + // associated with this placement. This is a required field that is read-only + // after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // Size: Size associated with this placement. When inserting or updating - // a placement, only the size ID field is used. This field is required - // on insertion. + // Size: Size associated with this placement. When inserting or updating a + // placement, only the size ID field is used. This field is required on + // insertion. Size *Size `json:"size,omitempty"` - // SslRequired: Whether creatives assigned to this placement must be // SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - // Status: Third-party placement status. // // Possible values: @@ -9657,11 +7779,8 @@ type Placement struct { // "PAYMENT_REJECTED" // "PENDING_REVIEW" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this placement. This field can be left - // blank. + // SubaccountId: Subaccount ID of this placement. This field can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TagFormats: Tag formats to generate for this placement. This field is // required on insertion. // Acceptable values are: @@ -9702,31 +7821,27 @@ type Placement struct { // "PLACEMENT_TAG_TRACKING_IFRAME" // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" TagFormats []string `json:"tagFormats,omitempty"` - // TagSetting: Tag settings for this placement. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOut: Whether Verification and ActiveView are - // disabled for in-stream video creatives for this placement. The same - // setting videoActiveViewOptOut exists on the site level -- the opt out - // occurs if either of these settings are true. These settings are - // distinct from DirectorySites.settings.activeViewOptOut or + // VideoActiveViewOptOut: Whether Verification and ActiveView are disabled for + // in-stream video creatives for this placement. The same setting + // videoActiveViewOptOut exists on the site level -- the opt out occurs if + // either of these settings are true. These settings are distinct from + // DirectorySites.settings.activeViewOptOut or // Sites.siteSettings.activeViewOptOut which only apply to display ads. - // However, Accounts.activeViewOptOut opts out both video traffic, as - // well as display ads, from Verification and ActiveView. + // However, Accounts.activeViewOptOut opts out both video traffic, as well as + // display ads, from Verification and ActiveView. VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"` - - // VideoSettings: A collection of settings which affect video creatives - // served through this placement. Applicable to placements with - // IN_STREAM_VIDEO compatibility. + // VideoSettings: A collection of settings which affect video creatives served + // through this placement. Applicable to placements with IN_STREAM_VIDEO + // compatibility. VideoSettings *VideoSettings `json:"videoSettings,omitempty"` - - // VpaidAdapterChoice: VPAID adapter setting for this placement. - // Controls which VPAID format the measurement adapter will use for - // in-stream video creatives assigned to this placement. + // VpaidAdapterChoice: VPAID adapter setting for this placement. Controls which + // VPAID format the measurement adapter will use for in-stream video creatives + // assigned to this placement. // - // Note: Flash is no longer supported. This field now defaults to HTML5 - // when the following values are provided: FLASH, BOTH. + // Note: Flash is no longer supported. This field now defaults to HTML5 when + // the following values are provided: FLASH, BOTH. // // Possible values: // "BOTH" @@ -9735,31 +7850,24 @@ type Placement struct { // "HTML5" VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Placement) MarshalJSON() ([]byte, error) { +func (s Placement) MarshalJSON() ([]byte, error) { type NoMethod Placement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementAssignment: Placement Assignment. @@ -9767,419 +7875,319 @@ type PlacementAssignment struct { // Active: Whether this placement assignment is active. When true, the // placement will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // PlacementId: ID of the placement to be assigned. This is a required - // field. + // PlacementId: ID of the placement to be assigned. This is a required field. PlacementId int64 `json:"placementId,omitempty,string"` - - // PlacementIdDimensionValue: Dimension value for the ID of the - // placement. This is a read-only, auto-generated field. + // PlacementIdDimensionValue: Dimension value for the ID of the placement. This + // is a read-only, auto-generated field. PlacementIdDimensionValue *DimensionValue `json:"placementIdDimensionValue,omitempty"` - - // SslRequired: Whether the placement to be assigned requires SSL. This - // is a read-only field that is auto-generated when the ad is inserted - // or updated. + // SslRequired: Whether the placement to be assigned requires SSL. This is a + // read-only field that is auto-generated when the ad is inserted or updated. SslRequired bool `json:"sslRequired,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementAssignment) MarshalJSON() ([]byte, error) { +func (s PlacementAssignment) MarshalJSON() ([]byte, error) { type NoMethod PlacementAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroup: Contains properties of a package or roadblock. type PlacementGroup struct { - // AccountId: Account ID of this placement group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this placement group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this placement group. This is a required + // field on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement group is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement group. This field is - // required on insertion. + // CampaignId: Campaign ID of this placement group. This field is required on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ChildPlacementIds: IDs of placements which are assigned to this - // placement group. This is a read-only, auto-generated field. + // ChildPlacementIds: IDs of placements which are assigned to this placement + // group. This is a read-only, auto-generated field. ChildPlacementIds googleapi.Int64s `json:"childPlacementIds,omitempty"` - // Comment: Comments for this placement group. Comment string `json:"comment,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement group. + // ContentCategoryId: ID of the content category assigned to this placement + // group. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement group. - // This is a read-only field. + // CreateInfo: Information about the creation of this placement group. This is + // a read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID associated with this placement - // group. On insert, you must set either this field or the site_id field - // to specify the site associated with this placement group. This is a - // required field that is read-only after insertion. + // DirectorySiteId: Directory site ID associated with this placement group. On + // insert, you must set either this field or the site_id field to specify the + // site associated with this placement group. This is a required field that is + // read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - - // Id: ID of this placement group. This is a read-only, auto-generated - // field. + // Id: ID of this placement group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement group. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement group. This + // is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroup". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement group. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement group. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this placement group. This is a required field and must - // be less than 256 characters long. + // Name: Name of this placement group. This is a required field and must be + // less than 256 characters long. Name string `json:"name,omitempty"` - - // PlacementGroupType: Type of this placement group. A package is a - // simple group of placements that acts as a single pricing point for a - // group of tags. A roadblock is a group of placements that not only - // acts as a single pricing point, but also assumes that all the tags in - // it will be served at the same time. A roadblock requires one of its - // assigned placements to be marked as primary for reporting. This field - // is required on insertion. + // PlacementGroupType: Type of this placement group. A package is a simple + // group of placements that acts as a single pricing point for a group of tags. + // A roadblock is a group of placements that not only acts as a single pricing + // point, but also assumes that all the tags in it will be served at the same + // time. A roadblock requires one of its assigned placements to be marked as + // primary for reporting. This field is required on insertion. // // Possible values: // "PLACEMENT_PACKAGE" // "PLACEMENT_ROADBLOCK" PlacementGroupType string `json:"placementGroupType,omitempty"` - - // PlacementStrategyId: ID of the placement strategy assigned to this - // placement group. + // PlacementStrategyId: ID of the placement strategy assigned to this placement + // group. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement group. This field - // is required on insertion. + // PricingSchedule: Pricing schedule of this placement group. This field is + // required on insertion. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // PrimaryPlacementId: ID of the primary placement, used to calculate - // the media cost of a roadblock (placement group). Modifying this field - // will automatically modify the primary field on all affected roadblock - // child placements. + // PrimaryPlacementId: ID of the primary placement, used to calculate the media + // cost of a roadblock (placement group). Modifying this field will + // automatically modify the primary field on all affected roadblock child + // placements. PrimaryPlacementId int64 `json:"primaryPlacementId,omitempty,string"` - - // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the - // primary placement. This is a read-only, auto-generated field. + // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the primary + // placement. This is a read-only, auto-generated field. PrimaryPlacementIdDimensionValue *DimensionValue `json:"primaryPlacementIdDimensionValue,omitempty"` - - // SiteId: Site ID associated with this placement group. On insert, you - // must set either this field or the directorySiteId field to specify - // the site associated with this placement group. This is a required - // field that is read-only after insertion. + // SiteId: Site ID associated with this placement group. On insert, you must + // set either this field or the directorySiteId field to specify the site + // associated with this placement group. This is a required field that is + // read-only after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // SubaccountId: Subaccount ID of this placement group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this placement group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroup) MarshalJSON() ([]byte, error) { +func (s PlacementGroup) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroupsListResponse: Placement Group List Response type PlacementGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementGroups: Placement group collection. PlacementGroups []*PlacementGroup `json:"placementGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategiesListResponse: Placement Strategy List Response type PlacementStrategiesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementStrategies: Placement strategy collection. PlacementStrategies []*PlacementStrategy `json:"placementStrategies,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategy: Contains properties of a placement strategy. type PlacementStrategy struct { - // AccountId: Account ID of this placement strategy.This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement strategy.This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this placement strategy. This is a read-only, - // auto-generated field. + // Id: ID of this placement strategy. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategy". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategy". Kind string `json:"kind,omitempty"` - - // Name: Name of this placement strategy. This is a required field. It - // must be less than 256 characters long and unique among placement - // strategies of the same account. + // Name: Name of this placement strategy. This is a required field. It must be + // less than 256 characters long and unique among placement strategies of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategy) MarshalJSON() ([]byte, error) { +func (s PlacementStrategy) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementTag: Placement Tag type PlacementTag struct { // PlacementId: Placement ID PlacementId int64 `json:"placementId,omitempty,string"` - // TagDatas: Tags generated for this placement. TagDatas []*TagData `json:"tagDatas,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlacementId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PlacementId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PlacementId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementTag) MarshalJSON() ([]byte, error) { +func (s PlacementTag) MarshalJSON() ([]byte, error) { type NoMethod PlacementTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsGenerateTagsResponse: Placement GenerateTags Response type PlacementsGenerateTagsResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsGenerateTagsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsGenerateTagsResponse". Kind string `json:"kind,omitempty"` - // PlacementTags: Set of generated tags for the specified placements. PlacementTags []*PlacementTag `json:"placementTags,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsGenerateTagsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsListResponse: Placement List Response type PlacementsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Placements: Placement collection. Placements []*Placement `json:"placements,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformType: Contains information about a platform type that can be @@ -10187,88 +8195,68 @@ func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { type PlatformType struct { // Id: ID of this platform type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformType". Kind string `json:"kind,omitempty"` - // Name: Name of this platform type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformType) MarshalJSON() ([]byte, error) { +func (s PlatformType) MarshalJSON() ([]byte, error) { type NoMethod PlatformType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformTypesListResponse: Platform Type List Response type PlatformTypesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformTypesListResponse". Kind string `json:"kind,omitempty"` - // PlatformTypes: Platform type collection. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformTypesListResponse) MarshalJSON() ([]byte, error) { +func (s PlatformTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlatformTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PopupWindowProperties: Popup Window Properties. type PopupWindowProperties struct { // Dimension: Popup dimension for a creative. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA and all - // VPAID + // Applicable to the following creative types: all RICH_MEDIA and all VPAID Dimension *Size `json:"dimension,omitempty"` - - // Offset: Upper-left corner coordinates of the popup window. Applicable - // if positionType is COORDINATES. + // Offset: Upper-left corner coordinates of the popup window. Applicable if + // positionType is COORDINATES. Offset *OffsetPosition `json:"offset,omitempty"` - // PositionType: Popup window position either centered or at specific // coordinate. // @@ -10276,130 +8264,97 @@ type PopupWindowProperties struct { // "CENTER" // "COORDINATES" PositionType string `json:"positionType,omitempty"` - // ShowAddressBar: Whether to display the browser address bar. ShowAddressBar bool `json:"showAddressBar,omitempty"` - // ShowMenuBar: Whether to display the browser menu bar. ShowMenuBar bool `json:"showMenuBar,omitempty"` - // ShowScrollBar: Whether to display the browser scroll bar. ShowScrollBar bool `json:"showScrollBar,omitempty"` - // ShowStatusBar: Whether to display the browser status bar. ShowStatusBar bool `json:"showStatusBar,omitempty"` - // ShowToolBar: Whether to display the browser tool bar. ShowToolBar bool `json:"showToolBar,omitempty"` - // Title: Title of popup window. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimension") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PopupWindowProperties) MarshalJSON() ([]byte, error) { +func (s PopupWindowProperties) MarshalJSON() ([]byte, error) { type NoMethod PopupWindowProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostalCode: Contains information about a postal code that can be -// targeted by ads. +// PostalCode: Contains information about a postal code that can be targeted by +// ads. type PostalCode struct { // Code: Postal code. This is equivalent to the id field. Code string `json:"code,omitempty"` - - // CountryCode: Country code of the country to which this postal code - // belongs. + // CountryCode: Country code of the country to which this postal code belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this postal code - // belongs. + // CountryDartId: DART ID of the country to which this postal code belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this postal code. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCode". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCode". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCode) MarshalJSON() ([]byte, error) { +func (s PostalCode) MarshalJSON() ([]byte, error) { type NoMethod PostalCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PostalCodesListResponse: Postal Code List Response type PostalCodesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCodesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCodesListResponse". Kind string `json:"kind,omitempty"` - // PostalCodes: Postal code collection. PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCodesListResponse) MarshalJSON() ([]byte, error) { +func (s PostalCodesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PostalCodesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Pricing: Pricing Information @@ -10411,29 +8366,25 @@ type Pricing struct { // "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY" // "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE" CapCostType string `json:"capCostType,omitempty"` - // EndDate: End date of this inventory item. EndDate string `json:"endDate,omitempty"` - - // Flights: Flights of this inventory item. A flight (a.k.a. pricing - // period) represents the inventory item pricing information for a - // specific period of time. + // Flights: Flights of this inventory item. A flight (a.k.a. pricing period) + // represents the inventory item pricing information for a specific period of + // time. Flights []*Flight `json:"flights,omitempty"` - - // GroupType: Group type of this inventory item if it represents a - // placement group. Is null otherwise. There are two type of placement - // groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of - // inventory items that acts as a single pricing point for a group of - // tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory - // items that not only acts as a single pricing point, but also assumes - // that all the tags in it will be served at the same time. A roadblock - // requires one of its assigned inventory items to be marked as primary. + // GroupType: Group type of this inventory item if it represents a placement + // group. Is null otherwise. There are two type of placement groups: + // PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items + // that acts as a single pricing point for a group of tags. + // PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that + // not only acts as a single pricing point, but also assumes that all the tags + // in it will be served at the same time. A roadblock requires one of its + // assigned inventory items to be marked as primary. // // Possible values: // "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" // "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" GroupType string `json:"groupType,omitempty"` - // PricingType: Pricing type of this inventory item. // // Possible values: @@ -10446,31 +8397,24 @@ type Pricing struct { // "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS" // "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS" PricingType string `json:"pricingType,omitempty"` - // StartDate: Start date of this inventory item. StartDate string `json:"startDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CapCostType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pricing) MarshalJSON() ([]byte, error) { +func (s Pricing) MarshalJSON() ([]byte, error) { type NoMethod Pricing - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedule: Pricing Schedule @@ -10482,33 +8426,25 @@ type PricingSchedule struct { // "CAP_COST_MONTHLY" // "CAP_COST_NONE" CapCostOption string `json:"capCostOption,omitempty"` - // DisregardOverdelivery: Whether cap costs are ignored by ad serving. DisregardOverdelivery bool `json:"disregardOverdelivery,omitempty"` - - // EndDate: Placement end date. This date must be later than, or the - // same day as, the placement start date, but not later than the - // campaign end date. If, for example, you set 6/25/2015 as both the - // start and end dates, the effective placement date is just that day - // only, 6/25/2015. The hours, minutes, and seconds of the end date - // should not be set, as doing so will result in an error. This field is - // required on insertion. + // EndDate: Placement end date. This date must be later than, or the same day + // as, the placement start date, but not later than the campaign end date. If, + // for example, you set 6/25/2015 as both the start and end dates, the + // effective placement date is just that day only, 6/25/2015. The hours, + // minutes, and seconds of the end date should not be set, as doing so will + // result in an error. This field is required on insertion. EndDate string `json:"endDate,omitempty"` - - // Flighted: Whether this placement is flighted. If true, pricing - // periods will be computed automatically. + // Flighted: Whether this placement is flighted. If true, pricing periods will + // be computed automatically. Flighted bool `json:"flighted,omitempty"` - - // FloodlightActivityId: Floodlight activity ID associated with this - // placement. This field should be set when placement pricing type is - // set to PRICING_TYPE_CPA. + // FloodlightActivityId: Floodlight activity ID associated with this placement. + // This field should be set when placement pricing type is set to + // PRICING_TYPE_CPA. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // PricingPeriods: Pricing periods for this placement. PricingPeriods []*PricingSchedulePricingPeriod `json:"pricingPeriods,omitempty"` - - // PricingType: Placement pricing type. This field is required on - // insertion. + // PricingType: Placement pricing type. This field is required on insertion. // // Possible values: // "PRICING_TYPE_CPA" @@ -10518,101 +8454,80 @@ type PricingSchedule struct { // "PRICING_TYPE_FLAT_RATE_CLICKS" // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" PricingType string `json:"pricingType,omitempty"` - - // StartDate: Placement start date. This date must be later than, or the - // same day as, the campaign start date. The hours, minutes, and seconds - // of the start date should not be set, as doing so will result in an - // error. This field is required on insertion. + // StartDate: Placement start date. This date must be later than, or the same + // day as, the campaign start date. The hours, minutes, and seconds of the + // start date should not be set, as doing so will result in an error. This + // field is required on insertion. StartDate string `json:"startDate,omitempty"` - - // TestingStartDate: Testing start date of this placement. The hours, - // minutes, and seconds of the start date should not be set, as doing so - // will result in an error. + // TestingStartDate: Testing start date of this placement. The hours, minutes, + // and seconds of the start date should not be set, as doing so will result in + // an error. TestingStartDate string `json:"testingStartDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CapCostOption") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostOption") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostOption") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedule) MarshalJSON() ([]byte, error) { +func (s PricingSchedule) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedulePricingPeriod: Pricing Period type PricingSchedulePricingPeriod struct { - // EndDate: Pricing period end date. This date must be later than, or - // the same day as, the pricing period start date, but not later than - // the placement end date. The period end date can be the same date as - // the period start date. If, for example, you set 6/25/2015 as both the - // start and end dates, the effective pricing period date is just that - // day only, 6/25/2015. The hours, minutes, and seconds of the end date - // should not be set, as doing so will result in an error. + // EndDate: Pricing period end date. This date must be later than, or the same + // day as, the pricing period start date, but not later than the placement end + // date. The period end date can be the same date as the period start date. If, + // for example, you set 6/25/2015 as both the start and end dates, the + // effective pricing period date is just that day only, 6/25/2015. The hours, + // minutes, and seconds of the end date should not be set, as doing so will + // result in an error. EndDate string `json:"endDate,omitempty"` - // PricingComment: Comments for this pricing period. PricingComment string `json:"pricingComment,omitempty"` - // RateOrCostNanos: Rate or cost of this pricing period in nanos (i.e., - // multipled by 1000000000). Acceptable values are 0 to - // 1000000000000000000, inclusive. + // multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, + // inclusive. RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"` - - // StartDate: Pricing period start date. This date must be later than, - // or the same day as, the placement start date. The hours, minutes, and - // seconds of the start date should not be set, as doing so will result - // in an error. + // StartDate: Pricing period start date. This date must be later than, or the + // same day as, the placement start date. The hours, minutes, and seconds of + // the start date should not be set, as doing so will result in an error. StartDate string `json:"startDate,omitempty"` - - // Units: Units of this pricing period. Acceptable values are 0 to - // 10000000000, inclusive. + // Units: Units of this pricing period. Acceptable values are 0 to 10000000000, + // inclusive. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { +func (s PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedulePricingPeriod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Project: Contains properties of a DoubleClick Planning project. type Project struct { // AccountId: Account ID of this project. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this project. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AudienceAgeGroup: Audience age group of this project. // // Possible values: @@ -10624,193 +8539,142 @@ type Project struct { // "PLANNING_AUDIENCE_AGE_65_OR_MORE" // "PLANNING_AUDIENCE_AGE_UNKNOWN" AudienceAgeGroup string `json:"audienceAgeGroup,omitempty"` - // AudienceGender: Audience gender of this project. // // Possible values: // "PLANNING_AUDIENCE_GENDER_FEMALE" // "PLANNING_AUDIENCE_GENDER_MALE" AudienceGender string `json:"audienceGender,omitempty"` - - // Budget: Budget of this project in the currency specified by the - // current account. The value stored in this field represents only the - // non-fractional amount. For example, for USD, the smallest value that - // can be represented by this field is 1 US dollar. + // Budget: Budget of this project in the currency specified by the current + // account. The value stored in this field represents only the non-fractional + // amount. For example, for USD, the smallest value that can be represented by + // this field is 1 US dollar. Budget int64 `json:"budget,omitempty,string"` - // ClientBillingCode: Client billing code of this project. ClientBillingCode string `json:"clientBillingCode,omitempty"` - // ClientName: Name of the project client. ClientName string `json:"clientName,omitempty"` - // EndDate: End date of the project. EndDate string `json:"endDate,omitempty"` - // Id: ID of this project. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#project". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#project". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this project. + // LastModifiedInfo: Information about the most recent modification of this + // project. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this project. Name string `json:"name,omitempty"` - // Overview: Overview of this project. Overview string `json:"overview,omitempty"` - // StartDate: Start date of the project. StartDate string `json:"startDate,omitempty"` - // SubaccountId: Subaccount ID of this project. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TargetClicks: Number of clicks that the advertiser is targeting. TargetClicks int64 `json:"targetClicks,omitempty,string"` - - // TargetConversions: Number of conversions that the advertiser is - // targeting. + // TargetConversions: Number of conversions that the advertiser is targeting. TargetConversions int64 `json:"targetConversions,omitempty,string"` - // TargetCpaNanos: CPA that the advertiser is targeting. TargetCpaNanos int64 `json:"targetCpaNanos,omitempty,string"` - // TargetCpcNanos: CPC that the advertiser is targeting. TargetCpcNanos int64 `json:"targetCpcNanos,omitempty,string"` - - // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser - // is targeting. + // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser is + // targeting. TargetCpmActiveViewNanos int64 `json:"targetCpmActiveViewNanos,omitempty,string"` - // TargetCpmNanos: CPM that the advertiser is targeting. TargetCpmNanos int64 `json:"targetCpmNanos,omitempty,string"` - - // TargetImpressions: Number of impressions that the advertiser is - // targeting. + // TargetImpressions: Number of impressions that the advertiser is targeting. TargetImpressions int64 `json:"targetImpressions,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Project) MarshalJSON() ([]byte, error) { +func (s Project) MarshalJSON() ([]byte, error) { type NoMethod Project - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProjectsListResponse: Project List Response type ProjectsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#projectsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#projectsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Projects: Project collection. Projects []*Project `json:"projects,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProjectsListResponse) MarshalJSON() ([]byte, error) { +func (s ProjectsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ProjectsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReachReportCompatibleFields: Represents fields that are compatible to -// be selected for a report of type "REACH". +// ReachReportCompatibleFields: Represents fields that are compatible to be +// selected for a report of type "REACH". type ReachReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - - // ReachByFrequencyMetrics: Metrics which are compatible to be selected - // in the "reachByFrequencyMetricNames" section of the report. + // ReachByFrequencyMetrics: Metrics which are compatible to be selected in the + // "reachByFrequencyMetricNames" section of the report. ReachByFrequencyMetrics []*Metric `json:"reachByFrequencyMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Recipient: Represents a recipient. @@ -10821,165 +8685,122 @@ type Recipient struct { // "ATTACHMENT" // "LINK" DeliveryType string `json:"deliveryType,omitempty"` - // Email: The email address of the recipient. Email string `json:"email,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#recipient. + // Kind: The kind of resource this is, in this case dfareporting#recipient. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliveryType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliveryType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliveryType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Recipient) MarshalJSON() ([]byte, error) { +func (s Recipient) MarshalJSON() ([]byte, error) { type NoMethod Recipient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Region: Contains information about a region that can be targeted by -// ads. +// Region: Contains information about a region that can be targeted by ads. type Region struct { - // CountryCode: Country code of the country to which this region - // belongs. + // CountryCode: Country code of the country to which this region belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this region. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#region". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#region". Kind string `json:"kind,omitempty"` - // Name: Name of this region. Name string `json:"name,omitempty"` - // RegionCode: Region code. RegionCode string `json:"regionCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Region) MarshalJSON() ([]byte, error) { +func (s Region) MarshalJSON() ([]byte, error) { type NoMethod Region - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RegionsListResponse: Region List Response type RegionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#regionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#regionsListResponse". Kind string `json:"kind,omitempty"` - // Regions: Region collection. Regions []*Region `json:"regions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegionsListResponse) MarshalJSON() ([]byte, error) { +func (s RegionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RegionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingList: Contains properties of a remarketing list. -// Remarketing enables you to create lists of users who have performed -// specific actions on a site, then target ads to members of those -// lists. This resource can be used to manage remarketing lists that are -// owned by your advertisers. To see all remarketing lists that are -// visible to your advertisers, including those that are shared to your -// advertiser or account, use the TargetableRemarketingLists resource. +// RemarketingList: Contains properties of a remarketing list. Remarketing +// enables you to create lists of users who have performed specific actions on +// a site, then target ads to members of those lists. This resource can be used +// to manage remarketing lists that are owned by your advertisers. To see all +// remarketing lists that are visible to your advertisers, including those that +// are shared to your advertiser or account, use the TargetableRemarketingLists +// resource. type RemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // remarketing list. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Remarketing list description. Description string `json:"description,omitempty"` - // Id: Remarketing list ID. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingList". Kind string `json:"kind,omitempty"` - - // LifeSpan: Number of days that a user should remain in the remarketing - // list without an impression. Acceptable values are 1 to 540, - // inclusive. + // LifeSpan: Number of days that a user should remain in the remarketing list + // without an impression. Acceptable values are 1 to 540, inclusive. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListPopulationRule: Rule used to populate the remarketing list with - // users. + // ListPopulationRule: Rule used to populate the remarketing list with users. ListPopulationRule *ListPopulationRule `json:"listPopulationRule,omitempty"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this remarketing list was originated. // // Possible values: @@ -10995,198 +8816,146 @@ type RemarketingList struct { // "REMARKETING_LIST_SOURCE_XFP" // "REMARKETING_LIST_SOURCE_YOUTUBE" ListSource string `json:"listSource,omitempty"` - - // Name: Name of the remarketing list. This is a required field. Must be - // no greater than 128 characters long. + // Name: Name of the remarketing list. This is a required field. Must be no + // greater than 128 characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingList) MarshalJSON() ([]byte, error) { +func (s RemarketingList) MarshalJSON() ([]byte, error) { type NoMethod RemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingListShare: Contains properties of a remarketing list's -// sharing information. Sharing allows other accounts or advertisers to -// target to your remarketing lists. This resource can be used to manage -// remarketing list sharing to other accounts and advertisers. +// RemarketingListShare: Contains properties of a remarketing list's sharing +// information. Sharing allows other accounts or advertisers to target to your +// remarketing lists. This resource can be used to manage remarketing list +// sharing to other accounts and advertisers. type RemarketingListShare struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListShare". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListShare". Kind string `json:"kind,omitempty"` - - // RemarketingListId: Remarketing list ID. This is a read-only, - // auto-generated field. + // RemarketingListId: Remarketing list ID. This is a read-only, auto-generated + // field. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - // SharedAccountIds: Accounts that the remarketing list is shared with. SharedAccountIds googleapi.Int64s `json:"sharedAccountIds,omitempty"` - - // SharedAdvertiserIds: Advertisers that the remarketing list is shared - // with. + // SharedAdvertiserIds: Advertisers that the remarketing list is shared with. SharedAdvertiserIds googleapi.Int64s `json:"sharedAdvertiserIds,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListShare) MarshalJSON() ([]byte, error) { +func (s RemarketingListShare) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListShare - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RemarketingListsListResponse: Remarketing list response type RemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // RemarketingLists: Remarketing list collection. RemarketingLists []*RemarketingList `json:"remarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s RemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Report: Represents a Report resource. type Report struct { // AccountId: The account ID to which this report belongs. AccountId int64 `json:"accountId,omitempty,string"` - // Criteria: The report criteria for a report of type "STANDARD". Criteria *ReportCriteria `json:"criteria,omitempty"` - // CrossDimensionReachCriteria: The report criteria for a report of type // "CROSS_DIMENSION_REACH". CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"` - // Delivery: The report's email delivery settings. Delivery *ReportDelivery `json:"delivery,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // FileName: The filename used when generating report files for this - // report. + // FileName: The filename used when generating report files for this report. FileName string `json:"fileName,omitempty"` - - // FloodlightCriteria: The report criteria for a report of type - // "FLOODLIGHT". + // FloodlightCriteria: The report criteria for a report of type "FLOODLIGHT". FloodlightCriteria *ReportFloodlightCriteria `json:"floodlightCriteria,omitempty"` - - // Format: The output format of the report. If not specified, default - // format is "CSV". Note that the actual format in the completed report - // file might differ if for instance the report's size exceeds the - // format's capabilities. "CSV" will then be the fallback format. + // Format: The output format of the report. If not specified, default format is + // "CSV". Note that the actual format in the completed report file might differ + // if for instance the report's size exceeds the format's capabilities. "CSV" + // will then be the fallback format. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID identifying this report resource. Id int64 `json:"id,omitempty,string"` - // Kind: The kind of resource this is, in this case dfareporting#report. Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp (in milliseconds since epoch) of when - // this report was last modified. + // LastModifiedTime: The timestamp (in milliseconds since epoch) of when this + // report was last modified. LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"` - // Name: The name of the report. Name string `json:"name,omitempty"` - // OwnerProfileId: The user profile id of the owner of this report. OwnerProfileId int64 `json:"ownerProfileId,omitempty,string"` - // PathToConversionCriteria: The report criteria for a report of type // "PATH_TO_CONVERSION". PathToConversionCriteria *ReportPathToConversionCriteria `json:"pathToConversionCriteria,omitempty"` - // ReachCriteria: The report criteria for a report of type "REACH". ReachCriteria *ReportReachCriteria `json:"reachCriteria,omitempty"` - - // Schedule: The report's schedule. Can only be set if the report's - // 'dateRange' is a relative date range and the relative date range is - // not "TODAY". + // Schedule: The report's schedule. Can only be set if the report's 'dateRange' + // is a relative date range and the relative date range is not "TODAY". Schedule *ReportSchedule `json:"schedule,omitempty"` - - // SubAccountId: The subaccount ID to which this report belongs if - // applicable. + // SubAccountId: The subaccount ID to which this report belongs if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - // Type: The type of the report. // // Possible values: @@ -11197,89 +8966,68 @@ type Report struct { // "STANDARD" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Report) MarshalJSON() ([]byte, error) { +func (s Report) MarshalJSON() ([]byte, error) { type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportCriteria: The report criteria for a report of type "STANDARD". type ReportCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range for which this report should be run. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - - // Dimensions: The list of standard dimensions the report should - // include. + // Dimensions: The list of standard dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCrossDimensionReachCriteria: The report criteria for a report -// of type "CROSS_DIMENSION_REACH". +// ReportCrossDimensionReachCriteria: The report criteria for a report of type +// "CROSS_DIMENSION_REACH". type ReportCrossDimensionReachCriteria struct { // Breakdown: The list of dimensions the report should include. Breakdown []*SortedDimension `json:"breakdown,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // Dimension: The dimension option. // // Possible values: @@ -11288,409 +9036,306 @@ type ReportCrossDimensionReachCriteria struct { // "SITE_BY_ADVERTISER" // "SITE_BY_CAMPAIGN" Dimension string `json:"dimension,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. + // DimensionFilters: The list of filters on which dimensions are filtered. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // OverlapMetricNames: The list of names of overlap metrics the report - // should include. + // OverlapMetricNames: The list of names of overlap metrics the report should + // include. OverlapMetricNames []string `json:"overlapMetricNames,omitempty"` - // Pivoted: Whether the report is pivoted or not. Defaults to true. Pivoted bool `json:"pivoted,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCrossDimensionReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportDelivery: The report's email delivery settings. type ReportDelivery struct { // EmailOwner: Whether the report should be emailed to the report owner. EmailOwner bool `json:"emailOwner,omitempty"` - - // EmailOwnerDeliveryType: The type of delivery for the owner to - // receive, if enabled. + // EmailOwnerDeliveryType: The type of delivery for the owner to receive, if + // enabled. // // Possible values: // "ATTACHMENT" // "LINK" EmailOwnerDeliveryType string `json:"emailOwnerDeliveryType,omitempty"` - // Message: The message to be sent with each email. Message string `json:"message,omitempty"` - // Recipients: The list of recipients to which to email the report. Recipients []*Recipient `json:"recipients,omitempty"` - // ForceSendFields is a list of field names (e.g. "EmailOwner") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EmailOwner") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EmailOwner") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportDelivery) MarshalJSON() ([]byte, error) { +func (s ReportDelivery) MarshalJSON() ([]byte, error) { type NoMethod ReportDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportFloodlightCriteria: The report criteria for a report of type // "FLOODLIGHT". type ReportFloodlightCriteria struct { - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportFloodlightCriteriaReportProperties `json:"reportProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomRichMediaEvents") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomRichMediaEvents") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomRichMediaEvents") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportFloodlightCriteriaReportProperties: The properties of the -// report. +// ReportFloodlightCriteriaReportProperties: The properties of the report. type ReportFloodlightCriteriaReportProperties struct { - // IncludeAttributedIPConversions: Include conversions that have no - // cookie, but do have an exposure path. + // IncludeAttributedIPConversions: Include conversions that have no cookie, but + // do have an exposure path. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // ForceSendFields is a list of field names (e.g. // "IncludeAttributedIPConversions") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "IncludeAttributedIPConversions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "IncludeAttributedIPConversions") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportPathToConversionCriteria: The report criteria for a report of -// type "PATH_TO_CONVERSION". +// ReportPathToConversionCriteria: The report criteria for a report of type +// "PATH_TO_CONVERSION". type ReportPathToConversionCriteria struct { // ActivityFilters: The list of 'dfa:activity' values to filter on. ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - - // ConversionDimensions: The list of conversion dimensions the report - // should include. + // ConversionDimensions: The list of conversion dimensions the report should + // include. ConversionDimensions []*SortedDimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: The list of custom floodlight variables - // the report should include. + // CustomFloodlightVariables: The list of custom floodlight variables the + // report should include. CustomFloodlightVariables []*SortedDimension `json:"customFloodlightVariables,omitempty"` - - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // PerInteractionDimensions: The list of per interaction dimensions the - // report should include. + // PerInteractionDimensions: The list of per interaction dimensions the report + // should include. PerInteractionDimensions []*SortedDimension `json:"perInteractionDimensions,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportPathToConversionCriteriaReportProperties `json:"reportProperties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActivityFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActivityFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActivityFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportPathToConversionCriteriaReportProperties: The properties of the // report. type ReportPathToConversionCriteriaReportProperties struct { - // ClicksLookbackWindow: DFA checks to see if a click interaction - // occurred within the specified period of time before a conversion. By - // default the value is pulled from Floodlight or you can manually enter - // a custom value. Valid values: 1-90. + // ClicksLookbackWindow: DFA checks to see if a click interaction occurred + // within the specified period of time before a conversion. By default the + // value is pulled from Floodlight or you can manually enter a custom value. + // Valid values: 1-90. ClicksLookbackWindow int64 `json:"clicksLookbackWindow,omitempty"` - - // ImpressionsLookbackWindow: DFA checks to see if an impression - // interaction occurred within the specified period of time before a - // conversion. By default the value is pulled from Floodlight or you can - // manually enter a custom value. Valid values: 1-90. + // ImpressionsLookbackWindow: DFA checks to see if an impression interaction + // occurred within the specified period of time before a conversion. By default + // the value is pulled from Floodlight or you can manually enter a custom + // value. Valid values: 1-90. ImpressionsLookbackWindow int64 `json:"impressionsLookbackWindow,omitempty"` - // IncludeAttributedIPConversions: Deprecated: has no effect. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // MaximumClickInteractions: The maximum number of click interactions to - // include in the report. Advertisers currently paying for E2C reports - // get up to 200 (100 clicks, 100 impressions). If another advertiser in - // your network is paying for E2C, you can have up to 5 total exposures - // per report. + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumClickInteractions int64 `json:"maximumClickInteractions,omitempty"` - - // MaximumImpressionInteractions: The maximum number of click - // interactions to include in the report. Advertisers currently paying - // for E2C reports get up to 200 (100 clicks, 100 impressions). If - // another advertiser in your network is paying for E2C, you can have up - // to 5 total exposures per report. + // MaximumImpressionInteractions: The maximum number of click interactions to + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumImpressionInteractions int64 `json:"maximumImpressionInteractions,omitempty"` - // MaximumInteractionGap: The maximum amount of time that can take place - // between interactions (clicks or impressions) by the same user. Valid - // values: 1-90. + // between interactions (clicks or impressions) by the same user. Valid values: + // 1-90. MaximumInteractionGap int64 `json:"maximumInteractionGap,omitempty"` - // PivotOnInteractionPath: Enable pivoting on interaction path. PivotOnInteractionPath bool `json:"pivotOnInteractionPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClicksLookbackWindow") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClicksLookbackWindow") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportReachCriteria: The report criteria for a report of type -// "REACH". +// ReportReachCriteria: The report criteria for a report of type "REACH". type ReportReachCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // EnableAllDimensionCombinations: Whether to enable all reach dimension - // combinations in the report. Defaults to false. If enabled, the date - // range of the report should be within the last three months. + // combinations in the report. Defaults to false. If enabled, the date range of + // the report should be within the last three months. EnableAllDimensionCombinations bool `json:"enableAllDimensionCombinations,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ReachByFrequencyMetricNames: The list of names of Reach By Frequency // metrics the report should include. ReachByFrequencyMetricNames []string `json:"reachByFrequencyMetricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportSchedule: The report's schedule. Can only be set if the -// report's 'dateRange' is a relative date range and the relative date -// range is not "TODAY". +// ReportSchedule: The report's schedule. Can only be set if the report's +// 'dateRange' is a relative date range and the relative date range is not +// "TODAY". type ReportSchedule struct { - // Active: Whether the schedule is active or not. Must be set to either - // true or false. + // Active: Whether the schedule is active or not. Must be set to either true or + // false. Active bool `json:"active,omitempty"` - - // Every: Defines every how many days, weeks or months the report should - // be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or + // Every: Defines every how many days, weeks or months the report should be + // run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or // "MONTHLY". Every int64 `json:"every,omitempty"` - - // ExpirationDate: The expiration date when the scheduled report stops - // running. + // ExpirationDate: The expiration date when the scheduled report stops running. ExpirationDate string `json:"expirationDate,omitempty"` - // Repeats: The interval for which the report is repeated. Note: // - "DAILY" also requires field "every" to be set. - // - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be - // set. - // - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be - // set. + // - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be set. + // + // - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be set. Repeats string `json:"repeats,omitempty"` - - // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled - // reports should run. + // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled reports + // should run. // // Possible values: // "FRIDAY" @@ -11701,154 +9346,120 @@ type ReportSchedule struct { // "TUESDAY" // "WEDNESDAY" RepeatsOnWeekDays []string `json:"repeatsOnWeekDays,omitempty"` - - // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports - // whether reports should be repeated on the same day of the month as - // "startDate" or the same day of the week of the month. + // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports whether + // reports should be repeated on the same day of the month as "startDate" or + // the same day of the week of the month. // Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), - // "DAY_OF_MONTH" would run subsequent reports on the 2nd of every - // Month, and "WEEK_OF_MONTH" would run subsequent reports on the first - // Monday of the month. + // "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and + // "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the + // month. // // Possible values: // "DAY_OF_MONTH" // "WEEK_OF_MONTH" RunsOnDayOfMonth string `json:"runsOnDayOfMonth,omitempty"` - - // StartDate: Start date of date range for which scheduled reports - // should be run. + // StartDate: Start date of date range for which scheduled reports should be + // run. StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportSchedule) MarshalJSON() ([]byte, error) { +func (s ReportSchedule) MarshalJSON() ([]byte, error) { type NoMethod ReportSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCompatibleFields: Represents fields that are compatible to be -// selected for a report of type "STANDARD". +// ReportCompatibleFields: Represents fields that are compatible to be selected +// for a report of type "STANDARD". type ReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportList: Represents the list of reports. type ReportList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The reports returned in this response. Items []*Report `json:"items,omitempty"` - // Kind: The kind of list this is, in this case dfareporting#reportList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through reports. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through reports. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportList) MarshalJSON() ([]byte, error) { +func (s ReportList) MarshalJSON() ([]byte, error) { type NoMethod ReportList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportsConfiguration: Reporting Configuration type ReportsConfiguration struct { - // ExposureToConversionEnabled: Whether the exposure to conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure to conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // LookbackConfiguration: Default lookback windows for new advertisers - // in this account. + // LookbackConfiguration: Default lookback windows for new advertisers in this + // account. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // ReportGenerationTimeZoneId: Report generation time zone ID of this - // account. This is a required field that can only be changed by a - // superuser. + // ReportGenerationTimeZoneId: Report generation time zone ID of this account. + // This is a required field that can only be changed by a superuser. // Acceptable values are: // // - "1" for "America/New_York" @@ -11865,30 +9476,22 @@ type ReportsConfiguration struct { // - "12" for "Pacific/Auckland" // - "13" for "America/Sao_Paulo" ReportGenerationTimeZoneId int64 `json:"reportGenerationTimeZoneId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "ExposureToConversionEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExposureToConversionEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportsConfiguration) MarshalJSON() ([]byte, error) { +func (s ReportsConfiguration) MarshalJSON() ([]byte, error) { type NoMethod ReportsConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RichMediaExitOverride: Rich Media Exit Override. @@ -11896,249 +9499,186 @@ type RichMediaExitOverride struct { // ClickThroughUrl: Click-through URL of this rich media exit override. // Applicable if the enabled field is set to true. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // Enabled: Whether to use the clickThroughUrl. If false, the - // creative-level exit will be used. + // Enabled: Whether to use the clickThroughUrl. If false, the creative-level + // exit will be used. Enabled bool `json:"enabled,omitempty"` - - // ExitId: ID for the override to refer to a specific exit in the - // creative. + // ExitId: ID for the override to refer to a specific exit in the creative. ExitId int64 `json:"exitId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RichMediaExitOverride) MarshalJSON() ([]byte, error) { +func (s RichMediaExitOverride) MarshalJSON() ([]byte, error) { type NoMethod RichMediaExitOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Rule: A rule associates an asset with a targeting template for -// asset-level targeting. Applicable to INSTREAM_VIDEO creatives. +// Rule: A rule associates an asset with a targeting template for asset-level +// targeting. Applicable to INSTREAM_VIDEO creatives. type Rule struct { - // AssetId: A creativeAssets[].id. This should refer to one of the - // parent assets in this creative. This is a required field. + // AssetId: A creativeAssets[].id. This should refer to one of the parent + // assets in this creative. This is a required field. AssetId int64 `json:"assetId,omitempty,string"` - // Name: A user-friendly name for this rule. This is a required field. Name string `json:"name,omitempty"` - // TargetingTemplateId: A targeting template ID. The targeting from the - // targeting template will be used to determine whether this asset - // should be served. This is a required field. + // targeting template will be used to determine whether this asset should be + // served. This is a required field. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AssetId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssetId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssetId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rule) MarshalJSON() ([]byte, error) { +func (s Rule) MarshalJSON() ([]byte, error) { type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Site: Contains properties of a site. type Site struct { - // AccountId: Account ID of this site. This is a read-only field that - // can be left blank. + // AccountId: Account ID of this site. This is a read-only field that can be + // left blank. AccountId int64 `json:"accountId,omitempty,string"` - // Approved: Whether this site is approved. Approved bool `json:"approved,omitempty"` - // DirectorySiteId: Directory site associated with this site. This is a // required field that is read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // Id: ID of this site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this site. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this site. This is a read-only, auto-generated - // field. + // KeyName: Key name of this site. This is a read-only, auto-generated field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#site". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#site". Kind string `json:"kind,omitempty"` - - // Name: Name of this site.This is a required field. Must be less than - // 128 characters long. If this site is under a subaccount, the name - // must be unique among sites of the same subaccount. Otherwise, this - // site is a top-level site, and the name must be unique among top-level - // sites of the same account. + // Name: Name of this site.This is a required field. Must be less than 128 + // characters long. If this site is under a subaccount, the name must be unique + // among sites of the same subaccount. Otherwise, this site is a top-level + // site, and the name must be unique among top-level sites of the same account. Name string `json:"name,omitempty"` - // SiteContacts: Site contacts. SiteContacts []*SiteContact `json:"siteContacts,omitempty"` - // SiteSettings: Site-wide settings. SiteSettings *SiteSettings `json:"siteSettings,omitempty"` - - // SubaccountId: Subaccount ID of this site. This is a read-only field - // that can be left blank. + // SubaccountId: Subaccount ID of this site. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Site) MarshalJSON() ([]byte, error) { +func (s Site) MarshalJSON() ([]byte, error) { type NoMethod Site - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteContact: Site Contact type SiteContact struct { // Address: Address of this site contact. Address string `json:"address,omitempty"` - // ContactType: Site contact type. // // Possible values: // "SALES_PERSON" // "TRAFFICKER" ContactType string `json:"contactType,omitempty"` - // Email: Email address of this site contact. This is a required field. Email string `json:"email,omitempty"` - // FirstName: First name of this site contact. FirstName string `json:"firstName,omitempty"` - - // Id: ID of this site contact. This is a read-only, auto-generated - // field. + // Id: ID of this site contact. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // LastName: Last name of this site contact. LastName string `json:"lastName,omitempty"` - // Phone: Primary phone number of this site contact. Phone string `json:"phone,omitempty"` - // Title: Title or designation of this site contact. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteContact) MarshalJSON() ([]byte, error) { +func (s SiteContact) MarshalJSON() ([]byte, error) { type NoMethod SiteContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteSettings: Site Settings type SiteSettings struct { - // ActiveViewOptOut: Whether active view creatives are disabled for this - // site. + // ActiveViewOptOut: Whether active view creatives are disabled for this site. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - // CreativeSettings: Site-wide creative settings. CreativeSettings *CreativeSettings `json:"creativeSettings,omitempty"` - - // DisableBrandSafeAds: Whether brand safe ads are disabled for this - // site. + // DisableBrandSafeAds: Whether brand safe ads are disabled for this site. DisableBrandSafeAds bool `json:"disableBrandSafeAds,omitempty"` - // DisableNewCookie: Whether new cookies are disabled for this site. DisableNewCookie bool `json:"disableNewCookie,omitempty"` - // LookbackConfiguration: Lookback window settings for this site. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // TagSetting: Configuration settings for dynamic and image floodlight - // tags. + // TagSetting: Configuration settings for dynamic and image floodlight tags. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView - // for in-stream video creatives are disabled by default for new - // placements created under this site. This value will be used to - // populate the placement.videoActiveViewOptOut field, when no value is - // specified for the new placement. + // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView for + // in-stream video creatives are disabled by default for new placements created + // under this site. This value will be used to populate the + // placement.videoActiveViewOptOut field, when no value is specified for the + // new placement. VideoActiveViewOptOutTemplate bool `json:"videoActiveViewOptOutTemplate,omitempty"` - - // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new - // placements created under this site. This value will be used to - // populate the placements.vpaidAdapterChoice field, when no value is - // specified for the new placement. Controls which VPAID format the - // measurement adapter will use for in-stream video creatives assigned - // to the placement. The publisher's specifications will typically - // determine this setting. For VPAID creatives, the adapter format will - // match the VPAID format (HTML5 VPAID creatives use the HTML5 - // adapter). + // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new placements + // created under this site. This value will be used to populate the + // placements.vpaidAdapterChoice field, when no value is specified for the new + // placement. Controls which VPAID format the measurement adapter will use for + // in-stream video creatives assigned to the placement. The publisher's + // specifications will typically determine this setting. For VPAID creatives, + // the adapter format will match the VPAID format (HTML5 VPAID creatives use + // the HTML5 adapter). // - // Note: Flash is no longer supported. This field now defaults to HTML5 - // when the following values are provided: FLASH, BOTH. + // Note: Flash is no longer supported. This field now defaults to HTML5 when + // the following values are provided: FLASH, BOTH. // // Possible values: // "BOTH" @@ -12146,195 +9686,146 @@ type SiteSettings struct { // "FLASH" // "HTML5" VpaidAdapterChoiceTemplate string `json:"vpaidAdapterChoiceTemplate,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteSettings) MarshalJSON() ([]byte, error) { +func (s SiteSettings) MarshalJSON() ([]byte, error) { type NoMethod SiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SitesListResponse: Site List Response type SitesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Sites: Site collection. Sites []*Site `json:"sites,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SitesListResponse) MarshalJSON() ([]byte, error) { +func (s SitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Size: Represents the dimensions of ads, placements, creatives, or -// creative assets. +// Size: Represents the dimensions of ads, placements, creatives, or creative +// assets. type Size struct { - // Height: Height of this size. Acceptable values are 0 to 32767, - // inclusive. + // Height: Height of this size. Acceptable values are 0 to 32767, inclusive. Height int64 `json:"height,omitempty"` - // Iab: IAB standard size. This is a read-only, auto-generated field. Iab bool `json:"iab,omitempty"` - // Id: ID of this size. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#size". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#size". Kind string `json:"kind,omitempty"` - - // Width: Width of this size. Acceptable values are 0 to 32767, - // inclusive. + // Width: Width of this size. Acceptable values are 0 to 32767, inclusive. Width int64 `json:"width,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Size) MarshalJSON() ([]byte, error) { +func (s Size) MarshalJSON() ([]byte, error) { type NoMethod Size - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SizesListResponse: Size List Response type SizesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sizesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sizesListResponse". Kind string `json:"kind,omitempty"` - // Sizes: Size collection. Sizes []*Size `json:"sizes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SizesListResponse) MarshalJSON() ([]byte, error) { +func (s SizesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SizesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SkippableSetting: Skippable Settings type SkippableSetting struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#skippableSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#skippableSetting". Kind string `json:"kind,omitempty"` - - // ProgressOffset: Amount of time to play videos served to this - // placement before counting a view. Applicable when skippable is true. + // ProgressOffset: Amount of time to play videos served to this placement + // before counting a view. Applicable when skippable is true. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // SkipOffset: Amount of time to play videos served to this placement - // before the skip button should appear. Applicable when skippable is - // true. + // SkipOffset: Amount of time to play videos served to this placement before + // the skip button should appear. Applicable when skippable is true. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can skip creatives served to this - // placement. + // Skippable: Whether the user can skip creatives served to this placement. Skippable bool `json:"skippable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SkippableSetting) MarshalJSON() ([]byte, error) { +func (s SkippableSetting) MarshalJSON() ([]byte, error) { type NoMethod SkippableSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SortedDimension: Represents a sorted dimension. @@ -12342,38 +9833,30 @@ type SortedDimension struct { // Kind: The kind of resource this is, in this case // dfareporting#sortedDimension. Kind string `json:"kind,omitempty"` - // Name: The name of the dimension. Name string `json:"name,omitempty"` - // SortOrder: An optional sort order for the dimension column. // // Possible values: // "ASCENDING" // "DESCENDING" SortOrder string `json:"sortOrder,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SortedDimension) MarshalJSON() ([]byte, error) { +func (s SortedDimension) MarshalJSON() ([]byte, error) { type NoMethod SortedDimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Subaccount: Contains properties of a DCM subaccount. @@ -12381,103 +9864,78 @@ type Subaccount struct { // AccountId: ID of the account that contains this subaccount. This is a // read-only field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AvailablePermissionIds: IDs of the available user role permissions - // for this subaccount. + // AvailablePermissionIds: IDs of the available user role permissions for this + // subaccount. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // Id: ID of this subaccount. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccount". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccount". Kind string `json:"kind,omitempty"` - - // Name: Name of this subaccount. This is a required field. Must be less - // than 128 characters long and be unique among subaccounts of the same - // account. + // Name: Name of this subaccount. This is a required field. Must be less than + // 128 characters long and be unique among subaccounts of the same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Subaccount) MarshalJSON() ([]byte, error) { +func (s Subaccount) MarshalJSON() ([]byte, error) { type NoMethod Subaccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SubaccountsListResponse: Subaccount List Response type SubaccountsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Subaccounts: Subaccount collection. Subaccounts []*Subaccount `json:"subaccounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubaccountsListResponse) MarshalJSON() ([]byte, error) { +func (s SubaccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod SubaccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagData: Placement Tag Data type TagData struct { - // AdId: Ad associated with this placement tag. Applicable only when - // format is PLACEMENT_TAG_TRACKING. + // AdId: Ad associated with this placement tag. Applicable only when format is + // PLACEMENT_TAG_TRACKING. AdId int64 `json:"adId,omitempty,string"` - // ClickTag: Tag string to record a click. ClickTag string `json:"clickTag,omitempty"` - - // CreativeId: Creative associated with this placement tag. Applicable - // only when format is PLACEMENT_TAG_TRACKING. + // CreativeId: Creative associated with this placement tag. Applicable only + // when format is PLACEMENT_TAG_TRACKING. CreativeId int64 `json:"creativeId,omitempty,string"` - // Format: TagData tag format of this tag. // // Possible values: @@ -12501,196 +9959,152 @@ type TagData struct { // "PLACEMENT_TAG_TRACKING_IFRAME" // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" Format string `json:"format,omitempty"` - // ImpressionTag: Tag string for serving an ad. ImpressionTag string `json:"impressionTag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdId") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagData) MarshalJSON() ([]byte, error) { +func (s TagData) MarshalJSON() ([]byte, error) { type NoMethod TagData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSetting: Tag Settings type TagSetting struct { - // AdditionalKeyValues: Additional key-values to be included in tags. - // Each key-value pair must be of the form key=value, and pairs must be - // separated by a semicolon (;). Keys and values must not contain - // commas. For example, id=2;color=red is a valid value for this field. + // AdditionalKeyValues: Additional key-values to be included in tags. Each + // key-value pair must be of the form key=value, and pairs must be separated by + // a semicolon (;). Keys and values must not contain commas. For example, + // id=2;color=red is a valid value for this field. AdditionalKeyValues string `json:"additionalKeyValues,omitempty"` - - // IncludeClickThroughUrls: Whether static landing page URLs should be - // included in the tags. This setting applies only to placements. + // IncludeClickThroughUrls: Whether static landing page URLs should be included + // in the tags. This setting applies only to placements. IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"` - - // IncludeClickTracking: Whether click-tracking string should be - // included in the tags. + // IncludeClickTracking: Whether click-tracking string should be included in + // the tags. IncludeClickTracking bool `json:"includeClickTracking,omitempty"` - - // KeywordOption: Option specifying how keywords are embedded in ad - // tags. This setting can be used to specify whether keyword - // placeholders are inserted in placement tags for this site. Publishers - // can then add keywords to those placeholders. + // KeywordOption: Option specifying how keywords are embedded in ad tags. This + // setting can be used to specify whether keyword placeholders are inserted in + // placement tags for this site. Publishers can then add keywords to those + // placeholders. // // Possible values: // "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" // "IGNORE" // "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" KeywordOption string `json:"keywordOption,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalKeyValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalKeyValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSetting) MarshalJSON() ([]byte, error) { +func (s TagSetting) MarshalJSON() ([]byte, error) { type NoMethod TagSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSettings: Dynamic and Image Tag Settings. type TagSettings struct { // DynamicTagEnabled: Whether dynamic floodlight tags are enabled. DynamicTagEnabled bool `json:"dynamicTagEnabled,omitempty"` - // ImageTagEnabled: Whether image tags are enabled. ImageTagEnabled bool `json:"imageTagEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTagEnabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTagEnabled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSettings) MarshalJSON() ([]byte, error) { +func (s TagSettings) MarshalJSON() ([]byte, error) { type NoMethod TagSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetWindow: Target Window. type TargetWindow struct { // CustomHtml: User-entered value. CustomHtml string `json:"customHtml,omitempty"` - - // TargetWindowOption: Type of browser window for which the backup image - // of the flash creative can be displayed. + // TargetWindowOption: Type of browser window for which the backup image of the + // flash creative can be displayed. // // Possible values: // "CURRENT_WINDOW" // "CUSTOM" // "NEW_WINDOW" TargetWindowOption string `json:"targetWindowOption,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomHtml") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomHtml") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomHtml") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetWindow) MarshalJSON() ([]byte, error) { +func (s TargetWindow) MarshalJSON() ([]byte, error) { type NoMethod TargetWindow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetableRemarketingList: Contains properties of a targetable -// remarketing list. Remarketing enables you to create lists of users -// who have performed specific actions on a site, then target ads to -// members of those lists. This resource is a read-only view of a -// remarketing list to be used to faciliate targeting ads to specific -// lists. Remarketing lists that are owned by your advertisers and those -// that are shared to your advertisers or account are accessible via -// this resource. To manage remarketing lists that are owned by your -// advertisers, use the RemarketingLists resource. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TargetableRemarketingList: Contains properties of a targetable remarketing +// list. Remarketing enables you to create lists of users who have performed +// specific actions on a site, then target ads to members of those lists. This +// resource is a read-only view of a remarketing list to be used to faciliate +// targeting ads to specific lists. Remarketing lists that are owned by your +// advertisers and those that are shared to your advertisers or account are +// accessible via this resource. To manage remarketing lists that are owned by +// your advertisers, use the RemarketingLists resource. type TargetableRemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this targetable remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // targetable remarketing list. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Targetable remarketing list description. Description string `json:"description,omitempty"` - // Id: Targetable remarketing list ID. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingList". Kind string `json:"kind,omitempty"` - // LifeSpan: Number of days that a user should remain in the targetable // remarketing list without an impression. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this targetable remarketing list was // originated. // @@ -12707,304 +10121,230 @@ type TargetableRemarketingList struct { // "REMARKETING_LIST_SOURCE_XFP" // "REMARKETING_LIST_SOURCE_YOUTUBE" ListSource string `json:"listSource,omitempty"` - // Name: Name of the targetable remarketing list. Is no greater than 128 // characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingList) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingList) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetableRemarketingListsListResponse: Targetable remarketing list -// response +// TargetableRemarketingListsListResponse: Targetable remarketing list response type TargetableRemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetableRemarketingLists: Targetable remarketing list collection. TargetableRemarketingLists []*TargetableRemarketingList `json:"targetableRemarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetingTemplate: Contains properties of a targeting template. A -// targeting template encapsulates targeting information which can be -// reused across multiple ads. +// TargetingTemplate: Contains properties of a targeting template. A targeting +// template encapsulates targeting information which can be reused across +// multiple ads. type TargetingTemplate struct { - // AccountId: Account ID of this targeting template. This field, if left - // unset, will be auto-generated on insert and is read-only after - // insert. + // AccountId: Account ID of this targeting template. This field, if left unset, + // will be auto-generated on insert and is read-only after insert. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this targeting template. This is a - // required field on insert and is read-only after insert. + // AdvertiserId: Advertiser ID of this targeting template. This is a required + // field on insert and is read-only after insert. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // DayPartTargeting: Time and day targeting criteria. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - // GeoTargeting: Geographical targeting criteria. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - - // Id: ID of this targeting template. This is a read-only, - // auto-generated field. + // Id: ID of this targeting template. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // KeyValueTargetingExpression: Key-value targeting criteria. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplate". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplate". Kind string `json:"kind,omitempty"` - // LanguageTargeting: Language targeting criteria. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - // ListTargetingExpression: Remarketing list targeting criteria. ListTargetingExpression *ListTargetingExpression `json:"listTargetingExpression,omitempty"` - - // Name: Name of this targeting template. This field is required. It - // must be less than 256 characters long and unique within an - // advertiser. + // Name: Name of this targeting template. This field is required. It must be + // less than 256 characters long and unique within an advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this targeting template. This field, - // if left unset, will be auto-generated on insert and is read-only - // after insert. + // SubaccountId: Subaccount ID of this targeting template. This field, if left + // unset, will be auto-generated on insert and is read-only after insert. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TechnologyTargeting: Technology platform targeting criteria. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplate) MarshalJSON() ([]byte, error) { +func (s TargetingTemplate) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetingTemplatesListResponse: Targeting Template List Response type TargetingTemplatesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplatesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplatesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetingTemplates: Targeting template collection. TargetingTemplates []*TargetingTemplate `json:"targetingTemplates,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { +func (s TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplatesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TechnologyTargeting: Technology Targeting. type TechnologyTargeting struct { // Browsers: Browsers that this ad targets. For each browser either set - // browserVersionId or dartId along with the version numbers. If both - // are specified, only browserVersionId will be used. The other fields - // are populated automatically when the ad is inserted or updated. + // browserVersionId or dartId along with the version numbers. If both are + // specified, only browserVersionId will be used. The other fields are + // populated automatically when the ad is inserted or updated. Browsers []*Browser `json:"browsers,omitempty"` - - // ConnectionTypes: Connection types that this ad targets. For each - // connection type only id is required. The other fields are populated - // automatically when the ad is inserted or updated. + // ConnectionTypes: Connection types that this ad targets. For each connection + // type only id is required. The other fields are populated automatically when + // the ad is inserted or updated. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - // MobileCarriers: Mobile carriers that this ad targets. For each mobile // carrier only id is required, and the other fields are populated - // automatically when the ad is inserted or updated. If targeting a - // mobile carrier, do not set targeting for any zip codes. + // automatically when the ad is inserted or updated. If targeting a mobile + // carrier, do not set targeting for any zip codes. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - - // OperatingSystemVersions: Operating system versions that this ad - // targets. To target all versions, use operatingSystems. For each - // operating system version, only id is required. The other fields are - // populated automatically when the ad is inserted or updated. If - // targeting an operating system version, do not set targeting for the - // corresponding operating system in operatingSystems. + // OperatingSystemVersions: Operating system versions that this ad targets. To + // target all versions, use operatingSystems. For each operating system + // version, only id is required. The other fields are populated automatically + // when the ad is inserted or updated. If targeting an operating system + // version, do not set targeting for the corresponding operating system in + // operatingSystems. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - - // OperatingSystems: Operating systems that this ad targets. To target - // specific versions, use operatingSystemVersions. For each operating - // system only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting an - // operating system, do not set targeting for operating system versions - // for the same operating system. + // OperatingSystems: Operating systems that this ad targets. To target specific + // versions, use operatingSystemVersions. For each operating system only dartId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting an operating system, do not set targeting + // for operating system versions for the same operating system. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - - // PlatformTypes: Platform types that this ad targets. For example, - // desktop, mobile, or tablet. For each platform type, only id is - // required, and the other fields are populated automatically when the - // ad is inserted or updated. + // PlatformTypes: Platform types that this ad targets. For example, desktop, + // mobile, or tablet. For each platform type, only id is required, and the + // other fields are populated automatically when the ad is inserted or updated. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TechnologyTargeting) MarshalJSON() ([]byte, error) { +func (s TechnologyTargeting) MarshalJSON() ([]byte, error) { type NoMethod TechnologyTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyAuthenticationToken: Third Party Authentication Token type ThirdPartyAuthenticationToken struct { // Name: Name of the third-party authentication token. Name string `json:"name,omitempty"` - - // Value: Value of the third-party authentication token. This is a - // read-only, auto-generated field. + // Value: Value of the third-party authentication token. This is a read-only, + // auto-generated field. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { +func (s ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyAuthenticationToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyTrackingUrl: Third-party Tracking URL. type ThirdPartyTrackingUrl struct { - // ThirdPartyUrlType: Third-party URL type for in-stream video - // creatives. + // ThirdPartyUrlType: Third-party URL type for in-stream video creatives. // // Possible values: // "CLICK_TRACKING" @@ -13027,32 +10367,24 @@ type ThirdPartyTrackingUrl struct { // "VIDEO_STOP" // "VIDEO_THIRD_QUARTILE" ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"` - // Url: URL for the specified third-party URL type. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { +func (s ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyTrackingUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TranscodeSetting: Transcode Settings @@ -13060,37 +10392,28 @@ type TranscodeSetting struct { // EnabledVideoFormats: Whitelist of video formats to be served to this // placement. Set this list to null or empty to serve all video formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#transcodeSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#transcodeSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnabledVideoFormats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnabledVideoFormats") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TranscodeSetting) MarshalJSON() ([]byte, error) { +func (s TranscodeSetting) MarshalJSON() ([]byte, error) { type NoMethod TranscodeSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserDefinedVariableConfiguration: User Defined Variable -// configuration. +// UserDefinedVariableConfiguration: User Defined Variable configuration. type UserDefinedVariableConfiguration struct { // DataType: Data type for the variable. This is a required field. // @@ -13098,12 +10421,10 @@ type UserDefinedVariableConfiguration struct { // "NUMBER" // "STRING" DataType string `json:"dataType,omitempty"` - // ReportName: User-friendly name for the variable which will appear in - // reports. This is a required field, must be less than 64 characters - // long, and cannot contain the following characters: ""<>". + // reports. This is a required field, must be less than 64 characters long, and + // cannot contain the following characters: ""<>". ReportName string `json:"reportName,omitempty"` - // VariableType: Variable name in the tag. This is a required field. // // Possible values: @@ -13208,188 +10529,141 @@ type UserDefinedVariableConfiguration struct { // "U98" // "U99" VariableType string `json:"variableType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { +func (s UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { type NoMethod UserDefinedVariableConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfile: Represents a UserProfile resource. type UserProfile struct { // AccountId: The account ID to which this profile belongs. AccountId int64 `json:"accountId,omitempty,string"` - // AccountName: The account name this profile belongs to. AccountName string `json:"accountName,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#userProfile. + // Kind: The kind of resource this is, in this case dfareporting#userProfile. Kind string `json:"kind,omitempty"` - // ProfileId: The unique ID of the user profile. ProfileId int64 `json:"profileId,omitempty,string"` - - // SubAccountId: The sub account ID this profile belongs to if - // applicable. + // SubAccountId: The sub account ID this profile belongs to if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - - // SubAccountName: The sub account name this profile belongs to if - // applicable. + // SubAccountName: The sub account name this profile belongs to if applicable. SubAccountName string `json:"subAccountName,omitempty"` - // UserName: The user name. UserName string `json:"userName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfile) MarshalJSON() ([]byte, error) { +func (s UserProfile) MarshalJSON() ([]byte, error) { type NoMethod UserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfileList: Represents the list of user profiles. type UserProfileList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The user profiles returned in this response. Items []*UserProfile `json:"items,omitempty"` - - // Kind: The kind of list this is, in this case - // dfareporting#userProfileList. + // Kind: The kind of list this is, in this case dfareporting#userProfileList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfileList) MarshalJSON() ([]byte, error) { +func (s UserProfileList) MarshalJSON() ([]byte, error) { type NoMethod UserProfileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserRole: Contains properties of auser role, which is used to manage -// user access. +// UserRole: Contains properties of auser role, which is used to manage user +// access. type UserRole struct { - // AccountId: Account ID of this user role. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this user role. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // DefaultUserRole: Whether this is a default user role. Default user - // roles are created by the system for the account/subaccount and cannot - // be modified or deleted. Each default user role comes with a basic set - // of preassigned permissions. + // DefaultUserRole: Whether this is a default user role. Default user roles are + // created by the system for the account/subaccount and cannot be modified or + // deleted. Each default user role comes with a basic set of preassigned + // permissions. DefaultUserRole bool `json:"defaultUserRole,omitempty"` - // Id: ID of this user role. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRole". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRole". Kind string `json:"kind,omitempty"` - - // Name: Name of this user role. This is a required field. Must be less - // than 256 characters long. If this user role is under a subaccount, - // the name must be unique among sites of the same subaccount. - // Otherwise, this user role is a top-level user role, and the name must - // be unique among top-level user roles of the same account. + // Name: Name of this user role. This is a required field. Must be less than + // 256 characters long. If this user role is under a subaccount, the name must + // be unique among sites of the same subaccount. Otherwise, this user role is a + // top-level user role, and the name must be unique among top-level user roles + // of the same account. Name string `json:"name,omitempty"` - - // ParentUserRoleId: ID of the user role that this user role is based on - // or copied from. This is a required field. + // ParentUserRoleId: ID of the user role that this user role is based on or + // copied from. This is a required field. ParentUserRoleId int64 `json:"parentUserRoleId,omitempty,string"` - // Permissions: List of permissions associated with this user role. Permissions []*UserRolePermission `json:"permissions,omitempty"` - - // SubaccountId: Subaccount ID of this user role. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this user role. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRole) MarshalJSON() ([]byte, error) { +func (s UserRole) MarshalJSON() ([]byte, error) { type NoMethod UserRole - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermission: Contains properties of a user role permission. @@ -13403,46 +10677,35 @@ type UserRolePermission struct { // "SUBACCOUNT_AND_ACCOUNT_ALWAYS" // "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" Availability string `json:"availability,omitempty"` - // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermission". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission. Name string `json:"name,omitempty"` - - // PermissionGroupId: ID of the permission group that this user role - // permission belongs to. + // PermissionGroupId: ID of the permission group that this user role permission + // belongs to. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Availability") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Availability") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Availability") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermission) MarshalJSON() ([]byte, error) { +func (s UserRolePermission) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroup: Represents a grouping of related user role @@ -13450,152 +10713,117 @@ func (s *UserRolePermission) MarshalJSON() ([]byte, error) { type UserRolePermissionGroup struct { // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroup) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroupsListResponse: User Role Permission Group List // Response type UserRolePermissionGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissionGroups: User role permission group collection. UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionsListResponse: User Role Permission List Response type UserRolePermissionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissions: User role permission collection. UserRolePermissions []*UserRolePermission `json:"userRolePermissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolesListResponse: User Role List Response type UserRolesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // UserRoles: User role collection. UserRoles []*UserRole `json:"userRoles,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolesListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolesListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormat: Contains information about supported video formats. @@ -13609,164 +10837,124 @@ type VideoFormat struct { // "THREEGPP" // "WEBM" FileType string `json:"fileType,omitempty"` - // Id: ID of the video format. Id int64 `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormat". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormat". Kind string `json:"kind,omitempty"` - // Resolution: The resolution of this video format. Resolution *Size `json:"resolution,omitempty"` - // TargetBitRate: The target bit rate of this video format. TargetBitRate int64 `json:"targetBitRate,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "FileType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormat) MarshalJSON() ([]byte, error) { +func (s VideoFormat) MarshalJSON() ([]byte, error) { type NoMethod VideoFormat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormatsListResponse: Video Format List Response type VideoFormatsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormatsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormatsListResponse". Kind string `json:"kind,omitempty"` - // VideoFormats: Video format collection. VideoFormats []*VideoFormat `json:"videoFormats,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormatsListResponse) MarshalJSON() ([]byte, error) { +func (s VideoFormatsListResponse) MarshalJSON() ([]byte, error) { type NoMethod VideoFormatsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoOffset: Video Offset type VideoOffset struct { - // OffsetPercentage: Duration, as a percentage of video duration. Do not - // set when offsetSeconds is set. Acceptable values are 0 to 100, - // inclusive. + // OffsetPercentage: Duration, as a percentage of video duration. Do not set + // when offsetSeconds is set. Acceptable values are 0 to 100, inclusive. OffsetPercentage int64 `json:"offsetPercentage,omitempty"` - - // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage - // is set. Acceptable values are 0 to 86399, inclusive. + // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage is + // set. Acceptable values are 0 to 86399, inclusive. OffsetSeconds int64 `json:"offsetSeconds,omitempty"` - // ForceSendFields is a list of field names (e.g. "OffsetPercentage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OffsetPercentage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OffsetPercentage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoOffset) MarshalJSON() ([]byte, error) { +func (s VideoOffset) MarshalJSON() ([]byte, error) { type NoMethod VideoOffset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoSettings: Video Settings type VideoSettings struct { - // CompanionSettings: Settings for the companion creatives of video - // creatives served to this placement. + // CompanionSettings: Settings for the companion creatives of video creatives + // served to this placement. CompanionSettings *CompanionSetting `json:"companionSettings,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoSettings". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoSettings". Kind string `json:"kind,omitempty"` - - // SkippableSettings: Settings for the skippability of video creatives - // served to this placement. If this object is provided, the - // creative-level skippable settings will be overridden. + // SkippableSettings: Settings for the skippability of video creatives served + // to this placement. If this object is provided, the creative-level skippable + // settings will be overridden. SkippableSettings *SkippableSetting `json:"skippableSettings,omitempty"` - - // TranscodeSettings: Settings for the transcodes of video creatives - // served to this placement. If this object is provided, the - // creative-level transcode settings will be overridden. + // TranscodeSettings: Settings for the transcodes of video creatives served to + // this placement. If this object is provided, the creative-level transcode + // settings will be overridden. TranscodeSettings *TranscodeSetting `json:"transcodeSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionSettings") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionSettings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionSettings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoSettings) MarshalJSON() ([]byte, error) { +func (s VideoSettings) MarshalJSON() ([]byte, error) { type NoMethod VideoSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "dfareporting.accountActiveAdSummaries.get": - type AccountActiveAdSummariesGetCall struct { s *Service profileId int64 @@ -13778,6 +10966,9 @@ type AccountActiveAdSummariesGetCall struct { } // Get: Gets the account's active ad summary by account ID. +// +// - profileId: User profile ID associated with this request. +// - summaryAccountId: Account ID. func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId int64) *AccountActiveAdSummariesGetCall { c := &AccountActiveAdSummariesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -13786,33 +10977,29 @@ func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountActiveAdSummariesGetCall) Fields(s ...googleapi.Field) *AccountActiveAdSummariesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountActiveAdSummariesGetCall) IfNoneMatch(entityTag string) *AccountActiveAdSummariesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountActiveAdSummariesGetCall) Context(ctx context.Context) *AccountActiveAdSummariesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountActiveAdSummariesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13821,12 +11008,7 @@ func (c *AccountActiveAdSummariesGetCall) Header() http.Header { } func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13844,16 +11026,15 @@ func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "summaryAccountId": strconv.FormatInt(c.summaryAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountActiveAdSummaries.get" call. -// Exactly one of *AccountActiveAdSummary or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountActiveAdSummary.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountActiveAdSummary.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*AccountActiveAdSummary, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13861,17 +11042,17 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountActiveAdSummary{ ServerResponse: googleapi.ServerResponse{ @@ -13884,42 +11065,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Gets the account's active ad summary by account ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountActiveAdSummaries.get", - // "parameterOrder": [ - // "profileId", - // "summaryAccountId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "summaryAccountId": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - // "response": { - // "$ref": "AccountActiveAdSummary" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.get": +} type AccountPermissionGroupsGetCall struct { s *Service @@ -13932,6 +11078,9 @@ type AccountPermissionGroupsGetCall struct { } // Get: Gets one account permission group by ID. +// +// - id: Account permission group ID. +// - profileId: User profile ID associated with this request. func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *AccountPermissionGroupsGetCall { c := &AccountPermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -13940,33 +11089,29 @@ func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *Account } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsGetCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsGetCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsGetCall) Context(ctx context.Context) *AccountPermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13975,12 +11120,7 @@ func (c *AccountPermissionGroupsGetCall) Header() http.Header { } func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13998,16 +11138,15 @@ func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.get" call. -// Exactly one of *AccountPermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermissionGroup.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroup.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14015,17 +11154,17 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -14038,42 +11177,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco return nil, err } return ret, nil - // { - // "description": "Gets one account permission group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", - // "response": { - // "$ref": "AccountPermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.list": +} type AccountPermissionGroupsListCall struct { s *Service @@ -14085,6 +11189,8 @@ type AccountPermissionGroupsListCall struct { } // List: Retrieves the list of account permission groups. +// +// - profileId: User profile ID associated with this request. func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissionGroupsListCall { c := &AccountPermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14092,33 +11198,29 @@ func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsListCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsListCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsListCall) Context(ctx context.Context) *AccountPermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14127,12 +11229,7 @@ func (c *AccountPermissionGroupsListCall) Header() http.Header { } func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14149,17 +11246,15 @@ func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.list" call. -// Exactly one of *AccountPermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroupsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14167,17 +11262,17 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14190,34 +11285,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permission groups.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups", - // "response": { - // "$ref": "AccountPermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.get": +} type AccountPermissionsGetCall struct { s *Service @@ -14230,6 +11298,9 @@ type AccountPermissionsGetCall struct { } // Get: Gets one account permission by ID. +// +// - id: Account permission ID. +// - profileId: User profile ID associated with this request. func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermissionsGetCall { c := &AccountPermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14238,33 +11309,29 @@ func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsGetCall) Fields(s ...googleapi.Field) *AccountPermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsGetCall) IfNoneMatch(entityTag string) *AccountPermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsGetCall) Context(ctx context.Context) *AccountPermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14273,12 +11340,7 @@ func (c *AccountPermissionsGetCall) Header() http.Header { } func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14296,16 +11358,15 @@ func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.get" call. -// Exactly one of *AccountPermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14313,17 +11374,17 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermission{ ServerResponse: googleapi.ServerResponse{ @@ -14336,42 +11397,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe return nil, err } return ret, nil - // { - // "description": "Gets one account permission by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions/{id}", - // "response": { - // "$ref": "AccountPermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.list": +} type AccountPermissionsListCall struct { s *Service @@ -14383,6 +11409,8 @@ type AccountPermissionsListCall struct { } // List: Retrieves the list of account permissions. +// +// - profileId: User profile ID associated with this request. func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsListCall { c := &AccountPermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14390,33 +11418,29 @@ func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsListCall) Fields(s ...googleapi.Field) *AccountPermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsListCall) IfNoneMatch(entityTag string) *AccountPermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsListCall) Context(ctx context.Context) *AccountPermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14425,12 +11449,7 @@ func (c *AccountPermissionsListCall) Header() http.Header { } func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14447,16 +11466,15 @@ func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.list" call. -// Exactly one of *AccountPermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14464,17 +11482,17 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14487,34 +11505,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permissions.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions", - // "response": { - // "$ref": "AccountPermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.get": +} type AccountUserProfilesGetCall struct { s *Service @@ -14527,6 +11518,9 @@ type AccountUserProfilesGetCall struct { } // Get: Gets one account user profile by ID. +// +// - id: User profile ID. +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUserProfilesGetCall { c := &AccountUserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14535,33 +11529,29 @@ func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUser } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesGetCall) Fields(s ...googleapi.Field) *AccountUserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesGetCall) IfNoneMatch(entityTag string) *AccountUserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesGetCall) Context(ctx context.Context) *AccountUserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14570,12 +11560,7 @@ func (c *AccountUserProfilesGetCall) Header() http.Header { } func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14593,16 +11578,15 @@ func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.get" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14610,17 +11594,17 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -14633,42 +11617,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU return nil, err } return ret, nil - // { - // "description": "Gets one account user profile by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles/{id}", - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.insert": +} type AccountUserProfilesInsertCall struct { s *Service @@ -14680,6 +11629,8 @@ type AccountUserProfilesInsertCall struct { } // Insert: Inserts a new account user profile. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesInsertCall { c := &AccountUserProfilesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14688,23 +11639,21 @@ func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesInsertCall) Fields(s ...googleapi.Field) *AccountUserProfilesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesInsertCall) Context(ctx context.Context) *AccountUserProfilesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14713,18 +11662,12 @@ func (c *AccountUserProfilesInsertCall) Header() http.Header { } func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -14737,16 +11680,15 @@ func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.insert" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14754,17 +11696,17 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -14777,37 +11719,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Inserts a new account user profile.", - // "httpMethod": "POST", - // "id": "dfareporting.accountUserProfiles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.list": +} type AccountUserProfilesListCall struct { s *Service @@ -14818,8 +11730,10 @@ type AccountUserProfilesListCall struct { header_ http.Header } -// List: Retrieves a list of account user profiles, possibly filtered. -// This method supports paging. +// List: Retrieves a list of account user profiles, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) List(profileId int64) *AccountUserProfilesListCall { c := &AccountUserProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14833,8 +11747,8 @@ func (c *AccountUserProfilesListCall) Active(active bool) *AccountUserProfilesLi return c } -// Ids sets the optional parameter "ids": Select only user profiles with -// these IDs. +// Ids sets the optional parameter "ids": Select only user profiles with these +// IDs. func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesListCall { var ids_ []string for _, v := range ids { @@ -14844,8 +11758,8 @@ func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountUserProfilesListCall) MaxResults(maxResults int64) *AccountUserProfilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -14858,22 +11772,21 @@ func (c *AccountUserProfilesListCall) PageToken(pageToken string) *AccountUserPr return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or email. Wildcards (*) are -// allowed. For example, "user profile*2015" will return objects with -// names like "user profile June 2015", "user profile April 2015", or -// simply "user profile 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "user profile" will match objects with -// name "my user profile", "user profile 2015", or simply "user +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or email. Wildcards (*) are allowed. For example, +// "user profile*2015" will return objects with names like "user profile June +// 2015", "user profile April 2015", or simply "user profile 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "user profile" will match +// objects with name "my user profile", "user profile 2015", or simply "user // profile". func (c *AccountUserProfilesListCall) SearchString(searchString string) *AccountUserProfilesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -14884,8 +11797,7 @@ func (c *AccountUserProfilesListCall) SortField(sortField string) *AccountUserPr return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -14896,8 +11808,8 @@ func (c *AccountUserProfilesListCall) SortOrder(sortOrder string) *AccountUserPr return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user profiles with the specified subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// profiles with the specified subaccount ID. func (c *AccountUserProfilesListCall) SubaccountId(subaccountId int64) *AccountUserProfilesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c @@ -14911,33 +11823,29 @@ func (c *AccountUserProfilesListCall) UserRoleId(userRoleId int64) *AccountUserP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesListCall) Fields(s ...googleapi.Field) *AccountUserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesListCall) IfNoneMatch(entityTag string) *AccountUserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesListCall) Context(ctx context.Context) *AccountUserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14946,12 +11854,7 @@ func (c *AccountUserProfilesListCall) Header() http.Header { } func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14968,16 +11871,15 @@ func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.list" call. -// Exactly one of *AccountUserProfilesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountUserProfilesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfilesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*AccountUserProfilesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14985,17 +11887,17 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfilesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15008,102 +11910,6 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account return nil, err } return ret, nil - // { - // "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active user profiles.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user profiles with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"user profile*2015\" will return objects with names like \"user profile June 2015\", \"user profile April 2015\", or simply \"user profile 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"user profile\" will match objects with name \"my user profile\", \"user profile 2015\", or simply \"user profile\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user profiles with the specified subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "userRoleId": { - // "description": "Select only user profiles with the specified user role ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "response": { - // "$ref": "AccountUserProfilesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -15111,7 +11917,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // The provided context supersedes any context provided to the Context method. func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*AccountUserProfilesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15127,8 +11933,6 @@ func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*Account } } -// method id "dfareporting.accountUserProfiles.patch": - type AccountUserProfilesPatchCall struct { s *Service profileId int64 @@ -15138,8 +11942,11 @@ type AccountUserProfilesPatchCall struct { header_ http.Header } -// Patch: Updates an existing account user profile. This method supports -// patch semantics. +// Patch: Updates an existing account user profile. This method supports patch +// semantics. +// +// - id: User profile ID. +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesPatchCall { c := &AccountUserProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15149,23 +11956,21 @@ func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuse } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesPatchCall) Fields(s ...googleapi.Field) *AccountUserProfilesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesPatchCall) Context(ctx context.Context) *AccountUserProfilesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15174,18 +11979,12 @@ func (c *AccountUserProfilesPatchCall) Header() http.Header { } func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15198,16 +11997,15 @@ func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.patch" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15215,17 +12013,17 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15238,45 +12036,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.accountUserProfiles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.update": +} type AccountUserProfilesUpdateCall struct { s *Service @@ -15288,6 +12048,8 @@ type AccountUserProfilesUpdateCall struct { } // Update: Updates an existing account user profile. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesUpdateCall { c := &AccountUserProfilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15296,23 +12058,21 @@ func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesUpdateCall) Fields(s ...googleapi.Field) *AccountUserProfilesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesUpdateCall) Context(ctx context.Context) *AccountUserProfilesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15321,18 +12081,12 @@ func (c *AccountUserProfilesUpdateCall) Header() http.Header { } func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15345,16 +12099,15 @@ func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.update" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15362,17 +12115,17 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15385,37 +12138,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile.", - // "httpMethod": "PUT", - // "id": "dfareporting.accountUserProfiles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.get": +} type AccountsGetCall struct { s *Service @@ -15428,6 +12151,9 @@ type AccountsGetCall struct { } // Get: Gets one account by ID. +// +// - id: Account ID. +// - profileId: User profile ID associated with this request. func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15436,33 +12162,29 @@ func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15471,12 +12193,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15494,16 +12211,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15511,17 +12226,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -15534,42 +12249,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Gets one account by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts/{id}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.list": +} type AccountsListCall struct { s *Service @@ -15582,22 +12262,22 @@ type AccountsListCall struct { // List: Retrieves the list of accounts, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AccountsService) List(profileId int64) *AccountsListCall { c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Active sets the optional parameter "active": Select only active -// accounts. Don't set this field to select both active and non-active -// accounts. +// Active sets the optional parameter "active": Select only active accounts. +// Don't set this field to select both active and non-active accounts. func (c *AccountsListCall) Active(active bool) *AccountsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// Ids sets the optional parameter "ids": Select only accounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only accounts with these IDs. func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { var ids_ []string for _, v := range ids { @@ -15607,8 +12287,8 @@ func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -15621,21 +12301,20 @@ func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "account*2015" will return objects with names like "account -// June 2015", "account April 2015", or simply "account 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "account" will -// match objects with name "my account", "account 2015", or simply -// "account". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "account*2015" will return objects with names like "account June 2015", +// "account April 2015", or simply "account 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "account" will match objects with name "my +// account", "account 2015", or simply "account". func (c *AccountsListCall) SearchString(searchString string) *AccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -15646,8 +12325,7 @@ func (c *AccountsListCall) SortField(sortField string) *AccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -15659,33 +12337,29 @@ func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15694,12 +12368,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15716,16 +12385,15 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.list" call. -// Exactly one of *AccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15733,17 +12401,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15756,90 +12424,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active accounts. Don't set this field to select both active and non-active accounts.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only accounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"account*2015\" will return objects with names like \"account June 2015\", \"account April 2015\", or simply \"account 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"account\" will match objects with name \"my account\", \"account 2015\", or simply \"account\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "response": { - // "$ref": "AccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -15847,7 +12431,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // The provided context supersedes any context provided to the Context method. func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15863,8 +12447,6 @@ func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListRespon } } -// method id "dfareporting.accounts.patch": - type AccountsPatchCall struct { s *Service profileId int64 @@ -15874,8 +12456,10 @@ type AccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing account. This method supports patch -// semantics. +// Patch: Updates an existing account. This method supports patch semantics. +// +// - id: Account ID. +// - profileId: User profile ID associated with this request. func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *AccountsPatchCall { c := &AccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15885,23 +12469,21 @@ func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *Ac } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15910,18 +12492,12 @@ func (c *AccountsPatchCall) Header() http.Header { } func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -15934,16 +12510,14 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.patch" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15951,17 +12525,17 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -15974,45 +12548,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing account. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.accounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.update": +} type AccountsUpdateCall struct { s *Service @@ -16024,6 +12560,8 @@ type AccountsUpdateCall struct { } // Update: Updates an existing account. +// +// - profileId: User profile ID associated with this request. func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpdateCall { c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16032,23 +12570,21 @@ func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpd } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16057,18 +12593,12 @@ func (c *AccountsUpdateCall) Header() http.Header { } func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -16081,16 +12611,14 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16098,17 +12626,17 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -16121,37 +12649,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing account.", - // "httpMethod": "PUT", - // "id": "dfareporting.accounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.get": +} type AdsGetCall struct { s *Service @@ -16164,6 +12662,9 @@ type AdsGetCall struct { } // Get: Gets one ad by ID. +// +// - id: Ad ID. +// - profileId: User profile ID associated with this request. func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { c := &AdsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16172,33 +12673,29 @@ func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsGetCall) Fields(s ...googleapi.Field) *AdsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsGetCall) IfNoneMatch(entityTag string) *AdsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsGetCall) Context(ctx context.Context) *AdsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16207,12 +12704,7 @@ func (c *AdsGetCall) Header() http.Header { } func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16230,16 +12722,14 @@ func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.get" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16247,17 +12737,17 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -16270,42 +12760,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Gets one ad by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.ads.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads/{id}", - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.insert": +} type AdsInsertCall struct { s *Service @@ -16317,6 +12772,8 @@ type AdsInsertCall struct { } // Insert: Inserts a new ad. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { c := &AdsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16325,23 +12782,21 @@ func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsInsertCall) Fields(s ...googleapi.Field) *AdsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsInsertCall) Context(ctx context.Context) *AdsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16350,18 +12805,12 @@ func (c *AdsInsertCall) Header() http.Header { } func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -16374,16 +12823,14 @@ func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.insert" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16391,17 +12838,17 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -16414,37 +12861,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new ad.", - // "httpMethod": "POST", - // "id": "dfareporting.ads.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.list": +} type AdsListCall struct { s *Service @@ -16455,8 +12872,10 @@ type AdsListCall struct { header_ http.Header } -// List: Retrieves a list of ads, possibly filtered. This method -// supports paging. +// List: Retrieves a list of ads, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) List(profileId int64) *AdsListCall { c := &AdsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16469,22 +12888,21 @@ func (c *AdsListCall) Active(active bool) *AdsListCall { return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// ads with this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only ads +// with this advertiser ID. func (c *AdsListCall) AdvertiserId(advertiserId int64) *AdsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Archived sets the optional parameter "archived": Select only archived -// ads. +// Archived sets the optional parameter "archived": Select only archived ads. func (c *AdsListCall) Archived(archived bool) *AdsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": -// Select only ads with these audience segment IDs. +// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": Select +// only ads with these audience segment IDs. func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCall { var audienceSegmentIds_ []string for _, v := range audienceSegmentIds { @@ -16494,8 +12912,8 @@ func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCa return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// ads with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only ads with +// these campaign IDs. func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -16505,13 +12923,13 @@ func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { return c } -// Compatibility sets the optional parameter "compatibility": Select -// default ads with the specified compatibility. Applicable when type is -// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to -// rendering either on desktop or on mobile devices for regular or -// interstitial ads, respectively. APP and APP_INTERSTITIAL are for -// rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an -// in-stream video ads developed with the VAST standard. +// Compatibility sets the optional parameter "compatibility": Select default +// ads with the specified compatibility. Applicable when type is +// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering +// either on desktop or on mobile devices for regular or interstitial ads, +// respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. +// IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with +// the VAST standard. // // Possible values: // @@ -16525,8 +12943,8 @@ func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall { return c } -// CreativeIds sets the optional parameter "creativeIds": Select only -// ads with these creative IDs assigned. +// CreativeIds sets the optional parameter "creativeIds": Select only ads with +// these creative IDs assigned. func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { var creativeIds_ []string for _, v := range creativeIds { @@ -16537,8 +12955,8 @@ func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { } // CreativeOptimizationConfigurationIds sets the optional parameter -// "creativeOptimizationConfigurationIds": Select only ads with these -// creative optimization configuration IDs. +// "creativeOptimizationConfigurationIds": Select only ads with these creative +// optimization configuration IDs. func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationConfigurationIds ...int64) *AdsListCall { var creativeOptimizationConfigurationIds_ []string for _, v := range creativeOptimizationConfigurationIds { @@ -16548,18 +12966,16 @@ func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationC return c } -// DynamicClickTracker sets the optional parameter -// "dynamicClickTracker": Select only dynamic click trackers. Applicable -// when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click -// trackers. If false, select static click trackers. Leave unset to -// select both. +// DynamicClickTracker sets the optional parameter "dynamicClickTracker": +// Select only dynamic click trackers. Applicable when type is +// AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, +// select static click trackers. Leave unset to select both. func (c *AdsListCall) DynamicClickTracker(dynamicClickTracker bool) *AdsListCall { c.urlParams_.Set("dynamicClickTracker", fmt.Sprint(dynamicClickTracker)) return c } -// Ids sets the optional parameter "ids": Select only ads with these -// IDs. +// Ids sets the optional parameter "ids": Select only ads with these IDs. func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { var ids_ []string for _, v := range ids { @@ -16569,8 +12985,8 @@ func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { return c } -// LandingPageIds sets the optional parameter "landingPageIds": Select -// only ads with these landing page IDs. +// LandingPageIds sets the optional parameter "landingPageIds": Select only ads +// with these landing page IDs. func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { var landingPageIds_ []string for _, v := range landingPageIds { @@ -16580,16 +12996,15 @@ func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdsListCall) MaxResults(maxResults int64) *AdsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only ads with this event tag override -// ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only ads with this event tag override ID. func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagId int64) *AdsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -16602,8 +13017,8 @@ func (c *AdsListCall) PageToken(pageToken string) *AdsListCall { return c } -// PlacementIds sets the optional parameter "placementIds": Select only -// ads with these placement IDs assigned. +// PlacementIds sets the optional parameter "placementIds": Select only ads +// with these placement IDs assigned. func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { var placementIds_ []string for _, v := range placementIds { @@ -16613,9 +13028,8 @@ func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { return c } -// RemarketingListIds sets the optional parameter "remarketingListIds": -// Select only ads whose list targeting expression use these remarketing -// list IDs. +// RemarketingListIds sets the optional parameter "remarketingListIds": Select +// only ads whose list targeting expression use these remarketing list IDs. func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCall { var remarketingListIds_ []string for _, v := range remarketingListIds { @@ -16625,20 +13039,19 @@ func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "ad*2015" will return objects with names like "ad June -// 2015", "ad April 2015", or simply "ad 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "ad" will match objects with -// name "my ad", "ad 2015", or simply "ad". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, "ad*2015" +// will return objects with names like "ad June 2015", "ad April 2015", or +// simply "ad 2015". Most of the searches also add wildcards implicitly at the +// start and the end of the search string. For example, a search string of "ad" +// will match objects with name "my ad", "ad 2015", or simply "ad". func (c *AdsListCall) SearchString(searchString string) *AdsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only ads with -// these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only ads with these +// size IDs. func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -16648,8 +13061,8 @@ func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -16660,8 +13073,7 @@ func (c *AdsListCall) SortField(sortField string) *AdsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -16672,22 +13084,21 @@ func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall { return c } -// SslCompliant sets the optional parameter "sslCompliant": Select only -// ads that are SSL-compliant. +// SslCompliant sets the optional parameter "sslCompliant": Select only ads +// that are SSL-compliant. func (c *AdsListCall) SslCompliant(sslCompliant bool) *AdsListCall { c.urlParams_.Set("sslCompliant", fmt.Sprint(sslCompliant)) return c } -// SslRequired sets the optional parameter "sslRequired": Select only -// ads that require SSL. +// SslRequired sets the optional parameter "sslRequired": Select only ads that +// require SSL. func (c *AdsListCall) SslRequired(sslRequired bool) *AdsListCall { c.urlParams_.Set("sslRequired", fmt.Sprint(sslRequired)) return c } -// Type sets the optional parameter "type": Select only ads with these -// types. +// Type sets the optional parameter "type": Select only ads with these types. // // Possible values: // @@ -16701,33 +13112,29 @@ func (c *AdsListCall) Type(type_ ...string) *AdsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsListCall) Fields(s ...googleapi.Field) *AdsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsListCall) IfNoneMatch(entityTag string) *AdsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsListCall) Context(ctx context.Context) *AdsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16736,12 +13143,7 @@ func (c *AdsListCall) Header() http.Header { } func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16758,16 +13160,15 @@ func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.list" call. -// Exactly one of *AdsListResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdsListResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16775,17 +13176,17 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16798,215 +13199,6 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) return nil, err } return ret, nil - // { - // "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.ads.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active ads.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only ads with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived ads.", - // "location": "query", - // "type": "boolean" - // }, - // "audienceSegmentIds": { - // "description": "Select only ads with these audience segment IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "campaignIds": { - // "description": "Select only ads with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibility": { - // "description": "Select default ads with the specified compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard.", - // "enum": [ - // "APP", - // "APP_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "IN_STREAM_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "creativeIds": { - // "description": "Select only ads with these creative IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeOptimizationConfigurationIds": { - // "description": "Select only ads with these creative optimization configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dynamicClickTracker": { - // "description": "Select only dynamic click trackers. Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, select static click trackers. Leave unset to select both.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only ads with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "landingPageIds": { - // "description": "Select only ads with these landing page IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only ads with this event tag override ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Select only ads with these placement IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListIds": { - // "description": "Select only ads whose list targeting expression use these remarketing list IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"ad*2015\" will return objects with names like \"ad June 2015\", \"ad April 2015\", or simply \"ad 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"ad\" will match objects with name \"my ad\", \"ad 2015\", or simply \"ad\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only ads with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sslCompliant": { - // "description": "Select only ads that are SSL-compliant.", - // "location": "query", - // "type": "boolean" - // }, - // "sslRequired": { - // "description": "Select only ads that require SSL.", - // "location": "query", - // "type": "boolean" - // }, - // "type": { - // "description": "Select only ads with these types.", - // "enum": [ - // "AD_SERVING_CLICK_TRACKER", - // "AD_SERVING_DEFAULT_AD", - // "AD_SERVING_STANDARD_AD", - // "AD_SERVING_TRACKING" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "response": { - // "$ref": "AdsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -17014,7 +13206,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // The provided context supersedes any context provided to the Context method. func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17030,8 +13222,6 @@ func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) } } -// method id "dfareporting.ads.patch": - type AdsPatchCall struct { s *Service profileId int64 @@ -17042,6 +13232,9 @@ type AdsPatchCall struct { } // Patch: Updates an existing ad. This method supports patch semantics. +// +// - id: Ad ID. +// - profileId: User profile ID associated with this request. func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { c := &AdsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17051,23 +13244,21 @@ func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsPatchCall) Fields(s ...googleapi.Field) *AdsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsPatchCall) Context(ctx context.Context) *AdsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17076,18 +13267,12 @@ func (c *AdsPatchCall) Header() http.Header { } func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17100,16 +13285,14 @@ func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.patch" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17117,17 +13300,17 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17140,45 +13323,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.ads.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.update": +} type AdsUpdateCall struct { s *Service @@ -17190,6 +13335,8 @@ type AdsUpdateCall struct { } // Update: Updates an existing ad. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { c := &AdsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17198,23 +13345,21 @@ func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsUpdateCall) Fields(s ...googleapi.Field) *AdsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsUpdateCall) Context(ctx context.Context) *AdsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17223,18 +13368,12 @@ func (c *AdsUpdateCall) Header() http.Header { } func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17247,16 +13386,14 @@ func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.update" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17264,17 +13401,17 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17287,37 +13424,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad.", - // "httpMethod": "PUT", - // "id": "dfareporting.ads.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.delete": +} type AdvertiserGroupsDeleteCall struct { s *Service @@ -17329,6 +13436,9 @@ type AdvertiserGroupsDeleteCall struct { } // Delete: Deletes an existing advertiser group. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserGroupsDeleteCall { c := &AdvertiserGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17337,23 +13447,21 @@ func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsDeleteCall) Fields(s ...googleapi.Field) *AdvertiserGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsDeleteCall) Context(ctx context.Context) *AdvertiserGroupsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17362,12 +13470,7 @@ func (c *AdvertiserGroupsDeleteCall) Header() http.Header { } func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17382,7 +13485,7 @@ func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.delete" call. @@ -17394,42 +13497,10 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing advertiser group.", - // "httpMethod": "DELETE", - // "id": "dfareporting.advertiserGroups.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.get": +} type AdvertiserGroupsGetCall struct { s *Service @@ -17442,6 +13513,9 @@ type AdvertiserGroupsGetCall struct { } // Get: Gets one advertiser group by ID. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGroupsGetCall { c := &AdvertiserGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17450,33 +13524,29 @@ func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGrou } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsGetCall) Fields(s ...googleapi.Field) *AdvertiserGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsGetCall) IfNoneMatch(entityTag string) *AdvertiserGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsGetCall) Context(ctx context.Context) *AdvertiserGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17485,12 +13555,7 @@ func (c *AdvertiserGroupsGetCall) Header() http.Header { } func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17508,16 +13573,15 @@ func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.get" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17525,17 +13589,17 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -17548,42 +13612,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG return nil, err } return ret, nil - // { - // "description": "Gets one advertiser group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.insert": +} type AdvertiserGroupsInsertCall struct { s *Service @@ -17595,6 +13624,8 @@ type AdvertiserGroupsInsertCall struct { } // Insert: Inserts a new advertiser group. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsInsertCall { c := &AdvertiserGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17603,23 +13634,21 @@ func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsInsertCall) Fields(s ...googleapi.Field) *AdvertiserGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsInsertCall) Context(ctx context.Context) *AdvertiserGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17628,18 +13657,12 @@ func (c *AdvertiserGroupsInsertCall) Header() http.Header { } func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -17652,16 +13675,15 @@ func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.insert" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17669,17 +13691,17 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -17692,37 +13714,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser group.", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.list": +} type AdvertiserGroupsListCall struct { s *Service @@ -17733,16 +13725,18 @@ type AdvertiserGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of advertiser groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of advertiser groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCall { c := &AdvertiserGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only advertiser groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only advertiser groups with +// these IDs. func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { var ids_ []string for _, v := range ids { @@ -17752,8 +13746,8 @@ func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserGroupsListCall) MaxResults(maxResults int64) *AdvertiserGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -17766,22 +13760,21 @@ func (c *AdvertiserGroupsListCall) PageToken(pageToken string) *AdvertiserGroups return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser group June 2015", "advertiser group April 2015", or -// simply "advertiser group 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "advertisergroup" will match objects -// with name "my advertisergroup", "advertisergroup 2015", or simply -// "advertisergroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser group June +// 2015", "advertiser group April 2015", or simply "advertiser group 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "advertisergroup" will +// match objects with name "my advertisergroup", "advertisergroup 2015", or +// simply "advertisergroup". func (c *AdvertiserGroupsListCall) SearchString(searchString string) *AdvertiserGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -17792,8 +13785,7 @@ func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroups return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -17805,33 +13797,29 @@ func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsListCall) Fields(s ...googleapi.Field) *AdvertiserGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsListCall) IfNoneMatch(entityTag string) *AdvertiserGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsListCall) Context(ctx context.Context) *AdvertiserGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17840,12 +13828,7 @@ func (c *AdvertiserGroupsListCall) Header() http.Header { } func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17862,16 +13845,15 @@ func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.list" call. -// Exactly one of *AdvertiserGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserGroupsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17879,17 +13861,17 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17902,85 +13884,6 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only advertiser groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser group June 2015\", \"advertiser group April 2015\", or simply \"advertiser group 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertisergroup\" will match objects with name \"my advertisergroup\", \"advertisergroup 2015\", or simply \"advertisergroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "response": { - // "$ref": "AdvertiserGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -17988,7 +13891,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // The provided context supersedes any context provided to the Context method. func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*AdvertiserGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18004,8 +13907,6 @@ func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*Advertiser } } -// method id "dfareporting.advertiserGroups.patch": - type AdvertiserGroupsPatchCall struct { s *Service profileId int64 @@ -18015,8 +13916,11 @@ type AdvertiserGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser group. This method supports -// patch semantics. +// Patch: Updates an existing advertiser group. This method supports patch +// semantics. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsPatchCall { c := &AdvertiserGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18026,23 +13930,21 @@ func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsPatchCall) Fields(s ...googleapi.Field) *AdvertiserGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsPatchCall) Context(ctx context.Context) *AdvertiserGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18051,18 +13953,12 @@ func (c *AdvertiserGroupsPatchCall) Header() http.Header { } func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18075,16 +13971,15 @@ func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.patch" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18092,17 +13987,17 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18115,45 +14010,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.update": +} type AdvertiserGroupsUpdateCall struct { s *Service @@ -18165,6 +14022,8 @@ type AdvertiserGroupsUpdateCall struct { } // Update: Updates an existing advertiser group. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsUpdateCall { c := &AdvertiserGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18173,23 +14032,21 @@ func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsUpdateCall) Fields(s ...googleapi.Field) *AdvertiserGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsUpdateCall) Context(ctx context.Context) *AdvertiserGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18198,18 +14055,12 @@ func (c *AdvertiserGroupsUpdateCall) Header() http.Header { } func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18222,16 +14073,15 @@ func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.update" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18239,17 +14089,17 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18262,37 +14112,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.get": +} type AdvertisersGetCall struct { s *Service @@ -18305,6 +14125,9 @@ type AdvertisersGetCall struct { } // Get: Gets one advertiser by ID. +// +// - id: Advertiser ID. +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall { c := &AdvertisersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18313,33 +14136,29 @@ func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersGetCall) Fields(s ...googleapi.Field) *AdvertisersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18348,12 +14167,7 @@ func (c *AdvertisersGetCall) Header() http.Header { } func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18371,16 +14185,14 @@ func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.get" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18388,17 +14200,17 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -18411,42 +14223,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro return nil, err } return ret, nil - // { - // "description": "Gets one advertiser by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers/{id}", - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.insert": +} type AdvertisersInsertCall struct { s *Service @@ -18458,6 +14235,8 @@ type AdvertisersInsertCall struct { } // Insert: Inserts a new advertiser. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *AdvertisersInsertCall { c := &AdvertisersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18466,23 +14245,21 @@ func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertCall) Fields(s ...googleapi.Field) *AdvertisersInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertCall) Context(ctx context.Context) *AdvertisersInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18491,18 +14268,12 @@ func (c *AdvertisersInsertCall) Header() http.Header { } func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -18515,16 +14286,14 @@ func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.insert" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18532,17 +14301,17 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -18555,37 +14324,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser.", - // "httpMethod": "POST", - // "id": "dfareporting.advertisers.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.list": +} type AdvertisersListCall struct { s *Service @@ -18598,14 +14337,16 @@ type AdvertisersListCall struct { // List: Retrieves a list of advertisers, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) List(profileId int64) *AdvertisersListCall { c := &AdvertisersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only advertisers with these advertiser group IDs. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only advertisers with these advertiser group IDs. func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *AdvertisersListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -18616,8 +14357,8 @@ func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *A } // FloodlightConfigurationIds sets the optional parameter -// "floodlightConfigurationIds": Select only advertisers with these -// floodlight configuration IDs. +// "floodlightConfigurationIds": Select only advertisers with these floodlight +// configuration IDs. func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfigurationIds ...int64) *AdvertisersListCall { var floodlightConfigurationIds_ []string for _, v := range floodlightConfigurationIds { @@ -18627,8 +14368,8 @@ func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfiguration return c } -// Ids sets the optional parameter "ids": Select only advertisers with -// these IDs. +// Ids sets the optional parameter "ids": Select only advertisers with these +// IDs. func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { var ids_ []string for _, v := range ids { @@ -18639,22 +14380,22 @@ func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { } // IncludeAdvertisersWithoutGroupsOnly sets the optional parameter -// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which -// do not belong to any advertiser group. +// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which do not +// belong to any advertiser group. func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnly bool) *AdvertisersListCall { c.urlParams_.Set("includeAdvertisersWithoutGroupsOnly", fmt.Sprint(includeAdvertisersWithoutGroupsOnly)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertisersListCall) MaxResults(maxResults int64) *AdvertisersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OnlyParent sets the optional parameter "onlyParent": Select only -// advertisers which use another advertiser's floodlight configuration. +// OnlyParent sets the optional parameter "onlyParent": Select only advertisers +// which use another advertiser's floodlight configuration. func (c *AdvertisersListCall) OnlyParent(onlyParent bool) *AdvertisersListCall { c.urlParams_.Set("onlyParent", fmt.Sprint(onlyParent)) return c @@ -18667,21 +14408,21 @@ func (c *AdvertisersListCall) PageToken(pageToken string) *AdvertisersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser June 2015", "advertiser April 2015", or simply -// "advertiser 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "advertiser" will match objects with name "my advertiser", -// "advertiser 2015", or simply "advertiser". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser June +// 2015", "advertiser April 2015", or simply "advertiser 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "advertiser" will match +// objects with name "my advertiser", "advertiser 2015", or simply +// "advertiser". func (c *AdvertisersListCall) SearchString(searchString string) *AdvertisersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -18692,8 +14433,7 @@ func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -18704,8 +14444,8 @@ func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall { return c } -// Status sets the optional parameter "status": Select only advertisers -// with the specified status. +// Status sets the optional parameter "status": Select only advertisers with +// the specified status. // // Possible values: // @@ -18724,33 +14464,29 @@ func (c *AdvertisersListCall) SubaccountId(subaccountId int64) *AdvertisersListC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersListCall) Fields(s ...googleapi.Field) *AdvertisersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18759,12 +14495,7 @@ func (c *AdvertisersListCall) Header() http.Header { } func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18781,16 +14512,15 @@ func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.list" call. -// Exactly one of *AdvertisersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AdvertisersListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18798,17 +14528,17 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertisersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18821,128 +14551,6 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only advertisers with these advertiser group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightConfigurationIds": { - // "description": "Select only advertisers with these floodlight configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only advertisers with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "includeAdvertisersWithoutGroupsOnly": { - // "description": "Select only advertisers which do not belong to any advertiser group.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "onlyParent": { - // "description": "Select only advertisers which use another advertiser's floodlight configuration.", - // "location": "query", - // "type": "boolean" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser June 2015\", \"advertiser April 2015\", or simply \"advertiser 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertiser\" will match objects with name \"my advertiser\", \"advertiser 2015\", or simply \"advertiser\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "status": { - // "description": "Select only advertisers with the specified status.", - // "enum": [ - // "APPROVED", - // "ON_HOLD" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only advertisers with these subaccount IDs.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "response": { - // "$ref": "AdvertisersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -18950,7 +14558,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // The provided context supersedes any context provided to the Context method. func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18966,8 +14574,6 @@ func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersList } } -// method id "dfareporting.advertisers.patch": - type AdvertisersPatchCall struct { s *Service profileId int64 @@ -18977,8 +14583,10 @@ type AdvertisersPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser. This method supports patch -// semantics. +// Patch: Updates an existing advertiser. This method supports patch semantics. +// +// - id: Advertiser ID. +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advertiser) *AdvertisersPatchCall { c := &AdvertisersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18988,23 +14596,21 @@ func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersPatchCall) Fields(s ...googleapi.Field) *AdvertisersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19013,18 +14619,12 @@ func (c *AdvertisersPatchCall) Header() http.Header { } func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -19037,16 +14637,14 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.patch" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19054,17 +14652,17 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -19077,45 +14675,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertisers.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.update": +} type AdvertisersUpdateCall struct { s *Service @@ -19127,6 +14687,8 @@ type AdvertisersUpdateCall struct { } // Update: Updates an existing advertiser. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *AdvertisersUpdateCall { c := &AdvertisersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19135,23 +14697,21 @@ func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersUpdateCall) Fields(s ...googleapi.Field) *AdvertisersUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersUpdateCall) Context(ctx context.Context) *AdvertisersUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19160,18 +14720,12 @@ func (c *AdvertisersUpdateCall) Header() http.Header { } func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -19184,16 +14738,14 @@ func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.update" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19201,17 +14753,17 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -19224,37 +14776,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertisers.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.browsers.list": +} type BrowsersListCall struct { s *Service @@ -19266,6 +14788,8 @@ type BrowsersListCall struct { } // List: Retrieves a list of browsers. +// +// - profileId: User profile ID associated with this request. func (r *BrowsersService) List(profileId int64) *BrowsersListCall { c := &BrowsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19273,33 +14797,29 @@ func (r *BrowsersService) List(profileId int64) *BrowsersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BrowsersListCall) Fields(s ...googleapi.Field) *BrowsersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BrowsersListCall) IfNoneMatch(entityTag string) *BrowsersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BrowsersListCall) Context(ctx context.Context) *BrowsersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BrowsersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19308,12 +14828,7 @@ func (c *BrowsersListCall) Header() http.Header { } func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19330,16 +14845,15 @@ func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.browsers.list" call. -// Exactly one of *BrowsersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BrowsersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BrowsersListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19347,17 +14861,17 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BrowsersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19370,34 +14884,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of browsers.", - // "httpMethod": "GET", - // "id": "dfareporting.browsers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/browsers", - // "response": { - // "$ref": "BrowsersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.insert": +} type CampaignCreativeAssociationsInsertCall struct { s *Service @@ -19409,9 +14896,12 @@ type CampaignCreativeAssociationsInsertCall struct { header_ http.Header } -// Insert: Associates a creative with the specified campaign. This -// method creates a default ad with dimensions matching the creative in -// the campaign if such a default ad does not exist already. +// Insert: Associates a creative with the specified campaign. This method +// creates a default ad with dimensions matching the creative in the campaign +// if such a default ad does not exist already. +// +// - campaignId: Campaign ID in this association. +// - profileId: User profile ID associated with this request. func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId int64, campaigncreativeassociation *CampaignCreativeAssociation) *CampaignCreativeAssociationsInsertCall { c := &CampaignCreativeAssociationsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19421,23 +14911,21 @@ func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsInsertCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsInsertCall) Context(ctx context.Context) *CampaignCreativeAssociationsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19446,18 +14934,12 @@ func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { } func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaigncreativeassociation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") @@ -19471,16 +14953,15 @@ func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Re "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.insert" call. -// Exactly one of *CampaignCreativeAssociation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CampaignCreativeAssociation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CampaignCreativeAssociation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19488,17 +14969,17 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociation{ ServerResponse: googleapi.ServerResponse{ @@ -19511,45 +14992,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.", - // "httpMethod": "POST", - // "id": "dfareporting.campaignCreativeAssociations.insert", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "request": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "response": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.list": +} type CampaignCreativeAssociationsListCall struct { s *Service @@ -19561,8 +15004,11 @@ type CampaignCreativeAssociationsListCall struct { header_ http.Header } -// List: Retrieves the list of creative IDs associated with the -// specified campaign. This method supports paging. +// List: Retrieves the list of creative IDs associated with the specified +// campaign. This method supports paging. +// +// - campaignId: Campaign ID in this association. +// - profileId: User profile ID associated with this request. func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId int64) *CampaignCreativeAssociationsListCall { c := &CampaignCreativeAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19570,8 +15016,8 @@ func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId i return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignCreativeAssociationsListCall) MaxResults(maxResults int64) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -19584,8 +15030,7 @@ func (c *CampaignCreativeAssociationsListCall) PageToken(pageToken string) *Camp return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -19597,33 +15042,29 @@ func (c *CampaignCreativeAssociationsListCall) SortOrder(sortOrder string) *Camp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsListCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignCreativeAssociationsListCall) IfNoneMatch(entityTag string) *CampaignCreativeAssociationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsListCall) Context(ctx context.Context) *CampaignCreativeAssociationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19632,12 +15073,7 @@ func (c *CampaignCreativeAssociationsListCall) Header() http.Header { } func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19655,18 +15091,15 @@ func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Resp "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.list" call. -// Exactly one of *CampaignCreativeAssociationsListResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19674,17 +15107,17 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19697,67 +15130,6 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.campaignCreativeAssociations.list", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "response": { - // "$ref": "CampaignCreativeAssociationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -19765,7 +15137,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func(*CampaignCreativeAssociationsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -19781,8 +15153,6 @@ func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func } } -// method id "dfareporting.campaigns.get": - type CampaignsGetCall struct { s *Service profileId int64 @@ -19794,6 +15164,9 @@ type CampaignsGetCall struct { } // Get: Gets one campaign by ID. +// +// - id: Campaign ID. +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { c := &CampaignsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19802,33 +15175,29 @@ func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsGetCall) Fields(s ...googleapi.Field) *CampaignsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsGetCall) IfNoneMatch(entityTag string) *CampaignsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsGetCall) Context(ctx context.Context) *CampaignsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19837,12 +15206,7 @@ func (c *CampaignsGetCall) Header() http.Header { } func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19860,16 +15224,14 @@ func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.get" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19877,17 +15239,17 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -19900,42 +15262,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { return nil, err } return ret, nil - // { - // "description": "Gets one campaign by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{id}", - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.insert": +} type CampaignsInsertCall struct { s *Service @@ -19947,6 +15274,11 @@ type CampaignsInsertCall struct { } // Insert: Inserts a new campaign. +// +// - defaultLandingPageName: Default landing page name for this new campaign. +// Must be less than 256 characters long. +// - defaultLandingPageUrl: Default landing page URL for this new campaign. +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Insert(profileId int64, defaultLandingPageName string, defaultLandingPageUrl string, campaign *Campaign) *CampaignsInsertCall { c := &CampaignsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19957,23 +15289,21 @@ func (r *CampaignsService) Insert(profileId int64, defaultLandingPageName string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsInsertCall) Fields(s ...googleapi.Field) *CampaignsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsInsertCall) Context(ctx context.Context) *CampaignsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19982,18 +15312,12 @@ func (c *CampaignsInsertCall) Header() http.Header { } func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -20006,16 +15330,14 @@ func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.insert" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20023,17 +15345,17 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -20046,51 +15368,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Inserts a new campaign.", - // "httpMethod": "POST", - // "id": "dfareporting.campaigns.insert", - // "parameterOrder": [ - // "profileId", - // "defaultLandingPageName", - // "defaultLandingPageUrl" - // ], - // "parameters": { - // "defaultLandingPageName": { - // "description": "Default landing page name for this new campaign. Must be less than 256 characters long.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "defaultLandingPageUrl": { - // "description": "Default landing page URL for this new campaign.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.list": +} type CampaignsListCall struct { s *Service @@ -20101,17 +15379,18 @@ type CampaignsListCall struct { header_ http.Header } -// List: Retrieves a list of campaigns, possibly filtered. This method -// supports paging. +// List: Retrieves a list of campaigns, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) List(profileId int64) *CampaignsListCall { c := &CampaignsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only campaigns whose advertisers belong to these advertiser -// groups. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only campaigns whose advertisers belong to these advertiser groups. func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *CampaignsListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -20121,8 +15400,8 @@ func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *Cam return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only campaigns that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// campaigns that belong to these advertisers. func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -20133,23 +15412,23 @@ func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsList } // Archived sets the optional parameter "archived": Select only archived -// campaigns. Don't set this field to select both archived and -// non-archived campaigns. +// campaigns. Don't set this field to select both archived and non-archived +// campaigns. func (c *CampaignsListCall) Archived(archived bool) *CampaignsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } // AtLeastOneOptimizationActivity sets the optional parameter -// "atLeastOneOptimizationActivity": Select only campaigns that have at -// least one optimization activity. +// "atLeastOneOptimizationActivity": Select only campaigns that have at least +// one optimization activity. func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivity bool) *CampaignsListCall { c.urlParams_.Set("atLeastOneOptimizationActivity", fmt.Sprint(atLeastOneOptimizationActivity)) return c } -// ExcludedIds sets the optional parameter "excludedIds": Exclude -// campaigns with these IDs. +// ExcludedIds sets the optional parameter "excludedIds": Exclude campaigns +// with these IDs. func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall { var excludedIds_ []string for _, v := range excludedIds { @@ -20159,8 +15438,7 @@ func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall return c } -// Ids sets the optional parameter "ids": Select only campaigns with -// these IDs. +// Ids sets the optional parameter "ids": Select only campaigns with these IDs. func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { var ids_ []string for _, v := range ids { @@ -20170,16 +15448,15 @@ func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignsListCall) MaxResults(maxResults int64) *CampaignsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only campaigns that have overridden -// this event tag ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only campaigns that have overridden this event tag ID. func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagId int64) *CampaignsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -20192,21 +15469,20 @@ func (c *CampaignsListCall) PageToken(pageToken string) *CampaignsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for campaigns by name or ID. Wildcards (*) are allowed. For -// example, "campaign*2015" will return campaigns with names like -// "campaign June 2015", "campaign April 2015", or simply "campaign -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "campaign" will match campaigns with name "my campaign", "campaign -// 2015", or simply "campaign". +// SearchString sets the optional parameter "searchString": Allows searching +// for campaigns by name or ID. Wildcards (*) are allowed. For example, +// "campaign*2015" will return campaigns with names like "campaign June 2015", +// "campaign April 2015", or simply "campaign 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "campaign" will match campaigns with name "my +// campaign", "campaign 2015", or simply "campaign". func (c *CampaignsListCall) SearchString(searchString string) *CampaignsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -20217,8 +15493,7 @@ func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -20237,33 +15512,29 @@ func (c *CampaignsListCall) SubaccountId(subaccountId int64) *CampaignsListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsListCall) Fields(s ...googleapi.Field) *CampaignsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsListCall) IfNoneMatch(entityTag string) *CampaignsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsListCall) Context(ctx context.Context) *CampaignsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20272,12 +15543,7 @@ func (c *CampaignsListCall) Header() http.Header { } func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20294,16 +15560,15 @@ func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.list" call. -// Exactly one of *CampaignsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CampaignsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20311,17 +15576,17 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20334,128 +15599,6 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only campaigns whose advertisers belong to these advertiser groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "advertiserIds": { - // "description": "Select only campaigns that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.", - // "location": "query", - // "type": "boolean" - // }, - // "atLeastOneOptimizationActivity": { - // "description": "Select only campaigns that have at least one optimization activity.", - // "location": "query", - // "type": "boolean" - // }, - // "excludedIds": { - // "description": "Exclude campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only campaigns that have overridden this event tag ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, \"campaign*2015\" will return campaigns with names like \"campaign June 2015\", \"campaign April 2015\", or simply \"campaign 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"campaign\" will match campaigns with name \"my campaign\", \"campaign 2015\", or simply \"campaign\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only campaigns that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "response": { - // "$ref": "CampaignsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -20463,7 +15606,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // The provided context supersedes any context provided to the Context method. func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20479,8 +15622,6 @@ func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResp } } -// method id "dfareporting.campaigns.patch": - type CampaignsPatchCall struct { s *Service profileId int64 @@ -20490,8 +15631,10 @@ type CampaignsPatchCall struct { header_ http.Header } -// Patch: Updates an existing campaign. This method supports patch -// semantics. +// Patch: Updates an existing campaign. This method supports patch semantics. +// +// - id: Campaign ID. +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) *CampaignsPatchCall { c := &CampaignsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20501,23 +15644,21 @@ func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsPatchCall) Fields(s ...googleapi.Field) *CampaignsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsPatchCall) Context(ctx context.Context) *CampaignsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20526,18 +15667,12 @@ func (c *CampaignsPatchCall) Header() http.Header { } func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -20550,16 +15685,14 @@ func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.patch" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20567,17 +15700,17 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -20590,45 +15723,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.campaigns.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.update": +} type CampaignsUpdateCall struct { s *Service @@ -20640,6 +15735,8 @@ type CampaignsUpdateCall struct { } // Update: Updates an existing campaign. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *CampaignsUpdateCall { c := &CampaignsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20648,23 +15745,21 @@ func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsUpdateCall) Fields(s ...googleapi.Field) *CampaignsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsUpdateCall) Context(ctx context.Context) *CampaignsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20673,18 +15768,12 @@ func (c *CampaignsUpdateCall) Header() http.Header { } func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -20697,16 +15786,14 @@ func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.update" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20714,17 +15801,17 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -20737,37 +15824,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign.", - // "httpMethod": "PUT", - // "id": "dfareporting.campaigns.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.get": +} type ChangeLogsGetCall struct { s *Service @@ -20780,6 +15837,9 @@ type ChangeLogsGetCall struct { } // Get: Gets one change log by ID. +// +// - id: Change log ID. +// - profileId: User profile ID associated with this request. func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { c := &ChangeLogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20788,33 +15848,29 @@ func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsGetCall) Fields(s ...googleapi.Field) *ChangeLogsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsGetCall) IfNoneMatch(entityTag string) *ChangeLogsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsGetCall) Context(ctx context.Context) *ChangeLogsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20823,12 +15879,7 @@ func (c *ChangeLogsGetCall) Header() http.Header { } func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20846,16 +15897,14 @@ func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.get" call. -// Exactly one of *ChangeLog or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ChangeLog.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLog.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20863,17 +15912,17 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLog{ ServerResponse: googleapi.ServerResponse{ @@ -20886,42 +15935,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) return nil, err } return ret, nil - // { - // "description": "Gets one change log by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Change log ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs/{id}", - // "response": { - // "$ref": "ChangeLog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.list": +} type ChangeLogsListCall struct { s *Service @@ -20933,14 +15947,16 @@ type ChangeLogsListCall struct { } // List: Retrieves a list of change logs. This method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *ChangeLogsService) List(profileId int64) *ChangeLogsListCall { c := &ChangeLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Action sets the optional parameter "action": Select only change logs -// with the specified action. +// Action sets the optional parameter "action": Select only change logs with +// the specified action. // // Possible values: // @@ -20966,8 +15982,8 @@ func (c *ChangeLogsListCall) Action(action string) *ChangeLogsListCall { return c } -// Ids sets the optional parameter "ids": Select only change logs with -// these IDs. +// Ids sets the optional parameter "ids": Select only change logs with these +// IDs. func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { var ids_ []string for _, v := range ids { @@ -20977,41 +15993,39 @@ func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { return c } -// MaxChangeTime sets the optional parameter "maxChangeTime": Select -// only change logs whose change time is before the specified -// maxChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MaxChangeTime sets the optional parameter "maxChangeTime": Select only +// change logs whose change time is before the specified maxChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("maxChangeTime", maxChangeTime) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ChangeLogsListCall) MaxResults(maxResults int64) *ChangeLogsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// MinChangeTime sets the optional parameter "minChangeTime": Select -// only change logs whose change time is before the specified -// minChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MinChangeTime sets the optional parameter "minChangeTime": Select only +// change logs whose change time is before the specified minChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MinChangeTime(minChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("minChangeTime", minChangeTime) return c } -// ObjectIds sets the optional parameter "objectIds": Select only change -// logs with these object IDs. +// ObjectIds sets the optional parameter "objectIds": Select only change logs +// with these object IDs. func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { var objectIds_ []string for _, v := range objectIds { @@ -21021,8 +16035,8 @@ func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { return c } -// ObjectType sets the optional parameter "objectType": Select only -// change logs with the specified object type. +// ObjectType sets the optional parameter "objectType": Select only change logs +// with the specified object type. // // Possible values: // @@ -21077,16 +16091,15 @@ func (c *ChangeLogsListCall) PageToken(pageToken string) *ChangeLogsListCall { return c } -// SearchString sets the optional parameter "searchString": Select only -// change logs whose object ID, user name, old or new values match the -// search string. +// SearchString sets the optional parameter "searchString": Select only change +// logs whose object ID, user name, old or new values match the search string. func (c *ChangeLogsListCall) SearchString(searchString string) *ChangeLogsListCall { c.urlParams_.Set("searchString", searchString) return c } -// UserProfileIds sets the optional parameter "userProfileIds": Select -// only change logs with these user profile IDs. +// UserProfileIds sets the optional parameter "userProfileIds": Select only +// change logs with these user profile IDs. func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogsListCall { var userProfileIds_ []string for _, v := range userProfileIds { @@ -21097,33 +16110,29 @@ func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogs } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsListCall) Fields(s ...googleapi.Field) *ChangeLogsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsListCall) IfNoneMatch(entityTag string) *ChangeLogsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsListCall) Context(ctx context.Context) *ChangeLogsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21132,12 +16141,7 @@ func (c *ChangeLogsListCall) Header() http.Header { } func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21154,16 +16158,15 @@ func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.list" call. -// Exactly one of *ChangeLogsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ChangeLogsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLogsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21171,17 +16174,17 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLogsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21194,211 +16197,6 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of change logs. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "action": { - // "description": "Select only change logs with the specified action.", - // "enum": [ - // "ACTION_ADD", - // "ACTION_ASSIGN", - // "ACTION_ASSOCIATE", - // "ACTION_CREATE", - // "ACTION_DELETE", - // "ACTION_DISABLE", - // "ACTION_EMAIL_TAGS", - // "ACTION_ENABLE", - // "ACTION_LINK", - // "ACTION_MARK_AS_DEFAULT", - // "ACTION_PUSH", - // "ACTION_REMOVE", - // "ACTION_SEND", - // "ACTION_SHARE", - // "ACTION_UNASSIGN", - // "ACTION_UNLINK", - // "ACTION_UPDATE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only change logs with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxChangeTime": { - // "description": "Select only change logs whose change time is before the specified maxChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "minChangeTime": { - // "description": "Select only change logs whose change time is before the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "objectIds": { - // "description": "Select only change logs with these object IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Select only change logs with the specified object type.", - // "enum": [ - // "OBJECT_ACCOUNT", - // "OBJECT_ACCOUNT_BILLING_FEATURE", - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_ADVERTISER_GROUP", - // "OBJECT_BILLING_ACCOUNT_GROUP", - // "OBJECT_BILLING_FEATURE", - // "OBJECT_BILLING_MINIMUM_FEE", - // "OBJECT_BILLING_PROFILE", - // "OBJECT_CAMPAIGN", - // "OBJECT_CONTENT_CATEGORY", - // "OBJECT_CREATIVE", - // "OBJECT_CREATIVE_ASSET", - // "OBJECT_CREATIVE_BUNDLE", - // "OBJECT_CREATIVE_FIELD", - // "OBJECT_CREATIVE_GROUP", - // "OBJECT_DFA_SITE", - // "OBJECT_EVENT_TAG", - // "OBJECT_FLOODLIGHT_ACTIVITY_GROUP", - // "OBJECT_FLOODLIGHT_ACTVITY", - // "OBJECT_FLOODLIGHT_CONFIGURATION", - // "OBJECT_INSTREAM_CREATIVE", - // "OBJECT_LANDING_PAGE", - // "OBJECT_MEDIA_ORDER", - // "OBJECT_PLACEMENT", - // "OBJECT_PLACEMENT_STRATEGY", - // "OBJECT_PLAYSTORE_LINK", - // "OBJECT_PROVIDED_LIST_CLIENT", - // "OBJECT_RATE_CARD", - // "OBJECT_REMARKETING_LIST", - // "OBJECT_RICHMEDIA_CREATIVE", - // "OBJECT_SD_SITE", - // "OBJECT_SEARCH_LIFT_STUDY", - // "OBJECT_SIZE", - // "OBJECT_SUBACCOUNT", - // "OBJECT_TARGETING_TEMPLATE", - // "OBJECT_USER_PROFILE", - // "OBJECT_USER_PROFILE_FILTER", - // "OBJECT_USER_ROLE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Select only change logs whose object ID, user name, old or new values match the search string.", - // "location": "query", - // "type": "string" - // }, - // "userProfileIds": { - // "description": "Select only change logs with these user profile IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs", - // "response": { - // "$ref": "ChangeLogsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -21406,7 +16204,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // The provided context supersedes any context provided to the Context method. func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21422,8 +16220,6 @@ func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListRe } } -// method id "dfareporting.cities.list": - type CitiesListCall struct { s *Service profileId int64 @@ -21434,14 +16230,16 @@ type CitiesListCall struct { } // List: Retrieves a list of cities, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *CitiesService) List(profileId int64) *CitiesListCall { c := &CitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// CountryDartIds sets the optional parameter "countryDartIds": Select -// only cities from these countries. +// CountryDartIds sets the optional parameter "countryDartIds": Select only +// cities from these countries. func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall { var countryDartIds_ []string for _, v := range countryDartIds { @@ -21451,8 +16249,8 @@ func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall return c } -// DartIds sets the optional parameter "dartIds": Select only cities -// with these DART IDs. +// DartIds sets the optional parameter "dartIds": Select only cities with these +// DART IDs. func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { var dartIds_ []string for _, v := range dartIds { @@ -21462,15 +16260,15 @@ func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { return c } -// NamePrefix sets the optional parameter "namePrefix": Select only -// cities with names starting with this prefix. +// NamePrefix sets the optional parameter "namePrefix": Select only cities with +// names starting with this prefix. func (c *CitiesListCall) NamePrefix(namePrefix string) *CitiesListCall { c.urlParams_.Set("namePrefix", namePrefix) return c } -// RegionDartIds sets the optional parameter "regionDartIds": Select -// only cities from these regions. +// RegionDartIds sets the optional parameter "regionDartIds": Select only +// cities from these regions. func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { var regionDartIds_ []string for _, v := range regionDartIds { @@ -21481,33 +16279,29 @@ func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CitiesListCall) Fields(s ...googleapi.Field) *CitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CitiesListCall) IfNoneMatch(entityTag string) *CitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CitiesListCall) Context(ctx context.Context) *CitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21516,12 +16310,7 @@ func (c *CitiesListCall) Header() http.Header { } func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21538,16 +16327,15 @@ func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.cities.list" call. -// Exactly one of *CitiesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CitiesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CitiesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21555,17 +16343,17 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21578,60 +16366,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of cities, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.cities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "countryDartIds": { - // "description": "Select only cities from these countries.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dartIds": { - // "description": "Select only cities with these DART IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "namePrefix": { - // "description": "Select only cities with names starting with this prefix.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "regionDartIds": { - // "description": "Select only cities from these regions.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/cities", - // "response": { - // "$ref": "CitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.get": +} type ConnectionTypesGetCall struct { s *Service @@ -21644,6 +16379,9 @@ type ConnectionTypesGetCall struct { } // Get: Gets one connection type by ID. +// +// - id: Connection type ID. +// - profileId: User profile ID associated with this request. func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypesGetCall { c := &ConnectionTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21652,33 +16390,29 @@ func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypes } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesGetCall) Fields(s ...googleapi.Field) *ConnectionTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesGetCall) IfNoneMatch(entityTag string) *ConnectionTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesGetCall) Context(ctx context.Context) *ConnectionTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21687,12 +16421,7 @@ func (c *ConnectionTypesGetCall) Header() http.Header { } func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21710,16 +16439,14 @@ func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.get" call. -// Exactly one of *ConnectionType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ConnectionType.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConnectionType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21727,17 +16454,17 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionType{ ServerResponse: googleapi.ServerResponse{ @@ -21750,42 +16477,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy return nil, err } return ret, nil - // { - // "description": "Gets one connection type by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Connection type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes/{id}", - // "response": { - // "$ref": "ConnectionType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.list": +} type ConnectionTypesListCall struct { s *Service @@ -21797,6 +16489,8 @@ type ConnectionTypesListCall struct { } // List: Retrieves a list of connection types. +// +// - profileId: User profile ID associated with this request. func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall { c := &ConnectionTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21804,33 +16498,29 @@ func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesListCall) Fields(s ...googleapi.Field) *ConnectionTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesListCall) IfNoneMatch(entityTag string) *ConnectionTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesListCall) Context(ctx context.Context) *ConnectionTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21839,12 +16529,7 @@ func (c *ConnectionTypesListCall) Header() http.Header { } func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21861,16 +16546,15 @@ func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.list" call. -// Exactly one of *ConnectionTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ConnectionTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ConnectionTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21878,17 +16562,17 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21901,34 +16585,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT return nil, err } return ret, nil - // { - // "description": "Retrieves a list of connection types.", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes", - // "response": { - // "$ref": "ConnectionTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.delete": +} type ContentCategoriesDeleteCall struct { s *Service @@ -21940,6 +16597,9 @@ type ContentCategoriesDeleteCall struct { } // Delete: Deletes an existing content category. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCategoriesDeleteCall { c := &ContentCategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21948,23 +16608,21 @@ func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesDeleteCall) Fields(s ...googleapi.Field) *ContentCategoriesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesDeleteCall) Context(ctx context.Context) *ContentCategoriesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21973,12 +16631,7 @@ func (c *ContentCategoriesDeleteCall) Header() http.Header { } func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -21993,7 +16646,7 @@ func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.delete" call. @@ -22005,42 +16658,10 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing content category.", - // "httpMethod": "DELETE", - // "id": "dfareporting.contentCategories.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.get": +} type ContentCategoriesGetCall struct { s *Service @@ -22053,6 +16674,9 @@ type ContentCategoriesGetCall struct { } // Get: Gets one content category by ID. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCategoriesGetCall { c := &ContentCategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22061,33 +16685,29 @@ func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCatego } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesGetCall) Fields(s ...googleapi.Field) *ContentCategoriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesGetCall) IfNoneMatch(entityTag string) *ContentCategoriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesGetCall) Context(ctx context.Context) *ContentCategoriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22096,12 +16716,7 @@ func (c *ContentCategoriesGetCall) Header() http.Header { } func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22119,16 +16734,15 @@ func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.get" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22136,17 +16750,17 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -22159,42 +16773,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat return nil, err } return ret, nil - // { - // "description": "Gets one content category by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.insert": +} type ContentCategoriesInsertCall struct { s *Service @@ -22206,6 +16785,8 @@ type ContentCategoriesInsertCall struct { } // Insert: Inserts a new content category. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *ContentCategory) *ContentCategoriesInsertCall { c := &ContentCategoriesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22214,23 +16795,21 @@ func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesInsertCall) Fields(s ...googleapi.Field) *ContentCategoriesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesInsertCall) Context(ctx context.Context) *ContentCategoriesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22239,18 +16818,12 @@ func (c *ContentCategoriesInsertCall) Header() http.Header { } func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -22263,16 +16836,15 @@ func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.insert" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22280,17 +16852,17 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -22303,37 +16875,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Inserts a new content category.", - // "httpMethod": "POST", - // "id": "dfareporting.contentCategories.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.list": +} type ContentCategoriesListCall struct { s *Service @@ -22344,16 +16886,18 @@ type ContentCategoriesListCall struct { header_ http.Header } -// List: Retrieves a list of content categories, possibly filtered. This -// method supports paging. +// List: Retrieves a list of content categories, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListCall { c := &ContentCategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only content categories -// with these IDs. +// Ids sets the optional parameter "ids": Select only content categories with +// these IDs. func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall { var ids_ []string for _, v := range ids { @@ -22363,8 +16907,8 @@ func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ContentCategoriesListCall) MaxResults(maxResults int64) *ContentCategoriesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -22377,22 +16921,21 @@ func (c *ContentCategoriesListCall) PageToken(pageToken string) *ContentCategori return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "contentcategory*2015" will return objects with names like -// "contentcategory June 2015", "contentcategory April 2015", or simply -// "contentcategory 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "contentcategory" will match objects with -// name "my contentcategory", "contentcategory 2015", or simply -// "contentcategory". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "contentcategory*2015" will return objects with names like "contentcategory +// June 2015", "contentcategory April 2015", or simply "contentcategory 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "contentcategory" will +// match objects with name "my contentcategory", "contentcategory 2015", or +// simply "contentcategory". func (c *ContentCategoriesListCall) SearchString(searchString string) *ContentCategoriesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -22403,8 +16946,7 @@ func (c *ContentCategoriesListCall) SortField(sortField string) *ContentCategori return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -22416,33 +16958,29 @@ func (c *ContentCategoriesListCall) SortOrder(sortOrder string) *ContentCategori } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesListCall) Fields(s ...googleapi.Field) *ContentCategoriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesListCall) IfNoneMatch(entityTag string) *ContentCategoriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesListCall) Context(ctx context.Context) *ContentCategoriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22451,12 +16989,7 @@ func (c *ContentCategoriesListCall) Header() http.Header { } func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22473,16 +17006,15 @@ func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.list" call. -// Exactly one of *ContentCategoriesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ContentCategoriesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategoriesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCategoriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22490,17 +17022,17 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategoriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22513,85 +17045,6 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa return nil, err } return ret, nil - // { - // "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only content categories with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"contentcategory*2015\" will return objects with names like \"contentcategory June 2015\", \"contentcategory April 2015\", or simply \"contentcategory 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"contentcategory\" will match objects with name \"my contentcategory\", \"contentcategory 2015\", or simply \"contentcategory\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "response": { - // "$ref": "ContentCategoriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -22599,7 +17052,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // The provided context supersedes any context provided to the Context method. func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCategoriesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -22615,8 +17068,6 @@ func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCa } } -// method id "dfareporting.contentCategories.patch": - type ContentCategoriesPatchCall struct { s *Service profileId int64 @@ -22626,8 +17077,11 @@ type ContentCategoriesPatchCall struct { header_ http.Header } -// Patch: Updates an existing content category. This method supports -// patch semantics. +// Patch: Updates an existing content category. This method supports patch +// semantics. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcategory *ContentCategory) *ContentCategoriesPatchCall { c := &ContentCategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22637,23 +17091,21 @@ func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcateg } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesPatchCall) Fields(s ...googleapi.Field) *ContentCategoriesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesPatchCall) Context(ctx context.Context) *ContentCategoriesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22662,18 +17114,12 @@ func (c *ContentCategoriesPatchCall) Header() http.Header { } func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -22686,16 +17132,15 @@ func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.patch" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22703,17 +17148,17 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -22726,45 +17171,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC return nil, err } return ret, nil - // { - // "description": "Updates an existing content category. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.contentCategories.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.update": +} type ContentCategoriesUpdateCall struct { s *Service @@ -22776,6 +17183,8 @@ type ContentCategoriesUpdateCall struct { } // Update: Updates an existing content category. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Update(profileId int64, contentcategory *ContentCategory) *ContentCategoriesUpdateCall { c := &ContentCategoriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22784,23 +17193,21 @@ func (r *ContentCategoriesService) Update(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesUpdateCall) Fields(s ...googleapi.Field) *ContentCategoriesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesUpdateCall) Context(ctx context.Context) *ContentCategoriesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22809,18 +17216,12 @@ func (c *ContentCategoriesUpdateCall) Header() http.Header { } func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -22833,16 +17234,15 @@ func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.update" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22850,17 +17250,17 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -22873,37 +17273,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Updates an existing content category.", - // "httpMethod": "PUT", - // "id": "dfareporting.contentCategories.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.conversions.batchinsert": +} type ConversionsBatchinsertCall struct { s *Service @@ -22915,6 +17285,8 @@ type ConversionsBatchinsertCall struct { } // Batchinsert: Inserts conversions. +// +// - profileId: User profile ID associated with this request. func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsertrequest *ConversionsBatchInsertRequest) *ConversionsBatchinsertCall { c := &ConversionsBatchinsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22923,23 +17295,21 @@ func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchinsertCall) Fields(s ...googleapi.Field) *ConversionsBatchinsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchinsertCall) Context(ctx context.Context) *ConversionsBatchinsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchinsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22948,18 +17318,12 @@ func (c *ConversionsBatchinsertCall) Header() http.Header { } func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchinsertrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchinsert") @@ -22972,16 +17336,15 @@ func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchinsert" call. -// Exactly one of *ConversionsBatchInsertResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchInsertResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchInsertResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchInsertResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22989,17 +17352,17 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchInsertResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23012,37 +17375,7 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Inserts conversions.", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchinsert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchinsert", - // "request": { - // "$ref": "ConversionsBatchInsertRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchInsertResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.countries.get": +} type CountriesGetCall struct { s *Service @@ -23055,6 +17388,9 @@ type CountriesGetCall struct { } // Get: Gets one country by ID. +// +// - dartId: Country DART ID. +// - profileId: User profile ID associated with this request. func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall { c := &CountriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23063,33 +17399,29 @@ func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesGetCall) Fields(s ...googleapi.Field) *CountriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesGetCall) IfNoneMatch(entityTag string) *CountriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesGetCall) Context(ctx context.Context) *CountriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23098,12 +17430,7 @@ func (c *CountriesGetCall) Header() http.Header { } func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23121,16 +17448,14 @@ func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.get" call. -// Exactly one of *Country or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Country.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Country.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23138,17 +17463,17 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Country{ ServerResponse: googleapi.ServerResponse{ @@ -23161,42 +17486,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { return nil, err } return ret, nil - // { - // "description": "Gets one country by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.countries.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Country DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries/{dartId}", - // "response": { - // "$ref": "Country" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.countries.list": +} type CountriesListCall struct { s *Service @@ -23208,6 +17498,8 @@ type CountriesListCall struct { } // List: Retrieves a list of countries. +// +// - profileId: User profile ID associated with this request. func (r *CountriesService) List(profileId int64) *CountriesListCall { c := &CountriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23215,33 +17507,29 @@ func (r *CountriesService) List(profileId int64) *CountriesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesListCall) Fields(s ...googleapi.Field) *CountriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesListCall) IfNoneMatch(entityTag string) *CountriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesListCall) Context(ctx context.Context) *CountriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23250,12 +17538,7 @@ func (c *CountriesListCall) Header() http.Header { } func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23272,16 +17555,15 @@ func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.list" call. -// Exactly one of *CountriesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CountriesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CountriesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23289,17 +17571,17 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CountriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23312,34 +17594,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of countries.", - // "httpMethod": "GET", - // "id": "dfareporting.countries.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries", - // "response": { - // "$ref": "CountriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeAssets.insert": +} type CreativeAssetsInsertCall struct { s *Service @@ -23353,6 +17608,9 @@ type CreativeAssetsInsertCall struct { } // Insert: Inserts a new creative asset. +// +// - advertiserId: Advertiser ID of this creative. This is a required field. +// - profileId: User profile ID associated with this request. func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall { c := &CreativeAssetsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23361,54 +17619,51 @@ func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, crea return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeAssetsInsertCall) Fields(s ...googleapi.Field) *CreativeAssetsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsInsertCall { @@ -23416,8 +17671,8 @@ func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsI return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeAssetsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23426,18 +17681,12 @@ func (c *CreativeAssetsInsertCall) Header() http.Header { } func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativeassetmetadata) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") @@ -23462,16 +17711,15 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeAssets.insert" call. -// Exactly one of *CreativeAssetMetadata or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeAssetMetadata.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeAssetMetadata.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23479,17 +17727,17 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -23505,7 +17753,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &CreativeAssetMetadata{ @@ -23519,62 +17767,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs return nil, err } return ret, nil - // { - // "description": "Inserts a new creative asset.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeAssets.insert", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "maxSize": "1024MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/dfareporting/v2.7/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/dfareporting/v2.7/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // } - // } - // }, - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Advertiser ID of this creative. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - // "request": { - // "$ref": "CreativeAssetMetadata" - // }, - // "response": { - // "$ref": "CreativeAssetMetadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "dfareporting.creativeFieldValues.delete": +} type CreativeFieldValuesDeleteCall struct { s *Service @@ -23587,6 +17780,10 @@ type CreativeFieldValuesDeleteCall struct { } // Delete: Deletes an existing creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesDeleteCall { c := &CreativeFieldValuesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23596,23 +17793,21 @@ func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldValuesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesDeleteCall) Context(ctx context.Context) *CreativeFieldValuesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23621,12 +17816,7 @@ func (c *CreativeFieldValuesDeleteCall) Header() http.Header { } func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -23642,7 +17832,7 @@ func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, e "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.delete" call. @@ -23654,50 +17844,10 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field value.", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFieldValues.delete", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.get": +} type CreativeFieldValuesGetCall struct { s *Service @@ -23711,6 +17861,10 @@ type CreativeFieldValuesGetCall struct { } // Get: Gets one creative field value by ID. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesGetCall { c := &CreativeFieldValuesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23720,33 +17874,29 @@ func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesGetCall) Fields(s ...googleapi.Field) *CreativeFieldValuesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesGetCall) IfNoneMatch(entityTag string) *CreativeFieldValuesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesGetCall) Context(ctx context.Context) *CreativeFieldValuesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23755,12 +17905,7 @@ func (c *CreativeFieldValuesGetCall) Header() http.Header { } func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23779,16 +17924,15 @@ func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, erro "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.get" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23796,17 +17940,17 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -23819,50 +17963,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative return nil, err } return ret, nil - // { - // "description": "Gets one creative field value by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.get", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.insert": +} type CreativeFieldValuesInsertCall struct { s *Service @@ -23875,6 +17976,9 @@ type CreativeFieldValuesInsertCall struct { } // Insert: Inserts a new creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesInsertCall { c := &CreativeFieldValuesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23884,23 +17988,21 @@ func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesInsertCall) Fields(s ...googleapi.Field) *CreativeFieldValuesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesInsertCall) Context(ctx context.Context) *CreativeFieldValuesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23909,18 +18011,12 @@ func (c *CreativeFieldValuesInsertCall) Header() http.Header { } func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -23934,16 +18030,15 @@ func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.insert" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23951,17 +18046,17 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -23974,45 +18069,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field value.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFieldValues.insert", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.list": +} type CreativeFieldValuesListCall struct { s *Service @@ -24024,8 +18081,11 @@ type CreativeFieldValuesListCall struct { header_ http.Header } -// List: Retrieves a list of creative field values, possibly filtered. -// This method supports paging. +// List: Retrieves a list of creative field values, possibly filtered. This +// method supports paging. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64) *CreativeFieldValuesListCall { c := &CreativeFieldValuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24033,8 +18093,8 @@ func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64 return c } -// Ids sets the optional parameter "ids": Select only creative field -// values with these IDs. +// Ids sets the optional parameter "ids": Select only creative field values +// with these IDs. func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesListCall { var ids_ []string for _, v := range ids { @@ -24044,8 +18104,8 @@ func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldValuesListCall) MaxResults(maxResults int64) *CreativeFieldValuesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -24058,16 +18118,16 @@ func (c *CreativeFieldValuesListCall) PageToken(pageToken string) *CreativeField return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative field values by their values. Wildcards (e.g. -// *) are not allowed. +// SearchString sets the optional parameter "searchString": Allows searching +// for creative field values by their values. Wildcards (e.g. *) are not +// allowed. func (c *CreativeFieldValuesListCall) SearchString(searchString string) *CreativeFieldValuesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -24078,8 +18138,7 @@ func (c *CreativeFieldValuesListCall) SortField(sortField string) *CreativeField return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -24091,33 +18150,29 @@ func (c *CreativeFieldValuesListCall) SortOrder(sortOrder string) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesListCall) Fields(s ...googleapi.Field) *CreativeFieldValuesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesListCall) IfNoneMatch(entityTag string) *CreativeFieldValuesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesListCall) Context(ctx context.Context) *CreativeFieldValuesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24126,12 +18181,7 @@ func (c *CreativeFieldValuesListCall) Header() http.Header { } func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24149,16 +18199,15 @@ func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.list" call. -// Exactly one of *CreativeFieldValuesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *CreativeFieldValuesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValuesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValuesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24166,17 +18215,17 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValuesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24189,93 +18238,6 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.list", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative field values with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative field values by their values. Wildcards (e.g. *) are not allowed.", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "VALUE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "response": { - // "$ref": "CreativeFieldValuesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -24283,7 +18245,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*CreativeFieldValuesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -24299,8 +18261,6 @@ func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*Creativ } } -// method id "dfareporting.creativeFieldValues.patch": - type CreativeFieldValuesPatchCall struct { s *Service profileId int64 @@ -24311,8 +18271,12 @@ type CreativeFieldValuesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative field value. This method supports -// patch semantics. +// Patch: Updates an existing creative field value. This method supports patch +// semantics. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int64, id int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesPatchCall { c := &CreativeFieldValuesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24323,23 +18287,21 @@ func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesPatchCall) Fields(s ...googleapi.Field) *CreativeFieldValuesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesPatchCall) Context(ctx context.Context) *CreativeFieldValuesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24348,18 +18310,12 @@ func (c *CreativeFieldValuesPatchCall) Header() http.Header { } func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -24373,16 +18329,15 @@ func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.patch" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24390,17 +18345,17 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -24413,53 +18368,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFieldValues.patch", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.update": +} type CreativeFieldValuesUpdateCall struct { s *Service @@ -24472,6 +18381,9 @@ type CreativeFieldValuesUpdateCall struct { } // Update: Updates an existing creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesUpdateCall { c := &CreativeFieldValuesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24481,23 +18393,21 @@ func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldValuesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesUpdateCall) Context(ctx context.Context) *CreativeFieldValuesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24506,18 +18416,12 @@ func (c *CreativeFieldValuesUpdateCall) Header() http.Header { } func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -24531,16 +18435,15 @@ func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.update" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24548,17 +18451,17 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -24571,45 +18474,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFieldValues.update", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.delete": +} type CreativeFieldsDeleteCall struct { s *Service @@ -24621,6 +18486,9 @@ type CreativeFieldsDeleteCall struct { } // Delete: Deletes an existing creative field. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeFieldsDeleteCall { c := &CreativeFieldsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24629,23 +18497,21 @@ func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsDeleteCall) Context(ctx context.Context) *CreativeFieldsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24654,12 +18520,7 @@ func (c *CreativeFieldsDeleteCall) Header() http.Header { } func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -24674,7 +18535,7 @@ func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.delete" call. @@ -24686,42 +18547,10 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field.", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFields.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.get": +} type CreativeFieldsGetCall struct { s *Service @@ -24734,6 +18563,9 @@ type CreativeFieldsGetCall struct { } // Get: Gets one creative field by ID. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGetCall { c := &CreativeFieldsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24742,33 +18574,29 @@ func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsGetCall) Fields(s ...googleapi.Field) *CreativeFieldsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsGetCall) IfNoneMatch(entityTag string) *CreativeFieldsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsGetCall) Context(ctx context.Context) *CreativeFieldsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24777,12 +18605,7 @@ func (c *CreativeFieldsGetCall) Header() http.Header { } func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24800,16 +18623,14 @@ func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.get" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24817,17 +18638,17 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -24840,42 +18661,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField return nil, err } return ret, nil - // { - // "description": "Gets one creative field by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.insert": +} type CreativeFieldsInsertCall struct { s *Service @@ -24887,6 +18673,8 @@ type CreativeFieldsInsertCall struct { } // Insert: Inserts a new creative field. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeField) *CreativeFieldsInsertCall { c := &CreativeFieldsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24895,23 +18683,21 @@ func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsInsertCall) Fields(s ...googleapi.Field) *CreativeFieldsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsInsertCall) Context(ctx context.Context) *CreativeFieldsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24920,18 +18706,12 @@ func (c *CreativeFieldsInsertCall) Header() http.Header { } func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -24944,16 +18724,14 @@ func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.insert" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24961,17 +18739,17 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -24984,37 +18762,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFields.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.list": +} type CreativeFieldsListCall struct { s *Service @@ -25025,16 +18773,18 @@ type CreativeFieldsListCall struct { header_ http.Header } -// List: Retrieves a list of creative fields, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative fields, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall { c := &CreativeFieldsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative fields that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative fields that belong to these advertisers. func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeFieldsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -25044,8 +18794,8 @@ func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// Ids sets the optional parameter "ids": Select only creative fields -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative fields with +// these IDs. func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { var ids_ []string for _, v := range ids { @@ -25055,8 +18805,8 @@ func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldsListCall) MaxResults(maxResults int64) *CreativeFieldsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -25069,22 +18819,21 @@ func (c *CreativeFieldsListCall) PageToken(pageToken string) *CreativeFieldsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative fields by name or ID. Wildcards (*) are -// allowed. For example, "creativefield*2015" will return creative -// fields with names like "creativefield June 2015", "creativefield -// April 2015", or simply "creativefield 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativefield" will match -// creative fields with the name "my creativefield", "creativefield -// 2015", or simply "creativefield". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative fields by name or ID. Wildcards (*) are allowed. For example, +// "creativefield*2015" will return creative fields with names like +// "creativefield June 2015", "creativefield April 2015", or simply +// "creativefield 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativefield" will match creative fields with the name "my creativefield", +// "creativefield 2015", or simply "creativefield". func (c *CreativeFieldsListCall) SearchString(searchString string) *CreativeFieldsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -25095,8 +18844,7 @@ func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -25108,33 +18856,29 @@ func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsListCall) Fields(s ...googleapi.Field) *CreativeFieldsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsListCall) IfNoneMatch(entityTag string) *CreativeFieldsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsListCall) Context(ctx context.Context) *CreativeFieldsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25143,12 +18887,7 @@ func (c *CreativeFieldsListCall) Header() http.Header { } func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25165,16 +18904,15 @@ func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.list" call. -// Exactly one of *CreativeFieldsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeFieldsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeFieldsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25182,17 +18920,17 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25205,92 +18943,6 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative fields that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative fields with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative fields by name or ID. Wildcards (*) are allowed. For example, \"creativefield*2015\" will return creative fields with names like \"creativefield June 2015\", \"creativefield April 2015\", or simply \"creativefield 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativefield\" will match creative fields with the name \"my creativefield\", \"creativefield 2015\", or simply \"creativefield\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "response": { - // "$ref": "CreativeFieldsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -25298,7 +18950,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFieldsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -25314,8 +18966,6 @@ func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFiel } } -// method id "dfareporting.creativeFields.patch": - type CreativeFieldsPatchCall struct { s *Service profileId int64 @@ -25327,6 +18977,9 @@ type CreativeFieldsPatchCall struct { // Patch: Updates an existing creative field. This method supports patch // semantics. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield *CreativeField) *CreativeFieldsPatchCall { c := &CreativeFieldsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25336,23 +18989,21 @@ func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsPatchCall) Fields(s ...googleapi.Field) *CreativeFieldsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsPatchCall) Context(ctx context.Context) *CreativeFieldsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25361,18 +19012,12 @@ func (c *CreativeFieldsPatchCall) Header() http.Header { } func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -25385,16 +19030,14 @@ func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.patch" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25402,17 +19045,17 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -25425,45 +19068,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFields.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.update": +} type CreativeFieldsUpdateCall struct { s *Service @@ -25475,6 +19080,8 @@ type CreativeFieldsUpdateCall struct { } // Update: Updates an existing creative field. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeField) *CreativeFieldsUpdateCall { c := &CreativeFieldsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25483,23 +19090,21 @@ func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsUpdateCall) Context(ctx context.Context) *CreativeFieldsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25508,18 +19113,12 @@ func (c *CreativeFieldsUpdateCall) Header() http.Header { } func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -25532,16 +19131,14 @@ func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.update" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25549,17 +19146,17 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -25572,37 +19169,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFields.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.get": +} type CreativeGroupsGetCall struct { s *Service @@ -25615,6 +19182,9 @@ type CreativeGroupsGetCall struct { } // Get: Gets one creative group by ID. +// +// - id: Creative group ID. +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGetCall { c := &CreativeGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25623,33 +19193,29 @@ func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsGetCall) Fields(s ...googleapi.Field) *CreativeGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsGetCall) IfNoneMatch(entityTag string) *CreativeGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsGetCall) Context(ctx context.Context) *CreativeGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25658,12 +19224,7 @@ func (c *CreativeGroupsGetCall) Header() http.Header { } func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25681,16 +19242,14 @@ func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.get" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25698,17 +19257,17 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -25721,42 +19280,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup return nil, err } return ret, nil - // { - // "description": "Gets one creative group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups/{id}", - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.insert": +} type CreativeGroupsInsertCall struct { s *Service @@ -25768,6 +19292,8 @@ type CreativeGroupsInsertCall struct { } // Insert: Inserts a new creative group. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsInsertCall { c := &CreativeGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25776,23 +19302,21 @@ func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsInsertCall) Fields(s ...googleapi.Field) *CreativeGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsInsertCall) Context(ctx context.Context) *CreativeGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25801,18 +19325,12 @@ func (c *CreativeGroupsInsertCall) Header() http.Header { } func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -25825,16 +19343,14 @@ func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.insert" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25842,17 +19358,17 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -25865,37 +19381,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Inserts a new creative group.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.list": +} type CreativeGroupsListCall struct { s *Service @@ -25906,16 +19392,18 @@ type CreativeGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of creative groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall { c := &CreativeGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative groups that belong to these advertisers. func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -25925,15 +19413,15 @@ func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// GroupNumber sets the optional parameter "groupNumber": Select only -// creative groups that belong to this subgroup. +// GroupNumber sets the optional parameter "groupNumber": Select only creative +// groups that belong to this subgroup. func (c *CreativeGroupsListCall) GroupNumber(groupNumber int64) *CreativeGroupsListCall { c.urlParams_.Set("groupNumber", fmt.Sprint(groupNumber)) return c } -// Ids sets the optional parameter "ids": Select only creative groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative groups with +// these IDs. func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { var ids_ []string for _, v := range ids { @@ -25943,8 +19431,8 @@ func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeGroupsListCall) MaxResults(maxResults int64) *CreativeGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -25957,22 +19445,21 @@ func (c *CreativeGroupsListCall) PageToken(pageToken string) *CreativeGroupsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative groups by name or ID. Wildcards (*) are -// allowed. For example, "creativegroup*2015" will return creative -// groups with names like "creativegroup June 2015", "creativegroup -// April 2015", or simply "creativegroup 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativegroup" will match -// creative groups with the name "my creativegroup", "creativegroup -// 2015", or simply "creativegroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative groups by name or ID. Wildcards (*) are allowed. For example, +// "creativegroup*2015" will return creative groups with names like +// "creativegroup June 2015", "creativegroup April 2015", or simply +// "creativegroup 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativegroup" will match creative groups with the name "my creativegroup", +// "creativegroup 2015", or simply "creativegroup". func (c *CreativeGroupsListCall) SearchString(searchString string) *CreativeGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -25983,8 +19470,7 @@ func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -25996,33 +19482,29 @@ func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsListCall) Fields(s ...googleapi.Field) *CreativeGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsListCall) IfNoneMatch(entityTag string) *CreativeGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsListCall) Context(ctx context.Context) *CreativeGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26031,12 +19513,7 @@ func (c *CreativeGroupsListCall) Header() http.Header { } func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26053,16 +19530,15 @@ func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.list" call. -// Exactly one of *CreativeGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26070,17 +19546,17 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -26093,100 +19569,6 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupNumber": { - // "description": "Select only creative groups that belong to this subgroup.", - // "format": "int32", - // "location": "query", - // "maximum": "2", - // "minimum": "1", - // "type": "integer" - // }, - // "ids": { - // "description": "Select only creative groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative groups by name or ID. Wildcards (*) are allowed. For example, \"creativegroup*2015\" will return creative groups with names like \"creativegroup June 2015\", \"creativegroup April 2015\", or simply \"creativegroup 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativegroup\" will match creative groups with the name \"my creativegroup\", \"creativegroup 2015\", or simply \"creativegroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "response": { - // "$ref": "CreativeGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -26194,7 +19576,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // The provided context supersedes any context provided to the Context method. func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -26210,8 +19592,6 @@ func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGrou } } -// method id "dfareporting.creativeGroups.patch": - type CreativeGroupsPatchCall struct { s *Service profileId int64 @@ -26223,6 +19603,9 @@ type CreativeGroupsPatchCall struct { // Patch: Updates an existing creative group. This method supports patch // semantics. +// +// - id: Creative group ID. +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup *CreativeGroup) *CreativeGroupsPatchCall { c := &CreativeGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26232,23 +19615,21 @@ func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsPatchCall) Fields(s ...googleapi.Field) *CreativeGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsPatchCall) Context(ctx context.Context) *CreativeGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26257,18 +19638,12 @@ func (c *CreativeGroupsPatchCall) Header() http.Header { } func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -26281,16 +19656,14 @@ func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.patch" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26298,17 +19671,17 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -26321,45 +19694,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.update": +} type CreativeGroupsUpdateCall struct { s *Service @@ -26371,6 +19706,8 @@ type CreativeGroupsUpdateCall struct { } // Update: Updates an existing creative group. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsUpdateCall { c := &CreativeGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26379,23 +19716,21 @@ func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsUpdateCall) Fields(s ...googleapi.Field) *CreativeGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsUpdateCall) Context(ctx context.Context) *CreativeGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26404,18 +19739,12 @@ func (c *CreativeGroupsUpdateCall) Header() http.Header { } func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -26428,16 +19757,14 @@ func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.update" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26445,17 +19772,17 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -26468,37 +19795,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.get": +} type CreativesGetCall struct { s *Service @@ -26511,6 +19808,9 @@ type CreativesGetCall struct { } // Get: Gets one creative by ID. +// +// - id: Creative ID. +// - profileId: User profile ID associated with this request. func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { c := &CreativesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26519,33 +19819,29 @@ func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26554,12 +19850,7 @@ func (c *CreativesGetCall) Header() http.Header { } func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26577,16 +19868,14 @@ func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26594,17 +19883,17 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -26617,42 +19906,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return nil, err } return ret, nil - // { - // "description": "Gets one creative by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives/{id}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.insert": +} type CreativesInsertCall struct { s *Service @@ -26664,6 +19918,8 @@ type CreativesInsertCall struct { } // Insert: Inserts a new creative. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) Insert(profileId int64, creative *Creative) *CreativesInsertCall { c := &CreativesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26672,23 +19928,21 @@ func (r *CreativesService) Insert(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26697,18 +19951,12 @@ func (c *CreativesInsertCall) Header() http.Header { } func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -26721,16 +19969,14 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.insert" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26738,17 +19984,17 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -26761,37 +20007,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Inserts a new creative.", - // "httpMethod": "POST", - // "id": "dfareporting.creatives.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.list": +} type CreativesListCall struct { s *Service @@ -26802,16 +20018,18 @@ type CreativesListCall struct { header_ http.Header } -// List: Retrieves a list of creatives, possibly filtered. This method -// supports paging. +// List: Retrieves a list of creatives, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) List(profileId int64) *CreativesListCall { c := &CreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Active sets the optional parameter "active": Select only active -// creatives. Leave blank to select active and inactive creatives. +// Active sets the optional parameter "active": Select only active creatives. +// Leave blank to select active and inactive creatives. func (c *CreativesListCall) Active(active bool) *CreativesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c @@ -26831,16 +20049,15 @@ func (c *CreativesListCall) Archived(archived bool) *CreativesListCall { return c } -// CampaignId sets the optional parameter "campaignId": Select only -// creatives with this campaign ID. +// CampaignId sets the optional parameter "campaignId": Select only creatives +// with this campaign ID. func (c *CreativesListCall) CampaignId(campaignId int64) *CreativesListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// CompanionCreativeIds sets the optional parameter -// "companionCreativeIds": Select only in-stream video creatives with -// these companion IDs. +// CompanionCreativeIds sets the optional parameter "companionCreativeIds": +// Select only in-stream video creatives with these companion IDs. func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) *CreativesListCall { var companionCreativeIds_ []string for _, v := range companionCreativeIds { @@ -26850,8 +20067,8 @@ func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) return c } -// CreativeFieldIds sets the optional parameter "creativeFieldIds": -// Select only creatives with these creative field IDs. +// CreativeFieldIds sets the optional parameter "creativeFieldIds": Select only +// creatives with these creative field IDs. func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *CreativesListCall { var creativeFieldIds_ []string for _, v := range creativeFieldIds { @@ -26861,8 +20078,7 @@ func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *Creativ return c } -// Ids sets the optional parameter "ids": Select only creatives with -// these IDs. +// Ids sets the optional parameter "ids": Select only creatives with these IDs. func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { var ids_ []string for _, v := range ids { @@ -26872,8 +20088,8 @@ func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -26897,21 +20113,20 @@ func (c *CreativesListCall) RenderingIds(renderingIds ...int64) *CreativesListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "creative*2015" will return objects with names like -// "creative June 2015", "creative April 2015", or simply "creative -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "creative" will match objects with name "my creative", "creative -// 2015", or simply "creative". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "creative*2015" will return objects with names like "creative June 2015", +// "creative April 2015", or simply "creative 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "creative" will match objects with name "my +// creative", "creative 2015", or simply "creative". func (c *CreativesListCall) SearchString(searchString string) *CreativesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only creatives -// with these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only creatives with +// these size IDs. func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -26921,8 +20136,8 @@ func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -26933,8 +20148,7 @@ func (c *CreativesListCall) SortField(sortField string) *CreativesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -26945,15 +20159,15 @@ func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall { return c } -// StudioCreativeId sets the optional parameter "studioCreativeId": -// Select only creatives corresponding to this Studio creative ID. +// StudioCreativeId sets the optional parameter "studioCreativeId": Select only +// creatives corresponding to this Studio creative ID. func (c *CreativesListCall) StudioCreativeId(studioCreativeId int64) *CreativesListCall { c.urlParams_.Set("studioCreativeId", fmt.Sprint(studioCreativeId)) return c } -// Types sets the optional parameter "types": Select only creatives with -// these creative types. +// Types sets the optional parameter "types": Select only creatives with these +// creative types. // // Possible values: // @@ -26987,33 +20201,29 @@ func (c *CreativesListCall) Types(types ...string) *CreativesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27022,12 +20232,7 @@ func (c *CreativesListCall) Header() http.Header { } func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27044,16 +20249,15 @@ func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.list" call. -// Exactly one of *CreativesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27061,17 +20265,17 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -27084,199 +20288,6 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active creatives. Leave blank to select active and inactive creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only creatives with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived creatives. Leave blank to select archived and unarchived creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignId": { - // "description": "Select only creatives with this campaign ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "companionCreativeIds": { - // "description": "Select only in-stream video creatives with these companion IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeFieldIds": { - // "description": "Select only creatives with these creative field IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creatives with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "renderingIds": { - // "description": "Select only creatives with these rendering IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"creative*2015\" will return objects with names like \"creative June 2015\", \"creative April 2015\", or simply \"creative 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"creative\" will match objects with name \"my creative\", \"creative 2015\", or simply \"creative\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only creatives with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "studioCreativeId": { - // "description": "Select only creatives corresponding to this Studio creative ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "types": { - // "description": "Select only creatives with these creative types.", - // "enum": [ - // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO", - // "CUSTOM_DISPLAY", - // "CUSTOM_DISPLAY_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_IMAGE_GALLERY", - // "DISPLAY_REDIRECT", - // "FLASH_INPAGE", - // "HTML5_BANNER", - // "IMAGE", - // "INSTREAM_VIDEO", - // "INSTREAM_VIDEO_REDIRECT", - // "INTERNAL_REDIRECT", - // "INTERSTITIAL_INTERNAL_REDIRECT", - // "RICH_MEDIA_DISPLAY_BANNER", - // "RICH_MEDIA_DISPLAY_EXPANDING", - // "RICH_MEDIA_DISPLAY_INTERSTITIAL", - // "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL", - // "RICH_MEDIA_IM_EXPAND", - // "RICH_MEDIA_INPAGE_FLOATING", - // "RICH_MEDIA_MOBILE_IN_APP", - // "RICH_MEDIA_PEEL_DOWN", - // "TRACKING_TEXT", - // "VPAID_LINEAR_VIDEO", - // "VPAID_NON_LINEAR_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "response": { - // "$ref": "CreativesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -27284,7 +20295,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // The provided context supersedes any context provided to the Context method. func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -27300,8 +20311,6 @@ func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResp } } -// method id "dfareporting.creatives.patch": - type CreativesPatchCall struct { s *Service profileId int64 @@ -27311,8 +20320,10 @@ type CreativesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative. This method supports patch -// semantics. +// Patch: Updates an existing creative. This method supports patch semantics. +// +// - id: Creative ID. +// - profileId: User profile ID associated with this request. func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) *CreativesPatchCall { c := &CreativesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27322,23 +20333,21 @@ func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesPatchCall) Fields(s ...googleapi.Field) *CreativesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesPatchCall) Context(ctx context.Context) *CreativesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27347,18 +20356,12 @@ func (c *CreativesPatchCall) Header() http.Header { } func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -27371,16 +20374,14 @@ func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.patch" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27388,17 +20389,17 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -27411,45 +20412,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing creative. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creatives.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.update": +} type CreativesUpdateCall struct { s *Service @@ -27461,6 +20424,8 @@ type CreativesUpdateCall struct { } // Update: Updates an existing creative. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) Update(profileId int64, creative *Creative) *CreativesUpdateCall { c := &CreativesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27469,23 +20434,21 @@ func (r *CreativesService) Update(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesUpdateCall) Fields(s ...googleapi.Field) *CreativesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesUpdateCall) Context(ctx context.Context) *CreativesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27494,18 +20457,12 @@ func (c *CreativesUpdateCall) Header() http.Header { } func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -27518,16 +20475,14 @@ func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.update" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27535,17 +20490,17 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -27558,37 +20513,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Updates an existing creative.", - // "httpMethod": "PUT", - // "id": "dfareporting.creatives.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dimensionValues.query": +} type DimensionValuesQueryCall struct { s *Service @@ -27599,8 +20524,9 @@ type DimensionValuesQueryCall struct { header_ http.Header } -// Query: Retrieves list of report dimension values for a list of -// filters. +// Query: Retrieves list of report dimension values for a list of filters. +// +// - profileId: The DFA user profile ID. func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall { c := &DimensionValuesQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27608,8 +20534,8 @@ func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *D return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DimensionValuesQueryCall) MaxResults(maxResults int64) *DimensionValuesQueryCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -27623,23 +20549,21 @@ func (c *DimensionValuesQueryCall) PageToken(pageToken string) *DimensionValuesQ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DimensionValuesQueryCall) Fields(s ...googleapi.Field) *DimensionValuesQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DimensionValuesQueryCall) Context(ctx context.Context) *DimensionValuesQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DimensionValuesQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27648,18 +20572,12 @@ func (c *DimensionValuesQueryCall) Header() http.Header { } func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dimensionvaluerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dimensionvalues/query") @@ -27672,16 +20590,15 @@ func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dimensionValues.query" call. -// Exactly one of *DimensionValueList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DimensionValueList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DimensionValueList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionValueList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27689,17 +20606,17 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DimensionValueList{ ServerResponse: googleapi.ServerResponse{ @@ -27712,48 +20629,6 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV return nil, err } return ret, nil - // { - // "description": "Retrieves list of report dimension values for a list of filters.", - // "httpMethod": "POST", - // "id": "dfareporting.dimensionValues.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "100", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dimensionvalues/query", - // "request": { - // "$ref": "DimensionValueRequest" - // }, - // "response": { - // "$ref": "DimensionValueList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -27761,7 +20636,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // The provided context supersedes any context provided to the Context method. func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionValueList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -27777,8 +20652,6 @@ func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionV } } -// method id "dfareporting.directorySiteContacts.get": - type DirectorySiteContactsGetCall struct { s *Service profileId int64 @@ -27790,6 +20663,9 @@ type DirectorySiteContactsGetCall struct { } // Get: Gets one directory site contact by ID. +// +// - id: Directory site contact ID. +// - profileId: User profile ID associated with this request. func (r *DirectorySiteContactsService) Get(profileId int64, id int64) *DirectorySiteContactsGetCall { c := &DirectorySiteContactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27798,33 +20674,29 @@ func (r *DirectorySiteContactsService) Get(profileId int64, id int64) *Directory } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySiteContactsGetCall) Fields(s ...googleapi.Field) *DirectorySiteContactsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySiteContactsGetCall) IfNoneMatch(entityTag string) *DirectorySiteContactsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySiteContactsGetCall) Context(ctx context.Context) *DirectorySiteContactsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySiteContactsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27833,12 +20705,7 @@ func (c *DirectorySiteContactsGetCall) Header() http.Header { } func (c *DirectorySiteContactsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27856,16 +20723,15 @@ func (c *DirectorySiteContactsGetCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySiteContacts.get" call. -// Exactly one of *DirectorySiteContact or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DirectorySiteContact.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySiteContact.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DirectorySiteContactsGetCall) Do(opts ...googleapi.CallOption) (*DirectorySiteContact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27873,17 +20739,17 @@ func (c *DirectorySiteContactsGetCall) Do(opts ...googleapi.CallOption) (*Direct if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySiteContact{ ServerResponse: googleapi.ServerResponse{ @@ -27896,42 +20762,7 @@ func (c *DirectorySiteContactsGetCall) Do(opts ...googleapi.CallOption) (*Direct return nil, err } return ret, nil - // { - // "description": "Gets one directory site contact by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySiteContacts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Directory site contact ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySiteContacts/{id}", - // "response": { - // "$ref": "DirectorySiteContact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySiteContacts.list": +} type DirectorySiteContactsListCall struct { s *Service @@ -27942,17 +20773,19 @@ type DirectorySiteContactsListCall struct { header_ http.Header } -// List: Retrieves a list of directory site contacts, possibly filtered. -// This method supports paging. +// List: Retrieves a list of directory site contacts, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySiteContactsService) List(profileId int64) *DirectorySiteContactsListCall { c := &DirectorySiteContactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only directory site contacts with these directory site IDs. -// This is a required field. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// directory site contacts with these directory site IDs. This is a required +// field. func (c *DirectorySiteContactsListCall) DirectorySiteIds(directorySiteIds ...int64) *DirectorySiteContactsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -27962,8 +20795,8 @@ func (c *DirectorySiteContactsListCall) DirectorySiteIds(directorySiteIds ...int return c } -// Ids sets the optional parameter "ids": Select only directory site -// contacts with these IDs. +// Ids sets the optional parameter "ids": Select only directory site contacts +// with these IDs. func (c *DirectorySiteContactsListCall) Ids(ids ...int64) *DirectorySiteContactsListCall { var ids_ []string for _, v := range ids { @@ -27973,8 +20806,8 @@ func (c *DirectorySiteContactsListCall) Ids(ids ...int64) *DirectorySiteContacts return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DirectorySiteContactsListCall) MaxResults(maxResults int64) *DirectorySiteContactsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -27987,23 +20820,22 @@ func (c *DirectorySiteContactsListCall) PageToken(pageToken string) *DirectorySi return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or email. Wildcards (*) are -// allowed. For example, "directory site contact*2015" will return -// objects with names like "directory site contact June 2015", -// "directory site contact April 2015", or simply "directory site -// contact 2015". Most of the searches also add wildcards implicitly at -// the start and the end of the search string. For example, a search -// string of "directory site contact" will match objects with name "my -// directory site contact", "directory site contact 2015", or simply -// "directory site contact". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or email. Wildcards (*) are allowed. For example, +// "directory site contact*2015" will return objects with names like "directory +// site contact June 2015", "directory site contact April 2015", or simply +// "directory site contact 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "directory site contact" will match objects with name "my +// directory site contact", "directory site contact 2015", or simply "directory +// site contact". func (c *DirectorySiteContactsListCall) SearchString(searchString string) *DirectorySiteContactsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -28014,8 +20846,7 @@ func (c *DirectorySiteContactsListCall) SortField(sortField string) *DirectorySi return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -28027,33 +20858,29 @@ func (c *DirectorySiteContactsListCall) SortOrder(sortOrder string) *DirectorySi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySiteContactsListCall) Fields(s ...googleapi.Field) *DirectorySiteContactsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySiteContactsListCall) IfNoneMatch(entityTag string) *DirectorySiteContactsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySiteContactsListCall) Context(ctx context.Context) *DirectorySiteContactsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySiteContactsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28062,12 +20889,7 @@ func (c *DirectorySiteContactsListCall) Header() http.Header { } func (c *DirectorySiteContactsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28084,17 +20906,15 @@ func (c *DirectorySiteContactsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySiteContacts.list" call. -// Exactly one of *DirectorySiteContactsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DirectorySiteContactsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySiteContactsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*DirectorySiteContactsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28102,17 +20922,17 @@ func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*Direc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySiteContactsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -28125,92 +20945,6 @@ func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*Direc return nil, err } return ret, nil - // { - // "description": "Retrieves a list of directory site contacts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySiteContacts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "directorySiteIds": { - // "description": "Select only directory site contacts with these directory site IDs. This is a required field.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only directory site contacts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"directory site contact*2015\" will return objects with names like \"directory site contact June 2015\", \"directory site contact April 2015\", or simply \"directory site contact 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site contact\" will match objects with name \"my directory site contact\", \"directory site contact 2015\", or simply \"directory site contact\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySiteContacts", - // "response": { - // "$ref": "DirectorySiteContactsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -28218,7 +20952,7 @@ func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*Direc // The provided context supersedes any context provided to the Context method. func (c *DirectorySiteContactsListCall) Pages(ctx context.Context, f func(*DirectorySiteContactsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -28234,8 +20968,6 @@ func (c *DirectorySiteContactsListCall) Pages(ctx context.Context, f func(*Direc } } -// method id "dfareporting.directorySites.get": - type DirectorySitesGetCall struct { s *Service profileId int64 @@ -28247,6 +20979,9 @@ type DirectorySitesGetCall struct { } // Get: Gets one directory site by ID. +// +// - id: Directory site ID. +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGetCall { c := &DirectorySitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28255,33 +20990,29 @@ func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesGetCall) Fields(s ...googleapi.Field) *DirectorySitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesGetCall) IfNoneMatch(entityTag string) *DirectorySitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesGetCall) Context(ctx context.Context) *DirectorySitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28290,12 +21021,7 @@ func (c *DirectorySitesGetCall) Header() http.Header { } func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28313,16 +21039,14 @@ func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.get" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28330,17 +21054,17 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -28353,42 +21077,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite return nil, err } return ret, nil - // { - // "description": "Gets one directory site by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Directory site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites/{id}", - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.insert": +} type DirectorySitesInsertCall struct { s *Service @@ -28400,6 +21089,8 @@ type DirectorySitesInsertCall struct { } // Insert: Inserts a new directory site. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) Insert(profileId int64, directorysite *DirectorySite) *DirectorySitesInsertCall { c := &DirectorySitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28408,23 +21099,21 @@ func (r *DirectorySitesService) Insert(profileId int64, directorysite *Directory } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesInsertCall) Fields(s ...googleapi.Field) *DirectorySitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesInsertCall) Context(ctx context.Context) *DirectorySitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28433,18 +21122,12 @@ func (c *DirectorySitesInsertCall) Header() http.Header { } func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.directorysite) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites") @@ -28457,16 +21140,14 @@ func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.insert" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28474,17 +21155,17 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -28497,37 +21178,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS return nil, err } return ret, nil - // { - // "description": "Inserts a new directory site.", - // "httpMethod": "POST", - // "id": "dfareporting.directorySites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "request": { - // "$ref": "DirectorySite" - // }, - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.list": +} type DirectorySitesListCall struct { s *Service @@ -28538,8 +21189,10 @@ type DirectorySitesListCall struct { header_ http.Header } -// List: Retrieves a list of directory sites, possibly filtered. This -// method supports paging. +// List: Retrieves a list of directory sites, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { c := &DirectorySitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28547,53 +21200,52 @@ func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only directory sites that -// accept publisher paid placements. This field can be left blank. +// "acceptsPublisherPaidPlacements": Select only directory sites that accept +// publisher paid placements. This field can be left blank. func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// Active sets the optional parameter "active": Select only active -// directory sites. Leave blank to retrieve both active and inactive -// directory sites. +// Active sets the optional parameter "active": Select only active directory +// sites. Leave blank to retrieve both active and inactive directory sites. func (c *DirectorySitesListCall) Active(active bool) *DirectorySitesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// CountryId sets the optional parameter "countryId": Select only -// directory sites with this country ID. +// CountryId sets the optional parameter "countryId": Select only directory +// sites with this country ID. func (c *DirectorySitesListCall) CountryId(countryId int64) *DirectorySitesListCall { c.urlParams_.Set("countryId", fmt.Sprint(countryId)) return c } -// DfpNetworkCode sets the optional parameter "dfp_network_code": Select -// only directory sites with this DFP network code. +// DfpNetworkCode sets the optional parameter "dfp_network_code": Select only +// directory sites with this DFP network code. func (c *DirectorySitesListCall) DfpNetworkCode(dfpNetworkCode string) *DirectorySitesListCall { c.urlParams_.Set("dfp_network_code", dfpNetworkCode) return c } -// Ids sets the optional parameter "ids": Select only directory sites -// with these IDs. +// Ids sets the optional parameter "ids": Select only directory sites with +// these IDs. func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { var ids_ []string for _, v := range ids { @@ -28603,8 +21255,8 @@ func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DirectorySitesListCall) MaxResults(maxResults int64) *DirectorySitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -28617,29 +21269,28 @@ func (c *DirectorySitesListCall) PageToken(pageToken string) *DirectorySitesList return c } -// ParentId sets the optional parameter "parentId": Select only -// directory sites with this parent ID. +// ParentId sets the optional parameter "parentId": Select only directory sites +// with this parent ID. func (c *DirectorySitesListCall) ParentId(parentId int64) *DirectorySitesListCall { c.urlParams_.Set("parentId", fmt.Sprint(parentId)) return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or URL. Wildcards (*) are allowed. -// For example, "directory site*2015" will return objects with names -// like "directory site June 2015", "directory site April 2015", or -// simply "directory site 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "directory site" will match objects with -// name "my directory site", "directory site 2015" or simply, "directory -// site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or URL. Wildcards (*) are allowed. For example, +// "directory site*2015" will return objects with names like "directory site +// June 2015", "directory site April 2015", or simply "directory site 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "directory site" will +// match objects with name "my directory site", "directory site 2015" or +// simply, "directory site". func (c *DirectorySitesListCall) SearchString(searchString string) *DirectorySitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -28650,8 +21301,7 @@ func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -28663,33 +21313,29 @@ func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesListCall) Fields(s ...googleapi.Field) *DirectorySitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesListCall) IfNoneMatch(entityTag string) *DirectorySitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesListCall) Context(ctx context.Context) *DirectorySitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28698,12 +21344,7 @@ func (c *DirectorySitesListCall) Header() http.Header { } func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28720,16 +21361,15 @@ func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.list" call. -// Exactly one of *DirectorySitesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *DirectorySitesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *DirectorySitesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28737,17 +21377,17 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -28760,122 +21400,6 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit return nil, err } return ret, nil - // { - // "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only directory sites that accept publisher paid placements. This field can be left blank.", - // "location": "query", - // "type": "boolean" - // }, - // "active": { - // "description": "Select only active directory sites. Leave blank to retrieve both active and inactive directory sites.", - // "location": "query", - // "type": "boolean" - // }, - // "countryId": { - // "description": "Select only directory sites with this country ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "dfp_network_code": { - // "description": "Select only directory sites with this DFP network code.", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only directory sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "parentId": { - // "description": "Select only directory sites with this parent ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. For example, \"directory site*2015\" will return objects with names like \"directory site June 2015\", \"directory site April 2015\", or simply \"directory site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site\" will match objects with name \"my directory site\", \"directory site 2015\" or simply, \"directory site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "response": { - // "$ref": "DirectorySitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -28883,7 +21407,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // The provided context supersedes any context provided to the Context method. func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -28899,8 +21423,6 @@ func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySit } } -// method id "dfareporting.dynamicTargetingKeys.delete": - type DynamicTargetingKeysDeleteCall struct { s *Service profileId int64 @@ -28911,6 +21433,15 @@ type DynamicTargetingKeysDeleteCall struct { } // Delete: Deletes an existing dynamic targeting key. +// +// - name: Name of this dynamic targeting key. This is a required field. Must +// be less than 256 characters long and cannot contain commas. All characters +// are converted to lowercase. +// - objectId: ID of the object of this dynamic targeting key. This is a +// required field. +// - objectType: Type of the object of this dynamic targeting key. This is a +// required field. +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, name string, objectType string) *DynamicTargetingKeysDeleteCall { c := &DynamicTargetingKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28921,23 +21452,21 @@ func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, na } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysDeleteCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysDeleteCall) Context(ctx context.Context) *DynamicTargetingKeysDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28946,12 +21475,7 @@ func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { } func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -28966,7 +21490,7 @@ func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "objectId": strconv.FormatInt(c.objectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.delete" call. @@ -28978,68 +21502,10 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing dynamic targeting key.", - // "httpMethod": "DELETE", - // "id": "dfareporting.dynamicTargetingKeys.delete", - // "parameterOrder": [ - // "profileId", - // "objectId", - // "name", - // "objectType" - // ], - // "parameters": { - // "name": { - // "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "objectId": { - // "description": "ID of the object of this dynamic targeting key. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Type of the object of this dynamic targeting key. This is a required field.", - // "enum": [ - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.insert": +} type DynamicTargetingKeysInsertCall struct { s *Service @@ -29050,11 +21516,12 @@ type DynamicTargetingKeysInsertCall struct { header_ http.Header } -// Insert: Inserts a new dynamic targeting key. Keys must be created at -// the advertiser level before being assigned to the advertiser's ads, -// creatives, or placements. There is a maximum of 1000 keys per -// advertiser, out of which a maximum of 20 keys can be assigned per ad, -// creative, or placement. +// Insert: Inserts a new dynamic targeting key. Keys must be created at the +// advertiser level before being assigned to the advertiser's ads, creatives, +// or placements. There is a maximum of 1000 keys per advertiser, out of which +// a maximum of 20 keys can be assigned per ad, creative, or placement. +// +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingkey *DynamicTargetingKey) *DynamicTargetingKeysInsertCall { c := &DynamicTargetingKeysInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29063,23 +21530,21 @@ func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingke } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysInsertCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysInsertCall) Context(ctx context.Context) *DynamicTargetingKeysInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29088,18 +21553,12 @@ func (c *DynamicTargetingKeysInsertCall) Header() http.Header { } func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dynamictargetingkey) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys") @@ -29112,16 +21571,15 @@ func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.insert" call. -// Exactly one of *DynamicTargetingKey or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DynamicTargetingKey.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKey.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29129,17 +21587,17 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKey{ ServerResponse: googleapi.ServerResponse{ @@ -29152,37 +21610,7 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna return nil, err } return ret, nil - // { - // "description": "Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.", - // "httpMethod": "POST", - // "id": "dfareporting.dynamicTargetingKeys.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "request": { - // "$ref": "DynamicTargetingKey" - // }, - // "response": { - // "$ref": "DynamicTargetingKey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.list": +} type DynamicTargetingKeysListCall struct { s *Service @@ -29194,21 +21622,23 @@ type DynamicTargetingKeysListCall struct { } // List: Retrieves a list of dynamic targeting keys. +// +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) List(profileId int64) *DynamicTargetingKeysListCall { c := &DynamicTargetingKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// dynamic targeting keys whose object has this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only dynamic +// targeting keys whose object has this advertiser ID. func (c *DynamicTargetingKeysListCall) AdvertiserId(advertiserId int64) *DynamicTargetingKeysListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Names sets the optional parameter "names": Select only dynamic -// targeting keys exactly matching these names. +// Names sets the optional parameter "names": Select only dynamic targeting +// keys exactly matching these names. func (c *DynamicTargetingKeysListCall) Names(names ...string) *DynamicTargetingKeysListCall { c.urlParams_.SetMulti("names", append([]string{}, names...)) return c @@ -29221,8 +21651,8 @@ func (c *DynamicTargetingKeysListCall) ObjectId(objectId int64) *DynamicTargetin return c } -// ObjectType sets the optional parameter "objectType": Select only -// dynamic targeting keys with this object type. +// ObjectType sets the optional parameter "objectType": Select only dynamic +// targeting keys with this object type. // // Possible values: // @@ -29236,33 +21666,29 @@ func (c *DynamicTargetingKeysListCall) ObjectType(objectType string) *DynamicTar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysListCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DynamicTargetingKeysListCall) IfNoneMatch(entityTag string) *DynamicTargetingKeysListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysListCall) Context(ctx context.Context) *DynamicTargetingKeysListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29271,12 +21697,7 @@ func (c *DynamicTargetingKeysListCall) Header() http.Header { } func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29293,16 +21714,15 @@ func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.list" call. -// Exactly one of *DynamicTargetingKeysListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DynamicTargetingKeysListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKeysListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKeysListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29310,17 +21730,17 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKeysListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -29333,69 +21753,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami return nil, err } return ret, nil - // { - // "description": "Retrieves a list of dynamic targeting keys.", - // "httpMethod": "GET", - // "id": "dfareporting.dynamicTargetingKeys.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only dynamic targeting keys whose object has this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "names": { - // "description": "Select only dynamic targeting keys exactly matching these names.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectId": { - // "description": "Select only dynamic targeting keys with this object ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "objectType": { - // "description": "Select only dynamic targeting keys with this object type.", - // "enum": [ - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "response": { - // "$ref": "DynamicTargetingKeysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.delete": +} type EventTagsDeleteCall struct { s *Service @@ -29407,6 +21765,9 @@ type EventTagsDeleteCall struct { } // Delete: Deletes an existing event tag. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCall { c := &EventTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29415,23 +21776,21 @@ func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsDeleteCall) Fields(s ...googleapi.Field) *EventTagsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsDeleteCall) Context(ctx context.Context) *EventTagsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29440,12 +21799,7 @@ func (c *EventTagsDeleteCall) Header() http.Header { } func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -29460,7 +21814,7 @@ func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.delete" call. @@ -29472,42 +21826,10 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing event tag.", - // "httpMethod": "DELETE", - // "id": "dfareporting.eventTags.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.get": +} type EventTagsGetCall struct { s *Service @@ -29520,6 +21842,9 @@ type EventTagsGetCall struct { } // Get: Gets one event tag by ID. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { c := &EventTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29528,33 +21853,29 @@ func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsGetCall) Fields(s ...googleapi.Field) *EventTagsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsGetCall) IfNoneMatch(entityTag string) *EventTagsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsGetCall) Context(ctx context.Context) *EventTagsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29563,12 +21884,7 @@ func (c *EventTagsGetCall) Header() http.Header { } func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29586,16 +21902,14 @@ func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.get" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29603,17 +21917,17 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -29626,42 +21940,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { return nil, err } return ret, nil - // { - // "description": "Gets one event tag by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.insert": +} type EventTagsInsertCall struct { s *Service @@ -29673,6 +21952,8 @@ type EventTagsInsertCall struct { } // Insert: Inserts a new event tag. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTagsInsertCall { c := &EventTagsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29681,23 +21962,21 @@ func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsInsertCall) Fields(s ...googleapi.Field) *EventTagsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsInsertCall) Context(ctx context.Context) *EventTagsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29706,18 +21985,12 @@ func (c *EventTagsInsertCall) Header() http.Header { } func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -29730,16 +22003,14 @@ func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.insert" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29747,17 +22018,17 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -29770,37 +22041,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Inserts a new event tag.", - // "httpMethod": "POST", - // "id": "dfareporting.eventTags.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.list": +} type EventTagsListCall struct { s *Service @@ -29812,64 +22053,63 @@ type EventTagsListCall struct { } // List: Retrieves a list of event tags, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) List(profileId int64) *EventTagsListCall { c := &EventTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdId sets the optional parameter "adId": Select only event tags that -// belong to this ad. +// AdId sets the optional parameter "adId": Select only event tags that belong +// to this ad. func (c *EventTagsListCall) AdId(adId int64) *EventTagsListCall { c.urlParams_.Set("adId", fmt.Sprint(adId)) return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// event tags that belong to this advertiser. +// AdvertiserId sets the optional parameter "advertiserId": Select only event +// tags that belong to this advertiser. func (c *EventTagsListCall) AdvertiserId(advertiserId int64) *EventTagsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// CampaignId sets the optional parameter "campaignId": Select only -// event tags that belong to this campaign. +// CampaignId sets the optional parameter "campaignId": Select only event tags +// that belong to this campaign. func (c *EventTagsListCall) CampaignId(campaignId int64) *EventTagsListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// DefinitionsOnly sets the optional parameter "definitionsOnly": -// Examine only the specified campaign or advertiser's event tags for -// matching selector criteria. When set to false, the parent advertiser -// and parent campaign of the specified ad or campaign is examined as -// well. In addition, when set to false, the status field is examined as -// well, along with the enabledByDefault field. This parameter can not -// be set to true when adId is specified as ads do not define their own -// even tags. +// DefinitionsOnly sets the optional parameter "definitionsOnly": Examine only +// the specified campaign or advertiser's event tags for matching selector +// criteria. When set to false, the parent advertiser and parent campaign of +// the specified ad or campaign is examined as well. In addition, when set to +// false, the status field is examined as well, along with the enabledByDefault +// field. This parameter can not be set to true when adId is specified as ads +// do not define their own even tags. func (c *EventTagsListCall) DefinitionsOnly(definitionsOnly bool) *EventTagsListCall { c.urlParams_.Set("definitionsOnly", fmt.Sprint(definitionsOnly)) return c } -// Enabled sets the optional parameter "enabled": Select only enabled -// event tags. What is considered enabled or disabled depends on the -// definitionsOnly parameter. When definitionsOnly is set to true, only -// the specified advertiser or campaign's event tags' enabledByDefault -// field is examined. When definitionsOnly is set to false, the -// specified ad or specified campaign's parent advertiser's or parent -// campaign's event tags' enabledByDefault and status fields are -// examined as well. +// Enabled sets the optional parameter "enabled": Select only enabled event +// tags. What is considered enabled or disabled depends on the definitionsOnly +// parameter. When definitionsOnly is set to true, only the specified +// advertiser or campaign's event tags' enabledByDefault field is examined. +// When definitionsOnly is set to false, the specified ad or specified +// campaign's parent advertiser's or parent campaign's event tags' +// enabledByDefault and status fields are examined as well. func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall { c.urlParams_.Set("enabled", fmt.Sprint(enabled)) return c } -// EventTagTypes sets the optional parameter "eventTagTypes": Select -// only event tags with the specified event tag types. Event tag types -// can be used to specify whether to use a third-party pixel, a -// third-party JavaScript URL, or a third-party click-through URL for -// either impression or click tracking. +// EventTagTypes sets the optional parameter "eventTagTypes": Select only event +// tags with the specified event tag types. Event tag types can be used to +// specify whether to use a third-party pixel, a third-party JavaScript URL, or +// a third-party click-through URL for either impression or click tracking. // // Possible values: // @@ -29881,8 +22121,8 @@ func (c *EventTagsListCall) EventTagTypes(eventTagTypes ...string) *EventTagsLis return c } -// Ids sets the optional parameter "ids": Select only event tags with -// these IDs. +// Ids sets the optional parameter "ids": Select only event tags with these +// IDs. func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { var ids_ []string for _, v := range ids { @@ -29892,21 +22132,20 @@ func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "eventtag*2015" will return objects with names like -// "eventtag June 2015", "eventtag April 2015", or simply "eventtag -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "eventtag" will match objects with name "my eventtag", "eventtag -// 2015", or simply "eventtag". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "eventtag*2015" will return objects with names like "eventtag June 2015", +// "eventtag April 2015", or simply "eventtag 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "eventtag" will match objects with name "my +// eventtag", "eventtag 2015", or simply "eventtag". func (c *EventTagsListCall) SearchString(searchString string) *EventTagsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -29917,8 +22156,7 @@ func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -29930,33 +22168,29 @@ func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsListCall) Fields(s ...googleapi.Field) *EventTagsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsListCall) IfNoneMatch(entityTag string) *EventTagsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsListCall) Context(ctx context.Context) *EventTagsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29965,12 +22199,7 @@ func (c *EventTagsListCall) Header() http.Header { } func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29987,16 +22216,15 @@ func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.list" call. -// Exactly one of *EventTagsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *EventTagsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTagsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30004,17 +22232,17 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTagsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -30027,118 +22255,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of event tags, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "adId": { - // "description": "Select only event tags that belong to this ad.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "advertiserId": { - // "description": "Select only event tags that belong to this advertiser.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "campaignId": { - // "description": "Select only event tags that belong to this campaign.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "definitionsOnly": { - // "description": "Examine only the specified campaign or advertiser's event tags for matching selector criteria. When set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined as well. In addition, when set to false, the status field is examined as well, along with the enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not define their own even tags.", - // "location": "query", - // "type": "boolean" - // }, - // "enabled": { - // "description": "Select only enabled event tags. What is considered enabled or disabled depends on the definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' enabledByDefault and status fields are examined as well.", - // "location": "query", - // "type": "boolean" - // }, - // "eventTagTypes": { - // "description": "Select only event tags with the specified event tag types. Event tag types can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking.", - // "enum": [ - // "CLICK_THROUGH_EVENT_TAG", - // "IMPRESSION_IMAGE_EVENT_TAG", - // "IMPRESSION_JAVASCRIPT_EVENT_TAG" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only event tags with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"eventtag*2015\" will return objects with names like \"eventtag June 2015\", \"eventtag April 2015\", or simply \"eventtag 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"eventtag\" will match objects with name \"my eventtag\", \"eventtag 2015\", or simply \"eventtag\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "response": { - // "$ref": "EventTagsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.patch": +} type EventTagsPatchCall struct { s *Service @@ -30149,8 +22266,10 @@ type EventTagsPatchCall struct { header_ http.Header } -// Patch: Updates an existing event tag. This method supports patch -// semantics. +// Patch: Updates an existing event tag. This method supports patch semantics. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) *EventTagsPatchCall { c := &EventTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30160,23 +22279,21 @@ func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsPatchCall) Fields(s ...googleapi.Field) *EventTagsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsPatchCall) Context(ctx context.Context) *EventTagsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30185,18 +22302,12 @@ func (c *EventTagsPatchCall) Header() http.Header { } func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -30209,16 +22320,14 @@ func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.patch" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30226,17 +22335,17 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -30249,45 +22358,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.eventTags.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.update": +} type EventTagsUpdateCall struct { s *Service @@ -30299,6 +22370,8 @@ type EventTagsUpdateCall struct { } // Update: Updates an existing event tag. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTagsUpdateCall { c := &EventTagsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30307,23 +22380,21 @@ func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsUpdateCall) Fields(s ...googleapi.Field) *EventTagsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsUpdateCall) Context(ctx context.Context) *EventTagsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30332,18 +22403,12 @@ func (c *EventTagsUpdateCall) Header() http.Header { } func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -30356,16 +22421,14 @@ func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.update" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30373,17 +22436,17 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -30396,37 +22459,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag.", - // "httpMethod": "PUT", - // "id": "dfareporting.eventTags.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.files.get": +} type FilesGetCall struct { s *Service @@ -30438,8 +22471,11 @@ type FilesGetCall struct { header_ http.Header } -// Get: Retrieves a report file by its report ID and file ID. This -// method supports media download. +// Get: Retrieves a report file by its report ID and file ID. This method +// supports media download. +// +// - fileId: The ID of the report file. +// - reportId: The ID of the report. func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { c := &FilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.reportId = reportId @@ -30448,33 +22484,29 @@ func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesGetCall) Fields(s ...googleapi.Field) *FilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesGetCall) IfNoneMatch(entityTag string) *FilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30483,12 +22515,7 @@ func (c *FilesGetCall) Header() http.Header { } func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30506,7 +22533,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -30518,20 +22545,18 @@ func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, e if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30539,17 +22564,17 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -30562,43 +22587,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "httpMethod": "GET", - // "id": "dfareporting.files.get", - // "parameterOrder": [ - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.files.list": +} type FilesListCall struct { s *Service @@ -30610,14 +22599,16 @@ type FilesListCall struct { } // List: Lists files for a user profile. +// +// - profileId: The DFA profile ID. func (r *FilesService) List(profileId int64) *FilesListCall { c := &FilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -30630,8 +22621,8 @@ func (c *FilesListCall) PageToken(pageToken string) *FilesListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -30643,8 +22634,8 @@ func (c *FilesListCall) Scope(scope string) *FilesListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -30655,8 +22646,7 @@ func (c *FilesListCall) SortField(sortField string) *FilesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -30668,33 +22658,29 @@ func (c *FilesListCall) SortOrder(sortOrder string) *FilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesListCall) Fields(s ...googleapi.Field) *FilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesListCall) IfNoneMatch(entityTag string) *FilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FilesListCall) Context(ctx context.Context) *FilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30703,12 +22689,7 @@ func (c *FilesListCall) Header() http.Header { } func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30725,16 +22706,14 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30742,17 +22721,17 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -30765,89 +22744,6 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { return nil, err } return ret, nil - // { - // "description": "Lists files for a user profile.", - // "httpMethod": "GET", - // "id": "dfareporting.files.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE", - // "SHARED_WITH_ME" - // ], - // "enumDescriptions": [ - // "All files in account.", - // "My files.", - // "Files shared with me." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -30855,7 +22751,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // The provided context supersedes any context provided to the Context method. func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -30871,8 +22767,6 @@ func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) erro } } -// method id "dfareporting.floodlightActivities.delete": - type FloodlightActivitiesDeleteCall struct { s *Service profileId int64 @@ -30883,6 +22777,9 @@ type FloodlightActivitiesDeleteCall struct { } // Delete: Deletes an existing floodlight activity. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *FloodlightActivitiesDeleteCall { c := &FloodlightActivitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30891,23 +22788,21 @@ func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *Floodli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesDeleteCall) Fields(s ...googleapi.Field) *FloodlightActivitiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesDeleteCall) Context(ctx context.Context) *FloodlightActivitiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30916,12 +22811,7 @@ func (c *FloodlightActivitiesDeleteCall) Header() http.Header { } func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -30936,7 +22826,7 @@ func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.delete" call. @@ -30948,42 +22838,10 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing floodlight activity.", - // "httpMethod": "DELETE", - // "id": "dfareporting.floodlightActivities.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.generatetag": +} type FloodlightActivitiesGeneratetagCall struct { s *Service @@ -30994,38 +22852,37 @@ type FloodlightActivitiesGeneratetagCall struct { } // Generatetag: Generates a tag for a floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Generatetag(profileId int64) *FloodlightActivitiesGeneratetagCall { c := &FloodlightActivitiesGeneratetagCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Floodlight activity ID for which we want to -// generate a tag. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Floodlight activity ID for which we want to generate a tag. func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityId int64) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGeneratetagCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGeneratetagCall) Context(ctx context.Context) *FloodlightActivitiesGeneratetagCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31034,12 +22891,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { } func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -31053,17 +22905,15 @@ func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.generatetag" call. -// Exactly one of *FloodlightActivitiesGenerateTagResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesGenerateTagResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31071,17 +22921,17 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesGenerateTagResponse{ ServerResponse: googleapi.ServerResponse{ @@ -31094,40 +22944,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Generates a tag for a floodlight activity.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.generatetag", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "floodlightActivityId": { - // "description": "Floodlight activity ID for which we want to generate a tag.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/generatetag", - // "response": { - // "$ref": "FloodlightActivitiesGenerateTagResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.get": +} type FloodlightActivitiesGetCall struct { s *Service @@ -31140,6 +22957,9 @@ type FloodlightActivitiesGetCall struct { } // Get: Gets one floodlight activity by ID. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *FloodlightActivitiesGetCall { c := &FloodlightActivitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31148,33 +22968,29 @@ func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *Floodlight } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGetCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesGetCall) IfNoneMatch(entityTag string) *FloodlightActivitiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGetCall) Context(ctx context.Context) *FloodlightActivitiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31183,12 +22999,7 @@ func (c *FloodlightActivitiesGetCall) Header() http.Header { } func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31206,16 +23017,15 @@ func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.get" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31223,17 +23033,17 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -31246,42 +23056,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.insert": +} type FloodlightActivitiesInsertCall struct { s *Service @@ -31293,6 +23068,8 @@ type FloodlightActivitiesInsertCall struct { } // Insert: Inserts a new floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesInsertCall { c := &FloodlightActivitiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31301,23 +23078,21 @@ func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesInsertCall) Fields(s ...googleapi.Field) *FloodlightActivitiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesInsertCall) Context(ctx context.Context) *FloodlightActivitiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31326,18 +23101,12 @@ func (c *FloodlightActivitiesInsertCall) Header() http.Header { } func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -31350,16 +23119,15 @@ func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.insert" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31367,17 +23135,17 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -31390,37 +23158,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.list": +} type FloodlightActivitiesListCall struct { s *Service @@ -31431,8 +23169,10 @@ type FloodlightActivitiesListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activities, possibly filtered. -// This method supports paging. +// List: Retrieves a list of floodlight activities, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitiesListCall { c := &FloodlightActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31440,17 +23180,16 @@ func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitie } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activities for the specified advertiser ID. Must specify -// either ids, advertiserId, or floodlightConfigurationId for a -// non-empty result. +// floodlight activities for the specified advertiser ID. Must specify either +// ids, advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) AdvertiserId(advertiserId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightActivityGroupIds sets the optional parameter -// "floodlightActivityGroupIds": Select only floodlight activities with -// the specified floodlight activity group IDs. +// "floodlightActivityGroupIds": Select only floodlight activities with the +// specified floodlight activity group IDs. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds ...int64) *FloodlightActivitiesListCall { var floodlightActivityGroupIds_ []string for _, v := range floodlightActivityGroupIds { @@ -31461,24 +23200,24 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActi } // FloodlightActivityGroupName sets the optional parameter -// "floodlightActivityGroupName": Select only floodlight activities with -// the specified floodlight activity group name. +// "floodlightActivityGroupName": Select only floodlight activities with the +// specified floodlight activity group name. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupName string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupName", floodlightActivityGroupName) return c } // FloodlightActivityGroupTagString sets the optional parameter -// "floodlightActivityGroupTagString": Select only floodlight activities -// with the specified floodlight activity group tag string. +// "floodlightActivityGroupTagString": Select only floodlight activities with +// the specified floodlight activity group tag string. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupTagString", floodlightActivityGroupTagString) return c } // FloodlightActivityGroupType sets the optional parameter -// "floodlightActivityGroupType": Select only floodlight activities with -// the specified floodlight activity group type. +// "floodlightActivityGroupType": Select only floodlight activities with the +// specified floodlight activity group type. // // Possible values: // @@ -31490,17 +23229,17 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightAct } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activities for -// the specified floodlight configuration ID. Must specify either ids, +// "floodlightConfigurationId": Select only floodlight activities for the +// specified floodlight configuration ID. Must specify either ids, // advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activities with the specified IDs. Must specify either ids, -// advertiserId, or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activities +// with the specified IDs. Must specify either ids, advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesListCall { var ids_ []string for _, v := range ids { @@ -31510,8 +23249,8 @@ func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesLi return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivitiesListCall) MaxResults(maxResults int64) *FloodlightActivitiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -31524,22 +23263,22 @@ func (c *FloodlightActivitiesListCall) PageToken(pageToken string) *FloodlightAc return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivity*2015" will return objects with names -// like "floodlightactivity June 2015", "floodlightactivity April 2015", -// or simply "floodlightactivity 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivity" will match -// objects with name "my floodlightactivity activity", -// "floodlightactivity 2015", or simply "floodlightactivity". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivity*2015" will return objects with names like +// "floodlightactivity June 2015", "floodlightactivity April 2015", or simply +// "floodlightactivity 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "floodlightactivity" will match objects with name "my +// floodlightactivity activity", "floodlightactivity 2015", or simply +// "floodlightactivity". func (c *FloodlightActivitiesListCall) SearchString(searchString string) *FloodlightActivitiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -31550,8 +23289,7 @@ func (c *FloodlightActivitiesListCall) SortField(sortField string) *FloodlightAc return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -31562,41 +23300,37 @@ func (c *FloodlightActivitiesListCall) SortOrder(sortOrder string) *FloodlightAc return c } -// TagString sets the optional parameter "tagString": Select only -// floodlight activities with the specified tag string. +// TagString sets the optional parameter "tagString": Select only floodlight +// activities with the specified tag string. func (c *FloodlightActivitiesListCall) TagString(tagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("tagString", tagString) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesListCall) Fields(s ...googleapi.Field) *FloodlightActivitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesListCall) IfNoneMatch(entityTag string) *FloodlightActivitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesListCall) Context(ctx context.Context) *FloodlightActivitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31605,12 +23339,7 @@ func (c *FloodlightActivitiesListCall) Header() http.Header { } func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31627,16 +23356,15 @@ func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.list" call. -// Exactly one of *FloodlightActivitiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivitiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31644,17 +23372,17 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -31667,132 +23395,6 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activities for the specified advertiser ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupIds": { - // "description": "Select only floodlight activities with the specified floodlight activity group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightActivityGroupName": { - // "description": "Select only floodlight activities with the specified floodlight activity group name.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupTagString": { - // "description": "Select only floodlight activities with the specified floodlight activity group tag string.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupType": { - // "description": "Select only floodlight activities with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activities for the specified floodlight configuration ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivity*2015\" will return objects with names like \"floodlightactivity June 2015\", \"floodlightactivity April 2015\", or simply \"floodlightactivity 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivity\" will match objects with name \"my floodlightactivity activity\", \"floodlightactivity 2015\", or simply \"floodlightactivity\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "tagString": { - // "description": "Select only floodlight activities with the specified tag string.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "response": { - // "$ref": "FloodlightActivitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -31800,7 +23402,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*FloodlightActivitiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -31816,8 +23418,6 @@ func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*Floodl } } -// method id "dfareporting.floodlightActivities.patch": - type FloodlightActivitiesPatchCall struct { s *Service profileId int64 @@ -31827,8 +23427,11 @@ type FloodlightActivitiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity. This method supports -// patch semantics. +// Patch: Updates an existing floodlight activity. This method supports patch +// semantics. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesPatchCall { c := &FloodlightActivitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31838,23 +23441,21 @@ func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodligh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesPatchCall) Fields(s ...googleapi.Field) *FloodlightActivitiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesPatchCall) Context(ctx context.Context) *FloodlightActivitiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31863,18 +23464,12 @@ func (c *FloodlightActivitiesPatchCall) Header() http.Header { } func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -31887,16 +23482,15 @@ func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.patch" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31904,17 +23498,17 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -31927,45 +23521,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivities.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.update": +} type FloodlightActivitiesUpdateCall struct { s *Service @@ -31977,6 +23533,8 @@ type FloodlightActivitiesUpdateCall struct { } // Update: Updates an existing floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesUpdateCall { c := &FloodlightActivitiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31985,23 +23543,21 @@ func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivitiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesUpdateCall) Context(ctx context.Context) *FloodlightActivitiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32010,18 +23566,12 @@ func (c *FloodlightActivitiesUpdateCall) Header() http.Header { } func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -32034,16 +23584,15 @@ func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.update" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32051,17 +23600,17 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -32074,37 +23623,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivities.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.get": +} type FloodlightActivityGroupsGetCall struct { s *Service @@ -32117,6 +23636,9 @@ type FloodlightActivityGroupsGetCall struct { } // Get: Gets one floodlight activity group by ID. +// +// - id: Floodlight activity Group ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *FloodlightActivityGroupsGetCall { c := &FloodlightActivityGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32125,33 +23647,29 @@ func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsGetCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsGetCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsGetCall) Context(ctx context.Context) *FloodlightActivityGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32160,12 +23678,7 @@ func (c *FloodlightActivityGroupsGetCall) Header() http.Header { } func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32183,16 +23696,15 @@ func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.get" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32200,17 +23712,17 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -32223,42 +23735,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.insert": +} type FloodlightActivityGroupsInsertCall struct { s *Service @@ -32270,6 +23747,8 @@ type FloodlightActivityGroupsInsertCall struct { } // Insert: Inserts a new floodlight activity group. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsInsertCall { c := &FloodlightActivityGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32278,23 +23757,21 @@ func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsInsertCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsInsertCall) Context(ctx context.Context) *FloodlightActivityGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32303,18 +23780,12 @@ func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { } func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -32327,16 +23798,15 @@ func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.insert" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32344,17 +23814,17 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -32367,37 +23837,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity group.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivityGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.list": +} type FloodlightActivityGroupsListCall struct { s *Service @@ -32408,8 +23848,10 @@ type FloodlightActivityGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activity groups, possibly -// filtered. This method supports paging. +// List: Retrieves a list of floodlight activity groups, possibly filtered. +// This method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActivityGroupsListCall { c := &FloodlightActivityGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32417,26 +23859,25 @@ func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActiv } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activity groups with the specified advertiser ID. Must -// specify either advertiserId or floodlightConfigurationId for a -// non-empty result. +// floodlight activity groups with the specified advertiser ID. Must specify +// either advertiserId or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) AdvertiserId(advertiserId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activity groups -// with the specified floodlight configuration ID. Must specify either -// advertiserId, or floodlightConfigurationId for a non-empty result. +// "floodlightConfigurationId": Select only floodlight activity groups with the +// specified floodlight configuration ID. Must specify either advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activity groups with the specified IDs. Must specify either -// advertiserId or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activity +// groups with the specified IDs. Must specify either advertiserId or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivityGroupsListCall { var ids_ []string for _, v := range ids { @@ -32446,8 +23887,8 @@ func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivity return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivityGroupsListCall) MaxResults(maxResults int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -32460,23 +23901,22 @@ func (c *FloodlightActivityGroupsListCall) PageToken(pageToken string) *Floodlig return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivitygroup*2015" will return objects with -// names like "floodlightactivitygroup June 2015", -// "floodlightactivitygroup April 2015", or simply -// "floodlightactivitygroup 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivitygroup" will match -// objects with name "my floodlightactivitygroup activity", -// "floodlightactivitygroup 2015", or simply "floodlightactivitygroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivitygroup*2015" will return objects with names like +// "floodlightactivitygroup June 2015", "floodlightactivitygroup April 2015", +// or simply "floodlightactivitygroup 2015". Most of the searches also add +// wildcards implicitly at the start and the end of the search string. For +// example, a search string of "floodlightactivitygroup" will match objects +// with name "my floodlightactivitygroup activity", "floodlightactivitygroup +// 2015", or simply "floodlightactivitygroup". func (c *FloodlightActivityGroupsListCall) SearchString(searchString string) *FloodlightActivityGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -32487,8 +23927,7 @@ func (c *FloodlightActivityGroupsListCall) SortField(sortField string) *Floodlig return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -32499,8 +23938,8 @@ func (c *FloodlightActivityGroupsListCall) SortOrder(sortOrder string) *Floodlig return c } -// Type sets the optional parameter "type": Select only floodlight -// activity groups with the specified floodlight activity group type. +// Type sets the optional parameter "type": Select only floodlight activity +// groups with the specified floodlight activity group type. // // Possible values: // @@ -32512,33 +23951,29 @@ func (c *FloodlightActivityGroupsListCall) Type(type_ string) *FloodlightActivit } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsListCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsListCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsListCall) Context(ctx context.Context) *FloodlightActivityGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32547,12 +23982,7 @@ func (c *FloodlightActivityGroupsListCall) Header() http.Header { } func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32569,17 +23999,15 @@ func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.list" call. -// Exactly one of *FloodlightActivityGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivityGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivityGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32587,17 +24015,17 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -32610,110 +24038,6 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activity groups with the specified advertiser ID. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activity groups with the specified floodlight configuration ID. Must specify either advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivitygroup*2015\" will return objects with names like \"floodlightactivitygroup June 2015\", \"floodlightactivitygroup April 2015\", or simply \"floodlightactivitygroup 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivitygroup\" will match objects with name \"my floodlightactivitygroup activity\", \"floodlightactivitygroup 2015\", or simply \"floodlightactivitygroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only floodlight activity groups with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "response": { - // "$ref": "FloodlightActivityGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -32721,7 +24045,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*FloodlightActivityGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -32737,8 +24061,6 @@ func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*Fl } } -// method id "dfareporting.floodlightActivityGroups.patch": - type FloodlightActivityGroupsPatchCall struct { s *Service profileId int64 @@ -32748,8 +24070,11 @@ type FloodlightActivityGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity group. This method -// supports patch semantics. +// Patch: Updates an existing floodlight activity group. This method supports +// patch semantics. +// +// - id: Floodlight activity Group ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsPatchCall { c := &FloodlightActivityGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32759,23 +24084,21 @@ func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsPatchCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsPatchCall) Context(ctx context.Context) *FloodlightActivityGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32784,18 +24107,12 @@ func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { } func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -32808,16 +24125,15 @@ func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.patch" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32825,17 +24141,17 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -32848,45 +24164,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivityGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.update": +} type FloodlightActivityGroupsUpdateCall struct { s *Service @@ -32898,6 +24176,8 @@ type FloodlightActivityGroupsUpdateCall struct { } // Update: Updates an existing floodlight activity group. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsUpdateCall { c := &FloodlightActivityGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32906,23 +24186,21 @@ func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsUpdateCall) Context(ctx context.Context) *FloodlightActivityGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32931,18 +24209,12 @@ func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { } func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -32955,16 +24227,15 @@ func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.update" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32972,17 +24243,17 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -32995,37 +24266,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivityGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.get": +} type FloodlightConfigurationsGetCall struct { s *Service @@ -33038,6 +24279,9 @@ type FloodlightConfigurationsGetCall struct { } // Get: Gets one floodlight configuration by ID. +// +// - id: Floodlight configuration ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *FloodlightConfigurationsGetCall { c := &FloodlightConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33046,33 +24290,29 @@ func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsGetCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsGetCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsGetCall) Context(ctx context.Context) *FloodlightConfigurationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33081,12 +24321,7 @@ func (c *FloodlightConfigurationsGetCall) Header() http.Header { } func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33104,16 +24339,15 @@ func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.get" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33121,17 +24355,17 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -33144,42 +24378,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight configuration by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.list": +} type FloodlightConfigurationsListCall struct { s *Service @@ -33190,8 +24389,9 @@ type FloodlightConfigurationsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight configurations, possibly -// filtered. +// List: Retrieves a list of floodlight configurations, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfigurationsListCall { c := &FloodlightConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33199,8 +24399,8 @@ func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfi } // Ids sets the optional parameter "ids": Set of IDs of floodlight -// configurations to retrieve. Required field; otherwise an empty list -// will be returned. +// configurations to retrieve. Required field; otherwise an empty list will be +// returned. func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigurationsListCall { var ids_ []string for _, v := range ids { @@ -33211,33 +24411,29 @@ func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigur } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsListCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsListCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsListCall) Context(ctx context.Context) *FloodlightConfigurationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33246,12 +24442,7 @@ func (c *FloodlightConfigurationsListCall) Header() http.Header { } func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33268,17 +24459,15 @@ func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.list" call. -// Exactly one of *FloodlightConfigurationsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightConfigurationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightConfigurationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*FloodlightConfigurationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33286,17 +24475,17 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfigurationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -33309,41 +24498,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight configurations, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will be returned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "response": { - // "$ref": "FloodlightConfigurationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.patch": +} type FloodlightConfigurationsPatchCall struct { s *Service @@ -33354,8 +24509,11 @@ type FloodlightConfigurationsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight configuration. This method -// supports patch semantics. +// Patch: Updates an existing floodlight configuration. This method supports +// patch semantics. +// +// - id: Floodlight configuration ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsPatchCall { c := &FloodlightConfigurationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33365,23 +24523,21 @@ func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsPatchCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsPatchCall) Context(ctx context.Context) *FloodlightConfigurationsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33390,18 +24546,12 @@ func (c *FloodlightConfigurationsPatchCall) Header() http.Header { } func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -33414,16 +24564,15 @@ func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.patch" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33431,17 +24580,17 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -33454,45 +24603,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightConfigurations.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.update": +} type FloodlightConfigurationsUpdateCall struct { s *Service @@ -33504,6 +24615,8 @@ type FloodlightConfigurationsUpdateCall struct { } // Update: Updates an existing floodlight configuration. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsUpdateCall { c := &FloodlightConfigurationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33512,23 +24625,21 @@ func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconf } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsUpdateCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsUpdateCall) Context(ctx context.Context) *FloodlightConfigurationsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33537,18 +24648,12 @@ func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { } func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -33561,16 +24666,15 @@ func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.update" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33578,17 +24682,17 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -33601,37 +24705,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightConfigurations.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.get": +} type InventoryItemsGetCall struct { s *Service @@ -33645,6 +24719,10 @@ type InventoryItemsGetCall struct { } // Get: Gets one inventory item by ID. +// +// - id: Inventory item ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) *InventoryItemsGetCall { c := &InventoryItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33654,33 +24732,29 @@ func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsGetCall) Fields(s ...googleapi.Field) *InventoryItemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsGetCall) IfNoneMatch(entityTag string) *InventoryItemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsGetCall) Context(ctx context.Context) *InventoryItemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33689,12 +24763,7 @@ func (c *InventoryItemsGetCall) Header() http.Header { } func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33713,16 +24782,14 @@ func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.get" call. -// Exactly one of *InventoryItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InventoryItem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventoryItem.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33730,17 +24797,17 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItem{ ServerResponse: googleapi.ServerResponse{ @@ -33753,50 +24820,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem return nil, err } return ret, nil - // { - // "description": "Gets one inventory item by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Inventory item ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - // "response": { - // "$ref": "InventoryItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.list": +} type InventoryItemsListCall struct { s *Service @@ -33808,8 +24832,11 @@ type InventoryItemsListCall struct { header_ http.Header } -// List: Retrieves a list of inventory items, possibly filtered. This -// method supports paging. +// List: Retrieves a list of inventory items, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *InventoryItemsService) List(profileId int64, projectId int64) *InventoryItemsListCall { c := &InventoryItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33817,8 +24844,8 @@ func (r *InventoryItemsService) List(profileId int64, projectId int64) *Inventor return c } -// Ids sets the optional parameter "ids": Select only inventory items -// with these IDs. +// Ids sets the optional parameter "ids": Select only inventory items with +// these IDs. func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { var ids_ []string for _, v := range ids { @@ -33828,22 +24855,22 @@ func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { return c } -// InPlan sets the optional parameter "inPlan": Select only inventory -// items that are in plan. +// InPlan sets the optional parameter "inPlan": Select only inventory items +// that are in plan. func (c *InventoryItemsListCall) InPlan(inPlan bool) *InventoryItemsListCall { c.urlParams_.Set("inPlan", fmt.Sprint(inPlan)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *InventoryItemsListCall) MaxResults(maxResults int64) *InventoryItemsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only inventory -// items that belong to specified orders. +// OrderId sets the optional parameter "orderId": Select only inventory items +// that belong to specified orders. func (c *InventoryItemsListCall) OrderId(orderId ...int64) *InventoryItemsListCall { var orderId_ []string for _, v := range orderId { @@ -33860,8 +24887,8 @@ func (c *InventoryItemsListCall) PageToken(pageToken string) *InventoryItemsList return c } -// SiteId sets the optional parameter "siteId": Select only inventory -// items that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only inventory items +// that are associated with these sites. func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall { var siteId_ []string for _, v := range siteId { @@ -33871,8 +24898,8 @@ func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -33883,8 +24910,7 @@ func (c *InventoryItemsListCall) SortField(sortField string) *InventoryItemsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -33895,8 +24921,8 @@ func (c *InventoryItemsListCall) SortOrder(sortOrder string) *InventoryItemsList return c } -// Type sets the optional parameter "type": Select only inventory items -// with this type. +// Type sets the optional parameter "type": Select only inventory items with +// this type. // // Possible values: // @@ -33908,33 +24934,29 @@ func (c *InventoryItemsListCall) Type(type_ string) *InventoryItemsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsListCall) Fields(s ...googleapi.Field) *InventoryItemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsListCall) IfNoneMatch(entityTag string) *InventoryItemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsListCall) Context(ctx context.Context) *InventoryItemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33943,12 +24965,7 @@ func (c *InventoryItemsListCall) Header() http.Header { } func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33966,16 +24983,15 @@ func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.list" call. -// Exactly one of *InventoryItemsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *InventoryItemsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *InventoryItemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryItemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33983,17 +24999,17 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34006,120 +25022,6 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte return nil, err } return ret, nil - // { - // "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only inventory items with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "inPlan": { - // "description": "Select only inventory items that are in plan.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only inventory items that belong to specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "siteId": { - // "description": "Select only inventory items that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only inventory items with this type.", - // "enum": [ - // "PLANNING_PLACEMENT_TYPE_CREDIT", - // "PLANNING_PLACEMENT_TYPE_REGULAR" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - // "response": { - // "$ref": "InventoryItemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -34127,7 +25029,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // The provided context supersedes any context provided to the Context method. func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryItemsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -34143,8 +25045,6 @@ func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryIte } } -// method id "dfareporting.landingPages.delete": - type LandingPagesDeleteCall struct { s *Service profileId int64 @@ -34156,6 +25056,10 @@ type LandingPagesDeleteCall struct { } // Delete: Deletes an existing campaign landing page. +// +// - campaignId: Landing page campaign ID. +// - id: Landing page ID. +// - profileId: User profile ID associated with this request. func (r *LandingPagesService) Delete(profileId int64, campaignId int64, id int64) *LandingPagesDeleteCall { c := &LandingPagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34165,23 +25069,21 @@ func (r *LandingPagesService) Delete(profileId int64, campaignId int64, id int64 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LandingPagesDeleteCall) Fields(s ...googleapi.Field) *LandingPagesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LandingPagesDeleteCall) Context(ctx context.Context) *LandingPagesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LandingPagesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34190,12 +25092,7 @@ func (c *LandingPagesDeleteCall) Header() http.Header { } func (c *LandingPagesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -34211,7 +25108,7 @@ func (c *LandingPagesDeleteCall) doRequest(alt string) (*http.Response, error) { "campaignId": strconv.FormatInt(c.campaignId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.landingPages.delete" call. @@ -34223,50 +25120,10 @@ func (c *LandingPagesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing campaign landing page.", - // "httpMethod": "DELETE", - // "id": "dfareporting.landingPages.delete", - // "parameterOrder": [ - // "profileId", - // "campaignId", - // "id" - // ], - // "parameters": { - // "campaignId": { - // "description": "Landing page campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.landingPages.get": +} type LandingPagesGetCall struct { s *Service @@ -34280,6 +25137,10 @@ type LandingPagesGetCall struct { } // Get: Gets one campaign landing page by ID. +// +// - campaignId: Landing page campaign ID. +// - id: Landing page ID. +// - profileId: User profile ID associated with this request. func (r *LandingPagesService) Get(profileId int64, campaignId int64, id int64) *LandingPagesGetCall { c := &LandingPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34289,33 +25150,29 @@ func (r *LandingPagesService) Get(profileId int64, campaignId int64, id int64) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LandingPagesGetCall) Fields(s ...googleapi.Field) *LandingPagesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LandingPagesGetCall) IfNoneMatch(entityTag string) *LandingPagesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LandingPagesGetCall) Context(ctx context.Context) *LandingPagesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LandingPagesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34324,12 +25181,7 @@ func (c *LandingPagesGetCall) Header() http.Header { } func (c *LandingPagesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34348,16 +25200,14 @@ func (c *LandingPagesGetCall) doRequest(alt string) (*http.Response, error) { "campaignId": strconv.FormatInt(c.campaignId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.landingPages.get" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *LandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34365,17 +25215,17 @@ func (c *LandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -34388,50 +25238,7 @@ func (c *LandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, er return nil, err } return ret, nil - // { - // "description": "Gets one campaign landing page by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.landingPages.get", - // "parameterOrder": [ - // "profileId", - // "campaignId", - // "id" - // ], - // "parameters": { - // "campaignId": { - // "description": "Landing page campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}", - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.landingPages.insert": +} type LandingPagesInsertCall struct { s *Service @@ -34444,6 +25251,9 @@ type LandingPagesInsertCall struct { } // Insert: Inserts a new landing page for the specified campaign. +// +// - campaignId: Landing page campaign ID. +// - profileId: User profile ID associated with this request. func (r *LandingPagesService) Insert(profileId int64, campaignId int64, landingpage *LandingPage) *LandingPagesInsertCall { c := &LandingPagesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34453,23 +25263,21 @@ func (r *LandingPagesService) Insert(profileId int64, campaignId int64, landingp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LandingPagesInsertCall) Fields(s ...googleapi.Field) *LandingPagesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LandingPagesInsertCall) Context(ctx context.Context) *LandingPagesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LandingPagesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34478,18 +25286,12 @@ func (c *LandingPagesInsertCall) Header() http.Header { } func (c *LandingPagesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/landingPages") @@ -34503,16 +25305,14 @@ func (c *LandingPagesInsertCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.landingPages.insert" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *LandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34520,17 +25320,17 @@ func (c *LandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -34543,45 +25343,7 @@ func (c *LandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, return nil, err } return ret, nil - // { - // "description": "Inserts a new landing page for the specified campaign.", - // "httpMethod": "POST", - // "id": "dfareporting.landingPages.insert", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Landing page campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/landingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.landingPages.list": +} type LandingPagesListCall struct { s *Service @@ -34594,6 +25356,9 @@ type LandingPagesListCall struct { } // List: Retrieves the list of landing pages for the specified campaign. +// +// - campaignId: Landing page campaign ID. +// - profileId: User profile ID associated with this request. func (r *LandingPagesService) List(profileId int64, campaignId int64) *LandingPagesListCall { c := &LandingPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34602,33 +25367,29 @@ func (r *LandingPagesService) List(profileId int64, campaignId int64) *LandingPa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LandingPagesListCall) Fields(s ...googleapi.Field) *LandingPagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LandingPagesListCall) IfNoneMatch(entityTag string) *LandingPagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LandingPagesListCall) Context(ctx context.Context) *LandingPagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LandingPagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34637,12 +25398,7 @@ func (c *LandingPagesListCall) Header() http.Header { } func (c *LandingPagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34660,16 +25416,15 @@ func (c *LandingPagesListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.landingPages.list" call. -// Exactly one of *LandingPagesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *LandingPagesListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *LandingPagesListCall) Do(opts ...googleapi.CallOption) (*LandingPagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34677,17 +25432,17 @@ func (c *LandingPagesListCall) Do(opts ...googleapi.CallOption) (*LandingPagesLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34700,42 +25455,7 @@ func (c *LandingPagesListCall) Do(opts ...googleapi.CallOption) (*LandingPagesLi return nil, err } return ret, nil - // { - // "description": "Retrieves the list of landing pages for the specified campaign.", - // "httpMethod": "GET", - // "id": "dfareporting.landingPages.list", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Landing page campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/landingPages", - // "response": { - // "$ref": "LandingPagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.landingPages.patch": +} type LandingPagesPatchCall struct { s *Service @@ -34747,8 +25467,12 @@ type LandingPagesPatchCall struct { header_ http.Header } -// Patch: Updates an existing campaign landing page. This method -// supports patch semantics. +// Patch: Updates an existing campaign landing page. This method supports patch +// semantics. +// +// - campaignId: Landing page campaign ID. +// - id: Landing page ID. +// - profileId: User profile ID associated with this request. func (r *LandingPagesService) Patch(profileId int64, campaignId int64, id int64, landingpage *LandingPage) *LandingPagesPatchCall { c := &LandingPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34759,23 +25483,21 @@ func (r *LandingPagesService) Patch(profileId int64, campaignId int64, id int64, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LandingPagesPatchCall) Fields(s ...googleapi.Field) *LandingPagesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LandingPagesPatchCall) Context(ctx context.Context) *LandingPagesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LandingPagesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34784,18 +25506,12 @@ func (c *LandingPagesPatchCall) Header() http.Header { } func (c *LandingPagesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/landingPages") @@ -34809,16 +25525,14 @@ func (c *LandingPagesPatchCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.landingPages.patch" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *LandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34826,17 +25540,17 @@ func (c *LandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -34849,53 +25563,7 @@ func (c *LandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign landing page. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.landingPages.patch", - // "parameterOrder": [ - // "profileId", - // "campaignId", - // "id" - // ], - // "parameters": { - // "campaignId": { - // "description": "Landing page campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/landingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.landingPages.update": +} type LandingPagesUpdateCall struct { s *Service @@ -34908,6 +25576,9 @@ type LandingPagesUpdateCall struct { } // Update: Updates an existing campaign landing page. +// +// - campaignId: Landing page campaign ID. +// - profileId: User profile ID associated with this request. func (r *LandingPagesService) Update(profileId int64, campaignId int64, landingpage *LandingPage) *LandingPagesUpdateCall { c := &LandingPagesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34917,23 +25588,21 @@ func (r *LandingPagesService) Update(profileId int64, campaignId int64, landingp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LandingPagesUpdateCall) Fields(s ...googleapi.Field) *LandingPagesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LandingPagesUpdateCall) Context(ctx context.Context) *LandingPagesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LandingPagesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34942,18 +25611,12 @@ func (c *LandingPagesUpdateCall) Header() http.Header { } func (c *LandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/landingPages") @@ -34967,16 +25630,14 @@ func (c *LandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.landingPages.update" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *LandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34984,17 +25645,17 @@ func (c *LandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -35007,45 +25668,7 @@ func (c *LandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign landing page.", - // "httpMethod": "PUT", - // "id": "dfareporting.landingPages.update", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Landing page campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/landingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.languages.list": +} type LanguagesListCall struct { s *Service @@ -35057,6 +25680,8 @@ type LanguagesListCall struct { } // List: Retrieves a list of languages. +// +// - profileId: User profile ID associated with this request. func (r *LanguagesService) List(profileId int64) *LanguagesListCall { c := &LanguagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35064,33 +25689,29 @@ func (r *LanguagesService) List(profileId int64) *LanguagesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LanguagesListCall) Fields(s ...googleapi.Field) *LanguagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LanguagesListCall) IfNoneMatch(entityTag string) *LanguagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LanguagesListCall) Context(ctx context.Context) *LanguagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LanguagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35099,12 +25720,7 @@ func (c *LanguagesListCall) Header() http.Header { } func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35121,16 +25737,15 @@ func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.languages.list" call. -// Exactly one of *LanguagesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *LanguagesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LanguagesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35138,17 +25753,17 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LanguagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35161,34 +25776,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of languages.", - // "httpMethod": "GET", - // "id": "dfareporting.languages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/languages", - // "response": { - // "$ref": "LanguagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.metros.list": +} type MetrosListCall struct { s *Service @@ -35200,6 +25788,8 @@ type MetrosListCall struct { } // List: Retrieves a list of metros. +// +// - profileId: User profile ID associated with this request. func (r *MetrosService) List(profileId int64) *MetrosListCall { c := &MetrosListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35207,33 +25797,29 @@ func (r *MetrosService) List(profileId int64) *MetrosListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetrosListCall) Fields(s ...googleapi.Field) *MetrosListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetrosListCall) IfNoneMatch(entityTag string) *MetrosListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetrosListCall) Context(ctx context.Context) *MetrosListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetrosListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35242,12 +25828,7 @@ func (c *MetrosListCall) Header() http.Header { } func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35264,16 +25845,15 @@ func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.metros.list" call. -// Exactly one of *MetrosListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MetrosListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MetrosListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35281,17 +25861,17 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MetrosListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35304,34 +25884,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of metros.", - // "httpMethod": "GET", - // "id": "dfareporting.metros.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/metros", - // "response": { - // "$ref": "MetrosListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileCarriers.get": +} type MobileCarriersGetCall struct { s *Service @@ -35344,6 +25897,9 @@ type MobileCarriersGetCall struct { } // Get: Gets one mobile carrier by ID. +// +// - id: Mobile carrier ID. +// - profileId: User profile ID associated with this request. func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGetCall { c := &MobileCarriersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35352,33 +25908,29 @@ func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersGetCall) Fields(s ...googleapi.Field) *MobileCarriersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersGetCall) IfNoneMatch(entityTag string) *MobileCarriersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersGetCall) Context(ctx context.Context) *MobileCarriersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35387,12 +25939,7 @@ func (c *MobileCarriersGetCall) Header() http.Header { } func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35410,16 +25957,14 @@ func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.get" call. -// Exactly one of *MobileCarrier or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileCarrier.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileCarrier.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35427,17 +25972,17 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarrier{ ServerResponse: googleapi.ServerResponse{ @@ -35450,42 +25995,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier return nil, err } return ret, nil - // { - // "description": "Gets one mobile carrier by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile carrier ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers/{id}", - // "response": { - // "$ref": "MobileCarrier" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileCarriers.list": +} type MobileCarriersListCall struct { s *Service @@ -35497,6 +26007,8 @@ type MobileCarriersListCall struct { } // List: Retrieves a list of mobile carriers. +// +// - profileId: User profile ID associated with this request. func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { c := &MobileCarriersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35504,33 +26016,29 @@ func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersListCall) Fields(s ...googleapi.Field) *MobileCarriersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersListCall) IfNoneMatch(entityTag string) *MobileCarriersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersListCall) Context(ctx context.Context) *MobileCarriersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35539,12 +26047,7 @@ func (c *MobileCarriersListCall) Header() http.Header { } func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35561,16 +26064,15 @@ func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.list" call. -// Exactly one of *MobileCarriersListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *MobileCarriersListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *MobileCarriersListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarriersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35578,17 +26080,17 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarriersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35601,34 +26103,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie return nil, err } return ret, nil - // { - // "description": "Retrieves a list of mobile carriers.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers", - // "response": { - // "$ref": "MobileCarriersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.get": +} type OperatingSystemVersionsGetCall struct { s *Service @@ -35641,6 +26116,9 @@ type OperatingSystemVersionsGetCall struct { } // Get: Gets one operating system version by ID. +// +// - id: Operating system version ID. +// - profileId: User profile ID associated with this request. func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *OperatingSystemVersionsGetCall { c := &OperatingSystemVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35649,33 +26127,29 @@ func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *Operati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsGetCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsGetCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsGetCall) Context(ctx context.Context) *OperatingSystemVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35684,12 +26158,7 @@ func (c *OperatingSystemVersionsGetCall) Header() http.Header { } func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35707,16 +26176,15 @@ func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.get" call. -// Exactly one of *OperatingSystemVersion or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OperatingSystemVersion.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersion.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35724,17 +26192,17 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersion{ ServerResponse: googleapi.ServerResponse{ @@ -35747,42 +26215,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper return nil, err } return ret, nil - // { - // "description": "Gets one operating system version by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Operating system version ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", - // "response": { - // "$ref": "OperatingSystemVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.list": +} type OperatingSystemVersionsListCall struct { s *Service @@ -35794,6 +26227,8 @@ type OperatingSystemVersionsListCall struct { } // List: Retrieves a list of operating system versions. +// +// - profileId: User profile ID associated with this request. func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemVersionsListCall { c := &OperatingSystemVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35801,33 +26236,29 @@ func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemV } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsListCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsListCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsListCall) Context(ctx context.Context) *OperatingSystemVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35836,12 +26267,7 @@ func (c *OperatingSystemVersionsListCall) Header() http.Header { } func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35858,17 +26284,15 @@ func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.list" call. -// Exactly one of *OperatingSystemVersionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemVersionsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersionsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35876,17 +26300,17 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35899,34 +26323,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating system versions.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions", - // "response": { - // "$ref": "OperatingSystemVersionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.get": +} type OperatingSystemsGetCall struct { s *Service @@ -35939,6 +26336,9 @@ type OperatingSystemsGetCall struct { } // Get: Gets one operating system by DART ID. +// +// - dartId: Operating system DART ID. +// - profileId: User profile ID associated with this request. func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingSystemsGetCall { c := &OperatingSystemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35947,33 +26347,29 @@ func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingS } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsGetCall) Fields(s ...googleapi.Field) *OperatingSystemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsGetCall) IfNoneMatch(entityTag string) *OperatingSystemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsGetCall) Context(ctx context.Context) *OperatingSystemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35982,12 +26378,7 @@ func (c *OperatingSystemsGetCall) Header() http.Header { } func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36005,16 +26396,15 @@ func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.get" call. -// Exactly one of *OperatingSystem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OperatingSystem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystem.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36022,17 +26412,17 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystem{ ServerResponse: googleapi.ServerResponse{ @@ -36045,42 +26435,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy return nil, err } return ret, nil - // { - // "description": "Gets one operating system by DART ID.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Operating system DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems/{dartId}", - // "response": { - // "$ref": "OperatingSystem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.list": +} type OperatingSystemsListCall struct { s *Service @@ -36092,6 +26447,8 @@ type OperatingSystemsListCall struct { } // List: Retrieves a list of operating systems. +// +// - profileId: User profile ID associated with this request. func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCall { c := &OperatingSystemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36099,33 +26456,29 @@ func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsListCall) Fields(s ...googleapi.Field) *OperatingSystemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsListCall) IfNoneMatch(entityTag string) *OperatingSystemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsListCall) Context(ctx context.Context) *OperatingSystemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36134,12 +26487,7 @@ func (c *OperatingSystemsListCall) Header() http.Header { } func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36156,16 +26504,15 @@ func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.list" call. -// Exactly one of *OperatingSystemsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36173,17 +26520,17 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36196,34 +26543,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating systems.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems", - // "response": { - // "$ref": "OperatingSystemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.get": +} type OrderDocumentsGetCall struct { s *Service @@ -36237,6 +26557,10 @@ type OrderDocumentsGetCall struct { } // Get: Gets one order document by ID. +// +// - id: Order document ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) *OrderDocumentsGetCall { c := &OrderDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36246,33 +26570,29 @@ func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsGetCall) Context(ctx context.Context) *OrderDocumentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36281,12 +26601,7 @@ func (c *OrderDocumentsGetCall) Header() http.Header { } func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36305,16 +26620,14 @@ func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.get" call. -// Exactly one of *OrderDocument or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OrderDocument.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderDocument.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36322,17 +26635,17 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocument{ ServerResponse: googleapi.ServerResponse{ @@ -36345,50 +26658,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument return nil, err } return ret, nil - // { - // "description": "Gets one order document by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order document ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - // "response": { - // "$ref": "OrderDocument" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.list": +} type OrderDocumentsListCall struct { s *Service @@ -36400,8 +26670,11 @@ type OrderDocumentsListCall struct { header_ http.Header } -// List: Retrieves a list of order documents, possibly filtered. This -// method supports paging. +// List: Retrieves a list of order documents, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDocumentsListCall { c := &OrderDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36409,15 +26682,15 @@ func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDoc return c } -// Approved sets the optional parameter "approved": Select only order -// documents that have been approved by at least one user. +// Approved sets the optional parameter "approved": Select only order documents +// that have been approved by at least one user. func (c *OrderDocumentsListCall) Approved(approved bool) *OrderDocumentsListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// Ids sets the optional parameter "ids": Select only order documents -// with these IDs. +// Ids sets the optional parameter "ids": Select only order documents with +// these IDs. func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { var ids_ []string for _, v := range ids { @@ -36427,15 +26700,15 @@ func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrderDocumentsListCall) MaxResults(maxResults int64) *OrderDocumentsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only order -// documents for specified orders. +// OrderId sets the optional parameter "orderId": Select only order documents +// for specified orders. func (c *OrderDocumentsListCall) OrderId(orderId ...int64) *OrderDocumentsListCall { var orderId_ []string for _, v := range orderId { @@ -36452,22 +26725,21 @@ func (c *OrderDocumentsListCall) PageToken(pageToken string) *OrderDocumentsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for order documents by name or ID. Wildcards (*) are -// allowed. For example, "orderdocument*2015" will return order -// documents with names like "orderdocument June 2015", "orderdocument -// April 2015", or simply "orderdocument 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "orderdocument" will match -// order documents with name "my orderdocument", "orderdocument 2015", -// or simply "orderdocument". +// SearchString sets the optional parameter "searchString": Allows searching +// for order documents by name or ID. Wildcards (*) are allowed. For example, +// "orderdocument*2015" will return order documents with names like +// "orderdocument June 2015", "orderdocument April 2015", or simply +// "orderdocument 2015". Most of the searches also add wildcards implicitly at +// the start and the end of the search string. For example, a search string of +// "orderdocument" will match order documents with name "my orderdocument", +// "orderdocument 2015", or simply "orderdocument". func (c *OrderDocumentsListCall) SearchString(searchString string) *OrderDocumentsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only order -// documents that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only order documents +// that are associated with these sites. func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall { var siteId_ []string for _, v := range siteId { @@ -36477,8 +26749,8 @@ func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -36489,8 +26761,7 @@ func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -36502,33 +26773,29 @@ func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsListCall) Context(ctx context.Context) *OrderDocumentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36537,12 +26804,7 @@ func (c *OrderDocumentsListCall) Header() http.Header { } func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36560,16 +26822,15 @@ func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.list" call. -// Exactly one of *OrderDocumentsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrderDocumentsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrderDocumentsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumentsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36577,17 +26838,17 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocumentsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36600,112 +26861,6 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen return nil, err } return ret, nil - // { - // "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "approved": { - // "description": "Select only order documents that have been approved by at least one user.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only order documents with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only order documents for specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for order documents by name or ID. Wildcards (*) are allowed. For example, \"orderdocument*2015\" will return order documents with names like \"orderdocument June 2015\", \"orderdocument April 2015\", or simply \"orderdocument 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"orderdocument\" will match order documents with name \"my orderdocument\", \"orderdocument 2015\", or simply \"orderdocument\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only order documents that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "response": { - // "$ref": "OrderDocumentsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -36713,7 +26868,7 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen // The provided context supersedes any context provided to the Context method. func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumentsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -36729,8 +26884,6 @@ func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumen } } -// method id "dfareporting.orders.get": - type OrdersGetCall struct { s *Service profileId int64 @@ -36743,6 +26896,10 @@ type OrdersGetCall struct { } // Get: Gets one order by ID. +// +// - id: Order ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for orders. func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersGetCall { c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36752,33 +26909,29 @@ func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36787,12 +26940,7 @@ func (c *OrdersGetCall) Header() http.Header { } func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36811,16 +26959,14 @@ func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Order.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36828,17 +26974,17 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Order{ ServerResponse: googleapi.ServerResponse{ @@ -36851,50 +26997,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return nil, err } return ret, nil - // { - // "description": "Gets one order by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.orders.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orders.list": +} type OrdersListCall struct { s *Service @@ -36906,8 +27009,11 @@ type OrdersListCall struct { header_ http.Header } -// List: Retrieves a list of orders, possibly filtered. This method -// supports paging. +// List: Retrieves a list of orders, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for orders. func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36915,8 +27021,7 @@ func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { return c } -// Ids sets the optional parameter "ids": Select only orders with these -// IDs. +// Ids sets the optional parameter "ids": Select only orders with these IDs. func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { var ids_ []string for _, v := range ids { @@ -36926,8 +27031,8 @@ func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -36940,20 +27045,20 @@ func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for orders by name or ID. Wildcards (*) are allowed. For -// example, "order*2015" will return orders with names like "order June -// 2015", "order April 2015", or simply "order 2015". Most of the -// searches also add wildcards implicitly at the start and the end of -// the search string. For example, a search string of "order" will match -// orders with name "my order", "order 2015", or simply "order". +// SearchString sets the optional parameter "searchString": Allows searching +// for orders by name or ID. Wildcards (*) are allowed. For example, +// "order*2015" will return orders with names like "order June 2015", "order +// April 2015", or simply "order 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "order" will match orders with name "my order", "order +// 2015", or simply "order". func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only orders that -// are associated with these site IDs. +// SiteId sets the optional parameter "siteId": Select only orders that are +// associated with these site IDs. func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { var siteId_ []string for _, v := range siteId { @@ -36963,8 +27068,8 @@ func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -36975,8 +27080,7 @@ func (c *OrdersListCall) SortField(sortField string) *OrdersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -36988,33 +27092,29 @@ func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37023,12 +27123,7 @@ func (c *OrdersListCall) Header() http.Header { } func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37046,16 +27141,15 @@ func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.list" call. -// Exactly one of *OrdersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37063,17 +27157,17 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37086,100 +27180,6 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.orders.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only orders with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, \"order*2015\" will return orders with names like \"order June 2015\", \"order April 2015\", or simply \"order 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"order\" will match orders with name \"my order\", \"order 2015\", or simply \"order\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only orders that are associated with these site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders", - // "response": { - // "$ref": "OrdersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -37187,7 +27187,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // The provided context supersedes any context provided to the Context method. func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -37203,8 +27203,6 @@ func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) } } -// method id "dfareporting.placementGroups.get": - type PlacementGroupsGetCall struct { s *Service profileId int64 @@ -37216,6 +27214,9 @@ type PlacementGroupsGetCall struct { } // Get: Gets one placement group by ID. +// +// - id: Placement group ID. +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroupsGetCall { c := &PlacementGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37224,33 +27225,29 @@ func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsGetCall) Fields(s ...googleapi.Field) *PlacementGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsGetCall) IfNoneMatch(entityTag string) *PlacementGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsGetCall) Context(ctx context.Context) *PlacementGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37259,12 +27256,7 @@ func (c *PlacementGroupsGetCall) Header() http.Header { } func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37282,16 +27274,14 @@ func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.get" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37299,17 +27289,17 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -37322,42 +27312,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro return nil, err } return ret, nil - // { - // "description": "Gets one placement group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups/{id}", - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.insert": +} type PlacementGroupsInsertCall struct { s *Service @@ -37369,6 +27324,8 @@ type PlacementGroupsInsertCall struct { } // Insert: Inserts a new placement group. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsInsertCall { c := &PlacementGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37377,23 +27334,21 @@ func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsInsertCall) Fields(s ...googleapi.Field) *PlacementGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsInsertCall) Context(ctx context.Context) *PlacementGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37402,18 +27357,12 @@ func (c *PlacementGroupsInsertCall) Header() http.Header { } func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -37426,16 +27375,14 @@ func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.insert" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37443,17 +27390,17 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -37466,37 +27413,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Inserts a new placement group.", - // "httpMethod": "POST", - // "id": "dfareporting.placementGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.list": +} type PlacementGroupsListCall struct { s *Service @@ -37507,16 +27424,18 @@ type PlacementGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of placement groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of placement groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall { c := &PlacementGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placement groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placement groups that belong to these advertisers. func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -37527,15 +27446,15 @@ func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Placeme } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementGroupsListCall) Archived(archived bool) *PlacementGroupsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// placement groups that belong to these campaigns. +// CampaignIds sets the optional parameter "campaignIds": Select only placement +// groups that belong to these campaigns. func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGroupsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -37545,9 +27464,8 @@ func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGr return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placement groups that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placement groups that are associated with these content categories. func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementGroupsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -37557,9 +27475,8 @@ func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64 return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placement groups that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placement groups that are associated with these directory sites. func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementGroupsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -37569,8 +27486,8 @@ func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *P return c } -// Ids sets the optional parameter "ids": Select only placement groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only placement groups with +// these IDs. func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { var ids_ []string for _, v := range ids { @@ -37580,16 +27497,16 @@ func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MaxEndDate(maxEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementGroupsListCall) MaxResults(maxResults int64) *PlacementGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -37603,17 +27520,17 @@ func (c *PlacementGroupsListCall) MaxStartDate(maxStartDate string) *PlacementGr return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinEndDate(minEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinStartDate(minStartDate string) *PlacementGroupsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -37626,13 +27543,13 @@ func (c *PlacementGroupsListCall) PageToken(pageToken string) *PlacementGroupsLi return c } -// PlacementGroupType sets the optional parameter "placementGroupType": -// Select only placement groups belonging with this group type. A -// package is a simple group of placements that acts as a single pricing -// point for a group of tags. A roadblock is a group of placements that -// not only acts as a single pricing point but also assumes that all the -// tags in it will be served at the same time. A roadblock requires one -// of its assigned placements to be marked as primary for reporting. +// PlacementGroupType sets the optional parameter "placementGroupType": Select +// only placement groups belonging with this group type. A package is a simple +// group of placements that acts as a single pricing point for a group of tags. +// A roadblock is a group of placements that not only acts as a single pricing +// point but also assumes that all the tags in it will be served at the same +// time. A roadblock requires one of its assigned placements to be marked as +// primary for reporting. // // Possible values: // @@ -37643,9 +27560,9 @@ func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placement groups that are -// associated with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placement groups that are associated with these placement +// strategies. func (c *PlacementGroupsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementGroupsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -37671,22 +27588,21 @@ func (c *PlacementGroupsListCall) PricingTypes(pricingTypes ...string) *Placemen return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placement groups by name or ID. Wildcards (*) are -// allowed. For example, "placement*2015" will return placement groups -// with names like "placement group June 2015", "placement group May -// 2015", or simply "placements 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementgroup" will match placement -// groups with name "my placementgroup", "placementgroup 2015", or -// simply "placementgroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for placement groups by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placement groups with names like "placement +// group June 2015", "placement group May 2015", or simply "placements 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "placementgroup" will +// match placement groups with name "my placementgroup", "placementgroup 2015", +// or simply "placementgroup". func (c *PlacementGroupsListCall) SearchString(searchString string) *PlacementGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placement -// groups that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placement groups +// that are associated with these sites. func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsListCall { var siteIds_ []string for _, v := range siteIds { @@ -37696,8 +27612,8 @@ func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsList return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -37708,8 +27624,7 @@ func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsLi return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -37721,33 +27636,29 @@ func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsLi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsListCall) Fields(s ...googleapi.Field) *PlacementGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsListCall) IfNoneMatch(entityTag string) *PlacementGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsListCall) Context(ctx context.Context) *PlacementGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37756,12 +27667,7 @@ func (c *PlacementGroupsListCall) Header() http.Header { } func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37778,16 +27684,15 @@ func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.list" call. -// Exactly one of *PlacementGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlacementGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlacementGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37795,17 +27700,17 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37818,187 +27723,6 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placement groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placement groups that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placement groups that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placement groups that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placement groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "800", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "800", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementGroupType": { - // "description": "Select only placement groups belonging with this group type. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting.", - // "enum": [ - // "PLACEMENT_PACKAGE", - // "PLACEMENT_ROADBLOCK" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placement groups that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placement groups with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPM_ACTIVEVIEW", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placement groups with names like \"placement group June 2015\", \"placement group May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementgroup\" will match placement groups with name \"my placementgroup\", \"placementgroup 2015\", or simply \"placementgroup\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placement groups that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "response": { - // "$ref": "PlacementGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -38006,7 +27730,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // The provided context supersedes any context provided to the Context method. func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -38022,8 +27746,6 @@ func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGr } } -// method id "dfareporting.placementGroups.patch": - type PlacementGroupsPatchCall struct { s *Service profileId int64 @@ -38033,8 +27755,11 @@ type PlacementGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement group. This method supports -// patch semantics. +// Patch: Updates an existing placement group. This method supports patch +// semantics. +// +// - id: Placement group ID. +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup *PlacementGroup) *PlacementGroupsPatchCall { c := &PlacementGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38044,23 +27769,21 @@ func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsPatchCall) Fields(s ...googleapi.Field) *PlacementGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsPatchCall) Context(ctx context.Context) *PlacementGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38069,18 +27792,12 @@ func (c *PlacementGroupsPatchCall) Header() http.Header { } func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -38093,16 +27810,14 @@ func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.patch" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38110,17 +27825,17 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38133,45 +27848,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.update": +} type PlacementGroupsUpdateCall struct { s *Service @@ -38183,6 +27860,8 @@ type PlacementGroupsUpdateCall struct { } // Update: Updates an existing placement group. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Update(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsUpdateCall { c := &PlacementGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38191,23 +27870,21 @@ func (r *PlacementGroupsService) Update(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsUpdateCall) Fields(s ...googleapi.Field) *PlacementGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsUpdateCall) Context(ctx context.Context) *PlacementGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38216,18 +27893,12 @@ func (c *PlacementGroupsUpdateCall) Header() http.Header { } func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -38240,16 +27911,14 @@ func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.update" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38257,17 +27926,17 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38280,37 +27949,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group.", - // "httpMethod": "PUT", - // "id": "dfareporting.placementGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.delete": +} type PlacementStrategiesDeleteCall struct { s *Service @@ -38322,6 +27961,9 @@ type PlacementStrategiesDeleteCall struct { } // Delete: Deletes an existing placement strategy. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *PlacementStrategiesDeleteCall { c := &PlacementStrategiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38330,23 +27972,21 @@ func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesDeleteCall) Fields(s ...googleapi.Field) *PlacementStrategiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesDeleteCall) Context(ctx context.Context) *PlacementStrategiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38355,12 +27995,7 @@ func (c *PlacementStrategiesDeleteCall) Header() http.Header { } func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -38375,7 +28010,7 @@ func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.delete" call. @@ -38387,42 +28022,10 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing placement strategy.", - // "httpMethod": "DELETE", - // "id": "dfareporting.placementStrategies.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.get": +} type PlacementStrategiesGetCall struct { s *Service @@ -38435,6 +28038,9 @@ type PlacementStrategiesGetCall struct { } // Get: Gets one placement strategy by ID. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementStrategiesGetCall { c := &PlacementStrategiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38443,33 +28049,29 @@ func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementSt } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesGetCall) Fields(s ...googleapi.Field) *PlacementStrategiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesGetCall) IfNoneMatch(entityTag string) *PlacementStrategiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesGetCall) Context(ctx context.Context) *PlacementStrategiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38478,12 +28080,7 @@ func (c *PlacementStrategiesGetCall) Header() http.Header { } func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38501,16 +28098,15 @@ func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.get" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38518,17 +28114,17 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -38541,42 +28137,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Gets one placement strategy by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.insert": +} type PlacementStrategiesInsertCall struct { s *Service @@ -38588,6 +28149,8 @@ type PlacementStrategiesInsertCall struct { } // Insert: Inserts a new placement strategy. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesInsertCall { c := &PlacementStrategiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38596,23 +28159,21 @@ func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesInsertCall) Fields(s ...googleapi.Field) *PlacementStrategiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesInsertCall) Context(ctx context.Context) *PlacementStrategiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38621,18 +28182,12 @@ func (c *PlacementStrategiesInsertCall) Header() http.Header { } func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -38645,16 +28200,15 @@ func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.insert" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38662,17 +28216,17 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -38685,37 +28239,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Inserts a new placement strategy.", - // "httpMethod": "POST", - // "id": "dfareporting.placementStrategies.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.list": +} type PlacementStrategiesListCall struct { s *Service @@ -38726,16 +28250,18 @@ type PlacementStrategiesListCall struct { header_ http.Header } -// List: Retrieves a list of placement strategies, possibly filtered. -// This method supports paging. +// List: Retrieves a list of placement strategies, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesListCall { c := &PlacementStrategiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only placement -// strategies with these IDs. +// Ids sets the optional parameter "ids": Select only placement strategies with +// these IDs. func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesListCall { var ids_ []string for _, v := range ids { @@ -38745,8 +28271,8 @@ func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementStrategiesListCall) MaxResults(maxResults int64) *PlacementStrategiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -38759,22 +28285,21 @@ func (c *PlacementStrategiesListCall) PageToken(pageToken string) *PlacementStra return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "placementstrategy*2015" will return objects with names like -// "placementstrategy June 2015", "placementstrategy April 2015", or -// simply "placementstrategy 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementstrategy" will match -// objects with name "my placementstrategy", "placementstrategy 2015", -// or simply "placementstrategy". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "placementstrategy*2015" will return objects with names like +// "placementstrategy June 2015", "placementstrategy April 2015", or simply +// "placementstrategy 2015". Most of the searches also add wildcards implicitly +// at the start and the end of the search string. For example, a search string +// of "placementstrategy" will match objects with name "my placementstrategy", +// "placementstrategy 2015", or simply "placementstrategy". func (c *PlacementStrategiesListCall) SearchString(searchString string) *PlacementStrategiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -38785,8 +28310,7 @@ func (c *PlacementStrategiesListCall) SortField(sortField string) *PlacementStra return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -38798,33 +28322,29 @@ func (c *PlacementStrategiesListCall) SortOrder(sortOrder string) *PlacementStra } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesListCall) Fields(s ...googleapi.Field) *PlacementStrategiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesListCall) IfNoneMatch(entityTag string) *PlacementStrategiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesListCall) Context(ctx context.Context) *PlacementStrategiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38833,12 +28353,7 @@ func (c *PlacementStrategiesListCall) Header() http.Header { } func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38855,16 +28370,15 @@ func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.list" call. -// Exactly one of *PlacementStrategiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementStrategiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategiesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*PlacementStrategiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38872,17 +28386,17 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -38895,85 +28409,6 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only placement strategies with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"placementstrategy*2015\" will return objects with names like \"placementstrategy June 2015\", \"placementstrategy April 2015\", or simply \"placementstrategy 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementstrategy\" will match objects with name \"my placementstrategy\", \"placementstrategy 2015\", or simply \"placementstrategy\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "response": { - // "$ref": "PlacementStrategiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -38981,7 +28416,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // The provided context supersedes any context provided to the Context method. func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*PlacementStrategiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -38997,8 +28432,6 @@ func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*Placeme } } -// method id "dfareporting.placementStrategies.patch": - type PlacementStrategiesPatchCall struct { s *Service profileId int64 @@ -39008,8 +28441,11 @@ type PlacementStrategiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement strategy. This method supports -// patch semantics. +// Patch: Updates an existing placement strategy. This method supports patch +// semantics. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placementstrategy *PlacementStrategy) *PlacementStrategiesPatchCall { c := &PlacementStrategiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39019,23 +28455,21 @@ func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placements } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesPatchCall) Fields(s ...googleapi.Field) *PlacementStrategiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesPatchCall) Context(ctx context.Context) *PlacementStrategiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39044,18 +28478,12 @@ func (c *PlacementStrategiesPatchCall) Header() http.Header { } func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -39068,16 +28496,15 @@ func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.patch" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39085,17 +28512,17 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39108,45 +28535,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementStrategies.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.update": +} type PlacementStrategiesUpdateCall struct { s *Service @@ -39158,6 +28547,8 @@ type PlacementStrategiesUpdateCall struct { } // Update: Updates an existing placement strategy. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesUpdateCall { c := &PlacementStrategiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39166,23 +28557,21 @@ func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesUpdateCall) Fields(s ...googleapi.Field) *PlacementStrategiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesUpdateCall) Context(ctx context.Context) *PlacementStrategiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39191,18 +28580,12 @@ func (c *PlacementStrategiesUpdateCall) Header() http.Header { } func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -39215,16 +28598,15 @@ func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.update" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39232,17 +28614,17 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39255,37 +28637,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy.", - // "httpMethod": "PUT", - // "id": "dfareporting.placementStrategies.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.generatetags": +} type PlacementsGeneratetagsCall struct { s *Service @@ -39296,21 +28648,23 @@ type PlacementsGeneratetagsCall struct { } // Generatetags: Generates tags for a placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Generatetags(profileId int64) *PlacementsGeneratetagsCall { c := &PlacementsGeneratetagsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// CampaignId sets the optional parameter "campaignId": Generate -// placements belonging to this campaign. This is a required field. +// CampaignId sets the optional parameter "campaignId": Generate placements +// belonging to this campaign. This is a required field. func (c *PlacementsGeneratetagsCall) CampaignId(campaignId int64) *PlacementsGeneratetagsCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// PlacementIds sets the optional parameter "placementIds": Generate -// tags for these placements. +// PlacementIds sets the optional parameter "placementIds": Generate tags for +// these placements. func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *PlacementsGeneratetagsCall { var placementIds_ []string for _, v := range placementIds { @@ -39320,11 +28674,10 @@ func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *Placem return c } -// TagFormats sets the optional parameter "tagFormats": Tag formats to -// generate for these placements. +// TagFormats sets the optional parameter "tagFormats": Tag formats to generate +// for these placements. // -// Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 -// placements. +// Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements. // // Possible values: // @@ -39353,23 +28706,21 @@ func (c *PlacementsGeneratetagsCall) TagFormats(tagFormats ...string) *Placement } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGeneratetagsCall) Fields(s ...googleapi.Field) *PlacementsGeneratetagsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGeneratetagsCall) Context(ctx context.Context) *PlacementsGeneratetagsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGeneratetagsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39378,12 +28729,7 @@ func (c *PlacementsGeneratetagsCall) Header() http.Header { } func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -39397,16 +28743,15 @@ func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.generatetags" call. -// Exactly one of *PlacementsGenerateTagsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*PlacementsGenerateTagsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39414,17 +28759,17 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsGenerateTagsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -39437,95 +28782,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Generates tags for a placement.", - // "httpMethod": "POST", - // "id": "dfareporting.placements.generatetags", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Generate placements belonging to this campaign. This is a required field.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Generate tags for these placements.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tagFormats": { - // "description": "Tag formats to generate for these placements.\n\nNote: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.", - // "enum": [ - // "PLACEMENT_TAG_CLICK_COMMANDS", - // "PLACEMENT_TAG_IFRAME_ILAYER", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4", - // "PLACEMENT_TAG_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_JAVASCRIPT", - // "PLACEMENT_TAG_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_STANDARD", - // "PLACEMENT_TAG_TRACKING", - // "PLACEMENT_TAG_TRACKING_IFRAME", - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/generatetags", - // "response": { - // "$ref": "PlacementsGenerateTagsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.get": +} type PlacementsGetCall struct { s *Service @@ -39538,6 +28795,9 @@ type PlacementsGetCall struct { } // Get: Gets one placement by ID. +// +// - id: Placement ID. +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { c := &PlacementsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39546,33 +28806,29 @@ func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGetCall) Fields(s ...googleapi.Field) *PlacementsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsGetCall) IfNoneMatch(entityTag string) *PlacementsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGetCall) Context(ctx context.Context) *PlacementsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39581,12 +28837,7 @@ func (c *PlacementsGetCall) Header() http.Header { } func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39604,16 +28855,14 @@ func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.get" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39621,17 +28870,17 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -39644,42 +28893,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) return nil, err } return ret, nil - // { - // "description": "Gets one placement by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placements.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/{id}", - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.insert": +} type PlacementsInsertCall struct { s *Service @@ -39691,6 +28905,8 @@ type PlacementsInsertCall struct { } // Insert: Inserts a new placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Insert(profileId int64, placement *Placement) *PlacementsInsertCall { c := &PlacementsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39699,23 +28915,21 @@ func (r *PlacementsService) Insert(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsInsertCall) Fields(s ...googleapi.Field) *PlacementsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsInsertCall) Context(ctx context.Context) *PlacementsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39724,18 +28938,12 @@ func (c *PlacementsInsertCall) Header() http.Header { } func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -39748,16 +28956,14 @@ func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.insert" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39765,17 +28971,17 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -39788,37 +28994,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Inserts a new placement.", - // "httpMethod": "POST", - // "id": "dfareporting.placements.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.list": +} type PlacementsListCall struct { s *Service @@ -39831,14 +29007,16 @@ type PlacementsListCall struct { // List: Retrieves a list of placements, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) List(profileId int64) *PlacementsListCall { c := &PlacementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placements that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placements that belong to these advertisers. func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -39849,8 +29027,8 @@ func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsLi } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementsListCall) Archived(archived bool) *PlacementsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c @@ -39867,13 +29045,12 @@ func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCa return c } -// Compatibilities sets the optional parameter "compatibilities": Select -// only placements that are associated with these compatibilities. -// DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop -// or on mobile devices for regular or interstitial ads respectively. -// APP and APP_INTERSTITIAL are for rendering in mobile apps. -// IN_STREAM_VIDEO refers to rendering in in-stream video ads developed -// with the VAST standard. +// Compatibilities sets the optional parameter "compatibilities": Select only +// placements that are associated with these compatibilities. DISPLAY and +// DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile +// devices for regular or interstitial ads respectively. APP and +// APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to +// rendering in in-stream video ads developed with the VAST standard. // // Possible values: // @@ -39887,9 +29064,8 @@ func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *Placeme return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placements that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placements that are associated with these content categories. func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -39899,9 +29075,8 @@ func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *Pl return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placements that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placements that are associated with these directory sites. func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -39911,8 +29086,8 @@ func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *Placem return c } -// GroupIds sets the optional parameter "groupIds": Select only -// placements that belong to these placement groups. +// GroupIds sets the optional parameter "groupIds": Select only placements that +// belong to these placement groups. func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { var groupIds_ []string for _, v := range groupIds { @@ -39922,8 +29097,8 @@ func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { return c } -// Ids sets the optional parameter "ids": Select only placements with -// these IDs. +// Ids sets the optional parameter "ids": Select only placements with these +// IDs. func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { var ids_ []string for _, v := range ids { @@ -39933,16 +29108,16 @@ func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MaxEndDate(maxEndDate string) *PlacementsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementsListCall) MaxResults(maxResults int64) *PlacementsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -39956,17 +29131,17 @@ func (c *PlacementsListCall) MaxStartDate(maxStartDate string) *PlacementsListCa return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinEndDate(minEndDate string) *PlacementsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinStartDate(minStartDate string) *PlacementsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -39979,8 +29154,8 @@ func (c *PlacementsListCall) PageToken(pageToken string) *PlacementsListCall { return c } -// PaymentSource sets the optional parameter "paymentSource": Select -// only placements with this payment source. +// PaymentSource sets the optional parameter "paymentSource": Select only +// placements with this payment source. // // Possible values: // @@ -39991,9 +29166,8 @@ func (c *PlacementsListCall) PaymentSource(paymentSource string) *PlacementsList return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placements that are associated -// with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placements that are associated with these placement strategies. func (c *PlacementsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -40019,21 +29193,21 @@ func (c *PlacementsListCall) PricingTypes(pricingTypes ...string) *PlacementsLis return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placements by name or ID. Wildcards (*) are allowed. -// For example, "placement*2015" will return placements with names like -// "placement June 2015", "placement May 2015", or simply "placements -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "placement" will match placements with name "my placement", -// "placement 2015", or simply "placement". +// SearchString sets the optional parameter "searchString": Allows searching +// for placements by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placements with names like "placement June +// 2015", "placement May 2015", or simply "placements 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "placement" will match +// placements with name "my placement", "placement 2015", or simply +// "placement". func (c *PlacementsListCall) SearchString(searchString string) *PlacementsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placements -// that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placements that +// are associated with these sites. func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { var siteIds_ []string for _, v := range siteIds { @@ -40043,8 +29217,8 @@ func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { return c } -// SizeIds sets the optional parameter "sizeIds": Select only placements -// that are associated with these sizes. +// SizeIds sets the optional parameter "sizeIds": Select only placements that +// are associated with these sizes. func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -40054,8 +29228,8 @@ func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -40066,8 +29240,7 @@ func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -40079,33 +29252,29 @@ func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsListCall) Fields(s ...googleapi.Field) *PlacementsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsListCall) IfNoneMatch(entityTag string) *PlacementsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsListCall) Context(ctx context.Context) *PlacementsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40114,12 +29283,7 @@ func (c *PlacementsListCall) Header() http.Header { } func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40136,16 +29300,15 @@ func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.list" call. -// Exactly one of *PlacementsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40153,17 +29316,17 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -40176,221 +29339,6 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placements.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placements that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placements that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibilities": { - // "description": "Select only placements that are associated with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.", - // "enum": [ - // "APP", - // "APP_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "IN_STREAM_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placements that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placements that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupIds": { - // "description": "Select only placements that belong to these placement groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placements with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "paymentSource": { - // "description": "Select only placements with this payment source.", - // "enum": [ - // "PLACEMENT_AGENCY_PAID", - // "PLACEMENT_PUBLISHER_PAID" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placements that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placements with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPM_ACTIVEVIEW", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placements with names like \"placement June 2015\", \"placement May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placement\" will match placements with name \"my placement\", \"placement 2015\", or simply \"placement\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placements that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only placements that are associated with these sizes.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "response": { - // "$ref": "PlacementsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -40398,7 +29346,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // The provided context supersedes any context provided to the Context method. func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -40414,8 +29362,6 @@ func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListRe } } -// method id "dfareporting.placements.patch": - type PlacementsPatchCall struct { s *Service profileId int64 @@ -40425,8 +29371,10 @@ type PlacementsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement. This method supports patch -// semantics. +// Patch: Updates an existing placement. This method supports patch semantics. +// +// - id: Placement ID. +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placement) *PlacementsPatchCall { c := &PlacementsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40436,23 +29384,21 @@ func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsPatchCall) Fields(s ...googleapi.Field) *PlacementsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsPatchCall) Context(ctx context.Context) *PlacementsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40461,18 +29407,12 @@ func (c *PlacementsPatchCall) Header() http.Header { } func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -40485,16 +29425,14 @@ func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.patch" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40502,17 +29440,17 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40525,45 +29463,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro return nil, err } return ret, nil - // { - // "description": "Updates an existing placement. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placements.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.update": +} type PlacementsUpdateCall struct { s *Service @@ -40575,6 +29475,8 @@ type PlacementsUpdateCall struct { } // Update: Updates an existing placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Update(profileId int64, placement *Placement) *PlacementsUpdateCall { c := &PlacementsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40583,23 +29485,21 @@ func (r *PlacementsService) Update(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsUpdateCall) Fields(s ...googleapi.Field) *PlacementsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsUpdateCall) Context(ctx context.Context) *PlacementsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40608,18 +29508,12 @@ func (c *PlacementsUpdateCall) Header() http.Header { } func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -40632,16 +29526,14 @@ func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.update" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40649,17 +29541,17 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40672,37 +29564,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Updates an existing placement.", - // "httpMethod": "PUT", - // "id": "dfareporting.placements.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.get": +} type PlatformTypesGetCall struct { s *Service @@ -40715,6 +29577,9 @@ type PlatformTypesGetCall struct { } // Get: Gets one platform type by ID. +// +// - id: Platform type ID. +// - profileId: User profile ID associated with this request. func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetCall { c := &PlatformTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40723,33 +29588,29 @@ func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesGetCall) Fields(s ...googleapi.Field) *PlatformTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesGetCall) IfNoneMatch(entityTag string) *PlatformTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesGetCall) Context(ctx context.Context) *PlatformTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40758,12 +29619,7 @@ func (c *PlatformTypesGetCall) Header() http.Header { } func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40781,16 +29637,14 @@ func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.get" call. -// Exactly one of *PlatformType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlatformType.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlatformType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40798,17 +29652,17 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformType{ ServerResponse: googleapi.ServerResponse{ @@ -40821,42 +29675,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, return nil, err } return ret, nil - // { - // "description": "Gets one platform type by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Platform type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes/{id}", - // "response": { - // "$ref": "PlatformType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.list": +} type PlatformTypesListCall struct { s *Service @@ -40868,6 +29687,8 @@ type PlatformTypesListCall struct { } // List: Retrieves a list of platform types. +// +// - profileId: User profile ID associated with this request. func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { c := &PlatformTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40875,33 +29696,29 @@ func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesListCall) Fields(s ...googleapi.Field) *PlatformTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesListCall) IfNoneMatch(entityTag string) *PlatformTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesListCall) Context(ctx context.Context) *PlatformTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40910,12 +29727,7 @@ func (c *PlatformTypesListCall) Header() http.Header { } func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40932,16 +29744,15 @@ func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.list" call. -// Exactly one of *PlatformTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlatformTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlatformTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40949,17 +29760,17 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -40972,34 +29783,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes return nil, err } return ret, nil - // { - // "description": "Retrieves a list of platform types.", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes", - // "response": { - // "$ref": "PlatformTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.get": +} type PostalCodesGetCall struct { s *Service @@ -41012,6 +29796,9 @@ type PostalCodesGetCall struct { } // Get: Gets one postal code by ID. +// +// - code: Postal code ID. +// - profileId: User profile ID associated with this request. func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCall { c := &PostalCodesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41020,33 +29807,29 @@ func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesGetCall) Fields(s ...googleapi.Field) *PostalCodesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesGetCall) IfNoneMatch(entityTag string) *PostalCodesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesGetCall) Context(ctx context.Context) *PostalCodesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41055,12 +29838,7 @@ func (c *PostalCodesGetCall) Header() http.Header { } func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41078,16 +29856,14 @@ func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "code": c.code, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.get" call. -// Exactly one of *PostalCode or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PostalCode.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PostalCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41095,17 +29871,17 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCode{ ServerResponse: googleapi.ServerResponse{ @@ -41118,41 +29894,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro return nil, err } return ret, nil - // { - // "description": "Gets one postal code by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.get", - // "parameterOrder": [ - // "profileId", - // "code" - // ], - // "parameters": { - // "code": { - // "description": "Postal code ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes/{code}", - // "response": { - // "$ref": "PostalCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.list": +} type PostalCodesListCall struct { s *Service @@ -41164,6 +29906,8 @@ type PostalCodesListCall struct { } // List: Retrieves a list of postal codes. +// +// - profileId: User profile ID associated with this request. func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { c := &PostalCodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41171,33 +29915,29 @@ func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesListCall) Fields(s ...googleapi.Field) *PostalCodesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesListCall) IfNoneMatch(entityTag string) *PostalCodesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesListCall) Context(ctx context.Context) *PostalCodesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41206,12 +29946,7 @@ func (c *PostalCodesListCall) Header() http.Header { } func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41228,16 +29963,15 @@ func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.list" call. -// Exactly one of *PostalCodesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *PostalCodesListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41245,17 +29979,17 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCodesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41268,34 +30002,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of postal codes.", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes", - // "response": { - // "$ref": "PostalCodesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.get": +} type ProjectsGetCall struct { s *Service @@ -41308,6 +30015,9 @@ type ProjectsGetCall struct { } // Get: Gets one project by ID. +// +// - id: Project ID. +// - profileId: User profile ID associated with this request. func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41316,33 +30026,29 @@ func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41351,12 +30057,7 @@ func (c *ProjectsGetCall) Header() http.Header { } func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41374,16 +30075,14 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.get" call. -// Exactly one of *Project or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Project.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Project.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41391,17 +30090,17 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Project{ ServerResponse: googleapi.ServerResponse{ @@ -41414,42 +30113,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return nil, err } return ret, nil - // { - // "description": "Gets one project by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.projects.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Project ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{id}", - // "response": { - // "$ref": "Project" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.list": +} type ProjectsListCall struct { s *Service @@ -41460,16 +30124,18 @@ type ProjectsListCall struct { header_ http.Header } -// List: Retrieves a list of projects, possibly filtered. This method -// supports paging. +// List: Retrieves a list of projects, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *ProjectsService) List(profileId int64) *ProjectsListCall { c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only projects with these advertiser IDs. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// projects with these advertiser IDs. func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -41479,8 +30145,7 @@ func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCa return c } -// Ids sets the optional parameter "ids": Select only projects with -// these IDs. +// Ids sets the optional parameter "ids": Select only projects with these IDs. func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { var ids_ []string for _, v := range ids { @@ -41490,8 +30155,8 @@ func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ProjectsListCall) MaxResults(maxResults int64) *ProjectsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -41504,21 +30169,20 @@ func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for projects by name or ID. Wildcards (*) are allowed. For -// example, "project*2015" will return projects with names like "project -// June 2015", "project April 2015", or simply "project 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "project" will -// match projects with name "my project", "project 2015", or simply -// "project". +// SearchString sets the optional parameter "searchString": Allows searching +// for projects by name or ID. Wildcards (*) are allowed. For example, +// "project*2015" will return projects with names like "project June 2015", +// "project April 2015", or simply "project 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "project" will match projects with name "my +// project", "project 2015", or simply "project". func (c *ProjectsListCall) SearchString(searchString string) *ProjectsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -41529,8 +30193,7 @@ func (c *ProjectsListCall) SortField(sortField string) *ProjectsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -41542,33 +30205,29 @@ func (c *ProjectsListCall) SortOrder(sortOrder string) *ProjectsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsListCall) Fields(s ...googleapi.Field) *ProjectsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsListCall) Context(ctx context.Context) *ProjectsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41577,12 +30236,7 @@ func (c *ProjectsListCall) Header() http.Header { } func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41599,16 +30253,15 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.list" call. -// Exactly one of *ProjectsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ProjectsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProjectsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41616,17 +30269,17 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProjectsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41639,92 +30292,6 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of projects, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.projects.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only projects with these advertiser IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only projects with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, \"project*2015\" will return projects with names like \"project June 2015\", \"project April 2015\", or simply \"project 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"project\" will match projects with name \"my project\", \"project 2015\", or simply \"project\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects", - // "response": { - // "$ref": "ProjectsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -41732,7 +30299,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // The provided context supersedes any context provided to the Context method. func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -41748,8 +30315,6 @@ func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListRespon } } -// method id "dfareporting.regions.list": - type RegionsListCall struct { s *Service profileId int64 @@ -41760,6 +30325,8 @@ type RegionsListCall struct { } // List: Retrieves a list of regions. +// +// - profileId: User profile ID associated with this request. func (r *RegionsService) List(profileId int64) *RegionsListCall { c := &RegionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41767,33 +30334,29 @@ func (r *RegionsService) List(profileId int64) *RegionsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RegionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41802,12 +30365,7 @@ func (c *RegionsListCall) Header() http.Header { } func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41824,16 +30382,15 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.regions.list" call. -// Exactly one of *RegionsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RegionsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RegionsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41841,17 +30398,17 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RegionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41864,34 +30421,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse return nil, err } return ret, nil - // { - // "description": "Retrieves a list of regions.", - // "httpMethod": "GET", - // "id": "dfareporting.regions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/regions", - // "response": { - // "$ref": "RegionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.get": +} type RemarketingListSharesGetCall struct { s *Service @@ -41904,6 +30434,9 @@ type RemarketingListSharesGetCall struct { } // Get: Gets one remarketing list share by remarketing list ID. +// +// - profileId: User profile ID associated with this request. +// - remarketingListId: Remarketing list ID. func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId int64) *RemarketingListSharesGetCall { c := &RemarketingListSharesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41912,33 +30445,29 @@ func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId in } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesGetCall) Fields(s ...googleapi.Field) *RemarketingListSharesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListSharesGetCall) IfNoneMatch(entityTag string) *RemarketingListSharesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesGetCall) Context(ctx context.Context) *RemarketingListSharesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41947,12 +30476,7 @@ func (c *RemarketingListSharesGetCall) Header() http.Header { } func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41970,16 +30494,15 @@ func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "remarketingListId": strconv.FormatInt(c.remarketingListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.get" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41987,17 +30510,17 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -42010,42 +30533,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list share by remarketing list ID.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingListShares.get", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.patch": +} type RemarketingListSharesPatchCall struct { s *Service @@ -42056,8 +30544,11 @@ type RemarketingListSharesPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list share. This method -// supports patch semantics. +// Patch: Updates an existing remarketing list share. This method supports +// patch semantics. +// +// - profileId: User profile ID associated with this request. +// - remarketingListId: Remarketing list ID. func (r *RemarketingListSharesService) Patch(profileId int64, remarketingListId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesPatchCall { c := &RemarketingListSharesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42067,23 +30558,21 @@ func (r *RemarketingListSharesService) Patch(profileId int64, remarketingListId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesPatchCall) Fields(s ...googleapi.Field) *RemarketingListSharesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesPatchCall) Context(ctx context.Context) *RemarketingListSharesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42092,18 +30581,12 @@ func (c *RemarketingListSharesPatchCall) Header() http.Header { } func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -42116,16 +30599,15 @@ func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.patch" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42133,17 +30615,17 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -42156,45 +30638,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingListShares.patch", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.update": +} type RemarketingListSharesUpdateCall struct { s *Service @@ -42206,6 +30650,8 @@ type RemarketingListSharesUpdateCall struct { } // Update: Updates an existing remarketing list share. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesUpdateCall { c := &RemarketingListSharesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42214,23 +30660,21 @@ func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistsh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesUpdateCall) Fields(s ...googleapi.Field) *RemarketingListSharesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesUpdateCall) Context(ctx context.Context) *RemarketingListSharesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42239,18 +30683,12 @@ func (c *RemarketingListSharesUpdateCall) Header() http.Header { } func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -42263,16 +30701,15 @@ func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.update" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42280,17 +30717,17 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -42303,37 +30740,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share.", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingListShares.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.get": +} type RemarketingListsGetCall struct { s *Service @@ -42346,6 +30753,9 @@ type RemarketingListsGetCall struct { } // Get: Gets one remarketing list by ID. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingListsGetCall { c := &RemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42354,33 +30764,29 @@ func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsGetCall) Fields(s ...googleapi.Field) *RemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsGetCall) IfNoneMatch(entityTag string) *RemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsGetCall) Context(ctx context.Context) *RemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42389,12 +30795,7 @@ func (c *RemarketingListsGetCall) Header() http.Header { } func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42412,16 +30813,15 @@ func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.get" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42429,17 +30829,17 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -42452,42 +30852,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists/{id}", - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.insert": +} type RemarketingListsInsertCall struct { s *Service @@ -42499,6 +30864,8 @@ type RemarketingListsInsertCall struct { } // Insert: Inserts a new remarketing list. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *RemarketingList) *RemarketingListsInsertCall { c := &RemarketingListsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42507,23 +30874,21 @@ func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsInsertCall) Fields(s ...googleapi.Field) *RemarketingListsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsInsertCall) Context(ctx context.Context) *RemarketingListsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42532,18 +30897,12 @@ func (c *RemarketingListsInsertCall) Header() http.Header { } func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -42556,16 +30915,15 @@ func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.insert" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42573,17 +30931,17 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -42596,37 +30954,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Inserts a new remarketing list.", - // "httpMethod": "POST", - // "id": "dfareporting.remarketingLists.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.list": +} type RemarketingListsListCall struct { s *Service @@ -42637,8 +30965,11 @@ type RemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of remarketing lists, possibly filtered. This -// method supports paging. +// List: Retrieves a list of remarketing lists, possibly filtered. This method +// supports paging. +// +// - advertiserId: Select only remarketing lists owned by this advertiser. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *RemarketingListsListCall { c := &RemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42646,36 +30977,35 @@ func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *Rem return c } -// Active sets the optional parameter "active": Select only active or -// only inactive remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive remarketing lists. func (c *RemarketingListsListCall) Active(active bool) *RemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Select only remarketing lists that have this -// floodlight activity ID. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Select only remarketing lists that have this floodlight activity ID. func (c *RemarketingListsListCall) FloodlightActivityId(floodlightActivityId int64) *RemarketingListsListCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *RemarketingListsListCall) MaxResults(maxResults int64) *RemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *RemarketingListsListCall) Name(name string) *RemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -42688,8 +31018,8 @@ func (c *RemarketingListsListCall) PageToken(pageToken string) *RemarketingLists return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -42700,8 +31030,7 @@ func (c *RemarketingListsListCall) SortField(sortField string) *RemarketingLists return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -42713,33 +31042,29 @@ func (c *RemarketingListsListCall) SortOrder(sortOrder string) *RemarketingLists } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsListCall) Fields(s ...googleapi.Field) *RemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsListCall) IfNoneMatch(entityTag string) *RemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsListCall) Context(ctx context.Context) *RemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42748,12 +31073,7 @@ func (c *RemarketingListsListCall) Header() http.Header { } func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42770,16 +31090,15 @@ func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.list" call. -// Exactly one of *RemarketingListsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *RemarketingListsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*RemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42787,17 +31106,17 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42810,97 +31129,6 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only remarketing lists owned by this advertiser.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "floodlightActivityId": { - // "description": "Select only remarketing lists that have this floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "response": { - // "$ref": "RemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -42908,7 +31136,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // The provided context supersedes any context provided to the Context method. func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*RemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -42924,8 +31152,6 @@ func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*Remarketin } } -// method id "dfareporting.remarketingLists.patch": - type RemarketingListsPatchCall struct { s *Service profileId int64 @@ -42935,8 +31161,11 @@ type RemarketingListsPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list. This method supports -// patch semantics. +// Patch: Updates an existing remarketing list. This method supports patch +// semantics. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketinglist *RemarketingList) *RemarketingListsPatchCall { c := &RemarketingListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42946,23 +31175,21 @@ func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketingli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsPatchCall) Fields(s ...googleapi.Field) *RemarketingListsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsPatchCall) Context(ctx context.Context) *RemarketingListsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42971,18 +31198,12 @@ func (c *RemarketingListsPatchCall) Header() http.Header { } func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -42995,16 +31216,15 @@ func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.patch" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43012,17 +31232,17 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43035,45 +31255,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingLists.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.update": +} type RemarketingListsUpdateCall struct { s *Service @@ -43085,6 +31267,8 @@ type RemarketingListsUpdateCall struct { } // Update: Updates an existing remarketing list. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Update(profileId int64, remarketinglist *RemarketingList) *RemarketingListsUpdateCall { c := &RemarketingListsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43093,23 +31277,21 @@ func (r *RemarketingListsService) Update(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsUpdateCall) Fields(s ...googleapi.Field) *RemarketingListsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsUpdateCall) Context(ctx context.Context) *RemarketingListsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43118,18 +31300,12 @@ func (c *RemarketingListsUpdateCall) Header() http.Header { } func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -43142,16 +31318,15 @@ func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.update" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43159,17 +31334,17 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43182,37 +31357,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list.", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingLists.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.reports.delete": +} type ReportsDeleteCall struct { s *Service @@ -43224,6 +31369,9 @@ type ReportsDeleteCall struct { } // Delete: Deletes a report by its ID. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteCall { c := &ReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43232,23 +31380,21 @@ func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsDeleteCall) Fields(s ...googleapi.Field) *ReportsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsDeleteCall) Context(ctx context.Context) *ReportsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43257,12 +31403,7 @@ func (c *ReportsDeleteCall) Header() http.Header { } func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -43277,7 +31418,7 @@ func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.delete" call. @@ -43289,42 +31430,10 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a report by its ID.", - // "httpMethod": "DELETE", - // "id": "dfareporting.reports.delete", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.get": +} type ReportsGetCall struct { s *Service @@ -43337,6 +31446,9 @@ type ReportsGetCall struct { } // Get: Retrieves a report by its ID. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { c := &ReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43345,33 +31457,29 @@ func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsGetCall) Fields(s ...googleapi.Field) *ReportsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsGetCall) IfNoneMatch(entityTag string) *ReportsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsGetCall) Context(ctx context.Context) *ReportsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43380,12 +31488,7 @@ func (c *ReportsGetCall) Header() http.Header { } func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43403,16 +31506,14 @@ func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.get" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43420,17 +31521,17 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -43443,42 +31544,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report by its ID.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.get", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.insert": +} type ReportsInsertCall struct { s *Service @@ -43490,6 +31556,8 @@ type ReportsInsertCall struct { } // Insert: Creates a report. +// +// - profileId: The DFA user profile ID. func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertCall { c := &ReportsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43498,23 +31566,21 @@ func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsInsertCall) Fields(s ...googleapi.Field) *ReportsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsInsertCall) Context(ctx context.Context) *ReportsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43523,18 +31589,12 @@ func (c *ReportsInsertCall) Header() http.Header { } func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports") @@ -43547,16 +31607,14 @@ func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.insert" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43564,17 +31622,17 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -43587,37 +31645,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Creates a report.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.list": +} type ReportsListCall struct { s *Service @@ -43629,14 +31657,16 @@ type ReportsListCall struct { } // List: Retrieves list of reports. +// +// - profileId: The DFA user profile ID. func (r *ReportsService) List(profileId int64) *ReportsListCall { c := &ReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsListCall) MaxResults(maxResults int64) *ReportsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -43649,8 +31679,8 @@ func (c *ReportsListCall) PageToken(pageToken string) *ReportsListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -43661,8 +31691,8 @@ func (c *ReportsListCall) Scope(scope string) *ReportsListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -43674,8 +31704,7 @@ func (c *ReportsListCall) SortField(sortField string) *ReportsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -43687,33 +31716,29 @@ func (c *ReportsListCall) SortOrder(sortOrder string) *ReportsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsListCall) Fields(s ...googleapi.Field) *ReportsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsListCall) IfNoneMatch(entityTag string) *ReportsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsListCall) Context(ctx context.Context) *ReportsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43722,12 +31747,7 @@ func (c *ReportsListCall) Header() http.Header { } func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43744,16 +31764,14 @@ func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.list" call. -// Exactly one of *ReportList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ReportList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReportList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43761,17 +31779,17 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ReportList{ ServerResponse: googleapi.ServerResponse{ @@ -43784,89 +31802,6 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) return nil, err } return ret, nil - // { - // "description": "Retrieves list of reports.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE" - // ], - // "enumDescriptions": [ - // "All reports in account.", - // "My reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME", - // "NAME" - // ], - // "enumDescriptions": [ - // "Sort by report ID.", - // "Sort by 'lastModifiedTime' field.", - // "Sort by name of reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "response": { - // "$ref": "ReportList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -43874,7 +31809,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // The provided context supersedes any context provided to the Context method. func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -43890,8 +31825,6 @@ func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) } } -// method id "dfareporting.reports.patch": - type ReportsPatchCall struct { s *Service profileId int64 @@ -43903,6 +31836,9 @@ type ReportsPatchCall struct { } // Patch: Updates a report. This method supports patch semantics. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) *ReportsPatchCall { c := &ReportsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43912,23 +31848,21 @@ func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsPatchCall) Fields(s ...googleapi.Field) *ReportsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsPatchCall) Context(ctx context.Context) *ReportsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43937,18 +31871,12 @@ func (c *ReportsPatchCall) Header() http.Header { } func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -43962,16 +31890,14 @@ func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.patch" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43979,17 +31905,17 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44002,45 +31928,7 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates a report. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.reports.patch", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.run": +} type ReportsRunCall struct { s *Service @@ -44052,6 +31940,9 @@ type ReportsRunCall struct { } // Run: Runs a report. +// +// - profileId: The DFA profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { c := &ReportsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44059,31 +31950,29 @@ func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { return c } -// Synchronous sets the optional parameter "synchronous": If set and -// true, tries to run the report synchronously. +// Synchronous sets the optional parameter "synchronous": If set and true, +// tries to run the report synchronously. func (c *ReportsRunCall) Synchronous(synchronous bool) *ReportsRunCall { c.urlParams_.Set("synchronous", fmt.Sprint(synchronous)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsRunCall) Fields(s ...googleapi.Field) *ReportsRunCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsRunCall) Context(ctx context.Context) *ReportsRunCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsRunCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44092,12 +31981,7 @@ func (c *ReportsRunCall) Header() http.Header { } func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -44112,16 +31996,14 @@ func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.run" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44129,17 +32011,17 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -44152,48 +32034,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Runs a report.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.run", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "synchronous": { - // "default": "false", - // "description": "If set and true, tries to run the report synchronously.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/run", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.update": +} type ReportsUpdateCall struct { s *Service @@ -44206,6 +32047,9 @@ type ReportsUpdateCall struct { } // Update: Updates a report. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) *ReportsUpdateCall { c := &ReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44215,23 +32059,21 @@ func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsUpdateCall) Fields(s ...googleapi.Field) *ReportsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsUpdateCall) Context(ctx context.Context) *ReportsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44240,18 +32082,12 @@ func (c *ReportsUpdateCall) Header() http.Header { } func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -44265,16 +32101,14 @@ func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.update" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44282,17 +32116,17 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44305,45 +32139,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates a report.", - // "httpMethod": "PUT", - // "id": "dfareporting.reports.update", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.compatibleFields.query": +} type ReportsCompatibleFieldsQueryCall struct { s *Service @@ -44355,8 +32151,10 @@ type ReportsCompatibleFieldsQueryCall struct { } // Query: Returns the fields that are compatible to be selected in the -// respective sections of a report criteria, given the fields already -// selected in the input report and user permissions. +// respective sections of a report criteria, given the fields already selected +// in the input report and user permissions. +// +// - profileId: The DFA user profile ID. func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) *ReportsCompatibleFieldsQueryCall { c := &ReportsCompatibleFieldsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44365,23 +32163,21 @@ func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsCompatibleFieldsQueryCall) Fields(s ...googleapi.Field) *ReportsCompatibleFieldsQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsCompatibleFieldsQueryCall) Context(ctx context.Context) *ReportsCompatibleFieldsQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44390,18 +32186,12 @@ func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { } func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/compatiblefields/query") @@ -44414,16 +32204,15 @@ func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.compatibleFields.query" call. -// Exactly one of *CompatibleFields or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CompatibleFields.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CompatibleFields.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*CompatibleFields, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44431,17 +32220,17 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CompatibleFields{ ServerResponse: googleapi.ServerResponse{ @@ -44454,37 +32243,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co return nil, err } return ret, nil - // { - // "description": "Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.compatibleFields.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/compatiblefields/query", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "CompatibleFields" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.files.get": +} type ReportsFilesGetCall struct { s *Service @@ -44498,6 +32257,10 @@ type ReportsFilesGetCall struct { } // Get: Retrieves a report file. This method supports media download. +// +// - fileId: The ID of the report file. +// - profileId: The DFA profile ID. +// - reportId: The ID of the report. func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) *ReportsFilesGetCall { c := &ReportsFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44507,33 +32270,29 @@ func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesGetCall) Fields(s ...googleapi.Field) *ReportsFilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesGetCall) IfNoneMatch(entityTag string) *ReportsFilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ReportsFilesGetCall) Context(ctx context.Context) *ReportsFilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44542,12 +32301,7 @@ func (c *ReportsFilesGetCall) Header() http.Header { } func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44566,7 +32320,7 @@ func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -44578,20 +32332,18 @@ func (c *ReportsFilesGetCall) Download(opts ...googleapi.CallOption) (*http.Resp if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.reports.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44599,17 +32351,17 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -44622,51 +32374,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file. This method supports media download.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.get", - // "parameterOrder": [ - // "profileId", - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.reports.files.list": +} type ReportsFilesListCall struct { s *Service @@ -44679,6 +32387,9 @@ type ReportsFilesListCall struct { } // List: Lists files for a report. +// +// - profileId: The DFA profile ID. +// - reportId: The ID of the parent report. func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFilesListCall { c := &ReportsFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44686,8 +32397,8 @@ func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFile return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsFilesListCall) MaxResults(maxResults int64) *ReportsFilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -44700,8 +32411,8 @@ func (c *ReportsFilesListCall) PageToken(pageToken string) *ReportsFilesListCall return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -44712,8 +32423,7 @@ func (c *ReportsFilesListCall) SortField(sortField string) *ReportsFilesListCall return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -44725,33 +32435,29 @@ func (c *ReportsFilesListCall) SortOrder(sortOrder string) *ReportsFilesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesListCall) Fields(s ...googleapi.Field) *ReportsFilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesListCall) IfNoneMatch(entityTag string) *ReportsFilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsFilesListCall) Context(ctx context.Context) *ReportsFilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44760,12 +32466,7 @@ func (c *ReportsFilesListCall) Header() http.Header { } func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44783,16 +32484,14 @@ func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44800,17 +32499,17 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -44823,81 +32522,6 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro return nil, err } return ret, nil - // { - // "description": "Lists files for a report.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.list", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the parent report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -44905,7 +32529,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // The provided context supersedes any context provided to the Context method. func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -44921,8 +32545,6 @@ func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) erro } } -// method id "dfareporting.sites.get": - type SitesGetCall struct { s *Service profileId int64 @@ -44934,6 +32556,9 @@ type SitesGetCall struct { } // Get: Gets one site by ID. +// +// - id: Site ID. +// - profileId: User profile ID associated with this request. func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { c := &SitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44942,33 +32567,29 @@ func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesGetCall) Context(ctx context.Context) *SitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44977,12 +32598,7 @@ func (c *SitesGetCall) Header() http.Header { } func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45000,16 +32616,14 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.get" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45017,17 +32631,17 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -45040,42 +32654,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Gets one site by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.sites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites/{id}", - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.insert": +} type SitesInsertCall struct { s *Service @@ -45087,6 +32666,8 @@ type SitesInsertCall struct { } // Insert: Inserts a new site. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { c := &SitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45095,23 +32676,21 @@ func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesInsertCall) Fields(s ...googleapi.Field) *SitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesInsertCall) Context(ctx context.Context) *SitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45120,18 +32699,12 @@ func (c *SitesInsertCall) Header() http.Header { } func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -45144,16 +32717,14 @@ func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.insert" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45161,17 +32732,17 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -45184,37 +32755,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new site.", - // "httpMethod": "POST", - // "id": "dfareporting.sites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.list": +} type SitesListCall struct { s *Service @@ -45225,8 +32766,10 @@ type SitesListCall struct { header_ http.Header } -// List: Retrieves a list of sites, possibly filtered. This method -// supports paging. +// List: Retrieves a list of sites, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) List(profileId int64) *SitesListCall { c := &SitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45234,45 +32777,44 @@ func (r *SitesService) List(profileId int64) *SitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only sites that accept -// publisher paid placements. +// "acceptsPublisherPaidPlacements": Select only sites that accept publisher +// paid placements. func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// AdWordsSite sets the optional parameter "adWordsSite": Select only -// AdWords sites. +// AdWordsSite sets the optional parameter "adWordsSite": Select only AdWords +// sites. func (c *SitesListCall) AdWordsSite(adWordsSite bool) *SitesListCall { c.urlParams_.Set("adWordsSite", fmt.Sprint(adWordsSite)) return c } -// Approved sets the optional parameter "approved": Select only approved -// sites. +// Approved sets the optional parameter "approved": Select only approved sites. func (c *SitesListCall) Approved(approved bool) *SitesListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// sites with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only sites +// with these campaign IDs. func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -45282,8 +32824,8 @@ func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only sites with these directory site IDs. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// sites with these directory site IDs. func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -45293,8 +32835,7 @@ func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCa return c } -// Ids sets the optional parameter "ids": Select only sites with these -// IDs. +// Ids sets the optional parameter "ids": Select only sites with these IDs. func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { var ids_ []string for _, v := range ids { @@ -45304,8 +32845,8 @@ func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SitesListCall) MaxResults(maxResults int64) *SitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -45318,20 +32859,20 @@ func (c *SitesListCall) PageToken(pageToken string) *SitesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or keyName. Wildcards (*) are -// allowed. For example, "site*2015" will return objects with names like -// "site June 2015", "site April 2015", or simply "site 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "site" will -// match objects with name "my site", "site 2015", or simply "site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or keyName. Wildcards (*) are allowed. For example, +// "site*2015" will return objects with names like "site June 2015", "site +// April 2015", or simply "site 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "site" will match objects with name "my site", "site 2015", +// or simply "site". func (c *SitesListCall) SearchString(searchString string) *SitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -45342,8 +32883,7 @@ func (c *SitesListCall) SortField(sortField string) *SitesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -45354,48 +32894,44 @@ func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// sites with this subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only sites +// with this subaccount ID. func (c *SitesListCall) SubaccountId(subaccountId int64) *SitesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } -// UnmappedSite sets the optional parameter "unmappedSite": Select only -// sites that have not been mapped to a directory site. +// UnmappedSite sets the optional parameter "unmappedSite": Select only sites +// that have not been mapped to a directory site. func (c *SitesListCall) UnmappedSite(unmappedSite bool) *SitesListCall { c.urlParams_.Set("unmappedSite", fmt.Sprint(unmappedSite)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesListCall) Fields(s ...googleapi.Field) *SitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesListCall) IfNoneMatch(entityTag string) *SitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesListCall) Context(ctx context.Context) *SitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45404,12 +32940,7 @@ func (c *SitesListCall) Header() http.Header { } func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45426,16 +32957,15 @@ func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.list" call. -// Exactly one of *SitesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SitesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SitesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45443,17 +32973,17 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -45466,135 +32996,6 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.sites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only sites that accept publisher paid placements.", - // "location": "query", - // "type": "boolean" - // }, - // "adWordsSite": { - // "description": "Select only AdWords sites.", - // "location": "query", - // "type": "boolean" - // }, - // "approved": { - // "description": "Select only approved sites.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only sites with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only sites with these directory site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, \"site*2015\" will return objects with names like \"site June 2015\", \"site April 2015\", or simply \"site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"site\" will match objects with name \"my site\", \"site 2015\", or simply \"site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only sites with this subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "unmappedSite": { - // "description": "Select only sites that have not been mapped to a directory site.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "response": { - // "$ref": "SitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -45602,7 +33003,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // The provided context supersedes any context provided to the Context method. func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -45618,8 +33019,6 @@ func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) er } } -// method id "dfareporting.sites.patch": - type SitesPatchCall struct { s *Service profileId int64 @@ -45629,8 +33028,10 @@ type SitesPatchCall struct { header_ http.Header } -// Patch: Updates an existing site. This method supports patch -// semantics. +// Patch: Updates an existing site. This method supports patch semantics. +// +// - id: Site ID. +// - profileId: User profile ID associated with this request. func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchCall { c := &SitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45640,23 +33041,21 @@ func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesPatchCall) Fields(s ...googleapi.Field) *SitesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesPatchCall) Context(ctx context.Context) *SitesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45665,18 +33064,12 @@ func (c *SitesPatchCall) Header() http.Header { } func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -45689,16 +33082,14 @@ func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.patch" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45706,17 +33097,17 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -45729,45 +33120,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.sites.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.update": +} type SitesUpdateCall struct { s *Service @@ -45779,6 +33132,8 @@ type SitesUpdateCall struct { } // Update: Updates an existing site. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { c := &SitesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45787,23 +33142,21 @@ func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesUpdateCall) Fields(s ...googleapi.Field) *SitesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesUpdateCall) Context(ctx context.Context) *SitesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45812,18 +33165,12 @@ func (c *SitesUpdateCall) Header() http.Header { } func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -45836,16 +33183,14 @@ func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.update" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45853,17 +33198,17 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -45876,37 +33221,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site.", - // "httpMethod": "PUT", - // "id": "dfareporting.sites.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.get": +} type SizesGetCall struct { s *Service @@ -45919,6 +33234,9 @@ type SizesGetCall struct { } // Get: Gets one size by ID. +// +// - id: Size ID. +// - profileId: User profile ID associated with this request. func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { c := &SizesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45927,33 +33245,29 @@ func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesGetCall) Fields(s ...googleapi.Field) *SizesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesGetCall) IfNoneMatch(entityTag string) *SizesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesGetCall) Context(ctx context.Context) *SizesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45962,12 +33276,7 @@ func (c *SizesGetCall) Header() http.Header { } func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45985,16 +33294,14 @@ func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.get" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46002,17 +33309,17 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -46025,42 +33332,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Gets one size by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Size ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes/{id}", - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.insert": +} type SizesInsertCall struct { s *Service @@ -46072,6 +33344,8 @@ type SizesInsertCall struct { } // Insert: Inserts a new size. +// +// - profileId: User profile ID associated with this request. func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { c := &SizesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46080,23 +33354,21 @@ func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesInsertCall) Fields(s ...googleapi.Field) *SizesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesInsertCall) Context(ctx context.Context) *SizesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46105,18 +33377,12 @@ func (c *SizesInsertCall) Header() http.Header { } func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.size) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes") @@ -46129,16 +33395,14 @@ func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.insert" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46146,17 +33410,17 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -46169,37 +33433,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new size.", - // "httpMethod": "POST", - // "id": "dfareporting.sizes.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "request": { - // "$ref": "Size" - // }, - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.list": +} type SizesListCall struct { s *Service @@ -46211,28 +33445,29 @@ type SizesListCall struct { } // List: Retrieves a list of sizes, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *SizesService) List(profileId int64) *SizesListCall { c := &SizesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Height sets the optional parameter "height": Select only sizes with -// this height. +// Height sets the optional parameter "height": Select only sizes with this +// height. func (c *SizesListCall) Height(height int64) *SizesListCall { c.urlParams_.Set("height", fmt.Sprint(height)) return c } -// IabStandard sets the optional parameter "iabStandard": Select only -// IAB standard sizes. +// IabStandard sets the optional parameter "iabStandard": Select only IAB +// standard sizes. func (c *SizesListCall) IabStandard(iabStandard bool) *SizesListCall { c.urlParams_.Set("iabStandard", fmt.Sprint(iabStandard)) return c } -// Ids sets the optional parameter "ids": Select only sizes with these -// IDs. +// Ids sets the optional parameter "ids": Select only sizes with these IDs. func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { var ids_ []string for _, v := range ids { @@ -46242,41 +33477,37 @@ func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { return c } -// Width sets the optional parameter "width": Select only sizes with -// this width. +// Width sets the optional parameter "width": Select only sizes with this +// width. func (c *SizesListCall) Width(width int64) *SizesListCall { c.urlParams_.Set("width", fmt.Sprint(width)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesListCall) Fields(s ...googleapi.Field) *SizesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesListCall) IfNoneMatch(entityTag string) *SizesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesListCall) Context(ctx context.Context) *SizesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46285,12 +33516,7 @@ func (c *SizesListCall) Header() http.Header { } func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46307,16 +33533,15 @@ func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.list" call. -// Exactly one of *SizesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SizesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SizesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46324,17 +33549,17 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SizesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -46347,62 +33572,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sizes, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "height": { - // "description": "Select only sizes with this height.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // }, - // "iabStandard": { - // "description": "Select only IAB standard sizes.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only sizes with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "width": { - // "description": "Select only sizes with this width.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "response": { - // "$ref": "SizesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.get": +} type SubaccountsGetCall struct { s *Service @@ -46415,6 +33585,9 @@ type SubaccountsGetCall struct { } // Get: Gets one subaccount by ID. +// +// - id: Subaccount ID. +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall { c := &SubaccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46423,33 +33596,29 @@ func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsGetCall) Fields(s ...googleapi.Field) *SubaccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsGetCall) IfNoneMatch(entityTag string) *SubaccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsGetCall) Context(ctx context.Context) *SubaccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46458,12 +33627,7 @@ func (c *SubaccountsGetCall) Header() http.Header { } func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46481,16 +33645,14 @@ func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.get" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46498,17 +33660,17 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -46521,42 +33683,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro return nil, err } return ret, nil - // { - // "description": "Gets one subaccount by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts/{id}", - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.insert": +} type SubaccountsInsertCall struct { s *Service @@ -46568,6 +33695,8 @@ type SubaccountsInsertCall struct { } // Insert: Inserts a new subaccount. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *SubaccountsInsertCall { c := &SubaccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46576,23 +33705,21 @@ func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsInsertCall) Fields(s ...googleapi.Field) *SubaccountsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsInsertCall) Context(ctx context.Context) *SubaccountsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46601,18 +33728,12 @@ func (c *SubaccountsInsertCall) Header() http.Header { } func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -46625,16 +33746,14 @@ func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.insert" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46642,17 +33761,17 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -46665,37 +33784,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Inserts a new subaccount.", - // "httpMethod": "POST", - // "id": "dfareporting.subaccounts.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.list": +} type SubaccountsListCall struct { s *Service @@ -46706,16 +33795,18 @@ type SubaccountsListCall struct { header_ http.Header } -// List: Gets a list of subaccounts, possibly filtered. This method -// supports paging. +// List: Gets a list of subaccounts, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall { c := &SubaccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only subaccounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only subaccounts with these +// IDs. func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { var ids_ []string for _, v := range ids { @@ -46725,8 +33816,8 @@ func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SubaccountsListCall) MaxResults(maxResults int64) *SubaccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -46739,21 +33830,21 @@ func (c *SubaccountsListCall) PageToken(pageToken string) *SubaccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "subaccount*2015" will return objects with names like -// "subaccount June 2015", "subaccount April 2015", or simply -// "subaccount 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "subaccount" will match objects with name "my subaccount", -// "subaccount 2015", or simply "subaccount". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "subaccount*2015" will return objects with names like "subaccount June +// 2015", "subaccount April 2015", or simply "subaccount 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "subaccount" will match +// objects with name "my subaccount", "subaccount 2015", or simply +// "subaccount". func (c *SubaccountsListCall) SearchString(searchString string) *SubaccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -46764,8 +33855,7 @@ func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -46777,33 +33867,29 @@ func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsListCall) Fields(s ...googleapi.Field) *SubaccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsListCall) IfNoneMatch(entityTag string) *SubaccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsListCall) Context(ctx context.Context) *SubaccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46812,12 +33898,7 @@ func (c *SubaccountsListCall) Header() http.Header { } func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46834,16 +33915,15 @@ func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.list" call. -// Exactly one of *SubaccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *SubaccountsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46851,17 +33931,17 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SubaccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -46874,85 +33954,6 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList return nil, err } return ret, nil - // { - // "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only subaccounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"subaccount*2015\" will return objects with names like \"subaccount June 2015\", \"subaccount April 2015\", or simply \"subaccount 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"subaccount\" will match objects with name \"my subaccount\", \"subaccount 2015\", or simply \"subaccount\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "response": { - // "$ref": "SubaccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -46960,7 +33961,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // The provided context supersedes any context provided to the Context method. func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -46976,8 +33977,6 @@ func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsList } } -// method id "dfareporting.subaccounts.patch": - type SubaccountsPatchCall struct { s *Service profileId int64 @@ -46987,8 +33986,10 @@ type SubaccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing subaccount. This method supports patch -// semantics. +// Patch: Updates an existing subaccount. This method supports patch semantics. +// +// - id: Subaccount ID. +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subaccount) *SubaccountsPatchCall { c := &SubaccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46998,23 +33999,21 @@ func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subacc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsPatchCall) Fields(s ...googleapi.Field) *SubaccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsPatchCall) Context(ctx context.Context) *SubaccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47023,18 +34022,12 @@ func (c *SubaccountsPatchCall) Header() http.Header { } func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -47047,16 +34040,14 @@ func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.patch" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47064,17 +34055,17 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47087,45 +34078,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.subaccounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.update": +} type SubaccountsUpdateCall struct { s *Service @@ -47137,6 +34090,8 @@ type SubaccountsUpdateCall struct { } // Update: Updates an existing subaccount. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *SubaccountsUpdateCall { c := &SubaccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47145,23 +34100,21 @@ func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsUpdateCall) Fields(s ...googleapi.Field) *SubaccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsUpdateCall) Context(ctx context.Context) *SubaccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47170,18 +34123,12 @@ func (c *SubaccountsUpdateCall) Header() http.Header { } func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -47194,16 +34141,14 @@ func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.update" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47211,17 +34156,17 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47234,37 +34179,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount.", - // "httpMethod": "PUT", - // "id": "dfareporting.subaccounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.get": +} type TargetableRemarketingListsGetCall struct { s *Service @@ -47277,6 +34192,9 @@ type TargetableRemarketingListsGetCall struct { } // Get: Gets one remarketing list by ID. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *TargetableRemarketingListsGetCall { c := &TargetableRemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47285,33 +34203,29 @@ func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *Targ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsGetCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsGetCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsGetCall) Context(ctx context.Context) *TargetableRemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47320,12 +34234,7 @@ func (c *TargetableRemarketingListsGetCall) Header() http.Header { } func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47343,16 +34252,15 @@ func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Respons "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.get" call. -// Exactly one of *TargetableRemarketingList or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TargetableRemarketingList.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TargetableRemarketingList.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47360,17 +34268,17 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -47383,42 +34291,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - // "response": { - // "$ref": "TargetableRemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.list": +} type TargetableRemarketingListsListCall struct { s *Service @@ -47429,8 +34302,12 @@ type TargetableRemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of targetable remarketing lists, possibly -// filtered. This method supports paging. +// List: Retrieves a list of targetable remarketing lists, possibly filtered. +// This method supports paging. +// +// - advertiserId: Select only targetable remarketing lists targetable by these +// advertisers. +// - profileId: User profile ID associated with this request. func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId int64) *TargetableRemarketingListsListCall { c := &TargetableRemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47438,28 +34315,28 @@ func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId i return c } -// Active sets the optional parameter "active": Select only active or -// only inactive targetable remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive targetable remarketing lists. func (c *TargetableRemarketingListsListCall) Active(active bool) *TargetableRemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetableRemarketingListsListCall) MaxResults(maxResults int64) *TargetableRemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *TargetableRemarketingListsListCall) Name(name string) *TargetableRemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -47472,8 +34349,8 @@ func (c *TargetableRemarketingListsListCall) PageToken(pageToken string) *Target return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -47484,8 +34361,7 @@ func (c *TargetableRemarketingListsListCall) SortField(sortField string) *Target return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -47497,33 +34373,29 @@ func (c *TargetableRemarketingListsListCall) SortOrder(sortOrder string) *Target } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsListCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsListCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsListCall) Context(ctx context.Context) *TargetableRemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47532,12 +34404,7 @@ func (c *TargetableRemarketingListsListCall) Header() http.Header { } func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47554,17 +34421,15 @@ func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.list" call. -// Exactly one of *TargetableRemarketingListsListResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47572,17 +34437,17 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -47595,91 +34460,6 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive targetable remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only targetable remarketing lists targetable by these advertisers.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists", - // "response": { - // "$ref": "TargetableRemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -47687,7 +34467,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(*TargetableRemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -47703,8 +34483,6 @@ func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(* } } -// method id "dfareporting.targetingTemplates.get": - type TargetingTemplatesGetCall struct { s *Service profileId int64 @@ -47716,6 +34494,9 @@ type TargetingTemplatesGetCall struct { } // Get: Gets one targeting template by ID. +// +// - id: Targeting template ID. +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTemplatesGetCall { c := &TargetingTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47724,33 +34505,29 @@ func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTem } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesGetCall) Fields(s ...googleapi.Field) *TargetingTemplatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesGetCall) IfNoneMatch(entityTag string) *TargetingTemplatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesGetCall) Context(ctx context.Context) *TargetingTemplatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47759,12 +34536,7 @@ func (c *TargetingTemplatesGetCall) Header() http.Header { } func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47782,16 +34554,15 @@ func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.get" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47799,17 +34570,17 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -47822,42 +34593,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting return nil, err } return ret, nil - // { - // "description": "Gets one targeting template by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates/{id}", - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.insert": +} type TargetingTemplatesInsertCall struct { s *Service @@ -47869,6 +34605,8 @@ type TargetingTemplatesInsertCall struct { } // Insert: Inserts a new targeting template. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesInsertCall { c := &TargetingTemplatesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47877,23 +34615,21 @@ func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesInsertCall) Fields(s ...googleapi.Field) *TargetingTemplatesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesInsertCall) Context(ctx context.Context) *TargetingTemplatesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47902,18 +34638,12 @@ func (c *TargetingTemplatesInsertCall) Header() http.Header { } func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -47926,16 +34656,15 @@ func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.insert" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47943,17 +34672,17 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -47966,37 +34695,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Inserts a new targeting template.", - // "httpMethod": "POST", - // "id": "dfareporting.targetingTemplates.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.list": +} type TargetingTemplatesListCall struct { s *Service @@ -48007,8 +34706,10 @@ type TargetingTemplatesListCall struct { header_ http.Header } -// List: Retrieves a list of targeting templates, optionally filtered. -// This method supports paging. +// List: Retrieves a list of targeting templates, optionally filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) List(profileId int64) *TargetingTemplatesListCall { c := &TargetingTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48022,8 +34723,8 @@ func (c *TargetingTemplatesListCall) AdvertiserId(advertiserId int64) *Targeting return c } -// Ids sets the optional parameter "ids": Select only targeting -// templates with these IDs. +// Ids sets the optional parameter "ids": Select only targeting templates with +// these IDs. func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCall { var ids_ []string for _, v := range ids { @@ -48033,8 +34734,8 @@ func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCa return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetingTemplatesListCall) MaxResults(maxResults int64) *TargetingTemplatesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -48047,21 +34748,20 @@ func (c *TargetingTemplatesListCall) PageToken(pageToken string) *TargetingTempl return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "template*2015" will return objects with names like -// "template June 2015", "template April 2015", or simply "template -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "template" will match objects with name "my template", "template -// 2015", or simply "template". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "template*2015" will return objects with names like "template June 2015", +// "template April 2015", or simply "template 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "template" will match objects with name "my +// template", "template 2015", or simply "template". func (c *TargetingTemplatesListCall) SearchString(searchString string) *TargetingTemplatesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -48072,8 +34772,7 @@ func (c *TargetingTemplatesListCall) SortField(sortField string) *TargetingTempl return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -48085,33 +34784,29 @@ func (c *TargetingTemplatesListCall) SortOrder(sortOrder string) *TargetingTempl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesListCall) Fields(s ...googleapi.Field) *TargetingTemplatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesListCall) IfNoneMatch(entityTag string) *TargetingTemplatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesListCall) Context(ctx context.Context) *TargetingTemplatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48120,12 +34815,7 @@ func (c *TargetingTemplatesListCall) Header() http.Header { } func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48142,16 +34832,15 @@ func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.list" call. -// Exactly one of *TargetingTemplatesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *TargetingTemplatesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplatesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*TargetingTemplatesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48159,17 +34848,17 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplatesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -48182,91 +34871,6 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only targeting templates with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only targeting templates with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"template*2015\" will return objects with names like \"template June 2015\", \"template April 2015\", or simply \"template 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"template\" will match objects with name \"my template\", \"template 2015\", or simply \"template\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "response": { - // "$ref": "TargetingTemplatesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -48274,7 +34878,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // The provided context supersedes any context provided to the Context method. func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*TargetingTemplatesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -48290,8 +34894,6 @@ func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*Targetin } } -// method id "dfareporting.targetingTemplates.patch": - type TargetingTemplatesPatchCall struct { s *Service profileId int64 @@ -48301,8 +34903,11 @@ type TargetingTemplatesPatchCall struct { header_ http.Header } -// Patch: Updates an existing targeting template. This method supports -// patch semantics. +// Patch: Updates an existing targeting template. This method supports patch +// semantics. +// +// - id: Targeting template ID. +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesPatchCall { c := &TargetingTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48312,23 +34917,21 @@ func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingte } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesPatchCall) Fields(s ...googleapi.Field) *TargetingTemplatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesPatchCall) Context(ctx context.Context) *TargetingTemplatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48337,18 +34940,12 @@ func (c *TargetingTemplatesPatchCall) Header() http.Header { } func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -48361,16 +34958,15 @@ func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.patch" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48378,17 +34974,17 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48401,45 +34997,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.targetingTemplates.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.update": +} type TargetingTemplatesUpdateCall struct { s *Service @@ -48451,6 +35009,8 @@ type TargetingTemplatesUpdateCall struct { } // Update: Updates an existing targeting template. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesUpdateCall { c := &TargetingTemplatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48459,23 +35019,21 @@ func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesUpdateCall) Fields(s ...googleapi.Field) *TargetingTemplatesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesUpdateCall) Context(ctx context.Context) *TargetingTemplatesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48484,18 +35042,12 @@ func (c *TargetingTemplatesUpdateCall) Header() http.Header { } func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -48508,16 +35060,15 @@ func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.update" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48525,17 +35076,17 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48548,37 +35099,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template.", - // "httpMethod": "PUT", - // "id": "dfareporting.targetingTemplates.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.get": +} type UserProfilesGetCall struct { s *Service @@ -48590,6 +35111,8 @@ type UserProfilesGetCall struct { } // Get: Gets one user profile by ID. +// +// - profileId: The user profile ID. func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { c := &UserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48597,33 +35120,29 @@ func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesGetCall) Fields(s ...googleapi.Field) *UserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesGetCall) IfNoneMatch(entityTag string) *UserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesGetCall) Context(ctx context.Context) *UserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48632,12 +35151,7 @@ func (c *UserProfilesGetCall) Header() http.Header { } func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48654,16 +35168,14 @@ func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.get" call. -// Exactly one of *UserProfile or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfile.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfile.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48671,17 +35183,17 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -48694,35 +35206,7 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er return nil, err } return ret, nil - // { - // "description": "Gets one user profile by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.get", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}", - // "response": { - // "$ref": "UserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.list": +} type UserProfilesListCall struct { s *Service @@ -48739,33 +35223,29 @@ func (r *UserProfilesService) List() *UserProfilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesListCall) Fields(s ...googleapi.Field) *UserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesListCall) IfNoneMatch(entityTag string) *UserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesListCall) Context(ctx context.Context) *UserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48774,12 +35254,7 @@ func (c *UserProfilesListCall) Header() http.Header { } func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48793,16 +35268,15 @@ func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.list" call. -// Exactly one of *UserProfileList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfileList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfileList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48810,17 +35284,17 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfileList{ ServerResponse: googleapi.ServerResponse{ @@ -48833,24 +35307,8 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis return nil, err } return ret, nil - // { - // "description": "Retrieves list of user profiles for a user.", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.list", - // "path": "userprofiles", - // "response": { - // "$ref": "UserProfileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } -// method id "dfareporting.userRolePermissionGroups.get": - type UserRolePermissionGroupsGetCall struct { s *Service profileId int64 @@ -48862,6 +35320,9 @@ type UserRolePermissionGroupsGetCall struct { } // Get: Gets one user role permission group by ID. +// +// - id: User role permission group ID. +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRolePermissionGroupsGetCall { c := &UserRolePermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48870,33 +35331,29 @@ func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsGetCall) Context(ctx context.Context) *UserRolePermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48905,12 +35362,7 @@ func (c *UserRolePermissionGroupsGetCall) Header() http.Header { } func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48928,16 +35380,15 @@ func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.get" call. -// Exactly one of *UserRolePermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *UserRolePermissionGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48945,17 +35396,17 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -48968,42 +35419,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use return nil, err } return ret, nil - // { - // "description": "Gets one user role permission group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - // "response": { - // "$ref": "UserRolePermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissionGroups.list": +} type UserRolePermissionGroupsListCall struct { s *Service @@ -49015,6 +35431,8 @@ type UserRolePermissionGroupsListCall struct { } // List: Gets a list of all supported user role permission groups. +// +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermissionGroupsListCall { c := &UserRolePermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49022,33 +35440,29 @@ func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermiss } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsListCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsListCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsListCall) Context(ctx context.Context) *UserRolePermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49057,12 +35471,7 @@ func (c *UserRolePermissionGroupsListCall) Header() http.Header { } func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49079,17 +35488,15 @@ func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.list" call. -// Exactly one of *UserRolePermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49097,17 +35504,17 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -49120,34 +35527,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us return nil, err } return ret, nil - // { - // "description": "Gets a list of all supported user role permission groups.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups", - // "response": { - // "$ref": "UserRolePermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.get": +} type UserRolePermissionsGetCall struct { s *Service @@ -49160,6 +35540,9 @@ type UserRolePermissionsGetCall struct { } // Get: Gets one user role permission by ID. +// +// - id: User role permission ID. +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePermissionsGetCall { c := &UserRolePermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49168,33 +35551,29 @@ func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePer } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsGetCall) Context(ctx context.Context) *UserRolePermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49203,12 +35582,7 @@ func (c *UserRolePermissionsGetCall) Header() http.Header { } func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49226,16 +35600,15 @@ func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.get" call. -// Exactly one of *UserRolePermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolePermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49243,17 +35616,17 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermission{ ServerResponse: googleapi.ServerResponse{ @@ -49266,42 +35639,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole return nil, err } return ret, nil - // { - // "description": "Gets one user role permission by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions/{id}", - // "response": { - // "$ref": "UserRolePermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.list": +} type UserRolePermissionsListCall struct { s *Service @@ -49313,14 +35651,16 @@ type UserRolePermissionsListCall struct { } // List: Gets a list of user role permissions, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionsService) List(profileId int64) *UserRolePermissionsListCall { c := &UserRolePermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only user role -// permissions with these IDs. +// Ids sets the optional parameter "ids": Select only user role permissions +// with these IDs. func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsListCall { var ids_ []string for _, v := range ids { @@ -49331,33 +35671,29 @@ func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsListCall) Fields(s ...googleapi.Field) *UserRolePermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsListCall) IfNoneMatch(entityTag string) *UserRolePermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsListCall) Context(ctx context.Context) *UserRolePermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49366,12 +35702,7 @@ func (c *UserRolePermissionsListCall) Header() http.Header { } func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49388,16 +35719,15 @@ func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.list" call. -// Exactly one of *UserRolePermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49405,17 +35735,17 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -49428,41 +35758,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol return nil, err } return ret, nil - // { - // "description": "Gets a list of user role permissions, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only user role permissions with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions", - // "response": { - // "$ref": "UserRolePermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.delete": +} type UserRolesDeleteCall struct { s *Service @@ -49474,6 +35770,9 @@ type UserRolesDeleteCall struct { } // Delete: Deletes an existing user role. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCall { c := &UserRolesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49482,23 +35781,21 @@ func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesDeleteCall) Fields(s ...googleapi.Field) *UserRolesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesDeleteCall) Context(ctx context.Context) *UserRolesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49507,12 +35804,7 @@ func (c *UserRolesDeleteCall) Header() http.Header { } func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -49527,7 +35819,7 @@ func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.delete" call. @@ -49539,42 +35831,10 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing user role.", - // "httpMethod": "DELETE", - // "id": "dfareporting.userRoles.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.get": +} type UserRolesGetCall struct { s *Service @@ -49587,6 +35847,9 @@ type UserRolesGetCall struct { } // Get: Gets one user role by ID. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { c := &UserRolesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49595,33 +35858,29 @@ func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesGetCall) Fields(s ...googleapi.Field) *UserRolesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesGetCall) IfNoneMatch(entityTag string) *UserRolesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesGetCall) Context(ctx context.Context) *UserRolesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49630,12 +35889,7 @@ func (c *UserRolesGetCall) Header() http.Header { } func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49653,16 +35907,14 @@ func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.get" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49670,17 +35922,17 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -49693,42 +35945,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { return nil, err } return ret, nil - // { - // "description": "Gets one user role by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.insert": +} type UserRolesInsertCall struct { s *Service @@ -49740,6 +35957,8 @@ type UserRolesInsertCall struct { } // Insert: Inserts a new user role. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRolesInsertCall { c := &UserRolesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49748,23 +35967,21 @@ func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesInsertCall) Fields(s ...googleapi.Field) *UserRolesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesInsertCall) Context(ctx context.Context) *UserRolesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49773,18 +35990,12 @@ func (c *UserRolesInsertCall) Header() http.Header { } func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -49797,16 +36008,14 @@ func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.insert" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49814,17 +36023,17 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -49837,37 +36046,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Inserts a new user role.", - // "httpMethod": "POST", - // "id": "dfareporting.userRoles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.list": +} type UserRolesListCall struct { s *Service @@ -49880,22 +36059,24 @@ type UserRolesListCall struct { // List: Retrieves a list of user roles, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) List(profileId int64) *UserRolesListCall { c := &UserRolesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AccountUserRoleOnly sets the optional parameter -// "accountUserRoleOnly": Select only account level user roles not -// associated with any specific subaccount. +// AccountUserRoleOnly sets the optional parameter "accountUserRoleOnly": +// Select only account level user roles not associated with any specific +// subaccount. func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnly bool) *UserRolesListCall { c.urlParams_.Set("accountUserRoleOnly", fmt.Sprint(accountUserRoleOnly)) return c } -// Ids sets the optional parameter "ids": Select only user roles with -// the specified IDs. +// Ids sets the optional parameter "ids": Select only user roles with the +// specified IDs. func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { var ids_ []string for _, v := range ids { @@ -49905,8 +36086,8 @@ func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *UserRolesListCall) MaxResults(maxResults int64) *UserRolesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -49919,21 +36100,20 @@ func (c *UserRolesListCall) PageToken(pageToken string) *UserRolesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "userrole*2015" will return objects with names like -// "userrole June 2015", "userrole April 2015", or simply "userrole -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "userrole" will match objects with name "my userrole", "userrole -// 2015", or simply "userrole". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "userrole*2015" will return objects with names like "userrole June 2015", +// "userrole April 2015", or simply "userrole 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "userrole" will match objects with name "my +// userrole", "userrole 2015", or simply "userrole". func (c *UserRolesListCall) SearchString(searchString string) *UserRolesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -49944,8 +36124,7 @@ func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -49956,41 +36135,37 @@ func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user roles that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// roles that belong to this subaccount. func (c *UserRolesListCall) SubaccountId(subaccountId int64) *UserRolesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesListCall) Fields(s ...googleapi.Field) *UserRolesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesListCall) IfNoneMatch(entityTag string) *UserRolesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesListCall) Context(ctx context.Context) *UserRolesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49999,12 +36174,7 @@ func (c *UserRolesListCall) Header() http.Header { } func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50021,16 +36191,15 @@ func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.list" call. -// Exactly one of *UserRolesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50038,17 +36207,17 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -50061,96 +36230,6 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "accountUserRoleOnly": { - // "description": "Select only account level user roles not associated with any specific subaccount.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user roles with the specified IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"userrole*2015\" will return objects with names like \"userrole June 2015\", \"userrole April 2015\", or simply \"userrole 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"userrole\" will match objects with name \"my userrole\", \"userrole 2015\", or simply \"userrole\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user roles that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "response": { - // "$ref": "UserRolesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -50158,7 +36237,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // The provided context supersedes any context provided to the Context method. func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -50174,8 +36253,6 @@ func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResp } } -// method id "dfareporting.userRoles.patch": - type UserRolesPatchCall struct { s *Service profileId int64 @@ -50185,8 +36262,10 @@ type UserRolesPatchCall struct { header_ http.Header } -// Patch: Updates an existing user role. This method supports patch -// semantics. +// Patch: Updates an existing user role. This method supports patch semantics. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) *UserRolesPatchCall { c := &UserRolesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50196,23 +36275,21 @@ func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesPatchCall) Fields(s ...googleapi.Field) *UserRolesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesPatchCall) Context(ctx context.Context) *UserRolesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50221,18 +36298,12 @@ func (c *UserRolesPatchCall) Header() http.Header { } func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -50245,16 +36316,14 @@ func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.patch" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50262,17 +36331,17 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50285,45 +36354,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing user role. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.userRoles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.update": +} type UserRolesUpdateCall struct { s *Service @@ -50335,6 +36366,8 @@ type UserRolesUpdateCall struct { } // Update: Updates an existing user role. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRolesUpdateCall { c := &UserRolesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50343,23 +36376,21 @@ func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesUpdateCall) Fields(s ...googleapi.Field) *UserRolesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesUpdateCall) Context(ctx context.Context) *UserRolesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50368,18 +36399,12 @@ func (c *UserRolesUpdateCall) Header() http.Header { } func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -50392,16 +36417,14 @@ func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.update" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50409,17 +36432,17 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50432,37 +36455,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Updates an existing user role.", - // "httpMethod": "PUT", - // "id": "dfareporting.userRoles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.get": +} type VideoFormatsGetCall struct { s *Service @@ -50475,6 +36468,9 @@ type VideoFormatsGetCall struct { } // Get: Gets one video format by ID. +// +// - id: Video format ID. +// - profileId: User profile ID associated with this request. func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCall { c := &VideoFormatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50483,33 +36479,29 @@ func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsGetCall) Fields(s ...googleapi.Field) *VideoFormatsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsGetCall) IfNoneMatch(entityTag string) *VideoFormatsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsGetCall) Context(ctx context.Context) *VideoFormatsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50518,12 +36510,7 @@ func (c *VideoFormatsGetCall) Header() http.Header { } func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50541,16 +36528,14 @@ func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.get" call. -// Exactly one of *VideoFormat or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *VideoFormat.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *VideoFormat.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50558,17 +36543,17 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormat{ ServerResponse: googleapi.ServerResponse{ @@ -50581,42 +36566,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er return nil, err } return ret, nil - // { - // "description": "Gets one video format by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Video format ID.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats/{id}", - // "response": { - // "$ref": "VideoFormat" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.list": +} type VideoFormatsListCall struct { s *Service @@ -50628,6 +36578,8 @@ type VideoFormatsListCall struct { } // List: Lists available video formats. +// +// - profileId: User profile ID associated with this request. func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { c := &VideoFormatsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50635,33 +36587,29 @@ func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsListCall) Fields(s ...googleapi.Field) *VideoFormatsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsListCall) IfNoneMatch(entityTag string) *VideoFormatsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsListCall) Context(ctx context.Context) *VideoFormatsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50670,12 +36618,7 @@ func (c *VideoFormatsListCall) Header() http.Header { } func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50692,16 +36635,15 @@ func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.list" call. -// Exactly one of *VideoFormatsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *VideoFormatsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50709,17 +36651,17 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormatsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -50732,29 +36674,4 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi return nil, err } return ret, nil - // { - // "description": "Lists available video formats.", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats", - // "response": { - // "$ref": "VideoFormatsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } diff --git a/dfareporting/v3.0/dfareporting-gen.go b/dfareporting/v3.0/dfareporting-gen.go index 393d9165d15..77a268445fe 100644 --- a/dfareporting/v3.0/dfareporting-gen.go +++ b/dfareporting/v3.0/dfareporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/doubleclick-advertisers/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // dfareportingService, err := dfareporting.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithScopes(dfareporting.DfatraffickingScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // dfareportingService, err := dfareporting.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package dfareporting // import "google.golang.org/api/dfareporting/v3.0" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dfareporting:v3.0" const apiName = "dfareporting" const apiVersion = "v3.0" const basePath = "https://www.googleapis.com/dfareporting/v3.0/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/dfareporting/v3.0/" // OAuth2 scopes used by this API. const ( @@ -93,13 +112,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/ddmconversions", "https://www.googleapis.com/auth/dfareporting", "https://www.googleapis.com/auth/dfatrafficking", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -888,20 +910,16 @@ type VideoFormatsService struct { type Account struct { // AccountPermissionIds: Account permissions assigned to this account. AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"` - - // AccountProfile: Profile for this account. This is a read-only field - // that can be left blank. + // AccountProfile: Profile for this account. This is a read-only field that can + // be left blank. // // Possible values: // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfile string `json:"accountProfile,omitempty"` - // Active: Whether this account is active. Active bool `json:"active,omitempty"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for this - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for this account. // // Possible values: // "ACTIVE_ADS_TIER_100K" @@ -913,21 +931,16 @@ type Account struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_75K" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - - // ActiveViewOptOut: Whether to serve creatives with Active View tags. - // If disabled, viewability data will not be available for any - // impressions. + // ActiveViewOptOut: Whether to serve creatives with Active View tags. If + // disabled, viewability data will not be available for any impressions. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AvailablePermissionIds: User role permissions available to the user - // roles of this account. + // AvailablePermissionIds: User role permissions available to the user roles of + // this account. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // CountryId: ID of the country associated with this account. CountryId int64 `json:"countryId,omitempty,string"` - - // CurrencyId: ID of currency associated with this account. This is a - // required field. + // CurrencyId: ID of currency associated with this account. This is a required + // field. // Acceptable values are: // - "1" for USD // - "2" for GBP @@ -979,20 +992,15 @@ type Account struct { // - "49" for MXN // - "50" for NGN CurrencyId int64 `json:"currencyId,omitempty,string"` - // DefaultCreativeSizeId: Default placement dimensions for this account. DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"` - // Description: Description of this account. Description string `json:"description,omitempty"` - // Id: ID of this account. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#account". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#account". Kind string `json:"kind,omitempty"` - // Locale: Locale of this account. // Acceptable values are: // - "cs" (Czech) @@ -1012,69 +1020,50 @@ type Account struct { // - "zh-CN" (Chinese Simplified) // - "zh-TW" (Chinese Traditional) Locale string `json:"locale,omitempty"` - - // MaximumImageSize: Maximum image size allowed for this account, in - // kilobytes. Value must be greater than or equal to 1. + // MaximumImageSize: Maximum image size allowed for this account, in kilobytes. + // Value must be greater than or equal to 1. MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"` - - // Name: Name of this account. This is a required field, and must be - // less than 128 characters long and be globally unique. + // Name: Name of this account. This is a required field, and must be less than + // 128 characters long and be globally unique. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether campaigns created in this account will be - // enabled for Nielsen OCR reach ratings by default. + // NielsenOcrEnabled: Whether campaigns created in this account will be enabled + // for Nielsen OCR reach ratings by default. NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - // ReportsConfiguration: Reporting configuration of this account. ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"` - - // ShareReportsWithTwitter: Share Path to Conversion reports with - // Twitter. + // ShareReportsWithTwitter: Share Path to Conversion reports with Twitter. ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"` - // TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser // creatives. Acceptable values are 1 to 10240, inclusive. TeaserSizeLimit int64 `json:"teaserSizeLimit,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionIds") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionIds") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountActiveAdSummary: Gets a summary of active ads in an account. type AccountActiveAdSummary struct { // AccountId: ID of the account. AccountId int64 `json:"accountId,omitempty,string"` - // ActiveAds: Ads that have been activated for the account ActiveAds int64 `json:"activeAds,omitempty,string"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for the - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for the account. // // Possible values: // "ACTIVE_ADS_TIER_100K" @@ -1086,44 +1075,35 @@ type AccountActiveAdSummary struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_75K" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - // AvailableAds: Ads that can be activated for the account. AvailableAds int64 `json:"availableAds,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountActiveAdSummary". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountActiveAdSummary". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountActiveAdSummary) MarshalJSON() ([]byte, error) { +func (s AccountActiveAdSummary) MarshalJSON() ([]byte, error) { type NoMethod AccountActiveAdSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermission: AccountPermissions contains information about a -// particular account permission. Some features of Campaign Manager -// require an account permission to be present in the account. +// particular account permission. Some features of Campaign Manager require an +// account permission to be present in the account. type AccountPermission struct { // AccountProfiles: Account profiles associated with this account // permission. @@ -1136,212 +1116,158 @@ type AccountPermission struct { // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfiles []string `json:"accountProfiles,omitempty"` - // Id: ID of this account permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermission". Kind string `json:"kind,omitempty"` - - // Level: Administrative level required to enable this account - // permission. + // Level: Administrative level required to enable this account permission. // // Possible values: // "ADMINISTRATOR" // "USER" Level string `json:"level,omitempty"` - // Name: Name of this account permission. Name string `json:"name,omitempty"` - // PermissionGroupId: Permission group of this account permission. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountProfiles") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountProfiles") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermission) MarshalJSON() ([]byte, error) { +func (s AccountPermission) MarshalJSON() ([]byte, error) { type NoMethod AccountPermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionGroup: AccountPermissionGroups contains a mapping of -// permission group IDs to names. A permission group is a grouping of -// account permissions. +// permission group IDs to names. A permission group is a grouping of account +// permissions. type AccountPermissionGroup struct { // Id: ID of this account permission group. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this account permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroup) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountPermissionGroupsListResponse: Account Permission Group List -// Response +// AccountPermissionGroupsListResponse: Account Permission Group List Response type AccountPermissionGroupsListResponse struct { // AccountPermissionGroups: Account permission group collection. AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionGroups") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionGroups") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionsListResponse: Account Permission List Response type AccountPermissionsListResponse struct { // AccountPermissions: Account permission collection. AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountPermissions") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountUserProfile: AccountUserProfiles contains properties of a -// Campaign Manager user profile. This resource is specifically for -// managing user profiles, whereas UserProfiles is for accessing the -// API. +// AccountUserProfile: AccountUserProfiles contains properties of a Campaign +// Manager user profile. This resource is specifically for managing user +// profiles, whereas UserProfiles is for accessing the API. type AccountUserProfile struct { - // AccountId: Account ID of the user profile. This is a read-only field - // that can be left blank. + // AccountId: Account ID of the user profile. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether this user profile is active. This defaults to false, - // and must be set true on insert for the user profile to be usable. + // Active: Whether this user profile is active. This defaults to false, and + // must be set true on insert for the user profile to be usable. Active bool `json:"active,omitempty"` - - // AdvertiserFilter: Filter that describes which advertisers are visible - // to the user profile. + // AdvertiserFilter: Filter that describes which advertisers are visible to the + // user profile. AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"` - - // CampaignFilter: Filter that describes which campaigns are visible to - // the user profile. + // CampaignFilter: Filter that describes which campaigns are visible to the + // user profile. CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"` - // Comments: Comments for this user profile. Comments string `json:"comments,omitempty"` - - // Email: Email of the user profile. The email addresss must be linked - // to a Google Account. This field is required on insertion and is - // read-only after insertion. + // Email: Email of the user profile. The email addresss must be linked to a + // Google Account. This field is required on insertion and is read-only after + // insertion. Email string `json:"email,omitempty"` - - // Id: ID of the user profile. This is a read-only, auto-generated - // field. + // Id: ID of the user profile. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfile". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfile". Kind string `json:"kind,omitempty"` - - // Locale: Locale of the user profile. This is a required - // field. + // Locale: Locale of the user profile. This is a required field. // Acceptable values are: // - "cs" (Czech) // - "de" (German) @@ -1360,31 +1286,26 @@ type AccountUserProfile struct { // - "zh-CN" (Chinese Simplified) // - "zh-TW" (Chinese Traditional) Locale string `json:"locale,omitempty"` - - // Name: Name of the user profile. This is a required field. Must be - // less than 64 characters long, must be globally unique, and cannot - // contain whitespace or any of the following characters: "&;"#%,". + // Name: Name of the user profile. This is a required field. Must be less than + // 64 characters long, must be globally unique, and cannot contain whitespace + // or any of the following characters: "&;"#%,". Name string `json:"name,omitempty"` - // SiteFilter: Filter that describes which sites are visible to the user // profile. SiteFilter *ObjectFilter `json:"siteFilter,omitempty"` - - // SubaccountId: Subaccount ID of the user profile. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of the user profile. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TraffickerType: Trafficker type of this user profile. This is a - // read-only field. + // TraffickerType: Trafficker type of this user profile. This is a read-only + // field. // // Possible values: // "EXTERNAL_TRAFFICKER" // "INTERNAL_NON_TRAFFICKER" // "INTERNAL_TRAFFICKER" TraffickerType string `json:"traffickerType,omitempty"` - - // UserAccessType: User type of the user profile. This is a read-only - // field that can be left blank. + // UserAccessType: User type of the user profile. This is a read-only field + // that can be left blank. // // Possible values: // "INTERNAL_ADMINISTRATOR" @@ -1392,213 +1313,159 @@ type AccountUserProfile struct { // "READ_ONLY_SUPER_USER" // "SUPER_USER" UserAccessType string `json:"userAccessType,omitempty"` - - // UserRoleFilter: Filter that describes which user roles are visible to - // the user profile. + // UserRoleFilter: Filter that describes which user roles are visible to the + // user profile. UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"` - - // UserRoleId: User role ID of the user profile. This is a required - // field. + // UserRoleId: User role ID of the user profile. This is a required field. UserRoleId int64 `json:"userRoleId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfile) MarshalJSON() ([]byte, error) { +func (s AccountUserProfile) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountUserProfilesListResponse: Account User Profile List Response type AccountUserProfilesListResponse struct { // AccountUserProfiles: Account user profile collection. AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfilesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfilesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountUserProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountUserProfiles") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { +func (s AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfilesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountsListResponse: Account List Response type AccountsListResponse struct { // Accounts: Account collection. Accounts []*Account `json:"accounts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Accounts") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accounts") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accounts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Activities: Represents an activity group. type Activities struct { - // Filters: List of activity filters. The dimension values need to be - // all either of type "dfa:activity" or "dfa:activityGroup". + // Filters: List of activity filters. The dimension values need to be all + // either of type "dfa:activity" or "dfa:activityGroup". Filters []*DimensionValue `json:"filters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#activities. + // Kind: The kind of resource this is, in this case dfareporting#activities. Kind string `json:"kind,omitempty"` - // MetricNames: List of names of floodlight activity metrics. MetricNames []string `json:"metricNames,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filters") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Activities) MarshalJSON() ([]byte, error) { +func (s Activities) MarshalJSON() ([]byte, error) { type NoMethod Activities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Ad: Contains properties of a Campaign Manager ad. type Ad struct { - // AccountId: Account ID of this ad. This is a read-only field that can - // be left blank. + // AccountId: Account ID of this ad. This is a read-only field that can be left + // blank. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this ad is active. When true, archived must be false. Active bool `json:"active,omitempty"` - // AdvertiserId: Advertiser ID of this ad. This is a required field on // insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Archived: Whether this ad is archived. When true, active must be - // false. + // Archived: Whether this ad is archived. When true, active must be false. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentId: Audience segment ID that is being targeted for - // this ad. Applicable when type is AD_SERVING_STANDARD_AD. + // AudienceSegmentId: Audience segment ID that is being targeted for this ad. + // Applicable when type is AD_SERVING_STANDARD_AD. AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"` - - // CampaignId: Campaign ID of this ad. This is a required field on - // insertion. + // CampaignId: Campaign ID of this ad. This is a required field on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ClickThroughUrl: Click-through URL for this ad. This is a required - // field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. + // ClickThroughUrl: Click-through URL for this ad. This is a required field on + // insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // ClickThroughUrlSuffixProperties: Click-through URL suffix properties - // for this ad. Applies to the URL in the ad or (if overriding ad - // properties) the URL in the creative. + // ClickThroughUrlSuffixProperties: Click-through URL suffix properties for + // this ad. Applies to the URL in the ad or (if overriding ad properties) the + // URL in the creative. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - // Comments: Comments for this ad. Comments string `json:"comments,omitempty"` - // Compatibility: Compatibility of this ad. Applicable when type is - // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to - // either rendering on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are only used for existing default ads. New mobile - // placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and - // default ads created for those placements will be limited to those - // compatibility types. IN_STREAM_VIDEO refers to rendering in-stream - // video ads developed with the VAST standard. + // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either + // rendering on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for + // existing default ads. New mobile placements must be assigned DISPLAY or + // DISPLAY_INTERSTITIAL and default ads created for those placements will be + // limited to those compatibility types. IN_STREAM_VIDEO refers to rendering + // in-stream video ads developed with the VAST standard. // // Possible values: // "APP" @@ -1608,129 +1475,99 @@ type Ad struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - - // CreateInfo: Information about the creation of this ad. This is a - // read-only field. + // CreateInfo: Information about the creation of this ad. This is a read-only + // field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this ad. - // Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment - // per creative group number is allowed for a maximum of two - // assignments. + // CreativeGroupAssignments: Creative group assignments for this ad. Applicable + // when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative + // group number is allowed for a maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeRotation: Creative rotation for this ad. Applicable when type - // is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or - // AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field - // should have exactly one creativeAssignment. + // CreativeRotation: Creative rotation for this ad. Applicable when type is + // AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When + // type is AD_SERVING_DEFAULT_AD, this field should have exactly one + // creativeAssignment. CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"` - - // DayPartTargeting: Time and day targeting information for this ad. - // This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // DayPartTargeting: Time and day targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - - // DefaultClickThroughEventTagProperties: Default click-through event - // tag properties for this ad. + // DefaultClickThroughEventTagProperties: Default click-through event tag + // properties for this ad. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - - // DeliverySchedule: Delivery schedule information for this ad. - // Applicable when type is AD_SERVING_STANDARD_AD or - // AD_SERVING_TRACKING. This field along with subfields priority and - // impressionRatio are required on insertion when type is - // AD_SERVING_STANDARD_AD. + // DeliverySchedule: Delivery schedule information for this ad. Applicable when + // type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with + // subfields priority and impressionRatio are required on insertion when type + // is AD_SERVING_STANDARD_AD. DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"` - - // DynamicClickTracker: Whether this ad is a dynamic click tracker. - // Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required - // field on insert, and is read-only after insert. + // DynamicClickTracker: Whether this ad is a dynamic click tracker. Applicable + // when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, + // and is read-only after insert. DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"` - - // EndTime: Date and time that this ad should stop serving. Must be - // later than the start time. This is a required field on insertion. + // EndTime: Date and time that this ad should stop serving. Must be later than + // the start time. This is a required field on insertion. EndTime string `json:"endTime,omitempty"` - // EventTagOverrides: Event tag overrides for this ad. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - - // GeoTargeting: Geographical targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // GeoTargeting: Geographical targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - // Id: ID of this ad. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this ad. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyValueTargetingExpression: Key-value targeting information for this - // ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // KeyValueTargetingExpression: Key-value targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ad". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ad". Kind string `json:"kind,omitempty"` - - // LanguageTargeting: Language targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // LanguageTargeting: Language targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this ad. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this ad. + // This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this ad. This is a required field and must be less than - // 256 characters long. + // Name: Name of this ad. This is a required field and must be less than 256 + // characters long. Name string `json:"name,omitempty"` - // PlacementAssignments: Placement assignments for this ad. PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"` - - // RemarketingListExpression: Remarketing list targeting expression for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // RemarketingListExpression: Remarketing list targeting expression for this + // ad. This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"` - // Size: Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether this ad is ssl compliant. This is a read-only - // field that is auto-generated when the ad is inserted or updated. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslRequired: Whether this ad requires ssl. This is a read-only field + // SslCompliant: Whether this ad is ssl compliant. This is a read-only field // that is auto-generated when the ad is inserted or updated. + SslCompliant bool `json:"sslCompliant,omitempty"` + // SslRequired: Whether this ad requires ssl. This is a read-only field that is + // auto-generated when the ad is inserted or updated. SslRequired bool `json:"sslRequired,omitempty"` - - // StartTime: Date and time that this ad should start serving. If - // creating an ad, this field must be a time in the future. This is a - // required field on insertion. + // StartTime: Date and time that this ad should start serving. If creating an + // ad, this field must be a time in the future. This is a required field on + // insertion. StartTime string `json:"startTime,omitempty"` - - // SubaccountId: Subaccount ID of this ad. This is a read-only field - // that can be left blank. + // SubaccountId: Subaccount ID of this ad. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TargetingTemplateId: Targeting template ID, used to apply - // preconfigured targeting information to this ad. This cannot be set - // while any of dayPartTargeting, geoTargeting, - // keyValueTargetingExpression, languageTargeting, - // remarketingListExpression, or technologyTargeting are set. Applicable - // when type is AD_SERVING_STANDARD_AD. + // TargetingTemplateId: Targeting template ID, used to apply preconfigured + // targeting information to this ad. This cannot be set while any of + // dayPartTargeting, geoTargeting, keyValueTargetingExpression, + // languageTargeting, remarketingListExpression, or technologyTargeting are + // set. Applicable when type is AD_SERVING_STANDARD_AD. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // TechnologyTargeting: Technology platform targeting information for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // TechnologyTargeting: Technology platform targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - - // Type: Type of ad. This is a required field on insertion. Note that - // default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see - // Creative resource). + // Type: Type of ad. This is a required field on insertion. Note that default + // ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative + // resource). // // Possible values: // "AD_SERVING_CLICK_TRACKER" @@ -1739,91 +1576,71 @@ type Ad struct { // "AD_SERVING_TRACKING" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Ad) MarshalJSON() ([]byte, error) { +func (s Ad) MarshalJSON() ([]byte, error) { type NoMethod Ad - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdBlockingConfiguration: Campaign ad blocking settings. type AdBlockingConfiguration struct { - // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is - // a required field when overrideClickThroughUrl is set to true. + // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is a + // required field when overrideClickThroughUrl is set to true. ClickThroughUrl string `json:"clickThroughUrl,omitempty"` - - // CreativeBundleId: ID of a creative bundle to use for this campaign. - // If set, brand-neutral ads will select creatives from this bundle. - // Otherwise, a default transparent pixel will be used. + // CreativeBundleId: ID of a creative bundle to use for this campaign. If set, + // brand-neutral ads will select creatives from this bundle. Otherwise, a + // default transparent pixel will be used. CreativeBundleId int64 `json:"creativeBundleId,omitempty,string"` - // Enabled: Whether this campaign has enabled ad blocking. When true, ad // blocking is enabled for placements in the campaign, but this may be // overridden by site and placement settings. When false, ad blocking is - // disabled for all placements under the campaign, regardless of site - // and placement settings. + // disabled for all placements under the campaign, regardless of site and + // placement settings. Enabled bool `json:"enabled,omitempty"` - - // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through - // URL comes from the campaign's creative bundle or the override URL. - // Must be set to true if ad blocking is enabled and no creative bundle - // is configured. + // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through URL + // comes from the campaign's creative bundle or the override URL. Must be set + // to true if ad blocking is enabled and no creative bundle is configured. OverrideClickThroughUrl bool `json:"overrideClickThroughUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdBlockingConfiguration) MarshalJSON() ([]byte, error) { +func (s AdBlockingConfiguration) MarshalJSON() ([]byte, error) { type NoMethod AdBlockingConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdSlot: Ad Slot type AdSlot struct { // Comment: Comment for this ad slot. Comment string `json:"comment,omitempty"` - - // Compatibility: Ad slot compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile - // devices or in mobile apps for regular or interstitial ads - // respectively. APP and APP_INTERSTITIAL are for rendering in mobile - // apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // Compatibility: Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer + // to rendering either on desktop, mobile devices or in mobile apps for regular + // or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads // developed with the VAST standard. // // Possible values: @@ -1834,1317 +1651,985 @@ type AdSlot struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - // Height: Height of this ad slot. Height int64 `json:"height,omitempty,string"` - - // LinkedPlacementId: ID of the placement from an external platform that - // is linked to this ad slot. + // LinkedPlacementId: ID of the placement from an external platform that is + // linked to this ad slot. LinkedPlacementId int64 `json:"linkedPlacementId,omitempty,string"` - // Name: Name of this ad slot. Name string `json:"name,omitempty"` - // PaymentSourceType: Payment source type of this ad slot. // // Possible values: // "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID" // "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" PaymentSourceType string `json:"paymentSourceType,omitempty"` - // Primary: Primary ad slot of a roadblock inventory item. Primary bool `json:"primary,omitempty"` - // Width: Width of this ad slot. Width int64 `json:"width,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Comment") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Comment") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Comment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Comment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdSlot) MarshalJSON() ([]byte, error) { +func (s AdSlot) MarshalJSON() ([]byte, error) { type NoMethod AdSlot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdsListResponse: Ad List Response type AdsListResponse struct { // Ads: Ad collection. Ads []*Ad `json:"ads,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#adsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#adsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Ads") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ads") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Ads") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Ads") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdsListResponse) MarshalJSON() ([]byte, error) { +func (s AdsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Advertiser: Contains properties of a Campaign Manager advertiser. type Advertiser struct { - // AccountId: Account ID of this advertiser.This is a read-only field - // that can be left blank. + // AccountId: Account ID of this advertiser.This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserGroupId: ID of the advertiser group this advertiser belongs - // to. You can group advertisers for reporting purposes, allowing you to - // see aggregated information for all advertisers in each group. + // AdvertiserGroupId: ID of the advertiser group this advertiser belongs to. + // You can group advertisers for reporting purposes, allowing you to see + // aggregated information for all advertisers in each group. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // ClickThroughUrlSuffix: Suffix added to click-through URL of ad - // creative associations under this advertiser. Must be less than 129 - // characters long. + // ClickThroughUrlSuffix: Suffix added to click-through URL of ad creative + // associations under this advertiser. Must be less than 129 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply by default to the landing pages of this advertiser's campaigns. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply by + // default to the landing pages of this advertiser's campaigns. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // DefaultEmail: Default email address used in sender field for tag - // emails. + // DefaultEmail: Default email address used in sender field for tag emails. DefaultEmail string `json:"defaultEmail,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // advertiser. The floodlight configuration ID will be created - // automatically, so on insert this field should be left blank. This - // field can be set to another advertiser's floodlight configuration ID - // in order to share that advertiser's floodlight configuration with - // this advertiser, so long as: + // FloodlightConfigurationId: Floodlight configuration ID of this advertiser. + // The floodlight configuration ID will be created automatically, so on insert + // this field should be left blank. This field can be set to another + // advertiser's floodlight configuration ID in order to share that advertiser's + // floodlight configuration with this advertiser, so long as: // - This advertiser's original floodlight configuration is not already // associated with floodlight activities or floodlight activity groups. - // - // - This advertiser's original floodlight configuration is not already - // shared with another advertiser. + // - This advertiser's original floodlight configuration is not already shared + // with another advertiser. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this advertiser. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this advertiser. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this advertiser. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiser". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser. This is a required field and must be - // less than 256 characters long and unique among advertisers of the - // same account. + // Name: Name of this advertiser. This is a required field and must be less + // than 256 characters long and unique among advertisers of the same account. Name string `json:"name,omitempty"` - - // OriginalFloodlightConfigurationId: Original floodlight configuration - // before any sharing occurred. Set the floodlightConfigurationId of - // this advertiser to originalFloodlightConfigurationId to unshare the - // advertiser's current floodlight configuration. You cannot unshare an - // advertiser's floodlight configuration if the shared configuration has - // activities associated with any campaign or placement. + // OriginalFloodlightConfigurationId: Original floodlight configuration before + // any sharing occurred. Set the floodlightConfigurationId of this advertiser + // to originalFloodlightConfigurationId to unshare the advertiser's current + // floodlight configuration. You cannot unshare an advertiser's floodlight + // configuration if the shared configuration has activities associated with any + // campaign or placement. OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"` - // Status: Status of this advertiser. // // Possible values: // "APPROVED" // "ON_HOLD" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this advertiser.This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this advertiser.This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Suspended: Suspension status of this advertiser. Suspended bool `json:"suspended,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Advertiser) MarshalJSON() ([]byte, error) { +func (s Advertiser) MarshalJSON() ([]byte, error) { type NoMethod Advertiser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroup: Groups advertisers together so that reports can be // generated for the entire group at once. type AdvertiserGroup struct { - // AccountId: Account ID of this advertiser group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this advertiser group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this advertiser group. This is a read-only, auto-generated - // field. + // Id: ID of this advertiser group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser group. This is a required field and - // must be less than 256 characters long and unique among advertiser - // groups of the same account. + // Name: Name of this advertiser group. This is a required field and must be + // less than 256 characters long and unique among advertiser groups of the same + // account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroup) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroup) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroupsListResponse: Advertiser Group List Response type AdvertiserGroupsListResponse struct { // AdvertiserGroups: Advertiser group collection. AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserGroups") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserLandingPagesListResponse: Landing Page List Response type AdvertiserLandingPagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserLandingPagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserLandingPagesListResponse". Kind string `json:"kind,omitempty"` - // LandingPages: Landing page collection LandingPages []*LandingPage `json:"landingPages,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserLandingPagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertisersListResponse: Advertiser List Response type AdvertisersListResponse struct { // Advertisers: Advertiser collection. Advertisers []*Advertiser `json:"advertisers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertisersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertisersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Advertisers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Advertisers") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Advertisers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertisersListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertisersListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertisersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegment: Audience Segment. type AudienceSegment struct { - // Allocation: Weight allocated to this segment. The weight assigned - // will be understood in proportion to the weights assigned to other - // segments in the same segment group. Acceptable values are 1 to 1000, - // inclusive. + // Allocation: Weight allocated to this segment. The weight assigned will be + // understood in proportion to the weights assigned to other segments in the + // same segment group. Acceptable values are 1 to 1000, inclusive. Allocation int64 `json:"allocation,omitempty"` - - // Id: ID of this audience segment. This is a read-only, auto-generated - // field. + // Id: ID of this audience segment. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment. This is a required field and - // must be less than 65 characters long. + // Name: Name of this audience segment. This is a required field and must be + // less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Allocation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Allocation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Allocation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegment) MarshalJSON() ([]byte, error) { +func (s AudienceSegment) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegmentGroup: Audience Segment Group. type AudienceSegmentGroup struct { - // AudienceSegments: Audience segments assigned to this group. The - // number of segments must be between 2 and 100. + // AudienceSegments: Audience segments assigned to this group. The number of + // segments must be between 2 and 100. AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"` - - // Id: ID of this audience segment group. This is a read-only, - // auto-generated field. + // Id: ID of this audience segment group. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment group. This is a required field - // and must be less than 65 characters long. + // Name: Name of this audience segment group. This is a required field and must + // be less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudienceSegments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudienceSegments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AudienceSegments") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegmentGroup) MarshalJSON() ([]byte, error) { +func (s AudienceSegmentGroup) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegmentGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Browser: Contains information about a browser that can be targeted by -// ads. +// Browser: Contains information about a browser that can be targeted by ads. type Browser struct { - // BrowserVersionId: ID referring to this grouping of browser and - // version numbers. This is the ID used for targeting. + // BrowserVersionId: ID referring to this grouping of browser and version + // numbers. This is the ID used for targeting. BrowserVersionId int64 `json:"browserVersionId,omitempty,string"` - // DartId: DART ID of this browser. This is the ID used when generating // reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browser". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version number (leftmost number) of this browser. - // For example, for Chrome 5.0.376.86 beta, this field should be set to - // 5. An asterisk (*) may be used to target any version number, and a - // question mark (?) may be used to target cases where the version - // number cannot be identified. For example, Chrome *.* targets any - // version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MajorVersion: Major version number (leftmost number) of this browser. For + // example, for Chrome 5.0.376.86 beta, this field should be set to 5. An + // asterisk (*) may be used to target any version number, and a question mark + // (?) may be used to target cases where the version number cannot be + // identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, + // 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? + // targets cases where the ad server knows the browser is Firefox but can't + // tell which version it is. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version number (number after first dot on left) - // of this browser. For example, for Chrome 5.0.375.86 beta, this field - // should be set to 0. An asterisk (*) may be used to target any version - // number, and a question mark (?) may be used to target cases where the - // version number cannot be identified. For example, Chrome *.* targets - // any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MinorVersion: Minor version number (number after first dot on left) of this + // browser. For example, for Chrome 5.0.375.86 beta, this field should be set + // to 0. An asterisk (*) may be used to target any version number, and a + // question mark (?) may be used to target cases where the version number + // cannot be identified. For example, Chrome *.* targets any version of Chrome: + // 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. + // Firefox ?.? targets cases where the ad server knows the browser is Firefox + // but can't tell which version it is. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this browser. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "BrowserVersionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BrowserVersionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BrowserVersionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Browser) MarshalJSON() ([]byte, error) { +func (s Browser) MarshalJSON() ([]byte, error) { type NoMethod Browser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BrowsersListResponse: Browser List Response type BrowsersListResponse struct { // Browsers: Browser collection. Browsers []*Browser `json:"browsers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browsersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browsersListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BrowsersListResponse) MarshalJSON() ([]byte, error) { +func (s BrowsersListResponse) MarshalJSON() ([]byte, error) { type NoMethod BrowsersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Campaign: Contains properties of a Campaign Manager campaign. type Campaign struct { - // AccountId: Account ID of this campaign. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this campaign. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - // AdBlockingConfiguration: Ad blocking settings for this campaign. AdBlockingConfiguration *AdBlockingConfiguration `json:"adBlockingConfiguration,omitempty"` - // AdditionalCreativeOptimizationConfigurations: Additional creative // optimization configurations for the campaign. AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"` - // AdvertiserGroupId: Advertiser group ID of the associated advertiser. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this campaign. This is a required - // field. + // AdvertiserId: Advertiser ID of this campaign. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of - // this campaign. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of this + // campaign. This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this campaign has been archived. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentGroups: Audience segment groups assigned to this - // campaign. Cannot have more than 300 segment groups. + // AudienceSegmentGroups: Audience segment groups assigned to this campaign. + // Cannot have more than 300 segment groups. AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"` - - // BillingInvoiceCode: Billing invoice code included in the Campaign - // Manager client billing invoices associated with the campaign. + // BillingInvoiceCode: Billing invoice code included in the Campaign Manager + // client billing invoices associated with the campaign. BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"` - // ClickThroughUrlSuffixProperties: Click-through URL suffix override // properties for this campaign. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - - // Comment: Arbitrary comments about this campaign. Must be less than - // 256 characters long. + // Comment: Arbitrary comments about this campaign. Must be less than 256 + // characters long. Comment string `json:"comment,omitempty"` - - // CreateInfo: Information about the creation of this campaign. This is - // a read-only field. + // CreateInfo: Information about the creation of this campaign. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - // CreativeGroupIds: List of creative group IDs that are assigned to the // campaign. CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"` - - // CreativeOptimizationConfiguration: Creative optimization - // configuration for the campaign. + // CreativeOptimizationConfiguration: Creative optimization configuration for + // the campaign. CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"` - - // DefaultClickThroughEventTagProperties: Click-through event tag ID - // override properties for this campaign. + // DefaultClickThroughEventTagProperties: Click-through event tag ID override + // properties for this campaign. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - // DefaultLandingPageId: The default landing page ID for this campaign. DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"` - - // EndDate: Date on which the campaign will stop running. On insert, the - // end date must be today or a future date. The end date must be later - // than or be the same as the start date. If, for example, you set - // 6/25/2015 as both the start and end dates, the effective campaign run - // date is just that day only, 6/25/2015. The hours, minutes, and - // seconds of the end date should not be set, as doing so will result in - // an error. This is a required field. + // EndDate: Date on which the campaign will stop running. On insert, the end + // date must be today or a future date. The end date must be later than or be + // the same as the start date. If, for example, you set 6/25/2015 as both the + // start and end dates, the effective campaign run date is just that day only, + // 6/25/2015. The hours, minutes, and seconds of the end date should not be + // set, as doing so will result in an error. This is a required field. EndDate string `json:"endDate,omitempty"` - - // EventTagOverrides: Overrides that can be used to activate or - // deactivate advertiser event tags. + // EventTagOverrides: Overrides that can be used to activate or deactivate + // advertiser event tags. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - // ExternalId: External ID for this campaign. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this campaign. This is a read-only auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this campaign. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this campaign. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaign". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaign". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this campaign. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // campaign. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // LookbackConfiguration: Lookback window settings for the campaign. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // Name: Name of this campaign. This is a required field and must be - // less than 256 characters long and unique among campaigns of the same - // advertiser. + // Name: Name of this campaign. This is a required field and must be less than + // 256 characters long and unique among campaigns of the same advertiser. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether Nielsen reports are enabled for this - // campaign. + // NielsenOcrEnabled: Whether Nielsen reports are enabled for this campaign. NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - - // StartDate: Date on which the campaign starts running. The start date - // can be any date. The hours, minutes, and seconds of the start date - // should not be set, as doing so will result in an error. This is a - // required field. + // StartDate: Date on which the campaign starts running. The start date can be + // any date. The hours, minutes, and seconds of the start date should not be + // set, as doing so will result in an error. This is a required field. StartDate string `json:"startDate,omitempty"` - - // SubaccountId: Subaccount ID of this campaign. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this campaign. This is a read-only field that + // can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TraffickerEmails: Campaign trafficker contact emails. TraffickerEmails []string `json:"traffickerEmails,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Campaign) MarshalJSON() ([]byte, error) { +func (s Campaign) MarshalJSON() ([]byte, error) { type NoMethod Campaign - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociation: Identifies a creative which has been -// associated with a given campaign. +// CampaignCreativeAssociation: Identifies a creative which has been associated +// with a given campaign. type CampaignCreativeAssociation struct { - // CreativeId: ID of the creative associated with the campaign. This is - // a required field. + // CreativeId: ID of the creative associated with the campaign. This is a + // required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociation". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociation". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreativeId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociationsListResponse: Campaign Creative -// Association List Response +// CampaignCreativeAssociationsListResponse: Campaign Creative Association List +// Response type CampaignCreativeAssociationsListResponse struct { - // CampaignCreativeAssociations: Campaign creative association - // collection + // CampaignCreativeAssociations: Campaign creative association collection CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociationsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "CampaignCreativeAssociations") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CampaignCreativeAssociations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CampaignsListResponse: Campaign List Response type CampaignsListResponse struct { // Campaigns: Campaign collection. Campaigns []*Campaign `json:"campaigns,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Campaigns") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Campaigns") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Campaigns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLog: Describes a change that a user has made to a resource. type ChangeLog struct { // AccountId: Account ID of the modified object. AccountId int64 `json:"accountId,omitempty,string"` - // Action: Action which caused the change. Action string `json:"action,omitempty"` - // ChangeTime: Time when the object was modified. ChangeTime string `json:"changeTime,omitempty"` - // FieldName: Field name of the object which changed. FieldName string `json:"fieldName,omitempty"` - // Id: ID of this change log. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLog". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLog". Kind string `json:"kind,omitempty"` - // NewValue: New value of the object field. NewValue string `json:"newValue,omitempty"` - // ObjectId: ID of the object of this change log. The object could be a // campaign, placement, ad, or other type. ObjectId int64 `json:"objectId,omitempty,string"` - // ObjectType: Object type of the change log. ObjectType string `json:"objectType,omitempty"` - // OldValue: Old value of the object field. OldValue string `json:"oldValue,omitempty"` - // SubaccountId: Subaccount ID of the modified object. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TransactionId: Transaction ID of this change log. When a single API - // call results in many changes, each change will have a separate ID in - // the change log but will share the same transactionId. + // TransactionId: Transaction ID of this change log. When a single API call + // results in many changes, each change will have a separate ID in the change + // log but will share the same transactionId. TransactionId int64 `json:"transactionId,omitempty,string"` - // UserProfileId: ID of the user who modified the object. UserProfileId int64 `json:"userProfileId,omitempty,string"` - - // UserProfileName: User profile name of the user who modified the - // object. + // UserProfileName: User profile name of the user who modified the object. UserProfileName string `json:"userProfileName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLog) MarshalJSON() ([]byte, error) { +func (s ChangeLog) MarshalJSON() ([]byte, error) { type NoMethod ChangeLog - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLogsListResponse: Change Log List Response type ChangeLogsListResponse struct { // ChangeLogs: Change log collection. ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLogsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLogsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ChangeLogs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChangeLogs") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChangeLogs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLogsListResponse) MarshalJSON() ([]byte, error) { +func (s ChangeLogsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ChangeLogsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CitiesListResponse: City List Response type CitiesListResponse struct { // Cities: City collection. Cities []*City `json:"cities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#citiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#citiesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CitiesListResponse) MarshalJSON() ([]byte, error) { +func (s CitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // City: Contains information about a city that can be targeted by ads. type City struct { // CountryCode: Country code of the country to which this city belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this city belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this city. This is the ID used for targeting and // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#city". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#city". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro region code of the metro region (DMA) to which this - // city belongs. + // MetroCode: Metro region code of the metro region (DMA) to which this city + // belongs. MetroCode string `json:"metroCode,omitempty"` - // MetroDmaId: ID of the metro region (DMA) to which this city belongs. MetroDmaId int64 `json:"metroDmaId,omitempty,string"` - // Name: Name of this city. Name string `json:"name,omitempty"` - // RegionCode: Region code of the region to which this city belongs. RegionCode string `json:"regionCode,omitempty"` - // RegionDartId: DART ID of the region to which this city belongs. RegionDartId int64 `json:"regionDartId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *City) MarshalJSON() ([]byte, error) { +func (s City) MarshalJSON() ([]byte, error) { type NoMethod City - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickTag: Creative Click Tag. type ClickTag struct { - // ClickThroughUrl: Parameter value for the specified click tag. This - // field contains a click-through url. + // ClickThroughUrl: Parameter value for the specified click tag. This field + // contains a click-through url. ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // EventName: Advertiser event name associated with the click tag. This - // field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // EventName: Advertiser event name associated with the click tag. This field + // is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. EventName string `json:"eventName,omitempty"` - - // Name: Parameter name for the specified click tag. For - // DISPLAY_IMAGE_GALLERY creative assets, this field must match the - // value of the creative asset's creativeAssetId.name field. + // Name: Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY + // creative assets, this field must match the value of the creative asset's + // creativeAssetId.name field. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickTag) MarshalJSON() ([]byte, error) { +func (s ClickTag) MarshalJSON() ([]byte, error) { type NoMethod ClickTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrl: Click-through URL type ClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - // - If defaultLandingPage is enabled then the campaign's default - // landing page URL is assigned to this field. - // - If defaultLandingPage is not enabled and a landingPageId is - // specified then that landing page's URL is assigned to this field. - // - If neither of the above cases apply, then the customClickThroughUrl - // is assigned to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: + // - If defaultLandingPage is enabled then the campaign's default landing page + // URL is assigned to this field. + // - If defaultLandingPage is not enabled and a landingPageId is specified then + // that landing page's URL is assigned to this field. + // - If neither of the above cases apply, then the customClickThroughUrl is + // assigned to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the - // defaultLandingPage field is set to false and the landingPageId field - // is left unset. + // defaultLandingPage field is set to false and the landingPageId field is left + // unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - - // DefaultLandingPage: Whether the campaign default landing page is - // used. + // DefaultLandingPage: Whether the campaign default landing page is used. DefaultLandingPage bool `json:"defaultLandingPage,omitempty"` - - // LandingPageId: ID of the landing page for the click-through URL. - // Applicable if the defaultLandingPage field is set to false. + // LandingPageId: ID of the landing page for the click-through URL. Applicable + // if the defaultLandingPage field is set to false. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrlSuffixProperties: Click Through URL Suffix settings. type ClickThroughUrlSuffixProperties struct { - // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads - // in this entity's scope. Must be less than 128 characters long. + // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads in this + // entity's scope. Must be less than 128 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // OverrideInheritedSuffix: Whether this entity should override the - // inherited click-through URL suffix with its own defined value. + // OverrideInheritedSuffix: Whether this entity should override the inherited + // click-through URL suffix with its own defined value. OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClickThroughUrlSuffix") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClickThroughUrlSuffix") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClickThroughUrlSuffix") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrlSuffixProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionClickThroughOverride: Companion Click-through override. type CompanionClickThroughOverride struct { - // ClickThroughUrl: Click-through URL of this companion click-through - // override. + // ClickThroughUrl: Click-through URL of this companion click-through override. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CreativeId: ID of the creative for this companion click-through - // override. + // CreativeId: ID of the creative for this companion click-through override. CreativeId int64 `json:"creativeId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { +func (s CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { type NoMethod CompanionClickThroughOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionSetting: Companion Settings type CompanionSetting struct { - // CompanionsDisabled: Whether companions are disabled for this - // placement. + // CompanionsDisabled: Whether companions are disabled for this placement. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - - // EnabledSizes: Whitelist of companion sizes to be served to this - // placement. Set this list to null or empty to serve all companion - // sizes. + // EnabledSizes: Whitelist of companion sizes to be served to this placement. + // Set this list to null or empty to serve all companion sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` - // ImageOnly: Whether to serve only static images as companions. ImageOnly bool `json:"imageOnly,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#companionSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#companionSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionsDisabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionsDisabled") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionSetting) MarshalJSON() ([]byte, error) { +func (s CompanionSetting) MarshalJSON() ([]byte, error) { type NoMethod CompanionSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompatibleFields: Represents a response to the queryCompatibleFields -// method. +// CompatibleFields: Represents a response to the queryCompatibleFields method. type CompatibleFields struct { // CrossDimensionReachReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type - // "CROSS_DIMENSION_REACH". + // compatible to be selected for a report of type "CROSS_DIMENSION_REACH". CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"` - - // FloodlightReportCompatibleFields: Contains items that are compatible - // to be selected for a report of type "FLOODLIGHT". + // FloodlightReportCompatibleFields: Contains items that are compatible to be + // selected for a report of type "FLOODLIGHT". FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#compatibleFields. Kind string `json:"kind,omitempty"` - - // PathToConversionReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type "PATH_TO_CONVERSION". + // PathToConversionReportCompatibleFields: Contains items that are compatible + // to be selected for a report of type "PATH_TO_CONVERSION". PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"` - // ReachReportCompatibleFields: Contains items that are compatible to be // selected for a report of type "REACH". ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"` - - // ReportCompatibleFields: Contains items that are compatible to be - // selected for a report of type "STANDARD". + // ReportCompatibleFields: Contains items that are compatible to be selected + // for a report of type "STANDARD". ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to unconditionally - // include in API requests. By default, fields with empty values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to unconditionally include in + // API requests. By default, fields with empty or default values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted from + // API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields + // for more details. NullFields []string `json:"-"` } -func (s *CompatibleFields) MarshalJSON() ([]byte, error) { +func (s CompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConnectionType: Contains information about an internet connection -// type that can be targeted by ads. Clients can use the connection type -// to target mobile vs. broadband users. +// ConnectionType: Contains information about an internet connection type that +// can be targeted by ads. Clients can use the connection type to target mobile +// vs. broadband users. type ConnectionType struct { // Id: ID of this connection type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionType". Kind string `json:"kind,omitempty"` - // Name: Name of this connection type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionType) MarshalJSON() ([]byte, error) { +func (s ConnectionType) MarshalJSON() ([]byte, error) { type NoMethod ConnectionType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConnectionTypesListResponse: Connection Type List Response @@ -3152,222 +2637,166 @@ type ConnectionTypesListResponse struct { // ConnectionTypes: Collection of connection types such as broadband and // mobile. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionTypesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConnectionTypes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConnectionTypes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConnectionTypes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { +func (s ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ConnectionTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContentCategoriesListResponse: Content Category List Response type ContentCategoriesListResponse struct { // ContentCategories: Content category collection. ContentCategories []*ContentCategory `json:"contentCategories,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategoriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategoriesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ContentCategories") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentCategories") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentCategories") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentCategories") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { +func (s ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ContentCategoriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentCategory: Organizes placements according to the contents of -// their associated webpages. +// ContentCategory: Organizes placements according to the contents of their +// associated webpages. type ContentCategory struct { - // AccountId: Account ID of this content category. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this content category. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this content category. This is a read-only, auto-generated - // field. + // Id: ID of this content category. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategory". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategory". Kind string `json:"kind,omitempty"` - - // Name: Name of this content category. This is a required field and - // must be less than 256 characters long and unique among content - // categories of the same account. + // Name: Name of this content category. This is a required field and must be + // less than 256 characters long and unique among content categories of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategory) MarshalJSON() ([]byte, error) { +func (s ContentCategory) MarshalJSON() ([]byte, error) { type NoMethod ContentCategory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Conversion: A Conversion represents when a user successfully performs -// a desired action after seeing an ad. +// Conversion: A Conversion represents when a user successfully performs a +// desired action after seeing an ad. type Conversion struct { - // ChildDirectedTreatment: Whether the conversion was directed toward - // children. + // ChildDirectedTreatment: Whether the conversion was directed toward children. ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"` - // CustomVariables: Custom floodlight variables. CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"` - // EncryptedUserId: The alphanumeric encrypted user ID. When set, - // encryptionInfo should also be specified. This field is mutually - // exclusive with encryptedUserIdCandidates[], mobileDeviceId and gclid. - // This or encryptedUserIdCandidates[] or mobileDeviceId or gclid is a - // required field. + // encryptionInfo should also be specified. This field is mutually exclusive + // with encryptedUserIdCandidates[], mobileDeviceId and gclid. This or + // encryptedUserIdCandidates[] or mobileDeviceId or gclid is a required field. EncryptedUserId string `json:"encryptedUserId,omitempty"` - - // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user - // IDs. Any user ID with exposure prior to the conversion timestamp will - // be used in the inserted conversion. If no such user ID is found then - // the conversion will be rejected with NO_COOKIE_MATCH_FOUND error. - // When set, encryptionInfo should also be specified. This field may - // only be used when calling batchinsert; it is not supported by - // batchupdate. This field is mutually exclusive with encryptedUserId, - // mobileDeviceId and gclid. This or encryptedUserId or mobileDeviceId - // or gclid is a required field. + // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user IDs. + // Any user ID with exposure prior to the conversion timestamp will be used in + // the inserted conversion. If no such user ID is found then the conversion + // will be rejected with NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo + // should also be specified. This field may only be used when calling + // batchinsert; it is not supported by batchupdate. This field is mutually + // exclusive with encryptedUserId, mobileDeviceId and gclid. This or + // encryptedUserId or mobileDeviceId or gclid is a required field. EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"` - - // FloodlightActivityId: Floodlight Activity ID of this conversion. This - // is a required field. + // FloodlightActivityId: Floodlight Activity ID of this conversion. This is a + // required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightConfigurationId: Floodlight Configuration ID of this - // conversion. This is a required field. + // FloodlightConfigurationId: Floodlight Configuration ID of this conversion. + // This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - // Gclid: The Google click ID. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This - // or encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId - // is a required field. + // encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This or + // encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId is a + // required field. Gclid string `json:"gclid,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversion". Kind string `json:"kind,omitempty"` - - // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to - // true, the conversion will be used for reporting but not targeting. - // This will prevent remarketing. + // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to true, the + // conversion will be used for reporting but not targeting. This will prevent + // remarketing. LimitAdTracking bool `json:"limitAdTracking,omitempty"` - - // MobileDeviceId: The mobile device ID. This field is mutually - // exclusive with encryptedUserId, encryptedUserIdCandidates[] and - // gclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // gclid is a required field. + // MobileDeviceId: The mobile device ID. This field is mutually exclusive with + // encryptedUserId, encryptedUserIdCandidates[] and gclid. This or + // encryptedUserId or encryptedUserIdCandidates[] or gclid is a required field. MobileDeviceId string `json:"mobileDeviceId,omitempty"` - // Ordinal: The ordinal of the conversion. Use this field to control how - // conversions of the same user and day are de-duplicated. This is a - // required field. + // conversions of the same user and day are de-duplicated. This is a required + // field. Ordinal string `json:"ordinal,omitempty"` - // Quantity: The quantity of the conversion. Quantity int64 `json:"quantity,omitempty,string"` - - // TimestampMicros: The timestamp of conversion, in Unix epoch micros. - // This is a required field. + // TimestampMicros: The timestamp of conversion, in Unix epoch micros. This is + // a required field. TimestampMicros int64 `json:"timestampMicros,omitempty,string"` - // Value: The value of the conversion. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ChildDirectedTreatment") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ChildDirectedTreatment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChildDirectedTreatment") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ChildDirectedTreatment") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Conversion) MarshalJSON() ([]byte, error) { +func (s Conversion) MarshalJSON() ([]byte, error) { type NoMethod Conversion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Conversion) UnmarshalJSON(data []byte) error { @@ -3384,8 +2813,8 @@ func (s *Conversion) UnmarshalJSON(data []byte) error { return nil } -// ConversionError: The error code and description for a conversion that -// failed to insert or update. +// ConversionError: The error code and description for a conversion that failed +// to insert or update. type ConversionError struct { // Code: The error code. // @@ -3395,351 +2824,269 @@ type ConversionError struct { // "NOT_FOUND" // "PERMISSION_DENIED" Code string `json:"code,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionError". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionError". Kind string `json:"kind,omitempty"` - // Message: A description of the error. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionError) MarshalJSON() ([]byte, error) { +func (s ConversionError) MarshalJSON() ([]byte, error) { type NoMethod ConversionError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConversionStatus: The original conversion that was inserted or -// updated and whether there were any errors. +// ConversionStatus: The original conversion that was inserted or updated and +// whether there were any errors. type ConversionStatus struct { // Conversion: The original conversion that was inserted or updated. Conversion *Conversion `json:"conversion,omitempty"` - // Errors: A list of errors related to this conversion. Errors []*ConversionError `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionStatus". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionStatus". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversion") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionStatus) MarshalJSON() ([]byte, error) { +func (s ConversionStatus) MarshalJSON() ([]byte, error) { type NoMethod ConversionStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertRequest: Insert Conversions Request. type ConversionsBatchInsertRequest struct { // Conversions: The set of conversions to insert. Conversions []*Conversion `json:"conversions,omitempty"` - - // EncryptionInfo: Describes how encryptedUserId or - // encryptedUserIdCandidates[] is encrypted. This is a required field if - // encryptedUserId or encryptedUserIdCandidates[] is used. + // EncryptionInfo: Describes how encryptedUserId or encryptedUserIdCandidates[] + // is encrypted. This is a required field if encryptedUserId or + // encryptedUserIdCandidates[] is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertResponse: Insert Conversions Response. type ConversionsBatchInsertResponse struct { // HasFailures: Indicates that some or all conversions failed to insert. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertResponse". Kind string `json:"kind,omitempty"` - - // Status: The insert status of each conversion. Statuses are returned - // in the same order that conversions are inserted. + // Status: The insert status of each conversion. Statuses are returned in the + // same order that conversions are inserted. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchUpdateRequest: Update Conversions Request. type ConversionsBatchUpdateRequest struct { // Conversions: The set of conversions to update. Conversions []*Conversion `json:"conversions,omitempty"` - // EncryptionInfo: Describes how encryptedUserId is encrypted. This is a // required field if encryptedUserId is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchUpdateRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchUpdateRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchUpdateResponse: Update Conversions Response. type ConversionsBatchUpdateResponse struct { // HasFailures: Indicates that some or all conversions failed to update. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchUpdateResponse". Kind string `json:"kind,omitempty"` - - // Status: The update status of each conversion. Statuses are returned - // in the same order that conversions are updated. + // Status: The update status of each conversion. Statuses are returned in the + // same order that conversions are updated. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchUpdateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CountriesListResponse: Country List Response type CountriesListResponse struct { // Countries: Country collection. Countries []*Country `json:"countries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#countriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#countriesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Countries") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Countries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Countries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CountriesListResponse) MarshalJSON() ([]byte, error) { +func (s CountriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CountriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Country: Contains information about a country that can be targeted by -// ads. +// Country: Contains information about a country that can be targeted by ads. type Country struct { // CountryCode: Country code. CountryCode string `json:"countryCode,omitempty"` - - // DartId: DART ID of this country. This is the ID used for targeting - // and generating reports. + // DartId: DART ID of this country. This is the ID used for targeting and + // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#country". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#country". Kind string `json:"kind,omitempty"` - // Name: Name of this country. Name string `json:"name,omitempty"` - - // SslEnabled: Whether ad serving supports secure servers in this - // country. + // SslEnabled: Whether ad serving supports secure servers in this country. SslEnabled bool `json:"sslEnabled,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Country) MarshalJSON() ([]byte, error) { +func (s Country) MarshalJSON() ([]byte, error) { type NoMethod Country - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Creative: Contains properties of a Creative. type Creative struct { - // AccountId: Account ID of this creative. This field, if left unset, - // will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // AccountId: Account ID of this creative. This field, if left unset, will be + // auto-generated for both insert and update operations. Applicable to all + // creative types. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether the creative is active. Applicable to all creative - // types. + // Active: Whether the creative is active. Applicable to all creative types. Active bool `json:"active,omitempty"` - - // AdParameters: Ad parameters user for VPAID creative. This is a - // read-only field. Applicable to the following creative types: all - // VPAID. + // AdParameters: Ad parameters user for VPAID creative. This is a read-only + // field. Applicable to the following creative types: all VPAID. AdParameters string `json:"adParameters,omitempty"` - - // AdTagKeys: Keywords for a Rich Media creative. Keywords let you - // customize the creative settings of a Rich Media ad running on your - // site without having to contact the advertiser. You can use keywords - // to dynamically change the look or functionality of a creative. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // AdTagKeys: Keywords for a Rich Media creative. Keywords let you customize + // the creative settings of a Rich Media ad running on your site without having + // to contact the advertiser. You can use keywords to dynamically change the + // look or functionality of a creative. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. AdTagKeys []string `json:"adTagKeys,omitempty"` - - // AdvertiserId: Advertiser ID of this creative. This is a required - // field. Applicable to all creative types. + // AdvertiserId: Advertiser ID of this creative. This is a required field. + // Applicable to all creative types. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AllowScriptAccess: Whether script access is allowed for this - // creative. This is a read-only and deprecated field which will - // automatically be set to true on update. Applicable to the following - // creative types: FLASH_INPAGE. + // AllowScriptAccess: Whether script access is allowed for this creative. This + // is a read-only and deprecated field which will automatically be set to true + // on update. Applicable to the following creative types: FLASH_INPAGE. AllowScriptAccess bool `json:"allowScriptAccess,omitempty"` - - // Archived: Whether the creative is archived. Applicable to all - // creative types. + // Archived: Whether the creative is archived. Applicable to all creative + // types. Archived bool `json:"archived,omitempty"` - - // ArtworkType: Type of artwork used for the creative. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // ArtworkType: Type of artwork used for the creative. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -3747,52 +3094,42 @@ type Creative struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // AuthoringSource: Source application where creative was authored. - // Presently, only DBM authored creatives will have this field set. - // Applicable to all creative types. + // AuthoringSource: Source application where creative was authored. Presently, + // only DBM authored creatives will have this field set. Applicable to all + // creative types. // // Possible values: // "CREATIVE_AUTHORING_SOURCE_DBM" // "CREATIVE_AUTHORING_SOURCE_DCM" // "CREATIVE_AUTHORING_SOURCE_STUDIO" AuthoringSource string `json:"authoringSource,omitempty"` - // AuthoringTool: Authoring tool for HTML5 banner creatives. This is a - // read-only field. Applicable to the following creative types: - // HTML5_BANNER. + // read-only field. Applicable to the following creative types: HTML5_BANNER. // // Possible values: // "NINJA" // "SWIFFY" AuthoringTool string `json:"authoringTool,omitempty"` - - // AutoAdvanceImages: Whether images are automatically advanced for - // image gallery creatives. Applicable to the following creative types: + // AutoAdvanceImages: Whether images are automatically advanced for image + // gallery creatives. Applicable to the following creative types: // DISPLAY_IMAGE_GALLERY. AutoAdvanceImages bool `json:"autoAdvanceImages,omitempty"` - - // BackgroundColor: The 6-character HTML color code, beginning with #, - // for the background of the window area where the Flash file is - // displayed. Default is white. Applicable to the following creative - // types: FLASH_INPAGE. + // BackgroundColor: The 6-character HTML color code, beginning with #, for the + // background of the window area where the Flash file is displayed. Default is + // white. Applicable to the following creative types: FLASH_INPAGE. BackgroundColor string `json:"backgroundColor,omitempty"` - - // BackupImageClickThroughUrl: Click-through URL for backup image. - // Applicable to ENHANCED_BANNER when the primary asset type is not - // HTML_IMAGE. + // BackupImageClickThroughUrl: Click-through URL for backup image. Applicable + // to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. BackupImageClickThroughUrl *CreativeClickThroughUrl `json:"backupImageClickThroughUrl,omitempty"` - - // BackupImageFeatures: List of feature dependencies that will cause a - // backup image to be served if the browser that serves the ad does not - // support them. Feature dependencies are features that a browser must - // be able to support in order to render your HTML5 creative asset - // correctly. This field is initially auto-generated to contain all - // features detected by Campaign Manager for all the assets of this - // creative and can then be modified by the client. To reset this field, - // copy over all the creativeAssets' detected features. Applicable to - // the following creative types: HTML5_BANNER. Applicable to DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageFeatures: List of feature dependencies that will cause a backup + // image to be served if the browser that serves the ad does not support them. + // Feature dependencies are features that a browser must be able to support in + // order to render your HTML5 creative asset correctly. This field is initially + // auto-generated to contain all features detected by Campaign Manager for all + // the assets of this creative and can then be modified by the client. To reset + // this field, copy over all the creativeAssets' detected features. Applicable + // to the following creative types: HTML5_BANNER. Applicable to DISPLAY when + // the primary asset type is not HTML_IMAGE. // // Possible values: // "APPLICATION_CACHE" @@ -3862,52 +3199,44 @@ type Creative struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" BackupImageFeatures []string `json:"backupImageFeatures,omitempty"` - - // BackupImageReportingLabel: Reporting label used for HTML5 banner - // backup image. Applicable to the following creative types: DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageReportingLabel: Reporting label used for HTML5 banner backup + // image. Applicable to the following creative types: DISPLAY when the primary + // asset type is not HTML_IMAGE. BackupImageReportingLabel string `json:"backupImageReportingLabel,omitempty"` - - // BackupImageTargetWindow: Target window for backup image. Applicable - // to the following creative types: FLASH_INPAGE and HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // BackupImageTargetWindow: Target window for backup image. Applicable to the + // following creative types: FLASH_INPAGE and HTML5_BANNER. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"` - // ClickTags: Click tags of the creative. For DISPLAY, FLASH_INPAGE, and - // HTML5_BANNER creatives, this is a subset of detected click tags for - // the assets associated with this creative. After creating a flash - // asset, detected click tags will be returned in the - // creativeAssetMetadata. When inserting the creative, populate the - // creative clickTags field using the creativeAssetMetadata.clickTags - // field. For DISPLAY_IMAGE_GALLERY creatives, there should be exactly - // one entry in this list for each image creative asset. A click tag is - // matched with a corresponding creative asset by matching the - // clickTag.name field with the creativeAsset.assetIdentifier.name - // field. Applicable to the following creative types: - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. Applicable to - // DISPLAY when the primary asset type is not HTML_IMAGE. + // HTML5_BANNER creatives, this is a subset of detected click tags for the + // assets associated with this creative. After creating a flash asset, detected + // click tags will be returned in the creativeAssetMetadata. When inserting the + // creative, populate the creative clickTags field using the + // creativeAssetMetadata.clickTags field. For DISPLAY_IMAGE_GALLERY creatives, + // there should be exactly one entry in this list for each image creative + // asset. A click tag is matched with a corresponding creative asset by + // matching the clickTag.name field with the creativeAsset.assetIdentifier.name + // field. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, + // FLASH_INPAGE, HTML5_BANNER. Applicable to DISPLAY when the primary asset + // type is not HTML_IMAGE. ClickTags []*ClickTag `json:"clickTags,omitempty"` - // CommercialId: Industry standard ID assigned to creative for reach and // frequency. Applicable to INSTREAM_VIDEO_REDIRECT creatives. CommercialId string `json:"commercialId,omitempty"` - - // CompanionCreatives: List of companion creatives assigned to an - // in-Stream video creative. Acceptable values include IDs of existing - // flash and image creatives. Applicable to the following creative - // types: all VPAID and all INSTREAM_VIDEO with dynamicAssetSelection - // set to false. + // CompanionCreatives: List of companion creatives assigned to an in-Stream + // video creative. Acceptable values include IDs of existing flash and image + // creatives. Applicable to the following creative types: all VPAID and all + // INSTREAM_VIDEO with dynamicAssetSelection set to false. CompanionCreatives googleapi.Int64s `json:"companionCreatives,omitempty"` - - // Compatibility: Compatibilities associated with this creative. This is - // a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to - // rendering either on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing - // creatives may have these compatibilities since new creatives will - // either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. Applicable to all creative types. + // Compatibility: Compatibilities associated with this creative. This is a + // read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either + // on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. Only pre-existing creatives may have these compatibilities + // since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL + // instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // developed with the VAST standard. Applicable to all creative + // types. // // Acceptable values are: // - "APP" @@ -3924,228 +3253,175 @@ type Creative struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility []string `json:"compatibility,omitempty"` - - // ConvertFlashToHtml5: Whether Flash assets associated with the - // creative need to be automatically converted to HTML5. This flag is - // enabled by default and users can choose to disable it if they don't - // want the system to generate and use HTML5 asset for this creative. - // Applicable to the following creative type: FLASH_INPAGE. Applicable - // to DISPLAY when the primary asset type is not HTML_IMAGE. + // ConvertFlashToHtml5: Whether Flash assets associated with the creative need + // to be automatically converted to HTML5. This flag is enabled by default and + // users can choose to disable it if they don't want the system to generate and + // use HTML5 asset for this creative. Applicable to the following creative + // type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. ConvertFlashToHtml5 bool `json:"convertFlashToHtml5,omitempty"` - - // CounterCustomEvents: List of counter events configured for the - // creative. For DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. + // CounterCustomEvents: List of counter events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"` - // CreativeAssetSelection: Required if dynamicAssetSelection is true. CreativeAssetSelection *CreativeAssetSelection `json:"creativeAssetSelection,omitempty"` - - // CreativeAssets: Assets associated with a creative. Applicable to all - // but the following creative types: INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT + // CreativeAssets: Assets associated with a creative. Applicable to all but the + // following creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, + // and REDIRECT CreativeAssets []*CreativeAsset `json:"creativeAssets,omitempty"` - - // CreativeFieldAssignments: Creative field assignments for this - // creative. Applicable to all creative types. + // CreativeFieldAssignments: Creative field assignments for this creative. + // Applicable to all creative types. CreativeFieldAssignments []*CreativeFieldAssignment `json:"creativeFieldAssignments,omitempty"` - - // CustomKeyValues: Custom key-values for a Rich Media creative. - // Key-values let you customize the creative settings of a Rich Media ad - // running on your site without having to contact the advertiser. You - // can use key-values to dynamically change the look or functionality of - // a creative. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // CustomKeyValues: Custom key-values for a Rich Media creative. Key-values let + // you customize the creative settings of a Rich Media ad running on your site + // without having to contact the advertiser. You can use key-values to + // dynamically change the look or functionality of a creative. Applicable to + // the following creative types: all RICH_MEDIA, and all VPAID. CustomKeyValues []string `json:"customKeyValues,omitempty"` - - // DynamicAssetSelection: Set this to true to enable the use of rules to - // target individual assets in this creative. When set to true - // creativeAssetSelection must be set. This also controls asset-level - // companions. When this is true, companion creatives should be assigned - // to creative assets. Learn more. Applicable to INSTREAM_VIDEO - // creatives. + // DynamicAssetSelection: Set this to true to enable the use of rules to target + // individual assets in this creative. When set to true creativeAssetSelection + // must be set. This also controls asset-level companions. When this is true, + // companion creatives should be assigned to creative assets. Learn more. + // Applicable to INSTREAM_VIDEO creatives. DynamicAssetSelection bool `json:"dynamicAssetSelection,omitempty"` - - // ExitCustomEvents: List of exit events configured for the creative. - // For DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags, For DISPLAY, an event is also - // created from the backupImageReportingLabel. Applicable to the - // following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and - // all VPAID. Applicable to DISPLAY when the primary asset type is not - // HTML_IMAGE. + // ExitCustomEvents: List of exit events configured for the creative. For + // DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only and + // auto-generated from clickTags, For DISPLAY, an event is also created from + // the backupImageReportingLabel. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset type is not HTML_IMAGE. ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"` - - // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF - // file communicate with either Flash Player or the program hosting - // Flash Player, such as a web browser. This is only triggered if - // allowScriptAccess field is true. Applicable to the following creative - // types: FLASH_INPAGE. + // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF file + // communicate with either Flash Player or the program hosting Flash Player, + // such as a web browser. This is only triggered if allowScriptAccess field is + // true. Applicable to the following creative types: FLASH_INPAGE. FsCommand *FsCommand `json:"fsCommand,omitempty"` - // HtmlCode: HTML code for the creative. This is a required field when - // applicable. This field is ignored if htmlCodeLocked is true. - // Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, - // and HTML5_BANNER, and all RICH_MEDIA. + // applicable. This field is ignored if htmlCodeLocked is true. Applicable to + // the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, + // and all RICH_MEDIA. HtmlCode string `json:"htmlCode,omitempty"` - // HtmlCodeLocked: Whether HTML code is generated by Campaign Manager or - // manually entered. Set to true to ignore changes to htmlCode. - // Applicable to the following creative types: FLASH_INPAGE and - // HTML5_BANNER. + // manually entered. Set to true to ignore changes to htmlCode. Applicable to + // the following creative types: FLASH_INPAGE and HTML5_BANNER. HtmlCodeLocked bool `json:"htmlCodeLocked,omitempty"` - // Id: ID of this creative. This is a read-only, auto-generated field. // Applicable to all creative types. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this creative. This - // is a read-only field. Applicable to all creative types. + // IdDimensionValue: Dimension value for the ID of this creative. This is a + // read-only field. Applicable to all creative types. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creative". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creative". Kind string `json:"kind,omitempty"` - // LastModifiedInfo: Creative last modification information. This is a // read-only field. Applicable to all creative types. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // LatestTraffickedCreativeId: Latest Studio trafficked creative ID - // associated with rich media and VPAID creatives. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // LatestTraffickedCreativeId: Latest Studio trafficked creative ID associated + // with rich media and VPAID creatives. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA, and all VPAID. LatestTraffickedCreativeId int64 `json:"latestTraffickedCreativeId,omitempty,string"` - - // Name: Name of the creative. This is a required field and must be less - // than 256 characters long. Applicable to all creative types. + // Name: Name of the creative. This is a required field and must be less than + // 256 characters long. Applicable to all creative types. Name string `json:"name,omitempty"` - - // OverrideCss: Override CSS value for rich media creatives. Applicable - // to the following creative types: all RICH_MEDIA. + // OverrideCss: Override CSS value for rich media creatives. Applicable to the + // following creative types: all RICH_MEDIA. OverrideCss string `json:"overrideCss,omitempty"` - - // PoliteLoadAssetId: The asset ID of the polite load image asset. - // Applicable to the creative type: DISPLAY. + // PoliteLoadAssetId: The asset ID of the polite load image asset. Applicable + // to the creative type: DISPLAY. PoliteLoadAssetId int64 `json:"politeLoadAssetId,omitempty,string"` - - // ProgressOffset: Amount of time to play the video before counting a - // view. Applicable to the following creative types: all INSTREAM_VIDEO. + // ProgressOffset: Amount of time to play the video before counting a view. + // Applicable to the following creative types: all INSTREAM_VIDEO. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // RedirectUrl: URL of hosted image or hosted video or another ad tag. - // For INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video - // redirect URL. The standard for a VAST (Video Ad Serving Template) ad - // response allows for a redirect link to another VAST 2.0 or 3.0 call. - // This is a required field when applicable. Applicable to the following - // creative types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT + // RedirectUrl: URL of hosted image or hosted video or another ad tag. For + // INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. + // The standard for a VAST (Video Ad Serving Template) ad response allows for a + // redirect link to another VAST 2.0 or 3.0 call. This is a required field when + // applicable. Applicable to the following creative types: DISPLAY_REDIRECT, + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and + // INSTREAM_VIDEO_REDIRECT RedirectUrl string `json:"redirectUrl,omitempty"` - - // RenderingId: ID of current rendering version. This is a read-only - // field. Applicable to all creative types. + // RenderingId: ID of current rendering version. This is a read-only field. + // Applicable to all creative types. RenderingId int64 `json:"renderingId,omitempty,string"` - - // RenderingIdDimensionValue: Dimension value for the rendering ID of - // this creative. This is a read-only field. Applicable to all creative - // types. + // RenderingIdDimensionValue: Dimension value for the rendering ID of this + // creative. This is a read-only field. Applicable to all creative types. RenderingIdDimensionValue *DimensionValue `json:"renderingIdDimensionValue,omitempty"` - - // RequiredFlashPluginVersion: The minimum required Flash plugin version - // for this creative. For example, 11.2.202.235. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // RequiredFlashPluginVersion: The minimum required Flash plugin version for + // this creative. For example, 11.2.202.235. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA, and all VPAID. RequiredFlashPluginVersion string `json:"requiredFlashPluginVersion,omitempty"` - // RequiredFlashVersion: The internal Flash version for this creative as - // calculated by Studio. This is a read-only field. Applicable to the - // following creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // calculated by Studio. This is a read-only field. Applicable to the following + // creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. RequiredFlashVersion int64 `json:"requiredFlashVersion,omitempty"` - - // Size: Size associated with this creative. When inserting or updating - // a creative either the size ID field or size width and height fields - // can be used. This is a required field when applicable; however for - // IMAGE, FLASH_INPAGE creatives, and for DISPLAY creatives with a - // primary asset of type HTML_IMAGE, if left blank, this field will be - // automatically set using the actual size of the associated image - // assets. Applicable to the following creative types: DISPLAY, - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all - // RICH_MEDIA. + // Size: Size associated with this creative. When inserting or updating a + // creative either the size ID field or size width and height fields can be + // used. This is a required field when applicable; however for IMAGE, + // FLASH_INPAGE creatives, and for DISPLAY creatives with a primary asset of + // type HTML_IMAGE, if left blank, this field will be automatically set using + // the actual size of the associated image assets. Applicable to the following + // creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, + // IMAGE, and all RICH_MEDIA. Size *Size `json:"size,omitempty"` - - // SkipOffset: Amount of time to play the video before the skip button - // appears. Applicable to the following creative types: all - // INSTREAM_VIDEO. + // SkipOffset: Amount of time to play the video before the skip button appears. + // Applicable to the following creative types: all INSTREAM_VIDEO. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can choose to skip the creative. - // Applicable to the following creative types: all INSTREAM_VIDEO and - // all VPAID. + // Skippable: Whether the user can choose to skip the creative. Applicable to + // the following creative types: all INSTREAM_VIDEO and all VPAID. Skippable bool `json:"skippable,omitempty"` - - // SslCompliant: Whether the creative is SSL-compliant. This is a - // read-only field. Applicable to all creative types. + // SslCompliant: Whether the creative is SSL-compliant. This is a read-only + // field. Applicable to all creative types. SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslOverride: Whether creative should be treated as SSL compliant even - // if the system scan shows it's not. Applicable to all creative types. + // SslOverride: Whether creative should be treated as SSL compliant even if the + // system scan shows it's not. Applicable to all creative types. SslOverride bool `json:"sslOverride,omitempty"` - - // StudioAdvertiserId: Studio advertiser ID associated with rich media - // and VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioAdvertiserId: Studio advertiser ID associated with rich media and + // VPAID creatives. This is a read-only field. Applicable to the following + // creative types: all RICH_MEDIA, and all VPAID. StudioAdvertiserId int64 `json:"studioAdvertiserId,omitempty,string"` - - // StudioCreativeId: Studio creative ID associated with rich media and - // VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioCreativeId: Studio creative ID associated with rich media and VPAID + // creatives. This is a read-only field. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. StudioCreativeId int64 `json:"studioCreativeId,omitempty,string"` - - // StudioTraffickedCreativeId: Studio trafficked creative ID associated - // with rich media and VPAID creatives. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // StudioTraffickedCreativeId: Studio trafficked creative ID associated with + // rich media and VPAID creatives. This is a read-only field. Applicable to the + // following creative types: all RICH_MEDIA, and all VPAID. StudioTraffickedCreativeId int64 `json:"studioTraffickedCreativeId,omitempty,string"` - - // SubaccountId: Subaccount ID of this creative. This field, if left - // unset, will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // SubaccountId: Subaccount ID of this creative. This field, if left unset, + // will be auto-generated for both insert and update operations. Applicable to + // all creative types. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record - // backup image impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record backup + // image impressions. Applicable to the following creative types: all + // RICH_MEDIA. ThirdPartyBackupImageImpressionsUrl string `json:"thirdPartyBackupImageImpressionsUrl,omitempty"` - - // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record - // rich media impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record rich media + // impressions. Applicable to the following creative types: all RICH_MEDIA. ThirdPartyRichMediaImpressionsUrl string `json:"thirdPartyRichMediaImpressionsUrl,omitempty"` - - // ThirdPartyUrls: Third-party URLs for tracking in-stream video - // creative events. Applicable to the following creative types: all - // INSTREAM_VIDEO and all VPAID. + // ThirdPartyUrls: Third-party URLs for tracking in-stream video creative + // events. Applicable to the following creative types: all INSTREAM_VIDEO and + // all VPAID. ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"` - - // TimerCustomEvents: List of timer events configured for the creative. - // For DISPLAY_IMAGE_GALLERY creatives, these are read-only and - // auto-generated from clickTags. Applicable to the following creative - // types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset is not HTML_IMAGE. + // TimerCustomEvents: List of timer events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset is not HTML_IMAGE. TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"` - - // TotalFileSize: Combined size of all creative assets. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // TotalFileSize: Combined size of all creative assets. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. TotalFileSize int64 `json:"totalFileSize,omitempty,string"` - - // Type: Type of this creative. This is a required field. Applicable to - // all creative types. + // Type: Type of this creative. This is a required field. Applicable to all + // creative types. // - // Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for - // existing creatives. New creatives should use DISPLAY as a replacement - // for these types. + // Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing + // creatives. New creatives should use DISPLAY as a replacement for these + // types. // // Possible values: // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" @@ -4174,55 +3450,44 @@ type Creative struct { // "VPAID_LINEAR_VIDEO" // "VPAID_NON_LINEAR_VIDEO" Type string `json:"type,omitempty"` - - // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable - // to the following creative types: INSTREAM_VIDEO and VPAID. + // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the + // following creative types: INSTREAM_VIDEO and VPAID. UniversalAdId *UniversalAdId `json:"universalAdId,omitempty"` - - // Version: The version number helps you keep track of multiple versions - // of your creative in your reports. The version number will always be + // Version: The version number helps you keep track of multiple versions of + // your creative in your reports. The version number will always be // auto-generated during insert operations to start at 1. For tracking - // creatives the version cannot be incremented and will always remain at - // 1. For all other creative types the version can be incremented only - // by 1 during update operations. In addition, the version will be - // automatically incremented by 1 when undergoing Rich Media creative - // merging. Applicable to all creative types. + // creatives the version cannot be incremented and will always remain at 1. For + // all other creative types the version can be incremented only by 1 during + // update operations. In addition, the version will be automatically + // incremented by 1 when undergoing Rich Media creative merging. Applicable to + // all creative types. Version int64 `json:"version,omitempty"` - - // VideoDescription: Description of the video ad. Applicable to the - // following creative types: all INSTREAM_VIDEO and all VPAID. + // VideoDescription: Description of the video ad. Applicable to the following + // creative types: all INSTREAM_VIDEO and all VPAID. VideoDescription string `json:"videoDescription,omitempty"` - - // VideoDuration: Creative video duration in seconds. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO, all RICH_MEDIA, and all VPAID. + // VideoDuration: Creative video duration in seconds. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO, all + // RICH_MEDIA, and all VPAID. VideoDuration float64 `json:"videoDuration,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Creative) MarshalJSON() ([]byte, error) { +func (s Creative) MarshalJSON() ([]byte, error) { type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Creative) UnmarshalJSON(data []byte) error { @@ -4241,19 +3506,16 @@ func (s *Creative) UnmarshalJSON(data []byte) error { // CreativeAsset: Creative Asset. type CreativeAsset struct { - // ActionScript3: Whether ActionScript3 is enabled for the flash asset. - // This is a read-only field. Applicable to the following creative type: - // FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is - // not HTML_IMAGE. + // ActionScript3: Whether ActionScript3 is enabled for the flash asset. This is + // a read-only field. Applicable to the following creative type: FLASH_INPAGE. + // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ActionScript3 bool `json:"actionScript3,omitempty"` - - // Active: Whether the video asset is active. This is a read-only field - // for VPAID_NON_LINEAR_VIDEO assets. Applicable to the following - // creative types: INSTREAM_VIDEO and all VPAID. + // Active: Whether the video asset is active. This is a read-only field for + // VPAID_NON_LINEAR_VIDEO assets. Applicable to the following creative types: + // INSTREAM_VIDEO and all VPAID. Active bool `json:"active,omitempty"` - - // Alignment: Possible alignments for an asset. This is a read-only - // field. Applicable to the following creative types: + // Alignment: Possible alignments for an asset. This is a read-only field. + // Applicable to the following creative types: // RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. // // Possible values: @@ -4262,9 +3524,8 @@ type CreativeAsset struct { // "ALIGNMENT_RIGHT" // "ALIGNMENT_TOP" Alignment string `json:"alignment,omitempty"` - - // ArtworkType: Artwork type of rich media creative. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // ArtworkType: Artwork type of rich media creative. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -4272,24 +3533,19 @@ type CreativeAsset struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // AssetIdentifier: Identifier of this asset. This is the same - // identifier returned during creative asset insert operation. This is a - // required field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // AssetIdentifier: Identifier of this asset. This is the same identifier + // returned during creative asset insert operation. This is a required field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // BackupImageExit: Exit event configured for the backup image. - // Applicable to the following creative types: all RICH_MEDIA. + // BackupImageExit: Exit event configured for the backup image. Applicable to + // the following creative types: all RICH_MEDIA. BackupImageExit *CreativeCustomEvent `json:"backupImageExit,omitempty"` - - // BitRate: Detected bit-rate for video asset. This is a read-only - // field. Applicable to the following creative types: INSTREAM_VIDEO and - // all VPAID. + // BitRate: Detected bit-rate for video asset. This is a read-only field. + // Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. BitRate int64 `json:"bitRate,omitempty"` - - // ChildAssetType: Rich media child asset type. This is a read-only - // field. Applicable to the following creative types: all VPAID. + // ChildAssetType: Rich media child asset type. This is a read-only field. + // Applicable to the following creative types: all VPAID. // // Possible values: // "CHILD_ASSET_TYPE_DATA" @@ -4297,30 +3553,26 @@ type CreativeAsset struct { // "CHILD_ASSET_TYPE_IMAGE" // "CHILD_ASSET_TYPE_VIDEO" ChildAssetType string `json:"childAssetType,omitempty"` - - // CollapsedSize: Size of an asset when collapsed. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA and - // all VPAID. Additionally, applicable to assets whose displayType is + // CollapsedSize: Size of an asset when collapsed. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA and all VPAID. + // Additionally, applicable to assets whose displayType is // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. CollapsedSize *Size `json:"collapsedSize,omitempty"` - - // CompanionCreativeIds: List of companion creatives assigned to an - // in-stream video creative asset. Acceptable values include IDs of - // existing flash and image creatives. Applicable to INSTREAM_VIDEO - // creative type with dynamicAssetSelection set to true. + // CompanionCreativeIds: List of companion creatives assigned to an in-stream + // video creative asset. Acceptable values include IDs of existing flash and + // image creatives. Applicable to INSTREAM_VIDEO creative type with + // dynamicAssetSelection set to true. CompanionCreativeIds googleapi.Int64s `json:"companionCreativeIds,omitempty"` - - // CustomStartTimeValue: Custom start time in seconds for making the - // asset visible. Applicable to the following creative types: all - // RICH_MEDIA. Value must be greater than or equal to 0. + // CustomStartTimeValue: Custom start time in seconds for making the asset + // visible. Applicable to the following creative types: all RICH_MEDIA. Value + // must be greater than or equal to 0. CustomStartTimeValue int64 `json:"customStartTimeValue,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. Applicable to the following creative types: HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by Campaign Manager. Feature dependencies are features that a + // browser must be able to support in order to render your HTML5 creative + // correctly. This is a read-only, auto-generated field. Applicable to the + // following creative types: HTML5_BANNER. Applicable to DISPLAY when the + // primary asset type is not HTML_IMAGE. // // Possible values: // "APPLICATION_CACHE" @@ -4390,9 +3642,8 @@ type CreativeAsset struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // DisplayType: Type of rich media asset. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA. + // DisplayType: Type of rich media asset. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DISPLAY_TYPE_BACKDROP" @@ -4406,157 +3657,128 @@ type CreativeAsset struct { // "ASSET_DISPLAY_TYPE_VPAID_LINEAR" // "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" DisplayType string `json:"displayType,omitempty"` - // Duration: Duration in seconds for which an asset will be displayed. // Applicable to the following creative types: INSTREAM_VIDEO and // VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. Duration int64 `json:"duration,omitempty"` - - // DurationType: Duration type for which an asset will be displayed. - // Applicable to the following creative types: all RICH_MEDIA. + // DurationType: Duration type for which an asset will be displayed. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DURATION_TYPE_AUTO" // "ASSET_DURATION_TYPE_CUSTOM" // "ASSET_DURATION_TYPE_NONE" DurationType string `json:"durationType,omitempty"` - - // ExpandedDimension: Detected expanded dimension for video asset. This - // is a read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ExpandedDimension: Detected expanded dimension for video asset. This is a + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO + // and all VPAID. ExpandedDimension *Size `json:"expandedDimension,omitempty"` - - // FileSize: File size associated with this creative asset. This is a - // read-only field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // FileSize: File size associated with this creative asset. This is a read-only + // field. Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. FileSize int64 `json:"fileSize,omitempty,string"` - // FlashVersion: Flash version of the asset. This is a read-only field. - // Applicable to the following creative types: FLASH_INPAGE, all - // RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Applicable to the following creative types: FLASH_INPAGE, all RICH_MEDIA, + // and all VPAID. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. FlashVersion int64 `json:"flashVersion,omitempty"` - // HideFlashObjects: Whether to hide Flash objects flag for an asset. // Applicable to the following creative types: all RICH_MEDIA. HideFlashObjects bool `json:"hideFlashObjects,omitempty"` - - // HideSelectionBoxes: Whether to hide selection boxes flag for an - // asset. Applicable to the following creative types: all RICH_MEDIA. + // HideSelectionBoxes: Whether to hide selection boxes flag for an asset. + // Applicable to the following creative types: all RICH_MEDIA. HideSelectionBoxes bool `json:"hideSelectionBoxes,omitempty"` - - // HorizontallyLocked: Whether the asset is horizontally locked. This is - // a read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // HorizontallyLocked: Whether the asset is horizontally locked. This is a + // read-only field. Applicable to the following creative types: all RICH_MEDIA. HorizontallyLocked bool `json:"horizontallyLocked,omitempty"` - - // Id: Numeric ID of this creative asset. This is a required field and - // should not be modified. Applicable to all but the following creative - // types: all REDIRECT and TRACKING_TEXT. + // Id: Numeric ID of this creative asset. This is a required field and should + // not be modified. Applicable to all but the following creative types: all + // REDIRECT and TRACKING_TEXT. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of the asset. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // MimeType: Detected MIME type for video asset. This is a read-only - // field. Applicable to the following creative types: INSTREAM_VIDEO and - // all VPAID. + // MimeType: Detected MIME type for video asset. This is a read-only field. + // Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. MimeType string `json:"mimeType,omitempty"` - - // Offset: Offset position for an asset in collapsed mode. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA and all VPAID. Additionally, only applicable to assets - // whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or - // ASSET_DISPLAY_TYPE_PEEL_DOWN. + // Offset: Offset position for an asset in collapsed mode. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA and all + // VPAID. Additionally, only applicable to assets whose displayType is + // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. Offset *OffsetPosition `json:"offset,omitempty"` - - // Orientation: Orientation of video asset. This is a read-only, - // auto-generated field. + // Orientation: Orientation of video asset. This is a read-only, auto-generated + // field. // // Possible values: // "LANDSCAPE" // "PORTRAIT" // "SQUARE" Orientation string `json:"orientation,omitempty"` - - // OriginalBackup: Whether the backup asset is original or changed by - // the user in Campaign Manager. Applicable to the following creative - // types: all RICH_MEDIA. + // OriginalBackup: Whether the backup asset is original or changed by the user + // in Campaign Manager. Applicable to the following creative types: all + // RICH_MEDIA. OriginalBackup bool `json:"originalBackup,omitempty"` - - // Position: Offset position for an asset. Applicable to the following - // creative types: all RICH_MEDIA. + // Position: Offset position for an asset. Applicable to the following creative + // types: all RICH_MEDIA. Position *OffsetPosition `json:"position,omitempty"` - - // PositionLeftUnit: Offset left unit for an asset. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // PositionLeftUnit: Offset left unit for an asset. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionLeftUnit string `json:"positionLeftUnit,omitempty"` - - // PositionTopUnit: Offset top unit for an asset. This is a read-only - // field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. - // Applicable to the following creative types: all RICH_MEDIA. + // PositionTopUnit: Offset top unit for an asset. This is a read-only field if + // the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the + // following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionTopUnit string `json:"positionTopUnit,omitempty"` - - // ProgressiveServingUrl: Progressive URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ProgressiveServingUrl: Progressive URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. ProgressiveServingUrl string `json:"progressiveServingUrl,omitempty"` - - // Pushdown: Whether the asset pushes down other content. Applicable to - // the following creative types: all RICH_MEDIA. Additionally, only - // applicable when the asset offsets are 0, the collapsedSize.width - // matches size.width, and the collapsedSize.height is less than - // size.height. + // Pushdown: Whether the asset pushes down other content. Applicable to the + // following creative types: all RICH_MEDIA. Additionally, only applicable when + // the asset offsets are 0, the collapsedSize.width matches size.width, and the + // collapsedSize.height is less than size.height. Pushdown bool `json:"pushdown,omitempty"` - - // PushdownDuration: Pushdown duration in seconds for an asset. - // Applicable to the following creative types: all - // RICH_MEDIA.Additionally, only applicable when the asset pushdown - // field is true, the offsets are 0, the collapsedSize.width matches - // size.width, and the collapsedSize.height is less than size.height. - // Acceptable values are 0 to 9.99, inclusive. + // PushdownDuration: Pushdown duration in seconds for an asset. Applicable to + // the following creative types: all RICH_MEDIA.Additionally, only applicable + // when the asset pushdown field is true, the offsets are 0, the + // collapsedSize.width matches size.width, and the collapsedSize.height is less + // than size.height. Acceptable values are 0 to 9.99, inclusive. PushdownDuration float64 `json:"pushdownDuration,omitempty"` - - // Role: Role of the asset in relation to creative. Applicable to all - // but the following creative types: all REDIRECT and TRACKING_TEXT. - // This is a required field. + // Role: Role of the asset in relation to creative. Applicable to all but the + // following creative types: all REDIRECT and TRACKING_TEXT. This is a required + // field. // PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, - // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple - // primary assets), and all VPAID creatives. - // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, - // and all VPAID creatives. Applicable to DISPLAY when the primary asset - // type is not HTML_IMAGE. - // ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE - // creatives. - // OTHER refers to assets from sources other than Campaign Manager, such - // as Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary + // assets), and all VPAID creatives. + // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all + // VPAID creatives. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. + // ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. + // OTHER refers to assets from sources other than Campaign Manager, such as + // Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID // creatives. - // PARENT_VIDEO refers to videos uploaded by the user in Campaign - // Manager and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO + // PARENT_VIDEO refers to videos uploaded by the user in Campaign Manager and + // is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO // creatives. // TRANSCODED_VIDEO refers to videos transcoded by Campaign Manager from // PARENT_VIDEO assets and is applicable to INSTREAM_VIDEO and // VPAID_LINEAR_VIDEO creatives. - // ALTERNATE_VIDEO refers to the Campaign Manager representation of - // child asset videos from Studio, and is applicable to - // VPAID_LINEAR_VIDEO creatives. These cannot be added or removed within - // Campaign Manager. + // ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset + // videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These + // cannot be added or removed within Campaign Manager. // For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and - // ALTERNATE_VIDEO assets that are marked active serve as backup in case - // the VPAID creative cannot be served. Only PARENT_VIDEO assets can be - // added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO - // creative. + // ALTERNATE_VIDEO assets that are marked active serve as backup in case the + // VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or + // removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. // // Possible values: // "ADDITIONAL_FLASH" @@ -4568,49 +3790,40 @@ type CreativeAsset struct { // "PRIMARY" // "TRANSCODED_VIDEO" Role string `json:"role,omitempty"` - - // Size: Size associated with this creative asset. This is a required - // field when applicable; however for IMAGE and FLASH_INPAGE, creatives - // if left blank, this field will be automatically set using the actual - // size of the associated image asset. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, - // IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Size: Size associated with this creative asset. This is a required field + // when applicable; however for IMAGE and FLASH_INPAGE, creatives if left + // blank, this field will be automatically set using the actual size of the + // associated image asset. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all + // RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether the asset is SSL-compliant. This is a read-only - // field. Applicable to all but the following creative types: all - // REDIRECT and TRACKING_TEXT. + // SslCompliant: Whether the asset is SSL-compliant. This is a read-only field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTimeType: Initial wait time type before making the asset - // visible. Applicable to the following creative types: all RICH_MEDIA. + // StartTimeType: Initial wait time type before making the asset visible. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_START_TIME_TYPE_CUSTOM" // "ASSET_START_TIME_TYPE_NONE" StartTimeType string `json:"startTimeType,omitempty"` - - // StreamingServingUrl: Streaming URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // StreamingServingUrl: Streaming URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. StreamingServingUrl string `json:"streamingServingUrl,omitempty"` - - // Transparency: Whether the asset is transparent. Applicable to the - // following creative types: all RICH_MEDIA. Additionally, only - // applicable to HTML5 assets. + // Transparency: Whether the asset is transparent. Applicable to the following + // creative types: all RICH_MEDIA. Additionally, only applicable to HTML5 + // assets. Transparency bool `json:"transparency,omitempty"` - // VerticallyLocked: Whether the asset is vertically locked. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // read-only field. Applicable to the following creative types: all RICH_MEDIA. VerticallyLocked bool `json:"verticallyLocked,omitempty"` - - // VideoDuration: Detected video duration for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // VideoDuration: Detected video duration for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. VideoDuration float64 `json:"videoDuration,omitempty"` - // WindowMode: Window mode options for flash assets. Applicable to the // following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, // RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and @@ -4621,43 +3834,34 @@ type CreativeAsset struct { // "TRANSPARENT" // "WINDOW" WindowMode string `json:"windowMode,omitempty"` - - // ZIndex: zIndex value of an asset. Applicable to the following - // creative types: all RICH_MEDIA.Additionally, only applicable to - // assets whose displayType is NOT one of the following types: - // ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable - // values are -999999999 to 999999999, inclusive. + // ZIndex: zIndex value of an asset. Applicable to the following creative + // types: all RICH_MEDIA.Additionally, only applicable to assets whose + // displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or + // ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, + // inclusive. ZIndex int64 `json:"zIndex,omitempty"` - - // ZipFilename: File name of zip file. This is a read-only field. - // Applicable to the following creative types: HTML5_BANNER. + // ZipFilename: File name of zip file. This is a read-only field. Applicable to + // the following creative types: HTML5_BANNER. ZipFilename string `json:"zipFilename,omitempty"` - - // ZipFilesize: Size of zip file. This is a read-only field. Applicable - // to the following creative types: HTML5_BANNER. + // ZipFilesize: Size of zip file. This is a read-only field. Applicable to the + // following creative types: HTML5_BANNER. ZipFilesize string `json:"zipFilesize,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionScript3") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionScript3") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionScript3") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAsset) MarshalJSON() ([]byte, error) { +func (s CreativeAsset) MarshalJSON() ([]byte, error) { type NoMethod CreativeAsset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CreativeAsset) UnmarshalJSON(data []byte) error { @@ -4678,15 +3882,13 @@ func (s *CreativeAsset) UnmarshalJSON(data []byte) error { // CreativeAssetId: Creative Asset ID. type CreativeAssetId struct { - // Name: Name of the creative asset. This is a required field while - // inserting an asset. After insertion, this assetIdentifier is used to - // identify the uploaded asset. Characters in the name must be - // alphanumeric or one of the following: ".-_ ". Spaces are allowed. + // Name: Name of the creative asset. This is a required field while inserting + // an asset. After insertion, this assetIdentifier is used to identify the + // uploaded asset. Characters in the name must be alphanumeric or one of the + // following: ".-_ ". Spaces are allowed. Name string `json:"name,omitempty"` - - // Type: Type of asset to upload. This is a required field. FLASH and - // IMAGE are no longer supported for new uploads. All image assets - // should use HTML_IMAGE. + // Type: Type of asset to upload. This is a required field. FLASH and IMAGE are + // no longer supported for new uploads. All image assets should use HTML_IMAGE. // // Possible values: // "FLASH" @@ -4695,47 +3897,37 @@ type CreativeAssetId struct { // "IMAGE" // "VIDEO" Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetId) MarshalJSON() ([]byte, error) { +func (s CreativeAssetId) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetMetadata: CreativeAssets contains properties of a -// creative asset file which will be uploaded or has already been -// uploaded. Refer to the creative sample code for how to upload assets -// and insert a creative. +// CreativeAssetMetadata: CreativeAssets contains properties of a creative +// asset file which will be uploaded or has already been uploaded. Refer to the +// creative sample code for how to upload assets and insert a creative. type CreativeAssetMetadata struct { // AssetIdentifier: ID of the creative asset. This is a required field. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // ClickTags: List of detected click tags for assets. This is a - // read-only auto-generated field. + // ClickTags: List of detected click tags for assets. This is a read-only + // auto-generated field. ClickTags []*ClickTag `json:"clickTags,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by Campaign Manager. Feature dependencies are features that a + // browser must be able to support in order to render your HTML5 creative + // correctly. This is a read-only, auto-generated field. // // Possible values: // "APPLICATION_CACHE" @@ -4805,22 +3997,16 @@ type CreativeAssetMetadata struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // Id: Numeric ID of the asset. This is a read-only, auto-generated - // field. + // Id: Numeric ID of the asset. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the numeric ID of the asset. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the numeric ID of the asset. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeAssetMetadata". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeAssetMetadata". Kind string `json:"kind,omitempty"` - - // WarnedValidationRules: Rules validated during code generation that - // generated a warning. This is a read-only, auto-generated - // field. + // WarnedValidationRules: Rules validated during code generation that generated + // a warning. This is a read-only, auto-generated field. // // Possible values are: // - "ADMOB_REFERENCED" @@ -4875,110 +4061,83 @@ type CreativeAssetMetadata struct { // "ZIP_INVALID" WarnedValidationRules []string `json:"warnedValidationRules,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AssetIdentifier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetIdentifier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssetIdentifier") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetMetadata) MarshalJSON() ([]byte, error) { +func (s CreativeAssetMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetSelection: Encapsulates the list of rules for asset -// selection and a default asset in case none of the rules match. -// Applicable to INSTREAM_VIDEO creatives. +// CreativeAssetSelection: Encapsulates the list of rules for asset selection +// and a default asset in case none of the rules match. Applicable to +// INSTREAM_VIDEO creatives. type CreativeAssetSelection struct { - // DefaultAssetId: A creativeAssets[].id. This should refer to one of - // the parent assets in this creative, and will be served if none of the - // rules match. This is a required field. + // DefaultAssetId: A creativeAssets[].id. This should refer to one of the + // parent assets in this creative, and will be served if none of the rules + // match. This is a required field. DefaultAssetId int64 `json:"defaultAssetId,omitempty,string"` - - // Rules: Rules determine which asset will be served to a viewer. Rules - // will be evaluated in the order in which they are stored in this list. - // This list must contain at least one rule. Applicable to - // INSTREAM_VIDEO creatives. + // Rules: Rules determine which asset will be served to a viewer. Rules will be + // evaluated in the order in which they are stored in this list. This list must + // contain at least one rule. Applicable to INSTREAM_VIDEO creatives. Rules []*Rule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultAssetId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultAssetId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DefaultAssetId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetSelection) MarshalJSON() ([]byte, error) { +func (s CreativeAssetSelection) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetSelection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeAssignment: Creative Assignment. type CreativeAssignment struct { - // Active: Whether this creative assignment is active. When true, the - // creative will be included in the ad's rotation. + // Active: Whether this creative assignment is active. When true, the creative + // will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // ApplyEventTags: Whether applicable event tags should fire when this - // creative assignment is rendered. If this value is unset when the ad - // is inserted or updated, it will default to true for all creative - // types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, - // and INSTREAM_VIDEO. + // ApplyEventTags: Whether applicable event tags should fire when this creative + // assignment is rendered. If this value is unset when the ad is inserted or + // updated, it will default to true for all creative types EXCEPT for + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. ApplyEventTags bool `json:"applyEventTags,omitempty"` - // ClickThroughUrl: Click-through URL of the creative assignment. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CompanionCreativeOverrides: Companion creative overrides for this - // creative assignment. Applicable to video ads. + // CompanionCreativeOverrides: Companion creative overrides for this creative + // assignment. Applicable to video ads. CompanionCreativeOverrides []*CompanionClickThroughOverride `json:"companionCreativeOverrides,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this - // creative assignment. Only one assignment per creative group number is - // allowed for a maximum of two assignments. + // CreativeGroupAssignments: Creative group assignments for this creative + // assignment. Only one assignment per creative group number is allowed for a + // maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeId: ID of the creative to be assigned. This is a required - // field. + // CreativeId: ID of the creative to be assigned. This is a required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // CreativeIdDimensionValue: Dimension value for the ID of the creative. - // This is a read-only, auto-generated field. + // CreativeIdDimensionValue: Dimension value for the ID of the creative. This + // is a read-only, auto-generated field. CreativeIdDimensionValue *DimensionValue `json:"creativeIdDimensionValue,omitempty"` - - // EndTime: Date and time that the assigned creative should stop - // serving. Must be later than the start time. + // EndTime: Date and time that the assigned creative should stop serving. Must + // be later than the start time. EndTime string `json:"endTime,omitempty"` - // RichMediaExitOverrides: Rich media exit overrides for this creative // assignment. // Applicable when the creative type is any of the following: @@ -4994,116 +4153,87 @@ type CreativeAssignment struct { // - VPAID_LINEAR // - VPAID_NON_LINEAR RichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"` - - // Sequence: Sequence number of the creative assignment, applicable when - // the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable - // values are 1 to 65535, inclusive. + // Sequence: Sequence number of the creative assignment, applicable when the + // rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 + // to 65535, inclusive. Sequence int64 `json:"sequence,omitempty"` - - // SslCompliant: Whether the creative to be assigned is SSL-compliant. - // This is a read-only field that is auto-generated when the ad is - // inserted or updated. + // SslCompliant: Whether the creative to be assigned is SSL-compliant. This is + // a read-only field that is auto-generated when the ad is inserted or updated. SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTime: Date and time that the assigned creative should start - // serving. + // StartTime: Date and time that the assigned creative should start serving. StartTime string `json:"startTime,omitempty"` - - // Weight: Weight of the creative assignment, applicable when the - // rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater - // than or equal to 1. + // Weight: Weight of the creative assignment, applicable when the rotation type + // is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeClickThroughUrl: Click-through URL type CreativeClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - // - If landingPageId is specified then that landing page's URL is - // assigned to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: + // - If landingPageId is specified then that landing page's URL is assigned to + // this field. // - Otherwise, the customClickThroughUrl is assigned to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the // landingPageId field is left unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - // LandingPageId: ID of the landing page for the click-through URL. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod CreativeClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeCustomEvent: Creative Custom Event. type CreativeCustomEvent struct { - // AdvertiserCustomEventId: Unique ID of this event used by Reporting - // and Data Transfer. This is a read-only field. + // AdvertiserCustomEventId: Unique ID of this event used by Reporting and Data + // Transfer. This is a read-only field. AdvertiserCustomEventId int64 `json:"advertiserCustomEventId,omitempty,string"` - // AdvertiserCustomEventName: User-entered name for the event. AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"` - - // AdvertiserCustomEventType: Type of the event. This is a read-only - // field. + // AdvertiserCustomEventType: Type of the event. This is a read-only field. // // Possible values: // "ADVERTISER_EVENT_COUNTER" // "ADVERTISER_EVENT_EXIT" // "ADVERTISER_EVENT_TIMER" AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"` - - // ArtworkLabel: Artwork label column, used to link events in Campaign - // Manager back to events in Studio. This is a required field and should - // not be modified after insertion. + // ArtworkLabel: Artwork label column, used to link events in Campaign Manager + // back to events in Studio. This is a required field and should not be + // modified after insertion. ArtworkLabel string `json:"artworkLabel,omitempty"` - - // ArtworkType: Artwork type used by the creative.This is a read-only - // field. + // ArtworkType: Artwork type used by the creative.This is a read-only field. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -5111,19 +4241,15 @@ type CreativeCustomEvent struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // ExitClickThroughUrl: Exit click-through URL for the event. This field - // is used only for exit events. + // ExitClickThroughUrl: Exit click-through URL for the event. This field is + // used only for exit events. ExitClickThroughUrl *CreativeClickThroughUrl `json:"exitClickThroughUrl,omitempty"` - - // Id: ID of this event. This is a required field and should not be - // modified after insertion. + // Id: ID of this event. This is a required field and should not be modified + // after insertion. Id int64 `json:"id,omitempty,string"` - - // PopupWindowProperties: Properties for rich media popup windows. This - // field is used only for exit events. + // PopupWindowProperties: Properties for rich media popup windows. This field + // is used only for exit events. PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"` - // TargetType: Target type used by the event. // // Possible values: @@ -5133,406 +4259,306 @@ type CreativeCustomEvent struct { // "TARGET_SELF" // "TARGET_TOP" TargetType string `json:"targetType,omitempty"` - - // VideoReportingId: Video reporting ID, used to differentiate multiple - // videos in a single creative. This is a read-only field. + // VideoReportingId: Video reporting ID, used to differentiate multiple videos + // in a single creative. This is a read-only field. VideoReportingId string `json:"videoReportingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdvertiserCustomEventId") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeCustomEvent) MarshalJSON() ([]byte, error) { +func (s CreativeCustomEvent) MarshalJSON() ([]byte, error) { type NoMethod CreativeCustomEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeField: Contains properties of a creative field. type CreativeField struct { - // AccountId: Account ID of this creative field. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative field. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative field. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative field. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Id: ID of this creative field. This is a read-only, auto-generated - // field. + // Id: ID of this creative field. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeField". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeField". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative field. This is a required field and must - // be less than 256 characters long and unique among creative fields of - // the same advertiser. + // Name: Name of this creative field. This is a required field and must be less + // than 256 characters long and unique among creative fields of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative field. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative field. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeField) MarshalJSON() ([]byte, error) { +func (s CreativeField) MarshalJSON() ([]byte, error) { type NoMethod CreativeField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldAssignment: Creative Field Assignment. type CreativeFieldAssignment struct { // CreativeFieldId: ID of the creative field. CreativeFieldId int64 `json:"creativeFieldId,omitempty,string"` - // CreativeFieldValueId: ID of the creative field value. CreativeFieldValueId int64 `json:"creativeFieldValueId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CreativeFieldId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeFieldAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValue: Contains properties of a creative field value. type CreativeFieldValue struct { - // Id: ID of this creative field value. This is a read-only, - // auto-generated field. + // Id: ID of this creative field value. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValue". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValue". Kind string `json:"kind,omitempty"` - - // Value: Value of this creative field value. It needs to be less than - // 256 characters in length and unique per creative field. + // Value: Value of this creative field value. It needs to be less than 256 + // characters in length and unique per creative field. Value string `json:"value,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValue) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValue) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValuesListResponse: Creative Field Value List Response type CreativeFieldValuesListResponse struct { // CreativeFieldValues: Creative field value collection. CreativeFieldValues []*CreativeFieldValue `json:"creativeFieldValues,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValuesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValuesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValuesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldsListResponse: Creative Field List Response type CreativeFieldsListResponse struct { // CreativeFields: Creative field collection. CreativeFields []*CreativeField `json:"creativeFields,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeFields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFields") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFields") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroup: Contains properties of a creative group. type CreativeGroup struct { - // AccountId: Account ID of this creative group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative group. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative group. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // GroupNumber: Subgroup of the creative group. Assign your creative - // groups to a subgroup in order to filter or manage them more easily. - // This field is required on insertion and is read-only after insertion. - // Acceptable values are 1 to 2, inclusive. + // GroupNumber: Subgroup of the creative group. Assign your creative groups to + // a subgroup in order to filter or manage them more easily. This field is + // required on insertion and is read-only after insertion. Acceptable values + // are 1 to 2, inclusive. GroupNumber int64 `json:"groupNumber,omitempty"` - - // Id: ID of this creative group. This is a read-only, auto-generated - // field. + // Id: ID of this creative group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative group. This is a required field and must - // be less than 256 characters long and unique among creative groups of - // the same advertiser. + // Name: Name of this creative group. This is a required field and must be less + // than 256 characters long and unique among creative groups of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroup) MarshalJSON() ([]byte, error) { +func (s CreativeGroup) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupAssignment: Creative Group Assignment. type CreativeGroupAssignment struct { // CreativeGroupId: ID of the creative group to be assigned. CreativeGroupId int64 `json:"creativeGroupId,omitempty,string"` - - // CreativeGroupNumber: Creative group number of the creative group - // assignment. + // CreativeGroupNumber: Creative group number of the creative group assignment. // // Possible values: // "CREATIVE_GROUP_ONE" // "CREATIVE_GROUP_TWO" CreativeGroupNumber string `json:"creativeGroupNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreativeGroupId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroupId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroupId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeGroupAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupsListResponse: Creative Group List Response type CreativeGroupsListResponse struct { // CreativeGroups: Creative group collection. CreativeGroups []*CreativeGroup `json:"creativeGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeGroups") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeOptimizationConfiguration: Creative optimization settings. type CreativeOptimizationConfiguration struct { - // Id: ID of this creative optimization config. This field is - // auto-generated when the campaign is inserted or updated. It can be - // null for existing campaigns. + // Id: ID of this creative optimization config. This field is auto-generated + // when the campaign is inserted or updated. It can be null for existing + // campaigns. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this creative optimization config. This is a required - // field and must be less than 129 characters long. + // Name: Name of this creative optimization config. This is a required field + // and must be less than 129 characters long. Name string `json:"name,omitempty"` - - // OptimizationActivitys: List of optimization activities associated - // with this configuration. + // OptimizationActivitys: List of optimization activities associated with this + // configuration. OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"` - // OptimizationModel: Optimization model for this configuration. // // Possible values: @@ -5542,52 +4568,42 @@ type CreativeOptimizationConfiguration struct { // "POST_IMPRESSION" // "VIDEO_COMPLETION" OptimizationModel string `json:"optimizationModel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { +func (s CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { type NoMethod CreativeOptimizationConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeRotation: Creative Rotation. type CreativeRotation struct { // CreativeAssignments: Creative assignments in this creative rotation. CreativeAssignments []*CreativeAssignment `json:"creativeAssignments,omitempty"` - - // CreativeOptimizationConfigurationId: Creative optimization - // configuration that is used by this ad. It should refer to one of the - // existing optimization configurations in the ad's campaign. If it is - // unset or set to 0, then the campaign's default optimization - // configuration will be used for this ad. + // CreativeOptimizationConfigurationId: Creative optimization configuration + // that is used by this ad. It should refer to one of the existing optimization + // configurations in the ad's campaign. If it is unset or set to 0, then the + // campaign's default optimization configuration will be used for this ad. CreativeOptimizationConfigurationId int64 `json:"creativeOptimizationConfigurationId,omitempty,string"` - - // Type: Type of creative rotation. Can be used to specify whether to - // use sequential or random rotation. + // Type: Type of creative rotation. Can be used to specify whether to use + // sequential or random rotation. // // Possible values: // "CREATIVE_ROTATION_TYPE_RANDOM" // "CREATIVE_ROTATION_TYPE_SEQUENTIAL" Type string `json:"type,omitempty"` - - // WeightCalculationStrategy: Strategy for calculating weights. Used - // with CREATIVE_ROTATION_TYPE_RANDOM. + // WeightCalculationStrategy: Strategy for calculating weights. Used with + // CREATIVE_ROTATION_TYPE_RANDOM. // // Possible values: // "WEIGHT_STRATEGY_CUSTOM" @@ -5595,159 +4611,123 @@ type CreativeRotation struct { // "WEIGHT_STRATEGY_HIGHEST_CTR" // "WEIGHT_STRATEGY_OPTIMIZED" WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreativeAssignments") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeAssignments") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeAssignments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeAssignments") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeRotation) MarshalJSON() ([]byte, error) { +func (s CreativeRotation) MarshalJSON() ([]byte, error) { type NoMethod CreativeRotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeSettings: Creative Settings type CreativeSettings struct { - // IFrameFooter: Header text for iFrames for this site. Must be less - // than or equal to 2000 characters long. + // IFrameFooter: Header text for iFrames for this site. Must be less than or + // equal to 2000 characters long. IFrameFooter string `json:"iFrameFooter,omitempty"` - - // IFrameHeader: Header text for iFrames for this site. Must be less - // than or equal to 2000 characters long. + // IFrameHeader: Header text for iFrames for this site. Must be less than or + // equal to 2000 characters long. IFrameHeader string `json:"iFrameHeader,omitempty"` - // ForceSendFields is a list of field names (e.g. "IFrameFooter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IFrameFooter") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IFrameFooter") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeSettings) MarshalJSON() ([]byte, error) { +func (s CreativeSettings) MarshalJSON() ([]byte, error) { type NoMethod CreativeSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativesListResponse: Creative List Response type CreativesListResponse struct { // Creatives: Creative collection. Creatives []*Creative `json:"creatives,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Creatives") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Creatives") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Creatives") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CrossDimensionReachReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type -// "CROSS_DIMENSION_REACH". +// compatible to be selected for a report of type "CROSS_DIMENSION_REACH". type CrossDimensionReachReportCompatibleFields struct { - // Breakdown: Dimensions which are compatible to be selected in the - // "breakdown" section of the report. + // Breakdown: Dimensions which are compatible to be selected in the "breakdown" + // section of the report. Breakdown []*Dimension `json:"breakdown,omitempty"` - - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#crossDimensionReachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // OverlapMetrics: Metrics which are compatible to be selected in the // "overlapMetricNames" section of the report. OverlapMetrics []*Metric `json:"overlapMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CrossDimensionReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomFloodlightVariable: A custom floodlight variable. type CustomFloodlightVariable struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customFloodlightVariable". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customFloodlightVariable". Kind string `json:"kind,omitempty"` - - // Type: The type of custom floodlight variable to supply a value for. - // These map to the "u[1-20]=" in the tags. + // Type: The type of custom floodlight variable to supply a value for. These + // map to the "u[1-20]=" in the tags. // // Possible values: // "U1" @@ -5851,80 +4831,62 @@ type CustomFloodlightVariable struct { // "U98" // "U99" Type string `json:"type,omitempty"` - - // Value: The value of the custom floodlight variable. The length of - // string must not exceed 50 characters. + // Value: The value of the custom floodlight variable. The length of string + // must not exceed 50 characters. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomFloodlightVariable) MarshalJSON() ([]byte, error) { +func (s CustomFloodlightVariable) MarshalJSON() ([]byte, error) { type NoMethod CustomFloodlightVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomRichMediaEvents: Represents a Custom Rich Media Events group. type CustomRichMediaEvents struct { - // FilteredEventIds: List of custom rich media event IDs. Dimension - // values must be all of type dfa:richMediaEventTypeIdAndName. + // FilteredEventIds: List of custom rich media event IDs. Dimension values must + // be all of type dfa:richMediaEventTypeIdAndName. FilteredEventIds []*DimensionValue `json:"filteredEventIds,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#customRichMediaEvents. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilteredEventIds") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FilteredEventIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FilteredEventIds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomRichMediaEvents) MarshalJSON() ([]byte, error) { +func (s CustomRichMediaEvents) MarshalJSON() ([]byte, error) { type NoMethod CustomRichMediaEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DateRange: Represents a date range. type DateRange struct { - // EndDate: The end date of the date range, inclusive. A string of the - // format: "yyyy-MM-dd". + // EndDate: The end date of the date range, inclusive. A string of the format: + // "yyyy-MM-dd". EndDate string `json:"endDate,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#dateRange. + // Kind: The kind of resource this is, in this case dfareporting#dateRange. Kind string `json:"kind,omitempty"` - - // RelativeDateRange: The date range relative to the date of when the - // report is run. + // RelativeDateRange: The date range relative to the date of when the report is + // run. // // Possible values: // "LAST_14_DAYS" @@ -5945,32 +4907,25 @@ type DateRange struct { // "YEAR_TO_DATE" // "YESTERDAY" RelativeDateRange string `json:"relativeDateRange,omitempty"` - - // StartDate: The start date of the date range, inclusive. A string of - // the format: "yyyy-MM-dd". + // StartDate: The start date of the date range, inclusive. A string of the + // format: "yyyy-MM-dd". StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DateRange) MarshalJSON() ([]byte, error) { +func (s DateRange) MarshalJSON() ([]byte, error) { type NoMethod DateRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DayPartTargeting: Day Part Targeting. @@ -5995,102 +4950,81 @@ type DayPartTargeting struct { // "TUESDAY" // "WEDNESDAY" DaysOfWeek []string `json:"daysOfWeek,omitempty"` - - // HoursOfDay: Hours of the day when the ad will serve, where 0 is - // midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with - // days of week, in which case the ad would serve during these hours on - // the specified days. For example if Monday, Wednesday, Friday are the - // days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is - // specified, the ad would serve Monday, Wednesdays, and Fridays at - // 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. + // HoursOfDay: Hours of the day when the ad will serve, where 0 is midnight to + // 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in + // which case the ad would serve during these hours on the specified days. For + // example if Monday, Wednesday, Friday are the days of week specified and + // 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, + // Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, + // inclusive. HoursOfDay []int64 `json:"hoursOfDay,omitempty"` - - // UserLocalTime: Whether or not to use the user's local time. If false, - // the America/New York time zone applies. + // UserLocalTime: Whether or not to use the user's local time. If false, the + // America/New York time zone applies. UserLocalTime bool `json:"userLocalTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "DaysOfWeek") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DaysOfWeek") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DaysOfWeek") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DayPartTargeting) MarshalJSON() ([]byte, error) { +func (s DayPartTargeting) MarshalJSON() ([]byte, error) { type NoMethod DayPartTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DefaultClickThroughEventTagProperties: Properties of inheriting and -// overriding the default click-through event tag. A campaign may -// override the event tag defined at the advertiser level, and an ad may -// also override the campaign's setting further. +// overriding the default click-through event tag. A campaign may override the +// event tag defined at the advertiser level, and an ad may also override the +// campaign's setting further. type DefaultClickThroughEventTagProperties struct { - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply to all ads in this entity's scope. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply to + // all ads in this entity's scope. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // OverrideInheritedEventTag: Whether this entity should override the - // inherited default click-through event tag with its own defined value. + // OverrideInheritedEventTag: Whether this entity should override the inherited + // default click-through event tag with its own defined value. OverrideInheritedEventTag bool `json:"overrideInheritedEventTag,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "DefaultClickThroughEventTagId") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultClickThroughEventTagId") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { +func (s DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { type NoMethod DefaultClickThroughEventTagProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeliverySchedule: Delivery Schedule. type DeliverySchedule struct { - // FrequencyCap: Limit on the number of times an individual user can be - // served the ad within a specified period of time. + // FrequencyCap: Limit on the number of times an individual user can be served + // the ad within a specified period of time. FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"` - - // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad - // will not serve after the end date and time. Otherwise the ad will - // continue to be served until it has reached its delivery goals. + // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad will not + // serve after the end date and time. Otherwise the ad will continue to be + // served until it has reached its delivery goals. HardCutoff bool `json:"hardCutoff,omitempty"` - - // ImpressionRatio: Impression ratio for this ad. This ratio determines - // how often each ad is served relative to the others. For example, if - // ad A has an impression ratio of 1 and ad B has an impression ratio of - // 3, then Campaign Manager will serve ad B three times as often as ad - // A. Acceptable values are 1 to 10, inclusive. + // ImpressionRatio: Impression ratio for this ad. This ratio determines how + // often each ad is served relative to the others. For example, if ad A has an + // impression ratio of 1 and ad B has an impression ratio of 3, then Campaign + // Manager will serve ad B three times as often as ad A. Acceptable values are + // 1 to 10, inclusive. ImpressionRatio int64 `json:"impressionRatio,omitempty,string"` - - // Priority: Serving priority of an ad, with respect to other ads. The - // lower the priority number, the greater the priority with which it is - // served. + // Priority: Serving priority of an ad, with respect to other ads. The lower + // the priority number, the greater the priority with which it is served. // // Possible values: // "AD_PRIORITY_01" @@ -6110,162 +5044,124 @@ type DeliverySchedule struct { // "AD_PRIORITY_15" // "AD_PRIORITY_16" Priority string `json:"priority,omitempty"` - // ForceSendFields is a list of field names (e.g. "FrequencyCap") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FrequencyCap") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FrequencyCap") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeliverySchedule) MarshalJSON() ([]byte, error) { +func (s DeliverySchedule) MarshalJSON() ([]byte, error) { type NoMethod DeliverySchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DfpSettings: Google Ad Manager Settings type DfpSettings struct { // DfpNetworkCode: Ad Manager network code for this directory site. DfpNetworkCode string `json:"dfpNetworkCode,omitempty"` - // DfpNetworkName: Ad Manager network name for this directory site. DfpNetworkName string `json:"dfpNetworkName,omitempty"` - // ProgrammaticPlacementAccepted: Whether this directory site accepts // programmatic placements. ProgrammaticPlacementAccepted bool `json:"programmaticPlacementAccepted,omitempty"` - - // PubPaidPlacementAccepted: Whether this directory site accepts - // publisher-paid tags. + // PubPaidPlacementAccepted: Whether this directory site accepts publisher-paid + // tags. PubPaidPlacementAccepted bool `json:"pubPaidPlacementAccepted,omitempty"` - - // PublisherPortalOnly: Whether this directory site is available only - // via Publisher Portal. + // PublisherPortalOnly: Whether this directory site is available only via + // Publisher Portal. PublisherPortalOnly bool `json:"publisherPortalOnly,omitempty"` - // ForceSendFields is a list of field names (e.g. "DfpNetworkCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DfpNetworkCode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DfpNetworkCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DfpSettings) MarshalJSON() ([]byte, error) { +func (s DfpSettings) MarshalJSON() ([]byte, error) { type NoMethod DfpSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Dimension: Represents a dimension. type Dimension struct { - // Kind: The kind of resource this is, in this case - // dfareporting#dimension. + // Kind: The kind of resource this is, in this case dfareporting#dimension. Kind string `json:"kind,omitempty"` - // Name: The dimension name, e.g. dfa:advertiser Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Dimension) MarshalJSON() ([]byte, error) { +func (s Dimension) MarshalJSON() ([]byte, error) { type NoMethod Dimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionFilter: Represents a dimension filter. type DimensionFilter struct { // DimensionName: The name of the dimension to filter. DimensionName string `json:"dimensionName,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionFilter. Kind string `json:"kind,omitempty"` - // Value: The value of the dimension to filter. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionFilter) MarshalJSON() ([]byte, error) { +func (s DimensionFilter) MarshalJSON() ([]byte, error) { type NoMethod DimensionFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValue: Represents a DimensionValue resource. type DimensionValue struct { // DimensionName: The name of the dimension. DimensionName string `json:"dimensionName,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID associated with the value if available. Id string `json:"id,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionValue. Kind string `json:"kind,omitempty"` - - // MatchType: Determines how the 'value' field is matched when - // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. + // MatchType: Determines how the 'value' field is matched when filtering. If + // not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is + // allowed as a placeholder for variable length character sequences, and it can + // be escaped with a backslash. Note, only paid search dimensions + // ('dfa:paidSearch*') allow a matchType other than EXACT. // // Possible values: // "BEGINS_WITH" @@ -6273,76 +5169,59 @@ type DimensionValue struct { // "EXACT" // "WILDCARD_EXPRESSION" MatchType string `json:"matchType,omitempty"` - // Value: The value of the dimension. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValue) MarshalJSON() ([]byte, error) { +func (s DimensionValue) MarshalJSON() ([]byte, error) { type NoMethod DimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueList: Represents the list of DimensionValue resources. type DimensionValueList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The dimension values returned in this response. Items []*DimensionValue `json:"items,omitempty"` - // Kind: The kind of list this is, in this case // dfareporting#dimensionValueList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through dimension - // values. To retrieve the next page of results, set the next request's - // "pageToken" to the value of this field. The page token is only valid - // for a limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through dimension values. To + // retrieve the next page of results, set the next request's "pageToken" to the + // value of this field. The page token is only valid for a limited amount of + // time and should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueList) MarshalJSON() ([]byte, error) { +func (s DimensionValueList) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueRequest: Represents a DimensionValuesRequest. @@ -6350,60 +5229,46 @@ type DimensionValueRequest struct { // DimensionName: The name of the dimension for which values should be // requested. DimensionName string `json:"dimensionName,omitempty"` - - // EndDate: The end date of the date range for which to retrieve - // dimension values. A string of the format "yyyy-MM-dd". + // EndDate: The end date of the date range for which to retrieve dimension + // values. A string of the format "yyyy-MM-dd". EndDate string `json:"endDate,omitempty"` - - // Filters: The list of filters by which to filter values. The filters - // are ANDed. + // Filters: The list of filters by which to filter values. The filters are + // ANDed. Filters []*DimensionFilter `json:"filters,omitempty"` - // Kind: The kind of request this is, in this case // dfareporting#dimensionValueRequest. Kind string `json:"kind,omitempty"` - - // StartDate: The start date of the date range for which to retrieve - // dimension values. A string of the format "yyyy-MM-dd". + // StartDate: The start date of the date range for which to retrieve dimension + // values. A string of the format "yyyy-MM-dd". StartDate string `json:"startDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueRequest) MarshalJSON() ([]byte, error) { +func (s DimensionValueRequest) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySite: DirectorySites contains properties of a website from -// the Site Directory. Sites need to be added to an account via the -// Sites resource before they can be assigned to a placement. +// DirectorySite: DirectorySites contains properties of a website from the Site +// Directory. Sites need to be added to an account via the Sites resource +// before they can be assigned to a placement. type DirectorySite struct { // Active: Whether this directory site is active. Active bool `json:"active,omitempty"` - // ContactAssignments: Directory site contacts. ContactAssignments []*DirectorySiteContactAssignment `json:"contactAssignments,omitempty"` - - // CountryId: Country ID of this directory site. This is a read-only - // field. + // CountryId: Country ID of this directory site. This is a read-only field. CountryId int64 `json:"countryId,omitempty,string"` - // CurrencyId: Currency ID of this directory site. This is a read-only // field. // Possible values are: @@ -6457,19 +5322,13 @@ type DirectorySite struct { // - "49" for MXN // - "50" for NGN CurrencyId int64 `json:"currencyId,omitempty,string"` - - // Description: Description of this directory site. This is a read-only - // field. + // Description: Description of this directory site. This is a read-only field. Description string `json:"description,omitempty"` - - // Id: ID of this directory site. This is a read-only, auto-generated - // field. + // Id: ID of this directory site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this directory site. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this directory site. This is + // a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - // InpageTagFormats: Tag types for regular placements. // // Acceptable values are: @@ -6484,9 +5343,7 @@ type DirectorySite struct { // "JAVASCRIPT_INPAGE" // "STANDARD" InpageTagFormats []string `json:"inpageTagFormats,omitempty"` - - // InterstitialTagFormats: Tag types for interstitial - // placements. + // InterstitialTagFormats: Tag types for interstitial placements. // // Acceptable values are: // - "IFRAME_JAVASCRIPT_INTERSTITIAL" @@ -6498,76 +5355,56 @@ type DirectorySite struct { // "INTERNAL_REDIRECT_INTERSTITIAL" // "JAVASCRIPT_INTERSTITIAL" InterstitialTagFormats []string `json:"interstitialTagFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySite". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySite". Kind string `json:"kind,omitempty"` - // Name: Name of this directory site. Name string `json:"name,omitempty"` - // ParentId: Parent directory site ID. ParentId int64 `json:"parentId,omitempty,string"` - // Settings: Directory site settings. Settings *DirectorySiteSettings `json:"settings,omitempty"` - // Url: URL of this directory site. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySite) MarshalJSON() ([]byte, error) { +func (s DirectorySite) MarshalJSON() ([]byte, error) { type NoMethod DirectorySite - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySiteContact: Contains properties of a Site Directory -// contact. +// DirectorySiteContact: Contains properties of a Site Directory contact. type DirectorySiteContact struct { // Address: Address of this directory site contact. Address string `json:"address,omitempty"` - // Email: Email address of this directory site contact. Email string `json:"email,omitempty"` - // FirstName: First name of this directory site contact. FirstName string `json:"firstName,omitempty"` - - // Id: ID of this directory site contact. This is a read-only, - // auto-generated field. + // Id: ID of this directory site contact. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySiteContact". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySiteContact". Kind string `json:"kind,omitempty"` - // LastName: Last name of this directory site contact. LastName string `json:"lastName,omitempty"` - // Phone: Phone number of this directory site contact. Phone string `json:"phone,omitempty"` - // Role: Directory site contact role. // // Possible values: @@ -6575,10 +5412,8 @@ type DirectorySiteContact struct { // "EDIT" // "VIEW" Role string `json:"role,omitempty"` - // Title: Title or designation of this directory site contact. Title string `json:"title,omitempty"` - // Type: Directory site contact type. // // Possible values: @@ -6588,31 +5423,24 @@ type DirectorySiteContact struct { // "TECHNICAL" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteContact) MarshalJSON() ([]byte, error) { +func (s DirectorySiteContact) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySiteContactAssignment: Directory Site Contact Assignment @@ -6620,198 +5448,150 @@ type DirectorySiteContactAssignment struct { // ContactId: ID of this directory site contact. This is a read-only, // auto-generated field. ContactId int64 `json:"contactId,omitempty,string"` - - // Visibility: Visibility of this directory site contact assignment. - // When set to PUBLIC this contact assignment is visible to all account - // and agency users; when set to PRIVATE it is visible only to the site. + // Visibility: Visibility of this directory site contact assignment. When set + // to PUBLIC this contact assignment is visible to all account and agency + // users; when set to PRIVATE it is visible only to the site. // // Possible values: // "PRIVATE" // "PUBLIC" Visibility string `json:"visibility,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContactId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContactId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContactId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteContactAssignment) MarshalJSON() ([]byte, error) { +func (s DirectorySiteContactAssignment) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteContactAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySiteContactsListResponse: Directory Site Contact List -// Response +// DirectorySiteContactsListResponse: Directory Site Contact List Response type DirectorySiteContactsListResponse struct { // DirectorySiteContacts: Directory site contact collection DirectorySiteContacts []*DirectorySiteContact `json:"directorySiteContacts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySiteContactsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySiteContactsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DirectorySiteContacts") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DirectorySiteContacts") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DirectorySiteContacts") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteContactsListResponse) MarshalJSON() ([]byte, error) { +func (s DirectorySiteContactsListResponse) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteContactsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySiteSettings: Directory Site Settings type DirectorySiteSettings struct { - // ActiveViewOptOut: Whether this directory site has disabled active - // view creatives. + // ActiveViewOptOut: Whether this directory site has disabled active view + // creatives. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - // DfpSettings: Directory site Ad Manager settings. DfpSettings *DfpSettings `json:"dfpSettings,omitempty"` - - // InstreamVideoPlacementAccepted: Whether this site accepts in-stream - // video ads. - InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` - - // InterstitialPlacementAccepted: Whether this site accepts interstitial + // InstreamVideoPlacementAccepted: Whether this site accepts in-stream video // ads. + InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` + // InterstitialPlacementAccepted: Whether this site accepts interstitial ads. InterstitialPlacementAccepted bool `json:"interstitialPlacementAccepted,omitempty"` - - // NielsenOcrOptOut: Whether this directory site has disabled Nielsen - // OCR reach ratings. + // NielsenOcrOptOut: Whether this directory site has disabled Nielsen OCR reach + // ratings. NielsenOcrOptOut bool `json:"nielsenOcrOptOut,omitempty"` - - // VerificationTagOptOut: Whether this directory site has disabled - // generation of Verification ins tags. + // VerificationTagOptOut: Whether this directory site has disabled generation + // of Verification ins tags. VerificationTagOptOut bool `json:"verificationTagOptOut,omitempty"` - - // VideoActiveViewOptOut: Whether this directory site has disabled - // active view for in-stream video creatives. This is a read-only field. + // VideoActiveViewOptOut: Whether this directory site has disabled active view + // for in-stream video creatives. This is a read-only field. VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteSettings) MarshalJSON() ([]byte, error) { +func (s DirectorySiteSettings) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySitesListResponse: Directory Site List Response type DirectorySitesListResponse struct { // DirectorySites: Directory site collection. DirectorySites []*DirectorySite `json:"directorySites,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DirectorySites") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DirectorySites") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DirectorySites") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySitesListResponse) MarshalJSON() ([]byte, error) { +func (s DirectorySitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod DirectorySitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DynamicTargetingKey: Contains properties of a dynamic targeting key. -// Dynamic targeting keys are unique, user-friendly labels, created at -// the advertiser level in DCM, that can be assigned to ads, creatives, -// and placements and used for targeting with Studio dynamic creatives. -// Use these labels instead of numeric Campaign Manager IDs (such as -// placement IDs) to save time and avoid errors in your dynamic feeds. +// DynamicTargetingKey: Contains properties of a dynamic targeting key. Dynamic +// targeting keys are unique, user-friendly labels, created at the advertiser +// level in DCM, that can be assigned to ads, creatives, and placements and +// used for targeting with Studio dynamic creatives. Use these labels instead +// of numeric Campaign Manager IDs (such as placement IDs) to save time and +// avoid errors in your dynamic feeds. type DynamicTargetingKey struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKey". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKey". Kind string `json:"kind,omitempty"` - - // Name: Name of this dynamic targeting key. This is a required field. - // Must be less than 256 characters long and cannot contain commas. All - // characters are converted to lowercase. + // Name: Name of this dynamic targeting key. This is a required field. Must be + // less than 256 characters long and cannot contain commas. All characters are + // converted to lowercase. Name string `json:"name,omitempty"` - - // ObjectId: ID of the object of this dynamic targeting key. This is a - // required field. + // ObjectId: ID of the object of this dynamic targeting key. This is a required + // field. ObjectId int64 `json:"objectId,omitempty,string"` - - // ObjectType: Type of the object of this dynamic targeting key. This is - // a required field. + // ObjectType: Type of the object of this dynamic targeting key. This is a + // required field. // // Possible values: // "OBJECT_AD" @@ -6820,69 +5600,52 @@ type DynamicTargetingKey struct { // "OBJECT_PLACEMENT" ObjectType string `json:"objectType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKey) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKey) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DynamicTargetingKeysListResponse: Dynamic Targeting Key List Response type DynamicTargetingKeysListResponse struct { // DynamicTargetingKeys: Dynamic targeting key collection. DynamicTargetingKeys []*DynamicTargetingKey `json:"dynamicTargetingKeys,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKeysListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKeysListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DynamicTargetingKeys") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTargetingKeys") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKeysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EncryptionInfo: A description of how user IDs are encrypted. @@ -6890,9 +5653,8 @@ type EncryptionInfo struct { // EncryptionEntityId: The encryption entity ID. This should match the // encryption configuration for ad serving or Data Transfer. EncryptionEntityId int64 `json:"encryptionEntityId,omitempty,string"` - - // EncryptionEntityType: The encryption entity type. This should match - // the encryption configuration for ad serving or Data Transfer. + // EncryptionEntityType: The encryption entity type. This should match the + // encryption configuration for ad serving or Data Transfer. // // Possible values: // "ADWORDS_CUSTOMER" @@ -6903,271 +5665,209 @@ type EncryptionInfo struct { // "DFP_NETWORK_CODE" // "ENCRYPTION_ENTITY_TYPE_UNKNOWN" EncryptionEntityType string `json:"encryptionEntityType,omitempty"` - - // EncryptionSource: Describes whether the encrypted cookie was received - // from ad serving (the %m macro) or from Data Transfer. + // EncryptionSource: Describes whether the encrypted cookie was received from + // ad serving (the %m macro) or from Data Transfer. // // Possible values: // "AD_SERVING" // "DATA_TRANSFER" // "ENCRYPTION_SCOPE_UNKNOWN" EncryptionSource string `json:"encryptionSource,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#encryptionInfo". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#encryptionInfo". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptionEntityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptionEntityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncryptionInfo) MarshalJSON() ([]byte, error) { +func (s EncryptionInfo) MarshalJSON() ([]byte, error) { type NoMethod EncryptionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTag: Contains properties of an event tag. type EventTag struct { - // AccountId: Account ID of this event tag. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this event tag. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this event tag. This field or the - // campaignId field is required on insertion. + // AdvertiserId: Advertiser ID of this event tag. This field or the campaignId + // field is required on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CampaignId: Campaign ID of this event tag. This field or the - // advertiserId field is required on insertion. + // CampaignId: Campaign ID of this event tag. This field or the advertiserId + // field is required on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // EnabledByDefault: Whether this event tag should be automatically - // enabled for all of the advertiser's campaigns and ads. + // EnabledByDefault: Whether this event tag should be automatically enabled for + // all of the advertiser's campaigns and ads. EnabledByDefault bool `json:"enabledByDefault,omitempty"` - - // ExcludeFromAdxRequests: Whether to remove this event tag from ads - // that are trafficked through Display & Video 360 to Ad Exchange. This - // may be useful if the event tag uses a pixel that is unapproved for Ad - // Exchange bids on one or more networks, such as the Google Display - // Network. + // ExcludeFromAdxRequests: Whether to remove this event tag from ads that are + // trafficked through Display & Video 360 to Ad Exchange. This may be useful if + // the event tag uses a pixel that is unapproved for Ad Exchange bids on one or + // more networks, such as the Google Display Network. ExcludeFromAdxRequests bool `json:"excludeFromAdxRequests,omitempty"` - // Id: ID of this event tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTag". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTag". Kind string `json:"kind,omitempty"` - - // Name: Name of this event tag. This is a required field and must be - // less than 256 characters long. + // Name: Name of this event tag. This is a required field and must be less than + // 256 characters long. Name string `json:"name,omitempty"` - - // SiteFilterType: Site filter type for this event tag. If no type is - // specified then the event tag will be applied to all sites. + // SiteFilterType: Site filter type for this event tag. If no type is specified + // then the event tag will be applied to all sites. // // Possible values: // "BLACKLIST" // "WHITELIST" SiteFilterType string `json:"siteFilterType,omitempty"` - // SiteIds: Filter list of site IDs associated with this event tag. The - // siteFilterType determines whether this is a whitelist or blacklist - // filter. + // siteFilterType determines whether this is a whitelist or blacklist filter. SiteIds googleapi.Int64s `json:"siteIds,omitempty"` - - // SslCompliant: Whether this tag is SSL-compliant or not. This is a - // read-only field. + // SslCompliant: Whether this tag is SSL-compliant or not. This is a read-only + // field. SslCompliant bool `json:"sslCompliant,omitempty"` - - // Status: Status of this event tag. Must be ENABLED for this event tag - // to fire. This is a required field. + // Status: Status of this event tag. Must be ENABLED for this event tag to + // fire. This is a required field. // // Possible values: // "DISABLED" // "ENABLED" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this event tag. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this event tag. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Type: Event tag type. Can be used to specify whether to use a - // third-party pixel, a third-party JavaScript URL, or a third-party - // click-through URL for either impression or click tracking. This is a - // required field. + // Type: Event tag type. Can be used to specify whether to use a third-party + // pixel, a third-party JavaScript URL, or a third-party click-through URL for + // either impression or click tracking. This is a required field. // // Possible values: // "CLICK_THROUGH_EVENT_TAG" // "IMPRESSION_IMAGE_EVENT_TAG" // "IMPRESSION_JAVASCRIPT_EVENT_TAG" Type string `json:"type,omitempty"` - - // Url: Payload URL for this event tag. The URL on a click-through event - // tag should have a landing page URL appended to the end of it. This - // field is required on insertion. + // Url: Payload URL for this event tag. The URL on a click-through event tag + // should have a landing page URL appended to the end of it. This field is + // required on insertion. Url string `json:"url,omitempty"` - - // UrlEscapeLevels: Number of times the landing page URL should be - // URL-escaped before being appended to the click-through event tag URL. - // Only applies to click-through event tags as specified by the event - // tag type. + // UrlEscapeLevels: Number of times the landing page URL should be URL-escaped + // before being appended to the click-through event tag URL. Only applies to + // click-through event tags as specified by the event tag type. UrlEscapeLevels int64 `json:"urlEscapeLevels,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTag) MarshalJSON() ([]byte, error) { +func (s EventTag) MarshalJSON() ([]byte, error) { type NoMethod EventTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagOverride: Event tag override information. type EventTagOverride struct { // Enabled: Whether this override is enabled. Enabled bool `json:"enabled,omitempty"` - - // Id: ID of this event tag override. This is a read-only, - // auto-generated field. + // Id: ID of this event tag override. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagOverride) MarshalJSON() ([]byte, error) { +func (s EventTagOverride) MarshalJSON() ([]byte, error) { type NoMethod EventTagOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagsListResponse: Event Tag List Response type EventTagsListResponse struct { // EventTags: Event tag collection. EventTags []*EventTag `json:"eventTags,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTagsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTagsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EventTags") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventTags") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventTags") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagsListResponse) MarshalJSON() ([]byte, error) { +func (s EventTagsListResponse) MarshalJSON() ([]byte, error) { type NoMethod EventTagsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// File: Represents a File resource. A file contains the metadata for a -// report run. It shows the status of the run and holds the URLs to the -// generated report data if the run is finished and the status is -// "REPORT_AVAILABLE". +// File: Represents a File resource. A file contains the metadata for a report +// run. It shows the status of the run and holds the URLs to the generated +// report data if the run is finished and the status is "REPORT_AVAILABLE". type File struct { - // DateRange: The date range for which the file has report data. The - // date range will always be the absolute date range for which the - // report is run. + // DateRange: The date range for which the file has report data. The date range + // will always be the absolute date range for which the report is run. DateRange *DateRange `json:"dateRange,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // FileName: The filename of the file. FileName string `json:"fileName,omitempty"` - - // Format: The output format of the report. Only available once the file - // is available. + // Format: The output format of the report. Only available once the file is + // available. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID of this report file. Id int64 `json:"id,omitempty,string"` - // Kind: The kind of resource this is, in this case dfareporting#file. Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp in milliseconds since epoch when this - // file was last modified. + // LastModifiedTime: The timestamp in milliseconds since epoch when this file + // was last modified. LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"` - // ReportId: The ID of the report this file was generated from. ReportId int64 `json:"reportId,omitempty,string"` - // Status: The status of the report file. // // Possible values: @@ -7176,255 +5876,194 @@ type File struct { // "PROCESSING" // "REPORT_AVAILABLE" Status string `json:"status,omitempty"` - // Urls: The URLs where the completed report file can be downloaded. Urls *FileUrls `json:"urls,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DateRange") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DateRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DateRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *File) MarshalJSON() ([]byte, error) { +func (s File) MarshalJSON() ([]byte, error) { type NoMethod File - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileUrls: The URLs where the completed report file can be downloaded. type FileUrls struct { // ApiUrl: The URL for downloading the report data through the API. ApiUrl string `json:"apiUrl,omitempty"` - - // BrowserUrl: The URL for downloading the report data through a - // browser. + // BrowserUrl: The URL for downloading the report data through a browser. BrowserUrl string `json:"browserUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApiUrl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiUrl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileUrls) MarshalJSON() ([]byte, error) { +func (s FileUrls) MarshalJSON() ([]byte, error) { type NoMethod FileUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileList: Represents the list of File resources. type FileList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The files returned in this response. Items []*File `json:"items,omitempty"` - // Kind: The kind of list this is, in this case dfareporting#fileList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through files. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through files. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileList) MarshalJSON() ([]byte, error) { +func (s FileList) MarshalJSON() ([]byte, error) { type NoMethod FileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Flight: Flight type Flight struct { // EndDate: Inventory item flight end date. EndDate string `json:"endDate,omitempty"` - // RateOrCost: Rate or cost of this flight. RateOrCost int64 `json:"rateOrCost,omitempty,string"` - // StartDate: Inventory item flight start date. StartDate string `json:"startDate,omitempty"` - // Units: Units of this flight. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Flight) MarshalJSON() ([]byte, error) { +func (s Flight) MarshalJSON() ([]byte, error) { type NoMethod Flight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivitiesGenerateTagResponse: Floodlight Activity -// GenerateTag Response +// FloodlightActivitiesGenerateTagResponse: Floodlight Activity GenerateTag +// Response type FloodlightActivitiesGenerateTagResponse struct { - // FloodlightActivityTag: Generated tag for this Floodlight activity. - // For global site tags, this is the event snippet. + // FloodlightActivityTag: Generated tag for this Floodlight activity. For + // global site tags, this is the event snippet. FloodlightActivityTag string `json:"floodlightActivityTag,omitempty"` - - // GlobalSiteTagGlobalSnippet: The global snippet section of a global - // site tag. The global site tag sets new cookies on your domain, which - // will store a unique identifier for a user or the ad click that - // brought the user to your site. Learn more. + // GlobalSiteTagGlobalSnippet: The global snippet section of a global site tag. + // The global site tag sets new cookies on your domain, which will store a + // unique identifier for a user or the ad click that brought the user to your + // site. Learn more. GlobalSiteTagGlobalSnippet string `json:"globalSiteTagGlobalSnippet,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesGenerateTagResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesGenerateTagResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityTag") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityTag") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FloodlightActivityTag") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesGenerateTagResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivitiesListResponse: Floodlight Activity List Response type FloodlightActivitiesListResponse struct { // FloodlightActivities: Floodlight activity collection. FloodlightActivities []*FloodlightActivity `json:"floodlightActivities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivities") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivities") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivities") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivities") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivity: Contains properties of a Floodlight activity. type FloodlightActivity struct { - // AccountId: Account ID of this floodlight activity. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity. If this - // field is left blank, the value will be copied over either from the - // activity group's advertiser or the existing activity's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity. If this field is + // left blank, the value will be copied over either from the activity group's + // advertiser or the existing activity's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CacheBustingType: Code type used for cache busting in the generated - // tag. Applicable only when floodlightActivityGroupType is COUNTER and + // CacheBustingType: Code type used for cache busting in the generated tag. + // Applicable only when floodlightActivityGroupType is COUNTER and // countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. // // Possible values: @@ -7434,7 +6073,6 @@ type FloodlightActivity struct { // "JSP" // "PHP" CacheBustingType string `json:"cacheBustingType,omitempty"` - // CountingMethod: Counting method for conversions for this floodlight // activity. This is a required field. // @@ -7445,114 +6083,88 @@ type FloodlightActivity struct { // "TRANSACTIONS_COUNTING" // "UNIQUE_COUNTING" CountingMethod string `json:"countingMethod,omitempty"` - // DefaultTags: Dynamic floodlight tags. DefaultTags []*FloodlightActivityDynamicTag `json:"defaultTags,omitempty"` - - // ExpectedUrl: URL where this tag will be deployed. If specified, must - // be less than 256 characters long. + // ExpectedUrl: URL where this tag will be deployed. If specified, must be less + // than 256 characters long. ExpectedUrl string `json:"expectedUrl,omitempty"` - - // FloodlightActivityGroupId: Floodlight activity group ID of this - // floodlight activity. This is a required field. + // FloodlightActivityGroupId: Floodlight activity group ID of this floodlight + // activity. This is a required field. FloodlightActivityGroupId int64 `json:"floodlightActivityGroupId,omitempty,string"` - - // FloodlightActivityGroupName: Name of the associated floodlight - // activity group. This is a read-only field. + // FloodlightActivityGroupName: Name of the associated floodlight activity + // group. This is a read-only field. FloodlightActivityGroupName string `json:"floodlightActivityGroupName,omitempty"` - - // FloodlightActivityGroupTagString: Tag string of the associated - // floodlight activity group. This is a read-only field. - FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` - - // FloodlightActivityGroupType: Type of the associated floodlight + // FloodlightActivityGroupTagString: Tag string of the associated floodlight // activity group. This is a read-only field. + FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` + // FloodlightActivityGroupType: Type of the associated floodlight activity + // group. This is a read-only field. // // Possible values: // "COUNTER" // "SALE" FloodlightActivityGroupType string `json:"floodlightActivityGroupType,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity. If this field is left blank, the value will be - // copied over either from the activity group's floodlight configuration - // or from the existing activity's floodlight configuration. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity. If this field is left blank, the value will be copied over either + // from the activity group's floodlight configuration or from the existing + // activity's floodlight configuration. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - - // FloodlightTagType: The type of Floodlight tag this activity will - // generate. This is a required field. + // FloodlightTagType: The type of Floodlight tag this activity will generate. + // This is a required field. // // Possible values: // "GLOBAL_SITE_TAG" // "IFRAME" // "IMAGE" FloodlightTagType string `json:"floodlightTagType,omitempty"` - // Hidden: Whether this activity is archived. Hidden bool `json:"hidden,omitempty"` - - // Id: ID of this floodlight activity. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight activity. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity. + // This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivity". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivity". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity. This is a required field. - // Must be less than 129 characters long and cannot contain quotes. + // Name: Name of this floodlight activity. This is a required field. Must be + // less than 129 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - // Notes: General notes or implementation instructions for the tag. Notes string `json:"notes,omitempty"` - // PublisherTags: Publisher dynamic floodlight tags. PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"` - // Secure: Whether this tag should use SSL. Secure bool `json:"secure,omitempty"` - - // SslCompliant: Whether the floodlight activity is SSL-compliant. This - // is a read-only field, its value detected by the system from the - // floodlight tags. + // SslCompliant: Whether the floodlight activity is SSL-compliant. This is a + // read-only field, its value detected by the system from the floodlight tags. SslCompliant bool `json:"sslCompliant,omitempty"` - // SslRequired: Whether this floodlight activity must be SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagFormat: Tag format type for the floodlight activity. If left - // blank, the tag format will default to HTML. + // TagFormat: Tag format type for the floodlight activity. If left blank, the + // tag format will default to HTML. // // Possible values: // "HTML" // "XHTML" TagFormat string `json:"tagFormat,omitempty"` - - // TagString: Value of the cat= parameter in the floodlight tag, which - // the ad servers use to identify the activity. This is optional: if - // empty, a new tag string will be generated for you. This string must - // be 1 to 8 characters long, with valid characters being - // [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among - // activities of the same activity group. This field is read-only after - // insertion. + // TagString: Value of the cat= parameter in the floodlight tag, which the ad + // servers use to identify the activity. This is optional: if empty, a new tag + // string will be generated for you. This string must be 1 to 8 characters + // long, with valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string + // must also be unique among activities of the same activity group. This field + // is read-only after insertion. TagString string `json:"tagString,omitempty"` - - // UserDefinedVariableTypes: List of the user-defined variables used by - // this conversion tag. These map to the "u[1-100]=" in the tags. Each - // of these can have a user defined type. + // UserDefinedVariableTypes: List of the user-defined variables used by this + // conversion tag. These map to the "u[1-100]=" in the tags. Each of these can + // have a user defined type. // Acceptable values are U1 to U100, inclusive. // // Possible values: @@ -7658,157 +6270,119 @@ type FloodlightActivity struct { // "U99" UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivity) MarshalJSON() ([]byte, error) { +func (s FloodlightActivity) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityDynamicTag: Dynamic Tag type FloodlightActivityDynamicTag struct { - // Id: ID of this dynamic tag. This is a read-only, auto-generated - // field. + // Id: ID of this dynamic tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // Name: Name of this tag. Name string `json:"name,omitempty"` - // Tag: Tag code. Tag string `json:"tag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivityGroup: Contains properties of a Floodlight activity -// group. +// FloodlightActivityGroup: Contains properties of a Floodlight activity group. type FloodlightActivityGroup struct { - // AccountId: Account ID of this floodlight activity group. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity group. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity group. If - // this field is left blank, the value will be copied over either from - // the floodlight configuration's advertiser or from the existing - // activity group's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity group. If this field + // is left blank, the value will be copied over either from the floodlight + // configuration's advertiser or from the existing activity group's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity group. This is a required field. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity group. This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this floodlight activity group. This is a read-only, // auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity group. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity + // group. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity group. This is a required - // field. Must be less than 65 characters long and cannot contain - // quotes. + // Name: Name of this floodlight activity group. This is a required field. Must + // be less than 65 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity group. This - // is a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity group. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagString: Value of the type= parameter in the floodlight tag, which - // the ad servers use to identify the activity group that the activity - // belongs to. This is optional: if empty, a new tag string will be - // generated for you. This string must be 1 to 8 characters long, with - // valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must - // also be unique among activity groups of the same floodlight - // configuration. This field is read-only after insertion. + // TagString: Value of the type= parameter in the floodlight tag, which the ad + // servers use to identify the activity group that the activity belongs to. + // This is optional: if empty, a new tag string will be generated for you. This + // string must be 1 to 8 characters long, with valid characters being + // [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activity + // groups of the same floodlight configuration. This field is read-only after + // insertion. TagString string `json:"tagString,omitempty"` - - // Type: Type of the floodlight activity group. This is a required field - // that is read-only after insertion. + // Type: Type of the floodlight activity group. This is a required field that + // is read-only after insertion. // // Possible values: // "COUNTER" // "SALE" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityGroupsListResponse: Floodlight Activity Group List @@ -7816,494 +6390,369 @@ func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type FloodlightActivityGroupsListResponse struct { // FloodlightActivityGroups: Floodlight activity group collection. FloodlightActivityGroups []*FloodlightActivityGroup `json:"floodlightActivityGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityGroups") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityGroups") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityPublisherDynamicTag: Publisher Dynamic Tag type FloodlightActivityPublisherDynamicTag struct { // ClickThrough: Whether this tag is applicable only for click-throughs. ClickThrough bool `json:"clickThrough,omitempty"` - - // DirectorySiteId: Directory site ID of this dynamic tag. This is a - // write-only field that can be used as an alternative to the siteId - // field. When this resource is retrieved, only the siteId field will be - // populated. + // DirectorySiteId: Directory site ID of this dynamic tag. This is a write-only + // field that can be used as an alternative to the siteId field. When this + // resource is retrieved, only the siteId field will be populated. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - // DynamicTag: Dynamic floodlight tag. DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"` - // SiteId: Site ID of this dynamic tag. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - // ViewThrough: Whether this tag is applicable only for view-throughs. ViewThrough bool `json:"viewThrough,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThrough") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThrough") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickThrough") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityPublisherDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfiguration: Contains properties of a Floodlight -// configuration. +// FloodlightConfiguration: Contains properties of a Floodlight configuration. type FloodlightConfiguration struct { - // AccountId: Account ID of this floodlight configuration. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight configuration. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of the parent advertiser of this - // floodlight configuration. + // AdvertiserId: Advertiser ID of the parent advertiser of this floodlight + // configuration. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // AnalyticsDataSharingEnabled: Whether advertiser data is shared with - // Google Analytics. + // AnalyticsDataSharingEnabled: Whether advertiser data is shared with Google + // Analytics. AnalyticsDataSharingEnabled bool `json:"analyticsDataSharingEnabled,omitempty"` - - // ExposureToConversionEnabled: Whether the exposure-to-conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure-to-conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // FirstDayOfWeek: Day that will be counted as the first day of the week - // in reports. This is a required field. + // FirstDayOfWeek: Day that will be counted as the first day of the week in + // reports. This is a required field. // // Possible values: // "MONDAY" // "SUNDAY" FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"` - - // Id: ID of this floodlight configuration. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight configuration. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this floodlight // configuration. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // InAppAttributionTrackingEnabled: Whether in-app attribution tracking - // is enabled. + // InAppAttributionTrackingEnabled: Whether in-app attribution tracking is + // enabled. InAppAttributionTrackingEnabled bool `json:"inAppAttributionTrackingEnabled,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfiguration". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfiguration". Kind string `json:"kind,omitempty"` - // LookbackConfiguration: Lookback window settings for this floodlight // configuration. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // NaturalSearchConversionAttributionOption: Types of attribution - // options for natural search conversions. + // NaturalSearchConversionAttributionOption: Types of attribution options for + // natural search conversions. // // Possible values: // "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" NaturalSearchConversionAttributionOption string `json:"naturalSearchConversionAttributionOption,omitempty"` - // OmnitureSettings: Settings for Campaign Manager Omniture integration. OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight configuration. This is - // a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight configuration. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagSettings: Configuration settings for dynamic and image floodlight - // tags. + // TagSettings: Configuration settings for dynamic and image floodlight tags. TagSettings *TagSettings `json:"tagSettings,omitempty"` - - // ThirdPartyAuthenticationTokens: List of third-party authentication - // tokens enabled for this configuration. - ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` - - // UserDefinedVariableConfigurations: List of user defined variables + // ThirdPartyAuthenticationTokens: List of third-party authentication tokens // enabled for this configuration. + ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` + // UserDefinedVariableConfigurations: List of user defined variables enabled + // for this configuration. UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfiguration) MarshalJSON() ([]byte, error) { +func (s FloodlightConfiguration) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfigurationsListResponse: Floodlight Configuration List -// Response +// FloodlightConfigurationsListResponse: Floodlight Configuration List Response type FloodlightConfigurationsListResponse struct { // FloodlightConfigurations: Floodlight configuration collection. FloodlightConfigurations []*FloodlightConfiguration `json:"floodlightConfigurations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfigurationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfigurationsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightConfigurations") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightConfigurations") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightConfigurations") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightConfigurations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfigurationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type "FlOODLIGHT". +// FloodlightReportCompatibleFields: Represents fields that are compatible to +// be selected for a report of type "FlOODLIGHT". type FloodlightReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#floodlightReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod FloodlightReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FrequencyCap: Frequency Cap. type FrequencyCap struct { - // Duration: Duration of time, in seconds, for this frequency cap. The - // maximum duration is 90 days. Acceptable values are 1 to 7776000, - // inclusive. + // Duration: Duration of time, in seconds, for this frequency cap. The maximum + // duration is 90 days. Acceptable values are 1 to 7776000, inclusive. Duration int64 `json:"duration,omitempty,string"` - - // Impressions: Number of times an individual user can be served the ad - // within the specified duration. Acceptable values are 1 to 15, - // inclusive. + // Impressions: Number of times an individual user can be served the ad within + // the specified duration. Acceptable values are 1 to 15, inclusive. Impressions int64 `json:"impressions,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FrequencyCap) MarshalJSON() ([]byte, error) { +func (s FrequencyCap) MarshalJSON() ([]byte, error) { type NoMethod FrequencyCap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FsCommand: FsCommand. type FsCommand struct { - // Left: Distance from the left of the browser.Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Left: Distance from the left of the browser.Applicable when positionOption + // is DISTANCE_FROM_TOP_LEFT_CORNER. Left int64 `json:"left,omitempty"` - // PositionOption: Position in the browser where the window will open. // // Possible values: // "CENTERED" // "DISTANCE_FROM_TOP_LEFT_CORNER" PositionOption string `json:"positionOption,omitempty"` - - // Top: Distance from the top of the browser. Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Top: Distance from the top of the browser. Applicable when positionOption is + // DISTANCE_FROM_TOP_LEFT_CORNER. Top int64 `json:"top,omitempty"` - // WindowHeight: Height of the window. WindowHeight int64 `json:"windowHeight,omitempty"` - // WindowWidth: Width of the window. WindowWidth int64 `json:"windowWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FsCommand) MarshalJSON() ([]byte, error) { +func (s FsCommand) MarshalJSON() ([]byte, error) { type NoMethod FsCommand - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GeoTargeting: Geographical Targeting. type GeoTargeting struct { - // Cities: Cities to be targeted. For each city only dartId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a city, do not target or exclude the country - // of the city, and do not target the metro or region of the city. + // Cities: Cities to be targeted. For each city only dartId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a city, do not target or exclude the country of the city, and + // do not target the metro or region of the city. Cities []*City `json:"cities,omitempty"` - - // Countries: Countries to be targeted or excluded from targeting, - // depending on the setting of the excludeCountries field. For each - // country only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting or - // excluding a country, do not target regions, cities, metros, or postal - // codes in the same country. + // Countries: Countries to be targeted or excluded from targeting, depending on + // the setting of the excludeCountries field. For each country only dartId is + // required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting or excluding a country, do not target + // regions, cities, metros, or postal codes in the same country. Countries []*Country `json:"countries,omitempty"` - - // ExcludeCountries: Whether or not to exclude the countries in the - // countries field from targeting. If false, the countries field refers - // to countries which will be targeted by the ad. + // ExcludeCountries: Whether or not to exclude the countries in the countries + // field from targeting. If false, the countries field refers to countries + // which will be targeted by the ad. ExcludeCountries bool `json:"excludeCountries,omitempty"` - - // Metros: Metros to be targeted. For each metro only dmaId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a metro, do not target or exclude the - // country of the metro. + // Metros: Metros to be targeted. For each metro only dmaId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a metro, do not target or exclude the country of the metro. Metros []*Metro `json:"metros,omitempty"` - - // PostalCodes: Postal codes to be targeted. For each postal code only - // id is required. The other fields are populated automatically when the - // ad is inserted or updated. If targeting a postal code, do not target - // or exclude the country of the postal code. - PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - - // Regions: Regions to be targeted. For each region only dartId is + // PostalCodes: Postal codes to be targeted. For each postal code only id is // required. The other fields are populated automatically when the ad is - // inserted or updated. If targeting a region, do not target or exclude - // the country of the region. + // inserted or updated. If targeting a postal code, do not target or exclude + // the country of the postal code. + PostalCodes []*PostalCode `json:"postalCodes,omitempty"` + // Regions: Regions to be targeted. For each region only dartId is required. + // The other fields are populated automatically when the ad is inserted or + // updated. If targeting a region, do not target or exclude the country of the + // region. Regions []*Region `json:"regions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoTargeting) MarshalJSON() ([]byte, error) { +func (s GeoTargeting) MarshalJSON() ([]byte, error) { type NoMethod GeoTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItem: Represents a buy from the Planning inventory store. type InventoryItem struct { // AccountId: Account ID of this inventory item. AccountId int64 `json:"accountId,omitempty,string"` - - // AdSlots: Ad slots of this inventory item. If this inventory item - // represents a standalone placement, there will be exactly one ad slot. - // If this inventory item represents a placement group, there will be - // more than one ad slot, each representing one child placement in that - // placement group. + // AdSlots: Ad slots of this inventory item. If this inventory item represents + // a standalone placement, there will be exactly one ad slot. If this inventory + // item represents a placement group, there will be more than one ad slot, each + // representing one child placement in that placement group. AdSlots []*AdSlot `json:"adSlots,omitempty"` - // AdvertiserId: Advertiser ID of this inventory item. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // ContentCategoryId: Content category ID of this inventory item. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // EstimatedClickThroughRate: Estimated click-through rate of this - // inventory item. - EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` - - // EstimatedConversionRate: Estimated conversion rate of this inventory + // EstimatedClickThroughRate: Estimated click-through rate of this inventory // item. + EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` + // EstimatedConversionRate: Estimated conversion rate of this inventory item. EstimatedConversionRate int64 `json:"estimatedConversionRate,omitempty,string"` - // Id: ID of this inventory item. Id int64 `json:"id,omitempty,string"` - // InPlan: Whether this inventory item is in plan. InPlan bool `json:"inPlan,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItem". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this inventory item. + // LastModifiedInfo: Information about the most recent modification of this + // inventory item. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this inventory item. For standalone inventory items, - // this is the same name as that of its only ad slot. For group - // inventory items, this can differ from the name of any of its ad - // slots. + // Name: Name of this inventory item. For standalone inventory items, this is + // the same name as that of its only ad slot. For group inventory items, this + // can differ from the name of any of its ad slots. Name string `json:"name,omitempty"` - // NegotiationChannelId: Negotiation channel ID of this inventory item. NegotiationChannelId int64 `json:"negotiationChannelId,omitempty,string"` - // OrderId: Order ID of this inventory item. OrderId int64 `json:"orderId,omitempty,string"` - // PlacementStrategyId: Placement strategy ID of this inventory item. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - // Pricing: Pricing of this inventory item. Pricing *Pricing `json:"pricing,omitempty"` - // ProjectId: Project ID of this inventory item. ProjectId int64 `json:"projectId,omitempty,string"` - // RfpId: RFP ID of this inventory item. RfpId int64 `json:"rfpId,omitempty,string"` - // SiteId: ID of the site this inventory item is associated with. SiteId int64 `json:"siteId,omitempty,string"` - // SubaccountId: Subaccount ID of this inventory item. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Type: Type of inventory item. // // Possible values: @@ -8311,378 +6760,289 @@ type InventoryItem struct { // "PLANNING_PLACEMENT_TYPE_REGULAR" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItem) MarshalJSON() ([]byte, error) { +func (s InventoryItem) MarshalJSON() ([]byte, error) { type NoMethod InventoryItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItemsListResponse: Inventory item List Response type InventoryItemsListResponse struct { // InventoryItems: Inventory item collection InventoryItems []*InventoryItem `json:"inventoryItems,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItemsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "InventoryItems") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventoryItems") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventoryItems") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItemsListResponse) MarshalJSON() ([]byte, error) { +func (s InventoryItemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod InventoryItemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // KeyValueTargetingExpression: Key Value Targeting Expression. type KeyValueTargetingExpression struct { // Expression: Keyword expression being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { +func (s KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod KeyValueTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LandingPage: Contains information about where a user's browser is -// taken after the user clicks an ad. +// LandingPage: Contains information about where a user's browser is taken +// after the user clicks an ad. type LandingPage struct { - // AdvertiserId: Advertiser ID of this landing page. This is a required - // field. + // AdvertiserId: Advertiser ID of this landing page. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // Archived: Whether this landing page has been archived. Archived bool `json:"archived,omitempty"` - - // Id: ID of this landing page. This is a read-only, auto-generated - // field. + // Id: ID of this landing page. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#landingPage". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#landingPage". Kind string `json:"kind,omitempty"` - - // Name: Name of this landing page. This is a required field. It must be - // less than 256 characters long. + // Name: Name of this landing page. This is a required field. It must be less + // than 256 characters long. Name string `json:"name,omitempty"` - // Url: URL of this landing page. This is a required field. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LandingPage) MarshalJSON() ([]byte, error) { +func (s LandingPage) MarshalJSON() ([]byte, error) { type NoMethod LandingPage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Language: Contains information about a language that can be targeted -// by ads. +// Language: Contains information about a language that can be targeted by ads. type Language struct { - // Id: Language ID of this language. This is the ID used for targeting - // and generating reports. + // Id: Language ID of this language. This is the ID used for targeting and + // generating reports. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#language". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#language". Kind string `json:"kind,omitempty"` - - // LanguageCode: Format of language code is an ISO 639 two-letter - // language code optionally followed by an underscore followed by an ISO - // 3166 code. Examples are "en" for English or "zh_CN" for Simplified - // Chinese. + // LanguageCode: Format of language code is an ISO 639 two-letter language code + // optionally followed by an underscore followed by an ISO 3166 code. Examples + // are "en" for English or "zh_CN" for Simplified Chinese. LanguageCode string `json:"languageCode,omitempty"` - // Name: Name of this language. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Language) MarshalJSON() ([]byte, error) { +func (s Language) MarshalJSON() ([]byte, error) { type NoMethod Language - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguageTargeting: Language Targeting. type LanguageTargeting struct { - // Languages: Languages that this ad targets. For each language only - // languageId is required. The other fields are populated automatically - // when the ad is inserted or updated. + // Languages: Languages that this ad targets. For each language only languageId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. Languages []*Language `json:"languages,omitempty"` - // ForceSendFields is a list of field names (e.g. "Languages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Languages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Languages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguageTargeting) MarshalJSON() ([]byte, error) { +func (s LanguageTargeting) MarshalJSON() ([]byte, error) { type NoMethod LanguageTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguagesListResponse: Language List Response type LanguagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#languagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#languagesListResponse". Kind string `json:"kind,omitempty"` - // Languages: Language collection. Languages []*Language `json:"languages,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguagesListResponse) MarshalJSON() ([]byte, error) { +func (s LanguagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod LanguagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LastModifiedInfo: Modification timestamp. type LastModifiedInfo struct { // Time: Timestamp of the last change in milliseconds since epoch. Time int64 `json:"time,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Time") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Time") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Time") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Time") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LastModifiedInfo) MarshalJSON() ([]byte, error) { +func (s LastModifiedInfo) MarshalJSON() ([]byte, error) { type NoMethod LastModifiedInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationClause: A group clause made up of list population terms // representing constraints joined by ORs. type ListPopulationClause struct { - // Terms: Terms of this list population clause. Each clause is made up - // of list population terms representing constraints and are joined by - // ORs. + // Terms: Terms of this list population clause. Each clause is made up of list + // population terms representing constraints and are joined by ORs. Terms []*ListPopulationTerm `json:"terms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Terms") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Terms") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Terms") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationClause) MarshalJSON() ([]byte, error) { +func (s ListPopulationClause) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationClause - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationRule: Remarketing List Population Rule. type ListPopulationRule struct { - // FloodlightActivityId: Floodlight activity ID associated with this - // rule. This field can be left blank. + // FloodlightActivityId: Floodlight activity ID associated with this rule. This + // field can be left blank. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightActivityName: Name of floodlight activity associated with - // this rule. This is a read-only, auto-generated field. + // FloodlightActivityName: Name of floodlight activity associated with this + // rule. This is a read-only, auto-generated field. FloodlightActivityName string `json:"floodlightActivityName,omitempty"` - - // ListPopulationClauses: Clauses that make up this list population - // rule. Clauses are joined by ANDs, and the clauses themselves are made - // up of list population terms which are joined by ORs. + // ListPopulationClauses: Clauses that make up this list population rule. + // Clauses are joined by ANDs, and the clauses themselves are made up of list + // population terms which are joined by ORs. ListPopulationClauses []*ListPopulationClause `json:"listPopulationClauses,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationRule) MarshalJSON() ([]byte, error) { +func (s ListPopulationRule) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationTerm: Remarketing List Population Rule Term. type ListPopulationTerm struct { - // Contains: Will be true if the term should check if the user is in the - // list and false if the term should check if the user is not in the - // list. This field is only relevant when type is set to - // LIST_MEMBERSHIP_TERM. False by default. + // Contains: Will be true if the term should check if the user is in the list + // and false if the term should check if the user is not in the list. This + // field is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by + // default. Contains bool `json:"contains,omitempty"` - - // Negation: Whether to negate the comparison result of this term during - // rule evaluation. This field is only relevant when type is left unset - // or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. + // Negation: Whether to negate the comparison result of this term during rule + // evaluation. This field is only relevant when type is left unset or set to + // CUSTOM_VARIABLE_TERM or REFERRER_TERM. Negation bool `json:"negation,omitempty"` - - // Operator: Comparison operator of this term. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Operator: Comparison operator of this term. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. // // Possible values: // "NUM_EQUALS" @@ -8693,763 +7053,579 @@ type ListPopulationTerm struct { // "STRING_CONTAINS" // "STRING_EQUALS" Operator string `json:"operator,omitempty"` - - // RemarketingListId: ID of the list in question. This field is only - // relevant when type is set to LIST_MEMBERSHIP_TERM. + // RemarketingListId: ID of the list in question. This field is only relevant + // when type is set to LIST_MEMBERSHIP_TERM. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - - // Type: List population term type determines the applicable fields in - // this object. If left unset or set to CUSTOM_VARIABLE_TERM, then - // variableName, variableFriendlyName, operator, value, and negation are - // applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and - // contains are applicable. If set to REFERRER_TERM then operator, - // value, and negation are applicable. + // Type: List population term type determines the applicable fields in this + // object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, + // variableFriendlyName, operator, value, and negation are applicable. If set + // to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. + // If set to REFERRER_TERM then operator, value, and negation are applicable. // // Possible values: // "CUSTOM_VARIABLE_TERM" // "LIST_MEMBERSHIP_TERM" // "REFERRER_TERM" Type string `json:"type,omitempty"` - - // Value: Literal to compare the variable to. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Value: Literal to compare the variable to. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. Value string `json:"value,omitempty"` - - // VariableFriendlyName: Friendly name of this term's variable. This is - // a read-only, auto-generated field. This field is only relevant when - // type is left unset or set to CUSTOM_VARIABLE_TERM. + // VariableFriendlyName: Friendly name of this term's variable. This is a + // read-only, auto-generated field. This field is only relevant when type is + // left unset or set to CUSTOM_VARIABLE_TERM. VariableFriendlyName string `json:"variableFriendlyName,omitempty"` - - // VariableName: Name of the variable (U1, U2, etc.) being compared in - // this term. This field is only relevant when type is set to null, + // VariableName: Name of the variable (U1, U2, etc.) being compared in this + // term. This field is only relevant when type is set to null, // CUSTOM_VARIABLE_TERM or REFERRER_TERM. VariableName string `json:"variableName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contains") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contains") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contains") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationTerm) MarshalJSON() ([]byte, error) { +func (s ListPopulationTerm) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationTerm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListTargetingExpression: Remarketing List Targeting Expression. type ListTargetingExpression struct { - // Expression: Expression describing which lists are being targeted by - // the ad. + // Expression: Expression describing which lists are being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListTargetingExpression) MarshalJSON() ([]byte, error) { +func (s ListTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod ListTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LookbackConfiguration: Lookback configuration settings. type LookbackConfiguration struct { - // ClickDuration: Lookback window, in days, from the last time a given - // user clicked on one of your ads. If you enter 0, clicks will not be - // considered as triggering events for floodlight tracking. If you leave + // ClickDuration: Lookback window, in days, from the last time a given user + // clicked on one of your ads. If you enter 0, clicks will not be considered as + // triggering events for floodlight tracking. If you leave this field blank, + // the default value for your account will be used. Acceptable values are 0 to + // 90, inclusive. + ClickDuration int64 `json:"clickDuration,omitempty"` + // PostImpressionActivitiesDuration: Lookback window, in days, from the last + // time a given user viewed one of your ads. If you enter 0, impressions will + // not be considered as triggering events for floodlight tracking. If you leave // this field blank, the default value for your account will be used. // Acceptable values are 0 to 90, inclusive. - ClickDuration int64 `json:"clickDuration,omitempty"` - - // PostImpressionActivitiesDuration: Lookback window, in days, from the - // last time a given user viewed one of your ads. If you enter 0, - // impressions will not be considered as triggering events for - // floodlight tracking. If you leave this field blank, the default value - // for your account will be used. Acceptable values are 0 to 90, - // inclusive. PostImpressionActivitiesDuration int64 `json:"postImpressionActivitiesDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickDuration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickDuration") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickDuration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LookbackConfiguration) MarshalJSON() ([]byte, error) { +func (s LookbackConfiguration) MarshalJSON() ([]byte, error) { type NoMethod LookbackConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Metric: Represents a metric. type Metric struct { // Kind: The kind of resource this is, in this case dfareporting#metric. Kind string `json:"kind,omitempty"` - // Name: The metric name, e.g. dfa:impressions Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metric) MarshalJSON() ([]byte, error) { +func (s Metric) MarshalJSON() ([]byte, error) { type NoMethod Metric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metro: Contains information about a metro region that can be targeted -// by ads. +// Metro: Contains information about a metro region that can be targeted by +// ads. type Metro struct { - // CountryCode: Country code of the country to which this metro region - // belongs. + // CountryCode: Country code of the country to which this metro region belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this metro region - // belongs. + // CountryDartId: DART ID of the country to which this metro region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this metro region. DartId int64 `json:"dartId,omitempty,string"` - - // DmaId: DMA ID of this metro region. This is the ID used for targeting - // and generating reports, and is equivalent to metro_code. + // DmaId: DMA ID of this metro region. This is the ID used for targeting and + // generating reports, and is equivalent to metro_code. DmaId int64 `json:"dmaId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metro". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metro". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro code of this metro region. This is equivalent to - // dma_id. + // MetroCode: Metro code of this metro region. This is equivalent to dma_id. MetroCode string `json:"metroCode,omitempty"` - // Name: Name of this metro region. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metro) MarshalJSON() ([]byte, error) { +func (s Metro) MarshalJSON() ([]byte, error) { type NoMethod Metro - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetrosListResponse: Metro List Response type MetrosListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metrosListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metrosListResponse". Kind string `json:"kind,omitempty"` - // Metros: Metro collection. Metros []*Metro `json:"metros,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetrosListResponse) MarshalJSON() ([]byte, error) { +func (s MetrosListResponse) MarshalJSON() ([]byte, error) { type NoMethod MetrosListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileCarrier: Contains information about a mobile carrier that can -// be targeted by ads. +// MobileCarrier: Contains information about a mobile carrier that can be +// targeted by ads. type MobileCarrier struct { // CountryCode: Country code of the country to which this mobile carrier // belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this mobile carrier - // belongs. + // CountryDartId: DART ID of the country to which this mobile carrier belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this mobile carrier. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarrier". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarrier". Kind string `json:"kind,omitempty"` - // Name: Name of this mobile carrier. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarrier) MarshalJSON() ([]byte, error) { +func (s MobileCarrier) MarshalJSON() ([]byte, error) { type NoMethod MobileCarrier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileCarriersListResponse: Mobile Carrier List Response type MobileCarriersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarriersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarriersListResponse". Kind string `json:"kind,omitempty"` - // MobileCarriers: Mobile carrier collection. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarriersListResponse) MarshalJSON() ([]byte, error) { +func (s MobileCarriersListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileCarriersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObjectFilter: Object Filter. type ObjectFilter struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#objectFilter". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#objectFilter". Kind string `json:"kind,omitempty"` - // ObjectIds: Applicable when status is ASSIGNED. The user has access to // objects with these object IDs. ObjectIds googleapi.Int64s `json:"objectIds,omitempty"` - - // Status: Status of the filter. NONE means the user has access to none - // of the objects. ALL means the user has access to all objects. - // ASSIGNED means the user has access to the objects with IDs in the - // objectIds list. + // Status: Status of the filter. NONE means the user has access to none of the + // objects. ALL means the user has access to all objects. ASSIGNED means the + // user has access to the objects with IDs in the objectIds list. // // Possible values: // "ALL" // "ASSIGNED" // "NONE" Status string `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectFilter) MarshalJSON() ([]byte, error) { +func (s ObjectFilter) MarshalJSON() ([]byte, error) { type NoMethod ObjectFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OffsetPosition: Offset Position. type OffsetPosition struct { // Left: Offset distance from left side of an asset or a window. Left int64 `json:"left,omitempty"` - // Top: Offset distance from top side of an asset or a window. Top int64 `json:"top,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OffsetPosition) MarshalJSON() ([]byte, error) { +func (s OffsetPosition) MarshalJSON() ([]byte, error) { type NoMethod OffsetPosition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OmnitureSettings: Omniture Integration Settings. type OmnitureSettings struct { // OmnitureCostDataEnabled: Whether placement cost data will be sent to - // Omniture. This property can be enabled only if - // omnitureIntegrationEnabled is true. + // Omniture. This property can be enabled only if omnitureIntegrationEnabled is + // true. OmnitureCostDataEnabled bool `json:"omnitureCostDataEnabled,omitempty"` - - // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. - // This property can be enabled only when the "Advanced Ad Serving" - // account setting is enabled. + // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. This + // property can be enabled only when the "Advanced Ad Serving" account setting + // is enabled. OmnitureIntegrationEnabled bool `json:"omnitureIntegrationEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "OmnitureCostDataEnabled") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OmnitureSettings) MarshalJSON() ([]byte, error) { +func (s OmnitureSettings) MarshalJSON() ([]byte, error) { type NoMethod OmnitureSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystem: Contains information about an operating system that -// can be targeted by ads. +// OperatingSystem: Contains information about an operating system that can be +// targeted by ads. type OperatingSystem struct { - // DartId: DART ID of this operating system. This is the ID used for - // targeting. + // DartId: DART ID of this operating system. This is the ID used for targeting. DartId int64 `json:"dartId,omitempty,string"` - // Desktop: Whether this operating system is for desktop. Desktop bool `json:"desktop,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystem". Kind string `json:"kind,omitempty"` - // Mobile: Whether this operating system is for mobile. Mobile bool `json:"mobile,omitempty"` - // Name: Name of this operating system. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DartId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DartId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DartId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystem) MarshalJSON() ([]byte, error) { +func (s OperatingSystem) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersion: Contains information about a particular -// version of an operating system that can be targeted by ads. +// OperatingSystemVersion: Contains information about a particular version of +// an operating system that can be targeted by ads. type OperatingSystemVersion struct { // Id: ID of this operating system version. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersion". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version (leftmost number) of this operating - // system version. + // MajorVersion: Major version (leftmost number) of this operating system + // version. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version (number after the first dot) of this - // operating system version. + // MinorVersion: Minor version (number after the first dot) of this operating + // system version. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this operating system version. Name string `json:"name,omitempty"` - // OperatingSystem: Operating system of this operating system version. OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersion) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersion) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersionsListResponse: Operating System Version List -// Response +// OperatingSystemVersionsListResponse: Operating System Version List Response type OperatingSystemVersionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersionsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystemVersions: Operating system version collection. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperatingSystemsListResponse: Operating System List Response type OperatingSystemsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystems: Operating system collection. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OptimizationActivity: Creative optimization activity. type OptimizationActivity struct { - // FloodlightActivityId: Floodlight activity ID of this optimization - // activity. This is a required field. + // FloodlightActivityId: Floodlight activity ID of this optimization activity. + // This is a required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // FloodlightActivityIdDimensionValue: Dimension value for the ID of the // floodlight activity. This is a read-only, auto-generated field. FloodlightActivityIdDimensionValue *DimensionValue `json:"floodlightActivityIdDimensionValue,omitempty"` - - // Weight: Weight associated with this optimization. The weight assigned - // will be understood in proportion to the weights assigned to the other + // Weight: Weight associated with this optimization. The weight assigned will + // be understood in proportion to the weights assigned to the other // optimization activities. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OptimizationActivity) MarshalJSON() ([]byte, error) { +func (s OptimizationActivity) MarshalJSON() ([]byte, error) { type NoMethod OptimizationActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Order: Describes properties of a Planning order. type Order struct { // AccountId: Account ID of this order. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // ApproverUserProfileIds: IDs for users that have to approve documents - // created for this order. + // ApproverUserProfileIds: IDs for users that have to approve documents created + // for this order. ApproverUserProfileIds googleapi.Int64s `json:"approverUserProfileIds,omitempty"` - // BuyerInvoiceId: Buyer invoice ID associated with this order. BuyerInvoiceId string `json:"buyerInvoiceId,omitempty"` - // BuyerOrganizationName: Name of the buyer organization. BuyerOrganizationName string `json:"buyerOrganizationName,omitempty"` - // Comments: Comments in this order. Comments string `json:"comments,omitempty"` - // Contacts: Contacts for this order. Contacts []*OrderContact `json:"contacts,omitempty"` - // Id: ID of this order. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#order". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#order". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this order. + // LastModifiedInfo: Information about the most recent modification of this + // order. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this order. Name string `json:"name,omitempty"` - // Notes: Notes of this order. Notes string `json:"notes,omitempty"` - - // PlanningTermId: ID of the terms and conditions template used in this - // order. + // PlanningTermId: ID of the terms and conditions template used in this order. PlanningTermId int64 `json:"planningTermId,omitempty,string"` - // ProjectId: Project ID of this order. ProjectId int64 `json:"projectId,omitempty,string"` - // SellerOrderId: Seller order ID associated with this order. SellerOrderId string `json:"sellerOrderId,omitempty"` - // SellerOrganizationName: Name of the seller organization. SellerOrganizationName string `json:"sellerOrganizationName,omitempty"` - // SiteId: Site IDs this order is associated with. SiteId googleapi.Int64s `json:"siteId,omitempty"` - // SiteNames: Free-form site names this order is associated with. SiteNames []string `json:"siteNames,omitempty"` - // SubaccountId: Subaccount ID of this order. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TermsAndConditions: Terms and conditions of this order. TermsAndConditions string `json:"termsAndConditions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Order) MarshalJSON() ([]byte, error) { +func (s Order) MarshalJSON() ([]byte, error) { type NoMethod Order - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderContact: Contact of an order. type OrderContact struct { - // ContactInfo: Free-form information about this contact. It could be - // any information related to this contact in addition to type, title, - // name, and signature user profile ID. + // ContactInfo: Free-form information about this contact. It could be any + // information related to this contact in addition to type, title, name, and + // signature user profile ID. ContactInfo string `json:"contactInfo,omitempty"` - // ContactName: Name of this contact. ContactName string `json:"contactName,omitempty"` - // ContactTitle: Title of this contact. ContactTitle string `json:"contactTitle,omitempty"` - // ContactType: Type of this contact. // // Possible values: @@ -9457,90 +7633,66 @@ type OrderContact struct { // "PLANNING_ORDER_CONTACT_BUYER_CONTACT" // "PLANNING_ORDER_CONTACT_SELLER_CONTACT" ContactType string `json:"contactType,omitempty"` - - // SignatureUserProfileId: ID of the user profile containing the - // signature that will be embedded into order documents. + // SignatureUserProfileId: ID of the user profile containing the signature that + // will be embedded into order documents. SignatureUserProfileId int64 `json:"signatureUserProfileId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ContactInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContactInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContactInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderContact) MarshalJSON() ([]byte, error) { +func (s OrderContact) MarshalJSON() ([]byte, error) { type NoMethod OrderContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocument: Contains properties of a Planning order document. type OrderDocument struct { // AccountId: Account ID of this order document. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order document. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AmendedOrderDocumentId: The amended order document ID of this order - // document. An order document can be created by optionally amending - // another order document so that the change history can be preserved. + // document. An order document can be created by optionally amending another + // order document so that the change history can be preserved. AmendedOrderDocumentId int64 `json:"amendedOrderDocumentId,omitempty,string"` - // ApprovedByUserProfileIds: IDs of users who have approved this order // document. ApprovedByUserProfileIds googleapi.Int64s `json:"approvedByUserProfileIds,omitempty"` - // Cancelled: Whether this order document is cancelled. Cancelled bool `json:"cancelled,omitempty"` - // CreatedInfo: Information about the creation of this order document. CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"` - // EffectiveDate: Effective date of this order document. EffectiveDate string `json:"effectiveDate,omitempty"` - // Id: ID of this order document. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocument". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocument". Kind string `json:"kind,omitempty"` - - // LastSentRecipients: List of email addresses that received the last - // sent document. - LastSentRecipients []string `json:"lastSentRecipients,omitempty"` - - // LastSentTime: Timestamp of the last email sent with this order + // LastSentRecipients: List of email addresses that received the last sent // document. + LastSentRecipients []string `json:"lastSentRecipients,omitempty"` + // LastSentTime: Timestamp of the last email sent with this order document. LastSentTime string `json:"lastSentTime,omitempty"` - // OrderId: ID of the order from which this order document is created. OrderId int64 `json:"orderId,omitempty,string"` - // ProjectId: Project ID of this order document. ProjectId int64 `json:"projectId,omitempty,string"` - // Signed: Whether this order document has been signed. Signed bool `json:"signed,omitempty"` - // SubaccountId: Subaccount ID of this order document. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Title: Title of this order document. Title string `json:"title,omitempty"` - // Type: Type of this order document // // Possible values: @@ -9548,203 +7700,151 @@ type OrderDocument struct { // "PLANNING_ORDER_TYPE_INSERTION_ORDER" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocument) MarshalJSON() ([]byte, error) { +func (s OrderDocument) MarshalJSON() ([]byte, error) { type NoMethod OrderDocument - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocumentsListResponse: Order document List Response type OrderDocumentsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocumentsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocumentsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // OrderDocuments: Order document collection OrderDocuments []*OrderDocument `json:"orderDocuments,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { +func (s OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderDocumentsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrdersListResponse: Order List Response type OrdersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ordersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ordersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Orders: Order collection. Orders []*Order `json:"orders,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersListResponse) MarshalJSON() ([]byte, error) { +func (s OrdersListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PathToConversionReportCompatibleFields: Represents fields that are // compatible to be selected for a report of type "PATH_TO_CONVERSION". type PathToConversionReportCompatibleFields struct { - // ConversionDimensions: Conversion dimensions which are compatible to - // be selected in the "conversionDimensions" section of the report. + // ConversionDimensions: Conversion dimensions which are compatible to be + // selected in the "conversionDimensions" section of the report. ConversionDimensions []*Dimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: Custom floodlight variables which are - // compatible to be selected in the "customFloodlightVariables" section - // of the report. + // CustomFloodlightVariables: Custom floodlight variables which are compatible + // to be selected in the "customFloodlightVariables" section of the report. CustomFloodlightVariables []*Dimension `json:"customFloodlightVariables,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#pathToConversionReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PerInteractionDimensions: Per-interaction dimensions which are - // compatible to be selected in the "perInteractionDimensions" section - // of the report. + // PerInteractionDimensions: Per-interaction dimensions which are compatible to + // be selected in the "perInteractionDimensions" section of the report. PerInteractionDimensions []*Dimension `json:"perInteractionDimensions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConversionDimensions") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ConversionDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConversionDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConversionDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod PathToConversionReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Placement: Contains properties of a placement. type Placement struct { - // AccountId: Account ID of this placement. This field can be left - // blank. + // AccountId: Account ID of this placement. This field can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdBlockingOptOut: Whether this placement opts out of ad blocking. - // When true, ad blocking is disabled for this placement. When false, - // the campaign and site settings take effect. + // AdBlockingOptOut: Whether this placement opts out of ad blocking. When true, + // ad blocking is disabled for this placement. When false, the campaign and + // site settings take effect. AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - - // AdvertiserId: Advertiser ID of this placement. This field can be left - // blank. + // AdvertiserId: Advertiser ID of this placement. This field can be left blank. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement. This field is a required - // field on insertion. + // CampaignId: Campaign ID of this placement. This field is a required field on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - // Comment: Comments for this placement. Comment string `json:"comment,omitempty"` - - // Compatibility: Placement compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices - // or in mobile apps for regular or interstitial ads respectively. APP - // and APP_INTERSTITIAL are no longer allowed for new placement - // insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. This field is required on insertion. + // Compatibility: Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL + // refer to rendering on desktop, on mobile devices or in mobile apps for + // regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no + // longer allowed for new placement insertions. Instead, use DISPLAY or + // DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video + // ads developed with the VAST standard. This field is required on insertion. // // Possible values: // "APP" @@ -9754,113 +7854,85 @@ type Placement struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement. + // ContentCategoryId: ID of the content category assigned to this placement. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement. This is - // a read-only field. + // CreateInfo: Information about the creation of this placement. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID of this placement. On insert, you - // must set either this field or the siteId field to specify the site - // associated with this placement. This is a required field that is - // read-only after insertion. + // DirectorySiteId: Directory site ID of this placement. On insert, you must + // set either this field or the siteId field to specify the site associated + // with this placement. This is a required field that is read-only after + // insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this placement. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this placement. This is a read-only, - // auto-generated field. + // KeyName: Key name of this placement. This is a read-only, auto-generated + // field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placement". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placement". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // LookbackConfiguration: Lookback window settings for this placement. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // Name: Name of this placement.This is a required field and must be - // less than 256 characters long. + // Name: Name of this placement.This is a required field and must be less than + // 256 characters long. Name string `json:"name,omitempty"` - - // PaymentApproved: Whether payment was approved for this placement. - // This is a read-only field relevant only to publisher-paid placements. + // PaymentApproved: Whether payment was approved for this placement. This is a + // read-only field relevant only to publisher-paid placements. PaymentApproved bool `json:"paymentApproved,omitempty"` - - // PaymentSource: Payment source for this placement. This is a required - // field that is read-only after insertion. + // PaymentSource: Payment source for this placement. This is a required field + // that is read-only after insertion. // // Possible values: // "PLACEMENT_AGENCY_PAID" // "PLACEMENT_PUBLISHER_PAID" PaymentSource string `json:"paymentSource,omitempty"` - // PlacementGroupId: ID of this placement's group, if applicable. PlacementGroupId int64 `json:"placementGroupId,omitempty,string"` - - // PlacementGroupIdDimensionValue: Dimension value for the ID of the - // placement group. This is a read-only, auto-generated field. + // PlacementGroupIdDimensionValue: Dimension value for the ID of the placement + // group. This is a read-only, auto-generated field. PlacementGroupIdDimensionValue *DimensionValue `json:"placementGroupIdDimensionValue,omitempty"` - // PlacementStrategyId: ID of the placement strategy assigned to this // placement. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement. This field is - // required on insertion, specifically subfields startDate, endDate and - // pricingType. + // PricingSchedule: Pricing schedule of this placement. This field is required + // on insertion, specifically subfields startDate, endDate and pricingType. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // Primary: Whether this placement is the primary placement of a - // roadblock (placement group). You cannot change this field from true - // to false. Setting this field to true will automatically set the - // primary field on the original primary placement of the roadblock to - // false, and it will automatically set the roadblock's - // primaryPlacementId field to the ID of this placement. + // Primary: Whether this placement is the primary placement of a roadblock + // (placement group). You cannot change this field from true to false. Setting + // this field to true will automatically set the primary field on the original + // primary placement of the roadblock to false, and it will automatically set + // the roadblock's primaryPlacementId field to the ID of this placement. Primary bool `json:"primary,omitempty"` - - // PublisherUpdateInfo: Information about the last publisher update. - // This is a read-only field. + // PublisherUpdateInfo: Information about the last publisher update. This is a + // read-only field. PublisherUpdateInfo *LastModifiedInfo `json:"publisherUpdateInfo,omitempty"` - - // SiteId: Site ID associated with this placement. On insert, you must - // set either this field or the directorySiteId field to specify the - // site associated with this placement. This is a required field that is - // read-only after insertion. + // SiteId: Site ID associated with this placement. On insert, you must set + // either this field or the directorySiteId field to specify the site + // associated with this placement. This is a required field that is read-only + // after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // Size: Size associated with this placement. When inserting or updating - // a placement, only the size ID field is used. This field is required - // on insertion. + // Size: Size associated with this placement. When inserting or updating a + // placement, only the size ID field is used. This field is required on + // insertion. Size *Size `json:"size,omitempty"` - // SslRequired: Whether creatives assigned to this placement must be // SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - // Status: Third-party placement status. // // Possible values: @@ -9871,11 +7943,8 @@ type Placement struct { // "PAYMENT_REJECTED" // "PENDING_REVIEW" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this placement. This field can be left - // blank. + // SubaccountId: Subaccount ID of this placement. This field can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TagFormats: Tag formats to generate for this placement. This field is // required on insertion. // Acceptable values are: @@ -9916,31 +7985,27 @@ type Placement struct { // "PLACEMENT_TAG_TRACKING_IFRAME" // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" TagFormats []string `json:"tagFormats,omitempty"` - // TagSetting: Tag settings for this placement. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOut: Whether Verification and ActiveView are - // disabled for in-stream video creatives for this placement. The same - // setting videoActiveViewOptOut exists on the site level -- the opt out - // occurs if either of these settings are true. These settings are - // distinct from DirectorySites.settings.activeViewOptOut or + // VideoActiveViewOptOut: Whether Verification and ActiveView are disabled for + // in-stream video creatives for this placement. The same setting + // videoActiveViewOptOut exists on the site level -- the opt out occurs if + // either of these settings are true. These settings are distinct from + // DirectorySites.settings.activeViewOptOut or // Sites.siteSettings.activeViewOptOut which only apply to display ads. - // However, Accounts.activeViewOptOut opts out both video traffic, as - // well as display ads, from Verification and ActiveView. + // However, Accounts.activeViewOptOut opts out both video traffic, as well as + // display ads, from Verification and ActiveView. VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"` - - // VideoSettings: A collection of settings which affect video creatives - // served through this placement. Applicable to placements with - // IN_STREAM_VIDEO compatibility. + // VideoSettings: A collection of settings which affect video creatives served + // through this placement. Applicable to placements with IN_STREAM_VIDEO + // compatibility. VideoSettings *VideoSettings `json:"videoSettings,omitempty"` - - // VpaidAdapterChoice: VPAID adapter setting for this placement. - // Controls which VPAID format the measurement adapter will use for - // in-stream video creatives assigned to this placement. + // VpaidAdapterChoice: VPAID adapter setting for this placement. Controls which + // VPAID format the measurement adapter will use for in-stream video creatives + // assigned to this placement. // - // Note: Flash is no longer supported. This field now defaults to HTML5 - // when the following values are provided: FLASH, BOTH. + // Note: Flash is no longer supported. This field now defaults to HTML5 when + // the following values are provided: FLASH, BOTH. // // Possible values: // "BOTH" @@ -9949,31 +8014,24 @@ type Placement struct { // "HTML5" VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Placement) MarshalJSON() ([]byte, error) { +func (s Placement) MarshalJSON() ([]byte, error) { type NoMethod Placement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementAssignment: Placement Assignment. @@ -9981,419 +8039,319 @@ type PlacementAssignment struct { // Active: Whether this placement assignment is active. When true, the // placement will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // PlacementId: ID of the placement to be assigned. This is a required - // field. + // PlacementId: ID of the placement to be assigned. This is a required field. PlacementId int64 `json:"placementId,omitempty,string"` - - // PlacementIdDimensionValue: Dimension value for the ID of the - // placement. This is a read-only, auto-generated field. + // PlacementIdDimensionValue: Dimension value for the ID of the placement. This + // is a read-only, auto-generated field. PlacementIdDimensionValue *DimensionValue `json:"placementIdDimensionValue,omitempty"` - - // SslRequired: Whether the placement to be assigned requires SSL. This - // is a read-only field that is auto-generated when the ad is inserted - // or updated. + // SslRequired: Whether the placement to be assigned requires SSL. This is a + // read-only field that is auto-generated when the ad is inserted or updated. SslRequired bool `json:"sslRequired,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementAssignment) MarshalJSON() ([]byte, error) { +func (s PlacementAssignment) MarshalJSON() ([]byte, error) { type NoMethod PlacementAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroup: Contains properties of a package or roadblock. type PlacementGroup struct { - // AccountId: Account ID of this placement group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this placement group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this placement group. This is a required + // field on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement group is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement group. This field is - // required on insertion. + // CampaignId: Campaign ID of this placement group. This field is required on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ChildPlacementIds: IDs of placements which are assigned to this - // placement group. This is a read-only, auto-generated field. + // ChildPlacementIds: IDs of placements which are assigned to this placement + // group. This is a read-only, auto-generated field. ChildPlacementIds googleapi.Int64s `json:"childPlacementIds,omitempty"` - // Comment: Comments for this placement group. Comment string `json:"comment,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement group. + // ContentCategoryId: ID of the content category assigned to this placement + // group. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement group. - // This is a read-only field. + // CreateInfo: Information about the creation of this placement group. This is + // a read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID associated with this placement - // group. On insert, you must set either this field or the site_id field - // to specify the site associated with this placement group. This is a - // required field that is read-only after insertion. + // DirectorySiteId: Directory site ID associated with this placement group. On + // insert, you must set either this field or the site_id field to specify the + // site associated with this placement group. This is a required field that is + // read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - - // Id: ID of this placement group. This is a read-only, auto-generated - // field. + // Id: ID of this placement group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement group. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement group. This + // is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroup". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement group. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement group. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this placement group. This is a required field and must - // be less than 256 characters long. + // Name: Name of this placement group. This is a required field and must be + // less than 256 characters long. Name string `json:"name,omitempty"` - - // PlacementGroupType: Type of this placement group. A package is a - // simple group of placements that acts as a single pricing point for a - // group of tags. A roadblock is a group of placements that not only - // acts as a single pricing point, but also assumes that all the tags in - // it will be served at the same time. A roadblock requires one of its - // assigned placements to be marked as primary for reporting. This field - // is required on insertion. + // PlacementGroupType: Type of this placement group. A package is a simple + // group of placements that acts as a single pricing point for a group of tags. + // A roadblock is a group of placements that not only acts as a single pricing + // point, but also assumes that all the tags in it will be served at the same + // time. A roadblock requires one of its assigned placements to be marked as + // primary for reporting. This field is required on insertion. // // Possible values: // "PLACEMENT_PACKAGE" // "PLACEMENT_ROADBLOCK" PlacementGroupType string `json:"placementGroupType,omitempty"` - - // PlacementStrategyId: ID of the placement strategy assigned to this - // placement group. + // PlacementStrategyId: ID of the placement strategy assigned to this placement + // group. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement group. This field - // is required on insertion. + // PricingSchedule: Pricing schedule of this placement group. This field is + // required on insertion. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // PrimaryPlacementId: ID of the primary placement, used to calculate - // the media cost of a roadblock (placement group). Modifying this field - // will automatically modify the primary field on all affected roadblock - // child placements. + // PrimaryPlacementId: ID of the primary placement, used to calculate the media + // cost of a roadblock (placement group). Modifying this field will + // automatically modify the primary field on all affected roadblock child + // placements. PrimaryPlacementId int64 `json:"primaryPlacementId,omitempty,string"` - - // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the - // primary placement. This is a read-only, auto-generated field. + // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the primary + // placement. This is a read-only, auto-generated field. PrimaryPlacementIdDimensionValue *DimensionValue `json:"primaryPlacementIdDimensionValue,omitempty"` - - // SiteId: Site ID associated with this placement group. On insert, you - // must set either this field or the directorySiteId field to specify - // the site associated with this placement group. This is a required - // field that is read-only after insertion. + // SiteId: Site ID associated with this placement group. On insert, you must + // set either this field or the directorySiteId field to specify the site + // associated with this placement group. This is a required field that is + // read-only after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // SubaccountId: Subaccount ID of this placement group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this placement group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroup) MarshalJSON() ([]byte, error) { +func (s PlacementGroup) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroupsListResponse: Placement Group List Response type PlacementGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementGroups: Placement group collection. PlacementGroups []*PlacementGroup `json:"placementGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategiesListResponse: Placement Strategy List Response type PlacementStrategiesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementStrategies: Placement strategy collection. PlacementStrategies []*PlacementStrategy `json:"placementStrategies,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategy: Contains properties of a placement strategy. type PlacementStrategy struct { - // AccountId: Account ID of this placement strategy.This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement strategy.This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this placement strategy. This is a read-only, - // auto-generated field. + // Id: ID of this placement strategy. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategy". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategy". Kind string `json:"kind,omitempty"` - - // Name: Name of this placement strategy. This is a required field. It - // must be less than 256 characters long and unique among placement - // strategies of the same account. + // Name: Name of this placement strategy. This is a required field. It must be + // less than 256 characters long and unique among placement strategies of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategy) MarshalJSON() ([]byte, error) { +func (s PlacementStrategy) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementTag: Placement Tag type PlacementTag struct { // PlacementId: Placement ID PlacementId int64 `json:"placementId,omitempty,string"` - // TagDatas: Tags generated for this placement. TagDatas []*TagData `json:"tagDatas,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlacementId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PlacementId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PlacementId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementTag) MarshalJSON() ([]byte, error) { +func (s PlacementTag) MarshalJSON() ([]byte, error) { type NoMethod PlacementTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsGenerateTagsResponse: Placement GenerateTags Response type PlacementsGenerateTagsResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsGenerateTagsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsGenerateTagsResponse". Kind string `json:"kind,omitempty"` - // PlacementTags: Set of generated tags for the specified placements. PlacementTags []*PlacementTag `json:"placementTags,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsGenerateTagsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsListResponse: Placement List Response type PlacementsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Placements: Placement collection. Placements []*Placement `json:"placements,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformType: Contains information about a platform type that can be @@ -10401,88 +8359,68 @@ func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { type PlatformType struct { // Id: ID of this platform type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformType". Kind string `json:"kind,omitempty"` - // Name: Name of this platform type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformType) MarshalJSON() ([]byte, error) { +func (s PlatformType) MarshalJSON() ([]byte, error) { type NoMethod PlatformType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformTypesListResponse: Platform Type List Response type PlatformTypesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformTypesListResponse". Kind string `json:"kind,omitempty"` - // PlatformTypes: Platform type collection. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformTypesListResponse) MarshalJSON() ([]byte, error) { +func (s PlatformTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlatformTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PopupWindowProperties: Popup Window Properties. type PopupWindowProperties struct { // Dimension: Popup dimension for a creative. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA and all - // VPAID + // Applicable to the following creative types: all RICH_MEDIA and all VPAID Dimension *Size `json:"dimension,omitempty"` - - // Offset: Upper-left corner coordinates of the popup window. Applicable - // if positionType is COORDINATES. + // Offset: Upper-left corner coordinates of the popup window. Applicable if + // positionType is COORDINATES. Offset *OffsetPosition `json:"offset,omitempty"` - // PositionType: Popup window position either centered or at specific // coordinate. // @@ -10490,130 +8428,97 @@ type PopupWindowProperties struct { // "CENTER" // "COORDINATES" PositionType string `json:"positionType,omitempty"` - // ShowAddressBar: Whether to display the browser address bar. ShowAddressBar bool `json:"showAddressBar,omitempty"` - // ShowMenuBar: Whether to display the browser menu bar. ShowMenuBar bool `json:"showMenuBar,omitempty"` - // ShowScrollBar: Whether to display the browser scroll bar. ShowScrollBar bool `json:"showScrollBar,omitempty"` - // ShowStatusBar: Whether to display the browser status bar. ShowStatusBar bool `json:"showStatusBar,omitempty"` - // ShowToolBar: Whether to display the browser tool bar. ShowToolBar bool `json:"showToolBar,omitempty"` - // Title: Title of popup window. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimension") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PopupWindowProperties) MarshalJSON() ([]byte, error) { +func (s PopupWindowProperties) MarshalJSON() ([]byte, error) { type NoMethod PopupWindowProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostalCode: Contains information about a postal code that can be -// targeted by ads. +// PostalCode: Contains information about a postal code that can be targeted by +// ads. type PostalCode struct { // Code: Postal code. This is equivalent to the id field. Code string `json:"code,omitempty"` - - // CountryCode: Country code of the country to which this postal code - // belongs. + // CountryCode: Country code of the country to which this postal code belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this postal code - // belongs. + // CountryDartId: DART ID of the country to which this postal code belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this postal code. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCode". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCode". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCode) MarshalJSON() ([]byte, error) { +func (s PostalCode) MarshalJSON() ([]byte, error) { type NoMethod PostalCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PostalCodesListResponse: Postal Code List Response type PostalCodesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCodesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCodesListResponse". Kind string `json:"kind,omitempty"` - // PostalCodes: Postal code collection. PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCodesListResponse) MarshalJSON() ([]byte, error) { +func (s PostalCodesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PostalCodesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Pricing: Pricing Information @@ -10625,29 +8530,25 @@ type Pricing struct { // "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY" // "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE" CapCostType string `json:"capCostType,omitempty"` - // EndDate: End date of this inventory item. EndDate string `json:"endDate,omitempty"` - - // Flights: Flights of this inventory item. A flight (a.k.a. pricing - // period) represents the inventory item pricing information for a - // specific period of time. + // Flights: Flights of this inventory item. A flight (a.k.a. pricing period) + // represents the inventory item pricing information for a specific period of + // time. Flights []*Flight `json:"flights,omitempty"` - - // GroupType: Group type of this inventory item if it represents a - // placement group. Is null otherwise. There are two type of placement - // groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of - // inventory items that acts as a single pricing point for a group of - // tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory - // items that not only acts as a single pricing point, but also assumes - // that all the tags in it will be served at the same time. A roadblock - // requires one of its assigned inventory items to be marked as primary. + // GroupType: Group type of this inventory item if it represents a placement + // group. Is null otherwise. There are two type of placement groups: + // PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items + // that acts as a single pricing point for a group of tags. + // PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that + // not only acts as a single pricing point, but also assumes that all the tags + // in it will be served at the same time. A roadblock requires one of its + // assigned inventory items to be marked as primary. // // Possible values: // "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" // "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" GroupType string `json:"groupType,omitempty"` - // PricingType: Pricing type of this inventory item. // // Possible values: @@ -10660,31 +8561,24 @@ type Pricing struct { // "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS" // "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS" PricingType string `json:"pricingType,omitempty"` - // StartDate: Start date of this inventory item. StartDate string `json:"startDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CapCostType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pricing) MarshalJSON() ([]byte, error) { +func (s Pricing) MarshalJSON() ([]byte, error) { type NoMethod Pricing - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedule: Pricing Schedule @@ -10696,33 +8590,25 @@ type PricingSchedule struct { // "CAP_COST_MONTHLY" // "CAP_COST_NONE" CapCostOption string `json:"capCostOption,omitempty"` - // DisregardOverdelivery: Whether cap costs are ignored by ad serving. DisregardOverdelivery bool `json:"disregardOverdelivery,omitempty"` - - // EndDate: Placement end date. This date must be later than, or the - // same day as, the placement start date, but not later than the - // campaign end date. If, for example, you set 6/25/2015 as both the - // start and end dates, the effective placement date is just that day - // only, 6/25/2015. The hours, minutes, and seconds of the end date - // should not be set, as doing so will result in an error. This field is - // required on insertion. + // EndDate: Placement end date. This date must be later than, or the same day + // as, the placement start date, but not later than the campaign end date. If, + // for example, you set 6/25/2015 as both the start and end dates, the + // effective placement date is just that day only, 6/25/2015. The hours, + // minutes, and seconds of the end date should not be set, as doing so will + // result in an error. This field is required on insertion. EndDate string `json:"endDate,omitempty"` - - // Flighted: Whether this placement is flighted. If true, pricing - // periods will be computed automatically. + // Flighted: Whether this placement is flighted. If true, pricing periods will + // be computed automatically. Flighted bool `json:"flighted,omitempty"` - - // FloodlightActivityId: Floodlight activity ID associated with this - // placement. This field should be set when placement pricing type is - // set to PRICING_TYPE_CPA. + // FloodlightActivityId: Floodlight activity ID associated with this placement. + // This field should be set when placement pricing type is set to + // PRICING_TYPE_CPA. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // PricingPeriods: Pricing periods for this placement. PricingPeriods []*PricingSchedulePricingPeriod `json:"pricingPeriods,omitempty"` - - // PricingType: Placement pricing type. This field is required on - // insertion. + // PricingType: Placement pricing type. This field is required on insertion. // // Possible values: // "PRICING_TYPE_CPA" @@ -10732,101 +8618,80 @@ type PricingSchedule struct { // "PRICING_TYPE_FLAT_RATE_CLICKS" // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" PricingType string `json:"pricingType,omitempty"` - - // StartDate: Placement start date. This date must be later than, or the - // same day as, the campaign start date. The hours, minutes, and seconds - // of the start date should not be set, as doing so will result in an - // error. This field is required on insertion. + // StartDate: Placement start date. This date must be later than, or the same + // day as, the campaign start date. The hours, minutes, and seconds of the + // start date should not be set, as doing so will result in an error. This + // field is required on insertion. StartDate string `json:"startDate,omitempty"` - - // TestingStartDate: Testing start date of this placement. The hours, - // minutes, and seconds of the start date should not be set, as doing so - // will result in an error. + // TestingStartDate: Testing start date of this placement. The hours, minutes, + // and seconds of the start date should not be set, as doing so will result in + // an error. TestingStartDate string `json:"testingStartDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CapCostOption") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostOption") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostOption") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedule) MarshalJSON() ([]byte, error) { +func (s PricingSchedule) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedulePricingPeriod: Pricing Period type PricingSchedulePricingPeriod struct { - // EndDate: Pricing period end date. This date must be later than, or - // the same day as, the pricing period start date, but not later than - // the placement end date. The period end date can be the same date as - // the period start date. If, for example, you set 6/25/2015 as both the - // start and end dates, the effective pricing period date is just that - // day only, 6/25/2015. The hours, minutes, and seconds of the end date - // should not be set, as doing so will result in an error. + // EndDate: Pricing period end date. This date must be later than, or the same + // day as, the pricing period start date, but not later than the placement end + // date. The period end date can be the same date as the period start date. If, + // for example, you set 6/25/2015 as both the start and end dates, the + // effective pricing period date is just that day only, 6/25/2015. The hours, + // minutes, and seconds of the end date should not be set, as doing so will + // result in an error. EndDate string `json:"endDate,omitempty"` - // PricingComment: Comments for this pricing period. PricingComment string `json:"pricingComment,omitempty"` - // RateOrCostNanos: Rate or cost of this pricing period in nanos (i.e., - // multipled by 1000000000). Acceptable values are 0 to - // 1000000000000000000, inclusive. + // multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, + // inclusive. RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"` - - // StartDate: Pricing period start date. This date must be later than, - // or the same day as, the placement start date. The hours, minutes, and - // seconds of the start date should not be set, as doing so will result - // in an error. + // StartDate: Pricing period start date. This date must be later than, or the + // same day as, the placement start date. The hours, minutes, and seconds of + // the start date should not be set, as doing so will result in an error. StartDate string `json:"startDate,omitempty"` - - // Units: Units of this pricing period. Acceptable values are 0 to - // 10000000000, inclusive. + // Units: Units of this pricing period. Acceptable values are 0 to 10000000000, + // inclusive. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { +func (s PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedulePricingPeriod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Project: Contains properties of a Planning project. type Project struct { // AccountId: Account ID of this project. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this project. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AudienceAgeGroup: Audience age group of this project. // // Possible values: @@ -10838,193 +8703,142 @@ type Project struct { // "PLANNING_AUDIENCE_AGE_65_OR_MORE" // "PLANNING_AUDIENCE_AGE_UNKNOWN" AudienceAgeGroup string `json:"audienceAgeGroup,omitempty"` - // AudienceGender: Audience gender of this project. // // Possible values: // "PLANNING_AUDIENCE_GENDER_FEMALE" // "PLANNING_AUDIENCE_GENDER_MALE" AudienceGender string `json:"audienceGender,omitempty"` - - // Budget: Budget of this project in the currency specified by the - // current account. The value stored in this field represents only the - // non-fractional amount. For example, for USD, the smallest value that - // can be represented by this field is 1 US dollar. + // Budget: Budget of this project in the currency specified by the current + // account. The value stored in this field represents only the non-fractional + // amount. For example, for USD, the smallest value that can be represented by + // this field is 1 US dollar. Budget int64 `json:"budget,omitempty,string"` - // ClientBillingCode: Client billing code of this project. ClientBillingCode string `json:"clientBillingCode,omitempty"` - // ClientName: Name of the project client. ClientName string `json:"clientName,omitempty"` - // EndDate: End date of the project. EndDate string `json:"endDate,omitempty"` - // Id: ID of this project. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#project". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#project". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this project. + // LastModifiedInfo: Information about the most recent modification of this + // project. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this project. Name string `json:"name,omitempty"` - // Overview: Overview of this project. Overview string `json:"overview,omitempty"` - // StartDate: Start date of the project. StartDate string `json:"startDate,omitempty"` - // SubaccountId: Subaccount ID of this project. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TargetClicks: Number of clicks that the advertiser is targeting. TargetClicks int64 `json:"targetClicks,omitempty,string"` - - // TargetConversions: Number of conversions that the advertiser is - // targeting. + // TargetConversions: Number of conversions that the advertiser is targeting. TargetConversions int64 `json:"targetConversions,omitempty,string"` - // TargetCpaNanos: CPA that the advertiser is targeting. TargetCpaNanos int64 `json:"targetCpaNanos,omitempty,string"` - // TargetCpcNanos: CPC that the advertiser is targeting. TargetCpcNanos int64 `json:"targetCpcNanos,omitempty,string"` - - // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser - // is targeting. + // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser is + // targeting. TargetCpmActiveViewNanos int64 `json:"targetCpmActiveViewNanos,omitempty,string"` - // TargetCpmNanos: CPM that the advertiser is targeting. TargetCpmNanos int64 `json:"targetCpmNanos,omitempty,string"` - - // TargetImpressions: Number of impressions that the advertiser is - // targeting. + // TargetImpressions: Number of impressions that the advertiser is targeting. TargetImpressions int64 `json:"targetImpressions,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Project) MarshalJSON() ([]byte, error) { +func (s Project) MarshalJSON() ([]byte, error) { type NoMethod Project - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProjectsListResponse: Project List Response type ProjectsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#projectsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#projectsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Projects: Project collection. Projects []*Project `json:"projects,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProjectsListResponse) MarshalJSON() ([]byte, error) { +func (s ProjectsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ProjectsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReachReportCompatibleFields: Represents fields that are compatible to -// be selected for a report of type "REACH". +// ReachReportCompatibleFields: Represents fields that are compatible to be +// selected for a report of type "REACH". type ReachReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - - // ReachByFrequencyMetrics: Metrics which are compatible to be selected - // in the "reachByFrequencyMetricNames" section of the report. + // ReachByFrequencyMetrics: Metrics which are compatible to be selected in the + // "reachByFrequencyMetricNames" section of the report. ReachByFrequencyMetrics []*Metric `json:"reachByFrequencyMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Recipient: Represents a recipient. @@ -11035,165 +8849,122 @@ type Recipient struct { // "ATTACHMENT" // "LINK" DeliveryType string `json:"deliveryType,omitempty"` - // Email: The email address of the recipient. Email string `json:"email,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#recipient. + // Kind: The kind of resource this is, in this case dfareporting#recipient. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliveryType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliveryType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliveryType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Recipient) MarshalJSON() ([]byte, error) { +func (s Recipient) MarshalJSON() ([]byte, error) { type NoMethod Recipient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Region: Contains information about a region that can be targeted by -// ads. +// Region: Contains information about a region that can be targeted by ads. type Region struct { - // CountryCode: Country code of the country to which this region - // belongs. + // CountryCode: Country code of the country to which this region belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this region. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#region". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#region". Kind string `json:"kind,omitempty"` - // Name: Name of this region. Name string `json:"name,omitempty"` - // RegionCode: Region code. RegionCode string `json:"regionCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Region) MarshalJSON() ([]byte, error) { +func (s Region) MarshalJSON() ([]byte, error) { type NoMethod Region - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RegionsListResponse: Region List Response type RegionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#regionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#regionsListResponse". Kind string `json:"kind,omitempty"` - // Regions: Region collection. Regions []*Region `json:"regions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegionsListResponse) MarshalJSON() ([]byte, error) { +func (s RegionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RegionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingList: Contains properties of a remarketing list. -// Remarketing enables you to create lists of users who have performed -// specific actions on a site, then target ads to members of those -// lists. This resource can be used to manage remarketing lists that are -// owned by your advertisers. To see all remarketing lists that are -// visible to your advertisers, including those that are shared to your -// advertiser or account, use the TargetableRemarketingLists resource. +// RemarketingList: Contains properties of a remarketing list. Remarketing +// enables you to create lists of users who have performed specific actions on +// a site, then target ads to members of those lists. This resource can be used +// to manage remarketing lists that are owned by your advertisers. To see all +// remarketing lists that are visible to your advertisers, including those that +// are shared to your advertiser or account, use the TargetableRemarketingLists +// resource. type RemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // remarketing list. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Remarketing list description. Description string `json:"description,omitempty"` - // Id: Remarketing list ID. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingList". Kind string `json:"kind,omitempty"` - - // LifeSpan: Number of days that a user should remain in the remarketing - // list without an impression. Acceptable values are 1 to 540, - // inclusive. + // LifeSpan: Number of days that a user should remain in the remarketing list + // without an impression. Acceptable values are 1 to 540, inclusive. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListPopulationRule: Rule used to populate the remarketing list with - // users. + // ListPopulationRule: Rule used to populate the remarketing list with users. ListPopulationRule *ListPopulationRule `json:"listPopulationRule,omitempty"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this remarketing list was originated. // // Possible values: @@ -11209,198 +8980,146 @@ type RemarketingList struct { // "REMARKETING_LIST_SOURCE_XFP" // "REMARKETING_LIST_SOURCE_YOUTUBE" ListSource string `json:"listSource,omitempty"` - - // Name: Name of the remarketing list. This is a required field. Must be - // no greater than 128 characters long. + // Name: Name of the remarketing list. This is a required field. Must be no + // greater than 128 characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingList) MarshalJSON() ([]byte, error) { +func (s RemarketingList) MarshalJSON() ([]byte, error) { type NoMethod RemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingListShare: Contains properties of a remarketing list's -// sharing information. Sharing allows other accounts or advertisers to -// target to your remarketing lists. This resource can be used to manage -// remarketing list sharing to other accounts and advertisers. +// RemarketingListShare: Contains properties of a remarketing list's sharing +// information. Sharing allows other accounts or advertisers to target to your +// remarketing lists. This resource can be used to manage remarketing list +// sharing to other accounts and advertisers. type RemarketingListShare struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListShare". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListShare". Kind string `json:"kind,omitempty"` - - // RemarketingListId: Remarketing list ID. This is a read-only, - // auto-generated field. + // RemarketingListId: Remarketing list ID. This is a read-only, auto-generated + // field. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - // SharedAccountIds: Accounts that the remarketing list is shared with. SharedAccountIds googleapi.Int64s `json:"sharedAccountIds,omitempty"` - - // SharedAdvertiserIds: Advertisers that the remarketing list is shared - // with. + // SharedAdvertiserIds: Advertisers that the remarketing list is shared with. SharedAdvertiserIds googleapi.Int64s `json:"sharedAdvertiserIds,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListShare) MarshalJSON() ([]byte, error) { +func (s RemarketingListShare) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListShare - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RemarketingListsListResponse: Remarketing list response type RemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // RemarketingLists: Remarketing list collection. RemarketingLists []*RemarketingList `json:"remarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s RemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Report: Represents a Report resource. type Report struct { // AccountId: The account ID to which this report belongs. AccountId int64 `json:"accountId,omitempty,string"` - // Criteria: The report criteria for a report of type "STANDARD". Criteria *ReportCriteria `json:"criteria,omitempty"` - // CrossDimensionReachCriteria: The report criteria for a report of type // "CROSS_DIMENSION_REACH". CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"` - // Delivery: The report's email delivery settings. Delivery *ReportDelivery `json:"delivery,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // FileName: The filename used when generating report files for this - // report. + // FileName: The filename used when generating report files for this report. FileName string `json:"fileName,omitempty"` - - // FloodlightCriteria: The report criteria for a report of type - // "FLOODLIGHT". + // FloodlightCriteria: The report criteria for a report of type "FLOODLIGHT". FloodlightCriteria *ReportFloodlightCriteria `json:"floodlightCriteria,omitempty"` - - // Format: The output format of the report. If not specified, default - // format is "CSV". Note that the actual format in the completed report - // file might differ if for instance the report's size exceeds the - // format's capabilities. "CSV" will then be the fallback format. + // Format: The output format of the report. If not specified, default format is + // "CSV". Note that the actual format in the completed report file might differ + // if for instance the report's size exceeds the format's capabilities. "CSV" + // will then be the fallback format. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID identifying this report resource. Id int64 `json:"id,omitempty,string"` - // Kind: The kind of resource this is, in this case dfareporting#report. Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp (in milliseconds since epoch) of when - // this report was last modified. + // LastModifiedTime: The timestamp (in milliseconds since epoch) of when this + // report was last modified. LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"` - // Name: The name of the report. Name string `json:"name,omitempty"` - // OwnerProfileId: The user profile id of the owner of this report. OwnerProfileId int64 `json:"ownerProfileId,omitempty,string"` - // PathToConversionCriteria: The report criteria for a report of type // "PATH_TO_CONVERSION". PathToConversionCriteria *ReportPathToConversionCriteria `json:"pathToConversionCriteria,omitempty"` - // ReachCriteria: The report criteria for a report of type "REACH". ReachCriteria *ReportReachCriteria `json:"reachCriteria,omitempty"` - - // Schedule: The report's schedule. Can only be set if the report's - // 'dateRange' is a relative date range and the relative date range is - // not "TODAY". + // Schedule: The report's schedule. Can only be set if the report's 'dateRange' + // is a relative date range and the relative date range is not "TODAY". Schedule *ReportSchedule `json:"schedule,omitempty"` - - // SubAccountId: The subaccount ID to which this report belongs if - // applicable. + // SubAccountId: The subaccount ID to which this report belongs if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - // Type: The type of the report. // // Possible values: @@ -11411,89 +9130,68 @@ type Report struct { // "STANDARD" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Report) MarshalJSON() ([]byte, error) { +func (s Report) MarshalJSON() ([]byte, error) { type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportCriteria: The report criteria for a report of type "STANDARD". type ReportCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range for which this report should be run. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - - // Dimensions: The list of standard dimensions the report should - // include. + // Dimensions: The list of standard dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCrossDimensionReachCriteria: The report criteria for a report -// of type "CROSS_DIMENSION_REACH". +// ReportCrossDimensionReachCriteria: The report criteria for a report of type +// "CROSS_DIMENSION_REACH". type ReportCrossDimensionReachCriteria struct { // Breakdown: The list of dimensions the report should include. Breakdown []*SortedDimension `json:"breakdown,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // Dimension: The dimension option. // // Possible values: @@ -11502,409 +9200,306 @@ type ReportCrossDimensionReachCriteria struct { // "SITE_BY_ADVERTISER" // "SITE_BY_CAMPAIGN" Dimension string `json:"dimension,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. + // DimensionFilters: The list of filters on which dimensions are filtered. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // OverlapMetricNames: The list of names of overlap metrics the report - // should include. + // OverlapMetricNames: The list of names of overlap metrics the report should + // include. OverlapMetricNames []string `json:"overlapMetricNames,omitempty"` - // Pivoted: Whether the report is pivoted or not. Defaults to true. Pivoted bool `json:"pivoted,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCrossDimensionReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportDelivery: The report's email delivery settings. type ReportDelivery struct { // EmailOwner: Whether the report should be emailed to the report owner. EmailOwner bool `json:"emailOwner,omitempty"` - - // EmailOwnerDeliveryType: The type of delivery for the owner to - // receive, if enabled. + // EmailOwnerDeliveryType: The type of delivery for the owner to receive, if + // enabled. // // Possible values: // "ATTACHMENT" // "LINK" EmailOwnerDeliveryType string `json:"emailOwnerDeliveryType,omitempty"` - // Message: The message to be sent with each email. Message string `json:"message,omitempty"` - // Recipients: The list of recipients to which to email the report. Recipients []*Recipient `json:"recipients,omitempty"` - // ForceSendFields is a list of field names (e.g. "EmailOwner") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EmailOwner") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EmailOwner") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportDelivery) MarshalJSON() ([]byte, error) { +func (s ReportDelivery) MarshalJSON() ([]byte, error) { type NoMethod ReportDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportFloodlightCriteria: The report criteria for a report of type // "FLOODLIGHT". type ReportFloodlightCriteria struct { - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportFloodlightCriteriaReportProperties `json:"reportProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomRichMediaEvents") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomRichMediaEvents") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomRichMediaEvents") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportFloodlightCriteriaReportProperties: The properties of the -// report. +// ReportFloodlightCriteriaReportProperties: The properties of the report. type ReportFloodlightCriteriaReportProperties struct { - // IncludeAttributedIPConversions: Include conversions that have no - // cookie, but do have an exposure path. + // IncludeAttributedIPConversions: Include conversions that have no cookie, but + // do have an exposure path. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // ForceSendFields is a list of field names (e.g. // "IncludeAttributedIPConversions") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "IncludeAttributedIPConversions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "IncludeAttributedIPConversions") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportPathToConversionCriteria: The report criteria for a report of -// type "PATH_TO_CONVERSION". +// ReportPathToConversionCriteria: The report criteria for a report of type +// "PATH_TO_CONVERSION". type ReportPathToConversionCriteria struct { // ActivityFilters: The list of 'dfa:activity' values to filter on. ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - - // ConversionDimensions: The list of conversion dimensions the report - // should include. + // ConversionDimensions: The list of conversion dimensions the report should + // include. ConversionDimensions []*SortedDimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: The list of custom floodlight variables - // the report should include. + // CustomFloodlightVariables: The list of custom floodlight variables the + // report should include. CustomFloodlightVariables []*SortedDimension `json:"customFloodlightVariables,omitempty"` - - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // PerInteractionDimensions: The list of per interaction dimensions the - // report should include. + // PerInteractionDimensions: The list of per interaction dimensions the report + // should include. PerInteractionDimensions []*SortedDimension `json:"perInteractionDimensions,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportPathToConversionCriteriaReportProperties `json:"reportProperties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActivityFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActivityFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActivityFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportPathToConversionCriteriaReportProperties: The properties of the // report. type ReportPathToConversionCriteriaReportProperties struct { - // ClicksLookbackWindow: DFA checks to see if a click interaction - // occurred within the specified period of time before a conversion. By - // default the value is pulled from Floodlight or you can manually enter - // a custom value. Valid values: 1-90. + // ClicksLookbackWindow: DFA checks to see if a click interaction occurred + // within the specified period of time before a conversion. By default the + // value is pulled from Floodlight or you can manually enter a custom value. + // Valid values: 1-90. ClicksLookbackWindow int64 `json:"clicksLookbackWindow,omitempty"` - - // ImpressionsLookbackWindow: DFA checks to see if an impression - // interaction occurred within the specified period of time before a - // conversion. By default the value is pulled from Floodlight or you can - // manually enter a custom value. Valid values: 1-90. + // ImpressionsLookbackWindow: DFA checks to see if an impression interaction + // occurred within the specified period of time before a conversion. By default + // the value is pulled from Floodlight or you can manually enter a custom + // value. Valid values: 1-90. ImpressionsLookbackWindow int64 `json:"impressionsLookbackWindow,omitempty"` - // IncludeAttributedIPConversions: Deprecated: has no effect. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // MaximumClickInteractions: The maximum number of click interactions to - // include in the report. Advertisers currently paying for E2C reports - // get up to 200 (100 clicks, 100 impressions). If another advertiser in - // your network is paying for E2C, you can have up to 5 total exposures - // per report. + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumClickInteractions int64 `json:"maximumClickInteractions,omitempty"` - - // MaximumImpressionInteractions: The maximum number of click - // interactions to include in the report. Advertisers currently paying - // for E2C reports get up to 200 (100 clicks, 100 impressions). If - // another advertiser in your network is paying for E2C, you can have up - // to 5 total exposures per report. + // MaximumImpressionInteractions: The maximum number of click interactions to + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumImpressionInteractions int64 `json:"maximumImpressionInteractions,omitempty"` - // MaximumInteractionGap: The maximum amount of time that can take place - // between interactions (clicks or impressions) by the same user. Valid - // values: 1-90. + // between interactions (clicks or impressions) by the same user. Valid values: + // 1-90. MaximumInteractionGap int64 `json:"maximumInteractionGap,omitempty"` - // PivotOnInteractionPath: Enable pivoting on interaction path. PivotOnInteractionPath bool `json:"pivotOnInteractionPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClicksLookbackWindow") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClicksLookbackWindow") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportReachCriteria: The report criteria for a report of type -// "REACH". +// ReportReachCriteria: The report criteria for a report of type "REACH". type ReportReachCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // EnableAllDimensionCombinations: Whether to enable all reach dimension - // combinations in the report. Defaults to false. If enabled, the date - // range of the report should be within the last 42 days. + // combinations in the report. Defaults to false. If enabled, the date range of + // the report should be within the last 42 days. EnableAllDimensionCombinations bool `json:"enableAllDimensionCombinations,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ReachByFrequencyMetricNames: The list of names of Reach By Frequency // metrics the report should include. ReachByFrequencyMetricNames []string `json:"reachByFrequencyMetricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportSchedule: The report's schedule. Can only be set if the -// report's 'dateRange' is a relative date range and the relative date -// range is not "TODAY". +// ReportSchedule: The report's schedule. Can only be set if the report's +// 'dateRange' is a relative date range and the relative date range is not +// "TODAY". type ReportSchedule struct { - // Active: Whether the schedule is active or not. Must be set to either - // true or false. + // Active: Whether the schedule is active or not. Must be set to either true or + // false. Active bool `json:"active,omitempty"` - - // Every: Defines every how many days, weeks or months the report should - // be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or + // Every: Defines every how many days, weeks or months the report should be + // run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or // "MONTHLY". Every int64 `json:"every,omitempty"` - - // ExpirationDate: The expiration date when the scheduled report stops - // running. + // ExpirationDate: The expiration date when the scheduled report stops running. ExpirationDate string `json:"expirationDate,omitempty"` - // Repeats: The interval for which the report is repeated. Note: // - "DAILY" also requires field "every" to be set. - // - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be - // set. - // - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be - // set. + // - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be set. + // + // - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be set. Repeats string `json:"repeats,omitempty"` - - // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled - // reports should run. + // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled reports + // should run. // // Possible values: // "FRIDAY" @@ -11915,154 +9510,120 @@ type ReportSchedule struct { // "TUESDAY" // "WEDNESDAY" RepeatsOnWeekDays []string `json:"repeatsOnWeekDays,omitempty"` - - // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports - // whether reports should be repeated on the same day of the month as - // "startDate" or the same day of the week of the month. + // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports whether + // reports should be repeated on the same day of the month as "startDate" or + // the same day of the week of the month. // Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), - // "DAY_OF_MONTH" would run subsequent reports on the 2nd of every - // Month, and "WEEK_OF_MONTH" would run subsequent reports on the first - // Monday of the month. + // "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and + // "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the + // month. // // Possible values: // "DAY_OF_MONTH" // "WEEK_OF_MONTH" RunsOnDayOfMonth string `json:"runsOnDayOfMonth,omitempty"` - - // StartDate: Start date of date range for which scheduled reports - // should be run. + // StartDate: Start date of date range for which scheduled reports should be + // run. StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportSchedule) MarshalJSON() ([]byte, error) { +func (s ReportSchedule) MarshalJSON() ([]byte, error) { type NoMethod ReportSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCompatibleFields: Represents fields that are compatible to be -// selected for a report of type "STANDARD". +// ReportCompatibleFields: Represents fields that are compatible to be selected +// for a report of type "STANDARD". type ReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportList: Represents the list of reports. type ReportList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The reports returned in this response. Items []*Report `json:"items,omitempty"` - // Kind: The kind of list this is, in this case dfareporting#reportList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through reports. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through reports. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportList) MarshalJSON() ([]byte, error) { +func (s ReportList) MarshalJSON() ([]byte, error) { type NoMethod ReportList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportsConfiguration: Reporting Configuration type ReportsConfiguration struct { - // ExposureToConversionEnabled: Whether the exposure to conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure to conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // LookbackConfiguration: Default lookback windows for new advertisers - // in this account. + // LookbackConfiguration: Default lookback windows for new advertisers in this + // account. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // ReportGenerationTimeZoneId: Report generation time zone ID of this - // account. This is a required field that can only be changed by a - // superuser. + // ReportGenerationTimeZoneId: Report generation time zone ID of this account. + // This is a required field that can only be changed by a superuser. // Acceptable values are: // // - "1" for "America/New_York" @@ -12079,30 +9640,22 @@ type ReportsConfiguration struct { // - "12" for "Pacific/Auckland" // - "13" for "America/Sao_Paulo" ReportGenerationTimeZoneId int64 `json:"reportGenerationTimeZoneId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "ExposureToConversionEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExposureToConversionEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportsConfiguration) MarshalJSON() ([]byte, error) { +func (s ReportsConfiguration) MarshalJSON() ([]byte, error) { type NoMethod ReportsConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RichMediaExitOverride: Rich Media Exit Override. @@ -12110,251 +9663,189 @@ type RichMediaExitOverride struct { // ClickThroughUrl: Click-through URL of this rich media exit override. // Applicable if the enabled field is set to true. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // Enabled: Whether to use the clickThroughUrl. If false, the - // creative-level exit will be used. + // Enabled: Whether to use the clickThroughUrl. If false, the creative-level + // exit will be used. Enabled bool `json:"enabled,omitempty"` - - // ExitId: ID for the override to refer to a specific exit in the - // creative. + // ExitId: ID for the override to refer to a specific exit in the creative. ExitId int64 `json:"exitId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RichMediaExitOverride) MarshalJSON() ([]byte, error) { +func (s RichMediaExitOverride) MarshalJSON() ([]byte, error) { type NoMethod RichMediaExitOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Rule: A rule associates an asset with a targeting template for -// asset-level targeting. Applicable to INSTREAM_VIDEO creatives. +// Rule: A rule associates an asset with a targeting template for asset-level +// targeting. Applicable to INSTREAM_VIDEO creatives. type Rule struct { - // AssetId: A creativeAssets[].id. This should refer to one of the - // parent assets in this creative. This is a required field. + // AssetId: A creativeAssets[].id. This should refer to one of the parent + // assets in this creative. This is a required field. AssetId int64 `json:"assetId,omitempty,string"` - // Name: A user-friendly name for this rule. This is a required field. Name string `json:"name,omitempty"` - // TargetingTemplateId: A targeting template ID. The targeting from the - // targeting template will be used to determine whether this asset - // should be served. This is a required field. + // targeting template will be used to determine whether this asset should be + // served. This is a required field. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AssetId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssetId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssetId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rule) MarshalJSON() ([]byte, error) { +func (s Rule) MarshalJSON() ([]byte, error) { type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Site: Contains properties of a site. type Site struct { - // AccountId: Account ID of this site. This is a read-only field that - // can be left blank. + // AccountId: Account ID of this site. This is a read-only field that can be + // left blank. AccountId int64 `json:"accountId,omitempty,string"` - // Approved: Whether this site is approved. Approved bool `json:"approved,omitempty"` - // DirectorySiteId: Directory site associated with this site. This is a // required field that is read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // Id: ID of this site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this site. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this site. This is a read-only, auto-generated - // field. + // KeyName: Key name of this site. This is a read-only, auto-generated field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#site". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#site". Kind string `json:"kind,omitempty"` - - // Name: Name of this site.This is a required field. Must be less than - // 128 characters long. If this site is under a subaccount, the name - // must be unique among sites of the same subaccount. Otherwise, this - // site is a top-level site, and the name must be unique among top-level - // sites of the same account. + // Name: Name of this site.This is a required field. Must be less than 128 + // characters long. If this site is under a subaccount, the name must be unique + // among sites of the same subaccount. Otherwise, this site is a top-level + // site, and the name must be unique among top-level sites of the same account. Name string `json:"name,omitempty"` - // SiteContacts: Site contacts. SiteContacts []*SiteContact `json:"siteContacts,omitempty"` - // SiteSettings: Site-wide settings. SiteSettings *SiteSettings `json:"siteSettings,omitempty"` - - // SubaccountId: Subaccount ID of this site. This is a read-only field - // that can be left blank. + // SubaccountId: Subaccount ID of this site. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Site) MarshalJSON() ([]byte, error) { +func (s Site) MarshalJSON() ([]byte, error) { type NoMethod Site - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteContact: Site Contact type SiteContact struct { // Address: Address of this site contact. Address string `json:"address,omitempty"` - // ContactType: Site contact type. // // Possible values: // "SALES_PERSON" // "TRAFFICKER" ContactType string `json:"contactType,omitempty"` - // Email: Email address of this site contact. This is a required field. Email string `json:"email,omitempty"` - // FirstName: First name of this site contact. FirstName string `json:"firstName,omitempty"` - - // Id: ID of this site contact. This is a read-only, auto-generated - // field. + // Id: ID of this site contact. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // LastName: Last name of this site contact. LastName string `json:"lastName,omitempty"` - // Phone: Primary phone number of this site contact. Phone string `json:"phone,omitempty"` - // Title: Title or designation of this site contact. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteContact) MarshalJSON() ([]byte, error) { +func (s SiteContact) MarshalJSON() ([]byte, error) { type NoMethod SiteContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteSettings: Site Settings type SiteSettings struct { - // ActiveViewOptOut: Whether active view creatives are disabled for this - // site. + // ActiveViewOptOut: Whether active view creatives are disabled for this site. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AdBlockingOptOut: Whether this site opts out of ad blocking. When - // true, ad blocking is disabled for all placements under the site, - // regardless of the individual placement settings. When false, the - // campaign and placement settings take effect. + // AdBlockingOptOut: Whether this site opts out of ad blocking. When true, ad + // blocking is disabled for all placements under the site, regardless of the + // individual placement settings. When false, the campaign and placement + // settings take effect. AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - // CreativeSettings: Site-wide creative settings. CreativeSettings *CreativeSettings `json:"creativeSettings,omitempty"` - // DisableNewCookie: Whether new cookies are disabled for this site. DisableNewCookie bool `json:"disableNewCookie,omitempty"` - // LookbackConfiguration: Lookback window settings for this site. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // TagSetting: Configuration settings for dynamic and image floodlight - // tags. + // TagSetting: Configuration settings for dynamic and image floodlight tags. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView - // for in-stream video creatives are disabled by default for new - // placements created under this site. This value will be used to - // populate the placement.videoActiveViewOptOut field, when no value is - // specified for the new placement. + // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView for + // in-stream video creatives are disabled by default for new placements created + // under this site. This value will be used to populate the + // placement.videoActiveViewOptOut field, when no value is specified for the + // new placement. VideoActiveViewOptOutTemplate bool `json:"videoActiveViewOptOutTemplate,omitempty"` - - // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new - // placements created under this site. This value will be used to - // populate the placements.vpaidAdapterChoice field, when no value is - // specified for the new placement. Controls which VPAID format the - // measurement adapter will use for in-stream video creatives assigned - // to the placement. The publisher's specifications will typically - // determine this setting. For VPAID creatives, the adapter format will - // match the VPAID format (HTML5 VPAID creatives use the HTML5 - // adapter). + // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new placements + // created under this site. This value will be used to populate the + // placements.vpaidAdapterChoice field, when no value is specified for the new + // placement. Controls which VPAID format the measurement adapter will use for + // in-stream video creatives assigned to the placement. The publisher's + // specifications will typically determine this setting. For VPAID creatives, + // the adapter format will match the VPAID format (HTML5 VPAID creatives use + // the HTML5 adapter). // - // Note: Flash is no longer supported. This field now defaults to HTML5 - // when the following values are provided: FLASH, BOTH. + // Note: Flash is no longer supported. This field now defaults to HTML5 when + // the following values are provided: FLASH, BOTH. // // Possible values: // "BOTH" @@ -12362,195 +9853,146 @@ type SiteSettings struct { // "FLASH" // "HTML5" VpaidAdapterChoiceTemplate string `json:"vpaidAdapterChoiceTemplate,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteSettings) MarshalJSON() ([]byte, error) { +func (s SiteSettings) MarshalJSON() ([]byte, error) { type NoMethod SiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SitesListResponse: Site List Response type SitesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Sites: Site collection. Sites []*Site `json:"sites,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SitesListResponse) MarshalJSON() ([]byte, error) { +func (s SitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Size: Represents the dimensions of ads, placements, creatives, or -// creative assets. +// Size: Represents the dimensions of ads, placements, creatives, or creative +// assets. type Size struct { - // Height: Height of this size. Acceptable values are 0 to 32767, - // inclusive. + // Height: Height of this size. Acceptable values are 0 to 32767, inclusive. Height int64 `json:"height,omitempty"` - // Iab: IAB standard size. This is a read-only, auto-generated field. Iab bool `json:"iab,omitempty"` - // Id: ID of this size. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#size". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#size". Kind string `json:"kind,omitempty"` - - // Width: Width of this size. Acceptable values are 0 to 32767, - // inclusive. + // Width: Width of this size. Acceptable values are 0 to 32767, inclusive. Width int64 `json:"width,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Size) MarshalJSON() ([]byte, error) { +func (s Size) MarshalJSON() ([]byte, error) { type NoMethod Size - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SizesListResponse: Size List Response type SizesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sizesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sizesListResponse". Kind string `json:"kind,omitempty"` - // Sizes: Size collection. Sizes []*Size `json:"sizes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SizesListResponse) MarshalJSON() ([]byte, error) { +func (s SizesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SizesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SkippableSetting: Skippable Settings type SkippableSetting struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#skippableSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#skippableSetting". Kind string `json:"kind,omitempty"` - - // ProgressOffset: Amount of time to play videos served to this - // placement before counting a view. Applicable when skippable is true. + // ProgressOffset: Amount of time to play videos served to this placement + // before counting a view. Applicable when skippable is true. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // SkipOffset: Amount of time to play videos served to this placement - // before the skip button should appear. Applicable when skippable is - // true. + // SkipOffset: Amount of time to play videos served to this placement before + // the skip button should appear. Applicable when skippable is true. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can skip creatives served to this - // placement. + // Skippable: Whether the user can skip creatives served to this placement. Skippable bool `json:"skippable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SkippableSetting) MarshalJSON() ([]byte, error) { +func (s SkippableSetting) MarshalJSON() ([]byte, error) { type NoMethod SkippableSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SortedDimension: Represents a sorted dimension. @@ -12558,38 +10000,30 @@ type SortedDimension struct { // Kind: The kind of resource this is, in this case // dfareporting#sortedDimension. Kind string `json:"kind,omitempty"` - // Name: The name of the dimension. Name string `json:"name,omitempty"` - // SortOrder: An optional sort order for the dimension column. // // Possible values: // "ASCENDING" // "DESCENDING" SortOrder string `json:"sortOrder,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SortedDimension) MarshalJSON() ([]byte, error) { +func (s SortedDimension) MarshalJSON() ([]byte, error) { type NoMethod SortedDimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Subaccount: Contains properties of a Campaign Manager subaccount. @@ -12597,103 +10031,78 @@ type Subaccount struct { // AccountId: ID of the account that contains this subaccount. This is a // read-only field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AvailablePermissionIds: IDs of the available user role permissions - // for this subaccount. + // AvailablePermissionIds: IDs of the available user role permissions for this + // subaccount. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // Id: ID of this subaccount. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccount". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccount". Kind string `json:"kind,omitempty"` - - // Name: Name of this subaccount. This is a required field. Must be less - // than 128 characters long and be unique among subaccounts of the same - // account. + // Name: Name of this subaccount. This is a required field. Must be less than + // 128 characters long and be unique among subaccounts of the same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Subaccount) MarshalJSON() ([]byte, error) { +func (s Subaccount) MarshalJSON() ([]byte, error) { type NoMethod Subaccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SubaccountsListResponse: Subaccount List Response type SubaccountsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Subaccounts: Subaccount collection. Subaccounts []*Subaccount `json:"subaccounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubaccountsListResponse) MarshalJSON() ([]byte, error) { +func (s SubaccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod SubaccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagData: Placement Tag Data type TagData struct { - // AdId: Ad associated with this placement tag. Applicable only when - // format is PLACEMENT_TAG_TRACKING. + // AdId: Ad associated with this placement tag. Applicable only when format is + // PLACEMENT_TAG_TRACKING. AdId int64 `json:"adId,omitempty,string"` - // ClickTag: Tag string to record a click. ClickTag string `json:"clickTag,omitempty"` - - // CreativeId: Creative associated with this placement tag. Applicable - // only when format is PLACEMENT_TAG_TRACKING. + // CreativeId: Creative associated with this placement tag. Applicable only + // when format is PLACEMENT_TAG_TRACKING. CreativeId int64 `json:"creativeId,omitempty,string"` - // Format: TagData tag format of this tag. // // Possible values: @@ -12717,196 +10126,152 @@ type TagData struct { // "PLACEMENT_TAG_TRACKING_IFRAME" // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" Format string `json:"format,omitempty"` - // ImpressionTag: Tag string for serving an ad. ImpressionTag string `json:"impressionTag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdId") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagData) MarshalJSON() ([]byte, error) { +func (s TagData) MarshalJSON() ([]byte, error) { type NoMethod TagData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSetting: Tag Settings type TagSetting struct { - // AdditionalKeyValues: Additional key-values to be included in tags. - // Each key-value pair must be of the form key=value, and pairs must be - // separated by a semicolon (;). Keys and values must not contain - // commas. For example, id=2;color=red is a valid value for this field. + // AdditionalKeyValues: Additional key-values to be included in tags. Each + // key-value pair must be of the form key=value, and pairs must be separated by + // a semicolon (;). Keys and values must not contain commas. For example, + // id=2;color=red is a valid value for this field. AdditionalKeyValues string `json:"additionalKeyValues,omitempty"` - - // IncludeClickThroughUrls: Whether static landing page URLs should be - // included in the tags. This setting applies only to placements. + // IncludeClickThroughUrls: Whether static landing page URLs should be included + // in the tags. This setting applies only to placements. IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"` - - // IncludeClickTracking: Whether click-tracking string should be - // included in the tags. + // IncludeClickTracking: Whether click-tracking string should be included in + // the tags. IncludeClickTracking bool `json:"includeClickTracking,omitempty"` - - // KeywordOption: Option specifying how keywords are embedded in ad - // tags. This setting can be used to specify whether keyword - // placeholders are inserted in placement tags for this site. Publishers - // can then add keywords to those placeholders. + // KeywordOption: Option specifying how keywords are embedded in ad tags. This + // setting can be used to specify whether keyword placeholders are inserted in + // placement tags for this site. Publishers can then add keywords to those + // placeholders. // // Possible values: // "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" // "IGNORE" // "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" KeywordOption string `json:"keywordOption,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalKeyValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalKeyValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSetting) MarshalJSON() ([]byte, error) { +func (s TagSetting) MarshalJSON() ([]byte, error) { type NoMethod TagSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSettings: Dynamic and Image Tag Settings. type TagSettings struct { // DynamicTagEnabled: Whether dynamic floodlight tags are enabled. DynamicTagEnabled bool `json:"dynamicTagEnabled,omitempty"` - // ImageTagEnabled: Whether image tags are enabled. ImageTagEnabled bool `json:"imageTagEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTagEnabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTagEnabled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSettings) MarshalJSON() ([]byte, error) { +func (s TagSettings) MarshalJSON() ([]byte, error) { type NoMethod TagSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetWindow: Target Window. type TargetWindow struct { // CustomHtml: User-entered value. CustomHtml string `json:"customHtml,omitempty"` - - // TargetWindowOption: Type of browser window for which the backup image - // of the flash creative can be displayed. + // TargetWindowOption: Type of browser window for which the backup image of the + // flash creative can be displayed. // // Possible values: // "CURRENT_WINDOW" // "CUSTOM" // "NEW_WINDOW" TargetWindowOption string `json:"targetWindowOption,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomHtml") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomHtml") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomHtml") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetWindow) MarshalJSON() ([]byte, error) { +func (s TargetWindow) MarshalJSON() ([]byte, error) { type NoMethod TargetWindow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetableRemarketingList: Contains properties of a targetable -// remarketing list. Remarketing enables you to create lists of users -// who have performed specific actions on a site, then target ads to -// members of those lists. This resource is a read-only view of a -// remarketing list to be used to faciliate targeting ads to specific -// lists. Remarketing lists that are owned by your advertisers and those -// that are shared to your advertisers or account are accessible via -// this resource. To manage remarketing lists that are owned by your -// advertisers, use the RemarketingLists resource. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TargetableRemarketingList: Contains properties of a targetable remarketing +// list. Remarketing enables you to create lists of users who have performed +// specific actions on a site, then target ads to members of those lists. This +// resource is a read-only view of a remarketing list to be used to faciliate +// targeting ads to specific lists. Remarketing lists that are owned by your +// advertisers and those that are shared to your advertisers or account are +// accessible via this resource. To manage remarketing lists that are owned by +// your advertisers, use the RemarketingLists resource. type TargetableRemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this targetable remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // targetable remarketing list. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Targetable remarketing list description. Description string `json:"description,omitempty"` - // Id: Targetable remarketing list ID. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingList". Kind string `json:"kind,omitempty"` - // LifeSpan: Number of days that a user should remain in the targetable // remarketing list without an impression. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this targetable remarketing list was // originated. // @@ -12923,304 +10288,230 @@ type TargetableRemarketingList struct { // "REMARKETING_LIST_SOURCE_XFP" // "REMARKETING_LIST_SOURCE_YOUTUBE" ListSource string `json:"listSource,omitempty"` - // Name: Name of the targetable remarketing list. Is no greater than 128 // characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingList) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingList) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetableRemarketingListsListResponse: Targetable remarketing list -// response +// TargetableRemarketingListsListResponse: Targetable remarketing list response type TargetableRemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetableRemarketingLists: Targetable remarketing list collection. TargetableRemarketingLists []*TargetableRemarketingList `json:"targetableRemarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetingTemplate: Contains properties of a targeting template. A -// targeting template encapsulates targeting information which can be -// reused across multiple ads. +// TargetingTemplate: Contains properties of a targeting template. A targeting +// template encapsulates targeting information which can be reused across +// multiple ads. type TargetingTemplate struct { - // AccountId: Account ID of this targeting template. This field, if left - // unset, will be auto-generated on insert and is read-only after - // insert. + // AccountId: Account ID of this targeting template. This field, if left unset, + // will be auto-generated on insert and is read-only after insert. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this targeting template. This is a - // required field on insert and is read-only after insert. + // AdvertiserId: Advertiser ID of this targeting template. This is a required + // field on insert and is read-only after insert. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // DayPartTargeting: Time and day targeting criteria. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - // GeoTargeting: Geographical targeting criteria. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - - // Id: ID of this targeting template. This is a read-only, - // auto-generated field. + // Id: ID of this targeting template. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // KeyValueTargetingExpression: Key-value targeting criteria. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplate". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplate". Kind string `json:"kind,omitempty"` - // LanguageTargeting: Language targeting criteria. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - // ListTargetingExpression: Remarketing list targeting criteria. ListTargetingExpression *ListTargetingExpression `json:"listTargetingExpression,omitempty"` - - // Name: Name of this targeting template. This field is required. It - // must be less than 256 characters long and unique within an - // advertiser. + // Name: Name of this targeting template. This field is required. It must be + // less than 256 characters long and unique within an advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this targeting template. This field, - // if left unset, will be auto-generated on insert and is read-only - // after insert. + // SubaccountId: Subaccount ID of this targeting template. This field, if left + // unset, will be auto-generated on insert and is read-only after insert. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TechnologyTargeting: Technology platform targeting criteria. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplate) MarshalJSON() ([]byte, error) { +func (s TargetingTemplate) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetingTemplatesListResponse: Targeting Template List Response type TargetingTemplatesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplatesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplatesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetingTemplates: Targeting template collection. TargetingTemplates []*TargetingTemplate `json:"targetingTemplates,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { +func (s TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplatesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TechnologyTargeting: Technology Targeting. type TechnologyTargeting struct { // Browsers: Browsers that this ad targets. For each browser either set - // browserVersionId or dartId along with the version numbers. If both - // are specified, only browserVersionId will be used. The other fields - // are populated automatically when the ad is inserted or updated. + // browserVersionId or dartId along with the version numbers. If both are + // specified, only browserVersionId will be used. The other fields are + // populated automatically when the ad is inserted or updated. Browsers []*Browser `json:"browsers,omitempty"` - - // ConnectionTypes: Connection types that this ad targets. For each - // connection type only id is required. The other fields are populated - // automatically when the ad is inserted or updated. + // ConnectionTypes: Connection types that this ad targets. For each connection + // type only id is required. The other fields are populated automatically when + // the ad is inserted or updated. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - // MobileCarriers: Mobile carriers that this ad targets. For each mobile // carrier only id is required, and the other fields are populated - // automatically when the ad is inserted or updated. If targeting a - // mobile carrier, do not set targeting for any zip codes. + // automatically when the ad is inserted or updated. If targeting a mobile + // carrier, do not set targeting for any zip codes. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - - // OperatingSystemVersions: Operating system versions that this ad - // targets. To target all versions, use operatingSystems. For each - // operating system version, only id is required. The other fields are - // populated automatically when the ad is inserted or updated. If - // targeting an operating system version, do not set targeting for the - // corresponding operating system in operatingSystems. + // OperatingSystemVersions: Operating system versions that this ad targets. To + // target all versions, use operatingSystems. For each operating system + // version, only id is required. The other fields are populated automatically + // when the ad is inserted or updated. If targeting an operating system + // version, do not set targeting for the corresponding operating system in + // operatingSystems. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - - // OperatingSystems: Operating systems that this ad targets. To target - // specific versions, use operatingSystemVersions. For each operating - // system only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting an - // operating system, do not set targeting for operating system versions - // for the same operating system. + // OperatingSystems: Operating systems that this ad targets. To target specific + // versions, use operatingSystemVersions. For each operating system only dartId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting an operating system, do not set targeting + // for operating system versions for the same operating system. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - - // PlatformTypes: Platform types that this ad targets. For example, - // desktop, mobile, or tablet. For each platform type, only id is - // required, and the other fields are populated automatically when the - // ad is inserted or updated. + // PlatformTypes: Platform types that this ad targets. For example, desktop, + // mobile, or tablet. For each platform type, only id is required, and the + // other fields are populated automatically when the ad is inserted or updated. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TechnologyTargeting) MarshalJSON() ([]byte, error) { +func (s TechnologyTargeting) MarshalJSON() ([]byte, error) { type NoMethod TechnologyTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyAuthenticationToken: Third Party Authentication Token type ThirdPartyAuthenticationToken struct { // Name: Name of the third-party authentication token. Name string `json:"name,omitempty"` - - // Value: Value of the third-party authentication token. This is a - // read-only, auto-generated field. + // Value: Value of the third-party authentication token. This is a read-only, + // auto-generated field. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { +func (s ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyAuthenticationToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyTrackingUrl: Third-party Tracking URL. type ThirdPartyTrackingUrl struct { - // ThirdPartyUrlType: Third-party URL type for in-stream video - // creatives. + // ThirdPartyUrlType: Third-party URL type for in-stream video creatives. // // Possible values: // "CLICK_TRACKING" @@ -13243,32 +10534,24 @@ type ThirdPartyTrackingUrl struct { // "VIDEO_STOP" // "VIDEO_THIRD_QUARTILE" ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"` - // Url: URL for the specified third-party URL type. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { +func (s ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyTrackingUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TranscodeSetting: Transcode Settings @@ -13276,37 +10559,29 @@ type TranscodeSetting struct { // EnabledVideoFormats: Whitelist of video formats to be served to this // placement. Set this list to null or empty to serve all video formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#transcodeSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#transcodeSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnabledVideoFormats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnabledVideoFormats") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TranscodeSetting) MarshalJSON() ([]byte, error) { +func (s TranscodeSetting) MarshalJSON() ([]byte, error) { type NoMethod TranscodeSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable -// to the following creative types: INSTREAM_VIDEO and VPAID. +// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the +// following creative types: INSTREAM_VIDEO and VPAID. type UniversalAdId struct { // Registry: Registry used for the Ad ID value. // @@ -13316,37 +10591,29 @@ type UniversalAdId struct { // "DCM" // "OTHER" Registry string `json:"registry,omitempty"` - - // Value: ID value for this creative. Only alphanumeric characters and - // the following symbols are valid: "_/\-". Maximum length is 64 - // characters. Read only when registry is DCM. + // Value: ID value for this creative. Only alphanumeric characters and the + // following symbols are valid: "_/\-". Maximum length is 64 characters. Read + // only when registry is DCM. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Registry") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Registry") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Registry") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UniversalAdId) MarshalJSON() ([]byte, error) { +func (s UniversalAdId) MarshalJSON() ([]byte, error) { type NoMethod UniversalAdId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserDefinedVariableConfiguration: User Defined Variable -// configuration. +// UserDefinedVariableConfiguration: User Defined Variable configuration. type UserDefinedVariableConfiguration struct { // DataType: Data type for the variable. This is a required field. // @@ -13354,12 +10621,10 @@ type UserDefinedVariableConfiguration struct { // "NUMBER" // "STRING" DataType string `json:"dataType,omitempty"` - // ReportName: User-friendly name for the variable which will appear in - // reports. This is a required field, must be less than 64 characters - // long, and cannot contain the following characters: ""<>". + // reports. This is a required field, must be less than 64 characters long, and + // cannot contain the following characters: ""<>". ReportName string `json:"reportName,omitempty"` - // VariableType: Variable name in the tag. This is a required field. // // Possible values: @@ -13464,188 +10729,141 @@ type UserDefinedVariableConfiguration struct { // "U98" // "U99" VariableType string `json:"variableType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { +func (s UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { type NoMethod UserDefinedVariableConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfile: Represents a UserProfile resource. type UserProfile struct { // AccountId: The account ID to which this profile belongs. AccountId int64 `json:"accountId,omitempty,string"` - // AccountName: The account name this profile belongs to. AccountName string `json:"accountName,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#userProfile. + // Kind: The kind of resource this is, in this case dfareporting#userProfile. Kind string `json:"kind,omitempty"` - // ProfileId: The unique ID of the user profile. ProfileId int64 `json:"profileId,omitempty,string"` - - // SubAccountId: The sub account ID this profile belongs to if - // applicable. + // SubAccountId: The sub account ID this profile belongs to if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - - // SubAccountName: The sub account name this profile belongs to if - // applicable. + // SubAccountName: The sub account name this profile belongs to if applicable. SubAccountName string `json:"subAccountName,omitempty"` - // UserName: The user name. UserName string `json:"userName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfile) MarshalJSON() ([]byte, error) { +func (s UserProfile) MarshalJSON() ([]byte, error) { type NoMethod UserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfileList: Represents the list of user profiles. type UserProfileList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The user profiles returned in this response. Items []*UserProfile `json:"items,omitempty"` - - // Kind: The kind of list this is, in this case - // dfareporting#userProfileList. + // Kind: The kind of list this is, in this case dfareporting#userProfileList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfileList) MarshalJSON() ([]byte, error) { +func (s UserProfileList) MarshalJSON() ([]byte, error) { type NoMethod UserProfileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserRole: Contains properties of auser role, which is used to manage -// user access. +// UserRole: Contains properties of auser role, which is used to manage user +// access. type UserRole struct { - // AccountId: Account ID of this user role. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this user role. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // DefaultUserRole: Whether this is a default user role. Default user - // roles are created by the system for the account/subaccount and cannot - // be modified or deleted. Each default user role comes with a basic set - // of preassigned permissions. + // DefaultUserRole: Whether this is a default user role. Default user roles are + // created by the system for the account/subaccount and cannot be modified or + // deleted. Each default user role comes with a basic set of preassigned + // permissions. DefaultUserRole bool `json:"defaultUserRole,omitempty"` - // Id: ID of this user role. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRole". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRole". Kind string `json:"kind,omitempty"` - - // Name: Name of this user role. This is a required field. Must be less - // than 256 characters long. If this user role is under a subaccount, - // the name must be unique among sites of the same subaccount. - // Otherwise, this user role is a top-level user role, and the name must - // be unique among top-level user roles of the same account. + // Name: Name of this user role. This is a required field. Must be less than + // 256 characters long. If this user role is under a subaccount, the name must + // be unique among sites of the same subaccount. Otherwise, this user role is a + // top-level user role, and the name must be unique among top-level user roles + // of the same account. Name string `json:"name,omitempty"` - - // ParentUserRoleId: ID of the user role that this user role is based on - // or copied from. This is a required field. + // ParentUserRoleId: ID of the user role that this user role is based on or + // copied from. This is a required field. ParentUserRoleId int64 `json:"parentUserRoleId,omitempty,string"` - // Permissions: List of permissions associated with this user role. Permissions []*UserRolePermission `json:"permissions,omitempty"` - - // SubaccountId: Subaccount ID of this user role. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this user role. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRole) MarshalJSON() ([]byte, error) { +func (s UserRole) MarshalJSON() ([]byte, error) { type NoMethod UserRole - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermission: Contains properties of a user role permission. @@ -13659,46 +10877,35 @@ type UserRolePermission struct { // "SUBACCOUNT_AND_ACCOUNT_ALWAYS" // "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" Availability string `json:"availability,omitempty"` - // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermission". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission. Name string `json:"name,omitempty"` - - // PermissionGroupId: ID of the permission group that this user role - // permission belongs to. + // PermissionGroupId: ID of the permission group that this user role permission + // belongs to. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Availability") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Availability") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Availability") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermission) MarshalJSON() ([]byte, error) { +func (s UserRolePermission) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroup: Represents a grouping of related user role @@ -13706,152 +10913,117 @@ func (s *UserRolePermission) MarshalJSON() ([]byte, error) { type UserRolePermissionGroup struct { // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroup) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroupsListResponse: User Role Permission Group List // Response type UserRolePermissionGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissionGroups: User role permission group collection. UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionsListResponse: User Role Permission List Response type UserRolePermissionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissions: User role permission collection. UserRolePermissions []*UserRolePermission `json:"userRolePermissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolesListResponse: User Role List Response type UserRolesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // UserRoles: User role collection. UserRoles []*UserRole `json:"userRoles,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolesListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolesListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormat: Contains information about supported video formats. @@ -13865,128 +11037,98 @@ type VideoFormat struct { // "THREEGPP" // "WEBM" FileType string `json:"fileType,omitempty"` - // Id: ID of the video format. Id int64 `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormat". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormat". Kind string `json:"kind,omitempty"` - // Resolution: The resolution of this video format. Resolution *Size `json:"resolution,omitempty"` - // TargetBitRate: The target bit rate of this video format. TargetBitRate int64 `json:"targetBitRate,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "FileType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormat) MarshalJSON() ([]byte, error) { +func (s VideoFormat) MarshalJSON() ([]byte, error) { type NoMethod VideoFormat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormatsListResponse: Video Format List Response type VideoFormatsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormatsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormatsListResponse". Kind string `json:"kind,omitempty"` - // VideoFormats: Video format collection. VideoFormats []*VideoFormat `json:"videoFormats,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormatsListResponse) MarshalJSON() ([]byte, error) { +func (s VideoFormatsListResponse) MarshalJSON() ([]byte, error) { type NoMethod VideoFormatsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoOffset: Video Offset type VideoOffset struct { - // OffsetPercentage: Duration, as a percentage of video duration. Do not - // set when offsetSeconds is set. Acceptable values are 0 to 100, - // inclusive. + // OffsetPercentage: Duration, as a percentage of video duration. Do not set + // when offsetSeconds is set. Acceptable values are 0 to 100, inclusive. OffsetPercentage int64 `json:"offsetPercentage,omitempty"` - - // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage - // is set. Acceptable values are 0 to 86399, inclusive. + // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage is + // set. Acceptable values are 0 to 86399, inclusive. OffsetSeconds int64 `json:"offsetSeconds,omitempty"` - // ForceSendFields is a list of field names (e.g. "OffsetPercentage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OffsetPercentage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OffsetPercentage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoOffset) MarshalJSON() ([]byte, error) { +func (s VideoOffset) MarshalJSON() ([]byte, error) { type NoMethod VideoOffset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoSettings: Video Settings type VideoSettings struct { - // CompanionSettings: Settings for the companion creatives of video - // creatives served to this placement. + // CompanionSettings: Settings for the companion creatives of video creatives + // served to this placement. CompanionSettings *CompanionSetting `json:"companionSettings,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoSettings". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoSettings". Kind string `json:"kind,omitempty"` - // Orientation: Orientation of a video placement. If this value is set, // placement will return assets matching the specified orientation. // @@ -13995,43 +11137,32 @@ type VideoSettings struct { // "LANDSCAPE" // "PORTRAIT" Orientation string `json:"orientation,omitempty"` - - // SkippableSettings: Settings for the skippability of video creatives - // served to this placement. If this object is provided, the - // creative-level skippable settings will be overridden. + // SkippableSettings: Settings for the skippability of video creatives served + // to this placement. If this object is provided, the creative-level skippable + // settings will be overridden. SkippableSettings *SkippableSetting `json:"skippableSettings,omitempty"` - - // TranscodeSettings: Settings for the transcodes of video creatives - // served to this placement. If this object is provided, the - // creative-level transcode settings will be overridden. + // TranscodeSettings: Settings for the transcodes of video creatives served to + // this placement. If this object is provided, the creative-level transcode + // settings will be overridden. TranscodeSettings *TranscodeSetting `json:"transcodeSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionSettings") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionSettings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionSettings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoSettings) MarshalJSON() ([]byte, error) { +func (s VideoSettings) MarshalJSON() ([]byte, error) { type NoMethod VideoSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "dfareporting.accountActiveAdSummaries.get": - type AccountActiveAdSummariesGetCall struct { s *Service profileId int64 @@ -14043,6 +11174,9 @@ type AccountActiveAdSummariesGetCall struct { } // Get: Gets the account's active ad summary by account ID. +// +// - profileId: User profile ID associated with this request. +// - summaryAccountId: Account ID. func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId int64) *AccountActiveAdSummariesGetCall { c := &AccountActiveAdSummariesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14051,33 +11185,29 @@ func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountActiveAdSummariesGetCall) Fields(s ...googleapi.Field) *AccountActiveAdSummariesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountActiveAdSummariesGetCall) IfNoneMatch(entityTag string) *AccountActiveAdSummariesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountActiveAdSummariesGetCall) Context(ctx context.Context) *AccountActiveAdSummariesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountActiveAdSummariesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14086,12 +11216,7 @@ func (c *AccountActiveAdSummariesGetCall) Header() http.Header { } func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14109,16 +11234,15 @@ func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "summaryAccountId": strconv.FormatInt(c.summaryAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountActiveAdSummaries.get" call. -// Exactly one of *AccountActiveAdSummary or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountActiveAdSummary.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountActiveAdSummary.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*AccountActiveAdSummary, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14126,17 +11250,17 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountActiveAdSummary{ ServerResponse: googleapi.ServerResponse{ @@ -14149,42 +11273,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Gets the account's active ad summary by account ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountActiveAdSummaries.get", - // "parameterOrder": [ - // "profileId", - // "summaryAccountId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "summaryAccountId": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - // "response": { - // "$ref": "AccountActiveAdSummary" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.get": +} type AccountPermissionGroupsGetCall struct { s *Service @@ -14197,6 +11286,9 @@ type AccountPermissionGroupsGetCall struct { } // Get: Gets one account permission group by ID. +// +// - id: Account permission group ID. +// - profileId: User profile ID associated with this request. func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *AccountPermissionGroupsGetCall { c := &AccountPermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14205,33 +11297,29 @@ func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *Account } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsGetCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsGetCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsGetCall) Context(ctx context.Context) *AccountPermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14240,12 +11328,7 @@ func (c *AccountPermissionGroupsGetCall) Header() http.Header { } func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14263,16 +11346,15 @@ func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.get" call. -// Exactly one of *AccountPermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermissionGroup.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroup.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14280,17 +11362,17 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -14303,42 +11385,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco return nil, err } return ret, nil - // { - // "description": "Gets one account permission group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", - // "response": { - // "$ref": "AccountPermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.list": +} type AccountPermissionGroupsListCall struct { s *Service @@ -14350,6 +11397,8 @@ type AccountPermissionGroupsListCall struct { } // List: Retrieves the list of account permission groups. +// +// - profileId: User profile ID associated with this request. func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissionGroupsListCall { c := &AccountPermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14357,33 +11406,29 @@ func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsListCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsListCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsListCall) Context(ctx context.Context) *AccountPermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14392,12 +11437,7 @@ func (c *AccountPermissionGroupsListCall) Header() http.Header { } func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14414,17 +11454,15 @@ func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.list" call. -// Exactly one of *AccountPermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroupsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14432,17 +11470,17 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14455,34 +11493,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permission groups.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups", - // "response": { - // "$ref": "AccountPermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.get": +} type AccountPermissionsGetCall struct { s *Service @@ -14495,6 +11506,9 @@ type AccountPermissionsGetCall struct { } // Get: Gets one account permission by ID. +// +// - id: Account permission ID. +// - profileId: User profile ID associated with this request. func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermissionsGetCall { c := &AccountPermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14503,33 +11517,29 @@ func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsGetCall) Fields(s ...googleapi.Field) *AccountPermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsGetCall) IfNoneMatch(entityTag string) *AccountPermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsGetCall) Context(ctx context.Context) *AccountPermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14538,12 +11548,7 @@ func (c *AccountPermissionsGetCall) Header() http.Header { } func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14561,16 +11566,15 @@ func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.get" call. -// Exactly one of *AccountPermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14578,17 +11582,17 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermission{ ServerResponse: googleapi.ServerResponse{ @@ -14601,42 +11605,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe return nil, err } return ret, nil - // { - // "description": "Gets one account permission by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions/{id}", - // "response": { - // "$ref": "AccountPermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.list": +} type AccountPermissionsListCall struct { s *Service @@ -14648,6 +11617,8 @@ type AccountPermissionsListCall struct { } // List: Retrieves the list of account permissions. +// +// - profileId: User profile ID associated with this request. func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsListCall { c := &AccountPermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14655,33 +11626,29 @@ func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsListCall) Fields(s ...googleapi.Field) *AccountPermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsListCall) IfNoneMatch(entityTag string) *AccountPermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsListCall) Context(ctx context.Context) *AccountPermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14690,12 +11657,7 @@ func (c *AccountPermissionsListCall) Header() http.Header { } func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14712,16 +11674,15 @@ func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.list" call. -// Exactly one of *AccountPermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14729,17 +11690,17 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14752,34 +11713,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permissions.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions", - // "response": { - // "$ref": "AccountPermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.get": +} type AccountUserProfilesGetCall struct { s *Service @@ -14792,6 +11726,9 @@ type AccountUserProfilesGetCall struct { } // Get: Gets one account user profile by ID. +// +// - id: User profile ID. +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUserProfilesGetCall { c := &AccountUserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14800,33 +11737,29 @@ func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUser } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesGetCall) Fields(s ...googleapi.Field) *AccountUserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesGetCall) IfNoneMatch(entityTag string) *AccountUserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesGetCall) Context(ctx context.Context) *AccountUserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14835,12 +11768,7 @@ func (c *AccountUserProfilesGetCall) Header() http.Header { } func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14858,16 +11786,15 @@ func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.get" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14875,17 +11802,17 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -14898,42 +11825,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU return nil, err } return ret, nil - // { - // "description": "Gets one account user profile by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles/{id}", - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.insert": +} type AccountUserProfilesInsertCall struct { s *Service @@ -14945,6 +11837,8 @@ type AccountUserProfilesInsertCall struct { } // Insert: Inserts a new account user profile. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesInsertCall { c := &AccountUserProfilesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14953,23 +11847,21 @@ func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesInsertCall) Fields(s ...googleapi.Field) *AccountUserProfilesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesInsertCall) Context(ctx context.Context) *AccountUserProfilesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14978,18 +11870,12 @@ func (c *AccountUserProfilesInsertCall) Header() http.Header { } func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15002,16 +11888,15 @@ func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.insert" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15019,17 +11904,17 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15042,37 +11927,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Inserts a new account user profile.", - // "httpMethod": "POST", - // "id": "dfareporting.accountUserProfiles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.list": +} type AccountUserProfilesListCall struct { s *Service @@ -15083,8 +11938,10 @@ type AccountUserProfilesListCall struct { header_ http.Header } -// List: Retrieves a list of account user profiles, possibly filtered. -// This method supports paging. +// List: Retrieves a list of account user profiles, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) List(profileId int64) *AccountUserProfilesListCall { c := &AccountUserProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15098,8 +11955,8 @@ func (c *AccountUserProfilesListCall) Active(active bool) *AccountUserProfilesLi return c } -// Ids sets the optional parameter "ids": Select only user profiles with -// these IDs. +// Ids sets the optional parameter "ids": Select only user profiles with these +// IDs. func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesListCall { var ids_ []string for _, v := range ids { @@ -15109,8 +11966,8 @@ func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountUserProfilesListCall) MaxResults(maxResults int64) *AccountUserProfilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -15123,22 +11980,21 @@ func (c *AccountUserProfilesListCall) PageToken(pageToken string) *AccountUserPr return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or email. Wildcards (*) are -// allowed. For example, "user profile*2015" will return objects with -// names like "user profile June 2015", "user profile April 2015", or -// simply "user profile 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "user profile" will match objects with -// name "my user profile", "user profile 2015", or simply "user +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or email. Wildcards (*) are allowed. For example, +// "user profile*2015" will return objects with names like "user profile June +// 2015", "user profile April 2015", or simply "user profile 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "user profile" will match +// objects with name "my user profile", "user profile 2015", or simply "user // profile". func (c *AccountUserProfilesListCall) SearchString(searchString string) *AccountUserProfilesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -15149,8 +12005,7 @@ func (c *AccountUserProfilesListCall) SortField(sortField string) *AccountUserPr return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -15161,8 +12016,8 @@ func (c *AccountUserProfilesListCall) SortOrder(sortOrder string) *AccountUserPr return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user profiles with the specified subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// profiles with the specified subaccount ID. func (c *AccountUserProfilesListCall) SubaccountId(subaccountId int64) *AccountUserProfilesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c @@ -15176,33 +12031,29 @@ func (c *AccountUserProfilesListCall) UserRoleId(userRoleId int64) *AccountUserP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesListCall) Fields(s ...googleapi.Field) *AccountUserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesListCall) IfNoneMatch(entityTag string) *AccountUserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesListCall) Context(ctx context.Context) *AccountUserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15211,12 +12062,7 @@ func (c *AccountUserProfilesListCall) Header() http.Header { } func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15233,16 +12079,15 @@ func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.list" call. -// Exactly one of *AccountUserProfilesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountUserProfilesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfilesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*AccountUserProfilesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15250,17 +12095,17 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfilesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15273,102 +12118,6 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account return nil, err } return ret, nil - // { - // "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active user profiles.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user profiles with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"user profile*2015\" will return objects with names like \"user profile June 2015\", \"user profile April 2015\", or simply \"user profile 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"user profile\" will match objects with name \"my user profile\", \"user profile 2015\", or simply \"user profile\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user profiles with the specified subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "userRoleId": { - // "description": "Select only user profiles with the specified user role ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "response": { - // "$ref": "AccountUserProfilesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -15376,7 +12125,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // The provided context supersedes any context provided to the Context method. func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*AccountUserProfilesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15392,8 +12141,6 @@ func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*Account } } -// method id "dfareporting.accountUserProfiles.patch": - type AccountUserProfilesPatchCall struct { s *Service profileId int64 @@ -15403,8 +12150,11 @@ type AccountUserProfilesPatchCall struct { header_ http.Header } -// Patch: Updates an existing account user profile. This method supports -// patch semantics. +// Patch: Updates an existing account user profile. This method supports patch +// semantics. +// +// - id: User profile ID. +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesPatchCall { c := &AccountUserProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15414,23 +12164,21 @@ func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuse } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesPatchCall) Fields(s ...googleapi.Field) *AccountUserProfilesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesPatchCall) Context(ctx context.Context) *AccountUserProfilesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15439,18 +12187,12 @@ func (c *AccountUserProfilesPatchCall) Header() http.Header { } func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15463,16 +12205,15 @@ func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.patch" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15480,17 +12221,17 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15503,45 +12244,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.accountUserProfiles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.update": +} type AccountUserProfilesUpdateCall struct { s *Service @@ -15553,6 +12256,8 @@ type AccountUserProfilesUpdateCall struct { } // Update: Updates an existing account user profile. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesUpdateCall { c := &AccountUserProfilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15561,23 +12266,21 @@ func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesUpdateCall) Fields(s ...googleapi.Field) *AccountUserProfilesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesUpdateCall) Context(ctx context.Context) *AccountUserProfilesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15586,18 +12289,12 @@ func (c *AccountUserProfilesUpdateCall) Header() http.Header { } func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15610,16 +12307,15 @@ func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.update" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15627,17 +12323,17 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15650,37 +12346,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile.", - // "httpMethod": "PUT", - // "id": "dfareporting.accountUserProfiles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.get": +} type AccountsGetCall struct { s *Service @@ -15693,6 +12359,9 @@ type AccountsGetCall struct { } // Get: Gets one account by ID. +// +// - id: Account ID. +// - profileId: User profile ID associated with this request. func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15701,33 +12370,29 @@ func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15736,12 +12401,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15759,16 +12419,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15776,17 +12434,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -15799,42 +12457,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Gets one account by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts/{id}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.list": +} type AccountsListCall struct { s *Service @@ -15847,22 +12470,22 @@ type AccountsListCall struct { // List: Retrieves the list of accounts, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AccountsService) List(profileId int64) *AccountsListCall { c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Active sets the optional parameter "active": Select only active -// accounts. Don't set this field to select both active and non-active -// accounts. +// Active sets the optional parameter "active": Select only active accounts. +// Don't set this field to select both active and non-active accounts. func (c *AccountsListCall) Active(active bool) *AccountsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// Ids sets the optional parameter "ids": Select only accounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only accounts with these IDs. func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { var ids_ []string for _, v := range ids { @@ -15872,8 +12495,8 @@ func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -15886,21 +12509,20 @@ func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "account*2015" will return objects with names like "account -// June 2015", "account April 2015", or simply "account 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "account" will -// match objects with name "my account", "account 2015", or simply -// "account". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "account*2015" will return objects with names like "account June 2015", +// "account April 2015", or simply "account 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "account" will match objects with name "my +// account", "account 2015", or simply "account". func (c *AccountsListCall) SearchString(searchString string) *AccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -15911,8 +12533,7 @@ func (c *AccountsListCall) SortField(sortField string) *AccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -15924,33 +12545,29 @@ func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15959,12 +12576,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15981,16 +12593,15 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.list" call. -// Exactly one of *AccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15998,17 +12609,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16021,90 +12632,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active accounts. Don't set this field to select both active and non-active accounts.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only accounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"account*2015\" will return objects with names like \"account June 2015\", \"account April 2015\", or simply \"account 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"account\" will match objects with name \"my account\", \"account 2015\", or simply \"account\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "response": { - // "$ref": "AccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -16112,7 +12639,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // The provided context supersedes any context provided to the Context method. func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -16128,8 +12655,6 @@ func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListRespon } } -// method id "dfareporting.accounts.patch": - type AccountsPatchCall struct { s *Service profileId int64 @@ -16139,8 +12664,10 @@ type AccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing account. This method supports patch -// semantics. +// Patch: Updates an existing account. This method supports patch semantics. +// +// - id: Account ID. +// - profileId: User profile ID associated with this request. func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *AccountsPatchCall { c := &AccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16150,23 +12677,21 @@ func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *Ac } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16175,18 +12700,12 @@ func (c *AccountsPatchCall) Header() http.Header { } func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -16199,16 +12718,14 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.patch" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16216,17 +12733,17 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -16239,45 +12756,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing account. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.accounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.update": +} type AccountsUpdateCall struct { s *Service @@ -16289,6 +12768,8 @@ type AccountsUpdateCall struct { } // Update: Updates an existing account. +// +// - profileId: User profile ID associated with this request. func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpdateCall { c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16297,23 +12778,21 @@ func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpd } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16322,18 +12801,12 @@ func (c *AccountsUpdateCall) Header() http.Header { } func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -16346,16 +12819,14 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16363,17 +12834,17 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -16386,37 +12857,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing account.", - // "httpMethod": "PUT", - // "id": "dfareporting.accounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.get": +} type AdsGetCall struct { s *Service @@ -16429,6 +12870,9 @@ type AdsGetCall struct { } // Get: Gets one ad by ID. +// +// - id: Ad ID. +// - profileId: User profile ID associated with this request. func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { c := &AdsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16437,33 +12881,29 @@ func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsGetCall) Fields(s ...googleapi.Field) *AdsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsGetCall) IfNoneMatch(entityTag string) *AdsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsGetCall) Context(ctx context.Context) *AdsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16472,12 +12912,7 @@ func (c *AdsGetCall) Header() http.Header { } func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16495,16 +12930,14 @@ func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.get" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16512,17 +12945,17 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -16535,42 +12968,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Gets one ad by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.ads.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads/{id}", - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.insert": +} type AdsInsertCall struct { s *Service @@ -16582,6 +12980,8 @@ type AdsInsertCall struct { } // Insert: Inserts a new ad. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { c := &AdsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16590,23 +12990,21 @@ func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsInsertCall) Fields(s ...googleapi.Field) *AdsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsInsertCall) Context(ctx context.Context) *AdsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16615,18 +13013,12 @@ func (c *AdsInsertCall) Header() http.Header { } func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -16639,16 +13031,14 @@ func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.insert" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16656,17 +13046,17 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -16679,37 +13069,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new ad.", - // "httpMethod": "POST", - // "id": "dfareporting.ads.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.list": +} type AdsListCall struct { s *Service @@ -16720,8 +13080,10 @@ type AdsListCall struct { header_ http.Header } -// List: Retrieves a list of ads, possibly filtered. This method -// supports paging. +// List: Retrieves a list of ads, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) List(profileId int64) *AdsListCall { c := &AdsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16734,22 +13096,21 @@ func (c *AdsListCall) Active(active bool) *AdsListCall { return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// ads with this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only ads +// with this advertiser ID. func (c *AdsListCall) AdvertiserId(advertiserId int64) *AdsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Archived sets the optional parameter "archived": Select only archived -// ads. +// Archived sets the optional parameter "archived": Select only archived ads. func (c *AdsListCall) Archived(archived bool) *AdsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": -// Select only ads with these audience segment IDs. +// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": Select +// only ads with these audience segment IDs. func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCall { var audienceSegmentIds_ []string for _, v := range audienceSegmentIds { @@ -16759,8 +13120,8 @@ func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCa return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// ads with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only ads with +// these campaign IDs. func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -16770,13 +13131,13 @@ func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { return c } -// Compatibility sets the optional parameter "compatibility": Select -// default ads with the specified compatibility. Applicable when type is -// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to -// rendering either on desktop or on mobile devices for regular or -// interstitial ads, respectively. APP and APP_INTERSTITIAL are for -// rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an -// in-stream video ads developed with the VAST standard. +// Compatibility sets the optional parameter "compatibility": Select default +// ads with the specified compatibility. Applicable when type is +// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering +// either on desktop or on mobile devices for regular or interstitial ads, +// respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. +// IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with +// the VAST standard. // // Possible values: // @@ -16791,8 +13152,8 @@ func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall { return c } -// CreativeIds sets the optional parameter "creativeIds": Select only -// ads with these creative IDs assigned. +// CreativeIds sets the optional parameter "creativeIds": Select only ads with +// these creative IDs assigned. func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { var creativeIds_ []string for _, v := range creativeIds { @@ -16803,8 +13164,8 @@ func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { } // CreativeOptimizationConfigurationIds sets the optional parameter -// "creativeOptimizationConfigurationIds": Select only ads with these -// creative optimization configuration IDs. +// "creativeOptimizationConfigurationIds": Select only ads with these creative +// optimization configuration IDs. func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationConfigurationIds ...int64) *AdsListCall { var creativeOptimizationConfigurationIds_ []string for _, v := range creativeOptimizationConfigurationIds { @@ -16814,18 +13175,16 @@ func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationC return c } -// DynamicClickTracker sets the optional parameter -// "dynamicClickTracker": Select only dynamic click trackers. Applicable -// when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click -// trackers. If false, select static click trackers. Leave unset to -// select both. +// DynamicClickTracker sets the optional parameter "dynamicClickTracker": +// Select only dynamic click trackers. Applicable when type is +// AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, +// select static click trackers. Leave unset to select both. func (c *AdsListCall) DynamicClickTracker(dynamicClickTracker bool) *AdsListCall { c.urlParams_.Set("dynamicClickTracker", fmt.Sprint(dynamicClickTracker)) return c } -// Ids sets the optional parameter "ids": Select only ads with these -// IDs. +// Ids sets the optional parameter "ids": Select only ads with these IDs. func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { var ids_ []string for _, v := range ids { @@ -16835,8 +13194,8 @@ func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { return c } -// LandingPageIds sets the optional parameter "landingPageIds": Select -// only ads with these landing page IDs. +// LandingPageIds sets the optional parameter "landingPageIds": Select only ads +// with these landing page IDs. func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { var landingPageIds_ []string for _, v := range landingPageIds { @@ -16846,16 +13205,15 @@ func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdsListCall) MaxResults(maxResults int64) *AdsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only ads with this event tag override -// ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only ads with this event tag override ID. func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagId int64) *AdsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -16868,8 +13226,8 @@ func (c *AdsListCall) PageToken(pageToken string) *AdsListCall { return c } -// PlacementIds sets the optional parameter "placementIds": Select only -// ads with these placement IDs assigned. +// PlacementIds sets the optional parameter "placementIds": Select only ads +// with these placement IDs assigned. func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { var placementIds_ []string for _, v := range placementIds { @@ -16879,9 +13237,8 @@ func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { return c } -// RemarketingListIds sets the optional parameter "remarketingListIds": -// Select only ads whose list targeting expression use these remarketing -// list IDs. +// RemarketingListIds sets the optional parameter "remarketingListIds": Select +// only ads whose list targeting expression use these remarketing list IDs. func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCall { var remarketingListIds_ []string for _, v := range remarketingListIds { @@ -16891,20 +13248,19 @@ func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "ad*2015" will return objects with names like "ad June -// 2015", "ad April 2015", or simply "ad 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "ad" will match objects with -// name "my ad", "ad 2015", or simply "ad". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, "ad*2015" +// will return objects with names like "ad June 2015", "ad April 2015", or +// simply "ad 2015". Most of the searches also add wildcards implicitly at the +// start and the end of the search string. For example, a search string of "ad" +// will match objects with name "my ad", "ad 2015", or simply "ad". func (c *AdsListCall) SearchString(searchString string) *AdsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only ads with -// these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only ads with these +// size IDs. func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -16914,8 +13270,8 @@ func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -16926,8 +13282,7 @@ func (c *AdsListCall) SortField(sortField string) *AdsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -16938,22 +13293,21 @@ func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall { return c } -// SslCompliant sets the optional parameter "sslCompliant": Select only -// ads that are SSL-compliant. +// SslCompliant sets the optional parameter "sslCompliant": Select only ads +// that are SSL-compliant. func (c *AdsListCall) SslCompliant(sslCompliant bool) *AdsListCall { c.urlParams_.Set("sslCompliant", fmt.Sprint(sslCompliant)) return c } -// SslRequired sets the optional parameter "sslRequired": Select only -// ads that require SSL. +// SslRequired sets the optional parameter "sslRequired": Select only ads that +// require SSL. func (c *AdsListCall) SslRequired(sslRequired bool) *AdsListCall { c.urlParams_.Set("sslRequired", fmt.Sprint(sslRequired)) return c } -// Type sets the optional parameter "type": Select only ads with these -// types. +// Type sets the optional parameter "type": Select only ads with these types. // // Possible values: // @@ -16967,33 +13321,29 @@ func (c *AdsListCall) Type(type_ ...string) *AdsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsListCall) Fields(s ...googleapi.Field) *AdsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsListCall) IfNoneMatch(entityTag string) *AdsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsListCall) Context(ctx context.Context) *AdsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17002,12 +13352,7 @@ func (c *AdsListCall) Header() http.Header { } func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17024,16 +13369,15 @@ func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.list" call. -// Exactly one of *AdsListResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdsListResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17041,17 +13385,17 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17064,217 +13408,6 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) return nil, err } return ret, nil - // { - // "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.ads.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active ads.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only ads with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived ads.", - // "location": "query", - // "type": "boolean" - // }, - // "audienceSegmentIds": { - // "description": "Select only ads with these audience segment IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "campaignIds": { - // "description": "Select only ads with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibility": { - // "description": "Select default ads with the specified compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard.", - // "enum": [ - // "APP", - // "APP_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "IN_STREAM_AUDIO", - // "IN_STREAM_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "creativeIds": { - // "description": "Select only ads with these creative IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeOptimizationConfigurationIds": { - // "description": "Select only ads with these creative optimization configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dynamicClickTracker": { - // "description": "Select only dynamic click trackers. Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, select static click trackers. Leave unset to select both.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only ads with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "landingPageIds": { - // "description": "Select only ads with these landing page IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only ads with this event tag override ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Select only ads with these placement IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListIds": { - // "description": "Select only ads whose list targeting expression use these remarketing list IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"ad*2015\" will return objects with names like \"ad June 2015\", \"ad April 2015\", or simply \"ad 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"ad\" will match objects with name \"my ad\", \"ad 2015\", or simply \"ad\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only ads with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sslCompliant": { - // "description": "Select only ads that are SSL-compliant.", - // "location": "query", - // "type": "boolean" - // }, - // "sslRequired": { - // "description": "Select only ads that require SSL.", - // "location": "query", - // "type": "boolean" - // }, - // "type": { - // "description": "Select only ads with these types.", - // "enum": [ - // "AD_SERVING_CLICK_TRACKER", - // "AD_SERVING_DEFAULT_AD", - // "AD_SERVING_STANDARD_AD", - // "AD_SERVING_TRACKING" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "response": { - // "$ref": "AdsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -17282,7 +13415,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // The provided context supersedes any context provided to the Context method. func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17298,8 +13431,6 @@ func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) } } -// method id "dfareporting.ads.patch": - type AdsPatchCall struct { s *Service profileId int64 @@ -17310,6 +13441,9 @@ type AdsPatchCall struct { } // Patch: Updates an existing ad. This method supports patch semantics. +// +// - id: Ad ID. +// - profileId: User profile ID associated with this request. func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { c := &AdsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17319,23 +13453,21 @@ func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsPatchCall) Fields(s ...googleapi.Field) *AdsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsPatchCall) Context(ctx context.Context) *AdsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17344,18 +13476,12 @@ func (c *AdsPatchCall) Header() http.Header { } func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17368,16 +13494,14 @@ func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.patch" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17385,17 +13509,17 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17408,45 +13532,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.ads.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.update": +} type AdsUpdateCall struct { s *Service @@ -17458,6 +13544,8 @@ type AdsUpdateCall struct { } // Update: Updates an existing ad. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { c := &AdsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17466,23 +13554,21 @@ func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsUpdateCall) Fields(s ...googleapi.Field) *AdsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsUpdateCall) Context(ctx context.Context) *AdsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17491,18 +13577,12 @@ func (c *AdsUpdateCall) Header() http.Header { } func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17515,16 +13595,14 @@ func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.update" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17532,17 +13610,17 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17555,37 +13633,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad.", - // "httpMethod": "PUT", - // "id": "dfareporting.ads.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.delete": +} type AdvertiserGroupsDeleteCall struct { s *Service @@ -17597,6 +13645,9 @@ type AdvertiserGroupsDeleteCall struct { } // Delete: Deletes an existing advertiser group. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserGroupsDeleteCall { c := &AdvertiserGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17605,23 +13656,21 @@ func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsDeleteCall) Fields(s ...googleapi.Field) *AdvertiserGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsDeleteCall) Context(ctx context.Context) *AdvertiserGroupsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17630,12 +13679,7 @@ func (c *AdvertiserGroupsDeleteCall) Header() http.Header { } func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17650,7 +13694,7 @@ func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.delete" call. @@ -17662,42 +13706,10 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing advertiser group.", - // "httpMethod": "DELETE", - // "id": "dfareporting.advertiserGroups.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.get": +} type AdvertiserGroupsGetCall struct { s *Service @@ -17710,6 +13722,9 @@ type AdvertiserGroupsGetCall struct { } // Get: Gets one advertiser group by ID. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGroupsGetCall { c := &AdvertiserGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17718,33 +13733,29 @@ func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGrou } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsGetCall) Fields(s ...googleapi.Field) *AdvertiserGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsGetCall) IfNoneMatch(entityTag string) *AdvertiserGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsGetCall) Context(ctx context.Context) *AdvertiserGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17753,12 +13764,7 @@ func (c *AdvertiserGroupsGetCall) Header() http.Header { } func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17776,16 +13782,15 @@ func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.get" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17793,17 +13798,17 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -17816,42 +13821,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG return nil, err } return ret, nil - // { - // "description": "Gets one advertiser group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.insert": +} type AdvertiserGroupsInsertCall struct { s *Service @@ -17863,6 +13833,8 @@ type AdvertiserGroupsInsertCall struct { } // Insert: Inserts a new advertiser group. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsInsertCall { c := &AdvertiserGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17871,23 +13843,21 @@ func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsInsertCall) Fields(s ...googleapi.Field) *AdvertiserGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsInsertCall) Context(ctx context.Context) *AdvertiserGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17896,18 +13866,12 @@ func (c *AdvertiserGroupsInsertCall) Header() http.Header { } func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -17920,16 +13884,15 @@ func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.insert" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17937,17 +13900,17 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -17960,37 +13923,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser group.", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.list": +} type AdvertiserGroupsListCall struct { s *Service @@ -18001,16 +13934,18 @@ type AdvertiserGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of advertiser groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of advertiser groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCall { c := &AdvertiserGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only advertiser groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only advertiser groups with +// these IDs. func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { var ids_ []string for _, v := range ids { @@ -18020,8 +13955,8 @@ func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserGroupsListCall) MaxResults(maxResults int64) *AdvertiserGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -18034,22 +13969,21 @@ func (c *AdvertiserGroupsListCall) PageToken(pageToken string) *AdvertiserGroups return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser group June 2015", "advertiser group April 2015", or -// simply "advertiser group 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "advertisergroup" will match objects -// with name "my advertisergroup", "advertisergroup 2015", or simply -// "advertisergroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser group June +// 2015", "advertiser group April 2015", or simply "advertiser group 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "advertisergroup" will +// match objects with name "my advertisergroup", "advertisergroup 2015", or +// simply "advertisergroup". func (c *AdvertiserGroupsListCall) SearchString(searchString string) *AdvertiserGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -18060,8 +13994,7 @@ func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroups return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -18073,33 +14006,29 @@ func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsListCall) Fields(s ...googleapi.Field) *AdvertiserGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsListCall) IfNoneMatch(entityTag string) *AdvertiserGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsListCall) Context(ctx context.Context) *AdvertiserGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18108,12 +14037,7 @@ func (c *AdvertiserGroupsListCall) Header() http.Header { } func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18130,16 +14054,15 @@ func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.list" call. -// Exactly one of *AdvertiserGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserGroupsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18147,17 +14070,17 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18170,85 +14093,6 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only advertiser groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser group June 2015\", \"advertiser group April 2015\", or simply \"advertiser group 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertisergroup\" will match objects with name \"my advertisergroup\", \"advertisergroup 2015\", or simply \"advertisergroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "response": { - // "$ref": "AdvertiserGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -18256,7 +14100,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // The provided context supersedes any context provided to the Context method. func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*AdvertiserGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18272,8 +14116,6 @@ func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*Advertiser } } -// method id "dfareporting.advertiserGroups.patch": - type AdvertiserGroupsPatchCall struct { s *Service profileId int64 @@ -18283,8 +14125,11 @@ type AdvertiserGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser group. This method supports -// patch semantics. +// Patch: Updates an existing advertiser group. This method supports patch +// semantics. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsPatchCall { c := &AdvertiserGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18294,23 +14139,21 @@ func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsPatchCall) Fields(s ...googleapi.Field) *AdvertiserGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsPatchCall) Context(ctx context.Context) *AdvertiserGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18319,18 +14162,12 @@ func (c *AdvertiserGroupsPatchCall) Header() http.Header { } func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18343,16 +14180,15 @@ func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.patch" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18360,17 +14196,17 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18383,45 +14219,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.update": +} type AdvertiserGroupsUpdateCall struct { s *Service @@ -18433,6 +14231,8 @@ type AdvertiserGroupsUpdateCall struct { } // Update: Updates an existing advertiser group. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsUpdateCall { c := &AdvertiserGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18441,23 +14241,21 @@ func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsUpdateCall) Fields(s ...googleapi.Field) *AdvertiserGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsUpdateCall) Context(ctx context.Context) *AdvertiserGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18466,18 +14264,12 @@ func (c *AdvertiserGroupsUpdateCall) Header() http.Header { } func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18490,16 +14282,15 @@ func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.update" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18507,17 +14298,17 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18530,37 +14321,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.get": +} type AdvertiserLandingPagesGetCall struct { s *Service @@ -18573,6 +14334,9 @@ type AdvertiserLandingPagesGetCall struct { } // Get: Gets one landing page by ID. +// +// - id: Landing page ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *AdvertiserLandingPagesGetCall { c := &AdvertiserLandingPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18581,33 +14345,29 @@ func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *Advertis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesGetCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserLandingPagesGetCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesGetCall) Context(ctx context.Context) *AdvertiserLandingPagesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18616,12 +14376,7 @@ func (c *AdvertiserLandingPagesGetCall) Header() http.Header { } func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18639,16 +14394,14 @@ func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.get" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18656,17 +14409,17 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -18679,42 +14432,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi return nil, err } return ret, nil - // { - // "description": "Gets one landing page by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.insert": +} type AdvertiserLandingPagesInsertCall struct { s *Service @@ -18726,6 +14444,8 @@ type AdvertiserLandingPagesInsertCall struct { } // Insert: Inserts a new landing page. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesInsertCall { c := &AdvertiserLandingPagesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18734,23 +14454,21 @@ func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *Lan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesInsertCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesInsertCall) Context(ctx context.Context) *AdvertiserLandingPagesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18759,18 +14477,12 @@ func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { } func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -18783,16 +14495,14 @@ func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.insert" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18800,17 +14510,17 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -18823,37 +14533,7 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La return nil, err } return ret, nil - // { - // "description": "Inserts a new landing page.", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserLandingPages.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.list": +} type AdvertiserLandingPagesListCall struct { s *Service @@ -18865,14 +14545,16 @@ type AdvertiserLandingPagesListCall struct { } // List: Retrieves a list of landing pages. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) List(profileId int64) *AdvertiserLandingPagesListCall { c := &AdvertiserLandingPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only landing pages that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// landing pages that belong to these advertisers. func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) *AdvertiserLandingPagesListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -18883,15 +14565,15 @@ func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) * } // Archived sets the optional parameter "archived": Select only archived -// landing pages. Don't set this field to select both archived and -// non-archived landing pages. +// landing pages. Don't set this field to select both archived and non-archived +// landing pages. func (c *AdvertiserLandingPagesListCall) Archived(archived bool) *AdvertiserLandingPagesListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// Ids sets the optional parameter "ids": Select only landing pages with -// these IDs. +// Ids sets the optional parameter "ids": Select only landing pages with these +// IDs. func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPagesListCall { var ids_ []string for _, v := range ids { @@ -18901,8 +14583,8 @@ func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPag return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserLandingPagesListCall) MaxResults(maxResults int64) *AdvertiserLandingPagesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -18915,21 +14597,21 @@ func (c *AdvertiserLandingPagesListCall) PageToken(pageToken string) *Advertiser return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for landing pages by name or ID. Wildcards (*) are allowed. -// For example, "landingpage*2017" will return landing pages with names -// like "landingpage July 2017", "landingpage March 2017", or simply -// "landingpage 2017". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "landingpage" will match campaigns with -// name "my landingpage", "landingpage 2015", or simply "landingpage". +// SearchString sets the optional parameter "searchString": Allows searching +// for landing pages by name or ID. Wildcards (*) are allowed. For example, +// "landingpage*2017" will return landing pages with names like "landingpage +// July 2017", "landingpage March 2017", or simply "landingpage 2017". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "landingpage" will match +// campaigns with name "my landingpage", "landingpage 2015", or simply +// "landingpage". func (c *AdvertiserLandingPagesListCall) SearchString(searchString string) *AdvertiserLandingPagesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -18940,8 +14622,7 @@ func (c *AdvertiserLandingPagesListCall) SortField(sortField string) *Advertiser return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -18952,41 +14633,37 @@ func (c *AdvertiserLandingPagesListCall) SortOrder(sortOrder string) *Advertiser return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// landing pages that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only landing +// pages that belong to this subaccount. func (c *AdvertiserLandingPagesListCall) SubaccountId(subaccountId int64) *AdvertiserLandingPagesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesListCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserLandingPagesListCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesListCall) Context(ctx context.Context) *AdvertiserLandingPagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18995,12 +14672,7 @@ func (c *AdvertiserLandingPagesListCall) Header() http.Header { } func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19017,17 +14689,15 @@ func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.list" call. -// Exactly one of *AdvertiserLandingPagesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserLandingPagesListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserLandingPagesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*AdvertiserLandingPagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19035,17 +14705,17 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserLandingPagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19058,103 +14728,6 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve return nil, err } return ret, nil - // { - // "description": "Retrieves a list of landing pages.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only landing pages that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived landing pages. Don't set this field to select both archived and non-archived landing pages.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only landing pages with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for landing pages by name or ID. Wildcards (*) are allowed. For example, \"landingpage*2017\" will return landing pages with names like \"landingpage July 2017\", \"landingpage March 2017\", or simply \"landingpage 2017\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"landingpage\" will match campaigns with name \"my landingpage\", \"landingpage 2015\", or simply \"landingpage\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only landing pages that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "response": { - // "$ref": "AdvertiserLandingPagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -19162,7 +14735,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // The provided context supersedes any context provided to the Context method. func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*AdvertiserLandingPagesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -19178,8 +14751,6 @@ func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*Adve } } -// method id "dfareporting.advertiserLandingPages.patch": - type AdvertiserLandingPagesPatchCall struct { s *Service profileId int64 @@ -19191,6 +14762,9 @@ type AdvertiserLandingPagesPatchCall struct { // Patch: Updates an existing landing page. This method supports patch // semantics. +// +// - id: Landing page ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landingpage *LandingPage) *AdvertiserLandingPagesPatchCall { c := &AdvertiserLandingPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19200,23 +14774,21 @@ func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landing } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesPatchCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesPatchCall) Context(ctx context.Context) *AdvertiserLandingPagesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19225,18 +14797,12 @@ func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { } func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -19249,16 +14815,14 @@ func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.patch" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19266,17 +14830,17 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19289,45 +14853,7 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan return nil, err } return ret, nil - // { - // "description": "Updates an existing landing page. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserLandingPages.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.update": +} type AdvertiserLandingPagesUpdateCall struct { s *Service @@ -19339,6 +14865,8 @@ type AdvertiserLandingPagesUpdateCall struct { } // Update: Updates an existing landing page. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesUpdateCall { c := &AdvertiserLandingPagesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19347,23 +14875,21 @@ func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *Lan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesUpdateCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesUpdateCall) Context(ctx context.Context) *AdvertiserLandingPagesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19372,18 +14898,12 @@ func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { } func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -19396,16 +14916,14 @@ func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.update" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19413,17 +14931,17 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19436,37 +14954,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La return nil, err } return ret, nil - // { - // "description": "Updates an existing landing page.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserLandingPages.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.get": +} type AdvertisersGetCall struct { s *Service @@ -19479,6 +14967,9 @@ type AdvertisersGetCall struct { } // Get: Gets one advertiser by ID. +// +// - id: Advertiser ID. +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall { c := &AdvertisersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19487,33 +14978,29 @@ func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersGetCall) Fields(s ...googleapi.Field) *AdvertisersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19522,12 +15009,7 @@ func (c *AdvertisersGetCall) Header() http.Header { } func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19545,16 +15027,14 @@ func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.get" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19562,17 +15042,17 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -19585,42 +15065,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro return nil, err } return ret, nil - // { - // "description": "Gets one advertiser by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers/{id}", - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.insert": +} type AdvertisersInsertCall struct { s *Service @@ -19632,6 +15077,8 @@ type AdvertisersInsertCall struct { } // Insert: Inserts a new advertiser. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *AdvertisersInsertCall { c := &AdvertisersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19640,23 +15087,21 @@ func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertCall) Fields(s ...googleapi.Field) *AdvertisersInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertCall) Context(ctx context.Context) *AdvertisersInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19665,18 +15110,12 @@ func (c *AdvertisersInsertCall) Header() http.Header { } func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -19689,16 +15128,14 @@ func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.insert" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19706,17 +15143,17 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -19729,37 +15166,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser.", - // "httpMethod": "POST", - // "id": "dfareporting.advertisers.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.list": +} type AdvertisersListCall struct { s *Service @@ -19772,14 +15179,16 @@ type AdvertisersListCall struct { // List: Retrieves a list of advertisers, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) List(profileId int64) *AdvertisersListCall { c := &AdvertisersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only advertisers with these advertiser group IDs. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only advertisers with these advertiser group IDs. func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *AdvertisersListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -19790,8 +15199,8 @@ func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *A } // FloodlightConfigurationIds sets the optional parameter -// "floodlightConfigurationIds": Select only advertisers with these -// floodlight configuration IDs. +// "floodlightConfigurationIds": Select only advertisers with these floodlight +// configuration IDs. func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfigurationIds ...int64) *AdvertisersListCall { var floodlightConfigurationIds_ []string for _, v := range floodlightConfigurationIds { @@ -19801,8 +15210,8 @@ func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfiguration return c } -// Ids sets the optional parameter "ids": Select only advertisers with -// these IDs. +// Ids sets the optional parameter "ids": Select only advertisers with these +// IDs. func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { var ids_ []string for _, v := range ids { @@ -19813,22 +15222,22 @@ func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { } // IncludeAdvertisersWithoutGroupsOnly sets the optional parameter -// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which -// do not belong to any advertiser group. +// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which do not +// belong to any advertiser group. func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnly bool) *AdvertisersListCall { c.urlParams_.Set("includeAdvertisersWithoutGroupsOnly", fmt.Sprint(includeAdvertisersWithoutGroupsOnly)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertisersListCall) MaxResults(maxResults int64) *AdvertisersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OnlyParent sets the optional parameter "onlyParent": Select only -// advertisers which use another advertiser's floodlight configuration. +// OnlyParent sets the optional parameter "onlyParent": Select only advertisers +// which use another advertiser's floodlight configuration. func (c *AdvertisersListCall) OnlyParent(onlyParent bool) *AdvertisersListCall { c.urlParams_.Set("onlyParent", fmt.Sprint(onlyParent)) return c @@ -19841,21 +15250,21 @@ func (c *AdvertisersListCall) PageToken(pageToken string) *AdvertisersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser June 2015", "advertiser April 2015", or simply -// "advertiser 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "advertiser" will match objects with name "my advertiser", -// "advertiser 2015", or simply "advertiser". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser June +// 2015", "advertiser April 2015", or simply "advertiser 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "advertiser" will match +// objects with name "my advertiser", "advertiser 2015", or simply +// "advertiser". func (c *AdvertisersListCall) SearchString(searchString string) *AdvertisersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -19866,8 +15275,7 @@ func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -19878,8 +15286,8 @@ func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall { return c } -// Status sets the optional parameter "status": Select only advertisers -// with the specified status. +// Status sets the optional parameter "status": Select only advertisers with +// the specified status. // // Possible values: // @@ -19898,33 +15306,29 @@ func (c *AdvertisersListCall) SubaccountId(subaccountId int64) *AdvertisersListC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersListCall) Fields(s ...googleapi.Field) *AdvertisersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19933,12 +15337,7 @@ func (c *AdvertisersListCall) Header() http.Header { } func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19955,16 +15354,15 @@ func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.list" call. -// Exactly one of *AdvertisersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AdvertisersListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19972,17 +15370,17 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertisersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19995,128 +15393,6 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only advertisers with these advertiser group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightConfigurationIds": { - // "description": "Select only advertisers with these floodlight configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only advertisers with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "includeAdvertisersWithoutGroupsOnly": { - // "description": "Select only advertisers which do not belong to any advertiser group.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "onlyParent": { - // "description": "Select only advertisers which use another advertiser's floodlight configuration.", - // "location": "query", - // "type": "boolean" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser June 2015\", \"advertiser April 2015\", or simply \"advertiser 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertiser\" will match objects with name \"my advertiser\", \"advertiser 2015\", or simply \"advertiser\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "status": { - // "description": "Select only advertisers with the specified status.", - // "enum": [ - // "APPROVED", - // "ON_HOLD" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only advertisers with these subaccount IDs.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "response": { - // "$ref": "AdvertisersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -20124,7 +15400,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // The provided context supersedes any context provided to the Context method. func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20140,8 +15416,6 @@ func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersList } } -// method id "dfareporting.advertisers.patch": - type AdvertisersPatchCall struct { s *Service profileId int64 @@ -20151,8 +15425,10 @@ type AdvertisersPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser. This method supports patch -// semantics. +// Patch: Updates an existing advertiser. This method supports patch semantics. +// +// - id: Advertiser ID. +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advertiser) *AdvertisersPatchCall { c := &AdvertisersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20162,23 +15438,21 @@ func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersPatchCall) Fields(s ...googleapi.Field) *AdvertisersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20187,18 +15461,12 @@ func (c *AdvertisersPatchCall) Header() http.Header { } func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -20211,16 +15479,14 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.patch" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20228,17 +15494,17 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -20251,45 +15517,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertisers.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.update": +} type AdvertisersUpdateCall struct { s *Service @@ -20301,6 +15529,8 @@ type AdvertisersUpdateCall struct { } // Update: Updates an existing advertiser. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *AdvertisersUpdateCall { c := &AdvertisersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20309,23 +15539,21 @@ func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersUpdateCall) Fields(s ...googleapi.Field) *AdvertisersUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersUpdateCall) Context(ctx context.Context) *AdvertisersUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20334,18 +15562,12 @@ func (c *AdvertisersUpdateCall) Header() http.Header { } func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -20358,16 +15580,14 @@ func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.update" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20375,17 +15595,17 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -20398,37 +15618,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertisers.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.browsers.list": +} type BrowsersListCall struct { s *Service @@ -20440,6 +15630,8 @@ type BrowsersListCall struct { } // List: Retrieves a list of browsers. +// +// - profileId: User profile ID associated with this request. func (r *BrowsersService) List(profileId int64) *BrowsersListCall { c := &BrowsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20447,33 +15639,29 @@ func (r *BrowsersService) List(profileId int64) *BrowsersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BrowsersListCall) Fields(s ...googleapi.Field) *BrowsersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BrowsersListCall) IfNoneMatch(entityTag string) *BrowsersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BrowsersListCall) Context(ctx context.Context) *BrowsersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BrowsersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20482,12 +15670,7 @@ func (c *BrowsersListCall) Header() http.Header { } func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20504,16 +15687,15 @@ func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.browsers.list" call. -// Exactly one of *BrowsersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BrowsersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BrowsersListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20521,17 +15703,17 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BrowsersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20544,34 +15726,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of browsers.", - // "httpMethod": "GET", - // "id": "dfareporting.browsers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/browsers", - // "response": { - // "$ref": "BrowsersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.insert": +} type CampaignCreativeAssociationsInsertCall struct { s *Service @@ -20583,9 +15738,12 @@ type CampaignCreativeAssociationsInsertCall struct { header_ http.Header } -// Insert: Associates a creative with the specified campaign. This -// method creates a default ad with dimensions matching the creative in -// the campaign if such a default ad does not exist already. +// Insert: Associates a creative with the specified campaign. This method +// creates a default ad with dimensions matching the creative in the campaign +// if such a default ad does not exist already. +// +// - campaignId: Campaign ID in this association. +// - profileId: User profile ID associated with this request. func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId int64, campaigncreativeassociation *CampaignCreativeAssociation) *CampaignCreativeAssociationsInsertCall { c := &CampaignCreativeAssociationsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20595,23 +15753,21 @@ func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsInsertCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsInsertCall) Context(ctx context.Context) *CampaignCreativeAssociationsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20620,18 +15776,12 @@ func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { } func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaigncreativeassociation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") @@ -20645,16 +15795,15 @@ func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Re "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.insert" call. -// Exactly one of *CampaignCreativeAssociation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CampaignCreativeAssociation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CampaignCreativeAssociation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20662,17 +15811,17 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociation{ ServerResponse: googleapi.ServerResponse{ @@ -20685,45 +15834,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.", - // "httpMethod": "POST", - // "id": "dfareporting.campaignCreativeAssociations.insert", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "request": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "response": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.list": +} type CampaignCreativeAssociationsListCall struct { s *Service @@ -20735,8 +15846,11 @@ type CampaignCreativeAssociationsListCall struct { header_ http.Header } -// List: Retrieves the list of creative IDs associated with the -// specified campaign. This method supports paging. +// List: Retrieves the list of creative IDs associated with the specified +// campaign. This method supports paging. +// +// - campaignId: Campaign ID in this association. +// - profileId: User profile ID associated with this request. func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId int64) *CampaignCreativeAssociationsListCall { c := &CampaignCreativeAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20744,8 +15858,8 @@ func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId i return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignCreativeAssociationsListCall) MaxResults(maxResults int64) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -20758,8 +15872,7 @@ func (c *CampaignCreativeAssociationsListCall) PageToken(pageToken string) *Camp return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -20771,33 +15884,29 @@ func (c *CampaignCreativeAssociationsListCall) SortOrder(sortOrder string) *Camp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsListCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignCreativeAssociationsListCall) IfNoneMatch(entityTag string) *CampaignCreativeAssociationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsListCall) Context(ctx context.Context) *CampaignCreativeAssociationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20806,12 +15915,7 @@ func (c *CampaignCreativeAssociationsListCall) Header() http.Header { } func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20829,18 +15933,15 @@ func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Resp "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.list" call. -// Exactly one of *CampaignCreativeAssociationsListResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20848,17 +15949,17 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20871,67 +15972,6 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.campaignCreativeAssociations.list", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "response": { - // "$ref": "CampaignCreativeAssociationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -20939,7 +15979,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func(*CampaignCreativeAssociationsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20955,8 +15995,6 @@ func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func } } -// method id "dfareporting.campaigns.get": - type CampaignsGetCall struct { s *Service profileId int64 @@ -20968,6 +16006,9 @@ type CampaignsGetCall struct { } // Get: Gets one campaign by ID. +// +// - id: Campaign ID. +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { c := &CampaignsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20976,33 +16017,29 @@ func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsGetCall) Fields(s ...googleapi.Field) *CampaignsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsGetCall) IfNoneMatch(entityTag string) *CampaignsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsGetCall) Context(ctx context.Context) *CampaignsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21011,12 +16048,7 @@ func (c *CampaignsGetCall) Header() http.Header { } func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21034,16 +16066,14 @@ func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.get" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21051,17 +16081,17 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21074,42 +16104,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { return nil, err } return ret, nil - // { - // "description": "Gets one campaign by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{id}", - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.insert": +} type CampaignsInsertCall struct { s *Service @@ -21121,6 +16116,8 @@ type CampaignsInsertCall struct { } // Insert: Inserts a new campaign. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Insert(profileId int64, campaign *Campaign) *CampaignsInsertCall { c := &CampaignsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21129,23 +16126,21 @@ func (r *CampaignsService) Insert(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsInsertCall) Fields(s ...googleapi.Field) *CampaignsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsInsertCall) Context(ctx context.Context) *CampaignsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21154,18 +16149,12 @@ func (c *CampaignsInsertCall) Header() http.Header { } func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -21178,16 +16167,14 @@ func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.insert" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21195,17 +16182,17 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21218,37 +16205,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Inserts a new campaign.", - // "httpMethod": "POST", - // "id": "dfareporting.campaigns.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.list": +} type CampaignsListCall struct { s *Service @@ -21259,17 +16216,18 @@ type CampaignsListCall struct { header_ http.Header } -// List: Retrieves a list of campaigns, possibly filtered. This method -// supports paging. +// List: Retrieves a list of campaigns, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) List(profileId int64) *CampaignsListCall { c := &CampaignsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only campaigns whose advertisers belong to these advertiser -// groups. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only campaigns whose advertisers belong to these advertiser groups. func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *CampaignsListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -21279,8 +16237,8 @@ func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *Cam return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only campaigns that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// campaigns that belong to these advertisers. func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -21291,23 +16249,23 @@ func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsList } // Archived sets the optional parameter "archived": Select only archived -// campaigns. Don't set this field to select both archived and -// non-archived campaigns. +// campaigns. Don't set this field to select both archived and non-archived +// campaigns. func (c *CampaignsListCall) Archived(archived bool) *CampaignsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } // AtLeastOneOptimizationActivity sets the optional parameter -// "atLeastOneOptimizationActivity": Select only campaigns that have at -// least one optimization activity. +// "atLeastOneOptimizationActivity": Select only campaigns that have at least +// one optimization activity. func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivity bool) *CampaignsListCall { c.urlParams_.Set("atLeastOneOptimizationActivity", fmt.Sprint(atLeastOneOptimizationActivity)) return c } -// ExcludedIds sets the optional parameter "excludedIds": Exclude -// campaigns with these IDs. +// ExcludedIds sets the optional parameter "excludedIds": Exclude campaigns +// with these IDs. func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall { var excludedIds_ []string for _, v := range excludedIds { @@ -21317,8 +16275,7 @@ func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall return c } -// Ids sets the optional parameter "ids": Select only campaigns with -// these IDs. +// Ids sets the optional parameter "ids": Select only campaigns with these IDs. func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { var ids_ []string for _, v := range ids { @@ -21328,16 +16285,15 @@ func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignsListCall) MaxResults(maxResults int64) *CampaignsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only campaigns that have overridden -// this event tag ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only campaigns that have overridden this event tag ID. func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagId int64) *CampaignsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -21350,21 +16306,20 @@ func (c *CampaignsListCall) PageToken(pageToken string) *CampaignsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for campaigns by name or ID. Wildcards (*) are allowed. For -// example, "campaign*2015" will return campaigns with names like -// "campaign June 2015", "campaign April 2015", or simply "campaign -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "campaign" will match campaigns with name "my campaign", "campaign -// 2015", or simply "campaign". +// SearchString sets the optional parameter "searchString": Allows searching +// for campaigns by name or ID. Wildcards (*) are allowed. For example, +// "campaign*2015" will return campaigns with names like "campaign June 2015", +// "campaign April 2015", or simply "campaign 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "campaign" will match campaigns with name "my +// campaign", "campaign 2015", or simply "campaign". func (c *CampaignsListCall) SearchString(searchString string) *CampaignsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -21375,8 +16330,7 @@ func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -21395,33 +16349,29 @@ func (c *CampaignsListCall) SubaccountId(subaccountId int64) *CampaignsListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsListCall) Fields(s ...googleapi.Field) *CampaignsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsListCall) IfNoneMatch(entityTag string) *CampaignsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsListCall) Context(ctx context.Context) *CampaignsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21430,12 +16380,7 @@ func (c *CampaignsListCall) Header() http.Header { } func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21452,16 +16397,15 @@ func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.list" call. -// Exactly one of *CampaignsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CampaignsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21469,17 +16413,17 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21492,128 +16436,6 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only campaigns whose advertisers belong to these advertiser groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "advertiserIds": { - // "description": "Select only campaigns that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.", - // "location": "query", - // "type": "boolean" - // }, - // "atLeastOneOptimizationActivity": { - // "description": "Select only campaigns that have at least one optimization activity.", - // "location": "query", - // "type": "boolean" - // }, - // "excludedIds": { - // "description": "Exclude campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only campaigns that have overridden this event tag ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, \"campaign*2015\" will return campaigns with names like \"campaign June 2015\", \"campaign April 2015\", or simply \"campaign 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"campaign\" will match campaigns with name \"my campaign\", \"campaign 2015\", or simply \"campaign\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only campaigns that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "response": { - // "$ref": "CampaignsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -21621,7 +16443,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // The provided context supersedes any context provided to the Context method. func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21637,8 +16459,6 @@ func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResp } } -// method id "dfareporting.campaigns.patch": - type CampaignsPatchCall struct { s *Service profileId int64 @@ -21648,8 +16468,10 @@ type CampaignsPatchCall struct { header_ http.Header } -// Patch: Updates an existing campaign. This method supports patch -// semantics. +// Patch: Updates an existing campaign. This method supports patch semantics. +// +// - id: Campaign ID. +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) *CampaignsPatchCall { c := &CampaignsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21659,23 +16481,21 @@ func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsPatchCall) Fields(s ...googleapi.Field) *CampaignsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsPatchCall) Context(ctx context.Context) *CampaignsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21684,18 +16504,12 @@ func (c *CampaignsPatchCall) Header() http.Header { } func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -21708,16 +16522,14 @@ func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.patch" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21725,17 +16537,17 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21748,45 +16560,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.campaigns.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.update": +} type CampaignsUpdateCall struct { s *Service @@ -21798,6 +16572,8 @@ type CampaignsUpdateCall struct { } // Update: Updates an existing campaign. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *CampaignsUpdateCall { c := &CampaignsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21806,23 +16582,21 @@ func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsUpdateCall) Fields(s ...googleapi.Field) *CampaignsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsUpdateCall) Context(ctx context.Context) *CampaignsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21831,18 +16605,12 @@ func (c *CampaignsUpdateCall) Header() http.Header { } func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -21855,16 +16623,14 @@ func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.update" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21872,17 +16638,17 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21895,37 +16661,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign.", - // "httpMethod": "PUT", - // "id": "dfareporting.campaigns.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.get": +} type ChangeLogsGetCall struct { s *Service @@ -21938,6 +16674,9 @@ type ChangeLogsGetCall struct { } // Get: Gets one change log by ID. +// +// - id: Change log ID. +// - profileId: User profile ID associated with this request. func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { c := &ChangeLogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21946,33 +16685,29 @@ func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsGetCall) Fields(s ...googleapi.Field) *ChangeLogsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsGetCall) IfNoneMatch(entityTag string) *ChangeLogsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsGetCall) Context(ctx context.Context) *ChangeLogsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21981,12 +16716,7 @@ func (c *ChangeLogsGetCall) Header() http.Header { } func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22004,16 +16734,14 @@ func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.get" call. -// Exactly one of *ChangeLog or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ChangeLog.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLog.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22021,17 +16749,17 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLog{ ServerResponse: googleapi.ServerResponse{ @@ -22044,42 +16772,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) return nil, err } return ret, nil - // { - // "description": "Gets one change log by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Change log ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs/{id}", - // "response": { - // "$ref": "ChangeLog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.list": +} type ChangeLogsListCall struct { s *Service @@ -22091,14 +16784,16 @@ type ChangeLogsListCall struct { } // List: Retrieves a list of change logs. This method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *ChangeLogsService) List(profileId int64) *ChangeLogsListCall { c := &ChangeLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Action sets the optional parameter "action": Select only change logs -// with the specified action. +// Action sets the optional parameter "action": Select only change logs with +// the specified action. // // Possible values: // @@ -22124,8 +16819,8 @@ func (c *ChangeLogsListCall) Action(action string) *ChangeLogsListCall { return c } -// Ids sets the optional parameter "ids": Select only change logs with -// these IDs. +// Ids sets the optional parameter "ids": Select only change logs with these +// IDs. func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { var ids_ []string for _, v := range ids { @@ -22135,41 +16830,39 @@ func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { return c } -// MaxChangeTime sets the optional parameter "maxChangeTime": Select -// only change logs whose change time is before the specified -// maxChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MaxChangeTime sets the optional parameter "maxChangeTime": Select only +// change logs whose change time is before the specified maxChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("maxChangeTime", maxChangeTime) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ChangeLogsListCall) MaxResults(maxResults int64) *ChangeLogsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// MinChangeTime sets the optional parameter "minChangeTime": Select -// only change logs whose change time is before the specified -// minChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MinChangeTime sets the optional parameter "minChangeTime": Select only +// change logs whose change time is before the specified minChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MinChangeTime(minChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("minChangeTime", minChangeTime) return c } -// ObjectIds sets the optional parameter "objectIds": Select only change -// logs with these object IDs. +// ObjectIds sets the optional parameter "objectIds": Select only change logs +// with these object IDs. func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { var objectIds_ []string for _, v := range objectIds { @@ -22179,8 +16872,8 @@ func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { return c } -// ObjectType sets the optional parameter "objectType": Select only -// change logs with the specified object type. +// ObjectType sets the optional parameter "objectType": Select only change logs +// with the specified object type. // // Possible values: // @@ -22235,16 +16928,15 @@ func (c *ChangeLogsListCall) PageToken(pageToken string) *ChangeLogsListCall { return c } -// SearchString sets the optional parameter "searchString": Select only -// change logs whose object ID, user name, old or new values match the -// search string. +// SearchString sets the optional parameter "searchString": Select only change +// logs whose object ID, user name, old or new values match the search string. func (c *ChangeLogsListCall) SearchString(searchString string) *ChangeLogsListCall { c.urlParams_.Set("searchString", searchString) return c } -// UserProfileIds sets the optional parameter "userProfileIds": Select -// only change logs with these user profile IDs. +// UserProfileIds sets the optional parameter "userProfileIds": Select only +// change logs with these user profile IDs. func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogsListCall { var userProfileIds_ []string for _, v := range userProfileIds { @@ -22255,33 +16947,29 @@ func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogs } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsListCall) Fields(s ...googleapi.Field) *ChangeLogsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsListCall) IfNoneMatch(entityTag string) *ChangeLogsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsListCall) Context(ctx context.Context) *ChangeLogsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22290,12 +16978,7 @@ func (c *ChangeLogsListCall) Header() http.Header { } func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22312,16 +16995,15 @@ func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.list" call. -// Exactly one of *ChangeLogsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ChangeLogsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLogsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22329,17 +17011,17 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLogsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22352,211 +17034,6 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of change logs. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "action": { - // "description": "Select only change logs with the specified action.", - // "enum": [ - // "ACTION_ADD", - // "ACTION_ASSIGN", - // "ACTION_ASSOCIATE", - // "ACTION_CREATE", - // "ACTION_DELETE", - // "ACTION_DISABLE", - // "ACTION_EMAIL_TAGS", - // "ACTION_ENABLE", - // "ACTION_LINK", - // "ACTION_MARK_AS_DEFAULT", - // "ACTION_PUSH", - // "ACTION_REMOVE", - // "ACTION_SEND", - // "ACTION_SHARE", - // "ACTION_UNASSIGN", - // "ACTION_UNLINK", - // "ACTION_UPDATE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only change logs with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxChangeTime": { - // "description": "Select only change logs whose change time is before the specified maxChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "minChangeTime": { - // "description": "Select only change logs whose change time is before the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "objectIds": { - // "description": "Select only change logs with these object IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Select only change logs with the specified object type.", - // "enum": [ - // "OBJECT_ACCOUNT", - // "OBJECT_ACCOUNT_BILLING_FEATURE", - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_ADVERTISER_GROUP", - // "OBJECT_BILLING_ACCOUNT_GROUP", - // "OBJECT_BILLING_FEATURE", - // "OBJECT_BILLING_MINIMUM_FEE", - // "OBJECT_BILLING_PROFILE", - // "OBJECT_CAMPAIGN", - // "OBJECT_CONTENT_CATEGORY", - // "OBJECT_CREATIVE", - // "OBJECT_CREATIVE_ASSET", - // "OBJECT_CREATIVE_BUNDLE", - // "OBJECT_CREATIVE_FIELD", - // "OBJECT_CREATIVE_GROUP", - // "OBJECT_DFA_SITE", - // "OBJECT_EVENT_TAG", - // "OBJECT_FLOODLIGHT_ACTIVITY_GROUP", - // "OBJECT_FLOODLIGHT_ACTVITY", - // "OBJECT_FLOODLIGHT_CONFIGURATION", - // "OBJECT_INSTREAM_CREATIVE", - // "OBJECT_LANDING_PAGE", - // "OBJECT_MEDIA_ORDER", - // "OBJECT_PLACEMENT", - // "OBJECT_PLACEMENT_STRATEGY", - // "OBJECT_PLAYSTORE_LINK", - // "OBJECT_PROVIDED_LIST_CLIENT", - // "OBJECT_RATE_CARD", - // "OBJECT_REMARKETING_LIST", - // "OBJECT_RICHMEDIA_CREATIVE", - // "OBJECT_SD_SITE", - // "OBJECT_SEARCH_LIFT_STUDY", - // "OBJECT_SIZE", - // "OBJECT_SUBACCOUNT", - // "OBJECT_TARGETING_TEMPLATE", - // "OBJECT_USER_PROFILE", - // "OBJECT_USER_PROFILE_FILTER", - // "OBJECT_USER_ROLE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Select only change logs whose object ID, user name, old or new values match the search string.", - // "location": "query", - // "type": "string" - // }, - // "userProfileIds": { - // "description": "Select only change logs with these user profile IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs", - // "response": { - // "$ref": "ChangeLogsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -22564,7 +17041,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // The provided context supersedes any context provided to the Context method. func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -22580,8 +17057,6 @@ func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListRe } } -// method id "dfareporting.cities.list": - type CitiesListCall struct { s *Service profileId int64 @@ -22592,14 +17067,16 @@ type CitiesListCall struct { } // List: Retrieves a list of cities, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *CitiesService) List(profileId int64) *CitiesListCall { c := &CitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// CountryDartIds sets the optional parameter "countryDartIds": Select -// only cities from these countries. +// CountryDartIds sets the optional parameter "countryDartIds": Select only +// cities from these countries. func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall { var countryDartIds_ []string for _, v := range countryDartIds { @@ -22609,8 +17086,8 @@ func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall return c } -// DartIds sets the optional parameter "dartIds": Select only cities -// with these DART IDs. +// DartIds sets the optional parameter "dartIds": Select only cities with these +// DART IDs. func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { var dartIds_ []string for _, v := range dartIds { @@ -22620,15 +17097,15 @@ func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { return c } -// NamePrefix sets the optional parameter "namePrefix": Select only -// cities with names starting with this prefix. +// NamePrefix sets the optional parameter "namePrefix": Select only cities with +// names starting with this prefix. func (c *CitiesListCall) NamePrefix(namePrefix string) *CitiesListCall { c.urlParams_.Set("namePrefix", namePrefix) return c } -// RegionDartIds sets the optional parameter "regionDartIds": Select -// only cities from these regions. +// RegionDartIds sets the optional parameter "regionDartIds": Select only +// cities from these regions. func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { var regionDartIds_ []string for _, v := range regionDartIds { @@ -22639,33 +17116,29 @@ func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CitiesListCall) Fields(s ...googleapi.Field) *CitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CitiesListCall) IfNoneMatch(entityTag string) *CitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CitiesListCall) Context(ctx context.Context) *CitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22674,12 +17147,7 @@ func (c *CitiesListCall) Header() http.Header { } func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22696,16 +17164,15 @@ func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.cities.list" call. -// Exactly one of *CitiesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CitiesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CitiesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22713,17 +17180,17 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22736,60 +17203,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of cities, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.cities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "countryDartIds": { - // "description": "Select only cities from these countries.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dartIds": { - // "description": "Select only cities with these DART IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "namePrefix": { - // "description": "Select only cities with names starting with this prefix.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "regionDartIds": { - // "description": "Select only cities from these regions.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/cities", - // "response": { - // "$ref": "CitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.get": +} type ConnectionTypesGetCall struct { s *Service @@ -22802,6 +17216,9 @@ type ConnectionTypesGetCall struct { } // Get: Gets one connection type by ID. +// +// - id: Connection type ID. +// - profileId: User profile ID associated with this request. func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypesGetCall { c := &ConnectionTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22810,33 +17227,29 @@ func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypes } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesGetCall) Fields(s ...googleapi.Field) *ConnectionTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesGetCall) IfNoneMatch(entityTag string) *ConnectionTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesGetCall) Context(ctx context.Context) *ConnectionTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22845,12 +17258,7 @@ func (c *ConnectionTypesGetCall) Header() http.Header { } func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22868,16 +17276,14 @@ func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.get" call. -// Exactly one of *ConnectionType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ConnectionType.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConnectionType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22885,17 +17291,17 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionType{ ServerResponse: googleapi.ServerResponse{ @@ -22908,42 +17314,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy return nil, err } return ret, nil - // { - // "description": "Gets one connection type by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Connection type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes/{id}", - // "response": { - // "$ref": "ConnectionType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.list": +} type ConnectionTypesListCall struct { s *Service @@ -22955,6 +17326,8 @@ type ConnectionTypesListCall struct { } // List: Retrieves a list of connection types. +// +// - profileId: User profile ID associated with this request. func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall { c := &ConnectionTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22962,33 +17335,29 @@ func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesListCall) Fields(s ...googleapi.Field) *ConnectionTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesListCall) IfNoneMatch(entityTag string) *ConnectionTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesListCall) Context(ctx context.Context) *ConnectionTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22997,12 +17366,7 @@ func (c *ConnectionTypesListCall) Header() http.Header { } func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23019,16 +17383,15 @@ func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.list" call. -// Exactly one of *ConnectionTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ConnectionTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ConnectionTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23036,17 +17399,17 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23059,34 +17422,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT return nil, err } return ret, nil - // { - // "description": "Retrieves a list of connection types.", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes", - // "response": { - // "$ref": "ConnectionTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.delete": +} type ContentCategoriesDeleteCall struct { s *Service @@ -23098,6 +17434,9 @@ type ContentCategoriesDeleteCall struct { } // Delete: Deletes an existing content category. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCategoriesDeleteCall { c := &ContentCategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23106,23 +17445,21 @@ func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesDeleteCall) Fields(s ...googleapi.Field) *ContentCategoriesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesDeleteCall) Context(ctx context.Context) *ContentCategoriesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23131,12 +17468,7 @@ func (c *ContentCategoriesDeleteCall) Header() http.Header { } func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -23151,7 +17483,7 @@ func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.delete" call. @@ -23163,42 +17495,10 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing content category.", - // "httpMethod": "DELETE", - // "id": "dfareporting.contentCategories.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.get": +} type ContentCategoriesGetCall struct { s *Service @@ -23211,6 +17511,9 @@ type ContentCategoriesGetCall struct { } // Get: Gets one content category by ID. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCategoriesGetCall { c := &ContentCategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23219,33 +17522,29 @@ func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCatego } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesGetCall) Fields(s ...googleapi.Field) *ContentCategoriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesGetCall) IfNoneMatch(entityTag string) *ContentCategoriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesGetCall) Context(ctx context.Context) *ContentCategoriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23254,12 +17553,7 @@ func (c *ContentCategoriesGetCall) Header() http.Header { } func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23277,16 +17571,15 @@ func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.get" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23294,17 +17587,17 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23317,42 +17610,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat return nil, err } return ret, nil - // { - // "description": "Gets one content category by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.insert": +} type ContentCategoriesInsertCall struct { s *Service @@ -23364,6 +17622,8 @@ type ContentCategoriesInsertCall struct { } // Insert: Inserts a new content category. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *ContentCategory) *ContentCategoriesInsertCall { c := &ContentCategoriesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23372,23 +17632,21 @@ func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesInsertCall) Fields(s ...googleapi.Field) *ContentCategoriesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesInsertCall) Context(ctx context.Context) *ContentCategoriesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23397,18 +17655,12 @@ func (c *ContentCategoriesInsertCall) Header() http.Header { } func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -23421,16 +17673,15 @@ func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.insert" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23438,17 +17689,17 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23461,37 +17712,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Inserts a new content category.", - // "httpMethod": "POST", - // "id": "dfareporting.contentCategories.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.list": +} type ContentCategoriesListCall struct { s *Service @@ -23502,16 +17723,18 @@ type ContentCategoriesListCall struct { header_ http.Header } -// List: Retrieves a list of content categories, possibly filtered. This -// method supports paging. +// List: Retrieves a list of content categories, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListCall { c := &ContentCategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only content categories -// with these IDs. +// Ids sets the optional parameter "ids": Select only content categories with +// these IDs. func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall { var ids_ []string for _, v := range ids { @@ -23521,8 +17744,8 @@ func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ContentCategoriesListCall) MaxResults(maxResults int64) *ContentCategoriesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -23535,22 +17758,21 @@ func (c *ContentCategoriesListCall) PageToken(pageToken string) *ContentCategori return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "contentcategory*2015" will return objects with names like -// "contentcategory June 2015", "contentcategory April 2015", or simply -// "contentcategory 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "contentcategory" will match objects with -// name "my contentcategory", "contentcategory 2015", or simply -// "contentcategory". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "contentcategory*2015" will return objects with names like "contentcategory +// June 2015", "contentcategory April 2015", or simply "contentcategory 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "contentcategory" will +// match objects with name "my contentcategory", "contentcategory 2015", or +// simply "contentcategory". func (c *ContentCategoriesListCall) SearchString(searchString string) *ContentCategoriesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -23561,8 +17783,7 @@ func (c *ContentCategoriesListCall) SortField(sortField string) *ContentCategori return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -23574,33 +17795,29 @@ func (c *ContentCategoriesListCall) SortOrder(sortOrder string) *ContentCategori } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesListCall) Fields(s ...googleapi.Field) *ContentCategoriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesListCall) IfNoneMatch(entityTag string) *ContentCategoriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesListCall) Context(ctx context.Context) *ContentCategoriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23609,12 +17826,7 @@ func (c *ContentCategoriesListCall) Header() http.Header { } func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23631,16 +17843,15 @@ func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.list" call. -// Exactly one of *ContentCategoriesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ContentCategoriesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategoriesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCategoriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23648,17 +17859,17 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategoriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23671,85 +17882,6 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa return nil, err } return ret, nil - // { - // "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only content categories with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"contentcategory*2015\" will return objects with names like \"contentcategory June 2015\", \"contentcategory April 2015\", or simply \"contentcategory 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"contentcategory\" will match objects with name \"my contentcategory\", \"contentcategory 2015\", or simply \"contentcategory\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "response": { - // "$ref": "ContentCategoriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -23757,7 +17889,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // The provided context supersedes any context provided to the Context method. func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCategoriesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -23773,8 +17905,6 @@ func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCa } } -// method id "dfareporting.contentCategories.patch": - type ContentCategoriesPatchCall struct { s *Service profileId int64 @@ -23784,8 +17914,11 @@ type ContentCategoriesPatchCall struct { header_ http.Header } -// Patch: Updates an existing content category. This method supports -// patch semantics. +// Patch: Updates an existing content category. This method supports patch +// semantics. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcategory *ContentCategory) *ContentCategoriesPatchCall { c := &ContentCategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23795,23 +17928,21 @@ func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcateg } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesPatchCall) Fields(s ...googleapi.Field) *ContentCategoriesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesPatchCall) Context(ctx context.Context) *ContentCategoriesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23820,18 +17951,12 @@ func (c *ContentCategoriesPatchCall) Header() http.Header { } func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -23844,16 +17969,15 @@ func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.patch" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23861,17 +17985,17 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23884,45 +18008,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC return nil, err } return ret, nil - // { - // "description": "Updates an existing content category. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.contentCategories.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.update": +} type ContentCategoriesUpdateCall struct { s *Service @@ -23934,6 +18020,8 @@ type ContentCategoriesUpdateCall struct { } // Update: Updates an existing content category. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Update(profileId int64, contentcategory *ContentCategory) *ContentCategoriesUpdateCall { c := &ContentCategoriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23942,23 +18030,21 @@ func (r *ContentCategoriesService) Update(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesUpdateCall) Fields(s ...googleapi.Field) *ContentCategoriesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesUpdateCall) Context(ctx context.Context) *ContentCategoriesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23967,18 +18053,12 @@ func (c *ContentCategoriesUpdateCall) Header() http.Header { } func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -23991,16 +18071,15 @@ func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.update" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24008,17 +18087,17 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -24031,37 +18110,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Updates an existing content category.", - // "httpMethod": "PUT", - // "id": "dfareporting.contentCategories.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.conversions.batchinsert": +} type ConversionsBatchinsertCall struct { s *Service @@ -24073,6 +18122,8 @@ type ConversionsBatchinsertCall struct { } // Batchinsert: Inserts conversions. +// +// - profileId: User profile ID associated with this request. func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsertrequest *ConversionsBatchInsertRequest) *ConversionsBatchinsertCall { c := &ConversionsBatchinsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24081,23 +18132,21 @@ func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchinsertCall) Fields(s ...googleapi.Field) *ConversionsBatchinsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchinsertCall) Context(ctx context.Context) *ConversionsBatchinsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchinsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24106,18 +18155,12 @@ func (c *ConversionsBatchinsertCall) Header() http.Header { } func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchinsertrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchinsert") @@ -24130,16 +18173,15 @@ func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchinsert" call. -// Exactly one of *ConversionsBatchInsertResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchInsertResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchInsertResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchInsertResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24147,17 +18189,17 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchInsertResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24170,37 +18212,7 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Inserts conversions.", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchinsert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchinsert", - // "request": { - // "$ref": "ConversionsBatchInsertRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchInsertResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.conversions.batchupdate": +} type ConversionsBatchupdateCall struct { s *Service @@ -24212,6 +18224,8 @@ type ConversionsBatchupdateCall struct { } // Batchupdate: Updates existing conversions. +// +// - profileId: User profile ID associated with this request. func (r *ConversionsService) Batchupdate(profileId int64, conversionsbatchupdaterequest *ConversionsBatchUpdateRequest) *ConversionsBatchupdateCall { c := &ConversionsBatchupdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24220,23 +18234,21 @@ func (r *ConversionsService) Batchupdate(profileId int64, conversionsbatchupdate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchupdateCall) Fields(s ...googleapi.Field) *ConversionsBatchupdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchupdateCall) Context(ctx context.Context) *ConversionsBatchupdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchupdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24245,18 +18257,12 @@ func (c *ConversionsBatchupdateCall) Header() http.Header { } func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchupdaterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchupdate") @@ -24269,16 +18275,15 @@ func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchupdate" call. -// Exactly one of *ConversionsBatchUpdateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchUpdateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchUpdateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchUpdateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24286,17 +18291,17 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchUpdateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24309,37 +18314,7 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Updates existing conversions.", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchupdate", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchupdate", - // "request": { - // "$ref": "ConversionsBatchUpdateRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.countries.get": +} type CountriesGetCall struct { s *Service @@ -24352,6 +18327,9 @@ type CountriesGetCall struct { } // Get: Gets one country by ID. +// +// - dartId: Country DART ID. +// - profileId: User profile ID associated with this request. func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall { c := &CountriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24360,33 +18338,29 @@ func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesGetCall) Fields(s ...googleapi.Field) *CountriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesGetCall) IfNoneMatch(entityTag string) *CountriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesGetCall) Context(ctx context.Context) *CountriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24395,12 +18369,7 @@ func (c *CountriesGetCall) Header() http.Header { } func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24418,16 +18387,14 @@ func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.get" call. -// Exactly one of *Country or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Country.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Country.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24435,17 +18402,17 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Country{ ServerResponse: googleapi.ServerResponse{ @@ -24458,42 +18425,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { return nil, err } return ret, nil - // { - // "description": "Gets one country by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.countries.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Country DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries/{dartId}", - // "response": { - // "$ref": "Country" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.countries.list": +} type CountriesListCall struct { s *Service @@ -24505,6 +18437,8 @@ type CountriesListCall struct { } // List: Retrieves a list of countries. +// +// - profileId: User profile ID associated with this request. func (r *CountriesService) List(profileId int64) *CountriesListCall { c := &CountriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24512,33 +18446,29 @@ func (r *CountriesService) List(profileId int64) *CountriesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesListCall) Fields(s ...googleapi.Field) *CountriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesListCall) IfNoneMatch(entityTag string) *CountriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesListCall) Context(ctx context.Context) *CountriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24547,12 +18477,7 @@ func (c *CountriesListCall) Header() http.Header { } func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24569,16 +18494,15 @@ func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.list" call. -// Exactly one of *CountriesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CountriesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CountriesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24586,17 +18510,17 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CountriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24609,34 +18533,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of countries.", - // "httpMethod": "GET", - // "id": "dfareporting.countries.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries", - // "response": { - // "$ref": "CountriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeAssets.insert": +} type CreativeAssetsInsertCall struct { s *Service @@ -24650,6 +18547,9 @@ type CreativeAssetsInsertCall struct { } // Insert: Inserts a new creative asset. +// +// - advertiserId: Advertiser ID of this creative. This is a required field. +// - profileId: User profile ID associated with this request. func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall { c := &CreativeAssetsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24658,54 +18558,51 @@ func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, crea return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeAssetsInsertCall) Fields(s ...googleapi.Field) *CreativeAssetsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsInsertCall { @@ -24713,8 +18610,8 @@ func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsI return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeAssetsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24723,18 +18620,12 @@ func (c *CreativeAssetsInsertCall) Header() http.Header { } func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativeassetmetadata) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") @@ -24759,16 +18650,15 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeAssets.insert" call. -// Exactly one of *CreativeAssetMetadata or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeAssetMetadata.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeAssetMetadata.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24776,17 +18666,17 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -24802,7 +18692,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &CreativeAssetMetadata{ @@ -24816,62 +18706,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs return nil, err } return ret, nil - // { - // "description": "Inserts a new creative asset.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeAssets.insert", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "maxSize": "1024MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/dfareporting/v3.0/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/dfareporting/v3.0/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // } - // } - // }, - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Advertiser ID of this creative. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - // "request": { - // "$ref": "CreativeAssetMetadata" - // }, - // "response": { - // "$ref": "CreativeAssetMetadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "dfareporting.creativeFieldValues.delete": +} type CreativeFieldValuesDeleteCall struct { s *Service @@ -24884,6 +18719,10 @@ type CreativeFieldValuesDeleteCall struct { } // Delete: Deletes an existing creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesDeleteCall { c := &CreativeFieldValuesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24893,23 +18732,21 @@ func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldValuesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesDeleteCall) Context(ctx context.Context) *CreativeFieldValuesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24918,12 +18755,7 @@ func (c *CreativeFieldValuesDeleteCall) Header() http.Header { } func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -24939,7 +18771,7 @@ func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, e "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.delete" call. @@ -24951,50 +18783,10 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field value.", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFieldValues.delete", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.get": +} type CreativeFieldValuesGetCall struct { s *Service @@ -25008,6 +18800,10 @@ type CreativeFieldValuesGetCall struct { } // Get: Gets one creative field value by ID. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesGetCall { c := &CreativeFieldValuesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25017,33 +18813,29 @@ func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesGetCall) Fields(s ...googleapi.Field) *CreativeFieldValuesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesGetCall) IfNoneMatch(entityTag string) *CreativeFieldValuesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesGetCall) Context(ctx context.Context) *CreativeFieldValuesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25052,12 +18844,7 @@ func (c *CreativeFieldValuesGetCall) Header() http.Header { } func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25076,16 +18863,15 @@ func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, erro "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.get" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25093,17 +18879,17 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25116,50 +18902,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative return nil, err } return ret, nil - // { - // "description": "Gets one creative field value by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.get", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.insert": +} type CreativeFieldValuesInsertCall struct { s *Service @@ -25172,6 +18915,9 @@ type CreativeFieldValuesInsertCall struct { } // Insert: Inserts a new creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesInsertCall { c := &CreativeFieldValuesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25181,23 +18927,21 @@ func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesInsertCall) Fields(s ...googleapi.Field) *CreativeFieldValuesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesInsertCall) Context(ctx context.Context) *CreativeFieldValuesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25206,18 +18950,12 @@ func (c *CreativeFieldValuesInsertCall) Header() http.Header { } func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -25231,16 +18969,15 @@ func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.insert" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25248,17 +18985,17 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25271,45 +19008,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field value.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFieldValues.insert", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.list": +} type CreativeFieldValuesListCall struct { s *Service @@ -25321,8 +19020,11 @@ type CreativeFieldValuesListCall struct { header_ http.Header } -// List: Retrieves a list of creative field values, possibly filtered. -// This method supports paging. +// List: Retrieves a list of creative field values, possibly filtered. This +// method supports paging. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64) *CreativeFieldValuesListCall { c := &CreativeFieldValuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25330,8 +19032,8 @@ func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64 return c } -// Ids sets the optional parameter "ids": Select only creative field -// values with these IDs. +// Ids sets the optional parameter "ids": Select only creative field values +// with these IDs. func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesListCall { var ids_ []string for _, v := range ids { @@ -25341,8 +19043,8 @@ func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldValuesListCall) MaxResults(maxResults int64) *CreativeFieldValuesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -25355,16 +19057,16 @@ func (c *CreativeFieldValuesListCall) PageToken(pageToken string) *CreativeField return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative field values by their values. Wildcards (e.g. -// *) are not allowed. +// SearchString sets the optional parameter "searchString": Allows searching +// for creative field values by their values. Wildcards (e.g. *) are not +// allowed. func (c *CreativeFieldValuesListCall) SearchString(searchString string) *CreativeFieldValuesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -25375,8 +19077,7 @@ func (c *CreativeFieldValuesListCall) SortField(sortField string) *CreativeField return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -25388,33 +19089,29 @@ func (c *CreativeFieldValuesListCall) SortOrder(sortOrder string) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesListCall) Fields(s ...googleapi.Field) *CreativeFieldValuesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesListCall) IfNoneMatch(entityTag string) *CreativeFieldValuesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesListCall) Context(ctx context.Context) *CreativeFieldValuesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25423,12 +19120,7 @@ func (c *CreativeFieldValuesListCall) Header() http.Header { } func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25446,16 +19138,15 @@ func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.list" call. -// Exactly one of *CreativeFieldValuesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *CreativeFieldValuesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValuesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValuesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25463,17 +19154,17 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValuesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25486,93 +19177,6 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.list", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative field values with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative field values by their values. Wildcards (e.g. *) are not allowed.", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "VALUE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "response": { - // "$ref": "CreativeFieldValuesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -25580,7 +19184,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*CreativeFieldValuesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -25596,8 +19200,6 @@ func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*Creativ } } -// method id "dfareporting.creativeFieldValues.patch": - type CreativeFieldValuesPatchCall struct { s *Service profileId int64 @@ -25608,8 +19210,12 @@ type CreativeFieldValuesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative field value. This method supports -// patch semantics. +// Patch: Updates an existing creative field value. This method supports patch +// semantics. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int64, id int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesPatchCall { c := &CreativeFieldValuesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25620,23 +19226,21 @@ func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesPatchCall) Fields(s ...googleapi.Field) *CreativeFieldValuesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesPatchCall) Context(ctx context.Context) *CreativeFieldValuesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25645,18 +19249,12 @@ func (c *CreativeFieldValuesPatchCall) Header() http.Header { } func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -25670,16 +19268,15 @@ func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.patch" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25687,17 +19284,17 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25710,53 +19307,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFieldValues.patch", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.update": +} type CreativeFieldValuesUpdateCall struct { s *Service @@ -25769,6 +19320,9 @@ type CreativeFieldValuesUpdateCall struct { } // Update: Updates an existing creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesUpdateCall { c := &CreativeFieldValuesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25778,23 +19332,21 @@ func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldValuesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesUpdateCall) Context(ctx context.Context) *CreativeFieldValuesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25803,18 +19355,12 @@ func (c *CreativeFieldValuesUpdateCall) Header() http.Header { } func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -25828,16 +19374,15 @@ func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.update" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25845,17 +19390,17 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25868,45 +19413,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFieldValues.update", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.delete": +} type CreativeFieldsDeleteCall struct { s *Service @@ -25918,6 +19425,9 @@ type CreativeFieldsDeleteCall struct { } // Delete: Deletes an existing creative field. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeFieldsDeleteCall { c := &CreativeFieldsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25926,23 +19436,21 @@ func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsDeleteCall) Context(ctx context.Context) *CreativeFieldsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25951,12 +19459,7 @@ func (c *CreativeFieldsDeleteCall) Header() http.Header { } func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -25971,7 +19474,7 @@ func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.delete" call. @@ -25983,42 +19486,10 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field.", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFields.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.get": +} type CreativeFieldsGetCall struct { s *Service @@ -26031,6 +19502,9 @@ type CreativeFieldsGetCall struct { } // Get: Gets one creative field by ID. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGetCall { c := &CreativeFieldsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26039,33 +19513,29 @@ func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsGetCall) Fields(s ...googleapi.Field) *CreativeFieldsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsGetCall) IfNoneMatch(entityTag string) *CreativeFieldsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsGetCall) Context(ctx context.Context) *CreativeFieldsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26074,12 +19544,7 @@ func (c *CreativeFieldsGetCall) Header() http.Header { } func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26097,16 +19562,14 @@ func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.get" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26114,17 +19577,17 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26137,42 +19600,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField return nil, err } return ret, nil - // { - // "description": "Gets one creative field by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.insert": +} type CreativeFieldsInsertCall struct { s *Service @@ -26184,6 +19612,8 @@ type CreativeFieldsInsertCall struct { } // Insert: Inserts a new creative field. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeField) *CreativeFieldsInsertCall { c := &CreativeFieldsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26192,23 +19622,21 @@ func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsInsertCall) Fields(s ...googleapi.Field) *CreativeFieldsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsInsertCall) Context(ctx context.Context) *CreativeFieldsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26217,18 +19645,12 @@ func (c *CreativeFieldsInsertCall) Header() http.Header { } func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -26241,16 +19663,14 @@ func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.insert" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26258,17 +19678,17 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26281,37 +19701,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFields.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.list": +} type CreativeFieldsListCall struct { s *Service @@ -26322,16 +19712,18 @@ type CreativeFieldsListCall struct { header_ http.Header } -// List: Retrieves a list of creative fields, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative fields, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall { c := &CreativeFieldsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative fields that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative fields that belong to these advertisers. func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeFieldsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -26341,8 +19733,8 @@ func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// Ids sets the optional parameter "ids": Select only creative fields -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative fields with +// these IDs. func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { var ids_ []string for _, v := range ids { @@ -26352,8 +19744,8 @@ func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldsListCall) MaxResults(maxResults int64) *CreativeFieldsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -26366,22 +19758,21 @@ func (c *CreativeFieldsListCall) PageToken(pageToken string) *CreativeFieldsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative fields by name or ID. Wildcards (*) are -// allowed. For example, "creativefield*2015" will return creative -// fields with names like "creativefield June 2015", "creativefield -// April 2015", or simply "creativefield 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativefield" will match -// creative fields with the name "my creativefield", "creativefield -// 2015", or simply "creativefield". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative fields by name or ID. Wildcards (*) are allowed. For example, +// "creativefield*2015" will return creative fields with names like +// "creativefield June 2015", "creativefield April 2015", or simply +// "creativefield 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativefield" will match creative fields with the name "my creativefield", +// "creativefield 2015", or simply "creativefield". func (c *CreativeFieldsListCall) SearchString(searchString string) *CreativeFieldsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -26392,8 +19783,7 @@ func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -26405,33 +19795,29 @@ func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsListCall) Fields(s ...googleapi.Field) *CreativeFieldsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsListCall) IfNoneMatch(entityTag string) *CreativeFieldsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsListCall) Context(ctx context.Context) *CreativeFieldsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26440,12 +19826,7 @@ func (c *CreativeFieldsListCall) Header() http.Header { } func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26462,16 +19843,15 @@ func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.list" call. -// Exactly one of *CreativeFieldsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeFieldsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeFieldsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26479,17 +19859,17 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -26502,92 +19882,6 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative fields that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative fields with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative fields by name or ID. Wildcards (*) are allowed. For example, \"creativefield*2015\" will return creative fields with names like \"creativefield June 2015\", \"creativefield April 2015\", or simply \"creativefield 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativefield\" will match creative fields with the name \"my creativefield\", \"creativefield 2015\", or simply \"creativefield\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "response": { - // "$ref": "CreativeFieldsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -26595,7 +19889,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFieldsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -26611,8 +19905,6 @@ func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFiel } } -// method id "dfareporting.creativeFields.patch": - type CreativeFieldsPatchCall struct { s *Service profileId int64 @@ -26624,6 +19916,9 @@ type CreativeFieldsPatchCall struct { // Patch: Updates an existing creative field. This method supports patch // semantics. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield *CreativeField) *CreativeFieldsPatchCall { c := &CreativeFieldsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26633,23 +19928,21 @@ func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsPatchCall) Fields(s ...googleapi.Field) *CreativeFieldsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsPatchCall) Context(ctx context.Context) *CreativeFieldsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26658,18 +19951,12 @@ func (c *CreativeFieldsPatchCall) Header() http.Header { } func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -26682,16 +19969,14 @@ func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.patch" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26699,17 +19984,17 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26722,45 +20007,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFields.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.update": +} type CreativeFieldsUpdateCall struct { s *Service @@ -26772,6 +20019,8 @@ type CreativeFieldsUpdateCall struct { } // Update: Updates an existing creative field. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeField) *CreativeFieldsUpdateCall { c := &CreativeFieldsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26780,23 +20029,21 @@ func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsUpdateCall) Context(ctx context.Context) *CreativeFieldsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26805,18 +20052,12 @@ func (c *CreativeFieldsUpdateCall) Header() http.Header { } func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -26829,16 +20070,14 @@ func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.update" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26846,17 +20085,17 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26869,37 +20108,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFields.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.get": +} type CreativeGroupsGetCall struct { s *Service @@ -26912,6 +20121,9 @@ type CreativeGroupsGetCall struct { } // Get: Gets one creative group by ID. +// +// - id: Creative group ID. +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGetCall { c := &CreativeGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26920,33 +20132,29 @@ func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsGetCall) Fields(s ...googleapi.Field) *CreativeGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsGetCall) IfNoneMatch(entityTag string) *CreativeGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsGetCall) Context(ctx context.Context) *CreativeGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26955,12 +20163,7 @@ func (c *CreativeGroupsGetCall) Header() http.Header { } func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26978,16 +20181,14 @@ func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.get" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26995,17 +20196,17 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27018,42 +20219,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup return nil, err } return ret, nil - // { - // "description": "Gets one creative group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups/{id}", - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.insert": +} type CreativeGroupsInsertCall struct { s *Service @@ -27065,6 +20231,8 @@ type CreativeGroupsInsertCall struct { } // Insert: Inserts a new creative group. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsInsertCall { c := &CreativeGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27073,23 +20241,21 @@ func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsInsertCall) Fields(s ...googleapi.Field) *CreativeGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsInsertCall) Context(ctx context.Context) *CreativeGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27098,18 +20264,12 @@ func (c *CreativeGroupsInsertCall) Header() http.Header { } func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27122,16 +20282,14 @@ func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.insert" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27139,17 +20297,17 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27162,37 +20320,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Inserts a new creative group.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.list": +} type CreativeGroupsListCall struct { s *Service @@ -27203,16 +20331,18 @@ type CreativeGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of creative groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall { c := &CreativeGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative groups that belong to these advertisers. func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -27222,15 +20352,15 @@ func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// GroupNumber sets the optional parameter "groupNumber": Select only -// creative groups that belong to this subgroup. +// GroupNumber sets the optional parameter "groupNumber": Select only creative +// groups that belong to this subgroup. func (c *CreativeGroupsListCall) GroupNumber(groupNumber int64) *CreativeGroupsListCall { c.urlParams_.Set("groupNumber", fmt.Sprint(groupNumber)) return c } -// Ids sets the optional parameter "ids": Select only creative groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative groups with +// these IDs. func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { var ids_ []string for _, v := range ids { @@ -27240,8 +20370,8 @@ func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeGroupsListCall) MaxResults(maxResults int64) *CreativeGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -27254,22 +20384,21 @@ func (c *CreativeGroupsListCall) PageToken(pageToken string) *CreativeGroupsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative groups by name or ID. Wildcards (*) are -// allowed. For example, "creativegroup*2015" will return creative -// groups with names like "creativegroup June 2015", "creativegroup -// April 2015", or simply "creativegroup 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativegroup" will match -// creative groups with the name "my creativegroup", "creativegroup -// 2015", or simply "creativegroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative groups by name or ID. Wildcards (*) are allowed. For example, +// "creativegroup*2015" will return creative groups with names like +// "creativegroup June 2015", "creativegroup April 2015", or simply +// "creativegroup 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativegroup" will match creative groups with the name "my creativegroup", +// "creativegroup 2015", or simply "creativegroup". func (c *CreativeGroupsListCall) SearchString(searchString string) *CreativeGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -27280,8 +20409,7 @@ func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -27293,33 +20421,29 @@ func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsListCall) Fields(s ...googleapi.Field) *CreativeGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsListCall) IfNoneMatch(entityTag string) *CreativeGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsListCall) Context(ctx context.Context) *CreativeGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27328,12 +20452,7 @@ func (c *CreativeGroupsListCall) Header() http.Header { } func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27350,16 +20469,15 @@ func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.list" call. -// Exactly one of *CreativeGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27367,17 +20485,17 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -27390,100 +20508,6 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupNumber": { - // "description": "Select only creative groups that belong to this subgroup.", - // "format": "int32", - // "location": "query", - // "maximum": "2", - // "minimum": "1", - // "type": "integer" - // }, - // "ids": { - // "description": "Select only creative groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative groups by name or ID. Wildcards (*) are allowed. For example, \"creativegroup*2015\" will return creative groups with names like \"creativegroup June 2015\", \"creativegroup April 2015\", or simply \"creativegroup 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativegroup\" will match creative groups with the name \"my creativegroup\", \"creativegroup 2015\", or simply \"creativegroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "response": { - // "$ref": "CreativeGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -27491,7 +20515,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // The provided context supersedes any context provided to the Context method. func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -27507,8 +20531,6 @@ func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGrou } } -// method id "dfareporting.creativeGroups.patch": - type CreativeGroupsPatchCall struct { s *Service profileId int64 @@ -27520,6 +20542,9 @@ type CreativeGroupsPatchCall struct { // Patch: Updates an existing creative group. This method supports patch // semantics. +// +// - id: Creative group ID. +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup *CreativeGroup) *CreativeGroupsPatchCall { c := &CreativeGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27529,23 +20554,21 @@ func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsPatchCall) Fields(s ...googleapi.Field) *CreativeGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsPatchCall) Context(ctx context.Context) *CreativeGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27554,18 +20577,12 @@ func (c *CreativeGroupsPatchCall) Header() http.Header { } func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27578,16 +20595,14 @@ func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.patch" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27595,17 +20610,17 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27618,45 +20633,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.update": +} type CreativeGroupsUpdateCall struct { s *Service @@ -27668,6 +20645,8 @@ type CreativeGroupsUpdateCall struct { } // Update: Updates an existing creative group. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsUpdateCall { c := &CreativeGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27676,23 +20655,21 @@ func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsUpdateCall) Fields(s ...googleapi.Field) *CreativeGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsUpdateCall) Context(ctx context.Context) *CreativeGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27701,18 +20678,12 @@ func (c *CreativeGroupsUpdateCall) Header() http.Header { } func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27725,16 +20696,14 @@ func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.update" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27742,17 +20711,17 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27765,37 +20734,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.get": +} type CreativesGetCall struct { s *Service @@ -27808,6 +20747,9 @@ type CreativesGetCall struct { } // Get: Gets one creative by ID. +// +// - id: Creative ID. +// - profileId: User profile ID associated with this request. func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { c := &CreativesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27816,33 +20758,29 @@ func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27851,12 +20789,7 @@ func (c *CreativesGetCall) Header() http.Header { } func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27874,16 +20807,14 @@ func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27891,17 +20822,17 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -27914,42 +20845,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return nil, err } return ret, nil - // { - // "description": "Gets one creative by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives/{id}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.insert": +} type CreativesInsertCall struct { s *Service @@ -27961,6 +20857,8 @@ type CreativesInsertCall struct { } // Insert: Inserts a new creative. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) Insert(profileId int64, creative *Creative) *CreativesInsertCall { c := &CreativesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27969,23 +20867,21 @@ func (r *CreativesService) Insert(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27994,18 +20890,12 @@ func (c *CreativesInsertCall) Header() http.Header { } func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -28018,16 +20908,14 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.insert" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28035,17 +20923,17 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -28058,37 +20946,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Inserts a new creative.", - // "httpMethod": "POST", - // "id": "dfareporting.creatives.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.list": +} type CreativesListCall struct { s *Service @@ -28099,16 +20957,18 @@ type CreativesListCall struct { header_ http.Header } -// List: Retrieves a list of creatives, possibly filtered. This method -// supports paging. +// List: Retrieves a list of creatives, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) List(profileId int64) *CreativesListCall { c := &CreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Active sets the optional parameter "active": Select only active -// creatives. Leave blank to select active and inactive creatives. +// Active sets the optional parameter "active": Select only active creatives. +// Leave blank to select active and inactive creatives. func (c *CreativesListCall) Active(active bool) *CreativesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c @@ -28128,16 +20988,15 @@ func (c *CreativesListCall) Archived(archived bool) *CreativesListCall { return c } -// CampaignId sets the optional parameter "campaignId": Select only -// creatives with this campaign ID. +// CampaignId sets the optional parameter "campaignId": Select only creatives +// with this campaign ID. func (c *CreativesListCall) CampaignId(campaignId int64) *CreativesListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// CompanionCreativeIds sets the optional parameter -// "companionCreativeIds": Select only in-stream video creatives with -// these companion IDs. +// CompanionCreativeIds sets the optional parameter "companionCreativeIds": +// Select only in-stream video creatives with these companion IDs. func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) *CreativesListCall { var companionCreativeIds_ []string for _, v := range companionCreativeIds { @@ -28147,8 +21006,8 @@ func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) return c } -// CreativeFieldIds sets the optional parameter "creativeFieldIds": -// Select only creatives with these creative field IDs. +// CreativeFieldIds sets the optional parameter "creativeFieldIds": Select only +// creatives with these creative field IDs. func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *CreativesListCall { var creativeFieldIds_ []string for _, v := range creativeFieldIds { @@ -28158,8 +21017,7 @@ func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *Creativ return c } -// Ids sets the optional parameter "ids": Select only creatives with -// these IDs. +// Ids sets the optional parameter "ids": Select only creatives with these IDs. func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { var ids_ []string for _, v := range ids { @@ -28169,8 +21027,8 @@ func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -28194,21 +21052,20 @@ func (c *CreativesListCall) RenderingIds(renderingIds ...int64) *CreativesListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "creative*2015" will return objects with names like -// "creative June 2015", "creative April 2015", or simply "creative -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "creative" will match objects with name "my creative", "creative -// 2015", or simply "creative". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "creative*2015" will return objects with names like "creative June 2015", +// "creative April 2015", or simply "creative 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "creative" will match objects with name "my +// creative", "creative 2015", or simply "creative". func (c *CreativesListCall) SearchString(searchString string) *CreativesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only creatives -// with these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only creatives with +// these size IDs. func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -28218,8 +21075,8 @@ func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -28230,8 +21087,7 @@ func (c *CreativesListCall) SortField(sortField string) *CreativesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -28242,15 +21098,15 @@ func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall { return c } -// StudioCreativeId sets the optional parameter "studioCreativeId": -// Select only creatives corresponding to this Studio creative ID. +// StudioCreativeId sets the optional parameter "studioCreativeId": Select only +// creatives corresponding to this Studio creative ID. func (c *CreativesListCall) StudioCreativeId(studioCreativeId int64) *CreativesListCall { c.urlParams_.Set("studioCreativeId", fmt.Sprint(studioCreativeId)) return c } -// Types sets the optional parameter "types": Select only creatives with -// these creative types. +// Types sets the optional parameter "types": Select only creatives with these +// creative types. // // Possible values: // @@ -28285,33 +21141,29 @@ func (c *CreativesListCall) Types(types ...string) *CreativesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28320,12 +21172,7 @@ func (c *CreativesListCall) Header() http.Header { } func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28342,16 +21189,15 @@ func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.list" call. -// Exactly one of *CreativesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28359,17 +21205,17 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -28382,201 +21228,6 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active creatives. Leave blank to select active and inactive creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only creatives with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived creatives. Leave blank to select archived and unarchived creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignId": { - // "description": "Select only creatives with this campaign ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "companionCreativeIds": { - // "description": "Select only in-stream video creatives with these companion IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeFieldIds": { - // "description": "Select only creatives with these creative field IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creatives with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "renderingIds": { - // "description": "Select only creatives with these rendering IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"creative*2015\" will return objects with names like \"creative June 2015\", \"creative April 2015\", or simply \"creative 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"creative\" will match objects with name \"my creative\", \"creative 2015\", or simply \"creative\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only creatives with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "studioCreativeId": { - // "description": "Select only creatives corresponding to this Studio creative ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "types": { - // "description": "Select only creatives with these creative types.", - // "enum": [ - // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO", - // "CUSTOM_DISPLAY", - // "CUSTOM_DISPLAY_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_IMAGE_GALLERY", - // "DISPLAY_REDIRECT", - // "FLASH_INPAGE", - // "HTML5_BANNER", - // "IMAGE", - // "INSTREAM_AUDIO", - // "INSTREAM_VIDEO", - // "INSTREAM_VIDEO_REDIRECT", - // "INTERNAL_REDIRECT", - // "INTERSTITIAL_INTERNAL_REDIRECT", - // "RICH_MEDIA_DISPLAY_BANNER", - // "RICH_MEDIA_DISPLAY_EXPANDING", - // "RICH_MEDIA_DISPLAY_INTERSTITIAL", - // "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL", - // "RICH_MEDIA_IM_EXPAND", - // "RICH_MEDIA_INPAGE_FLOATING", - // "RICH_MEDIA_MOBILE_IN_APP", - // "RICH_MEDIA_PEEL_DOWN", - // "TRACKING_TEXT", - // "VPAID_LINEAR_VIDEO", - // "VPAID_NON_LINEAR_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "response": { - // "$ref": "CreativesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -28584,7 +21235,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // The provided context supersedes any context provided to the Context method. func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -28600,8 +21251,6 @@ func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResp } } -// method id "dfareporting.creatives.patch": - type CreativesPatchCall struct { s *Service profileId int64 @@ -28611,8 +21260,10 @@ type CreativesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative. This method supports patch -// semantics. +// Patch: Updates an existing creative. This method supports patch semantics. +// +// - id: Creative ID. +// - profileId: User profile ID associated with this request. func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) *CreativesPatchCall { c := &CreativesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28622,23 +21273,21 @@ func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesPatchCall) Fields(s ...googleapi.Field) *CreativesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesPatchCall) Context(ctx context.Context) *CreativesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28647,18 +21296,12 @@ func (c *CreativesPatchCall) Header() http.Header { } func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -28671,16 +21314,14 @@ func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.patch" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28688,17 +21329,17 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -28711,45 +21352,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing creative. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creatives.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.update": +} type CreativesUpdateCall struct { s *Service @@ -28761,6 +21364,8 @@ type CreativesUpdateCall struct { } // Update: Updates an existing creative. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) Update(profileId int64, creative *Creative) *CreativesUpdateCall { c := &CreativesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28769,23 +21374,21 @@ func (r *CreativesService) Update(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesUpdateCall) Fields(s ...googleapi.Field) *CreativesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesUpdateCall) Context(ctx context.Context) *CreativesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28794,18 +21397,12 @@ func (c *CreativesUpdateCall) Header() http.Header { } func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -28818,16 +21415,14 @@ func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.update" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28835,17 +21430,17 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -28858,37 +21453,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Updates an existing creative.", - // "httpMethod": "PUT", - // "id": "dfareporting.creatives.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dimensionValues.query": +} type DimensionValuesQueryCall struct { s *Service @@ -28899,8 +21464,9 @@ type DimensionValuesQueryCall struct { header_ http.Header } -// Query: Retrieves list of report dimension values for a list of -// filters. +// Query: Retrieves list of report dimension values for a list of filters. +// +// - profileId: The DFA user profile ID. func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall { c := &DimensionValuesQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28908,8 +21474,8 @@ func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *D return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DimensionValuesQueryCall) MaxResults(maxResults int64) *DimensionValuesQueryCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -28923,23 +21489,21 @@ func (c *DimensionValuesQueryCall) PageToken(pageToken string) *DimensionValuesQ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DimensionValuesQueryCall) Fields(s ...googleapi.Field) *DimensionValuesQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DimensionValuesQueryCall) Context(ctx context.Context) *DimensionValuesQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DimensionValuesQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28948,18 +21512,12 @@ func (c *DimensionValuesQueryCall) Header() http.Header { } func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dimensionvaluerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dimensionvalues/query") @@ -28972,16 +21530,15 @@ func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dimensionValues.query" call. -// Exactly one of *DimensionValueList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DimensionValueList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DimensionValueList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionValueList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28989,17 +21546,17 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DimensionValueList{ ServerResponse: googleapi.ServerResponse{ @@ -29012,48 +21569,6 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV return nil, err } return ret, nil - // { - // "description": "Retrieves list of report dimension values for a list of filters.", - // "httpMethod": "POST", - // "id": "dfareporting.dimensionValues.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "100", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dimensionvalues/query", - // "request": { - // "$ref": "DimensionValueRequest" - // }, - // "response": { - // "$ref": "DimensionValueList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -29061,7 +21576,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // The provided context supersedes any context provided to the Context method. func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionValueList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -29077,8 +21592,6 @@ func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionV } } -// method id "dfareporting.directorySiteContacts.get": - type DirectorySiteContactsGetCall struct { s *Service profileId int64 @@ -29090,6 +21603,9 @@ type DirectorySiteContactsGetCall struct { } // Get: Gets one directory site contact by ID. +// +// - id: Directory site contact ID. +// - profileId: User profile ID associated with this request. func (r *DirectorySiteContactsService) Get(profileId int64, id int64) *DirectorySiteContactsGetCall { c := &DirectorySiteContactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29098,33 +21614,29 @@ func (r *DirectorySiteContactsService) Get(profileId int64, id int64) *Directory } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySiteContactsGetCall) Fields(s ...googleapi.Field) *DirectorySiteContactsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySiteContactsGetCall) IfNoneMatch(entityTag string) *DirectorySiteContactsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySiteContactsGetCall) Context(ctx context.Context) *DirectorySiteContactsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySiteContactsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29133,12 +21645,7 @@ func (c *DirectorySiteContactsGetCall) Header() http.Header { } func (c *DirectorySiteContactsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29156,16 +21663,15 @@ func (c *DirectorySiteContactsGetCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySiteContacts.get" call. -// Exactly one of *DirectorySiteContact or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DirectorySiteContact.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySiteContact.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DirectorySiteContactsGetCall) Do(opts ...googleapi.CallOption) (*DirectorySiteContact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29173,17 +21679,17 @@ func (c *DirectorySiteContactsGetCall) Do(opts ...googleapi.CallOption) (*Direct if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySiteContact{ ServerResponse: googleapi.ServerResponse{ @@ -29196,42 +21702,7 @@ func (c *DirectorySiteContactsGetCall) Do(opts ...googleapi.CallOption) (*Direct return nil, err } return ret, nil - // { - // "description": "Gets one directory site contact by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySiteContacts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Directory site contact ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySiteContacts/{id}", - // "response": { - // "$ref": "DirectorySiteContact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySiteContacts.list": +} type DirectorySiteContactsListCall struct { s *Service @@ -29242,17 +21713,19 @@ type DirectorySiteContactsListCall struct { header_ http.Header } -// List: Retrieves a list of directory site contacts, possibly filtered. -// This method supports paging. +// List: Retrieves a list of directory site contacts, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySiteContactsService) List(profileId int64) *DirectorySiteContactsListCall { c := &DirectorySiteContactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only directory site contacts with these directory site IDs. -// This is a required field. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// directory site contacts with these directory site IDs. This is a required +// field. func (c *DirectorySiteContactsListCall) DirectorySiteIds(directorySiteIds ...int64) *DirectorySiteContactsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -29262,8 +21735,8 @@ func (c *DirectorySiteContactsListCall) DirectorySiteIds(directorySiteIds ...int return c } -// Ids sets the optional parameter "ids": Select only directory site -// contacts with these IDs. +// Ids sets the optional parameter "ids": Select only directory site contacts +// with these IDs. func (c *DirectorySiteContactsListCall) Ids(ids ...int64) *DirectorySiteContactsListCall { var ids_ []string for _, v := range ids { @@ -29273,8 +21746,8 @@ func (c *DirectorySiteContactsListCall) Ids(ids ...int64) *DirectorySiteContacts return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DirectorySiteContactsListCall) MaxResults(maxResults int64) *DirectorySiteContactsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -29287,23 +21760,22 @@ func (c *DirectorySiteContactsListCall) PageToken(pageToken string) *DirectorySi return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or email. Wildcards (*) are -// allowed. For example, "directory site contact*2015" will return -// objects with names like "directory site contact June 2015", -// "directory site contact April 2015", or simply "directory site -// contact 2015". Most of the searches also add wildcards implicitly at -// the start and the end of the search string. For example, a search -// string of "directory site contact" will match objects with name "my -// directory site contact", "directory site contact 2015", or simply -// "directory site contact". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or email. Wildcards (*) are allowed. For example, +// "directory site contact*2015" will return objects with names like "directory +// site contact June 2015", "directory site contact April 2015", or simply +// "directory site contact 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "directory site contact" will match objects with name "my +// directory site contact", "directory site contact 2015", or simply "directory +// site contact". func (c *DirectorySiteContactsListCall) SearchString(searchString string) *DirectorySiteContactsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -29314,8 +21786,7 @@ func (c *DirectorySiteContactsListCall) SortField(sortField string) *DirectorySi return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -29327,33 +21798,29 @@ func (c *DirectorySiteContactsListCall) SortOrder(sortOrder string) *DirectorySi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySiteContactsListCall) Fields(s ...googleapi.Field) *DirectorySiteContactsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySiteContactsListCall) IfNoneMatch(entityTag string) *DirectorySiteContactsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySiteContactsListCall) Context(ctx context.Context) *DirectorySiteContactsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySiteContactsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29362,12 +21829,7 @@ func (c *DirectorySiteContactsListCall) Header() http.Header { } func (c *DirectorySiteContactsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29384,17 +21846,15 @@ func (c *DirectorySiteContactsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySiteContacts.list" call. -// Exactly one of *DirectorySiteContactsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DirectorySiteContactsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySiteContactsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*DirectorySiteContactsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29402,17 +21862,17 @@ func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*Direc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySiteContactsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -29425,92 +21885,6 @@ func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*Direc return nil, err } return ret, nil - // { - // "description": "Retrieves a list of directory site contacts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySiteContacts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "directorySiteIds": { - // "description": "Select only directory site contacts with these directory site IDs. This is a required field.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only directory site contacts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"directory site contact*2015\" will return objects with names like \"directory site contact June 2015\", \"directory site contact April 2015\", or simply \"directory site contact 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site contact\" will match objects with name \"my directory site contact\", \"directory site contact 2015\", or simply \"directory site contact\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySiteContacts", - // "response": { - // "$ref": "DirectorySiteContactsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -29518,7 +21892,7 @@ func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*Direc // The provided context supersedes any context provided to the Context method. func (c *DirectorySiteContactsListCall) Pages(ctx context.Context, f func(*DirectorySiteContactsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -29534,8 +21908,6 @@ func (c *DirectorySiteContactsListCall) Pages(ctx context.Context, f func(*Direc } } -// method id "dfareporting.directorySites.get": - type DirectorySitesGetCall struct { s *Service profileId int64 @@ -29547,6 +21919,9 @@ type DirectorySitesGetCall struct { } // Get: Gets one directory site by ID. +// +// - id: Directory site ID. +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGetCall { c := &DirectorySitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29555,33 +21930,29 @@ func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesGetCall) Fields(s ...googleapi.Field) *DirectorySitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesGetCall) IfNoneMatch(entityTag string) *DirectorySitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesGetCall) Context(ctx context.Context) *DirectorySitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29590,12 +21961,7 @@ func (c *DirectorySitesGetCall) Header() http.Header { } func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29613,16 +21979,14 @@ func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.get" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29630,17 +21994,17 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -29653,42 +22017,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite return nil, err } return ret, nil - // { - // "description": "Gets one directory site by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Directory site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites/{id}", - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.insert": +} type DirectorySitesInsertCall struct { s *Service @@ -29700,6 +22029,8 @@ type DirectorySitesInsertCall struct { } // Insert: Inserts a new directory site. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) Insert(profileId int64, directorysite *DirectorySite) *DirectorySitesInsertCall { c := &DirectorySitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29708,23 +22039,21 @@ func (r *DirectorySitesService) Insert(profileId int64, directorysite *Directory } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesInsertCall) Fields(s ...googleapi.Field) *DirectorySitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesInsertCall) Context(ctx context.Context) *DirectorySitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29733,18 +22062,12 @@ func (c *DirectorySitesInsertCall) Header() http.Header { } func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.directorysite) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites") @@ -29757,16 +22080,14 @@ func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.insert" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29774,17 +22095,17 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -29797,37 +22118,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS return nil, err } return ret, nil - // { - // "description": "Inserts a new directory site.", - // "httpMethod": "POST", - // "id": "dfareporting.directorySites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "request": { - // "$ref": "DirectorySite" - // }, - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.list": +} type DirectorySitesListCall struct { s *Service @@ -29838,8 +22129,10 @@ type DirectorySitesListCall struct { header_ http.Header } -// List: Retrieves a list of directory sites, possibly filtered. This -// method supports paging. +// List: Retrieves a list of directory sites, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { c := &DirectorySitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29847,53 +22140,52 @@ func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only directory sites that -// accept publisher paid placements. This field can be left blank. +// "acceptsPublisherPaidPlacements": Select only directory sites that accept +// publisher paid placements. This field can be left blank. func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// Active sets the optional parameter "active": Select only active -// directory sites. Leave blank to retrieve both active and inactive -// directory sites. +// Active sets the optional parameter "active": Select only active directory +// sites. Leave blank to retrieve both active and inactive directory sites. func (c *DirectorySitesListCall) Active(active bool) *DirectorySitesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// CountryId sets the optional parameter "countryId": Select only -// directory sites with this country ID. +// CountryId sets the optional parameter "countryId": Select only directory +// sites with this country ID. func (c *DirectorySitesListCall) CountryId(countryId int64) *DirectorySitesListCall { c.urlParams_.Set("countryId", fmt.Sprint(countryId)) return c } -// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select -// only directory sites with this Ad Manager network code. +// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select only +// directory sites with this Ad Manager network code. func (c *DirectorySitesListCall) DfpNetworkCode(dfpNetworkCode string) *DirectorySitesListCall { c.urlParams_.Set("dfpNetworkCode", dfpNetworkCode) return c } -// Ids sets the optional parameter "ids": Select only directory sites -// with these IDs. +// Ids sets the optional parameter "ids": Select only directory sites with +// these IDs. func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { var ids_ []string for _, v := range ids { @@ -29903,8 +22195,8 @@ func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DirectorySitesListCall) MaxResults(maxResults int64) *DirectorySitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -29917,29 +22209,28 @@ func (c *DirectorySitesListCall) PageToken(pageToken string) *DirectorySitesList return c } -// ParentId sets the optional parameter "parentId": Select only -// directory sites with this parent ID. +// ParentId sets the optional parameter "parentId": Select only directory sites +// with this parent ID. func (c *DirectorySitesListCall) ParentId(parentId int64) *DirectorySitesListCall { c.urlParams_.Set("parentId", fmt.Sprint(parentId)) return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or URL. Wildcards (*) are allowed. -// For example, "directory site*2015" will return objects with names -// like "directory site June 2015", "directory site April 2015", or -// simply "directory site 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "directory site" will match objects with -// name "my directory site", "directory site 2015" or simply, "directory -// site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or URL. Wildcards (*) are allowed. For example, +// "directory site*2015" will return objects with names like "directory site +// June 2015", "directory site April 2015", or simply "directory site 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "directory site" will +// match objects with name "my directory site", "directory site 2015" or +// simply, "directory site". func (c *DirectorySitesListCall) SearchString(searchString string) *DirectorySitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -29950,8 +22241,7 @@ func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -29963,33 +22253,29 @@ func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesListCall) Fields(s ...googleapi.Field) *DirectorySitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesListCall) IfNoneMatch(entityTag string) *DirectorySitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesListCall) Context(ctx context.Context) *DirectorySitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29998,12 +22284,7 @@ func (c *DirectorySitesListCall) Header() http.Header { } func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30020,16 +22301,15 @@ func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.list" call. -// Exactly one of *DirectorySitesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *DirectorySitesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *DirectorySitesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30037,17 +22317,17 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -30060,122 +22340,6 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit return nil, err } return ret, nil - // { - // "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only directory sites that accept publisher paid placements. This field can be left blank.", - // "location": "query", - // "type": "boolean" - // }, - // "active": { - // "description": "Select only active directory sites. Leave blank to retrieve both active and inactive directory sites.", - // "location": "query", - // "type": "boolean" - // }, - // "countryId": { - // "description": "Select only directory sites with this country ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "dfpNetworkCode": { - // "description": "Select only directory sites with this Ad Manager network code.", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only directory sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "parentId": { - // "description": "Select only directory sites with this parent ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. For example, \"directory site*2015\" will return objects with names like \"directory site June 2015\", \"directory site April 2015\", or simply \"directory site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site\" will match objects with name \"my directory site\", \"directory site 2015\" or simply, \"directory site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "response": { - // "$ref": "DirectorySitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -30183,7 +22347,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // The provided context supersedes any context provided to the Context method. func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -30199,8 +22363,6 @@ func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySit } } -// method id "dfareporting.dynamicTargetingKeys.delete": - type DynamicTargetingKeysDeleteCall struct { s *Service profileId int64 @@ -30211,6 +22373,15 @@ type DynamicTargetingKeysDeleteCall struct { } // Delete: Deletes an existing dynamic targeting key. +// +// - name: Name of this dynamic targeting key. This is a required field. Must +// be less than 256 characters long and cannot contain commas. All characters +// are converted to lowercase. +// - objectId: ID of the object of this dynamic targeting key. This is a +// required field. +// - objectType: Type of the object of this dynamic targeting key. This is a +// required field. +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, name string, objectType string) *DynamicTargetingKeysDeleteCall { c := &DynamicTargetingKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30221,23 +22392,21 @@ func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, na } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysDeleteCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysDeleteCall) Context(ctx context.Context) *DynamicTargetingKeysDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30246,12 +22415,7 @@ func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { } func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -30266,7 +22430,7 @@ func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "objectId": strconv.FormatInt(c.objectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.delete" call. @@ -30278,68 +22442,10 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing dynamic targeting key.", - // "httpMethod": "DELETE", - // "id": "dfareporting.dynamicTargetingKeys.delete", - // "parameterOrder": [ - // "profileId", - // "objectId", - // "name", - // "objectType" - // ], - // "parameters": { - // "name": { - // "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "objectId": { - // "description": "ID of the object of this dynamic targeting key. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Type of the object of this dynamic targeting key. This is a required field.", - // "enum": [ - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.insert": +} type DynamicTargetingKeysInsertCall struct { s *Service @@ -30350,11 +22456,12 @@ type DynamicTargetingKeysInsertCall struct { header_ http.Header } -// Insert: Inserts a new dynamic targeting key. Keys must be created at -// the advertiser level before being assigned to the advertiser's ads, -// creatives, or placements. There is a maximum of 1000 keys per -// advertiser, out of which a maximum of 20 keys can be assigned per ad, -// creative, or placement. +// Insert: Inserts a new dynamic targeting key. Keys must be created at the +// advertiser level before being assigned to the advertiser's ads, creatives, +// or placements. There is a maximum of 1000 keys per advertiser, out of which +// a maximum of 20 keys can be assigned per ad, creative, or placement. +// +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingkey *DynamicTargetingKey) *DynamicTargetingKeysInsertCall { c := &DynamicTargetingKeysInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30363,23 +22470,21 @@ func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingke } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysInsertCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysInsertCall) Context(ctx context.Context) *DynamicTargetingKeysInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30388,18 +22493,12 @@ func (c *DynamicTargetingKeysInsertCall) Header() http.Header { } func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dynamictargetingkey) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys") @@ -30412,16 +22511,15 @@ func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.insert" call. -// Exactly one of *DynamicTargetingKey or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DynamicTargetingKey.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKey.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30429,17 +22527,17 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKey{ ServerResponse: googleapi.ServerResponse{ @@ -30452,37 +22550,7 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna return nil, err } return ret, nil - // { - // "description": "Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.", - // "httpMethod": "POST", - // "id": "dfareporting.dynamicTargetingKeys.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "request": { - // "$ref": "DynamicTargetingKey" - // }, - // "response": { - // "$ref": "DynamicTargetingKey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.list": +} type DynamicTargetingKeysListCall struct { s *Service @@ -30494,21 +22562,23 @@ type DynamicTargetingKeysListCall struct { } // List: Retrieves a list of dynamic targeting keys. +// +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) List(profileId int64) *DynamicTargetingKeysListCall { c := &DynamicTargetingKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// dynamic targeting keys whose object has this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only dynamic +// targeting keys whose object has this advertiser ID. func (c *DynamicTargetingKeysListCall) AdvertiserId(advertiserId int64) *DynamicTargetingKeysListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Names sets the optional parameter "names": Select only dynamic -// targeting keys exactly matching these names. +// Names sets the optional parameter "names": Select only dynamic targeting +// keys exactly matching these names. func (c *DynamicTargetingKeysListCall) Names(names ...string) *DynamicTargetingKeysListCall { c.urlParams_.SetMulti("names", append([]string{}, names...)) return c @@ -30521,8 +22591,8 @@ func (c *DynamicTargetingKeysListCall) ObjectId(objectId int64) *DynamicTargetin return c } -// ObjectType sets the optional parameter "objectType": Select only -// dynamic targeting keys with this object type. +// ObjectType sets the optional parameter "objectType": Select only dynamic +// targeting keys with this object type. // // Possible values: // @@ -30536,33 +22606,29 @@ func (c *DynamicTargetingKeysListCall) ObjectType(objectType string) *DynamicTar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysListCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DynamicTargetingKeysListCall) IfNoneMatch(entityTag string) *DynamicTargetingKeysListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysListCall) Context(ctx context.Context) *DynamicTargetingKeysListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30571,12 +22637,7 @@ func (c *DynamicTargetingKeysListCall) Header() http.Header { } func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30593,16 +22654,15 @@ func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.list" call. -// Exactly one of *DynamicTargetingKeysListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DynamicTargetingKeysListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKeysListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKeysListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30610,17 +22670,17 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKeysListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -30633,69 +22693,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami return nil, err } return ret, nil - // { - // "description": "Retrieves a list of dynamic targeting keys.", - // "httpMethod": "GET", - // "id": "dfareporting.dynamicTargetingKeys.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only dynamic targeting keys whose object has this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "names": { - // "description": "Select only dynamic targeting keys exactly matching these names.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectId": { - // "description": "Select only dynamic targeting keys with this object ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "objectType": { - // "description": "Select only dynamic targeting keys with this object type.", - // "enum": [ - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "response": { - // "$ref": "DynamicTargetingKeysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.delete": +} type EventTagsDeleteCall struct { s *Service @@ -30707,6 +22705,9 @@ type EventTagsDeleteCall struct { } // Delete: Deletes an existing event tag. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCall { c := &EventTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30715,23 +22716,21 @@ func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsDeleteCall) Fields(s ...googleapi.Field) *EventTagsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsDeleteCall) Context(ctx context.Context) *EventTagsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30740,12 +22739,7 @@ func (c *EventTagsDeleteCall) Header() http.Header { } func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -30760,7 +22754,7 @@ func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.delete" call. @@ -30772,42 +22766,10 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing event tag.", - // "httpMethod": "DELETE", - // "id": "dfareporting.eventTags.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.get": +} type EventTagsGetCall struct { s *Service @@ -30820,6 +22782,9 @@ type EventTagsGetCall struct { } // Get: Gets one event tag by ID. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { c := &EventTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30828,33 +22793,29 @@ func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsGetCall) Fields(s ...googleapi.Field) *EventTagsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsGetCall) IfNoneMatch(entityTag string) *EventTagsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsGetCall) Context(ctx context.Context) *EventTagsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30863,12 +22824,7 @@ func (c *EventTagsGetCall) Header() http.Header { } func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30886,16 +22842,14 @@ func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.get" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30903,17 +22857,17 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -30926,42 +22880,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { return nil, err } return ret, nil - // { - // "description": "Gets one event tag by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.insert": +} type EventTagsInsertCall struct { s *Service @@ -30973,6 +22892,8 @@ type EventTagsInsertCall struct { } // Insert: Inserts a new event tag. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTagsInsertCall { c := &EventTagsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30981,23 +22902,21 @@ func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsInsertCall) Fields(s ...googleapi.Field) *EventTagsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsInsertCall) Context(ctx context.Context) *EventTagsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31006,18 +22925,12 @@ func (c *EventTagsInsertCall) Header() http.Header { } func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -31030,16 +22943,14 @@ func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.insert" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31047,17 +22958,17 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31070,37 +22981,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Inserts a new event tag.", - // "httpMethod": "POST", - // "id": "dfareporting.eventTags.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.list": +} type EventTagsListCall struct { s *Service @@ -31112,64 +22993,63 @@ type EventTagsListCall struct { } // List: Retrieves a list of event tags, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) List(profileId int64) *EventTagsListCall { c := &EventTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdId sets the optional parameter "adId": Select only event tags that -// belong to this ad. +// AdId sets the optional parameter "adId": Select only event tags that belong +// to this ad. func (c *EventTagsListCall) AdId(adId int64) *EventTagsListCall { c.urlParams_.Set("adId", fmt.Sprint(adId)) return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// event tags that belong to this advertiser. +// AdvertiserId sets the optional parameter "advertiserId": Select only event +// tags that belong to this advertiser. func (c *EventTagsListCall) AdvertiserId(advertiserId int64) *EventTagsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// CampaignId sets the optional parameter "campaignId": Select only -// event tags that belong to this campaign. +// CampaignId sets the optional parameter "campaignId": Select only event tags +// that belong to this campaign. func (c *EventTagsListCall) CampaignId(campaignId int64) *EventTagsListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// DefinitionsOnly sets the optional parameter "definitionsOnly": -// Examine only the specified campaign or advertiser's event tags for -// matching selector criteria. When set to false, the parent advertiser -// and parent campaign of the specified ad or campaign is examined as -// well. In addition, when set to false, the status field is examined as -// well, along with the enabledByDefault field. This parameter can not -// be set to true when adId is specified as ads do not define their own -// even tags. +// DefinitionsOnly sets the optional parameter "definitionsOnly": Examine only +// the specified campaign or advertiser's event tags for matching selector +// criteria. When set to false, the parent advertiser and parent campaign of +// the specified ad or campaign is examined as well. In addition, when set to +// false, the status field is examined as well, along with the enabledByDefault +// field. This parameter can not be set to true when adId is specified as ads +// do not define their own even tags. func (c *EventTagsListCall) DefinitionsOnly(definitionsOnly bool) *EventTagsListCall { c.urlParams_.Set("definitionsOnly", fmt.Sprint(definitionsOnly)) return c } -// Enabled sets the optional parameter "enabled": Select only enabled -// event tags. What is considered enabled or disabled depends on the -// definitionsOnly parameter. When definitionsOnly is set to true, only -// the specified advertiser or campaign's event tags' enabledByDefault -// field is examined. When definitionsOnly is set to false, the -// specified ad or specified campaign's parent advertiser's or parent -// campaign's event tags' enabledByDefault and status fields are -// examined as well. +// Enabled sets the optional parameter "enabled": Select only enabled event +// tags. What is considered enabled or disabled depends on the definitionsOnly +// parameter. When definitionsOnly is set to true, only the specified +// advertiser or campaign's event tags' enabledByDefault field is examined. +// When definitionsOnly is set to false, the specified ad or specified +// campaign's parent advertiser's or parent campaign's event tags' +// enabledByDefault and status fields are examined as well. func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall { c.urlParams_.Set("enabled", fmt.Sprint(enabled)) return c } -// EventTagTypes sets the optional parameter "eventTagTypes": Select -// only event tags with the specified event tag types. Event tag types -// can be used to specify whether to use a third-party pixel, a -// third-party JavaScript URL, or a third-party click-through URL for -// either impression or click tracking. +// EventTagTypes sets the optional parameter "eventTagTypes": Select only event +// tags with the specified event tag types. Event tag types can be used to +// specify whether to use a third-party pixel, a third-party JavaScript URL, or +// a third-party click-through URL for either impression or click tracking. // // Possible values: // @@ -31181,8 +23061,8 @@ func (c *EventTagsListCall) EventTagTypes(eventTagTypes ...string) *EventTagsLis return c } -// Ids sets the optional parameter "ids": Select only event tags with -// these IDs. +// Ids sets the optional parameter "ids": Select only event tags with these +// IDs. func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { var ids_ []string for _, v := range ids { @@ -31192,21 +23072,20 @@ func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "eventtag*2015" will return objects with names like -// "eventtag June 2015", "eventtag April 2015", or simply "eventtag -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "eventtag" will match objects with name "my eventtag", "eventtag -// 2015", or simply "eventtag". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "eventtag*2015" will return objects with names like "eventtag June 2015", +// "eventtag April 2015", or simply "eventtag 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "eventtag" will match objects with name "my +// eventtag", "eventtag 2015", or simply "eventtag". func (c *EventTagsListCall) SearchString(searchString string) *EventTagsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -31217,8 +23096,7 @@ func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -31230,33 +23108,29 @@ func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsListCall) Fields(s ...googleapi.Field) *EventTagsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsListCall) IfNoneMatch(entityTag string) *EventTagsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsListCall) Context(ctx context.Context) *EventTagsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31265,12 +23139,7 @@ func (c *EventTagsListCall) Header() http.Header { } func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31287,16 +23156,15 @@ func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.list" call. -// Exactly one of *EventTagsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *EventTagsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTagsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31304,17 +23172,17 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTagsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -31327,118 +23195,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of event tags, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "adId": { - // "description": "Select only event tags that belong to this ad.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "advertiserId": { - // "description": "Select only event tags that belong to this advertiser.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "campaignId": { - // "description": "Select only event tags that belong to this campaign.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "definitionsOnly": { - // "description": "Examine only the specified campaign or advertiser's event tags for matching selector criteria. When set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined as well. In addition, when set to false, the status field is examined as well, along with the enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not define their own even tags.", - // "location": "query", - // "type": "boolean" - // }, - // "enabled": { - // "description": "Select only enabled event tags. What is considered enabled or disabled depends on the definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' enabledByDefault and status fields are examined as well.", - // "location": "query", - // "type": "boolean" - // }, - // "eventTagTypes": { - // "description": "Select only event tags with the specified event tag types. Event tag types can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking.", - // "enum": [ - // "CLICK_THROUGH_EVENT_TAG", - // "IMPRESSION_IMAGE_EVENT_TAG", - // "IMPRESSION_JAVASCRIPT_EVENT_TAG" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only event tags with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"eventtag*2015\" will return objects with names like \"eventtag June 2015\", \"eventtag April 2015\", or simply \"eventtag 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"eventtag\" will match objects with name \"my eventtag\", \"eventtag 2015\", or simply \"eventtag\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "response": { - // "$ref": "EventTagsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.patch": +} type EventTagsPatchCall struct { s *Service @@ -31449,8 +23206,10 @@ type EventTagsPatchCall struct { header_ http.Header } -// Patch: Updates an existing event tag. This method supports patch -// semantics. +// Patch: Updates an existing event tag. This method supports patch semantics. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) *EventTagsPatchCall { c := &EventTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31460,23 +23219,21 @@ func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsPatchCall) Fields(s ...googleapi.Field) *EventTagsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsPatchCall) Context(ctx context.Context) *EventTagsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31485,18 +23242,12 @@ func (c *EventTagsPatchCall) Header() http.Header { } func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -31509,16 +23260,14 @@ func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.patch" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31526,17 +23275,17 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31549,45 +23298,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.eventTags.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.update": +} type EventTagsUpdateCall struct { s *Service @@ -31599,6 +23310,8 @@ type EventTagsUpdateCall struct { } // Update: Updates an existing event tag. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTagsUpdateCall { c := &EventTagsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31607,23 +23320,21 @@ func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsUpdateCall) Fields(s ...googleapi.Field) *EventTagsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsUpdateCall) Context(ctx context.Context) *EventTagsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31632,18 +23343,12 @@ func (c *EventTagsUpdateCall) Header() http.Header { } func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -31656,16 +23361,14 @@ func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.update" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31673,17 +23376,17 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31696,37 +23399,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag.", - // "httpMethod": "PUT", - // "id": "dfareporting.eventTags.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.files.get": +} type FilesGetCall struct { s *Service @@ -31738,8 +23411,11 @@ type FilesGetCall struct { header_ http.Header } -// Get: Retrieves a report file by its report ID and file ID. This -// method supports media download. +// Get: Retrieves a report file by its report ID and file ID. This method +// supports media download. +// +// - fileId: The ID of the report file. +// - reportId: The ID of the report. func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { c := &FilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.reportId = reportId @@ -31748,33 +23424,29 @@ func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesGetCall) Fields(s ...googleapi.Field) *FilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesGetCall) IfNoneMatch(entityTag string) *FilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31783,12 +23455,7 @@ func (c *FilesGetCall) Header() http.Header { } func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31806,7 +23473,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -31818,20 +23485,18 @@ func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, e if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31839,17 +23504,17 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -31862,43 +23527,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "httpMethod": "GET", - // "id": "dfareporting.files.get", - // "parameterOrder": [ - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.files.list": +} type FilesListCall struct { s *Service @@ -31910,14 +23539,16 @@ type FilesListCall struct { } // List: Lists files for a user profile. +// +// - profileId: The DFA profile ID. func (r *FilesService) List(profileId int64) *FilesListCall { c := &FilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -31930,8 +23561,8 @@ func (c *FilesListCall) PageToken(pageToken string) *FilesListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -31943,8 +23574,8 @@ func (c *FilesListCall) Scope(scope string) *FilesListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -31955,8 +23586,7 @@ func (c *FilesListCall) SortField(sortField string) *FilesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -31968,33 +23598,29 @@ func (c *FilesListCall) SortOrder(sortOrder string) *FilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesListCall) Fields(s ...googleapi.Field) *FilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesListCall) IfNoneMatch(entityTag string) *FilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FilesListCall) Context(ctx context.Context) *FilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32003,12 +23629,7 @@ func (c *FilesListCall) Header() http.Header { } func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32025,16 +23646,14 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32042,17 +23661,17 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -32065,89 +23684,6 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { return nil, err } return ret, nil - // { - // "description": "Lists files for a user profile.", - // "httpMethod": "GET", - // "id": "dfareporting.files.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE", - // "SHARED_WITH_ME" - // ], - // "enumDescriptions": [ - // "All files in account.", - // "My files.", - // "Files shared with me." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -32155,7 +23691,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // The provided context supersedes any context provided to the Context method. func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -32171,8 +23707,6 @@ func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) erro } } -// method id "dfareporting.floodlightActivities.delete": - type FloodlightActivitiesDeleteCall struct { s *Service profileId int64 @@ -32183,6 +23717,9 @@ type FloodlightActivitiesDeleteCall struct { } // Delete: Deletes an existing floodlight activity. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *FloodlightActivitiesDeleteCall { c := &FloodlightActivitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32191,23 +23728,21 @@ func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *Floodli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesDeleteCall) Fields(s ...googleapi.Field) *FloodlightActivitiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesDeleteCall) Context(ctx context.Context) *FloodlightActivitiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32216,12 +23751,7 @@ func (c *FloodlightActivitiesDeleteCall) Header() http.Header { } func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -32236,7 +23766,7 @@ func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.delete" call. @@ -32248,42 +23778,10 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing floodlight activity.", - // "httpMethod": "DELETE", - // "id": "dfareporting.floodlightActivities.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.generatetag": +} type FloodlightActivitiesGeneratetagCall struct { s *Service @@ -32294,38 +23792,37 @@ type FloodlightActivitiesGeneratetagCall struct { } // Generatetag: Generates a tag for a floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Generatetag(profileId int64) *FloodlightActivitiesGeneratetagCall { c := &FloodlightActivitiesGeneratetagCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Floodlight activity ID for which we want to -// generate a tag. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Floodlight activity ID for which we want to generate a tag. func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityId int64) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGeneratetagCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGeneratetagCall) Context(ctx context.Context) *FloodlightActivitiesGeneratetagCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32334,12 +23831,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { } func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -32353,17 +23845,15 @@ func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.generatetag" call. -// Exactly one of *FloodlightActivitiesGenerateTagResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesGenerateTagResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32371,17 +23861,17 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesGenerateTagResponse{ ServerResponse: googleapi.ServerResponse{ @@ -32394,40 +23884,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Generates a tag for a floodlight activity.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.generatetag", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "floodlightActivityId": { - // "description": "Floodlight activity ID for which we want to generate a tag.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/generatetag", - // "response": { - // "$ref": "FloodlightActivitiesGenerateTagResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.get": +} type FloodlightActivitiesGetCall struct { s *Service @@ -32440,6 +23897,9 @@ type FloodlightActivitiesGetCall struct { } // Get: Gets one floodlight activity by ID. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *FloodlightActivitiesGetCall { c := &FloodlightActivitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32448,33 +23908,29 @@ func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *Floodlight } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGetCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesGetCall) IfNoneMatch(entityTag string) *FloodlightActivitiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGetCall) Context(ctx context.Context) *FloodlightActivitiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32483,12 +23939,7 @@ func (c *FloodlightActivitiesGetCall) Header() http.Header { } func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32506,16 +23957,15 @@ func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.get" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32523,17 +23973,17 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -32546,42 +23996,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.insert": +} type FloodlightActivitiesInsertCall struct { s *Service @@ -32593,6 +24008,8 @@ type FloodlightActivitiesInsertCall struct { } // Insert: Inserts a new floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesInsertCall { c := &FloodlightActivitiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32601,23 +24018,21 @@ func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesInsertCall) Fields(s ...googleapi.Field) *FloodlightActivitiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesInsertCall) Context(ctx context.Context) *FloodlightActivitiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32626,18 +24041,12 @@ func (c *FloodlightActivitiesInsertCall) Header() http.Header { } func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -32650,16 +24059,15 @@ func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.insert" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32667,17 +24075,17 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -32690,37 +24098,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.list": +} type FloodlightActivitiesListCall struct { s *Service @@ -32731,8 +24109,10 @@ type FloodlightActivitiesListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activities, possibly filtered. -// This method supports paging. +// List: Retrieves a list of floodlight activities, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitiesListCall { c := &FloodlightActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32740,17 +24120,16 @@ func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitie } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activities for the specified advertiser ID. Must specify -// either ids, advertiserId, or floodlightConfigurationId for a -// non-empty result. +// floodlight activities for the specified advertiser ID. Must specify either +// ids, advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) AdvertiserId(advertiserId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightActivityGroupIds sets the optional parameter -// "floodlightActivityGroupIds": Select only floodlight activities with -// the specified floodlight activity group IDs. +// "floodlightActivityGroupIds": Select only floodlight activities with the +// specified floodlight activity group IDs. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds ...int64) *FloodlightActivitiesListCall { var floodlightActivityGroupIds_ []string for _, v := range floodlightActivityGroupIds { @@ -32761,24 +24140,24 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActi } // FloodlightActivityGroupName sets the optional parameter -// "floodlightActivityGroupName": Select only floodlight activities with -// the specified floodlight activity group name. +// "floodlightActivityGroupName": Select only floodlight activities with the +// specified floodlight activity group name. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupName string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupName", floodlightActivityGroupName) return c } // FloodlightActivityGroupTagString sets the optional parameter -// "floodlightActivityGroupTagString": Select only floodlight activities -// with the specified floodlight activity group tag string. +// "floodlightActivityGroupTagString": Select only floodlight activities with +// the specified floodlight activity group tag string. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupTagString", floodlightActivityGroupTagString) return c } // FloodlightActivityGroupType sets the optional parameter -// "floodlightActivityGroupType": Select only floodlight activities with -// the specified floodlight activity group type. +// "floodlightActivityGroupType": Select only floodlight activities with the +// specified floodlight activity group type. // // Possible values: // @@ -32790,17 +24169,17 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightAct } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activities for -// the specified floodlight configuration ID. Must specify either ids, +// "floodlightConfigurationId": Select only floodlight activities for the +// specified floodlight configuration ID. Must specify either ids, // advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activities with the specified IDs. Must specify either ids, -// advertiserId, or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activities +// with the specified IDs. Must specify either ids, advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesListCall { var ids_ []string for _, v := range ids { @@ -32810,8 +24189,8 @@ func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesLi return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivitiesListCall) MaxResults(maxResults int64) *FloodlightActivitiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -32824,22 +24203,22 @@ func (c *FloodlightActivitiesListCall) PageToken(pageToken string) *FloodlightAc return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivity*2015" will return objects with names -// like "floodlightactivity June 2015", "floodlightactivity April 2015", -// or simply "floodlightactivity 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivity" will match -// objects with name "my floodlightactivity activity", -// "floodlightactivity 2015", or simply "floodlightactivity". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivity*2015" will return objects with names like +// "floodlightactivity June 2015", "floodlightactivity April 2015", or simply +// "floodlightactivity 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "floodlightactivity" will match objects with name "my +// floodlightactivity activity", "floodlightactivity 2015", or simply +// "floodlightactivity". func (c *FloodlightActivitiesListCall) SearchString(searchString string) *FloodlightActivitiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -32850,8 +24229,7 @@ func (c *FloodlightActivitiesListCall) SortField(sortField string) *FloodlightAc return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -32862,41 +24240,37 @@ func (c *FloodlightActivitiesListCall) SortOrder(sortOrder string) *FloodlightAc return c } -// TagString sets the optional parameter "tagString": Select only -// floodlight activities with the specified tag string. +// TagString sets the optional parameter "tagString": Select only floodlight +// activities with the specified tag string. func (c *FloodlightActivitiesListCall) TagString(tagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("tagString", tagString) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesListCall) Fields(s ...googleapi.Field) *FloodlightActivitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesListCall) IfNoneMatch(entityTag string) *FloodlightActivitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesListCall) Context(ctx context.Context) *FloodlightActivitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32905,12 +24279,7 @@ func (c *FloodlightActivitiesListCall) Header() http.Header { } func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32927,16 +24296,15 @@ func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.list" call. -// Exactly one of *FloodlightActivitiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivitiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32944,17 +24312,17 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -32967,132 +24335,6 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activities for the specified advertiser ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupIds": { - // "description": "Select only floodlight activities with the specified floodlight activity group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightActivityGroupName": { - // "description": "Select only floodlight activities with the specified floodlight activity group name.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupTagString": { - // "description": "Select only floodlight activities with the specified floodlight activity group tag string.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupType": { - // "description": "Select only floodlight activities with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activities for the specified floodlight configuration ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivity*2015\" will return objects with names like \"floodlightactivity June 2015\", \"floodlightactivity April 2015\", or simply \"floodlightactivity 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivity\" will match objects with name \"my floodlightactivity activity\", \"floodlightactivity 2015\", or simply \"floodlightactivity\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "tagString": { - // "description": "Select only floodlight activities with the specified tag string.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "response": { - // "$ref": "FloodlightActivitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -33100,7 +24342,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*FloodlightActivitiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -33116,8 +24358,6 @@ func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*Floodl } } -// method id "dfareporting.floodlightActivities.patch": - type FloodlightActivitiesPatchCall struct { s *Service profileId int64 @@ -33127,8 +24367,11 @@ type FloodlightActivitiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity. This method supports -// patch semantics. +// Patch: Updates an existing floodlight activity. This method supports patch +// semantics. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesPatchCall { c := &FloodlightActivitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33138,23 +24381,21 @@ func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodligh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesPatchCall) Fields(s ...googleapi.Field) *FloodlightActivitiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesPatchCall) Context(ctx context.Context) *FloodlightActivitiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33163,18 +24404,12 @@ func (c *FloodlightActivitiesPatchCall) Header() http.Header { } func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -33187,16 +24422,15 @@ func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.patch" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33204,17 +24438,17 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -33227,45 +24461,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivities.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.update": +} type FloodlightActivitiesUpdateCall struct { s *Service @@ -33277,6 +24473,8 @@ type FloodlightActivitiesUpdateCall struct { } // Update: Updates an existing floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesUpdateCall { c := &FloodlightActivitiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33285,23 +24483,21 @@ func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivitiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesUpdateCall) Context(ctx context.Context) *FloodlightActivitiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33310,18 +24506,12 @@ func (c *FloodlightActivitiesUpdateCall) Header() http.Header { } func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -33334,16 +24524,15 @@ func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.update" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33351,17 +24540,17 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -33374,37 +24563,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivities.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.get": +} type FloodlightActivityGroupsGetCall struct { s *Service @@ -33417,6 +24576,9 @@ type FloodlightActivityGroupsGetCall struct { } // Get: Gets one floodlight activity group by ID. +// +// - id: Floodlight activity Group ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *FloodlightActivityGroupsGetCall { c := &FloodlightActivityGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33425,33 +24587,29 @@ func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsGetCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsGetCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsGetCall) Context(ctx context.Context) *FloodlightActivityGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33460,12 +24618,7 @@ func (c *FloodlightActivityGroupsGetCall) Header() http.Header { } func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33483,16 +24636,15 @@ func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.get" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33500,17 +24652,17 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -33523,42 +24675,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.insert": +} type FloodlightActivityGroupsInsertCall struct { s *Service @@ -33570,6 +24687,8 @@ type FloodlightActivityGroupsInsertCall struct { } // Insert: Inserts a new floodlight activity group. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsInsertCall { c := &FloodlightActivityGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33578,23 +24697,21 @@ func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsInsertCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsInsertCall) Context(ctx context.Context) *FloodlightActivityGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33603,18 +24720,12 @@ func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { } func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -33627,16 +24738,15 @@ func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.insert" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33644,17 +24754,17 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -33667,37 +24777,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity group.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivityGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.list": +} type FloodlightActivityGroupsListCall struct { s *Service @@ -33708,8 +24788,10 @@ type FloodlightActivityGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activity groups, possibly -// filtered. This method supports paging. +// List: Retrieves a list of floodlight activity groups, possibly filtered. +// This method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActivityGroupsListCall { c := &FloodlightActivityGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33717,26 +24799,25 @@ func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActiv } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activity groups with the specified advertiser ID. Must -// specify either advertiserId or floodlightConfigurationId for a -// non-empty result. +// floodlight activity groups with the specified advertiser ID. Must specify +// either advertiserId or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) AdvertiserId(advertiserId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activity groups -// with the specified floodlight configuration ID. Must specify either -// advertiserId, or floodlightConfigurationId for a non-empty result. +// "floodlightConfigurationId": Select only floodlight activity groups with the +// specified floodlight configuration ID. Must specify either advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activity groups with the specified IDs. Must specify either -// advertiserId or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activity +// groups with the specified IDs. Must specify either advertiserId or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivityGroupsListCall { var ids_ []string for _, v := range ids { @@ -33746,8 +24827,8 @@ func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivity return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivityGroupsListCall) MaxResults(maxResults int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -33760,23 +24841,22 @@ func (c *FloodlightActivityGroupsListCall) PageToken(pageToken string) *Floodlig return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivitygroup*2015" will return objects with -// names like "floodlightactivitygroup June 2015", -// "floodlightactivitygroup April 2015", or simply -// "floodlightactivitygroup 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivitygroup" will match -// objects with name "my floodlightactivitygroup activity", -// "floodlightactivitygroup 2015", or simply "floodlightactivitygroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivitygroup*2015" will return objects with names like +// "floodlightactivitygroup June 2015", "floodlightactivitygroup April 2015", +// or simply "floodlightactivitygroup 2015". Most of the searches also add +// wildcards implicitly at the start and the end of the search string. For +// example, a search string of "floodlightactivitygroup" will match objects +// with name "my floodlightactivitygroup activity", "floodlightactivitygroup +// 2015", or simply "floodlightactivitygroup". func (c *FloodlightActivityGroupsListCall) SearchString(searchString string) *FloodlightActivityGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -33787,8 +24867,7 @@ func (c *FloodlightActivityGroupsListCall) SortField(sortField string) *Floodlig return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -33799,8 +24878,8 @@ func (c *FloodlightActivityGroupsListCall) SortOrder(sortOrder string) *Floodlig return c } -// Type sets the optional parameter "type": Select only floodlight -// activity groups with the specified floodlight activity group type. +// Type sets the optional parameter "type": Select only floodlight activity +// groups with the specified floodlight activity group type. // // Possible values: // @@ -33812,33 +24891,29 @@ func (c *FloodlightActivityGroupsListCall) Type(type_ string) *FloodlightActivit } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsListCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsListCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsListCall) Context(ctx context.Context) *FloodlightActivityGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33847,12 +24922,7 @@ func (c *FloodlightActivityGroupsListCall) Header() http.Header { } func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33869,17 +24939,15 @@ func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.list" call. -// Exactly one of *FloodlightActivityGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivityGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivityGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33887,17 +24955,17 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -33910,110 +24978,6 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activity groups with the specified advertiser ID. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activity groups with the specified floodlight configuration ID. Must specify either advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivitygroup*2015\" will return objects with names like \"floodlightactivitygroup June 2015\", \"floodlightactivitygroup April 2015\", or simply \"floodlightactivitygroup 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivitygroup\" will match objects with name \"my floodlightactivitygroup activity\", \"floodlightactivitygroup 2015\", or simply \"floodlightactivitygroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only floodlight activity groups with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "response": { - // "$ref": "FloodlightActivityGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -34021,7 +24985,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*FloodlightActivityGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -34037,8 +25001,6 @@ func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*Fl } } -// method id "dfareporting.floodlightActivityGroups.patch": - type FloodlightActivityGroupsPatchCall struct { s *Service profileId int64 @@ -34048,8 +25010,11 @@ type FloodlightActivityGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity group. This method -// supports patch semantics. +// Patch: Updates an existing floodlight activity group. This method supports +// patch semantics. +// +// - id: Floodlight activity Group ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsPatchCall { c := &FloodlightActivityGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34059,23 +25024,21 @@ func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsPatchCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsPatchCall) Context(ctx context.Context) *FloodlightActivityGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34084,18 +25047,12 @@ func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { } func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -34108,16 +25065,15 @@ func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.patch" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34125,17 +25081,17 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -34148,45 +25104,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivityGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.update": +} type FloodlightActivityGroupsUpdateCall struct { s *Service @@ -34198,6 +25116,8 @@ type FloodlightActivityGroupsUpdateCall struct { } // Update: Updates an existing floodlight activity group. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsUpdateCall { c := &FloodlightActivityGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34206,23 +25126,21 @@ func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsUpdateCall) Context(ctx context.Context) *FloodlightActivityGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34231,18 +25149,12 @@ func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { } func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -34255,16 +25167,15 @@ func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.update" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34272,17 +25183,17 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -34295,37 +25206,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivityGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.get": +} type FloodlightConfigurationsGetCall struct { s *Service @@ -34338,6 +25219,9 @@ type FloodlightConfigurationsGetCall struct { } // Get: Gets one floodlight configuration by ID. +// +// - id: Floodlight configuration ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *FloodlightConfigurationsGetCall { c := &FloodlightConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34346,33 +25230,29 @@ func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsGetCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsGetCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsGetCall) Context(ctx context.Context) *FloodlightConfigurationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34381,12 +25261,7 @@ func (c *FloodlightConfigurationsGetCall) Header() http.Header { } func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34404,16 +25279,15 @@ func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.get" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34421,17 +25295,17 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -34444,42 +25318,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight configuration by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.list": +} type FloodlightConfigurationsListCall struct { s *Service @@ -34490,8 +25329,9 @@ type FloodlightConfigurationsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight configurations, possibly -// filtered. +// List: Retrieves a list of floodlight configurations, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfigurationsListCall { c := &FloodlightConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34499,8 +25339,8 @@ func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfi } // Ids sets the optional parameter "ids": Set of IDs of floodlight -// configurations to retrieve. Required field; otherwise an empty list -// will be returned. +// configurations to retrieve. Required field; otherwise an empty list will be +// returned. func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigurationsListCall { var ids_ []string for _, v := range ids { @@ -34511,33 +25351,29 @@ func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigur } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsListCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsListCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsListCall) Context(ctx context.Context) *FloodlightConfigurationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34546,12 +25382,7 @@ func (c *FloodlightConfigurationsListCall) Header() http.Header { } func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34568,17 +25399,15 @@ func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.list" call. -// Exactly one of *FloodlightConfigurationsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightConfigurationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightConfigurationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*FloodlightConfigurationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34586,17 +25415,17 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfigurationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34609,41 +25438,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight configurations, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will be returned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "response": { - // "$ref": "FloodlightConfigurationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.patch": +} type FloodlightConfigurationsPatchCall struct { s *Service @@ -34654,8 +25449,11 @@ type FloodlightConfigurationsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight configuration. This method -// supports patch semantics. +// Patch: Updates an existing floodlight configuration. This method supports +// patch semantics. +// +// - id: Floodlight configuration ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsPatchCall { c := &FloodlightConfigurationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34665,23 +25463,21 @@ func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsPatchCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsPatchCall) Context(ctx context.Context) *FloodlightConfigurationsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34690,18 +25486,12 @@ func (c *FloodlightConfigurationsPatchCall) Header() http.Header { } func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -34714,16 +25504,15 @@ func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.patch" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34731,17 +25520,17 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -34754,45 +25543,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightConfigurations.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.update": +} type FloodlightConfigurationsUpdateCall struct { s *Service @@ -34804,6 +25555,8 @@ type FloodlightConfigurationsUpdateCall struct { } // Update: Updates an existing floodlight configuration. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsUpdateCall { c := &FloodlightConfigurationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34812,23 +25565,21 @@ func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconf } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsUpdateCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsUpdateCall) Context(ctx context.Context) *FloodlightConfigurationsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34837,18 +25588,12 @@ func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { } func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -34861,16 +25606,15 @@ func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.update" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34878,17 +25622,17 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -34901,37 +25645,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightConfigurations.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.get": +} type InventoryItemsGetCall struct { s *Service @@ -34945,6 +25659,10 @@ type InventoryItemsGetCall struct { } // Get: Gets one inventory item by ID. +// +// - id: Inventory item ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) *InventoryItemsGetCall { c := &InventoryItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34954,33 +25672,29 @@ func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsGetCall) Fields(s ...googleapi.Field) *InventoryItemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsGetCall) IfNoneMatch(entityTag string) *InventoryItemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsGetCall) Context(ctx context.Context) *InventoryItemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34989,12 +25703,7 @@ func (c *InventoryItemsGetCall) Header() http.Header { } func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35013,16 +25722,14 @@ func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.get" call. -// Exactly one of *InventoryItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InventoryItem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventoryItem.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35030,17 +25737,17 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItem{ ServerResponse: googleapi.ServerResponse{ @@ -35053,50 +25760,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem return nil, err } return ret, nil - // { - // "description": "Gets one inventory item by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Inventory item ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - // "response": { - // "$ref": "InventoryItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.list": +} type InventoryItemsListCall struct { s *Service @@ -35108,8 +25772,11 @@ type InventoryItemsListCall struct { header_ http.Header } -// List: Retrieves a list of inventory items, possibly filtered. This -// method supports paging. +// List: Retrieves a list of inventory items, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *InventoryItemsService) List(profileId int64, projectId int64) *InventoryItemsListCall { c := &InventoryItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35117,8 +25784,8 @@ func (r *InventoryItemsService) List(profileId int64, projectId int64) *Inventor return c } -// Ids sets the optional parameter "ids": Select only inventory items -// with these IDs. +// Ids sets the optional parameter "ids": Select only inventory items with +// these IDs. func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { var ids_ []string for _, v := range ids { @@ -35128,22 +25795,22 @@ func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { return c } -// InPlan sets the optional parameter "inPlan": Select only inventory -// items that are in plan. +// InPlan sets the optional parameter "inPlan": Select only inventory items +// that are in plan. func (c *InventoryItemsListCall) InPlan(inPlan bool) *InventoryItemsListCall { c.urlParams_.Set("inPlan", fmt.Sprint(inPlan)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *InventoryItemsListCall) MaxResults(maxResults int64) *InventoryItemsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only inventory -// items that belong to specified orders. +// OrderId sets the optional parameter "orderId": Select only inventory items +// that belong to specified orders. func (c *InventoryItemsListCall) OrderId(orderId ...int64) *InventoryItemsListCall { var orderId_ []string for _, v := range orderId { @@ -35160,8 +25827,8 @@ func (c *InventoryItemsListCall) PageToken(pageToken string) *InventoryItemsList return c } -// SiteId sets the optional parameter "siteId": Select only inventory -// items that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only inventory items +// that are associated with these sites. func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall { var siteId_ []string for _, v := range siteId { @@ -35171,8 +25838,8 @@ func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -35183,8 +25850,7 @@ func (c *InventoryItemsListCall) SortField(sortField string) *InventoryItemsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -35195,8 +25861,8 @@ func (c *InventoryItemsListCall) SortOrder(sortOrder string) *InventoryItemsList return c } -// Type sets the optional parameter "type": Select only inventory items -// with this type. +// Type sets the optional parameter "type": Select only inventory items with +// this type. // // Possible values: // @@ -35208,33 +25874,29 @@ func (c *InventoryItemsListCall) Type(type_ string) *InventoryItemsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsListCall) Fields(s ...googleapi.Field) *InventoryItemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsListCall) IfNoneMatch(entityTag string) *InventoryItemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsListCall) Context(ctx context.Context) *InventoryItemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35243,12 +25905,7 @@ func (c *InventoryItemsListCall) Header() http.Header { } func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35266,16 +25923,15 @@ func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.list" call. -// Exactly one of *InventoryItemsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *InventoryItemsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *InventoryItemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryItemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35283,17 +25939,17 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35306,120 +25962,6 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte return nil, err } return ret, nil - // { - // "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only inventory items with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "inPlan": { - // "description": "Select only inventory items that are in plan.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only inventory items that belong to specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "siteId": { - // "description": "Select only inventory items that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only inventory items with this type.", - // "enum": [ - // "PLANNING_PLACEMENT_TYPE_CREDIT", - // "PLANNING_PLACEMENT_TYPE_REGULAR" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - // "response": { - // "$ref": "InventoryItemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -35427,7 +25969,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // The provided context supersedes any context provided to the Context method. func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryItemsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -35443,8 +25985,6 @@ func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryIte } } -// method id "dfareporting.languages.list": - type LanguagesListCall struct { s *Service profileId int64 @@ -35455,6 +25995,8 @@ type LanguagesListCall struct { } // List: Retrieves a list of languages. +// +// - profileId: User profile ID associated with this request. func (r *LanguagesService) List(profileId int64) *LanguagesListCall { c := &LanguagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35462,33 +26004,29 @@ func (r *LanguagesService) List(profileId int64) *LanguagesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LanguagesListCall) Fields(s ...googleapi.Field) *LanguagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LanguagesListCall) IfNoneMatch(entityTag string) *LanguagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LanguagesListCall) Context(ctx context.Context) *LanguagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LanguagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35497,12 +26035,7 @@ func (c *LanguagesListCall) Header() http.Header { } func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35519,16 +26052,15 @@ func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.languages.list" call. -// Exactly one of *LanguagesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *LanguagesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LanguagesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35536,17 +26068,17 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LanguagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35559,34 +26091,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of languages.", - // "httpMethod": "GET", - // "id": "dfareporting.languages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/languages", - // "response": { - // "$ref": "LanguagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.metros.list": +} type MetrosListCall struct { s *Service @@ -35598,6 +26103,8 @@ type MetrosListCall struct { } // List: Retrieves a list of metros. +// +// - profileId: User profile ID associated with this request. func (r *MetrosService) List(profileId int64) *MetrosListCall { c := &MetrosListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35605,33 +26112,29 @@ func (r *MetrosService) List(profileId int64) *MetrosListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetrosListCall) Fields(s ...googleapi.Field) *MetrosListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetrosListCall) IfNoneMatch(entityTag string) *MetrosListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetrosListCall) Context(ctx context.Context) *MetrosListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetrosListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35640,12 +26143,7 @@ func (c *MetrosListCall) Header() http.Header { } func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35662,16 +26160,15 @@ func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.metros.list" call. -// Exactly one of *MetrosListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MetrosListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MetrosListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35679,17 +26176,17 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MetrosListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35702,34 +26199,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of metros.", - // "httpMethod": "GET", - // "id": "dfareporting.metros.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/metros", - // "response": { - // "$ref": "MetrosListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileCarriers.get": +} type MobileCarriersGetCall struct { s *Service @@ -35742,6 +26212,9 @@ type MobileCarriersGetCall struct { } // Get: Gets one mobile carrier by ID. +// +// - id: Mobile carrier ID. +// - profileId: User profile ID associated with this request. func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGetCall { c := &MobileCarriersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35750,33 +26223,29 @@ func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersGetCall) Fields(s ...googleapi.Field) *MobileCarriersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersGetCall) IfNoneMatch(entityTag string) *MobileCarriersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersGetCall) Context(ctx context.Context) *MobileCarriersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35785,12 +26254,7 @@ func (c *MobileCarriersGetCall) Header() http.Header { } func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35808,16 +26272,14 @@ func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.get" call. -// Exactly one of *MobileCarrier or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileCarrier.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileCarrier.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35825,17 +26287,17 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarrier{ ServerResponse: googleapi.ServerResponse{ @@ -35848,42 +26310,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier return nil, err } return ret, nil - // { - // "description": "Gets one mobile carrier by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile carrier ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers/{id}", - // "response": { - // "$ref": "MobileCarrier" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileCarriers.list": +} type MobileCarriersListCall struct { s *Service @@ -35895,6 +26322,8 @@ type MobileCarriersListCall struct { } // List: Retrieves a list of mobile carriers. +// +// - profileId: User profile ID associated with this request. func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { c := &MobileCarriersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35902,33 +26331,29 @@ func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersListCall) Fields(s ...googleapi.Field) *MobileCarriersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersListCall) IfNoneMatch(entityTag string) *MobileCarriersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersListCall) Context(ctx context.Context) *MobileCarriersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35937,12 +26362,7 @@ func (c *MobileCarriersListCall) Header() http.Header { } func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35959,16 +26379,15 @@ func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.list" call. -// Exactly one of *MobileCarriersListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *MobileCarriersListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *MobileCarriersListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarriersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35976,17 +26395,17 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarriersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35999,34 +26418,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie return nil, err } return ret, nil - // { - // "description": "Retrieves a list of mobile carriers.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers", - // "response": { - // "$ref": "MobileCarriersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.get": +} type OperatingSystemVersionsGetCall struct { s *Service @@ -36039,6 +26431,9 @@ type OperatingSystemVersionsGetCall struct { } // Get: Gets one operating system version by ID. +// +// - id: Operating system version ID. +// - profileId: User profile ID associated with this request. func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *OperatingSystemVersionsGetCall { c := &OperatingSystemVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36047,33 +26442,29 @@ func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *Operati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsGetCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsGetCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsGetCall) Context(ctx context.Context) *OperatingSystemVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36082,12 +26473,7 @@ func (c *OperatingSystemVersionsGetCall) Header() http.Header { } func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36105,16 +26491,15 @@ func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.get" call. -// Exactly one of *OperatingSystemVersion or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OperatingSystemVersion.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersion.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36122,17 +26507,17 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersion{ ServerResponse: googleapi.ServerResponse{ @@ -36145,42 +26530,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper return nil, err } return ret, nil - // { - // "description": "Gets one operating system version by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Operating system version ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", - // "response": { - // "$ref": "OperatingSystemVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.list": +} type OperatingSystemVersionsListCall struct { s *Service @@ -36192,6 +26542,8 @@ type OperatingSystemVersionsListCall struct { } // List: Retrieves a list of operating system versions. +// +// - profileId: User profile ID associated with this request. func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemVersionsListCall { c := &OperatingSystemVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36199,33 +26551,29 @@ func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemV } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsListCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsListCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsListCall) Context(ctx context.Context) *OperatingSystemVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36234,12 +26582,7 @@ func (c *OperatingSystemVersionsListCall) Header() http.Header { } func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36256,17 +26599,15 @@ func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.list" call. -// Exactly one of *OperatingSystemVersionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemVersionsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersionsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36274,17 +26615,17 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36297,34 +26638,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating system versions.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions", - // "response": { - // "$ref": "OperatingSystemVersionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.get": +} type OperatingSystemsGetCall struct { s *Service @@ -36337,6 +26651,9 @@ type OperatingSystemsGetCall struct { } // Get: Gets one operating system by DART ID. +// +// - dartId: Operating system DART ID. +// - profileId: User profile ID associated with this request. func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingSystemsGetCall { c := &OperatingSystemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36345,33 +26662,29 @@ func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingS } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsGetCall) Fields(s ...googleapi.Field) *OperatingSystemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsGetCall) IfNoneMatch(entityTag string) *OperatingSystemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsGetCall) Context(ctx context.Context) *OperatingSystemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36380,12 +26693,7 @@ func (c *OperatingSystemsGetCall) Header() http.Header { } func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36403,16 +26711,15 @@ func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.get" call. -// Exactly one of *OperatingSystem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OperatingSystem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystem.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36420,17 +26727,17 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystem{ ServerResponse: googleapi.ServerResponse{ @@ -36443,42 +26750,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy return nil, err } return ret, nil - // { - // "description": "Gets one operating system by DART ID.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Operating system DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems/{dartId}", - // "response": { - // "$ref": "OperatingSystem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.list": +} type OperatingSystemsListCall struct { s *Service @@ -36490,6 +26762,8 @@ type OperatingSystemsListCall struct { } // List: Retrieves a list of operating systems. +// +// - profileId: User profile ID associated with this request. func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCall { c := &OperatingSystemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36497,33 +26771,29 @@ func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsListCall) Fields(s ...googleapi.Field) *OperatingSystemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsListCall) IfNoneMatch(entityTag string) *OperatingSystemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsListCall) Context(ctx context.Context) *OperatingSystemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36532,12 +26802,7 @@ func (c *OperatingSystemsListCall) Header() http.Header { } func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36554,16 +26819,15 @@ func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.list" call. -// Exactly one of *OperatingSystemsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36571,17 +26835,17 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36594,34 +26858,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating systems.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems", - // "response": { - // "$ref": "OperatingSystemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.get": +} type OrderDocumentsGetCall struct { s *Service @@ -36635,6 +26872,10 @@ type OrderDocumentsGetCall struct { } // Get: Gets one order document by ID. +// +// - id: Order document ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) *OrderDocumentsGetCall { c := &OrderDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36644,33 +26885,29 @@ func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsGetCall) Context(ctx context.Context) *OrderDocumentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36679,12 +26916,7 @@ func (c *OrderDocumentsGetCall) Header() http.Header { } func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36703,16 +26935,14 @@ func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.get" call. -// Exactly one of *OrderDocument or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OrderDocument.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderDocument.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36720,17 +26950,17 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocument{ ServerResponse: googleapi.ServerResponse{ @@ -36743,50 +26973,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument return nil, err } return ret, nil - // { - // "description": "Gets one order document by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order document ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - // "response": { - // "$ref": "OrderDocument" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.list": +} type OrderDocumentsListCall struct { s *Service @@ -36798,8 +26985,11 @@ type OrderDocumentsListCall struct { header_ http.Header } -// List: Retrieves a list of order documents, possibly filtered. This -// method supports paging. +// List: Retrieves a list of order documents, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDocumentsListCall { c := &OrderDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36807,15 +26997,15 @@ func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDoc return c } -// Approved sets the optional parameter "approved": Select only order -// documents that have been approved by at least one user. +// Approved sets the optional parameter "approved": Select only order documents +// that have been approved by at least one user. func (c *OrderDocumentsListCall) Approved(approved bool) *OrderDocumentsListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// Ids sets the optional parameter "ids": Select only order documents -// with these IDs. +// Ids sets the optional parameter "ids": Select only order documents with +// these IDs. func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { var ids_ []string for _, v := range ids { @@ -36825,15 +27015,15 @@ func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrderDocumentsListCall) MaxResults(maxResults int64) *OrderDocumentsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only order -// documents for specified orders. +// OrderId sets the optional parameter "orderId": Select only order documents +// for specified orders. func (c *OrderDocumentsListCall) OrderId(orderId ...int64) *OrderDocumentsListCall { var orderId_ []string for _, v := range orderId { @@ -36850,22 +27040,21 @@ func (c *OrderDocumentsListCall) PageToken(pageToken string) *OrderDocumentsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for order documents by name or ID. Wildcards (*) are -// allowed. For example, "orderdocument*2015" will return order -// documents with names like "orderdocument June 2015", "orderdocument -// April 2015", or simply "orderdocument 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "orderdocument" will match -// order documents with name "my orderdocument", "orderdocument 2015", -// or simply "orderdocument". +// SearchString sets the optional parameter "searchString": Allows searching +// for order documents by name or ID. Wildcards (*) are allowed. For example, +// "orderdocument*2015" will return order documents with names like +// "orderdocument June 2015", "orderdocument April 2015", or simply +// "orderdocument 2015". Most of the searches also add wildcards implicitly at +// the start and the end of the search string. For example, a search string of +// "orderdocument" will match order documents with name "my orderdocument", +// "orderdocument 2015", or simply "orderdocument". func (c *OrderDocumentsListCall) SearchString(searchString string) *OrderDocumentsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only order -// documents that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only order documents +// that are associated with these sites. func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall { var siteId_ []string for _, v := range siteId { @@ -36875,8 +27064,8 @@ func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -36887,8 +27076,7 @@ func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -36900,33 +27088,29 @@ func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsListCall) Context(ctx context.Context) *OrderDocumentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36935,12 +27119,7 @@ func (c *OrderDocumentsListCall) Header() http.Header { } func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36958,16 +27137,15 @@ func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.list" call. -// Exactly one of *OrderDocumentsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrderDocumentsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrderDocumentsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumentsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36975,17 +27153,17 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocumentsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36998,112 +27176,6 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen return nil, err } return ret, nil - // { - // "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "approved": { - // "description": "Select only order documents that have been approved by at least one user.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only order documents with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only order documents for specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for order documents by name or ID. Wildcards (*) are allowed. For example, \"orderdocument*2015\" will return order documents with names like \"orderdocument June 2015\", \"orderdocument April 2015\", or simply \"orderdocument 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"orderdocument\" will match order documents with name \"my orderdocument\", \"orderdocument 2015\", or simply \"orderdocument\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only order documents that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "response": { - // "$ref": "OrderDocumentsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -37111,7 +27183,7 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen // The provided context supersedes any context provided to the Context method. func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumentsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -37127,8 +27199,6 @@ func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumen } } -// method id "dfareporting.orders.get": - type OrdersGetCall struct { s *Service profileId int64 @@ -37141,6 +27211,10 @@ type OrdersGetCall struct { } // Get: Gets one order by ID. +// +// - id: Order ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for orders. func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersGetCall { c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37150,33 +27224,29 @@ func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37185,12 +27255,7 @@ func (c *OrdersGetCall) Header() http.Header { } func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37209,16 +27274,14 @@ func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Order.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37226,17 +27289,17 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Order{ ServerResponse: googleapi.ServerResponse{ @@ -37249,50 +27312,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return nil, err } return ret, nil - // { - // "description": "Gets one order by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.orders.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orders.list": +} type OrdersListCall struct { s *Service @@ -37304,8 +27324,11 @@ type OrdersListCall struct { header_ http.Header } -// List: Retrieves a list of orders, possibly filtered. This method -// supports paging. +// List: Retrieves a list of orders, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for orders. func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37313,8 +27336,7 @@ func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { return c } -// Ids sets the optional parameter "ids": Select only orders with these -// IDs. +// Ids sets the optional parameter "ids": Select only orders with these IDs. func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { var ids_ []string for _, v := range ids { @@ -37324,8 +27346,8 @@ func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -37338,20 +27360,20 @@ func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for orders by name or ID. Wildcards (*) are allowed. For -// example, "order*2015" will return orders with names like "order June -// 2015", "order April 2015", or simply "order 2015". Most of the -// searches also add wildcards implicitly at the start and the end of -// the search string. For example, a search string of "order" will match -// orders with name "my order", "order 2015", or simply "order". +// SearchString sets the optional parameter "searchString": Allows searching +// for orders by name or ID. Wildcards (*) are allowed. For example, +// "order*2015" will return orders with names like "order June 2015", "order +// April 2015", or simply "order 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "order" will match orders with name "my order", "order +// 2015", or simply "order". func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only orders that -// are associated with these site IDs. +// SiteId sets the optional parameter "siteId": Select only orders that are +// associated with these site IDs. func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { var siteId_ []string for _, v := range siteId { @@ -37361,8 +27383,8 @@ func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -37373,8 +27395,7 @@ func (c *OrdersListCall) SortField(sortField string) *OrdersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -37386,33 +27407,29 @@ func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37421,12 +27438,7 @@ func (c *OrdersListCall) Header() http.Header { } func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37444,16 +27456,15 @@ func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.list" call. -// Exactly one of *OrdersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37461,17 +27472,17 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37484,100 +27495,6 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.orders.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only orders with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, \"order*2015\" will return orders with names like \"order June 2015\", \"order April 2015\", or simply \"order 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"order\" will match orders with name \"my order\", \"order 2015\", or simply \"order\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only orders that are associated with these site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders", - // "response": { - // "$ref": "OrdersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -37585,7 +27502,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // The provided context supersedes any context provided to the Context method. func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -37601,8 +27518,6 @@ func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) } } -// method id "dfareporting.placementGroups.get": - type PlacementGroupsGetCall struct { s *Service profileId int64 @@ -37614,6 +27529,9 @@ type PlacementGroupsGetCall struct { } // Get: Gets one placement group by ID. +// +// - id: Placement group ID. +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroupsGetCall { c := &PlacementGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37622,33 +27540,29 @@ func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsGetCall) Fields(s ...googleapi.Field) *PlacementGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsGetCall) IfNoneMatch(entityTag string) *PlacementGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsGetCall) Context(ctx context.Context) *PlacementGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37657,12 +27571,7 @@ func (c *PlacementGroupsGetCall) Header() http.Header { } func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37680,16 +27589,14 @@ func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.get" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37697,17 +27604,17 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -37720,42 +27627,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro return nil, err } return ret, nil - // { - // "description": "Gets one placement group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups/{id}", - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.insert": +} type PlacementGroupsInsertCall struct { s *Service @@ -37767,6 +27639,8 @@ type PlacementGroupsInsertCall struct { } // Insert: Inserts a new placement group. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsInsertCall { c := &PlacementGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37775,23 +27649,21 @@ func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsInsertCall) Fields(s ...googleapi.Field) *PlacementGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsInsertCall) Context(ctx context.Context) *PlacementGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37800,18 +27672,12 @@ func (c *PlacementGroupsInsertCall) Header() http.Header { } func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -37824,16 +27690,14 @@ func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.insert" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37841,17 +27705,17 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -37864,37 +27728,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Inserts a new placement group.", - // "httpMethod": "POST", - // "id": "dfareporting.placementGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.list": +} type PlacementGroupsListCall struct { s *Service @@ -37905,16 +27739,18 @@ type PlacementGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of placement groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of placement groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall { c := &PlacementGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placement groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placement groups that belong to these advertisers. func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -37925,15 +27761,15 @@ func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Placeme } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementGroupsListCall) Archived(archived bool) *PlacementGroupsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// placement groups that belong to these campaigns. +// CampaignIds sets the optional parameter "campaignIds": Select only placement +// groups that belong to these campaigns. func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGroupsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -37943,9 +27779,8 @@ func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGr return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placement groups that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placement groups that are associated with these content categories. func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementGroupsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -37955,9 +27790,8 @@ func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64 return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placement groups that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placement groups that are associated with these directory sites. func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementGroupsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -37967,8 +27801,8 @@ func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *P return c } -// Ids sets the optional parameter "ids": Select only placement groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only placement groups with +// these IDs. func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { var ids_ []string for _, v := range ids { @@ -37978,16 +27812,16 @@ func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MaxEndDate(maxEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementGroupsListCall) MaxResults(maxResults int64) *PlacementGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -38001,17 +27835,17 @@ func (c *PlacementGroupsListCall) MaxStartDate(maxStartDate string) *PlacementGr return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinEndDate(minEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinStartDate(minStartDate string) *PlacementGroupsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -38024,13 +27858,13 @@ func (c *PlacementGroupsListCall) PageToken(pageToken string) *PlacementGroupsLi return c } -// PlacementGroupType sets the optional parameter "placementGroupType": -// Select only placement groups belonging with this group type. A -// package is a simple group of placements that acts as a single pricing -// point for a group of tags. A roadblock is a group of placements that -// not only acts as a single pricing point but also assumes that all the -// tags in it will be served at the same time. A roadblock requires one -// of its assigned placements to be marked as primary for reporting. +// PlacementGroupType sets the optional parameter "placementGroupType": Select +// only placement groups belonging with this group type. A package is a simple +// group of placements that acts as a single pricing point for a group of tags. +// A roadblock is a group of placements that not only acts as a single pricing +// point but also assumes that all the tags in it will be served at the same +// time. A roadblock requires one of its assigned placements to be marked as +// primary for reporting. // // Possible values: // @@ -38041,9 +27875,9 @@ func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placement groups that are -// associated with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placement groups that are associated with these placement +// strategies. func (c *PlacementGroupsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementGroupsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -38069,22 +27903,21 @@ func (c *PlacementGroupsListCall) PricingTypes(pricingTypes ...string) *Placemen return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placement groups by name or ID. Wildcards (*) are -// allowed. For example, "placement*2015" will return placement groups -// with names like "placement group June 2015", "placement group May -// 2015", or simply "placements 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementgroup" will match placement -// groups with name "my placementgroup", "placementgroup 2015", or -// simply "placementgroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for placement groups by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placement groups with names like "placement +// group June 2015", "placement group May 2015", or simply "placements 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "placementgroup" will +// match placement groups with name "my placementgroup", "placementgroup 2015", +// or simply "placementgroup". func (c *PlacementGroupsListCall) SearchString(searchString string) *PlacementGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placement -// groups that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placement groups +// that are associated with these sites. func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsListCall { var siteIds_ []string for _, v := range siteIds { @@ -38094,8 +27927,8 @@ func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsList return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -38106,8 +27939,7 @@ func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsLi return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -38119,33 +27951,29 @@ func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsLi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsListCall) Fields(s ...googleapi.Field) *PlacementGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsListCall) IfNoneMatch(entityTag string) *PlacementGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsListCall) Context(ctx context.Context) *PlacementGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38154,12 +27982,7 @@ func (c *PlacementGroupsListCall) Header() http.Header { } func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38176,16 +27999,15 @@ func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.list" call. -// Exactly one of *PlacementGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlacementGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlacementGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38193,17 +28015,17 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -38216,187 +28038,6 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placement groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placement groups that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placement groups that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placement groups that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placement groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "800", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "800", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementGroupType": { - // "description": "Select only placement groups belonging with this group type. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting.", - // "enum": [ - // "PLACEMENT_PACKAGE", - // "PLACEMENT_ROADBLOCK" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placement groups that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placement groups with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPM_ACTIVEVIEW", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placement groups with names like \"placement group June 2015\", \"placement group May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementgroup\" will match placement groups with name \"my placementgroup\", \"placementgroup 2015\", or simply \"placementgroup\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placement groups that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "response": { - // "$ref": "PlacementGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -38404,7 +28045,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // The provided context supersedes any context provided to the Context method. func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -38420,8 +28061,6 @@ func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGr } } -// method id "dfareporting.placementGroups.patch": - type PlacementGroupsPatchCall struct { s *Service profileId int64 @@ -38431,8 +28070,11 @@ type PlacementGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement group. This method supports -// patch semantics. +// Patch: Updates an existing placement group. This method supports patch +// semantics. +// +// - id: Placement group ID. +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup *PlacementGroup) *PlacementGroupsPatchCall { c := &PlacementGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38442,23 +28084,21 @@ func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsPatchCall) Fields(s ...googleapi.Field) *PlacementGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsPatchCall) Context(ctx context.Context) *PlacementGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38467,18 +28107,12 @@ func (c *PlacementGroupsPatchCall) Header() http.Header { } func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -38491,16 +28125,14 @@ func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.patch" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38508,17 +28140,17 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38531,45 +28163,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.update": +} type PlacementGroupsUpdateCall struct { s *Service @@ -38581,6 +28175,8 @@ type PlacementGroupsUpdateCall struct { } // Update: Updates an existing placement group. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Update(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsUpdateCall { c := &PlacementGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38589,23 +28185,21 @@ func (r *PlacementGroupsService) Update(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsUpdateCall) Fields(s ...googleapi.Field) *PlacementGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsUpdateCall) Context(ctx context.Context) *PlacementGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38614,18 +28208,12 @@ func (c *PlacementGroupsUpdateCall) Header() http.Header { } func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -38638,16 +28226,14 @@ func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.update" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38655,17 +28241,17 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38678,37 +28264,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group.", - // "httpMethod": "PUT", - // "id": "dfareporting.placementGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.delete": +} type PlacementStrategiesDeleteCall struct { s *Service @@ -38720,6 +28276,9 @@ type PlacementStrategiesDeleteCall struct { } // Delete: Deletes an existing placement strategy. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *PlacementStrategiesDeleteCall { c := &PlacementStrategiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38728,23 +28287,21 @@ func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesDeleteCall) Fields(s ...googleapi.Field) *PlacementStrategiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesDeleteCall) Context(ctx context.Context) *PlacementStrategiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38753,12 +28310,7 @@ func (c *PlacementStrategiesDeleteCall) Header() http.Header { } func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -38773,7 +28325,7 @@ func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.delete" call. @@ -38785,42 +28337,10 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing placement strategy.", - // "httpMethod": "DELETE", - // "id": "dfareporting.placementStrategies.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.get": +} type PlacementStrategiesGetCall struct { s *Service @@ -38833,6 +28353,9 @@ type PlacementStrategiesGetCall struct { } // Get: Gets one placement strategy by ID. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementStrategiesGetCall { c := &PlacementStrategiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38841,33 +28364,29 @@ func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementSt } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesGetCall) Fields(s ...googleapi.Field) *PlacementStrategiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesGetCall) IfNoneMatch(entityTag string) *PlacementStrategiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesGetCall) Context(ctx context.Context) *PlacementStrategiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38876,12 +28395,7 @@ func (c *PlacementStrategiesGetCall) Header() http.Header { } func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38899,16 +28413,15 @@ func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.get" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38916,17 +28429,17 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -38939,42 +28452,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Gets one placement strategy by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.insert": +} type PlacementStrategiesInsertCall struct { s *Service @@ -38986,6 +28464,8 @@ type PlacementStrategiesInsertCall struct { } // Insert: Inserts a new placement strategy. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesInsertCall { c := &PlacementStrategiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38994,23 +28474,21 @@ func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesInsertCall) Fields(s ...googleapi.Field) *PlacementStrategiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesInsertCall) Context(ctx context.Context) *PlacementStrategiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39019,18 +28497,12 @@ func (c *PlacementStrategiesInsertCall) Header() http.Header { } func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -39043,16 +28515,15 @@ func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.insert" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39060,17 +28531,17 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39083,37 +28554,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Inserts a new placement strategy.", - // "httpMethod": "POST", - // "id": "dfareporting.placementStrategies.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.list": +} type PlacementStrategiesListCall struct { s *Service @@ -39124,16 +28565,18 @@ type PlacementStrategiesListCall struct { header_ http.Header } -// List: Retrieves a list of placement strategies, possibly filtered. -// This method supports paging. +// List: Retrieves a list of placement strategies, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesListCall { c := &PlacementStrategiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only placement -// strategies with these IDs. +// Ids sets the optional parameter "ids": Select only placement strategies with +// these IDs. func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesListCall { var ids_ []string for _, v := range ids { @@ -39143,8 +28586,8 @@ func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementStrategiesListCall) MaxResults(maxResults int64) *PlacementStrategiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -39157,22 +28600,21 @@ func (c *PlacementStrategiesListCall) PageToken(pageToken string) *PlacementStra return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "placementstrategy*2015" will return objects with names like -// "placementstrategy June 2015", "placementstrategy April 2015", or -// simply "placementstrategy 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementstrategy" will match -// objects with name "my placementstrategy", "placementstrategy 2015", -// or simply "placementstrategy". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "placementstrategy*2015" will return objects with names like +// "placementstrategy June 2015", "placementstrategy April 2015", or simply +// "placementstrategy 2015". Most of the searches also add wildcards implicitly +// at the start and the end of the search string. For example, a search string +// of "placementstrategy" will match objects with name "my placementstrategy", +// "placementstrategy 2015", or simply "placementstrategy". func (c *PlacementStrategiesListCall) SearchString(searchString string) *PlacementStrategiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -39183,8 +28625,7 @@ func (c *PlacementStrategiesListCall) SortField(sortField string) *PlacementStra return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -39196,33 +28637,29 @@ func (c *PlacementStrategiesListCall) SortOrder(sortOrder string) *PlacementStra } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesListCall) Fields(s ...googleapi.Field) *PlacementStrategiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesListCall) IfNoneMatch(entityTag string) *PlacementStrategiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesListCall) Context(ctx context.Context) *PlacementStrategiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39231,12 +28668,7 @@ func (c *PlacementStrategiesListCall) Header() http.Header { } func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39253,16 +28685,15 @@ func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.list" call. -// Exactly one of *PlacementStrategiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementStrategiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategiesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*PlacementStrategiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39270,17 +28701,17 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -39293,85 +28724,6 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only placement strategies with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"placementstrategy*2015\" will return objects with names like \"placementstrategy June 2015\", \"placementstrategy April 2015\", or simply \"placementstrategy 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementstrategy\" will match objects with name \"my placementstrategy\", \"placementstrategy 2015\", or simply \"placementstrategy\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "response": { - // "$ref": "PlacementStrategiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -39379,7 +28731,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // The provided context supersedes any context provided to the Context method. func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*PlacementStrategiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -39395,8 +28747,6 @@ func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*Placeme } } -// method id "dfareporting.placementStrategies.patch": - type PlacementStrategiesPatchCall struct { s *Service profileId int64 @@ -39406,8 +28756,11 @@ type PlacementStrategiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement strategy. This method supports -// patch semantics. +// Patch: Updates an existing placement strategy. This method supports patch +// semantics. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placementstrategy *PlacementStrategy) *PlacementStrategiesPatchCall { c := &PlacementStrategiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39417,23 +28770,21 @@ func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placements } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesPatchCall) Fields(s ...googleapi.Field) *PlacementStrategiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesPatchCall) Context(ctx context.Context) *PlacementStrategiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39442,18 +28793,12 @@ func (c *PlacementStrategiesPatchCall) Header() http.Header { } func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -39466,16 +28811,15 @@ func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.patch" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39483,17 +28827,17 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39506,45 +28850,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementStrategies.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.update": +} type PlacementStrategiesUpdateCall struct { s *Service @@ -39556,6 +28862,8 @@ type PlacementStrategiesUpdateCall struct { } // Update: Updates an existing placement strategy. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesUpdateCall { c := &PlacementStrategiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39564,23 +28872,21 @@ func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesUpdateCall) Fields(s ...googleapi.Field) *PlacementStrategiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesUpdateCall) Context(ctx context.Context) *PlacementStrategiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39589,18 +28895,12 @@ func (c *PlacementStrategiesUpdateCall) Header() http.Header { } func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -39613,16 +28913,15 @@ func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.update" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39630,17 +28929,17 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39653,37 +28952,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy.", - // "httpMethod": "PUT", - // "id": "dfareporting.placementStrategies.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.generatetags": +} type PlacementsGeneratetagsCall struct { s *Service @@ -39694,21 +28963,23 @@ type PlacementsGeneratetagsCall struct { } // Generatetags: Generates tags for a placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Generatetags(profileId int64) *PlacementsGeneratetagsCall { c := &PlacementsGeneratetagsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// CampaignId sets the optional parameter "campaignId": Generate -// placements belonging to this campaign. This is a required field. +// CampaignId sets the optional parameter "campaignId": Generate placements +// belonging to this campaign. This is a required field. func (c *PlacementsGeneratetagsCall) CampaignId(campaignId int64) *PlacementsGeneratetagsCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// PlacementIds sets the optional parameter "placementIds": Generate -// tags for these placements. +// PlacementIds sets the optional parameter "placementIds": Generate tags for +// these placements. func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *PlacementsGeneratetagsCall { var placementIds_ []string for _, v := range placementIds { @@ -39718,11 +28989,10 @@ func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *Placem return c } -// TagFormats sets the optional parameter "tagFormats": Tag formats to -// generate for these placements. +// TagFormats sets the optional parameter "tagFormats": Tag formats to generate +// for these placements. // -// Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 -// placements. +// Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements. // // Possible values: // @@ -39751,23 +29021,21 @@ func (c *PlacementsGeneratetagsCall) TagFormats(tagFormats ...string) *Placement } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGeneratetagsCall) Fields(s ...googleapi.Field) *PlacementsGeneratetagsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGeneratetagsCall) Context(ctx context.Context) *PlacementsGeneratetagsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGeneratetagsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39776,12 +29044,7 @@ func (c *PlacementsGeneratetagsCall) Header() http.Header { } func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -39795,16 +29058,15 @@ func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.generatetags" call. -// Exactly one of *PlacementsGenerateTagsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*PlacementsGenerateTagsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39812,17 +29074,17 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsGenerateTagsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -39835,95 +29097,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Generates tags for a placement.", - // "httpMethod": "POST", - // "id": "dfareporting.placements.generatetags", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Generate placements belonging to this campaign. This is a required field.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Generate tags for these placements.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tagFormats": { - // "description": "Tag formats to generate for these placements.\n\nNote: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.", - // "enum": [ - // "PLACEMENT_TAG_CLICK_COMMANDS", - // "PLACEMENT_TAG_IFRAME_ILAYER", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4", - // "PLACEMENT_TAG_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_JAVASCRIPT", - // "PLACEMENT_TAG_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_STANDARD", - // "PLACEMENT_TAG_TRACKING", - // "PLACEMENT_TAG_TRACKING_IFRAME", - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/generatetags", - // "response": { - // "$ref": "PlacementsGenerateTagsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.get": +} type PlacementsGetCall struct { s *Service @@ -39936,6 +29110,9 @@ type PlacementsGetCall struct { } // Get: Gets one placement by ID. +// +// - id: Placement ID. +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { c := &PlacementsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39944,33 +29121,29 @@ func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGetCall) Fields(s ...googleapi.Field) *PlacementsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsGetCall) IfNoneMatch(entityTag string) *PlacementsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGetCall) Context(ctx context.Context) *PlacementsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39979,12 +29152,7 @@ func (c *PlacementsGetCall) Header() http.Header { } func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40002,16 +29170,14 @@ func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.get" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40019,17 +29185,17 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40042,42 +29208,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) return nil, err } return ret, nil - // { - // "description": "Gets one placement by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placements.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/{id}", - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.insert": +} type PlacementsInsertCall struct { s *Service @@ -40089,6 +29220,8 @@ type PlacementsInsertCall struct { } // Insert: Inserts a new placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Insert(profileId int64, placement *Placement) *PlacementsInsertCall { c := &PlacementsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40097,23 +29230,21 @@ func (r *PlacementsService) Insert(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsInsertCall) Fields(s ...googleapi.Field) *PlacementsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsInsertCall) Context(ctx context.Context) *PlacementsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40122,18 +29253,12 @@ func (c *PlacementsInsertCall) Header() http.Header { } func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -40146,16 +29271,14 @@ func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.insert" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40163,17 +29286,17 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40186,37 +29309,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Inserts a new placement.", - // "httpMethod": "POST", - // "id": "dfareporting.placements.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.list": +} type PlacementsListCall struct { s *Service @@ -40229,14 +29322,16 @@ type PlacementsListCall struct { // List: Retrieves a list of placements, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) List(profileId int64) *PlacementsListCall { c := &PlacementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placements that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placements that belong to these advertisers. func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -40247,8 +29342,8 @@ func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsLi } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementsListCall) Archived(archived bool) *PlacementsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c @@ -40265,13 +29360,12 @@ func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCa return c } -// Compatibilities sets the optional parameter "compatibilities": Select -// only placements that are associated with these compatibilities. -// DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop -// or on mobile devices for regular or interstitial ads respectively. -// APP and APP_INTERSTITIAL are for rendering in mobile apps. -// IN_STREAM_VIDEO refers to rendering in in-stream video ads developed -// with the VAST standard. +// Compatibilities sets the optional parameter "compatibilities": Select only +// placements that are associated with these compatibilities. DISPLAY and +// DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile +// devices for regular or interstitial ads respectively. APP and +// APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to +// rendering in in-stream video ads developed with the VAST standard. // // Possible values: // @@ -40286,9 +29380,8 @@ func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *Placeme return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placements that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placements that are associated with these content categories. func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -40298,9 +29391,8 @@ func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *Pl return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placements that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placements that are associated with these directory sites. func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -40310,8 +29402,8 @@ func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *Placem return c } -// GroupIds sets the optional parameter "groupIds": Select only -// placements that belong to these placement groups. +// GroupIds sets the optional parameter "groupIds": Select only placements that +// belong to these placement groups. func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { var groupIds_ []string for _, v := range groupIds { @@ -40321,8 +29413,8 @@ func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { return c } -// Ids sets the optional parameter "ids": Select only placements with -// these IDs. +// Ids sets the optional parameter "ids": Select only placements with these +// IDs. func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { var ids_ []string for _, v := range ids { @@ -40332,16 +29424,16 @@ func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MaxEndDate(maxEndDate string) *PlacementsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementsListCall) MaxResults(maxResults int64) *PlacementsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -40355,17 +29447,17 @@ func (c *PlacementsListCall) MaxStartDate(maxStartDate string) *PlacementsListCa return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinEndDate(minEndDate string) *PlacementsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinStartDate(minStartDate string) *PlacementsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -40378,8 +29470,8 @@ func (c *PlacementsListCall) PageToken(pageToken string) *PlacementsListCall { return c } -// PaymentSource sets the optional parameter "paymentSource": Select -// only placements with this payment source. +// PaymentSource sets the optional parameter "paymentSource": Select only +// placements with this payment source. // // Possible values: // @@ -40390,9 +29482,8 @@ func (c *PlacementsListCall) PaymentSource(paymentSource string) *PlacementsList return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placements that are associated -// with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placements that are associated with these placement strategies. func (c *PlacementsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -40418,21 +29509,21 @@ func (c *PlacementsListCall) PricingTypes(pricingTypes ...string) *PlacementsLis return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placements by name or ID. Wildcards (*) are allowed. -// For example, "placement*2015" will return placements with names like -// "placement June 2015", "placement May 2015", or simply "placements -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "placement" will match placements with name "my placement", -// "placement 2015", or simply "placement". +// SearchString sets the optional parameter "searchString": Allows searching +// for placements by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placements with names like "placement June +// 2015", "placement May 2015", or simply "placements 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "placement" will match +// placements with name "my placement", "placement 2015", or simply +// "placement". func (c *PlacementsListCall) SearchString(searchString string) *PlacementsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placements -// that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placements that +// are associated with these sites. func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { var siteIds_ []string for _, v := range siteIds { @@ -40442,8 +29533,8 @@ func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { return c } -// SizeIds sets the optional parameter "sizeIds": Select only placements -// that are associated with these sizes. +// SizeIds sets the optional parameter "sizeIds": Select only placements that +// are associated with these sizes. func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -40453,8 +29544,8 @@ func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -40465,8 +29556,7 @@ func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -40478,33 +29568,29 @@ func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsListCall) Fields(s ...googleapi.Field) *PlacementsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsListCall) IfNoneMatch(entityTag string) *PlacementsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsListCall) Context(ctx context.Context) *PlacementsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40513,12 +29599,7 @@ func (c *PlacementsListCall) Header() http.Header { } func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40535,16 +29616,15 @@ func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.list" call. -// Exactly one of *PlacementsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40552,17 +29632,17 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -40575,223 +29655,6 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placements.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placements that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placements that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibilities": { - // "description": "Select only placements that are associated with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.", - // "enum": [ - // "APP", - // "APP_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "IN_STREAM_AUDIO", - // "IN_STREAM_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placements that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placements that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupIds": { - // "description": "Select only placements that belong to these placement groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placements with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "paymentSource": { - // "description": "Select only placements with this payment source.", - // "enum": [ - // "PLACEMENT_AGENCY_PAID", - // "PLACEMENT_PUBLISHER_PAID" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placements that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placements with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPM_ACTIVEVIEW", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placements with names like \"placement June 2015\", \"placement May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placement\" will match placements with name \"my placement\", \"placement 2015\", or simply \"placement\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placements that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only placements that are associated with these sizes.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "response": { - // "$ref": "PlacementsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -40799,7 +29662,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // The provided context supersedes any context provided to the Context method. func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -40815,8 +29678,6 @@ func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListRe } } -// method id "dfareporting.placements.patch": - type PlacementsPatchCall struct { s *Service profileId int64 @@ -40826,8 +29687,10 @@ type PlacementsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement. This method supports patch -// semantics. +// Patch: Updates an existing placement. This method supports patch semantics. +// +// - id: Placement ID. +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placement) *PlacementsPatchCall { c := &PlacementsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40837,23 +29700,21 @@ func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsPatchCall) Fields(s ...googleapi.Field) *PlacementsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsPatchCall) Context(ctx context.Context) *PlacementsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40862,18 +29723,12 @@ func (c *PlacementsPatchCall) Header() http.Header { } func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -40886,16 +29741,14 @@ func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.patch" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40903,17 +29756,17 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40926,45 +29779,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro return nil, err } return ret, nil - // { - // "description": "Updates an existing placement. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placements.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.update": +} type PlacementsUpdateCall struct { s *Service @@ -40976,6 +29791,8 @@ type PlacementsUpdateCall struct { } // Update: Updates an existing placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Update(profileId int64, placement *Placement) *PlacementsUpdateCall { c := &PlacementsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40984,23 +29801,21 @@ func (r *PlacementsService) Update(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsUpdateCall) Fields(s ...googleapi.Field) *PlacementsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsUpdateCall) Context(ctx context.Context) *PlacementsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41009,18 +29824,12 @@ func (c *PlacementsUpdateCall) Header() http.Header { } func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -41033,16 +29842,14 @@ func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.update" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41050,17 +29857,17 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -41073,37 +29880,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Updates an existing placement.", - // "httpMethod": "PUT", - // "id": "dfareporting.placements.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.get": +} type PlatformTypesGetCall struct { s *Service @@ -41116,6 +29893,9 @@ type PlatformTypesGetCall struct { } // Get: Gets one platform type by ID. +// +// - id: Platform type ID. +// - profileId: User profile ID associated with this request. func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetCall { c := &PlatformTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41124,33 +29904,29 @@ func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesGetCall) Fields(s ...googleapi.Field) *PlatformTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesGetCall) IfNoneMatch(entityTag string) *PlatformTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesGetCall) Context(ctx context.Context) *PlatformTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41159,12 +29935,7 @@ func (c *PlatformTypesGetCall) Header() http.Header { } func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41182,16 +29953,14 @@ func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.get" call. -// Exactly one of *PlatformType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlatformType.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlatformType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41199,17 +29968,17 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformType{ ServerResponse: googleapi.ServerResponse{ @@ -41222,42 +29991,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, return nil, err } return ret, nil - // { - // "description": "Gets one platform type by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Platform type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes/{id}", - // "response": { - // "$ref": "PlatformType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.list": +} type PlatformTypesListCall struct { s *Service @@ -41269,6 +30003,8 @@ type PlatformTypesListCall struct { } // List: Retrieves a list of platform types. +// +// - profileId: User profile ID associated with this request. func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { c := &PlatformTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41276,33 +30012,29 @@ func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesListCall) Fields(s ...googleapi.Field) *PlatformTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesListCall) IfNoneMatch(entityTag string) *PlatformTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesListCall) Context(ctx context.Context) *PlatformTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41311,12 +30043,7 @@ func (c *PlatformTypesListCall) Header() http.Header { } func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41333,16 +30060,15 @@ func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.list" call. -// Exactly one of *PlatformTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlatformTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlatformTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41350,17 +30076,17 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41373,34 +30099,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes return nil, err } return ret, nil - // { - // "description": "Retrieves a list of platform types.", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes", - // "response": { - // "$ref": "PlatformTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.get": +} type PostalCodesGetCall struct { s *Service @@ -41413,6 +30112,9 @@ type PostalCodesGetCall struct { } // Get: Gets one postal code by ID. +// +// - code: Postal code ID. +// - profileId: User profile ID associated with this request. func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCall { c := &PostalCodesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41421,33 +30123,29 @@ func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesGetCall) Fields(s ...googleapi.Field) *PostalCodesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesGetCall) IfNoneMatch(entityTag string) *PostalCodesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesGetCall) Context(ctx context.Context) *PostalCodesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41456,12 +30154,7 @@ func (c *PostalCodesGetCall) Header() http.Header { } func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41479,16 +30172,14 @@ func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "code": c.code, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.get" call. -// Exactly one of *PostalCode or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PostalCode.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PostalCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41496,17 +30187,17 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCode{ ServerResponse: googleapi.ServerResponse{ @@ -41519,41 +30210,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro return nil, err } return ret, nil - // { - // "description": "Gets one postal code by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.get", - // "parameterOrder": [ - // "profileId", - // "code" - // ], - // "parameters": { - // "code": { - // "description": "Postal code ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes/{code}", - // "response": { - // "$ref": "PostalCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.list": +} type PostalCodesListCall struct { s *Service @@ -41565,6 +30222,8 @@ type PostalCodesListCall struct { } // List: Retrieves a list of postal codes. +// +// - profileId: User profile ID associated with this request. func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { c := &PostalCodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41572,33 +30231,29 @@ func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesListCall) Fields(s ...googleapi.Field) *PostalCodesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesListCall) IfNoneMatch(entityTag string) *PostalCodesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesListCall) Context(ctx context.Context) *PostalCodesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41607,12 +30262,7 @@ func (c *PostalCodesListCall) Header() http.Header { } func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41629,16 +30279,15 @@ func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.list" call. -// Exactly one of *PostalCodesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *PostalCodesListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41646,17 +30295,17 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCodesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41669,34 +30318,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of postal codes.", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes", - // "response": { - // "$ref": "PostalCodesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.get": +} type ProjectsGetCall struct { s *Service @@ -41709,6 +30331,9 @@ type ProjectsGetCall struct { } // Get: Gets one project by ID. +// +// - id: Project ID. +// - profileId: User profile ID associated with this request. func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41717,33 +30342,29 @@ func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41752,12 +30373,7 @@ func (c *ProjectsGetCall) Header() http.Header { } func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41775,16 +30391,14 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.get" call. -// Exactly one of *Project or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Project.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Project.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41792,17 +30406,17 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Project{ ServerResponse: googleapi.ServerResponse{ @@ -41815,42 +30429,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return nil, err } return ret, nil - // { - // "description": "Gets one project by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.projects.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Project ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{id}", - // "response": { - // "$ref": "Project" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.list": +} type ProjectsListCall struct { s *Service @@ -41861,16 +30440,18 @@ type ProjectsListCall struct { header_ http.Header } -// List: Retrieves a list of projects, possibly filtered. This method -// supports paging. +// List: Retrieves a list of projects, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *ProjectsService) List(profileId int64) *ProjectsListCall { c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only projects with these advertiser IDs. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// projects with these advertiser IDs. func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -41880,8 +30461,7 @@ func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCa return c } -// Ids sets the optional parameter "ids": Select only projects with -// these IDs. +// Ids sets the optional parameter "ids": Select only projects with these IDs. func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { var ids_ []string for _, v := range ids { @@ -41891,8 +30471,8 @@ func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ProjectsListCall) MaxResults(maxResults int64) *ProjectsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -41905,21 +30485,20 @@ func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for projects by name or ID. Wildcards (*) are allowed. For -// example, "project*2015" will return projects with names like "project -// June 2015", "project April 2015", or simply "project 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "project" will -// match projects with name "my project", "project 2015", or simply -// "project". +// SearchString sets the optional parameter "searchString": Allows searching +// for projects by name or ID. Wildcards (*) are allowed. For example, +// "project*2015" will return projects with names like "project June 2015", +// "project April 2015", or simply "project 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "project" will match projects with name "my +// project", "project 2015", or simply "project". func (c *ProjectsListCall) SearchString(searchString string) *ProjectsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -41930,8 +30509,7 @@ func (c *ProjectsListCall) SortField(sortField string) *ProjectsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -41943,33 +30521,29 @@ func (c *ProjectsListCall) SortOrder(sortOrder string) *ProjectsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsListCall) Fields(s ...googleapi.Field) *ProjectsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsListCall) Context(ctx context.Context) *ProjectsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41978,12 +30552,7 @@ func (c *ProjectsListCall) Header() http.Header { } func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42000,16 +30569,15 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.list" call. -// Exactly one of *ProjectsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ProjectsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProjectsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42017,17 +30585,17 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProjectsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42040,92 +30608,6 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of projects, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.projects.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only projects with these advertiser IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only projects with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, \"project*2015\" will return projects with names like \"project June 2015\", \"project April 2015\", or simply \"project 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"project\" will match projects with name \"my project\", \"project 2015\", or simply \"project\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects", - // "response": { - // "$ref": "ProjectsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -42133,7 +30615,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // The provided context supersedes any context provided to the Context method. func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -42149,8 +30631,6 @@ func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListRespon } } -// method id "dfareporting.regions.list": - type RegionsListCall struct { s *Service profileId int64 @@ -42161,6 +30641,8 @@ type RegionsListCall struct { } // List: Retrieves a list of regions. +// +// - profileId: User profile ID associated with this request. func (r *RegionsService) List(profileId int64) *RegionsListCall { c := &RegionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42168,33 +30650,29 @@ func (r *RegionsService) List(profileId int64) *RegionsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RegionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42203,12 +30681,7 @@ func (c *RegionsListCall) Header() http.Header { } func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42225,16 +30698,15 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.regions.list" call. -// Exactly one of *RegionsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RegionsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RegionsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42242,17 +30714,17 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RegionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42265,34 +30737,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse return nil, err } return ret, nil - // { - // "description": "Retrieves a list of regions.", - // "httpMethod": "GET", - // "id": "dfareporting.regions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/regions", - // "response": { - // "$ref": "RegionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.get": +} type RemarketingListSharesGetCall struct { s *Service @@ -42305,6 +30750,9 @@ type RemarketingListSharesGetCall struct { } // Get: Gets one remarketing list share by remarketing list ID. +// +// - profileId: User profile ID associated with this request. +// - remarketingListId: Remarketing list ID. func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId int64) *RemarketingListSharesGetCall { c := &RemarketingListSharesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42313,33 +30761,29 @@ func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId in } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesGetCall) Fields(s ...googleapi.Field) *RemarketingListSharesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListSharesGetCall) IfNoneMatch(entityTag string) *RemarketingListSharesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesGetCall) Context(ctx context.Context) *RemarketingListSharesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42348,12 +30792,7 @@ func (c *RemarketingListSharesGetCall) Header() http.Header { } func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42371,16 +30810,15 @@ func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "remarketingListId": strconv.FormatInt(c.remarketingListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.get" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42388,17 +30826,17 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -42411,42 +30849,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list share by remarketing list ID.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingListShares.get", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.patch": +} type RemarketingListSharesPatchCall struct { s *Service @@ -42457,8 +30860,11 @@ type RemarketingListSharesPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list share. This method -// supports patch semantics. +// Patch: Updates an existing remarketing list share. This method supports +// patch semantics. +// +// - profileId: User profile ID associated with this request. +// - remarketingListId: Remarketing list ID. func (r *RemarketingListSharesService) Patch(profileId int64, remarketingListId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesPatchCall { c := &RemarketingListSharesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42468,23 +30874,21 @@ func (r *RemarketingListSharesService) Patch(profileId int64, remarketingListId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesPatchCall) Fields(s ...googleapi.Field) *RemarketingListSharesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesPatchCall) Context(ctx context.Context) *RemarketingListSharesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42493,18 +30897,12 @@ func (c *RemarketingListSharesPatchCall) Header() http.Header { } func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -42517,16 +30915,15 @@ func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.patch" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42534,17 +30931,17 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -42557,45 +30954,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingListShares.patch", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.update": +} type RemarketingListSharesUpdateCall struct { s *Service @@ -42607,6 +30966,8 @@ type RemarketingListSharesUpdateCall struct { } // Update: Updates an existing remarketing list share. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesUpdateCall { c := &RemarketingListSharesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42615,23 +30976,21 @@ func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistsh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesUpdateCall) Fields(s ...googleapi.Field) *RemarketingListSharesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesUpdateCall) Context(ctx context.Context) *RemarketingListSharesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42640,18 +30999,12 @@ func (c *RemarketingListSharesUpdateCall) Header() http.Header { } func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -42664,16 +31017,15 @@ func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.update" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42681,17 +31033,17 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -42704,37 +31056,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share.", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingListShares.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.get": +} type RemarketingListsGetCall struct { s *Service @@ -42747,6 +31069,9 @@ type RemarketingListsGetCall struct { } // Get: Gets one remarketing list by ID. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingListsGetCall { c := &RemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42755,33 +31080,29 @@ func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsGetCall) Fields(s ...googleapi.Field) *RemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsGetCall) IfNoneMatch(entityTag string) *RemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsGetCall) Context(ctx context.Context) *RemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42790,12 +31111,7 @@ func (c *RemarketingListsGetCall) Header() http.Header { } func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42813,16 +31129,15 @@ func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.get" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42830,17 +31145,17 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -42853,42 +31168,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists/{id}", - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.insert": +} type RemarketingListsInsertCall struct { s *Service @@ -42900,6 +31180,8 @@ type RemarketingListsInsertCall struct { } // Insert: Inserts a new remarketing list. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *RemarketingList) *RemarketingListsInsertCall { c := &RemarketingListsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42908,23 +31190,21 @@ func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsInsertCall) Fields(s ...googleapi.Field) *RemarketingListsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsInsertCall) Context(ctx context.Context) *RemarketingListsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42933,18 +31213,12 @@ func (c *RemarketingListsInsertCall) Header() http.Header { } func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -42957,16 +31231,15 @@ func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.insert" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42974,17 +31247,17 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -42997,37 +31270,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Inserts a new remarketing list.", - // "httpMethod": "POST", - // "id": "dfareporting.remarketingLists.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.list": +} type RemarketingListsListCall struct { s *Service @@ -43038,8 +31281,11 @@ type RemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of remarketing lists, possibly filtered. This -// method supports paging. +// List: Retrieves a list of remarketing lists, possibly filtered. This method +// supports paging. +// +// - advertiserId: Select only remarketing lists owned by this advertiser. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *RemarketingListsListCall { c := &RemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43047,36 +31293,35 @@ func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *Rem return c } -// Active sets the optional parameter "active": Select only active or -// only inactive remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive remarketing lists. func (c *RemarketingListsListCall) Active(active bool) *RemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Select only remarketing lists that have this -// floodlight activity ID. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Select only remarketing lists that have this floodlight activity ID. func (c *RemarketingListsListCall) FloodlightActivityId(floodlightActivityId int64) *RemarketingListsListCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *RemarketingListsListCall) MaxResults(maxResults int64) *RemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *RemarketingListsListCall) Name(name string) *RemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -43089,8 +31334,8 @@ func (c *RemarketingListsListCall) PageToken(pageToken string) *RemarketingLists return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -43101,8 +31346,7 @@ func (c *RemarketingListsListCall) SortField(sortField string) *RemarketingLists return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -43114,33 +31358,29 @@ func (c *RemarketingListsListCall) SortOrder(sortOrder string) *RemarketingLists } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsListCall) Fields(s ...googleapi.Field) *RemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsListCall) IfNoneMatch(entityTag string) *RemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsListCall) Context(ctx context.Context) *RemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43149,12 +31389,7 @@ func (c *RemarketingListsListCall) Header() http.Header { } func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43171,16 +31406,15 @@ func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.list" call. -// Exactly one of *RemarketingListsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *RemarketingListsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*RemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43188,17 +31422,17 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -43211,97 +31445,6 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only remarketing lists owned by this advertiser.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "floodlightActivityId": { - // "description": "Select only remarketing lists that have this floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "response": { - // "$ref": "RemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -43309,7 +31452,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // The provided context supersedes any context provided to the Context method. func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*RemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -43325,8 +31468,6 @@ func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*Remarketin } } -// method id "dfareporting.remarketingLists.patch": - type RemarketingListsPatchCall struct { s *Service profileId int64 @@ -43336,8 +31477,11 @@ type RemarketingListsPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list. This method supports -// patch semantics. +// Patch: Updates an existing remarketing list. This method supports patch +// semantics. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketinglist *RemarketingList) *RemarketingListsPatchCall { c := &RemarketingListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43347,23 +31491,21 @@ func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketingli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsPatchCall) Fields(s ...googleapi.Field) *RemarketingListsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsPatchCall) Context(ctx context.Context) *RemarketingListsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43372,18 +31514,12 @@ func (c *RemarketingListsPatchCall) Header() http.Header { } func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -43396,16 +31532,15 @@ func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.patch" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43413,17 +31548,17 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43436,45 +31571,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingLists.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.update": +} type RemarketingListsUpdateCall struct { s *Service @@ -43486,6 +31583,8 @@ type RemarketingListsUpdateCall struct { } // Update: Updates an existing remarketing list. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Update(profileId int64, remarketinglist *RemarketingList) *RemarketingListsUpdateCall { c := &RemarketingListsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43494,23 +31593,21 @@ func (r *RemarketingListsService) Update(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsUpdateCall) Fields(s ...googleapi.Field) *RemarketingListsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsUpdateCall) Context(ctx context.Context) *RemarketingListsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43519,18 +31616,12 @@ func (c *RemarketingListsUpdateCall) Header() http.Header { } func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -43543,16 +31634,15 @@ func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.update" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43560,17 +31650,17 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43583,37 +31673,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list.", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingLists.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.reports.delete": +} type ReportsDeleteCall struct { s *Service @@ -43625,6 +31685,9 @@ type ReportsDeleteCall struct { } // Delete: Deletes a report by its ID. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteCall { c := &ReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43633,23 +31696,21 @@ func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsDeleteCall) Fields(s ...googleapi.Field) *ReportsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsDeleteCall) Context(ctx context.Context) *ReportsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43658,12 +31719,7 @@ func (c *ReportsDeleteCall) Header() http.Header { } func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -43678,7 +31734,7 @@ func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.delete" call. @@ -43690,42 +31746,10 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a report by its ID.", - // "httpMethod": "DELETE", - // "id": "dfareporting.reports.delete", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.get": +} type ReportsGetCall struct { s *Service @@ -43738,6 +31762,9 @@ type ReportsGetCall struct { } // Get: Retrieves a report by its ID. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { c := &ReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43746,33 +31773,29 @@ func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsGetCall) Fields(s ...googleapi.Field) *ReportsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsGetCall) IfNoneMatch(entityTag string) *ReportsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsGetCall) Context(ctx context.Context) *ReportsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43781,12 +31804,7 @@ func (c *ReportsGetCall) Header() http.Header { } func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43804,16 +31822,14 @@ func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.get" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43821,17 +31837,17 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -43844,42 +31860,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report by its ID.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.get", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.insert": +} type ReportsInsertCall struct { s *Service @@ -43891,6 +31872,8 @@ type ReportsInsertCall struct { } // Insert: Creates a report. +// +// - profileId: The DFA user profile ID. func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertCall { c := &ReportsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43899,23 +31882,21 @@ func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsInsertCall) Fields(s ...googleapi.Field) *ReportsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsInsertCall) Context(ctx context.Context) *ReportsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43924,18 +31905,12 @@ func (c *ReportsInsertCall) Header() http.Header { } func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports") @@ -43948,16 +31923,14 @@ func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.insert" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43965,17 +31938,17 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -43988,37 +31961,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Creates a report.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.list": +} type ReportsListCall struct { s *Service @@ -44030,14 +31973,16 @@ type ReportsListCall struct { } // List: Retrieves list of reports. +// +// - profileId: The DFA user profile ID. func (r *ReportsService) List(profileId int64) *ReportsListCall { c := &ReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsListCall) MaxResults(maxResults int64) *ReportsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -44050,8 +31995,8 @@ func (c *ReportsListCall) PageToken(pageToken string) *ReportsListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -44062,8 +32007,8 @@ func (c *ReportsListCall) Scope(scope string) *ReportsListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -44075,8 +32020,7 @@ func (c *ReportsListCall) SortField(sortField string) *ReportsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -44088,33 +32032,29 @@ func (c *ReportsListCall) SortOrder(sortOrder string) *ReportsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsListCall) Fields(s ...googleapi.Field) *ReportsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsListCall) IfNoneMatch(entityTag string) *ReportsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsListCall) Context(ctx context.Context) *ReportsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44123,12 +32063,7 @@ func (c *ReportsListCall) Header() http.Header { } func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44145,16 +32080,14 @@ func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.list" call. -// Exactly one of *ReportList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ReportList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReportList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44162,17 +32095,17 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ReportList{ ServerResponse: googleapi.ServerResponse{ @@ -44185,89 +32118,6 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) return nil, err } return ret, nil - // { - // "description": "Retrieves list of reports.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE" - // ], - // "enumDescriptions": [ - // "All reports in account.", - // "My reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME", - // "NAME" - // ], - // "enumDescriptions": [ - // "Sort by report ID.", - // "Sort by 'lastModifiedTime' field.", - // "Sort by name of reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "response": { - // "$ref": "ReportList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -44275,7 +32125,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // The provided context supersedes any context provided to the Context method. func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -44291,8 +32141,6 @@ func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) } } -// method id "dfareporting.reports.patch": - type ReportsPatchCall struct { s *Service profileId int64 @@ -44304,6 +32152,9 @@ type ReportsPatchCall struct { } // Patch: Updates a report. This method supports patch semantics. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) *ReportsPatchCall { c := &ReportsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44313,23 +32164,21 @@ func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsPatchCall) Fields(s ...googleapi.Field) *ReportsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsPatchCall) Context(ctx context.Context) *ReportsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44338,18 +32187,12 @@ func (c *ReportsPatchCall) Header() http.Header { } func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -44363,16 +32206,14 @@ func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.patch" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44380,17 +32221,17 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44403,45 +32244,7 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates a report. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.reports.patch", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.run": +} type ReportsRunCall struct { s *Service @@ -44453,6 +32256,9 @@ type ReportsRunCall struct { } // Run: Runs a report. +// +// - profileId: The DFA profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { c := &ReportsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44460,31 +32266,29 @@ func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { return c } -// Synchronous sets the optional parameter "synchronous": If set and -// true, tries to run the report synchronously. +// Synchronous sets the optional parameter "synchronous": If set and true, +// tries to run the report synchronously. func (c *ReportsRunCall) Synchronous(synchronous bool) *ReportsRunCall { c.urlParams_.Set("synchronous", fmt.Sprint(synchronous)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsRunCall) Fields(s ...googleapi.Field) *ReportsRunCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsRunCall) Context(ctx context.Context) *ReportsRunCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsRunCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44493,12 +32297,7 @@ func (c *ReportsRunCall) Header() http.Header { } func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -44513,16 +32312,14 @@ func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.run" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44530,17 +32327,17 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -44553,48 +32350,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Runs a report.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.run", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "synchronous": { - // "default": "false", - // "description": "If set and true, tries to run the report synchronously.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/run", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.update": +} type ReportsUpdateCall struct { s *Service @@ -44607,6 +32363,9 @@ type ReportsUpdateCall struct { } // Update: Updates a report. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) *ReportsUpdateCall { c := &ReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44616,23 +32375,21 @@ func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsUpdateCall) Fields(s ...googleapi.Field) *ReportsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsUpdateCall) Context(ctx context.Context) *ReportsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44641,18 +32398,12 @@ func (c *ReportsUpdateCall) Header() http.Header { } func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -44666,16 +32417,14 @@ func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.update" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44683,17 +32432,17 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44706,45 +32455,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates a report.", - // "httpMethod": "PUT", - // "id": "dfareporting.reports.update", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.compatibleFields.query": +} type ReportsCompatibleFieldsQueryCall struct { s *Service @@ -44756,8 +32467,10 @@ type ReportsCompatibleFieldsQueryCall struct { } // Query: Returns the fields that are compatible to be selected in the -// respective sections of a report criteria, given the fields already -// selected in the input report and user permissions. +// respective sections of a report criteria, given the fields already selected +// in the input report and user permissions. +// +// - profileId: The DFA user profile ID. func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) *ReportsCompatibleFieldsQueryCall { c := &ReportsCompatibleFieldsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44766,23 +32479,21 @@ func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsCompatibleFieldsQueryCall) Fields(s ...googleapi.Field) *ReportsCompatibleFieldsQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsCompatibleFieldsQueryCall) Context(ctx context.Context) *ReportsCompatibleFieldsQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44791,18 +32502,12 @@ func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { } func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/compatiblefields/query") @@ -44815,16 +32520,15 @@ func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.compatibleFields.query" call. -// Exactly one of *CompatibleFields or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CompatibleFields.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CompatibleFields.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*CompatibleFields, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44832,17 +32536,17 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CompatibleFields{ ServerResponse: googleapi.ServerResponse{ @@ -44855,37 +32559,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co return nil, err } return ret, nil - // { - // "description": "Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.compatibleFields.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/compatiblefields/query", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "CompatibleFields" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.files.get": +} type ReportsFilesGetCall struct { s *Service @@ -44899,6 +32573,10 @@ type ReportsFilesGetCall struct { } // Get: Retrieves a report file. This method supports media download. +// +// - fileId: The ID of the report file. +// - profileId: The DFA profile ID. +// - reportId: The ID of the report. func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) *ReportsFilesGetCall { c := &ReportsFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44908,33 +32586,29 @@ func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesGetCall) Fields(s ...googleapi.Field) *ReportsFilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesGetCall) IfNoneMatch(entityTag string) *ReportsFilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ReportsFilesGetCall) Context(ctx context.Context) *ReportsFilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44943,12 +32617,7 @@ func (c *ReportsFilesGetCall) Header() http.Header { } func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44967,7 +32636,7 @@ func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -44979,20 +32648,18 @@ func (c *ReportsFilesGetCall) Download(opts ...googleapi.CallOption) (*http.Resp if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.reports.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45000,17 +32667,17 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -45023,51 +32690,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file. This method supports media download.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.get", - // "parameterOrder": [ - // "profileId", - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.reports.files.list": +} type ReportsFilesListCall struct { s *Service @@ -45080,6 +32703,9 @@ type ReportsFilesListCall struct { } // List: Lists files for a report. +// +// - profileId: The DFA profile ID. +// - reportId: The ID of the parent report. func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFilesListCall { c := &ReportsFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45087,8 +32713,8 @@ func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFile return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsFilesListCall) MaxResults(maxResults int64) *ReportsFilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -45101,8 +32727,8 @@ func (c *ReportsFilesListCall) PageToken(pageToken string) *ReportsFilesListCall return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -45113,8 +32739,7 @@ func (c *ReportsFilesListCall) SortField(sortField string) *ReportsFilesListCall return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -45126,33 +32751,29 @@ func (c *ReportsFilesListCall) SortOrder(sortOrder string) *ReportsFilesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesListCall) Fields(s ...googleapi.Field) *ReportsFilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesListCall) IfNoneMatch(entityTag string) *ReportsFilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsFilesListCall) Context(ctx context.Context) *ReportsFilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45161,12 +32782,7 @@ func (c *ReportsFilesListCall) Header() http.Header { } func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45184,16 +32800,14 @@ func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45201,17 +32815,17 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -45224,81 +32838,6 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro return nil, err } return ret, nil - // { - // "description": "Lists files for a report.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.list", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the parent report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -45306,7 +32845,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // The provided context supersedes any context provided to the Context method. func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -45322,8 +32861,6 @@ func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) erro } } -// method id "dfareporting.sites.get": - type SitesGetCall struct { s *Service profileId int64 @@ -45335,6 +32872,9 @@ type SitesGetCall struct { } // Get: Gets one site by ID. +// +// - id: Site ID. +// - profileId: User profile ID associated with this request. func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { c := &SitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45343,33 +32883,29 @@ func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesGetCall) Context(ctx context.Context) *SitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45378,12 +32914,7 @@ func (c *SitesGetCall) Header() http.Header { } func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45401,16 +32932,14 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.get" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45418,17 +32947,17 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -45441,42 +32970,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Gets one site by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.sites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites/{id}", - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.insert": +} type SitesInsertCall struct { s *Service @@ -45488,6 +32982,8 @@ type SitesInsertCall struct { } // Insert: Inserts a new site. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { c := &SitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45496,23 +32992,21 @@ func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesInsertCall) Fields(s ...googleapi.Field) *SitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesInsertCall) Context(ctx context.Context) *SitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45521,18 +33015,12 @@ func (c *SitesInsertCall) Header() http.Header { } func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -45545,16 +33033,14 @@ func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.insert" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45562,17 +33048,17 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -45585,37 +33071,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new site.", - // "httpMethod": "POST", - // "id": "dfareporting.sites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.list": +} type SitesListCall struct { s *Service @@ -45626,8 +33082,10 @@ type SitesListCall struct { header_ http.Header } -// List: Retrieves a list of sites, possibly filtered. This method -// supports paging. +// List: Retrieves a list of sites, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) List(profileId int64) *SitesListCall { c := &SitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45635,45 +33093,44 @@ func (r *SitesService) List(profileId int64) *SitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only sites that accept -// publisher paid placements. +// "acceptsPublisherPaidPlacements": Select only sites that accept publisher +// paid placements. func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// AdWordsSite sets the optional parameter "adWordsSite": Select only -// AdWords sites. +// AdWordsSite sets the optional parameter "adWordsSite": Select only AdWords +// sites. func (c *SitesListCall) AdWordsSite(adWordsSite bool) *SitesListCall { c.urlParams_.Set("adWordsSite", fmt.Sprint(adWordsSite)) return c } -// Approved sets the optional parameter "approved": Select only approved -// sites. +// Approved sets the optional parameter "approved": Select only approved sites. func (c *SitesListCall) Approved(approved bool) *SitesListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// sites with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only sites +// with these campaign IDs. func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -45683,8 +33140,8 @@ func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only sites with these directory site IDs. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// sites with these directory site IDs. func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -45694,8 +33151,7 @@ func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCa return c } -// Ids sets the optional parameter "ids": Select only sites with these -// IDs. +// Ids sets the optional parameter "ids": Select only sites with these IDs. func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { var ids_ []string for _, v := range ids { @@ -45705,8 +33161,8 @@ func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SitesListCall) MaxResults(maxResults int64) *SitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -45719,20 +33175,20 @@ func (c *SitesListCall) PageToken(pageToken string) *SitesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or keyName. Wildcards (*) are -// allowed. For example, "site*2015" will return objects with names like -// "site June 2015", "site April 2015", or simply "site 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "site" will -// match objects with name "my site", "site 2015", or simply "site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or keyName. Wildcards (*) are allowed. For example, +// "site*2015" will return objects with names like "site June 2015", "site +// April 2015", or simply "site 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "site" will match objects with name "my site", "site 2015", +// or simply "site". func (c *SitesListCall) SearchString(searchString string) *SitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -45743,8 +33199,7 @@ func (c *SitesListCall) SortField(sortField string) *SitesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -45755,48 +33210,44 @@ func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// sites with this subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only sites +// with this subaccount ID. func (c *SitesListCall) SubaccountId(subaccountId int64) *SitesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } -// UnmappedSite sets the optional parameter "unmappedSite": Select only -// sites that have not been mapped to a directory site. +// UnmappedSite sets the optional parameter "unmappedSite": Select only sites +// that have not been mapped to a directory site. func (c *SitesListCall) UnmappedSite(unmappedSite bool) *SitesListCall { c.urlParams_.Set("unmappedSite", fmt.Sprint(unmappedSite)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesListCall) Fields(s ...googleapi.Field) *SitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesListCall) IfNoneMatch(entityTag string) *SitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesListCall) Context(ctx context.Context) *SitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45805,12 +33256,7 @@ func (c *SitesListCall) Header() http.Header { } func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45827,16 +33273,15 @@ func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.list" call. -// Exactly one of *SitesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SitesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SitesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45844,17 +33289,17 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -45867,135 +33312,6 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.sites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only sites that accept publisher paid placements.", - // "location": "query", - // "type": "boolean" - // }, - // "adWordsSite": { - // "description": "Select only AdWords sites.", - // "location": "query", - // "type": "boolean" - // }, - // "approved": { - // "description": "Select only approved sites.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only sites with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only sites with these directory site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, \"site*2015\" will return objects with names like \"site June 2015\", \"site April 2015\", or simply \"site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"site\" will match objects with name \"my site\", \"site 2015\", or simply \"site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only sites with this subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "unmappedSite": { - // "description": "Select only sites that have not been mapped to a directory site.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "response": { - // "$ref": "SitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -46003,7 +33319,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // The provided context supersedes any context provided to the Context method. func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -46019,8 +33335,6 @@ func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) er } } -// method id "dfareporting.sites.patch": - type SitesPatchCall struct { s *Service profileId int64 @@ -46030,8 +33344,10 @@ type SitesPatchCall struct { header_ http.Header } -// Patch: Updates an existing site. This method supports patch -// semantics. +// Patch: Updates an existing site. This method supports patch semantics. +// +// - id: Site ID. +// - profileId: User profile ID associated with this request. func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchCall { c := &SitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46041,23 +33357,21 @@ func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesPatchCall) Fields(s ...googleapi.Field) *SitesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesPatchCall) Context(ctx context.Context) *SitesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46066,18 +33380,12 @@ func (c *SitesPatchCall) Header() http.Header { } func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -46090,16 +33398,14 @@ func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.patch" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46107,17 +33413,17 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46130,45 +33436,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.sites.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.update": +} type SitesUpdateCall struct { s *Service @@ -46180,6 +33448,8 @@ type SitesUpdateCall struct { } // Update: Updates an existing site. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { c := &SitesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46188,23 +33458,21 @@ func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesUpdateCall) Fields(s ...googleapi.Field) *SitesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesUpdateCall) Context(ctx context.Context) *SitesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46213,18 +33481,12 @@ func (c *SitesUpdateCall) Header() http.Header { } func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -46237,16 +33499,14 @@ func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.update" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46254,17 +33514,17 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46277,37 +33537,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site.", - // "httpMethod": "PUT", - // "id": "dfareporting.sites.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.get": +} type SizesGetCall struct { s *Service @@ -46320,6 +33550,9 @@ type SizesGetCall struct { } // Get: Gets one size by ID. +// +// - id: Size ID. +// - profileId: User profile ID associated with this request. func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { c := &SizesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46328,33 +33561,29 @@ func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesGetCall) Fields(s ...googleapi.Field) *SizesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesGetCall) IfNoneMatch(entityTag string) *SizesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesGetCall) Context(ctx context.Context) *SizesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46363,12 +33592,7 @@ func (c *SizesGetCall) Header() http.Header { } func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46386,16 +33610,14 @@ func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.get" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46403,17 +33625,17 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -46426,42 +33648,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Gets one size by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Size ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes/{id}", - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.insert": +} type SizesInsertCall struct { s *Service @@ -46473,6 +33660,8 @@ type SizesInsertCall struct { } // Insert: Inserts a new size. +// +// - profileId: User profile ID associated with this request. func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { c := &SizesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46481,23 +33670,21 @@ func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesInsertCall) Fields(s ...googleapi.Field) *SizesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesInsertCall) Context(ctx context.Context) *SizesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46506,18 +33693,12 @@ func (c *SizesInsertCall) Header() http.Header { } func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.size) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes") @@ -46530,16 +33711,14 @@ func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.insert" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46547,17 +33726,17 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -46570,37 +33749,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new size.", - // "httpMethod": "POST", - // "id": "dfareporting.sizes.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "request": { - // "$ref": "Size" - // }, - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.list": +} type SizesListCall struct { s *Service @@ -46611,32 +33760,33 @@ type SizesListCall struct { header_ http.Header } -// List: Retrieves a list of sizes, possibly filtered. Retrieved sizes -// are globally unique and may include values not currently in use by -// your account. Due to this, the list of sizes returned by this method -// may differ from the list seen in the Trafficking UI. +// List: Retrieves a list of sizes, possibly filtered. Retrieved sizes are +// globally unique and may include values not currently in use by your account. +// Due to this, the list of sizes returned by this method may differ from the +// list seen in the Trafficking UI. +// +// - profileId: User profile ID associated with this request. func (r *SizesService) List(profileId int64) *SizesListCall { c := &SizesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Height sets the optional parameter "height": Select only sizes with -// this height. +// Height sets the optional parameter "height": Select only sizes with this +// height. func (c *SizesListCall) Height(height int64) *SizesListCall { c.urlParams_.Set("height", fmt.Sprint(height)) return c } -// IabStandard sets the optional parameter "iabStandard": Select only -// IAB standard sizes. +// IabStandard sets the optional parameter "iabStandard": Select only IAB +// standard sizes. func (c *SizesListCall) IabStandard(iabStandard bool) *SizesListCall { c.urlParams_.Set("iabStandard", fmt.Sprint(iabStandard)) return c } -// Ids sets the optional parameter "ids": Select only sizes with these -// IDs. +// Ids sets the optional parameter "ids": Select only sizes with these IDs. func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { var ids_ []string for _, v := range ids { @@ -46646,41 +33796,37 @@ func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { return c } -// Width sets the optional parameter "width": Select only sizes with -// this width. +// Width sets the optional parameter "width": Select only sizes with this +// width. func (c *SizesListCall) Width(width int64) *SizesListCall { c.urlParams_.Set("width", fmt.Sprint(width)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesListCall) Fields(s ...googleapi.Field) *SizesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesListCall) IfNoneMatch(entityTag string) *SizesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesListCall) Context(ctx context.Context) *SizesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46689,12 +33835,7 @@ func (c *SizesListCall) Header() http.Header { } func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46711,16 +33852,15 @@ func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.list" call. -// Exactly one of *SizesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SizesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SizesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46728,17 +33868,17 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SizesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -46751,62 +33891,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "height": { - // "description": "Select only sizes with this height.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // }, - // "iabStandard": { - // "description": "Select only IAB standard sizes.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only sizes with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "width": { - // "description": "Select only sizes with this width.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "response": { - // "$ref": "SizesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.get": +} type SubaccountsGetCall struct { s *Service @@ -46819,6 +33904,9 @@ type SubaccountsGetCall struct { } // Get: Gets one subaccount by ID. +// +// - id: Subaccount ID. +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall { c := &SubaccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46827,33 +33915,29 @@ func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsGetCall) Fields(s ...googleapi.Field) *SubaccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsGetCall) IfNoneMatch(entityTag string) *SubaccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsGetCall) Context(ctx context.Context) *SubaccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46862,12 +33946,7 @@ func (c *SubaccountsGetCall) Header() http.Header { } func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46885,16 +33964,14 @@ func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.get" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46902,17 +33979,17 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -46925,42 +34002,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro return nil, err } return ret, nil - // { - // "description": "Gets one subaccount by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts/{id}", - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.insert": +} type SubaccountsInsertCall struct { s *Service @@ -46972,6 +34014,8 @@ type SubaccountsInsertCall struct { } // Insert: Inserts a new subaccount. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *SubaccountsInsertCall { c := &SubaccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46980,23 +34024,21 @@ func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsInsertCall) Fields(s ...googleapi.Field) *SubaccountsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsInsertCall) Context(ctx context.Context) *SubaccountsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47005,18 +34047,12 @@ func (c *SubaccountsInsertCall) Header() http.Header { } func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -47029,16 +34065,14 @@ func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.insert" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47046,17 +34080,17 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47069,37 +34103,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Inserts a new subaccount.", - // "httpMethod": "POST", - // "id": "dfareporting.subaccounts.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.list": +} type SubaccountsListCall struct { s *Service @@ -47110,16 +34114,18 @@ type SubaccountsListCall struct { header_ http.Header } -// List: Gets a list of subaccounts, possibly filtered. This method -// supports paging. +// List: Gets a list of subaccounts, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall { c := &SubaccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only subaccounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only subaccounts with these +// IDs. func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { var ids_ []string for _, v := range ids { @@ -47129,8 +34135,8 @@ func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SubaccountsListCall) MaxResults(maxResults int64) *SubaccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -47143,21 +34149,21 @@ func (c *SubaccountsListCall) PageToken(pageToken string) *SubaccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "subaccount*2015" will return objects with names like -// "subaccount June 2015", "subaccount April 2015", or simply -// "subaccount 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "subaccount" will match objects with name "my subaccount", -// "subaccount 2015", or simply "subaccount". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "subaccount*2015" will return objects with names like "subaccount June +// 2015", "subaccount April 2015", or simply "subaccount 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "subaccount" will match +// objects with name "my subaccount", "subaccount 2015", or simply +// "subaccount". func (c *SubaccountsListCall) SearchString(searchString string) *SubaccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -47168,8 +34174,7 @@ func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -47181,33 +34186,29 @@ func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsListCall) Fields(s ...googleapi.Field) *SubaccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsListCall) IfNoneMatch(entityTag string) *SubaccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsListCall) Context(ctx context.Context) *SubaccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47216,12 +34217,7 @@ func (c *SubaccountsListCall) Header() http.Header { } func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47238,16 +34234,15 @@ func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.list" call. -// Exactly one of *SubaccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *SubaccountsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47255,17 +34250,17 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SubaccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -47278,85 +34273,6 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList return nil, err } return ret, nil - // { - // "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only subaccounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"subaccount*2015\" will return objects with names like \"subaccount June 2015\", \"subaccount April 2015\", or simply \"subaccount 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"subaccount\" will match objects with name \"my subaccount\", \"subaccount 2015\", or simply \"subaccount\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "response": { - // "$ref": "SubaccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -47364,7 +34280,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // The provided context supersedes any context provided to the Context method. func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -47380,8 +34296,6 @@ func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsList } } -// method id "dfareporting.subaccounts.patch": - type SubaccountsPatchCall struct { s *Service profileId int64 @@ -47391,8 +34305,10 @@ type SubaccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing subaccount. This method supports patch -// semantics. +// Patch: Updates an existing subaccount. This method supports patch semantics. +// +// - id: Subaccount ID. +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subaccount) *SubaccountsPatchCall { c := &SubaccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47402,23 +34318,21 @@ func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subacc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsPatchCall) Fields(s ...googleapi.Field) *SubaccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsPatchCall) Context(ctx context.Context) *SubaccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47427,18 +34341,12 @@ func (c *SubaccountsPatchCall) Header() http.Header { } func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -47451,16 +34359,14 @@ func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.patch" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47468,17 +34374,17 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47491,45 +34397,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.subaccounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.update": +} type SubaccountsUpdateCall struct { s *Service @@ -47541,6 +34409,8 @@ type SubaccountsUpdateCall struct { } // Update: Updates an existing subaccount. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *SubaccountsUpdateCall { c := &SubaccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47549,23 +34419,21 @@ func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsUpdateCall) Fields(s ...googleapi.Field) *SubaccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsUpdateCall) Context(ctx context.Context) *SubaccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47574,18 +34442,12 @@ func (c *SubaccountsUpdateCall) Header() http.Header { } func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -47598,16 +34460,14 @@ func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.update" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47615,17 +34475,17 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47638,37 +34498,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount.", - // "httpMethod": "PUT", - // "id": "dfareporting.subaccounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.get": +} type TargetableRemarketingListsGetCall struct { s *Service @@ -47681,6 +34511,9 @@ type TargetableRemarketingListsGetCall struct { } // Get: Gets one remarketing list by ID. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *TargetableRemarketingListsGetCall { c := &TargetableRemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47689,33 +34522,29 @@ func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *Targ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsGetCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsGetCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsGetCall) Context(ctx context.Context) *TargetableRemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47724,12 +34553,7 @@ func (c *TargetableRemarketingListsGetCall) Header() http.Header { } func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47747,16 +34571,15 @@ func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Respons "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.get" call. -// Exactly one of *TargetableRemarketingList or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TargetableRemarketingList.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TargetableRemarketingList.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47764,17 +34587,17 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -47787,42 +34610,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - // "response": { - // "$ref": "TargetableRemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.list": +} type TargetableRemarketingListsListCall struct { s *Service @@ -47833,8 +34621,12 @@ type TargetableRemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of targetable remarketing lists, possibly -// filtered. This method supports paging. +// List: Retrieves a list of targetable remarketing lists, possibly filtered. +// This method supports paging. +// +// - advertiserId: Select only targetable remarketing lists targetable by these +// advertisers. +// - profileId: User profile ID associated with this request. func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId int64) *TargetableRemarketingListsListCall { c := &TargetableRemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47842,28 +34634,28 @@ func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId i return c } -// Active sets the optional parameter "active": Select only active or -// only inactive targetable remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive targetable remarketing lists. func (c *TargetableRemarketingListsListCall) Active(active bool) *TargetableRemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetableRemarketingListsListCall) MaxResults(maxResults int64) *TargetableRemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *TargetableRemarketingListsListCall) Name(name string) *TargetableRemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -47876,8 +34668,8 @@ func (c *TargetableRemarketingListsListCall) PageToken(pageToken string) *Target return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -47888,8 +34680,7 @@ func (c *TargetableRemarketingListsListCall) SortField(sortField string) *Target return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -47901,33 +34692,29 @@ func (c *TargetableRemarketingListsListCall) SortOrder(sortOrder string) *Target } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsListCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsListCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsListCall) Context(ctx context.Context) *TargetableRemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47936,12 +34723,7 @@ func (c *TargetableRemarketingListsListCall) Header() http.Header { } func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47958,17 +34740,15 @@ func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.list" call. -// Exactly one of *TargetableRemarketingListsListResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47976,17 +34756,17 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -47999,91 +34779,6 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive targetable remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only targetable remarketing lists targetable by these advertisers.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists", - // "response": { - // "$ref": "TargetableRemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -48091,7 +34786,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(*TargetableRemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -48107,8 +34802,6 @@ func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(* } } -// method id "dfareporting.targetingTemplates.get": - type TargetingTemplatesGetCall struct { s *Service profileId int64 @@ -48120,6 +34813,9 @@ type TargetingTemplatesGetCall struct { } // Get: Gets one targeting template by ID. +// +// - id: Targeting template ID. +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTemplatesGetCall { c := &TargetingTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48128,33 +34824,29 @@ func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTem } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesGetCall) Fields(s ...googleapi.Field) *TargetingTemplatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesGetCall) IfNoneMatch(entityTag string) *TargetingTemplatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesGetCall) Context(ctx context.Context) *TargetingTemplatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48163,12 +34855,7 @@ func (c *TargetingTemplatesGetCall) Header() http.Header { } func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48186,16 +34873,15 @@ func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.get" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48203,17 +34889,17 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48226,42 +34912,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting return nil, err } return ret, nil - // { - // "description": "Gets one targeting template by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates/{id}", - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.insert": +} type TargetingTemplatesInsertCall struct { s *Service @@ -48273,6 +34924,8 @@ type TargetingTemplatesInsertCall struct { } // Insert: Inserts a new targeting template. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesInsertCall { c := &TargetingTemplatesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48281,23 +34934,21 @@ func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesInsertCall) Fields(s ...googleapi.Field) *TargetingTemplatesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesInsertCall) Context(ctx context.Context) *TargetingTemplatesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48306,18 +34957,12 @@ func (c *TargetingTemplatesInsertCall) Header() http.Header { } func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -48330,16 +34975,15 @@ func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.insert" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48347,17 +34991,17 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48370,37 +35014,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Inserts a new targeting template.", - // "httpMethod": "POST", - // "id": "dfareporting.targetingTemplates.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.list": +} type TargetingTemplatesListCall struct { s *Service @@ -48411,8 +35025,10 @@ type TargetingTemplatesListCall struct { header_ http.Header } -// List: Retrieves a list of targeting templates, optionally filtered. -// This method supports paging. +// List: Retrieves a list of targeting templates, optionally filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) List(profileId int64) *TargetingTemplatesListCall { c := &TargetingTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48426,8 +35042,8 @@ func (c *TargetingTemplatesListCall) AdvertiserId(advertiserId int64) *Targeting return c } -// Ids sets the optional parameter "ids": Select only targeting -// templates with these IDs. +// Ids sets the optional parameter "ids": Select only targeting templates with +// these IDs. func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCall { var ids_ []string for _, v := range ids { @@ -48437,8 +35053,8 @@ func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCa return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetingTemplatesListCall) MaxResults(maxResults int64) *TargetingTemplatesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -48451,21 +35067,20 @@ func (c *TargetingTemplatesListCall) PageToken(pageToken string) *TargetingTempl return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "template*2015" will return objects with names like -// "template June 2015", "template April 2015", or simply "template -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "template" will match objects with name "my template", "template -// 2015", or simply "template". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "template*2015" will return objects with names like "template June 2015", +// "template April 2015", or simply "template 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "template" will match objects with name "my +// template", "template 2015", or simply "template". func (c *TargetingTemplatesListCall) SearchString(searchString string) *TargetingTemplatesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -48476,8 +35091,7 @@ func (c *TargetingTemplatesListCall) SortField(sortField string) *TargetingTempl return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -48489,33 +35103,29 @@ func (c *TargetingTemplatesListCall) SortOrder(sortOrder string) *TargetingTempl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesListCall) Fields(s ...googleapi.Field) *TargetingTemplatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesListCall) IfNoneMatch(entityTag string) *TargetingTemplatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesListCall) Context(ctx context.Context) *TargetingTemplatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48524,12 +35134,7 @@ func (c *TargetingTemplatesListCall) Header() http.Header { } func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48546,16 +35151,15 @@ func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.list" call. -// Exactly one of *TargetingTemplatesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *TargetingTemplatesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplatesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*TargetingTemplatesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48563,17 +35167,17 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplatesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -48586,91 +35190,6 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only targeting templates with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only targeting templates with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"template*2015\" will return objects with names like \"template June 2015\", \"template April 2015\", or simply \"template 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"template\" will match objects with name \"my template\", \"template 2015\", or simply \"template\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "response": { - // "$ref": "TargetingTemplatesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -48678,7 +35197,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // The provided context supersedes any context provided to the Context method. func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*TargetingTemplatesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -48694,8 +35213,6 @@ func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*Targetin } } -// method id "dfareporting.targetingTemplates.patch": - type TargetingTemplatesPatchCall struct { s *Service profileId int64 @@ -48705,8 +35222,11 @@ type TargetingTemplatesPatchCall struct { header_ http.Header } -// Patch: Updates an existing targeting template. This method supports -// patch semantics. +// Patch: Updates an existing targeting template. This method supports patch +// semantics. +// +// - id: Targeting template ID. +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesPatchCall { c := &TargetingTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48716,23 +35236,21 @@ func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingte } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesPatchCall) Fields(s ...googleapi.Field) *TargetingTemplatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesPatchCall) Context(ctx context.Context) *TargetingTemplatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48741,18 +35259,12 @@ func (c *TargetingTemplatesPatchCall) Header() http.Header { } func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -48765,16 +35277,15 @@ func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.patch" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48782,17 +35293,17 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48805,45 +35316,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.targetingTemplates.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.update": +} type TargetingTemplatesUpdateCall struct { s *Service @@ -48855,6 +35328,8 @@ type TargetingTemplatesUpdateCall struct { } // Update: Updates an existing targeting template. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesUpdateCall { c := &TargetingTemplatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48863,23 +35338,21 @@ func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesUpdateCall) Fields(s ...googleapi.Field) *TargetingTemplatesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesUpdateCall) Context(ctx context.Context) *TargetingTemplatesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48888,18 +35361,12 @@ func (c *TargetingTemplatesUpdateCall) Header() http.Header { } func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -48912,16 +35379,15 @@ func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.update" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48929,17 +35395,17 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48952,37 +35418,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template.", - // "httpMethod": "PUT", - // "id": "dfareporting.targetingTemplates.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.get": +} type UserProfilesGetCall struct { s *Service @@ -48994,6 +35430,8 @@ type UserProfilesGetCall struct { } // Get: Gets one user profile by ID. +// +// - profileId: The user profile ID. func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { c := &UserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49001,33 +35439,29 @@ func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesGetCall) Fields(s ...googleapi.Field) *UserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesGetCall) IfNoneMatch(entityTag string) *UserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesGetCall) Context(ctx context.Context) *UserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49036,12 +35470,7 @@ func (c *UserProfilesGetCall) Header() http.Header { } func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49058,16 +35487,14 @@ func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.get" call. -// Exactly one of *UserProfile or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfile.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfile.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49075,17 +35502,17 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -49098,35 +35525,7 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er return nil, err } return ret, nil - // { - // "description": "Gets one user profile by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.get", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}", - // "response": { - // "$ref": "UserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.list": +} type UserProfilesListCall struct { s *Service @@ -49143,33 +35542,29 @@ func (r *UserProfilesService) List() *UserProfilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesListCall) Fields(s ...googleapi.Field) *UserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesListCall) IfNoneMatch(entityTag string) *UserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesListCall) Context(ctx context.Context) *UserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49178,12 +35573,7 @@ func (c *UserProfilesListCall) Header() http.Header { } func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49197,16 +35587,15 @@ func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.list" call. -// Exactly one of *UserProfileList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfileList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfileList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49214,17 +35603,17 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfileList{ ServerResponse: googleapi.ServerResponse{ @@ -49237,24 +35626,8 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis return nil, err } return ret, nil - // { - // "description": "Retrieves list of user profiles for a user.", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.list", - // "path": "userprofiles", - // "response": { - // "$ref": "UserProfileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } -// method id "dfareporting.userRolePermissionGroups.get": - type UserRolePermissionGroupsGetCall struct { s *Service profileId int64 @@ -49266,6 +35639,9 @@ type UserRolePermissionGroupsGetCall struct { } // Get: Gets one user role permission group by ID. +// +// - id: User role permission group ID. +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRolePermissionGroupsGetCall { c := &UserRolePermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49274,33 +35650,29 @@ func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsGetCall) Context(ctx context.Context) *UserRolePermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49309,12 +35681,7 @@ func (c *UserRolePermissionGroupsGetCall) Header() http.Header { } func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49332,16 +35699,15 @@ func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.get" call. -// Exactly one of *UserRolePermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *UserRolePermissionGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49349,17 +35715,17 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -49372,42 +35738,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use return nil, err } return ret, nil - // { - // "description": "Gets one user role permission group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - // "response": { - // "$ref": "UserRolePermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissionGroups.list": +} type UserRolePermissionGroupsListCall struct { s *Service @@ -49419,6 +35750,8 @@ type UserRolePermissionGroupsListCall struct { } // List: Gets a list of all supported user role permission groups. +// +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermissionGroupsListCall { c := &UserRolePermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49426,33 +35759,29 @@ func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermiss } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsListCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsListCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsListCall) Context(ctx context.Context) *UserRolePermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49461,12 +35790,7 @@ func (c *UserRolePermissionGroupsListCall) Header() http.Header { } func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49483,17 +35807,15 @@ func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.list" call. -// Exactly one of *UserRolePermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49501,17 +35823,17 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -49524,34 +35846,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us return nil, err } return ret, nil - // { - // "description": "Gets a list of all supported user role permission groups.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups", - // "response": { - // "$ref": "UserRolePermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.get": +} type UserRolePermissionsGetCall struct { s *Service @@ -49564,6 +35859,9 @@ type UserRolePermissionsGetCall struct { } // Get: Gets one user role permission by ID. +// +// - id: User role permission ID. +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePermissionsGetCall { c := &UserRolePermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49572,33 +35870,29 @@ func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePer } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsGetCall) Context(ctx context.Context) *UserRolePermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49607,12 +35901,7 @@ func (c *UserRolePermissionsGetCall) Header() http.Header { } func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49630,16 +35919,15 @@ func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.get" call. -// Exactly one of *UserRolePermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolePermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49647,17 +35935,17 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermission{ ServerResponse: googleapi.ServerResponse{ @@ -49670,42 +35958,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole return nil, err } return ret, nil - // { - // "description": "Gets one user role permission by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions/{id}", - // "response": { - // "$ref": "UserRolePermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.list": +} type UserRolePermissionsListCall struct { s *Service @@ -49717,14 +35970,16 @@ type UserRolePermissionsListCall struct { } // List: Gets a list of user role permissions, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionsService) List(profileId int64) *UserRolePermissionsListCall { c := &UserRolePermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only user role -// permissions with these IDs. +// Ids sets the optional parameter "ids": Select only user role permissions +// with these IDs. func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsListCall { var ids_ []string for _, v := range ids { @@ -49735,33 +35990,29 @@ func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsListCall) Fields(s ...googleapi.Field) *UserRolePermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsListCall) IfNoneMatch(entityTag string) *UserRolePermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsListCall) Context(ctx context.Context) *UserRolePermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49770,12 +36021,7 @@ func (c *UserRolePermissionsListCall) Header() http.Header { } func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49792,16 +36038,15 @@ func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.list" call. -// Exactly one of *UserRolePermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49809,17 +36054,17 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -49832,41 +36077,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol return nil, err } return ret, nil - // { - // "description": "Gets a list of user role permissions, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only user role permissions with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions", - // "response": { - // "$ref": "UserRolePermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.delete": +} type UserRolesDeleteCall struct { s *Service @@ -49878,6 +36089,9 @@ type UserRolesDeleteCall struct { } // Delete: Deletes an existing user role. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCall { c := &UserRolesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49886,23 +36100,21 @@ func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesDeleteCall) Fields(s ...googleapi.Field) *UserRolesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesDeleteCall) Context(ctx context.Context) *UserRolesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49911,12 +36123,7 @@ func (c *UserRolesDeleteCall) Header() http.Header { } func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -49931,7 +36138,7 @@ func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.delete" call. @@ -49943,42 +36150,10 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing user role.", - // "httpMethod": "DELETE", - // "id": "dfareporting.userRoles.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.get": +} type UserRolesGetCall struct { s *Service @@ -49991,6 +36166,9 @@ type UserRolesGetCall struct { } // Get: Gets one user role by ID. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { c := &UserRolesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49999,33 +36177,29 @@ func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesGetCall) Fields(s ...googleapi.Field) *UserRolesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesGetCall) IfNoneMatch(entityTag string) *UserRolesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesGetCall) Context(ctx context.Context) *UserRolesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50034,12 +36208,7 @@ func (c *UserRolesGetCall) Header() http.Header { } func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50057,16 +36226,14 @@ func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.get" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50074,17 +36241,17 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50097,42 +36264,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { return nil, err } return ret, nil - // { - // "description": "Gets one user role by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.insert": +} type UserRolesInsertCall struct { s *Service @@ -50144,6 +36276,8 @@ type UserRolesInsertCall struct { } // Insert: Inserts a new user role. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRolesInsertCall { c := &UserRolesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50152,23 +36286,21 @@ func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesInsertCall) Fields(s ...googleapi.Field) *UserRolesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesInsertCall) Context(ctx context.Context) *UserRolesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50177,18 +36309,12 @@ func (c *UserRolesInsertCall) Header() http.Header { } func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -50201,16 +36327,14 @@ func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.insert" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50218,17 +36342,17 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50241,37 +36365,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Inserts a new user role.", - // "httpMethod": "POST", - // "id": "dfareporting.userRoles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.list": +} type UserRolesListCall struct { s *Service @@ -50284,22 +36378,24 @@ type UserRolesListCall struct { // List: Retrieves a list of user roles, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) List(profileId int64) *UserRolesListCall { c := &UserRolesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AccountUserRoleOnly sets the optional parameter -// "accountUserRoleOnly": Select only account level user roles not -// associated with any specific subaccount. +// AccountUserRoleOnly sets the optional parameter "accountUserRoleOnly": +// Select only account level user roles not associated with any specific +// subaccount. func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnly bool) *UserRolesListCall { c.urlParams_.Set("accountUserRoleOnly", fmt.Sprint(accountUserRoleOnly)) return c } -// Ids sets the optional parameter "ids": Select only user roles with -// the specified IDs. +// Ids sets the optional parameter "ids": Select only user roles with the +// specified IDs. func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { var ids_ []string for _, v := range ids { @@ -50309,8 +36405,8 @@ func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *UserRolesListCall) MaxResults(maxResults int64) *UserRolesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -50323,21 +36419,20 @@ func (c *UserRolesListCall) PageToken(pageToken string) *UserRolesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "userrole*2015" will return objects with names like -// "userrole June 2015", "userrole April 2015", or simply "userrole -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "userrole" will match objects with name "my userrole", "userrole -// 2015", or simply "userrole". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "userrole*2015" will return objects with names like "userrole June 2015", +// "userrole April 2015", or simply "userrole 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "userrole" will match objects with name "my +// userrole", "userrole 2015", or simply "userrole". func (c *UserRolesListCall) SearchString(searchString string) *UserRolesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -50348,8 +36443,7 @@ func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -50360,41 +36454,37 @@ func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user roles that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// roles that belong to this subaccount. func (c *UserRolesListCall) SubaccountId(subaccountId int64) *UserRolesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesListCall) Fields(s ...googleapi.Field) *UserRolesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesListCall) IfNoneMatch(entityTag string) *UserRolesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesListCall) Context(ctx context.Context) *UserRolesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50403,12 +36493,7 @@ func (c *UserRolesListCall) Header() http.Header { } func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50425,16 +36510,15 @@ func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.list" call. -// Exactly one of *UserRolesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50442,17 +36526,17 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -50465,96 +36549,6 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "accountUserRoleOnly": { - // "description": "Select only account level user roles not associated with any specific subaccount.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user roles with the specified IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"userrole*2015\" will return objects with names like \"userrole June 2015\", \"userrole April 2015\", or simply \"userrole 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"userrole\" will match objects with name \"my userrole\", \"userrole 2015\", or simply \"userrole\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user roles that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "response": { - // "$ref": "UserRolesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -50562,7 +36556,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // The provided context supersedes any context provided to the Context method. func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -50578,8 +36572,6 @@ func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResp } } -// method id "dfareporting.userRoles.patch": - type UserRolesPatchCall struct { s *Service profileId int64 @@ -50589,8 +36581,10 @@ type UserRolesPatchCall struct { header_ http.Header } -// Patch: Updates an existing user role. This method supports patch -// semantics. +// Patch: Updates an existing user role. This method supports patch semantics. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) *UserRolesPatchCall { c := &UserRolesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50600,23 +36594,21 @@ func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesPatchCall) Fields(s ...googleapi.Field) *UserRolesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesPatchCall) Context(ctx context.Context) *UserRolesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50625,18 +36617,12 @@ func (c *UserRolesPatchCall) Header() http.Header { } func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -50649,16 +36635,14 @@ func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.patch" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50666,17 +36650,17 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50689,45 +36673,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing user role. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.userRoles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.update": +} type UserRolesUpdateCall struct { s *Service @@ -50739,6 +36685,8 @@ type UserRolesUpdateCall struct { } // Update: Updates an existing user role. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRolesUpdateCall { c := &UserRolesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50747,23 +36695,21 @@ func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesUpdateCall) Fields(s ...googleapi.Field) *UserRolesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesUpdateCall) Context(ctx context.Context) *UserRolesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50772,18 +36718,12 @@ func (c *UserRolesUpdateCall) Header() http.Header { } func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -50796,16 +36736,14 @@ func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.update" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50813,17 +36751,17 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50836,37 +36774,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Updates an existing user role.", - // "httpMethod": "PUT", - // "id": "dfareporting.userRoles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.get": +} type VideoFormatsGetCall struct { s *Service @@ -50879,6 +36787,9 @@ type VideoFormatsGetCall struct { } // Get: Gets one video format by ID. +// +// - id: Video format ID. +// - profileId: User profile ID associated with this request. func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCall { c := &VideoFormatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50887,33 +36798,29 @@ func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsGetCall) Fields(s ...googleapi.Field) *VideoFormatsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsGetCall) IfNoneMatch(entityTag string) *VideoFormatsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsGetCall) Context(ctx context.Context) *VideoFormatsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50922,12 +36829,7 @@ func (c *VideoFormatsGetCall) Header() http.Header { } func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50945,16 +36847,14 @@ func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.get" call. -// Exactly one of *VideoFormat or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *VideoFormat.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *VideoFormat.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50962,17 +36862,17 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormat{ ServerResponse: googleapi.ServerResponse{ @@ -50985,42 +36885,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er return nil, err } return ret, nil - // { - // "description": "Gets one video format by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Video format ID.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats/{id}", - // "response": { - // "$ref": "VideoFormat" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.list": +} type VideoFormatsListCall struct { s *Service @@ -51032,6 +36897,8 @@ type VideoFormatsListCall struct { } // List: Lists available video formats. +// +// - profileId: User profile ID associated with this request. func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { c := &VideoFormatsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -51039,33 +36906,29 @@ func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsListCall) Fields(s ...googleapi.Field) *VideoFormatsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsListCall) IfNoneMatch(entityTag string) *VideoFormatsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsListCall) Context(ctx context.Context) *VideoFormatsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51074,12 +36937,7 @@ func (c *VideoFormatsListCall) Header() http.Header { } func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51096,16 +36954,15 @@ func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.list" call. -// Exactly one of *VideoFormatsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *VideoFormatsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51113,17 +36970,17 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormatsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -51136,29 +36993,4 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi return nil, err } return ret, nil - // { - // "description": "Lists available video formats.", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats", - // "response": { - // "$ref": "VideoFormatsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } diff --git a/dfareporting/v3.1/dfareporting-gen.go b/dfareporting/v3.1/dfareporting-gen.go index b736acff604..7ea8f5ed3db 100644 --- a/dfareporting/v3.1/dfareporting-gen.go +++ b/dfareporting/v3.1/dfareporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/doubleclick-advertisers/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // dfareportingService, err := dfareporting.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithScopes(dfareporting.DfatraffickingScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // dfareportingService, err := dfareporting.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package dfareporting // import "google.golang.org/api/dfareporting/v3.1" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dfareporting:v3.1" const apiName = "dfareporting" const apiVersion = "v3.1" const basePath = "https://www.googleapis.com/dfareporting/v3.1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/dfareporting/v3.1/" // OAuth2 scopes used by this API. const ( @@ -93,13 +112,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/ddmconversions", "https://www.googleapis.com/auth/dfareporting", "https://www.googleapis.com/auth/dfatrafficking", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -888,20 +910,16 @@ type VideoFormatsService struct { type Account struct { // AccountPermissionIds: Account permissions assigned to this account. AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"` - - // AccountProfile: Profile for this account. This is a read-only field - // that can be left blank. + // AccountProfile: Profile for this account. This is a read-only field that can + // be left blank. // // Possible values: // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfile string `json:"accountProfile,omitempty"` - // Active: Whether this account is active. Active bool `json:"active,omitempty"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for this - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for this account. // // Possible values: // "ACTIVE_ADS_TIER_100K" @@ -913,21 +931,16 @@ type Account struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_75K" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - - // ActiveViewOptOut: Whether to serve creatives with Active View tags. - // If disabled, viewability data will not be available for any - // impressions. + // ActiveViewOptOut: Whether to serve creatives with Active View tags. If + // disabled, viewability data will not be available for any impressions. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AvailablePermissionIds: User role permissions available to the user - // roles of this account. + // AvailablePermissionIds: User role permissions available to the user roles of + // this account. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // CountryId: ID of the country associated with this account. CountryId int64 `json:"countryId,omitempty,string"` - - // CurrencyId: ID of currency associated with this account. This is a - // required field. + // CurrencyId: ID of currency associated with this account. This is a required + // field. // Acceptable values are: // - "1" for USD // - "2" for GBP @@ -979,20 +992,15 @@ type Account struct { // - "49" for MXN // - "50" for NGN CurrencyId int64 `json:"currencyId,omitempty,string"` - // DefaultCreativeSizeId: Default placement dimensions for this account. DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"` - // Description: Description of this account. Description string `json:"description,omitempty"` - // Id: ID of this account. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#account". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#account". Kind string `json:"kind,omitempty"` - // Locale: Locale of this account. // Acceptable values are: // - "cs" (Czech) @@ -1012,69 +1020,50 @@ type Account struct { // - "zh-CN" (Chinese Simplified) // - "zh-TW" (Chinese Traditional) Locale string `json:"locale,omitempty"` - - // MaximumImageSize: Maximum image size allowed for this account, in - // kilobytes. Value must be greater than or equal to 1. + // MaximumImageSize: Maximum image size allowed for this account, in kilobytes. + // Value must be greater than or equal to 1. MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"` - - // Name: Name of this account. This is a required field, and must be - // less than 128 characters long and be globally unique. + // Name: Name of this account. This is a required field, and must be less than + // 128 characters long and be globally unique. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether campaigns created in this account will be - // enabled for Nielsen OCR reach ratings by default. + // NielsenOcrEnabled: Whether campaigns created in this account will be enabled + // for Nielsen OCR reach ratings by default. NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - // ReportsConfiguration: Reporting configuration of this account. ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"` - - // ShareReportsWithTwitter: Share Path to Conversion reports with - // Twitter. + // ShareReportsWithTwitter: Share Path to Conversion reports with Twitter. ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"` - // TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser // creatives. Acceptable values are 1 to 10240, inclusive. TeaserSizeLimit int64 `json:"teaserSizeLimit,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionIds") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionIds") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountActiveAdSummary: Gets a summary of active ads in an account. type AccountActiveAdSummary struct { // AccountId: ID of the account. AccountId int64 `json:"accountId,omitempty,string"` - // ActiveAds: Ads that have been activated for the account ActiveAds int64 `json:"activeAds,omitempty,string"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for the - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for the account. // // Possible values: // "ACTIVE_ADS_TIER_100K" @@ -1086,44 +1075,35 @@ type AccountActiveAdSummary struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_75K" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - // AvailableAds: Ads that can be activated for the account. AvailableAds int64 `json:"availableAds,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountActiveAdSummary". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountActiveAdSummary". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountActiveAdSummary) MarshalJSON() ([]byte, error) { +func (s AccountActiveAdSummary) MarshalJSON() ([]byte, error) { type NoMethod AccountActiveAdSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermission: AccountPermissions contains information about a -// particular account permission. Some features of Campaign Manager -// require an account permission to be present in the account. +// particular account permission. Some features of Campaign Manager require an +// account permission to be present in the account. type AccountPermission struct { // AccountProfiles: Account profiles associated with this account // permission. @@ -1136,212 +1116,158 @@ type AccountPermission struct { // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfiles []string `json:"accountProfiles,omitempty"` - // Id: ID of this account permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermission". Kind string `json:"kind,omitempty"` - - // Level: Administrative level required to enable this account - // permission. + // Level: Administrative level required to enable this account permission. // // Possible values: // "ADMINISTRATOR" // "USER" Level string `json:"level,omitempty"` - // Name: Name of this account permission. Name string `json:"name,omitempty"` - // PermissionGroupId: Permission group of this account permission. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountProfiles") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountProfiles") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermission) MarshalJSON() ([]byte, error) { +func (s AccountPermission) MarshalJSON() ([]byte, error) { type NoMethod AccountPermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionGroup: AccountPermissionGroups contains a mapping of -// permission group IDs to names. A permission group is a grouping of -// account permissions. +// permission group IDs to names. A permission group is a grouping of account +// permissions. type AccountPermissionGroup struct { // Id: ID of this account permission group. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this account permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroup) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountPermissionGroupsListResponse: Account Permission Group List -// Response +// AccountPermissionGroupsListResponse: Account Permission Group List Response type AccountPermissionGroupsListResponse struct { // AccountPermissionGroups: Account permission group collection. AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionGroups") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionGroups") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionsListResponse: Account Permission List Response type AccountPermissionsListResponse struct { // AccountPermissions: Account permission collection. AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountPermissions") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountUserProfile: AccountUserProfiles contains properties of a -// Campaign Manager user profile. This resource is specifically for -// managing user profiles, whereas UserProfiles is for accessing the -// API. +// AccountUserProfile: AccountUserProfiles contains properties of a Campaign +// Manager user profile. This resource is specifically for managing user +// profiles, whereas UserProfiles is for accessing the API. type AccountUserProfile struct { - // AccountId: Account ID of the user profile. This is a read-only field - // that can be left blank. + // AccountId: Account ID of the user profile. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether this user profile is active. This defaults to false, - // and must be set true on insert for the user profile to be usable. + // Active: Whether this user profile is active. This defaults to false, and + // must be set true on insert for the user profile to be usable. Active bool `json:"active,omitempty"` - - // AdvertiserFilter: Filter that describes which advertisers are visible - // to the user profile. + // AdvertiserFilter: Filter that describes which advertisers are visible to the + // user profile. AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"` - - // CampaignFilter: Filter that describes which campaigns are visible to - // the user profile. + // CampaignFilter: Filter that describes which campaigns are visible to the + // user profile. CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"` - // Comments: Comments for this user profile. Comments string `json:"comments,omitempty"` - - // Email: Email of the user profile. The email addresss must be linked - // to a Google Account. This field is required on insertion and is - // read-only after insertion. + // Email: Email of the user profile. The email addresss must be linked to a + // Google Account. This field is required on insertion and is read-only after + // insertion. Email string `json:"email,omitempty"` - - // Id: ID of the user profile. This is a read-only, auto-generated - // field. + // Id: ID of the user profile. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfile". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfile". Kind string `json:"kind,omitempty"` - - // Locale: Locale of the user profile. This is a required - // field. + // Locale: Locale of the user profile. This is a required field. // Acceptable values are: // - "cs" (Czech) // - "de" (German) @@ -1360,31 +1286,26 @@ type AccountUserProfile struct { // - "zh-CN" (Chinese Simplified) // - "zh-TW" (Chinese Traditional) Locale string `json:"locale,omitempty"` - - // Name: Name of the user profile. This is a required field. Must be - // less than 64 characters long, must be globally unique, and cannot - // contain whitespace or any of the following characters: "&;"#%,". + // Name: Name of the user profile. This is a required field. Must be less than + // 64 characters long, must be globally unique, and cannot contain whitespace + // or any of the following characters: "&;"#%,". Name string `json:"name,omitempty"` - // SiteFilter: Filter that describes which sites are visible to the user // profile. SiteFilter *ObjectFilter `json:"siteFilter,omitempty"` - - // SubaccountId: Subaccount ID of the user profile. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of the user profile. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TraffickerType: Trafficker type of this user profile. This is a - // read-only field. + // TraffickerType: Trafficker type of this user profile. This is a read-only + // field. // // Possible values: // "EXTERNAL_TRAFFICKER" // "INTERNAL_NON_TRAFFICKER" // "INTERNAL_TRAFFICKER" TraffickerType string `json:"traffickerType,omitempty"` - - // UserAccessType: User type of the user profile. This is a read-only - // field that can be left blank. + // UserAccessType: User type of the user profile. This is a read-only field + // that can be left blank. // // Possible values: // "INTERNAL_ADMINISTRATOR" @@ -1392,213 +1313,159 @@ type AccountUserProfile struct { // "READ_ONLY_SUPER_USER" // "SUPER_USER" UserAccessType string `json:"userAccessType,omitempty"` - - // UserRoleFilter: Filter that describes which user roles are visible to - // the user profile. + // UserRoleFilter: Filter that describes which user roles are visible to the + // user profile. UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"` - - // UserRoleId: User role ID of the user profile. This is a required - // field. + // UserRoleId: User role ID of the user profile. This is a required field. UserRoleId int64 `json:"userRoleId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfile) MarshalJSON() ([]byte, error) { +func (s AccountUserProfile) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountUserProfilesListResponse: Account User Profile List Response type AccountUserProfilesListResponse struct { // AccountUserProfiles: Account user profile collection. AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfilesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfilesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountUserProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountUserProfiles") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { +func (s AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfilesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountsListResponse: Account List Response type AccountsListResponse struct { // Accounts: Account collection. Accounts []*Account `json:"accounts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Accounts") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accounts") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accounts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Activities: Represents an activity group. type Activities struct { - // Filters: List of activity filters. The dimension values need to be - // all either of type "dfa:activity" or "dfa:activityGroup". + // Filters: List of activity filters. The dimension values need to be all + // either of type "dfa:activity" or "dfa:activityGroup". Filters []*DimensionValue `json:"filters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#activities. + // Kind: The kind of resource this is, in this case dfareporting#activities. Kind string `json:"kind,omitempty"` - // MetricNames: List of names of floodlight activity metrics. MetricNames []string `json:"metricNames,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filters") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Activities) MarshalJSON() ([]byte, error) { +func (s Activities) MarshalJSON() ([]byte, error) { type NoMethod Activities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Ad: Contains properties of a Campaign Manager ad. type Ad struct { - // AccountId: Account ID of this ad. This is a read-only field that can - // be left blank. + // AccountId: Account ID of this ad. This is a read-only field that can be left + // blank. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this ad is active. When true, archived must be false. Active bool `json:"active,omitempty"` - // AdvertiserId: Advertiser ID of this ad. This is a required field on // insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Archived: Whether this ad is archived. When true, active must be - // false. + // Archived: Whether this ad is archived. When true, active must be false. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentId: Audience segment ID that is being targeted for - // this ad. Applicable when type is AD_SERVING_STANDARD_AD. + // AudienceSegmentId: Audience segment ID that is being targeted for this ad. + // Applicable when type is AD_SERVING_STANDARD_AD. AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"` - - // CampaignId: Campaign ID of this ad. This is a required field on - // insertion. + // CampaignId: Campaign ID of this ad. This is a required field on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ClickThroughUrl: Click-through URL for this ad. This is a required - // field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. + // ClickThroughUrl: Click-through URL for this ad. This is a required field on + // insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // ClickThroughUrlSuffixProperties: Click-through URL suffix properties - // for this ad. Applies to the URL in the ad or (if overriding ad - // properties) the URL in the creative. + // ClickThroughUrlSuffixProperties: Click-through URL suffix properties for + // this ad. Applies to the URL in the ad or (if overriding ad properties) the + // URL in the creative. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - // Comments: Comments for this ad. Comments string `json:"comments,omitempty"` - // Compatibility: Compatibility of this ad. Applicable when type is - // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to - // either rendering on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are only used for existing default ads. New mobile - // placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and - // default ads created for those placements will be limited to those - // compatibility types. IN_STREAM_VIDEO refers to rendering in-stream - // video ads developed with the VAST standard. + // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either + // rendering on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for + // existing default ads. New mobile placements must be assigned DISPLAY or + // DISPLAY_INTERSTITIAL and default ads created for those placements will be + // limited to those compatibility types. IN_STREAM_VIDEO refers to rendering + // in-stream video ads developed with the VAST standard. // // Possible values: // "APP" @@ -1608,129 +1475,99 @@ type Ad struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - - // CreateInfo: Information about the creation of this ad. This is a - // read-only field. + // CreateInfo: Information about the creation of this ad. This is a read-only + // field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this ad. - // Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment - // per creative group number is allowed for a maximum of two - // assignments. + // CreativeGroupAssignments: Creative group assignments for this ad. Applicable + // when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative + // group number is allowed for a maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeRotation: Creative rotation for this ad. Applicable when type - // is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or - // AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field - // should have exactly one creativeAssignment. + // CreativeRotation: Creative rotation for this ad. Applicable when type is + // AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When + // type is AD_SERVING_DEFAULT_AD, this field should have exactly one + // creativeAssignment. CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"` - - // DayPartTargeting: Time and day targeting information for this ad. - // This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // DayPartTargeting: Time and day targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - - // DefaultClickThroughEventTagProperties: Default click-through event - // tag properties for this ad. + // DefaultClickThroughEventTagProperties: Default click-through event tag + // properties for this ad. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - - // DeliverySchedule: Delivery schedule information for this ad. - // Applicable when type is AD_SERVING_STANDARD_AD or - // AD_SERVING_TRACKING. This field along with subfields priority and - // impressionRatio are required on insertion when type is - // AD_SERVING_STANDARD_AD. + // DeliverySchedule: Delivery schedule information for this ad. Applicable when + // type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with + // subfields priority and impressionRatio are required on insertion when type + // is AD_SERVING_STANDARD_AD. DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"` - - // DynamicClickTracker: Whether this ad is a dynamic click tracker. - // Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required - // field on insert, and is read-only after insert. + // DynamicClickTracker: Whether this ad is a dynamic click tracker. Applicable + // when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, + // and is read-only after insert. DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"` - - // EndTime: Date and time that this ad should stop serving. Must be - // later than the start time. This is a required field on insertion. + // EndTime: Date and time that this ad should stop serving. Must be later than + // the start time. This is a required field on insertion. EndTime string `json:"endTime,omitempty"` - // EventTagOverrides: Event tag overrides for this ad. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - - // GeoTargeting: Geographical targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // GeoTargeting: Geographical targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - // Id: ID of this ad. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this ad. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyValueTargetingExpression: Key-value targeting information for this - // ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // KeyValueTargetingExpression: Key-value targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ad". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ad". Kind string `json:"kind,omitempty"` - - // LanguageTargeting: Language targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // LanguageTargeting: Language targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this ad. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this ad. + // This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this ad. This is a required field and must be less than - // 256 characters long. + // Name: Name of this ad. This is a required field and must be less than 256 + // characters long. Name string `json:"name,omitempty"` - // PlacementAssignments: Placement assignments for this ad. PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"` - - // RemarketingListExpression: Remarketing list targeting expression for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // RemarketingListExpression: Remarketing list targeting expression for this + // ad. This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"` - // Size: Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether this ad is ssl compliant. This is a read-only - // field that is auto-generated when the ad is inserted or updated. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslRequired: Whether this ad requires ssl. This is a read-only field + // SslCompliant: Whether this ad is ssl compliant. This is a read-only field // that is auto-generated when the ad is inserted or updated. + SslCompliant bool `json:"sslCompliant,omitempty"` + // SslRequired: Whether this ad requires ssl. This is a read-only field that is + // auto-generated when the ad is inserted or updated. SslRequired bool `json:"sslRequired,omitempty"` - - // StartTime: Date and time that this ad should start serving. If - // creating an ad, this field must be a time in the future. This is a - // required field on insertion. + // StartTime: Date and time that this ad should start serving. If creating an + // ad, this field must be a time in the future. This is a required field on + // insertion. StartTime string `json:"startTime,omitempty"` - - // SubaccountId: Subaccount ID of this ad. This is a read-only field - // that can be left blank. + // SubaccountId: Subaccount ID of this ad. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TargetingTemplateId: Targeting template ID, used to apply - // preconfigured targeting information to this ad. This cannot be set - // while any of dayPartTargeting, geoTargeting, - // keyValueTargetingExpression, languageTargeting, - // remarketingListExpression, or technologyTargeting are set. Applicable - // when type is AD_SERVING_STANDARD_AD. + // TargetingTemplateId: Targeting template ID, used to apply preconfigured + // targeting information to this ad. This cannot be set while any of + // dayPartTargeting, geoTargeting, keyValueTargetingExpression, + // languageTargeting, remarketingListExpression, or technologyTargeting are + // set. Applicable when type is AD_SERVING_STANDARD_AD. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // TechnologyTargeting: Technology platform targeting information for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // TechnologyTargeting: Technology platform targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - - // Type: Type of ad. This is a required field on insertion. Note that - // default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see - // Creative resource). + // Type: Type of ad. This is a required field on insertion. Note that default + // ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative + // resource). // // Possible values: // "AD_SERVING_CLICK_TRACKER" @@ -1739,91 +1576,71 @@ type Ad struct { // "AD_SERVING_TRACKING" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Ad) MarshalJSON() ([]byte, error) { +func (s Ad) MarshalJSON() ([]byte, error) { type NoMethod Ad - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdBlockingConfiguration: Campaign ad blocking settings. type AdBlockingConfiguration struct { - // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is - // a required field when overrideClickThroughUrl is set to true. + // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is a + // required field when overrideClickThroughUrl is set to true. ClickThroughUrl string `json:"clickThroughUrl,omitempty"` - - // CreativeBundleId: ID of a creative bundle to use for this campaign. - // If set, brand-neutral ads will select creatives from this bundle. - // Otherwise, a default transparent pixel will be used. + // CreativeBundleId: ID of a creative bundle to use for this campaign. If set, + // brand-neutral ads will select creatives from this bundle. Otherwise, a + // default transparent pixel will be used. CreativeBundleId int64 `json:"creativeBundleId,omitempty,string"` - // Enabled: Whether this campaign has enabled ad blocking. When true, ad // blocking is enabled for placements in the campaign, but this may be // overridden by site and placement settings. When false, ad blocking is - // disabled for all placements under the campaign, regardless of site - // and placement settings. + // disabled for all placements under the campaign, regardless of site and + // placement settings. Enabled bool `json:"enabled,omitempty"` - - // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through - // URL comes from the campaign's creative bundle or the override URL. - // Must be set to true if ad blocking is enabled and no creative bundle - // is configured. + // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through URL + // comes from the campaign's creative bundle or the override URL. Must be set + // to true if ad blocking is enabled and no creative bundle is configured. OverrideClickThroughUrl bool `json:"overrideClickThroughUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdBlockingConfiguration) MarshalJSON() ([]byte, error) { +func (s AdBlockingConfiguration) MarshalJSON() ([]byte, error) { type NoMethod AdBlockingConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdSlot: Ad Slot type AdSlot struct { // Comment: Comment for this ad slot. Comment string `json:"comment,omitempty"` - - // Compatibility: Ad slot compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile - // devices or in mobile apps for regular or interstitial ads - // respectively. APP and APP_INTERSTITIAL are for rendering in mobile - // apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // Compatibility: Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer + // to rendering either on desktop, mobile devices or in mobile apps for regular + // or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads // developed with the VAST standard. // // Possible values: @@ -1834,1314 +1651,983 @@ type AdSlot struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - // Height: Height of this ad slot. Height int64 `json:"height,omitempty,string"` - - // LinkedPlacementId: ID of the placement from an external platform that - // is linked to this ad slot. + // LinkedPlacementId: ID of the placement from an external platform that is + // linked to this ad slot. LinkedPlacementId int64 `json:"linkedPlacementId,omitempty,string"` - // Name: Name of this ad slot. Name string `json:"name,omitempty"` - // PaymentSourceType: Payment source type of this ad slot. // // Possible values: // "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID" // "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" PaymentSourceType string `json:"paymentSourceType,omitempty"` - // Primary: Primary ad slot of a roadblock inventory item. Primary bool `json:"primary,omitempty"` - // Width: Width of this ad slot. Width int64 `json:"width,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Comment") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Comment") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Comment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Comment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdSlot) MarshalJSON() ([]byte, error) { +func (s AdSlot) MarshalJSON() ([]byte, error) { type NoMethod AdSlot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdsListResponse: Ad List Response type AdsListResponse struct { // Ads: Ad collection. Ads []*Ad `json:"ads,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#adsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#adsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Ads") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ads") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Ads") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Ads") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdsListResponse) MarshalJSON() ([]byte, error) { +func (s AdsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Advertiser: Contains properties of a Campaign Manager advertiser. type Advertiser struct { - // AccountId: Account ID of this advertiser.This is a read-only field - // that can be left blank. + // AccountId: Account ID of this advertiser.This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserGroupId: ID of the advertiser group this advertiser belongs - // to. You can group advertisers for reporting purposes, allowing you to - // see aggregated information for all advertisers in each group. + // AdvertiserGroupId: ID of the advertiser group this advertiser belongs to. + // You can group advertisers for reporting purposes, allowing you to see + // aggregated information for all advertisers in each group. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // ClickThroughUrlSuffix: Suffix added to click-through URL of ad - // creative associations under this advertiser. Must be less than 129 - // characters long. + // ClickThroughUrlSuffix: Suffix added to click-through URL of ad creative + // associations under this advertiser. Must be less than 129 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply by default to the landing pages of this advertiser's campaigns. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply by + // default to the landing pages of this advertiser's campaigns. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // DefaultEmail: Default email address used in sender field for tag - // emails. + // DefaultEmail: Default email address used in sender field for tag emails. DefaultEmail string `json:"defaultEmail,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // advertiser. The floodlight configuration ID will be created - // automatically, so on insert this field should be left blank. This - // field can be set to another advertiser's floodlight configuration ID - // in order to share that advertiser's floodlight configuration with - // this advertiser, so long as: + // FloodlightConfigurationId: Floodlight configuration ID of this advertiser. + // The floodlight configuration ID will be created automatically, so on insert + // this field should be left blank. This field can be set to another + // advertiser's floodlight configuration ID in order to share that advertiser's + // floodlight configuration with this advertiser, so long as: // - This advertiser's original floodlight configuration is not already // associated with floodlight activities or floodlight activity groups. - // - // - This advertiser's original floodlight configuration is not already - // shared with another advertiser. + // - This advertiser's original floodlight configuration is not already shared + // with another advertiser. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this advertiser. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this advertiser. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this advertiser. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiser". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser. This is a required field and must be - // less than 256 characters long and unique among advertisers of the - // same account. + // Name: Name of this advertiser. This is a required field and must be less + // than 256 characters long and unique among advertisers of the same account. Name string `json:"name,omitempty"` - - // OriginalFloodlightConfigurationId: Original floodlight configuration - // before any sharing occurred. Set the floodlightConfigurationId of - // this advertiser to originalFloodlightConfigurationId to unshare the - // advertiser's current floodlight configuration. You cannot unshare an - // advertiser's floodlight configuration if the shared configuration has - // activities associated with any campaign or placement. + // OriginalFloodlightConfigurationId: Original floodlight configuration before + // any sharing occurred. Set the floodlightConfigurationId of this advertiser + // to originalFloodlightConfigurationId to unshare the advertiser's current + // floodlight configuration. You cannot unshare an advertiser's floodlight + // configuration if the shared configuration has activities associated with any + // campaign or placement. OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"` - // Status: Status of this advertiser. // // Possible values: // "APPROVED" // "ON_HOLD" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this advertiser.This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this advertiser.This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Suspended: Suspension status of this advertiser. Suspended bool `json:"suspended,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Advertiser) MarshalJSON() ([]byte, error) { +func (s Advertiser) MarshalJSON() ([]byte, error) { type NoMethod Advertiser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroup: Groups advertisers together so that reports can be // generated for the entire group at once. type AdvertiserGroup struct { - // AccountId: Account ID of this advertiser group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this advertiser group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this advertiser group. This is a read-only, auto-generated - // field. + // Id: ID of this advertiser group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser group. This is a required field and - // must be less than 256 characters long and unique among advertiser - // groups of the same account. + // Name: Name of this advertiser group. This is a required field and must be + // less than 256 characters long and unique among advertiser groups of the same + // account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroup) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroup) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroupsListResponse: Advertiser Group List Response type AdvertiserGroupsListResponse struct { // AdvertiserGroups: Advertiser group collection. AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserGroups") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserLandingPagesListResponse: Landing Page List Response type AdvertiserLandingPagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserLandingPagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserLandingPagesListResponse". Kind string `json:"kind,omitempty"` - // LandingPages: Landing page collection LandingPages []*LandingPage `json:"landingPages,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserLandingPagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertisersListResponse: Advertiser List Response type AdvertisersListResponse struct { // Advertisers: Advertiser collection. Advertisers []*Advertiser `json:"advertisers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertisersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertisersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Advertisers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Advertisers") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Advertisers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertisersListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertisersListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertisersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegment: Audience Segment. type AudienceSegment struct { - // Allocation: Weight allocated to this segment. The weight assigned - // will be understood in proportion to the weights assigned to other - // segments in the same segment group. Acceptable values are 1 to 1000, - // inclusive. + // Allocation: Weight allocated to this segment. The weight assigned will be + // understood in proportion to the weights assigned to other segments in the + // same segment group. Acceptable values are 1 to 1000, inclusive. Allocation int64 `json:"allocation,omitempty"` - - // Id: ID of this audience segment. This is a read-only, auto-generated - // field. + // Id: ID of this audience segment. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment. This is a required field and - // must be less than 65 characters long. + // Name: Name of this audience segment. This is a required field and must be + // less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Allocation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Allocation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Allocation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegment) MarshalJSON() ([]byte, error) { +func (s AudienceSegment) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegmentGroup: Audience Segment Group. type AudienceSegmentGroup struct { - // AudienceSegments: Audience segments assigned to this group. The - // number of segments must be between 2 and 100. + // AudienceSegments: Audience segments assigned to this group. The number of + // segments must be between 2 and 100. AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"` - - // Id: ID of this audience segment group. This is a read-only, - // auto-generated field. + // Id: ID of this audience segment group. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment group. This is a required field - // and must be less than 65 characters long. + // Name: Name of this audience segment group. This is a required field and must + // be less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudienceSegments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudienceSegments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AudienceSegments") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegmentGroup) MarshalJSON() ([]byte, error) { +func (s AudienceSegmentGroup) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegmentGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Browser: Contains information about a browser that can be targeted by -// ads. +// Browser: Contains information about a browser that can be targeted by ads. type Browser struct { - // BrowserVersionId: ID referring to this grouping of browser and - // version numbers. This is the ID used for targeting. + // BrowserVersionId: ID referring to this grouping of browser and version + // numbers. This is the ID used for targeting. BrowserVersionId int64 `json:"browserVersionId,omitempty,string"` - // DartId: DART ID of this browser. This is the ID used when generating // reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browser". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version number (leftmost number) of this browser. - // For example, for Chrome 5.0.376.86 beta, this field should be set to - // 5. An asterisk (*) may be used to target any version number, and a - // question mark (?) may be used to target cases where the version - // number cannot be identified. For example, Chrome *.* targets any - // version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MajorVersion: Major version number (leftmost number) of this browser. For + // example, for Chrome 5.0.376.86 beta, this field should be set to 5. An + // asterisk (*) may be used to target any version number, and a question mark + // (?) may be used to target cases where the version number cannot be + // identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, + // 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? + // targets cases where the ad server knows the browser is Firefox but can't + // tell which version it is. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version number (number after first dot on left) - // of this browser. For example, for Chrome 5.0.375.86 beta, this field - // should be set to 0. An asterisk (*) may be used to target any version - // number, and a question mark (?) may be used to target cases where the - // version number cannot be identified. For example, Chrome *.* targets - // any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MinorVersion: Minor version number (number after first dot on left) of this + // browser. For example, for Chrome 5.0.375.86 beta, this field should be set + // to 0. An asterisk (*) may be used to target any version number, and a + // question mark (?) may be used to target cases where the version number + // cannot be identified. For example, Chrome *.* targets any version of Chrome: + // 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. + // Firefox ?.? targets cases where the ad server knows the browser is Firefox + // but can't tell which version it is. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this browser. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "BrowserVersionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BrowserVersionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BrowserVersionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Browser) MarshalJSON() ([]byte, error) { +func (s Browser) MarshalJSON() ([]byte, error) { type NoMethod Browser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BrowsersListResponse: Browser List Response type BrowsersListResponse struct { // Browsers: Browser collection. Browsers []*Browser `json:"browsers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browsersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browsersListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BrowsersListResponse) MarshalJSON() ([]byte, error) { +func (s BrowsersListResponse) MarshalJSON() ([]byte, error) { type NoMethod BrowsersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Campaign: Contains properties of a Campaign Manager campaign. type Campaign struct { - // AccountId: Account ID of this campaign. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this campaign. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - // AdBlockingConfiguration: Ad blocking settings for this campaign. AdBlockingConfiguration *AdBlockingConfiguration `json:"adBlockingConfiguration,omitempty"` - // AdditionalCreativeOptimizationConfigurations: Additional creative // optimization configurations for the campaign. AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"` - // AdvertiserGroupId: Advertiser group ID of the associated advertiser. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this campaign. This is a required - // field. + // AdvertiserId: Advertiser ID of this campaign. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of - // this campaign. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of this + // campaign. This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this campaign has been archived. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentGroups: Audience segment groups assigned to this - // campaign. Cannot have more than 300 segment groups. + // AudienceSegmentGroups: Audience segment groups assigned to this campaign. + // Cannot have more than 300 segment groups. AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"` - - // BillingInvoiceCode: Billing invoice code included in the Campaign - // Manager client billing invoices associated with the campaign. + // BillingInvoiceCode: Billing invoice code included in the Campaign Manager + // client billing invoices associated with the campaign. BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"` - // ClickThroughUrlSuffixProperties: Click-through URL suffix override // properties for this campaign. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - - // Comment: Arbitrary comments about this campaign. Must be less than - // 256 characters long. + // Comment: Arbitrary comments about this campaign. Must be less than 256 + // characters long. Comment string `json:"comment,omitempty"` - - // CreateInfo: Information about the creation of this campaign. This is - // a read-only field. + // CreateInfo: Information about the creation of this campaign. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - // CreativeGroupIds: List of creative group IDs that are assigned to the // campaign. CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"` - - // CreativeOptimizationConfiguration: Creative optimization - // configuration for the campaign. + // CreativeOptimizationConfiguration: Creative optimization configuration for + // the campaign. CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"` - - // DefaultClickThroughEventTagProperties: Click-through event tag ID - // override properties for this campaign. + // DefaultClickThroughEventTagProperties: Click-through event tag ID override + // properties for this campaign. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - // DefaultLandingPageId: The default landing page ID for this campaign. DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"` - - // EndDate: Date on which the campaign will stop running. On insert, the - // end date must be today or a future date. The end date must be later - // than or be the same as the start date. If, for example, you set - // 6/25/2015 as both the start and end dates, the effective campaign run - // date is just that day only, 6/25/2015. The hours, minutes, and - // seconds of the end date should not be set, as doing so will result in - // an error. This is a required field. + // EndDate: Date on which the campaign will stop running. On insert, the end + // date must be today or a future date. The end date must be later than or be + // the same as the start date. If, for example, you set 6/25/2015 as both the + // start and end dates, the effective campaign run date is just that day only, + // 6/25/2015. The hours, minutes, and seconds of the end date should not be + // set, as doing so will result in an error. This is a required field. EndDate string `json:"endDate,omitempty"` - - // EventTagOverrides: Overrides that can be used to activate or - // deactivate advertiser event tags. + // EventTagOverrides: Overrides that can be used to activate or deactivate + // advertiser event tags. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - // ExternalId: External ID for this campaign. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this campaign. This is a read-only auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this campaign. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this campaign. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaign". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaign". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this campaign. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // campaign. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this campaign. This is a required field and must be - // less than 256 characters long and unique among campaigns of the same - // advertiser. + // Name: Name of this campaign. This is a required field and must be less than + // 256 characters long and unique among campaigns of the same advertiser. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether Nielsen reports are enabled for this - // campaign. + // NielsenOcrEnabled: Whether Nielsen reports are enabled for this campaign. NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - - // StartDate: Date on which the campaign starts running. The start date - // can be any date. The hours, minutes, and seconds of the start date - // should not be set, as doing so will result in an error. This is a - // required field. + // StartDate: Date on which the campaign starts running. The start date can be + // any date. The hours, minutes, and seconds of the start date should not be + // set, as doing so will result in an error. This is a required field. StartDate string `json:"startDate,omitempty"` - - // SubaccountId: Subaccount ID of this campaign. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this campaign. This is a read-only field that + // can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TraffickerEmails: Campaign trafficker contact emails. TraffickerEmails []string `json:"traffickerEmails,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Campaign) MarshalJSON() ([]byte, error) { +func (s Campaign) MarshalJSON() ([]byte, error) { type NoMethod Campaign - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociation: Identifies a creative which has been -// associated with a given campaign. +// CampaignCreativeAssociation: Identifies a creative which has been associated +// with a given campaign. type CampaignCreativeAssociation struct { - // CreativeId: ID of the creative associated with the campaign. This is - // a required field. + // CreativeId: ID of the creative associated with the campaign. This is a + // required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociation". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociation". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreativeId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociationsListResponse: Campaign Creative -// Association List Response +// CampaignCreativeAssociationsListResponse: Campaign Creative Association List +// Response type CampaignCreativeAssociationsListResponse struct { - // CampaignCreativeAssociations: Campaign creative association - // collection + // CampaignCreativeAssociations: Campaign creative association collection CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociationsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "CampaignCreativeAssociations") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CampaignCreativeAssociations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CampaignsListResponse: Campaign List Response type CampaignsListResponse struct { // Campaigns: Campaign collection. Campaigns []*Campaign `json:"campaigns,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Campaigns") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Campaigns") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Campaigns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLog: Describes a change that a user has made to a resource. type ChangeLog struct { // AccountId: Account ID of the modified object. AccountId int64 `json:"accountId,omitempty,string"` - // Action: Action which caused the change. Action string `json:"action,omitempty"` - // ChangeTime: Time when the object was modified. ChangeTime string `json:"changeTime,omitempty"` - // FieldName: Field name of the object which changed. FieldName string `json:"fieldName,omitempty"` - // Id: ID of this change log. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLog". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLog". Kind string `json:"kind,omitempty"` - // NewValue: New value of the object field. NewValue string `json:"newValue,omitempty"` - // ObjectId: ID of the object of this change log. The object could be a // campaign, placement, ad, or other type. ObjectId int64 `json:"objectId,omitempty,string"` - // ObjectType: Object type of the change log. ObjectType string `json:"objectType,omitempty"` - // OldValue: Old value of the object field. OldValue string `json:"oldValue,omitempty"` - // SubaccountId: Subaccount ID of the modified object. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TransactionId: Transaction ID of this change log. When a single API - // call results in many changes, each change will have a separate ID in - // the change log but will share the same transactionId. + // TransactionId: Transaction ID of this change log. When a single API call + // results in many changes, each change will have a separate ID in the change + // log but will share the same transactionId. TransactionId int64 `json:"transactionId,omitempty,string"` - // UserProfileId: ID of the user who modified the object. UserProfileId int64 `json:"userProfileId,omitempty,string"` - - // UserProfileName: User profile name of the user who modified the - // object. + // UserProfileName: User profile name of the user who modified the object. UserProfileName string `json:"userProfileName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLog) MarshalJSON() ([]byte, error) { +func (s ChangeLog) MarshalJSON() ([]byte, error) { type NoMethod ChangeLog - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLogsListResponse: Change Log List Response type ChangeLogsListResponse struct { // ChangeLogs: Change log collection. ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLogsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLogsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ChangeLogs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChangeLogs") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChangeLogs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLogsListResponse) MarshalJSON() ([]byte, error) { +func (s ChangeLogsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ChangeLogsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CitiesListResponse: City List Response type CitiesListResponse struct { // Cities: City collection. Cities []*City `json:"cities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#citiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#citiesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CitiesListResponse) MarshalJSON() ([]byte, error) { +func (s CitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // City: Contains information about a city that can be targeted by ads. type City struct { // CountryCode: Country code of the country to which this city belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this city belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this city. This is the ID used for targeting and // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#city". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#city". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro region code of the metro region (DMA) to which this - // city belongs. + // MetroCode: Metro region code of the metro region (DMA) to which this city + // belongs. MetroCode string `json:"metroCode,omitempty"` - // MetroDmaId: ID of the metro region (DMA) to which this city belongs. MetroDmaId int64 `json:"metroDmaId,omitempty,string"` - // Name: Name of this city. Name string `json:"name,omitempty"` - // RegionCode: Region code of the region to which this city belongs. RegionCode string `json:"regionCode,omitempty"` - // RegionDartId: DART ID of the region to which this city belongs. RegionDartId int64 `json:"regionDartId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *City) MarshalJSON() ([]byte, error) { +func (s City) MarshalJSON() ([]byte, error) { type NoMethod City - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickTag: Creative Click Tag. type ClickTag struct { - // ClickThroughUrl: Parameter value for the specified click tag. This - // field contains a click-through url. + // ClickThroughUrl: Parameter value for the specified click tag. This field + // contains a click-through url. ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // EventName: Advertiser event name associated with the click tag. This - // field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // EventName: Advertiser event name associated with the click tag. This field + // is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. EventName string `json:"eventName,omitempty"` - - // Name: Parameter name for the specified click tag. For - // DISPLAY_IMAGE_GALLERY creative assets, this field must match the - // value of the creative asset's creativeAssetId.name field. + // Name: Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY + // creative assets, this field must match the value of the creative asset's + // creativeAssetId.name field. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickTag) MarshalJSON() ([]byte, error) { +func (s ClickTag) MarshalJSON() ([]byte, error) { type NoMethod ClickTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrl: Click-through URL type ClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - // - If defaultLandingPage is enabled then the campaign's default - // landing page URL is assigned to this field. - // - If defaultLandingPage is not enabled and a landingPageId is - // specified then that landing page's URL is assigned to this field. - // - If neither of the above cases apply, then the customClickThroughUrl - // is assigned to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: + // - If defaultLandingPage is enabled then the campaign's default landing page + // URL is assigned to this field. + // - If defaultLandingPage is not enabled and a landingPageId is specified then + // that landing page's URL is assigned to this field. + // - If neither of the above cases apply, then the customClickThroughUrl is + // assigned to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the - // defaultLandingPage field is set to false and the landingPageId field - // is left unset. + // defaultLandingPage field is set to false and the landingPageId field is left + // unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - - // DefaultLandingPage: Whether the campaign default landing page is - // used. + // DefaultLandingPage: Whether the campaign default landing page is used. DefaultLandingPage bool `json:"defaultLandingPage,omitempty"` - - // LandingPageId: ID of the landing page for the click-through URL. - // Applicable if the defaultLandingPage field is set to false. + // LandingPageId: ID of the landing page for the click-through URL. Applicable + // if the defaultLandingPage field is set to false. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrlSuffixProperties: Click Through URL Suffix settings. type ClickThroughUrlSuffixProperties struct { - // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads - // in this entity's scope. Must be less than 128 characters long. + // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads in this + // entity's scope. Must be less than 128 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // OverrideInheritedSuffix: Whether this entity should override the - // inherited click-through URL suffix with its own defined value. + // OverrideInheritedSuffix: Whether this entity should override the inherited + // click-through URL suffix with its own defined value. OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClickThroughUrlSuffix") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClickThroughUrlSuffix") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClickThroughUrlSuffix") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrlSuffixProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionClickThroughOverride: Companion Click-through override. type CompanionClickThroughOverride struct { - // ClickThroughUrl: Click-through URL of this companion click-through - // override. + // ClickThroughUrl: Click-through URL of this companion click-through override. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CreativeId: ID of the creative for this companion click-through - // override. + // CreativeId: ID of the creative for this companion click-through override. CreativeId int64 `json:"creativeId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { +func (s CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { type NoMethod CompanionClickThroughOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionSetting: Companion Settings type CompanionSetting struct { - // CompanionsDisabled: Whether companions are disabled for this - // placement. + // CompanionsDisabled: Whether companions are disabled for this placement. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - - // EnabledSizes: Whitelist of companion sizes to be served to this - // placement. Set this list to null or empty to serve all companion - // sizes. + // EnabledSizes: Whitelist of companion sizes to be served to this placement. + // Set this list to null or empty to serve all companion sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` - // ImageOnly: Whether to serve only static images as companions. ImageOnly bool `json:"imageOnly,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#companionSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#companionSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionsDisabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionsDisabled") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionSetting) MarshalJSON() ([]byte, error) { +func (s CompanionSetting) MarshalJSON() ([]byte, error) { type NoMethod CompanionSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompatibleFields: Represents a response to the queryCompatibleFields -// method. +// CompatibleFields: Represents a response to the queryCompatibleFields method. type CompatibleFields struct { // CrossDimensionReachReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type - // "CROSS_DIMENSION_REACH". + // compatible to be selected for a report of type "CROSS_DIMENSION_REACH". CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"` - - // FloodlightReportCompatibleFields: Contains items that are compatible - // to be selected for a report of type "FLOODLIGHT". + // FloodlightReportCompatibleFields: Contains items that are compatible to be + // selected for a report of type "FLOODLIGHT". FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#compatibleFields. Kind string `json:"kind,omitempty"` - - // PathToConversionReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type "PATH_TO_CONVERSION". + // PathToConversionReportCompatibleFields: Contains items that are compatible + // to be selected for a report of type "PATH_TO_CONVERSION". PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"` - // ReachReportCompatibleFields: Contains items that are compatible to be // selected for a report of type "REACH". ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"` - - // ReportCompatibleFields: Contains items that are compatible to be - // selected for a report of type "STANDARD". + // ReportCompatibleFields: Contains items that are compatible to be selected + // for a report of type "STANDARD". ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to unconditionally - // include in API requests. By default, fields with empty values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to unconditionally include in + // API requests. By default, fields with empty or default values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted from + // API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields + // for more details. NullFields []string `json:"-"` } -func (s *CompatibleFields) MarshalJSON() ([]byte, error) { +func (s CompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConnectionType: Contains information about an internet connection -// type that can be targeted by ads. Clients can use the connection type -// to target mobile vs. broadband users. +// ConnectionType: Contains information about an internet connection type that +// can be targeted by ads. Clients can use the connection type to target mobile +// vs. broadband users. type ConnectionType struct { // Id: ID of this connection type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionType". Kind string `json:"kind,omitempty"` - // Name: Name of this connection type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionType) MarshalJSON() ([]byte, error) { +func (s ConnectionType) MarshalJSON() ([]byte, error) { type NoMethod ConnectionType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConnectionTypesListResponse: Connection Type List Response @@ -3149,231 +2635,173 @@ type ConnectionTypesListResponse struct { // ConnectionTypes: Collection of connection types such as broadband and // mobile. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionTypesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConnectionTypes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConnectionTypes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConnectionTypes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { +func (s ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ConnectionTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContentCategoriesListResponse: Content Category List Response type ContentCategoriesListResponse struct { // ContentCategories: Content category collection. ContentCategories []*ContentCategory `json:"contentCategories,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategoriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategoriesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ContentCategories") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentCategories") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentCategories") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentCategories") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { +func (s ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ContentCategoriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentCategory: Organizes placements according to the contents of -// their associated webpages. +// ContentCategory: Organizes placements according to the contents of their +// associated webpages. type ContentCategory struct { - // AccountId: Account ID of this content category. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this content category. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this content category. This is a read-only, auto-generated - // field. + // Id: ID of this content category. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategory". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategory". Kind string `json:"kind,omitempty"` - - // Name: Name of this content category. This is a required field and - // must be less than 256 characters long and unique among content - // categories of the same account. + // Name: Name of this content category. This is a required field and must be + // less than 256 characters long and unique among content categories of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategory) MarshalJSON() ([]byte, error) { +func (s ContentCategory) MarshalJSON() ([]byte, error) { type NoMethod ContentCategory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Conversion: A Conversion represents when a user successfully performs -// a desired action after seeing an ad. +// Conversion: A Conversion represents when a user successfully performs a +// desired action after seeing an ad. type Conversion struct { - // ChildDirectedTreatment: Whether this particular request may come from - // a user under the age of 13, under COPPA compliance. + // ChildDirectedTreatment: Whether this particular request may come from a user + // under the age of 13, under COPPA compliance. ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"` - // CustomVariables: Custom floodlight variables. CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"` - // EncryptedUserId: The alphanumeric encrypted user ID. When set, - // encryptionInfo should also be specified. This field is mutually - // exclusive with encryptedUserIdCandidates[], mobileDeviceId and gclid. - // This or encryptedUserIdCandidates[] or mobileDeviceId or gclid is a - // required field. + // encryptionInfo should also be specified. This field is mutually exclusive + // with encryptedUserIdCandidates[], mobileDeviceId and gclid. This or + // encryptedUserIdCandidates[] or mobileDeviceId or gclid is a required field. EncryptedUserId string `json:"encryptedUserId,omitempty"` - - // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user - // IDs. Any user ID with exposure prior to the conversion timestamp will - // be used in the inserted conversion. If no such user ID is found then - // the conversion will be rejected with NO_COOKIE_MATCH_FOUND error. - // When set, encryptionInfo should also be specified. This field may - // only be used when calling batchinsert; it is not supported by - // batchupdate. This field is mutually exclusive with encryptedUserId, - // mobileDeviceId and gclid. This or encryptedUserId or mobileDeviceId - // or gclid is a required field. + // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user IDs. + // Any user ID with exposure prior to the conversion timestamp will be used in + // the inserted conversion. If no such user ID is found then the conversion + // will be rejected with NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo + // should also be specified. This field may only be used when calling + // batchinsert; it is not supported by batchupdate. This field is mutually + // exclusive with encryptedUserId, mobileDeviceId and gclid. This or + // encryptedUserId or mobileDeviceId or gclid is a required field. EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"` - - // FloodlightActivityId: Floodlight Activity ID of this conversion. This - // is a required field. + // FloodlightActivityId: Floodlight Activity ID of this conversion. This is a + // required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightConfigurationId: Floodlight Configuration ID of this - // conversion. This is a required field. + // FloodlightConfigurationId: Floodlight Configuration ID of this conversion. + // This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - // Gclid: The Google click ID. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This - // or encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId - // is a required field. + // encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This or + // encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId is a + // required field. Gclid string `json:"gclid,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversion". Kind string `json:"kind,omitempty"` - - // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to - // true, the conversion will be used for reporting but not targeting. - // This will prevent remarketing. + // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to true, the + // conversion will be used for reporting but not targeting. This will prevent + // remarketing. LimitAdTracking bool `json:"limitAdTracking,omitempty"` - - // MobileDeviceId: The mobile device ID. This field is mutually - // exclusive with encryptedUserId, encryptedUserIdCandidates[] and - // gclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // gclid is a required field. + // MobileDeviceId: The mobile device ID. This field is mutually exclusive with + // encryptedUserId, encryptedUserIdCandidates[] and gclid. This or + // encryptedUserId or encryptedUserIdCandidates[] or gclid is a required field. MobileDeviceId string `json:"mobileDeviceId,omitempty"` - - // NonPersonalizedAd: Whether the conversion was for a non personalized - // ad. + // NonPersonalizedAd: Whether the conversion was for a non personalized ad. NonPersonalizedAd bool `json:"nonPersonalizedAd,omitempty"` - // Ordinal: The ordinal of the conversion. Use this field to control how - // conversions of the same user and day are de-duplicated. This is a - // required field. + // conversions of the same user and day are de-duplicated. This is a required + // field. Ordinal string `json:"ordinal,omitempty"` - // Quantity: The quantity of the conversion. Quantity int64 `json:"quantity,omitempty,string"` - - // TimestampMicros: The timestamp of conversion, in Unix epoch micros. - // This is a required field. + // TimestampMicros: The timestamp of conversion, in Unix epoch micros. This is + // a required field. TimestampMicros int64 `json:"timestampMicros,omitempty,string"` - - // TreatmentForUnderage: Whether this particular request may come from a - // user under the age of 16 (may differ by country), under compliance - // with the European Union's General Data Protection Regulation (GDPR). + // TreatmentForUnderage: Whether this particular request may come from a user + // under the age of 16 (may differ by country), under compliance with the + // European Union's General Data Protection Regulation (GDPR). TreatmentForUnderage bool `json:"treatmentForUnderage,omitempty"` - // Value: The value of the conversion. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ChildDirectedTreatment") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ChildDirectedTreatment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChildDirectedTreatment") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ChildDirectedTreatment") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Conversion) MarshalJSON() ([]byte, error) { +func (s Conversion) MarshalJSON() ([]byte, error) { type NoMethod Conversion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Conversion) UnmarshalJSON(data []byte) error { @@ -3390,8 +2818,8 @@ func (s *Conversion) UnmarshalJSON(data []byte) error { return nil } -// ConversionError: The error code and description for a conversion that -// failed to insert or update. +// ConversionError: The error code and description for a conversion that failed +// to insert or update. type ConversionError struct { // Code: The error code. // @@ -3401,357 +2829,274 @@ type ConversionError struct { // "NOT_FOUND" // "PERMISSION_DENIED" Code string `json:"code,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionError". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionError". Kind string `json:"kind,omitempty"` - // Message: A description of the error. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionError) MarshalJSON() ([]byte, error) { +func (s ConversionError) MarshalJSON() ([]byte, error) { type NoMethod ConversionError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConversionStatus: The original conversion that was inserted or -// updated and whether there were any errors. +// ConversionStatus: The original conversion that was inserted or updated and +// whether there were any errors. type ConversionStatus struct { // Conversion: The original conversion that was inserted or updated. Conversion *Conversion `json:"conversion,omitempty"` - // Errors: A list of errors related to this conversion. Errors []*ConversionError `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionStatus". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionStatus". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversion") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionStatus) MarshalJSON() ([]byte, error) { +func (s ConversionStatus) MarshalJSON() ([]byte, error) { type NoMethod ConversionStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertRequest: Insert Conversions Request. type ConversionsBatchInsertRequest struct { // Conversions: The set of conversions to insert. Conversions []*Conversion `json:"conversions,omitempty"` - - // EncryptionInfo: Describes how encryptedUserId or - // encryptedUserIdCandidates[] is encrypted. This is a required field if - // encryptedUserId or encryptedUserIdCandidates[] is used. + // EncryptionInfo: Describes how encryptedUserId or encryptedUserIdCandidates[] + // is encrypted. This is a required field if encryptedUserId or + // encryptedUserIdCandidates[] is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertResponse: Insert Conversions Response. type ConversionsBatchInsertResponse struct { // HasFailures: Indicates that some or all conversions failed to insert. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertResponse". Kind string `json:"kind,omitempty"` - - // Status: The insert status of each conversion. Statuses are returned - // in the same order that conversions are inserted. + // Status: The insert status of each conversion. Statuses are returned in the + // same order that conversions are inserted. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchUpdateRequest: Update Conversions Request. type ConversionsBatchUpdateRequest struct { // Conversions: The set of conversions to update. Conversions []*Conversion `json:"conversions,omitempty"` - // EncryptionInfo: Describes how encryptedUserId is encrypted. This is a // required field if encryptedUserId is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchUpdateRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchUpdateRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchUpdateResponse: Update Conversions Response. type ConversionsBatchUpdateResponse struct { // HasFailures: Indicates that some or all conversions failed to update. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchUpdateResponse". Kind string `json:"kind,omitempty"` - - // Status: The update status of each conversion. Statuses are returned - // in the same order that conversions are updated. + // Status: The update status of each conversion. Statuses are returned in the + // same order that conversions are updated. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchUpdateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CountriesListResponse: Country List Response type CountriesListResponse struct { // Countries: Country collection. Countries []*Country `json:"countries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#countriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#countriesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Countries") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Countries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Countries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CountriesListResponse) MarshalJSON() ([]byte, error) { +func (s CountriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CountriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Country: Contains information about a country that can be targeted by -// ads. +// Country: Contains information about a country that can be targeted by ads. type Country struct { // CountryCode: Country code. CountryCode string `json:"countryCode,omitempty"` - - // DartId: DART ID of this country. This is the ID used for targeting - // and generating reports. + // DartId: DART ID of this country. This is the ID used for targeting and + // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#country". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#country". Kind string `json:"kind,omitempty"` - // Name: Name of this country. Name string `json:"name,omitempty"` - - // SslEnabled: Whether ad serving supports secure servers in this - // country. + // SslEnabled: Whether ad serving supports secure servers in this country. SslEnabled bool `json:"sslEnabled,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Country) MarshalJSON() ([]byte, error) { +func (s Country) MarshalJSON() ([]byte, error) { type NoMethod Country - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Creative: Contains properties of a Creative. type Creative struct { - // AccountId: Account ID of this creative. This field, if left unset, - // will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // AccountId: Account ID of this creative. This field, if left unset, will be + // auto-generated for both insert and update operations. Applicable to all + // creative types. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether the creative is active. Applicable to all creative - // types. + // Active: Whether the creative is active. Applicable to all creative types. Active bool `json:"active,omitempty"` - - // AdParameters: Ad parameters user for VPAID creative. This is a - // read-only field. Applicable to the following creative types: all - // VPAID. + // AdParameters: Ad parameters user for VPAID creative. This is a read-only + // field. Applicable to the following creative types: all VPAID. AdParameters string `json:"adParameters,omitempty"` - - // AdTagKeys: Keywords for a Rich Media creative. Keywords let you - // customize the creative settings of a Rich Media ad running on your - // site without having to contact the advertiser. You can use keywords - // to dynamically change the look or functionality of a creative. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // AdTagKeys: Keywords for a Rich Media creative. Keywords let you customize + // the creative settings of a Rich Media ad running on your site without having + // to contact the advertiser. You can use keywords to dynamically change the + // look or functionality of a creative. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. AdTagKeys []string `json:"adTagKeys,omitempty"` - - // AdditionalSizes: Additional sizes associated with a responsive - // creative. When inserting or updating a creative either the size ID - // field or size width and height fields can be used. Applicable to - // DISPLAY creatives when the primary asset type is HTML_IMAGE. + // AdditionalSizes: Additional sizes associated with a responsive creative. + // When inserting or updating a creative either the size ID field or size width + // and height fields can be used. Applicable to DISPLAY creatives when the + // primary asset type is HTML_IMAGE. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // AdvertiserId: Advertiser ID of this creative. This is a required - // field. Applicable to all creative types. + // AdvertiserId: Advertiser ID of this creative. This is a required field. + // Applicable to all creative types. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AllowScriptAccess: Whether script access is allowed for this - // creative. This is a read-only and deprecated field which will - // automatically be set to true on update. Applicable to the following - // creative types: FLASH_INPAGE. + // AllowScriptAccess: Whether script access is allowed for this creative. This + // is a read-only and deprecated field which will automatically be set to true + // on update. Applicable to the following creative types: FLASH_INPAGE. AllowScriptAccess bool `json:"allowScriptAccess,omitempty"` - - // Archived: Whether the creative is archived. Applicable to all - // creative types. + // Archived: Whether the creative is archived. Applicable to all creative + // types. Archived bool `json:"archived,omitempty"` - - // ArtworkType: Type of artwork used for the creative. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // ArtworkType: Type of artwork used for the creative. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -3759,52 +3104,42 @@ type Creative struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // AuthoringSource: Source application where creative was authored. - // Presently, only DBM authored creatives will have this field set. - // Applicable to all creative types. + // AuthoringSource: Source application where creative was authored. Presently, + // only DBM authored creatives will have this field set. Applicable to all + // creative types. // // Possible values: // "CREATIVE_AUTHORING_SOURCE_DBM" // "CREATIVE_AUTHORING_SOURCE_DCM" // "CREATIVE_AUTHORING_SOURCE_STUDIO" AuthoringSource string `json:"authoringSource,omitempty"` - // AuthoringTool: Authoring tool for HTML5 banner creatives. This is a - // read-only field. Applicable to the following creative types: - // HTML5_BANNER. + // read-only field. Applicable to the following creative types: HTML5_BANNER. // // Possible values: // "NINJA" // "SWIFFY" AuthoringTool string `json:"authoringTool,omitempty"` - - // AutoAdvanceImages: Whether images are automatically advanced for - // image gallery creatives. Applicable to the following creative types: + // AutoAdvanceImages: Whether images are automatically advanced for image + // gallery creatives. Applicable to the following creative types: // DISPLAY_IMAGE_GALLERY. AutoAdvanceImages bool `json:"autoAdvanceImages,omitempty"` - - // BackgroundColor: The 6-character HTML color code, beginning with #, - // for the background of the window area where the Flash file is - // displayed. Default is white. Applicable to the following creative - // types: FLASH_INPAGE. + // BackgroundColor: The 6-character HTML color code, beginning with #, for the + // background of the window area where the Flash file is displayed. Default is + // white. Applicable to the following creative types: FLASH_INPAGE. BackgroundColor string `json:"backgroundColor,omitempty"` - - // BackupImageClickThroughUrl: Click-through URL for backup image. - // Applicable to ENHANCED_BANNER when the primary asset type is not - // HTML_IMAGE. + // BackupImageClickThroughUrl: Click-through URL for backup image. Applicable + // to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. BackupImageClickThroughUrl *CreativeClickThroughUrl `json:"backupImageClickThroughUrl,omitempty"` - - // BackupImageFeatures: List of feature dependencies that will cause a - // backup image to be served if the browser that serves the ad does not - // support them. Feature dependencies are features that a browser must - // be able to support in order to render your HTML5 creative asset - // correctly. This field is initially auto-generated to contain all - // features detected by Campaign Manager for all the assets of this - // creative and can then be modified by the client. To reset this field, - // copy over all the creativeAssets' detected features. Applicable to - // the following creative types: HTML5_BANNER. Applicable to DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageFeatures: List of feature dependencies that will cause a backup + // image to be served if the browser that serves the ad does not support them. + // Feature dependencies are features that a browser must be able to support in + // order to render your HTML5 creative asset correctly. This field is initially + // auto-generated to contain all features detected by Campaign Manager for all + // the assets of this creative and can then be modified by the client. To reset + // this field, copy over all the creativeAssets' detected features. Applicable + // to the following creative types: HTML5_BANNER. Applicable to DISPLAY when + // the primary asset type is not HTML_IMAGE. // // Possible values: // "APPLICATION_CACHE" @@ -3874,54 +3209,46 @@ type Creative struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" BackupImageFeatures []string `json:"backupImageFeatures,omitempty"` - - // BackupImageReportingLabel: Reporting label used for HTML5 banner - // backup image. Applicable to the following creative types: DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageReportingLabel: Reporting label used for HTML5 banner backup + // image. Applicable to the following creative types: DISPLAY when the primary + // asset type is not HTML_IMAGE. BackupImageReportingLabel string `json:"backupImageReportingLabel,omitempty"` - - // BackupImageTargetWindow: Target window for backup image. Applicable - // to the following creative types: FLASH_INPAGE and HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // BackupImageTargetWindow: Target window for backup image. Applicable to the + // following creative types: FLASH_INPAGE and HTML5_BANNER. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"` - // ClickTags: Click tags of the creative. For DISPLAY, FLASH_INPAGE, and - // HTML5_BANNER creatives, this is a subset of detected click tags for - // the assets associated with this creative. After creating a flash - // asset, detected click tags will be returned in the - // creativeAssetMetadata. When inserting the creative, populate the - // creative clickTags field using the creativeAssetMetadata.clickTags - // field. For DISPLAY_IMAGE_GALLERY creatives, there should be exactly - // one entry in this list for each image creative asset. A click tag is - // matched with a corresponding creative asset by matching the - // clickTag.name field with the creativeAsset.assetIdentifier.name - // field. Applicable to the following creative types: - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. Applicable to - // DISPLAY when the primary asset type is not HTML_IMAGE. + // HTML5_BANNER creatives, this is a subset of detected click tags for the + // assets associated with this creative. After creating a flash asset, detected + // click tags will be returned in the creativeAssetMetadata. When inserting the + // creative, populate the creative clickTags field using the + // creativeAssetMetadata.clickTags field. For DISPLAY_IMAGE_GALLERY creatives, + // there should be exactly one entry in this list for each image creative + // asset. A click tag is matched with a corresponding creative asset by + // matching the clickTag.name field with the creativeAsset.assetIdentifier.name + // field. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, + // FLASH_INPAGE, HTML5_BANNER. Applicable to DISPLAY when the primary asset + // type is not HTML_IMAGE. ClickTags []*ClickTag `json:"clickTags,omitempty"` - // CommercialId: Industry standard ID assigned to creative for reach and // frequency. Applicable to INSTREAM_VIDEO_REDIRECT creatives. CommercialId string `json:"commercialId,omitempty"` - - // CompanionCreatives: List of companion creatives assigned to an - // in-Stream video creative. Acceptable values include IDs of existing - // flash and image creatives. Applicable to the following creative - // types: all VPAID, all INSTREAM_AUDIO and all INSTREAM_VIDEO with - // dynamicAssetSelection set to false. + // CompanionCreatives: List of companion creatives assigned to an in-Stream + // video creative. Acceptable values include IDs of existing flash and image + // creatives. Applicable to the following creative types: all VPAID, all + // INSTREAM_AUDIO and all INSTREAM_VIDEO with dynamicAssetSelection set to + // false. CompanionCreatives googleapi.Int64s `json:"companionCreatives,omitempty"` - - // Compatibility: Compatibilities associated with this creative. This is - // a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to - // rendering either on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing - // creatives may have these compatibilities since new creatives will - // either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. IN_STREAM_AUDIO refers to rendering in - // in-stream audio ads developed with the VAST standard. Applicable to - // all creative types. + // Compatibility: Compatibilities associated with this creative. This is a + // read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either + // on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. Only pre-existing creatives may have these compatibilities + // since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL + // instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // developed with the VAST standard. IN_STREAM_AUDIO refers to rendering in + // in-stream audio ads developed with the VAST standard. Applicable to all + // creative types. // // Acceptable values are: // - "APP" @@ -3939,234 +3266,179 @@ type Creative struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility []string `json:"compatibility,omitempty"` - - // ConvertFlashToHtml5: Whether Flash assets associated with the - // creative need to be automatically converted to HTML5. This flag is - // enabled by default and users can choose to disable it if they don't - // want the system to generate and use HTML5 asset for this creative. - // Applicable to the following creative type: FLASH_INPAGE. Applicable - // to DISPLAY when the primary asset type is not HTML_IMAGE. + // ConvertFlashToHtml5: Whether Flash assets associated with the creative need + // to be automatically converted to HTML5. This flag is enabled by default and + // users can choose to disable it if they don't want the system to generate and + // use HTML5 asset for this creative. Applicable to the following creative + // type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. ConvertFlashToHtml5 bool `json:"convertFlashToHtml5,omitempty"` - - // CounterCustomEvents: List of counter events configured for the - // creative. For DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. + // CounterCustomEvents: List of counter events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"` - // CreativeAssetSelection: Required if dynamicAssetSelection is true. CreativeAssetSelection *CreativeAssetSelection `json:"creativeAssetSelection,omitempty"` - - // CreativeAssets: Assets associated with a creative. Applicable to all - // but the following creative types: INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT + // CreativeAssets: Assets associated with a creative. Applicable to all but the + // following creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, + // and REDIRECT CreativeAssets []*CreativeAsset `json:"creativeAssets,omitempty"` - - // CreativeFieldAssignments: Creative field assignments for this - // creative. Applicable to all creative types. + // CreativeFieldAssignments: Creative field assignments for this creative. + // Applicable to all creative types. CreativeFieldAssignments []*CreativeFieldAssignment `json:"creativeFieldAssignments,omitempty"` - - // CustomKeyValues: Custom key-values for a Rich Media creative. - // Key-values let you customize the creative settings of a Rich Media ad - // running on your site without having to contact the advertiser. You - // can use key-values to dynamically change the look or functionality of - // a creative. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // CustomKeyValues: Custom key-values for a Rich Media creative. Key-values let + // you customize the creative settings of a Rich Media ad running on your site + // without having to contact the advertiser. You can use key-values to + // dynamically change the look or functionality of a creative. Applicable to + // the following creative types: all RICH_MEDIA, and all VPAID. CustomKeyValues []string `json:"customKeyValues,omitempty"` - - // DynamicAssetSelection: Set this to true to enable the use of rules to - // target individual assets in this creative. When set to true - // creativeAssetSelection must be set. This also controls asset-level - // companions. When this is true, companion creatives should be assigned - // to creative assets. Learn more. Applicable to INSTREAM_VIDEO - // creatives. + // DynamicAssetSelection: Set this to true to enable the use of rules to target + // individual assets in this creative. When set to true creativeAssetSelection + // must be set. This also controls asset-level companions. When this is true, + // companion creatives should be assigned to creative assets. Learn more. + // Applicable to INSTREAM_VIDEO creatives. DynamicAssetSelection bool `json:"dynamicAssetSelection,omitempty"` - - // ExitCustomEvents: List of exit events configured for the creative. - // For DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags, For DISPLAY, an event is also - // created from the backupImageReportingLabel. Applicable to the - // following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and - // all VPAID. Applicable to DISPLAY when the primary asset type is not - // HTML_IMAGE. + // ExitCustomEvents: List of exit events configured for the creative. For + // DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only and + // auto-generated from clickTags, For DISPLAY, an event is also created from + // the backupImageReportingLabel. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset type is not HTML_IMAGE. ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"` - - // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF - // file communicate with either Flash Player or the program hosting - // Flash Player, such as a web browser. This is only triggered if - // allowScriptAccess field is true. Applicable to the following creative - // types: FLASH_INPAGE. + // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF file + // communicate with either Flash Player or the program hosting Flash Player, + // such as a web browser. This is only triggered if allowScriptAccess field is + // true. Applicable to the following creative types: FLASH_INPAGE. FsCommand *FsCommand `json:"fsCommand,omitempty"` - // HtmlCode: HTML code for the creative. This is a required field when - // applicable. This field is ignored if htmlCodeLocked is true. - // Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, - // and HTML5_BANNER, and all RICH_MEDIA. + // applicable. This field is ignored if htmlCodeLocked is true. Applicable to + // the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, + // and all RICH_MEDIA. HtmlCode string `json:"htmlCode,omitempty"` - // HtmlCodeLocked: Whether HTML code is generated by Campaign Manager or - // manually entered. Set to true to ignore changes to htmlCode. - // Applicable to the following creative types: FLASH_INPAGE and - // HTML5_BANNER. + // manually entered. Set to true to ignore changes to htmlCode. Applicable to + // the following creative types: FLASH_INPAGE and HTML5_BANNER. HtmlCodeLocked bool `json:"htmlCodeLocked,omitempty"` - // Id: ID of this creative. This is a read-only, auto-generated field. // Applicable to all creative types. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this creative. This - // is a read-only field. Applicable to all creative types. + // IdDimensionValue: Dimension value for the ID of this creative. This is a + // read-only field. Applicable to all creative types. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creative". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creative". Kind string `json:"kind,omitempty"` - // LastModifiedInfo: Creative last modification information. This is a // read-only field. Applicable to all creative types. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // LatestTraffickedCreativeId: Latest Studio trafficked creative ID - // associated with rich media and VPAID creatives. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // LatestTraffickedCreativeId: Latest Studio trafficked creative ID associated + // with rich media and VPAID creatives. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA, and all VPAID. LatestTraffickedCreativeId int64 `json:"latestTraffickedCreativeId,omitempty,string"` - - // MediaDescription: Description of the audio or video ad. Applicable to - // the following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and - // all VPAID. + // MediaDescription: Description of the audio or video ad. Applicable to the + // following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and all VPAID. MediaDescription string `json:"mediaDescription,omitempty"` - // MediaDuration: Creative audio or video duration in seconds. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO, INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID. + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO, + // INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID. MediaDuration float64 `json:"mediaDuration,omitempty"` - - // Name: Name of the creative. This is a required field and must be less - // than 256 characters long. Applicable to all creative types. + // Name: Name of the creative. This is a required field and must be less than + // 256 characters long. Applicable to all creative types. Name string `json:"name,omitempty"` - - // OverrideCss: Override CSS value for rich media creatives. Applicable - // to the following creative types: all RICH_MEDIA. + // OverrideCss: Override CSS value for rich media creatives. Applicable to the + // following creative types: all RICH_MEDIA. OverrideCss string `json:"overrideCss,omitempty"` - - // ProgressOffset: Amount of time to play the video before counting a - // view. Applicable to the following creative types: all INSTREAM_VIDEO. + // ProgressOffset: Amount of time to play the video before counting a view. + // Applicable to the following creative types: all INSTREAM_VIDEO. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // RedirectUrl: URL of hosted image or hosted video or another ad tag. - // For INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video - // redirect URL. The standard for a VAST (Video Ad Serving Template) ad - // response allows for a redirect link to another VAST 2.0 or 3.0 call. - // This is a required field when applicable. Applicable to the following - // creative types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT + // RedirectUrl: URL of hosted image or hosted video or another ad tag. For + // INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. + // The standard for a VAST (Video Ad Serving Template) ad response allows for a + // redirect link to another VAST 2.0 or 3.0 call. This is a required field when + // applicable. Applicable to the following creative types: DISPLAY_REDIRECT, + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and + // INSTREAM_VIDEO_REDIRECT RedirectUrl string `json:"redirectUrl,omitempty"` - - // RenderingId: ID of current rendering version. This is a read-only - // field. Applicable to all creative types. + // RenderingId: ID of current rendering version. This is a read-only field. + // Applicable to all creative types. RenderingId int64 `json:"renderingId,omitempty,string"` - - // RenderingIdDimensionValue: Dimension value for the rendering ID of - // this creative. This is a read-only field. Applicable to all creative - // types. + // RenderingIdDimensionValue: Dimension value for the rendering ID of this + // creative. This is a read-only field. Applicable to all creative types. RenderingIdDimensionValue *DimensionValue `json:"renderingIdDimensionValue,omitempty"` - - // RequiredFlashPluginVersion: The minimum required Flash plugin version - // for this creative. For example, 11.2.202.235. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // RequiredFlashPluginVersion: The minimum required Flash plugin version for + // this creative. For example, 11.2.202.235. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA, and all VPAID. RequiredFlashPluginVersion string `json:"requiredFlashPluginVersion,omitempty"` - // RequiredFlashVersion: The internal Flash version for this creative as - // calculated by Studio. This is a read-only field. Applicable to the - // following creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // calculated by Studio. This is a read-only field. Applicable to the following + // creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. RequiredFlashVersion int64 `json:"requiredFlashVersion,omitempty"` - - // Size: Size associated with this creative. When inserting or updating - // a creative either the size ID field or size width and height fields - // can be used. This is a required field when applicable; however for - // IMAGE, FLASH_INPAGE creatives, and for DISPLAY creatives with a - // primary asset of type HTML_IMAGE, if left blank, this field will be - // automatically set using the actual size of the associated image - // assets. Applicable to the following creative types: DISPLAY, - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all - // RICH_MEDIA. + // Size: Size associated with this creative. When inserting or updating a + // creative either the size ID field or size width and height fields can be + // used. This is a required field when applicable; however for IMAGE, + // FLASH_INPAGE creatives, and for DISPLAY creatives with a primary asset of + // type HTML_IMAGE, if left blank, this field will be automatically set using + // the actual size of the associated image assets. Applicable to the following + // creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, + // IMAGE, and all RICH_MEDIA. Size *Size `json:"size,omitempty"` - - // SkipOffset: Amount of time to play the video before the skip button - // appears. Applicable to the following creative types: all - // INSTREAM_VIDEO. + // SkipOffset: Amount of time to play the video before the skip button appears. + // Applicable to the following creative types: all INSTREAM_VIDEO. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can choose to skip the creative. - // Applicable to the following creative types: all INSTREAM_VIDEO and - // all VPAID. + // Skippable: Whether the user can choose to skip the creative. Applicable to + // the following creative types: all INSTREAM_VIDEO and all VPAID. Skippable bool `json:"skippable,omitempty"` - - // SslCompliant: Whether the creative is SSL-compliant. This is a - // read-only field. Applicable to all creative types. + // SslCompliant: Whether the creative is SSL-compliant. This is a read-only + // field. Applicable to all creative types. SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslOverride: Whether creative should be treated as SSL compliant even - // if the system scan shows it's not. Applicable to all creative types. + // SslOverride: Whether creative should be treated as SSL compliant even if the + // system scan shows it's not. Applicable to all creative types. SslOverride bool `json:"sslOverride,omitempty"` - - // StudioAdvertiserId: Studio advertiser ID associated with rich media - // and VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioAdvertiserId: Studio advertiser ID associated with rich media and + // VPAID creatives. This is a read-only field. Applicable to the following + // creative types: all RICH_MEDIA, and all VPAID. StudioAdvertiserId int64 `json:"studioAdvertiserId,omitempty,string"` - - // StudioCreativeId: Studio creative ID associated with rich media and - // VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioCreativeId: Studio creative ID associated with rich media and VPAID + // creatives. This is a read-only field. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. StudioCreativeId int64 `json:"studioCreativeId,omitempty,string"` - - // StudioTraffickedCreativeId: Studio trafficked creative ID associated - // with rich media and VPAID creatives. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // StudioTraffickedCreativeId: Studio trafficked creative ID associated with + // rich media and VPAID creatives. This is a read-only field. Applicable to the + // following creative types: all RICH_MEDIA, and all VPAID. StudioTraffickedCreativeId int64 `json:"studioTraffickedCreativeId,omitempty,string"` - - // SubaccountId: Subaccount ID of this creative. This field, if left - // unset, will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // SubaccountId: Subaccount ID of this creative. This field, if left unset, + // will be auto-generated for both insert and update operations. Applicable to + // all creative types. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record - // backup image impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record backup + // image impressions. Applicable to the following creative types: all + // RICH_MEDIA. ThirdPartyBackupImageImpressionsUrl string `json:"thirdPartyBackupImageImpressionsUrl,omitempty"` - - // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record - // rich media impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record rich media + // impressions. Applicable to the following creative types: all RICH_MEDIA. ThirdPartyRichMediaImpressionsUrl string `json:"thirdPartyRichMediaImpressionsUrl,omitempty"` - - // ThirdPartyUrls: Third-party URLs for tracking in-stream creative - // events. Applicable to the following creative types: all - // INSTREAM_VIDEO, all INSTREAM_AUDIO, and all VPAID. + // ThirdPartyUrls: Third-party URLs for tracking in-stream creative events. + // Applicable to the following creative types: all INSTREAM_VIDEO, all + // INSTREAM_AUDIO, and all VPAID. ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"` - - // TimerCustomEvents: List of timer events configured for the creative. - // For DISPLAY_IMAGE_GALLERY creatives, these are read-only and - // auto-generated from clickTags. Applicable to the following creative - // types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset is not HTML_IMAGE. + // TimerCustomEvents: List of timer events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset is not HTML_IMAGE. TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"` - - // TotalFileSize: Combined size of all creative assets. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // TotalFileSize: Combined size of all creative assets. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. TotalFileSize int64 `json:"totalFileSize,omitempty,string"` - - // Type: Type of this creative. This is a required field. Applicable to - // all creative types. + // Type: Type of this creative. This is a required field. Applicable to all + // creative types. // - // Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for - // existing creatives. New creatives should use DISPLAY as a replacement - // for these types. + // Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing + // creatives. New creatives should use DISPLAY as a replacement for these + // types. // // Possible values: // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" @@ -4195,47 +3467,37 @@ type Creative struct { // "VPAID_LINEAR_VIDEO" // "VPAID_NON_LINEAR_VIDEO" Type string `json:"type,omitempty"` - - // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable - // to the following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO - // and VPAID. + // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the + // following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO and VPAID. UniversalAdId *UniversalAdId `json:"universalAdId,omitempty"` - - // Version: The version number helps you keep track of multiple versions - // of your creative in your reports. The version number will always be + // Version: The version number helps you keep track of multiple versions of + // your creative in your reports. The version number will always be // auto-generated during insert operations to start at 1. For tracking - // creatives the version cannot be incremented and will always remain at - // 1. For all other creative types the version can be incremented only - // by 1 during update operations. In addition, the version will be - // automatically incremented by 1 when undergoing Rich Media creative - // merging. Applicable to all creative types. + // creatives the version cannot be incremented and will always remain at 1. For + // all other creative types the version can be incremented only by 1 during + // update operations. In addition, the version will be automatically + // incremented by 1 when undergoing Rich Media creative merging. Applicable to + // all creative types. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Creative) MarshalJSON() ([]byte, error) { +func (s Creative) MarshalJSON() ([]byte, error) { type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Creative) UnmarshalJSON(data []byte) error { @@ -4254,25 +3516,20 @@ func (s *Creative) UnmarshalJSON(data []byte) error { // CreativeAsset: Creative Asset. type CreativeAsset struct { - // ActionScript3: Whether ActionScript3 is enabled for the flash asset. - // This is a read-only field. Applicable to the following creative type: - // FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is - // not HTML_IMAGE. + // ActionScript3: Whether ActionScript3 is enabled for the flash asset. This is + // a read-only field. Applicable to the following creative type: FLASH_INPAGE. + // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ActionScript3 bool `json:"actionScript3,omitempty"` - - // Active: Whether the video or audio asset is active. This is a - // read-only field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the - // following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all - // VPAID. + // Active: Whether the video or audio asset is active. This is a read-only + // field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the following + // creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. Active bool `json:"active,omitempty"` - - // AdditionalSizes: Additional sizes associated with this creative - // asset. HTML5 asset generated by compatible software such as GWD will - // be able to support more sizes this creative asset can render. + // AdditionalSizes: Additional sizes associated with this creative asset. HTML5 + // asset generated by compatible software such as GWD will be able to support + // more sizes this creative asset can render. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // Alignment: Possible alignments for an asset. This is a read-only - // field. Applicable to the following creative types: + // Alignment: Possible alignments for an asset. This is a read-only field. + // Applicable to the following creative types: // RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. // // Possible values: @@ -4281,9 +3538,8 @@ type CreativeAsset struct { // "ALIGNMENT_RIGHT" // "ALIGNMENT_TOP" Alignment string `json:"alignment,omitempty"` - - // ArtworkType: Artwork type of rich media creative. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // ArtworkType: Artwork type of rich media creative. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -4291,24 +3547,20 @@ type CreativeAsset struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // AssetIdentifier: Identifier of this asset. This is the same - // identifier returned during creative asset insert operation. This is a - // required field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // AssetIdentifier: Identifier of this asset. This is the same identifier + // returned during creative asset insert operation. This is a required field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // BackupImageExit: Exit event configured for the backup image. - // Applicable to the following creative types: all RICH_MEDIA. + // BackupImageExit: Exit event configured for the backup image. Applicable to + // the following creative types: all RICH_MEDIA. BackupImageExit *CreativeCustomEvent `json:"backupImageExit,omitempty"` - - // BitRate: Detected bit-rate for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // BitRate: Detected bit-rate for audio or video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. BitRate int64 `json:"bitRate,omitempty"` - - // ChildAssetType: Rich media child asset type. This is a read-only - // field. Applicable to the following creative types: all VPAID. + // ChildAssetType: Rich media child asset type. This is a read-only field. + // Applicable to the following creative types: all VPAID. // // Possible values: // "CHILD_ASSET_TYPE_DATA" @@ -4316,30 +3568,26 @@ type CreativeAsset struct { // "CHILD_ASSET_TYPE_IMAGE" // "CHILD_ASSET_TYPE_VIDEO" ChildAssetType string `json:"childAssetType,omitempty"` - - // CollapsedSize: Size of an asset when collapsed. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA and - // all VPAID. Additionally, applicable to assets whose displayType is + // CollapsedSize: Size of an asset when collapsed. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA and all VPAID. + // Additionally, applicable to assets whose displayType is // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. CollapsedSize *Size `json:"collapsedSize,omitempty"` - - // CompanionCreativeIds: List of companion creatives assigned to an - // in-stream video creative asset. Acceptable values include IDs of - // existing flash and image creatives. Applicable to INSTREAM_VIDEO - // creative type with dynamicAssetSelection set to true. + // CompanionCreativeIds: List of companion creatives assigned to an in-stream + // video creative asset. Acceptable values include IDs of existing flash and + // image creatives. Applicable to INSTREAM_VIDEO creative type with + // dynamicAssetSelection set to true. CompanionCreativeIds googleapi.Int64s `json:"companionCreativeIds,omitempty"` - - // CustomStartTimeValue: Custom start time in seconds for making the - // asset visible. Applicable to the following creative types: all - // RICH_MEDIA. Value must be greater than or equal to 0. + // CustomStartTimeValue: Custom start time in seconds for making the asset + // visible. Applicable to the following creative types: all RICH_MEDIA. Value + // must be greater than or equal to 0. CustomStartTimeValue int64 `json:"customStartTimeValue,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. Applicable to the following creative types: HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by Campaign Manager. Feature dependencies are features that a + // browser must be able to support in order to render your HTML5 creative + // correctly. This is a read-only, auto-generated field. Applicable to the + // following creative types: HTML5_BANNER. Applicable to DISPLAY when the + // primary asset type is not HTML_IMAGE. // // Possible values: // "APPLICATION_CACHE" @@ -4409,9 +3657,8 @@ type CreativeAsset struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // DisplayType: Type of rich media asset. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA. + // DisplayType: Type of rich media asset. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DISPLAY_TYPE_BACKDROP" @@ -4425,166 +3672,135 @@ type CreativeAsset struct { // "ASSET_DISPLAY_TYPE_VPAID_LINEAR" // "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" DisplayType string `json:"displayType,omitempty"` - // Duration: Duration in seconds for which an asset will be displayed. - // Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or - // equal to 1. + // Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO + // and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. Duration int64 `json:"duration,omitempty"` - - // DurationType: Duration type for which an asset will be displayed. - // Applicable to the following creative types: all RICH_MEDIA. + // DurationType: Duration type for which an asset will be displayed. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DURATION_TYPE_AUTO" // "ASSET_DURATION_TYPE_CUSTOM" // "ASSET_DURATION_TYPE_NONE" DurationType string `json:"durationType,omitempty"` - - // ExpandedDimension: Detected expanded dimension for video asset. This - // is a read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ExpandedDimension: Detected expanded dimension for video asset. This is a + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO + // and all VPAID. ExpandedDimension *Size `json:"expandedDimension,omitempty"` - - // FileSize: File size associated with this creative asset. This is a - // read-only field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // FileSize: File size associated with this creative asset. This is a read-only + // field. Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. FileSize int64 `json:"fileSize,omitempty,string"` - // FlashVersion: Flash version of the asset. This is a read-only field. - // Applicable to the following creative types: FLASH_INPAGE, all - // RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Applicable to the following creative types: FLASH_INPAGE, all RICH_MEDIA, + // and all VPAID. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. FlashVersion int64 `json:"flashVersion,omitempty"` - // HideFlashObjects: Whether to hide Flash objects flag for an asset. // Applicable to the following creative types: all RICH_MEDIA. HideFlashObjects bool `json:"hideFlashObjects,omitempty"` - - // HideSelectionBoxes: Whether to hide selection boxes flag for an - // asset. Applicable to the following creative types: all RICH_MEDIA. + // HideSelectionBoxes: Whether to hide selection boxes flag for an asset. + // Applicable to the following creative types: all RICH_MEDIA. HideSelectionBoxes bool `json:"hideSelectionBoxes,omitempty"` - - // HorizontallyLocked: Whether the asset is horizontally locked. This is - // a read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // HorizontallyLocked: Whether the asset is horizontally locked. This is a + // read-only field. Applicable to the following creative types: all RICH_MEDIA. HorizontallyLocked bool `json:"horizontallyLocked,omitempty"` - - // Id: Numeric ID of this creative asset. This is a required field and - // should not be modified. Applicable to all but the following creative - // types: all REDIRECT and TRACKING_TEXT. + // Id: Numeric ID of this creative asset. This is a required field and should + // not be modified. Applicable to all but the following creative types: all + // REDIRECT and TRACKING_TEXT. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of the asset. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - // MediaDuration: Detected duration for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // read-only field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. MediaDuration float64 `json:"mediaDuration,omitempty"` - - // MimeType: Detected MIME type for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // MimeType: Detected MIME type for audio or video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. MimeType string `json:"mimeType,omitempty"` - - // Offset: Offset position for an asset in collapsed mode. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA and all VPAID. Additionally, only applicable to assets - // whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or - // ASSET_DISPLAY_TYPE_PEEL_DOWN. + // Offset: Offset position for an asset in collapsed mode. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA and all + // VPAID. Additionally, only applicable to assets whose displayType is + // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. Offset *OffsetPosition `json:"offset,omitempty"` - - // Orientation: Orientation of video asset. This is a read-only, - // auto-generated field. + // Orientation: Orientation of video asset. This is a read-only, auto-generated + // field. // // Possible values: // "LANDSCAPE" // "PORTRAIT" // "SQUARE" Orientation string `json:"orientation,omitempty"` - - // OriginalBackup: Whether the backup asset is original or changed by - // the user in Campaign Manager. Applicable to the following creative - // types: all RICH_MEDIA. + // OriginalBackup: Whether the backup asset is original or changed by the user + // in Campaign Manager. Applicable to the following creative types: all + // RICH_MEDIA. OriginalBackup bool `json:"originalBackup,omitempty"` - - // Position: Offset position for an asset. Applicable to the following - // creative types: all RICH_MEDIA. + // Position: Offset position for an asset. Applicable to the following creative + // types: all RICH_MEDIA. Position *OffsetPosition `json:"position,omitempty"` - - // PositionLeftUnit: Offset left unit for an asset. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // PositionLeftUnit: Offset left unit for an asset. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionLeftUnit string `json:"positionLeftUnit,omitempty"` - - // PositionTopUnit: Offset top unit for an asset. This is a read-only - // field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. - // Applicable to the following creative types: all RICH_MEDIA. + // PositionTopUnit: Offset top unit for an asset. This is a read-only field if + // the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the + // following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionTopUnit string `json:"positionTopUnit,omitempty"` - - // ProgressiveServingUrl: Progressive URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ProgressiveServingUrl: Progressive URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. ProgressiveServingUrl string `json:"progressiveServingUrl,omitempty"` - - // Pushdown: Whether the asset pushes down other content. Applicable to - // the following creative types: all RICH_MEDIA. Additionally, only - // applicable when the asset offsets are 0, the collapsedSize.width - // matches size.width, and the collapsedSize.height is less than - // size.height. + // Pushdown: Whether the asset pushes down other content. Applicable to the + // following creative types: all RICH_MEDIA. Additionally, only applicable when + // the asset offsets are 0, the collapsedSize.width matches size.width, and the + // collapsedSize.height is less than size.height. Pushdown bool `json:"pushdown,omitempty"` - - // PushdownDuration: Pushdown duration in seconds for an asset. - // Applicable to the following creative types: all - // RICH_MEDIA.Additionally, only applicable when the asset pushdown - // field is true, the offsets are 0, the collapsedSize.width matches - // size.width, and the collapsedSize.height is less than size.height. - // Acceptable values are 0 to 9.99, inclusive. + // PushdownDuration: Pushdown duration in seconds for an asset. Applicable to + // the following creative types: all RICH_MEDIA.Additionally, only applicable + // when the asset pushdown field is true, the offsets are 0, the + // collapsedSize.width matches size.width, and the collapsedSize.height is less + // than size.height. Acceptable values are 0 to 9.99, inclusive. PushdownDuration float64 `json:"pushdownDuration,omitempty"` - - // Role: Role of the asset in relation to creative. Applicable to all - // but the following creative types: all REDIRECT and TRACKING_TEXT. - // This is a required field. + // Role: Role of the asset in relation to creative. Applicable to all but the + // following creative types: all REDIRECT and TRACKING_TEXT. This is a required + // field. // PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, - // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple - // primary assets), and all VPAID creatives. - // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, - // and all VPAID creatives. Applicable to DISPLAY when the primary asset - // type is not HTML_IMAGE. - // ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE - // creatives. - // OTHER refers to assets from sources other than Campaign Manager, such - // as Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary + // assets), and all VPAID creatives. + // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all + // VPAID creatives. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. + // ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. + // OTHER refers to assets from sources other than Campaign Manager, such as + // Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID // creatives. - // PARENT_VIDEO refers to videos uploaded by the user in Campaign - // Manager and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO + // PARENT_VIDEO refers to videos uploaded by the user in Campaign Manager and + // is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO // creatives. // TRANSCODED_VIDEO refers to videos transcoded by Campaign Manager from // PARENT_VIDEO assets and is applicable to INSTREAM_VIDEO and // VPAID_LINEAR_VIDEO creatives. - // ALTERNATE_VIDEO refers to the Campaign Manager representation of - // child asset videos from Studio, and is applicable to - // VPAID_LINEAR_VIDEO creatives. These cannot be added or removed within - // Campaign Manager. + // ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset + // videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These + // cannot be added or removed within Campaign Manager. // For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and - // ALTERNATE_VIDEO assets that are marked active serve as backup in case - // the VPAID creative cannot be served. Only PARENT_VIDEO assets can be - // added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO - // creative. - // PARENT_AUDIO refers to audios uploaded by the user in Campaign - // Manager and is applicable to INSTREAM_AUDIO - // creatives. + // ALTERNATE_VIDEO assets that are marked active serve as backup in case the + // VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or + // removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. + // PARENT_AUDIO refers to audios uploaded by the user in Campaign Manager and + // is applicable to INSTREAM_AUDIO creatives. // TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager from // PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives. // @@ -4600,44 +3816,36 @@ type CreativeAsset struct { // "TRANSCODED_AUDIO" // "TRANSCODED_VIDEO" Role string `json:"role,omitempty"` - - // Size: Size associated with this creative asset. This is a required - // field when applicable; however for IMAGE and FLASH_INPAGE, creatives - // if left blank, this field will be automatically set using the actual - // size of the associated image asset. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, - // IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Size: Size associated with this creative asset. This is a required field + // when applicable; however for IMAGE and FLASH_INPAGE, creatives if left + // blank, this field will be automatically set using the actual size of the + // associated image asset. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all + // RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether the asset is SSL-compliant. This is a read-only - // field. Applicable to all but the following creative types: all - // REDIRECT and TRACKING_TEXT. + // SslCompliant: Whether the asset is SSL-compliant. This is a read-only field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTimeType: Initial wait time type before making the asset - // visible. Applicable to the following creative types: all RICH_MEDIA. + // StartTimeType: Initial wait time type before making the asset visible. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_START_TIME_TYPE_CUSTOM" // "ASSET_START_TIME_TYPE_NONE" StartTimeType string `json:"startTimeType,omitempty"` - - // StreamingServingUrl: Streaming URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // StreamingServingUrl: Streaming URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. StreamingServingUrl string `json:"streamingServingUrl,omitempty"` - - // Transparency: Whether the asset is transparent. Applicable to the - // following creative types: all RICH_MEDIA. Additionally, only - // applicable to HTML5 assets. + // Transparency: Whether the asset is transparent. Applicable to the following + // creative types: all RICH_MEDIA. Additionally, only applicable to HTML5 + // assets. Transparency bool `json:"transparency,omitempty"` - // VerticallyLocked: Whether the asset is vertically locked. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // read-only field. Applicable to the following creative types: all RICH_MEDIA. VerticallyLocked bool `json:"verticallyLocked,omitempty"` - // WindowMode: Window mode options for flash assets. Applicable to the // following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, // RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and @@ -4648,43 +3856,34 @@ type CreativeAsset struct { // "TRANSPARENT" // "WINDOW" WindowMode string `json:"windowMode,omitempty"` - - // ZIndex: zIndex value of an asset. Applicable to the following - // creative types: all RICH_MEDIA.Additionally, only applicable to - // assets whose displayType is NOT one of the following types: - // ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable - // values are -999999999 to 999999999, inclusive. + // ZIndex: zIndex value of an asset. Applicable to the following creative + // types: all RICH_MEDIA.Additionally, only applicable to assets whose + // displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or + // ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, + // inclusive. ZIndex int64 `json:"zIndex,omitempty"` - - // ZipFilename: File name of zip file. This is a read-only field. - // Applicable to the following creative types: HTML5_BANNER. + // ZipFilename: File name of zip file. This is a read-only field. Applicable to + // the following creative types: HTML5_BANNER. ZipFilename string `json:"zipFilename,omitempty"` - - // ZipFilesize: Size of zip file. This is a read-only field. Applicable - // to the following creative types: HTML5_BANNER. + // ZipFilesize: Size of zip file. This is a read-only field. Applicable to the + // following creative types: HTML5_BANNER. ZipFilesize string `json:"zipFilesize,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionScript3") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionScript3") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionScript3") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAsset) MarshalJSON() ([]byte, error) { +func (s CreativeAsset) MarshalJSON() ([]byte, error) { type NoMethod CreativeAsset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CreativeAsset) UnmarshalJSON(data []byte) error { @@ -4705,15 +3904,13 @@ func (s *CreativeAsset) UnmarshalJSON(data []byte) error { // CreativeAssetId: Creative Asset ID. type CreativeAssetId struct { - // Name: Name of the creative asset. This is a required field while - // inserting an asset. After insertion, this assetIdentifier is used to - // identify the uploaded asset. Characters in the name must be - // alphanumeric or one of the following: ".-_ ". Spaces are allowed. + // Name: Name of the creative asset. This is a required field while inserting + // an asset. After insertion, this assetIdentifier is used to identify the + // uploaded asset. Characters in the name must be alphanumeric or one of the + // following: ".-_ ". Spaces are allowed. Name string `json:"name,omitempty"` - - // Type: Type of asset to upload. This is a required field. FLASH and - // IMAGE are no longer supported for new uploads. All image assets - // should use HTML_IMAGE. + // Type: Type of asset to upload. This is a required field. FLASH and IMAGE are + // no longer supported for new uploads. All image assets should use HTML_IMAGE. // // Possible values: // "AUDIO" @@ -4723,47 +3920,37 @@ type CreativeAssetId struct { // "IMAGE" // "VIDEO" Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetId) MarshalJSON() ([]byte, error) { +func (s CreativeAssetId) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetMetadata: CreativeAssets contains properties of a -// creative asset file which will be uploaded or has already been -// uploaded. Refer to the creative sample code for how to upload assets -// and insert a creative. +// CreativeAssetMetadata: CreativeAssets contains properties of a creative +// asset file which will be uploaded or has already been uploaded. Refer to the +// creative sample code for how to upload assets and insert a creative. type CreativeAssetMetadata struct { // AssetIdentifier: ID of the creative asset. This is a required field. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // ClickTags: List of detected click tags for assets. This is a - // read-only auto-generated field. + // ClickTags: List of detected click tags for assets. This is a read-only + // auto-generated field. ClickTags []*ClickTag `json:"clickTags,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by Campaign Manager. Feature dependencies are features that a + // browser must be able to support in order to render your HTML5 creative + // correctly. This is a read-only, auto-generated field. // // Possible values: // "APPLICATION_CACHE" @@ -4833,22 +4020,16 @@ type CreativeAssetMetadata struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // Id: Numeric ID of the asset. This is a read-only, auto-generated - // field. + // Id: Numeric ID of the asset. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the numeric ID of the asset. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the numeric ID of the asset. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeAssetMetadata". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeAssetMetadata". Kind string `json:"kind,omitempty"` - - // WarnedValidationRules: Rules validated during code generation that - // generated a warning. This is a read-only, auto-generated - // field. + // WarnedValidationRules: Rules validated during code generation that generated + // a warning. This is a read-only, auto-generated field. // // Possible values are: // - "ADMOB_REFERENCED" @@ -4903,110 +4084,83 @@ type CreativeAssetMetadata struct { // "ZIP_INVALID" WarnedValidationRules []string `json:"warnedValidationRules,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AssetIdentifier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetIdentifier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssetIdentifier") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetMetadata) MarshalJSON() ([]byte, error) { +func (s CreativeAssetMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetSelection: Encapsulates the list of rules for asset -// selection and a default asset in case none of the rules match. -// Applicable to INSTREAM_VIDEO creatives. +// CreativeAssetSelection: Encapsulates the list of rules for asset selection +// and a default asset in case none of the rules match. Applicable to +// INSTREAM_VIDEO creatives. type CreativeAssetSelection struct { - // DefaultAssetId: A creativeAssets[].id. This should refer to one of - // the parent assets in this creative, and will be served if none of the - // rules match. This is a required field. + // DefaultAssetId: A creativeAssets[].id. This should refer to one of the + // parent assets in this creative, and will be served if none of the rules + // match. This is a required field. DefaultAssetId int64 `json:"defaultAssetId,omitempty,string"` - - // Rules: Rules determine which asset will be served to a viewer. Rules - // will be evaluated in the order in which they are stored in this list. - // This list must contain at least one rule. Applicable to - // INSTREAM_VIDEO creatives. + // Rules: Rules determine which asset will be served to a viewer. Rules will be + // evaluated in the order in which they are stored in this list. This list must + // contain at least one rule. Applicable to INSTREAM_VIDEO creatives. Rules []*Rule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultAssetId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultAssetId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DefaultAssetId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetSelection) MarshalJSON() ([]byte, error) { +func (s CreativeAssetSelection) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetSelection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeAssignment: Creative Assignment. type CreativeAssignment struct { - // Active: Whether this creative assignment is active. When true, the - // creative will be included in the ad's rotation. + // Active: Whether this creative assignment is active. When true, the creative + // will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // ApplyEventTags: Whether applicable event tags should fire when this - // creative assignment is rendered. If this value is unset when the ad - // is inserted or updated, it will default to true for all creative - // types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, - // and INSTREAM_VIDEO. + // ApplyEventTags: Whether applicable event tags should fire when this creative + // assignment is rendered. If this value is unset when the ad is inserted or + // updated, it will default to true for all creative types EXCEPT for + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. ApplyEventTags bool `json:"applyEventTags,omitempty"` - // ClickThroughUrl: Click-through URL of the creative assignment. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CompanionCreativeOverrides: Companion creative overrides for this - // creative assignment. Applicable to video ads. + // CompanionCreativeOverrides: Companion creative overrides for this creative + // assignment. Applicable to video ads. CompanionCreativeOverrides []*CompanionClickThroughOverride `json:"companionCreativeOverrides,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this - // creative assignment. Only one assignment per creative group number is - // allowed for a maximum of two assignments. + // CreativeGroupAssignments: Creative group assignments for this creative + // assignment. Only one assignment per creative group number is allowed for a + // maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeId: ID of the creative to be assigned. This is a required - // field. + // CreativeId: ID of the creative to be assigned. This is a required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // CreativeIdDimensionValue: Dimension value for the ID of the creative. - // This is a read-only, auto-generated field. + // CreativeIdDimensionValue: Dimension value for the ID of the creative. This + // is a read-only, auto-generated field. CreativeIdDimensionValue *DimensionValue `json:"creativeIdDimensionValue,omitempty"` - - // EndTime: Date and time that the assigned creative should stop - // serving. Must be later than the start time. + // EndTime: Date and time that the assigned creative should stop serving. Must + // be later than the start time. EndTime string `json:"endTime,omitempty"` - // RichMediaExitOverrides: Rich media exit overrides for this creative // assignment. // Applicable when the creative type is any of the following: @@ -5022,116 +4176,87 @@ type CreativeAssignment struct { // - VPAID_LINEAR // - VPAID_NON_LINEAR RichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"` - - // Sequence: Sequence number of the creative assignment, applicable when - // the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable - // values are 1 to 65535, inclusive. + // Sequence: Sequence number of the creative assignment, applicable when the + // rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 + // to 65535, inclusive. Sequence int64 `json:"sequence,omitempty"` - - // SslCompliant: Whether the creative to be assigned is SSL-compliant. - // This is a read-only field that is auto-generated when the ad is - // inserted or updated. + // SslCompliant: Whether the creative to be assigned is SSL-compliant. This is + // a read-only field that is auto-generated when the ad is inserted or updated. SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTime: Date and time that the assigned creative should start - // serving. + // StartTime: Date and time that the assigned creative should start serving. StartTime string `json:"startTime,omitempty"` - - // Weight: Weight of the creative assignment, applicable when the - // rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater - // than or equal to 1. + // Weight: Weight of the creative assignment, applicable when the rotation type + // is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeClickThroughUrl: Click-through URL type CreativeClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - // - If landingPageId is specified then that landing page's URL is - // assigned to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: + // - If landingPageId is specified then that landing page's URL is assigned to + // this field. // - Otherwise, the customClickThroughUrl is assigned to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the // landingPageId field is left unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - // LandingPageId: ID of the landing page for the click-through URL. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod CreativeClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeCustomEvent: Creative Custom Event. type CreativeCustomEvent struct { - // AdvertiserCustomEventId: Unique ID of this event used by Reporting - // and Data Transfer. This is a read-only field. + // AdvertiserCustomEventId: Unique ID of this event used by Reporting and Data + // Transfer. This is a read-only field. AdvertiserCustomEventId int64 `json:"advertiserCustomEventId,omitempty,string"` - // AdvertiserCustomEventName: User-entered name for the event. AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"` - - // AdvertiserCustomEventType: Type of the event. This is a read-only - // field. + // AdvertiserCustomEventType: Type of the event. This is a read-only field. // // Possible values: // "ADVERTISER_EVENT_COUNTER" // "ADVERTISER_EVENT_EXIT" // "ADVERTISER_EVENT_TIMER" AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"` - - // ArtworkLabel: Artwork label column, used to link events in Campaign - // Manager back to events in Studio. This is a required field and should - // not be modified after insertion. + // ArtworkLabel: Artwork label column, used to link events in Campaign Manager + // back to events in Studio. This is a required field and should not be + // modified after insertion. ArtworkLabel string `json:"artworkLabel,omitempty"` - - // ArtworkType: Artwork type used by the creative.This is a read-only - // field. + // ArtworkType: Artwork type used by the creative.This is a read-only field. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -5139,19 +4264,15 @@ type CreativeCustomEvent struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // ExitClickThroughUrl: Exit click-through URL for the event. This field - // is used only for exit events. + // ExitClickThroughUrl: Exit click-through URL for the event. This field is + // used only for exit events. ExitClickThroughUrl *CreativeClickThroughUrl `json:"exitClickThroughUrl,omitempty"` - - // Id: ID of this event. This is a required field and should not be - // modified after insertion. + // Id: ID of this event. This is a required field and should not be modified + // after insertion. Id int64 `json:"id,omitempty,string"` - - // PopupWindowProperties: Properties for rich media popup windows. This - // field is used only for exit events. + // PopupWindowProperties: Properties for rich media popup windows. This field + // is used only for exit events. PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"` - // TargetType: Target type used by the event. // // Possible values: @@ -5161,406 +4282,306 @@ type CreativeCustomEvent struct { // "TARGET_SELF" // "TARGET_TOP" TargetType string `json:"targetType,omitempty"` - - // VideoReportingId: Video reporting ID, used to differentiate multiple - // videos in a single creative. This is a read-only field. + // VideoReportingId: Video reporting ID, used to differentiate multiple videos + // in a single creative. This is a read-only field. VideoReportingId string `json:"videoReportingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdvertiserCustomEventId") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeCustomEvent) MarshalJSON() ([]byte, error) { +func (s CreativeCustomEvent) MarshalJSON() ([]byte, error) { type NoMethod CreativeCustomEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeField: Contains properties of a creative field. type CreativeField struct { - // AccountId: Account ID of this creative field. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative field. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative field. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative field. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Id: ID of this creative field. This is a read-only, auto-generated - // field. + // Id: ID of this creative field. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeField". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeField". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative field. This is a required field and must - // be less than 256 characters long and unique among creative fields of - // the same advertiser. + // Name: Name of this creative field. This is a required field and must be less + // than 256 characters long and unique among creative fields of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative field. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative field. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeField) MarshalJSON() ([]byte, error) { +func (s CreativeField) MarshalJSON() ([]byte, error) { type NoMethod CreativeField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldAssignment: Creative Field Assignment. type CreativeFieldAssignment struct { // CreativeFieldId: ID of the creative field. CreativeFieldId int64 `json:"creativeFieldId,omitempty,string"` - // CreativeFieldValueId: ID of the creative field value. CreativeFieldValueId int64 `json:"creativeFieldValueId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CreativeFieldId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeFieldAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValue: Contains properties of a creative field value. type CreativeFieldValue struct { - // Id: ID of this creative field value. This is a read-only, - // auto-generated field. + // Id: ID of this creative field value. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValue". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValue". Kind string `json:"kind,omitempty"` - - // Value: Value of this creative field value. It needs to be less than - // 256 characters in length and unique per creative field. + // Value: Value of this creative field value. It needs to be less than 256 + // characters in length and unique per creative field. Value string `json:"value,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValue) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValue) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValuesListResponse: Creative Field Value List Response type CreativeFieldValuesListResponse struct { // CreativeFieldValues: Creative field value collection. CreativeFieldValues []*CreativeFieldValue `json:"creativeFieldValues,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValuesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValuesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValuesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldsListResponse: Creative Field List Response type CreativeFieldsListResponse struct { // CreativeFields: Creative field collection. CreativeFields []*CreativeField `json:"creativeFields,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeFields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFields") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFields") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroup: Contains properties of a creative group. type CreativeGroup struct { - // AccountId: Account ID of this creative group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative group. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative group. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // GroupNumber: Subgroup of the creative group. Assign your creative - // groups to a subgroup in order to filter or manage them more easily. - // This field is required on insertion and is read-only after insertion. - // Acceptable values are 1 to 2, inclusive. + // GroupNumber: Subgroup of the creative group. Assign your creative groups to + // a subgroup in order to filter or manage them more easily. This field is + // required on insertion and is read-only after insertion. Acceptable values + // are 1 to 2, inclusive. GroupNumber int64 `json:"groupNumber,omitempty"` - - // Id: ID of this creative group. This is a read-only, auto-generated - // field. + // Id: ID of this creative group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative group. This is a required field and must - // be less than 256 characters long and unique among creative groups of - // the same advertiser. + // Name: Name of this creative group. This is a required field and must be less + // than 256 characters long and unique among creative groups of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroup) MarshalJSON() ([]byte, error) { +func (s CreativeGroup) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupAssignment: Creative Group Assignment. type CreativeGroupAssignment struct { // CreativeGroupId: ID of the creative group to be assigned. CreativeGroupId int64 `json:"creativeGroupId,omitempty,string"` - - // CreativeGroupNumber: Creative group number of the creative group - // assignment. + // CreativeGroupNumber: Creative group number of the creative group assignment. // // Possible values: // "CREATIVE_GROUP_ONE" // "CREATIVE_GROUP_TWO" CreativeGroupNumber string `json:"creativeGroupNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreativeGroupId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroupId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroupId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeGroupAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupsListResponse: Creative Group List Response type CreativeGroupsListResponse struct { // CreativeGroups: Creative group collection. CreativeGroups []*CreativeGroup `json:"creativeGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeGroups") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeOptimizationConfiguration: Creative optimization settings. type CreativeOptimizationConfiguration struct { - // Id: ID of this creative optimization config. This field is - // auto-generated when the campaign is inserted or updated. It can be - // null for existing campaigns. + // Id: ID of this creative optimization config. This field is auto-generated + // when the campaign is inserted or updated. It can be null for existing + // campaigns. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this creative optimization config. This is a required - // field and must be less than 129 characters long. + // Name: Name of this creative optimization config. This is a required field + // and must be less than 129 characters long. Name string `json:"name,omitempty"` - - // OptimizationActivitys: List of optimization activities associated - // with this configuration. + // OptimizationActivitys: List of optimization activities associated with this + // configuration. OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"` - // OptimizationModel: Optimization model for this configuration. // // Possible values: @@ -5570,52 +4591,42 @@ type CreativeOptimizationConfiguration struct { // "POST_IMPRESSION" // "VIDEO_COMPLETION" OptimizationModel string `json:"optimizationModel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { +func (s CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { type NoMethod CreativeOptimizationConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeRotation: Creative Rotation. type CreativeRotation struct { // CreativeAssignments: Creative assignments in this creative rotation. CreativeAssignments []*CreativeAssignment `json:"creativeAssignments,omitempty"` - - // CreativeOptimizationConfigurationId: Creative optimization - // configuration that is used by this ad. It should refer to one of the - // existing optimization configurations in the ad's campaign. If it is - // unset or set to 0, then the campaign's default optimization - // configuration will be used for this ad. + // CreativeOptimizationConfigurationId: Creative optimization configuration + // that is used by this ad. It should refer to one of the existing optimization + // configurations in the ad's campaign. If it is unset or set to 0, then the + // campaign's default optimization configuration will be used for this ad. CreativeOptimizationConfigurationId int64 `json:"creativeOptimizationConfigurationId,omitempty,string"` - - // Type: Type of creative rotation. Can be used to specify whether to - // use sequential or random rotation. + // Type: Type of creative rotation. Can be used to specify whether to use + // sequential or random rotation. // // Possible values: // "CREATIVE_ROTATION_TYPE_RANDOM" // "CREATIVE_ROTATION_TYPE_SEQUENTIAL" Type string `json:"type,omitempty"` - - // WeightCalculationStrategy: Strategy for calculating weights. Used - // with CREATIVE_ROTATION_TYPE_RANDOM. + // WeightCalculationStrategy: Strategy for calculating weights. Used with + // CREATIVE_ROTATION_TYPE_RANDOM. // // Possible values: // "WEIGHT_STRATEGY_CUSTOM" @@ -5623,126 +4634,97 @@ type CreativeRotation struct { // "WEIGHT_STRATEGY_HIGHEST_CTR" // "WEIGHT_STRATEGY_OPTIMIZED" WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreativeAssignments") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeAssignments") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeAssignments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeAssignments") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeRotation) MarshalJSON() ([]byte, error) { +func (s CreativeRotation) MarshalJSON() ([]byte, error) { type NoMethod CreativeRotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativesListResponse: Creative List Response type CreativesListResponse struct { // Creatives: Creative collection. Creatives []*Creative `json:"creatives,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Creatives") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Creatives") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Creatives") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CrossDimensionReachReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type -// "CROSS_DIMENSION_REACH". +// compatible to be selected for a report of type "CROSS_DIMENSION_REACH". type CrossDimensionReachReportCompatibleFields struct { - // Breakdown: Dimensions which are compatible to be selected in the - // "breakdown" section of the report. + // Breakdown: Dimensions which are compatible to be selected in the "breakdown" + // section of the report. Breakdown []*Dimension `json:"breakdown,omitempty"` - - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#crossDimensionReachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // OverlapMetrics: Metrics which are compatible to be selected in the // "overlapMetricNames" section of the report. OverlapMetrics []*Metric `json:"overlapMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CrossDimensionReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomFloodlightVariable: A custom floodlight variable. type CustomFloodlightVariable struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customFloodlightVariable". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customFloodlightVariable". Kind string `json:"kind,omitempty"` - - // Type: The type of custom floodlight variable to supply a value for. - // These map to the "u[1-20]=" in the tags. + // Type: The type of custom floodlight variable to supply a value for. These + // map to the "u[1-20]=" in the tags. // // Possible values: // "U1" @@ -5846,80 +4828,62 @@ type CustomFloodlightVariable struct { // "U98" // "U99" Type string `json:"type,omitempty"` - - // Value: The value of the custom floodlight variable. The length of - // string must not exceed 50 characters. + // Value: The value of the custom floodlight variable. The length of string + // must not exceed 50 characters. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomFloodlightVariable) MarshalJSON() ([]byte, error) { +func (s CustomFloodlightVariable) MarshalJSON() ([]byte, error) { type NoMethod CustomFloodlightVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomRichMediaEvents: Represents a Custom Rich Media Events group. type CustomRichMediaEvents struct { - // FilteredEventIds: List of custom rich media event IDs. Dimension - // values must be all of type dfa:richMediaEventTypeIdAndName. + // FilteredEventIds: List of custom rich media event IDs. Dimension values must + // be all of type dfa:richMediaEventTypeIdAndName. FilteredEventIds []*DimensionValue `json:"filteredEventIds,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#customRichMediaEvents. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilteredEventIds") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FilteredEventIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FilteredEventIds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomRichMediaEvents) MarshalJSON() ([]byte, error) { +func (s CustomRichMediaEvents) MarshalJSON() ([]byte, error) { type NoMethod CustomRichMediaEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DateRange: Represents a date range. type DateRange struct { - // EndDate: The end date of the date range, inclusive. A string of the - // format: "yyyy-MM-dd". + // EndDate: The end date of the date range, inclusive. A string of the format: + // "yyyy-MM-dd". EndDate string `json:"endDate,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#dateRange. + // Kind: The kind of resource this is, in this case dfareporting#dateRange. Kind string `json:"kind,omitempty"` - - // RelativeDateRange: The date range relative to the date of when the - // report is run. + // RelativeDateRange: The date range relative to the date of when the report is + // run. // // Possible values: // "LAST_14_DAYS" @@ -5940,32 +4904,25 @@ type DateRange struct { // "YEAR_TO_DATE" // "YESTERDAY" RelativeDateRange string `json:"relativeDateRange,omitempty"` - - // StartDate: The start date of the date range, inclusive. A string of - // the format: "yyyy-MM-dd". + // StartDate: The start date of the date range, inclusive. A string of the + // format: "yyyy-MM-dd". StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DateRange) MarshalJSON() ([]byte, error) { +func (s DateRange) MarshalJSON() ([]byte, error) { type NoMethod DateRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DayPartTargeting: Day Part Targeting. @@ -5990,146 +4947,114 @@ type DayPartTargeting struct { // "TUESDAY" // "WEDNESDAY" DaysOfWeek []string `json:"daysOfWeek,omitempty"` - - // HoursOfDay: Hours of the day when the ad will serve, where 0 is - // midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with - // days of week, in which case the ad would serve during these hours on - // the specified days. For example if Monday, Wednesday, Friday are the - // days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is - // specified, the ad would serve Monday, Wednesdays, and Fridays at - // 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. + // HoursOfDay: Hours of the day when the ad will serve, where 0 is midnight to + // 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in + // which case the ad would serve during these hours on the specified days. For + // example if Monday, Wednesday, Friday are the days of week specified and + // 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, + // Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, + // inclusive. HoursOfDay []int64 `json:"hoursOfDay,omitempty"` - - // UserLocalTime: Whether or not to use the user's local time. If false, - // the America/New York time zone applies. + // UserLocalTime: Whether or not to use the user's local time. If false, the + // America/New York time zone applies. UserLocalTime bool `json:"userLocalTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "DaysOfWeek") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DaysOfWeek") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DaysOfWeek") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DayPartTargeting) MarshalJSON() ([]byte, error) { +func (s DayPartTargeting) MarshalJSON() ([]byte, error) { type NoMethod DayPartTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeepLink: Contains information about a landing page deep link. type DeepLink struct { // AppUrl: The URL of the mobile app being linked to. AppUrl string `json:"appUrl,omitempty"` - - // FallbackUrl: The fallback URL. This URL will be served to users who - // do not have the mobile app installed. + // FallbackUrl: The fallback URL. This URL will be served to users who do not + // have the mobile app installed. FallbackUrl string `json:"fallbackUrl,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#deepLink". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#deepLink". Kind string `json:"kind,omitempty"` - // MobileApp: The mobile app targeted by this deep link. MobileApp *MobileApp `json:"mobileApp,omitempty"` - - // RemarketingListIds: Ads served to users on these remarketing lists - // will use this deep link. Applicable when mobileApp.directory is - // APPLE_APP_STORE. + // RemarketingListIds: Ads served to users on these remarketing lists will use + // this deep link. Applicable when mobileApp.directory is APPLE_APP_STORE. RemarketingListIds googleapi.Int64s `json:"remarketingListIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AppUrl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppUrl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeepLink) MarshalJSON() ([]byte, error) { +func (s DeepLink) MarshalJSON() ([]byte, error) { type NoMethod DeepLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DefaultClickThroughEventTagProperties: Properties of inheriting and -// overriding the default click-through event tag. A campaign may -// override the event tag defined at the advertiser level, and an ad may -// also override the campaign's setting further. +// overriding the default click-through event tag. A campaign may override the +// event tag defined at the advertiser level, and an ad may also override the +// campaign's setting further. type DefaultClickThroughEventTagProperties struct { - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply to all ads in this entity's scope. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply to + // all ads in this entity's scope. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // OverrideInheritedEventTag: Whether this entity should override the - // inherited default click-through event tag with its own defined value. + // OverrideInheritedEventTag: Whether this entity should override the inherited + // default click-through event tag with its own defined value. OverrideInheritedEventTag bool `json:"overrideInheritedEventTag,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "DefaultClickThroughEventTagId") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultClickThroughEventTagId") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { +func (s DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { type NoMethod DefaultClickThroughEventTagProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeliverySchedule: Delivery Schedule. type DeliverySchedule struct { - // FrequencyCap: Limit on the number of times an individual user can be - // served the ad within a specified period of time. + // FrequencyCap: Limit on the number of times an individual user can be served + // the ad within a specified period of time. FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"` - - // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad - // will not serve after the end date and time. Otherwise the ad will - // continue to be served until it has reached its delivery goals. + // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad will not + // serve after the end date and time. Otherwise the ad will continue to be + // served until it has reached its delivery goals. HardCutoff bool `json:"hardCutoff,omitempty"` - - // ImpressionRatio: Impression ratio for this ad. This ratio determines - // how often each ad is served relative to the others. For example, if - // ad A has an impression ratio of 1 and ad B has an impression ratio of - // 3, then Campaign Manager will serve ad B three times as often as ad - // A. Acceptable values are 1 to 10, inclusive. + // ImpressionRatio: Impression ratio for this ad. This ratio determines how + // often each ad is served relative to the others. For example, if ad A has an + // impression ratio of 1 and ad B has an impression ratio of 3, then Campaign + // Manager will serve ad B three times as often as ad A. Acceptable values are + // 1 to 10, inclusive. ImpressionRatio int64 `json:"impressionRatio,omitempty,string"` - - // Priority: Serving priority of an ad, with respect to other ads. The - // lower the priority number, the greater the priority with which it is - // served. + // Priority: Serving priority of an ad, with respect to other ads. The lower + // the priority number, the greater the priority with which it is served. // // Possible values: // "AD_PRIORITY_01" @@ -6149,162 +5074,124 @@ type DeliverySchedule struct { // "AD_PRIORITY_15" // "AD_PRIORITY_16" Priority string `json:"priority,omitempty"` - // ForceSendFields is a list of field names (e.g. "FrequencyCap") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FrequencyCap") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FrequencyCap") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeliverySchedule) MarshalJSON() ([]byte, error) { +func (s DeliverySchedule) MarshalJSON() ([]byte, error) { type NoMethod DeliverySchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DfpSettings: Google Ad Manager Settings type DfpSettings struct { // DfpNetworkCode: Ad Manager network code for this directory site. DfpNetworkCode string `json:"dfpNetworkCode,omitempty"` - // DfpNetworkName: Ad Manager network name for this directory site. DfpNetworkName string `json:"dfpNetworkName,omitempty"` - // ProgrammaticPlacementAccepted: Whether this directory site accepts // programmatic placements. ProgrammaticPlacementAccepted bool `json:"programmaticPlacementAccepted,omitempty"` - - // PubPaidPlacementAccepted: Whether this directory site accepts - // publisher-paid tags. + // PubPaidPlacementAccepted: Whether this directory site accepts publisher-paid + // tags. PubPaidPlacementAccepted bool `json:"pubPaidPlacementAccepted,omitempty"` - - // PublisherPortalOnly: Whether this directory site is available only - // via Publisher Portal. + // PublisherPortalOnly: Whether this directory site is available only via + // Publisher Portal. PublisherPortalOnly bool `json:"publisherPortalOnly,omitempty"` - // ForceSendFields is a list of field names (e.g. "DfpNetworkCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DfpNetworkCode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DfpNetworkCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DfpSettings) MarshalJSON() ([]byte, error) { +func (s DfpSettings) MarshalJSON() ([]byte, error) { type NoMethod DfpSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Dimension: Represents a dimension. type Dimension struct { - // Kind: The kind of resource this is, in this case - // dfareporting#dimension. + // Kind: The kind of resource this is, in this case dfareporting#dimension. Kind string `json:"kind,omitempty"` - // Name: The dimension name, e.g. dfa:advertiser Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Dimension) MarshalJSON() ([]byte, error) { +func (s Dimension) MarshalJSON() ([]byte, error) { type NoMethod Dimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionFilter: Represents a dimension filter. type DimensionFilter struct { // DimensionName: The name of the dimension to filter. DimensionName string `json:"dimensionName,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionFilter. Kind string `json:"kind,omitempty"` - // Value: The value of the dimension to filter. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionFilter) MarshalJSON() ([]byte, error) { +func (s DimensionFilter) MarshalJSON() ([]byte, error) { type NoMethod DimensionFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValue: Represents a DimensionValue resource. type DimensionValue struct { // DimensionName: The name of the dimension. DimensionName string `json:"dimensionName,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID associated with the value if available. Id string `json:"id,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionValue. Kind string `json:"kind,omitempty"` - - // MatchType: Determines how the 'value' field is matched when - // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. + // MatchType: Determines how the 'value' field is matched when filtering. If + // not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is + // allowed as a placeholder for variable length character sequences, and it can + // be escaped with a backslash. Note, only paid search dimensions + // ('dfa:paidSearch*') allow a matchType other than EXACT. // // Possible values: // "BEGINS_WITH" @@ -6312,76 +5199,59 @@ type DimensionValue struct { // "EXACT" // "WILDCARD_EXPRESSION" MatchType string `json:"matchType,omitempty"` - // Value: The value of the dimension. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValue) MarshalJSON() ([]byte, error) { +func (s DimensionValue) MarshalJSON() ([]byte, error) { type NoMethod DimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueList: Represents the list of DimensionValue resources. type DimensionValueList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The dimension values returned in this response. Items []*DimensionValue `json:"items,omitempty"` - // Kind: The kind of list this is, in this case // dfareporting#dimensionValueList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through dimension - // values. To retrieve the next page of results, set the next request's - // "pageToken" to the value of this field. The page token is only valid - // for a limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through dimension values. To + // retrieve the next page of results, set the next request's "pageToken" to the + // value of this field. The page token is only valid for a limited amount of + // time and should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueList) MarshalJSON() ([]byte, error) { +func (s DimensionValueList) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueRequest: Represents a DimensionValuesRequest. @@ -6389,61 +5259,47 @@ type DimensionValueRequest struct { // DimensionName: The name of the dimension for which values should be // requested. DimensionName string `json:"dimensionName,omitempty"` - - // EndDate: The end date of the date range for which to retrieve - // dimension values. A string of the format "yyyy-MM-dd". + // EndDate: The end date of the date range for which to retrieve dimension + // values. A string of the format "yyyy-MM-dd". EndDate string `json:"endDate,omitempty"` - - // Filters: The list of filters by which to filter values. The filters - // are ANDed. + // Filters: The list of filters by which to filter values. The filters are + // ANDed. Filters []*DimensionFilter `json:"filters,omitempty"` - // Kind: The kind of request this is, in this case // dfareporting#dimensionValueRequest. Kind string `json:"kind,omitempty"` - - // StartDate: The start date of the date range for which to retrieve - // dimension values. A string of the format "yyyy-MM-dd". + // StartDate: The start date of the date range for which to retrieve dimension + // values. A string of the format "yyyy-MM-dd". StartDate string `json:"startDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueRequest) MarshalJSON() ([]byte, error) { +func (s DimensionValueRequest) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySite: DirectorySites contains properties of a website from -// the Site Directory. Sites need to be added to an account via the -// Sites resource before they can be assigned to a placement. +// DirectorySite: DirectorySites contains properties of a website from the Site +// Directory. Sites need to be added to an account via the Sites resource +// before they can be assigned to a placement. type DirectorySite struct { // Active: Whether this directory site is active. Active bool `json:"active,omitempty"` - - // Id: ID of this directory site. This is a read-only, auto-generated - // field. + // Id: ID of this directory site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this directory site. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this directory site. This is + // a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - // InpageTagFormats: Tag types for regular placements. // // Acceptable values are: @@ -6458,9 +5314,7 @@ type DirectorySite struct { // "JAVASCRIPT_INPAGE" // "STANDARD" InpageTagFormats []string `json:"inpageTagFormats,omitempty"` - - // InterstitialTagFormats: Tag types for interstitial - // placements. + // InterstitialTagFormats: Tag types for interstitial placements. // // Acceptable values are: // - "IFRAME_JAVASCRIPT_INTERSTITIAL" @@ -6472,151 +5326,115 @@ type DirectorySite struct { // "INTERNAL_REDIRECT_INTERSTITIAL" // "JAVASCRIPT_INTERSTITIAL" InterstitialTagFormats []string `json:"interstitialTagFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySite". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySite". Kind string `json:"kind,omitempty"` - // Name: Name of this directory site. Name string `json:"name,omitempty"` - // Settings: Directory site settings. Settings *DirectorySiteSettings `json:"settings,omitempty"` - // Url: URL of this directory site. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySite) MarshalJSON() ([]byte, error) { +func (s DirectorySite) MarshalJSON() ([]byte, error) { type NoMethod DirectorySite - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySiteSettings: Directory Site Settings type DirectorySiteSettings struct { - // ActiveViewOptOut: Whether this directory site has disabled active - // view creatives. + // ActiveViewOptOut: Whether this directory site has disabled active view + // creatives. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - // DfpSettings: Directory site Ad Manager settings. DfpSettings *DfpSettings `json:"dfpSettings,omitempty"` - - // InstreamVideoPlacementAccepted: Whether this site accepts in-stream - // video ads. - InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` - - // InterstitialPlacementAccepted: Whether this site accepts interstitial + // InstreamVideoPlacementAccepted: Whether this site accepts in-stream video // ads. + InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` + // InterstitialPlacementAccepted: Whether this site accepts interstitial ads. InterstitialPlacementAccepted bool `json:"interstitialPlacementAccepted,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteSettings) MarshalJSON() ([]byte, error) { +func (s DirectorySiteSettings) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySitesListResponse: Directory Site List Response type DirectorySitesListResponse struct { // DirectorySites: Directory site collection. DirectorySites []*DirectorySite `json:"directorySites,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DirectorySites") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DirectorySites") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DirectorySites") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySitesListResponse) MarshalJSON() ([]byte, error) { +func (s DirectorySitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod DirectorySitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DynamicTargetingKey: Contains properties of a dynamic targeting key. -// Dynamic targeting keys are unique, user-friendly labels, created at -// the advertiser level in DCM, that can be assigned to ads, creatives, -// and placements and used for targeting with Studio dynamic creatives. -// Use these labels instead of numeric Campaign Manager IDs (such as -// placement IDs) to save time and avoid errors in your dynamic feeds. +// DynamicTargetingKey: Contains properties of a dynamic targeting key. Dynamic +// targeting keys are unique, user-friendly labels, created at the advertiser +// level in DCM, that can be assigned to ads, creatives, and placements and +// used for targeting with Studio dynamic creatives. Use these labels instead +// of numeric Campaign Manager IDs (such as placement IDs) to save time and +// avoid errors in your dynamic feeds. type DynamicTargetingKey struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKey". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKey". Kind string `json:"kind,omitempty"` - - // Name: Name of this dynamic targeting key. This is a required field. - // Must be less than 256 characters long and cannot contain commas. All - // characters are converted to lowercase. + // Name: Name of this dynamic targeting key. This is a required field. Must be + // less than 256 characters long and cannot contain commas. All characters are + // converted to lowercase. Name string `json:"name,omitempty"` - - // ObjectId: ID of the object of this dynamic targeting key. This is a - // required field. + // ObjectId: ID of the object of this dynamic targeting key. This is a required + // field. ObjectId int64 `json:"objectId,omitempty,string"` - - // ObjectType: Type of the object of this dynamic targeting key. This is - // a required field. + // ObjectType: Type of the object of this dynamic targeting key. This is a + // required field. // // Possible values: // "OBJECT_AD" @@ -6625,69 +5443,52 @@ type DynamicTargetingKey struct { // "OBJECT_PLACEMENT" ObjectType string `json:"objectType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKey) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKey) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DynamicTargetingKeysListResponse: Dynamic Targeting Key List Response type DynamicTargetingKeysListResponse struct { // DynamicTargetingKeys: Dynamic targeting key collection. DynamicTargetingKeys []*DynamicTargetingKey `json:"dynamicTargetingKeys,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKeysListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKeysListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DynamicTargetingKeys") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTargetingKeys") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKeysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EncryptionInfo: A description of how user IDs are encrypted. @@ -6695,9 +5496,8 @@ type EncryptionInfo struct { // EncryptionEntityId: The encryption entity ID. This should match the // encryption configuration for ad serving or Data Transfer. EncryptionEntityId int64 `json:"encryptionEntityId,omitempty,string"` - - // EncryptionEntityType: The encryption entity type. This should match - // the encryption configuration for ad serving or Data Transfer. + // EncryptionEntityType: The encryption entity type. This should match the + // encryption configuration for ad serving or Data Transfer. // // Possible values: // "ADWORDS_CUSTOMER" @@ -6708,271 +5508,209 @@ type EncryptionInfo struct { // "DFP_NETWORK_CODE" // "ENCRYPTION_ENTITY_TYPE_UNKNOWN" EncryptionEntityType string `json:"encryptionEntityType,omitempty"` - - // EncryptionSource: Describes whether the encrypted cookie was received - // from ad serving (the %m macro) or from Data Transfer. + // EncryptionSource: Describes whether the encrypted cookie was received from + // ad serving (the %m macro) or from Data Transfer. // // Possible values: // "AD_SERVING" // "DATA_TRANSFER" // "ENCRYPTION_SCOPE_UNKNOWN" EncryptionSource string `json:"encryptionSource,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#encryptionInfo". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#encryptionInfo". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptionEntityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptionEntityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncryptionInfo) MarshalJSON() ([]byte, error) { +func (s EncryptionInfo) MarshalJSON() ([]byte, error) { type NoMethod EncryptionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTag: Contains properties of an event tag. type EventTag struct { - // AccountId: Account ID of this event tag. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this event tag. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this event tag. This field or the - // campaignId field is required on insertion. + // AdvertiserId: Advertiser ID of this event tag. This field or the campaignId + // field is required on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CampaignId: Campaign ID of this event tag. This field or the - // advertiserId field is required on insertion. + // CampaignId: Campaign ID of this event tag. This field or the advertiserId + // field is required on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // EnabledByDefault: Whether this event tag should be automatically - // enabled for all of the advertiser's campaigns and ads. + // EnabledByDefault: Whether this event tag should be automatically enabled for + // all of the advertiser's campaigns and ads. EnabledByDefault bool `json:"enabledByDefault,omitempty"` - - // ExcludeFromAdxRequests: Whether to remove this event tag from ads - // that are trafficked through Display & Video 360 to Ad Exchange. This - // may be useful if the event tag uses a pixel that is unapproved for Ad - // Exchange bids on one or more networks, such as the Google Display - // Network. + // ExcludeFromAdxRequests: Whether to remove this event tag from ads that are + // trafficked through Display & Video 360 to Ad Exchange. This may be useful if + // the event tag uses a pixel that is unapproved for Ad Exchange bids on one or + // more networks, such as the Google Display Network. ExcludeFromAdxRequests bool `json:"excludeFromAdxRequests,omitempty"` - // Id: ID of this event tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTag". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTag". Kind string `json:"kind,omitempty"` - - // Name: Name of this event tag. This is a required field and must be - // less than 256 characters long. + // Name: Name of this event tag. This is a required field and must be less than + // 256 characters long. Name string `json:"name,omitempty"` - - // SiteFilterType: Site filter type for this event tag. If no type is - // specified then the event tag will be applied to all sites. + // SiteFilterType: Site filter type for this event tag. If no type is specified + // then the event tag will be applied to all sites. // // Possible values: // "BLACKLIST" // "WHITELIST" SiteFilterType string `json:"siteFilterType,omitempty"` - // SiteIds: Filter list of site IDs associated with this event tag. The - // siteFilterType determines whether this is a whitelist or blacklist - // filter. + // siteFilterType determines whether this is a whitelist or blacklist filter. SiteIds googleapi.Int64s `json:"siteIds,omitempty"` - - // SslCompliant: Whether this tag is SSL-compliant or not. This is a - // read-only field. + // SslCompliant: Whether this tag is SSL-compliant or not. This is a read-only + // field. SslCompliant bool `json:"sslCompliant,omitempty"` - - // Status: Status of this event tag. Must be ENABLED for this event tag - // to fire. This is a required field. + // Status: Status of this event tag. Must be ENABLED for this event tag to + // fire. This is a required field. // // Possible values: // "DISABLED" // "ENABLED" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this event tag. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this event tag. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Type: Event tag type. Can be used to specify whether to use a - // third-party pixel, a third-party JavaScript URL, or a third-party - // click-through URL for either impression or click tracking. This is a - // required field. + // Type: Event tag type. Can be used to specify whether to use a third-party + // pixel, a third-party JavaScript URL, or a third-party click-through URL for + // either impression or click tracking. This is a required field. // // Possible values: // "CLICK_THROUGH_EVENT_TAG" // "IMPRESSION_IMAGE_EVENT_TAG" // "IMPRESSION_JAVASCRIPT_EVENT_TAG" Type string `json:"type,omitempty"` - - // Url: Payload URL for this event tag. The URL on a click-through event - // tag should have a landing page URL appended to the end of it. This - // field is required on insertion. + // Url: Payload URL for this event tag. The URL on a click-through event tag + // should have a landing page URL appended to the end of it. This field is + // required on insertion. Url string `json:"url,omitempty"` - - // UrlEscapeLevels: Number of times the landing page URL should be - // URL-escaped before being appended to the click-through event tag URL. - // Only applies to click-through event tags as specified by the event - // tag type. + // UrlEscapeLevels: Number of times the landing page URL should be URL-escaped + // before being appended to the click-through event tag URL. Only applies to + // click-through event tags as specified by the event tag type. UrlEscapeLevels int64 `json:"urlEscapeLevels,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTag) MarshalJSON() ([]byte, error) { +func (s EventTag) MarshalJSON() ([]byte, error) { type NoMethod EventTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagOverride: Event tag override information. type EventTagOverride struct { // Enabled: Whether this override is enabled. Enabled bool `json:"enabled,omitempty"` - - // Id: ID of this event tag override. This is a read-only, - // auto-generated field. + // Id: ID of this event tag override. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagOverride) MarshalJSON() ([]byte, error) { +func (s EventTagOverride) MarshalJSON() ([]byte, error) { type NoMethod EventTagOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagsListResponse: Event Tag List Response type EventTagsListResponse struct { // EventTags: Event tag collection. EventTags []*EventTag `json:"eventTags,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTagsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTagsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EventTags") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventTags") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventTags") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagsListResponse) MarshalJSON() ([]byte, error) { +func (s EventTagsListResponse) MarshalJSON() ([]byte, error) { type NoMethod EventTagsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// File: Represents a File resource. A file contains the metadata for a -// report run. It shows the status of the run and holds the URLs to the -// generated report data if the run is finished and the status is -// "REPORT_AVAILABLE". +// File: Represents a File resource. A file contains the metadata for a report +// run. It shows the status of the run and holds the URLs to the generated +// report data if the run is finished and the status is "REPORT_AVAILABLE". type File struct { - // DateRange: The date range for which the file has report data. The - // date range will always be the absolute date range for which the - // report is run. + // DateRange: The date range for which the file has report data. The date range + // will always be the absolute date range for which the report is run. DateRange *DateRange `json:"dateRange,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // FileName: The filename of the file. FileName string `json:"fileName,omitempty"` - - // Format: The output format of the report. Only available once the file - // is available. + // Format: The output format of the report. Only available once the file is + // available. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID of this report file. Id int64 `json:"id,omitempty,string"` - // Kind: The kind of resource this is, in this case dfareporting#file. Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp in milliseconds since epoch when this - // file was last modified. + // LastModifiedTime: The timestamp in milliseconds since epoch when this file + // was last modified. LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"` - // ReportId: The ID of the report this file was generated from. ReportId int64 `json:"reportId,omitempty,string"` - // Status: The status of the report file. // // Possible values: @@ -6981,255 +5719,194 @@ type File struct { // "PROCESSING" // "REPORT_AVAILABLE" Status string `json:"status,omitempty"` - // Urls: The URLs where the completed report file can be downloaded. Urls *FileUrls `json:"urls,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DateRange") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DateRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DateRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *File) MarshalJSON() ([]byte, error) { +func (s File) MarshalJSON() ([]byte, error) { type NoMethod File - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileUrls: The URLs where the completed report file can be downloaded. type FileUrls struct { // ApiUrl: The URL for downloading the report data through the API. ApiUrl string `json:"apiUrl,omitempty"` - - // BrowserUrl: The URL for downloading the report data through a - // browser. + // BrowserUrl: The URL for downloading the report data through a browser. BrowserUrl string `json:"browserUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApiUrl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiUrl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileUrls) MarshalJSON() ([]byte, error) { +func (s FileUrls) MarshalJSON() ([]byte, error) { type NoMethod FileUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileList: Represents the list of File resources. type FileList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The files returned in this response. Items []*File `json:"items,omitempty"` - // Kind: The kind of list this is, in this case dfareporting#fileList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through files. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through files. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileList) MarshalJSON() ([]byte, error) { +func (s FileList) MarshalJSON() ([]byte, error) { type NoMethod FileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Flight: Flight type Flight struct { // EndDate: Inventory item flight end date. EndDate string `json:"endDate,omitempty"` - // RateOrCost: Rate or cost of this flight. RateOrCost int64 `json:"rateOrCost,omitempty,string"` - // StartDate: Inventory item flight start date. StartDate string `json:"startDate,omitempty"` - // Units: Units of this flight. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Flight) MarshalJSON() ([]byte, error) { +func (s Flight) MarshalJSON() ([]byte, error) { type NoMethod Flight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivitiesGenerateTagResponse: Floodlight Activity -// GenerateTag Response +// FloodlightActivitiesGenerateTagResponse: Floodlight Activity GenerateTag +// Response type FloodlightActivitiesGenerateTagResponse struct { - // FloodlightActivityTag: Generated tag for this Floodlight activity. - // For global site tags, this is the event snippet. + // FloodlightActivityTag: Generated tag for this Floodlight activity. For + // global site tags, this is the event snippet. FloodlightActivityTag string `json:"floodlightActivityTag,omitempty"` - - // GlobalSiteTagGlobalSnippet: The global snippet section of a global - // site tag. The global site tag sets new cookies on your domain, which - // will store a unique identifier for a user or the ad click that - // brought the user to your site. Learn more. + // GlobalSiteTagGlobalSnippet: The global snippet section of a global site tag. + // The global site tag sets new cookies on your domain, which will store a + // unique identifier for a user or the ad click that brought the user to your + // site. Learn more. GlobalSiteTagGlobalSnippet string `json:"globalSiteTagGlobalSnippet,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesGenerateTagResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesGenerateTagResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityTag") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityTag") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FloodlightActivityTag") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesGenerateTagResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivitiesListResponse: Floodlight Activity List Response type FloodlightActivitiesListResponse struct { // FloodlightActivities: Floodlight activity collection. FloodlightActivities []*FloodlightActivity `json:"floodlightActivities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivities") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivities") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivities") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivities") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivity: Contains properties of a Floodlight activity. type FloodlightActivity struct { - // AccountId: Account ID of this floodlight activity. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity. If this - // field is left blank, the value will be copied over either from the - // activity group's advertiser or the existing activity's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity. If this field is + // left blank, the value will be copied over either from the activity group's + // advertiser or the existing activity's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CacheBustingType: Code type used for cache busting in the generated - // tag. Applicable only when floodlightActivityGroupType is COUNTER and + // CacheBustingType: Code type used for cache busting in the generated tag. + // Applicable only when floodlightActivityGroupType is COUNTER and // countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. // // Possible values: @@ -7239,7 +5916,6 @@ type FloodlightActivity struct { // "JSP" // "PHP" CacheBustingType string `json:"cacheBustingType,omitempty"` - // CountingMethod: Counting method for conversions for this floodlight // activity. This is a required field. // @@ -7250,111 +5926,86 @@ type FloodlightActivity struct { // "TRANSACTIONS_COUNTING" // "UNIQUE_COUNTING" CountingMethod string `json:"countingMethod,omitempty"` - // DefaultTags: Dynamic floodlight tags. DefaultTags []*FloodlightActivityDynamicTag `json:"defaultTags,omitempty"` - - // ExpectedUrl: URL where this tag will be deployed. If specified, must - // be less than 256 characters long. + // ExpectedUrl: URL where this tag will be deployed. If specified, must be less + // than 256 characters long. ExpectedUrl string `json:"expectedUrl,omitempty"` - - // FloodlightActivityGroupId: Floodlight activity group ID of this - // floodlight activity. This is a required field. + // FloodlightActivityGroupId: Floodlight activity group ID of this floodlight + // activity. This is a required field. FloodlightActivityGroupId int64 `json:"floodlightActivityGroupId,omitempty,string"` - - // FloodlightActivityGroupName: Name of the associated floodlight - // activity group. This is a read-only field. + // FloodlightActivityGroupName: Name of the associated floodlight activity + // group. This is a read-only field. FloodlightActivityGroupName string `json:"floodlightActivityGroupName,omitempty"` - - // FloodlightActivityGroupTagString: Tag string of the associated - // floodlight activity group. This is a read-only field. - FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` - - // FloodlightActivityGroupType: Type of the associated floodlight + // FloodlightActivityGroupTagString: Tag string of the associated floodlight // activity group. This is a read-only field. + FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` + // FloodlightActivityGroupType: Type of the associated floodlight activity + // group. This is a read-only field. // // Possible values: // "COUNTER" // "SALE" FloodlightActivityGroupType string `json:"floodlightActivityGroupType,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity. If this field is left blank, the value will be - // copied over either from the activity group's floodlight configuration - // or from the existing activity's floodlight configuration. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity. If this field is left blank, the value will be copied over either + // from the activity group's floodlight configuration or from the existing + // activity's floodlight configuration. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - - // FloodlightTagType: The type of Floodlight tag this activity will - // generate. This is a required field. + // FloodlightTagType: The type of Floodlight tag this activity will generate. + // This is a required field. // // Possible values: // "GLOBAL_SITE_TAG" // "IFRAME" // "IMAGE" FloodlightTagType string `json:"floodlightTagType,omitempty"` - - // Id: ID of this floodlight activity. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight activity. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity. + // This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivity". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivity". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity. This is a required field. - // Must be less than 129 characters long and cannot contain quotes. + // Name: Name of this floodlight activity. This is a required field. Must be + // less than 129 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - // Notes: General notes or implementation instructions for the tag. Notes string `json:"notes,omitempty"` - // PublisherTags: Publisher dynamic floodlight tags. PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"` - // Secure: Whether this tag should use SSL. Secure bool `json:"secure,omitempty"` - - // SslCompliant: Whether the floodlight activity is SSL-compliant. This - // is a read-only field, its value detected by the system from the - // floodlight tags. + // SslCompliant: Whether the floodlight activity is SSL-compliant. This is a + // read-only field, its value detected by the system from the floodlight tags. SslCompliant bool `json:"sslCompliant,omitempty"` - // SslRequired: Whether this floodlight activity must be SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagFormat: Tag format type for the floodlight activity. If left - // blank, the tag format will default to HTML. + // TagFormat: Tag format type for the floodlight activity. If left blank, the + // tag format will default to HTML. // // Possible values: // "HTML" // "XHTML" TagFormat string `json:"tagFormat,omitempty"` - - // TagString: Value of the cat= parameter in the floodlight tag, which - // the ad servers use to identify the activity. This is optional: if - // empty, a new tag string will be generated for you. This string must - // be 1 to 8 characters long, with valid characters being - // [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among - // activities of the same activity group. This field is read-only after - // insertion. + // TagString: Value of the cat= parameter in the floodlight tag, which the ad + // servers use to identify the activity. This is optional: if empty, a new tag + // string will be generated for you. This string must be 1 to 8 characters + // long, with valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string + // must also be unique among activities of the same activity group. This field + // is read-only after insertion. TagString string `json:"tagString,omitempty"` - - // UserDefinedVariableTypes: List of the user-defined variables used by - // this conversion tag. These map to the "u[1-100]=" in the tags. Each - // of these can have a user defined type. + // UserDefinedVariableTypes: List of the user-defined variables used by this + // conversion tag. These map to the "u[1-100]=" in the tags. Each of these can + // have a user defined type. // Acceptable values are U1 to U100, inclusive. // // Possible values: @@ -7460,157 +6111,119 @@ type FloodlightActivity struct { // "U99" UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivity) MarshalJSON() ([]byte, error) { +func (s FloodlightActivity) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityDynamicTag: Dynamic Tag type FloodlightActivityDynamicTag struct { - // Id: ID of this dynamic tag. This is a read-only, auto-generated - // field. + // Id: ID of this dynamic tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // Name: Name of this tag. Name string `json:"name,omitempty"` - // Tag: Tag code. Tag string `json:"tag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivityGroup: Contains properties of a Floodlight activity -// group. +// FloodlightActivityGroup: Contains properties of a Floodlight activity group. type FloodlightActivityGroup struct { - // AccountId: Account ID of this floodlight activity group. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity group. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity group. If - // this field is left blank, the value will be copied over either from - // the floodlight configuration's advertiser or from the existing - // activity group's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity group. If this field + // is left blank, the value will be copied over either from the floodlight + // configuration's advertiser or from the existing activity group's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity group. This is a required field. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity group. This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this floodlight activity group. This is a read-only, // auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity group. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity + // group. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity group. This is a required - // field. Must be less than 65 characters long and cannot contain - // quotes. + // Name: Name of this floodlight activity group. This is a required field. Must + // be less than 65 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity group. This - // is a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity group. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagString: Value of the type= parameter in the floodlight tag, which - // the ad servers use to identify the activity group that the activity - // belongs to. This is optional: if empty, a new tag string will be - // generated for you. This string must be 1 to 8 characters long, with - // valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must - // also be unique among activity groups of the same floodlight - // configuration. This field is read-only after insertion. + // TagString: Value of the type= parameter in the floodlight tag, which the ad + // servers use to identify the activity group that the activity belongs to. + // This is optional: if empty, a new tag string will be generated for you. This + // string must be 1 to 8 characters long, with valid characters being + // [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activity + // groups of the same floodlight configuration. This field is read-only after + // insertion. TagString string `json:"tagString,omitempty"` - - // Type: Type of the floodlight activity group. This is a required field - // that is read-only after insertion. + // Type: Type of the floodlight activity group. This is a required field that + // is read-only after insertion. // // Possible values: // "COUNTER" // "SALE" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityGroupsListResponse: Floodlight Activity Group List @@ -7618,494 +6231,369 @@ func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type FloodlightActivityGroupsListResponse struct { // FloodlightActivityGroups: Floodlight activity group collection. FloodlightActivityGroups []*FloodlightActivityGroup `json:"floodlightActivityGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityGroups") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityGroups") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityPublisherDynamicTag: Publisher Dynamic Tag type FloodlightActivityPublisherDynamicTag struct { // ClickThrough: Whether this tag is applicable only for click-throughs. ClickThrough bool `json:"clickThrough,omitempty"` - - // DirectorySiteId: Directory site ID of this dynamic tag. This is a - // write-only field that can be used as an alternative to the siteId - // field. When this resource is retrieved, only the siteId field will be - // populated. + // DirectorySiteId: Directory site ID of this dynamic tag. This is a write-only + // field that can be used as an alternative to the siteId field. When this + // resource is retrieved, only the siteId field will be populated. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - // DynamicTag: Dynamic floodlight tag. DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"` - // SiteId: Site ID of this dynamic tag. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - // ViewThrough: Whether this tag is applicable only for view-throughs. ViewThrough bool `json:"viewThrough,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThrough") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThrough") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickThrough") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityPublisherDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfiguration: Contains properties of a Floodlight -// configuration. +// FloodlightConfiguration: Contains properties of a Floodlight configuration. type FloodlightConfiguration struct { - // AccountId: Account ID of this floodlight configuration. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight configuration. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of the parent advertiser of this - // floodlight configuration. + // AdvertiserId: Advertiser ID of the parent advertiser of this floodlight + // configuration. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // AnalyticsDataSharingEnabled: Whether advertiser data is shared with - // Google Analytics. + // AnalyticsDataSharingEnabled: Whether advertiser data is shared with Google + // Analytics. AnalyticsDataSharingEnabled bool `json:"analyticsDataSharingEnabled,omitempty"` - - // ExposureToConversionEnabled: Whether the exposure-to-conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure-to-conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // FirstDayOfWeek: Day that will be counted as the first day of the week - // in reports. This is a required field. + // FirstDayOfWeek: Day that will be counted as the first day of the week in + // reports. This is a required field. // // Possible values: // "MONDAY" // "SUNDAY" FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"` - - // Id: ID of this floodlight configuration. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight configuration. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this floodlight // configuration. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // InAppAttributionTrackingEnabled: Whether in-app attribution tracking - // is enabled. + // InAppAttributionTrackingEnabled: Whether in-app attribution tracking is + // enabled. InAppAttributionTrackingEnabled bool `json:"inAppAttributionTrackingEnabled,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfiguration". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfiguration". Kind string `json:"kind,omitempty"` - // LookbackConfiguration: Lookback window settings for this floodlight // configuration. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // NaturalSearchConversionAttributionOption: Types of attribution - // options for natural search conversions. + // NaturalSearchConversionAttributionOption: Types of attribution options for + // natural search conversions. // // Possible values: // "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" NaturalSearchConversionAttributionOption string `json:"naturalSearchConversionAttributionOption,omitempty"` - // OmnitureSettings: Settings for Campaign Manager Omniture integration. OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight configuration. This is - // a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight configuration. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagSettings: Configuration settings for dynamic and image floodlight - // tags. + // TagSettings: Configuration settings for dynamic and image floodlight tags. TagSettings *TagSettings `json:"tagSettings,omitempty"` - - // ThirdPartyAuthenticationTokens: List of third-party authentication - // tokens enabled for this configuration. - ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` - - // UserDefinedVariableConfigurations: List of user defined variables + // ThirdPartyAuthenticationTokens: List of third-party authentication tokens // enabled for this configuration. + ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` + // UserDefinedVariableConfigurations: List of user defined variables enabled + // for this configuration. UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfiguration) MarshalJSON() ([]byte, error) { +func (s FloodlightConfiguration) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfigurationsListResponse: Floodlight Configuration List -// Response +// FloodlightConfigurationsListResponse: Floodlight Configuration List Response type FloodlightConfigurationsListResponse struct { // FloodlightConfigurations: Floodlight configuration collection. FloodlightConfigurations []*FloodlightConfiguration `json:"floodlightConfigurations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfigurationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfigurationsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightConfigurations") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightConfigurations") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightConfigurations") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightConfigurations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfigurationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type "FlOODLIGHT". +// FloodlightReportCompatibleFields: Represents fields that are compatible to +// be selected for a report of type "FlOODLIGHT". type FloodlightReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#floodlightReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod FloodlightReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FrequencyCap: Frequency Cap. type FrequencyCap struct { - // Duration: Duration of time, in seconds, for this frequency cap. The - // maximum duration is 90 days. Acceptable values are 1 to 7776000, - // inclusive. + // Duration: Duration of time, in seconds, for this frequency cap. The maximum + // duration is 90 days. Acceptable values are 1 to 7776000, inclusive. Duration int64 `json:"duration,omitempty,string"` - - // Impressions: Number of times an individual user can be served the ad - // within the specified duration. Acceptable values are 1 to 15, - // inclusive. + // Impressions: Number of times an individual user can be served the ad within + // the specified duration. Acceptable values are 1 to 15, inclusive. Impressions int64 `json:"impressions,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FrequencyCap) MarshalJSON() ([]byte, error) { +func (s FrequencyCap) MarshalJSON() ([]byte, error) { type NoMethod FrequencyCap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FsCommand: FsCommand. type FsCommand struct { - // Left: Distance from the left of the browser.Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Left: Distance from the left of the browser.Applicable when positionOption + // is DISTANCE_FROM_TOP_LEFT_CORNER. Left int64 `json:"left,omitempty"` - // PositionOption: Position in the browser where the window will open. // // Possible values: // "CENTERED" // "DISTANCE_FROM_TOP_LEFT_CORNER" PositionOption string `json:"positionOption,omitempty"` - - // Top: Distance from the top of the browser. Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Top: Distance from the top of the browser. Applicable when positionOption is + // DISTANCE_FROM_TOP_LEFT_CORNER. Top int64 `json:"top,omitempty"` - // WindowHeight: Height of the window. WindowHeight int64 `json:"windowHeight,omitempty"` - // WindowWidth: Width of the window. WindowWidth int64 `json:"windowWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FsCommand) MarshalJSON() ([]byte, error) { +func (s FsCommand) MarshalJSON() ([]byte, error) { type NoMethod FsCommand - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GeoTargeting: Geographical Targeting. type GeoTargeting struct { - // Cities: Cities to be targeted. For each city only dartId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a city, do not target or exclude the country - // of the city, and do not target the metro or region of the city. + // Cities: Cities to be targeted. For each city only dartId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a city, do not target or exclude the country of the city, and + // do not target the metro or region of the city. Cities []*City `json:"cities,omitempty"` - - // Countries: Countries to be targeted or excluded from targeting, - // depending on the setting of the excludeCountries field. For each - // country only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting or - // excluding a country, do not target regions, cities, metros, or postal - // codes in the same country. + // Countries: Countries to be targeted or excluded from targeting, depending on + // the setting of the excludeCountries field. For each country only dartId is + // required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting or excluding a country, do not target + // regions, cities, metros, or postal codes in the same country. Countries []*Country `json:"countries,omitempty"` - - // ExcludeCountries: Whether or not to exclude the countries in the - // countries field from targeting. If false, the countries field refers - // to countries which will be targeted by the ad. + // ExcludeCountries: Whether or not to exclude the countries in the countries + // field from targeting. If false, the countries field refers to countries + // which will be targeted by the ad. ExcludeCountries bool `json:"excludeCountries,omitempty"` - - // Metros: Metros to be targeted. For each metro only dmaId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a metro, do not target or exclude the - // country of the metro. + // Metros: Metros to be targeted. For each metro only dmaId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a metro, do not target or exclude the country of the metro. Metros []*Metro `json:"metros,omitempty"` - - // PostalCodes: Postal codes to be targeted. For each postal code only - // id is required. The other fields are populated automatically when the - // ad is inserted or updated. If targeting a postal code, do not target - // or exclude the country of the postal code. - PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - - // Regions: Regions to be targeted. For each region only dartId is + // PostalCodes: Postal codes to be targeted. For each postal code only id is // required. The other fields are populated automatically when the ad is - // inserted or updated. If targeting a region, do not target or exclude - // the country of the region. + // inserted or updated. If targeting a postal code, do not target or exclude + // the country of the postal code. + PostalCodes []*PostalCode `json:"postalCodes,omitempty"` + // Regions: Regions to be targeted. For each region only dartId is required. + // The other fields are populated automatically when the ad is inserted or + // updated. If targeting a region, do not target or exclude the country of the + // region. Regions []*Region `json:"regions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoTargeting) MarshalJSON() ([]byte, error) { +func (s GeoTargeting) MarshalJSON() ([]byte, error) { type NoMethod GeoTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItem: Represents a buy from the Planning inventory store. type InventoryItem struct { // AccountId: Account ID of this inventory item. AccountId int64 `json:"accountId,omitempty,string"` - - // AdSlots: Ad slots of this inventory item. If this inventory item - // represents a standalone placement, there will be exactly one ad slot. - // If this inventory item represents a placement group, there will be - // more than one ad slot, each representing one child placement in that - // placement group. + // AdSlots: Ad slots of this inventory item. If this inventory item represents + // a standalone placement, there will be exactly one ad slot. If this inventory + // item represents a placement group, there will be more than one ad slot, each + // representing one child placement in that placement group. AdSlots []*AdSlot `json:"adSlots,omitempty"` - // AdvertiserId: Advertiser ID of this inventory item. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // ContentCategoryId: Content category ID of this inventory item. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // EstimatedClickThroughRate: Estimated click-through rate of this - // inventory item. - EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` - - // EstimatedConversionRate: Estimated conversion rate of this inventory + // EstimatedClickThroughRate: Estimated click-through rate of this inventory // item. + EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` + // EstimatedConversionRate: Estimated conversion rate of this inventory item. EstimatedConversionRate int64 `json:"estimatedConversionRate,omitempty,string"` - // Id: ID of this inventory item. Id int64 `json:"id,omitempty,string"` - // InPlan: Whether this inventory item is in plan. InPlan bool `json:"inPlan,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItem". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this inventory item. + // LastModifiedInfo: Information about the most recent modification of this + // inventory item. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this inventory item. For standalone inventory items, - // this is the same name as that of its only ad slot. For group - // inventory items, this can differ from the name of any of its ad - // slots. + // Name: Name of this inventory item. For standalone inventory items, this is + // the same name as that of its only ad slot. For group inventory items, this + // can differ from the name of any of its ad slots. Name string `json:"name,omitempty"` - // NegotiationChannelId: Negotiation channel ID of this inventory item. NegotiationChannelId int64 `json:"negotiationChannelId,omitempty,string"` - // OrderId: Order ID of this inventory item. OrderId int64 `json:"orderId,omitempty,string"` - // PlacementStrategyId: Placement strategy ID of this inventory item. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - // Pricing: Pricing of this inventory item. Pricing *Pricing `json:"pricing,omitempty"` - // ProjectId: Project ID of this inventory item. ProjectId int64 `json:"projectId,omitempty,string"` - // RfpId: RFP ID of this inventory item. RfpId int64 `json:"rfpId,omitempty,string"` - // SiteId: ID of the site this inventory item is associated with. SiteId int64 `json:"siteId,omitempty,string"` - // SubaccountId: Subaccount ID of this inventory item. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Type: Type of inventory item. // // Possible values: @@ -8113,382 +6601,291 @@ type InventoryItem struct { // "PLANNING_PLACEMENT_TYPE_REGULAR" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItem) MarshalJSON() ([]byte, error) { +func (s InventoryItem) MarshalJSON() ([]byte, error) { type NoMethod InventoryItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItemsListResponse: Inventory item List Response type InventoryItemsListResponse struct { // InventoryItems: Inventory item collection InventoryItems []*InventoryItem `json:"inventoryItems,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItemsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "InventoryItems") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventoryItems") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventoryItems") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItemsListResponse) MarshalJSON() ([]byte, error) { +func (s InventoryItemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod InventoryItemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // KeyValueTargetingExpression: Key Value Targeting Expression. type KeyValueTargetingExpression struct { // Expression: Keyword expression being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { +func (s KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod KeyValueTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LandingPage: Contains information about where a user's browser is -// taken after the user clicks an ad. +// LandingPage: Contains information about where a user's browser is taken +// after the user clicks an ad. type LandingPage struct { - // AdvertiserId: Advertiser ID of this landing page. This is a required - // field. + // AdvertiserId: Advertiser ID of this landing page. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // Archived: Whether this landing page has been archived. Archived bool `json:"archived,omitempty"` - - // DeepLinks: Links that will direct the user to a mobile app, if - // installed. + // DeepLinks: Links that will direct the user to a mobile app, if installed. DeepLinks []*DeepLink `json:"deepLinks,omitempty"` - - // Id: ID of this landing page. This is a read-only, auto-generated - // field. + // Id: ID of this landing page. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#landingPage". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#landingPage". Kind string `json:"kind,omitempty"` - - // Name: Name of this landing page. This is a required field. It must be - // less than 256 characters long. + // Name: Name of this landing page. This is a required field. It must be less + // than 256 characters long. Name string `json:"name,omitempty"` - // Url: URL of this landing page. This is a required field. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LandingPage) MarshalJSON() ([]byte, error) { +func (s LandingPage) MarshalJSON() ([]byte, error) { type NoMethod LandingPage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Language: Contains information about a language that can be targeted -// by ads. +// Language: Contains information about a language that can be targeted by ads. type Language struct { - // Id: Language ID of this language. This is the ID used for targeting - // and generating reports. + // Id: Language ID of this language. This is the ID used for targeting and + // generating reports. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#language". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#language". Kind string `json:"kind,omitempty"` - - // LanguageCode: Format of language code is an ISO 639 two-letter - // language code optionally followed by an underscore followed by an ISO - // 3166 code. Examples are "en" for English or "zh_CN" for Simplified - // Chinese. + // LanguageCode: Format of language code is an ISO 639 two-letter language code + // optionally followed by an underscore followed by an ISO 3166 code. Examples + // are "en" for English or "zh_CN" for Simplified Chinese. LanguageCode string `json:"languageCode,omitempty"` - // Name: Name of this language. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Language) MarshalJSON() ([]byte, error) { +func (s Language) MarshalJSON() ([]byte, error) { type NoMethod Language - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguageTargeting: Language Targeting. type LanguageTargeting struct { - // Languages: Languages that this ad targets. For each language only - // languageId is required. The other fields are populated automatically - // when the ad is inserted or updated. + // Languages: Languages that this ad targets. For each language only languageId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. Languages []*Language `json:"languages,omitempty"` - // ForceSendFields is a list of field names (e.g. "Languages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Languages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Languages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguageTargeting) MarshalJSON() ([]byte, error) { +func (s LanguageTargeting) MarshalJSON() ([]byte, error) { type NoMethod LanguageTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguagesListResponse: Language List Response type LanguagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#languagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#languagesListResponse". Kind string `json:"kind,omitempty"` - // Languages: Language collection. Languages []*Language `json:"languages,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguagesListResponse) MarshalJSON() ([]byte, error) { +func (s LanguagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod LanguagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LastModifiedInfo: Modification timestamp. type LastModifiedInfo struct { // Time: Timestamp of the last change in milliseconds since epoch. Time int64 `json:"time,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Time") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Time") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Time") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Time") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LastModifiedInfo) MarshalJSON() ([]byte, error) { +func (s LastModifiedInfo) MarshalJSON() ([]byte, error) { type NoMethod LastModifiedInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationClause: A group clause made up of list population terms // representing constraints joined by ORs. type ListPopulationClause struct { - // Terms: Terms of this list population clause. Each clause is made up - // of list population terms representing constraints and are joined by - // ORs. + // Terms: Terms of this list population clause. Each clause is made up of list + // population terms representing constraints and are joined by ORs. Terms []*ListPopulationTerm `json:"terms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Terms") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Terms") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Terms") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationClause) MarshalJSON() ([]byte, error) { +func (s ListPopulationClause) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationClause - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationRule: Remarketing List Population Rule. type ListPopulationRule struct { - // FloodlightActivityId: Floodlight activity ID associated with this - // rule. This field can be left blank. + // FloodlightActivityId: Floodlight activity ID associated with this rule. This + // field can be left blank. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightActivityName: Name of floodlight activity associated with - // this rule. This is a read-only, auto-generated field. + // FloodlightActivityName: Name of floodlight activity associated with this + // rule. This is a read-only, auto-generated field. FloodlightActivityName string `json:"floodlightActivityName,omitempty"` - - // ListPopulationClauses: Clauses that make up this list population - // rule. Clauses are joined by ANDs, and the clauses themselves are made - // up of list population terms which are joined by ORs. + // ListPopulationClauses: Clauses that make up this list population rule. + // Clauses are joined by ANDs, and the clauses themselves are made up of list + // population terms which are joined by ORs. ListPopulationClauses []*ListPopulationClause `json:"listPopulationClauses,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationRule) MarshalJSON() ([]byte, error) { +func (s ListPopulationRule) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationTerm: Remarketing List Population Rule Term. type ListPopulationTerm struct { - // Contains: Will be true if the term should check if the user is in the - // list and false if the term should check if the user is not in the - // list. This field is only relevant when type is set to - // LIST_MEMBERSHIP_TERM. False by default. + // Contains: Will be true if the term should check if the user is in the list + // and false if the term should check if the user is not in the list. This + // field is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by + // default. Contains bool `json:"contains,omitempty"` - - // Negation: Whether to negate the comparison result of this term during - // rule evaluation. This field is only relevant when type is left unset - // or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. + // Negation: Whether to negate the comparison result of this term during rule + // evaluation. This field is only relevant when type is left unset or set to + // CUSTOM_VARIABLE_TERM or REFERRER_TERM. Negation bool `json:"negation,omitempty"` - - // Operator: Comparison operator of this term. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Operator: Comparison operator of this term. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. // // Possible values: // "NUM_EQUALS" @@ -8499,252 +6896,194 @@ type ListPopulationTerm struct { // "STRING_CONTAINS" // "STRING_EQUALS" Operator string `json:"operator,omitempty"` - - // RemarketingListId: ID of the list in question. This field is only - // relevant when type is set to LIST_MEMBERSHIP_TERM. + // RemarketingListId: ID of the list in question. This field is only relevant + // when type is set to LIST_MEMBERSHIP_TERM. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - - // Type: List population term type determines the applicable fields in - // this object. If left unset or set to CUSTOM_VARIABLE_TERM, then - // variableName, variableFriendlyName, operator, value, and negation are - // applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and - // contains are applicable. If set to REFERRER_TERM then operator, - // value, and negation are applicable. + // Type: List population term type determines the applicable fields in this + // object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, + // variableFriendlyName, operator, value, and negation are applicable. If set + // to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. + // If set to REFERRER_TERM then operator, value, and negation are applicable. // // Possible values: // "CUSTOM_VARIABLE_TERM" // "LIST_MEMBERSHIP_TERM" // "REFERRER_TERM" Type string `json:"type,omitempty"` - - // Value: Literal to compare the variable to. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Value: Literal to compare the variable to. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. Value string `json:"value,omitempty"` - - // VariableFriendlyName: Friendly name of this term's variable. This is - // a read-only, auto-generated field. This field is only relevant when - // type is left unset or set to CUSTOM_VARIABLE_TERM. + // VariableFriendlyName: Friendly name of this term's variable. This is a + // read-only, auto-generated field. This field is only relevant when type is + // left unset or set to CUSTOM_VARIABLE_TERM. VariableFriendlyName string `json:"variableFriendlyName,omitempty"` - - // VariableName: Name of the variable (U1, U2, etc.) being compared in - // this term. This field is only relevant when type is set to null, + // VariableName: Name of the variable (U1, U2, etc.) being compared in this + // term. This field is only relevant when type is set to null, // CUSTOM_VARIABLE_TERM or REFERRER_TERM. VariableName string `json:"variableName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contains") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contains") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contains") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationTerm) MarshalJSON() ([]byte, error) { +func (s ListPopulationTerm) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationTerm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListTargetingExpression: Remarketing List Targeting Expression. type ListTargetingExpression struct { - // Expression: Expression describing which lists are being targeted by - // the ad. + // Expression: Expression describing which lists are being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListTargetingExpression) MarshalJSON() ([]byte, error) { +func (s ListTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod ListTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LookbackConfiguration: Lookback configuration settings. type LookbackConfiguration struct { - // ClickDuration: Lookback window, in days, from the last time a given - // user clicked on one of your ads. If you enter 0, clicks will not be - // considered as triggering events for floodlight tracking. If you leave + // ClickDuration: Lookback window, in days, from the last time a given user + // clicked on one of your ads. If you enter 0, clicks will not be considered as + // triggering events for floodlight tracking. If you leave this field blank, + // the default value for your account will be used. Acceptable values are 0 to + // 90, inclusive. + ClickDuration int64 `json:"clickDuration,omitempty"` + // PostImpressionActivitiesDuration: Lookback window, in days, from the last + // time a given user viewed one of your ads. If you enter 0, impressions will + // not be considered as triggering events for floodlight tracking. If you leave // this field blank, the default value for your account will be used. // Acceptable values are 0 to 90, inclusive. - ClickDuration int64 `json:"clickDuration,omitempty"` - - // PostImpressionActivitiesDuration: Lookback window, in days, from the - // last time a given user viewed one of your ads. If you enter 0, - // impressions will not be considered as triggering events for - // floodlight tracking. If you leave this field blank, the default value - // for your account will be used. Acceptable values are 0 to 90, - // inclusive. PostImpressionActivitiesDuration int64 `json:"postImpressionActivitiesDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickDuration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickDuration") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickDuration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LookbackConfiguration) MarshalJSON() ([]byte, error) { +func (s LookbackConfiguration) MarshalJSON() ([]byte, error) { type NoMethod LookbackConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Metric: Represents a metric. type Metric struct { // Kind: The kind of resource this is, in this case dfareporting#metric. Kind string `json:"kind,omitempty"` - // Name: The metric name, e.g. dfa:impressions Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metric) MarshalJSON() ([]byte, error) { +func (s Metric) MarshalJSON() ([]byte, error) { type NoMethod Metric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metro: Contains information about a metro region that can be targeted -// by ads. +// Metro: Contains information about a metro region that can be targeted by +// ads. type Metro struct { - // CountryCode: Country code of the country to which this metro region - // belongs. + // CountryCode: Country code of the country to which this metro region belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this metro region - // belongs. + // CountryDartId: DART ID of the country to which this metro region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this metro region. DartId int64 `json:"dartId,omitempty,string"` - - // DmaId: DMA ID of this metro region. This is the ID used for targeting - // and generating reports, and is equivalent to metro_code. + // DmaId: DMA ID of this metro region. This is the ID used for targeting and + // generating reports, and is equivalent to metro_code. DmaId int64 `json:"dmaId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metro". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metro". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro code of this metro region. This is equivalent to - // dma_id. + // MetroCode: Metro code of this metro region. This is equivalent to dma_id. MetroCode string `json:"metroCode,omitempty"` - // Name: Name of this metro region. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metro) MarshalJSON() ([]byte, error) { +func (s Metro) MarshalJSON() ([]byte, error) { type NoMethod Metro - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetrosListResponse: Metro List Response type MetrosListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metrosListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metrosListResponse". Kind string `json:"kind,omitempty"` - // Metros: Metro collection. Metros []*Metro `json:"metros,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetrosListResponse) MarshalJSON() ([]byte, error) { +func (s MetrosListResponse) MarshalJSON() ([]byte, error) { type NoMethod MetrosListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileApp: Contains information about a mobile app. Used as a landing -// page deep link. +// MobileApp: Contains information about a mobile app. Used as a landing page +// deep link. type MobileApp struct { // Directory: Mobile app directory. // @@ -8753,600 +7092,453 @@ type MobileApp struct { // "GOOGLE_PLAY_STORE" // "UNKNOWN" Directory string `json:"directory,omitempty"` - // Id: ID of this mobile app. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileApp". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileApp". Kind string `json:"kind,omitempty"` - // PublisherName: Publisher name. PublisherName string `json:"publisherName,omitempty"` - // Title: Title of this mobile app. Title string `json:"title,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Directory") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directory") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directory") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileApp) MarshalJSON() ([]byte, error) { +func (s MobileApp) MarshalJSON() ([]byte, error) { type NoMethod MobileApp - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileAppsListResponse: Mobile app List Response type MobileAppsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileAppsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileAppsListResponse". Kind string `json:"kind,omitempty"` - // MobileApps: Mobile apps collection. MobileApps []*MobileApp `json:"mobileApps,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileAppsListResponse) MarshalJSON() ([]byte, error) { +func (s MobileAppsListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileAppsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileCarrier: Contains information about a mobile carrier that can -// be targeted by ads. +// MobileCarrier: Contains information about a mobile carrier that can be +// targeted by ads. type MobileCarrier struct { // CountryCode: Country code of the country to which this mobile carrier // belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this mobile carrier - // belongs. + // CountryDartId: DART ID of the country to which this mobile carrier belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this mobile carrier. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarrier". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarrier". Kind string `json:"kind,omitempty"` - // Name: Name of this mobile carrier. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarrier) MarshalJSON() ([]byte, error) { +func (s MobileCarrier) MarshalJSON() ([]byte, error) { type NoMethod MobileCarrier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileCarriersListResponse: Mobile Carrier List Response type MobileCarriersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarriersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarriersListResponse". Kind string `json:"kind,omitempty"` - // MobileCarriers: Mobile carrier collection. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarriersListResponse) MarshalJSON() ([]byte, error) { +func (s MobileCarriersListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileCarriersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObjectFilter: Object Filter. type ObjectFilter struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#objectFilter". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#objectFilter". Kind string `json:"kind,omitempty"` - // ObjectIds: Applicable when status is ASSIGNED. The user has access to // objects with these object IDs. ObjectIds googleapi.Int64s `json:"objectIds,omitempty"` - - // Status: Status of the filter. NONE means the user has access to none - // of the objects. ALL means the user has access to all objects. - // ASSIGNED means the user has access to the objects with IDs in the - // objectIds list. + // Status: Status of the filter. NONE means the user has access to none of the + // objects. ALL means the user has access to all objects. ASSIGNED means the + // user has access to the objects with IDs in the objectIds list. // // Possible values: // "ALL" // "ASSIGNED" // "NONE" Status string `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectFilter) MarshalJSON() ([]byte, error) { +func (s ObjectFilter) MarshalJSON() ([]byte, error) { type NoMethod ObjectFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OffsetPosition: Offset Position. type OffsetPosition struct { // Left: Offset distance from left side of an asset or a window. Left int64 `json:"left,omitempty"` - // Top: Offset distance from top side of an asset or a window. Top int64 `json:"top,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OffsetPosition) MarshalJSON() ([]byte, error) { +func (s OffsetPosition) MarshalJSON() ([]byte, error) { type NoMethod OffsetPosition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OmnitureSettings: Omniture Integration Settings. type OmnitureSettings struct { // OmnitureCostDataEnabled: Whether placement cost data will be sent to - // Omniture. This property can be enabled only if - // omnitureIntegrationEnabled is true. + // Omniture. This property can be enabled only if omnitureIntegrationEnabled is + // true. OmnitureCostDataEnabled bool `json:"omnitureCostDataEnabled,omitempty"` - - // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. - // This property can be enabled only when the "Advanced Ad Serving" - // account setting is enabled. + // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. This + // property can be enabled only when the "Advanced Ad Serving" account setting + // is enabled. OmnitureIntegrationEnabled bool `json:"omnitureIntegrationEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "OmnitureCostDataEnabled") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OmnitureSettings) MarshalJSON() ([]byte, error) { +func (s OmnitureSettings) MarshalJSON() ([]byte, error) { type NoMethod OmnitureSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystem: Contains information about an operating system that -// can be targeted by ads. +// OperatingSystem: Contains information about an operating system that can be +// targeted by ads. type OperatingSystem struct { - // DartId: DART ID of this operating system. This is the ID used for - // targeting. + // DartId: DART ID of this operating system. This is the ID used for targeting. DartId int64 `json:"dartId,omitempty,string"` - // Desktop: Whether this operating system is for desktop. Desktop bool `json:"desktop,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystem". Kind string `json:"kind,omitempty"` - // Mobile: Whether this operating system is for mobile. Mobile bool `json:"mobile,omitempty"` - // Name: Name of this operating system. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DartId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DartId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DartId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystem) MarshalJSON() ([]byte, error) { +func (s OperatingSystem) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersion: Contains information about a particular -// version of an operating system that can be targeted by ads. +// OperatingSystemVersion: Contains information about a particular version of +// an operating system that can be targeted by ads. type OperatingSystemVersion struct { // Id: ID of this operating system version. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersion". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version (leftmost number) of this operating - // system version. + // MajorVersion: Major version (leftmost number) of this operating system + // version. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version (number after the first dot) of this - // operating system version. + // MinorVersion: Minor version (number after the first dot) of this operating + // system version. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this operating system version. Name string `json:"name,omitempty"` - // OperatingSystem: Operating system of this operating system version. OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersion) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersion) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersionsListResponse: Operating System Version List -// Response +// OperatingSystemVersionsListResponse: Operating System Version List Response type OperatingSystemVersionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersionsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystemVersions: Operating system version collection. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperatingSystemsListResponse: Operating System List Response type OperatingSystemsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystems: Operating system collection. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OptimizationActivity: Creative optimization activity. type OptimizationActivity struct { - // FloodlightActivityId: Floodlight activity ID of this optimization - // activity. This is a required field. + // FloodlightActivityId: Floodlight activity ID of this optimization activity. + // This is a required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // FloodlightActivityIdDimensionValue: Dimension value for the ID of the // floodlight activity. This is a read-only, auto-generated field. FloodlightActivityIdDimensionValue *DimensionValue `json:"floodlightActivityIdDimensionValue,omitempty"` - - // Weight: Weight associated with this optimization. The weight assigned - // will be understood in proportion to the weights assigned to the other + // Weight: Weight associated with this optimization. The weight assigned will + // be understood in proportion to the weights assigned to the other // optimization activities. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OptimizationActivity) MarshalJSON() ([]byte, error) { +func (s OptimizationActivity) MarshalJSON() ([]byte, error) { type NoMethod OptimizationActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Order: Describes properties of a Planning order. type Order struct { // AccountId: Account ID of this order. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // ApproverUserProfileIds: IDs for users that have to approve documents - // created for this order. + // ApproverUserProfileIds: IDs for users that have to approve documents created + // for this order. ApproverUserProfileIds googleapi.Int64s `json:"approverUserProfileIds,omitempty"` - // BuyerInvoiceId: Buyer invoice ID associated with this order. BuyerInvoiceId string `json:"buyerInvoiceId,omitempty"` - // BuyerOrganizationName: Name of the buyer organization. BuyerOrganizationName string `json:"buyerOrganizationName,omitempty"` - // Comments: Comments in this order. Comments string `json:"comments,omitempty"` - // Contacts: Contacts for this order. Contacts []*OrderContact `json:"contacts,omitempty"` - // Id: ID of this order. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#order". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#order". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this order. + // LastModifiedInfo: Information about the most recent modification of this + // order. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this order. Name string `json:"name,omitempty"` - // Notes: Notes of this order. Notes string `json:"notes,omitempty"` - - // PlanningTermId: ID of the terms and conditions template used in this - // order. + // PlanningTermId: ID of the terms and conditions template used in this order. PlanningTermId int64 `json:"planningTermId,omitempty,string"` - // ProjectId: Project ID of this order. ProjectId int64 `json:"projectId,omitempty,string"` - // SellerOrderId: Seller order ID associated with this order. SellerOrderId string `json:"sellerOrderId,omitempty"` - // SellerOrganizationName: Name of the seller organization. SellerOrganizationName string `json:"sellerOrganizationName,omitempty"` - // SiteId: Site IDs this order is associated with. SiteId googleapi.Int64s `json:"siteId,omitempty"` - // SiteNames: Free-form site names this order is associated with. SiteNames []string `json:"siteNames,omitempty"` - // SubaccountId: Subaccount ID of this order. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TermsAndConditions: Terms and conditions of this order. TermsAndConditions string `json:"termsAndConditions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Order) MarshalJSON() ([]byte, error) { +func (s Order) MarshalJSON() ([]byte, error) { type NoMethod Order - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderContact: Contact of an order. type OrderContact struct { - // ContactInfo: Free-form information about this contact. It could be - // any information related to this contact in addition to type, title, - // name, and signature user profile ID. + // ContactInfo: Free-form information about this contact. It could be any + // information related to this contact in addition to type, title, name, and + // signature user profile ID. ContactInfo string `json:"contactInfo,omitempty"` - // ContactName: Name of this contact. ContactName string `json:"contactName,omitempty"` - // ContactTitle: Title of this contact. ContactTitle string `json:"contactTitle,omitempty"` - // ContactType: Type of this contact. // // Possible values: @@ -9354,90 +7546,66 @@ type OrderContact struct { // "PLANNING_ORDER_CONTACT_BUYER_CONTACT" // "PLANNING_ORDER_CONTACT_SELLER_CONTACT" ContactType string `json:"contactType,omitempty"` - - // SignatureUserProfileId: ID of the user profile containing the - // signature that will be embedded into order documents. + // SignatureUserProfileId: ID of the user profile containing the signature that + // will be embedded into order documents. SignatureUserProfileId int64 `json:"signatureUserProfileId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ContactInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContactInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContactInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderContact) MarshalJSON() ([]byte, error) { +func (s OrderContact) MarshalJSON() ([]byte, error) { type NoMethod OrderContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocument: Contains properties of a Planning order document. type OrderDocument struct { // AccountId: Account ID of this order document. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order document. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AmendedOrderDocumentId: The amended order document ID of this order - // document. An order document can be created by optionally amending - // another order document so that the change history can be preserved. + // document. An order document can be created by optionally amending another + // order document so that the change history can be preserved. AmendedOrderDocumentId int64 `json:"amendedOrderDocumentId,omitempty,string"` - // ApprovedByUserProfileIds: IDs of users who have approved this order // document. ApprovedByUserProfileIds googleapi.Int64s `json:"approvedByUserProfileIds,omitempty"` - // Cancelled: Whether this order document is cancelled. Cancelled bool `json:"cancelled,omitempty"` - // CreatedInfo: Information about the creation of this order document. CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"` - // EffectiveDate: Effective date of this order document. EffectiveDate string `json:"effectiveDate,omitempty"` - // Id: ID of this order document. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocument". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocument". Kind string `json:"kind,omitempty"` - - // LastSentRecipients: List of email addresses that received the last - // sent document. - LastSentRecipients []string `json:"lastSentRecipients,omitempty"` - - // LastSentTime: Timestamp of the last email sent with this order + // LastSentRecipients: List of email addresses that received the last sent // document. + LastSentRecipients []string `json:"lastSentRecipients,omitempty"` + // LastSentTime: Timestamp of the last email sent with this order document. LastSentTime string `json:"lastSentTime,omitempty"` - // OrderId: ID of the order from which this order document is created. OrderId int64 `json:"orderId,omitempty,string"` - // ProjectId: Project ID of this order document. ProjectId int64 `json:"projectId,omitempty,string"` - // Signed: Whether this order document has been signed. Signed bool `json:"signed,omitempty"` - // SubaccountId: Subaccount ID of this order document. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Title: Title of this order document. Title string `json:"title,omitempty"` - // Type: Type of this order document // // Possible values: @@ -9445,208 +7613,154 @@ type OrderDocument struct { // "PLANNING_ORDER_TYPE_INSERTION_ORDER" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocument) MarshalJSON() ([]byte, error) { +func (s OrderDocument) MarshalJSON() ([]byte, error) { type NoMethod OrderDocument - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocumentsListResponse: Order document List Response type OrderDocumentsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocumentsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocumentsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // OrderDocuments: Order document collection OrderDocuments []*OrderDocument `json:"orderDocuments,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { +func (s OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderDocumentsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrdersListResponse: Order List Response type OrdersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ordersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ordersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Orders: Order collection. Orders []*Order `json:"orders,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersListResponse) MarshalJSON() ([]byte, error) { +func (s OrdersListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PathToConversionReportCompatibleFields: Represents fields that are // compatible to be selected for a report of type "PATH_TO_CONVERSION". type PathToConversionReportCompatibleFields struct { - // ConversionDimensions: Conversion dimensions which are compatible to - // be selected in the "conversionDimensions" section of the report. + // ConversionDimensions: Conversion dimensions which are compatible to be + // selected in the "conversionDimensions" section of the report. ConversionDimensions []*Dimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: Custom floodlight variables which are - // compatible to be selected in the "customFloodlightVariables" section - // of the report. + // CustomFloodlightVariables: Custom floodlight variables which are compatible + // to be selected in the "customFloodlightVariables" section of the report. CustomFloodlightVariables []*Dimension `json:"customFloodlightVariables,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#pathToConversionReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PerInteractionDimensions: Per-interaction dimensions which are - // compatible to be selected in the "perInteractionDimensions" section - // of the report. + // PerInteractionDimensions: Per-interaction dimensions which are compatible to + // be selected in the "perInteractionDimensions" section of the report. PerInteractionDimensions []*Dimension `json:"perInteractionDimensions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConversionDimensions") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ConversionDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConversionDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConversionDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod PathToConversionReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Placement: Contains properties of a placement. type Placement struct { - // AccountId: Account ID of this placement. This field can be left - // blank. + // AccountId: Account ID of this placement. This field can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdBlockingOptOut: Whether this placement opts out of ad blocking. - // When true, ad blocking is disabled for this placement. When false, - // the campaign and site settings take effect. + // AdBlockingOptOut: Whether this placement opts out of ad blocking. When true, + // ad blocking is disabled for this placement. When false, the campaign and + // site settings take effect. AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - - // AdditionalSizes: Additional sizes associated with this placement. - // When inserting or updating a placement, only the size ID field is - // used. + // AdditionalSizes: Additional sizes associated with this placement. When + // inserting or updating a placement, only the size ID field is used. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // AdvertiserId: Advertiser ID of this placement. This field can be left - // blank. + // AdvertiserId: Advertiser ID of this placement. This field can be left blank. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement. This field is a required - // field on insertion. + // CampaignId: Campaign ID of this placement. This field is a required field on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - // Comment: Comments for this placement. Comment string `json:"comment,omitempty"` - - // Compatibility: Placement compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices - // or in mobile apps for regular or interstitial ads respectively. APP - // and APP_INTERSTITIAL are no longer allowed for new placement - // insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. This field is required on insertion. + // Compatibility: Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL + // refer to rendering on desktop, on mobile devices or in mobile apps for + // regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no + // longer allowed for new placement insertions. Instead, use DISPLAY or + // DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video + // ads developed with the VAST standard. This field is required on insertion. // // Possible values: // "APP" @@ -9656,113 +7770,85 @@ type Placement struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement. + // ContentCategoryId: ID of the content category assigned to this placement. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement. This is - // a read-only field. + // CreateInfo: Information about the creation of this placement. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID of this placement. On insert, you - // must set either this field or the siteId field to specify the site - // associated with this placement. This is a required field that is - // read-only after insertion. + // DirectorySiteId: Directory site ID of this placement. On insert, you must + // set either this field or the siteId field to specify the site associated + // with this placement. This is a required field that is read-only after + // insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this placement. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this placement. This is a read-only, - // auto-generated field. + // KeyName: Key name of this placement. This is a read-only, auto-generated + // field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placement". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placement". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // LookbackConfiguration: Lookback window settings for this placement. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // Name: Name of this placement.This is a required field and must be - // less than 256 characters long. + // Name: Name of this placement.This is a required field and must be less than + // 256 characters long. Name string `json:"name,omitempty"` - - // PaymentApproved: Whether payment was approved for this placement. - // This is a read-only field relevant only to publisher-paid placements. + // PaymentApproved: Whether payment was approved for this placement. This is a + // read-only field relevant only to publisher-paid placements. PaymentApproved bool `json:"paymentApproved,omitempty"` - - // PaymentSource: Payment source for this placement. This is a required - // field that is read-only after insertion. + // PaymentSource: Payment source for this placement. This is a required field + // that is read-only after insertion. // // Possible values: // "PLACEMENT_AGENCY_PAID" // "PLACEMENT_PUBLISHER_PAID" PaymentSource string `json:"paymentSource,omitempty"` - // PlacementGroupId: ID of this placement's group, if applicable. PlacementGroupId int64 `json:"placementGroupId,omitempty,string"` - - // PlacementGroupIdDimensionValue: Dimension value for the ID of the - // placement group. This is a read-only, auto-generated field. + // PlacementGroupIdDimensionValue: Dimension value for the ID of the placement + // group. This is a read-only, auto-generated field. PlacementGroupIdDimensionValue *DimensionValue `json:"placementGroupIdDimensionValue,omitempty"` - // PlacementStrategyId: ID of the placement strategy assigned to this // placement. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement. This field is - // required on insertion, specifically subfields startDate, endDate and - // pricingType. + // PricingSchedule: Pricing schedule of this placement. This field is required + // on insertion, specifically subfields startDate, endDate and pricingType. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // Primary: Whether this placement is the primary placement of a - // roadblock (placement group). You cannot change this field from true - // to false. Setting this field to true will automatically set the - // primary field on the original primary placement of the roadblock to - // false, and it will automatically set the roadblock's - // primaryPlacementId field to the ID of this placement. + // Primary: Whether this placement is the primary placement of a roadblock + // (placement group). You cannot change this field from true to false. Setting + // this field to true will automatically set the primary field on the original + // primary placement of the roadblock to false, and it will automatically set + // the roadblock's primaryPlacementId field to the ID of this placement. Primary bool `json:"primary,omitempty"` - - // PublisherUpdateInfo: Information about the last publisher update. - // This is a read-only field. + // PublisherUpdateInfo: Information about the last publisher update. This is a + // read-only field. PublisherUpdateInfo *LastModifiedInfo `json:"publisherUpdateInfo,omitempty"` - - // SiteId: Site ID associated with this placement. On insert, you must - // set either this field or the directorySiteId field to specify the - // site associated with this placement. This is a required field that is - // read-only after insertion. + // SiteId: Site ID associated with this placement. On insert, you must set + // either this field or the directorySiteId field to specify the site + // associated with this placement. This is a required field that is read-only + // after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // Size: Size associated with this placement. When inserting or updating - // a placement, only the size ID field is used. This field is required - // on insertion. + // Size: Size associated with this placement. When inserting or updating a + // placement, only the size ID field is used. This field is required on + // insertion. Size *Size `json:"size,omitempty"` - // SslRequired: Whether creatives assigned to this placement must be // SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - // Status: Third-party placement status. // // Possible values: @@ -9773,11 +7859,8 @@ type Placement struct { // "PAYMENT_REJECTED" // "PENDING_REVIEW" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this placement. This field can be left - // blank. + // SubaccountId: Subaccount ID of this placement. This field can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TagFormats: Tag formats to generate for this placement. This field is // required on insertion. // Acceptable values are: @@ -9818,31 +7901,27 @@ type Placement struct { // "PLACEMENT_TAG_TRACKING_IFRAME" // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" TagFormats []string `json:"tagFormats,omitempty"` - // TagSetting: Tag settings for this placement. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOut: Whether Verification and ActiveView are - // disabled for in-stream video creatives for this placement. The same - // setting videoActiveViewOptOut exists on the site level -- the opt out - // occurs if either of these settings are true. These settings are - // distinct from DirectorySites.settings.activeViewOptOut or + // VideoActiveViewOptOut: Whether Verification and ActiveView are disabled for + // in-stream video creatives for this placement. The same setting + // videoActiveViewOptOut exists on the site level -- the opt out occurs if + // either of these settings are true. These settings are distinct from + // DirectorySites.settings.activeViewOptOut or // Sites.siteSettings.activeViewOptOut which only apply to display ads. - // However, Accounts.activeViewOptOut opts out both video traffic, as - // well as display ads, from Verification and ActiveView. + // However, Accounts.activeViewOptOut opts out both video traffic, as well as + // display ads, from Verification and ActiveView. VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"` - - // VideoSettings: A collection of settings which affect video creatives - // served through this placement. Applicable to placements with - // IN_STREAM_VIDEO compatibility. + // VideoSettings: A collection of settings which affect video creatives served + // through this placement. Applicable to placements with IN_STREAM_VIDEO + // compatibility. VideoSettings *VideoSettings `json:"videoSettings,omitempty"` - - // VpaidAdapterChoice: VPAID adapter setting for this placement. - // Controls which VPAID format the measurement adapter will use for - // in-stream video creatives assigned to this placement. + // VpaidAdapterChoice: VPAID adapter setting for this placement. Controls which + // VPAID format the measurement adapter will use for in-stream video creatives + // assigned to this placement. // - // Note: Flash is no longer supported. This field now defaults to HTML5 - // when the following values are provided: FLASH, BOTH. + // Note: Flash is no longer supported. This field now defaults to HTML5 when + // the following values are provided: FLASH, BOTH. // // Possible values: // "BOTH" @@ -9851,31 +7930,24 @@ type Placement struct { // "HTML5" VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Placement) MarshalJSON() ([]byte, error) { +func (s Placement) MarshalJSON() ([]byte, error) { type NoMethod Placement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementAssignment: Placement Assignment. @@ -9883,419 +7955,319 @@ type PlacementAssignment struct { // Active: Whether this placement assignment is active. When true, the // placement will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // PlacementId: ID of the placement to be assigned. This is a required - // field. + // PlacementId: ID of the placement to be assigned. This is a required field. PlacementId int64 `json:"placementId,omitempty,string"` - - // PlacementIdDimensionValue: Dimension value for the ID of the - // placement. This is a read-only, auto-generated field. + // PlacementIdDimensionValue: Dimension value for the ID of the placement. This + // is a read-only, auto-generated field. PlacementIdDimensionValue *DimensionValue `json:"placementIdDimensionValue,omitempty"` - - // SslRequired: Whether the placement to be assigned requires SSL. This - // is a read-only field that is auto-generated when the ad is inserted - // or updated. + // SslRequired: Whether the placement to be assigned requires SSL. This is a + // read-only field that is auto-generated when the ad is inserted or updated. SslRequired bool `json:"sslRequired,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementAssignment) MarshalJSON() ([]byte, error) { +func (s PlacementAssignment) MarshalJSON() ([]byte, error) { type NoMethod PlacementAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroup: Contains properties of a package or roadblock. type PlacementGroup struct { - // AccountId: Account ID of this placement group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this placement group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this placement group. This is a required + // field on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement group is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement group. This field is - // required on insertion. + // CampaignId: Campaign ID of this placement group. This field is required on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ChildPlacementIds: IDs of placements which are assigned to this - // placement group. This is a read-only, auto-generated field. + // ChildPlacementIds: IDs of placements which are assigned to this placement + // group. This is a read-only, auto-generated field. ChildPlacementIds googleapi.Int64s `json:"childPlacementIds,omitempty"` - // Comment: Comments for this placement group. Comment string `json:"comment,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement group. + // ContentCategoryId: ID of the content category assigned to this placement + // group. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement group. - // This is a read-only field. + // CreateInfo: Information about the creation of this placement group. This is + // a read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID associated with this placement - // group. On insert, you must set either this field or the site_id field - // to specify the site associated with this placement group. This is a - // required field that is read-only after insertion. + // DirectorySiteId: Directory site ID associated with this placement group. On + // insert, you must set either this field or the site_id field to specify the + // site associated with this placement group. This is a required field that is + // read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - - // Id: ID of this placement group. This is a read-only, auto-generated - // field. + // Id: ID of this placement group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement group. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement group. This + // is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroup". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement group. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement group. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this placement group. This is a required field and must - // be less than 256 characters long. + // Name: Name of this placement group. This is a required field and must be + // less than 256 characters long. Name string `json:"name,omitempty"` - - // PlacementGroupType: Type of this placement group. A package is a - // simple group of placements that acts as a single pricing point for a - // group of tags. A roadblock is a group of placements that not only - // acts as a single pricing point, but also assumes that all the tags in - // it will be served at the same time. A roadblock requires one of its - // assigned placements to be marked as primary for reporting. This field - // is required on insertion. + // PlacementGroupType: Type of this placement group. A package is a simple + // group of placements that acts as a single pricing point for a group of tags. + // A roadblock is a group of placements that not only acts as a single pricing + // point, but also assumes that all the tags in it will be served at the same + // time. A roadblock requires one of its assigned placements to be marked as + // primary for reporting. This field is required on insertion. // // Possible values: // "PLACEMENT_PACKAGE" // "PLACEMENT_ROADBLOCK" PlacementGroupType string `json:"placementGroupType,omitempty"` - - // PlacementStrategyId: ID of the placement strategy assigned to this - // placement group. + // PlacementStrategyId: ID of the placement strategy assigned to this placement + // group. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement group. This field - // is required on insertion. + // PricingSchedule: Pricing schedule of this placement group. This field is + // required on insertion. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // PrimaryPlacementId: ID of the primary placement, used to calculate - // the media cost of a roadblock (placement group). Modifying this field - // will automatically modify the primary field on all affected roadblock - // child placements. + // PrimaryPlacementId: ID of the primary placement, used to calculate the media + // cost of a roadblock (placement group). Modifying this field will + // automatically modify the primary field on all affected roadblock child + // placements. PrimaryPlacementId int64 `json:"primaryPlacementId,omitempty,string"` - - // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the - // primary placement. This is a read-only, auto-generated field. + // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the primary + // placement. This is a read-only, auto-generated field. PrimaryPlacementIdDimensionValue *DimensionValue `json:"primaryPlacementIdDimensionValue,omitempty"` - - // SiteId: Site ID associated with this placement group. On insert, you - // must set either this field or the directorySiteId field to specify - // the site associated with this placement group. This is a required - // field that is read-only after insertion. + // SiteId: Site ID associated with this placement group. On insert, you must + // set either this field or the directorySiteId field to specify the site + // associated with this placement group. This is a required field that is + // read-only after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // SubaccountId: Subaccount ID of this placement group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this placement group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroup) MarshalJSON() ([]byte, error) { +func (s PlacementGroup) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroupsListResponse: Placement Group List Response type PlacementGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementGroups: Placement group collection. PlacementGroups []*PlacementGroup `json:"placementGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategiesListResponse: Placement Strategy List Response type PlacementStrategiesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementStrategies: Placement strategy collection. PlacementStrategies []*PlacementStrategy `json:"placementStrategies,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategy: Contains properties of a placement strategy. type PlacementStrategy struct { - // AccountId: Account ID of this placement strategy.This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement strategy.This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this placement strategy. This is a read-only, - // auto-generated field. + // Id: ID of this placement strategy. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategy". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategy". Kind string `json:"kind,omitempty"` - - // Name: Name of this placement strategy. This is a required field. It - // must be less than 256 characters long and unique among placement - // strategies of the same account. + // Name: Name of this placement strategy. This is a required field. It must be + // less than 256 characters long and unique among placement strategies of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategy) MarshalJSON() ([]byte, error) { +func (s PlacementStrategy) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementTag: Placement Tag type PlacementTag struct { // PlacementId: Placement ID PlacementId int64 `json:"placementId,omitempty,string"` - // TagDatas: Tags generated for this placement. TagDatas []*TagData `json:"tagDatas,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlacementId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PlacementId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PlacementId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementTag) MarshalJSON() ([]byte, error) { +func (s PlacementTag) MarshalJSON() ([]byte, error) { type NoMethod PlacementTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsGenerateTagsResponse: Placement GenerateTags Response type PlacementsGenerateTagsResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsGenerateTagsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsGenerateTagsResponse". Kind string `json:"kind,omitempty"` - // PlacementTags: Set of generated tags for the specified placements. PlacementTags []*PlacementTag `json:"placementTags,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsGenerateTagsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsListResponse: Placement List Response type PlacementsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Placements: Placement collection. Placements []*Placement `json:"placements,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformType: Contains information about a platform type that can be @@ -10303,88 +8275,68 @@ func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { type PlatformType struct { // Id: ID of this platform type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformType". Kind string `json:"kind,omitempty"` - // Name: Name of this platform type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformType) MarshalJSON() ([]byte, error) { +func (s PlatformType) MarshalJSON() ([]byte, error) { type NoMethod PlatformType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformTypesListResponse: Platform Type List Response type PlatformTypesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformTypesListResponse". Kind string `json:"kind,omitempty"` - // PlatformTypes: Platform type collection. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformTypesListResponse) MarshalJSON() ([]byte, error) { +func (s PlatformTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlatformTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PopupWindowProperties: Popup Window Properties. type PopupWindowProperties struct { // Dimension: Popup dimension for a creative. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA and all - // VPAID + // Applicable to the following creative types: all RICH_MEDIA and all VPAID Dimension *Size `json:"dimension,omitempty"` - - // Offset: Upper-left corner coordinates of the popup window. Applicable - // if positionType is COORDINATES. + // Offset: Upper-left corner coordinates of the popup window. Applicable if + // positionType is COORDINATES. Offset *OffsetPosition `json:"offset,omitempty"` - // PositionType: Popup window position either centered or at specific // coordinate. // @@ -10392,130 +8344,97 @@ type PopupWindowProperties struct { // "CENTER" // "COORDINATES" PositionType string `json:"positionType,omitempty"` - // ShowAddressBar: Whether to display the browser address bar. ShowAddressBar bool `json:"showAddressBar,omitempty"` - // ShowMenuBar: Whether to display the browser menu bar. ShowMenuBar bool `json:"showMenuBar,omitempty"` - // ShowScrollBar: Whether to display the browser scroll bar. ShowScrollBar bool `json:"showScrollBar,omitempty"` - // ShowStatusBar: Whether to display the browser status bar. ShowStatusBar bool `json:"showStatusBar,omitempty"` - // ShowToolBar: Whether to display the browser tool bar. ShowToolBar bool `json:"showToolBar,omitempty"` - // Title: Title of popup window. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimension") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PopupWindowProperties) MarshalJSON() ([]byte, error) { +func (s PopupWindowProperties) MarshalJSON() ([]byte, error) { type NoMethod PopupWindowProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostalCode: Contains information about a postal code that can be -// targeted by ads. +// PostalCode: Contains information about a postal code that can be targeted by +// ads. type PostalCode struct { // Code: Postal code. This is equivalent to the id field. Code string `json:"code,omitempty"` - - // CountryCode: Country code of the country to which this postal code - // belongs. + // CountryCode: Country code of the country to which this postal code belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this postal code - // belongs. + // CountryDartId: DART ID of the country to which this postal code belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this postal code. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCode". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCode". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCode) MarshalJSON() ([]byte, error) { +func (s PostalCode) MarshalJSON() ([]byte, error) { type NoMethod PostalCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PostalCodesListResponse: Postal Code List Response type PostalCodesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCodesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCodesListResponse". Kind string `json:"kind,omitempty"` - // PostalCodes: Postal code collection. PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCodesListResponse) MarshalJSON() ([]byte, error) { +func (s PostalCodesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PostalCodesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Pricing: Pricing Information @@ -10527,29 +8446,25 @@ type Pricing struct { // "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY" // "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE" CapCostType string `json:"capCostType,omitempty"` - // EndDate: End date of this inventory item. EndDate string `json:"endDate,omitempty"` - - // Flights: Flights of this inventory item. A flight (a.k.a. pricing - // period) represents the inventory item pricing information for a - // specific period of time. + // Flights: Flights of this inventory item. A flight (a.k.a. pricing period) + // represents the inventory item pricing information for a specific period of + // time. Flights []*Flight `json:"flights,omitempty"` - - // GroupType: Group type of this inventory item if it represents a - // placement group. Is null otherwise. There are two type of placement - // groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of - // inventory items that acts as a single pricing point for a group of - // tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory - // items that not only acts as a single pricing point, but also assumes - // that all the tags in it will be served at the same time. A roadblock - // requires one of its assigned inventory items to be marked as primary. + // GroupType: Group type of this inventory item if it represents a placement + // group. Is null otherwise. There are two type of placement groups: + // PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items + // that acts as a single pricing point for a group of tags. + // PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that + // not only acts as a single pricing point, but also assumes that all the tags + // in it will be served at the same time. A roadblock requires one of its + // assigned inventory items to be marked as primary. // // Possible values: // "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" // "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" GroupType string `json:"groupType,omitempty"` - // PricingType: Pricing type of this inventory item. // // Possible values: @@ -10562,31 +8477,24 @@ type Pricing struct { // "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS" // "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS" PricingType string `json:"pricingType,omitempty"` - // StartDate: Start date of this inventory item. StartDate string `json:"startDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CapCostType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pricing) MarshalJSON() ([]byte, error) { +func (s Pricing) MarshalJSON() ([]byte, error) { type NoMethod Pricing - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedule: Pricing Schedule @@ -10598,30 +8506,23 @@ type PricingSchedule struct { // "CAP_COST_MONTHLY" // "CAP_COST_NONE" CapCostOption string `json:"capCostOption,omitempty"` - - // EndDate: Placement end date. This date must be later than, or the - // same day as, the placement start date, but not later than the - // campaign end date. If, for example, you set 6/25/2015 as both the - // start and end dates, the effective placement date is just that day - // only, 6/25/2015. The hours, minutes, and seconds of the end date - // should not be set, as doing so will result in an error. This field is - // required on insertion. + // EndDate: Placement end date. This date must be later than, or the same day + // as, the placement start date, but not later than the campaign end date. If, + // for example, you set 6/25/2015 as both the start and end dates, the + // effective placement date is just that day only, 6/25/2015. The hours, + // minutes, and seconds of the end date should not be set, as doing so will + // result in an error. This field is required on insertion. EndDate string `json:"endDate,omitempty"` - - // Flighted: Whether this placement is flighted. If true, pricing - // periods will be computed automatically. + // Flighted: Whether this placement is flighted. If true, pricing periods will + // be computed automatically. Flighted bool `json:"flighted,omitempty"` - - // FloodlightActivityId: Floodlight activity ID associated with this - // placement. This field should be set when placement pricing type is - // set to PRICING_TYPE_CPA. + // FloodlightActivityId: Floodlight activity ID associated with this placement. + // This field should be set when placement pricing type is set to + // PRICING_TYPE_CPA. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // PricingPeriods: Pricing periods for this placement. PricingPeriods []*PricingSchedulePricingPeriod `json:"pricingPeriods,omitempty"` - - // PricingType: Placement pricing type. This field is required on - // insertion. + // PricingType: Placement pricing type. This field is required on insertion. // // Possible values: // "PRICING_TYPE_CPA" @@ -10631,101 +8532,80 @@ type PricingSchedule struct { // "PRICING_TYPE_FLAT_RATE_CLICKS" // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" PricingType string `json:"pricingType,omitempty"` - - // StartDate: Placement start date. This date must be later than, or the - // same day as, the campaign start date. The hours, minutes, and seconds - // of the start date should not be set, as doing so will result in an - // error. This field is required on insertion. + // StartDate: Placement start date. This date must be later than, or the same + // day as, the campaign start date. The hours, minutes, and seconds of the + // start date should not be set, as doing so will result in an error. This + // field is required on insertion. StartDate string `json:"startDate,omitempty"` - - // TestingStartDate: Testing start date of this placement. The hours, - // minutes, and seconds of the start date should not be set, as doing so - // will result in an error. + // TestingStartDate: Testing start date of this placement. The hours, minutes, + // and seconds of the start date should not be set, as doing so will result in + // an error. TestingStartDate string `json:"testingStartDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CapCostOption") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostOption") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostOption") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedule) MarshalJSON() ([]byte, error) { +func (s PricingSchedule) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedulePricingPeriod: Pricing Period type PricingSchedulePricingPeriod struct { - // EndDate: Pricing period end date. This date must be later than, or - // the same day as, the pricing period start date, but not later than - // the placement end date. The period end date can be the same date as - // the period start date. If, for example, you set 6/25/2015 as both the - // start and end dates, the effective pricing period date is just that - // day only, 6/25/2015. The hours, minutes, and seconds of the end date - // should not be set, as doing so will result in an error. + // EndDate: Pricing period end date. This date must be later than, or the same + // day as, the pricing period start date, but not later than the placement end + // date. The period end date can be the same date as the period start date. If, + // for example, you set 6/25/2015 as both the start and end dates, the + // effective pricing period date is just that day only, 6/25/2015. The hours, + // minutes, and seconds of the end date should not be set, as doing so will + // result in an error. EndDate string `json:"endDate,omitempty"` - // PricingComment: Comments for this pricing period. PricingComment string `json:"pricingComment,omitempty"` - // RateOrCostNanos: Rate or cost of this pricing period in nanos (i.e., - // multipled by 1000000000). Acceptable values are 0 to - // 1000000000000000000, inclusive. + // multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, + // inclusive. RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"` - - // StartDate: Pricing period start date. This date must be later than, - // or the same day as, the placement start date. The hours, minutes, and - // seconds of the start date should not be set, as doing so will result - // in an error. + // StartDate: Pricing period start date. This date must be later than, or the + // same day as, the placement start date. The hours, minutes, and seconds of + // the start date should not be set, as doing so will result in an error. StartDate string `json:"startDate,omitempty"` - - // Units: Units of this pricing period. Acceptable values are 0 to - // 10000000000, inclusive. + // Units: Units of this pricing period. Acceptable values are 0 to 10000000000, + // inclusive. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { +func (s PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedulePricingPeriod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Project: Contains properties of a Planning project. type Project struct { // AccountId: Account ID of this project. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this project. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AudienceAgeGroup: Audience age group of this project. // // Possible values: @@ -10737,193 +8617,142 @@ type Project struct { // "PLANNING_AUDIENCE_AGE_65_OR_MORE" // "PLANNING_AUDIENCE_AGE_UNKNOWN" AudienceAgeGroup string `json:"audienceAgeGroup,omitempty"` - // AudienceGender: Audience gender of this project. // // Possible values: // "PLANNING_AUDIENCE_GENDER_FEMALE" // "PLANNING_AUDIENCE_GENDER_MALE" AudienceGender string `json:"audienceGender,omitempty"` - - // Budget: Budget of this project in the currency specified by the - // current account. The value stored in this field represents only the - // non-fractional amount. For example, for USD, the smallest value that - // can be represented by this field is 1 US dollar. + // Budget: Budget of this project in the currency specified by the current + // account. The value stored in this field represents only the non-fractional + // amount. For example, for USD, the smallest value that can be represented by + // this field is 1 US dollar. Budget int64 `json:"budget,omitempty,string"` - // ClientBillingCode: Client billing code of this project. ClientBillingCode string `json:"clientBillingCode,omitempty"` - // ClientName: Name of the project client. ClientName string `json:"clientName,omitempty"` - // EndDate: End date of the project. EndDate string `json:"endDate,omitempty"` - // Id: ID of this project. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#project". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#project". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this project. + // LastModifiedInfo: Information about the most recent modification of this + // project. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this project. Name string `json:"name,omitempty"` - // Overview: Overview of this project. Overview string `json:"overview,omitempty"` - // StartDate: Start date of the project. StartDate string `json:"startDate,omitempty"` - // SubaccountId: Subaccount ID of this project. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TargetClicks: Number of clicks that the advertiser is targeting. TargetClicks int64 `json:"targetClicks,omitempty,string"` - - // TargetConversions: Number of conversions that the advertiser is - // targeting. + // TargetConversions: Number of conversions that the advertiser is targeting. TargetConversions int64 `json:"targetConversions,omitempty,string"` - // TargetCpaNanos: CPA that the advertiser is targeting. TargetCpaNanos int64 `json:"targetCpaNanos,omitempty,string"` - // TargetCpcNanos: CPC that the advertiser is targeting. TargetCpcNanos int64 `json:"targetCpcNanos,omitempty,string"` - - // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser - // is targeting. + // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser is + // targeting. TargetCpmActiveViewNanos int64 `json:"targetCpmActiveViewNanos,omitempty,string"` - // TargetCpmNanos: CPM that the advertiser is targeting. TargetCpmNanos int64 `json:"targetCpmNanos,omitempty,string"` - - // TargetImpressions: Number of impressions that the advertiser is - // targeting. + // TargetImpressions: Number of impressions that the advertiser is targeting. TargetImpressions int64 `json:"targetImpressions,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Project) MarshalJSON() ([]byte, error) { +func (s Project) MarshalJSON() ([]byte, error) { type NoMethod Project - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProjectsListResponse: Project List Response type ProjectsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#projectsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#projectsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Projects: Project collection. Projects []*Project `json:"projects,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProjectsListResponse) MarshalJSON() ([]byte, error) { +func (s ProjectsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ProjectsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReachReportCompatibleFields: Represents fields that are compatible to -// be selected for a report of type "REACH". +// ReachReportCompatibleFields: Represents fields that are compatible to be +// selected for a report of type "REACH". type ReachReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - - // ReachByFrequencyMetrics: Metrics which are compatible to be selected - // in the "reachByFrequencyMetricNames" section of the report. + // ReachByFrequencyMetrics: Metrics which are compatible to be selected in the + // "reachByFrequencyMetricNames" section of the report. ReachByFrequencyMetrics []*Metric `json:"reachByFrequencyMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Recipient: Represents a recipient. @@ -10934,165 +8763,122 @@ type Recipient struct { // "ATTACHMENT" // "LINK" DeliveryType string `json:"deliveryType,omitempty"` - // Email: The email address of the recipient. Email string `json:"email,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#recipient. + // Kind: The kind of resource this is, in this case dfareporting#recipient. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliveryType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliveryType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliveryType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Recipient) MarshalJSON() ([]byte, error) { +func (s Recipient) MarshalJSON() ([]byte, error) { type NoMethod Recipient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Region: Contains information about a region that can be targeted by -// ads. +// Region: Contains information about a region that can be targeted by ads. type Region struct { - // CountryCode: Country code of the country to which this region - // belongs. + // CountryCode: Country code of the country to which this region belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this region. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#region". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#region". Kind string `json:"kind,omitempty"` - // Name: Name of this region. Name string `json:"name,omitempty"` - // RegionCode: Region code. RegionCode string `json:"regionCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Region) MarshalJSON() ([]byte, error) { +func (s Region) MarshalJSON() ([]byte, error) { type NoMethod Region - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RegionsListResponse: Region List Response type RegionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#regionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#regionsListResponse". Kind string `json:"kind,omitempty"` - // Regions: Region collection. Regions []*Region `json:"regions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegionsListResponse) MarshalJSON() ([]byte, error) { +func (s RegionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RegionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingList: Contains properties of a remarketing list. -// Remarketing enables you to create lists of users who have performed -// specific actions on a site, then target ads to members of those -// lists. This resource can be used to manage remarketing lists that are -// owned by your advertisers. To see all remarketing lists that are -// visible to your advertisers, including those that are shared to your -// advertiser or account, use the TargetableRemarketingLists resource. +// RemarketingList: Contains properties of a remarketing list. Remarketing +// enables you to create lists of users who have performed specific actions on +// a site, then target ads to members of those lists. This resource can be used +// to manage remarketing lists that are owned by your advertisers. To see all +// remarketing lists that are visible to your advertisers, including those that +// are shared to your advertiser or account, use the TargetableRemarketingLists +// resource. type RemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // remarketing list. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Remarketing list description. Description string `json:"description,omitempty"` - // Id: Remarketing list ID. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingList". Kind string `json:"kind,omitempty"` - - // LifeSpan: Number of days that a user should remain in the remarketing - // list without an impression. Acceptable values are 1 to 540, - // inclusive. + // LifeSpan: Number of days that a user should remain in the remarketing list + // without an impression. Acceptable values are 1 to 540, inclusive. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListPopulationRule: Rule used to populate the remarketing list with - // users. + // ListPopulationRule: Rule used to populate the remarketing list with users. ListPopulationRule *ListPopulationRule `json:"listPopulationRule,omitempty"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this remarketing list was originated. // // Possible values: @@ -11108,198 +8894,146 @@ type RemarketingList struct { // "REMARKETING_LIST_SOURCE_XFP" // "REMARKETING_LIST_SOURCE_YOUTUBE" ListSource string `json:"listSource,omitempty"` - - // Name: Name of the remarketing list. This is a required field. Must be - // no greater than 128 characters long. + // Name: Name of the remarketing list. This is a required field. Must be no + // greater than 128 characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingList) MarshalJSON() ([]byte, error) { +func (s RemarketingList) MarshalJSON() ([]byte, error) { type NoMethod RemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingListShare: Contains properties of a remarketing list's -// sharing information. Sharing allows other accounts or advertisers to -// target to your remarketing lists. This resource can be used to manage -// remarketing list sharing to other accounts and advertisers. +// RemarketingListShare: Contains properties of a remarketing list's sharing +// information. Sharing allows other accounts or advertisers to target to your +// remarketing lists. This resource can be used to manage remarketing list +// sharing to other accounts and advertisers. type RemarketingListShare struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListShare". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListShare". Kind string `json:"kind,omitempty"` - - // RemarketingListId: Remarketing list ID. This is a read-only, - // auto-generated field. + // RemarketingListId: Remarketing list ID. This is a read-only, auto-generated + // field. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - // SharedAccountIds: Accounts that the remarketing list is shared with. SharedAccountIds googleapi.Int64s `json:"sharedAccountIds,omitempty"` - - // SharedAdvertiserIds: Advertisers that the remarketing list is shared - // with. + // SharedAdvertiserIds: Advertisers that the remarketing list is shared with. SharedAdvertiserIds googleapi.Int64s `json:"sharedAdvertiserIds,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListShare) MarshalJSON() ([]byte, error) { +func (s RemarketingListShare) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListShare - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RemarketingListsListResponse: Remarketing list response type RemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // RemarketingLists: Remarketing list collection. RemarketingLists []*RemarketingList `json:"remarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s RemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Report: Represents a Report resource. type Report struct { // AccountId: The account ID to which this report belongs. AccountId int64 `json:"accountId,omitempty,string"` - // Criteria: The report criteria for a report of type "STANDARD". Criteria *ReportCriteria `json:"criteria,omitempty"` - // CrossDimensionReachCriteria: The report criteria for a report of type // "CROSS_DIMENSION_REACH". CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"` - // Delivery: The report's email delivery settings. Delivery *ReportDelivery `json:"delivery,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // FileName: The filename used when generating report files for this - // report. + // FileName: The filename used when generating report files for this report. FileName string `json:"fileName,omitempty"` - - // FloodlightCriteria: The report criteria for a report of type - // "FLOODLIGHT". + // FloodlightCriteria: The report criteria for a report of type "FLOODLIGHT". FloodlightCriteria *ReportFloodlightCriteria `json:"floodlightCriteria,omitempty"` - - // Format: The output format of the report. If not specified, default - // format is "CSV". Note that the actual format in the completed report - // file might differ if for instance the report's size exceeds the - // format's capabilities. "CSV" will then be the fallback format. + // Format: The output format of the report. If not specified, default format is + // "CSV". Note that the actual format in the completed report file might differ + // if for instance the report's size exceeds the format's capabilities. "CSV" + // will then be the fallback format. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID identifying this report resource. Id int64 `json:"id,omitempty,string"` - // Kind: The kind of resource this is, in this case dfareporting#report. Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp (in milliseconds since epoch) of when - // this report was last modified. + // LastModifiedTime: The timestamp (in milliseconds since epoch) of when this + // report was last modified. LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"` - // Name: The name of the report. Name string `json:"name,omitempty"` - // OwnerProfileId: The user profile id of the owner of this report. OwnerProfileId int64 `json:"ownerProfileId,omitempty,string"` - // PathToConversionCriteria: The report criteria for a report of type // "PATH_TO_CONVERSION". PathToConversionCriteria *ReportPathToConversionCriteria `json:"pathToConversionCriteria,omitempty"` - // ReachCriteria: The report criteria for a report of type "REACH". ReachCriteria *ReportReachCriteria `json:"reachCriteria,omitempty"` - - // Schedule: The report's schedule. Can only be set if the report's - // 'dateRange' is a relative date range and the relative date range is - // not "TODAY". + // Schedule: The report's schedule. Can only be set if the report's 'dateRange' + // is a relative date range and the relative date range is not "TODAY". Schedule *ReportSchedule `json:"schedule,omitempty"` - - // SubAccountId: The subaccount ID to which this report belongs if - // applicable. + // SubAccountId: The subaccount ID to which this report belongs if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - // Type: The type of the report. // // Possible values: @@ -11310,89 +9044,68 @@ type Report struct { // "STANDARD" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Report) MarshalJSON() ([]byte, error) { +func (s Report) MarshalJSON() ([]byte, error) { type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportCriteria: The report criteria for a report of type "STANDARD". type ReportCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range for which this report should be run. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - - // Dimensions: The list of standard dimensions the report should - // include. + // Dimensions: The list of standard dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCrossDimensionReachCriteria: The report criteria for a report -// of type "CROSS_DIMENSION_REACH". +// ReportCrossDimensionReachCriteria: The report criteria for a report of type +// "CROSS_DIMENSION_REACH". type ReportCrossDimensionReachCriteria struct { // Breakdown: The list of dimensions the report should include. Breakdown []*SortedDimension `json:"breakdown,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // Dimension: The dimension option. // // Possible values: @@ -11401,409 +9114,306 @@ type ReportCrossDimensionReachCriteria struct { // "SITE_BY_ADVERTISER" // "SITE_BY_CAMPAIGN" Dimension string `json:"dimension,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. + // DimensionFilters: The list of filters on which dimensions are filtered. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // OverlapMetricNames: The list of names of overlap metrics the report - // should include. + // OverlapMetricNames: The list of names of overlap metrics the report should + // include. OverlapMetricNames []string `json:"overlapMetricNames,omitempty"` - // Pivoted: Whether the report is pivoted or not. Defaults to true. Pivoted bool `json:"pivoted,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCrossDimensionReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportDelivery: The report's email delivery settings. type ReportDelivery struct { // EmailOwner: Whether the report should be emailed to the report owner. EmailOwner bool `json:"emailOwner,omitempty"` - - // EmailOwnerDeliveryType: The type of delivery for the owner to - // receive, if enabled. + // EmailOwnerDeliveryType: The type of delivery for the owner to receive, if + // enabled. // // Possible values: // "ATTACHMENT" // "LINK" EmailOwnerDeliveryType string `json:"emailOwnerDeliveryType,omitempty"` - // Message: The message to be sent with each email. Message string `json:"message,omitempty"` - // Recipients: The list of recipients to which to email the report. Recipients []*Recipient `json:"recipients,omitempty"` - // ForceSendFields is a list of field names (e.g. "EmailOwner") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EmailOwner") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EmailOwner") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportDelivery) MarshalJSON() ([]byte, error) { +func (s ReportDelivery) MarshalJSON() ([]byte, error) { type NoMethod ReportDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportFloodlightCriteria: The report criteria for a report of type // "FLOODLIGHT". type ReportFloodlightCriteria struct { - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportFloodlightCriteriaReportProperties `json:"reportProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomRichMediaEvents") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomRichMediaEvents") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomRichMediaEvents") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportFloodlightCriteriaReportProperties: The properties of the -// report. +// ReportFloodlightCriteriaReportProperties: The properties of the report. type ReportFloodlightCriteriaReportProperties struct { - // IncludeAttributedIPConversions: Include conversions that have no - // cookie, but do have an exposure path. + // IncludeAttributedIPConversions: Include conversions that have no cookie, but + // do have an exposure path. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // ForceSendFields is a list of field names (e.g. // "IncludeAttributedIPConversions") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "IncludeAttributedIPConversions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "IncludeAttributedIPConversions") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportPathToConversionCriteria: The report criteria for a report of -// type "PATH_TO_CONVERSION". +// ReportPathToConversionCriteria: The report criteria for a report of type +// "PATH_TO_CONVERSION". type ReportPathToConversionCriteria struct { // ActivityFilters: The list of 'dfa:activity' values to filter on. ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - - // ConversionDimensions: The list of conversion dimensions the report - // should include. + // ConversionDimensions: The list of conversion dimensions the report should + // include. ConversionDimensions []*SortedDimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: The list of custom floodlight variables - // the report should include. + // CustomFloodlightVariables: The list of custom floodlight variables the + // report should include. CustomFloodlightVariables []*SortedDimension `json:"customFloodlightVariables,omitempty"` - - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // PerInteractionDimensions: The list of per interaction dimensions the - // report should include. + // PerInteractionDimensions: The list of per interaction dimensions the report + // should include. PerInteractionDimensions []*SortedDimension `json:"perInteractionDimensions,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportPathToConversionCriteriaReportProperties `json:"reportProperties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActivityFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActivityFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActivityFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportPathToConversionCriteriaReportProperties: The properties of the // report. type ReportPathToConversionCriteriaReportProperties struct { - // ClicksLookbackWindow: DFA checks to see if a click interaction - // occurred within the specified period of time before a conversion. By - // default the value is pulled from Floodlight or you can manually enter - // a custom value. Valid values: 1-90. + // ClicksLookbackWindow: DFA checks to see if a click interaction occurred + // within the specified period of time before a conversion. By default the + // value is pulled from Floodlight or you can manually enter a custom value. + // Valid values: 1-90. ClicksLookbackWindow int64 `json:"clicksLookbackWindow,omitempty"` - - // ImpressionsLookbackWindow: DFA checks to see if an impression - // interaction occurred within the specified period of time before a - // conversion. By default the value is pulled from Floodlight or you can - // manually enter a custom value. Valid values: 1-90. + // ImpressionsLookbackWindow: DFA checks to see if an impression interaction + // occurred within the specified period of time before a conversion. By default + // the value is pulled from Floodlight or you can manually enter a custom + // value. Valid values: 1-90. ImpressionsLookbackWindow int64 `json:"impressionsLookbackWindow,omitempty"` - // IncludeAttributedIPConversions: Deprecated: has no effect. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // MaximumClickInteractions: The maximum number of click interactions to - // include in the report. Advertisers currently paying for E2C reports - // get up to 200 (100 clicks, 100 impressions). If another advertiser in - // your network is paying for E2C, you can have up to 5 total exposures - // per report. + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumClickInteractions int64 `json:"maximumClickInteractions,omitempty"` - - // MaximumImpressionInteractions: The maximum number of click - // interactions to include in the report. Advertisers currently paying - // for E2C reports get up to 200 (100 clicks, 100 impressions). If - // another advertiser in your network is paying for E2C, you can have up - // to 5 total exposures per report. + // MaximumImpressionInteractions: The maximum number of click interactions to + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumImpressionInteractions int64 `json:"maximumImpressionInteractions,omitempty"` - // MaximumInteractionGap: The maximum amount of time that can take place - // between interactions (clicks or impressions) by the same user. Valid - // values: 1-90. + // between interactions (clicks or impressions) by the same user. Valid values: + // 1-90. MaximumInteractionGap int64 `json:"maximumInteractionGap,omitempty"` - // PivotOnInteractionPath: Enable pivoting on interaction path. PivotOnInteractionPath bool `json:"pivotOnInteractionPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClicksLookbackWindow") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClicksLookbackWindow") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportReachCriteria: The report criteria for a report of type -// "REACH". +// ReportReachCriteria: The report criteria for a report of type "REACH". type ReportReachCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // EnableAllDimensionCombinations: Whether to enable all reach dimension - // combinations in the report. Defaults to false. If enabled, the date - // range of the report should be within the last 42 days. + // combinations in the report. Defaults to false. If enabled, the date range of + // the report should be within the last 42 days. EnableAllDimensionCombinations bool `json:"enableAllDimensionCombinations,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ReachByFrequencyMetricNames: The list of names of Reach By Frequency // metrics the report should include. ReachByFrequencyMetricNames []string `json:"reachByFrequencyMetricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportSchedule: The report's schedule. Can only be set if the -// report's 'dateRange' is a relative date range and the relative date -// range is not "TODAY". +// ReportSchedule: The report's schedule. Can only be set if the report's +// 'dateRange' is a relative date range and the relative date range is not +// "TODAY". type ReportSchedule struct { - // Active: Whether the schedule is active or not. Must be set to either - // true or false. + // Active: Whether the schedule is active or not. Must be set to either true or + // false. Active bool `json:"active,omitempty"` - - // Every: Defines every how many days, weeks or months the report should - // be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or + // Every: Defines every how many days, weeks or months the report should be + // run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or // "MONTHLY". Every int64 `json:"every,omitempty"` - - // ExpirationDate: The expiration date when the scheduled report stops - // running. + // ExpirationDate: The expiration date when the scheduled report stops running. ExpirationDate string `json:"expirationDate,omitempty"` - // Repeats: The interval for which the report is repeated. Note: // - "DAILY" also requires field "every" to be set. - // - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be - // set. - // - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be - // set. + // - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be set. + // + // - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be set. Repeats string `json:"repeats,omitempty"` - - // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled - // reports should run. + // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled reports + // should run. // // Possible values: // "FRIDAY" @@ -11814,154 +9424,120 @@ type ReportSchedule struct { // "TUESDAY" // "WEDNESDAY" RepeatsOnWeekDays []string `json:"repeatsOnWeekDays,omitempty"` - - // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports - // whether reports should be repeated on the same day of the month as - // "startDate" or the same day of the week of the month. + // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports whether + // reports should be repeated on the same day of the month as "startDate" or + // the same day of the week of the month. // Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), - // "DAY_OF_MONTH" would run subsequent reports on the 2nd of every - // Month, and "WEEK_OF_MONTH" would run subsequent reports on the first - // Monday of the month. + // "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and + // "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the + // month. // // Possible values: // "DAY_OF_MONTH" // "WEEK_OF_MONTH" RunsOnDayOfMonth string `json:"runsOnDayOfMonth,omitempty"` - - // StartDate: Start date of date range for which scheduled reports - // should be run. + // StartDate: Start date of date range for which scheduled reports should be + // run. StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportSchedule) MarshalJSON() ([]byte, error) { +func (s ReportSchedule) MarshalJSON() ([]byte, error) { type NoMethod ReportSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCompatibleFields: Represents fields that are compatible to be -// selected for a report of type "STANDARD". +// ReportCompatibleFields: Represents fields that are compatible to be selected +// for a report of type "STANDARD". type ReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportList: Represents the list of reports. type ReportList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The reports returned in this response. Items []*Report `json:"items,omitempty"` - // Kind: The kind of list this is, in this case dfareporting#reportList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through reports. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through reports. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportList) MarshalJSON() ([]byte, error) { +func (s ReportList) MarshalJSON() ([]byte, error) { type NoMethod ReportList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportsConfiguration: Reporting Configuration type ReportsConfiguration struct { - // ExposureToConversionEnabled: Whether the exposure to conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure to conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // LookbackConfiguration: Default lookback windows for new advertisers - // in this account. + // LookbackConfiguration: Default lookback windows for new advertisers in this + // account. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // ReportGenerationTimeZoneId: Report generation time zone ID of this - // account. This is a required field that can only be changed by a - // superuser. + // ReportGenerationTimeZoneId: Report generation time zone ID of this account. + // This is a required field that can only be changed by a superuser. // Acceptable values are: // // - "1" for "America/New_York" @@ -11978,30 +9554,22 @@ type ReportsConfiguration struct { // - "12" for "Pacific/Auckland" // - "13" for "America/Sao_Paulo" ReportGenerationTimeZoneId int64 `json:"reportGenerationTimeZoneId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "ExposureToConversionEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExposureToConversionEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportsConfiguration) MarshalJSON() ([]byte, error) { +func (s ReportsConfiguration) MarshalJSON() ([]byte, error) { type NoMethod ReportsConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RichMediaExitOverride: Rich Media Exit Override. @@ -12009,245 +9577,185 @@ type RichMediaExitOverride struct { // ClickThroughUrl: Click-through URL of this rich media exit override. // Applicable if the enabled field is set to true. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // Enabled: Whether to use the clickThroughUrl. If false, the - // creative-level exit will be used. + // Enabled: Whether to use the clickThroughUrl. If false, the creative-level + // exit will be used. Enabled bool `json:"enabled,omitempty"` - - // ExitId: ID for the override to refer to a specific exit in the - // creative. + // ExitId: ID for the override to refer to a specific exit in the creative. ExitId int64 `json:"exitId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RichMediaExitOverride) MarshalJSON() ([]byte, error) { +func (s RichMediaExitOverride) MarshalJSON() ([]byte, error) { type NoMethod RichMediaExitOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Rule: A rule associates an asset with a targeting template for -// asset-level targeting. Applicable to INSTREAM_VIDEO creatives. +// Rule: A rule associates an asset with a targeting template for asset-level +// targeting. Applicable to INSTREAM_VIDEO creatives. type Rule struct { - // AssetId: A creativeAssets[].id. This should refer to one of the - // parent assets in this creative. This is a required field. + // AssetId: A creativeAssets[].id. This should refer to one of the parent + // assets in this creative. This is a required field. AssetId int64 `json:"assetId,omitempty,string"` - // Name: A user-friendly name for this rule. This is a required field. Name string `json:"name,omitempty"` - // TargetingTemplateId: A targeting template ID. The targeting from the - // targeting template will be used to determine whether this asset - // should be served. This is a required field. + // targeting template will be used to determine whether this asset should be + // served. This is a required field. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AssetId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssetId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssetId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rule) MarshalJSON() ([]byte, error) { +func (s Rule) MarshalJSON() ([]byte, error) { type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Site: Contains properties of a site. type Site struct { - // AccountId: Account ID of this site. This is a read-only field that - // can be left blank. + // AccountId: Account ID of this site. This is a read-only field that can be + // left blank. AccountId int64 `json:"accountId,omitempty,string"` - // Approved: Whether this site is approved. Approved bool `json:"approved,omitempty"` - // DirectorySiteId: Directory site associated with this site. This is a // required field that is read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // Id: ID of this site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this site. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this site. This is a read-only, auto-generated - // field. + // KeyName: Key name of this site. This is a read-only, auto-generated field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#site". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#site". Kind string `json:"kind,omitempty"` - - // Name: Name of this site.This is a required field. Must be less than - // 128 characters long. If this site is under a subaccount, the name - // must be unique among sites of the same subaccount. Otherwise, this - // site is a top-level site, and the name must be unique among top-level - // sites of the same account. + // Name: Name of this site.This is a required field. Must be less than 128 + // characters long. If this site is under a subaccount, the name must be unique + // among sites of the same subaccount. Otherwise, this site is a top-level + // site, and the name must be unique among top-level sites of the same account. Name string `json:"name,omitempty"` - // SiteContacts: Site contacts. SiteContacts []*SiteContact `json:"siteContacts,omitempty"` - // SiteSettings: Site-wide settings. SiteSettings *SiteSettings `json:"siteSettings,omitempty"` - - // SubaccountId: Subaccount ID of this site. This is a read-only field - // that can be left blank. + // SubaccountId: Subaccount ID of this site. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Site) MarshalJSON() ([]byte, error) { +func (s Site) MarshalJSON() ([]byte, error) { type NoMethod Site - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteContact: Site Contact type SiteContact struct { // Address: Address of this site contact. Address string `json:"address,omitempty"` - // ContactType: Site contact type. // // Possible values: // "SALES_PERSON" // "TRAFFICKER" ContactType string `json:"contactType,omitempty"` - // Email: Email address of this site contact. This is a required field. Email string `json:"email,omitempty"` - // FirstName: First name of this site contact. FirstName string `json:"firstName,omitempty"` - - // Id: ID of this site contact. This is a read-only, auto-generated - // field. + // Id: ID of this site contact. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // LastName: Last name of this site contact. LastName string `json:"lastName,omitempty"` - // Phone: Primary phone number of this site contact. Phone string `json:"phone,omitempty"` - // Title: Title or designation of this site contact. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteContact) MarshalJSON() ([]byte, error) { +func (s SiteContact) MarshalJSON() ([]byte, error) { type NoMethod SiteContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteSettings: Site Settings type SiteSettings struct { - // ActiveViewOptOut: Whether active view creatives are disabled for this - // site. + // ActiveViewOptOut: Whether active view creatives are disabled for this site. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AdBlockingOptOut: Whether this site opts out of ad blocking. When - // true, ad blocking is disabled for all placements under the site, - // regardless of the individual placement settings. When false, the - // campaign and placement settings take effect. + // AdBlockingOptOut: Whether this site opts out of ad blocking. When true, ad + // blocking is disabled for all placements under the site, regardless of the + // individual placement settings. When false, the campaign and placement + // settings take effect. AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - // DisableNewCookie: Whether new cookies are disabled for this site. DisableNewCookie bool `json:"disableNewCookie,omitempty"` - - // TagSetting: Configuration settings for dynamic and image floodlight - // tags. + // TagSetting: Configuration settings for dynamic and image floodlight tags. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView - // for in-stream video creatives are disabled by default for new - // placements created under this site. This value will be used to - // populate the placement.videoActiveViewOptOut field, when no value is - // specified for the new placement. + // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView for + // in-stream video creatives are disabled by default for new placements created + // under this site. This value will be used to populate the + // placement.videoActiveViewOptOut field, when no value is specified for the + // new placement. VideoActiveViewOptOutTemplate bool `json:"videoActiveViewOptOutTemplate,omitempty"` - - // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new - // placements created under this site. This value will be used to - // populate the placements.vpaidAdapterChoice field, when no value is - // specified for the new placement. Controls which VPAID format the - // measurement adapter will use for in-stream video creatives assigned - // to the placement. The publisher's specifications will typically - // determine this setting. For VPAID creatives, the adapter format will - // match the VPAID format (HTML5 VPAID creatives use the HTML5 - // adapter). + // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new placements + // created under this site. This value will be used to populate the + // placements.vpaidAdapterChoice field, when no value is specified for the new + // placement. Controls which VPAID format the measurement adapter will use for + // in-stream video creatives assigned to the placement. The publisher's + // specifications will typically determine this setting. For VPAID creatives, + // the adapter format will match the VPAID format (HTML5 VPAID creatives use + // the HTML5 adapter). // - // Note: Flash is no longer supported. This field now defaults to HTML5 - // when the following values are provided: FLASH, BOTH. + // Note: Flash is no longer supported. This field now defaults to HTML5 when + // the following values are provided: FLASH, BOTH. // // Possible values: // "BOTH" @@ -12255,195 +9763,146 @@ type SiteSettings struct { // "FLASH" // "HTML5" VpaidAdapterChoiceTemplate string `json:"vpaidAdapterChoiceTemplate,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteSettings) MarshalJSON() ([]byte, error) { +func (s SiteSettings) MarshalJSON() ([]byte, error) { type NoMethod SiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SitesListResponse: Site List Response type SitesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Sites: Site collection. Sites []*Site `json:"sites,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SitesListResponse) MarshalJSON() ([]byte, error) { +func (s SitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Size: Represents the dimensions of ads, placements, creatives, or -// creative assets. +// Size: Represents the dimensions of ads, placements, creatives, or creative +// assets. type Size struct { - // Height: Height of this size. Acceptable values are 0 to 32767, - // inclusive. + // Height: Height of this size. Acceptable values are 0 to 32767, inclusive. Height int64 `json:"height,omitempty"` - // Iab: IAB standard size. This is a read-only, auto-generated field. Iab bool `json:"iab,omitempty"` - // Id: ID of this size. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#size". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#size". Kind string `json:"kind,omitempty"` - - // Width: Width of this size. Acceptable values are 0 to 32767, - // inclusive. + // Width: Width of this size. Acceptable values are 0 to 32767, inclusive. Width int64 `json:"width,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Size) MarshalJSON() ([]byte, error) { +func (s Size) MarshalJSON() ([]byte, error) { type NoMethod Size - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SizesListResponse: Size List Response type SizesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sizesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sizesListResponse". Kind string `json:"kind,omitempty"` - // Sizes: Size collection. Sizes []*Size `json:"sizes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SizesListResponse) MarshalJSON() ([]byte, error) { +func (s SizesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SizesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SkippableSetting: Skippable Settings type SkippableSetting struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#skippableSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#skippableSetting". Kind string `json:"kind,omitempty"` - - // ProgressOffset: Amount of time to play videos served to this - // placement before counting a view. Applicable when skippable is true. + // ProgressOffset: Amount of time to play videos served to this placement + // before counting a view. Applicable when skippable is true. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // SkipOffset: Amount of time to play videos served to this placement - // before the skip button should appear. Applicable when skippable is - // true. + // SkipOffset: Amount of time to play videos served to this placement before + // the skip button should appear. Applicable when skippable is true. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can skip creatives served to this - // placement. + // Skippable: Whether the user can skip creatives served to this placement. Skippable bool `json:"skippable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SkippableSetting) MarshalJSON() ([]byte, error) { +func (s SkippableSetting) MarshalJSON() ([]byte, error) { type NoMethod SkippableSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SortedDimension: Represents a sorted dimension. @@ -12451,38 +9910,30 @@ type SortedDimension struct { // Kind: The kind of resource this is, in this case // dfareporting#sortedDimension. Kind string `json:"kind,omitempty"` - // Name: The name of the dimension. Name string `json:"name,omitempty"` - // SortOrder: An optional sort order for the dimension column. // // Possible values: // "ASCENDING" // "DESCENDING" SortOrder string `json:"sortOrder,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SortedDimension) MarshalJSON() ([]byte, error) { +func (s SortedDimension) MarshalJSON() ([]byte, error) { type NoMethod SortedDimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Subaccount: Contains properties of a Campaign Manager subaccount. @@ -12490,103 +9941,78 @@ type Subaccount struct { // AccountId: ID of the account that contains this subaccount. This is a // read-only field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AvailablePermissionIds: IDs of the available user role permissions - // for this subaccount. + // AvailablePermissionIds: IDs of the available user role permissions for this + // subaccount. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // Id: ID of this subaccount. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccount". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccount". Kind string `json:"kind,omitempty"` - - // Name: Name of this subaccount. This is a required field. Must be less - // than 128 characters long and be unique among subaccounts of the same - // account. + // Name: Name of this subaccount. This is a required field. Must be less than + // 128 characters long and be unique among subaccounts of the same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Subaccount) MarshalJSON() ([]byte, error) { +func (s Subaccount) MarshalJSON() ([]byte, error) { type NoMethod Subaccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SubaccountsListResponse: Subaccount List Response type SubaccountsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Subaccounts: Subaccount collection. Subaccounts []*Subaccount `json:"subaccounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubaccountsListResponse) MarshalJSON() ([]byte, error) { +func (s SubaccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod SubaccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagData: Placement Tag Data type TagData struct { - // AdId: Ad associated with this placement tag. Applicable only when - // format is PLACEMENT_TAG_TRACKING. + // AdId: Ad associated with this placement tag. Applicable only when format is + // PLACEMENT_TAG_TRACKING. AdId int64 `json:"adId,omitempty,string"` - // ClickTag: Tag string to record a click. ClickTag string `json:"clickTag,omitempty"` - - // CreativeId: Creative associated with this placement tag. Applicable - // only when format is PLACEMENT_TAG_TRACKING. + // CreativeId: Creative associated with this placement tag. Applicable only + // when format is PLACEMENT_TAG_TRACKING. CreativeId int64 `json:"creativeId,omitempty,string"` - // Format: TagData tag format of this tag. // // Possible values: @@ -12610,196 +10036,152 @@ type TagData struct { // "PLACEMENT_TAG_TRACKING_IFRAME" // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" Format string `json:"format,omitempty"` - // ImpressionTag: Tag string for serving an ad. ImpressionTag string `json:"impressionTag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdId") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagData) MarshalJSON() ([]byte, error) { +func (s TagData) MarshalJSON() ([]byte, error) { type NoMethod TagData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSetting: Tag Settings type TagSetting struct { - // AdditionalKeyValues: Additional key-values to be included in tags. - // Each key-value pair must be of the form key=value, and pairs must be - // separated by a semicolon (;). Keys and values must not contain - // commas. For example, id=2;color=red is a valid value for this field. + // AdditionalKeyValues: Additional key-values to be included in tags. Each + // key-value pair must be of the form key=value, and pairs must be separated by + // a semicolon (;). Keys and values must not contain commas. For example, + // id=2;color=red is a valid value for this field. AdditionalKeyValues string `json:"additionalKeyValues,omitempty"` - - // IncludeClickThroughUrls: Whether static landing page URLs should be - // included in the tags. This setting applies only to placements. + // IncludeClickThroughUrls: Whether static landing page URLs should be included + // in the tags. This setting applies only to placements. IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"` - - // IncludeClickTracking: Whether click-tracking string should be - // included in the tags. + // IncludeClickTracking: Whether click-tracking string should be included in + // the tags. IncludeClickTracking bool `json:"includeClickTracking,omitempty"` - - // KeywordOption: Option specifying how keywords are embedded in ad - // tags. This setting can be used to specify whether keyword - // placeholders are inserted in placement tags for this site. Publishers - // can then add keywords to those placeholders. + // KeywordOption: Option specifying how keywords are embedded in ad tags. This + // setting can be used to specify whether keyword placeholders are inserted in + // placement tags for this site. Publishers can then add keywords to those + // placeholders. // // Possible values: // "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" // "IGNORE" // "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" KeywordOption string `json:"keywordOption,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalKeyValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalKeyValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSetting) MarshalJSON() ([]byte, error) { +func (s TagSetting) MarshalJSON() ([]byte, error) { type NoMethod TagSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSettings: Dynamic and Image Tag Settings. type TagSettings struct { // DynamicTagEnabled: Whether dynamic floodlight tags are enabled. DynamicTagEnabled bool `json:"dynamicTagEnabled,omitempty"` - // ImageTagEnabled: Whether image tags are enabled. ImageTagEnabled bool `json:"imageTagEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTagEnabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTagEnabled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSettings) MarshalJSON() ([]byte, error) { +func (s TagSettings) MarshalJSON() ([]byte, error) { type NoMethod TagSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetWindow: Target Window. type TargetWindow struct { // CustomHtml: User-entered value. CustomHtml string `json:"customHtml,omitempty"` - - // TargetWindowOption: Type of browser window for which the backup image - // of the flash creative can be displayed. + // TargetWindowOption: Type of browser window for which the backup image of the + // flash creative can be displayed. // // Possible values: // "CURRENT_WINDOW" // "CUSTOM" // "NEW_WINDOW" TargetWindowOption string `json:"targetWindowOption,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomHtml") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomHtml") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomHtml") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetWindow) MarshalJSON() ([]byte, error) { +func (s TargetWindow) MarshalJSON() ([]byte, error) { type NoMethod TargetWindow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetableRemarketingList: Contains properties of a targetable -// remarketing list. Remarketing enables you to create lists of users -// who have performed specific actions on a site, then target ads to -// members of those lists. This resource is a read-only view of a -// remarketing list to be used to faciliate targeting ads to specific -// lists. Remarketing lists that are owned by your advertisers and those -// that are shared to your advertisers or account are accessible via -// this resource. To manage remarketing lists that are owned by your -// advertisers, use the RemarketingLists resource. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TargetableRemarketingList: Contains properties of a targetable remarketing +// list. Remarketing enables you to create lists of users who have performed +// specific actions on a site, then target ads to members of those lists. This +// resource is a read-only view of a remarketing list to be used to faciliate +// targeting ads to specific lists. Remarketing lists that are owned by your +// advertisers and those that are shared to your advertisers or account are +// accessible via this resource. To manage remarketing lists that are owned by +// your advertisers, use the RemarketingLists resource. type TargetableRemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this targetable remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // targetable remarketing list. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Targetable remarketing list description. Description string `json:"description,omitempty"` - // Id: Targetable remarketing list ID. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingList". Kind string `json:"kind,omitempty"` - // LifeSpan: Number of days that a user should remain in the targetable // remarketing list without an impression. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this targetable remarketing list was // originated. // @@ -12816,304 +10198,231 @@ type TargetableRemarketingList struct { // "REMARKETING_LIST_SOURCE_XFP" // "REMARKETING_LIST_SOURCE_YOUTUBE" ListSource string `json:"listSource,omitempty"` - // Name: Name of the targetable remarketing list. Is no greater than 128 // characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingList) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingList) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetableRemarketingListsListResponse: Targetable remarketing list -// response +// TargetableRemarketingListsListResponse: Targetable remarketing list response type TargetableRemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetableRemarketingLists: Targetable remarketing list collection. TargetableRemarketingLists []*TargetableRemarketingList `json:"targetableRemarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetingTemplate: Contains properties of a targeting template. A -// targeting template encapsulates targeting information which can be -// reused across multiple ads. +// TargetingTemplate: Contains properties of a targeting template. A targeting +// template encapsulates targeting information which can be reused across +// multiple ads. type TargetingTemplate struct { - // AccountId: Account ID of this targeting template. This field, if left - // unset, will be auto-generated on insert and is read-only after - // insert. + // AccountId: Account ID of this targeting template. This field, if left unset, + // will be auto-generated on insert and is read-only after insert. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this targeting template. This is a - // required field on insert and is read-only after insert. + // AdvertiserId: Advertiser ID of this targeting template. This is a required + // field on insert and is read-only after insert. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // DayPartTargeting: Time and day targeting criteria. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - // GeoTargeting: Geographical targeting criteria. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - - // Id: ID of this targeting template. This is a read-only, - // auto-generated field. + // Id: ID of this targeting template. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // KeyValueTargetingExpression: Key-value targeting criteria. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplate". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplate". Kind string `json:"kind,omitempty"` - // LanguageTargeting: Language targeting criteria. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - // ListTargetingExpression: Remarketing list targeting criteria. ListTargetingExpression *ListTargetingExpression `json:"listTargetingExpression,omitempty"` - - // Name: Name of this targeting template. This field is required. It - // must be less than 256 characters long and unique within an - // advertiser. + // Name: Name of this targeting template. This field is required. It must be + // less than 256 characters long and unique within an advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this targeting template. This field, - // if left unset, will be auto-generated on insert and is read-only - // after insert. + // SubaccountId: Subaccount ID of this targeting template. This field, if left + // unset, will be auto-generated on insert and is read-only after insert. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TechnologyTargeting: Technology platform targeting criteria. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplate) MarshalJSON() ([]byte, error) { +func (s TargetingTemplate) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetingTemplatesListResponse: Targeting Template List Response type TargetingTemplatesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplatesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplatesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetingTemplates: Targeting template collection. TargetingTemplates []*TargetingTemplate `json:"targetingTemplates,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { +func (s TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplatesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TechnologyTargeting: Technology Targeting. type TechnologyTargeting struct { // Browsers: Browsers that this ad targets. For each browser either set - // browserVersionId or dartId along with the version numbers. If both - // are specified, only browserVersionId will be used. The other fields - // are populated automatically when the ad is inserted or updated. + // browserVersionId or dartId along with the version numbers. If both are + // specified, only browserVersionId will be used. The other fields are + // populated automatically when the ad is inserted or updated. Browsers []*Browser `json:"browsers,omitempty"` - - // ConnectionTypes: Connection types that this ad targets. For each - // connection type only id is required. The other fields are populated - // automatically when the ad is inserted or updated. + // ConnectionTypes: Connection types that this ad targets. For each connection + // type only id is required. The other fields are populated automatically when + // the ad is inserted or updated. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - // MobileCarriers: Mobile carriers that this ad targets. For each mobile // carrier only id is required, and the other fields are populated - // automatically when the ad is inserted or updated. If targeting a - // mobile carrier, do not set targeting for any zip codes. + // automatically when the ad is inserted or updated. If targeting a mobile + // carrier, do not set targeting for any zip codes. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - - // OperatingSystemVersions: Operating system versions that this ad - // targets. To target all versions, use operatingSystems. For each - // operating system version, only id is required. The other fields are - // populated automatically when the ad is inserted or updated. If - // targeting an operating system version, do not set targeting for the - // corresponding operating system in operatingSystems. + // OperatingSystemVersions: Operating system versions that this ad targets. To + // target all versions, use operatingSystems. For each operating system + // version, only id is required. The other fields are populated automatically + // when the ad is inserted or updated. If targeting an operating system + // version, do not set targeting for the corresponding operating system in + // operatingSystems. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - - // OperatingSystems: Operating systems that this ad targets. To target - // specific versions, use operatingSystemVersions. For each operating - // system only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting an - // operating system, do not set targeting for operating system versions - // for the same operating system. + // OperatingSystems: Operating systems that this ad targets. To target specific + // versions, use operatingSystemVersions. For each operating system only dartId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting an operating system, do not set targeting + // for operating system versions for the same operating system. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - - // PlatformTypes: Platform types that this ad targets. For example, - // desktop, mobile, or tablet. For each platform type, only id is - // required, and the other fields are populated automatically when the - // ad is inserted or updated. + // PlatformTypes: Platform types that this ad targets. For example, desktop, + // mobile, or tablet. For each platform type, only id is required, and the + // other fields are populated automatically when the ad is inserted or updated. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TechnologyTargeting) MarshalJSON() ([]byte, error) { +func (s TechnologyTargeting) MarshalJSON() ([]byte, error) { type NoMethod TechnologyTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyAuthenticationToken: Third Party Authentication Token type ThirdPartyAuthenticationToken struct { // Name: Name of the third-party authentication token. Name string `json:"name,omitempty"` - - // Value: Value of the third-party authentication token. This is a - // read-only, auto-generated field. + // Value: Value of the third-party authentication token. This is a read-only, + // auto-generated field. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { +func (s ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyAuthenticationToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyTrackingUrl: Third-party Tracking URL. type ThirdPartyTrackingUrl struct { - // ThirdPartyUrlType: Third-party URL type for in-stream video and - // in-stream audio creatives. + // ThirdPartyUrlType: Third-party URL type for in-stream video and in-stream + // audio creatives. // // Possible values: // "CLICK_TRACKING" @@ -13136,32 +10445,24 @@ type ThirdPartyTrackingUrl struct { // "VIDEO_STOP" // "VIDEO_THIRD_QUARTILE" ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"` - // Url: URL for the specified third-party URL type. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { +func (s ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyTrackingUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TranscodeSetting: Transcode Settings @@ -13169,38 +10470,29 @@ type TranscodeSetting struct { // EnabledVideoFormats: Whitelist of video formats to be served to this // placement. Set this list to null or empty to serve all video formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#transcodeSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#transcodeSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnabledVideoFormats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnabledVideoFormats") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TranscodeSetting) MarshalJSON() ([]byte, error) { +func (s TranscodeSetting) MarshalJSON() ([]byte, error) { type NoMethod TranscodeSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable -// to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and -// VPAID. +// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the +// following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID. type UniversalAdId struct { // Registry: Registry used for the Ad ID value. // @@ -13210,37 +10502,29 @@ type UniversalAdId struct { // "DCM" // "OTHER" Registry string `json:"registry,omitempty"` - - // Value: ID value for this creative. Only alphanumeric characters and - // the following symbols are valid: "_/\-". Maximum length is 64 - // characters. Read only when registry is DCM. + // Value: ID value for this creative. Only alphanumeric characters and the + // following symbols are valid: "_/\-". Maximum length is 64 characters. Read + // only when registry is DCM. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Registry") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Registry") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Registry") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UniversalAdId) MarshalJSON() ([]byte, error) { +func (s UniversalAdId) MarshalJSON() ([]byte, error) { type NoMethod UniversalAdId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserDefinedVariableConfiguration: User Defined Variable -// configuration. +// UserDefinedVariableConfiguration: User Defined Variable configuration. type UserDefinedVariableConfiguration struct { // DataType: Data type for the variable. This is a required field. // @@ -13248,12 +10532,10 @@ type UserDefinedVariableConfiguration struct { // "NUMBER" // "STRING" DataType string `json:"dataType,omitempty"` - // ReportName: User-friendly name for the variable which will appear in - // reports. This is a required field, must be less than 64 characters - // long, and cannot contain the following characters: ""<>". + // reports. This is a required field, must be less than 64 characters long, and + // cannot contain the following characters: ""<>". ReportName string `json:"reportName,omitempty"` - // VariableType: Variable name in the tag. This is a required field. // // Possible values: @@ -13358,188 +10640,141 @@ type UserDefinedVariableConfiguration struct { // "U98" // "U99" VariableType string `json:"variableType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { +func (s UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { type NoMethod UserDefinedVariableConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfile: Represents a UserProfile resource. type UserProfile struct { // AccountId: The account ID to which this profile belongs. AccountId int64 `json:"accountId,omitempty,string"` - // AccountName: The account name this profile belongs to. AccountName string `json:"accountName,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#userProfile. + // Kind: The kind of resource this is, in this case dfareporting#userProfile. Kind string `json:"kind,omitempty"` - // ProfileId: The unique ID of the user profile. ProfileId int64 `json:"profileId,omitempty,string"` - - // SubAccountId: The sub account ID this profile belongs to if - // applicable. + // SubAccountId: The sub account ID this profile belongs to if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - - // SubAccountName: The sub account name this profile belongs to if - // applicable. + // SubAccountName: The sub account name this profile belongs to if applicable. SubAccountName string `json:"subAccountName,omitempty"` - // UserName: The user name. UserName string `json:"userName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfile) MarshalJSON() ([]byte, error) { +func (s UserProfile) MarshalJSON() ([]byte, error) { type NoMethod UserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfileList: Represents the list of user profiles. type UserProfileList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The user profiles returned in this response. Items []*UserProfile `json:"items,omitempty"` - - // Kind: The kind of list this is, in this case - // dfareporting#userProfileList. + // Kind: The kind of list this is, in this case dfareporting#userProfileList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfileList) MarshalJSON() ([]byte, error) { +func (s UserProfileList) MarshalJSON() ([]byte, error) { type NoMethod UserProfileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserRole: Contains properties of auser role, which is used to manage -// user access. +// UserRole: Contains properties of auser role, which is used to manage user +// access. type UserRole struct { - // AccountId: Account ID of this user role. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this user role. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // DefaultUserRole: Whether this is a default user role. Default user - // roles are created by the system for the account/subaccount and cannot - // be modified or deleted. Each default user role comes with a basic set - // of preassigned permissions. + // DefaultUserRole: Whether this is a default user role. Default user roles are + // created by the system for the account/subaccount and cannot be modified or + // deleted. Each default user role comes with a basic set of preassigned + // permissions. DefaultUserRole bool `json:"defaultUserRole,omitempty"` - // Id: ID of this user role. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRole". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRole". Kind string `json:"kind,omitempty"` - - // Name: Name of this user role. This is a required field. Must be less - // than 256 characters long. If this user role is under a subaccount, - // the name must be unique among sites of the same subaccount. - // Otherwise, this user role is a top-level user role, and the name must - // be unique among top-level user roles of the same account. + // Name: Name of this user role. This is a required field. Must be less than + // 256 characters long. If this user role is under a subaccount, the name must + // be unique among sites of the same subaccount. Otherwise, this user role is a + // top-level user role, and the name must be unique among top-level user roles + // of the same account. Name string `json:"name,omitempty"` - - // ParentUserRoleId: ID of the user role that this user role is based on - // or copied from. This is a required field. + // ParentUserRoleId: ID of the user role that this user role is based on or + // copied from. This is a required field. ParentUserRoleId int64 `json:"parentUserRoleId,omitempty,string"` - // Permissions: List of permissions associated with this user role. Permissions []*UserRolePermission `json:"permissions,omitempty"` - - // SubaccountId: Subaccount ID of this user role. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this user role. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRole) MarshalJSON() ([]byte, error) { +func (s UserRole) MarshalJSON() ([]byte, error) { type NoMethod UserRole - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermission: Contains properties of a user role permission. @@ -13553,46 +10788,35 @@ type UserRolePermission struct { // "SUBACCOUNT_AND_ACCOUNT_ALWAYS" // "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" Availability string `json:"availability,omitempty"` - // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermission". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission. Name string `json:"name,omitempty"` - - // PermissionGroupId: ID of the permission group that this user role - // permission belongs to. + // PermissionGroupId: ID of the permission group that this user role permission + // belongs to. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Availability") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Availability") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Availability") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermission) MarshalJSON() ([]byte, error) { +func (s UserRolePermission) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroup: Represents a grouping of related user role @@ -13600,152 +10824,117 @@ func (s *UserRolePermission) MarshalJSON() ([]byte, error) { type UserRolePermissionGroup struct { // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroup) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroupsListResponse: User Role Permission Group List // Response type UserRolePermissionGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissionGroups: User role permission group collection. UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionsListResponse: User Role Permission List Response type UserRolePermissionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissions: User role permission collection. UserRolePermissions []*UserRolePermission `json:"userRolePermissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolesListResponse: User Role List Response type UserRolesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // UserRoles: User role collection. UserRoles []*UserRole `json:"userRoles,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolesListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolesListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormat: Contains information about supported video formats. @@ -13759,128 +10948,98 @@ type VideoFormat struct { // "THREEGPP" // "WEBM" FileType string `json:"fileType,omitempty"` - // Id: ID of the video format. Id int64 `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormat". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormat". Kind string `json:"kind,omitempty"` - // Resolution: The resolution of this video format. Resolution *Size `json:"resolution,omitempty"` - // TargetBitRate: The target bit rate of this video format. TargetBitRate int64 `json:"targetBitRate,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "FileType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormat) MarshalJSON() ([]byte, error) { +func (s VideoFormat) MarshalJSON() ([]byte, error) { type NoMethod VideoFormat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormatsListResponse: Video Format List Response type VideoFormatsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormatsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormatsListResponse". Kind string `json:"kind,omitempty"` - // VideoFormats: Video format collection. VideoFormats []*VideoFormat `json:"videoFormats,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormatsListResponse) MarshalJSON() ([]byte, error) { +func (s VideoFormatsListResponse) MarshalJSON() ([]byte, error) { type NoMethod VideoFormatsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoOffset: Video Offset type VideoOffset struct { - // OffsetPercentage: Duration, as a percentage of video duration. Do not - // set when offsetSeconds is set. Acceptable values are 0 to 100, - // inclusive. + // OffsetPercentage: Duration, as a percentage of video duration. Do not set + // when offsetSeconds is set. Acceptable values are 0 to 100, inclusive. OffsetPercentage int64 `json:"offsetPercentage,omitempty"` - - // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage - // is set. Acceptable values are 0 to 86399, inclusive. + // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage is + // set. Acceptable values are 0 to 86399, inclusive. OffsetSeconds int64 `json:"offsetSeconds,omitempty"` - // ForceSendFields is a list of field names (e.g. "OffsetPercentage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OffsetPercentage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OffsetPercentage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoOffset) MarshalJSON() ([]byte, error) { +func (s VideoOffset) MarshalJSON() ([]byte, error) { type NoMethod VideoOffset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoSettings: Video Settings type VideoSettings struct { - // CompanionSettings: Settings for the companion creatives of video - // creatives served to this placement. + // CompanionSettings: Settings for the companion creatives of video creatives + // served to this placement. CompanionSettings *CompanionSetting `json:"companionSettings,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoSettings". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoSettings". Kind string `json:"kind,omitempty"` - // Orientation: Orientation of a video placement. If this value is set, // placement will return assets matching the specified orientation. // @@ -13889,43 +11048,32 @@ type VideoSettings struct { // "LANDSCAPE" // "PORTRAIT" Orientation string `json:"orientation,omitempty"` - - // SkippableSettings: Settings for the skippability of video creatives - // served to this placement. If this object is provided, the - // creative-level skippable settings will be overridden. + // SkippableSettings: Settings for the skippability of video creatives served + // to this placement. If this object is provided, the creative-level skippable + // settings will be overridden. SkippableSettings *SkippableSetting `json:"skippableSettings,omitempty"` - - // TranscodeSettings: Settings for the transcodes of video creatives - // served to this placement. If this object is provided, the - // creative-level transcode settings will be overridden. + // TranscodeSettings: Settings for the transcodes of video creatives served to + // this placement. If this object is provided, the creative-level transcode + // settings will be overridden. TranscodeSettings *TranscodeSetting `json:"transcodeSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionSettings") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionSettings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionSettings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoSettings) MarshalJSON() ([]byte, error) { +func (s VideoSettings) MarshalJSON() ([]byte, error) { type NoMethod VideoSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "dfareporting.accountActiveAdSummaries.get": - type AccountActiveAdSummariesGetCall struct { s *Service profileId int64 @@ -13937,6 +11085,9 @@ type AccountActiveAdSummariesGetCall struct { } // Get: Gets the account's active ad summary by account ID. +// +// - profileId: User profile ID associated with this request. +// - summaryAccountId: Account ID. func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId int64) *AccountActiveAdSummariesGetCall { c := &AccountActiveAdSummariesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -13945,33 +11096,29 @@ func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountActiveAdSummariesGetCall) Fields(s ...googleapi.Field) *AccountActiveAdSummariesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountActiveAdSummariesGetCall) IfNoneMatch(entityTag string) *AccountActiveAdSummariesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountActiveAdSummariesGetCall) Context(ctx context.Context) *AccountActiveAdSummariesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountActiveAdSummariesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13980,12 +11127,7 @@ func (c *AccountActiveAdSummariesGetCall) Header() http.Header { } func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14003,16 +11145,15 @@ func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "summaryAccountId": strconv.FormatInt(c.summaryAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountActiveAdSummaries.get" call. -// Exactly one of *AccountActiveAdSummary or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountActiveAdSummary.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountActiveAdSummary.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*AccountActiveAdSummary, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14020,17 +11161,17 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountActiveAdSummary{ ServerResponse: googleapi.ServerResponse{ @@ -14043,42 +11184,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Gets the account's active ad summary by account ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountActiveAdSummaries.get", - // "parameterOrder": [ - // "profileId", - // "summaryAccountId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "summaryAccountId": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - // "response": { - // "$ref": "AccountActiveAdSummary" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.get": +} type AccountPermissionGroupsGetCall struct { s *Service @@ -14091,6 +11197,9 @@ type AccountPermissionGroupsGetCall struct { } // Get: Gets one account permission group by ID. +// +// - id: Account permission group ID. +// - profileId: User profile ID associated with this request. func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *AccountPermissionGroupsGetCall { c := &AccountPermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14099,33 +11208,29 @@ func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *Account } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsGetCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsGetCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsGetCall) Context(ctx context.Context) *AccountPermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14134,12 +11239,7 @@ func (c *AccountPermissionGroupsGetCall) Header() http.Header { } func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14157,16 +11257,15 @@ func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.get" call. -// Exactly one of *AccountPermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermissionGroup.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroup.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14174,17 +11273,17 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -14197,42 +11296,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco return nil, err } return ret, nil - // { - // "description": "Gets one account permission group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", - // "response": { - // "$ref": "AccountPermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.list": +} type AccountPermissionGroupsListCall struct { s *Service @@ -14244,6 +11308,8 @@ type AccountPermissionGroupsListCall struct { } // List: Retrieves the list of account permission groups. +// +// - profileId: User profile ID associated with this request. func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissionGroupsListCall { c := &AccountPermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14251,33 +11317,29 @@ func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsListCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsListCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsListCall) Context(ctx context.Context) *AccountPermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14286,12 +11348,7 @@ func (c *AccountPermissionGroupsListCall) Header() http.Header { } func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14308,17 +11365,15 @@ func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.list" call. -// Exactly one of *AccountPermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroupsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14326,17 +11381,17 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14349,34 +11404,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permission groups.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups", - // "response": { - // "$ref": "AccountPermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.get": +} type AccountPermissionsGetCall struct { s *Service @@ -14389,6 +11417,9 @@ type AccountPermissionsGetCall struct { } // Get: Gets one account permission by ID. +// +// - id: Account permission ID. +// - profileId: User profile ID associated with this request. func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermissionsGetCall { c := &AccountPermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14397,33 +11428,29 @@ func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsGetCall) Fields(s ...googleapi.Field) *AccountPermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsGetCall) IfNoneMatch(entityTag string) *AccountPermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsGetCall) Context(ctx context.Context) *AccountPermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14432,12 +11459,7 @@ func (c *AccountPermissionsGetCall) Header() http.Header { } func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14455,16 +11477,15 @@ func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.get" call. -// Exactly one of *AccountPermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14472,17 +11493,17 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermission{ ServerResponse: googleapi.ServerResponse{ @@ -14495,42 +11516,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe return nil, err } return ret, nil - // { - // "description": "Gets one account permission by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions/{id}", - // "response": { - // "$ref": "AccountPermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.list": +} type AccountPermissionsListCall struct { s *Service @@ -14542,6 +11528,8 @@ type AccountPermissionsListCall struct { } // List: Retrieves the list of account permissions. +// +// - profileId: User profile ID associated with this request. func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsListCall { c := &AccountPermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14549,33 +11537,29 @@ func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsListCall) Fields(s ...googleapi.Field) *AccountPermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsListCall) IfNoneMatch(entityTag string) *AccountPermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsListCall) Context(ctx context.Context) *AccountPermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14584,12 +11568,7 @@ func (c *AccountPermissionsListCall) Header() http.Header { } func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14606,16 +11585,15 @@ func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.list" call. -// Exactly one of *AccountPermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14623,17 +11601,17 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14646,34 +11624,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permissions.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions", - // "response": { - // "$ref": "AccountPermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.get": +} type AccountUserProfilesGetCall struct { s *Service @@ -14686,6 +11637,9 @@ type AccountUserProfilesGetCall struct { } // Get: Gets one account user profile by ID. +// +// - id: User profile ID. +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUserProfilesGetCall { c := &AccountUserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14694,33 +11648,29 @@ func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUser } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesGetCall) Fields(s ...googleapi.Field) *AccountUserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesGetCall) IfNoneMatch(entityTag string) *AccountUserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesGetCall) Context(ctx context.Context) *AccountUserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14729,12 +11679,7 @@ func (c *AccountUserProfilesGetCall) Header() http.Header { } func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14752,16 +11697,15 @@ func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.get" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14769,17 +11713,17 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -14792,42 +11736,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU return nil, err } return ret, nil - // { - // "description": "Gets one account user profile by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles/{id}", - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.insert": +} type AccountUserProfilesInsertCall struct { s *Service @@ -14839,6 +11748,8 @@ type AccountUserProfilesInsertCall struct { } // Insert: Inserts a new account user profile. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesInsertCall { c := &AccountUserProfilesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14847,23 +11758,21 @@ func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesInsertCall) Fields(s ...googleapi.Field) *AccountUserProfilesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesInsertCall) Context(ctx context.Context) *AccountUserProfilesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14872,18 +11781,12 @@ func (c *AccountUserProfilesInsertCall) Header() http.Header { } func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -14896,16 +11799,15 @@ func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.insert" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14913,17 +11815,17 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -14936,37 +11838,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Inserts a new account user profile.", - // "httpMethod": "POST", - // "id": "dfareporting.accountUserProfiles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.list": +} type AccountUserProfilesListCall struct { s *Service @@ -14977,8 +11849,10 @@ type AccountUserProfilesListCall struct { header_ http.Header } -// List: Retrieves a list of account user profiles, possibly filtered. -// This method supports paging. +// List: Retrieves a list of account user profiles, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) List(profileId int64) *AccountUserProfilesListCall { c := &AccountUserProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14992,8 +11866,8 @@ func (c *AccountUserProfilesListCall) Active(active bool) *AccountUserProfilesLi return c } -// Ids sets the optional parameter "ids": Select only user profiles with -// these IDs. +// Ids sets the optional parameter "ids": Select only user profiles with these +// IDs. func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesListCall { var ids_ []string for _, v := range ids { @@ -15003,8 +11877,8 @@ func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountUserProfilesListCall) MaxResults(maxResults int64) *AccountUserProfilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -15017,22 +11891,21 @@ func (c *AccountUserProfilesListCall) PageToken(pageToken string) *AccountUserPr return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or email. Wildcards (*) are -// allowed. For example, "user profile*2015" will return objects with -// names like "user profile June 2015", "user profile April 2015", or -// simply "user profile 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "user profile" will match objects with -// name "my user profile", "user profile 2015", or simply "user +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or email. Wildcards (*) are allowed. For example, +// "user profile*2015" will return objects with names like "user profile June +// 2015", "user profile April 2015", or simply "user profile 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "user profile" will match +// objects with name "my user profile", "user profile 2015", or simply "user // profile". func (c *AccountUserProfilesListCall) SearchString(searchString string) *AccountUserProfilesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -15043,8 +11916,7 @@ func (c *AccountUserProfilesListCall) SortField(sortField string) *AccountUserPr return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -15055,8 +11927,8 @@ func (c *AccountUserProfilesListCall) SortOrder(sortOrder string) *AccountUserPr return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user profiles with the specified subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// profiles with the specified subaccount ID. func (c *AccountUserProfilesListCall) SubaccountId(subaccountId int64) *AccountUserProfilesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c @@ -15070,33 +11942,29 @@ func (c *AccountUserProfilesListCall) UserRoleId(userRoleId int64) *AccountUserP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesListCall) Fields(s ...googleapi.Field) *AccountUserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesListCall) IfNoneMatch(entityTag string) *AccountUserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesListCall) Context(ctx context.Context) *AccountUserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15105,12 +11973,7 @@ func (c *AccountUserProfilesListCall) Header() http.Header { } func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15127,16 +11990,15 @@ func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.list" call. -// Exactly one of *AccountUserProfilesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountUserProfilesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfilesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*AccountUserProfilesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15144,17 +12006,17 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfilesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15167,102 +12029,6 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account return nil, err } return ret, nil - // { - // "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active user profiles.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user profiles with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"user profile*2015\" will return objects with names like \"user profile June 2015\", \"user profile April 2015\", or simply \"user profile 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"user profile\" will match objects with name \"my user profile\", \"user profile 2015\", or simply \"user profile\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user profiles with the specified subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "userRoleId": { - // "description": "Select only user profiles with the specified user role ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "response": { - // "$ref": "AccountUserProfilesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -15270,7 +12036,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // The provided context supersedes any context provided to the Context method. func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*AccountUserProfilesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15286,8 +12052,6 @@ func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*Account } } -// method id "dfareporting.accountUserProfiles.patch": - type AccountUserProfilesPatchCall struct { s *Service profileId int64 @@ -15297,8 +12061,11 @@ type AccountUserProfilesPatchCall struct { header_ http.Header } -// Patch: Updates an existing account user profile. This method supports -// patch semantics. +// Patch: Updates an existing account user profile. This method supports patch +// semantics. +// +// - id: User profile ID. +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesPatchCall { c := &AccountUserProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15308,23 +12075,21 @@ func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuse } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesPatchCall) Fields(s ...googleapi.Field) *AccountUserProfilesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesPatchCall) Context(ctx context.Context) *AccountUserProfilesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15333,18 +12098,12 @@ func (c *AccountUserProfilesPatchCall) Header() http.Header { } func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15357,16 +12116,15 @@ func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.patch" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15374,17 +12132,17 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15397,45 +12155,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.accountUserProfiles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.update": +} type AccountUserProfilesUpdateCall struct { s *Service @@ -15447,6 +12167,8 @@ type AccountUserProfilesUpdateCall struct { } // Update: Updates an existing account user profile. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesUpdateCall { c := &AccountUserProfilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15455,23 +12177,21 @@ func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesUpdateCall) Fields(s ...googleapi.Field) *AccountUserProfilesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesUpdateCall) Context(ctx context.Context) *AccountUserProfilesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15480,18 +12200,12 @@ func (c *AccountUserProfilesUpdateCall) Header() http.Header { } func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15504,16 +12218,15 @@ func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.update" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15521,17 +12234,17 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15544,37 +12257,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile.", - // "httpMethod": "PUT", - // "id": "dfareporting.accountUserProfiles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.get": +} type AccountsGetCall struct { s *Service @@ -15587,6 +12270,9 @@ type AccountsGetCall struct { } // Get: Gets one account by ID. +// +// - id: Account ID. +// - profileId: User profile ID associated with this request. func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15595,33 +12281,29 @@ func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15630,12 +12312,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15653,16 +12330,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15670,17 +12345,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -15693,42 +12368,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Gets one account by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts/{id}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.list": +} type AccountsListCall struct { s *Service @@ -15741,22 +12381,22 @@ type AccountsListCall struct { // List: Retrieves the list of accounts, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AccountsService) List(profileId int64) *AccountsListCall { c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Active sets the optional parameter "active": Select only active -// accounts. Don't set this field to select both active and non-active -// accounts. +// Active sets the optional parameter "active": Select only active accounts. +// Don't set this field to select both active and non-active accounts. func (c *AccountsListCall) Active(active bool) *AccountsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// Ids sets the optional parameter "ids": Select only accounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only accounts with these IDs. func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { var ids_ []string for _, v := range ids { @@ -15766,8 +12406,8 @@ func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -15780,21 +12420,20 @@ func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "account*2015" will return objects with names like "account -// June 2015", "account April 2015", or simply "account 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "account" will -// match objects with name "my account", "account 2015", or simply -// "account". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "account*2015" will return objects with names like "account June 2015", +// "account April 2015", or simply "account 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "account" will match objects with name "my +// account", "account 2015", or simply "account". func (c *AccountsListCall) SearchString(searchString string) *AccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -15805,8 +12444,7 @@ func (c *AccountsListCall) SortField(sortField string) *AccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -15818,33 +12456,29 @@ func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15853,12 +12487,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15875,16 +12504,15 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.list" call. -// Exactly one of *AccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15892,17 +12520,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15915,90 +12543,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active accounts. Don't set this field to select both active and non-active accounts.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only accounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"account*2015\" will return objects with names like \"account June 2015\", \"account April 2015\", or simply \"account 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"account\" will match objects with name \"my account\", \"account 2015\", or simply \"account\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "response": { - // "$ref": "AccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -16006,7 +12550,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // The provided context supersedes any context provided to the Context method. func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -16022,8 +12566,6 @@ func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListRespon } } -// method id "dfareporting.accounts.patch": - type AccountsPatchCall struct { s *Service profileId int64 @@ -16033,8 +12575,10 @@ type AccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing account. This method supports patch -// semantics. +// Patch: Updates an existing account. This method supports patch semantics. +// +// - id: Account ID. +// - profileId: User profile ID associated with this request. func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *AccountsPatchCall { c := &AccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16044,23 +12588,21 @@ func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *Ac } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16069,18 +12611,12 @@ func (c *AccountsPatchCall) Header() http.Header { } func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -16093,16 +12629,14 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.patch" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16110,17 +12644,17 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -16133,45 +12667,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing account. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.accounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.update": +} type AccountsUpdateCall struct { s *Service @@ -16183,6 +12679,8 @@ type AccountsUpdateCall struct { } // Update: Updates an existing account. +// +// - profileId: User profile ID associated with this request. func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpdateCall { c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16191,23 +12689,21 @@ func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpd } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16216,18 +12712,12 @@ func (c *AccountsUpdateCall) Header() http.Header { } func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -16240,16 +12730,14 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16257,17 +12745,17 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -16280,37 +12768,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing account.", - // "httpMethod": "PUT", - // "id": "dfareporting.accounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.get": +} type AdsGetCall struct { s *Service @@ -16323,6 +12781,9 @@ type AdsGetCall struct { } // Get: Gets one ad by ID. +// +// - id: Ad ID. +// - profileId: User profile ID associated with this request. func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { c := &AdsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16331,33 +12792,29 @@ func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsGetCall) Fields(s ...googleapi.Field) *AdsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsGetCall) IfNoneMatch(entityTag string) *AdsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsGetCall) Context(ctx context.Context) *AdsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16366,12 +12823,7 @@ func (c *AdsGetCall) Header() http.Header { } func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16389,16 +12841,14 @@ func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.get" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16406,17 +12856,17 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -16429,42 +12879,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Gets one ad by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.ads.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads/{id}", - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.insert": +} type AdsInsertCall struct { s *Service @@ -16476,6 +12891,8 @@ type AdsInsertCall struct { } // Insert: Inserts a new ad. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { c := &AdsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16484,23 +12901,21 @@ func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsInsertCall) Fields(s ...googleapi.Field) *AdsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsInsertCall) Context(ctx context.Context) *AdsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16509,18 +12924,12 @@ func (c *AdsInsertCall) Header() http.Header { } func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -16533,16 +12942,14 @@ func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.insert" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16550,17 +12957,17 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -16573,37 +12980,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new ad.", - // "httpMethod": "POST", - // "id": "dfareporting.ads.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.list": +} type AdsListCall struct { s *Service @@ -16614,8 +12991,10 @@ type AdsListCall struct { header_ http.Header } -// List: Retrieves a list of ads, possibly filtered. This method -// supports paging. +// List: Retrieves a list of ads, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) List(profileId int64) *AdsListCall { c := &AdsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16628,22 +13007,21 @@ func (c *AdsListCall) Active(active bool) *AdsListCall { return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// ads with this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only ads +// with this advertiser ID. func (c *AdsListCall) AdvertiserId(advertiserId int64) *AdsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Archived sets the optional parameter "archived": Select only archived -// ads. +// Archived sets the optional parameter "archived": Select only archived ads. func (c *AdsListCall) Archived(archived bool) *AdsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": -// Select only ads with these audience segment IDs. +// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": Select +// only ads with these audience segment IDs. func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCall { var audienceSegmentIds_ []string for _, v := range audienceSegmentIds { @@ -16653,8 +13031,8 @@ func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCa return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// ads with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only ads with +// these campaign IDs. func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -16664,13 +13042,13 @@ func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { return c } -// Compatibility sets the optional parameter "compatibility": Select -// default ads with the specified compatibility. Applicable when type is -// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to -// rendering either on desktop or on mobile devices for regular or -// interstitial ads, respectively. APP and APP_INTERSTITIAL are for -// rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an -// in-stream video ads developed with the VAST standard. +// Compatibility sets the optional parameter "compatibility": Select default +// ads with the specified compatibility. Applicable when type is +// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering +// either on desktop or on mobile devices for regular or interstitial ads, +// respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. +// IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with +// the VAST standard. // // Possible values: // @@ -16685,8 +13063,8 @@ func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall { return c } -// CreativeIds sets the optional parameter "creativeIds": Select only -// ads with these creative IDs assigned. +// CreativeIds sets the optional parameter "creativeIds": Select only ads with +// these creative IDs assigned. func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { var creativeIds_ []string for _, v := range creativeIds { @@ -16697,8 +13075,8 @@ func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { } // CreativeOptimizationConfigurationIds sets the optional parameter -// "creativeOptimizationConfigurationIds": Select only ads with these -// creative optimization configuration IDs. +// "creativeOptimizationConfigurationIds": Select only ads with these creative +// optimization configuration IDs. func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationConfigurationIds ...int64) *AdsListCall { var creativeOptimizationConfigurationIds_ []string for _, v := range creativeOptimizationConfigurationIds { @@ -16708,18 +13086,16 @@ func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationC return c } -// DynamicClickTracker sets the optional parameter -// "dynamicClickTracker": Select only dynamic click trackers. Applicable -// when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click -// trackers. If false, select static click trackers. Leave unset to -// select both. +// DynamicClickTracker sets the optional parameter "dynamicClickTracker": +// Select only dynamic click trackers. Applicable when type is +// AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, +// select static click trackers. Leave unset to select both. func (c *AdsListCall) DynamicClickTracker(dynamicClickTracker bool) *AdsListCall { c.urlParams_.Set("dynamicClickTracker", fmt.Sprint(dynamicClickTracker)) return c } -// Ids sets the optional parameter "ids": Select only ads with these -// IDs. +// Ids sets the optional parameter "ids": Select only ads with these IDs. func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { var ids_ []string for _, v := range ids { @@ -16729,8 +13105,8 @@ func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { return c } -// LandingPageIds sets the optional parameter "landingPageIds": Select -// only ads with these landing page IDs. +// LandingPageIds sets the optional parameter "landingPageIds": Select only ads +// with these landing page IDs. func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { var landingPageIds_ []string for _, v := range landingPageIds { @@ -16740,16 +13116,15 @@ func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdsListCall) MaxResults(maxResults int64) *AdsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only ads with this event tag override -// ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only ads with this event tag override ID. func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagId int64) *AdsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -16762,8 +13137,8 @@ func (c *AdsListCall) PageToken(pageToken string) *AdsListCall { return c } -// PlacementIds sets the optional parameter "placementIds": Select only -// ads with these placement IDs assigned. +// PlacementIds sets the optional parameter "placementIds": Select only ads +// with these placement IDs assigned. func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { var placementIds_ []string for _, v := range placementIds { @@ -16773,9 +13148,8 @@ func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { return c } -// RemarketingListIds sets the optional parameter "remarketingListIds": -// Select only ads whose list targeting expression use these remarketing -// list IDs. +// RemarketingListIds sets the optional parameter "remarketingListIds": Select +// only ads whose list targeting expression use these remarketing list IDs. func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCall { var remarketingListIds_ []string for _, v := range remarketingListIds { @@ -16785,20 +13159,19 @@ func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "ad*2015" will return objects with names like "ad June -// 2015", "ad April 2015", or simply "ad 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "ad" will match objects with -// name "my ad", "ad 2015", or simply "ad". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, "ad*2015" +// will return objects with names like "ad June 2015", "ad April 2015", or +// simply "ad 2015". Most of the searches also add wildcards implicitly at the +// start and the end of the search string. For example, a search string of "ad" +// will match objects with name "my ad", "ad 2015", or simply "ad". func (c *AdsListCall) SearchString(searchString string) *AdsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only ads with -// these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only ads with these +// size IDs. func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -16808,8 +13181,8 @@ func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -16820,8 +13193,7 @@ func (c *AdsListCall) SortField(sortField string) *AdsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -16832,22 +13204,21 @@ func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall { return c } -// SslCompliant sets the optional parameter "sslCompliant": Select only -// ads that are SSL-compliant. +// SslCompliant sets the optional parameter "sslCompliant": Select only ads +// that are SSL-compliant. func (c *AdsListCall) SslCompliant(sslCompliant bool) *AdsListCall { c.urlParams_.Set("sslCompliant", fmt.Sprint(sslCompliant)) return c } -// SslRequired sets the optional parameter "sslRequired": Select only -// ads that require SSL. +// SslRequired sets the optional parameter "sslRequired": Select only ads that +// require SSL. func (c *AdsListCall) SslRequired(sslRequired bool) *AdsListCall { c.urlParams_.Set("sslRequired", fmt.Sprint(sslRequired)) return c } -// Type sets the optional parameter "type": Select only ads with these -// types. +// Type sets the optional parameter "type": Select only ads with these types. // // Possible values: // @@ -16861,33 +13232,29 @@ func (c *AdsListCall) Type(type_ ...string) *AdsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsListCall) Fields(s ...googleapi.Field) *AdsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsListCall) IfNoneMatch(entityTag string) *AdsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsListCall) Context(ctx context.Context) *AdsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16896,12 +13263,7 @@ func (c *AdsListCall) Header() http.Header { } func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16918,16 +13280,15 @@ func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.list" call. -// Exactly one of *AdsListResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdsListResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16935,17 +13296,17 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16958,217 +13319,6 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) return nil, err } return ret, nil - // { - // "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.ads.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active ads.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only ads with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived ads.", - // "location": "query", - // "type": "boolean" - // }, - // "audienceSegmentIds": { - // "description": "Select only ads with these audience segment IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "campaignIds": { - // "description": "Select only ads with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibility": { - // "description": "Select default ads with the specified compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard.", - // "enum": [ - // "APP", - // "APP_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "IN_STREAM_AUDIO", - // "IN_STREAM_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "creativeIds": { - // "description": "Select only ads with these creative IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeOptimizationConfigurationIds": { - // "description": "Select only ads with these creative optimization configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dynamicClickTracker": { - // "description": "Select only dynamic click trackers. Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, select static click trackers. Leave unset to select both.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only ads with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "landingPageIds": { - // "description": "Select only ads with these landing page IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only ads with this event tag override ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Select only ads with these placement IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListIds": { - // "description": "Select only ads whose list targeting expression use these remarketing list IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"ad*2015\" will return objects with names like \"ad June 2015\", \"ad April 2015\", or simply \"ad 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"ad\" will match objects with name \"my ad\", \"ad 2015\", or simply \"ad\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only ads with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sslCompliant": { - // "description": "Select only ads that are SSL-compliant.", - // "location": "query", - // "type": "boolean" - // }, - // "sslRequired": { - // "description": "Select only ads that require SSL.", - // "location": "query", - // "type": "boolean" - // }, - // "type": { - // "description": "Select only ads with these types.", - // "enum": [ - // "AD_SERVING_CLICK_TRACKER", - // "AD_SERVING_DEFAULT_AD", - // "AD_SERVING_STANDARD_AD", - // "AD_SERVING_TRACKING" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "response": { - // "$ref": "AdsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -17176,7 +13326,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // The provided context supersedes any context provided to the Context method. func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17192,8 +13342,6 @@ func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) } } -// method id "dfareporting.ads.patch": - type AdsPatchCall struct { s *Service profileId int64 @@ -17204,6 +13352,9 @@ type AdsPatchCall struct { } // Patch: Updates an existing ad. This method supports patch semantics. +// +// - id: Ad ID. +// - profileId: User profile ID associated with this request. func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { c := &AdsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17213,23 +13364,21 @@ func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsPatchCall) Fields(s ...googleapi.Field) *AdsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsPatchCall) Context(ctx context.Context) *AdsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17238,18 +13387,12 @@ func (c *AdsPatchCall) Header() http.Header { } func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17262,16 +13405,14 @@ func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.patch" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17279,17 +13420,17 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17302,45 +13443,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.ads.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.update": +} type AdsUpdateCall struct { s *Service @@ -17352,6 +13455,8 @@ type AdsUpdateCall struct { } // Update: Updates an existing ad. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { c := &AdsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17360,23 +13465,21 @@ func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsUpdateCall) Fields(s ...googleapi.Field) *AdsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsUpdateCall) Context(ctx context.Context) *AdsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17385,18 +13488,12 @@ func (c *AdsUpdateCall) Header() http.Header { } func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17409,16 +13506,14 @@ func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.update" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17426,17 +13521,17 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17449,37 +13544,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad.", - // "httpMethod": "PUT", - // "id": "dfareporting.ads.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.delete": +} type AdvertiserGroupsDeleteCall struct { s *Service @@ -17491,6 +13556,9 @@ type AdvertiserGroupsDeleteCall struct { } // Delete: Deletes an existing advertiser group. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserGroupsDeleteCall { c := &AdvertiserGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17499,23 +13567,21 @@ func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsDeleteCall) Fields(s ...googleapi.Field) *AdvertiserGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsDeleteCall) Context(ctx context.Context) *AdvertiserGroupsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17524,12 +13590,7 @@ func (c *AdvertiserGroupsDeleteCall) Header() http.Header { } func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17544,7 +13605,7 @@ func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.delete" call. @@ -17556,42 +13617,10 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing advertiser group.", - // "httpMethod": "DELETE", - // "id": "dfareporting.advertiserGroups.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.get": +} type AdvertiserGroupsGetCall struct { s *Service @@ -17604,6 +13633,9 @@ type AdvertiserGroupsGetCall struct { } // Get: Gets one advertiser group by ID. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGroupsGetCall { c := &AdvertiserGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17612,33 +13644,29 @@ func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGrou } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsGetCall) Fields(s ...googleapi.Field) *AdvertiserGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsGetCall) IfNoneMatch(entityTag string) *AdvertiserGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsGetCall) Context(ctx context.Context) *AdvertiserGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17647,12 +13675,7 @@ func (c *AdvertiserGroupsGetCall) Header() http.Header { } func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17670,16 +13693,15 @@ func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.get" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17687,17 +13709,17 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -17710,42 +13732,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG return nil, err } return ret, nil - // { - // "description": "Gets one advertiser group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.insert": +} type AdvertiserGroupsInsertCall struct { s *Service @@ -17757,6 +13744,8 @@ type AdvertiserGroupsInsertCall struct { } // Insert: Inserts a new advertiser group. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsInsertCall { c := &AdvertiserGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17765,23 +13754,21 @@ func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsInsertCall) Fields(s ...googleapi.Field) *AdvertiserGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsInsertCall) Context(ctx context.Context) *AdvertiserGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17790,18 +13777,12 @@ func (c *AdvertiserGroupsInsertCall) Header() http.Header { } func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -17814,16 +13795,15 @@ func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.insert" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17831,17 +13811,17 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -17854,37 +13834,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser group.", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.list": +} type AdvertiserGroupsListCall struct { s *Service @@ -17895,16 +13845,18 @@ type AdvertiserGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of advertiser groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of advertiser groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCall { c := &AdvertiserGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only advertiser groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only advertiser groups with +// these IDs. func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { var ids_ []string for _, v := range ids { @@ -17914,8 +13866,8 @@ func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserGroupsListCall) MaxResults(maxResults int64) *AdvertiserGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -17928,22 +13880,21 @@ func (c *AdvertiserGroupsListCall) PageToken(pageToken string) *AdvertiserGroups return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser group June 2015", "advertiser group April 2015", or -// simply "advertiser group 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "advertisergroup" will match objects -// with name "my advertisergroup", "advertisergroup 2015", or simply -// "advertisergroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser group June +// 2015", "advertiser group April 2015", or simply "advertiser group 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "advertisergroup" will +// match objects with name "my advertisergroup", "advertisergroup 2015", or +// simply "advertisergroup". func (c *AdvertiserGroupsListCall) SearchString(searchString string) *AdvertiserGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -17954,8 +13905,7 @@ func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroups return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -17967,33 +13917,29 @@ func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsListCall) Fields(s ...googleapi.Field) *AdvertiserGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsListCall) IfNoneMatch(entityTag string) *AdvertiserGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsListCall) Context(ctx context.Context) *AdvertiserGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18002,12 +13948,7 @@ func (c *AdvertiserGroupsListCall) Header() http.Header { } func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18024,16 +13965,15 @@ func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.list" call. -// Exactly one of *AdvertiserGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserGroupsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18041,17 +13981,17 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18064,85 +14004,6 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only advertiser groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser group June 2015\", \"advertiser group April 2015\", or simply \"advertiser group 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertisergroup\" will match objects with name \"my advertisergroup\", \"advertisergroup 2015\", or simply \"advertisergroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "response": { - // "$ref": "AdvertiserGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -18150,7 +14011,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // The provided context supersedes any context provided to the Context method. func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*AdvertiserGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18166,8 +14027,6 @@ func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*Advertiser } } -// method id "dfareporting.advertiserGroups.patch": - type AdvertiserGroupsPatchCall struct { s *Service profileId int64 @@ -18177,8 +14036,11 @@ type AdvertiserGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser group. This method supports -// patch semantics. +// Patch: Updates an existing advertiser group. This method supports patch +// semantics. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsPatchCall { c := &AdvertiserGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18188,23 +14050,21 @@ func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsPatchCall) Fields(s ...googleapi.Field) *AdvertiserGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsPatchCall) Context(ctx context.Context) *AdvertiserGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18213,18 +14073,12 @@ func (c *AdvertiserGroupsPatchCall) Header() http.Header { } func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18237,16 +14091,15 @@ func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.patch" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18254,17 +14107,17 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18277,45 +14130,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.update": +} type AdvertiserGroupsUpdateCall struct { s *Service @@ -18327,6 +14142,8 @@ type AdvertiserGroupsUpdateCall struct { } // Update: Updates an existing advertiser group. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsUpdateCall { c := &AdvertiserGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18335,23 +14152,21 @@ func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsUpdateCall) Fields(s ...googleapi.Field) *AdvertiserGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsUpdateCall) Context(ctx context.Context) *AdvertiserGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18360,18 +14175,12 @@ func (c *AdvertiserGroupsUpdateCall) Header() http.Header { } func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18384,16 +14193,15 @@ func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.update" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18401,17 +14209,17 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18424,37 +14232,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.get": +} type AdvertiserLandingPagesGetCall struct { s *Service @@ -18467,6 +14245,9 @@ type AdvertiserLandingPagesGetCall struct { } // Get: Gets one landing page by ID. +// +// - id: Landing page ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *AdvertiserLandingPagesGetCall { c := &AdvertiserLandingPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18475,33 +14256,29 @@ func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *Advertis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesGetCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserLandingPagesGetCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesGetCall) Context(ctx context.Context) *AdvertiserLandingPagesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18510,12 +14287,7 @@ func (c *AdvertiserLandingPagesGetCall) Header() http.Header { } func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18533,16 +14305,14 @@ func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.get" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18550,17 +14320,17 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -18573,42 +14343,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi return nil, err } return ret, nil - // { - // "description": "Gets one landing page by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.insert": +} type AdvertiserLandingPagesInsertCall struct { s *Service @@ -18620,6 +14355,8 @@ type AdvertiserLandingPagesInsertCall struct { } // Insert: Inserts a new landing page. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesInsertCall { c := &AdvertiserLandingPagesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18628,23 +14365,21 @@ func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *Lan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesInsertCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesInsertCall) Context(ctx context.Context) *AdvertiserLandingPagesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18653,18 +14388,12 @@ func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { } func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -18677,16 +14406,14 @@ func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.insert" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18694,17 +14421,17 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -18717,37 +14444,7 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La return nil, err } return ret, nil - // { - // "description": "Inserts a new landing page.", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserLandingPages.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.list": +} type AdvertiserLandingPagesListCall struct { s *Service @@ -18759,14 +14456,16 @@ type AdvertiserLandingPagesListCall struct { } // List: Retrieves a list of landing pages. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) List(profileId int64) *AdvertiserLandingPagesListCall { c := &AdvertiserLandingPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only landing pages that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// landing pages that belong to these advertisers. func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) *AdvertiserLandingPagesListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -18777,15 +14476,15 @@ func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) * } // Archived sets the optional parameter "archived": Select only archived -// landing pages. Don't set this field to select both archived and -// non-archived landing pages. +// landing pages. Don't set this field to select both archived and non-archived +// landing pages. func (c *AdvertiserLandingPagesListCall) Archived(archived bool) *AdvertiserLandingPagesListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// landing pages that are associated with these campaigns. +// CampaignIds sets the optional parameter "campaignIds": Select only landing +// pages that are associated with these campaigns. func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *AdvertiserLandingPagesListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -18795,8 +14494,8 @@ func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *Adve return c } -// Ids sets the optional parameter "ids": Select only landing pages with -// these IDs. +// Ids sets the optional parameter "ids": Select only landing pages with these +// IDs. func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPagesListCall { var ids_ []string for _, v := range ids { @@ -18806,8 +14505,8 @@ func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPag return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserLandingPagesListCall) MaxResults(maxResults int64) *AdvertiserLandingPagesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -18820,21 +14519,21 @@ func (c *AdvertiserLandingPagesListCall) PageToken(pageToken string) *Advertiser return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for landing pages by name or ID. Wildcards (*) are allowed. -// For example, "landingpage*2017" will return landing pages with names -// like "landingpage July 2017", "landingpage March 2017", or simply -// "landingpage 2017". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "landingpage" will match campaigns with -// name "my landingpage", "landingpage 2015", or simply "landingpage". +// SearchString sets the optional parameter "searchString": Allows searching +// for landing pages by name or ID. Wildcards (*) are allowed. For example, +// "landingpage*2017" will return landing pages with names like "landingpage +// July 2017", "landingpage March 2017", or simply "landingpage 2017". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "landingpage" will match +// campaigns with name "my landingpage", "landingpage 2015", or simply +// "landingpage". func (c *AdvertiserLandingPagesListCall) SearchString(searchString string) *AdvertiserLandingPagesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -18845,8 +14544,7 @@ func (c *AdvertiserLandingPagesListCall) SortField(sortField string) *Advertiser return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -18857,41 +14555,37 @@ func (c *AdvertiserLandingPagesListCall) SortOrder(sortOrder string) *Advertiser return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// landing pages that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only landing +// pages that belong to this subaccount. func (c *AdvertiserLandingPagesListCall) SubaccountId(subaccountId int64) *AdvertiserLandingPagesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesListCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserLandingPagesListCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesListCall) Context(ctx context.Context) *AdvertiserLandingPagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18900,12 +14594,7 @@ func (c *AdvertiserLandingPagesListCall) Header() http.Header { } func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18922,17 +14611,15 @@ func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.list" call. -// Exactly one of *AdvertiserLandingPagesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserLandingPagesListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserLandingPagesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*AdvertiserLandingPagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18940,17 +14627,17 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserLandingPagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18963,110 +14650,6 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve return nil, err } return ret, nil - // { - // "description": "Retrieves a list of landing pages.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only landing pages that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived landing pages. Don't set this field to select both archived and non-archived landing pages.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only landing pages that are associated with these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only landing pages with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for landing pages by name or ID. Wildcards (*) are allowed. For example, \"landingpage*2017\" will return landing pages with names like \"landingpage July 2017\", \"landingpage March 2017\", or simply \"landingpage 2017\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"landingpage\" will match campaigns with name \"my landingpage\", \"landingpage 2015\", or simply \"landingpage\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only landing pages that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "response": { - // "$ref": "AdvertiserLandingPagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -19074,7 +14657,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // The provided context supersedes any context provided to the Context method. func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*AdvertiserLandingPagesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -19090,8 +14673,6 @@ func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*Adve } } -// method id "dfareporting.advertiserLandingPages.patch": - type AdvertiserLandingPagesPatchCall struct { s *Service profileId int64 @@ -19103,6 +14684,9 @@ type AdvertiserLandingPagesPatchCall struct { // Patch: Updates an existing landing page. This method supports patch // semantics. +// +// - id: Landing page ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landingpage *LandingPage) *AdvertiserLandingPagesPatchCall { c := &AdvertiserLandingPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19112,23 +14696,21 @@ func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landing } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesPatchCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesPatchCall) Context(ctx context.Context) *AdvertiserLandingPagesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19137,18 +14719,12 @@ func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { } func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -19161,16 +14737,14 @@ func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.patch" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19178,17 +14752,17 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19201,45 +14775,7 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan return nil, err } return ret, nil - // { - // "description": "Updates an existing landing page. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserLandingPages.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.update": +} type AdvertiserLandingPagesUpdateCall struct { s *Service @@ -19251,6 +14787,8 @@ type AdvertiserLandingPagesUpdateCall struct { } // Update: Updates an existing landing page. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesUpdateCall { c := &AdvertiserLandingPagesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19259,23 +14797,21 @@ func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *Lan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesUpdateCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesUpdateCall) Context(ctx context.Context) *AdvertiserLandingPagesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19284,18 +14820,12 @@ func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { } func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -19308,16 +14838,14 @@ func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.update" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19325,17 +14853,17 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19348,37 +14876,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La return nil, err } return ret, nil - // { - // "description": "Updates an existing landing page.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserLandingPages.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.get": +} type AdvertisersGetCall struct { s *Service @@ -19391,6 +14889,9 @@ type AdvertisersGetCall struct { } // Get: Gets one advertiser by ID. +// +// - id: Advertiser ID. +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall { c := &AdvertisersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19399,33 +14900,29 @@ func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersGetCall) Fields(s ...googleapi.Field) *AdvertisersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19434,12 +14931,7 @@ func (c *AdvertisersGetCall) Header() http.Header { } func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19457,16 +14949,14 @@ func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.get" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19474,17 +14964,17 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -19497,42 +14987,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro return nil, err } return ret, nil - // { - // "description": "Gets one advertiser by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers/{id}", - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.insert": +} type AdvertisersInsertCall struct { s *Service @@ -19544,6 +14999,8 @@ type AdvertisersInsertCall struct { } // Insert: Inserts a new advertiser. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *AdvertisersInsertCall { c := &AdvertisersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19552,23 +15009,21 @@ func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertCall) Fields(s ...googleapi.Field) *AdvertisersInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertCall) Context(ctx context.Context) *AdvertisersInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19577,18 +15032,12 @@ func (c *AdvertisersInsertCall) Header() http.Header { } func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -19601,16 +15050,14 @@ func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.insert" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19618,17 +15065,17 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -19641,37 +15088,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser.", - // "httpMethod": "POST", - // "id": "dfareporting.advertisers.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.list": +} type AdvertisersListCall struct { s *Service @@ -19684,14 +15101,16 @@ type AdvertisersListCall struct { // List: Retrieves a list of advertisers, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) List(profileId int64) *AdvertisersListCall { c := &AdvertisersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only advertisers with these advertiser group IDs. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only advertisers with these advertiser group IDs. func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *AdvertisersListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -19702,8 +15121,8 @@ func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *A } // FloodlightConfigurationIds sets the optional parameter -// "floodlightConfigurationIds": Select only advertisers with these -// floodlight configuration IDs. +// "floodlightConfigurationIds": Select only advertisers with these floodlight +// configuration IDs. func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfigurationIds ...int64) *AdvertisersListCall { var floodlightConfigurationIds_ []string for _, v := range floodlightConfigurationIds { @@ -19713,8 +15132,8 @@ func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfiguration return c } -// Ids sets the optional parameter "ids": Select only advertisers with -// these IDs. +// Ids sets the optional parameter "ids": Select only advertisers with these +// IDs. func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { var ids_ []string for _, v := range ids { @@ -19725,22 +15144,22 @@ func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { } // IncludeAdvertisersWithoutGroupsOnly sets the optional parameter -// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which -// do not belong to any advertiser group. +// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which do not +// belong to any advertiser group. func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnly bool) *AdvertisersListCall { c.urlParams_.Set("includeAdvertisersWithoutGroupsOnly", fmt.Sprint(includeAdvertisersWithoutGroupsOnly)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertisersListCall) MaxResults(maxResults int64) *AdvertisersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OnlyParent sets the optional parameter "onlyParent": Select only -// advertisers which use another advertiser's floodlight configuration. +// OnlyParent sets the optional parameter "onlyParent": Select only advertisers +// which use another advertiser's floodlight configuration. func (c *AdvertisersListCall) OnlyParent(onlyParent bool) *AdvertisersListCall { c.urlParams_.Set("onlyParent", fmt.Sprint(onlyParent)) return c @@ -19753,21 +15172,21 @@ func (c *AdvertisersListCall) PageToken(pageToken string) *AdvertisersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser June 2015", "advertiser April 2015", or simply -// "advertiser 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "advertiser" will match objects with name "my advertiser", -// "advertiser 2015", or simply "advertiser". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser June +// 2015", "advertiser April 2015", or simply "advertiser 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "advertiser" will match +// objects with name "my advertiser", "advertiser 2015", or simply +// "advertiser". func (c *AdvertisersListCall) SearchString(searchString string) *AdvertisersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -19778,8 +15197,7 @@ func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -19790,8 +15208,8 @@ func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall { return c } -// Status sets the optional parameter "status": Select only advertisers -// with the specified status. +// Status sets the optional parameter "status": Select only advertisers with +// the specified status. // // Possible values: // @@ -19810,33 +15228,29 @@ func (c *AdvertisersListCall) SubaccountId(subaccountId int64) *AdvertisersListC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersListCall) Fields(s ...googleapi.Field) *AdvertisersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19845,12 +15259,7 @@ func (c *AdvertisersListCall) Header() http.Header { } func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19867,16 +15276,15 @@ func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.list" call. -// Exactly one of *AdvertisersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AdvertisersListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19884,17 +15292,17 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertisersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19907,128 +15315,6 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only advertisers with these advertiser group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightConfigurationIds": { - // "description": "Select only advertisers with these floodlight configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only advertisers with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "includeAdvertisersWithoutGroupsOnly": { - // "description": "Select only advertisers which do not belong to any advertiser group.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "onlyParent": { - // "description": "Select only advertisers which use another advertiser's floodlight configuration.", - // "location": "query", - // "type": "boolean" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser June 2015\", \"advertiser April 2015\", or simply \"advertiser 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertiser\" will match objects with name \"my advertiser\", \"advertiser 2015\", or simply \"advertiser\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "status": { - // "description": "Select only advertisers with the specified status.", - // "enum": [ - // "APPROVED", - // "ON_HOLD" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only advertisers with these subaccount IDs.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "response": { - // "$ref": "AdvertisersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -20036,7 +15322,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // The provided context supersedes any context provided to the Context method. func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20052,8 +15338,6 @@ func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersList } } -// method id "dfareporting.advertisers.patch": - type AdvertisersPatchCall struct { s *Service profileId int64 @@ -20063,8 +15347,10 @@ type AdvertisersPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser. This method supports patch -// semantics. +// Patch: Updates an existing advertiser. This method supports patch semantics. +// +// - id: Advertiser ID. +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advertiser) *AdvertisersPatchCall { c := &AdvertisersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20074,23 +15360,21 @@ func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersPatchCall) Fields(s ...googleapi.Field) *AdvertisersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20099,18 +15383,12 @@ func (c *AdvertisersPatchCall) Header() http.Header { } func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -20123,16 +15401,14 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.patch" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20140,17 +15416,17 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -20163,45 +15439,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertisers.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.update": +} type AdvertisersUpdateCall struct { s *Service @@ -20213,6 +15451,8 @@ type AdvertisersUpdateCall struct { } // Update: Updates an existing advertiser. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *AdvertisersUpdateCall { c := &AdvertisersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20221,23 +15461,21 @@ func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersUpdateCall) Fields(s ...googleapi.Field) *AdvertisersUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersUpdateCall) Context(ctx context.Context) *AdvertisersUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20246,18 +15484,12 @@ func (c *AdvertisersUpdateCall) Header() http.Header { } func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -20270,16 +15502,14 @@ func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.update" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20287,17 +15517,17 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -20310,37 +15540,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertisers.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.browsers.list": +} type BrowsersListCall struct { s *Service @@ -20352,6 +15552,8 @@ type BrowsersListCall struct { } // List: Retrieves a list of browsers. +// +// - profileId: User profile ID associated with this request. func (r *BrowsersService) List(profileId int64) *BrowsersListCall { c := &BrowsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20359,33 +15561,29 @@ func (r *BrowsersService) List(profileId int64) *BrowsersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BrowsersListCall) Fields(s ...googleapi.Field) *BrowsersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BrowsersListCall) IfNoneMatch(entityTag string) *BrowsersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BrowsersListCall) Context(ctx context.Context) *BrowsersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BrowsersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20394,12 +15592,7 @@ func (c *BrowsersListCall) Header() http.Header { } func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20416,16 +15609,15 @@ func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.browsers.list" call. -// Exactly one of *BrowsersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BrowsersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BrowsersListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20433,17 +15625,17 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BrowsersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20456,34 +15648,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of browsers.", - // "httpMethod": "GET", - // "id": "dfareporting.browsers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/browsers", - // "response": { - // "$ref": "BrowsersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.insert": +} type CampaignCreativeAssociationsInsertCall struct { s *Service @@ -20495,9 +15660,12 @@ type CampaignCreativeAssociationsInsertCall struct { header_ http.Header } -// Insert: Associates a creative with the specified campaign. This -// method creates a default ad with dimensions matching the creative in -// the campaign if such a default ad does not exist already. +// Insert: Associates a creative with the specified campaign. This method +// creates a default ad with dimensions matching the creative in the campaign +// if such a default ad does not exist already. +// +// - campaignId: Campaign ID in this association. +// - profileId: User profile ID associated with this request. func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId int64, campaigncreativeassociation *CampaignCreativeAssociation) *CampaignCreativeAssociationsInsertCall { c := &CampaignCreativeAssociationsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20507,23 +15675,21 @@ func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsInsertCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsInsertCall) Context(ctx context.Context) *CampaignCreativeAssociationsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20532,18 +15698,12 @@ func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { } func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaigncreativeassociation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") @@ -20557,16 +15717,15 @@ func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Re "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.insert" call. -// Exactly one of *CampaignCreativeAssociation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CampaignCreativeAssociation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CampaignCreativeAssociation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20574,17 +15733,17 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociation{ ServerResponse: googleapi.ServerResponse{ @@ -20597,45 +15756,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.", - // "httpMethod": "POST", - // "id": "dfareporting.campaignCreativeAssociations.insert", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "request": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "response": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.list": +} type CampaignCreativeAssociationsListCall struct { s *Service @@ -20647,8 +15768,11 @@ type CampaignCreativeAssociationsListCall struct { header_ http.Header } -// List: Retrieves the list of creative IDs associated with the -// specified campaign. This method supports paging. +// List: Retrieves the list of creative IDs associated with the specified +// campaign. This method supports paging. +// +// - campaignId: Campaign ID in this association. +// - profileId: User profile ID associated with this request. func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId int64) *CampaignCreativeAssociationsListCall { c := &CampaignCreativeAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20656,8 +15780,8 @@ func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId i return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignCreativeAssociationsListCall) MaxResults(maxResults int64) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -20670,8 +15794,7 @@ func (c *CampaignCreativeAssociationsListCall) PageToken(pageToken string) *Camp return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -20683,33 +15806,29 @@ func (c *CampaignCreativeAssociationsListCall) SortOrder(sortOrder string) *Camp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsListCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignCreativeAssociationsListCall) IfNoneMatch(entityTag string) *CampaignCreativeAssociationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsListCall) Context(ctx context.Context) *CampaignCreativeAssociationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20718,12 +15837,7 @@ func (c *CampaignCreativeAssociationsListCall) Header() http.Header { } func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20741,18 +15855,15 @@ func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Resp "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.list" call. -// Exactly one of *CampaignCreativeAssociationsListResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20760,17 +15871,17 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20783,67 +15894,6 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.campaignCreativeAssociations.list", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "response": { - // "$ref": "CampaignCreativeAssociationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -20851,7 +15901,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func(*CampaignCreativeAssociationsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20867,8 +15917,6 @@ func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func } } -// method id "dfareporting.campaigns.get": - type CampaignsGetCall struct { s *Service profileId int64 @@ -20880,6 +15928,9 @@ type CampaignsGetCall struct { } // Get: Gets one campaign by ID. +// +// - id: Campaign ID. +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { c := &CampaignsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20888,33 +15939,29 @@ func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsGetCall) Fields(s ...googleapi.Field) *CampaignsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsGetCall) IfNoneMatch(entityTag string) *CampaignsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsGetCall) Context(ctx context.Context) *CampaignsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20923,12 +15970,7 @@ func (c *CampaignsGetCall) Header() http.Header { } func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20946,16 +15988,14 @@ func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.get" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20963,17 +16003,17 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -20986,42 +16026,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { return nil, err } return ret, nil - // { - // "description": "Gets one campaign by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{id}", - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.insert": +} type CampaignsInsertCall struct { s *Service @@ -21033,6 +16038,8 @@ type CampaignsInsertCall struct { } // Insert: Inserts a new campaign. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Insert(profileId int64, campaign *Campaign) *CampaignsInsertCall { c := &CampaignsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21041,23 +16048,21 @@ func (r *CampaignsService) Insert(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsInsertCall) Fields(s ...googleapi.Field) *CampaignsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsInsertCall) Context(ctx context.Context) *CampaignsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21066,18 +16071,12 @@ func (c *CampaignsInsertCall) Header() http.Header { } func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -21090,16 +16089,14 @@ func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.insert" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21107,17 +16104,17 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21130,37 +16127,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Inserts a new campaign.", - // "httpMethod": "POST", - // "id": "dfareporting.campaigns.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.list": +} type CampaignsListCall struct { s *Service @@ -21171,17 +16138,18 @@ type CampaignsListCall struct { header_ http.Header } -// List: Retrieves a list of campaigns, possibly filtered. This method -// supports paging. +// List: Retrieves a list of campaigns, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) List(profileId int64) *CampaignsListCall { c := &CampaignsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only campaigns whose advertisers belong to these advertiser -// groups. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only campaigns whose advertisers belong to these advertiser groups. func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *CampaignsListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -21191,8 +16159,8 @@ func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *Cam return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only campaigns that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// campaigns that belong to these advertisers. func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -21203,23 +16171,23 @@ func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsList } // Archived sets the optional parameter "archived": Select only archived -// campaigns. Don't set this field to select both archived and -// non-archived campaigns. +// campaigns. Don't set this field to select both archived and non-archived +// campaigns. func (c *CampaignsListCall) Archived(archived bool) *CampaignsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } // AtLeastOneOptimizationActivity sets the optional parameter -// "atLeastOneOptimizationActivity": Select only campaigns that have at -// least one optimization activity. +// "atLeastOneOptimizationActivity": Select only campaigns that have at least +// one optimization activity. func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivity bool) *CampaignsListCall { c.urlParams_.Set("atLeastOneOptimizationActivity", fmt.Sprint(atLeastOneOptimizationActivity)) return c } -// ExcludedIds sets the optional parameter "excludedIds": Exclude -// campaigns with these IDs. +// ExcludedIds sets the optional parameter "excludedIds": Exclude campaigns +// with these IDs. func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall { var excludedIds_ []string for _, v := range excludedIds { @@ -21229,8 +16197,7 @@ func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall return c } -// Ids sets the optional parameter "ids": Select only campaigns with -// these IDs. +// Ids sets the optional parameter "ids": Select only campaigns with these IDs. func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { var ids_ []string for _, v := range ids { @@ -21240,16 +16207,15 @@ func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignsListCall) MaxResults(maxResults int64) *CampaignsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only campaigns that have overridden -// this event tag ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only campaigns that have overridden this event tag ID. func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagId int64) *CampaignsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -21262,21 +16228,20 @@ func (c *CampaignsListCall) PageToken(pageToken string) *CampaignsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for campaigns by name or ID. Wildcards (*) are allowed. For -// example, "campaign*2015" will return campaigns with names like -// "campaign June 2015", "campaign April 2015", or simply "campaign -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "campaign" will match campaigns with name "my campaign", "campaign -// 2015", or simply "campaign". +// SearchString sets the optional parameter "searchString": Allows searching +// for campaigns by name or ID. Wildcards (*) are allowed. For example, +// "campaign*2015" will return campaigns with names like "campaign June 2015", +// "campaign April 2015", or simply "campaign 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "campaign" will match campaigns with name "my +// campaign", "campaign 2015", or simply "campaign". func (c *CampaignsListCall) SearchString(searchString string) *CampaignsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -21287,8 +16252,7 @@ func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -21307,33 +16271,29 @@ func (c *CampaignsListCall) SubaccountId(subaccountId int64) *CampaignsListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsListCall) Fields(s ...googleapi.Field) *CampaignsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsListCall) IfNoneMatch(entityTag string) *CampaignsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsListCall) Context(ctx context.Context) *CampaignsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21342,12 +16302,7 @@ func (c *CampaignsListCall) Header() http.Header { } func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21364,16 +16319,15 @@ func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.list" call. -// Exactly one of *CampaignsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CampaignsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21381,17 +16335,17 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21404,128 +16358,6 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only campaigns whose advertisers belong to these advertiser groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "advertiserIds": { - // "description": "Select only campaigns that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.", - // "location": "query", - // "type": "boolean" - // }, - // "atLeastOneOptimizationActivity": { - // "description": "Select only campaigns that have at least one optimization activity.", - // "location": "query", - // "type": "boolean" - // }, - // "excludedIds": { - // "description": "Exclude campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only campaigns that have overridden this event tag ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, \"campaign*2015\" will return campaigns with names like \"campaign June 2015\", \"campaign April 2015\", or simply \"campaign 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"campaign\" will match campaigns with name \"my campaign\", \"campaign 2015\", or simply \"campaign\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only campaigns that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "response": { - // "$ref": "CampaignsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -21533,7 +16365,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // The provided context supersedes any context provided to the Context method. func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21549,8 +16381,6 @@ func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResp } } -// method id "dfareporting.campaigns.patch": - type CampaignsPatchCall struct { s *Service profileId int64 @@ -21560,8 +16390,10 @@ type CampaignsPatchCall struct { header_ http.Header } -// Patch: Updates an existing campaign. This method supports patch -// semantics. +// Patch: Updates an existing campaign. This method supports patch semantics. +// +// - id: Campaign ID. +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) *CampaignsPatchCall { c := &CampaignsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21571,23 +16403,21 @@ func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsPatchCall) Fields(s ...googleapi.Field) *CampaignsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsPatchCall) Context(ctx context.Context) *CampaignsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21596,18 +16426,12 @@ func (c *CampaignsPatchCall) Header() http.Header { } func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -21620,16 +16444,14 @@ func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.patch" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21637,17 +16459,17 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21660,45 +16482,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.campaigns.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.update": +} type CampaignsUpdateCall struct { s *Service @@ -21710,6 +16494,8 @@ type CampaignsUpdateCall struct { } // Update: Updates an existing campaign. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *CampaignsUpdateCall { c := &CampaignsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21718,23 +16504,21 @@ func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsUpdateCall) Fields(s ...googleapi.Field) *CampaignsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsUpdateCall) Context(ctx context.Context) *CampaignsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21743,18 +16527,12 @@ func (c *CampaignsUpdateCall) Header() http.Header { } func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -21767,16 +16545,14 @@ func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.update" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21784,17 +16560,17 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21807,37 +16583,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign.", - // "httpMethod": "PUT", - // "id": "dfareporting.campaigns.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.get": +} type ChangeLogsGetCall struct { s *Service @@ -21850,6 +16596,9 @@ type ChangeLogsGetCall struct { } // Get: Gets one change log by ID. +// +// - id: Change log ID. +// - profileId: User profile ID associated with this request. func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { c := &ChangeLogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21858,33 +16607,29 @@ func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsGetCall) Fields(s ...googleapi.Field) *ChangeLogsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsGetCall) IfNoneMatch(entityTag string) *ChangeLogsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsGetCall) Context(ctx context.Context) *ChangeLogsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21893,12 +16638,7 @@ func (c *ChangeLogsGetCall) Header() http.Header { } func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21916,16 +16656,14 @@ func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.get" call. -// Exactly one of *ChangeLog or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ChangeLog.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLog.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21933,17 +16671,17 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLog{ ServerResponse: googleapi.ServerResponse{ @@ -21956,42 +16694,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) return nil, err } return ret, nil - // { - // "description": "Gets one change log by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Change log ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs/{id}", - // "response": { - // "$ref": "ChangeLog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.list": +} type ChangeLogsListCall struct { s *Service @@ -22003,14 +16706,16 @@ type ChangeLogsListCall struct { } // List: Retrieves a list of change logs. This method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *ChangeLogsService) List(profileId int64) *ChangeLogsListCall { c := &ChangeLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Action sets the optional parameter "action": Select only change logs -// with the specified action. +// Action sets the optional parameter "action": Select only change logs with +// the specified action. // // Possible values: // @@ -22036,8 +16741,8 @@ func (c *ChangeLogsListCall) Action(action string) *ChangeLogsListCall { return c } -// Ids sets the optional parameter "ids": Select only change logs with -// these IDs. +// Ids sets the optional parameter "ids": Select only change logs with these +// IDs. func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { var ids_ []string for _, v := range ids { @@ -22047,41 +16752,39 @@ func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { return c } -// MaxChangeTime sets the optional parameter "maxChangeTime": Select -// only change logs whose change time is before the specified -// maxChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MaxChangeTime sets the optional parameter "maxChangeTime": Select only +// change logs whose change time is before the specified maxChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("maxChangeTime", maxChangeTime) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ChangeLogsListCall) MaxResults(maxResults int64) *ChangeLogsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// MinChangeTime sets the optional parameter "minChangeTime": Select -// only change logs whose change time is before the specified -// minChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MinChangeTime sets the optional parameter "minChangeTime": Select only +// change logs whose change time is before the specified minChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MinChangeTime(minChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("minChangeTime", minChangeTime) return c } -// ObjectIds sets the optional parameter "objectIds": Select only change -// logs with these object IDs. +// ObjectIds sets the optional parameter "objectIds": Select only change logs +// with these object IDs. func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { var objectIds_ []string for _, v := range objectIds { @@ -22091,8 +16794,8 @@ func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { return c } -// ObjectType sets the optional parameter "objectType": Select only -// change logs with the specified object type. +// ObjectType sets the optional parameter "objectType": Select only change logs +// with the specified object type. // // Possible values: // @@ -22148,16 +16851,15 @@ func (c *ChangeLogsListCall) PageToken(pageToken string) *ChangeLogsListCall { return c } -// SearchString sets the optional parameter "searchString": Select only -// change logs whose object ID, user name, old or new values match the -// search string. +// SearchString sets the optional parameter "searchString": Select only change +// logs whose object ID, user name, old or new values match the search string. func (c *ChangeLogsListCall) SearchString(searchString string) *ChangeLogsListCall { c.urlParams_.Set("searchString", searchString) return c } -// UserProfileIds sets the optional parameter "userProfileIds": Select -// only change logs with these user profile IDs. +// UserProfileIds sets the optional parameter "userProfileIds": Select only +// change logs with these user profile IDs. func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogsListCall { var userProfileIds_ []string for _, v := range userProfileIds { @@ -22168,33 +16870,29 @@ func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogs } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsListCall) Fields(s ...googleapi.Field) *ChangeLogsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsListCall) IfNoneMatch(entityTag string) *ChangeLogsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsListCall) Context(ctx context.Context) *ChangeLogsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22203,12 +16901,7 @@ func (c *ChangeLogsListCall) Header() http.Header { } func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22225,16 +16918,15 @@ func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.list" call. -// Exactly one of *ChangeLogsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ChangeLogsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLogsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22242,17 +16934,17 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLogsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22265,213 +16957,6 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of change logs. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "action": { - // "description": "Select only change logs with the specified action.", - // "enum": [ - // "ACTION_ADD", - // "ACTION_ASSIGN", - // "ACTION_ASSOCIATE", - // "ACTION_CREATE", - // "ACTION_DELETE", - // "ACTION_DISABLE", - // "ACTION_EMAIL_TAGS", - // "ACTION_ENABLE", - // "ACTION_LINK", - // "ACTION_MARK_AS_DEFAULT", - // "ACTION_PUSH", - // "ACTION_REMOVE", - // "ACTION_SEND", - // "ACTION_SHARE", - // "ACTION_UNASSIGN", - // "ACTION_UNLINK", - // "ACTION_UPDATE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only change logs with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxChangeTime": { - // "description": "Select only change logs whose change time is before the specified maxChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "minChangeTime": { - // "description": "Select only change logs whose change time is before the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "objectIds": { - // "description": "Select only change logs with these object IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Select only change logs with the specified object type.", - // "enum": [ - // "OBJECT_ACCOUNT", - // "OBJECT_ACCOUNT_BILLING_FEATURE", - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_ADVERTISER_GROUP", - // "OBJECT_BILLING_ACCOUNT_GROUP", - // "OBJECT_BILLING_FEATURE", - // "OBJECT_BILLING_MINIMUM_FEE", - // "OBJECT_BILLING_PROFILE", - // "OBJECT_CAMPAIGN", - // "OBJECT_CONTENT_CATEGORY", - // "OBJECT_CREATIVE", - // "OBJECT_CREATIVE_ASSET", - // "OBJECT_CREATIVE_BUNDLE", - // "OBJECT_CREATIVE_FIELD", - // "OBJECT_CREATIVE_GROUP", - // "OBJECT_DFA_SITE", - // "OBJECT_EVENT_TAG", - // "OBJECT_FLOODLIGHT_ACTIVITY_GROUP", - // "OBJECT_FLOODLIGHT_ACTVITY", - // "OBJECT_FLOODLIGHT_CONFIGURATION", - // "OBJECT_FLOODLIGHT_DV360_LINK", - // "OBJECT_INSTREAM_CREATIVE", - // "OBJECT_LANDING_PAGE", - // "OBJECT_MEDIA_ORDER", - // "OBJECT_PLACEMENT", - // "OBJECT_PLACEMENT_STRATEGY", - // "OBJECT_PLAYSTORE_LINK", - // "OBJECT_PROVIDED_LIST_CLIENT", - // "OBJECT_RATE_CARD", - // "OBJECT_REMARKETING_LIST", - // "OBJECT_RICHMEDIA_CREATIVE", - // "OBJECT_SD_SITE", - // "OBJECT_SEARCH_LIFT_STUDY", - // "OBJECT_SIZE", - // "OBJECT_SUBACCOUNT", - // "OBJECT_TARGETING_TEMPLATE", - // "OBJECT_USER_PROFILE", - // "OBJECT_USER_PROFILE_FILTER", - // "OBJECT_USER_ROLE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Select only change logs whose object ID, user name, old or new values match the search string.", - // "location": "query", - // "type": "string" - // }, - // "userProfileIds": { - // "description": "Select only change logs with these user profile IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs", - // "response": { - // "$ref": "ChangeLogsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -22479,7 +16964,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // The provided context supersedes any context provided to the Context method. func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -22495,8 +16980,6 @@ func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListRe } } -// method id "dfareporting.cities.list": - type CitiesListCall struct { s *Service profileId int64 @@ -22507,14 +16990,16 @@ type CitiesListCall struct { } // List: Retrieves a list of cities, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *CitiesService) List(profileId int64) *CitiesListCall { c := &CitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// CountryDartIds sets the optional parameter "countryDartIds": Select -// only cities from these countries. +// CountryDartIds sets the optional parameter "countryDartIds": Select only +// cities from these countries. func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall { var countryDartIds_ []string for _, v := range countryDartIds { @@ -22524,8 +17009,8 @@ func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall return c } -// DartIds sets the optional parameter "dartIds": Select only cities -// with these DART IDs. +// DartIds sets the optional parameter "dartIds": Select only cities with these +// DART IDs. func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { var dartIds_ []string for _, v := range dartIds { @@ -22535,15 +17020,15 @@ func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { return c } -// NamePrefix sets the optional parameter "namePrefix": Select only -// cities with names starting with this prefix. +// NamePrefix sets the optional parameter "namePrefix": Select only cities with +// names starting with this prefix. func (c *CitiesListCall) NamePrefix(namePrefix string) *CitiesListCall { c.urlParams_.Set("namePrefix", namePrefix) return c } -// RegionDartIds sets the optional parameter "regionDartIds": Select -// only cities from these regions. +// RegionDartIds sets the optional parameter "regionDartIds": Select only +// cities from these regions. func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { var regionDartIds_ []string for _, v := range regionDartIds { @@ -22554,33 +17039,29 @@ func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CitiesListCall) Fields(s ...googleapi.Field) *CitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CitiesListCall) IfNoneMatch(entityTag string) *CitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CitiesListCall) Context(ctx context.Context) *CitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22589,12 +17070,7 @@ func (c *CitiesListCall) Header() http.Header { } func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22611,16 +17087,15 @@ func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.cities.list" call. -// Exactly one of *CitiesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CitiesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CitiesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22628,17 +17103,17 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22651,60 +17126,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of cities, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.cities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "countryDartIds": { - // "description": "Select only cities from these countries.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dartIds": { - // "description": "Select only cities with these DART IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "namePrefix": { - // "description": "Select only cities with names starting with this prefix.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "regionDartIds": { - // "description": "Select only cities from these regions.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/cities", - // "response": { - // "$ref": "CitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.get": +} type ConnectionTypesGetCall struct { s *Service @@ -22717,6 +17139,9 @@ type ConnectionTypesGetCall struct { } // Get: Gets one connection type by ID. +// +// - id: Connection type ID. +// - profileId: User profile ID associated with this request. func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypesGetCall { c := &ConnectionTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22725,33 +17150,29 @@ func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypes } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesGetCall) Fields(s ...googleapi.Field) *ConnectionTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesGetCall) IfNoneMatch(entityTag string) *ConnectionTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesGetCall) Context(ctx context.Context) *ConnectionTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22760,12 +17181,7 @@ func (c *ConnectionTypesGetCall) Header() http.Header { } func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22783,16 +17199,14 @@ func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.get" call. -// Exactly one of *ConnectionType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ConnectionType.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConnectionType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22800,17 +17214,17 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionType{ ServerResponse: googleapi.ServerResponse{ @@ -22823,42 +17237,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy return nil, err } return ret, nil - // { - // "description": "Gets one connection type by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Connection type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes/{id}", - // "response": { - // "$ref": "ConnectionType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.list": +} type ConnectionTypesListCall struct { s *Service @@ -22870,6 +17249,8 @@ type ConnectionTypesListCall struct { } // List: Retrieves a list of connection types. +// +// - profileId: User profile ID associated with this request. func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall { c := &ConnectionTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22877,33 +17258,29 @@ func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesListCall) Fields(s ...googleapi.Field) *ConnectionTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesListCall) IfNoneMatch(entityTag string) *ConnectionTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesListCall) Context(ctx context.Context) *ConnectionTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22912,12 +17289,7 @@ func (c *ConnectionTypesListCall) Header() http.Header { } func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22934,16 +17306,15 @@ func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.list" call. -// Exactly one of *ConnectionTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ConnectionTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ConnectionTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22951,17 +17322,17 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22974,34 +17345,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT return nil, err } return ret, nil - // { - // "description": "Retrieves a list of connection types.", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes", - // "response": { - // "$ref": "ConnectionTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.delete": +} type ContentCategoriesDeleteCall struct { s *Service @@ -23013,6 +17357,9 @@ type ContentCategoriesDeleteCall struct { } // Delete: Deletes an existing content category. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCategoriesDeleteCall { c := &ContentCategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23021,23 +17368,21 @@ func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesDeleteCall) Fields(s ...googleapi.Field) *ContentCategoriesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesDeleteCall) Context(ctx context.Context) *ContentCategoriesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23046,12 +17391,7 @@ func (c *ContentCategoriesDeleteCall) Header() http.Header { } func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -23066,7 +17406,7 @@ func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.delete" call. @@ -23078,42 +17418,10 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing content category.", - // "httpMethod": "DELETE", - // "id": "dfareporting.contentCategories.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.get": +} type ContentCategoriesGetCall struct { s *Service @@ -23126,6 +17434,9 @@ type ContentCategoriesGetCall struct { } // Get: Gets one content category by ID. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCategoriesGetCall { c := &ContentCategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23134,33 +17445,29 @@ func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCatego } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesGetCall) Fields(s ...googleapi.Field) *ContentCategoriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesGetCall) IfNoneMatch(entityTag string) *ContentCategoriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesGetCall) Context(ctx context.Context) *ContentCategoriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23169,12 +17476,7 @@ func (c *ContentCategoriesGetCall) Header() http.Header { } func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23192,16 +17494,15 @@ func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.get" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23209,17 +17510,17 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23232,42 +17533,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat return nil, err } return ret, nil - // { - // "description": "Gets one content category by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.insert": +} type ContentCategoriesInsertCall struct { s *Service @@ -23279,6 +17545,8 @@ type ContentCategoriesInsertCall struct { } // Insert: Inserts a new content category. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *ContentCategory) *ContentCategoriesInsertCall { c := &ContentCategoriesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23287,23 +17555,21 @@ func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesInsertCall) Fields(s ...googleapi.Field) *ContentCategoriesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesInsertCall) Context(ctx context.Context) *ContentCategoriesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23312,18 +17578,12 @@ func (c *ContentCategoriesInsertCall) Header() http.Header { } func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -23336,16 +17596,15 @@ func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.insert" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23353,17 +17612,17 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23376,37 +17635,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Inserts a new content category.", - // "httpMethod": "POST", - // "id": "dfareporting.contentCategories.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.list": +} type ContentCategoriesListCall struct { s *Service @@ -23417,16 +17646,18 @@ type ContentCategoriesListCall struct { header_ http.Header } -// List: Retrieves a list of content categories, possibly filtered. This -// method supports paging. +// List: Retrieves a list of content categories, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListCall { c := &ContentCategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only content categories -// with these IDs. +// Ids sets the optional parameter "ids": Select only content categories with +// these IDs. func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall { var ids_ []string for _, v := range ids { @@ -23436,8 +17667,8 @@ func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ContentCategoriesListCall) MaxResults(maxResults int64) *ContentCategoriesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -23450,22 +17681,21 @@ func (c *ContentCategoriesListCall) PageToken(pageToken string) *ContentCategori return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "contentcategory*2015" will return objects with names like -// "contentcategory June 2015", "contentcategory April 2015", or simply -// "contentcategory 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "contentcategory" will match objects with -// name "my contentcategory", "contentcategory 2015", or simply -// "contentcategory". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "contentcategory*2015" will return objects with names like "contentcategory +// June 2015", "contentcategory April 2015", or simply "contentcategory 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "contentcategory" will +// match objects with name "my contentcategory", "contentcategory 2015", or +// simply "contentcategory". func (c *ContentCategoriesListCall) SearchString(searchString string) *ContentCategoriesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -23476,8 +17706,7 @@ func (c *ContentCategoriesListCall) SortField(sortField string) *ContentCategori return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -23489,33 +17718,29 @@ func (c *ContentCategoriesListCall) SortOrder(sortOrder string) *ContentCategori } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesListCall) Fields(s ...googleapi.Field) *ContentCategoriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesListCall) IfNoneMatch(entityTag string) *ContentCategoriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesListCall) Context(ctx context.Context) *ContentCategoriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23524,12 +17749,7 @@ func (c *ContentCategoriesListCall) Header() http.Header { } func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23546,16 +17766,15 @@ func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.list" call. -// Exactly one of *ContentCategoriesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ContentCategoriesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategoriesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCategoriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23563,17 +17782,17 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategoriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23586,85 +17805,6 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa return nil, err } return ret, nil - // { - // "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only content categories with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"contentcategory*2015\" will return objects with names like \"contentcategory June 2015\", \"contentcategory April 2015\", or simply \"contentcategory 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"contentcategory\" will match objects with name \"my contentcategory\", \"contentcategory 2015\", or simply \"contentcategory\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "response": { - // "$ref": "ContentCategoriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -23672,7 +17812,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // The provided context supersedes any context provided to the Context method. func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCategoriesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -23688,8 +17828,6 @@ func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCa } } -// method id "dfareporting.contentCategories.patch": - type ContentCategoriesPatchCall struct { s *Service profileId int64 @@ -23699,8 +17837,11 @@ type ContentCategoriesPatchCall struct { header_ http.Header } -// Patch: Updates an existing content category. This method supports -// patch semantics. +// Patch: Updates an existing content category. This method supports patch +// semantics. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcategory *ContentCategory) *ContentCategoriesPatchCall { c := &ContentCategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23710,23 +17851,21 @@ func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcateg } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesPatchCall) Fields(s ...googleapi.Field) *ContentCategoriesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesPatchCall) Context(ctx context.Context) *ContentCategoriesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23735,18 +17874,12 @@ func (c *ContentCategoriesPatchCall) Header() http.Header { } func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -23759,16 +17892,15 @@ func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.patch" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23776,17 +17908,17 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23799,45 +17931,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC return nil, err } return ret, nil - // { - // "description": "Updates an existing content category. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.contentCategories.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.update": +} type ContentCategoriesUpdateCall struct { s *Service @@ -23849,6 +17943,8 @@ type ContentCategoriesUpdateCall struct { } // Update: Updates an existing content category. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Update(profileId int64, contentcategory *ContentCategory) *ContentCategoriesUpdateCall { c := &ContentCategoriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23857,23 +17953,21 @@ func (r *ContentCategoriesService) Update(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesUpdateCall) Fields(s ...googleapi.Field) *ContentCategoriesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesUpdateCall) Context(ctx context.Context) *ContentCategoriesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23882,18 +17976,12 @@ func (c *ContentCategoriesUpdateCall) Header() http.Header { } func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -23906,16 +17994,15 @@ func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.update" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23923,17 +18010,17 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23946,37 +18033,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Updates an existing content category.", - // "httpMethod": "PUT", - // "id": "dfareporting.contentCategories.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.conversions.batchinsert": +} type ConversionsBatchinsertCall struct { s *Service @@ -23988,6 +18045,8 @@ type ConversionsBatchinsertCall struct { } // Batchinsert: Inserts conversions. +// +// - profileId: User profile ID associated with this request. func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsertrequest *ConversionsBatchInsertRequest) *ConversionsBatchinsertCall { c := &ConversionsBatchinsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23996,23 +18055,21 @@ func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchinsertCall) Fields(s ...googleapi.Field) *ConversionsBatchinsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchinsertCall) Context(ctx context.Context) *ConversionsBatchinsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchinsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24021,18 +18078,12 @@ func (c *ConversionsBatchinsertCall) Header() http.Header { } func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchinsertrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchinsert") @@ -24045,16 +18096,15 @@ func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchinsert" call. -// Exactly one of *ConversionsBatchInsertResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchInsertResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchInsertResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchInsertResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24062,17 +18112,17 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchInsertResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24085,37 +18135,7 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Inserts conversions.", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchinsert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchinsert", - // "request": { - // "$ref": "ConversionsBatchInsertRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchInsertResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.conversions.batchupdate": +} type ConversionsBatchupdateCall struct { s *Service @@ -24127,6 +18147,8 @@ type ConversionsBatchupdateCall struct { } // Batchupdate: Updates existing conversions. +// +// - profileId: User profile ID associated with this request. func (r *ConversionsService) Batchupdate(profileId int64, conversionsbatchupdaterequest *ConversionsBatchUpdateRequest) *ConversionsBatchupdateCall { c := &ConversionsBatchupdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24135,23 +18157,21 @@ func (r *ConversionsService) Batchupdate(profileId int64, conversionsbatchupdate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchupdateCall) Fields(s ...googleapi.Field) *ConversionsBatchupdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchupdateCall) Context(ctx context.Context) *ConversionsBatchupdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchupdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24160,18 +18180,12 @@ func (c *ConversionsBatchupdateCall) Header() http.Header { } func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchupdaterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchupdate") @@ -24184,16 +18198,15 @@ func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchupdate" call. -// Exactly one of *ConversionsBatchUpdateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchUpdateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchUpdateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchUpdateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24201,17 +18214,17 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchUpdateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24224,37 +18237,7 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Updates existing conversions.", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchupdate", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchupdate", - // "request": { - // "$ref": "ConversionsBatchUpdateRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.countries.get": +} type CountriesGetCall struct { s *Service @@ -24267,6 +18250,9 @@ type CountriesGetCall struct { } // Get: Gets one country by ID. +// +// - dartId: Country DART ID. +// - profileId: User profile ID associated with this request. func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall { c := &CountriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24275,33 +18261,29 @@ func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesGetCall) Fields(s ...googleapi.Field) *CountriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesGetCall) IfNoneMatch(entityTag string) *CountriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesGetCall) Context(ctx context.Context) *CountriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24310,12 +18292,7 @@ func (c *CountriesGetCall) Header() http.Header { } func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24333,16 +18310,14 @@ func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.get" call. -// Exactly one of *Country or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Country.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Country.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24350,17 +18325,17 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Country{ ServerResponse: googleapi.ServerResponse{ @@ -24373,42 +18348,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { return nil, err } return ret, nil - // { - // "description": "Gets one country by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.countries.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Country DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries/{dartId}", - // "response": { - // "$ref": "Country" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.countries.list": +} type CountriesListCall struct { s *Service @@ -24420,6 +18360,8 @@ type CountriesListCall struct { } // List: Retrieves a list of countries. +// +// - profileId: User profile ID associated with this request. func (r *CountriesService) List(profileId int64) *CountriesListCall { c := &CountriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24427,33 +18369,29 @@ func (r *CountriesService) List(profileId int64) *CountriesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesListCall) Fields(s ...googleapi.Field) *CountriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesListCall) IfNoneMatch(entityTag string) *CountriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesListCall) Context(ctx context.Context) *CountriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24462,12 +18400,7 @@ func (c *CountriesListCall) Header() http.Header { } func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24484,16 +18417,15 @@ func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.list" call. -// Exactly one of *CountriesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CountriesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CountriesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24501,17 +18433,17 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CountriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24524,34 +18456,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of countries.", - // "httpMethod": "GET", - // "id": "dfareporting.countries.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries", - // "response": { - // "$ref": "CountriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeAssets.insert": +} type CreativeAssetsInsertCall struct { s *Service @@ -24565,6 +18470,9 @@ type CreativeAssetsInsertCall struct { } // Insert: Inserts a new creative asset. +// +// - advertiserId: Advertiser ID of this creative. This is a required field. +// - profileId: User profile ID associated with this request. func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall { c := &CreativeAssetsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24573,54 +18481,51 @@ func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, crea return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeAssetsInsertCall) Fields(s ...googleapi.Field) *CreativeAssetsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsInsertCall { @@ -24628,8 +18533,8 @@ func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsI return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeAssetsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24638,18 +18543,12 @@ func (c *CreativeAssetsInsertCall) Header() http.Header { } func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativeassetmetadata) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") @@ -24674,16 +18573,15 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeAssets.insert" call. -// Exactly one of *CreativeAssetMetadata or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeAssetMetadata.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeAssetMetadata.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24691,17 +18589,17 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -24717,7 +18615,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &CreativeAssetMetadata{ @@ -24731,62 +18629,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs return nil, err } return ret, nil - // { - // "description": "Inserts a new creative asset.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeAssets.insert", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "maxSize": "1024MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/dfareporting/v3.1/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/dfareporting/v3.1/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // } - // } - // }, - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Advertiser ID of this creative. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - // "request": { - // "$ref": "CreativeAssetMetadata" - // }, - // "response": { - // "$ref": "CreativeAssetMetadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "dfareporting.creativeFieldValues.delete": +} type CreativeFieldValuesDeleteCall struct { s *Service @@ -24799,6 +18642,10 @@ type CreativeFieldValuesDeleteCall struct { } // Delete: Deletes an existing creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesDeleteCall { c := &CreativeFieldValuesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24808,23 +18655,21 @@ func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldValuesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesDeleteCall) Context(ctx context.Context) *CreativeFieldValuesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24833,12 +18678,7 @@ func (c *CreativeFieldValuesDeleteCall) Header() http.Header { } func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -24854,7 +18694,7 @@ func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, e "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.delete" call. @@ -24866,50 +18706,10 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field value.", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFieldValues.delete", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.get": +} type CreativeFieldValuesGetCall struct { s *Service @@ -24923,6 +18723,10 @@ type CreativeFieldValuesGetCall struct { } // Get: Gets one creative field value by ID. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesGetCall { c := &CreativeFieldValuesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24932,33 +18736,29 @@ func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesGetCall) Fields(s ...googleapi.Field) *CreativeFieldValuesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesGetCall) IfNoneMatch(entityTag string) *CreativeFieldValuesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesGetCall) Context(ctx context.Context) *CreativeFieldValuesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24967,12 +18767,7 @@ func (c *CreativeFieldValuesGetCall) Header() http.Header { } func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24991,16 +18786,15 @@ func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, erro "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.get" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25008,17 +18802,17 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25031,50 +18825,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative return nil, err } return ret, nil - // { - // "description": "Gets one creative field value by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.get", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.insert": +} type CreativeFieldValuesInsertCall struct { s *Service @@ -25087,6 +18838,9 @@ type CreativeFieldValuesInsertCall struct { } // Insert: Inserts a new creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesInsertCall { c := &CreativeFieldValuesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25096,23 +18850,21 @@ func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesInsertCall) Fields(s ...googleapi.Field) *CreativeFieldValuesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesInsertCall) Context(ctx context.Context) *CreativeFieldValuesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25121,18 +18873,12 @@ func (c *CreativeFieldValuesInsertCall) Header() http.Header { } func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -25146,16 +18892,15 @@ func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.insert" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25163,17 +18908,17 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25186,45 +18931,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field value.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFieldValues.insert", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.list": +} type CreativeFieldValuesListCall struct { s *Service @@ -25236,8 +18943,11 @@ type CreativeFieldValuesListCall struct { header_ http.Header } -// List: Retrieves a list of creative field values, possibly filtered. -// This method supports paging. +// List: Retrieves a list of creative field values, possibly filtered. This +// method supports paging. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64) *CreativeFieldValuesListCall { c := &CreativeFieldValuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25245,8 +18955,8 @@ func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64 return c } -// Ids sets the optional parameter "ids": Select only creative field -// values with these IDs. +// Ids sets the optional parameter "ids": Select only creative field values +// with these IDs. func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesListCall { var ids_ []string for _, v := range ids { @@ -25256,8 +18966,8 @@ func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldValuesListCall) MaxResults(maxResults int64) *CreativeFieldValuesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -25270,16 +18980,16 @@ func (c *CreativeFieldValuesListCall) PageToken(pageToken string) *CreativeField return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative field values by their values. Wildcards (e.g. -// *) are not allowed. +// SearchString sets the optional parameter "searchString": Allows searching +// for creative field values by their values. Wildcards (e.g. *) are not +// allowed. func (c *CreativeFieldValuesListCall) SearchString(searchString string) *CreativeFieldValuesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -25290,8 +19000,7 @@ func (c *CreativeFieldValuesListCall) SortField(sortField string) *CreativeField return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -25303,33 +19012,29 @@ func (c *CreativeFieldValuesListCall) SortOrder(sortOrder string) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesListCall) Fields(s ...googleapi.Field) *CreativeFieldValuesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesListCall) IfNoneMatch(entityTag string) *CreativeFieldValuesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesListCall) Context(ctx context.Context) *CreativeFieldValuesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25338,12 +19043,7 @@ func (c *CreativeFieldValuesListCall) Header() http.Header { } func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25361,16 +19061,15 @@ func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.list" call. -// Exactly one of *CreativeFieldValuesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *CreativeFieldValuesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValuesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValuesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25378,17 +19077,17 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValuesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25401,93 +19100,6 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.list", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative field values with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative field values by their values. Wildcards (e.g. *) are not allowed.", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "VALUE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "response": { - // "$ref": "CreativeFieldValuesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -25495,7 +19107,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*CreativeFieldValuesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -25511,8 +19123,6 @@ func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*Creativ } } -// method id "dfareporting.creativeFieldValues.patch": - type CreativeFieldValuesPatchCall struct { s *Service profileId int64 @@ -25523,8 +19133,12 @@ type CreativeFieldValuesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative field value. This method supports -// patch semantics. +// Patch: Updates an existing creative field value. This method supports patch +// semantics. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int64, id int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesPatchCall { c := &CreativeFieldValuesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25535,23 +19149,21 @@ func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesPatchCall) Fields(s ...googleapi.Field) *CreativeFieldValuesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesPatchCall) Context(ctx context.Context) *CreativeFieldValuesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25560,18 +19172,12 @@ func (c *CreativeFieldValuesPatchCall) Header() http.Header { } func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -25585,16 +19191,15 @@ func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.patch" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25602,17 +19207,17 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25625,53 +19230,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFieldValues.patch", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.update": +} type CreativeFieldValuesUpdateCall struct { s *Service @@ -25684,6 +19243,9 @@ type CreativeFieldValuesUpdateCall struct { } // Update: Updates an existing creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesUpdateCall { c := &CreativeFieldValuesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25693,23 +19255,21 @@ func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldValuesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesUpdateCall) Context(ctx context.Context) *CreativeFieldValuesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25718,18 +19278,12 @@ func (c *CreativeFieldValuesUpdateCall) Header() http.Header { } func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -25743,16 +19297,15 @@ func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.update" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25760,17 +19313,17 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25783,45 +19336,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFieldValues.update", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.delete": +} type CreativeFieldsDeleteCall struct { s *Service @@ -25833,6 +19348,9 @@ type CreativeFieldsDeleteCall struct { } // Delete: Deletes an existing creative field. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeFieldsDeleteCall { c := &CreativeFieldsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25841,23 +19359,21 @@ func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsDeleteCall) Context(ctx context.Context) *CreativeFieldsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25866,12 +19382,7 @@ func (c *CreativeFieldsDeleteCall) Header() http.Header { } func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -25886,7 +19397,7 @@ func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.delete" call. @@ -25898,42 +19409,10 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field.", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFields.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.get": +} type CreativeFieldsGetCall struct { s *Service @@ -25946,6 +19425,9 @@ type CreativeFieldsGetCall struct { } // Get: Gets one creative field by ID. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGetCall { c := &CreativeFieldsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25954,33 +19436,29 @@ func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsGetCall) Fields(s ...googleapi.Field) *CreativeFieldsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsGetCall) IfNoneMatch(entityTag string) *CreativeFieldsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsGetCall) Context(ctx context.Context) *CreativeFieldsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25989,12 +19467,7 @@ func (c *CreativeFieldsGetCall) Header() http.Header { } func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26012,16 +19485,14 @@ func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.get" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26029,17 +19500,17 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26052,42 +19523,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField return nil, err } return ret, nil - // { - // "description": "Gets one creative field by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.insert": +} type CreativeFieldsInsertCall struct { s *Service @@ -26099,6 +19535,8 @@ type CreativeFieldsInsertCall struct { } // Insert: Inserts a new creative field. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeField) *CreativeFieldsInsertCall { c := &CreativeFieldsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26107,23 +19545,21 @@ func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsInsertCall) Fields(s ...googleapi.Field) *CreativeFieldsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsInsertCall) Context(ctx context.Context) *CreativeFieldsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26132,18 +19568,12 @@ func (c *CreativeFieldsInsertCall) Header() http.Header { } func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -26156,16 +19586,14 @@ func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.insert" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26173,17 +19601,17 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26196,37 +19624,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFields.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.list": +} type CreativeFieldsListCall struct { s *Service @@ -26237,16 +19635,18 @@ type CreativeFieldsListCall struct { header_ http.Header } -// List: Retrieves a list of creative fields, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative fields, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall { c := &CreativeFieldsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative fields that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative fields that belong to these advertisers. func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeFieldsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -26256,8 +19656,8 @@ func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// Ids sets the optional parameter "ids": Select only creative fields -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative fields with +// these IDs. func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { var ids_ []string for _, v := range ids { @@ -26267,8 +19667,8 @@ func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldsListCall) MaxResults(maxResults int64) *CreativeFieldsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -26281,22 +19681,21 @@ func (c *CreativeFieldsListCall) PageToken(pageToken string) *CreativeFieldsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative fields by name or ID. Wildcards (*) are -// allowed. For example, "creativefield*2015" will return creative -// fields with names like "creativefield June 2015", "creativefield -// April 2015", or simply "creativefield 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativefield" will match -// creative fields with the name "my creativefield", "creativefield -// 2015", or simply "creativefield". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative fields by name or ID. Wildcards (*) are allowed. For example, +// "creativefield*2015" will return creative fields with names like +// "creativefield June 2015", "creativefield April 2015", or simply +// "creativefield 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativefield" will match creative fields with the name "my creativefield", +// "creativefield 2015", or simply "creativefield". func (c *CreativeFieldsListCall) SearchString(searchString string) *CreativeFieldsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -26307,8 +19706,7 @@ func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -26320,33 +19718,29 @@ func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsListCall) Fields(s ...googleapi.Field) *CreativeFieldsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsListCall) IfNoneMatch(entityTag string) *CreativeFieldsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsListCall) Context(ctx context.Context) *CreativeFieldsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26355,12 +19749,7 @@ func (c *CreativeFieldsListCall) Header() http.Header { } func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26377,16 +19766,15 @@ func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.list" call. -// Exactly one of *CreativeFieldsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeFieldsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeFieldsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26394,17 +19782,17 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -26417,92 +19805,6 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative fields that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative fields with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative fields by name or ID. Wildcards (*) are allowed. For example, \"creativefield*2015\" will return creative fields with names like \"creativefield June 2015\", \"creativefield April 2015\", or simply \"creativefield 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativefield\" will match creative fields with the name \"my creativefield\", \"creativefield 2015\", or simply \"creativefield\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "response": { - // "$ref": "CreativeFieldsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -26510,7 +19812,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFieldsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -26526,8 +19828,6 @@ func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFiel } } -// method id "dfareporting.creativeFields.patch": - type CreativeFieldsPatchCall struct { s *Service profileId int64 @@ -26539,6 +19839,9 @@ type CreativeFieldsPatchCall struct { // Patch: Updates an existing creative field. This method supports patch // semantics. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield *CreativeField) *CreativeFieldsPatchCall { c := &CreativeFieldsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26548,23 +19851,21 @@ func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsPatchCall) Fields(s ...googleapi.Field) *CreativeFieldsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsPatchCall) Context(ctx context.Context) *CreativeFieldsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26573,18 +19874,12 @@ func (c *CreativeFieldsPatchCall) Header() http.Header { } func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -26597,16 +19892,14 @@ func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.patch" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26614,17 +19907,17 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26637,45 +19930,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFields.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.update": +} type CreativeFieldsUpdateCall struct { s *Service @@ -26687,6 +19942,8 @@ type CreativeFieldsUpdateCall struct { } // Update: Updates an existing creative field. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeField) *CreativeFieldsUpdateCall { c := &CreativeFieldsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26695,23 +19952,21 @@ func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsUpdateCall) Context(ctx context.Context) *CreativeFieldsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26720,18 +19975,12 @@ func (c *CreativeFieldsUpdateCall) Header() http.Header { } func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -26744,16 +19993,14 @@ func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.update" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26761,17 +20008,17 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26784,37 +20031,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFields.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.get": +} type CreativeGroupsGetCall struct { s *Service @@ -26827,6 +20044,9 @@ type CreativeGroupsGetCall struct { } // Get: Gets one creative group by ID. +// +// - id: Creative group ID. +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGetCall { c := &CreativeGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26835,33 +20055,29 @@ func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsGetCall) Fields(s ...googleapi.Field) *CreativeGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsGetCall) IfNoneMatch(entityTag string) *CreativeGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsGetCall) Context(ctx context.Context) *CreativeGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26870,12 +20086,7 @@ func (c *CreativeGroupsGetCall) Header() http.Header { } func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26893,16 +20104,14 @@ func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.get" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26910,17 +20119,17 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -26933,42 +20142,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup return nil, err } return ret, nil - // { - // "description": "Gets one creative group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups/{id}", - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.insert": +} type CreativeGroupsInsertCall struct { s *Service @@ -26980,6 +20154,8 @@ type CreativeGroupsInsertCall struct { } // Insert: Inserts a new creative group. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsInsertCall { c := &CreativeGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26988,23 +20164,21 @@ func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsInsertCall) Fields(s ...googleapi.Field) *CreativeGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsInsertCall) Context(ctx context.Context) *CreativeGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27013,18 +20187,12 @@ func (c *CreativeGroupsInsertCall) Header() http.Header { } func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27037,16 +20205,14 @@ func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.insert" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27054,17 +20220,17 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27077,37 +20243,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Inserts a new creative group.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.list": +} type CreativeGroupsListCall struct { s *Service @@ -27118,16 +20254,18 @@ type CreativeGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of creative groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall { c := &CreativeGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative groups that belong to these advertisers. func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -27137,15 +20275,15 @@ func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// GroupNumber sets the optional parameter "groupNumber": Select only -// creative groups that belong to this subgroup. +// GroupNumber sets the optional parameter "groupNumber": Select only creative +// groups that belong to this subgroup. func (c *CreativeGroupsListCall) GroupNumber(groupNumber int64) *CreativeGroupsListCall { c.urlParams_.Set("groupNumber", fmt.Sprint(groupNumber)) return c } -// Ids sets the optional parameter "ids": Select only creative groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative groups with +// these IDs. func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { var ids_ []string for _, v := range ids { @@ -27155,8 +20293,8 @@ func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeGroupsListCall) MaxResults(maxResults int64) *CreativeGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -27169,22 +20307,21 @@ func (c *CreativeGroupsListCall) PageToken(pageToken string) *CreativeGroupsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative groups by name or ID. Wildcards (*) are -// allowed. For example, "creativegroup*2015" will return creative -// groups with names like "creativegroup June 2015", "creativegroup -// April 2015", or simply "creativegroup 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativegroup" will match -// creative groups with the name "my creativegroup", "creativegroup -// 2015", or simply "creativegroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative groups by name or ID. Wildcards (*) are allowed. For example, +// "creativegroup*2015" will return creative groups with names like +// "creativegroup June 2015", "creativegroup April 2015", or simply +// "creativegroup 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativegroup" will match creative groups with the name "my creativegroup", +// "creativegroup 2015", or simply "creativegroup". func (c *CreativeGroupsListCall) SearchString(searchString string) *CreativeGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -27195,8 +20332,7 @@ func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -27208,33 +20344,29 @@ func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsListCall) Fields(s ...googleapi.Field) *CreativeGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsListCall) IfNoneMatch(entityTag string) *CreativeGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsListCall) Context(ctx context.Context) *CreativeGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27243,12 +20375,7 @@ func (c *CreativeGroupsListCall) Header() http.Header { } func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27265,16 +20392,15 @@ func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.list" call. -// Exactly one of *CreativeGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27282,17 +20408,17 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -27305,100 +20431,6 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupNumber": { - // "description": "Select only creative groups that belong to this subgroup.", - // "format": "int32", - // "location": "query", - // "maximum": "2", - // "minimum": "1", - // "type": "integer" - // }, - // "ids": { - // "description": "Select only creative groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative groups by name or ID. Wildcards (*) are allowed. For example, \"creativegroup*2015\" will return creative groups with names like \"creativegroup June 2015\", \"creativegroup April 2015\", or simply \"creativegroup 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativegroup\" will match creative groups with the name \"my creativegroup\", \"creativegroup 2015\", or simply \"creativegroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "response": { - // "$ref": "CreativeGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -27406,7 +20438,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // The provided context supersedes any context provided to the Context method. func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -27422,8 +20454,6 @@ func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGrou } } -// method id "dfareporting.creativeGroups.patch": - type CreativeGroupsPatchCall struct { s *Service profileId int64 @@ -27435,6 +20465,9 @@ type CreativeGroupsPatchCall struct { // Patch: Updates an existing creative group. This method supports patch // semantics. +// +// - id: Creative group ID. +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup *CreativeGroup) *CreativeGroupsPatchCall { c := &CreativeGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27444,23 +20477,21 @@ func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsPatchCall) Fields(s ...googleapi.Field) *CreativeGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsPatchCall) Context(ctx context.Context) *CreativeGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27469,18 +20500,12 @@ func (c *CreativeGroupsPatchCall) Header() http.Header { } func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27493,16 +20518,14 @@ func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.patch" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27510,17 +20533,17 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27533,45 +20556,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.update": +} type CreativeGroupsUpdateCall struct { s *Service @@ -27583,6 +20568,8 @@ type CreativeGroupsUpdateCall struct { } // Update: Updates an existing creative group. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsUpdateCall { c := &CreativeGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27591,23 +20578,21 @@ func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsUpdateCall) Fields(s ...googleapi.Field) *CreativeGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsUpdateCall) Context(ctx context.Context) *CreativeGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27616,18 +20601,12 @@ func (c *CreativeGroupsUpdateCall) Header() http.Header { } func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27640,16 +20619,14 @@ func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.update" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27657,17 +20634,17 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27680,37 +20657,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.get": +} type CreativesGetCall struct { s *Service @@ -27723,6 +20670,9 @@ type CreativesGetCall struct { } // Get: Gets one creative by ID. +// +// - id: Creative ID. +// - profileId: User profile ID associated with this request. func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { c := &CreativesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27731,33 +20681,29 @@ func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27766,12 +20712,7 @@ func (c *CreativesGetCall) Header() http.Header { } func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27789,16 +20730,14 @@ func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27806,17 +20745,17 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -27829,42 +20768,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return nil, err } return ret, nil - // { - // "description": "Gets one creative by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives/{id}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.insert": +} type CreativesInsertCall struct { s *Service @@ -27876,6 +20780,8 @@ type CreativesInsertCall struct { } // Insert: Inserts a new creative. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) Insert(profileId int64, creative *Creative) *CreativesInsertCall { c := &CreativesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27884,23 +20790,21 @@ func (r *CreativesService) Insert(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27909,18 +20813,12 @@ func (c *CreativesInsertCall) Header() http.Header { } func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -27933,16 +20831,14 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.insert" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27950,17 +20846,17 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -27973,37 +20869,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Inserts a new creative.", - // "httpMethod": "POST", - // "id": "dfareporting.creatives.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.list": +} type CreativesListCall struct { s *Service @@ -28014,16 +20880,18 @@ type CreativesListCall struct { header_ http.Header } -// List: Retrieves a list of creatives, possibly filtered. This method -// supports paging. +// List: Retrieves a list of creatives, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) List(profileId int64) *CreativesListCall { c := &CreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Active sets the optional parameter "active": Select only active -// creatives. Leave blank to select active and inactive creatives. +// Active sets the optional parameter "active": Select only active creatives. +// Leave blank to select active and inactive creatives. func (c *CreativesListCall) Active(active bool) *CreativesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c @@ -28043,16 +20911,15 @@ func (c *CreativesListCall) Archived(archived bool) *CreativesListCall { return c } -// CampaignId sets the optional parameter "campaignId": Select only -// creatives with this campaign ID. +// CampaignId sets the optional parameter "campaignId": Select only creatives +// with this campaign ID. func (c *CreativesListCall) CampaignId(campaignId int64) *CreativesListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// CompanionCreativeIds sets the optional parameter -// "companionCreativeIds": Select only in-stream video creatives with -// these companion IDs. +// CompanionCreativeIds sets the optional parameter "companionCreativeIds": +// Select only in-stream video creatives with these companion IDs. func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) *CreativesListCall { var companionCreativeIds_ []string for _, v := range companionCreativeIds { @@ -28062,8 +20929,8 @@ func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) return c } -// CreativeFieldIds sets the optional parameter "creativeFieldIds": -// Select only creatives with these creative field IDs. +// CreativeFieldIds sets the optional parameter "creativeFieldIds": Select only +// creatives with these creative field IDs. func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *CreativesListCall { var creativeFieldIds_ []string for _, v := range creativeFieldIds { @@ -28073,8 +20940,7 @@ func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *Creativ return c } -// Ids sets the optional parameter "ids": Select only creatives with -// these IDs. +// Ids sets the optional parameter "ids": Select only creatives with these IDs. func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { var ids_ []string for _, v := range ids { @@ -28084,8 +20950,8 @@ func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -28109,21 +20975,20 @@ func (c *CreativesListCall) RenderingIds(renderingIds ...int64) *CreativesListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "creative*2015" will return objects with names like -// "creative June 2015", "creative April 2015", or simply "creative -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "creative" will match objects with name "my creative", "creative -// 2015", or simply "creative". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "creative*2015" will return objects with names like "creative June 2015", +// "creative April 2015", or simply "creative 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "creative" will match objects with name "my +// creative", "creative 2015", or simply "creative". func (c *CreativesListCall) SearchString(searchString string) *CreativesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only creatives -// with these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only creatives with +// these size IDs. func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -28133,8 +20998,8 @@ func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -28145,8 +21010,7 @@ func (c *CreativesListCall) SortField(sortField string) *CreativesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -28157,15 +21021,15 @@ func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall { return c } -// StudioCreativeId sets the optional parameter "studioCreativeId": -// Select only creatives corresponding to this Studio creative ID. +// StudioCreativeId sets the optional parameter "studioCreativeId": Select only +// creatives corresponding to this Studio creative ID. func (c *CreativesListCall) StudioCreativeId(studioCreativeId int64) *CreativesListCall { c.urlParams_.Set("studioCreativeId", fmt.Sprint(studioCreativeId)) return c } -// Types sets the optional parameter "types": Select only creatives with -// these creative types. +// Types sets the optional parameter "types": Select only creatives with these +// creative types. // // Possible values: // @@ -28200,33 +21064,29 @@ func (c *CreativesListCall) Types(types ...string) *CreativesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28235,12 +21095,7 @@ func (c *CreativesListCall) Header() http.Header { } func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28257,16 +21112,15 @@ func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.list" call. -// Exactly one of *CreativesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28274,17 +21128,17 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -28297,201 +21151,6 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active creatives. Leave blank to select active and inactive creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only creatives with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived creatives. Leave blank to select archived and unarchived creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignId": { - // "description": "Select only creatives with this campaign ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "companionCreativeIds": { - // "description": "Select only in-stream video creatives with these companion IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeFieldIds": { - // "description": "Select only creatives with these creative field IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creatives with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "renderingIds": { - // "description": "Select only creatives with these rendering IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"creative*2015\" will return objects with names like \"creative June 2015\", \"creative April 2015\", or simply \"creative 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"creative\" will match objects with name \"my creative\", \"creative 2015\", or simply \"creative\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only creatives with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "studioCreativeId": { - // "description": "Select only creatives corresponding to this Studio creative ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "types": { - // "description": "Select only creatives with these creative types.", - // "enum": [ - // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO", - // "CUSTOM_DISPLAY", - // "CUSTOM_DISPLAY_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_IMAGE_GALLERY", - // "DISPLAY_REDIRECT", - // "FLASH_INPAGE", - // "HTML5_BANNER", - // "IMAGE", - // "INSTREAM_AUDIO", - // "INSTREAM_VIDEO", - // "INSTREAM_VIDEO_REDIRECT", - // "INTERNAL_REDIRECT", - // "INTERSTITIAL_INTERNAL_REDIRECT", - // "RICH_MEDIA_DISPLAY_BANNER", - // "RICH_MEDIA_DISPLAY_EXPANDING", - // "RICH_MEDIA_DISPLAY_INTERSTITIAL", - // "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL", - // "RICH_MEDIA_IM_EXPAND", - // "RICH_MEDIA_INPAGE_FLOATING", - // "RICH_MEDIA_MOBILE_IN_APP", - // "RICH_MEDIA_PEEL_DOWN", - // "TRACKING_TEXT", - // "VPAID_LINEAR_VIDEO", - // "VPAID_NON_LINEAR_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "response": { - // "$ref": "CreativesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -28499,7 +21158,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // The provided context supersedes any context provided to the Context method. func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -28515,8 +21174,6 @@ func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResp } } -// method id "dfareporting.creatives.patch": - type CreativesPatchCall struct { s *Service profileId int64 @@ -28526,8 +21183,10 @@ type CreativesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative. This method supports patch -// semantics. +// Patch: Updates an existing creative. This method supports patch semantics. +// +// - id: Creative ID. +// - profileId: User profile ID associated with this request. func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) *CreativesPatchCall { c := &CreativesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28537,23 +21196,21 @@ func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesPatchCall) Fields(s ...googleapi.Field) *CreativesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesPatchCall) Context(ctx context.Context) *CreativesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28562,18 +21219,12 @@ func (c *CreativesPatchCall) Header() http.Header { } func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -28586,16 +21237,14 @@ func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.patch" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28603,17 +21252,17 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -28626,45 +21275,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing creative. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creatives.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.update": +} type CreativesUpdateCall struct { s *Service @@ -28676,6 +21287,8 @@ type CreativesUpdateCall struct { } // Update: Updates an existing creative. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) Update(profileId int64, creative *Creative) *CreativesUpdateCall { c := &CreativesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28684,23 +21297,21 @@ func (r *CreativesService) Update(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesUpdateCall) Fields(s ...googleapi.Field) *CreativesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesUpdateCall) Context(ctx context.Context) *CreativesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28709,18 +21320,12 @@ func (c *CreativesUpdateCall) Header() http.Header { } func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -28733,16 +21338,14 @@ func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.update" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28750,17 +21353,17 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -28773,37 +21376,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Updates an existing creative.", - // "httpMethod": "PUT", - // "id": "dfareporting.creatives.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dimensionValues.query": +} type DimensionValuesQueryCall struct { s *Service @@ -28814,8 +21387,9 @@ type DimensionValuesQueryCall struct { header_ http.Header } -// Query: Retrieves list of report dimension values for a list of -// filters. +// Query: Retrieves list of report dimension values for a list of filters. +// +// - profileId: The DFA user profile ID. func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall { c := &DimensionValuesQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28823,8 +21397,8 @@ func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *D return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DimensionValuesQueryCall) MaxResults(maxResults int64) *DimensionValuesQueryCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -28838,23 +21412,21 @@ func (c *DimensionValuesQueryCall) PageToken(pageToken string) *DimensionValuesQ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DimensionValuesQueryCall) Fields(s ...googleapi.Field) *DimensionValuesQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DimensionValuesQueryCall) Context(ctx context.Context) *DimensionValuesQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DimensionValuesQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28863,18 +21435,12 @@ func (c *DimensionValuesQueryCall) Header() http.Header { } func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dimensionvaluerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dimensionvalues/query") @@ -28887,16 +21453,15 @@ func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dimensionValues.query" call. -// Exactly one of *DimensionValueList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DimensionValueList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DimensionValueList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionValueList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28904,17 +21469,17 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DimensionValueList{ ServerResponse: googleapi.ServerResponse{ @@ -28927,48 +21492,6 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV return nil, err } return ret, nil - // { - // "description": "Retrieves list of report dimension values for a list of filters.", - // "httpMethod": "POST", - // "id": "dfareporting.dimensionValues.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "100", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dimensionvalues/query", - // "request": { - // "$ref": "DimensionValueRequest" - // }, - // "response": { - // "$ref": "DimensionValueList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -28976,7 +21499,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // The provided context supersedes any context provided to the Context method. func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionValueList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -28992,8 +21515,6 @@ func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionV } } -// method id "dfareporting.directorySites.get": - type DirectorySitesGetCall struct { s *Service profileId int64 @@ -29005,6 +21526,9 @@ type DirectorySitesGetCall struct { } // Get: Gets one directory site by ID. +// +// - id: Directory site ID. +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGetCall { c := &DirectorySitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29013,33 +21537,29 @@ func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesGetCall) Fields(s ...googleapi.Field) *DirectorySitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesGetCall) IfNoneMatch(entityTag string) *DirectorySitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesGetCall) Context(ctx context.Context) *DirectorySitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29048,12 +21568,7 @@ func (c *DirectorySitesGetCall) Header() http.Header { } func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29071,16 +21586,14 @@ func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.get" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29088,17 +21601,17 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -29111,42 +21624,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite return nil, err } return ret, nil - // { - // "description": "Gets one directory site by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Directory site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites/{id}", - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.insert": +} type DirectorySitesInsertCall struct { s *Service @@ -29158,6 +21636,8 @@ type DirectorySitesInsertCall struct { } // Insert: Inserts a new directory site. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) Insert(profileId int64, directorysite *DirectorySite) *DirectorySitesInsertCall { c := &DirectorySitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29166,23 +21646,21 @@ func (r *DirectorySitesService) Insert(profileId int64, directorysite *Directory } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesInsertCall) Fields(s ...googleapi.Field) *DirectorySitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesInsertCall) Context(ctx context.Context) *DirectorySitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29191,18 +21669,12 @@ func (c *DirectorySitesInsertCall) Header() http.Header { } func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.directorysite) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites") @@ -29215,16 +21687,14 @@ func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.insert" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29232,17 +21702,17 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -29255,37 +21725,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS return nil, err } return ret, nil - // { - // "description": "Inserts a new directory site.", - // "httpMethod": "POST", - // "id": "dfareporting.directorySites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "request": { - // "$ref": "DirectorySite" - // }, - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.list": +} type DirectorySitesListCall struct { s *Service @@ -29296,8 +21736,10 @@ type DirectorySitesListCall struct { header_ http.Header } -// List: Retrieves a list of directory sites, possibly filtered. This -// method supports paging. +// List: Retrieves a list of directory sites, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { c := &DirectorySitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29305,46 +21747,45 @@ func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only directory sites that -// accept publisher paid placements. This field can be left blank. +// "acceptsPublisherPaidPlacements": Select only directory sites that accept +// publisher paid placements. This field can be left blank. func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// Active sets the optional parameter "active": Select only active -// directory sites. Leave blank to retrieve both active and inactive -// directory sites. +// Active sets the optional parameter "active": Select only active directory +// sites. Leave blank to retrieve both active and inactive directory sites. func (c *DirectorySitesListCall) Active(active bool) *DirectorySitesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select -// only directory sites with this Ad Manager network code. +// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select only +// directory sites with this Ad Manager network code. func (c *DirectorySitesListCall) DfpNetworkCode(dfpNetworkCode string) *DirectorySitesListCall { c.urlParams_.Set("dfpNetworkCode", dfpNetworkCode) return c } -// Ids sets the optional parameter "ids": Select only directory sites -// with these IDs. +// Ids sets the optional parameter "ids": Select only directory sites with +// these IDs. func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { var ids_ []string for _, v := range ids { @@ -29354,8 +21795,8 @@ func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DirectorySitesListCall) MaxResults(maxResults int64) *DirectorySitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -29368,22 +21809,21 @@ func (c *DirectorySitesListCall) PageToken(pageToken string) *DirectorySitesList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or URL. Wildcards (*) are allowed. -// For example, "directory site*2015" will return objects with names -// like "directory site June 2015", "directory site April 2015", or -// simply "directory site 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "directory site" will match objects with -// name "my directory site", "directory site 2015" or simply, "directory -// site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or URL. Wildcards (*) are allowed. For example, +// "directory site*2015" will return objects with names like "directory site +// June 2015", "directory site April 2015", or simply "directory site 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "directory site" will +// match objects with name "my directory site", "directory site 2015" or +// simply, "directory site". func (c *DirectorySitesListCall) SearchString(searchString string) *DirectorySitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -29394,8 +21834,7 @@ func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -29407,33 +21846,29 @@ func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesListCall) Fields(s ...googleapi.Field) *DirectorySitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesListCall) IfNoneMatch(entityTag string) *DirectorySitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesListCall) Context(ctx context.Context) *DirectorySitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29442,12 +21877,7 @@ func (c *DirectorySitesListCall) Header() http.Header { } func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29464,16 +21894,15 @@ func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.list" call. -// Exactly one of *DirectorySitesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *DirectorySitesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *DirectorySitesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29481,17 +21910,17 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -29504,110 +21933,6 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit return nil, err } return ret, nil - // { - // "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only directory sites that accept publisher paid placements. This field can be left blank.", - // "location": "query", - // "type": "boolean" - // }, - // "active": { - // "description": "Select only active directory sites. Leave blank to retrieve both active and inactive directory sites.", - // "location": "query", - // "type": "boolean" - // }, - // "dfpNetworkCode": { - // "description": "Select only directory sites with this Ad Manager network code.", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only directory sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. For example, \"directory site*2015\" will return objects with names like \"directory site June 2015\", \"directory site April 2015\", or simply \"directory site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site\" will match objects with name \"my directory site\", \"directory site 2015\" or simply, \"directory site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "response": { - // "$ref": "DirectorySitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -29615,7 +21940,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // The provided context supersedes any context provided to the Context method. func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -29631,8 +21956,6 @@ func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySit } } -// method id "dfareporting.dynamicTargetingKeys.delete": - type DynamicTargetingKeysDeleteCall struct { s *Service profileId int64 @@ -29643,6 +21966,15 @@ type DynamicTargetingKeysDeleteCall struct { } // Delete: Deletes an existing dynamic targeting key. +// +// - name: Name of this dynamic targeting key. This is a required field. Must +// be less than 256 characters long and cannot contain commas. All characters +// are converted to lowercase. +// - objectId: ID of the object of this dynamic targeting key. This is a +// required field. +// - objectType: Type of the object of this dynamic targeting key. This is a +// required field. +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, name string, objectType string) *DynamicTargetingKeysDeleteCall { c := &DynamicTargetingKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29653,23 +21985,21 @@ func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, na } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysDeleteCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysDeleteCall) Context(ctx context.Context) *DynamicTargetingKeysDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29678,12 +22008,7 @@ func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { } func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -29698,7 +22023,7 @@ func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "objectId": strconv.FormatInt(c.objectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.delete" call. @@ -29710,68 +22035,10 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing dynamic targeting key.", - // "httpMethod": "DELETE", - // "id": "dfareporting.dynamicTargetingKeys.delete", - // "parameterOrder": [ - // "profileId", - // "objectId", - // "name", - // "objectType" - // ], - // "parameters": { - // "name": { - // "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "objectId": { - // "description": "ID of the object of this dynamic targeting key. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Type of the object of this dynamic targeting key. This is a required field.", - // "enum": [ - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.insert": +} type DynamicTargetingKeysInsertCall struct { s *Service @@ -29782,11 +22049,12 @@ type DynamicTargetingKeysInsertCall struct { header_ http.Header } -// Insert: Inserts a new dynamic targeting key. Keys must be created at -// the advertiser level before being assigned to the advertiser's ads, -// creatives, or placements. There is a maximum of 1000 keys per -// advertiser, out of which a maximum of 20 keys can be assigned per ad, -// creative, or placement. +// Insert: Inserts a new dynamic targeting key. Keys must be created at the +// advertiser level before being assigned to the advertiser's ads, creatives, +// or placements. There is a maximum of 1000 keys per advertiser, out of which +// a maximum of 20 keys can be assigned per ad, creative, or placement. +// +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingkey *DynamicTargetingKey) *DynamicTargetingKeysInsertCall { c := &DynamicTargetingKeysInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29795,23 +22063,21 @@ func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingke } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysInsertCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysInsertCall) Context(ctx context.Context) *DynamicTargetingKeysInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29820,18 +22086,12 @@ func (c *DynamicTargetingKeysInsertCall) Header() http.Header { } func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dynamictargetingkey) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys") @@ -29844,16 +22104,15 @@ func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.insert" call. -// Exactly one of *DynamicTargetingKey or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DynamicTargetingKey.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKey.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29861,17 +22120,17 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKey{ ServerResponse: googleapi.ServerResponse{ @@ -29884,37 +22143,7 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna return nil, err } return ret, nil - // { - // "description": "Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.", - // "httpMethod": "POST", - // "id": "dfareporting.dynamicTargetingKeys.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "request": { - // "$ref": "DynamicTargetingKey" - // }, - // "response": { - // "$ref": "DynamicTargetingKey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.list": +} type DynamicTargetingKeysListCall struct { s *Service @@ -29926,21 +22155,23 @@ type DynamicTargetingKeysListCall struct { } // List: Retrieves a list of dynamic targeting keys. +// +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) List(profileId int64) *DynamicTargetingKeysListCall { c := &DynamicTargetingKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// dynamic targeting keys whose object has this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only dynamic +// targeting keys whose object has this advertiser ID. func (c *DynamicTargetingKeysListCall) AdvertiserId(advertiserId int64) *DynamicTargetingKeysListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Names sets the optional parameter "names": Select only dynamic -// targeting keys exactly matching these names. +// Names sets the optional parameter "names": Select only dynamic targeting +// keys exactly matching these names. func (c *DynamicTargetingKeysListCall) Names(names ...string) *DynamicTargetingKeysListCall { c.urlParams_.SetMulti("names", append([]string{}, names...)) return c @@ -29953,8 +22184,8 @@ func (c *DynamicTargetingKeysListCall) ObjectId(objectId int64) *DynamicTargetin return c } -// ObjectType sets the optional parameter "objectType": Select only -// dynamic targeting keys with this object type. +// ObjectType sets the optional parameter "objectType": Select only dynamic +// targeting keys with this object type. // // Possible values: // @@ -29968,33 +22199,29 @@ func (c *DynamicTargetingKeysListCall) ObjectType(objectType string) *DynamicTar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysListCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DynamicTargetingKeysListCall) IfNoneMatch(entityTag string) *DynamicTargetingKeysListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysListCall) Context(ctx context.Context) *DynamicTargetingKeysListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30003,12 +22230,7 @@ func (c *DynamicTargetingKeysListCall) Header() http.Header { } func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30025,16 +22247,15 @@ func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.list" call. -// Exactly one of *DynamicTargetingKeysListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DynamicTargetingKeysListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKeysListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKeysListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30042,17 +22263,17 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKeysListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -30065,69 +22286,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami return nil, err } return ret, nil - // { - // "description": "Retrieves a list of dynamic targeting keys.", - // "httpMethod": "GET", - // "id": "dfareporting.dynamicTargetingKeys.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only dynamic targeting keys whose object has this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "names": { - // "description": "Select only dynamic targeting keys exactly matching these names.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectId": { - // "description": "Select only dynamic targeting keys with this object ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "objectType": { - // "description": "Select only dynamic targeting keys with this object type.", - // "enum": [ - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "response": { - // "$ref": "DynamicTargetingKeysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.delete": +} type EventTagsDeleteCall struct { s *Service @@ -30139,6 +22298,9 @@ type EventTagsDeleteCall struct { } // Delete: Deletes an existing event tag. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCall { c := &EventTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30147,23 +22309,21 @@ func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsDeleteCall) Fields(s ...googleapi.Field) *EventTagsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsDeleteCall) Context(ctx context.Context) *EventTagsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30172,12 +22332,7 @@ func (c *EventTagsDeleteCall) Header() http.Header { } func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -30192,7 +22347,7 @@ func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.delete" call. @@ -30204,42 +22359,10 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing event tag.", - // "httpMethod": "DELETE", - // "id": "dfareporting.eventTags.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.get": +} type EventTagsGetCall struct { s *Service @@ -30252,6 +22375,9 @@ type EventTagsGetCall struct { } // Get: Gets one event tag by ID. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { c := &EventTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30260,33 +22386,29 @@ func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsGetCall) Fields(s ...googleapi.Field) *EventTagsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsGetCall) IfNoneMatch(entityTag string) *EventTagsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsGetCall) Context(ctx context.Context) *EventTagsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30295,12 +22417,7 @@ func (c *EventTagsGetCall) Header() http.Header { } func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30318,16 +22435,14 @@ func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.get" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30335,17 +22450,17 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -30358,42 +22473,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { return nil, err } return ret, nil - // { - // "description": "Gets one event tag by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.insert": +} type EventTagsInsertCall struct { s *Service @@ -30405,6 +22485,8 @@ type EventTagsInsertCall struct { } // Insert: Inserts a new event tag. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTagsInsertCall { c := &EventTagsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30413,23 +22495,21 @@ func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsInsertCall) Fields(s ...googleapi.Field) *EventTagsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsInsertCall) Context(ctx context.Context) *EventTagsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30438,18 +22518,12 @@ func (c *EventTagsInsertCall) Header() http.Header { } func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -30462,16 +22536,14 @@ func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.insert" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30479,17 +22551,17 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -30502,37 +22574,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Inserts a new event tag.", - // "httpMethod": "POST", - // "id": "dfareporting.eventTags.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.list": +} type EventTagsListCall struct { s *Service @@ -30544,64 +22586,63 @@ type EventTagsListCall struct { } // List: Retrieves a list of event tags, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) List(profileId int64) *EventTagsListCall { c := &EventTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdId sets the optional parameter "adId": Select only event tags that -// belong to this ad. +// AdId sets the optional parameter "adId": Select only event tags that belong +// to this ad. func (c *EventTagsListCall) AdId(adId int64) *EventTagsListCall { c.urlParams_.Set("adId", fmt.Sprint(adId)) return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// event tags that belong to this advertiser. +// AdvertiserId sets the optional parameter "advertiserId": Select only event +// tags that belong to this advertiser. func (c *EventTagsListCall) AdvertiserId(advertiserId int64) *EventTagsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// CampaignId sets the optional parameter "campaignId": Select only -// event tags that belong to this campaign. +// CampaignId sets the optional parameter "campaignId": Select only event tags +// that belong to this campaign. func (c *EventTagsListCall) CampaignId(campaignId int64) *EventTagsListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// DefinitionsOnly sets the optional parameter "definitionsOnly": -// Examine only the specified campaign or advertiser's event tags for -// matching selector criteria. When set to false, the parent advertiser -// and parent campaign of the specified ad or campaign is examined as -// well. In addition, when set to false, the status field is examined as -// well, along with the enabledByDefault field. This parameter can not -// be set to true when adId is specified as ads do not define their own -// even tags. +// DefinitionsOnly sets the optional parameter "definitionsOnly": Examine only +// the specified campaign or advertiser's event tags for matching selector +// criteria. When set to false, the parent advertiser and parent campaign of +// the specified ad or campaign is examined as well. In addition, when set to +// false, the status field is examined as well, along with the enabledByDefault +// field. This parameter can not be set to true when adId is specified as ads +// do not define their own even tags. func (c *EventTagsListCall) DefinitionsOnly(definitionsOnly bool) *EventTagsListCall { c.urlParams_.Set("definitionsOnly", fmt.Sprint(definitionsOnly)) return c } -// Enabled sets the optional parameter "enabled": Select only enabled -// event tags. What is considered enabled or disabled depends on the -// definitionsOnly parameter. When definitionsOnly is set to true, only -// the specified advertiser or campaign's event tags' enabledByDefault -// field is examined. When definitionsOnly is set to false, the -// specified ad or specified campaign's parent advertiser's or parent -// campaign's event tags' enabledByDefault and status fields are -// examined as well. +// Enabled sets the optional parameter "enabled": Select only enabled event +// tags. What is considered enabled or disabled depends on the definitionsOnly +// parameter. When definitionsOnly is set to true, only the specified +// advertiser or campaign's event tags' enabledByDefault field is examined. +// When definitionsOnly is set to false, the specified ad or specified +// campaign's parent advertiser's or parent campaign's event tags' +// enabledByDefault and status fields are examined as well. func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall { c.urlParams_.Set("enabled", fmt.Sprint(enabled)) return c } -// EventTagTypes sets the optional parameter "eventTagTypes": Select -// only event tags with the specified event tag types. Event tag types -// can be used to specify whether to use a third-party pixel, a -// third-party JavaScript URL, or a third-party click-through URL for -// either impression or click tracking. +// EventTagTypes sets the optional parameter "eventTagTypes": Select only event +// tags with the specified event tag types. Event tag types can be used to +// specify whether to use a third-party pixel, a third-party JavaScript URL, or +// a third-party click-through URL for either impression or click tracking. // // Possible values: // @@ -30613,8 +22654,8 @@ func (c *EventTagsListCall) EventTagTypes(eventTagTypes ...string) *EventTagsLis return c } -// Ids sets the optional parameter "ids": Select only event tags with -// these IDs. +// Ids sets the optional parameter "ids": Select only event tags with these +// IDs. func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { var ids_ []string for _, v := range ids { @@ -30624,21 +22665,20 @@ func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "eventtag*2015" will return objects with names like -// "eventtag June 2015", "eventtag April 2015", or simply "eventtag -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "eventtag" will match objects with name "my eventtag", "eventtag -// 2015", or simply "eventtag". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "eventtag*2015" will return objects with names like "eventtag June 2015", +// "eventtag April 2015", or simply "eventtag 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "eventtag" will match objects with name "my +// eventtag", "eventtag 2015", or simply "eventtag". func (c *EventTagsListCall) SearchString(searchString string) *EventTagsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -30649,8 +22689,7 @@ func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -30662,33 +22701,29 @@ func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsListCall) Fields(s ...googleapi.Field) *EventTagsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsListCall) IfNoneMatch(entityTag string) *EventTagsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsListCall) Context(ctx context.Context) *EventTagsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30697,12 +22732,7 @@ func (c *EventTagsListCall) Header() http.Header { } func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30719,16 +22749,15 @@ func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.list" call. -// Exactly one of *EventTagsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *EventTagsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTagsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30736,17 +22765,17 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTagsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -30759,118 +22788,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of event tags, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "adId": { - // "description": "Select only event tags that belong to this ad.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "advertiserId": { - // "description": "Select only event tags that belong to this advertiser.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "campaignId": { - // "description": "Select only event tags that belong to this campaign.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "definitionsOnly": { - // "description": "Examine only the specified campaign or advertiser's event tags for matching selector criteria. When set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined as well. In addition, when set to false, the status field is examined as well, along with the enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not define their own even tags.", - // "location": "query", - // "type": "boolean" - // }, - // "enabled": { - // "description": "Select only enabled event tags. What is considered enabled or disabled depends on the definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' enabledByDefault and status fields are examined as well.", - // "location": "query", - // "type": "boolean" - // }, - // "eventTagTypes": { - // "description": "Select only event tags with the specified event tag types. Event tag types can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking.", - // "enum": [ - // "CLICK_THROUGH_EVENT_TAG", - // "IMPRESSION_IMAGE_EVENT_TAG", - // "IMPRESSION_JAVASCRIPT_EVENT_TAG" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only event tags with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"eventtag*2015\" will return objects with names like \"eventtag June 2015\", \"eventtag April 2015\", or simply \"eventtag 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"eventtag\" will match objects with name \"my eventtag\", \"eventtag 2015\", or simply \"eventtag\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "response": { - // "$ref": "EventTagsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.patch": +} type EventTagsPatchCall struct { s *Service @@ -30881,8 +22799,10 @@ type EventTagsPatchCall struct { header_ http.Header } -// Patch: Updates an existing event tag. This method supports patch -// semantics. +// Patch: Updates an existing event tag. This method supports patch semantics. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) *EventTagsPatchCall { c := &EventTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30892,23 +22812,21 @@ func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsPatchCall) Fields(s ...googleapi.Field) *EventTagsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsPatchCall) Context(ctx context.Context) *EventTagsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30917,18 +22835,12 @@ func (c *EventTagsPatchCall) Header() http.Header { } func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -30941,16 +22853,14 @@ func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.patch" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30958,17 +22868,17 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -30981,45 +22891,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.eventTags.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.update": +} type EventTagsUpdateCall struct { s *Service @@ -31031,6 +22903,8 @@ type EventTagsUpdateCall struct { } // Update: Updates an existing event tag. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTagsUpdateCall { c := &EventTagsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31039,23 +22913,21 @@ func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsUpdateCall) Fields(s ...googleapi.Field) *EventTagsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsUpdateCall) Context(ctx context.Context) *EventTagsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31064,18 +22936,12 @@ func (c *EventTagsUpdateCall) Header() http.Header { } func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -31088,16 +22954,14 @@ func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.update" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31105,17 +22969,17 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31128,37 +22992,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag.", - // "httpMethod": "PUT", - // "id": "dfareporting.eventTags.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.files.get": +} type FilesGetCall struct { s *Service @@ -31170,8 +23004,11 @@ type FilesGetCall struct { header_ http.Header } -// Get: Retrieves a report file by its report ID and file ID. This -// method supports media download. +// Get: Retrieves a report file by its report ID and file ID. This method +// supports media download. +// +// - fileId: The ID of the report file. +// - reportId: The ID of the report. func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { c := &FilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.reportId = reportId @@ -31180,33 +23017,29 @@ func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesGetCall) Fields(s ...googleapi.Field) *FilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesGetCall) IfNoneMatch(entityTag string) *FilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31215,12 +23048,7 @@ func (c *FilesGetCall) Header() http.Header { } func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31238,7 +23066,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -31250,20 +23078,18 @@ func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, e if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31271,17 +23097,17 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -31294,43 +23120,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "httpMethod": "GET", - // "id": "dfareporting.files.get", - // "parameterOrder": [ - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.files.list": +} type FilesListCall struct { s *Service @@ -31342,14 +23132,16 @@ type FilesListCall struct { } // List: Lists files for a user profile. +// +// - profileId: The DFA profile ID. func (r *FilesService) List(profileId int64) *FilesListCall { c := &FilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -31362,8 +23154,8 @@ func (c *FilesListCall) PageToken(pageToken string) *FilesListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -31375,8 +23167,8 @@ func (c *FilesListCall) Scope(scope string) *FilesListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -31387,8 +23179,7 @@ func (c *FilesListCall) SortField(sortField string) *FilesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -31400,33 +23191,29 @@ func (c *FilesListCall) SortOrder(sortOrder string) *FilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesListCall) Fields(s ...googleapi.Field) *FilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesListCall) IfNoneMatch(entityTag string) *FilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FilesListCall) Context(ctx context.Context) *FilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31435,12 +23222,7 @@ func (c *FilesListCall) Header() http.Header { } func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31457,16 +23239,14 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31474,17 +23254,17 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -31497,89 +23277,6 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { return nil, err } return ret, nil - // { - // "description": "Lists files for a user profile.", - // "httpMethod": "GET", - // "id": "dfareporting.files.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE", - // "SHARED_WITH_ME" - // ], - // "enumDescriptions": [ - // "All files in account.", - // "My files.", - // "Files shared with me." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -31587,7 +23284,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // The provided context supersedes any context provided to the Context method. func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -31603,8 +23300,6 @@ func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) erro } } -// method id "dfareporting.floodlightActivities.delete": - type FloodlightActivitiesDeleteCall struct { s *Service profileId int64 @@ -31615,6 +23310,9 @@ type FloodlightActivitiesDeleteCall struct { } // Delete: Deletes an existing floodlight activity. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *FloodlightActivitiesDeleteCall { c := &FloodlightActivitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31623,23 +23321,21 @@ func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *Floodli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesDeleteCall) Fields(s ...googleapi.Field) *FloodlightActivitiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesDeleteCall) Context(ctx context.Context) *FloodlightActivitiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31648,12 +23344,7 @@ func (c *FloodlightActivitiesDeleteCall) Header() http.Header { } func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -31668,7 +23359,7 @@ func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.delete" call. @@ -31680,42 +23371,10 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing floodlight activity.", - // "httpMethod": "DELETE", - // "id": "dfareporting.floodlightActivities.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.generatetag": +} type FloodlightActivitiesGeneratetagCall struct { s *Service @@ -31726,38 +23385,37 @@ type FloodlightActivitiesGeneratetagCall struct { } // Generatetag: Generates a tag for a floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Generatetag(profileId int64) *FloodlightActivitiesGeneratetagCall { c := &FloodlightActivitiesGeneratetagCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Floodlight activity ID for which we want to -// generate a tag. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Floodlight activity ID for which we want to generate a tag. func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityId int64) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGeneratetagCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGeneratetagCall) Context(ctx context.Context) *FloodlightActivitiesGeneratetagCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31766,12 +23424,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { } func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -31785,17 +23438,15 @@ func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.generatetag" call. -// Exactly one of *FloodlightActivitiesGenerateTagResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesGenerateTagResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31803,17 +23454,17 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesGenerateTagResponse{ ServerResponse: googleapi.ServerResponse{ @@ -31826,40 +23477,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Generates a tag for a floodlight activity.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.generatetag", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "floodlightActivityId": { - // "description": "Floodlight activity ID for which we want to generate a tag.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/generatetag", - // "response": { - // "$ref": "FloodlightActivitiesGenerateTagResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.get": +} type FloodlightActivitiesGetCall struct { s *Service @@ -31872,6 +23490,9 @@ type FloodlightActivitiesGetCall struct { } // Get: Gets one floodlight activity by ID. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *FloodlightActivitiesGetCall { c := &FloodlightActivitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31880,33 +23501,29 @@ func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *Floodlight } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGetCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesGetCall) IfNoneMatch(entityTag string) *FloodlightActivitiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGetCall) Context(ctx context.Context) *FloodlightActivitiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31915,12 +23532,7 @@ func (c *FloodlightActivitiesGetCall) Header() http.Header { } func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31938,16 +23550,15 @@ func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.get" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31955,17 +23566,17 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -31978,42 +23589,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.insert": +} type FloodlightActivitiesInsertCall struct { s *Service @@ -32025,6 +23601,8 @@ type FloodlightActivitiesInsertCall struct { } // Insert: Inserts a new floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesInsertCall { c := &FloodlightActivitiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32033,23 +23611,21 @@ func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesInsertCall) Fields(s ...googleapi.Field) *FloodlightActivitiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesInsertCall) Context(ctx context.Context) *FloodlightActivitiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32058,18 +23634,12 @@ func (c *FloodlightActivitiesInsertCall) Header() http.Header { } func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -32082,16 +23652,15 @@ func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.insert" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32099,17 +23668,17 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -32122,37 +23691,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.list": +} type FloodlightActivitiesListCall struct { s *Service @@ -32163,8 +23702,10 @@ type FloodlightActivitiesListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activities, possibly filtered. -// This method supports paging. +// List: Retrieves a list of floodlight activities, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitiesListCall { c := &FloodlightActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32172,17 +23713,16 @@ func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitie } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activities for the specified advertiser ID. Must specify -// either ids, advertiserId, or floodlightConfigurationId for a -// non-empty result. +// floodlight activities for the specified advertiser ID. Must specify either +// ids, advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) AdvertiserId(advertiserId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightActivityGroupIds sets the optional parameter -// "floodlightActivityGroupIds": Select only floodlight activities with -// the specified floodlight activity group IDs. +// "floodlightActivityGroupIds": Select only floodlight activities with the +// specified floodlight activity group IDs. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds ...int64) *FloodlightActivitiesListCall { var floodlightActivityGroupIds_ []string for _, v := range floodlightActivityGroupIds { @@ -32193,24 +23733,24 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActi } // FloodlightActivityGroupName sets the optional parameter -// "floodlightActivityGroupName": Select only floodlight activities with -// the specified floodlight activity group name. +// "floodlightActivityGroupName": Select only floodlight activities with the +// specified floodlight activity group name. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupName string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupName", floodlightActivityGroupName) return c } // FloodlightActivityGroupTagString sets the optional parameter -// "floodlightActivityGroupTagString": Select only floodlight activities -// with the specified floodlight activity group tag string. +// "floodlightActivityGroupTagString": Select only floodlight activities with +// the specified floodlight activity group tag string. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupTagString", floodlightActivityGroupTagString) return c } // FloodlightActivityGroupType sets the optional parameter -// "floodlightActivityGroupType": Select only floodlight activities with -// the specified floodlight activity group type. +// "floodlightActivityGroupType": Select only floodlight activities with the +// specified floodlight activity group type. // // Possible values: // @@ -32222,17 +23762,17 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightAct } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activities for -// the specified floodlight configuration ID. Must specify either ids, +// "floodlightConfigurationId": Select only floodlight activities for the +// specified floodlight configuration ID. Must specify either ids, // advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activities with the specified IDs. Must specify either ids, -// advertiserId, or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activities +// with the specified IDs. Must specify either ids, advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesListCall { var ids_ []string for _, v := range ids { @@ -32242,8 +23782,8 @@ func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesLi return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivitiesListCall) MaxResults(maxResults int64) *FloodlightActivitiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -32256,22 +23796,22 @@ func (c *FloodlightActivitiesListCall) PageToken(pageToken string) *FloodlightAc return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivity*2015" will return objects with names -// like "floodlightactivity June 2015", "floodlightactivity April 2015", -// or simply "floodlightactivity 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivity" will match -// objects with name "my floodlightactivity activity", -// "floodlightactivity 2015", or simply "floodlightactivity". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivity*2015" will return objects with names like +// "floodlightactivity June 2015", "floodlightactivity April 2015", or simply +// "floodlightactivity 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "floodlightactivity" will match objects with name "my +// floodlightactivity activity", "floodlightactivity 2015", or simply +// "floodlightactivity". func (c *FloodlightActivitiesListCall) SearchString(searchString string) *FloodlightActivitiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -32282,8 +23822,7 @@ func (c *FloodlightActivitiesListCall) SortField(sortField string) *FloodlightAc return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -32294,41 +23833,37 @@ func (c *FloodlightActivitiesListCall) SortOrder(sortOrder string) *FloodlightAc return c } -// TagString sets the optional parameter "tagString": Select only -// floodlight activities with the specified tag string. +// TagString sets the optional parameter "tagString": Select only floodlight +// activities with the specified tag string. func (c *FloodlightActivitiesListCall) TagString(tagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("tagString", tagString) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesListCall) Fields(s ...googleapi.Field) *FloodlightActivitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesListCall) IfNoneMatch(entityTag string) *FloodlightActivitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesListCall) Context(ctx context.Context) *FloodlightActivitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32337,12 +23872,7 @@ func (c *FloodlightActivitiesListCall) Header() http.Header { } func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32359,16 +23889,15 @@ func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.list" call. -// Exactly one of *FloodlightActivitiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivitiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32376,17 +23905,17 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -32399,132 +23928,6 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activities for the specified advertiser ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupIds": { - // "description": "Select only floodlight activities with the specified floodlight activity group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightActivityGroupName": { - // "description": "Select only floodlight activities with the specified floodlight activity group name.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupTagString": { - // "description": "Select only floodlight activities with the specified floodlight activity group tag string.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupType": { - // "description": "Select only floodlight activities with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activities for the specified floodlight configuration ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivity*2015\" will return objects with names like \"floodlightactivity June 2015\", \"floodlightactivity April 2015\", or simply \"floodlightactivity 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivity\" will match objects with name \"my floodlightactivity activity\", \"floodlightactivity 2015\", or simply \"floodlightactivity\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "tagString": { - // "description": "Select only floodlight activities with the specified tag string.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "response": { - // "$ref": "FloodlightActivitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -32532,7 +23935,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*FloodlightActivitiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -32548,8 +23951,6 @@ func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*Floodl } } -// method id "dfareporting.floodlightActivities.patch": - type FloodlightActivitiesPatchCall struct { s *Service profileId int64 @@ -32559,8 +23960,11 @@ type FloodlightActivitiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity. This method supports -// patch semantics. +// Patch: Updates an existing floodlight activity. This method supports patch +// semantics. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesPatchCall { c := &FloodlightActivitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32570,23 +23974,21 @@ func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodligh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesPatchCall) Fields(s ...googleapi.Field) *FloodlightActivitiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesPatchCall) Context(ctx context.Context) *FloodlightActivitiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32595,18 +23997,12 @@ func (c *FloodlightActivitiesPatchCall) Header() http.Header { } func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -32619,16 +24015,15 @@ func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.patch" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32636,17 +24031,17 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -32659,45 +24054,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivities.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.update": +} type FloodlightActivitiesUpdateCall struct { s *Service @@ -32709,6 +24066,8 @@ type FloodlightActivitiesUpdateCall struct { } // Update: Updates an existing floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesUpdateCall { c := &FloodlightActivitiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32717,23 +24076,21 @@ func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivitiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesUpdateCall) Context(ctx context.Context) *FloodlightActivitiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32742,18 +24099,12 @@ func (c *FloodlightActivitiesUpdateCall) Header() http.Header { } func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -32766,16 +24117,15 @@ func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.update" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32783,17 +24133,17 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -32806,37 +24156,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivities.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.get": +} type FloodlightActivityGroupsGetCall struct { s *Service @@ -32849,6 +24169,9 @@ type FloodlightActivityGroupsGetCall struct { } // Get: Gets one floodlight activity group by ID. +// +// - id: Floodlight activity Group ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *FloodlightActivityGroupsGetCall { c := &FloodlightActivityGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32857,33 +24180,29 @@ func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsGetCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsGetCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsGetCall) Context(ctx context.Context) *FloodlightActivityGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32892,12 +24211,7 @@ func (c *FloodlightActivityGroupsGetCall) Header() http.Header { } func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32915,16 +24229,15 @@ func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.get" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32932,17 +24245,17 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -32955,42 +24268,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.insert": +} type FloodlightActivityGroupsInsertCall struct { s *Service @@ -33002,6 +24280,8 @@ type FloodlightActivityGroupsInsertCall struct { } // Insert: Inserts a new floodlight activity group. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsInsertCall { c := &FloodlightActivityGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33010,23 +24290,21 @@ func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsInsertCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsInsertCall) Context(ctx context.Context) *FloodlightActivityGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33035,18 +24313,12 @@ func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { } func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -33059,16 +24331,15 @@ func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.insert" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33076,17 +24347,17 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -33099,37 +24370,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity group.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivityGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.list": +} type FloodlightActivityGroupsListCall struct { s *Service @@ -33140,8 +24381,10 @@ type FloodlightActivityGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activity groups, possibly -// filtered. This method supports paging. +// List: Retrieves a list of floodlight activity groups, possibly filtered. +// This method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActivityGroupsListCall { c := &FloodlightActivityGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33149,26 +24392,25 @@ func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActiv } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activity groups with the specified advertiser ID. Must -// specify either advertiserId or floodlightConfigurationId for a -// non-empty result. +// floodlight activity groups with the specified advertiser ID. Must specify +// either advertiserId or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) AdvertiserId(advertiserId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activity groups -// with the specified floodlight configuration ID. Must specify either -// advertiserId, or floodlightConfigurationId for a non-empty result. +// "floodlightConfigurationId": Select only floodlight activity groups with the +// specified floodlight configuration ID. Must specify either advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activity groups with the specified IDs. Must specify either -// advertiserId or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activity +// groups with the specified IDs. Must specify either advertiserId or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivityGroupsListCall { var ids_ []string for _, v := range ids { @@ -33178,8 +24420,8 @@ func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivity return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivityGroupsListCall) MaxResults(maxResults int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -33192,23 +24434,22 @@ func (c *FloodlightActivityGroupsListCall) PageToken(pageToken string) *Floodlig return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivitygroup*2015" will return objects with -// names like "floodlightactivitygroup June 2015", -// "floodlightactivitygroup April 2015", or simply -// "floodlightactivitygroup 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivitygroup" will match -// objects with name "my floodlightactivitygroup activity", -// "floodlightactivitygroup 2015", or simply "floodlightactivitygroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivitygroup*2015" will return objects with names like +// "floodlightactivitygroup June 2015", "floodlightactivitygroup April 2015", +// or simply "floodlightactivitygroup 2015". Most of the searches also add +// wildcards implicitly at the start and the end of the search string. For +// example, a search string of "floodlightactivitygroup" will match objects +// with name "my floodlightactivitygroup activity", "floodlightactivitygroup +// 2015", or simply "floodlightactivitygroup". func (c *FloodlightActivityGroupsListCall) SearchString(searchString string) *FloodlightActivityGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -33219,8 +24460,7 @@ func (c *FloodlightActivityGroupsListCall) SortField(sortField string) *Floodlig return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -33231,8 +24471,8 @@ func (c *FloodlightActivityGroupsListCall) SortOrder(sortOrder string) *Floodlig return c } -// Type sets the optional parameter "type": Select only floodlight -// activity groups with the specified floodlight activity group type. +// Type sets the optional parameter "type": Select only floodlight activity +// groups with the specified floodlight activity group type. // // Possible values: // @@ -33244,33 +24484,29 @@ func (c *FloodlightActivityGroupsListCall) Type(type_ string) *FloodlightActivit } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsListCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsListCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsListCall) Context(ctx context.Context) *FloodlightActivityGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33279,12 +24515,7 @@ func (c *FloodlightActivityGroupsListCall) Header() http.Header { } func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33301,17 +24532,15 @@ func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.list" call. -// Exactly one of *FloodlightActivityGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivityGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivityGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33319,17 +24548,17 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -33342,110 +24571,6 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activity groups with the specified advertiser ID. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activity groups with the specified floodlight configuration ID. Must specify either advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivitygroup*2015\" will return objects with names like \"floodlightactivitygroup June 2015\", \"floodlightactivitygroup April 2015\", or simply \"floodlightactivitygroup 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivitygroup\" will match objects with name \"my floodlightactivitygroup activity\", \"floodlightactivitygroup 2015\", or simply \"floodlightactivitygroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only floodlight activity groups with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "response": { - // "$ref": "FloodlightActivityGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -33453,7 +24578,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*FloodlightActivityGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -33469,8 +24594,6 @@ func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*Fl } } -// method id "dfareporting.floodlightActivityGroups.patch": - type FloodlightActivityGroupsPatchCall struct { s *Service profileId int64 @@ -33480,8 +24603,11 @@ type FloodlightActivityGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity group. This method -// supports patch semantics. +// Patch: Updates an existing floodlight activity group. This method supports +// patch semantics. +// +// - id: Floodlight activity Group ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsPatchCall { c := &FloodlightActivityGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33491,23 +24617,21 @@ func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsPatchCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsPatchCall) Context(ctx context.Context) *FloodlightActivityGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33516,18 +24640,12 @@ func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { } func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -33540,16 +24658,15 @@ func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.patch" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33557,17 +24674,17 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -33580,45 +24697,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivityGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.update": +} type FloodlightActivityGroupsUpdateCall struct { s *Service @@ -33630,6 +24709,8 @@ type FloodlightActivityGroupsUpdateCall struct { } // Update: Updates an existing floodlight activity group. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsUpdateCall { c := &FloodlightActivityGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33638,23 +24719,21 @@ func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsUpdateCall) Context(ctx context.Context) *FloodlightActivityGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33663,18 +24742,12 @@ func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { } func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -33687,16 +24760,15 @@ func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.update" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33704,17 +24776,17 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -33727,37 +24799,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivityGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.get": +} type FloodlightConfigurationsGetCall struct { s *Service @@ -33770,6 +24812,9 @@ type FloodlightConfigurationsGetCall struct { } // Get: Gets one floodlight configuration by ID. +// +// - id: Floodlight configuration ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *FloodlightConfigurationsGetCall { c := &FloodlightConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33778,33 +24823,29 @@ func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsGetCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsGetCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsGetCall) Context(ctx context.Context) *FloodlightConfigurationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33813,12 +24854,7 @@ func (c *FloodlightConfigurationsGetCall) Header() http.Header { } func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33836,16 +24872,15 @@ func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.get" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33853,17 +24888,17 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -33876,42 +24911,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight configuration by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.list": +} type FloodlightConfigurationsListCall struct { s *Service @@ -33922,8 +24922,9 @@ type FloodlightConfigurationsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight configurations, possibly -// filtered. +// List: Retrieves a list of floodlight configurations, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfigurationsListCall { c := &FloodlightConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33931,8 +24932,8 @@ func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfi } // Ids sets the optional parameter "ids": Set of IDs of floodlight -// configurations to retrieve. Required field; otherwise an empty list -// will be returned. +// configurations to retrieve. Required field; otherwise an empty list will be +// returned. func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigurationsListCall { var ids_ []string for _, v := range ids { @@ -33943,33 +24944,29 @@ func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigur } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsListCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsListCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsListCall) Context(ctx context.Context) *FloodlightConfigurationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33978,12 +24975,7 @@ func (c *FloodlightConfigurationsListCall) Header() http.Header { } func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34000,17 +24992,15 @@ func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.list" call. -// Exactly one of *FloodlightConfigurationsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightConfigurationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightConfigurationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*FloodlightConfigurationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34018,17 +25008,17 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfigurationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34041,41 +25031,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight configurations, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will be returned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "response": { - // "$ref": "FloodlightConfigurationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.patch": +} type FloodlightConfigurationsPatchCall struct { s *Service @@ -34086,8 +25042,11 @@ type FloodlightConfigurationsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight configuration. This method -// supports patch semantics. +// Patch: Updates an existing floodlight configuration. This method supports +// patch semantics. +// +// - id: Floodlight configuration ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsPatchCall { c := &FloodlightConfigurationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34097,23 +25056,21 @@ func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsPatchCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsPatchCall) Context(ctx context.Context) *FloodlightConfigurationsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34122,18 +25079,12 @@ func (c *FloodlightConfigurationsPatchCall) Header() http.Header { } func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -34146,16 +25097,15 @@ func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.patch" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34163,17 +25113,17 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -34186,45 +25136,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightConfigurations.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.update": +} type FloodlightConfigurationsUpdateCall struct { s *Service @@ -34236,6 +25148,8 @@ type FloodlightConfigurationsUpdateCall struct { } // Update: Updates an existing floodlight configuration. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsUpdateCall { c := &FloodlightConfigurationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34244,23 +25158,21 @@ func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconf } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsUpdateCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsUpdateCall) Context(ctx context.Context) *FloodlightConfigurationsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34269,18 +25181,12 @@ func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { } func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -34293,16 +25199,15 @@ func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.update" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34310,17 +25215,17 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -34333,37 +25238,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightConfigurations.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.get": +} type InventoryItemsGetCall struct { s *Service @@ -34377,6 +25252,10 @@ type InventoryItemsGetCall struct { } // Get: Gets one inventory item by ID. +// +// - id: Inventory item ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) *InventoryItemsGetCall { c := &InventoryItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34386,33 +25265,29 @@ func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsGetCall) Fields(s ...googleapi.Field) *InventoryItemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsGetCall) IfNoneMatch(entityTag string) *InventoryItemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsGetCall) Context(ctx context.Context) *InventoryItemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34421,12 +25296,7 @@ func (c *InventoryItemsGetCall) Header() http.Header { } func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34445,16 +25315,14 @@ func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.get" call. -// Exactly one of *InventoryItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InventoryItem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventoryItem.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34462,17 +25330,17 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItem{ ServerResponse: googleapi.ServerResponse{ @@ -34485,50 +25353,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem return nil, err } return ret, nil - // { - // "description": "Gets one inventory item by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Inventory item ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - // "response": { - // "$ref": "InventoryItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.list": +} type InventoryItemsListCall struct { s *Service @@ -34540,8 +25365,11 @@ type InventoryItemsListCall struct { header_ http.Header } -// List: Retrieves a list of inventory items, possibly filtered. This -// method supports paging. +// List: Retrieves a list of inventory items, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *InventoryItemsService) List(profileId int64, projectId int64) *InventoryItemsListCall { c := &InventoryItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34549,8 +25377,8 @@ func (r *InventoryItemsService) List(profileId int64, projectId int64) *Inventor return c } -// Ids sets the optional parameter "ids": Select only inventory items -// with these IDs. +// Ids sets the optional parameter "ids": Select only inventory items with +// these IDs. func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { var ids_ []string for _, v := range ids { @@ -34560,22 +25388,22 @@ func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { return c } -// InPlan sets the optional parameter "inPlan": Select only inventory -// items that are in plan. +// InPlan sets the optional parameter "inPlan": Select only inventory items +// that are in plan. func (c *InventoryItemsListCall) InPlan(inPlan bool) *InventoryItemsListCall { c.urlParams_.Set("inPlan", fmt.Sprint(inPlan)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *InventoryItemsListCall) MaxResults(maxResults int64) *InventoryItemsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only inventory -// items that belong to specified orders. +// OrderId sets the optional parameter "orderId": Select only inventory items +// that belong to specified orders. func (c *InventoryItemsListCall) OrderId(orderId ...int64) *InventoryItemsListCall { var orderId_ []string for _, v := range orderId { @@ -34592,8 +25420,8 @@ func (c *InventoryItemsListCall) PageToken(pageToken string) *InventoryItemsList return c } -// SiteId sets the optional parameter "siteId": Select only inventory -// items that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only inventory items +// that are associated with these sites. func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall { var siteId_ []string for _, v := range siteId { @@ -34603,8 +25431,8 @@ func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -34615,8 +25443,7 @@ func (c *InventoryItemsListCall) SortField(sortField string) *InventoryItemsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -34627,8 +25454,8 @@ func (c *InventoryItemsListCall) SortOrder(sortOrder string) *InventoryItemsList return c } -// Type sets the optional parameter "type": Select only inventory items -// with this type. +// Type sets the optional parameter "type": Select only inventory items with +// this type. // // Possible values: // @@ -34640,33 +25467,29 @@ func (c *InventoryItemsListCall) Type(type_ string) *InventoryItemsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsListCall) Fields(s ...googleapi.Field) *InventoryItemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsListCall) IfNoneMatch(entityTag string) *InventoryItemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsListCall) Context(ctx context.Context) *InventoryItemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34675,12 +25498,7 @@ func (c *InventoryItemsListCall) Header() http.Header { } func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34698,16 +25516,15 @@ func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.list" call. -// Exactly one of *InventoryItemsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *InventoryItemsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *InventoryItemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryItemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34715,17 +25532,17 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34738,120 +25555,6 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte return nil, err } return ret, nil - // { - // "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only inventory items with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "inPlan": { - // "description": "Select only inventory items that are in plan.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only inventory items that belong to specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "siteId": { - // "description": "Select only inventory items that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only inventory items with this type.", - // "enum": [ - // "PLANNING_PLACEMENT_TYPE_CREDIT", - // "PLANNING_PLACEMENT_TYPE_REGULAR" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - // "response": { - // "$ref": "InventoryItemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -34859,7 +25562,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // The provided context supersedes any context provided to the Context method. func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryItemsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -34875,8 +25578,6 @@ func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryIte } } -// method id "dfareporting.languages.list": - type LanguagesListCall struct { s *Service profileId int64 @@ -34887,6 +25588,8 @@ type LanguagesListCall struct { } // List: Retrieves a list of languages. +// +// - profileId: User profile ID associated with this request. func (r *LanguagesService) List(profileId int64) *LanguagesListCall { c := &LanguagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34894,33 +25597,29 @@ func (r *LanguagesService) List(profileId int64) *LanguagesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LanguagesListCall) Fields(s ...googleapi.Field) *LanguagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LanguagesListCall) IfNoneMatch(entityTag string) *LanguagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LanguagesListCall) Context(ctx context.Context) *LanguagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LanguagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34929,12 +25628,7 @@ func (c *LanguagesListCall) Header() http.Header { } func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34951,16 +25645,15 @@ func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.languages.list" call. -// Exactly one of *LanguagesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *LanguagesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LanguagesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34968,17 +25661,17 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LanguagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34991,34 +25684,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of languages.", - // "httpMethod": "GET", - // "id": "dfareporting.languages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/languages", - // "response": { - // "$ref": "LanguagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.metros.list": +} type MetrosListCall struct { s *Service @@ -35030,6 +25696,8 @@ type MetrosListCall struct { } // List: Retrieves a list of metros. +// +// - profileId: User profile ID associated with this request. func (r *MetrosService) List(profileId int64) *MetrosListCall { c := &MetrosListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35037,33 +25705,29 @@ func (r *MetrosService) List(profileId int64) *MetrosListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetrosListCall) Fields(s ...googleapi.Field) *MetrosListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetrosListCall) IfNoneMatch(entityTag string) *MetrosListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetrosListCall) Context(ctx context.Context) *MetrosListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetrosListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35072,12 +25736,7 @@ func (c *MetrosListCall) Header() http.Header { } func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35094,16 +25753,15 @@ func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.metros.list" call. -// Exactly one of *MetrosListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MetrosListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MetrosListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35111,17 +25769,17 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MetrosListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35134,34 +25792,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of metros.", - // "httpMethod": "GET", - // "id": "dfareporting.metros.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/metros", - // "response": { - // "$ref": "MetrosListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileApps.get": +} type MobileAppsGetCall struct { s *Service @@ -35174,6 +25805,9 @@ type MobileAppsGetCall struct { } // Get: Gets one mobile app by ID. +// +// - id: Mobile app ID. +// - profileId: User profile ID associated with this request. func (r *MobileAppsService) Get(profileId int64, id string) *MobileAppsGetCall { c := &MobileAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35182,33 +25816,29 @@ func (r *MobileAppsService) Get(profileId int64, id string) *MobileAppsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileAppsGetCall) Fields(s ...googleapi.Field) *MobileAppsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileAppsGetCall) IfNoneMatch(entityTag string) *MobileAppsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileAppsGetCall) Context(ctx context.Context) *MobileAppsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileAppsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35217,12 +25847,7 @@ func (c *MobileAppsGetCall) Header() http.Header { } func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35240,16 +25865,14 @@ func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileApps.get" call. -// Exactly one of *MobileApp or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileApp.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileApp.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35257,17 +25880,17 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileApp{ ServerResponse: googleapi.ServerResponse{ @@ -35280,41 +25903,7 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) return nil, err } return ret, nil - // { - // "description": "Gets one mobile app by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileApps.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile app ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileApps/{id}", - // "response": { - // "$ref": "MobileApp" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileApps.list": +} type MobileAppsListCall struct { s *Service @@ -35326,14 +25915,16 @@ type MobileAppsListCall struct { } // List: Retrieves list of available mobile apps. +// +// - profileId: User profile ID associated with this request. func (r *MobileAppsService) List(profileId int64) *MobileAppsListCall { c := &MobileAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Directories sets the optional parameter "directories": Select only -// apps from these directories. +// Directories sets the optional parameter "directories": Select only apps from +// these directories. // // Possible values: // @@ -35345,15 +25936,14 @@ func (c *MobileAppsListCall) Directories(directories ...string) *MobileAppsListC return c } -// Ids sets the optional parameter "ids": Select only apps with these -// IDs. +// Ids sets the optional parameter "ids": Select only apps with these IDs. func (c *MobileAppsListCall) Ids(ids ...string) *MobileAppsListCall { c.urlParams_.SetMulti("ids", append([]string{}, ids...)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *MobileAppsListCall) MaxResults(maxResults int64) *MobileAppsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -35366,46 +25956,42 @@ func (c *MobileAppsListCall) PageToken(pageToken string) *MobileAppsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "app*2015" will return objects with names like "app Jan -// 2018", "app Jan 2018", or simply "app 2018". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "app" will match objects with -// name "my app", "app 2018", or simply "app". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "app*2015" will return objects with names like "app Jan 2018", "app Jan +// 2018", or simply "app 2018". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "app" will match objects with name "my app", "app 2018", or +// simply "app". func (c *MobileAppsListCall) SearchString(searchString string) *MobileAppsListCall { c.urlParams_.Set("searchString", searchString) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileAppsListCall) Fields(s ...googleapi.Field) *MobileAppsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileAppsListCall) IfNoneMatch(entityTag string) *MobileAppsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileAppsListCall) Context(ctx context.Context) *MobileAppsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileAppsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35414,12 +26000,7 @@ func (c *MobileAppsListCall) Header() http.Header { } func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35436,16 +26017,15 @@ func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileApps.list" call. -// Exactly one of *MobileAppsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MobileAppsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileAppsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35453,17 +26033,17 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileAppsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35476,72 +26056,6 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves list of available mobile apps.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileApps.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "directories": { - // "description": "Select only apps from these directories.", - // "enum": [ - // "APPLE_APP_STORE", - // "GOOGLE_PLAY_STORE", - // "UNKNOWN" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only apps with these IDs.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"app*2015\" will return objects with names like \"app Jan 2018\", \"app Jan 2018\", or simply \"app 2018\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"app\" will match objects with name \"my app\", \"app 2018\", or simply \"app\".", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileApps", - // "response": { - // "$ref": "MobileAppsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -35549,7 +26063,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe // The provided context supersedes any context provided to the Context method. func (c *MobileAppsListCall) Pages(ctx context.Context, f func(*MobileAppsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -35565,8 +26079,6 @@ func (c *MobileAppsListCall) Pages(ctx context.Context, f func(*MobileAppsListRe } } -// method id "dfareporting.mobileCarriers.get": - type MobileCarriersGetCall struct { s *Service profileId int64 @@ -35578,6 +26090,9 @@ type MobileCarriersGetCall struct { } // Get: Gets one mobile carrier by ID. +// +// - id: Mobile carrier ID. +// - profileId: User profile ID associated with this request. func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGetCall { c := &MobileCarriersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35586,33 +26101,29 @@ func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersGetCall) Fields(s ...googleapi.Field) *MobileCarriersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersGetCall) IfNoneMatch(entityTag string) *MobileCarriersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersGetCall) Context(ctx context.Context) *MobileCarriersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35621,12 +26132,7 @@ func (c *MobileCarriersGetCall) Header() http.Header { } func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35644,16 +26150,14 @@ func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.get" call. -// Exactly one of *MobileCarrier or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileCarrier.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileCarrier.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35661,17 +26165,17 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarrier{ ServerResponse: googleapi.ServerResponse{ @@ -35684,42 +26188,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier return nil, err } return ret, nil - // { - // "description": "Gets one mobile carrier by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile carrier ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers/{id}", - // "response": { - // "$ref": "MobileCarrier" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileCarriers.list": +} type MobileCarriersListCall struct { s *Service @@ -35731,6 +26200,8 @@ type MobileCarriersListCall struct { } // List: Retrieves a list of mobile carriers. +// +// - profileId: User profile ID associated with this request. func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { c := &MobileCarriersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35738,33 +26209,29 @@ func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersListCall) Fields(s ...googleapi.Field) *MobileCarriersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersListCall) IfNoneMatch(entityTag string) *MobileCarriersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersListCall) Context(ctx context.Context) *MobileCarriersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35773,12 +26240,7 @@ func (c *MobileCarriersListCall) Header() http.Header { } func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35795,16 +26257,15 @@ func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.list" call. -// Exactly one of *MobileCarriersListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *MobileCarriersListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *MobileCarriersListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarriersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35812,17 +26273,17 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarriersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35835,34 +26296,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie return nil, err } return ret, nil - // { - // "description": "Retrieves a list of mobile carriers.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers", - // "response": { - // "$ref": "MobileCarriersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.get": +} type OperatingSystemVersionsGetCall struct { s *Service @@ -35875,6 +26309,9 @@ type OperatingSystemVersionsGetCall struct { } // Get: Gets one operating system version by ID. +// +// - id: Operating system version ID. +// - profileId: User profile ID associated with this request. func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *OperatingSystemVersionsGetCall { c := &OperatingSystemVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35883,33 +26320,29 @@ func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *Operati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsGetCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsGetCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsGetCall) Context(ctx context.Context) *OperatingSystemVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35918,12 +26351,7 @@ func (c *OperatingSystemVersionsGetCall) Header() http.Header { } func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35941,16 +26369,15 @@ func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.get" call. -// Exactly one of *OperatingSystemVersion or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OperatingSystemVersion.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersion.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35958,17 +26385,17 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersion{ ServerResponse: googleapi.ServerResponse{ @@ -35981,42 +26408,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper return nil, err } return ret, nil - // { - // "description": "Gets one operating system version by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Operating system version ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", - // "response": { - // "$ref": "OperatingSystemVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.list": +} type OperatingSystemVersionsListCall struct { s *Service @@ -36028,6 +26420,8 @@ type OperatingSystemVersionsListCall struct { } // List: Retrieves a list of operating system versions. +// +// - profileId: User profile ID associated with this request. func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemVersionsListCall { c := &OperatingSystemVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36035,33 +26429,29 @@ func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemV } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsListCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsListCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsListCall) Context(ctx context.Context) *OperatingSystemVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36070,12 +26460,7 @@ func (c *OperatingSystemVersionsListCall) Header() http.Header { } func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36092,17 +26477,15 @@ func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.list" call. -// Exactly one of *OperatingSystemVersionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemVersionsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersionsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36110,17 +26493,17 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36133,34 +26516,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating system versions.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions", - // "response": { - // "$ref": "OperatingSystemVersionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.get": +} type OperatingSystemsGetCall struct { s *Service @@ -36173,6 +26529,9 @@ type OperatingSystemsGetCall struct { } // Get: Gets one operating system by DART ID. +// +// - dartId: Operating system DART ID. +// - profileId: User profile ID associated with this request. func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingSystemsGetCall { c := &OperatingSystemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36181,33 +26540,29 @@ func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingS } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsGetCall) Fields(s ...googleapi.Field) *OperatingSystemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsGetCall) IfNoneMatch(entityTag string) *OperatingSystemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsGetCall) Context(ctx context.Context) *OperatingSystemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36216,12 +26571,7 @@ func (c *OperatingSystemsGetCall) Header() http.Header { } func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36239,16 +26589,15 @@ func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.get" call. -// Exactly one of *OperatingSystem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OperatingSystem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystem.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36256,17 +26605,17 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystem{ ServerResponse: googleapi.ServerResponse{ @@ -36279,42 +26628,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy return nil, err } return ret, nil - // { - // "description": "Gets one operating system by DART ID.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Operating system DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems/{dartId}", - // "response": { - // "$ref": "OperatingSystem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.list": +} type OperatingSystemsListCall struct { s *Service @@ -36326,6 +26640,8 @@ type OperatingSystemsListCall struct { } // List: Retrieves a list of operating systems. +// +// - profileId: User profile ID associated with this request. func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCall { c := &OperatingSystemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36333,33 +26649,29 @@ func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsListCall) Fields(s ...googleapi.Field) *OperatingSystemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsListCall) IfNoneMatch(entityTag string) *OperatingSystemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsListCall) Context(ctx context.Context) *OperatingSystemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36368,12 +26680,7 @@ func (c *OperatingSystemsListCall) Header() http.Header { } func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36390,16 +26697,15 @@ func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.list" call. -// Exactly one of *OperatingSystemsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36407,17 +26713,17 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36430,34 +26736,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating systems.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems", - // "response": { - // "$ref": "OperatingSystemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.get": +} type OrderDocumentsGetCall struct { s *Service @@ -36471,6 +26750,10 @@ type OrderDocumentsGetCall struct { } // Get: Gets one order document by ID. +// +// - id: Order document ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) *OrderDocumentsGetCall { c := &OrderDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36480,33 +26763,29 @@ func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsGetCall) Context(ctx context.Context) *OrderDocumentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36515,12 +26794,7 @@ func (c *OrderDocumentsGetCall) Header() http.Header { } func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36539,16 +26813,14 @@ func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.get" call. -// Exactly one of *OrderDocument or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OrderDocument.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderDocument.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36556,17 +26828,17 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocument{ ServerResponse: googleapi.ServerResponse{ @@ -36579,50 +26851,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument return nil, err } return ret, nil - // { - // "description": "Gets one order document by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order document ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - // "response": { - // "$ref": "OrderDocument" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.list": +} type OrderDocumentsListCall struct { s *Service @@ -36634,8 +26863,11 @@ type OrderDocumentsListCall struct { header_ http.Header } -// List: Retrieves a list of order documents, possibly filtered. This -// method supports paging. +// List: Retrieves a list of order documents, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDocumentsListCall { c := &OrderDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36643,15 +26875,15 @@ func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDoc return c } -// Approved sets the optional parameter "approved": Select only order -// documents that have been approved by at least one user. +// Approved sets the optional parameter "approved": Select only order documents +// that have been approved by at least one user. func (c *OrderDocumentsListCall) Approved(approved bool) *OrderDocumentsListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// Ids sets the optional parameter "ids": Select only order documents -// with these IDs. +// Ids sets the optional parameter "ids": Select only order documents with +// these IDs. func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { var ids_ []string for _, v := range ids { @@ -36661,15 +26893,15 @@ func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrderDocumentsListCall) MaxResults(maxResults int64) *OrderDocumentsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only order -// documents for specified orders. +// OrderId sets the optional parameter "orderId": Select only order documents +// for specified orders. func (c *OrderDocumentsListCall) OrderId(orderId ...int64) *OrderDocumentsListCall { var orderId_ []string for _, v := range orderId { @@ -36686,22 +26918,21 @@ func (c *OrderDocumentsListCall) PageToken(pageToken string) *OrderDocumentsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for order documents by name or ID. Wildcards (*) are -// allowed. For example, "orderdocument*2015" will return order -// documents with names like "orderdocument June 2015", "orderdocument -// April 2015", or simply "orderdocument 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "orderdocument" will match -// order documents with name "my orderdocument", "orderdocument 2015", -// or simply "orderdocument". +// SearchString sets the optional parameter "searchString": Allows searching +// for order documents by name or ID. Wildcards (*) are allowed. For example, +// "orderdocument*2015" will return order documents with names like +// "orderdocument June 2015", "orderdocument April 2015", or simply +// "orderdocument 2015". Most of the searches also add wildcards implicitly at +// the start and the end of the search string. For example, a search string of +// "orderdocument" will match order documents with name "my orderdocument", +// "orderdocument 2015", or simply "orderdocument". func (c *OrderDocumentsListCall) SearchString(searchString string) *OrderDocumentsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only order -// documents that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only order documents +// that are associated with these sites. func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall { var siteId_ []string for _, v := range siteId { @@ -36711,8 +26942,8 @@ func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -36723,8 +26954,7 @@ func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -36736,33 +26966,29 @@ func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsListCall) Context(ctx context.Context) *OrderDocumentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36771,12 +26997,7 @@ func (c *OrderDocumentsListCall) Header() http.Header { } func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36794,16 +27015,15 @@ func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.list" call. -// Exactly one of *OrderDocumentsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrderDocumentsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrderDocumentsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumentsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36811,17 +27031,17 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocumentsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36834,112 +27054,6 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen return nil, err } return ret, nil - // { - // "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "approved": { - // "description": "Select only order documents that have been approved by at least one user.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only order documents with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only order documents for specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for order documents by name or ID. Wildcards (*) are allowed. For example, \"orderdocument*2015\" will return order documents with names like \"orderdocument June 2015\", \"orderdocument April 2015\", or simply \"orderdocument 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"orderdocument\" will match order documents with name \"my orderdocument\", \"orderdocument 2015\", or simply \"orderdocument\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only order documents that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "response": { - // "$ref": "OrderDocumentsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -36947,7 +27061,7 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen // The provided context supersedes any context provided to the Context method. func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumentsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -36963,8 +27077,6 @@ func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumen } } -// method id "dfareporting.orders.get": - type OrdersGetCall struct { s *Service profileId int64 @@ -36977,6 +27089,10 @@ type OrdersGetCall struct { } // Get: Gets one order by ID. +// +// - id: Order ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for orders. func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersGetCall { c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36986,33 +27102,29 @@ func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37021,12 +27133,7 @@ func (c *OrdersGetCall) Header() http.Header { } func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37045,16 +27152,14 @@ func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Order.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37062,17 +27167,17 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Order{ ServerResponse: googleapi.ServerResponse{ @@ -37085,50 +27190,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return nil, err } return ret, nil - // { - // "description": "Gets one order by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.orders.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orders.list": +} type OrdersListCall struct { s *Service @@ -37140,8 +27202,11 @@ type OrdersListCall struct { header_ http.Header } -// List: Retrieves a list of orders, possibly filtered. This method -// supports paging. +// List: Retrieves a list of orders, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for orders. func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37149,8 +27214,7 @@ func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { return c } -// Ids sets the optional parameter "ids": Select only orders with these -// IDs. +// Ids sets the optional parameter "ids": Select only orders with these IDs. func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { var ids_ []string for _, v := range ids { @@ -37160,8 +27224,8 @@ func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -37174,20 +27238,20 @@ func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for orders by name or ID. Wildcards (*) are allowed. For -// example, "order*2015" will return orders with names like "order June -// 2015", "order April 2015", or simply "order 2015". Most of the -// searches also add wildcards implicitly at the start and the end of -// the search string. For example, a search string of "order" will match -// orders with name "my order", "order 2015", or simply "order". +// SearchString sets the optional parameter "searchString": Allows searching +// for orders by name or ID. Wildcards (*) are allowed. For example, +// "order*2015" will return orders with names like "order June 2015", "order +// April 2015", or simply "order 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "order" will match orders with name "my order", "order +// 2015", or simply "order". func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only orders that -// are associated with these site IDs. +// SiteId sets the optional parameter "siteId": Select only orders that are +// associated with these site IDs. func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { var siteId_ []string for _, v := range siteId { @@ -37197,8 +27261,8 @@ func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -37209,8 +27273,7 @@ func (c *OrdersListCall) SortField(sortField string) *OrdersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -37222,33 +27285,29 @@ func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37257,12 +27316,7 @@ func (c *OrdersListCall) Header() http.Header { } func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37280,16 +27334,15 @@ func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.list" call. -// Exactly one of *OrdersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37297,17 +27350,17 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37320,100 +27373,6 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.orders.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only orders with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, \"order*2015\" will return orders with names like \"order June 2015\", \"order April 2015\", or simply \"order 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"order\" will match orders with name \"my order\", \"order 2015\", or simply \"order\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only orders that are associated with these site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders", - // "response": { - // "$ref": "OrdersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -37421,7 +27380,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // The provided context supersedes any context provided to the Context method. func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -37437,8 +27396,6 @@ func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) } } -// method id "dfareporting.placementGroups.get": - type PlacementGroupsGetCall struct { s *Service profileId int64 @@ -37450,6 +27407,9 @@ type PlacementGroupsGetCall struct { } // Get: Gets one placement group by ID. +// +// - id: Placement group ID. +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroupsGetCall { c := &PlacementGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37458,33 +27418,29 @@ func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsGetCall) Fields(s ...googleapi.Field) *PlacementGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsGetCall) IfNoneMatch(entityTag string) *PlacementGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsGetCall) Context(ctx context.Context) *PlacementGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37493,12 +27449,7 @@ func (c *PlacementGroupsGetCall) Header() http.Header { } func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37516,16 +27467,14 @@ func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.get" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37533,17 +27482,17 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -37556,42 +27505,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro return nil, err } return ret, nil - // { - // "description": "Gets one placement group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups/{id}", - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.insert": +} type PlacementGroupsInsertCall struct { s *Service @@ -37603,6 +27517,8 @@ type PlacementGroupsInsertCall struct { } // Insert: Inserts a new placement group. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsInsertCall { c := &PlacementGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37611,23 +27527,21 @@ func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsInsertCall) Fields(s ...googleapi.Field) *PlacementGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsInsertCall) Context(ctx context.Context) *PlacementGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37636,18 +27550,12 @@ func (c *PlacementGroupsInsertCall) Header() http.Header { } func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -37660,16 +27568,14 @@ func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.insert" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37677,17 +27583,17 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -37700,37 +27606,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Inserts a new placement group.", - // "httpMethod": "POST", - // "id": "dfareporting.placementGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.list": +} type PlacementGroupsListCall struct { s *Service @@ -37741,16 +27617,18 @@ type PlacementGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of placement groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of placement groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall { c := &PlacementGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placement groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placement groups that belong to these advertisers. func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -37761,15 +27639,15 @@ func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Placeme } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementGroupsListCall) Archived(archived bool) *PlacementGroupsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// placement groups that belong to these campaigns. +// CampaignIds sets the optional parameter "campaignIds": Select only placement +// groups that belong to these campaigns. func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGroupsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -37779,9 +27657,8 @@ func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGr return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placement groups that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placement groups that are associated with these content categories. func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementGroupsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -37791,9 +27668,8 @@ func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64 return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placement groups that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placement groups that are associated with these directory sites. func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementGroupsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -37803,8 +27679,8 @@ func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *P return c } -// Ids sets the optional parameter "ids": Select only placement groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only placement groups with +// these IDs. func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { var ids_ []string for _, v := range ids { @@ -37814,16 +27690,16 @@ func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MaxEndDate(maxEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementGroupsListCall) MaxResults(maxResults int64) *PlacementGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -37837,17 +27713,17 @@ func (c *PlacementGroupsListCall) MaxStartDate(maxStartDate string) *PlacementGr return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinEndDate(minEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinStartDate(minStartDate string) *PlacementGroupsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -37860,13 +27736,13 @@ func (c *PlacementGroupsListCall) PageToken(pageToken string) *PlacementGroupsLi return c } -// PlacementGroupType sets the optional parameter "placementGroupType": -// Select only placement groups belonging with this group type. A -// package is a simple group of placements that acts as a single pricing -// point for a group of tags. A roadblock is a group of placements that -// not only acts as a single pricing point but also assumes that all the -// tags in it will be served at the same time. A roadblock requires one -// of its assigned placements to be marked as primary for reporting. +// PlacementGroupType sets the optional parameter "placementGroupType": Select +// only placement groups belonging with this group type. A package is a simple +// group of placements that acts as a single pricing point for a group of tags. +// A roadblock is a group of placements that not only acts as a single pricing +// point but also assumes that all the tags in it will be served at the same +// time. A roadblock requires one of its assigned placements to be marked as +// primary for reporting. // // Possible values: // @@ -37877,9 +27753,9 @@ func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placement groups that are -// associated with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placement groups that are associated with these placement +// strategies. func (c *PlacementGroupsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementGroupsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -37905,22 +27781,21 @@ func (c *PlacementGroupsListCall) PricingTypes(pricingTypes ...string) *Placemen return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placement groups by name or ID. Wildcards (*) are -// allowed. For example, "placement*2015" will return placement groups -// with names like "placement group June 2015", "placement group May -// 2015", or simply "placements 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementgroup" will match placement -// groups with name "my placementgroup", "placementgroup 2015", or -// simply "placementgroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for placement groups by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placement groups with names like "placement +// group June 2015", "placement group May 2015", or simply "placements 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "placementgroup" will +// match placement groups with name "my placementgroup", "placementgroup 2015", +// or simply "placementgroup". func (c *PlacementGroupsListCall) SearchString(searchString string) *PlacementGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placement -// groups that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placement groups +// that are associated with these sites. func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsListCall { var siteIds_ []string for _, v := range siteIds { @@ -37930,8 +27805,8 @@ func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsList return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -37942,8 +27817,7 @@ func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsLi return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -37955,33 +27829,29 @@ func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsLi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsListCall) Fields(s ...googleapi.Field) *PlacementGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsListCall) IfNoneMatch(entityTag string) *PlacementGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsListCall) Context(ctx context.Context) *PlacementGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37990,12 +27860,7 @@ func (c *PlacementGroupsListCall) Header() http.Header { } func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38012,16 +27877,15 @@ func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.list" call. -// Exactly one of *PlacementGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlacementGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlacementGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38029,17 +27893,17 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -38052,187 +27916,6 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placement groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placement groups that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placement groups that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placement groups that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placement groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "800", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "800", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementGroupType": { - // "description": "Select only placement groups belonging with this group type. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting.", - // "enum": [ - // "PLACEMENT_PACKAGE", - // "PLACEMENT_ROADBLOCK" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placement groups that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placement groups with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPM_ACTIVEVIEW", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placement groups with names like \"placement group June 2015\", \"placement group May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementgroup\" will match placement groups with name \"my placementgroup\", \"placementgroup 2015\", or simply \"placementgroup\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placement groups that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "response": { - // "$ref": "PlacementGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -38240,7 +27923,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // The provided context supersedes any context provided to the Context method. func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -38256,8 +27939,6 @@ func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGr } } -// method id "dfareporting.placementGroups.patch": - type PlacementGroupsPatchCall struct { s *Service profileId int64 @@ -38267,8 +27948,11 @@ type PlacementGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement group. This method supports -// patch semantics. +// Patch: Updates an existing placement group. This method supports patch +// semantics. +// +// - id: Placement group ID. +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup *PlacementGroup) *PlacementGroupsPatchCall { c := &PlacementGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38278,23 +27962,21 @@ func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsPatchCall) Fields(s ...googleapi.Field) *PlacementGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsPatchCall) Context(ctx context.Context) *PlacementGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38303,18 +27985,12 @@ func (c *PlacementGroupsPatchCall) Header() http.Header { } func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -38327,16 +28003,14 @@ func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.patch" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38344,17 +28018,17 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38367,45 +28041,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.update": +} type PlacementGroupsUpdateCall struct { s *Service @@ -38417,6 +28053,8 @@ type PlacementGroupsUpdateCall struct { } // Update: Updates an existing placement group. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Update(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsUpdateCall { c := &PlacementGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38425,23 +28063,21 @@ func (r *PlacementGroupsService) Update(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsUpdateCall) Fields(s ...googleapi.Field) *PlacementGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsUpdateCall) Context(ctx context.Context) *PlacementGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38450,18 +28086,12 @@ func (c *PlacementGroupsUpdateCall) Header() http.Header { } func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -38474,16 +28104,14 @@ func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.update" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38491,17 +28119,17 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38514,37 +28142,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group.", - // "httpMethod": "PUT", - // "id": "dfareporting.placementGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.delete": +} type PlacementStrategiesDeleteCall struct { s *Service @@ -38556,6 +28154,9 @@ type PlacementStrategiesDeleteCall struct { } // Delete: Deletes an existing placement strategy. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *PlacementStrategiesDeleteCall { c := &PlacementStrategiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38564,23 +28165,21 @@ func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesDeleteCall) Fields(s ...googleapi.Field) *PlacementStrategiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesDeleteCall) Context(ctx context.Context) *PlacementStrategiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38589,12 +28188,7 @@ func (c *PlacementStrategiesDeleteCall) Header() http.Header { } func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -38609,7 +28203,7 @@ func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.delete" call. @@ -38621,42 +28215,10 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing placement strategy.", - // "httpMethod": "DELETE", - // "id": "dfareporting.placementStrategies.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.get": +} type PlacementStrategiesGetCall struct { s *Service @@ -38669,6 +28231,9 @@ type PlacementStrategiesGetCall struct { } // Get: Gets one placement strategy by ID. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementStrategiesGetCall { c := &PlacementStrategiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38677,33 +28242,29 @@ func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementSt } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesGetCall) Fields(s ...googleapi.Field) *PlacementStrategiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesGetCall) IfNoneMatch(entityTag string) *PlacementStrategiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesGetCall) Context(ctx context.Context) *PlacementStrategiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38712,12 +28273,7 @@ func (c *PlacementStrategiesGetCall) Header() http.Header { } func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38735,16 +28291,15 @@ func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.get" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38752,17 +28307,17 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -38775,42 +28330,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Gets one placement strategy by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.insert": +} type PlacementStrategiesInsertCall struct { s *Service @@ -38822,6 +28342,8 @@ type PlacementStrategiesInsertCall struct { } // Insert: Inserts a new placement strategy. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesInsertCall { c := &PlacementStrategiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38830,23 +28352,21 @@ func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesInsertCall) Fields(s ...googleapi.Field) *PlacementStrategiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesInsertCall) Context(ctx context.Context) *PlacementStrategiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38855,18 +28375,12 @@ func (c *PlacementStrategiesInsertCall) Header() http.Header { } func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -38879,16 +28393,15 @@ func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.insert" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38896,17 +28409,17 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -38919,37 +28432,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Inserts a new placement strategy.", - // "httpMethod": "POST", - // "id": "dfareporting.placementStrategies.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.list": +} type PlacementStrategiesListCall struct { s *Service @@ -38960,16 +28443,18 @@ type PlacementStrategiesListCall struct { header_ http.Header } -// List: Retrieves a list of placement strategies, possibly filtered. -// This method supports paging. +// List: Retrieves a list of placement strategies, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesListCall { c := &PlacementStrategiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only placement -// strategies with these IDs. +// Ids sets the optional parameter "ids": Select only placement strategies with +// these IDs. func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesListCall { var ids_ []string for _, v := range ids { @@ -38979,8 +28464,8 @@ func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementStrategiesListCall) MaxResults(maxResults int64) *PlacementStrategiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -38993,22 +28478,21 @@ func (c *PlacementStrategiesListCall) PageToken(pageToken string) *PlacementStra return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "placementstrategy*2015" will return objects with names like -// "placementstrategy June 2015", "placementstrategy April 2015", or -// simply "placementstrategy 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementstrategy" will match -// objects with name "my placementstrategy", "placementstrategy 2015", -// or simply "placementstrategy". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "placementstrategy*2015" will return objects with names like +// "placementstrategy June 2015", "placementstrategy April 2015", or simply +// "placementstrategy 2015". Most of the searches also add wildcards implicitly +// at the start and the end of the search string. For example, a search string +// of "placementstrategy" will match objects with name "my placementstrategy", +// "placementstrategy 2015", or simply "placementstrategy". func (c *PlacementStrategiesListCall) SearchString(searchString string) *PlacementStrategiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -39019,8 +28503,7 @@ func (c *PlacementStrategiesListCall) SortField(sortField string) *PlacementStra return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -39032,33 +28515,29 @@ func (c *PlacementStrategiesListCall) SortOrder(sortOrder string) *PlacementStra } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesListCall) Fields(s ...googleapi.Field) *PlacementStrategiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesListCall) IfNoneMatch(entityTag string) *PlacementStrategiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesListCall) Context(ctx context.Context) *PlacementStrategiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39067,12 +28546,7 @@ func (c *PlacementStrategiesListCall) Header() http.Header { } func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39089,16 +28563,15 @@ func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.list" call. -// Exactly one of *PlacementStrategiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementStrategiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategiesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*PlacementStrategiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39106,17 +28579,17 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -39129,85 +28602,6 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only placement strategies with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"placementstrategy*2015\" will return objects with names like \"placementstrategy June 2015\", \"placementstrategy April 2015\", or simply \"placementstrategy 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementstrategy\" will match objects with name \"my placementstrategy\", \"placementstrategy 2015\", or simply \"placementstrategy\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "response": { - // "$ref": "PlacementStrategiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -39215,7 +28609,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // The provided context supersedes any context provided to the Context method. func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*PlacementStrategiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -39231,8 +28625,6 @@ func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*Placeme } } -// method id "dfareporting.placementStrategies.patch": - type PlacementStrategiesPatchCall struct { s *Service profileId int64 @@ -39242,8 +28634,11 @@ type PlacementStrategiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement strategy. This method supports -// patch semantics. +// Patch: Updates an existing placement strategy. This method supports patch +// semantics. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placementstrategy *PlacementStrategy) *PlacementStrategiesPatchCall { c := &PlacementStrategiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39253,23 +28648,21 @@ func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placements } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesPatchCall) Fields(s ...googleapi.Field) *PlacementStrategiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesPatchCall) Context(ctx context.Context) *PlacementStrategiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39278,18 +28671,12 @@ func (c *PlacementStrategiesPatchCall) Header() http.Header { } func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -39302,16 +28689,15 @@ func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.patch" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39319,17 +28705,17 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39342,45 +28728,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementStrategies.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.update": +} type PlacementStrategiesUpdateCall struct { s *Service @@ -39392,6 +28740,8 @@ type PlacementStrategiesUpdateCall struct { } // Update: Updates an existing placement strategy. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesUpdateCall { c := &PlacementStrategiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39400,23 +28750,21 @@ func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesUpdateCall) Fields(s ...googleapi.Field) *PlacementStrategiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesUpdateCall) Context(ctx context.Context) *PlacementStrategiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39425,18 +28773,12 @@ func (c *PlacementStrategiesUpdateCall) Header() http.Header { } func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -39449,16 +28791,15 @@ func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.update" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39466,17 +28807,17 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39489,37 +28830,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy.", - // "httpMethod": "PUT", - // "id": "dfareporting.placementStrategies.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.generatetags": +} type PlacementsGeneratetagsCall struct { s *Service @@ -39530,21 +28841,23 @@ type PlacementsGeneratetagsCall struct { } // Generatetags: Generates tags for a placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Generatetags(profileId int64) *PlacementsGeneratetagsCall { c := &PlacementsGeneratetagsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// CampaignId sets the optional parameter "campaignId": Generate -// placements belonging to this campaign. This is a required field. +// CampaignId sets the optional parameter "campaignId": Generate placements +// belonging to this campaign. This is a required field. func (c *PlacementsGeneratetagsCall) CampaignId(campaignId int64) *PlacementsGeneratetagsCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// PlacementIds sets the optional parameter "placementIds": Generate -// tags for these placements. +// PlacementIds sets the optional parameter "placementIds": Generate tags for +// these placements. func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *PlacementsGeneratetagsCall { var placementIds_ []string for _, v := range placementIds { @@ -39554,11 +28867,10 @@ func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *Placem return c } -// TagFormats sets the optional parameter "tagFormats": Tag formats to -// generate for these placements. +// TagFormats sets the optional parameter "tagFormats": Tag formats to generate +// for these placements. // -// Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 -// placements. +// Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements. // // Possible values: // @@ -39587,23 +28899,21 @@ func (c *PlacementsGeneratetagsCall) TagFormats(tagFormats ...string) *Placement } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGeneratetagsCall) Fields(s ...googleapi.Field) *PlacementsGeneratetagsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGeneratetagsCall) Context(ctx context.Context) *PlacementsGeneratetagsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGeneratetagsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39612,12 +28922,7 @@ func (c *PlacementsGeneratetagsCall) Header() http.Header { } func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -39631,16 +28936,15 @@ func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.generatetags" call. -// Exactly one of *PlacementsGenerateTagsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*PlacementsGenerateTagsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39648,17 +28952,17 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsGenerateTagsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -39671,95 +28975,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Generates tags for a placement.", - // "httpMethod": "POST", - // "id": "dfareporting.placements.generatetags", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Generate placements belonging to this campaign. This is a required field.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Generate tags for these placements.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tagFormats": { - // "description": "Tag formats to generate for these placements.\n\nNote: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.", - // "enum": [ - // "PLACEMENT_TAG_CLICK_COMMANDS", - // "PLACEMENT_TAG_IFRAME_ILAYER", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4", - // "PLACEMENT_TAG_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_JAVASCRIPT", - // "PLACEMENT_TAG_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_STANDARD", - // "PLACEMENT_TAG_TRACKING", - // "PLACEMENT_TAG_TRACKING_IFRAME", - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/generatetags", - // "response": { - // "$ref": "PlacementsGenerateTagsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.get": +} type PlacementsGetCall struct { s *Service @@ -39772,6 +28988,9 @@ type PlacementsGetCall struct { } // Get: Gets one placement by ID. +// +// - id: Placement ID. +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { c := &PlacementsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39780,33 +28999,29 @@ func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGetCall) Fields(s ...googleapi.Field) *PlacementsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsGetCall) IfNoneMatch(entityTag string) *PlacementsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGetCall) Context(ctx context.Context) *PlacementsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39815,12 +29030,7 @@ func (c *PlacementsGetCall) Header() http.Header { } func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39838,16 +29048,14 @@ func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.get" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39855,17 +29063,17 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -39878,42 +29086,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) return nil, err } return ret, nil - // { - // "description": "Gets one placement by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placements.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/{id}", - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.insert": +} type PlacementsInsertCall struct { s *Service @@ -39925,6 +29098,8 @@ type PlacementsInsertCall struct { } // Insert: Inserts a new placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Insert(profileId int64, placement *Placement) *PlacementsInsertCall { c := &PlacementsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39933,23 +29108,21 @@ func (r *PlacementsService) Insert(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsInsertCall) Fields(s ...googleapi.Field) *PlacementsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsInsertCall) Context(ctx context.Context) *PlacementsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39958,18 +29131,12 @@ func (c *PlacementsInsertCall) Header() http.Header { } func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -39982,16 +29149,14 @@ func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.insert" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39999,17 +29164,17 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40022,37 +29187,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Inserts a new placement.", - // "httpMethod": "POST", - // "id": "dfareporting.placements.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.list": +} type PlacementsListCall struct { s *Service @@ -40065,14 +29200,16 @@ type PlacementsListCall struct { // List: Retrieves a list of placements, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) List(profileId int64) *PlacementsListCall { c := &PlacementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placements that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placements that belong to these advertisers. func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -40083,8 +29220,8 @@ func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsLi } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementsListCall) Archived(archived bool) *PlacementsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c @@ -40101,13 +29238,12 @@ func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCa return c } -// Compatibilities sets the optional parameter "compatibilities": Select -// only placements that are associated with these compatibilities. -// DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop -// or on mobile devices for regular or interstitial ads respectively. -// APP and APP_INTERSTITIAL are for rendering in mobile apps. -// IN_STREAM_VIDEO refers to rendering in in-stream video ads developed -// with the VAST standard. +// Compatibilities sets the optional parameter "compatibilities": Select only +// placements that are associated with these compatibilities. DISPLAY and +// DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile +// devices for regular or interstitial ads respectively. APP and +// APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to +// rendering in in-stream video ads developed with the VAST standard. // // Possible values: // @@ -40122,9 +29258,8 @@ func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *Placeme return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placements that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placements that are associated with these content categories. func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -40134,9 +29269,8 @@ func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *Pl return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placements that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placements that are associated with these directory sites. func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -40146,8 +29280,8 @@ func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *Placem return c } -// GroupIds sets the optional parameter "groupIds": Select only -// placements that belong to these placement groups. +// GroupIds sets the optional parameter "groupIds": Select only placements that +// belong to these placement groups. func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { var groupIds_ []string for _, v := range groupIds { @@ -40157,8 +29291,8 @@ func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { return c } -// Ids sets the optional parameter "ids": Select only placements with -// these IDs. +// Ids sets the optional parameter "ids": Select only placements with these +// IDs. func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { var ids_ []string for _, v := range ids { @@ -40168,16 +29302,16 @@ func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MaxEndDate(maxEndDate string) *PlacementsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementsListCall) MaxResults(maxResults int64) *PlacementsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -40191,17 +29325,17 @@ func (c *PlacementsListCall) MaxStartDate(maxStartDate string) *PlacementsListCa return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinEndDate(minEndDate string) *PlacementsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinStartDate(minStartDate string) *PlacementsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -40214,8 +29348,8 @@ func (c *PlacementsListCall) PageToken(pageToken string) *PlacementsListCall { return c } -// PaymentSource sets the optional parameter "paymentSource": Select -// only placements with this payment source. +// PaymentSource sets the optional parameter "paymentSource": Select only +// placements with this payment source. // // Possible values: // @@ -40226,9 +29360,8 @@ func (c *PlacementsListCall) PaymentSource(paymentSource string) *PlacementsList return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placements that are associated -// with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placements that are associated with these placement strategies. func (c *PlacementsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -40254,21 +29387,21 @@ func (c *PlacementsListCall) PricingTypes(pricingTypes ...string) *PlacementsLis return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placements by name or ID. Wildcards (*) are allowed. -// For example, "placement*2015" will return placements with names like -// "placement June 2015", "placement May 2015", or simply "placements -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "placement" will match placements with name "my placement", -// "placement 2015", or simply "placement". +// SearchString sets the optional parameter "searchString": Allows searching +// for placements by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placements with names like "placement June +// 2015", "placement May 2015", or simply "placements 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "placement" will match +// placements with name "my placement", "placement 2015", or simply +// "placement". func (c *PlacementsListCall) SearchString(searchString string) *PlacementsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placements -// that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placements that +// are associated with these sites. func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { var siteIds_ []string for _, v := range siteIds { @@ -40278,8 +29411,8 @@ func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { return c } -// SizeIds sets the optional parameter "sizeIds": Select only placements -// that are associated with these sizes. +// SizeIds sets the optional parameter "sizeIds": Select only placements that +// are associated with these sizes. func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -40289,8 +29422,8 @@ func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -40301,8 +29434,7 @@ func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -40314,33 +29446,29 @@ func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsListCall) Fields(s ...googleapi.Field) *PlacementsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsListCall) IfNoneMatch(entityTag string) *PlacementsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsListCall) Context(ctx context.Context) *PlacementsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40349,12 +29477,7 @@ func (c *PlacementsListCall) Header() http.Header { } func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40371,16 +29494,15 @@ func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.list" call. -// Exactly one of *PlacementsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40388,17 +29510,17 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -40411,223 +29533,6 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placements.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placements that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placements that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibilities": { - // "description": "Select only placements that are associated with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.", - // "enum": [ - // "APP", - // "APP_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "IN_STREAM_AUDIO", - // "IN_STREAM_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placements that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placements that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupIds": { - // "description": "Select only placements that belong to these placement groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placements with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "paymentSource": { - // "description": "Select only placements with this payment source.", - // "enum": [ - // "PLACEMENT_AGENCY_PAID", - // "PLACEMENT_PUBLISHER_PAID" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placements that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placements with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPM_ACTIVEVIEW", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placements with names like \"placement June 2015\", \"placement May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placement\" will match placements with name \"my placement\", \"placement 2015\", or simply \"placement\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placements that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only placements that are associated with these sizes.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "response": { - // "$ref": "PlacementsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -40635,7 +29540,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // The provided context supersedes any context provided to the Context method. func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -40651,8 +29556,6 @@ func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListRe } } -// method id "dfareporting.placements.patch": - type PlacementsPatchCall struct { s *Service profileId int64 @@ -40662,8 +29565,10 @@ type PlacementsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement. This method supports patch -// semantics. +// Patch: Updates an existing placement. This method supports patch semantics. +// +// - id: Placement ID. +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placement) *PlacementsPatchCall { c := &PlacementsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40673,23 +29578,21 @@ func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsPatchCall) Fields(s ...googleapi.Field) *PlacementsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsPatchCall) Context(ctx context.Context) *PlacementsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40698,18 +29601,12 @@ func (c *PlacementsPatchCall) Header() http.Header { } func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -40722,16 +29619,14 @@ func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.patch" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40739,17 +29634,17 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40762,45 +29657,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro return nil, err } return ret, nil - // { - // "description": "Updates an existing placement. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placements.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.update": +} type PlacementsUpdateCall struct { s *Service @@ -40812,6 +29669,8 @@ type PlacementsUpdateCall struct { } // Update: Updates an existing placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Update(profileId int64, placement *Placement) *PlacementsUpdateCall { c := &PlacementsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40820,23 +29679,21 @@ func (r *PlacementsService) Update(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsUpdateCall) Fields(s ...googleapi.Field) *PlacementsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsUpdateCall) Context(ctx context.Context) *PlacementsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40845,18 +29702,12 @@ func (c *PlacementsUpdateCall) Header() http.Header { } func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -40869,16 +29720,14 @@ func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.update" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40886,17 +29735,17 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40909,37 +29758,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Updates an existing placement.", - // "httpMethod": "PUT", - // "id": "dfareporting.placements.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.get": +} type PlatformTypesGetCall struct { s *Service @@ -40952,6 +29771,9 @@ type PlatformTypesGetCall struct { } // Get: Gets one platform type by ID. +// +// - id: Platform type ID. +// - profileId: User profile ID associated with this request. func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetCall { c := &PlatformTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40960,33 +29782,29 @@ func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesGetCall) Fields(s ...googleapi.Field) *PlatformTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesGetCall) IfNoneMatch(entityTag string) *PlatformTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesGetCall) Context(ctx context.Context) *PlatformTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40995,12 +29813,7 @@ func (c *PlatformTypesGetCall) Header() http.Header { } func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41018,16 +29831,14 @@ func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.get" call. -// Exactly one of *PlatformType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlatformType.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlatformType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41035,17 +29846,17 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformType{ ServerResponse: googleapi.ServerResponse{ @@ -41058,42 +29869,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, return nil, err } return ret, nil - // { - // "description": "Gets one platform type by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Platform type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes/{id}", - // "response": { - // "$ref": "PlatformType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.list": +} type PlatformTypesListCall struct { s *Service @@ -41105,6 +29881,8 @@ type PlatformTypesListCall struct { } // List: Retrieves a list of platform types. +// +// - profileId: User profile ID associated with this request. func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { c := &PlatformTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41112,33 +29890,29 @@ func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesListCall) Fields(s ...googleapi.Field) *PlatformTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesListCall) IfNoneMatch(entityTag string) *PlatformTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesListCall) Context(ctx context.Context) *PlatformTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41147,12 +29921,7 @@ func (c *PlatformTypesListCall) Header() http.Header { } func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41169,16 +29938,15 @@ func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.list" call. -// Exactly one of *PlatformTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlatformTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlatformTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41186,17 +29954,17 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41209,34 +29977,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes return nil, err } return ret, nil - // { - // "description": "Retrieves a list of platform types.", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes", - // "response": { - // "$ref": "PlatformTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.get": +} type PostalCodesGetCall struct { s *Service @@ -41249,6 +29990,9 @@ type PostalCodesGetCall struct { } // Get: Gets one postal code by ID. +// +// - code: Postal code ID. +// - profileId: User profile ID associated with this request. func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCall { c := &PostalCodesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41257,33 +30001,29 @@ func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesGetCall) Fields(s ...googleapi.Field) *PostalCodesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesGetCall) IfNoneMatch(entityTag string) *PostalCodesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesGetCall) Context(ctx context.Context) *PostalCodesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41292,12 +30032,7 @@ func (c *PostalCodesGetCall) Header() http.Header { } func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41315,16 +30050,14 @@ func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "code": c.code, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.get" call. -// Exactly one of *PostalCode or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PostalCode.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PostalCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41332,17 +30065,17 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCode{ ServerResponse: googleapi.ServerResponse{ @@ -41355,41 +30088,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro return nil, err } return ret, nil - // { - // "description": "Gets one postal code by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.get", - // "parameterOrder": [ - // "profileId", - // "code" - // ], - // "parameters": { - // "code": { - // "description": "Postal code ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes/{code}", - // "response": { - // "$ref": "PostalCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.list": +} type PostalCodesListCall struct { s *Service @@ -41401,6 +30100,8 @@ type PostalCodesListCall struct { } // List: Retrieves a list of postal codes. +// +// - profileId: User profile ID associated with this request. func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { c := &PostalCodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41408,33 +30109,29 @@ func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesListCall) Fields(s ...googleapi.Field) *PostalCodesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesListCall) IfNoneMatch(entityTag string) *PostalCodesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesListCall) Context(ctx context.Context) *PostalCodesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41443,12 +30140,7 @@ func (c *PostalCodesListCall) Header() http.Header { } func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41465,16 +30157,15 @@ func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.list" call. -// Exactly one of *PostalCodesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *PostalCodesListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41482,17 +30173,17 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCodesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41505,34 +30196,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of postal codes.", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes", - // "response": { - // "$ref": "PostalCodesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.get": +} type ProjectsGetCall struct { s *Service @@ -41545,6 +30209,9 @@ type ProjectsGetCall struct { } // Get: Gets one project by ID. +// +// - id: Project ID. +// - profileId: User profile ID associated with this request. func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41553,33 +30220,29 @@ func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41588,12 +30251,7 @@ func (c *ProjectsGetCall) Header() http.Header { } func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41611,16 +30269,14 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.get" call. -// Exactly one of *Project or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Project.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Project.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41628,17 +30284,17 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Project{ ServerResponse: googleapi.ServerResponse{ @@ -41651,42 +30307,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return nil, err } return ret, nil - // { - // "description": "Gets one project by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.projects.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Project ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{id}", - // "response": { - // "$ref": "Project" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.list": +} type ProjectsListCall struct { s *Service @@ -41697,16 +30318,18 @@ type ProjectsListCall struct { header_ http.Header } -// List: Retrieves a list of projects, possibly filtered. This method -// supports paging. +// List: Retrieves a list of projects, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *ProjectsService) List(profileId int64) *ProjectsListCall { c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only projects with these advertiser IDs. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// projects with these advertiser IDs. func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -41716,8 +30339,7 @@ func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCa return c } -// Ids sets the optional parameter "ids": Select only projects with -// these IDs. +// Ids sets the optional parameter "ids": Select only projects with these IDs. func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { var ids_ []string for _, v := range ids { @@ -41727,8 +30349,8 @@ func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ProjectsListCall) MaxResults(maxResults int64) *ProjectsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -41741,21 +30363,20 @@ func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for projects by name or ID. Wildcards (*) are allowed. For -// example, "project*2015" will return projects with names like "project -// June 2015", "project April 2015", or simply "project 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "project" will -// match projects with name "my project", "project 2015", or simply -// "project". +// SearchString sets the optional parameter "searchString": Allows searching +// for projects by name or ID. Wildcards (*) are allowed. For example, +// "project*2015" will return projects with names like "project June 2015", +// "project April 2015", or simply "project 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "project" will match projects with name "my +// project", "project 2015", or simply "project". func (c *ProjectsListCall) SearchString(searchString string) *ProjectsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -41766,8 +30387,7 @@ func (c *ProjectsListCall) SortField(sortField string) *ProjectsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -41779,33 +30399,29 @@ func (c *ProjectsListCall) SortOrder(sortOrder string) *ProjectsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsListCall) Fields(s ...googleapi.Field) *ProjectsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsListCall) Context(ctx context.Context) *ProjectsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41814,12 +30430,7 @@ func (c *ProjectsListCall) Header() http.Header { } func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41836,16 +30447,15 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.list" call. -// Exactly one of *ProjectsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ProjectsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProjectsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41853,17 +30463,17 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProjectsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41876,92 +30486,6 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of projects, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.projects.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only projects with these advertiser IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only projects with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, \"project*2015\" will return projects with names like \"project June 2015\", \"project April 2015\", or simply \"project 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"project\" will match projects with name \"my project\", \"project 2015\", or simply \"project\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects", - // "response": { - // "$ref": "ProjectsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -41969,7 +30493,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // The provided context supersedes any context provided to the Context method. func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -41985,8 +30509,6 @@ func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListRespon } } -// method id "dfareporting.regions.list": - type RegionsListCall struct { s *Service profileId int64 @@ -41997,6 +30519,8 @@ type RegionsListCall struct { } // List: Retrieves a list of regions. +// +// - profileId: User profile ID associated with this request. func (r *RegionsService) List(profileId int64) *RegionsListCall { c := &RegionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42004,33 +30528,29 @@ func (r *RegionsService) List(profileId int64) *RegionsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RegionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42039,12 +30559,7 @@ func (c *RegionsListCall) Header() http.Header { } func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42061,16 +30576,15 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.regions.list" call. -// Exactly one of *RegionsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RegionsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RegionsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42078,17 +30592,17 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RegionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42101,34 +30615,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse return nil, err } return ret, nil - // { - // "description": "Retrieves a list of regions.", - // "httpMethod": "GET", - // "id": "dfareporting.regions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/regions", - // "response": { - // "$ref": "RegionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.get": +} type RemarketingListSharesGetCall struct { s *Service @@ -42141,6 +30628,9 @@ type RemarketingListSharesGetCall struct { } // Get: Gets one remarketing list share by remarketing list ID. +// +// - profileId: User profile ID associated with this request. +// - remarketingListId: Remarketing list ID. func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId int64) *RemarketingListSharesGetCall { c := &RemarketingListSharesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42149,33 +30639,29 @@ func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId in } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesGetCall) Fields(s ...googleapi.Field) *RemarketingListSharesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListSharesGetCall) IfNoneMatch(entityTag string) *RemarketingListSharesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesGetCall) Context(ctx context.Context) *RemarketingListSharesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42184,12 +30670,7 @@ func (c *RemarketingListSharesGetCall) Header() http.Header { } func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42207,16 +30688,15 @@ func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "remarketingListId": strconv.FormatInt(c.remarketingListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.get" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42224,17 +30704,17 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -42247,42 +30727,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list share by remarketing list ID.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingListShares.get", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.patch": +} type RemarketingListSharesPatchCall struct { s *Service @@ -42293,8 +30738,11 @@ type RemarketingListSharesPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list share. This method -// supports patch semantics. +// Patch: Updates an existing remarketing list share. This method supports +// patch semantics. +// +// - profileId: User profile ID associated with this request. +// - remarketingListId: Remarketing list ID. func (r *RemarketingListSharesService) Patch(profileId int64, remarketingListId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesPatchCall { c := &RemarketingListSharesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42304,23 +30752,21 @@ func (r *RemarketingListSharesService) Patch(profileId int64, remarketingListId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesPatchCall) Fields(s ...googleapi.Field) *RemarketingListSharesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesPatchCall) Context(ctx context.Context) *RemarketingListSharesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42329,18 +30775,12 @@ func (c *RemarketingListSharesPatchCall) Header() http.Header { } func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -42353,16 +30793,15 @@ func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.patch" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42370,17 +30809,17 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -42393,45 +30832,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingListShares.patch", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.update": +} type RemarketingListSharesUpdateCall struct { s *Service @@ -42443,6 +30844,8 @@ type RemarketingListSharesUpdateCall struct { } // Update: Updates an existing remarketing list share. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesUpdateCall { c := &RemarketingListSharesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42451,23 +30854,21 @@ func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistsh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesUpdateCall) Fields(s ...googleapi.Field) *RemarketingListSharesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesUpdateCall) Context(ctx context.Context) *RemarketingListSharesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42476,18 +30877,12 @@ func (c *RemarketingListSharesUpdateCall) Header() http.Header { } func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -42500,16 +30895,15 @@ func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.update" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42517,17 +30911,17 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -42540,37 +30934,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share.", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingListShares.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.get": +} type RemarketingListsGetCall struct { s *Service @@ -42583,6 +30947,9 @@ type RemarketingListsGetCall struct { } // Get: Gets one remarketing list by ID. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingListsGetCall { c := &RemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42591,33 +30958,29 @@ func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsGetCall) Fields(s ...googleapi.Field) *RemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsGetCall) IfNoneMatch(entityTag string) *RemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsGetCall) Context(ctx context.Context) *RemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42626,12 +30989,7 @@ func (c *RemarketingListsGetCall) Header() http.Header { } func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42649,16 +31007,15 @@ func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.get" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42666,17 +31023,17 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -42689,42 +31046,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists/{id}", - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.insert": +} type RemarketingListsInsertCall struct { s *Service @@ -42736,6 +31058,8 @@ type RemarketingListsInsertCall struct { } // Insert: Inserts a new remarketing list. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *RemarketingList) *RemarketingListsInsertCall { c := &RemarketingListsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42744,23 +31068,21 @@ func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsInsertCall) Fields(s ...googleapi.Field) *RemarketingListsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsInsertCall) Context(ctx context.Context) *RemarketingListsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42769,18 +31091,12 @@ func (c *RemarketingListsInsertCall) Header() http.Header { } func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -42793,16 +31109,15 @@ func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.insert" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42810,17 +31125,17 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -42833,37 +31148,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Inserts a new remarketing list.", - // "httpMethod": "POST", - // "id": "dfareporting.remarketingLists.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.list": +} type RemarketingListsListCall struct { s *Service @@ -42874,8 +31159,11 @@ type RemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of remarketing lists, possibly filtered. This -// method supports paging. +// List: Retrieves a list of remarketing lists, possibly filtered. This method +// supports paging. +// +// - advertiserId: Select only remarketing lists owned by this advertiser. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *RemarketingListsListCall { c := &RemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42883,36 +31171,35 @@ func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *Rem return c } -// Active sets the optional parameter "active": Select only active or -// only inactive remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive remarketing lists. func (c *RemarketingListsListCall) Active(active bool) *RemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Select only remarketing lists that have this -// floodlight activity ID. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Select only remarketing lists that have this floodlight activity ID. func (c *RemarketingListsListCall) FloodlightActivityId(floodlightActivityId int64) *RemarketingListsListCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *RemarketingListsListCall) MaxResults(maxResults int64) *RemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *RemarketingListsListCall) Name(name string) *RemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -42925,8 +31212,8 @@ func (c *RemarketingListsListCall) PageToken(pageToken string) *RemarketingLists return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -42937,8 +31224,7 @@ func (c *RemarketingListsListCall) SortField(sortField string) *RemarketingLists return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -42950,33 +31236,29 @@ func (c *RemarketingListsListCall) SortOrder(sortOrder string) *RemarketingLists } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsListCall) Fields(s ...googleapi.Field) *RemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsListCall) IfNoneMatch(entityTag string) *RemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsListCall) Context(ctx context.Context) *RemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42985,12 +31267,7 @@ func (c *RemarketingListsListCall) Header() http.Header { } func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43007,16 +31284,15 @@ func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.list" call. -// Exactly one of *RemarketingListsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *RemarketingListsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*RemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43024,17 +31300,17 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -43047,97 +31323,6 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only remarketing lists owned by this advertiser.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "floodlightActivityId": { - // "description": "Select only remarketing lists that have this floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "response": { - // "$ref": "RemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -43145,7 +31330,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // The provided context supersedes any context provided to the Context method. func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*RemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -43161,8 +31346,6 @@ func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*Remarketin } } -// method id "dfareporting.remarketingLists.patch": - type RemarketingListsPatchCall struct { s *Service profileId int64 @@ -43172,8 +31355,11 @@ type RemarketingListsPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list. This method supports -// patch semantics. +// Patch: Updates an existing remarketing list. This method supports patch +// semantics. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketinglist *RemarketingList) *RemarketingListsPatchCall { c := &RemarketingListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43183,23 +31369,21 @@ func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketingli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsPatchCall) Fields(s ...googleapi.Field) *RemarketingListsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsPatchCall) Context(ctx context.Context) *RemarketingListsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43208,18 +31392,12 @@ func (c *RemarketingListsPatchCall) Header() http.Header { } func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -43232,16 +31410,15 @@ func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.patch" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43249,17 +31426,17 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43272,45 +31449,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingLists.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.update": +} type RemarketingListsUpdateCall struct { s *Service @@ -43322,6 +31461,8 @@ type RemarketingListsUpdateCall struct { } // Update: Updates an existing remarketing list. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Update(profileId int64, remarketinglist *RemarketingList) *RemarketingListsUpdateCall { c := &RemarketingListsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43330,23 +31471,21 @@ func (r *RemarketingListsService) Update(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsUpdateCall) Fields(s ...googleapi.Field) *RemarketingListsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsUpdateCall) Context(ctx context.Context) *RemarketingListsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43355,18 +31494,12 @@ func (c *RemarketingListsUpdateCall) Header() http.Header { } func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -43379,16 +31512,15 @@ func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.update" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43396,17 +31528,17 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43419,37 +31551,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list.", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingLists.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.reports.delete": +} type ReportsDeleteCall struct { s *Service @@ -43461,6 +31563,9 @@ type ReportsDeleteCall struct { } // Delete: Deletes a report by its ID. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteCall { c := &ReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43469,23 +31574,21 @@ func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsDeleteCall) Fields(s ...googleapi.Field) *ReportsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsDeleteCall) Context(ctx context.Context) *ReportsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43494,12 +31597,7 @@ func (c *ReportsDeleteCall) Header() http.Header { } func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -43514,7 +31612,7 @@ func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.delete" call. @@ -43526,42 +31624,10 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a report by its ID.", - // "httpMethod": "DELETE", - // "id": "dfareporting.reports.delete", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.get": +} type ReportsGetCall struct { s *Service @@ -43574,6 +31640,9 @@ type ReportsGetCall struct { } // Get: Retrieves a report by its ID. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { c := &ReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43582,33 +31651,29 @@ func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsGetCall) Fields(s ...googleapi.Field) *ReportsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsGetCall) IfNoneMatch(entityTag string) *ReportsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsGetCall) Context(ctx context.Context) *ReportsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43617,12 +31682,7 @@ func (c *ReportsGetCall) Header() http.Header { } func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43640,16 +31700,14 @@ func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.get" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43657,17 +31715,17 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -43680,42 +31738,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report by its ID.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.get", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.insert": +} type ReportsInsertCall struct { s *Service @@ -43727,6 +31750,8 @@ type ReportsInsertCall struct { } // Insert: Creates a report. +// +// - profileId: The DFA user profile ID. func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertCall { c := &ReportsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43735,23 +31760,21 @@ func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsInsertCall) Fields(s ...googleapi.Field) *ReportsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsInsertCall) Context(ctx context.Context) *ReportsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43760,18 +31783,12 @@ func (c *ReportsInsertCall) Header() http.Header { } func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports") @@ -43784,16 +31801,14 @@ func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.insert" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43801,17 +31816,17 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -43824,37 +31839,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Creates a report.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.list": +} type ReportsListCall struct { s *Service @@ -43866,14 +31851,16 @@ type ReportsListCall struct { } // List: Retrieves list of reports. +// +// - profileId: The DFA user profile ID. func (r *ReportsService) List(profileId int64) *ReportsListCall { c := &ReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsListCall) MaxResults(maxResults int64) *ReportsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -43886,8 +31873,8 @@ func (c *ReportsListCall) PageToken(pageToken string) *ReportsListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -43898,8 +31885,8 @@ func (c *ReportsListCall) Scope(scope string) *ReportsListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -43911,8 +31898,7 @@ func (c *ReportsListCall) SortField(sortField string) *ReportsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -43924,33 +31910,29 @@ func (c *ReportsListCall) SortOrder(sortOrder string) *ReportsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsListCall) Fields(s ...googleapi.Field) *ReportsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsListCall) IfNoneMatch(entityTag string) *ReportsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsListCall) Context(ctx context.Context) *ReportsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43959,12 +31941,7 @@ func (c *ReportsListCall) Header() http.Header { } func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43981,16 +31958,14 @@ func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.list" call. -// Exactly one of *ReportList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ReportList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReportList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43998,17 +31973,17 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ReportList{ ServerResponse: googleapi.ServerResponse{ @@ -44021,89 +31996,6 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) return nil, err } return ret, nil - // { - // "description": "Retrieves list of reports.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE" - // ], - // "enumDescriptions": [ - // "All reports in account.", - // "My reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME", - // "NAME" - // ], - // "enumDescriptions": [ - // "Sort by report ID.", - // "Sort by 'lastModifiedTime' field.", - // "Sort by name of reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "response": { - // "$ref": "ReportList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -44111,7 +32003,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // The provided context supersedes any context provided to the Context method. func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -44127,8 +32019,6 @@ func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) } } -// method id "dfareporting.reports.patch": - type ReportsPatchCall struct { s *Service profileId int64 @@ -44140,6 +32030,9 @@ type ReportsPatchCall struct { } // Patch: Updates a report. This method supports patch semantics. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) *ReportsPatchCall { c := &ReportsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44149,23 +32042,21 @@ func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsPatchCall) Fields(s ...googleapi.Field) *ReportsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsPatchCall) Context(ctx context.Context) *ReportsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44174,18 +32065,12 @@ func (c *ReportsPatchCall) Header() http.Header { } func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -44199,16 +32084,14 @@ func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.patch" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44216,17 +32099,17 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44239,45 +32122,7 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates a report. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.reports.patch", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.run": +} type ReportsRunCall struct { s *Service @@ -44289,6 +32134,9 @@ type ReportsRunCall struct { } // Run: Runs a report. +// +// - profileId: The DFA profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { c := &ReportsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44296,31 +32144,29 @@ func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { return c } -// Synchronous sets the optional parameter "synchronous": If set and -// true, tries to run the report synchronously. +// Synchronous sets the optional parameter "synchronous": If set and true, +// tries to run the report synchronously. func (c *ReportsRunCall) Synchronous(synchronous bool) *ReportsRunCall { c.urlParams_.Set("synchronous", fmt.Sprint(synchronous)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsRunCall) Fields(s ...googleapi.Field) *ReportsRunCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsRunCall) Context(ctx context.Context) *ReportsRunCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsRunCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44329,12 +32175,7 @@ func (c *ReportsRunCall) Header() http.Header { } func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -44349,16 +32190,14 @@ func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.run" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44366,17 +32205,17 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -44389,48 +32228,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Runs a report.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.run", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "synchronous": { - // "default": "false", - // "description": "If set and true, tries to run the report synchronously.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/run", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.update": +} type ReportsUpdateCall struct { s *Service @@ -44443,6 +32241,9 @@ type ReportsUpdateCall struct { } // Update: Updates a report. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) *ReportsUpdateCall { c := &ReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44452,23 +32253,21 @@ func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsUpdateCall) Fields(s ...googleapi.Field) *ReportsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsUpdateCall) Context(ctx context.Context) *ReportsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44477,18 +32276,12 @@ func (c *ReportsUpdateCall) Header() http.Header { } func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -44502,16 +32295,14 @@ func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.update" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44519,17 +32310,17 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44542,45 +32333,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates a report.", - // "httpMethod": "PUT", - // "id": "dfareporting.reports.update", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.compatibleFields.query": +} type ReportsCompatibleFieldsQueryCall struct { s *Service @@ -44592,8 +32345,10 @@ type ReportsCompatibleFieldsQueryCall struct { } // Query: Returns the fields that are compatible to be selected in the -// respective sections of a report criteria, given the fields already -// selected in the input report and user permissions. +// respective sections of a report criteria, given the fields already selected +// in the input report and user permissions. +// +// - profileId: The DFA user profile ID. func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) *ReportsCompatibleFieldsQueryCall { c := &ReportsCompatibleFieldsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44602,23 +32357,21 @@ func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsCompatibleFieldsQueryCall) Fields(s ...googleapi.Field) *ReportsCompatibleFieldsQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsCompatibleFieldsQueryCall) Context(ctx context.Context) *ReportsCompatibleFieldsQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44627,18 +32380,12 @@ func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { } func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/compatiblefields/query") @@ -44651,16 +32398,15 @@ func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.compatibleFields.query" call. -// Exactly one of *CompatibleFields or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CompatibleFields.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CompatibleFields.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*CompatibleFields, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44668,17 +32414,17 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CompatibleFields{ ServerResponse: googleapi.ServerResponse{ @@ -44691,37 +32437,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co return nil, err } return ret, nil - // { - // "description": "Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.compatibleFields.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/compatiblefields/query", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "CompatibleFields" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.files.get": +} type ReportsFilesGetCall struct { s *Service @@ -44735,6 +32451,10 @@ type ReportsFilesGetCall struct { } // Get: Retrieves a report file. This method supports media download. +// +// - fileId: The ID of the report file. +// - profileId: The DFA profile ID. +// - reportId: The ID of the report. func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) *ReportsFilesGetCall { c := &ReportsFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44744,33 +32464,29 @@ func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesGetCall) Fields(s ...googleapi.Field) *ReportsFilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesGetCall) IfNoneMatch(entityTag string) *ReportsFilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ReportsFilesGetCall) Context(ctx context.Context) *ReportsFilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44779,12 +32495,7 @@ func (c *ReportsFilesGetCall) Header() http.Header { } func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44803,7 +32514,7 @@ func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -44815,20 +32526,18 @@ func (c *ReportsFilesGetCall) Download(opts ...googleapi.CallOption) (*http.Resp if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.reports.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44836,17 +32545,17 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -44859,51 +32568,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file. This method supports media download.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.get", - // "parameterOrder": [ - // "profileId", - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.reports.files.list": +} type ReportsFilesListCall struct { s *Service @@ -44916,6 +32581,9 @@ type ReportsFilesListCall struct { } // List: Lists files for a report. +// +// - profileId: The DFA profile ID. +// - reportId: The ID of the parent report. func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFilesListCall { c := &ReportsFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44923,8 +32591,8 @@ func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFile return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsFilesListCall) MaxResults(maxResults int64) *ReportsFilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -44937,8 +32605,8 @@ func (c *ReportsFilesListCall) PageToken(pageToken string) *ReportsFilesListCall return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -44949,8 +32617,7 @@ func (c *ReportsFilesListCall) SortField(sortField string) *ReportsFilesListCall return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -44962,33 +32629,29 @@ func (c *ReportsFilesListCall) SortOrder(sortOrder string) *ReportsFilesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesListCall) Fields(s ...googleapi.Field) *ReportsFilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesListCall) IfNoneMatch(entityTag string) *ReportsFilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsFilesListCall) Context(ctx context.Context) *ReportsFilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44997,12 +32660,7 @@ func (c *ReportsFilesListCall) Header() http.Header { } func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45020,16 +32678,14 @@ func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45037,17 +32693,17 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -45060,81 +32716,6 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro return nil, err } return ret, nil - // { - // "description": "Lists files for a report.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.list", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the parent report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -45142,7 +32723,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // The provided context supersedes any context provided to the Context method. func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -45158,8 +32739,6 @@ func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) erro } } -// method id "dfareporting.sites.get": - type SitesGetCall struct { s *Service profileId int64 @@ -45171,6 +32750,9 @@ type SitesGetCall struct { } // Get: Gets one site by ID. +// +// - id: Site ID. +// - profileId: User profile ID associated with this request. func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { c := &SitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45179,33 +32761,29 @@ func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesGetCall) Context(ctx context.Context) *SitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45214,12 +32792,7 @@ func (c *SitesGetCall) Header() http.Header { } func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45237,16 +32810,14 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.get" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45254,17 +32825,17 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -45277,42 +32848,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Gets one site by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.sites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites/{id}", - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.insert": +} type SitesInsertCall struct { s *Service @@ -45324,6 +32860,8 @@ type SitesInsertCall struct { } // Insert: Inserts a new site. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { c := &SitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45332,23 +32870,21 @@ func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesInsertCall) Fields(s ...googleapi.Field) *SitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesInsertCall) Context(ctx context.Context) *SitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45357,18 +32893,12 @@ func (c *SitesInsertCall) Header() http.Header { } func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -45381,16 +32911,14 @@ func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.insert" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45398,17 +32926,17 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -45421,37 +32949,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new site.", - // "httpMethod": "POST", - // "id": "dfareporting.sites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.list": +} type SitesListCall struct { s *Service @@ -45462,8 +32960,10 @@ type SitesListCall struct { header_ http.Header } -// List: Retrieves a list of sites, possibly filtered. This method -// supports paging. +// List: Retrieves a list of sites, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) List(profileId int64) *SitesListCall { c := &SitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45471,45 +32971,44 @@ func (r *SitesService) List(profileId int64) *SitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only sites that accept -// publisher paid placements. +// "acceptsPublisherPaidPlacements": Select only sites that accept publisher +// paid placements. func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// AdWordsSite sets the optional parameter "adWordsSite": Select only -// AdWords sites. +// AdWordsSite sets the optional parameter "adWordsSite": Select only AdWords +// sites. func (c *SitesListCall) AdWordsSite(adWordsSite bool) *SitesListCall { c.urlParams_.Set("adWordsSite", fmt.Sprint(adWordsSite)) return c } -// Approved sets the optional parameter "approved": Select only approved -// sites. +// Approved sets the optional parameter "approved": Select only approved sites. func (c *SitesListCall) Approved(approved bool) *SitesListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// sites with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only sites +// with these campaign IDs. func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -45519,8 +33018,8 @@ func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only sites with these directory site IDs. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// sites with these directory site IDs. func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -45530,8 +33029,7 @@ func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCa return c } -// Ids sets the optional parameter "ids": Select only sites with these -// IDs. +// Ids sets the optional parameter "ids": Select only sites with these IDs. func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { var ids_ []string for _, v := range ids { @@ -45541,8 +33039,8 @@ func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SitesListCall) MaxResults(maxResults int64) *SitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -45555,20 +33053,20 @@ func (c *SitesListCall) PageToken(pageToken string) *SitesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or keyName. Wildcards (*) are -// allowed. For example, "site*2015" will return objects with names like -// "site June 2015", "site April 2015", or simply "site 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "site" will -// match objects with name "my site", "site 2015", or simply "site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or keyName. Wildcards (*) are allowed. For example, +// "site*2015" will return objects with names like "site June 2015", "site +// April 2015", or simply "site 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "site" will match objects with name "my site", "site 2015", +// or simply "site". func (c *SitesListCall) SearchString(searchString string) *SitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -45579,8 +33077,7 @@ func (c *SitesListCall) SortField(sortField string) *SitesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -45591,48 +33088,44 @@ func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// sites with this subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only sites +// with this subaccount ID. func (c *SitesListCall) SubaccountId(subaccountId int64) *SitesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } -// UnmappedSite sets the optional parameter "unmappedSite": Select only -// sites that have not been mapped to a directory site. +// UnmappedSite sets the optional parameter "unmappedSite": Select only sites +// that have not been mapped to a directory site. func (c *SitesListCall) UnmappedSite(unmappedSite bool) *SitesListCall { c.urlParams_.Set("unmappedSite", fmt.Sprint(unmappedSite)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesListCall) Fields(s ...googleapi.Field) *SitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesListCall) IfNoneMatch(entityTag string) *SitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesListCall) Context(ctx context.Context) *SitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45641,12 +33134,7 @@ func (c *SitesListCall) Header() http.Header { } func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45663,16 +33151,15 @@ func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.list" call. -// Exactly one of *SitesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SitesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SitesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45680,17 +33167,17 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -45703,135 +33190,6 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.sites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only sites that accept publisher paid placements.", - // "location": "query", - // "type": "boolean" - // }, - // "adWordsSite": { - // "description": "Select only AdWords sites.", - // "location": "query", - // "type": "boolean" - // }, - // "approved": { - // "description": "Select only approved sites.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only sites with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only sites with these directory site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, \"site*2015\" will return objects with names like \"site June 2015\", \"site April 2015\", or simply \"site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"site\" will match objects with name \"my site\", \"site 2015\", or simply \"site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only sites with this subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "unmappedSite": { - // "description": "Select only sites that have not been mapped to a directory site.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "response": { - // "$ref": "SitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -45839,7 +33197,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // The provided context supersedes any context provided to the Context method. func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -45855,8 +33213,6 @@ func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) er } } -// method id "dfareporting.sites.patch": - type SitesPatchCall struct { s *Service profileId int64 @@ -45866,8 +33222,10 @@ type SitesPatchCall struct { header_ http.Header } -// Patch: Updates an existing site. This method supports patch -// semantics. +// Patch: Updates an existing site. This method supports patch semantics. +// +// - id: Site ID. +// - profileId: User profile ID associated with this request. func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchCall { c := &SitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45877,23 +33235,21 @@ func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesPatchCall) Fields(s ...googleapi.Field) *SitesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesPatchCall) Context(ctx context.Context) *SitesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45902,18 +33258,12 @@ func (c *SitesPatchCall) Header() http.Header { } func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -45926,16 +33276,14 @@ func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.patch" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45943,17 +33291,17 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -45966,45 +33314,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.sites.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.update": +} type SitesUpdateCall struct { s *Service @@ -46016,6 +33326,8 @@ type SitesUpdateCall struct { } // Update: Updates an existing site. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { c := &SitesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46024,23 +33336,21 @@ func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesUpdateCall) Fields(s ...googleapi.Field) *SitesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesUpdateCall) Context(ctx context.Context) *SitesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46049,18 +33359,12 @@ func (c *SitesUpdateCall) Header() http.Header { } func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -46073,16 +33377,14 @@ func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.update" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46090,17 +33392,17 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46113,37 +33415,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site.", - // "httpMethod": "PUT", - // "id": "dfareporting.sites.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.get": +} type SizesGetCall struct { s *Service @@ -46156,6 +33428,9 @@ type SizesGetCall struct { } // Get: Gets one size by ID. +// +// - id: Size ID. +// - profileId: User profile ID associated with this request. func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { c := &SizesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46164,33 +33439,29 @@ func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesGetCall) Fields(s ...googleapi.Field) *SizesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesGetCall) IfNoneMatch(entityTag string) *SizesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesGetCall) Context(ctx context.Context) *SizesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46199,12 +33470,7 @@ func (c *SizesGetCall) Header() http.Header { } func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46222,16 +33488,14 @@ func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.get" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46239,17 +33503,17 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -46262,42 +33526,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Gets one size by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Size ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes/{id}", - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.insert": +} type SizesInsertCall struct { s *Service @@ -46309,6 +33538,8 @@ type SizesInsertCall struct { } // Insert: Inserts a new size. +// +// - profileId: User profile ID associated with this request. func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { c := &SizesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46317,23 +33548,21 @@ func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesInsertCall) Fields(s ...googleapi.Field) *SizesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesInsertCall) Context(ctx context.Context) *SizesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46342,18 +33571,12 @@ func (c *SizesInsertCall) Header() http.Header { } func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.size) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes") @@ -46366,16 +33589,14 @@ func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.insert" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46383,17 +33604,17 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -46406,37 +33627,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new size.", - // "httpMethod": "POST", - // "id": "dfareporting.sizes.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "request": { - // "$ref": "Size" - // }, - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.list": +} type SizesListCall struct { s *Service @@ -46447,32 +33638,33 @@ type SizesListCall struct { header_ http.Header } -// List: Retrieves a list of sizes, possibly filtered. Retrieved sizes -// are globally unique and may include values not currently in use by -// your account. Due to this, the list of sizes returned by this method -// may differ from the list seen in the Trafficking UI. +// List: Retrieves a list of sizes, possibly filtered. Retrieved sizes are +// globally unique and may include values not currently in use by your account. +// Due to this, the list of sizes returned by this method may differ from the +// list seen in the Trafficking UI. +// +// - profileId: User profile ID associated with this request. func (r *SizesService) List(profileId int64) *SizesListCall { c := &SizesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Height sets the optional parameter "height": Select only sizes with -// this height. +// Height sets the optional parameter "height": Select only sizes with this +// height. func (c *SizesListCall) Height(height int64) *SizesListCall { c.urlParams_.Set("height", fmt.Sprint(height)) return c } -// IabStandard sets the optional parameter "iabStandard": Select only -// IAB standard sizes. +// IabStandard sets the optional parameter "iabStandard": Select only IAB +// standard sizes. func (c *SizesListCall) IabStandard(iabStandard bool) *SizesListCall { c.urlParams_.Set("iabStandard", fmt.Sprint(iabStandard)) return c } -// Ids sets the optional parameter "ids": Select only sizes with these -// IDs. +// Ids sets the optional parameter "ids": Select only sizes with these IDs. func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { var ids_ []string for _, v := range ids { @@ -46482,41 +33674,37 @@ func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { return c } -// Width sets the optional parameter "width": Select only sizes with -// this width. +// Width sets the optional parameter "width": Select only sizes with this +// width. func (c *SizesListCall) Width(width int64) *SizesListCall { c.urlParams_.Set("width", fmt.Sprint(width)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesListCall) Fields(s ...googleapi.Field) *SizesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesListCall) IfNoneMatch(entityTag string) *SizesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesListCall) Context(ctx context.Context) *SizesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46525,12 +33713,7 @@ func (c *SizesListCall) Header() http.Header { } func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46547,16 +33730,15 @@ func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.list" call. -// Exactly one of *SizesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SizesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SizesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46564,17 +33746,17 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SizesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -46587,62 +33769,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "height": { - // "description": "Select only sizes with this height.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // }, - // "iabStandard": { - // "description": "Select only IAB standard sizes.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only sizes with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "width": { - // "description": "Select only sizes with this width.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "response": { - // "$ref": "SizesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.get": +} type SubaccountsGetCall struct { s *Service @@ -46655,6 +33782,9 @@ type SubaccountsGetCall struct { } // Get: Gets one subaccount by ID. +// +// - id: Subaccount ID. +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall { c := &SubaccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46663,33 +33793,29 @@ func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsGetCall) Fields(s ...googleapi.Field) *SubaccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsGetCall) IfNoneMatch(entityTag string) *SubaccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsGetCall) Context(ctx context.Context) *SubaccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46698,12 +33824,7 @@ func (c *SubaccountsGetCall) Header() http.Header { } func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46721,16 +33842,14 @@ func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.get" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46738,17 +33857,17 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -46761,42 +33880,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro return nil, err } return ret, nil - // { - // "description": "Gets one subaccount by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts/{id}", - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.insert": +} type SubaccountsInsertCall struct { s *Service @@ -46808,6 +33892,8 @@ type SubaccountsInsertCall struct { } // Insert: Inserts a new subaccount. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *SubaccountsInsertCall { c := &SubaccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46816,23 +33902,21 @@ func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsInsertCall) Fields(s ...googleapi.Field) *SubaccountsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsInsertCall) Context(ctx context.Context) *SubaccountsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46841,18 +33925,12 @@ func (c *SubaccountsInsertCall) Header() http.Header { } func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -46865,16 +33943,14 @@ func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.insert" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46882,17 +33958,17 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -46905,37 +33981,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Inserts a new subaccount.", - // "httpMethod": "POST", - // "id": "dfareporting.subaccounts.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.list": +} type SubaccountsListCall struct { s *Service @@ -46946,16 +33992,18 @@ type SubaccountsListCall struct { header_ http.Header } -// List: Gets a list of subaccounts, possibly filtered. This method -// supports paging. +// List: Gets a list of subaccounts, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall { c := &SubaccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only subaccounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only subaccounts with these +// IDs. func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { var ids_ []string for _, v := range ids { @@ -46965,8 +34013,8 @@ func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SubaccountsListCall) MaxResults(maxResults int64) *SubaccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -46979,21 +34027,21 @@ func (c *SubaccountsListCall) PageToken(pageToken string) *SubaccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "subaccount*2015" will return objects with names like -// "subaccount June 2015", "subaccount April 2015", or simply -// "subaccount 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "subaccount" will match objects with name "my subaccount", -// "subaccount 2015", or simply "subaccount". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "subaccount*2015" will return objects with names like "subaccount June +// 2015", "subaccount April 2015", or simply "subaccount 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "subaccount" will match +// objects with name "my subaccount", "subaccount 2015", or simply +// "subaccount". func (c *SubaccountsListCall) SearchString(searchString string) *SubaccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -47004,8 +34052,7 @@ func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -47017,33 +34064,29 @@ func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsListCall) Fields(s ...googleapi.Field) *SubaccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsListCall) IfNoneMatch(entityTag string) *SubaccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsListCall) Context(ctx context.Context) *SubaccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47052,12 +34095,7 @@ func (c *SubaccountsListCall) Header() http.Header { } func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47074,16 +34112,15 @@ func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.list" call. -// Exactly one of *SubaccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *SubaccountsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47091,17 +34128,17 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SubaccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -47114,85 +34151,6 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList return nil, err } return ret, nil - // { - // "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only subaccounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"subaccount*2015\" will return objects with names like \"subaccount June 2015\", \"subaccount April 2015\", or simply \"subaccount 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"subaccount\" will match objects with name \"my subaccount\", \"subaccount 2015\", or simply \"subaccount\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "response": { - // "$ref": "SubaccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -47200,7 +34158,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // The provided context supersedes any context provided to the Context method. func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -47216,8 +34174,6 @@ func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsList } } -// method id "dfareporting.subaccounts.patch": - type SubaccountsPatchCall struct { s *Service profileId int64 @@ -47227,8 +34183,10 @@ type SubaccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing subaccount. This method supports patch -// semantics. +// Patch: Updates an existing subaccount. This method supports patch semantics. +// +// - id: Subaccount ID. +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subaccount) *SubaccountsPatchCall { c := &SubaccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47238,23 +34196,21 @@ func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subacc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsPatchCall) Fields(s ...googleapi.Field) *SubaccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsPatchCall) Context(ctx context.Context) *SubaccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47263,18 +34219,12 @@ func (c *SubaccountsPatchCall) Header() http.Header { } func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -47287,16 +34237,14 @@ func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.patch" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47304,17 +34252,17 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47327,45 +34275,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.subaccounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.update": +} type SubaccountsUpdateCall struct { s *Service @@ -47377,6 +34287,8 @@ type SubaccountsUpdateCall struct { } // Update: Updates an existing subaccount. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *SubaccountsUpdateCall { c := &SubaccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47385,23 +34297,21 @@ func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsUpdateCall) Fields(s ...googleapi.Field) *SubaccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsUpdateCall) Context(ctx context.Context) *SubaccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47410,18 +34320,12 @@ func (c *SubaccountsUpdateCall) Header() http.Header { } func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -47434,16 +34338,14 @@ func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.update" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47451,17 +34353,17 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47474,37 +34376,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount.", - // "httpMethod": "PUT", - // "id": "dfareporting.subaccounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.get": +} type TargetableRemarketingListsGetCall struct { s *Service @@ -47517,6 +34389,9 @@ type TargetableRemarketingListsGetCall struct { } // Get: Gets one remarketing list by ID. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *TargetableRemarketingListsGetCall { c := &TargetableRemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47525,33 +34400,29 @@ func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *Targ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsGetCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsGetCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsGetCall) Context(ctx context.Context) *TargetableRemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47560,12 +34431,7 @@ func (c *TargetableRemarketingListsGetCall) Header() http.Header { } func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47583,16 +34449,15 @@ func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Respons "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.get" call. -// Exactly one of *TargetableRemarketingList or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TargetableRemarketingList.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TargetableRemarketingList.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47600,17 +34465,17 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -47623,42 +34488,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - // "response": { - // "$ref": "TargetableRemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.list": +} type TargetableRemarketingListsListCall struct { s *Service @@ -47669,8 +34499,12 @@ type TargetableRemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of targetable remarketing lists, possibly -// filtered. This method supports paging. +// List: Retrieves a list of targetable remarketing lists, possibly filtered. +// This method supports paging. +// +// - advertiserId: Select only targetable remarketing lists targetable by these +// advertisers. +// - profileId: User profile ID associated with this request. func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId int64) *TargetableRemarketingListsListCall { c := &TargetableRemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47678,28 +34512,28 @@ func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId i return c } -// Active sets the optional parameter "active": Select only active or -// only inactive targetable remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive targetable remarketing lists. func (c *TargetableRemarketingListsListCall) Active(active bool) *TargetableRemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetableRemarketingListsListCall) MaxResults(maxResults int64) *TargetableRemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *TargetableRemarketingListsListCall) Name(name string) *TargetableRemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -47712,8 +34546,8 @@ func (c *TargetableRemarketingListsListCall) PageToken(pageToken string) *Target return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -47724,8 +34558,7 @@ func (c *TargetableRemarketingListsListCall) SortField(sortField string) *Target return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -47737,33 +34570,29 @@ func (c *TargetableRemarketingListsListCall) SortOrder(sortOrder string) *Target } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsListCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsListCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsListCall) Context(ctx context.Context) *TargetableRemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47772,12 +34601,7 @@ func (c *TargetableRemarketingListsListCall) Header() http.Header { } func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47794,17 +34618,15 @@ func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.list" call. -// Exactly one of *TargetableRemarketingListsListResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47812,17 +34634,17 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -47835,91 +34657,6 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive targetable remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only targetable remarketing lists targetable by these advertisers.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists", - // "response": { - // "$ref": "TargetableRemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -47927,7 +34664,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(*TargetableRemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -47943,8 +34680,6 @@ func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(* } } -// method id "dfareporting.targetingTemplates.get": - type TargetingTemplatesGetCall struct { s *Service profileId int64 @@ -47956,6 +34691,9 @@ type TargetingTemplatesGetCall struct { } // Get: Gets one targeting template by ID. +// +// - id: Targeting template ID. +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTemplatesGetCall { c := &TargetingTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47964,33 +34702,29 @@ func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTem } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesGetCall) Fields(s ...googleapi.Field) *TargetingTemplatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesGetCall) IfNoneMatch(entityTag string) *TargetingTemplatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesGetCall) Context(ctx context.Context) *TargetingTemplatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47999,12 +34733,7 @@ func (c *TargetingTemplatesGetCall) Header() http.Header { } func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48022,16 +34751,15 @@ func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.get" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48039,17 +34767,17 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48062,42 +34790,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting return nil, err } return ret, nil - // { - // "description": "Gets one targeting template by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates/{id}", - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.insert": +} type TargetingTemplatesInsertCall struct { s *Service @@ -48109,6 +34802,8 @@ type TargetingTemplatesInsertCall struct { } // Insert: Inserts a new targeting template. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesInsertCall { c := &TargetingTemplatesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48117,23 +34812,21 @@ func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesInsertCall) Fields(s ...googleapi.Field) *TargetingTemplatesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesInsertCall) Context(ctx context.Context) *TargetingTemplatesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48142,18 +34835,12 @@ func (c *TargetingTemplatesInsertCall) Header() http.Header { } func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -48166,16 +34853,15 @@ func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.insert" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48183,17 +34869,17 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48206,37 +34892,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Inserts a new targeting template.", - // "httpMethod": "POST", - // "id": "dfareporting.targetingTemplates.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.list": +} type TargetingTemplatesListCall struct { s *Service @@ -48247,8 +34903,10 @@ type TargetingTemplatesListCall struct { header_ http.Header } -// List: Retrieves a list of targeting templates, optionally filtered. -// This method supports paging. +// List: Retrieves a list of targeting templates, optionally filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) List(profileId int64) *TargetingTemplatesListCall { c := &TargetingTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48262,8 +34920,8 @@ func (c *TargetingTemplatesListCall) AdvertiserId(advertiserId int64) *Targeting return c } -// Ids sets the optional parameter "ids": Select only targeting -// templates with these IDs. +// Ids sets the optional parameter "ids": Select only targeting templates with +// these IDs. func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCall { var ids_ []string for _, v := range ids { @@ -48273,8 +34931,8 @@ func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCa return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetingTemplatesListCall) MaxResults(maxResults int64) *TargetingTemplatesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -48287,21 +34945,20 @@ func (c *TargetingTemplatesListCall) PageToken(pageToken string) *TargetingTempl return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "template*2015" will return objects with names like -// "template June 2015", "template April 2015", or simply "template -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "template" will match objects with name "my template", "template -// 2015", or simply "template". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "template*2015" will return objects with names like "template June 2015", +// "template April 2015", or simply "template 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "template" will match objects with name "my +// template", "template 2015", or simply "template". func (c *TargetingTemplatesListCall) SearchString(searchString string) *TargetingTemplatesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -48312,8 +34969,7 @@ func (c *TargetingTemplatesListCall) SortField(sortField string) *TargetingTempl return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -48325,33 +34981,29 @@ func (c *TargetingTemplatesListCall) SortOrder(sortOrder string) *TargetingTempl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesListCall) Fields(s ...googleapi.Field) *TargetingTemplatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesListCall) IfNoneMatch(entityTag string) *TargetingTemplatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesListCall) Context(ctx context.Context) *TargetingTemplatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48360,12 +35012,7 @@ func (c *TargetingTemplatesListCall) Header() http.Header { } func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48382,16 +35029,15 @@ func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.list" call. -// Exactly one of *TargetingTemplatesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *TargetingTemplatesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplatesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*TargetingTemplatesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48399,17 +35045,17 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplatesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -48422,91 +35068,6 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only targeting templates with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only targeting templates with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"template*2015\" will return objects with names like \"template June 2015\", \"template April 2015\", or simply \"template 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"template\" will match objects with name \"my template\", \"template 2015\", or simply \"template\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "response": { - // "$ref": "TargetingTemplatesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -48514,7 +35075,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // The provided context supersedes any context provided to the Context method. func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*TargetingTemplatesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -48530,8 +35091,6 @@ func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*Targetin } } -// method id "dfareporting.targetingTemplates.patch": - type TargetingTemplatesPatchCall struct { s *Service profileId int64 @@ -48541,8 +35100,11 @@ type TargetingTemplatesPatchCall struct { header_ http.Header } -// Patch: Updates an existing targeting template. This method supports -// patch semantics. +// Patch: Updates an existing targeting template. This method supports patch +// semantics. +// +// - id: Targeting template ID. +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesPatchCall { c := &TargetingTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48552,23 +35114,21 @@ func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingte } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesPatchCall) Fields(s ...googleapi.Field) *TargetingTemplatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesPatchCall) Context(ctx context.Context) *TargetingTemplatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48577,18 +35137,12 @@ func (c *TargetingTemplatesPatchCall) Header() http.Header { } func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -48601,16 +35155,15 @@ func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.patch" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48618,17 +35171,17 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48641,45 +35194,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.targetingTemplates.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.update": +} type TargetingTemplatesUpdateCall struct { s *Service @@ -48691,6 +35206,8 @@ type TargetingTemplatesUpdateCall struct { } // Update: Updates an existing targeting template. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesUpdateCall { c := &TargetingTemplatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48699,23 +35216,21 @@ func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesUpdateCall) Fields(s ...googleapi.Field) *TargetingTemplatesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesUpdateCall) Context(ctx context.Context) *TargetingTemplatesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48724,18 +35239,12 @@ func (c *TargetingTemplatesUpdateCall) Header() http.Header { } func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -48748,16 +35257,15 @@ func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.update" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48765,17 +35273,17 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48788,37 +35296,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template.", - // "httpMethod": "PUT", - // "id": "dfareporting.targetingTemplates.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.get": +} type UserProfilesGetCall struct { s *Service @@ -48830,6 +35308,8 @@ type UserProfilesGetCall struct { } // Get: Gets one user profile by ID. +// +// - profileId: The user profile ID. func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { c := &UserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48837,33 +35317,29 @@ func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesGetCall) Fields(s ...googleapi.Field) *UserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesGetCall) IfNoneMatch(entityTag string) *UserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesGetCall) Context(ctx context.Context) *UserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48872,12 +35348,7 @@ func (c *UserProfilesGetCall) Header() http.Header { } func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48894,16 +35365,14 @@ func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.get" call. -// Exactly one of *UserProfile or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfile.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfile.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48911,17 +35380,17 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -48934,35 +35403,7 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er return nil, err } return ret, nil - // { - // "description": "Gets one user profile by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.get", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}", - // "response": { - // "$ref": "UserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.list": +} type UserProfilesListCall struct { s *Service @@ -48979,33 +35420,29 @@ func (r *UserProfilesService) List() *UserProfilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesListCall) Fields(s ...googleapi.Field) *UserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesListCall) IfNoneMatch(entityTag string) *UserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesListCall) Context(ctx context.Context) *UserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49014,12 +35451,7 @@ func (c *UserProfilesListCall) Header() http.Header { } func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49033,16 +35465,15 @@ func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.list" call. -// Exactly one of *UserProfileList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfileList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfileList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49050,17 +35481,17 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfileList{ ServerResponse: googleapi.ServerResponse{ @@ -49073,24 +35504,8 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis return nil, err } return ret, nil - // { - // "description": "Retrieves list of user profiles for a user.", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.list", - // "path": "userprofiles", - // "response": { - // "$ref": "UserProfileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } -// method id "dfareporting.userRolePermissionGroups.get": - type UserRolePermissionGroupsGetCall struct { s *Service profileId int64 @@ -49102,6 +35517,9 @@ type UserRolePermissionGroupsGetCall struct { } // Get: Gets one user role permission group by ID. +// +// - id: User role permission group ID. +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRolePermissionGroupsGetCall { c := &UserRolePermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49110,33 +35528,29 @@ func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsGetCall) Context(ctx context.Context) *UserRolePermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49145,12 +35559,7 @@ func (c *UserRolePermissionGroupsGetCall) Header() http.Header { } func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49168,16 +35577,15 @@ func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.get" call. -// Exactly one of *UserRolePermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *UserRolePermissionGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49185,17 +35593,17 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -49208,42 +35616,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use return nil, err } return ret, nil - // { - // "description": "Gets one user role permission group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - // "response": { - // "$ref": "UserRolePermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissionGroups.list": +} type UserRolePermissionGroupsListCall struct { s *Service @@ -49255,6 +35628,8 @@ type UserRolePermissionGroupsListCall struct { } // List: Gets a list of all supported user role permission groups. +// +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermissionGroupsListCall { c := &UserRolePermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49262,33 +35637,29 @@ func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermiss } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsListCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsListCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsListCall) Context(ctx context.Context) *UserRolePermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49297,12 +35668,7 @@ func (c *UserRolePermissionGroupsListCall) Header() http.Header { } func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49319,17 +35685,15 @@ func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.list" call. -// Exactly one of *UserRolePermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49337,17 +35701,17 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -49360,34 +35724,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us return nil, err } return ret, nil - // { - // "description": "Gets a list of all supported user role permission groups.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups", - // "response": { - // "$ref": "UserRolePermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.get": +} type UserRolePermissionsGetCall struct { s *Service @@ -49400,6 +35737,9 @@ type UserRolePermissionsGetCall struct { } // Get: Gets one user role permission by ID. +// +// - id: User role permission ID. +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePermissionsGetCall { c := &UserRolePermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49408,33 +35748,29 @@ func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePer } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsGetCall) Context(ctx context.Context) *UserRolePermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49443,12 +35779,7 @@ func (c *UserRolePermissionsGetCall) Header() http.Header { } func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49466,16 +35797,15 @@ func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.get" call. -// Exactly one of *UserRolePermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolePermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49483,17 +35813,17 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermission{ ServerResponse: googleapi.ServerResponse{ @@ -49506,42 +35836,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole return nil, err } return ret, nil - // { - // "description": "Gets one user role permission by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions/{id}", - // "response": { - // "$ref": "UserRolePermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.list": +} type UserRolePermissionsListCall struct { s *Service @@ -49553,14 +35848,16 @@ type UserRolePermissionsListCall struct { } // List: Gets a list of user role permissions, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionsService) List(profileId int64) *UserRolePermissionsListCall { c := &UserRolePermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only user role -// permissions with these IDs. +// Ids sets the optional parameter "ids": Select only user role permissions +// with these IDs. func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsListCall { var ids_ []string for _, v := range ids { @@ -49571,33 +35868,29 @@ func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsListCall) Fields(s ...googleapi.Field) *UserRolePermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsListCall) IfNoneMatch(entityTag string) *UserRolePermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsListCall) Context(ctx context.Context) *UserRolePermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49606,12 +35899,7 @@ func (c *UserRolePermissionsListCall) Header() http.Header { } func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49628,16 +35916,15 @@ func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.list" call. -// Exactly one of *UserRolePermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49645,17 +35932,17 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -49668,41 +35955,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol return nil, err } return ret, nil - // { - // "description": "Gets a list of user role permissions, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only user role permissions with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions", - // "response": { - // "$ref": "UserRolePermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.delete": +} type UserRolesDeleteCall struct { s *Service @@ -49714,6 +35967,9 @@ type UserRolesDeleteCall struct { } // Delete: Deletes an existing user role. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCall { c := &UserRolesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49722,23 +35978,21 @@ func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesDeleteCall) Fields(s ...googleapi.Field) *UserRolesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesDeleteCall) Context(ctx context.Context) *UserRolesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49747,12 +36001,7 @@ func (c *UserRolesDeleteCall) Header() http.Header { } func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -49767,7 +36016,7 @@ func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.delete" call. @@ -49779,42 +36028,10 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing user role.", - // "httpMethod": "DELETE", - // "id": "dfareporting.userRoles.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.get": +} type UserRolesGetCall struct { s *Service @@ -49827,6 +36044,9 @@ type UserRolesGetCall struct { } // Get: Gets one user role by ID. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { c := &UserRolesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49835,33 +36055,29 @@ func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesGetCall) Fields(s ...googleapi.Field) *UserRolesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesGetCall) IfNoneMatch(entityTag string) *UserRolesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesGetCall) Context(ctx context.Context) *UserRolesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49870,12 +36086,7 @@ func (c *UserRolesGetCall) Header() http.Header { } func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49893,16 +36104,14 @@ func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.get" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49910,17 +36119,17 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -49933,42 +36142,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { return nil, err } return ret, nil - // { - // "description": "Gets one user role by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.insert": +} type UserRolesInsertCall struct { s *Service @@ -49980,6 +36154,8 @@ type UserRolesInsertCall struct { } // Insert: Inserts a new user role. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRolesInsertCall { c := &UserRolesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49988,23 +36164,21 @@ func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesInsertCall) Fields(s ...googleapi.Field) *UserRolesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesInsertCall) Context(ctx context.Context) *UserRolesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50013,18 +36187,12 @@ func (c *UserRolesInsertCall) Header() http.Header { } func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -50037,16 +36205,14 @@ func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.insert" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50054,17 +36220,17 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50077,37 +36243,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Inserts a new user role.", - // "httpMethod": "POST", - // "id": "dfareporting.userRoles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.list": +} type UserRolesListCall struct { s *Service @@ -50120,22 +36256,24 @@ type UserRolesListCall struct { // List: Retrieves a list of user roles, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) List(profileId int64) *UserRolesListCall { c := &UserRolesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AccountUserRoleOnly sets the optional parameter -// "accountUserRoleOnly": Select only account level user roles not -// associated with any specific subaccount. +// AccountUserRoleOnly sets the optional parameter "accountUserRoleOnly": +// Select only account level user roles not associated with any specific +// subaccount. func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnly bool) *UserRolesListCall { c.urlParams_.Set("accountUserRoleOnly", fmt.Sprint(accountUserRoleOnly)) return c } -// Ids sets the optional parameter "ids": Select only user roles with -// the specified IDs. +// Ids sets the optional parameter "ids": Select only user roles with the +// specified IDs. func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { var ids_ []string for _, v := range ids { @@ -50145,8 +36283,8 @@ func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *UserRolesListCall) MaxResults(maxResults int64) *UserRolesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -50159,21 +36297,20 @@ func (c *UserRolesListCall) PageToken(pageToken string) *UserRolesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "userrole*2015" will return objects with names like -// "userrole June 2015", "userrole April 2015", or simply "userrole -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "userrole" will match objects with name "my userrole", "userrole -// 2015", or simply "userrole". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "userrole*2015" will return objects with names like "userrole June 2015", +// "userrole April 2015", or simply "userrole 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "userrole" will match objects with name "my +// userrole", "userrole 2015", or simply "userrole". func (c *UserRolesListCall) SearchString(searchString string) *UserRolesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -50184,8 +36321,7 @@ func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -50196,41 +36332,37 @@ func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user roles that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// roles that belong to this subaccount. func (c *UserRolesListCall) SubaccountId(subaccountId int64) *UserRolesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesListCall) Fields(s ...googleapi.Field) *UserRolesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesListCall) IfNoneMatch(entityTag string) *UserRolesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesListCall) Context(ctx context.Context) *UserRolesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50239,12 +36371,7 @@ func (c *UserRolesListCall) Header() http.Header { } func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50261,16 +36388,15 @@ func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.list" call. -// Exactly one of *UserRolesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50278,17 +36404,17 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -50301,96 +36427,6 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "accountUserRoleOnly": { - // "description": "Select only account level user roles not associated with any specific subaccount.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user roles with the specified IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"userrole*2015\" will return objects with names like \"userrole June 2015\", \"userrole April 2015\", or simply \"userrole 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"userrole\" will match objects with name \"my userrole\", \"userrole 2015\", or simply \"userrole\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user roles that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "response": { - // "$ref": "UserRolesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -50398,7 +36434,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // The provided context supersedes any context provided to the Context method. func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -50414,8 +36450,6 @@ func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResp } } -// method id "dfareporting.userRoles.patch": - type UserRolesPatchCall struct { s *Service profileId int64 @@ -50425,8 +36459,10 @@ type UserRolesPatchCall struct { header_ http.Header } -// Patch: Updates an existing user role. This method supports patch -// semantics. +// Patch: Updates an existing user role. This method supports patch semantics. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) *UserRolesPatchCall { c := &UserRolesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50436,23 +36472,21 @@ func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesPatchCall) Fields(s ...googleapi.Field) *UserRolesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesPatchCall) Context(ctx context.Context) *UserRolesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50461,18 +36495,12 @@ func (c *UserRolesPatchCall) Header() http.Header { } func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -50485,16 +36513,14 @@ func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.patch" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50502,17 +36528,17 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50525,45 +36551,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing user role. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.userRoles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.update": +} type UserRolesUpdateCall struct { s *Service @@ -50575,6 +36563,8 @@ type UserRolesUpdateCall struct { } // Update: Updates an existing user role. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRolesUpdateCall { c := &UserRolesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50583,23 +36573,21 @@ func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesUpdateCall) Fields(s ...googleapi.Field) *UserRolesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesUpdateCall) Context(ctx context.Context) *UserRolesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50608,18 +36596,12 @@ func (c *UserRolesUpdateCall) Header() http.Header { } func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -50632,16 +36614,14 @@ func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.update" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50649,17 +36629,17 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50672,37 +36652,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Updates an existing user role.", - // "httpMethod": "PUT", - // "id": "dfareporting.userRoles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.get": +} type VideoFormatsGetCall struct { s *Service @@ -50715,6 +36665,9 @@ type VideoFormatsGetCall struct { } // Get: Gets one video format by ID. +// +// - id: Video format ID. +// - profileId: User profile ID associated with this request. func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCall { c := &VideoFormatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50723,33 +36676,29 @@ func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsGetCall) Fields(s ...googleapi.Field) *VideoFormatsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsGetCall) IfNoneMatch(entityTag string) *VideoFormatsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsGetCall) Context(ctx context.Context) *VideoFormatsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50758,12 +36707,7 @@ func (c *VideoFormatsGetCall) Header() http.Header { } func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50781,16 +36725,14 @@ func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.get" call. -// Exactly one of *VideoFormat or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *VideoFormat.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *VideoFormat.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50798,17 +36740,17 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormat{ ServerResponse: googleapi.ServerResponse{ @@ -50821,42 +36763,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er return nil, err } return ret, nil - // { - // "description": "Gets one video format by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Video format ID.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats/{id}", - // "response": { - // "$ref": "VideoFormat" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.list": +} type VideoFormatsListCall struct { s *Service @@ -50868,6 +36775,8 @@ type VideoFormatsListCall struct { } // List: Lists available video formats. +// +// - profileId: User profile ID associated with this request. func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { c := &VideoFormatsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50875,33 +36784,29 @@ func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsListCall) Fields(s ...googleapi.Field) *VideoFormatsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsListCall) IfNoneMatch(entityTag string) *VideoFormatsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsListCall) Context(ctx context.Context) *VideoFormatsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50910,12 +36815,7 @@ func (c *VideoFormatsListCall) Header() http.Header { } func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50932,16 +36832,15 @@ func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.list" call. -// Exactly one of *VideoFormatsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *VideoFormatsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50949,17 +36848,17 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormatsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -50972,29 +36871,4 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi return nil, err } return ret, nil - // { - // "description": "Lists available video formats.", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats", - // "response": { - // "$ref": "VideoFormatsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } diff --git a/dfareporting/v3.2/dfareporting-gen.go b/dfareporting/v3.2/dfareporting-gen.go index a9dd1f8f9a8..fa4d255c836 100644 --- a/dfareporting/v3.2/dfareporting-gen.go +++ b/dfareporting/v3.2/dfareporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/doubleclick-advertisers/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // dfareportingService, err := dfareporting.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithScopes(dfareporting.DfatraffickingScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // dfareportingService, err := dfareporting.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package dfareporting // import "google.golang.org/api/dfareporting/v3.2" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dfareporting:v3.2" const apiName = "dfareporting" const apiVersion = "v3.2" const basePath = "https://www.googleapis.com/dfareporting/v3.2/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/dfareporting/v3.2/" // OAuth2 scopes used by this API. const ( @@ -93,13 +112,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/ddmconversions", "https://www.googleapis.com/auth/dfareporting", "https://www.googleapis.com/auth/dfatrafficking", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -900,20 +922,16 @@ type VideoFormatsService struct { type Account struct { // AccountPermissionIds: Account permissions assigned to this account. AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"` - - // AccountProfile: Profile for this account. This is a read-only field - // that can be left blank. + // AccountProfile: Profile for this account. This is a read-only field that can + // be left blank. // // Possible values: // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfile string `json:"accountProfile,omitempty"` - // Active: Whether this account is active. Active bool `json:"active,omitempty"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for this - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for this account. // // Possible values: // "ACTIVE_ADS_TIER_100K" @@ -925,21 +943,16 @@ type Account struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_75K" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - - // ActiveViewOptOut: Whether to serve creatives with Active View tags. - // If disabled, viewability data will not be available for any - // impressions. + // ActiveViewOptOut: Whether to serve creatives with Active View tags. If + // disabled, viewability data will not be available for any impressions. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AvailablePermissionIds: User role permissions available to the user - // roles of this account. + // AvailablePermissionIds: User role permissions available to the user roles of + // this account. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // CountryId: ID of the country associated with this account. CountryId int64 `json:"countryId,omitempty,string"` - - // CurrencyId: ID of currency associated with this account. This is a - // required field. + // CurrencyId: ID of currency associated with this account. This is a required + // field. // Acceptable values are: // - "1" for USD // - "2" for GBP @@ -991,20 +1004,15 @@ type Account struct { // - "49" for MXN // - "50" for NGN CurrencyId int64 `json:"currencyId,omitempty,string"` - // DefaultCreativeSizeId: Default placement dimensions for this account. DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"` - // Description: Description of this account. Description string `json:"description,omitempty"` - // Id: ID of this account. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#account". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#account". Kind string `json:"kind,omitempty"` - // Locale: Locale of this account. // Acceptable values are: // - "cs" (Czech) @@ -1024,69 +1032,50 @@ type Account struct { // - "zh-CN" (Chinese Simplified) // - "zh-TW" (Chinese Traditional) Locale string `json:"locale,omitempty"` - - // MaximumImageSize: Maximum image size allowed for this account, in - // kilobytes. Value must be greater than or equal to 1. + // MaximumImageSize: Maximum image size allowed for this account, in kilobytes. + // Value must be greater than or equal to 1. MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"` - - // Name: Name of this account. This is a required field, and must be - // less than 128 characters long and be globally unique. + // Name: Name of this account. This is a required field, and must be less than + // 128 characters long and be globally unique. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether campaigns created in this account will be - // enabled for Nielsen OCR reach ratings by default. + // NielsenOcrEnabled: Whether campaigns created in this account will be enabled + // for Nielsen OCR reach ratings by default. NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - // ReportsConfiguration: Reporting configuration of this account. ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"` - - // ShareReportsWithTwitter: Share Path to Conversion reports with - // Twitter. + // ShareReportsWithTwitter: Share Path to Conversion reports with Twitter. ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"` - // TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser // creatives. Acceptable values are 1 to 10240, inclusive. TeaserSizeLimit int64 `json:"teaserSizeLimit,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionIds") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionIds") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountActiveAdSummary: Gets a summary of active ads in an account. type AccountActiveAdSummary struct { // AccountId: ID of the account. AccountId int64 `json:"accountId,omitempty,string"` - // ActiveAds: Ads that have been activated for the account ActiveAds int64 `json:"activeAds,omitempty,string"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for the - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for the account. // // Possible values: // "ACTIVE_ADS_TIER_100K" @@ -1098,44 +1087,35 @@ type AccountActiveAdSummary struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_75K" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - // AvailableAds: Ads that can be activated for the account. AvailableAds int64 `json:"availableAds,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountActiveAdSummary". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountActiveAdSummary". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountActiveAdSummary) MarshalJSON() ([]byte, error) { +func (s AccountActiveAdSummary) MarshalJSON() ([]byte, error) { type NoMethod AccountActiveAdSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermission: AccountPermissions contains information about a -// particular account permission. Some features of Campaign Manager -// require an account permission to be present in the account. +// particular account permission. Some features of Campaign Manager require an +// account permission to be present in the account. type AccountPermission struct { // AccountProfiles: Account profiles associated with this account // permission. @@ -1148,212 +1128,158 @@ type AccountPermission struct { // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfiles []string `json:"accountProfiles,omitempty"` - // Id: ID of this account permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermission". Kind string `json:"kind,omitempty"` - - // Level: Administrative level required to enable this account - // permission. + // Level: Administrative level required to enable this account permission. // // Possible values: // "ADMINISTRATOR" // "USER" Level string `json:"level,omitempty"` - // Name: Name of this account permission. Name string `json:"name,omitempty"` - // PermissionGroupId: Permission group of this account permission. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountProfiles") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountProfiles") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermission) MarshalJSON() ([]byte, error) { +func (s AccountPermission) MarshalJSON() ([]byte, error) { type NoMethod AccountPermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionGroup: AccountPermissionGroups contains a mapping of -// permission group IDs to names. A permission group is a grouping of -// account permissions. +// permission group IDs to names. A permission group is a grouping of account +// permissions. type AccountPermissionGroup struct { // Id: ID of this account permission group. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this account permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroup) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountPermissionGroupsListResponse: Account Permission Group List -// Response +// AccountPermissionGroupsListResponse: Account Permission Group List Response type AccountPermissionGroupsListResponse struct { // AccountPermissionGroups: Account permission group collection. AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionGroups") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionGroups") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionsListResponse: Account Permission List Response type AccountPermissionsListResponse struct { // AccountPermissions: Account permission collection. AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountPermissions") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountUserProfile: AccountUserProfiles contains properties of a -// Campaign Manager user profile. This resource is specifically for -// managing user profiles, whereas UserProfiles is for accessing the -// API. +// AccountUserProfile: AccountUserProfiles contains properties of a Campaign +// Manager user profile. This resource is specifically for managing user +// profiles, whereas UserProfiles is for accessing the API. type AccountUserProfile struct { - // AccountId: Account ID of the user profile. This is a read-only field - // that can be left blank. + // AccountId: Account ID of the user profile. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether this user profile is active. This defaults to false, - // and must be set true on insert for the user profile to be usable. + // Active: Whether this user profile is active. This defaults to false, and + // must be set true on insert for the user profile to be usable. Active bool `json:"active,omitempty"` - - // AdvertiserFilter: Filter that describes which advertisers are visible - // to the user profile. + // AdvertiserFilter: Filter that describes which advertisers are visible to the + // user profile. AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"` - - // CampaignFilter: Filter that describes which campaigns are visible to - // the user profile. + // CampaignFilter: Filter that describes which campaigns are visible to the + // user profile. CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"` - // Comments: Comments for this user profile. Comments string `json:"comments,omitempty"` - - // Email: Email of the user profile. The email addresss must be linked - // to a Google Account. This field is required on insertion and is - // read-only after insertion. + // Email: Email of the user profile. The email addresss must be linked to a + // Google Account. This field is required on insertion and is read-only after + // insertion. Email string `json:"email,omitempty"` - - // Id: ID of the user profile. This is a read-only, auto-generated - // field. + // Id: ID of the user profile. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfile". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfile". Kind string `json:"kind,omitempty"` - - // Locale: Locale of the user profile. This is a required - // field. + // Locale: Locale of the user profile. This is a required field. // Acceptable values are: // - "cs" (Czech) // - "de" (German) @@ -1372,31 +1298,26 @@ type AccountUserProfile struct { // - "zh-CN" (Chinese Simplified) // - "zh-TW" (Chinese Traditional) Locale string `json:"locale,omitempty"` - - // Name: Name of the user profile. This is a required field. Must be - // less than 64 characters long, must be globally unique, and cannot - // contain whitespace or any of the following characters: "&;"#%,". + // Name: Name of the user profile. This is a required field. Must be less than + // 64 characters long, must be globally unique, and cannot contain whitespace + // or any of the following characters: "&;"#%,". Name string `json:"name,omitempty"` - // SiteFilter: Filter that describes which sites are visible to the user // profile. SiteFilter *ObjectFilter `json:"siteFilter,omitempty"` - - // SubaccountId: Subaccount ID of the user profile. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of the user profile. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TraffickerType: Trafficker type of this user profile. This is a - // read-only field. + // TraffickerType: Trafficker type of this user profile. This is a read-only + // field. // // Possible values: // "EXTERNAL_TRAFFICKER" // "INTERNAL_NON_TRAFFICKER" // "INTERNAL_TRAFFICKER" TraffickerType string `json:"traffickerType,omitempty"` - - // UserAccessType: User type of the user profile. This is a read-only - // field that can be left blank. + // UserAccessType: User type of the user profile. This is a read-only field + // that can be left blank. // // Possible values: // "INTERNAL_ADMINISTRATOR" @@ -1404,213 +1325,159 @@ type AccountUserProfile struct { // "READ_ONLY_SUPER_USER" // "SUPER_USER" UserAccessType string `json:"userAccessType,omitempty"` - - // UserRoleFilter: Filter that describes which user roles are visible to - // the user profile. + // UserRoleFilter: Filter that describes which user roles are visible to the + // user profile. UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"` - - // UserRoleId: User role ID of the user profile. This is a required - // field. + // UserRoleId: User role ID of the user profile. This is a required field. UserRoleId int64 `json:"userRoleId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfile) MarshalJSON() ([]byte, error) { +func (s AccountUserProfile) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountUserProfilesListResponse: Account User Profile List Response type AccountUserProfilesListResponse struct { // AccountUserProfiles: Account user profile collection. AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfilesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfilesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountUserProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountUserProfiles") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { +func (s AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfilesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountsListResponse: Account List Response type AccountsListResponse struct { // Accounts: Account collection. Accounts []*Account `json:"accounts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Accounts") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accounts") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accounts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Activities: Represents an activity group. type Activities struct { - // Filters: List of activity filters. The dimension values need to be - // all either of type "dfa:activity" or "dfa:activityGroup". + // Filters: List of activity filters. The dimension values need to be all + // either of type "dfa:activity" or "dfa:activityGroup". Filters []*DimensionValue `json:"filters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#activities. + // Kind: The kind of resource this is, in this case dfareporting#activities. Kind string `json:"kind,omitempty"` - // MetricNames: List of names of floodlight activity metrics. MetricNames []string `json:"metricNames,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filters") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Activities) MarshalJSON() ([]byte, error) { +func (s Activities) MarshalJSON() ([]byte, error) { type NoMethod Activities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Ad: Contains properties of a Campaign Manager ad. type Ad struct { - // AccountId: Account ID of this ad. This is a read-only field that can - // be left blank. + // AccountId: Account ID of this ad. This is a read-only field that can be left + // blank. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this ad is active. When true, archived must be false. Active bool `json:"active,omitempty"` - // AdvertiserId: Advertiser ID of this ad. This is a required field on // insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Archived: Whether this ad is archived. When true, active must be - // false. + // Archived: Whether this ad is archived. When true, active must be false. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentId: Audience segment ID that is being targeted for - // this ad. Applicable when type is AD_SERVING_STANDARD_AD. + // AudienceSegmentId: Audience segment ID that is being targeted for this ad. + // Applicable when type is AD_SERVING_STANDARD_AD. AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"` - - // CampaignId: Campaign ID of this ad. This is a required field on - // insertion. + // CampaignId: Campaign ID of this ad. This is a required field on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ClickThroughUrl: Click-through URL for this ad. This is a required - // field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. + // ClickThroughUrl: Click-through URL for this ad. This is a required field on + // insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // ClickThroughUrlSuffixProperties: Click-through URL suffix properties - // for this ad. Applies to the URL in the ad or (if overriding ad - // properties) the URL in the creative. + // ClickThroughUrlSuffixProperties: Click-through URL suffix properties for + // this ad. Applies to the URL in the ad or (if overriding ad properties) the + // URL in the creative. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - // Comments: Comments for this ad. Comments string `json:"comments,omitempty"` - // Compatibility: Compatibility of this ad. Applicable when type is - // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to - // either rendering on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are only used for existing default ads. New mobile - // placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and - // default ads created for those placements will be limited to those - // compatibility types. IN_STREAM_VIDEO refers to rendering in-stream - // video ads developed with the VAST standard. + // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either + // rendering on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for + // existing default ads. New mobile placements must be assigned DISPLAY or + // DISPLAY_INTERSTITIAL and default ads created for those placements will be + // limited to those compatibility types. IN_STREAM_VIDEO refers to rendering + // in-stream video ads developed with the VAST standard. // // Possible values: // "APP" @@ -1620,129 +1487,99 @@ type Ad struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - - // CreateInfo: Information about the creation of this ad. This is a - // read-only field. + // CreateInfo: Information about the creation of this ad. This is a read-only + // field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this ad. - // Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment - // per creative group number is allowed for a maximum of two - // assignments. + // CreativeGroupAssignments: Creative group assignments for this ad. Applicable + // when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative + // group number is allowed for a maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeRotation: Creative rotation for this ad. Applicable when type - // is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or - // AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field - // should have exactly one creativeAssignment. + // CreativeRotation: Creative rotation for this ad. Applicable when type is + // AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When + // type is AD_SERVING_DEFAULT_AD, this field should have exactly one + // creativeAssignment. CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"` - - // DayPartTargeting: Time and day targeting information for this ad. - // This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // DayPartTargeting: Time and day targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - - // DefaultClickThroughEventTagProperties: Default click-through event - // tag properties for this ad. + // DefaultClickThroughEventTagProperties: Default click-through event tag + // properties for this ad. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - - // DeliverySchedule: Delivery schedule information for this ad. - // Applicable when type is AD_SERVING_STANDARD_AD or - // AD_SERVING_TRACKING. This field along with subfields priority and - // impressionRatio are required on insertion when type is - // AD_SERVING_STANDARD_AD. + // DeliverySchedule: Delivery schedule information for this ad. Applicable when + // type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with + // subfields priority and impressionRatio are required on insertion when type + // is AD_SERVING_STANDARD_AD. DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"` - - // DynamicClickTracker: Whether this ad is a dynamic click tracker. - // Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required - // field on insert, and is read-only after insert. + // DynamicClickTracker: Whether this ad is a dynamic click tracker. Applicable + // when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, + // and is read-only after insert. DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"` - - // EndTime: Date and time that this ad should stop serving. Must be - // later than the start time. This is a required field on insertion. + // EndTime: Date and time that this ad should stop serving. Must be later than + // the start time. This is a required field on insertion. EndTime string `json:"endTime,omitempty"` - // EventTagOverrides: Event tag overrides for this ad. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - - // GeoTargeting: Geographical targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // GeoTargeting: Geographical targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - // Id: ID of this ad. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this ad. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyValueTargetingExpression: Key-value targeting information for this - // ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // KeyValueTargetingExpression: Key-value targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ad". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ad". Kind string `json:"kind,omitempty"` - - // LanguageTargeting: Language targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // LanguageTargeting: Language targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this ad. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this ad. + // This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this ad. This is a required field and must be less than - // 256 characters long. + // Name: Name of this ad. This is a required field and must be less than 256 + // characters long. Name string `json:"name,omitempty"` - // PlacementAssignments: Placement assignments for this ad. PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"` - - // RemarketingListExpression: Remarketing list targeting expression for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // RemarketingListExpression: Remarketing list targeting expression for this + // ad. This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"` - // Size: Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether this ad is ssl compliant. This is a read-only - // field that is auto-generated when the ad is inserted or updated. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslRequired: Whether this ad requires ssl. This is a read-only field + // SslCompliant: Whether this ad is ssl compliant. This is a read-only field // that is auto-generated when the ad is inserted or updated. + SslCompliant bool `json:"sslCompliant,omitempty"` + // SslRequired: Whether this ad requires ssl. This is a read-only field that is + // auto-generated when the ad is inserted or updated. SslRequired bool `json:"sslRequired,omitempty"` - - // StartTime: Date and time that this ad should start serving. If - // creating an ad, this field must be a time in the future. This is a - // required field on insertion. + // StartTime: Date and time that this ad should start serving. If creating an + // ad, this field must be a time in the future. This is a required field on + // insertion. StartTime string `json:"startTime,omitempty"` - - // SubaccountId: Subaccount ID of this ad. This is a read-only field - // that can be left blank. + // SubaccountId: Subaccount ID of this ad. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TargetingTemplateId: Targeting template ID, used to apply - // preconfigured targeting information to this ad. This cannot be set - // while any of dayPartTargeting, geoTargeting, - // keyValueTargetingExpression, languageTargeting, - // remarketingListExpression, or technologyTargeting are set. Applicable - // when type is AD_SERVING_STANDARD_AD. + // TargetingTemplateId: Targeting template ID, used to apply preconfigured + // targeting information to this ad. This cannot be set while any of + // dayPartTargeting, geoTargeting, keyValueTargetingExpression, + // languageTargeting, remarketingListExpression, or technologyTargeting are + // set. Applicable when type is AD_SERVING_STANDARD_AD. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // TechnologyTargeting: Technology platform targeting information for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // TechnologyTargeting: Technology platform targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - - // Type: Type of ad. This is a required field on insertion. Note that - // default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see - // Creative resource). + // Type: Type of ad. This is a required field on insertion. Note that default + // ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative + // resource). // // Possible values: // "AD_SERVING_CLICK_TRACKER" @@ -1751,91 +1588,71 @@ type Ad struct { // "AD_SERVING_TRACKING" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Ad) MarshalJSON() ([]byte, error) { +func (s Ad) MarshalJSON() ([]byte, error) { type NoMethod Ad - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdBlockingConfiguration: Campaign ad blocking settings. type AdBlockingConfiguration struct { - // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is - // a required field when overrideClickThroughUrl is set to true. + // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is a + // required field when overrideClickThroughUrl is set to true. ClickThroughUrl string `json:"clickThroughUrl,omitempty"` - - // CreativeBundleId: ID of a creative bundle to use for this campaign. - // If set, brand-neutral ads will select creatives from this bundle. - // Otherwise, a default transparent pixel will be used. + // CreativeBundleId: ID of a creative bundle to use for this campaign. If set, + // brand-neutral ads will select creatives from this bundle. Otherwise, a + // default transparent pixel will be used. CreativeBundleId int64 `json:"creativeBundleId,omitempty,string"` - // Enabled: Whether this campaign has enabled ad blocking. When true, ad // blocking is enabled for placements in the campaign, but this may be // overridden by site and placement settings. When false, ad blocking is - // disabled for all placements under the campaign, regardless of site - // and placement settings. + // disabled for all placements under the campaign, regardless of site and + // placement settings. Enabled bool `json:"enabled,omitempty"` - - // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through - // URL comes from the campaign's creative bundle or the override URL. - // Must be set to true if ad blocking is enabled and no creative bundle - // is configured. + // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through URL + // comes from the campaign's creative bundle or the override URL. Must be set + // to true if ad blocking is enabled and no creative bundle is configured. OverrideClickThroughUrl bool `json:"overrideClickThroughUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdBlockingConfiguration) MarshalJSON() ([]byte, error) { +func (s AdBlockingConfiguration) MarshalJSON() ([]byte, error) { type NoMethod AdBlockingConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdSlot: Ad Slot type AdSlot struct { // Comment: Comment for this ad slot. Comment string `json:"comment,omitempty"` - - // Compatibility: Ad slot compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile - // devices or in mobile apps for regular or interstitial ads - // respectively. APP and APP_INTERSTITIAL are for rendering in mobile - // apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // Compatibility: Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer + // to rendering either on desktop, mobile devices or in mobile apps for regular + // or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads // developed with the VAST standard. // // Possible values: @@ -1846,1317 +1663,985 @@ type AdSlot struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - // Height: Height of this ad slot. Height int64 `json:"height,omitempty,string"` - - // LinkedPlacementId: ID of the placement from an external platform that - // is linked to this ad slot. + // LinkedPlacementId: ID of the placement from an external platform that is + // linked to this ad slot. LinkedPlacementId int64 `json:"linkedPlacementId,omitempty,string"` - // Name: Name of this ad slot. Name string `json:"name,omitempty"` - // PaymentSourceType: Payment source type of this ad slot. // // Possible values: // "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID" // "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" PaymentSourceType string `json:"paymentSourceType,omitempty"` - // Primary: Primary ad slot of a roadblock inventory item. Primary bool `json:"primary,omitempty"` - // Width: Width of this ad slot. Width int64 `json:"width,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Comment") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Comment") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Comment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Comment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdSlot) MarshalJSON() ([]byte, error) { +func (s AdSlot) MarshalJSON() ([]byte, error) { type NoMethod AdSlot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdsListResponse: Ad List Response type AdsListResponse struct { // Ads: Ad collection. Ads []*Ad `json:"ads,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#adsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#adsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Ads") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ads") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Ads") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Ads") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdsListResponse) MarshalJSON() ([]byte, error) { +func (s AdsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Advertiser: Contains properties of a Campaign Manager advertiser. type Advertiser struct { - // AccountId: Account ID of this advertiser.This is a read-only field - // that can be left blank. + // AccountId: Account ID of this advertiser.This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserGroupId: ID of the advertiser group this advertiser belongs - // to. You can group advertisers for reporting purposes, allowing you to - // see aggregated information for all advertisers in each group. + // AdvertiserGroupId: ID of the advertiser group this advertiser belongs to. + // You can group advertisers for reporting purposes, allowing you to see + // aggregated information for all advertisers in each group. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // ClickThroughUrlSuffix: Suffix added to click-through URL of ad - // creative associations under this advertiser. Must be less than 129 - // characters long. + // ClickThroughUrlSuffix: Suffix added to click-through URL of ad creative + // associations under this advertiser. Must be less than 129 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply by default to the landing pages of this advertiser's campaigns. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply by + // default to the landing pages of this advertiser's campaigns. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // DefaultEmail: Default email address used in sender field for tag - // emails. + // DefaultEmail: Default email address used in sender field for tag emails. DefaultEmail string `json:"defaultEmail,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // advertiser. The floodlight configuration ID will be created - // automatically, so on insert this field should be left blank. This - // field can be set to another advertiser's floodlight configuration ID - // in order to share that advertiser's floodlight configuration with - // this advertiser, so long as: + // FloodlightConfigurationId: Floodlight configuration ID of this advertiser. + // The floodlight configuration ID will be created automatically, so on insert + // this field should be left blank. This field can be set to another + // advertiser's floodlight configuration ID in order to share that advertiser's + // floodlight configuration with this advertiser, so long as: // - This advertiser's original floodlight configuration is not already // associated with floodlight activities or floodlight activity groups. - // - // - This advertiser's original floodlight configuration is not already - // shared with another advertiser. + // - This advertiser's original floodlight configuration is not already shared + // with another advertiser. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this advertiser. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this advertiser. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this advertiser. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiser". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser. This is a required field and must be - // less than 256 characters long and unique among advertisers of the - // same account. + // Name: Name of this advertiser. This is a required field and must be less + // than 256 characters long and unique among advertisers of the same account. Name string `json:"name,omitempty"` - - // OriginalFloodlightConfigurationId: Original floodlight configuration - // before any sharing occurred. Set the floodlightConfigurationId of - // this advertiser to originalFloodlightConfigurationId to unshare the - // advertiser's current floodlight configuration. You cannot unshare an - // advertiser's floodlight configuration if the shared configuration has - // activities associated with any campaign or placement. + // OriginalFloodlightConfigurationId: Original floodlight configuration before + // any sharing occurred. Set the floodlightConfigurationId of this advertiser + // to originalFloodlightConfigurationId to unshare the advertiser's current + // floodlight configuration. You cannot unshare an advertiser's floodlight + // configuration if the shared configuration has activities associated with any + // campaign or placement. OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"` - // Status: Status of this advertiser. // // Possible values: // "APPROVED" // "ON_HOLD" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this advertiser.This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this advertiser.This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Suspended: Suspension status of this advertiser. Suspended bool `json:"suspended,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Advertiser) MarshalJSON() ([]byte, error) { +func (s Advertiser) MarshalJSON() ([]byte, error) { type NoMethod Advertiser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroup: Groups advertisers together so that reports can be // generated for the entire group at once. type AdvertiserGroup struct { - // AccountId: Account ID of this advertiser group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this advertiser group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this advertiser group. This is a read-only, auto-generated - // field. + // Id: ID of this advertiser group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser group. This is a required field and - // must be less than 256 characters long and unique among advertiser - // groups of the same account. + // Name: Name of this advertiser group. This is a required field and must be + // less than 256 characters long and unique among advertiser groups of the same + // account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroup) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroup) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroupsListResponse: Advertiser Group List Response type AdvertiserGroupsListResponse struct { // AdvertiserGroups: Advertiser group collection. AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserGroups") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserLandingPagesListResponse: Landing Page List Response type AdvertiserLandingPagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserLandingPagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserLandingPagesListResponse". Kind string `json:"kind,omitempty"` - // LandingPages: Landing page collection LandingPages []*LandingPage `json:"landingPages,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserLandingPagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertisersListResponse: Advertiser List Response type AdvertisersListResponse struct { // Advertisers: Advertiser collection. Advertisers []*Advertiser `json:"advertisers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertisersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertisersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Advertisers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Advertisers") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Advertisers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertisersListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertisersListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertisersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegment: Audience Segment. type AudienceSegment struct { - // Allocation: Weight allocated to this segment. The weight assigned - // will be understood in proportion to the weights assigned to other - // segments in the same segment group. Acceptable values are 1 to 1000, - // inclusive. + // Allocation: Weight allocated to this segment. The weight assigned will be + // understood in proportion to the weights assigned to other segments in the + // same segment group. Acceptable values are 1 to 1000, inclusive. Allocation int64 `json:"allocation,omitempty"` - - // Id: ID of this audience segment. This is a read-only, auto-generated - // field. + // Id: ID of this audience segment. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment. This is a required field and - // must be less than 65 characters long. + // Name: Name of this audience segment. This is a required field and must be + // less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Allocation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Allocation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Allocation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegment) MarshalJSON() ([]byte, error) { +func (s AudienceSegment) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegmentGroup: Audience Segment Group. type AudienceSegmentGroup struct { - // AudienceSegments: Audience segments assigned to this group. The - // number of segments must be between 2 and 100. + // AudienceSegments: Audience segments assigned to this group. The number of + // segments must be between 2 and 100. AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"` - - // Id: ID of this audience segment group. This is a read-only, - // auto-generated field. + // Id: ID of this audience segment group. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment group. This is a required field - // and must be less than 65 characters long. + // Name: Name of this audience segment group. This is a required field and must + // be less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudienceSegments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudienceSegments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AudienceSegments") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegmentGroup) MarshalJSON() ([]byte, error) { +func (s AudienceSegmentGroup) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegmentGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Browser: Contains information about a browser that can be targeted by -// ads. +// Browser: Contains information about a browser that can be targeted by ads. type Browser struct { - // BrowserVersionId: ID referring to this grouping of browser and - // version numbers. This is the ID used for targeting. + // BrowserVersionId: ID referring to this grouping of browser and version + // numbers. This is the ID used for targeting. BrowserVersionId int64 `json:"browserVersionId,omitempty,string"` - // DartId: DART ID of this browser. This is the ID used when generating // reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browser". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version number (leftmost number) of this browser. - // For example, for Chrome 5.0.376.86 beta, this field should be set to - // 5. An asterisk (*) may be used to target any version number, and a - // question mark (?) may be used to target cases where the version - // number cannot be identified. For example, Chrome *.* targets any - // version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MajorVersion: Major version number (leftmost number) of this browser. For + // example, for Chrome 5.0.376.86 beta, this field should be set to 5. An + // asterisk (*) may be used to target any version number, and a question mark + // (?) may be used to target cases where the version number cannot be + // identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, + // 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? + // targets cases where the ad server knows the browser is Firefox but can't + // tell which version it is. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version number (number after first dot on left) - // of this browser. For example, for Chrome 5.0.375.86 beta, this field - // should be set to 0. An asterisk (*) may be used to target any version - // number, and a question mark (?) may be used to target cases where the - // version number cannot be identified. For example, Chrome *.* targets - // any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MinorVersion: Minor version number (number after first dot on left) of this + // browser. For example, for Chrome 5.0.375.86 beta, this field should be set + // to 0. An asterisk (*) may be used to target any version number, and a + // question mark (?) may be used to target cases where the version number + // cannot be identified. For example, Chrome *.* targets any version of Chrome: + // 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. + // Firefox ?.? targets cases where the ad server knows the browser is Firefox + // but can't tell which version it is. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this browser. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "BrowserVersionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BrowserVersionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BrowserVersionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Browser) MarshalJSON() ([]byte, error) { +func (s Browser) MarshalJSON() ([]byte, error) { type NoMethod Browser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BrowsersListResponse: Browser List Response type BrowsersListResponse struct { // Browsers: Browser collection. Browsers []*Browser `json:"browsers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browsersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browsersListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BrowsersListResponse) MarshalJSON() ([]byte, error) { +func (s BrowsersListResponse) MarshalJSON() ([]byte, error) { type NoMethod BrowsersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Campaign: Contains properties of a Campaign Manager campaign. type Campaign struct { - // AccountId: Account ID of this campaign. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this campaign. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - // AdBlockingConfiguration: Ad blocking settings for this campaign. AdBlockingConfiguration *AdBlockingConfiguration `json:"adBlockingConfiguration,omitempty"` - // AdditionalCreativeOptimizationConfigurations: Additional creative // optimization configurations for the campaign. AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"` - // AdvertiserGroupId: Advertiser group ID of the associated advertiser. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this campaign. This is a required - // field. + // AdvertiserId: Advertiser ID of this campaign. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of - // this campaign. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of this + // campaign. This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this campaign has been archived. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentGroups: Audience segment groups assigned to this - // campaign. Cannot have more than 300 segment groups. + // AudienceSegmentGroups: Audience segment groups assigned to this campaign. + // Cannot have more than 300 segment groups. AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"` - - // BillingInvoiceCode: Billing invoice code included in the Campaign - // Manager client billing invoices associated with the campaign. + // BillingInvoiceCode: Billing invoice code included in the Campaign Manager + // client billing invoices associated with the campaign. BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"` - // ClickThroughUrlSuffixProperties: Click-through URL suffix override // properties for this campaign. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - - // Comment: Arbitrary comments about this campaign. Must be less than - // 256 characters long. + // Comment: Arbitrary comments about this campaign. Must be less than 256 + // characters long. Comment string `json:"comment,omitempty"` - - // CreateInfo: Information about the creation of this campaign. This is - // a read-only field. + // CreateInfo: Information about the creation of this campaign. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - // CreativeGroupIds: List of creative group IDs that are assigned to the // campaign. CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"` - - // CreativeOptimizationConfiguration: Creative optimization - // configuration for the campaign. + // CreativeOptimizationConfiguration: Creative optimization configuration for + // the campaign. CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"` - - // DefaultClickThroughEventTagProperties: Click-through event tag ID - // override properties for this campaign. + // DefaultClickThroughEventTagProperties: Click-through event tag ID override + // properties for this campaign. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - // DefaultLandingPageId: The default landing page ID for this campaign. DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"` - - // EndDate: Date on which the campaign will stop running. On insert, the - // end date must be today or a future date. The end date must be later - // than or be the same as the start date. If, for example, you set - // 6/25/2015 as both the start and end dates, the effective campaign run - // date is just that day only, 6/25/2015. The hours, minutes, and - // seconds of the end date should not be set, as doing so will result in - // an error. This is a required field. + // EndDate: Date on which the campaign will stop running. On insert, the end + // date must be today or a future date. The end date must be later than or be + // the same as the start date. If, for example, you set 6/25/2015 as both the + // start and end dates, the effective campaign run date is just that day only, + // 6/25/2015. The hours, minutes, and seconds of the end date should not be + // set, as doing so will result in an error. This is a required field. EndDate string `json:"endDate,omitempty"` - - // EventTagOverrides: Overrides that can be used to activate or - // deactivate advertiser event tags. + // EventTagOverrides: Overrides that can be used to activate or deactivate + // advertiser event tags. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - // ExternalId: External ID for this campaign. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this campaign. This is a read-only auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this campaign. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this campaign. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaign". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaign". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this campaign. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // campaign. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // LookbackConfiguration: Lookback window settings for the campaign. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // Name: Name of this campaign. This is a required field and must be - // less than 256 characters long and unique among campaigns of the same - // advertiser. + // Name: Name of this campaign. This is a required field and must be less than + // 256 characters long and unique among campaigns of the same advertiser. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether Nielsen reports are enabled for this - // campaign. + // NielsenOcrEnabled: Whether Nielsen reports are enabled for this campaign. NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - - // StartDate: Date on which the campaign starts running. The start date - // can be any date. The hours, minutes, and seconds of the start date - // should not be set, as doing so will result in an error. This is a - // required field. + // StartDate: Date on which the campaign starts running. The start date can be + // any date. The hours, minutes, and seconds of the start date should not be + // set, as doing so will result in an error. This is a required field. StartDate string `json:"startDate,omitempty"` - - // SubaccountId: Subaccount ID of this campaign. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this campaign. This is a read-only field that + // can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TraffickerEmails: Campaign trafficker contact emails. TraffickerEmails []string `json:"traffickerEmails,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Campaign) MarshalJSON() ([]byte, error) { +func (s Campaign) MarshalJSON() ([]byte, error) { type NoMethod Campaign - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociation: Identifies a creative which has been -// associated with a given campaign. +// CampaignCreativeAssociation: Identifies a creative which has been associated +// with a given campaign. type CampaignCreativeAssociation struct { - // CreativeId: ID of the creative associated with the campaign. This is - // a required field. + // CreativeId: ID of the creative associated with the campaign. This is a + // required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociation". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociation". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreativeId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociationsListResponse: Campaign Creative -// Association List Response +// CampaignCreativeAssociationsListResponse: Campaign Creative Association List +// Response type CampaignCreativeAssociationsListResponse struct { - // CampaignCreativeAssociations: Campaign creative association - // collection + // CampaignCreativeAssociations: Campaign creative association collection CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociationsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "CampaignCreativeAssociations") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CampaignCreativeAssociations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CampaignsListResponse: Campaign List Response type CampaignsListResponse struct { // Campaigns: Campaign collection. Campaigns []*Campaign `json:"campaigns,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Campaigns") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Campaigns") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Campaigns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLog: Describes a change that a user has made to a resource. type ChangeLog struct { // AccountId: Account ID of the modified object. AccountId int64 `json:"accountId,omitempty,string"` - // Action: Action which caused the change. Action string `json:"action,omitempty"` - // ChangeTime: Time when the object was modified. ChangeTime string `json:"changeTime,omitempty"` - // FieldName: Field name of the object which changed. FieldName string `json:"fieldName,omitempty"` - // Id: ID of this change log. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLog". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLog". Kind string `json:"kind,omitempty"` - // NewValue: New value of the object field. NewValue string `json:"newValue,omitempty"` - // ObjectId: ID of the object of this change log. The object could be a // campaign, placement, ad, or other type. ObjectId int64 `json:"objectId,omitempty,string"` - // ObjectType: Object type of the change log. ObjectType string `json:"objectType,omitempty"` - // OldValue: Old value of the object field. OldValue string `json:"oldValue,omitempty"` - // SubaccountId: Subaccount ID of the modified object. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TransactionId: Transaction ID of this change log. When a single API - // call results in many changes, each change will have a separate ID in - // the change log but will share the same transactionId. + // TransactionId: Transaction ID of this change log. When a single API call + // results in many changes, each change will have a separate ID in the change + // log but will share the same transactionId. TransactionId int64 `json:"transactionId,omitempty,string"` - // UserProfileId: ID of the user who modified the object. UserProfileId int64 `json:"userProfileId,omitempty,string"` - - // UserProfileName: User profile name of the user who modified the - // object. + // UserProfileName: User profile name of the user who modified the object. UserProfileName string `json:"userProfileName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLog) MarshalJSON() ([]byte, error) { +func (s ChangeLog) MarshalJSON() ([]byte, error) { type NoMethod ChangeLog - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLogsListResponse: Change Log List Response type ChangeLogsListResponse struct { // ChangeLogs: Change log collection. ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLogsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLogsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ChangeLogs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChangeLogs") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChangeLogs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLogsListResponse) MarshalJSON() ([]byte, error) { +func (s ChangeLogsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ChangeLogsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CitiesListResponse: City List Response type CitiesListResponse struct { // Cities: City collection. Cities []*City `json:"cities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#citiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#citiesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CitiesListResponse) MarshalJSON() ([]byte, error) { +func (s CitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // City: Contains information about a city that can be targeted by ads. type City struct { // CountryCode: Country code of the country to which this city belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this city belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this city. This is the ID used for targeting and // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#city". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#city". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro region code of the metro region (DMA) to which this - // city belongs. + // MetroCode: Metro region code of the metro region (DMA) to which this city + // belongs. MetroCode string `json:"metroCode,omitempty"` - // MetroDmaId: ID of the metro region (DMA) to which this city belongs. MetroDmaId int64 `json:"metroDmaId,omitempty,string"` - // Name: Name of this city. Name string `json:"name,omitempty"` - // RegionCode: Region code of the region to which this city belongs. RegionCode string `json:"regionCode,omitempty"` - // RegionDartId: DART ID of the region to which this city belongs. RegionDartId int64 `json:"regionDartId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *City) MarshalJSON() ([]byte, error) { +func (s City) MarshalJSON() ([]byte, error) { type NoMethod City - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickTag: Creative Click Tag. type ClickTag struct { - // ClickThroughUrl: Parameter value for the specified click tag. This - // field contains a click-through url. + // ClickThroughUrl: Parameter value for the specified click tag. This field + // contains a click-through url. ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // EventName: Advertiser event name associated with the click tag. This - // field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // EventName: Advertiser event name associated with the click tag. This field + // is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. EventName string `json:"eventName,omitempty"` - - // Name: Parameter name for the specified click tag. For - // DISPLAY_IMAGE_GALLERY creative assets, this field must match the - // value of the creative asset's creativeAssetId.name field. + // Name: Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY + // creative assets, this field must match the value of the creative asset's + // creativeAssetId.name field. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickTag) MarshalJSON() ([]byte, error) { +func (s ClickTag) MarshalJSON() ([]byte, error) { type NoMethod ClickTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrl: Click-through URL type ClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - // - If defaultLandingPage is enabled then the campaign's default - // landing page URL is assigned to this field. - // - If defaultLandingPage is not enabled and a landingPageId is - // specified then that landing page's URL is assigned to this field. - // - If neither of the above cases apply, then the customClickThroughUrl - // is assigned to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: + // - If defaultLandingPage is enabled then the campaign's default landing page + // URL is assigned to this field. + // - If defaultLandingPage is not enabled and a landingPageId is specified then + // that landing page's URL is assigned to this field. + // - If neither of the above cases apply, then the customClickThroughUrl is + // assigned to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the - // defaultLandingPage field is set to false and the landingPageId field - // is left unset. + // defaultLandingPage field is set to false and the landingPageId field is left + // unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - - // DefaultLandingPage: Whether the campaign default landing page is - // used. + // DefaultLandingPage: Whether the campaign default landing page is used. DefaultLandingPage bool `json:"defaultLandingPage,omitempty"` - - // LandingPageId: ID of the landing page for the click-through URL. - // Applicable if the defaultLandingPage field is set to false. + // LandingPageId: ID of the landing page for the click-through URL. Applicable + // if the defaultLandingPage field is set to false. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrlSuffixProperties: Click Through URL Suffix settings. type ClickThroughUrlSuffixProperties struct { - // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads - // in this entity's scope. Must be less than 128 characters long. + // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads in this + // entity's scope. Must be less than 128 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // OverrideInheritedSuffix: Whether this entity should override the - // inherited click-through URL suffix with its own defined value. + // OverrideInheritedSuffix: Whether this entity should override the inherited + // click-through URL suffix with its own defined value. OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClickThroughUrlSuffix") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClickThroughUrlSuffix") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClickThroughUrlSuffix") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrlSuffixProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionClickThroughOverride: Companion Click-through override. type CompanionClickThroughOverride struct { - // ClickThroughUrl: Click-through URL of this companion click-through - // override. + // ClickThroughUrl: Click-through URL of this companion click-through override. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CreativeId: ID of the creative for this companion click-through - // override. + // CreativeId: ID of the creative for this companion click-through override. CreativeId int64 `json:"creativeId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { +func (s CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { type NoMethod CompanionClickThroughOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionSetting: Companion Settings type CompanionSetting struct { - // CompanionsDisabled: Whether companions are disabled for this - // placement. + // CompanionsDisabled: Whether companions are disabled for this placement. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - - // EnabledSizes: Whitelist of companion sizes to be served to this - // placement. Set this list to null or empty to serve all companion - // sizes. + // EnabledSizes: Whitelist of companion sizes to be served to this placement. + // Set this list to null or empty to serve all companion sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` - // ImageOnly: Whether to serve only static images as companions. ImageOnly bool `json:"imageOnly,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#companionSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#companionSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionsDisabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionsDisabled") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionSetting) MarshalJSON() ([]byte, error) { +func (s CompanionSetting) MarshalJSON() ([]byte, error) { type NoMethod CompanionSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompatibleFields: Represents a response to the queryCompatibleFields -// method. +// CompatibleFields: Represents a response to the queryCompatibleFields method. type CompatibleFields struct { // CrossDimensionReachReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type - // "CROSS_DIMENSION_REACH". + // compatible to be selected for a report of type "CROSS_DIMENSION_REACH". CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"` - - // FloodlightReportCompatibleFields: Contains items that are compatible - // to be selected for a report of type "FLOODLIGHT". + // FloodlightReportCompatibleFields: Contains items that are compatible to be + // selected for a report of type "FLOODLIGHT". FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#compatibleFields. Kind string `json:"kind,omitempty"` - - // PathToConversionReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type "PATH_TO_CONVERSION". + // PathToConversionReportCompatibleFields: Contains items that are compatible + // to be selected for a report of type "PATH_TO_CONVERSION". PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"` - // ReachReportCompatibleFields: Contains items that are compatible to be // selected for a report of type "REACH". ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"` - - // ReportCompatibleFields: Contains items that are compatible to be - // selected for a report of type "STANDARD". + // ReportCompatibleFields: Contains items that are compatible to be selected + // for a report of type "STANDARD". ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to unconditionally - // include in API requests. By default, fields with empty values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to unconditionally include in + // API requests. By default, fields with empty or default values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted from + // API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields + // for more details. NullFields []string `json:"-"` } -func (s *CompatibleFields) MarshalJSON() ([]byte, error) { +func (s CompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConnectionType: Contains information about an internet connection -// type that can be targeted by ads. Clients can use the connection type -// to target mobile vs. broadband users. +// ConnectionType: Contains information about an internet connection type that +// can be targeted by ads. Clients can use the connection type to target mobile +// vs. broadband users. type ConnectionType struct { // Id: ID of this connection type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionType". Kind string `json:"kind,omitempty"` - // Name: Name of this connection type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionType) MarshalJSON() ([]byte, error) { +func (s ConnectionType) MarshalJSON() ([]byte, error) { type NoMethod ConnectionType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConnectionTypesListResponse: Connection Type List Response @@ -3164,231 +2649,173 @@ type ConnectionTypesListResponse struct { // ConnectionTypes: Collection of connection types such as broadband and // mobile. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionTypesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConnectionTypes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConnectionTypes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConnectionTypes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { +func (s ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ConnectionTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContentCategoriesListResponse: Content Category List Response type ContentCategoriesListResponse struct { // ContentCategories: Content category collection. ContentCategories []*ContentCategory `json:"contentCategories,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategoriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategoriesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ContentCategories") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentCategories") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentCategories") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentCategories") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { +func (s ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ContentCategoriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentCategory: Organizes placements according to the contents of -// their associated webpages. +// ContentCategory: Organizes placements according to the contents of their +// associated webpages. type ContentCategory struct { - // AccountId: Account ID of this content category. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this content category. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this content category. This is a read-only, auto-generated - // field. + // Id: ID of this content category. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategory". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategory". Kind string `json:"kind,omitempty"` - - // Name: Name of this content category. This is a required field and - // must be less than 256 characters long and unique among content - // categories of the same account. + // Name: Name of this content category. This is a required field and must be + // less than 256 characters long and unique among content categories of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategory) MarshalJSON() ([]byte, error) { +func (s ContentCategory) MarshalJSON() ([]byte, error) { type NoMethod ContentCategory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Conversion: A Conversion represents when a user successfully performs -// a desired action after seeing an ad. +// Conversion: A Conversion represents when a user successfully performs a +// desired action after seeing an ad. type Conversion struct { - // ChildDirectedTreatment: Whether this particular request may come from - // a user under the age of 13, under COPPA compliance. + // ChildDirectedTreatment: Whether this particular request may come from a user + // under the age of 13, under COPPA compliance. ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"` - // CustomVariables: Custom floodlight variables. CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"` - // EncryptedUserId: The alphanumeric encrypted user ID. When set, - // encryptionInfo should also be specified. This field is mutually - // exclusive with encryptedUserIdCandidates[], mobileDeviceId and gclid. - // This or encryptedUserIdCandidates[] or mobileDeviceId or gclid is a - // required field. + // encryptionInfo should also be specified. This field is mutually exclusive + // with encryptedUserIdCandidates[], mobileDeviceId and gclid. This or + // encryptedUserIdCandidates[] or mobileDeviceId or gclid is a required field. EncryptedUserId string `json:"encryptedUserId,omitempty"` - - // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user - // IDs. Any user ID with exposure prior to the conversion timestamp will - // be used in the inserted conversion. If no such user ID is found then - // the conversion will be rejected with NO_COOKIE_MATCH_FOUND error. - // When set, encryptionInfo should also be specified. This field may - // only be used when calling batchinsert; it is not supported by - // batchupdate. This field is mutually exclusive with encryptedUserId, - // mobileDeviceId and gclid. This or encryptedUserId or mobileDeviceId - // or gclid is a required field. + // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user IDs. + // Any user ID with exposure prior to the conversion timestamp will be used in + // the inserted conversion. If no such user ID is found then the conversion + // will be rejected with NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo + // should also be specified. This field may only be used when calling + // batchinsert; it is not supported by batchupdate. This field is mutually + // exclusive with encryptedUserId, mobileDeviceId and gclid. This or + // encryptedUserId or mobileDeviceId or gclid is a required field. EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"` - - // FloodlightActivityId: Floodlight Activity ID of this conversion. This - // is a required field. + // FloodlightActivityId: Floodlight Activity ID of this conversion. This is a + // required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightConfigurationId: Floodlight Configuration ID of this - // conversion. This is a required field. + // FloodlightConfigurationId: Floodlight Configuration ID of this conversion. + // This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - // Gclid: The Google click ID. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This - // or encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId - // is a required field. + // encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This or + // encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId is a + // required field. Gclid string `json:"gclid,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversion". Kind string `json:"kind,omitempty"` - - // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to - // true, the conversion will be used for reporting but not targeting. - // This will prevent remarketing. + // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to true, the + // conversion will be used for reporting but not targeting. This will prevent + // remarketing. LimitAdTracking bool `json:"limitAdTracking,omitempty"` - - // MobileDeviceId: The mobile device ID. This field is mutually - // exclusive with encryptedUserId, encryptedUserIdCandidates[] and - // gclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // gclid is a required field. + // MobileDeviceId: The mobile device ID. This field is mutually exclusive with + // encryptedUserId, encryptedUserIdCandidates[] and gclid. This or + // encryptedUserId or encryptedUserIdCandidates[] or gclid is a required field. MobileDeviceId string `json:"mobileDeviceId,omitempty"` - - // NonPersonalizedAd: Whether the conversion was for a non personalized - // ad. + // NonPersonalizedAd: Whether the conversion was for a non personalized ad. NonPersonalizedAd bool `json:"nonPersonalizedAd,omitempty"` - // Ordinal: The ordinal of the conversion. Use this field to control how - // conversions of the same user and day are de-duplicated. This is a - // required field. + // conversions of the same user and day are de-duplicated. This is a required + // field. Ordinal string `json:"ordinal,omitempty"` - // Quantity: The quantity of the conversion. Quantity int64 `json:"quantity,omitempty,string"` - - // TimestampMicros: The timestamp of conversion, in Unix epoch micros. - // This is a required field. + // TimestampMicros: The timestamp of conversion, in Unix epoch micros. This is + // a required field. TimestampMicros int64 `json:"timestampMicros,omitempty,string"` - - // TreatmentForUnderage: Whether this particular request may come from a - // user under the age of 16 (may differ by country), under compliance - // with the European Union's General Data Protection Regulation (GDPR). + // TreatmentForUnderage: Whether this particular request may come from a user + // under the age of 16 (may differ by country), under compliance with the + // European Union's General Data Protection Regulation (GDPR). TreatmentForUnderage bool `json:"treatmentForUnderage,omitempty"` - // Value: The value of the conversion. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ChildDirectedTreatment") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ChildDirectedTreatment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChildDirectedTreatment") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ChildDirectedTreatment") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Conversion) MarshalJSON() ([]byte, error) { +func (s Conversion) MarshalJSON() ([]byte, error) { type NoMethod Conversion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Conversion) UnmarshalJSON(data []byte) error { @@ -3405,8 +2832,8 @@ func (s *Conversion) UnmarshalJSON(data []byte) error { return nil } -// ConversionError: The error code and description for a conversion that -// failed to insert or update. +// ConversionError: The error code and description for a conversion that failed +// to insert or update. type ConversionError struct { // Code: The error code. // @@ -3416,357 +2843,274 @@ type ConversionError struct { // "NOT_FOUND" // "PERMISSION_DENIED" Code string `json:"code,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionError". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionError". Kind string `json:"kind,omitempty"` - // Message: A description of the error. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionError) MarshalJSON() ([]byte, error) { +func (s ConversionError) MarshalJSON() ([]byte, error) { type NoMethod ConversionError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConversionStatus: The original conversion that was inserted or -// updated and whether there were any errors. +// ConversionStatus: The original conversion that was inserted or updated and +// whether there were any errors. type ConversionStatus struct { // Conversion: The original conversion that was inserted or updated. Conversion *Conversion `json:"conversion,omitempty"` - // Errors: A list of errors related to this conversion. Errors []*ConversionError `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionStatus". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionStatus". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversion") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionStatus) MarshalJSON() ([]byte, error) { +func (s ConversionStatus) MarshalJSON() ([]byte, error) { type NoMethod ConversionStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertRequest: Insert Conversions Request. type ConversionsBatchInsertRequest struct { // Conversions: The set of conversions to insert. Conversions []*Conversion `json:"conversions,omitempty"` - - // EncryptionInfo: Describes how encryptedUserId or - // encryptedUserIdCandidates[] is encrypted. This is a required field if - // encryptedUserId or encryptedUserIdCandidates[] is used. + // EncryptionInfo: Describes how encryptedUserId or encryptedUserIdCandidates[] + // is encrypted. This is a required field if encryptedUserId or + // encryptedUserIdCandidates[] is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertResponse: Insert Conversions Response. type ConversionsBatchInsertResponse struct { // HasFailures: Indicates that some or all conversions failed to insert. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertResponse". Kind string `json:"kind,omitempty"` - - // Status: The insert status of each conversion. Statuses are returned - // in the same order that conversions are inserted. + // Status: The insert status of each conversion. Statuses are returned in the + // same order that conversions are inserted. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchUpdateRequest: Update Conversions Request. type ConversionsBatchUpdateRequest struct { // Conversions: The set of conversions to update. Conversions []*Conversion `json:"conversions,omitempty"` - // EncryptionInfo: Describes how encryptedUserId is encrypted. This is a // required field if encryptedUserId is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchUpdateRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchUpdateRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchUpdateResponse: Update Conversions Response. type ConversionsBatchUpdateResponse struct { // HasFailures: Indicates that some or all conversions failed to update. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchUpdateResponse". Kind string `json:"kind,omitempty"` - - // Status: The update status of each conversion. Statuses are returned - // in the same order that conversions are updated. + // Status: The update status of each conversion. Statuses are returned in the + // same order that conversions are updated. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchUpdateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CountriesListResponse: Country List Response type CountriesListResponse struct { // Countries: Country collection. Countries []*Country `json:"countries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#countriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#countriesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Countries") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Countries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Countries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CountriesListResponse) MarshalJSON() ([]byte, error) { +func (s CountriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CountriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Country: Contains information about a country that can be targeted by -// ads. +// Country: Contains information about a country that can be targeted by ads. type Country struct { // CountryCode: Country code. CountryCode string `json:"countryCode,omitempty"` - - // DartId: DART ID of this country. This is the ID used for targeting - // and generating reports. + // DartId: DART ID of this country. This is the ID used for targeting and + // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#country". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#country". Kind string `json:"kind,omitempty"` - // Name: Name of this country. Name string `json:"name,omitempty"` - - // SslEnabled: Whether ad serving supports secure servers in this - // country. + // SslEnabled: Whether ad serving supports secure servers in this country. SslEnabled bool `json:"sslEnabled,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Country) MarshalJSON() ([]byte, error) { +func (s Country) MarshalJSON() ([]byte, error) { type NoMethod Country - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Creative: Contains properties of a Creative. type Creative struct { - // AccountId: Account ID of this creative. This field, if left unset, - // will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // AccountId: Account ID of this creative. This field, if left unset, will be + // auto-generated for both insert and update operations. Applicable to all + // creative types. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether the creative is active. Applicable to all creative - // types. + // Active: Whether the creative is active. Applicable to all creative types. Active bool `json:"active,omitempty"` - - // AdParameters: Ad parameters user for VPAID creative. This is a - // read-only field. Applicable to the following creative types: all - // VPAID. + // AdParameters: Ad parameters user for VPAID creative. This is a read-only + // field. Applicable to the following creative types: all VPAID. AdParameters string `json:"adParameters,omitempty"` - - // AdTagKeys: Keywords for a Rich Media creative. Keywords let you - // customize the creative settings of a Rich Media ad running on your - // site without having to contact the advertiser. You can use keywords - // to dynamically change the look or functionality of a creative. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // AdTagKeys: Keywords for a Rich Media creative. Keywords let you customize + // the creative settings of a Rich Media ad running on your site without having + // to contact the advertiser. You can use keywords to dynamically change the + // look or functionality of a creative. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. AdTagKeys []string `json:"adTagKeys,omitempty"` - - // AdditionalSizes: Additional sizes associated with a responsive - // creative. When inserting or updating a creative either the size ID - // field or size width and height fields can be used. Applicable to - // DISPLAY creatives when the primary asset type is HTML_IMAGE. + // AdditionalSizes: Additional sizes associated with a responsive creative. + // When inserting or updating a creative either the size ID field or size width + // and height fields can be used. Applicable to DISPLAY creatives when the + // primary asset type is HTML_IMAGE. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // AdvertiserId: Advertiser ID of this creative. This is a required - // field. Applicable to all creative types. + // AdvertiserId: Advertiser ID of this creative. This is a required field. + // Applicable to all creative types. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AllowScriptAccess: Whether script access is allowed for this - // creative. This is a read-only and deprecated field which will - // automatically be set to true on update. Applicable to the following - // creative types: FLASH_INPAGE. + // AllowScriptAccess: Whether script access is allowed for this creative. This + // is a read-only and deprecated field which will automatically be set to true + // on update. Applicable to the following creative types: FLASH_INPAGE. AllowScriptAccess bool `json:"allowScriptAccess,omitempty"` - - // Archived: Whether the creative is archived. Applicable to all - // creative types. + // Archived: Whether the creative is archived. Applicable to all creative + // types. Archived bool `json:"archived,omitempty"` - - // ArtworkType: Type of artwork used for the creative. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // ArtworkType: Type of artwork used for the creative. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -3774,52 +3118,42 @@ type Creative struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // AuthoringSource: Source application where creative was authored. - // Presently, only DBM authored creatives will have this field set. - // Applicable to all creative types. + // AuthoringSource: Source application where creative was authored. Presently, + // only DBM authored creatives will have this field set. Applicable to all + // creative types. // // Possible values: // "CREATIVE_AUTHORING_SOURCE_DBM" // "CREATIVE_AUTHORING_SOURCE_DCM" // "CREATIVE_AUTHORING_SOURCE_STUDIO" AuthoringSource string `json:"authoringSource,omitempty"` - // AuthoringTool: Authoring tool for HTML5 banner creatives. This is a - // read-only field. Applicable to the following creative types: - // HTML5_BANNER. + // read-only field. Applicable to the following creative types: HTML5_BANNER. // // Possible values: // "NINJA" // "SWIFFY" AuthoringTool string `json:"authoringTool,omitempty"` - - // AutoAdvanceImages: Whether images are automatically advanced for - // image gallery creatives. Applicable to the following creative types: + // AutoAdvanceImages: Whether images are automatically advanced for image + // gallery creatives. Applicable to the following creative types: // DISPLAY_IMAGE_GALLERY. AutoAdvanceImages bool `json:"autoAdvanceImages,omitempty"` - - // BackgroundColor: The 6-character HTML color code, beginning with #, - // for the background of the window area where the Flash file is - // displayed. Default is white. Applicable to the following creative - // types: FLASH_INPAGE. + // BackgroundColor: The 6-character HTML color code, beginning with #, for the + // background of the window area where the Flash file is displayed. Default is + // white. Applicable to the following creative types: FLASH_INPAGE. BackgroundColor string `json:"backgroundColor,omitempty"` - - // BackupImageClickThroughUrl: Click-through URL for backup image. - // Applicable to ENHANCED_BANNER when the primary asset type is not - // HTML_IMAGE. + // BackupImageClickThroughUrl: Click-through URL for backup image. Applicable + // to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. BackupImageClickThroughUrl *CreativeClickThroughUrl `json:"backupImageClickThroughUrl,omitempty"` - - // BackupImageFeatures: List of feature dependencies that will cause a - // backup image to be served if the browser that serves the ad does not - // support them. Feature dependencies are features that a browser must - // be able to support in order to render your HTML5 creative asset - // correctly. This field is initially auto-generated to contain all - // features detected by Campaign Manager for all the assets of this - // creative and can then be modified by the client. To reset this field, - // copy over all the creativeAssets' detected features. Applicable to - // the following creative types: HTML5_BANNER. Applicable to DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageFeatures: List of feature dependencies that will cause a backup + // image to be served if the browser that serves the ad does not support them. + // Feature dependencies are features that a browser must be able to support in + // order to render your HTML5 creative asset correctly. This field is initially + // auto-generated to contain all features detected by Campaign Manager for all + // the assets of this creative and can then be modified by the client. To reset + // this field, copy over all the creativeAssets' detected features. Applicable + // to the following creative types: HTML5_BANNER. Applicable to DISPLAY when + // the primary asset type is not HTML_IMAGE. // // Possible values: // "APPLICATION_CACHE" @@ -3889,54 +3223,46 @@ type Creative struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" BackupImageFeatures []string `json:"backupImageFeatures,omitempty"` - - // BackupImageReportingLabel: Reporting label used for HTML5 banner - // backup image. Applicable to the following creative types: DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageReportingLabel: Reporting label used for HTML5 banner backup + // image. Applicable to the following creative types: DISPLAY when the primary + // asset type is not HTML_IMAGE. BackupImageReportingLabel string `json:"backupImageReportingLabel,omitempty"` - - // BackupImageTargetWindow: Target window for backup image. Applicable - // to the following creative types: FLASH_INPAGE and HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // BackupImageTargetWindow: Target window for backup image. Applicable to the + // following creative types: FLASH_INPAGE and HTML5_BANNER. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"` - // ClickTags: Click tags of the creative. For DISPLAY, FLASH_INPAGE, and - // HTML5_BANNER creatives, this is a subset of detected click tags for - // the assets associated with this creative. After creating a flash - // asset, detected click tags will be returned in the - // creativeAssetMetadata. When inserting the creative, populate the - // creative clickTags field using the creativeAssetMetadata.clickTags - // field. For DISPLAY_IMAGE_GALLERY creatives, there should be exactly - // one entry in this list for each image creative asset. A click tag is - // matched with a corresponding creative asset by matching the - // clickTag.name field with the creativeAsset.assetIdentifier.name - // field. Applicable to the following creative types: - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. Applicable to - // DISPLAY when the primary asset type is not HTML_IMAGE. + // HTML5_BANNER creatives, this is a subset of detected click tags for the + // assets associated with this creative. After creating a flash asset, detected + // click tags will be returned in the creativeAssetMetadata. When inserting the + // creative, populate the creative clickTags field using the + // creativeAssetMetadata.clickTags field. For DISPLAY_IMAGE_GALLERY creatives, + // there should be exactly one entry in this list for each image creative + // asset. A click tag is matched with a corresponding creative asset by + // matching the clickTag.name field with the creativeAsset.assetIdentifier.name + // field. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, + // FLASH_INPAGE, HTML5_BANNER. Applicable to DISPLAY when the primary asset + // type is not HTML_IMAGE. ClickTags []*ClickTag `json:"clickTags,omitempty"` - // CommercialId: Industry standard ID assigned to creative for reach and // frequency. Applicable to INSTREAM_VIDEO_REDIRECT creatives. CommercialId string `json:"commercialId,omitempty"` - - // CompanionCreatives: List of companion creatives assigned to an - // in-Stream video creative. Acceptable values include IDs of existing - // flash and image creatives. Applicable to the following creative - // types: all VPAID, all INSTREAM_AUDIO and all INSTREAM_VIDEO with - // dynamicAssetSelection set to false. + // CompanionCreatives: List of companion creatives assigned to an in-Stream + // video creative. Acceptable values include IDs of existing flash and image + // creatives. Applicable to the following creative types: all VPAID, all + // INSTREAM_AUDIO and all INSTREAM_VIDEO with dynamicAssetSelection set to + // false. CompanionCreatives googleapi.Int64s `json:"companionCreatives,omitempty"` - - // Compatibility: Compatibilities associated with this creative. This is - // a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to - // rendering either on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing - // creatives may have these compatibilities since new creatives will - // either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. IN_STREAM_AUDIO refers to rendering in - // in-stream audio ads developed with the VAST standard. Applicable to - // all creative types. + // Compatibility: Compatibilities associated with this creative. This is a + // read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either + // on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. Only pre-existing creatives may have these compatibilities + // since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL + // instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // developed with the VAST standard. IN_STREAM_AUDIO refers to rendering in + // in-stream audio ads developed with the VAST standard. Applicable to all + // creative types. // // Acceptable values are: // - "APP" @@ -3954,238 +3280,182 @@ type Creative struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility []string `json:"compatibility,omitempty"` - - // ConvertFlashToHtml5: Whether Flash assets associated with the - // creative need to be automatically converted to HTML5. This flag is - // enabled by default and users can choose to disable it if they don't - // want the system to generate and use HTML5 asset for this creative. - // Applicable to the following creative type: FLASH_INPAGE. Applicable - // to DISPLAY when the primary asset type is not HTML_IMAGE. + // ConvertFlashToHtml5: Whether Flash assets associated with the creative need + // to be automatically converted to HTML5. This flag is enabled by default and + // users can choose to disable it if they don't want the system to generate and + // use HTML5 asset for this creative. Applicable to the following creative + // type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. ConvertFlashToHtml5 bool `json:"convertFlashToHtml5,omitempty"` - - // CounterCustomEvents: List of counter events configured for the - // creative. For DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. + // CounterCustomEvents: List of counter events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"` - // CreativeAssetSelection: Required if dynamicAssetSelection is true. CreativeAssetSelection *CreativeAssetSelection `json:"creativeAssetSelection,omitempty"` - - // CreativeAssets: Assets associated with a creative. Applicable to all - // but the following creative types: INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT + // CreativeAssets: Assets associated with a creative. Applicable to all but the + // following creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, + // and REDIRECT CreativeAssets []*CreativeAsset `json:"creativeAssets,omitempty"` - - // CreativeFieldAssignments: Creative field assignments for this - // creative. Applicable to all creative types. + // CreativeFieldAssignments: Creative field assignments for this creative. + // Applicable to all creative types. CreativeFieldAssignments []*CreativeFieldAssignment `json:"creativeFieldAssignments,omitempty"` - - // CustomKeyValues: Custom key-values for a Rich Media creative. - // Key-values let you customize the creative settings of a Rich Media ad - // running on your site without having to contact the advertiser. You - // can use key-values to dynamically change the look or functionality of - // a creative. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // CustomKeyValues: Custom key-values for a Rich Media creative. Key-values let + // you customize the creative settings of a Rich Media ad running on your site + // without having to contact the advertiser. You can use key-values to + // dynamically change the look or functionality of a creative. Applicable to + // the following creative types: all RICH_MEDIA, and all VPAID. CustomKeyValues []string `json:"customKeyValues,omitempty"` - - // DynamicAssetSelection: Set this to true to enable the use of rules to - // target individual assets in this creative. When set to true - // creativeAssetSelection must be set. This also controls asset-level - // companions. When this is true, companion creatives should be assigned - // to creative assets. Learn more. Applicable to INSTREAM_VIDEO - // creatives. + // DynamicAssetSelection: Set this to true to enable the use of rules to target + // individual assets in this creative. When set to true creativeAssetSelection + // must be set. This also controls asset-level companions. When this is true, + // companion creatives should be assigned to creative assets. Learn more. + // Applicable to INSTREAM_VIDEO creatives. DynamicAssetSelection bool `json:"dynamicAssetSelection,omitempty"` - - // ExitCustomEvents: List of exit events configured for the creative. - // For DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags, For DISPLAY, an event is also - // created from the backupImageReportingLabel. Applicable to the - // following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and - // all VPAID. Applicable to DISPLAY when the primary asset type is not - // HTML_IMAGE. + // ExitCustomEvents: List of exit events configured for the creative. For + // DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only and + // auto-generated from clickTags, For DISPLAY, an event is also created from + // the backupImageReportingLabel. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset type is not HTML_IMAGE. ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"` - - // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF - // file communicate with either Flash Player or the program hosting - // Flash Player, such as a web browser. This is only triggered if - // allowScriptAccess field is true. Applicable to the following creative - // types: FLASH_INPAGE. + // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF file + // communicate with either Flash Player or the program hosting Flash Player, + // such as a web browser. This is only triggered if allowScriptAccess field is + // true. Applicable to the following creative types: FLASH_INPAGE. FsCommand *FsCommand `json:"fsCommand,omitempty"` - // HtmlCode: HTML code for the creative. This is a required field when - // applicable. This field is ignored if htmlCodeLocked is true. - // Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, - // and HTML5_BANNER, and all RICH_MEDIA. + // applicable. This field is ignored if htmlCodeLocked is true. Applicable to + // the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, + // and all RICH_MEDIA. HtmlCode string `json:"htmlCode,omitempty"` - // HtmlCodeLocked: Whether HTML code is generated by Campaign Manager or - // manually entered. Set to true to ignore changes to htmlCode. - // Applicable to the following creative types: FLASH_INPAGE and - // HTML5_BANNER. + // manually entered. Set to true to ignore changes to htmlCode. Applicable to + // the following creative types: FLASH_INPAGE and HTML5_BANNER. HtmlCodeLocked bool `json:"htmlCodeLocked,omitempty"` - // Id: ID of this creative. This is a read-only, auto-generated field. // Applicable to all creative types. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this creative. This - // is a read-only field. Applicable to all creative types. + // IdDimensionValue: Dimension value for the ID of this creative. This is a + // read-only field. Applicable to all creative types. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creative". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creative". Kind string `json:"kind,omitempty"` - // LastModifiedInfo: Creative last modification information. This is a // read-only field. Applicable to all creative types. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // LatestTraffickedCreativeId: Latest Studio trafficked creative ID - // associated with rich media and VPAID creatives. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // LatestTraffickedCreativeId: Latest Studio trafficked creative ID associated + // with rich media and VPAID creatives. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA, and all VPAID. LatestTraffickedCreativeId int64 `json:"latestTraffickedCreativeId,omitempty,string"` - - // MediaDescription: Description of the audio or video ad. Applicable to - // the following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and - // all VPAID. + // MediaDescription: Description of the audio or video ad. Applicable to the + // following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and all VPAID. MediaDescription string `json:"mediaDescription,omitempty"` - // MediaDuration: Creative audio or video duration in seconds. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO, INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID. + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO, + // INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID. MediaDuration float64 `json:"mediaDuration,omitempty"` - - // Name: Name of the creative. This is a required field and must be less - // than 256 characters long. Applicable to all creative types. + // Name: Name of the creative. This is a required field and must be less than + // 256 characters long. Applicable to all creative types. Name string `json:"name,omitempty"` - - // OverrideCss: Override CSS value for rich media creatives. Applicable - // to the following creative types: all RICH_MEDIA. + // OverrideCss: Override CSS value for rich media creatives. Applicable to the + // following creative types: all RICH_MEDIA. OverrideCss string `json:"overrideCss,omitempty"` - - // PoliteLoadAssetId: The asset ID of the polite load image asset. - // Applicable to the creative type: DISPLAY. + // PoliteLoadAssetId: The asset ID of the polite load image asset. Applicable + // to the creative type: DISPLAY. PoliteLoadAssetId int64 `json:"politeLoadAssetId,omitempty,string"` - - // ProgressOffset: Amount of time to play the video before counting a - // view. Applicable to the following creative types: all INSTREAM_VIDEO. + // ProgressOffset: Amount of time to play the video before counting a view. + // Applicable to the following creative types: all INSTREAM_VIDEO. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // RedirectUrl: URL of hosted image or hosted video or another ad tag. - // For INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video - // redirect URL. The standard for a VAST (Video Ad Serving Template) ad - // response allows for a redirect link to another VAST 2.0 or 3.0 call. - // This is a required field when applicable. Applicable to the following - // creative types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT + // RedirectUrl: URL of hosted image or hosted video or another ad tag. For + // INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. + // The standard for a VAST (Video Ad Serving Template) ad response allows for a + // redirect link to another VAST 2.0 or 3.0 call. This is a required field when + // applicable. Applicable to the following creative types: DISPLAY_REDIRECT, + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and + // INSTREAM_VIDEO_REDIRECT RedirectUrl string `json:"redirectUrl,omitempty"` - - // RenderingId: ID of current rendering version. This is a read-only - // field. Applicable to all creative types. + // RenderingId: ID of current rendering version. This is a read-only field. + // Applicable to all creative types. RenderingId int64 `json:"renderingId,omitempty,string"` - - // RenderingIdDimensionValue: Dimension value for the rendering ID of - // this creative. This is a read-only field. Applicable to all creative - // types. + // RenderingIdDimensionValue: Dimension value for the rendering ID of this + // creative. This is a read-only field. Applicable to all creative types. RenderingIdDimensionValue *DimensionValue `json:"renderingIdDimensionValue,omitempty"` - - // RequiredFlashPluginVersion: The minimum required Flash plugin version - // for this creative. For example, 11.2.202.235. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // RequiredFlashPluginVersion: The minimum required Flash plugin version for + // this creative. For example, 11.2.202.235. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA, and all VPAID. RequiredFlashPluginVersion string `json:"requiredFlashPluginVersion,omitempty"` - // RequiredFlashVersion: The internal Flash version for this creative as - // calculated by Studio. This is a read-only field. Applicable to the - // following creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // calculated by Studio. This is a read-only field. Applicable to the following + // creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. RequiredFlashVersion int64 `json:"requiredFlashVersion,omitempty"` - - // Size: Size associated with this creative. When inserting or updating - // a creative either the size ID field or size width and height fields - // can be used. This is a required field when applicable; however for - // IMAGE, FLASH_INPAGE creatives, and for DISPLAY creatives with a - // primary asset of type HTML_IMAGE, if left blank, this field will be - // automatically set using the actual size of the associated image - // assets. Applicable to the following creative types: DISPLAY, - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all - // RICH_MEDIA. + // Size: Size associated with this creative. When inserting or updating a + // creative either the size ID field or size width and height fields can be + // used. This is a required field when applicable; however for IMAGE, + // FLASH_INPAGE creatives, and for DISPLAY creatives with a primary asset of + // type HTML_IMAGE, if left blank, this field will be automatically set using + // the actual size of the associated image assets. Applicable to the following + // creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, + // IMAGE, and all RICH_MEDIA. Size *Size `json:"size,omitempty"` - - // SkipOffset: Amount of time to play the video before the skip button - // appears. Applicable to the following creative types: all - // INSTREAM_VIDEO. + // SkipOffset: Amount of time to play the video before the skip button appears. + // Applicable to the following creative types: all INSTREAM_VIDEO. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can choose to skip the creative. - // Applicable to the following creative types: all INSTREAM_VIDEO and - // all VPAID. + // Skippable: Whether the user can choose to skip the creative. Applicable to + // the following creative types: all INSTREAM_VIDEO and all VPAID. Skippable bool `json:"skippable,omitempty"` - - // SslCompliant: Whether the creative is SSL-compliant. This is a - // read-only field. Applicable to all creative types. + // SslCompliant: Whether the creative is SSL-compliant. This is a read-only + // field. Applicable to all creative types. SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslOverride: Whether creative should be treated as SSL compliant even - // if the system scan shows it's not. Applicable to all creative types. + // SslOverride: Whether creative should be treated as SSL compliant even if the + // system scan shows it's not. Applicable to all creative types. SslOverride bool `json:"sslOverride,omitempty"` - - // StudioAdvertiserId: Studio advertiser ID associated with rich media - // and VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioAdvertiserId: Studio advertiser ID associated with rich media and + // VPAID creatives. This is a read-only field. Applicable to the following + // creative types: all RICH_MEDIA, and all VPAID. StudioAdvertiserId int64 `json:"studioAdvertiserId,omitempty,string"` - - // StudioCreativeId: Studio creative ID associated with rich media and - // VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioCreativeId: Studio creative ID associated with rich media and VPAID + // creatives. This is a read-only field. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. StudioCreativeId int64 `json:"studioCreativeId,omitempty,string"` - - // StudioTraffickedCreativeId: Studio trafficked creative ID associated - // with rich media and VPAID creatives. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // StudioTraffickedCreativeId: Studio trafficked creative ID associated with + // rich media and VPAID creatives. This is a read-only field. Applicable to the + // following creative types: all RICH_MEDIA, and all VPAID. StudioTraffickedCreativeId int64 `json:"studioTraffickedCreativeId,omitempty,string"` - - // SubaccountId: Subaccount ID of this creative. This field, if left - // unset, will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // SubaccountId: Subaccount ID of this creative. This field, if left unset, + // will be auto-generated for both insert and update operations. Applicable to + // all creative types. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record - // backup image impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record backup + // image impressions. Applicable to the following creative types: all + // RICH_MEDIA. ThirdPartyBackupImageImpressionsUrl string `json:"thirdPartyBackupImageImpressionsUrl,omitempty"` - - // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record - // rich media impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record rich media + // impressions. Applicable to the following creative types: all RICH_MEDIA. ThirdPartyRichMediaImpressionsUrl string `json:"thirdPartyRichMediaImpressionsUrl,omitempty"` - - // ThirdPartyUrls: Third-party URLs for tracking in-stream creative - // events. Applicable to the following creative types: all - // INSTREAM_VIDEO, all INSTREAM_AUDIO, and all VPAID. + // ThirdPartyUrls: Third-party URLs for tracking in-stream creative events. + // Applicable to the following creative types: all INSTREAM_VIDEO, all + // INSTREAM_AUDIO, and all VPAID. ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"` - - // TimerCustomEvents: List of timer events configured for the creative. - // For DISPLAY_IMAGE_GALLERY creatives, these are read-only and - // auto-generated from clickTags. Applicable to the following creative - // types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset is not HTML_IMAGE. + // TimerCustomEvents: List of timer events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset is not HTML_IMAGE. TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"` - - // TotalFileSize: Combined size of all creative assets. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // TotalFileSize: Combined size of all creative assets. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. TotalFileSize int64 `json:"totalFileSize,omitempty,string"` - - // Type: Type of this creative. This is a required field. Applicable to - // all creative types. + // Type: Type of this creative. This is a required field. Applicable to all + // creative types. // - // Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for - // existing creatives. New creatives should use DISPLAY as a replacement - // for these types. + // Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing + // creatives. New creatives should use DISPLAY as a replacement for these + // types. // // Possible values: // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" @@ -4214,47 +3484,37 @@ type Creative struct { // "VPAID_LINEAR_VIDEO" // "VPAID_NON_LINEAR_VIDEO" Type string `json:"type,omitempty"` - - // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable - // to the following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO - // and VPAID. + // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the + // following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO and VPAID. UniversalAdId *UniversalAdId `json:"universalAdId,omitempty"` - - // Version: The version number helps you keep track of multiple versions - // of your creative in your reports. The version number will always be + // Version: The version number helps you keep track of multiple versions of + // your creative in your reports. The version number will always be // auto-generated during insert operations to start at 1. For tracking - // creatives the version cannot be incremented and will always remain at - // 1. For all other creative types the version can be incremented only - // by 1 during update operations. In addition, the version will be - // automatically incremented by 1 when undergoing Rich Media creative - // merging. Applicable to all creative types. + // creatives the version cannot be incremented and will always remain at 1. For + // all other creative types the version can be incremented only by 1 during + // update operations. In addition, the version will be automatically + // incremented by 1 when undergoing Rich Media creative merging. Applicable to + // all creative types. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Creative) MarshalJSON() ([]byte, error) { +func (s Creative) MarshalJSON() ([]byte, error) { type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Creative) UnmarshalJSON(data []byte) error { @@ -4273,25 +3533,20 @@ func (s *Creative) UnmarshalJSON(data []byte) error { // CreativeAsset: Creative Asset. type CreativeAsset struct { - // ActionScript3: Whether ActionScript3 is enabled for the flash asset. - // This is a read-only field. Applicable to the following creative type: - // FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is - // not HTML_IMAGE. + // ActionScript3: Whether ActionScript3 is enabled for the flash asset. This is + // a read-only field. Applicable to the following creative type: FLASH_INPAGE. + // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ActionScript3 bool `json:"actionScript3,omitempty"` - - // Active: Whether the video or audio asset is active. This is a - // read-only field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the - // following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all - // VPAID. + // Active: Whether the video or audio asset is active. This is a read-only + // field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the following + // creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. Active bool `json:"active,omitempty"` - - // AdditionalSizes: Additional sizes associated with this creative - // asset. HTML5 asset generated by compatible software such as GWD will - // be able to support more sizes this creative asset can render. + // AdditionalSizes: Additional sizes associated with this creative asset. HTML5 + // asset generated by compatible software such as GWD will be able to support + // more sizes this creative asset can render. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // Alignment: Possible alignments for an asset. This is a read-only - // field. Applicable to the following creative types: + // Alignment: Possible alignments for an asset. This is a read-only field. + // Applicable to the following creative types: // RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. // // Possible values: @@ -4300,9 +3555,8 @@ type CreativeAsset struct { // "ALIGNMENT_RIGHT" // "ALIGNMENT_TOP" Alignment string `json:"alignment,omitempty"` - - // ArtworkType: Artwork type of rich media creative. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // ArtworkType: Artwork type of rich media creative. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -4310,24 +3564,20 @@ type CreativeAsset struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // AssetIdentifier: Identifier of this asset. This is the same - // identifier returned during creative asset insert operation. This is a - // required field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // AssetIdentifier: Identifier of this asset. This is the same identifier + // returned during creative asset insert operation. This is a required field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // BackupImageExit: Exit event configured for the backup image. - // Applicable to the following creative types: all RICH_MEDIA. + // BackupImageExit: Exit event configured for the backup image. Applicable to + // the following creative types: all RICH_MEDIA. BackupImageExit *CreativeCustomEvent `json:"backupImageExit,omitempty"` - - // BitRate: Detected bit-rate for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // BitRate: Detected bit-rate for audio or video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. BitRate int64 `json:"bitRate,omitempty"` - - // ChildAssetType: Rich media child asset type. This is a read-only - // field. Applicable to the following creative types: all VPAID. + // ChildAssetType: Rich media child asset type. This is a read-only field. + // Applicable to the following creative types: all VPAID. // // Possible values: // "CHILD_ASSET_TYPE_DATA" @@ -4335,30 +3585,26 @@ type CreativeAsset struct { // "CHILD_ASSET_TYPE_IMAGE" // "CHILD_ASSET_TYPE_VIDEO" ChildAssetType string `json:"childAssetType,omitempty"` - - // CollapsedSize: Size of an asset when collapsed. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA and - // all VPAID. Additionally, applicable to assets whose displayType is + // CollapsedSize: Size of an asset when collapsed. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA and all VPAID. + // Additionally, applicable to assets whose displayType is // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. CollapsedSize *Size `json:"collapsedSize,omitempty"` - - // CompanionCreativeIds: List of companion creatives assigned to an - // in-stream video creative asset. Acceptable values include IDs of - // existing flash and image creatives. Applicable to INSTREAM_VIDEO - // creative type with dynamicAssetSelection set to true. + // CompanionCreativeIds: List of companion creatives assigned to an in-stream + // video creative asset. Acceptable values include IDs of existing flash and + // image creatives. Applicable to INSTREAM_VIDEO creative type with + // dynamicAssetSelection set to true. CompanionCreativeIds googleapi.Int64s `json:"companionCreativeIds,omitempty"` - - // CustomStartTimeValue: Custom start time in seconds for making the - // asset visible. Applicable to the following creative types: all - // RICH_MEDIA. Value must be greater than or equal to 0. + // CustomStartTimeValue: Custom start time in seconds for making the asset + // visible. Applicable to the following creative types: all RICH_MEDIA. Value + // must be greater than or equal to 0. CustomStartTimeValue int64 `json:"customStartTimeValue,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. Applicable to the following creative types: HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by Campaign Manager. Feature dependencies are features that a + // browser must be able to support in order to render your HTML5 creative + // correctly. This is a read-only, auto-generated field. Applicable to the + // following creative types: HTML5_BANNER. Applicable to DISPLAY when the + // primary asset type is not HTML_IMAGE. // // Possible values: // "APPLICATION_CACHE" @@ -4428,9 +3674,8 @@ type CreativeAsset struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // DisplayType: Type of rich media asset. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA. + // DisplayType: Type of rich media asset. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DISPLAY_TYPE_BACKDROP" @@ -4444,166 +3689,135 @@ type CreativeAsset struct { // "ASSET_DISPLAY_TYPE_VPAID_LINEAR" // "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" DisplayType string `json:"displayType,omitempty"` - // Duration: Duration in seconds for which an asset will be displayed. - // Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or - // equal to 1. + // Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO + // and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. Duration int64 `json:"duration,omitempty"` - - // DurationType: Duration type for which an asset will be displayed. - // Applicable to the following creative types: all RICH_MEDIA. + // DurationType: Duration type for which an asset will be displayed. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DURATION_TYPE_AUTO" // "ASSET_DURATION_TYPE_CUSTOM" // "ASSET_DURATION_TYPE_NONE" DurationType string `json:"durationType,omitempty"` - - // ExpandedDimension: Detected expanded dimension for video asset. This - // is a read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ExpandedDimension: Detected expanded dimension for video asset. This is a + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO + // and all VPAID. ExpandedDimension *Size `json:"expandedDimension,omitempty"` - - // FileSize: File size associated with this creative asset. This is a - // read-only field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // FileSize: File size associated with this creative asset. This is a read-only + // field. Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. FileSize int64 `json:"fileSize,omitempty,string"` - // FlashVersion: Flash version of the asset. This is a read-only field. - // Applicable to the following creative types: FLASH_INPAGE, all - // RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Applicable to the following creative types: FLASH_INPAGE, all RICH_MEDIA, + // and all VPAID. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. FlashVersion int64 `json:"flashVersion,omitempty"` - // HideFlashObjects: Whether to hide Flash objects flag for an asset. // Applicable to the following creative types: all RICH_MEDIA. HideFlashObjects bool `json:"hideFlashObjects,omitempty"` - - // HideSelectionBoxes: Whether to hide selection boxes flag for an - // asset. Applicable to the following creative types: all RICH_MEDIA. + // HideSelectionBoxes: Whether to hide selection boxes flag for an asset. + // Applicable to the following creative types: all RICH_MEDIA. HideSelectionBoxes bool `json:"hideSelectionBoxes,omitempty"` - - // HorizontallyLocked: Whether the asset is horizontally locked. This is - // a read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // HorizontallyLocked: Whether the asset is horizontally locked. This is a + // read-only field. Applicable to the following creative types: all RICH_MEDIA. HorizontallyLocked bool `json:"horizontallyLocked,omitempty"` - - // Id: Numeric ID of this creative asset. This is a required field and - // should not be modified. Applicable to all but the following creative - // types: all REDIRECT and TRACKING_TEXT. + // Id: Numeric ID of this creative asset. This is a required field and should + // not be modified. Applicable to all but the following creative types: all + // REDIRECT and TRACKING_TEXT. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of the asset. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - // MediaDuration: Detected duration for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // read-only field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. MediaDuration float64 `json:"mediaDuration,omitempty"` - - // MimeType: Detected MIME type for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // MimeType: Detected MIME type for audio or video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. MimeType string `json:"mimeType,omitempty"` - - // Offset: Offset position for an asset in collapsed mode. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA and all VPAID. Additionally, only applicable to assets - // whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or - // ASSET_DISPLAY_TYPE_PEEL_DOWN. + // Offset: Offset position for an asset in collapsed mode. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA and all + // VPAID. Additionally, only applicable to assets whose displayType is + // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. Offset *OffsetPosition `json:"offset,omitempty"` - - // Orientation: Orientation of video asset. This is a read-only, - // auto-generated field. + // Orientation: Orientation of video asset. This is a read-only, auto-generated + // field. // // Possible values: // "LANDSCAPE" // "PORTRAIT" // "SQUARE" Orientation string `json:"orientation,omitempty"` - - // OriginalBackup: Whether the backup asset is original or changed by - // the user in Campaign Manager. Applicable to the following creative - // types: all RICH_MEDIA. + // OriginalBackup: Whether the backup asset is original or changed by the user + // in Campaign Manager. Applicable to the following creative types: all + // RICH_MEDIA. OriginalBackup bool `json:"originalBackup,omitempty"` - - // Position: Offset position for an asset. Applicable to the following - // creative types: all RICH_MEDIA. + // Position: Offset position for an asset. Applicable to the following creative + // types: all RICH_MEDIA. Position *OffsetPosition `json:"position,omitempty"` - - // PositionLeftUnit: Offset left unit for an asset. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // PositionLeftUnit: Offset left unit for an asset. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionLeftUnit string `json:"positionLeftUnit,omitempty"` - - // PositionTopUnit: Offset top unit for an asset. This is a read-only - // field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. - // Applicable to the following creative types: all RICH_MEDIA. + // PositionTopUnit: Offset top unit for an asset. This is a read-only field if + // the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the + // following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionTopUnit string `json:"positionTopUnit,omitempty"` - - // ProgressiveServingUrl: Progressive URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ProgressiveServingUrl: Progressive URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. ProgressiveServingUrl string `json:"progressiveServingUrl,omitempty"` - - // Pushdown: Whether the asset pushes down other content. Applicable to - // the following creative types: all RICH_MEDIA. Additionally, only - // applicable when the asset offsets are 0, the collapsedSize.width - // matches size.width, and the collapsedSize.height is less than - // size.height. + // Pushdown: Whether the asset pushes down other content. Applicable to the + // following creative types: all RICH_MEDIA. Additionally, only applicable when + // the asset offsets are 0, the collapsedSize.width matches size.width, and the + // collapsedSize.height is less than size.height. Pushdown bool `json:"pushdown,omitempty"` - - // PushdownDuration: Pushdown duration in seconds for an asset. - // Applicable to the following creative types: all - // RICH_MEDIA.Additionally, only applicable when the asset pushdown - // field is true, the offsets are 0, the collapsedSize.width matches - // size.width, and the collapsedSize.height is less than size.height. - // Acceptable values are 0 to 9.99, inclusive. + // PushdownDuration: Pushdown duration in seconds for an asset. Applicable to + // the following creative types: all RICH_MEDIA.Additionally, only applicable + // when the asset pushdown field is true, the offsets are 0, the + // collapsedSize.width matches size.width, and the collapsedSize.height is less + // than size.height. Acceptable values are 0 to 9.99, inclusive. PushdownDuration float64 `json:"pushdownDuration,omitempty"` - - // Role: Role of the asset in relation to creative. Applicable to all - // but the following creative types: all REDIRECT and TRACKING_TEXT. - // This is a required field. + // Role: Role of the asset in relation to creative. Applicable to all but the + // following creative types: all REDIRECT and TRACKING_TEXT. This is a required + // field. // PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, - // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple - // primary assets), and all VPAID creatives. - // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, - // and all VPAID creatives. Applicable to DISPLAY when the primary asset - // type is not HTML_IMAGE. - // ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE - // creatives. - // OTHER refers to assets from sources other than Campaign Manager, such - // as Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary + // assets), and all VPAID creatives. + // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all + // VPAID creatives. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. + // ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. + // OTHER refers to assets from sources other than Campaign Manager, such as + // Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID // creatives. - // PARENT_VIDEO refers to videos uploaded by the user in Campaign - // Manager and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO + // PARENT_VIDEO refers to videos uploaded by the user in Campaign Manager and + // is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO // creatives. // TRANSCODED_VIDEO refers to videos transcoded by Campaign Manager from // PARENT_VIDEO assets and is applicable to INSTREAM_VIDEO and // VPAID_LINEAR_VIDEO creatives. - // ALTERNATE_VIDEO refers to the Campaign Manager representation of - // child asset videos from Studio, and is applicable to - // VPAID_LINEAR_VIDEO creatives. These cannot be added or removed within - // Campaign Manager. + // ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset + // videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These + // cannot be added or removed within Campaign Manager. // For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and - // ALTERNATE_VIDEO assets that are marked active serve as backup in case - // the VPAID creative cannot be served. Only PARENT_VIDEO assets can be - // added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO - // creative. - // PARENT_AUDIO refers to audios uploaded by the user in Campaign - // Manager and is applicable to INSTREAM_AUDIO - // creatives. + // ALTERNATE_VIDEO assets that are marked active serve as backup in case the + // VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or + // removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. + // PARENT_AUDIO refers to audios uploaded by the user in Campaign Manager and + // is applicable to INSTREAM_AUDIO creatives. // TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager from // PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives. // @@ -4619,44 +3833,36 @@ type CreativeAsset struct { // "TRANSCODED_AUDIO" // "TRANSCODED_VIDEO" Role string `json:"role,omitempty"` - - // Size: Size associated with this creative asset. This is a required - // field when applicable; however for IMAGE and FLASH_INPAGE, creatives - // if left blank, this field will be automatically set using the actual - // size of the associated image asset. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, - // IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Size: Size associated with this creative asset. This is a required field + // when applicable; however for IMAGE and FLASH_INPAGE, creatives if left + // blank, this field will be automatically set using the actual size of the + // associated image asset. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all + // RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether the asset is SSL-compliant. This is a read-only - // field. Applicable to all but the following creative types: all - // REDIRECT and TRACKING_TEXT. + // SslCompliant: Whether the asset is SSL-compliant. This is a read-only field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTimeType: Initial wait time type before making the asset - // visible. Applicable to the following creative types: all RICH_MEDIA. + // StartTimeType: Initial wait time type before making the asset visible. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_START_TIME_TYPE_CUSTOM" // "ASSET_START_TIME_TYPE_NONE" StartTimeType string `json:"startTimeType,omitempty"` - - // StreamingServingUrl: Streaming URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // StreamingServingUrl: Streaming URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. StreamingServingUrl string `json:"streamingServingUrl,omitempty"` - - // Transparency: Whether the asset is transparent. Applicable to the - // following creative types: all RICH_MEDIA. Additionally, only - // applicable to HTML5 assets. + // Transparency: Whether the asset is transparent. Applicable to the following + // creative types: all RICH_MEDIA. Additionally, only applicable to HTML5 + // assets. Transparency bool `json:"transparency,omitempty"` - // VerticallyLocked: Whether the asset is vertically locked. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // read-only field. Applicable to the following creative types: all RICH_MEDIA. VerticallyLocked bool `json:"verticallyLocked,omitempty"` - // WindowMode: Window mode options for flash assets. Applicable to the // following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, // RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and @@ -4667,43 +3873,34 @@ type CreativeAsset struct { // "TRANSPARENT" // "WINDOW" WindowMode string `json:"windowMode,omitempty"` - - // ZIndex: zIndex value of an asset. Applicable to the following - // creative types: all RICH_MEDIA.Additionally, only applicable to - // assets whose displayType is NOT one of the following types: - // ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable - // values are -999999999 to 999999999, inclusive. + // ZIndex: zIndex value of an asset. Applicable to the following creative + // types: all RICH_MEDIA.Additionally, only applicable to assets whose + // displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or + // ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, + // inclusive. ZIndex int64 `json:"zIndex,omitempty"` - - // ZipFilename: File name of zip file. This is a read-only field. - // Applicable to the following creative types: HTML5_BANNER. + // ZipFilename: File name of zip file. This is a read-only field. Applicable to + // the following creative types: HTML5_BANNER. ZipFilename string `json:"zipFilename,omitempty"` - - // ZipFilesize: Size of zip file. This is a read-only field. Applicable - // to the following creative types: HTML5_BANNER. + // ZipFilesize: Size of zip file. This is a read-only field. Applicable to the + // following creative types: HTML5_BANNER. ZipFilesize string `json:"zipFilesize,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionScript3") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionScript3") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionScript3") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAsset) MarshalJSON() ([]byte, error) { +func (s CreativeAsset) MarshalJSON() ([]byte, error) { type NoMethod CreativeAsset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CreativeAsset) UnmarshalJSON(data []byte) error { @@ -4724,15 +3921,13 @@ func (s *CreativeAsset) UnmarshalJSON(data []byte) error { // CreativeAssetId: Creative Asset ID. type CreativeAssetId struct { - // Name: Name of the creative asset. This is a required field while - // inserting an asset. After insertion, this assetIdentifier is used to - // identify the uploaded asset. Characters in the name must be - // alphanumeric or one of the following: ".-_ ". Spaces are allowed. + // Name: Name of the creative asset. This is a required field while inserting + // an asset. After insertion, this assetIdentifier is used to identify the + // uploaded asset. Characters in the name must be alphanumeric or one of the + // following: ".-_ ". Spaces are allowed. Name string `json:"name,omitempty"` - - // Type: Type of asset to upload. This is a required field. FLASH and - // IMAGE are no longer supported for new uploads. All image assets - // should use HTML_IMAGE. + // Type: Type of asset to upload. This is a required field. FLASH and IMAGE are + // no longer supported for new uploads. All image assets should use HTML_IMAGE. // // Possible values: // "AUDIO" @@ -4742,47 +3937,37 @@ type CreativeAssetId struct { // "IMAGE" // "VIDEO" Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetId) MarshalJSON() ([]byte, error) { +func (s CreativeAssetId) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetMetadata: CreativeAssets contains properties of a -// creative asset file which will be uploaded or has already been -// uploaded. Refer to the creative sample code for how to upload assets -// and insert a creative. +// CreativeAssetMetadata: CreativeAssets contains properties of a creative +// asset file which will be uploaded or has already been uploaded. Refer to the +// creative sample code for how to upload assets and insert a creative. type CreativeAssetMetadata struct { // AssetIdentifier: ID of the creative asset. This is a required field. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // ClickTags: List of detected click tags for assets. This is a - // read-only auto-generated field. + // ClickTags: List of detected click tags for assets. This is a read-only + // auto-generated field. ClickTags []*ClickTag `json:"clickTags,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by Campaign Manager. Feature dependencies are features that a + // browser must be able to support in order to render your HTML5 creative + // correctly. This is a read-only, auto-generated field. // // Possible values: // "APPLICATION_CACHE" @@ -4852,22 +4037,16 @@ type CreativeAssetMetadata struct { // "WEB_SQL_DATABASE" // "WEB_WORKERS" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // Id: Numeric ID of the asset. This is a read-only, auto-generated - // field. + // Id: Numeric ID of the asset. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the numeric ID of the asset. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the numeric ID of the asset. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeAssetMetadata". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeAssetMetadata". Kind string `json:"kind,omitempty"` - - // WarnedValidationRules: Rules validated during code generation that - // generated a warning. This is a read-only, auto-generated - // field. + // WarnedValidationRules: Rules validated during code generation that generated + // a warning. This is a read-only, auto-generated field. // // Possible values are: // - "ADMOB_REFERENCED" @@ -4922,110 +4101,83 @@ type CreativeAssetMetadata struct { // "ZIP_INVALID" WarnedValidationRules []string `json:"warnedValidationRules,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AssetIdentifier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetIdentifier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssetIdentifier") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetMetadata) MarshalJSON() ([]byte, error) { +func (s CreativeAssetMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetSelection: Encapsulates the list of rules for asset -// selection and a default asset in case none of the rules match. -// Applicable to INSTREAM_VIDEO creatives. +// CreativeAssetSelection: Encapsulates the list of rules for asset selection +// and a default asset in case none of the rules match. Applicable to +// INSTREAM_VIDEO creatives. type CreativeAssetSelection struct { - // DefaultAssetId: A creativeAssets[].id. This should refer to one of - // the parent assets in this creative, and will be served if none of the - // rules match. This is a required field. + // DefaultAssetId: A creativeAssets[].id. This should refer to one of the + // parent assets in this creative, and will be served if none of the rules + // match. This is a required field. DefaultAssetId int64 `json:"defaultAssetId,omitempty,string"` - - // Rules: Rules determine which asset will be served to a viewer. Rules - // will be evaluated in the order in which they are stored in this list. - // This list must contain at least one rule. Applicable to - // INSTREAM_VIDEO creatives. + // Rules: Rules determine which asset will be served to a viewer. Rules will be + // evaluated in the order in which they are stored in this list. This list must + // contain at least one rule. Applicable to INSTREAM_VIDEO creatives. Rules []*Rule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultAssetId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultAssetId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DefaultAssetId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetSelection) MarshalJSON() ([]byte, error) { +func (s CreativeAssetSelection) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetSelection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeAssignment: Creative Assignment. type CreativeAssignment struct { - // Active: Whether this creative assignment is active. When true, the - // creative will be included in the ad's rotation. + // Active: Whether this creative assignment is active. When true, the creative + // will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // ApplyEventTags: Whether applicable event tags should fire when this - // creative assignment is rendered. If this value is unset when the ad - // is inserted or updated, it will default to true for all creative - // types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, - // and INSTREAM_VIDEO. + // ApplyEventTags: Whether applicable event tags should fire when this creative + // assignment is rendered. If this value is unset when the ad is inserted or + // updated, it will default to true for all creative types EXCEPT for + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. ApplyEventTags bool `json:"applyEventTags,omitempty"` - // ClickThroughUrl: Click-through URL of the creative assignment. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CompanionCreativeOverrides: Companion creative overrides for this - // creative assignment. Applicable to video ads. + // CompanionCreativeOverrides: Companion creative overrides for this creative + // assignment. Applicable to video ads. CompanionCreativeOverrides []*CompanionClickThroughOverride `json:"companionCreativeOverrides,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this - // creative assignment. Only one assignment per creative group number is - // allowed for a maximum of two assignments. + // CreativeGroupAssignments: Creative group assignments for this creative + // assignment. Only one assignment per creative group number is allowed for a + // maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeId: ID of the creative to be assigned. This is a required - // field. + // CreativeId: ID of the creative to be assigned. This is a required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // CreativeIdDimensionValue: Dimension value for the ID of the creative. - // This is a read-only, auto-generated field. + // CreativeIdDimensionValue: Dimension value for the ID of the creative. This + // is a read-only, auto-generated field. CreativeIdDimensionValue *DimensionValue `json:"creativeIdDimensionValue,omitempty"` - - // EndTime: Date and time that the assigned creative should stop - // serving. Must be later than the start time. + // EndTime: Date and time that the assigned creative should stop serving. Must + // be later than the start time. EndTime string `json:"endTime,omitempty"` - // RichMediaExitOverrides: Rich media exit overrides for this creative // assignment. // Applicable when the creative type is any of the following: @@ -5041,116 +4193,87 @@ type CreativeAssignment struct { // - VPAID_LINEAR // - VPAID_NON_LINEAR RichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"` - - // Sequence: Sequence number of the creative assignment, applicable when - // the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable - // values are 1 to 65535, inclusive. + // Sequence: Sequence number of the creative assignment, applicable when the + // rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 + // to 65535, inclusive. Sequence int64 `json:"sequence,omitempty"` - - // SslCompliant: Whether the creative to be assigned is SSL-compliant. - // This is a read-only field that is auto-generated when the ad is - // inserted or updated. + // SslCompliant: Whether the creative to be assigned is SSL-compliant. This is + // a read-only field that is auto-generated when the ad is inserted or updated. SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTime: Date and time that the assigned creative should start - // serving. + // StartTime: Date and time that the assigned creative should start serving. StartTime string `json:"startTime,omitempty"` - - // Weight: Weight of the creative assignment, applicable when the - // rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater - // than or equal to 1. + // Weight: Weight of the creative assignment, applicable when the rotation type + // is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeClickThroughUrl: Click-through URL type CreativeClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - // - If landingPageId is specified then that landing page's URL is - // assigned to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: + // - If landingPageId is specified then that landing page's URL is assigned to + // this field. // - Otherwise, the customClickThroughUrl is assigned to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the // landingPageId field is left unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - // LandingPageId: ID of the landing page for the click-through URL. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod CreativeClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeCustomEvent: Creative Custom Event. type CreativeCustomEvent struct { - // AdvertiserCustomEventId: Unique ID of this event used by Reporting - // and Data Transfer. This is a read-only field. + // AdvertiserCustomEventId: Unique ID of this event used by Reporting and Data + // Transfer. This is a read-only field. AdvertiserCustomEventId int64 `json:"advertiserCustomEventId,omitempty,string"` - // AdvertiserCustomEventName: User-entered name for the event. AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"` - - // AdvertiserCustomEventType: Type of the event. This is a read-only - // field. + // AdvertiserCustomEventType: Type of the event. This is a read-only field. // // Possible values: // "ADVERTISER_EVENT_COUNTER" // "ADVERTISER_EVENT_EXIT" // "ADVERTISER_EVENT_TIMER" AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"` - - // ArtworkLabel: Artwork label column, used to link events in Campaign - // Manager back to events in Studio. This is a required field and should - // not be modified after insertion. + // ArtworkLabel: Artwork label column, used to link events in Campaign Manager + // back to events in Studio. This is a required field and should not be + // modified after insertion. ArtworkLabel string `json:"artworkLabel,omitempty"` - - // ArtworkType: Artwork type used by the creative.This is a read-only - // field. + // ArtworkType: Artwork type used by the creative.This is a read-only field. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -5158,19 +4281,15 @@ type CreativeCustomEvent struct { // "ARTWORK_TYPE_IMAGE" // "ARTWORK_TYPE_MIXED" ArtworkType string `json:"artworkType,omitempty"` - - // ExitClickThroughUrl: Exit click-through URL for the event. This field - // is used only for exit events. + // ExitClickThroughUrl: Exit click-through URL for the event. This field is + // used only for exit events. ExitClickThroughUrl *CreativeClickThroughUrl `json:"exitClickThroughUrl,omitempty"` - - // Id: ID of this event. This is a required field and should not be - // modified after insertion. + // Id: ID of this event. This is a required field and should not be modified + // after insertion. Id int64 `json:"id,omitempty,string"` - - // PopupWindowProperties: Properties for rich media popup windows. This - // field is used only for exit events. + // PopupWindowProperties: Properties for rich media popup windows. This field + // is used only for exit events. PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"` - // TargetType: Target type used by the event. // // Possible values: @@ -5180,406 +4299,306 @@ type CreativeCustomEvent struct { // "TARGET_SELF" // "TARGET_TOP" TargetType string `json:"targetType,omitempty"` - - // VideoReportingId: Video reporting ID, used to differentiate multiple - // videos in a single creative. This is a read-only field. + // VideoReportingId: Video reporting ID, used to differentiate multiple videos + // in a single creative. This is a read-only field. VideoReportingId string `json:"videoReportingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdvertiserCustomEventId") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeCustomEvent) MarshalJSON() ([]byte, error) { +func (s CreativeCustomEvent) MarshalJSON() ([]byte, error) { type NoMethod CreativeCustomEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeField: Contains properties of a creative field. type CreativeField struct { - // AccountId: Account ID of this creative field. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative field. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative field. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative field. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Id: ID of this creative field. This is a read-only, auto-generated - // field. + // Id: ID of this creative field. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeField". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeField". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative field. This is a required field and must - // be less than 256 characters long and unique among creative fields of - // the same advertiser. + // Name: Name of this creative field. This is a required field and must be less + // than 256 characters long and unique among creative fields of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative field. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative field. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeField) MarshalJSON() ([]byte, error) { +func (s CreativeField) MarshalJSON() ([]byte, error) { type NoMethod CreativeField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldAssignment: Creative Field Assignment. type CreativeFieldAssignment struct { // CreativeFieldId: ID of the creative field. CreativeFieldId int64 `json:"creativeFieldId,omitempty,string"` - // CreativeFieldValueId: ID of the creative field value. CreativeFieldValueId int64 `json:"creativeFieldValueId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CreativeFieldId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeFieldAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValue: Contains properties of a creative field value. type CreativeFieldValue struct { - // Id: ID of this creative field value. This is a read-only, - // auto-generated field. + // Id: ID of this creative field value. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValue". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValue". Kind string `json:"kind,omitempty"` - - // Value: Value of this creative field value. It needs to be less than - // 256 characters in length and unique per creative field. + // Value: Value of this creative field value. It needs to be less than 256 + // characters in length and unique per creative field. Value string `json:"value,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValue) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValue) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValuesListResponse: Creative Field Value List Response type CreativeFieldValuesListResponse struct { // CreativeFieldValues: Creative field value collection. CreativeFieldValues []*CreativeFieldValue `json:"creativeFieldValues,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValuesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValuesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValuesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldsListResponse: Creative Field List Response type CreativeFieldsListResponse struct { // CreativeFields: Creative field collection. CreativeFields []*CreativeField `json:"creativeFields,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeFields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFields") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFields") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroup: Contains properties of a creative group. type CreativeGroup struct { - // AccountId: Account ID of this creative group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative group. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative group. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // GroupNumber: Subgroup of the creative group. Assign your creative - // groups to a subgroup in order to filter or manage them more easily. - // This field is required on insertion and is read-only after insertion. - // Acceptable values are 1 to 2, inclusive. + // GroupNumber: Subgroup of the creative group. Assign your creative groups to + // a subgroup in order to filter or manage them more easily. This field is + // required on insertion and is read-only after insertion. Acceptable values + // are 1 to 2, inclusive. GroupNumber int64 `json:"groupNumber,omitempty"` - - // Id: ID of this creative group. This is a read-only, auto-generated - // field. + // Id: ID of this creative group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative group. This is a required field and must - // be less than 256 characters long and unique among creative groups of - // the same advertiser. + // Name: Name of this creative group. This is a required field and must be less + // than 256 characters long and unique among creative groups of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroup) MarshalJSON() ([]byte, error) { +func (s CreativeGroup) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupAssignment: Creative Group Assignment. type CreativeGroupAssignment struct { // CreativeGroupId: ID of the creative group to be assigned. CreativeGroupId int64 `json:"creativeGroupId,omitempty,string"` - - // CreativeGroupNumber: Creative group number of the creative group - // assignment. + // CreativeGroupNumber: Creative group number of the creative group assignment. // // Possible values: // "CREATIVE_GROUP_ONE" // "CREATIVE_GROUP_TWO" CreativeGroupNumber string `json:"creativeGroupNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreativeGroupId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroupId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroupId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeGroupAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupsListResponse: Creative Group List Response type CreativeGroupsListResponse struct { // CreativeGroups: Creative group collection. CreativeGroups []*CreativeGroup `json:"creativeGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeGroups") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeOptimizationConfiguration: Creative optimization settings. type CreativeOptimizationConfiguration struct { - // Id: ID of this creative optimization config. This field is - // auto-generated when the campaign is inserted or updated. It can be - // null for existing campaigns. + // Id: ID of this creative optimization config. This field is auto-generated + // when the campaign is inserted or updated. It can be null for existing + // campaigns. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this creative optimization config. This is a required - // field and must be less than 129 characters long. + // Name: Name of this creative optimization config. This is a required field + // and must be less than 129 characters long. Name string `json:"name,omitempty"` - - // OptimizationActivitys: List of optimization activities associated - // with this configuration. + // OptimizationActivitys: List of optimization activities associated with this + // configuration. OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"` - // OptimizationModel: Optimization model for this configuration. // // Possible values: @@ -5589,52 +4608,42 @@ type CreativeOptimizationConfiguration struct { // "POST_IMPRESSION" // "VIDEO_COMPLETION" OptimizationModel string `json:"optimizationModel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { +func (s CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { type NoMethod CreativeOptimizationConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeRotation: Creative Rotation. type CreativeRotation struct { // CreativeAssignments: Creative assignments in this creative rotation. CreativeAssignments []*CreativeAssignment `json:"creativeAssignments,omitempty"` - - // CreativeOptimizationConfigurationId: Creative optimization - // configuration that is used by this ad. It should refer to one of the - // existing optimization configurations in the ad's campaign. If it is - // unset or set to 0, then the campaign's default optimization - // configuration will be used for this ad. + // CreativeOptimizationConfigurationId: Creative optimization configuration + // that is used by this ad. It should refer to one of the existing optimization + // configurations in the ad's campaign. If it is unset or set to 0, then the + // campaign's default optimization configuration will be used for this ad. CreativeOptimizationConfigurationId int64 `json:"creativeOptimizationConfigurationId,omitempty,string"` - - // Type: Type of creative rotation. Can be used to specify whether to - // use sequential or random rotation. + // Type: Type of creative rotation. Can be used to specify whether to use + // sequential or random rotation. // // Possible values: // "CREATIVE_ROTATION_TYPE_RANDOM" // "CREATIVE_ROTATION_TYPE_SEQUENTIAL" Type string `json:"type,omitempty"` - - // WeightCalculationStrategy: Strategy for calculating weights. Used - // with CREATIVE_ROTATION_TYPE_RANDOM. + // WeightCalculationStrategy: Strategy for calculating weights. Used with + // CREATIVE_ROTATION_TYPE_RANDOM. // // Possible values: // "WEIGHT_STRATEGY_CUSTOM" @@ -5642,159 +4651,123 @@ type CreativeRotation struct { // "WEIGHT_STRATEGY_HIGHEST_CTR" // "WEIGHT_STRATEGY_OPTIMIZED" WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreativeAssignments") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeAssignments") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeAssignments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeAssignments") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeRotation) MarshalJSON() ([]byte, error) { +func (s CreativeRotation) MarshalJSON() ([]byte, error) { type NoMethod CreativeRotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeSettings: Creative Settings type CreativeSettings struct { - // IFrameFooter: Header text for iFrames for this site. Must be less - // than or equal to 2000 characters long. + // IFrameFooter: Header text for iFrames for this site. Must be less than or + // equal to 2000 characters long. IFrameFooter string `json:"iFrameFooter,omitempty"` - - // IFrameHeader: Header text for iFrames for this site. Must be less - // than or equal to 2000 characters long. + // IFrameHeader: Header text for iFrames for this site. Must be less than or + // equal to 2000 characters long. IFrameHeader string `json:"iFrameHeader,omitempty"` - // ForceSendFields is a list of field names (e.g. "IFrameFooter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IFrameFooter") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IFrameFooter") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeSettings) MarshalJSON() ([]byte, error) { +func (s CreativeSettings) MarshalJSON() ([]byte, error) { type NoMethod CreativeSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativesListResponse: Creative List Response type CreativesListResponse struct { // Creatives: Creative collection. Creatives []*Creative `json:"creatives,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Creatives") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Creatives") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Creatives") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CrossDimensionReachReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type -// "CROSS_DIMENSION_REACH". +// compatible to be selected for a report of type "CROSS_DIMENSION_REACH". type CrossDimensionReachReportCompatibleFields struct { - // Breakdown: Dimensions which are compatible to be selected in the - // "breakdown" section of the report. + // Breakdown: Dimensions which are compatible to be selected in the "breakdown" + // section of the report. Breakdown []*Dimension `json:"breakdown,omitempty"` - - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#crossDimensionReachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // OverlapMetrics: Metrics which are compatible to be selected in the // "overlapMetricNames" section of the report. OverlapMetrics []*Metric `json:"overlapMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CrossDimensionReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomFloodlightVariable: A custom floodlight variable. type CustomFloodlightVariable struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customFloodlightVariable". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customFloodlightVariable". Kind string `json:"kind,omitempty"` - - // Type: The type of custom floodlight variable to supply a value for. - // These map to the "u[1-20]=" in the tags. + // Type: The type of custom floodlight variable to supply a value for. These + // map to the "u[1-20]=" in the tags. // // Possible values: // "U1" @@ -5898,80 +4871,62 @@ type CustomFloodlightVariable struct { // "U98" // "U99" Type string `json:"type,omitempty"` - - // Value: The value of the custom floodlight variable. The length of - // string must not exceed 50 characters. + // Value: The value of the custom floodlight variable. The length of string + // must not exceed 50 characters. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomFloodlightVariable) MarshalJSON() ([]byte, error) { +func (s CustomFloodlightVariable) MarshalJSON() ([]byte, error) { type NoMethod CustomFloodlightVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomRichMediaEvents: Represents a Custom Rich Media Events group. type CustomRichMediaEvents struct { - // FilteredEventIds: List of custom rich media event IDs. Dimension - // values must be all of type dfa:richMediaEventTypeIdAndName. + // FilteredEventIds: List of custom rich media event IDs. Dimension values must + // be all of type dfa:richMediaEventTypeIdAndName. FilteredEventIds []*DimensionValue `json:"filteredEventIds,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#customRichMediaEvents. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilteredEventIds") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FilteredEventIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FilteredEventIds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomRichMediaEvents) MarshalJSON() ([]byte, error) { +func (s CustomRichMediaEvents) MarshalJSON() ([]byte, error) { type NoMethod CustomRichMediaEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DateRange: Represents a date range. type DateRange struct { - // EndDate: The end date of the date range, inclusive. A string of the - // format: "yyyy-MM-dd". + // EndDate: The end date of the date range, inclusive. A string of the format: + // "yyyy-MM-dd". EndDate string `json:"endDate,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#dateRange. + // Kind: The kind of resource this is, in this case dfareporting#dateRange. Kind string `json:"kind,omitempty"` - - // RelativeDateRange: The date range relative to the date of when the - // report is run. + // RelativeDateRange: The date range relative to the date of when the report is + // run. // // Possible values: // "LAST_14_DAYS" @@ -5992,32 +4947,25 @@ type DateRange struct { // "YEAR_TO_DATE" // "YESTERDAY" RelativeDateRange string `json:"relativeDateRange,omitempty"` - - // StartDate: The start date of the date range, inclusive. A string of - // the format: "yyyy-MM-dd". + // StartDate: The start date of the date range, inclusive. A string of the + // format: "yyyy-MM-dd". StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DateRange) MarshalJSON() ([]byte, error) { +func (s DateRange) MarshalJSON() ([]byte, error) { type NoMethod DateRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DayPartTargeting: Day Part Targeting. @@ -6042,146 +4990,114 @@ type DayPartTargeting struct { // "TUESDAY" // "WEDNESDAY" DaysOfWeek []string `json:"daysOfWeek,omitempty"` - - // HoursOfDay: Hours of the day when the ad will serve, where 0 is - // midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with - // days of week, in which case the ad would serve during these hours on - // the specified days. For example if Monday, Wednesday, Friday are the - // days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is - // specified, the ad would serve Monday, Wednesdays, and Fridays at - // 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. + // HoursOfDay: Hours of the day when the ad will serve, where 0 is midnight to + // 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in + // which case the ad would serve during these hours on the specified days. For + // example if Monday, Wednesday, Friday are the days of week specified and + // 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, + // Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, + // inclusive. HoursOfDay []int64 `json:"hoursOfDay,omitempty"` - - // UserLocalTime: Whether or not to use the user's local time. If false, - // the America/New York time zone applies. + // UserLocalTime: Whether or not to use the user's local time. If false, the + // America/New York time zone applies. UserLocalTime bool `json:"userLocalTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "DaysOfWeek") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DaysOfWeek") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DaysOfWeek") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DayPartTargeting) MarshalJSON() ([]byte, error) { +func (s DayPartTargeting) MarshalJSON() ([]byte, error) { type NoMethod DayPartTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeepLink: Contains information about a landing page deep link. type DeepLink struct { // AppUrl: The URL of the mobile app being linked to. AppUrl string `json:"appUrl,omitempty"` - - // FallbackUrl: The fallback URL. This URL will be served to users who - // do not have the mobile app installed. + // FallbackUrl: The fallback URL. This URL will be served to users who do not + // have the mobile app installed. FallbackUrl string `json:"fallbackUrl,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#deepLink". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#deepLink". Kind string `json:"kind,omitempty"` - // MobileApp: The mobile app targeted by this deep link. MobileApp *MobileApp `json:"mobileApp,omitempty"` - - // RemarketingListIds: Ads served to users on these remarketing lists - // will use this deep link. Applicable when mobileApp.directory is - // APPLE_APP_STORE. + // RemarketingListIds: Ads served to users on these remarketing lists will use + // this deep link. Applicable when mobileApp.directory is APPLE_APP_STORE. RemarketingListIds googleapi.Int64s `json:"remarketingListIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AppUrl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppUrl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeepLink) MarshalJSON() ([]byte, error) { +func (s DeepLink) MarshalJSON() ([]byte, error) { type NoMethod DeepLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DefaultClickThroughEventTagProperties: Properties of inheriting and -// overriding the default click-through event tag. A campaign may -// override the event tag defined at the advertiser level, and an ad may -// also override the campaign's setting further. +// overriding the default click-through event tag. A campaign may override the +// event tag defined at the advertiser level, and an ad may also override the +// campaign's setting further. type DefaultClickThroughEventTagProperties struct { - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply to all ads in this entity's scope. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply to + // all ads in this entity's scope. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // OverrideInheritedEventTag: Whether this entity should override the - // inherited default click-through event tag with its own defined value. + // OverrideInheritedEventTag: Whether this entity should override the inherited + // default click-through event tag with its own defined value. OverrideInheritedEventTag bool `json:"overrideInheritedEventTag,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "DefaultClickThroughEventTagId") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultClickThroughEventTagId") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { +func (s DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { type NoMethod DefaultClickThroughEventTagProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeliverySchedule: Delivery Schedule. type DeliverySchedule struct { - // FrequencyCap: Limit on the number of times an individual user can be - // served the ad within a specified period of time. + // FrequencyCap: Limit on the number of times an individual user can be served + // the ad within a specified period of time. FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"` - - // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad - // will not serve after the end date and time. Otherwise the ad will - // continue to be served until it has reached its delivery goals. + // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad will not + // serve after the end date and time. Otherwise the ad will continue to be + // served until it has reached its delivery goals. HardCutoff bool `json:"hardCutoff,omitempty"` - - // ImpressionRatio: Impression ratio for this ad. This ratio determines - // how often each ad is served relative to the others. For example, if - // ad A has an impression ratio of 1 and ad B has an impression ratio of - // 3, then Campaign Manager will serve ad B three times as often as ad - // A. Acceptable values are 1 to 10, inclusive. + // ImpressionRatio: Impression ratio for this ad. This ratio determines how + // often each ad is served relative to the others. For example, if ad A has an + // impression ratio of 1 and ad B has an impression ratio of 3, then Campaign + // Manager will serve ad B three times as often as ad A. Acceptable values are + // 1 to 10, inclusive. ImpressionRatio int64 `json:"impressionRatio,omitempty,string"` - - // Priority: Serving priority of an ad, with respect to other ads. The - // lower the priority number, the greater the priority with which it is - // served. + // Priority: Serving priority of an ad, with respect to other ads. The lower + // the priority number, the greater the priority with which it is served. // // Possible values: // "AD_PRIORITY_01" @@ -6201,162 +5117,124 @@ type DeliverySchedule struct { // "AD_PRIORITY_15" // "AD_PRIORITY_16" Priority string `json:"priority,omitempty"` - // ForceSendFields is a list of field names (e.g. "FrequencyCap") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FrequencyCap") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FrequencyCap") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeliverySchedule) MarshalJSON() ([]byte, error) { +func (s DeliverySchedule) MarshalJSON() ([]byte, error) { type NoMethod DeliverySchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DfpSettings: Google Ad Manager Settings type DfpSettings struct { // DfpNetworkCode: Ad Manager network code for this directory site. DfpNetworkCode string `json:"dfpNetworkCode,omitempty"` - // DfpNetworkName: Ad Manager network name for this directory site. DfpNetworkName string `json:"dfpNetworkName,omitempty"` - // ProgrammaticPlacementAccepted: Whether this directory site accepts // programmatic placements. ProgrammaticPlacementAccepted bool `json:"programmaticPlacementAccepted,omitempty"` - - // PubPaidPlacementAccepted: Whether this directory site accepts - // publisher-paid tags. + // PubPaidPlacementAccepted: Whether this directory site accepts publisher-paid + // tags. PubPaidPlacementAccepted bool `json:"pubPaidPlacementAccepted,omitempty"` - - // PublisherPortalOnly: Whether this directory site is available only - // via Publisher Portal. + // PublisherPortalOnly: Whether this directory site is available only via + // Publisher Portal. PublisherPortalOnly bool `json:"publisherPortalOnly,omitempty"` - // ForceSendFields is a list of field names (e.g. "DfpNetworkCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DfpNetworkCode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DfpNetworkCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DfpSettings) MarshalJSON() ([]byte, error) { +func (s DfpSettings) MarshalJSON() ([]byte, error) { type NoMethod DfpSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Dimension: Represents a dimension. type Dimension struct { - // Kind: The kind of resource this is, in this case - // dfareporting#dimension. + // Kind: The kind of resource this is, in this case dfareporting#dimension. Kind string `json:"kind,omitempty"` - // Name: The dimension name, e.g. dfa:advertiser Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Dimension) MarshalJSON() ([]byte, error) { +func (s Dimension) MarshalJSON() ([]byte, error) { type NoMethod Dimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionFilter: Represents a dimension filter. type DimensionFilter struct { // DimensionName: The name of the dimension to filter. DimensionName string `json:"dimensionName,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionFilter. Kind string `json:"kind,omitempty"` - // Value: The value of the dimension to filter. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionFilter) MarshalJSON() ([]byte, error) { +func (s DimensionFilter) MarshalJSON() ([]byte, error) { type NoMethod DimensionFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValue: Represents a DimensionValue resource. type DimensionValue struct { // DimensionName: The name of the dimension. DimensionName string `json:"dimensionName,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID associated with the value if available. Id string `json:"id,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionValue. Kind string `json:"kind,omitempty"` - - // MatchType: Determines how the 'value' field is matched when - // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. + // MatchType: Determines how the 'value' field is matched when filtering. If + // not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is + // allowed as a placeholder for variable length character sequences, and it can + // be escaped with a backslash. Note, only paid search dimensions + // ('dfa:paidSearch*') allow a matchType other than EXACT. // // Possible values: // "BEGINS_WITH" @@ -6364,76 +5242,59 @@ type DimensionValue struct { // "EXACT" // "WILDCARD_EXPRESSION" MatchType string `json:"matchType,omitempty"` - // Value: The value of the dimension. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValue) MarshalJSON() ([]byte, error) { +func (s DimensionValue) MarshalJSON() ([]byte, error) { type NoMethod DimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueList: Represents the list of DimensionValue resources. type DimensionValueList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The dimension values returned in this response. Items []*DimensionValue `json:"items,omitempty"` - // Kind: The kind of list this is, in this case // dfareporting#dimensionValueList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through dimension - // values. To retrieve the next page of results, set the next request's - // "pageToken" to the value of this field. The page token is only valid - // for a limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through dimension values. To + // retrieve the next page of results, set the next request's "pageToken" to the + // value of this field. The page token is only valid for a limited amount of + // time and should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueList) MarshalJSON() ([]byte, error) { +func (s DimensionValueList) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueRequest: Represents a DimensionValuesRequest. @@ -6441,60 +5302,46 @@ type DimensionValueRequest struct { // DimensionName: The name of the dimension for which values should be // requested. DimensionName string `json:"dimensionName,omitempty"` - - // EndDate: The end date of the date range for which to retrieve - // dimension values. A string of the format "yyyy-MM-dd". + // EndDate: The end date of the date range for which to retrieve dimension + // values. A string of the format "yyyy-MM-dd". EndDate string `json:"endDate,omitempty"` - - // Filters: The list of filters by which to filter values. The filters - // are ANDed. + // Filters: The list of filters by which to filter values. The filters are + // ANDed. Filters []*DimensionFilter `json:"filters,omitempty"` - // Kind: The kind of request this is, in this case // dfareporting#dimensionValueRequest. Kind string `json:"kind,omitempty"` - - // StartDate: The start date of the date range for which to retrieve - // dimension values. A string of the format "yyyy-MM-dd". + // StartDate: The start date of the date range for which to retrieve dimension + // values. A string of the format "yyyy-MM-dd". StartDate string `json:"startDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueRequest) MarshalJSON() ([]byte, error) { +func (s DimensionValueRequest) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySite: DirectorySites contains properties of a website from -// the Site Directory. Sites need to be added to an account via the -// Sites resource before they can be assigned to a placement. +// DirectorySite: DirectorySites contains properties of a website from the Site +// Directory. Sites need to be added to an account via the Sites resource +// before they can be assigned to a placement. type DirectorySite struct { // Active: Whether this directory site is active. Active bool `json:"active,omitempty"` - // ContactAssignments: Directory site contacts. ContactAssignments []*DirectorySiteContactAssignment `json:"contactAssignments,omitempty"` - - // CountryId: Country ID of this directory site. This is a read-only - // field. + // CountryId: Country ID of this directory site. This is a read-only field. CountryId int64 `json:"countryId,omitempty,string"` - // CurrencyId: Currency ID of this directory site. This is a read-only // field. // Possible values are: @@ -6548,19 +5395,13 @@ type DirectorySite struct { // - "49" for MXN // - "50" for NGN CurrencyId int64 `json:"currencyId,omitempty,string"` - - // Description: Description of this directory site. This is a read-only - // field. + // Description: Description of this directory site. This is a read-only field. Description string `json:"description,omitempty"` - - // Id: ID of this directory site. This is a read-only, auto-generated - // field. + // Id: ID of this directory site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this directory site. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this directory site. This is + // a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - // InpageTagFormats: Tag types for regular placements. // // Acceptable values are: @@ -6575,9 +5416,7 @@ type DirectorySite struct { // "JAVASCRIPT_INPAGE" // "STANDARD" InpageTagFormats []string `json:"inpageTagFormats,omitempty"` - - // InterstitialTagFormats: Tag types for interstitial - // placements. + // InterstitialTagFormats: Tag types for interstitial placements. // // Acceptable values are: // - "IFRAME_JAVASCRIPT_INTERSTITIAL" @@ -6589,76 +5428,56 @@ type DirectorySite struct { // "INTERNAL_REDIRECT_INTERSTITIAL" // "JAVASCRIPT_INTERSTITIAL" InterstitialTagFormats []string `json:"interstitialTagFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySite". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySite". Kind string `json:"kind,omitempty"` - // Name: Name of this directory site. Name string `json:"name,omitempty"` - // ParentId: Parent directory site ID. ParentId int64 `json:"parentId,omitempty,string"` - // Settings: Directory site settings. Settings *DirectorySiteSettings `json:"settings,omitempty"` - // Url: URL of this directory site. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySite) MarshalJSON() ([]byte, error) { +func (s DirectorySite) MarshalJSON() ([]byte, error) { type NoMethod DirectorySite - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySiteContact: Contains properties of a Site Directory -// contact. +// DirectorySiteContact: Contains properties of a Site Directory contact. type DirectorySiteContact struct { // Address: Address of this directory site contact. Address string `json:"address,omitempty"` - // Email: Email address of this directory site contact. Email string `json:"email,omitempty"` - // FirstName: First name of this directory site contact. FirstName string `json:"firstName,omitempty"` - - // Id: ID of this directory site contact. This is a read-only, - // auto-generated field. + // Id: ID of this directory site contact. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySiteContact". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySiteContact". Kind string `json:"kind,omitempty"` - // LastName: Last name of this directory site contact. LastName string `json:"lastName,omitempty"` - // Phone: Phone number of this directory site contact. Phone string `json:"phone,omitempty"` - // Role: Directory site contact role. // // Possible values: @@ -6666,10 +5485,8 @@ type DirectorySiteContact struct { // "EDIT" // "VIEW" Role string `json:"role,omitempty"` - // Title: Title or designation of this directory site contact. Title string `json:"title,omitempty"` - // Type: Directory site contact type. // // Possible values: @@ -6679,31 +5496,24 @@ type DirectorySiteContact struct { // "TECHNICAL" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteContact) MarshalJSON() ([]byte, error) { +func (s DirectorySiteContact) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySiteContactAssignment: Directory Site Contact Assignment @@ -6711,198 +5521,150 @@ type DirectorySiteContactAssignment struct { // ContactId: ID of this directory site contact. This is a read-only, // auto-generated field. ContactId int64 `json:"contactId,omitempty,string"` - - // Visibility: Visibility of this directory site contact assignment. - // When set to PUBLIC this contact assignment is visible to all account - // and agency users; when set to PRIVATE it is visible only to the site. + // Visibility: Visibility of this directory site contact assignment. When set + // to PUBLIC this contact assignment is visible to all account and agency + // users; when set to PRIVATE it is visible only to the site. // // Possible values: // "PRIVATE" // "PUBLIC" Visibility string `json:"visibility,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContactId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContactId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContactId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteContactAssignment) MarshalJSON() ([]byte, error) { +func (s DirectorySiteContactAssignment) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteContactAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySiteContactsListResponse: Directory Site Contact List -// Response +// DirectorySiteContactsListResponse: Directory Site Contact List Response type DirectorySiteContactsListResponse struct { // DirectorySiteContacts: Directory site contact collection DirectorySiteContacts []*DirectorySiteContact `json:"directorySiteContacts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySiteContactsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySiteContactsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DirectorySiteContacts") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DirectorySiteContacts") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DirectorySiteContacts") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteContactsListResponse) MarshalJSON() ([]byte, error) { +func (s DirectorySiteContactsListResponse) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteContactsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySiteSettings: Directory Site Settings type DirectorySiteSettings struct { - // ActiveViewOptOut: Whether this directory site has disabled active - // view creatives. + // ActiveViewOptOut: Whether this directory site has disabled active view + // creatives. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - // DfpSettings: Directory site Ad Manager settings. DfpSettings *DfpSettings `json:"dfpSettings,omitempty"` - - // InstreamVideoPlacementAccepted: Whether this site accepts in-stream - // video ads. - InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` - - // InterstitialPlacementAccepted: Whether this site accepts interstitial + // InstreamVideoPlacementAccepted: Whether this site accepts in-stream video // ads. + InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` + // InterstitialPlacementAccepted: Whether this site accepts interstitial ads. InterstitialPlacementAccepted bool `json:"interstitialPlacementAccepted,omitempty"` - - // NielsenOcrOptOut: Whether this directory site has disabled Nielsen - // OCR reach ratings. + // NielsenOcrOptOut: Whether this directory site has disabled Nielsen OCR reach + // ratings. NielsenOcrOptOut bool `json:"nielsenOcrOptOut,omitempty"` - - // VerificationTagOptOut: Whether this directory site has disabled - // generation of Verification ins tags. + // VerificationTagOptOut: Whether this directory site has disabled generation + // of Verification ins tags. VerificationTagOptOut bool `json:"verificationTagOptOut,omitempty"` - - // VideoActiveViewOptOut: Whether this directory site has disabled - // active view for in-stream video creatives. This is a read-only field. + // VideoActiveViewOptOut: Whether this directory site has disabled active view + // for in-stream video creatives. This is a read-only field. VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteSettings) MarshalJSON() ([]byte, error) { +func (s DirectorySiteSettings) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySitesListResponse: Directory Site List Response type DirectorySitesListResponse struct { // DirectorySites: Directory site collection. DirectorySites []*DirectorySite `json:"directorySites,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DirectorySites") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DirectorySites") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DirectorySites") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySitesListResponse) MarshalJSON() ([]byte, error) { +func (s DirectorySitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod DirectorySitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DynamicTargetingKey: Contains properties of a dynamic targeting key. -// Dynamic targeting keys are unique, user-friendly labels, created at -// the advertiser level in DCM, that can be assigned to ads, creatives, -// and placements and used for targeting with Studio dynamic creatives. -// Use these labels instead of numeric Campaign Manager IDs (such as -// placement IDs) to save time and avoid errors in your dynamic feeds. +// DynamicTargetingKey: Contains properties of a dynamic targeting key. Dynamic +// targeting keys are unique, user-friendly labels, created at the advertiser +// level in DCM, that can be assigned to ads, creatives, and placements and +// used for targeting with Studio dynamic creatives. Use these labels instead +// of numeric Campaign Manager IDs (such as placement IDs) to save time and +// avoid errors in your dynamic feeds. type DynamicTargetingKey struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKey". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKey". Kind string `json:"kind,omitempty"` - - // Name: Name of this dynamic targeting key. This is a required field. - // Must be less than 256 characters long and cannot contain commas. All - // characters are converted to lowercase. + // Name: Name of this dynamic targeting key. This is a required field. Must be + // less than 256 characters long and cannot contain commas. All characters are + // converted to lowercase. Name string `json:"name,omitempty"` - - // ObjectId: ID of the object of this dynamic targeting key. This is a - // required field. + // ObjectId: ID of the object of this dynamic targeting key. This is a required + // field. ObjectId int64 `json:"objectId,omitempty,string"` - - // ObjectType: Type of the object of this dynamic targeting key. This is - // a required field. + // ObjectType: Type of the object of this dynamic targeting key. This is a + // required field. // // Possible values: // "OBJECT_AD" @@ -6911,69 +5673,52 @@ type DynamicTargetingKey struct { // "OBJECT_PLACEMENT" ObjectType string `json:"objectType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKey) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKey) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DynamicTargetingKeysListResponse: Dynamic Targeting Key List Response type DynamicTargetingKeysListResponse struct { // DynamicTargetingKeys: Dynamic targeting key collection. DynamicTargetingKeys []*DynamicTargetingKey `json:"dynamicTargetingKeys,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKeysListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKeysListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DynamicTargetingKeys") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTargetingKeys") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKeysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EncryptionInfo: A description of how user IDs are encrypted. @@ -6981,9 +5726,8 @@ type EncryptionInfo struct { // EncryptionEntityId: The encryption entity ID. This should match the // encryption configuration for ad serving or Data Transfer. EncryptionEntityId int64 `json:"encryptionEntityId,omitempty,string"` - - // EncryptionEntityType: The encryption entity type. This should match - // the encryption configuration for ad serving or Data Transfer. + // EncryptionEntityType: The encryption entity type. This should match the + // encryption configuration for ad serving or Data Transfer. // // Possible values: // "ADWORDS_CUSTOMER" @@ -6994,271 +5738,209 @@ type EncryptionInfo struct { // "DFP_NETWORK_CODE" // "ENCRYPTION_ENTITY_TYPE_UNKNOWN" EncryptionEntityType string `json:"encryptionEntityType,omitempty"` - - // EncryptionSource: Describes whether the encrypted cookie was received - // from ad serving (the %m macro) or from Data Transfer. + // EncryptionSource: Describes whether the encrypted cookie was received from + // ad serving (the %m macro) or from Data Transfer. // // Possible values: // "AD_SERVING" // "DATA_TRANSFER" // "ENCRYPTION_SCOPE_UNKNOWN" EncryptionSource string `json:"encryptionSource,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#encryptionInfo". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#encryptionInfo". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptionEntityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptionEntityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncryptionInfo) MarshalJSON() ([]byte, error) { +func (s EncryptionInfo) MarshalJSON() ([]byte, error) { type NoMethod EncryptionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTag: Contains properties of an event tag. type EventTag struct { - // AccountId: Account ID of this event tag. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this event tag. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this event tag. This field or the - // campaignId field is required on insertion. + // AdvertiserId: Advertiser ID of this event tag. This field or the campaignId + // field is required on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CampaignId: Campaign ID of this event tag. This field or the - // advertiserId field is required on insertion. + // CampaignId: Campaign ID of this event tag. This field or the advertiserId + // field is required on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // EnabledByDefault: Whether this event tag should be automatically - // enabled for all of the advertiser's campaigns and ads. + // EnabledByDefault: Whether this event tag should be automatically enabled for + // all of the advertiser's campaigns and ads. EnabledByDefault bool `json:"enabledByDefault,omitempty"` - - // ExcludeFromAdxRequests: Whether to remove this event tag from ads - // that are trafficked through Display & Video 360 to Ad Exchange. This - // may be useful if the event tag uses a pixel that is unapproved for Ad - // Exchange bids on one or more networks, such as the Google Display - // Network. + // ExcludeFromAdxRequests: Whether to remove this event tag from ads that are + // trafficked through Display & Video 360 to Ad Exchange. This may be useful if + // the event tag uses a pixel that is unapproved for Ad Exchange bids on one or + // more networks, such as the Google Display Network. ExcludeFromAdxRequests bool `json:"excludeFromAdxRequests,omitempty"` - // Id: ID of this event tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTag". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTag". Kind string `json:"kind,omitempty"` - - // Name: Name of this event tag. This is a required field and must be - // less than 256 characters long. + // Name: Name of this event tag. This is a required field and must be less than + // 256 characters long. Name string `json:"name,omitempty"` - - // SiteFilterType: Site filter type for this event tag. If no type is - // specified then the event tag will be applied to all sites. + // SiteFilterType: Site filter type for this event tag. If no type is specified + // then the event tag will be applied to all sites. // // Possible values: // "BLACKLIST" // "WHITELIST" SiteFilterType string `json:"siteFilterType,omitempty"` - // SiteIds: Filter list of site IDs associated with this event tag. The - // siteFilterType determines whether this is a whitelist or blacklist - // filter. + // siteFilterType determines whether this is a whitelist or blacklist filter. SiteIds googleapi.Int64s `json:"siteIds,omitempty"` - - // SslCompliant: Whether this tag is SSL-compliant or not. This is a - // read-only field. + // SslCompliant: Whether this tag is SSL-compliant or not. This is a read-only + // field. SslCompliant bool `json:"sslCompliant,omitempty"` - - // Status: Status of this event tag. Must be ENABLED for this event tag - // to fire. This is a required field. + // Status: Status of this event tag. Must be ENABLED for this event tag to + // fire. This is a required field. // // Possible values: // "DISABLED" // "ENABLED" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this event tag. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this event tag. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Type: Event tag type. Can be used to specify whether to use a - // third-party pixel, a third-party JavaScript URL, or a third-party - // click-through URL for either impression or click tracking. This is a - // required field. + // Type: Event tag type. Can be used to specify whether to use a third-party + // pixel, a third-party JavaScript URL, or a third-party click-through URL for + // either impression or click tracking. This is a required field. // // Possible values: // "CLICK_THROUGH_EVENT_TAG" // "IMPRESSION_IMAGE_EVENT_TAG" // "IMPRESSION_JAVASCRIPT_EVENT_TAG" Type string `json:"type,omitempty"` - - // Url: Payload URL for this event tag. The URL on a click-through event - // tag should have a landing page URL appended to the end of it. This - // field is required on insertion. + // Url: Payload URL for this event tag. The URL on a click-through event tag + // should have a landing page URL appended to the end of it. This field is + // required on insertion. Url string `json:"url,omitempty"` - - // UrlEscapeLevels: Number of times the landing page URL should be - // URL-escaped before being appended to the click-through event tag URL. - // Only applies to click-through event tags as specified by the event - // tag type. + // UrlEscapeLevels: Number of times the landing page URL should be URL-escaped + // before being appended to the click-through event tag URL. Only applies to + // click-through event tags as specified by the event tag type. UrlEscapeLevels int64 `json:"urlEscapeLevels,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTag) MarshalJSON() ([]byte, error) { +func (s EventTag) MarshalJSON() ([]byte, error) { type NoMethod EventTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagOverride: Event tag override information. type EventTagOverride struct { // Enabled: Whether this override is enabled. Enabled bool `json:"enabled,omitempty"` - - // Id: ID of this event tag override. This is a read-only, - // auto-generated field. + // Id: ID of this event tag override. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagOverride) MarshalJSON() ([]byte, error) { +func (s EventTagOverride) MarshalJSON() ([]byte, error) { type NoMethod EventTagOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagsListResponse: Event Tag List Response type EventTagsListResponse struct { // EventTags: Event tag collection. EventTags []*EventTag `json:"eventTags,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTagsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTagsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EventTags") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventTags") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventTags") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagsListResponse) MarshalJSON() ([]byte, error) { +func (s EventTagsListResponse) MarshalJSON() ([]byte, error) { type NoMethod EventTagsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// File: Represents a File resource. A file contains the metadata for a -// report run. It shows the status of the run and holds the URLs to the -// generated report data if the run is finished and the status is -// "REPORT_AVAILABLE". +// File: Represents a File resource. A file contains the metadata for a report +// run. It shows the status of the run and holds the URLs to the generated +// report data if the run is finished and the status is "REPORT_AVAILABLE". type File struct { - // DateRange: The date range for which the file has report data. The - // date range will always be the absolute date range for which the - // report is run. + // DateRange: The date range for which the file has report data. The date range + // will always be the absolute date range for which the report is run. DateRange *DateRange `json:"dateRange,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // FileName: The filename of the file. FileName string `json:"fileName,omitempty"` - - // Format: The output format of the report. Only available once the file - // is available. + // Format: The output format of the report. Only available once the file is + // available. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID of this report file. Id int64 `json:"id,omitempty,string"` - // Kind: The kind of resource this is, in this case dfareporting#file. Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp in milliseconds since epoch when this - // file was last modified. + // LastModifiedTime: The timestamp in milliseconds since epoch when this file + // was last modified. LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"` - // ReportId: The ID of the report this file was generated from. ReportId int64 `json:"reportId,omitempty,string"` - // Status: The status of the report file. // // Possible values: @@ -7267,255 +5949,194 @@ type File struct { // "PROCESSING" // "REPORT_AVAILABLE" Status string `json:"status,omitempty"` - // Urls: The URLs where the completed report file can be downloaded. Urls *FileUrls `json:"urls,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DateRange") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DateRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DateRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *File) MarshalJSON() ([]byte, error) { +func (s File) MarshalJSON() ([]byte, error) { type NoMethod File - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileUrls: The URLs where the completed report file can be downloaded. type FileUrls struct { // ApiUrl: The URL for downloading the report data through the API. ApiUrl string `json:"apiUrl,omitempty"` - - // BrowserUrl: The URL for downloading the report data through a - // browser. + // BrowserUrl: The URL for downloading the report data through a browser. BrowserUrl string `json:"browserUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApiUrl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiUrl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileUrls) MarshalJSON() ([]byte, error) { +func (s FileUrls) MarshalJSON() ([]byte, error) { type NoMethod FileUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileList: Represents the list of File resources. type FileList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The files returned in this response. Items []*File `json:"items,omitempty"` - // Kind: The kind of list this is, in this case dfareporting#fileList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through files. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through files. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileList) MarshalJSON() ([]byte, error) { +func (s FileList) MarshalJSON() ([]byte, error) { type NoMethod FileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Flight: Flight type Flight struct { // EndDate: Inventory item flight end date. EndDate string `json:"endDate,omitempty"` - // RateOrCost: Rate or cost of this flight. RateOrCost int64 `json:"rateOrCost,omitempty,string"` - // StartDate: Inventory item flight start date. StartDate string `json:"startDate,omitempty"` - // Units: Units of this flight. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Flight) MarshalJSON() ([]byte, error) { +func (s Flight) MarshalJSON() ([]byte, error) { type NoMethod Flight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivitiesGenerateTagResponse: Floodlight Activity -// GenerateTag Response +// FloodlightActivitiesGenerateTagResponse: Floodlight Activity GenerateTag +// Response type FloodlightActivitiesGenerateTagResponse struct { - // FloodlightActivityTag: Generated tag for this Floodlight activity. - // For global site tags, this is the event snippet. + // FloodlightActivityTag: Generated tag for this Floodlight activity. For + // global site tags, this is the event snippet. FloodlightActivityTag string `json:"floodlightActivityTag,omitempty"` - - // GlobalSiteTagGlobalSnippet: The global snippet section of a global - // site tag. The global site tag sets new cookies on your domain, which - // will store a unique identifier for a user or the ad click that - // brought the user to your site. Learn more. + // GlobalSiteTagGlobalSnippet: The global snippet section of a global site tag. + // The global site tag sets new cookies on your domain, which will store a + // unique identifier for a user or the ad click that brought the user to your + // site. Learn more. GlobalSiteTagGlobalSnippet string `json:"globalSiteTagGlobalSnippet,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesGenerateTagResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesGenerateTagResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityTag") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityTag") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FloodlightActivityTag") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesGenerateTagResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivitiesListResponse: Floodlight Activity List Response type FloodlightActivitiesListResponse struct { // FloodlightActivities: Floodlight activity collection. FloodlightActivities []*FloodlightActivity `json:"floodlightActivities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivities") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivities") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivities") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivities") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivity: Contains properties of a Floodlight activity. type FloodlightActivity struct { - // AccountId: Account ID of this floodlight activity. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity. If this - // field is left blank, the value will be copied over either from the - // activity group's advertiser or the existing activity's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity. If this field is + // left blank, the value will be copied over either from the activity group's + // advertiser or the existing activity's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CacheBustingType: Code type used for cache busting in the generated - // tag. Applicable only when floodlightActivityGroupType is COUNTER and + // CacheBustingType: Code type used for cache busting in the generated tag. + // Applicable only when floodlightActivityGroupType is COUNTER and // countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. // // Possible values: @@ -7525,7 +6146,6 @@ type FloodlightActivity struct { // "JSP" // "PHP" CacheBustingType string `json:"cacheBustingType,omitempty"` - // CountingMethod: Counting method for conversions for this floodlight // activity. This is a required field. // @@ -7536,114 +6156,88 @@ type FloodlightActivity struct { // "TRANSACTIONS_COUNTING" // "UNIQUE_COUNTING" CountingMethod string `json:"countingMethod,omitempty"` - // DefaultTags: Dynamic floodlight tags. DefaultTags []*FloodlightActivityDynamicTag `json:"defaultTags,omitempty"` - - // ExpectedUrl: URL where this tag will be deployed. If specified, must - // be less than 256 characters long. + // ExpectedUrl: URL where this tag will be deployed. If specified, must be less + // than 256 characters long. ExpectedUrl string `json:"expectedUrl,omitempty"` - - // FloodlightActivityGroupId: Floodlight activity group ID of this - // floodlight activity. This is a required field. + // FloodlightActivityGroupId: Floodlight activity group ID of this floodlight + // activity. This is a required field. FloodlightActivityGroupId int64 `json:"floodlightActivityGroupId,omitempty,string"` - - // FloodlightActivityGroupName: Name of the associated floodlight - // activity group. This is a read-only field. + // FloodlightActivityGroupName: Name of the associated floodlight activity + // group. This is a read-only field. FloodlightActivityGroupName string `json:"floodlightActivityGroupName,omitempty"` - - // FloodlightActivityGroupTagString: Tag string of the associated - // floodlight activity group. This is a read-only field. - FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` - - // FloodlightActivityGroupType: Type of the associated floodlight + // FloodlightActivityGroupTagString: Tag string of the associated floodlight // activity group. This is a read-only field. + FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` + // FloodlightActivityGroupType: Type of the associated floodlight activity + // group. This is a read-only field. // // Possible values: // "COUNTER" // "SALE" FloodlightActivityGroupType string `json:"floodlightActivityGroupType,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity. If this field is left blank, the value will be - // copied over either from the activity group's floodlight configuration - // or from the existing activity's floodlight configuration. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity. If this field is left blank, the value will be copied over either + // from the activity group's floodlight configuration or from the existing + // activity's floodlight configuration. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - - // FloodlightTagType: The type of Floodlight tag this activity will - // generate. This is a required field. + // FloodlightTagType: The type of Floodlight tag this activity will generate. + // This is a required field. // // Possible values: // "GLOBAL_SITE_TAG" // "IFRAME" // "IMAGE" FloodlightTagType string `json:"floodlightTagType,omitempty"` - // Hidden: Whether this activity is archived. Hidden bool `json:"hidden,omitempty"` - - // Id: ID of this floodlight activity. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight activity. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity. + // This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivity". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivity". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity. This is a required field. - // Must be less than 129 characters long and cannot contain quotes. + // Name: Name of this floodlight activity. This is a required field. Must be + // less than 129 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - // Notes: General notes or implementation instructions for the tag. Notes string `json:"notes,omitempty"` - // PublisherTags: Publisher dynamic floodlight tags. PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"` - // Secure: Whether this tag should use SSL. Secure bool `json:"secure,omitempty"` - - // SslCompliant: Whether the floodlight activity is SSL-compliant. This - // is a read-only field, its value detected by the system from the - // floodlight tags. + // SslCompliant: Whether the floodlight activity is SSL-compliant. This is a + // read-only field, its value detected by the system from the floodlight tags. SslCompliant bool `json:"sslCompliant,omitempty"` - // SslRequired: Whether this floodlight activity must be SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagFormat: Tag format type for the floodlight activity. If left - // blank, the tag format will default to HTML. + // TagFormat: Tag format type for the floodlight activity. If left blank, the + // tag format will default to HTML. // // Possible values: // "HTML" // "XHTML" TagFormat string `json:"tagFormat,omitempty"` - - // TagString: Value of the cat= parameter in the floodlight tag, which - // the ad servers use to identify the activity. This is optional: if - // empty, a new tag string will be generated for you. This string must - // be 1 to 8 characters long, with valid characters being - // [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among - // activities of the same activity group. This field is read-only after - // insertion. + // TagString: Value of the cat= parameter in the floodlight tag, which the ad + // servers use to identify the activity. This is optional: if empty, a new tag + // string will be generated for you. This string must be 1 to 8 characters + // long, with valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string + // must also be unique among activities of the same activity group. This field + // is read-only after insertion. TagString string `json:"tagString,omitempty"` - - // UserDefinedVariableTypes: List of the user-defined variables used by - // this conversion tag. These map to the "u[1-100]=" in the tags. Each - // of these can have a user defined type. + // UserDefinedVariableTypes: List of the user-defined variables used by this + // conversion tag. These map to the "u[1-100]=" in the tags. Each of these can + // have a user defined type. // Acceptable values are U1 to U100, inclusive. // // Possible values: @@ -7749,157 +6343,119 @@ type FloodlightActivity struct { // "U99" UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivity) MarshalJSON() ([]byte, error) { +func (s FloodlightActivity) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityDynamicTag: Dynamic Tag type FloodlightActivityDynamicTag struct { - // Id: ID of this dynamic tag. This is a read-only, auto-generated - // field. + // Id: ID of this dynamic tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // Name: Name of this tag. Name string `json:"name,omitempty"` - // Tag: Tag code. Tag string `json:"tag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivityGroup: Contains properties of a Floodlight activity -// group. +// FloodlightActivityGroup: Contains properties of a Floodlight activity group. type FloodlightActivityGroup struct { - // AccountId: Account ID of this floodlight activity group. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity group. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity group. If - // this field is left blank, the value will be copied over either from - // the floodlight configuration's advertiser or from the existing - // activity group's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity group. If this field + // is left blank, the value will be copied over either from the floodlight + // configuration's advertiser or from the existing activity group's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity group. This is a required field. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity group. This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this floodlight activity group. This is a read-only, // auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity group. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity + // group. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity group. This is a required - // field. Must be less than 65 characters long and cannot contain - // quotes. + // Name: Name of this floodlight activity group. This is a required field. Must + // be less than 65 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity group. This - // is a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity group. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagString: Value of the type= parameter in the floodlight tag, which - // the ad servers use to identify the activity group that the activity - // belongs to. This is optional: if empty, a new tag string will be - // generated for you. This string must be 1 to 8 characters long, with - // valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must - // also be unique among activity groups of the same floodlight - // configuration. This field is read-only after insertion. + // TagString: Value of the type= parameter in the floodlight tag, which the ad + // servers use to identify the activity group that the activity belongs to. + // This is optional: if empty, a new tag string will be generated for you. This + // string must be 1 to 8 characters long, with valid characters being + // [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activity + // groups of the same floodlight configuration. This field is read-only after + // insertion. TagString string `json:"tagString,omitempty"` - - // Type: Type of the floodlight activity group. This is a required field - // that is read-only after insertion. + // Type: Type of the floodlight activity group. This is a required field that + // is read-only after insertion. // // Possible values: // "COUNTER" // "SALE" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityGroupsListResponse: Floodlight Activity Group List @@ -7907,494 +6463,369 @@ func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type FloodlightActivityGroupsListResponse struct { // FloodlightActivityGroups: Floodlight activity group collection. FloodlightActivityGroups []*FloodlightActivityGroup `json:"floodlightActivityGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityGroups") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityGroups") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityPublisherDynamicTag: Publisher Dynamic Tag type FloodlightActivityPublisherDynamicTag struct { // ClickThrough: Whether this tag is applicable only for click-throughs. ClickThrough bool `json:"clickThrough,omitempty"` - - // DirectorySiteId: Directory site ID of this dynamic tag. This is a - // write-only field that can be used as an alternative to the siteId - // field. When this resource is retrieved, only the siteId field will be - // populated. + // DirectorySiteId: Directory site ID of this dynamic tag. This is a write-only + // field that can be used as an alternative to the siteId field. When this + // resource is retrieved, only the siteId field will be populated. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - // DynamicTag: Dynamic floodlight tag. DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"` - // SiteId: Site ID of this dynamic tag. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - // ViewThrough: Whether this tag is applicable only for view-throughs. ViewThrough bool `json:"viewThrough,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThrough") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThrough") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickThrough") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityPublisherDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfiguration: Contains properties of a Floodlight -// configuration. +// FloodlightConfiguration: Contains properties of a Floodlight configuration. type FloodlightConfiguration struct { - // AccountId: Account ID of this floodlight configuration. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight configuration. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of the parent advertiser of this - // floodlight configuration. + // AdvertiserId: Advertiser ID of the parent advertiser of this floodlight + // configuration. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // AnalyticsDataSharingEnabled: Whether advertiser data is shared with - // Google Analytics. + // AnalyticsDataSharingEnabled: Whether advertiser data is shared with Google + // Analytics. AnalyticsDataSharingEnabled bool `json:"analyticsDataSharingEnabled,omitempty"` - - // ExposureToConversionEnabled: Whether the exposure-to-conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure-to-conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // FirstDayOfWeek: Day that will be counted as the first day of the week - // in reports. This is a required field. + // FirstDayOfWeek: Day that will be counted as the first day of the week in + // reports. This is a required field. // // Possible values: // "MONDAY" // "SUNDAY" FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"` - - // Id: ID of this floodlight configuration. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight configuration. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this floodlight // configuration. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // InAppAttributionTrackingEnabled: Whether in-app attribution tracking - // is enabled. + // InAppAttributionTrackingEnabled: Whether in-app attribution tracking is + // enabled. InAppAttributionTrackingEnabled bool `json:"inAppAttributionTrackingEnabled,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfiguration". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfiguration". Kind string `json:"kind,omitempty"` - // LookbackConfiguration: Lookback window settings for this floodlight // configuration. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // NaturalSearchConversionAttributionOption: Types of attribution - // options for natural search conversions. + // NaturalSearchConversionAttributionOption: Types of attribution options for + // natural search conversions. // // Possible values: // "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" NaturalSearchConversionAttributionOption string `json:"naturalSearchConversionAttributionOption,omitempty"` - // OmnitureSettings: Settings for Campaign Manager Omniture integration. OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight configuration. This is - // a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight configuration. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagSettings: Configuration settings for dynamic and image floodlight - // tags. + // TagSettings: Configuration settings for dynamic and image floodlight tags. TagSettings *TagSettings `json:"tagSettings,omitempty"` - - // ThirdPartyAuthenticationTokens: List of third-party authentication - // tokens enabled for this configuration. - ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` - - // UserDefinedVariableConfigurations: List of user defined variables + // ThirdPartyAuthenticationTokens: List of third-party authentication tokens // enabled for this configuration. + ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` + // UserDefinedVariableConfigurations: List of user defined variables enabled + // for this configuration. UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfiguration) MarshalJSON() ([]byte, error) { +func (s FloodlightConfiguration) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfigurationsListResponse: Floodlight Configuration List -// Response +// FloodlightConfigurationsListResponse: Floodlight Configuration List Response type FloodlightConfigurationsListResponse struct { // FloodlightConfigurations: Floodlight configuration collection. FloodlightConfigurations []*FloodlightConfiguration `json:"floodlightConfigurations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfigurationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfigurationsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightConfigurations") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightConfigurations") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightConfigurations") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightConfigurations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfigurationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type "FlOODLIGHT". +// FloodlightReportCompatibleFields: Represents fields that are compatible to +// be selected for a report of type "FlOODLIGHT". type FloodlightReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#floodlightReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod FloodlightReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FrequencyCap: Frequency Cap. type FrequencyCap struct { - // Duration: Duration of time, in seconds, for this frequency cap. The - // maximum duration is 90 days. Acceptable values are 1 to 7776000, - // inclusive. + // Duration: Duration of time, in seconds, for this frequency cap. The maximum + // duration is 90 days. Acceptable values are 1 to 7776000, inclusive. Duration int64 `json:"duration,omitempty,string"` - - // Impressions: Number of times an individual user can be served the ad - // within the specified duration. Acceptable values are 1 to 15, - // inclusive. + // Impressions: Number of times an individual user can be served the ad within + // the specified duration. Acceptable values are 1 to 15, inclusive. Impressions int64 `json:"impressions,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FrequencyCap) MarshalJSON() ([]byte, error) { +func (s FrequencyCap) MarshalJSON() ([]byte, error) { type NoMethod FrequencyCap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FsCommand: FsCommand. type FsCommand struct { - // Left: Distance from the left of the browser.Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Left: Distance from the left of the browser.Applicable when positionOption + // is DISTANCE_FROM_TOP_LEFT_CORNER. Left int64 `json:"left,omitempty"` - // PositionOption: Position in the browser where the window will open. // // Possible values: // "CENTERED" // "DISTANCE_FROM_TOP_LEFT_CORNER" PositionOption string `json:"positionOption,omitempty"` - - // Top: Distance from the top of the browser. Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Top: Distance from the top of the browser. Applicable when positionOption is + // DISTANCE_FROM_TOP_LEFT_CORNER. Top int64 `json:"top,omitempty"` - // WindowHeight: Height of the window. WindowHeight int64 `json:"windowHeight,omitempty"` - // WindowWidth: Width of the window. WindowWidth int64 `json:"windowWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FsCommand) MarshalJSON() ([]byte, error) { +func (s FsCommand) MarshalJSON() ([]byte, error) { type NoMethod FsCommand - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GeoTargeting: Geographical Targeting. type GeoTargeting struct { - // Cities: Cities to be targeted. For each city only dartId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a city, do not target or exclude the country - // of the city, and do not target the metro or region of the city. + // Cities: Cities to be targeted. For each city only dartId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a city, do not target or exclude the country of the city, and + // do not target the metro or region of the city. Cities []*City `json:"cities,omitempty"` - - // Countries: Countries to be targeted or excluded from targeting, - // depending on the setting of the excludeCountries field. For each - // country only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting or - // excluding a country, do not target regions, cities, metros, or postal - // codes in the same country. + // Countries: Countries to be targeted or excluded from targeting, depending on + // the setting of the excludeCountries field. For each country only dartId is + // required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting or excluding a country, do not target + // regions, cities, metros, or postal codes in the same country. Countries []*Country `json:"countries,omitempty"` - - // ExcludeCountries: Whether or not to exclude the countries in the - // countries field from targeting. If false, the countries field refers - // to countries which will be targeted by the ad. + // ExcludeCountries: Whether or not to exclude the countries in the countries + // field from targeting. If false, the countries field refers to countries + // which will be targeted by the ad. ExcludeCountries bool `json:"excludeCountries,omitempty"` - - // Metros: Metros to be targeted. For each metro only dmaId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a metro, do not target or exclude the - // country of the metro. + // Metros: Metros to be targeted. For each metro only dmaId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a metro, do not target or exclude the country of the metro. Metros []*Metro `json:"metros,omitempty"` - - // PostalCodes: Postal codes to be targeted. For each postal code only - // id is required. The other fields are populated automatically when the - // ad is inserted or updated. If targeting a postal code, do not target - // or exclude the country of the postal code. - PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - - // Regions: Regions to be targeted. For each region only dartId is + // PostalCodes: Postal codes to be targeted. For each postal code only id is // required. The other fields are populated automatically when the ad is - // inserted or updated. If targeting a region, do not target or exclude - // the country of the region. + // inserted or updated. If targeting a postal code, do not target or exclude + // the country of the postal code. + PostalCodes []*PostalCode `json:"postalCodes,omitempty"` + // Regions: Regions to be targeted. For each region only dartId is required. + // The other fields are populated automatically when the ad is inserted or + // updated. If targeting a region, do not target or exclude the country of the + // region. Regions []*Region `json:"regions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoTargeting) MarshalJSON() ([]byte, error) { +func (s GeoTargeting) MarshalJSON() ([]byte, error) { type NoMethod GeoTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItem: Represents a buy from the Planning inventory store. type InventoryItem struct { // AccountId: Account ID of this inventory item. AccountId int64 `json:"accountId,omitempty,string"` - - // AdSlots: Ad slots of this inventory item. If this inventory item - // represents a standalone placement, there will be exactly one ad slot. - // If this inventory item represents a placement group, there will be - // more than one ad slot, each representing one child placement in that - // placement group. + // AdSlots: Ad slots of this inventory item. If this inventory item represents + // a standalone placement, there will be exactly one ad slot. If this inventory + // item represents a placement group, there will be more than one ad slot, each + // representing one child placement in that placement group. AdSlots []*AdSlot `json:"adSlots,omitempty"` - // AdvertiserId: Advertiser ID of this inventory item. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // ContentCategoryId: Content category ID of this inventory item. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // EstimatedClickThroughRate: Estimated click-through rate of this - // inventory item. - EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` - - // EstimatedConversionRate: Estimated conversion rate of this inventory + // EstimatedClickThroughRate: Estimated click-through rate of this inventory // item. + EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` + // EstimatedConversionRate: Estimated conversion rate of this inventory item. EstimatedConversionRate int64 `json:"estimatedConversionRate,omitempty,string"` - // Id: ID of this inventory item. Id int64 `json:"id,omitempty,string"` - // InPlan: Whether this inventory item is in plan. InPlan bool `json:"inPlan,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItem". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this inventory item. + // LastModifiedInfo: Information about the most recent modification of this + // inventory item. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this inventory item. For standalone inventory items, - // this is the same name as that of its only ad slot. For group - // inventory items, this can differ from the name of any of its ad - // slots. + // Name: Name of this inventory item. For standalone inventory items, this is + // the same name as that of its only ad slot. For group inventory items, this + // can differ from the name of any of its ad slots. Name string `json:"name,omitempty"` - // NegotiationChannelId: Negotiation channel ID of this inventory item. NegotiationChannelId int64 `json:"negotiationChannelId,omitempty,string"` - // OrderId: Order ID of this inventory item. OrderId int64 `json:"orderId,omitempty,string"` - // PlacementStrategyId: Placement strategy ID of this inventory item. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - // Pricing: Pricing of this inventory item. Pricing *Pricing `json:"pricing,omitempty"` - // ProjectId: Project ID of this inventory item. ProjectId int64 `json:"projectId,omitempty,string"` - // RfpId: RFP ID of this inventory item. RfpId int64 `json:"rfpId,omitempty,string"` - // SiteId: ID of the site this inventory item is associated with. SiteId int64 `json:"siteId,omitempty,string"` - // SubaccountId: Subaccount ID of this inventory item. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Type: Type of inventory item. // // Possible values: @@ -8402,382 +6833,291 @@ type InventoryItem struct { // "PLANNING_PLACEMENT_TYPE_REGULAR" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItem) MarshalJSON() ([]byte, error) { +func (s InventoryItem) MarshalJSON() ([]byte, error) { type NoMethod InventoryItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItemsListResponse: Inventory item List Response type InventoryItemsListResponse struct { // InventoryItems: Inventory item collection InventoryItems []*InventoryItem `json:"inventoryItems,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItemsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "InventoryItems") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventoryItems") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventoryItems") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItemsListResponse) MarshalJSON() ([]byte, error) { +func (s InventoryItemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod InventoryItemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // KeyValueTargetingExpression: Key Value Targeting Expression. type KeyValueTargetingExpression struct { // Expression: Keyword expression being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { +func (s KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod KeyValueTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LandingPage: Contains information about where a user's browser is -// taken after the user clicks an ad. +// LandingPage: Contains information about where a user's browser is taken +// after the user clicks an ad. type LandingPage struct { - // AdvertiserId: Advertiser ID of this landing page. This is a required - // field. + // AdvertiserId: Advertiser ID of this landing page. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // Archived: Whether this landing page has been archived. Archived bool `json:"archived,omitempty"` - - // DeepLinks: Links that will direct the user to a mobile app, if - // installed. + // DeepLinks: Links that will direct the user to a mobile app, if installed. DeepLinks []*DeepLink `json:"deepLinks,omitempty"` - - // Id: ID of this landing page. This is a read-only, auto-generated - // field. + // Id: ID of this landing page. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#landingPage". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#landingPage". Kind string `json:"kind,omitempty"` - - // Name: Name of this landing page. This is a required field. It must be - // less than 256 characters long. + // Name: Name of this landing page. This is a required field. It must be less + // than 256 characters long. Name string `json:"name,omitempty"` - // Url: URL of this landing page. This is a required field. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LandingPage) MarshalJSON() ([]byte, error) { +func (s LandingPage) MarshalJSON() ([]byte, error) { type NoMethod LandingPage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Language: Contains information about a language that can be targeted -// by ads. +// Language: Contains information about a language that can be targeted by ads. type Language struct { - // Id: Language ID of this language. This is the ID used for targeting - // and generating reports. + // Id: Language ID of this language. This is the ID used for targeting and + // generating reports. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#language". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#language". Kind string `json:"kind,omitempty"` - - // LanguageCode: Format of language code is an ISO 639 two-letter - // language code optionally followed by an underscore followed by an ISO - // 3166 code. Examples are "en" for English or "zh_CN" for Simplified - // Chinese. + // LanguageCode: Format of language code is an ISO 639 two-letter language code + // optionally followed by an underscore followed by an ISO 3166 code. Examples + // are "en" for English or "zh_CN" for Simplified Chinese. LanguageCode string `json:"languageCode,omitempty"` - // Name: Name of this language. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Language) MarshalJSON() ([]byte, error) { +func (s Language) MarshalJSON() ([]byte, error) { type NoMethod Language - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguageTargeting: Language Targeting. type LanguageTargeting struct { - // Languages: Languages that this ad targets. For each language only - // languageId is required. The other fields are populated automatically - // when the ad is inserted or updated. + // Languages: Languages that this ad targets. For each language only languageId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. Languages []*Language `json:"languages,omitempty"` - // ForceSendFields is a list of field names (e.g. "Languages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Languages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Languages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguageTargeting) MarshalJSON() ([]byte, error) { +func (s LanguageTargeting) MarshalJSON() ([]byte, error) { type NoMethod LanguageTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguagesListResponse: Language List Response type LanguagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#languagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#languagesListResponse". Kind string `json:"kind,omitempty"` - // Languages: Language collection. Languages []*Language `json:"languages,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguagesListResponse) MarshalJSON() ([]byte, error) { +func (s LanguagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod LanguagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LastModifiedInfo: Modification timestamp. type LastModifiedInfo struct { // Time: Timestamp of the last change in milliseconds since epoch. Time int64 `json:"time,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Time") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Time") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Time") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Time") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LastModifiedInfo) MarshalJSON() ([]byte, error) { +func (s LastModifiedInfo) MarshalJSON() ([]byte, error) { type NoMethod LastModifiedInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationClause: A group clause made up of list population terms // representing constraints joined by ORs. type ListPopulationClause struct { - // Terms: Terms of this list population clause. Each clause is made up - // of list population terms representing constraints and are joined by - // ORs. + // Terms: Terms of this list population clause. Each clause is made up of list + // population terms representing constraints and are joined by ORs. Terms []*ListPopulationTerm `json:"terms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Terms") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Terms") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Terms") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationClause) MarshalJSON() ([]byte, error) { +func (s ListPopulationClause) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationClause - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationRule: Remarketing List Population Rule. type ListPopulationRule struct { - // FloodlightActivityId: Floodlight activity ID associated with this - // rule. This field can be left blank. + // FloodlightActivityId: Floodlight activity ID associated with this rule. This + // field can be left blank. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightActivityName: Name of floodlight activity associated with - // this rule. This is a read-only, auto-generated field. + // FloodlightActivityName: Name of floodlight activity associated with this + // rule. This is a read-only, auto-generated field. FloodlightActivityName string `json:"floodlightActivityName,omitempty"` - - // ListPopulationClauses: Clauses that make up this list population - // rule. Clauses are joined by ANDs, and the clauses themselves are made - // up of list population terms which are joined by ORs. + // ListPopulationClauses: Clauses that make up this list population rule. + // Clauses are joined by ANDs, and the clauses themselves are made up of list + // population terms which are joined by ORs. ListPopulationClauses []*ListPopulationClause `json:"listPopulationClauses,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationRule) MarshalJSON() ([]byte, error) { +func (s ListPopulationRule) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationTerm: Remarketing List Population Rule Term. type ListPopulationTerm struct { - // Contains: Will be true if the term should check if the user is in the - // list and false if the term should check if the user is not in the - // list. This field is only relevant when type is set to - // LIST_MEMBERSHIP_TERM. False by default. + // Contains: Will be true if the term should check if the user is in the list + // and false if the term should check if the user is not in the list. This + // field is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by + // default. Contains bool `json:"contains,omitempty"` - - // Negation: Whether to negate the comparison result of this term during - // rule evaluation. This field is only relevant when type is left unset - // or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. + // Negation: Whether to negate the comparison result of this term during rule + // evaluation. This field is only relevant when type is left unset or set to + // CUSTOM_VARIABLE_TERM or REFERRER_TERM. Negation bool `json:"negation,omitempty"` - - // Operator: Comparison operator of this term. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Operator: Comparison operator of this term. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. // // Possible values: // "NUM_EQUALS" @@ -8788,252 +7128,194 @@ type ListPopulationTerm struct { // "STRING_CONTAINS" // "STRING_EQUALS" Operator string `json:"operator,omitempty"` - - // RemarketingListId: ID of the list in question. This field is only - // relevant when type is set to LIST_MEMBERSHIP_TERM. + // RemarketingListId: ID of the list in question. This field is only relevant + // when type is set to LIST_MEMBERSHIP_TERM. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - - // Type: List population term type determines the applicable fields in - // this object. If left unset or set to CUSTOM_VARIABLE_TERM, then - // variableName, variableFriendlyName, operator, value, and negation are - // applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and - // contains are applicable. If set to REFERRER_TERM then operator, - // value, and negation are applicable. + // Type: List population term type determines the applicable fields in this + // object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, + // variableFriendlyName, operator, value, and negation are applicable. If set + // to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. + // If set to REFERRER_TERM then operator, value, and negation are applicable. // // Possible values: // "CUSTOM_VARIABLE_TERM" // "LIST_MEMBERSHIP_TERM" // "REFERRER_TERM" Type string `json:"type,omitempty"` - - // Value: Literal to compare the variable to. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Value: Literal to compare the variable to. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. Value string `json:"value,omitempty"` - - // VariableFriendlyName: Friendly name of this term's variable. This is - // a read-only, auto-generated field. This field is only relevant when - // type is left unset or set to CUSTOM_VARIABLE_TERM. + // VariableFriendlyName: Friendly name of this term's variable. This is a + // read-only, auto-generated field. This field is only relevant when type is + // left unset or set to CUSTOM_VARIABLE_TERM. VariableFriendlyName string `json:"variableFriendlyName,omitempty"` - - // VariableName: Name of the variable (U1, U2, etc.) being compared in - // this term. This field is only relevant when type is set to null, + // VariableName: Name of the variable (U1, U2, etc.) being compared in this + // term. This field is only relevant when type is set to null, // CUSTOM_VARIABLE_TERM or REFERRER_TERM. VariableName string `json:"variableName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contains") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contains") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contains") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationTerm) MarshalJSON() ([]byte, error) { +func (s ListPopulationTerm) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationTerm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListTargetingExpression: Remarketing List Targeting Expression. type ListTargetingExpression struct { - // Expression: Expression describing which lists are being targeted by - // the ad. + // Expression: Expression describing which lists are being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListTargetingExpression) MarshalJSON() ([]byte, error) { +func (s ListTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod ListTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LookbackConfiguration: Lookback configuration settings. type LookbackConfiguration struct { - // ClickDuration: Lookback window, in days, from the last time a given - // user clicked on one of your ads. If you enter 0, clicks will not be - // considered as triggering events for floodlight tracking. If you leave + // ClickDuration: Lookback window, in days, from the last time a given user + // clicked on one of your ads. If you enter 0, clicks will not be considered as + // triggering events for floodlight tracking. If you leave this field blank, + // the default value for your account will be used. Acceptable values are 0 to + // 90, inclusive. + ClickDuration int64 `json:"clickDuration,omitempty"` + // PostImpressionActivitiesDuration: Lookback window, in days, from the last + // time a given user viewed one of your ads. If you enter 0, impressions will + // not be considered as triggering events for floodlight tracking. If you leave // this field blank, the default value for your account will be used. // Acceptable values are 0 to 90, inclusive. - ClickDuration int64 `json:"clickDuration,omitempty"` - - // PostImpressionActivitiesDuration: Lookback window, in days, from the - // last time a given user viewed one of your ads. If you enter 0, - // impressions will not be considered as triggering events for - // floodlight tracking. If you leave this field blank, the default value - // for your account will be used. Acceptable values are 0 to 90, - // inclusive. PostImpressionActivitiesDuration int64 `json:"postImpressionActivitiesDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickDuration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickDuration") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickDuration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LookbackConfiguration) MarshalJSON() ([]byte, error) { +func (s LookbackConfiguration) MarshalJSON() ([]byte, error) { type NoMethod LookbackConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Metric: Represents a metric. type Metric struct { // Kind: The kind of resource this is, in this case dfareporting#metric. Kind string `json:"kind,omitempty"` - // Name: The metric name, e.g. dfa:impressions Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metric) MarshalJSON() ([]byte, error) { +func (s Metric) MarshalJSON() ([]byte, error) { type NoMethod Metric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metro: Contains information about a metro region that can be targeted -// by ads. +// Metro: Contains information about a metro region that can be targeted by +// ads. type Metro struct { - // CountryCode: Country code of the country to which this metro region - // belongs. + // CountryCode: Country code of the country to which this metro region belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this metro region - // belongs. + // CountryDartId: DART ID of the country to which this metro region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this metro region. DartId int64 `json:"dartId,omitempty,string"` - - // DmaId: DMA ID of this metro region. This is the ID used for targeting - // and generating reports, and is equivalent to metro_code. + // DmaId: DMA ID of this metro region. This is the ID used for targeting and + // generating reports, and is equivalent to metro_code. DmaId int64 `json:"dmaId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metro". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metro". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro code of this metro region. This is equivalent to - // dma_id. + // MetroCode: Metro code of this metro region. This is equivalent to dma_id. MetroCode string `json:"metroCode,omitempty"` - // Name: Name of this metro region. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metro) MarshalJSON() ([]byte, error) { +func (s Metro) MarshalJSON() ([]byte, error) { type NoMethod Metro - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetrosListResponse: Metro List Response type MetrosListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metrosListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metrosListResponse". Kind string `json:"kind,omitempty"` - // Metros: Metro collection. Metros []*Metro `json:"metros,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetrosListResponse) MarshalJSON() ([]byte, error) { +func (s MetrosListResponse) MarshalJSON() ([]byte, error) { type NoMethod MetrosListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileApp: Contains information about a mobile app. Used as a landing -// page deep link. +// MobileApp: Contains information about a mobile app. Used as a landing page +// deep link. type MobileApp struct { // Directory: Mobile app directory. // @@ -9042,600 +7324,453 @@ type MobileApp struct { // "GOOGLE_PLAY_STORE" // "UNKNOWN" Directory string `json:"directory,omitempty"` - // Id: ID of this mobile app. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileApp". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileApp". Kind string `json:"kind,omitempty"` - // PublisherName: Publisher name. PublisherName string `json:"publisherName,omitempty"` - // Title: Title of this mobile app. Title string `json:"title,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Directory") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directory") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directory") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileApp) MarshalJSON() ([]byte, error) { +func (s MobileApp) MarshalJSON() ([]byte, error) { type NoMethod MobileApp - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileAppsListResponse: Mobile app List Response type MobileAppsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileAppsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileAppsListResponse". Kind string `json:"kind,omitempty"` - // MobileApps: Mobile apps collection. MobileApps []*MobileApp `json:"mobileApps,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileAppsListResponse) MarshalJSON() ([]byte, error) { +func (s MobileAppsListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileAppsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileCarrier: Contains information about a mobile carrier that can -// be targeted by ads. +// MobileCarrier: Contains information about a mobile carrier that can be +// targeted by ads. type MobileCarrier struct { // CountryCode: Country code of the country to which this mobile carrier // belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this mobile carrier - // belongs. + // CountryDartId: DART ID of the country to which this mobile carrier belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this mobile carrier. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarrier". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarrier". Kind string `json:"kind,omitempty"` - // Name: Name of this mobile carrier. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarrier) MarshalJSON() ([]byte, error) { +func (s MobileCarrier) MarshalJSON() ([]byte, error) { type NoMethod MobileCarrier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileCarriersListResponse: Mobile Carrier List Response type MobileCarriersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarriersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarriersListResponse". Kind string `json:"kind,omitempty"` - // MobileCarriers: Mobile carrier collection. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarriersListResponse) MarshalJSON() ([]byte, error) { +func (s MobileCarriersListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileCarriersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObjectFilter: Object Filter. type ObjectFilter struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#objectFilter". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#objectFilter". Kind string `json:"kind,omitempty"` - // ObjectIds: Applicable when status is ASSIGNED. The user has access to // objects with these object IDs. ObjectIds googleapi.Int64s `json:"objectIds,omitempty"` - - // Status: Status of the filter. NONE means the user has access to none - // of the objects. ALL means the user has access to all objects. - // ASSIGNED means the user has access to the objects with IDs in the - // objectIds list. + // Status: Status of the filter. NONE means the user has access to none of the + // objects. ALL means the user has access to all objects. ASSIGNED means the + // user has access to the objects with IDs in the objectIds list. // // Possible values: // "ALL" // "ASSIGNED" // "NONE" Status string `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectFilter) MarshalJSON() ([]byte, error) { +func (s ObjectFilter) MarshalJSON() ([]byte, error) { type NoMethod ObjectFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OffsetPosition: Offset Position. type OffsetPosition struct { // Left: Offset distance from left side of an asset or a window. Left int64 `json:"left,omitempty"` - // Top: Offset distance from top side of an asset or a window. Top int64 `json:"top,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OffsetPosition) MarshalJSON() ([]byte, error) { +func (s OffsetPosition) MarshalJSON() ([]byte, error) { type NoMethod OffsetPosition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OmnitureSettings: Omniture Integration Settings. type OmnitureSettings struct { // OmnitureCostDataEnabled: Whether placement cost data will be sent to - // Omniture. This property can be enabled only if - // omnitureIntegrationEnabled is true. + // Omniture. This property can be enabled only if omnitureIntegrationEnabled is + // true. OmnitureCostDataEnabled bool `json:"omnitureCostDataEnabled,omitempty"` - - // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. - // This property can be enabled only when the "Advanced Ad Serving" - // account setting is enabled. + // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. This + // property can be enabled only when the "Advanced Ad Serving" account setting + // is enabled. OmnitureIntegrationEnabled bool `json:"omnitureIntegrationEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "OmnitureCostDataEnabled") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OmnitureSettings) MarshalJSON() ([]byte, error) { +func (s OmnitureSettings) MarshalJSON() ([]byte, error) { type NoMethod OmnitureSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystem: Contains information about an operating system that -// can be targeted by ads. +// OperatingSystem: Contains information about an operating system that can be +// targeted by ads. type OperatingSystem struct { - // DartId: DART ID of this operating system. This is the ID used for - // targeting. + // DartId: DART ID of this operating system. This is the ID used for targeting. DartId int64 `json:"dartId,omitempty,string"` - // Desktop: Whether this operating system is for desktop. Desktop bool `json:"desktop,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystem". Kind string `json:"kind,omitempty"` - // Mobile: Whether this operating system is for mobile. Mobile bool `json:"mobile,omitempty"` - // Name: Name of this operating system. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DartId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DartId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DartId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystem) MarshalJSON() ([]byte, error) { +func (s OperatingSystem) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersion: Contains information about a particular -// version of an operating system that can be targeted by ads. +// OperatingSystemVersion: Contains information about a particular version of +// an operating system that can be targeted by ads. type OperatingSystemVersion struct { // Id: ID of this operating system version. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersion". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version (leftmost number) of this operating - // system version. + // MajorVersion: Major version (leftmost number) of this operating system + // version. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version (number after the first dot) of this - // operating system version. + // MinorVersion: Minor version (number after the first dot) of this operating + // system version. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this operating system version. Name string `json:"name,omitempty"` - // OperatingSystem: Operating system of this operating system version. OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersion) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersion) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersionsListResponse: Operating System Version List -// Response +// OperatingSystemVersionsListResponse: Operating System Version List Response type OperatingSystemVersionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersionsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystemVersions: Operating system version collection. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperatingSystemsListResponse: Operating System List Response type OperatingSystemsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystems: Operating system collection. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OptimizationActivity: Creative optimization activity. type OptimizationActivity struct { - // FloodlightActivityId: Floodlight activity ID of this optimization - // activity. This is a required field. + // FloodlightActivityId: Floodlight activity ID of this optimization activity. + // This is a required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // FloodlightActivityIdDimensionValue: Dimension value for the ID of the // floodlight activity. This is a read-only, auto-generated field. FloodlightActivityIdDimensionValue *DimensionValue `json:"floodlightActivityIdDimensionValue,omitempty"` - - // Weight: Weight associated with this optimization. The weight assigned - // will be understood in proportion to the weights assigned to the other + // Weight: Weight associated with this optimization. The weight assigned will + // be understood in proportion to the weights assigned to the other // optimization activities. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OptimizationActivity) MarshalJSON() ([]byte, error) { +func (s OptimizationActivity) MarshalJSON() ([]byte, error) { type NoMethod OptimizationActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Order: Describes properties of a Planning order. type Order struct { // AccountId: Account ID of this order. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // ApproverUserProfileIds: IDs for users that have to approve documents - // created for this order. + // ApproverUserProfileIds: IDs for users that have to approve documents created + // for this order. ApproverUserProfileIds googleapi.Int64s `json:"approverUserProfileIds,omitempty"` - // BuyerInvoiceId: Buyer invoice ID associated with this order. BuyerInvoiceId string `json:"buyerInvoiceId,omitempty"` - // BuyerOrganizationName: Name of the buyer organization. BuyerOrganizationName string `json:"buyerOrganizationName,omitempty"` - // Comments: Comments in this order. Comments string `json:"comments,omitempty"` - // Contacts: Contacts for this order. Contacts []*OrderContact `json:"contacts,omitempty"` - // Id: ID of this order. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#order". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#order". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this order. + // LastModifiedInfo: Information about the most recent modification of this + // order. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this order. Name string `json:"name,omitempty"` - // Notes: Notes of this order. Notes string `json:"notes,omitempty"` - - // PlanningTermId: ID of the terms and conditions template used in this - // order. + // PlanningTermId: ID of the terms and conditions template used in this order. PlanningTermId int64 `json:"planningTermId,omitempty,string"` - // ProjectId: Project ID of this order. ProjectId int64 `json:"projectId,omitempty,string"` - // SellerOrderId: Seller order ID associated with this order. SellerOrderId string `json:"sellerOrderId,omitempty"` - // SellerOrganizationName: Name of the seller organization. SellerOrganizationName string `json:"sellerOrganizationName,omitempty"` - // SiteId: Site IDs this order is associated with. SiteId googleapi.Int64s `json:"siteId,omitempty"` - // SiteNames: Free-form site names this order is associated with. SiteNames []string `json:"siteNames,omitempty"` - // SubaccountId: Subaccount ID of this order. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TermsAndConditions: Terms and conditions of this order. TermsAndConditions string `json:"termsAndConditions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Order) MarshalJSON() ([]byte, error) { +func (s Order) MarshalJSON() ([]byte, error) { type NoMethod Order - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderContact: Contact of an order. type OrderContact struct { - // ContactInfo: Free-form information about this contact. It could be - // any information related to this contact in addition to type, title, - // name, and signature user profile ID. + // ContactInfo: Free-form information about this contact. It could be any + // information related to this contact in addition to type, title, name, and + // signature user profile ID. ContactInfo string `json:"contactInfo,omitempty"` - // ContactName: Name of this contact. ContactName string `json:"contactName,omitempty"` - // ContactTitle: Title of this contact. ContactTitle string `json:"contactTitle,omitempty"` - // ContactType: Type of this contact. // // Possible values: @@ -9643,90 +7778,66 @@ type OrderContact struct { // "PLANNING_ORDER_CONTACT_BUYER_CONTACT" // "PLANNING_ORDER_CONTACT_SELLER_CONTACT" ContactType string `json:"contactType,omitempty"` - - // SignatureUserProfileId: ID of the user profile containing the - // signature that will be embedded into order documents. + // SignatureUserProfileId: ID of the user profile containing the signature that + // will be embedded into order documents. SignatureUserProfileId int64 `json:"signatureUserProfileId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ContactInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContactInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContactInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderContact) MarshalJSON() ([]byte, error) { +func (s OrderContact) MarshalJSON() ([]byte, error) { type NoMethod OrderContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocument: Contains properties of a Planning order document. type OrderDocument struct { // AccountId: Account ID of this order document. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order document. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AmendedOrderDocumentId: The amended order document ID of this order - // document. An order document can be created by optionally amending - // another order document so that the change history can be preserved. + // document. An order document can be created by optionally amending another + // order document so that the change history can be preserved. AmendedOrderDocumentId int64 `json:"amendedOrderDocumentId,omitempty,string"` - // ApprovedByUserProfileIds: IDs of users who have approved this order // document. ApprovedByUserProfileIds googleapi.Int64s `json:"approvedByUserProfileIds,omitempty"` - // Cancelled: Whether this order document is cancelled. Cancelled bool `json:"cancelled,omitempty"` - // CreatedInfo: Information about the creation of this order document. CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"` - // EffectiveDate: Effective date of this order document. EffectiveDate string `json:"effectiveDate,omitempty"` - // Id: ID of this order document. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocument". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocument". Kind string `json:"kind,omitempty"` - - // LastSentRecipients: List of email addresses that received the last - // sent document. - LastSentRecipients []string `json:"lastSentRecipients,omitempty"` - - // LastSentTime: Timestamp of the last email sent with this order + // LastSentRecipients: List of email addresses that received the last sent // document. + LastSentRecipients []string `json:"lastSentRecipients,omitempty"` + // LastSentTime: Timestamp of the last email sent with this order document. LastSentTime string `json:"lastSentTime,omitempty"` - // OrderId: ID of the order from which this order document is created. OrderId int64 `json:"orderId,omitempty,string"` - // ProjectId: Project ID of this order document. ProjectId int64 `json:"projectId,omitempty,string"` - // Signed: Whether this order document has been signed. Signed bool `json:"signed,omitempty"` - // SubaccountId: Subaccount ID of this order document. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Title: Title of this order document. Title string `json:"title,omitempty"` - // Type: Type of this order document // // Possible values: @@ -9734,208 +7845,154 @@ type OrderDocument struct { // "PLANNING_ORDER_TYPE_INSERTION_ORDER" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocument) MarshalJSON() ([]byte, error) { +func (s OrderDocument) MarshalJSON() ([]byte, error) { type NoMethod OrderDocument - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocumentsListResponse: Order document List Response type OrderDocumentsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocumentsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocumentsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // OrderDocuments: Order document collection OrderDocuments []*OrderDocument `json:"orderDocuments,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { +func (s OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderDocumentsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrdersListResponse: Order List Response type OrdersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ordersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ordersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Orders: Order collection. Orders []*Order `json:"orders,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersListResponse) MarshalJSON() ([]byte, error) { +func (s OrdersListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PathToConversionReportCompatibleFields: Represents fields that are // compatible to be selected for a report of type "PATH_TO_CONVERSION". type PathToConversionReportCompatibleFields struct { - // ConversionDimensions: Conversion dimensions which are compatible to - // be selected in the "conversionDimensions" section of the report. + // ConversionDimensions: Conversion dimensions which are compatible to be + // selected in the "conversionDimensions" section of the report. ConversionDimensions []*Dimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: Custom floodlight variables which are - // compatible to be selected in the "customFloodlightVariables" section - // of the report. + // CustomFloodlightVariables: Custom floodlight variables which are compatible + // to be selected in the "customFloodlightVariables" section of the report. CustomFloodlightVariables []*Dimension `json:"customFloodlightVariables,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#pathToConversionReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PerInteractionDimensions: Per-interaction dimensions which are - // compatible to be selected in the "perInteractionDimensions" section - // of the report. + // PerInteractionDimensions: Per-interaction dimensions which are compatible to + // be selected in the "perInteractionDimensions" section of the report. PerInteractionDimensions []*Dimension `json:"perInteractionDimensions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConversionDimensions") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ConversionDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConversionDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConversionDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod PathToConversionReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Placement: Contains properties of a placement. type Placement struct { - // AccountId: Account ID of this placement. This field can be left - // blank. + // AccountId: Account ID of this placement. This field can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdBlockingOptOut: Whether this placement opts out of ad blocking. - // When true, ad blocking is disabled for this placement. When false, - // the campaign and site settings take effect. + // AdBlockingOptOut: Whether this placement opts out of ad blocking. When true, + // ad blocking is disabled for this placement. When false, the campaign and + // site settings take effect. AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - - // AdditionalSizes: Additional sizes associated with this placement. - // When inserting or updating a placement, only the size ID field is - // used. + // AdditionalSizes: Additional sizes associated with this placement. When + // inserting or updating a placement, only the size ID field is used. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // AdvertiserId: Advertiser ID of this placement. This field can be left - // blank. + // AdvertiserId: Advertiser ID of this placement. This field can be left blank. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement. This field is a required - // field on insertion. + // CampaignId: Campaign ID of this placement. This field is a required field on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - // Comment: Comments for this placement. Comment string `json:"comment,omitempty"` - - // Compatibility: Placement compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices - // or in mobile apps for regular or interstitial ads respectively. APP - // and APP_INTERSTITIAL are no longer allowed for new placement - // insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. This field is required on insertion. + // Compatibility: Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL + // refer to rendering on desktop, on mobile devices or in mobile apps for + // regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no + // longer allowed for new placement insertions. Instead, use DISPLAY or + // DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video + // ads developed with the VAST standard. This field is required on insertion. // // Possible values: // "APP" @@ -9945,113 +8002,85 @@ type Placement struct { // "IN_STREAM_AUDIO" // "IN_STREAM_VIDEO" Compatibility string `json:"compatibility,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement. + // ContentCategoryId: ID of the content category assigned to this placement. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement. This is - // a read-only field. + // CreateInfo: Information about the creation of this placement. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID of this placement. On insert, you - // must set either this field or the siteId field to specify the site - // associated with this placement. This is a required field that is - // read-only after insertion. + // DirectorySiteId: Directory site ID of this placement. On insert, you must + // set either this field or the siteId field to specify the site associated + // with this placement. This is a required field that is read-only after + // insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this placement. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this placement. This is a read-only, - // auto-generated field. + // KeyName: Key name of this placement. This is a read-only, auto-generated + // field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placement". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placement". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // LookbackConfiguration: Lookback window settings for this placement. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // Name: Name of this placement.This is a required field and must be - // less than 256 characters long. + // Name: Name of this placement.This is a required field and must be less than + // 256 characters long. Name string `json:"name,omitempty"` - - // PaymentApproved: Whether payment was approved for this placement. - // This is a read-only field relevant only to publisher-paid placements. + // PaymentApproved: Whether payment was approved for this placement. This is a + // read-only field relevant only to publisher-paid placements. PaymentApproved bool `json:"paymentApproved,omitempty"` - - // PaymentSource: Payment source for this placement. This is a required - // field that is read-only after insertion. + // PaymentSource: Payment source for this placement. This is a required field + // that is read-only after insertion. // // Possible values: // "PLACEMENT_AGENCY_PAID" // "PLACEMENT_PUBLISHER_PAID" PaymentSource string `json:"paymentSource,omitempty"` - // PlacementGroupId: ID of this placement's group, if applicable. PlacementGroupId int64 `json:"placementGroupId,omitempty,string"` - - // PlacementGroupIdDimensionValue: Dimension value for the ID of the - // placement group. This is a read-only, auto-generated field. + // PlacementGroupIdDimensionValue: Dimension value for the ID of the placement + // group. This is a read-only, auto-generated field. PlacementGroupIdDimensionValue *DimensionValue `json:"placementGroupIdDimensionValue,omitempty"` - // PlacementStrategyId: ID of the placement strategy assigned to this // placement. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement. This field is - // required on insertion, specifically subfields startDate, endDate and - // pricingType. + // PricingSchedule: Pricing schedule of this placement. This field is required + // on insertion, specifically subfields startDate, endDate and pricingType. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // Primary: Whether this placement is the primary placement of a - // roadblock (placement group). You cannot change this field from true - // to false. Setting this field to true will automatically set the - // primary field on the original primary placement of the roadblock to - // false, and it will automatically set the roadblock's - // primaryPlacementId field to the ID of this placement. + // Primary: Whether this placement is the primary placement of a roadblock + // (placement group). You cannot change this field from true to false. Setting + // this field to true will automatically set the primary field on the original + // primary placement of the roadblock to false, and it will automatically set + // the roadblock's primaryPlacementId field to the ID of this placement. Primary bool `json:"primary,omitempty"` - - // PublisherUpdateInfo: Information about the last publisher update. - // This is a read-only field. + // PublisherUpdateInfo: Information about the last publisher update. This is a + // read-only field. PublisherUpdateInfo *LastModifiedInfo `json:"publisherUpdateInfo,omitempty"` - - // SiteId: Site ID associated with this placement. On insert, you must - // set either this field or the directorySiteId field to specify the - // site associated with this placement. This is a required field that is - // read-only after insertion. + // SiteId: Site ID associated with this placement. On insert, you must set + // either this field or the directorySiteId field to specify the site + // associated with this placement. This is a required field that is read-only + // after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // Size: Size associated with this placement. When inserting or updating - // a placement, only the size ID field is used. This field is required - // on insertion. + // Size: Size associated with this placement. When inserting or updating a + // placement, only the size ID field is used. This field is required on + // insertion. Size *Size `json:"size,omitempty"` - // SslRequired: Whether creatives assigned to this placement must be // SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - // Status: Third-party placement status. // // Possible values: @@ -10062,11 +8091,8 @@ type Placement struct { // "PAYMENT_REJECTED" // "PENDING_REVIEW" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this placement. This field can be left - // blank. + // SubaccountId: Subaccount ID of this placement. This field can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TagFormats: Tag formats to generate for this placement. This field is // required on insertion. // Acceptable values are: @@ -10107,31 +8133,27 @@ type Placement struct { // "PLACEMENT_TAG_TRACKING_IFRAME" // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" TagFormats []string `json:"tagFormats,omitempty"` - // TagSetting: Tag settings for this placement. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOut: Whether Verification and ActiveView are - // disabled for in-stream video creatives for this placement. The same - // setting videoActiveViewOptOut exists on the site level -- the opt out - // occurs if either of these settings are true. These settings are - // distinct from DirectorySites.settings.activeViewOptOut or + // VideoActiveViewOptOut: Whether Verification and ActiveView are disabled for + // in-stream video creatives for this placement. The same setting + // videoActiveViewOptOut exists on the site level -- the opt out occurs if + // either of these settings are true. These settings are distinct from + // DirectorySites.settings.activeViewOptOut or // Sites.siteSettings.activeViewOptOut which only apply to display ads. - // However, Accounts.activeViewOptOut opts out both video traffic, as - // well as display ads, from Verification and ActiveView. + // However, Accounts.activeViewOptOut opts out both video traffic, as well as + // display ads, from Verification and ActiveView. VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"` - - // VideoSettings: A collection of settings which affect video creatives - // served through this placement. Applicable to placements with - // IN_STREAM_VIDEO compatibility. + // VideoSettings: A collection of settings which affect video creatives served + // through this placement. Applicable to placements with IN_STREAM_VIDEO + // compatibility. VideoSettings *VideoSettings `json:"videoSettings,omitempty"` - - // VpaidAdapterChoice: VPAID adapter setting for this placement. - // Controls which VPAID format the measurement adapter will use for - // in-stream video creatives assigned to this placement. + // VpaidAdapterChoice: VPAID adapter setting for this placement. Controls which + // VPAID format the measurement adapter will use for in-stream video creatives + // assigned to this placement. // - // Note: Flash is no longer supported. This field now defaults to HTML5 - // when the following values are provided: FLASH, BOTH. + // Note: Flash is no longer supported. This field now defaults to HTML5 when + // the following values are provided: FLASH, BOTH. // // Possible values: // "BOTH" @@ -10140,31 +8162,24 @@ type Placement struct { // "HTML5" VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Placement) MarshalJSON() ([]byte, error) { +func (s Placement) MarshalJSON() ([]byte, error) { type NoMethod Placement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementAssignment: Placement Assignment. @@ -10172,419 +8187,319 @@ type PlacementAssignment struct { // Active: Whether this placement assignment is active. When true, the // placement will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // PlacementId: ID of the placement to be assigned. This is a required - // field. + // PlacementId: ID of the placement to be assigned. This is a required field. PlacementId int64 `json:"placementId,omitempty,string"` - - // PlacementIdDimensionValue: Dimension value for the ID of the - // placement. This is a read-only, auto-generated field. + // PlacementIdDimensionValue: Dimension value for the ID of the placement. This + // is a read-only, auto-generated field. PlacementIdDimensionValue *DimensionValue `json:"placementIdDimensionValue,omitempty"` - - // SslRequired: Whether the placement to be assigned requires SSL. This - // is a read-only field that is auto-generated when the ad is inserted - // or updated. + // SslRequired: Whether the placement to be assigned requires SSL. This is a + // read-only field that is auto-generated when the ad is inserted or updated. SslRequired bool `json:"sslRequired,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementAssignment) MarshalJSON() ([]byte, error) { +func (s PlacementAssignment) MarshalJSON() ([]byte, error) { type NoMethod PlacementAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroup: Contains properties of a package or roadblock. type PlacementGroup struct { - // AccountId: Account ID of this placement group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this placement group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this placement group. This is a required + // field on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement group is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement group. This field is - // required on insertion. + // CampaignId: Campaign ID of this placement group. This field is required on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ChildPlacementIds: IDs of placements which are assigned to this - // placement group. This is a read-only, auto-generated field. + // ChildPlacementIds: IDs of placements which are assigned to this placement + // group. This is a read-only, auto-generated field. ChildPlacementIds googleapi.Int64s `json:"childPlacementIds,omitempty"` - // Comment: Comments for this placement group. Comment string `json:"comment,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement group. + // ContentCategoryId: ID of the content category assigned to this placement + // group. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement group. - // This is a read-only field. + // CreateInfo: Information about the creation of this placement group. This is + // a read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID associated with this placement - // group. On insert, you must set either this field or the site_id field - // to specify the site associated with this placement group. This is a - // required field that is read-only after insertion. + // DirectorySiteId: Directory site ID associated with this placement group. On + // insert, you must set either this field or the site_id field to specify the + // site associated with this placement group. This is a required field that is + // read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - - // Id: ID of this placement group. This is a read-only, auto-generated - // field. + // Id: ID of this placement group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement group. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement group. This + // is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroup". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement group. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement group. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this placement group. This is a required field and must - // be less than 256 characters long. + // Name: Name of this placement group. This is a required field and must be + // less than 256 characters long. Name string `json:"name,omitempty"` - - // PlacementGroupType: Type of this placement group. A package is a - // simple group of placements that acts as a single pricing point for a - // group of tags. A roadblock is a group of placements that not only - // acts as a single pricing point, but also assumes that all the tags in - // it will be served at the same time. A roadblock requires one of its - // assigned placements to be marked as primary for reporting. This field - // is required on insertion. + // PlacementGroupType: Type of this placement group. A package is a simple + // group of placements that acts as a single pricing point for a group of tags. + // A roadblock is a group of placements that not only acts as a single pricing + // point, but also assumes that all the tags in it will be served at the same + // time. A roadblock requires one of its assigned placements to be marked as + // primary for reporting. This field is required on insertion. // // Possible values: // "PLACEMENT_PACKAGE" // "PLACEMENT_ROADBLOCK" PlacementGroupType string `json:"placementGroupType,omitempty"` - - // PlacementStrategyId: ID of the placement strategy assigned to this - // placement group. + // PlacementStrategyId: ID of the placement strategy assigned to this placement + // group. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement group. This field - // is required on insertion. + // PricingSchedule: Pricing schedule of this placement group. This field is + // required on insertion. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // PrimaryPlacementId: ID of the primary placement, used to calculate - // the media cost of a roadblock (placement group). Modifying this field - // will automatically modify the primary field on all affected roadblock - // child placements. + // PrimaryPlacementId: ID of the primary placement, used to calculate the media + // cost of a roadblock (placement group). Modifying this field will + // automatically modify the primary field on all affected roadblock child + // placements. PrimaryPlacementId int64 `json:"primaryPlacementId,omitempty,string"` - - // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the - // primary placement. This is a read-only, auto-generated field. + // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the primary + // placement. This is a read-only, auto-generated field. PrimaryPlacementIdDimensionValue *DimensionValue `json:"primaryPlacementIdDimensionValue,omitempty"` - - // SiteId: Site ID associated with this placement group. On insert, you - // must set either this field or the directorySiteId field to specify - // the site associated with this placement group. This is a required - // field that is read-only after insertion. + // SiteId: Site ID associated with this placement group. On insert, you must + // set either this field or the directorySiteId field to specify the site + // associated with this placement group. This is a required field that is + // read-only after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // SubaccountId: Subaccount ID of this placement group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this placement group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroup) MarshalJSON() ([]byte, error) { +func (s PlacementGroup) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroupsListResponse: Placement Group List Response type PlacementGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementGroups: Placement group collection. PlacementGroups []*PlacementGroup `json:"placementGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategiesListResponse: Placement Strategy List Response type PlacementStrategiesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementStrategies: Placement strategy collection. PlacementStrategies []*PlacementStrategy `json:"placementStrategies,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategy: Contains properties of a placement strategy. type PlacementStrategy struct { - // AccountId: Account ID of this placement strategy.This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement strategy.This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this placement strategy. This is a read-only, - // auto-generated field. + // Id: ID of this placement strategy. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategy". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategy". Kind string `json:"kind,omitempty"` - - // Name: Name of this placement strategy. This is a required field. It - // must be less than 256 characters long and unique among placement - // strategies of the same account. + // Name: Name of this placement strategy. This is a required field. It must be + // less than 256 characters long and unique among placement strategies of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategy) MarshalJSON() ([]byte, error) { +func (s PlacementStrategy) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementTag: Placement Tag type PlacementTag struct { // PlacementId: Placement ID PlacementId int64 `json:"placementId,omitempty,string"` - // TagDatas: Tags generated for this placement. TagDatas []*TagData `json:"tagDatas,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlacementId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PlacementId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PlacementId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementTag) MarshalJSON() ([]byte, error) { +func (s PlacementTag) MarshalJSON() ([]byte, error) { type NoMethod PlacementTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsGenerateTagsResponse: Placement GenerateTags Response type PlacementsGenerateTagsResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsGenerateTagsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsGenerateTagsResponse". Kind string `json:"kind,omitempty"` - // PlacementTags: Set of generated tags for the specified placements. PlacementTags []*PlacementTag `json:"placementTags,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsGenerateTagsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsListResponse: Placement List Response type PlacementsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Placements: Placement collection. Placements []*Placement `json:"placements,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformType: Contains information about a platform type that can be @@ -10592,88 +8507,68 @@ func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { type PlatformType struct { // Id: ID of this platform type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformType". Kind string `json:"kind,omitempty"` - // Name: Name of this platform type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformType) MarshalJSON() ([]byte, error) { +func (s PlatformType) MarshalJSON() ([]byte, error) { type NoMethod PlatformType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformTypesListResponse: Platform Type List Response type PlatformTypesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformTypesListResponse". Kind string `json:"kind,omitempty"` - // PlatformTypes: Platform type collection. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformTypesListResponse) MarshalJSON() ([]byte, error) { +func (s PlatformTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlatformTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PopupWindowProperties: Popup Window Properties. type PopupWindowProperties struct { // Dimension: Popup dimension for a creative. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA and all - // VPAID + // Applicable to the following creative types: all RICH_MEDIA and all VPAID Dimension *Size `json:"dimension,omitempty"` - - // Offset: Upper-left corner coordinates of the popup window. Applicable - // if positionType is COORDINATES. + // Offset: Upper-left corner coordinates of the popup window. Applicable if + // positionType is COORDINATES. Offset *OffsetPosition `json:"offset,omitempty"` - // PositionType: Popup window position either centered or at specific // coordinate. // @@ -10681,130 +8576,97 @@ type PopupWindowProperties struct { // "CENTER" // "COORDINATES" PositionType string `json:"positionType,omitempty"` - // ShowAddressBar: Whether to display the browser address bar. ShowAddressBar bool `json:"showAddressBar,omitempty"` - // ShowMenuBar: Whether to display the browser menu bar. ShowMenuBar bool `json:"showMenuBar,omitempty"` - // ShowScrollBar: Whether to display the browser scroll bar. ShowScrollBar bool `json:"showScrollBar,omitempty"` - // ShowStatusBar: Whether to display the browser status bar. ShowStatusBar bool `json:"showStatusBar,omitempty"` - // ShowToolBar: Whether to display the browser tool bar. ShowToolBar bool `json:"showToolBar,omitempty"` - // Title: Title of popup window. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimension") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PopupWindowProperties) MarshalJSON() ([]byte, error) { +func (s PopupWindowProperties) MarshalJSON() ([]byte, error) { type NoMethod PopupWindowProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostalCode: Contains information about a postal code that can be -// targeted by ads. +// PostalCode: Contains information about a postal code that can be targeted by +// ads. type PostalCode struct { // Code: Postal code. This is equivalent to the id field. Code string `json:"code,omitempty"` - - // CountryCode: Country code of the country to which this postal code - // belongs. + // CountryCode: Country code of the country to which this postal code belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this postal code - // belongs. + // CountryDartId: DART ID of the country to which this postal code belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this postal code. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCode". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCode". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCode) MarshalJSON() ([]byte, error) { +func (s PostalCode) MarshalJSON() ([]byte, error) { type NoMethod PostalCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PostalCodesListResponse: Postal Code List Response type PostalCodesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCodesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCodesListResponse". Kind string `json:"kind,omitempty"` - // PostalCodes: Postal code collection. PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCodesListResponse) MarshalJSON() ([]byte, error) { +func (s PostalCodesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PostalCodesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Pricing: Pricing Information @@ -10816,29 +8678,25 @@ type Pricing struct { // "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY" // "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE" CapCostType string `json:"capCostType,omitempty"` - // EndDate: End date of this inventory item. EndDate string `json:"endDate,omitempty"` - - // Flights: Flights of this inventory item. A flight (a.k.a. pricing - // period) represents the inventory item pricing information for a - // specific period of time. + // Flights: Flights of this inventory item. A flight (a.k.a. pricing period) + // represents the inventory item pricing information for a specific period of + // time. Flights []*Flight `json:"flights,omitempty"` - - // GroupType: Group type of this inventory item if it represents a - // placement group. Is null otherwise. There are two type of placement - // groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of - // inventory items that acts as a single pricing point for a group of - // tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory - // items that not only acts as a single pricing point, but also assumes - // that all the tags in it will be served at the same time. A roadblock - // requires one of its assigned inventory items to be marked as primary. + // GroupType: Group type of this inventory item if it represents a placement + // group. Is null otherwise. There are two type of placement groups: + // PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items + // that acts as a single pricing point for a group of tags. + // PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that + // not only acts as a single pricing point, but also assumes that all the tags + // in it will be served at the same time. A roadblock requires one of its + // assigned inventory items to be marked as primary. // // Possible values: // "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" // "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" GroupType string `json:"groupType,omitempty"` - // PricingType: Pricing type of this inventory item. // // Possible values: @@ -10851,31 +8709,24 @@ type Pricing struct { // "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS" // "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS" PricingType string `json:"pricingType,omitempty"` - // StartDate: Start date of this inventory item. StartDate string `json:"startDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CapCostType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pricing) MarshalJSON() ([]byte, error) { +func (s Pricing) MarshalJSON() ([]byte, error) { type NoMethod Pricing - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedule: Pricing Schedule @@ -10887,33 +8738,25 @@ type PricingSchedule struct { // "CAP_COST_MONTHLY" // "CAP_COST_NONE" CapCostOption string `json:"capCostOption,omitempty"` - // DisregardOverdelivery: Whether cap costs are ignored by ad serving. DisregardOverdelivery bool `json:"disregardOverdelivery,omitempty"` - - // EndDate: Placement end date. This date must be later than, or the - // same day as, the placement start date, but not later than the - // campaign end date. If, for example, you set 6/25/2015 as both the - // start and end dates, the effective placement date is just that day - // only, 6/25/2015. The hours, minutes, and seconds of the end date - // should not be set, as doing so will result in an error. This field is - // required on insertion. + // EndDate: Placement end date. This date must be later than, or the same day + // as, the placement start date, but not later than the campaign end date. If, + // for example, you set 6/25/2015 as both the start and end dates, the + // effective placement date is just that day only, 6/25/2015. The hours, + // minutes, and seconds of the end date should not be set, as doing so will + // result in an error. This field is required on insertion. EndDate string `json:"endDate,omitempty"` - - // Flighted: Whether this placement is flighted. If true, pricing - // periods will be computed automatically. + // Flighted: Whether this placement is flighted. If true, pricing periods will + // be computed automatically. Flighted bool `json:"flighted,omitempty"` - - // FloodlightActivityId: Floodlight activity ID associated with this - // placement. This field should be set when placement pricing type is - // set to PRICING_TYPE_CPA. + // FloodlightActivityId: Floodlight activity ID associated with this placement. + // This field should be set when placement pricing type is set to + // PRICING_TYPE_CPA. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // PricingPeriods: Pricing periods for this placement. PricingPeriods []*PricingSchedulePricingPeriod `json:"pricingPeriods,omitempty"` - - // PricingType: Placement pricing type. This field is required on - // insertion. + // PricingType: Placement pricing type. This field is required on insertion. // // Possible values: // "PRICING_TYPE_CPA" @@ -10923,101 +8766,80 @@ type PricingSchedule struct { // "PRICING_TYPE_FLAT_RATE_CLICKS" // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" PricingType string `json:"pricingType,omitempty"` - - // StartDate: Placement start date. This date must be later than, or the - // same day as, the campaign start date. The hours, minutes, and seconds - // of the start date should not be set, as doing so will result in an - // error. This field is required on insertion. + // StartDate: Placement start date. This date must be later than, or the same + // day as, the campaign start date. The hours, minutes, and seconds of the + // start date should not be set, as doing so will result in an error. This + // field is required on insertion. StartDate string `json:"startDate,omitempty"` - - // TestingStartDate: Testing start date of this placement. The hours, - // minutes, and seconds of the start date should not be set, as doing so - // will result in an error. + // TestingStartDate: Testing start date of this placement. The hours, minutes, + // and seconds of the start date should not be set, as doing so will result in + // an error. TestingStartDate string `json:"testingStartDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CapCostOption") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostOption") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostOption") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedule) MarshalJSON() ([]byte, error) { +func (s PricingSchedule) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedulePricingPeriod: Pricing Period type PricingSchedulePricingPeriod struct { - // EndDate: Pricing period end date. This date must be later than, or - // the same day as, the pricing period start date, but not later than - // the placement end date. The period end date can be the same date as - // the period start date. If, for example, you set 6/25/2015 as both the - // start and end dates, the effective pricing period date is just that - // day only, 6/25/2015. The hours, minutes, and seconds of the end date - // should not be set, as doing so will result in an error. + // EndDate: Pricing period end date. This date must be later than, or the same + // day as, the pricing period start date, but not later than the placement end + // date. The period end date can be the same date as the period start date. If, + // for example, you set 6/25/2015 as both the start and end dates, the + // effective pricing period date is just that day only, 6/25/2015. The hours, + // minutes, and seconds of the end date should not be set, as doing so will + // result in an error. EndDate string `json:"endDate,omitempty"` - // PricingComment: Comments for this pricing period. PricingComment string `json:"pricingComment,omitempty"` - // RateOrCostNanos: Rate or cost of this pricing period in nanos (i.e., - // multipled by 1000000000). Acceptable values are 0 to - // 1000000000000000000, inclusive. + // multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, + // inclusive. RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"` - - // StartDate: Pricing period start date. This date must be later than, - // or the same day as, the placement start date. The hours, minutes, and - // seconds of the start date should not be set, as doing so will result - // in an error. + // StartDate: Pricing period start date. This date must be later than, or the + // same day as, the placement start date. The hours, minutes, and seconds of + // the start date should not be set, as doing so will result in an error. StartDate string `json:"startDate,omitempty"` - - // Units: Units of this pricing period. Acceptable values are 0 to - // 10000000000, inclusive. + // Units: Units of this pricing period. Acceptable values are 0 to 10000000000, + // inclusive. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { +func (s PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedulePricingPeriod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Project: Contains properties of a Planning project. type Project struct { // AccountId: Account ID of this project. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this project. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AudienceAgeGroup: Audience age group of this project. // // Possible values: @@ -11029,193 +8851,142 @@ type Project struct { // "PLANNING_AUDIENCE_AGE_65_OR_MORE" // "PLANNING_AUDIENCE_AGE_UNKNOWN" AudienceAgeGroup string `json:"audienceAgeGroup,omitempty"` - // AudienceGender: Audience gender of this project. // // Possible values: // "PLANNING_AUDIENCE_GENDER_FEMALE" // "PLANNING_AUDIENCE_GENDER_MALE" AudienceGender string `json:"audienceGender,omitempty"` - - // Budget: Budget of this project in the currency specified by the - // current account. The value stored in this field represents only the - // non-fractional amount. For example, for USD, the smallest value that - // can be represented by this field is 1 US dollar. + // Budget: Budget of this project in the currency specified by the current + // account. The value stored in this field represents only the non-fractional + // amount. For example, for USD, the smallest value that can be represented by + // this field is 1 US dollar. Budget int64 `json:"budget,omitempty,string"` - // ClientBillingCode: Client billing code of this project. ClientBillingCode string `json:"clientBillingCode,omitempty"` - // ClientName: Name of the project client. ClientName string `json:"clientName,omitempty"` - // EndDate: End date of the project. EndDate string `json:"endDate,omitempty"` - // Id: ID of this project. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#project". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#project". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this project. + // LastModifiedInfo: Information about the most recent modification of this + // project. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this project. Name string `json:"name,omitempty"` - // Overview: Overview of this project. Overview string `json:"overview,omitempty"` - // StartDate: Start date of the project. StartDate string `json:"startDate,omitempty"` - // SubaccountId: Subaccount ID of this project. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TargetClicks: Number of clicks that the advertiser is targeting. TargetClicks int64 `json:"targetClicks,omitempty,string"` - - // TargetConversions: Number of conversions that the advertiser is - // targeting. + // TargetConversions: Number of conversions that the advertiser is targeting. TargetConversions int64 `json:"targetConversions,omitempty,string"` - // TargetCpaNanos: CPA that the advertiser is targeting. TargetCpaNanos int64 `json:"targetCpaNanos,omitempty,string"` - // TargetCpcNanos: CPC that the advertiser is targeting. TargetCpcNanos int64 `json:"targetCpcNanos,omitempty,string"` - - // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser - // is targeting. + // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser is + // targeting. TargetCpmActiveViewNanos int64 `json:"targetCpmActiveViewNanos,omitempty,string"` - // TargetCpmNanos: CPM that the advertiser is targeting. TargetCpmNanos int64 `json:"targetCpmNanos,omitempty,string"` - - // TargetImpressions: Number of impressions that the advertiser is - // targeting. + // TargetImpressions: Number of impressions that the advertiser is targeting. TargetImpressions int64 `json:"targetImpressions,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Project) MarshalJSON() ([]byte, error) { +func (s Project) MarshalJSON() ([]byte, error) { type NoMethod Project - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProjectsListResponse: Project List Response type ProjectsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#projectsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#projectsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Projects: Project collection. Projects []*Project `json:"projects,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProjectsListResponse) MarshalJSON() ([]byte, error) { +func (s ProjectsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ProjectsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReachReportCompatibleFields: Represents fields that are compatible to -// be selected for a report of type "REACH". +// ReachReportCompatibleFields: Represents fields that are compatible to be +// selected for a report of type "REACH". type ReachReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - - // ReachByFrequencyMetrics: Metrics which are compatible to be selected - // in the "reachByFrequencyMetricNames" section of the report. + // ReachByFrequencyMetrics: Metrics which are compatible to be selected in the + // "reachByFrequencyMetricNames" section of the report. ReachByFrequencyMetrics []*Metric `json:"reachByFrequencyMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Recipient: Represents a recipient. @@ -11226,165 +8997,122 @@ type Recipient struct { // "ATTACHMENT" // "LINK" DeliveryType string `json:"deliveryType,omitempty"` - // Email: The email address of the recipient. Email string `json:"email,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#recipient. + // Kind: The kind of resource this is, in this case dfareporting#recipient. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliveryType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliveryType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliveryType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Recipient) MarshalJSON() ([]byte, error) { +func (s Recipient) MarshalJSON() ([]byte, error) { type NoMethod Recipient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Region: Contains information about a region that can be targeted by -// ads. +// Region: Contains information about a region that can be targeted by ads. type Region struct { - // CountryCode: Country code of the country to which this region - // belongs. + // CountryCode: Country code of the country to which this region belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this region. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#region". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#region". Kind string `json:"kind,omitempty"` - // Name: Name of this region. Name string `json:"name,omitempty"` - // RegionCode: Region code. RegionCode string `json:"regionCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Region) MarshalJSON() ([]byte, error) { +func (s Region) MarshalJSON() ([]byte, error) { type NoMethod Region - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RegionsListResponse: Region List Response type RegionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#regionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#regionsListResponse". Kind string `json:"kind,omitempty"` - // Regions: Region collection. Regions []*Region `json:"regions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegionsListResponse) MarshalJSON() ([]byte, error) { +func (s RegionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RegionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingList: Contains properties of a remarketing list. -// Remarketing enables you to create lists of users who have performed -// specific actions on a site, then target ads to members of those -// lists. This resource can be used to manage remarketing lists that are -// owned by your advertisers. To see all remarketing lists that are -// visible to your advertisers, including those that are shared to your -// advertiser or account, use the TargetableRemarketingLists resource. +// RemarketingList: Contains properties of a remarketing list. Remarketing +// enables you to create lists of users who have performed specific actions on +// a site, then target ads to members of those lists. This resource can be used +// to manage remarketing lists that are owned by your advertisers. To see all +// remarketing lists that are visible to your advertisers, including those that +// are shared to your advertiser or account, use the TargetableRemarketingLists +// resource. type RemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // remarketing list. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Remarketing list description. Description string `json:"description,omitempty"` - // Id: Remarketing list ID. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingList". Kind string `json:"kind,omitempty"` - - // LifeSpan: Number of days that a user should remain in the remarketing - // list without an impression. Acceptable values are 1 to 540, - // inclusive. + // LifeSpan: Number of days that a user should remain in the remarketing list + // without an impression. Acceptable values are 1 to 540, inclusive. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListPopulationRule: Rule used to populate the remarketing list with - // users. + // ListPopulationRule: Rule used to populate the remarketing list with users. ListPopulationRule *ListPopulationRule `json:"listPopulationRule,omitempty"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this remarketing list was originated. // // Possible values: @@ -11400,198 +9128,146 @@ type RemarketingList struct { // "REMARKETING_LIST_SOURCE_XFP" // "REMARKETING_LIST_SOURCE_YOUTUBE" ListSource string `json:"listSource,omitempty"` - - // Name: Name of the remarketing list. This is a required field. Must be - // no greater than 128 characters long. + // Name: Name of the remarketing list. This is a required field. Must be no + // greater than 128 characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingList) MarshalJSON() ([]byte, error) { +func (s RemarketingList) MarshalJSON() ([]byte, error) { type NoMethod RemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingListShare: Contains properties of a remarketing list's -// sharing information. Sharing allows other accounts or advertisers to -// target to your remarketing lists. This resource can be used to manage -// remarketing list sharing to other accounts and advertisers. +// RemarketingListShare: Contains properties of a remarketing list's sharing +// information. Sharing allows other accounts or advertisers to target to your +// remarketing lists. This resource can be used to manage remarketing list +// sharing to other accounts and advertisers. type RemarketingListShare struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListShare". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListShare". Kind string `json:"kind,omitempty"` - - // RemarketingListId: Remarketing list ID. This is a read-only, - // auto-generated field. + // RemarketingListId: Remarketing list ID. This is a read-only, auto-generated + // field. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - // SharedAccountIds: Accounts that the remarketing list is shared with. SharedAccountIds googleapi.Int64s `json:"sharedAccountIds,omitempty"` - - // SharedAdvertiserIds: Advertisers that the remarketing list is shared - // with. + // SharedAdvertiserIds: Advertisers that the remarketing list is shared with. SharedAdvertiserIds googleapi.Int64s `json:"sharedAdvertiserIds,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListShare) MarshalJSON() ([]byte, error) { +func (s RemarketingListShare) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListShare - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RemarketingListsListResponse: Remarketing list response type RemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // RemarketingLists: Remarketing list collection. RemarketingLists []*RemarketingList `json:"remarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s RemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Report: Represents a Report resource. type Report struct { // AccountId: The account ID to which this report belongs. AccountId int64 `json:"accountId,omitempty,string"` - // Criteria: The report criteria for a report of type "STANDARD". Criteria *ReportCriteria `json:"criteria,omitempty"` - // CrossDimensionReachCriteria: The report criteria for a report of type // "CROSS_DIMENSION_REACH". CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"` - // Delivery: The report's email delivery settings. Delivery *ReportDelivery `json:"delivery,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // FileName: The filename used when generating report files for this - // report. + // FileName: The filename used when generating report files for this report. FileName string `json:"fileName,omitempty"` - - // FloodlightCriteria: The report criteria for a report of type - // "FLOODLIGHT". + // FloodlightCriteria: The report criteria for a report of type "FLOODLIGHT". FloodlightCriteria *ReportFloodlightCriteria `json:"floodlightCriteria,omitempty"` - - // Format: The output format of the report. If not specified, default - // format is "CSV". Note that the actual format in the completed report - // file might differ if for instance the report's size exceeds the - // format's capabilities. "CSV" will then be the fallback format. + // Format: The output format of the report. If not specified, default format is + // "CSV". Note that the actual format in the completed report file might differ + // if for instance the report's size exceeds the format's capabilities. "CSV" + // will then be the fallback format. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID identifying this report resource. Id int64 `json:"id,omitempty,string"` - // Kind: The kind of resource this is, in this case dfareporting#report. Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp (in milliseconds since epoch) of when - // this report was last modified. + // LastModifiedTime: The timestamp (in milliseconds since epoch) of when this + // report was last modified. LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"` - // Name: The name of the report. Name string `json:"name,omitempty"` - // OwnerProfileId: The user profile id of the owner of this report. OwnerProfileId int64 `json:"ownerProfileId,omitempty,string"` - // PathToConversionCriteria: The report criteria for a report of type // "PATH_TO_CONVERSION". PathToConversionCriteria *ReportPathToConversionCriteria `json:"pathToConversionCriteria,omitempty"` - // ReachCriteria: The report criteria for a report of type "REACH". ReachCriteria *ReportReachCriteria `json:"reachCriteria,omitempty"` - - // Schedule: The report's schedule. Can only be set if the report's - // 'dateRange' is a relative date range and the relative date range is - // not "TODAY". + // Schedule: The report's schedule. Can only be set if the report's 'dateRange' + // is a relative date range and the relative date range is not "TODAY". Schedule *ReportSchedule `json:"schedule,omitempty"` - - // SubAccountId: The subaccount ID to which this report belongs if - // applicable. + // SubAccountId: The subaccount ID to which this report belongs if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - // Type: The type of the report. // // Possible values: @@ -11602,89 +9278,68 @@ type Report struct { // "STANDARD" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Report) MarshalJSON() ([]byte, error) { +func (s Report) MarshalJSON() ([]byte, error) { type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportCriteria: The report criteria for a report of type "STANDARD". type ReportCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range for which this report should be run. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - - // Dimensions: The list of standard dimensions the report should - // include. + // Dimensions: The list of standard dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCrossDimensionReachCriteria: The report criteria for a report -// of type "CROSS_DIMENSION_REACH". +// ReportCrossDimensionReachCriteria: The report criteria for a report of type +// "CROSS_DIMENSION_REACH". type ReportCrossDimensionReachCriteria struct { // Breakdown: The list of dimensions the report should include. Breakdown []*SortedDimension `json:"breakdown,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // Dimension: The dimension option. // // Possible values: @@ -11693,409 +9348,306 @@ type ReportCrossDimensionReachCriteria struct { // "SITE_BY_ADVERTISER" // "SITE_BY_CAMPAIGN" Dimension string `json:"dimension,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. + // DimensionFilters: The list of filters on which dimensions are filtered. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // OverlapMetricNames: The list of names of overlap metrics the report - // should include. + // OverlapMetricNames: The list of names of overlap metrics the report should + // include. OverlapMetricNames []string `json:"overlapMetricNames,omitempty"` - // Pivoted: Whether the report is pivoted or not. Defaults to true. Pivoted bool `json:"pivoted,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCrossDimensionReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportDelivery: The report's email delivery settings. type ReportDelivery struct { // EmailOwner: Whether the report should be emailed to the report owner. EmailOwner bool `json:"emailOwner,omitempty"` - - // EmailOwnerDeliveryType: The type of delivery for the owner to - // receive, if enabled. + // EmailOwnerDeliveryType: The type of delivery for the owner to receive, if + // enabled. // // Possible values: // "ATTACHMENT" // "LINK" EmailOwnerDeliveryType string `json:"emailOwnerDeliveryType,omitempty"` - // Message: The message to be sent with each email. Message string `json:"message,omitempty"` - // Recipients: The list of recipients to which to email the report. Recipients []*Recipient `json:"recipients,omitempty"` - // ForceSendFields is a list of field names (e.g. "EmailOwner") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EmailOwner") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EmailOwner") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportDelivery) MarshalJSON() ([]byte, error) { +func (s ReportDelivery) MarshalJSON() ([]byte, error) { type NoMethod ReportDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportFloodlightCriteria: The report criteria for a report of type // "FLOODLIGHT". type ReportFloodlightCriteria struct { - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportFloodlightCriteriaReportProperties `json:"reportProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomRichMediaEvents") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomRichMediaEvents") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomRichMediaEvents") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportFloodlightCriteriaReportProperties: The properties of the -// report. +// ReportFloodlightCriteriaReportProperties: The properties of the report. type ReportFloodlightCriteriaReportProperties struct { - // IncludeAttributedIPConversions: Include conversions that have no - // cookie, but do have an exposure path. + // IncludeAttributedIPConversions: Include conversions that have no cookie, but + // do have an exposure path. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // ForceSendFields is a list of field names (e.g. // "IncludeAttributedIPConversions") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "IncludeAttributedIPConversions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "IncludeAttributedIPConversions") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportPathToConversionCriteria: The report criteria for a report of -// type "PATH_TO_CONVERSION". +// ReportPathToConversionCriteria: The report criteria for a report of type +// "PATH_TO_CONVERSION". type ReportPathToConversionCriteria struct { // ActivityFilters: The list of 'dfa:activity' values to filter on. ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - - // ConversionDimensions: The list of conversion dimensions the report - // should include. + // ConversionDimensions: The list of conversion dimensions the report should + // include. ConversionDimensions []*SortedDimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: The list of custom floodlight variables - // the report should include. + // CustomFloodlightVariables: The list of custom floodlight variables the + // report should include. CustomFloodlightVariables []*SortedDimension `json:"customFloodlightVariables,omitempty"` - - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // PerInteractionDimensions: The list of per interaction dimensions the - // report should include. + // PerInteractionDimensions: The list of per interaction dimensions the report + // should include. PerInteractionDimensions []*SortedDimension `json:"perInteractionDimensions,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportPathToConversionCriteriaReportProperties `json:"reportProperties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActivityFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActivityFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActivityFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportPathToConversionCriteriaReportProperties: The properties of the // report. type ReportPathToConversionCriteriaReportProperties struct { - // ClicksLookbackWindow: DFA checks to see if a click interaction - // occurred within the specified period of time before a conversion. By - // default the value is pulled from Floodlight or you can manually enter - // a custom value. Valid values: 1-90. + // ClicksLookbackWindow: DFA checks to see if a click interaction occurred + // within the specified period of time before a conversion. By default the + // value is pulled from Floodlight or you can manually enter a custom value. + // Valid values: 1-90. ClicksLookbackWindow int64 `json:"clicksLookbackWindow,omitempty"` - - // ImpressionsLookbackWindow: DFA checks to see if an impression - // interaction occurred within the specified period of time before a - // conversion. By default the value is pulled from Floodlight or you can - // manually enter a custom value. Valid values: 1-90. + // ImpressionsLookbackWindow: DFA checks to see if an impression interaction + // occurred within the specified period of time before a conversion. By default + // the value is pulled from Floodlight or you can manually enter a custom + // value. Valid values: 1-90. ImpressionsLookbackWindow int64 `json:"impressionsLookbackWindow,omitempty"` - // IncludeAttributedIPConversions: Deprecated: has no effect. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // MaximumClickInteractions: The maximum number of click interactions to - // include in the report. Advertisers currently paying for E2C reports - // get up to 200 (100 clicks, 100 impressions). If another advertiser in - // your network is paying for E2C, you can have up to 5 total exposures - // per report. + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumClickInteractions int64 `json:"maximumClickInteractions,omitempty"` - - // MaximumImpressionInteractions: The maximum number of click - // interactions to include in the report. Advertisers currently paying - // for E2C reports get up to 200 (100 clicks, 100 impressions). If - // another advertiser in your network is paying for E2C, you can have up - // to 5 total exposures per report. + // MaximumImpressionInteractions: The maximum number of click interactions to + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumImpressionInteractions int64 `json:"maximumImpressionInteractions,omitempty"` - // MaximumInteractionGap: The maximum amount of time that can take place - // between interactions (clicks or impressions) by the same user. Valid - // values: 1-90. + // between interactions (clicks or impressions) by the same user. Valid values: + // 1-90. MaximumInteractionGap int64 `json:"maximumInteractionGap,omitempty"` - // PivotOnInteractionPath: Enable pivoting on interaction path. PivotOnInteractionPath bool `json:"pivotOnInteractionPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClicksLookbackWindow") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClicksLookbackWindow") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportReachCriteria: The report criteria for a report of type -// "REACH". +// ReportReachCriteria: The report criteria for a report of type "REACH". type ReportReachCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // DimensionFilters: The list of filters on which dimensions are // filtered. - // Filters for different dimensions are ANDed, filters for the same - // dimension are grouped together and ORed. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // EnableAllDimensionCombinations: Whether to enable all reach dimension - // combinations in the report. Defaults to false. If enabled, the date - // range of the report should be within the last 42 days. + // combinations in the report. Defaults to false. If enabled, the date range of + // the report should be within the last 42 days. EnableAllDimensionCombinations bool `json:"enableAllDimensionCombinations,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ReachByFrequencyMetricNames: The list of names of Reach By Frequency // metrics the report should include. ReachByFrequencyMetricNames []string `json:"reachByFrequencyMetricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportSchedule: The report's schedule. Can only be set if the -// report's 'dateRange' is a relative date range and the relative date -// range is not "TODAY". +// ReportSchedule: The report's schedule. Can only be set if the report's +// 'dateRange' is a relative date range and the relative date range is not +// "TODAY". type ReportSchedule struct { - // Active: Whether the schedule is active or not. Must be set to either - // true or false. + // Active: Whether the schedule is active or not. Must be set to either true or + // false. Active bool `json:"active,omitempty"` - - // Every: Defines every how many days, weeks or months the report should - // be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or + // Every: Defines every how many days, weeks or months the report should be + // run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or // "MONTHLY". Every int64 `json:"every,omitempty"` - - // ExpirationDate: The expiration date when the scheduled report stops - // running. + // ExpirationDate: The expiration date when the scheduled report stops running. ExpirationDate string `json:"expirationDate,omitempty"` - // Repeats: The interval for which the report is repeated. Note: // - "DAILY" also requires field "every" to be set. - // - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be - // set. - // - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be - // set. + // - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be set. + // + // - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be set. Repeats string `json:"repeats,omitempty"` - - // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled - // reports should run. + // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled reports + // should run. // // Possible values: // "FRIDAY" @@ -12106,154 +9658,120 @@ type ReportSchedule struct { // "TUESDAY" // "WEDNESDAY" RepeatsOnWeekDays []string `json:"repeatsOnWeekDays,omitempty"` - - // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports - // whether reports should be repeated on the same day of the month as - // "startDate" or the same day of the week of the month. + // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports whether + // reports should be repeated on the same day of the month as "startDate" or + // the same day of the week of the month. // Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), - // "DAY_OF_MONTH" would run subsequent reports on the 2nd of every - // Month, and "WEEK_OF_MONTH" would run subsequent reports on the first - // Monday of the month. + // "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and + // "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the + // month. // // Possible values: // "DAY_OF_MONTH" // "WEEK_OF_MONTH" RunsOnDayOfMonth string `json:"runsOnDayOfMonth,omitempty"` - - // StartDate: Start date of date range for which scheduled reports - // should be run. + // StartDate: Start date of date range for which scheduled reports should be + // run. StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportSchedule) MarshalJSON() ([]byte, error) { +func (s ReportSchedule) MarshalJSON() ([]byte, error) { type NoMethod ReportSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCompatibleFields: Represents fields that are compatible to be -// selected for a report of type "STANDARD". +// ReportCompatibleFields: Represents fields that are compatible to be selected +// for a report of type "STANDARD". type ReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportList: Represents the list of reports. type ReportList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The reports returned in this response. Items []*Report `json:"items,omitempty"` - // Kind: The kind of list this is, in this case dfareporting#reportList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through reports. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through reports. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportList) MarshalJSON() ([]byte, error) { +func (s ReportList) MarshalJSON() ([]byte, error) { type NoMethod ReportList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportsConfiguration: Reporting Configuration type ReportsConfiguration struct { - // ExposureToConversionEnabled: Whether the exposure to conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure to conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // LookbackConfiguration: Default lookback windows for new advertisers - // in this account. + // LookbackConfiguration: Default lookback windows for new advertisers in this + // account. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // ReportGenerationTimeZoneId: Report generation time zone ID of this - // account. This is a required field that can only be changed by a - // superuser. + // ReportGenerationTimeZoneId: Report generation time zone ID of this account. + // This is a required field that can only be changed by a superuser. // Acceptable values are: // // - "1" for "America/New_York" @@ -12270,30 +9788,22 @@ type ReportsConfiguration struct { // - "12" for "Pacific/Auckland" // - "13" for "America/Sao_Paulo" ReportGenerationTimeZoneId int64 `json:"reportGenerationTimeZoneId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "ExposureToConversionEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExposureToConversionEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportsConfiguration) MarshalJSON() ([]byte, error) { +func (s ReportsConfiguration) MarshalJSON() ([]byte, error) { type NoMethod ReportsConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RichMediaExitOverride: Rich Media Exit Override. @@ -12301,251 +9811,189 @@ type RichMediaExitOverride struct { // ClickThroughUrl: Click-through URL of this rich media exit override. // Applicable if the enabled field is set to true. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // Enabled: Whether to use the clickThroughUrl. If false, the - // creative-level exit will be used. + // Enabled: Whether to use the clickThroughUrl. If false, the creative-level + // exit will be used. Enabled bool `json:"enabled,omitempty"` - - // ExitId: ID for the override to refer to a specific exit in the - // creative. + // ExitId: ID for the override to refer to a specific exit in the creative. ExitId int64 `json:"exitId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RichMediaExitOverride) MarshalJSON() ([]byte, error) { +func (s RichMediaExitOverride) MarshalJSON() ([]byte, error) { type NoMethod RichMediaExitOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Rule: A rule associates an asset with a targeting template for -// asset-level targeting. Applicable to INSTREAM_VIDEO creatives. +// Rule: A rule associates an asset with a targeting template for asset-level +// targeting. Applicable to INSTREAM_VIDEO creatives. type Rule struct { - // AssetId: A creativeAssets[].id. This should refer to one of the - // parent assets in this creative. This is a required field. + // AssetId: A creativeAssets[].id. This should refer to one of the parent + // assets in this creative. This is a required field. AssetId int64 `json:"assetId,omitempty,string"` - // Name: A user-friendly name for this rule. This is a required field. Name string `json:"name,omitempty"` - // TargetingTemplateId: A targeting template ID. The targeting from the - // targeting template will be used to determine whether this asset - // should be served. This is a required field. + // targeting template will be used to determine whether this asset should be + // served. This is a required field. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AssetId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssetId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssetId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rule) MarshalJSON() ([]byte, error) { +func (s Rule) MarshalJSON() ([]byte, error) { type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Site: Contains properties of a site. type Site struct { - // AccountId: Account ID of this site. This is a read-only field that - // can be left blank. + // AccountId: Account ID of this site. This is a read-only field that can be + // left blank. AccountId int64 `json:"accountId,omitempty,string"` - // Approved: Whether this site is approved. Approved bool `json:"approved,omitempty"` - // DirectorySiteId: Directory site associated with this site. This is a // required field that is read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // Id: ID of this site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this site. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this site. This is a read-only, auto-generated - // field. + // KeyName: Key name of this site. This is a read-only, auto-generated field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#site". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#site". Kind string `json:"kind,omitempty"` - - // Name: Name of this site.This is a required field. Must be less than - // 128 characters long. If this site is under a subaccount, the name - // must be unique among sites of the same subaccount. Otherwise, this - // site is a top-level site, and the name must be unique among top-level - // sites of the same account. + // Name: Name of this site.This is a required field. Must be less than 128 + // characters long. If this site is under a subaccount, the name must be unique + // among sites of the same subaccount. Otherwise, this site is a top-level + // site, and the name must be unique among top-level sites of the same account. Name string `json:"name,omitempty"` - // SiteContacts: Site contacts. SiteContacts []*SiteContact `json:"siteContacts,omitempty"` - // SiteSettings: Site-wide settings. SiteSettings *SiteSettings `json:"siteSettings,omitempty"` - - // SubaccountId: Subaccount ID of this site. This is a read-only field - // that can be left blank. + // SubaccountId: Subaccount ID of this site. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Site) MarshalJSON() ([]byte, error) { +func (s Site) MarshalJSON() ([]byte, error) { type NoMethod Site - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteContact: Site Contact type SiteContact struct { // Address: Address of this site contact. Address string `json:"address,omitempty"` - // ContactType: Site contact type. // // Possible values: // "SALES_PERSON" // "TRAFFICKER" ContactType string `json:"contactType,omitempty"` - // Email: Email address of this site contact. This is a required field. Email string `json:"email,omitempty"` - // FirstName: First name of this site contact. FirstName string `json:"firstName,omitempty"` - - // Id: ID of this site contact. This is a read-only, auto-generated - // field. + // Id: ID of this site contact. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // LastName: Last name of this site contact. LastName string `json:"lastName,omitempty"` - // Phone: Primary phone number of this site contact. Phone string `json:"phone,omitempty"` - // Title: Title or designation of this site contact. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteContact) MarshalJSON() ([]byte, error) { +func (s SiteContact) MarshalJSON() ([]byte, error) { type NoMethod SiteContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteSettings: Site Settings type SiteSettings struct { - // ActiveViewOptOut: Whether active view creatives are disabled for this - // site. + // ActiveViewOptOut: Whether active view creatives are disabled for this site. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AdBlockingOptOut: Whether this site opts out of ad blocking. When - // true, ad blocking is disabled for all placements under the site, - // regardless of the individual placement settings. When false, the - // campaign and placement settings take effect. + // AdBlockingOptOut: Whether this site opts out of ad blocking. When true, ad + // blocking is disabled for all placements under the site, regardless of the + // individual placement settings. When false, the campaign and placement + // settings take effect. AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - // CreativeSettings: Site-wide creative settings. CreativeSettings *CreativeSettings `json:"creativeSettings,omitempty"` - // DisableNewCookie: Whether new cookies are disabled for this site. DisableNewCookie bool `json:"disableNewCookie,omitempty"` - // LookbackConfiguration: Lookback window settings for this site. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // TagSetting: Configuration settings for dynamic and image floodlight - // tags. + // TagSetting: Configuration settings for dynamic and image floodlight tags. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView - // for in-stream video creatives are disabled by default for new - // placements created under this site. This value will be used to - // populate the placement.videoActiveViewOptOut field, when no value is - // specified for the new placement. + // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView for + // in-stream video creatives are disabled by default for new placements created + // under this site. This value will be used to populate the + // placement.videoActiveViewOptOut field, when no value is specified for the + // new placement. VideoActiveViewOptOutTemplate bool `json:"videoActiveViewOptOutTemplate,omitempty"` - - // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new - // placements created under this site. This value will be used to - // populate the placements.vpaidAdapterChoice field, when no value is - // specified for the new placement. Controls which VPAID format the - // measurement adapter will use for in-stream video creatives assigned - // to the placement. The publisher's specifications will typically - // determine this setting. For VPAID creatives, the adapter format will - // match the VPAID format (HTML5 VPAID creatives use the HTML5 - // adapter). + // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new placements + // created under this site. This value will be used to populate the + // placements.vpaidAdapterChoice field, when no value is specified for the new + // placement. Controls which VPAID format the measurement adapter will use for + // in-stream video creatives assigned to the placement. The publisher's + // specifications will typically determine this setting. For VPAID creatives, + // the adapter format will match the VPAID format (HTML5 VPAID creatives use + // the HTML5 adapter). // - // Note: Flash is no longer supported. This field now defaults to HTML5 - // when the following values are provided: FLASH, BOTH. + // Note: Flash is no longer supported. This field now defaults to HTML5 when + // the following values are provided: FLASH, BOTH. // // Possible values: // "BOTH" @@ -12553,195 +10001,146 @@ type SiteSettings struct { // "FLASH" // "HTML5" VpaidAdapterChoiceTemplate string `json:"vpaidAdapterChoiceTemplate,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteSettings) MarshalJSON() ([]byte, error) { +func (s SiteSettings) MarshalJSON() ([]byte, error) { type NoMethod SiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SitesListResponse: Site List Response type SitesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Sites: Site collection. Sites []*Site `json:"sites,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SitesListResponse) MarshalJSON() ([]byte, error) { +func (s SitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Size: Represents the dimensions of ads, placements, creatives, or -// creative assets. +// Size: Represents the dimensions of ads, placements, creatives, or creative +// assets. type Size struct { - // Height: Height of this size. Acceptable values are 0 to 32767, - // inclusive. + // Height: Height of this size. Acceptable values are 0 to 32767, inclusive. Height int64 `json:"height,omitempty"` - // Iab: IAB standard size. This is a read-only, auto-generated field. Iab bool `json:"iab,omitempty"` - // Id: ID of this size. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#size". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#size". Kind string `json:"kind,omitempty"` - - // Width: Width of this size. Acceptable values are 0 to 32767, - // inclusive. + // Width: Width of this size. Acceptable values are 0 to 32767, inclusive. Width int64 `json:"width,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Size) MarshalJSON() ([]byte, error) { +func (s Size) MarshalJSON() ([]byte, error) { type NoMethod Size - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SizesListResponse: Size List Response type SizesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sizesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sizesListResponse". Kind string `json:"kind,omitempty"` - // Sizes: Size collection. Sizes []*Size `json:"sizes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SizesListResponse) MarshalJSON() ([]byte, error) { +func (s SizesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SizesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SkippableSetting: Skippable Settings type SkippableSetting struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#skippableSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#skippableSetting". Kind string `json:"kind,omitempty"` - - // ProgressOffset: Amount of time to play videos served to this - // placement before counting a view. Applicable when skippable is true. + // ProgressOffset: Amount of time to play videos served to this placement + // before counting a view. Applicable when skippable is true. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // SkipOffset: Amount of time to play videos served to this placement - // before the skip button should appear. Applicable when skippable is - // true. + // SkipOffset: Amount of time to play videos served to this placement before + // the skip button should appear. Applicable when skippable is true. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can skip creatives served to this - // placement. + // Skippable: Whether the user can skip creatives served to this placement. Skippable bool `json:"skippable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SkippableSetting) MarshalJSON() ([]byte, error) { +func (s SkippableSetting) MarshalJSON() ([]byte, error) { type NoMethod SkippableSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SortedDimension: Represents a sorted dimension. @@ -12749,38 +10148,30 @@ type SortedDimension struct { // Kind: The kind of resource this is, in this case // dfareporting#sortedDimension. Kind string `json:"kind,omitempty"` - // Name: The name of the dimension. Name string `json:"name,omitempty"` - // SortOrder: An optional sort order for the dimension column. // // Possible values: // "ASCENDING" // "DESCENDING" SortOrder string `json:"sortOrder,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SortedDimension) MarshalJSON() ([]byte, error) { +func (s SortedDimension) MarshalJSON() ([]byte, error) { type NoMethod SortedDimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Subaccount: Contains properties of a Campaign Manager subaccount. @@ -12788,103 +10179,78 @@ type Subaccount struct { // AccountId: ID of the account that contains this subaccount. This is a // read-only field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AvailablePermissionIds: IDs of the available user role permissions - // for this subaccount. + // AvailablePermissionIds: IDs of the available user role permissions for this + // subaccount. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // Id: ID of this subaccount. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccount". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccount". Kind string `json:"kind,omitempty"` - - // Name: Name of this subaccount. This is a required field. Must be less - // than 128 characters long and be unique among subaccounts of the same - // account. + // Name: Name of this subaccount. This is a required field. Must be less than + // 128 characters long and be unique among subaccounts of the same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Subaccount) MarshalJSON() ([]byte, error) { +func (s Subaccount) MarshalJSON() ([]byte, error) { type NoMethod Subaccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SubaccountsListResponse: Subaccount List Response type SubaccountsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Subaccounts: Subaccount collection. Subaccounts []*Subaccount `json:"subaccounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubaccountsListResponse) MarshalJSON() ([]byte, error) { +func (s SubaccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod SubaccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagData: Placement Tag Data type TagData struct { - // AdId: Ad associated with this placement tag. Applicable only when - // format is PLACEMENT_TAG_TRACKING. + // AdId: Ad associated with this placement tag. Applicable only when format is + // PLACEMENT_TAG_TRACKING. AdId int64 `json:"adId,omitempty,string"` - // ClickTag: Tag string to record a click. ClickTag string `json:"clickTag,omitempty"` - - // CreativeId: Creative associated with this placement tag. Applicable - // only when format is PLACEMENT_TAG_TRACKING. + // CreativeId: Creative associated with this placement tag. Applicable only + // when format is PLACEMENT_TAG_TRACKING. CreativeId int64 `json:"creativeId,omitempty,string"` - // Format: TagData tag format of this tag. // // Possible values: @@ -12908,196 +10274,152 @@ type TagData struct { // "PLACEMENT_TAG_TRACKING_IFRAME" // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" Format string `json:"format,omitempty"` - // ImpressionTag: Tag string for serving an ad. ImpressionTag string `json:"impressionTag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdId") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagData) MarshalJSON() ([]byte, error) { +func (s TagData) MarshalJSON() ([]byte, error) { type NoMethod TagData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSetting: Tag Settings type TagSetting struct { - // AdditionalKeyValues: Additional key-values to be included in tags. - // Each key-value pair must be of the form key=value, and pairs must be - // separated by a semicolon (;). Keys and values must not contain - // commas. For example, id=2;color=red is a valid value for this field. + // AdditionalKeyValues: Additional key-values to be included in tags. Each + // key-value pair must be of the form key=value, and pairs must be separated by + // a semicolon (;). Keys and values must not contain commas. For example, + // id=2;color=red is a valid value for this field. AdditionalKeyValues string `json:"additionalKeyValues,omitempty"` - - // IncludeClickThroughUrls: Whether static landing page URLs should be - // included in the tags. This setting applies only to placements. + // IncludeClickThroughUrls: Whether static landing page URLs should be included + // in the tags. This setting applies only to placements. IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"` - - // IncludeClickTracking: Whether click-tracking string should be - // included in the tags. + // IncludeClickTracking: Whether click-tracking string should be included in + // the tags. IncludeClickTracking bool `json:"includeClickTracking,omitempty"` - - // KeywordOption: Option specifying how keywords are embedded in ad - // tags. This setting can be used to specify whether keyword - // placeholders are inserted in placement tags for this site. Publishers - // can then add keywords to those placeholders. + // KeywordOption: Option specifying how keywords are embedded in ad tags. This + // setting can be used to specify whether keyword placeholders are inserted in + // placement tags for this site. Publishers can then add keywords to those + // placeholders. // // Possible values: // "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" // "IGNORE" // "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" KeywordOption string `json:"keywordOption,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalKeyValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalKeyValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSetting) MarshalJSON() ([]byte, error) { +func (s TagSetting) MarshalJSON() ([]byte, error) { type NoMethod TagSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSettings: Dynamic and Image Tag Settings. type TagSettings struct { // DynamicTagEnabled: Whether dynamic floodlight tags are enabled. DynamicTagEnabled bool `json:"dynamicTagEnabled,omitempty"` - // ImageTagEnabled: Whether image tags are enabled. ImageTagEnabled bool `json:"imageTagEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTagEnabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTagEnabled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSettings) MarshalJSON() ([]byte, error) { +func (s TagSettings) MarshalJSON() ([]byte, error) { type NoMethod TagSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetWindow: Target Window. type TargetWindow struct { // CustomHtml: User-entered value. CustomHtml string `json:"customHtml,omitempty"` - - // TargetWindowOption: Type of browser window for which the backup image - // of the flash creative can be displayed. + // TargetWindowOption: Type of browser window for which the backup image of the + // flash creative can be displayed. // // Possible values: // "CURRENT_WINDOW" // "CUSTOM" // "NEW_WINDOW" TargetWindowOption string `json:"targetWindowOption,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomHtml") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomHtml") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomHtml") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetWindow) MarshalJSON() ([]byte, error) { +func (s TargetWindow) MarshalJSON() ([]byte, error) { type NoMethod TargetWindow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetableRemarketingList: Contains properties of a targetable -// remarketing list. Remarketing enables you to create lists of users -// who have performed specific actions on a site, then target ads to -// members of those lists. This resource is a read-only view of a -// remarketing list to be used to faciliate targeting ads to specific -// lists. Remarketing lists that are owned by your advertisers and those -// that are shared to your advertisers or account are accessible via -// this resource. To manage remarketing lists that are owned by your -// advertisers, use the RemarketingLists resource. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TargetableRemarketingList: Contains properties of a targetable remarketing +// list. Remarketing enables you to create lists of users who have performed +// specific actions on a site, then target ads to members of those lists. This +// resource is a read-only view of a remarketing list to be used to faciliate +// targeting ads to specific lists. Remarketing lists that are owned by your +// advertisers and those that are shared to your advertisers or account are +// accessible via this resource. To manage remarketing lists that are owned by +// your advertisers, use the RemarketingLists resource. type TargetableRemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this targetable remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // targetable remarketing list. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Targetable remarketing list description. Description string `json:"description,omitempty"` - // Id: Targetable remarketing list ID. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingList". Kind string `json:"kind,omitempty"` - // LifeSpan: Number of days that a user should remain in the targetable // remarketing list without an impression. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this targetable remarketing list was // originated. // @@ -13114,304 +10436,231 @@ type TargetableRemarketingList struct { // "REMARKETING_LIST_SOURCE_XFP" // "REMARKETING_LIST_SOURCE_YOUTUBE" ListSource string `json:"listSource,omitempty"` - // Name: Name of the targetable remarketing list. Is no greater than 128 // characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingList) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingList) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetableRemarketingListsListResponse: Targetable remarketing list -// response +// TargetableRemarketingListsListResponse: Targetable remarketing list response type TargetableRemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetableRemarketingLists: Targetable remarketing list collection. TargetableRemarketingLists []*TargetableRemarketingList `json:"targetableRemarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetingTemplate: Contains properties of a targeting template. A -// targeting template encapsulates targeting information which can be -// reused across multiple ads. +// TargetingTemplate: Contains properties of a targeting template. A targeting +// template encapsulates targeting information which can be reused across +// multiple ads. type TargetingTemplate struct { - // AccountId: Account ID of this targeting template. This field, if left - // unset, will be auto-generated on insert and is read-only after - // insert. + // AccountId: Account ID of this targeting template. This field, if left unset, + // will be auto-generated on insert and is read-only after insert. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this targeting template. This is a - // required field on insert and is read-only after insert. + // AdvertiserId: Advertiser ID of this targeting template. This is a required + // field on insert and is read-only after insert. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // DayPartTargeting: Time and day targeting criteria. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - // GeoTargeting: Geographical targeting criteria. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - - // Id: ID of this targeting template. This is a read-only, - // auto-generated field. + // Id: ID of this targeting template. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // KeyValueTargetingExpression: Key-value targeting criteria. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplate". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplate". Kind string `json:"kind,omitempty"` - // LanguageTargeting: Language targeting criteria. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - // ListTargetingExpression: Remarketing list targeting criteria. ListTargetingExpression *ListTargetingExpression `json:"listTargetingExpression,omitempty"` - - // Name: Name of this targeting template. This field is required. It - // must be less than 256 characters long and unique within an - // advertiser. + // Name: Name of this targeting template. This field is required. It must be + // less than 256 characters long and unique within an advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this targeting template. This field, - // if left unset, will be auto-generated on insert and is read-only - // after insert. + // SubaccountId: Subaccount ID of this targeting template. This field, if left + // unset, will be auto-generated on insert and is read-only after insert. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TechnologyTargeting: Technology platform targeting criteria. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplate) MarshalJSON() ([]byte, error) { +func (s TargetingTemplate) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetingTemplatesListResponse: Targeting Template List Response type TargetingTemplatesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplatesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplatesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetingTemplates: Targeting template collection. TargetingTemplates []*TargetingTemplate `json:"targetingTemplates,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { +func (s TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplatesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TechnologyTargeting: Technology Targeting. type TechnologyTargeting struct { // Browsers: Browsers that this ad targets. For each browser either set - // browserVersionId or dartId along with the version numbers. If both - // are specified, only browserVersionId will be used. The other fields - // are populated automatically when the ad is inserted or updated. + // browserVersionId or dartId along with the version numbers. If both are + // specified, only browserVersionId will be used. The other fields are + // populated automatically when the ad is inserted or updated. Browsers []*Browser `json:"browsers,omitempty"` - - // ConnectionTypes: Connection types that this ad targets. For each - // connection type only id is required. The other fields are populated - // automatically when the ad is inserted or updated. + // ConnectionTypes: Connection types that this ad targets. For each connection + // type only id is required. The other fields are populated automatically when + // the ad is inserted or updated. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - // MobileCarriers: Mobile carriers that this ad targets. For each mobile // carrier only id is required, and the other fields are populated - // automatically when the ad is inserted or updated. If targeting a - // mobile carrier, do not set targeting for any zip codes. + // automatically when the ad is inserted or updated. If targeting a mobile + // carrier, do not set targeting for any zip codes. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - - // OperatingSystemVersions: Operating system versions that this ad - // targets. To target all versions, use operatingSystems. For each - // operating system version, only id is required. The other fields are - // populated automatically when the ad is inserted or updated. If - // targeting an operating system version, do not set targeting for the - // corresponding operating system in operatingSystems. + // OperatingSystemVersions: Operating system versions that this ad targets. To + // target all versions, use operatingSystems. For each operating system + // version, only id is required. The other fields are populated automatically + // when the ad is inserted or updated. If targeting an operating system + // version, do not set targeting for the corresponding operating system in + // operatingSystems. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - - // OperatingSystems: Operating systems that this ad targets. To target - // specific versions, use operatingSystemVersions. For each operating - // system only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting an - // operating system, do not set targeting for operating system versions - // for the same operating system. + // OperatingSystems: Operating systems that this ad targets. To target specific + // versions, use operatingSystemVersions. For each operating system only dartId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting an operating system, do not set targeting + // for operating system versions for the same operating system. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - - // PlatformTypes: Platform types that this ad targets. For example, - // desktop, mobile, or tablet. For each platform type, only id is - // required, and the other fields are populated automatically when the - // ad is inserted or updated. + // PlatformTypes: Platform types that this ad targets. For example, desktop, + // mobile, or tablet. For each platform type, only id is required, and the + // other fields are populated automatically when the ad is inserted or updated. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TechnologyTargeting) MarshalJSON() ([]byte, error) { +func (s TechnologyTargeting) MarshalJSON() ([]byte, error) { type NoMethod TechnologyTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyAuthenticationToken: Third Party Authentication Token type ThirdPartyAuthenticationToken struct { // Name: Name of the third-party authentication token. Name string `json:"name,omitempty"` - - // Value: Value of the third-party authentication token. This is a - // read-only, auto-generated field. + // Value: Value of the third-party authentication token. This is a read-only, + // auto-generated field. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { +func (s ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyAuthenticationToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyTrackingUrl: Third-party Tracking URL. type ThirdPartyTrackingUrl struct { - // ThirdPartyUrlType: Third-party URL type for in-stream video and - // in-stream audio creatives. + // ThirdPartyUrlType: Third-party URL type for in-stream video and in-stream + // audio creatives. // // Possible values: // "CLICK_TRACKING" @@ -13434,32 +10683,24 @@ type ThirdPartyTrackingUrl struct { // "VIDEO_STOP" // "VIDEO_THIRD_QUARTILE" ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"` - // Url: URL for the specified third-party URL type. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { +func (s ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyTrackingUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TranscodeSetting: Transcode Settings @@ -13467,38 +10708,29 @@ type TranscodeSetting struct { // EnabledVideoFormats: Whitelist of video formats to be served to this // placement. Set this list to null or empty to serve all video formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#transcodeSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#transcodeSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnabledVideoFormats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnabledVideoFormats") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TranscodeSetting) MarshalJSON() ([]byte, error) { +func (s TranscodeSetting) MarshalJSON() ([]byte, error) { type NoMethod TranscodeSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable -// to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and -// VPAID. +// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the +// following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID. type UniversalAdId struct { // Registry: Registry used for the Ad ID value. // @@ -13508,37 +10740,29 @@ type UniversalAdId struct { // "DCM" // "OTHER" Registry string `json:"registry,omitempty"` - - // Value: ID value for this creative. Only alphanumeric characters and - // the following symbols are valid: "_/\-". Maximum length is 64 - // characters. Read only when registry is DCM. + // Value: ID value for this creative. Only alphanumeric characters and the + // following symbols are valid: "_/\-". Maximum length is 64 characters. Read + // only when registry is DCM. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Registry") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Registry") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Registry") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UniversalAdId) MarshalJSON() ([]byte, error) { +func (s UniversalAdId) MarshalJSON() ([]byte, error) { type NoMethod UniversalAdId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserDefinedVariableConfiguration: User Defined Variable -// configuration. +// UserDefinedVariableConfiguration: User Defined Variable configuration. type UserDefinedVariableConfiguration struct { // DataType: Data type for the variable. This is a required field. // @@ -13546,12 +10770,10 @@ type UserDefinedVariableConfiguration struct { // "NUMBER" // "STRING" DataType string `json:"dataType,omitempty"` - // ReportName: User-friendly name for the variable which will appear in - // reports. This is a required field, must be less than 64 characters - // long, and cannot contain the following characters: ""<>". + // reports. This is a required field, must be less than 64 characters long, and + // cannot contain the following characters: ""<>". ReportName string `json:"reportName,omitempty"` - // VariableType: Variable name in the tag. This is a required field. // // Possible values: @@ -13656,188 +10878,141 @@ type UserDefinedVariableConfiguration struct { // "U98" // "U99" VariableType string `json:"variableType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { +func (s UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { type NoMethod UserDefinedVariableConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfile: Represents a UserProfile resource. type UserProfile struct { // AccountId: The account ID to which this profile belongs. AccountId int64 `json:"accountId,omitempty,string"` - // AccountName: The account name this profile belongs to. AccountName string `json:"accountName,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#userProfile. + // Kind: The kind of resource this is, in this case dfareporting#userProfile. Kind string `json:"kind,omitempty"` - // ProfileId: The unique ID of the user profile. ProfileId int64 `json:"profileId,omitempty,string"` - - // SubAccountId: The sub account ID this profile belongs to if - // applicable. + // SubAccountId: The sub account ID this profile belongs to if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - - // SubAccountName: The sub account name this profile belongs to if - // applicable. + // SubAccountName: The sub account name this profile belongs to if applicable. SubAccountName string `json:"subAccountName,omitempty"` - // UserName: The user name. UserName string `json:"userName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfile) MarshalJSON() ([]byte, error) { +func (s UserProfile) MarshalJSON() ([]byte, error) { type NoMethod UserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfileList: Represents the list of user profiles. type UserProfileList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The user profiles returned in this response. Items []*UserProfile `json:"items,omitempty"` - - // Kind: The kind of list this is, in this case - // dfareporting#userProfileList. + // Kind: The kind of list this is, in this case dfareporting#userProfileList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfileList) MarshalJSON() ([]byte, error) { +func (s UserProfileList) MarshalJSON() ([]byte, error) { type NoMethod UserProfileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserRole: Contains properties of auser role, which is used to manage -// user access. +// UserRole: Contains properties of auser role, which is used to manage user +// access. type UserRole struct { - // AccountId: Account ID of this user role. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this user role. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // DefaultUserRole: Whether this is a default user role. Default user - // roles are created by the system for the account/subaccount and cannot - // be modified or deleted. Each default user role comes with a basic set - // of preassigned permissions. + // DefaultUserRole: Whether this is a default user role. Default user roles are + // created by the system for the account/subaccount and cannot be modified or + // deleted. Each default user role comes with a basic set of preassigned + // permissions. DefaultUserRole bool `json:"defaultUserRole,omitempty"` - // Id: ID of this user role. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRole". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRole". Kind string `json:"kind,omitempty"` - - // Name: Name of this user role. This is a required field. Must be less - // than 256 characters long. If this user role is under a subaccount, - // the name must be unique among sites of the same subaccount. - // Otherwise, this user role is a top-level user role, and the name must - // be unique among top-level user roles of the same account. + // Name: Name of this user role. This is a required field. Must be less than + // 256 characters long. If this user role is under a subaccount, the name must + // be unique among sites of the same subaccount. Otherwise, this user role is a + // top-level user role, and the name must be unique among top-level user roles + // of the same account. Name string `json:"name,omitempty"` - - // ParentUserRoleId: ID of the user role that this user role is based on - // or copied from. This is a required field. + // ParentUserRoleId: ID of the user role that this user role is based on or + // copied from. This is a required field. ParentUserRoleId int64 `json:"parentUserRoleId,omitempty,string"` - // Permissions: List of permissions associated with this user role. Permissions []*UserRolePermission `json:"permissions,omitempty"` - - // SubaccountId: Subaccount ID of this user role. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this user role. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRole) MarshalJSON() ([]byte, error) { +func (s UserRole) MarshalJSON() ([]byte, error) { type NoMethod UserRole - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermission: Contains properties of a user role permission. @@ -13851,46 +11026,35 @@ type UserRolePermission struct { // "SUBACCOUNT_AND_ACCOUNT_ALWAYS" // "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" Availability string `json:"availability,omitempty"` - // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermission". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission. Name string `json:"name,omitempty"` - - // PermissionGroupId: ID of the permission group that this user role - // permission belongs to. + // PermissionGroupId: ID of the permission group that this user role permission + // belongs to. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Availability") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Availability") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Availability") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermission) MarshalJSON() ([]byte, error) { +func (s UserRolePermission) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroup: Represents a grouping of related user role @@ -13898,152 +11062,117 @@ func (s *UserRolePermission) MarshalJSON() ([]byte, error) { type UserRolePermissionGroup struct { // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroup) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroupsListResponse: User Role Permission Group List // Response type UserRolePermissionGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissionGroups: User role permission group collection. UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionsListResponse: User Role Permission List Response type UserRolePermissionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissions: User role permission collection. UserRolePermissions []*UserRolePermission `json:"userRolePermissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolesListResponse: User Role List Response type UserRolesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // UserRoles: User role collection. UserRoles []*UserRole `json:"userRoles,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolesListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolesListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormat: Contains information about supported video formats. @@ -14057,128 +11186,98 @@ type VideoFormat struct { // "THREEGPP" // "WEBM" FileType string `json:"fileType,omitempty"` - // Id: ID of the video format. Id int64 `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormat". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormat". Kind string `json:"kind,omitempty"` - // Resolution: The resolution of this video format. Resolution *Size `json:"resolution,omitempty"` - // TargetBitRate: The target bit rate of this video format. TargetBitRate int64 `json:"targetBitRate,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "FileType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormat) MarshalJSON() ([]byte, error) { +func (s VideoFormat) MarshalJSON() ([]byte, error) { type NoMethod VideoFormat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormatsListResponse: Video Format List Response type VideoFormatsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormatsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormatsListResponse". Kind string `json:"kind,omitempty"` - // VideoFormats: Video format collection. VideoFormats []*VideoFormat `json:"videoFormats,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormatsListResponse) MarshalJSON() ([]byte, error) { +func (s VideoFormatsListResponse) MarshalJSON() ([]byte, error) { type NoMethod VideoFormatsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoOffset: Video Offset type VideoOffset struct { - // OffsetPercentage: Duration, as a percentage of video duration. Do not - // set when offsetSeconds is set. Acceptable values are 0 to 100, - // inclusive. + // OffsetPercentage: Duration, as a percentage of video duration. Do not set + // when offsetSeconds is set. Acceptable values are 0 to 100, inclusive. OffsetPercentage int64 `json:"offsetPercentage,omitempty"` - - // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage - // is set. Acceptable values are 0 to 86399, inclusive. + // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage is + // set. Acceptable values are 0 to 86399, inclusive. OffsetSeconds int64 `json:"offsetSeconds,omitempty"` - // ForceSendFields is a list of field names (e.g. "OffsetPercentage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OffsetPercentage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OffsetPercentage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoOffset) MarshalJSON() ([]byte, error) { +func (s VideoOffset) MarshalJSON() ([]byte, error) { type NoMethod VideoOffset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoSettings: Video Settings type VideoSettings struct { - // CompanionSettings: Settings for the companion creatives of video - // creatives served to this placement. + // CompanionSettings: Settings for the companion creatives of video creatives + // served to this placement. CompanionSettings *CompanionSetting `json:"companionSettings,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoSettings". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoSettings". Kind string `json:"kind,omitempty"` - // Orientation: Orientation of a video placement. If this value is set, // placement will return assets matching the specified orientation. // @@ -14187,43 +11286,32 @@ type VideoSettings struct { // "LANDSCAPE" // "PORTRAIT" Orientation string `json:"orientation,omitempty"` - - // SkippableSettings: Settings for the skippability of video creatives - // served to this placement. If this object is provided, the - // creative-level skippable settings will be overridden. + // SkippableSettings: Settings for the skippability of video creatives served + // to this placement. If this object is provided, the creative-level skippable + // settings will be overridden. SkippableSettings *SkippableSetting `json:"skippableSettings,omitempty"` - - // TranscodeSettings: Settings for the transcodes of video creatives - // served to this placement. If this object is provided, the - // creative-level transcode settings will be overridden. + // TranscodeSettings: Settings for the transcodes of video creatives served to + // this placement. If this object is provided, the creative-level transcode + // settings will be overridden. TranscodeSettings *TranscodeSetting `json:"transcodeSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionSettings") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionSettings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionSettings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoSettings) MarshalJSON() ([]byte, error) { +func (s VideoSettings) MarshalJSON() ([]byte, error) { type NoMethod VideoSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "dfareporting.accountActiveAdSummaries.get": - type AccountActiveAdSummariesGetCall struct { s *Service profileId int64 @@ -14235,6 +11323,9 @@ type AccountActiveAdSummariesGetCall struct { } // Get: Gets the account's active ad summary by account ID. +// +// - profileId: User profile ID associated with this request. +// - summaryAccountId: Account ID. func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId int64) *AccountActiveAdSummariesGetCall { c := &AccountActiveAdSummariesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14243,33 +11334,29 @@ func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountActiveAdSummariesGetCall) Fields(s ...googleapi.Field) *AccountActiveAdSummariesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountActiveAdSummariesGetCall) IfNoneMatch(entityTag string) *AccountActiveAdSummariesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountActiveAdSummariesGetCall) Context(ctx context.Context) *AccountActiveAdSummariesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountActiveAdSummariesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14278,12 +11365,7 @@ func (c *AccountActiveAdSummariesGetCall) Header() http.Header { } func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14301,16 +11383,15 @@ func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "summaryAccountId": strconv.FormatInt(c.summaryAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountActiveAdSummaries.get" call. -// Exactly one of *AccountActiveAdSummary or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountActiveAdSummary.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountActiveAdSummary.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*AccountActiveAdSummary, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14318,17 +11399,17 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountActiveAdSummary{ ServerResponse: googleapi.ServerResponse{ @@ -14341,42 +11422,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Gets the account's active ad summary by account ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountActiveAdSummaries.get", - // "parameterOrder": [ - // "profileId", - // "summaryAccountId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "summaryAccountId": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - // "response": { - // "$ref": "AccountActiveAdSummary" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.get": +} type AccountPermissionGroupsGetCall struct { s *Service @@ -14389,6 +11435,9 @@ type AccountPermissionGroupsGetCall struct { } // Get: Gets one account permission group by ID. +// +// - id: Account permission group ID. +// - profileId: User profile ID associated with this request. func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *AccountPermissionGroupsGetCall { c := &AccountPermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14397,33 +11446,29 @@ func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *Account } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsGetCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsGetCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsGetCall) Context(ctx context.Context) *AccountPermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14432,12 +11477,7 @@ func (c *AccountPermissionGroupsGetCall) Header() http.Header { } func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14455,16 +11495,15 @@ func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.get" call. -// Exactly one of *AccountPermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermissionGroup.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroup.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14472,17 +11511,17 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -14495,42 +11534,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco return nil, err } return ret, nil - // { - // "description": "Gets one account permission group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", - // "response": { - // "$ref": "AccountPermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.list": +} type AccountPermissionGroupsListCall struct { s *Service @@ -14542,6 +11546,8 @@ type AccountPermissionGroupsListCall struct { } // List: Retrieves the list of account permission groups. +// +// - profileId: User profile ID associated with this request. func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissionGroupsListCall { c := &AccountPermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14549,33 +11555,29 @@ func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsListCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsListCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsListCall) Context(ctx context.Context) *AccountPermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14584,12 +11586,7 @@ func (c *AccountPermissionGroupsListCall) Header() http.Header { } func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14606,17 +11603,15 @@ func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.list" call. -// Exactly one of *AccountPermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroupsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14624,17 +11619,17 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14647,34 +11642,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permission groups.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups", - // "response": { - // "$ref": "AccountPermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.get": +} type AccountPermissionsGetCall struct { s *Service @@ -14687,6 +11655,9 @@ type AccountPermissionsGetCall struct { } // Get: Gets one account permission by ID. +// +// - id: Account permission ID. +// - profileId: User profile ID associated with this request. func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermissionsGetCall { c := &AccountPermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14695,33 +11666,29 @@ func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsGetCall) Fields(s ...googleapi.Field) *AccountPermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsGetCall) IfNoneMatch(entityTag string) *AccountPermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsGetCall) Context(ctx context.Context) *AccountPermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14730,12 +11697,7 @@ func (c *AccountPermissionsGetCall) Header() http.Header { } func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14753,16 +11715,15 @@ func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.get" call. -// Exactly one of *AccountPermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14770,17 +11731,17 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermission{ ServerResponse: googleapi.ServerResponse{ @@ -14793,42 +11754,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe return nil, err } return ret, nil - // { - // "description": "Gets one account permission by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions/{id}", - // "response": { - // "$ref": "AccountPermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.list": +} type AccountPermissionsListCall struct { s *Service @@ -14840,6 +11766,8 @@ type AccountPermissionsListCall struct { } // List: Retrieves the list of account permissions. +// +// - profileId: User profile ID associated with this request. func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsListCall { c := &AccountPermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14847,33 +11775,29 @@ func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsListCall) Fields(s ...googleapi.Field) *AccountPermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsListCall) IfNoneMatch(entityTag string) *AccountPermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsListCall) Context(ctx context.Context) *AccountPermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14882,12 +11806,7 @@ func (c *AccountPermissionsListCall) Header() http.Header { } func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14904,16 +11823,15 @@ func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.list" call. -// Exactly one of *AccountPermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14921,17 +11839,17 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14944,34 +11862,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permissions.", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions", - // "response": { - // "$ref": "AccountPermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.get": +} type AccountUserProfilesGetCall struct { s *Service @@ -14984,6 +11875,9 @@ type AccountUserProfilesGetCall struct { } // Get: Gets one account user profile by ID. +// +// - id: User profile ID. +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUserProfilesGetCall { c := &AccountUserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -14992,33 +11886,29 @@ func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUser } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesGetCall) Fields(s ...googleapi.Field) *AccountUserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesGetCall) IfNoneMatch(entityTag string) *AccountUserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesGetCall) Context(ctx context.Context) *AccountUserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15027,12 +11917,7 @@ func (c *AccountUserProfilesGetCall) Header() http.Header { } func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15050,16 +11935,15 @@ func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.get" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15067,17 +11951,17 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15090,42 +11974,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU return nil, err } return ret, nil - // { - // "description": "Gets one account user profile by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles/{id}", - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.insert": +} type AccountUserProfilesInsertCall struct { s *Service @@ -15137,6 +11986,8 @@ type AccountUserProfilesInsertCall struct { } // Insert: Inserts a new account user profile. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesInsertCall { c := &AccountUserProfilesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15145,23 +11996,21 @@ func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesInsertCall) Fields(s ...googleapi.Field) *AccountUserProfilesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesInsertCall) Context(ctx context.Context) *AccountUserProfilesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15170,18 +12019,12 @@ func (c *AccountUserProfilesInsertCall) Header() http.Header { } func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15194,16 +12037,15 @@ func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.insert" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15211,17 +12053,17 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15234,37 +12076,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Inserts a new account user profile.", - // "httpMethod": "POST", - // "id": "dfareporting.accountUserProfiles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.list": +} type AccountUserProfilesListCall struct { s *Service @@ -15275,8 +12087,10 @@ type AccountUserProfilesListCall struct { header_ http.Header } -// List: Retrieves a list of account user profiles, possibly filtered. -// This method supports paging. +// List: Retrieves a list of account user profiles, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) List(profileId int64) *AccountUserProfilesListCall { c := &AccountUserProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15290,8 +12104,8 @@ func (c *AccountUserProfilesListCall) Active(active bool) *AccountUserProfilesLi return c } -// Ids sets the optional parameter "ids": Select only user profiles with -// these IDs. +// Ids sets the optional parameter "ids": Select only user profiles with these +// IDs. func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesListCall { var ids_ []string for _, v := range ids { @@ -15301,8 +12115,8 @@ func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountUserProfilesListCall) MaxResults(maxResults int64) *AccountUserProfilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -15315,22 +12129,21 @@ func (c *AccountUserProfilesListCall) PageToken(pageToken string) *AccountUserPr return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or email. Wildcards (*) are -// allowed. For example, "user profile*2015" will return objects with -// names like "user profile June 2015", "user profile April 2015", or -// simply "user profile 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "user profile" will match objects with -// name "my user profile", "user profile 2015", or simply "user +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or email. Wildcards (*) are allowed. For example, +// "user profile*2015" will return objects with names like "user profile June +// 2015", "user profile April 2015", or simply "user profile 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "user profile" will match +// objects with name "my user profile", "user profile 2015", or simply "user // profile". func (c *AccountUserProfilesListCall) SearchString(searchString string) *AccountUserProfilesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -15341,8 +12154,7 @@ func (c *AccountUserProfilesListCall) SortField(sortField string) *AccountUserPr return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -15353,8 +12165,8 @@ func (c *AccountUserProfilesListCall) SortOrder(sortOrder string) *AccountUserPr return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user profiles with the specified subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// profiles with the specified subaccount ID. func (c *AccountUserProfilesListCall) SubaccountId(subaccountId int64) *AccountUserProfilesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c @@ -15368,33 +12180,29 @@ func (c *AccountUserProfilesListCall) UserRoleId(userRoleId int64) *AccountUserP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesListCall) Fields(s ...googleapi.Field) *AccountUserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesListCall) IfNoneMatch(entityTag string) *AccountUserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesListCall) Context(ctx context.Context) *AccountUserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15403,12 +12211,7 @@ func (c *AccountUserProfilesListCall) Header() http.Header { } func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15425,16 +12228,15 @@ func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.list" call. -// Exactly one of *AccountUserProfilesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountUserProfilesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfilesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*AccountUserProfilesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15442,17 +12244,17 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfilesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15465,102 +12267,6 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account return nil, err } return ret, nil - // { - // "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active user profiles.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user profiles with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"user profile*2015\" will return objects with names like \"user profile June 2015\", \"user profile April 2015\", or simply \"user profile 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"user profile\" will match objects with name \"my user profile\", \"user profile 2015\", or simply \"user profile\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user profiles with the specified subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "userRoleId": { - // "description": "Select only user profiles with the specified user role ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "response": { - // "$ref": "AccountUserProfilesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -15568,7 +12274,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // The provided context supersedes any context provided to the Context method. func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*AccountUserProfilesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15584,8 +12290,6 @@ func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*Account } } -// method id "dfareporting.accountUserProfiles.patch": - type AccountUserProfilesPatchCall struct { s *Service profileId int64 @@ -15595,8 +12299,11 @@ type AccountUserProfilesPatchCall struct { header_ http.Header } -// Patch: Updates an existing account user profile. This method supports -// patch semantics. +// Patch: Updates an existing account user profile. This method supports patch +// semantics. +// +// - id: User profile ID. +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesPatchCall { c := &AccountUserProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15606,23 +12313,21 @@ func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuse } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesPatchCall) Fields(s ...googleapi.Field) *AccountUserProfilesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesPatchCall) Context(ctx context.Context) *AccountUserProfilesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15631,18 +12336,12 @@ func (c *AccountUserProfilesPatchCall) Header() http.Header { } func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15655,16 +12354,15 @@ func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.patch" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15672,17 +12370,17 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15695,45 +12393,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.accountUserProfiles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.update": +} type AccountUserProfilesUpdateCall struct { s *Service @@ -15745,6 +12405,8 @@ type AccountUserProfilesUpdateCall struct { } // Update: Updates an existing account user profile. +// +// - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesUpdateCall { c := &AccountUserProfilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15753,23 +12415,21 @@ func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesUpdateCall) Fields(s ...googleapi.Field) *AccountUserProfilesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesUpdateCall) Context(ctx context.Context) *AccountUserProfilesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15778,18 +12438,12 @@ func (c *AccountUserProfilesUpdateCall) Header() http.Header { } func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15802,16 +12456,15 @@ func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.update" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15819,17 +12472,17 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15842,37 +12495,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile.", - // "httpMethod": "PUT", - // "id": "dfareporting.accountUserProfiles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.get": +} type AccountsGetCall struct { s *Service @@ -15885,6 +12508,9 @@ type AccountsGetCall struct { } // Get: Gets one account by ID. +// +// - id: Account ID. +// - profileId: User profile ID associated with this request. func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -15893,33 +12519,29 @@ func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15928,12 +12550,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15951,16 +12568,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15968,17 +12583,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -15991,42 +12606,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Gets one account by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts/{id}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.list": +} type AccountsListCall struct { s *Service @@ -16039,22 +12619,22 @@ type AccountsListCall struct { // List: Retrieves the list of accounts, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AccountsService) List(profileId int64) *AccountsListCall { c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Active sets the optional parameter "active": Select only active -// accounts. Don't set this field to select both active and non-active -// accounts. +// Active sets the optional parameter "active": Select only active accounts. +// Don't set this field to select both active and non-active accounts. func (c *AccountsListCall) Active(active bool) *AccountsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// Ids sets the optional parameter "ids": Select only accounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only accounts with these IDs. func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { var ids_ []string for _, v := range ids { @@ -16064,8 +12644,8 @@ func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -16078,21 +12658,20 @@ func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "account*2015" will return objects with names like "account -// June 2015", "account April 2015", or simply "account 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "account" will -// match objects with name "my account", "account 2015", or simply -// "account". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "account*2015" will return objects with names like "account June 2015", +// "account April 2015", or simply "account 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "account" will match objects with name "my +// account", "account 2015", or simply "account". func (c *AccountsListCall) SearchString(searchString string) *AccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -16103,8 +12682,7 @@ func (c *AccountsListCall) SortField(sortField string) *AccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -16116,33 +12694,29 @@ func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16151,12 +12725,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16173,16 +12742,15 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.list" call. -// Exactly one of *AccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16190,17 +12758,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16213,90 +12781,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active accounts. Don't set this field to select both active and non-active accounts.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only accounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"account*2015\" will return objects with names like \"account June 2015\", \"account April 2015\", or simply \"account 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"account\" will match objects with name \"my account\", \"account 2015\", or simply \"account\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "response": { - // "$ref": "AccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -16304,7 +12788,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // The provided context supersedes any context provided to the Context method. func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -16320,8 +12804,6 @@ func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListRespon } } -// method id "dfareporting.accounts.patch": - type AccountsPatchCall struct { s *Service profileId int64 @@ -16331,8 +12813,10 @@ type AccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing account. This method supports patch -// semantics. +// Patch: Updates an existing account. This method supports patch semantics. +// +// - id: Account ID. +// - profileId: User profile ID associated with this request. func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *AccountsPatchCall { c := &AccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16342,23 +12826,21 @@ func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *Ac } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16367,18 +12849,12 @@ func (c *AccountsPatchCall) Header() http.Header { } func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -16391,16 +12867,14 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.patch" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16408,17 +12882,17 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -16431,45 +12905,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing account. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.accounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.update": +} type AccountsUpdateCall struct { s *Service @@ -16481,6 +12917,8 @@ type AccountsUpdateCall struct { } // Update: Updates an existing account. +// +// - profileId: User profile ID associated with this request. func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpdateCall { c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16489,23 +12927,21 @@ func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpd } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16514,18 +12950,12 @@ func (c *AccountsUpdateCall) Header() http.Header { } func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -16538,16 +12968,14 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16555,17 +12983,17 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -16578,37 +13006,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing account.", - // "httpMethod": "PUT", - // "id": "dfareporting.accounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.get": +} type AdsGetCall struct { s *Service @@ -16621,6 +13019,9 @@ type AdsGetCall struct { } // Get: Gets one ad by ID. +// +// - id: Ad ID. +// - profileId: User profile ID associated with this request. func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { c := &AdsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16629,33 +13030,29 @@ func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsGetCall) Fields(s ...googleapi.Field) *AdsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsGetCall) IfNoneMatch(entityTag string) *AdsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsGetCall) Context(ctx context.Context) *AdsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16664,12 +13061,7 @@ func (c *AdsGetCall) Header() http.Header { } func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16687,16 +13079,14 @@ func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.get" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16704,17 +13094,17 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -16727,42 +13117,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Gets one ad by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.ads.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads/{id}", - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.insert": +} type AdsInsertCall struct { s *Service @@ -16774,6 +13129,8 @@ type AdsInsertCall struct { } // Insert: Inserts a new ad. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { c := &AdsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16782,23 +13139,21 @@ func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsInsertCall) Fields(s ...googleapi.Field) *AdsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsInsertCall) Context(ctx context.Context) *AdsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16807,18 +13162,12 @@ func (c *AdsInsertCall) Header() http.Header { } func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -16831,16 +13180,14 @@ func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.insert" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16848,17 +13195,17 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -16871,37 +13218,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new ad.", - // "httpMethod": "POST", - // "id": "dfareporting.ads.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.list": +} type AdsListCall struct { s *Service @@ -16912,8 +13229,10 @@ type AdsListCall struct { header_ http.Header } -// List: Retrieves a list of ads, possibly filtered. This method -// supports paging. +// List: Retrieves a list of ads, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) List(profileId int64) *AdsListCall { c := &AdsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -16926,22 +13245,21 @@ func (c *AdsListCall) Active(active bool) *AdsListCall { return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// ads with this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only ads +// with this advertiser ID. func (c *AdsListCall) AdvertiserId(advertiserId int64) *AdsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Archived sets the optional parameter "archived": Select only archived -// ads. +// Archived sets the optional parameter "archived": Select only archived ads. func (c *AdsListCall) Archived(archived bool) *AdsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": -// Select only ads with these audience segment IDs. +// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": Select +// only ads with these audience segment IDs. func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCall { var audienceSegmentIds_ []string for _, v := range audienceSegmentIds { @@ -16951,8 +13269,8 @@ func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCa return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// ads with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only ads with +// these campaign IDs. func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -16962,13 +13280,13 @@ func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { return c } -// Compatibility sets the optional parameter "compatibility": Select -// default ads with the specified compatibility. Applicable when type is -// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to -// rendering either on desktop or on mobile devices for regular or -// interstitial ads, respectively. APP and APP_INTERSTITIAL are for -// rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an -// in-stream video ads developed with the VAST standard. +// Compatibility sets the optional parameter "compatibility": Select default +// ads with the specified compatibility. Applicable when type is +// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering +// either on desktop or on mobile devices for regular or interstitial ads, +// respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. +// IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with +// the VAST standard. // // Possible values: // @@ -16983,8 +13301,8 @@ func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall { return c } -// CreativeIds sets the optional parameter "creativeIds": Select only -// ads with these creative IDs assigned. +// CreativeIds sets the optional parameter "creativeIds": Select only ads with +// these creative IDs assigned. func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { var creativeIds_ []string for _, v := range creativeIds { @@ -16995,8 +13313,8 @@ func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { } // CreativeOptimizationConfigurationIds sets the optional parameter -// "creativeOptimizationConfigurationIds": Select only ads with these -// creative optimization configuration IDs. +// "creativeOptimizationConfigurationIds": Select only ads with these creative +// optimization configuration IDs. func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationConfigurationIds ...int64) *AdsListCall { var creativeOptimizationConfigurationIds_ []string for _, v := range creativeOptimizationConfigurationIds { @@ -17006,18 +13324,16 @@ func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationC return c } -// DynamicClickTracker sets the optional parameter -// "dynamicClickTracker": Select only dynamic click trackers. Applicable -// when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click -// trackers. If false, select static click trackers. Leave unset to -// select both. +// DynamicClickTracker sets the optional parameter "dynamicClickTracker": +// Select only dynamic click trackers. Applicable when type is +// AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, +// select static click trackers. Leave unset to select both. func (c *AdsListCall) DynamicClickTracker(dynamicClickTracker bool) *AdsListCall { c.urlParams_.Set("dynamicClickTracker", fmt.Sprint(dynamicClickTracker)) return c } -// Ids sets the optional parameter "ids": Select only ads with these -// IDs. +// Ids sets the optional parameter "ids": Select only ads with these IDs. func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { var ids_ []string for _, v := range ids { @@ -17027,8 +13343,8 @@ func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { return c } -// LandingPageIds sets the optional parameter "landingPageIds": Select -// only ads with these landing page IDs. +// LandingPageIds sets the optional parameter "landingPageIds": Select only ads +// with these landing page IDs. func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { var landingPageIds_ []string for _, v := range landingPageIds { @@ -17038,16 +13354,15 @@ func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdsListCall) MaxResults(maxResults int64) *AdsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only ads with this event tag override -// ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only ads with this event tag override ID. func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagId int64) *AdsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -17060,8 +13375,8 @@ func (c *AdsListCall) PageToken(pageToken string) *AdsListCall { return c } -// PlacementIds sets the optional parameter "placementIds": Select only -// ads with these placement IDs assigned. +// PlacementIds sets the optional parameter "placementIds": Select only ads +// with these placement IDs assigned. func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { var placementIds_ []string for _, v := range placementIds { @@ -17071,9 +13386,8 @@ func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { return c } -// RemarketingListIds sets the optional parameter "remarketingListIds": -// Select only ads whose list targeting expression use these remarketing -// list IDs. +// RemarketingListIds sets the optional parameter "remarketingListIds": Select +// only ads whose list targeting expression use these remarketing list IDs. func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCall { var remarketingListIds_ []string for _, v := range remarketingListIds { @@ -17083,20 +13397,19 @@ func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "ad*2015" will return objects with names like "ad June -// 2015", "ad April 2015", or simply "ad 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "ad" will match objects with -// name "my ad", "ad 2015", or simply "ad". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, "ad*2015" +// will return objects with names like "ad June 2015", "ad April 2015", or +// simply "ad 2015". Most of the searches also add wildcards implicitly at the +// start and the end of the search string. For example, a search string of "ad" +// will match objects with name "my ad", "ad 2015", or simply "ad". func (c *AdsListCall) SearchString(searchString string) *AdsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only ads with -// these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only ads with these +// size IDs. func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -17106,8 +13419,8 @@ func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -17118,8 +13431,7 @@ func (c *AdsListCall) SortField(sortField string) *AdsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -17130,22 +13442,21 @@ func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall { return c } -// SslCompliant sets the optional parameter "sslCompliant": Select only -// ads that are SSL-compliant. +// SslCompliant sets the optional parameter "sslCompliant": Select only ads +// that are SSL-compliant. func (c *AdsListCall) SslCompliant(sslCompliant bool) *AdsListCall { c.urlParams_.Set("sslCompliant", fmt.Sprint(sslCompliant)) return c } -// SslRequired sets the optional parameter "sslRequired": Select only -// ads that require SSL. +// SslRequired sets the optional parameter "sslRequired": Select only ads that +// require SSL. func (c *AdsListCall) SslRequired(sslRequired bool) *AdsListCall { c.urlParams_.Set("sslRequired", fmt.Sprint(sslRequired)) return c } -// Type sets the optional parameter "type": Select only ads with these -// types. +// Type sets the optional parameter "type": Select only ads with these types. // // Possible values: // @@ -17159,33 +13470,29 @@ func (c *AdsListCall) Type(type_ ...string) *AdsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsListCall) Fields(s ...googleapi.Field) *AdsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsListCall) IfNoneMatch(entityTag string) *AdsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsListCall) Context(ctx context.Context) *AdsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17194,12 +13501,7 @@ func (c *AdsListCall) Header() http.Header { } func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17216,16 +13518,15 @@ func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.list" call. -// Exactly one of *AdsListResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdsListResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17233,17 +13534,17 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17256,217 +13557,6 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) return nil, err } return ret, nil - // { - // "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.ads.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active ads.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only ads with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived ads.", - // "location": "query", - // "type": "boolean" - // }, - // "audienceSegmentIds": { - // "description": "Select only ads with these audience segment IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "campaignIds": { - // "description": "Select only ads with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibility": { - // "description": "Select default ads with the specified compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard.", - // "enum": [ - // "APP", - // "APP_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "IN_STREAM_AUDIO", - // "IN_STREAM_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "creativeIds": { - // "description": "Select only ads with these creative IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeOptimizationConfigurationIds": { - // "description": "Select only ads with these creative optimization configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dynamicClickTracker": { - // "description": "Select only dynamic click trackers. Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, select static click trackers. Leave unset to select both.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only ads with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "landingPageIds": { - // "description": "Select only ads with these landing page IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only ads with this event tag override ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Select only ads with these placement IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListIds": { - // "description": "Select only ads whose list targeting expression use these remarketing list IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"ad*2015\" will return objects with names like \"ad June 2015\", \"ad April 2015\", or simply \"ad 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"ad\" will match objects with name \"my ad\", \"ad 2015\", or simply \"ad\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only ads with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sslCompliant": { - // "description": "Select only ads that are SSL-compliant.", - // "location": "query", - // "type": "boolean" - // }, - // "sslRequired": { - // "description": "Select only ads that require SSL.", - // "location": "query", - // "type": "boolean" - // }, - // "type": { - // "description": "Select only ads with these types.", - // "enum": [ - // "AD_SERVING_CLICK_TRACKER", - // "AD_SERVING_DEFAULT_AD", - // "AD_SERVING_STANDARD_AD", - // "AD_SERVING_TRACKING" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "response": { - // "$ref": "AdsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -17474,7 +13564,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // The provided context supersedes any context provided to the Context method. func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17490,8 +13580,6 @@ func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) } } -// method id "dfareporting.ads.patch": - type AdsPatchCall struct { s *Service profileId int64 @@ -17502,6 +13590,9 @@ type AdsPatchCall struct { } // Patch: Updates an existing ad. This method supports patch semantics. +// +// - id: Ad ID. +// - profileId: User profile ID associated with this request. func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { c := &AdsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17511,23 +13602,21 @@ func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsPatchCall) Fields(s ...googleapi.Field) *AdsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsPatchCall) Context(ctx context.Context) *AdsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17536,18 +13625,12 @@ func (c *AdsPatchCall) Header() http.Header { } func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17560,16 +13643,14 @@ func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.patch" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17577,17 +13658,17 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17600,45 +13681,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.ads.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.update": +} type AdsUpdateCall struct { s *Service @@ -17650,6 +13693,8 @@ type AdsUpdateCall struct { } // Update: Updates an existing ad. +// +// - profileId: User profile ID associated with this request. func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { c := &AdsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17658,23 +13703,21 @@ func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsUpdateCall) Fields(s ...googleapi.Field) *AdsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsUpdateCall) Context(ctx context.Context) *AdsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17683,18 +13726,12 @@ func (c *AdsUpdateCall) Header() http.Header { } func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17707,16 +13744,14 @@ func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.update" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17724,17 +13759,17 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17747,37 +13782,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad.", - // "httpMethod": "PUT", - // "id": "dfareporting.ads.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.delete": +} type AdvertiserGroupsDeleteCall struct { s *Service @@ -17789,6 +13794,9 @@ type AdvertiserGroupsDeleteCall struct { } // Delete: Deletes an existing advertiser group. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserGroupsDeleteCall { c := &AdvertiserGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17797,23 +13805,21 @@ func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsDeleteCall) Fields(s ...googleapi.Field) *AdvertiserGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsDeleteCall) Context(ctx context.Context) *AdvertiserGroupsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17822,12 +13828,7 @@ func (c *AdvertiserGroupsDeleteCall) Header() http.Header { } func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17842,7 +13843,7 @@ func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.delete" call. @@ -17854,42 +13855,10 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing advertiser group.", - // "httpMethod": "DELETE", - // "id": "dfareporting.advertiserGroups.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.get": +} type AdvertiserGroupsGetCall struct { s *Service @@ -17902,6 +13871,9 @@ type AdvertiserGroupsGetCall struct { } // Get: Gets one advertiser group by ID. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGroupsGetCall { c := &AdvertiserGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -17910,33 +13882,29 @@ func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGrou } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsGetCall) Fields(s ...googleapi.Field) *AdvertiserGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsGetCall) IfNoneMatch(entityTag string) *AdvertiserGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsGetCall) Context(ctx context.Context) *AdvertiserGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17945,12 +13913,7 @@ func (c *AdvertiserGroupsGetCall) Header() http.Header { } func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17968,16 +13931,15 @@ func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.get" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17985,17 +13947,17 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18008,42 +13970,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG return nil, err } return ret, nil - // { - // "description": "Gets one advertiser group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.insert": +} type AdvertiserGroupsInsertCall struct { s *Service @@ -18055,6 +13982,8 @@ type AdvertiserGroupsInsertCall struct { } // Insert: Inserts a new advertiser group. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsInsertCall { c := &AdvertiserGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18063,23 +13992,21 @@ func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsInsertCall) Fields(s ...googleapi.Field) *AdvertiserGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsInsertCall) Context(ctx context.Context) *AdvertiserGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18088,18 +14015,12 @@ func (c *AdvertiserGroupsInsertCall) Header() http.Header { } func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18112,16 +14033,15 @@ func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.insert" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18129,17 +14049,17 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18152,37 +14072,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser group.", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.list": +} type AdvertiserGroupsListCall struct { s *Service @@ -18193,16 +14083,18 @@ type AdvertiserGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of advertiser groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of advertiser groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCall { c := &AdvertiserGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only advertiser groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only advertiser groups with +// these IDs. func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { var ids_ []string for _, v := range ids { @@ -18212,8 +14104,8 @@ func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserGroupsListCall) MaxResults(maxResults int64) *AdvertiserGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -18226,22 +14118,21 @@ func (c *AdvertiserGroupsListCall) PageToken(pageToken string) *AdvertiserGroups return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser group June 2015", "advertiser group April 2015", or -// simply "advertiser group 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "advertisergroup" will match objects -// with name "my advertisergroup", "advertisergroup 2015", or simply -// "advertisergroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser group June +// 2015", "advertiser group April 2015", or simply "advertiser group 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "advertisergroup" will +// match objects with name "my advertisergroup", "advertisergroup 2015", or +// simply "advertisergroup". func (c *AdvertiserGroupsListCall) SearchString(searchString string) *AdvertiserGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -18252,8 +14143,7 @@ func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroups return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -18265,33 +14155,29 @@ func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsListCall) Fields(s ...googleapi.Field) *AdvertiserGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsListCall) IfNoneMatch(entityTag string) *AdvertiserGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsListCall) Context(ctx context.Context) *AdvertiserGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18300,12 +14186,7 @@ func (c *AdvertiserGroupsListCall) Header() http.Header { } func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18322,16 +14203,15 @@ func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.list" call. -// Exactly one of *AdvertiserGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserGroupsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18339,17 +14219,17 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18362,85 +14242,6 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only advertiser groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser group June 2015\", \"advertiser group April 2015\", or simply \"advertiser group 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertisergroup\" will match objects with name \"my advertisergroup\", \"advertisergroup 2015\", or simply \"advertisergroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "response": { - // "$ref": "AdvertiserGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -18448,7 +14249,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // The provided context supersedes any context provided to the Context method. func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*AdvertiserGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18464,8 +14265,6 @@ func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*Advertiser } } -// method id "dfareporting.advertiserGroups.patch": - type AdvertiserGroupsPatchCall struct { s *Service profileId int64 @@ -18475,8 +14274,11 @@ type AdvertiserGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser group. This method supports -// patch semantics. +// Patch: Updates an existing advertiser group. This method supports patch +// semantics. +// +// - id: Advertiser group ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsPatchCall { c := &AdvertiserGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18486,23 +14288,21 @@ func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsPatchCall) Fields(s ...googleapi.Field) *AdvertiserGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsPatchCall) Context(ctx context.Context) *AdvertiserGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18511,18 +14311,12 @@ func (c *AdvertiserGroupsPatchCall) Header() http.Header { } func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18535,16 +14329,15 @@ func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.patch" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18552,17 +14345,17 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18575,45 +14368,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.update": +} type AdvertiserGroupsUpdateCall struct { s *Service @@ -18625,6 +14380,8 @@ type AdvertiserGroupsUpdateCall struct { } // Update: Updates an existing advertiser group. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsUpdateCall { c := &AdvertiserGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18633,23 +14390,21 @@ func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsUpdateCall) Fields(s ...googleapi.Field) *AdvertiserGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsUpdateCall) Context(ctx context.Context) *AdvertiserGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18658,18 +14413,12 @@ func (c *AdvertiserGroupsUpdateCall) Header() http.Header { } func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18682,16 +14431,15 @@ func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.update" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18699,17 +14447,17 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18722,37 +14470,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.get": +} type AdvertiserLandingPagesGetCall struct { s *Service @@ -18765,6 +14483,9 @@ type AdvertiserLandingPagesGetCall struct { } // Get: Gets one landing page by ID. +// +// - id: Landing page ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *AdvertiserLandingPagesGetCall { c := &AdvertiserLandingPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18773,33 +14494,29 @@ func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *Advertis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesGetCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserLandingPagesGetCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesGetCall) Context(ctx context.Context) *AdvertiserLandingPagesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18808,12 +14525,7 @@ func (c *AdvertiserLandingPagesGetCall) Header() http.Header { } func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18831,16 +14543,14 @@ func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.get" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18848,17 +14558,17 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -18871,42 +14581,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi return nil, err } return ret, nil - // { - // "description": "Gets one landing page by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.insert": +} type AdvertiserLandingPagesInsertCall struct { s *Service @@ -18918,6 +14593,8 @@ type AdvertiserLandingPagesInsertCall struct { } // Insert: Inserts a new landing page. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesInsertCall { c := &AdvertiserLandingPagesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -18926,23 +14603,21 @@ func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *Lan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesInsertCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesInsertCall) Context(ctx context.Context) *AdvertiserLandingPagesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18951,18 +14626,12 @@ func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { } func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -18975,16 +14644,14 @@ func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.insert" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18992,17 +14659,17 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19015,37 +14682,7 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La return nil, err } return ret, nil - // { - // "description": "Inserts a new landing page.", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserLandingPages.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.list": +} type AdvertiserLandingPagesListCall struct { s *Service @@ -19057,14 +14694,16 @@ type AdvertiserLandingPagesListCall struct { } // List: Retrieves a list of landing pages. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) List(profileId int64) *AdvertiserLandingPagesListCall { c := &AdvertiserLandingPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only landing pages that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// landing pages that belong to these advertisers. func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) *AdvertiserLandingPagesListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -19075,15 +14714,15 @@ func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) * } // Archived sets the optional parameter "archived": Select only archived -// landing pages. Don't set this field to select both archived and -// non-archived landing pages. +// landing pages. Don't set this field to select both archived and non-archived +// landing pages. func (c *AdvertiserLandingPagesListCall) Archived(archived bool) *AdvertiserLandingPagesListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// landing pages that are associated with these campaigns. +// CampaignIds sets the optional parameter "campaignIds": Select only landing +// pages that are associated with these campaigns. func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *AdvertiserLandingPagesListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -19093,8 +14732,8 @@ func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *Adve return c } -// Ids sets the optional parameter "ids": Select only landing pages with -// these IDs. +// Ids sets the optional parameter "ids": Select only landing pages with these +// IDs. func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPagesListCall { var ids_ []string for _, v := range ids { @@ -19104,8 +14743,8 @@ func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPag return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserLandingPagesListCall) MaxResults(maxResults int64) *AdvertiserLandingPagesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -19118,21 +14757,21 @@ func (c *AdvertiserLandingPagesListCall) PageToken(pageToken string) *Advertiser return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for landing pages by name or ID. Wildcards (*) are allowed. -// For example, "landingpage*2017" will return landing pages with names -// like "landingpage July 2017", "landingpage March 2017", or simply -// "landingpage 2017". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "landingpage" will match campaigns with -// name "my landingpage", "landingpage 2015", or simply "landingpage". +// SearchString sets the optional parameter "searchString": Allows searching +// for landing pages by name or ID. Wildcards (*) are allowed. For example, +// "landingpage*2017" will return landing pages with names like "landingpage +// July 2017", "landingpage March 2017", or simply "landingpage 2017". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "landingpage" will match +// campaigns with name "my landingpage", "landingpage 2015", or simply +// "landingpage". func (c *AdvertiserLandingPagesListCall) SearchString(searchString string) *AdvertiserLandingPagesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -19143,8 +14782,7 @@ func (c *AdvertiserLandingPagesListCall) SortField(sortField string) *Advertiser return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -19155,41 +14793,37 @@ func (c *AdvertiserLandingPagesListCall) SortOrder(sortOrder string) *Advertiser return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// landing pages that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only landing +// pages that belong to this subaccount. func (c *AdvertiserLandingPagesListCall) SubaccountId(subaccountId int64) *AdvertiserLandingPagesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesListCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserLandingPagesListCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesListCall) Context(ctx context.Context) *AdvertiserLandingPagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19198,12 +14832,7 @@ func (c *AdvertiserLandingPagesListCall) Header() http.Header { } func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19220,17 +14849,15 @@ func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.list" call. -// Exactly one of *AdvertiserLandingPagesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserLandingPagesListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserLandingPagesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*AdvertiserLandingPagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19238,17 +14865,17 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserLandingPagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19261,110 +14888,6 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve return nil, err } return ret, nil - // { - // "description": "Retrieves a list of landing pages.", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only landing pages that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived landing pages. Don't set this field to select both archived and non-archived landing pages.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only landing pages that are associated with these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only landing pages with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for landing pages by name or ID. Wildcards (*) are allowed. For example, \"landingpage*2017\" will return landing pages with names like \"landingpage July 2017\", \"landingpage March 2017\", or simply \"landingpage 2017\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"landingpage\" will match campaigns with name \"my landingpage\", \"landingpage 2015\", or simply \"landingpage\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only landing pages that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "response": { - // "$ref": "AdvertiserLandingPagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -19372,7 +14895,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // The provided context supersedes any context provided to the Context method. func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*AdvertiserLandingPagesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -19388,8 +14911,6 @@ func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*Adve } } -// method id "dfareporting.advertiserLandingPages.patch": - type AdvertiserLandingPagesPatchCall struct { s *Service profileId int64 @@ -19401,6 +14922,9 @@ type AdvertiserLandingPagesPatchCall struct { // Patch: Updates an existing landing page. This method supports patch // semantics. +// +// - id: Landing page ID. +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landingpage *LandingPage) *AdvertiserLandingPagesPatchCall { c := &AdvertiserLandingPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19410,23 +14934,21 @@ func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landing } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesPatchCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesPatchCall) Context(ctx context.Context) *AdvertiserLandingPagesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19435,18 +14957,12 @@ func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { } func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -19459,16 +14975,14 @@ func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.patch" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19476,17 +14990,17 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19499,45 +15013,7 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan return nil, err } return ret, nil - // { - // "description": "Updates an existing landing page. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserLandingPages.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.update": +} type AdvertiserLandingPagesUpdateCall struct { s *Service @@ -19549,6 +15025,8 @@ type AdvertiserLandingPagesUpdateCall struct { } // Update: Updates an existing landing page. +// +// - profileId: User profile ID associated with this request. func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesUpdateCall { c := &AdvertiserLandingPagesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19557,23 +15035,21 @@ func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *Lan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesUpdateCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesUpdateCall) Context(ctx context.Context) *AdvertiserLandingPagesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19582,18 +15058,12 @@ func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { } func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -19606,16 +15076,14 @@ func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.update" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19623,17 +15091,17 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19646,37 +15114,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La return nil, err } return ret, nil - // { - // "description": "Updates an existing landing page.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserLandingPages.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.get": +} type AdvertisersGetCall struct { s *Service @@ -19689,6 +15127,9 @@ type AdvertisersGetCall struct { } // Get: Gets one advertiser by ID. +// +// - id: Advertiser ID. +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall { c := &AdvertisersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19697,33 +15138,29 @@ func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersGetCall) Fields(s ...googleapi.Field) *AdvertisersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19732,12 +15169,7 @@ func (c *AdvertisersGetCall) Header() http.Header { } func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19755,16 +15187,14 @@ func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.get" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19772,17 +15202,17 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -19795,42 +15225,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro return nil, err } return ret, nil - // { - // "description": "Gets one advertiser by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers/{id}", - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.insert": +} type AdvertisersInsertCall struct { s *Service @@ -19842,6 +15237,8 @@ type AdvertisersInsertCall struct { } // Insert: Inserts a new advertiser. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *AdvertisersInsertCall { c := &AdvertisersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -19850,23 +15247,21 @@ func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertCall) Fields(s ...googleapi.Field) *AdvertisersInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertCall) Context(ctx context.Context) *AdvertisersInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19875,18 +15270,12 @@ func (c *AdvertisersInsertCall) Header() http.Header { } func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -19899,16 +15288,14 @@ func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.insert" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19916,17 +15303,17 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -19939,37 +15326,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser.", - // "httpMethod": "POST", - // "id": "dfareporting.advertisers.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.list": +} type AdvertisersListCall struct { s *Service @@ -19982,14 +15339,16 @@ type AdvertisersListCall struct { // List: Retrieves a list of advertisers, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) List(profileId int64) *AdvertisersListCall { c := &AdvertisersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only advertisers with these advertiser group IDs. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only advertisers with these advertiser group IDs. func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *AdvertisersListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -20000,8 +15359,8 @@ func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *A } // FloodlightConfigurationIds sets the optional parameter -// "floodlightConfigurationIds": Select only advertisers with these -// floodlight configuration IDs. +// "floodlightConfigurationIds": Select only advertisers with these floodlight +// configuration IDs. func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfigurationIds ...int64) *AdvertisersListCall { var floodlightConfigurationIds_ []string for _, v := range floodlightConfigurationIds { @@ -20011,8 +15370,8 @@ func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfiguration return c } -// Ids sets the optional parameter "ids": Select only advertisers with -// these IDs. +// Ids sets the optional parameter "ids": Select only advertisers with these +// IDs. func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { var ids_ []string for _, v := range ids { @@ -20023,22 +15382,22 @@ func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { } // IncludeAdvertisersWithoutGroupsOnly sets the optional parameter -// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which -// do not belong to any advertiser group. +// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which do not +// belong to any advertiser group. func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnly bool) *AdvertisersListCall { c.urlParams_.Set("includeAdvertisersWithoutGroupsOnly", fmt.Sprint(includeAdvertisersWithoutGroupsOnly)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertisersListCall) MaxResults(maxResults int64) *AdvertisersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OnlyParent sets the optional parameter "onlyParent": Select only -// advertisers which use another advertiser's floodlight configuration. +// OnlyParent sets the optional parameter "onlyParent": Select only advertisers +// which use another advertiser's floodlight configuration. func (c *AdvertisersListCall) OnlyParent(onlyParent bool) *AdvertisersListCall { c.urlParams_.Set("onlyParent", fmt.Sprint(onlyParent)) return c @@ -20051,21 +15410,21 @@ func (c *AdvertisersListCall) PageToken(pageToken string) *AdvertisersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser June 2015", "advertiser April 2015", or simply -// "advertiser 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "advertiser" will match objects with name "my advertiser", -// "advertiser 2015", or simply "advertiser". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser June +// 2015", "advertiser April 2015", or simply "advertiser 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "advertiser" will match +// objects with name "my advertiser", "advertiser 2015", or simply +// "advertiser". func (c *AdvertisersListCall) SearchString(searchString string) *AdvertisersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -20076,8 +15435,7 @@ func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -20088,8 +15446,8 @@ func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall { return c } -// Status sets the optional parameter "status": Select only advertisers -// with the specified status. +// Status sets the optional parameter "status": Select only advertisers with +// the specified status. // // Possible values: // @@ -20108,33 +15466,29 @@ func (c *AdvertisersListCall) SubaccountId(subaccountId int64) *AdvertisersListC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersListCall) Fields(s ...googleapi.Field) *AdvertisersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20143,12 +15497,7 @@ func (c *AdvertisersListCall) Header() http.Header { } func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20165,16 +15514,15 @@ func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.list" call. -// Exactly one of *AdvertisersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AdvertisersListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20182,17 +15530,17 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertisersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20205,128 +15553,6 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only advertisers with these advertiser group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightConfigurationIds": { - // "description": "Select only advertisers with these floodlight configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only advertisers with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "includeAdvertisersWithoutGroupsOnly": { - // "description": "Select only advertisers which do not belong to any advertiser group.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "onlyParent": { - // "description": "Select only advertisers which use another advertiser's floodlight configuration.", - // "location": "query", - // "type": "boolean" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser June 2015\", \"advertiser April 2015\", or simply \"advertiser 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertiser\" will match objects with name \"my advertiser\", \"advertiser 2015\", or simply \"advertiser\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "status": { - // "description": "Select only advertisers with the specified status.", - // "enum": [ - // "APPROVED", - // "ON_HOLD" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only advertisers with these subaccount IDs.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "response": { - // "$ref": "AdvertisersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -20334,7 +15560,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // The provided context supersedes any context provided to the Context method. func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20350,8 +15576,6 @@ func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersList } } -// method id "dfareporting.advertisers.patch": - type AdvertisersPatchCall struct { s *Service profileId int64 @@ -20361,8 +15585,10 @@ type AdvertisersPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser. This method supports patch -// semantics. +// Patch: Updates an existing advertiser. This method supports patch semantics. +// +// - id: Advertiser ID. +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advertiser) *AdvertisersPatchCall { c := &AdvertisersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20372,23 +15598,21 @@ func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersPatchCall) Fields(s ...googleapi.Field) *AdvertisersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20397,18 +15621,12 @@ func (c *AdvertisersPatchCall) Header() http.Header { } func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -20421,16 +15639,14 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.patch" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20438,17 +15654,17 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -20461,45 +15677,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertisers.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.update": +} type AdvertisersUpdateCall struct { s *Service @@ -20511,6 +15689,8 @@ type AdvertisersUpdateCall struct { } // Update: Updates an existing advertiser. +// +// - profileId: User profile ID associated with this request. func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *AdvertisersUpdateCall { c := &AdvertisersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20519,23 +15699,21 @@ func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersUpdateCall) Fields(s ...googleapi.Field) *AdvertisersUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersUpdateCall) Context(ctx context.Context) *AdvertisersUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20544,18 +15722,12 @@ func (c *AdvertisersUpdateCall) Header() http.Header { } func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -20568,16 +15740,14 @@ func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.update" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20585,17 +15755,17 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -20608,37 +15778,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser.", - // "httpMethod": "PUT", - // "id": "dfareporting.advertisers.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.browsers.list": +} type BrowsersListCall struct { s *Service @@ -20650,6 +15790,8 @@ type BrowsersListCall struct { } // List: Retrieves a list of browsers. +// +// - profileId: User profile ID associated with this request. func (r *BrowsersService) List(profileId int64) *BrowsersListCall { c := &BrowsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20657,33 +15799,29 @@ func (r *BrowsersService) List(profileId int64) *BrowsersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BrowsersListCall) Fields(s ...googleapi.Field) *BrowsersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BrowsersListCall) IfNoneMatch(entityTag string) *BrowsersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BrowsersListCall) Context(ctx context.Context) *BrowsersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BrowsersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20692,12 +15830,7 @@ func (c *BrowsersListCall) Header() http.Header { } func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20714,16 +15847,15 @@ func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.browsers.list" call. -// Exactly one of *BrowsersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BrowsersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BrowsersListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20731,17 +15863,17 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BrowsersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20754,34 +15886,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of browsers.", - // "httpMethod": "GET", - // "id": "dfareporting.browsers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/browsers", - // "response": { - // "$ref": "BrowsersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.insert": +} type CampaignCreativeAssociationsInsertCall struct { s *Service @@ -20793,9 +15898,12 @@ type CampaignCreativeAssociationsInsertCall struct { header_ http.Header } -// Insert: Associates a creative with the specified campaign. This -// method creates a default ad with dimensions matching the creative in -// the campaign if such a default ad does not exist already. +// Insert: Associates a creative with the specified campaign. This method +// creates a default ad with dimensions matching the creative in the campaign +// if such a default ad does not exist already. +// +// - campaignId: Campaign ID in this association. +// - profileId: User profile ID associated with this request. func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId int64, campaigncreativeassociation *CampaignCreativeAssociation) *CampaignCreativeAssociationsInsertCall { c := &CampaignCreativeAssociationsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20805,23 +15913,21 @@ func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsInsertCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsInsertCall) Context(ctx context.Context) *CampaignCreativeAssociationsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20830,18 +15936,12 @@ func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { } func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaigncreativeassociation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") @@ -20855,16 +15955,15 @@ func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Re "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.insert" call. -// Exactly one of *CampaignCreativeAssociation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CampaignCreativeAssociation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CampaignCreativeAssociation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20872,17 +15971,17 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociation{ ServerResponse: googleapi.ServerResponse{ @@ -20895,45 +15994,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.", - // "httpMethod": "POST", - // "id": "dfareporting.campaignCreativeAssociations.insert", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "request": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "response": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.list": +} type CampaignCreativeAssociationsListCall struct { s *Service @@ -20945,8 +16006,11 @@ type CampaignCreativeAssociationsListCall struct { header_ http.Header } -// List: Retrieves the list of creative IDs associated with the -// specified campaign. This method supports paging. +// List: Retrieves the list of creative IDs associated with the specified +// campaign. This method supports paging. +// +// - campaignId: Campaign ID in this association. +// - profileId: User profile ID associated with this request. func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId int64) *CampaignCreativeAssociationsListCall { c := &CampaignCreativeAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -20954,8 +16018,8 @@ func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId i return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignCreativeAssociationsListCall) MaxResults(maxResults int64) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -20968,8 +16032,7 @@ func (c *CampaignCreativeAssociationsListCall) PageToken(pageToken string) *Camp return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -20981,33 +16044,29 @@ func (c *CampaignCreativeAssociationsListCall) SortOrder(sortOrder string) *Camp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsListCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignCreativeAssociationsListCall) IfNoneMatch(entityTag string) *CampaignCreativeAssociationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsListCall) Context(ctx context.Context) *CampaignCreativeAssociationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21016,12 +16075,7 @@ func (c *CampaignCreativeAssociationsListCall) Header() http.Header { } func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21039,18 +16093,15 @@ func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Resp "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.list" call. -// Exactly one of *CampaignCreativeAssociationsListResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21058,17 +16109,17 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21081,67 +16132,6 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.campaignCreativeAssociations.list", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "response": { - // "$ref": "CampaignCreativeAssociationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -21149,7 +16139,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func(*CampaignCreativeAssociationsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21165,8 +16155,6 @@ func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func } } -// method id "dfareporting.campaigns.get": - type CampaignsGetCall struct { s *Service profileId int64 @@ -21178,6 +16166,9 @@ type CampaignsGetCall struct { } // Get: Gets one campaign by ID. +// +// - id: Campaign ID. +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { c := &CampaignsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21186,33 +16177,29 @@ func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsGetCall) Fields(s ...googleapi.Field) *CampaignsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsGetCall) IfNoneMatch(entityTag string) *CampaignsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsGetCall) Context(ctx context.Context) *CampaignsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21221,12 +16208,7 @@ func (c *CampaignsGetCall) Header() http.Header { } func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21244,16 +16226,14 @@ func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.get" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21261,17 +16241,17 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21284,42 +16264,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { return nil, err } return ret, nil - // { - // "description": "Gets one campaign by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{id}", - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.insert": +} type CampaignsInsertCall struct { s *Service @@ -21331,6 +16276,8 @@ type CampaignsInsertCall struct { } // Insert: Inserts a new campaign. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Insert(profileId int64, campaign *Campaign) *CampaignsInsertCall { c := &CampaignsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21339,23 +16286,21 @@ func (r *CampaignsService) Insert(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsInsertCall) Fields(s ...googleapi.Field) *CampaignsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsInsertCall) Context(ctx context.Context) *CampaignsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21364,18 +16309,12 @@ func (c *CampaignsInsertCall) Header() http.Header { } func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -21388,16 +16327,14 @@ func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.insert" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21405,17 +16342,17 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21428,37 +16365,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Inserts a new campaign.", - // "httpMethod": "POST", - // "id": "dfareporting.campaigns.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.list": +} type CampaignsListCall struct { s *Service @@ -21469,17 +16376,18 @@ type CampaignsListCall struct { header_ http.Header } -// List: Retrieves a list of campaigns, possibly filtered. This method -// supports paging. +// List: Retrieves a list of campaigns, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) List(profileId int64) *CampaignsListCall { c := &CampaignsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only campaigns whose advertisers belong to these advertiser -// groups. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only campaigns whose advertisers belong to these advertiser groups. func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *CampaignsListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -21489,8 +16397,8 @@ func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *Cam return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only campaigns that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// campaigns that belong to these advertisers. func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -21501,23 +16409,23 @@ func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsList } // Archived sets the optional parameter "archived": Select only archived -// campaigns. Don't set this field to select both archived and -// non-archived campaigns. +// campaigns. Don't set this field to select both archived and non-archived +// campaigns. func (c *CampaignsListCall) Archived(archived bool) *CampaignsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } // AtLeastOneOptimizationActivity sets the optional parameter -// "atLeastOneOptimizationActivity": Select only campaigns that have at -// least one optimization activity. +// "atLeastOneOptimizationActivity": Select only campaigns that have at least +// one optimization activity. func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivity bool) *CampaignsListCall { c.urlParams_.Set("atLeastOneOptimizationActivity", fmt.Sprint(atLeastOneOptimizationActivity)) return c } -// ExcludedIds sets the optional parameter "excludedIds": Exclude -// campaigns with these IDs. +// ExcludedIds sets the optional parameter "excludedIds": Exclude campaigns +// with these IDs. func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall { var excludedIds_ []string for _, v := range excludedIds { @@ -21527,8 +16435,7 @@ func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall return c } -// Ids sets the optional parameter "ids": Select only campaigns with -// these IDs. +// Ids sets the optional parameter "ids": Select only campaigns with these IDs. func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { var ids_ []string for _, v := range ids { @@ -21538,16 +16445,15 @@ func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignsListCall) MaxResults(maxResults int64) *CampaignsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only campaigns that have overridden -// this event tag ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only campaigns that have overridden this event tag ID. func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagId int64) *CampaignsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -21560,21 +16466,20 @@ func (c *CampaignsListCall) PageToken(pageToken string) *CampaignsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for campaigns by name or ID. Wildcards (*) are allowed. For -// example, "campaign*2015" will return campaigns with names like -// "campaign June 2015", "campaign April 2015", or simply "campaign -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "campaign" will match campaigns with name "my campaign", "campaign -// 2015", or simply "campaign". +// SearchString sets the optional parameter "searchString": Allows searching +// for campaigns by name or ID. Wildcards (*) are allowed. For example, +// "campaign*2015" will return campaigns with names like "campaign June 2015", +// "campaign April 2015", or simply "campaign 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "campaign" will match campaigns with name "my +// campaign", "campaign 2015", or simply "campaign". func (c *CampaignsListCall) SearchString(searchString string) *CampaignsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -21585,8 +16490,7 @@ func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -21605,33 +16509,29 @@ func (c *CampaignsListCall) SubaccountId(subaccountId int64) *CampaignsListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsListCall) Fields(s ...googleapi.Field) *CampaignsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsListCall) IfNoneMatch(entityTag string) *CampaignsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsListCall) Context(ctx context.Context) *CampaignsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21640,12 +16540,7 @@ func (c *CampaignsListCall) Header() http.Header { } func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21662,16 +16557,15 @@ func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.list" call. -// Exactly one of *CampaignsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CampaignsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21679,17 +16573,17 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21702,128 +16596,6 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only campaigns whose advertisers belong to these advertiser groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "advertiserIds": { - // "description": "Select only campaigns that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.", - // "location": "query", - // "type": "boolean" - // }, - // "atLeastOneOptimizationActivity": { - // "description": "Select only campaigns that have at least one optimization activity.", - // "location": "query", - // "type": "boolean" - // }, - // "excludedIds": { - // "description": "Exclude campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only campaigns that have overridden this event tag ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, \"campaign*2015\" will return campaigns with names like \"campaign June 2015\", \"campaign April 2015\", or simply \"campaign 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"campaign\" will match campaigns with name \"my campaign\", \"campaign 2015\", or simply \"campaign\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only campaigns that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "response": { - // "$ref": "CampaignsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -21831,7 +16603,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // The provided context supersedes any context provided to the Context method. func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21847,8 +16619,6 @@ func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResp } } -// method id "dfareporting.campaigns.patch": - type CampaignsPatchCall struct { s *Service profileId int64 @@ -21858,8 +16628,10 @@ type CampaignsPatchCall struct { header_ http.Header } -// Patch: Updates an existing campaign. This method supports patch -// semantics. +// Patch: Updates an existing campaign. This method supports patch semantics. +// +// - id: Campaign ID. +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) *CampaignsPatchCall { c := &CampaignsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -21869,23 +16641,21 @@ func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsPatchCall) Fields(s ...googleapi.Field) *CampaignsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsPatchCall) Context(ctx context.Context) *CampaignsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21894,18 +16664,12 @@ func (c *CampaignsPatchCall) Header() http.Header { } func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -21918,16 +16682,14 @@ func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.patch" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21935,17 +16697,17 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21958,45 +16720,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.campaigns.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.update": +} type CampaignsUpdateCall struct { s *Service @@ -22008,6 +16732,8 @@ type CampaignsUpdateCall struct { } // Update: Updates an existing campaign. +// +// - profileId: User profile ID associated with this request. func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *CampaignsUpdateCall { c := &CampaignsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22016,23 +16742,21 @@ func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsUpdateCall) Fields(s ...googleapi.Field) *CampaignsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsUpdateCall) Context(ctx context.Context) *CampaignsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22041,18 +16765,12 @@ func (c *CampaignsUpdateCall) Header() http.Header { } func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -22065,16 +16783,14 @@ func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.update" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22082,17 +16798,17 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -22105,37 +16821,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign.", - // "httpMethod": "PUT", - // "id": "dfareporting.campaigns.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.get": +} type ChangeLogsGetCall struct { s *Service @@ -22148,6 +16834,9 @@ type ChangeLogsGetCall struct { } // Get: Gets one change log by ID. +// +// - id: Change log ID. +// - profileId: User profile ID associated with this request. func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { c := &ChangeLogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -22156,33 +16845,29 @@ func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsGetCall) Fields(s ...googleapi.Field) *ChangeLogsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsGetCall) IfNoneMatch(entityTag string) *ChangeLogsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsGetCall) Context(ctx context.Context) *ChangeLogsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22191,12 +16876,7 @@ func (c *ChangeLogsGetCall) Header() http.Header { } func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22214,16 +16894,14 @@ func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.get" call. -// Exactly one of *ChangeLog or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ChangeLog.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLog.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22231,17 +16909,17 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLog{ ServerResponse: googleapi.ServerResponse{ @@ -22254,42 +16932,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) return nil, err } return ret, nil - // { - // "description": "Gets one change log by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Change log ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs/{id}", - // "response": { - // "$ref": "ChangeLog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.list": +} type ChangeLogsListCall struct { s *Service @@ -22301,14 +16944,16 @@ type ChangeLogsListCall struct { } // List: Retrieves a list of change logs. This method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *ChangeLogsService) List(profileId int64) *ChangeLogsListCall { c := &ChangeLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Action sets the optional parameter "action": Select only change logs -// with the specified action. +// Action sets the optional parameter "action": Select only change logs with +// the specified action. // // Possible values: // @@ -22334,8 +16979,8 @@ func (c *ChangeLogsListCall) Action(action string) *ChangeLogsListCall { return c } -// Ids sets the optional parameter "ids": Select only change logs with -// these IDs. +// Ids sets the optional parameter "ids": Select only change logs with these +// IDs. func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { var ids_ []string for _, v := range ids { @@ -22345,41 +16990,39 @@ func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { return c } -// MaxChangeTime sets the optional parameter "maxChangeTime": Select -// only change logs whose change time is before the specified -// maxChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MaxChangeTime sets the optional parameter "maxChangeTime": Select only +// change logs whose change time is before the specified maxChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("maxChangeTime", maxChangeTime) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ChangeLogsListCall) MaxResults(maxResults int64) *ChangeLogsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// MinChangeTime sets the optional parameter "minChangeTime": Select -// only change logs whose change time is before the specified -// minChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MinChangeTime sets the optional parameter "minChangeTime": Select only +// change logs whose change time is before the specified minChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MinChangeTime(minChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("minChangeTime", minChangeTime) return c } -// ObjectIds sets the optional parameter "objectIds": Select only change -// logs with these object IDs. +// ObjectIds sets the optional parameter "objectIds": Select only change logs +// with these object IDs. func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { var objectIds_ []string for _, v := range objectIds { @@ -22389,8 +17032,8 @@ func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { return c } -// ObjectType sets the optional parameter "objectType": Select only -// change logs with the specified object type. +// ObjectType sets the optional parameter "objectType": Select only change logs +// with the specified object type. // // Possible values: // @@ -22446,16 +17089,15 @@ func (c *ChangeLogsListCall) PageToken(pageToken string) *ChangeLogsListCall { return c } -// SearchString sets the optional parameter "searchString": Select only -// change logs whose object ID, user name, old or new values match the -// search string. +// SearchString sets the optional parameter "searchString": Select only change +// logs whose object ID, user name, old or new values match the search string. func (c *ChangeLogsListCall) SearchString(searchString string) *ChangeLogsListCall { c.urlParams_.Set("searchString", searchString) return c } -// UserProfileIds sets the optional parameter "userProfileIds": Select -// only change logs with these user profile IDs. +// UserProfileIds sets the optional parameter "userProfileIds": Select only +// change logs with these user profile IDs. func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogsListCall { var userProfileIds_ []string for _, v := range userProfileIds { @@ -22466,33 +17108,29 @@ func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogs } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsListCall) Fields(s ...googleapi.Field) *ChangeLogsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsListCall) IfNoneMatch(entityTag string) *ChangeLogsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsListCall) Context(ctx context.Context) *ChangeLogsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22501,12 +17139,7 @@ func (c *ChangeLogsListCall) Header() http.Header { } func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22523,16 +17156,15 @@ func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.list" call. -// Exactly one of *ChangeLogsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ChangeLogsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLogsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22540,17 +17172,17 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLogsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22563,213 +17195,6 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of change logs. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "action": { - // "description": "Select only change logs with the specified action.", - // "enum": [ - // "ACTION_ADD", - // "ACTION_ASSIGN", - // "ACTION_ASSOCIATE", - // "ACTION_CREATE", - // "ACTION_DELETE", - // "ACTION_DISABLE", - // "ACTION_EMAIL_TAGS", - // "ACTION_ENABLE", - // "ACTION_LINK", - // "ACTION_MARK_AS_DEFAULT", - // "ACTION_PUSH", - // "ACTION_REMOVE", - // "ACTION_SEND", - // "ACTION_SHARE", - // "ACTION_UNASSIGN", - // "ACTION_UNLINK", - // "ACTION_UPDATE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only change logs with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxChangeTime": { - // "description": "Select only change logs whose change time is before the specified maxChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "minChangeTime": { - // "description": "Select only change logs whose change time is before the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "objectIds": { - // "description": "Select only change logs with these object IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Select only change logs with the specified object type.", - // "enum": [ - // "OBJECT_ACCOUNT", - // "OBJECT_ACCOUNT_BILLING_FEATURE", - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_ADVERTISER_GROUP", - // "OBJECT_BILLING_ACCOUNT_GROUP", - // "OBJECT_BILLING_FEATURE", - // "OBJECT_BILLING_MINIMUM_FEE", - // "OBJECT_BILLING_PROFILE", - // "OBJECT_CAMPAIGN", - // "OBJECT_CONTENT_CATEGORY", - // "OBJECT_CREATIVE", - // "OBJECT_CREATIVE_ASSET", - // "OBJECT_CREATIVE_BUNDLE", - // "OBJECT_CREATIVE_FIELD", - // "OBJECT_CREATIVE_GROUP", - // "OBJECT_DFA_SITE", - // "OBJECT_EVENT_TAG", - // "OBJECT_FLOODLIGHT_ACTIVITY_GROUP", - // "OBJECT_FLOODLIGHT_ACTVITY", - // "OBJECT_FLOODLIGHT_CONFIGURATION", - // "OBJECT_FLOODLIGHT_DV360_LINK", - // "OBJECT_INSTREAM_CREATIVE", - // "OBJECT_LANDING_PAGE", - // "OBJECT_MEDIA_ORDER", - // "OBJECT_PLACEMENT", - // "OBJECT_PLACEMENT_STRATEGY", - // "OBJECT_PLAYSTORE_LINK", - // "OBJECT_PROVIDED_LIST_CLIENT", - // "OBJECT_RATE_CARD", - // "OBJECT_REMARKETING_LIST", - // "OBJECT_RICHMEDIA_CREATIVE", - // "OBJECT_SD_SITE", - // "OBJECT_SEARCH_LIFT_STUDY", - // "OBJECT_SIZE", - // "OBJECT_SUBACCOUNT", - // "OBJECT_TARGETING_TEMPLATE", - // "OBJECT_USER_PROFILE", - // "OBJECT_USER_PROFILE_FILTER", - // "OBJECT_USER_ROLE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Select only change logs whose object ID, user name, old or new values match the search string.", - // "location": "query", - // "type": "string" - // }, - // "userProfileIds": { - // "description": "Select only change logs with these user profile IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs", - // "response": { - // "$ref": "ChangeLogsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -22777,7 +17202,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // The provided context supersedes any context provided to the Context method. func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -22793,8 +17218,6 @@ func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListRe } } -// method id "dfareporting.cities.list": - type CitiesListCall struct { s *Service profileId int64 @@ -22805,14 +17228,16 @@ type CitiesListCall struct { } // List: Retrieves a list of cities, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *CitiesService) List(profileId int64) *CitiesListCall { c := &CitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// CountryDartIds sets the optional parameter "countryDartIds": Select -// only cities from these countries. +// CountryDartIds sets the optional parameter "countryDartIds": Select only +// cities from these countries. func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall { var countryDartIds_ []string for _, v := range countryDartIds { @@ -22822,8 +17247,8 @@ func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall return c } -// DartIds sets the optional parameter "dartIds": Select only cities -// with these DART IDs. +// DartIds sets the optional parameter "dartIds": Select only cities with these +// DART IDs. func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { var dartIds_ []string for _, v := range dartIds { @@ -22833,15 +17258,15 @@ func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { return c } -// NamePrefix sets the optional parameter "namePrefix": Select only -// cities with names starting with this prefix. +// NamePrefix sets the optional parameter "namePrefix": Select only cities with +// names starting with this prefix. func (c *CitiesListCall) NamePrefix(namePrefix string) *CitiesListCall { c.urlParams_.Set("namePrefix", namePrefix) return c } -// RegionDartIds sets the optional parameter "regionDartIds": Select -// only cities from these regions. +// RegionDartIds sets the optional parameter "regionDartIds": Select only +// cities from these regions. func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { var regionDartIds_ []string for _, v := range regionDartIds { @@ -22852,33 +17277,29 @@ func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CitiesListCall) Fields(s ...googleapi.Field) *CitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CitiesListCall) IfNoneMatch(entityTag string) *CitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CitiesListCall) Context(ctx context.Context) *CitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22887,12 +17308,7 @@ func (c *CitiesListCall) Header() http.Header { } func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22909,16 +17325,15 @@ func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.cities.list" call. -// Exactly one of *CitiesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CitiesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CitiesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22926,17 +17341,17 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22949,60 +17364,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of cities, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.cities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "countryDartIds": { - // "description": "Select only cities from these countries.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dartIds": { - // "description": "Select only cities with these DART IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "namePrefix": { - // "description": "Select only cities with names starting with this prefix.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "regionDartIds": { - // "description": "Select only cities from these regions.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/cities", - // "response": { - // "$ref": "CitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.get": +} type ConnectionTypesGetCall struct { s *Service @@ -23015,6 +17377,9 @@ type ConnectionTypesGetCall struct { } // Get: Gets one connection type by ID. +// +// - id: Connection type ID. +// - profileId: User profile ID associated with this request. func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypesGetCall { c := &ConnectionTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23023,33 +17388,29 @@ func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypes } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesGetCall) Fields(s ...googleapi.Field) *ConnectionTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesGetCall) IfNoneMatch(entityTag string) *ConnectionTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesGetCall) Context(ctx context.Context) *ConnectionTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23058,12 +17419,7 @@ func (c *ConnectionTypesGetCall) Header() http.Header { } func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23081,16 +17437,14 @@ func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.get" call. -// Exactly one of *ConnectionType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ConnectionType.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConnectionType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23098,17 +17452,17 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionType{ ServerResponse: googleapi.ServerResponse{ @@ -23121,42 +17475,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy return nil, err } return ret, nil - // { - // "description": "Gets one connection type by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Connection type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes/{id}", - // "response": { - // "$ref": "ConnectionType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.list": +} type ConnectionTypesListCall struct { s *Service @@ -23168,6 +17487,8 @@ type ConnectionTypesListCall struct { } // List: Retrieves a list of connection types. +// +// - profileId: User profile ID associated with this request. func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall { c := &ConnectionTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23175,33 +17496,29 @@ func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesListCall) Fields(s ...googleapi.Field) *ConnectionTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesListCall) IfNoneMatch(entityTag string) *ConnectionTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesListCall) Context(ctx context.Context) *ConnectionTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23210,12 +17527,7 @@ func (c *ConnectionTypesListCall) Header() http.Header { } func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23232,16 +17544,15 @@ func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.list" call. -// Exactly one of *ConnectionTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ConnectionTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ConnectionTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23249,17 +17560,17 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23272,34 +17583,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT return nil, err } return ret, nil - // { - // "description": "Retrieves a list of connection types.", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes", - // "response": { - // "$ref": "ConnectionTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.delete": +} type ContentCategoriesDeleteCall struct { s *Service @@ -23311,6 +17595,9 @@ type ContentCategoriesDeleteCall struct { } // Delete: Deletes an existing content category. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCategoriesDeleteCall { c := &ContentCategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23319,23 +17606,21 @@ func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesDeleteCall) Fields(s ...googleapi.Field) *ContentCategoriesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesDeleteCall) Context(ctx context.Context) *ContentCategoriesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23344,12 +17629,7 @@ func (c *ContentCategoriesDeleteCall) Header() http.Header { } func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -23364,7 +17644,7 @@ func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.delete" call. @@ -23376,42 +17656,10 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing content category.", - // "httpMethod": "DELETE", - // "id": "dfareporting.contentCategories.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.get": +} type ContentCategoriesGetCall struct { s *Service @@ -23424,6 +17672,9 @@ type ContentCategoriesGetCall struct { } // Get: Gets one content category by ID. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCategoriesGetCall { c := &ContentCategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23432,33 +17683,29 @@ func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCatego } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesGetCall) Fields(s ...googleapi.Field) *ContentCategoriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesGetCall) IfNoneMatch(entityTag string) *ContentCategoriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesGetCall) Context(ctx context.Context) *ContentCategoriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23467,12 +17714,7 @@ func (c *ContentCategoriesGetCall) Header() http.Header { } func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23490,16 +17732,15 @@ func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.get" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23507,17 +17748,17 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23530,42 +17771,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat return nil, err } return ret, nil - // { - // "description": "Gets one content category by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.insert": +} type ContentCategoriesInsertCall struct { s *Service @@ -23577,6 +17783,8 @@ type ContentCategoriesInsertCall struct { } // Insert: Inserts a new content category. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *ContentCategory) *ContentCategoriesInsertCall { c := &ContentCategoriesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -23585,23 +17793,21 @@ func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesInsertCall) Fields(s ...googleapi.Field) *ContentCategoriesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesInsertCall) Context(ctx context.Context) *ContentCategoriesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23610,18 +17816,12 @@ func (c *ContentCategoriesInsertCall) Header() http.Header { } func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -23634,16 +17834,15 @@ func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.insert" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23651,17 +17850,17 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23674,37 +17873,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Inserts a new content category.", - // "httpMethod": "POST", - // "id": "dfareporting.contentCategories.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.list": +} type ContentCategoriesListCall struct { s *Service @@ -23715,16 +17884,18 @@ type ContentCategoriesListCall struct { header_ http.Header } -// List: Retrieves a list of content categories, possibly filtered. This -// method supports paging. +// List: Retrieves a list of content categories, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListCall { c := &ContentCategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only content categories -// with these IDs. +// Ids sets the optional parameter "ids": Select only content categories with +// these IDs. func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall { var ids_ []string for _, v := range ids { @@ -23734,8 +17905,8 @@ func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ContentCategoriesListCall) MaxResults(maxResults int64) *ContentCategoriesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -23748,22 +17919,21 @@ func (c *ContentCategoriesListCall) PageToken(pageToken string) *ContentCategori return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "contentcategory*2015" will return objects with names like -// "contentcategory June 2015", "contentcategory April 2015", or simply -// "contentcategory 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "contentcategory" will match objects with -// name "my contentcategory", "contentcategory 2015", or simply -// "contentcategory". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "contentcategory*2015" will return objects with names like "contentcategory +// June 2015", "contentcategory April 2015", or simply "contentcategory 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "contentcategory" will +// match objects with name "my contentcategory", "contentcategory 2015", or +// simply "contentcategory". func (c *ContentCategoriesListCall) SearchString(searchString string) *ContentCategoriesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -23774,8 +17944,7 @@ func (c *ContentCategoriesListCall) SortField(sortField string) *ContentCategori return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -23787,33 +17956,29 @@ func (c *ContentCategoriesListCall) SortOrder(sortOrder string) *ContentCategori } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesListCall) Fields(s ...googleapi.Field) *ContentCategoriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesListCall) IfNoneMatch(entityTag string) *ContentCategoriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesListCall) Context(ctx context.Context) *ContentCategoriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23822,12 +17987,7 @@ func (c *ContentCategoriesListCall) Header() http.Header { } func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23844,16 +18004,15 @@ func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.list" call. -// Exactly one of *ContentCategoriesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ContentCategoriesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategoriesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCategoriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23861,17 +18020,17 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategoriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23884,85 +18043,6 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa return nil, err } return ret, nil - // { - // "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only content categories with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"contentcategory*2015\" will return objects with names like \"contentcategory June 2015\", \"contentcategory April 2015\", or simply \"contentcategory 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"contentcategory\" will match objects with name \"my contentcategory\", \"contentcategory 2015\", or simply \"contentcategory\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "response": { - // "$ref": "ContentCategoriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -23970,7 +18050,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // The provided context supersedes any context provided to the Context method. func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCategoriesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -23986,8 +18066,6 @@ func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCa } } -// method id "dfareporting.contentCategories.patch": - type ContentCategoriesPatchCall struct { s *Service profileId int64 @@ -23997,8 +18075,11 @@ type ContentCategoriesPatchCall struct { header_ http.Header } -// Patch: Updates an existing content category. This method supports -// patch semantics. +// Patch: Updates an existing content category. This method supports patch +// semantics. +// +// - id: Content category ID. +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcategory *ContentCategory) *ContentCategoriesPatchCall { c := &ContentCategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24008,23 +18089,21 @@ func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcateg } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesPatchCall) Fields(s ...googleapi.Field) *ContentCategoriesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesPatchCall) Context(ctx context.Context) *ContentCategoriesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24033,18 +18112,12 @@ func (c *ContentCategoriesPatchCall) Header() http.Header { } func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -24057,16 +18130,15 @@ func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.patch" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24074,17 +18146,17 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -24097,45 +18169,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC return nil, err } return ret, nil - // { - // "description": "Updates an existing content category. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.contentCategories.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.update": +} type ContentCategoriesUpdateCall struct { s *Service @@ -24147,6 +18181,8 @@ type ContentCategoriesUpdateCall struct { } // Update: Updates an existing content category. +// +// - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) Update(profileId int64, contentcategory *ContentCategory) *ContentCategoriesUpdateCall { c := &ContentCategoriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24155,23 +18191,21 @@ func (r *ContentCategoriesService) Update(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesUpdateCall) Fields(s ...googleapi.Field) *ContentCategoriesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesUpdateCall) Context(ctx context.Context) *ContentCategoriesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24180,18 +18214,12 @@ func (c *ContentCategoriesUpdateCall) Header() http.Header { } func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -24204,16 +18232,15 @@ func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.update" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24221,17 +18248,17 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -24244,37 +18271,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Updates an existing content category.", - // "httpMethod": "PUT", - // "id": "dfareporting.contentCategories.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.conversions.batchinsert": +} type ConversionsBatchinsertCall struct { s *Service @@ -24286,6 +18283,8 @@ type ConversionsBatchinsertCall struct { } // Batchinsert: Inserts conversions. +// +// - profileId: User profile ID associated with this request. func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsertrequest *ConversionsBatchInsertRequest) *ConversionsBatchinsertCall { c := &ConversionsBatchinsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24294,23 +18293,21 @@ func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchinsertCall) Fields(s ...googleapi.Field) *ConversionsBatchinsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchinsertCall) Context(ctx context.Context) *ConversionsBatchinsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchinsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24319,18 +18316,12 @@ func (c *ConversionsBatchinsertCall) Header() http.Header { } func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchinsertrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchinsert") @@ -24343,16 +18334,15 @@ func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchinsert" call. -// Exactly one of *ConversionsBatchInsertResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchInsertResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchInsertResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchInsertResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24360,17 +18350,17 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchInsertResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24383,37 +18373,7 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Inserts conversions.", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchinsert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchinsert", - // "request": { - // "$ref": "ConversionsBatchInsertRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchInsertResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.conversions.batchupdate": +} type ConversionsBatchupdateCall struct { s *Service @@ -24425,6 +18385,8 @@ type ConversionsBatchupdateCall struct { } // Batchupdate: Updates existing conversions. +// +// - profileId: User profile ID associated with this request. func (r *ConversionsService) Batchupdate(profileId int64, conversionsbatchupdaterequest *ConversionsBatchUpdateRequest) *ConversionsBatchupdateCall { c := &ConversionsBatchupdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24433,23 +18395,21 @@ func (r *ConversionsService) Batchupdate(profileId int64, conversionsbatchupdate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchupdateCall) Fields(s ...googleapi.Field) *ConversionsBatchupdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchupdateCall) Context(ctx context.Context) *ConversionsBatchupdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchupdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24458,18 +18418,12 @@ func (c *ConversionsBatchupdateCall) Header() http.Header { } func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchupdaterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchupdate") @@ -24482,16 +18436,15 @@ func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchupdate" call. -// Exactly one of *ConversionsBatchUpdateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchUpdateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchUpdateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchUpdateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24499,17 +18452,17 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchUpdateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24522,37 +18475,7 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Updates existing conversions.", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchupdate", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchupdate", - // "request": { - // "$ref": "ConversionsBatchUpdateRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.countries.get": +} type CountriesGetCall struct { s *Service @@ -24565,6 +18488,9 @@ type CountriesGetCall struct { } // Get: Gets one country by ID. +// +// - dartId: Country DART ID. +// - profileId: User profile ID associated with this request. func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall { c := &CountriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24573,33 +18499,29 @@ func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesGetCall) Fields(s ...googleapi.Field) *CountriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesGetCall) IfNoneMatch(entityTag string) *CountriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesGetCall) Context(ctx context.Context) *CountriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24608,12 +18530,7 @@ func (c *CountriesGetCall) Header() http.Header { } func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24631,16 +18548,14 @@ func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.get" call. -// Exactly one of *Country or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Country.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Country.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24648,17 +18563,17 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Country{ ServerResponse: googleapi.ServerResponse{ @@ -24671,42 +18586,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { return nil, err } return ret, nil - // { - // "description": "Gets one country by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.countries.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Country DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries/{dartId}", - // "response": { - // "$ref": "Country" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.countries.list": +} type CountriesListCall struct { s *Service @@ -24718,6 +18598,8 @@ type CountriesListCall struct { } // List: Retrieves a list of countries. +// +// - profileId: User profile ID associated with this request. func (r *CountriesService) List(profileId int64) *CountriesListCall { c := &CountriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24725,33 +18607,29 @@ func (r *CountriesService) List(profileId int64) *CountriesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesListCall) Fields(s ...googleapi.Field) *CountriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesListCall) IfNoneMatch(entityTag string) *CountriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesListCall) Context(ctx context.Context) *CountriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24760,12 +18638,7 @@ func (c *CountriesListCall) Header() http.Header { } func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24782,16 +18655,15 @@ func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.list" call. -// Exactly one of *CountriesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CountriesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CountriesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24799,17 +18671,17 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CountriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24822,34 +18694,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of countries.", - // "httpMethod": "GET", - // "id": "dfareporting.countries.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries", - // "response": { - // "$ref": "CountriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeAssets.insert": +} type CreativeAssetsInsertCall struct { s *Service @@ -24863,6 +18708,9 @@ type CreativeAssetsInsertCall struct { } // Insert: Inserts a new creative asset. +// +// - advertiserId: Advertiser ID of this creative. This is a required field. +// - profileId: User profile ID associated with this request. func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall { c := &CreativeAssetsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24871,54 +18719,51 @@ func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, crea return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeAssetsInsertCall) Fields(s ...googleapi.Field) *CreativeAssetsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsInsertCall { @@ -24926,8 +18771,8 @@ func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsI return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeAssetsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24936,18 +18781,12 @@ func (c *CreativeAssetsInsertCall) Header() http.Header { } func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativeassetmetadata) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") @@ -24972,16 +18811,15 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeAssets.insert" call. -// Exactly one of *CreativeAssetMetadata or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeAssetMetadata.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeAssetMetadata.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24989,17 +18827,17 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -25015,7 +18853,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &CreativeAssetMetadata{ @@ -25029,62 +18867,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs return nil, err } return ret, nil - // { - // "description": "Inserts a new creative asset.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeAssets.insert", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "maxSize": "1024MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/dfareporting/v3.2/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/dfareporting/v3.2/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // } - // } - // }, - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Advertiser ID of this creative. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - // "request": { - // "$ref": "CreativeAssetMetadata" - // }, - // "response": { - // "$ref": "CreativeAssetMetadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "dfareporting.creativeFieldValues.delete": +} type CreativeFieldValuesDeleteCall struct { s *Service @@ -25097,6 +18880,10 @@ type CreativeFieldValuesDeleteCall struct { } // Delete: Deletes an existing creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesDeleteCall { c := &CreativeFieldValuesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25106,23 +18893,21 @@ func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldValuesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesDeleteCall) Context(ctx context.Context) *CreativeFieldValuesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25131,12 +18916,7 @@ func (c *CreativeFieldValuesDeleteCall) Header() http.Header { } func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -25152,7 +18932,7 @@ func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, e "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.delete" call. @@ -25164,50 +18944,10 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field value.", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFieldValues.delete", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.get": +} type CreativeFieldValuesGetCall struct { s *Service @@ -25221,6 +18961,10 @@ type CreativeFieldValuesGetCall struct { } // Get: Gets one creative field value by ID. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesGetCall { c := &CreativeFieldValuesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25230,33 +18974,29 @@ func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesGetCall) Fields(s ...googleapi.Field) *CreativeFieldValuesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesGetCall) IfNoneMatch(entityTag string) *CreativeFieldValuesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesGetCall) Context(ctx context.Context) *CreativeFieldValuesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25265,12 +19005,7 @@ func (c *CreativeFieldValuesGetCall) Header() http.Header { } func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25289,16 +19024,15 @@ func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, erro "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.get" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25306,17 +19040,17 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25329,50 +19063,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative return nil, err } return ret, nil - // { - // "description": "Gets one creative field value by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.get", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.insert": +} type CreativeFieldValuesInsertCall struct { s *Service @@ -25385,6 +19076,9 @@ type CreativeFieldValuesInsertCall struct { } // Insert: Inserts a new creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesInsertCall { c := &CreativeFieldValuesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25394,23 +19088,21 @@ func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesInsertCall) Fields(s ...googleapi.Field) *CreativeFieldValuesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesInsertCall) Context(ctx context.Context) *CreativeFieldValuesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25419,18 +19111,12 @@ func (c *CreativeFieldValuesInsertCall) Header() http.Header { } func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -25444,16 +19130,15 @@ func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.insert" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25461,17 +19146,17 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25484,45 +19169,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field value.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFieldValues.insert", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.list": +} type CreativeFieldValuesListCall struct { s *Service @@ -25534,8 +19181,11 @@ type CreativeFieldValuesListCall struct { header_ http.Header } -// List: Retrieves a list of creative field values, possibly filtered. -// This method supports paging. +// List: Retrieves a list of creative field values, possibly filtered. This +// method supports paging. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64) *CreativeFieldValuesListCall { c := &CreativeFieldValuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25543,8 +19193,8 @@ func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64 return c } -// Ids sets the optional parameter "ids": Select only creative field -// values with these IDs. +// Ids sets the optional parameter "ids": Select only creative field values +// with these IDs. func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesListCall { var ids_ []string for _, v := range ids { @@ -25554,8 +19204,8 @@ func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldValuesListCall) MaxResults(maxResults int64) *CreativeFieldValuesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -25568,16 +19218,16 @@ func (c *CreativeFieldValuesListCall) PageToken(pageToken string) *CreativeField return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative field values by their values. Wildcards (e.g. -// *) are not allowed. +// SearchString sets the optional parameter "searchString": Allows searching +// for creative field values by their values. Wildcards (e.g. *) are not +// allowed. func (c *CreativeFieldValuesListCall) SearchString(searchString string) *CreativeFieldValuesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -25588,8 +19238,7 @@ func (c *CreativeFieldValuesListCall) SortField(sortField string) *CreativeField return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -25601,33 +19250,29 @@ func (c *CreativeFieldValuesListCall) SortOrder(sortOrder string) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesListCall) Fields(s ...googleapi.Field) *CreativeFieldValuesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesListCall) IfNoneMatch(entityTag string) *CreativeFieldValuesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesListCall) Context(ctx context.Context) *CreativeFieldValuesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25636,12 +19281,7 @@ func (c *CreativeFieldValuesListCall) Header() http.Header { } func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25659,16 +19299,15 @@ func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.list" call. -// Exactly one of *CreativeFieldValuesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *CreativeFieldValuesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValuesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValuesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25676,17 +19315,17 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValuesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25699,93 +19338,6 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.list", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative field values with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative field values by their values. Wildcards (e.g. *) are not allowed.", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "VALUE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "response": { - // "$ref": "CreativeFieldValuesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -25793,7 +19345,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*CreativeFieldValuesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -25809,8 +19361,6 @@ func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*Creativ } } -// method id "dfareporting.creativeFieldValues.patch": - type CreativeFieldValuesPatchCall struct { s *Service profileId int64 @@ -25821,8 +19371,12 @@ type CreativeFieldValuesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative field value. This method supports -// patch semantics. +// Patch: Updates an existing creative field value. This method supports patch +// semantics. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - id: Creative Field Value ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int64, id int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesPatchCall { c := &CreativeFieldValuesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25833,23 +19387,21 @@ func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesPatchCall) Fields(s ...googleapi.Field) *CreativeFieldValuesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesPatchCall) Context(ctx context.Context) *CreativeFieldValuesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25858,18 +19410,12 @@ func (c *CreativeFieldValuesPatchCall) Header() http.Header { } func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -25883,16 +19429,15 @@ func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.patch" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25900,17 +19445,17 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25923,53 +19468,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFieldValues.patch", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.update": +} type CreativeFieldValuesUpdateCall struct { s *Service @@ -25982,6 +19481,9 @@ type CreativeFieldValuesUpdateCall struct { } // Update: Updates an existing creative field value. +// +// - creativeFieldId: Creative field ID for this creative field value. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesUpdateCall { c := &CreativeFieldValuesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25991,23 +19493,21 @@ func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldValuesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesUpdateCall) Context(ctx context.Context) *CreativeFieldValuesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26016,18 +19516,12 @@ func (c *CreativeFieldValuesUpdateCall) Header() http.Header { } func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -26041,16 +19535,15 @@ func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.update" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26058,17 +19551,17 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -26081,45 +19574,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFieldValues.update", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.delete": +} type CreativeFieldsDeleteCall struct { s *Service @@ -26131,6 +19586,9 @@ type CreativeFieldsDeleteCall struct { } // Delete: Deletes an existing creative field. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeFieldsDeleteCall { c := &CreativeFieldsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26139,23 +19597,21 @@ func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsDeleteCall) Context(ctx context.Context) *CreativeFieldsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26164,12 +19620,7 @@ func (c *CreativeFieldsDeleteCall) Header() http.Header { } func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -26184,7 +19635,7 @@ func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.delete" call. @@ -26196,42 +19647,10 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field.", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFields.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.get": +} type CreativeFieldsGetCall struct { s *Service @@ -26244,6 +19663,9 @@ type CreativeFieldsGetCall struct { } // Get: Gets one creative field by ID. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGetCall { c := &CreativeFieldsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26252,33 +19674,29 @@ func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsGetCall) Fields(s ...googleapi.Field) *CreativeFieldsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsGetCall) IfNoneMatch(entityTag string) *CreativeFieldsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsGetCall) Context(ctx context.Context) *CreativeFieldsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26287,12 +19705,7 @@ func (c *CreativeFieldsGetCall) Header() http.Header { } func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26310,16 +19723,14 @@ func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.get" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26327,17 +19738,17 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26350,42 +19761,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField return nil, err } return ret, nil - // { - // "description": "Gets one creative field by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.insert": +} type CreativeFieldsInsertCall struct { s *Service @@ -26397,6 +19773,8 @@ type CreativeFieldsInsertCall struct { } // Insert: Inserts a new creative field. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeField) *CreativeFieldsInsertCall { c := &CreativeFieldsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26405,23 +19783,21 @@ func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsInsertCall) Fields(s ...googleapi.Field) *CreativeFieldsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsInsertCall) Context(ctx context.Context) *CreativeFieldsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26430,18 +19806,12 @@ func (c *CreativeFieldsInsertCall) Header() http.Header { } func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -26454,16 +19824,14 @@ func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.insert" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26471,17 +19839,17 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26494,37 +19862,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFields.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.list": +} type CreativeFieldsListCall struct { s *Service @@ -26535,16 +19873,18 @@ type CreativeFieldsListCall struct { header_ http.Header } -// List: Retrieves a list of creative fields, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative fields, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall { c := &CreativeFieldsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative fields that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative fields that belong to these advertisers. func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeFieldsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -26554,8 +19894,8 @@ func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// Ids sets the optional parameter "ids": Select only creative fields -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative fields with +// these IDs. func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { var ids_ []string for _, v := range ids { @@ -26565,8 +19905,8 @@ func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldsListCall) MaxResults(maxResults int64) *CreativeFieldsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -26579,22 +19919,21 @@ func (c *CreativeFieldsListCall) PageToken(pageToken string) *CreativeFieldsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative fields by name or ID. Wildcards (*) are -// allowed. For example, "creativefield*2015" will return creative -// fields with names like "creativefield June 2015", "creativefield -// April 2015", or simply "creativefield 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativefield" will match -// creative fields with the name "my creativefield", "creativefield -// 2015", or simply "creativefield". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative fields by name or ID. Wildcards (*) are allowed. For example, +// "creativefield*2015" will return creative fields with names like +// "creativefield June 2015", "creativefield April 2015", or simply +// "creativefield 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativefield" will match creative fields with the name "my creativefield", +// "creativefield 2015", or simply "creativefield". func (c *CreativeFieldsListCall) SearchString(searchString string) *CreativeFieldsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -26605,8 +19944,7 @@ func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -26618,33 +19956,29 @@ func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsListCall) Fields(s ...googleapi.Field) *CreativeFieldsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsListCall) IfNoneMatch(entityTag string) *CreativeFieldsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsListCall) Context(ctx context.Context) *CreativeFieldsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26653,12 +19987,7 @@ func (c *CreativeFieldsListCall) Header() http.Header { } func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26675,16 +20004,15 @@ func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.list" call. -// Exactly one of *CreativeFieldsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeFieldsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeFieldsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26692,17 +20020,17 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -26715,92 +20043,6 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative fields that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative fields with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative fields by name or ID. Wildcards (*) are allowed. For example, \"creativefield*2015\" will return creative fields with names like \"creativefield June 2015\", \"creativefield April 2015\", or simply \"creativefield 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativefield\" will match creative fields with the name \"my creativefield\", \"creativefield 2015\", or simply \"creativefield\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "response": { - // "$ref": "CreativeFieldsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -26808,7 +20050,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFieldsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -26824,8 +20066,6 @@ func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFiel } } -// method id "dfareporting.creativeFields.patch": - type CreativeFieldsPatchCall struct { s *Service profileId int64 @@ -26837,6 +20077,9 @@ type CreativeFieldsPatchCall struct { // Patch: Updates an existing creative field. This method supports patch // semantics. +// +// - id: Creative Field ID. +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield *CreativeField) *CreativeFieldsPatchCall { c := &CreativeFieldsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26846,23 +20089,21 @@ func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsPatchCall) Fields(s ...googleapi.Field) *CreativeFieldsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsPatchCall) Context(ctx context.Context) *CreativeFieldsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26871,18 +20112,12 @@ func (c *CreativeFieldsPatchCall) Header() http.Header { } func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -26895,16 +20130,14 @@ func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.patch" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26912,17 +20145,17 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26935,45 +20168,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFields.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.update": +} type CreativeFieldsUpdateCall struct { s *Service @@ -26985,6 +20180,8 @@ type CreativeFieldsUpdateCall struct { } // Update: Updates an existing creative field. +// +// - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeField) *CreativeFieldsUpdateCall { c := &CreativeFieldsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -26993,23 +20190,21 @@ func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsUpdateCall) Context(ctx context.Context) *CreativeFieldsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27018,18 +20213,12 @@ func (c *CreativeFieldsUpdateCall) Header() http.Header { } func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -27042,16 +20231,14 @@ func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.update" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27059,17 +20246,17 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -27082,37 +20269,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFields.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.get": +} type CreativeGroupsGetCall struct { s *Service @@ -27125,6 +20282,9 @@ type CreativeGroupsGetCall struct { } // Get: Gets one creative group by ID. +// +// - id: Creative group ID. +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGetCall { c := &CreativeGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27133,33 +20293,29 @@ func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsGetCall) Fields(s ...googleapi.Field) *CreativeGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsGetCall) IfNoneMatch(entityTag string) *CreativeGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsGetCall) Context(ctx context.Context) *CreativeGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27168,12 +20324,7 @@ func (c *CreativeGroupsGetCall) Header() http.Header { } func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27191,16 +20342,14 @@ func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.get" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27208,17 +20357,17 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27231,42 +20380,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup return nil, err } return ret, nil - // { - // "description": "Gets one creative group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups/{id}", - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.insert": +} type CreativeGroupsInsertCall struct { s *Service @@ -27278,6 +20392,8 @@ type CreativeGroupsInsertCall struct { } // Insert: Inserts a new creative group. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsInsertCall { c := &CreativeGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27286,23 +20402,21 @@ func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsInsertCall) Fields(s ...googleapi.Field) *CreativeGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsInsertCall) Context(ctx context.Context) *CreativeGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27311,18 +20425,12 @@ func (c *CreativeGroupsInsertCall) Header() http.Header { } func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27335,16 +20443,14 @@ func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.insert" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27352,17 +20458,17 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27375,37 +20481,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Inserts a new creative group.", - // "httpMethod": "POST", - // "id": "dfareporting.creativeGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.list": +} type CreativeGroupsListCall struct { s *Service @@ -27416,16 +20492,18 @@ type CreativeGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of creative groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall { c := &CreativeGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative groups that belong to these advertisers. func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -27435,15 +20513,15 @@ func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// GroupNumber sets the optional parameter "groupNumber": Select only -// creative groups that belong to this subgroup. +// GroupNumber sets the optional parameter "groupNumber": Select only creative +// groups that belong to this subgroup. func (c *CreativeGroupsListCall) GroupNumber(groupNumber int64) *CreativeGroupsListCall { c.urlParams_.Set("groupNumber", fmt.Sprint(groupNumber)) return c } -// Ids sets the optional parameter "ids": Select only creative groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative groups with +// these IDs. func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { var ids_ []string for _, v := range ids { @@ -27453,8 +20531,8 @@ func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeGroupsListCall) MaxResults(maxResults int64) *CreativeGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -27467,22 +20545,21 @@ func (c *CreativeGroupsListCall) PageToken(pageToken string) *CreativeGroupsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative groups by name or ID. Wildcards (*) are -// allowed. For example, "creativegroup*2015" will return creative -// groups with names like "creativegroup June 2015", "creativegroup -// April 2015", or simply "creativegroup 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativegroup" will match -// creative groups with the name "my creativegroup", "creativegroup -// 2015", or simply "creativegroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative groups by name or ID. Wildcards (*) are allowed. For example, +// "creativegroup*2015" will return creative groups with names like +// "creativegroup June 2015", "creativegroup April 2015", or simply +// "creativegroup 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativegroup" will match creative groups with the name "my creativegroup", +// "creativegroup 2015", or simply "creativegroup". func (c *CreativeGroupsListCall) SearchString(searchString string) *CreativeGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -27493,8 +20570,7 @@ func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -27506,33 +20582,29 @@ func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsListCall) Fields(s ...googleapi.Field) *CreativeGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsListCall) IfNoneMatch(entityTag string) *CreativeGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsListCall) Context(ctx context.Context) *CreativeGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27541,12 +20613,7 @@ func (c *CreativeGroupsListCall) Header() http.Header { } func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27563,16 +20630,15 @@ func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.list" call. -// Exactly one of *CreativeGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27580,17 +20646,17 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -27603,100 +20669,6 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupNumber": { - // "description": "Select only creative groups that belong to this subgroup.", - // "format": "int32", - // "location": "query", - // "maximum": "2", - // "minimum": "1", - // "type": "integer" - // }, - // "ids": { - // "description": "Select only creative groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative groups by name or ID. Wildcards (*) are allowed. For example, \"creativegroup*2015\" will return creative groups with names like \"creativegroup June 2015\", \"creativegroup April 2015\", or simply \"creativegroup 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativegroup\" will match creative groups with the name \"my creativegroup\", \"creativegroup 2015\", or simply \"creativegroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "response": { - // "$ref": "CreativeGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -27704,7 +20676,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // The provided context supersedes any context provided to the Context method. func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -27720,8 +20692,6 @@ func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGrou } } -// method id "dfareporting.creativeGroups.patch": - type CreativeGroupsPatchCall struct { s *Service profileId int64 @@ -27733,6 +20703,9 @@ type CreativeGroupsPatchCall struct { // Patch: Updates an existing creative group. This method supports patch // semantics. +// +// - id: Creative group ID. +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup *CreativeGroup) *CreativeGroupsPatchCall { c := &CreativeGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27742,23 +20715,21 @@ func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsPatchCall) Fields(s ...googleapi.Field) *CreativeGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsPatchCall) Context(ctx context.Context) *CreativeGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27767,18 +20738,12 @@ func (c *CreativeGroupsPatchCall) Header() http.Header { } func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27791,16 +20756,14 @@ func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.patch" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27808,17 +20771,17 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27831,45 +20794,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.update": +} type CreativeGroupsUpdateCall struct { s *Service @@ -27881,6 +20806,8 @@ type CreativeGroupsUpdateCall struct { } // Update: Updates an existing creative group. +// +// - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsUpdateCall { c := &CreativeGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -27889,23 +20816,21 @@ func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsUpdateCall) Fields(s ...googleapi.Field) *CreativeGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsUpdateCall) Context(ctx context.Context) *CreativeGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27914,18 +20839,12 @@ func (c *CreativeGroupsUpdateCall) Header() http.Header { } func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27938,16 +20857,14 @@ func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.update" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27955,17 +20872,17 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27978,37 +20895,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group.", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.get": +} type CreativesGetCall struct { s *Service @@ -28021,6 +20908,9 @@ type CreativesGetCall struct { } // Get: Gets one creative by ID. +// +// - id: Creative ID. +// - profileId: User profile ID associated with this request. func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { c := &CreativesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28029,33 +20919,29 @@ func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28064,12 +20950,7 @@ func (c *CreativesGetCall) Header() http.Header { } func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28087,16 +20968,14 @@ func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28104,17 +20983,17 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -28127,42 +21006,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return nil, err } return ret, nil - // { - // "description": "Gets one creative by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives/{id}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.insert": +} type CreativesInsertCall struct { s *Service @@ -28174,6 +21018,8 @@ type CreativesInsertCall struct { } // Insert: Inserts a new creative. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) Insert(profileId int64, creative *Creative) *CreativesInsertCall { c := &CreativesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28182,23 +21028,21 @@ func (r *CreativesService) Insert(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28207,18 +21051,12 @@ func (c *CreativesInsertCall) Header() http.Header { } func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -28231,16 +21069,14 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.insert" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28248,17 +21084,17 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -28271,37 +21107,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Inserts a new creative.", - // "httpMethod": "POST", - // "id": "dfareporting.creatives.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.list": +} type CreativesListCall struct { s *Service @@ -28312,16 +21118,18 @@ type CreativesListCall struct { header_ http.Header } -// List: Retrieves a list of creatives, possibly filtered. This method -// supports paging. +// List: Retrieves a list of creatives, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) List(profileId int64) *CreativesListCall { c := &CreativesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Active sets the optional parameter "active": Select only active -// creatives. Leave blank to select active and inactive creatives. +// Active sets the optional parameter "active": Select only active creatives. +// Leave blank to select active and inactive creatives. func (c *CreativesListCall) Active(active bool) *CreativesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c @@ -28341,16 +21149,15 @@ func (c *CreativesListCall) Archived(archived bool) *CreativesListCall { return c } -// CampaignId sets the optional parameter "campaignId": Select only -// creatives with this campaign ID. +// CampaignId sets the optional parameter "campaignId": Select only creatives +// with this campaign ID. func (c *CreativesListCall) CampaignId(campaignId int64) *CreativesListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// CompanionCreativeIds sets the optional parameter -// "companionCreativeIds": Select only in-stream video creatives with -// these companion IDs. +// CompanionCreativeIds sets the optional parameter "companionCreativeIds": +// Select only in-stream video creatives with these companion IDs. func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) *CreativesListCall { var companionCreativeIds_ []string for _, v := range companionCreativeIds { @@ -28360,8 +21167,8 @@ func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) return c } -// CreativeFieldIds sets the optional parameter "creativeFieldIds": -// Select only creatives with these creative field IDs. +// CreativeFieldIds sets the optional parameter "creativeFieldIds": Select only +// creatives with these creative field IDs. func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *CreativesListCall { var creativeFieldIds_ []string for _, v := range creativeFieldIds { @@ -28371,8 +21178,7 @@ func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *Creativ return c } -// Ids sets the optional parameter "ids": Select only creatives with -// these IDs. +// Ids sets the optional parameter "ids": Select only creatives with these IDs. func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { var ids_ []string for _, v := range ids { @@ -28382,8 +21188,8 @@ func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -28407,21 +21213,20 @@ func (c *CreativesListCall) RenderingIds(renderingIds ...int64) *CreativesListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "creative*2015" will return objects with names like -// "creative June 2015", "creative April 2015", or simply "creative -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "creative" will match objects with name "my creative", "creative -// 2015", or simply "creative". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "creative*2015" will return objects with names like "creative June 2015", +// "creative April 2015", or simply "creative 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "creative" will match objects with name "my +// creative", "creative 2015", or simply "creative". func (c *CreativesListCall) SearchString(searchString string) *CreativesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only creatives -// with these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only creatives with +// these size IDs. func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -28431,8 +21236,8 @@ func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -28443,8 +21248,7 @@ func (c *CreativesListCall) SortField(sortField string) *CreativesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -28455,15 +21259,15 @@ func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall { return c } -// StudioCreativeId sets the optional parameter "studioCreativeId": -// Select only creatives corresponding to this Studio creative ID. +// StudioCreativeId sets the optional parameter "studioCreativeId": Select only +// creatives corresponding to this Studio creative ID. func (c *CreativesListCall) StudioCreativeId(studioCreativeId int64) *CreativesListCall { c.urlParams_.Set("studioCreativeId", fmt.Sprint(studioCreativeId)) return c } -// Types sets the optional parameter "types": Select only creatives with -// these creative types. +// Types sets the optional parameter "types": Select only creatives with these +// creative types. // // Possible values: // @@ -28498,33 +21302,29 @@ func (c *CreativesListCall) Types(types ...string) *CreativesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28533,12 +21333,7 @@ func (c *CreativesListCall) Header() http.Header { } func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28555,16 +21350,15 @@ func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.list" call. -// Exactly one of *CreativesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28572,17 +21366,17 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -28595,201 +21389,6 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active creatives. Leave blank to select active and inactive creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only creatives with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived creatives. Leave blank to select archived and unarchived creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignId": { - // "description": "Select only creatives with this campaign ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "companionCreativeIds": { - // "description": "Select only in-stream video creatives with these companion IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeFieldIds": { - // "description": "Select only creatives with these creative field IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creatives with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "renderingIds": { - // "description": "Select only creatives with these rendering IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"creative*2015\" will return objects with names like \"creative June 2015\", \"creative April 2015\", or simply \"creative 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"creative\" will match objects with name \"my creative\", \"creative 2015\", or simply \"creative\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only creatives with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "studioCreativeId": { - // "description": "Select only creatives corresponding to this Studio creative ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "types": { - // "description": "Select only creatives with these creative types.", - // "enum": [ - // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO", - // "CUSTOM_DISPLAY", - // "CUSTOM_DISPLAY_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_IMAGE_GALLERY", - // "DISPLAY_REDIRECT", - // "FLASH_INPAGE", - // "HTML5_BANNER", - // "IMAGE", - // "INSTREAM_AUDIO", - // "INSTREAM_VIDEO", - // "INSTREAM_VIDEO_REDIRECT", - // "INTERNAL_REDIRECT", - // "INTERSTITIAL_INTERNAL_REDIRECT", - // "RICH_MEDIA_DISPLAY_BANNER", - // "RICH_MEDIA_DISPLAY_EXPANDING", - // "RICH_MEDIA_DISPLAY_INTERSTITIAL", - // "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL", - // "RICH_MEDIA_IM_EXPAND", - // "RICH_MEDIA_INPAGE_FLOATING", - // "RICH_MEDIA_MOBILE_IN_APP", - // "RICH_MEDIA_PEEL_DOWN", - // "TRACKING_TEXT", - // "VPAID_LINEAR_VIDEO", - // "VPAID_NON_LINEAR_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "response": { - // "$ref": "CreativesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -28797,7 +21396,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // The provided context supersedes any context provided to the Context method. func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -28813,8 +21412,6 @@ func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResp } } -// method id "dfareporting.creatives.patch": - type CreativesPatchCall struct { s *Service profileId int64 @@ -28824,8 +21421,10 @@ type CreativesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative. This method supports patch -// semantics. +// Patch: Updates an existing creative. This method supports patch semantics. +// +// - id: Creative ID. +// - profileId: User profile ID associated with this request. func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) *CreativesPatchCall { c := &CreativesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28835,23 +21434,21 @@ func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesPatchCall) Fields(s ...googleapi.Field) *CreativesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesPatchCall) Context(ctx context.Context) *CreativesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28860,18 +21457,12 @@ func (c *CreativesPatchCall) Header() http.Header { } func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -28884,16 +21475,14 @@ func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.patch" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28901,17 +21490,17 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -28924,45 +21513,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing creative. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.creatives.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.update": +} type CreativesUpdateCall struct { s *Service @@ -28974,6 +21525,8 @@ type CreativesUpdateCall struct { } // Update: Updates an existing creative. +// +// - profileId: User profile ID associated with this request. func (r *CreativesService) Update(profileId int64, creative *Creative) *CreativesUpdateCall { c := &CreativesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -28982,23 +21535,21 @@ func (r *CreativesService) Update(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesUpdateCall) Fields(s ...googleapi.Field) *CreativesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesUpdateCall) Context(ctx context.Context) *CreativesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29007,18 +21558,12 @@ func (c *CreativesUpdateCall) Header() http.Header { } func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -29031,16 +21576,14 @@ func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.update" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29048,17 +21591,17 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -29071,37 +21614,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Updates an existing creative.", - // "httpMethod": "PUT", - // "id": "dfareporting.creatives.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dimensionValues.query": +} type DimensionValuesQueryCall struct { s *Service @@ -29112,8 +21625,9 @@ type DimensionValuesQueryCall struct { header_ http.Header } -// Query: Retrieves list of report dimension values for a list of -// filters. +// Query: Retrieves list of report dimension values for a list of filters. +// +// - profileId: The DFA user profile ID. func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall { c := &DimensionValuesQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29121,8 +21635,8 @@ func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *D return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DimensionValuesQueryCall) MaxResults(maxResults int64) *DimensionValuesQueryCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -29136,23 +21650,21 @@ func (c *DimensionValuesQueryCall) PageToken(pageToken string) *DimensionValuesQ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DimensionValuesQueryCall) Fields(s ...googleapi.Field) *DimensionValuesQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DimensionValuesQueryCall) Context(ctx context.Context) *DimensionValuesQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DimensionValuesQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29161,18 +21673,12 @@ func (c *DimensionValuesQueryCall) Header() http.Header { } func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dimensionvaluerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dimensionvalues/query") @@ -29185,16 +21691,15 @@ func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dimensionValues.query" call. -// Exactly one of *DimensionValueList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DimensionValueList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DimensionValueList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionValueList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29202,17 +21707,17 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DimensionValueList{ ServerResponse: googleapi.ServerResponse{ @@ -29225,48 +21730,6 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV return nil, err } return ret, nil - // { - // "description": "Retrieves list of report dimension values for a list of filters.", - // "httpMethod": "POST", - // "id": "dfareporting.dimensionValues.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "100", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dimensionvalues/query", - // "request": { - // "$ref": "DimensionValueRequest" - // }, - // "response": { - // "$ref": "DimensionValueList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -29274,7 +21737,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // The provided context supersedes any context provided to the Context method. func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionValueList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -29290,8 +21753,6 @@ func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionV } } -// method id "dfareporting.directorySiteContacts.get": - type DirectorySiteContactsGetCall struct { s *Service profileId int64 @@ -29303,6 +21764,9 @@ type DirectorySiteContactsGetCall struct { } // Get: Gets one directory site contact by ID. +// +// - id: Directory site contact ID. +// - profileId: User profile ID associated with this request. func (r *DirectorySiteContactsService) Get(profileId int64, id int64) *DirectorySiteContactsGetCall { c := &DirectorySiteContactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29311,33 +21775,29 @@ func (r *DirectorySiteContactsService) Get(profileId int64, id int64) *Directory } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySiteContactsGetCall) Fields(s ...googleapi.Field) *DirectorySiteContactsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySiteContactsGetCall) IfNoneMatch(entityTag string) *DirectorySiteContactsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySiteContactsGetCall) Context(ctx context.Context) *DirectorySiteContactsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySiteContactsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29346,12 +21806,7 @@ func (c *DirectorySiteContactsGetCall) Header() http.Header { } func (c *DirectorySiteContactsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29369,16 +21824,15 @@ func (c *DirectorySiteContactsGetCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySiteContacts.get" call. -// Exactly one of *DirectorySiteContact or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DirectorySiteContact.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySiteContact.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DirectorySiteContactsGetCall) Do(opts ...googleapi.CallOption) (*DirectorySiteContact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29386,17 +21840,17 @@ func (c *DirectorySiteContactsGetCall) Do(opts ...googleapi.CallOption) (*Direct if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySiteContact{ ServerResponse: googleapi.ServerResponse{ @@ -29409,42 +21863,7 @@ func (c *DirectorySiteContactsGetCall) Do(opts ...googleapi.CallOption) (*Direct return nil, err } return ret, nil - // { - // "description": "Gets one directory site contact by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySiteContacts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Directory site contact ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySiteContacts/{id}", - // "response": { - // "$ref": "DirectorySiteContact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySiteContacts.list": +} type DirectorySiteContactsListCall struct { s *Service @@ -29455,17 +21874,19 @@ type DirectorySiteContactsListCall struct { header_ http.Header } -// List: Retrieves a list of directory site contacts, possibly filtered. -// This method supports paging. +// List: Retrieves a list of directory site contacts, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySiteContactsService) List(profileId int64) *DirectorySiteContactsListCall { c := &DirectorySiteContactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only directory site contacts with these directory site IDs. -// This is a required field. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// directory site contacts with these directory site IDs. This is a required +// field. func (c *DirectorySiteContactsListCall) DirectorySiteIds(directorySiteIds ...int64) *DirectorySiteContactsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -29475,8 +21896,8 @@ func (c *DirectorySiteContactsListCall) DirectorySiteIds(directorySiteIds ...int return c } -// Ids sets the optional parameter "ids": Select only directory site -// contacts with these IDs. +// Ids sets the optional parameter "ids": Select only directory site contacts +// with these IDs. func (c *DirectorySiteContactsListCall) Ids(ids ...int64) *DirectorySiteContactsListCall { var ids_ []string for _, v := range ids { @@ -29486,8 +21907,8 @@ func (c *DirectorySiteContactsListCall) Ids(ids ...int64) *DirectorySiteContacts return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DirectorySiteContactsListCall) MaxResults(maxResults int64) *DirectorySiteContactsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -29500,23 +21921,22 @@ func (c *DirectorySiteContactsListCall) PageToken(pageToken string) *DirectorySi return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or email. Wildcards (*) are -// allowed. For example, "directory site contact*2015" will return -// objects with names like "directory site contact June 2015", -// "directory site contact April 2015", or simply "directory site -// contact 2015". Most of the searches also add wildcards implicitly at -// the start and the end of the search string. For example, a search -// string of "directory site contact" will match objects with name "my -// directory site contact", "directory site contact 2015", or simply -// "directory site contact". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or email. Wildcards (*) are allowed. For example, +// "directory site contact*2015" will return objects with names like "directory +// site contact June 2015", "directory site contact April 2015", or simply +// "directory site contact 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "directory site contact" will match objects with name "my +// directory site contact", "directory site contact 2015", or simply "directory +// site contact". func (c *DirectorySiteContactsListCall) SearchString(searchString string) *DirectorySiteContactsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -29527,8 +21947,7 @@ func (c *DirectorySiteContactsListCall) SortField(sortField string) *DirectorySi return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -29540,33 +21959,29 @@ func (c *DirectorySiteContactsListCall) SortOrder(sortOrder string) *DirectorySi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySiteContactsListCall) Fields(s ...googleapi.Field) *DirectorySiteContactsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySiteContactsListCall) IfNoneMatch(entityTag string) *DirectorySiteContactsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySiteContactsListCall) Context(ctx context.Context) *DirectorySiteContactsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySiteContactsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29575,12 +21990,7 @@ func (c *DirectorySiteContactsListCall) Header() http.Header { } func (c *DirectorySiteContactsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29597,17 +22007,15 @@ func (c *DirectorySiteContactsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySiteContacts.list" call. -// Exactly one of *DirectorySiteContactsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DirectorySiteContactsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySiteContactsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*DirectorySiteContactsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29615,17 +22023,17 @@ func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*Direc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySiteContactsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -29638,92 +22046,6 @@ func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*Direc return nil, err } return ret, nil - // { - // "description": "Retrieves a list of directory site contacts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySiteContacts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "directorySiteIds": { - // "description": "Select only directory site contacts with these directory site IDs. This is a required field.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only directory site contacts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"directory site contact*2015\" will return objects with names like \"directory site contact June 2015\", \"directory site contact April 2015\", or simply \"directory site contact 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site contact\" will match objects with name \"my directory site contact\", \"directory site contact 2015\", or simply \"directory site contact\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySiteContacts", - // "response": { - // "$ref": "DirectorySiteContactsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -29731,7 +22053,7 @@ func (c *DirectorySiteContactsListCall) Do(opts ...googleapi.CallOption) (*Direc // The provided context supersedes any context provided to the Context method. func (c *DirectorySiteContactsListCall) Pages(ctx context.Context, f func(*DirectorySiteContactsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -29747,8 +22069,6 @@ func (c *DirectorySiteContactsListCall) Pages(ctx context.Context, f func(*Direc } } -// method id "dfareporting.directorySites.get": - type DirectorySitesGetCall struct { s *Service profileId int64 @@ -29760,6 +22080,9 @@ type DirectorySitesGetCall struct { } // Get: Gets one directory site by ID. +// +// - id: Directory site ID. +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGetCall { c := &DirectorySitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29768,33 +22091,29 @@ func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesGetCall) Fields(s ...googleapi.Field) *DirectorySitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesGetCall) IfNoneMatch(entityTag string) *DirectorySitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesGetCall) Context(ctx context.Context) *DirectorySitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29803,12 +22122,7 @@ func (c *DirectorySitesGetCall) Header() http.Header { } func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29826,16 +22140,14 @@ func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.get" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29843,17 +22155,17 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -29866,42 +22178,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite return nil, err } return ret, nil - // { - // "description": "Gets one directory site by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Directory site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites/{id}", - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.insert": +} type DirectorySitesInsertCall struct { s *Service @@ -29913,6 +22190,8 @@ type DirectorySitesInsertCall struct { } // Insert: Inserts a new directory site. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) Insert(profileId int64, directorysite *DirectorySite) *DirectorySitesInsertCall { c := &DirectorySitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -29921,23 +22200,21 @@ func (r *DirectorySitesService) Insert(profileId int64, directorysite *Directory } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesInsertCall) Fields(s ...googleapi.Field) *DirectorySitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesInsertCall) Context(ctx context.Context) *DirectorySitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29946,18 +22223,12 @@ func (c *DirectorySitesInsertCall) Header() http.Header { } func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.directorysite) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites") @@ -29970,16 +22241,14 @@ func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.insert" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29987,17 +22256,17 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -30010,37 +22279,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS return nil, err } return ret, nil - // { - // "description": "Inserts a new directory site.", - // "httpMethod": "POST", - // "id": "dfareporting.directorySites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "request": { - // "$ref": "DirectorySite" - // }, - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.list": +} type DirectorySitesListCall struct { s *Service @@ -30051,8 +22290,10 @@ type DirectorySitesListCall struct { header_ http.Header } -// List: Retrieves a list of directory sites, possibly filtered. This -// method supports paging. +// List: Retrieves a list of directory sites, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { c := &DirectorySitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30060,53 +22301,52 @@ func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only directory sites that -// accept publisher paid placements. This field can be left blank. +// "acceptsPublisherPaidPlacements": Select only directory sites that accept +// publisher paid placements. This field can be left blank. func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// Active sets the optional parameter "active": Select only active -// directory sites. Leave blank to retrieve both active and inactive -// directory sites. +// Active sets the optional parameter "active": Select only active directory +// sites. Leave blank to retrieve both active and inactive directory sites. func (c *DirectorySitesListCall) Active(active bool) *DirectorySitesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// CountryId sets the optional parameter "countryId": Select only -// directory sites with this country ID. +// CountryId sets the optional parameter "countryId": Select only directory +// sites with this country ID. func (c *DirectorySitesListCall) CountryId(countryId int64) *DirectorySitesListCall { c.urlParams_.Set("countryId", fmt.Sprint(countryId)) return c } -// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select -// only directory sites with this Ad Manager network code. +// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select only +// directory sites with this Ad Manager network code. func (c *DirectorySitesListCall) DfpNetworkCode(dfpNetworkCode string) *DirectorySitesListCall { c.urlParams_.Set("dfpNetworkCode", dfpNetworkCode) return c } -// Ids sets the optional parameter "ids": Select only directory sites -// with these IDs. +// Ids sets the optional parameter "ids": Select only directory sites with +// these IDs. func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { var ids_ []string for _, v := range ids { @@ -30116,8 +22356,8 @@ func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DirectorySitesListCall) MaxResults(maxResults int64) *DirectorySitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -30130,29 +22370,28 @@ func (c *DirectorySitesListCall) PageToken(pageToken string) *DirectorySitesList return c } -// ParentId sets the optional parameter "parentId": Select only -// directory sites with this parent ID. +// ParentId sets the optional parameter "parentId": Select only directory sites +// with this parent ID. func (c *DirectorySitesListCall) ParentId(parentId int64) *DirectorySitesListCall { c.urlParams_.Set("parentId", fmt.Sprint(parentId)) return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or URL. Wildcards (*) are allowed. -// For example, "directory site*2015" will return objects with names -// like "directory site June 2015", "directory site April 2015", or -// simply "directory site 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "directory site" will match objects with -// name "my directory site", "directory site 2015" or simply, "directory -// site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or URL. Wildcards (*) are allowed. For example, +// "directory site*2015" will return objects with names like "directory site +// June 2015", "directory site April 2015", or simply "directory site 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "directory site" will +// match objects with name "my directory site", "directory site 2015" or +// simply, "directory site". func (c *DirectorySitesListCall) SearchString(searchString string) *DirectorySitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -30163,8 +22402,7 @@ func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -30176,33 +22414,29 @@ func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesListCall) Fields(s ...googleapi.Field) *DirectorySitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesListCall) IfNoneMatch(entityTag string) *DirectorySitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesListCall) Context(ctx context.Context) *DirectorySitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30211,12 +22445,7 @@ func (c *DirectorySitesListCall) Header() http.Header { } func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30233,16 +22462,15 @@ func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.list" call. -// Exactly one of *DirectorySitesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *DirectorySitesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *DirectorySitesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30250,17 +22478,17 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -30273,122 +22501,6 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit return nil, err } return ret, nil - // { - // "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only directory sites that accept publisher paid placements. This field can be left blank.", - // "location": "query", - // "type": "boolean" - // }, - // "active": { - // "description": "Select only active directory sites. Leave blank to retrieve both active and inactive directory sites.", - // "location": "query", - // "type": "boolean" - // }, - // "countryId": { - // "description": "Select only directory sites with this country ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "dfpNetworkCode": { - // "description": "Select only directory sites with this Ad Manager network code.", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only directory sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "parentId": { - // "description": "Select only directory sites with this parent ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. For example, \"directory site*2015\" will return objects with names like \"directory site June 2015\", \"directory site April 2015\", or simply \"directory site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site\" will match objects with name \"my directory site\", \"directory site 2015\" or simply, \"directory site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "response": { - // "$ref": "DirectorySitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -30396,7 +22508,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // The provided context supersedes any context provided to the Context method. func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -30412,8 +22524,6 @@ func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySit } } -// method id "dfareporting.dynamicTargetingKeys.delete": - type DynamicTargetingKeysDeleteCall struct { s *Service profileId int64 @@ -30424,6 +22534,15 @@ type DynamicTargetingKeysDeleteCall struct { } // Delete: Deletes an existing dynamic targeting key. +// +// - name: Name of this dynamic targeting key. This is a required field. Must +// be less than 256 characters long and cannot contain commas. All characters +// are converted to lowercase. +// - objectId: ID of the object of this dynamic targeting key. This is a +// required field. +// - objectType: Type of the object of this dynamic targeting key. This is a +// required field. +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, name string, objectType string) *DynamicTargetingKeysDeleteCall { c := &DynamicTargetingKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30434,23 +22553,21 @@ func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, na } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysDeleteCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysDeleteCall) Context(ctx context.Context) *DynamicTargetingKeysDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30459,12 +22576,7 @@ func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { } func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -30479,7 +22591,7 @@ func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "objectId": strconv.FormatInt(c.objectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.delete" call. @@ -30491,68 +22603,10 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing dynamic targeting key.", - // "httpMethod": "DELETE", - // "id": "dfareporting.dynamicTargetingKeys.delete", - // "parameterOrder": [ - // "profileId", - // "objectId", - // "name", - // "objectType" - // ], - // "parameters": { - // "name": { - // "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "objectId": { - // "description": "ID of the object of this dynamic targeting key. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Type of the object of this dynamic targeting key. This is a required field.", - // "enum": [ - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.insert": +} type DynamicTargetingKeysInsertCall struct { s *Service @@ -30563,11 +22617,12 @@ type DynamicTargetingKeysInsertCall struct { header_ http.Header } -// Insert: Inserts a new dynamic targeting key. Keys must be created at -// the advertiser level before being assigned to the advertiser's ads, -// creatives, or placements. There is a maximum of 1000 keys per -// advertiser, out of which a maximum of 20 keys can be assigned per ad, -// creative, or placement. +// Insert: Inserts a new dynamic targeting key. Keys must be created at the +// advertiser level before being assigned to the advertiser's ads, creatives, +// or placements. There is a maximum of 1000 keys per advertiser, out of which +// a maximum of 20 keys can be assigned per ad, creative, or placement. +// +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingkey *DynamicTargetingKey) *DynamicTargetingKeysInsertCall { c := &DynamicTargetingKeysInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30576,23 +22631,21 @@ func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingke } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysInsertCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysInsertCall) Context(ctx context.Context) *DynamicTargetingKeysInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30601,18 +22654,12 @@ func (c *DynamicTargetingKeysInsertCall) Header() http.Header { } func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dynamictargetingkey) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys") @@ -30625,16 +22672,15 @@ func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.insert" call. -// Exactly one of *DynamicTargetingKey or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DynamicTargetingKey.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKey.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30642,17 +22688,17 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKey{ ServerResponse: googleapi.ServerResponse{ @@ -30665,37 +22711,7 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna return nil, err } return ret, nil - // { - // "description": "Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.", - // "httpMethod": "POST", - // "id": "dfareporting.dynamicTargetingKeys.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "request": { - // "$ref": "DynamicTargetingKey" - // }, - // "response": { - // "$ref": "DynamicTargetingKey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.list": +} type DynamicTargetingKeysListCall struct { s *Service @@ -30707,21 +22723,23 @@ type DynamicTargetingKeysListCall struct { } // List: Retrieves a list of dynamic targeting keys. +// +// - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) List(profileId int64) *DynamicTargetingKeysListCall { c := &DynamicTargetingKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// dynamic targeting keys whose object has this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only dynamic +// targeting keys whose object has this advertiser ID. func (c *DynamicTargetingKeysListCall) AdvertiserId(advertiserId int64) *DynamicTargetingKeysListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Names sets the optional parameter "names": Select only dynamic -// targeting keys exactly matching these names. +// Names sets the optional parameter "names": Select only dynamic targeting +// keys exactly matching these names. func (c *DynamicTargetingKeysListCall) Names(names ...string) *DynamicTargetingKeysListCall { c.urlParams_.SetMulti("names", append([]string{}, names...)) return c @@ -30734,8 +22752,8 @@ func (c *DynamicTargetingKeysListCall) ObjectId(objectId int64) *DynamicTargetin return c } -// ObjectType sets the optional parameter "objectType": Select only -// dynamic targeting keys with this object type. +// ObjectType sets the optional parameter "objectType": Select only dynamic +// targeting keys with this object type. // // Possible values: // @@ -30749,33 +22767,29 @@ func (c *DynamicTargetingKeysListCall) ObjectType(objectType string) *DynamicTar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysListCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DynamicTargetingKeysListCall) IfNoneMatch(entityTag string) *DynamicTargetingKeysListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysListCall) Context(ctx context.Context) *DynamicTargetingKeysListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30784,12 +22798,7 @@ func (c *DynamicTargetingKeysListCall) Header() http.Header { } func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30806,16 +22815,15 @@ func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.list" call. -// Exactly one of *DynamicTargetingKeysListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DynamicTargetingKeysListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKeysListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKeysListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30823,17 +22831,17 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKeysListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -30846,69 +22854,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami return nil, err } return ret, nil - // { - // "description": "Retrieves a list of dynamic targeting keys.", - // "httpMethod": "GET", - // "id": "dfareporting.dynamicTargetingKeys.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only dynamic targeting keys whose object has this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "names": { - // "description": "Select only dynamic targeting keys exactly matching these names.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectId": { - // "description": "Select only dynamic targeting keys with this object ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "objectType": { - // "description": "Select only dynamic targeting keys with this object type.", - // "enum": [ - // "OBJECT_AD", - // "OBJECT_ADVERTISER", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "response": { - // "$ref": "DynamicTargetingKeysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.delete": +} type EventTagsDeleteCall struct { s *Service @@ -30920,6 +22866,9 @@ type EventTagsDeleteCall struct { } // Delete: Deletes an existing event tag. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCall { c := &EventTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -30928,23 +22877,21 @@ func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsDeleteCall) Fields(s ...googleapi.Field) *EventTagsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsDeleteCall) Context(ctx context.Context) *EventTagsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30953,12 +22900,7 @@ func (c *EventTagsDeleteCall) Header() http.Header { } func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -30973,7 +22915,7 @@ func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.delete" call. @@ -30985,42 +22927,10 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing event tag.", - // "httpMethod": "DELETE", - // "id": "dfareporting.eventTags.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.get": +} type EventTagsGetCall struct { s *Service @@ -31033,6 +22943,9 @@ type EventTagsGetCall struct { } // Get: Gets one event tag by ID. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { c := &EventTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31041,33 +22954,29 @@ func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsGetCall) Fields(s ...googleapi.Field) *EventTagsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsGetCall) IfNoneMatch(entityTag string) *EventTagsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsGetCall) Context(ctx context.Context) *EventTagsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31076,12 +22985,7 @@ func (c *EventTagsGetCall) Header() http.Header { } func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31099,16 +23003,14 @@ func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.get" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31116,17 +23018,17 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31139,42 +23041,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { return nil, err } return ret, nil - // { - // "description": "Gets one event tag by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.insert": +} type EventTagsInsertCall struct { s *Service @@ -31186,6 +23053,8 @@ type EventTagsInsertCall struct { } // Insert: Inserts a new event tag. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTagsInsertCall { c := &EventTagsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31194,23 +23063,21 @@ func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsInsertCall) Fields(s ...googleapi.Field) *EventTagsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsInsertCall) Context(ctx context.Context) *EventTagsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31219,18 +23086,12 @@ func (c *EventTagsInsertCall) Header() http.Header { } func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -31243,16 +23104,14 @@ func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.insert" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31260,17 +23119,17 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31283,37 +23142,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Inserts a new event tag.", - // "httpMethod": "POST", - // "id": "dfareporting.eventTags.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.list": +} type EventTagsListCall struct { s *Service @@ -31325,64 +23154,63 @@ type EventTagsListCall struct { } // List: Retrieves a list of event tags, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) List(profileId int64) *EventTagsListCall { c := &EventTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdId sets the optional parameter "adId": Select only event tags that -// belong to this ad. +// AdId sets the optional parameter "adId": Select only event tags that belong +// to this ad. func (c *EventTagsListCall) AdId(adId int64) *EventTagsListCall { c.urlParams_.Set("adId", fmt.Sprint(adId)) return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// event tags that belong to this advertiser. +// AdvertiserId sets the optional parameter "advertiserId": Select only event +// tags that belong to this advertiser. func (c *EventTagsListCall) AdvertiserId(advertiserId int64) *EventTagsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// CampaignId sets the optional parameter "campaignId": Select only -// event tags that belong to this campaign. +// CampaignId sets the optional parameter "campaignId": Select only event tags +// that belong to this campaign. func (c *EventTagsListCall) CampaignId(campaignId int64) *EventTagsListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// DefinitionsOnly sets the optional parameter "definitionsOnly": -// Examine only the specified campaign or advertiser's event tags for -// matching selector criteria. When set to false, the parent advertiser -// and parent campaign of the specified ad or campaign is examined as -// well. In addition, when set to false, the status field is examined as -// well, along with the enabledByDefault field. This parameter can not -// be set to true when adId is specified as ads do not define their own -// even tags. +// DefinitionsOnly sets the optional parameter "definitionsOnly": Examine only +// the specified campaign or advertiser's event tags for matching selector +// criteria. When set to false, the parent advertiser and parent campaign of +// the specified ad or campaign is examined as well. In addition, when set to +// false, the status field is examined as well, along with the enabledByDefault +// field. This parameter can not be set to true when adId is specified as ads +// do not define their own even tags. func (c *EventTagsListCall) DefinitionsOnly(definitionsOnly bool) *EventTagsListCall { c.urlParams_.Set("definitionsOnly", fmt.Sprint(definitionsOnly)) return c } -// Enabled sets the optional parameter "enabled": Select only enabled -// event tags. What is considered enabled or disabled depends on the -// definitionsOnly parameter. When definitionsOnly is set to true, only -// the specified advertiser or campaign's event tags' enabledByDefault -// field is examined. When definitionsOnly is set to false, the -// specified ad or specified campaign's parent advertiser's or parent -// campaign's event tags' enabledByDefault and status fields are -// examined as well. +// Enabled sets the optional parameter "enabled": Select only enabled event +// tags. What is considered enabled or disabled depends on the definitionsOnly +// parameter. When definitionsOnly is set to true, only the specified +// advertiser or campaign's event tags' enabledByDefault field is examined. +// When definitionsOnly is set to false, the specified ad or specified +// campaign's parent advertiser's or parent campaign's event tags' +// enabledByDefault and status fields are examined as well. func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall { c.urlParams_.Set("enabled", fmt.Sprint(enabled)) return c } -// EventTagTypes sets the optional parameter "eventTagTypes": Select -// only event tags with the specified event tag types. Event tag types -// can be used to specify whether to use a third-party pixel, a -// third-party JavaScript URL, or a third-party click-through URL for -// either impression or click tracking. +// EventTagTypes sets the optional parameter "eventTagTypes": Select only event +// tags with the specified event tag types. Event tag types can be used to +// specify whether to use a third-party pixel, a third-party JavaScript URL, or +// a third-party click-through URL for either impression or click tracking. // // Possible values: // @@ -31394,8 +23222,8 @@ func (c *EventTagsListCall) EventTagTypes(eventTagTypes ...string) *EventTagsLis return c } -// Ids sets the optional parameter "ids": Select only event tags with -// these IDs. +// Ids sets the optional parameter "ids": Select only event tags with these +// IDs. func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { var ids_ []string for _, v := range ids { @@ -31405,21 +23233,20 @@ func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "eventtag*2015" will return objects with names like -// "eventtag June 2015", "eventtag April 2015", or simply "eventtag -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "eventtag" will match objects with name "my eventtag", "eventtag -// 2015", or simply "eventtag". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "eventtag*2015" will return objects with names like "eventtag June 2015", +// "eventtag April 2015", or simply "eventtag 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "eventtag" will match objects with name "my +// eventtag", "eventtag 2015", or simply "eventtag". func (c *EventTagsListCall) SearchString(searchString string) *EventTagsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -31430,8 +23257,7 @@ func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -31443,33 +23269,29 @@ func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsListCall) Fields(s ...googleapi.Field) *EventTagsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsListCall) IfNoneMatch(entityTag string) *EventTagsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsListCall) Context(ctx context.Context) *EventTagsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31478,12 +23300,7 @@ func (c *EventTagsListCall) Header() http.Header { } func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31500,16 +23317,15 @@ func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.list" call. -// Exactly one of *EventTagsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *EventTagsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTagsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31517,17 +23333,17 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTagsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -31540,118 +23356,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of event tags, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "adId": { - // "description": "Select only event tags that belong to this ad.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "advertiserId": { - // "description": "Select only event tags that belong to this advertiser.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "campaignId": { - // "description": "Select only event tags that belong to this campaign.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "definitionsOnly": { - // "description": "Examine only the specified campaign or advertiser's event tags for matching selector criteria. When set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined as well. In addition, when set to false, the status field is examined as well, along with the enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not define their own even tags.", - // "location": "query", - // "type": "boolean" - // }, - // "enabled": { - // "description": "Select only enabled event tags. What is considered enabled or disabled depends on the definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' enabledByDefault and status fields are examined as well.", - // "location": "query", - // "type": "boolean" - // }, - // "eventTagTypes": { - // "description": "Select only event tags with the specified event tag types. Event tag types can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking.", - // "enum": [ - // "CLICK_THROUGH_EVENT_TAG", - // "IMPRESSION_IMAGE_EVENT_TAG", - // "IMPRESSION_JAVASCRIPT_EVENT_TAG" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only event tags with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"eventtag*2015\" will return objects with names like \"eventtag June 2015\", \"eventtag April 2015\", or simply \"eventtag 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"eventtag\" will match objects with name \"my eventtag\", \"eventtag 2015\", or simply \"eventtag\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "response": { - // "$ref": "EventTagsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.patch": +} type EventTagsPatchCall struct { s *Service @@ -31662,8 +23367,10 @@ type EventTagsPatchCall struct { header_ http.Header } -// Patch: Updates an existing event tag. This method supports patch -// semantics. +// Patch: Updates an existing event tag. This method supports patch semantics. +// +// - id: Event tag ID. +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) *EventTagsPatchCall { c := &EventTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31673,23 +23380,21 @@ func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsPatchCall) Fields(s ...googleapi.Field) *EventTagsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsPatchCall) Context(ctx context.Context) *EventTagsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31698,18 +23403,12 @@ func (c *EventTagsPatchCall) Header() http.Header { } func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -31722,16 +23421,14 @@ func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.patch" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31739,17 +23436,17 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31762,45 +23459,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.eventTags.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.update": +} type EventTagsUpdateCall struct { s *Service @@ -31812,6 +23471,8 @@ type EventTagsUpdateCall struct { } // Update: Updates an existing event tag. +// +// - profileId: User profile ID associated with this request. func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTagsUpdateCall { c := &EventTagsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -31820,23 +23481,21 @@ func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsUpdateCall) Fields(s ...googleapi.Field) *EventTagsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsUpdateCall) Context(ctx context.Context) *EventTagsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31845,18 +23504,12 @@ func (c *EventTagsUpdateCall) Header() http.Header { } func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -31869,16 +23522,14 @@ func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.update" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31886,17 +23537,17 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31909,37 +23560,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag.", - // "httpMethod": "PUT", - // "id": "dfareporting.eventTags.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.files.get": +} type FilesGetCall struct { s *Service @@ -31951,8 +23572,11 @@ type FilesGetCall struct { header_ http.Header } -// Get: Retrieves a report file by its report ID and file ID. This -// method supports media download. +// Get: Retrieves a report file by its report ID and file ID. This method +// supports media download. +// +// - fileId: The ID of the report file. +// - reportId: The ID of the report. func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { c := &FilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.reportId = reportId @@ -31961,33 +23585,29 @@ func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesGetCall) Fields(s ...googleapi.Field) *FilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesGetCall) IfNoneMatch(entityTag string) *FilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31996,12 +23616,7 @@ func (c *FilesGetCall) Header() http.Header { } func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32019,7 +23634,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -32031,20 +23646,18 @@ func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, e if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32052,17 +23665,17 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -32075,43 +23688,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "httpMethod": "GET", - // "id": "dfareporting.files.get", - // "parameterOrder": [ - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.files.list": +} type FilesListCall struct { s *Service @@ -32123,14 +23700,16 @@ type FilesListCall struct { } // List: Lists files for a user profile. +// +// - profileId: The DFA profile ID. func (r *FilesService) List(profileId int64) *FilesListCall { c := &FilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -32143,8 +23722,8 @@ func (c *FilesListCall) PageToken(pageToken string) *FilesListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -32156,8 +23735,8 @@ func (c *FilesListCall) Scope(scope string) *FilesListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -32168,8 +23747,7 @@ func (c *FilesListCall) SortField(sortField string) *FilesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -32181,33 +23759,29 @@ func (c *FilesListCall) SortOrder(sortOrder string) *FilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesListCall) Fields(s ...googleapi.Field) *FilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesListCall) IfNoneMatch(entityTag string) *FilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FilesListCall) Context(ctx context.Context) *FilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32216,12 +23790,7 @@ func (c *FilesListCall) Header() http.Header { } func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32238,16 +23807,14 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32255,17 +23822,17 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -32278,89 +23845,6 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { return nil, err } return ret, nil - // { - // "description": "Lists files for a user profile.", - // "httpMethod": "GET", - // "id": "dfareporting.files.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE", - // "SHARED_WITH_ME" - // ], - // "enumDescriptions": [ - // "All files in account.", - // "My files.", - // "Files shared with me." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -32368,7 +23852,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // The provided context supersedes any context provided to the Context method. func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -32384,8 +23868,6 @@ func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) erro } } -// method id "dfareporting.floodlightActivities.delete": - type FloodlightActivitiesDeleteCall struct { s *Service profileId int64 @@ -32396,6 +23878,9 @@ type FloodlightActivitiesDeleteCall struct { } // Delete: Deletes an existing floodlight activity. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *FloodlightActivitiesDeleteCall { c := &FloodlightActivitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32404,23 +23889,21 @@ func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *Floodli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesDeleteCall) Fields(s ...googleapi.Field) *FloodlightActivitiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesDeleteCall) Context(ctx context.Context) *FloodlightActivitiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32429,12 +23912,7 @@ func (c *FloodlightActivitiesDeleteCall) Header() http.Header { } func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -32449,7 +23927,7 @@ func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.delete" call. @@ -32461,42 +23939,10 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing floodlight activity.", - // "httpMethod": "DELETE", - // "id": "dfareporting.floodlightActivities.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.generatetag": +} type FloodlightActivitiesGeneratetagCall struct { s *Service @@ -32507,38 +23953,37 @@ type FloodlightActivitiesGeneratetagCall struct { } // Generatetag: Generates a tag for a floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Generatetag(profileId int64) *FloodlightActivitiesGeneratetagCall { c := &FloodlightActivitiesGeneratetagCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Floodlight activity ID for which we want to -// generate a tag. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Floodlight activity ID for which we want to generate a tag. func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityId int64) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGeneratetagCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGeneratetagCall) Context(ctx context.Context) *FloodlightActivitiesGeneratetagCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32547,12 +23992,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { } func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -32566,17 +24006,15 @@ func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.generatetag" call. -// Exactly one of *FloodlightActivitiesGenerateTagResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesGenerateTagResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32584,17 +24022,17 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesGenerateTagResponse{ ServerResponse: googleapi.ServerResponse{ @@ -32607,40 +24045,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Generates a tag for a floodlight activity.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.generatetag", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "floodlightActivityId": { - // "description": "Floodlight activity ID for which we want to generate a tag.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/generatetag", - // "response": { - // "$ref": "FloodlightActivitiesGenerateTagResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.get": +} type FloodlightActivitiesGetCall struct { s *Service @@ -32653,6 +24058,9 @@ type FloodlightActivitiesGetCall struct { } // Get: Gets one floodlight activity by ID. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *FloodlightActivitiesGetCall { c := &FloodlightActivitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32661,33 +24069,29 @@ func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *Floodlight } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGetCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesGetCall) IfNoneMatch(entityTag string) *FloodlightActivitiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGetCall) Context(ctx context.Context) *FloodlightActivitiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32696,12 +24100,7 @@ func (c *FloodlightActivitiesGetCall) Header() http.Header { } func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32719,16 +24118,15 @@ func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.get" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32736,17 +24134,17 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -32759,42 +24157,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.insert": +} type FloodlightActivitiesInsertCall struct { s *Service @@ -32806,6 +24169,8 @@ type FloodlightActivitiesInsertCall struct { } // Insert: Inserts a new floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesInsertCall { c := &FloodlightActivitiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32814,23 +24179,21 @@ func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesInsertCall) Fields(s ...googleapi.Field) *FloodlightActivitiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesInsertCall) Context(ctx context.Context) *FloodlightActivitiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32839,18 +24202,12 @@ func (c *FloodlightActivitiesInsertCall) Header() http.Header { } func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -32863,16 +24220,15 @@ func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.insert" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32880,17 +24236,17 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -32903,37 +24259,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.list": +} type FloodlightActivitiesListCall struct { s *Service @@ -32944,8 +24270,10 @@ type FloodlightActivitiesListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activities, possibly filtered. -// This method supports paging. +// List: Retrieves a list of floodlight activities, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitiesListCall { c := &FloodlightActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -32953,17 +24281,16 @@ func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitie } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activities for the specified advertiser ID. Must specify -// either ids, advertiserId, or floodlightConfigurationId for a -// non-empty result. +// floodlight activities for the specified advertiser ID. Must specify either +// ids, advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) AdvertiserId(advertiserId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightActivityGroupIds sets the optional parameter -// "floodlightActivityGroupIds": Select only floodlight activities with -// the specified floodlight activity group IDs. +// "floodlightActivityGroupIds": Select only floodlight activities with the +// specified floodlight activity group IDs. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds ...int64) *FloodlightActivitiesListCall { var floodlightActivityGroupIds_ []string for _, v := range floodlightActivityGroupIds { @@ -32974,24 +24301,24 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActi } // FloodlightActivityGroupName sets the optional parameter -// "floodlightActivityGroupName": Select only floodlight activities with -// the specified floodlight activity group name. +// "floodlightActivityGroupName": Select only floodlight activities with the +// specified floodlight activity group name. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupName string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupName", floodlightActivityGroupName) return c } // FloodlightActivityGroupTagString sets the optional parameter -// "floodlightActivityGroupTagString": Select only floodlight activities -// with the specified floodlight activity group tag string. +// "floodlightActivityGroupTagString": Select only floodlight activities with +// the specified floodlight activity group tag string. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupTagString", floodlightActivityGroupTagString) return c } // FloodlightActivityGroupType sets the optional parameter -// "floodlightActivityGroupType": Select only floodlight activities with -// the specified floodlight activity group type. +// "floodlightActivityGroupType": Select only floodlight activities with the +// specified floodlight activity group type. // // Possible values: // @@ -33003,17 +24330,17 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightAct } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activities for -// the specified floodlight configuration ID. Must specify either ids, +// "floodlightConfigurationId": Select only floodlight activities for the +// specified floodlight configuration ID. Must specify either ids, // advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activities with the specified IDs. Must specify either ids, -// advertiserId, or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activities +// with the specified IDs. Must specify either ids, advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesListCall { var ids_ []string for _, v := range ids { @@ -33023,8 +24350,8 @@ func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesLi return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivitiesListCall) MaxResults(maxResults int64) *FloodlightActivitiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -33037,22 +24364,22 @@ func (c *FloodlightActivitiesListCall) PageToken(pageToken string) *FloodlightAc return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivity*2015" will return objects with names -// like "floodlightactivity June 2015", "floodlightactivity April 2015", -// or simply "floodlightactivity 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivity" will match -// objects with name "my floodlightactivity activity", -// "floodlightactivity 2015", or simply "floodlightactivity". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivity*2015" will return objects with names like +// "floodlightactivity June 2015", "floodlightactivity April 2015", or simply +// "floodlightactivity 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "floodlightactivity" will match objects with name "my +// floodlightactivity activity", "floodlightactivity 2015", or simply +// "floodlightactivity". func (c *FloodlightActivitiesListCall) SearchString(searchString string) *FloodlightActivitiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -33063,8 +24390,7 @@ func (c *FloodlightActivitiesListCall) SortField(sortField string) *FloodlightAc return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -33075,41 +24401,37 @@ func (c *FloodlightActivitiesListCall) SortOrder(sortOrder string) *FloodlightAc return c } -// TagString sets the optional parameter "tagString": Select only -// floodlight activities with the specified tag string. +// TagString sets the optional parameter "tagString": Select only floodlight +// activities with the specified tag string. func (c *FloodlightActivitiesListCall) TagString(tagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("tagString", tagString) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesListCall) Fields(s ...googleapi.Field) *FloodlightActivitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesListCall) IfNoneMatch(entityTag string) *FloodlightActivitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesListCall) Context(ctx context.Context) *FloodlightActivitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33118,12 +24440,7 @@ func (c *FloodlightActivitiesListCall) Header() http.Header { } func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33140,16 +24457,15 @@ func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.list" call. -// Exactly one of *FloodlightActivitiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivitiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33157,17 +24473,17 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -33180,132 +24496,6 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activities for the specified advertiser ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupIds": { - // "description": "Select only floodlight activities with the specified floodlight activity group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightActivityGroupName": { - // "description": "Select only floodlight activities with the specified floodlight activity group name.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupTagString": { - // "description": "Select only floodlight activities with the specified floodlight activity group tag string.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupType": { - // "description": "Select only floodlight activities with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activities for the specified floodlight configuration ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivity*2015\" will return objects with names like \"floodlightactivity June 2015\", \"floodlightactivity April 2015\", or simply \"floodlightactivity 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivity\" will match objects with name \"my floodlightactivity activity\", \"floodlightactivity 2015\", or simply \"floodlightactivity\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "tagString": { - // "description": "Select only floodlight activities with the specified tag string.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "response": { - // "$ref": "FloodlightActivitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -33313,7 +24503,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*FloodlightActivitiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -33329,8 +24519,6 @@ func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*Floodl } } -// method id "dfareporting.floodlightActivities.patch": - type FloodlightActivitiesPatchCall struct { s *Service profileId int64 @@ -33340,8 +24528,11 @@ type FloodlightActivitiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity. This method supports -// patch semantics. +// Patch: Updates an existing floodlight activity. This method supports patch +// semantics. +// +// - id: Floodlight activity ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesPatchCall { c := &FloodlightActivitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33351,23 +24542,21 @@ func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodligh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesPatchCall) Fields(s ...googleapi.Field) *FloodlightActivitiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesPatchCall) Context(ctx context.Context) *FloodlightActivitiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33376,18 +24565,12 @@ func (c *FloodlightActivitiesPatchCall) Header() http.Header { } func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -33400,16 +24583,15 @@ func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.patch" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33417,17 +24599,17 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -33440,45 +24622,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivities.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.update": +} type FloodlightActivitiesUpdateCall struct { s *Service @@ -33490,6 +24634,8 @@ type FloodlightActivitiesUpdateCall struct { } // Update: Updates an existing floodlight activity. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesUpdateCall { c := &FloodlightActivitiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33498,23 +24644,21 @@ func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivitiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesUpdateCall) Context(ctx context.Context) *FloodlightActivitiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33523,18 +24667,12 @@ func (c *FloodlightActivitiesUpdateCall) Header() http.Header { } func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -33547,16 +24685,15 @@ func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.update" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33564,17 +24701,17 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -33587,37 +24724,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivities.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.get": +} type FloodlightActivityGroupsGetCall struct { s *Service @@ -33630,6 +24737,9 @@ type FloodlightActivityGroupsGetCall struct { } // Get: Gets one floodlight activity group by ID. +// +// - id: Floodlight activity Group ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *FloodlightActivityGroupsGetCall { c := &FloodlightActivityGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33638,33 +24748,29 @@ func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsGetCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsGetCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsGetCall) Context(ctx context.Context) *FloodlightActivityGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33673,12 +24779,7 @@ func (c *FloodlightActivityGroupsGetCall) Header() http.Header { } func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33696,16 +24797,15 @@ func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.get" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33713,17 +24813,17 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -33736,42 +24836,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.insert": +} type FloodlightActivityGroupsInsertCall struct { s *Service @@ -33783,6 +24848,8 @@ type FloodlightActivityGroupsInsertCall struct { } // Insert: Inserts a new floodlight activity group. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsInsertCall { c := &FloodlightActivityGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33791,23 +24858,21 @@ func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsInsertCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsInsertCall) Context(ctx context.Context) *FloodlightActivityGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33816,18 +24881,12 @@ func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { } func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -33840,16 +24899,15 @@ func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.insert" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33857,17 +24915,17 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -33880,37 +24938,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity group.", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivityGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.list": +} type FloodlightActivityGroupsListCall struct { s *Service @@ -33921,8 +24949,10 @@ type FloodlightActivityGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activity groups, possibly -// filtered. This method supports paging. +// List: Retrieves a list of floodlight activity groups, possibly filtered. +// This method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActivityGroupsListCall { c := &FloodlightActivityGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -33930,26 +24960,25 @@ func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActiv } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activity groups with the specified advertiser ID. Must -// specify either advertiserId or floodlightConfigurationId for a -// non-empty result. +// floodlight activity groups with the specified advertiser ID. Must specify +// either advertiserId or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) AdvertiserId(advertiserId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activity groups -// with the specified floodlight configuration ID. Must specify either -// advertiserId, or floodlightConfigurationId for a non-empty result. +// "floodlightConfigurationId": Select only floodlight activity groups with the +// specified floodlight configuration ID. Must specify either advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activity groups with the specified IDs. Must specify either -// advertiserId or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activity +// groups with the specified IDs. Must specify either advertiserId or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivityGroupsListCall { var ids_ []string for _, v := range ids { @@ -33959,8 +24988,8 @@ func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivity return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivityGroupsListCall) MaxResults(maxResults int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -33973,23 +25002,22 @@ func (c *FloodlightActivityGroupsListCall) PageToken(pageToken string) *Floodlig return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivitygroup*2015" will return objects with -// names like "floodlightactivitygroup June 2015", -// "floodlightactivitygroup April 2015", or simply -// "floodlightactivitygroup 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivitygroup" will match -// objects with name "my floodlightactivitygroup activity", -// "floodlightactivitygroup 2015", or simply "floodlightactivitygroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivitygroup*2015" will return objects with names like +// "floodlightactivitygroup June 2015", "floodlightactivitygroup April 2015", +// or simply "floodlightactivitygroup 2015". Most of the searches also add +// wildcards implicitly at the start and the end of the search string. For +// example, a search string of "floodlightactivitygroup" will match objects +// with name "my floodlightactivitygroup activity", "floodlightactivitygroup +// 2015", or simply "floodlightactivitygroup". func (c *FloodlightActivityGroupsListCall) SearchString(searchString string) *FloodlightActivityGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -34000,8 +25028,7 @@ func (c *FloodlightActivityGroupsListCall) SortField(sortField string) *Floodlig return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -34012,8 +25039,8 @@ func (c *FloodlightActivityGroupsListCall) SortOrder(sortOrder string) *Floodlig return c } -// Type sets the optional parameter "type": Select only floodlight -// activity groups with the specified floodlight activity group type. +// Type sets the optional parameter "type": Select only floodlight activity +// groups with the specified floodlight activity group type. // // Possible values: // @@ -34025,33 +25052,29 @@ func (c *FloodlightActivityGroupsListCall) Type(type_ string) *FloodlightActivit } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsListCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsListCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsListCall) Context(ctx context.Context) *FloodlightActivityGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34060,12 +25083,7 @@ func (c *FloodlightActivityGroupsListCall) Header() http.Header { } func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34082,17 +25100,15 @@ func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.list" call. -// Exactly one of *FloodlightActivityGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivityGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivityGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34100,17 +25116,17 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34123,110 +25139,6 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activity groups with the specified advertiser ID. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activity groups with the specified floodlight configuration ID. Must specify either advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivitygroup*2015\" will return objects with names like \"floodlightactivitygroup June 2015\", \"floodlightactivitygroup April 2015\", or simply \"floodlightactivitygroup 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivitygroup\" will match objects with name \"my floodlightactivitygroup activity\", \"floodlightactivitygroup 2015\", or simply \"floodlightactivitygroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only floodlight activity groups with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "response": { - // "$ref": "FloodlightActivityGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -34234,7 +25146,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*FloodlightActivityGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -34250,8 +25162,6 @@ func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*Fl } } -// method id "dfareporting.floodlightActivityGroups.patch": - type FloodlightActivityGroupsPatchCall struct { s *Service profileId int64 @@ -34261,8 +25171,11 @@ type FloodlightActivityGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity group. This method -// supports patch semantics. +// Patch: Updates an existing floodlight activity group. This method supports +// patch semantics. +// +// - id: Floodlight activity Group ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsPatchCall { c := &FloodlightActivityGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34272,23 +25185,21 @@ func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsPatchCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsPatchCall) Context(ctx context.Context) *FloodlightActivityGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34297,18 +25208,12 @@ func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { } func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -34321,16 +25226,15 @@ func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.patch" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34338,17 +25242,17 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -34361,45 +25265,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivityGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.update": +} type FloodlightActivityGroupsUpdateCall struct { s *Service @@ -34411,6 +25277,8 @@ type FloodlightActivityGroupsUpdateCall struct { } // Update: Updates an existing floodlight activity group. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightactivitygroup *FloodlightActivityGroup) *FloodlightActivityGroupsUpdateCall { c := &FloodlightActivityGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34419,23 +25287,21 @@ func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsUpdateCall) Context(ctx context.Context) *FloodlightActivityGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34444,18 +25310,12 @@ func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { } func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -34468,16 +25328,15 @@ func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.update" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34485,17 +25344,17 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -34508,37 +25367,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivityGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.get": +} type FloodlightConfigurationsGetCall struct { s *Service @@ -34551,6 +25380,9 @@ type FloodlightConfigurationsGetCall struct { } // Get: Gets one floodlight configuration by ID. +// +// - id: Floodlight configuration ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *FloodlightConfigurationsGetCall { c := &FloodlightConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34559,33 +25391,29 @@ func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsGetCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsGetCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsGetCall) Context(ctx context.Context) *FloodlightConfigurationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34594,12 +25422,7 @@ func (c *FloodlightConfigurationsGetCall) Header() http.Header { } func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34617,16 +25440,15 @@ func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.get" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34634,17 +25456,17 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -34657,42 +25479,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight configuration by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.list": +} type FloodlightConfigurationsListCall struct { s *Service @@ -34703,8 +25490,9 @@ type FloodlightConfigurationsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight configurations, possibly -// filtered. +// List: Retrieves a list of floodlight configurations, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfigurationsListCall { c := &FloodlightConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34712,8 +25500,8 @@ func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfi } // Ids sets the optional parameter "ids": Set of IDs of floodlight -// configurations to retrieve. Required field; otherwise an empty list -// will be returned. +// configurations to retrieve. Required field; otherwise an empty list will be +// returned. func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigurationsListCall { var ids_ []string for _, v := range ids { @@ -34724,33 +25512,29 @@ func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigur } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsListCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsListCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsListCall) Context(ctx context.Context) *FloodlightConfigurationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34759,12 +25543,7 @@ func (c *FloodlightConfigurationsListCall) Header() http.Header { } func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34781,17 +25560,15 @@ func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.list" call. -// Exactly one of *FloodlightConfigurationsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightConfigurationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightConfigurationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*FloodlightConfigurationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34799,17 +25576,17 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfigurationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34822,41 +25599,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight configurations, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will be returned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "response": { - // "$ref": "FloodlightConfigurationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.patch": +} type FloodlightConfigurationsPatchCall struct { s *Service @@ -34867,8 +25610,11 @@ type FloodlightConfigurationsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight configuration. This method -// supports patch semantics. +// Patch: Updates an existing floodlight configuration. This method supports +// patch semantics. +// +// - id: Floodlight configuration ID. +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsPatchCall { c := &FloodlightConfigurationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -34878,23 +25624,21 @@ func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsPatchCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsPatchCall) Context(ctx context.Context) *FloodlightConfigurationsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34903,18 +25647,12 @@ func (c *FloodlightConfigurationsPatchCall) Header() http.Header { } func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -34927,16 +25665,15 @@ func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.patch" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34944,17 +25681,17 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -34967,45 +25704,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightConfigurations.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.update": +} type FloodlightConfigurationsUpdateCall struct { s *Service @@ -35017,6 +25716,8 @@ type FloodlightConfigurationsUpdateCall struct { } // Update: Updates an existing floodlight configuration. +// +// - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconfiguration *FloodlightConfiguration) *FloodlightConfigurationsUpdateCall { c := &FloodlightConfigurationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35025,23 +25726,21 @@ func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconf } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsUpdateCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsUpdateCall) Context(ctx context.Context) *FloodlightConfigurationsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35050,18 +25749,12 @@ func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { } func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -35074,16 +25767,15 @@ func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.update" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35091,17 +25783,17 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -35114,37 +25806,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration.", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightConfigurations.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.get": +} type InventoryItemsGetCall struct { s *Service @@ -35158,6 +25820,10 @@ type InventoryItemsGetCall struct { } // Get: Gets one inventory item by ID. +// +// - id: Inventory item ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) *InventoryItemsGetCall { c := &InventoryItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35167,33 +25833,29 @@ func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsGetCall) Fields(s ...googleapi.Field) *InventoryItemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsGetCall) IfNoneMatch(entityTag string) *InventoryItemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsGetCall) Context(ctx context.Context) *InventoryItemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35202,12 +25864,7 @@ func (c *InventoryItemsGetCall) Header() http.Header { } func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35226,16 +25883,14 @@ func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.get" call. -// Exactly one of *InventoryItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InventoryItem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventoryItem.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35243,17 +25898,17 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItem{ ServerResponse: googleapi.ServerResponse{ @@ -35266,50 +25921,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem return nil, err } return ret, nil - // { - // "description": "Gets one inventory item by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Inventory item ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - // "response": { - // "$ref": "InventoryItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.list": +} type InventoryItemsListCall struct { s *Service @@ -35321,8 +25933,11 @@ type InventoryItemsListCall struct { header_ http.Header } -// List: Retrieves a list of inventory items, possibly filtered. This -// method supports paging. +// List: Retrieves a list of inventory items, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *InventoryItemsService) List(profileId int64, projectId int64) *InventoryItemsListCall { c := &InventoryItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35330,8 +25945,8 @@ func (r *InventoryItemsService) List(profileId int64, projectId int64) *Inventor return c } -// Ids sets the optional parameter "ids": Select only inventory items -// with these IDs. +// Ids sets the optional parameter "ids": Select only inventory items with +// these IDs. func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { var ids_ []string for _, v := range ids { @@ -35341,22 +25956,22 @@ func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { return c } -// InPlan sets the optional parameter "inPlan": Select only inventory -// items that are in plan. +// InPlan sets the optional parameter "inPlan": Select only inventory items +// that are in plan. func (c *InventoryItemsListCall) InPlan(inPlan bool) *InventoryItemsListCall { c.urlParams_.Set("inPlan", fmt.Sprint(inPlan)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *InventoryItemsListCall) MaxResults(maxResults int64) *InventoryItemsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only inventory -// items that belong to specified orders. +// OrderId sets the optional parameter "orderId": Select only inventory items +// that belong to specified orders. func (c *InventoryItemsListCall) OrderId(orderId ...int64) *InventoryItemsListCall { var orderId_ []string for _, v := range orderId { @@ -35373,8 +25988,8 @@ func (c *InventoryItemsListCall) PageToken(pageToken string) *InventoryItemsList return c } -// SiteId sets the optional parameter "siteId": Select only inventory -// items that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only inventory items +// that are associated with these sites. func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall { var siteId_ []string for _, v := range siteId { @@ -35384,8 +25999,8 @@ func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -35396,8 +26011,7 @@ func (c *InventoryItemsListCall) SortField(sortField string) *InventoryItemsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -35408,8 +26022,8 @@ func (c *InventoryItemsListCall) SortOrder(sortOrder string) *InventoryItemsList return c } -// Type sets the optional parameter "type": Select only inventory items -// with this type. +// Type sets the optional parameter "type": Select only inventory items with +// this type. // // Possible values: // @@ -35421,33 +26035,29 @@ func (c *InventoryItemsListCall) Type(type_ string) *InventoryItemsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsListCall) Fields(s ...googleapi.Field) *InventoryItemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsListCall) IfNoneMatch(entityTag string) *InventoryItemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsListCall) Context(ctx context.Context) *InventoryItemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35456,12 +26066,7 @@ func (c *InventoryItemsListCall) Header() http.Header { } func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35479,16 +26084,15 @@ func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.list" call. -// Exactly one of *InventoryItemsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *InventoryItemsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *InventoryItemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryItemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35496,17 +26100,17 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35519,120 +26123,6 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte return nil, err } return ret, nil - // { - // "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only inventory items with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "inPlan": { - // "description": "Select only inventory items that are in plan.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only inventory items that belong to specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "siteId": { - // "description": "Select only inventory items that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only inventory items with this type.", - // "enum": [ - // "PLANNING_PLACEMENT_TYPE_CREDIT", - // "PLANNING_PLACEMENT_TYPE_REGULAR" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - // "response": { - // "$ref": "InventoryItemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -35640,7 +26130,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // The provided context supersedes any context provided to the Context method. func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryItemsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -35656,8 +26146,6 @@ func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryIte } } -// method id "dfareporting.languages.list": - type LanguagesListCall struct { s *Service profileId int64 @@ -35668,6 +26156,8 @@ type LanguagesListCall struct { } // List: Retrieves a list of languages. +// +// - profileId: User profile ID associated with this request. func (r *LanguagesService) List(profileId int64) *LanguagesListCall { c := &LanguagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35675,33 +26165,29 @@ func (r *LanguagesService) List(profileId int64) *LanguagesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LanguagesListCall) Fields(s ...googleapi.Field) *LanguagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LanguagesListCall) IfNoneMatch(entityTag string) *LanguagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LanguagesListCall) Context(ctx context.Context) *LanguagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LanguagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35710,12 +26196,7 @@ func (c *LanguagesListCall) Header() http.Header { } func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35732,16 +26213,15 @@ func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.languages.list" call. -// Exactly one of *LanguagesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *LanguagesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LanguagesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35749,17 +26229,17 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LanguagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35772,34 +26252,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of languages.", - // "httpMethod": "GET", - // "id": "dfareporting.languages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/languages", - // "response": { - // "$ref": "LanguagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.metros.list": +} type MetrosListCall struct { s *Service @@ -35811,6 +26264,8 @@ type MetrosListCall struct { } // List: Retrieves a list of metros. +// +// - profileId: User profile ID associated with this request. func (r *MetrosService) List(profileId int64) *MetrosListCall { c := &MetrosListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35818,33 +26273,29 @@ func (r *MetrosService) List(profileId int64) *MetrosListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetrosListCall) Fields(s ...googleapi.Field) *MetrosListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetrosListCall) IfNoneMatch(entityTag string) *MetrosListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetrosListCall) Context(ctx context.Context) *MetrosListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetrosListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35853,12 +26304,7 @@ func (c *MetrosListCall) Header() http.Header { } func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35875,16 +26321,15 @@ func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.metros.list" call. -// Exactly one of *MetrosListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MetrosListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MetrosListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35892,17 +26337,17 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MetrosListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35915,34 +26360,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of metros.", - // "httpMethod": "GET", - // "id": "dfareporting.metros.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/metros", - // "response": { - // "$ref": "MetrosListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileApps.get": +} type MobileAppsGetCall struct { s *Service @@ -35955,6 +26373,9 @@ type MobileAppsGetCall struct { } // Get: Gets one mobile app by ID. +// +// - id: Mobile app ID. +// - profileId: User profile ID associated with this request. func (r *MobileAppsService) Get(profileId int64, id string) *MobileAppsGetCall { c := &MobileAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -35963,33 +26384,29 @@ func (r *MobileAppsService) Get(profileId int64, id string) *MobileAppsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileAppsGetCall) Fields(s ...googleapi.Field) *MobileAppsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileAppsGetCall) IfNoneMatch(entityTag string) *MobileAppsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileAppsGetCall) Context(ctx context.Context) *MobileAppsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileAppsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35998,12 +26415,7 @@ func (c *MobileAppsGetCall) Header() http.Header { } func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36021,16 +26433,14 @@ func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileApps.get" call. -// Exactly one of *MobileApp or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileApp.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileApp.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36038,17 +26448,17 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileApp{ ServerResponse: googleapi.ServerResponse{ @@ -36061,41 +26471,7 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) return nil, err } return ret, nil - // { - // "description": "Gets one mobile app by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileApps.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile app ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileApps/{id}", - // "response": { - // "$ref": "MobileApp" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileApps.list": +} type MobileAppsListCall struct { s *Service @@ -36107,14 +26483,16 @@ type MobileAppsListCall struct { } // List: Retrieves list of available mobile apps. +// +// - profileId: User profile ID associated with this request. func (r *MobileAppsService) List(profileId int64) *MobileAppsListCall { c := &MobileAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Directories sets the optional parameter "directories": Select only -// apps from these directories. +// Directories sets the optional parameter "directories": Select only apps from +// these directories. // // Possible values: // @@ -36126,15 +26504,14 @@ func (c *MobileAppsListCall) Directories(directories ...string) *MobileAppsListC return c } -// Ids sets the optional parameter "ids": Select only apps with these -// IDs. +// Ids sets the optional parameter "ids": Select only apps with these IDs. func (c *MobileAppsListCall) Ids(ids ...string) *MobileAppsListCall { c.urlParams_.SetMulti("ids", append([]string{}, ids...)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *MobileAppsListCall) MaxResults(maxResults int64) *MobileAppsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -36147,46 +26524,42 @@ func (c *MobileAppsListCall) PageToken(pageToken string) *MobileAppsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "app*2015" will return objects with names like "app Jan -// 2018", "app Jan 2018", or simply "app 2018". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "app" will match objects with -// name "my app", "app 2018", or simply "app". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "app*2015" will return objects with names like "app Jan 2018", "app Jan +// 2018", or simply "app 2018". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "app" will match objects with name "my app", "app 2018", or +// simply "app". func (c *MobileAppsListCall) SearchString(searchString string) *MobileAppsListCall { c.urlParams_.Set("searchString", searchString) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileAppsListCall) Fields(s ...googleapi.Field) *MobileAppsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileAppsListCall) IfNoneMatch(entityTag string) *MobileAppsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileAppsListCall) Context(ctx context.Context) *MobileAppsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileAppsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36195,12 +26568,7 @@ func (c *MobileAppsListCall) Header() http.Header { } func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36217,16 +26585,15 @@ func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileApps.list" call. -// Exactly one of *MobileAppsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MobileAppsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileAppsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36234,17 +26601,17 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileAppsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36257,72 +26624,6 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves list of available mobile apps.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileApps.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "directories": { - // "description": "Select only apps from these directories.", - // "enum": [ - // "APPLE_APP_STORE", - // "GOOGLE_PLAY_STORE", - // "UNKNOWN" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only apps with these IDs.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"app*2015\" will return objects with names like \"app Jan 2018\", \"app Jan 2018\", or simply \"app 2018\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"app\" will match objects with name \"my app\", \"app 2018\", or simply \"app\".", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileApps", - // "response": { - // "$ref": "MobileAppsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -36330,7 +26631,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe // The provided context supersedes any context provided to the Context method. func (c *MobileAppsListCall) Pages(ctx context.Context, f func(*MobileAppsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -36346,8 +26647,6 @@ func (c *MobileAppsListCall) Pages(ctx context.Context, f func(*MobileAppsListRe } } -// method id "dfareporting.mobileCarriers.get": - type MobileCarriersGetCall struct { s *Service profileId int64 @@ -36359,6 +26658,9 @@ type MobileCarriersGetCall struct { } // Get: Gets one mobile carrier by ID. +// +// - id: Mobile carrier ID. +// - profileId: User profile ID associated with this request. func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGetCall { c := &MobileCarriersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36367,33 +26669,29 @@ func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersGetCall) Fields(s ...googleapi.Field) *MobileCarriersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersGetCall) IfNoneMatch(entityTag string) *MobileCarriersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersGetCall) Context(ctx context.Context) *MobileCarriersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36402,12 +26700,7 @@ func (c *MobileCarriersGetCall) Header() http.Header { } func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36425,16 +26718,14 @@ func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.get" call. -// Exactly one of *MobileCarrier or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileCarrier.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileCarrier.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36442,17 +26733,17 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarrier{ ServerResponse: googleapi.ServerResponse{ @@ -36465,42 +26756,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier return nil, err } return ret, nil - // { - // "description": "Gets one mobile carrier by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile carrier ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers/{id}", - // "response": { - // "$ref": "MobileCarrier" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileCarriers.list": +} type MobileCarriersListCall struct { s *Service @@ -36512,6 +26768,8 @@ type MobileCarriersListCall struct { } // List: Retrieves a list of mobile carriers. +// +// - profileId: User profile ID associated with this request. func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { c := &MobileCarriersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36519,33 +26777,29 @@ func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersListCall) Fields(s ...googleapi.Field) *MobileCarriersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersListCall) IfNoneMatch(entityTag string) *MobileCarriersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersListCall) Context(ctx context.Context) *MobileCarriersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36554,12 +26808,7 @@ func (c *MobileCarriersListCall) Header() http.Header { } func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36576,16 +26825,15 @@ func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.list" call. -// Exactly one of *MobileCarriersListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *MobileCarriersListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *MobileCarriersListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarriersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36593,17 +26841,17 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarriersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36616,34 +26864,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie return nil, err } return ret, nil - // { - // "description": "Retrieves a list of mobile carriers.", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers", - // "response": { - // "$ref": "MobileCarriersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.get": +} type OperatingSystemVersionsGetCall struct { s *Service @@ -36656,6 +26877,9 @@ type OperatingSystemVersionsGetCall struct { } // Get: Gets one operating system version by ID. +// +// - id: Operating system version ID. +// - profileId: User profile ID associated with this request. func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *OperatingSystemVersionsGetCall { c := &OperatingSystemVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36664,33 +26888,29 @@ func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *Operati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsGetCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsGetCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsGetCall) Context(ctx context.Context) *OperatingSystemVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36699,12 +26919,7 @@ func (c *OperatingSystemVersionsGetCall) Header() http.Header { } func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36722,16 +26937,15 @@ func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.get" call. -// Exactly one of *OperatingSystemVersion or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OperatingSystemVersion.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersion.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36739,17 +26953,17 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersion{ ServerResponse: googleapi.ServerResponse{ @@ -36762,42 +26976,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper return nil, err } return ret, nil - // { - // "description": "Gets one operating system version by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Operating system version ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", - // "response": { - // "$ref": "OperatingSystemVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.list": +} type OperatingSystemVersionsListCall struct { s *Service @@ -36809,6 +26988,8 @@ type OperatingSystemVersionsListCall struct { } // List: Retrieves a list of operating system versions. +// +// - profileId: User profile ID associated with this request. func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemVersionsListCall { c := &OperatingSystemVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36816,33 +26997,29 @@ func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemV } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsListCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsListCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsListCall) Context(ctx context.Context) *OperatingSystemVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36851,12 +27028,7 @@ func (c *OperatingSystemVersionsListCall) Header() http.Header { } func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36873,17 +27045,15 @@ func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.list" call. -// Exactly one of *OperatingSystemVersionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemVersionsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersionsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36891,17 +27061,17 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36914,34 +27084,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating system versions.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions", - // "response": { - // "$ref": "OperatingSystemVersionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.get": +} type OperatingSystemsGetCall struct { s *Service @@ -36954,6 +27097,9 @@ type OperatingSystemsGetCall struct { } // Get: Gets one operating system by DART ID. +// +// - dartId: Operating system DART ID. +// - profileId: User profile ID associated with this request. func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingSystemsGetCall { c := &OperatingSystemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -36962,33 +27108,29 @@ func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingS } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsGetCall) Fields(s ...googleapi.Field) *OperatingSystemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsGetCall) IfNoneMatch(entityTag string) *OperatingSystemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsGetCall) Context(ctx context.Context) *OperatingSystemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36997,12 +27139,7 @@ func (c *OperatingSystemsGetCall) Header() http.Header { } func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37020,16 +27157,15 @@ func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.get" call. -// Exactly one of *OperatingSystem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OperatingSystem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystem.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37037,17 +27173,17 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystem{ ServerResponse: googleapi.ServerResponse{ @@ -37060,42 +27196,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy return nil, err } return ret, nil - // { - // "description": "Gets one operating system by DART ID.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Operating system DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems/{dartId}", - // "response": { - // "$ref": "OperatingSystem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.list": +} type OperatingSystemsListCall struct { s *Service @@ -37107,6 +27208,8 @@ type OperatingSystemsListCall struct { } // List: Retrieves a list of operating systems. +// +// - profileId: User profile ID associated with this request. func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCall { c := &OperatingSystemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37114,33 +27217,29 @@ func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsListCall) Fields(s ...googleapi.Field) *OperatingSystemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsListCall) IfNoneMatch(entityTag string) *OperatingSystemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsListCall) Context(ctx context.Context) *OperatingSystemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37149,12 +27248,7 @@ func (c *OperatingSystemsListCall) Header() http.Header { } func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37171,16 +27265,15 @@ func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.list" call. -// Exactly one of *OperatingSystemsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37188,17 +27281,17 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37211,34 +27304,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating systems.", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems", - // "response": { - // "$ref": "OperatingSystemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.get": +} type OrderDocumentsGetCall struct { s *Service @@ -37252,6 +27318,10 @@ type OrderDocumentsGetCall struct { } // Get: Gets one order document by ID. +// +// - id: Order document ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) *OrderDocumentsGetCall { c := &OrderDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37261,33 +27331,29 @@ func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsGetCall) Context(ctx context.Context) *OrderDocumentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37296,12 +27362,7 @@ func (c *OrderDocumentsGetCall) Header() http.Header { } func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37320,16 +27381,14 @@ func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.get" call. -// Exactly one of *OrderDocument or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OrderDocument.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderDocument.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37337,17 +27396,17 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocument{ ServerResponse: googleapi.ServerResponse{ @@ -37360,50 +27419,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument return nil, err } return ret, nil - // { - // "description": "Gets one order document by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order document ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - // "response": { - // "$ref": "OrderDocument" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.list": +} type OrderDocumentsListCall struct { s *Service @@ -37415,8 +27431,11 @@ type OrderDocumentsListCall struct { header_ http.Header } -// List: Retrieves a list of order documents, possibly filtered. This -// method supports paging. +// List: Retrieves a list of order documents, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for order documents. func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDocumentsListCall { c := &OrderDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37424,15 +27443,15 @@ func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDoc return c } -// Approved sets the optional parameter "approved": Select only order -// documents that have been approved by at least one user. +// Approved sets the optional parameter "approved": Select only order documents +// that have been approved by at least one user. func (c *OrderDocumentsListCall) Approved(approved bool) *OrderDocumentsListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// Ids sets the optional parameter "ids": Select only order documents -// with these IDs. +// Ids sets the optional parameter "ids": Select only order documents with +// these IDs. func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { var ids_ []string for _, v := range ids { @@ -37442,15 +27461,15 @@ func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrderDocumentsListCall) MaxResults(maxResults int64) *OrderDocumentsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only order -// documents for specified orders. +// OrderId sets the optional parameter "orderId": Select only order documents +// for specified orders. func (c *OrderDocumentsListCall) OrderId(orderId ...int64) *OrderDocumentsListCall { var orderId_ []string for _, v := range orderId { @@ -37467,22 +27486,21 @@ func (c *OrderDocumentsListCall) PageToken(pageToken string) *OrderDocumentsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for order documents by name or ID. Wildcards (*) are -// allowed. For example, "orderdocument*2015" will return order -// documents with names like "orderdocument June 2015", "orderdocument -// April 2015", or simply "orderdocument 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "orderdocument" will match -// order documents with name "my orderdocument", "orderdocument 2015", -// or simply "orderdocument". +// SearchString sets the optional parameter "searchString": Allows searching +// for order documents by name or ID. Wildcards (*) are allowed. For example, +// "orderdocument*2015" will return order documents with names like +// "orderdocument June 2015", "orderdocument April 2015", or simply +// "orderdocument 2015". Most of the searches also add wildcards implicitly at +// the start and the end of the search string. For example, a search string of +// "orderdocument" will match order documents with name "my orderdocument", +// "orderdocument 2015", or simply "orderdocument". func (c *OrderDocumentsListCall) SearchString(searchString string) *OrderDocumentsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only order -// documents that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only order documents +// that are associated with these sites. func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall { var siteId_ []string for _, v := range siteId { @@ -37492,8 +27510,8 @@ func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -37504,8 +27522,7 @@ func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -37517,33 +27534,29 @@ func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsListCall) Context(ctx context.Context) *OrderDocumentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37552,12 +27565,7 @@ func (c *OrderDocumentsListCall) Header() http.Header { } func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37575,16 +27583,15 @@ func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.list" call. -// Exactly one of *OrderDocumentsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrderDocumentsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrderDocumentsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumentsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37592,17 +27599,17 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocumentsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37615,112 +27622,6 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen return nil, err } return ret, nil - // { - // "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "approved": { - // "description": "Select only order documents that have been approved by at least one user.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only order documents with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only order documents for specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for order documents by name or ID. Wildcards (*) are allowed. For example, \"orderdocument*2015\" will return order documents with names like \"orderdocument June 2015\", \"orderdocument April 2015\", or simply \"orderdocument 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"orderdocument\" will match order documents with name \"my orderdocument\", \"orderdocument 2015\", or simply \"orderdocument\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only order documents that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "response": { - // "$ref": "OrderDocumentsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -37728,7 +27629,7 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen // The provided context supersedes any context provided to the Context method. func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumentsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -37744,8 +27645,6 @@ func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumen } } -// method id "dfareporting.orders.get": - type OrdersGetCall struct { s *Service profileId int64 @@ -37758,6 +27657,10 @@ type OrdersGetCall struct { } // Get: Gets one order by ID. +// +// - id: Order ID. +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for orders. func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersGetCall { c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37767,33 +27670,29 @@ func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37802,12 +27701,7 @@ func (c *OrdersGetCall) Header() http.Header { } func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37826,16 +27720,14 @@ func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Order.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37843,17 +27735,17 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Order{ ServerResponse: googleapi.ServerResponse{ @@ -37866,50 +27758,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return nil, err } return ret, nil - // { - // "description": "Gets one order by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.orders.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orders.list": +} type OrdersListCall struct { s *Service @@ -37921,8 +27770,11 @@ type OrdersListCall struct { header_ http.Header } -// List: Retrieves a list of orders, possibly filtered. This method -// supports paging. +// List: Retrieves a list of orders, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. +// - projectId: Project ID for orders. func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -37930,8 +27782,7 @@ func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { return c } -// Ids sets the optional parameter "ids": Select only orders with these -// IDs. +// Ids sets the optional parameter "ids": Select only orders with these IDs. func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { var ids_ []string for _, v := range ids { @@ -37941,8 +27792,8 @@ func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -37955,20 +27806,20 @@ func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for orders by name or ID. Wildcards (*) are allowed. For -// example, "order*2015" will return orders with names like "order June -// 2015", "order April 2015", or simply "order 2015". Most of the -// searches also add wildcards implicitly at the start and the end of -// the search string. For example, a search string of "order" will match -// orders with name "my order", "order 2015", or simply "order". +// SearchString sets the optional parameter "searchString": Allows searching +// for orders by name or ID. Wildcards (*) are allowed. For example, +// "order*2015" will return orders with names like "order June 2015", "order +// April 2015", or simply "order 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "order" will match orders with name "my order", "order +// 2015", or simply "order". func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only orders that -// are associated with these site IDs. +// SiteId sets the optional parameter "siteId": Select only orders that are +// associated with these site IDs. func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { var siteId_ []string for _, v := range siteId { @@ -37978,8 +27829,8 @@ func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -37990,8 +27841,7 @@ func (c *OrdersListCall) SortField(sortField string) *OrdersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -38003,33 +27853,29 @@ func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38038,12 +27884,7 @@ func (c *OrdersListCall) Header() http.Header { } func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38061,16 +27902,15 @@ func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.list" call. -// Exactly one of *OrdersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38078,17 +27918,17 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -38101,100 +27941,6 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.orders.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only orders with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, \"order*2015\" will return orders with names like \"order June 2015\", \"order April 2015\", or simply \"order 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"order\" will match orders with name \"my order\", \"order 2015\", or simply \"order\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only orders that are associated with these site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders", - // "response": { - // "$ref": "OrdersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -38202,7 +27948,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // The provided context supersedes any context provided to the Context method. func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -38218,8 +27964,6 @@ func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) } } -// method id "dfareporting.placementGroups.get": - type PlacementGroupsGetCall struct { s *Service profileId int64 @@ -38231,6 +27975,9 @@ type PlacementGroupsGetCall struct { } // Get: Gets one placement group by ID. +// +// - id: Placement group ID. +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroupsGetCall { c := &PlacementGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38239,33 +27986,29 @@ func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsGetCall) Fields(s ...googleapi.Field) *PlacementGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsGetCall) IfNoneMatch(entityTag string) *PlacementGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsGetCall) Context(ctx context.Context) *PlacementGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38274,12 +28017,7 @@ func (c *PlacementGroupsGetCall) Header() http.Header { } func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38297,16 +28035,14 @@ func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.get" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38314,17 +28050,17 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38337,42 +28073,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro return nil, err } return ret, nil - // { - // "description": "Gets one placement group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups/{id}", - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.insert": +} type PlacementGroupsInsertCall struct { s *Service @@ -38384,6 +28085,8 @@ type PlacementGroupsInsertCall struct { } // Insert: Inserts a new placement group. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsInsertCall { c := &PlacementGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -38392,23 +28095,21 @@ func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsInsertCall) Fields(s ...googleapi.Field) *PlacementGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsInsertCall) Context(ctx context.Context) *PlacementGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38417,18 +28118,12 @@ func (c *PlacementGroupsInsertCall) Header() http.Header { } func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -38441,16 +28136,14 @@ func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.insert" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38458,17 +28151,17 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38481,37 +28174,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Inserts a new placement group.", - // "httpMethod": "POST", - // "id": "dfareporting.placementGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.list": +} type PlacementGroupsListCall struct { s *Service @@ -38522,16 +28185,18 @@ type PlacementGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of placement groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of placement groups, possibly filtered. This method +// supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall { c := &PlacementGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placement groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placement groups that belong to these advertisers. func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -38542,15 +28207,15 @@ func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Placeme } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementGroupsListCall) Archived(archived bool) *PlacementGroupsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// placement groups that belong to these campaigns. +// CampaignIds sets the optional parameter "campaignIds": Select only placement +// groups that belong to these campaigns. func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGroupsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -38560,9 +28225,8 @@ func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGr return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placement groups that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placement groups that are associated with these content categories. func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementGroupsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -38572,9 +28236,8 @@ func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64 return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placement groups that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placement groups that are associated with these directory sites. func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementGroupsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -38584,8 +28247,8 @@ func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *P return c } -// Ids sets the optional parameter "ids": Select only placement groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only placement groups with +// these IDs. func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { var ids_ []string for _, v := range ids { @@ -38595,16 +28258,16 @@ func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MaxEndDate(maxEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementGroupsListCall) MaxResults(maxResults int64) *PlacementGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -38618,17 +28281,17 @@ func (c *PlacementGroupsListCall) MaxStartDate(maxStartDate string) *PlacementGr return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinEndDate(minEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinStartDate(minStartDate string) *PlacementGroupsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -38641,13 +28304,13 @@ func (c *PlacementGroupsListCall) PageToken(pageToken string) *PlacementGroupsLi return c } -// PlacementGroupType sets the optional parameter "placementGroupType": -// Select only placement groups belonging with this group type. A -// package is a simple group of placements that acts as a single pricing -// point for a group of tags. A roadblock is a group of placements that -// not only acts as a single pricing point but also assumes that all the -// tags in it will be served at the same time. A roadblock requires one -// of its assigned placements to be marked as primary for reporting. +// PlacementGroupType sets the optional parameter "placementGroupType": Select +// only placement groups belonging with this group type. A package is a simple +// group of placements that acts as a single pricing point for a group of tags. +// A roadblock is a group of placements that not only acts as a single pricing +// point but also assumes that all the tags in it will be served at the same +// time. A roadblock requires one of its assigned placements to be marked as +// primary for reporting. // // Possible values: // @@ -38658,9 +28321,9 @@ func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placement groups that are -// associated with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placement groups that are associated with these placement +// strategies. func (c *PlacementGroupsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementGroupsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -38686,22 +28349,21 @@ func (c *PlacementGroupsListCall) PricingTypes(pricingTypes ...string) *Placemen return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placement groups by name or ID. Wildcards (*) are -// allowed. For example, "placement*2015" will return placement groups -// with names like "placement group June 2015", "placement group May -// 2015", or simply "placements 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementgroup" will match placement -// groups with name "my placementgroup", "placementgroup 2015", or -// simply "placementgroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for placement groups by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placement groups with names like "placement +// group June 2015", "placement group May 2015", or simply "placements 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "placementgroup" will +// match placement groups with name "my placementgroup", "placementgroup 2015", +// or simply "placementgroup". func (c *PlacementGroupsListCall) SearchString(searchString string) *PlacementGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placement -// groups that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placement groups +// that are associated with these sites. func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsListCall { var siteIds_ []string for _, v := range siteIds { @@ -38711,8 +28373,8 @@ func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsList return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -38723,8 +28385,7 @@ func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsLi return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -38736,33 +28397,29 @@ func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsLi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsListCall) Fields(s ...googleapi.Field) *PlacementGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsListCall) IfNoneMatch(entityTag string) *PlacementGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsListCall) Context(ctx context.Context) *PlacementGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38771,12 +28428,7 @@ func (c *PlacementGroupsListCall) Header() http.Header { } func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38793,16 +28445,15 @@ func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.list" call. -// Exactly one of *PlacementGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlacementGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlacementGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38810,17 +28461,17 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -38833,187 +28484,6 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placement groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placement groups that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placement groups that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placement groups that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placement groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "800", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "800", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementGroupType": { - // "description": "Select only placement groups belonging with this group type. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting.", - // "enum": [ - // "PLACEMENT_PACKAGE", - // "PLACEMENT_ROADBLOCK" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placement groups that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placement groups with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPM_ACTIVEVIEW", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placement groups with names like \"placement group June 2015\", \"placement group May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementgroup\" will match placement groups with name \"my placementgroup\", \"placementgroup 2015\", or simply \"placementgroup\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placement groups that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "response": { - // "$ref": "PlacementGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -39021,7 +28491,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // The provided context supersedes any context provided to the Context method. func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -39037,8 +28507,6 @@ func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGr } } -// method id "dfareporting.placementGroups.patch": - type PlacementGroupsPatchCall struct { s *Service profileId int64 @@ -39048,8 +28516,11 @@ type PlacementGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement group. This method supports -// patch semantics. +// Patch: Updates an existing placement group. This method supports patch +// semantics. +// +// - id: Placement group ID. +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup *PlacementGroup) *PlacementGroupsPatchCall { c := &PlacementGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39059,23 +28530,21 @@ func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsPatchCall) Fields(s ...googleapi.Field) *PlacementGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsPatchCall) Context(ctx context.Context) *PlacementGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39084,18 +28553,12 @@ func (c *PlacementGroupsPatchCall) Header() http.Header { } func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -39108,16 +28571,14 @@ func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.patch" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39125,17 +28586,17 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -39148,45 +28609,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.update": +} type PlacementGroupsUpdateCall struct { s *Service @@ -39198,6 +28621,8 @@ type PlacementGroupsUpdateCall struct { } // Update: Updates an existing placement group. +// +// - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) Update(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsUpdateCall { c := &PlacementGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39206,23 +28631,21 @@ func (r *PlacementGroupsService) Update(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsUpdateCall) Fields(s ...googleapi.Field) *PlacementGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsUpdateCall) Context(ctx context.Context) *PlacementGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39231,18 +28654,12 @@ func (c *PlacementGroupsUpdateCall) Header() http.Header { } func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -39255,16 +28672,14 @@ func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.update" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39272,17 +28687,17 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -39295,37 +28710,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group.", - // "httpMethod": "PUT", - // "id": "dfareporting.placementGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.delete": +} type PlacementStrategiesDeleteCall struct { s *Service @@ -39337,6 +28722,9 @@ type PlacementStrategiesDeleteCall struct { } // Delete: Deletes an existing placement strategy. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *PlacementStrategiesDeleteCall { c := &PlacementStrategiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39345,23 +28733,21 @@ func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesDeleteCall) Fields(s ...googleapi.Field) *PlacementStrategiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesDeleteCall) Context(ctx context.Context) *PlacementStrategiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39370,12 +28756,7 @@ func (c *PlacementStrategiesDeleteCall) Header() http.Header { } func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -39390,7 +28771,7 @@ func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.delete" call. @@ -39402,42 +28783,10 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing placement strategy.", - // "httpMethod": "DELETE", - // "id": "dfareporting.placementStrategies.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.get": +} type PlacementStrategiesGetCall struct { s *Service @@ -39450,6 +28799,9 @@ type PlacementStrategiesGetCall struct { } // Get: Gets one placement strategy by ID. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementStrategiesGetCall { c := &PlacementStrategiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39458,33 +28810,29 @@ func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementSt } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesGetCall) Fields(s ...googleapi.Field) *PlacementStrategiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesGetCall) IfNoneMatch(entityTag string) *PlacementStrategiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesGetCall) Context(ctx context.Context) *PlacementStrategiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39493,12 +28841,7 @@ func (c *PlacementStrategiesGetCall) Header() http.Header { } func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39516,16 +28859,15 @@ func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.get" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39533,17 +28875,17 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39556,42 +28898,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Gets one placement strategy by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.insert": +} type PlacementStrategiesInsertCall struct { s *Service @@ -39603,6 +28910,8 @@ type PlacementStrategiesInsertCall struct { } // Insert: Inserts a new placement strategy. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesInsertCall { c := &PlacementStrategiesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -39611,23 +28920,21 @@ func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesInsertCall) Fields(s ...googleapi.Field) *PlacementStrategiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesInsertCall) Context(ctx context.Context) *PlacementStrategiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39636,18 +28943,12 @@ func (c *PlacementStrategiesInsertCall) Header() http.Header { } func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -39660,16 +28961,15 @@ func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.insert" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39677,17 +28977,17 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39700,37 +29000,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Inserts a new placement strategy.", - // "httpMethod": "POST", - // "id": "dfareporting.placementStrategies.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.list": +} type PlacementStrategiesListCall struct { s *Service @@ -39741,16 +29011,18 @@ type PlacementStrategiesListCall struct { header_ http.Header } -// List: Retrieves a list of placement strategies, possibly filtered. -// This method supports paging. +// List: Retrieves a list of placement strategies, possibly filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesListCall { c := &PlacementStrategiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only placement -// strategies with these IDs. +// Ids sets the optional parameter "ids": Select only placement strategies with +// these IDs. func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesListCall { var ids_ []string for _, v := range ids { @@ -39760,8 +29032,8 @@ func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementStrategiesListCall) MaxResults(maxResults int64) *PlacementStrategiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -39774,22 +29046,21 @@ func (c *PlacementStrategiesListCall) PageToken(pageToken string) *PlacementStra return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "placementstrategy*2015" will return objects with names like -// "placementstrategy June 2015", "placementstrategy April 2015", or -// simply "placementstrategy 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementstrategy" will match -// objects with name "my placementstrategy", "placementstrategy 2015", -// or simply "placementstrategy". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "placementstrategy*2015" will return objects with names like +// "placementstrategy June 2015", "placementstrategy April 2015", or simply +// "placementstrategy 2015". Most of the searches also add wildcards implicitly +// at the start and the end of the search string. For example, a search string +// of "placementstrategy" will match objects with name "my placementstrategy", +// "placementstrategy 2015", or simply "placementstrategy". func (c *PlacementStrategiesListCall) SearchString(searchString string) *PlacementStrategiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -39800,8 +29071,7 @@ func (c *PlacementStrategiesListCall) SortField(sortField string) *PlacementStra return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -39813,33 +29083,29 @@ func (c *PlacementStrategiesListCall) SortOrder(sortOrder string) *PlacementStra } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesListCall) Fields(s ...googleapi.Field) *PlacementStrategiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesListCall) IfNoneMatch(entityTag string) *PlacementStrategiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesListCall) Context(ctx context.Context) *PlacementStrategiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39848,12 +29114,7 @@ func (c *PlacementStrategiesListCall) Header() http.Header { } func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39870,16 +29131,15 @@ func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.list" call. -// Exactly one of *PlacementStrategiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementStrategiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategiesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*PlacementStrategiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39887,17 +29147,17 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -39910,85 +29170,6 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only placement strategies with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"placementstrategy*2015\" will return objects with names like \"placementstrategy June 2015\", \"placementstrategy April 2015\", or simply \"placementstrategy 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementstrategy\" will match objects with name \"my placementstrategy\", \"placementstrategy 2015\", or simply \"placementstrategy\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "response": { - // "$ref": "PlacementStrategiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -39996,7 +29177,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // The provided context supersedes any context provided to the Context method. func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*PlacementStrategiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -40012,8 +29193,6 @@ func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*Placeme } } -// method id "dfareporting.placementStrategies.patch": - type PlacementStrategiesPatchCall struct { s *Service profileId int64 @@ -40023,8 +29202,11 @@ type PlacementStrategiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement strategy. This method supports -// patch semantics. +// Patch: Updates an existing placement strategy. This method supports patch +// semantics. +// +// - id: Placement strategy ID. +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placementstrategy *PlacementStrategy) *PlacementStrategiesPatchCall { c := &PlacementStrategiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40034,23 +29216,21 @@ func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placements } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesPatchCall) Fields(s ...googleapi.Field) *PlacementStrategiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesPatchCall) Context(ctx context.Context) *PlacementStrategiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40059,18 +29239,12 @@ func (c *PlacementStrategiesPatchCall) Header() http.Header { } func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -40083,16 +29257,15 @@ func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.patch" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40100,17 +29273,17 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -40123,45 +29296,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementStrategies.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.update": +} type PlacementStrategiesUpdateCall struct { s *Service @@ -40173,6 +29308,8 @@ type PlacementStrategiesUpdateCall struct { } // Update: Updates an existing placement strategy. +// +// - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesUpdateCall { c := &PlacementStrategiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40181,23 +29318,21 @@ func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesUpdateCall) Fields(s ...googleapi.Field) *PlacementStrategiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesUpdateCall) Context(ctx context.Context) *PlacementStrategiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40206,18 +29341,12 @@ func (c *PlacementStrategiesUpdateCall) Header() http.Header { } func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -40230,16 +29359,15 @@ func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.update" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40247,17 +29375,17 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -40270,37 +29398,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy.", - // "httpMethod": "PUT", - // "id": "dfareporting.placementStrategies.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.generatetags": +} type PlacementsGeneratetagsCall struct { s *Service @@ -40311,21 +29409,23 @@ type PlacementsGeneratetagsCall struct { } // Generatetags: Generates tags for a placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Generatetags(profileId int64) *PlacementsGeneratetagsCall { c := &PlacementsGeneratetagsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// CampaignId sets the optional parameter "campaignId": Generate -// placements belonging to this campaign. This is a required field. +// CampaignId sets the optional parameter "campaignId": Generate placements +// belonging to this campaign. This is a required field. func (c *PlacementsGeneratetagsCall) CampaignId(campaignId int64) *PlacementsGeneratetagsCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// PlacementIds sets the optional parameter "placementIds": Generate -// tags for these placements. +// PlacementIds sets the optional parameter "placementIds": Generate tags for +// these placements. func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *PlacementsGeneratetagsCall { var placementIds_ []string for _, v := range placementIds { @@ -40335,11 +29435,10 @@ func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *Placem return c } -// TagFormats sets the optional parameter "tagFormats": Tag formats to -// generate for these placements. +// TagFormats sets the optional parameter "tagFormats": Tag formats to generate +// for these placements. // -// Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 -// placements. +// Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements. // // Possible values: // @@ -40368,23 +29467,21 @@ func (c *PlacementsGeneratetagsCall) TagFormats(tagFormats ...string) *Placement } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGeneratetagsCall) Fields(s ...googleapi.Field) *PlacementsGeneratetagsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGeneratetagsCall) Context(ctx context.Context) *PlacementsGeneratetagsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGeneratetagsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40393,12 +29490,7 @@ func (c *PlacementsGeneratetagsCall) Header() http.Header { } func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -40412,16 +29504,15 @@ func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.generatetags" call. -// Exactly one of *PlacementsGenerateTagsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*PlacementsGenerateTagsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40429,17 +29520,17 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsGenerateTagsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -40452,95 +29543,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Generates tags for a placement.", - // "httpMethod": "POST", - // "id": "dfareporting.placements.generatetags", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Generate placements belonging to this campaign. This is a required field.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Generate tags for these placements.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tagFormats": { - // "description": "Tag formats to generate for these placements.\n\nNote: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.", - // "enum": [ - // "PLACEMENT_TAG_CLICK_COMMANDS", - // "PLACEMENT_TAG_IFRAME_ILAYER", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4", - // "PLACEMENT_TAG_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_JAVASCRIPT", - // "PLACEMENT_TAG_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_STANDARD", - // "PLACEMENT_TAG_TRACKING", - // "PLACEMENT_TAG_TRACKING_IFRAME", - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/generatetags", - // "response": { - // "$ref": "PlacementsGenerateTagsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.get": +} type PlacementsGetCall struct { s *Service @@ -40553,6 +29556,9 @@ type PlacementsGetCall struct { } // Get: Gets one placement by ID. +// +// - id: Placement ID. +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { c := &PlacementsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40561,33 +29567,29 @@ func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGetCall) Fields(s ...googleapi.Field) *PlacementsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsGetCall) IfNoneMatch(entityTag string) *PlacementsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGetCall) Context(ctx context.Context) *PlacementsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40596,12 +29598,7 @@ func (c *PlacementsGetCall) Header() http.Header { } func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40619,16 +29616,14 @@ func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.get" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40636,17 +29631,17 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40659,42 +29654,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) return nil, err } return ret, nil - // { - // "description": "Gets one placement by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.placements.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/{id}", - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.insert": +} type PlacementsInsertCall struct { s *Service @@ -40706,6 +29666,8 @@ type PlacementsInsertCall struct { } // Insert: Inserts a new placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Insert(profileId int64, placement *Placement) *PlacementsInsertCall { c := &PlacementsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -40714,23 +29676,21 @@ func (r *PlacementsService) Insert(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsInsertCall) Fields(s ...googleapi.Field) *PlacementsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsInsertCall) Context(ctx context.Context) *PlacementsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40739,18 +29699,12 @@ func (c *PlacementsInsertCall) Header() http.Header { } func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -40763,16 +29717,14 @@ func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.insert" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40780,17 +29732,17 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40803,37 +29755,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Inserts a new placement.", - // "httpMethod": "POST", - // "id": "dfareporting.placements.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.list": +} type PlacementsListCall struct { s *Service @@ -40846,14 +29768,16 @@ type PlacementsListCall struct { // List: Retrieves a list of placements, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) List(profileId int64) *PlacementsListCall { c := &PlacementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placements that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placements that belong to these advertisers. func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -40864,8 +29788,8 @@ func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsLi } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementsListCall) Archived(archived bool) *PlacementsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c @@ -40882,13 +29806,12 @@ func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCa return c } -// Compatibilities sets the optional parameter "compatibilities": Select -// only placements that are associated with these compatibilities. -// DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop -// or on mobile devices for regular or interstitial ads respectively. -// APP and APP_INTERSTITIAL are for rendering in mobile apps. -// IN_STREAM_VIDEO refers to rendering in in-stream video ads developed -// with the VAST standard. +// Compatibilities sets the optional parameter "compatibilities": Select only +// placements that are associated with these compatibilities. DISPLAY and +// DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile +// devices for regular or interstitial ads respectively. APP and +// APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to +// rendering in in-stream video ads developed with the VAST standard. // // Possible values: // @@ -40903,9 +29826,8 @@ func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *Placeme return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placements that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placements that are associated with these content categories. func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -40915,9 +29837,8 @@ func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *Pl return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placements that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placements that are associated with these directory sites. func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -40927,8 +29848,8 @@ func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *Placem return c } -// GroupIds sets the optional parameter "groupIds": Select only -// placements that belong to these placement groups. +// GroupIds sets the optional parameter "groupIds": Select only placements that +// belong to these placement groups. func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { var groupIds_ []string for _, v := range groupIds { @@ -40938,8 +29859,8 @@ func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { return c } -// Ids sets the optional parameter "ids": Select only placements with -// these IDs. +// Ids sets the optional parameter "ids": Select only placements with these +// IDs. func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { var ids_ []string for _, v := range ids { @@ -40949,16 +29870,16 @@ func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MaxEndDate(maxEndDate string) *PlacementsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementsListCall) MaxResults(maxResults int64) *PlacementsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -40972,17 +29893,17 @@ func (c *PlacementsListCall) MaxStartDate(maxStartDate string) *PlacementsListCa return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinEndDate(minEndDate string) *PlacementsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinStartDate(minStartDate string) *PlacementsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -40995,8 +29916,8 @@ func (c *PlacementsListCall) PageToken(pageToken string) *PlacementsListCall { return c } -// PaymentSource sets the optional parameter "paymentSource": Select -// only placements with this payment source. +// PaymentSource sets the optional parameter "paymentSource": Select only +// placements with this payment source. // // Possible values: // @@ -41007,9 +29928,8 @@ func (c *PlacementsListCall) PaymentSource(paymentSource string) *PlacementsList return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placements that are associated -// with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placements that are associated with these placement strategies. func (c *PlacementsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -41035,21 +29955,21 @@ func (c *PlacementsListCall) PricingTypes(pricingTypes ...string) *PlacementsLis return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placements by name or ID. Wildcards (*) are allowed. -// For example, "placement*2015" will return placements with names like -// "placement June 2015", "placement May 2015", or simply "placements -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "placement" will match placements with name "my placement", -// "placement 2015", or simply "placement". +// SearchString sets the optional parameter "searchString": Allows searching +// for placements by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placements with names like "placement June +// 2015", "placement May 2015", or simply "placements 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "placement" will match +// placements with name "my placement", "placement 2015", or simply +// "placement". func (c *PlacementsListCall) SearchString(searchString string) *PlacementsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placements -// that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placements that +// are associated with these sites. func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { var siteIds_ []string for _, v := range siteIds { @@ -41059,8 +29979,8 @@ func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { return c } -// SizeIds sets the optional parameter "sizeIds": Select only placements -// that are associated with these sizes. +// SizeIds sets the optional parameter "sizeIds": Select only placements that +// are associated with these sizes. func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -41070,8 +29990,8 @@ func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -41082,8 +30002,7 @@ func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -41095,33 +30014,29 @@ func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsListCall) Fields(s ...googleapi.Field) *PlacementsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsListCall) IfNoneMatch(entityTag string) *PlacementsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsListCall) Context(ctx context.Context) *PlacementsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41130,12 +30045,7 @@ func (c *PlacementsListCall) Header() http.Header { } func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41152,16 +30062,15 @@ func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.list" call. -// Exactly one of *PlacementsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41169,17 +30078,17 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41192,223 +30101,6 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.placements.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placements that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placements that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibilities": { - // "description": "Select only placements that are associated with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.", - // "enum": [ - // "APP", - // "APP_INTERSTITIAL", - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "IN_STREAM_AUDIO", - // "IN_STREAM_VIDEO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placements that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placements that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupIds": { - // "description": "Select only placements that belong to these placement groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placements with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "paymentSource": { - // "description": "Select only placements with this payment source.", - // "enum": [ - // "PLACEMENT_AGENCY_PAID", - // "PLACEMENT_PUBLISHER_PAID" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placements that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placements with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPM_ACTIVEVIEW", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placements with names like \"placement June 2015\", \"placement May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placement\" will match placements with name \"my placement\", \"placement 2015\", or simply \"placement\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placements that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only placements that are associated with these sizes.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "response": { - // "$ref": "PlacementsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -41416,7 +30108,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // The provided context supersedes any context provided to the Context method. func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -41432,8 +30124,6 @@ func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListRe } } -// method id "dfareporting.placements.patch": - type PlacementsPatchCall struct { s *Service profileId int64 @@ -41443,8 +30133,10 @@ type PlacementsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement. This method supports patch -// semantics. +// Patch: Updates an existing placement. This method supports patch semantics. +// +// - id: Placement ID. +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placement) *PlacementsPatchCall { c := &PlacementsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41454,23 +30146,21 @@ func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsPatchCall) Fields(s ...googleapi.Field) *PlacementsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsPatchCall) Context(ctx context.Context) *PlacementsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41479,18 +30169,12 @@ func (c *PlacementsPatchCall) Header() http.Header { } func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -41503,16 +30187,14 @@ func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.patch" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41520,17 +30202,17 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -41543,45 +30225,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro return nil, err } return ret, nil - // { - // "description": "Updates an existing placement. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.placements.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.update": +} type PlacementsUpdateCall struct { s *Service @@ -41593,6 +30237,8 @@ type PlacementsUpdateCall struct { } // Update: Updates an existing placement. +// +// - profileId: User profile ID associated with this request. func (r *PlacementsService) Update(profileId int64, placement *Placement) *PlacementsUpdateCall { c := &PlacementsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41601,23 +30247,21 @@ func (r *PlacementsService) Update(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsUpdateCall) Fields(s ...googleapi.Field) *PlacementsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsUpdateCall) Context(ctx context.Context) *PlacementsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41626,18 +30270,12 @@ func (c *PlacementsUpdateCall) Header() http.Header { } func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -41650,16 +30288,14 @@ func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.update" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41667,17 +30303,17 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -41690,37 +30326,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Updates an existing placement.", - // "httpMethod": "PUT", - // "id": "dfareporting.placements.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.get": +} type PlatformTypesGetCall struct { s *Service @@ -41733,6 +30339,9 @@ type PlatformTypesGetCall struct { } // Get: Gets one platform type by ID. +// +// - id: Platform type ID. +// - profileId: User profile ID associated with this request. func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetCall { c := &PlatformTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41741,33 +30350,29 @@ func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesGetCall) Fields(s ...googleapi.Field) *PlatformTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesGetCall) IfNoneMatch(entityTag string) *PlatformTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesGetCall) Context(ctx context.Context) *PlatformTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41776,12 +30381,7 @@ func (c *PlatformTypesGetCall) Header() http.Header { } func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41799,16 +30399,14 @@ func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.get" call. -// Exactly one of *PlatformType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlatformType.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlatformType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41816,17 +30414,17 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformType{ ServerResponse: googleapi.ServerResponse{ @@ -41839,42 +30437,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, return nil, err } return ret, nil - // { - // "description": "Gets one platform type by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Platform type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes/{id}", - // "response": { - // "$ref": "PlatformType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.list": +} type PlatformTypesListCall struct { s *Service @@ -41886,6 +30449,8 @@ type PlatformTypesListCall struct { } // List: Retrieves a list of platform types. +// +// - profileId: User profile ID associated with this request. func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { c := &PlatformTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -41893,33 +30458,29 @@ func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesListCall) Fields(s ...googleapi.Field) *PlatformTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesListCall) IfNoneMatch(entityTag string) *PlatformTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesListCall) Context(ctx context.Context) *PlatformTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41928,12 +30489,7 @@ func (c *PlatformTypesListCall) Header() http.Header { } func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41950,16 +30506,15 @@ func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.list" call. -// Exactly one of *PlatformTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlatformTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlatformTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41967,17 +30522,17 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41990,34 +30545,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes return nil, err } return ret, nil - // { - // "description": "Retrieves a list of platform types.", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes", - // "response": { - // "$ref": "PlatformTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.get": +} type PostalCodesGetCall struct { s *Service @@ -42030,6 +30558,9 @@ type PostalCodesGetCall struct { } // Get: Gets one postal code by ID. +// +// - code: Postal code ID. +// - profileId: User profile ID associated with this request. func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCall { c := &PostalCodesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42038,33 +30569,29 @@ func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesGetCall) Fields(s ...googleapi.Field) *PostalCodesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesGetCall) IfNoneMatch(entityTag string) *PostalCodesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesGetCall) Context(ctx context.Context) *PostalCodesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42073,12 +30600,7 @@ func (c *PostalCodesGetCall) Header() http.Header { } func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42096,16 +30618,14 @@ func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "code": c.code, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.get" call. -// Exactly one of *PostalCode or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PostalCode.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PostalCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42113,17 +30633,17 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCode{ ServerResponse: googleapi.ServerResponse{ @@ -42136,41 +30656,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro return nil, err } return ret, nil - // { - // "description": "Gets one postal code by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.get", - // "parameterOrder": [ - // "profileId", - // "code" - // ], - // "parameters": { - // "code": { - // "description": "Postal code ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes/{code}", - // "response": { - // "$ref": "PostalCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.list": +} type PostalCodesListCall struct { s *Service @@ -42182,6 +30668,8 @@ type PostalCodesListCall struct { } // List: Retrieves a list of postal codes. +// +// - profileId: User profile ID associated with this request. func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { c := &PostalCodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42189,33 +30677,29 @@ func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesListCall) Fields(s ...googleapi.Field) *PostalCodesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesListCall) IfNoneMatch(entityTag string) *PostalCodesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesListCall) Context(ctx context.Context) *PostalCodesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42224,12 +30708,7 @@ func (c *PostalCodesListCall) Header() http.Header { } func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42246,16 +30725,15 @@ func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.list" call. -// Exactly one of *PostalCodesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *PostalCodesListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42263,17 +30741,17 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCodesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42286,34 +30764,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of postal codes.", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes", - // "response": { - // "$ref": "PostalCodesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.get": +} type ProjectsGetCall struct { s *Service @@ -42326,6 +30777,9 @@ type ProjectsGetCall struct { } // Get: Gets one project by ID. +// +// - id: Project ID. +// - profileId: User profile ID associated with this request. func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42334,33 +30788,29 @@ func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42369,12 +30819,7 @@ func (c *ProjectsGetCall) Header() http.Header { } func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42392,16 +30837,14 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.get" call. -// Exactly one of *Project or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Project.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Project.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42409,17 +30852,17 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Project{ ServerResponse: googleapi.ServerResponse{ @@ -42432,42 +30875,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return nil, err } return ret, nil - // { - // "description": "Gets one project by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.projects.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Project ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{id}", - // "response": { - // "$ref": "Project" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.list": +} type ProjectsListCall struct { s *Service @@ -42478,16 +30886,18 @@ type ProjectsListCall struct { header_ http.Header } -// List: Retrieves a list of projects, possibly filtered. This method -// supports paging. +// List: Retrieves a list of projects, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *ProjectsService) List(profileId int64) *ProjectsListCall { c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only projects with these advertiser IDs. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// projects with these advertiser IDs. func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -42497,8 +30907,7 @@ func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCa return c } -// Ids sets the optional parameter "ids": Select only projects with -// these IDs. +// Ids sets the optional parameter "ids": Select only projects with these IDs. func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { var ids_ []string for _, v := range ids { @@ -42508,8 +30917,8 @@ func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ProjectsListCall) MaxResults(maxResults int64) *ProjectsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -42522,21 +30931,20 @@ func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for projects by name or ID. Wildcards (*) are allowed. For -// example, "project*2015" will return projects with names like "project -// June 2015", "project April 2015", or simply "project 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "project" will -// match projects with name "my project", "project 2015", or simply -// "project". +// SearchString sets the optional parameter "searchString": Allows searching +// for projects by name or ID. Wildcards (*) are allowed. For example, +// "project*2015" will return projects with names like "project June 2015", +// "project April 2015", or simply "project 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "project" will match projects with name "my +// project", "project 2015", or simply "project". func (c *ProjectsListCall) SearchString(searchString string) *ProjectsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -42547,8 +30955,7 @@ func (c *ProjectsListCall) SortField(sortField string) *ProjectsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -42560,33 +30967,29 @@ func (c *ProjectsListCall) SortOrder(sortOrder string) *ProjectsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsListCall) Fields(s ...googleapi.Field) *ProjectsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsListCall) Context(ctx context.Context) *ProjectsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42595,12 +30998,7 @@ func (c *ProjectsListCall) Header() http.Header { } func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42617,16 +31015,15 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.list" call. -// Exactly one of *ProjectsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ProjectsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProjectsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42634,17 +31031,17 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProjectsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42657,92 +31054,6 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of projects, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.projects.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only projects with these advertiser IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only projects with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, \"project*2015\" will return projects with names like \"project June 2015\", \"project April 2015\", or simply \"project 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"project\" will match projects with name \"my project\", \"project 2015\", or simply \"project\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects", - // "response": { - // "$ref": "ProjectsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -42750,7 +31061,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // The provided context supersedes any context provided to the Context method. func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -42766,8 +31077,6 @@ func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListRespon } } -// method id "dfareporting.regions.list": - type RegionsListCall struct { s *Service profileId int64 @@ -42778,6 +31087,8 @@ type RegionsListCall struct { } // List: Retrieves a list of regions. +// +// - profileId: User profile ID associated with this request. func (r *RegionsService) List(profileId int64) *RegionsListCall { c := &RegionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42785,33 +31096,29 @@ func (r *RegionsService) List(profileId int64) *RegionsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RegionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42820,12 +31127,7 @@ func (c *RegionsListCall) Header() http.Header { } func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42842,16 +31144,15 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.regions.list" call. -// Exactly one of *RegionsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RegionsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RegionsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42859,17 +31160,17 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RegionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42882,34 +31183,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse return nil, err } return ret, nil - // { - // "description": "Retrieves a list of regions.", - // "httpMethod": "GET", - // "id": "dfareporting.regions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/regions", - // "response": { - // "$ref": "RegionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.get": +} type RemarketingListSharesGetCall struct { s *Service @@ -42922,6 +31196,9 @@ type RemarketingListSharesGetCall struct { } // Get: Gets one remarketing list share by remarketing list ID. +// +// - profileId: User profile ID associated with this request. +// - remarketingListId: Remarketing list ID. func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId int64) *RemarketingListSharesGetCall { c := &RemarketingListSharesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -42930,33 +31207,29 @@ func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId in } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesGetCall) Fields(s ...googleapi.Field) *RemarketingListSharesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListSharesGetCall) IfNoneMatch(entityTag string) *RemarketingListSharesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesGetCall) Context(ctx context.Context) *RemarketingListSharesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42965,12 +31238,7 @@ func (c *RemarketingListSharesGetCall) Header() http.Header { } func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42988,16 +31256,15 @@ func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "remarketingListId": strconv.FormatInt(c.remarketingListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.get" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43005,17 +31272,17 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -43028,42 +31295,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list share by remarketing list ID.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingListShares.get", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.patch": +} type RemarketingListSharesPatchCall struct { s *Service @@ -43074,8 +31306,11 @@ type RemarketingListSharesPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list share. This method -// supports patch semantics. +// Patch: Updates an existing remarketing list share. This method supports +// patch semantics. +// +// - profileId: User profile ID associated with this request. +// - remarketingListId: Remarketing list ID. func (r *RemarketingListSharesService) Patch(profileId int64, remarketingListId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesPatchCall { c := &RemarketingListSharesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43085,23 +31320,21 @@ func (r *RemarketingListSharesService) Patch(profileId int64, remarketingListId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesPatchCall) Fields(s ...googleapi.Field) *RemarketingListSharesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesPatchCall) Context(ctx context.Context) *RemarketingListSharesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43110,18 +31343,12 @@ func (c *RemarketingListSharesPatchCall) Header() http.Header { } func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -43134,16 +31361,15 @@ func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.patch" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43151,17 +31377,17 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -43174,45 +31400,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingListShares.patch", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.update": +} type RemarketingListSharesUpdateCall struct { s *Service @@ -43224,6 +31412,8 @@ type RemarketingListSharesUpdateCall struct { } // Update: Updates an existing remarketing list share. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistshare *RemarketingListShare) *RemarketingListSharesUpdateCall { c := &RemarketingListSharesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43232,23 +31422,21 @@ func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistsh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesUpdateCall) Fields(s ...googleapi.Field) *RemarketingListSharesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesUpdateCall) Context(ctx context.Context) *RemarketingListSharesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43257,18 +31445,12 @@ func (c *RemarketingListSharesUpdateCall) Header() http.Header { } func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -43281,16 +31463,15 @@ func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.update" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43298,17 +31479,17 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -43321,37 +31502,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share.", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingListShares.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.get": +} type RemarketingListsGetCall struct { s *Service @@ -43364,6 +31515,9 @@ type RemarketingListsGetCall struct { } // Get: Gets one remarketing list by ID. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingListsGetCall { c := &RemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43372,33 +31526,29 @@ func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsGetCall) Fields(s ...googleapi.Field) *RemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsGetCall) IfNoneMatch(entityTag string) *RemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsGetCall) Context(ctx context.Context) *RemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43407,12 +31557,7 @@ func (c *RemarketingListsGetCall) Header() http.Header { } func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43430,16 +31575,15 @@ func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.get" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43447,17 +31591,17 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43470,42 +31614,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists/{id}", - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.insert": +} type RemarketingListsInsertCall struct { s *Service @@ -43517,6 +31626,8 @@ type RemarketingListsInsertCall struct { } // Insert: Inserts a new remarketing list. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *RemarketingList) *RemarketingListsInsertCall { c := &RemarketingListsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43525,23 +31636,21 @@ func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsInsertCall) Fields(s ...googleapi.Field) *RemarketingListsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsInsertCall) Context(ctx context.Context) *RemarketingListsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43550,18 +31659,12 @@ func (c *RemarketingListsInsertCall) Header() http.Header { } func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -43574,16 +31677,15 @@ func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.insert" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43591,17 +31693,17 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43614,37 +31716,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Inserts a new remarketing list.", - // "httpMethod": "POST", - // "id": "dfareporting.remarketingLists.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.list": +} type RemarketingListsListCall struct { s *Service @@ -43655,8 +31727,11 @@ type RemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of remarketing lists, possibly filtered. This -// method supports paging. +// List: Retrieves a list of remarketing lists, possibly filtered. This method +// supports paging. +// +// - advertiserId: Select only remarketing lists owned by this advertiser. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *RemarketingListsListCall { c := &RemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43664,36 +31739,35 @@ func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *Rem return c } -// Active sets the optional parameter "active": Select only active or -// only inactive remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive remarketing lists. func (c *RemarketingListsListCall) Active(active bool) *RemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Select only remarketing lists that have this -// floodlight activity ID. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Select only remarketing lists that have this floodlight activity ID. func (c *RemarketingListsListCall) FloodlightActivityId(floodlightActivityId int64) *RemarketingListsListCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *RemarketingListsListCall) MaxResults(maxResults int64) *RemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *RemarketingListsListCall) Name(name string) *RemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -43706,8 +31780,8 @@ func (c *RemarketingListsListCall) PageToken(pageToken string) *RemarketingLists return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -43718,8 +31792,7 @@ func (c *RemarketingListsListCall) SortField(sortField string) *RemarketingLists return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -43731,33 +31804,29 @@ func (c *RemarketingListsListCall) SortOrder(sortOrder string) *RemarketingLists } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsListCall) Fields(s ...googleapi.Field) *RemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsListCall) IfNoneMatch(entityTag string) *RemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsListCall) Context(ctx context.Context) *RemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43766,12 +31835,7 @@ func (c *RemarketingListsListCall) Header() http.Header { } func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43788,16 +31852,15 @@ func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.list" call. -// Exactly one of *RemarketingListsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *RemarketingListsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*RemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43805,17 +31868,17 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -43828,97 +31891,6 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only remarketing lists owned by this advertiser.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "floodlightActivityId": { - // "description": "Select only remarketing lists that have this floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "response": { - // "$ref": "RemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -43926,7 +31898,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // The provided context supersedes any context provided to the Context method. func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*RemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -43942,8 +31914,6 @@ func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*Remarketin } } -// method id "dfareporting.remarketingLists.patch": - type RemarketingListsPatchCall struct { s *Service profileId int64 @@ -43953,8 +31923,11 @@ type RemarketingListsPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list. This method supports -// patch semantics. +// Patch: Updates an existing remarketing list. This method supports patch +// semantics. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketinglist *RemarketingList) *RemarketingListsPatchCall { c := &RemarketingListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43964,23 +31937,21 @@ func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketingli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsPatchCall) Fields(s ...googleapi.Field) *RemarketingListsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsPatchCall) Context(ctx context.Context) *RemarketingListsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43989,18 +31960,12 @@ func (c *RemarketingListsPatchCall) Header() http.Header { } func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -44013,16 +31978,15 @@ func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.patch" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44030,17 +31994,17 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -44053,45 +32017,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingLists.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.update": +} type RemarketingListsUpdateCall struct { s *Service @@ -44103,6 +32029,8 @@ type RemarketingListsUpdateCall struct { } // Update: Updates an existing remarketing list. +// +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) Update(profileId int64, remarketinglist *RemarketingList) *RemarketingListsUpdateCall { c := &RemarketingListsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44111,23 +32039,21 @@ func (r *RemarketingListsService) Update(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsUpdateCall) Fields(s ...googleapi.Field) *RemarketingListsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsUpdateCall) Context(ctx context.Context) *RemarketingListsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44136,18 +32062,12 @@ func (c *RemarketingListsUpdateCall) Header() http.Header { } func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -44160,16 +32080,15 @@ func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.update" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44177,17 +32096,17 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -44200,37 +32119,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list.", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingLists.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.reports.delete": +} type ReportsDeleteCall struct { s *Service @@ -44242,6 +32131,9 @@ type ReportsDeleteCall struct { } // Delete: Deletes a report by its ID. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteCall { c := &ReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44250,23 +32142,21 @@ func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsDeleteCall) Fields(s ...googleapi.Field) *ReportsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsDeleteCall) Context(ctx context.Context) *ReportsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44275,12 +32165,7 @@ func (c *ReportsDeleteCall) Header() http.Header { } func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -44295,7 +32180,7 @@ func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.delete" call. @@ -44307,42 +32192,10 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a report by its ID.", - // "httpMethod": "DELETE", - // "id": "dfareporting.reports.delete", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.get": +} type ReportsGetCall struct { s *Service @@ -44355,6 +32208,9 @@ type ReportsGetCall struct { } // Get: Retrieves a report by its ID. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { c := &ReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44363,33 +32219,29 @@ func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsGetCall) Fields(s ...googleapi.Field) *ReportsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsGetCall) IfNoneMatch(entityTag string) *ReportsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsGetCall) Context(ctx context.Context) *ReportsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44398,12 +32250,7 @@ func (c *ReportsGetCall) Header() http.Header { } func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44421,16 +32268,14 @@ func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.get" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44438,17 +32283,17 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44461,42 +32306,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report by its ID.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.get", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.insert": +} type ReportsInsertCall struct { s *Service @@ -44508,6 +32318,8 @@ type ReportsInsertCall struct { } // Insert: Creates a report. +// +// - profileId: The DFA user profile ID. func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertCall { c := &ReportsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44516,23 +32328,21 @@ func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsInsertCall) Fields(s ...googleapi.Field) *ReportsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsInsertCall) Context(ctx context.Context) *ReportsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44541,18 +32351,12 @@ func (c *ReportsInsertCall) Header() http.Header { } func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports") @@ -44565,16 +32369,14 @@ func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.insert" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44582,17 +32384,17 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44605,37 +32407,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Creates a report.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.list": +} type ReportsListCall struct { s *Service @@ -44647,14 +32419,16 @@ type ReportsListCall struct { } // List: Retrieves list of reports. +// +// - profileId: The DFA user profile ID. func (r *ReportsService) List(profileId int64) *ReportsListCall { c := &ReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsListCall) MaxResults(maxResults int64) *ReportsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -44667,8 +32441,8 @@ func (c *ReportsListCall) PageToken(pageToken string) *ReportsListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -44679,8 +32453,8 @@ func (c *ReportsListCall) Scope(scope string) *ReportsListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -44692,8 +32466,7 @@ func (c *ReportsListCall) SortField(sortField string) *ReportsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -44705,33 +32478,29 @@ func (c *ReportsListCall) SortOrder(sortOrder string) *ReportsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsListCall) Fields(s ...googleapi.Field) *ReportsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsListCall) IfNoneMatch(entityTag string) *ReportsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsListCall) Context(ctx context.Context) *ReportsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44740,12 +32509,7 @@ func (c *ReportsListCall) Header() http.Header { } func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44762,16 +32526,14 @@ func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.list" call. -// Exactly one of *ReportList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ReportList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReportList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44779,17 +32541,17 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ReportList{ ServerResponse: googleapi.ServerResponse{ @@ -44802,89 +32564,6 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) return nil, err } return ret, nil - // { - // "description": "Retrieves list of reports.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE" - // ], - // "enumDescriptions": [ - // "All reports in account.", - // "My reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME", - // "NAME" - // ], - // "enumDescriptions": [ - // "Sort by report ID.", - // "Sort by 'lastModifiedTime' field.", - // "Sort by name of reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "response": { - // "$ref": "ReportList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -44892,7 +32571,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // The provided context supersedes any context provided to the Context method. func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -44908,8 +32587,6 @@ func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) } } -// method id "dfareporting.reports.patch": - type ReportsPatchCall struct { s *Service profileId int64 @@ -44921,6 +32598,9 @@ type ReportsPatchCall struct { } // Patch: Updates a report. This method supports patch semantics. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) *ReportsPatchCall { c := &ReportsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44930,23 +32610,21 @@ func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsPatchCall) Fields(s ...googleapi.Field) *ReportsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsPatchCall) Context(ctx context.Context) *ReportsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44955,18 +32633,12 @@ func (c *ReportsPatchCall) Header() http.Header { } func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -44980,16 +32652,14 @@ func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.patch" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44997,17 +32667,17 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -45020,45 +32690,7 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates a report. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.reports.patch", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.run": +} type ReportsRunCall struct { s *Service @@ -45070,6 +32702,9 @@ type ReportsRunCall struct { } // Run: Runs a report. +// +// - profileId: The DFA profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { c := &ReportsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45077,31 +32712,29 @@ func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { return c } -// Synchronous sets the optional parameter "synchronous": If set and -// true, tries to run the report synchronously. +// Synchronous sets the optional parameter "synchronous": If set and true, +// tries to run the report synchronously. func (c *ReportsRunCall) Synchronous(synchronous bool) *ReportsRunCall { c.urlParams_.Set("synchronous", fmt.Sprint(synchronous)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsRunCall) Fields(s ...googleapi.Field) *ReportsRunCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsRunCall) Context(ctx context.Context) *ReportsRunCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsRunCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45110,12 +32743,7 @@ func (c *ReportsRunCall) Header() http.Header { } func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -45130,16 +32758,14 @@ func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.run" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45147,17 +32773,17 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -45170,48 +32796,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Runs a report.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.run", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "synchronous": { - // "default": "false", - // "description": "If set and true, tries to run the report synchronously.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/run", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.update": +} type ReportsUpdateCall struct { s *Service @@ -45224,6 +32809,9 @@ type ReportsUpdateCall struct { } // Update: Updates a report. +// +// - profileId: The DFA user profile ID. +// - reportId: The ID of the report. func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) *ReportsUpdateCall { c := &ReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45233,23 +32821,21 @@ func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsUpdateCall) Fields(s ...googleapi.Field) *ReportsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsUpdateCall) Context(ctx context.Context) *ReportsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45258,18 +32844,12 @@ func (c *ReportsUpdateCall) Header() http.Header { } func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -45283,16 +32863,14 @@ func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.update" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45300,17 +32878,17 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -45323,45 +32901,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates a report.", - // "httpMethod": "PUT", - // "id": "dfareporting.reports.update", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.compatibleFields.query": +} type ReportsCompatibleFieldsQueryCall struct { s *Service @@ -45373,8 +32913,10 @@ type ReportsCompatibleFieldsQueryCall struct { } // Query: Returns the fields that are compatible to be selected in the -// respective sections of a report criteria, given the fields already -// selected in the input report and user permissions. +// respective sections of a report criteria, given the fields already selected +// in the input report and user permissions. +// +// - profileId: The DFA user profile ID. func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) *ReportsCompatibleFieldsQueryCall { c := &ReportsCompatibleFieldsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45383,23 +32925,21 @@ func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsCompatibleFieldsQueryCall) Fields(s ...googleapi.Field) *ReportsCompatibleFieldsQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsCompatibleFieldsQueryCall) Context(ctx context.Context) *ReportsCompatibleFieldsQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45408,18 +32948,12 @@ func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { } func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/compatiblefields/query") @@ -45432,16 +32966,15 @@ func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.compatibleFields.query" call. -// Exactly one of *CompatibleFields or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CompatibleFields.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CompatibleFields.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*CompatibleFields, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45449,17 +32982,17 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CompatibleFields{ ServerResponse: googleapi.ServerResponse{ @@ -45472,37 +33005,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co return nil, err } return ret, nil - // { - // "description": "Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.", - // "httpMethod": "POST", - // "id": "dfareporting.reports.compatibleFields.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/compatiblefields/query", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "CompatibleFields" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.files.get": +} type ReportsFilesGetCall struct { s *Service @@ -45516,6 +33019,10 @@ type ReportsFilesGetCall struct { } // Get: Retrieves a report file. This method supports media download. +// +// - fileId: The ID of the report file. +// - profileId: The DFA profile ID. +// - reportId: The ID of the report. func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) *ReportsFilesGetCall { c := &ReportsFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45525,33 +33032,29 @@ func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesGetCall) Fields(s ...googleapi.Field) *ReportsFilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesGetCall) IfNoneMatch(entityTag string) *ReportsFilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ReportsFilesGetCall) Context(ctx context.Context) *ReportsFilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45560,12 +33063,7 @@ func (c *ReportsFilesGetCall) Header() http.Header { } func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45584,7 +33082,7 @@ func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -45596,20 +33094,18 @@ func (c *ReportsFilesGetCall) Download(opts ...googleapi.CallOption) (*http.Resp if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.reports.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45617,17 +33113,17 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -45640,51 +33136,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file. This method supports media download.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.get", - // "parameterOrder": [ - // "profileId", - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.reports.files.list": +} type ReportsFilesListCall struct { s *Service @@ -45697,6 +33149,9 @@ type ReportsFilesListCall struct { } // List: Lists files for a report. +// +// - profileId: The DFA profile ID. +// - reportId: The ID of the parent report. func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFilesListCall { c := &ReportsFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45704,8 +33159,8 @@ func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFile return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsFilesListCall) MaxResults(maxResults int64) *ReportsFilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -45718,8 +33173,8 @@ func (c *ReportsFilesListCall) PageToken(pageToken string) *ReportsFilesListCall return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -45730,8 +33185,7 @@ func (c *ReportsFilesListCall) SortField(sortField string) *ReportsFilesListCall return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -45743,33 +33197,29 @@ func (c *ReportsFilesListCall) SortOrder(sortOrder string) *ReportsFilesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesListCall) Fields(s ...googleapi.Field) *ReportsFilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesListCall) IfNoneMatch(entityTag string) *ReportsFilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsFilesListCall) Context(ctx context.Context) *ReportsFilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45778,12 +33228,7 @@ func (c *ReportsFilesListCall) Header() http.Header { } func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45801,16 +33246,14 @@ func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45818,17 +33261,17 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -45841,81 +33284,6 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro return nil, err } return ret, nil - // { - // "description": "Lists files for a report.", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.list", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The DFA profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the parent report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -45923,7 +33291,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // The provided context supersedes any context provided to the Context method. func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -45939,8 +33307,6 @@ func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) erro } } -// method id "dfareporting.sites.get": - type SitesGetCall struct { s *Service profileId int64 @@ -45952,6 +33318,9 @@ type SitesGetCall struct { } // Get: Gets one site by ID. +// +// - id: Site ID. +// - profileId: User profile ID associated with this request. func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { c := &SitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -45960,33 +33329,29 @@ func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesGetCall) Context(ctx context.Context) *SitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45995,12 +33360,7 @@ func (c *SitesGetCall) Header() http.Header { } func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46018,16 +33378,14 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.get" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46035,17 +33393,17 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46058,42 +33416,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Gets one site by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.sites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites/{id}", - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.insert": +} type SitesInsertCall struct { s *Service @@ -46105,6 +33428,8 @@ type SitesInsertCall struct { } // Insert: Inserts a new site. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { c := &SitesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46113,23 +33438,21 @@ func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesInsertCall) Fields(s ...googleapi.Field) *SitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesInsertCall) Context(ctx context.Context) *SitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46138,18 +33461,12 @@ func (c *SitesInsertCall) Header() http.Header { } func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -46162,16 +33479,14 @@ func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.insert" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46179,17 +33494,17 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46202,37 +33517,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new site.", - // "httpMethod": "POST", - // "id": "dfareporting.sites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.list": +} type SitesListCall struct { s *Service @@ -46243,8 +33528,10 @@ type SitesListCall struct { header_ http.Header } -// List: Retrieves a list of sites, possibly filtered. This method -// supports paging. +// List: Retrieves a list of sites, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) List(profileId int64) *SitesListCall { c := &SitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46252,45 +33539,44 @@ func (r *SitesService) List(profileId int64) *SitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only sites that accept -// publisher paid placements. +// "acceptsPublisherPaidPlacements": Select only sites that accept publisher +// paid placements. func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// AdWordsSite sets the optional parameter "adWordsSite": Select only -// AdWords sites. +// AdWordsSite sets the optional parameter "adWordsSite": Select only AdWords +// sites. func (c *SitesListCall) AdWordsSite(adWordsSite bool) *SitesListCall { c.urlParams_.Set("adWordsSite", fmt.Sprint(adWordsSite)) return c } -// Approved sets the optional parameter "approved": Select only approved -// sites. +// Approved sets the optional parameter "approved": Select only approved sites. func (c *SitesListCall) Approved(approved bool) *SitesListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// sites with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only sites +// with these campaign IDs. func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -46300,8 +33586,8 @@ func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only sites with these directory site IDs. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// sites with these directory site IDs. func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -46311,8 +33597,7 @@ func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCa return c } -// Ids sets the optional parameter "ids": Select only sites with these -// IDs. +// Ids sets the optional parameter "ids": Select only sites with these IDs. func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { var ids_ []string for _, v := range ids { @@ -46322,8 +33607,8 @@ func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SitesListCall) MaxResults(maxResults int64) *SitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -46336,20 +33621,20 @@ func (c *SitesListCall) PageToken(pageToken string) *SitesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or keyName. Wildcards (*) are -// allowed. For example, "site*2015" will return objects with names like -// "site June 2015", "site April 2015", or simply "site 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "site" will -// match objects with name "my site", "site 2015", or simply "site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or keyName. Wildcards (*) are allowed. For example, +// "site*2015" will return objects with names like "site June 2015", "site +// April 2015", or simply "site 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "site" will match objects with name "my site", "site 2015", +// or simply "site". func (c *SitesListCall) SearchString(searchString string) *SitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -46360,8 +33645,7 @@ func (c *SitesListCall) SortField(sortField string) *SitesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -46372,48 +33656,44 @@ func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// sites with this subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only sites +// with this subaccount ID. func (c *SitesListCall) SubaccountId(subaccountId int64) *SitesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } -// UnmappedSite sets the optional parameter "unmappedSite": Select only -// sites that have not been mapped to a directory site. +// UnmappedSite sets the optional parameter "unmappedSite": Select only sites +// that have not been mapped to a directory site. func (c *SitesListCall) UnmappedSite(unmappedSite bool) *SitesListCall { c.urlParams_.Set("unmappedSite", fmt.Sprint(unmappedSite)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesListCall) Fields(s ...googleapi.Field) *SitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesListCall) IfNoneMatch(entityTag string) *SitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesListCall) Context(ctx context.Context) *SitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46422,12 +33702,7 @@ func (c *SitesListCall) Header() http.Header { } func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46444,16 +33719,15 @@ func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.list" call. -// Exactly one of *SitesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SitesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SitesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46461,17 +33735,17 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -46484,135 +33758,6 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.sites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only sites that accept publisher paid placements.", - // "location": "query", - // "type": "boolean" - // }, - // "adWordsSite": { - // "description": "Select only AdWords sites.", - // "location": "query", - // "type": "boolean" - // }, - // "approved": { - // "description": "Select only approved sites.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only sites with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only sites with these directory site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, \"site*2015\" will return objects with names like \"site June 2015\", \"site April 2015\", or simply \"site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"site\" will match objects with name \"my site\", \"site 2015\", or simply \"site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only sites with this subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "unmappedSite": { - // "description": "Select only sites that have not been mapped to a directory site.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "response": { - // "$ref": "SitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -46620,7 +33765,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // The provided context supersedes any context provided to the Context method. func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -46636,8 +33781,6 @@ func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) er } } -// method id "dfareporting.sites.patch": - type SitesPatchCall struct { s *Service profileId int64 @@ -46647,8 +33790,10 @@ type SitesPatchCall struct { header_ http.Header } -// Patch: Updates an existing site. This method supports patch -// semantics. +// Patch: Updates an existing site. This method supports patch semantics. +// +// - id: Site ID. +// - profileId: User profile ID associated with this request. func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchCall { c := &SitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46658,23 +33803,21 @@ func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesPatchCall) Fields(s ...googleapi.Field) *SitesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesPatchCall) Context(ctx context.Context) *SitesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46683,18 +33826,12 @@ func (c *SitesPatchCall) Header() http.Header { } func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -46707,16 +33844,14 @@ func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.patch" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46724,17 +33859,17 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46747,45 +33882,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.sites.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.update": +} type SitesUpdateCall struct { s *Service @@ -46797,6 +33894,8 @@ type SitesUpdateCall struct { } // Update: Updates an existing site. +// +// - profileId: User profile ID associated with this request. func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { c := &SitesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46805,23 +33904,21 @@ func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesUpdateCall) Fields(s ...googleapi.Field) *SitesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesUpdateCall) Context(ctx context.Context) *SitesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46830,18 +33927,12 @@ func (c *SitesUpdateCall) Header() http.Header { } func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -46854,16 +33945,14 @@ func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.update" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46871,17 +33960,17 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46894,37 +33983,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site.", - // "httpMethod": "PUT", - // "id": "dfareporting.sites.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.get": +} type SizesGetCall struct { s *Service @@ -46937,6 +33996,9 @@ type SizesGetCall struct { } // Get: Gets one size by ID. +// +// - id: Size ID. +// - profileId: User profile ID associated with this request. func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { c := &SizesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -46945,33 +34007,29 @@ func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesGetCall) Fields(s ...googleapi.Field) *SizesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesGetCall) IfNoneMatch(entityTag string) *SizesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesGetCall) Context(ctx context.Context) *SizesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46980,12 +34038,7 @@ func (c *SizesGetCall) Header() http.Header { } func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47003,16 +34056,14 @@ func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.get" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47020,17 +34071,17 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -47043,42 +34094,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Gets one size by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Size ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes/{id}", - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.insert": +} type SizesInsertCall struct { s *Service @@ -47090,6 +34106,8 @@ type SizesInsertCall struct { } // Insert: Inserts a new size. +// +// - profileId: User profile ID associated with this request. func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { c := &SizesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47098,23 +34116,21 @@ func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesInsertCall) Fields(s ...googleapi.Field) *SizesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesInsertCall) Context(ctx context.Context) *SizesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47123,18 +34139,12 @@ func (c *SizesInsertCall) Header() http.Header { } func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.size) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes") @@ -47147,16 +34157,14 @@ func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.insert" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47164,17 +34172,17 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -47187,37 +34195,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new size.", - // "httpMethod": "POST", - // "id": "dfareporting.sizes.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "request": { - // "$ref": "Size" - // }, - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.list": +} type SizesListCall struct { s *Service @@ -47228,32 +34206,33 @@ type SizesListCall struct { header_ http.Header } -// List: Retrieves a list of sizes, possibly filtered. Retrieved sizes -// are globally unique and may include values not currently in use by -// your account. Due to this, the list of sizes returned by this method -// may differ from the list seen in the Trafficking UI. +// List: Retrieves a list of sizes, possibly filtered. Retrieved sizes are +// globally unique and may include values not currently in use by your account. +// Due to this, the list of sizes returned by this method may differ from the +// list seen in the Trafficking UI. +// +// - profileId: User profile ID associated with this request. func (r *SizesService) List(profileId int64) *SizesListCall { c := &SizesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Height sets the optional parameter "height": Select only sizes with -// this height. +// Height sets the optional parameter "height": Select only sizes with this +// height. func (c *SizesListCall) Height(height int64) *SizesListCall { c.urlParams_.Set("height", fmt.Sprint(height)) return c } -// IabStandard sets the optional parameter "iabStandard": Select only -// IAB standard sizes. +// IabStandard sets the optional parameter "iabStandard": Select only IAB +// standard sizes. func (c *SizesListCall) IabStandard(iabStandard bool) *SizesListCall { c.urlParams_.Set("iabStandard", fmt.Sprint(iabStandard)) return c } -// Ids sets the optional parameter "ids": Select only sizes with these -// IDs. +// Ids sets the optional parameter "ids": Select only sizes with these IDs. func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { var ids_ []string for _, v := range ids { @@ -47263,41 +34242,37 @@ func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { return c } -// Width sets the optional parameter "width": Select only sizes with -// this width. +// Width sets the optional parameter "width": Select only sizes with this +// width. func (c *SizesListCall) Width(width int64) *SizesListCall { c.urlParams_.Set("width", fmt.Sprint(width)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesListCall) Fields(s ...googleapi.Field) *SizesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesListCall) IfNoneMatch(entityTag string) *SizesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesListCall) Context(ctx context.Context) *SizesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47306,12 +34281,7 @@ func (c *SizesListCall) Header() http.Header { } func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47328,16 +34298,15 @@ func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.list" call. -// Exactly one of *SizesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SizesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SizesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47345,17 +34314,17 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SizesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -47368,62 +34337,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "height": { - // "description": "Select only sizes with this height.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // }, - // "iabStandard": { - // "description": "Select only IAB standard sizes.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only sizes with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "width": { - // "description": "Select only sizes with this width.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "response": { - // "$ref": "SizesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.get": +} type SubaccountsGetCall struct { s *Service @@ -47436,6 +34350,9 @@ type SubaccountsGetCall struct { } // Get: Gets one subaccount by ID. +// +// - id: Subaccount ID. +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall { c := &SubaccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47444,33 +34361,29 @@ func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsGetCall) Fields(s ...googleapi.Field) *SubaccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsGetCall) IfNoneMatch(entityTag string) *SubaccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsGetCall) Context(ctx context.Context) *SubaccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47479,12 +34392,7 @@ func (c *SubaccountsGetCall) Header() http.Header { } func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47502,16 +34410,14 @@ func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.get" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47519,17 +34425,17 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47542,42 +34448,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro return nil, err } return ret, nil - // { - // "description": "Gets one subaccount by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts/{id}", - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.insert": +} type SubaccountsInsertCall struct { s *Service @@ -47589,6 +34460,8 @@ type SubaccountsInsertCall struct { } // Insert: Inserts a new subaccount. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *SubaccountsInsertCall { c := &SubaccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -47597,23 +34470,21 @@ func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsInsertCall) Fields(s ...googleapi.Field) *SubaccountsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsInsertCall) Context(ctx context.Context) *SubaccountsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47622,18 +34493,12 @@ func (c *SubaccountsInsertCall) Header() http.Header { } func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -47646,16 +34511,14 @@ func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.insert" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47663,17 +34526,17 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47686,37 +34549,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Inserts a new subaccount.", - // "httpMethod": "POST", - // "id": "dfareporting.subaccounts.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.list": +} type SubaccountsListCall struct { s *Service @@ -47727,16 +34560,18 @@ type SubaccountsListCall struct { header_ http.Header } -// List: Gets a list of subaccounts, possibly filtered. This method -// supports paging. +// List: Gets a list of subaccounts, possibly filtered. This method supports +// paging. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall { c := &SubaccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only subaccounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only subaccounts with these +// IDs. func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { var ids_ []string for _, v := range ids { @@ -47746,8 +34581,8 @@ func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SubaccountsListCall) MaxResults(maxResults int64) *SubaccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -47760,21 +34595,21 @@ func (c *SubaccountsListCall) PageToken(pageToken string) *SubaccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "subaccount*2015" will return objects with names like -// "subaccount June 2015", "subaccount April 2015", or simply -// "subaccount 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "subaccount" will match objects with name "my subaccount", -// "subaccount 2015", or simply "subaccount". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "subaccount*2015" will return objects with names like "subaccount June +// 2015", "subaccount April 2015", or simply "subaccount 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "subaccount" will match +// objects with name "my subaccount", "subaccount 2015", or simply +// "subaccount". func (c *SubaccountsListCall) SearchString(searchString string) *SubaccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -47785,8 +34620,7 @@ func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -47798,33 +34632,29 @@ func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsListCall) Fields(s ...googleapi.Field) *SubaccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsListCall) IfNoneMatch(entityTag string) *SubaccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsListCall) Context(ctx context.Context) *SubaccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47833,12 +34663,7 @@ func (c *SubaccountsListCall) Header() http.Header { } func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47855,16 +34680,15 @@ func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.list" call. -// Exactly one of *SubaccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *SubaccountsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47872,17 +34696,17 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SubaccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -47895,85 +34719,6 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList return nil, err } return ret, nil - // { - // "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only subaccounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"subaccount*2015\" will return objects with names like \"subaccount June 2015\", \"subaccount April 2015\", or simply \"subaccount 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"subaccount\" will match objects with name \"my subaccount\", \"subaccount 2015\", or simply \"subaccount\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "response": { - // "$ref": "SubaccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -47981,7 +34726,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // The provided context supersedes any context provided to the Context method. func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -47997,8 +34742,6 @@ func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsList } } -// method id "dfareporting.subaccounts.patch": - type SubaccountsPatchCall struct { s *Service profileId int64 @@ -48008,8 +34751,10 @@ type SubaccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing subaccount. This method supports patch -// semantics. +// Patch: Updates an existing subaccount. This method supports patch semantics. +// +// - id: Subaccount ID. +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subaccount) *SubaccountsPatchCall { c := &SubaccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48019,23 +34764,21 @@ func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subacc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsPatchCall) Fields(s ...googleapi.Field) *SubaccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsPatchCall) Context(ctx context.Context) *SubaccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48044,18 +34787,12 @@ func (c *SubaccountsPatchCall) Header() http.Header { } func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -48068,16 +34805,14 @@ func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.patch" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48085,17 +34820,17 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -48108,45 +34843,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.subaccounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.update": +} type SubaccountsUpdateCall struct { s *Service @@ -48158,6 +34855,8 @@ type SubaccountsUpdateCall struct { } // Update: Updates an existing subaccount. +// +// - profileId: User profile ID associated with this request. func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *SubaccountsUpdateCall { c := &SubaccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48166,23 +34865,21 @@ func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsUpdateCall) Fields(s ...googleapi.Field) *SubaccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsUpdateCall) Context(ctx context.Context) *SubaccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48191,18 +34888,12 @@ func (c *SubaccountsUpdateCall) Header() http.Header { } func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -48215,16 +34906,14 @@ func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.update" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48232,17 +34921,17 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -48255,37 +34944,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount.", - // "httpMethod": "PUT", - // "id": "dfareporting.subaccounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.get": +} type TargetableRemarketingListsGetCall struct { s *Service @@ -48298,6 +34957,9 @@ type TargetableRemarketingListsGetCall struct { } // Get: Gets one remarketing list by ID. +// +// - id: Remarketing list ID. +// - profileId: User profile ID associated with this request. func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *TargetableRemarketingListsGetCall { c := &TargetableRemarketingListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48306,33 +34968,29 @@ func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *Targ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsGetCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsGetCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsGetCall) Context(ctx context.Context) *TargetableRemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48341,12 +34999,7 @@ func (c *TargetableRemarketingListsGetCall) Header() http.Header { } func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48364,16 +35017,15 @@ func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Respons "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.get" call. -// Exactly one of *TargetableRemarketingList or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TargetableRemarketingList.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TargetableRemarketingList.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48381,17 +35033,17 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -48404,42 +35056,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - // "response": { - // "$ref": "TargetableRemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.list": +} type TargetableRemarketingListsListCall struct { s *Service @@ -48450,8 +35067,12 @@ type TargetableRemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of targetable remarketing lists, possibly -// filtered. This method supports paging. +// List: Retrieves a list of targetable remarketing lists, possibly filtered. +// This method supports paging. +// +// - advertiserId: Select only targetable remarketing lists targetable by these +// advertisers. +// - profileId: User profile ID associated with this request. func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId int64) *TargetableRemarketingListsListCall { c := &TargetableRemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48459,28 +35080,28 @@ func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId i return c } -// Active sets the optional parameter "active": Select only active or -// only inactive targetable remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive targetable remarketing lists. func (c *TargetableRemarketingListsListCall) Active(active bool) *TargetableRemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetableRemarketingListsListCall) MaxResults(maxResults int64) *TargetableRemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *TargetableRemarketingListsListCall) Name(name string) *TargetableRemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -48493,8 +35114,8 @@ func (c *TargetableRemarketingListsListCall) PageToken(pageToken string) *Target return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -48505,8 +35126,7 @@ func (c *TargetableRemarketingListsListCall) SortField(sortField string) *Target return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -48518,33 +35138,29 @@ func (c *TargetableRemarketingListsListCall) SortOrder(sortOrder string) *Target } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsListCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsListCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsListCall) Context(ctx context.Context) *TargetableRemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48553,12 +35169,7 @@ func (c *TargetableRemarketingListsListCall) Header() http.Header { } func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48575,17 +35186,15 @@ func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.list" call. -// Exactly one of *TargetableRemarketingListsListResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48593,17 +35202,17 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -48616,91 +35225,6 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive targetable remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only targetable remarketing lists targetable by these advertisers.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists", - // "response": { - // "$ref": "TargetableRemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -48708,7 +35232,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(*TargetableRemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -48724,8 +35248,6 @@ func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(* } } -// method id "dfareporting.targetingTemplates.get": - type TargetingTemplatesGetCall struct { s *Service profileId int64 @@ -48737,6 +35259,9 @@ type TargetingTemplatesGetCall struct { } // Get: Gets one targeting template by ID. +// +// - id: Targeting template ID. +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTemplatesGetCall { c := &TargetingTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48745,33 +35270,29 @@ func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTem } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesGetCall) Fields(s ...googleapi.Field) *TargetingTemplatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesGetCall) IfNoneMatch(entityTag string) *TargetingTemplatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesGetCall) Context(ctx context.Context) *TargetingTemplatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48780,12 +35301,7 @@ func (c *TargetingTemplatesGetCall) Header() http.Header { } func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48803,16 +35319,15 @@ func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.get" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48820,17 +35335,17 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48843,42 +35358,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting return nil, err } return ret, nil - // { - // "description": "Gets one targeting template by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates/{id}", - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.insert": +} type TargetingTemplatesInsertCall struct { s *Service @@ -48890,6 +35370,8 @@ type TargetingTemplatesInsertCall struct { } // Insert: Inserts a new targeting template. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesInsertCall { c := &TargetingTemplatesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -48898,23 +35380,21 @@ func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesInsertCall) Fields(s ...googleapi.Field) *TargetingTemplatesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesInsertCall) Context(ctx context.Context) *TargetingTemplatesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48923,18 +35403,12 @@ func (c *TargetingTemplatesInsertCall) Header() http.Header { } func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -48947,16 +35421,15 @@ func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.insert" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48964,17 +35437,17 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48987,37 +35460,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Inserts a new targeting template.", - // "httpMethod": "POST", - // "id": "dfareporting.targetingTemplates.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.list": +} type TargetingTemplatesListCall struct { s *Service @@ -49028,8 +35471,10 @@ type TargetingTemplatesListCall struct { header_ http.Header } -// List: Retrieves a list of targeting templates, optionally filtered. -// This method supports paging. +// List: Retrieves a list of targeting templates, optionally filtered. This +// method supports paging. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) List(profileId int64) *TargetingTemplatesListCall { c := &TargetingTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49043,8 +35488,8 @@ func (c *TargetingTemplatesListCall) AdvertiserId(advertiserId int64) *Targeting return c } -// Ids sets the optional parameter "ids": Select only targeting -// templates with these IDs. +// Ids sets the optional parameter "ids": Select only targeting templates with +// these IDs. func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCall { var ids_ []string for _, v := range ids { @@ -49054,8 +35499,8 @@ func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCa return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetingTemplatesListCall) MaxResults(maxResults int64) *TargetingTemplatesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -49068,21 +35513,20 @@ func (c *TargetingTemplatesListCall) PageToken(pageToken string) *TargetingTempl return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "template*2015" will return objects with names like -// "template June 2015", "template April 2015", or simply "template -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "template" will match objects with name "my template", "template -// 2015", or simply "template". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "template*2015" will return objects with names like "template June 2015", +// "template April 2015", or simply "template 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "template" will match objects with name "my +// template", "template 2015", or simply "template". func (c *TargetingTemplatesListCall) SearchString(searchString string) *TargetingTemplatesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -49093,8 +35537,7 @@ func (c *TargetingTemplatesListCall) SortField(sortField string) *TargetingTempl return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -49106,33 +35549,29 @@ func (c *TargetingTemplatesListCall) SortOrder(sortOrder string) *TargetingTempl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesListCall) Fields(s ...googleapi.Field) *TargetingTemplatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesListCall) IfNoneMatch(entityTag string) *TargetingTemplatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesListCall) Context(ctx context.Context) *TargetingTemplatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49141,12 +35580,7 @@ func (c *TargetingTemplatesListCall) Header() http.Header { } func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49163,16 +35597,15 @@ func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.list" call. -// Exactly one of *TargetingTemplatesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *TargetingTemplatesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplatesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*TargetingTemplatesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49180,17 +35613,17 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplatesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -49203,91 +35636,6 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only targeting templates with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only targeting templates with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"template*2015\" will return objects with names like \"template June 2015\", \"template April 2015\", or simply \"template 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"template\" will match objects with name \"my template\", \"template 2015\", or simply \"template\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "response": { - // "$ref": "TargetingTemplatesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -49295,7 +35643,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // The provided context supersedes any context provided to the Context method. func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*TargetingTemplatesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -49311,8 +35659,6 @@ func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*Targetin } } -// method id "dfareporting.targetingTemplates.patch": - type TargetingTemplatesPatchCall struct { s *Service profileId int64 @@ -49322,8 +35668,11 @@ type TargetingTemplatesPatchCall struct { header_ http.Header } -// Patch: Updates an existing targeting template. This method supports -// patch semantics. +// Patch: Updates an existing targeting template. This method supports patch +// semantics. +// +// - id: Targeting template ID. +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesPatchCall { c := &TargetingTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49333,23 +35682,21 @@ func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingte } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesPatchCall) Fields(s ...googleapi.Field) *TargetingTemplatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesPatchCall) Context(ctx context.Context) *TargetingTemplatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49358,18 +35705,12 @@ func (c *TargetingTemplatesPatchCall) Header() http.Header { } func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -49382,16 +35723,15 @@ func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.patch" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49399,17 +35739,17 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -49422,45 +35762,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.targetingTemplates.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.update": +} type TargetingTemplatesUpdateCall struct { s *Service @@ -49472,6 +35774,8 @@ type TargetingTemplatesUpdateCall struct { } // Update: Updates an existing targeting template. +// +// - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *TargetingTemplate) *TargetingTemplatesUpdateCall { c := &TargetingTemplatesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49480,23 +35784,21 @@ func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesUpdateCall) Fields(s ...googleapi.Field) *TargetingTemplatesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesUpdateCall) Context(ctx context.Context) *TargetingTemplatesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49505,18 +35807,12 @@ func (c *TargetingTemplatesUpdateCall) Header() http.Header { } func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -49529,16 +35825,15 @@ func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.update" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49546,17 +35841,17 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -49569,37 +35864,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template.", - // "httpMethod": "PUT", - // "id": "dfareporting.targetingTemplates.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.get": +} type UserProfilesGetCall struct { s *Service @@ -49611,6 +35876,8 @@ type UserProfilesGetCall struct { } // Get: Gets one user profile by ID. +// +// - profileId: The user profile ID. func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { c := &UserProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49618,33 +35885,29 @@ func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesGetCall) Fields(s ...googleapi.Field) *UserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesGetCall) IfNoneMatch(entityTag string) *UserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesGetCall) Context(ctx context.Context) *UserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49653,12 +35916,7 @@ func (c *UserProfilesGetCall) Header() http.Header { } func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49675,16 +35933,14 @@ func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.get" call. -// Exactly one of *UserProfile or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfile.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfile.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49692,17 +35948,17 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -49715,35 +35971,7 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er return nil, err } return ret, nil - // { - // "description": "Gets one user profile by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.get", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}", - // "response": { - // "$ref": "UserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.list": +} type UserProfilesListCall struct { s *Service @@ -49760,33 +35988,29 @@ func (r *UserProfilesService) List() *UserProfilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesListCall) Fields(s ...googleapi.Field) *UserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesListCall) IfNoneMatch(entityTag string) *UserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesListCall) Context(ctx context.Context) *UserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49795,12 +36019,7 @@ func (c *UserProfilesListCall) Header() http.Header { } func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49814,16 +36033,15 @@ func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.list" call. -// Exactly one of *UserProfileList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfileList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfileList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49831,17 +36049,17 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfileList{ ServerResponse: googleapi.ServerResponse{ @@ -49854,24 +36072,8 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis return nil, err } return ret, nil - // { - // "description": "Retrieves list of user profiles for a user.", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.list", - // "path": "userprofiles", - // "response": { - // "$ref": "UserProfileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } -// method id "dfareporting.userRolePermissionGroups.get": - type UserRolePermissionGroupsGetCall struct { s *Service profileId int64 @@ -49883,6 +36085,9 @@ type UserRolePermissionGroupsGetCall struct { } // Get: Gets one user role permission group by ID. +// +// - id: User role permission group ID. +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRolePermissionGroupsGetCall { c := &UserRolePermissionGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -49891,33 +36096,29 @@ func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsGetCall) Context(ctx context.Context) *UserRolePermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49926,12 +36127,7 @@ func (c *UserRolePermissionGroupsGetCall) Header() http.Header { } func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49949,16 +36145,15 @@ func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.get" call. -// Exactly one of *UserRolePermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *UserRolePermissionGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49966,17 +36161,17 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -49989,42 +36184,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use return nil, err } return ret, nil - // { - // "description": "Gets one user role permission group by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - // "response": { - // "$ref": "UserRolePermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissionGroups.list": +} type UserRolePermissionGroupsListCall struct { s *Service @@ -50036,6 +36196,8 @@ type UserRolePermissionGroupsListCall struct { } // List: Gets a list of all supported user role permission groups. +// +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermissionGroupsListCall { c := &UserRolePermissionGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50043,33 +36205,29 @@ func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermiss } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsListCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsListCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsListCall) Context(ctx context.Context) *UserRolePermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50078,12 +36236,7 @@ func (c *UserRolePermissionGroupsListCall) Header() http.Header { } func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50100,17 +36253,15 @@ func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.list" call. -// Exactly one of *UserRolePermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50118,17 +36269,17 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -50141,34 +36292,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us return nil, err } return ret, nil - // { - // "description": "Gets a list of all supported user role permission groups.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups", - // "response": { - // "$ref": "UserRolePermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.get": +} type UserRolePermissionsGetCall struct { s *Service @@ -50181,6 +36305,9 @@ type UserRolePermissionsGetCall struct { } // Get: Gets one user role permission by ID. +// +// - id: User role permission ID. +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePermissionsGetCall { c := &UserRolePermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50189,33 +36316,29 @@ func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePer } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsGetCall) Context(ctx context.Context) *UserRolePermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50224,12 +36347,7 @@ func (c *UserRolePermissionsGetCall) Header() http.Header { } func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50247,16 +36365,15 @@ func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.get" call. -// Exactly one of *UserRolePermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolePermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50264,17 +36381,17 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermission{ ServerResponse: googleapi.ServerResponse{ @@ -50287,42 +36404,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole return nil, err } return ret, nil - // { - // "description": "Gets one user role permission by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions/{id}", - // "response": { - // "$ref": "UserRolePermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.list": +} type UserRolePermissionsListCall struct { s *Service @@ -50334,14 +36416,16 @@ type UserRolePermissionsListCall struct { } // List: Gets a list of user role permissions, possibly filtered. +// +// - profileId: User profile ID associated with this request. func (r *UserRolePermissionsService) List(profileId int64) *UserRolePermissionsListCall { c := &UserRolePermissionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// Ids sets the optional parameter "ids": Select only user role -// permissions with these IDs. +// Ids sets the optional parameter "ids": Select only user role permissions +// with these IDs. func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsListCall { var ids_ []string for _, v := range ids { @@ -50352,33 +36436,29 @@ func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsListCall) Fields(s ...googleapi.Field) *UserRolePermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsListCall) IfNoneMatch(entityTag string) *UserRolePermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsListCall) Context(ctx context.Context) *UserRolePermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50387,12 +36467,7 @@ func (c *UserRolePermissionsListCall) Header() http.Header { } func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50409,16 +36484,15 @@ func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.list" call. -// Exactly one of *UserRolePermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50426,17 +36500,17 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -50449,41 +36523,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol return nil, err } return ret, nil - // { - // "description": "Gets a list of user role permissions, possibly filtered.", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only user role permissions with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions", - // "response": { - // "$ref": "UserRolePermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.delete": +} type UserRolesDeleteCall struct { s *Service @@ -50495,6 +36535,9 @@ type UserRolesDeleteCall struct { } // Delete: Deletes an existing user role. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCall { c := &UserRolesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50503,23 +36546,21 @@ func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesDeleteCall) Fields(s ...googleapi.Field) *UserRolesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesDeleteCall) Context(ctx context.Context) *UserRolesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50528,12 +36569,7 @@ func (c *UserRolesDeleteCall) Header() http.Header { } func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -50548,7 +36584,7 @@ func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.delete" call. @@ -50560,42 +36596,10 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing user role.", - // "httpMethod": "DELETE", - // "id": "dfareporting.userRoles.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.get": +} type UserRolesGetCall struct { s *Service @@ -50608,6 +36612,9 @@ type UserRolesGetCall struct { } // Get: Gets one user role by ID. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { c := &UserRolesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50616,33 +36623,29 @@ func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesGetCall) Fields(s ...googleapi.Field) *UserRolesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesGetCall) IfNoneMatch(entityTag string) *UserRolesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesGetCall) Context(ctx context.Context) *UserRolesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50651,12 +36654,7 @@ func (c *UserRolesGetCall) Header() http.Header { } func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50674,16 +36672,14 @@ func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.get" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50691,17 +36687,17 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50714,42 +36710,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { return nil, err } return ret, nil - // { - // "description": "Gets one user role by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.insert": +} type UserRolesInsertCall struct { s *Service @@ -50761,6 +36722,8 @@ type UserRolesInsertCall struct { } // Insert: Inserts a new user role. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRolesInsertCall { c := &UserRolesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -50769,23 +36732,21 @@ func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesInsertCall) Fields(s ...googleapi.Field) *UserRolesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesInsertCall) Context(ctx context.Context) *UserRolesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50794,18 +36755,12 @@ func (c *UserRolesInsertCall) Header() http.Header { } func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -50818,16 +36773,14 @@ func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.insert" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50835,17 +36788,17 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50858,37 +36811,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Inserts a new user role.", - // "httpMethod": "POST", - // "id": "dfareporting.userRoles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.list": +} type UserRolesListCall struct { s *Service @@ -50901,22 +36824,24 @@ type UserRolesListCall struct { // List: Retrieves a list of user roles, possibly filtered. This method // supports paging. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) List(profileId int64) *UserRolesListCall { c := &UserRolesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId return c } -// AccountUserRoleOnly sets the optional parameter -// "accountUserRoleOnly": Select only account level user roles not -// associated with any specific subaccount. +// AccountUserRoleOnly sets the optional parameter "accountUserRoleOnly": +// Select only account level user roles not associated with any specific +// subaccount. func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnly bool) *UserRolesListCall { c.urlParams_.Set("accountUserRoleOnly", fmt.Sprint(accountUserRoleOnly)) return c } -// Ids sets the optional parameter "ids": Select only user roles with -// the specified IDs. +// Ids sets the optional parameter "ids": Select only user roles with the +// specified IDs. func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { var ids_ []string for _, v := range ids { @@ -50926,8 +36851,8 @@ func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *UserRolesListCall) MaxResults(maxResults int64) *UserRolesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -50940,21 +36865,20 @@ func (c *UserRolesListCall) PageToken(pageToken string) *UserRolesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "userrole*2015" will return objects with names like -// "userrole June 2015", "userrole April 2015", or simply "userrole -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "userrole" will match objects with name "my userrole", "userrole -// 2015", or simply "userrole". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "userrole*2015" will return objects with names like "userrole June 2015", +// "userrole April 2015", or simply "userrole 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "userrole" will match objects with name "my +// userrole", "userrole 2015", or simply "userrole". func (c *UserRolesListCall) SearchString(searchString string) *UserRolesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -50965,8 +36889,7 @@ func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -50977,41 +36900,37 @@ func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user roles that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// roles that belong to this subaccount. func (c *UserRolesListCall) SubaccountId(subaccountId int64) *UserRolesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesListCall) Fields(s ...googleapi.Field) *UserRolesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesListCall) IfNoneMatch(entityTag string) *UserRolesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesListCall) Context(ctx context.Context) *UserRolesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51020,12 +36939,7 @@ func (c *UserRolesListCall) Header() http.Header { } func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51042,16 +36956,15 @@ func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.list" call. -// Exactly one of *UserRolesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51059,17 +36972,17 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -51082,96 +36995,6 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "accountUserRoleOnly": { - // "description": "Select only account level user roles not associated with any specific subaccount.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user roles with the specified IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"userrole*2015\" will return objects with names like \"userrole June 2015\", \"userrole April 2015\", or simply \"userrole 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"userrole\" will match objects with name \"my userrole\", \"userrole 2015\", or simply \"userrole\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user roles that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "response": { - // "$ref": "UserRolesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -51179,7 +37002,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // The provided context supersedes any context provided to the Context method. func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -51195,8 +37018,6 @@ func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResp } } -// method id "dfareporting.userRoles.patch": - type UserRolesPatchCall struct { s *Service profileId int64 @@ -51206,8 +37027,10 @@ type UserRolesPatchCall struct { header_ http.Header } -// Patch: Updates an existing user role. This method supports patch -// semantics. +// Patch: Updates an existing user role. This method supports patch semantics. +// +// - id: User role ID. +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) *UserRolesPatchCall { c := &UserRolesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -51217,23 +37040,21 @@ func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesPatchCall) Fields(s ...googleapi.Field) *UserRolesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesPatchCall) Context(ctx context.Context) *UserRolesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51242,18 +37063,12 @@ func (c *UserRolesPatchCall) Header() http.Header { } func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -51266,16 +37081,14 @@ func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.patch" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51283,17 +37096,17 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -51306,45 +37119,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing user role. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "dfareporting.userRoles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.update": +} type UserRolesUpdateCall struct { s *Service @@ -51356,6 +37131,8 @@ type UserRolesUpdateCall struct { } // Update: Updates an existing user role. +// +// - profileId: User profile ID associated with this request. func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRolesUpdateCall { c := &UserRolesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -51364,23 +37141,21 @@ func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesUpdateCall) Fields(s ...googleapi.Field) *UserRolesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesUpdateCall) Context(ctx context.Context) *UserRolesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51389,18 +37164,12 @@ func (c *UserRolesUpdateCall) Header() http.Header { } func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -51413,16 +37182,14 @@ func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.update" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51430,17 +37197,17 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -51453,37 +37220,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Updates an existing user role.", - // "httpMethod": "PUT", - // "id": "dfareporting.userRoles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.get": +} type VideoFormatsGetCall struct { s *Service @@ -51496,6 +37233,9 @@ type VideoFormatsGetCall struct { } // Get: Gets one video format by ID. +// +// - id: Video format ID. +// - profileId: User profile ID associated with this request. func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCall { c := &VideoFormatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -51504,33 +37244,29 @@ func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsGetCall) Fields(s ...googleapi.Field) *VideoFormatsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsGetCall) IfNoneMatch(entityTag string) *VideoFormatsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsGetCall) Context(ctx context.Context) *VideoFormatsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51539,12 +37275,7 @@ func (c *VideoFormatsGetCall) Header() http.Header { } func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51562,16 +37293,14 @@ func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.get" call. -// Exactly one of *VideoFormat or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *VideoFormat.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *VideoFormat.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51579,17 +37308,17 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormat{ ServerResponse: googleapi.ServerResponse{ @@ -51602,42 +37331,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er return nil, err } return ret, nil - // { - // "description": "Gets one video format by ID.", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Video format ID.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats/{id}", - // "response": { - // "$ref": "VideoFormat" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.list": +} type VideoFormatsListCall struct { s *Service @@ -51649,6 +37343,8 @@ type VideoFormatsListCall struct { } // List: Lists available video formats. +// +// - profileId: User profile ID associated with this request. func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { c := &VideoFormatsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -51656,33 +37352,29 @@ func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsListCall) Fields(s ...googleapi.Field) *VideoFormatsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsListCall) IfNoneMatch(entityTag string) *VideoFormatsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsListCall) Context(ctx context.Context) *VideoFormatsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51691,12 +37383,7 @@ func (c *VideoFormatsListCall) Header() http.Header { } func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51713,16 +37400,15 @@ func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.list" call. -// Exactly one of *VideoFormatsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *VideoFormatsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51730,17 +37416,17 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormatsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -51753,29 +37439,4 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi return nil, err } return ret, nil - // { - // "description": "Lists available video formats.", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats", - // "response": { - // "$ref": "VideoFormatsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } diff --git a/dfareporting/v3.3/dfareporting-gen.go b/dfareporting/v3.3/dfareporting-gen.go index b7dadb4ae12..fad5947ab21 100644 --- a/dfareporting/v3.3/dfareporting-gen.go +++ b/dfareporting/v3.3/dfareporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/doubleclick-advertisers/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // dfareportingService, err := dfareporting.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithScopes(dfareporting.DfatraffickingScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // dfareportingService, err := dfareporting.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package dfareporting // import "google.golang.org/api/dfareporting/v3.3" import ( @@ -75,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dfareporting:v3.3" const apiName = "dfareporting" const apiVersion = "v3.3" const basePath = "https://dfareporting.googleapis.com/dfareporting/v3.3/" +const basePathTemplate = "https://dfareporting.UNIVERSE_DOMAIN/dfareporting/v3.3/" const mtlsBasePath = "https://dfareporting.mtls.googleapis.com/dfareporting/v3.3/" // OAuth2 scopes used by this API. @@ -105,7 +121,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -894,20 +912,16 @@ type VideoFormatsService struct { type Account struct { // AccountPermissionIds: Account permissions assigned to this account. AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"` - - // AccountProfile: Profile for this account. This is a read-only field - // that can be left blank. + // AccountProfile: Profile for this account. This is a read-only field that can + // be left blank. // // Possible values: // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfile string `json:"accountProfile,omitempty"` - // Active: Whether this account is active. Active bool `json:"active,omitempty"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for this - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for this account. // // Possible values: // "ACTIVE_ADS_TIER_40K" @@ -919,117 +933,87 @@ type Account struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_1M" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - - // ActiveViewOptOut: Whether to serve creatives with Active View tags. - // If disabled, viewability data will not be available for any - // impressions. + // ActiveViewOptOut: Whether to serve creatives with Active View tags. If + // disabled, viewability data will not be available for any impressions. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AvailablePermissionIds: User role permissions available to the user - // roles of this account. + // AvailablePermissionIds: User role permissions available to the user roles of + // this account. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // CountryId: ID of the country associated with this account. CountryId int64 `json:"countryId,omitempty,string"` - - // CurrencyId: ID of currency associated with this account. This is a - // required field. Acceptable values are: - "1" for USD - "2" for GBP - - // "3" for ESP - "4" for SEK - "5" for CAD - "6" for JPY - "7" for DEM - - // "8" for AUD - "9" for FRF - "10" for ITL - "11" for DKK - "12" for - // NOK - "13" for FIM - "14" for ZAR - "15" for IEP - "16" for NLG - - // "17" for EUR - "18" for KRW - "19" for TWD - "20" for SGD - "21" for - // CNY - "22" for HKD - "23" for NZD - "24" for MYR - "25" for BRL - - // "26" for PTE - "28" for CLP - "29" for TRY - "30" for ARS - "31" for - // PEN - "32" for ILS - "33" for CHF - "34" for VEF - "35" for COP - - // "36" for GTQ - "37" for PLN - "39" for INR - "40" for THB - "41" for - // IDR - "42" for CZK - "43" for RON - "44" for HUF - "45" for RUB - - // "46" for AED - "47" for BGN - "48" for HRK - "49" for MXN - "50" for - // NGN - "51" for EGP + // CurrencyId: ID of currency associated with this account. This is a required + // field. Acceptable values are: - "1" for USD - "2" for GBP - "3" for ESP - + // "4" for SEK - "5" for CAD - "6" for JPY - "7" for DEM - "8" for AUD - "9" + // for FRF - "10" for ITL - "11" for DKK - "12" for NOK - "13" for FIM - "14" + // for ZAR - "15" for IEP - "16" for NLG - "17" for EUR - "18" for KRW - "19" + // for TWD - "20" for SGD - "21" for CNY - "22" for HKD - "23" for NZD - "24" + // for MYR - "25" for BRL - "26" for PTE - "28" for CLP - "29" for TRY - "30" + // for ARS - "31" for PEN - "32" for ILS - "33" for CHF - "34" for VEF - "35" + // for COP - "36" for GTQ - "37" for PLN - "39" for INR - "40" for THB - "41" + // for IDR - "42" for CZK - "43" for RON - "44" for HUF - "45" for RUB - "46" + // for AED - "47" for BGN - "48" for HRK - "49" for MXN - "50" for NGN - "51" + // for EGP CurrencyId int64 `json:"currencyId,omitempty,string"` - // DefaultCreativeSizeId: Default placement dimensions for this account. DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"` - // Description: Description of this account. Description string `json:"description,omitempty"` - // Id: ID of this account. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#account". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#account". Kind string `json:"kind,omitempty"` - - // Locale: Locale of this account. Acceptable values are: - "cs" (Czech) - // - "de" (German) - "en" (English) - "en-GB" (English United Kingdom) - - // "es" (Spanish) - "fr" (French) - "it" (Italian) - "ja" (Japanese) - - // "ko" (Korean) - "pl" (Polish) - "pt-BR" (Portuguese Brazil) - "ru" - // (Russian) - "sv" (Swedish) - "tr" (Turkish) - "zh-CN" (Chinese - // Simplified) - "zh-TW" (Chinese Traditional) + // Locale: Locale of this account. Acceptable values are: - "cs" (Czech) - "de" + // (German) - "en" (English) - "en-GB" (English United Kingdom) - "es" + // (Spanish) - "fr" (French) - "it" (Italian) - "ja" (Japanese) - "ko" (Korean) + // - "pl" (Polish) - "pt-BR" (Portuguese Brazil) - "ru" (Russian) - "sv" + // (Swedish) - "tr" (Turkish) - "zh-CN" (Chinese Simplified) - "zh-TW" (Chinese + // Traditional) Locale string `json:"locale,omitempty"` - - // MaximumImageSize: Maximum image size allowed for this account, in - // kilobytes. Value must be greater than or equal to 1. + // MaximumImageSize: Maximum image size allowed for this account, in kilobytes. + // Value must be greater than or equal to 1. MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"` - - // Name: Name of this account. This is a required field, and must be - // less than 128 characters long and be globally unique. + // Name: Name of this account. This is a required field, and must be less than + // 128 characters long and be globally unique. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether campaigns created in this account will be - // enabled for Nielsen OCR reach ratings by default. + // NielsenOcrEnabled: Whether campaigns created in this account will be enabled + // for Nielsen OCR reach ratings by default. NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - // ReportsConfiguration: Reporting configuration of this account. ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"` - - // ShareReportsWithTwitter: Share Path to Conversion reports with - // Twitter. + // ShareReportsWithTwitter: Share Path to Conversion reports with Twitter. ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"` - // TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser // creatives. Acceptable values are 1 to 10240, inclusive. TeaserSizeLimit int64 `json:"teaserSizeLimit,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionIds") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionIds") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountActiveAdSummary: Gets a summary of active ads in an account. type AccountActiveAdSummary struct { // AccountId: ID of the account. AccountId int64 `json:"accountId,omitempty,string"` - // ActiveAds: Ads that have been activated for the account ActiveAds int64 `json:"activeAds,omitempty,string"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for the - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for the account. // // Possible values: // "ACTIVE_ADS_TIER_40K" @@ -1041,290 +1025,221 @@ type AccountActiveAdSummary struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_1M" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - // AvailableAds: Ads that can be activated for the account. AvailableAds int64 `json:"availableAds,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountActiveAdSummary". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountActiveAdSummary". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountActiveAdSummary) MarshalJSON() ([]byte, error) { +func (s AccountActiveAdSummary) MarshalJSON() ([]byte, error) { type NoMethod AccountActiveAdSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermission: AccountPermissions contains information about a -// particular account permission. Some features of Campaign Manager -// require an account permission to be present in the account. +// particular account permission. Some features of Campaign Manager require an +// account permission to be present in the account. type AccountPermission struct { - // AccountProfiles: Account profiles associated with this account - // permission. Possible values are: - "ACCOUNT_PROFILE_BASIC" - - // "ACCOUNT_PROFILE_STANDARD" + // AccountProfiles: Account profiles associated with this account permission. + // Possible values are: - "ACCOUNT_PROFILE_BASIC" - "ACCOUNT_PROFILE_STANDARD" // // Possible values: // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfiles []string `json:"accountProfiles,omitempty"` - // Id: ID of this account permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermission". Kind string `json:"kind,omitempty"` - - // Level: Administrative level required to enable this account - // permission. + // Level: Administrative level required to enable this account permission. // // Possible values: // "USER" // "ADMINISTRATOR" Level string `json:"level,omitempty"` - // Name: Name of this account permission. Name string `json:"name,omitempty"` - // PermissionGroupId: Permission group of this account permission. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountProfiles") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountProfiles") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermission) MarshalJSON() ([]byte, error) { +func (s AccountPermission) MarshalJSON() ([]byte, error) { type NoMethod AccountPermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionGroup: AccountPermissionGroups contains a mapping of -// permission group IDs to names. A permission group is a grouping of -// account permissions. +// permission group IDs to names. A permission group is a grouping of account +// permissions. type AccountPermissionGroup struct { // Id: ID of this account permission group. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this account permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroup) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountPermissionGroupsListResponse: Account Permission Group List -// Response +// AccountPermissionGroupsListResponse: Account Permission Group List Response type AccountPermissionGroupsListResponse struct { // AccountPermissionGroups: Account permission group collection. AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionGroups") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionGroups") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionsListResponse: Account Permission List Response type AccountPermissionsListResponse struct { // AccountPermissions: Account permission collection. AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountPermissions") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountUserProfile: AccountUserProfiles contains properties of a -// Campaign Manager user profile. This resource is specifically for -// managing user profiles, whereas UserProfiles is for accessing the -// API. +// AccountUserProfile: AccountUserProfiles contains properties of a Campaign +// Manager user profile. This resource is specifically for managing user +// profiles, whereas UserProfiles is for accessing the API. type AccountUserProfile struct { - // AccountId: Account ID of the user profile. This is a read-only field - // that can be left blank. + // AccountId: Account ID of the user profile. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether this user profile is active. This defaults to false, - // and must be set true on insert for the user profile to be usable. + // Active: Whether this user profile is active. This defaults to false, and + // must be set true on insert for the user profile to be usable. Active bool `json:"active,omitempty"` - - // AdvertiserFilter: Filter that describes which advertisers are visible - // to the user profile. + // AdvertiserFilter: Filter that describes which advertisers are visible to the + // user profile. AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"` - - // CampaignFilter: Filter that describes which campaigns are visible to - // the user profile. + // CampaignFilter: Filter that describes which campaigns are visible to the + // user profile. CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"` - // Comments: Comments for this user profile. Comments string `json:"comments,omitempty"` - - // Email: Email of the user profile. The email addresss must be linked - // to a Google Account. This field is required on insertion and is - // read-only after insertion. + // Email: Email of the user profile. The email addresss must be linked to a + // Google Account. This field is required on insertion and is read-only after + // insertion. Email string `json:"email,omitempty"` - - // Id: ID of the user profile. This is a read-only, auto-generated - // field. + // Id: ID of the user profile. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfile". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfile". Kind string `json:"kind,omitempty"` - - // Locale: Locale of the user profile. This is a required field. - // Acceptable values are: - "cs" (Czech) - "de" (German) - "en" - // (English) - "en-GB" (English United Kingdom) - "es" (Spanish) - "fr" - // (French) - "it" (Italian) - "ja" (Japanese) - "ko" (Korean) - "pl" - // (Polish) - "pt-BR" (Portuguese Brazil) - "ru" (Russian) - "sv" - // (Swedish) - "tr" (Turkish) - "zh-CN" (Chinese Simplified) - "zh-TW" - // (Chinese Traditional) + // Locale: Locale of the user profile. This is a required field. Acceptable + // values are: - "cs" (Czech) - "de" (German) - "en" (English) - "en-GB" + // (English United Kingdom) - "es" (Spanish) - "fr" (French) - "it" (Italian) - + // "ja" (Japanese) - "ko" (Korean) - "pl" (Polish) - "pt-BR" (Portuguese + // Brazil) - "ru" (Russian) - "sv" (Swedish) - "tr" (Turkish) - "zh-CN" + // (Chinese Simplified) - "zh-TW" (Chinese Traditional) Locale string `json:"locale,omitempty"` - - // Name: Name of the user profile. This is a required field. Must be - // less than 64 characters long, must be globally unique, and cannot - // contain whitespace or any of the following characters: "&;<>"#%,". + // Name: Name of the user profile. This is a required field. Must be less than + // 64 characters long, must be globally unique, and cannot contain whitespace + // or any of the following characters: "&;<>"#%,". Name string `json:"name,omitempty"` - // SiteFilter: Filter that describes which sites are visible to the user // profile. SiteFilter *ObjectFilter `json:"siteFilter,omitempty"` - - // SubaccountId: Subaccount ID of the user profile. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of the user profile. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TraffickerType: Trafficker type of this user profile. This is a - // read-only field. + // TraffickerType: Trafficker type of this user profile. This is a read-only + // field. // // Possible values: // "INTERNAL_NON_TRAFFICKER" // "INTERNAL_TRAFFICKER" // "EXTERNAL_TRAFFICKER" TraffickerType string `json:"traffickerType,omitempty"` - - // UserAccessType: User type of the user profile. This is a read-only - // field that can be left blank. + // UserAccessType: User type of the user profile. This is a read-only field + // that can be left blank. // // Possible values: // "NORMAL_USER" @@ -1332,213 +1247,159 @@ type AccountUserProfile struct { // "INTERNAL_ADMINISTRATOR" // "READ_ONLY_SUPER_USER" UserAccessType string `json:"userAccessType,omitempty"` - - // UserRoleFilter: Filter that describes which user roles are visible to - // the user profile. + // UserRoleFilter: Filter that describes which user roles are visible to the + // user profile. UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"` - - // UserRoleId: User role ID of the user profile. This is a required - // field. + // UserRoleId: User role ID of the user profile. This is a required field. UserRoleId int64 `json:"userRoleId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfile) MarshalJSON() ([]byte, error) { +func (s AccountUserProfile) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountUserProfilesListResponse: Account User Profile List Response type AccountUserProfilesListResponse struct { // AccountUserProfiles: Account user profile collection. AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfilesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfilesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountUserProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountUserProfiles") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { +func (s AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfilesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountsListResponse: Account List Response type AccountsListResponse struct { // Accounts: Account collection. Accounts []*Account `json:"accounts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Accounts") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accounts") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accounts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Activities: Represents an activity group. type Activities struct { - // Filters: List of activity filters. The dimension values need to be - // all either of type "dfa:activity" or "dfa:activityGroup". + // Filters: List of activity filters. The dimension values need to be all + // either of type "dfa:activity" or "dfa:activityGroup". Filters []*DimensionValue `json:"filters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#activities. + // Kind: The kind of resource this is, in this case dfareporting#activities. Kind string `json:"kind,omitempty"` - // MetricNames: List of names of floodlight activity metrics. MetricNames []string `json:"metricNames,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filters") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Activities) MarshalJSON() ([]byte, error) { +func (s Activities) MarshalJSON() ([]byte, error) { type NoMethod Activities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Ad: Contains properties of a Campaign Manager ad. type Ad struct { - // AccountId: Account ID of this ad. This is a read-only field that can - // be left blank. + // AccountId: Account ID of this ad. This is a read-only field that can be left + // blank. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this ad is active. When true, archived must be false. Active bool `json:"active,omitempty"` - // AdvertiserId: Advertiser ID of this ad. This is a required field on // insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Archived: Whether this ad is archived. When true, active must be - // false. + // Archived: Whether this ad is archived. When true, active must be false. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentId: Audience segment ID that is being targeted for - // this ad. Applicable when type is AD_SERVING_STANDARD_AD. + // AudienceSegmentId: Audience segment ID that is being targeted for this ad. + // Applicable when type is AD_SERVING_STANDARD_AD. AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"` - - // CampaignId: Campaign ID of this ad. This is a required field on - // insertion. + // CampaignId: Campaign ID of this ad. This is a required field on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ClickThroughUrl: Click-through URL for this ad. This is a required - // field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. + // ClickThroughUrl: Click-through URL for this ad. This is a required field on + // insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // ClickThroughUrlSuffixProperties: Click-through URL suffix properties - // for this ad. Applies to the URL in the ad or (if overriding ad - // properties) the URL in the creative. + // ClickThroughUrlSuffixProperties: Click-through URL suffix properties for + // this ad. Applies to the URL in the ad or (if overriding ad properties) the + // URL in the creative. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - // Comments: Comments for this ad. Comments string `json:"comments,omitempty"` - // Compatibility: Compatibility of this ad. Applicable when type is - // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to - // either rendering on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are only used for existing default ads. New mobile - // placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and - // default ads created for those placements will be limited to those - // compatibility types. IN_STREAM_VIDEO refers to rendering in-stream - // video ads developed with the VAST standard. + // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either + // rendering on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for + // existing default ads. New mobile placements must be assigned DISPLAY or + // DISPLAY_INTERSTITIAL and default ads created for those placements will be + // limited to those compatibility types. IN_STREAM_VIDEO refers to rendering + // in-stream video ads developed with the VAST standard. // // Possible values: // "DISPLAY" @@ -1548,124 +1409,94 @@ type Ad struct { // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility string `json:"compatibility,omitempty"` - - // CreateInfo: Information about the creation of this ad. This is a - // read-only field. + // CreateInfo: Information about the creation of this ad. This is a read-only + // field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this ad. - // Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment - // per creative group number is allowed for a maximum of two - // assignments. + // CreativeGroupAssignments: Creative group assignments for this ad. Applicable + // when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative + // group number is allowed for a maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeRotation: Creative rotation for this ad. Applicable when type - // is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or - // AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field - // should have exactly one creativeAssignment . + // CreativeRotation: Creative rotation for this ad. Applicable when type is + // AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When + // type is AD_SERVING_DEFAULT_AD, this field should have exactly one + // creativeAssignment . CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"` - - // DayPartTargeting: Time and day targeting information for this ad. - // This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // DayPartTargeting: Time and day targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - - // DefaultClickThroughEventTagProperties: Default click-through event - // tag properties for this ad. + // DefaultClickThroughEventTagProperties: Default click-through event tag + // properties for this ad. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - - // DeliverySchedule: Delivery schedule information for this ad. - // Applicable when type is AD_SERVING_STANDARD_AD or - // AD_SERVING_TRACKING. This field along with subfields priority and - // impressionRatio are required on insertion when type is - // AD_SERVING_STANDARD_AD. + // DeliverySchedule: Delivery schedule information for this ad. Applicable when + // type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with + // subfields priority and impressionRatio are required on insertion when type + // is AD_SERVING_STANDARD_AD. DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"` - - // DynamicClickTracker: Whether this ad is a dynamic click tracker. - // Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required - // field on insert, and is read-only after insert. - DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"` - - EndTime string `json:"endTime,omitempty"` - + // DynamicClickTracker: Whether this ad is a dynamic click tracker. Applicable + // when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, + // and is read-only after insert. + DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"` + EndTime string `json:"endTime,omitempty"` // EventTagOverrides: Event tag overrides for this ad. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - - // GeoTargeting: Geographical targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // GeoTargeting: Geographical targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - // Id: ID of this ad. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this ad. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyValueTargetingExpression: Key-value targeting information for this - // ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // KeyValueTargetingExpression: Key-value targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ad". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ad". Kind string `json:"kind,omitempty"` - - // LanguageTargeting: Language targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // LanguageTargeting: Language targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this ad. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this ad. + // This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this ad. This is a required field and must be less than - // 256 characters long. + // Name: Name of this ad. This is a required field and must be less than 256 + // characters long. Name string `json:"name,omitempty"` - // PlacementAssignments: Placement assignments for this ad. PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"` - - // RemarketingListExpression: Remarketing list targeting expression for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // RemarketingListExpression: Remarketing list targeting expression for this + // ad. This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"` - // Size: Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether this ad is ssl compliant. This is a read-only - // field that is auto-generated when the ad is inserted or updated. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslRequired: Whether this ad requires ssl. This is a read-only field + // SslCompliant: Whether this ad is ssl compliant. This is a read-only field // that is auto-generated when the ad is inserted or updated. - SslRequired bool `json:"sslRequired,omitempty"` - - StartTime string `json:"startTime,omitempty"` - - // SubaccountId: Subaccount ID of this ad. This is a read-only field - // that can be left blank. + SslCompliant bool `json:"sslCompliant,omitempty"` + // SslRequired: Whether this ad requires ssl. This is a read-only field that is + // auto-generated when the ad is inserted or updated. + SslRequired bool `json:"sslRequired,omitempty"` + StartTime string `json:"startTime,omitempty"` + // SubaccountId: Subaccount ID of this ad. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TargetingTemplateId: Targeting template ID, used to apply - // preconfigured targeting information to this ad. This cannot be set - // while any of dayPartTargeting, geoTargeting, - // keyValueTargetingExpression, languageTargeting, - // remarketingListExpression, or technologyTargeting are set. Applicable - // when type is AD_SERVING_STANDARD_AD. + // TargetingTemplateId: Targeting template ID, used to apply preconfigured + // targeting information to this ad. This cannot be set while any of + // dayPartTargeting, geoTargeting, keyValueTargetingExpression, + // languageTargeting, remarketingListExpression, or technologyTargeting are + // set. Applicable when type is AD_SERVING_STANDARD_AD. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // TechnologyTargeting: Technology platform targeting information for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // TechnologyTargeting: Technology platform targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - - // Type: Type of ad. This is a required field on insertion. Note that - // default ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see - // Creative resource). + // Type: Type of ad. This is a required field on insertion. Note that default + // ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative + // resource). // // Possible values: // "AD_SERVING_STANDARD_AD" @@ -1675,91 +1506,71 @@ type Ad struct { // "AD_SERVING_BRAND_SAFE_AD" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Ad) MarshalJSON() ([]byte, error) { +func (s Ad) MarshalJSON() ([]byte, error) { type NoMethod Ad - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdBlockingConfiguration: Campaign ad blocking settings. type AdBlockingConfiguration struct { - // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is - // a required field when overrideClickThroughUrl is set to true. + // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is a + // required field when overrideClickThroughUrl is set to true. ClickThroughUrl string `json:"clickThroughUrl,omitempty"` - - // CreativeBundleId: ID of a creative bundle to use for this campaign. - // If set, brand-neutral ads will select creatives from this bundle. - // Otherwise, a default transparent pixel will be used. + // CreativeBundleId: ID of a creative bundle to use for this campaign. If set, + // brand-neutral ads will select creatives from this bundle. Otherwise, a + // default transparent pixel will be used. CreativeBundleId int64 `json:"creativeBundleId,omitempty,string"` - // Enabled: Whether this campaign has enabled ad blocking. When true, ad // blocking is enabled for placements in the campaign, but this may be // overridden by site and placement settings. When false, ad blocking is - // disabled for all placements under the campaign, regardless of site - // and placement settings. + // disabled for all placements under the campaign, regardless of site and + // placement settings. Enabled bool `json:"enabled,omitempty"` - - // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through - // URL comes from the campaign's creative bundle or the override URL. - // Must be set to true if ad blocking is enabled and no creative bundle - // is configured. + // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through URL + // comes from the campaign's creative bundle or the override URL. Must be set + // to true if ad blocking is enabled and no creative bundle is configured. OverrideClickThroughUrl bool `json:"overrideClickThroughUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdBlockingConfiguration) MarshalJSON() ([]byte, error) { +func (s AdBlockingConfiguration) MarshalJSON() ([]byte, error) { type NoMethod AdBlockingConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdSlot: Ad Slot type AdSlot struct { // Comment: Comment for this ad slot. Comment string `json:"comment,omitempty"` - - // Compatibility: Ad slot compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile - // devices or in mobile apps for regular or interstitial ads - // respectively. APP and APP_INTERSTITIAL are for rendering in mobile - // apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // Compatibility: Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer + // to rendering either on desktop, mobile devices or in mobile apps for regular + // or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads // developed with the VAST standard. // // Possible values: @@ -1770,1299 +1581,971 @@ type AdSlot struct { // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility string `json:"compatibility,omitempty"` - // Height: Height of this ad slot. Height int64 `json:"height,omitempty,string"` - - // LinkedPlacementId: ID of the placement from an external platform that - // is linked to this ad slot. + // LinkedPlacementId: ID of the placement from an external platform that is + // linked to this ad slot. LinkedPlacementId int64 `json:"linkedPlacementId,omitempty,string"` - // Name: Name of this ad slot. Name string `json:"name,omitempty"` - // PaymentSourceType: Payment source type of this ad slot. // // Possible values: // "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID" // "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" PaymentSourceType string `json:"paymentSourceType,omitempty"` - // Primary: Primary ad slot of a roadblock inventory item. Primary bool `json:"primary,omitempty"` - // Width: Width of this ad slot. Width int64 `json:"width,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Comment") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Comment") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Comment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Comment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdSlot) MarshalJSON() ([]byte, error) { +func (s AdSlot) MarshalJSON() ([]byte, error) { type NoMethod AdSlot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdsListResponse: Ad List Response type AdsListResponse struct { // Ads: Ad collection. Ads []*Ad `json:"ads,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#adsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#adsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Ads") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ads") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Ads") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Ads") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdsListResponse) MarshalJSON() ([]byte, error) { +func (s AdsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Advertiser: Contains properties of a Campaign Manager advertiser. type Advertiser struct { - // AccountId: Account ID of this advertiser.This is a read-only field - // that can be left blank. + // AccountId: Account ID of this advertiser.This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserGroupId: ID of the advertiser group this advertiser belongs - // to. You can group advertisers for reporting purposes, allowing you to - // see aggregated information for all advertisers in each group. + // AdvertiserGroupId: ID of the advertiser group this advertiser belongs to. + // You can group advertisers for reporting purposes, allowing you to see + // aggregated information for all advertisers in each group. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // ClickThroughUrlSuffix: Suffix added to click-through URL of ad - // creative associations under this advertiser. Must be less than 129 - // characters long. + // ClickThroughUrlSuffix: Suffix added to click-through URL of ad creative + // associations under this advertiser. Must be less than 129 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply by default to the landing pages of this advertiser's campaigns. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply by + // default to the landing pages of this advertiser's campaigns. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // DefaultEmail: Default email address used in sender field for tag - // emails. + // DefaultEmail: Default email address used in sender field for tag emails. DefaultEmail string `json:"defaultEmail,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // advertiser. The floodlight configuration ID will be created - // automatically, so on insert this field should be left blank. This - // field can be set to another advertiser's floodlight configuration ID - // in order to share that advertiser's floodlight configuration with - // this advertiser, so long as: - This advertiser's original floodlight - // configuration is not already associated with floodlight activities or - // floodlight activity groups. - This advertiser's original floodlight - // configuration is not already shared with another advertiser. + // FloodlightConfigurationId: Floodlight configuration ID of this advertiser. + // The floodlight configuration ID will be created automatically, so on insert + // this field should be left blank. This field can be set to another + // advertiser's floodlight configuration ID in order to share that advertiser's + // floodlight configuration with this advertiser, so long as: - This + // advertiser's original floodlight configuration is not already associated + // with floodlight activities or floodlight activity groups. - This + // advertiser's original floodlight configuration is not already shared with + // another advertiser. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this advertiser. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this advertiser. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this advertiser. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiser". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser. This is a required field and must be - // less than 256 characters long and unique among advertisers of the - // same account. + // Name: Name of this advertiser. This is a required field and must be less + // than 256 characters long and unique among advertisers of the same account. Name string `json:"name,omitempty"` - - // OriginalFloodlightConfigurationId: Original floodlight configuration - // before any sharing occurred. Set the floodlightConfigurationId of - // this advertiser to originalFloodlightConfigurationId to unshare the - // advertiser's current floodlight configuration. You cannot unshare an - // advertiser's floodlight configuration if the shared configuration has - // activities associated with any campaign or placement. + // OriginalFloodlightConfigurationId: Original floodlight configuration before + // any sharing occurred. Set the floodlightConfigurationId of this advertiser + // to originalFloodlightConfigurationId to unshare the advertiser's current + // floodlight configuration. You cannot unshare an advertiser's floodlight + // configuration if the shared configuration has activities associated with any + // campaign or placement. OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"` - // Status: Status of this advertiser. // // Possible values: // "APPROVED" // "ON_HOLD" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this advertiser.This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this advertiser.This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Suspended: Suspension status of this advertiser. Suspended bool `json:"suspended,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Advertiser) MarshalJSON() ([]byte, error) { +func (s Advertiser) MarshalJSON() ([]byte, error) { type NoMethod Advertiser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroup: Groups advertisers together so that reports can be // generated for the entire group at once. type AdvertiserGroup struct { - // AccountId: Account ID of this advertiser group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this advertiser group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this advertiser group. This is a read-only, auto-generated - // field. + // Id: ID of this advertiser group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser group. This is a required field and - // must be less than 256 characters long and unique among advertiser - // groups of the same account. + // Name: Name of this advertiser group. This is a required field and must be + // less than 256 characters long and unique among advertiser groups of the same + // account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroup) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroup) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroupsListResponse: Advertiser Group List Response type AdvertiserGroupsListResponse struct { // AdvertiserGroups: Advertiser group collection. AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserGroups") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserLandingPagesListResponse: Landing Page List Response type AdvertiserLandingPagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserLandingPagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserLandingPagesListResponse". Kind string `json:"kind,omitempty"` - // LandingPages: Landing page collection LandingPages []*LandingPage `json:"landingPages,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserLandingPagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertisersListResponse: Advertiser List Response type AdvertisersListResponse struct { // Advertisers: Advertiser collection. Advertisers []*Advertiser `json:"advertisers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertisersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertisersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Advertisers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Advertisers") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Advertisers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertisersListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertisersListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertisersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegment: Audience Segment. type AudienceSegment struct { - // Allocation: Weight allocated to this segment. The weight assigned - // will be understood in proportion to the weights assigned to other - // segments in the same segment group. Acceptable values are 1 to 1000, - // inclusive. + // Allocation: Weight allocated to this segment. The weight assigned will be + // understood in proportion to the weights assigned to other segments in the + // same segment group. Acceptable values are 1 to 1000, inclusive. Allocation int64 `json:"allocation,omitempty"` - - // Id: ID of this audience segment. This is a read-only, auto-generated - // field. + // Id: ID of this audience segment. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment. This is a required field and - // must be less than 65 characters long. + // Name: Name of this audience segment. This is a required field and must be + // less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Allocation") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Allocation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Allocation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegment) MarshalJSON() ([]byte, error) { +func (s AudienceSegment) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegmentGroup: Audience Segment Group. type AudienceSegmentGroup struct { - // AudienceSegments: Audience segments assigned to this group. The - // number of segments must be between 2 and 100. + // AudienceSegments: Audience segments assigned to this group. The number of + // segments must be between 2 and 100. AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"` - - // Id: ID of this audience segment group. This is a read-only, - // auto-generated field. + // Id: ID of this audience segment group. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment group. This is a required field - // and must be less than 65 characters long. + // Name: Name of this audience segment group. This is a required field and must + // be less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudienceSegments") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudienceSegments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AudienceSegments") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegmentGroup) MarshalJSON() ([]byte, error) { +func (s AudienceSegmentGroup) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegmentGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Browser: Contains information about a browser that can be targeted by -// ads. +// Browser: Contains information about a browser that can be targeted by ads. type Browser struct { - // BrowserVersionId: ID referring to this grouping of browser and - // version numbers. This is the ID used for targeting. + // BrowserVersionId: ID referring to this grouping of browser and version + // numbers. This is the ID used for targeting. BrowserVersionId int64 `json:"browserVersionId,omitempty,string"` - // DartId: DART ID of this browser. This is the ID used when generating // reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browser". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version number (leftmost number) of this browser. - // For example, for Chrome 5.0.376.86 beta, this field should be set to - // 5. An asterisk (*) may be used to target any version number, and a - // question mark (?) may be used to target cases where the version - // number cannot be identified. For example, Chrome *.* targets any - // version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MajorVersion: Major version number (leftmost number) of this browser. For + // example, for Chrome 5.0.376.86 beta, this field should be set to 5. An + // asterisk (*) may be used to target any version number, and a question mark + // (?) may be used to target cases where the version number cannot be + // identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, + // 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? + // targets cases where the ad server knows the browser is Firefox but can't + // tell which version it is. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version number (number after first dot on left) - // of this browser. For example, for Chrome 5.0.375.86 beta, this field - // should be set to 0. An asterisk (*) may be used to target any version - // number, and a question mark (?) may be used to target cases where the - // version number cannot be identified. For example, Chrome *.* targets - // any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MinorVersion: Minor version number (number after first dot on left) of this + // browser. For example, for Chrome 5.0.375.86 beta, this field should be set + // to 0. An asterisk (*) may be used to target any version number, and a + // question mark (?) may be used to target cases where the version number + // cannot be identified. For example, Chrome *.* targets any version of Chrome: + // 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. + // Firefox ?.? targets cases where the ad server knows the browser is Firefox + // but can't tell which version it is. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this browser. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "BrowserVersionId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BrowserVersionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BrowserVersionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Browser) MarshalJSON() ([]byte, error) { +func (s Browser) MarshalJSON() ([]byte, error) { type NoMethod Browser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BrowsersListResponse: Browser List Response type BrowsersListResponse struct { // Browsers: Browser collection. Browsers []*Browser `json:"browsers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browsersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browsersListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BrowsersListResponse) MarshalJSON() ([]byte, error) { +func (s BrowsersListResponse) MarshalJSON() ([]byte, error) { type NoMethod BrowsersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Campaign: Contains properties of a Campaign Manager campaign. type Campaign struct { - // AccountId: Account ID of this campaign. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this campaign. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - // AdBlockingConfiguration: Ad blocking settings for this campaign. AdBlockingConfiguration *AdBlockingConfiguration `json:"adBlockingConfiguration,omitempty"` - // AdditionalCreativeOptimizationConfigurations: Additional creative // optimization configurations for the campaign. AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"` - // AdvertiserGroupId: Advertiser group ID of the associated advertiser. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this campaign. This is a required - // field. + // AdvertiserId: Advertiser ID of this campaign. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of - // this campaign. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of this + // campaign. This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this campaign has been archived. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentGroups: Audience segment groups assigned to this - // campaign. Cannot have more than 300 segment groups. + // AudienceSegmentGroups: Audience segment groups assigned to this campaign. + // Cannot have more than 300 segment groups. AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"` - - // BillingInvoiceCode: Billing invoice code included in the Campaign - // Manager client billing invoices associated with the campaign. + // BillingInvoiceCode: Billing invoice code included in the Campaign Manager + // client billing invoices associated with the campaign. BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"` - // ClickThroughUrlSuffixProperties: Click-through URL suffix override // properties for this campaign. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - - // Comment: Arbitrary comments about this campaign. Must be less than - // 256 characters long. + // Comment: Arbitrary comments about this campaign. Must be less than 256 + // characters long. Comment string `json:"comment,omitempty"` - - // CreateInfo: Information about the creation of this campaign. This is - // a read-only field. + // CreateInfo: Information about the creation of this campaign. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - // CreativeGroupIds: List of creative group IDs that are assigned to the // campaign. CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"` - - // CreativeOptimizationConfiguration: Creative optimization - // configuration for the campaign. + // CreativeOptimizationConfiguration: Creative optimization configuration for + // the campaign. CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"` - - // DefaultClickThroughEventTagProperties: Click-through event tag ID - // override properties for this campaign. + // DefaultClickThroughEventTagProperties: Click-through event tag ID override + // properties for this campaign. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - // DefaultLandingPageId: The default landing page ID for this campaign. - DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"` - - EndDate string `json:"endDate,omitempty"` - - // EventTagOverrides: Overrides that can be used to activate or - // deactivate advertiser event tags. + DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"` + EndDate string `json:"endDate,omitempty"` + // EventTagOverrides: Overrides that can be used to activate or deactivate + // advertiser event tags. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - // ExternalId: External ID for this campaign. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this campaign. This is a read-only auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this campaign. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this campaign. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaign". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaign". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this campaign. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // campaign. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this campaign. This is a required field and must be - // less than 256 characters long and unique among campaigns of the same - // advertiser. + // Name: Name of this campaign. This is a required field and must be less than + // 256 characters long and unique among campaigns of the same advertiser. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether Nielsen reports are enabled for this - // campaign. - NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // SubaccountId: Subaccount ID of this campaign. This is a read-only - // field that can be left blank. + // NielsenOcrEnabled: Whether Nielsen reports are enabled for this campaign. + NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` + StartDate string `json:"startDate,omitempty"` + // SubaccountId: Subaccount ID of this campaign. This is a read-only field that + // can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TraffickerEmails: Campaign trafficker contact emails. TraffickerEmails []string `json:"traffickerEmails,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Campaign) MarshalJSON() ([]byte, error) { +func (s Campaign) MarshalJSON() ([]byte, error) { type NoMethod Campaign - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociation: Identifies a creative which has been -// associated with a given campaign. +// CampaignCreativeAssociation: Identifies a creative which has been associated +// with a given campaign. type CampaignCreativeAssociation struct { - // CreativeId: ID of the creative associated with the campaign. This is - // a required field. + // CreativeId: ID of the creative associated with the campaign. This is a + // required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociation". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociation". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreativeId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociationsListResponse: Campaign Creative -// Association List Response +// CampaignCreativeAssociationsListResponse: Campaign Creative Association List +// Response type CampaignCreativeAssociationsListResponse struct { - // CampaignCreativeAssociations: Campaign creative association - // collection + // CampaignCreativeAssociations: Campaign creative association collection CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociationsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "CampaignCreativeAssociations") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CampaignCreativeAssociations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CampaignsListResponse: Campaign List Response type CampaignsListResponse struct { // Campaigns: Campaign collection. Campaigns []*Campaign `json:"campaigns,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Campaigns") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Campaigns") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Campaigns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLog: Describes a change that a user has made to a resource. type ChangeLog struct { // AccountId: Account ID of the modified object. AccountId int64 `json:"accountId,omitempty,string"` - // Action: Action which caused the change. - Action string `json:"action,omitempty"` - + Action string `json:"action,omitempty"` ChangeTime string `json:"changeTime,omitempty"` - // FieldName: Field name of the object which changed. FieldName string `json:"fieldName,omitempty"` - // Id: ID of this change log. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLog". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLog". Kind string `json:"kind,omitempty"` - // NewValue: New value of the object field. NewValue string `json:"newValue,omitempty"` - // ObjectId: ID of the object of this change log. The object could be a // campaign, placement, ad, or other type. ObjectId int64 `json:"objectId,omitempty,string"` - // ObjectType: Object type of the change log. ObjectType string `json:"objectType,omitempty"` - // OldValue: Old value of the object field. OldValue string `json:"oldValue,omitempty"` - // SubaccountId: Subaccount ID of the modified object. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TransactionId: Transaction ID of this change log. When a single API - // call results in many changes, each change will have a separate ID in - // the change log but will share the same transactionId. + // TransactionId: Transaction ID of this change log. When a single API call + // results in many changes, each change will have a separate ID in the change + // log but will share the same transactionId. TransactionId int64 `json:"transactionId,omitempty,string"` - // UserProfileId: ID of the user who modified the object. UserProfileId int64 `json:"userProfileId,omitempty,string"` - - // UserProfileName: User profile name of the user who modified the - // object. + // UserProfileName: User profile name of the user who modified the object. UserProfileName string `json:"userProfileName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLog) MarshalJSON() ([]byte, error) { +func (s ChangeLog) MarshalJSON() ([]byte, error) { type NoMethod ChangeLog - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLogsListResponse: Change Log List Response type ChangeLogsListResponse struct { // ChangeLogs: Change log collection. ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLogsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLogsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ChangeLogs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChangeLogs") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChangeLogs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLogsListResponse) MarshalJSON() ([]byte, error) { +func (s ChangeLogsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ChangeLogsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CitiesListResponse: City List Response type CitiesListResponse struct { // Cities: City collection. Cities []*City `json:"cities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#citiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#citiesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CitiesListResponse) MarshalJSON() ([]byte, error) { +func (s CitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // City: Contains information about a city that can be targeted by ads. type City struct { // CountryCode: Country code of the country to which this city belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this city belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this city. This is the ID used for targeting and // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#city". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#city". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro region code of the metro region (DMA) to which this - // city belongs. + // MetroCode: Metro region code of the metro region (DMA) to which this city + // belongs. MetroCode string `json:"metroCode,omitempty"` - // MetroDmaId: ID of the metro region (DMA) to which this city belongs. MetroDmaId int64 `json:"metroDmaId,omitempty,string"` - // Name: Name of this city. Name string `json:"name,omitempty"` - // RegionCode: Region code of the region to which this city belongs. RegionCode string `json:"regionCode,omitempty"` - // RegionDartId: DART ID of the region to which this city belongs. RegionDartId int64 `json:"regionDartId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *City) MarshalJSON() ([]byte, error) { +func (s City) MarshalJSON() ([]byte, error) { type NoMethod City - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickTag: Creative Click Tag. type ClickTag struct { - // ClickThroughUrl: Parameter value for the specified click tag. This - // field contains a click-through url. + // ClickThroughUrl: Parameter value for the specified click tag. This field + // contains a click-through url. ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // EventName: Advertiser event name associated with the click tag. This - // field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // EventName: Advertiser event name associated with the click tag. This field + // is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. EventName string `json:"eventName,omitempty"` - - // Name: Parameter name for the specified click tag. For - // DISPLAY_IMAGE_GALLERY creative assets, this field must match the - // value of the creative asset's creativeAssetId.name field. + // Name: Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY + // creative assets, this field must match the value of the creative asset's + // creativeAssetId.name field. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickTag) MarshalJSON() ([]byte, error) { +func (s ClickTag) MarshalJSON() ([]byte, error) { type NoMethod ClickTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrl: Click-through URL type ClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - If defaultLandingPage is enabled then the - // campaign's default landing page URL is assigned to this field. - If - // defaultLandingPage is not enabled and a landingPageId is specified - // then that landing page's URL is assigned to this field. - If neither - // of the above cases apply, then the customClickThroughUrl is assigned - // to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: - If defaultLandingPage is enabled then the campaign's default + // landing page URL is assigned to this field. - If defaultLandingPage is not + // enabled and a landingPageId is specified then that landing page's URL is + // assigned to this field. - If neither of the above cases apply, then the + // customClickThroughUrl is assigned to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the - // defaultLandingPage field is set to false and the landingPageId field - // is left unset. + // defaultLandingPage field is set to false and the landingPageId field is left + // unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - - // DefaultLandingPage: Whether the campaign default landing page is - // used. + // DefaultLandingPage: Whether the campaign default landing page is used. DefaultLandingPage bool `json:"defaultLandingPage,omitempty"` - - // LandingPageId: ID of the landing page for the click-through URL. - // Applicable if the defaultLandingPage field is set to false. + // LandingPageId: ID of the landing page for the click-through URL. Applicable + // if the defaultLandingPage field is set to false. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrlSuffixProperties: Click Through URL Suffix settings. type ClickThroughUrlSuffixProperties struct { - // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads - // in this entity's scope. Must be less than 128 characters long. + // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads in this + // entity's scope. Must be less than 128 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // OverrideInheritedSuffix: Whether this entity should override the - // inherited click-through URL suffix with its own defined value. + // OverrideInheritedSuffix: Whether this entity should override the inherited + // click-through URL suffix with its own defined value. OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClickThroughUrlSuffix") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClickThroughUrlSuffix") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClickThroughUrlSuffix") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrlSuffixProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionClickThroughOverride: Companion Click-through override. type CompanionClickThroughOverride struct { - // ClickThroughUrl: Click-through URL of this companion click-through - // override. + // ClickThroughUrl: Click-through URL of this companion click-through override. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CreativeId: ID of the creative for this companion click-through - // override. + // CreativeId: ID of the creative for this companion click-through override. CreativeId int64 `json:"creativeId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { +func (s CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { type NoMethod CompanionClickThroughOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionSetting: Companion Settings type CompanionSetting struct { - // CompanionsDisabled: Whether companions are disabled for this - // placement. + // CompanionsDisabled: Whether companions are disabled for this placement. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - - // EnabledSizes: Allowlist of companion sizes to be served to this - // placement. Set this list to null or empty to serve all companion - // sizes. + // EnabledSizes: Allowlist of companion sizes to be served to this placement. + // Set this list to null or empty to serve all companion sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` - // ImageOnly: Whether to serve only static images as companions. ImageOnly bool `json:"imageOnly,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#companionSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#companionSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionsDisabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionsDisabled") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionSetting) MarshalJSON() ([]byte, error) { +func (s CompanionSetting) MarshalJSON() ([]byte, error) { type NoMethod CompanionSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompatibleFields: Represents a response to the queryCompatibleFields -// method. +// CompatibleFields: Represents a response to the queryCompatibleFields method. type CompatibleFields struct { // CrossDimensionReachReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type - // "CROSS_DIMENSION_REACH". + // compatible to be selected for a report of type "CROSS_DIMENSION_REACH". CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"` - - // FloodlightReportCompatibleFields: Contains items that are compatible - // to be selected for a report of type "FLOODLIGHT". + // FloodlightReportCompatibleFields: Contains items that are compatible to be + // selected for a report of type "FLOODLIGHT". FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#compatibleFields. Kind string `json:"kind,omitempty"` - - // PathToConversionReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type "PATH_TO_CONVERSION". + // PathToConversionReportCompatibleFields: Contains items that are compatible + // to be selected for a report of type "PATH_TO_CONVERSION". PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"` - // ReachReportCompatibleFields: Contains items that are compatible to be // selected for a report of type "REACH". ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"` - - // ReportCompatibleFields: Contains items that are compatible to be - // selected for a report of type "STANDARD". + // ReportCompatibleFields: Contains items that are compatible to be selected + // for a report of type "STANDARD". ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to unconditionally - // include in API requests. By default, fields with empty or default - // values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to unconditionally include in + // API requests. By default, fields with empty or default values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted from + // API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields + // for more details. NullFields []string `json:"-"` } -func (s *CompatibleFields) MarshalJSON() ([]byte, error) { +func (s CompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConnectionType: Contains information about an internet connection -// type that can be targeted by ads. Clients can use the connection type -// to target mobile vs. broadband users. +// ConnectionType: Contains information about an internet connection type that +// can be targeted by ads. Clients can use the connection type to target mobile +// vs. broadband users. type ConnectionType struct { // Id: ID of this connection type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionType". Kind string `json:"kind,omitempty"` - // Name: Name of this connection type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionType) MarshalJSON() ([]byte, error) { +func (s ConnectionType) MarshalJSON() ([]byte, error) { type NoMethod ConnectionType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConnectionTypesListResponse: Connection Type List Response @@ -3070,241 +2553,183 @@ type ConnectionTypesListResponse struct { // ConnectionTypes: Collection of connection types such as broadband and // mobile. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionTypesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConnectionTypes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConnectionTypes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConnectionTypes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { +func (s ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ConnectionTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContentCategoriesListResponse: Content Category List Response type ContentCategoriesListResponse struct { // ContentCategories: Content category collection. ContentCategories []*ContentCategory `json:"contentCategories,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategoriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategoriesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ContentCategories") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentCategories") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentCategories") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentCategories") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { +func (s ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ContentCategoriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentCategory: Organizes placements according to the contents of -// their associated webpages. +// ContentCategory: Organizes placements according to the contents of their +// associated webpages. type ContentCategory struct { - // AccountId: Account ID of this content category. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this content category. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this content category. This is a read-only, auto-generated - // field. + // Id: ID of this content category. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategory". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategory". Kind string `json:"kind,omitempty"` - - // Name: Name of this content category. This is a required field and - // must be less than 256 characters long and unique among content - // categories of the same account. + // Name: Name of this content category. This is a required field and must be + // less than 256 characters long and unique among content categories of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategory) MarshalJSON() ([]byte, error) { +func (s ContentCategory) MarshalJSON() ([]byte, error) { type NoMethod ContentCategory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Conversion: A Conversion represents when a user successfully performs -// a desired action after seeing an ad. +// Conversion: A Conversion represents when a user successfully performs a +// desired action after seeing an ad. type Conversion struct { - // ChildDirectedTreatment: Whether this particular request may come from - // a user under the age of 13, under COPPA compliance. + // ChildDirectedTreatment: Whether this particular request may come from a user + // under the age of 13, under COPPA compliance. ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"` - - // CustomVariables: Custom floodlight variables. This field may only be - // used when calling batchinsert; it is not supported by batchupdate. + // CustomVariables: Custom floodlight variables. This field may only be used + // when calling batchinsert; it is not supported by batchupdate. CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"` - // EncryptedUserId: The alphanumeric encrypted user ID. When set, - // encryptionInfo should also be specified. This field is mutually - // exclusive with encryptedUserIdCandidates[], matchId, mobileDeviceId - // and gclid. This or encryptedUserIdCandidates[] or matchId or - // mobileDeviceId or gclid is a required field. + // encryptionInfo should also be specified. This field is mutually exclusive + // with encryptedUserIdCandidates[], matchId, mobileDeviceId and gclid. This or + // encryptedUserIdCandidates[] or matchId or mobileDeviceId or gclid is a + // required field. EncryptedUserId string `json:"encryptedUserId,omitempty"` - - // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user - // IDs. Any user ID with exposure prior to the conversion timestamp will - // be used in the inserted conversion. If no such user ID is found then - // the conversion will be rejected with INVALID_ARGUMENT error. When - // set, encryptionInfo should also be specified. This field may only be - // used when calling batchinsert; it is not supported by batchupdate. - // This field is mutually exclusive with encryptedUserId, matchId, - // mobileDeviceId and gclid. This or encryptedUserId or matchId or - // mobileDeviceId or gclid is a required field. + // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user IDs. + // Any user ID with exposure prior to the conversion timestamp will be used in + // the inserted conversion. If no such user ID is found then the conversion + // will be rejected with INVALID_ARGUMENT error. When set, encryptionInfo + // should also be specified. This field may only be used when calling + // batchinsert; it is not supported by batchupdate. This field is mutually + // exclusive with encryptedUserId, matchId, mobileDeviceId and gclid. This or + // encryptedUserId or matchId or mobileDeviceId or gclid is a required field. EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"` - - // FloodlightActivityId: Floodlight Activity ID of this conversion. This - // is a required field. + // FloodlightActivityId: Floodlight Activity ID of this conversion. This is a + // required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightConfigurationId: Floodlight Configuration ID of this - // conversion. This is a required field. + // FloodlightConfigurationId: Floodlight Configuration ID of this conversion. + // This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - // Gclid: The Google click ID. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[], matchId and - // mobileDeviceId. This or encryptedUserId or - // encryptedUserIdCandidates[] or matchId or mobileDeviceId is a - // required field. + // encryptedUserId, encryptedUserIdCandidates[], matchId and mobileDeviceId. + // This or encryptedUserId or encryptedUserIdCandidates[] or matchId or + // mobileDeviceId is a required field. Gclid string `json:"gclid,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversion". Kind string `json:"kind,omitempty"` - - // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to - // true, the conversion will be used for reporting but not targeting. - // This will prevent remarketing. + // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to true, the + // conversion will be used for reporting but not targeting. This will prevent + // remarketing. LimitAdTracking bool `json:"limitAdTracking,omitempty"` - - // MatchId: The match ID field. A match ID is your own first-party - // identifier that has been synced with Google using the match ID - // feature in Floodlight. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[],mobileDeviceId and - // gclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // mobileDeviceId or gclid is a required field. + // MatchId: The match ID field. A match ID is your own first-party identifier + // that has been synced with Google using the match ID feature in Floodlight. + // This field is mutually exclusive with encryptedUserId, + // encryptedUserIdCandidates[],mobileDeviceId and gclid. This or + // encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId or gclid is + // a required field. MatchId string `json:"matchId,omitempty"` - - // MobileDeviceId: The mobile device ID. This field is mutually - // exclusive with encryptedUserId, encryptedUserIdCandidates[], matchId - // and gclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // matchId or gclid is a required field. + // MobileDeviceId: The mobile device ID. This field is mutually exclusive with + // encryptedUserId, encryptedUserIdCandidates[], matchId and gclid. This or + // encryptedUserId or encryptedUserIdCandidates[] or matchId or gclid is a + // required field. MobileDeviceId string `json:"mobileDeviceId,omitempty"` - - // NonPersonalizedAd: Whether the conversion was for a non personalized - // ad. + // NonPersonalizedAd: Whether the conversion was for a non personalized ad. NonPersonalizedAd bool `json:"nonPersonalizedAd,omitempty"` - // Ordinal: The ordinal of the conversion. Use this field to control how - // conversions of the same user and day are de-duplicated. This is a - // required field. + // conversions of the same user and day are de-duplicated. This is a required + // field. Ordinal string `json:"ordinal,omitempty"` - // Quantity: The quantity of the conversion. Quantity int64 `json:"quantity,omitempty,string"` - - // TimestampMicros: The timestamp of conversion, in Unix epoch micros. - // This is a required field. + // TimestampMicros: The timestamp of conversion, in Unix epoch micros. This is + // a required field. TimestampMicros int64 `json:"timestampMicros,omitempty,string"` - - // TreatmentForUnderage: Whether this particular request may come from a - // user under the age of 16 (may differ by country), under compliance - // with the European Union's General Data Protection Regulation (GDPR). + // TreatmentForUnderage: Whether this particular request may come from a user + // under the age of 16 (may differ by country), under compliance with the + // European Union's General Data Protection Regulation (GDPR). TreatmentForUnderage bool `json:"treatmentForUnderage,omitempty"` - // Value: The value of the conversion. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ChildDirectedTreatment") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ChildDirectedTreatment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChildDirectedTreatment") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ChildDirectedTreatment") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Conversion) MarshalJSON() ([]byte, error) { +func (s Conversion) MarshalJSON() ([]byte, error) { type NoMethod Conversion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Conversion) UnmarshalJSON(data []byte) error { @@ -3321,8 +2746,8 @@ func (s *Conversion) UnmarshalJSON(data []byte) error { return nil } -// ConversionError: The error code and description for a conversion that -// failed to insert or update. +// ConversionError: The error code and description for a conversion that failed +// to insert or update. type ConversionError struct { // Code: The error code. // @@ -3332,357 +2757,274 @@ type ConversionError struct { // "PERMISSION_DENIED" // "NOT_FOUND" Code string `json:"code,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionError". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionError". Kind string `json:"kind,omitempty"` - // Message: A description of the error. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionError) MarshalJSON() ([]byte, error) { +func (s ConversionError) MarshalJSON() ([]byte, error) { type NoMethod ConversionError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConversionStatus: The original conversion that was inserted or -// updated and whether there were any errors. +// ConversionStatus: The original conversion that was inserted or updated and +// whether there were any errors. type ConversionStatus struct { // Conversion: The original conversion that was inserted or updated. Conversion *Conversion `json:"conversion,omitempty"` - // Errors: A list of errors related to this conversion. Errors []*ConversionError `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionStatus". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionStatus". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionStatus) MarshalJSON() ([]byte, error) { +func (s ConversionStatus) MarshalJSON() ([]byte, error) { type NoMethod ConversionStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertRequest: Insert Conversions Request. type ConversionsBatchInsertRequest struct { // Conversions: The set of conversions to insert. Conversions []*Conversion `json:"conversions,omitempty"` - - // EncryptionInfo: Describes how encryptedUserId or - // encryptedUserIdCandidates[] is encrypted. This is a required field if - // encryptedUserId or encryptedUserIdCandidates[] is used. + // EncryptionInfo: Describes how encryptedUserId or encryptedUserIdCandidates[] + // is encrypted. This is a required field if encryptedUserId or + // encryptedUserIdCandidates[] is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertResponse: Insert Conversions Response. type ConversionsBatchInsertResponse struct { // HasFailures: Indicates that some or all conversions failed to insert. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertResponse". Kind string `json:"kind,omitempty"` - - // Status: The insert status of each conversion. Statuses are returned - // in the same order that conversions are inserted. + // Status: The insert status of each conversion. Statuses are returned in the + // same order that conversions are inserted. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchUpdateRequest: Update Conversions Request. type ConversionsBatchUpdateRequest struct { // Conversions: The set of conversions to update. Conversions []*Conversion `json:"conversions,omitempty"` - // EncryptionInfo: Describes how encryptedUserId is encrypted. This is a // required field if encryptedUserId is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchUpdateRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchUpdateRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchUpdateResponse: Update Conversions Response. type ConversionsBatchUpdateResponse struct { // HasFailures: Indicates that some or all conversions failed to update. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchUpdateResponse". Kind string `json:"kind,omitempty"` - - // Status: The update status of each conversion. Statuses are returned - // in the same order that conversions are updated. + // Status: The update status of each conversion. Statuses are returned in the + // same order that conversions are updated. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchUpdateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CountriesListResponse: Country List Response type CountriesListResponse struct { // Countries: Country collection. Countries []*Country `json:"countries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#countriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#countriesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Countries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Countries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Countries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CountriesListResponse) MarshalJSON() ([]byte, error) { +func (s CountriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CountriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Country: Contains information about a country that can be targeted by -// ads. +// Country: Contains information about a country that can be targeted by ads. type Country struct { // CountryCode: Country code. CountryCode string `json:"countryCode,omitempty"` - - // DartId: DART ID of this country. This is the ID used for targeting - // and generating reports. + // DartId: DART ID of this country. This is the ID used for targeting and + // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#country". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#country". Kind string `json:"kind,omitempty"` - // Name: Name of this country. Name string `json:"name,omitempty"` - - // SslEnabled: Whether ad serving supports secure servers in this - // country. + // SslEnabled: Whether ad serving supports secure servers in this country. SslEnabled bool `json:"sslEnabled,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Country) MarshalJSON() ([]byte, error) { +func (s Country) MarshalJSON() ([]byte, error) { type NoMethod Country - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Creative: Contains properties of a Creative. type Creative struct { - // AccountId: Account ID of this creative. This field, if left unset, - // will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // AccountId: Account ID of this creative. This field, if left unset, will be + // auto-generated for both insert and update operations. Applicable to all + // creative types. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether the creative is active. Applicable to all creative - // types. + // Active: Whether the creative is active. Applicable to all creative types. Active bool `json:"active,omitempty"` - - // AdParameters: Ad parameters user for VPAID creative. This is a - // read-only field. Applicable to the following creative types: all - // VPAID. + // AdParameters: Ad parameters user for VPAID creative. This is a read-only + // field. Applicable to the following creative types: all VPAID. AdParameters string `json:"adParameters,omitempty"` - - // AdTagKeys: Keywords for a Rich Media creative. Keywords let you - // customize the creative settings of a Rich Media ad running on your - // site without having to contact the advertiser. You can use keywords - // to dynamically change the look or functionality of a creative. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // AdTagKeys: Keywords for a Rich Media creative. Keywords let you customize + // the creative settings of a Rich Media ad running on your site without having + // to contact the advertiser. You can use keywords to dynamically change the + // look or functionality of a creative. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. AdTagKeys []string `json:"adTagKeys,omitempty"` - - // AdditionalSizes: Additional sizes associated with a responsive - // creative. When inserting or updating a creative either the size ID - // field or size width and height fields can be used. Applicable to - // DISPLAY creatives when the primary asset type is HTML_IMAGE. + // AdditionalSizes: Additional sizes associated with a responsive creative. + // When inserting or updating a creative either the size ID field or size width + // and height fields can be used. Applicable to DISPLAY creatives when the + // primary asset type is HTML_IMAGE. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // AdvertiserId: Advertiser ID of this creative. This is a required - // field. Applicable to all creative types. + // AdvertiserId: Advertiser ID of this creative. This is a required field. + // Applicable to all creative types. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AllowScriptAccess: Whether script access is allowed for this - // creative. This is a read-only and deprecated field which will - // automatically be set to true on update. Applicable to the following - // creative types: FLASH_INPAGE. + // AllowScriptAccess: Whether script access is allowed for this creative. This + // is a read-only and deprecated field which will automatically be set to true + // on update. Applicable to the following creative types: FLASH_INPAGE. AllowScriptAccess bool `json:"allowScriptAccess,omitempty"` - - // Archived: Whether the creative is archived. Applicable to all - // creative types. + // Archived: Whether the creative is archived. Applicable to all creative + // types. Archived bool `json:"archived,omitempty"` - - // ArtworkType: Type of artwork used for the creative. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // ArtworkType: Type of artwork used for the creative. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -3690,10 +3032,9 @@ type Creative struct { // "ARTWORK_TYPE_MIXED" // "ARTWORK_TYPE_IMAGE" ArtworkType string `json:"artworkType,omitempty"` - - // AuthoringSource: Source application where creative was authored. - // Presently, only DBM authored creatives will have this field set. - // Applicable to all creative types. + // AuthoringSource: Source application where creative was authored. Presently, + // only DBM authored creatives will have this field set. Applicable to all + // creative types. // // Possible values: // "CREATIVE_AUTHORING_SOURCE_DCM" @@ -3701,42 +3042,33 @@ type Creative struct { // "CREATIVE_AUTHORING_SOURCE_STUDIO" // "CREATIVE_AUTHORING_SOURCE_GWD" AuthoringSource string `json:"authoringSource,omitempty"` - // AuthoringTool: Authoring tool for HTML5 banner creatives. This is a - // read-only field. Applicable to the following creative types: - // HTML5_BANNER. + // read-only field. Applicable to the following creative types: HTML5_BANNER. // // Possible values: // "NINJA" // "SWIFFY" AuthoringTool string `json:"authoringTool,omitempty"` - - // AutoAdvanceImages: Whether images are automatically advanced for - // image gallery creatives. Applicable to the following creative types: + // AutoAdvanceImages: Whether images are automatically advanced for image + // gallery creatives. Applicable to the following creative types: // DISPLAY_IMAGE_GALLERY. AutoAdvanceImages bool `json:"autoAdvanceImages,omitempty"` - - // BackgroundColor: The 6-character HTML color code, beginning with #, - // for the background of the window area where the Flash file is - // displayed. Default is white. Applicable to the following creative - // types: FLASH_INPAGE. + // BackgroundColor: The 6-character HTML color code, beginning with #, for the + // background of the window area where the Flash file is displayed. Default is + // white. Applicable to the following creative types: FLASH_INPAGE. BackgroundColor string `json:"backgroundColor,omitempty"` - - // BackupImageClickThroughUrl: Click-through URL for backup image. - // Applicable to ENHANCED_BANNER when the primary asset type is not - // HTML_IMAGE. + // BackupImageClickThroughUrl: Click-through URL for backup image. Applicable + // to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. BackupImageClickThroughUrl *CreativeClickThroughUrl `json:"backupImageClickThroughUrl,omitempty"` - - // BackupImageFeatures: List of feature dependencies that will cause a - // backup image to be served if the browser that serves the ad does not - // support them. Feature dependencies are features that a browser must - // be able to support in order to render your HTML5 creative asset - // correctly. This field is initially auto-generated to contain all - // features detected by Campaign Manager for all the assets of this - // creative and can then be modified by the client. To reset this field, - // copy over all the creativeAssets' detected features. Applicable to - // the following creative types: HTML5_BANNER. Applicable to DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageFeatures: List of feature dependencies that will cause a backup + // image to be served if the browser that serves the ad does not support them. + // Feature dependencies are features that a browser must be able to support in + // order to render your HTML5 creative asset correctly. This field is initially + // auto-generated to contain all features detected by Campaign Manager for all + // the assets of this creative and can then be modified by the client. To reset + // this field, copy over all the creativeAssets' detected features. Applicable + // to the following creative types: HTML5_BANNER. Applicable to DISPLAY when + // the primary asset type is not HTML_IMAGE. // // Possible values: // "CSS_FONT_FACE" @@ -3806,56 +3138,47 @@ type Creative struct { // "SVG_FILTERS" // "SVG_FE_IMAGE" BackupImageFeatures []string `json:"backupImageFeatures,omitempty"` - - // BackupImageReportingLabel: Reporting label used for HTML5 banner - // backup image. Applicable to the following creative types: DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageReportingLabel: Reporting label used for HTML5 banner backup + // image. Applicable to the following creative types: DISPLAY when the primary + // asset type is not HTML_IMAGE. BackupImageReportingLabel string `json:"backupImageReportingLabel,omitempty"` - - // BackupImageTargetWindow: Target window for backup image. Applicable - // to the following creative types: FLASH_INPAGE and HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // BackupImageTargetWindow: Target window for backup image. Applicable to the + // following creative types: FLASH_INPAGE and HTML5_BANNER. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"` - // ClickTags: Click tags of the creative. For DISPLAY, FLASH_INPAGE, and - // HTML5_BANNER creatives, this is a subset of detected click tags for - // the assets associated with this creative. After creating a flash - // asset, detected click tags will be returned in the - // creativeAssetMetadata. When inserting the creative, populate the - // creative clickTags field using the creativeAssetMetadata.clickTags - // field. For DISPLAY_IMAGE_GALLERY creatives, there should be exactly - // one entry in this list for each image creative asset. A click tag is - // matched with a corresponding creative asset by matching the - // clickTag.name field with the creativeAsset.assetIdentifier.name - // field. Applicable to the following creative types: - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. Applicable to - // DISPLAY when the primary asset type is not HTML_IMAGE. + // HTML5_BANNER creatives, this is a subset of detected click tags for the + // assets associated with this creative. After creating a flash asset, detected + // click tags will be returned in the creativeAssetMetadata. When inserting the + // creative, populate the creative clickTags field using the + // creativeAssetMetadata.clickTags field. For DISPLAY_IMAGE_GALLERY creatives, + // there should be exactly one entry in this list for each image creative + // asset. A click tag is matched with a corresponding creative asset by + // matching the clickTag.name field with the creativeAsset.assetIdentifier.name + // field. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, + // FLASH_INPAGE, HTML5_BANNER. Applicable to DISPLAY when the primary asset + // type is not HTML_IMAGE. ClickTags []*ClickTag `json:"clickTags,omitempty"` - // CommercialId: Industry standard ID assigned to creative for reach and // frequency. Applicable to INSTREAM_VIDEO_REDIRECT creatives. CommercialId string `json:"commercialId,omitempty"` - - // CompanionCreatives: List of companion creatives assigned to an - // in-Stream video creative. Acceptable values include IDs of existing - // flash and image creatives. Applicable to the following creative - // types: all VPAID, all INSTREAM_AUDIO and all INSTREAM_VIDEO with - // dynamicAssetSelection set to false. + // CompanionCreatives: List of companion creatives assigned to an in-Stream + // video creative. Acceptable values include IDs of existing flash and image + // creatives. Applicable to the following creative types: all VPAID, all + // INSTREAM_AUDIO and all INSTREAM_VIDEO with dynamicAssetSelection set to + // false. CompanionCreatives googleapi.Int64s `json:"companionCreatives,omitempty"` - - // Compatibility: Compatibilities associated with this creative. This is - // a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to - // rendering either on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing - // creatives may have these compatibilities since new creatives will - // either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. IN_STREAM_AUDIO refers to rendering in - // in-stream audio ads developed with the VAST standard. Applicable to - // all creative types. Acceptable values are: - "APP" - - // "APP_INTERSTITIAL" - "IN_STREAM_VIDEO" - "IN_STREAM_AUDIO" - - // "DISPLAY" - "DISPLAY_INTERSTITIAL" + // Compatibility: Compatibilities associated with this creative. This is a + // read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either + // on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. Only pre-existing creatives may have these compatibilities + // since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL + // instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // developed with the VAST standard. IN_STREAM_AUDIO refers to rendering in + // in-stream audio ads developed with the VAST standard. Applicable to all + // creative types. Acceptable values are: - "APP" - "APP_INTERSTITIAL" - + // "IN_STREAM_VIDEO" - "IN_STREAM_AUDIO" - "DISPLAY" - "DISPLAY_INTERSTITIAL" // // Possible values: // "DISPLAY" @@ -3865,232 +3188,177 @@ type Creative struct { // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility []string `json:"compatibility,omitempty"` - - // ConvertFlashToHtml5: Whether Flash assets associated with the - // creative need to be automatically converted to HTML5. This flag is - // enabled by default and users can choose to disable it if they don't - // want the system to generate and use HTML5 asset for this creative. - // Applicable to the following creative type: FLASH_INPAGE. Applicable - // to DISPLAY when the primary asset type is not HTML_IMAGE. + // ConvertFlashToHtml5: Whether Flash assets associated with the creative need + // to be automatically converted to HTML5. This flag is enabled by default and + // users can choose to disable it if they don't want the system to generate and + // use HTML5 asset for this creative. Applicable to the following creative + // type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. ConvertFlashToHtml5 bool `json:"convertFlashToHtml5,omitempty"` - - // CounterCustomEvents: List of counter events configured for the - // creative. For DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. + // CounterCustomEvents: List of counter events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"` - // CreativeAssetSelection: Required if dynamicAssetSelection is true. CreativeAssetSelection *CreativeAssetSelection `json:"creativeAssetSelection,omitempty"` - - // CreativeAssets: Assets associated with a creative. Applicable to all - // but the following creative types: INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT + // CreativeAssets: Assets associated with a creative. Applicable to all but the + // following creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, + // and REDIRECT CreativeAssets []*CreativeAsset `json:"creativeAssets,omitempty"` - - // CreativeFieldAssignments: Creative field assignments for this - // creative. Applicable to all creative types. + // CreativeFieldAssignments: Creative field assignments for this creative. + // Applicable to all creative types. CreativeFieldAssignments []*CreativeFieldAssignment `json:"creativeFieldAssignments,omitempty"` - - // CustomKeyValues: Custom key-values for a Rich Media creative. - // Key-values let you customize the creative settings of a Rich Media ad - // running on your site without having to contact the advertiser. You - // can use key-values to dynamically change the look or functionality of - // a creative. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // CustomKeyValues: Custom key-values for a Rich Media creative. Key-values let + // you customize the creative settings of a Rich Media ad running on your site + // without having to contact the advertiser. You can use key-values to + // dynamically change the look or functionality of a creative. Applicable to + // the following creative types: all RICH_MEDIA, and all VPAID. CustomKeyValues []string `json:"customKeyValues,omitempty"` - - // DynamicAssetSelection: Set this to true to enable the use of rules to - // target individual assets in this creative. When set to true - // creativeAssetSelection must be set. This also controls asset-level - // companions. When this is true, companion creatives should be assigned - // to creative assets. Learn more. Applicable to INSTREAM_VIDEO - // creatives. + // DynamicAssetSelection: Set this to true to enable the use of rules to target + // individual assets in this creative. When set to true creativeAssetSelection + // must be set. This also controls asset-level companions. When this is true, + // companion creatives should be assigned to creative assets. Learn more. + // Applicable to INSTREAM_VIDEO creatives. DynamicAssetSelection bool `json:"dynamicAssetSelection,omitempty"` - - // ExitCustomEvents: List of exit events configured for the creative. - // For DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags, For DISPLAY, an event is also - // created from the backupImageReportingLabel. Applicable to the - // following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and - // all VPAID. Applicable to DISPLAY when the primary asset type is not - // HTML_IMAGE. + // ExitCustomEvents: List of exit events configured for the creative. For + // DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only and + // auto-generated from clickTags, For DISPLAY, an event is also created from + // the backupImageReportingLabel. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset type is not HTML_IMAGE. ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"` - - // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF - // file communicate with either Flash Player or the program hosting - // Flash Player, such as a web browser. This is only triggered if - // allowScriptAccess field is true. Applicable to the following creative - // types: FLASH_INPAGE. + // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF file + // communicate with either Flash Player or the program hosting Flash Player, + // such as a web browser. This is only triggered if allowScriptAccess field is + // true. Applicable to the following creative types: FLASH_INPAGE. FsCommand *FsCommand `json:"fsCommand,omitempty"` - // HtmlCode: HTML code for the creative. This is a required field when - // applicable. This field is ignored if htmlCodeLocked is true. - // Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, - // and HTML5_BANNER, and all RICH_MEDIA. + // applicable. This field is ignored if htmlCodeLocked is true. Applicable to + // the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, + // and all RICH_MEDIA. HtmlCode string `json:"htmlCode,omitempty"` - // HtmlCodeLocked: Whether HTML code is generated by Campaign Manager or - // manually entered. Set to true to ignore changes to htmlCode. - // Applicable to the following creative types: FLASH_INPAGE and - // HTML5_BANNER. + // manually entered. Set to true to ignore changes to htmlCode. Applicable to + // the following creative types: FLASH_INPAGE and HTML5_BANNER. HtmlCodeLocked bool `json:"htmlCodeLocked,omitempty"` - // Id: ID of this creative. This is a read-only, auto-generated field. // Applicable to all creative types. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this creative. This - // is a read-only field. Applicable to all creative types. + // IdDimensionValue: Dimension value for the ID of this creative. This is a + // read-only field. Applicable to all creative types. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creative". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creative". Kind string `json:"kind,omitempty"` - // LastModifiedInfo: Creative last modification information. This is a // read-only field. Applicable to all creative types. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // LatestTraffickedCreativeId: Latest Studio trafficked creative ID - // associated with rich media and VPAID creatives. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // LatestTraffickedCreativeId: Latest Studio trafficked creative ID associated + // with rich media and VPAID creatives. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA, and all VPAID. LatestTraffickedCreativeId int64 `json:"latestTraffickedCreativeId,omitempty,string"` - - // MediaDescription: Description of the audio or video ad. Applicable to - // the following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and - // all VPAID. + // MediaDescription: Description of the audio or video ad. Applicable to the + // following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and all VPAID. MediaDescription string `json:"mediaDescription,omitempty"` - // MediaDuration: Creative audio or video duration in seconds. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO, INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID. + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO, + // INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID. MediaDuration float64 `json:"mediaDuration,omitempty"` - - // Name: Name of the creative. This is a required field and must be less - // than 256 characters long. Applicable to all creative types. + // Name: Name of the creative. This is a required field and must be less than + // 256 characters long. Applicable to all creative types. Name string `json:"name,omitempty"` - - // OverrideCss: Override CSS value for rich media creatives. Applicable - // to the following creative types: all RICH_MEDIA. + // OverrideCss: Override CSS value for rich media creatives. Applicable to the + // following creative types: all RICH_MEDIA. OverrideCss string `json:"overrideCss,omitempty"` - - // ProgressOffset: Amount of time to play the video before counting a - // view. Applicable to the following creative types: all INSTREAM_VIDEO. + // ProgressOffset: Amount of time to play the video before counting a view. + // Applicable to the following creative types: all INSTREAM_VIDEO. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // RedirectUrl: URL of hosted image or hosted video or another ad tag. - // For INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video - // redirect URL. The standard for a VAST (Video Ad Serving Template) ad - // response allows for a redirect link to another VAST 2.0 or 3.0 call. - // This is a required field when applicable. Applicable to the following - // creative types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT + // RedirectUrl: URL of hosted image or hosted video or another ad tag. For + // INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. + // The standard for a VAST (Video Ad Serving Template) ad response allows for a + // redirect link to another VAST 2.0 or 3.0 call. This is a required field when + // applicable. Applicable to the following creative types: DISPLAY_REDIRECT, + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and + // INSTREAM_VIDEO_REDIRECT RedirectUrl string `json:"redirectUrl,omitempty"` - - // RenderingId: ID of current rendering version. This is a read-only - // field. Applicable to all creative types. + // RenderingId: ID of current rendering version. This is a read-only field. + // Applicable to all creative types. RenderingId int64 `json:"renderingId,omitempty,string"` - - // RenderingIdDimensionValue: Dimension value for the rendering ID of - // this creative. This is a read-only field. Applicable to all creative - // types. + // RenderingIdDimensionValue: Dimension value for the rendering ID of this + // creative. This is a read-only field. Applicable to all creative types. RenderingIdDimensionValue *DimensionValue `json:"renderingIdDimensionValue,omitempty"` - - // RequiredFlashPluginVersion: The minimum required Flash plugin version - // for this creative. For example, 11.2.202.235. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // RequiredFlashPluginVersion: The minimum required Flash plugin version for + // this creative. For example, 11.2.202.235. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA, and all VPAID. RequiredFlashPluginVersion string `json:"requiredFlashPluginVersion,omitempty"` - // RequiredFlashVersion: The internal Flash version for this creative as - // calculated by Studio. This is a read-only field. Applicable to the - // following creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // calculated by Studio. This is a read-only field. Applicable to the following + // creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. RequiredFlashVersion int64 `json:"requiredFlashVersion,omitempty"` - - // Size: Size associated with this creative. When inserting or updating - // a creative either the size ID field or size width and height fields - // can be used. This is a required field when applicable; however for - // IMAGE, FLASH_INPAGE creatives, and for DISPLAY creatives with a - // primary asset of type HTML_IMAGE, if left blank, this field will be - // automatically set using the actual size of the associated image - // assets. Applicable to the following creative types: DISPLAY, - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all - // RICH_MEDIA. + // Size: Size associated with this creative. When inserting or updating a + // creative either the size ID field or size width and height fields can be + // used. This is a required field when applicable; however for IMAGE, + // FLASH_INPAGE creatives, and for DISPLAY creatives with a primary asset of + // type HTML_IMAGE, if left blank, this field will be automatically set using + // the actual size of the associated image assets. Applicable to the following + // creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, + // IMAGE, and all RICH_MEDIA. Size *Size `json:"size,omitempty"` - - // SkipOffset: Amount of time to play the video before the skip button - // appears. Applicable to the following creative types: all - // INSTREAM_VIDEO. + // SkipOffset: Amount of time to play the video before the skip button appears. + // Applicable to the following creative types: all INSTREAM_VIDEO. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can choose to skip the creative. - // Applicable to the following creative types: all INSTREAM_VIDEO and - // all VPAID. + // Skippable: Whether the user can choose to skip the creative. Applicable to + // the following creative types: all INSTREAM_VIDEO and all VPAID. Skippable bool `json:"skippable,omitempty"` - - // SslCompliant: Whether the creative is SSL-compliant. This is a - // read-only field. Applicable to all creative types. + // SslCompliant: Whether the creative is SSL-compliant. This is a read-only + // field. Applicable to all creative types. SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslOverride: Whether creative should be treated as SSL compliant even - // if the system scan shows it's not. Applicable to all creative types. + // SslOverride: Whether creative should be treated as SSL compliant even if the + // system scan shows it's not. Applicable to all creative types. SslOverride bool `json:"sslOverride,omitempty"` - - // StudioAdvertiserId: Studio advertiser ID associated with rich media - // and VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioAdvertiserId: Studio advertiser ID associated with rich media and + // VPAID creatives. This is a read-only field. Applicable to the following + // creative types: all RICH_MEDIA, and all VPAID. StudioAdvertiserId int64 `json:"studioAdvertiserId,omitempty,string"` - - // StudioCreativeId: Studio creative ID associated with rich media and - // VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioCreativeId: Studio creative ID associated with rich media and VPAID + // creatives. This is a read-only field. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. StudioCreativeId int64 `json:"studioCreativeId,omitempty,string"` - - // StudioTraffickedCreativeId: Studio trafficked creative ID associated - // with rich media and VPAID creatives. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // StudioTraffickedCreativeId: Studio trafficked creative ID associated with + // rich media and VPAID creatives. This is a read-only field. Applicable to the + // following creative types: all RICH_MEDIA, and all VPAID. StudioTraffickedCreativeId int64 `json:"studioTraffickedCreativeId,omitempty,string"` - - // SubaccountId: Subaccount ID of this creative. This field, if left - // unset, will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // SubaccountId: Subaccount ID of this creative. This field, if left unset, + // will be auto-generated for both insert and update operations. Applicable to + // all creative types. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record - // backup image impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record backup + // image impressions. Applicable to the following creative types: all + // RICH_MEDIA. ThirdPartyBackupImageImpressionsUrl string `json:"thirdPartyBackupImageImpressionsUrl,omitempty"` - - // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record - // rich media impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record rich media + // impressions. Applicable to the following creative types: all RICH_MEDIA. ThirdPartyRichMediaImpressionsUrl string `json:"thirdPartyRichMediaImpressionsUrl,omitempty"` - - // ThirdPartyUrls: Third-party URLs for tracking in-stream creative - // events. Applicable to the following creative types: all - // INSTREAM_VIDEO, all INSTREAM_AUDIO, and all VPAID. + // ThirdPartyUrls: Third-party URLs for tracking in-stream creative events. + // Applicable to the following creative types: all INSTREAM_VIDEO, all + // INSTREAM_AUDIO, and all VPAID. ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"` - - // TimerCustomEvents: List of timer events configured for the creative. - // For DISPLAY_IMAGE_GALLERY creatives, these are read-only and - // auto-generated from clickTags. Applicable to the following creative - // types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset is not HTML_IMAGE. + // TimerCustomEvents: List of timer events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset is not HTML_IMAGE. TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"` - - // TotalFileSize: Combined size of all creative assets. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // TotalFileSize: Combined size of all creative assets. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. TotalFileSize int64 `json:"totalFileSize,omitempty,string"` - - // Type: Type of this creative. This is a required field. Applicable to - // all creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are - // only used for existing creatives. New creatives should use DISPLAY as - // a replacement for these types. + // Type: Type of this creative. This is a required field. Applicable to all + // creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used + // for existing creatives. New creatives should use DISPLAY as a replacement + // for these types. // // Possible values: // "IMAGE" @@ -4119,47 +3387,37 @@ type Creative struct { // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" // "INSTREAM_AUDIO" Type string `json:"type,omitempty"` - - // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable - // to the following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO - // and VPAID. + // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the + // following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO and VPAID. UniversalAdId *UniversalAdId `json:"universalAdId,omitempty"` - - // Version: The version number helps you keep track of multiple versions - // of your creative in your reports. The version number will always be + // Version: The version number helps you keep track of multiple versions of + // your creative in your reports. The version number will always be // auto-generated during insert operations to start at 1. For tracking - // creatives the version cannot be incremented and will always remain at - // 1. For all other creative types the version can be incremented only - // by 1 during update operations. In addition, the version will be - // automatically incremented by 1 when undergoing Rich Media creative - // merging. Applicable to all creative types. + // creatives the version cannot be incremented and will always remain at 1. For + // all other creative types the version can be incremented only by 1 during + // update operations. In addition, the version will be automatically + // incremented by 1 when undergoing Rich Media creative merging. Applicable to + // all creative types. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Creative) MarshalJSON() ([]byte, error) { +func (s Creative) MarshalJSON() ([]byte, error) { type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Creative) UnmarshalJSON(data []byte) error { @@ -4178,25 +3436,20 @@ func (s *Creative) UnmarshalJSON(data []byte) error { // CreativeAsset: Creative Asset. type CreativeAsset struct { - // ActionScript3: Whether ActionScript3 is enabled for the flash asset. - // This is a read-only field. Applicable to the following creative type: - // FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is - // not HTML_IMAGE. + // ActionScript3: Whether ActionScript3 is enabled for the flash asset. This is + // a read-only field. Applicable to the following creative type: FLASH_INPAGE. + // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ActionScript3 bool `json:"actionScript3,omitempty"` - - // Active: Whether the video or audio asset is active. This is a - // read-only field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the - // following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all - // VPAID. + // Active: Whether the video or audio asset is active. This is a read-only + // field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the following + // creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. Active bool `json:"active,omitempty"` - - // AdditionalSizes: Additional sizes associated with this creative - // asset. HTML5 asset generated by compatible software such as GWD will - // be able to support more sizes this creative asset can render. + // AdditionalSizes: Additional sizes associated with this creative asset. HTML5 + // asset generated by compatible software such as GWD will be able to support + // more sizes this creative asset can render. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // Alignment: Possible alignments for an asset. This is a read-only - // field. Applicable to the following creative types: + // Alignment: Possible alignments for an asset. This is a read-only field. + // Applicable to the following creative types: // RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL . // // Possible values: @@ -4205,9 +3458,8 @@ type CreativeAsset struct { // "ALIGNMENT_BOTTOM" // "ALIGNMENT_LEFT" Alignment string `json:"alignment,omitempty"` - - // ArtworkType: Artwork type of rich media creative. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // ArtworkType: Artwork type of rich media creative. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -4215,34 +3467,28 @@ type CreativeAsset struct { // "ARTWORK_TYPE_MIXED" // "ARTWORK_TYPE_IMAGE" ArtworkType string `json:"artworkType,omitempty"` - - // AssetIdentifier: Identifier of this asset. This is the same - // identifier returned during creative asset insert operation. This is a - // required field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // AssetIdentifier: Identifier of this asset. This is the same identifier + // returned during creative asset insert operation. This is a required field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // AudioBitRate: Audio stream bit rate in kbps. This is a read-only - // field. Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and all VPAID. + // AudioBitRate: Audio stream bit rate in kbps. This is a read-only field. + // Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO + // and all VPAID. AudioBitRate int64 `json:"audioBitRate,omitempty"` - - // AudioSampleRate: Audio sample bit rate in hertz. This is a read-only - // field. Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and all VPAID. + // AudioSampleRate: Audio sample bit rate in hertz. This is a read-only field. + // Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO + // and all VPAID. AudioSampleRate int64 `json:"audioSampleRate,omitempty"` - - // BackupImageExit: Exit event configured for the backup image. - // Applicable to the following creative types: all RICH_MEDIA. + // BackupImageExit: Exit event configured for the backup image. Applicable to + // the following creative types: all RICH_MEDIA. BackupImageExit *CreativeCustomEvent `json:"backupImageExit,omitempty"` - - // BitRate: Detected bit-rate for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // BitRate: Detected bit-rate for audio or video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. BitRate int64 `json:"bitRate,omitempty"` - - // ChildAssetType: Rich media child asset type. This is a read-only - // field. Applicable to the following creative types: all VPAID. + // ChildAssetType: Rich media child asset type. This is a read-only field. + // Applicable to the following creative types: all VPAID. // // Possible values: // "CHILD_ASSET_TYPE_FLASH" @@ -4250,30 +3496,26 @@ type CreativeAsset struct { // "CHILD_ASSET_TYPE_IMAGE" // "CHILD_ASSET_TYPE_DATA" ChildAssetType string `json:"childAssetType,omitempty"` - - // CollapsedSize: Size of an asset when collapsed. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA and - // all VPAID. Additionally, applicable to assets whose displayType is + // CollapsedSize: Size of an asset when collapsed. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA and all VPAID. + // Additionally, applicable to assets whose displayType is // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. CollapsedSize *Size `json:"collapsedSize,omitempty"` - - // CompanionCreativeIds: List of companion creatives assigned to an - // in-stream video creative asset. Acceptable values include IDs of - // existing flash and image creatives. Applicable to INSTREAM_VIDEO - // creative type with dynamicAssetSelection set to true. + // CompanionCreativeIds: List of companion creatives assigned to an in-stream + // video creative asset. Acceptable values include IDs of existing flash and + // image creatives. Applicable to INSTREAM_VIDEO creative type with + // dynamicAssetSelection set to true. CompanionCreativeIds googleapi.Int64s `json:"companionCreativeIds,omitempty"` - - // CustomStartTimeValue: Custom start time in seconds for making the - // asset visible. Applicable to the following creative types: all - // RICH_MEDIA. Value must be greater than or equal to 0. + // CustomStartTimeValue: Custom start time in seconds for making the asset + // visible. Applicable to the following creative types: all RICH_MEDIA. Value + // must be greater than or equal to 0. CustomStartTimeValue int64 `json:"customStartTimeValue,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. Applicable to the following creative types: HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by Campaign Manager. Feature dependencies are features that a + // browser must be able to support in order to render your HTML5 creative + // correctly. This is a read-only, auto-generated field. Applicable to the + // following creative types: HTML5_BANNER. Applicable to DISPLAY when the + // primary asset type is not HTML_IMAGE. // // Possible values: // "CSS_FONT_FACE" @@ -4343,9 +3585,8 @@ type CreativeAsset struct { // "SVG_FILTERS" // "SVG_FE_IMAGE" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // DisplayType: Type of rich media asset. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA. + // DisplayType: Type of rich media asset. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DISPLAY_TYPE_INPAGE" @@ -4359,169 +3600,137 @@ type CreativeAsset struct { // "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" // "ASSET_DISPLAY_TYPE_BACKDROP" DisplayType string `json:"displayType,omitempty"` - // Duration: Duration in seconds for which an asset will be displayed. - // Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or - // equal to 1. + // Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO + // and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. Duration int64 `json:"duration,omitempty"` - - // DurationType: Duration type for which an asset will be displayed. - // Applicable to the following creative types: all RICH_MEDIA. + // DurationType: Duration type for which an asset will be displayed. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DURATION_TYPE_AUTO" // "ASSET_DURATION_TYPE_NONE" // "ASSET_DURATION_TYPE_CUSTOM" DurationType string `json:"durationType,omitempty"` - - // ExpandedDimension: Detected expanded dimension for video asset. This - // is a read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ExpandedDimension: Detected expanded dimension for video asset. This is a + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO + // and all VPAID. ExpandedDimension *Size `json:"expandedDimension,omitempty"` - - // FileSize: File size associated with this creative asset. This is a - // read-only field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // FileSize: File size associated with this creative asset. This is a read-only + // field. Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. FileSize int64 `json:"fileSize,omitempty,string"` - // FlashVersion: Flash version of the asset. This is a read-only field. - // Applicable to the following creative types: FLASH_INPAGE, all - // RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Applicable to the following creative types: FLASH_INPAGE, all RICH_MEDIA, + // and all VPAID. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. FlashVersion int64 `json:"flashVersion,omitempty"` - - // FrameRate: Video frame rate for video asset in frames per second. - // This is a read-only field. Applicable to the following creative - // types: INSTREAM_VIDEO and all VPAID. + // FrameRate: Video frame rate for video asset in frames per second. This is a + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO + // and all VPAID. FrameRate float64 `json:"frameRate,omitempty"` - // HideFlashObjects: Whether to hide Flash objects flag for an asset. // Applicable to the following creative types: all RICH_MEDIA. HideFlashObjects bool `json:"hideFlashObjects,omitempty"` - - // HideSelectionBoxes: Whether to hide selection boxes flag for an - // asset. Applicable to the following creative types: all RICH_MEDIA. + // HideSelectionBoxes: Whether to hide selection boxes flag for an asset. + // Applicable to the following creative types: all RICH_MEDIA. HideSelectionBoxes bool `json:"hideSelectionBoxes,omitempty"` - - // HorizontallyLocked: Whether the asset is horizontally locked. This is - // a read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // HorizontallyLocked: Whether the asset is horizontally locked. This is a + // read-only field. Applicable to the following creative types: all RICH_MEDIA. HorizontallyLocked bool `json:"horizontallyLocked,omitempty"` - - // Id: Numeric ID of this creative asset. This is a required field and - // should not be modified. Applicable to all but the following creative - // types: all REDIRECT and TRACKING_TEXT. + // Id: Numeric ID of this creative asset. This is a required field and should + // not be modified. Applicable to all but the following creative types: all + // REDIRECT and TRACKING_TEXT. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of the asset. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - // MediaDuration: Detected duration for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // read-only field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. MediaDuration float64 `json:"mediaDuration,omitempty"` - - // MimeType: Detected MIME type for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // MimeType: Detected MIME type for audio or video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. MimeType string `json:"mimeType,omitempty"` - - // Offset: Offset position for an asset in collapsed mode. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA and all VPAID. Additionally, only applicable to assets - // whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or - // ASSET_DISPLAY_TYPE_PEEL_DOWN. + // Offset: Offset position for an asset in collapsed mode. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA and all + // VPAID. Additionally, only applicable to assets whose displayType is + // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. Offset *OffsetPosition `json:"offset,omitempty"` - - // Orientation: Orientation of video asset. This is a read-only, - // auto-generated field. + // Orientation: Orientation of video asset. This is a read-only, auto-generated + // field. // // Possible values: // "LANDSCAPE" // "PORTRAIT" // "SQUARE" Orientation string `json:"orientation,omitempty"` - - // OriginalBackup: Whether the backup asset is original or changed by - // the user in Campaign Manager. Applicable to the following creative - // types: all RICH_MEDIA. + // OriginalBackup: Whether the backup asset is original or changed by the user + // in Campaign Manager. Applicable to the following creative types: all + // RICH_MEDIA. OriginalBackup bool `json:"originalBackup,omitempty"` - // PoliteLoad: Whether this asset is used as a polite load asset. PoliteLoad bool `json:"politeLoad,omitempty"` - - // Position: Offset position for an asset. Applicable to the following - // creative types: all RICH_MEDIA. + // Position: Offset position for an asset. Applicable to the following creative + // types: all RICH_MEDIA. Position *OffsetPosition `json:"position,omitempty"` - - // PositionLeftUnit: Offset left unit for an asset. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // PositionLeftUnit: Offset left unit for an asset. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionLeftUnit string `json:"positionLeftUnit,omitempty"` - - // PositionTopUnit: Offset top unit for an asset. This is a read-only - // field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. - // Applicable to the following creative types: all RICH_MEDIA. + // PositionTopUnit: Offset top unit for an asset. This is a read-only field if + // the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the + // following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionTopUnit string `json:"positionTopUnit,omitempty"` - - // ProgressiveServingUrl: Progressive URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ProgressiveServingUrl: Progressive URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. ProgressiveServingUrl string `json:"progressiveServingUrl,omitempty"` - - // Pushdown: Whether the asset pushes down other content. Applicable to - // the following creative types: all RICH_MEDIA. Additionally, only - // applicable when the asset offsets are 0, the collapsedSize.width - // matches size.width, and the collapsedSize.height is less than - // size.height. + // Pushdown: Whether the asset pushes down other content. Applicable to the + // following creative types: all RICH_MEDIA. Additionally, only applicable when + // the asset offsets are 0, the collapsedSize.width matches size.width, and the + // collapsedSize.height is less than size.height. Pushdown bool `json:"pushdown,omitempty"` - - // PushdownDuration: Pushdown duration in seconds for an asset. - // Applicable to the following creative types: all - // RICH_MEDIA.Additionally, only applicable when the asset pushdown - // field is true, the offsets are 0, the collapsedSize.width matches - // size.width, and the collapsedSize.height is less than size.height. - // Acceptable values are 0 to 9.99, inclusive. + // PushdownDuration: Pushdown duration in seconds for an asset. Applicable to + // the following creative types: all RICH_MEDIA.Additionally, only applicable + // when the asset pushdown field is true, the offsets are 0, the + // collapsedSize.width matches size.width, and the collapsedSize.height is less + // than size.height. Acceptable values are 0 to 9.99, inclusive. PushdownDuration float64 `json:"pushdownDuration,omitempty"` - - // Role: Role of the asset in relation to creative. Applicable to all - // but the following creative types: all REDIRECT and TRACKING_TEXT. - // This is a required field. PRIMARY applies to DISPLAY, FLASH_INPAGE, - // HTML5_BANNER, IMAGE, DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may - // contain multiple primary assets), and all VPAID creatives. - // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, - // and all VPAID creatives. Applicable to DISPLAY when the primary asset - // type is not HTML_IMAGE. ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply - // to FLASH_INPAGE creatives. OTHER refers to assets from sources other - // than Campaign Manager, such as Studio uploaded assets, applicable to - // all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to videos - // uploaded by the user in Campaign Manager and is applicable to - // INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO - // refers to videos transcoded by Campaign Manager from PARENT_VIDEO - // assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO - // creatives. ALTERNATE_VIDEO refers to the Campaign Manager - // representation of child asset videos from Studio, and is applicable - // to VPAID_LINEAR_VIDEO creatives. These cannot be added or removed - // within Campaign Manager. For VPAID_LINEAR_VIDEO creatives, - // PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that are - // marked active serve as backup in case the VPAID creative cannot be + // Role: Role of the asset in relation to creative. Applicable to all but the + // following creative types: all REDIRECT and TRACKING_TEXT. This is a required + // field. PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary + // assets), and all VPAID creatives. BACKUP_IMAGE applies to FLASH_INPAGE, + // HTML5_BANNER, all RICH_MEDIA, and all VPAID creatives. Applicable to DISPLAY + // when the primary asset type is not HTML_IMAGE. ADDITIONAL_IMAGE and + // ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. OTHER refers to assets + // from sources other than Campaign Manager, such as Studio uploaded assets, + // applicable to all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to + // videos uploaded by the user in Campaign Manager and is applicable to + // INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO refers to + // videos transcoded by Campaign Manager from PARENT_VIDEO assets and is + // applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. + // ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset + // videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These + // cannot be added or removed within Campaign Manager. For VPAID_LINEAR_VIDEO + // creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that + // are marked active serve as backup in case the VPAID creative cannot be // served. Only PARENT_VIDEO assets can be added or removed for an - // INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. PARENT_AUDIO refers to - // audios uploaded by the user in Campaign Manager and is applicable to - // INSTREAM_AUDIO creatives. TRANSCODED_AUDIO refers to audios - // transcoded by Campaign Manager from PARENT_AUDIO assets and is - // applicable to INSTREAM_AUDIO creatives. + // INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. PARENT_AUDIO refers to audios + // uploaded by the user in Campaign Manager and is applicable to INSTREAM_AUDIO + // creatives. TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager + // from PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives. // // Possible values: // "PRIMARY" @@ -4535,44 +3744,36 @@ type CreativeAsset struct { // "PARENT_AUDIO" // "TRANSCODED_AUDIO" Role string `json:"role,omitempty"` - - // Size: Size associated with this creative asset. This is a required - // field when applicable; however for IMAGE and FLASH_INPAGE, creatives - // if left blank, this field will be automatically set using the actual - // size of the associated image asset. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, - // IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Size: Size associated with this creative asset. This is a required field + // when applicable; however for IMAGE and FLASH_INPAGE, creatives if left + // blank, this field will be automatically set using the actual size of the + // associated image asset. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all + // RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether the asset is SSL-compliant. This is a read-only - // field. Applicable to all but the following creative types: all - // REDIRECT and TRACKING_TEXT. + // SslCompliant: Whether the asset is SSL-compliant. This is a read-only field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTimeType: Initial wait time type before making the asset - // visible. Applicable to the following creative types: all RICH_MEDIA. + // StartTimeType: Initial wait time type before making the asset visible. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_START_TIME_TYPE_NONE" // "ASSET_START_TIME_TYPE_CUSTOM" StartTimeType string `json:"startTimeType,omitempty"` - - // StreamingServingUrl: Streaming URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // StreamingServingUrl: Streaming URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. StreamingServingUrl string `json:"streamingServingUrl,omitempty"` - - // Transparency: Whether the asset is transparent. Applicable to the - // following creative types: all RICH_MEDIA. Additionally, only - // applicable to HTML5 assets. + // Transparency: Whether the asset is transparent. Applicable to the following + // creative types: all RICH_MEDIA. Additionally, only applicable to HTML5 + // assets. Transparency bool `json:"transparency,omitempty"` - // VerticallyLocked: Whether the asset is vertically locked. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // read-only field. Applicable to the following creative types: all RICH_MEDIA. VerticallyLocked bool `json:"verticallyLocked,omitempty"` - // WindowMode: Window mode options for flash assets. Applicable to the // following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, // RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and @@ -4583,43 +3784,34 @@ type CreativeAsset struct { // "WINDOW" // "TRANSPARENT" WindowMode string `json:"windowMode,omitempty"` - - // ZIndex: zIndex value of an asset. Applicable to the following - // creative types: all RICH_MEDIA.Additionally, only applicable to - // assets whose displayType is NOT one of the following types: - // ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable - // values are -999999999 to 999999999, inclusive. + // ZIndex: zIndex value of an asset. Applicable to the following creative + // types: all RICH_MEDIA.Additionally, only applicable to assets whose + // displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or + // ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, + // inclusive. ZIndex int64 `json:"zIndex,omitempty"` - - // ZipFilename: File name of zip file. This is a read-only field. - // Applicable to the following creative types: HTML5_BANNER. + // ZipFilename: File name of zip file. This is a read-only field. Applicable to + // the following creative types: HTML5_BANNER. ZipFilename string `json:"zipFilename,omitempty"` - - // ZipFilesize: Size of zip file. This is a read-only field. Applicable - // to the following creative types: HTML5_BANNER. + // ZipFilesize: Size of zip file. This is a read-only field. Applicable to the + // following creative types: HTML5_BANNER. ZipFilesize string `json:"zipFilesize,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionScript3") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionScript3") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionScript3") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAsset) MarshalJSON() ([]byte, error) { +func (s CreativeAsset) MarshalJSON() ([]byte, error) { type NoMethod CreativeAsset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CreativeAsset) UnmarshalJSON(data []byte) error { @@ -4642,15 +3834,13 @@ func (s *CreativeAsset) UnmarshalJSON(data []byte) error { // CreativeAssetId: Creative Asset ID. type CreativeAssetId struct { - // Name: Name of the creative asset. This is a required field while - // inserting an asset. After insertion, this assetIdentifier is used to - // identify the uploaded asset. Characters in the name must be - // alphanumeric or one of the following: ".-_ ". Spaces are allowed. + // Name: Name of the creative asset. This is a required field while inserting + // an asset. After insertion, this assetIdentifier is used to identify the + // uploaded asset. Characters in the name must be alphanumeric or one of the + // following: ".-_ ". Spaces are allowed. Name string `json:"name,omitempty"` - - // Type: Type of asset to upload. This is a required field. FLASH and - // IMAGE are no longer supported for new uploads. All image assets - // should use HTML_IMAGE. + // Type: Type of asset to upload. This is a required field. FLASH and IMAGE are + // no longer supported for new uploads. All image assets should use HTML_IMAGE. // // Possible values: // "IMAGE" @@ -4660,48 +3850,37 @@ type CreativeAssetId struct { // "HTML_IMAGE" // "AUDIO" Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetId) MarshalJSON() ([]byte, error) { +func (s CreativeAssetId) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetMetadata: CreativeAssets contains properties of a -// creative asset file which will be uploaded or has already been -// uploaded. Refer to the creative sample code for how to upload assets -// and insert a creative. +// CreativeAssetMetadata: CreativeAssets contains properties of a creative +// asset file which will be uploaded or has already been uploaded. Refer to the +// creative sample code for how to upload assets and insert a creative. type CreativeAssetMetadata struct { // AssetIdentifier: ID of the creative asset. This is a required field. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // ClickTags: List of detected click tags for assets. This is a - // read-only, auto-generated field. This field is empty for a rich media - // asset. + // ClickTags: List of detected click tags for assets. This is a read-only, + // auto-generated field. This field is empty for a rich media asset. ClickTags []*ClickTag `json:"clickTags,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by Campaign Manager. Feature dependencies are features that a + // browser must be able to support in order to render your HTML5 creative + // correctly. This is a read-only, auto-generated field. // // Possible values: // "CSS_FONT_FACE" @@ -4771,32 +3950,25 @@ type CreativeAssetMetadata struct { // "SVG_FILTERS" // "SVG_FE_IMAGE" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // Id: Numeric ID of the asset. This is a read-only, auto-generated - // field. + // Id: Numeric ID of the asset. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the numeric ID of the asset. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the numeric ID of the asset. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeAssetMetadata". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeAssetMetadata". Kind string `json:"kind,omitempty"` - - // WarnedValidationRules: Rules validated during code generation that - // generated a warning. This is a read-only, auto-generated field. - // Possible values are: - "ADMOB_REFERENCED" - - // "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" - + // WarnedValidationRules: Rules validated during code generation that generated + // a warning. This is a read-only, auto-generated field. Possible values are: - + // "ADMOB_REFERENCED" - "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" - // "CLICK_TAG_HARD_CODED" - "CLICK_TAG_INVALID" - "CLICK_TAG_IN_GWD" - - // "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - - // "CLICK_TAG_NON_TOP_LEVEL" - "COMPONENT_UNSUPPORTED_DCM" - - // "ENABLER_UNSUPPORTED_METHOD_DCM" - "EXTERNAL_FILE_REFERENCED" - - // "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" - "GWD_PROPERTIES_INVALID" - // - "HTML5_FEATURE_UNSUPPORTED" - "LINKED_FILE_NOT_FOUND" - - // "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" - "NOT_SSL_COMPLIANT" - - // "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" - "SVG_INVALID" - - // "ZIP_INVALID" + // "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - "CLICK_TAG_NON_TOP_LEVEL" + // - "COMPONENT_UNSUPPORTED_DCM" - "ENABLER_UNSUPPORTED_METHOD_DCM" - + // "EXTERNAL_FILE_REFERENCED" - "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" - + // "GWD_PROPERTIES_INVALID" - "HTML5_FEATURE_UNSUPPORTED" - + // "LINKED_FILE_NOT_FOUND" - "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" - + // "NOT_SSL_COMPLIANT" - "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" - + // "SVG_INVALID" - "ZIP_INVALID" // // Possible values: // "CLICK_TAG_NON_TOP_LEVEL" @@ -4826,223 +3998,167 @@ type CreativeAssetMetadata struct { // "CLICK_TAG_IN_RICH_MEDIA" WarnedValidationRules []string `json:"warnedValidationRules,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AssetIdentifier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetIdentifier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssetIdentifier") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetMetadata) MarshalJSON() ([]byte, error) { +func (s CreativeAssetMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetSelection: Encapsulates the list of rules for asset -// selection and a default asset in case none of the rules match. -// Applicable to INSTREAM_VIDEO creatives. +// CreativeAssetSelection: Encapsulates the list of rules for asset selection +// and a default asset in case none of the rules match. Applicable to +// INSTREAM_VIDEO creatives. type CreativeAssetSelection struct { - // DefaultAssetId: A creativeAssets[].id. This should refer to one of - // the parent assets in this creative, and will be served if none of the - // rules match. This is a required field. + // DefaultAssetId: A creativeAssets[].id. This should refer to one of the + // parent assets in this creative, and will be served if none of the rules + // match. This is a required field. DefaultAssetId int64 `json:"defaultAssetId,omitempty,string"` - - // Rules: Rules determine which asset will be served to a viewer. Rules - // will be evaluated in the order in which they are stored in this list. - // This list must contain at least one rule. Applicable to - // INSTREAM_VIDEO creatives. + // Rules: Rules determine which asset will be served to a viewer. Rules will be + // evaluated in the order in which they are stored in this list. This list must + // contain at least one rule. Applicable to INSTREAM_VIDEO creatives. Rules []*Rule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultAssetId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultAssetId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DefaultAssetId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetSelection) MarshalJSON() ([]byte, error) { +func (s CreativeAssetSelection) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetSelection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeAssignment: Creative Assignment. type CreativeAssignment struct { - // Active: Whether this creative assignment is active. When true, the - // creative will be included in the ad's rotation. + // Active: Whether this creative assignment is active. When true, the creative + // will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // ApplyEventTags: Whether applicable event tags should fire when this - // creative assignment is rendered. If this value is unset when the ad - // is inserted or updated, it will default to true for all creative - // types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, - // and INSTREAM_VIDEO. + // ApplyEventTags: Whether applicable event tags should fire when this creative + // assignment is rendered. If this value is unset when the ad is inserted or + // updated, it will default to true for all creative types EXCEPT for + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. ApplyEventTags bool `json:"applyEventTags,omitempty"` - // ClickThroughUrl: Click-through URL of the creative assignment. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CompanionCreativeOverrides: Companion creative overrides for this - // creative assignment. Applicable to video ads. + // CompanionCreativeOverrides: Companion creative overrides for this creative + // assignment. Applicable to video ads. CompanionCreativeOverrides []*CompanionClickThroughOverride `json:"companionCreativeOverrides,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this - // creative assignment. Only one assignment per creative group number is - // allowed for a maximum of two assignments. + // CreativeGroupAssignments: Creative group assignments for this creative + // assignment. Only one assignment per creative group number is allowed for a + // maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeId: ID of the creative to be assigned. This is a required - // field. + // CreativeId: ID of the creative to be assigned. This is a required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // CreativeIdDimensionValue: Dimension value for the ID of the creative. - // This is a read-only, auto-generated field. + // CreativeIdDimensionValue: Dimension value for the ID of the creative. This + // is a read-only, auto-generated field. CreativeIdDimensionValue *DimensionValue `json:"creativeIdDimensionValue,omitempty"` - - EndTime string `json:"endTime,omitempty"` - + EndTime string `json:"endTime,omitempty"` // RichMediaExitOverrides: Rich media exit overrides for this creative - // assignment. Applicable when the creative type is any of the - // following: - DISPLAY - RICH_MEDIA_INPAGE - RICH_MEDIA_INPAGE_FLOATING - // - RICH_MEDIA_IM_EXPAND - RICH_MEDIA_EXPANDING - - // RICH_MEDIA_INTERSTITIAL_FLOAT - RICH_MEDIA_MOBILE_IN_APP - - // RICH_MEDIA_MULTI_FLOATING - RICH_MEDIA_PEEL_DOWN - VPAID_LINEAR - - // VPAID_NON_LINEAR + // assignment. Applicable when the creative type is any of the following: - + // DISPLAY - RICH_MEDIA_INPAGE - RICH_MEDIA_INPAGE_FLOATING - + // RICH_MEDIA_IM_EXPAND - RICH_MEDIA_EXPANDING - RICH_MEDIA_INTERSTITIAL_FLOAT + // - RICH_MEDIA_MOBILE_IN_APP - RICH_MEDIA_MULTI_FLOATING - + // RICH_MEDIA_PEEL_DOWN - VPAID_LINEAR - VPAID_NON_LINEAR RichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"` - - // Sequence: Sequence number of the creative assignment, applicable when - // the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable - // values are 1 to 65535, inclusive. + // Sequence: Sequence number of the creative assignment, applicable when the + // rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 + // to 65535, inclusive. Sequence int64 `json:"sequence,omitempty"` - - // SslCompliant: Whether the creative to be assigned is SSL-compliant. - // This is a read-only field that is auto-generated when the ad is - // inserted or updated. - SslCompliant bool `json:"sslCompliant,omitempty"` - - StartTime string `json:"startTime,omitempty"` - - // Weight: Weight of the creative assignment, applicable when the - // rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater - // than or equal to 1. + // SslCompliant: Whether the creative to be assigned is SSL-compliant. This is + // a read-only field that is auto-generated when the ad is inserted or updated. + SslCompliant bool `json:"sslCompliant,omitempty"` + StartTime string `json:"startTime,omitempty"` + // Weight: Weight of the creative assignment, applicable when the rotation type + // is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeClickThroughUrl: Click-through URL type CreativeClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - If landingPageId is specified then that - // landing page's URL is assigned to this field. - Otherwise, the - // customClickThroughUrl is assigned to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: - If landingPageId is specified then that landing page's URL is + // assigned to this field. - Otherwise, the customClickThroughUrl is assigned + // to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the // landingPageId field is left unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - // LandingPageId: ID of the landing page for the click-through URL. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod CreativeClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeCustomEvent: Creative Custom Event. type CreativeCustomEvent struct { - // AdvertiserCustomEventId: Unique ID of this event used by Reporting - // and Data Transfer. This is a read-only field. + // AdvertiserCustomEventId: Unique ID of this event used by Reporting and Data + // Transfer. This is a read-only field. AdvertiserCustomEventId int64 `json:"advertiserCustomEventId,omitempty,string"` - // AdvertiserCustomEventName: User-entered name for the event. AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"` - - // AdvertiserCustomEventType: Type of the event. This is a read-only - // field. + // AdvertiserCustomEventType: Type of the event. This is a read-only field. // // Possible values: // "ADVERTISER_EVENT_TIMER" // "ADVERTISER_EVENT_EXIT" // "ADVERTISER_EVENT_COUNTER" AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"` - - // ArtworkLabel: Artwork label column, used to link events in Campaign - // Manager back to events in Studio. This is a required field and should - // not be modified after insertion. + // ArtworkLabel: Artwork label column, used to link events in Campaign Manager + // back to events in Studio. This is a required field and should not be + // modified after insertion. ArtworkLabel string `json:"artworkLabel,omitempty"` - - // ArtworkType: Artwork type used by the creative.This is a read-only - // field. + // ArtworkType: Artwork type used by the creative.This is a read-only field. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -5050,19 +4166,15 @@ type CreativeCustomEvent struct { // "ARTWORK_TYPE_MIXED" // "ARTWORK_TYPE_IMAGE" ArtworkType string `json:"artworkType,omitempty"` - - // ExitClickThroughUrl: Exit click-through URL for the event. This field - // is used only for exit events. + // ExitClickThroughUrl: Exit click-through URL for the event. This field is + // used only for exit events. ExitClickThroughUrl *CreativeClickThroughUrl `json:"exitClickThroughUrl,omitempty"` - - // Id: ID of this event. This is a required field and should not be - // modified after insertion. + // Id: ID of this event. This is a required field and should not be modified + // after insertion. Id int64 `json:"id,omitempty,string"` - - // PopupWindowProperties: Properties for rich media popup windows. This - // field is used only for exit events. + // PopupWindowProperties: Properties for rich media popup windows. This field + // is used only for exit events. PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"` - // TargetType: Target type used by the event. // // Possible values: @@ -5072,406 +4184,306 @@ type CreativeCustomEvent struct { // "TARGET_PARENT" // "TARGET_POPUP" TargetType string `json:"targetType,omitempty"` - - // VideoReportingId: Video reporting ID, used to differentiate multiple - // videos in a single creative. This is a read-only field. + // VideoReportingId: Video reporting ID, used to differentiate multiple videos + // in a single creative. This is a read-only field. VideoReportingId string `json:"videoReportingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdvertiserCustomEventId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeCustomEvent) MarshalJSON() ([]byte, error) { +func (s CreativeCustomEvent) MarshalJSON() ([]byte, error) { type NoMethod CreativeCustomEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeField: Contains properties of a creative field. type CreativeField struct { - // AccountId: Account ID of this creative field. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative field. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative field. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative field. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Id: ID of this creative field. This is a read-only, auto-generated - // field. + // Id: ID of this creative field. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeField". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeField". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative field. This is a required field and must - // be less than 256 characters long and unique among creative fields of - // the same advertiser. + // Name: Name of this creative field. This is a required field and must be less + // than 256 characters long and unique among creative fields of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative field. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative field. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeField) MarshalJSON() ([]byte, error) { +func (s CreativeField) MarshalJSON() ([]byte, error) { type NoMethod CreativeField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldAssignment: Creative Field Assignment. type CreativeFieldAssignment struct { // CreativeFieldId: ID of the creative field. CreativeFieldId int64 `json:"creativeFieldId,omitempty,string"` - // CreativeFieldValueId: ID of the creative field value. CreativeFieldValueId int64 `json:"creativeFieldValueId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CreativeFieldId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeFieldAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValue: Contains properties of a creative field value. type CreativeFieldValue struct { - // Id: ID of this creative field value. This is a read-only, - // auto-generated field. + // Id: ID of this creative field value. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValue". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValue". Kind string `json:"kind,omitempty"` - - // Value: Value of this creative field value. It needs to be less than - // 256 characters in length and unique per creative field. + // Value: Value of this creative field value. It needs to be less than 256 + // characters in length and unique per creative field. Value string `json:"value,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValue) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValue) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValuesListResponse: Creative Field Value List Response type CreativeFieldValuesListResponse struct { // CreativeFieldValues: Creative field value collection. CreativeFieldValues []*CreativeFieldValue `json:"creativeFieldValues,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValuesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValuesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValuesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldsListResponse: Creative Field List Response type CreativeFieldsListResponse struct { // CreativeFields: Creative field collection. CreativeFields []*CreativeField `json:"creativeFields,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeFields") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFields") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFields") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroup: Contains properties of a creative group. type CreativeGroup struct { - // AccountId: Account ID of this creative group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative group. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative group. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // GroupNumber: Subgroup of the creative group. Assign your creative - // groups to a subgroup in order to filter or manage them more easily. - // This field is required on insertion and is read-only after insertion. - // Acceptable values are 1 to 2, inclusive. + // GroupNumber: Subgroup of the creative group. Assign your creative groups to + // a subgroup in order to filter or manage them more easily. This field is + // required on insertion and is read-only after insertion. Acceptable values + // are 1 to 2, inclusive. GroupNumber int64 `json:"groupNumber,omitempty"` - - // Id: ID of this creative group. This is a read-only, auto-generated - // field. + // Id: ID of this creative group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative group. This is a required field and must - // be less than 256 characters long and unique among creative groups of - // the same advertiser. + // Name: Name of this creative group. This is a required field and must be less + // than 256 characters long and unique among creative groups of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroup) MarshalJSON() ([]byte, error) { +func (s CreativeGroup) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupAssignment: Creative Group Assignment. type CreativeGroupAssignment struct { // CreativeGroupId: ID of the creative group to be assigned. CreativeGroupId int64 `json:"creativeGroupId,omitempty,string"` - - // CreativeGroupNumber: Creative group number of the creative group - // assignment. + // CreativeGroupNumber: Creative group number of the creative group assignment. // // Possible values: // "CREATIVE_GROUP_ONE" // "CREATIVE_GROUP_TWO" CreativeGroupNumber string `json:"creativeGroupNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreativeGroupId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroupId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroupId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeGroupAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupsListResponse: Creative Group List Response type CreativeGroupsListResponse struct { // CreativeGroups: Creative group collection. CreativeGroups []*CreativeGroup `json:"creativeGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeGroups") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeOptimizationConfiguration: Creative optimization settings. type CreativeOptimizationConfiguration struct { - // Id: ID of this creative optimization config. This field is - // auto-generated when the campaign is inserted or updated. It can be - // null for existing campaigns. + // Id: ID of this creative optimization config. This field is auto-generated + // when the campaign is inserted or updated. It can be null for existing + // campaigns. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this creative optimization config. This is a required - // field and must be less than 129 characters long. + // Name: Name of this creative optimization config. This is a required field + // and must be less than 129 characters long. Name string `json:"name,omitempty"` - - // OptimizationActivitys: List of optimization activities associated - // with this configuration. + // OptimizationActivitys: List of optimization activities associated with this + // configuration. OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"` - // OptimizationModel: Optimization model for this configuration. // // Possible values: @@ -5481,52 +4493,42 @@ type CreativeOptimizationConfiguration struct { // "POST_CLICK_AND_IMPRESSION" // "VIDEO_COMPLETION" OptimizationModel string `json:"optimizationModel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { +func (s CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { type NoMethod CreativeOptimizationConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeRotation: Creative Rotation. type CreativeRotation struct { // CreativeAssignments: Creative assignments in this creative rotation. CreativeAssignments []*CreativeAssignment `json:"creativeAssignments,omitempty"` - - // CreativeOptimizationConfigurationId: Creative optimization - // configuration that is used by this ad. It should refer to one of the - // existing optimization configurations in the ad's campaign. If it is - // unset or set to 0, then the campaign's default optimization - // configuration will be used for this ad. + // CreativeOptimizationConfigurationId: Creative optimization configuration + // that is used by this ad. It should refer to one of the existing optimization + // configurations in the ad's campaign. If it is unset or set to 0, then the + // campaign's default optimization configuration will be used for this ad. CreativeOptimizationConfigurationId int64 `json:"creativeOptimizationConfigurationId,omitempty,string"` - - // Type: Type of creative rotation. Can be used to specify whether to - // use sequential or random rotation. + // Type: Type of creative rotation. Can be used to specify whether to use + // sequential or random rotation. // // Possible values: // "CREATIVE_ROTATION_TYPE_SEQUENTIAL" // "CREATIVE_ROTATION_TYPE_RANDOM" Type string `json:"type,omitempty"` - - // WeightCalculationStrategy: Strategy for calculating weights. Used - // with CREATIVE_ROTATION_TYPE_RANDOM. + // WeightCalculationStrategy: Strategy for calculating weights. Used with + // CREATIVE_ROTATION_TYPE_RANDOM. // // Possible values: // "WEIGHT_STRATEGY_EQUAL" @@ -5534,128 +4536,98 @@ type CreativeRotation struct { // "WEIGHT_STRATEGY_HIGHEST_CTR" // "WEIGHT_STRATEGY_OPTIMIZED" WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreativeAssignments") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeAssignments") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeAssignments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeAssignments") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeRotation) MarshalJSON() ([]byte, error) { +func (s CreativeRotation) MarshalJSON() ([]byte, error) { type NoMethod CreativeRotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativesListResponse: Creative List Response type CreativesListResponse struct { // Creatives: Creative collection. Creatives []*Creative `json:"creatives,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Creatives") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Creatives") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Creatives") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CrossDimensionReachReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type -// "CROSS_DIMENSION_REACH". +// compatible to be selected for a report of type "CROSS_DIMENSION_REACH". type CrossDimensionReachReportCompatibleFields struct { - // Breakdown: Dimensions which are compatible to be selected in the - // "breakdown" section of the report. + // Breakdown: Dimensions which are compatible to be selected in the "breakdown" + // section of the report. Breakdown []*Dimension `json:"breakdown,omitempty"` - - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#crossDimensionReachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // OverlapMetrics: Metrics which are compatible to be selected in the // "overlapMetricNames" section of the report. OverlapMetrics []*Metric `json:"overlapMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CrossDimensionReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomFloodlightVariable: A custom floodlight variable. This field -// may only be used when calling batchinsert; it is not supported by -// batchupdate. +// CustomFloodlightVariable: A custom floodlight variable. This field may only +// be used when calling batchinsert; it is not supported by batchupdate. type CustomFloodlightVariable struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customFloodlightVariable". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customFloodlightVariable". Kind string `json:"kind,omitempty"` - - // Type: The type of custom floodlight variable to supply a value for. - // These map to the "u[1-20]=" in the tags. + // Type: The type of custom floodlight variable to supply a value for. These + // map to the "u[1-20]=" in the tags. // // Possible values: // "U1" @@ -5759,155 +4731,120 @@ type CustomFloodlightVariable struct { // "U99" // "U100" Type string `json:"type,omitempty"` - - // Value: The value of the custom floodlight variable. The length of - // string must not exceed 100 characters. + // Value: The value of the custom floodlight variable. The length of string + // must not exceed 100 characters. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomFloodlightVariable) MarshalJSON() ([]byte, error) { +func (s CustomFloodlightVariable) MarshalJSON() ([]byte, error) { type NoMethod CustomFloodlightVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomRichMediaEvents: Represents a Custom Rich Media Events group. type CustomRichMediaEvents struct { - // FilteredEventIds: List of custom rich media event IDs. Dimension - // values must be all of type dfa:richMediaEventTypeIdAndName. + // FilteredEventIds: List of custom rich media event IDs. Dimension values must + // be all of type dfa:richMediaEventTypeIdAndName. FilteredEventIds []*DimensionValue `json:"filteredEventIds,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#customRichMediaEvents. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilteredEventIds") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FilteredEventIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FilteredEventIds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomRichMediaEvents) MarshalJSON() ([]byte, error) { +func (s CustomRichMediaEvents) MarshalJSON() ([]byte, error) { type NoMethod CustomRichMediaEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomViewabilityMetric: Custom Viewability Metric type CustomViewabilityMetric struct { // Configuration: Configuration of the custom viewability metric. Configuration *CustomViewabilityMetricConfiguration `json:"configuration,omitempty"` - // Id: ID of the custom viewability metric. Id int64 `json:"id,omitempty,string"` - // Name: Name of the custom viewability metric. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Configuration") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Configuration") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Configuration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomViewabilityMetric) MarshalJSON() ([]byte, error) { +func (s CustomViewabilityMetric) MarshalJSON() ([]byte, error) { type NoMethod CustomViewabilityMetric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomViewabilityMetricConfiguration: The attributes, like playtime -// and percent onscreen, that define the Custom Viewability Metric. +// CustomViewabilityMetricConfiguration: The attributes, like playtime and +// percent onscreen, that define the Custom Viewability Metric. type CustomViewabilityMetricConfiguration struct { // Audible: Whether the video must be audible to count an impression. Audible bool `json:"audible,omitempty"` - - // TimeMillis: The time in milliseconds the video must play for the - // Custom Viewability Metric to count an impression. If both this and - // timePercent are specified, the earlier of the two will be used. + // TimeMillis: The time in milliseconds the video must play for the Custom + // Viewability Metric to count an impression. If both this and timePercent are + // specified, the earlier of the two will be used. TimeMillis int64 `json:"timeMillis,omitempty"` - // TimePercent: The percentage of video that must play for the Custom - // Viewability Metric to count an impression. If both this and - // timeMillis are specified, the earlier of the two will be used. + // Viewability Metric to count an impression. If both this and timeMillis are + // specified, the earlier of the two will be used. TimePercent int64 `json:"timePercent,omitempty"` - - // ViewabilityPercent: The percentage of video that must be on screen - // for the Custom Viewability Metric to count an impression. + // ViewabilityPercent: The percentage of video that must be on screen for the + // Custom Viewability Metric to count an impression. ViewabilityPercent int64 `json:"viewabilityPercent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Audible") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Audible") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audible") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audible") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomViewabilityMetricConfiguration) MarshalJSON() ([]byte, error) { +func (s CustomViewabilityMetricConfiguration) MarshalJSON() ([]byte, error) { type NoMethod CustomViewabilityMetricConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DateRange: Represents a date range. type DateRange struct { EndDate string `json:"endDate,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#dateRange. + // Kind: The kind of resource this is, in this case dfareporting#dateRange. Kind string `json:"kind,omitempty"` - - // RelativeDateRange: The date range relative to the date of when the - // report is run. + // RelativeDateRange: The date range relative to the date of when the report is + // run. // // Possible values: // "TODAY" @@ -5928,37 +4865,30 @@ type DateRange struct { // "LAST_14_DAYS" // "LAST_60_DAYS" RelativeDateRange string `json:"relativeDateRange,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + StartDate string `json:"startDate,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DateRange) MarshalJSON() ([]byte, error) { +func (s DateRange) MarshalJSON() ([]byte, error) { type NoMethod DateRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DayPartTargeting: Day Part Targeting. type DayPartTargeting struct { - // DaysOfWeek: Days of the week when the ad will serve. Acceptable - // values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - - // "THURSDAY" - "FRIDAY" - "SATURDAY" + // DaysOfWeek: Days of the week when the ad will serve. Acceptable values are: + // - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - + // "SATURDAY" // // Possible values: // "MONDAY" @@ -5969,146 +4899,114 @@ type DayPartTargeting struct { // "SATURDAY" // "SUNDAY" DaysOfWeek []string `json:"daysOfWeek,omitempty"` - - // HoursOfDay: Hours of the day when the ad will serve, where 0 is - // midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with - // days of week, in which case the ad would serve during these hours on - // the specified days. For example if Monday, Wednesday, Friday are the - // days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is - // specified, the ad would serve Monday, Wednesdays, and Fridays at - // 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. + // HoursOfDay: Hours of the day when the ad will serve, where 0 is midnight to + // 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in + // which case the ad would serve during these hours on the specified days. For + // example if Monday, Wednesday, Friday are the days of week specified and + // 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, + // Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, + // inclusive. HoursOfDay []int64 `json:"hoursOfDay,omitempty"` - - // UserLocalTime: Whether or not to use the user's local time. If false, - // the America/New York time zone applies. + // UserLocalTime: Whether or not to use the user's local time. If false, the + // America/New York time zone applies. UserLocalTime bool `json:"userLocalTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "DaysOfWeek") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DaysOfWeek") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DaysOfWeek") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DayPartTargeting) MarshalJSON() ([]byte, error) { +func (s DayPartTargeting) MarshalJSON() ([]byte, error) { type NoMethod DayPartTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeepLink: Contains information about a landing page deep link. type DeepLink struct { // AppUrl: The URL of the mobile app being linked to. AppUrl string `json:"appUrl,omitempty"` - - // FallbackUrl: The fallback URL. This URL will be served to users who - // do not have the mobile app installed. + // FallbackUrl: The fallback URL. This URL will be served to users who do not + // have the mobile app installed. FallbackUrl string `json:"fallbackUrl,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#deepLink". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#deepLink". Kind string `json:"kind,omitempty"` - // MobileApp: The mobile app targeted by this deep link. MobileApp *MobileApp `json:"mobileApp,omitempty"` - - // RemarketingListIds: Ads served to users on these remarketing lists - // will use this deep link. Applicable when mobileApp.directory is - // APPLE_APP_STORE. + // RemarketingListIds: Ads served to users on these remarketing lists will use + // this deep link. Applicable when mobileApp.directory is APPLE_APP_STORE. RemarketingListIds googleapi.Int64s `json:"remarketingListIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AppUrl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppUrl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeepLink) MarshalJSON() ([]byte, error) { +func (s DeepLink) MarshalJSON() ([]byte, error) { type NoMethod DeepLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DefaultClickThroughEventTagProperties: Properties of inheriting and -// overriding the default click-through event tag. A campaign may -// override the event tag defined at the advertiser level, and an ad may -// also override the campaign's setting further. +// overriding the default click-through event tag. A campaign may override the +// event tag defined at the advertiser level, and an ad may also override the +// campaign's setting further. type DefaultClickThroughEventTagProperties struct { - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply to all ads in this entity's scope. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply to + // all ads in this entity's scope. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // OverrideInheritedEventTag: Whether this entity should override the - // inherited default click-through event tag with its own defined value. + // OverrideInheritedEventTag: Whether this entity should override the inherited + // default click-through event tag with its own defined value. OverrideInheritedEventTag bool `json:"overrideInheritedEventTag,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "DefaultClickThroughEventTagId") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultClickThroughEventTagId") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { +func (s DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { type NoMethod DefaultClickThroughEventTagProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeliverySchedule: Delivery Schedule. type DeliverySchedule struct { - // FrequencyCap: Limit on the number of times an individual user can be - // served the ad within a specified period of time. + // FrequencyCap: Limit on the number of times an individual user can be served + // the ad within a specified period of time. FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"` - - // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad - // will not serve after the end date and time. Otherwise the ad will - // continue to be served until it has reached its delivery goals. + // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad will not + // serve after the end date and time. Otherwise the ad will continue to be + // served until it has reached its delivery goals. HardCutoff bool `json:"hardCutoff,omitempty"` - - // ImpressionRatio: Impression ratio for this ad. This ratio determines - // how often each ad is served relative to the others. For example, if - // ad A has an impression ratio of 1 and ad B has an impression ratio of - // 3, then Campaign Manager will serve ad B three times as often as ad - // A. Acceptable values are 1 to 10, inclusive. + // ImpressionRatio: Impression ratio for this ad. This ratio determines how + // often each ad is served relative to the others. For example, if ad A has an + // impression ratio of 1 and ad B has an impression ratio of 3, then Campaign + // Manager will serve ad B three times as often as ad A. Acceptable values are + // 1 to 10, inclusive. ImpressionRatio int64 `json:"impressionRatio,omitempty,string"` - - // Priority: Serving priority of an ad, with respect to other ads. The - // lower the priority number, the greater the priority with which it is - // served. + // Priority: Serving priority of an ad, with respect to other ads. The lower + // the priority number, the greater the priority with which it is served. // // Possible values: // "AD_PRIORITY_01" @@ -6128,162 +5026,124 @@ type DeliverySchedule struct { // "AD_PRIORITY_15" // "AD_PRIORITY_16" Priority string `json:"priority,omitempty"` - // ForceSendFields is a list of field names (e.g. "FrequencyCap") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FrequencyCap") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FrequencyCap") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeliverySchedule) MarshalJSON() ([]byte, error) { +func (s DeliverySchedule) MarshalJSON() ([]byte, error) { type NoMethod DeliverySchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DfpSettings: Google Ad Manager Settings type DfpSettings struct { // DfpNetworkCode: Ad Manager network code for this directory site. DfpNetworkCode string `json:"dfpNetworkCode,omitempty"` - // DfpNetworkName: Ad Manager network name for this directory site. DfpNetworkName string `json:"dfpNetworkName,omitempty"` - // ProgrammaticPlacementAccepted: Whether this directory site accepts // programmatic placements. ProgrammaticPlacementAccepted bool `json:"programmaticPlacementAccepted,omitempty"` - - // PubPaidPlacementAccepted: Whether this directory site accepts - // publisher-paid tags. + // PubPaidPlacementAccepted: Whether this directory site accepts publisher-paid + // tags. PubPaidPlacementAccepted bool `json:"pubPaidPlacementAccepted,omitempty"` - - // PublisherPortalOnly: Whether this directory site is available only - // via Publisher Portal. + // PublisherPortalOnly: Whether this directory site is available only via + // Publisher Portal. PublisherPortalOnly bool `json:"publisherPortalOnly,omitempty"` - // ForceSendFields is a list of field names (e.g. "DfpNetworkCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DfpNetworkCode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DfpNetworkCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DfpSettings) MarshalJSON() ([]byte, error) { +func (s DfpSettings) MarshalJSON() ([]byte, error) { type NoMethod DfpSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Dimension: Represents a dimension. type Dimension struct { - // Kind: The kind of resource this is, in this case - // dfareporting#dimension. + // Kind: The kind of resource this is, in this case dfareporting#dimension. Kind string `json:"kind,omitempty"` - // Name: The dimension name, e.g. dfa:advertiser Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Dimension) MarshalJSON() ([]byte, error) { +func (s Dimension) MarshalJSON() ([]byte, error) { type NoMethod Dimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionFilter: Represents a dimension filter. type DimensionFilter struct { // DimensionName: The name of the dimension to filter. DimensionName string `json:"dimensionName,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionFilter. Kind string `json:"kind,omitempty"` - // Value: The value of the dimension to filter. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionFilter) MarshalJSON() ([]byte, error) { +func (s DimensionFilter) MarshalJSON() ([]byte, error) { type NoMethod DimensionFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValue: Represents a DimensionValue resource. type DimensionValue struct { // DimensionName: The name of the dimension. DimensionName string `json:"dimensionName,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID associated with the value if available. Id string `json:"id,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionValue. Kind string `json:"kind,omitempty"` - - // MatchType: Determines how the 'value' field is matched when - // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. + // MatchType: Determines how the 'value' field is matched when filtering. If + // not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is + // allowed as a placeholder for variable length character sequences, and it can + // be escaped with a backslash. Note, only paid search dimensions + // ('dfa:paidSearch*') allow a matchType other than EXACT. // // Possible values: // "EXACT" @@ -6291,76 +5151,59 @@ type DimensionValue struct { // "CONTAINS" // "WILDCARD_EXPRESSION" MatchType string `json:"matchType,omitempty"` - // Value: The value of the dimension. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValue) MarshalJSON() ([]byte, error) { +func (s DimensionValue) MarshalJSON() ([]byte, error) { type NoMethod DimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueList: Represents the list of DimensionValue resources. type DimensionValueList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The dimension values returned in this response. Items []*DimensionValue `json:"items,omitempty"` - // Kind: The kind of list this is, in this case // dfareporting#dimensionValueList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through dimension - // values. To retrieve the next page of results, set the next request's - // "pageToken" to the value of this field. The page token is only valid - // for a limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through dimension values. To + // retrieve the next page of results, set the next request's "pageToken" to the + // value of this field. The page token is only valid for a limited amount of + // time and should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueList) MarshalJSON() ([]byte, error) { +func (s DimensionValueList) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueRequest: Represents a DimensionValuesRequest. @@ -6368,60 +5211,46 @@ type DimensionValueRequest struct { // DimensionName: The name of the dimension for which values should be // requested. DimensionName string `json:"dimensionName,omitempty"` - - EndDate string `json:"endDate,omitempty"` - - // Filters: The list of filters by which to filter values. The filters - // are ANDed. + EndDate string `json:"endDate,omitempty"` + // Filters: The list of filters by which to filter values. The filters are + // ANDed. Filters []*DimensionFilter `json:"filters,omitempty"` - // Kind: The kind of request this is, in this case // dfareporting#dimensionValueRequest . - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` StartDate string `json:"startDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueRequest) MarshalJSON() ([]byte, error) { +func (s DimensionValueRequest) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySite: DirectorySites contains properties of a website from -// the Site Directory. Sites need to be added to an account via the -// Sites resource before they can be assigned to a placement. +// DirectorySite: DirectorySites contains properties of a website from the Site +// Directory. Sites need to be added to an account via the Sites resource +// before they can be assigned to a placement. type DirectorySite struct { // Active: Whether this directory site is active. Active bool `json:"active,omitempty"` - - // Id: ID of this directory site. This is a read-only, auto-generated - // field. + // Id: ID of this directory site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this directory site. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this directory site. This is + // a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // InpageTagFormats: Tag types for regular placements. Acceptable values - // are: - "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - - // "INTERNAL_REDIRECT_INPAGE" - "JAVASCRIPT_INPAGE" + // InpageTagFormats: Tag types for regular placements. Acceptable values are: - + // "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - "INTERNAL_REDIRECT_INPAGE" - + // "JAVASCRIPT_INPAGE" // // Possible values: // "STANDARD" @@ -6429,9 +5258,8 @@ type DirectorySite struct { // "INTERNAL_REDIRECT_INPAGE" // "JAVASCRIPT_INPAGE" InpageTagFormats []string `json:"inpageTagFormats,omitempty"` - - // InterstitialTagFormats: Tag types for interstitial placements. - // Acceptable values are: - "IFRAME_JAVASCRIPT_INTERSTITIAL" - + // InterstitialTagFormats: Tag types for interstitial placements. Acceptable + // values are: - "IFRAME_JAVASCRIPT_INTERSTITIAL" - // "INTERNAL_REDIRECT_INTERSTITIAL" - "JAVASCRIPT_INTERSTITIAL" // // Possible values: @@ -6439,151 +5267,115 @@ type DirectorySite struct { // "INTERNAL_REDIRECT_INTERSTITIAL" // "JAVASCRIPT_INTERSTITIAL" InterstitialTagFormats []string `json:"interstitialTagFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySite". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySite". Kind string `json:"kind,omitempty"` - // Name: Name of this directory site. Name string `json:"name,omitempty"` - // Settings: Directory site settings. Settings *DirectorySiteSettings `json:"settings,omitempty"` - // Url: URL of this directory site. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySite) MarshalJSON() ([]byte, error) { +func (s DirectorySite) MarshalJSON() ([]byte, error) { type NoMethod DirectorySite - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySiteSettings: Directory Site Settings type DirectorySiteSettings struct { - // ActiveViewOptOut: Whether this directory site has disabled active - // view creatives. + // ActiveViewOptOut: Whether this directory site has disabled active view + // creatives. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - // DfpSettings: Directory site Ad Manager settings. DfpSettings *DfpSettings `json:"dfpSettings,omitempty"` - - // InstreamVideoPlacementAccepted: Whether this site accepts in-stream - // video ads. - InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` - - // InterstitialPlacementAccepted: Whether this site accepts interstitial + // InstreamVideoPlacementAccepted: Whether this site accepts in-stream video // ads. + InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` + // InterstitialPlacementAccepted: Whether this site accepts interstitial ads. InterstitialPlacementAccepted bool `json:"interstitialPlacementAccepted,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteSettings) MarshalJSON() ([]byte, error) { +func (s DirectorySiteSettings) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySitesListResponse: Directory Site List Response type DirectorySitesListResponse struct { // DirectorySites: Directory site collection. DirectorySites []*DirectorySite `json:"directorySites,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DirectorySites") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DirectorySites") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DirectorySites") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySitesListResponse) MarshalJSON() ([]byte, error) { +func (s DirectorySitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod DirectorySitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DynamicTargetingKey: Contains properties of a dynamic targeting key. -// Dynamic targeting keys are unique, user-friendly labels, created at -// the advertiser level in DCM, that can be assigned to ads, creatives, -// and placements and used for targeting with Studio dynamic creatives. -// Use these labels instead of numeric Campaign Manager IDs (such as -// placement IDs) to save time and avoid errors in your dynamic feeds. +// DynamicTargetingKey: Contains properties of a dynamic targeting key. Dynamic +// targeting keys are unique, user-friendly labels, created at the advertiser +// level in DCM, that can be assigned to ads, creatives, and placements and +// used for targeting with Studio dynamic creatives. Use these labels instead +// of numeric Campaign Manager IDs (such as placement IDs) to save time and +// avoid errors in your dynamic feeds. type DynamicTargetingKey struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKey". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKey". Kind string `json:"kind,omitempty"` - - // Name: Name of this dynamic targeting key. This is a required field. - // Must be less than 256 characters long and cannot contain commas. All - // characters are converted to lowercase. + // Name: Name of this dynamic targeting key. This is a required field. Must be + // less than 256 characters long and cannot contain commas. All characters are + // converted to lowercase. Name string `json:"name,omitempty"` - - // ObjectId: ID of the object of this dynamic targeting key. This is a - // required field. + // ObjectId: ID of the object of this dynamic targeting key. This is a required + // field. ObjectId int64 `json:"objectId,omitempty,string"` - - // ObjectType: Type of the object of this dynamic targeting key. This is - // a required field. + // ObjectType: Type of the object of this dynamic targeting key. This is a + // required field. // // Possible values: // "OBJECT_ADVERTISER" @@ -6592,69 +5384,52 @@ type DynamicTargetingKey struct { // "OBJECT_PLACEMENT" ObjectType string `json:"objectType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKey) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKey) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DynamicTargetingKeysListResponse: Dynamic Targeting Key List Response type DynamicTargetingKeysListResponse struct { // DynamicTargetingKeys: Dynamic targeting key collection. DynamicTargetingKeys []*DynamicTargetingKey `json:"dynamicTargetingKeys,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKeysListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKeysListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DynamicTargetingKeys") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTargetingKeys") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKeysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EncryptionInfo: A description of how user IDs are encrypted. @@ -6662,9 +5437,8 @@ type EncryptionInfo struct { // EncryptionEntityId: The encryption entity ID. This should match the // encryption configuration for ad serving or Data Transfer. EncryptionEntityId int64 `json:"encryptionEntityId,omitempty,string"` - - // EncryptionEntityType: The encryption entity type. This should match - // the encryption configuration for ad serving or Data Transfer. + // EncryptionEntityType: The encryption entity type. This should match the + // encryption configuration for ad serving or Data Transfer. // // Possible values: // "ENCRYPTION_ENTITY_TYPE_UNKNOWN" @@ -6675,272 +5449,210 @@ type EncryptionInfo struct { // "ADWORDS_CUSTOMER" // "DFP_NETWORK_CODE" EncryptionEntityType string `json:"encryptionEntityType,omitempty"` - - // EncryptionSource: Describes whether the encrypted cookie was received - // from ad serving (the %m macro) or from Data Transfer. + // EncryptionSource: Describes whether the encrypted cookie was received from + // ad serving (the %m macro) or from Data Transfer. // // Possible values: // "ENCRYPTION_SCOPE_UNKNOWN" // "AD_SERVING" // "DATA_TRANSFER" EncryptionSource string `json:"encryptionSource,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#encryptionInfo". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#encryptionInfo". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptionEntityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptionEntityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncryptionInfo) MarshalJSON() ([]byte, error) { +func (s EncryptionInfo) MarshalJSON() ([]byte, error) { type NoMethod EncryptionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTag: Contains properties of an event tag. type EventTag struct { - // AccountId: Account ID of this event tag. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this event tag. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this event tag. This field or the - // campaignId field is required on insertion. + // AdvertiserId: Advertiser ID of this event tag. This field or the campaignId + // field is required on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CampaignId: Campaign ID of this event tag. This field or the - // advertiserId field is required on insertion. + // CampaignId: Campaign ID of this event tag. This field or the advertiserId + // field is required on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // EnabledByDefault: Whether this event tag should be automatically - // enabled for all of the advertiser's campaigns and ads. + // EnabledByDefault: Whether this event tag should be automatically enabled for + // all of the advertiser's campaigns and ads. EnabledByDefault bool `json:"enabledByDefault,omitempty"` - - // ExcludeFromAdxRequests: Whether to remove this event tag from ads - // that are trafficked through Display & Video 360 to Ad Exchange. This - // may be useful if the event tag uses a pixel that is unapproved for Ad - // Exchange bids on one or more networks, such as the Google Display - // Network. + // ExcludeFromAdxRequests: Whether to remove this event tag from ads that are + // trafficked through Display & Video 360 to Ad Exchange. This may be useful if + // the event tag uses a pixel that is unapproved for Ad Exchange bids on one or + // more networks, such as the Google Display Network. ExcludeFromAdxRequests bool `json:"excludeFromAdxRequests,omitempty"` - // Id: ID of this event tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTag". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTag". Kind string `json:"kind,omitempty"` - - // Name: Name of this event tag. This is a required field and must be - // less than 256 characters long. + // Name: Name of this event tag. This is a required field and must be less than + // 256 characters long. Name string `json:"name,omitempty"` - - // SiteFilterType: Site filter type for this event tag. If no type is - // specified then the event tag will be applied to all sites. + // SiteFilterType: Site filter type for this event tag. If no type is specified + // then the event tag will be applied to all sites. // // Possible values: // "WHITELIST" // "BLACKLIST" SiteFilterType string `json:"siteFilterType,omitempty"` - // SiteIds: Filter list of site IDs associated with this event tag. The - // siteFilterType determines whether this is a allowlist or blocklist - // filter. + // siteFilterType determines whether this is a allowlist or blocklist filter. SiteIds googleapi.Int64s `json:"siteIds,omitempty"` - - // SslCompliant: Whether this tag is SSL-compliant or not. This is a - // read-only field. + // SslCompliant: Whether this tag is SSL-compliant or not. This is a read-only + // field. SslCompliant bool `json:"sslCompliant,omitempty"` - - // Status: Status of this event tag. Must be ENABLED for this event tag - // to fire. This is a required field. + // Status: Status of this event tag. Must be ENABLED for this event tag to + // fire. This is a required field. // // Possible values: // "ENABLED" // "DISABLED" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this event tag. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this event tag. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Type: Event tag type. Can be used to specify whether to use a - // third-party pixel, a third-party JavaScript URL, or a third-party - // click-through URL for either impression or click tracking. This is a - // required field. + // Type: Event tag type. Can be used to specify whether to use a third-party + // pixel, a third-party JavaScript URL, or a third-party click-through URL for + // either impression or click tracking. This is a required field. // // Possible values: // "IMPRESSION_IMAGE_EVENT_TAG" // "IMPRESSION_JAVASCRIPT_EVENT_TAG" // "CLICK_THROUGH_EVENT_TAG" Type string `json:"type,omitempty"` - - // Url: Payload URL for this event tag. The URL on a click-through event - // tag should have a landing page URL appended to the end of it. This - // field is required on insertion. + // Url: Payload URL for this event tag. The URL on a click-through event tag + // should have a landing page URL appended to the end of it. This field is + // required on insertion. Url string `json:"url,omitempty"` - - // UrlEscapeLevels: Number of times the landing page URL should be - // URL-escaped before being appended to the click-through event tag URL. - // Only applies to click-through event tags as specified by the event - // tag type. + // UrlEscapeLevels: Number of times the landing page URL should be URL-escaped + // before being appended to the click-through event tag URL. Only applies to + // click-through event tags as specified by the event tag type. UrlEscapeLevels int64 `json:"urlEscapeLevels,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTag) MarshalJSON() ([]byte, error) { +func (s EventTag) MarshalJSON() ([]byte, error) { type NoMethod EventTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagOverride: Event tag override information. type EventTagOverride struct { // Enabled: Whether this override is enabled. Enabled bool `json:"enabled,omitempty"` - - // Id: ID of this event tag override. This is a read-only, - // auto-generated field. + // Id: ID of this event tag override. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagOverride) MarshalJSON() ([]byte, error) { +func (s EventTagOverride) MarshalJSON() ([]byte, error) { type NoMethod EventTagOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagsListResponse: Event Tag List Response type EventTagsListResponse struct { // EventTags: Event tag collection. EventTags []*EventTag `json:"eventTags,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTagsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTagsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EventTags") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventTags") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventTags") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagsListResponse) MarshalJSON() ([]byte, error) { +func (s EventTagsListResponse) MarshalJSON() ([]byte, error) { type NoMethod EventTagsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// File: Represents a File resource. A file contains the metadata for a -// report run. It shows the status of the run and holds the URLs to the -// generated report data if the run is finished and the status is -// "REPORT_AVAILABLE". +// File: Represents a File resource. A file contains the metadata for a report +// run. It shows the status of the run and holds the URLs to the generated +// report data if the run is finished and the status is "REPORT_AVAILABLE". type File struct { - // DateRange: The date range for which the file has report data. The - // date range will always be the absolute date range for which the - // report is run. + // DateRange: The date range for which the file has report data. The date range + // will always be the absolute date range for which the report is run. DateRange *DateRange `json:"dateRange,omitempty"` - // Etag: Etag of this resource. Etag string `json:"etag,omitempty"` - // FileName: The filename of the file. FileName string `json:"fileName,omitempty"` - - // Format: The output format of the report. Only available once the file - // is available. + // Format: The output format of the report. Only available once the file is + // available. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID of this report file. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#file". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#file". Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp in milliseconds since epoch when this - // file was last modified. + // LastModifiedTime: The timestamp in milliseconds since epoch when this file + // was last modified. LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"` - // ReportId: The ID of the report this file was generated from. ReportId int64 `json:"reportId,omitempty,string"` - // Status: The status of the report file. // // Possible values: @@ -6949,254 +5661,193 @@ type File struct { // "FAILED" // "CANCELLED" Status string `json:"status,omitempty"` - // Urls: The URLs where the completed report file can be downloaded. Urls *FileUrls `json:"urls,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DateRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DateRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DateRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *File) MarshalJSON() ([]byte, error) { +func (s File) MarshalJSON() ([]byte, error) { type NoMethod File - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileUrls: The URLs where the completed report file can be downloaded. type FileUrls struct { // ApiUrl: The URL for downloading the report data through the API. ApiUrl string `json:"apiUrl,omitempty"` - - // BrowserUrl: The URL for downloading the report data through a - // browser. + // BrowserUrl: The URL for downloading the report data through a browser. BrowserUrl string `json:"browserUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApiUrl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiUrl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileUrls) MarshalJSON() ([]byte, error) { +func (s FileUrls) MarshalJSON() ([]byte, error) { type NoMethod FileUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileList: List of files for a report. type FileList struct { // Etag: Etag of this resource. Etag string `json:"etag,omitempty"` - // Items: The files returned in this response. Items []*File `json:"items,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#fileList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#fileList". Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through files. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through files. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileList) MarshalJSON() ([]byte, error) { +func (s FileList) MarshalJSON() ([]byte, error) { type NoMethod FileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Flight: Flight type Flight struct { EndDate string `json:"endDate,omitempty"` - // RateOrCost: Rate or cost of this flight. - RateOrCost int64 `json:"rateOrCost,omitempty,string"` - - StartDate string `json:"startDate,omitempty"` - + RateOrCost int64 `json:"rateOrCost,omitempty,string"` + StartDate string `json:"startDate,omitempty"` // Units: Units of this flight. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Flight) MarshalJSON() ([]byte, error) { +func (s Flight) MarshalJSON() ([]byte, error) { type NoMethod Flight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivitiesGenerateTagResponse: Floodlight Activity -// GenerateTag Response +// FloodlightActivitiesGenerateTagResponse: Floodlight Activity GenerateTag +// Response type FloodlightActivitiesGenerateTagResponse struct { - // FloodlightActivityTag: Generated tag for this Floodlight activity. - // For global site tags, this is the event snippet. + // FloodlightActivityTag: Generated tag for this Floodlight activity. For + // global site tags, this is the event snippet. FloodlightActivityTag string `json:"floodlightActivityTag,omitempty"` - - // GlobalSiteTagGlobalSnippet: The global snippet section of a global - // site tag. The global site tag sets new cookies on your domain, which - // will store a unique identifier for a user or the ad click that - // brought the user to your site. Learn more. + // GlobalSiteTagGlobalSnippet: The global snippet section of a global site tag. + // The global site tag sets new cookies on your domain, which will store a + // unique identifier for a user or the ad click that brought the user to your + // site. Learn more. GlobalSiteTagGlobalSnippet string `json:"globalSiteTagGlobalSnippet,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesGenerateTagResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesGenerateTagResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityTag") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityTag") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FloodlightActivityTag") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesGenerateTagResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivitiesListResponse: Floodlight Activity List Response type FloodlightActivitiesListResponse struct { // FloodlightActivities: Floodlight activity collection. FloodlightActivities []*FloodlightActivity `json:"floodlightActivities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivities") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivities") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivities") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivities") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivity: Contains properties of a Floodlight activity. type FloodlightActivity struct { - // AccountId: Account ID of this floodlight activity. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity. If this - // field is left blank, the value will be copied over either from the - // activity group's advertiser or the existing activity's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity. If this field is + // left blank, the value will be copied over either from the activity group's + // advertiser or the existing activity's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CacheBustingType: Code type used for cache busting in the generated - // tag. Applicable only when floodlightActivityGroupType is COUNTER and + // CacheBustingType: Code type used for cache busting in the generated tag. + // Applicable only when floodlightActivityGroupType is COUNTER and // countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. // // Possible values: @@ -7206,7 +5857,6 @@ type FloodlightActivity struct { // "PHP" // "COLD_FUSION" CacheBustingType string `json:"cacheBustingType,omitempty"` - // CountingMethod: Counting method for conversions for this floodlight // activity. This is a required field. // @@ -7217,114 +5867,88 @@ type FloodlightActivity struct { // "TRANSACTIONS_COUNTING" // "ITEMS_SOLD_COUNTING" CountingMethod string `json:"countingMethod,omitempty"` - // DefaultTags: Dynamic floodlight tags. DefaultTags []*FloodlightActivityDynamicTag `json:"defaultTags,omitempty"` - - // ExpectedUrl: URL where this tag will be deployed. If specified, must - // be less than 256 characters long. + // ExpectedUrl: URL where this tag will be deployed. If specified, must be less + // than 256 characters long. ExpectedUrl string `json:"expectedUrl,omitempty"` - - // FloodlightActivityGroupId: Floodlight activity group ID of this - // floodlight activity. This is a required field. + // FloodlightActivityGroupId: Floodlight activity group ID of this floodlight + // activity. This is a required field. FloodlightActivityGroupId int64 `json:"floodlightActivityGroupId,omitempty,string"` - - // FloodlightActivityGroupName: Name of the associated floodlight - // activity group. This is a read-only field. + // FloodlightActivityGroupName: Name of the associated floodlight activity + // group. This is a read-only field. FloodlightActivityGroupName string `json:"floodlightActivityGroupName,omitempty"` - - // FloodlightActivityGroupTagString: Tag string of the associated - // floodlight activity group. This is a read-only field. - FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` - - // FloodlightActivityGroupType: Type of the associated floodlight + // FloodlightActivityGroupTagString: Tag string of the associated floodlight // activity group. This is a read-only field. + FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` + // FloodlightActivityGroupType: Type of the associated floodlight activity + // group. This is a read-only field. // // Possible values: // "COUNTER" // "SALE" FloodlightActivityGroupType string `json:"floodlightActivityGroupType,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity. If this field is left blank, the value will be - // copied over either from the activity group's floodlight configuration - // or from the existing activity's floodlight configuration. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity. If this field is left blank, the value will be copied over either + // from the activity group's floodlight configuration or from the existing + // activity's floodlight configuration. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - - // FloodlightTagType: The type of Floodlight tag this activity will - // generate. This is a required field. + // FloodlightTagType: The type of Floodlight tag this activity will generate. + // This is a required field. // // Possible values: // "IFRAME" // "IMAGE" // "GLOBAL_SITE_TAG" FloodlightTagType string `json:"floodlightTagType,omitempty"` - // Hidden: Whether this activity is archived. Hidden bool `json:"hidden,omitempty"` - - // Id: ID of this floodlight activity. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight activity. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity. + // This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivity". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivity". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity. This is a required field. - // Must be less than 129 characters long and cannot contain quotes. + // Name: Name of this floodlight activity. This is a required field. Must be + // less than 129 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - // Notes: General notes or implementation instructions for the tag. Notes string `json:"notes,omitempty"` - // PublisherTags: Publisher dynamic floodlight tags. PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"` - // Secure: Whether this tag should use SSL. Secure bool `json:"secure,omitempty"` - - // SslCompliant: Whether the floodlight activity is SSL-compliant. This - // is a read-only field, its value detected by the system from the - // floodlight tags. + // SslCompliant: Whether the floodlight activity is SSL-compliant. This is a + // read-only field, its value detected by the system from the floodlight tags. SslCompliant bool `json:"sslCompliant,omitempty"` - // SslRequired: Whether this floodlight activity must be SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagFormat: Tag format type for the floodlight activity. If left - // blank, the tag format will default to HTML. + // TagFormat: Tag format type for the floodlight activity. If left blank, the + // tag format will default to HTML. // // Possible values: // "HTML" // "XHTML" TagFormat string `json:"tagFormat,omitempty"` - - // TagString: Value of the cat= parameter in the floodlight tag, which - // the ad servers use to identify the activity. This is optional: if - // empty, a new tag string will be generated for you. This string must - // be 1 to 8 characters long, with valid characters being a-z0-9[ _ ]. - // This tag string must also be unique among activities of the same - // activity group. This field is read-only after insertion. + // TagString: Value of the cat= parameter in the floodlight tag, which the ad + // servers use to identify the activity. This is optional: if empty, a new tag + // string will be generated for you. This string must be 1 to 8 characters + // long, with valid characters being a-z0-9[ _ ]. This tag string must also be + // unique among activities of the same activity group. This field is read-only + // after insertion. TagString string `json:"tagString,omitempty"` - - // UserDefinedVariableTypes: List of the user-defined variables used by - // this conversion tag. These map to the "u[1-100]=" in the tags. Each - // of these can have a user defined type. Acceptable values are U1 to - // U100, inclusive. + // UserDefinedVariableTypes: List of the user-defined variables used by this + // conversion tag. These map to the "u[1-100]=" in the tags. Each of these can + // have a user defined type. Acceptable values are U1 to U100, inclusive. // // Possible values: // "U1" @@ -7429,157 +6053,118 @@ type FloodlightActivity struct { // "U100" UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivity) MarshalJSON() ([]byte, error) { +func (s FloodlightActivity) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityDynamicTag: Dynamic Tag type FloodlightActivityDynamicTag struct { - // Id: ID of this dynamic tag. This is a read-only, auto-generated - // field. + // Id: ID of this dynamic tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // Name: Name of this tag. Name string `json:"name,omitempty"` - // Tag: Tag code. Tag string `json:"tag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivityGroup: Contains properties of a Floodlight activity -// group. +// FloodlightActivityGroup: Contains properties of a Floodlight activity group. type FloodlightActivityGroup struct { - // AccountId: Account ID of this floodlight activity group. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity group. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity group. If - // this field is left blank, the value will be copied over either from - // the floodlight configuration's advertiser or from the existing - // activity group's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity group. If this field + // is left blank, the value will be copied over either from the floodlight + // configuration's advertiser or from the existing activity group's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity group. This is a required field. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity group. This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this floodlight activity group. This is a read-only, // auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity group. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity + // group. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity group. This is a required - // field. Must be less than 65 characters long and cannot contain - // quotes. + // Name: Name of this floodlight activity group. This is a required field. Must + // be less than 65 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity group. This - // is a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity group. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagString: Value of the type= parameter in the floodlight tag, which - // the ad servers use to identify the activity group that the activity - // belongs to. This is optional: if empty, a new tag string will be - // generated for you. This string must be 1 to 8 characters long, with - // valid characters being a-z0-9[ _ ]. This tag string must also be - // unique among activity groups of the same floodlight configuration. - // This field is read-only after insertion. + // TagString: Value of the type= parameter in the floodlight tag, which the ad + // servers use to identify the activity group that the activity belongs to. + // This is optional: if empty, a new tag string will be generated for you. This + // string must be 1 to 8 characters long, with valid characters being a-z0-9[ _ + // ]. This tag string must also be unique among activity groups of the same + // floodlight configuration. This field is read-only after insertion. TagString string `json:"tagString,omitempty"` - - // Type: Type of the floodlight activity group. This is a required field - // that is read-only after insertion. + // Type: Type of the floodlight activity group. This is a required field that + // is read-only after insertion. // // Possible values: // "COUNTER" // "SALE" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityGroupsListResponse: Floodlight Activity Group List @@ -7587,498 +6172,372 @@ func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type FloodlightActivityGroupsListResponse struct { // FloodlightActivityGroups: Floodlight activity group collection. FloodlightActivityGroups []*FloodlightActivityGroup `json:"floodlightActivityGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityGroups") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityGroups") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityPublisherDynamicTag: Publisher Dynamic Tag type FloodlightActivityPublisherDynamicTag struct { // ClickThrough: Whether this tag is applicable only for click-throughs. ClickThrough bool `json:"clickThrough,omitempty"` - - // DirectorySiteId: Directory site ID of this dynamic tag. This is a - // write-only field that can be used as an alternative to the siteId - // field. When this resource is retrieved, only the siteId field will be - // populated. + // DirectorySiteId: Directory site ID of this dynamic tag. This is a write-only + // field that can be used as an alternative to the siteId field. When this + // resource is retrieved, only the siteId field will be populated. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - // DynamicTag: Dynamic floodlight tag. DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"` - // SiteId: Site ID of this dynamic tag. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - // ViewThrough: Whether this tag is applicable only for view-throughs. ViewThrough bool `json:"viewThrough,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThrough") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThrough") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickThrough") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityPublisherDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfiguration: Contains properties of a Floodlight -// configuration. +// FloodlightConfiguration: Contains properties of a Floodlight configuration. type FloodlightConfiguration struct { - // AccountId: Account ID of this floodlight configuration. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight configuration. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of the parent advertiser of this - // floodlight configuration. + // AdvertiserId: Advertiser ID of the parent advertiser of this floodlight + // configuration. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // AnalyticsDataSharingEnabled: Whether advertiser data is shared with - // Google Analytics. + // AnalyticsDataSharingEnabled: Whether advertiser data is shared with Google + // Analytics. AnalyticsDataSharingEnabled bool `json:"analyticsDataSharingEnabled,omitempty"` - // CustomViewabilityMetric: Custom Viewability metric for the floodlight // configuration. CustomViewabilityMetric *CustomViewabilityMetric `json:"customViewabilityMetric,omitempty"` - - // ExposureToConversionEnabled: Whether the exposure-to-conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure-to-conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // FirstDayOfWeek: Day that will be counted as the first day of the week - // in reports. This is a required field. + // FirstDayOfWeek: Day that will be counted as the first day of the week in + // reports. This is a required field. // // Possible values: // "MONDAY" // "SUNDAY" FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"` - - // Id: ID of this floodlight configuration. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight configuration. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this floodlight // configuration. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // InAppAttributionTrackingEnabled: Whether in-app attribution tracking - // is enabled. + // InAppAttributionTrackingEnabled: Whether in-app attribution tracking is + // enabled. InAppAttributionTrackingEnabled bool `json:"inAppAttributionTrackingEnabled,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfiguration". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfiguration". Kind string `json:"kind,omitempty"` - // LookbackConfiguration: Lookback window settings for this floodlight // configuration. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // NaturalSearchConversionAttributionOption: Types of attribution - // options for natural search conversions. + // NaturalSearchConversionAttributionOption: Types of attribution options for + // natural search conversions. // // Possible values: // "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" NaturalSearchConversionAttributionOption string `json:"naturalSearchConversionAttributionOption,omitempty"` - // OmnitureSettings: Settings for Campaign Manager Omniture integration. OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight configuration. This is - // a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight configuration. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagSettings: Configuration settings for dynamic and image floodlight - // tags. + // TagSettings: Configuration settings for dynamic and image floodlight tags. TagSettings *TagSettings `json:"tagSettings,omitempty"` - - // ThirdPartyAuthenticationTokens: List of third-party authentication - // tokens enabled for this configuration. - ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` - - // UserDefinedVariableConfigurations: List of user defined variables + // ThirdPartyAuthenticationTokens: List of third-party authentication tokens // enabled for this configuration. + ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` + // UserDefinedVariableConfigurations: List of user defined variables enabled + // for this configuration. UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfiguration) MarshalJSON() ([]byte, error) { +func (s FloodlightConfiguration) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfigurationsListResponse: Floodlight Configuration List -// Response +// FloodlightConfigurationsListResponse: Floodlight Configuration List Response type FloodlightConfigurationsListResponse struct { // FloodlightConfigurations: Floodlight configuration collection. FloodlightConfigurations []*FloodlightConfiguration `json:"floodlightConfigurations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfigurationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfigurationsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightConfigurations") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightConfigurations") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightConfigurations") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightConfigurations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfigurationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type "FlOODLIGHT". +// FloodlightReportCompatibleFields: Represents fields that are compatible to +// be selected for a report of type "FlOODLIGHT". type FloodlightReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#floodlightReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod FloodlightReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FrequencyCap: Frequency Cap. type FrequencyCap struct { - // Duration: Duration of time, in seconds, for this frequency cap. The - // maximum duration is 90 days. Acceptable values are 1 to 7776000, - // inclusive. + // Duration: Duration of time, in seconds, for this frequency cap. The maximum + // duration is 90 days. Acceptable values are 1 to 7776000, inclusive. Duration int64 `json:"duration,omitempty,string"` - - // Impressions: Number of times an individual user can be served the ad - // within the specified duration. Acceptable values are 1 to 15, - // inclusive. + // Impressions: Number of times an individual user can be served the ad within + // the specified duration. Acceptable values are 1 to 15, inclusive. Impressions int64 `json:"impressions,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FrequencyCap) MarshalJSON() ([]byte, error) { +func (s FrequencyCap) MarshalJSON() ([]byte, error) { type NoMethod FrequencyCap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FsCommand: FsCommand. type FsCommand struct { - // Left: Distance from the left of the browser.Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Left: Distance from the left of the browser.Applicable when positionOption + // is DISTANCE_FROM_TOP_LEFT_CORNER. Left int64 `json:"left,omitempty"` - // PositionOption: Position in the browser where the window will open. // // Possible values: // "CENTERED" // "DISTANCE_FROM_TOP_LEFT_CORNER" PositionOption string `json:"positionOption,omitempty"` - - // Top: Distance from the top of the browser. Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Top: Distance from the top of the browser. Applicable when positionOption is + // DISTANCE_FROM_TOP_LEFT_CORNER. Top int64 `json:"top,omitempty"` - // WindowHeight: Height of the window. WindowHeight int64 `json:"windowHeight,omitempty"` - // WindowWidth: Width of the window. WindowWidth int64 `json:"windowWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FsCommand) MarshalJSON() ([]byte, error) { +func (s FsCommand) MarshalJSON() ([]byte, error) { type NoMethod FsCommand - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GeoTargeting: Geographical Targeting. type GeoTargeting struct { - // Cities: Cities to be targeted. For each city only dartId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a city, do not target or exclude the country - // of the city, and do not target the metro or region of the city. + // Cities: Cities to be targeted. For each city only dartId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a city, do not target or exclude the country of the city, and + // do not target the metro or region of the city. Cities []*City `json:"cities,omitempty"` - - // Countries: Countries to be targeted or excluded from targeting, - // depending on the setting of the excludeCountries field. For each - // country only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting or - // excluding a country, do not target regions, cities, metros, or postal - // codes in the same country. + // Countries: Countries to be targeted or excluded from targeting, depending on + // the setting of the excludeCountries field. For each country only dartId is + // required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting or excluding a country, do not target + // regions, cities, metros, or postal codes in the same country. Countries []*Country `json:"countries,omitempty"` - - // ExcludeCountries: Whether or not to exclude the countries in the - // countries field from targeting. If false, the countries field refers - // to countries which will be targeted by the ad. + // ExcludeCountries: Whether or not to exclude the countries in the countries + // field from targeting. If false, the countries field refers to countries + // which will be targeted by the ad. ExcludeCountries bool `json:"excludeCountries,omitempty"` - - // Metros: Metros to be targeted. For each metro only dmaId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a metro, do not target or exclude the - // country of the metro. + // Metros: Metros to be targeted. For each metro only dmaId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a metro, do not target or exclude the country of the metro. Metros []*Metro `json:"metros,omitempty"` - - // PostalCodes: Postal codes to be targeted. For each postal code only - // id is required. The other fields are populated automatically when the - // ad is inserted or updated. If targeting a postal code, do not target - // or exclude the country of the postal code. - PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - - // Regions: Regions to be targeted. For each region only dartId is + // PostalCodes: Postal codes to be targeted. For each postal code only id is // required. The other fields are populated automatically when the ad is - // inserted or updated. If targeting a region, do not target or exclude - // the country of the region. + // inserted or updated. If targeting a postal code, do not target or exclude + // the country of the postal code. + PostalCodes []*PostalCode `json:"postalCodes,omitempty"` + // Regions: Regions to be targeted. For each region only dartId is required. + // The other fields are populated automatically when the ad is inserted or + // updated. If targeting a region, do not target or exclude the country of the + // region. Regions []*Region `json:"regions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoTargeting) MarshalJSON() ([]byte, error) { +func (s GeoTargeting) MarshalJSON() ([]byte, error) { type NoMethod GeoTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItem: Represents a buy from the Planning inventory store. type InventoryItem struct { // AccountId: Account ID of this inventory item. AccountId int64 `json:"accountId,omitempty,string"` - - // AdSlots: Ad slots of this inventory item. If this inventory item - // represents a standalone placement, there will be exactly one ad slot. - // If this inventory item represents a placement group, there will be - // more than one ad slot, each representing one child placement in that - // placement group. + // AdSlots: Ad slots of this inventory item. If this inventory item represents + // a standalone placement, there will be exactly one ad slot. If this inventory + // item represents a placement group, there will be more than one ad slot, each + // representing one child placement in that placement group. AdSlots []*AdSlot `json:"adSlots,omitempty"` - // AdvertiserId: Advertiser ID of this inventory item. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // ContentCategoryId: Content category ID of this inventory item. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // EstimatedClickThroughRate: Estimated click-through rate of this - // inventory item. - EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` - - // EstimatedConversionRate: Estimated conversion rate of this inventory + // EstimatedClickThroughRate: Estimated click-through rate of this inventory // item. + EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` + // EstimatedConversionRate: Estimated conversion rate of this inventory item. EstimatedConversionRate int64 `json:"estimatedConversionRate,omitempty,string"` - // Id: ID of this inventory item. Id int64 `json:"id,omitempty,string"` - // InPlan: Whether this inventory item is in plan. InPlan bool `json:"inPlan,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItem". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this inventory item. + // LastModifiedInfo: Information about the most recent modification of this + // inventory item. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this inventory item. For standalone inventory items, - // this is the same name as that of its only ad slot. For group - // inventory items, this can differ from the name of any of its ad - // slots. + // Name: Name of this inventory item. For standalone inventory items, this is + // the same name as that of its only ad slot. For group inventory items, this + // can differ from the name of any of its ad slots. Name string `json:"name,omitempty"` - // NegotiationChannelId: Negotiation channel ID of this inventory item. NegotiationChannelId int64 `json:"negotiationChannelId,omitempty,string"` - // OrderId: Order ID of this inventory item. OrderId int64 `json:"orderId,omitempty,string"` - // PlacementStrategyId: Placement strategy ID of this inventory item. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - // Pricing: Pricing of this inventory item. Pricing *Pricing `json:"pricing,omitempty"` - // ProjectId: Project ID of this inventory item. ProjectId int64 `json:"projectId,omitempty,string"` - // RfpId: RFP ID of this inventory item. RfpId int64 `json:"rfpId,omitempty,string"` - // SiteId: ID of the site this inventory item is associated with. SiteId int64 `json:"siteId,omitempty,string"` - // SubaccountId: Subaccount ID of this inventory item. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Type: Type of inventory item. // // Possible values: @@ -8086,382 +6545,291 @@ type InventoryItem struct { // "PLANNING_PLACEMENT_TYPE_CREDIT" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItem) MarshalJSON() ([]byte, error) { +func (s InventoryItem) MarshalJSON() ([]byte, error) { type NoMethod InventoryItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItemsListResponse: Inventory item List Response type InventoryItemsListResponse struct { // InventoryItems: Inventory item collection InventoryItems []*InventoryItem `json:"inventoryItems,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItemsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "InventoryItems") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventoryItems") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventoryItems") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItemsListResponse) MarshalJSON() ([]byte, error) { +func (s InventoryItemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod InventoryItemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // KeyValueTargetingExpression: Key Value Targeting Expression. type KeyValueTargetingExpression struct { // Expression: Keyword expression being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { +func (s KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod KeyValueTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LandingPage: Contains information about where a user's browser is -// taken after the user clicks an ad. +// LandingPage: Contains information about where a user's browser is taken +// after the user clicks an ad. type LandingPage struct { - // AdvertiserId: Advertiser ID of this landing page. This is a required - // field. + // AdvertiserId: Advertiser ID of this landing page. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // Archived: Whether this landing page has been archived. Archived bool `json:"archived,omitempty"` - - // DeepLinks: Links that will direct the user to a mobile app, if - // installed. + // DeepLinks: Links that will direct the user to a mobile app, if installed. DeepLinks []*DeepLink `json:"deepLinks,omitempty"` - - // Id: ID of this landing page. This is a read-only, auto-generated - // field. + // Id: ID of this landing page. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#landingPage". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#landingPage". Kind string `json:"kind,omitempty"` - - // Name: Name of this landing page. This is a required field. It must be - // less than 256 characters long. + // Name: Name of this landing page. This is a required field. It must be less + // than 256 characters long. Name string `json:"name,omitempty"` - // Url: URL of this landing page. This is a required field. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LandingPage) MarshalJSON() ([]byte, error) { +func (s LandingPage) MarshalJSON() ([]byte, error) { type NoMethod LandingPage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Language: Contains information about a language that can be targeted -// by ads. +// Language: Contains information about a language that can be targeted by ads. type Language struct { - // Id: Language ID of this language. This is the ID used for targeting - // and generating reports. + // Id: Language ID of this language. This is the ID used for targeting and + // generating reports. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#language". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#language". Kind string `json:"kind,omitempty"` - - // LanguageCode: Format of language code is an ISO 639 two-letter - // language code optionally followed by an underscore followed by an ISO - // 3166 code. Examples are "en" for English or "zh_CN" for Simplified - // Chinese. + // LanguageCode: Format of language code is an ISO 639 two-letter language code + // optionally followed by an underscore followed by an ISO 3166 code. Examples + // are "en" for English or "zh_CN" for Simplified Chinese. LanguageCode string `json:"languageCode,omitempty"` - // Name: Name of this language. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Language) MarshalJSON() ([]byte, error) { +func (s Language) MarshalJSON() ([]byte, error) { type NoMethod Language - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguageTargeting: Language Targeting. type LanguageTargeting struct { - // Languages: Languages that this ad targets. For each language only - // languageId is required. The other fields are populated automatically - // when the ad is inserted or updated. + // Languages: Languages that this ad targets. For each language only languageId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. Languages []*Language `json:"languages,omitempty"` - // ForceSendFields is a list of field names (e.g. "Languages") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Languages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Languages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguageTargeting) MarshalJSON() ([]byte, error) { +func (s LanguageTargeting) MarshalJSON() ([]byte, error) { type NoMethod LanguageTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguagesListResponse: Language List Response type LanguagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#languagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#languagesListResponse". Kind string `json:"kind,omitempty"` - // Languages: Language collection. Languages []*Language `json:"languages,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguagesListResponse) MarshalJSON() ([]byte, error) { +func (s LanguagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod LanguagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LastModifiedInfo: Modification timestamp. type LastModifiedInfo struct { // Time: Timestamp of the last change in milliseconds since epoch. Time int64 `json:"time,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Time") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Time") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Time") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Time") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LastModifiedInfo) MarshalJSON() ([]byte, error) { +func (s LastModifiedInfo) MarshalJSON() ([]byte, error) { type NoMethod LastModifiedInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationClause: A group clause made up of list population terms // representing constraints joined by ORs. type ListPopulationClause struct { - // Terms: Terms of this list population clause. Each clause is made up - // of list population terms representing constraints and are joined by - // ORs. + // Terms: Terms of this list population clause. Each clause is made up of list + // population terms representing constraints and are joined by ORs. Terms []*ListPopulationTerm `json:"terms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Terms") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Terms") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Terms") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationClause) MarshalJSON() ([]byte, error) { +func (s ListPopulationClause) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationClause - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationRule: Remarketing List Population Rule. type ListPopulationRule struct { - // FloodlightActivityId: Floodlight activity ID associated with this - // rule. This field can be left blank. + // FloodlightActivityId: Floodlight activity ID associated with this rule. This + // field can be left blank. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightActivityName: Name of floodlight activity associated with - // this rule. This is a read-only, auto-generated field. + // FloodlightActivityName: Name of floodlight activity associated with this + // rule. This is a read-only, auto-generated field. FloodlightActivityName string `json:"floodlightActivityName,omitempty"` - - // ListPopulationClauses: Clauses that make up this list population - // rule. Clauses are joined by ANDs, and the clauses themselves are made - // up of list population terms which are joined by ORs. + // ListPopulationClauses: Clauses that make up this list population rule. + // Clauses are joined by ANDs, and the clauses themselves are made up of list + // population terms which are joined by ORs. ListPopulationClauses []*ListPopulationClause `json:"listPopulationClauses,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationRule) MarshalJSON() ([]byte, error) { +func (s ListPopulationRule) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationTerm: Remarketing List Population Rule Term. type ListPopulationTerm struct { - // Contains: Will be true if the term should check if the user is in the - // list and false if the term should check if the user is not in the - // list. This field is only relevant when type is set to - // LIST_MEMBERSHIP_TERM. False by default. + // Contains: Will be true if the term should check if the user is in the list + // and false if the term should check if the user is not in the list. This + // field is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by + // default. Contains bool `json:"contains,omitempty"` - - // Negation: Whether to negate the comparison result of this term during - // rule evaluation. This field is only relevant when type is left unset - // or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. + // Negation: Whether to negate the comparison result of this term during rule + // evaluation. This field is only relevant when type is left unset or set to + // CUSTOM_VARIABLE_TERM or REFERRER_TERM. Negation bool `json:"negation,omitempty"` - - // Operator: Comparison operator of this term. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Operator: Comparison operator of this term. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. // // Possible values: // "NUM_EQUALS" @@ -8472,252 +6840,194 @@ type ListPopulationTerm struct { // "STRING_EQUALS" // "STRING_CONTAINS" Operator string `json:"operator,omitempty"` - - // RemarketingListId: ID of the list in question. This field is only - // relevant when type is set to LIST_MEMBERSHIP_TERM. + // RemarketingListId: ID of the list in question. This field is only relevant + // when type is set to LIST_MEMBERSHIP_TERM. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - - // Type: List population term type determines the applicable fields in - // this object. If left unset or set to CUSTOM_VARIABLE_TERM, then - // variableName, variableFriendlyName, operator, value, and negation are - // applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and - // contains are applicable. If set to REFERRER_TERM then operator, - // value, and negation are applicable. + // Type: List population term type determines the applicable fields in this + // object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, + // variableFriendlyName, operator, value, and negation are applicable. If set + // to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. + // If set to REFERRER_TERM then operator, value, and negation are applicable. // // Possible values: // "CUSTOM_VARIABLE_TERM" // "LIST_MEMBERSHIP_TERM" // "REFERRER_TERM" Type string `json:"type,omitempty"` - - // Value: Literal to compare the variable to. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Value: Literal to compare the variable to. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. Value string `json:"value,omitempty"` - - // VariableFriendlyName: Friendly name of this term's variable. This is - // a read-only, auto-generated field. This field is only relevant when - // type is left unset or set to CUSTOM_VARIABLE_TERM. + // VariableFriendlyName: Friendly name of this term's variable. This is a + // read-only, auto-generated field. This field is only relevant when type is + // left unset or set to CUSTOM_VARIABLE_TERM. VariableFriendlyName string `json:"variableFriendlyName,omitempty"` - - // VariableName: Name of the variable (U1, U2, etc.) being compared in - // this term. This field is only relevant when type is set to null, + // VariableName: Name of the variable (U1, U2, etc.) being compared in this + // term. This field is only relevant when type is set to null, // CUSTOM_VARIABLE_TERM or REFERRER_TERM. VariableName string `json:"variableName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contains") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contains") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contains") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationTerm) MarshalJSON() ([]byte, error) { +func (s ListPopulationTerm) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationTerm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListTargetingExpression: Remarketing List Targeting Expression. type ListTargetingExpression struct { - // Expression: Expression describing which lists are being targeted by - // the ad. + // Expression: Expression describing which lists are being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListTargetingExpression) MarshalJSON() ([]byte, error) { +func (s ListTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod ListTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LookbackConfiguration: Lookback configuration settings. type LookbackConfiguration struct { - // ClickDuration: Lookback window, in days, from the last time a given - // user clicked on one of your ads. If you enter 0, clicks will not be - // considered as triggering events for floodlight tracking. If you leave + // ClickDuration: Lookback window, in days, from the last time a given user + // clicked on one of your ads. If you enter 0, clicks will not be considered as + // triggering events for floodlight tracking. If you leave this field blank, + // the default value for your account will be used. Acceptable values are 0 to + // 90, inclusive. + ClickDuration int64 `json:"clickDuration,omitempty"` + // PostImpressionActivitiesDuration: Lookback window, in days, from the last + // time a given user viewed one of your ads. If you enter 0, impressions will + // not be considered as triggering events for floodlight tracking. If you leave // this field blank, the default value for your account will be used. // Acceptable values are 0 to 90, inclusive. - ClickDuration int64 `json:"clickDuration,omitempty"` - - // PostImpressionActivitiesDuration: Lookback window, in days, from the - // last time a given user viewed one of your ads. If you enter 0, - // impressions will not be considered as triggering events for - // floodlight tracking. If you leave this field blank, the default value - // for your account will be used. Acceptable values are 0 to 90, - // inclusive. PostImpressionActivitiesDuration int64 `json:"postImpressionActivitiesDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickDuration") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickDuration") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickDuration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LookbackConfiguration) MarshalJSON() ([]byte, error) { +func (s LookbackConfiguration) MarshalJSON() ([]byte, error) { type NoMethod LookbackConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Metric: Represents a metric. type Metric struct { // Kind: The kind of resource this is, in this case dfareporting#metric. Kind string `json:"kind,omitempty"` - // Name: The metric name, e.g. dfa:impressions Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metric) MarshalJSON() ([]byte, error) { +func (s Metric) MarshalJSON() ([]byte, error) { type NoMethod Metric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metro: Contains information about a metro region that can be targeted -// by ads. +// Metro: Contains information about a metro region that can be targeted by +// ads. type Metro struct { - // CountryCode: Country code of the country to which this metro region - // belongs. + // CountryCode: Country code of the country to which this metro region belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this metro region - // belongs. + // CountryDartId: DART ID of the country to which this metro region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this metro region. DartId int64 `json:"dartId,omitempty,string"` - - // DmaId: DMA ID of this metro region. This is the ID used for targeting - // and generating reports, and is equivalent to metro_code. + // DmaId: DMA ID of this metro region. This is the ID used for targeting and + // generating reports, and is equivalent to metro_code. DmaId int64 `json:"dmaId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metro". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metro". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro code of this metro region. This is equivalent to - // dma_id. + // MetroCode: Metro code of this metro region. This is equivalent to dma_id. MetroCode string `json:"metroCode,omitempty"` - // Name: Name of this metro region. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metro) MarshalJSON() ([]byte, error) { +func (s Metro) MarshalJSON() ([]byte, error) { type NoMethod Metro - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetrosListResponse: Metro List Response type MetrosListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metrosListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metrosListResponse". Kind string `json:"kind,omitempty"` - // Metros: Metro collection. Metros []*Metro `json:"metros,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetrosListResponse) MarshalJSON() ([]byte, error) { +func (s MetrosListResponse) MarshalJSON() ([]byte, error) { type NoMethod MetrosListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileApp: Contains information about a mobile app. Used as a landing -// page deep link. +// MobileApp: Contains information about a mobile app. Used as a landing page +// deep link. type MobileApp struct { // Directory: Mobile app directory. // @@ -8726,600 +7036,453 @@ type MobileApp struct { // "APPLE_APP_STORE" // "GOOGLE_PLAY_STORE" Directory string `json:"directory,omitempty"` - // Id: ID of this mobile app. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileApp". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileApp". Kind string `json:"kind,omitempty"` - // PublisherName: Publisher name. PublisherName string `json:"publisherName,omitempty"` - // Title: Title of this mobile app. Title string `json:"title,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Directory") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directory") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directory") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileApp) MarshalJSON() ([]byte, error) { +func (s MobileApp) MarshalJSON() ([]byte, error) { type NoMethod MobileApp - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileAppsListResponse: Mobile app List Response type MobileAppsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileAppsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileAppsListResponse". Kind string `json:"kind,omitempty"` - // MobileApps: Mobile apps collection. MobileApps []*MobileApp `json:"mobileApps,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileAppsListResponse) MarshalJSON() ([]byte, error) { +func (s MobileAppsListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileAppsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileCarrier: Contains information about a mobile carrier that can -// be targeted by ads. +// MobileCarrier: Contains information about a mobile carrier that can be +// targeted by ads. type MobileCarrier struct { // CountryCode: Country code of the country to which this mobile carrier // belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this mobile carrier - // belongs. + // CountryDartId: DART ID of the country to which this mobile carrier belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this mobile carrier. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarrier". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarrier". Kind string `json:"kind,omitempty"` - // Name: Name of this mobile carrier. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarrier) MarshalJSON() ([]byte, error) { +func (s MobileCarrier) MarshalJSON() ([]byte, error) { type NoMethod MobileCarrier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileCarriersListResponse: Mobile Carrier List Response type MobileCarriersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarriersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarriersListResponse". Kind string `json:"kind,omitempty"` - // MobileCarriers: Mobile carrier collection. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarriersListResponse) MarshalJSON() ([]byte, error) { +func (s MobileCarriersListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileCarriersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObjectFilter: Object Filter. type ObjectFilter struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#objectFilter". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#objectFilter". Kind string `json:"kind,omitempty"` - // ObjectIds: Applicable when status is ASSIGNED. The user has access to // objects with these object IDs. ObjectIds googleapi.Int64s `json:"objectIds,omitempty"` - - // Status: Status of the filter. NONE means the user has access to none - // of the objects. ALL means the user has access to all objects. - // ASSIGNED means the user has access to the objects with IDs in the - // objectIds list. + // Status: Status of the filter. NONE means the user has access to none of the + // objects. ALL means the user has access to all objects. ASSIGNED means the + // user has access to the objects with IDs in the objectIds list. // // Possible values: // "NONE" // "ASSIGNED" // "ALL" Status string `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectFilter) MarshalJSON() ([]byte, error) { +func (s ObjectFilter) MarshalJSON() ([]byte, error) { type NoMethod ObjectFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OffsetPosition: Offset Position. type OffsetPosition struct { // Left: Offset distance from left side of an asset or a window. Left int64 `json:"left,omitempty"` - // Top: Offset distance from top side of an asset or a window. Top int64 `json:"top,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OffsetPosition) MarshalJSON() ([]byte, error) { +func (s OffsetPosition) MarshalJSON() ([]byte, error) { type NoMethod OffsetPosition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OmnitureSettings: Omniture Integration Settings. type OmnitureSettings struct { // OmnitureCostDataEnabled: Whether placement cost data will be sent to - // Omniture. This property can be enabled only if - // omnitureIntegrationEnabled is true. + // Omniture. This property can be enabled only if omnitureIntegrationEnabled is + // true. OmnitureCostDataEnabled bool `json:"omnitureCostDataEnabled,omitempty"` - - // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. - // This property can be enabled only when the "Advanced Ad Serving" - // account setting is enabled. + // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. This + // property can be enabled only when the "Advanced Ad Serving" account setting + // is enabled. OmnitureIntegrationEnabled bool `json:"omnitureIntegrationEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "OmnitureCostDataEnabled") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OmnitureSettings) MarshalJSON() ([]byte, error) { +func (s OmnitureSettings) MarshalJSON() ([]byte, error) { type NoMethod OmnitureSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystem: Contains information about an operating system that -// can be targeted by ads. +// OperatingSystem: Contains information about an operating system that can be +// targeted by ads. type OperatingSystem struct { - // DartId: DART ID of this operating system. This is the ID used for - // targeting. + // DartId: DART ID of this operating system. This is the ID used for targeting. DartId int64 `json:"dartId,omitempty,string"` - // Desktop: Whether this operating system is for desktop. Desktop bool `json:"desktop,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystem". Kind string `json:"kind,omitempty"` - // Mobile: Whether this operating system is for mobile. Mobile bool `json:"mobile,omitempty"` - // Name: Name of this operating system. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DartId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DartId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DartId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystem) MarshalJSON() ([]byte, error) { +func (s OperatingSystem) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersion: Contains information about a particular -// version of an operating system that can be targeted by ads. +// OperatingSystemVersion: Contains information about a particular version of +// an operating system that can be targeted by ads. type OperatingSystemVersion struct { // Id: ID of this operating system version. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersion". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version (leftmost number) of this operating - // system version. + // MajorVersion: Major version (leftmost number) of this operating system + // version. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version (number after the first dot) of this - // operating system version. + // MinorVersion: Minor version (number after the first dot) of this operating + // system version. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this operating system version. Name string `json:"name,omitempty"` - // OperatingSystem: Operating system of this operating system version. OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersion) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersion) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersionsListResponse: Operating System Version List -// Response +// OperatingSystemVersionsListResponse: Operating System Version List Response type OperatingSystemVersionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersionsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystemVersions: Operating system version collection. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperatingSystemsListResponse: Operating System List Response type OperatingSystemsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystems: Operating system collection. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OptimizationActivity: Creative optimization activity. type OptimizationActivity struct { - // FloodlightActivityId: Floodlight activity ID of this optimization - // activity. This is a required field. + // FloodlightActivityId: Floodlight activity ID of this optimization activity. + // This is a required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // FloodlightActivityIdDimensionValue: Dimension value for the ID of the // floodlight activity. This is a read-only, auto-generated field. FloodlightActivityIdDimensionValue *DimensionValue `json:"floodlightActivityIdDimensionValue,omitempty"` - - // Weight: Weight associated with this optimization. The weight assigned - // will be understood in proportion to the weights assigned to the other + // Weight: Weight associated with this optimization. The weight assigned will + // be understood in proportion to the weights assigned to the other // optimization activities. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OptimizationActivity) MarshalJSON() ([]byte, error) { +func (s OptimizationActivity) MarshalJSON() ([]byte, error) { type NoMethod OptimizationActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Order: Describes properties of a Planning order. type Order struct { // AccountId: Account ID of this order. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // ApproverUserProfileIds: IDs for users that have to approve documents - // created for this order. + // ApproverUserProfileIds: IDs for users that have to approve documents created + // for this order. ApproverUserProfileIds googleapi.Int64s `json:"approverUserProfileIds,omitempty"` - // BuyerInvoiceId: Buyer invoice ID associated with this order. BuyerInvoiceId string `json:"buyerInvoiceId,omitempty"` - // BuyerOrganizationName: Name of the buyer organization. BuyerOrganizationName string `json:"buyerOrganizationName,omitempty"` - // Comments: Comments in this order. Comments string `json:"comments,omitempty"` - // Contacts: Contacts for this order. Contacts []*OrderContact `json:"contacts,omitempty"` - // Id: ID of this order. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#order". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#order". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this order. + // LastModifiedInfo: Information about the most recent modification of this + // order. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this order. Name string `json:"name,omitempty"` - // Notes: Notes of this order. Notes string `json:"notes,omitempty"` - - // PlanningTermId: ID of the terms and conditions template used in this - // order. + // PlanningTermId: ID of the terms and conditions template used in this order. PlanningTermId int64 `json:"planningTermId,omitempty,string"` - // ProjectId: Project ID of this order. ProjectId int64 `json:"projectId,omitempty,string"` - // SellerOrderId: Seller order ID associated with this order. SellerOrderId string `json:"sellerOrderId,omitempty"` - // SellerOrganizationName: Name of the seller organization. SellerOrganizationName string `json:"sellerOrganizationName,omitempty"` - // SiteId: Site IDs this order is associated with. SiteId googleapi.Int64s `json:"siteId,omitempty"` - // SiteNames: Free-form site names this order is associated with. SiteNames []string `json:"siteNames,omitempty"` - // SubaccountId: Subaccount ID of this order. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TermsAndConditions: Terms and conditions of this order. TermsAndConditions string `json:"termsAndConditions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Order) MarshalJSON() ([]byte, error) { +func (s Order) MarshalJSON() ([]byte, error) { type NoMethod Order - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderContact: Contact of an order. type OrderContact struct { - // ContactInfo: Free-form information about this contact. It could be - // any information related to this contact in addition to type, title, - // name, and signature user profile ID. + // ContactInfo: Free-form information about this contact. It could be any + // information related to this contact in addition to type, title, name, and + // signature user profile ID. ContactInfo string `json:"contactInfo,omitempty"` - // ContactName: Name of this contact. ContactName string `json:"contactName,omitempty"` - // ContactTitle: Title of this contact. ContactTitle string `json:"contactTitle,omitempty"` - // ContactType: Type of this contact. // // Possible values: @@ -9327,87 +7490,64 @@ type OrderContact struct { // "PLANNING_ORDER_CONTACT_BUYER_BILLING_CONTACT" // "PLANNING_ORDER_CONTACT_SELLER_CONTACT" ContactType string `json:"contactType,omitempty"` - - // SignatureUserProfileId: ID of the user profile containing the - // signature that will be embedded into order documents. + // SignatureUserProfileId: ID of the user profile containing the signature that + // will be embedded into order documents. SignatureUserProfileId int64 `json:"signatureUserProfileId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ContactInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContactInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContactInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderContact) MarshalJSON() ([]byte, error) { +func (s OrderContact) MarshalJSON() ([]byte, error) { type NoMethod OrderContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocument: Contains properties of a Planning order document. type OrderDocument struct { // AccountId: Account ID of this order document. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order document. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AmendedOrderDocumentId: The amended order document ID of this order - // document. An order document can be created by optionally amending - // another order document so that the change history can be preserved. + // document. An order document can be created by optionally amending another + // order document so that the change history can be preserved. AmendedOrderDocumentId int64 `json:"amendedOrderDocumentId,omitempty,string"` - // ApprovedByUserProfileIds: IDs of users who have approved this order // document. ApprovedByUserProfileIds googleapi.Int64s `json:"approvedByUserProfileIds,omitempty"` - // Cancelled: Whether this order document is cancelled. Cancelled bool `json:"cancelled,omitempty"` - // CreatedInfo: Information about the creation of this order document. - CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"` - - EffectiveDate string `json:"effectiveDate,omitempty"` - + CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"` + EffectiveDate string `json:"effectiveDate,omitempty"` // Id: ID of this order document. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocument". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocument". Kind string `json:"kind,omitempty"` - - // LastSentRecipients: List of email addresses that received the last - // sent document. + // LastSentRecipients: List of email addresses that received the last sent + // document. LastSentRecipients []string `json:"lastSentRecipients,omitempty"` - - LastSentTime string `json:"lastSentTime,omitempty"` - + LastSentTime string `json:"lastSentTime,omitempty"` // OrderId: ID of the order from which this order document is created. OrderId int64 `json:"orderId,omitempty,string"` - // ProjectId: Project ID of this order document. ProjectId int64 `json:"projectId,omitempty,string"` - // Signed: Whether this order document has been signed. Signed bool `json:"signed,omitempty"` - // SubaccountId: Subaccount ID of this order document. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Title: Title of this order document. Title string `json:"title,omitempty"` - // Type: Type of this order document // // Possible values: @@ -9415,208 +7555,154 @@ type OrderDocument struct { // "PLANNING_ORDER_TYPE_CHANGE_ORDER" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocument) MarshalJSON() ([]byte, error) { +func (s OrderDocument) MarshalJSON() ([]byte, error) { type NoMethod OrderDocument - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocumentsListResponse: Order document List Response type OrderDocumentsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocumentsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocumentsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // OrderDocuments: Order document collection OrderDocuments []*OrderDocument `json:"orderDocuments,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { +func (s OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderDocumentsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrdersListResponse: Order List Response type OrdersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ordersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ordersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Orders: Order collection. Orders []*Order `json:"orders,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersListResponse) MarshalJSON() ([]byte, error) { +func (s OrdersListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PathToConversionReportCompatibleFields: Represents fields that are // compatible to be selected for a report of type "PATH_TO_CONVERSION". type PathToConversionReportCompatibleFields struct { - // ConversionDimensions: Conversion dimensions which are compatible to - // be selected in the "conversionDimensions" section of the report. + // ConversionDimensions: Conversion dimensions which are compatible to be + // selected in the "conversionDimensions" section of the report. ConversionDimensions []*Dimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: Custom floodlight variables which are - // compatible to be selected in the "customFloodlightVariables" section - // of the report. + // CustomFloodlightVariables: Custom floodlight variables which are compatible + // to be selected in the "customFloodlightVariables" section of the report. CustomFloodlightVariables []*Dimension `json:"customFloodlightVariables,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#pathToConversionReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PerInteractionDimensions: Per-interaction dimensions which are - // compatible to be selected in the "perInteractionDimensions" section - // of the report. + // PerInteractionDimensions: Per-interaction dimensions which are compatible to + // be selected in the "perInteractionDimensions" section of the report. PerInteractionDimensions []*Dimension `json:"perInteractionDimensions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConversionDimensions") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ConversionDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConversionDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConversionDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod PathToConversionReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Placement: Contains properties of a placement. type Placement struct { - // AccountId: Account ID of this placement. This field can be left - // blank. + // AccountId: Account ID of this placement. This field can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdBlockingOptOut: Whether this placement opts out of ad blocking. - // When true, ad blocking is disabled for this placement. When false, - // the campaign and site settings take effect. + // AdBlockingOptOut: Whether this placement opts out of ad blocking. When true, + // ad blocking is disabled for this placement. When false, the campaign and + // site settings take effect. AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - - // AdditionalSizes: Additional sizes associated with this placement. - // When inserting or updating a placement, only the size ID field is - // used. + // AdditionalSizes: Additional sizes associated with this placement. When + // inserting or updating a placement, only the size ID field is used. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // AdvertiserId: Advertiser ID of this placement. This field can be left - // blank. + // AdvertiserId: Advertiser ID of this placement. This field can be left blank. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement. This field is a required - // field on insertion. + // CampaignId: Campaign ID of this placement. This field is a required field on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - // Comment: Comments for this placement. Comment string `json:"comment,omitempty"` - - // Compatibility: Placement compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices - // or in mobile apps for regular or interstitial ads respectively. APP - // and APP_INTERSTITIAL are no longer allowed for new placement - // insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. This field is required on insertion. + // Compatibility: Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL + // refer to rendering on desktop, on mobile devices or in mobile apps for + // regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no + // longer allowed for new placement insertions. Instead, use DISPLAY or + // DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video + // ads developed with the VAST standard. This field is required on insertion. // // Possible values: // "DISPLAY" @@ -9626,113 +7712,85 @@ type Placement struct { // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility string `json:"compatibility,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement. + // ContentCategoryId: ID of the content category assigned to this placement. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement. This is - // a read-only field. + // CreateInfo: Information about the creation of this placement. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID of this placement. On insert, you - // must set either this field or the siteId field to specify the site - // associated with this placement. This is a required field that is - // read-only after insertion. + // DirectorySiteId: Directory site ID of this placement. On insert, you must + // set either this field or the siteId field to specify the site associated + // with this placement. This is a required field that is read-only after + // insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this placement. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this placement. This is a read-only, - // auto-generated field. + // KeyName: Key name of this placement. This is a read-only, auto-generated + // field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placement". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placement". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // LookbackConfiguration: Lookback window settings for this placement. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // Name: Name of this placement.This is a required field and must be - // less than or equal to 256 characters long. + // Name: Name of this placement.This is a required field and must be less than + // or equal to 256 characters long. Name string `json:"name,omitempty"` - - // PaymentApproved: Whether payment was approved for this placement. - // This is a read-only field relevant only to publisher-paid placements. + // PaymentApproved: Whether payment was approved for this placement. This is a + // read-only field relevant only to publisher-paid placements. PaymentApproved bool `json:"paymentApproved,omitempty"` - - // PaymentSource: Payment source for this placement. This is a required - // field that is read-only after insertion. + // PaymentSource: Payment source for this placement. This is a required field + // that is read-only after insertion. // // Possible values: // "PLACEMENT_AGENCY_PAID" // "PLACEMENT_PUBLISHER_PAID" PaymentSource string `json:"paymentSource,omitempty"` - // PlacementGroupId: ID of this placement's group, if applicable. PlacementGroupId int64 `json:"placementGroupId,omitempty,string"` - - // PlacementGroupIdDimensionValue: Dimension value for the ID of the - // placement group. This is a read-only, auto-generated field. + // PlacementGroupIdDimensionValue: Dimension value for the ID of the placement + // group. This is a read-only, auto-generated field. PlacementGroupIdDimensionValue *DimensionValue `json:"placementGroupIdDimensionValue,omitempty"` - // PlacementStrategyId: ID of the placement strategy assigned to this // placement. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement. This field is - // required on insertion, specifically subfields startDate, endDate and - // pricingType. + // PricingSchedule: Pricing schedule of this placement. This field is required + // on insertion, specifically subfields startDate, endDate and pricingType. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // Primary: Whether this placement is the primary placement of a - // roadblock (placement group). You cannot change this field from true - // to false. Setting this field to true will automatically set the - // primary field on the original primary placement of the roadblock to - // false, and it will automatically set the roadblock's - // primaryPlacementId field to the ID of this placement. + // Primary: Whether this placement is the primary placement of a roadblock + // (placement group). You cannot change this field from true to false. Setting + // this field to true will automatically set the primary field on the original + // primary placement of the roadblock to false, and it will automatically set + // the roadblock's primaryPlacementId field to the ID of this placement. Primary bool `json:"primary,omitempty"` - - // PublisherUpdateInfo: Information about the last publisher update. - // This is a read-only field. + // PublisherUpdateInfo: Information about the last publisher update. This is a + // read-only field. PublisherUpdateInfo *LastModifiedInfo `json:"publisherUpdateInfo,omitempty"` - - // SiteId: Site ID associated with this placement. On insert, you must - // set either this field or the directorySiteId field to specify the - // site associated with this placement. This is a required field that is - // read-only after insertion. + // SiteId: Site ID associated with this placement. On insert, you must set + // either this field or the directorySiteId field to specify the site + // associated with this placement. This is a required field that is read-only + // after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // Size: Size associated with this placement. When inserting or updating - // a placement, only the size ID field is used. This field is required - // on insertion. + // Size: Size associated with this placement. When inserting or updating a + // placement, only the size ID field is used. This field is required on + // insertion. Size *Size `json:"size,omitempty"` - // SslRequired: Whether creatives assigned to this placement must be // SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - // Status: Third-party placement status. // // Possible values: @@ -9743,25 +7801,19 @@ type Placement struct { // "ACKNOWLEDGE_ACCEPTANCE" // "DRAFT" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this placement. This field can be left - // blank. + // SubaccountId: Subaccount ID of this placement. This field can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TagFormats: Tag formats to generate for this placement. This field is - // required on insertion. Acceptable values are: - - // "PLACEMENT_TAG_STANDARD" - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - - // "PLACEMENT_TAG_IFRAME_ILAYER" - "PLACEMENT_TAG_INTERNAL_REDIRECT" - - // "PLACEMENT_TAG_JAVASCRIPT" - + // required on insertion. Acceptable values are: - "PLACEMENT_TAG_STANDARD" - + // "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - "PLACEMENT_TAG_IFRAME_ILAYER" - + // "PLACEMENT_TAG_INTERNAL_REDIRECT" - "PLACEMENT_TAG_JAVASCRIPT" - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - - // "PLACEMENT_TAG_CLICK_COMMANDS" - + // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - "PLACEMENT_TAG_CLICK_COMMANDS" - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - - // "PLACEMENT_TAG_TRACKING" - "PLACEMENT_TAG_TRACKING_IFRAME" - - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" + // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - "PLACEMENT_TAG_TRACKING" - + // "PLACEMENT_TAG_TRACKING_IFRAME" - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" // // Possible values: // "PLACEMENT_TAG_STANDARD" @@ -9785,30 +7837,25 @@ type Placement struct { // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" // "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" TagFormats []string `json:"tagFormats,omitempty"` - // TagSetting: Tag settings for this placement. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOut: Whether Verification and ActiveView are - // disabled for in-stream video creatives for this placement. The same - // setting videoActiveViewOptOut exists on the site level -- the opt out - // occurs if either of these settings are true. These settings are - // distinct from DirectorySites.settings.activeViewOptOut or + // VideoActiveViewOptOut: Whether Verification and ActiveView are disabled for + // in-stream video creatives for this placement. The same setting + // videoActiveViewOptOut exists on the site level -- the opt out occurs if + // either of these settings are true. These settings are distinct from + // DirectorySites.settings.activeViewOptOut or // Sites.siteSettings.activeViewOptOut which only apply to display ads. - // However, Accounts.activeViewOptOut opts out both video traffic, as - // well as display ads, from Verification and ActiveView. + // However, Accounts.activeViewOptOut opts out both video traffic, as well as + // display ads, from Verification and ActiveView. VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"` - - // VideoSettings: A collection of settings which affect video creatives - // served through this placement. Applicable to placements with - // IN_STREAM_VIDEO compatibility. + // VideoSettings: A collection of settings which affect video creatives served + // through this placement. Applicable to placements with IN_STREAM_VIDEO + // compatibility. VideoSettings *VideoSettings `json:"videoSettings,omitempty"` - - // VpaidAdapterChoice: VPAID adapter setting for this placement. - // Controls which VPAID format the measurement adapter will use for - // in-stream video creatives assigned to this placement. *Note:* Flash - // is no longer supported. This field now defaults to HTML5 when the - // following values are provided: FLASH, BOTH. + // VpaidAdapterChoice: VPAID adapter setting for this placement. Controls which + // VPAID format the measurement adapter will use for in-stream video creatives + // assigned to this placement. *Note:* Flash is no longer supported. This field + // now defaults to HTML5 when the following values are provided: FLASH, BOTH. // // Possible values: // "DEFAULT" @@ -9817,31 +7864,24 @@ type Placement struct { // "BOTH" VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Placement) MarshalJSON() ([]byte, error) { +func (s Placement) MarshalJSON() ([]byte, error) { type NoMethod Placement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementAssignment: Placement Assignment. @@ -9849,419 +7889,319 @@ type PlacementAssignment struct { // Active: Whether this placement assignment is active. When true, the // placement will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // PlacementId: ID of the placement to be assigned. This is a required - // field. + // PlacementId: ID of the placement to be assigned. This is a required field. PlacementId int64 `json:"placementId,omitempty,string"` - - // PlacementIdDimensionValue: Dimension value for the ID of the - // placement. This is a read-only, auto-generated field. + // PlacementIdDimensionValue: Dimension value for the ID of the placement. This + // is a read-only, auto-generated field. PlacementIdDimensionValue *DimensionValue `json:"placementIdDimensionValue,omitempty"` - - // SslRequired: Whether the placement to be assigned requires SSL. This - // is a read-only field that is auto-generated when the ad is inserted - // or updated. + // SslRequired: Whether the placement to be assigned requires SSL. This is a + // read-only field that is auto-generated when the ad is inserted or updated. SslRequired bool `json:"sslRequired,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementAssignment) MarshalJSON() ([]byte, error) { +func (s PlacementAssignment) MarshalJSON() ([]byte, error) { type NoMethod PlacementAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroup: Contains properties of a package or roadblock. type PlacementGroup struct { - // AccountId: Account ID of this placement group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this placement group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this placement group. This is a required + // field on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement group is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement group. This field is - // required on insertion. + // CampaignId: Campaign ID of this placement group. This field is required on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ChildPlacementIds: IDs of placements which are assigned to this - // placement group. This is a read-only, auto-generated field. + // ChildPlacementIds: IDs of placements which are assigned to this placement + // group. This is a read-only, auto-generated field. ChildPlacementIds googleapi.Int64s `json:"childPlacementIds,omitempty"` - // Comment: Comments for this placement group. Comment string `json:"comment,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement group. + // ContentCategoryId: ID of the content category assigned to this placement + // group. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement group. - // This is a read-only field. + // CreateInfo: Information about the creation of this placement group. This is + // a read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID associated with this placement - // group. On insert, you must set either this field or the site_id field - // to specify the site associated with this placement group. This is a - // required field that is read-only after insertion. + // DirectorySiteId: Directory site ID associated with this placement group. On + // insert, you must set either this field or the site_id field to specify the + // site associated with this placement group. This is a required field that is + // read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - - // Id: ID of this placement group. This is a read-only, auto-generated - // field. + // Id: ID of this placement group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement group. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement group. This + // is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroup". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement group. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement group. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this placement group. This is a required field and must - // be less than 256 characters long. + // Name: Name of this placement group. This is a required field and must be + // less than 256 characters long. Name string `json:"name,omitempty"` - - // PlacementGroupType: Type of this placement group. A package is a - // simple group of placements that acts as a single pricing point for a - // group of tags. A roadblock is a group of placements that not only - // acts as a single pricing point, but also assumes that all the tags in - // it will be served at the same time. A roadblock requires one of its - // assigned placements to be marked as primary for reporting. This field - // is required on insertion. + // PlacementGroupType: Type of this placement group. A package is a simple + // group of placements that acts as a single pricing point for a group of tags. + // A roadblock is a group of placements that not only acts as a single pricing + // point, but also assumes that all the tags in it will be served at the same + // time. A roadblock requires one of its assigned placements to be marked as + // primary for reporting. This field is required on insertion. // // Possible values: // "PLACEMENT_PACKAGE" // "PLACEMENT_ROADBLOCK" PlacementGroupType string `json:"placementGroupType,omitempty"` - - // PlacementStrategyId: ID of the placement strategy assigned to this - // placement group. + // PlacementStrategyId: ID of the placement strategy assigned to this placement + // group. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement group. This field - // is required on insertion. + // PricingSchedule: Pricing schedule of this placement group. This field is + // required on insertion. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // PrimaryPlacementId: ID of the primary placement, used to calculate - // the media cost of a roadblock (placement group). Modifying this field - // will automatically modify the primary field on all affected roadblock - // child placements. + // PrimaryPlacementId: ID of the primary placement, used to calculate the media + // cost of a roadblock (placement group). Modifying this field will + // automatically modify the primary field on all affected roadblock child + // placements. PrimaryPlacementId int64 `json:"primaryPlacementId,omitempty,string"` - - // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the - // primary placement. This is a read-only, auto-generated field. + // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the primary + // placement. This is a read-only, auto-generated field. PrimaryPlacementIdDimensionValue *DimensionValue `json:"primaryPlacementIdDimensionValue,omitempty"` - - // SiteId: Site ID associated with this placement group. On insert, you - // must set either this field or the directorySiteId field to specify - // the site associated with this placement group. This is a required - // field that is read-only after insertion. + // SiteId: Site ID associated with this placement group. On insert, you must + // set either this field or the directorySiteId field to specify the site + // associated with this placement group. This is a required field that is + // read-only after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // SubaccountId: Subaccount ID of this placement group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this placement group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroup) MarshalJSON() ([]byte, error) { +func (s PlacementGroup) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroupsListResponse: Placement Group List Response type PlacementGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementGroups: Placement group collection. PlacementGroups []*PlacementGroup `json:"placementGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategiesListResponse: Placement Strategy List Response type PlacementStrategiesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementStrategies: Placement strategy collection. PlacementStrategies []*PlacementStrategy `json:"placementStrategies,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategy: Contains properties of a placement strategy. type PlacementStrategy struct { - // AccountId: Account ID of this placement strategy.This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement strategy.This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this placement strategy. This is a read-only, - // auto-generated field. + // Id: ID of this placement strategy. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategy". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategy". Kind string `json:"kind,omitempty"` - - // Name: Name of this placement strategy. This is a required field. It - // must be less than 256 characters long and unique among placement - // strategies of the same account. + // Name: Name of this placement strategy. This is a required field. It must be + // less than 256 characters long and unique among placement strategies of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategy) MarshalJSON() ([]byte, error) { +func (s PlacementStrategy) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementTag: Placement Tag type PlacementTag struct { // PlacementId: Placement ID PlacementId int64 `json:"placementId,omitempty,string"` - // TagDatas: Tags generated for this placement. TagDatas []*TagData `json:"tagDatas,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlacementId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PlacementId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PlacementId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementTag) MarshalJSON() ([]byte, error) { +func (s PlacementTag) MarshalJSON() ([]byte, error) { type NoMethod PlacementTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsGenerateTagsResponse: Placement GenerateTags Response type PlacementsGenerateTagsResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsGenerateTagsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsGenerateTagsResponse". Kind string `json:"kind,omitempty"` - // PlacementTags: Set of generated tags for the specified placements. PlacementTags []*PlacementTag `json:"placementTags,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsGenerateTagsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsListResponse: Placement List Response type PlacementsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Placements: Placement collection. Placements []*Placement `json:"placements,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformType: Contains information about a platform type that can be @@ -10269,88 +8209,68 @@ func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { type PlatformType struct { // Id: ID of this platform type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformType". Kind string `json:"kind,omitempty"` - // Name: Name of this platform type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformType) MarshalJSON() ([]byte, error) { +func (s PlatformType) MarshalJSON() ([]byte, error) { type NoMethod PlatformType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformTypesListResponse: Platform Type List Response type PlatformTypesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformTypesListResponse". Kind string `json:"kind,omitempty"` - // PlatformTypes: Platform type collection. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformTypesListResponse) MarshalJSON() ([]byte, error) { +func (s PlatformTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlatformTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PopupWindowProperties: Popup Window Properties. type PopupWindowProperties struct { // Dimension: Popup dimension for a creative. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA and all - // VPAID + // Applicable to the following creative types: all RICH_MEDIA and all VPAID Dimension *Size `json:"dimension,omitempty"` - - // Offset: Upper-left corner coordinates of the popup window. Applicable - // if positionType is COORDINATES. + // Offset: Upper-left corner coordinates of the popup window. Applicable if + // positionType is COORDINATES. Offset *OffsetPosition `json:"offset,omitempty"` - // PositionType: Popup window position either centered or at specific // coordinate. // @@ -10358,130 +8278,97 @@ type PopupWindowProperties struct { // "CENTER" // "COORDINATES" PositionType string `json:"positionType,omitempty"` - // ShowAddressBar: Whether to display the browser address bar. ShowAddressBar bool `json:"showAddressBar,omitempty"` - // ShowMenuBar: Whether to display the browser menu bar. ShowMenuBar bool `json:"showMenuBar,omitempty"` - // ShowScrollBar: Whether to display the browser scroll bar. ShowScrollBar bool `json:"showScrollBar,omitempty"` - // ShowStatusBar: Whether to display the browser status bar. ShowStatusBar bool `json:"showStatusBar,omitempty"` - // ShowToolBar: Whether to display the browser tool bar. ShowToolBar bool `json:"showToolBar,omitempty"` - // Title: Title of popup window. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimension") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PopupWindowProperties) MarshalJSON() ([]byte, error) { +func (s PopupWindowProperties) MarshalJSON() ([]byte, error) { type NoMethod PopupWindowProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostalCode: Contains information about a postal code that can be -// targeted by ads. +// PostalCode: Contains information about a postal code that can be targeted by +// ads. type PostalCode struct { // Code: Postal code. This is equivalent to the id field. Code string `json:"code,omitempty"` - - // CountryCode: Country code of the country to which this postal code - // belongs. + // CountryCode: Country code of the country to which this postal code belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this postal code - // belongs. + // CountryDartId: DART ID of the country to which this postal code belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this postal code. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCode". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCode". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCode) MarshalJSON() ([]byte, error) { +func (s PostalCode) MarshalJSON() ([]byte, error) { type NoMethod PostalCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PostalCodesListResponse: Postal Code List Response type PostalCodesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCodesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCodesListResponse". Kind string `json:"kind,omitempty"` - // PostalCodes: Postal code collection. PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCodesListResponse) MarshalJSON() ([]byte, error) { +func (s PostalCodesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PostalCodesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Pricing: Pricing Information @@ -10493,28 +8380,24 @@ type Pricing struct { // "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY" // "PLANNING_PLACEMENT_CAP_COST_TYPE_CUMULATIVE" CapCostType string `json:"capCostType,omitempty"` - - EndDate string `json:"endDate,omitempty"` - - // Flights: Flights of this inventory item. A flight (a.k.a. pricing - // period) represents the inventory item pricing information for a - // specific period of time. + EndDate string `json:"endDate,omitempty"` + // Flights: Flights of this inventory item. A flight (a.k.a. pricing period) + // represents the inventory item pricing information for a specific period of + // time. Flights []*Flight `json:"flights,omitempty"` - - // GroupType: Group type of this inventory item if it represents a - // placement group. Is null otherwise. There are two type of placement - // groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of - // inventory items that acts as a single pricing point for a group of - // tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory - // items that not only acts as a single pricing point, but also assumes - // that all the tags in it will be served at the same time. A roadblock - // requires one of its assigned inventory items to be marked as primary. + // GroupType: Group type of this inventory item if it represents a placement + // group. Is null otherwise. There are two type of placement groups: + // PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items + // that acts as a single pricing point for a group of tags. + // PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that + // not only acts as a single pricing point, but also assumes that all the tags + // in it will be served at the same time. A roadblock requires one of its + // assigned inventory items to be marked as primary. // // Possible values: // "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" // "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" GroupType string `json:"groupType,omitempty"` - // PricingType: Pricing type of this inventory item. // // Possible values: @@ -10527,30 +8410,23 @@ type Pricing struct { // "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS" // "PLANNING_PLACEMENT_PRICING_TYPE_CPM_ACTIVEVIEW" PricingType string `json:"pricingType,omitempty"` - - StartDate string `json:"startDate,omitempty"` - + StartDate string `json:"startDate,omitempty"` // ForceSendFields is a list of field names (e.g. "CapCostType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pricing) MarshalJSON() ([]byte, error) { +func (s Pricing) MarshalJSON() ([]byte, error) { type NoMethod Pricing - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedule: Pricing Schedule @@ -10562,26 +8438,19 @@ type PricingSchedule struct { // "CAP_COST_MONTHLY" // "CAP_COST_CUMULATIVE" CapCostOption string `json:"capCostOption,omitempty"` - // DisregardOverdelivery: Whether cap costs are ignored by ad serving. - DisregardOverdelivery bool `json:"disregardOverdelivery,omitempty"` - - EndDate string `json:"endDate,omitempty"` - - // Flighted: Whether this placement is flighted. If true, pricing - // periods will be computed automatically. + DisregardOverdelivery bool `json:"disregardOverdelivery,omitempty"` + EndDate string `json:"endDate,omitempty"` + // Flighted: Whether this placement is flighted. If true, pricing periods will + // be computed automatically. Flighted bool `json:"flighted,omitempty"` - - // FloodlightActivityId: Floodlight activity ID associated with this - // placement. This field should be set when placement pricing type is - // set to PRICING_TYPE_CPA. + // FloodlightActivityId: Floodlight activity ID associated with this placement. + // This field should be set when placement pricing type is set to + // PRICING_TYPE_CPA. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // PricingPeriods: Pricing periods for this placement. PricingPeriods []*PricingSchedulePricingPeriod `json:"pricingPeriods,omitempty"` - - // PricingType: Placement pricing type. This field is required on - // insertion. + // PricingType: Placement pricing type. This field is required on insertion. // // Possible values: // "PRICING_TYPE_CPM" @@ -10590,84 +8459,64 @@ type PricingSchedule struct { // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" // "PRICING_TYPE_FLAT_RATE_CLICKS" // "PRICING_TYPE_CPM_ACTIVEVIEW" - PricingType string `json:"pricingType,omitempty"` - - StartDate string `json:"startDate,omitempty"` - + PricingType string `json:"pricingType,omitempty"` + StartDate string `json:"startDate,omitempty"` TestingStartDate string `json:"testingStartDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CapCostOption") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostOption") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostOption") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedule) MarshalJSON() ([]byte, error) { +func (s PricingSchedule) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedulePricingPeriod: Pricing Period type PricingSchedulePricingPeriod struct { EndDate string `json:"endDate,omitempty"` - // PricingComment: Comments for this pricing period. PricingComment string `json:"pricingComment,omitempty"` - // RateOrCostNanos: Rate or cost of this pricing period in nanos (i.e., - // multipled by 1000000000). Acceptable values are 0 to - // 1000000000000000000, inclusive. - RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"` - - StartDate string `json:"startDate,omitempty"` - - // Units: Units of this pricing period. Acceptable values are 0 to - // 10000000000, inclusive. + // multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, + // inclusive. + RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"` + StartDate string `json:"startDate,omitempty"` + // Units: Units of this pricing period. Acceptable values are 0 to 10000000000, + // inclusive. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { +func (s PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedulePricingPeriod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Project: Contains properties of a Planning project. type Project struct { // AccountId: Account ID of this project. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this project. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AudienceAgeGroup: Audience age group of this project. // // Possible values: @@ -10679,191 +8528,140 @@ type Project struct { // "PLANNING_AUDIENCE_AGE_65_OR_MORE" // "PLANNING_AUDIENCE_AGE_UNKNOWN" AudienceAgeGroup string `json:"audienceAgeGroup,omitempty"` - // AudienceGender: Audience gender of this project. // // Possible values: // "PLANNING_AUDIENCE_GENDER_MALE" // "PLANNING_AUDIENCE_GENDER_FEMALE" AudienceGender string `json:"audienceGender,omitempty"` - - // Budget: Budget of this project in the currency specified by the - // current account. The value stored in this field represents only the - // non-fractional amount. For example, for USD, the smallest value that - // can be represented by this field is 1 US dollar. + // Budget: Budget of this project in the currency specified by the current + // account. The value stored in this field represents only the non-fractional + // amount. For example, for USD, the smallest value that can be represented by + // this field is 1 US dollar. Budget int64 `json:"budget,omitempty,string"` - // ClientBillingCode: Client billing code of this project. ClientBillingCode string `json:"clientBillingCode,omitempty"` - // ClientName: Name of the project client. ClientName string `json:"clientName,omitempty"` - - EndDate string `json:"endDate,omitempty"` - + EndDate string `json:"endDate,omitempty"` // Id: ID of this project. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#project". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#project". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this project. + // LastModifiedInfo: Information about the most recent modification of this + // project. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this project. Name string `json:"name,omitempty"` - // Overview: Overview of this project. - Overview string `json:"overview,omitempty"` - + Overview string `json:"overview,omitempty"` StartDate string `json:"startDate,omitempty"` - // SubaccountId: Subaccount ID of this project. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TargetClicks: Number of clicks that the advertiser is targeting. TargetClicks int64 `json:"targetClicks,omitempty,string"` - - // TargetConversions: Number of conversions that the advertiser is - // targeting. + // TargetConversions: Number of conversions that the advertiser is targeting. TargetConversions int64 `json:"targetConversions,omitempty,string"` - // TargetCpaNanos: CPA that the advertiser is targeting. TargetCpaNanos int64 `json:"targetCpaNanos,omitempty,string"` - // TargetCpcNanos: CPC that the advertiser is targeting. TargetCpcNanos int64 `json:"targetCpcNanos,omitempty,string"` - - // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser - // is targeting. + // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser is + // targeting. TargetCpmActiveViewNanos int64 `json:"targetCpmActiveViewNanos,omitempty,string"` - // TargetCpmNanos: CPM that the advertiser is targeting. TargetCpmNanos int64 `json:"targetCpmNanos,omitempty,string"` - - // TargetImpressions: Number of impressions that the advertiser is - // targeting. + // TargetImpressions: Number of impressions that the advertiser is targeting. TargetImpressions int64 `json:"targetImpressions,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Project) MarshalJSON() ([]byte, error) { +func (s Project) MarshalJSON() ([]byte, error) { type NoMethod Project - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProjectsListResponse: Project List Response type ProjectsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#projectsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#projectsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Projects: Project collection. Projects []*Project `json:"projects,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProjectsListResponse) MarshalJSON() ([]byte, error) { +func (s ProjectsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ProjectsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReachReportCompatibleFields: Represents fields that are compatible to -// be selected for a report of type "REACH". +// ReachReportCompatibleFields: Represents fields that are compatible to be +// selected for a report of type "REACH". type ReachReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - - // ReachByFrequencyMetrics: Metrics which are compatible to be selected - // in the "reachByFrequencyMetricNames" section of the report. + // ReachByFrequencyMetrics: Metrics which are compatible to be selected in the + // "reachByFrequencyMetricNames" section of the report. ReachByFrequencyMetrics []*Metric `json:"reachByFrequencyMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Recipient: Represents a recipient. @@ -10874,165 +8672,122 @@ type Recipient struct { // "LINK" // "ATTACHMENT" DeliveryType string `json:"deliveryType,omitempty"` - // Email: The email address of the recipient. Email string `json:"email,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#recipient. + // Kind: The kind of resource this is, in this case dfareporting#recipient. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliveryType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliveryType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliveryType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Recipient) MarshalJSON() ([]byte, error) { +func (s Recipient) MarshalJSON() ([]byte, error) { type NoMethod Recipient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Region: Contains information about a region that can be targeted by -// ads. +// Region: Contains information about a region that can be targeted by ads. type Region struct { - // CountryCode: Country code of the country to which this region - // belongs. + // CountryCode: Country code of the country to which this region belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this region. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#region". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#region". Kind string `json:"kind,omitempty"` - // Name: Name of this region. Name string `json:"name,omitempty"` - // RegionCode: Region code. RegionCode string `json:"regionCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Region) MarshalJSON() ([]byte, error) { +func (s Region) MarshalJSON() ([]byte, error) { type NoMethod Region - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RegionsListResponse: Region List Response type RegionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#regionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#regionsListResponse". Kind string `json:"kind,omitempty"` - // Regions: Region collection. Regions []*Region `json:"regions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegionsListResponse) MarshalJSON() ([]byte, error) { +func (s RegionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RegionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingList: Contains properties of a remarketing list. -// Remarketing enables you to create lists of users who have performed -// specific actions on a site, then target ads to members of those -// lists. This resource can be used to manage remarketing lists that are -// owned by your advertisers. To see all remarketing lists that are -// visible to your advertisers, including those that are shared to your -// advertiser or account, use the TargetableRemarketingLists resource. +// RemarketingList: Contains properties of a remarketing list. Remarketing +// enables you to create lists of users who have performed specific actions on +// a site, then target ads to members of those lists. This resource can be used +// to manage remarketing lists that are owned by your advertisers. To see all +// remarketing lists that are visible to your advertisers, including those that +// are shared to your advertiser or account, use the TargetableRemarketingLists +// resource. type RemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // remarketing list. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Remarketing list description. Description string `json:"description,omitempty"` - // Id: Remarketing list ID. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingList". Kind string `json:"kind,omitempty"` - - // LifeSpan: Number of days that a user should remain in the remarketing - // list without an impression. Acceptable values are 1 to 540, - // inclusive. + // LifeSpan: Number of days that a user should remain in the remarketing list + // without an impression. Acceptable values are 1 to 540, inclusive. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListPopulationRule: Rule used to populate the remarketing list with - // users. + // ListPopulationRule: Rule used to populate the remarketing list with users. ListPopulationRule *ListPopulationRule `json:"listPopulationRule,omitempty"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this remarketing list was originated. // // Possible values: @@ -11048,198 +8803,146 @@ type RemarketingList struct { // "REMARKETING_LIST_SOURCE_DMP" // "REMARKETING_LIST_SOURCE_PLAY_STORE" ListSource string `json:"listSource,omitempty"` - - // Name: Name of the remarketing list. This is a required field. Must be - // no greater than 128 characters long. + // Name: Name of the remarketing list. This is a required field. Must be no + // greater than 128 characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingList) MarshalJSON() ([]byte, error) { +func (s RemarketingList) MarshalJSON() ([]byte, error) { type NoMethod RemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingListShare: Contains properties of a remarketing list's -// sharing information. Sharing allows other accounts or advertisers to -// target to your remarketing lists. This resource can be used to manage -// remarketing list sharing to other accounts and advertisers. +// RemarketingListShare: Contains properties of a remarketing list's sharing +// information. Sharing allows other accounts or advertisers to target to your +// remarketing lists. This resource can be used to manage remarketing list +// sharing to other accounts and advertisers. type RemarketingListShare struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListShare". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListShare". Kind string `json:"kind,omitempty"` - - // RemarketingListId: Remarketing list ID. This is a read-only, - // auto-generated field. + // RemarketingListId: Remarketing list ID. This is a read-only, auto-generated + // field. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - // SharedAccountIds: Accounts that the remarketing list is shared with. SharedAccountIds googleapi.Int64s `json:"sharedAccountIds,omitempty"` - - // SharedAdvertiserIds: Advertisers that the remarketing list is shared - // with. + // SharedAdvertiserIds: Advertisers that the remarketing list is shared with. SharedAdvertiserIds googleapi.Int64s `json:"sharedAdvertiserIds,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListShare) MarshalJSON() ([]byte, error) { +func (s RemarketingListShare) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListShare - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RemarketingListsListResponse: Remarketing list response type RemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // RemarketingLists: Remarketing list collection. RemarketingLists []*RemarketingList `json:"remarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s RemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Report: Represents a Report resource. type Report struct { // AccountId: The account ID to which this report belongs. AccountId int64 `json:"accountId,omitempty,string"` - // Criteria: The report criteria for a report of type "STANDARD". Criteria *ReportCriteria `json:"criteria,omitempty"` - // CrossDimensionReachCriteria: The report criteria for a report of type // "CROSS_DIMENSION_REACH". CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"` - // Delivery: The report's email delivery settings. Delivery *ReportDelivery `json:"delivery,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // FileName: The filename used when generating report files for this - // report. + // FileName: The filename used when generating report files for this report. FileName string `json:"fileName,omitempty"` - - // FloodlightCriteria: The report criteria for a report of type - // "FLOODLIGHT". + // FloodlightCriteria: The report criteria for a report of type "FLOODLIGHT". FloodlightCriteria *ReportFloodlightCriteria `json:"floodlightCriteria,omitempty"` - - // Format: The output format of the report. If not specified, default - // format is "CSV". Note that the actual format in the completed report - // file might differ if for instance the report's size exceeds the - // format's capabilities. "CSV" will then be the fallback format. + // Format: The output format of the report. If not specified, default format is + // "CSV". Note that the actual format in the completed report file might differ + // if for instance the report's size exceeds the format's capabilities. "CSV" + // will then be the fallback format. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID identifying this report resource. Id int64 `json:"id,omitempty,string"` - // Kind: The kind of resource this is, in this case dfareporting#report. Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp (in milliseconds since epoch) of when - // this report was last modified. + // LastModifiedTime: The timestamp (in milliseconds since epoch) of when this + // report was last modified. LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"` - // Name: The name of the report. Name string `json:"name,omitempty"` - // OwnerProfileId: The user profile id of the owner of this report. OwnerProfileId int64 `json:"ownerProfileId,omitempty,string"` - // PathToConversionCriteria: The report criteria for a report of type // "PATH_TO_CONVERSION". PathToConversionCriteria *ReportPathToConversionCriteria `json:"pathToConversionCriteria,omitempty"` - // ReachCriteria: The report criteria for a report of type "REACH". ReachCriteria *ReportReachCriteria `json:"reachCriteria,omitempty"` - - // Schedule: The report's schedule. Can only be set if the report's - // 'dateRange' is a relative date range and the relative date range is - // not "TODAY". + // Schedule: The report's schedule. Can only be set if the report's 'dateRange' + // is a relative date range and the relative date range is not "TODAY". Schedule *ReportSchedule `json:"schedule,omitempty"` - - // SubAccountId: The subaccount ID to which this report belongs if - // applicable. + // SubAccountId: The subaccount ID to which this report belongs if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - // Type: The type of the report. // // Possible values: @@ -11250,88 +8953,67 @@ type Report struct { // "FLOODLIGHT" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Report) MarshalJSON() ([]byte, error) { +func (s Report) MarshalJSON() ([]byte, error) { type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportCriteria: The report criteria for a report of type "STANDARD". type ReportCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range for which this report should be run. DateRange *DateRange `json:"dateRange,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. Filters for different dimensions are ANDed, filters for the - // same dimension are grouped together and ORed. + // DimensionFilters: The list of filters on which dimensions are filtered. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - - // Dimensions: The list of standard dimensions the report should - // include. + // Dimensions: The list of standard dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCrossDimensionReachCriteria: The report criteria for a report -// of type "CROSS_DIMENSION_REACH". +// ReportCrossDimensionReachCriteria: The report criteria for a report of type +// "CROSS_DIMENSION_REACH". type ReportCrossDimensionReachCriteria struct { // Breakdown: The list of dimensions the report should include. Breakdown []*SortedDimension `json:"breakdown,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // Dimension: The dimension option. // // Possible values: @@ -11340,404 +9022,302 @@ type ReportCrossDimensionReachCriteria struct { // "SITE_BY_ADVERTISER" // "SITE_BY_CAMPAIGN" Dimension string `json:"dimension,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. + // DimensionFilters: The list of filters on which dimensions are filtered. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // OverlapMetricNames: The list of names of overlap metrics the report - // should include. + // OverlapMetricNames: The list of names of overlap metrics the report should + // include. OverlapMetricNames []string `json:"overlapMetricNames,omitempty"` - // Pivoted: Whether the report is pivoted or not. Defaults to true. Pivoted bool `json:"pivoted,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCrossDimensionReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportDelivery: The report's email delivery settings. type ReportDelivery struct { // EmailOwner: Whether the report should be emailed to the report owner. EmailOwner bool `json:"emailOwner,omitempty"` - - // EmailOwnerDeliveryType: The type of delivery for the owner to - // receive, if enabled. + // EmailOwnerDeliveryType: The type of delivery for the owner to receive, if + // enabled. // // Possible values: // "LINK" // "ATTACHMENT" EmailOwnerDeliveryType string `json:"emailOwnerDeliveryType,omitempty"` - // Message: The message to be sent with each email. Message string `json:"message,omitempty"` - // Recipients: The list of recipients to which to email the report. Recipients []*Recipient `json:"recipients,omitempty"` - // ForceSendFields is a list of field names (e.g. "EmailOwner") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EmailOwner") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EmailOwner") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportDelivery) MarshalJSON() ([]byte, error) { +func (s ReportDelivery) MarshalJSON() ([]byte, error) { type NoMethod ReportDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportFloodlightCriteria: The report criteria for a report of type // "FLOODLIGHT". type ReportFloodlightCriteria struct { - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. Filters for different dimensions are ANDed, filters for the - // same dimension are grouped together and ORed. + // DimensionFilters: The list of filters on which dimensions are filtered. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportFloodlightCriteriaReportProperties `json:"reportProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomRichMediaEvents") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomRichMediaEvents") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomRichMediaEvents") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportFloodlightCriteriaReportProperties: The properties of the -// report. +// ReportFloodlightCriteriaReportProperties: The properties of the report. type ReportFloodlightCriteriaReportProperties struct { - // IncludeAttributedIPConversions: Include conversions that have no - // cookie, but do have an exposure path. + // IncludeAttributedIPConversions: Include conversions that have no cookie, but + // do have an exposure path. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // ForceSendFields is a list of field names (e.g. // "IncludeAttributedIPConversions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "IncludeAttributedIPConversions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "IncludeAttributedIPConversions") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportPathToConversionCriteria: The report criteria for a report of -// type "PATH_TO_CONVERSION". +// ReportPathToConversionCriteria: The report criteria for a report of type +// "PATH_TO_CONVERSION". type ReportPathToConversionCriteria struct { // ActivityFilters: The list of 'dfa:activity' values to filter on. ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - - // ConversionDimensions: The list of conversion dimensions the report - // should include. + // ConversionDimensions: The list of conversion dimensions the report should + // include. ConversionDimensions []*SortedDimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: The list of custom floodlight variables - // the report should include. + // CustomFloodlightVariables: The list of custom floodlight variables the + // report should include. CustomFloodlightVariables []*SortedDimension `json:"customFloodlightVariables,omitempty"` - - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // PerInteractionDimensions: The list of per interaction dimensions the - // report should include. + // PerInteractionDimensions: The list of per interaction dimensions the report + // should include. PerInteractionDimensions []*SortedDimension `json:"perInteractionDimensions,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportPathToConversionCriteriaReportProperties `json:"reportProperties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActivityFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActivityFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActivityFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportPathToConversionCriteriaReportProperties: The properties of the // report. type ReportPathToConversionCriteriaReportProperties struct { - // ClicksLookbackWindow: CM360 checks to see if a click interaction - // occurred within the specified period of time before a conversion. By - // default the value is pulled from Floodlight or you can manually enter - // a custom value. Valid values: 1-90. + // ClicksLookbackWindow: CM360 checks to see if a click interaction occurred + // within the specified period of time before a conversion. By default the + // value is pulled from Floodlight or you can manually enter a custom value. + // Valid values: 1-90. ClicksLookbackWindow int64 `json:"clicksLookbackWindow,omitempty"` - - // ImpressionsLookbackWindow: CM360 checks to see if an impression - // interaction occurred within the specified period of time before a - // conversion. By default the value is pulled from Floodlight or you can - // manually enter a custom value. Valid values: 1-90. + // ImpressionsLookbackWindow: CM360 checks to see if an impression interaction + // occurred within the specified period of time before a conversion. By default + // the value is pulled from Floodlight or you can manually enter a custom + // value. Valid values: 1-90. ImpressionsLookbackWindow int64 `json:"impressionsLookbackWindow,omitempty"` - // IncludeAttributedIPConversions: Deprecated: has no effect. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // MaximumClickInteractions: The maximum number of click interactions to - // include in the report. Advertisers currently paying for E2C reports - // get up to 200 (100 clicks, 100 impressions). If another advertiser in - // your network is paying for E2C, you can have up to 5 total exposures - // per report. + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumClickInteractions int64 `json:"maximumClickInteractions,omitempty"` - - // MaximumImpressionInteractions: The maximum number of click - // interactions to include in the report. Advertisers currently paying - // for E2C reports get up to 200 (100 clicks, 100 impressions). If - // another advertiser in your network is paying for E2C, you can have up - // to 5 total exposures per report. + // MaximumImpressionInteractions: The maximum number of click interactions to + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumImpressionInteractions int64 `json:"maximumImpressionInteractions,omitempty"` - // MaximumInteractionGap: The maximum amount of time that can take place - // between interactions (clicks or impressions) by the same user. Valid - // values: 1-90. + // between interactions (clicks or impressions) by the same user. Valid values: + // 1-90. MaximumInteractionGap int64 `json:"maximumInteractionGap,omitempty"` - // PivotOnInteractionPath: Enable pivoting on interaction path. PivotOnInteractionPath bool `json:"pivotOnInteractionPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClicksLookbackWindow") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClicksLookbackWindow") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportReachCriteria: The report criteria for a report of type -// "REACH". +// ReportReachCriteria: The report criteria for a report of type "REACH". type ReportReachCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. Filters for different dimensions are ANDed, filters for the - // same dimension are grouped together and ORed. + // DimensionFilters: The list of filters on which dimensions are filtered. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // EnableAllDimensionCombinations: Whether to enable all reach dimension - // combinations in the report. Defaults to false. If enabled, the date - // range of the report should be within the last 42 days. + // combinations in the report. Defaults to false. If enabled, the date range of + // the report should be within the last 42 days. EnableAllDimensionCombinations bool `json:"enableAllDimensionCombinations,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // ReachByFrequencyMetricNames: The list of names of Reach By Frequency - // metrics the report should include. + // ReachByFrequencyMetricNames: The list of names of Reach By Frequency metrics + // the report should include. ReachByFrequencyMetricNames []string `json:"reachByFrequencyMetricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportSchedule: The report's schedule. Can only be set if the -// report's 'dateRange' is a relative date range and the relative date -// range is not "TODAY". +// ReportSchedule: The report's schedule. Can only be set if the report's +// 'dateRange' is a relative date range and the relative date range is not +// "TODAY". type ReportSchedule struct { - // Active: Whether the schedule is active or not. Must be set to either - // true or false. + // Active: Whether the schedule is active or not. Must be set to either true or + // false. Active bool `json:"active,omitempty"` - - // Every: Defines every how many days, weeks or months the report should - // be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or + // Every: Defines every how many days, weeks or months the report should be + // run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or // "MONTHLY". - Every int64 `json:"every,omitempty"` - + Every int64 `json:"every,omitempty"` ExpirationDate string `json:"expirationDate,omitempty"` - - // Repeats: The interval for which the report is repeated. Note: - - // "DAILY" also requires field "every" to be set. - "WEEKLY" also - // requires fields "every" and "repeatsOnWeekDays" to be set. - - // "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be - // set. + // Repeats: The interval for which the report is repeated. Note: - "DAILY" also + // requires field "every" to be set. - "WEEKLY" also requires fields "every" + // and "repeatsOnWeekDays" to be set. - "MONTHLY" also requires fields "every" + // and "runsOnDayOfMonth" to be set. Repeats string `json:"repeats,omitempty"` - - // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled - // reports should run. + // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled reports + // should run. // // Possible values: // "SUNDAY" @@ -11748,191 +9328,148 @@ type ReportSchedule struct { // "FRIDAY" // "SATURDAY" RepeatsOnWeekDays []string `json:"repeatsOnWeekDays,omitempty"` - - // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports - // whether reports should be repeated on the same day of the month as - // "startDate" or the same day of the week of the month. Example: If - // 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" - // would run subsequent reports on the 2nd of every Month, and - // "WEEK_OF_MONTH" would run subsequent reports on the first Monday of - // the month. + // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports whether + // reports should be repeated on the same day of the month as "startDate" or + // the same day of the week of the month. Example: If 'startDate' is Monday, + // April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on + // the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on + // the first Monday of the month. // // Possible values: // "DAY_OF_MONTH" // "WEEK_OF_MONTH" RunsOnDayOfMonth string `json:"runsOnDayOfMonth,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + StartDate string `json:"startDate,omitempty"` + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportSchedule) MarshalJSON() ([]byte, error) { +func (s ReportSchedule) MarshalJSON() ([]byte, error) { type NoMethod ReportSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCompatibleFields: Represents fields that are compatible to be -// selected for a report of type "STANDARD". +// ReportCompatibleFields: Represents fields that are compatible to be selected +// for a report of type "STANDARD". type ReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportList: Represents the list of reports. type ReportList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The reports returned in this response. Items []*Report `json:"items,omitempty"` - // Kind: The kind of list this is, in this case dfareporting#reportList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through reports. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through reports. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportList) MarshalJSON() ([]byte, error) { +func (s ReportList) MarshalJSON() ([]byte, error) { type NoMethod ReportList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportsConfiguration: Reporting Configuration type ReportsConfiguration struct { - // ExposureToConversionEnabled: Whether the exposure to conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure to conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // LookbackConfiguration: Default lookback windows for new advertisers - // in this account. + // LookbackConfiguration: Default lookback windows for new advertisers in this + // account. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // ReportGenerationTimeZoneId: Report generation time zone ID of this - // account. This is a required field that can only be changed by a - // superuser. Acceptable values are: - "1" for "America/New_York" - "2" - // for "Europe/London" - "3" for "Europe/Paris" - "4" for - // "Africa/Johannesburg" - "5" for "Asia/Jerusalem" - "6" for - // "Asia/Shanghai" - "7" for "Asia/Hong_Kong" - "8" for "Asia/Tokyo" - + // ReportGenerationTimeZoneId: Report generation time zone ID of this account. + // This is a required field that can only be changed by a superuser. Acceptable + // values are: - "1" for "America/New_York" - "2" for "Europe/London" - "3" for + // "Europe/Paris" - "4" for "Africa/Johannesburg" - "5" for "Asia/Jerusalem" - + // "6" for "Asia/Shanghai" - "7" for "Asia/Hong_Kong" - "8" for "Asia/Tokyo" - // "9" for "Australia/Sydney" - "10" for "Asia/Dubai" - "11" for // "America/Los_Angeles" - "12" for "Pacific/Auckland" - "13" for // "America/Sao_Paulo" - "16" for "America/Asuncion" - "17" for - // "America/Chicago" - "18" for "America/Denver" - "19" for - // "America/St_Johns" - "20" for "Asia/Dhaka" - "21" for "Asia/Jakarta" - // - "22" for "Asia/Kabul" - "23" for "Asia/Karachi" - "24" for - // "Asia/Calcutta" - "25" for "Asia/Pyongyang" - "26" for "Asia/Rangoon" - // - "27" for "Atlantic/Cape_Verde" - "28" for "Atlantic/South_Georgia" - // - "29" for "Australia/Adelaide" - "30" for "Australia/Lord_Howe" - - // "31" for "Europe/Moscow" - "32" for "Pacific/Kiritimati" - "35" for - // "Pacific/Norfolk" - "36" for "Pacific/Tongatapu" + // "America/Chicago" - "18" for "America/Denver" - "19" for "America/St_Johns" + // - "20" for "Asia/Dhaka" - "21" for "Asia/Jakarta" - "22" for "Asia/Kabul" - + // "23" for "Asia/Karachi" - "24" for "Asia/Calcutta" - "25" for + // "Asia/Pyongyang" - "26" for "Asia/Rangoon" - "27" for "Atlantic/Cape_Verde" + // - "28" for "Atlantic/South_Georgia" - "29" for "Australia/Adelaide" - "30" + // for "Australia/Lord_Howe" - "31" for "Europe/Moscow" - "32" for + // "Pacific/Kiritimati" - "35" for "Pacific/Norfolk" - "36" for + // "Pacific/Tongatapu" ReportGenerationTimeZoneId int64 `json:"reportGenerationTimeZoneId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "ExposureToConversionEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExposureToConversionEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportsConfiguration) MarshalJSON() ([]byte, error) { +func (s ReportsConfiguration) MarshalJSON() ([]byte, error) { type NoMethod ReportsConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RichMediaExitOverride: Rich Media Exit Override. @@ -11940,291 +9477,217 @@ type RichMediaExitOverride struct { // ClickThroughUrl: Click-through URL of this rich media exit override. // Applicable if the enabled field is set to true. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // Enabled: Whether to use the clickThroughUrl. If false, the - // creative-level exit will be used. + // Enabled: Whether to use the clickThroughUrl. If false, the creative-level + // exit will be used. Enabled bool `json:"enabled,omitempty"` - - // ExitId: ID for the override to refer to a specific exit in the - // creative. + // ExitId: ID for the override to refer to a specific exit in the creative. ExitId int64 `json:"exitId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RichMediaExitOverride) MarshalJSON() ([]byte, error) { +func (s RichMediaExitOverride) MarshalJSON() ([]byte, error) { type NoMethod RichMediaExitOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Rule: A rule associates an asset with a targeting template for -// asset-level targeting. Applicable to INSTREAM_VIDEO creatives. +// Rule: A rule associates an asset with a targeting template for asset-level +// targeting. Applicable to INSTREAM_VIDEO creatives. type Rule struct { - // AssetId: A creativeAssets[].id. This should refer to one of the - // parent assets in this creative. This is a required field. + // AssetId: A creativeAssets[].id. This should refer to one of the parent + // assets in this creative. This is a required field. AssetId int64 `json:"assetId,omitempty,string"` - // Name: A user-friendly name for this rule. This is a required field. Name string `json:"name,omitempty"` - // TargetingTemplateId: A targeting template ID. The targeting from the - // targeting template will be used to determine whether this asset - // should be served. This is a required field. + // targeting template will be used to determine whether this asset should be + // served. This is a required field. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AssetId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssetId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssetId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rule) MarshalJSON() ([]byte, error) { +func (s Rule) MarshalJSON() ([]byte, error) { type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Site: Contains properties of a site. type Site struct { - // AccountId: Account ID of this site. This is a read-only field that - // can be left blank. + // AccountId: Account ID of this site. This is a read-only field that can be + // left blank. AccountId int64 `json:"accountId,omitempty,string"` - // Approved: Whether this site is approved. Approved bool `json:"approved,omitempty"` - // DirectorySiteId: Directory site associated with this site. This is a // required field that is read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // Id: ID of this site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this site. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this site. This is a read-only, auto-generated - // field. + // KeyName: Key name of this site. This is a read-only, auto-generated field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#site". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#site". Kind string `json:"kind,omitempty"` - - // Name: Name of this site.This is a required field. Must be less than - // 128 characters long. If this site is under a subaccount, the name - // must be unique among sites of the same subaccount. Otherwise, this - // site is a top-level site, and the name must be unique among top-level - // sites of the same account. + // Name: Name of this site.This is a required field. Must be less than 128 + // characters long. If this site is under a subaccount, the name must be unique + // among sites of the same subaccount. Otherwise, this site is a top-level + // site, and the name must be unique among top-level sites of the same account. Name string `json:"name,omitempty"` - // SiteContacts: Site contacts. SiteContacts []*SiteContact `json:"siteContacts,omitempty"` - // SiteSettings: Site-wide settings. SiteSettings *SiteSettings `json:"siteSettings,omitempty"` - - // SubaccountId: Subaccount ID of this site. This is a read-only field - // that can be left blank. + // SubaccountId: Subaccount ID of this site. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // VideoSettings: Default video settings for new placements created - // under this site. This value will be used to populate the - // placements.videoSettings field, when no value is specified for the - // new placement. + // VideoSettings: Default video settings for new placements created under this + // site. This value will be used to populate the placements.videoSettings + // field, when no value is specified for the new placement. VideoSettings *SiteVideoSettings `json:"videoSettings,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Site) MarshalJSON() ([]byte, error) { +func (s Site) MarshalJSON() ([]byte, error) { type NoMethod Site - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteCompanionSetting: Companion Settings type SiteCompanionSetting struct { - // CompanionsDisabled: Whether companions are disabled for this site - // template. + // CompanionsDisabled: Whether companions are disabled for this site template. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - // EnabledSizes: Allowlist of companion sizes to be served via this site - // template. Set this list to null or empty to serve all companion - // sizes. + // template. Set this list to null or empty to serve all companion sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` - // ImageOnly: Whether to serve only static images as companions. ImageOnly bool `json:"imageOnly,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteCompanionSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#siteCompanionSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionsDisabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionsDisabled") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteCompanionSetting) MarshalJSON() ([]byte, error) { +func (s SiteCompanionSetting) MarshalJSON() ([]byte, error) { type NoMethod SiteCompanionSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteContact: Site Contact type SiteContact struct { // Address: Address of this site contact. Address string `json:"address,omitempty"` - // ContactType: Site contact type. // // Possible values: // "SALES_PERSON" // "TRAFFICKER" ContactType string `json:"contactType,omitempty"` - // Email: Email address of this site contact. This is a required field. Email string `json:"email,omitempty"` - // FirstName: First name of this site contact. FirstName string `json:"firstName,omitempty"` - - // Id: ID of this site contact. This is a read-only, auto-generated - // field. + // Id: ID of this site contact. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // LastName: Last name of this site contact. LastName string `json:"lastName,omitempty"` - // Phone: Primary phone number of this site contact. Phone string `json:"phone,omitempty"` - // Title: Title or designation of this site contact. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteContact) MarshalJSON() ([]byte, error) { +func (s SiteContact) MarshalJSON() ([]byte, error) { type NoMethod SiteContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteSettings: Site Settings type SiteSettings struct { - // ActiveViewOptOut: Whether active view creatives are disabled for this - // site. + // ActiveViewOptOut: Whether active view creatives are disabled for this site. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AdBlockingOptOut: Whether this site opts out of ad blocking. When - // true, ad blocking is disabled for all placements under the site, - // regardless of the individual placement settings. When false, the - // campaign and placement settings take effect. + // AdBlockingOptOut: Whether this site opts out of ad blocking. When true, ad + // blocking is disabled for all placements under the site, regardless of the + // individual placement settings. When false, the campaign and placement + // settings take effect. AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - // DisableNewCookie: Whether new cookies are disabled for this site. DisableNewCookie bool `json:"disableNewCookie,omitempty"` - - // TagSetting: Configuration settings for dynamic and image floodlight - // tags. + // TagSetting: Configuration settings for dynamic and image floodlight tags. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView - // for in-stream video creatives are disabled by default for new - // placements created under this site. This value will be used to - // populate the placement.videoActiveViewOptOut field, when no value is - // specified for the new placement. + // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView for + // in-stream video creatives are disabled by default for new placements created + // under this site. This value will be used to populate the + // placement.videoActiveViewOptOut field, when no value is specified for the + // new placement. VideoActiveViewOptOutTemplate bool `json:"videoActiveViewOptOutTemplate,omitempty"` - - // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new - // placements created under this site. This value will be used to - // populate the placements.vpaidAdapterChoice field, when no value is - // specified for the new placement. Controls which VPAID format the - // measurement adapter will use for in-stream video creatives assigned - // to the placement. The publisher's specifications will typically - // determine this setting. For VPAID creatives, the adapter format will - // match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter). - // *Note:* Flash is no longer supported. This field now defaults to - // HTML5 when the following values are provided: FLASH, BOTH. + // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new placements + // created under this site. This value will be used to populate the + // placements.vpaidAdapterChoice field, when no value is specified for the new + // placement. Controls which VPAID format the measurement adapter will use for + // in-stream video creatives assigned to the placement. The publisher's + // specifications will typically determine this setting. For VPAID creatives, + // the adapter format will match the VPAID format (HTML5 VPAID creatives use + // the HTML5 adapter). *Note:* Flash is no longer supported. This field now + // defaults to HTML5 when the following values are provided: FLASH, BOTH. // // Possible values: // "DEFAULT" @@ -12232,324 +9695,246 @@ type SiteSettings struct { // "HTML5" // "BOTH" VpaidAdapterChoiceTemplate string `json:"vpaidAdapterChoiceTemplate,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteSettings) MarshalJSON() ([]byte, error) { +func (s SiteSettings) MarshalJSON() ([]byte, error) { type NoMethod SiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteSkippableSetting: Skippable Settings type SiteSkippableSetting struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteSkippableSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#siteSkippableSetting". Kind string `json:"kind,omitempty"` - - // ProgressOffset: Amount of time to play videos served to this site - // template before counting a view. Applicable when skippable is true. + // ProgressOffset: Amount of time to play videos served to this site template + // before counting a view. Applicable when skippable is true. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // SkipOffset: Amount of time to play videos served to this site before - // the skip button should appear. Applicable when skippable is true. + // SkipOffset: Amount of time to play videos served to this site before the + // skip button should appear. Applicable when skippable is true. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can skip creatives served to this site. - // This will act as default for new placements created under this site. + // Skippable: Whether the user can skip creatives served to this site. This + // will act as default for new placements created under this site. Skippable bool `json:"skippable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteSkippableSetting) MarshalJSON() ([]byte, error) { +func (s SiteSkippableSetting) MarshalJSON() ([]byte, error) { type NoMethod SiteSkippableSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteTranscodeSetting: Transcode Settings type SiteTranscodeSetting struct { - // EnabledVideoFormats: Allowlist of video formats to be served to this - // site template. Set this list to null or empty to serve all video - // formats. + // EnabledVideoFormats: Allowlist of video formats to be served to this site + // template. Set this list to null or empty to serve all video formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteTranscodeSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#siteTranscodeSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnabledVideoFormats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnabledVideoFormats") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteTranscodeSetting) MarshalJSON() ([]byte, error) { +func (s SiteTranscodeSetting) MarshalJSON() ([]byte, error) { type NoMethod SiteTranscodeSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteVideoSettings: Video Settings type SiteVideoSettings struct { - // CompanionSettings: Settings for the companion creatives of video - // creatives served to this site. + // CompanionSettings: Settings for the companion creatives of video creatives + // served to this site. CompanionSettings *SiteCompanionSetting `json:"companionSettings,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteVideoSettings". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#siteVideoSettings". Kind string `json:"kind,omitempty"` - - // Orientation: Orientation of a site template used for video. This will - // act as default for new placements created under this site. + // Orientation: Orientation of a site template used for video. This will act as + // default for new placements created under this site. // // Possible values: // "ANY" // "LANDSCAPE" // "PORTRAIT" Orientation string `json:"orientation,omitempty"` - - // SkippableSettings: Settings for the skippability of video creatives - // served to this site. This will act as default for new placements - // created under this site. + // SkippableSettings: Settings for the skippability of video creatives served + // to this site. This will act as default for new placements created under this + // site. SkippableSettings *SiteSkippableSetting `json:"skippableSettings,omitempty"` - - // TranscodeSettings: Settings for the transcodes of video creatives - // served to this site. This will act as default for new placements - // created under this site. + // TranscodeSettings: Settings for the transcodes of video creatives served to + // this site. This will act as default for new placements created under this + // site. TranscodeSettings *SiteTranscodeSetting `json:"transcodeSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionSettings") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionSettings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionSettings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteVideoSettings) MarshalJSON() ([]byte, error) { +func (s SiteVideoSettings) MarshalJSON() ([]byte, error) { type NoMethod SiteVideoSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SitesListResponse: Site List Response type SitesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Sites: Site collection. Sites []*Site `json:"sites,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SitesListResponse) MarshalJSON() ([]byte, error) { +func (s SitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Size: Represents the dimensions of ads, placements, creatives, or -// creative assets. +// Size: Represents the dimensions of ads, placements, creatives, or creative +// assets. type Size struct { - // Height: Height of this size. Acceptable values are 0 to 32767, - // inclusive. + // Height: Height of this size. Acceptable values are 0 to 32767, inclusive. Height int64 `json:"height,omitempty"` - // Iab: IAB standard size. This is a read-only, auto-generated field. Iab bool `json:"iab,omitempty"` - // Id: ID of this size. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#size". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#size". Kind string `json:"kind,omitempty"` - - // Width: Width of this size. Acceptable values are 0 to 32767, - // inclusive. + // Width: Width of this size. Acceptable values are 0 to 32767, inclusive. Width int64 `json:"width,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Size) MarshalJSON() ([]byte, error) { +func (s Size) MarshalJSON() ([]byte, error) { type NoMethod Size - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SizesListResponse: Size List Response type SizesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sizesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sizesListResponse". Kind string `json:"kind,omitempty"` - // Sizes: Size collection. Sizes []*Size `json:"sizes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SizesListResponse) MarshalJSON() ([]byte, error) { +func (s SizesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SizesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SkippableSetting: Skippable Settings type SkippableSetting struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#skippableSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#skippableSetting". Kind string `json:"kind,omitempty"` - - // ProgressOffset: Amount of time to play videos served to this - // placement before counting a view. Applicable when skippable is true. + // ProgressOffset: Amount of time to play videos served to this placement + // before counting a view. Applicable when skippable is true. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // SkipOffset: Amount of time to play videos served to this placement - // before the skip button should appear. Applicable when skippable is - // true. + // SkipOffset: Amount of time to play videos served to this placement before + // the skip button should appear. Applicable when skippable is true. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can skip creatives served to this - // placement. + // Skippable: Whether the user can skip creatives served to this placement. Skippable bool `json:"skippable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SkippableSetting) MarshalJSON() ([]byte, error) { +func (s SkippableSetting) MarshalJSON() ([]byte, error) { type NoMethod SkippableSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SortedDimension: Represents a sorted dimension. @@ -12557,38 +9942,30 @@ type SortedDimension struct { // Kind: The kind of resource this is, in this case // dfareporting#sortedDimension. Kind string `json:"kind,omitempty"` - // Name: The name of the dimension. Name string `json:"name,omitempty"` - // SortOrder: An optional sort order for the dimension column. // // Possible values: // "ASCENDING" // "DESCENDING" SortOrder string `json:"sortOrder,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SortedDimension) MarshalJSON() ([]byte, error) { +func (s SortedDimension) MarshalJSON() ([]byte, error) { type NoMethod SortedDimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Subaccount: Contains properties of a Campaign Manager subaccount. @@ -12596,103 +9973,78 @@ type Subaccount struct { // AccountId: ID of the account that contains this subaccount. This is a // read-only field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AvailablePermissionIds: IDs of the available user role permissions - // for this subaccount. + // AvailablePermissionIds: IDs of the available user role permissions for this + // subaccount. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // Id: ID of this subaccount. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccount". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccount". Kind string `json:"kind,omitempty"` - - // Name: Name of this subaccount. This is a required field. Must be less - // than 128 characters long and be unique among subaccounts of the same - // account. + // Name: Name of this subaccount. This is a required field. Must be less than + // 128 characters long and be unique among subaccounts of the same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Subaccount) MarshalJSON() ([]byte, error) { +func (s Subaccount) MarshalJSON() ([]byte, error) { type NoMethod Subaccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SubaccountsListResponse: Subaccount List Response type SubaccountsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Subaccounts: Subaccount collection. Subaccounts []*Subaccount `json:"subaccounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubaccountsListResponse) MarshalJSON() ([]byte, error) { +func (s SubaccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod SubaccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagData: Placement Tag Data type TagData struct { - // AdId: Ad associated with this placement tag. Applicable only when - // format is PLACEMENT_TAG_TRACKING. + // AdId: Ad associated with this placement tag. Applicable only when format is + // PLACEMENT_TAG_TRACKING. AdId int64 `json:"adId,omitempty,string"` - // ClickTag: Tag string to record a click. ClickTag string `json:"clickTag,omitempty"` - - // CreativeId: Creative associated with this placement tag. Applicable - // only when format is PLACEMENT_TAG_TRACKING. + // CreativeId: Creative associated with this placement tag. Applicable only + // when format is PLACEMENT_TAG_TRACKING. CreativeId int64 `json:"creativeId,omitempty,string"` - // Format: TagData tag format of this tag. // // Possible values: @@ -12717,196 +10069,152 @@ type TagData struct { // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" // "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" Format string `json:"format,omitempty"` - // ImpressionTag: Tag string for serving an ad. ImpressionTag string `json:"impressionTag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdId") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagData) MarshalJSON() ([]byte, error) { +func (s TagData) MarshalJSON() ([]byte, error) { type NoMethod TagData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSetting: Tag Settings type TagSetting struct { - // AdditionalKeyValues: Additional key-values to be included in tags. - // Each key-value pair must be of the form key=value, and pairs must be - // separated by a semicolon (;). Keys and values must not contain - // commas. For example, id=2;color=red is a valid value for this field. + // AdditionalKeyValues: Additional key-values to be included in tags. Each + // key-value pair must be of the form key=value, and pairs must be separated by + // a semicolon (;). Keys and values must not contain commas. For example, + // id=2;color=red is a valid value for this field. AdditionalKeyValues string `json:"additionalKeyValues,omitempty"` - - // IncludeClickThroughUrls: Whether static landing page URLs should be - // included in the tags. This setting applies only to placements. + // IncludeClickThroughUrls: Whether static landing page URLs should be included + // in the tags. This setting applies only to placements. IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"` - - // IncludeClickTracking: Whether click-tracking string should be - // included in the tags. + // IncludeClickTracking: Whether click-tracking string should be included in + // the tags. IncludeClickTracking bool `json:"includeClickTracking,omitempty"` - - // KeywordOption: Option specifying how keywords are embedded in ad - // tags. This setting can be used to specify whether keyword - // placeholders are inserted in placement tags for this site. Publishers - // can then add keywords to those placeholders. + // KeywordOption: Option specifying how keywords are embedded in ad tags. This + // setting can be used to specify whether keyword placeholders are inserted in + // placement tags for this site. Publishers can then add keywords to those + // placeholders. // // Possible values: // "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" // "IGNORE" // "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" KeywordOption string `json:"keywordOption,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalKeyValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalKeyValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSetting) MarshalJSON() ([]byte, error) { +func (s TagSetting) MarshalJSON() ([]byte, error) { type NoMethod TagSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSettings: Dynamic and Image Tag Settings. type TagSettings struct { // DynamicTagEnabled: Whether dynamic floodlight tags are enabled. DynamicTagEnabled bool `json:"dynamicTagEnabled,omitempty"` - // ImageTagEnabled: Whether image tags are enabled. ImageTagEnabled bool `json:"imageTagEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTagEnabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTagEnabled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSettings) MarshalJSON() ([]byte, error) { +func (s TagSettings) MarshalJSON() ([]byte, error) { type NoMethod TagSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetWindow: Target Window. type TargetWindow struct { // CustomHtml: User-entered value. CustomHtml string `json:"customHtml,omitempty"` - - // TargetWindowOption: Type of browser window for which the backup image - // of the flash creative can be displayed. + // TargetWindowOption: Type of browser window for which the backup image of the + // flash creative can be displayed. // // Possible values: // "NEW_WINDOW" // "CURRENT_WINDOW" // "CUSTOM" TargetWindowOption string `json:"targetWindowOption,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomHtml") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomHtml") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomHtml") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetWindow) MarshalJSON() ([]byte, error) { +func (s TargetWindow) MarshalJSON() ([]byte, error) { type NoMethod TargetWindow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetableRemarketingList: Contains properties of a targetable -// remarketing list. Remarketing enables you to create lists of users -// who have performed specific actions on a site, then target ads to -// members of those lists. This resource is a read-only view of a -// remarketing list to be used to faciliate targeting ads to specific -// lists. Remarketing lists that are owned by your advertisers and those -// that are shared to your advertisers or account are accessible via -// this resource. To manage remarketing lists that are owned by your -// advertisers, use the RemarketingLists resource. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TargetableRemarketingList: Contains properties of a targetable remarketing +// list. Remarketing enables you to create lists of users who have performed +// specific actions on a site, then target ads to members of those lists. This +// resource is a read-only view of a remarketing list to be used to faciliate +// targeting ads to specific lists. Remarketing lists that are owned by your +// advertisers and those that are shared to your advertisers or account are +// accessible via this resource. To manage remarketing lists that are owned by +// your advertisers, use the RemarketingLists resource. type TargetableRemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this targetable remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // targetable remarketing list. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Targetable remarketing list description. Description string `json:"description,omitempty"` - // Id: Targetable remarketing list ID. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingList". Kind string `json:"kind,omitempty"` - // LifeSpan: Number of days that a user should remain in the targetable // remarketing list without an impression. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this targetable remarketing list was // originated. // @@ -12923,304 +10231,231 @@ type TargetableRemarketingList struct { // "REMARKETING_LIST_SOURCE_DMP" // "REMARKETING_LIST_SOURCE_PLAY_STORE" ListSource string `json:"listSource,omitempty"` - // Name: Name of the targetable remarketing list. Is no greater than 128 // characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingList) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingList) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetableRemarketingListsListResponse: Targetable remarketing list -// response +// TargetableRemarketingListsListResponse: Targetable remarketing list response type TargetableRemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetableRemarketingLists: Targetable remarketing list collection. TargetableRemarketingLists []*TargetableRemarketingList `json:"targetableRemarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetingTemplate: Contains properties of a targeting template. A -// targeting template encapsulates targeting information which can be -// reused across multiple ads. +// TargetingTemplate: Contains properties of a targeting template. A targeting +// template encapsulates targeting information which can be reused across +// multiple ads. type TargetingTemplate struct { - // AccountId: Account ID of this targeting template. This field, if left - // unset, will be auto-generated on insert and is read-only after - // insert. + // AccountId: Account ID of this targeting template. This field, if left unset, + // will be auto-generated on insert and is read-only after insert. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this targeting template. This is a - // required field on insert and is read-only after insert. + // AdvertiserId: Advertiser ID of this targeting template. This is a required + // field on insert and is read-only after insert. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // DayPartTargeting: Time and day targeting criteria. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - // GeoTargeting: Geographical targeting criteria. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - - // Id: ID of this targeting template. This is a read-only, - // auto-generated field. + // Id: ID of this targeting template. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // KeyValueTargetingExpression: Key-value targeting criteria. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplate". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplate". Kind string `json:"kind,omitempty"` - // LanguageTargeting: Language targeting criteria. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - // ListTargetingExpression: Remarketing list targeting criteria. ListTargetingExpression *ListTargetingExpression `json:"listTargetingExpression,omitempty"` - - // Name: Name of this targeting template. This field is required. It - // must be less than 256 characters long and unique within an - // advertiser. + // Name: Name of this targeting template. This field is required. It must be + // less than 256 characters long and unique within an advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this targeting template. This field, - // if left unset, will be auto-generated on insert and is read-only - // after insert. + // SubaccountId: Subaccount ID of this targeting template. This field, if left + // unset, will be auto-generated on insert and is read-only after insert. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TechnologyTargeting: Technology platform targeting criteria. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplate) MarshalJSON() ([]byte, error) { +func (s TargetingTemplate) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetingTemplatesListResponse: Targeting Template List Response type TargetingTemplatesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplatesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplatesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetingTemplates: Targeting template collection. TargetingTemplates []*TargetingTemplate `json:"targetingTemplates,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { +func (s TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplatesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TechnologyTargeting: Technology Targeting. type TechnologyTargeting struct { // Browsers: Browsers that this ad targets. For each browser either set - // browserVersionId or dartId along with the version numbers. If both - // are specified, only browserVersionId will be used. The other fields - // are populated automatically when the ad is inserted or updated. + // browserVersionId or dartId along with the version numbers. If both are + // specified, only browserVersionId will be used. The other fields are + // populated automatically when the ad is inserted or updated. Browsers []*Browser `json:"browsers,omitempty"` - - // ConnectionTypes: Connection types that this ad targets. For each - // connection type only id is required. The other fields are populated - // automatically when the ad is inserted or updated. + // ConnectionTypes: Connection types that this ad targets. For each connection + // type only id is required. The other fields are populated automatically when + // the ad is inserted or updated. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - // MobileCarriers: Mobile carriers that this ad targets. For each mobile // carrier only id is required, and the other fields are populated - // automatically when the ad is inserted or updated. If targeting a - // mobile carrier, do not set targeting for any zip codes. + // automatically when the ad is inserted or updated. If targeting a mobile + // carrier, do not set targeting for any zip codes. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - - // OperatingSystemVersions: Operating system versions that this ad - // targets. To target all versions, use operatingSystems. For each - // operating system version, only id is required. The other fields are - // populated automatically when the ad is inserted or updated. If - // targeting an operating system version, do not set targeting for the - // corresponding operating system in operatingSystems. + // OperatingSystemVersions: Operating system versions that this ad targets. To + // target all versions, use operatingSystems. For each operating system + // version, only id is required. The other fields are populated automatically + // when the ad is inserted or updated. If targeting an operating system + // version, do not set targeting for the corresponding operating system in + // operatingSystems. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - - // OperatingSystems: Operating systems that this ad targets. To target - // specific versions, use operatingSystemVersions. For each operating - // system only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting an - // operating system, do not set targeting for operating system versions - // for the same operating system. + // OperatingSystems: Operating systems that this ad targets. To target specific + // versions, use operatingSystemVersions. For each operating system only dartId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting an operating system, do not set targeting + // for operating system versions for the same operating system. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - - // PlatformTypes: Platform types that this ad targets. For example, - // desktop, mobile, or tablet. For each platform type, only id is - // required, and the other fields are populated automatically when the - // ad is inserted or updated. + // PlatformTypes: Platform types that this ad targets. For example, desktop, + // mobile, or tablet. For each platform type, only id is required, and the + // other fields are populated automatically when the ad is inserted or updated. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TechnologyTargeting) MarshalJSON() ([]byte, error) { +func (s TechnologyTargeting) MarshalJSON() ([]byte, error) { type NoMethod TechnologyTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyAuthenticationToken: Third Party Authentication Token type ThirdPartyAuthenticationToken struct { // Name: Name of the third-party authentication token. Name string `json:"name,omitempty"` - - // Value: Value of the third-party authentication token. This is a - // read-only, auto-generated field. + // Value: Value of the third-party authentication token. This is a read-only, + // auto-generated field. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { +func (s ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyAuthenticationToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyTrackingUrl: Third-party Tracking URL. type ThirdPartyTrackingUrl struct { - // ThirdPartyUrlType: Third-party URL type for in-stream video and - // in-stream audio creatives. + // ThirdPartyUrlType: Third-party URL type for in-stream video and in-stream + // audio creatives. // // Possible values: // "IMPRESSION" @@ -13243,32 +10478,24 @@ type ThirdPartyTrackingUrl struct { // "VIDEO_SKIP" // "VIDEO_PROGRESS" ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"` - // Url: URL for the specified third-party URL type. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { +func (s ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyTrackingUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TranscodeSetting: Transcode Settings @@ -13276,38 +10503,29 @@ type TranscodeSetting struct { // EnabledVideoFormats: Allowlist of video formats to be served to this // placement. Set this list to null or empty to serve all video formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#transcodeSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#transcodeSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnabledVideoFormats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnabledVideoFormats") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TranscodeSetting) MarshalJSON() ([]byte, error) { +func (s TranscodeSetting) MarshalJSON() ([]byte, error) { type NoMethod TranscodeSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable -// to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and -// VPAID. +// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the +// following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID. type UniversalAdId struct { // Registry: Registry used for the Ad ID value. // @@ -13317,37 +10535,29 @@ type UniversalAdId struct { // "CLEARCAST" // "DCM" Registry string `json:"registry,omitempty"` - - // Value: ID value for this creative. Only alphanumeric characters and - // the following symbols are valid: "_/\-". Maximum length is 64 - // characters. Read only when registry is DCM. + // Value: ID value for this creative. Only alphanumeric characters and the + // following symbols are valid: "_/\-". Maximum length is 64 characters. Read + // only when registry is DCM. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Registry") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Registry") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Registry") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UniversalAdId) MarshalJSON() ([]byte, error) { +func (s UniversalAdId) MarshalJSON() ([]byte, error) { type NoMethod UniversalAdId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserDefinedVariableConfiguration: User Defined Variable -// configuration. +// UserDefinedVariableConfiguration: User Defined Variable configuration. type UserDefinedVariableConfiguration struct { // DataType: Data type for the variable. This is a required field. // @@ -13355,12 +10565,10 @@ type UserDefinedVariableConfiguration struct { // "STRING" // "NUMBER" DataType string `json:"dataType,omitempty"` - // ReportName: User-friendly name for the variable which will appear in - // reports. This is a required field, must be less than 64 characters - // long, and cannot contain the following characters: ""<>". + // reports. This is a required field, must be less than 64 characters long, and + // cannot contain the following characters: ""<>". ReportName string `json:"reportName,omitempty"` - // VariableType: Variable name in the tag. This is a required field. // // Possible values: @@ -13465,190 +10673,145 @@ type UserDefinedVariableConfiguration struct { // "U99" // "U100" VariableType string `json:"variableType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { +func (s UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { type NoMethod UserDefinedVariableConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserProfile: A UserProfile resource lets you list all DFA user -// profiles that are associated with a Google user account. The -// profile_id needs to be specified in other API requests. +// UserProfile: A UserProfile resource lets you list all DFA user profiles that +// are associated with a Google user account. The profile_id needs to be +// specified in other API requests. type UserProfile struct { // AccountId: The account ID to which this profile belongs. AccountId int64 `json:"accountId,omitempty,string"` - // AccountName: The account name this profile belongs to. AccountName string `json:"accountName,omitempty"` - // Etag: Etag of this resource. Etag string `json:"etag,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userProfile". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userProfile". Kind string `json:"kind,omitempty"` - // ProfileId: The unique ID of the user profile. ProfileId int64 `json:"profileId,omitempty,string"` - - // SubAccountId: The sub account ID this profile belongs to if - // applicable. + // SubAccountId: The sub account ID this profile belongs to if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - - // SubAccountName: The sub account name this profile belongs to if - // applicable. + // SubAccountName: The sub account name this profile belongs to if applicable. SubAccountName string `json:"subAccountName,omitempty"` - // UserName: The user name. UserName string `json:"userName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfile) MarshalJSON() ([]byte, error) { +func (s UserProfile) MarshalJSON() ([]byte, error) { type NoMethod UserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfileList: Represents the list of user profiles. type UserProfileList struct { // Etag: Etag of this resource. Etag string `json:"etag,omitempty"` - // Items: The user profiles returned in this response. Items []*UserProfile `json:"items,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userProfileList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userProfileList". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfileList) MarshalJSON() ([]byte, error) { +func (s UserProfileList) MarshalJSON() ([]byte, error) { type NoMethod UserProfileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserRole: Contains properties of auser role, which is used to manage -// user access. +// UserRole: Contains properties of auser role, which is used to manage user +// access. type UserRole struct { - // AccountId: Account ID of this user role. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this user role. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // DefaultUserRole: Whether this is a default user role. Default user - // roles are created by the system for the account/subaccount and cannot - // be modified or deleted. Each default user role comes with a basic set - // of preassigned permissions. + // DefaultUserRole: Whether this is a default user role. Default user roles are + // created by the system for the account/subaccount and cannot be modified or + // deleted. Each default user role comes with a basic set of preassigned + // permissions. DefaultUserRole bool `json:"defaultUserRole,omitempty"` - // Id: ID of this user role. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRole". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRole". Kind string `json:"kind,omitempty"` - - // Name: Name of this user role. This is a required field. Must be less - // than 256 characters long. If this user role is under a subaccount, - // the name must be unique among sites of the same subaccount. - // Otherwise, this user role is a top-level user role, and the name must - // be unique among top-level user roles of the same account. + // Name: Name of this user role. This is a required field. Must be less than + // 256 characters long. If this user role is under a subaccount, the name must + // be unique among sites of the same subaccount. Otherwise, this user role is a + // top-level user role, and the name must be unique among top-level user roles + // of the same account. Name string `json:"name,omitempty"` - - // ParentUserRoleId: ID of the user role that this user role is based on - // or copied from. This is a required field. + // ParentUserRoleId: ID of the user role that this user role is based on or + // copied from. This is a required field. ParentUserRoleId int64 `json:"parentUserRoleId,omitempty,string"` - // Permissions: List of permissions associated with this user role. Permissions []*UserRolePermission `json:"permissions,omitempty"` - - // SubaccountId: Subaccount ID of this user role. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this user role. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRole) MarshalJSON() ([]byte, error) { +func (s UserRole) MarshalJSON() ([]byte, error) { type NoMethod UserRole - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermission: Contains properties of a user role permission. @@ -13663,46 +10826,35 @@ type UserRolePermission struct { // "SUBACCOUNT_AND_ACCOUNT_ALWAYS" // "USER_PROFILE_ONLY" Availability string `json:"availability,omitempty"` - // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermission". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission. Name string `json:"name,omitempty"` - - // PermissionGroupId: ID of the permission group that this user role - // permission belongs to. + // PermissionGroupId: ID of the permission group that this user role permission + // belongs to. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Availability") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Availability") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Availability") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermission) MarshalJSON() ([]byte, error) { +func (s UserRolePermission) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroup: Represents a grouping of related user role @@ -13710,152 +10862,117 @@ func (s *UserRolePermission) MarshalJSON() ([]byte, error) { type UserRolePermissionGroup struct { // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroup) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroupsListResponse: User Role Permission Group List // Response type UserRolePermissionGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissionGroups: User role permission group collection. UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionsListResponse: User Role Permission List Response type UserRolePermissionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissions: User role permission collection. UserRolePermissions []*UserRolePermission `json:"userRolePermissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolesListResponse: User Role List Response type UserRolesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // UserRoles: User role collection. UserRoles []*UserRole `json:"userRoles,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolesListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolesListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormat: Contains information about supported video formats. @@ -13869,128 +10986,98 @@ type VideoFormat struct { // "WEBM" // "M3U8" FileType string `json:"fileType,omitempty"` - // Id: ID of the video format. Id int64 `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormat". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormat". Kind string `json:"kind,omitempty"` - // Resolution: The resolution of this video format. Resolution *Size `json:"resolution,omitempty"` - // TargetBitRate: The target bit rate of this video format. TargetBitRate int64 `json:"targetBitRate,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "FileType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormat) MarshalJSON() ([]byte, error) { +func (s VideoFormat) MarshalJSON() ([]byte, error) { type NoMethod VideoFormat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormatsListResponse: Video Format List Response type VideoFormatsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormatsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormatsListResponse". Kind string `json:"kind,omitempty"` - // VideoFormats: Video format collection. VideoFormats []*VideoFormat `json:"videoFormats,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormatsListResponse) MarshalJSON() ([]byte, error) { +func (s VideoFormatsListResponse) MarshalJSON() ([]byte, error) { type NoMethod VideoFormatsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoOffset: Video Offset type VideoOffset struct { - // OffsetPercentage: Duration, as a percentage of video duration. Do not - // set when offsetSeconds is set. Acceptable values are 0 to 100, - // inclusive. + // OffsetPercentage: Duration, as a percentage of video duration. Do not set + // when offsetSeconds is set. Acceptable values are 0 to 100, inclusive. OffsetPercentage int64 `json:"offsetPercentage,omitempty"` - - // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage - // is set. Acceptable values are 0 to 86399, inclusive. + // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage is + // set. Acceptable values are 0 to 86399, inclusive. OffsetSeconds int64 `json:"offsetSeconds,omitempty"` - // ForceSendFields is a list of field names (e.g. "OffsetPercentage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OffsetPercentage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OffsetPercentage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoOffset) MarshalJSON() ([]byte, error) { +func (s VideoOffset) MarshalJSON() ([]byte, error) { type NoMethod VideoOffset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoSettings: Video Settings type VideoSettings struct { - // CompanionSettings: Settings for the companion creatives of video - // creatives served to this placement. + // CompanionSettings: Settings for the companion creatives of video creatives + // served to this placement. CompanionSettings *CompanionSetting `json:"companionSettings,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoSettings". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoSettings". Kind string `json:"kind,omitempty"` - // Orientation: Orientation of a video placement. If this value is set, // placement will return assets matching the specified orientation. // @@ -13999,43 +11086,32 @@ type VideoSettings struct { // "LANDSCAPE" // "PORTRAIT" Orientation string `json:"orientation,omitempty"` - - // SkippableSettings: Settings for the skippability of video creatives - // served to this placement. If this object is provided, the - // creative-level skippable settings will be overridden. + // SkippableSettings: Settings for the skippability of video creatives served + // to this placement. If this object is provided, the creative-level skippable + // settings will be overridden. SkippableSettings *SkippableSetting `json:"skippableSettings,omitempty"` - - // TranscodeSettings: Settings for the transcodes of video creatives - // served to this placement. If this object is provided, the - // creative-level transcode settings will be overridden. + // TranscodeSettings: Settings for the transcodes of video creatives served to + // this placement. If this object is provided, the creative-level transcode + // settings will be overridden. TranscodeSettings *TranscodeSetting `json:"transcodeSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionSettings") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionSettings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionSettings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoSettings) MarshalJSON() ([]byte, error) { +func (s VideoSettings) MarshalJSON() ([]byte, error) { type NoMethod VideoSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "dfareporting.accountActiveAdSummaries.get": - type AccountActiveAdSummariesGetCall struct { s *Service profileId int64 @@ -14058,33 +11134,29 @@ func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountActiveAdSummariesGetCall) Fields(s ...googleapi.Field) *AccountActiveAdSummariesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountActiveAdSummariesGetCall) IfNoneMatch(entityTag string) *AccountActiveAdSummariesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountActiveAdSummariesGetCall) Context(ctx context.Context) *AccountActiveAdSummariesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountActiveAdSummariesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14093,12 +11165,7 @@ func (c *AccountActiveAdSummariesGetCall) Header() http.Header { } func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14116,16 +11183,15 @@ func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "summaryAccountId": strconv.FormatInt(c.summaryAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountActiveAdSummaries.get" call. -// Exactly one of *AccountActiveAdSummary or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountActiveAdSummary.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountActiveAdSummary.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*AccountActiveAdSummary, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14133,17 +11199,17 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountActiveAdSummary{ ServerResponse: googleapi.ServerResponse{ @@ -14156,43 +11222,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Gets the account's active ad summary by account ID.", - // "flatPath": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - // "httpMethod": "GET", - // "id": "dfareporting.accountActiveAdSummaries.get", - // "parameterOrder": [ - // "profileId", - // "summaryAccountId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "summaryAccountId": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - // "response": { - // "$ref": "AccountActiveAdSummary" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.get": +} type AccountPermissionGroupsGetCall struct { s *Service @@ -14216,33 +11246,29 @@ func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *Account } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsGetCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsGetCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsGetCall) Context(ctx context.Context) *AccountPermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14251,12 +11277,7 @@ func (c *AccountPermissionGroupsGetCall) Header() http.Header { } func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14274,16 +11295,15 @@ func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.get" call. -// Exactly one of *AccountPermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermissionGroup.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroup.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14291,17 +11311,17 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -14314,43 +11334,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco return nil, err } return ret, nil - // { - // "description": "Gets one account permission group by ID.", - // "flatPath": "userprofiles/{profileId}/accountPermissionGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", - // "response": { - // "$ref": "AccountPermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.list": +} type AccountPermissionGroupsListCall struct { s *Service @@ -14371,33 +11355,29 @@ func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsListCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsListCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsListCall) Context(ctx context.Context) *AccountPermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14406,12 +11386,7 @@ func (c *AccountPermissionGroupsListCall) Header() http.Header { } func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14428,17 +11403,15 @@ func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.list" call. -// Exactly one of *AccountPermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroupsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14446,17 +11419,17 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14469,35 +11442,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permission groups.", - // "flatPath": "userprofiles/{profileId}/accountPermissionGroups", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups", - // "response": { - // "$ref": "AccountPermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.get": +} type AccountPermissionsGetCall struct { s *Service @@ -14521,33 +11466,29 @@ func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsGetCall) Fields(s ...googleapi.Field) *AccountPermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsGetCall) IfNoneMatch(entityTag string) *AccountPermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsGetCall) Context(ctx context.Context) *AccountPermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14556,12 +11497,7 @@ func (c *AccountPermissionsGetCall) Header() http.Header { } func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14579,16 +11515,15 @@ func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.get" call. -// Exactly one of *AccountPermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14596,17 +11531,17 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermission{ ServerResponse: googleapi.ServerResponse{ @@ -14619,43 +11554,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe return nil, err } return ret, nil - // { - // "description": "Gets one account permission by ID.", - // "flatPath": "userprofiles/{profileId}/accountPermissions/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions/{id}", - // "response": { - // "$ref": "AccountPermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.list": +} type AccountPermissionsListCall struct { s *Service @@ -14676,33 +11575,29 @@ func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsListCall) Fields(s ...googleapi.Field) *AccountPermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsListCall) IfNoneMatch(entityTag string) *AccountPermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsListCall) Context(ctx context.Context) *AccountPermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14711,12 +11606,7 @@ func (c *AccountPermissionsListCall) Header() http.Header { } func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14733,16 +11623,15 @@ func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.list" call. -// Exactly one of *AccountPermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14750,17 +11639,17 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -14773,35 +11662,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permissions.", - // "flatPath": "userprofiles/{profileId}/accountPermissions", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions", - // "response": { - // "$ref": "AccountPermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.get": +} type AccountUserProfilesGetCall struct { s *Service @@ -14825,33 +11686,29 @@ func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUser } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesGetCall) Fields(s ...googleapi.Field) *AccountUserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesGetCall) IfNoneMatch(entityTag string) *AccountUserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesGetCall) Context(ctx context.Context) *AccountUserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14860,12 +11717,7 @@ func (c *AccountUserProfilesGetCall) Header() http.Header { } func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14883,16 +11735,15 @@ func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.get" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14900,17 +11751,17 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -14923,43 +11774,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU return nil, err } return ret, nil - // { - // "description": "Gets one account user profile by ID.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles/{id}", - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.insert": +} type AccountUserProfilesInsertCall struct { s *Service @@ -14981,23 +11796,21 @@ func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesInsertCall) Fields(s ...googleapi.Field) *AccountUserProfilesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesInsertCall) Context(ctx context.Context) *AccountUserProfilesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15006,18 +11819,12 @@ func (c *AccountUserProfilesInsertCall) Header() http.Header { } func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15030,16 +11837,15 @@ func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.insert" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15047,17 +11853,17 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15070,38 +11876,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Inserts a new account user profile.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "POST", - // "id": "dfareporting.accountUserProfiles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.list": +} type AccountUserProfilesListCall struct { s *Service @@ -15112,8 +11887,8 @@ type AccountUserProfilesListCall struct { header_ http.Header } -// List: Retrieves a list of account user profiles, possibly filtered. -// This method supports paging. +// List: Retrieves a list of account user profiles, possibly filtered. This +// method supports paging. // // - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) List(profileId int64) *AccountUserProfilesListCall { @@ -15129,8 +11904,8 @@ func (c *AccountUserProfilesListCall) Active(active bool) *AccountUserProfilesLi return c } -// Ids sets the optional parameter "ids": Select only user profiles with -// these IDs. +// Ids sets the optional parameter "ids": Select only user profiles with these +// IDs. func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesListCall { var ids_ []string for _, v := range ids { @@ -15140,8 +11915,8 @@ func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountUserProfilesListCall) MaxResults(maxResults int64) *AccountUserProfilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -15154,22 +11929,21 @@ func (c *AccountUserProfilesListCall) PageToken(pageToken string) *AccountUserPr return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or email. Wildcards (*) are -// allowed. For example, "user profile*2015" will return objects with -// names like "user profile June 2015", "user profile April 2015", or -// simply "user profile 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "user profile" will match objects with -// name "my user profile", "user profile 2015", or simply "user +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or email. Wildcards (*) are allowed. For example, +// "user profile*2015" will return objects with names like "user profile June +// 2015", "user profile April 2015", or simply "user profile 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "user profile" will match +// objects with name "my user profile", "user profile 2015", or simply "user // profile". func (c *AccountUserProfilesListCall) SearchString(searchString string) *AccountUserProfilesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -15180,8 +11954,7 @@ func (c *AccountUserProfilesListCall) SortField(sortField string) *AccountUserPr return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -15192,8 +11965,8 @@ func (c *AccountUserProfilesListCall) SortOrder(sortOrder string) *AccountUserPr return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user profiles with the specified subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// profiles with the specified subaccount ID. func (c *AccountUserProfilesListCall) SubaccountId(subaccountId int64) *AccountUserProfilesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c @@ -15207,33 +11980,29 @@ func (c *AccountUserProfilesListCall) UserRoleId(userRoleId int64) *AccountUserP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesListCall) Fields(s ...googleapi.Field) *AccountUserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesListCall) IfNoneMatch(entityTag string) *AccountUserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesListCall) Context(ctx context.Context) *AccountUserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15242,12 +12011,7 @@ func (c *AccountUserProfilesListCall) Header() http.Header { } func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15264,16 +12028,15 @@ func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.list" call. -// Exactly one of *AccountUserProfilesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountUserProfilesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfilesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*AccountUserProfilesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15281,17 +12044,17 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfilesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15304,103 +12067,6 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account return nil, err } return ret, nil - // { - // "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active user profiles.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user profiles with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"user profile*2015\" will return objects with names like \"user profile June 2015\", \"user profile April 2015\", or simply \"user profile 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"user profile\" will match objects with name \"my user profile\", \"user profile 2015\", or simply \"user profile\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user profiles with the specified subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "userRoleId": { - // "description": "Select only user profiles with the specified user role ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "response": { - // "$ref": "AccountUserProfilesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -15408,7 +12074,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // The provided context supersedes any context provided to the Context method. func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*AccountUserProfilesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15424,8 +12090,6 @@ func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*Account } } -// method id "dfareporting.accountUserProfiles.patch": - type AccountUserProfilesPatchCall struct { s *Service profileId int64 @@ -15435,8 +12099,8 @@ type AccountUserProfilesPatchCall struct { header_ http.Header } -// Patch: Updates an existing account user profile. This method supports -// patch semantics. +// Patch: Updates an existing account user profile. This method supports patch +// semantics. // // - id: AccountUserProfile ID. // - profileId: User profile ID associated with this request. @@ -15449,23 +12113,21 @@ func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuse } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesPatchCall) Fields(s ...googleapi.Field) *AccountUserProfilesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesPatchCall) Context(ctx context.Context) *AccountUserProfilesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15474,18 +12136,12 @@ func (c *AccountUserProfilesPatchCall) Header() http.Header { } func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15498,16 +12154,15 @@ func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.patch" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15515,17 +12170,17 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15538,46 +12193,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "PATCH", - // "id": "dfareporting.accountUserProfiles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "AccountUserProfile ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.update": +} type AccountUserProfilesUpdateCall struct { s *Service @@ -15599,23 +12215,21 @@ func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesUpdateCall) Fields(s ...googleapi.Field) *AccountUserProfilesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesUpdateCall) Context(ctx context.Context) *AccountUserProfilesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15624,18 +12238,12 @@ func (c *AccountUserProfilesUpdateCall) Header() http.Header { } func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -15648,16 +12256,15 @@ func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.update" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15665,17 +12272,17 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15688,38 +12295,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "PUT", - // "id": "dfareporting.accountUserProfiles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.get": +} type AccountsGetCall struct { s *Service @@ -15743,33 +12319,29 @@ func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15778,12 +12350,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15801,16 +12368,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15818,17 +12383,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -15841,43 +12406,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Gets one account by ID.", - // "flatPath": "userprofiles/{profileId}/accounts/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts/{id}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.list": +} type AccountsListCall struct { s *Service @@ -15898,16 +12427,14 @@ func (r *AccountsService) List(profileId int64) *AccountsListCall { return c } -// Active sets the optional parameter "active": Select only active -// accounts. Don't set this field to select both active and non-active -// accounts. +// Active sets the optional parameter "active": Select only active accounts. +// Don't set this field to select both active and non-active accounts. func (c *AccountsListCall) Active(active bool) *AccountsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// Ids sets the optional parameter "ids": Select only accounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only accounts with these IDs. func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { var ids_ []string for _, v := range ids { @@ -15917,8 +12444,8 @@ func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -15931,21 +12458,20 @@ func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "account*2015" will return objects with names like "account -// June 2015", "account April 2015", or simply "account 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "account" will -// match objects with name "my account", "account 2015", or simply -// "account". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "account*2015" will return objects with names like "account June 2015", +// "account April 2015", or simply "account 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "account" will match objects with name "my +// account", "account 2015", or simply "account". func (c *AccountsListCall) SearchString(searchString string) *AccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -15956,8 +12482,7 @@ func (c *AccountsListCall) SortField(sortField string) *AccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -15969,33 +12494,29 @@ func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16004,12 +12525,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16026,16 +12542,15 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.list" call. -// Exactly one of *AccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16043,17 +12558,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16066,91 +12581,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/accounts", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active accounts. Don't set this field to select both active and non-active accounts.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only accounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"account*2015\" will return objects with names like \"account June 2015\", \"account April 2015\", or simply \"account 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"account\" will match objects with name \"my account\", \"account 2015\", or simply \"account\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "response": { - // "$ref": "AccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -16158,7 +12588,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // The provided context supersedes any context provided to the Context method. func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -16174,8 +12604,6 @@ func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListRespon } } -// method id "dfareporting.accounts.patch": - type AccountsPatchCall struct { s *Service profileId int64 @@ -16185,8 +12613,7 @@ type AccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing account. This method supports patch -// semantics. +// Patch: Updates an existing account. This method supports patch semantics. // // - id: Account ID. // - profileId: User profile ID associated with this request. @@ -16199,23 +12626,21 @@ func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *Ac } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16224,18 +12649,12 @@ func (c *AccountsPatchCall) Header() http.Header { } func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -16248,16 +12667,14 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.patch" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16265,17 +12682,17 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -16288,46 +12705,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing account. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/accounts", - // "httpMethod": "PATCH", - // "id": "dfareporting.accounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.update": +} type AccountsUpdateCall struct { s *Service @@ -16349,23 +12727,21 @@ func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpd } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16374,18 +12750,12 @@ func (c *AccountsUpdateCall) Header() http.Header { } func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -16398,16 +12768,14 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16415,17 +12783,17 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -16438,38 +12806,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing account.", - // "flatPath": "userprofiles/{profileId}/accounts", - // "httpMethod": "PUT", - // "id": "dfareporting.accounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.get": +} type AdsGetCall struct { s *Service @@ -16493,33 +12830,29 @@ func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsGetCall) Fields(s ...googleapi.Field) *AdsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsGetCall) IfNoneMatch(entityTag string) *AdsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsGetCall) Context(ctx context.Context) *AdsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16528,12 +12861,7 @@ func (c *AdsGetCall) Header() http.Header { } func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16551,16 +12879,14 @@ func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.get" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16568,17 +12894,17 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -16591,43 +12917,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Gets one ad by ID.", - // "flatPath": "userprofiles/{profileId}/ads/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.ads.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads/{id}", - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.insert": +} type AdsInsertCall struct { s *Service @@ -16649,23 +12939,21 @@ func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsInsertCall) Fields(s ...googleapi.Field) *AdsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsInsertCall) Context(ctx context.Context) *AdsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16674,18 +12962,12 @@ func (c *AdsInsertCall) Header() http.Header { } func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -16698,16 +12980,14 @@ func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.insert" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16715,17 +12995,17 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -16738,38 +13018,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new ad.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "POST", - // "id": "dfareporting.ads.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.list": +} type AdsListCall struct { s *Service @@ -16780,8 +13029,8 @@ type AdsListCall struct { header_ http.Header } -// List: Retrieves a list of ads, possibly filtered. This method -// supports paging. +// List: Retrieves a list of ads, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. func (r *AdsService) List(profileId int64) *AdsListCall { @@ -16796,22 +13045,21 @@ func (c *AdsListCall) Active(active bool) *AdsListCall { return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// ads with this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only ads +// with this advertiser ID. func (c *AdsListCall) AdvertiserId(advertiserId int64) *AdsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Archived sets the optional parameter "archived": Select only archived -// ads. +// Archived sets the optional parameter "archived": Select only archived ads. func (c *AdsListCall) Archived(archived bool) *AdsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": -// Select only ads with these audience segment IDs. +// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": Select +// only ads with these audience segment IDs. func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCall { var audienceSegmentIds_ []string for _, v := range audienceSegmentIds { @@ -16821,8 +13069,8 @@ func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCa return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// ads with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only ads with +// these campaign IDs. func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -16832,13 +13080,13 @@ func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { return c } -// Compatibility sets the optional parameter "compatibility": Select -// default ads with the specified compatibility. Applicable when type is -// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to -// rendering either on desktop or on mobile devices for regular or -// interstitial ads, respectively. APP and APP_INTERSTITIAL are for -// rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an -// in-stream video ads developed with the VAST standard. +// Compatibility sets the optional parameter "compatibility": Select default +// ads with the specified compatibility. Applicable when type is +// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering +// either on desktop or on mobile devices for regular or interstitial ads, +// respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. +// IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with +// the VAST standard. // // Possible values: // @@ -16853,8 +13101,8 @@ func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall { return c } -// CreativeIds sets the optional parameter "creativeIds": Select only -// ads with these creative IDs assigned. +// CreativeIds sets the optional parameter "creativeIds": Select only ads with +// these creative IDs assigned. func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { var creativeIds_ []string for _, v := range creativeIds { @@ -16865,8 +13113,8 @@ func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { } // CreativeOptimizationConfigurationIds sets the optional parameter -// "creativeOptimizationConfigurationIds": Select only ads with these -// creative optimization configuration IDs. +// "creativeOptimizationConfigurationIds": Select only ads with these creative +// optimization configuration IDs. func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationConfigurationIds ...int64) *AdsListCall { var creativeOptimizationConfigurationIds_ []string for _, v := range creativeOptimizationConfigurationIds { @@ -16876,18 +13124,16 @@ func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationC return c } -// DynamicClickTracker sets the optional parameter -// "dynamicClickTracker": Select only dynamic click trackers. Applicable -// when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click -// trackers. If false, select static click trackers. Leave unset to -// select both. +// DynamicClickTracker sets the optional parameter "dynamicClickTracker": +// Select only dynamic click trackers. Applicable when type is +// AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, +// select static click trackers. Leave unset to select both. func (c *AdsListCall) DynamicClickTracker(dynamicClickTracker bool) *AdsListCall { c.urlParams_.Set("dynamicClickTracker", fmt.Sprint(dynamicClickTracker)) return c } -// Ids sets the optional parameter "ids": Select only ads with these -// IDs. +// Ids sets the optional parameter "ids": Select only ads with these IDs. func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { var ids_ []string for _, v := range ids { @@ -16897,8 +13143,8 @@ func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { return c } -// LandingPageIds sets the optional parameter "landingPageIds": Select -// only ads with these landing page IDs. +// LandingPageIds sets the optional parameter "landingPageIds": Select only ads +// with these landing page IDs. func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { var landingPageIds_ []string for _, v := range landingPageIds { @@ -16908,16 +13154,15 @@ func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdsListCall) MaxResults(maxResults int64) *AdsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only ads with this event tag override -// ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only ads with this event tag override ID. func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagId int64) *AdsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -16930,8 +13175,8 @@ func (c *AdsListCall) PageToken(pageToken string) *AdsListCall { return c } -// PlacementIds sets the optional parameter "placementIds": Select only -// ads with these placement IDs assigned. +// PlacementIds sets the optional parameter "placementIds": Select only ads +// with these placement IDs assigned. func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { var placementIds_ []string for _, v := range placementIds { @@ -16941,9 +13186,8 @@ func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { return c } -// RemarketingListIds sets the optional parameter "remarketingListIds": -// Select only ads whose list targeting expression use these remarketing -// list IDs. +// RemarketingListIds sets the optional parameter "remarketingListIds": Select +// only ads whose list targeting expression use these remarketing list IDs. func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCall { var remarketingListIds_ []string for _, v := range remarketingListIds { @@ -16953,20 +13197,19 @@ func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "ad*2015" will return objects with names like "ad June -// 2015", "ad April 2015", or simply "ad 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "ad" will match objects with -// name "my ad", "ad 2015", or simply "ad". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, "ad*2015" +// will return objects with names like "ad June 2015", "ad April 2015", or +// simply "ad 2015". Most of the searches also add wildcards implicitly at the +// start and the end of the search string. For example, a search string of "ad" +// will match objects with name "my ad", "ad 2015", or simply "ad". func (c *AdsListCall) SearchString(searchString string) *AdsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only ads with -// these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only ads with these +// size IDs. func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -16976,8 +13219,8 @@ func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -16988,8 +13231,7 @@ func (c *AdsListCall) SortField(sortField string) *AdsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -17000,22 +13242,21 @@ func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall { return c } -// SslCompliant sets the optional parameter "sslCompliant": Select only -// ads that are SSL-compliant. +// SslCompliant sets the optional parameter "sslCompliant": Select only ads +// that are SSL-compliant. func (c *AdsListCall) SslCompliant(sslCompliant bool) *AdsListCall { c.urlParams_.Set("sslCompliant", fmt.Sprint(sslCompliant)) return c } -// SslRequired sets the optional parameter "sslRequired": Select only -// ads that require SSL. +// SslRequired sets the optional parameter "sslRequired": Select only ads that +// require SSL. func (c *AdsListCall) SslRequired(sslRequired bool) *AdsListCall { c.urlParams_.Set("sslRequired", fmt.Sprint(sslRequired)) return c } -// Type sets the optional parameter "type": Select only ads with these -// types. +// Type sets the optional parameter "type": Select only ads with these types. // // Possible values: // @@ -17030,33 +13271,29 @@ func (c *AdsListCall) Type(type_ ...string) *AdsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsListCall) Fields(s ...googleapi.Field) *AdsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsListCall) IfNoneMatch(entityTag string) *AdsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsListCall) Context(ctx context.Context) *AdsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17065,12 +13302,7 @@ func (c *AdsListCall) Header() http.Header { } func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17087,16 +13319,15 @@ func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.list" call. -// Exactly one of *AdsListResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdsListResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17104,17 +13335,17 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17127,220 +13358,6 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) return nil, err } return ret, nil - // { - // "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "GET", - // "id": "dfareporting.ads.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active ads.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only ads with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived ads.", - // "location": "query", - // "type": "boolean" - // }, - // "audienceSegmentIds": { - // "description": "Select only ads with these audience segment IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "campaignIds": { - // "description": "Select only ads with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibility": { - // "description": "Select default ads with the specified compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard.", - // "enum": [ - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "APP", - // "APP_INTERSTITIAL", - // "IN_STREAM_VIDEO", - // "IN_STREAM_AUDIO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "creativeIds": { - // "description": "Select only ads with these creative IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeOptimizationConfigurationIds": { - // "description": "Select only ads with these creative optimization configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dynamicClickTracker": { - // "description": "Select only dynamic click trackers. Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, select static click trackers. Leave unset to select both.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only ads with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "landingPageIds": { - // "description": "Select only ads with these landing page IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only ads with this event tag override ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Select only ads with these placement IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListIds": { - // "description": "Select only ads whose list targeting expression use these remarketing list IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"ad*2015\" will return objects with names like \"ad June 2015\", \"ad April 2015\", or simply \"ad 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"ad\" will match objects with name \"my ad\", \"ad 2015\", or simply \"ad\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only ads with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sslCompliant": { - // "description": "Select only ads that are SSL-compliant.", - // "location": "query", - // "type": "boolean" - // }, - // "sslRequired": { - // "description": "Select only ads that require SSL.", - // "location": "query", - // "type": "boolean" - // }, - // "type": { - // "description": "Select only ads with these types.", - // "enum": [ - // "AD_SERVING_STANDARD_AD", - // "AD_SERVING_DEFAULT_AD", - // "AD_SERVING_CLICK_TRACKER", - // "AD_SERVING_TRACKING", - // "AD_SERVING_BRAND_SAFE_AD" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "response": { - // "$ref": "AdsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -17348,7 +13365,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // The provided context supersedes any context provided to the Context method. func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17364,8 +13381,6 @@ func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) } } -// method id "dfareporting.ads.patch": - type AdsPatchCall struct { s *Service profileId int64 @@ -17388,23 +13403,21 @@ func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsPatchCall) Fields(s ...googleapi.Field) *AdsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsPatchCall) Context(ctx context.Context) *AdsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17413,18 +13426,12 @@ func (c *AdsPatchCall) Header() http.Header { } func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17437,16 +13444,14 @@ func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.patch" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17454,17 +13459,17 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17477,46 +13482,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "PATCH", - // "id": "dfareporting.ads.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.update": +} type AdsUpdateCall struct { s *Service @@ -17538,23 +13504,21 @@ func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsUpdateCall) Fields(s ...googleapi.Field) *AdsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsUpdateCall) Context(ctx context.Context) *AdsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17563,18 +13527,12 @@ func (c *AdsUpdateCall) Header() http.Header { } func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17587,16 +13545,14 @@ func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.update" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17604,17 +13560,17 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17627,38 +13583,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "PUT", - // "id": "dfareporting.ads.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.delete": +} type AdvertiserGroupsDeleteCall struct { s *Service @@ -17681,23 +13606,21 @@ func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsDeleteCall) Fields(s ...googleapi.Field) *AdvertiserGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsDeleteCall) Context(ctx context.Context) *AdvertiserGroupsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17706,12 +13629,7 @@ func (c *AdvertiserGroupsDeleteCall) Header() http.Header { } func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17726,7 +13644,7 @@ func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.delete" call. @@ -17738,43 +13656,10 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.advertiserGroups.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.get": +} type AdvertiserGroupsGetCall struct { s *Service @@ -17798,33 +13683,29 @@ func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGrou } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsGetCall) Fields(s ...googleapi.Field) *AdvertiserGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsGetCall) IfNoneMatch(entityTag string) *AdvertiserGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsGetCall) Context(ctx context.Context) *AdvertiserGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17833,12 +13714,7 @@ func (c *AdvertiserGroupsGetCall) Header() http.Header { } func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17856,16 +13732,15 @@ func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.get" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17873,17 +13748,17 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -17896,43 +13771,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG return nil, err } return ret, nil - // { - // "description": "Gets one advertiser group by ID.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.insert": +} type AdvertiserGroupsInsertCall struct { s *Service @@ -17954,23 +13793,21 @@ func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsInsertCall) Fields(s ...googleapi.Field) *AdvertiserGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsInsertCall) Context(ctx context.Context) *AdvertiserGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17979,18 +13816,12 @@ func (c *AdvertiserGroupsInsertCall) Header() http.Header { } func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18003,16 +13834,15 @@ func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.insert" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18020,17 +13850,17 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18043,38 +13873,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.list": +} type AdvertiserGroupsListCall struct { s *Service @@ -18085,8 +13884,8 @@ type AdvertiserGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of advertiser groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of advertiser groups, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCall { @@ -18095,8 +13894,8 @@ func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCal return c } -// Ids sets the optional parameter "ids": Select only advertiser groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only advertiser groups with +// these IDs. func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { var ids_ []string for _, v := range ids { @@ -18106,8 +13905,8 @@ func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserGroupsListCall) MaxResults(maxResults int64) *AdvertiserGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -18120,22 +13919,21 @@ func (c *AdvertiserGroupsListCall) PageToken(pageToken string) *AdvertiserGroups return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser group June 2015", "advertiser group April 2015", or -// simply "advertiser group 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "advertisergroup" will match objects -// with name "my advertisergroup", "advertisergroup 2015", or simply -// "advertisergroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser group June +// 2015", "advertiser group April 2015", or simply "advertiser group 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "advertisergroup" will +// match objects with name "my advertisergroup", "advertisergroup 2015", or +// simply "advertisergroup". func (c *AdvertiserGroupsListCall) SearchString(searchString string) *AdvertiserGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -18146,8 +13944,7 @@ func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroups return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -18159,33 +13956,29 @@ func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsListCall) Fields(s ...googleapi.Field) *AdvertiserGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsListCall) IfNoneMatch(entityTag string) *AdvertiserGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsListCall) Context(ctx context.Context) *AdvertiserGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18194,12 +13987,7 @@ func (c *AdvertiserGroupsListCall) Header() http.Header { } func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18216,16 +14004,15 @@ func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.list" call. -// Exactly one of *AdvertiserGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserGroupsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18233,17 +14020,17 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18256,86 +14043,6 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only advertiser groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser group June 2015\", \"advertiser group April 2015\", or simply \"advertiser group 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertisergroup\" will match objects with name \"my advertisergroup\", \"advertisergroup 2015\", or simply \"advertisergroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "response": { - // "$ref": "AdvertiserGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -18343,7 +14050,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // The provided context supersedes any context provided to the Context method. func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*AdvertiserGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18359,8 +14066,6 @@ func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*Advertiser } } -// method id "dfareporting.advertiserGroups.patch": - type AdvertiserGroupsPatchCall struct { s *Service profileId int64 @@ -18370,8 +14075,8 @@ type AdvertiserGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser group. This method supports -// patch semantics. +// Patch: Updates an existing advertiser group. This method supports patch +// semantics. // // - id: AdvertiserGroup ID. // - profileId: User profile ID associated with this request. @@ -18384,23 +14089,21 @@ func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsPatchCall) Fields(s ...googleapi.Field) *AdvertiserGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsPatchCall) Context(ctx context.Context) *AdvertiserGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18409,18 +14112,12 @@ func (c *AdvertiserGroupsPatchCall) Header() http.Header { } func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18433,16 +14130,15 @@ func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.patch" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18450,17 +14146,17 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18473,46 +14169,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "AdvertiserGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.update": +} type AdvertiserGroupsUpdateCall struct { s *Service @@ -18534,23 +14191,21 @@ func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsUpdateCall) Fields(s ...googleapi.Field) *AdvertiserGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsUpdateCall) Context(ctx context.Context) *AdvertiserGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18559,18 +14214,12 @@ func (c *AdvertiserGroupsUpdateCall) Header() http.Header { } func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18583,16 +14232,15 @@ func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.update" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18600,17 +14248,17 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18623,38 +14271,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.get": +} type AdvertiserLandingPagesGetCall struct { s *Service @@ -18678,33 +14295,29 @@ func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *Advertis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesGetCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserLandingPagesGetCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesGetCall) Context(ctx context.Context) *AdvertiserLandingPagesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18713,12 +14326,7 @@ func (c *AdvertiserLandingPagesGetCall) Header() http.Header { } func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18736,16 +14344,14 @@ func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.get" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18753,17 +14359,17 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -18776,43 +14382,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi return nil, err } return ret, nil - // { - // "description": "Gets one landing page by ID.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.insert": +} type AdvertiserLandingPagesInsertCall struct { s *Service @@ -18834,23 +14404,21 @@ func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *Lan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesInsertCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesInsertCall) Context(ctx context.Context) *AdvertiserLandingPagesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18859,18 +14427,12 @@ func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { } func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -18883,16 +14445,14 @@ func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.insert" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18900,17 +14460,17 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -18923,38 +14483,7 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La return nil, err } return ret, nil - // { - // "description": "Inserts a new landing page.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserLandingPages.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.list": +} type AdvertiserLandingPagesListCall struct { s *Service @@ -18974,8 +14503,8 @@ func (r *AdvertiserLandingPagesService) List(profileId int64) *AdvertiserLanding return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only landing pages that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// landing pages that belong to these advertisers. func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) *AdvertiserLandingPagesListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -18986,15 +14515,15 @@ func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) * } // Archived sets the optional parameter "archived": Select only archived -// landing pages. Don't set this field to select both archived and -// non-archived landing pages. +// landing pages. Don't set this field to select both archived and non-archived +// landing pages. func (c *AdvertiserLandingPagesListCall) Archived(archived bool) *AdvertiserLandingPagesListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// landing pages that are associated with these campaigns. +// CampaignIds sets the optional parameter "campaignIds": Select only landing +// pages that are associated with these campaigns. func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *AdvertiserLandingPagesListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -19004,8 +14533,8 @@ func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *Adve return c } -// Ids sets the optional parameter "ids": Select only landing pages with -// these IDs. +// Ids sets the optional parameter "ids": Select only landing pages with these +// IDs. func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPagesListCall { var ids_ []string for _, v := range ids { @@ -19015,8 +14544,8 @@ func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPag return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserLandingPagesListCall) MaxResults(maxResults int64) *AdvertiserLandingPagesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -19029,21 +14558,21 @@ func (c *AdvertiserLandingPagesListCall) PageToken(pageToken string) *Advertiser return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for landing pages by name or ID. Wildcards (*) are allowed. -// For example, "landingpage*2017" will return landing pages with names -// like "landingpage July 2017", "landingpage March 2017", or simply -// "landingpage 2017". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "landingpage" will match campaigns with -// name "my landingpage", "landingpage 2015", or simply "landingpage". +// SearchString sets the optional parameter "searchString": Allows searching +// for landing pages by name or ID. Wildcards (*) are allowed. For example, +// "landingpage*2017" will return landing pages with names like "landingpage +// July 2017", "landingpage March 2017", or simply "landingpage 2017". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "landingpage" will match +// campaigns with name "my landingpage", "landingpage 2015", or simply +// "landingpage". func (c *AdvertiserLandingPagesListCall) SearchString(searchString string) *AdvertiserLandingPagesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -19054,8 +14583,7 @@ func (c *AdvertiserLandingPagesListCall) SortField(sortField string) *Advertiser return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -19066,41 +14594,37 @@ func (c *AdvertiserLandingPagesListCall) SortOrder(sortOrder string) *Advertiser return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// landing pages that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only landing +// pages that belong to this subaccount. func (c *AdvertiserLandingPagesListCall) SubaccountId(subaccountId int64) *AdvertiserLandingPagesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesListCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserLandingPagesListCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesListCall) Context(ctx context.Context) *AdvertiserLandingPagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19109,12 +14633,7 @@ func (c *AdvertiserLandingPagesListCall) Header() http.Header { } func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19131,17 +14650,15 @@ func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.list" call. -// Exactly one of *AdvertiserLandingPagesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserLandingPagesListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserLandingPagesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*AdvertiserLandingPagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19149,17 +14666,17 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserLandingPagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19172,111 +14689,6 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve return nil, err } return ret, nil - // { - // "description": "Retrieves a list of landing pages.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only landing pages that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived landing pages. Don't set this field to select both archived and non-archived landing pages.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only landing pages that are associated with these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only landing pages with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for landing pages by name or ID. Wildcards (*) are allowed. For example, \"landingpage*2017\" will return landing pages with names like \"landingpage July 2017\", \"landingpage March 2017\", or simply \"landingpage 2017\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"landingpage\" will match campaigns with name \"my landingpage\", \"landingpage 2015\", or simply \"landingpage\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only landing pages that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "response": { - // "$ref": "AdvertiserLandingPagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -19284,7 +14696,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // The provided context supersedes any context provided to the Context method. func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*AdvertiserLandingPagesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -19300,8 +14712,6 @@ func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*Adve } } -// method id "dfareporting.advertiserLandingPages.patch": - type AdvertiserLandingPagesPatchCall struct { s *Service profileId int64 @@ -19311,8 +14721,8 @@ type AdvertiserLandingPagesPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser landing page. This method -// supports patch semantics. +// Patch: Updates an existing advertiser landing page. This method supports +// patch semantics. // // - id: LandingPage ID. // - profileId: User profile ID associated with this request. @@ -19325,23 +14735,21 @@ func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landing } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesPatchCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesPatchCall) Context(ctx context.Context) *AdvertiserLandingPagesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19350,18 +14758,12 @@ func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { } func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -19374,16 +14776,14 @@ func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.patch" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19391,17 +14791,17 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19414,46 +14814,7 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser landing page. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserLandingPages.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "LandingPage ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.update": +} type AdvertiserLandingPagesUpdateCall struct { s *Service @@ -19475,23 +14836,21 @@ func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *Lan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesUpdateCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesUpdateCall) Context(ctx context.Context) *AdvertiserLandingPagesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19500,18 +14859,12 @@ func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { } func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -19524,16 +14877,14 @@ func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.update" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19541,17 +14892,17 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19564,38 +14915,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La return nil, err } return ret, nil - // { - // "description": "Updates an existing landing page.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserLandingPages.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.get": +} type AdvertisersGetCall struct { s *Service @@ -19619,33 +14939,29 @@ func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersGetCall) Fields(s ...googleapi.Field) *AdvertisersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19654,12 +14970,7 @@ func (c *AdvertisersGetCall) Header() http.Header { } func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19677,16 +14988,14 @@ func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.get" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19694,17 +15003,17 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -19717,43 +15026,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro return nil, err } return ret, nil - // { - // "description": "Gets one advertiser by ID.", - // "flatPath": "userprofiles/{profileId}/advertisers/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers/{id}", - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.insert": +} type AdvertisersInsertCall struct { s *Service @@ -19775,23 +15048,21 @@ func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertCall) Fields(s ...googleapi.Field) *AdvertisersInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertCall) Context(ctx context.Context) *AdvertisersInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19800,18 +15071,12 @@ func (c *AdvertisersInsertCall) Header() http.Header { } func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -19824,16 +15089,14 @@ func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.insert" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19841,17 +15104,17 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -19864,38 +15127,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "POST", - // "id": "dfareporting.advertisers.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.list": +} type AdvertisersListCall struct { s *Service @@ -19916,8 +15148,8 @@ func (r *AdvertisersService) List(profileId int64) *AdvertisersListCall { return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only advertisers with these advertiser group IDs. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only advertisers with these advertiser group IDs. func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *AdvertisersListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -19928,8 +15160,8 @@ func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *A } // FloodlightConfigurationIds sets the optional parameter -// "floodlightConfigurationIds": Select only advertisers with these -// floodlight configuration IDs. +// "floodlightConfigurationIds": Select only advertisers with these floodlight +// configuration IDs. func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfigurationIds ...int64) *AdvertisersListCall { var floodlightConfigurationIds_ []string for _, v := range floodlightConfigurationIds { @@ -19939,8 +15171,8 @@ func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfiguration return c } -// Ids sets the optional parameter "ids": Select only advertisers with -// these IDs. +// Ids sets the optional parameter "ids": Select only advertisers with these +// IDs. func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { var ids_ []string for _, v := range ids { @@ -19951,22 +15183,22 @@ func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { } // IncludeAdvertisersWithoutGroupsOnly sets the optional parameter -// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which -// do not belong to any advertiser group. +// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which do not +// belong to any advertiser group. func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnly bool) *AdvertisersListCall { c.urlParams_.Set("includeAdvertisersWithoutGroupsOnly", fmt.Sprint(includeAdvertisersWithoutGroupsOnly)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertisersListCall) MaxResults(maxResults int64) *AdvertisersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OnlyParent sets the optional parameter "onlyParent": Select only -// advertisers which use another advertiser's floodlight configuration. +// OnlyParent sets the optional parameter "onlyParent": Select only advertisers +// which use another advertiser's floodlight configuration. func (c *AdvertisersListCall) OnlyParent(onlyParent bool) *AdvertisersListCall { c.urlParams_.Set("onlyParent", fmt.Sprint(onlyParent)) return c @@ -19979,21 +15211,21 @@ func (c *AdvertisersListCall) PageToken(pageToken string) *AdvertisersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser June 2015", "advertiser April 2015", or simply -// "advertiser 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "advertiser" will match objects with name "my advertiser", -// "advertiser 2015", or simply "advertiser" . +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser June +// 2015", "advertiser April 2015", or simply "advertiser 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "advertiser" will match +// objects with name "my advertiser", "advertiser 2015", or simply "advertiser" +// . func (c *AdvertisersListCall) SearchString(searchString string) *AdvertisersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -20004,8 +15236,7 @@ func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -20016,8 +15247,8 @@ func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall { return c } -// Status sets the optional parameter "status": Select only advertisers -// with the specified status. +// Status sets the optional parameter "status": Select only advertisers with +// the specified status. // // Possible values: // @@ -20036,33 +15267,29 @@ func (c *AdvertisersListCall) SubaccountId(subaccountId int64) *AdvertisersListC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersListCall) Fields(s ...googleapi.Field) *AdvertisersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20071,12 +15298,7 @@ func (c *AdvertisersListCall) Header() http.Header { } func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20093,16 +15315,15 @@ func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.list" call. -// Exactly one of *AdvertisersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AdvertisersListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20110,17 +15331,17 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertisersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20133,129 +15354,6 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only advertisers with these advertiser group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightConfigurationIds": { - // "description": "Select only advertisers with these floodlight configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only advertisers with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "includeAdvertisersWithoutGroupsOnly": { - // "description": "Select only advertisers which do not belong to any advertiser group.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "onlyParent": { - // "description": "Select only advertisers which use another advertiser's floodlight configuration.", - // "location": "query", - // "type": "boolean" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser June 2015\", \"advertiser April 2015\", or simply \"advertiser 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertiser\" will match objects with name \"my advertiser\", \"advertiser 2015\", or simply \"advertiser\" .", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "status": { - // "description": "Select only advertisers with the specified status.", - // "enum": [ - // "APPROVED", - // "ON_HOLD" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only advertisers with these subaccount IDs.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "response": { - // "$ref": "AdvertisersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -20263,7 +15361,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // The provided context supersedes any context provided to the Context method. func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20279,8 +15377,6 @@ func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersList } } -// method id "dfareporting.advertisers.patch": - type AdvertisersPatchCall struct { s *Service profileId int64 @@ -20290,8 +15386,7 @@ type AdvertisersPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser. This method supports patch -// semantics. +// Patch: Updates an existing advertiser. This method supports patch semantics. // // - id: Advertiser ID. // - profileId: User profile ID associated with this request. @@ -20304,23 +15399,21 @@ func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersPatchCall) Fields(s ...googleapi.Field) *AdvertisersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20329,18 +15422,12 @@ func (c *AdvertisersPatchCall) Header() http.Header { } func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -20353,16 +15440,14 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.patch" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20370,17 +15455,17 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -20393,46 +15478,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertisers.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.update": +} type AdvertisersUpdateCall struct { s *Service @@ -20454,23 +15500,21 @@ func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersUpdateCall) Fields(s ...googleapi.Field) *AdvertisersUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersUpdateCall) Context(ctx context.Context) *AdvertisersUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20479,18 +15523,12 @@ func (c *AdvertisersUpdateCall) Header() http.Header { } func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -20503,16 +15541,14 @@ func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.update" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20520,17 +15556,17 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -20543,38 +15579,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "PUT", - // "id": "dfareporting.advertisers.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.browsers.list": +} type BrowsersListCall struct { s *Service @@ -20595,33 +15600,29 @@ func (r *BrowsersService) List(profileId int64) *BrowsersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BrowsersListCall) Fields(s ...googleapi.Field) *BrowsersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BrowsersListCall) IfNoneMatch(entityTag string) *BrowsersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BrowsersListCall) Context(ctx context.Context) *BrowsersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BrowsersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20630,12 +15631,7 @@ func (c *BrowsersListCall) Header() http.Header { } func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20652,16 +15648,15 @@ func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.browsers.list" call. -// Exactly one of *BrowsersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BrowsersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BrowsersListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20669,17 +15664,17 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BrowsersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20692,35 +15687,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of browsers.", - // "flatPath": "userprofiles/{profileId}/browsers", - // "httpMethod": "GET", - // "id": "dfareporting.browsers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/browsers", - // "response": { - // "$ref": "BrowsersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.insert": +} type CampaignCreativeAssociationsInsertCall struct { s *Service @@ -20732,9 +15699,9 @@ type CampaignCreativeAssociationsInsertCall struct { header_ http.Header } -// Insert: Associates a creative with the specified campaign. This -// method creates a default ad with dimensions matching the creative in -// the campaign if such a default ad does not exist already. +// Insert: Associates a creative with the specified campaign. This method +// creates a default ad with dimensions matching the creative in the campaign +// if such a default ad does not exist already. // // - campaignId: Campaign ID in this association. // - profileId: User profile ID associated with this request. @@ -20747,23 +15714,21 @@ func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsInsertCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsInsertCall) Context(ctx context.Context) *CampaignCreativeAssociationsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20772,18 +15737,12 @@ func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { } func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaigncreativeassociation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") @@ -20797,16 +15756,15 @@ func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Re "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.insert" call. -// Exactly one of *CampaignCreativeAssociation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CampaignCreativeAssociation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CampaignCreativeAssociation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20814,17 +15772,17 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociation{ ServerResponse: googleapi.ServerResponse{ @@ -20837,46 +15795,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.", - // "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "httpMethod": "POST", - // "id": "dfareporting.campaignCreativeAssociations.insert", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "request": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "response": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.list": +} type CampaignCreativeAssociationsListCall struct { s *Service @@ -20888,8 +15807,8 @@ type CampaignCreativeAssociationsListCall struct { header_ http.Header } -// List: Retrieves the list of creative IDs associated with the -// specified campaign. This method supports paging. +// List: Retrieves the list of creative IDs associated with the specified +// campaign. This method supports paging. // // - campaignId: Campaign ID in this association. // - profileId: User profile ID associated with this request. @@ -20900,8 +15819,8 @@ func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId i return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignCreativeAssociationsListCall) MaxResults(maxResults int64) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -20914,8 +15833,7 @@ func (c *CampaignCreativeAssociationsListCall) PageToken(pageToken string) *Camp return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -20927,33 +15845,29 @@ func (c *CampaignCreativeAssociationsListCall) SortOrder(sortOrder string) *Camp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsListCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignCreativeAssociationsListCall) IfNoneMatch(entityTag string) *CampaignCreativeAssociationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsListCall) Context(ctx context.Context) *CampaignCreativeAssociationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20962,12 +15876,7 @@ func (c *CampaignCreativeAssociationsListCall) Header() http.Header { } func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20985,18 +15894,15 @@ func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Resp "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.list" call. -// Exactly one of *CampaignCreativeAssociationsListResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21004,17 +15910,17 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21027,68 +15933,6 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "httpMethod": "GET", - // "id": "dfareporting.campaignCreativeAssociations.list", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "response": { - // "$ref": "CampaignCreativeAssociationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -21096,7 +15940,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func(*CampaignCreativeAssociationsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21112,8 +15956,6 @@ func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func } } -// method id "dfareporting.campaigns.get": - type CampaignsGetCall struct { s *Service profileId int64 @@ -21136,33 +15978,29 @@ func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsGetCall) Fields(s ...googleapi.Field) *CampaignsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsGetCall) IfNoneMatch(entityTag string) *CampaignsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsGetCall) Context(ctx context.Context) *CampaignsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21171,12 +16009,7 @@ func (c *CampaignsGetCall) Header() http.Header { } func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21194,16 +16027,14 @@ func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.get" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21211,17 +16042,17 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21234,43 +16065,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { return nil, err } return ret, nil - // { - // "description": "Gets one campaign by ID.", - // "flatPath": "userprofiles/{profileId}/campaigns/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{id}", - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.insert": +} type CampaignsInsertCall struct { s *Service @@ -21292,23 +16087,21 @@ func (r *CampaignsService) Insert(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsInsertCall) Fields(s ...googleapi.Field) *CampaignsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsInsertCall) Context(ctx context.Context) *CampaignsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21317,18 +16110,12 @@ func (c *CampaignsInsertCall) Header() http.Header { } func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -21341,16 +16128,14 @@ func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.insert" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21358,17 +16143,17 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21381,38 +16166,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Inserts a new campaign.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "POST", - // "id": "dfareporting.campaigns.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.list": +} type CampaignsListCall struct { s *Service @@ -21423,8 +16177,8 @@ type CampaignsListCall struct { header_ http.Header } -// List: Retrieves a list of campaigns, possibly filtered. This method -// supports paging. +// List: Retrieves a list of campaigns, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. func (r *CampaignsService) List(profileId int64) *CampaignsListCall { @@ -21433,9 +16187,8 @@ func (r *CampaignsService) List(profileId int64) *CampaignsListCall { return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only campaigns whose advertisers belong to these advertiser -// groups. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only campaigns whose advertisers belong to these advertiser groups. func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *CampaignsListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -21445,8 +16198,8 @@ func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *Cam return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only campaigns that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// campaigns that belong to these advertisers. func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -21457,23 +16210,23 @@ func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsList } // Archived sets the optional parameter "archived": Select only archived -// campaigns. Don't set this field to select both archived and -// non-archived campaigns. +// campaigns. Don't set this field to select both archived and non-archived +// campaigns. func (c *CampaignsListCall) Archived(archived bool) *CampaignsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } // AtLeastOneOptimizationActivity sets the optional parameter -// "atLeastOneOptimizationActivity": Select only campaigns that have at -// least one optimization activity. +// "atLeastOneOptimizationActivity": Select only campaigns that have at least +// one optimization activity. func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivity bool) *CampaignsListCall { c.urlParams_.Set("atLeastOneOptimizationActivity", fmt.Sprint(atLeastOneOptimizationActivity)) return c } -// ExcludedIds sets the optional parameter "excludedIds": Exclude -// campaigns with these IDs. +// ExcludedIds sets the optional parameter "excludedIds": Exclude campaigns +// with these IDs. func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall { var excludedIds_ []string for _, v := range excludedIds { @@ -21483,8 +16236,7 @@ func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall return c } -// Ids sets the optional parameter "ids": Select only campaigns with -// these IDs. +// Ids sets the optional parameter "ids": Select only campaigns with these IDs. func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { var ids_ []string for _, v := range ids { @@ -21494,16 +16246,15 @@ func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignsListCall) MaxResults(maxResults int64) *CampaignsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only campaigns that have overridden -// this event tag ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only campaigns that have overridden this event tag ID. func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagId int64) *CampaignsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -21516,21 +16267,20 @@ func (c *CampaignsListCall) PageToken(pageToken string) *CampaignsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for campaigns by name or ID. Wildcards (*) are allowed. For -// example, "campaign*2015" will return campaigns with names like -// "campaign June 2015", "campaign April 2015", or simply "campaign -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "campaign" will match campaigns with name "my campaign", "campaign -// 2015", or simply "campaign". +// SearchString sets the optional parameter "searchString": Allows searching +// for campaigns by name or ID. Wildcards (*) are allowed. For example, +// "campaign*2015" will return campaigns with names like "campaign June 2015", +// "campaign April 2015", or simply "campaign 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "campaign" will match campaigns with name "my +// campaign", "campaign 2015", or simply "campaign". func (c *CampaignsListCall) SearchString(searchString string) *CampaignsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -21541,8 +16291,7 @@ func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -21561,33 +16310,29 @@ func (c *CampaignsListCall) SubaccountId(subaccountId int64) *CampaignsListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsListCall) Fields(s ...googleapi.Field) *CampaignsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsListCall) IfNoneMatch(entityTag string) *CampaignsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsListCall) Context(ctx context.Context) *CampaignsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21596,12 +16341,7 @@ func (c *CampaignsListCall) Header() http.Header { } func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21618,16 +16358,15 @@ func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.list" call. -// Exactly one of *CampaignsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CampaignsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21635,17 +16374,17 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21658,129 +16397,6 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only campaigns whose advertisers belong to these advertiser groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "advertiserIds": { - // "description": "Select only campaigns that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.", - // "location": "query", - // "type": "boolean" - // }, - // "atLeastOneOptimizationActivity": { - // "description": "Select only campaigns that have at least one optimization activity.", - // "location": "query", - // "type": "boolean" - // }, - // "excludedIds": { - // "description": "Exclude campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only campaigns that have overridden this event tag ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, \"campaign*2015\" will return campaigns with names like \"campaign June 2015\", \"campaign April 2015\", or simply \"campaign 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"campaign\" will match campaigns with name \"my campaign\", \"campaign 2015\", or simply \"campaign\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only campaigns that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "response": { - // "$ref": "CampaignsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -21788,7 +16404,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // The provided context supersedes any context provided to the Context method. func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21804,8 +16420,6 @@ func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResp } } -// method id "dfareporting.campaigns.patch": - type CampaignsPatchCall struct { s *Service profileId int64 @@ -21815,8 +16429,7 @@ type CampaignsPatchCall struct { header_ http.Header } -// Patch: Updates an existing campaign. This method supports patch -// semantics. +// Patch: Updates an existing campaign. This method supports patch semantics. // // - id: Campaign ID. // - profileId: User profile ID associated with this request. @@ -21829,23 +16442,21 @@ func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsPatchCall) Fields(s ...googleapi.Field) *CampaignsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsPatchCall) Context(ctx context.Context) *CampaignsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21854,18 +16465,12 @@ func (c *CampaignsPatchCall) Header() http.Header { } func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -21878,16 +16483,14 @@ func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.patch" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21895,17 +16498,17 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -21918,46 +16521,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "PATCH", - // "id": "dfareporting.campaigns.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.update": +} type CampaignsUpdateCall struct { s *Service @@ -21979,23 +16543,21 @@ func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsUpdateCall) Fields(s ...googleapi.Field) *CampaignsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsUpdateCall) Context(ctx context.Context) *CampaignsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22004,18 +16566,12 @@ func (c *CampaignsUpdateCall) Header() http.Header { } func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -22028,16 +16584,14 @@ func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.update" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22045,17 +16599,17 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -22068,38 +16622,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "PUT", - // "id": "dfareporting.campaigns.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.get": +} type ChangeLogsGetCall struct { s *Service @@ -22123,33 +16646,29 @@ func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsGetCall) Fields(s ...googleapi.Field) *ChangeLogsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsGetCall) IfNoneMatch(entityTag string) *ChangeLogsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsGetCall) Context(ctx context.Context) *ChangeLogsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22158,12 +16677,7 @@ func (c *ChangeLogsGetCall) Header() http.Header { } func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22181,16 +16695,14 @@ func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.get" call. -// Exactly one of *ChangeLog or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ChangeLog.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLog.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22198,17 +16710,17 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLog{ ServerResponse: googleapi.ServerResponse{ @@ -22221,43 +16733,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) return nil, err } return ret, nil - // { - // "description": "Gets one change log by ID.", - // "flatPath": "userprofiles/{profileId}/changeLogs/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Change log ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs/{id}", - // "response": { - // "$ref": "ChangeLog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.list": +} type ChangeLogsListCall struct { s *Service @@ -22277,8 +16753,8 @@ func (r *ChangeLogsService) List(profileId int64) *ChangeLogsListCall { return c } -// Action sets the optional parameter "action": Select only change logs -// with the specified action. +// Action sets the optional parameter "action": Select only change logs with +// the specified action. // // Possible values: // @@ -22304,8 +16780,8 @@ func (c *ChangeLogsListCall) Action(action string) *ChangeLogsListCall { return c } -// Ids sets the optional parameter "ids": Select only change logs with -// these IDs. +// Ids sets the optional parameter "ids": Select only change logs with these +// IDs. func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { var ids_ []string for _, v := range ids { @@ -22315,41 +16791,39 @@ func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { return c } -// MaxChangeTime sets the optional parameter "maxChangeTime": Select -// only change logs whose change time is before the specified -// maxChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MaxChangeTime sets the optional parameter "maxChangeTime": Select only +// change logs whose change time is before the specified maxChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("maxChangeTime", maxChangeTime) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ChangeLogsListCall) MaxResults(maxResults int64) *ChangeLogsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// MinChangeTime sets the optional parameter "minChangeTime": Select -// only change logs whose change time is after the specified -// minChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MinChangeTime sets the optional parameter "minChangeTime": Select only +// change logs whose change time is after the specified minChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MinChangeTime(minChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("minChangeTime", minChangeTime) return c } -// ObjectIds sets the optional parameter "objectIds": Select only change -// logs with these object IDs. +// ObjectIds sets the optional parameter "objectIds": Select only change logs +// with these object IDs. func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { var objectIds_ []string for _, v := range objectIds { @@ -22359,8 +16833,8 @@ func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { return c } -// ObjectType sets the optional parameter "objectType": Select only -// change logs with the specified object type. +// ObjectType sets the optional parameter "objectType": Select only change logs +// with the specified object type. // // Possible values: // @@ -22416,16 +16890,15 @@ func (c *ChangeLogsListCall) PageToken(pageToken string) *ChangeLogsListCall { return c } -// SearchString sets the optional parameter "searchString": Select only -// change logs whose object ID, user name, old or new values match the -// search string. +// SearchString sets the optional parameter "searchString": Select only change +// logs whose object ID, user name, old or new values match the search string. func (c *ChangeLogsListCall) SearchString(searchString string) *ChangeLogsListCall { c.urlParams_.Set("searchString", searchString) return c } -// UserProfileIds sets the optional parameter "userProfileIds": Select -// only change logs with these user profile IDs. +// UserProfileIds sets the optional parameter "userProfileIds": Select only +// change logs with these user profile IDs. func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogsListCall { var userProfileIds_ []string for _, v := range userProfileIds { @@ -22436,33 +16909,29 @@ func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogs } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsListCall) Fields(s ...googleapi.Field) *ChangeLogsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsListCall) IfNoneMatch(entityTag string) *ChangeLogsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsListCall) Context(ctx context.Context) *ChangeLogsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22471,12 +16940,7 @@ func (c *ChangeLogsListCall) Header() http.Header { } func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22493,16 +16957,15 @@ func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.list" call. -// Exactly one of *ChangeLogsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ChangeLogsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLogsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22510,17 +16973,17 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLogsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22533,214 +16996,6 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of change logs. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/changeLogs", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "action": { - // "description": "Select only change logs with the specified action.", - // "enum": [ - // "ACTION_CREATE", - // "ACTION_UPDATE", - // "ACTION_DELETE", - // "ACTION_ENABLE", - // "ACTION_DISABLE", - // "ACTION_ADD", - // "ACTION_REMOVE", - // "ACTION_MARK_AS_DEFAULT", - // "ACTION_ASSOCIATE", - // "ACTION_ASSIGN", - // "ACTION_UNASSIGN", - // "ACTION_SEND", - // "ACTION_LINK", - // "ACTION_UNLINK", - // "ACTION_PUSH", - // "ACTION_EMAIL_TAGS", - // "ACTION_SHARE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only change logs with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxChangeTime": { - // "description": "Select only change logs whose change time is before the specified maxChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "minChangeTime": { - // "description": "Select only change logs whose change time is after the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "objectIds": { - // "description": "Select only change logs with these object IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Select only change logs with the specified object type.", - // "enum": [ - // "OBJECT_ADVERTISER", - // "OBJECT_FLOODLIGHT_CONFIGURATION", - // "OBJECT_AD", - // "OBJECT_FLOODLIGHT_ACTVITY", - // "OBJECT_CAMPAIGN", - // "OBJECT_FLOODLIGHT_ACTIVITY_GROUP", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT", - // "OBJECT_DFA_SITE", - // "OBJECT_USER_ROLE", - // "OBJECT_USER_PROFILE", - // "OBJECT_ADVERTISER_GROUP", - // "OBJECT_ACCOUNT", - // "OBJECT_SUBACCOUNT", - // "OBJECT_RICHMEDIA_CREATIVE", - // "OBJECT_INSTREAM_CREATIVE", - // "OBJECT_MEDIA_ORDER", - // "OBJECT_CONTENT_CATEGORY", - // "OBJECT_PLACEMENT_STRATEGY", - // "OBJECT_SD_SITE", - // "OBJECT_SIZE", - // "OBJECT_CREATIVE_GROUP", - // "OBJECT_CREATIVE_ASSET", - // "OBJECT_USER_PROFILE_FILTER", - // "OBJECT_LANDING_PAGE", - // "OBJECT_CREATIVE_FIELD", - // "OBJECT_REMARKETING_LIST", - // "OBJECT_PROVIDED_LIST_CLIENT", - // "OBJECT_EVENT_TAG", - // "OBJECT_CREATIVE_BUNDLE", - // "OBJECT_BILLING_ACCOUNT_GROUP", - // "OBJECT_BILLING_FEATURE", - // "OBJECT_RATE_CARD", - // "OBJECT_ACCOUNT_BILLING_FEATURE", - // "OBJECT_BILLING_MINIMUM_FEE", - // "OBJECT_BILLING_PROFILE", - // "OBJECT_PLAYSTORE_LINK", - // "OBJECT_TARGETING_TEMPLATE", - // "OBJECT_SEARCH_LIFT_STUDY", - // "OBJECT_FLOODLIGHT_DV360_LINK" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Select only change logs whose object ID, user name, old or new values match the search string.", - // "location": "query", - // "type": "string" - // }, - // "userProfileIds": { - // "description": "Select only change logs with these user profile IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs", - // "response": { - // "$ref": "ChangeLogsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -22748,7 +17003,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // The provided context supersedes any context provided to the Context method. func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -22764,8 +17019,6 @@ func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListRe } } -// method id "dfareporting.cities.list": - type CitiesListCall struct { s *Service profileId int64 @@ -22784,8 +17037,8 @@ func (r *CitiesService) List(profileId int64) *CitiesListCall { return c } -// CountryDartIds sets the optional parameter "countryDartIds": Select -// only cities from these countries. +// CountryDartIds sets the optional parameter "countryDartIds": Select only +// cities from these countries. func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall { var countryDartIds_ []string for _, v := range countryDartIds { @@ -22795,8 +17048,8 @@ func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall return c } -// DartIds sets the optional parameter "dartIds": Select only cities -// with these DART IDs. +// DartIds sets the optional parameter "dartIds": Select only cities with these +// DART IDs. func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { var dartIds_ []string for _, v := range dartIds { @@ -22806,15 +17059,15 @@ func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { return c } -// NamePrefix sets the optional parameter "namePrefix": Select only -// cities with names starting with this prefix. +// NamePrefix sets the optional parameter "namePrefix": Select only cities with +// names starting with this prefix. func (c *CitiesListCall) NamePrefix(namePrefix string) *CitiesListCall { c.urlParams_.Set("namePrefix", namePrefix) return c } -// RegionDartIds sets the optional parameter "regionDartIds": Select -// only cities from these regions. +// RegionDartIds sets the optional parameter "regionDartIds": Select only +// cities from these regions. func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { var regionDartIds_ []string for _, v := range regionDartIds { @@ -22825,33 +17078,29 @@ func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CitiesListCall) Fields(s ...googleapi.Field) *CitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CitiesListCall) IfNoneMatch(entityTag string) *CitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CitiesListCall) Context(ctx context.Context) *CitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22860,12 +17109,7 @@ func (c *CitiesListCall) Header() http.Header { } func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22882,16 +17126,15 @@ func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.cities.list" call. -// Exactly one of *CitiesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CitiesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CitiesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22899,17 +17142,17 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22922,61 +17165,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of cities, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/cities", - // "httpMethod": "GET", - // "id": "dfareporting.cities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "countryDartIds": { - // "description": "Select only cities from these countries.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dartIds": { - // "description": "Select only cities with these DART IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "namePrefix": { - // "description": "Select only cities with names starting with this prefix.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "regionDartIds": { - // "description": "Select only cities from these regions.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/cities", - // "response": { - // "$ref": "CitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.get": +} type ConnectionTypesGetCall struct { s *Service @@ -23000,33 +17189,29 @@ func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypes } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesGetCall) Fields(s ...googleapi.Field) *ConnectionTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesGetCall) IfNoneMatch(entityTag string) *ConnectionTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesGetCall) Context(ctx context.Context) *ConnectionTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23035,12 +17220,7 @@ func (c *ConnectionTypesGetCall) Header() http.Header { } func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23058,16 +17238,14 @@ func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.get" call. -// Exactly one of *ConnectionType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ConnectionType.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConnectionType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23075,17 +17253,17 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionType{ ServerResponse: googleapi.ServerResponse{ @@ -23098,43 +17276,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy return nil, err } return ret, nil - // { - // "description": "Gets one connection type by ID.", - // "flatPath": "userprofiles/{profileId}/connectionTypes/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Connection type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes/{id}", - // "response": { - // "$ref": "ConnectionType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.list": +} type ConnectionTypesListCall struct { s *Service @@ -23155,33 +17297,29 @@ func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesListCall) Fields(s ...googleapi.Field) *ConnectionTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesListCall) IfNoneMatch(entityTag string) *ConnectionTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesListCall) Context(ctx context.Context) *ConnectionTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23190,12 +17328,7 @@ func (c *ConnectionTypesListCall) Header() http.Header { } func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23212,16 +17345,15 @@ func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.list" call. -// Exactly one of *ConnectionTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ConnectionTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ConnectionTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23229,17 +17361,17 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23252,35 +17384,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT return nil, err } return ret, nil - // { - // "description": "Retrieves a list of connection types.", - // "flatPath": "userprofiles/{profileId}/connectionTypes", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes", - // "response": { - // "$ref": "ConnectionTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.delete": +} type ContentCategoriesDeleteCall struct { s *Service @@ -23303,23 +17407,21 @@ func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesDeleteCall) Fields(s ...googleapi.Field) *ContentCategoriesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesDeleteCall) Context(ctx context.Context) *ContentCategoriesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23328,12 +17430,7 @@ func (c *ContentCategoriesDeleteCall) Header() http.Header { } func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -23348,7 +17445,7 @@ func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.delete" call. @@ -23360,43 +17457,10 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.contentCategories.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.get": +} type ContentCategoriesGetCall struct { s *Service @@ -23420,33 +17484,29 @@ func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCatego } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesGetCall) Fields(s ...googleapi.Field) *ContentCategoriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesGetCall) IfNoneMatch(entityTag string) *ContentCategoriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesGetCall) Context(ctx context.Context) *ContentCategoriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23455,12 +17515,7 @@ func (c *ContentCategoriesGetCall) Header() http.Header { } func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23478,16 +17533,15 @@ func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.get" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23495,17 +17549,17 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23518,43 +17572,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat return nil, err } return ret, nil - // { - // "description": "Gets one content category by ID.", - // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.insert": +} type ContentCategoriesInsertCall struct { s *Service @@ -23576,23 +17594,21 @@ func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesInsertCall) Fields(s ...googleapi.Field) *ContentCategoriesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesInsertCall) Context(ctx context.Context) *ContentCategoriesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23601,18 +17617,12 @@ func (c *ContentCategoriesInsertCall) Header() http.Header { } func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -23625,16 +17635,15 @@ func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.insert" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23642,17 +17651,17 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -23665,38 +17674,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Inserts a new content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "POST", - // "id": "dfareporting.contentCategories.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.list": +} type ContentCategoriesListCall struct { s *Service @@ -23707,8 +17685,8 @@ type ContentCategoriesListCall struct { header_ http.Header } -// List: Retrieves a list of content categories, possibly filtered. This -// method supports paging. +// List: Retrieves a list of content categories, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListCall { @@ -23717,8 +17695,8 @@ func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListC return c } -// Ids sets the optional parameter "ids": Select only content categories -// with these IDs. +// Ids sets the optional parameter "ids": Select only content categories with +// these IDs. func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall { var ids_ []string for _, v := range ids { @@ -23728,8 +17706,8 @@ func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ContentCategoriesListCall) MaxResults(maxResults int64) *ContentCategoriesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -23742,22 +17720,21 @@ func (c *ContentCategoriesListCall) PageToken(pageToken string) *ContentCategori return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "contentcategory*2015" will return objects with names like -// "contentcategory June 2015", "contentcategory April 2015", or simply -// "contentcategory 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "contentcategory" will match objects with -// name "my contentcategory", "contentcategory 2015", or simply -// "contentcategory". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "contentcategory*2015" will return objects with names like "contentcategory +// June 2015", "contentcategory April 2015", or simply "contentcategory 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "contentcategory" will +// match objects with name "my contentcategory", "contentcategory 2015", or +// simply "contentcategory". func (c *ContentCategoriesListCall) SearchString(searchString string) *ContentCategoriesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -23768,8 +17745,7 @@ func (c *ContentCategoriesListCall) SortField(sortField string) *ContentCategori return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -23781,33 +17757,29 @@ func (c *ContentCategoriesListCall) SortOrder(sortOrder string) *ContentCategori } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesListCall) Fields(s ...googleapi.Field) *ContentCategoriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesListCall) IfNoneMatch(entityTag string) *ContentCategoriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesListCall) Context(ctx context.Context) *ContentCategoriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23816,12 +17788,7 @@ func (c *ContentCategoriesListCall) Header() http.Header { } func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23838,16 +17805,15 @@ func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.list" call. -// Exactly one of *ContentCategoriesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ContentCategoriesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategoriesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCategoriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23855,17 +17821,17 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategoriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23878,86 +17844,6 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa return nil, err } return ret, nil - // { - // "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only content categories with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"contentcategory*2015\" will return objects with names like \"contentcategory June 2015\", \"contentcategory April 2015\", or simply \"contentcategory 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"contentcategory\" will match objects with name \"my contentcategory\", \"contentcategory 2015\", or simply \"contentcategory\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "response": { - // "$ref": "ContentCategoriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -23965,7 +17851,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // The provided context supersedes any context provided to the Context method. func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCategoriesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -23981,8 +17867,6 @@ func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCa } } -// method id "dfareporting.contentCategories.patch": - type ContentCategoriesPatchCall struct { s *Service profileId int64 @@ -23992,8 +17876,8 @@ type ContentCategoriesPatchCall struct { header_ http.Header } -// Patch: Updates an existing content category. This method supports -// patch semantics. +// Patch: Updates an existing content category. This method supports patch +// semantics. // // - id: ContentCategory ID. // - profileId: User profile ID associated with this request. @@ -24006,23 +17890,21 @@ func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcateg } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesPatchCall) Fields(s ...googleapi.Field) *ContentCategoriesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesPatchCall) Context(ctx context.Context) *ContentCategoriesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24031,18 +17913,12 @@ func (c *ContentCategoriesPatchCall) Header() http.Header { } func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -24055,16 +17931,15 @@ func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.patch" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24072,17 +17947,17 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -24095,46 +17970,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC return nil, err } return ret, nil - // { - // "description": "Updates an existing content category. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "PATCH", - // "id": "dfareporting.contentCategories.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "ContentCategory ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.update": +} type ContentCategoriesUpdateCall struct { s *Service @@ -24156,23 +17992,21 @@ func (r *ContentCategoriesService) Update(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesUpdateCall) Fields(s ...googleapi.Field) *ContentCategoriesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesUpdateCall) Context(ctx context.Context) *ContentCategoriesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24181,18 +18015,12 @@ func (c *ContentCategoriesUpdateCall) Header() http.Header { } func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -24205,16 +18033,15 @@ func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.update" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24222,17 +18049,17 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -24245,38 +18072,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Updates an existing content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "PUT", - // "id": "dfareporting.contentCategories.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.conversions.batchinsert": +} type ConversionsBatchinsertCall struct { s *Service @@ -24298,23 +18094,21 @@ func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchinsertCall) Fields(s ...googleapi.Field) *ConversionsBatchinsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchinsertCall) Context(ctx context.Context) *ConversionsBatchinsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchinsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24323,18 +18117,12 @@ func (c *ConversionsBatchinsertCall) Header() http.Header { } func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchinsertrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchinsert") @@ -24347,16 +18135,15 @@ func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchinsert" call. -// Exactly one of *ConversionsBatchInsertResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchInsertResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchInsertResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchInsertResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24364,17 +18151,17 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchInsertResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24387,38 +18174,7 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Inserts conversions.", - // "flatPath": "userprofiles/{profileId}/conversions/batchinsert", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchinsert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchinsert", - // "request": { - // "$ref": "ConversionsBatchInsertRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchInsertResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.conversions.batchupdate": +} type ConversionsBatchupdateCall struct { s *Service @@ -24440,23 +18196,21 @@ func (r *ConversionsService) Batchupdate(profileId int64, conversionsbatchupdate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchupdateCall) Fields(s ...googleapi.Field) *ConversionsBatchupdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchupdateCall) Context(ctx context.Context) *ConversionsBatchupdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchupdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24465,18 +18219,12 @@ func (c *ConversionsBatchupdateCall) Header() http.Header { } func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchupdaterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchupdate") @@ -24489,16 +18237,15 @@ func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchupdate" call. -// Exactly one of *ConversionsBatchUpdateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchUpdateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchUpdateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchUpdateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24506,17 +18253,17 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchUpdateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24529,38 +18276,7 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Updates existing conversions.", - // "flatPath": "userprofiles/{profileId}/conversions/batchupdate", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchupdate", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchupdate", - // "request": { - // "$ref": "ConversionsBatchUpdateRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.countries.get": +} type CountriesGetCall struct { s *Service @@ -24584,33 +18300,29 @@ func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesGetCall) Fields(s ...googleapi.Field) *CountriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesGetCall) IfNoneMatch(entityTag string) *CountriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesGetCall) Context(ctx context.Context) *CountriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24619,12 +18331,7 @@ func (c *CountriesGetCall) Header() http.Header { } func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24642,16 +18349,14 @@ func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.get" call. -// Exactly one of *Country or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Country.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Country.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24659,17 +18364,17 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Country{ ServerResponse: googleapi.ServerResponse{ @@ -24682,43 +18387,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { return nil, err } return ret, nil - // { - // "description": "Gets one country by ID.", - // "flatPath": "userprofiles/{profileId}/countries/{dartId}", - // "httpMethod": "GET", - // "id": "dfareporting.countries.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Country DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries/{dartId}", - // "response": { - // "$ref": "Country" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.countries.list": +} type CountriesListCall struct { s *Service @@ -24739,33 +18408,29 @@ func (r *CountriesService) List(profileId int64) *CountriesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesListCall) Fields(s ...googleapi.Field) *CountriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesListCall) IfNoneMatch(entityTag string) *CountriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesListCall) Context(ctx context.Context) *CountriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24774,12 +18439,7 @@ func (c *CountriesListCall) Header() http.Header { } func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24796,16 +18456,15 @@ func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.list" call. -// Exactly one of *CountriesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CountriesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CountriesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24813,17 +18472,17 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CountriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24836,35 +18495,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of countries.", - // "flatPath": "userprofiles/{profileId}/countries", - // "httpMethod": "GET", - // "id": "dfareporting.countries.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries", - // "response": { - // "$ref": "CountriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeAssets.insert": +} type CreativeAssetsInsertCall struct { s *Service @@ -24879,9 +18510,8 @@ type CreativeAssetsInsertCall struct { // Insert: Inserts a new creative asset. // -// - advertiserId: Advertiser ID of this creative. This is a required -// field. -// - profileId: User profile ID associated with this request. +// - advertiserId: Advertiser ID of this creative. This is a required field. +// - profileId: User profile ID associated with this request. func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall { c := &CreativeAssetsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -24890,54 +18520,51 @@ func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, crea return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeAssetsInsertCall) Fields(s ...googleapi.Field) *CreativeAssetsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsInsertCall { @@ -24945,8 +18572,8 @@ func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsI return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeAssetsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24955,18 +18582,12 @@ func (c *CreativeAssetsInsertCall) Header() http.Header { } func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativeassetmetadata) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") @@ -24991,16 +18612,15 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeAssets.insert" call. -// Exactly one of *CreativeAssetMetadata or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeAssetMetadata.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeAssetMetadata.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25008,17 +18628,17 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -25034,7 +18654,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &CreativeAssetMetadata{ @@ -25048,59 +18668,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs return nil, err } return ret, nil - // { - // "description": "Inserts a new creative asset.", - // "flatPath": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - // "httpMethod": "POST", - // "id": "dfareporting.creativeAssets.insert", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "maxSize": "1073741824", - // "protocols": { - // "simple": { - // "multipart": true, - // "path": "/upload/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // } - // } - // }, - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Advertiser ID of this creative. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - // "request": { - // "$ref": "CreativeAssetMetadata" - // }, - // "response": { - // "$ref": "CreativeAssetMetadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "dfareporting.creativeFieldValues.delete": +} type CreativeFieldValuesDeleteCall struct { s *Service @@ -25126,23 +18694,21 @@ func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldValuesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesDeleteCall) Context(ctx context.Context) *CreativeFieldValuesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25151,12 +18717,7 @@ func (c *CreativeFieldValuesDeleteCall) Header() http.Header { } func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -25172,7 +18733,7 @@ func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, e "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.delete" call. @@ -25184,51 +18745,10 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFieldValues.delete", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.get": +} type CreativeFieldValuesGetCall struct { s *Service @@ -25255,33 +18775,29 @@ func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesGetCall) Fields(s ...googleapi.Field) *CreativeFieldValuesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesGetCall) IfNoneMatch(entityTag string) *CreativeFieldValuesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesGetCall) Context(ctx context.Context) *CreativeFieldValuesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25290,12 +18806,7 @@ func (c *CreativeFieldValuesGetCall) Header() http.Header { } func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25314,16 +18825,15 @@ func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, erro "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.get" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25331,17 +18841,17 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25354,51 +18864,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative return nil, err } return ret, nil - // { - // "description": "Gets one creative field value by ID.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.get", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.insert": +} type CreativeFieldValuesInsertCall struct { s *Service @@ -25423,23 +18889,21 @@ func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesInsertCall) Fields(s ...googleapi.Field) *CreativeFieldValuesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesInsertCall) Context(ctx context.Context) *CreativeFieldValuesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25448,18 +18912,12 @@ func (c *CreativeFieldValuesInsertCall) Header() http.Header { } func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -25473,16 +18931,15 @@ func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.insert" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25490,17 +18947,17 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25513,46 +18970,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFieldValues.insert", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.list": +} type CreativeFieldValuesListCall struct { s *Service @@ -25564,8 +18982,8 @@ type CreativeFieldValuesListCall struct { header_ http.Header } -// List: Retrieves a list of creative field values, possibly filtered. -// This method supports paging. +// List: Retrieves a list of creative field values, possibly filtered. This +// method supports paging. // // - creativeFieldId: Creative field ID for this creative field value. // - profileId: User profile ID associated with this request. @@ -25576,8 +18994,8 @@ func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64 return c } -// Ids sets the optional parameter "ids": Select only creative field -// values with these IDs. +// Ids sets the optional parameter "ids": Select only creative field values +// with these IDs. func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesListCall { var ids_ []string for _, v := range ids { @@ -25587,8 +19005,8 @@ func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldValuesListCall) MaxResults(maxResults int64) *CreativeFieldValuesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -25601,16 +19019,16 @@ func (c *CreativeFieldValuesListCall) PageToken(pageToken string) *CreativeField return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative field values by their values. Wildcards (e.g. -// *) are not allowed. +// SearchString sets the optional parameter "searchString": Allows searching +// for creative field values by their values. Wildcards (e.g. *) are not +// allowed. func (c *CreativeFieldValuesListCall) SearchString(searchString string) *CreativeFieldValuesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -25621,8 +19039,7 @@ func (c *CreativeFieldValuesListCall) SortField(sortField string) *CreativeField return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -25634,33 +19051,29 @@ func (c *CreativeFieldValuesListCall) SortOrder(sortOrder string) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesListCall) Fields(s ...googleapi.Field) *CreativeFieldValuesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesListCall) IfNoneMatch(entityTag string) *CreativeFieldValuesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesListCall) Context(ctx context.Context) *CreativeFieldValuesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25669,12 +19082,7 @@ func (c *CreativeFieldValuesListCall) Header() http.Header { } func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25692,16 +19100,15 @@ func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.list" call. -// Exactly one of *CreativeFieldValuesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *CreativeFieldValuesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValuesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValuesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25709,17 +19116,17 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValuesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25732,94 +19139,6 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.list", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative field values with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative field values by their values. Wildcards (e.g. *) are not allowed.", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "VALUE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "response": { - // "$ref": "CreativeFieldValuesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -25827,7 +19146,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*CreativeFieldValuesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -25843,8 +19162,6 @@ func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*Creativ } } -// method id "dfareporting.creativeFieldValues.patch": - type CreativeFieldValuesPatchCall struct { s *Service profileId int64 @@ -25855,8 +19172,8 @@ type CreativeFieldValuesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative field value. This method supports -// patch semantics. +// Patch: Updates an existing creative field value. This method supports patch +// semantics. // // - creativeFieldId: CreativeField ID. // - id: CreativeFieldValue ID. @@ -25871,23 +19188,21 @@ func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesPatchCall) Fields(s ...googleapi.Field) *CreativeFieldValuesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesPatchCall) Context(ctx context.Context) *CreativeFieldValuesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25896,18 +19211,12 @@ func (c *CreativeFieldValuesPatchCall) Header() http.Header { } func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -25921,16 +19230,15 @@ func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.patch" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25938,17 +19246,17 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -25961,54 +19269,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFieldValues.patch", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "CreativeField ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "CreativeFieldValue ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.update": +} type CreativeFieldValuesUpdateCall struct { s *Service @@ -26033,23 +19294,21 @@ func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldValuesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesUpdateCall) Context(ctx context.Context) *CreativeFieldValuesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26058,18 +19317,12 @@ func (c *CreativeFieldValuesUpdateCall) Header() http.Header { } func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -26083,16 +19336,15 @@ func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.update" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26100,17 +19352,17 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -26123,46 +19375,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFieldValues.update", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.delete": +} type CreativeFieldsDeleteCall struct { s *Service @@ -26185,23 +19398,21 @@ func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsDeleteCall) Context(ctx context.Context) *CreativeFieldsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26210,12 +19421,7 @@ func (c *CreativeFieldsDeleteCall) Header() http.Header { } func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -26230,7 +19436,7 @@ func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.delete" call. @@ -26242,43 +19448,10 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFields.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.get": +} type CreativeFieldsGetCall struct { s *Service @@ -26302,33 +19475,29 @@ func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsGetCall) Fields(s ...googleapi.Field) *CreativeFieldsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsGetCall) IfNoneMatch(entityTag string) *CreativeFieldsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsGetCall) Context(ctx context.Context) *CreativeFieldsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26337,12 +19506,7 @@ func (c *CreativeFieldsGetCall) Header() http.Header { } func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26360,16 +19524,14 @@ func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.get" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26377,17 +19539,17 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26400,43 +19562,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField return nil, err } return ret, nil - // { - // "description": "Gets one creative field by ID.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.insert": +} type CreativeFieldsInsertCall struct { s *Service @@ -26458,23 +19584,21 @@ func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsInsertCall) Fields(s ...googleapi.Field) *CreativeFieldsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsInsertCall) Context(ctx context.Context) *CreativeFieldsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26483,18 +19607,12 @@ func (c *CreativeFieldsInsertCall) Header() http.Header { } func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -26507,16 +19625,14 @@ func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.insert" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26524,17 +19640,17 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26547,38 +19663,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFields.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.list": +} type CreativeFieldsListCall struct { s *Service @@ -26589,8 +19674,8 @@ type CreativeFieldsListCall struct { header_ http.Header } -// List: Retrieves a list of creative fields, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative fields, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall { @@ -26599,8 +19684,8 @@ func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall { return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative fields that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative fields that belong to these advertisers. func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeFieldsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -26610,8 +19695,8 @@ func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// Ids sets the optional parameter "ids": Select only creative fields -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative fields with +// these IDs. func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { var ids_ []string for _, v := range ids { @@ -26621,8 +19706,8 @@ func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldsListCall) MaxResults(maxResults int64) *CreativeFieldsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -26635,22 +19720,21 @@ func (c *CreativeFieldsListCall) PageToken(pageToken string) *CreativeFieldsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative fields by name or ID. Wildcards (*) are -// allowed. For example, "creativefield*2015" will return creative -// fields with names like "creativefield June 2015", "creativefield -// April 2015", or simply "creativefield 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativefield" will match -// creative fields with the name "my creativefield", "creativefield -// 2015", or simply "creativefield". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative fields by name or ID. Wildcards (*) are allowed. For example, +// "creativefield*2015" will return creative fields with names like +// "creativefield June 2015", "creativefield April 2015", or simply +// "creativefield 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativefield" will match creative fields with the name "my creativefield", +// "creativefield 2015", or simply "creativefield". func (c *CreativeFieldsListCall) SearchString(searchString string) *CreativeFieldsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -26661,8 +19745,7 @@ func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -26674,33 +19757,29 @@ func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsListCall) Fields(s ...googleapi.Field) *CreativeFieldsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsListCall) IfNoneMatch(entityTag string) *CreativeFieldsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsListCall) Context(ctx context.Context) *CreativeFieldsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26709,12 +19788,7 @@ func (c *CreativeFieldsListCall) Header() http.Header { } func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26731,16 +19805,15 @@ func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.list" call. -// Exactly one of *CreativeFieldsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeFieldsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeFieldsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26748,17 +19821,17 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -26771,93 +19844,6 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative fields that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative fields with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative fields by name or ID. Wildcards (*) are allowed. For example, \"creativefield*2015\" will return creative fields with names like \"creativefield June 2015\", \"creativefield April 2015\", or simply \"creativefield 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativefield\" will match creative fields with the name \"my creativefield\", \"creativefield 2015\", or simply \"creativefield\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "response": { - // "$ref": "CreativeFieldsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -26865,7 +19851,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFieldsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -26881,8 +19867,6 @@ func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFiel } } -// method id "dfareporting.creativeFields.patch": - type CreativeFieldsPatchCall struct { s *Service profileId int64 @@ -26906,23 +19890,21 @@ func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsPatchCall) Fields(s ...googleapi.Field) *CreativeFieldsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsPatchCall) Context(ctx context.Context) *CreativeFieldsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26931,18 +19913,12 @@ func (c *CreativeFieldsPatchCall) Header() http.Header { } func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -26955,16 +19931,14 @@ func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.patch" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26972,17 +19946,17 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -26995,46 +19969,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFields.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "CreativeField ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.update": +} type CreativeFieldsUpdateCall struct { s *Service @@ -27056,23 +19991,21 @@ func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsUpdateCall) Context(ctx context.Context) *CreativeFieldsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27081,18 +20014,12 @@ func (c *CreativeFieldsUpdateCall) Header() http.Header { } func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -27105,16 +20032,14 @@ func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.update" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27122,17 +20047,17 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -27145,38 +20070,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFields.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.get": +} type CreativeGroupsGetCall struct { s *Service @@ -27200,33 +20094,29 @@ func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsGetCall) Fields(s ...googleapi.Field) *CreativeGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsGetCall) IfNoneMatch(entityTag string) *CreativeGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsGetCall) Context(ctx context.Context) *CreativeGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27235,12 +20125,7 @@ func (c *CreativeGroupsGetCall) Header() http.Header { } func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27258,16 +20143,14 @@ func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.get" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27275,17 +20158,17 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27298,43 +20181,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup return nil, err } return ret, nil - // { - // "description": "Gets one creative group by ID.", - // "flatPath": "userprofiles/{profileId}/creativeGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups/{id}", - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.insert": +} type CreativeGroupsInsertCall struct { s *Service @@ -27356,23 +20203,21 @@ func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsInsertCall) Fields(s ...googleapi.Field) *CreativeGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsInsertCall) Context(ctx context.Context) *CreativeGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27381,18 +20226,12 @@ func (c *CreativeGroupsInsertCall) Header() http.Header { } func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27405,16 +20244,14 @@ func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.insert" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27422,17 +20259,17 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27445,38 +20282,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Inserts a new creative group.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "POST", - // "id": "dfareporting.creativeGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.list": +} type CreativeGroupsListCall struct { s *Service @@ -27487,8 +20293,8 @@ type CreativeGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of creative groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative groups, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall { @@ -27497,8 +20303,8 @@ func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall { return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative groups that belong to these advertisers. func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -27508,15 +20314,15 @@ func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// GroupNumber sets the optional parameter "groupNumber": Select only -// creative groups that belong to this subgroup. +// GroupNumber sets the optional parameter "groupNumber": Select only creative +// groups that belong to this subgroup. func (c *CreativeGroupsListCall) GroupNumber(groupNumber int64) *CreativeGroupsListCall { c.urlParams_.Set("groupNumber", fmt.Sprint(groupNumber)) return c } -// Ids sets the optional parameter "ids": Select only creative groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative groups with +// these IDs. func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { var ids_ []string for _, v := range ids { @@ -27526,8 +20332,8 @@ func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeGroupsListCall) MaxResults(maxResults int64) *CreativeGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -27540,22 +20346,21 @@ func (c *CreativeGroupsListCall) PageToken(pageToken string) *CreativeGroupsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative groups by name or ID. Wildcards (*) are -// allowed. For example, "creativegroup*2015" will return creative -// groups with names like "creativegroup June 2015", "creativegroup -// April 2015", or simply "creativegroup 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativegroup" will match -// creative groups with the name "my creativegroup", "creativegroup -// 2015", or simply "creativegroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative groups by name or ID. Wildcards (*) are allowed. For example, +// "creativegroup*2015" will return creative groups with names like +// "creativegroup June 2015", "creativegroup April 2015", or simply +// "creativegroup 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativegroup" will match creative groups with the name "my creativegroup", +// "creativegroup 2015", or simply "creativegroup". func (c *CreativeGroupsListCall) SearchString(searchString string) *CreativeGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -27566,8 +20371,7 @@ func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -27579,33 +20383,29 @@ func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsListCall) Fields(s ...googleapi.Field) *CreativeGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsListCall) IfNoneMatch(entityTag string) *CreativeGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsListCall) Context(ctx context.Context) *CreativeGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27614,12 +20414,7 @@ func (c *CreativeGroupsListCall) Header() http.Header { } func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27636,16 +20431,15 @@ func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.list" call. -// Exactly one of *CreativeGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27653,17 +20447,17 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -27676,101 +20470,6 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupNumber": { - // "description": "Select only creative groups that belong to this subgroup.", - // "format": "int32", - // "location": "query", - // "maximum": "2", - // "minimum": "1", - // "type": "integer" - // }, - // "ids": { - // "description": "Select only creative groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative groups by name or ID. Wildcards (*) are allowed. For example, \"creativegroup*2015\" will return creative groups with names like \"creativegroup June 2015\", \"creativegroup April 2015\", or simply \"creativegroup 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativegroup\" will match creative groups with the name \"my creativegroup\", \"creativegroup 2015\", or simply \"creativegroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "response": { - // "$ref": "CreativeGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -27778,7 +20477,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // The provided context supersedes any context provided to the Context method. func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -27794,8 +20493,6 @@ func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGrou } } -// method id "dfareporting.creativeGroups.patch": - type CreativeGroupsPatchCall struct { s *Service profileId int64 @@ -27819,23 +20516,21 @@ func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsPatchCall) Fields(s ...googleapi.Field) *CreativeGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsPatchCall) Context(ctx context.Context) *CreativeGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27844,18 +20539,12 @@ func (c *CreativeGroupsPatchCall) Header() http.Header { } func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -27868,16 +20557,14 @@ func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.patch" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27885,17 +20572,17 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -27908,46 +20595,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "CreativeGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.update": +} type CreativeGroupsUpdateCall struct { s *Service @@ -27969,23 +20617,21 @@ func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsUpdateCall) Fields(s ...googleapi.Field) *CreativeGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsUpdateCall) Context(ctx context.Context) *CreativeGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27994,18 +20640,12 @@ func (c *CreativeGroupsUpdateCall) Header() http.Header { } func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -28018,16 +20658,14 @@ func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.update" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28035,17 +20673,17 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -28058,38 +20696,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.get": +} type CreativesGetCall struct { s *Service @@ -28113,33 +20720,29 @@ func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28148,12 +20751,7 @@ func (c *CreativesGetCall) Header() http.Header { } func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28171,16 +20769,14 @@ func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28188,17 +20784,17 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -28211,43 +20807,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return nil, err } return ret, nil - // { - // "description": "Gets one creative by ID.", - // "flatPath": "userprofiles/{profileId}/creatives/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives/{id}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.insert": +} type CreativesInsertCall struct { s *Service @@ -28269,23 +20829,21 @@ func (r *CreativesService) Insert(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28294,18 +20852,12 @@ func (c *CreativesInsertCall) Header() http.Header { } func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -28318,16 +20870,14 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.insert" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28335,17 +20885,17 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -28358,38 +20908,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Inserts a new creative.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "POST", - // "id": "dfareporting.creatives.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.list": +} type CreativesListCall struct { s *Service @@ -28400,8 +20919,8 @@ type CreativesListCall struct { header_ http.Header } -// List: Retrieves a list of creatives, possibly filtered. This method -// supports paging. +// List: Retrieves a list of creatives, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. func (r *CreativesService) List(profileId int64) *CreativesListCall { @@ -28410,8 +20929,8 @@ func (r *CreativesService) List(profileId int64) *CreativesListCall { return c } -// Active sets the optional parameter "active": Select only active -// creatives. Leave blank to select active and inactive creatives. +// Active sets the optional parameter "active": Select only active creatives. +// Leave blank to select active and inactive creatives. func (c *CreativesListCall) Active(active bool) *CreativesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c @@ -28431,16 +20950,15 @@ func (c *CreativesListCall) Archived(archived bool) *CreativesListCall { return c } -// CampaignId sets the optional parameter "campaignId": Select only -// creatives with this campaign ID. +// CampaignId sets the optional parameter "campaignId": Select only creatives +// with this campaign ID. func (c *CreativesListCall) CampaignId(campaignId int64) *CreativesListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// CompanionCreativeIds sets the optional parameter -// "companionCreativeIds": Select only in-stream video creatives with -// these companion IDs. +// CompanionCreativeIds sets the optional parameter "companionCreativeIds": +// Select only in-stream video creatives with these companion IDs. func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) *CreativesListCall { var companionCreativeIds_ []string for _, v := range companionCreativeIds { @@ -28450,8 +20968,8 @@ func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) return c } -// CreativeFieldIds sets the optional parameter "creativeFieldIds": -// Select only creatives with these creative field IDs. +// CreativeFieldIds sets the optional parameter "creativeFieldIds": Select only +// creatives with these creative field IDs. func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *CreativesListCall { var creativeFieldIds_ []string for _, v := range creativeFieldIds { @@ -28461,8 +20979,7 @@ func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *Creativ return c } -// Ids sets the optional parameter "ids": Select only creatives with -// these IDs. +// Ids sets the optional parameter "ids": Select only creatives with these IDs. func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { var ids_ []string for _, v := range ids { @@ -28472,8 +20989,8 @@ func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -28497,21 +21014,20 @@ func (c *CreativesListCall) RenderingIds(renderingIds ...int64) *CreativesListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "creative*2015" will return objects with names like -// "creative June 2015", "creative April 2015", or simply "creative -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "creative" will match objects with name "my creative", "creative -// 2015", or simply "creative". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "creative*2015" will return objects with names like "creative June 2015", +// "creative April 2015", or simply "creative 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "creative" will match objects with name "my +// creative", "creative 2015", or simply "creative". func (c *CreativesListCall) SearchString(searchString string) *CreativesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only creatives -// with these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only creatives with +// these size IDs. func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -28521,8 +21037,8 @@ func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -28533,8 +21049,7 @@ func (c *CreativesListCall) SortField(sortField string) *CreativesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -28545,15 +21060,15 @@ func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall { return c } -// StudioCreativeId sets the optional parameter "studioCreativeId": -// Select only creatives corresponding to this Studio creative ID. +// StudioCreativeId sets the optional parameter "studioCreativeId": Select only +// creatives corresponding to this Studio creative ID. func (c *CreativesListCall) StudioCreativeId(studioCreativeId int64) *CreativesListCall { c.urlParams_.Set("studioCreativeId", fmt.Sprint(studioCreativeId)) return c } -// Types sets the optional parameter "types": Select only creatives with -// these creative types. +// Types sets the optional parameter "types": Select only creatives with these +// creative types. // // Possible values: // @@ -28588,33 +21103,29 @@ func (c *CreativesListCall) Types(types ...string) *CreativesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28623,12 +21134,7 @@ func (c *CreativesListCall) Header() http.Header { } func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28645,16 +21151,15 @@ func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.list" call. -// Exactly one of *CreativesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28662,17 +21167,17 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -28685,202 +21190,6 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active creatives. Leave blank to select active and inactive creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only creatives with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived creatives. Leave blank to select archived and unarchived creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignId": { - // "description": "Select only creatives with this campaign ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "companionCreativeIds": { - // "description": "Select only in-stream video creatives with these companion IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeFieldIds": { - // "description": "Select only creatives with these creative field IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creatives with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "renderingIds": { - // "description": "Select only creatives with these rendering IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"creative*2015\" will return objects with names like \"creative June 2015\", \"creative April 2015\", or simply \"creative 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"creative\" will match objects with name \"my creative\", \"creative 2015\", or simply \"creative\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only creatives with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "studioCreativeId": { - // "description": "Select only creatives corresponding to this Studio creative ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "types": { - // "description": "Select only creatives with these creative types.", - // "enum": [ - // "IMAGE", - // "DISPLAY_REDIRECT", - // "CUSTOM_DISPLAY", - // "INTERNAL_REDIRECT", - // "CUSTOM_DISPLAY_INTERSTITIAL", - // "INTERSTITIAL_INTERNAL_REDIRECT", - // "TRACKING_TEXT", - // "RICH_MEDIA_DISPLAY_BANNER", - // "RICH_MEDIA_INPAGE_FLOATING", - // "RICH_MEDIA_IM_EXPAND", - // "RICH_MEDIA_DISPLAY_EXPANDING", - // "RICH_MEDIA_DISPLAY_INTERSTITIAL", - // "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL", - // "RICH_MEDIA_MOBILE_IN_APP", - // "FLASH_INPAGE", - // "INSTREAM_VIDEO", - // "VPAID_LINEAR_VIDEO", - // "VPAID_NON_LINEAR_VIDEO", - // "INSTREAM_VIDEO_REDIRECT", - // "RICH_MEDIA_PEEL_DOWN", - // "HTML5_BANNER", - // "DISPLAY", - // "DISPLAY_IMAGE_GALLERY", - // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO", - // "INSTREAM_AUDIO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "response": { - // "$ref": "CreativesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -28888,7 +21197,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // The provided context supersedes any context provided to the Context method. func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -28904,8 +21213,6 @@ func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResp } } -// method id "dfareporting.creatives.patch": - type CreativesPatchCall struct { s *Service profileId int64 @@ -28915,8 +21222,7 @@ type CreativesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative. This method supports patch -// semantics. +// Patch: Updates an existing creative. This method supports patch semantics. // // - id: Creative ID. // - profileId: User profile ID associated with this request. @@ -28929,23 +21235,21 @@ func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesPatchCall) Fields(s ...googleapi.Field) *CreativesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesPatchCall) Context(ctx context.Context) *CreativesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28954,18 +21258,12 @@ func (c *CreativesPatchCall) Header() http.Header { } func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -28978,16 +21276,14 @@ func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.patch" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28995,17 +21291,17 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -29018,46 +21314,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing creative. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "PATCH", - // "id": "dfareporting.creatives.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.update": +} type CreativesUpdateCall struct { s *Service @@ -29079,23 +21336,21 @@ func (r *CreativesService) Update(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesUpdateCall) Fields(s ...googleapi.Field) *CreativesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesUpdateCall) Context(ctx context.Context) *CreativesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29104,18 +21359,12 @@ func (c *CreativesUpdateCall) Header() http.Header { } func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -29128,16 +21377,14 @@ func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.update" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29145,17 +21392,17 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -29168,38 +21415,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Updates an existing creative.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "PUT", - // "id": "dfareporting.creatives.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dimensionValues.query": +} type DimensionValuesQueryCall struct { s *Service @@ -29210,8 +21426,7 @@ type DimensionValuesQueryCall struct { header_ http.Header } -// Query: Retrieves list of report dimension values for a list of -// filters. +// Query: Retrieves list of report dimension values for a list of filters. // // - profileId: The Campaign Manager 360 user profile ID. func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall { @@ -29221,8 +21436,8 @@ func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *D return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DimensionValuesQueryCall) MaxResults(maxResults int64) *DimensionValuesQueryCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -29236,23 +21451,21 @@ func (c *DimensionValuesQueryCall) PageToken(pageToken string) *DimensionValuesQ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DimensionValuesQueryCall) Fields(s ...googleapi.Field) *DimensionValuesQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DimensionValuesQueryCall) Context(ctx context.Context) *DimensionValuesQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DimensionValuesQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29261,18 +21474,12 @@ func (c *DimensionValuesQueryCall) Header() http.Header { } func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dimensionvaluerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dimensionvalues/query") @@ -29285,16 +21492,15 @@ func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dimensionValues.query" call. -// Exactly one of *DimensionValueList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DimensionValueList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DimensionValueList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionValueList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29302,17 +21508,17 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DimensionValueList{ ServerResponse: googleapi.ServerResponse{ @@ -29325,49 +21531,6 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV return nil, err } return ret, nil - // { - // "description": "Retrieves list of report dimension values for a list of filters.", - // "flatPath": "userprofiles/{profileId}/dimensionvalues/query", - // "httpMethod": "POST", - // "id": "dfareporting.dimensionValues.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "100", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dimensionvalues/query", - // "request": { - // "$ref": "DimensionValueRequest" - // }, - // "response": { - // "$ref": "DimensionValueList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -29375,7 +21538,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // The provided context supersedes any context provided to the Context method. func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionValueList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -29391,8 +21554,6 @@ func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionV } } -// method id "dfareporting.directorySites.get": - type DirectorySitesGetCall struct { s *Service profileId int64 @@ -29415,33 +21576,29 @@ func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesGetCall) Fields(s ...googleapi.Field) *DirectorySitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesGetCall) IfNoneMatch(entityTag string) *DirectorySitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesGetCall) Context(ctx context.Context) *DirectorySitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29450,12 +21607,7 @@ func (c *DirectorySitesGetCall) Header() http.Header { } func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29473,16 +21625,14 @@ func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.get" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29490,17 +21640,17 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -29513,43 +21663,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite return nil, err } return ret, nil - // { - // "description": "Gets one directory site by ID.", - // "flatPath": "userprofiles/{profileId}/directorySites/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Directory site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites/{id}", - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.insert": +} type DirectorySitesInsertCall struct { s *Service @@ -29571,23 +21685,21 @@ func (r *DirectorySitesService) Insert(profileId int64, directorysite *Directory } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesInsertCall) Fields(s ...googleapi.Field) *DirectorySitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesInsertCall) Context(ctx context.Context) *DirectorySitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29596,18 +21708,12 @@ func (c *DirectorySitesInsertCall) Header() http.Header { } func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.directorysite) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites") @@ -29620,16 +21726,14 @@ func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.insert" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29637,17 +21741,17 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -29660,38 +21764,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS return nil, err } return ret, nil - // { - // "description": "Inserts a new directory site.", - // "flatPath": "userprofiles/{profileId}/directorySites", - // "httpMethod": "POST", - // "id": "dfareporting.directorySites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "request": { - // "$ref": "DirectorySite" - // }, - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.list": +} type DirectorySitesListCall struct { s *Service @@ -29702,8 +21775,8 @@ type DirectorySitesListCall struct { header_ http.Header } -// List: Retrieves a list of directory sites, possibly filtered. This -// method supports paging. +// List: Retrieves a list of directory sites, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { @@ -29713,46 +21786,45 @@ func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only directory sites that -// accept publisher paid placements. This field can be left blank. +// "acceptsPublisherPaidPlacements": Select only directory sites that accept +// publisher paid placements. This field can be left blank. func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// Active sets the optional parameter "active": Select only active -// directory sites. Leave blank to retrieve both active and inactive -// directory sites. +// Active sets the optional parameter "active": Select only active directory +// sites. Leave blank to retrieve both active and inactive directory sites. func (c *DirectorySitesListCall) Active(active bool) *DirectorySitesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select -// only directory sites with this Ad Manager network code. +// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select only +// directory sites with this Ad Manager network code. func (c *DirectorySitesListCall) DfpNetworkCode(dfpNetworkCode string) *DirectorySitesListCall { c.urlParams_.Set("dfpNetworkCode", dfpNetworkCode) return c } -// Ids sets the optional parameter "ids": Select only directory sites -// with these IDs. +// Ids sets the optional parameter "ids": Select only directory sites with +// these IDs. func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { var ids_ []string for _, v := range ids { @@ -29762,8 +21834,8 @@ func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DirectorySitesListCall) MaxResults(maxResults int64) *DirectorySitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -29776,22 +21848,21 @@ func (c *DirectorySitesListCall) PageToken(pageToken string) *DirectorySitesList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or URL. Wildcards (*) are allowed. -// For example, "directory site*2015" will return objects with names -// like "directory site June 2015", "directory site April 2015", or -// simply "directory site 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "directory site" will match objects with -// name "my directory site", "directory site 2015" or simply, "directory -// site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or URL. Wildcards (*) are allowed. For example, +// "directory site*2015" will return objects with names like "directory site +// June 2015", "directory site April 2015", or simply "directory site 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "directory site" will +// match objects with name "my directory site", "directory site 2015" or +// simply, "directory site". func (c *DirectorySitesListCall) SearchString(searchString string) *DirectorySitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -29802,8 +21873,7 @@ func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -29815,33 +21885,29 @@ func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesListCall) Fields(s ...googleapi.Field) *DirectorySitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesListCall) IfNoneMatch(entityTag string) *DirectorySitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesListCall) Context(ctx context.Context) *DirectorySitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29850,12 +21916,7 @@ func (c *DirectorySitesListCall) Header() http.Header { } func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29872,16 +21933,15 @@ func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.list" call. -// Exactly one of *DirectorySitesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *DirectorySitesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *DirectorySitesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29889,17 +21949,17 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -29912,111 +21972,6 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit return nil, err } return ret, nil - // { - // "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/directorySites", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only directory sites that accept publisher paid placements. This field can be left blank.", - // "location": "query", - // "type": "boolean" - // }, - // "active": { - // "description": "Select only active directory sites. Leave blank to retrieve both active and inactive directory sites.", - // "location": "query", - // "type": "boolean" - // }, - // "dfpNetworkCode": { - // "description": "Select only directory sites with this Ad Manager network code.", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only directory sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. For example, \"directory site*2015\" will return objects with names like \"directory site June 2015\", \"directory site April 2015\", or simply \"directory site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site\" will match objects with name \"my directory site\", \"directory site 2015\" or simply, \"directory site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "response": { - // "$ref": "DirectorySitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -30024,7 +21979,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // The provided context supersedes any context provided to the Context method. func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -30040,8 +21995,6 @@ func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySit } } -// method id "dfareporting.dynamicTargetingKeys.delete": - type DynamicTargetingKeysDeleteCall struct { s *Service profileId int64 @@ -30053,13 +22006,13 @@ type DynamicTargetingKeysDeleteCall struct { // Delete: Deletes an existing dynamic targeting key. // -// - name: Name of this dynamic targeting key. This is a required field. -// Must be less than 256 characters long and cannot contain commas. -// All characters are converted to lowercase. +// - name: Name of this dynamic targeting key. This is a required field. Must +// be less than 256 characters long and cannot contain commas. All characters +// are converted to lowercase. // - objectId: ID of the object of this dynamic targeting key. This is a // required field. -// - objectType: Type of the object of this dynamic targeting key. This -// is a required field. +// - objectType: Type of the object of this dynamic targeting key. This is a +// required field. // - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, name string, objectType string) *DynamicTargetingKeysDeleteCall { c := &DynamicTargetingKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -30071,23 +22024,21 @@ func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, na } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysDeleteCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysDeleteCall) Context(ctx context.Context) *DynamicTargetingKeysDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30096,12 +22047,7 @@ func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { } func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -30116,7 +22062,7 @@ func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "objectId": strconv.FormatInt(c.objectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.delete" call. @@ -30128,69 +22074,10 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing dynamic targeting key.", - // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - // "httpMethod": "DELETE", - // "id": "dfareporting.dynamicTargetingKeys.delete", - // "parameterOrder": [ - // "profileId", - // "objectId", - // "name", - // "objectType" - // ], - // "parameters": { - // "name": { - // "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "objectId": { - // "description": "ID of the object of this dynamic targeting key. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Type of the object of this dynamic targeting key. This is a required field.", - // "enum": [ - // "OBJECT_ADVERTISER", - // "OBJECT_AD", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.insert": +} type DynamicTargetingKeysInsertCall struct { s *Service @@ -30201,11 +22088,10 @@ type DynamicTargetingKeysInsertCall struct { header_ http.Header } -// Insert: Inserts a new dynamic targeting key. Keys must be created at -// the advertiser level before being assigned to the advertiser's ads, -// creatives, or placements. There is a maximum of 1000 keys per -// advertiser, out of which a maximum of 20 keys can be assigned per ad, -// creative, or placement. +// Insert: Inserts a new dynamic targeting key. Keys must be created at the +// advertiser level before being assigned to the advertiser's ads, creatives, +// or placements. There is a maximum of 1000 keys per advertiser, out of which +// a maximum of 20 keys can be assigned per ad, creative, or placement. // // - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingkey *DynamicTargetingKey) *DynamicTargetingKeysInsertCall { @@ -30216,23 +22102,21 @@ func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingke } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysInsertCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysInsertCall) Context(ctx context.Context) *DynamicTargetingKeysInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30241,18 +22125,12 @@ func (c *DynamicTargetingKeysInsertCall) Header() http.Header { } func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dynamictargetingkey) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys") @@ -30265,16 +22143,15 @@ func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.insert" call. -// Exactly one of *DynamicTargetingKey or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DynamicTargetingKey.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKey.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30282,17 +22159,17 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKey{ ServerResponse: googleapi.ServerResponse{ @@ -30305,38 +22182,7 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna return nil, err } return ret, nil - // { - // "description": "Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.", - // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", - // "httpMethod": "POST", - // "id": "dfareporting.dynamicTargetingKeys.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "request": { - // "$ref": "DynamicTargetingKey" - // }, - // "response": { - // "$ref": "DynamicTargetingKey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.list": +} type DynamicTargetingKeysListCall struct { s *Service @@ -30356,15 +22202,15 @@ func (r *DynamicTargetingKeysService) List(profileId int64) *DynamicTargetingKey return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// dynamic targeting keys whose object has this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only dynamic +// targeting keys whose object has this advertiser ID. func (c *DynamicTargetingKeysListCall) AdvertiserId(advertiserId int64) *DynamicTargetingKeysListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Names sets the optional parameter "names": Select only dynamic -// targeting keys exactly matching these names. +// Names sets the optional parameter "names": Select only dynamic targeting +// keys exactly matching these names. func (c *DynamicTargetingKeysListCall) Names(names ...string) *DynamicTargetingKeysListCall { c.urlParams_.SetMulti("names", append([]string{}, names...)) return c @@ -30377,8 +22223,8 @@ func (c *DynamicTargetingKeysListCall) ObjectId(objectId int64) *DynamicTargetin return c } -// ObjectType sets the optional parameter "objectType": Select only -// dynamic targeting keys with this object type. +// ObjectType sets the optional parameter "objectType": Select only dynamic +// targeting keys with this object type. // // Possible values: // @@ -30392,33 +22238,29 @@ func (c *DynamicTargetingKeysListCall) ObjectType(objectType string) *DynamicTar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysListCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DynamicTargetingKeysListCall) IfNoneMatch(entityTag string) *DynamicTargetingKeysListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysListCall) Context(ctx context.Context) *DynamicTargetingKeysListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30427,12 +22269,7 @@ func (c *DynamicTargetingKeysListCall) Header() http.Header { } func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30449,16 +22286,15 @@ func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.list" call. -// Exactly one of *DynamicTargetingKeysListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DynamicTargetingKeysListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKeysListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKeysListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30466,17 +22302,17 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKeysListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -30489,70 +22325,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami return nil, err } return ret, nil - // { - // "description": "Retrieves a list of dynamic targeting keys.", - // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", - // "httpMethod": "GET", - // "id": "dfareporting.dynamicTargetingKeys.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only dynamic targeting keys whose object has this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "names": { - // "description": "Select only dynamic targeting keys exactly matching these names.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectId": { - // "description": "Select only dynamic targeting keys with this object ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "objectType": { - // "description": "Select only dynamic targeting keys with this object type.", - // "enum": [ - // "OBJECT_ADVERTISER", - // "OBJECT_AD", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "response": { - // "$ref": "DynamicTargetingKeysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.delete": +} type EventTagsDeleteCall struct { s *Service @@ -30575,23 +22348,21 @@ func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsDeleteCall) Fields(s ...googleapi.Field) *EventTagsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsDeleteCall) Context(ctx context.Context) *EventTagsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30600,12 +22371,7 @@ func (c *EventTagsDeleteCall) Header() http.Header { } func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -30620,7 +22386,7 @@ func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.delete" call. @@ -30632,43 +22398,10 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.eventTags.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.get": +} type EventTagsGetCall struct { s *Service @@ -30692,33 +22425,29 @@ func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsGetCall) Fields(s ...googleapi.Field) *EventTagsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsGetCall) IfNoneMatch(entityTag string) *EventTagsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsGetCall) Context(ctx context.Context) *EventTagsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30727,12 +22456,7 @@ func (c *EventTagsGetCall) Header() http.Header { } func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30750,16 +22474,14 @@ func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.get" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30767,17 +22489,17 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -30790,43 +22512,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { return nil, err } return ret, nil - // { - // "description": "Gets one event tag by ID.", - // "flatPath": "userprofiles/{profileId}/eventTags/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.insert": +} type EventTagsInsertCall struct { s *Service @@ -30848,23 +22534,21 @@ func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsInsertCall) Fields(s ...googleapi.Field) *EventTagsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsInsertCall) Context(ctx context.Context) *EventTagsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30873,18 +22557,12 @@ func (c *EventTagsInsertCall) Header() http.Header { } func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -30897,16 +22575,14 @@ func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.insert" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30914,17 +22590,17 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -30937,38 +22613,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Inserts a new event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "POST", - // "id": "dfareporting.eventTags.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.list": +} type EventTagsListCall struct { s *Service @@ -30988,58 +22633,55 @@ func (r *EventTagsService) List(profileId int64) *EventTagsListCall { return c } -// AdId sets the optional parameter "adId": Select only event tags that -// belong to this ad. +// AdId sets the optional parameter "adId": Select only event tags that belong +// to this ad. func (c *EventTagsListCall) AdId(adId int64) *EventTagsListCall { c.urlParams_.Set("adId", fmt.Sprint(adId)) return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// event tags that belong to this advertiser. +// AdvertiserId sets the optional parameter "advertiserId": Select only event +// tags that belong to this advertiser. func (c *EventTagsListCall) AdvertiserId(advertiserId int64) *EventTagsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// CampaignId sets the optional parameter "campaignId": Select only -// event tags that belong to this campaign. +// CampaignId sets the optional parameter "campaignId": Select only event tags +// that belong to this campaign. func (c *EventTagsListCall) CampaignId(campaignId int64) *EventTagsListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// DefinitionsOnly sets the optional parameter "definitionsOnly": -// Examine only the specified campaign or advertiser's event tags for -// matching selector criteria. When set to false, the parent advertiser -// and parent campaign of the specified ad or campaign is examined as -// well. In addition, when set to false, the status field is examined as -// well, along with the enabledByDefault field. This parameter can not -// be set to true when adId is specified as ads do not define their own -// even tags. +// DefinitionsOnly sets the optional parameter "definitionsOnly": Examine only +// the specified campaign or advertiser's event tags for matching selector +// criteria. When set to false, the parent advertiser and parent campaign of +// the specified ad or campaign is examined as well. In addition, when set to +// false, the status field is examined as well, along with the enabledByDefault +// field. This parameter can not be set to true when adId is specified as ads +// do not define their own even tags. func (c *EventTagsListCall) DefinitionsOnly(definitionsOnly bool) *EventTagsListCall { c.urlParams_.Set("definitionsOnly", fmt.Sprint(definitionsOnly)) return c } -// Enabled sets the optional parameter "enabled": Select only enabled -// event tags. What is considered enabled or disabled depends on the -// definitionsOnly parameter. When definitionsOnly is set to true, only -// the specified advertiser or campaign's event tags' enabledByDefault -// field is examined. When definitionsOnly is set to false, the -// specified ad or specified campaign's parent advertiser's or parent -// campaign's event tags' enabledByDefault and status fields are -// examined as well. +// Enabled sets the optional parameter "enabled": Select only enabled event +// tags. What is considered enabled or disabled depends on the definitionsOnly +// parameter. When definitionsOnly is set to true, only the specified +// advertiser or campaign's event tags' enabledByDefault field is examined. +// When definitionsOnly is set to false, the specified ad or specified +// campaign's parent advertiser's or parent campaign's event tags' +// enabledByDefault and status fields are examined as well. func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall { c.urlParams_.Set("enabled", fmt.Sprint(enabled)) return c } -// EventTagTypes sets the optional parameter "eventTagTypes": Select -// only event tags with the specified event tag types. Event tag types -// can be used to specify whether to use a third-party pixel, a -// third-party JavaScript URL, or a third-party click-through URL for -// either impression or click tracking. +// EventTagTypes sets the optional parameter "eventTagTypes": Select only event +// tags with the specified event tag types. Event tag types can be used to +// specify whether to use a third-party pixel, a third-party JavaScript URL, or +// a third-party click-through URL for either impression or click tracking. // // Possible values: // @@ -31051,8 +22693,8 @@ func (c *EventTagsListCall) EventTagTypes(eventTagTypes ...string) *EventTagsLis return c } -// Ids sets the optional parameter "ids": Select only event tags with -// these IDs. +// Ids sets the optional parameter "ids": Select only event tags with these +// IDs. func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { var ids_ []string for _, v := range ids { @@ -31062,21 +22704,20 @@ func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "eventtag*2015" will return objects with names like -// "eventtag June 2015", "eventtag April 2015", or simply "eventtag -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "eventtag" will match objects with name "my eventtag", "eventtag -// 2015", or simply "eventtag". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "eventtag*2015" will return objects with names like "eventtag June 2015", +// "eventtag April 2015", or simply "eventtag 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "eventtag" will match objects with name "my +// eventtag", "eventtag 2015", or simply "eventtag". func (c *EventTagsListCall) SearchString(searchString string) *EventTagsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -31087,8 +22728,7 @@ func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -31100,33 +22740,29 @@ func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsListCall) Fields(s ...googleapi.Field) *EventTagsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsListCall) IfNoneMatch(entityTag string) *EventTagsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsListCall) Context(ctx context.Context) *EventTagsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31135,12 +22771,7 @@ func (c *EventTagsListCall) Header() http.Header { } func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31157,16 +22788,15 @@ func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.list" call. -// Exactly one of *EventTagsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *EventTagsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTagsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31174,17 +22804,17 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTagsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -31197,119 +22827,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of event tags, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "adId": { - // "description": "Select only event tags that belong to this ad.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "advertiserId": { - // "description": "Select only event tags that belong to this advertiser.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "campaignId": { - // "description": "Select only event tags that belong to this campaign.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "definitionsOnly": { - // "description": "Examine only the specified campaign or advertiser's event tags for matching selector criteria. When set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined as well. In addition, when set to false, the status field is examined as well, along with the enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not define their own even tags.", - // "location": "query", - // "type": "boolean" - // }, - // "enabled": { - // "description": "Select only enabled event tags. What is considered enabled or disabled depends on the definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' enabledByDefault and status fields are examined as well.", - // "location": "query", - // "type": "boolean" - // }, - // "eventTagTypes": { - // "description": "Select only event tags with the specified event tag types. Event tag types can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking.", - // "enum": [ - // "IMPRESSION_IMAGE_EVENT_TAG", - // "IMPRESSION_JAVASCRIPT_EVENT_TAG", - // "CLICK_THROUGH_EVENT_TAG" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only event tags with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"eventtag*2015\" will return objects with names like \"eventtag June 2015\", \"eventtag April 2015\", or simply \"eventtag 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"eventtag\" will match objects with name \"my eventtag\", \"eventtag 2015\", or simply \"eventtag\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "response": { - // "$ref": "EventTagsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.patch": +} type EventTagsPatchCall struct { s *Service @@ -31320,8 +22838,7 @@ type EventTagsPatchCall struct { header_ http.Header } -// Patch: Updates an existing event tag. This method supports patch -// semantics. +// Patch: Updates an existing event tag. This method supports patch semantics. // // - id: EventTag ID. // - profileId: User profile ID associated with this request. @@ -31334,23 +22851,21 @@ func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsPatchCall) Fields(s ...googleapi.Field) *EventTagsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsPatchCall) Context(ctx context.Context) *EventTagsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31359,18 +22874,12 @@ func (c *EventTagsPatchCall) Header() http.Header { } func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -31383,16 +22892,14 @@ func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.patch" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31400,17 +22907,17 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31423,46 +22930,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "PATCH", - // "id": "dfareporting.eventTags.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "EventTag ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.update": +} type EventTagsUpdateCall struct { s *Service @@ -31484,23 +22952,21 @@ func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsUpdateCall) Fields(s ...googleapi.Field) *EventTagsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsUpdateCall) Context(ctx context.Context) *EventTagsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31509,18 +22975,12 @@ func (c *EventTagsUpdateCall) Header() http.Header { } func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -31533,16 +22993,14 @@ func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.update" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31550,17 +23008,17 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31573,38 +23031,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "PUT", - // "id": "dfareporting.eventTags.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.files.get": +} type FilesGetCall struct { s *Service @@ -31616,8 +23043,8 @@ type FilesGetCall struct { header_ http.Header } -// Get: Retrieves a report file by its report ID and file ID. This -// method supports media download. +// Get: Retrieves a report file by its report ID and file ID. This method +// supports media download. // // - fileId: The ID of the report file. // - reportId: The ID of the report. @@ -31629,33 +23056,29 @@ func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesGetCall) Fields(s ...googleapi.Field) *FilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesGetCall) IfNoneMatch(entityTag string) *FilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31664,12 +23087,7 @@ func (c *FilesGetCall) Header() http.Header { } func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31687,7 +23105,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -31701,18 +23119,16 @@ func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, e } if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31720,17 +23136,17 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -31743,44 +23159,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "flatPath": "reports/{reportId}/files/{fileId}", - // "httpMethod": "GET", - // "id": "dfareporting.files.get", - // "parameterOrder": [ - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.files.list": +} type FilesListCall struct { s *Service @@ -31800,8 +23179,8 @@ func (r *FilesService) List(profileId int64) *FilesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -31814,8 +23193,8 @@ func (c *FilesListCall) PageToken(pageToken string) *FilesListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -31827,8 +23206,8 @@ func (c *FilesListCall) Scope(scope string) *FilesListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -31839,8 +23218,7 @@ func (c *FilesListCall) SortField(sortField string) *FilesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -31852,33 +23230,29 @@ func (c *FilesListCall) SortOrder(sortOrder string) *FilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesListCall) Fields(s ...googleapi.Field) *FilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesListCall) IfNoneMatch(entityTag string) *FilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FilesListCall) Context(ctx context.Context) *FilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31887,12 +23261,7 @@ func (c *FilesListCall) Header() http.Header { } func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31909,16 +23278,14 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31926,17 +23293,17 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -31949,90 +23316,6 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { return nil, err } return ret, nil - // { - // "description": "Lists files for a user profile.", - // "flatPath": "userprofiles/{profileId}/files", - // "httpMethod": "GET", - // "id": "dfareporting.files.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE", - // "SHARED_WITH_ME" - // ], - // "enumDescriptions": [ - // "All files in account.", - // "My files.", - // "Files shared with me." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -32040,7 +23323,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // The provided context supersedes any context provided to the Context method. func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -32056,8 +23339,6 @@ func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) erro } } -// method id "dfareporting.floodlightActivities.delete": - type FloodlightActivitiesDeleteCall struct { s *Service profileId int64 @@ -32079,23 +23360,21 @@ func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *Floodli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesDeleteCall) Fields(s ...googleapi.Field) *FloodlightActivitiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesDeleteCall) Context(ctx context.Context) *FloodlightActivitiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32104,12 +23383,7 @@ func (c *FloodlightActivitiesDeleteCall) Header() http.Header { } func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -32124,7 +23398,7 @@ func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.delete" call. @@ -32136,43 +23410,10 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.floodlightActivities.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.generatetag": +} type FloodlightActivitiesGeneratetagCall struct { s *Service @@ -32191,32 +23432,29 @@ func (r *FloodlightActivitiesService) Generatetag(profileId int64) *FloodlightAc return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Floodlight activity ID for which we want to -// generate a tag. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Floodlight activity ID for which we want to generate a tag. func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityId int64) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGeneratetagCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGeneratetagCall) Context(ctx context.Context) *FloodlightActivitiesGeneratetagCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32225,12 +23463,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { } func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -32244,17 +23477,15 @@ func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.generatetag" call. -// Exactly one of *FloodlightActivitiesGenerateTagResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesGenerateTagResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32262,17 +23493,17 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesGenerateTagResponse{ ServerResponse: googleapi.ServerResponse{ @@ -32285,41 +23516,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Generates a tag for a floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/generatetag", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.generatetag", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "floodlightActivityId": { - // "description": "Floodlight activity ID for which we want to generate a tag.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/generatetag", - // "response": { - // "$ref": "FloodlightActivitiesGenerateTagResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.get": +} type FloodlightActivitiesGetCall struct { s *Service @@ -32343,33 +23540,29 @@ func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *Floodlight } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGetCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesGetCall) IfNoneMatch(entityTag string) *FloodlightActivitiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGetCall) Context(ctx context.Context) *FloodlightActivitiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32378,12 +23571,7 @@ func (c *FloodlightActivitiesGetCall) Header() http.Header { } func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32401,16 +23589,15 @@ func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.get" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32418,17 +23605,17 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -32441,43 +23628,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.insert": +} type FloodlightActivitiesInsertCall struct { s *Service @@ -32499,23 +23650,21 @@ func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesInsertCall) Fields(s ...googleapi.Field) *FloodlightActivitiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesInsertCall) Context(ctx context.Context) *FloodlightActivitiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32524,18 +23673,12 @@ func (c *FloodlightActivitiesInsertCall) Header() http.Header { } func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -32548,16 +23691,15 @@ func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.insert" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32565,17 +23707,17 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -32588,38 +23730,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.list": +} type FloodlightActivitiesListCall struct { s *Service @@ -32630,8 +23741,8 @@ type FloodlightActivitiesListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activities, possibly filtered. -// This method supports paging. +// List: Retrieves a list of floodlight activities, possibly filtered. This +// method supports paging. // // - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitiesListCall { @@ -32641,17 +23752,16 @@ func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitie } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activities for the specified advertiser ID. Must specify -// either ids, advertiserId, or floodlightConfigurationId for a -// non-empty result. +// floodlight activities for the specified advertiser ID. Must specify either +// ids, advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) AdvertiserId(advertiserId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightActivityGroupIds sets the optional parameter -// "floodlightActivityGroupIds": Select only floodlight activities with -// the specified floodlight activity group IDs. +// "floodlightActivityGroupIds": Select only floodlight activities with the +// specified floodlight activity group IDs. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds ...int64) *FloodlightActivitiesListCall { var floodlightActivityGroupIds_ []string for _, v := range floodlightActivityGroupIds { @@ -32662,24 +23772,24 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActi } // FloodlightActivityGroupName sets the optional parameter -// "floodlightActivityGroupName": Select only floodlight activities with -// the specified floodlight activity group name. +// "floodlightActivityGroupName": Select only floodlight activities with the +// specified floodlight activity group name. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupName string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupName", floodlightActivityGroupName) return c } // FloodlightActivityGroupTagString sets the optional parameter -// "floodlightActivityGroupTagString": Select only floodlight activities -// with the specified floodlight activity group tag string. +// "floodlightActivityGroupTagString": Select only floodlight activities with +// the specified floodlight activity group tag string. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupTagString", floodlightActivityGroupTagString) return c } // FloodlightActivityGroupType sets the optional parameter -// "floodlightActivityGroupType": Select only floodlight activities with -// the specified floodlight activity group type. +// "floodlightActivityGroupType": Select only floodlight activities with the +// specified floodlight activity group type. // // Possible values: // @@ -32691,17 +23801,17 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightAct } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activities for -// the specified floodlight configuration ID. Must specify either ids, +// "floodlightConfigurationId": Select only floodlight activities for the +// specified floodlight configuration ID. Must specify either ids, // advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activities with the specified IDs. Must specify either ids, -// advertiserId, or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activities +// with the specified IDs. Must specify either ids, advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesListCall { var ids_ []string for _, v := range ids { @@ -32711,8 +23821,8 @@ func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesLi return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivitiesListCall) MaxResults(maxResults int64) *FloodlightActivitiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -32725,22 +23835,22 @@ func (c *FloodlightActivitiesListCall) PageToken(pageToken string) *FloodlightAc return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivity*2015" will return objects with names -// like "floodlightactivity June 2015", "floodlightactivity April 2015", -// or simply "floodlightactivity 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivity" will match -// objects with name "my floodlightactivity activity", -// "floodlightactivity 2015", or simply "floodlightactivity". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivity*2015" will return objects with names like +// "floodlightactivity June 2015", "floodlightactivity April 2015", or simply +// "floodlightactivity 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "floodlightactivity" will match objects with name "my +// floodlightactivity activity", "floodlightactivity 2015", or simply +// "floodlightactivity". func (c *FloodlightActivitiesListCall) SearchString(searchString string) *FloodlightActivitiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -32751,8 +23861,7 @@ func (c *FloodlightActivitiesListCall) SortField(sortField string) *FloodlightAc return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -32763,41 +23872,37 @@ func (c *FloodlightActivitiesListCall) SortOrder(sortOrder string) *FloodlightAc return c } -// TagString sets the optional parameter "tagString": Select only -// floodlight activities with the specified tag string. +// TagString sets the optional parameter "tagString": Select only floodlight +// activities with the specified tag string. func (c *FloodlightActivitiesListCall) TagString(tagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("tagString", tagString) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesListCall) Fields(s ...googleapi.Field) *FloodlightActivitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesListCall) IfNoneMatch(entityTag string) *FloodlightActivitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesListCall) Context(ctx context.Context) *FloodlightActivitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32806,12 +23911,7 @@ func (c *FloodlightActivitiesListCall) Header() http.Header { } func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32828,16 +23928,15 @@ func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.list" call. -// Exactly one of *FloodlightActivitiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivitiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32845,17 +23944,17 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -32868,133 +23967,6 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activities for the specified advertiser ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupIds": { - // "description": "Select only floodlight activities with the specified floodlight activity group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightActivityGroupName": { - // "description": "Select only floodlight activities with the specified floodlight activity group name.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupTagString": { - // "description": "Select only floodlight activities with the specified floodlight activity group tag string.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupType": { - // "description": "Select only floodlight activities with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activities for the specified floodlight configuration ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivity*2015\" will return objects with names like \"floodlightactivity June 2015\", \"floodlightactivity April 2015\", or simply \"floodlightactivity 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivity\" will match objects with name \"my floodlightactivity activity\", \"floodlightactivity 2015\", or simply \"floodlightactivity\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "tagString": { - // "description": "Select only floodlight activities with the specified tag string.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "response": { - // "$ref": "FloodlightActivitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -33002,7 +23974,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*FloodlightActivitiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -33018,8 +23990,6 @@ func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*Floodl } } -// method id "dfareporting.floodlightActivities.patch": - type FloodlightActivitiesPatchCall struct { s *Service profileId int64 @@ -33029,8 +23999,8 @@ type FloodlightActivitiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity. This method supports -// patch semantics. +// Patch: Updates an existing floodlight activity. This method supports patch +// semantics. // // - id: FloodlightActivity ID. // - profileId: User profile ID associated with this request. @@ -33043,23 +24013,21 @@ func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodligh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesPatchCall) Fields(s ...googleapi.Field) *FloodlightActivitiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesPatchCall) Context(ctx context.Context) *FloodlightActivitiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33068,18 +24036,12 @@ func (c *FloodlightActivitiesPatchCall) Header() http.Header { } func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -33092,16 +24054,15 @@ func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.patch" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33109,17 +24070,17 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -33132,46 +24093,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivities.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "FloodlightActivity ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.update": +} type FloodlightActivitiesUpdateCall struct { s *Service @@ -33193,23 +24115,21 @@ func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivitiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesUpdateCall) Context(ctx context.Context) *FloodlightActivitiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33218,18 +24138,12 @@ func (c *FloodlightActivitiesUpdateCall) Header() http.Header { } func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -33242,16 +24156,15 @@ func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.update" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33259,17 +24172,17 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -33282,38 +24195,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivities.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.get": +} type FloodlightActivityGroupsGetCall struct { s *Service @@ -33337,33 +24219,29 @@ func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsGetCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsGetCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsGetCall) Context(ctx context.Context) *FloodlightActivityGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33372,12 +24250,7 @@ func (c *FloodlightActivityGroupsGetCall) Header() http.Header { } func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33395,16 +24268,15 @@ func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.get" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33412,17 +24284,17 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -33435,43 +24307,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity group by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.insert": +} type FloodlightActivityGroupsInsertCall struct { s *Service @@ -33493,23 +24329,21 @@ func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsInsertCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsInsertCall) Context(ctx context.Context) *FloodlightActivityGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33518,18 +24352,12 @@ func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { } func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -33542,16 +24370,15 @@ func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.insert" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33559,17 +24386,17 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -33582,38 +24409,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity group.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivityGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.list": +} type FloodlightActivityGroupsListCall struct { s *Service @@ -33624,8 +24420,8 @@ type FloodlightActivityGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activity groups, possibly -// filtered. This method supports paging. +// List: Retrieves a list of floodlight activity groups, possibly filtered. +// This method supports paging. // // - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActivityGroupsListCall { @@ -33635,26 +24431,25 @@ func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActiv } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activity groups with the specified advertiser ID. Must -// specify either advertiserId or floodlightConfigurationId for a -// non-empty result. +// floodlight activity groups with the specified advertiser ID. Must specify +// either advertiserId or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) AdvertiserId(advertiserId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activity groups -// with the specified floodlight configuration ID. Must specify either -// advertiserId, or floodlightConfigurationId for a non-empty result. +// "floodlightConfigurationId": Select only floodlight activity groups with the +// specified floodlight configuration ID. Must specify either advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activity groups with the specified IDs. Must specify either -// advertiserId or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activity +// groups with the specified IDs. Must specify either advertiserId or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivityGroupsListCall { var ids_ []string for _, v := range ids { @@ -33664,8 +24459,8 @@ func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivity return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivityGroupsListCall) MaxResults(maxResults int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -33678,23 +24473,22 @@ func (c *FloodlightActivityGroupsListCall) PageToken(pageToken string) *Floodlig return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivitygroup*2015" will return objects with -// names like "floodlightactivitygroup June 2015", -// "floodlightactivitygroup April 2015", or simply -// "floodlightactivitygroup 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivitygroup" will match -// objects with name "my floodlightactivitygroup activity", -// "floodlightactivitygroup 2015", or simply "floodlightactivitygroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivitygroup*2015" will return objects with names like +// "floodlightactivitygroup June 2015", "floodlightactivitygroup April 2015", +// or simply "floodlightactivitygroup 2015". Most of the searches also add +// wildcards implicitly at the start and the end of the search string. For +// example, a search string of "floodlightactivitygroup" will match objects +// with name "my floodlightactivitygroup activity", "floodlightactivitygroup +// 2015", or simply "floodlightactivitygroup". func (c *FloodlightActivityGroupsListCall) SearchString(searchString string) *FloodlightActivityGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -33705,8 +24499,7 @@ func (c *FloodlightActivityGroupsListCall) SortField(sortField string) *Floodlig return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -33717,8 +24510,8 @@ func (c *FloodlightActivityGroupsListCall) SortOrder(sortOrder string) *Floodlig return c } -// Type sets the optional parameter "type": Select only floodlight -// activity groups with the specified floodlight activity group type. +// Type sets the optional parameter "type": Select only floodlight activity +// groups with the specified floodlight activity group type. // // Possible values: // @@ -33730,33 +24523,29 @@ func (c *FloodlightActivityGroupsListCall) Type(type_ string) *FloodlightActivit } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsListCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsListCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsListCall) Context(ctx context.Context) *FloodlightActivityGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33765,12 +24554,7 @@ func (c *FloodlightActivityGroupsListCall) Header() http.Header { } func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33787,17 +24571,15 @@ func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.list" call. -// Exactly one of *FloodlightActivityGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivityGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivityGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33805,17 +24587,17 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -33828,111 +24610,6 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activity groups with the specified advertiser ID. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activity groups with the specified floodlight configuration ID. Must specify either advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivitygroup*2015\" will return objects with names like \"floodlightactivitygroup June 2015\", \"floodlightactivitygroup April 2015\", or simply \"floodlightactivitygroup 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivitygroup\" will match objects with name \"my floodlightactivitygroup activity\", \"floodlightactivitygroup 2015\", or simply \"floodlightactivitygroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only floodlight activity groups with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "response": { - // "$ref": "FloodlightActivityGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -33940,7 +24617,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*FloodlightActivityGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -33956,8 +24633,6 @@ func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*Fl } } -// method id "dfareporting.floodlightActivityGroups.patch": - type FloodlightActivityGroupsPatchCall struct { s *Service profileId int64 @@ -33967,8 +24642,8 @@ type FloodlightActivityGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity group. This method -// supports patch semantics. +// Patch: Updates an existing floodlight activity group. This method supports +// patch semantics. // // - id: FloodlightActivityGroup ID. // - profileId: User profile ID associated with this request. @@ -33981,23 +24656,21 @@ func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsPatchCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsPatchCall) Context(ctx context.Context) *FloodlightActivityGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34006,18 +24679,12 @@ func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { } func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -34030,16 +24697,15 @@ func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.patch" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34047,17 +24713,17 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -34070,46 +24736,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivityGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "FloodlightActivityGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.update": +} type FloodlightActivityGroupsUpdateCall struct { s *Service @@ -34131,23 +24758,21 @@ func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsUpdateCall) Context(ctx context.Context) *FloodlightActivityGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34156,18 +24781,12 @@ func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { } func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -34180,16 +24799,15 @@ func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.update" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34197,17 +24815,17 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -34220,38 +24838,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivityGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.get": +} type FloodlightConfigurationsGetCall struct { s *Service @@ -34275,33 +24862,29 @@ func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsGetCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsGetCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsGetCall) Context(ctx context.Context) *FloodlightConfigurationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34310,12 +24893,7 @@ func (c *FloodlightConfigurationsGetCall) Header() http.Header { } func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34333,16 +24911,15 @@ func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.get" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34350,17 +24927,17 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -34373,43 +24950,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight configuration by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.list": +} type FloodlightConfigurationsListCall struct { s *Service @@ -34420,8 +24961,7 @@ type FloodlightConfigurationsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight configurations, possibly -// filtered. +// List: Retrieves a list of floodlight configurations, possibly filtered. // // - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfigurationsListCall { @@ -34431,8 +24971,8 @@ func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfi } // Ids sets the optional parameter "ids": Set of IDs of floodlight -// configurations to retrieve. Required field; otherwise an empty list -// will be returned. +// configurations to retrieve. Required field; otherwise an empty list will be +// returned. func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigurationsListCall { var ids_ []string for _, v := range ids { @@ -34443,33 +24983,29 @@ func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigur } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsListCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsListCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsListCall) Context(ctx context.Context) *FloodlightConfigurationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34478,12 +25014,7 @@ func (c *FloodlightConfigurationsListCall) Header() http.Header { } func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34500,17 +25031,15 @@ func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.list" call. -// Exactly one of *FloodlightConfigurationsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightConfigurationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightConfigurationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*FloodlightConfigurationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34518,17 +25047,17 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfigurationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34541,42 +25070,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight configurations, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will be returned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "response": { - // "$ref": "FloodlightConfigurationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.patch": +} type FloodlightConfigurationsPatchCall struct { s *Service @@ -34587,8 +25081,8 @@ type FloodlightConfigurationsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight configuration. This method -// supports patch semantics. +// Patch: Updates an existing floodlight configuration. This method supports +// patch semantics. // // - id: FloodlightConfiguration ID. // - profileId: User profile ID associated with this request. @@ -34601,23 +25095,21 @@ func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsPatchCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsPatchCall) Context(ctx context.Context) *FloodlightConfigurationsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34626,18 +25118,12 @@ func (c *FloodlightConfigurationsPatchCall) Header() http.Header { } func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -34650,16 +25136,15 @@ func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.patch" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34667,17 +25152,17 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -34690,46 +25175,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightConfigurations.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "FloodlightConfiguration ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.update": +} type FloodlightConfigurationsUpdateCall struct { s *Service @@ -34751,23 +25197,21 @@ func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconf } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsUpdateCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsUpdateCall) Context(ctx context.Context) *FloodlightConfigurationsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34776,18 +25220,12 @@ func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { } func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -34800,16 +25238,15 @@ func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.update" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34817,17 +25254,17 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -34840,38 +25277,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightConfigurations.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.get": +} type InventoryItemsGetCall struct { s *Service @@ -34898,33 +25304,29 @@ func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsGetCall) Fields(s ...googleapi.Field) *InventoryItemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsGetCall) IfNoneMatch(entityTag string) *InventoryItemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsGetCall) Context(ctx context.Context) *InventoryItemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34933,12 +25335,7 @@ func (c *InventoryItemsGetCall) Header() http.Header { } func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34957,16 +25354,14 @@ func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.get" call. -// Exactly one of *InventoryItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InventoryItem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventoryItem.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34974,17 +25369,17 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItem{ ServerResponse: googleapi.ServerResponse{ @@ -34997,51 +25392,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem return nil, err } return ret, nil - // { - // "description": "Gets one inventory item by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Inventory item ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - // "response": { - // "$ref": "InventoryItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.list": +} type InventoryItemsListCall struct { s *Service @@ -35053,8 +25404,8 @@ type InventoryItemsListCall struct { header_ http.Header } -// List: Retrieves a list of inventory items, possibly filtered. This -// method supports paging. +// List: Retrieves a list of inventory items, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. // - projectId: Project ID for order documents. @@ -35065,8 +25416,8 @@ func (r *InventoryItemsService) List(profileId int64, projectId int64) *Inventor return c } -// Ids sets the optional parameter "ids": Select only inventory items -// with these IDs. +// Ids sets the optional parameter "ids": Select only inventory items with +// these IDs. func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { var ids_ []string for _, v := range ids { @@ -35076,22 +25427,22 @@ func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { return c } -// InPlan sets the optional parameter "inPlan": Select only inventory -// items that are in plan. +// InPlan sets the optional parameter "inPlan": Select only inventory items +// that are in plan. func (c *InventoryItemsListCall) InPlan(inPlan bool) *InventoryItemsListCall { c.urlParams_.Set("inPlan", fmt.Sprint(inPlan)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *InventoryItemsListCall) MaxResults(maxResults int64) *InventoryItemsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only inventory -// items that belong to specified orders. +// OrderId sets the optional parameter "orderId": Select only inventory items +// that belong to specified orders. func (c *InventoryItemsListCall) OrderId(orderId ...int64) *InventoryItemsListCall { var orderId_ []string for _, v := range orderId { @@ -35108,8 +25459,8 @@ func (c *InventoryItemsListCall) PageToken(pageToken string) *InventoryItemsList return c } -// SiteId sets the optional parameter "siteId": Select only inventory -// items that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only inventory items +// that are associated with these sites. func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall { var siteId_ []string for _, v := range siteId { @@ -35119,8 +25470,8 @@ func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -35131,8 +25482,7 @@ func (c *InventoryItemsListCall) SortField(sortField string) *InventoryItemsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -35143,8 +25493,8 @@ func (c *InventoryItemsListCall) SortOrder(sortOrder string) *InventoryItemsList return c } -// Type sets the optional parameter "type": Select only inventory items -// with this type. +// Type sets the optional parameter "type": Select only inventory items with +// this type. // // Possible values: // @@ -35156,33 +25506,29 @@ func (c *InventoryItemsListCall) Type(type_ string) *InventoryItemsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsListCall) Fields(s ...googleapi.Field) *InventoryItemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsListCall) IfNoneMatch(entityTag string) *InventoryItemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsListCall) Context(ctx context.Context) *InventoryItemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35191,12 +25537,7 @@ func (c *InventoryItemsListCall) Header() http.Header { } func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35214,16 +25555,15 @@ func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.list" call. -// Exactly one of *InventoryItemsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *InventoryItemsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *InventoryItemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryItemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35231,17 +25571,17 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35254,121 +25594,6 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte return nil, err } return ret, nil - // { - // "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only inventory items with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "inPlan": { - // "description": "Select only inventory items that are in plan.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only inventory items that belong to specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "siteId": { - // "description": "Select only inventory items that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only inventory items with this type.", - // "enum": [ - // "PLANNING_PLACEMENT_TYPE_REGULAR", - // "PLANNING_PLACEMENT_TYPE_CREDIT" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - // "response": { - // "$ref": "InventoryItemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -35376,7 +25601,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // The provided context supersedes any context provided to the Context method. func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryItemsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -35392,8 +25617,6 @@ func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryIte } } -// method id "dfareporting.languages.list": - type LanguagesListCall struct { s *Service profileId int64 @@ -35413,33 +25636,29 @@ func (r *LanguagesService) List(profileId int64) *LanguagesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LanguagesListCall) Fields(s ...googleapi.Field) *LanguagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LanguagesListCall) IfNoneMatch(entityTag string) *LanguagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LanguagesListCall) Context(ctx context.Context) *LanguagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LanguagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35448,12 +25667,7 @@ func (c *LanguagesListCall) Header() http.Header { } func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35470,16 +25684,15 @@ func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.languages.list" call. -// Exactly one of *LanguagesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *LanguagesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LanguagesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35487,17 +25700,17 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LanguagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35510,35 +25723,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of languages.", - // "flatPath": "userprofiles/{profileId}/languages", - // "httpMethod": "GET", - // "id": "dfareporting.languages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/languages", - // "response": { - // "$ref": "LanguagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.metros.list": +} type MetrosListCall struct { s *Service @@ -35559,33 +25744,29 @@ func (r *MetrosService) List(profileId int64) *MetrosListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetrosListCall) Fields(s ...googleapi.Field) *MetrosListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetrosListCall) IfNoneMatch(entityTag string) *MetrosListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetrosListCall) Context(ctx context.Context) *MetrosListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetrosListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35594,12 +25775,7 @@ func (c *MetrosListCall) Header() http.Header { } func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35616,16 +25792,15 @@ func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.metros.list" call. -// Exactly one of *MetrosListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MetrosListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MetrosListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35633,17 +25808,17 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MetrosListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35656,35 +25831,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of metros.", - // "flatPath": "userprofiles/{profileId}/metros", - // "httpMethod": "GET", - // "id": "dfareporting.metros.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/metros", - // "response": { - // "$ref": "MetrosListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileApps.get": +} type MobileAppsGetCall struct { s *Service @@ -35708,33 +25855,29 @@ func (r *MobileAppsService) Get(profileId int64, id string) *MobileAppsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileAppsGetCall) Fields(s ...googleapi.Field) *MobileAppsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileAppsGetCall) IfNoneMatch(entityTag string) *MobileAppsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileAppsGetCall) Context(ctx context.Context) *MobileAppsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileAppsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35743,12 +25886,7 @@ func (c *MobileAppsGetCall) Header() http.Header { } func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35766,16 +25904,14 @@ func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileApps.get" call. -// Exactly one of *MobileApp or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileApp.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileApp.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35783,17 +25919,17 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileApp{ ServerResponse: googleapi.ServerResponse{ @@ -35806,42 +25942,7 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) return nil, err } return ret, nil - // { - // "description": "Gets one mobile app by ID.", - // "flatPath": "userprofiles/{profileId}/mobileApps/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.mobileApps.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile app ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileApps/{id}", - // "response": { - // "$ref": "MobileApp" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileApps.list": +} type MobileAppsListCall struct { s *Service @@ -35861,8 +25962,8 @@ func (r *MobileAppsService) List(profileId int64) *MobileAppsListCall { return c } -// Directories sets the optional parameter "directories": Select only -// apps from these directories. +// Directories sets the optional parameter "directories": Select only apps from +// these directories. // // Possible values: // @@ -35874,15 +25975,14 @@ func (c *MobileAppsListCall) Directories(directories ...string) *MobileAppsListC return c } -// Ids sets the optional parameter "ids": Select only apps with these -// IDs. +// Ids sets the optional parameter "ids": Select only apps with these IDs. func (c *MobileAppsListCall) Ids(ids ...string) *MobileAppsListCall { c.urlParams_.SetMulti("ids", append([]string{}, ids...)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *MobileAppsListCall) MaxResults(maxResults int64) *MobileAppsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -35895,46 +25995,42 @@ func (c *MobileAppsListCall) PageToken(pageToken string) *MobileAppsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "app*2015" will return objects with names like "app Jan -// 2018", "app Jan 2018", or simply "app 2018". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "app" will match objects with -// name "my app", "app 2018", or simply "app". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "app*2015" will return objects with names like "app Jan 2018", "app Jan +// 2018", or simply "app 2018". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "app" will match objects with name "my app", "app 2018", or +// simply "app". func (c *MobileAppsListCall) SearchString(searchString string) *MobileAppsListCall { c.urlParams_.Set("searchString", searchString) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileAppsListCall) Fields(s ...googleapi.Field) *MobileAppsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileAppsListCall) IfNoneMatch(entityTag string) *MobileAppsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileAppsListCall) Context(ctx context.Context) *MobileAppsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileAppsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35943,12 +26039,7 @@ func (c *MobileAppsListCall) Header() http.Header { } func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35965,16 +26056,15 @@ func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileApps.list" call. -// Exactly one of *MobileAppsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MobileAppsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileAppsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35982,17 +26072,17 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileAppsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36005,73 +26095,6 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves list of available mobile apps.", - // "flatPath": "userprofiles/{profileId}/mobileApps", - // "httpMethod": "GET", - // "id": "dfareporting.mobileApps.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "directories": { - // "description": "Select only apps from these directories.", - // "enum": [ - // "UNKNOWN", - // "APPLE_APP_STORE", - // "GOOGLE_PLAY_STORE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only apps with these IDs.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"app*2015\" will return objects with names like \"app Jan 2018\", \"app Jan 2018\", or simply \"app 2018\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"app\" will match objects with name \"my app\", \"app 2018\", or simply \"app\".", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileApps", - // "response": { - // "$ref": "MobileAppsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -36079,7 +26102,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe // The provided context supersedes any context provided to the Context method. func (c *MobileAppsListCall) Pages(ctx context.Context, f func(*MobileAppsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -36095,8 +26118,6 @@ func (c *MobileAppsListCall) Pages(ctx context.Context, f func(*MobileAppsListRe } } -// method id "dfareporting.mobileCarriers.get": - type MobileCarriersGetCall struct { s *Service profileId int64 @@ -36119,33 +26140,29 @@ func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersGetCall) Fields(s ...googleapi.Field) *MobileCarriersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersGetCall) IfNoneMatch(entityTag string) *MobileCarriersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersGetCall) Context(ctx context.Context) *MobileCarriersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36154,12 +26171,7 @@ func (c *MobileCarriersGetCall) Header() http.Header { } func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36177,16 +26189,14 @@ func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.get" call. -// Exactly one of *MobileCarrier or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileCarrier.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileCarrier.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36194,17 +26204,17 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarrier{ ServerResponse: googleapi.ServerResponse{ @@ -36217,43 +26227,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier return nil, err } return ret, nil - // { - // "description": "Gets one mobile carrier by ID.", - // "flatPath": "userprofiles/{profileId}/mobileCarriers/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile carrier ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers/{id}", - // "response": { - // "$ref": "MobileCarrier" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileCarriers.list": +} type MobileCarriersListCall struct { s *Service @@ -36274,33 +26248,29 @@ func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersListCall) Fields(s ...googleapi.Field) *MobileCarriersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersListCall) IfNoneMatch(entityTag string) *MobileCarriersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersListCall) Context(ctx context.Context) *MobileCarriersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36309,12 +26279,7 @@ func (c *MobileCarriersListCall) Header() http.Header { } func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36331,16 +26296,15 @@ func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.list" call. -// Exactly one of *MobileCarriersListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *MobileCarriersListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *MobileCarriersListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarriersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36348,17 +26312,17 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarriersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36371,35 +26335,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie return nil, err } return ret, nil - // { - // "description": "Retrieves a list of mobile carriers.", - // "flatPath": "userprofiles/{profileId}/mobileCarriers", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers", - // "response": { - // "$ref": "MobileCarriersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.get": +} type OperatingSystemVersionsGetCall struct { s *Service @@ -36423,33 +26359,29 @@ func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *Operati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsGetCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsGetCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsGetCall) Context(ctx context.Context) *OperatingSystemVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36458,12 +26390,7 @@ func (c *OperatingSystemVersionsGetCall) Header() http.Header { } func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36481,16 +26408,15 @@ func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.get" call. -// Exactly one of *OperatingSystemVersion or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OperatingSystemVersion.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersion.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36498,17 +26424,17 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersion{ ServerResponse: googleapi.ServerResponse{ @@ -36521,43 +26447,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper return nil, err } return ret, nil - // { - // "description": "Gets one operating system version by ID.", - // "flatPath": "userprofiles/{profileId}/operatingSystemVersions/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Operating system version ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", - // "response": { - // "$ref": "OperatingSystemVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.list": +} type OperatingSystemVersionsListCall struct { s *Service @@ -36578,33 +26468,29 @@ func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemV } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsListCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsListCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsListCall) Context(ctx context.Context) *OperatingSystemVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36613,12 +26499,7 @@ func (c *OperatingSystemVersionsListCall) Header() http.Header { } func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36635,17 +26516,15 @@ func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.list" call. -// Exactly one of *OperatingSystemVersionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemVersionsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersionsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36653,17 +26532,17 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36676,35 +26555,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating system versions.", - // "flatPath": "userprofiles/{profileId}/operatingSystemVersions", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions", - // "response": { - // "$ref": "OperatingSystemVersionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.get": +} type OperatingSystemsGetCall struct { s *Service @@ -36728,33 +26579,29 @@ func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingS } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsGetCall) Fields(s ...googleapi.Field) *OperatingSystemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsGetCall) IfNoneMatch(entityTag string) *OperatingSystemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsGetCall) Context(ctx context.Context) *OperatingSystemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36763,12 +26610,7 @@ func (c *OperatingSystemsGetCall) Header() http.Header { } func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36786,16 +26628,15 @@ func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.get" call. -// Exactly one of *OperatingSystem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OperatingSystem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystem.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36803,17 +26644,17 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystem{ ServerResponse: googleapi.ServerResponse{ @@ -36826,43 +26667,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy return nil, err } return ret, nil - // { - // "description": "Gets one operating system by DART ID.", - // "flatPath": "userprofiles/{profileId}/operatingSystems/{dartId}", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Operating system DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems/{dartId}", - // "response": { - // "$ref": "OperatingSystem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.list": +} type OperatingSystemsListCall struct { s *Service @@ -36883,33 +26688,29 @@ func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsListCall) Fields(s ...googleapi.Field) *OperatingSystemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsListCall) IfNoneMatch(entityTag string) *OperatingSystemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsListCall) Context(ctx context.Context) *OperatingSystemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36918,12 +26719,7 @@ func (c *OperatingSystemsListCall) Header() http.Header { } func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36940,16 +26736,15 @@ func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.list" call. -// Exactly one of *OperatingSystemsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36957,17 +26752,17 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36980,35 +26775,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating systems.", - // "flatPath": "userprofiles/{profileId}/operatingSystems", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems", - // "response": { - // "$ref": "OperatingSystemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.get": +} type OrderDocumentsGetCall struct { s *Service @@ -37035,33 +26802,29 @@ func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsGetCall) Context(ctx context.Context) *OrderDocumentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37070,12 +26833,7 @@ func (c *OrderDocumentsGetCall) Header() http.Header { } func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37094,16 +26852,14 @@ func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.get" call. -// Exactly one of *OrderDocument or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OrderDocument.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderDocument.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37111,17 +26867,17 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocument{ ServerResponse: googleapi.ServerResponse{ @@ -37134,51 +26890,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument return nil, err } return ret, nil - // { - // "description": "Gets one order document by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order document ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - // "response": { - // "$ref": "OrderDocument" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.list": +} type OrderDocumentsListCall struct { s *Service @@ -37190,8 +26902,8 @@ type OrderDocumentsListCall struct { header_ http.Header } -// List: Retrieves a list of order documents, possibly filtered. This -// method supports paging. +// List: Retrieves a list of order documents, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. // - projectId: Project ID for order documents. @@ -37202,15 +26914,15 @@ func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDoc return c } -// Approved sets the optional parameter "approved": Select only order -// documents that have been approved by at least one user. +// Approved sets the optional parameter "approved": Select only order documents +// that have been approved by at least one user. func (c *OrderDocumentsListCall) Approved(approved bool) *OrderDocumentsListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// Ids sets the optional parameter "ids": Select only order documents -// with these IDs. +// Ids sets the optional parameter "ids": Select only order documents with +// these IDs. func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { var ids_ []string for _, v := range ids { @@ -37220,15 +26932,15 @@ func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrderDocumentsListCall) MaxResults(maxResults int64) *OrderDocumentsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only order -// documents for specified orders. +// OrderId sets the optional parameter "orderId": Select only order documents +// for specified orders. func (c *OrderDocumentsListCall) OrderId(orderId ...int64) *OrderDocumentsListCall { var orderId_ []string for _, v := range orderId { @@ -37245,22 +26957,21 @@ func (c *OrderDocumentsListCall) PageToken(pageToken string) *OrderDocumentsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for order documents by name or ID. Wildcards (*) are -// allowed. For example, "orderdocument*2015" will return order -// documents with names like "orderdocument June 2015", "orderdocument -// April 2015", or simply "orderdocument 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "orderdocument" will match -// order documents with name "my orderdocument", "orderdocument 2015", -// or simply "orderdocument". +// SearchString sets the optional parameter "searchString": Allows searching +// for order documents by name or ID. Wildcards (*) are allowed. For example, +// "orderdocument*2015" will return order documents with names like +// "orderdocument June 2015", "orderdocument April 2015", or simply +// "orderdocument 2015". Most of the searches also add wildcards implicitly at +// the start and the end of the search string. For example, a search string of +// "orderdocument" will match order documents with name "my orderdocument", +// "orderdocument 2015", or simply "orderdocument". func (c *OrderDocumentsListCall) SearchString(searchString string) *OrderDocumentsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only order -// documents that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only order documents +// that are associated with these sites. func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall { var siteId_ []string for _, v := range siteId { @@ -37270,8 +26981,8 @@ func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -37282,8 +26993,7 @@ func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -37295,33 +27005,29 @@ func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsListCall) Context(ctx context.Context) *OrderDocumentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37330,12 +27036,7 @@ func (c *OrderDocumentsListCall) Header() http.Header { } func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37353,16 +27054,15 @@ func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.list" call. -// Exactly one of *OrderDocumentsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrderDocumentsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrderDocumentsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumentsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37370,17 +27070,17 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocumentsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37393,113 +27093,6 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen return nil, err } return ret, nil - // { - // "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "approved": { - // "description": "Select only order documents that have been approved by at least one user.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only order documents with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only order documents for specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for order documents by name or ID. Wildcards (*) are allowed. For example, \"orderdocument*2015\" will return order documents with names like \"orderdocument June 2015\", \"orderdocument April 2015\", or simply \"orderdocument 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"orderdocument\" will match order documents with name \"my orderdocument\", \"orderdocument 2015\", or simply \"orderdocument\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only order documents that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "response": { - // "$ref": "OrderDocumentsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -37507,7 +27100,7 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen // The provided context supersedes any context provided to the Context method. func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumentsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -37523,8 +27116,6 @@ func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumen } } -// method id "dfareporting.orders.get": - type OrdersGetCall struct { s *Service profileId int64 @@ -37550,33 +27141,29 @@ func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37585,12 +27172,7 @@ func (c *OrdersGetCall) Header() http.Header { } func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37609,16 +27191,14 @@ func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Order.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37626,17 +27206,17 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Order{ ServerResponse: googleapi.ServerResponse{ @@ -37649,51 +27229,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return nil, err } return ret, nil - // { - // "description": "Gets one order by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.orders.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orders.list": +} type OrdersListCall struct { s *Service @@ -37705,8 +27241,8 @@ type OrdersListCall struct { header_ http.Header } -// List: Retrieves a list of orders, possibly filtered. This method -// supports paging. +// List: Retrieves a list of orders, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. // - projectId: Project ID for orders. @@ -37717,8 +27253,7 @@ func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { return c } -// Ids sets the optional parameter "ids": Select only orders with these -// IDs. +// Ids sets the optional parameter "ids": Select only orders with these IDs. func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { var ids_ []string for _, v := range ids { @@ -37728,8 +27263,8 @@ func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -37742,20 +27277,20 @@ func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for orders by name or ID. Wildcards (*) are allowed. For -// example, "order*2015" will return orders with names like "order June -// 2015", "order April 2015", or simply "order 2015". Most of the -// searches also add wildcards implicitly at the start and the end of -// the search string. For example, a search string of "order" will match -// orders with name "my order", "order 2015", or simply "order". +// SearchString sets the optional parameter "searchString": Allows searching +// for orders by name or ID. Wildcards (*) are allowed. For example, +// "order*2015" will return orders with names like "order June 2015", "order +// April 2015", or simply "order 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "order" will match orders with name "my order", "order +// 2015", or simply "order". func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only orders that -// are associated with these site IDs. +// SiteId sets the optional parameter "siteId": Select only orders that are +// associated with these site IDs. func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { var siteId_ []string for _, v := range siteId { @@ -37765,8 +27300,8 @@ func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -37777,8 +27312,7 @@ func (c *OrdersListCall) SortField(sortField string) *OrdersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -37790,33 +27324,29 @@ func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37825,12 +27355,7 @@ func (c *OrdersListCall) Header() http.Header { } func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37848,16 +27373,15 @@ func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.list" call. -// Exactly one of *OrdersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37865,17 +27389,17 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37888,101 +27412,6 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders", - // "httpMethod": "GET", - // "id": "dfareporting.orders.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only orders with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, \"order*2015\" will return orders with names like \"order June 2015\", \"order April 2015\", or simply \"order 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"order\" will match orders with name \"my order\", \"order 2015\", or simply \"order\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only orders that are associated with these site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders", - // "response": { - // "$ref": "OrdersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -37990,7 +27419,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // The provided context supersedes any context provided to the Context method. func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -38006,8 +27435,6 @@ func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) } } -// method id "dfareporting.placementGroups.get": - type PlacementGroupsGetCall struct { s *Service profileId int64 @@ -38030,33 +27457,29 @@ func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsGetCall) Fields(s ...googleapi.Field) *PlacementGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsGetCall) IfNoneMatch(entityTag string) *PlacementGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsGetCall) Context(ctx context.Context) *PlacementGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38065,12 +27488,7 @@ func (c *PlacementGroupsGetCall) Header() http.Header { } func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38088,16 +27506,14 @@ func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.get" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38105,17 +27521,17 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38128,43 +27544,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro return nil, err } return ret, nil - // { - // "description": "Gets one placement group by ID.", - // "flatPath": "userprofiles/{profileId}/placementGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups/{id}", - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.insert": +} type PlacementGroupsInsertCall struct { s *Service @@ -38186,23 +27566,21 @@ func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsInsertCall) Fields(s ...googleapi.Field) *PlacementGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsInsertCall) Context(ctx context.Context) *PlacementGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38211,18 +27589,12 @@ func (c *PlacementGroupsInsertCall) Header() http.Header { } func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -38235,16 +27607,14 @@ func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.insert" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38252,17 +27622,17 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38275,38 +27645,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Inserts a new placement group.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "POST", - // "id": "dfareporting.placementGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.list": +} type PlacementGroupsListCall struct { s *Service @@ -38317,8 +27656,8 @@ type PlacementGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of placement groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of placement groups, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall { @@ -38327,8 +27666,8 @@ func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placement groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placement groups that belong to these advertisers. func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -38339,15 +27678,15 @@ func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Placeme } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementGroupsListCall) Archived(archived bool) *PlacementGroupsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// placement groups that belong to these campaigns. +// CampaignIds sets the optional parameter "campaignIds": Select only placement +// groups that belong to these campaigns. func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGroupsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -38357,9 +27696,8 @@ func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGr return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placement groups that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placement groups that are associated with these content categories. func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementGroupsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -38369,9 +27707,8 @@ func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64 return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placement groups that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placement groups that are associated with these directory sites. func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementGroupsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -38381,8 +27718,8 @@ func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *P return c } -// Ids sets the optional parameter "ids": Select only placement groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only placement groups with +// these IDs. func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { var ids_ []string for _, v := range ids { @@ -38392,16 +27729,16 @@ func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MaxEndDate(maxEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementGroupsListCall) MaxResults(maxResults int64) *PlacementGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -38415,17 +27752,17 @@ func (c *PlacementGroupsListCall) MaxStartDate(maxStartDate string) *PlacementGr return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinEndDate(minEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinStartDate(minStartDate string) *PlacementGroupsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -38438,13 +27775,13 @@ func (c *PlacementGroupsListCall) PageToken(pageToken string) *PlacementGroupsLi return c } -// PlacementGroupType sets the optional parameter "placementGroupType": -// Select only placement groups belonging with this group type. A -// package is a simple group of placements that acts as a single pricing -// point for a group of tags. A roadblock is a group of placements that -// not only acts as a single pricing point but also assumes that all the -// tags in it will be served at the same time. A roadblock requires one -// of its assigned placements to be marked as primary for reporting. +// PlacementGroupType sets the optional parameter "placementGroupType": Select +// only placement groups belonging with this group type. A package is a simple +// group of placements that acts as a single pricing point for a group of tags. +// A roadblock is a group of placements that not only acts as a single pricing +// point but also assumes that all the tags in it will be served at the same +// time. A roadblock requires one of its assigned placements to be marked as +// primary for reporting. // // Possible values: // @@ -38455,9 +27792,9 @@ func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placement groups that are -// associated with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placement groups that are associated with these placement +// strategies. func (c *PlacementGroupsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementGroupsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -38483,22 +27820,21 @@ func (c *PlacementGroupsListCall) PricingTypes(pricingTypes ...string) *Placemen return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placement groups by name or ID. Wildcards (*) are -// allowed. For example, "placement*2015" will return placement groups -// with names like "placement group June 2015", "placement group May -// 2015", or simply "placements 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementgroup" will match placement -// groups with name "my placementgroup", "placementgroup 2015", or -// simply "placementgroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for placement groups by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placement groups with names like "placement +// group June 2015", "placement group May 2015", or simply "placements 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "placementgroup" will +// match placement groups with name "my placementgroup", "placementgroup 2015", +// or simply "placementgroup". func (c *PlacementGroupsListCall) SearchString(searchString string) *PlacementGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placement -// groups that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placement groups +// that are associated with these sites. func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsListCall { var siteIds_ []string for _, v := range siteIds { @@ -38508,8 +27844,8 @@ func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsList return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -38520,8 +27856,7 @@ func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsLi return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -38533,33 +27868,29 @@ func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsLi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsListCall) Fields(s ...googleapi.Field) *PlacementGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsListCall) IfNoneMatch(entityTag string) *PlacementGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsListCall) Context(ctx context.Context) *PlacementGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38568,12 +27899,7 @@ func (c *PlacementGroupsListCall) Header() http.Header { } func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38590,16 +27916,15 @@ func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.list" call. -// Exactly one of *PlacementGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlacementGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlacementGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38607,17 +27932,17 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -38630,188 +27955,6 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placement groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placement groups that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placement groups that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placement groups that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placement groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "800", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "800", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementGroupType": { - // "description": "Select only placement groups belonging with this group type. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting.", - // "enum": [ - // "PLACEMENT_PACKAGE", - // "PLACEMENT_ROADBLOCK" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placement groups that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placement groups with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_CPM_ACTIVEVIEW" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placement groups with names like \"placement group June 2015\", \"placement group May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementgroup\" will match placement groups with name \"my placementgroup\", \"placementgroup 2015\", or simply \"placementgroup\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placement groups that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "response": { - // "$ref": "PlacementGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -38819,7 +27962,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // The provided context supersedes any context provided to the Context method. func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -38835,8 +27978,6 @@ func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGr } } -// method id "dfareporting.placementGroups.patch": - type PlacementGroupsPatchCall struct { s *Service profileId int64 @@ -38846,8 +27987,8 @@ type PlacementGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement group. This method supports -// patch semantics. +// Patch: Updates an existing placement group. This method supports patch +// semantics. // // - id: PlacementGroup ID. // - profileId: User profile ID associated with this request. @@ -38860,23 +28001,21 @@ func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsPatchCall) Fields(s ...googleapi.Field) *PlacementGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsPatchCall) Context(ctx context.Context) *PlacementGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38885,18 +28024,12 @@ func (c *PlacementGroupsPatchCall) Header() http.Header { } func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -38909,16 +28042,14 @@ func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.patch" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38926,17 +28057,17 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -38949,46 +28080,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "PlacementGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.update": +} type PlacementGroupsUpdateCall struct { s *Service @@ -39010,23 +28102,21 @@ func (r *PlacementGroupsService) Update(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsUpdateCall) Fields(s ...googleapi.Field) *PlacementGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsUpdateCall) Context(ctx context.Context) *PlacementGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39035,18 +28125,12 @@ func (c *PlacementGroupsUpdateCall) Header() http.Header { } func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -39059,16 +28143,14 @@ func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.update" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39076,17 +28158,17 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -39099,38 +28181,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.placementGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.delete": +} type PlacementStrategiesDeleteCall struct { s *Service @@ -39153,23 +28204,21 @@ func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesDeleteCall) Fields(s ...googleapi.Field) *PlacementStrategiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesDeleteCall) Context(ctx context.Context) *PlacementStrategiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39178,12 +28227,7 @@ func (c *PlacementStrategiesDeleteCall) Header() http.Header { } func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -39198,7 +28242,7 @@ func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.delete" call. @@ -39210,43 +28254,10 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.placementStrategies.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.get": +} type PlacementStrategiesGetCall struct { s *Service @@ -39270,33 +28281,29 @@ func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementSt } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesGetCall) Fields(s ...googleapi.Field) *PlacementStrategiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesGetCall) IfNoneMatch(entityTag string) *PlacementStrategiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesGetCall) Context(ctx context.Context) *PlacementStrategiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39305,12 +28312,7 @@ func (c *PlacementStrategiesGetCall) Header() http.Header { } func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39328,16 +28330,15 @@ func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.get" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39345,17 +28346,17 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39368,43 +28369,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Gets one placement strategy by ID.", - // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.insert": +} type PlacementStrategiesInsertCall struct { s *Service @@ -39426,23 +28391,21 @@ func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesInsertCall) Fields(s ...googleapi.Field) *PlacementStrategiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesInsertCall) Context(ctx context.Context) *PlacementStrategiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39451,18 +28414,12 @@ func (c *PlacementStrategiesInsertCall) Header() http.Header { } func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -39475,16 +28432,15 @@ func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.insert" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39492,17 +28448,17 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39515,38 +28471,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Inserts a new placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "POST", - // "id": "dfareporting.placementStrategies.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.list": +} type PlacementStrategiesListCall struct { s *Service @@ -39557,8 +28482,8 @@ type PlacementStrategiesListCall struct { header_ http.Header } -// List: Retrieves a list of placement strategies, possibly filtered. -// This method supports paging. +// List: Retrieves a list of placement strategies, possibly filtered. This +// method supports paging. // // - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesListCall { @@ -39567,8 +28492,8 @@ func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesL return c } -// Ids sets the optional parameter "ids": Select only placement -// strategies with these IDs. +// Ids sets the optional parameter "ids": Select only placement strategies with +// these IDs. func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesListCall { var ids_ []string for _, v := range ids { @@ -39578,8 +28503,8 @@ func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementStrategiesListCall) MaxResults(maxResults int64) *PlacementStrategiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -39592,22 +28517,21 @@ func (c *PlacementStrategiesListCall) PageToken(pageToken string) *PlacementStra return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "placementstrategy*2015" will return objects with names like -// "placementstrategy June 2015", "placementstrategy April 2015", or -// simply "placementstrategy 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementstrategy" will match -// objects with name "my placementstrategy", "placementstrategy 2015", -// or simply "placementstrategy". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "placementstrategy*2015" will return objects with names like +// "placementstrategy June 2015", "placementstrategy April 2015", or simply +// "placementstrategy 2015". Most of the searches also add wildcards implicitly +// at the start and the end of the search string. For example, a search string +// of "placementstrategy" will match objects with name "my placementstrategy", +// "placementstrategy 2015", or simply "placementstrategy". func (c *PlacementStrategiesListCall) SearchString(searchString string) *PlacementStrategiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -39618,8 +28542,7 @@ func (c *PlacementStrategiesListCall) SortField(sortField string) *PlacementStra return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -39631,33 +28554,29 @@ func (c *PlacementStrategiesListCall) SortOrder(sortOrder string) *PlacementStra } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesListCall) Fields(s ...googleapi.Field) *PlacementStrategiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesListCall) IfNoneMatch(entityTag string) *PlacementStrategiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesListCall) Context(ctx context.Context) *PlacementStrategiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39666,12 +28585,7 @@ func (c *PlacementStrategiesListCall) Header() http.Header { } func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39688,16 +28602,15 @@ func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.list" call. -// Exactly one of *PlacementStrategiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementStrategiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategiesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*PlacementStrategiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39705,17 +28618,17 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -39728,86 +28641,6 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only placement strategies with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"placementstrategy*2015\" will return objects with names like \"placementstrategy June 2015\", \"placementstrategy April 2015\", or simply \"placementstrategy 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementstrategy\" will match objects with name \"my placementstrategy\", \"placementstrategy 2015\", or simply \"placementstrategy\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "response": { - // "$ref": "PlacementStrategiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -39815,7 +28648,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // The provided context supersedes any context provided to the Context method. func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*PlacementStrategiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -39831,8 +28664,6 @@ func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*Placeme } } -// method id "dfareporting.placementStrategies.patch": - type PlacementStrategiesPatchCall struct { s *Service profileId int64 @@ -39842,8 +28673,8 @@ type PlacementStrategiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement strategy. This method supports -// patch semantics. +// Patch: Updates an existing placement strategy. This method supports patch +// semantics. // // - id: PlacementStrategy ID. // - profileId: User profile ID associated with this request. @@ -39856,23 +28687,21 @@ func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placements } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesPatchCall) Fields(s ...googleapi.Field) *PlacementStrategiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesPatchCall) Context(ctx context.Context) *PlacementStrategiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39881,18 +28710,12 @@ func (c *PlacementStrategiesPatchCall) Header() http.Header { } func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -39905,16 +28728,15 @@ func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.patch" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39922,17 +28744,17 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -39945,46 +28767,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementStrategies.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "PlacementStrategy ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.update": +} type PlacementStrategiesUpdateCall struct { s *Service @@ -40006,23 +28789,21 @@ func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesUpdateCall) Fields(s ...googleapi.Field) *PlacementStrategiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesUpdateCall) Context(ctx context.Context) *PlacementStrategiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40031,18 +28812,12 @@ func (c *PlacementStrategiesUpdateCall) Header() http.Header { } func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -40055,16 +28830,15 @@ func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.update" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40072,17 +28846,17 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -40095,38 +28869,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "PUT", - // "id": "dfareporting.placementStrategies.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.generatetags": +} type PlacementsGeneratetagsCall struct { s *Service @@ -40145,15 +28888,15 @@ func (r *PlacementsService) Generatetags(profileId int64) *PlacementsGeneratetag return c } -// CampaignId sets the optional parameter "campaignId": Generate -// placements belonging to this campaign. This is a required field. +// CampaignId sets the optional parameter "campaignId": Generate placements +// belonging to this campaign. This is a required field. func (c *PlacementsGeneratetagsCall) CampaignId(campaignId int64) *PlacementsGeneratetagsCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// PlacementIds sets the optional parameter "placementIds": Generate -// tags for these placements. +// PlacementIds sets the optional parameter "placementIds": Generate tags for +// these placements. func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *PlacementsGeneratetagsCall { var placementIds_ []string for _, v := range placementIds { @@ -40163,9 +28906,9 @@ func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *Placem return c } -// TagFormats sets the optional parameter "tagFormats": Tag formats to -// generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can -// only be generated for 1x1 placements. +// TagFormats sets the optional parameter "tagFormats": Tag formats to generate +// for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generated +// for 1x1 placements. // // Possible values: // @@ -40195,23 +28938,21 @@ func (c *PlacementsGeneratetagsCall) TagFormats(tagFormats ...string) *Placement } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGeneratetagsCall) Fields(s ...googleapi.Field) *PlacementsGeneratetagsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGeneratetagsCall) Context(ctx context.Context) *PlacementsGeneratetagsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGeneratetagsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40220,12 +28961,7 @@ func (c *PlacementsGeneratetagsCall) Header() http.Header { } func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -40239,16 +28975,15 @@ func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.generatetags" call. -// Exactly one of *PlacementsGenerateTagsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*PlacementsGenerateTagsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40256,17 +28991,17 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsGenerateTagsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -40279,98 +29014,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Generates tags for a placement.", - // "flatPath": "userprofiles/{profileId}/placements/generatetags", - // "httpMethod": "POST", - // "id": "dfareporting.placements.generatetags", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Generate placements belonging to this campaign. This is a required field.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Generate tags for these placements.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tagFormats": { - // "description": "Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.", - // "enum": [ - // "PLACEMENT_TAG_STANDARD", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_IFRAME_ILAYER", - // "PLACEMENT_TAG_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT", - // "PLACEMENT_TAG_CLICK_COMMANDS", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH", - // "PLACEMENT_TAG_TRACKING", - // "PLACEMENT_TAG_TRACKING_IFRAME", - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4", - // "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/generatetags", - // "response": { - // "$ref": "PlacementsGenerateTagsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.get": +} type PlacementsGetCall struct { s *Service @@ -40394,33 +29038,29 @@ func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGetCall) Fields(s ...googleapi.Field) *PlacementsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsGetCall) IfNoneMatch(entityTag string) *PlacementsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGetCall) Context(ctx context.Context) *PlacementsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40429,12 +29069,7 @@ func (c *PlacementsGetCall) Header() http.Header { } func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40452,16 +29087,14 @@ func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.get" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40469,17 +29102,17 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40492,43 +29125,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) return nil, err } return ret, nil - // { - // "description": "Gets one placement by ID.", - // "flatPath": "userprofiles/{profileId}/placements/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.placements.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/{id}", - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.insert": +} type PlacementsInsertCall struct { s *Service @@ -40550,23 +29147,21 @@ func (r *PlacementsService) Insert(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsInsertCall) Fields(s ...googleapi.Field) *PlacementsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsInsertCall) Context(ctx context.Context) *PlacementsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40575,18 +29170,12 @@ func (c *PlacementsInsertCall) Header() http.Header { } func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -40599,16 +29188,14 @@ func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.insert" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40616,17 +29203,17 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -40639,38 +29226,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Inserts a new placement.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "POST", - // "id": "dfareporting.placements.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.list": +} type PlacementsListCall struct { s *Service @@ -40691,8 +29247,8 @@ func (r *PlacementsService) List(profileId int64) *PlacementsListCall { return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placements that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placements that belong to these advertisers. func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -40703,8 +29259,8 @@ func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsLi } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementsListCall) Archived(archived bool) *PlacementsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c @@ -40721,13 +29277,12 @@ func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCa return c } -// Compatibilities sets the optional parameter "compatibilities": Select -// only placements that are associated with these compatibilities. -// DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop -// or on mobile devices for regular or interstitial ads respectively. -// APP and APP_INTERSTITIAL are for rendering in mobile apps. -// IN_STREAM_VIDEO refers to rendering in in-stream video ads developed -// with the VAST standard. +// Compatibilities sets the optional parameter "compatibilities": Select only +// placements that are associated with these compatibilities. DISPLAY and +// DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile +// devices for regular or interstitial ads respectively. APP and +// APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to +// rendering in in-stream video ads developed with the VAST standard. // // Possible values: // @@ -40742,9 +29297,8 @@ func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *Placeme return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placements that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placements that are associated with these content categories. func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -40754,9 +29308,8 @@ func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *Pl return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placements that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placements that are associated with these directory sites. func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -40766,8 +29319,8 @@ func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *Placem return c } -// GroupIds sets the optional parameter "groupIds": Select only -// placements that belong to these placement groups. +// GroupIds sets the optional parameter "groupIds": Select only placements that +// belong to these placement groups. func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { var groupIds_ []string for _, v := range groupIds { @@ -40777,8 +29330,8 @@ func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { return c } -// Ids sets the optional parameter "ids": Select only placements with -// these IDs. +// Ids sets the optional parameter "ids": Select only placements with these +// IDs. func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { var ids_ []string for _, v := range ids { @@ -40788,16 +29341,16 @@ func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MaxEndDate(maxEndDate string) *PlacementsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementsListCall) MaxResults(maxResults int64) *PlacementsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -40811,17 +29364,17 @@ func (c *PlacementsListCall) MaxStartDate(maxStartDate string) *PlacementsListCa return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinEndDate(minEndDate string) *PlacementsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinStartDate(minStartDate string) *PlacementsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -40834,8 +29387,8 @@ func (c *PlacementsListCall) PageToken(pageToken string) *PlacementsListCall { return c } -// PaymentSource sets the optional parameter "paymentSource": Select -// only placements with this payment source. +// PaymentSource sets the optional parameter "paymentSource": Select only +// placements with this payment source. // // Possible values: // @@ -40846,9 +29399,8 @@ func (c *PlacementsListCall) PaymentSource(paymentSource string) *PlacementsList return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placements that are associated -// with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placements that are associated with these placement strategies. func (c *PlacementsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -40874,21 +29426,21 @@ func (c *PlacementsListCall) PricingTypes(pricingTypes ...string) *PlacementsLis return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placements by name or ID. Wildcards (*) are allowed. -// For example, "placement*2015" will return placements with names like -// "placement June 2015", "placement May 2015", or simply "placements -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "placement" will match placements with name "my placement", -// "placement 2015", or simply "placement" . +// SearchString sets the optional parameter "searchString": Allows searching +// for placements by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placements with names like "placement June +// 2015", "placement May 2015", or simply "placements 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "placement" will match +// placements with name "my placement", "placement 2015", or simply "placement" +// . func (c *PlacementsListCall) SearchString(searchString string) *PlacementsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placements -// that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placements that +// are associated with these sites. func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { var siteIds_ []string for _, v := range siteIds { @@ -40898,8 +29450,8 @@ func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { return c } -// SizeIds sets the optional parameter "sizeIds": Select only placements -// that are associated with these sizes. +// SizeIds sets the optional parameter "sizeIds": Select only placements that +// are associated with these sizes. func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -40909,8 +29461,8 @@ func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -40921,8 +29473,7 @@ func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -40934,33 +29485,29 @@ func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsListCall) Fields(s ...googleapi.Field) *PlacementsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsListCall) IfNoneMatch(entityTag string) *PlacementsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsListCall) Context(ctx context.Context) *PlacementsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40969,12 +29516,7 @@ func (c *PlacementsListCall) Header() http.Header { } func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40991,16 +29533,15 @@ func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.list" call. -// Exactly one of *PlacementsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41008,17 +29549,17 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41031,224 +29572,6 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "GET", - // "id": "dfareporting.placements.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placements that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placements that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibilities": { - // "description": "Select only placements that are associated with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.", - // "enum": [ - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "APP", - // "APP_INTERSTITIAL", - // "IN_STREAM_VIDEO", - // "IN_STREAM_AUDIO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placements that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placements that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupIds": { - // "description": "Select only placements that belong to these placement groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placements with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "paymentSource": { - // "description": "Select only placements with this payment source.", - // "enum": [ - // "PLACEMENT_AGENCY_PAID", - // "PLACEMENT_PUBLISHER_PAID" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placements that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placements with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_CPM_ACTIVEVIEW" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placements with names like \"placement June 2015\", \"placement May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placement\" will match placements with name \"my placement\", \"placement 2015\", or simply \"placement\" .", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placements that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only placements that are associated with these sizes.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "response": { - // "$ref": "PlacementsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -41256,7 +29579,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // The provided context supersedes any context provided to the Context method. func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -41272,8 +29595,6 @@ func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListRe } } -// method id "dfareporting.placements.patch": - type PlacementsPatchCall struct { s *Service profileId int64 @@ -41283,8 +29604,7 @@ type PlacementsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement. This method supports patch -// semantics. +// Patch: Updates an existing placement. This method supports patch semantics. // // - id: Placement ID. // - profileId: User profile ID associated with this request. @@ -41297,23 +29617,21 @@ func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsPatchCall) Fields(s ...googleapi.Field) *PlacementsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsPatchCall) Context(ctx context.Context) *PlacementsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41322,18 +29640,12 @@ func (c *PlacementsPatchCall) Header() http.Header { } func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -41346,16 +29658,14 @@ func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.patch" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41363,17 +29673,17 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -41386,46 +29696,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro return nil, err } return ret, nil - // { - // "description": "Updates an existing placement. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "PATCH", - // "id": "dfareporting.placements.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.update": +} type PlacementsUpdateCall struct { s *Service @@ -41447,23 +29718,21 @@ func (r *PlacementsService) Update(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsUpdateCall) Fields(s ...googleapi.Field) *PlacementsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsUpdateCall) Context(ctx context.Context) *PlacementsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41472,18 +29741,12 @@ func (c *PlacementsUpdateCall) Header() http.Header { } func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -41496,16 +29759,14 @@ func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.update" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41513,17 +29774,17 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -41536,38 +29797,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Updates an existing placement.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "PUT", - // "id": "dfareporting.placements.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.get": +} type PlatformTypesGetCall struct { s *Service @@ -41591,33 +29821,29 @@ func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesGetCall) Fields(s ...googleapi.Field) *PlatformTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesGetCall) IfNoneMatch(entityTag string) *PlatformTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesGetCall) Context(ctx context.Context) *PlatformTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41626,12 +29852,7 @@ func (c *PlatformTypesGetCall) Header() http.Header { } func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41649,16 +29870,14 @@ func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.get" call. -// Exactly one of *PlatformType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlatformType.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlatformType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41666,17 +29885,17 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformType{ ServerResponse: googleapi.ServerResponse{ @@ -41689,43 +29908,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, return nil, err } return ret, nil - // { - // "description": "Gets one platform type by ID.", - // "flatPath": "userprofiles/{profileId}/platformTypes/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Platform type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes/{id}", - // "response": { - // "$ref": "PlatformType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.list": +} type PlatformTypesListCall struct { s *Service @@ -41746,33 +29929,29 @@ func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesListCall) Fields(s ...googleapi.Field) *PlatformTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesListCall) IfNoneMatch(entityTag string) *PlatformTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesListCall) Context(ctx context.Context) *PlatformTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41781,12 +29960,7 @@ func (c *PlatformTypesListCall) Header() http.Header { } func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41803,16 +29977,15 @@ func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.list" call. -// Exactly one of *PlatformTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlatformTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlatformTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41820,17 +29993,17 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41843,35 +30016,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes return nil, err } return ret, nil - // { - // "description": "Retrieves a list of platform types.", - // "flatPath": "userprofiles/{profileId}/platformTypes", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes", - // "response": { - // "$ref": "PlatformTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.get": +} type PostalCodesGetCall struct { s *Service @@ -41895,33 +30040,29 @@ func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesGetCall) Fields(s ...googleapi.Field) *PostalCodesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesGetCall) IfNoneMatch(entityTag string) *PostalCodesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesGetCall) Context(ctx context.Context) *PostalCodesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41930,12 +30071,7 @@ func (c *PostalCodesGetCall) Header() http.Header { } func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41953,16 +30089,14 @@ func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "code": c.code, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.get" call. -// Exactly one of *PostalCode or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PostalCode.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PostalCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41970,17 +30104,17 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCode{ ServerResponse: googleapi.ServerResponse{ @@ -41993,42 +30127,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro return nil, err } return ret, nil - // { - // "description": "Gets one postal code by ID.", - // "flatPath": "userprofiles/{profileId}/postalCodes/{code}", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.get", - // "parameterOrder": [ - // "profileId", - // "code" - // ], - // "parameters": { - // "code": { - // "description": "Postal code ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes/{code}", - // "response": { - // "$ref": "PostalCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.list": +} type PostalCodesListCall struct { s *Service @@ -42049,33 +30148,29 @@ func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesListCall) Fields(s ...googleapi.Field) *PostalCodesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesListCall) IfNoneMatch(entityTag string) *PostalCodesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesListCall) Context(ctx context.Context) *PostalCodesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42084,12 +30179,7 @@ func (c *PostalCodesListCall) Header() http.Header { } func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42106,16 +30196,15 @@ func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.list" call. -// Exactly one of *PostalCodesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *PostalCodesListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42123,17 +30212,17 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCodesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42146,35 +30235,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of postal codes.", - // "flatPath": "userprofiles/{profileId}/postalCodes", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes", - // "response": { - // "$ref": "PostalCodesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.get": +} type ProjectsGetCall struct { s *Service @@ -42198,33 +30259,29 @@ func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42233,12 +30290,7 @@ func (c *ProjectsGetCall) Header() http.Header { } func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42256,16 +30308,14 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.get" call. -// Exactly one of *Project or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Project.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Project.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42273,17 +30323,17 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Project{ ServerResponse: googleapi.ServerResponse{ @@ -42296,43 +30346,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return nil, err } return ret, nil - // { - // "description": "Gets one project by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.projects.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Project ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{id}", - // "response": { - // "$ref": "Project" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.list": +} type ProjectsListCall struct { s *Service @@ -42343,8 +30357,8 @@ type ProjectsListCall struct { header_ http.Header } -// List: Retrieves a list of projects, possibly filtered. This method -// supports paging . +// List: Retrieves a list of projects, possibly filtered. This method supports +// paging . // // - profileId: User profile ID associated with this request. func (r *ProjectsService) List(profileId int64) *ProjectsListCall { @@ -42353,8 +30367,8 @@ func (r *ProjectsService) List(profileId int64) *ProjectsListCall { return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only projects with these advertiser IDs. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// projects with these advertiser IDs. func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -42364,8 +30378,7 @@ func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCa return c } -// Ids sets the optional parameter "ids": Select only projects with -// these IDs. +// Ids sets the optional parameter "ids": Select only projects with these IDs. func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { var ids_ []string for _, v := range ids { @@ -42375,8 +30388,8 @@ func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ProjectsListCall) MaxResults(maxResults int64) *ProjectsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -42389,21 +30402,20 @@ func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for projects by name or ID. Wildcards (*) are allowed. For -// example, "project*2015" will return projects with names like "project -// June 2015", "project April 2015", or simply "project 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "project" will -// match projects with name "my project", "project 2015", or simply -// "project". +// SearchString sets the optional parameter "searchString": Allows searching +// for projects by name or ID. Wildcards (*) are allowed. For example, +// "project*2015" will return projects with names like "project June 2015", +// "project April 2015", or simply "project 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "project" will match projects with name "my +// project", "project 2015", or simply "project". func (c *ProjectsListCall) SearchString(searchString string) *ProjectsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -42414,8 +30426,7 @@ func (c *ProjectsListCall) SortField(sortField string) *ProjectsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -42427,33 +30438,29 @@ func (c *ProjectsListCall) SortOrder(sortOrder string) *ProjectsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsListCall) Fields(s ...googleapi.Field) *ProjectsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsListCall) Context(ctx context.Context) *ProjectsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42462,12 +30469,7 @@ func (c *ProjectsListCall) Header() http.Header { } func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42484,16 +30486,15 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.list" call. -// Exactly one of *ProjectsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ProjectsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProjectsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42501,17 +30502,17 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProjectsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42524,93 +30525,6 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of projects, possibly filtered. This method supports paging .", - // "flatPath": "userprofiles/{profileId}/projects", - // "httpMethod": "GET", - // "id": "dfareporting.projects.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only projects with these advertiser IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only projects with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, \"project*2015\" will return projects with names like \"project June 2015\", \"project April 2015\", or simply \"project 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"project\" will match projects with name \"my project\", \"project 2015\", or simply \"project\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects", - // "response": { - // "$ref": "ProjectsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -42618,7 +30532,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // The provided context supersedes any context provided to the Context method. func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -42634,8 +30548,6 @@ func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListRespon } } -// method id "dfareporting.regions.list": - type RegionsListCall struct { s *Service profileId int64 @@ -42655,33 +30567,29 @@ func (r *RegionsService) List(profileId int64) *RegionsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RegionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42690,12 +30598,7 @@ func (c *RegionsListCall) Header() http.Header { } func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42712,16 +30615,15 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.regions.list" call. -// Exactly one of *RegionsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RegionsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RegionsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42729,17 +30631,17 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RegionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42752,35 +30654,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse return nil, err } return ret, nil - // { - // "description": "Retrieves a list of regions.", - // "flatPath": "userprofiles/{profileId}/regions", - // "httpMethod": "GET", - // "id": "dfareporting.regions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/regions", - // "response": { - // "$ref": "RegionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.get": +} type RemarketingListSharesGetCall struct { s *Service @@ -42804,33 +30678,29 @@ func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId in } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesGetCall) Fields(s ...googleapi.Field) *RemarketingListSharesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListSharesGetCall) IfNoneMatch(entityTag string) *RemarketingListSharesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesGetCall) Context(ctx context.Context) *RemarketingListSharesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42839,12 +30709,7 @@ func (c *RemarketingListSharesGetCall) Header() http.Header { } func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42862,16 +30727,15 @@ func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "remarketingListId": strconv.FormatInt(c.remarketingListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.get" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42879,17 +30743,17 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -42902,43 +30766,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list share by remarketing list ID.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingListShares.get", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.patch": +} type RemarketingListSharesPatchCall struct { s *Service @@ -42949,8 +30777,8 @@ type RemarketingListSharesPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list share. This method -// supports patch semantics. +// Patch: Updates an existing remarketing list share. This method supports +// patch semantics. // // - id: RemarketingList ID. // - profileId: User profile ID associated with this request. @@ -42963,23 +30791,21 @@ func (r *RemarketingListSharesService) Patch(profileId int64, id int64, remarket } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesPatchCall) Fields(s ...googleapi.Field) *RemarketingListSharesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesPatchCall) Context(ctx context.Context) *RemarketingListSharesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42988,18 +30814,12 @@ func (c *RemarketingListSharesPatchCall) Header() http.Header { } func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -43012,16 +30832,15 @@ func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.patch" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43029,17 +30848,17 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -43052,46 +30871,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingListShares.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "RemarketingList ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.update": +} type RemarketingListSharesUpdateCall struct { s *Service @@ -43113,23 +30893,21 @@ func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistsh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesUpdateCall) Fields(s ...googleapi.Field) *RemarketingListSharesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesUpdateCall) Context(ctx context.Context) *RemarketingListSharesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43138,18 +30916,12 @@ func (c *RemarketingListSharesUpdateCall) Header() http.Header { } func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -43162,16 +30934,15 @@ func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.update" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43179,17 +30950,17 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -43202,38 +30973,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingListShares.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.get": +} type RemarketingListsGetCall struct { s *Service @@ -43257,33 +30997,29 @@ func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsGetCall) Fields(s ...googleapi.Field) *RemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsGetCall) IfNoneMatch(entityTag string) *RemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsGetCall) Context(ctx context.Context) *RemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43292,12 +31028,7 @@ func (c *RemarketingListsGetCall) Header() http.Header { } func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43315,16 +31046,15 @@ func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.get" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43332,17 +31062,17 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43355,43 +31085,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "flatPath": "userprofiles/{profileId}/remarketingLists/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists/{id}", - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.insert": +} type RemarketingListsInsertCall struct { s *Service @@ -43413,23 +31107,21 @@ func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsInsertCall) Fields(s ...googleapi.Field) *RemarketingListsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsInsertCall) Context(ctx context.Context) *RemarketingListsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43438,18 +31130,12 @@ func (c *RemarketingListsInsertCall) Header() http.Header { } func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -43462,16 +31148,15 @@ func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.insert" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43479,17 +31164,17 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43502,38 +31187,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Inserts a new remarketing list.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "POST", - // "id": "dfareporting.remarketingLists.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.list": +} type RemarketingListsListCall struct { s *Service @@ -43544,12 +31198,11 @@ type RemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of remarketing lists, possibly filtered. This -// method supports paging. +// List: Retrieves a list of remarketing lists, possibly filtered. This method +// supports paging. // -// - advertiserId: Select only remarketing lists owned by this -// advertiser. -// - profileId: User profile ID associated with this request. +// - advertiserId: Select only remarketing lists owned by this advertiser. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *RemarketingListsListCall { c := &RemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -43557,36 +31210,35 @@ func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *Rem return c } -// Active sets the optional parameter "active": Select only active or -// only inactive remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive remarketing lists. func (c *RemarketingListsListCall) Active(active bool) *RemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Select only remarketing lists that have this -// floodlight activity ID. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Select only remarketing lists that have this floodlight activity ID. func (c *RemarketingListsListCall) FloodlightActivityId(floodlightActivityId int64) *RemarketingListsListCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *RemarketingListsListCall) MaxResults(maxResults int64) *RemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *RemarketingListsListCall) Name(name string) *RemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -43599,8 +31251,8 @@ func (c *RemarketingListsListCall) PageToken(pageToken string) *RemarketingLists return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -43611,8 +31263,7 @@ func (c *RemarketingListsListCall) SortField(sortField string) *RemarketingLists return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -43624,33 +31275,29 @@ func (c *RemarketingListsListCall) SortOrder(sortOrder string) *RemarketingLists } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsListCall) Fields(s ...googleapi.Field) *RemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsListCall) IfNoneMatch(entityTag string) *RemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsListCall) Context(ctx context.Context) *RemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43659,12 +31306,7 @@ func (c *RemarketingListsListCall) Header() http.Header { } func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43681,16 +31323,15 @@ func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.list" call. -// Exactly one of *RemarketingListsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *RemarketingListsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*RemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43698,17 +31339,17 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -43721,98 +31362,6 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only remarketing lists owned by this advertiser.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "floodlightActivityId": { - // "description": "Select only remarketing lists that have this floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "response": { - // "$ref": "RemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -43820,7 +31369,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // The provided context supersedes any context provided to the Context method. func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*RemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -43836,8 +31385,6 @@ func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*Remarketin } } -// method id "dfareporting.remarketingLists.patch": - type RemarketingListsPatchCall struct { s *Service profileId int64 @@ -43847,8 +31394,8 @@ type RemarketingListsPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list. This method supports -// patch semantics. +// Patch: Updates an existing remarketing list. This method supports patch +// semantics. // // - id: RemarketingList ID. // - profileId: User profile ID associated with this request. @@ -43861,23 +31408,21 @@ func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketingli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsPatchCall) Fields(s ...googleapi.Field) *RemarketingListsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsPatchCall) Context(ctx context.Context) *RemarketingListsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43886,18 +31431,12 @@ func (c *RemarketingListsPatchCall) Header() http.Header { } func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -43910,16 +31449,15 @@ func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.patch" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43927,17 +31465,17 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -43950,46 +31488,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingLists.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "RemarketingList ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.update": +} type RemarketingListsUpdateCall struct { s *Service @@ -44011,23 +31510,21 @@ func (r *RemarketingListsService) Update(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsUpdateCall) Fields(s ...googleapi.Field) *RemarketingListsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsUpdateCall) Context(ctx context.Context) *RemarketingListsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44036,18 +31533,12 @@ func (c *RemarketingListsUpdateCall) Header() http.Header { } func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -44060,16 +31551,15 @@ func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.update" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44077,17 +31567,17 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -44100,38 +31590,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingLists.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.reports.delete": +} type ReportsDeleteCall struct { s *Service @@ -44154,23 +31613,21 @@ func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsDeleteCall) Fields(s ...googleapi.Field) *ReportsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsDeleteCall) Context(ctx context.Context) *ReportsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44179,12 +31636,7 @@ func (c *ReportsDeleteCall) Header() http.Header { } func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -44199,7 +31651,7 @@ func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.delete" call. @@ -44211,43 +31663,10 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a report by its ID.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "DELETE", - // "id": "dfareporting.reports.delete", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.get": +} type ReportsGetCall struct { s *Service @@ -44271,33 +31690,29 @@ func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsGetCall) Fields(s ...googleapi.Field) *ReportsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsGetCall) IfNoneMatch(entityTag string) *ReportsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsGetCall) Context(ctx context.Context) *ReportsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44306,12 +31721,7 @@ func (c *ReportsGetCall) Header() http.Header { } func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44329,16 +31739,14 @@ func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.get" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44346,17 +31754,17 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44369,43 +31777,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report by its ID.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "GET", - // "id": "dfareporting.reports.get", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.insert": +} type ReportsInsertCall struct { s *Service @@ -44427,23 +31799,21 @@ func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsInsertCall) Fields(s ...googleapi.Field) *ReportsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsInsertCall) Context(ctx context.Context) *ReportsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44452,18 +31822,12 @@ func (c *ReportsInsertCall) Header() http.Header { } func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports") @@ -44476,16 +31840,14 @@ func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.insert" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44493,17 +31855,17 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44516,38 +31878,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Creates a report.", - // "flatPath": "userprofiles/{profileId}/reports", - // "httpMethod": "POST", - // "id": "dfareporting.reports.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.list": +} type ReportsListCall struct { s *Service @@ -44567,8 +31898,8 @@ func (r *ReportsService) List(profileId int64) *ReportsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsListCall) MaxResults(maxResults int64) *ReportsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -44581,8 +31912,8 @@ func (c *ReportsListCall) PageToken(pageToken string) *ReportsListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -44593,8 +31924,8 @@ func (c *ReportsListCall) Scope(scope string) *ReportsListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -44606,8 +31937,7 @@ func (c *ReportsListCall) SortField(sortField string) *ReportsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -44619,33 +31949,29 @@ func (c *ReportsListCall) SortOrder(sortOrder string) *ReportsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsListCall) Fields(s ...googleapi.Field) *ReportsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsListCall) IfNoneMatch(entityTag string) *ReportsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsListCall) Context(ctx context.Context) *ReportsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44654,12 +31980,7 @@ func (c *ReportsListCall) Header() http.Header { } func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44676,16 +31997,14 @@ func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.list" call. -// Exactly one of *ReportList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ReportList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReportList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44693,17 +32012,17 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ReportList{ ServerResponse: googleapi.ServerResponse{ @@ -44716,90 +32035,6 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) return nil, err } return ret, nil - // { - // "description": "Retrieves list of reports.", - // "flatPath": "userprofiles/{profileId}/reports", - // "httpMethod": "GET", - // "id": "dfareporting.reports.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE" - // ], - // "enumDescriptions": [ - // "All reports in account.", - // "My reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME", - // "NAME" - // ], - // "enumDescriptions": [ - // "Sort by report ID.", - // "Sort by 'lastModifiedTime' field.", - // "Sort by name of reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "response": { - // "$ref": "ReportList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -44807,7 +32042,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // The provided context supersedes any context provided to the Context method. func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -44823,8 +32058,6 @@ func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) } } -// method id "dfareporting.reports.patch": - type ReportsPatchCall struct { s *Service profileId int64 @@ -44835,8 +32068,7 @@ type ReportsPatchCall struct { header_ http.Header } -// Patch: Updates an existing report. This method supports patch -// semantics. +// Patch: Updates an existing report. This method supports patch semantics. // // - profileId: The DFA user profile ID. // - reportId: The ID of the report. @@ -44849,23 +32081,21 @@ func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsPatchCall) Fields(s ...googleapi.Field) *ReportsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsPatchCall) Context(ctx context.Context) *ReportsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44874,18 +32104,12 @@ func (c *ReportsPatchCall) Header() http.Header { } func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -44899,16 +32123,14 @@ func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.patch" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44916,17 +32138,17 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -44939,46 +32161,7 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing report. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "PATCH", - // "id": "dfareporting.reports.patch", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.run": +} type ReportsRunCall struct { s *Service @@ -45000,31 +32183,29 @@ func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { return c } -// Synchronous sets the optional parameter "synchronous": If set and -// true, tries to run the report synchronously. +// Synchronous sets the optional parameter "synchronous": If set and true, +// tries to run the report synchronously. func (c *ReportsRunCall) Synchronous(synchronous bool) *ReportsRunCall { c.urlParams_.Set("synchronous", fmt.Sprint(synchronous)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsRunCall) Fields(s ...googleapi.Field) *ReportsRunCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsRunCall) Context(ctx context.Context) *ReportsRunCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsRunCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45033,12 +32214,7 @@ func (c *ReportsRunCall) Header() http.Header { } func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -45053,16 +32229,14 @@ func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.run" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45070,17 +32244,17 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -45093,49 +32267,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Runs a report.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}/run", - // "httpMethod": "POST", - // "id": "dfareporting.reports.run", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "synchronous": { - // "default": "false", - // "description": "If set and true, tries to run the report synchronously.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/run", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.update": +} type ReportsUpdateCall struct { s *Service @@ -45160,23 +32292,21 @@ func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsUpdateCall) Fields(s ...googleapi.Field) *ReportsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsUpdateCall) Context(ctx context.Context) *ReportsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45185,18 +32315,12 @@ func (c *ReportsUpdateCall) Header() http.Header { } func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -45210,16 +32334,14 @@ func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.update" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45227,17 +32349,17 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -45250,46 +32372,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates a report.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "PUT", - // "id": "dfareporting.reports.update", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.compatibleFields.query": +} type ReportsCompatibleFieldsQueryCall struct { s *Service @@ -45301,8 +32384,8 @@ type ReportsCompatibleFieldsQueryCall struct { } // Query: Returns the fields that are compatible to be selected in the -// respective sections of a report criteria, given the fields already -// selected in the input report and user permissions. +// respective sections of a report criteria, given the fields already selected +// in the input report and user permissions. // // - profileId: The Campaign Manager 360 user profile ID. func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) *ReportsCompatibleFieldsQueryCall { @@ -45313,23 +32396,21 @@ func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsCompatibleFieldsQueryCall) Fields(s ...googleapi.Field) *ReportsCompatibleFieldsQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsCompatibleFieldsQueryCall) Context(ctx context.Context) *ReportsCompatibleFieldsQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45338,18 +32419,12 @@ func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { } func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/compatiblefields/query") @@ -45362,16 +32437,15 @@ func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.compatibleFields.query" call. -// Exactly one of *CompatibleFields or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CompatibleFields.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CompatibleFields.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*CompatibleFields, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45379,17 +32453,17 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CompatibleFields{ ServerResponse: googleapi.ServerResponse{ @@ -45402,38 +32476,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co return nil, err } return ret, nil - // { - // "description": "Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.", - // "flatPath": "userprofiles/{profileId}/reports/compatiblefields/query", - // "httpMethod": "POST", - // "id": "dfareporting.reports.compatibleFields.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/compatiblefields/query", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "CompatibleFields" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.files.get": +} type ReportsFilesGetCall struct { s *Service @@ -45446,8 +32489,8 @@ type ReportsFilesGetCall struct { header_ http.Header } -// Get: Retrieves a report file by its report ID and file ID. This -// method supports media download. +// Get: Retrieves a report file by its report ID and file ID. This method +// supports media download. // // - fileId: The ID of the report file. // - profileId: The Campaign Manager 360 user profile ID. @@ -45461,33 +32504,29 @@ func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesGetCall) Fields(s ...googleapi.Field) *ReportsFilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesGetCall) IfNoneMatch(entityTag string) *ReportsFilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ReportsFilesGetCall) Context(ctx context.Context) *ReportsFilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45496,12 +32535,7 @@ func (c *ReportsFilesGetCall) Header() http.Header { } func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45520,7 +32554,7 @@ func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -45534,18 +32568,16 @@ func (c *ReportsFilesGetCall) Download(opts ...googleapi.CallOption) (*http.Resp } if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.reports.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45553,17 +32585,17 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -45576,52 +32608,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.get", - // "parameterOrder": [ - // "profileId", - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.reports.files.list": +} type ReportsFilesListCall struct { s *Service @@ -45644,8 +32631,8 @@ func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFile return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsFilesListCall) MaxResults(maxResults int64) *ReportsFilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -45658,8 +32645,8 @@ func (c *ReportsFilesListCall) PageToken(pageToken string) *ReportsFilesListCall return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -45670,8 +32657,7 @@ func (c *ReportsFilesListCall) SortField(sortField string) *ReportsFilesListCall return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -45683,33 +32669,29 @@ func (c *ReportsFilesListCall) SortOrder(sortOrder string) *ReportsFilesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesListCall) Fields(s ...googleapi.Field) *ReportsFilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesListCall) IfNoneMatch(entityTag string) *ReportsFilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsFilesListCall) Context(ctx context.Context) *ReportsFilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45718,12 +32700,7 @@ func (c *ReportsFilesListCall) Header() http.Header { } func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45741,16 +32718,14 @@ func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45758,17 +32733,17 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -45781,82 +32756,6 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro return nil, err } return ret, nil - // { - // "description": "Lists files for a report.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}/files", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.list", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the parent report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -45864,7 +32763,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // The provided context supersedes any context provided to the Context method. func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -45880,8 +32779,6 @@ func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) erro } } -// method id "dfareporting.sites.get": - type SitesGetCall struct { s *Service profileId int64 @@ -45904,33 +32801,29 @@ func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesGetCall) Context(ctx context.Context) *SitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45939,12 +32832,7 @@ func (c *SitesGetCall) Header() http.Header { } func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45962,16 +32850,14 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.get" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45979,17 +32865,17 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46002,43 +32888,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Gets one site by ID.", - // "flatPath": "userprofiles/{profileId}/sites/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.sites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites/{id}", - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.insert": +} type SitesInsertCall struct { s *Service @@ -46060,23 +32910,21 @@ func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesInsertCall) Fields(s ...googleapi.Field) *SitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesInsertCall) Context(ctx context.Context) *SitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46085,18 +32933,12 @@ func (c *SitesInsertCall) Header() http.Header { } func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -46109,16 +32951,14 @@ func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.insert" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46126,17 +32966,17 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46149,38 +32989,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new site.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "POST", - // "id": "dfareporting.sites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.list": +} type SitesListCall struct { s *Service @@ -46191,8 +33000,8 @@ type SitesListCall struct { header_ http.Header } -// List: Retrieves a list of sites, possibly filtered. This method -// supports paging. +// List: Retrieves a list of sites, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. func (r *SitesService) List(profileId int64) *SitesListCall { @@ -46202,45 +33011,44 @@ func (r *SitesService) List(profileId int64) *SitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only sites that accept -// publisher paid placements. +// "acceptsPublisherPaidPlacements": Select only sites that accept publisher +// paid placements. func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// AdWordsSite sets the optional parameter "adWordsSite": Select only -// AdWords sites. +// AdWordsSite sets the optional parameter "adWordsSite": Select only AdWords +// sites. func (c *SitesListCall) AdWordsSite(adWordsSite bool) *SitesListCall { c.urlParams_.Set("adWordsSite", fmt.Sprint(adWordsSite)) return c } -// Approved sets the optional parameter "approved": Select only approved -// sites. +// Approved sets the optional parameter "approved": Select only approved sites. func (c *SitesListCall) Approved(approved bool) *SitesListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// sites with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only sites +// with these campaign IDs. func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -46250,8 +33058,8 @@ func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only sites with these directory site IDs. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// sites with these directory site IDs. func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -46261,8 +33069,7 @@ func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCa return c } -// Ids sets the optional parameter "ids": Select only sites with these -// IDs. +// Ids sets the optional parameter "ids": Select only sites with these IDs. func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { var ids_ []string for _, v := range ids { @@ -46272,8 +33079,8 @@ func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SitesListCall) MaxResults(maxResults int64) *SitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -46286,20 +33093,20 @@ func (c *SitesListCall) PageToken(pageToken string) *SitesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or keyName. Wildcards (*) are -// allowed. For example, "site*2015" will return objects with names like -// "site June 2015", "site April 2015", or simply "site 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "site" will -// match objects with name "my site", "site 2015", or simply "site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or keyName. Wildcards (*) are allowed. For example, +// "site*2015" will return objects with names like "site June 2015", "site +// April 2015", or simply "site 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "site" will match objects with name "my site", "site 2015", +// or simply "site". func (c *SitesListCall) SearchString(searchString string) *SitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -46310,8 +33117,7 @@ func (c *SitesListCall) SortField(sortField string) *SitesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -46322,48 +33128,44 @@ func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// sites with this subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only sites +// with this subaccount ID. func (c *SitesListCall) SubaccountId(subaccountId int64) *SitesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } -// UnmappedSite sets the optional parameter "unmappedSite": Select only -// sites that have not been mapped to a directory site. +// UnmappedSite sets the optional parameter "unmappedSite": Select only sites +// that have not been mapped to a directory site. func (c *SitesListCall) UnmappedSite(unmappedSite bool) *SitesListCall { c.urlParams_.Set("unmappedSite", fmt.Sprint(unmappedSite)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesListCall) Fields(s ...googleapi.Field) *SitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesListCall) IfNoneMatch(entityTag string) *SitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesListCall) Context(ctx context.Context) *SitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46372,12 +33174,7 @@ func (c *SitesListCall) Header() http.Header { } func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46394,16 +33191,15 @@ func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.list" call. -// Exactly one of *SitesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SitesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SitesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46411,17 +33207,17 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -46434,136 +33230,6 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "GET", - // "id": "dfareporting.sites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only sites that accept publisher paid placements.", - // "location": "query", - // "type": "boolean" - // }, - // "adWordsSite": { - // "description": "Select only AdWords sites.", - // "location": "query", - // "type": "boolean" - // }, - // "approved": { - // "description": "Select only approved sites.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only sites with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only sites with these directory site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, \"site*2015\" will return objects with names like \"site June 2015\", \"site April 2015\", or simply \"site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"site\" will match objects with name \"my site\", \"site 2015\", or simply \"site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only sites with this subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "unmappedSite": { - // "description": "Select only sites that have not been mapped to a directory site.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "response": { - // "$ref": "SitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -46571,7 +33237,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // The provided context supersedes any context provided to the Context method. func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -46587,8 +33253,6 @@ func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) er } } -// method id "dfareporting.sites.patch": - type SitesPatchCall struct { s *Service profileId int64 @@ -46598,8 +33262,7 @@ type SitesPatchCall struct { header_ http.Header } -// Patch: Updates an existing site. This method supports patch -// semantics. +// Patch: Updates an existing site. This method supports patch semantics. // // - id: Site ID. // - profileId: User profile ID associated with this request. @@ -46612,23 +33275,21 @@ func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesPatchCall) Fields(s ...googleapi.Field) *SitesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesPatchCall) Context(ctx context.Context) *SitesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46637,18 +33298,12 @@ func (c *SitesPatchCall) Header() http.Header { } func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -46661,16 +33316,14 @@ func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.patch" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46678,17 +33331,17 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46701,46 +33354,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "PATCH", - // "id": "dfareporting.sites.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.update": +} type SitesUpdateCall struct { s *Service @@ -46762,23 +33376,21 @@ func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesUpdateCall) Fields(s ...googleapi.Field) *SitesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesUpdateCall) Context(ctx context.Context) *SitesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46787,18 +33399,12 @@ func (c *SitesUpdateCall) Header() http.Header { } func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -46811,16 +33417,14 @@ func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.update" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46828,17 +33432,17 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -46851,38 +33455,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "PUT", - // "id": "dfareporting.sites.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.get": +} type SizesGetCall struct { s *Service @@ -46906,33 +33479,29 @@ func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesGetCall) Fields(s ...googleapi.Field) *SizesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesGetCall) IfNoneMatch(entityTag string) *SizesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesGetCall) Context(ctx context.Context) *SizesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46941,12 +33510,7 @@ func (c *SizesGetCall) Header() http.Header { } func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46964,16 +33528,14 @@ func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.get" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46981,17 +33543,17 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -47004,43 +33566,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Gets one size by ID.", - // "flatPath": "userprofiles/{profileId}/sizes/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Size ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes/{id}", - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.insert": +} type SizesInsertCall struct { s *Service @@ -47062,23 +33588,21 @@ func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesInsertCall) Fields(s ...googleapi.Field) *SizesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesInsertCall) Context(ctx context.Context) *SizesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47087,18 +33611,12 @@ func (c *SizesInsertCall) Header() http.Header { } func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.size) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes") @@ -47111,16 +33629,14 @@ func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.insert" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47128,17 +33644,17 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -47151,38 +33667,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new size.", - // "flatPath": "userprofiles/{profileId}/sizes", - // "httpMethod": "POST", - // "id": "dfareporting.sizes.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "request": { - // "$ref": "Size" - // }, - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.list": +} type SizesListCall struct { s *Service @@ -47193,10 +33678,10 @@ type SizesListCall struct { header_ http.Header } -// List: Retrieves a list of sizes, possibly filtered. Retrieved sizes -// are globally unique and may include values not currently in use by -// your account. Due to this, the list of sizes returned by this method -// may differ from the list seen in the Trafficking UI. +// List: Retrieves a list of sizes, possibly filtered. Retrieved sizes are +// globally unique and may include values not currently in use by your account. +// Due to this, the list of sizes returned by this method may differ from the +// list seen in the Trafficking UI. // // - profileId: User profile ID associated with this request. func (r *SizesService) List(profileId int64) *SizesListCall { @@ -47205,22 +33690,21 @@ func (r *SizesService) List(profileId int64) *SizesListCall { return c } -// Height sets the optional parameter "height": Select only sizes with -// this height. +// Height sets the optional parameter "height": Select only sizes with this +// height. func (c *SizesListCall) Height(height int64) *SizesListCall { c.urlParams_.Set("height", fmt.Sprint(height)) return c } -// IabStandard sets the optional parameter "iabStandard": Select only -// IAB standard sizes. +// IabStandard sets the optional parameter "iabStandard": Select only IAB +// standard sizes. func (c *SizesListCall) IabStandard(iabStandard bool) *SizesListCall { c.urlParams_.Set("iabStandard", fmt.Sprint(iabStandard)) return c } -// Ids sets the optional parameter "ids": Select only sizes with these -// IDs. +// Ids sets the optional parameter "ids": Select only sizes with these IDs. func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { var ids_ []string for _, v := range ids { @@ -47230,41 +33714,37 @@ func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { return c } -// Width sets the optional parameter "width": Select only sizes with -// this width. +// Width sets the optional parameter "width": Select only sizes with this +// width. func (c *SizesListCall) Width(width int64) *SizesListCall { c.urlParams_.Set("width", fmt.Sprint(width)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesListCall) Fields(s ...googleapi.Field) *SizesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesListCall) IfNoneMatch(entityTag string) *SizesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesListCall) Context(ctx context.Context) *SizesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47273,12 +33753,7 @@ func (c *SizesListCall) Header() http.Header { } func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47295,16 +33770,15 @@ func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.list" call. -// Exactly one of *SizesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SizesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SizesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47312,17 +33786,17 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SizesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -47335,63 +33809,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.", - // "flatPath": "userprofiles/{profileId}/sizes", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "height": { - // "description": "Select only sizes with this height.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // }, - // "iabStandard": { - // "description": "Select only IAB standard sizes.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only sizes with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "width": { - // "description": "Select only sizes with this width.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "response": { - // "$ref": "SizesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.get": +} type SubaccountsGetCall struct { s *Service @@ -47415,33 +33833,29 @@ func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsGetCall) Fields(s ...googleapi.Field) *SubaccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsGetCall) IfNoneMatch(entityTag string) *SubaccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsGetCall) Context(ctx context.Context) *SubaccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47450,12 +33864,7 @@ func (c *SubaccountsGetCall) Header() http.Header { } func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47473,16 +33882,14 @@ func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.get" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47490,17 +33897,17 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47513,43 +33920,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro return nil, err } return ret, nil - // { - // "description": "Gets one subaccount by ID.", - // "flatPath": "userprofiles/{profileId}/subaccounts/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts/{id}", - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.insert": +} type SubaccountsInsertCall struct { s *Service @@ -47571,23 +33942,21 @@ func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsInsertCall) Fields(s ...googleapi.Field) *SubaccountsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsInsertCall) Context(ctx context.Context) *SubaccountsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47596,18 +33965,12 @@ func (c *SubaccountsInsertCall) Header() http.Header { } func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -47620,16 +33983,14 @@ func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.insert" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47637,17 +33998,17 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -47660,38 +34021,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Inserts a new subaccount.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "POST", - // "id": "dfareporting.subaccounts.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.list": +} type SubaccountsListCall struct { s *Service @@ -47702,8 +34032,8 @@ type SubaccountsListCall struct { header_ http.Header } -// List: Gets a list of subaccounts, possibly filtered. This method -// supports paging. +// List: Gets a list of subaccounts, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall { @@ -47712,8 +34042,8 @@ func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall { return c } -// Ids sets the optional parameter "ids": Select only subaccounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only subaccounts with these +// IDs. func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { var ids_ []string for _, v := range ids { @@ -47723,8 +34053,8 @@ func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SubaccountsListCall) MaxResults(maxResults int64) *SubaccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -47737,21 +34067,21 @@ func (c *SubaccountsListCall) PageToken(pageToken string) *SubaccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "subaccount*2015" will return objects with names like -// "subaccount June 2015", "subaccount April 2015", or simply -// "subaccount 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "subaccount" will match objects with name "my subaccount", -// "subaccount 2015", or simply "subaccount" . +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "subaccount*2015" will return objects with names like "subaccount June +// 2015", "subaccount April 2015", or simply "subaccount 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "subaccount" will match +// objects with name "my subaccount", "subaccount 2015", or simply "subaccount" +// . func (c *SubaccountsListCall) SearchString(searchString string) *SubaccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -47762,8 +34092,7 @@ func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -47775,33 +34104,29 @@ func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsListCall) Fields(s ...googleapi.Field) *SubaccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsListCall) IfNoneMatch(entityTag string) *SubaccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsListCall) Context(ctx context.Context) *SubaccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47810,12 +34135,7 @@ func (c *SubaccountsListCall) Header() http.Header { } func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47832,16 +34152,15 @@ func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.list" call. -// Exactly one of *SubaccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *SubaccountsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47849,17 +34168,17 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SubaccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -47872,86 +34191,6 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList return nil, err } return ret, nil - // { - // "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only subaccounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"subaccount*2015\" will return objects with names like \"subaccount June 2015\", \"subaccount April 2015\", or simply \"subaccount 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"subaccount\" will match objects with name \"my subaccount\", \"subaccount 2015\", or simply \"subaccount\" .", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "response": { - // "$ref": "SubaccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -47959,7 +34198,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // The provided context supersedes any context provided to the Context method. func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -47975,8 +34214,6 @@ func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsList } } -// method id "dfareporting.subaccounts.patch": - type SubaccountsPatchCall struct { s *Service profileId int64 @@ -47986,8 +34223,7 @@ type SubaccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing subaccount. This method supports patch -// semantics. +// Patch: Updates an existing subaccount. This method supports patch semantics. // // - id: Subaccount ID. // - profileId: User profile ID associated with this request. @@ -48000,23 +34236,21 @@ func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subacc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsPatchCall) Fields(s ...googleapi.Field) *SubaccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsPatchCall) Context(ctx context.Context) *SubaccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48025,18 +34259,12 @@ func (c *SubaccountsPatchCall) Header() http.Header { } func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -48049,16 +34277,14 @@ func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.patch" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48066,17 +34292,17 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -48089,46 +34315,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "PATCH", - // "id": "dfareporting.subaccounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.update": +} type SubaccountsUpdateCall struct { s *Service @@ -48150,23 +34337,21 @@ func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsUpdateCall) Fields(s ...googleapi.Field) *SubaccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsUpdateCall) Context(ctx context.Context) *SubaccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48175,18 +34360,12 @@ func (c *SubaccountsUpdateCall) Header() http.Header { } func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -48199,16 +34378,14 @@ func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.update" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48216,17 +34393,17 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -48239,38 +34416,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "PUT", - // "id": "dfareporting.subaccounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.get": +} type TargetableRemarketingListsGetCall struct { s *Service @@ -48294,33 +34440,29 @@ func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *Targ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsGetCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsGetCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsGetCall) Context(ctx context.Context) *TargetableRemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48329,12 +34471,7 @@ func (c *TargetableRemarketingListsGetCall) Header() http.Header { } func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48352,16 +34489,15 @@ func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Respons "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.get" call. -// Exactly one of *TargetableRemarketingList or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TargetableRemarketingList.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TargetableRemarketingList.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48369,17 +34505,17 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -48392,43 +34528,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - // "response": { - // "$ref": "TargetableRemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.list": +} type TargetableRemarketingListsListCall struct { s *Service @@ -48439,11 +34539,11 @@ type TargetableRemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of targetable remarketing lists, possibly -// filtered. This method supports paging. +// List: Retrieves a list of targetable remarketing lists, possibly filtered. +// This method supports paging. // -// - advertiserId: Select only targetable remarketing lists targetable -// by these advertisers. +// - advertiserId: Select only targetable remarketing lists targetable by these +// advertisers. // - profileId: User profile ID associated with this request. func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId int64) *TargetableRemarketingListsListCall { c := &TargetableRemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -48452,28 +34552,28 @@ func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId i return c } -// Active sets the optional parameter "active": Select only active or -// only inactive targetable remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive targetable remarketing lists. func (c *TargetableRemarketingListsListCall) Active(active bool) *TargetableRemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetableRemarketingListsListCall) MaxResults(maxResults int64) *TargetableRemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *TargetableRemarketingListsListCall) Name(name string) *TargetableRemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -48486,8 +34586,8 @@ func (c *TargetableRemarketingListsListCall) PageToken(pageToken string) *Target return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -48498,8 +34598,7 @@ func (c *TargetableRemarketingListsListCall) SortField(sortField string) *Target return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -48511,33 +34610,29 @@ func (c *TargetableRemarketingListsListCall) SortOrder(sortOrder string) *Target } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsListCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsListCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsListCall) Context(ctx context.Context) *TargetableRemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48546,12 +34641,7 @@ func (c *TargetableRemarketingListsListCall) Header() http.Header { } func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48568,17 +34658,15 @@ func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.list" call. -// Exactly one of *TargetableRemarketingListsListResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48586,17 +34674,17 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -48609,92 +34697,6 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive targetable remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only targetable remarketing lists targetable by these advertisers.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists", - // "response": { - // "$ref": "TargetableRemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -48702,7 +34704,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(*TargetableRemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -48718,8 +34720,6 @@ func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(* } } -// method id "dfareporting.targetingTemplates.get": - type TargetingTemplatesGetCall struct { s *Service profileId int64 @@ -48742,33 +34742,29 @@ func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTem } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesGetCall) Fields(s ...googleapi.Field) *TargetingTemplatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesGetCall) IfNoneMatch(entityTag string) *TargetingTemplatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesGetCall) Context(ctx context.Context) *TargetingTemplatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48777,12 +34773,7 @@ func (c *TargetingTemplatesGetCall) Header() http.Header { } func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48800,16 +34791,15 @@ func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.get" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48817,17 +34807,17 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48840,43 +34830,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting return nil, err } return ret, nil - // { - // "description": "Gets one targeting template by ID.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates/{id}", - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.insert": +} type TargetingTemplatesInsertCall struct { s *Service @@ -48898,23 +34852,21 @@ func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesInsertCall) Fields(s ...googleapi.Field) *TargetingTemplatesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesInsertCall) Context(ctx context.Context) *TargetingTemplatesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48923,18 +34875,12 @@ func (c *TargetingTemplatesInsertCall) Header() http.Header { } func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -48947,16 +34893,15 @@ func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.insert" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48964,17 +34909,17 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -48987,38 +34932,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Inserts a new targeting template.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "POST", - // "id": "dfareporting.targetingTemplates.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.list": +} type TargetingTemplatesListCall struct { s *Service @@ -49029,8 +34943,8 @@ type TargetingTemplatesListCall struct { header_ http.Header } -// List: Retrieves a list of targeting templates, optionally filtered. -// This method supports paging. +// List: Retrieves a list of targeting templates, optionally filtered. This +// method supports paging. // // - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) List(profileId int64) *TargetingTemplatesListCall { @@ -49046,8 +34960,8 @@ func (c *TargetingTemplatesListCall) AdvertiserId(advertiserId int64) *Targeting return c } -// Ids sets the optional parameter "ids": Select only targeting -// templates with these IDs. +// Ids sets the optional parameter "ids": Select only targeting templates with +// these IDs. func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCall { var ids_ []string for _, v := range ids { @@ -49057,8 +34971,8 @@ func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCa return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetingTemplatesListCall) MaxResults(maxResults int64) *TargetingTemplatesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -49071,21 +34985,20 @@ func (c *TargetingTemplatesListCall) PageToken(pageToken string) *TargetingTempl return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "template*2015" will return objects with names like -// "template June 2015", "template April 2015", or simply "template -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "template" will match objects with name "my template", "template -// 2015", or simply "template". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "template*2015" will return objects with names like "template June 2015", +// "template April 2015", or simply "template 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "template" will match objects with name "my +// template", "template 2015", or simply "template". func (c *TargetingTemplatesListCall) SearchString(searchString string) *TargetingTemplatesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -49096,8 +35009,7 @@ func (c *TargetingTemplatesListCall) SortField(sortField string) *TargetingTempl return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -49109,33 +35021,29 @@ func (c *TargetingTemplatesListCall) SortOrder(sortOrder string) *TargetingTempl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesListCall) Fields(s ...googleapi.Field) *TargetingTemplatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesListCall) IfNoneMatch(entityTag string) *TargetingTemplatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesListCall) Context(ctx context.Context) *TargetingTemplatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49144,12 +35052,7 @@ func (c *TargetingTemplatesListCall) Header() http.Header { } func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49166,16 +35069,15 @@ func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.list" call. -// Exactly one of *TargetingTemplatesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *TargetingTemplatesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplatesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*TargetingTemplatesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49183,17 +35085,17 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplatesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -49206,92 +35108,6 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only targeting templates with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only targeting templates with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"template*2015\" will return objects with names like \"template June 2015\", \"template April 2015\", or simply \"template 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"template\" will match objects with name \"my template\", \"template 2015\", or simply \"template\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "response": { - // "$ref": "TargetingTemplatesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -49299,7 +35115,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // The provided context supersedes any context provided to the Context method. func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*TargetingTemplatesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -49315,8 +35131,6 @@ func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*Targetin } } -// method id "dfareporting.targetingTemplates.patch": - type TargetingTemplatesPatchCall struct { s *Service profileId int64 @@ -49326,8 +35140,8 @@ type TargetingTemplatesPatchCall struct { header_ http.Header } -// Patch: Updates an existing targeting template. This method supports -// patch semantics. +// Patch: Updates an existing targeting template. This method supports patch +// semantics. // // - id: TargetingTemplate ID. // - profileId: User profile ID associated with this request. @@ -49340,23 +35154,21 @@ func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingte } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesPatchCall) Fields(s ...googleapi.Field) *TargetingTemplatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesPatchCall) Context(ctx context.Context) *TargetingTemplatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49365,18 +35177,12 @@ func (c *TargetingTemplatesPatchCall) Header() http.Header { } func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -49389,16 +35195,15 @@ func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.patch" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49406,17 +35211,17 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -49429,46 +35234,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "PATCH", - // "id": "dfareporting.targetingTemplates.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "TargetingTemplate ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.update": +} type TargetingTemplatesUpdateCall struct { s *Service @@ -49490,23 +35256,21 @@ func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesUpdateCall) Fields(s ...googleapi.Field) *TargetingTemplatesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesUpdateCall) Context(ctx context.Context) *TargetingTemplatesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49515,18 +35279,12 @@ func (c *TargetingTemplatesUpdateCall) Header() http.Header { } func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -49539,16 +35297,15 @@ func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.update" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49556,17 +35313,17 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -49579,38 +35336,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "PUT", - // "id": "dfareporting.targetingTemplates.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.get": +} type UserProfilesGetCall struct { s *Service @@ -49631,33 +35357,29 @@ func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesGetCall) Fields(s ...googleapi.Field) *UserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesGetCall) IfNoneMatch(entityTag string) *UserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesGetCall) Context(ctx context.Context) *UserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49666,12 +35388,7 @@ func (c *UserProfilesGetCall) Header() http.Header { } func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49688,16 +35405,14 @@ func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.get" call. -// Exactly one of *UserProfile or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfile.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfile.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49705,17 +35420,17 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -49728,37 +35443,7 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er return nil, err } return ret, nil - // { - // "description": "Gets one user profile by ID.", - // "flatPath": "userprofiles/{profileId}", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.get", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}", - // "response": { - // "$ref": "UserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions", - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.list": +} type UserProfilesListCall struct { s *Service @@ -49775,33 +35460,29 @@ func (r *UserProfilesService) List() *UserProfilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesListCall) Fields(s ...googleapi.Field) *UserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesListCall) IfNoneMatch(entityTag string) *UserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesListCall) Context(ctx context.Context) *UserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49810,12 +35491,7 @@ func (c *UserProfilesListCall) Header() http.Header { } func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49829,16 +35505,15 @@ func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.list" call. -// Exactly one of *UserProfileList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfileList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfileList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49846,17 +35521,17 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfileList{ ServerResponse: googleapi.ServerResponse{ @@ -49869,27 +35544,7 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis return nil, err } return ret, nil - // { - // "description": "Retrieves list of user profiles for a user.", - // "flatPath": "userprofiles", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.list", - // "parameterOrder": [], - // "parameters": {}, - // "path": "userprofiles", - // "response": { - // "$ref": "UserProfileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions", - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissionGroups.get": +} type UserRolePermissionGroupsGetCall struct { s *Service @@ -49913,33 +35568,29 @@ func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsGetCall) Context(ctx context.Context) *UserRolePermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49948,12 +35599,7 @@ func (c *UserRolePermissionGroupsGetCall) Header() http.Header { } func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49971,16 +35617,15 @@ func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.get" call. -// Exactly one of *UserRolePermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *UserRolePermissionGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49988,17 +35633,17 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -50011,43 +35656,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use return nil, err } return ret, nil - // { - // "description": "Gets one user role permission group by ID.", - // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - // "response": { - // "$ref": "UserRolePermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissionGroups.list": +} type UserRolePermissionGroupsListCall struct { s *Service @@ -50068,33 +35677,29 @@ func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermiss } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsListCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsListCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsListCall) Context(ctx context.Context) *UserRolePermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50103,12 +35708,7 @@ func (c *UserRolePermissionGroupsListCall) Header() http.Header { } func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50125,17 +35725,15 @@ func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.list" call. -// Exactly one of *UserRolePermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50143,17 +35741,17 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -50166,35 +35764,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us return nil, err } return ret, nil - // { - // "description": "Gets a list of all supported user role permission groups.", - // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups", - // "response": { - // "$ref": "UserRolePermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.get": +} type UserRolePermissionsGetCall struct { s *Service @@ -50218,33 +35788,29 @@ func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePer } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsGetCall) Context(ctx context.Context) *UserRolePermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50253,12 +35819,7 @@ func (c *UserRolePermissionsGetCall) Header() http.Header { } func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50276,16 +35837,15 @@ func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.get" call. -// Exactly one of *UserRolePermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolePermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50293,17 +35853,17 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermission{ ServerResponse: googleapi.ServerResponse{ @@ -50316,43 +35876,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole return nil, err } return ret, nil - // { - // "description": "Gets one user role permission by ID.", - // "flatPath": "userprofiles/{profileId}/userRolePermissions/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions/{id}", - // "response": { - // "$ref": "UserRolePermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.list": +} type UserRolePermissionsListCall struct { s *Service @@ -50372,8 +35896,8 @@ func (r *UserRolePermissionsService) List(profileId int64) *UserRolePermissionsL return c } -// Ids sets the optional parameter "ids": Select only user role -// permissions with these IDs. +// Ids sets the optional parameter "ids": Select only user role permissions +// with these IDs. func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsListCall { var ids_ []string for _, v := range ids { @@ -50384,33 +35908,29 @@ func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsListCall) Fields(s ...googleapi.Field) *UserRolePermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsListCall) IfNoneMatch(entityTag string) *UserRolePermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsListCall) Context(ctx context.Context) *UserRolePermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50419,12 +35939,7 @@ func (c *UserRolePermissionsListCall) Header() http.Header { } func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50441,16 +35956,15 @@ func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.list" call. -// Exactly one of *UserRolePermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50458,17 +35972,17 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -50481,42 +35995,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol return nil, err } return ret, nil - // { - // "description": "Gets a list of user role permissions, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/userRolePermissions", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only user role permissions with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions", - // "response": { - // "$ref": "UserRolePermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.delete": +} type UserRolesDeleteCall struct { s *Service @@ -50539,23 +36018,21 @@ func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesDeleteCall) Fields(s ...googleapi.Field) *UserRolesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesDeleteCall) Context(ctx context.Context) *UserRolesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50564,12 +36041,7 @@ func (c *UserRolesDeleteCall) Header() http.Header { } func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -50584,7 +36056,7 @@ func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.delete" call. @@ -50596,43 +36068,10 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing user role.", - // "flatPath": "userprofiles/{profileId}/userRoles/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.userRoles.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.get": +} type UserRolesGetCall struct { s *Service @@ -50656,33 +36095,29 @@ func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesGetCall) Fields(s ...googleapi.Field) *UserRolesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesGetCall) IfNoneMatch(entityTag string) *UserRolesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesGetCall) Context(ctx context.Context) *UserRolesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50691,12 +36126,7 @@ func (c *UserRolesGetCall) Header() http.Header { } func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50714,16 +36144,14 @@ func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.get" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50731,17 +36159,17 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50754,43 +36182,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { return nil, err } return ret, nil - // { - // "description": "Gets one user role by ID.", - // "flatPath": "userprofiles/{profileId}/userRoles/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.insert": +} type UserRolesInsertCall struct { s *Service @@ -50812,23 +36204,21 @@ func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesInsertCall) Fields(s ...googleapi.Field) *UserRolesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesInsertCall) Context(ctx context.Context) *UserRolesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50837,18 +36227,12 @@ func (c *UserRolesInsertCall) Header() http.Header { } func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -50861,16 +36245,14 @@ func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.insert" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50878,17 +36260,17 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -50901,38 +36283,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Inserts a new user role.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "POST", - // "id": "dfareporting.userRoles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.list": +} type UserRolesListCall struct { s *Service @@ -50953,16 +36304,16 @@ func (r *UserRolesService) List(profileId int64) *UserRolesListCall { return c } -// AccountUserRoleOnly sets the optional parameter -// "accountUserRoleOnly": Select only account level user roles not -// associated with any specific subaccount. +// AccountUserRoleOnly sets the optional parameter "accountUserRoleOnly": +// Select only account level user roles not associated with any specific +// subaccount. func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnly bool) *UserRolesListCall { c.urlParams_.Set("accountUserRoleOnly", fmt.Sprint(accountUserRoleOnly)) return c } -// Ids sets the optional parameter "ids": Select only user roles with -// the specified IDs. +// Ids sets the optional parameter "ids": Select only user roles with the +// specified IDs. func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { var ids_ []string for _, v := range ids { @@ -50972,8 +36323,8 @@ func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *UserRolesListCall) MaxResults(maxResults int64) *UserRolesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -50986,21 +36337,20 @@ func (c *UserRolesListCall) PageToken(pageToken string) *UserRolesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "userrole*2015" will return objects with names like -// "userrole June 2015", "userrole April 2015", or simply "userrole -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "userrole" will match objects with name "my userrole", "userrole -// 2015", or simply "userrole". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "userrole*2015" will return objects with names like "userrole June 2015", +// "userrole April 2015", or simply "userrole 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "userrole" will match objects with name "my +// userrole", "userrole 2015", or simply "userrole". func (c *UserRolesListCall) SearchString(searchString string) *UserRolesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -51011,8 +36361,7 @@ func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -51023,41 +36372,37 @@ func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user roles that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// roles that belong to this subaccount. func (c *UserRolesListCall) SubaccountId(subaccountId int64) *UserRolesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesListCall) Fields(s ...googleapi.Field) *UserRolesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesListCall) IfNoneMatch(entityTag string) *UserRolesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesListCall) Context(ctx context.Context) *UserRolesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51066,12 +36411,7 @@ func (c *UserRolesListCall) Header() http.Header { } func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51088,16 +36428,15 @@ func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.list" call. -// Exactly one of *UserRolesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51105,17 +36444,17 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -51128,97 +36467,6 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "accountUserRoleOnly": { - // "description": "Select only account level user roles not associated with any specific subaccount.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user roles with the specified IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"userrole*2015\" will return objects with names like \"userrole June 2015\", \"userrole April 2015\", or simply \"userrole 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"userrole\" will match objects with name \"my userrole\", \"userrole 2015\", or simply \"userrole\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user roles that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "response": { - // "$ref": "UserRolesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -51226,7 +36474,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // The provided context supersedes any context provided to the Context method. func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -51242,8 +36490,6 @@ func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResp } } -// method id "dfareporting.userRoles.patch": - type UserRolesPatchCall struct { s *Service profileId int64 @@ -51253,8 +36499,7 @@ type UserRolesPatchCall struct { header_ http.Header } -// Patch: Updates an existing user role. This method supports patch -// semantics. +// Patch: Updates an existing user role. This method supports patch semantics. // // - id: UserRole ID. // - profileId: User profile ID associated with this request. @@ -51267,23 +36512,21 @@ func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesPatchCall) Fields(s ...googleapi.Field) *UserRolesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesPatchCall) Context(ctx context.Context) *UserRolesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51292,18 +36535,12 @@ func (c *UserRolesPatchCall) Header() http.Header { } func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -51316,16 +36553,14 @@ func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.patch" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51333,17 +36568,17 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -51356,46 +36591,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing user role. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "PATCH", - // "id": "dfareporting.userRoles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "UserRole ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.update": +} type UserRolesUpdateCall struct { s *Service @@ -51417,23 +36613,21 @@ func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesUpdateCall) Fields(s ...googleapi.Field) *UserRolesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesUpdateCall) Context(ctx context.Context) *UserRolesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51442,18 +36636,12 @@ func (c *UserRolesUpdateCall) Header() http.Header { } func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -51466,16 +36654,14 @@ func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.update" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51483,17 +36669,17 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -51506,38 +36692,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Updates an existing user role.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "PUT", - // "id": "dfareporting.userRoles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.get": +} type VideoFormatsGetCall struct { s *Service @@ -51561,33 +36716,29 @@ func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsGetCall) Fields(s ...googleapi.Field) *VideoFormatsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsGetCall) IfNoneMatch(entityTag string) *VideoFormatsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsGetCall) Context(ctx context.Context) *VideoFormatsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51596,12 +36747,7 @@ func (c *VideoFormatsGetCall) Header() http.Header { } func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51619,16 +36765,14 @@ func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.get" call. -// Exactly one of *VideoFormat or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *VideoFormat.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *VideoFormat.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51636,17 +36780,17 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormat{ ServerResponse: googleapi.ServerResponse{ @@ -51659,43 +36803,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er return nil, err } return ret, nil - // { - // "description": "Gets one video format by ID.", - // "flatPath": "userprofiles/{profileId}/videoFormats/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Video format ID.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats/{id}", - // "response": { - // "$ref": "VideoFormat" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.list": +} type VideoFormatsListCall struct { s *Service @@ -51716,33 +36824,29 @@ func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsListCall) Fields(s ...googleapi.Field) *VideoFormatsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsListCall) IfNoneMatch(entityTag string) *VideoFormatsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsListCall) Context(ctx context.Context) *VideoFormatsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51751,12 +36855,7 @@ func (c *VideoFormatsListCall) Header() http.Header { } func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51773,16 +36872,15 @@ func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.list" call. -// Exactly one of *VideoFormatsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *VideoFormatsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51790,17 +36888,17 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormatsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -51813,30 +36911,4 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi return nil, err } return ret, nil - // { - // "description": "Lists available video formats.", - // "flatPath": "userprofiles/{profileId}/videoFormats", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats", - // "response": { - // "$ref": "VideoFormatsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } diff --git a/dfareporting/v3.4/dfareporting-gen.go b/dfareporting/v3.4/dfareporting-gen.go index 09776747a0a..bcc632bfcd2 100644 --- a/dfareporting/v3.4/dfareporting-gen.go +++ b/dfareporting/v3.4/dfareporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/doubleclick-advertisers/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // dfareportingService, err := dfareporting.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithScopes(dfareporting.DfatraffickingScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // dfareportingService, err := dfareporting.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // dfareportingService, err := dfareporting.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package dfareporting // import "google.golang.org/api/dfareporting/v3.4" import ( @@ -75,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dfareporting:v3.4" const apiName = "dfareporting" const apiVersion = "v3.4" const basePath = "https://dfareporting.googleapis.com/dfareporting/v3.4/" +const basePathTemplate = "https://dfareporting.UNIVERSE_DOMAIN/dfareporting/v3.4/" const mtlsBasePath = "https://dfareporting.mtls.googleapis.com/dfareporting/v3.4/" // OAuth2 scopes used by this API. @@ -105,7 +121,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -906,20 +924,16 @@ type VideoFormatsService struct { type Account struct { // AccountPermissionIds: Account permissions assigned to this account. AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"` - - // AccountProfile: Profile for this account. This is a read-only field - // that can be left blank. + // AccountProfile: Profile for this account. This is a read-only field that can + // be left blank. // // Possible values: // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfile string `json:"accountProfile,omitempty"` - // Active: Whether this account is active. Active bool `json:"active,omitempty"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for this - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for this account. // // Possible values: // "ACTIVE_ADS_TIER_40K" @@ -931,117 +945,87 @@ type Account struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_1M" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - - // ActiveViewOptOut: Whether to serve creatives with Active View tags. - // If disabled, viewability data will not be available for any - // impressions. + // ActiveViewOptOut: Whether to serve creatives with Active View tags. If + // disabled, viewability data will not be available for any impressions. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AvailablePermissionIds: User role permissions available to the user - // roles of this account. + // AvailablePermissionIds: User role permissions available to the user roles of + // this account. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // CountryId: ID of the country associated with this account. CountryId int64 `json:"countryId,omitempty,string"` - - // CurrencyId: ID of currency associated with this account. This is a - // required field. Acceptable values are: - "1" for USD - "2" for GBP - - // "3" for ESP - "4" for SEK - "5" for CAD - "6" for JPY - "7" for DEM - - // "8" for AUD - "9" for FRF - "10" for ITL - "11" for DKK - "12" for - // NOK - "13" for FIM - "14" for ZAR - "15" for IEP - "16" for NLG - - // "17" for EUR - "18" for KRW - "19" for TWD - "20" for SGD - "21" for - // CNY - "22" for HKD - "23" for NZD - "24" for MYR - "25" for BRL - - // "26" for PTE - "28" for CLP - "29" for TRY - "30" for ARS - "31" for - // PEN - "32" for ILS - "33" for CHF - "34" for VEF - "35" for COP - - // "36" for GTQ - "37" for PLN - "39" for INR - "40" for THB - "41" for - // IDR - "42" for CZK - "43" for RON - "44" for HUF - "45" for RUB - - // "46" for AED - "47" for BGN - "48" for HRK - "49" for MXN - "50" for - // NGN - "51" for EGP + // CurrencyId: ID of currency associated with this account. This is a required + // field. Acceptable values are: - "1" for USD - "2" for GBP - "3" for ESP - + // "4" for SEK - "5" for CAD - "6" for JPY - "7" for DEM - "8" for AUD - "9" + // for FRF - "10" for ITL - "11" for DKK - "12" for NOK - "13" for FIM - "14" + // for ZAR - "15" for IEP - "16" for NLG - "17" for EUR - "18" for KRW - "19" + // for TWD - "20" for SGD - "21" for CNY - "22" for HKD - "23" for NZD - "24" + // for MYR - "25" for BRL - "26" for PTE - "28" for CLP - "29" for TRY - "30" + // for ARS - "31" for PEN - "32" for ILS - "33" for CHF - "34" for VEF - "35" + // for COP - "36" for GTQ - "37" for PLN - "39" for INR - "40" for THB - "41" + // for IDR - "42" for CZK - "43" for RON - "44" for HUF - "45" for RUB - "46" + // for AED - "47" for BGN - "48" for HRK - "49" for MXN - "50" for NGN - "51" + // for EGP CurrencyId int64 `json:"currencyId,omitempty,string"` - // DefaultCreativeSizeId: Default placement dimensions for this account. DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"` - // Description: Description of this account. Description string `json:"description,omitempty"` - // Id: ID of this account. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#account". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#account". Kind string `json:"kind,omitempty"` - - // Locale: Locale of this account. Acceptable values are: - "cs" (Czech) - // - "de" (German) - "en" (English) - "en-GB" (English United Kingdom) - - // "es" (Spanish) - "fr" (French) - "it" (Italian) - "ja" (Japanese) - - // "ko" (Korean) - "pl" (Polish) - "pt-BR" (Portuguese Brazil) - "ru" - // (Russian) - "sv" (Swedish) - "tr" (Turkish) - "zh-CN" (Chinese - // Simplified) - "zh-TW" (Chinese Traditional) + // Locale: Locale of this account. Acceptable values are: - "cs" (Czech) - "de" + // (German) - "en" (English) - "en-GB" (English United Kingdom) - "es" + // (Spanish) - "fr" (French) - "it" (Italian) - "ja" (Japanese) - "ko" (Korean) + // - "pl" (Polish) - "pt-BR" (Portuguese Brazil) - "ru" (Russian) - "sv" + // (Swedish) - "tr" (Turkish) - "zh-CN" (Chinese Simplified) - "zh-TW" (Chinese + // Traditional) Locale string `json:"locale,omitempty"` - - // MaximumImageSize: Maximum image size allowed for this account, in - // kilobytes. Value must be greater than or equal to 1. + // MaximumImageSize: Maximum image size allowed for this account, in kilobytes. + // Value must be greater than or equal to 1. MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"` - - // Name: Name of this account. This is a required field, and must be - // less than 128 characters long and be globally unique. + // Name: Name of this account. This is a required field, and must be less than + // 128 characters long and be globally unique. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether campaigns created in this account will be - // enabled for Nielsen OCR reach ratings by default. + // NielsenOcrEnabled: Whether campaigns created in this account will be enabled + // for Nielsen OCR reach ratings by default. NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - // ReportsConfiguration: Reporting configuration of this account. ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"` - - // ShareReportsWithTwitter: Share Path to Conversion reports with - // Twitter. + // ShareReportsWithTwitter: Share Path to Conversion reports with Twitter. ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"` - // TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser // creatives. Acceptable values are 1 to 10240, inclusive. TeaserSizeLimit int64 `json:"teaserSizeLimit,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionIds") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionIds") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountActiveAdSummary: Gets a summary of active ads in an account. type AccountActiveAdSummary struct { // AccountId: ID of the account. AccountId int64 `json:"accountId,omitempty,string"` - // ActiveAds: Ads that have been activated for the account ActiveAds int64 `json:"activeAds,omitempty,string"` - - // ActiveAdsLimitTier: Maximum number of active ads allowed for the - // account. + // ActiveAdsLimitTier: Maximum number of active ads allowed for the account. // // Possible values: // "ACTIVE_ADS_TIER_40K" @@ -1053,290 +1037,221 @@ type AccountActiveAdSummary struct { // "ACTIVE_ADS_TIER_750K" // "ACTIVE_ADS_TIER_1M" ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"` - // AvailableAds: Ads that can be activated for the account. AvailableAds int64 `json:"availableAds,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountActiveAdSummary". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountActiveAdSummary". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountActiveAdSummary) MarshalJSON() ([]byte, error) { +func (s AccountActiveAdSummary) MarshalJSON() ([]byte, error) { type NoMethod AccountActiveAdSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermission: AccountPermissions contains information about a -// particular account permission. Some features of Campaign Manager -// require an account permission to be present in the account. +// particular account permission. Some features of Campaign Manager require an +// account permission to be present in the account. type AccountPermission struct { - // AccountProfiles: Account profiles associated with this account - // permission. Possible values are: - "ACCOUNT_PROFILE_BASIC" - - // "ACCOUNT_PROFILE_STANDARD" + // AccountProfiles: Account profiles associated with this account permission. + // Possible values are: - "ACCOUNT_PROFILE_BASIC" - "ACCOUNT_PROFILE_STANDARD" // // Possible values: // "ACCOUNT_PROFILE_BASIC" // "ACCOUNT_PROFILE_STANDARD" AccountProfiles []string `json:"accountProfiles,omitempty"` - // Id: ID of this account permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermission". Kind string `json:"kind,omitempty"` - - // Level: Administrative level required to enable this account - // permission. + // Level: Administrative level required to enable this account permission. // // Possible values: // "USER" // "ADMINISTRATOR" Level string `json:"level,omitempty"` - // Name: Name of this account permission. Name string `json:"name,omitempty"` - // PermissionGroupId: Permission group of this account permission. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountProfiles") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountProfiles") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermission) MarshalJSON() ([]byte, error) { +func (s AccountPermission) MarshalJSON() ([]byte, error) { type NoMethod AccountPermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionGroup: AccountPermissionGroups contains a mapping of -// permission group IDs to names. A permission group is a grouping of -// account permissions. +// permission group IDs to names. A permission group is a grouping of account +// permissions. type AccountPermissionGroup struct { // Id: ID of this account permission group. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this account permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroup) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountPermissionGroupsListResponse: Account Permission Group List -// Response +// AccountPermissionGroupsListResponse: Account Permission Group List Response type AccountPermissionGroupsListResponse struct { // AccountPermissionGroups: Account permission group collection. AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AccountPermissionGroups") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissionGroups") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissionGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissionGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountPermissionsListResponse: Account Permission List Response type AccountPermissionsListResponse struct { // AccountPermissions: Account permission collection. AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountPermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountPermissionsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountPermissions") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountPermissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountPermissions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountPermissions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountPermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountPermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountUserProfile: AccountUserProfiles contains properties of a -// Campaign Manager user profile. This resource is specifically for -// managing user profiles, whereas UserProfiles is for accessing the -// API. +// AccountUserProfile: AccountUserProfiles contains properties of a Campaign +// Manager user profile. This resource is specifically for managing user +// profiles, whereas UserProfiles is for accessing the API. type AccountUserProfile struct { - // AccountId: Account ID of the user profile. This is a read-only field - // that can be left blank. + // AccountId: Account ID of the user profile. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether this user profile is active. This defaults to false, - // and must be set true on insert for the user profile to be usable. + // Active: Whether this user profile is active. This defaults to false, and + // must be set true on insert for the user profile to be usable. Active bool `json:"active,omitempty"` - - // AdvertiserFilter: Filter that describes which advertisers are visible - // to the user profile. + // AdvertiserFilter: Filter that describes which advertisers are visible to the + // user profile. AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"` - - // CampaignFilter: Filter that describes which campaigns are visible to - // the user profile. + // CampaignFilter: Filter that describes which campaigns are visible to the + // user profile. CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"` - // Comments: Comments for this user profile. Comments string `json:"comments,omitempty"` - - // Email: Email of the user profile. The email addresss must be linked - // to a Google Account. This field is required on insertion and is - // read-only after insertion. + // Email: Email of the user profile. The email addresss must be linked to a + // Google Account. This field is required on insertion and is read-only after + // insertion. Email string `json:"email,omitempty"` - - // Id: ID of the user profile. This is a read-only, auto-generated - // field. + // Id: ID of the user profile. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfile". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfile". Kind string `json:"kind,omitempty"` - - // Locale: Locale of the user profile. This is a required field. - // Acceptable values are: - "cs" (Czech) - "de" (German) - "en" - // (English) - "en-GB" (English United Kingdom) - "es" (Spanish) - "fr" - // (French) - "it" (Italian) - "ja" (Japanese) - "ko" (Korean) - "pl" - // (Polish) - "pt-BR" (Portuguese Brazil) - "ru" (Russian) - "sv" - // (Swedish) - "tr" (Turkish) - "zh-CN" (Chinese Simplified) - "zh-TW" - // (Chinese Traditional) + // Locale: Locale of the user profile. This is a required field. Acceptable + // values are: - "cs" (Czech) - "de" (German) - "en" (English) - "en-GB" + // (English United Kingdom) - "es" (Spanish) - "fr" (French) - "it" (Italian) - + // "ja" (Japanese) - "ko" (Korean) - "pl" (Polish) - "pt-BR" (Portuguese + // Brazil) - "ru" (Russian) - "sv" (Swedish) - "tr" (Turkish) - "zh-CN" + // (Chinese Simplified) - "zh-TW" (Chinese Traditional) Locale string `json:"locale,omitempty"` - - // Name: Name of the user profile. This is a required field. Must be - // less than 64 characters long, must be globally unique, and cannot - // contain whitespace or any of the following characters: "&;<>"#%,". + // Name: Name of the user profile. This is a required field. Must be less than + // 64 characters long, must be globally unique, and cannot contain whitespace + // or any of the following characters: "&;<>"#%,". Name string `json:"name,omitempty"` - // SiteFilter: Filter that describes which sites are visible to the user // profile. SiteFilter *ObjectFilter `json:"siteFilter,omitempty"` - - // SubaccountId: Subaccount ID of the user profile. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of the user profile. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TraffickerType: Trafficker type of this user profile. This is a - // read-only field. + // TraffickerType: Trafficker type of this user profile. This is a read-only + // field. // // Possible values: // "INTERNAL_NON_TRAFFICKER" // "INTERNAL_TRAFFICKER" // "EXTERNAL_TRAFFICKER" TraffickerType string `json:"traffickerType,omitempty"` - - // UserAccessType: User type of the user profile. This is a read-only - // field that can be left blank. + // UserAccessType: User type of the user profile. This is a read-only field + // that can be left blank. // // Possible values: // "NORMAL_USER" @@ -1344,213 +1259,159 @@ type AccountUserProfile struct { // "INTERNAL_ADMINISTRATOR" // "READ_ONLY_SUPER_USER" UserAccessType string `json:"userAccessType,omitempty"` - - // UserRoleFilter: Filter that describes which user roles are visible to - // the user profile. + // UserRoleFilter: Filter that describes which user roles are visible to the + // user profile. UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"` - - // UserRoleId: User role ID of the user profile. This is a required - // field. + // UserRoleId: User role ID of the user profile. This is a required field. UserRoleId int64 `json:"userRoleId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfile) MarshalJSON() ([]byte, error) { +func (s AccountUserProfile) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountUserProfilesListResponse: Account User Profile List Response type AccountUserProfilesListResponse struct { // AccountUserProfiles: Account user profile collection. AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountUserProfilesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountUserProfilesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccountUserProfiles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountUserProfiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccountUserProfiles") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { +func (s AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountUserProfilesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccountsListResponse: Account List Response type AccountsListResponse struct { // Accounts: Account collection. Accounts []*Account `json:"accounts,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#accountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#accountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Accounts") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accounts") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accounts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccountsListResponse) MarshalJSON() ([]byte, error) { +func (s AccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Activities: Represents an activity group. type Activities struct { - // Filters: List of activity filters. The dimension values need to be - // all either of type "dfa:activity" or "dfa:activityGroup". + // Filters: List of activity filters. The dimension values need to be all + // either of type "dfa:activity" or "dfa:activityGroup". Filters []*DimensionValue `json:"filters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#activities. + // Kind: The kind of resource this is, in this case dfareporting#activities. Kind string `json:"kind,omitempty"` - // MetricNames: List of names of floodlight activity metrics. MetricNames []string `json:"metricNames,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filters") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Activities) MarshalJSON() ([]byte, error) { +func (s Activities) MarshalJSON() ([]byte, error) { type NoMethod Activities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Ad: Contains properties of a Campaign Manager ad. type Ad struct { - // AccountId: Account ID of this ad. This is a read-only field that can - // be left blank. + // AccountId: Account ID of this ad. This is a read-only field that can be left + // blank. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this ad is active. When true, archived must be false. Active bool `json:"active,omitempty"` - // AdvertiserId: Advertiser ID of this ad. This is a required field on // insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Archived: Whether this ad is archived. When true, active must be - // false. + // Archived: Whether this ad is archived. When true, active must be false. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentId: Audience segment ID that is being targeted for - // this ad. Applicable when type is AD_SERVING_STANDARD_AD. + // AudienceSegmentId: Audience segment ID that is being targeted for this ad. + // Applicable when type is AD_SERVING_STANDARD_AD. AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"` - - // CampaignId: Campaign ID of this ad. This is a required field on - // insertion. + // CampaignId: Campaign ID of this ad. This is a required field on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ClickThroughUrl: Click-through URL for this ad. This is a required - // field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. + // ClickThroughUrl: Click-through URL for this ad. This is a required field on + // insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // ClickThroughUrlSuffixProperties: Click-through URL suffix properties - // for this ad. Applies to the URL in the ad or (if overriding ad - // properties) the URL in the creative. + // ClickThroughUrlSuffixProperties: Click-through URL suffix properties for + // this ad. Applies to the URL in the ad or (if overriding ad properties) the + // URL in the creative. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - // Comments: Comments for this ad. Comments string `json:"comments,omitempty"` - // Compatibility: Compatibility of this ad. Applicable when type is - // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to - // either rendering on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are only used for existing default ads. New mobile - // placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and - // default ads created for those placements will be limited to those - // compatibility types. IN_STREAM_VIDEO refers to rendering in-stream - // video ads developed with the VAST standard. + // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either + // rendering on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for + // existing default ads. New mobile placements must be assigned DISPLAY or + // DISPLAY_INTERSTITIAL and default ads created for those placements will be + // limited to those compatibility types. IN_STREAM_VIDEO refers to rendering + // in-stream video ads developed with the VAST standard. // // Possible values: // "DISPLAY" @@ -1560,124 +1421,94 @@ type Ad struct { // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility string `json:"compatibility,omitempty"` - - // CreateInfo: Information about the creation of this ad. This is a - // read-only field. + // CreateInfo: Information about the creation of this ad. This is a read-only + // field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this ad. - // Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment - // per creative group number is allowed for a maximum of two - // assignments. + // CreativeGroupAssignments: Creative group assignments for this ad. Applicable + // when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative + // group number is allowed for a maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeRotation: Creative rotation for this ad. Applicable when type - // is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or - // AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field - // should have exactly one creativeAssignment . + // CreativeRotation: Creative rotation for this ad. Applicable when type is + // AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When + // type is AD_SERVING_DEFAULT_AD, this field should have exactly one + // creativeAssignment . CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"` - - // DayPartTargeting: Time and day targeting information for this ad. - // This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // DayPartTargeting: Time and day targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - - // DefaultClickThroughEventTagProperties: Default click-through event - // tag properties for this ad. + // DefaultClickThroughEventTagProperties: Default click-through event tag + // properties for this ad. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - - // DeliverySchedule: Delivery schedule information for this ad. - // Applicable when type is AD_SERVING_STANDARD_AD or - // AD_SERVING_TRACKING. This field along with subfields priority and - // impressionRatio are required on insertion when type is - // AD_SERVING_STANDARD_AD. + // DeliverySchedule: Delivery schedule information for this ad. Applicable when + // type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with + // subfields priority and impressionRatio are required on insertion when type + // is AD_SERVING_STANDARD_AD. DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"` - - // DynamicClickTracker: Whether this ad is a dynamic click tracker. - // Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required - // field on insert, and is read-only after insert. - DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"` - - EndTime string `json:"endTime,omitempty"` - + // DynamicClickTracker: Whether this ad is a dynamic click tracker. Applicable + // when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, + // and is read-only after insert. + DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"` + EndTime string `json:"endTime,omitempty"` // EventTagOverrides: Event tag overrides for this ad. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - - // GeoTargeting: Geographical targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // GeoTargeting: Geographical targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - // Id: ID of this ad. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this ad. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyValueTargetingExpression: Key-value targeting information for this - // ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // KeyValueTargetingExpression: Key-value targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ad". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ad". Kind string `json:"kind,omitempty"` - - // LanguageTargeting: Language targeting information for this ad. This - // field must be left blank if the ad is using a targeting template. - // Applicable when type is AD_SERVING_STANDARD_AD. + // LanguageTargeting: Language targeting information for this ad. This field + // must be left blank if the ad is using a targeting template. Applicable when + // type is AD_SERVING_STANDARD_AD. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this ad. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this ad. + // This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this ad. This is a required field and must be less than - // 256 characters long. + // Name: Name of this ad. This is a required field and must be less than 256 + // characters long. Name string `json:"name,omitempty"` - // PlacementAssignments: Placement assignments for this ad. PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"` - - // RemarketingListExpression: Remarketing list targeting expression for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // RemarketingListExpression: Remarketing list targeting expression for this + // ad. This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"` - // Size: Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether this ad is ssl compliant. This is a read-only - // field that is auto-generated when the ad is inserted or updated. - SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslRequired: Whether this ad requires ssl. This is a read-only field + // SslCompliant: Whether this ad is ssl compliant. This is a read-only field // that is auto-generated when the ad is inserted or updated. - SslRequired bool `json:"sslRequired,omitempty"` - - StartTime string `json:"startTime,omitempty"` - - // SubaccountId: Subaccount ID of this ad. This is a read-only field - // that can be left blank. + SslCompliant bool `json:"sslCompliant,omitempty"` + // SslRequired: Whether this ad requires ssl. This is a read-only field that is + // auto-generated when the ad is inserted or updated. + SslRequired bool `json:"sslRequired,omitempty"` + StartTime string `json:"startTime,omitempty"` + // SubaccountId: Subaccount ID of this ad. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TargetingTemplateId: Targeting template ID, used to apply - // preconfigured targeting information to this ad. This cannot be set - // while any of dayPartTargeting, geoTargeting, - // keyValueTargetingExpression, languageTargeting, - // remarketingListExpression, or technologyTargeting are set. Applicable - // when type is AD_SERVING_STANDARD_AD. + // TargetingTemplateId: Targeting template ID, used to apply preconfigured + // targeting information to this ad. This cannot be set while any of + // dayPartTargeting, geoTargeting, keyValueTargetingExpression, + // languageTargeting, remarketingListExpression, or technologyTargeting are + // set. Applicable when type is AD_SERVING_STANDARD_AD. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // TechnologyTargeting: Technology platform targeting information for - // this ad. This field must be left blank if the ad is using a targeting - // template. Applicable when type is AD_SERVING_STANDARD_AD. + // TechnologyTargeting: Technology platform targeting information for this ad. + // This field must be left blank if the ad is using a targeting template. + // Applicable when type is AD_SERVING_STANDARD_AD. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - - // Type: Type of ad. This is a required field on insertion. Note that - // default ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see - // Creative resource). + // Type: Type of ad. This is a required field on insertion. Note that default + // ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative + // resource). // // Possible values: // "AD_SERVING_STANDARD_AD" @@ -1687,91 +1518,71 @@ type Ad struct { // "AD_SERVING_BRAND_SAFE_AD" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Ad) MarshalJSON() ([]byte, error) { +func (s Ad) MarshalJSON() ([]byte, error) { type NoMethod Ad - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdBlockingConfiguration: Campaign ad blocking settings. type AdBlockingConfiguration struct { - // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is - // a required field when overrideClickThroughUrl is set to true. + // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is a + // required field when overrideClickThroughUrl is set to true. ClickThroughUrl string `json:"clickThroughUrl,omitempty"` - - // CreativeBundleId: ID of a creative bundle to use for this campaign. - // If set, brand-neutral ads will select creatives from this bundle. - // Otherwise, a default transparent pixel will be used. + // CreativeBundleId: ID of a creative bundle to use for this campaign. If set, + // brand-neutral ads will select creatives from this bundle. Otherwise, a + // default transparent pixel will be used. CreativeBundleId int64 `json:"creativeBundleId,omitempty,string"` - // Enabled: Whether this campaign has enabled ad blocking. When true, ad // blocking is enabled for placements in the campaign, but this may be // overridden by site and placement settings. When false, ad blocking is - // disabled for all placements under the campaign, regardless of site - // and placement settings. + // disabled for all placements under the campaign, regardless of site and + // placement settings. Enabled bool `json:"enabled,omitempty"` - - // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through - // URL comes from the campaign's creative bundle or the override URL. - // Must be set to true if ad blocking is enabled and no creative bundle - // is configured. + // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through URL + // comes from the campaign's creative bundle or the override URL. Must be set + // to true if ad blocking is enabled and no creative bundle is configured. OverrideClickThroughUrl bool `json:"overrideClickThroughUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdBlockingConfiguration) MarshalJSON() ([]byte, error) { +func (s AdBlockingConfiguration) MarshalJSON() ([]byte, error) { type NoMethod AdBlockingConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdSlot: Ad Slot type AdSlot struct { // Comment: Comment for this ad slot. Comment string `json:"comment,omitempty"` - - // Compatibility: Ad slot compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile - // devices or in mobile apps for regular or interstitial ads - // respectively. APP and APP_INTERSTITIAL are for rendering in mobile - // apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // Compatibility: Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer + // to rendering either on desktop, mobile devices or in mobile apps for regular + // or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads // developed with the VAST standard. // // Possible values: @@ -1782,1427 +1593,1067 @@ type AdSlot struct { // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility string `json:"compatibility,omitempty"` - // Height: Height of this ad slot. Height int64 `json:"height,omitempty,string"` - - // LinkedPlacementId: ID of the placement from an external platform that - // is linked to this ad slot. + // LinkedPlacementId: ID of the placement from an external platform that is + // linked to this ad slot. LinkedPlacementId int64 `json:"linkedPlacementId,omitempty,string"` - // Name: Name of this ad slot. Name string `json:"name,omitempty"` - // PaymentSourceType: Payment source type of this ad slot. // // Possible values: // "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID" // "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" PaymentSourceType string `json:"paymentSourceType,omitempty"` - // Primary: Primary ad slot of a roadblock inventory item. Primary bool `json:"primary,omitempty"` - // Width: Width of this ad slot. Width int64 `json:"width,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Comment") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Comment") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Comment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Comment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdSlot) MarshalJSON() ([]byte, error) { +func (s AdSlot) MarshalJSON() ([]byte, error) { type NoMethod AdSlot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdsListResponse: Ad List Response type AdsListResponse struct { // Ads: Ad collection. Ads []*Ad `json:"ads,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#adsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#adsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Ads") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ads") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Ads") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Ads") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdsListResponse) MarshalJSON() ([]byte, error) { +func (s AdsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Advertiser: Contains properties of a Campaign Manager advertiser. type Advertiser struct { - // AccountId: Account ID of this advertiser.This is a read-only field - // that can be left blank. + // AccountId: Account ID of this advertiser.This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserGroupId: ID of the advertiser group this advertiser belongs - // to. You can group advertisers for reporting purposes, allowing you to - // see aggregated information for all advertisers in each group. + // AdvertiserGroupId: ID of the advertiser group this advertiser belongs to. + // You can group advertisers for reporting purposes, allowing you to see + // aggregated information for all advertisers in each group. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // ClickThroughUrlSuffix: Suffix added to click-through URL of ad - // creative associations under this advertiser. Must be less than 129 - // characters long. + // ClickThroughUrlSuffix: Suffix added to click-through URL of ad creative + // associations under this advertiser. Must be less than 129 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply by default to the landing pages of this advertiser's campaigns. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply by + // default to the landing pages of this advertiser's campaigns. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // DefaultEmail: Default email address used in sender field for tag - // emails. + // DefaultEmail: Default email address used in sender field for tag emails. DefaultEmail string `json:"defaultEmail,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // advertiser. The floodlight configuration ID will be created - // automatically, so on insert this field should be left blank. This - // field can be set to another advertiser's floodlight configuration ID - // in order to share that advertiser's floodlight configuration with - // this advertiser, so long as: - This advertiser's original floodlight - // configuration is not already associated with floodlight activities or - // floodlight activity groups. - This advertiser's original floodlight - // configuration is not already shared with another advertiser. + // FloodlightConfigurationId: Floodlight configuration ID of this advertiser. + // The floodlight configuration ID will be created automatically, so on insert + // this field should be left blank. This field can be set to another + // advertiser's floodlight configuration ID in order to share that advertiser's + // floodlight configuration with this advertiser, so long as: - This + // advertiser's original floodlight configuration is not already associated + // with floodlight activities or floodlight activity groups. - This + // advertiser's original floodlight configuration is not already shared with + // another advertiser. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this advertiser. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this advertiser. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this advertiser. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiser". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser. This is a required field and must be - // less than 256 characters long and unique among advertisers of the - // same account. + // Name: Name of this advertiser. This is a required field and must be less + // than 256 characters long and unique among advertisers of the same account. Name string `json:"name,omitempty"` - - // OriginalFloodlightConfigurationId: Original floodlight configuration - // before any sharing occurred. Set the floodlightConfigurationId of - // this advertiser to originalFloodlightConfigurationId to unshare the - // advertiser's current floodlight configuration. You cannot unshare an - // advertiser's floodlight configuration if the shared configuration has - // activities associated with any campaign or placement. + // OriginalFloodlightConfigurationId: Original floodlight configuration before + // any sharing occurred. Set the floodlightConfigurationId of this advertiser + // to originalFloodlightConfigurationId to unshare the advertiser's current + // floodlight configuration. You cannot unshare an advertiser's floodlight + // configuration if the shared configuration has activities associated with any + // campaign or placement. OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"` - // Status: Status of this advertiser. // // Possible values: // "APPROVED" // "ON_HOLD" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this advertiser.This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this advertiser.This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Suspended: Suspension status of this advertiser. Suspended bool `json:"suspended,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Advertiser) MarshalJSON() ([]byte, error) { +func (s Advertiser) MarshalJSON() ([]byte, error) { type NoMethod Advertiser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroup: Groups advertisers together so that reports can be // generated for the entire group at once. type AdvertiserGroup struct { - // AccountId: Account ID of this advertiser group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this advertiser group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this advertiser group. This is a read-only, auto-generated - // field. + // Id: ID of this advertiser group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this advertiser group. This is a required field and - // must be less than 256 characters long and unique among advertiser - // groups of the same account. + // Name: Name of this advertiser group. This is a required field and must be + // less than 256 characters long and unique among advertiser groups of the same + // account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroup) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroup) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGroupsListResponse: Advertiser Group List Response type AdvertiserGroupsListResponse struct { // AdvertiserGroups: Advertiser group collection. AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserGroups") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserLandingPagesListResponse: Landing Page List Response type AdvertiserLandingPagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertiserLandingPagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertiserLandingPagesListResponse". Kind string `json:"kind,omitempty"` - // LandingPages: Landing page collection LandingPages []*LandingPage `json:"landingPages,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserLandingPagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertisersListResponse: Advertiser List Response type AdvertisersListResponse struct { // Advertisers: Advertiser collection. Advertisers []*Advertiser `json:"advertisers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#advertisersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#advertisersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Advertisers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Advertisers") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Advertisers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertisersListResponse) MarshalJSON() ([]byte, error) { +func (s AdvertisersListResponse) MarshalJSON() ([]byte, error) { type NoMethod AdvertisersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegment: Audience Segment. type AudienceSegment struct { - // Allocation: Weight allocated to this segment. The weight assigned - // will be understood in proportion to the weights assigned to other - // segments in the same segment group. Acceptable values are 1 to 1000, - // inclusive. + // Allocation: Weight allocated to this segment. The weight assigned will be + // understood in proportion to the weights assigned to other segments in the + // same segment group. Acceptable values are 1 to 1000, inclusive. Allocation int64 `json:"allocation,omitempty"` - - // Id: ID of this audience segment. This is a read-only, auto-generated - // field. + // Id: ID of this audience segment. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment. This is a required field and - // must be less than 65 characters long. + // Name: Name of this audience segment. This is a required field and must be + // less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Allocation") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Allocation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Allocation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegment) MarshalJSON() ([]byte, error) { +func (s AudienceSegment) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceSegmentGroup: Audience Segment Group. type AudienceSegmentGroup struct { - // AudienceSegments: Audience segments assigned to this group. The - // number of segments must be between 2 and 100. + // AudienceSegments: Audience segments assigned to this group. The number of + // segments must be between 2 and 100. AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"` - - // Id: ID of this audience segment group. This is a read-only, - // auto-generated field. + // Id: ID of this audience segment group. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this audience segment group. This is a required field - // and must be less than 65 characters long. + // Name: Name of this audience segment group. This is a required field and must + // be less than 65 characters long. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudienceSegments") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudienceSegments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AudienceSegments") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudienceSegmentGroup) MarshalJSON() ([]byte, error) { +func (s AudienceSegmentGroup) MarshalJSON() ([]byte, error) { type NoMethod AudienceSegmentGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Browser: Contains information about a browser that can be targeted by -// ads. +// Browser: Contains information about a browser that can be targeted by ads. type Browser struct { - // BrowserVersionId: ID referring to this grouping of browser and - // version numbers. This is the ID used for targeting. + // BrowserVersionId: ID referring to this grouping of browser and version + // numbers. This is the ID used for targeting. BrowserVersionId int64 `json:"browserVersionId,omitempty,string"` - // DartId: DART ID of this browser. This is the ID used when generating // reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browser". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browser". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version number (leftmost number) of this browser. - // For example, for Chrome 5.0.376.86 beta, this field should be set to - // 5. An asterisk (*) may be used to target any version number, and a - // question mark (?) may be used to target cases where the version - // number cannot be identified. For example, Chrome *.* targets any - // version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MajorVersion: Major version number (leftmost number) of this browser. For + // example, for Chrome 5.0.376.86 beta, this field should be set to 5. An + // asterisk (*) may be used to target any version number, and a question mark + // (?) may be used to target cases where the version number cannot be + // identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, + // 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? + // targets cases where the ad server knows the browser is Firefox but can't + // tell which version it is. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version number (number after first dot on left) - // of this browser. For example, for Chrome 5.0.375.86 beta, this field - // should be set to 0. An asterisk (*) may be used to target any version - // number, and a question mark (?) may be used to target cases where the - // version number cannot be identified. For example, Chrome *.* targets - // any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets - // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad - // server knows the browser is Firefox but can't tell which version it - // is. + // MinorVersion: Minor version number (number after first dot on left) of this + // browser. For example, for Chrome 5.0.375.86 beta, this field should be set + // to 0. An asterisk (*) may be used to target any version number, and a + // question mark (?) may be used to target cases where the version number + // cannot be identified. For example, Chrome *.* targets any version of Chrome: + // 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. + // Firefox ?.? targets cases where the ad server knows the browser is Firefox + // but can't tell which version it is. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this browser. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "BrowserVersionId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BrowserVersionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BrowserVersionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Browser) MarshalJSON() ([]byte, error) { +func (s Browser) MarshalJSON() ([]byte, error) { type NoMethod Browser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BrowsersListResponse: Browser List Response type BrowsersListResponse struct { // Browsers: Browser collection. Browsers []*Browser `json:"browsers,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#browsersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#browsersListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BrowsersListResponse) MarshalJSON() ([]byte, error) { +func (s BrowsersListResponse) MarshalJSON() ([]byte, error) { type NoMethod BrowsersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Campaign: Contains properties of a Campaign Manager campaign. type Campaign struct { - // AccountId: Account ID of this campaign. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this campaign. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - // AdBlockingConfiguration: Ad blocking settings for this campaign. AdBlockingConfiguration *AdBlockingConfiguration `json:"adBlockingConfiguration,omitempty"` - // AdditionalCreativeOptimizationConfigurations: Additional creative // optimization configurations for the campaign. AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"` - // AdvertiserGroupId: Advertiser group ID of the associated advertiser. AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this campaign. This is a required - // field. + // AdvertiserId: Advertiser ID of this campaign. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of - // this campaign. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of this + // campaign. This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this campaign has been archived. Archived bool `json:"archived,omitempty"` - - // AudienceSegmentGroups: Audience segment groups assigned to this - // campaign. Cannot have more than 300 segment groups. + // AudienceSegmentGroups: Audience segment groups assigned to this campaign. + // Cannot have more than 300 segment groups. AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"` - - // BillingInvoiceCode: Billing invoice code included in the Campaign - // Manager client billing invoices associated with the campaign. + // BillingInvoiceCode: Billing invoice code included in the Campaign Manager + // client billing invoices associated with the campaign. BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"` - // ClickThroughUrlSuffixProperties: Click-through URL suffix override // properties for this campaign. ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"` - - // Comment: Arbitrary comments about this campaign. Must be less than - // 256 characters long. + // Comment: Arbitrary comments about this campaign. Must be less than 256 + // characters long. Comment string `json:"comment,omitempty"` - - // CreateInfo: Information about the creation of this campaign. This is - // a read-only field. + // CreateInfo: Information about the creation of this campaign. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - // CreativeGroupIds: List of creative group IDs that are assigned to the // campaign. CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"` - - // CreativeOptimizationConfiguration: Creative optimization - // configuration for the campaign. + // CreativeOptimizationConfiguration: Creative optimization configuration for + // the campaign. CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"` - - // DefaultClickThroughEventTagProperties: Click-through event tag ID - // override properties for this campaign. + // DefaultClickThroughEventTagProperties: Click-through event tag ID override + // properties for this campaign. DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"` - // DefaultLandingPageId: The default landing page ID for this campaign. - DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"` - - EndDate string `json:"endDate,omitempty"` - - // EventTagOverrides: Overrides that can be used to activate or - // deactivate advertiser event tags. + DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"` + EndDate string `json:"endDate,omitempty"` + // EventTagOverrides: Overrides that can be used to activate or deactivate + // advertiser event tags. EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"` - // ExternalId: External ID for this campaign. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this campaign. This is a read-only auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this campaign. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this campaign. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaign". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaign". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this campaign. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // campaign. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this campaign. This is a required field and must be - // less than 256 characters long and unique among campaigns of the same - // advertiser. + // Name: Name of this campaign. This is a required field and must be less than + // 256 characters long and unique among campaigns of the same advertiser. Name string `json:"name,omitempty"` - - // NielsenOcrEnabled: Whether Nielsen reports are enabled for this - // campaign. - NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // SubaccountId: Subaccount ID of this campaign. This is a read-only - // field that can be left blank. + // NielsenOcrEnabled: Whether Nielsen reports are enabled for this campaign. + NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"` + StartDate string `json:"startDate,omitempty"` + // SubaccountId: Subaccount ID of this campaign. This is a read-only field that + // can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TraffickerEmails: Campaign trafficker contact emails. TraffickerEmails []string `json:"traffickerEmails,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Campaign) MarshalJSON() ([]byte, error) { +func (s Campaign) MarshalJSON() ([]byte, error) { type NoMethod Campaign - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociation: Identifies a creative which has been -// associated with a given campaign. +// CampaignCreativeAssociation: Identifies a creative which has been associated +// with a given campaign. type CampaignCreativeAssociation struct { - // CreativeId: ID of the creative associated with the campaign. This is - // a required field. + // CreativeId: ID of the creative associated with the campaign. This is a + // required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociation". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociation". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreativeId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociation) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignCreativeAssociationsListResponse: Campaign Creative -// Association List Response +// CampaignCreativeAssociationsListResponse: Campaign Creative Association List +// Response type CampaignCreativeAssociationsListResponse struct { - // CampaignCreativeAssociations: Campaign creative association - // collection + // CampaignCreativeAssociations: Campaign creative association collection CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignCreativeAssociationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignCreativeAssociationsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "CampaignCreativeAssociations") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CampaignCreativeAssociations") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CampaignCreativeAssociations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignCreativeAssociationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CampaignManagerIds: Campaign Manager IDs related to the custom event. type CampaignManagerIds struct { // AdId: Ad ID for Campaign Manager. AdId int64 `json:"adId,omitempty,string"` - // CampaignId: Campaign ID for Campaign Manager. CampaignId int64 `json:"campaignId,omitempty,string"` - // CreativeId: Creative ID for Campaign Manager. CreativeId int64 `json:"creativeId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignManagerIds". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignManagerIds". Kind string `json:"kind,omitempty"` - // PlacementId: Placement ID for Campaign Manager. PlacementId int64 `json:"placementId,omitempty,string"` - // SiteId: Site ID for Campaign Manager. SiteId int64 `json:"siteId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AdId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdId") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignManagerIds) MarshalJSON() ([]byte, error) { +func (s CampaignManagerIds) MarshalJSON() ([]byte, error) { type NoMethod CampaignManagerIds - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CampaignsListResponse: Campaign List Response type CampaignsListResponse struct { // Campaigns: Campaign collection. Campaigns []*Campaign `json:"campaigns,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#campaignsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#campaignsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Campaigns") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Campaigns") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Campaigns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignsListResponse) MarshalJSON() ([]byte, error) { +func (s CampaignsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CampaignsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLog: Describes a change that a user has made to a resource. type ChangeLog struct { // AccountId: Account ID of the modified object. AccountId int64 `json:"accountId,omitempty,string"` - // Action: Action which caused the change. - Action string `json:"action,omitempty"` - + Action string `json:"action,omitempty"` ChangeTime string `json:"changeTime,omitempty"` - // FieldName: Field name of the object which changed. FieldName string `json:"fieldName,omitempty"` - // Id: ID of this change log. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLog". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLog". Kind string `json:"kind,omitempty"` - // NewValue: New value of the object field. NewValue string `json:"newValue,omitempty"` - // ObjectId: ID of the object of this change log. The object could be a // campaign, placement, ad, or other type. ObjectId int64 `json:"objectId,omitempty,string"` - // ObjectType: Object type of the change log. ObjectType string `json:"objectType,omitempty"` - // OldValue: Old value of the object field. OldValue string `json:"oldValue,omitempty"` - // SubaccountId: Subaccount ID of the modified object. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TransactionId: Transaction ID of this change log. When a single API - // call results in many changes, each change will have a separate ID in - // the change log but will share the same transactionId. + // TransactionId: Transaction ID of this change log. When a single API call + // results in many changes, each change will have a separate ID in the change + // log but will share the same transactionId. TransactionId int64 `json:"transactionId,omitempty,string"` - // UserProfileId: ID of the user who modified the object. UserProfileId int64 `json:"userProfileId,omitempty,string"` - - // UserProfileName: User profile name of the user who modified the - // object. + // UserProfileName: User profile name of the user who modified the object. UserProfileName string `json:"userProfileName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLog) MarshalJSON() ([]byte, error) { +func (s ChangeLog) MarshalJSON() ([]byte, error) { type NoMethod ChangeLog - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChangeLogsListResponse: Change Log List Response type ChangeLogsListResponse struct { // ChangeLogs: Change log collection. ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#changeLogsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#changeLogsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ChangeLogs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChangeLogs") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChangeLogs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangeLogsListResponse) MarshalJSON() ([]byte, error) { +func (s ChangeLogsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ChangeLogsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChannelGrouping: Represents a DfaReporting channel grouping. type ChannelGrouping struct { // FallbackName: ChannelGrouping fallback name. FallbackName string `json:"fallbackName,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#channelGrouping. Kind string `json:"kind,omitempty"` - // Name: ChannelGrouping name. Name string `json:"name,omitempty"` - // Rules: The rules contained within this channel grouping. Rules []*ChannelGroupingRule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "FallbackName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FallbackName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FallbackName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChannelGrouping) MarshalJSON() ([]byte, error) { +func (s ChannelGrouping) MarshalJSON() ([]byte, error) { type NoMethod ChannelGrouping - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChannelGroupingRule: Represents a DfaReporting channel grouping rule. type ChannelGroupingRule struct { - // DisjunctiveMatchStatements: The disjunctive match statements - // contained within this rule. + // DisjunctiveMatchStatements: The disjunctive match statements contained + // within this rule. DisjunctiveMatchStatements []*DisjunctiveMatchStatement `json:"disjunctiveMatchStatements,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#channelGroupingRule. Kind string `json:"kind,omitempty"` - // Name: Rule name. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DisjunctiveMatchStatements") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DisjunctiveMatchStatements") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DisjunctiveMatchStatements") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisjunctiveMatchStatements") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChannelGroupingRule) MarshalJSON() ([]byte, error) { +func (s ChannelGroupingRule) MarshalJSON() ([]byte, error) { type NoMethod ChannelGroupingRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CitiesListResponse: City List Response type CitiesListResponse struct { // Cities: City collection. Cities []*City `json:"cities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#citiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#citiesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CitiesListResponse) MarshalJSON() ([]byte, error) { +func (s CitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // City: Contains information about a city that can be targeted by ads. type City struct { // CountryCode: Country code of the country to which this city belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this city belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this city. This is the ID used for targeting and // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#city". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#city". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro region code of the metro region (DMA) to which this - // city belongs. + // MetroCode: Metro region code of the metro region (DMA) to which this city + // belongs. MetroCode string `json:"metroCode,omitempty"` - // MetroDmaId: ID of the metro region (DMA) to which this city belongs. MetroDmaId int64 `json:"metroDmaId,omitempty,string"` - // Name: Name of this city. Name string `json:"name,omitempty"` - // RegionCode: Region code of the region to which this city belongs. RegionCode string `json:"regionCode,omitempty"` - // RegionDartId: DART ID of the region to which this city belongs. RegionDartId int64 `json:"regionDartId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *City) MarshalJSON() ([]byte, error) { +func (s City) MarshalJSON() ([]byte, error) { type NoMethod City - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickTag: Creative Click Tag. type ClickTag struct { - // ClickThroughUrl: Parameter value for the specified click tag. This - // field contains a click-through url. + // ClickThroughUrl: Parameter value for the specified click tag. This field + // contains a click-through url. ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // EventName: Advertiser event name associated with the click tag. This - // field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // EventName: Advertiser event name associated with the click tag. This field + // is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. EventName string `json:"eventName,omitempty"` - - // Name: Parameter name for the specified click tag. For - // DISPLAY_IMAGE_GALLERY creative assets, this field must match the - // value of the creative asset's creativeAssetId.name field. + // Name: Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY + // creative assets, this field must match the value of the creative asset's + // creativeAssetId.name field. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickTag) MarshalJSON() ([]byte, error) { +func (s ClickTag) MarshalJSON() ([]byte, error) { type NoMethod ClickTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrl: Click-through URL type ClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - If defaultLandingPage is enabled then the - // campaign's default landing page URL is assigned to this field. - If - // defaultLandingPage is not enabled and a landingPageId is specified - // then that landing page's URL is assigned to this field. - If neither - // of the above cases apply, then the customClickThroughUrl is assigned - // to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: - If defaultLandingPage is enabled then the campaign's default + // landing page URL is assigned to this field. - If defaultLandingPage is not + // enabled and a landingPageId is specified then that landing page's URL is + // assigned to this field. - If neither of the above cases apply, then the + // customClickThroughUrl is assigned to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the - // defaultLandingPage field is set to false and the landingPageId field - // is left unset. + // defaultLandingPage field is set to false and the landingPageId field is left + // unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - - // DefaultLandingPage: Whether the campaign default landing page is - // used. + // DefaultLandingPage: Whether the campaign default landing page is used. DefaultLandingPage bool `json:"defaultLandingPage,omitempty"` - - // LandingPageId: ID of the landing page for the click-through URL. - // Applicable if the defaultLandingPage field is set to false. + // LandingPageId: ID of the landing page for the click-through URL. Applicable + // if the defaultLandingPage field is set to false. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ClickThroughUrlSuffixProperties: Click Through URL Suffix settings. type ClickThroughUrlSuffixProperties struct { - // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads - // in this entity's scope. Must be less than 128 characters long. + // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads in this + // entity's scope. Must be less than 128 characters long. ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"` - - // OverrideInheritedSuffix: Whether this entity should override the - // inherited click-through URL suffix with its own defined value. + // OverrideInheritedSuffix: Whether this entity should override the inherited + // click-through URL suffix with its own defined value. OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClickThroughUrlSuffix") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClickThroughUrlSuffix") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClickThroughUrlSuffix") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { +func (s ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) { type NoMethod ClickThroughUrlSuffixProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionClickThroughOverride: Companion Click-through override. type CompanionClickThroughOverride struct { - // ClickThroughUrl: Click-through URL of this companion click-through - // override. + // ClickThroughUrl: Click-through URL of this companion click-through override. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CreativeId: ID of the creative for this companion click-through - // override. + // CreativeId: ID of the creative for this companion click-through override. CreativeId int64 `json:"creativeId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { +func (s CompanionClickThroughOverride) MarshalJSON() ([]byte, error) { type NoMethod CompanionClickThroughOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompanionSetting: Companion Settings type CompanionSetting struct { - // CompanionsDisabled: Whether companions are disabled for this - // placement. + // CompanionsDisabled: Whether companions are disabled for this placement. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - - // EnabledSizes: Allowlist of companion sizes to be served to this - // placement. Set this list to null or empty to serve all companion - // sizes. + // EnabledSizes: Allowlist of companion sizes to be served to this placement. + // Set this list to null or empty to serve all companion sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` - // ImageOnly: Whether to serve only static images as companions. ImageOnly bool `json:"imageOnly,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#companionSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#companionSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionsDisabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionsDisabled") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanionSetting) MarshalJSON() ([]byte, error) { +func (s CompanionSetting) MarshalJSON() ([]byte, error) { type NoMethod CompanionSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompatibleFields: Represents a response to the queryCompatibleFields -// method. +// CompatibleFields: Represents a response to the queryCompatibleFields method. type CompatibleFields struct { // CrossDimensionReachReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type - // "CROSS_DIMENSION_REACH". + // compatible to be selected for a report of type "CROSS_DIMENSION_REACH". CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"` - - // FloodlightReportCompatibleFields: Contains items that are compatible - // to be selected for a report of type "FLOODLIGHT". + // FloodlightReportCompatibleFields: Contains items that are compatible to be + // selected for a report of type "FLOODLIGHT". FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#compatibleFields. Kind string `json:"kind,omitempty"` - - // PathAttributionReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type "PATH_ATTRIBUTION". + // PathAttributionReportCompatibleFields: Contains items that are compatible to + // be selected for a report of type "PATH_ATTRIBUTION". PathAttributionReportCompatibleFields *PathReportCompatibleFields `json:"pathAttributionReportCompatibleFields,omitempty"` - // PathReportCompatibleFields: Contains items that are compatible to be // selected for a report of type "PATH". PathReportCompatibleFields *PathReportCompatibleFields `json:"pathReportCompatibleFields,omitempty"` - - // PathToConversionReportCompatibleFields: Contains items that are - // compatible to be selected for a report of type "PATH_TO_CONVERSION". + // PathToConversionReportCompatibleFields: Contains items that are compatible + // to be selected for a report of type "PATH_TO_CONVERSION". PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"` - // ReachReportCompatibleFields: Contains items that are compatible to be // selected for a report of type "REACH". ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"` - - // ReportCompatibleFields: Contains items that are compatible to be - // selected for a report of type "STANDARD". + // ReportCompatibleFields: Contains items that are compatible to be selected + // for a report of type "STANDARD". ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to unconditionally - // include in API requests. By default, fields with empty or default - // values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to unconditionally include in + // API requests. By default, fields with empty or default values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "CrossDimensionReachReportCompatibleFields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // "CrossDimensionReachReportCompatibleFields") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted from + // API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields + // for more details. NullFields []string `json:"-"` } -func (s *CompatibleFields) MarshalJSON() ([]byte, error) { +func (s CompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConnectionType: Contains information about an internet connection -// type that can be targeted by ads. Clients can use the connection type -// to target mobile vs. broadband users. +// ConnectionType: Contains information about an internet connection type that +// can be targeted by ads. Clients can use the connection type to target mobile +// vs. broadband users. type ConnectionType struct { // Id: ID of this connection type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionType". Kind string `json:"kind,omitempty"` - // Name: Name of this connection type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionType) MarshalJSON() ([]byte, error) { +func (s ConnectionType) MarshalJSON() ([]byte, error) { type NoMethod ConnectionType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConnectionTypesListResponse: Connection Type List Response @@ -3210,247 +2661,189 @@ type ConnectionTypesListResponse struct { // ConnectionTypes: Collection of connection types such as broadband and // mobile. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#connectionTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#connectionTypesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConnectionTypes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConnectionTypes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConnectionTypes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { +func (s ConnectionTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ConnectionTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContentCategoriesListResponse: Content Category List Response type ContentCategoriesListResponse struct { // ContentCategories: Content category collection. ContentCategories []*ContentCategory `json:"contentCategories,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategoriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategoriesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ContentCategories") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentCategories") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentCategories") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentCategories") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { +func (s ContentCategoriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ContentCategoriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentCategory: Organizes placements according to the contents of -// their associated webpages. +// ContentCategory: Organizes placements according to the contents of their +// associated webpages. type ContentCategory struct { - // AccountId: Account ID of this content category. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this content category. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this content category. This is a read-only, auto-generated - // field. + // Id: ID of this content category. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#contentCategory". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#contentCategory". Kind string `json:"kind,omitempty"` - - // Name: Name of this content category. This is a required field and - // must be less than 256 characters long and unique among content - // categories of the same account. + // Name: Name of this content category. This is a required field and must be + // less than 256 characters long and unique among content categories of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentCategory) MarshalJSON() ([]byte, error) { +func (s ContentCategory) MarshalJSON() ([]byte, error) { type NoMethod ContentCategory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Conversion: A Conversion represents when a user successfully performs -// a desired action after seeing an ad. +// Conversion: A Conversion represents when a user successfully performs a +// desired action after seeing an ad. type Conversion struct { - // ChildDirectedTreatment: Whether this particular request may come from - // a user under the age of 13, under COPPA compliance. + // ChildDirectedTreatment: Whether this particular request may come from a user + // under the age of 13, under COPPA compliance. ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"` - - // CustomVariables: Custom floodlight variables. This field may only be - // used when calling batchinsert; it is not supported by batchupdate. + // CustomVariables: Custom floodlight variables. This field may only be used + // when calling batchinsert; it is not supported by batchupdate. CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"` - // Dclid: The display click ID. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId - // and gclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // matchId or mobileDeviceId or gclid is a required field. + // encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId and + // gclid. This or encryptedUserId or encryptedUserIdCandidates[] or matchId or + // mobileDeviceId or gclid is a required field. Dclid string `json:"dclid,omitempty"` - // EncryptedUserId: The alphanumeric encrypted user ID. When set, - // encryptionInfo should also be specified. This field is mutually - // exclusive with encryptedUserIdCandidates[], matchId, mobileDeviceId, - // gclid and dclid. This or encryptedUserIdCandidates[] or matchId or - // mobileDeviceId or gclid or dclid is a required field. + // encryptionInfo should also be specified. This field is mutually exclusive + // with encryptedUserIdCandidates[], matchId, mobileDeviceId, gclid and dclid. + // This or encryptedUserIdCandidates[] or matchId or mobileDeviceId or gclid or + // dclid is a required field. EncryptedUserId string `json:"encryptedUserId,omitempty"` - - // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user - // IDs. Any user ID with exposure prior to the conversion timestamp will - // be used in the inserted conversion. If no such user ID is found then - // the conversion will be rejected with INVALID_ARGUMENT error. When - // set, encryptionInfo should also be specified. This field may only be - // used when calling batchinsert; it is not supported by batchupdate. - // This field is mutually exclusive with encryptedUserId, matchId, - // mobileDeviceId, gclid and dclid. This or encryptedUserId or matchId - // or mobileDeviceId or gclid or dclid is a required field. + // EncryptedUserIdCandidates: A list of the alphanumeric encrypted user IDs. + // Any user ID with exposure prior to the conversion timestamp will be used in + // the inserted conversion. If no such user ID is found then the conversion + // will be rejected with INVALID_ARGUMENT error. When set, encryptionInfo + // should also be specified. This field may only be used when calling + // batchinsert; it is not supported by batchupdate. This field is mutually + // exclusive with encryptedUserId, matchId, mobileDeviceId, gclid and dclid. + // This or encryptedUserId or matchId or mobileDeviceId or gclid or dclid is a + // required field. EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"` - - // FloodlightActivityId: Floodlight Activity ID of this conversion. This - // is a required field. + // FloodlightActivityId: Floodlight Activity ID of this conversion. This is a + // required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightConfigurationId: Floodlight Configuration ID of this - // conversion. This is a required field. + // FloodlightConfigurationId: Floodlight Configuration ID of this conversion. + // This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - // Gclid: The Google click ID. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId - // and dclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // matchId or mobileDeviceId or dclid is a required field. + // encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId and + // dclid. This or encryptedUserId or encryptedUserIdCandidates[] or matchId or + // mobileDeviceId or dclid is a required field. Gclid string `json:"gclid,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversion". Kind string `json:"kind,omitempty"` - - // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to - // true, the conversion will be used for reporting but not targeting. - // This will prevent remarketing. + // LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to true, the + // conversion will be used for reporting but not targeting. This will prevent + // remarketing. LimitAdTracking bool `json:"limitAdTracking,omitempty"` - - // MatchId: The match ID field. A match ID is your own first-party - // identifier that has been synced with Google using the match ID - // feature in Floodlight. This field is mutually exclusive with - // encryptedUserId, encryptedUserIdCandidates[],mobileDeviceId, gclid - // and dclid. This or encryptedUserId or encryptedUserIdCandidates[] or - // mobileDeviceId or gclid or dclid is a required field. + // MatchId: The match ID field. A match ID is your own first-party identifier + // that has been synced with Google using the match ID feature in Floodlight. + // This field is mutually exclusive with encryptedUserId, + // encryptedUserIdCandidates[],mobileDeviceId, gclid and dclid. This or + // encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId or gclid or + // dclid is a required field. MatchId string `json:"matchId,omitempty"` - - // MobileDeviceId: The mobile device ID. This field is mutually - // exclusive with encryptedUserId, encryptedUserIdCandidates[], matchId, - // gclid and dclid. This or encryptedUserId or - // encryptedUserIdCandidates[] or matchId or gclid or dclid is a - // required field. + // MobileDeviceId: The mobile device ID. This field is mutually exclusive with + // encryptedUserId, encryptedUserIdCandidates[], matchId, gclid and dclid. This + // or encryptedUserId or encryptedUserIdCandidates[] or matchId or gclid or + // dclid is a required field. MobileDeviceId string `json:"mobileDeviceId,omitempty"` - - // NonPersonalizedAd: Whether the conversion was for a non personalized - // ad. + // NonPersonalizedAd: Whether the conversion was for a non personalized ad. NonPersonalizedAd bool `json:"nonPersonalizedAd,omitempty"` - // Ordinal: The ordinal of the conversion. Use this field to control how - // conversions of the same user and day are de-duplicated. This is a - // required field. + // conversions of the same user and day are de-duplicated. This is a required + // field. Ordinal string `json:"ordinal,omitempty"` - // Quantity: The quantity of the conversion. Quantity int64 `json:"quantity,omitempty,string"` - - // TimestampMicros: The timestamp of conversion, in Unix epoch micros. - // This is a required field. + // TimestampMicros: The timestamp of conversion, in Unix epoch micros. This is + // a required field. TimestampMicros int64 `json:"timestampMicros,omitempty,string"` - - // TreatmentForUnderage: Whether this particular request may come from a - // user under the age of 16 (may differ by country), under compliance - // with the European Union's General Data Protection Regulation (GDPR). + // TreatmentForUnderage: Whether this particular request may come from a user + // under the age of 16 (may differ by country), under compliance with the + // European Union's General Data Protection Regulation (GDPR). TreatmentForUnderage bool `json:"treatmentForUnderage,omitempty"` - // Value: The value of the conversion. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ChildDirectedTreatment") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ChildDirectedTreatment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChildDirectedTreatment") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ChildDirectedTreatment") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Conversion) MarshalJSON() ([]byte, error) { +func (s Conversion) MarshalJSON() ([]byte, error) { type NoMethod Conversion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Conversion) UnmarshalJSON(data []byte) error { @@ -3467,8 +2860,8 @@ func (s *Conversion) UnmarshalJSON(data []byte) error { return nil } -// ConversionError: The error code and description for a conversion that -// failed to insert or update. +// ConversionError: The error code and description for a conversion that failed +// to insert or update. type ConversionError struct { // Code: The error code. // @@ -3478,357 +2871,274 @@ type ConversionError struct { // "PERMISSION_DENIED" // "NOT_FOUND" Code string `json:"code,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionError". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionError". Kind string `json:"kind,omitempty"` - // Message: A description of the error. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionError) MarshalJSON() ([]byte, error) { +func (s ConversionError) MarshalJSON() ([]byte, error) { type NoMethod ConversionError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConversionStatus: The original conversion that was inserted or -// updated and whether there were any errors. +// ConversionStatus: The original conversion that was inserted or updated and +// whether there were any errors. type ConversionStatus struct { // Conversion: The original conversion that was inserted or updated. Conversion *Conversion `json:"conversion,omitempty"` - // Errors: A list of errors related to this conversion. Errors []*ConversionError `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionStatus". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionStatus". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionStatus) MarshalJSON() ([]byte, error) { +func (s ConversionStatus) MarshalJSON() ([]byte, error) { type NoMethod ConversionStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertRequest: Insert Conversions Request. type ConversionsBatchInsertRequest struct { // Conversions: The set of conversions to insert. Conversions []*Conversion `json:"conversions,omitempty"` - - // EncryptionInfo: Describes how encryptedUserId or - // encryptedUserIdCandidates[] is encrypted. This is a required field if - // encryptedUserId or encryptedUserIdCandidates[] is used. + // EncryptionInfo: Describes how encryptedUserId or encryptedUserIdCandidates[] + // is encrypted. This is a required field if encryptedUserId or + // encryptedUserIdCandidates[] is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchInsertResponse: Insert Conversions Response. type ConversionsBatchInsertResponse struct { // HasFailures: Indicates that some or all conversions failed to insert. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchInsertResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchInsertResponse". Kind string `json:"kind,omitempty"` - - // Status: The insert status of each conversion. Statuses are returned - // in the same order that conversions are inserted. + // Status: The insert status of each conversion. Statuses are returned in the + // same order that conversions are inserted. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchInsertResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchUpdateRequest: Update Conversions Request. type ConversionsBatchUpdateRequest struct { // Conversions: The set of conversions to update. Conversions []*Conversion `json:"conversions,omitempty"` - // EncryptionInfo: Describes how encryptedUserId is encrypted. This is a // required field if encryptedUserId is used. EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchUpdateRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchUpdateRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConversionsBatchUpdateResponse: Update Conversions Response. type ConversionsBatchUpdateResponse struct { // HasFailures: Indicates that some or all conversions failed to update. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#conversionsBatchUpdateResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#conversionsBatchUpdateResponse". Kind string `json:"kind,omitempty"` - - // Status: The update status of each conversion. Statuses are returned - // in the same order that conversions are updated. + // Status: The update status of each conversion. Statuses are returned in the + // same order that conversions are updated. Status []*ConversionStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { +func (s ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) { type NoMethod ConversionsBatchUpdateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CountriesListResponse: Country List Response type CountriesListResponse struct { // Countries: Country collection. Countries []*Country `json:"countries,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#countriesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#countriesListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Countries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Countries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Countries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CountriesListResponse) MarshalJSON() ([]byte, error) { +func (s CountriesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CountriesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Country: Contains information about a country that can be targeted by -// ads. +// Country: Contains information about a country that can be targeted by ads. type Country struct { // CountryCode: Country code. CountryCode string `json:"countryCode,omitempty"` - - // DartId: DART ID of this country. This is the ID used for targeting - // and generating reports. + // DartId: DART ID of this country. This is the ID used for targeting and + // generating reports. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#country". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#country". Kind string `json:"kind,omitempty"` - // Name: Name of this country. Name string `json:"name,omitempty"` - - // SslEnabled: Whether ad serving supports secure servers in this - // country. + // SslEnabled: Whether ad serving supports secure servers in this country. SslEnabled bool `json:"sslEnabled,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Country) MarshalJSON() ([]byte, error) { +func (s Country) MarshalJSON() ([]byte, error) { type NoMethod Country - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Creative: Contains properties of a Creative. type Creative struct { - // AccountId: Account ID of this creative. This field, if left unset, - // will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // AccountId: Account ID of this creative. This field, if left unset, will be + // auto-generated for both insert and update operations. Applicable to all + // creative types. AccountId int64 `json:"accountId,omitempty,string"` - - // Active: Whether the creative is active. Applicable to all creative - // types. + // Active: Whether the creative is active. Applicable to all creative types. Active bool `json:"active,omitempty"` - - // AdParameters: Ad parameters user for VPAID creative. This is a - // read-only field. Applicable to the following creative types: all - // VPAID. + // AdParameters: Ad parameters user for VPAID creative. This is a read-only + // field. Applicable to the following creative types: all VPAID. AdParameters string `json:"adParameters,omitempty"` - - // AdTagKeys: Keywords for a Rich Media creative. Keywords let you - // customize the creative settings of a Rich Media ad running on your - // site without having to contact the advertiser. You can use keywords - // to dynamically change the look or functionality of a creative. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // AdTagKeys: Keywords for a Rich Media creative. Keywords let you customize + // the creative settings of a Rich Media ad running on your site without having + // to contact the advertiser. You can use keywords to dynamically change the + // look or functionality of a creative. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. AdTagKeys []string `json:"adTagKeys,omitempty"` - - // AdditionalSizes: Additional sizes associated with a responsive - // creative. When inserting or updating a creative either the size ID - // field or size width and height fields can be used. Applicable to - // DISPLAY creatives when the primary asset type is HTML_IMAGE. + // AdditionalSizes: Additional sizes associated with a responsive creative. + // When inserting or updating a creative either the size ID field or size width + // and height fields can be used. Applicable to DISPLAY creatives when the + // primary asset type is HTML_IMAGE. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // AdvertiserId: Advertiser ID of this creative. This is a required - // field. Applicable to all creative types. + // AdvertiserId: Advertiser ID of this creative. This is a required field. + // Applicable to all creative types. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AllowScriptAccess: Whether script access is allowed for this - // creative. This is a read-only and deprecated field which will - // automatically be set to true on update. Applicable to the following - // creative types: FLASH_INPAGE. + // AllowScriptAccess: Whether script access is allowed for this creative. This + // is a read-only and deprecated field which will automatically be set to true + // on update. Applicable to the following creative types: FLASH_INPAGE. AllowScriptAccess bool `json:"allowScriptAccess,omitempty"` - - // Archived: Whether the creative is archived. Applicable to all - // creative types. + // Archived: Whether the creative is archived. Applicable to all creative + // types. Archived bool `json:"archived,omitempty"` - - // ArtworkType: Type of artwork used for the creative. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // ArtworkType: Type of artwork used for the creative. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -3836,10 +3146,9 @@ type Creative struct { // "ARTWORK_TYPE_MIXED" // "ARTWORK_TYPE_IMAGE" ArtworkType string `json:"artworkType,omitempty"` - - // AuthoringSource: Source application where creative was authored. - // Presently, only DBM authored creatives will have this field set. - // Applicable to all creative types. + // AuthoringSource: Source application where creative was authored. Presently, + // only DBM authored creatives will have this field set. Applicable to all + // creative types. // // Possible values: // "CREATIVE_AUTHORING_SOURCE_DCM" @@ -3847,42 +3156,33 @@ type Creative struct { // "CREATIVE_AUTHORING_SOURCE_STUDIO" // "CREATIVE_AUTHORING_SOURCE_GWD" AuthoringSource string `json:"authoringSource,omitempty"` - // AuthoringTool: Authoring tool for HTML5 banner creatives. This is a - // read-only field. Applicable to the following creative types: - // HTML5_BANNER. + // read-only field. Applicable to the following creative types: HTML5_BANNER. // // Possible values: // "NINJA" // "SWIFFY" AuthoringTool string `json:"authoringTool,omitempty"` - - // AutoAdvanceImages: Whether images are automatically advanced for - // image gallery creatives. Applicable to the following creative types: + // AutoAdvanceImages: Whether images are automatically advanced for image + // gallery creatives. Applicable to the following creative types: // DISPLAY_IMAGE_GALLERY. AutoAdvanceImages bool `json:"autoAdvanceImages,omitempty"` - - // BackgroundColor: The 6-character HTML color code, beginning with #, - // for the background of the window area where the Flash file is - // displayed. Default is white. Applicable to the following creative - // types: FLASH_INPAGE. + // BackgroundColor: The 6-character HTML color code, beginning with #, for the + // background of the window area where the Flash file is displayed. Default is + // white. Applicable to the following creative types: FLASH_INPAGE. BackgroundColor string `json:"backgroundColor,omitempty"` - - // BackupImageClickThroughUrl: Click-through URL for backup image. - // Applicable to ENHANCED_BANNER when the primary asset type is not - // HTML_IMAGE. + // BackupImageClickThroughUrl: Click-through URL for backup image. Applicable + // to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. BackupImageClickThroughUrl *CreativeClickThroughUrl `json:"backupImageClickThroughUrl,omitempty"` - - // BackupImageFeatures: List of feature dependencies that will cause a - // backup image to be served if the browser that serves the ad does not - // support them. Feature dependencies are features that a browser must - // be able to support in order to render your HTML5 creative asset - // correctly. This field is initially auto-generated to contain all - // features detected by Campaign Manager for all the assets of this - // creative and can then be modified by the client. To reset this field, - // copy over all the creativeAssets' detected features. Applicable to - // the following creative types: HTML5_BANNER. Applicable to DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageFeatures: List of feature dependencies that will cause a backup + // image to be served if the browser that serves the ad does not support them. + // Feature dependencies are features that a browser must be able to support in + // order to render your HTML5 creative asset correctly. This field is initially + // auto-generated to contain all features detected by Campaign Manager for all + // the assets of this creative and can then be modified by the client. To reset + // this field, copy over all the creativeAssets' detected features. Applicable + // to the following creative types: HTML5_BANNER. Applicable to DISPLAY when + // the primary asset type is not HTML_IMAGE. // // Possible values: // "CSS_FONT_FACE" @@ -3952,56 +3252,47 @@ type Creative struct { // "SVG_FILTERS" // "SVG_FE_IMAGE" BackupImageFeatures []string `json:"backupImageFeatures,omitempty"` - - // BackupImageReportingLabel: Reporting label used for HTML5 banner - // backup image. Applicable to the following creative types: DISPLAY - // when the primary asset type is not HTML_IMAGE. + // BackupImageReportingLabel: Reporting label used for HTML5 banner backup + // image. Applicable to the following creative types: DISPLAY when the primary + // asset type is not HTML_IMAGE. BackupImageReportingLabel string `json:"backupImageReportingLabel,omitempty"` - - // BackupImageTargetWindow: Target window for backup image. Applicable - // to the following creative types: FLASH_INPAGE and HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // BackupImageTargetWindow: Target window for backup image. Applicable to the + // following creative types: FLASH_INPAGE and HTML5_BANNER. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"` - // ClickTags: Click tags of the creative. For DISPLAY, FLASH_INPAGE, and - // HTML5_BANNER creatives, this is a subset of detected click tags for - // the assets associated with this creative. After creating a flash - // asset, detected click tags will be returned in the - // creativeAssetMetadata. When inserting the creative, populate the - // creative clickTags field using the creativeAssetMetadata.clickTags - // field. For DISPLAY_IMAGE_GALLERY creatives, there should be exactly - // one entry in this list for each image creative asset. A click tag is - // matched with a corresponding creative asset by matching the - // clickTag.name field with the creativeAsset.assetIdentifier.name - // field. Applicable to the following creative types: - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. Applicable to - // DISPLAY when the primary asset type is not HTML_IMAGE. + // HTML5_BANNER creatives, this is a subset of detected click tags for the + // assets associated with this creative. After creating a flash asset, detected + // click tags will be returned in the creativeAssetMetadata. When inserting the + // creative, populate the creative clickTags field using the + // creativeAssetMetadata.clickTags field. For DISPLAY_IMAGE_GALLERY creatives, + // there should be exactly one entry in this list for each image creative + // asset. A click tag is matched with a corresponding creative asset by + // matching the clickTag.name field with the creativeAsset.assetIdentifier.name + // field. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, + // FLASH_INPAGE, HTML5_BANNER. Applicable to DISPLAY when the primary asset + // type is not HTML_IMAGE. ClickTags []*ClickTag `json:"clickTags,omitempty"` - // CommercialId: Industry standard ID assigned to creative for reach and // frequency. Applicable to INSTREAM_VIDEO_REDIRECT creatives. CommercialId string `json:"commercialId,omitempty"` - - // CompanionCreatives: List of companion creatives assigned to an - // in-Stream video creative. Acceptable values include IDs of existing - // flash and image creatives. Applicable to the following creative - // types: all VPAID, all INSTREAM_AUDIO and all INSTREAM_VIDEO with - // dynamicAssetSelection set to false. + // CompanionCreatives: List of companion creatives assigned to an in-Stream + // video creative. Acceptable values include IDs of existing flash and image + // creatives. Applicable to the following creative types: all VPAID, all + // INSTREAM_AUDIO and all INSTREAM_VIDEO with dynamicAssetSelection set to + // false. CompanionCreatives googleapi.Int64s `json:"companionCreatives,omitempty"` - - // Compatibility: Compatibilities associated with this creative. This is - // a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to - // rendering either on desktop or on mobile devices or in mobile apps - // for regular or interstitial ads, respectively. APP and - // APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing - // creatives may have these compatibilities since new creatives will - // either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. IN_STREAM_AUDIO refers to rendering in - // in-stream audio ads developed with the VAST standard. Applicable to - // all creative types. Acceptable values are: - "APP" - - // "APP_INTERSTITIAL" - "IN_STREAM_VIDEO" - "IN_STREAM_AUDIO" - - // "DISPLAY" - "DISPLAY_INTERSTITIAL" + // Compatibility: Compatibilities associated with this creative. This is a + // read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either + // on desktop or on mobile devices or in mobile apps for regular or + // interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering + // in mobile apps. Only pre-existing creatives may have these compatibilities + // since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL + // instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads + // developed with the VAST standard. IN_STREAM_AUDIO refers to rendering in + // in-stream audio ads developed with the VAST standard. Applicable to all + // creative types. Acceptable values are: - "APP" - "APP_INTERSTITIAL" - + // "IN_STREAM_VIDEO" - "IN_STREAM_AUDIO" - "DISPLAY" - "DISPLAY_INTERSTITIAL" // // Possible values: // "DISPLAY" @@ -4011,237 +3302,180 @@ type Creative struct { // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility []string `json:"compatibility,omitempty"` - - // ConvertFlashToHtml5: Whether Flash assets associated with the - // creative need to be automatically converted to HTML5. This flag is - // enabled by default and users can choose to disable it if they don't - // want the system to generate and use HTML5 asset for this creative. - // Applicable to the following creative type: FLASH_INPAGE. Applicable - // to DISPLAY when the primary asset type is not HTML_IMAGE. + // ConvertFlashToHtml5: Whether Flash assets associated with the creative need + // to be automatically converted to HTML5. This flag is enabled by default and + // users can choose to disable it if they don't want the system to generate and + // use HTML5 asset for this creative. Applicable to the following creative + // type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. ConvertFlashToHtml5 bool `json:"convertFlashToHtml5,omitempty"` - - // CounterCustomEvents: List of counter events configured for the - // creative. For DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. + // CounterCustomEvents: List of counter events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"` - // CreativeAssetSelection: Required if dynamicAssetSelection is true. CreativeAssetSelection *CreativeAssetSelection `json:"creativeAssetSelection,omitempty"` - - // CreativeAssets: Assets associated with a creative. Applicable to all - // but the following creative types: INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT + // CreativeAssets: Assets associated with a creative. Applicable to all but the + // following creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, + // and REDIRECT CreativeAssets []*CreativeAsset `json:"creativeAssets,omitempty"` - - // CreativeFieldAssignments: Creative field assignments for this - // creative. Applicable to all creative types. + // CreativeFieldAssignments: Creative field assignments for this creative. + // Applicable to all creative types. CreativeFieldAssignments []*CreativeFieldAssignment `json:"creativeFieldAssignments,omitempty"` - - // CustomKeyValues: Custom key-values for a Rich Media creative. - // Key-values let you customize the creative settings of a Rich Media ad - // running on your site without having to contact the advertiser. You - // can use key-values to dynamically change the look or functionality of - // a creative. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // CustomKeyValues: Custom key-values for a Rich Media creative. Key-values let + // you customize the creative settings of a Rich Media ad running on your site + // without having to contact the advertiser. You can use key-values to + // dynamically change the look or functionality of a creative. Applicable to + // the following creative types: all RICH_MEDIA, and all VPAID. CustomKeyValues []string `json:"customKeyValues,omitempty"` - - // DynamicAssetSelection: Set this to true to enable the use of rules to - // target individual assets in this creative. When set to true - // creativeAssetSelection must be set. This also controls asset-level - // companions. When this is true, companion creatives should be assigned - // to creative assets. Learn more. Applicable to INSTREAM_VIDEO - // creatives. + // DynamicAssetSelection: Set this to true to enable the use of rules to target + // individual assets in this creative. When set to true creativeAssetSelection + // must be set. This also controls asset-level companions. When this is true, + // companion creatives should be assigned to creative assets. Learn more. + // Applicable to INSTREAM_VIDEO creatives. DynamicAssetSelection bool `json:"dynamicAssetSelection,omitempty"` - - // ExitCustomEvents: List of exit events configured for the creative. - // For DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only - // and auto-generated from clickTags, For DISPLAY, an event is also - // created from the backupImageReportingLabel. Applicable to the - // following creative types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and - // all VPAID. Applicable to DISPLAY when the primary asset type is not - // HTML_IMAGE. + // ExitCustomEvents: List of exit events configured for the creative. For + // DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only and + // auto-generated from clickTags, For DISPLAY, an event is also created from + // the backupImageReportingLabel. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset type is not HTML_IMAGE. ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"` - - // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF - // file communicate with either Flash Player or the program hosting - // Flash Player, such as a web browser. This is only triggered if - // allowScriptAccess field is true. Applicable to the following creative - // types: FLASH_INPAGE. + // FsCommand: OpenWindow FSCommand of this creative. This lets the SWF file + // communicate with either Flash Player or the program hosting Flash Player, + // such as a web browser. This is only triggered if allowScriptAccess field is + // true. Applicable to the following creative types: FLASH_INPAGE. FsCommand *FsCommand `json:"fsCommand,omitempty"` - // HtmlCode: HTML code for the creative. This is a required field when - // applicable. This field is ignored if htmlCodeLocked is true. - // Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, - // and HTML5_BANNER, and all RICH_MEDIA. + // applicable. This field is ignored if htmlCodeLocked is true. Applicable to + // the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, + // and all RICH_MEDIA. HtmlCode string `json:"htmlCode,omitempty"` - // HtmlCodeLocked: Whether HTML code is generated by Campaign Manager or - // manually entered. Set to true to ignore changes to htmlCode. - // Applicable to the following creative types: FLASH_INPAGE and - // HTML5_BANNER. + // manually entered. Set to true to ignore changes to htmlCode. Applicable to + // the following creative types: FLASH_INPAGE and HTML5_BANNER. HtmlCodeLocked bool `json:"htmlCodeLocked,omitempty"` - // Id: ID of this creative. This is a read-only, auto-generated field. // Applicable to all creative types. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this creative. This - // is a read-only field. Applicable to all creative types. + // IdDimensionValue: Dimension value for the ID of this creative. This is a + // read-only field. Applicable to all creative types. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creative". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creative". Kind string `json:"kind,omitempty"` - // LastModifiedInfo: Creative last modification information. This is a // read-only field. Applicable to all creative types. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // LatestTraffickedCreativeId: Latest Studio trafficked creative ID - // associated with rich media and VPAID creatives. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // LatestTraffickedCreativeId: Latest Studio trafficked creative ID associated + // with rich media and VPAID creatives. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA, and all VPAID. LatestTraffickedCreativeId int64 `json:"latestTraffickedCreativeId,omitempty,string"` - - // MediaDescription: Description of the audio or video ad. Applicable to - // the following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and - // all VPAID. + // MediaDescription: Description of the audio or video ad. Applicable to the + // following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and all VPAID. MediaDescription string `json:"mediaDescription,omitempty"` - // MediaDuration: Creative audio or video duration in seconds. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO, INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID. + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO, + // INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID. MediaDuration float64 `json:"mediaDuration,omitempty"` - - // Name: Name of the creative. This is a required field and must be less - // than 256 characters long. Applicable to all creative types. + // Name: Name of the creative. This is a required field and must be less than + // 256 characters long. Applicable to all creative types. Name string `json:"name,omitempty"` - - // ObaIcon: Online behavioral advertising icon to be added to the - // creative. Applicable to the following creative types: all - // INSTREAM_VIDEO. + // ObaIcon: Online behavioral advertising icon to be added to the creative. + // Applicable to the following creative types: all INSTREAM_VIDEO. ObaIcon *ObaIcon `json:"obaIcon,omitempty"` - - // OverrideCss: Override CSS value for rich media creatives. Applicable - // to the following creative types: all RICH_MEDIA. + // OverrideCss: Override CSS value for rich media creatives. Applicable to the + // following creative types: all RICH_MEDIA. OverrideCss string `json:"overrideCss,omitempty"` - - // ProgressOffset: Amount of time to play the video before counting a - // view. Applicable to the following creative types: all INSTREAM_VIDEO. + // ProgressOffset: Amount of time to play the video before counting a view. + // Applicable to the following creative types: all INSTREAM_VIDEO. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // RedirectUrl: URL of hosted image or hosted video or another ad tag. - // For INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video - // redirect URL. The standard for a VAST (Video Ad Serving Template) ad - // response allows for a redirect link to another VAST 2.0 or 3.0 call. - // This is a required field when applicable. Applicable to the following - // creative types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, - // INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT + // RedirectUrl: URL of hosted image or hosted video or another ad tag. For + // INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. + // The standard for a VAST (Video Ad Serving Template) ad response allows for a + // redirect link to another VAST 2.0 or 3.0 call. This is a required field when + // applicable. Applicable to the following creative types: DISPLAY_REDIRECT, + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and + // INSTREAM_VIDEO_REDIRECT RedirectUrl string `json:"redirectUrl,omitempty"` - - // RenderingId: ID of current rendering version. This is a read-only - // field. Applicable to all creative types. + // RenderingId: ID of current rendering version. This is a read-only field. + // Applicable to all creative types. RenderingId int64 `json:"renderingId,omitempty,string"` - - // RenderingIdDimensionValue: Dimension value for the rendering ID of - // this creative. This is a read-only field. Applicable to all creative - // types. + // RenderingIdDimensionValue: Dimension value for the rendering ID of this + // creative. This is a read-only field. Applicable to all creative types. RenderingIdDimensionValue *DimensionValue `json:"renderingIdDimensionValue,omitempty"` - - // RequiredFlashPluginVersion: The minimum required Flash plugin version - // for this creative. For example, 11.2.202.235. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA, - // and all VPAID. + // RequiredFlashPluginVersion: The minimum required Flash plugin version for + // this creative. For example, 11.2.202.235. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA, and all VPAID. RequiredFlashPluginVersion string `json:"requiredFlashPluginVersion,omitempty"` - // RequiredFlashVersion: The internal Flash version for this creative as - // calculated by Studio. This is a read-only field. Applicable to the - // following creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // calculated by Studio. This is a read-only field. Applicable to the following + // creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to + // DISPLAY when the primary asset type is not HTML_IMAGE. RequiredFlashVersion int64 `json:"requiredFlashVersion,omitempty"` - - // Size: Size associated with this creative. When inserting or updating - // a creative either the size ID field or size width and height fields - // can be used. This is a required field when applicable; however for - // IMAGE, FLASH_INPAGE creatives, and for DISPLAY creatives with a - // primary asset of type HTML_IMAGE, if left blank, this field will be - // automatically set using the actual size of the associated image - // assets. Applicable to the following creative types: DISPLAY, - // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all - // RICH_MEDIA. + // Size: Size associated with this creative. When inserting or updating a + // creative either the size ID field or size width and height fields can be + // used. This is a required field when applicable; however for IMAGE, + // FLASH_INPAGE creatives, and for DISPLAY creatives with a primary asset of + // type HTML_IMAGE, if left blank, this field will be automatically set using + // the actual size of the associated image assets. Applicable to the following + // creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, + // IMAGE, and all RICH_MEDIA. Size *Size `json:"size,omitempty"` - - // SkipOffset: Amount of time to play the video before the skip button - // appears. Applicable to the following creative types: all - // INSTREAM_VIDEO. + // SkipOffset: Amount of time to play the video before the skip button appears. + // Applicable to the following creative types: all INSTREAM_VIDEO. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can choose to skip the creative. - // Applicable to the following creative types: all INSTREAM_VIDEO and - // all VPAID. + // Skippable: Whether the user can choose to skip the creative. Applicable to + // the following creative types: all INSTREAM_VIDEO and all VPAID. Skippable bool `json:"skippable,omitempty"` - - // SslCompliant: Whether the creative is SSL-compliant. This is a - // read-only field. Applicable to all creative types. + // SslCompliant: Whether the creative is SSL-compliant. This is a read-only + // field. Applicable to all creative types. SslCompliant bool `json:"sslCompliant,omitempty"` - - // SslOverride: Whether creative should be treated as SSL compliant even - // if the system scan shows it's not. Applicable to all creative types. + // SslOverride: Whether creative should be treated as SSL compliant even if the + // system scan shows it's not. Applicable to all creative types. SslOverride bool `json:"sslOverride,omitempty"` - - // StudioAdvertiserId: Studio advertiser ID associated with rich media - // and VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioAdvertiserId: Studio advertiser ID associated with rich media and + // VPAID creatives. This is a read-only field. Applicable to the following + // creative types: all RICH_MEDIA, and all VPAID. StudioAdvertiserId int64 `json:"studioAdvertiserId,omitempty,string"` - - // StudioCreativeId: Studio creative ID associated with rich media and - // VPAID creatives. This is a read-only field. Applicable to the - // following creative types: all RICH_MEDIA, and all VPAID. + // StudioCreativeId: Studio creative ID associated with rich media and VPAID + // creatives. This is a read-only field. Applicable to the following creative + // types: all RICH_MEDIA, and all VPAID. StudioCreativeId int64 `json:"studioCreativeId,omitempty,string"` - - // StudioTraffickedCreativeId: Studio trafficked creative ID associated - // with rich media and VPAID creatives. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA, and all - // VPAID. + // StudioTraffickedCreativeId: Studio trafficked creative ID associated with + // rich media and VPAID creatives. This is a read-only field. Applicable to the + // following creative types: all RICH_MEDIA, and all VPAID. StudioTraffickedCreativeId int64 `json:"studioTraffickedCreativeId,omitempty,string"` - - // SubaccountId: Subaccount ID of this creative. This field, if left - // unset, will be auto-generated for both insert and update operations. - // Applicable to all creative types. + // SubaccountId: Subaccount ID of this creative. This field, if left unset, + // will be auto-generated for both insert and update operations. Applicable to + // all creative types. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record - // backup image impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record backup + // image impressions. Applicable to the following creative types: all + // RICH_MEDIA. ThirdPartyBackupImageImpressionsUrl string `json:"thirdPartyBackupImageImpressionsUrl,omitempty"` - - // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record - // rich media impressions. Applicable to the following creative types: - // all RICH_MEDIA. + // ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record rich media + // impressions. Applicable to the following creative types: all RICH_MEDIA. ThirdPartyRichMediaImpressionsUrl string `json:"thirdPartyRichMediaImpressionsUrl,omitempty"` - - // ThirdPartyUrls: Third-party URLs for tracking in-stream creative - // events. Applicable to the following creative types: all - // INSTREAM_VIDEO, all INSTREAM_AUDIO, and all VPAID. + // ThirdPartyUrls: Third-party URLs for tracking in-stream creative events. + // Applicable to the following creative types: all INSTREAM_VIDEO, all + // INSTREAM_AUDIO, and all VPAID. ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"` - - // TimerCustomEvents: List of timer events configured for the creative. - // For DISPLAY_IMAGE_GALLERY creatives, these are read-only and - // auto-generated from clickTags. Applicable to the following creative - // types: DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. - // Applicable to DISPLAY when the primary asset is not HTML_IMAGE. + // TimerCustomEvents: List of timer events configured for the creative. For + // DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from + // clickTags. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + // when the primary asset is not HTML_IMAGE. TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"` - - // TotalFileSize: Combined size of all creative assets. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA, and all VPAID. + // TotalFileSize: Combined size of all creative assets. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA, and all + // VPAID. TotalFileSize int64 `json:"totalFileSize,omitempty,string"` - - // Type: Type of this creative. This is a required field. Applicable to - // all creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are - // only used for existing creatives. New creatives should use DISPLAY as - // a replacement for these types. + // Type: Type of this creative. This is a required field. Applicable to all + // creative types. *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used + // for existing creatives. New creatives should use DISPLAY as a replacement + // for these types. // // Possible values: // "IMAGE" @@ -4270,47 +3504,37 @@ type Creative struct { // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" // "INSTREAM_AUDIO" Type string `json:"type,omitempty"` - - // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable - // to the following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO - // and VPAID. + // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the + // following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO and VPAID. UniversalAdId *UniversalAdId `json:"universalAdId,omitempty"` - - // Version: The version number helps you keep track of multiple versions - // of your creative in your reports. The version number will always be + // Version: The version number helps you keep track of multiple versions of + // your creative in your reports. The version number will always be // auto-generated during insert operations to start at 1. For tracking - // creatives the version cannot be incremented and will always remain at - // 1. For all other creative types the version can be incremented only - // by 1 during update operations. In addition, the version will be - // automatically incremented by 1 when undergoing Rich Media creative - // merging. Applicable to all creative types. + // creatives the version cannot be incremented and will always remain at 1. For + // all other creative types the version can be incremented only by 1 during + // update operations. In addition, the version will be automatically + // incremented by 1 when undergoing Rich Media creative merging. Applicable to + // all creative types. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Creative) MarshalJSON() ([]byte, error) { +func (s Creative) MarshalJSON() ([]byte, error) { type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Creative) UnmarshalJSON(data []byte) error { @@ -4329,25 +3553,20 @@ func (s *Creative) UnmarshalJSON(data []byte) error { // CreativeAsset: Creative Asset. type CreativeAsset struct { - // ActionScript3: Whether ActionScript3 is enabled for the flash asset. - // This is a read-only field. Applicable to the following creative type: - // FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is - // not HTML_IMAGE. + // ActionScript3: Whether ActionScript3 is enabled for the flash asset. This is + // a read-only field. Applicable to the following creative type: FLASH_INPAGE. + // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ActionScript3 bool `json:"actionScript3,omitempty"` - - // Active: Whether the video or audio asset is active. This is a - // read-only field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the - // following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all - // VPAID. + // Active: Whether the video or audio asset is active. This is a read-only + // field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the following + // creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. Active bool `json:"active,omitempty"` - - // AdditionalSizes: Additional sizes associated with this creative - // asset. HTML5 asset generated by compatible software such as GWD will - // be able to support more sizes this creative asset can render. + // AdditionalSizes: Additional sizes associated with this creative asset. HTML5 + // asset generated by compatible software such as GWD will be able to support + // more sizes this creative asset can render. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // Alignment: Possible alignments for an asset. This is a read-only - // field. Applicable to the following creative types: + // Alignment: Possible alignments for an asset. This is a read-only field. + // Applicable to the following creative types: // RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL . // // Possible values: @@ -4356,9 +3575,8 @@ type CreativeAsset struct { // "ALIGNMENT_BOTTOM" // "ALIGNMENT_LEFT" Alignment string `json:"alignment,omitempty"` - - // ArtworkType: Artwork type of rich media creative. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // ArtworkType: Artwork type of rich media creative. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -4366,34 +3584,28 @@ type CreativeAsset struct { // "ARTWORK_TYPE_MIXED" // "ARTWORK_TYPE_IMAGE" ArtworkType string `json:"artworkType,omitempty"` - - // AssetIdentifier: Identifier of this asset. This is the same - // identifier returned during creative asset insert operation. This is a - // required field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // AssetIdentifier: Identifier of this asset. This is the same identifier + // returned during creative asset insert operation. This is a required field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // AudioBitRate: Audio stream bit rate in kbps. This is a read-only - // field. Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and all VPAID. + // AudioBitRate: Audio stream bit rate in kbps. This is a read-only field. + // Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO + // and all VPAID. AudioBitRate int64 `json:"audioBitRate,omitempty"` - - // AudioSampleRate: Audio sample bit rate in hertz. This is a read-only - // field. Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and all VPAID. + // AudioSampleRate: Audio sample bit rate in hertz. This is a read-only field. + // Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO + // and all VPAID. AudioSampleRate int64 `json:"audioSampleRate,omitempty"` - - // BackupImageExit: Exit event configured for the backup image. - // Applicable to the following creative types: all RICH_MEDIA. + // BackupImageExit: Exit event configured for the backup image. Applicable to + // the following creative types: all RICH_MEDIA. BackupImageExit *CreativeCustomEvent `json:"backupImageExit,omitempty"` - - // BitRate: Detected bit-rate for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // BitRate: Detected bit-rate for audio or video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. BitRate int64 `json:"bitRate,omitempty"` - - // ChildAssetType: Rich media child asset type. This is a read-only - // field. Applicable to the following creative types: all VPAID. + // ChildAssetType: Rich media child asset type. This is a read-only field. + // Applicable to the following creative types: all VPAID. // // Possible values: // "CHILD_ASSET_TYPE_FLASH" @@ -4401,30 +3613,26 @@ type CreativeAsset struct { // "CHILD_ASSET_TYPE_IMAGE" // "CHILD_ASSET_TYPE_DATA" ChildAssetType string `json:"childAssetType,omitempty"` - - // CollapsedSize: Size of an asset when collapsed. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA and - // all VPAID. Additionally, applicable to assets whose displayType is + // CollapsedSize: Size of an asset when collapsed. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA and all VPAID. + // Additionally, applicable to assets whose displayType is // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. CollapsedSize *Size `json:"collapsedSize,omitempty"` - - // CompanionCreativeIds: List of companion creatives assigned to an - // in-stream video creative asset. Acceptable values include IDs of - // existing flash and image creatives. Applicable to INSTREAM_VIDEO - // creative type with dynamicAssetSelection set to true. + // CompanionCreativeIds: List of companion creatives assigned to an in-stream + // video creative asset. Acceptable values include IDs of existing flash and + // image creatives. Applicable to INSTREAM_VIDEO creative type with + // dynamicAssetSelection set to true. CompanionCreativeIds googleapi.Int64s `json:"companionCreativeIds,omitempty"` - - // CustomStartTimeValue: Custom start time in seconds for making the - // asset visible. Applicable to the following creative types: all - // RICH_MEDIA. Value must be greater than or equal to 0. + // CustomStartTimeValue: Custom start time in seconds for making the asset + // visible. Applicable to the following creative types: all RICH_MEDIA. Value + // must be greater than or equal to 0. CustomStartTimeValue int64 `json:"customStartTimeValue,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. Applicable to the following creative types: HTML5_BANNER. - // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by Campaign Manager. Feature dependencies are features that a + // browser must be able to support in order to render your HTML5 creative + // correctly. This is a read-only, auto-generated field. Applicable to the + // following creative types: HTML5_BANNER. Applicable to DISPLAY when the + // primary asset type is not HTML_IMAGE. // // Possible values: // "CSS_FONT_FACE" @@ -4494,9 +3702,8 @@ type CreativeAsset struct { // "SVG_FILTERS" // "SVG_FE_IMAGE" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // DisplayType: Type of rich media asset. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA. + // DisplayType: Type of rich media asset. This is a read-only field. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DISPLAY_TYPE_INPAGE" @@ -4510,169 +3717,137 @@ type CreativeAsset struct { // "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" // "ASSET_DISPLAY_TYPE_BACKDROP" DisplayType string `json:"displayType,omitempty"` - // Duration: Duration in seconds for which an asset will be displayed. - // Applicable to the following creative types: INSTREAM_AUDIO, - // INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or - // equal to 1. + // Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO + // and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1. Duration int64 `json:"duration,omitempty"` - - // DurationType: Duration type for which an asset will be displayed. - // Applicable to the following creative types: all RICH_MEDIA. + // DurationType: Duration type for which an asset will be displayed. Applicable + // to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_DURATION_TYPE_AUTO" // "ASSET_DURATION_TYPE_NONE" // "ASSET_DURATION_TYPE_CUSTOM" DurationType string `json:"durationType,omitempty"` - - // ExpandedDimension: Detected expanded dimension for video asset. This - // is a read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ExpandedDimension: Detected expanded dimension for video asset. This is a + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO + // and all VPAID. ExpandedDimension *Size `json:"expandedDimension,omitempty"` - - // FileSize: File size associated with this creative asset. This is a - // read-only field. Applicable to all but the following creative types: - // all REDIRECT and TRACKING_TEXT. + // FileSize: File size associated with this creative asset. This is a read-only + // field. Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. FileSize int64 `json:"fileSize,omitempty,string"` - // FlashVersion: Flash version of the asset. This is a read-only field. - // Applicable to the following creative types: FLASH_INPAGE, all - // RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Applicable to the following creative types: FLASH_INPAGE, all RICH_MEDIA, + // and all VPAID. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. FlashVersion int64 `json:"flashVersion,omitempty"` - - // FrameRate: Video frame rate for video asset in frames per second. - // This is a read-only field. Applicable to the following creative - // types: INSTREAM_VIDEO and all VPAID. + // FrameRate: Video frame rate for video asset in frames per second. This is a + // read-only field. Applicable to the following creative types: INSTREAM_VIDEO + // and all VPAID. FrameRate float64 `json:"frameRate,omitempty"` - // HideFlashObjects: Whether to hide Flash objects flag for an asset. // Applicable to the following creative types: all RICH_MEDIA. HideFlashObjects bool `json:"hideFlashObjects,omitempty"` - - // HideSelectionBoxes: Whether to hide selection boxes flag for an - // asset. Applicable to the following creative types: all RICH_MEDIA. + // HideSelectionBoxes: Whether to hide selection boxes flag for an asset. + // Applicable to the following creative types: all RICH_MEDIA. HideSelectionBoxes bool `json:"hideSelectionBoxes,omitempty"` - - // HorizontallyLocked: Whether the asset is horizontally locked. This is - // a read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // HorizontallyLocked: Whether the asset is horizontally locked. This is a + // read-only field. Applicable to the following creative types: all RICH_MEDIA. HorizontallyLocked bool `json:"horizontallyLocked,omitempty"` - - // Id: Numeric ID of this creative asset. This is a required field and - // should not be modified. Applicable to all but the following creative - // types: all REDIRECT and TRACKING_TEXT. + // Id: Numeric ID of this creative asset. This is a required field and should + // not be modified. Applicable to all but the following creative types: all + // REDIRECT and TRACKING_TEXT. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of the asset. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - // MediaDuration: Detected duration for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // read-only field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. MediaDuration float64 `json:"mediaDuration,omitempty"` - - // MimeType: Detected MIME type for audio or video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID. + // MimeType: Detected MIME type for audio or video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_AUDIO, + // INSTREAM_VIDEO and all VPAID. MimeType string `json:"mimeType,omitempty"` - - // Offset: Offset position for an asset in collapsed mode. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA and all VPAID. Additionally, only applicable to assets - // whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or - // ASSET_DISPLAY_TYPE_PEEL_DOWN. + // Offset: Offset position for an asset in collapsed mode. This is a read-only + // field. Applicable to the following creative types: all RICH_MEDIA and all + // VPAID. Additionally, only applicable to assets whose displayType is + // ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. Offset *OffsetPosition `json:"offset,omitempty"` - - // Orientation: Orientation of video asset. This is a read-only, - // auto-generated field. + // Orientation: Orientation of video asset. This is a read-only, auto-generated + // field. // // Possible values: // "LANDSCAPE" // "PORTRAIT" // "SQUARE" Orientation string `json:"orientation,omitempty"` - - // OriginalBackup: Whether the backup asset is original or changed by - // the user in Campaign Manager. Applicable to the following creative - // types: all RICH_MEDIA. + // OriginalBackup: Whether the backup asset is original or changed by the user + // in Campaign Manager. Applicable to the following creative types: all + // RICH_MEDIA. OriginalBackup bool `json:"originalBackup,omitempty"` - // PoliteLoad: Whether this asset is used as a polite load asset. PoliteLoad bool `json:"politeLoad,omitempty"` - - // Position: Offset position for an asset. Applicable to the following - // creative types: all RICH_MEDIA. + // Position: Offset position for an asset. Applicable to the following creative + // types: all RICH_MEDIA. Position *OffsetPosition `json:"position,omitempty"` - - // PositionLeftUnit: Offset left unit for an asset. This is a read-only - // field. Applicable to the following creative types: all RICH_MEDIA. + // PositionLeftUnit: Offset left unit for an asset. This is a read-only field. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionLeftUnit string `json:"positionLeftUnit,omitempty"` - - // PositionTopUnit: Offset top unit for an asset. This is a read-only - // field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. - // Applicable to the following creative types: all RICH_MEDIA. + // PositionTopUnit: Offset top unit for an asset. This is a read-only field if + // the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the + // following creative types: all RICH_MEDIA. // // Possible values: // "OFFSET_UNIT_PIXEL" // "OFFSET_UNIT_PERCENT" // "OFFSET_UNIT_PIXEL_FROM_CENTER" PositionTopUnit string `json:"positionTopUnit,omitempty"` - - // ProgressiveServingUrl: Progressive URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // ProgressiveServingUrl: Progressive URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. ProgressiveServingUrl string `json:"progressiveServingUrl,omitempty"` - - // Pushdown: Whether the asset pushes down other content. Applicable to - // the following creative types: all RICH_MEDIA. Additionally, only - // applicable when the asset offsets are 0, the collapsedSize.width - // matches size.width, and the collapsedSize.height is less than - // size.height. + // Pushdown: Whether the asset pushes down other content. Applicable to the + // following creative types: all RICH_MEDIA. Additionally, only applicable when + // the asset offsets are 0, the collapsedSize.width matches size.width, and the + // collapsedSize.height is less than size.height. Pushdown bool `json:"pushdown,omitempty"` - - // PushdownDuration: Pushdown duration in seconds for an asset. - // Applicable to the following creative types: all - // RICH_MEDIA.Additionally, only applicable when the asset pushdown - // field is true, the offsets are 0, the collapsedSize.width matches - // size.width, and the collapsedSize.height is less than size.height. - // Acceptable values are 0 to 9.99, inclusive. + // PushdownDuration: Pushdown duration in seconds for an asset. Applicable to + // the following creative types: all RICH_MEDIA.Additionally, only applicable + // when the asset pushdown field is true, the offsets are 0, the + // collapsedSize.width matches size.width, and the collapsedSize.height is less + // than size.height. Acceptable values are 0 to 9.99, inclusive. PushdownDuration float64 `json:"pushdownDuration,omitempty"` - - // Role: Role of the asset in relation to creative. Applicable to all - // but the following creative types: all REDIRECT and TRACKING_TEXT. - // This is a required field. PRIMARY applies to DISPLAY, FLASH_INPAGE, - // HTML5_BANNER, IMAGE, DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may - // contain multiple primary assets), and all VPAID creatives. - // BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, - // and all VPAID creatives. Applicable to DISPLAY when the primary asset - // type is not HTML_IMAGE. ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply - // to FLASH_INPAGE creatives. OTHER refers to assets from sources other - // than Campaign Manager, such as Studio uploaded assets, applicable to - // all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to videos - // uploaded by the user in Campaign Manager and is applicable to - // INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO - // refers to videos transcoded by Campaign Manager from PARENT_VIDEO - // assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO - // creatives. ALTERNATE_VIDEO refers to the Campaign Manager - // representation of child asset videos from Studio, and is applicable - // to VPAID_LINEAR_VIDEO creatives. These cannot be added or removed - // within Campaign Manager. For VPAID_LINEAR_VIDEO creatives, - // PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that are - // marked active serve as backup in case the VPAID creative cannot be + // Role: Role of the asset in relation to creative. Applicable to all but the + // following creative types: all REDIRECT and TRACKING_TEXT. This is a required + // field. PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, + // DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary + // assets), and all VPAID creatives. BACKUP_IMAGE applies to FLASH_INPAGE, + // HTML5_BANNER, all RICH_MEDIA, and all VPAID creatives. Applicable to DISPLAY + // when the primary asset type is not HTML_IMAGE. ADDITIONAL_IMAGE and + // ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. OTHER refers to assets + // from sources other than Campaign Manager, such as Studio uploaded assets, + // applicable to all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to + // videos uploaded by the user in Campaign Manager and is applicable to + // INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO refers to + // videos transcoded by Campaign Manager from PARENT_VIDEO assets and is + // applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. + // ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset + // videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These + // cannot be added or removed within Campaign Manager. For VPAID_LINEAR_VIDEO + // creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that + // are marked active serve as backup in case the VPAID creative cannot be // served. Only PARENT_VIDEO assets can be added or removed for an - // INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. PARENT_AUDIO refers to - // audios uploaded by the user in Campaign Manager and is applicable to - // INSTREAM_AUDIO creatives. TRANSCODED_AUDIO refers to audios - // transcoded by Campaign Manager from PARENT_AUDIO assets and is - // applicable to INSTREAM_AUDIO creatives. + // INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. PARENT_AUDIO refers to audios + // uploaded by the user in Campaign Manager and is applicable to INSTREAM_AUDIO + // creatives. TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager + // from PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives. // // Possible values: // "PRIMARY" @@ -4686,44 +3861,36 @@ type CreativeAsset struct { // "PARENT_AUDIO" // "TRANSCODED_AUDIO" Role string `json:"role,omitempty"` - - // Size: Size associated with this creative asset. This is a required - // field when applicable; however for IMAGE and FLASH_INPAGE, creatives - // if left blank, this field will be automatically set using the actual - // size of the associated image asset. Applicable to the following - // creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, - // IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary - // asset type is not HTML_IMAGE. + // Size: Size associated with this creative asset. This is a required field + // when applicable; however for IMAGE and FLASH_INPAGE, creatives if left + // blank, this field will be automatically set using the actual size of the + // associated image asset. Applicable to the following creative types: + // DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all + // RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not + // HTML_IMAGE. Size *Size `json:"size,omitempty"` - - // SslCompliant: Whether the asset is SSL-compliant. This is a read-only - // field. Applicable to all but the following creative types: all - // REDIRECT and TRACKING_TEXT. + // SslCompliant: Whether the asset is SSL-compliant. This is a read-only field. + // Applicable to all but the following creative types: all REDIRECT and + // TRACKING_TEXT. SslCompliant bool `json:"sslCompliant,omitempty"` - - // StartTimeType: Initial wait time type before making the asset - // visible. Applicable to the following creative types: all RICH_MEDIA. + // StartTimeType: Initial wait time type before making the asset visible. + // Applicable to the following creative types: all RICH_MEDIA. // // Possible values: // "ASSET_START_TIME_TYPE_NONE" // "ASSET_START_TIME_TYPE_CUSTOM" StartTimeType string `json:"startTimeType,omitempty"` - - // StreamingServingUrl: Streaming URL for video asset. This is a - // read-only field. Applicable to the following creative types: - // INSTREAM_VIDEO and all VPAID. + // StreamingServingUrl: Streaming URL for video asset. This is a read-only + // field. Applicable to the following creative types: INSTREAM_VIDEO and all + // VPAID. StreamingServingUrl string `json:"streamingServingUrl,omitempty"` - - // Transparency: Whether the asset is transparent. Applicable to the - // following creative types: all RICH_MEDIA. Additionally, only - // applicable to HTML5 assets. + // Transparency: Whether the asset is transparent. Applicable to the following + // creative types: all RICH_MEDIA. Additionally, only applicable to HTML5 + // assets. Transparency bool `json:"transparency,omitempty"` - // VerticallyLocked: Whether the asset is vertically locked. This is a - // read-only field. Applicable to the following creative types: all - // RICH_MEDIA. + // read-only field. Applicable to the following creative types: all RICH_MEDIA. VerticallyLocked bool `json:"verticallyLocked,omitempty"` - // WindowMode: Window mode options for flash assets. Applicable to the // following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, // RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and @@ -4734,43 +3901,34 @@ type CreativeAsset struct { // "WINDOW" // "TRANSPARENT" WindowMode string `json:"windowMode,omitempty"` - - // ZIndex: zIndex value of an asset. Applicable to the following - // creative types: all RICH_MEDIA.Additionally, only applicable to - // assets whose displayType is NOT one of the following types: - // ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable - // values are -999999999 to 999999999, inclusive. + // ZIndex: zIndex value of an asset. Applicable to the following creative + // types: all RICH_MEDIA.Additionally, only applicable to assets whose + // displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or + // ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, + // inclusive. ZIndex int64 `json:"zIndex,omitempty"` - - // ZipFilename: File name of zip file. This is a read-only field. - // Applicable to the following creative types: HTML5_BANNER. + // ZipFilename: File name of zip file. This is a read-only field. Applicable to + // the following creative types: HTML5_BANNER. ZipFilename string `json:"zipFilename,omitempty"` - - // ZipFilesize: Size of zip file. This is a read-only field. Applicable - // to the following creative types: HTML5_BANNER. + // ZipFilesize: Size of zip file. This is a read-only field. Applicable to the + // following creative types: HTML5_BANNER. ZipFilesize string `json:"zipFilesize,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionScript3") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionScript3") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionScript3") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAsset) MarshalJSON() ([]byte, error) { +func (s CreativeAsset) MarshalJSON() ([]byte, error) { type NoMethod CreativeAsset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CreativeAsset) UnmarshalJSON(data []byte) error { @@ -4793,15 +3951,13 @@ func (s *CreativeAsset) UnmarshalJSON(data []byte) error { // CreativeAssetId: Creative Asset ID. type CreativeAssetId struct { - // Name: Name of the creative asset. This is a required field while - // inserting an asset. After insertion, this assetIdentifier is used to - // identify the uploaded asset. Characters in the name must be - // alphanumeric or one of the following: ".-_ ". Spaces are allowed. + // Name: Name of the creative asset. This is a required field while inserting + // an asset. After insertion, this assetIdentifier is used to identify the + // uploaded asset. Characters in the name must be alphanumeric or one of the + // following: ".-_ ". Spaces are allowed. Name string `json:"name,omitempty"` - - // Type: Type of asset to upload. This is a required field. FLASH and - // IMAGE are no longer supported for new uploads. All image assets - // should use HTML_IMAGE. + // Type: Type of asset to upload. This is a required field. FLASH and IMAGE are + // no longer supported for new uploads. All image assets should use HTML_IMAGE. // // Possible values: // "IMAGE" @@ -4811,53 +3967,41 @@ type CreativeAssetId struct { // "HTML_IMAGE" // "AUDIO" Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetId) MarshalJSON() ([]byte, error) { +func (s CreativeAssetId) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetMetadata: CreativeAssets contains properties of a -// creative asset file which will be uploaded or has already been -// uploaded. Refer to the creative sample code for how to upload assets -// and insert a creative. +// CreativeAssetMetadata: CreativeAssets contains properties of a creative +// asset file which will be uploaded or has already been uploaded. Refer to the +// creative sample code for how to upload assets and insert a creative. type CreativeAssetMetadata struct { // AssetIdentifier: ID of the creative asset. This is a required field. AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"` - - // ClickTags: List of detected click tags for assets. This is a - // read-only, auto-generated field. This field is empty for a rich media - // asset. + // ClickTags: List of detected click tags for assets. This is a read-only, + // auto-generated field. This field is empty for a rich media asset. ClickTags []*ClickTag `json:"clickTags,omitempty"` - - // CounterCustomEvents: List of counter events configured for the asset. - // This is a read-only, auto-generated field and only applicable to a - // rich media asset. + // CounterCustomEvents: List of counter events configured for the asset. This + // is a read-only, auto-generated field and only applicable to a rich media + // asset. CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"` - - // DetectedFeatures: List of feature dependencies for the creative asset - // that are detected by Campaign Manager. Feature dependencies are - // features that a browser must be able to support in order to render - // your HTML5 creative correctly. This is a read-only, auto-generated - // field. + // DetectedFeatures: List of feature dependencies for the creative asset that + // are detected by Campaign Manager. Feature dependencies are features that a + // browser must be able to support in order to render your HTML5 creative + // correctly. This is a read-only, auto-generated field. // // Possible values: // "CSS_FONT_FACE" @@ -4927,46 +4071,34 @@ type CreativeAssetMetadata struct { // "SVG_FILTERS" // "SVG_FE_IMAGE" DetectedFeatures []string `json:"detectedFeatures,omitempty"` - - // ExitCustomEvents: List of exit events configured for the asset. This - // is a read-only, auto-generated field and only applicable to a rich - // media asset. + // ExitCustomEvents: List of exit events configured for the asset. This is a + // read-only, auto-generated field and only applicable to a rich media asset. ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"` - - // Id: Numeric ID of the asset. This is a read-only, auto-generated - // field. + // Id: Numeric ID of the asset. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the numeric ID of the asset. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the numeric ID of the asset. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeAssetMetadata". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeAssetMetadata". Kind string `json:"kind,omitempty"` - - // RichMedia: True if the uploaded asset is a rich media asset. This is - // a read-only, auto-generated field. + // RichMedia: True if the uploaded asset is a rich media asset. This is a + // read-only, auto-generated field. RichMedia bool `json:"richMedia,omitempty"` - - // TimerCustomEvents: List of timer events configured for the asset. - // This is a read-only, auto-generated field and only applicable to a - // rich media asset. + // TimerCustomEvents: List of timer events configured for the asset. This is a + // read-only, auto-generated field and only applicable to a rich media asset. TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"` - - // WarnedValidationRules: Rules validated during code generation that - // generated a warning. This is a read-only, auto-generated field. - // Possible values are: - "ADMOB_REFERENCED" - - // "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" - + // WarnedValidationRules: Rules validated during code generation that generated + // a warning. This is a read-only, auto-generated field. Possible values are: - + // "ADMOB_REFERENCED" - "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" - // "CLICK_TAG_HARD_CODED" - "CLICK_TAG_INVALID" - "CLICK_TAG_IN_GWD" - - // "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - - // "CLICK_TAG_NON_TOP_LEVEL" - "COMPONENT_UNSUPPORTED_DCM" - - // "ENABLER_UNSUPPORTED_METHOD_DCM" - "EXTERNAL_FILE_REFERENCED" - - // "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" - "GWD_PROPERTIES_INVALID" - // - "HTML5_FEATURE_UNSUPPORTED" - "LINKED_FILE_NOT_FOUND" - - // "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" - "NOT_SSL_COMPLIANT" - - // "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" - "SVG_INVALID" - - // "ZIP_INVALID" + // "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - "CLICK_TAG_NON_TOP_LEVEL" + // - "COMPONENT_UNSUPPORTED_DCM" - "ENABLER_UNSUPPORTED_METHOD_DCM" - + // "EXTERNAL_FILE_REFERENCED" - "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" - + // "GWD_PROPERTIES_INVALID" - "HTML5_FEATURE_UNSUPPORTED" - + // "LINKED_FILE_NOT_FOUND" - "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" - + // "NOT_SSL_COMPLIANT" - "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" - + // "SVG_INVALID" - "ZIP_INVALID" // // Possible values: // "CLICK_TAG_NON_TOP_LEVEL" @@ -4996,223 +4128,167 @@ type CreativeAssetMetadata struct { // "CLICK_TAG_IN_RICH_MEDIA" WarnedValidationRules []string `json:"warnedValidationRules,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AssetIdentifier") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetIdentifier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssetIdentifier") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetMetadata) MarshalJSON() ([]byte, error) { +func (s CreativeAssetMetadata) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreativeAssetSelection: Encapsulates the list of rules for asset -// selection and a default asset in case none of the rules match. -// Applicable to INSTREAM_VIDEO creatives. +// CreativeAssetSelection: Encapsulates the list of rules for asset selection +// and a default asset in case none of the rules match. Applicable to +// INSTREAM_VIDEO creatives. type CreativeAssetSelection struct { - // DefaultAssetId: A creativeAssets[].id. This should refer to one of - // the parent assets in this creative, and will be served if none of the - // rules match. This is a required field. + // DefaultAssetId: A creativeAssets[].id. This should refer to one of the + // parent assets in this creative, and will be served if none of the rules + // match. This is a required field. DefaultAssetId int64 `json:"defaultAssetId,omitempty,string"` - - // Rules: Rules determine which asset will be served to a viewer. Rules - // will be evaluated in the order in which they are stored in this list. - // This list must contain at least one rule. Applicable to - // INSTREAM_VIDEO creatives. + // Rules: Rules determine which asset will be served to a viewer. Rules will be + // evaluated in the order in which they are stored in this list. This list must + // contain at least one rule. Applicable to INSTREAM_VIDEO creatives. Rules []*Rule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultAssetId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultAssetId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DefaultAssetId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssetSelection) MarshalJSON() ([]byte, error) { +func (s CreativeAssetSelection) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssetSelection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeAssignment: Creative Assignment. type CreativeAssignment struct { - // Active: Whether this creative assignment is active. When true, the - // creative will be included in the ad's rotation. + // Active: Whether this creative assignment is active. When true, the creative + // will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // ApplyEventTags: Whether applicable event tags should fire when this - // creative assignment is rendered. If this value is unset when the ad - // is inserted or updated, it will default to true for all creative - // types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, - // and INSTREAM_VIDEO. + // ApplyEventTags: Whether applicable event tags should fire when this creative + // assignment is rendered. If this value is unset when the ad is inserted or + // updated, it will default to true for all creative types EXCEPT for + // INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. ApplyEventTags bool `json:"applyEventTags,omitempty"` - // ClickThroughUrl: Click-through URL of the creative assignment. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // CompanionCreativeOverrides: Companion creative overrides for this - // creative assignment. Applicable to video ads. + // CompanionCreativeOverrides: Companion creative overrides for this creative + // assignment. Applicable to video ads. CompanionCreativeOverrides []*CompanionClickThroughOverride `json:"companionCreativeOverrides,omitempty"` - - // CreativeGroupAssignments: Creative group assignments for this - // creative assignment. Only one assignment per creative group number is - // allowed for a maximum of two assignments. + // CreativeGroupAssignments: Creative group assignments for this creative + // assignment. Only one assignment per creative group number is allowed for a + // maximum of two assignments. CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"` - - // CreativeId: ID of the creative to be assigned. This is a required - // field. + // CreativeId: ID of the creative to be assigned. This is a required field. CreativeId int64 `json:"creativeId,omitempty,string"` - - // CreativeIdDimensionValue: Dimension value for the ID of the creative. - // This is a read-only, auto-generated field. + // CreativeIdDimensionValue: Dimension value for the ID of the creative. This + // is a read-only, auto-generated field. CreativeIdDimensionValue *DimensionValue `json:"creativeIdDimensionValue,omitempty"` - - EndTime string `json:"endTime,omitempty"` - + EndTime string `json:"endTime,omitempty"` // RichMediaExitOverrides: Rich media exit overrides for this creative - // assignment. Applicable when the creative type is any of the - // following: - DISPLAY - RICH_MEDIA_INPAGE - RICH_MEDIA_INPAGE_FLOATING - // - RICH_MEDIA_IM_EXPAND - RICH_MEDIA_EXPANDING - - // RICH_MEDIA_INTERSTITIAL_FLOAT - RICH_MEDIA_MOBILE_IN_APP - - // RICH_MEDIA_MULTI_FLOATING - RICH_MEDIA_PEEL_DOWN - VPAID_LINEAR - - // VPAID_NON_LINEAR + // assignment. Applicable when the creative type is any of the following: - + // DISPLAY - RICH_MEDIA_INPAGE - RICH_MEDIA_INPAGE_FLOATING - + // RICH_MEDIA_IM_EXPAND - RICH_MEDIA_EXPANDING - RICH_MEDIA_INTERSTITIAL_FLOAT + // - RICH_MEDIA_MOBILE_IN_APP - RICH_MEDIA_MULTI_FLOATING - + // RICH_MEDIA_PEEL_DOWN - VPAID_LINEAR - VPAID_NON_LINEAR RichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"` - - // Sequence: Sequence number of the creative assignment, applicable when - // the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable - // values are 1 to 65535, inclusive. + // Sequence: Sequence number of the creative assignment, applicable when the + // rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 + // to 65535, inclusive. Sequence int64 `json:"sequence,omitempty"` - - // SslCompliant: Whether the creative to be assigned is SSL-compliant. - // This is a read-only field that is auto-generated when the ad is - // inserted or updated. - SslCompliant bool `json:"sslCompliant,omitempty"` - - StartTime string `json:"startTime,omitempty"` - - // Weight: Weight of the creative assignment, applicable when the - // rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater - // than or equal to 1. + // SslCompliant: Whether the creative to be assigned is SSL-compliant. This is + // a read-only field that is auto-generated when the ad is inserted or updated. + SslCompliant bool `json:"sslCompliant,omitempty"` + StartTime string `json:"startTime,omitempty"` + // Weight: Weight of the creative assignment, applicable when the rotation type + // is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeClickThroughUrl: Click-through URL type CreativeClickThroughUrl struct { - // ComputedClickThroughUrl: Read-only convenience field representing the - // actual URL that will be used for this click-through. The URL is - // computed as follows: - If landingPageId is specified then that - // landing page's URL is assigned to this field. - Otherwise, the - // customClickThroughUrl is assigned to this field. + // ComputedClickThroughUrl: Read-only convenience field representing the actual + // URL that will be used for this click-through. The URL is computed as + // follows: - If landingPageId is specified then that landing page's URL is + // assigned to this field. - Otherwise, the customClickThroughUrl is assigned + // to this field. ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"` - // CustomClickThroughUrl: Custom click-through URL. Applicable if the // landingPageId field is left unset. CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"` - // LandingPageId: ID of the landing page for the click-through URL. LandingPageId int64 `json:"landingPageId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "ComputedClickThroughUrl") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { +func (s CreativeClickThroughUrl) MarshalJSON() ([]byte, error) { type NoMethod CreativeClickThroughUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeCustomEvent: Creative Custom Event. type CreativeCustomEvent struct { - // AdvertiserCustomEventId: Unique ID of this event used by Reporting - // and Data Transfer. This is a read-only field. + // AdvertiserCustomEventId: Unique ID of this event used by Reporting and Data + // Transfer. This is a read-only field. AdvertiserCustomEventId int64 `json:"advertiserCustomEventId,omitempty,string"` - // AdvertiserCustomEventName: User-entered name for the event. AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"` - - // AdvertiserCustomEventType: Type of the event. This is a read-only - // field. + // AdvertiserCustomEventType: Type of the event. This is a read-only field. // // Possible values: // "ADVERTISER_EVENT_TIMER" // "ADVERTISER_EVENT_EXIT" // "ADVERTISER_EVENT_COUNTER" AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"` - - // ArtworkLabel: Artwork label column, used to link events in Campaign - // Manager back to events in Studio. This is a required field and should - // not be modified after insertion. + // ArtworkLabel: Artwork label column, used to link events in Campaign Manager + // back to events in Studio. This is a required field and should not be + // modified after insertion. ArtworkLabel string `json:"artworkLabel,omitempty"` - - // ArtworkType: Artwork type used by the creative.This is a read-only - // field. + // ArtworkType: Artwork type used by the creative.This is a read-only field. // // Possible values: // "ARTWORK_TYPE_FLASH" @@ -5220,19 +4296,15 @@ type CreativeCustomEvent struct { // "ARTWORK_TYPE_MIXED" // "ARTWORK_TYPE_IMAGE" ArtworkType string `json:"artworkType,omitempty"` - - // ExitClickThroughUrl: Exit click-through URL for the event. This field - // is used only for exit events. + // ExitClickThroughUrl: Exit click-through URL for the event. This field is + // used only for exit events. ExitClickThroughUrl *CreativeClickThroughUrl `json:"exitClickThroughUrl,omitempty"` - - // Id: ID of this event. This is a required field and should not be - // modified after insertion. + // Id: ID of this event. This is a required field and should not be modified + // after insertion. Id int64 `json:"id,omitempty,string"` - - // PopupWindowProperties: Properties for rich media popup windows. This - // field is used only for exit events. + // PopupWindowProperties: Properties for rich media popup windows. This field + // is used only for exit events. PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"` - // TargetType: Target type used by the event. // // Possible values: @@ -5242,406 +4314,306 @@ type CreativeCustomEvent struct { // "TARGET_PARENT" // "TARGET_POPUP" TargetType string `json:"targetType,omitempty"` - - // VideoReportingId: Video reporting ID, used to differentiate multiple - // videos in a single creative. This is a read-only field. + // VideoReportingId: Video reporting ID, used to differentiate multiple videos + // in a single creative. This is a read-only field. VideoReportingId string `json:"videoReportingId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdvertiserCustomEventId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertiserCustomEventId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeCustomEvent) MarshalJSON() ([]byte, error) { +func (s CreativeCustomEvent) MarshalJSON() ([]byte, error) { type NoMethod CreativeCustomEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeField: Contains properties of a creative field. type CreativeField struct { - // AccountId: Account ID of this creative field. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative field. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative field. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative field. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // Id: ID of this creative field. This is a read-only, auto-generated - // field. + // Id: ID of this creative field. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeField". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeField". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative field. This is a required field and must - // be less than 256 characters long and unique among creative fields of - // the same advertiser. + // Name: Name of this creative field. This is a required field and must be less + // than 256 characters long and unique among creative fields of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative field. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative field. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeField) MarshalJSON() ([]byte, error) { +func (s CreativeField) MarshalJSON() ([]byte, error) { type NoMethod CreativeField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldAssignment: Creative Field Assignment. type CreativeFieldAssignment struct { // CreativeFieldId: ID of the creative field. CreativeFieldId int64 `json:"creativeFieldId,omitempty,string"` - // CreativeFieldValueId: ID of the creative field value. CreativeFieldValueId int64 `json:"creativeFieldValueId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CreativeFieldId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeFieldAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValue: Contains properties of a creative field value. type CreativeFieldValue struct { - // Id: ID of this creative field value. This is a read-only, - // auto-generated field. + // Id: ID of this creative field value. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValue". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValue". Kind string `json:"kind,omitempty"` - - // Value: Value of this creative field value. It needs to be less than - // 256 characters in length and unique per creative field. + // Value: Value of this creative field value. It needs to be less than 256 + // characters in length and unique per creative field. Value string `json:"value,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValue) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValue) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldValuesListResponse: Creative Field Value List Response type CreativeFieldValuesListResponse struct { // CreativeFieldValues: Creative field value collection. CreativeFieldValues []*CreativeFieldValue `json:"creativeFieldValues,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldValuesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldValuesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeFieldValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFieldValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFieldValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldValuesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldValuesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeFieldsListResponse: Creative Field List Response type CreativeFieldsListResponse struct { // CreativeFields: Creative field collection. CreativeFields []*CreativeField `json:"creativeFields,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeFieldsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeFieldsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeFields") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeFields") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeFields") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeFieldsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeFieldsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroup: Contains properties of a creative group. type CreativeGroup struct { - // AccountId: Account ID of this creative group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this creative group. This is a read-only field that + // can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this creative group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this creative group. This is a required field + // on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // GroupNumber: Subgroup of the creative group. Assign your creative - // groups to a subgroup in order to filter or manage them more easily. - // This field is required on insertion and is read-only after insertion. - // Acceptable values are 1 to 2, inclusive. + // GroupNumber: Subgroup of the creative group. Assign your creative groups to + // a subgroup in order to filter or manage them more easily. This field is + // required on insertion and is read-only after insertion. Acceptable values + // are 1 to 2, inclusive. GroupNumber int64 `json:"groupNumber,omitempty"` - - // Id: ID of this creative group. This is a read-only, auto-generated - // field. + // Id: ID of this creative group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this creative group. This is a required field and must - // be less than 256 characters long and unique among creative groups of - // the same advertiser. + // Name: Name of this creative group. This is a required field and must be less + // than 256 characters long and unique among creative groups of the same + // advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this creative group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this creative group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroup) MarshalJSON() ([]byte, error) { +func (s CreativeGroup) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupAssignment: Creative Group Assignment. type CreativeGroupAssignment struct { // CreativeGroupId: ID of the creative group to be assigned. CreativeGroupId int64 `json:"creativeGroupId,omitempty,string"` - - // CreativeGroupNumber: Creative group number of the creative group - // assignment. + // CreativeGroupNumber: Creative group number of the creative group assignment. // // Possible values: // "CREATIVE_GROUP_ONE" // "CREATIVE_GROUP_TWO" CreativeGroupNumber string `json:"creativeGroupNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreativeGroupId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroupId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroupId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupAssignment) MarshalJSON() ([]byte, error) { +func (s CreativeGroupAssignment) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeGroupsListResponse: Creative Group List Response type CreativeGroupsListResponse struct { // CreativeGroups: Creative group collection. CreativeGroups []*CreativeGroup `json:"creativeGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativeGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativeGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreativeGroups") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeGroups") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s CreativeGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativeGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeOptimizationConfiguration: Creative optimization settings. type CreativeOptimizationConfiguration struct { - // Id: ID of this creative optimization config. This field is - // auto-generated when the campaign is inserted or updated. It can be - // null for existing campaigns. + // Id: ID of this creative optimization config. This field is auto-generated + // when the campaign is inserted or updated. It can be null for existing + // campaigns. Id int64 `json:"id,omitempty,string"` - - // Name: Name of this creative optimization config. This is a required - // field and must be less than 129 characters long. + // Name: Name of this creative optimization config. This is a required field + // and must be less than 129 characters long. Name string `json:"name,omitempty"` - - // OptimizationActivitys: List of optimization activities associated - // with this configuration. + // OptimizationActivitys: List of optimization activities associated with this + // configuration. OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"` - // OptimizationModel: Optimization model for this configuration. // // Possible values: @@ -5651,52 +4623,42 @@ type CreativeOptimizationConfiguration struct { // "POST_CLICK_AND_IMPRESSION" // "VIDEO_COMPLETION" OptimizationModel string `json:"optimizationModel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { +func (s CreativeOptimizationConfiguration) MarshalJSON() ([]byte, error) { type NoMethod CreativeOptimizationConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeRotation: Creative Rotation. type CreativeRotation struct { // CreativeAssignments: Creative assignments in this creative rotation. CreativeAssignments []*CreativeAssignment `json:"creativeAssignments,omitempty"` - - // CreativeOptimizationConfigurationId: Creative optimization - // configuration that is used by this ad. It should refer to one of the - // existing optimization configurations in the ad's campaign. If it is - // unset or set to 0, then the campaign's default optimization - // configuration will be used for this ad. + // CreativeOptimizationConfigurationId: Creative optimization configuration + // that is used by this ad. It should refer to one of the existing optimization + // configurations in the ad's campaign. If it is unset or set to 0, then the + // campaign's default optimization configuration will be used for this ad. CreativeOptimizationConfigurationId int64 `json:"creativeOptimizationConfigurationId,omitempty,string"` - - // Type: Type of creative rotation. Can be used to specify whether to - // use sequential or random rotation. + // Type: Type of creative rotation. Can be used to specify whether to use + // sequential or random rotation. // // Possible values: // "CREATIVE_ROTATION_TYPE_SEQUENTIAL" // "CREATIVE_ROTATION_TYPE_RANDOM" Type string `json:"type,omitempty"` - - // WeightCalculationStrategy: Strategy for calculating weights. Used - // with CREATIVE_ROTATION_TYPE_RANDOM. + // WeightCalculationStrategy: Strategy for calculating weights. Used with + // CREATIVE_ROTATION_TYPE_RANDOM. // // Possible values: // "WEIGHT_STRATEGY_EQUAL" @@ -5704,225 +4666,174 @@ type CreativeRotation struct { // "WEIGHT_STRATEGY_HIGHEST_CTR" // "WEIGHT_STRATEGY_OPTIMIZED" WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CreativeAssignments") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreativeAssignments") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeAssignments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreativeAssignments") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeRotation) MarshalJSON() ([]byte, error) { +func (s CreativeRotation) MarshalJSON() ([]byte, error) { type NoMethod CreativeRotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativesListResponse: Creative List Response type CreativesListResponse struct { // Creatives: Creative collection. Creatives []*Creative `json:"creatives,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#creativesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#creativesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Creatives") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Creatives") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Creatives") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativesListResponse) MarshalJSON() ([]byte, error) { +func (s CreativesListResponse) MarshalJSON() ([]byte, error) { type NoMethod CreativesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CrossDimensionReachReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type -// "CROSS_DIMENSION_REACH". +// compatible to be selected for a report of type "CROSS_DIMENSION_REACH". type CrossDimensionReachReportCompatibleFields struct { - // Breakdown: Dimensions which are compatible to be selected in the - // "breakdown" section of the report. + // Breakdown: Dimensions which are compatible to be selected in the "breakdown" + // section of the report. Breakdown []*Dimension `json:"breakdown,omitempty"` - - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#crossDimensionReachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // OverlapMetrics: Metrics which are compatible to be selected in the // "overlapMetricNames" section of the report. OverlapMetrics []*Metric `json:"overlapMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod CrossDimensionReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomEvent: Experimental feature (no support provided) A custom -// event represents a third party impression, a third party click, an -// annotation on a first party impression, or an annotation on a first -// party click. +// CustomEvent: Experimental feature (no support provided) A custom event +// represents a third party impression, a third party click, an annotation on a +// first party impression, or an annotation on a first party click. type CustomEvent struct { - // AnnotateClickEvent: Annotate a click event. This field is mutually - // exclusive with insertEvent and annotateImpressionEvent. This or - // insertEvent and annotateImpressionEvent is a required field. + // AnnotateClickEvent: Annotate a click event. This field is mutually exclusive + // with insertEvent and annotateImpressionEvent. This or insertEvent and + // annotateImpressionEvent is a required field. AnnotateClickEvent *CustomEventClickAnnotation `json:"annotateClickEvent,omitempty"` - - // AnnotateImpressionEvent: Annotate an impression. This field is - // mutually exclusive with insertEvent and annotateClickEvent. This or - // insertEvent and annotateClickEvent is a required field. + // AnnotateImpressionEvent: Annotate an impression. This field is mutually + // exclusive with insertEvent and annotateClickEvent. This or insertEvent and + // annotateClickEvent is a required field. AnnotateImpressionEvent *CustomEventImpressionAnnotation `json:"annotateImpressionEvent,omitempty"` - // CustomVariables: Custom variables associated with the event. CustomVariables []*CustomVariable `json:"customVariables,omitempty"` - - // EventType: The type of event. If INSERT, the fields in insertEvent - // need to be populated. If ANNOTATE, the fields in either - // annotateClickEvent or annotateImpressionEvent need to be populated. + // EventType: The type of event. If INSERT, the fields in insertEvent need to + // be populated. If ANNOTATE, the fields in either annotateClickEvent or + // annotateImpressionEvent need to be populated. // // Possible values: // "UNKNOWN" // "INSERT" // "ANNOTATE" EventType string `json:"eventType,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of the - // advertiser the event is linked to. This is a required field. + // FloodlightConfigurationId: Floodlight configuration ID of the advertiser the + // event is linked to. This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // InsertEvent: Insert custom event. This field is mutually exclusive - // with annotateClickEvent and annotateImpressionEvent. This or - // annotateClickEvent and annotateImpressionEvent is a required field. + // InsertEvent: Insert custom event. This field is mutually exclusive with + // annotateClickEvent and annotateImpressionEvent. This or annotateClickEvent + // and annotateImpressionEvent is a required field. InsertEvent *CustomEventInsert `json:"insertEvent,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customEvent". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customEvent". Kind string `json:"kind,omitempty"` - // Ordinal: The ordinal of this custom event. This is a required field. Ordinal string `json:"ordinal,omitempty"` - - // TimestampMicros: The timestamp of this custom event, in Unix epoch - // micros. This is a required field. + // TimestampMicros: The timestamp of this custom event, in Unix epoch micros. + // This is a required field. TimestampMicros int64 `json:"timestampMicros,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AnnotateClickEvent") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AnnotateClickEvent") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnnotateClickEvent") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AnnotateClickEvent") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomEvent) MarshalJSON() ([]byte, error) { +func (s CustomEvent) MarshalJSON() ([]byte, error) { type NoMethod CustomEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomEventClickAnnotation: Annotate a click event. type CustomEventClickAnnotation struct { - // Gclid: The Google click ID. Use this field to annotate the click - // associated with the gclid. + // Gclid: The Google click ID. Use this field to annotate the click associated + // with the gclid. Gclid string `json:"gclid,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customEventClickAnnotation". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customEventClickAnnotation". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Gclid") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Gclid") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Gclid") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomEventClickAnnotation) MarshalJSON() ([]byte, error) { +func (s CustomEventClickAnnotation) MarshalJSON() ([]byte, error) { type NoMethod CustomEventClickAnnotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomEventError: The error code and description for a custom event -// that failed to insert. +// CustomEventError: The error code and description for a custom event that +// failed to insert. type CustomEventError struct { // Code: The error code. // @@ -5933,78 +4844,61 @@ type CustomEventError struct { // "PERMISSION_DENIED" // "NOT_FOUND" Code string `json:"code,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customEventError". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customEventError". Kind string `json:"kind,omitempty"` - // Message: A description of the error. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomEventError) MarshalJSON() ([]byte, error) { +func (s CustomEventError) MarshalJSON() ([]byte, error) { type NoMethod CustomEventError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomEventImpressionAnnotation: Annotate an impression. type CustomEventImpressionAnnotation struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customEventImpressionAnnotation". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customEventImpressionAnnotation". Kind string `json:"kind,omitempty"` - - // PathImpressionId: The path impression ID. Use this field to annotate - // the impression associated with the pathImpressionId. + // PathImpressionId: The path impression ID. Use this field to annotate the + // impression associated with the pathImpressionId. PathImpressionId string `json:"pathImpressionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomEventImpressionAnnotation) MarshalJSON() ([]byte, error) { +func (s CustomEventImpressionAnnotation) MarshalJSON() ([]byte, error) { type NoMethod CustomEventImpressionAnnotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomEventInsert: Custom event to be inserted. type CustomEventInsert struct { // CmDimensions: Campaign Manager dimensions associated with the event. CmDimensions *CampaignManagerIds `json:"cmDimensions,omitempty"` - // Dv3Dimensions: DV360 dimensions associated with the event. Dv3Dimensions *DV3Ids `json:"dv3Dimensions,omitempty"` - // InsertEventType: The type of event to insert. // // Possible values: @@ -6012,164 +4906,127 @@ type CustomEventInsert struct { // "IMPRESSION" // "CLICK" InsertEventType string `json:"insertEventType,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customEventInsert". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customEventInsert". Kind string `json:"kind,omitempty"` - - // MatchId: The match ID field. A match ID is your own first-party - // identifier that has been synced with Google using the match ID - // feature in Floodlight. This field is mutually exclusive with - // mobileDeviceId, and at least one of the two fields is required. + // MatchId: The match ID field. A match ID is your own first-party identifier + // that has been synced with Google using the match ID feature in Floodlight. + // This field is mutually exclusive with mobileDeviceId, and at least one of + // the two fields is required. MatchId string `json:"matchId,omitempty"` - - // MobileDeviceId: The mobile device ID. This field is mutually - // exclusive with matchId, and at least one of the two fields is - // required. + // MobileDeviceId: The mobile device ID. This field is mutually exclusive with + // matchId, and at least one of the two fields is required. MobileDeviceId string `json:"mobileDeviceId,omitempty"` - // ForceSendFields is a list of field names (e.g. "CmDimensions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CmDimensions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CmDimensions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomEventInsert) MarshalJSON() ([]byte, error) { +func (s CustomEventInsert) MarshalJSON() ([]byte, error) { type NoMethod CustomEventInsert - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomEventStatus: The original custom event that was inserted and -// whether there were any errors. +// CustomEventStatus: The original custom event that was inserted and whether +// there were any errors. type CustomEventStatus struct { // CustomEvent: The original custom event that was inserted. CustomEvent *CustomEvent `json:"customEvent,omitempty"` - // Errors: A list of errors related to this custom event. Errors []*CustomEventError `json:"errors,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customEventStatus". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customEventStatus". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomEvent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomEvent") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomEvent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomEventStatus) MarshalJSON() ([]byte, error) { +func (s CustomEventStatus) MarshalJSON() ([]byte, error) { type NoMethod CustomEventStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomEventsBatchInsertRequest: Insert Custom Events Request. type CustomEventsBatchInsertRequest struct { // CustomEvents: The set of custom events to insert. CustomEvents []*CustomEvent `json:"customEvents,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customEventsBatchInsertRequest". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customEventsBatchInsertRequest". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomEvents") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomEvents") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomEvents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomEventsBatchInsertRequest) MarshalJSON() ([]byte, error) { +func (s CustomEventsBatchInsertRequest) MarshalJSON() ([]byte, error) { type NoMethod CustomEventsBatchInsertRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomEventsBatchInsertResponse: Insert Custom Events Response. type CustomEventsBatchInsertResponse struct { - // HasFailures: Indicates that some or all custom events failed to - // insert. + // HasFailures: Indicates that some or all custom events failed to insert. HasFailures bool `json:"hasFailures,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customEventsBatchInsertResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customEventsBatchInsertResponse". Kind string `json:"kind,omitempty"` - - // Status: The insert status of each custom event. Statuses are returned - // in the same order that conversions are inserted. + // Status: The insert status of each custom event. Statuses are returned in the + // same order that conversions are inserted. Status []*CustomEventStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "HasFailures") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasFailures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HasFailures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomEventsBatchInsertResponse) MarshalJSON() ([]byte, error) { +func (s CustomEventsBatchInsertResponse) MarshalJSON() ([]byte, error) { type NoMethod CustomEventsBatchInsertResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomFloodlightVariable: A custom floodlight variable. This field -// may only be used when calling batchinsert; it is not supported by -// batchupdate. +// CustomFloodlightVariable: A custom floodlight variable. This field may only +// be used when calling batchinsert; it is not supported by batchupdate. type CustomFloodlightVariable struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customFloodlightVariable". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customFloodlightVariable". Kind string `json:"kind,omitempty"` - - // Type: The type of custom floodlight variable to supply a value for. - // These map to the "u[1-20]=" in the tags. + // Type: The type of custom floodlight variable to supply a value for. These + // map to the "u[1-20]=" in the tags. // // Possible values: // "U1" @@ -6273,235 +5130,181 @@ type CustomFloodlightVariable struct { // "U99" // "U100" Type string `json:"type,omitempty"` - - // Value: The value of the custom floodlight variable. The length of - // string must not exceed 100 characters. + // Value: The value of the custom floodlight variable. The length of string + // must not exceed 100 characters. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomFloodlightVariable) MarshalJSON() ([]byte, error) { +func (s CustomFloodlightVariable) MarshalJSON() ([]byte, error) { type NoMethod CustomFloodlightVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomRichMediaEvents: Represents a Custom Rich Media Events group. type CustomRichMediaEvents struct { - // FilteredEventIds: List of custom rich media event IDs. Dimension - // values must be all of type dfa:richMediaEventTypeIdAndName. + // FilteredEventIds: List of custom rich media event IDs. Dimension values must + // be all of type dfa:richMediaEventTypeIdAndName. FilteredEventIds []*DimensionValue `json:"filteredEventIds,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#customRichMediaEvents. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilteredEventIds") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FilteredEventIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FilteredEventIds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomRichMediaEvents) MarshalJSON() ([]byte, error) { +func (s CustomRichMediaEvents) MarshalJSON() ([]byte, error) { type NoMethod CustomRichMediaEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomVariable: Custom variable. type CustomVariable struct { // Index: The index of the custom variable. Index int64 `json:"index,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#customVariable". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#customVariable". Kind string `json:"kind,omitempty"` - - // Value: The value of the custom variable. The length of string must - // not exceed 50 characters. + // Value: The value of the custom variable. The length of string must not + // exceed 50 characters. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Index") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Index") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Index") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomVariable) MarshalJSON() ([]byte, error) { +func (s CustomVariable) MarshalJSON() ([]byte, error) { type NoMethod CustomVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomViewabilityMetric: Custom Viewability Metric type CustomViewabilityMetric struct { // Configuration: Configuration of the custom viewability metric. Configuration *CustomViewabilityMetricConfiguration `json:"configuration,omitempty"` - // Id: ID of the custom viewability metric. Id int64 `json:"id,omitempty,string"` - // Name: Name of the custom viewability metric. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Configuration") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Configuration") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Configuration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomViewabilityMetric) MarshalJSON() ([]byte, error) { +func (s CustomViewabilityMetric) MarshalJSON() ([]byte, error) { type NoMethod CustomViewabilityMetric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomViewabilityMetricConfiguration: The attributes, like playtime -// and percent onscreen, that define the Custom Viewability Metric. +// CustomViewabilityMetricConfiguration: The attributes, like playtime and +// percent onscreen, that define the Custom Viewability Metric. type CustomViewabilityMetricConfiguration struct { // Audible: Whether the video must be audible to count an impression. Audible bool `json:"audible,omitempty"` - - // TimeMillis: The time in milliseconds the video must play for the - // Custom Viewability Metric to count an impression. If both this and - // timePercent are specified, the earlier of the two will be used. + // TimeMillis: The time in milliseconds the video must play for the Custom + // Viewability Metric to count an impression. If both this and timePercent are + // specified, the earlier of the two will be used. TimeMillis int64 `json:"timeMillis,omitempty"` - // TimePercent: The percentage of video that must play for the Custom - // Viewability Metric to count an impression. If both this and - // timeMillis are specified, the earlier of the two will be used. + // Viewability Metric to count an impression. If both this and timeMillis are + // specified, the earlier of the two will be used. TimePercent int64 `json:"timePercent,omitempty"` - - // ViewabilityPercent: The percentage of video that must be on screen - // for the Custom Viewability Metric to count an impression. + // ViewabilityPercent: The percentage of video that must be on screen for the + // Custom Viewability Metric to count an impression. ViewabilityPercent int64 `json:"viewabilityPercent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Audible") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Audible") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audible") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audible") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomViewabilityMetricConfiguration) MarshalJSON() ([]byte, error) { +func (s CustomViewabilityMetricConfiguration) MarshalJSON() ([]byte, error) { type NoMethod CustomViewabilityMetricConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DV3Ids: DV360 IDs related to the custom event. type DV3Ids struct { // DvCampaignId: Campaign ID for DV360. DvCampaignId int64 `json:"dvCampaignId,omitempty,string"` - // DvCreativeId: Creative ID for DV360. DvCreativeId int64 `json:"dvCreativeId,omitempty,string"` - // DvInsertionOrderId: Insertion Order ID for DV360. DvInsertionOrderId int64 `json:"dvInsertionOrderId,omitempty,string"` - // DvLineItemId: Line Item ID for DV360. DvLineItemId int64 `json:"dvLineItemId,omitempty,string"` - // DvSiteId: Site ID for DV360. DvSiteId int64 `json:"dvSiteId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dV3Ids". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dV3Ids". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "DvCampaignId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DvCampaignId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DvCampaignId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DV3Ids) MarshalJSON() ([]byte, error) { +func (s DV3Ids) MarshalJSON() ([]byte, error) { type NoMethod DV3Ids - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DateRange: Represents a date range. type DateRange struct { EndDate string `json:"endDate,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#dateRange. + // Kind: The kind of resource this is, in this case dfareporting#dateRange. Kind string `json:"kind,omitempty"` - - // RelativeDateRange: The date range relative to the date of when the - // report is run. + // RelativeDateRange: The date range relative to the date of when the report is + // run. // // Possible values: // "TODAY" @@ -6522,37 +5325,30 @@ type DateRange struct { // "LAST_14_DAYS" // "LAST_60_DAYS" RelativeDateRange string `json:"relativeDateRange,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + StartDate string `json:"startDate,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DateRange) MarshalJSON() ([]byte, error) { +func (s DateRange) MarshalJSON() ([]byte, error) { type NoMethod DateRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DayPartTargeting: Day Part Targeting. type DayPartTargeting struct { - // DaysOfWeek: Days of the week when the ad will serve. Acceptable - // values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - - // "THURSDAY" - "FRIDAY" - "SATURDAY" + // DaysOfWeek: Days of the week when the ad will serve. Acceptable values are: + // - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - + // "SATURDAY" // // Possible values: // "MONDAY" @@ -6563,146 +5359,114 @@ type DayPartTargeting struct { // "SATURDAY" // "SUNDAY" DaysOfWeek []string `json:"daysOfWeek,omitempty"` - - // HoursOfDay: Hours of the day when the ad will serve, where 0 is - // midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with - // days of week, in which case the ad would serve during these hours on - // the specified days. For example if Monday, Wednesday, Friday are the - // days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is - // specified, the ad would serve Monday, Wednesdays, and Fridays at - // 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. + // HoursOfDay: Hours of the day when the ad will serve, where 0 is midnight to + // 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in + // which case the ad would serve during these hours on the specified days. For + // example if Monday, Wednesday, Friday are the days of week specified and + // 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, + // Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, + // inclusive. HoursOfDay []int64 `json:"hoursOfDay,omitempty"` - - // UserLocalTime: Whether or not to use the user's local time. If false, - // the America/New York time zone applies. + // UserLocalTime: Whether or not to use the user's local time. If false, the + // America/New York time zone applies. UserLocalTime bool `json:"userLocalTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "DaysOfWeek") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DaysOfWeek") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DaysOfWeek") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DayPartTargeting) MarshalJSON() ([]byte, error) { +func (s DayPartTargeting) MarshalJSON() ([]byte, error) { type NoMethod DayPartTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeepLink: Contains information about a landing page deep link. type DeepLink struct { // AppUrl: The URL of the mobile app being linked to. AppUrl string `json:"appUrl,omitempty"` - - // FallbackUrl: The fallback URL. This URL will be served to users who - // do not have the mobile app installed. + // FallbackUrl: The fallback URL. This URL will be served to users who do not + // have the mobile app installed. FallbackUrl string `json:"fallbackUrl,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#deepLink". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#deepLink". Kind string `json:"kind,omitempty"` - // MobileApp: The mobile app targeted by this deep link. MobileApp *MobileApp `json:"mobileApp,omitempty"` - - // RemarketingListIds: Ads served to users on these remarketing lists - // will use this deep link. Applicable when mobileApp.directory is - // APPLE_APP_STORE. + // RemarketingListIds: Ads served to users on these remarketing lists will use + // this deep link. Applicable when mobileApp.directory is APPLE_APP_STORE. RemarketingListIds googleapi.Int64s `json:"remarketingListIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AppUrl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppUrl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeepLink) MarshalJSON() ([]byte, error) { +func (s DeepLink) MarshalJSON() ([]byte, error) { type NoMethod DeepLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DefaultClickThroughEventTagProperties: Properties of inheriting and -// overriding the default click-through event tag. A campaign may -// override the event tag defined at the advertiser level, and an ad may -// also override the campaign's setting further. +// overriding the default click-through event tag. A campaign may override the +// event tag defined at the advertiser level, and an ad may also override the +// campaign's setting further. type DefaultClickThroughEventTagProperties struct { - // DefaultClickThroughEventTagId: ID of the click-through event tag to - // apply to all ads in this entity's scope. + // DefaultClickThroughEventTagId: ID of the click-through event tag to apply to + // all ads in this entity's scope. DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"` - - // OverrideInheritedEventTag: Whether this entity should override the - // inherited default click-through event tag with its own defined value. + // OverrideInheritedEventTag: Whether this entity should override the inherited + // default click-through event tag with its own defined value. OverrideInheritedEventTag bool `json:"overrideInheritedEventTag,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "DefaultClickThroughEventTagId") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DefaultClickThroughEventTagId") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultClickThroughEventTagId") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { +func (s DefaultClickThroughEventTagProperties) MarshalJSON() ([]byte, error) { type NoMethod DefaultClickThroughEventTagProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeliverySchedule: Delivery Schedule. type DeliverySchedule struct { - // FrequencyCap: Limit on the number of times an individual user can be - // served the ad within a specified period of time. + // FrequencyCap: Limit on the number of times an individual user can be served + // the ad within a specified period of time. FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"` - - // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad - // will not serve after the end date and time. Otherwise the ad will - // continue to be served until it has reached its delivery goals. + // HardCutoff: Whether or not hard cutoff is enabled. If true, the ad will not + // serve after the end date and time. Otherwise the ad will continue to be + // served until it has reached its delivery goals. HardCutoff bool `json:"hardCutoff,omitempty"` - - // ImpressionRatio: Impression ratio for this ad. This ratio determines - // how often each ad is served relative to the others. For example, if - // ad A has an impression ratio of 1 and ad B has an impression ratio of - // 3, then Campaign Manager will serve ad B three times as often as ad - // A. Acceptable values are 1 to 10, inclusive. + // ImpressionRatio: Impression ratio for this ad. This ratio determines how + // often each ad is served relative to the others. For example, if ad A has an + // impression ratio of 1 and ad B has an impression ratio of 3, then Campaign + // Manager will serve ad B three times as often as ad A. Acceptable values are + // 1 to 10, inclusive. ImpressionRatio int64 `json:"impressionRatio,omitempty,string"` - - // Priority: Serving priority of an ad, with respect to other ads. The - // lower the priority number, the greater the priority with which it is - // served. + // Priority: Serving priority of an ad, with respect to other ads. The lower + // the priority number, the greater the priority with which it is served. // // Possible values: // "AD_PRIORITY_01" @@ -6722,162 +5486,124 @@ type DeliverySchedule struct { // "AD_PRIORITY_15" // "AD_PRIORITY_16" Priority string `json:"priority,omitempty"` - // ForceSendFields is a list of field names (e.g. "FrequencyCap") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FrequencyCap") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FrequencyCap") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeliverySchedule) MarshalJSON() ([]byte, error) { +func (s DeliverySchedule) MarshalJSON() ([]byte, error) { type NoMethod DeliverySchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DfpSettings: Google Ad Manager Settings type DfpSettings struct { // DfpNetworkCode: Ad Manager network code for this directory site. DfpNetworkCode string `json:"dfpNetworkCode,omitempty"` - // DfpNetworkName: Ad Manager network name for this directory site. DfpNetworkName string `json:"dfpNetworkName,omitempty"` - // ProgrammaticPlacementAccepted: Whether this directory site accepts // programmatic placements. ProgrammaticPlacementAccepted bool `json:"programmaticPlacementAccepted,omitempty"` - - // PubPaidPlacementAccepted: Whether this directory site accepts - // publisher-paid tags. + // PubPaidPlacementAccepted: Whether this directory site accepts publisher-paid + // tags. PubPaidPlacementAccepted bool `json:"pubPaidPlacementAccepted,omitempty"` - - // PublisherPortalOnly: Whether this directory site is available only - // via Publisher Portal. + // PublisherPortalOnly: Whether this directory site is available only via + // Publisher Portal. PublisherPortalOnly bool `json:"publisherPortalOnly,omitempty"` - // ForceSendFields is a list of field names (e.g. "DfpNetworkCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DfpNetworkCode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DfpNetworkCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DfpSettings) MarshalJSON() ([]byte, error) { +func (s DfpSettings) MarshalJSON() ([]byte, error) { type NoMethod DfpSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Dimension: Represents a dimension. type Dimension struct { - // Kind: The kind of resource this is, in this case - // dfareporting#dimension. + // Kind: The kind of resource this is, in this case dfareporting#dimension. Kind string `json:"kind,omitempty"` - // Name: The dimension name, e.g. dfa:advertiser Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Dimension) MarshalJSON() ([]byte, error) { +func (s Dimension) MarshalJSON() ([]byte, error) { type NoMethod Dimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionFilter: Represents a dimension filter. type DimensionFilter struct { // DimensionName: The name of the dimension to filter. DimensionName string `json:"dimensionName,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionFilter. Kind string `json:"kind,omitempty"` - // Value: The value of the dimension to filter. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionFilter) MarshalJSON() ([]byte, error) { +func (s DimensionFilter) MarshalJSON() ([]byte, error) { type NoMethod DimensionFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValue: Represents a DimensionValue resource. type DimensionValue struct { // DimensionName: The name of the dimension. DimensionName string `json:"dimensionName,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID associated with the value if available. Id string `json:"id,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#dimensionValue. Kind string `json:"kind,omitempty"` - - // MatchType: Determines how the 'value' field is matched when - // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. + // MatchType: Determines how the 'value' field is matched when filtering. If + // not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is + // allowed as a placeholder for variable length character sequences, and it can + // be escaped with a backslash. Note, only paid search dimensions + // ('dfa:paidSearch*') allow a matchType other than EXACT. // // Possible values: // "EXACT" @@ -6885,76 +5611,59 @@ type DimensionValue struct { // "CONTAINS" // "WILDCARD_EXPRESSION" MatchType string `json:"matchType,omitempty"` - // Value: The value of the dimension. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValue) MarshalJSON() ([]byte, error) { +func (s DimensionValue) MarshalJSON() ([]byte, error) { type NoMethod DimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueList: Represents the list of DimensionValue resources. type DimensionValueList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The dimension values returned in this response. Items []*DimensionValue `json:"items,omitempty"` - // Kind: The kind of list this is, in this case // dfareporting#dimensionValueList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through dimension - // values. To retrieve the next page of results, set the next request's - // "pageToken" to the value of this field. The page token is only valid - // for a limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through dimension values. To + // retrieve the next page of results, set the next request's "pageToken" to the + // value of this field. The page token is only valid for a limited amount of + // time and should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueList) MarshalJSON() ([]byte, error) { +func (s DimensionValueList) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DimensionValueRequest: Represents a DimensionValuesRequest. @@ -6962,57 +5671,44 @@ type DimensionValueRequest struct { // DimensionName: The name of the dimension for which values should be // requested. DimensionName string `json:"dimensionName,omitempty"` - - EndDate string `json:"endDate,omitempty"` - - // Filters: The list of filters by which to filter values. The filters - // are ANDed. + EndDate string `json:"endDate,omitempty"` + // Filters: The list of filters by which to filter values. The filters are + // ANDed. Filters []*DimensionFilter `json:"filters,omitempty"` - // Kind: The kind of request this is, in this case // dfareporting#dimensionValueRequest . - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` StartDate string `json:"startDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DimensionValueRequest) MarshalJSON() ([]byte, error) { +func (s DimensionValueRequest) MarshalJSON() ([]byte, error) { type NoMethod DimensionValueRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DirectorySite: DirectorySites contains properties of a website from -// the Site Directory. Sites need to be added to an account via the -// Sites resource before they can be assigned to a placement. +// DirectorySite: DirectorySites contains properties of a website from the Site +// Directory. Sites need to be added to an account via the Sites resource +// before they can be assigned to a placement. type DirectorySite struct { - // Id: ID of this directory site. This is a read-only, auto-generated - // field. + // Id: ID of this directory site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this directory site. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this directory site. This is + // a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // InpageTagFormats: Tag types for regular placements. Acceptable values - // are: - "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - - // "INTERNAL_REDIRECT_INPAGE" - "JAVASCRIPT_INPAGE" + // InpageTagFormats: Tag types for regular placements. Acceptable values are: - + // "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - "INTERNAL_REDIRECT_INPAGE" - + // "JAVASCRIPT_INPAGE" // // Possible values: // "STANDARD" @@ -7020,9 +5716,8 @@ type DirectorySite struct { // "INTERNAL_REDIRECT_INPAGE" // "JAVASCRIPT_INPAGE" InpageTagFormats []string `json:"inpageTagFormats,omitempty"` - - // InterstitialTagFormats: Tag types for interstitial placements. - // Acceptable values are: - "IFRAME_JAVASCRIPT_INTERSTITIAL" - + // InterstitialTagFormats: Tag types for interstitial placements. Acceptable + // values are: - "IFRAME_JAVASCRIPT_INTERSTITIAL" - // "INTERNAL_REDIRECT_INTERSTITIAL" - "JAVASCRIPT_INTERSTITIAL" // // Possible values: @@ -7030,186 +5725,143 @@ type DirectorySite struct { // "INTERNAL_REDIRECT_INTERSTITIAL" // "JAVASCRIPT_INTERSTITIAL" InterstitialTagFormats []string `json:"interstitialTagFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySite". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySite". Kind string `json:"kind,omitempty"` - // Name: Name of this directory site. Name string `json:"name,omitempty"` - // Settings: Directory site settings. Settings *DirectorySiteSettings `json:"settings,omitempty"` - // Url: URL of this directory site. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySite) MarshalJSON() ([]byte, error) { +func (s DirectorySite) MarshalJSON() ([]byte, error) { type NoMethod DirectorySite - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySiteSettings: Directory Site Settings type DirectorySiteSettings struct { - // ActiveViewOptOut: Whether this directory site has disabled active - // view creatives. + // ActiveViewOptOut: Whether this directory site has disabled active view + // creatives. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - // DfpSettings: Directory site Ad Manager settings. DfpSettings *DfpSettings `json:"dfpSettings,omitempty"` - - // InstreamVideoPlacementAccepted: Whether this site accepts in-stream - // video ads. - InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` - - // InterstitialPlacementAccepted: Whether this site accepts interstitial + // InstreamVideoPlacementAccepted: Whether this site accepts in-stream video // ads. + InstreamVideoPlacementAccepted bool `json:"instreamVideoPlacementAccepted,omitempty"` + // InterstitialPlacementAccepted: Whether this site accepts interstitial ads. InterstitialPlacementAccepted bool `json:"interstitialPlacementAccepted,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySiteSettings) MarshalJSON() ([]byte, error) { +func (s DirectorySiteSettings) MarshalJSON() ([]byte, error) { type NoMethod DirectorySiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DirectorySitesListResponse: Directory Site List Response type DirectorySitesListResponse struct { // DirectorySites: Directory site collection. DirectorySites []*DirectorySite `json:"directorySites,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#directorySitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#directorySitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DirectorySites") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DirectorySites") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DirectorySites") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DirectorySitesListResponse) MarshalJSON() ([]byte, error) { +func (s DirectorySitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod DirectorySitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DisjunctiveMatchStatement: Represents a Disjunctive Match Statement // resource, which is a conjunction (and) of disjunctive (or) boolean // statements. type DisjunctiveMatchStatement struct { - // EventFilters: The event filters contained within this disjunctive - // match statement. + // EventFilters: The event filters contained within this disjunctive match + // statement. EventFilters []*EventFilter `json:"eventFilters,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#disjunctiveMatchStatement. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventFilters") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventFilters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DisjunctiveMatchStatement) MarshalJSON() ([]byte, error) { +func (s DisjunctiveMatchStatement) MarshalJSON() ([]byte, error) { type NoMethod DisjunctiveMatchStatement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DynamicTargetingKey: Contains properties of a dynamic targeting key. -// Dynamic targeting keys are unique, user-friendly labels, created at -// the advertiser level in DCM, that can be assigned to ads, creatives, -// and placements and used for targeting with Studio dynamic creatives. -// Use these labels instead of numeric Campaign Manager IDs (such as -// placement IDs) to save time and avoid errors in your dynamic feeds. +// DynamicTargetingKey: Contains properties of a dynamic targeting key. Dynamic +// targeting keys are unique, user-friendly labels, created at the advertiser +// level in DCM, that can be assigned to ads, creatives, and placements and +// used for targeting with Studio dynamic creatives. Use these labels instead +// of numeric Campaign Manager IDs (such as placement IDs) to save time and +// avoid errors in your dynamic feeds. type DynamicTargetingKey struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKey". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKey". Kind string `json:"kind,omitempty"` - - // Name: Name of this dynamic targeting key. This is a required field. - // Must be less than 256 characters long and cannot contain commas. All - // characters are converted to lowercase. + // Name: Name of this dynamic targeting key. This is a required field. Must be + // less than 256 characters long and cannot contain commas. All characters are + // converted to lowercase. Name string `json:"name,omitempty"` - - // ObjectId: ID of the object of this dynamic targeting key. This is a - // required field. + // ObjectId: ID of the object of this dynamic targeting key. This is a required + // field. ObjectId int64 `json:"objectId,omitempty,string"` - - // ObjectType: Type of the object of this dynamic targeting key. This is - // a required field. + // ObjectType: Type of the object of this dynamic targeting key. This is a + // required field. // // Possible values: // "OBJECT_ADVERTISER" @@ -7218,69 +5870,52 @@ type DynamicTargetingKey struct { // "OBJECT_PLACEMENT" ObjectType string `json:"objectType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKey) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKey) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DynamicTargetingKeysListResponse: Dynamic Targeting Key List Response type DynamicTargetingKeysListResponse struct { // DynamicTargetingKeys: Dynamic targeting key collection. DynamicTargetingKeys []*DynamicTargetingKey `json:"dynamicTargetingKeys,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#dynamicTargetingKeysListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#dynamicTargetingKeysListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "DynamicTargetingKeys") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTargetingKeys") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTargetingKeys") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { +func (s DynamicTargetingKeysListResponse) MarshalJSON() ([]byte, error) { type NoMethod DynamicTargetingKeysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EncryptionInfo: A description of how user IDs are encrypted. @@ -7288,9 +5923,8 @@ type EncryptionInfo struct { // EncryptionEntityId: The encryption entity ID. This should match the // encryption configuration for ad serving or Data Transfer. EncryptionEntityId int64 `json:"encryptionEntityId,omitempty,string"` - - // EncryptionEntityType: The encryption entity type. This should match - // the encryption configuration for ad serving or Data Transfer. + // EncryptionEntityType: The encryption entity type. This should match the + // encryption configuration for ad serving or Data Transfer. // // Possible values: // "ENCRYPTION_ENTITY_TYPE_UNKNOWN" @@ -7301,306 +5935,234 @@ type EncryptionInfo struct { // "ADWORDS_CUSTOMER" // "DFP_NETWORK_CODE" EncryptionEntityType string `json:"encryptionEntityType,omitempty"` - - // EncryptionSource: Describes whether the encrypted cookie was received - // from ad serving (the %m macro) or from Data Transfer. + // EncryptionSource: Describes whether the encrypted cookie was received from + // ad serving (the %m macro) or from Data Transfer. // // Possible values: // "ENCRYPTION_SCOPE_UNKNOWN" // "AD_SERVING" // "DATA_TRANSFER" EncryptionSource string `json:"encryptionSource,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#encryptionInfo". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#encryptionInfo". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EncryptionEntityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptionEntityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptionEntityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncryptionInfo) MarshalJSON() ([]byte, error) { +func (s EncryptionInfo) MarshalJSON() ([]byte, error) { type NoMethod EncryptionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventFilter: Represents a DfaReporting event filter. type EventFilter struct { - // DimensionFilter: The dimension filter contained within this - // EventFilter. + // DimensionFilter: The dimension filter contained within this EventFilter. DimensionFilter *PathReportDimensionValue `json:"dimensionFilter,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#eventFilter. + // Kind: The kind of resource this is, in this case dfareporting#eventFilter. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilter") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilter") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventFilter) MarshalJSON() ([]byte, error) { +func (s EventFilter) MarshalJSON() ([]byte, error) { type NoMethod EventFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTag: Contains properties of an event tag. type EventTag struct { - // AccountId: Account ID of this event tag. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this event tag. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this event tag. This field or the - // campaignId field is required on insertion. + // AdvertiserId: Advertiser ID of this event tag. This field or the campaignId + // field is required on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // CampaignId: Campaign ID of this event tag. This field or the - // advertiserId field is required on insertion. + // CampaignId: Campaign ID of this event tag. This field or the advertiserId + // field is required on insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // EnabledByDefault: Whether this event tag should be automatically - // enabled for all of the advertiser's campaigns and ads. + // EnabledByDefault: Whether this event tag should be automatically enabled for + // all of the advertiser's campaigns and ads. EnabledByDefault bool `json:"enabledByDefault,omitempty"` - - // ExcludeFromAdxRequests: Whether to remove this event tag from ads - // that are trafficked through Display & Video 360 to Ad Exchange. This - // may be useful if the event tag uses a pixel that is unapproved for Ad - // Exchange bids on one or more networks, such as the Google Display - // Network. + // ExcludeFromAdxRequests: Whether to remove this event tag from ads that are + // trafficked through Display & Video 360 to Ad Exchange. This may be useful if + // the event tag uses a pixel that is unapproved for Ad Exchange bids on one or + // more networks, such as the Google Display Network. ExcludeFromAdxRequests bool `json:"excludeFromAdxRequests,omitempty"` - // Id: ID of this event tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTag". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTag". Kind string `json:"kind,omitempty"` - - // Name: Name of this event tag. This is a required field and must be - // less than 256 characters long. + // Name: Name of this event tag. This is a required field and must be less than + // 256 characters long. Name string `json:"name,omitempty"` - - // SiteFilterType: Site filter type for this event tag. If no type is - // specified then the event tag will be applied to all sites. + // SiteFilterType: Site filter type for this event tag. If no type is specified + // then the event tag will be applied to all sites. // // Possible values: // "WHITELIST" // "BLACKLIST" SiteFilterType string `json:"siteFilterType,omitempty"` - // SiteIds: Filter list of site IDs associated with this event tag. The - // siteFilterType determines whether this is a allowlist or blocklist - // filter. + // siteFilterType determines whether this is a allowlist or blocklist filter. SiteIds googleapi.Int64s `json:"siteIds,omitempty"` - - // SslCompliant: Whether this tag is SSL-compliant or not. This is a - // read-only field. + // SslCompliant: Whether this tag is SSL-compliant or not. This is a read-only + // field. SslCompliant bool `json:"sslCompliant,omitempty"` - - // Status: Status of this event tag. Must be ENABLED for this event tag - // to fire. This is a required field. + // Status: Status of this event tag. Must be ENABLED for this event tag to + // fire. This is a required field. // // Possible values: // "ENABLED" // "DISABLED" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this event tag. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this event tag. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // Type: Event tag type. Can be used to specify whether to use a - // third-party pixel, a third-party JavaScript URL, or a third-party - // click-through URL for either impression or click tracking. This is a - // required field. + // Type: Event tag type. Can be used to specify whether to use a third-party + // pixel, a third-party JavaScript URL, or a third-party click-through URL for + // either impression or click tracking. This is a required field. // // Possible values: // "IMPRESSION_IMAGE_EVENT_TAG" // "IMPRESSION_JAVASCRIPT_EVENT_TAG" // "CLICK_THROUGH_EVENT_TAG" Type string `json:"type,omitempty"` - - // Url: Payload URL for this event tag. The URL on a click-through event - // tag should have a landing page URL appended to the end of it. This - // field is required on insertion. + // Url: Payload URL for this event tag. The URL on a click-through event tag + // should have a landing page URL appended to the end of it. This field is + // required on insertion. Url string `json:"url,omitempty"` - - // UrlEscapeLevels: Number of times the landing page URL should be - // URL-escaped before being appended to the click-through event tag URL. - // Only applies to click-through event tags as specified by the event - // tag type. + // UrlEscapeLevels: Number of times the landing page URL should be URL-escaped + // before being appended to the click-through event tag URL. Only applies to + // click-through event tags as specified by the event tag type. UrlEscapeLevels int64 `json:"urlEscapeLevels,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTag) MarshalJSON() ([]byte, error) { +func (s EventTag) MarshalJSON() ([]byte, error) { type NoMethod EventTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagOverride: Event tag override information. type EventTagOverride struct { // Enabled: Whether this override is enabled. Enabled bool `json:"enabled,omitempty"` - - // Id: ID of this event tag override. This is a read-only, - // auto-generated field. + // Id: ID of this event tag override. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagOverride) MarshalJSON() ([]byte, error) { +func (s EventTagOverride) MarshalJSON() ([]byte, error) { type NoMethod EventTagOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EventTagsListResponse: Event Tag List Response type EventTagsListResponse struct { // EventTags: Event tag collection. EventTags []*EventTag `json:"eventTags,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#eventTagsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#eventTagsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EventTags") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventTags") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventTags") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTagsListResponse) MarshalJSON() ([]byte, error) { +func (s EventTagsListResponse) MarshalJSON() ([]byte, error) { type NoMethod EventTagsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// File: Represents a File resource. A file contains the metadata for a -// report run. It shows the status of the run and holds the URLs to the -// generated report data if the run is finished and the status is -// "REPORT_AVAILABLE". +// File: Represents a File resource. A file contains the metadata for a report +// run. It shows the status of the run and holds the URLs to the generated +// report data if the run is finished and the status is "REPORT_AVAILABLE". type File struct { - // DateRange: The date range for which the file has report data. The - // date range will always be the absolute date range for which the - // report is run. + // DateRange: The date range for which the file has report data. The date range + // will always be the absolute date range for which the report is run. DateRange *DateRange `json:"dateRange,omitempty"` - // Etag: Etag of this resource. Etag string `json:"etag,omitempty"` - // FileName: The filename of the file. FileName string `json:"fileName,omitempty"` - - // Format: The output format of the report. Only available once the file - // is available. + // Format: The output format of the report. Only available once the file is + // available. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID of this report file. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#file". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#file". Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp in milliseconds since epoch when this - // file was last modified. + // LastModifiedTime: The timestamp in milliseconds since epoch when this file + // was last modified. LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"` - // ReportId: The ID of the report this file was generated from. ReportId int64 `json:"reportId,omitempty,string"` - // Status: The status of the report file. // // Possible values: @@ -7609,257 +6171,195 @@ type File struct { // "FAILED" // "CANCELLED" Status string `json:"status,omitempty"` - // Urls: The URLs where the completed report file can be downloaded. Urls *FileUrls `json:"urls,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DateRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DateRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DateRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *File) MarshalJSON() ([]byte, error) { +func (s File) MarshalJSON() ([]byte, error) { type NoMethod File - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileUrls: The URLs where the completed report file can be downloaded. type FileUrls struct { // ApiUrl: The URL for downloading the report data through the API. ApiUrl string `json:"apiUrl,omitempty"` - - // BrowserUrl: The URL for downloading the report data through a - // browser. + // BrowserUrl: The URL for downloading the report data through a browser. BrowserUrl string `json:"browserUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ApiUrl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiUrl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileUrls) MarshalJSON() ([]byte, error) { +func (s FileUrls) MarshalJSON() ([]byte, error) { type NoMethod FileUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FileList: List of files for a report. type FileList struct { // Etag: Etag of this resource. Etag string `json:"etag,omitempty"` - // Items: The files returned in this response. Items []*File `json:"items,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#fileList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#fileList". Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through files. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through files. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FileList) MarshalJSON() ([]byte, error) { +func (s FileList) MarshalJSON() ([]byte, error) { type NoMethod FileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Flight: Flight type Flight struct { EndDate string `json:"endDate,omitempty"` - // RateOrCost: Rate or cost of this flight. - RateOrCost int64 `json:"rateOrCost,omitempty,string"` - - StartDate string `json:"startDate,omitempty"` - + RateOrCost int64 `json:"rateOrCost,omitempty,string"` + StartDate string `json:"startDate,omitempty"` // Units: Units of this flight. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Flight) MarshalJSON() ([]byte, error) { +func (s Flight) MarshalJSON() ([]byte, error) { type NoMethod Flight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivitiesGenerateTagResponse: Floodlight Activity -// GenerateTag Response +// FloodlightActivitiesGenerateTagResponse: Floodlight Activity GenerateTag +// Response type FloodlightActivitiesGenerateTagResponse struct { - // FloodlightActivityTag: Generated tag for this Floodlight activity. - // For global site tags, this is the event snippet. + // FloodlightActivityTag: Generated tag for this Floodlight activity. For + // global site tags, this is the event snippet. FloodlightActivityTag string `json:"floodlightActivityTag,omitempty"` - - // GlobalSiteTagGlobalSnippet: The global snippet section of a global - // site tag. The global site tag sets new cookies on your domain, which - // will store a unique identifier for a user or the ad click that - // brought the user to your site. Learn more. + // GlobalSiteTagGlobalSnippet: The global snippet section of a global site tag. + // The global site tag sets new cookies on your domain, which will store a + // unique identifier for a user or the ad click that brought the user to your + // site. Learn more. GlobalSiteTagGlobalSnippet string `json:"globalSiteTagGlobalSnippet,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesGenerateTagResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesGenerateTagResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityTag") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityTag") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FloodlightActivityTag") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesGenerateTagResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesGenerateTagResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivitiesListResponse: Floodlight Activity List Response type FloodlightActivitiesListResponse struct { // FloodlightActivities: Floodlight activity collection. FloodlightActivities []*FloodlightActivity `json:"floodlightActivities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivitiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivitiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivities") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivities") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivities") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivities") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivitiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivitiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivity: Contains properties of a Floodlight activity. type FloodlightActivity struct { - // AccountId: Account ID of this floodlight activity. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity. If this - // field is left blank, the value will be copied over either from the - // activity group's advertiser or the existing activity's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity. If this field is + // left blank, the value will be copied over either from the activity group's + // advertiser or the existing activity's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // AttributionEnabled: Whether the activity is enabled for attribution. AttributionEnabled bool `json:"attributionEnabled,omitempty"` - - // CacheBustingType: Code type used for cache busting in the generated - // tag. Applicable only when floodlightActivityGroupType is COUNTER and + // CacheBustingType: Code type used for cache busting in the generated tag. + // Applicable only when floodlightActivityGroupType is COUNTER and // countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING. // // Possible values: @@ -7869,7 +6369,6 @@ type FloodlightActivity struct { // "PHP" // "COLD_FUSION" CacheBustingType string `json:"cacheBustingType,omitempty"` - // CountingMethod: Counting method for conversions for this floodlight // activity. This is a required field. // @@ -7880,92 +6379,71 @@ type FloodlightActivity struct { // "TRANSACTIONS_COUNTING" // "ITEMS_SOLD_COUNTING" CountingMethod string `json:"countingMethod,omitempty"` - // DefaultTags: Dynamic floodlight tags. DefaultTags []*FloodlightActivityDynamicTag `json:"defaultTags,omitempty"` - - // ExpectedUrl: URL where this tag will be deployed. If specified, must - // be less than 256 characters long. + // ExpectedUrl: URL where this tag will be deployed. If specified, must be less + // than 256 characters long. ExpectedUrl string `json:"expectedUrl,omitempty"` - - // FloodlightActivityGroupId: Floodlight activity group ID of this - // floodlight activity. This is a required field. + // FloodlightActivityGroupId: Floodlight activity group ID of this floodlight + // activity. This is a required field. FloodlightActivityGroupId int64 `json:"floodlightActivityGroupId,omitempty,string"` - - // FloodlightActivityGroupName: Name of the associated floodlight - // activity group. This is a read-only field. + // FloodlightActivityGroupName: Name of the associated floodlight activity + // group. This is a read-only field. FloodlightActivityGroupName string `json:"floodlightActivityGroupName,omitempty"` - - // FloodlightActivityGroupTagString: Tag string of the associated - // floodlight activity group. This is a read-only field. - FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` - - // FloodlightActivityGroupType: Type of the associated floodlight + // FloodlightActivityGroupTagString: Tag string of the associated floodlight // activity group. This is a read-only field. + FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"` + // FloodlightActivityGroupType: Type of the associated floodlight activity + // group. This is a read-only field. // // Possible values: // "COUNTER" // "SALE" FloodlightActivityGroupType string `json:"floodlightActivityGroupType,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity. If this field is left blank, the value will be - // copied over either from the activity group's floodlight configuration - // or from the existing activity's floodlight configuration. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity. If this field is left blank, the value will be copied over either + // from the activity group's floodlight configuration or from the existing + // activity's floodlight configuration. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - - // FloodlightTagType: The type of Floodlight tag this activity will - // generate. This is a required field. + // FloodlightTagType: The type of Floodlight tag this activity will generate. + // This is a required field. // // Possible values: // "IFRAME" // "IMAGE" // "GLOBAL_SITE_TAG" FloodlightTagType string `json:"floodlightTagType,omitempty"` - - // Id: ID of this floodlight activity. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight activity. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity. + // This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivity". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivity". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity. This is a required field. - // Must be less than 129 characters long and cannot contain quotes. + // Name: Name of this floodlight activity. This is a required field. Must be + // less than 129 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - // Notes: General notes or implementation instructions for the tag. Notes string `json:"notes,omitempty"` - // PublisherTags: Publisher dynamic floodlight tags. PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"` - // Secure: Whether this tag should use SSL. Secure bool `json:"secure,omitempty"` - - // SslCompliant: Whether the floodlight activity is SSL-compliant. This - // is a read-only field, its value detected by the system from the - // floodlight tags. + // SslCompliant: Whether the floodlight activity is SSL-compliant. This is a + // read-only field, its value detected by the system from the floodlight tags. SslCompliant bool `json:"sslCompliant,omitempty"` - // SslRequired: Whether this floodlight activity must be SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - // Status: The status of the activity. This can only be set to ACTIVE or - // ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and - // cannot be set for Floodlight activities. The DISABLED_POLICY status - // indicates that a Floodlight activity is violating Google policy. - // Contact your account manager for more information. + // ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and cannot + // be set for Floodlight activities. The DISABLED_POLICY status indicates that + // a Floodlight activity is violating Google policy. Contact your account + // manager for more information. // // Possible values: // "ACTIVE" @@ -7973,31 +6451,26 @@ type FloodlightActivity struct { // "ARCHIVED" // "DISABLED_POLICY" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagFormat: Tag format type for the floodlight activity. If left - // blank, the tag format will default to HTML. + // TagFormat: Tag format type for the floodlight activity. If left blank, the + // tag format will default to HTML. // // Possible values: // "HTML" // "XHTML" TagFormat string `json:"tagFormat,omitempty"` - - // TagString: Value of the cat= parameter in the floodlight tag, which - // the ad servers use to identify the activity. This is optional: if - // empty, a new tag string will be generated for you. This string must - // be 1 to 8 characters long, with valid characters being a-z0-9[ _ ]. - // This tag string must also be unique among activities of the same - // activity group. This field is read-only after insertion. + // TagString: Value of the cat= parameter in the floodlight tag, which the ad + // servers use to identify the activity. This is optional: if empty, a new tag + // string will be generated for you. This string must be 1 to 8 characters + // long, with valid characters being a-z0-9[ _ ]. This tag string must also be + // unique among activities of the same activity group. This field is read-only + // after insertion. TagString string `json:"tagString,omitempty"` - - // UserDefinedVariableTypes: List of the user-defined variables used by - // this conversion tag. These map to the "u[1-100]=" in the tags. Each - // of these can have a user defined type. Acceptable values are U1 to - // U100, inclusive. + // UserDefinedVariableTypes: List of the user-defined variables used by this + // conversion tag. These map to the "u[1-100]=" in the tags. Each of these can + // have a user defined type. Acceptable values are U1 to U100, inclusive. // // Possible values: // "U1" @@ -8102,157 +6575,118 @@ type FloodlightActivity struct { // "U100" UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivity) MarshalJSON() ([]byte, error) { +func (s FloodlightActivity) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityDynamicTag: Dynamic Tag type FloodlightActivityDynamicTag struct { - // Id: ID of this dynamic tag. This is a read-only, auto-generated - // field. + // Id: ID of this dynamic tag. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // Name: Name of this tag. Name string `json:"name,omitempty"` - // Tag: Tag code. Tag string `json:"tag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightActivityGroup: Contains properties of a Floodlight activity -// group. +// FloodlightActivityGroup: Contains properties of a Floodlight activity group. type FloodlightActivityGroup struct { - // AccountId: Account ID of this floodlight activity group. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight activity group. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this floodlight activity group. If - // this field is left blank, the value will be copied over either from - // the floodlight configuration's advertiser or from the existing - // activity group's advertiser. + // AdvertiserId: Advertiser ID of this floodlight activity group. If this field + // is left blank, the value will be copied over either from the floodlight + // configuration's advertiser or from the existing activity group's advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // FloodlightConfigurationId: Floodlight configuration ID of this - // floodlight activity group. This is a required field. + // FloodlightConfigurationId: Floodlight configuration ID of this floodlight + // activity group. This is a required field. FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"` - - // FloodlightConfigurationIdDimensionValue: Dimension value for the ID - // of the floodlight configuration. This is a read-only, auto-generated - // field. + // FloodlightConfigurationIdDimensionValue: Dimension value for the ID of the + // floodlight configuration. This is a read-only, auto-generated field. FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"` - // Id: ID of this floodlight activity group. This is a read-only, // auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this floodlight - // activity group. This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this floodlight activity + // group. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroup". Kind string `json:"kind,omitempty"` - - // Name: Name of this floodlight activity group. This is a required - // field. Must be less than 65 characters long and cannot contain - // quotes. + // Name: Name of this floodlight activity group. This is a required field. Must + // be less than 65 characters long and cannot contain quotes. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight activity group. This - // is a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight activity group. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagString: Value of the type= parameter in the floodlight tag, which - // the ad servers use to identify the activity group that the activity - // belongs to. This is optional: if empty, a new tag string will be - // generated for you. This string must be 1 to 8 characters long, with - // valid characters being a-z0-9[ _ ]. This tag string must also be - // unique among activity groups of the same floodlight configuration. - // This field is read-only after insertion. + // TagString: Value of the type= parameter in the floodlight tag, which the ad + // servers use to identify the activity group that the activity belongs to. + // This is optional: if empty, a new tag string will be generated for you. This + // string must be 1 to 8 characters long, with valid characters being a-z0-9[ _ + // ]. This tag string must also be unique among activity groups of the same + // floodlight configuration. This field is read-only after insertion. TagString string `json:"tagString,omitempty"` - - // Type: Type of the floodlight activity group. This is a required field - // that is read-only after insertion. + // Type: Type of the floodlight activity group. This is a required field that + // is read-only after insertion. // // Possible values: // "COUNTER" // "SALE" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityGroupsListResponse: Floodlight Activity Group List @@ -8260,498 +6694,372 @@ func (s *FloodlightActivityGroup) MarshalJSON() ([]byte, error) { type FloodlightActivityGroupsListResponse struct { // FloodlightActivityGroups: Floodlight activity group collection. FloodlightActivityGroups []*FloodlightActivityGroup `json:"floodlightActivityGroups,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightActivityGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightActivityGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityGroups") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityGroups") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityGroups") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightActivityPublisherDynamicTag: Publisher Dynamic Tag type FloodlightActivityPublisherDynamicTag struct { // ClickThrough: Whether this tag is applicable only for click-throughs. ClickThrough bool `json:"clickThrough,omitempty"` - - // DirectorySiteId: Directory site ID of this dynamic tag. This is a - // write-only field that can be used as an alternative to the siteId - // field. When this resource is retrieved, only the siteId field will be - // populated. + // DirectorySiteId: Directory site ID of this dynamic tag. This is a write-only + // field that can be used as an alternative to the siteId field. When this + // resource is retrieved, only the siteId field will be populated. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - // DynamicTag: Dynamic floodlight tag. DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"` - // SiteId: Site ID of this dynamic tag. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - // ViewThrough: Whether this tag is applicable only for view-throughs. ViewThrough bool `json:"viewThrough,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickThrough") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThrough") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickThrough") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { +func (s FloodlightActivityPublisherDynamicTag) MarshalJSON() ([]byte, error) { type NoMethod FloodlightActivityPublisherDynamicTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfiguration: Contains properties of a Floodlight -// configuration. +// FloodlightConfiguration: Contains properties of a Floodlight configuration. type FloodlightConfiguration struct { - // AccountId: Account ID of this floodlight configuration. This is a - // read-only field that can be left blank. + // AccountId: Account ID of this floodlight configuration. This is a read-only + // field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of the parent advertiser of this - // floodlight configuration. + // AdvertiserId: Advertiser ID of the parent advertiser of this floodlight + // configuration. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - - // AnalyticsDataSharingEnabled: Whether advertiser data is shared with - // Google Analytics. + // AnalyticsDataSharingEnabled: Whether advertiser data is shared with Google + // Analytics. AnalyticsDataSharingEnabled bool `json:"analyticsDataSharingEnabled,omitempty"` - // CustomViewabilityMetric: Custom Viewability metric for the floodlight // configuration. CustomViewabilityMetric *CustomViewabilityMetric `json:"customViewabilityMetric,omitempty"` - - // ExposureToConversionEnabled: Whether the exposure-to-conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure-to-conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // FirstDayOfWeek: Day that will be counted as the first day of the week - // in reports. This is a required field. + // FirstDayOfWeek: Day that will be counted as the first day of the week in + // reports. This is a required field. // // Possible values: // "MONDAY" // "SUNDAY" FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"` - - // Id: ID of this floodlight configuration. This is a read-only, - // auto-generated field. + // Id: ID of this floodlight configuration. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this floodlight // configuration. This is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // InAppAttributionTrackingEnabled: Whether in-app attribution tracking - // is enabled. + // InAppAttributionTrackingEnabled: Whether in-app attribution tracking is + // enabled. InAppAttributionTrackingEnabled bool `json:"inAppAttributionTrackingEnabled,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfiguration". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfiguration". Kind string `json:"kind,omitempty"` - // LookbackConfiguration: Lookback window settings for this floodlight // configuration. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // NaturalSearchConversionAttributionOption: Types of attribution - // options for natural search conversions. + // NaturalSearchConversionAttributionOption: Types of attribution options for + // natural search conversions. // // Possible values: // "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" // "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" NaturalSearchConversionAttributionOption string `json:"naturalSearchConversionAttributionOption,omitempty"` - // OmnitureSettings: Settings for Campaign Manager Omniture integration. OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"` - - // SubaccountId: Subaccount ID of this floodlight configuration. This is - // a read-only field that can be left blank. + // SubaccountId: Subaccount ID of this floodlight configuration. This is a + // read-only field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // TagSettings: Configuration settings for dynamic and image floodlight - // tags. + // TagSettings: Configuration settings for dynamic and image floodlight tags. TagSettings *TagSettings `json:"tagSettings,omitempty"` - - // ThirdPartyAuthenticationTokens: List of third-party authentication - // tokens enabled for this configuration. - ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` - - // UserDefinedVariableConfigurations: List of user defined variables + // ThirdPartyAuthenticationTokens: List of third-party authentication tokens // enabled for this configuration. + ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"` + // UserDefinedVariableConfigurations: List of user defined variables enabled + // for this configuration. UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfiguration) MarshalJSON() ([]byte, error) { +func (s FloodlightConfiguration) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightConfigurationsListResponse: Floodlight Configuration List -// Response +// FloodlightConfigurationsListResponse: Floodlight Configuration List Response type FloodlightConfigurationsListResponse struct { // FloodlightConfigurations: Floodlight configuration collection. FloodlightConfigurations []*FloodlightConfiguration `json:"floodlightConfigurations,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#floodlightConfigurationsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#floodlightConfigurationsListResponse". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightConfigurations") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightConfigurations") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightConfigurations") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightConfigurations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { +func (s FloodlightConfigurationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FloodlightConfigurationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FloodlightReportCompatibleFields: Represents fields that are -// compatible to be selected for a report of type "FlOODLIGHT". +// FloodlightReportCompatibleFields: Represents fields that are compatible to +// be selected for a report of type "FlOODLIGHT". type FloodlightReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#floodlightReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s FloodlightReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod FloodlightReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FrequencyCap: Frequency Cap. type FrequencyCap struct { - // Duration: Duration of time, in seconds, for this frequency cap. The - // maximum duration is 90 days. Acceptable values are 1 to 7776000, - // inclusive. + // Duration: Duration of time, in seconds, for this frequency cap. The maximum + // duration is 90 days. Acceptable values are 1 to 7776000, inclusive. Duration int64 `json:"duration,omitempty,string"` - - // Impressions: Number of times an individual user can be served the ad - // within the specified duration. Acceptable values are 1 to 15, - // inclusive. + // Impressions: Number of times an individual user can be served the ad within + // the specified duration. Acceptable values are 1 to 15, inclusive. Impressions int64 `json:"impressions,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FrequencyCap) MarshalJSON() ([]byte, error) { +func (s FrequencyCap) MarshalJSON() ([]byte, error) { type NoMethod FrequencyCap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FsCommand: FsCommand. type FsCommand struct { - // Left: Distance from the left of the browser.Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Left: Distance from the left of the browser.Applicable when positionOption + // is DISTANCE_FROM_TOP_LEFT_CORNER. Left int64 `json:"left,omitempty"` - // PositionOption: Position in the browser where the window will open. // // Possible values: // "CENTERED" // "DISTANCE_FROM_TOP_LEFT_CORNER" PositionOption string `json:"positionOption,omitempty"` - - // Top: Distance from the top of the browser. Applicable when - // positionOption is DISTANCE_FROM_TOP_LEFT_CORNER. + // Top: Distance from the top of the browser. Applicable when positionOption is + // DISTANCE_FROM_TOP_LEFT_CORNER. Top int64 `json:"top,omitempty"` - // WindowHeight: Height of the window. WindowHeight int64 `json:"windowHeight,omitempty"` - // WindowWidth: Width of the window. WindowWidth int64 `json:"windowWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FsCommand) MarshalJSON() ([]byte, error) { +func (s FsCommand) MarshalJSON() ([]byte, error) { type NoMethod FsCommand - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GeoTargeting: Geographical Targeting. type GeoTargeting struct { - // Cities: Cities to be targeted. For each city only dartId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a city, do not target or exclude the country - // of the city, and do not target the metro or region of the city. + // Cities: Cities to be targeted. For each city only dartId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a city, do not target or exclude the country of the city, and + // do not target the metro or region of the city. Cities []*City `json:"cities,omitempty"` - - // Countries: Countries to be targeted or excluded from targeting, - // depending on the setting of the excludeCountries field. For each - // country only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting or - // excluding a country, do not target regions, cities, metros, or postal - // codes in the same country. + // Countries: Countries to be targeted or excluded from targeting, depending on + // the setting of the excludeCountries field. For each country only dartId is + // required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting or excluding a country, do not target + // regions, cities, metros, or postal codes in the same country. Countries []*Country `json:"countries,omitempty"` - - // ExcludeCountries: Whether or not to exclude the countries in the - // countries field from targeting. If false, the countries field refers - // to countries which will be targeted by the ad. + // ExcludeCountries: Whether or not to exclude the countries in the countries + // field from targeting. If false, the countries field refers to countries + // which will be targeted by the ad. ExcludeCountries bool `json:"excludeCountries,omitempty"` - - // Metros: Metros to be targeted. For each metro only dmaId is required. - // The other fields are populated automatically when the ad is inserted - // or updated. If targeting a metro, do not target or exclude the - // country of the metro. + // Metros: Metros to be targeted. For each metro only dmaId is required. The + // other fields are populated automatically when the ad is inserted or updated. + // If targeting a metro, do not target or exclude the country of the metro. Metros []*Metro `json:"metros,omitempty"` - - // PostalCodes: Postal codes to be targeted. For each postal code only - // id is required. The other fields are populated automatically when the - // ad is inserted or updated. If targeting a postal code, do not target - // or exclude the country of the postal code. - PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - - // Regions: Regions to be targeted. For each region only dartId is + // PostalCodes: Postal codes to be targeted. For each postal code only id is // required. The other fields are populated automatically when the ad is - // inserted or updated. If targeting a region, do not target or exclude - // the country of the region. + // inserted or updated. If targeting a postal code, do not target or exclude + // the country of the postal code. + PostalCodes []*PostalCode `json:"postalCodes,omitempty"` + // Regions: Regions to be targeted. For each region only dartId is required. + // The other fields are populated automatically when the ad is inserted or + // updated. If targeting a region, do not target or exclude the country of the + // region. Regions []*Region `json:"regions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cities") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cities") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoTargeting) MarshalJSON() ([]byte, error) { +func (s GeoTargeting) MarshalJSON() ([]byte, error) { type NoMethod GeoTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItem: Represents a buy from the Planning inventory store. type InventoryItem struct { // AccountId: Account ID of this inventory item. AccountId int64 `json:"accountId,omitempty,string"` - - // AdSlots: Ad slots of this inventory item. If this inventory item - // represents a standalone placement, there will be exactly one ad slot. - // If this inventory item represents a placement group, there will be - // more than one ad slot, each representing one child placement in that - // placement group. + // AdSlots: Ad slots of this inventory item. If this inventory item represents + // a standalone placement, there will be exactly one ad slot. If this inventory + // item represents a placement group, there will be more than one ad slot, each + // representing one child placement in that placement group. AdSlots []*AdSlot `json:"adSlots,omitempty"` - // AdvertiserId: Advertiser ID of this inventory item. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // ContentCategoryId: Content category ID of this inventory item. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // EstimatedClickThroughRate: Estimated click-through rate of this - // inventory item. - EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` - - // EstimatedConversionRate: Estimated conversion rate of this inventory + // EstimatedClickThroughRate: Estimated click-through rate of this inventory // item. + EstimatedClickThroughRate int64 `json:"estimatedClickThroughRate,omitempty,string"` + // EstimatedConversionRate: Estimated conversion rate of this inventory item. EstimatedConversionRate int64 `json:"estimatedConversionRate,omitempty,string"` - // Id: ID of this inventory item. Id int64 `json:"id,omitempty,string"` - // InPlan: Whether this inventory item is in plan. InPlan bool `json:"inPlan,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItem". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this inventory item. + // LastModifiedInfo: Information about the most recent modification of this + // inventory item. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this inventory item. For standalone inventory items, - // this is the same name as that of its only ad slot. For group - // inventory items, this can differ from the name of any of its ad - // slots. + // Name: Name of this inventory item. For standalone inventory items, this is + // the same name as that of its only ad slot. For group inventory items, this + // can differ from the name of any of its ad slots. Name string `json:"name,omitempty"` - // NegotiationChannelId: Negotiation channel ID of this inventory item. NegotiationChannelId int64 `json:"negotiationChannelId,omitempty,string"` - // OrderId: Order ID of this inventory item. OrderId int64 `json:"orderId,omitempty,string"` - // PlacementStrategyId: Placement strategy ID of this inventory item. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - // Pricing: Pricing of this inventory item. Pricing *Pricing `json:"pricing,omitempty"` - // ProjectId: Project ID of this inventory item. ProjectId int64 `json:"projectId,omitempty,string"` - // RfpId: RFP ID of this inventory item. RfpId int64 `json:"rfpId,omitempty,string"` - // SiteId: ID of the site this inventory item is associated with. SiteId int64 `json:"siteId,omitempty,string"` - // SubaccountId: Subaccount ID of this inventory item. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Type: Type of inventory item. // // Possible values: @@ -8759,382 +7067,291 @@ type InventoryItem struct { // "PLANNING_PLACEMENT_TYPE_CREDIT" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItem) MarshalJSON() ([]byte, error) { +func (s InventoryItem) MarshalJSON() ([]byte, error) { type NoMethod InventoryItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventoryItemsListResponse: Inventory item List Response type InventoryItemsListResponse struct { // InventoryItems: Inventory item collection InventoryItems []*InventoryItem `json:"inventoryItems,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#inventoryItemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#inventoryItemsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "InventoryItems") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventoryItems") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventoryItems") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventoryItemsListResponse) MarshalJSON() ([]byte, error) { +func (s InventoryItemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod InventoryItemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // KeyValueTargetingExpression: Key Value Targeting Expression. type KeyValueTargetingExpression struct { // Expression: Keyword expression being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { +func (s KeyValueTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod KeyValueTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LandingPage: Contains information about where a user's browser is -// taken after the user clicks an ad. +// LandingPage: Contains information about where a user's browser is taken +// after the user clicks an ad. type LandingPage struct { - // AdvertiserId: Advertiser ID of this landing page. This is a required - // field. + // AdvertiserId: Advertiser ID of this landing page. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // Archived: Whether this landing page has been archived. Archived bool `json:"archived,omitempty"` - - // DeepLinks: Links that will direct the user to a mobile app, if - // installed. + // DeepLinks: Links that will direct the user to a mobile app, if installed. DeepLinks []*DeepLink `json:"deepLinks,omitempty"` - - // Id: ID of this landing page. This is a read-only, auto-generated - // field. + // Id: ID of this landing page. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#landingPage". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#landingPage". Kind string `json:"kind,omitempty"` - - // Name: Name of this landing page. This is a required field. It must be - // less than 256 characters long. + // Name: Name of this landing page. This is a required field. It must be less + // than 256 characters long. Name string `json:"name,omitempty"` - // Url: URL of this landing page. This is a required field. Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LandingPage) MarshalJSON() ([]byte, error) { +func (s LandingPage) MarshalJSON() ([]byte, error) { type NoMethod LandingPage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Language: Contains information about a language that can be targeted -// by ads. +// Language: Contains information about a language that can be targeted by ads. type Language struct { - // Id: Language ID of this language. This is the ID used for targeting - // and generating reports. + // Id: Language ID of this language. This is the ID used for targeting and + // generating reports. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#language". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#language". Kind string `json:"kind,omitempty"` - - // LanguageCode: Format of language code is an ISO 639 two-letter - // language code optionally followed by an underscore followed by an ISO - // 3166 code. Examples are "en" for English or "zh_CN" for Simplified - // Chinese. + // LanguageCode: Format of language code is an ISO 639 two-letter language code + // optionally followed by an underscore followed by an ISO 3166 code. Examples + // are "en" for English or "zh_CN" for Simplified Chinese. LanguageCode string `json:"languageCode,omitempty"` - // Name: Name of this language. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Language) MarshalJSON() ([]byte, error) { +func (s Language) MarshalJSON() ([]byte, error) { type NoMethod Language - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguageTargeting: Language Targeting. type LanguageTargeting struct { - // Languages: Languages that this ad targets. For each language only - // languageId is required. The other fields are populated automatically - // when the ad is inserted or updated. + // Languages: Languages that this ad targets. For each language only languageId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. Languages []*Language `json:"languages,omitempty"` - // ForceSendFields is a list of field names (e.g. "Languages") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Languages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Languages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguageTargeting) MarshalJSON() ([]byte, error) { +func (s LanguageTargeting) MarshalJSON() ([]byte, error) { type NoMethod LanguageTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguagesListResponse: Language List Response type LanguagesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#languagesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#languagesListResponse". Kind string `json:"kind,omitempty"` - // Languages: Language collection. Languages []*Language `json:"languages,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguagesListResponse) MarshalJSON() ([]byte, error) { +func (s LanguagesListResponse) MarshalJSON() ([]byte, error) { type NoMethod LanguagesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LastModifiedInfo: Modification timestamp. type LastModifiedInfo struct { // Time: Timestamp of the last change in milliseconds since epoch. Time int64 `json:"time,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Time") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Time") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Time") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Time") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LastModifiedInfo) MarshalJSON() ([]byte, error) { +func (s LastModifiedInfo) MarshalJSON() ([]byte, error) { type NoMethod LastModifiedInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationClause: A group clause made up of list population terms // representing constraints joined by ORs. type ListPopulationClause struct { - // Terms: Terms of this list population clause. Each clause is made up - // of list population terms representing constraints and are joined by - // ORs. + // Terms: Terms of this list population clause. Each clause is made up of list + // population terms representing constraints and are joined by ORs. Terms []*ListPopulationTerm `json:"terms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Terms") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Terms") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Terms") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationClause) MarshalJSON() ([]byte, error) { +func (s ListPopulationClause) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationClause - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationRule: Remarketing List Population Rule. type ListPopulationRule struct { - // FloodlightActivityId: Floodlight activity ID associated with this - // rule. This field can be left blank. + // FloodlightActivityId: Floodlight activity ID associated with this rule. This + // field can be left blank. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // FloodlightActivityName: Name of floodlight activity associated with - // this rule. This is a read-only, auto-generated field. + // FloodlightActivityName: Name of floodlight activity associated with this + // rule. This is a read-only, auto-generated field. FloodlightActivityName string `json:"floodlightActivityName,omitempty"` - - // ListPopulationClauses: Clauses that make up this list population - // rule. Clauses are joined by ANDs, and the clauses themselves are made - // up of list population terms which are joined by ORs. + // ListPopulationClauses: Clauses that make up this list population rule. + // Clauses are joined by ANDs, and the clauses themselves are made up of list + // population terms which are joined by ORs. ListPopulationClauses []*ListPopulationClause `json:"listPopulationClauses,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationRule) MarshalJSON() ([]byte, error) { +func (s ListPopulationRule) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListPopulationTerm: Remarketing List Population Rule Term. type ListPopulationTerm struct { - // Contains: Will be true if the term should check if the user is in the - // list and false if the term should check if the user is not in the - // list. This field is only relevant when type is set to - // LIST_MEMBERSHIP_TERM. False by default. + // Contains: Will be true if the term should check if the user is in the list + // and false if the term should check if the user is not in the list. This + // field is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by + // default. Contains bool `json:"contains,omitempty"` - - // Negation: Whether to negate the comparison result of this term during - // rule evaluation. This field is only relevant when type is left unset - // or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. + // Negation: Whether to negate the comparison result of this term during rule + // evaluation. This field is only relevant when type is left unset or set to + // CUSTOM_VARIABLE_TERM or REFERRER_TERM. Negation bool `json:"negation,omitempty"` - - // Operator: Comparison operator of this term. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Operator: Comparison operator of this term. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. // // Possible values: // "NUM_EQUALS" @@ -9145,252 +7362,194 @@ type ListPopulationTerm struct { // "STRING_EQUALS" // "STRING_CONTAINS" Operator string `json:"operator,omitempty"` - - // RemarketingListId: ID of the list in question. This field is only - // relevant when type is set to LIST_MEMBERSHIP_TERM. + // RemarketingListId: ID of the list in question. This field is only relevant + // when type is set to LIST_MEMBERSHIP_TERM. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - - // Type: List population term type determines the applicable fields in - // this object. If left unset or set to CUSTOM_VARIABLE_TERM, then - // variableName, variableFriendlyName, operator, value, and negation are - // applicable. If set to LIST_MEMBERSHIP_TERM then remarketingListId and - // contains are applicable. If set to REFERRER_TERM then operator, - // value, and negation are applicable. + // Type: List population term type determines the applicable fields in this + // object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, + // variableFriendlyName, operator, value, and negation are applicable. If set + // to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. + // If set to REFERRER_TERM then operator, value, and negation are applicable. // // Possible values: // "CUSTOM_VARIABLE_TERM" // "LIST_MEMBERSHIP_TERM" // "REFERRER_TERM" Type string `json:"type,omitempty"` - - // Value: Literal to compare the variable to. This field is only - // relevant when type is left unset or set to CUSTOM_VARIABLE_TERM or - // REFERRER_TERM. + // Value: Literal to compare the variable to. This field is only relevant when + // type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. Value string `json:"value,omitempty"` - - // VariableFriendlyName: Friendly name of this term's variable. This is - // a read-only, auto-generated field. This field is only relevant when - // type is left unset or set to CUSTOM_VARIABLE_TERM. + // VariableFriendlyName: Friendly name of this term's variable. This is a + // read-only, auto-generated field. This field is only relevant when type is + // left unset or set to CUSTOM_VARIABLE_TERM. VariableFriendlyName string `json:"variableFriendlyName,omitempty"` - - // VariableName: Name of the variable (U1, U2, etc.) being compared in - // this term. This field is only relevant when type is set to null, + // VariableName: Name of the variable (U1, U2, etc.) being compared in this + // term. This field is only relevant when type is set to null, // CUSTOM_VARIABLE_TERM or REFERRER_TERM. VariableName string `json:"variableName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contains") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contains") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contains") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPopulationTerm) MarshalJSON() ([]byte, error) { +func (s ListPopulationTerm) MarshalJSON() ([]byte, error) { type NoMethod ListPopulationTerm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListTargetingExpression: Remarketing List Targeting Expression. type ListTargetingExpression struct { - // Expression: Expression describing which lists are being targeted by - // the ad. + // Expression: Expression describing which lists are being targeted by the ad. Expression string `json:"expression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Expression") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Expression") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Expression") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListTargetingExpression) MarshalJSON() ([]byte, error) { +func (s ListTargetingExpression) MarshalJSON() ([]byte, error) { type NoMethod ListTargetingExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LookbackConfiguration: Lookback configuration settings. type LookbackConfiguration struct { - // ClickDuration: Lookback window, in days, from the last time a given - // user clicked on one of your ads. If you enter 0, clicks will not be - // considered as triggering events for floodlight tracking. If you leave + // ClickDuration: Lookback window, in days, from the last time a given user + // clicked on one of your ads. If you enter 0, clicks will not be considered as + // triggering events for floodlight tracking. If you leave this field blank, + // the default value for your account will be used. Acceptable values are 0 to + // 90, inclusive. + ClickDuration int64 `json:"clickDuration,omitempty"` + // PostImpressionActivitiesDuration: Lookback window, in days, from the last + // time a given user viewed one of your ads. If you enter 0, impressions will + // not be considered as triggering events for floodlight tracking. If you leave // this field blank, the default value for your account will be used. // Acceptable values are 0 to 90, inclusive. - ClickDuration int64 `json:"clickDuration,omitempty"` - - // PostImpressionActivitiesDuration: Lookback window, in days, from the - // last time a given user viewed one of your ads. If you enter 0, - // impressions will not be considered as triggering events for - // floodlight tracking. If you leave this field blank, the default value - // for your account will be used. Acceptable values are 0 to 90, - // inclusive. PostImpressionActivitiesDuration int64 `json:"postImpressionActivitiesDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickDuration") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickDuration") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickDuration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LookbackConfiguration) MarshalJSON() ([]byte, error) { +func (s LookbackConfiguration) MarshalJSON() ([]byte, error) { type NoMethod LookbackConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Metric: Represents a metric. type Metric struct { // Kind: The kind of resource this is, in this case dfareporting#metric. Kind string `json:"kind,omitempty"` - // Name: The metric name, e.g. dfa:impressions Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metric) MarshalJSON() ([]byte, error) { +func (s Metric) MarshalJSON() ([]byte, error) { type NoMethod Metric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metro: Contains information about a metro region that can be targeted -// by ads. +// Metro: Contains information about a metro region that can be targeted by +// ads. type Metro struct { - // CountryCode: Country code of the country to which this metro region - // belongs. + // CountryCode: Country code of the country to which this metro region belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this metro region - // belongs. + // CountryDartId: DART ID of the country to which this metro region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this metro region. DartId int64 `json:"dartId,omitempty,string"` - - // DmaId: DMA ID of this metro region. This is the ID used for targeting - // and generating reports, and is equivalent to metro_code. + // DmaId: DMA ID of this metro region. This is the ID used for targeting and + // generating reports, and is equivalent to metro_code. DmaId int64 `json:"dmaId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metro". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metro". Kind string `json:"kind,omitempty"` - - // MetroCode: Metro code of this metro region. This is equivalent to - // dma_id. + // MetroCode: Metro code of this metro region. This is equivalent to dma_id. MetroCode string `json:"metroCode,omitempty"` - // Name: Name of this metro region. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metro) MarshalJSON() ([]byte, error) { +func (s Metro) MarshalJSON() ([]byte, error) { type NoMethod Metro - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetrosListResponse: Metro List Response type MetrosListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#metrosListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#metrosListResponse". Kind string `json:"kind,omitempty"` - // Metros: Metro collection. Metros []*Metro `json:"metros,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetrosListResponse) MarshalJSON() ([]byte, error) { +func (s MetrosListResponse) MarshalJSON() ([]byte, error) { type NoMethod MetrosListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileApp: Contains information about a mobile app. Used as a landing -// page deep link. +// MobileApp: Contains information about a mobile app. Used as a landing page +// deep link. type MobileApp struct { // Directory: Mobile app directory. // @@ -9399,654 +7558,493 @@ type MobileApp struct { // "APPLE_APP_STORE" // "GOOGLE_PLAY_STORE" Directory string `json:"directory,omitempty"` - // Id: ID of this mobile app. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileApp". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileApp". Kind string `json:"kind,omitempty"` - // PublisherName: Publisher name. PublisherName string `json:"publisherName,omitempty"` - // Title: Title of this mobile app. Title string `json:"title,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Directory") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directory") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directory") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileApp) MarshalJSON() ([]byte, error) { +func (s MobileApp) MarshalJSON() ([]byte, error) { type NoMethod MobileApp - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileAppsListResponse: Mobile app List Response type MobileAppsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileAppsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileAppsListResponse". Kind string `json:"kind,omitempty"` - // MobileApps: Mobile apps collection. MobileApps []*MobileApp `json:"mobileApps,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileAppsListResponse) MarshalJSON() ([]byte, error) { +func (s MobileAppsListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileAppsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileCarrier: Contains information about a mobile carrier that can -// be targeted by ads. +// MobileCarrier: Contains information about a mobile carrier that can be +// targeted by ads. type MobileCarrier struct { // CountryCode: Country code of the country to which this mobile carrier // belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this mobile carrier - // belongs. + // CountryDartId: DART ID of the country to which this mobile carrier belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this mobile carrier. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarrier". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarrier". Kind string `json:"kind,omitempty"` - // Name: Name of this mobile carrier. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarrier) MarshalJSON() ([]byte, error) { +func (s MobileCarrier) MarshalJSON() ([]byte, error) { type NoMethod MobileCarrier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileCarriersListResponse: Mobile Carrier List Response type MobileCarriersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#mobileCarriersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#mobileCarriersListResponse". Kind string `json:"kind,omitempty"` - // MobileCarriers: Mobile carrier collection. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileCarriersListResponse) MarshalJSON() ([]byte, error) { +func (s MobileCarriersListResponse) MarshalJSON() ([]byte, error) { type NoMethod MobileCarriersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObaIcon: Online Behavioral Advertiser icon. type ObaIcon struct { // IconClickThroughUrl: URL to redirect to when an OBA icon is clicked. IconClickThroughUrl string `json:"iconClickThroughUrl,omitempty"` - // IconClickTrackingUrl: URL to track click when an OBA icon is clicked. IconClickTrackingUrl string `json:"iconClickTrackingUrl,omitempty"` - // IconViewTrackingUrl: URL to track view when an OBA icon is clicked. IconViewTrackingUrl string `json:"iconViewTrackingUrl,omitempty"` - - // Program: Identifies the industry initiative that the icon supports. - // For example, AdChoices. + // Program: Identifies the industry initiative that the icon supports. For + // example, AdChoices. Program string `json:"program,omitempty"` - - // ResourceUrl: OBA icon resource URL. Campaign Manager only supports - // image and JavaScript icons. Learn more + // ResourceUrl: OBA icon resource URL. Campaign Manager only supports image and + // JavaScript icons. Learn more ResourceUrl string `json:"resourceUrl,omitempty"` - // Size: OBA icon size. Size *Size `json:"size,omitempty"` - - // XPosition: OBA icon x coordinate position. Accepted values are left - // or right. + // XPosition: OBA icon x coordinate position. Accepted values are left or + // right. XPosition string `json:"xPosition,omitempty"` - // YPosition: OBA icon y coordinate position. Accepted values are top or // bottom. YPosition string `json:"yPosition,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IconClickThroughUrl") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IconClickThroughUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IconClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IconClickThroughUrl") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObaIcon) MarshalJSON() ([]byte, error) { +func (s ObaIcon) MarshalJSON() ([]byte, error) { type NoMethod ObaIcon - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObjectFilter: Object Filter. type ObjectFilter struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#objectFilter". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#objectFilter". Kind string `json:"kind,omitempty"` - // ObjectIds: Applicable when status is ASSIGNED. The user has access to // objects with these object IDs. ObjectIds googleapi.Int64s `json:"objectIds,omitempty"` - - // Status: Status of the filter. NONE means the user has access to none - // of the objects. ALL means the user has access to all objects. - // ASSIGNED means the user has access to the objects with IDs in the - // objectIds list. + // Status: Status of the filter. NONE means the user has access to none of the + // objects. ALL means the user has access to all objects. ASSIGNED means the + // user has access to the objects with IDs in the objectIds list. // // Possible values: // "NONE" // "ASSIGNED" // "ALL" Status string `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectFilter) MarshalJSON() ([]byte, error) { +func (s ObjectFilter) MarshalJSON() ([]byte, error) { type NoMethod ObjectFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OffsetPosition: Offset Position. type OffsetPosition struct { // Left: Offset distance from left side of an asset or a window. Left int64 `json:"left,omitempty"` - // Top: Offset distance from top side of an asset or a window. Top int64 `json:"top,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Left") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Left") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Left") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Left") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OffsetPosition) MarshalJSON() ([]byte, error) { +func (s OffsetPosition) MarshalJSON() ([]byte, error) { type NoMethod OffsetPosition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OmnitureSettings: Omniture Integration Settings. type OmnitureSettings struct { // OmnitureCostDataEnabled: Whether placement cost data will be sent to - // Omniture. This property can be enabled only if - // omnitureIntegrationEnabled is true. + // Omniture. This property can be enabled only if omnitureIntegrationEnabled is + // true. OmnitureCostDataEnabled bool `json:"omnitureCostDataEnabled,omitempty"` - - // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. - // This property can be enabled only when the "Advanced Ad Serving" - // account setting is enabled. + // OmnitureIntegrationEnabled: Whether Omniture integration is enabled. This + // property can be enabled only when the "Advanced Ad Serving" account setting + // is enabled. OmnitureIntegrationEnabled bool `json:"omnitureIntegrationEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "OmnitureCostDataEnabled") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OmnitureSettings) MarshalJSON() ([]byte, error) { +func (s OmnitureSettings) MarshalJSON() ([]byte, error) { type NoMethod OmnitureSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystem: Contains information about an operating system that -// can be targeted by ads. +// OperatingSystem: Contains information about an operating system that can be +// targeted by ads. type OperatingSystem struct { - // DartId: DART ID of this operating system. This is the ID used for - // targeting. + // DartId: DART ID of this operating system. This is the ID used for targeting. DartId int64 `json:"dartId,omitempty,string"` - // Desktop: Whether this operating system is for desktop. Desktop bool `json:"desktop,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystem". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystem". Kind string `json:"kind,omitempty"` - // Mobile: Whether this operating system is for mobile. Mobile bool `json:"mobile,omitempty"` - // Name: Name of this operating system. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DartId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DartId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DartId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystem) MarshalJSON() ([]byte, error) { +func (s OperatingSystem) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersion: Contains information about a particular -// version of an operating system that can be targeted by ads. +// OperatingSystemVersion: Contains information about a particular version of +// an operating system that can be targeted by ads. type OperatingSystemVersion struct { // Id: ID of this operating system version. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersion". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersion". Kind string `json:"kind,omitempty"` - - // MajorVersion: Major version (leftmost number) of this operating - // system version. + // MajorVersion: Major version (leftmost number) of this operating system + // version. MajorVersion string `json:"majorVersion,omitempty"` - - // MinorVersion: Minor version (number after the first dot) of this - // operating system version. + // MinorVersion: Minor version (number after the first dot) of this operating + // system version. MinorVersion string `json:"minorVersion,omitempty"` - // Name: Name of this operating system version. Name string `json:"name,omitempty"` - // OperatingSystem: Operating system of this operating system version. OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersion) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersion) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemVersionsListResponse: Operating System Version List -// Response +// OperatingSystemVersionsListResponse: Operating System Version List Response type OperatingSystemVersionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemVersionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemVersionsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystemVersions: Operating system version collection. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemVersionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemVersionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperatingSystemsListResponse: Operating System List Response type OperatingSystemsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#operatingSystemsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#operatingSystemsListResponse". Kind string `json:"kind,omitempty"` - // OperatingSystems: Operating system collection. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { +func (s OperatingSystemsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OptimizationActivity: Creative optimization activity. type OptimizationActivity struct { - // FloodlightActivityId: Floodlight activity ID of this optimization - // activity. This is a required field. + // FloodlightActivityId: Floodlight activity ID of this optimization activity. + // This is a required field. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // FloodlightActivityIdDimensionValue: Dimension value for the ID of the // floodlight activity. This is a read-only, auto-generated field. FloodlightActivityIdDimensionValue *DimensionValue `json:"floodlightActivityIdDimensionValue,omitempty"` - - // Weight: Weight associated with this optimization. The weight assigned - // will be understood in proportion to the weights assigned to the other + // Weight: Weight associated with this optimization. The weight assigned will + // be understood in proportion to the weights assigned to the other // optimization activities. Value must be greater than or equal to 1. Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OptimizationActivity) MarshalJSON() ([]byte, error) { +func (s OptimizationActivity) MarshalJSON() ([]byte, error) { type NoMethod OptimizationActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Order: Describes properties of a Planning order. type Order struct { // AccountId: Account ID of this order. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // ApproverUserProfileIds: IDs for users that have to approve documents - // created for this order. + // ApproverUserProfileIds: IDs for users that have to approve documents created + // for this order. ApproverUserProfileIds googleapi.Int64s `json:"approverUserProfileIds,omitempty"` - // BuyerInvoiceId: Buyer invoice ID associated with this order. BuyerInvoiceId string `json:"buyerInvoiceId,omitempty"` - // BuyerOrganizationName: Name of the buyer organization. BuyerOrganizationName string `json:"buyerOrganizationName,omitempty"` - // Comments: Comments in this order. Comments string `json:"comments,omitempty"` - // Contacts: Contacts for this order. Contacts []*OrderContact `json:"contacts,omitempty"` - // Id: ID of this order. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#order". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#order". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this order. + // LastModifiedInfo: Information about the most recent modification of this + // order. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this order. Name string `json:"name,omitempty"` - // Notes: Notes of this order. Notes string `json:"notes,omitempty"` - - // PlanningTermId: ID of the terms and conditions template used in this - // order. + // PlanningTermId: ID of the terms and conditions template used in this order. PlanningTermId int64 `json:"planningTermId,omitempty,string"` - // ProjectId: Project ID of this order. ProjectId int64 `json:"projectId,omitempty,string"` - // SellerOrderId: Seller order ID associated with this order. SellerOrderId string `json:"sellerOrderId,omitempty"` - // SellerOrganizationName: Name of the seller organization. SellerOrganizationName string `json:"sellerOrganizationName,omitempty"` - // SiteId: Site IDs this order is associated with. SiteId googleapi.Int64s `json:"siteId,omitempty"` - // SiteNames: Free-form site names this order is associated with. SiteNames []string `json:"siteNames,omitempty"` - // SubaccountId: Subaccount ID of this order. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TermsAndConditions: Terms and conditions of this order. TermsAndConditions string `json:"termsAndConditions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Order) MarshalJSON() ([]byte, error) { +func (s Order) MarshalJSON() ([]byte, error) { type NoMethod Order - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderContact: Contact of an order. type OrderContact struct { - // ContactInfo: Free-form information about this contact. It could be - // any information related to this contact in addition to type, title, - // name, and signature user profile ID. + // ContactInfo: Free-form information about this contact. It could be any + // information related to this contact in addition to type, title, name, and + // signature user profile ID. ContactInfo string `json:"contactInfo,omitempty"` - // ContactName: Name of this contact. ContactName string `json:"contactName,omitempty"` - // ContactTitle: Title of this contact. ContactTitle string `json:"contactTitle,omitempty"` - // ContactType: Type of this contact. // // Possible values: @@ -10054,87 +8052,64 @@ type OrderContact struct { // "PLANNING_ORDER_CONTACT_BUYER_BILLING_CONTACT" // "PLANNING_ORDER_CONTACT_SELLER_CONTACT" ContactType string `json:"contactType,omitempty"` - - // SignatureUserProfileId: ID of the user profile containing the - // signature that will be embedded into order documents. + // SignatureUserProfileId: ID of the user profile containing the signature that + // will be embedded into order documents. SignatureUserProfileId int64 `json:"signatureUserProfileId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ContactInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContactInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContactInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderContact) MarshalJSON() ([]byte, error) { +func (s OrderContact) MarshalJSON() ([]byte, error) { type NoMethod OrderContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocument: Contains properties of a Planning order document. type OrderDocument struct { // AccountId: Account ID of this order document. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this order document. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AmendedOrderDocumentId: The amended order document ID of this order - // document. An order document can be created by optionally amending - // another order document so that the change history can be preserved. + // document. An order document can be created by optionally amending another + // order document so that the change history can be preserved. AmendedOrderDocumentId int64 `json:"amendedOrderDocumentId,omitempty,string"` - // ApprovedByUserProfileIds: IDs of users who have approved this order // document. ApprovedByUserProfileIds googleapi.Int64s `json:"approvedByUserProfileIds,omitempty"` - // Cancelled: Whether this order document is cancelled. Cancelled bool `json:"cancelled,omitempty"` - // CreatedInfo: Information about the creation of this order document. - CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"` - - EffectiveDate string `json:"effectiveDate,omitempty"` - + CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"` + EffectiveDate string `json:"effectiveDate,omitempty"` // Id: ID of this order document. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocument". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocument". Kind string `json:"kind,omitempty"` - - // LastSentRecipients: List of email addresses that received the last - // sent document. + // LastSentRecipients: List of email addresses that received the last sent + // document. LastSentRecipients []string `json:"lastSentRecipients,omitempty"` - - LastSentTime string `json:"lastSentTime,omitempty"` - + LastSentTime string `json:"lastSentTime,omitempty"` // OrderId: ID of the order from which this order document is created. OrderId int64 `json:"orderId,omitempty,string"` - // ProjectId: Project ID of this order document. ProjectId int64 `json:"projectId,omitempty,string"` - // Signed: Whether this order document has been signed. Signed bool `json:"signed,omitempty"` - // SubaccountId: Subaccount ID of this order document. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // Title: Title of this order document. Title string `json:"title,omitempty"` - // Type: Type of this order document // // Possible values: @@ -10142,128 +8117,97 @@ type OrderDocument struct { // "PLANNING_ORDER_TYPE_CHANGE_ORDER" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocument) MarshalJSON() ([]byte, error) { +func (s OrderDocument) MarshalJSON() ([]byte, error) { type NoMethod OrderDocument - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrderDocumentsListResponse: Order document List Response type OrderDocumentsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#orderDocumentsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#orderDocumentsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // OrderDocuments: Order document collection OrderDocuments []*OrderDocument `json:"orderDocuments,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { +func (s OrderDocumentsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrderDocumentsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OrdersListResponse: Order List Response type OrdersListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#ordersListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#ordersListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Orders: Order collection. Orders []*Order `json:"orders,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrdersListResponse) MarshalJSON() ([]byte, error) { +func (s OrdersListResponse) MarshalJSON() ([]byte, error) { type NoMethod OrdersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PathFilter: Represents a DfaReporting path filter. type PathFilter struct { // EventFilters: Event filters in path report. EventFilters []*EventFilter `json:"eventFilters,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#pathFilter. + // Kind: The kind of resource this is, in this case dfareporting#pathFilter. Kind string `json:"kind,omitempty"` - // PathMatchPosition: Determines how the 'value' field is matched when // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. + // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length + // character sequences, and it can be escaped with a backslash. Note, only paid + // search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. // // Possible values: // "PATH_MATCH_POSITION_UNSPECIFIED" @@ -10271,96 +8215,74 @@ type PathFilter struct { // "FIRST" // "LAST" PathMatchPosition string `json:"pathMatchPosition,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventFilters") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventFilters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathFilter) MarshalJSON() ([]byte, error) { +func (s PathFilter) MarshalJSON() ([]byte, error) { type NoMethod PathFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PathReportCompatibleFields: Represents fields that are compatible to -// be selected for a report of type "PATH". +// PathReportCompatibleFields: Represents fields that are compatible to be +// selected for a report of type "PATH". type PathReportCompatibleFields struct { - // ChannelGroupings: Dimensions which are compatible to be selected in - // the "channelGroupings" section of the report. + // ChannelGroupings: Dimensions which are compatible to be selected in the + // "channelGroupings" section of the report. ChannelGroupings []*Dimension `json:"channelGroupings,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#pathReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - // PathFilters: Dimensions which are compatible to be selected in the // "pathFilters" section of the report. PathFilters []*Dimension `json:"pathFilters,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelGroupings") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelGroupings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ChannelGroupings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s PathReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod PathReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PathReportDimensionValue: Represents a PathReportDimensionValue -// resource. +// PathReportDimensionValue: Represents a PathReportDimensionValue resource. type PathReportDimensionValue struct { // DimensionName: The name of the dimension. DimensionName string `json:"dimensionName,omitempty"` - // Ids: The possible ID's associated with the value if available. Ids []string `json:"ids,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#pathReportDimensionValue. Kind string `json:"kind,omitempty"` - - // MatchType: Determines how the 'value' field is matched when - // filtering. If not specified, defaults to EXACT. If set to - // WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable - // length character sequences, and it can be escaped with a backslash. - // Note, only paid search dimensions ('dfa:paidSearch*') allow a - // matchType other than EXACT. + // MatchType: Determines how the 'value' field is matched when filtering. If + // not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is + // allowed as a placeholder for variable length character sequences, and it can + // be escaped with a backslash. Note, only paid search dimensions + // ('dfa:paidSearch*') allow a matchType other than EXACT. // // Possible values: // "EXACT" @@ -10368,128 +8290,94 @@ type PathReportDimensionValue struct { // "CONTAINS" // "WILDCARD_EXPRESSION" MatchType string `json:"matchType,omitempty"` - // Values: The possible values of the dimension. Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DimensionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathReportDimensionValue) MarshalJSON() ([]byte, error) { +func (s PathReportDimensionValue) MarshalJSON() ([]byte, error) { type NoMethod PathReportDimensionValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PathToConversionReportCompatibleFields: Represents fields that are // compatible to be selected for a report of type "PATH_TO_CONVERSION". type PathToConversionReportCompatibleFields struct { - // ConversionDimensions: Conversion dimensions which are compatible to - // be selected in the "conversionDimensions" section of the report. + // ConversionDimensions: Conversion dimensions which are compatible to be + // selected in the "conversionDimensions" section of the report. ConversionDimensions []*Dimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: Custom floodlight variables which are - // compatible to be selected in the "customFloodlightVariables" section - // of the report. + // CustomFloodlightVariables: Custom floodlight variables which are compatible + // to be selected in the "customFloodlightVariables" section of the report. CustomFloodlightVariables []*Dimension `json:"customFloodlightVariables,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#pathToConversionReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PerInteractionDimensions: Per-interaction dimensions which are - // compatible to be selected in the "perInteractionDimensions" section - // of the report. + // PerInteractionDimensions: Per-interaction dimensions which are compatible to + // be selected in the "perInteractionDimensions" section of the report. PerInteractionDimensions []*Dimension `json:"perInteractionDimensions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConversionDimensions") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ConversionDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConversionDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConversionDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s PathToConversionReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod PathToConversionReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Placement: Contains properties of a placement. type Placement struct { - // AccountId: Account ID of this placement. This field can be left - // blank. + // AccountId: Account ID of this placement. This field can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdBlockingOptOut: Whether this placement opts out of ad blocking. - // When true, ad blocking is disabled for this placement. When false, - // the campaign and site settings take effect. + // AdBlockingOptOut: Whether this placement opts out of ad blocking. When true, + // ad blocking is disabled for this placement. When false, the campaign and + // site settings take effect. AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - - // AdditionalSizes: Additional sizes associated with this placement. - // When inserting or updating a placement, only the size ID field is - // used. + // AdditionalSizes: Additional sizes associated with this placement. When + // inserting or updating a placement, only the size ID field is used. AdditionalSizes []*Size `json:"additionalSizes,omitempty"` - - // AdvertiserId: Advertiser ID of this placement. This field can be left - // blank. + // AdvertiserId: Advertiser ID of this placement. This field can be left blank. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement. This field is a required - // field on insertion. + // CampaignId: Campaign ID of this placement. This field is a required field on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - // Comment: Comments for this placement. Comment string `json:"comment,omitempty"` - - // Compatibility: Placement compatibility. DISPLAY and - // DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices - // or in mobile apps for regular or interstitial ads respectively. APP - // and APP_INTERSTITIAL are no longer allowed for new placement - // insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. - // IN_STREAM_VIDEO refers to rendering in in-stream video ads developed - // with the VAST standard. This field is required on insertion. + // Compatibility: Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL + // refer to rendering on desktop, on mobile devices or in mobile apps for + // regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no + // longer allowed for new placement insertions. Instead, use DISPLAY or + // DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video + // ads developed with the VAST standard. This field is required on insertion. // // Possible values: // "DISPLAY" @@ -10499,113 +8387,85 @@ type Placement struct { // "IN_STREAM_VIDEO" // "IN_STREAM_AUDIO" Compatibility string `json:"compatibility,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement. + // ContentCategoryId: ID of the content category assigned to this placement. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement. This is - // a read-only field. + // CreateInfo: Information about the creation of this placement. This is a + // read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID of this placement. On insert, you - // must set either this field or the siteId field to specify the site - // associated with this placement. This is a required field that is - // read-only after insertion. + // DirectorySiteId: Directory site ID of this placement. On insert, you must + // set either this field or the siteId field to specify the site associated + // with this placement. This is a required field that is read-only after + // insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - // Id: ID of this placement. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement. This - // is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement. This is a + // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this placement. This is a read-only, - // auto-generated field. + // KeyName: Key name of this placement. This is a read-only, auto-generated + // field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placement". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placement". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // LookbackConfiguration: Lookback window settings for this placement. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // Name: Name of this placement.This is a required field and must be - // less than or equal to 256 characters long. + // Name: Name of this placement.This is a required field and must be less than + // or equal to 256 characters long. Name string `json:"name,omitempty"` - - // PaymentApproved: Whether payment was approved for this placement. - // This is a read-only field relevant only to publisher-paid placements. + // PaymentApproved: Whether payment was approved for this placement. This is a + // read-only field relevant only to publisher-paid placements. PaymentApproved bool `json:"paymentApproved,omitempty"` - - // PaymentSource: Payment source for this placement. This is a required - // field that is read-only after insertion. + // PaymentSource: Payment source for this placement. This is a required field + // that is read-only after insertion. // // Possible values: // "PLACEMENT_AGENCY_PAID" // "PLACEMENT_PUBLISHER_PAID" PaymentSource string `json:"paymentSource,omitempty"` - // PlacementGroupId: ID of this placement's group, if applicable. PlacementGroupId int64 `json:"placementGroupId,omitempty,string"` - - // PlacementGroupIdDimensionValue: Dimension value for the ID of the - // placement group. This is a read-only, auto-generated field. + // PlacementGroupIdDimensionValue: Dimension value for the ID of the placement + // group. This is a read-only, auto-generated field. PlacementGroupIdDimensionValue *DimensionValue `json:"placementGroupIdDimensionValue,omitempty"` - // PlacementStrategyId: ID of the placement strategy assigned to this // placement. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement. This field is - // required on insertion, specifically subfields startDate, endDate and - // pricingType. + // PricingSchedule: Pricing schedule of this placement. This field is required + // on insertion, specifically subfields startDate, endDate and pricingType. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // Primary: Whether this placement is the primary placement of a - // roadblock (placement group). You cannot change this field from true - // to false. Setting this field to true will automatically set the - // primary field on the original primary placement of the roadblock to - // false, and it will automatically set the roadblock's - // primaryPlacementId field to the ID of this placement. + // Primary: Whether this placement is the primary placement of a roadblock + // (placement group). You cannot change this field from true to false. Setting + // this field to true will automatically set the primary field on the original + // primary placement of the roadblock to false, and it will automatically set + // the roadblock's primaryPlacementId field to the ID of this placement. Primary bool `json:"primary,omitempty"` - - // PublisherUpdateInfo: Information about the last publisher update. - // This is a read-only field. + // PublisherUpdateInfo: Information about the last publisher update. This is a + // read-only field. PublisherUpdateInfo *LastModifiedInfo `json:"publisherUpdateInfo,omitempty"` - - // SiteId: Site ID associated with this placement. On insert, you must - // set either this field or the directorySiteId field to specify the - // site associated with this placement. This is a required field that is - // read-only after insertion. + // SiteId: Site ID associated with this placement. On insert, you must set + // either this field or the directorySiteId field to specify the site + // associated with this placement. This is a required field that is read-only + // after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // Size: Size associated with this placement. When inserting or updating - // a placement, only the size ID field is used. This field is required - // on insertion. + // Size: Size associated with this placement. When inserting or updating a + // placement, only the size ID field is used. This field is required on + // insertion. Size *Size `json:"size,omitempty"` - // SslRequired: Whether creatives assigned to this placement must be // SSL-compliant. SslRequired bool `json:"sslRequired,omitempty"` - // Status: Third-party placement status. // // Possible values: @@ -10616,25 +8476,19 @@ type Placement struct { // "ACKNOWLEDGE_ACCEPTANCE" // "DRAFT" Status string `json:"status,omitempty"` - - // SubaccountId: Subaccount ID of this placement. This field can be left - // blank. + // SubaccountId: Subaccount ID of this placement. This field can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TagFormats: Tag formats to generate for this placement. This field is - // required on insertion. Acceptable values are: - - // "PLACEMENT_TAG_STANDARD" - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - - // "PLACEMENT_TAG_IFRAME_ILAYER" - "PLACEMENT_TAG_INTERNAL_REDIRECT" - - // "PLACEMENT_TAG_JAVASCRIPT" - + // required on insertion. Acceptable values are: - "PLACEMENT_TAG_STANDARD" - + // "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - "PLACEMENT_TAG_IFRAME_ILAYER" - + // "PLACEMENT_TAG_INTERNAL_REDIRECT" - "PLACEMENT_TAG_JAVASCRIPT" - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - - // "PLACEMENT_TAG_CLICK_COMMANDS" - + // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - "PLACEMENT_TAG_CLICK_COMMANDS" - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - - // "PLACEMENT_TAG_TRACKING" - "PLACEMENT_TAG_TRACKING_IFRAME" - - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT" + // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - "PLACEMENT_TAG_TRACKING" - + // "PLACEMENT_TAG_TRACKING_IFRAME" - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" // // Possible values: // "PLACEMENT_TAG_STANDARD" @@ -10658,30 +8512,25 @@ type Placement struct { // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" // "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" TagFormats []string `json:"tagFormats,omitempty"` - // TagSetting: Tag settings for this placement. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOut: Whether Verification and ActiveView are - // disabled for in-stream video creatives for this placement. The same - // setting videoActiveViewOptOut exists on the site level -- the opt out - // occurs if either of these settings are true. These settings are - // distinct from DirectorySites.settings.activeViewOptOut or + // VideoActiveViewOptOut: Whether Verification and ActiveView are disabled for + // in-stream video creatives for this placement. The same setting + // videoActiveViewOptOut exists on the site level -- the opt out occurs if + // either of these settings are true. These settings are distinct from + // DirectorySites.settings.activeViewOptOut or // Sites.siteSettings.activeViewOptOut which only apply to display ads. - // However, Accounts.activeViewOptOut opts out both video traffic, as - // well as display ads, from Verification and ActiveView. + // However, Accounts.activeViewOptOut opts out both video traffic, as well as + // display ads, from Verification and ActiveView. VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"` - - // VideoSettings: A collection of settings which affect video creatives - // served through this placement. Applicable to placements with - // IN_STREAM_VIDEO compatibility. + // VideoSettings: A collection of settings which affect video creatives served + // through this placement. Applicable to placements with IN_STREAM_VIDEO + // compatibility. VideoSettings *VideoSettings `json:"videoSettings,omitempty"` - - // VpaidAdapterChoice: VPAID adapter setting for this placement. - // Controls which VPAID format the measurement adapter will use for - // in-stream video creatives assigned to this placement. *Note:* Flash - // is no longer supported. This field now defaults to HTML5 when the - // following values are provided: FLASH, BOTH. + // VpaidAdapterChoice: VPAID adapter setting for this placement. Controls which + // VPAID format the measurement adapter will use for in-stream video creatives + // assigned to this placement. *Note:* Flash is no longer supported. This field + // now defaults to HTML5 when the following values are provided: FLASH, BOTH. // // Possible values: // "DEFAULT" @@ -10690,31 +8539,24 @@ type Placement struct { // "BOTH" VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Placement) MarshalJSON() ([]byte, error) { +func (s Placement) MarshalJSON() ([]byte, error) { type NoMethod Placement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementAssignment: Placement Assignment. @@ -10722,419 +8564,319 @@ type PlacementAssignment struct { // Active: Whether this placement assignment is active. When true, the // placement will be included in the ad's rotation. Active bool `json:"active,omitempty"` - - // PlacementId: ID of the placement to be assigned. This is a required - // field. + // PlacementId: ID of the placement to be assigned. This is a required field. PlacementId int64 `json:"placementId,omitempty,string"` - - // PlacementIdDimensionValue: Dimension value for the ID of the - // placement. This is a read-only, auto-generated field. + // PlacementIdDimensionValue: Dimension value for the ID of the placement. This + // is a read-only, auto-generated field. PlacementIdDimensionValue *DimensionValue `json:"placementIdDimensionValue,omitempty"` - - // SslRequired: Whether the placement to be assigned requires SSL. This - // is a read-only field that is auto-generated when the ad is inserted - // or updated. + // SslRequired: Whether the placement to be assigned requires SSL. This is a + // read-only field that is auto-generated when the ad is inserted or updated. SslRequired bool `json:"sslRequired,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementAssignment) MarshalJSON() ([]byte, error) { +func (s PlacementAssignment) MarshalJSON() ([]byte, error) { type NoMethod PlacementAssignment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroup: Contains properties of a package or roadblock. type PlacementGroup struct { - // AccountId: Account ID of this placement group. This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement group. This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this placement group. This is a - // required field on insertion. + // AdvertiserId: Advertiser ID of this placement group. This is a required + // field on insertion. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Archived: Whether this placement group is archived. Archived bool `json:"archived,omitempty"` - - // CampaignId: Campaign ID of this placement group. This field is - // required on insertion. + // CampaignId: Campaign ID of this placement group. This field is required on + // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` - - // CampaignIdDimensionValue: Dimension value for the ID of the campaign. - // This is a read-only, auto-generated field. + // CampaignIdDimensionValue: Dimension value for the ID of the campaign. This + // is a read-only, auto-generated field. CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"` - - // ChildPlacementIds: IDs of placements which are assigned to this - // placement group. This is a read-only, auto-generated field. + // ChildPlacementIds: IDs of placements which are assigned to this placement + // group. This is a read-only, auto-generated field. ChildPlacementIds googleapi.Int64s `json:"childPlacementIds,omitempty"` - // Comment: Comments for this placement group. Comment string `json:"comment,omitempty"` - - // ContentCategoryId: ID of the content category assigned to this - // placement group. + // ContentCategoryId: ID of the content category assigned to this placement + // group. ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"` - - // CreateInfo: Information about the creation of this placement group. - // This is a read-only field. + // CreateInfo: Information about the creation of this placement group. This is + // a read-only field. CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"` - - // DirectorySiteId: Directory site ID associated with this placement - // group. On insert, you must set either this field or the site_id field - // to specify the site associated with this placement group. This is a - // required field that is read-only after insertion. + // DirectorySiteId: Directory site ID associated with this placement group. On + // insert, you must set either this field or the site_id field to specify the + // site associated with this placement group. This is a required field that is + // read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // ExternalId: External ID for this placement. ExternalId string `json:"externalId,omitempty"` - - // Id: ID of this placement group. This is a read-only, auto-generated - // field. + // Id: ID of this placement group. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // IdDimensionValue: Dimension value for the ID of this placement group. - // This is a read-only, auto-generated field. + // IdDimensionValue: Dimension value for the ID of this placement group. This + // is a read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroup". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this placement group. This is a read-only field. + // LastModifiedInfo: Information about the most recent modification of this + // placement group. This is a read-only field. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - - // Name: Name of this placement group. This is a required field and must - // be less than 256 characters long. + // Name: Name of this placement group. This is a required field and must be + // less than 256 characters long. Name string `json:"name,omitempty"` - - // PlacementGroupType: Type of this placement group. A package is a - // simple group of placements that acts as a single pricing point for a - // group of tags. A roadblock is a group of placements that not only - // acts as a single pricing point, but also assumes that all the tags in - // it will be served at the same time. A roadblock requires one of its - // assigned placements to be marked as primary for reporting. This field - // is required on insertion. + // PlacementGroupType: Type of this placement group. A package is a simple + // group of placements that acts as a single pricing point for a group of tags. + // A roadblock is a group of placements that not only acts as a single pricing + // point, but also assumes that all the tags in it will be served at the same + // time. A roadblock requires one of its assigned placements to be marked as + // primary for reporting. This field is required on insertion. // // Possible values: // "PLACEMENT_PACKAGE" // "PLACEMENT_ROADBLOCK" PlacementGroupType string `json:"placementGroupType,omitempty"` - - // PlacementStrategyId: ID of the placement strategy assigned to this - // placement group. + // PlacementStrategyId: ID of the placement strategy assigned to this placement + // group. PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"` - - // PricingSchedule: Pricing schedule of this placement group. This field - // is required on insertion. + // PricingSchedule: Pricing schedule of this placement group. This field is + // required on insertion. PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"` - - // PrimaryPlacementId: ID of the primary placement, used to calculate - // the media cost of a roadblock (placement group). Modifying this field - // will automatically modify the primary field on all affected roadblock - // child placements. + // PrimaryPlacementId: ID of the primary placement, used to calculate the media + // cost of a roadblock (placement group). Modifying this field will + // automatically modify the primary field on all affected roadblock child + // placements. PrimaryPlacementId int64 `json:"primaryPlacementId,omitempty,string"` - - // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the - // primary placement. This is a read-only, auto-generated field. + // PrimaryPlacementIdDimensionValue: Dimension value for the ID of the primary + // placement. This is a read-only, auto-generated field. PrimaryPlacementIdDimensionValue *DimensionValue `json:"primaryPlacementIdDimensionValue,omitempty"` - - // SiteId: Site ID associated with this placement group. On insert, you - // must set either this field or the directorySiteId field to specify - // the site associated with this placement group. This is a required - // field that is read-only after insertion. + // SiteId: Site ID associated with this placement group. On insert, you must + // set either this field or the directorySiteId field to specify the site + // associated with this placement group. This is a required field that is + // read-only after insertion. SiteId int64 `json:"siteId,omitempty,string"` - - // SiteIdDimensionValue: Dimension value for the ID of the site. This is - // a read-only, auto-generated field. + // SiteIdDimensionValue: Dimension value for the ID of the site. This is a + // read-only, auto-generated field. SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"` - - // SubaccountId: Subaccount ID of this placement group. This is a - // read-only field that can be left blank. + // SubaccountId: Subaccount ID of this placement group. This is a read-only + // field that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroup) MarshalJSON() ([]byte, error) { +func (s PlacementGroup) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementGroupsListResponse: Placement Group List Response type PlacementGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementGroupsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementGroups: Placement group collection. PlacementGroups []*PlacementGroup `json:"placementGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategiesListResponse: Placement Strategy List Response type PlacementStrategiesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategiesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategiesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // PlacementStrategies: Placement strategy collection. PlacementStrategies []*PlacementStrategy `json:"placementStrategies,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementStrategiesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategiesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementStrategy: Contains properties of a placement strategy. type PlacementStrategy struct { - // AccountId: Account ID of this placement strategy.This is a read-only - // field that can be left blank. + // AccountId: Account ID of this placement strategy.This is a read-only field + // that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // Id: ID of this placement strategy. This is a read-only, - // auto-generated field. + // Id: ID of this placement strategy. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementStrategy". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementStrategy". Kind string `json:"kind,omitempty"` - - // Name: Name of this placement strategy. This is a required field. It - // must be less than 256 characters long and unique among placement - // strategies of the same account. + // Name: Name of this placement strategy. This is a required field. It must be + // less than 256 characters long and unique among placement strategies of the + // same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementStrategy) MarshalJSON() ([]byte, error) { +func (s PlacementStrategy) MarshalJSON() ([]byte, error) { type NoMethod PlacementStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementTag: Placement Tag type PlacementTag struct { // PlacementId: Placement ID PlacementId int64 `json:"placementId,omitempty,string"` - // TagDatas: Tags generated for this placement. TagDatas []*TagData `json:"tagDatas,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlacementId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PlacementId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PlacementId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementTag) MarshalJSON() ([]byte, error) { +func (s PlacementTag) MarshalJSON() ([]byte, error) { type NoMethod PlacementTag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsGenerateTagsResponse: Placement GenerateTags Response type PlacementsGenerateTagsResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsGenerateTagsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsGenerateTagsResponse". Kind string `json:"kind,omitempty"` - // PlacementTags: Set of generated tags for the specified placements. PlacementTags []*PlacementTag `json:"placementTags,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsGenerateTagsResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsGenerateTagsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacementsListResponse: Placement List Response type PlacementsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#placementsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#placementsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Placements: Placement collection. Placements []*Placement `json:"placements,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { +func (s PlacementsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlacementsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformType: Contains information about a platform type that can be @@ -11142,88 +8884,68 @@ func (s *PlacementsListResponse) MarshalJSON() ([]byte, error) { type PlatformType struct { // Id: ID of this platform type. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformType". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformType". Kind string `json:"kind,omitempty"` - // Name: Name of this platform type. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformType) MarshalJSON() ([]byte, error) { +func (s PlatformType) MarshalJSON() ([]byte, error) { type NoMethod PlatformType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlatformTypesListResponse: Platform Type List Response type PlatformTypesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#platformTypesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#platformTypesListResponse". Kind string `json:"kind,omitempty"` - // PlatformTypes: Platform type collection. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlatformTypesListResponse) MarshalJSON() ([]byte, error) { +func (s PlatformTypesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PlatformTypesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PopupWindowProperties: Popup Window Properties. type PopupWindowProperties struct { // Dimension: Popup dimension for a creative. This is a read-only field. - // Applicable to the following creative types: all RICH_MEDIA and all - // VPAID + // Applicable to the following creative types: all RICH_MEDIA and all VPAID Dimension *Size `json:"dimension,omitempty"` - - // Offset: Upper-left corner coordinates of the popup window. Applicable - // if positionType is COORDINATES. + // Offset: Upper-left corner coordinates of the popup window. Applicable if + // positionType is COORDINATES. Offset *OffsetPosition `json:"offset,omitempty"` - // PositionType: Popup window position either centered or at specific // coordinate. // @@ -11231,130 +8953,97 @@ type PopupWindowProperties struct { // "CENTER" // "COORDINATES" PositionType string `json:"positionType,omitempty"` - // ShowAddressBar: Whether to display the browser address bar. ShowAddressBar bool `json:"showAddressBar,omitempty"` - // ShowMenuBar: Whether to display the browser menu bar. ShowMenuBar bool `json:"showMenuBar,omitempty"` - // ShowScrollBar: Whether to display the browser scroll bar. ShowScrollBar bool `json:"showScrollBar,omitempty"` - // ShowStatusBar: Whether to display the browser status bar. ShowStatusBar bool `json:"showStatusBar,omitempty"` - // ShowToolBar: Whether to display the browser tool bar. ShowToolBar bool `json:"showToolBar,omitempty"` - // Title: Title of popup window. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimension") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PopupWindowProperties) MarshalJSON() ([]byte, error) { +func (s PopupWindowProperties) MarshalJSON() ([]byte, error) { type NoMethod PopupWindowProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostalCode: Contains information about a postal code that can be -// targeted by ads. +// PostalCode: Contains information about a postal code that can be targeted by +// ads. type PostalCode struct { // Code: Postal code. This is equivalent to the id field. Code string `json:"code,omitempty"` - - // CountryCode: Country code of the country to which this postal code - // belongs. + // CountryCode: Country code of the country to which this postal code belongs. CountryCode string `json:"countryCode,omitempty"` - - // CountryDartId: DART ID of the country to which this postal code - // belongs. + // CountryDartId: DART ID of the country to which this postal code belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // Id: ID of this postal code. Id string `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCode". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCode". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCode) MarshalJSON() ([]byte, error) { +func (s PostalCode) MarshalJSON() ([]byte, error) { type NoMethod PostalCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PostalCodesListResponse: Postal Code List Response type PostalCodesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#postalCodesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#postalCodesListResponse". Kind string `json:"kind,omitempty"` - // PostalCodes: Postal code collection. PostalCodes []*PostalCode `json:"postalCodes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalCodesListResponse) MarshalJSON() ([]byte, error) { +func (s PostalCodesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PostalCodesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Pricing: Pricing Information @@ -11366,28 +9055,24 @@ type Pricing struct { // "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY" // "PLANNING_PLACEMENT_CAP_COST_TYPE_CUMULATIVE" CapCostType string `json:"capCostType,omitempty"` - - EndDate string `json:"endDate,omitempty"` - - // Flights: Flights of this inventory item. A flight (a.k.a. pricing - // period) represents the inventory item pricing information for a - // specific period of time. + EndDate string `json:"endDate,omitempty"` + // Flights: Flights of this inventory item. A flight (a.k.a. pricing period) + // represents the inventory item pricing information for a specific period of + // time. Flights []*Flight `json:"flights,omitempty"` - - // GroupType: Group type of this inventory item if it represents a - // placement group. Is null otherwise. There are two type of placement - // groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of - // inventory items that acts as a single pricing point for a group of - // tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory - // items that not only acts as a single pricing point, but also assumes - // that all the tags in it will be served at the same time. A roadblock - // requires one of its assigned inventory items to be marked as primary. + // GroupType: Group type of this inventory item if it represents a placement + // group. Is null otherwise. There are two type of placement groups: + // PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items + // that acts as a single pricing point for a group of tags. + // PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that + // not only acts as a single pricing point, but also assumes that all the tags + // in it will be served at the same time. A roadblock requires one of its + // assigned inventory items to be marked as primary. // // Possible values: // "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" // "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" GroupType string `json:"groupType,omitempty"` - // PricingType: Pricing type of this inventory item. // // Possible values: @@ -11400,30 +9085,23 @@ type Pricing struct { // "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS" // "PLANNING_PLACEMENT_PRICING_TYPE_CPM_ACTIVEVIEW" PricingType string `json:"pricingType,omitempty"` - - StartDate string `json:"startDate,omitempty"` - + StartDate string `json:"startDate,omitempty"` // ForceSendFields is a list of field names (e.g. "CapCostType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pricing) MarshalJSON() ([]byte, error) { +func (s Pricing) MarshalJSON() ([]byte, error) { type NoMethod Pricing - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedule: Pricing Schedule @@ -11435,23 +9113,17 @@ type PricingSchedule struct { // "CAP_COST_MONTHLY" // "CAP_COST_CUMULATIVE" CapCostOption string `json:"capCostOption,omitempty"` - - EndDate string `json:"endDate,omitempty"` - - // Flighted: Whether this placement is flighted. If true, pricing - // periods will be computed automatically. + EndDate string `json:"endDate,omitempty"` + // Flighted: Whether this placement is flighted. If true, pricing periods will + // be computed automatically. Flighted bool `json:"flighted,omitempty"` - - // FloodlightActivityId: Floodlight activity ID associated with this - // placement. This field should be set when placement pricing type is - // set to PRICING_TYPE_CPA. + // FloodlightActivityId: Floodlight activity ID associated with this placement. + // This field should be set when placement pricing type is set to + // PRICING_TYPE_CPA. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - // PricingPeriods: Pricing periods for this placement. PricingPeriods []*PricingSchedulePricingPeriod `json:"pricingPeriods,omitempty"` - - // PricingType: Placement pricing type. This field is required on - // insertion. + // PricingType: Placement pricing type. This field is required on insertion. // // Possible values: // "PRICING_TYPE_CPM" @@ -11460,84 +9132,64 @@ type PricingSchedule struct { // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" // "PRICING_TYPE_FLAT_RATE_CLICKS" // "PRICING_TYPE_CPM_ACTIVEVIEW" - PricingType string `json:"pricingType,omitempty"` - - StartDate string `json:"startDate,omitempty"` - + PricingType string `json:"pricingType,omitempty"` + StartDate string `json:"startDate,omitempty"` TestingStartDate string `json:"testingStartDate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CapCostOption") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CapCostOption") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CapCostOption") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedule) MarshalJSON() ([]byte, error) { +func (s PricingSchedule) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PricingSchedulePricingPeriod: Pricing Period type PricingSchedulePricingPeriod struct { EndDate string `json:"endDate,omitempty"` - // PricingComment: Comments for this pricing period. - PricingComment string `json:"pricingComment,omitempty"` - - // RateOrCostNanos: Rate or cost of this pricing period in nanos (i.e., - // multipled by 1000000000). Acceptable values are 0 to - // 1000000000000000000, inclusive. - RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"` - - StartDate string `json:"startDate,omitempty"` - - // Units: Units of this pricing period. Acceptable values are 0 to - // 10000000000, inclusive. + PricingComment string `json:"pricingComment,omitempty"` + // RateOrCostNanos: Rate or cost of this pricing period in nanos (i.e., + // multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, + // inclusive. + RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"` + StartDate string `json:"startDate,omitempty"` + // Units: Units of this pricing period. Acceptable values are 0 to 10000000000, + // inclusive. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { +func (s PricingSchedulePricingPeriod) MarshalJSON() ([]byte, error) { type NoMethod PricingSchedulePricingPeriod - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Project: Contains properties of a Planning project. type Project struct { // AccountId: Account ID of this project. AccountId int64 `json:"accountId,omitempty,string"` - // AdvertiserId: Advertiser ID of this project. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AudienceAgeGroup: Audience age group of this project. // // Possible values: @@ -11549,191 +9201,140 @@ type Project struct { // "PLANNING_AUDIENCE_AGE_65_OR_MORE" // "PLANNING_AUDIENCE_AGE_UNKNOWN" AudienceAgeGroup string `json:"audienceAgeGroup,omitempty"` - // AudienceGender: Audience gender of this project. // // Possible values: // "PLANNING_AUDIENCE_GENDER_MALE" // "PLANNING_AUDIENCE_GENDER_FEMALE" AudienceGender string `json:"audienceGender,omitempty"` - - // Budget: Budget of this project in the currency specified by the - // current account. The value stored in this field represents only the - // non-fractional amount. For example, for USD, the smallest value that - // can be represented by this field is 1 US dollar. + // Budget: Budget of this project in the currency specified by the current + // account. The value stored in this field represents only the non-fractional + // amount. For example, for USD, the smallest value that can be represented by + // this field is 1 US dollar. Budget int64 `json:"budget,omitempty,string"` - // ClientBillingCode: Client billing code of this project. ClientBillingCode string `json:"clientBillingCode,omitempty"` - // ClientName: Name of the project client. ClientName string `json:"clientName,omitempty"` - - EndDate string `json:"endDate,omitempty"` - + EndDate string `json:"endDate,omitempty"` // Id: ID of this project. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#project". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#project". Kind string `json:"kind,omitempty"` - - // LastModifiedInfo: Information about the most recent modification of - // this project. + // LastModifiedInfo: Information about the most recent modification of this + // project. LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"` - // Name: Name of this project. Name string `json:"name,omitempty"` - // Overview: Overview of this project. - Overview string `json:"overview,omitempty"` - + Overview string `json:"overview,omitempty"` StartDate string `json:"startDate,omitempty"` - // SubaccountId: Subaccount ID of this project. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TargetClicks: Number of clicks that the advertiser is targeting. TargetClicks int64 `json:"targetClicks,omitempty,string"` - - // TargetConversions: Number of conversions that the advertiser is - // targeting. + // TargetConversions: Number of conversions that the advertiser is targeting. TargetConversions int64 `json:"targetConversions,omitempty,string"` - // TargetCpaNanos: CPA that the advertiser is targeting. TargetCpaNanos int64 `json:"targetCpaNanos,omitempty,string"` - // TargetCpcNanos: CPC that the advertiser is targeting. TargetCpcNanos int64 `json:"targetCpcNanos,omitempty,string"` - - // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser - // is targeting. + // TargetCpmActiveViewNanos: vCPM from Active View that the advertiser is + // targeting. TargetCpmActiveViewNanos int64 `json:"targetCpmActiveViewNanos,omitempty,string"` - // TargetCpmNanos: CPM that the advertiser is targeting. TargetCpmNanos int64 `json:"targetCpmNanos,omitempty,string"` - - // TargetImpressions: Number of impressions that the advertiser is - // targeting. + // TargetImpressions: Number of impressions that the advertiser is targeting. TargetImpressions int64 `json:"targetImpressions,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Project) MarshalJSON() ([]byte, error) { +func (s Project) MarshalJSON() ([]byte, error) { type NoMethod Project - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProjectsListResponse: Project List Response type ProjectsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#projectsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#projectsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Projects: Project collection. Projects []*Project `json:"projects,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProjectsListResponse) MarshalJSON() ([]byte, error) { +func (s ProjectsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ProjectsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReachReportCompatibleFields: Represents fields that are compatible to -// be selected for a report of type "REACH". +// ReachReportCompatibleFields: Represents fields that are compatible to be +// selected for a report of type "REACH". type ReachReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reachReportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - - // ReachByFrequencyMetrics: Metrics which are compatible to be selected - // in the "reachByFrequencyMetricNames" section of the report. + // ReachByFrequencyMetrics: Metrics which are compatible to be selected in the + // "reachByFrequencyMetricNames" section of the report. ReachByFrequencyMetrics []*Metric `json:"reachByFrequencyMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReachReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReachReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Recipient: Represents a recipient. @@ -11744,165 +9345,122 @@ type Recipient struct { // "LINK" // "ATTACHMENT" DeliveryType string `json:"deliveryType,omitempty"` - // Email: The email address of the recipient. Email string `json:"email,omitempty"` - - // Kind: The kind of resource this is, in this case - // dfareporting#recipient. + // Kind: The kind of resource this is, in this case dfareporting#recipient. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliveryType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliveryType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliveryType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Recipient) MarshalJSON() ([]byte, error) { +func (s Recipient) MarshalJSON() ([]byte, error) { type NoMethod Recipient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Region: Contains information about a region that can be targeted by -// ads. +// Region: Contains information about a region that can be targeted by ads. type Region struct { - // CountryCode: Country code of the country to which this region - // belongs. + // CountryCode: Country code of the country to which this region belongs. CountryCode string `json:"countryCode,omitempty"` - // CountryDartId: DART ID of the country to which this region belongs. CountryDartId int64 `json:"countryDartId,omitempty,string"` - // DartId: DART ID of this region. DartId int64 `json:"dartId,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#region". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#region". Kind string `json:"kind,omitempty"` - // Name: Name of this region. Name string `json:"name,omitempty"` - // RegionCode: Region code. RegionCode string `json:"regionCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Region) MarshalJSON() ([]byte, error) { +func (s Region) MarshalJSON() ([]byte, error) { type NoMethod Region - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RegionsListResponse: Region List Response type RegionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#regionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#regionsListResponse". Kind string `json:"kind,omitempty"` - // Regions: Region collection. Regions []*Region `json:"regions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegionsListResponse) MarshalJSON() ([]byte, error) { +func (s RegionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RegionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingList: Contains properties of a remarketing list. -// Remarketing enables you to create lists of users who have performed -// specific actions on a site, then target ads to members of those -// lists. This resource can be used to manage remarketing lists that are -// owned by your advertisers. To see all remarketing lists that are -// visible to your advertisers, including those that are shared to your -// advertiser or account, use the TargetableRemarketingLists resource. +// RemarketingList: Contains properties of a remarketing list. Remarketing +// enables you to create lists of users who have performed specific actions on +// a site, then target ads to members of those lists. This resource can be used +// to manage remarketing lists that are owned by your advertisers. To see all +// remarketing lists that are visible to your advertisers, including those that +// are shared to your advertiser or account, use the TargetableRemarketingLists +// resource. type RemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // remarketing list. This is a required field. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Remarketing list description. Description string `json:"description,omitempty"` - // Id: Remarketing list ID. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingList". Kind string `json:"kind,omitempty"` - - // LifeSpan: Number of days that a user should remain in the remarketing - // list without an impression. Acceptable values are 1 to 540, - // inclusive. + // LifeSpan: Number of days that a user should remain in the remarketing list + // without an impression. Acceptable values are 1 to 540, inclusive. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListPopulationRule: Rule used to populate the remarketing list with - // users. + // ListPopulationRule: Rule used to populate the remarketing list with users. ListPopulationRule *ListPopulationRule `json:"listPopulationRule,omitempty"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this remarketing list was originated. // // Possible values: @@ -11918,205 +9476,151 @@ type RemarketingList struct { // "REMARKETING_LIST_SOURCE_DMP" // "REMARKETING_LIST_SOURCE_PLAY_STORE" ListSource string `json:"listSource,omitempty"` - - // Name: Name of the remarketing list. This is a required field. Must be - // no greater than 128 characters long. + // Name: Name of the remarketing list. This is a required field. Must be no + // greater than 128 characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingList) MarshalJSON() ([]byte, error) { +func (s RemarketingList) MarshalJSON() ([]byte, error) { type NoMethod RemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemarketingListShare: Contains properties of a remarketing list's -// sharing information. Sharing allows other accounts or advertisers to -// target to your remarketing lists. This resource can be used to manage -// remarketing list sharing to other accounts and advertisers. +// RemarketingListShare: Contains properties of a remarketing list's sharing +// information. Sharing allows other accounts or advertisers to target to your +// remarketing lists. This resource can be used to manage remarketing list +// sharing to other accounts and advertisers. type RemarketingListShare struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListShare". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListShare". Kind string `json:"kind,omitempty"` - - // RemarketingListId: Remarketing list ID. This is a read-only, - // auto-generated field. + // RemarketingListId: Remarketing list ID. This is a read-only, auto-generated + // field. RemarketingListId int64 `json:"remarketingListId,omitempty,string"` - // SharedAccountIds: Accounts that the remarketing list is shared with. SharedAccountIds googleapi.Int64s `json:"sharedAccountIds,omitempty"` - - // SharedAdvertiserIds: Advertisers that the remarketing list is shared - // with. + // SharedAdvertiserIds: Advertisers that the remarketing list is shared with. SharedAdvertiserIds googleapi.Int64s `json:"sharedAdvertiserIds,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListShare) MarshalJSON() ([]byte, error) { +func (s RemarketingListShare) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListShare - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RemarketingListsListResponse: Remarketing list response type RemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#remarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#remarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // RemarketingLists: Remarketing list collection. RemarketingLists []*RemarketingList `json:"remarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s RemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod RemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Report: Represents a Report resource. type Report struct { // AccountId: The account ID to which this report belongs. AccountId int64 `json:"accountId,omitempty,string"` - // Criteria: The report criteria for a report of type "STANDARD". Criteria *ReportCriteria `json:"criteria,omitempty"` - // CrossDimensionReachCriteria: The report criteria for a report of type // "CROSS_DIMENSION_REACH". CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"` - // Delivery: The report's email delivery settings. Delivery *ReportDelivery `json:"delivery,omitempty"` - // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // FileName: The filename used when generating report files for this - // report. + // FileName: The filename used when generating report files for this report. FileName string `json:"fileName,omitempty"` - - // FloodlightCriteria: The report criteria for a report of type - // "FLOODLIGHT". + // FloodlightCriteria: The report criteria for a report of type "FLOODLIGHT". FloodlightCriteria *ReportFloodlightCriteria `json:"floodlightCriteria,omitempty"` - - // Format: The output format of the report. If not specified, default - // format is "CSV". Note that the actual format in the completed report - // file might differ if for instance the report's size exceeds the - // format's capabilities. "CSV" will then be the fallback format. + // Format: The output format of the report. If not specified, default format is + // "CSV". Note that the actual format in the completed report file might differ + // if for instance the report's size exceeds the format's capabilities. "CSV" + // will then be the fallback format. // // Possible values: // "CSV" // "EXCEL" Format string `json:"format,omitempty"` - // Id: The unique ID identifying this report resource. Id int64 `json:"id,omitempty,string"` - // Kind: The kind of resource this is, in this case dfareporting#report. Kind string `json:"kind,omitempty"` - - // LastModifiedTime: The timestamp (in milliseconds since epoch) of when - // this report was last modified. + // LastModifiedTime: The timestamp (in milliseconds since epoch) of when this + // report was last modified. LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"` - // Name: The name of the report. Name string `json:"name,omitempty"` - // OwnerProfileId: The user profile id of the owner of this report. OwnerProfileId int64 `json:"ownerProfileId,omitempty,string"` - // PathAttributionCriteria: The report criteria for a report of type // "PATH_ATTRIBUTION". PathAttributionCriteria *ReportPathAttributionCriteria `json:"pathAttributionCriteria,omitempty"` - // PathCriteria: The report criteria for a report of type "PATH". PathCriteria *ReportPathCriteria `json:"pathCriteria,omitempty"` - // PathToConversionCriteria: The report criteria for a report of type // "PATH_TO_CONVERSION". PathToConversionCriteria *ReportPathToConversionCriteria `json:"pathToConversionCriteria,omitempty"` - // ReachCriteria: The report criteria for a report of type "REACH". ReachCriteria *ReportReachCriteria `json:"reachCriteria,omitempty"` - - // Schedule: The report's schedule. Can only be set if the report's - // 'dateRange' is a relative date range and the relative date range is - // not "TODAY". + // Schedule: The report's schedule. Can only be set if the report's 'dateRange' + // is a relative date range and the relative date range is not "TODAY". Schedule *ReportSchedule `json:"schedule,omitempty"` - - // SubAccountId: The subaccount ID to which this report belongs if - // applicable. + // SubAccountId: The subaccount ID to which this report belongs if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - // Type: The type of the report. // // Possible values: @@ -12129,88 +9633,67 @@ type Report struct { // "PATH_ATTRIBUTION" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Report) MarshalJSON() ([]byte, error) { +func (s Report) MarshalJSON() ([]byte, error) { type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportCriteria: The report criteria for a report of type "STANDARD". type ReportCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range for which this report should be run. DateRange *DateRange `json:"dateRange,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. Filters for different dimensions are ANDed, filters for the - // same dimension are grouped together and ORed. + // DimensionFilters: The list of filters on which dimensions are filtered. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - - // Dimensions: The list of standard dimensions the report should - // include. + // Dimensions: The list of standard dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCrossDimensionReachCriteria: The report criteria for a report -// of type "CROSS_DIMENSION_REACH". +// ReportCrossDimensionReachCriteria: The report criteria for a report of type +// "CROSS_DIMENSION_REACH". type ReportCrossDimensionReachCriteria struct { // Breakdown: The list of dimensions the report should include. Breakdown []*SortedDimension `json:"breakdown,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // Dimension: The dimension option. // // Possible values: @@ -12219,505 +9702,375 @@ type ReportCrossDimensionReachCriteria struct { // "SITE_BY_ADVERTISER" // "SITE_BY_CAMPAIGN" Dimension string `json:"dimension,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. + // DimensionFilters: The list of filters on which dimensions are filtered. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // OverlapMetricNames: The list of names of overlap metrics the report - // should include. + // OverlapMetricNames: The list of names of overlap metrics the report should + // include. OverlapMetricNames []string `json:"overlapMetricNames,omitempty"` - // Pivoted: Whether the report is pivoted or not. Defaults to true. Pivoted bool `json:"pivoted,omitempty"` - // ForceSendFields is a list of field names (e.g. "Breakdown") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Breakdown") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Breakdown") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportCrossDimensionReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportDelivery: The report's email delivery settings. type ReportDelivery struct { // EmailOwner: Whether the report should be emailed to the report owner. EmailOwner bool `json:"emailOwner,omitempty"` - - // EmailOwnerDeliveryType: The type of delivery for the owner to - // receive, if enabled. + // EmailOwnerDeliveryType: The type of delivery for the owner to receive, if + // enabled. // // Possible values: // "LINK" // "ATTACHMENT" EmailOwnerDeliveryType string `json:"emailOwnerDeliveryType,omitempty"` - // Message: The message to be sent with each email. Message string `json:"message,omitempty"` - // Recipients: The list of recipients to which to email the report. Recipients []*Recipient `json:"recipients,omitempty"` - // ForceSendFields is a list of field names (e.g. "EmailOwner") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EmailOwner") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EmailOwner") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportDelivery) MarshalJSON() ([]byte, error) { +func (s ReportDelivery) MarshalJSON() ([]byte, error) { type NoMethod ReportDelivery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportFloodlightCriteria: The report criteria for a report of type // "FLOODLIGHT". type ReportFloodlightCriteria struct { - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. Filters for different dimensions are ANDed, filters for the - // same dimension are grouped together and ORed. + // DimensionFilters: The list of filters on which dimensions are filtered. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportFloodlightCriteriaReportProperties `json:"reportProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomRichMediaEvents") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomRichMediaEvents") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomRichMediaEvents") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportFloodlightCriteriaReportProperties: The properties of the -// report. +// ReportFloodlightCriteriaReportProperties: The properties of the report. type ReportFloodlightCriteriaReportProperties struct { - // IncludeAttributedIPConversions: Include conversions that have no - // cookie, but do have an exposure path. + // IncludeAttributedIPConversions: Include conversions that have no cookie, but + // do have an exposure path. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // ForceSendFields is a list of field names (e.g. // "IncludeAttributedIPConversions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "IncludeAttributedIPConversions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "IncludeAttributedIPConversions") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportFloodlightCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportFloodlightCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportPathAttributionCriteria: The report criteria for a report of -// type "PATH_ATTRIBUTION". +// ReportPathAttributionCriteria: The report criteria for a report of type +// "PATH_ATTRIBUTION". type ReportPathAttributionCriteria struct { // ActivityFilters: The list of 'dfa:activity' values to filter on. ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - // CustomChannelGrouping: Channel Grouping. CustomChannelGrouping *ChannelGrouping `json:"customChannelGrouping,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // PathFilters: Path Filters. PathFilters []*PathFilter `json:"pathFilters,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActivityFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActivityFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActivityFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathAttributionCriteria) MarshalJSON() ([]byte, error) { +func (s ReportPathAttributionCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportPathAttributionCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportPathCriteria: The report criteria for a report of type "PATH". type ReportPathCriteria struct { // ActivityFilters: The list of 'dfa:activity' values to filter on. ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - // CustomChannelGrouping: Channel Grouping. CustomChannelGrouping *ChannelGrouping `json:"customChannelGrouping,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - // PathFilters: Path Filters. PathFilters []*PathFilter `json:"pathFilters,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActivityFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActivityFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActivityFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathCriteria) MarshalJSON() ([]byte, error) { +func (s ReportPathCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportPathCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportPathToConversionCriteria: The report criteria for a report of -// type "PATH_TO_CONVERSION". +// ReportPathToConversionCriteria: The report criteria for a report of type +// "PATH_TO_CONVERSION". type ReportPathToConversionCriteria struct { // ActivityFilters: The list of 'dfa:activity' values to filter on. ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"` - - // ConversionDimensions: The list of conversion dimensions the report - // should include. + // ConversionDimensions: The list of conversion dimensions the report should + // include. ConversionDimensions []*SortedDimension `json:"conversionDimensions,omitempty"` - - // CustomFloodlightVariables: The list of custom floodlight variables - // the report should include. + // CustomFloodlightVariables: The list of custom floodlight variables the + // report should include. CustomFloodlightVariables []*SortedDimension `json:"customFloodlightVariables,omitempty"` - - // CustomRichMediaEvents: The list of custom rich media events to - // include. + // CustomRichMediaEvents: The list of custom rich media events to include. CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - - // FloodlightConfigId: The floodlight ID for which to show data in this - // report. All advertisers associated with that ID will automatically be - // added. The dimension of the value needs to be - // 'dfa:floodlightConfigId'. + // FloodlightConfigId: The floodlight ID for which to show data in this report. + // All advertisers associated with that ID will automatically be added. The + // dimension of the value needs to be 'dfa:floodlightConfigId'. FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // PerInteractionDimensions: The list of per interaction dimensions the - // report should include. + // PerInteractionDimensions: The list of per interaction dimensions the report + // should include. PerInteractionDimensions []*SortedDimension `json:"perInteractionDimensions,omitempty"` - // ReportProperties: The properties of the report. ReportProperties *ReportPathToConversionCriteriaReportProperties `json:"reportProperties,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActivityFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActivityFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActivityFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportPathToConversionCriteriaReportProperties: The properties of the // report. type ReportPathToConversionCriteriaReportProperties struct { - // ClicksLookbackWindow: CM360 checks to see if a click interaction - // occurred within the specified period of time before a conversion. By - // default the value is pulled from Floodlight or you can manually enter - // a custom value. Valid values: 1-90. + // ClicksLookbackWindow: CM360 checks to see if a click interaction occurred + // within the specified period of time before a conversion. By default the + // value is pulled from Floodlight or you can manually enter a custom value. + // Valid values: 1-90. ClicksLookbackWindow int64 `json:"clicksLookbackWindow,omitempty"` - - // ImpressionsLookbackWindow: CM360 checks to see if an impression - // interaction occurred within the specified period of time before a - // conversion. By default the value is pulled from Floodlight or you can - // manually enter a custom value. Valid values: 1-90. + // ImpressionsLookbackWindow: CM360 checks to see if an impression interaction + // occurred within the specified period of time before a conversion. By default + // the value is pulled from Floodlight or you can manually enter a custom + // value. Valid values: 1-90. ImpressionsLookbackWindow int64 `json:"impressionsLookbackWindow,omitempty"` - // IncludeAttributedIPConversions: Deprecated: has no effect. IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"` - - // IncludeUnattributedCookieConversions: Include conversions of users - // with a DoubleClick cookie but without an exposure. That means the - // user did not click or see an ad from the advertiser within the - // Floodlight group, or that the interaction happened outside the - // lookback window. + // IncludeUnattributedCookieConversions: Include conversions of users with a + // DoubleClick cookie but without an exposure. That means the user did not + // click or see an ad from the advertiser within the Floodlight group, or that + // the interaction happened outside the lookback window. IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"` - // IncludeUnattributedIPConversions: Include conversions that have no - // associated cookies and no exposures. It’s therefore impossible to - // know how the user was exposed to your ads during the lookback window - // prior to a conversion. + // associated cookies and no exposures. It’s therefore impossible to know how + // the user was exposed to your ads during the lookback window prior to a + // conversion. IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"` - // MaximumClickInteractions: The maximum number of click interactions to - // include in the report. Advertisers currently paying for E2C reports - // get up to 200 (100 clicks, 100 impressions). If another advertiser in - // your network is paying for E2C, you can have up to 5 total exposures - // per report. + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumClickInteractions int64 `json:"maximumClickInteractions,omitempty"` - - // MaximumImpressionInteractions: The maximum number of click - // interactions to include in the report. Advertisers currently paying - // for E2C reports get up to 200 (100 clicks, 100 impressions). If - // another advertiser in your network is paying for E2C, you can have up - // to 5 total exposures per report. + // MaximumImpressionInteractions: The maximum number of click interactions to + // include in the report. Advertisers currently paying for E2C reports get up + // to 200 (100 clicks, 100 impressions). If another advertiser in your network + // is paying for E2C, you can have up to 5 total exposures per report. MaximumImpressionInteractions int64 `json:"maximumImpressionInteractions,omitempty"` - // MaximumInteractionGap: The maximum amount of time that can take place - // between interactions (clicks or impressions) by the same user. Valid - // values: 1-90. + // between interactions (clicks or impressions) by the same user. Valid values: + // 1-90. MaximumInteractionGap int64 `json:"maximumInteractionGap,omitempty"` - // PivotOnInteractionPath: Enable pivoting on interaction path. PivotOnInteractionPath bool `json:"pivotOnInteractionPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClicksLookbackWindow") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClicksLookbackWindow") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClicksLookbackWindow") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { +func (s ReportPathToConversionCriteriaReportProperties) MarshalJSON() ([]byte, error) { type NoMethod ReportPathToConversionCriteriaReportProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportReachCriteria: The report criteria for a report of type -// "REACH". +// ReportReachCriteria: The report criteria for a report of type "REACH". type ReportReachCriteria struct { // Activities: Activity group. Activities *Activities `json:"activities,omitempty"` - // CustomRichMediaEvents: Custom Rich Media Events group. CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"` - // DateRange: The date range this report should be run for. DateRange *DateRange `json:"dateRange,omitempty"` - - // DimensionFilters: The list of filters on which dimensions are - // filtered. Filters for different dimensions are ANDed, filters for the - // same dimension are grouped together and ORed. + // DimensionFilters: The list of filters on which dimensions are filtered. + // Filters for different dimensions are ANDed, filters for the same dimension + // are grouped together and ORed. DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` - // Dimensions: The list of dimensions the report should include. Dimensions []*SortedDimension `json:"dimensions,omitempty"` - // EnableAllDimensionCombinations: Whether to enable all reach dimension - // combinations in the report. Defaults to false. If enabled, the date - // range of the report should be within the last 42 days. + // combinations in the report. Defaults to false. If enabled, the date range of + // the report should be within the last 42 days. EnableAllDimensionCombinations bool `json:"enableAllDimensionCombinations,omitempty"` - // MetricNames: The list of names of metrics the report should include. MetricNames []string `json:"metricNames,omitempty"` - - // ReachByFrequencyMetricNames: The list of names of Reach By Frequency - // metrics the report should include. + // ReachByFrequencyMetricNames: The list of names of Reach By Frequency metrics + // the report should include. ReachByFrequencyMetricNames []string `json:"reachByFrequencyMetricNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "Activities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Activities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Activities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportReachCriteria) MarshalJSON() ([]byte, error) { +func (s ReportReachCriteria) MarshalJSON() ([]byte, error) { type NoMethod ReportReachCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportSchedule: The report's schedule. Can only be set if the -// report's 'dateRange' is a relative date range and the relative date -// range is not "TODAY". +// ReportSchedule: The report's schedule. Can only be set if the report's +// 'dateRange' is a relative date range and the relative date range is not +// "TODAY". type ReportSchedule struct { - // Active: Whether the schedule is active or not. Must be set to either - // true or false. + // Active: Whether the schedule is active or not. Must be set to either true or + // false. Active bool `json:"active,omitempty"` - - // Every: Defines every how many days, weeks or months the report should - // be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or + // Every: Defines every how many days, weeks or months the report should be + // run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or // "MONTHLY". - Every int64 `json:"every,omitempty"` - + Every int64 `json:"every,omitempty"` ExpirationDate string `json:"expirationDate,omitempty"` - - // Repeats: The interval for which the report is repeated. Note: - - // "DAILY" also requires field "every" to be set. - "WEEKLY" also - // requires fields "every" and "repeatsOnWeekDays" to be set. - - // "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be - // set. + // Repeats: The interval for which the report is repeated. Note: - "DAILY" also + // requires field "every" to be set. - "WEEKLY" also requires fields "every" + // and "repeatsOnWeekDays" to be set. - "MONTHLY" also requires fields "every" + // and "runsOnDayOfMonth" to be set. Repeats string `json:"repeats,omitempty"` - - // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled - // reports should run. + // RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled reports + // should run. // // Possible values: // "SUNDAY" @@ -12728,191 +10081,148 @@ type ReportSchedule struct { // "FRIDAY" // "SATURDAY" RepeatsOnWeekDays []string `json:"repeatsOnWeekDays,omitempty"` - - // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports - // whether reports should be repeated on the same day of the month as - // "startDate" or the same day of the week of the month. Example: If - // 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" - // would run subsequent reports on the 2nd of every Month, and - // "WEEK_OF_MONTH" would run subsequent reports on the first Monday of - // the month. + // RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports whether + // reports should be repeated on the same day of the month as "startDate" or + // the same day of the week of the month. Example: If 'startDate' is Monday, + // April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on + // the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on + // the first Monday of the month. // // Possible values: // "DAY_OF_MONTH" // "WEEK_OF_MONTH" RunsOnDayOfMonth string `json:"runsOnDayOfMonth,omitempty"` - - StartDate string `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + StartDate string `json:"startDate,omitempty"` + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportSchedule) MarshalJSON() ([]byte, error) { +func (s ReportSchedule) MarshalJSON() ([]byte, error) { type NoMethod ReportSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReportCompatibleFields: Represents fields that are compatible to be -// selected for a report of type "STANDARD". +// ReportCompatibleFields: Represents fields that are compatible to be selected +// for a report of type "STANDARD". type ReportCompatibleFields struct { - // DimensionFilters: Dimensions which are compatible to be selected in - // the "dimensionFilters" section of the report. + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` - // Dimensions: Dimensions which are compatible to be selected in the // "dimensions" section of the report. Dimensions []*Dimension `json:"dimensions,omitempty"` - // Kind: The kind of resource this is, in this case // dfareporting#reportCompatibleFields. Kind string `json:"kind,omitempty"` - - // Metrics: Metrics which are compatible to be selected in the - // "metricNames" section of the report. + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. Metrics []*Metric `json:"metrics,omitempty"` - - // PivotedActivityMetrics: Metrics which are compatible to be selected - // as activity metrics to pivot on in the "activities" section of the - // report. + // PivotedActivityMetrics: Metrics which are compatible to be selected as + // activity metrics to pivot on in the "activities" section of the report. PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportCompatibleFields) MarshalJSON() ([]byte, error) { +func (s ReportCompatibleFields) MarshalJSON() ([]byte, error) { type NoMethod ReportCompatibleFields - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportList: Represents the list of reports. type ReportList struct { // Etag: The eTag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The reports returned in this response. Items []*Report `json:"items,omitempty"` - // Kind: The kind of list this is, in this case dfareporting#reportList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Continuation token used to page through reports. To - // retrieve the next page of results, set the next request's "pageToken" - // to the value of this field. The page token is only valid for a - // limited amount of time and should not be persisted. + // NextPageToken: Continuation token used to page through reports. To retrieve + // the next page of results, set the next request's "pageToken" to the value of + // this field. The page token is only valid for a limited amount of time and + // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportList) MarshalJSON() ([]byte, error) { +func (s ReportList) MarshalJSON() ([]byte, error) { type NoMethod ReportList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportsConfiguration: Reporting Configuration type ReportsConfiguration struct { - // ExposureToConversionEnabled: Whether the exposure to conversion - // report is enabled. This report shows detailed pathway information on - // up to 10 of the most recent ad exposures seen by a user before - // converting. + // ExposureToConversionEnabled: Whether the exposure to conversion report is + // enabled. This report shows detailed pathway information on up to 10 of the + // most recent ad exposures seen by a user before converting. ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"` - - // LookbackConfiguration: Default lookback windows for new advertisers - // in this account. + // LookbackConfiguration: Default lookback windows for new advertisers in this + // account. LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"` - - // ReportGenerationTimeZoneId: Report generation time zone ID of this - // account. This is a required field that can only be changed by a - // superuser. Acceptable values are: - "1" for "America/New_York" - "2" - // for "Europe/London" - "3" for "Europe/Paris" - "4" for - // "Africa/Johannesburg" - "5" for "Asia/Jerusalem" - "6" for - // "Asia/Shanghai" - "7" for "Asia/Hong_Kong" - "8" for "Asia/Tokyo" - + // ReportGenerationTimeZoneId: Report generation time zone ID of this account. + // This is a required field that can only be changed by a superuser. Acceptable + // values are: - "1" for "America/New_York" - "2" for "Europe/London" - "3" for + // "Europe/Paris" - "4" for "Africa/Johannesburg" - "5" for "Asia/Jerusalem" - + // "6" for "Asia/Shanghai" - "7" for "Asia/Hong_Kong" - "8" for "Asia/Tokyo" - // "9" for "Australia/Sydney" - "10" for "Asia/Dubai" - "11" for // "America/Los_Angeles" - "12" for "Pacific/Auckland" - "13" for // "America/Sao_Paulo" - "16" for "America/Asuncion" - "17" for - // "America/Chicago" - "18" for "America/Denver" - "19" for - // "America/St_Johns" - "20" for "Asia/Dhaka" - "21" for "Asia/Jakarta" - // - "22" for "Asia/Kabul" - "23" for "Asia/Karachi" - "24" for - // "Asia/Calcutta" - "25" for "Asia/Pyongyang" - "26" for "Asia/Rangoon" - // - "27" for "Atlantic/Cape_Verde" - "28" for "Atlantic/South_Georgia" - // - "29" for "Australia/Adelaide" - "30" for "Australia/Lord_Howe" - - // "31" for "Europe/Moscow" - "32" for "Pacific/Kiritimati" - "35" for - // "Pacific/Norfolk" - "36" for "Pacific/Tongatapu" + // "America/Chicago" - "18" for "America/Denver" - "19" for "America/St_Johns" + // - "20" for "Asia/Dhaka" - "21" for "Asia/Jakarta" - "22" for "Asia/Kabul" - + // "23" for "Asia/Karachi" - "24" for "Asia/Calcutta" - "25" for + // "Asia/Pyongyang" - "26" for "Asia/Rangoon" - "27" for "Atlantic/Cape_Verde" + // - "28" for "Atlantic/South_Georgia" - "29" for "Australia/Adelaide" - "30" + // for "Australia/Lord_Howe" - "31" for "Europe/Moscow" - "32" for + // "Pacific/Kiritimati" - "35" for "Pacific/Norfolk" - "36" for + // "Pacific/Tongatapu" ReportGenerationTimeZoneId int64 `json:"reportGenerationTimeZoneId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "ExposureToConversionEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExposureToConversionEnabled") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExposureToConversionEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportsConfiguration) MarshalJSON() ([]byte, error) { +func (s ReportsConfiguration) MarshalJSON() ([]byte, error) { type NoMethod ReportsConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RichMediaExitOverride: Rich Media Exit Override. @@ -12920,291 +10230,217 @@ type RichMediaExitOverride struct { // ClickThroughUrl: Click-through URL of this rich media exit override. // Applicable if the enabled field is set to true. ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"` - - // Enabled: Whether to use the clickThroughUrl. If false, the - // creative-level exit will be used. + // Enabled: Whether to use the clickThroughUrl. If false, the creative-level + // exit will be used. Enabled bool `json:"enabled,omitempty"` - - // ExitId: ID for the override to refer to a specific exit in the - // creative. + // ExitId: ID for the override to refer to a specific exit in the creative. ExitId int64 `json:"exitId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickThroughUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickThroughUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RichMediaExitOverride) MarshalJSON() ([]byte, error) { +func (s RichMediaExitOverride) MarshalJSON() ([]byte, error) { type NoMethod RichMediaExitOverride - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Rule: A rule associates an asset with a targeting template for -// asset-level targeting. Applicable to INSTREAM_VIDEO creatives. +// Rule: A rule associates an asset with a targeting template for asset-level +// targeting. Applicable to INSTREAM_VIDEO creatives. type Rule struct { - // AssetId: A creativeAssets[].id. This should refer to one of the - // parent assets in this creative. This is a required field. + // AssetId: A creativeAssets[].id. This should refer to one of the parent + // assets in this creative. This is a required field. AssetId int64 `json:"assetId,omitempty,string"` - // Name: A user-friendly name for this rule. This is a required field. Name string `json:"name,omitempty"` - // TargetingTemplateId: A targeting template ID. The targeting from the - // targeting template will be used to determine whether this asset - // should be served. This is a required field. + // targeting template will be used to determine whether this asset should be + // served. This is a required field. TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AssetId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssetId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssetId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rule) MarshalJSON() ([]byte, error) { +func (s Rule) MarshalJSON() ([]byte, error) { type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Site: Contains properties of a site. type Site struct { - // AccountId: Account ID of this site. This is a read-only field that - // can be left blank. + // AccountId: Account ID of this site. This is a read-only field that can be + // left blank. AccountId int64 `json:"accountId,omitempty,string"` - // Approved: Whether this site is approved. Approved bool `json:"approved,omitempty"` - // DirectorySiteId: Directory site associated with this site. This is a // required field that is read-only after insertion. DirectorySiteId int64 `json:"directorySiteId,omitempty,string"` - - // DirectorySiteIdDimensionValue: Dimension value for the ID of the - // directory site. This is a read-only, auto-generated field. + // DirectorySiteIdDimensionValue: Dimension value for the ID of the directory + // site. This is a read-only, auto-generated field. DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"` - // Id: ID of this site. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // IdDimensionValue: Dimension value for the ID of this site. This is a // read-only, auto-generated field. IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"` - - // KeyName: Key name of this site. This is a read-only, auto-generated - // field. + // KeyName: Key name of this site. This is a read-only, auto-generated field. KeyName string `json:"keyName,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#site". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#site". Kind string `json:"kind,omitempty"` - - // Name: Name of this site.This is a required field. Must be less than - // 128 characters long. If this site is under a subaccount, the name - // must be unique among sites of the same subaccount. Otherwise, this - // site is a top-level site, and the name must be unique among top-level - // sites of the same account. + // Name: Name of this site.This is a required field. Must be less than 128 + // characters long. If this site is under a subaccount, the name must be unique + // among sites of the same subaccount. Otherwise, this site is a top-level + // site, and the name must be unique among top-level sites of the same account. Name string `json:"name,omitempty"` - // SiteContacts: Site contacts. SiteContacts []*SiteContact `json:"siteContacts,omitempty"` - // SiteSettings: Site-wide settings. SiteSettings *SiteSettings `json:"siteSettings,omitempty"` - - // SubaccountId: Subaccount ID of this site. This is a read-only field - // that can be left blank. + // SubaccountId: Subaccount ID of this site. This is a read-only field that can + // be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - - // VideoSettings: Default video settings for new placements created - // under this site. This value will be used to populate the - // placements.videoSettings field, when no value is specified for the - // new placement. + // VideoSettings: Default video settings for new placements created under this + // site. This value will be used to populate the placements.videoSettings + // field, when no value is specified for the new placement. VideoSettings *SiteVideoSettings `json:"videoSettings,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Site) MarshalJSON() ([]byte, error) { +func (s Site) MarshalJSON() ([]byte, error) { type NoMethod Site - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteCompanionSetting: Companion Settings type SiteCompanionSetting struct { - // CompanionsDisabled: Whether companions are disabled for this site - // template. + // CompanionsDisabled: Whether companions are disabled for this site template. CompanionsDisabled bool `json:"companionsDisabled,omitempty"` - // EnabledSizes: Allowlist of companion sizes to be served via this site - // template. Set this list to null or empty to serve all companion - // sizes. + // template. Set this list to null or empty to serve all companion sizes. EnabledSizes []*Size `json:"enabledSizes,omitempty"` - // ImageOnly: Whether to serve only static images as companions. ImageOnly bool `json:"imageOnly,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteCompanionSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#siteCompanionSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionsDisabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionsDisabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionsDisabled") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteCompanionSetting) MarshalJSON() ([]byte, error) { +func (s SiteCompanionSetting) MarshalJSON() ([]byte, error) { type NoMethod SiteCompanionSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteContact: Site Contact type SiteContact struct { // Address: Address of this site contact. Address string `json:"address,omitempty"` - // ContactType: Site contact type. // // Possible values: // "SALES_PERSON" // "TRAFFICKER" ContactType string `json:"contactType,omitempty"` - // Email: Email address of this site contact. This is a required field. Email string `json:"email,omitempty"` - // FirstName: First name of this site contact. FirstName string `json:"firstName,omitempty"` - - // Id: ID of this site contact. This is a read-only, auto-generated - // field. + // Id: ID of this site contact. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - // LastName: Last name of this site contact. LastName string `json:"lastName,omitempty"` - // Phone: Primary phone number of this site contact. Phone string `json:"phone,omitempty"` - // Title: Title or designation of this site contact. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteContact) MarshalJSON() ([]byte, error) { +func (s SiteContact) MarshalJSON() ([]byte, error) { type NoMethod SiteContact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteSettings: Site Settings type SiteSettings struct { - // ActiveViewOptOut: Whether active view creatives are disabled for this - // site. + // ActiveViewOptOut: Whether active view creatives are disabled for this site. ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"` - - // AdBlockingOptOut: Whether this site opts out of ad blocking. When - // true, ad blocking is disabled for all placements under the site, - // regardless of the individual placement settings. When false, the - // campaign and placement settings take effect. + // AdBlockingOptOut: Whether this site opts out of ad blocking. When true, ad + // blocking is disabled for all placements under the site, regardless of the + // individual placement settings. When false, the campaign and placement + // settings take effect. AdBlockingOptOut bool `json:"adBlockingOptOut,omitempty"` - // DisableNewCookie: Whether new cookies are disabled for this site. DisableNewCookie bool `json:"disableNewCookie,omitempty"` - - // TagSetting: Configuration settings for dynamic and image floodlight - // tags. + // TagSetting: Configuration settings for dynamic and image floodlight tags. TagSetting *TagSetting `json:"tagSetting,omitempty"` - - // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView - // for in-stream video creatives are disabled by default for new - // placements created under this site. This value will be used to - // populate the placement.videoActiveViewOptOut field, when no value is - // specified for the new placement. + // VideoActiveViewOptOutTemplate: Whether Verification and ActiveView for + // in-stream video creatives are disabled by default for new placements created + // under this site. This value will be used to populate the + // placement.videoActiveViewOptOut field, when no value is specified for the + // new placement. VideoActiveViewOptOutTemplate bool `json:"videoActiveViewOptOutTemplate,omitempty"` - - // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new - // placements created under this site. This value will be used to - // populate the placements.vpaidAdapterChoice field, when no value is - // specified for the new placement. Controls which VPAID format the - // measurement adapter will use for in-stream video creatives assigned - // to the placement. The publisher's specifications will typically - // determine this setting. For VPAID creatives, the adapter format will - // match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter). - // *Note:* Flash is no longer supported. This field now defaults to - // HTML5 when the following values are provided: FLASH, BOTH. + // VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new placements + // created under this site. This value will be used to populate the + // placements.vpaidAdapterChoice field, when no value is specified for the new + // placement. Controls which VPAID format the measurement adapter will use for + // in-stream video creatives assigned to the placement. The publisher's + // specifications will typically determine this setting. For VPAID creatives, + // the adapter format will match the VPAID format (HTML5 VPAID creatives use + // the HTML5 adapter). *Note:* Flash is no longer supported. This field now + // defaults to HTML5 when the following values are provided: FLASH, BOTH. // // Possible values: // "DEFAULT" @@ -13212,332 +10448,251 @@ type SiteSettings struct { // "HTML5" // "BOTH" VpaidAdapterChoiceTemplate string `json:"vpaidAdapterChoiceTemplate,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewOptOut") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteSettings) MarshalJSON() ([]byte, error) { +func (s SiteSettings) MarshalJSON() ([]byte, error) { type NoMethod SiteSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteSkippableSetting: Skippable Settings type SiteSkippableSetting struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteSkippableSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#siteSkippableSetting". Kind string `json:"kind,omitempty"` - - // ProgressOffset: Amount of time to play videos served to this site - // template before counting a view. Applicable when skippable is true. + // ProgressOffset: Amount of time to play videos served to this site template + // before counting a view. Applicable when skippable is true. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // SkipOffset: Amount of time to play videos served to this site before - // the skip button should appear. Applicable when skippable is true. + // SkipOffset: Amount of time to play videos served to this site before the + // skip button should appear. Applicable when skippable is true. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can skip creatives served to this site. - // This will act as default for new placements created under this site. + // Skippable: Whether the user can skip creatives served to this site. This + // will act as default for new placements created under this site. Skippable bool `json:"skippable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteSkippableSetting) MarshalJSON() ([]byte, error) { +func (s SiteSkippableSetting) MarshalJSON() ([]byte, error) { type NoMethod SiteSkippableSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteTranscodeSetting: Transcode Settings type SiteTranscodeSetting struct { - // EnabledVideoFormats: Allowlist of video formats to be served to this - // site template. Set this list to null or empty to serve all video - // formats. + // EnabledVideoFormats: Allowlist of video formats to be served to this site + // template. Set this list to null or empty to serve all video formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteTranscodeSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#siteTranscodeSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnabledVideoFormats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnabledVideoFormats") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteTranscodeSetting) MarshalJSON() ([]byte, error) { +func (s SiteTranscodeSetting) MarshalJSON() ([]byte, error) { type NoMethod SiteTranscodeSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SiteVideoSettings: Video Settings type SiteVideoSettings struct { - // CompanionSettings: Settings for the companion creatives of video - // creatives served to this site. + // CompanionSettings: Settings for the companion creatives of video creatives + // served to this site. CompanionSettings *SiteCompanionSetting `json:"companionSettings,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#siteVideoSettings". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#siteVideoSettings". Kind string `json:"kind,omitempty"` - // ObaEnabled: Whether OBA icons are enabled for this placement. ObaEnabled bool `json:"obaEnabled,omitempty"` - - // ObaSettings: Settings for the OBA icon of video creatives served to - // this site. This will act as default for new placements created under - // this site. + // ObaSettings: Settings for the OBA icon of video creatives served to this + // site. This will act as default for new placements created under this site. ObaSettings *ObaIcon `json:"obaSettings,omitempty"` - - // Orientation: Orientation of a site template used for video. This will - // act as default for new placements created under this site. + // Orientation: Orientation of a site template used for video. This will act as + // default for new placements created under this site. // // Possible values: // "ANY" // "LANDSCAPE" // "PORTRAIT" Orientation string `json:"orientation,omitempty"` - - // SkippableSettings: Settings for the skippability of video creatives - // served to this site. This will act as default for new placements - // created under this site. + // SkippableSettings: Settings for the skippability of video creatives served + // to this site. This will act as default for new placements created under this + // site. SkippableSettings *SiteSkippableSetting `json:"skippableSettings,omitempty"` - - // TranscodeSettings: Settings for the transcodes of video creatives - // served to this site. This will act as default for new placements - // created under this site. + // TranscodeSettings: Settings for the transcodes of video creatives served to + // this site. This will act as default for new placements created under this + // site. TranscodeSettings *SiteTranscodeSetting `json:"transcodeSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionSettings") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionSettings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionSettings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SiteVideoSettings) MarshalJSON() ([]byte, error) { +func (s SiteVideoSettings) MarshalJSON() ([]byte, error) { type NoMethod SiteVideoSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SitesListResponse: Site List Response type SitesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sitesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sitesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Sites: Site collection. Sites []*Site `json:"sites,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SitesListResponse) MarshalJSON() ([]byte, error) { +func (s SitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Size: Represents the dimensions of ads, placements, creatives, or -// creative assets. +// Size: Represents the dimensions of ads, placements, creatives, or creative +// assets. type Size struct { - // Height: Height of this size. Acceptable values are 0 to 32767, - // inclusive. + // Height: Height of this size. Acceptable values are 0 to 32767, inclusive. Height int64 `json:"height,omitempty"` - // Iab: IAB standard size. This is a read-only, auto-generated field. Iab bool `json:"iab,omitempty"` - // Id: ID of this size. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#size". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#size". Kind string `json:"kind,omitempty"` - - // Width: Width of this size. Acceptable values are 0 to 32767, - // inclusive. + // Width: Width of this size. Acceptable values are 0 to 32767, inclusive. Width int64 `json:"width,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Size) MarshalJSON() ([]byte, error) { +func (s Size) MarshalJSON() ([]byte, error) { type NoMethod Size - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SizesListResponse: Size List Response type SizesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#sizesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#sizesListResponse". Kind string `json:"kind,omitempty"` - // Sizes: Size collection. Sizes []*Size `json:"sizes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SizesListResponse) MarshalJSON() ([]byte, error) { +func (s SizesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SizesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SkippableSetting: Skippable Settings type SkippableSetting struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#skippableSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#skippableSetting". Kind string `json:"kind,omitempty"` - - // ProgressOffset: Amount of time to play videos served to this - // placement before counting a view. Applicable when skippable is true. + // ProgressOffset: Amount of time to play videos served to this placement + // before counting a view. Applicable when skippable is true. ProgressOffset *VideoOffset `json:"progressOffset,omitempty"` - - // SkipOffset: Amount of time to play videos served to this placement - // before the skip button should appear. Applicable when skippable is - // true. + // SkipOffset: Amount of time to play videos served to this placement before + // the skip button should appear. Applicable when skippable is true. SkipOffset *VideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can skip creatives served to this - // placement. + // Skippable: Whether the user can skip creatives served to this placement. Skippable bool `json:"skippable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SkippableSetting) MarshalJSON() ([]byte, error) { +func (s SkippableSetting) MarshalJSON() ([]byte, error) { type NoMethod SkippableSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SortedDimension: Represents a sorted dimension. @@ -13545,38 +10700,30 @@ type SortedDimension struct { // Kind: The kind of resource this is, in this case // dfareporting#sortedDimension. Kind string `json:"kind,omitempty"` - // Name: The name of the dimension. Name string `json:"name,omitempty"` - // SortOrder: An optional sort order for the dimension column. // // Possible values: // "ASCENDING" // "DESCENDING" SortOrder string `json:"sortOrder,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SortedDimension) MarshalJSON() ([]byte, error) { +func (s SortedDimension) MarshalJSON() ([]byte, error) { type NoMethod SortedDimension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Subaccount: Contains properties of a Campaign Manager subaccount. @@ -13584,103 +10731,78 @@ type Subaccount struct { // AccountId: ID of the account that contains this subaccount. This is a // read-only field that can be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // AvailablePermissionIds: IDs of the available user role permissions - // for this subaccount. + // AvailablePermissionIds: IDs of the available user role permissions for this + // subaccount. AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"` - // Id: ID of this subaccount. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccount". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccount". Kind string `json:"kind,omitempty"` - - // Name: Name of this subaccount. This is a required field. Must be less - // than 128 characters long and be unique among subaccounts of the same - // account. + // Name: Name of this subaccount. This is a required field. Must be less than + // 128 characters long and be unique among subaccounts of the same account. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Subaccount) MarshalJSON() ([]byte, error) { +func (s Subaccount) MarshalJSON() ([]byte, error) { type NoMethod Subaccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SubaccountsListResponse: Subaccount List Response type SubaccountsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#subaccountsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#subaccountsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // Subaccounts: Subaccount collection. Subaccounts []*Subaccount `json:"subaccounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubaccountsListResponse) MarshalJSON() ([]byte, error) { +func (s SubaccountsListResponse) MarshalJSON() ([]byte, error) { type NoMethod SubaccountsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagData: Placement Tag Data type TagData struct { - // AdId: Ad associated with this placement tag. Applicable only when - // format is PLACEMENT_TAG_TRACKING. + // AdId: Ad associated with this placement tag. Applicable only when format is + // PLACEMENT_TAG_TRACKING. AdId int64 `json:"adId,omitempty,string"` - // ClickTag: Tag string to record a click. ClickTag string `json:"clickTag,omitempty"` - - // CreativeId: Creative associated with this placement tag. Applicable - // only when format is PLACEMENT_TAG_TRACKING. + // CreativeId: Creative associated with this placement tag. Applicable only + // when format is PLACEMENT_TAG_TRACKING. CreativeId int64 `json:"creativeId,omitempty,string"` - // Format: TagData tag format of this tag. // // Possible values: @@ -13705,196 +10827,152 @@ type TagData struct { // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" // "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" Format string `json:"format,omitempty"` - // ImpressionTag: Tag string for serving an ad. ImpressionTag string `json:"impressionTag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdId") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagData) MarshalJSON() ([]byte, error) { +func (s TagData) MarshalJSON() ([]byte, error) { type NoMethod TagData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSetting: Tag Settings type TagSetting struct { - // AdditionalKeyValues: Additional key-values to be included in tags. - // Each key-value pair must be of the form key=value, and pairs must be - // separated by a semicolon (;). Keys and values must not contain - // commas. For example, id=2;color=red is a valid value for this field. + // AdditionalKeyValues: Additional key-values to be included in tags. Each + // key-value pair must be of the form key=value, and pairs must be separated by + // a semicolon (;). Keys and values must not contain commas. For example, + // id=2;color=red is a valid value for this field. AdditionalKeyValues string `json:"additionalKeyValues,omitempty"` - - // IncludeClickThroughUrls: Whether static landing page URLs should be - // included in the tags. This setting applies only to placements. + // IncludeClickThroughUrls: Whether static landing page URLs should be included + // in the tags. This setting applies only to placements. IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"` - - // IncludeClickTracking: Whether click-tracking string should be - // included in the tags. + // IncludeClickTracking: Whether click-tracking string should be included in + // the tags. IncludeClickTracking bool `json:"includeClickTracking,omitempty"` - - // KeywordOption: Option specifying how keywords are embedded in ad - // tags. This setting can be used to specify whether keyword - // placeholders are inserted in placement tags for this site. Publishers - // can then add keywords to those placeholders. + // KeywordOption: Option specifying how keywords are embedded in ad tags. This + // setting can be used to specify whether keyword placeholders are inserted in + // placement tags for this site. Publishers can then add keywords to those + // placeholders. // // Possible values: // "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" // "IGNORE" // "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" KeywordOption string `json:"keywordOption,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalKeyValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalKeyValues") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSetting) MarshalJSON() ([]byte, error) { +func (s TagSetting) MarshalJSON() ([]byte, error) { type NoMethod TagSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagSettings: Dynamic and Image Tag Settings. type TagSettings struct { // DynamicTagEnabled: Whether dynamic floodlight tags are enabled. DynamicTagEnabled bool `json:"dynamicTagEnabled,omitempty"` - // ImageTagEnabled: Whether image tags are enabled. ImageTagEnabled bool `json:"imageTagEnabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicTagEnabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicTagEnabled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagSettings) MarshalJSON() ([]byte, error) { +func (s TagSettings) MarshalJSON() ([]byte, error) { type NoMethod TagSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetWindow: Target Window. type TargetWindow struct { // CustomHtml: User-entered value. CustomHtml string `json:"customHtml,omitempty"` - - // TargetWindowOption: Type of browser window for which the backup image - // of the flash creative can be displayed. + // TargetWindowOption: Type of browser window for which the backup image of the + // flash creative can be displayed. // // Possible values: // "NEW_WINDOW" // "CURRENT_WINDOW" // "CUSTOM" TargetWindowOption string `json:"targetWindowOption,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomHtml") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomHtml") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomHtml") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetWindow) MarshalJSON() ([]byte, error) { +func (s TargetWindow) MarshalJSON() ([]byte, error) { type NoMethod TargetWindow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TargetableRemarketingList: Contains properties of a targetable -// remarketing list. Remarketing enables you to create lists of users -// who have performed specific actions on a site, then target ads to -// members of those lists. This resource is a read-only view of a -// remarketing list to be used to faciliate targeting ads to specific -// lists. Remarketing lists that are owned by your advertisers and those -// that are shared to your advertisers or account are accessible via -// this resource. To manage remarketing lists that are owned by your -// advertisers, use the RemarketingLists resource. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TargetableRemarketingList: Contains properties of a targetable remarketing +// list. Remarketing enables you to create lists of users who have performed +// specific actions on a site, then target ads to members of those lists. This +// resource is a read-only view of a remarketing list to be used to faciliate +// targeting ads to specific lists. Remarketing lists that are owned by your +// advertisers and those that are shared to your advertisers or account are +// accessible via this resource. To manage remarketing lists that are owned by +// your advertisers, use the RemarketingLists resource. type TargetableRemarketingList struct { // AccountId: Account ID of this remarketing list. This is a read-only, // auto-generated field that is only returned in GET requests. AccountId int64 `json:"accountId,omitempty,string"` - // Active: Whether this targetable remarketing list is active. Active bool `json:"active,omitempty"` - // AdvertiserId: Dimension value for the advertiser ID that owns this // targetable remarketing list. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // Description: Targetable remarketing list description. Description string `json:"description,omitempty"` - // Id: Targetable remarketing list ID. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingList". Kind string `json:"kind,omitempty"` - // LifeSpan: Number of days that a user should remain in the targetable // remarketing list without an impression. LifeSpan int64 `json:"lifeSpan,omitempty,string"` - - // ListSize: Number of users currently in the list. This is a read-only - // field. + // ListSize: Number of users currently in the list. This is a read-only field. ListSize int64 `json:"listSize,omitempty,string"` - // ListSource: Product from which this targetable remarketing list was // originated. // @@ -13911,304 +10989,231 @@ type TargetableRemarketingList struct { // "REMARKETING_LIST_SOURCE_DMP" // "REMARKETING_LIST_SOURCE_PLAY_STORE" ListSource string `json:"listSource,omitempty"` - // Name: Name of the targetable remarketing list. Is no greater than 128 // characters long. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this remarketing list. This is a - // read-only, auto-generated field that is only returned in GET - // requests. + // SubaccountId: Subaccount ID of this remarketing list. This is a read-only, + // auto-generated field that is only returned in GET requests. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingList) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingList) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetableRemarketingListsListResponse: Targetable remarketing list -// response +// TargetableRemarketingListsListResponse: Targetable remarketing list response type TargetableRemarketingListsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetableRemarketingListsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetableRemarketingListsListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetableRemarketingLists: Targetable remarketing list collection. TargetableRemarketingLists []*TargetableRemarketingList `json:"targetableRemarketingLists,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { +func (s TargetableRemarketingListsListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetableRemarketingListsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetingTemplate: Contains properties of a targeting template. A -// targeting template encapsulates targeting information which can be -// reused across multiple ads. +// TargetingTemplate: Contains properties of a targeting template. A targeting +// template encapsulates targeting information which can be reused across +// multiple ads. type TargetingTemplate struct { - // AccountId: Account ID of this targeting template. This field, if left - // unset, will be auto-generated on insert and is read-only after - // insert. + // AccountId: Account ID of this targeting template. This field, if left unset, + // will be auto-generated on insert and is read-only after insert. AccountId int64 `json:"accountId,omitempty,string"` - - // AdvertiserId: Advertiser ID of this targeting template. This is a - // required field on insert and is read-only after insert. + // AdvertiserId: Advertiser ID of this targeting template. This is a required + // field on insert and is read-only after insert. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AdvertiserIdDimensionValue: Dimension value for the ID of the - // advertiser. This is a read-only, auto-generated field. + // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. + // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` - // DayPartTargeting: Time and day targeting criteria. DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"` - // GeoTargeting: Geographical targeting criteria. GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"` - - // Id: ID of this targeting template. This is a read-only, - // auto-generated field. + // Id: ID of this targeting template. This is a read-only, auto-generated + // field. Id int64 `json:"id,omitempty,string"` - // KeyValueTargetingExpression: Key-value targeting criteria. KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplate". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplate". Kind string `json:"kind,omitempty"` - // LanguageTargeting: Language targeting criteria. LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"` - // ListTargetingExpression: Remarketing list targeting criteria. ListTargetingExpression *ListTargetingExpression `json:"listTargetingExpression,omitempty"` - - // Name: Name of this targeting template. This field is required. It - // must be less than 256 characters long and unique within an - // advertiser. + // Name: Name of this targeting template. This field is required. It must be + // less than 256 characters long and unique within an advertiser. Name string `json:"name,omitempty"` - - // SubaccountId: Subaccount ID of this targeting template. This field, - // if left unset, will be auto-generated on insert and is read-only - // after insert. + // SubaccountId: Subaccount ID of this targeting template. This field, if left + // unset, will be auto-generated on insert and is read-only after insert. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // TechnologyTargeting: Technology platform targeting criteria. TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplate) MarshalJSON() ([]byte, error) { +func (s TargetingTemplate) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TargetingTemplatesListResponse: Targeting Template List Response type TargetingTemplatesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#targetingTemplatesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#targetingTemplatesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetingTemplates: Targeting template collection. TargetingTemplates []*TargetingTemplate `json:"targetingTemplates,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { +func (s TargetingTemplatesListResponse) MarshalJSON() ([]byte, error) { type NoMethod TargetingTemplatesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TechnologyTargeting: Technology Targeting. type TechnologyTargeting struct { // Browsers: Browsers that this ad targets. For each browser either set - // browserVersionId or dartId along with the version numbers. If both - // are specified, only browserVersionId will be used. The other fields - // are populated automatically when the ad is inserted or updated. + // browserVersionId or dartId along with the version numbers. If both are + // specified, only browserVersionId will be used. The other fields are + // populated automatically when the ad is inserted or updated. Browsers []*Browser `json:"browsers,omitempty"` - - // ConnectionTypes: Connection types that this ad targets. For each - // connection type only id is required. The other fields are populated - // automatically when the ad is inserted or updated. + // ConnectionTypes: Connection types that this ad targets. For each connection + // type only id is required. The other fields are populated automatically when + // the ad is inserted or updated. ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"` - // MobileCarriers: Mobile carriers that this ad targets. For each mobile // carrier only id is required, and the other fields are populated - // automatically when the ad is inserted or updated. If targeting a - // mobile carrier, do not set targeting for any zip codes. + // automatically when the ad is inserted or updated. If targeting a mobile + // carrier, do not set targeting for any zip codes. MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"` - - // OperatingSystemVersions: Operating system versions that this ad - // targets. To target all versions, use operatingSystems. For each - // operating system version, only id is required. The other fields are - // populated automatically when the ad is inserted or updated. If - // targeting an operating system version, do not set targeting for the - // corresponding operating system in operatingSystems. + // OperatingSystemVersions: Operating system versions that this ad targets. To + // target all versions, use operatingSystems. For each operating system + // version, only id is required. The other fields are populated automatically + // when the ad is inserted or updated. If targeting an operating system + // version, do not set targeting for the corresponding operating system in + // operatingSystems. OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"` - - // OperatingSystems: Operating systems that this ad targets. To target - // specific versions, use operatingSystemVersions. For each operating - // system only dartId is required. The other fields are populated - // automatically when the ad is inserted or updated. If targeting an - // operating system, do not set targeting for operating system versions - // for the same operating system. + // OperatingSystems: Operating systems that this ad targets. To target specific + // versions, use operatingSystemVersions. For each operating system only dartId + // is required. The other fields are populated automatically when the ad is + // inserted or updated. If targeting an operating system, do not set targeting + // for operating system versions for the same operating system. OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"` - - // PlatformTypes: Platform types that this ad targets. For example, - // desktop, mobile, or tablet. For each platform type, only id is - // required, and the other fields are populated automatically when the - // ad is inserted or updated. + // PlatformTypes: Platform types that this ad targets. For example, desktop, + // mobile, or tablet. For each platform type, only id is required, and the + // other fields are populated automatically when the ad is inserted or updated. PlatformTypes []*PlatformType `json:"platformTypes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TechnologyTargeting) MarshalJSON() ([]byte, error) { +func (s TechnologyTargeting) MarshalJSON() ([]byte, error) { type NoMethod TechnologyTargeting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyAuthenticationToken: Third Party Authentication Token type ThirdPartyAuthenticationToken struct { // Name: Name of the third-party authentication token. Name string `json:"name,omitempty"` - - // Value: Value of the third-party authentication token. This is a - // read-only, auto-generated field. + // Value: Value of the third-party authentication token. This is a read-only, + // auto-generated field. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { +func (s ThirdPartyAuthenticationToken) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyAuthenticationToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ThirdPartyTrackingUrl: Third-party Tracking URL. type ThirdPartyTrackingUrl struct { - // ThirdPartyUrlType: Third-party URL type for in-stream video and - // in-stream audio creatives. + // ThirdPartyUrlType: Third-party URL type for in-stream video and in-stream + // audio creatives. // // Possible values: // "IMPRESSION" @@ -14231,32 +11236,24 @@ type ThirdPartyTrackingUrl struct { // "VIDEO_SKIP" // "VIDEO_PROGRESS" ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"` - // Url: URL for the specified third-party URL type. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ThirdPartyUrlType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { +func (s ThirdPartyTrackingUrl) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyTrackingUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TranscodeSetting: Transcode Settings @@ -14264,38 +11261,29 @@ type TranscodeSetting struct { // EnabledVideoFormats: Allowlist of video formats to be served to this // placement. Set this list to null or empty to serve all video formats. EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#transcodeSetting". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#transcodeSetting". Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnabledVideoFormats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnabledVideoFormats") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TranscodeSetting) MarshalJSON() ([]byte, error) { +func (s TranscodeSetting) MarshalJSON() ([]byte, error) { type NoMethod TranscodeSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable -// to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and -// VPAID. +// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the +// following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID. type UniversalAdId struct { // Registry: Registry used for the Ad ID value. // @@ -14305,37 +11293,29 @@ type UniversalAdId struct { // "CLEARCAST" // "DCM" Registry string `json:"registry,omitempty"` - - // Value: ID value for this creative. Only alphanumeric characters and - // the following symbols are valid: "_/\-". Maximum length is 64 - // characters. Read only when registry is DCM. + // Value: ID value for this creative. Only alphanumeric characters and the + // following symbols are valid: "_/\-". Maximum length is 64 characters. Read + // only when registry is DCM. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Registry") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Registry") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Registry") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UniversalAdId) MarshalJSON() ([]byte, error) { +func (s UniversalAdId) MarshalJSON() ([]byte, error) { type NoMethod UniversalAdId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserDefinedVariableConfiguration: User Defined Variable -// configuration. +// UserDefinedVariableConfiguration: User Defined Variable configuration. type UserDefinedVariableConfiguration struct { // DataType: Data type for the variable. This is a required field. // @@ -14343,12 +11323,10 @@ type UserDefinedVariableConfiguration struct { // "STRING" // "NUMBER" DataType string `json:"dataType,omitempty"` - // ReportName: User-friendly name for the variable which will appear in - // reports. This is a required field, must be less than 64 characters - // long, and cannot contain the following characters: ""<>". + // reports. This is a required field, must be less than 64 characters long, and + // cannot contain the following characters: ""<>". ReportName string `json:"reportName,omitempty"` - // VariableType: Variable name in the tag. This is a required field. // // Possible values: @@ -14453,190 +11431,145 @@ type UserDefinedVariableConfiguration struct { // "U99" // "U100" VariableType string `json:"variableType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { +func (s UserDefinedVariableConfiguration) MarshalJSON() ([]byte, error) { type NoMethod UserDefinedVariableConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserProfile: A UserProfile resource lets you list all DFA user -// profiles that are associated with a Google user account. The -// profile_id needs to be specified in other API requests. +// UserProfile: A UserProfile resource lets you list all DFA user profiles that +// are associated with a Google user account. The profile_id needs to be +// specified in other API requests. type UserProfile struct { // AccountId: The account ID to which this profile belongs. AccountId int64 `json:"accountId,omitempty,string"` - // AccountName: The account name this profile belongs to. AccountName string `json:"accountName,omitempty"` - // Etag: Etag of this resource. Etag string `json:"etag,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userProfile". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userProfile". Kind string `json:"kind,omitempty"` - // ProfileId: The unique ID of the user profile. ProfileId int64 `json:"profileId,omitempty,string"` - - // SubAccountId: The sub account ID this profile belongs to if - // applicable. + // SubAccountId: The sub account ID this profile belongs to if applicable. SubAccountId int64 `json:"subAccountId,omitempty,string"` - - // SubAccountName: The sub account name this profile belongs to if - // applicable. + // SubAccountName: The sub account name this profile belongs to if applicable. SubAccountName string `json:"subAccountName,omitempty"` - // UserName: The user name. UserName string `json:"userName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfile) MarshalJSON() ([]byte, error) { +func (s UserProfile) MarshalJSON() ([]byte, error) { type NoMethod UserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfileList: Represents the list of user profiles. type UserProfileList struct { // Etag: Etag of this resource. Etag string `json:"etag,omitempty"` - // Items: The user profiles returned in this response. Items []*UserProfile `json:"items,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userProfileList". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userProfileList". Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfileList) MarshalJSON() ([]byte, error) { +func (s UserProfileList) MarshalJSON() ([]byte, error) { type NoMethod UserProfileList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserRole: Contains properties of auser role, which is used to manage -// user access. +// UserRole: Contains properties of auser role, which is used to manage user +// access. type UserRole struct { - // AccountId: Account ID of this user role. This is a read-only field - // that can be left blank. + // AccountId: Account ID of this user role. This is a read-only field that can + // be left blank. AccountId int64 `json:"accountId,omitempty,string"` - - // DefaultUserRole: Whether this is a default user role. Default user - // roles are created by the system for the account/subaccount and cannot - // be modified or deleted. Each default user role comes with a basic set - // of preassigned permissions. + // DefaultUserRole: Whether this is a default user role. Default user roles are + // created by the system for the account/subaccount and cannot be modified or + // deleted. Each default user role comes with a basic set of preassigned + // permissions. DefaultUserRole bool `json:"defaultUserRole,omitempty"` - // Id: ID of this user role. This is a read-only, auto-generated field. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRole". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRole". Kind string `json:"kind,omitempty"` - - // Name: Name of this user role. This is a required field. Must be less - // than 256 characters long. If this user role is under a subaccount, - // the name must be unique among sites of the same subaccount. - // Otherwise, this user role is a top-level user role, and the name must - // be unique among top-level user roles of the same account. + // Name: Name of this user role. This is a required field. Must be less than + // 256 characters long. If this user role is under a subaccount, the name must + // be unique among sites of the same subaccount. Otherwise, this user role is a + // top-level user role, and the name must be unique among top-level user roles + // of the same account. Name string `json:"name,omitempty"` - - // ParentUserRoleId: ID of the user role that this user role is based on - // or copied from. This is a required field. + // ParentUserRoleId: ID of the user role that this user role is based on or + // copied from. This is a required field. ParentUserRoleId int64 `json:"parentUserRoleId,omitempty,string"` - // Permissions: List of permissions associated with this user role. Permissions []*UserRolePermission `json:"permissions,omitempty"` - - // SubaccountId: Subaccount ID of this user role. This is a read-only - // field that can be left blank. + // SubaccountId: Subaccount ID of this user role. This is a read-only field + // that can be left blank. SubaccountId int64 `json:"subaccountId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccountId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRole) MarshalJSON() ([]byte, error) { +func (s UserRole) MarshalJSON() ([]byte, error) { type NoMethod UserRole - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermission: Contains properties of a user role permission. @@ -14651,46 +11584,35 @@ type UserRolePermission struct { // "SUBACCOUNT_AND_ACCOUNT_ALWAYS" // "USER_PROFILE_ONLY" Availability string `json:"availability,omitempty"` - // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermission". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermission". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission. Name string `json:"name,omitempty"` - - // PermissionGroupId: ID of the permission group that this user role - // permission belongs to. + // PermissionGroupId: ID of the permission group that this user role permission + // belongs to. PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Availability") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Availability") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Availability") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermission) MarshalJSON() ([]byte, error) { +func (s UserRolePermission) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermission - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroup: Represents a grouping of related user role @@ -14698,152 +11620,117 @@ func (s *UserRolePermission) MarshalJSON() ([]byte, error) { type UserRolePermissionGroup struct { // Id: ID of this user role permission. Id int64 `json:"id,omitempty,string"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroup". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroup". Kind string `json:"kind,omitempty"` - // Name: Name of this user role permission group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroup) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroup) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionGroupsListResponse: User Role Permission Group List // Response type UserRolePermissionGroupsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionGroupsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionGroupsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissionGroups: User role permission group collection. UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionGroupsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionGroupsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolePermissionsListResponse: User Role Permission List Response type UserRolePermissionsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolePermissionsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolePermissionsListResponse". Kind string `json:"kind,omitempty"` - // UserRolePermissions: User role permission collection. UserRolePermissions []*UserRolePermission `json:"userRolePermissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolePermissionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolePermissionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserRolesListResponse: User Role List Response type UserRolesListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#userRolesListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#userRolesListResponse". Kind string `json:"kind,omitempty"` - - // NextPageToken: Pagination token to be used for the next list - // operation. + // NextPageToken: Pagination token to be used for the next list operation. NextPageToken string `json:"nextPageToken,omitempty"` - // UserRoles: User role collection. UserRoles []*UserRole `json:"userRoles,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRolesListResponse) MarshalJSON() ([]byte, error) { +func (s UserRolesListResponse) MarshalJSON() ([]byte, error) { type NoMethod UserRolesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormat: Contains information about supported video formats. @@ -14857,136 +11744,104 @@ type VideoFormat struct { // "WEBM" // "M3U8" FileType string `json:"fileType,omitempty"` - // Id: ID of the video format. Id int64 `json:"id,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormat". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormat". Kind string `json:"kind,omitempty"` - // Resolution: The resolution of this video format. Resolution *Size `json:"resolution,omitempty"` - // TargetBitRate: The target bit rate of this video format. TargetBitRate int64 `json:"targetBitRate,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "FileType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormat) MarshalJSON() ([]byte, error) { +func (s VideoFormat) MarshalJSON() ([]byte, error) { type NoMethod VideoFormat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoFormatsListResponse: Video Format List Response type VideoFormatsListResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoFormatsListResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoFormatsListResponse". Kind string `json:"kind,omitempty"` - // VideoFormats: Video format collection. VideoFormats []*VideoFormat `json:"videoFormats,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoFormatsListResponse) MarshalJSON() ([]byte, error) { +func (s VideoFormatsListResponse) MarshalJSON() ([]byte, error) { type NoMethod VideoFormatsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoOffset: Video Offset type VideoOffset struct { - // OffsetPercentage: Duration, as a percentage of video duration. Do not - // set when offsetSeconds is set. Acceptable values are 0 to 100, - // inclusive. + // OffsetPercentage: Duration, as a percentage of video duration. Do not set + // when offsetSeconds is set. Acceptable values are 0 to 100, inclusive. OffsetPercentage int64 `json:"offsetPercentage,omitempty"` - - // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage - // is set. Acceptable values are 0 to 86399, inclusive. + // OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage is + // set. Acceptable values are 0 to 86399, inclusive. OffsetSeconds int64 `json:"offsetSeconds,omitempty"` - // ForceSendFields is a list of field names (e.g. "OffsetPercentage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OffsetPercentage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OffsetPercentage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoOffset) MarshalJSON() ([]byte, error) { +func (s VideoOffset) MarshalJSON() ([]byte, error) { type NoMethod VideoOffset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoSettings: Video Settings type VideoSettings struct { - // CompanionSettings: Settings for the companion creatives of video - // creatives served to this placement. + // CompanionSettings: Settings for the companion creatives of video creatives + // served to this placement. CompanionSettings *CompanionSetting `json:"companionSettings,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "dfareporting#videoSettings". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#videoSettings". Kind string `json:"kind,omitempty"` - // ObaEnabled: Whether OBA icons are enabled for this placement. ObaEnabled bool `json:"obaEnabled,omitempty"` - - // ObaSettings: Settings for the OBA icon of video creatives served to - // this placement. If this object is provided, the creative-level OBA - // settings will be overridden. + // ObaSettings: Settings for the OBA icon of video creatives served to this + // placement. If this object is provided, the creative-level OBA settings will + // be overridden. ObaSettings *ObaIcon `json:"obaSettings,omitempty"` - // Orientation: Orientation of a video placement. If this value is set, // placement will return assets matching the specified orientation. // @@ -14995,43 +11850,32 @@ type VideoSettings struct { // "LANDSCAPE" // "PORTRAIT" Orientation string `json:"orientation,omitempty"` - - // SkippableSettings: Settings for the skippability of video creatives - // served to this placement. If this object is provided, the - // creative-level skippable settings will be overridden. + // SkippableSettings: Settings for the skippability of video creatives served + // to this placement. If this object is provided, the creative-level skippable + // settings will be overridden. SkippableSettings *SkippableSetting `json:"skippableSettings,omitempty"` - - // TranscodeSettings: Settings for the transcodes of video creatives - // served to this placement. If this object is provided, the - // creative-level transcode settings will be overridden. + // TranscodeSettings: Settings for the transcodes of video creatives served to + // this placement. If this object is provided, the creative-level transcode + // settings will be overridden. TranscodeSettings *TranscodeSetting `json:"transcodeSettings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompanionSettings") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompanionSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompanionSettings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompanionSettings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoSettings) MarshalJSON() ([]byte, error) { +func (s VideoSettings) MarshalJSON() ([]byte, error) { type NoMethod VideoSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "dfareporting.accountActiveAdSummaries.get": - type AccountActiveAdSummariesGetCall struct { s *Service profileId int64 @@ -15054,33 +11898,29 @@ func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountActiveAdSummariesGetCall) Fields(s ...googleapi.Field) *AccountActiveAdSummariesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountActiveAdSummariesGetCall) IfNoneMatch(entityTag string) *AccountActiveAdSummariesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountActiveAdSummariesGetCall) Context(ctx context.Context) *AccountActiveAdSummariesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountActiveAdSummariesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15089,12 +11929,7 @@ func (c *AccountActiveAdSummariesGetCall) Header() http.Header { } func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15112,16 +11947,15 @@ func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "summaryAccountId": strconv.FormatInt(c.summaryAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountActiveAdSummaries.get" call. -// Exactly one of *AccountActiveAdSummary or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountActiveAdSummary.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountActiveAdSummary.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*AccountActiveAdSummary, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15129,17 +11963,17 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountActiveAdSummary{ ServerResponse: googleapi.ServerResponse{ @@ -15152,43 +11986,7 @@ func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Gets the account's active ad summary by account ID.", - // "flatPath": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - // "httpMethod": "GET", - // "id": "dfareporting.accountActiveAdSummaries.get", - // "parameterOrder": [ - // "profileId", - // "summaryAccountId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "summaryAccountId": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}", - // "response": { - // "$ref": "AccountActiveAdSummary" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.get": +} type AccountPermissionGroupsGetCall struct { s *Service @@ -15212,33 +12010,29 @@ func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *Account } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsGetCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsGetCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsGetCall) Context(ctx context.Context) *AccountPermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15247,12 +12041,7 @@ func (c *AccountPermissionGroupsGetCall) Header() http.Header { } func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15270,16 +12059,15 @@ func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.get" call. -// Exactly one of *AccountPermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermissionGroup.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroup.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15287,17 +12075,17 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -15310,43 +12098,7 @@ func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Acco return nil, err } return ret, nil - // { - // "description": "Gets one account permission group by ID.", - // "flatPath": "userprofiles/{profileId}/accountPermissionGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups/{id}", - // "response": { - // "$ref": "AccountPermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissionGroups.list": +} type AccountPermissionGroupsListCall struct { s *Service @@ -15367,33 +12119,29 @@ func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionGroupsListCall) Fields(s ...googleapi.Field) *AccountPermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionGroupsListCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionGroupsListCall) Context(ctx context.Context) *AccountPermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15402,12 +12150,7 @@ func (c *AccountPermissionGroupsListCall) Header() http.Header { } func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15424,17 +12167,15 @@ func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.list" call. -// Exactly one of *AccountPermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionGroupsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15442,17 +12183,17 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15465,35 +12206,7 @@ func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Acc return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permission groups.", - // "flatPath": "userprofiles/{profileId}/accountPermissionGroups", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissionGroups", - // "response": { - // "$ref": "AccountPermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.get": +} type AccountPermissionsGetCall struct { s *Service @@ -15517,33 +12230,29 @@ func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsGetCall) Fields(s ...googleapi.Field) *AccountPermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsGetCall) IfNoneMatch(entityTag string) *AccountPermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsGetCall) Context(ctx context.Context) *AccountPermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15552,12 +12261,7 @@ func (c *AccountPermissionsGetCall) Header() http.Header { } func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15575,16 +12279,15 @@ func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.get" call. -// Exactly one of *AccountPermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountPermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15592,17 +12295,17 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermission{ ServerResponse: googleapi.ServerResponse{ @@ -15615,43 +12318,7 @@ func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPe return nil, err } return ret, nil - // { - // "description": "Gets one account permission by ID.", - // "flatPath": "userprofiles/{profileId}/accountPermissions/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions/{id}", - // "response": { - // "$ref": "AccountPermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountPermissions.list": +} type AccountPermissionsListCall struct { s *Service @@ -15672,33 +12339,29 @@ func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountPermissionsListCall) Fields(s ...googleapi.Field) *AccountPermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountPermissionsListCall) IfNoneMatch(entityTag string) *AccountPermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountPermissionsListCall) Context(ctx context.Context) *AccountPermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountPermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15707,12 +12370,7 @@ func (c *AccountPermissionsListCall) Header() http.Header { } func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15729,16 +12387,15 @@ func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.list" call. -// Exactly one of *AccountPermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountPermissionsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountPermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15746,17 +12403,17 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountPermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -15769,35 +12426,7 @@ func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountP return nil, err } return ret, nil - // { - // "description": "Retrieves the list of account permissions.", - // "flatPath": "userprofiles/{profileId}/accountPermissions", - // "httpMethod": "GET", - // "id": "dfareporting.accountPermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountPermissions", - // "response": { - // "$ref": "AccountPermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.get": +} type AccountUserProfilesGetCall struct { s *Service @@ -15821,33 +12450,29 @@ func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUser } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesGetCall) Fields(s ...googleapi.Field) *AccountUserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesGetCall) IfNoneMatch(entityTag string) *AccountUserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesGetCall) Context(ctx context.Context) *AccountUserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15856,12 +12481,7 @@ func (c *AccountUserProfilesGetCall) Header() http.Header { } func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15879,16 +12499,15 @@ func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.get" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15896,17 +12515,17 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -15919,43 +12538,7 @@ func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountU return nil, err } return ret, nil - // { - // "description": "Gets one account user profile by ID.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles/{id}", - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.insert": +} type AccountUserProfilesInsertCall struct { s *Service @@ -15977,23 +12560,21 @@ func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesInsertCall) Fields(s ...googleapi.Field) *AccountUserProfilesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesInsertCall) Context(ctx context.Context) *AccountUserProfilesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16002,18 +12583,12 @@ func (c *AccountUserProfilesInsertCall) Header() http.Header { } func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -16026,16 +12601,15 @@ func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.insert" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16043,17 +12617,17 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -16066,38 +12640,7 @@ func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Inserts a new account user profile.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "POST", - // "id": "dfareporting.accountUserProfiles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.list": +} type AccountUserProfilesListCall struct { s *Service @@ -16108,8 +12651,8 @@ type AccountUserProfilesListCall struct { header_ http.Header } -// List: Retrieves a list of account user profiles, possibly filtered. -// This method supports paging. +// List: Retrieves a list of account user profiles, possibly filtered. This +// method supports paging. // // - profileId: User profile ID associated with this request. func (r *AccountUserProfilesService) List(profileId int64) *AccountUserProfilesListCall { @@ -16125,8 +12668,8 @@ func (c *AccountUserProfilesListCall) Active(active bool) *AccountUserProfilesLi return c } -// Ids sets the optional parameter "ids": Select only user profiles with -// these IDs. +// Ids sets the optional parameter "ids": Select only user profiles with these +// IDs. func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesListCall { var ids_ []string for _, v := range ids { @@ -16136,8 +12679,8 @@ func (c *AccountUserProfilesListCall) Ids(ids ...int64) *AccountUserProfilesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountUserProfilesListCall) MaxResults(maxResults int64) *AccountUserProfilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -16150,22 +12693,21 @@ func (c *AccountUserProfilesListCall) PageToken(pageToken string) *AccountUserPr return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or email. Wildcards (*) are -// allowed. For example, "user profile*2015" will return objects with -// names like "user profile June 2015", "user profile April 2015", or -// simply "user profile 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "user profile" will match objects with -// name "my user profile", "user profile 2015", or simply "user +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or email. Wildcards (*) are allowed. For example, +// "user profile*2015" will return objects with names like "user profile June +// 2015", "user profile April 2015", or simply "user profile 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "user profile" will match +// objects with name "my user profile", "user profile 2015", or simply "user // profile". func (c *AccountUserProfilesListCall) SearchString(searchString string) *AccountUserProfilesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -16176,8 +12718,7 @@ func (c *AccountUserProfilesListCall) SortField(sortField string) *AccountUserPr return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -16188,8 +12729,8 @@ func (c *AccountUserProfilesListCall) SortOrder(sortOrder string) *AccountUserPr return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user profiles with the specified subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// profiles with the specified subaccount ID. func (c *AccountUserProfilesListCall) SubaccountId(subaccountId int64) *AccountUserProfilesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c @@ -16203,33 +12744,29 @@ func (c *AccountUserProfilesListCall) UserRoleId(userRoleId int64) *AccountUserP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesListCall) Fields(s ...googleapi.Field) *AccountUserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountUserProfilesListCall) IfNoneMatch(entityTag string) *AccountUserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesListCall) Context(ctx context.Context) *AccountUserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16238,12 +12775,7 @@ func (c *AccountUserProfilesListCall) Header() http.Header { } func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16260,16 +12792,15 @@ func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.list" call. -// Exactly one of *AccountUserProfilesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AccountUserProfilesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfilesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*AccountUserProfilesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16277,17 +12808,17 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfilesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -16300,103 +12831,6 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account return nil, err } return ret, nil - // { - // "description": "Retrieves a list of account user profiles, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "GET", - // "id": "dfareporting.accountUserProfiles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active user profiles.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user profiles with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, \"user profile*2015\" will return objects with names like \"user profile June 2015\", \"user profile April 2015\", or simply \"user profile 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"user profile\" will match objects with name \"my user profile\", \"user profile 2015\", or simply \"user profile\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user profiles with the specified subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "userRoleId": { - // "description": "Select only user profiles with the specified user role ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "response": { - // "$ref": "AccountUserProfilesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -16404,7 +12838,7 @@ func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*Account // The provided context supersedes any context provided to the Context method. func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*AccountUserProfilesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -16420,8 +12854,6 @@ func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*Account } } -// method id "dfareporting.accountUserProfiles.patch": - type AccountUserProfilesPatchCall struct { s *Service profileId int64 @@ -16431,8 +12863,8 @@ type AccountUserProfilesPatchCall struct { header_ http.Header } -// Patch: Updates an existing account user profile. This method supports -// patch semantics. +// Patch: Updates an existing account user profile. This method supports patch +// semantics. // // - id: AccountUserProfile ID. // - profileId: User profile ID associated with this request. @@ -16445,23 +12877,21 @@ func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuse } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesPatchCall) Fields(s ...googleapi.Field) *AccountUserProfilesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesPatchCall) Context(ctx context.Context) *AccountUserProfilesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16470,18 +12900,12 @@ func (c *AccountUserProfilesPatchCall) Header() http.Header { } func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -16494,16 +12918,15 @@ func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.patch" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16511,17 +12934,17 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -16534,46 +12957,7 @@ func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Accoun return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "PATCH", - // "id": "dfareporting.accountUserProfiles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "AccountUserProfile ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accountUserProfiles.update": +} type AccountUserProfilesUpdateCall struct { s *Service @@ -16595,23 +12979,21 @@ func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountUserProfilesUpdateCall) Fields(s ...googleapi.Field) *AccountUserProfilesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountUserProfilesUpdateCall) Context(ctx context.Context) *AccountUserProfilesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountUserProfilesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16620,18 +13002,12 @@ func (c *AccountUserProfilesUpdateCall) Header() http.Header { } func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountuserprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accountUserProfiles") @@ -16644,16 +13020,15 @@ func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.update" call. -// Exactly one of *AccountUserProfile or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountUserProfile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountUserProfile.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16661,17 +13036,17 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountUserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -16684,38 +13059,7 @@ func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Accou return nil, err } return ret, nil - // { - // "description": "Updates an existing account user profile.", - // "flatPath": "userprofiles/{profileId}/accountUserProfiles", - // "httpMethod": "PUT", - // "id": "dfareporting.accountUserProfiles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accountUserProfiles", - // "request": { - // "$ref": "AccountUserProfile" - // }, - // "response": { - // "$ref": "AccountUserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.get": +} type AccountsGetCall struct { s *Service @@ -16739,33 +13083,29 @@ func (r *AccountsService) Get(profileId int64, id int64) *AccountsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16774,12 +13114,7 @@ func (c *AccountsGetCall) Header() http.Header { } func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16797,16 +13132,14 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.get" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16814,17 +13147,17 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -16837,43 +13170,7 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Gets one account by ID.", - // "flatPath": "userprofiles/{profileId}/accounts/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts/{id}", - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.list": +} type AccountsListCall struct { s *Service @@ -16894,16 +13191,14 @@ func (r *AccountsService) List(profileId int64) *AccountsListCall { return c } -// Active sets the optional parameter "active": Select only active -// accounts. Don't set this field to select both active and non-active -// accounts. +// Active sets the optional parameter "active": Select only active accounts. +// Don't set this field to select both active and non-active accounts. func (c *AccountsListCall) Active(active bool) *AccountsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// Ids sets the optional parameter "ids": Select only accounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only accounts with these IDs. func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { var ids_ []string for _, v := range ids { @@ -16913,8 +13208,8 @@ func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -16927,21 +13222,20 @@ func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "account*2015" will return objects with names like "account -// June 2015", "account April 2015", or simply "account 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "account" will -// match objects with name "my account", "account 2015", or simply -// "account". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "account*2015" will return objects with names like "account June 2015", +// "account April 2015", or simply "account 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "account" will match objects with name "my +// account", "account 2015", or simply "account". func (c *AccountsListCall) SearchString(searchString string) *AccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -16952,8 +13246,7 @@ func (c *AccountsListCall) SortField(sortField string) *AccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -16965,33 +13258,29 @@ func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17000,12 +13289,7 @@ func (c *AccountsListCall) Header() http.Header { } func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17022,16 +13306,15 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.list" call. -// Exactly one of *AccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AccountsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AccountsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17039,17 +13322,17 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17062,91 +13345,6 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves the list of accounts, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/accounts", - // "httpMethod": "GET", - // "id": "dfareporting.accounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active accounts. Don't set this field to select both active and non-active accounts.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only accounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"account*2015\" will return objects with names like \"account June 2015\", \"account April 2015\", or simply \"account 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"account\" will match objects with name \"my account\", \"account 2015\", or simply \"account\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "response": { - // "$ref": "AccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -17154,7 +13352,7 @@ func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListRespon // The provided context supersedes any context provided to the Context method. func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17170,8 +13368,6 @@ func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListRespon } } -// method id "dfareporting.accounts.patch": - type AccountsPatchCall struct { s *Service profileId int64 @@ -17181,8 +13377,7 @@ type AccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing account. This method supports patch -// semantics. +// Patch: Updates an existing account. This method supports patch semantics. // // - id: Account ID. // - profileId: User profile ID associated with this request. @@ -17195,23 +13390,21 @@ func (r *AccountsService) Patch(profileId int64, id int64, account *Account) *Ac } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17220,18 +13413,12 @@ func (c *AccountsPatchCall) Header() http.Header { } func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -17244,16 +13431,14 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.patch" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17261,17 +13446,17 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -17284,46 +13469,7 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing account. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/accounts", - // "httpMethod": "PATCH", - // "id": "dfareporting.accounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Account ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.accounts.update": +} type AccountsUpdateCall struct { s *Service @@ -17345,23 +13491,21 @@ func (r *AccountsService) Update(profileId int64, account *Account) *AccountsUpd } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17370,18 +13514,12 @@ func (c *AccountsUpdateCall) Header() http.Header { } func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/accounts") @@ -17394,16 +13532,14 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.update" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17411,17 +13547,17 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -17434,38 +13570,7 @@ func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing account.", - // "flatPath": "userprofiles/{profileId}/accounts", - // "httpMethod": "PUT", - // "id": "dfareporting.accounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/accounts", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.get": +} type AdsGetCall struct { s *Service @@ -17489,33 +13594,29 @@ func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsGetCall) Fields(s ...googleapi.Field) *AdsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsGetCall) IfNoneMatch(entityTag string) *AdsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsGetCall) Context(ctx context.Context) *AdsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17524,12 +13625,7 @@ func (c *AdsGetCall) Header() http.Header { } func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17547,16 +13643,14 @@ func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.get" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17564,17 +13658,17 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17587,43 +13681,7 @@ func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Gets one ad by ID.", - // "flatPath": "userprofiles/{profileId}/ads/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.ads.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads/{id}", - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.insert": +} type AdsInsertCall struct { s *Service @@ -17645,23 +13703,21 @@ func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsInsertCall) Fields(s ...googleapi.Field) *AdsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsInsertCall) Context(ctx context.Context) *AdsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17670,18 +13726,12 @@ func (c *AdsInsertCall) Header() http.Header { } func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -17694,16 +13744,14 @@ func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.insert" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17711,17 +13759,17 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -17734,38 +13782,7 @@ func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new ad.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "POST", - // "id": "dfareporting.ads.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.list": +} type AdsListCall struct { s *Service @@ -17776,8 +13793,8 @@ type AdsListCall struct { header_ http.Header } -// List: Retrieves a list of ads, possibly filtered. This method -// supports paging. +// List: Retrieves a list of ads, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. func (r *AdsService) List(profileId int64) *AdsListCall { @@ -17792,22 +13809,21 @@ func (c *AdsListCall) Active(active bool) *AdsListCall { return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// ads with this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only ads +// with this advertiser ID. func (c *AdsListCall) AdvertiserId(advertiserId int64) *AdsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Archived sets the optional parameter "archived": Select only archived -// ads. +// Archived sets the optional parameter "archived": Select only archived ads. func (c *AdsListCall) Archived(archived bool) *AdsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": -// Select only ads with these audience segment IDs. +// AudienceSegmentIds sets the optional parameter "audienceSegmentIds": Select +// only ads with these audience segment IDs. func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCall { var audienceSegmentIds_ []string for _, v := range audienceSegmentIds { @@ -17817,8 +13833,8 @@ func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds ...int64) *AdsListCa return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// ads with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only ads with +// these campaign IDs. func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -17828,13 +13844,13 @@ func (c *AdsListCall) CampaignIds(campaignIds ...int64) *AdsListCall { return c } -// Compatibility sets the optional parameter "compatibility": Select -// default ads with the specified compatibility. Applicable when type is -// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to -// rendering either on desktop or on mobile devices for regular or -// interstitial ads, respectively. APP and APP_INTERSTITIAL are for -// rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an -// in-stream video ads developed with the VAST standard. +// Compatibility sets the optional parameter "compatibility": Select default +// ads with the specified compatibility. Applicable when type is +// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering +// either on desktop or on mobile devices for regular or interstitial ads, +// respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. +// IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with +// the VAST standard. // // Possible values: // @@ -17849,8 +13865,8 @@ func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall { return c } -// CreativeIds sets the optional parameter "creativeIds": Select only -// ads with these creative IDs assigned. +// CreativeIds sets the optional parameter "creativeIds": Select only ads with +// these creative IDs assigned. func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { var creativeIds_ []string for _, v := range creativeIds { @@ -17861,8 +13877,8 @@ func (c *AdsListCall) CreativeIds(creativeIds ...int64) *AdsListCall { } // CreativeOptimizationConfigurationIds sets the optional parameter -// "creativeOptimizationConfigurationIds": Select only ads with these -// creative optimization configuration IDs. +// "creativeOptimizationConfigurationIds": Select only ads with these creative +// optimization configuration IDs. func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationConfigurationIds ...int64) *AdsListCall { var creativeOptimizationConfigurationIds_ []string for _, v := range creativeOptimizationConfigurationIds { @@ -17872,18 +13888,16 @@ func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationC return c } -// DynamicClickTracker sets the optional parameter -// "dynamicClickTracker": Select only dynamic click trackers. Applicable -// when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click -// trackers. If false, select static click trackers. Leave unset to -// select both. +// DynamicClickTracker sets the optional parameter "dynamicClickTracker": +// Select only dynamic click trackers. Applicable when type is +// AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, +// select static click trackers. Leave unset to select both. func (c *AdsListCall) DynamicClickTracker(dynamicClickTracker bool) *AdsListCall { c.urlParams_.Set("dynamicClickTracker", fmt.Sprint(dynamicClickTracker)) return c } -// Ids sets the optional parameter "ids": Select only ads with these -// IDs. +// Ids sets the optional parameter "ids": Select only ads with these IDs. func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { var ids_ []string for _, v := range ids { @@ -17893,8 +13907,8 @@ func (c *AdsListCall) Ids(ids ...int64) *AdsListCall { return c } -// LandingPageIds sets the optional parameter "landingPageIds": Select -// only ads with these landing page IDs. +// LandingPageIds sets the optional parameter "landingPageIds": Select only ads +// with these landing page IDs. func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { var landingPageIds_ []string for _, v := range landingPageIds { @@ -17904,16 +13918,15 @@ func (c *AdsListCall) LandingPageIds(landingPageIds ...int64) *AdsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdsListCall) MaxResults(maxResults int64) *AdsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only ads with this event tag override -// ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only ads with this event tag override ID. func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagId int64) *AdsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -17926,8 +13939,8 @@ func (c *AdsListCall) PageToken(pageToken string) *AdsListCall { return c } -// PlacementIds sets the optional parameter "placementIds": Select only -// ads with these placement IDs assigned. +// PlacementIds sets the optional parameter "placementIds": Select only ads +// with these placement IDs assigned. func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { var placementIds_ []string for _, v := range placementIds { @@ -17937,9 +13950,8 @@ func (c *AdsListCall) PlacementIds(placementIds ...int64) *AdsListCall { return c } -// RemarketingListIds sets the optional parameter "remarketingListIds": -// Select only ads whose list targeting expression use these remarketing -// list IDs. +// RemarketingListIds sets the optional parameter "remarketingListIds": Select +// only ads whose list targeting expression use these remarketing list IDs. func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCall { var remarketingListIds_ []string for _, v := range remarketingListIds { @@ -17949,20 +13961,19 @@ func (c *AdsListCall) RemarketingListIds(remarketingListIds ...int64) *AdsListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "ad*2015" will return objects with names like "ad June -// 2015", "ad April 2015", or simply "ad 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "ad" will match objects with -// name "my ad", "ad 2015", or simply "ad". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, "ad*2015" +// will return objects with names like "ad June 2015", "ad April 2015", or +// simply "ad 2015". Most of the searches also add wildcards implicitly at the +// start and the end of the search string. For example, a search string of "ad" +// will match objects with name "my ad", "ad 2015", or simply "ad". func (c *AdsListCall) SearchString(searchString string) *AdsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only ads with -// these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only ads with these +// size IDs. func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -17972,8 +13983,8 @@ func (c *AdsListCall) SizeIds(sizeIds ...int64) *AdsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -17984,8 +13995,7 @@ func (c *AdsListCall) SortField(sortField string) *AdsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -17996,22 +14006,21 @@ func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall { return c } -// SslCompliant sets the optional parameter "sslCompliant": Select only -// ads that are SSL-compliant. +// SslCompliant sets the optional parameter "sslCompliant": Select only ads +// that are SSL-compliant. func (c *AdsListCall) SslCompliant(sslCompliant bool) *AdsListCall { c.urlParams_.Set("sslCompliant", fmt.Sprint(sslCompliant)) return c } -// SslRequired sets the optional parameter "sslRequired": Select only -// ads that require SSL. +// SslRequired sets the optional parameter "sslRequired": Select only ads that +// require SSL. func (c *AdsListCall) SslRequired(sslRequired bool) *AdsListCall { c.urlParams_.Set("sslRequired", fmt.Sprint(sslRequired)) return c } -// Type sets the optional parameter "type": Select only ads with these -// types. +// Type sets the optional parameter "type": Select only ads with these types. // // Possible values: // @@ -18026,33 +14035,29 @@ func (c *AdsListCall) Type(type_ ...string) *AdsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsListCall) Fields(s ...googleapi.Field) *AdsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdsListCall) IfNoneMatch(entityTag string) *AdsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsListCall) Context(ctx context.Context) *AdsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18061,12 +14066,7 @@ func (c *AdsListCall) Header() http.Header { } func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18083,16 +14083,15 @@ func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.list" call. -// Exactly one of *AdsListResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdsListResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18100,17 +14099,17 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18123,220 +14122,6 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) return nil, err } return ret, nil - // { - // "description": "Retrieves a list of ads, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "GET", - // "id": "dfareporting.ads.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active ads.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only ads with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived ads.", - // "location": "query", - // "type": "boolean" - // }, - // "audienceSegmentIds": { - // "description": "Select only ads with these audience segment IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "campaignIds": { - // "description": "Select only ads with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibility": { - // "description": "Select default ads with the specified compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard.", - // "enum": [ - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "APP", - // "APP_INTERSTITIAL", - // "IN_STREAM_VIDEO", - // "IN_STREAM_AUDIO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "creativeIds": { - // "description": "Select only ads with these creative IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeOptimizationConfigurationIds": { - // "description": "Select only ads with these creative optimization configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dynamicClickTracker": { - // "description": "Select only dynamic click trackers. Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, select static click trackers. Leave unset to select both.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only ads with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "landingPageIds": { - // "description": "Select only ads with these landing page IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only ads with this event tag override ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Select only ads with these placement IDs assigned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListIds": { - // "description": "Select only ads whose list targeting expression use these remarketing list IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"ad*2015\" will return objects with names like \"ad June 2015\", \"ad April 2015\", or simply \"ad 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"ad\" will match objects with name \"my ad\", \"ad 2015\", or simply \"ad\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only ads with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sslCompliant": { - // "description": "Select only ads that are SSL-compliant.", - // "location": "query", - // "type": "boolean" - // }, - // "sslRequired": { - // "description": "Select only ads that require SSL.", - // "location": "query", - // "type": "boolean" - // }, - // "type": { - // "description": "Select only ads with these types.", - // "enum": [ - // "AD_SERVING_STANDARD_AD", - // "AD_SERVING_DEFAULT_AD", - // "AD_SERVING_CLICK_TRACKER", - // "AD_SERVING_TRACKING", - // "AD_SERVING_BRAND_SAFE_AD" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "response": { - // "$ref": "AdsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -18344,7 +14129,7 @@ func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error) // The provided context supersedes any context provided to the Context method. func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18360,8 +14145,6 @@ func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) error) } } -// method id "dfareporting.ads.patch": - type AdsPatchCall struct { s *Service profileId int64 @@ -18384,23 +14167,21 @@ func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsPatchCall) Fields(s ...googleapi.Field) *AdsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsPatchCall) Context(ctx context.Context) *AdsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18409,18 +14190,12 @@ func (c *AdsPatchCall) Header() http.Header { } func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -18433,16 +14208,14 @@ func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.patch" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18450,17 +14223,17 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -18473,46 +14246,7 @@ func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "PATCH", - // "id": "dfareporting.ads.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Ad ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.ads.update": +} type AdsUpdateCall struct { s *Service @@ -18534,23 +14268,21 @@ func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdsUpdateCall) Fields(s ...googleapi.Field) *AdsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdsUpdateCall) Context(ctx context.Context) *AdsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18559,18 +14291,12 @@ func (c *AdsUpdateCall) Header() http.Header { } func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ad) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/ads") @@ -18583,16 +14309,14 @@ func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.update" call. -// Exactly one of *Ad or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either *Ad.ServerResponse.Header -// or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *Ad.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18600,17 +14324,17 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Ad{ ServerResponse: googleapi.ServerResponse{ @@ -18623,38 +14347,7 @@ func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing ad.", - // "flatPath": "userprofiles/{profileId}/ads", - // "httpMethod": "PUT", - // "id": "dfareporting.ads.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/ads", - // "request": { - // "$ref": "Ad" - // }, - // "response": { - // "$ref": "Ad" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.delete": +} type AdvertiserGroupsDeleteCall struct { s *Service @@ -18677,23 +14370,21 @@ func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsDeleteCall) Fields(s ...googleapi.Field) *AdvertiserGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsDeleteCall) Context(ctx context.Context) *AdvertiserGroupsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18702,12 +14393,7 @@ func (c *AdvertiserGroupsDeleteCall) Header() http.Header { } func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -18722,7 +14408,7 @@ func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.delete" call. @@ -18734,43 +14420,10 @@ func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.advertiserGroups.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.get": +} type AdvertiserGroupsGetCall struct { s *Service @@ -18794,33 +14447,29 @@ func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGrou } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsGetCall) Fields(s ...googleapi.Field) *AdvertiserGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsGetCall) IfNoneMatch(entityTag string) *AdvertiserGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsGetCall) Context(ctx context.Context) *AdvertiserGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18829,12 +14478,7 @@ func (c *AdvertiserGroupsGetCall) Header() http.Header { } func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18852,16 +14496,15 @@ func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.get" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18869,17 +14512,17 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -18892,43 +14535,7 @@ func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserG return nil, err } return ret, nil - // { - // "description": "Gets one advertiser group by ID.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups/{id}", - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.insert": +} type AdvertiserGroupsInsertCall struct { s *Service @@ -18950,23 +14557,21 @@ func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsInsertCall) Fields(s ...googleapi.Field) *AdvertiserGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsInsertCall) Context(ctx context.Context) *AdvertiserGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18975,18 +14580,12 @@ func (c *AdvertiserGroupsInsertCall) Header() http.Header { } func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -18999,16 +14598,15 @@ func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.insert" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19016,17 +14614,17 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -19039,38 +14637,7 @@ func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.list": +} type AdvertiserGroupsListCall struct { s *Service @@ -19081,8 +14648,8 @@ type AdvertiserGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of advertiser groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of advertiser groups, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCall { @@ -19091,8 +14658,8 @@ func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCal return c } -// Ids sets the optional parameter "ids": Select only advertiser groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only advertiser groups with +// these IDs. func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { var ids_ []string for _, v := range ids { @@ -19102,8 +14669,8 @@ func (c *AdvertiserGroupsListCall) Ids(ids ...int64) *AdvertiserGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserGroupsListCall) MaxResults(maxResults int64) *AdvertiserGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -19116,22 +14683,21 @@ func (c *AdvertiserGroupsListCall) PageToken(pageToken string) *AdvertiserGroups return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser group June 2015", "advertiser group April 2015", or -// simply "advertiser group 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "advertisergroup" will match objects -// with name "my advertisergroup", "advertisergroup 2015", or simply -// "advertisergroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser group June +// 2015", "advertiser group April 2015", or simply "advertiser group 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "advertisergroup" will +// match objects with name "my advertisergroup", "advertisergroup 2015", or +// simply "advertisergroup". func (c *AdvertiserGroupsListCall) SearchString(searchString string) *AdvertiserGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -19142,8 +14708,7 @@ func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroups return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -19155,33 +14720,29 @@ func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsListCall) Fields(s ...googleapi.Field) *AdvertiserGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserGroupsListCall) IfNoneMatch(entityTag string) *AdvertiserGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsListCall) Context(ctx context.Context) *AdvertiserGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19190,12 +14751,7 @@ func (c *AdvertiserGroupsListCall) Header() http.Header { } func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19212,16 +14768,15 @@ func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.list" call. -// Exactly one of *AdvertiserGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserGroupsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19229,17 +14784,17 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19252,86 +14807,6 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertiser groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only advertiser groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser group June 2015\", \"advertiser group April 2015\", or simply \"advertiser group 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertisergroup\" will match objects with name \"my advertisergroup\", \"advertisergroup 2015\", or simply \"advertisergroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "response": { - // "$ref": "AdvertiserGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -19339,7 +14814,7 @@ func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*Advertiser // The provided context supersedes any context provided to the Context method. func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*AdvertiserGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -19355,8 +14830,6 @@ func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*Advertiser } } -// method id "dfareporting.advertiserGroups.patch": - type AdvertiserGroupsPatchCall struct { s *Service profileId int64 @@ -19366,8 +14839,8 @@ type AdvertiserGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser group. This method supports -// patch semantics. +// Patch: Updates an existing advertiser group. This method supports patch +// semantics. // // - id: AdvertiserGroup ID. // - profileId: User profile ID associated with this request. @@ -19380,23 +14853,21 @@ func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsPatchCall) Fields(s ...googleapi.Field) *AdvertiserGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsPatchCall) Context(ctx context.Context) *AdvertiserGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19405,18 +14876,12 @@ func (c *AdvertiserGroupsPatchCall) Header() http.Header { } func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -19429,16 +14894,15 @@ func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.patch" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19446,17 +14910,17 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -19469,46 +14933,7 @@ func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Advertise return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "AdvertiserGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserGroups.update": +} type AdvertiserGroupsUpdateCall struct { s *Service @@ -19530,23 +14955,21 @@ func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *Adver } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserGroupsUpdateCall) Fields(s ...googleapi.Field) *AdvertiserGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserGroupsUpdateCall) Context(ctx context.Context) *AdvertiserGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19555,18 +14978,12 @@ func (c *AdvertiserGroupsUpdateCall) Header() http.Header { } func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertisergroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserGroups") @@ -19579,16 +14996,15 @@ func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.update" call. -// Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AdvertiserGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19596,17 +15012,17 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserGroup{ ServerResponse: googleapi.ServerResponse{ @@ -19619,38 +15035,7 @@ func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Advertis return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser group.", - // "flatPath": "userprofiles/{profileId}/advertiserGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserGroups", - // "request": { - // "$ref": "AdvertiserGroup" - // }, - // "response": { - // "$ref": "AdvertiserGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.get": +} type AdvertiserLandingPagesGetCall struct { s *Service @@ -19674,33 +15059,29 @@ func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *Advertis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesGetCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserLandingPagesGetCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesGetCall) Context(ctx context.Context) *AdvertiserLandingPagesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19709,12 +15090,7 @@ func (c *AdvertiserLandingPagesGetCall) Header() http.Header { } func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19732,16 +15108,14 @@ func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.get" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19749,17 +15123,17 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19772,43 +15146,7 @@ func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*Landi return nil, err } return ret, nil - // { - // "description": "Gets one landing page by ID.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Landing page ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages/{id}", - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.insert": +} type AdvertiserLandingPagesInsertCall struct { s *Service @@ -19830,23 +15168,21 @@ func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *Lan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesInsertCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesInsertCall) Context(ctx context.Context) *AdvertiserLandingPagesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19855,18 +15191,12 @@ func (c *AdvertiserLandingPagesInsertCall) Header() http.Header { } func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -19879,16 +15209,14 @@ func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.insert" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19896,17 +15224,17 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -19919,38 +15247,7 @@ func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*La return nil, err } return ret, nil - // { - // "description": "Inserts a new landing page.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "POST", - // "id": "dfareporting.advertiserLandingPages.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.list": +} type AdvertiserLandingPagesListCall struct { s *Service @@ -19970,8 +15267,8 @@ func (r *AdvertiserLandingPagesService) List(profileId int64) *AdvertiserLanding return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only landing pages that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// landing pages that belong to these advertisers. func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) *AdvertiserLandingPagesListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -19982,15 +15279,15 @@ func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) * } // Archived sets the optional parameter "archived": Select only archived -// landing pages. Don't set this field to select both archived and -// non-archived landing pages. +// landing pages. Don't set this field to select both archived and non-archived +// landing pages. func (c *AdvertiserLandingPagesListCall) Archived(archived bool) *AdvertiserLandingPagesListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// landing pages that are associated with these campaigns. +// CampaignIds sets the optional parameter "campaignIds": Select only landing +// pages that are associated with these campaigns. func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *AdvertiserLandingPagesListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -20000,8 +15297,8 @@ func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *Adve return c } -// Ids sets the optional parameter "ids": Select only landing pages with -// these IDs. +// Ids sets the optional parameter "ids": Select only landing pages with these +// IDs. func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPagesListCall { var ids_ []string for _, v := range ids { @@ -20011,8 +15308,8 @@ func (c *AdvertiserLandingPagesListCall) Ids(ids ...int64) *AdvertiserLandingPag return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertiserLandingPagesListCall) MaxResults(maxResults int64) *AdvertiserLandingPagesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -20025,21 +15322,21 @@ func (c *AdvertiserLandingPagesListCall) PageToken(pageToken string) *Advertiser return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for landing pages by name or ID. Wildcards (*) are allowed. -// For example, "landingpage*2017" will return landing pages with names -// like "landingpage July 2017", "landingpage March 2017", or simply -// "landingpage 2017". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "landingpage" will match campaigns with -// name "my landingpage", "landingpage 2015", or simply "landingpage". +// SearchString sets the optional parameter "searchString": Allows searching +// for landing pages by name or ID. Wildcards (*) are allowed. For example, +// "landingpage*2017" will return landing pages with names like "landingpage +// July 2017", "landingpage March 2017", or simply "landingpage 2017". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "landingpage" will match +// campaigns with name "my landingpage", "landingpage 2015", or simply +// "landingpage". func (c *AdvertiserLandingPagesListCall) SearchString(searchString string) *AdvertiserLandingPagesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -20050,8 +15347,7 @@ func (c *AdvertiserLandingPagesListCall) SortField(sortField string) *Advertiser return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -20062,41 +15358,37 @@ func (c *AdvertiserLandingPagesListCall) SortOrder(sortOrder string) *Advertiser return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// landing pages that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only landing +// pages that belong to this subaccount. func (c *AdvertiserLandingPagesListCall) SubaccountId(subaccountId int64) *AdvertiserLandingPagesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesListCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertiserLandingPagesListCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesListCall) Context(ctx context.Context) *AdvertiserLandingPagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20105,12 +15397,7 @@ func (c *AdvertiserLandingPagesListCall) Header() http.Header { } func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20127,17 +15414,15 @@ func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.list" call. -// Exactly one of *AdvertiserLandingPagesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *AdvertiserLandingPagesListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *AdvertiserLandingPagesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*AdvertiserLandingPagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20145,17 +15430,17 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertiserLandingPagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -20168,111 +15453,6 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve return nil, err } return ret, nil - // { - // "description": "Retrieves a list of landing pages.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "GET", - // "id": "dfareporting.advertiserLandingPages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only landing pages that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived landing pages. Don't set this field to select both archived and non-archived landing pages.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only landing pages that are associated with these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only landing pages with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for landing pages by name or ID. Wildcards (*) are allowed. For example, \"landingpage*2017\" will return landing pages with names like \"landingpage July 2017\", \"landingpage March 2017\", or simply \"landingpage 2017\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"landingpage\" will match campaigns with name \"my landingpage\", \"landingpage 2015\", or simply \"landingpage\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only landing pages that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "response": { - // "$ref": "AdvertiserLandingPagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -20280,7 +15460,7 @@ func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*Adve // The provided context supersedes any context provided to the Context method. func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*AdvertiserLandingPagesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20296,8 +15476,6 @@ func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*Adve } } -// method id "dfareporting.advertiserLandingPages.patch": - type AdvertiserLandingPagesPatchCall struct { s *Service profileId int64 @@ -20307,8 +15485,8 @@ type AdvertiserLandingPagesPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser landing page. This method -// supports patch semantics. +// Patch: Updates an existing advertiser landing page. This method supports +// patch semantics. // // - id: LandingPage ID. // - profileId: User profile ID associated with this request. @@ -20321,23 +15499,21 @@ func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landing } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesPatchCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesPatchCall) Context(ctx context.Context) *AdvertiserLandingPagesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20346,18 +15522,12 @@ func (c *AdvertiserLandingPagesPatchCall) Header() http.Header { } func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -20370,16 +15540,14 @@ func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.patch" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20387,17 +15555,17 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -20410,46 +15578,7 @@ func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*Lan return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser landing page. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertiserLandingPages.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "LandingPage ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertiserLandingPages.update": +} type AdvertiserLandingPagesUpdateCall struct { s *Service @@ -20471,23 +15600,21 @@ func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *Lan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertiserLandingPagesUpdateCall) Fields(s ...googleapi.Field) *AdvertiserLandingPagesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertiserLandingPagesUpdateCall) Context(ctx context.Context) *AdvertiserLandingPagesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20496,18 +15623,12 @@ func (c *AdvertiserLandingPagesUpdateCall) Header() http.Header { } func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.landingpage) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertiserLandingPages") @@ -20520,16 +15641,14 @@ func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.update" call. -// Exactly one of *LandingPage or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LandingPage.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LandingPage.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20537,17 +15656,17 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LandingPage{ ServerResponse: googleapi.ServerResponse{ @@ -20560,38 +15679,7 @@ func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*La return nil, err } return ret, nil - // { - // "description": "Updates an existing landing page.", - // "flatPath": "userprofiles/{profileId}/advertiserLandingPages", - // "httpMethod": "PUT", - // "id": "dfareporting.advertiserLandingPages.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertiserLandingPages", - // "request": { - // "$ref": "LandingPage" - // }, - // "response": { - // "$ref": "LandingPage" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.get": +} type AdvertisersGetCall struct { s *Service @@ -20615,33 +15703,29 @@ func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersGetCall) Fields(s ...googleapi.Field) *AdvertisersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20650,12 +15734,7 @@ func (c *AdvertisersGetCall) Header() http.Header { } func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20673,16 +15752,14 @@ func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.get" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20690,17 +15767,17 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -20713,43 +15790,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro return nil, err } return ret, nil - // { - // "description": "Gets one advertiser by ID.", - // "flatPath": "userprofiles/{profileId}/advertisers/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers/{id}", - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.insert": +} type AdvertisersInsertCall struct { s *Service @@ -20771,23 +15812,21 @@ func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertCall) Fields(s ...googleapi.Field) *AdvertisersInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertCall) Context(ctx context.Context) *AdvertisersInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20796,18 +15835,12 @@ func (c *AdvertisersInsertCall) Header() http.Header { } func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -20820,16 +15853,14 @@ func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.insert" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20837,17 +15868,17 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -20860,38 +15891,7 @@ func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Inserts a new advertiser.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "POST", - // "id": "dfareporting.advertisers.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.list": +} type AdvertisersListCall struct { s *Service @@ -20912,8 +15912,8 @@ func (r *AdvertisersService) List(profileId int64) *AdvertisersListCall { return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only advertisers with these advertiser group IDs. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only advertisers with these advertiser group IDs. func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *AdvertisersListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -20924,8 +15924,8 @@ func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *A } // FloodlightConfigurationIds sets the optional parameter -// "floodlightConfigurationIds": Select only advertisers with these -// floodlight configuration IDs. +// "floodlightConfigurationIds": Select only advertisers with these floodlight +// configuration IDs. func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfigurationIds ...int64) *AdvertisersListCall { var floodlightConfigurationIds_ []string for _, v := range floodlightConfigurationIds { @@ -20935,8 +15935,8 @@ func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfiguration return c } -// Ids sets the optional parameter "ids": Select only advertisers with -// these IDs. +// Ids sets the optional parameter "ids": Select only advertisers with these +// IDs. func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { var ids_ []string for _, v := range ids { @@ -20947,22 +15947,22 @@ func (c *AdvertisersListCall) Ids(ids ...int64) *AdvertisersListCall { } // IncludeAdvertisersWithoutGroupsOnly sets the optional parameter -// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which -// do not belong to any advertiser group. +// "includeAdvertisersWithoutGroupsOnly": Select only advertisers which do not +// belong to any advertiser group. func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnly bool) *AdvertisersListCall { c.urlParams_.Set("includeAdvertisersWithoutGroupsOnly", fmt.Sprint(includeAdvertisersWithoutGroupsOnly)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *AdvertisersListCall) MaxResults(maxResults int64) *AdvertisersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OnlyParent sets the optional parameter "onlyParent": Select only -// advertisers which use another advertiser's floodlight configuration. +// OnlyParent sets the optional parameter "onlyParent": Select only advertisers +// which use another advertiser's floodlight configuration. func (c *AdvertisersListCall) OnlyParent(onlyParent bool) *AdvertisersListCall { c.urlParams_.Set("onlyParent", fmt.Sprint(onlyParent)) return c @@ -20975,21 +15975,21 @@ func (c *AdvertisersListCall) PageToken(pageToken string) *AdvertisersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "advertiser*2015" will return objects with names like -// "advertiser June 2015", "advertiser April 2015", or simply -// "advertiser 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "advertiser" will match objects with name "my advertiser", -// "advertiser 2015", or simply "advertiser" . +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "advertiser*2015" will return objects with names like "advertiser June +// 2015", "advertiser April 2015", or simply "advertiser 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "advertiser" will match +// objects with name "my advertiser", "advertiser 2015", or simply "advertiser" +// . func (c *AdvertisersListCall) SearchString(searchString string) *AdvertisersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -21000,8 +16000,7 @@ func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -21012,8 +16011,8 @@ func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall { return c } -// Status sets the optional parameter "status": Select only advertisers -// with the specified status. +// Status sets the optional parameter "status": Select only advertisers with +// the specified status. // // Possible values: // @@ -21032,33 +16031,29 @@ func (c *AdvertisersListCall) SubaccountId(subaccountId int64) *AdvertisersListC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersListCall) Fields(s ...googleapi.Field) *AdvertisersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21067,12 +16062,7 @@ func (c *AdvertisersListCall) Header() http.Header { } func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21089,16 +16079,15 @@ func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.list" call. -// Exactly one of *AdvertisersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AdvertisersListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21106,17 +16095,17 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AdvertisersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21129,129 +16118,6 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of advertisers, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "GET", - // "id": "dfareporting.advertisers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only advertisers with these advertiser group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightConfigurationIds": { - // "description": "Select only advertisers with these floodlight configuration IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only advertisers with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "includeAdvertisersWithoutGroupsOnly": { - // "description": "Select only advertisers which do not belong to any advertiser group.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "onlyParent": { - // "description": "Select only advertisers which use another advertiser's floodlight configuration.", - // "location": "query", - // "type": "boolean" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"advertiser*2015\" will return objects with names like \"advertiser June 2015\", \"advertiser April 2015\", or simply \"advertiser 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"advertiser\" will match objects with name \"my advertiser\", \"advertiser 2015\", or simply \"advertiser\" .", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "status": { - // "description": "Select only advertisers with the specified status.", - // "enum": [ - // "APPROVED", - // "ON_HOLD" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only advertisers with these subaccount IDs.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "response": { - // "$ref": "AdvertisersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -21259,7 +16125,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersList // The provided context supersedes any context provided to the Context method. func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21275,8 +16141,6 @@ func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersList } } -// method id "dfareporting.advertisers.patch": - type AdvertisersPatchCall struct { s *Service profileId int64 @@ -21286,8 +16150,7 @@ type AdvertisersPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser. This method supports patch -// semantics. +// Patch: Updates an existing advertiser. This method supports patch semantics. // // - id: Advertiser ID. // - profileId: User profile ID associated with this request. @@ -21300,23 +16163,21 @@ func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersPatchCall) Fields(s ...googleapi.Field) *AdvertisersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21325,18 +16186,12 @@ func (c *AdvertisersPatchCall) Header() http.Header { } func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -21349,16 +16204,14 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.patch" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21366,17 +16219,17 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -21389,46 +16242,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "PATCH", - // "id": "dfareporting.advertisers.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Advertiser ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.advertisers.update": +} type AdvertisersUpdateCall struct { s *Service @@ -21450,23 +16264,21 @@ func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *Ad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersUpdateCall) Fields(s ...googleapi.Field) *AdvertisersUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersUpdateCall) Context(ctx context.Context) *AdvertisersUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21475,18 +16287,12 @@ func (c *AdvertisersUpdateCall) Header() http.Header { } func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/advertisers") @@ -21499,16 +16305,14 @@ func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.update" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21516,17 +16320,17 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Advertiser{ ServerResponse: googleapi.ServerResponse{ @@ -21539,38 +16343,7 @@ func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser.", - // "flatPath": "userprofiles/{profileId}/advertisers", - // "httpMethod": "PUT", - // "id": "dfareporting.advertisers.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.browsers.list": +} type BrowsersListCall struct { s *Service @@ -21591,33 +16364,29 @@ func (r *BrowsersService) List(profileId int64) *BrowsersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BrowsersListCall) Fields(s ...googleapi.Field) *BrowsersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BrowsersListCall) IfNoneMatch(entityTag string) *BrowsersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BrowsersListCall) Context(ctx context.Context) *BrowsersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BrowsersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21626,12 +16395,7 @@ func (c *BrowsersListCall) Header() http.Header { } func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21648,16 +16412,15 @@ func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.browsers.list" call. -// Exactly one of *BrowsersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BrowsersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BrowsersListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21665,17 +16428,17 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BrowsersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -21688,35 +16451,7 @@ func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of browsers.", - // "flatPath": "userprofiles/{profileId}/browsers", - // "httpMethod": "GET", - // "id": "dfareporting.browsers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/browsers", - // "response": { - // "$ref": "BrowsersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.insert": +} type CampaignCreativeAssociationsInsertCall struct { s *Service @@ -21728,9 +16463,9 @@ type CampaignCreativeAssociationsInsertCall struct { header_ http.Header } -// Insert: Associates a creative with the specified campaign. This -// method creates a default ad with dimensions matching the creative in -// the campaign if such a default ad does not exist already. +// Insert: Associates a creative with the specified campaign. This method +// creates a default ad with dimensions matching the creative in the campaign +// if such a default ad does not exist already. // // - campaignId: Campaign ID in this association. // - profileId: User profile ID associated with this request. @@ -21743,23 +16478,21 @@ func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsInsertCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsInsertCall) Context(ctx context.Context) *CampaignCreativeAssociationsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21768,18 +16501,12 @@ func (c *CampaignCreativeAssociationsInsertCall) Header() http.Header { } func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaigncreativeassociation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations") @@ -21793,16 +16520,15 @@ func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Re "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.insert" call. -// Exactly one of *CampaignCreativeAssociation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CampaignCreativeAssociation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CampaignCreativeAssociation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21810,17 +16536,17 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociation{ ServerResponse: googleapi.ServerResponse{ @@ -21833,46 +16559,7 @@ func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.", - // "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "httpMethod": "POST", - // "id": "dfareporting.campaignCreativeAssociations.insert", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "request": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "response": { - // "$ref": "CampaignCreativeAssociation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaignCreativeAssociations.list": +} type CampaignCreativeAssociationsListCall struct { s *Service @@ -21884,8 +16571,8 @@ type CampaignCreativeAssociationsListCall struct { header_ http.Header } -// List: Retrieves the list of creative IDs associated with the -// specified campaign. This method supports paging. +// List: Retrieves the list of creative IDs associated with the specified +// campaign. This method supports paging. // // - campaignId: Campaign ID in this association. // - profileId: User profile ID associated with this request. @@ -21896,8 +16583,8 @@ func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId i return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignCreativeAssociationsListCall) MaxResults(maxResults int64) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -21910,8 +16597,7 @@ func (c *CampaignCreativeAssociationsListCall) PageToken(pageToken string) *Camp return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -21923,33 +16609,29 @@ func (c *CampaignCreativeAssociationsListCall) SortOrder(sortOrder string) *Camp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignCreativeAssociationsListCall) Fields(s ...googleapi.Field) *CampaignCreativeAssociationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignCreativeAssociationsListCall) IfNoneMatch(entityTag string) *CampaignCreativeAssociationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignCreativeAssociationsListCall) Context(ctx context.Context) *CampaignCreativeAssociationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignCreativeAssociationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21958,12 +16640,7 @@ func (c *CampaignCreativeAssociationsListCall) Header() http.Header { } func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21981,18 +16658,15 @@ func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Resp "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.list" call. -// Exactly one of *CampaignCreativeAssociationsListResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignCreativeAssociationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22000,17 +16674,17 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignCreativeAssociationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22023,68 +16697,6 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Retrieves the list of creative IDs associated with the specified campaign. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "httpMethod": "GET", - // "id": "dfareporting.campaignCreativeAssociations.list", - // "parameterOrder": [ - // "profileId", - // "campaignId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Campaign ID in this association.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations", - // "response": { - // "$ref": "CampaignCreativeAssociationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -22092,7 +16704,7 @@ func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func(*CampaignCreativeAssociationsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -22108,8 +16720,6 @@ func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func } } -// method id "dfareporting.campaigns.get": - type CampaignsGetCall struct { s *Service profileId int64 @@ -22132,33 +16742,29 @@ func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsGetCall) Fields(s ...googleapi.Field) *CampaignsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsGetCall) IfNoneMatch(entityTag string) *CampaignsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsGetCall) Context(ctx context.Context) *CampaignsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22167,12 +16773,7 @@ func (c *CampaignsGetCall) Header() http.Header { } func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22190,16 +16791,14 @@ func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.get" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22207,17 +16806,17 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -22230,43 +16829,7 @@ func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { return nil, err } return ret, nil - // { - // "description": "Gets one campaign by ID.", - // "flatPath": "userprofiles/{profileId}/campaigns/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns/{id}", - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.insert": +} type CampaignsInsertCall struct { s *Service @@ -22288,23 +16851,21 @@ func (r *CampaignsService) Insert(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsInsertCall) Fields(s ...googleapi.Field) *CampaignsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsInsertCall) Context(ctx context.Context) *CampaignsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22313,18 +16874,12 @@ func (c *CampaignsInsertCall) Header() http.Header { } func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -22337,16 +16892,14 @@ func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.insert" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22354,17 +16907,17 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -22377,38 +16930,7 @@ func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Inserts a new campaign.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "POST", - // "id": "dfareporting.campaigns.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.list": +} type CampaignsListCall struct { s *Service @@ -22419,8 +16941,8 @@ type CampaignsListCall struct { header_ http.Header } -// List: Retrieves a list of campaigns, possibly filtered. This method -// supports paging. +// List: Retrieves a list of campaigns, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. func (r *CampaignsService) List(profileId int64) *CampaignsListCall { @@ -22429,9 +16951,8 @@ func (r *CampaignsService) List(profileId int64) *CampaignsListCall { return c } -// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": -// Select only campaigns whose advertisers belong to these advertiser -// groups. +// AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select +// only campaigns whose advertisers belong to these advertiser groups. func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *CampaignsListCall { var advertiserGroupIds_ []string for _, v := range advertiserGroupIds { @@ -22441,8 +16962,8 @@ func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds ...int64) *Cam return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only campaigns that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// campaigns that belong to these advertisers. func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -22453,23 +16974,23 @@ func (c *CampaignsListCall) AdvertiserIds(advertiserIds ...int64) *CampaignsList } // Archived sets the optional parameter "archived": Select only archived -// campaigns. Don't set this field to select both archived and -// non-archived campaigns. +// campaigns. Don't set this field to select both archived and non-archived +// campaigns. func (c *CampaignsListCall) Archived(archived bool) *CampaignsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } // AtLeastOneOptimizationActivity sets the optional parameter -// "atLeastOneOptimizationActivity": Select only campaigns that have at -// least one optimization activity. +// "atLeastOneOptimizationActivity": Select only campaigns that have at least +// one optimization activity. func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivity bool) *CampaignsListCall { c.urlParams_.Set("atLeastOneOptimizationActivity", fmt.Sprint(atLeastOneOptimizationActivity)) return c } -// ExcludedIds sets the optional parameter "excludedIds": Exclude -// campaigns with these IDs. +// ExcludedIds sets the optional parameter "excludedIds": Exclude campaigns +// with these IDs. func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall { var excludedIds_ []string for _, v := range excludedIds { @@ -22479,8 +17000,7 @@ func (c *CampaignsListCall) ExcludedIds(excludedIds ...int64) *CampaignsListCall return c } -// Ids sets the optional parameter "ids": Select only campaigns with -// these IDs. +// Ids sets the optional parameter "ids": Select only campaigns with these IDs. func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { var ids_ []string for _, v := range ids { @@ -22490,16 +17010,15 @@ func (c *CampaignsListCall) Ids(ids ...int64) *CampaignsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CampaignsListCall) MaxResults(maxResults int64) *CampaignsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OverriddenEventTagId sets the optional parameter -// "overriddenEventTagId": Select only campaigns that have overridden -// this event tag ID. +// OverriddenEventTagId sets the optional parameter "overriddenEventTagId": +// Select only campaigns that have overridden this event tag ID. func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagId int64) *CampaignsListCall { c.urlParams_.Set("overriddenEventTagId", fmt.Sprint(overriddenEventTagId)) return c @@ -22512,21 +17031,20 @@ func (c *CampaignsListCall) PageToken(pageToken string) *CampaignsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for campaigns by name or ID. Wildcards (*) are allowed. For -// example, "campaign*2015" will return campaigns with names like -// "campaign June 2015", "campaign April 2015", or simply "campaign -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "campaign" will match campaigns with name "my campaign", "campaign -// 2015", or simply "campaign". +// SearchString sets the optional parameter "searchString": Allows searching +// for campaigns by name or ID. Wildcards (*) are allowed. For example, +// "campaign*2015" will return campaigns with names like "campaign June 2015", +// "campaign April 2015", or simply "campaign 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "campaign" will match campaigns with name "my +// campaign", "campaign 2015", or simply "campaign". func (c *CampaignsListCall) SearchString(searchString string) *CampaignsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -22537,8 +17055,7 @@ func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -22557,33 +17074,29 @@ func (c *CampaignsListCall) SubaccountId(subaccountId int64) *CampaignsListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsListCall) Fields(s ...googleapi.Field) *CampaignsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CampaignsListCall) IfNoneMatch(entityTag string) *CampaignsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsListCall) Context(ctx context.Context) *CampaignsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22592,12 +17105,7 @@ func (c *CampaignsListCall) Header() http.Header { } func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22614,16 +17122,15 @@ func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.list" call. -// Exactly one of *CampaignsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CampaignsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CampaignsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22631,17 +17138,17 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CampaignsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -22654,129 +17161,6 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of campaigns, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "GET", - // "id": "dfareporting.campaigns.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserGroupIds": { - // "description": "Select only campaigns whose advertisers belong to these advertiser groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "advertiserIds": { - // "description": "Select only campaigns that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.", - // "location": "query", - // "type": "boolean" - // }, - // "atLeastOneOptimizationActivity": { - // "description": "Select only campaigns that have at least one optimization activity.", - // "location": "query", - // "type": "boolean" - // }, - // "excludedIds": { - // "description": "Exclude campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only campaigns with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "overriddenEventTagId": { - // "description": "Select only campaigns that have overridden this event tag ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, \"campaign*2015\" will return campaigns with names like \"campaign June 2015\", \"campaign April 2015\", or simply \"campaign 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"campaign\" will match campaigns with name \"my campaign\", \"campaign 2015\", or simply \"campaign\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only campaigns that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "response": { - // "$ref": "CampaignsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -22784,7 +17168,7 @@ func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResp // The provided context supersedes any context provided to the Context method. func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -22800,8 +17184,6 @@ func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResp } } -// method id "dfareporting.campaigns.patch": - type CampaignsPatchCall struct { s *Service profileId int64 @@ -22811,8 +17193,7 @@ type CampaignsPatchCall struct { header_ http.Header } -// Patch: Updates an existing campaign. This method supports patch -// semantics. +// Patch: Updates an existing campaign. This method supports patch semantics. // // - id: Campaign ID. // - profileId: User profile ID associated with this request. @@ -22825,23 +17206,21 @@ func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsPatchCall) Fields(s ...googleapi.Field) *CampaignsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsPatchCall) Context(ctx context.Context) *CampaignsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22850,18 +17229,12 @@ func (c *CampaignsPatchCall) Header() http.Header { } func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -22874,16 +17247,14 @@ func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.patch" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22891,17 +17262,17 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -22914,46 +17285,7 @@ func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "PATCH", - // "id": "dfareporting.campaigns.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Campaign ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.campaigns.update": +} type CampaignsUpdateCall struct { s *Service @@ -22975,23 +17307,21 @@ func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *Campaign } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CampaignsUpdateCall) Fields(s ...googleapi.Field) *CampaignsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CampaignsUpdateCall) Context(ctx context.Context) *CampaignsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CampaignsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23000,18 +17330,12 @@ func (c *CampaignsUpdateCall) Header() http.Header { } func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/campaigns") @@ -23024,16 +17348,14 @@ func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.update" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23041,17 +17363,17 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Campaign{ ServerResponse: googleapi.ServerResponse{ @@ -23064,38 +17386,7 @@ func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign.", - // "flatPath": "userprofiles/{profileId}/campaigns", - // "httpMethod": "PUT", - // "id": "dfareporting.campaigns.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.get": +} type ChangeLogsGetCall struct { s *Service @@ -23119,33 +17410,29 @@ func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsGetCall) Fields(s ...googleapi.Field) *ChangeLogsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsGetCall) IfNoneMatch(entityTag string) *ChangeLogsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsGetCall) Context(ctx context.Context) *ChangeLogsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23154,12 +17441,7 @@ func (c *ChangeLogsGetCall) Header() http.Header { } func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23177,16 +17459,14 @@ func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.get" call. -// Exactly one of *ChangeLog or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ChangeLog.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLog.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23194,17 +17474,17 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLog{ ServerResponse: googleapi.ServerResponse{ @@ -23217,43 +17497,7 @@ func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error) return nil, err } return ret, nil - // { - // "description": "Gets one change log by ID.", - // "flatPath": "userprofiles/{profileId}/changeLogs/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Change log ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs/{id}", - // "response": { - // "$ref": "ChangeLog" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.changeLogs.list": +} type ChangeLogsListCall struct { s *Service @@ -23273,8 +17517,8 @@ func (r *ChangeLogsService) List(profileId int64) *ChangeLogsListCall { return c } -// Action sets the optional parameter "action": Select only change logs -// with the specified action. +// Action sets the optional parameter "action": Select only change logs with +// the specified action. // // Possible values: // @@ -23300,8 +17544,8 @@ func (c *ChangeLogsListCall) Action(action string) *ChangeLogsListCall { return c } -// Ids sets the optional parameter "ids": Select only change logs with -// these IDs. +// Ids sets the optional parameter "ids": Select only change logs with these +// IDs. func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { var ids_ []string for _, v := range ids { @@ -23311,41 +17555,39 @@ func (c *ChangeLogsListCall) Ids(ids ...int64) *ChangeLogsListCall { return c } -// MaxChangeTime sets the optional parameter "maxChangeTime": Select -// only change logs whose change time is before the specified -// maxChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MaxChangeTime sets the optional parameter "maxChangeTime": Select only +// change logs whose change time is before the specified maxChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("maxChangeTime", maxChangeTime) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ChangeLogsListCall) MaxResults(maxResults int64) *ChangeLogsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// MinChangeTime sets the optional parameter "minChangeTime": Select -// only change logs whose change time is after the specified -// minChangeTime.The time should be formatted as an RFC3339 date/time -// string. For example, for 10:54 PM on July 18th, 2015, in the -// America/New York time zone, the format is -// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, -// the letter T, the hour (24-hour clock system), minute, second, and -// then the time zone offset. +// MinChangeTime sets the optional parameter "minChangeTime": Select only +// change logs whose change time is after the specified minChangeTime.The time +// should be formatted as an RFC3339 date/time string. For example, for 10:54 +// PM on July 18th, 2015, in the America/New York time zone, the format is +// "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the +// letter T, the hour (24-hour clock system), minute, second, and then the time +// zone offset. func (c *ChangeLogsListCall) MinChangeTime(minChangeTime string) *ChangeLogsListCall { c.urlParams_.Set("minChangeTime", minChangeTime) return c } -// ObjectIds sets the optional parameter "objectIds": Select only change -// logs with these object IDs. +// ObjectIds sets the optional parameter "objectIds": Select only change logs +// with these object IDs. func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { var objectIds_ []string for _, v := range objectIds { @@ -23355,8 +17597,8 @@ func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { return c } -// ObjectType sets the optional parameter "objectType": Select only -// change logs with the specified object type. +// ObjectType sets the optional parameter "objectType": Select only change logs +// with the specified object type. // // Possible values: // @@ -23412,16 +17654,15 @@ func (c *ChangeLogsListCall) PageToken(pageToken string) *ChangeLogsListCall { return c } -// SearchString sets the optional parameter "searchString": Select only -// change logs whose object ID, user name, old or new values match the -// search string. +// SearchString sets the optional parameter "searchString": Select only change +// logs whose object ID, user name, old or new values match the search string. func (c *ChangeLogsListCall) SearchString(searchString string) *ChangeLogsListCall { c.urlParams_.Set("searchString", searchString) return c } -// UserProfileIds sets the optional parameter "userProfileIds": Select -// only change logs with these user profile IDs. +// UserProfileIds sets the optional parameter "userProfileIds": Select only +// change logs with these user profile IDs. func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogsListCall { var userProfileIds_ []string for _, v := range userProfileIds { @@ -23432,33 +17673,29 @@ func (c *ChangeLogsListCall) UserProfileIds(userProfileIds ...int64) *ChangeLogs } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangeLogsListCall) Fields(s ...googleapi.Field) *ChangeLogsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangeLogsListCall) IfNoneMatch(entityTag string) *ChangeLogsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangeLogsListCall) Context(ctx context.Context) *ChangeLogsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangeLogsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23467,12 +17704,7 @@ func (c *ChangeLogsListCall) Header() http.Header { } func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23489,16 +17721,15 @@ func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.list" call. -// Exactly one of *ChangeLogsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ChangeLogsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangeLogsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23506,17 +17737,17 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangeLogsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23529,214 +17760,6 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of change logs. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/changeLogs", - // "httpMethod": "GET", - // "id": "dfareporting.changeLogs.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "action": { - // "description": "Select only change logs with the specified action.", - // "enum": [ - // "ACTION_CREATE", - // "ACTION_UPDATE", - // "ACTION_DELETE", - // "ACTION_ENABLE", - // "ACTION_DISABLE", - // "ACTION_ADD", - // "ACTION_REMOVE", - // "ACTION_MARK_AS_DEFAULT", - // "ACTION_ASSOCIATE", - // "ACTION_ASSIGN", - // "ACTION_UNASSIGN", - // "ACTION_SEND", - // "ACTION_LINK", - // "ACTION_UNLINK", - // "ACTION_PUSH", - // "ACTION_EMAIL_TAGS", - // "ACTION_SHARE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only change logs with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxChangeTime": { - // "description": "Select only change logs whose change time is before the specified maxChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "minChangeTime": { - // "description": "Select only change logs whose change time is after the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is \"2015-07-18T22:54:00-04:00\". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.", - // "location": "query", - // "type": "string" - // }, - // "objectIds": { - // "description": "Select only change logs with these object IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Select only change logs with the specified object type.", - // "enum": [ - // "OBJECT_ADVERTISER", - // "OBJECT_FLOODLIGHT_CONFIGURATION", - // "OBJECT_AD", - // "OBJECT_FLOODLIGHT_ACTVITY", - // "OBJECT_CAMPAIGN", - // "OBJECT_FLOODLIGHT_ACTIVITY_GROUP", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT", - // "OBJECT_DFA_SITE", - // "OBJECT_USER_ROLE", - // "OBJECT_USER_PROFILE", - // "OBJECT_ADVERTISER_GROUP", - // "OBJECT_ACCOUNT", - // "OBJECT_SUBACCOUNT", - // "OBJECT_RICHMEDIA_CREATIVE", - // "OBJECT_INSTREAM_CREATIVE", - // "OBJECT_MEDIA_ORDER", - // "OBJECT_CONTENT_CATEGORY", - // "OBJECT_PLACEMENT_STRATEGY", - // "OBJECT_SD_SITE", - // "OBJECT_SIZE", - // "OBJECT_CREATIVE_GROUP", - // "OBJECT_CREATIVE_ASSET", - // "OBJECT_USER_PROFILE_FILTER", - // "OBJECT_LANDING_PAGE", - // "OBJECT_CREATIVE_FIELD", - // "OBJECT_REMARKETING_LIST", - // "OBJECT_PROVIDED_LIST_CLIENT", - // "OBJECT_EVENT_TAG", - // "OBJECT_CREATIVE_BUNDLE", - // "OBJECT_BILLING_ACCOUNT_GROUP", - // "OBJECT_BILLING_FEATURE", - // "OBJECT_RATE_CARD", - // "OBJECT_ACCOUNT_BILLING_FEATURE", - // "OBJECT_BILLING_MINIMUM_FEE", - // "OBJECT_BILLING_PROFILE", - // "OBJECT_PLAYSTORE_LINK", - // "OBJECT_TARGETING_TEMPLATE", - // "OBJECT_SEARCH_LIFT_STUDY", - // "OBJECT_FLOODLIGHT_DV360_LINK" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Select only change logs whose object ID, user name, old or new values match the search string.", - // "location": "query", - // "type": "string" - // }, - // "userProfileIds": { - // "description": "Select only change logs with these user profile IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/changeLogs", - // "response": { - // "$ref": "ChangeLogsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -23744,7 +17767,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // The provided context supersedes any context provided to the Context method. func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -23760,8 +17783,6 @@ func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListRe } } -// method id "dfareporting.cities.list": - type CitiesListCall struct { s *Service profileId int64 @@ -23780,8 +17801,8 @@ func (r *CitiesService) List(profileId int64) *CitiesListCall { return c } -// CountryDartIds sets the optional parameter "countryDartIds": Select -// only cities from these countries. +// CountryDartIds sets the optional parameter "countryDartIds": Select only +// cities from these countries. func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall { var countryDartIds_ []string for _, v := range countryDartIds { @@ -23791,8 +17812,8 @@ func (c *CitiesListCall) CountryDartIds(countryDartIds ...int64) *CitiesListCall return c } -// DartIds sets the optional parameter "dartIds": Select only cities -// with these DART IDs. +// DartIds sets the optional parameter "dartIds": Select only cities with these +// DART IDs. func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { var dartIds_ []string for _, v := range dartIds { @@ -23802,15 +17823,15 @@ func (c *CitiesListCall) DartIds(dartIds ...int64) *CitiesListCall { return c } -// NamePrefix sets the optional parameter "namePrefix": Select only -// cities with names starting with this prefix. +// NamePrefix sets the optional parameter "namePrefix": Select only cities with +// names starting with this prefix. func (c *CitiesListCall) NamePrefix(namePrefix string) *CitiesListCall { c.urlParams_.Set("namePrefix", namePrefix) return c } -// RegionDartIds sets the optional parameter "regionDartIds": Select -// only cities from these regions. +// RegionDartIds sets the optional parameter "regionDartIds": Select only +// cities from these regions. func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { var regionDartIds_ []string for _, v := range regionDartIds { @@ -23821,33 +17842,29 @@ func (c *CitiesListCall) RegionDartIds(regionDartIds ...int64) *CitiesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CitiesListCall) Fields(s ...googleapi.Field) *CitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CitiesListCall) IfNoneMatch(entityTag string) *CitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CitiesListCall) Context(ctx context.Context) *CitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23856,12 +17873,7 @@ func (c *CitiesListCall) Header() http.Header { } func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23878,16 +17890,15 @@ func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.cities.list" call. -// Exactly one of *CitiesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CitiesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CitiesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23895,17 +17906,17 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -23918,61 +17929,7 @@ func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of cities, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/cities", - // "httpMethod": "GET", - // "id": "dfareporting.cities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "countryDartIds": { - // "description": "Select only cities from these countries.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "dartIds": { - // "description": "Select only cities with these DART IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "namePrefix": { - // "description": "Select only cities with names starting with this prefix.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "regionDartIds": { - // "description": "Select only cities from these regions.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/cities", - // "response": { - // "$ref": "CitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.get": +} type ConnectionTypesGetCall struct { s *Service @@ -23996,33 +17953,29 @@ func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypes } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesGetCall) Fields(s ...googleapi.Field) *ConnectionTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesGetCall) IfNoneMatch(entityTag string) *ConnectionTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesGetCall) Context(ctx context.Context) *ConnectionTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24031,12 +17984,7 @@ func (c *ConnectionTypesGetCall) Header() http.Header { } func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24054,16 +18002,14 @@ func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.get" call. -// Exactly one of *ConnectionType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ConnectionType.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConnectionType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24071,17 +18017,17 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionType{ ServerResponse: googleapi.ServerResponse{ @@ -24094,43 +18040,7 @@ func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionTy return nil, err } return ret, nil - // { - // "description": "Gets one connection type by ID.", - // "flatPath": "userprofiles/{profileId}/connectionTypes/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Connection type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes/{id}", - // "response": { - // "$ref": "ConnectionType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.connectionTypes.list": +} type ConnectionTypesListCall struct { s *Service @@ -24151,33 +18061,29 @@ func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectionTypesListCall) Fields(s ...googleapi.Field) *ConnectionTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectionTypesListCall) IfNoneMatch(entityTag string) *ConnectionTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectionTypesListCall) Context(ctx context.Context) *ConnectionTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectionTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24186,12 +18092,7 @@ func (c *ConnectionTypesListCall) Header() http.Header { } func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24208,16 +18109,15 @@ func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.list" call. -// Exactly one of *ConnectionTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ConnectionTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ConnectionTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24225,17 +18125,17 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConnectionTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24248,35 +18148,7 @@ func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionT return nil, err } return ret, nil - // { - // "description": "Retrieves a list of connection types.", - // "flatPath": "userprofiles/{profileId}/connectionTypes", - // "httpMethod": "GET", - // "id": "dfareporting.connectionTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/connectionTypes", - // "response": { - // "$ref": "ConnectionTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.delete": +} type ContentCategoriesDeleteCall struct { s *Service @@ -24299,23 +18171,21 @@ func (r *ContentCategoriesService) Delete(profileId int64, id int64) *ContentCat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesDeleteCall) Fields(s ...googleapi.Field) *ContentCategoriesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesDeleteCall) Context(ctx context.Context) *ContentCategoriesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24324,12 +18194,7 @@ func (c *ContentCategoriesDeleteCall) Header() http.Header { } func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -24344,7 +18209,7 @@ func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.delete" call. @@ -24356,43 +18221,10 @@ func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.contentCategories.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.get": +} type ContentCategoriesGetCall struct { s *Service @@ -24416,33 +18248,29 @@ func (r *ContentCategoriesService) Get(profileId int64, id int64) *ContentCatego } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesGetCall) Fields(s ...googleapi.Field) *ContentCategoriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesGetCall) IfNoneMatch(entityTag string) *ContentCategoriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesGetCall) Context(ctx context.Context) *ContentCategoriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24451,12 +18279,7 @@ func (c *ContentCategoriesGetCall) Header() http.Header { } func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24474,16 +18297,15 @@ func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.get" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24491,17 +18313,17 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -24514,43 +18336,7 @@ func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*ContentCat return nil, err } return ret, nil - // { - // "description": "Gets one content category by ID.", - // "flatPath": "userprofiles/{profileId}/contentCategories/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Content category ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories/{id}", - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.insert": +} type ContentCategoriesInsertCall struct { s *Service @@ -24572,23 +18358,21 @@ func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesInsertCall) Fields(s ...googleapi.Field) *ContentCategoriesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesInsertCall) Context(ctx context.Context) *ContentCategoriesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24597,18 +18381,12 @@ func (c *ContentCategoriesInsertCall) Header() http.Header { } func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -24621,16 +18399,15 @@ func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.insert" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24638,17 +18415,17 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -24661,38 +18438,7 @@ func (c *ContentCategoriesInsertCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Inserts a new content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "POST", - // "id": "dfareporting.contentCategories.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.list": +} type ContentCategoriesListCall struct { s *Service @@ -24703,8 +18449,8 @@ type ContentCategoriesListCall struct { header_ http.Header } -// List: Retrieves a list of content categories, possibly filtered. This -// method supports paging. +// List: Retrieves a list of content categories, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListCall { @@ -24713,8 +18459,8 @@ func (r *ContentCategoriesService) List(profileId int64) *ContentCategoriesListC return c } -// Ids sets the optional parameter "ids": Select only content categories -// with these IDs. +// Ids sets the optional parameter "ids": Select only content categories with +// these IDs. func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall { var ids_ []string for _, v := range ids { @@ -24724,8 +18470,8 @@ func (c *ContentCategoriesListCall) Ids(ids ...int64) *ContentCategoriesListCall return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ContentCategoriesListCall) MaxResults(maxResults int64) *ContentCategoriesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -24738,22 +18484,21 @@ func (c *ContentCategoriesListCall) PageToken(pageToken string) *ContentCategori return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "contentcategory*2015" will return objects with names like -// "contentcategory June 2015", "contentcategory April 2015", or simply -// "contentcategory 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "contentcategory" will match objects with -// name "my contentcategory", "contentcategory 2015", or simply -// "contentcategory". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "contentcategory*2015" will return objects with names like "contentcategory +// June 2015", "contentcategory April 2015", or simply "contentcategory 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "contentcategory" will +// match objects with name "my contentcategory", "contentcategory 2015", or +// simply "contentcategory". func (c *ContentCategoriesListCall) SearchString(searchString string) *ContentCategoriesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -24764,8 +18509,7 @@ func (c *ContentCategoriesListCall) SortField(sortField string) *ContentCategori return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -24777,33 +18521,29 @@ func (c *ContentCategoriesListCall) SortOrder(sortOrder string) *ContentCategori } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesListCall) Fields(s ...googleapi.Field) *ContentCategoriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContentCategoriesListCall) IfNoneMatch(entityTag string) *ContentCategoriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesListCall) Context(ctx context.Context) *ContentCategoriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24812,12 +18552,7 @@ func (c *ContentCategoriesListCall) Header() http.Header { } func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24834,16 +18569,15 @@ func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.list" call. -// Exactly one of *ContentCategoriesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ContentCategoriesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategoriesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCategoriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24851,17 +18585,17 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategoriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -24874,86 +18608,6 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa return nil, err } return ret, nil - // { - // "description": "Retrieves a list of content categories, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "GET", - // "id": "dfareporting.contentCategories.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only content categories with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"contentcategory*2015\" will return objects with names like \"contentcategory June 2015\", \"contentcategory April 2015\", or simply \"contentcategory 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"contentcategory\" will match objects with name \"my contentcategory\", \"contentcategory 2015\", or simply \"contentcategory\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "response": { - // "$ref": "ContentCategoriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -24961,7 +18615,7 @@ func (c *ContentCategoriesListCall) Do(opts ...googleapi.CallOption) (*ContentCa // The provided context supersedes any context provided to the Context method. func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCategoriesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -24977,8 +18631,6 @@ func (c *ContentCategoriesListCall) Pages(ctx context.Context, f func(*ContentCa } } -// method id "dfareporting.contentCategories.patch": - type ContentCategoriesPatchCall struct { s *Service profileId int64 @@ -24988,8 +18640,8 @@ type ContentCategoriesPatchCall struct { header_ http.Header } -// Patch: Updates an existing content category. This method supports -// patch semantics. +// Patch: Updates an existing content category. This method supports patch +// semantics. // // - id: ContentCategory ID. // - profileId: User profile ID associated with this request. @@ -25002,23 +18654,21 @@ func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcateg } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesPatchCall) Fields(s ...googleapi.Field) *ContentCategoriesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesPatchCall) Context(ctx context.Context) *ContentCategoriesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25027,18 +18677,12 @@ func (c *ContentCategoriesPatchCall) Header() http.Header { } func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -25051,16 +18695,15 @@ func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.patch" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25068,17 +18711,17 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -25091,46 +18734,7 @@ func (c *ContentCategoriesPatchCall) Do(opts ...googleapi.CallOption) (*ContentC return nil, err } return ret, nil - // { - // "description": "Updates an existing content category. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "PATCH", - // "id": "dfareporting.contentCategories.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "ContentCategory ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.contentCategories.update": +} type ContentCategoriesUpdateCall struct { s *Service @@ -25152,23 +18756,21 @@ func (r *ContentCategoriesService) Update(profileId int64, contentcategory *Cont } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContentCategoriesUpdateCall) Fields(s ...googleapi.Field) *ContentCategoriesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContentCategoriesUpdateCall) Context(ctx context.Context) *ContentCategoriesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContentCategoriesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25177,18 +18779,12 @@ func (c *ContentCategoriesUpdateCall) Header() http.Header { } func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contentcategory) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/contentCategories") @@ -25201,16 +18797,15 @@ func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.update" call. -// Exactly one of *ContentCategory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ContentCategory.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContentCategory.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*ContentCategory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25218,17 +18813,17 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContentCategory{ ServerResponse: googleapi.ServerResponse{ @@ -25241,38 +18836,7 @@ func (c *ContentCategoriesUpdateCall) Do(opts ...googleapi.CallOption) (*Content return nil, err } return ret, nil - // { - // "description": "Updates an existing content category.", - // "flatPath": "userprofiles/{profileId}/contentCategories", - // "httpMethod": "PUT", - // "id": "dfareporting.contentCategories.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/contentCategories", - // "request": { - // "$ref": "ContentCategory" - // }, - // "response": { - // "$ref": "ContentCategory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.conversions.batchinsert": +} type ConversionsBatchinsertCall struct { s *Service @@ -25294,23 +18858,21 @@ func (r *ConversionsService) Batchinsert(profileId int64, conversionsbatchinsert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchinsertCall) Fields(s ...googleapi.Field) *ConversionsBatchinsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchinsertCall) Context(ctx context.Context) *ConversionsBatchinsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchinsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25319,18 +18881,12 @@ func (c *ConversionsBatchinsertCall) Header() http.Header { } func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchinsertrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchinsert") @@ -25343,16 +18899,15 @@ func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchinsert" call. -// Exactly one of *ConversionsBatchInsertResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchInsertResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchInsertResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchInsertResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25360,17 +18915,17 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchInsertResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25383,38 +18938,7 @@ func (c *ConversionsBatchinsertCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Inserts conversions.", - // "flatPath": "userprofiles/{profileId}/conversions/batchinsert", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchinsert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchinsert", - // "request": { - // "$ref": "ConversionsBatchInsertRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchInsertResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.conversions.batchupdate": +} type ConversionsBatchupdateCall struct { s *Service @@ -25436,23 +18960,21 @@ func (r *ConversionsService) Batchupdate(profileId int64, conversionsbatchupdate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConversionsBatchupdateCall) Fields(s ...googleapi.Field) *ConversionsBatchupdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConversionsBatchupdateCall) Context(ctx context.Context) *ConversionsBatchupdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConversionsBatchupdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25461,18 +18983,12 @@ func (c *ConversionsBatchupdateCall) Header() http.Header { } func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsbatchupdaterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/conversions/batchupdate") @@ -25485,16 +19001,15 @@ func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchupdate" call. -// Exactly one of *ConversionsBatchUpdateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ConversionsBatchUpdateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ConversionsBatchUpdateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*ConversionsBatchUpdateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25502,17 +19017,17 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ConversionsBatchUpdateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25525,38 +19040,7 @@ func (c *ConversionsBatchupdateCall) Do(opts ...googleapi.CallOption) (*Conversi return nil, err } return ret, nil - // { - // "description": "Updates existing conversions.", - // "flatPath": "userprofiles/{profileId}/conversions/batchupdate", - // "httpMethod": "POST", - // "id": "dfareporting.conversions.batchupdate", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/conversions/batchupdate", - // "request": { - // "$ref": "ConversionsBatchUpdateRequest" - // }, - // "response": { - // "$ref": "ConversionsBatchUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.countries.get": +} type CountriesGetCall struct { s *Service @@ -25580,33 +19064,29 @@ func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesGetCall) Fields(s ...googleapi.Field) *CountriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesGetCall) IfNoneMatch(entityTag string) *CountriesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesGetCall) Context(ctx context.Context) *CountriesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25615,12 +19095,7 @@ func (c *CountriesGetCall) Header() http.Header { } func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25638,16 +19113,14 @@ func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.get" call. -// Exactly one of *Country or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Country.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Country.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25655,17 +19128,17 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Country{ ServerResponse: googleapi.ServerResponse{ @@ -25678,43 +19151,7 @@ func (c *CountriesGetCall) Do(opts ...googleapi.CallOption) (*Country, error) { return nil, err } return ret, nil - // { - // "description": "Gets one country by ID.", - // "flatPath": "userprofiles/{profileId}/countries/{dartId}", - // "httpMethod": "GET", - // "id": "dfareporting.countries.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Country DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries/{dartId}", - // "response": { - // "$ref": "Country" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.countries.list": +} type CountriesListCall struct { s *Service @@ -25735,33 +19172,29 @@ func (r *CountriesService) List(profileId int64) *CountriesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CountriesListCall) Fields(s ...googleapi.Field) *CountriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CountriesListCall) IfNoneMatch(entityTag string) *CountriesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CountriesListCall) Context(ctx context.Context) *CountriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CountriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25770,12 +19203,7 @@ func (c *CountriesListCall) Header() http.Header { } func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25792,16 +19220,15 @@ func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.list" call. -// Exactly one of *CountriesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CountriesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CountriesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25809,17 +19236,17 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CountriesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -25832,35 +19259,7 @@ func (c *CountriesListCall) Do(opts ...googleapi.CallOption) (*CountriesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of countries.", - // "flatPath": "userprofiles/{profileId}/countries", - // "httpMethod": "GET", - // "id": "dfareporting.countries.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/countries", - // "response": { - // "$ref": "CountriesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeAssets.insert": +} type CreativeAssetsInsertCall struct { s *Service @@ -25875,9 +19274,8 @@ type CreativeAssetsInsertCall struct { // Insert: Inserts a new creative asset. // -// - advertiserId: Advertiser ID of this creative. This is a required -// field. -// - profileId: User profile ID associated with this request. +// - advertiserId: Advertiser ID of this creative. This is a required field. +// - profileId: User profile ID associated with this request. func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall { c := &CreativeAssetsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -25886,54 +19284,51 @@ func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, crea return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeAssetsInsertCall) Fields(s ...googleapi.Field) *CreativeAssetsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsInsertCall { @@ -25941,8 +19336,8 @@ func (c *CreativeAssetsInsertCall) Context(ctx context.Context) *CreativeAssetsI return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeAssetsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25951,18 +19346,12 @@ func (c *CreativeAssetsInsertCall) Header() http.Header { } func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativeassetmetadata) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets") @@ -25987,16 +19376,15 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeAssets.insert" call. -// Exactly one of *CreativeAssetMetadata or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeAssetMetadata.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeAssetMetadata.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26004,17 +19392,17 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -26030,7 +19418,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &CreativeAssetMetadata{ @@ -26044,59 +19432,7 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs return nil, err } return ret, nil - // { - // "description": "Inserts a new creative asset.", - // "flatPath": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - // "httpMethod": "POST", - // "id": "dfareporting.creativeAssets.insert", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "maxSize": "1073741824", - // "protocols": { - // "simple": { - // "multipart": true, - // "path": "/upload/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets" - // } - // } - // }, - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Advertiser ID of this creative. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets", - // "request": { - // "$ref": "CreativeAssetMetadata" - // }, - // "response": { - // "$ref": "CreativeAssetMetadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "dfareporting.creativeFieldValues.delete": +} type CreativeFieldValuesDeleteCall struct { s *Service @@ -26122,23 +19458,21 @@ func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldValuesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesDeleteCall) Context(ctx context.Context) *CreativeFieldValuesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26147,12 +19481,7 @@ func (c *CreativeFieldValuesDeleteCall) Header() http.Header { } func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -26168,7 +19497,7 @@ func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, e "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.delete" call. @@ -26180,51 +19509,10 @@ func (c *CreativeFieldValuesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFieldValues.delete", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.get": +} type CreativeFieldValuesGetCall struct { s *Service @@ -26251,33 +19539,29 @@ func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesGetCall) Fields(s ...googleapi.Field) *CreativeFieldValuesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesGetCall) IfNoneMatch(entityTag string) *CreativeFieldValuesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesGetCall) Context(ctx context.Context) *CreativeFieldValuesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26286,12 +19570,7 @@ func (c *CreativeFieldValuesGetCall) Header() http.Header { } func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26310,16 +19589,15 @@ func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, erro "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.get" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26327,17 +19605,17 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -26350,51 +19628,7 @@ func (c *CreativeFieldValuesGetCall) Do(opts ...googleapi.CallOption) (*Creative return nil, err } return ret, nil - // { - // "description": "Gets one creative field value by ID.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.get", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "Creative Field Value ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}", - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.insert": +} type CreativeFieldValuesInsertCall struct { s *Service @@ -26419,23 +19653,21 @@ func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesInsertCall) Fields(s ...googleapi.Field) *CreativeFieldValuesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesInsertCall) Context(ctx context.Context) *CreativeFieldValuesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26444,18 +19676,12 @@ func (c *CreativeFieldValuesInsertCall) Header() http.Header { } func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -26469,16 +19695,15 @@ func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.insert" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26486,17 +19711,17 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -26509,46 +19734,7 @@ func (c *CreativeFieldValuesInsertCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFieldValues.insert", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.list": +} type CreativeFieldValuesListCall struct { s *Service @@ -26560,8 +19746,8 @@ type CreativeFieldValuesListCall struct { header_ http.Header } -// List: Retrieves a list of creative field values, possibly filtered. -// This method supports paging. +// List: Retrieves a list of creative field values, possibly filtered. This +// method supports paging. // // - creativeFieldId: Creative field ID for this creative field value. // - profileId: User profile ID associated with this request. @@ -26572,8 +19758,8 @@ func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64 return c } -// Ids sets the optional parameter "ids": Select only creative field -// values with these IDs. +// Ids sets the optional parameter "ids": Select only creative field values +// with these IDs. func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesListCall { var ids_ []string for _, v := range ids { @@ -26583,8 +19769,8 @@ func (c *CreativeFieldValuesListCall) Ids(ids ...int64) *CreativeFieldValuesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldValuesListCall) MaxResults(maxResults int64) *CreativeFieldValuesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -26597,16 +19783,16 @@ func (c *CreativeFieldValuesListCall) PageToken(pageToken string) *CreativeField return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative field values by their values. Wildcards (e.g. -// *) are not allowed. +// SearchString sets the optional parameter "searchString": Allows searching +// for creative field values by their values. Wildcards (e.g. *) are not +// allowed. func (c *CreativeFieldValuesListCall) SearchString(searchString string) *CreativeFieldValuesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -26617,8 +19803,7 @@ func (c *CreativeFieldValuesListCall) SortField(sortField string) *CreativeField return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -26630,33 +19815,29 @@ func (c *CreativeFieldValuesListCall) SortOrder(sortOrder string) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesListCall) Fields(s ...googleapi.Field) *CreativeFieldValuesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldValuesListCall) IfNoneMatch(entityTag string) *CreativeFieldValuesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesListCall) Context(ctx context.Context) *CreativeFieldValuesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26665,12 +19846,7 @@ func (c *CreativeFieldValuesListCall) Header() http.Header { } func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26688,16 +19864,15 @@ func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.list" call. -// Exactly one of *CreativeFieldValuesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *CreativeFieldValuesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValuesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValuesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26705,17 +19880,17 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValuesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -26728,94 +19903,6 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative field values, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFieldValues.list", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative field values with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative field values by their values. Wildcards (e.g. *) are not allowed.", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "VALUE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "response": { - // "$ref": "CreativeFieldValuesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -26823,7 +19910,7 @@ func (c *CreativeFieldValuesListCall) Do(opts ...googleapi.CallOption) (*Creativ // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*CreativeFieldValuesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -26839,8 +19926,6 @@ func (c *CreativeFieldValuesListCall) Pages(ctx context.Context, f func(*Creativ } } -// method id "dfareporting.creativeFieldValues.patch": - type CreativeFieldValuesPatchCall struct { s *Service profileId int64 @@ -26851,8 +19936,8 @@ type CreativeFieldValuesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative field value. This method supports -// patch semantics. +// Patch: Updates an existing creative field value. This method supports patch +// semantics. // // - creativeFieldId: CreativeField ID. // - id: CreativeFieldValue ID. @@ -26867,23 +19952,21 @@ func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesPatchCall) Fields(s ...googleapi.Field) *CreativeFieldValuesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesPatchCall) Context(ctx context.Context) *CreativeFieldValuesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26892,18 +19975,12 @@ func (c *CreativeFieldValuesPatchCall) Header() http.Header { } func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -26917,16 +19994,15 @@ func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.patch" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26934,17 +20010,17 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -26957,54 +20033,7 @@ func (c *CreativeFieldValuesPatchCall) Do(opts ...googleapi.CallOption) (*Creati return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFieldValues.patch", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId", - // "id" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "CreativeField ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "id": { - // "description": "CreativeFieldValue ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFieldValues.update": +} type CreativeFieldValuesUpdateCall struct { s *Service @@ -27029,23 +20058,21 @@ func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldValuesUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldValuesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldValuesUpdateCall) Context(ctx context.Context) *CreativeFieldValuesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldValuesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27054,18 +20081,12 @@ func (c *CreativeFieldValuesUpdateCall) Header() http.Header { } func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefieldvalue) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues") @@ -27079,16 +20100,15 @@ func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.update" call. -// Exactly one of *CreativeFieldValue or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativeFieldValue.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeFieldValue.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFieldValue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27096,17 +20116,17 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldValue{ ServerResponse: googleapi.ServerResponse{ @@ -27119,46 +20139,7 @@ func (c *CreativeFieldValuesUpdateCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field value.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFieldValues.update", - // "parameterOrder": [ - // "profileId", - // "creativeFieldId" - // ], - // "parameters": { - // "creativeFieldId": { - // "description": "Creative field ID for this creative field value.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues", - // "request": { - // "$ref": "CreativeFieldValue" - // }, - // "response": { - // "$ref": "CreativeFieldValue" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.delete": +} type CreativeFieldsDeleteCall struct { s *Service @@ -27181,23 +20162,21 @@ func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeField } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsDeleteCall) Fields(s ...googleapi.Field) *CreativeFieldsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsDeleteCall) Context(ctx context.Context) *CreativeFieldsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27206,12 +20185,7 @@ func (c *CreativeFieldsDeleteCall) Header() http.Header { } func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -27226,7 +20200,7 @@ func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.delete" call. @@ -27238,43 +20212,10 @@ func (c *CreativeFieldsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.creativeFields.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.get": +} type CreativeFieldsGetCall struct { s *Service @@ -27298,33 +20239,29 @@ func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsGetCall) Fields(s ...googleapi.Field) *CreativeFieldsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsGetCall) IfNoneMatch(entityTag string) *CreativeFieldsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsGetCall) Context(ctx context.Context) *CreativeFieldsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27333,12 +20270,7 @@ func (c *CreativeFieldsGetCall) Header() http.Header { } func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27356,16 +20288,14 @@ func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.get" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27373,17 +20303,17 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -27396,43 +20326,7 @@ func (c *CreativeFieldsGetCall) Do(opts ...googleapi.CallOption) (*CreativeField return nil, err } return ret, nil - // { - // "description": "Gets one creative field by ID.", - // "flatPath": "userprofiles/{profileId}/creativeFields/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative Field ID", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields/{id}", - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.insert": +} type CreativeFieldsInsertCall struct { s *Service @@ -27454,23 +20348,21 @@ func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsInsertCall) Fields(s ...googleapi.Field) *CreativeFieldsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsInsertCall) Context(ctx context.Context) *CreativeFieldsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27479,18 +20371,12 @@ func (c *CreativeFieldsInsertCall) Header() http.Header { } func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -27503,16 +20389,14 @@ func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.insert" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27520,17 +20404,17 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -27543,38 +20427,7 @@ func (c *CreativeFieldsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Inserts a new creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "POST", - // "id": "dfareporting.creativeFields.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.list": +} type CreativeFieldsListCall struct { s *Service @@ -27585,8 +20438,8 @@ type CreativeFieldsListCall struct { header_ http.Header } -// List: Retrieves a list of creative fields, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative fields, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall { @@ -27595,8 +20448,8 @@ func (r *CreativeFieldsService) List(profileId int64) *CreativeFieldsListCall { return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative fields that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative fields that belong to these advertisers. func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeFieldsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -27606,8 +20459,8 @@ func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// Ids sets the optional parameter "ids": Select only creative fields -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative fields with +// these IDs. func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { var ids_ []string for _, v := range ids { @@ -27617,8 +20470,8 @@ func (c *CreativeFieldsListCall) Ids(ids ...int64) *CreativeFieldsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeFieldsListCall) MaxResults(maxResults int64) *CreativeFieldsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -27631,22 +20484,21 @@ func (c *CreativeFieldsListCall) PageToken(pageToken string) *CreativeFieldsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative fields by name or ID. Wildcards (*) are -// allowed. For example, "creativefield*2015" will return creative -// fields with names like "creativefield June 2015", "creativefield -// April 2015", or simply "creativefield 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativefield" will match -// creative fields with the name "my creativefield", "creativefield -// 2015", or simply "creativefield". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative fields by name or ID. Wildcards (*) are allowed. For example, +// "creativefield*2015" will return creative fields with names like +// "creativefield June 2015", "creativefield April 2015", or simply +// "creativefield 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativefield" will match creative fields with the name "my creativefield", +// "creativefield 2015", or simply "creativefield". func (c *CreativeFieldsListCall) SearchString(searchString string) *CreativeFieldsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -27657,8 +20509,7 @@ func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -27670,33 +20521,29 @@ func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsListCall) Fields(s ...googleapi.Field) *CreativeFieldsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeFieldsListCall) IfNoneMatch(entityTag string) *CreativeFieldsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsListCall) Context(ctx context.Context) *CreativeFieldsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27705,12 +20552,7 @@ func (c *CreativeFieldsListCall) Header() http.Header { } func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27727,16 +20569,15 @@ func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.list" call. -// Exactly one of *CreativeFieldsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeFieldsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeFieldsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFieldsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27744,17 +20585,17 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeFieldsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -27767,93 +20608,6 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative fields, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "GET", - // "id": "dfareporting.creativeFields.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative fields that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creative fields with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative fields by name or ID. Wildcards (*) are allowed. For example, \"creativefield*2015\" will return creative fields with names like \"creativefield June 2015\", \"creativefield April 2015\", or simply \"creativefield 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativefield\" will match creative fields with the name \"my creativefield\", \"creativefield 2015\", or simply \"creativefield\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "response": { - // "$ref": "CreativeFieldsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -27861,7 +20615,7 @@ func (c *CreativeFieldsListCall) Do(opts ...googleapi.CallOption) (*CreativeFiel // The provided context supersedes any context provided to the Context method. func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFieldsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -27877,8 +20631,6 @@ func (c *CreativeFieldsListCall) Pages(ctx context.Context, f func(*CreativeFiel } } -// method id "dfareporting.creativeFields.patch": - type CreativeFieldsPatchCall struct { s *Service profileId int64 @@ -27902,23 +20654,21 @@ func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsPatchCall) Fields(s ...googleapi.Field) *CreativeFieldsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsPatchCall) Context(ctx context.Context) *CreativeFieldsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27927,18 +20677,12 @@ func (c *CreativeFieldsPatchCall) Header() http.Header { } func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -27951,16 +20695,14 @@ func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.patch" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27968,17 +20710,17 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -27991,46 +20733,7 @@ func (c *CreativeFieldsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeFie return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeFields.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "CreativeField ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeFields.update": +} type CreativeFieldsUpdateCall struct { s *Service @@ -28052,23 +20755,21 @@ func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeF } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeFieldsUpdateCall) Fields(s ...googleapi.Field) *CreativeFieldsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeFieldsUpdateCall) Context(ctx context.Context) *CreativeFieldsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeFieldsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28077,18 +20778,12 @@ func (c *CreativeFieldsUpdateCall) Header() http.Header { } func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativefield) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeFields") @@ -28101,16 +20796,14 @@ func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.update" call. -// Exactly one of *CreativeField or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeField.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeField.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeField, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28118,17 +20811,17 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeField{ ServerResponse: googleapi.ServerResponse{ @@ -28141,38 +20834,7 @@ func (c *CreativeFieldsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeFi return nil, err } return ret, nil - // { - // "description": "Updates an existing creative field.", - // "flatPath": "userprofiles/{profileId}/creativeFields", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeFields.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeFields", - // "request": { - // "$ref": "CreativeField" - // }, - // "response": { - // "$ref": "CreativeField" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.get": +} type CreativeGroupsGetCall struct { s *Service @@ -28196,33 +20858,29 @@ func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsGetCall) Fields(s ...googleapi.Field) *CreativeGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsGetCall) IfNoneMatch(entityTag string) *CreativeGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsGetCall) Context(ctx context.Context) *CreativeGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28231,12 +20889,7 @@ func (c *CreativeGroupsGetCall) Header() http.Header { } func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28254,16 +20907,14 @@ func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.get" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28271,17 +20922,17 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -28294,43 +20945,7 @@ func (c *CreativeGroupsGetCall) Do(opts ...googleapi.CallOption) (*CreativeGroup return nil, err } return ret, nil - // { - // "description": "Gets one creative group by ID.", - // "flatPath": "userprofiles/{profileId}/creativeGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups/{id}", - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.insert": +} type CreativeGroupsInsertCall struct { s *Service @@ -28352,23 +20967,21 @@ func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsInsertCall) Fields(s ...googleapi.Field) *CreativeGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsInsertCall) Context(ctx context.Context) *CreativeGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28377,18 +20990,12 @@ func (c *CreativeGroupsInsertCall) Header() http.Header { } func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -28401,16 +21008,14 @@ func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.insert" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28418,17 +21023,17 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -28441,38 +21046,7 @@ func (c *CreativeGroupsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Inserts a new creative group.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "POST", - // "id": "dfareporting.creativeGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.list": +} type CreativeGroupsListCall struct { s *Service @@ -28483,8 +21057,8 @@ type CreativeGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of creative groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of creative groups, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall { @@ -28493,8 +21067,8 @@ func (r *CreativeGroupsService) List(profileId int64) *CreativeGroupsListCall { return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only creative groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// creative groups that belong to these advertisers. func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *CreativeGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -28504,15 +21078,15 @@ func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Creative return c } -// GroupNumber sets the optional parameter "groupNumber": Select only -// creative groups that belong to this subgroup. +// GroupNumber sets the optional parameter "groupNumber": Select only creative +// groups that belong to this subgroup. func (c *CreativeGroupsListCall) GroupNumber(groupNumber int64) *CreativeGroupsListCall { c.urlParams_.Set("groupNumber", fmt.Sprint(groupNumber)) return c } -// Ids sets the optional parameter "ids": Select only creative groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only creative groups with +// these IDs. func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { var ids_ []string for _, v := range ids { @@ -28522,8 +21096,8 @@ func (c *CreativeGroupsListCall) Ids(ids ...int64) *CreativeGroupsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativeGroupsListCall) MaxResults(maxResults int64) *CreativeGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -28536,22 +21110,21 @@ func (c *CreativeGroupsListCall) PageToken(pageToken string) *CreativeGroupsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for creative groups by name or ID. Wildcards (*) are -// allowed. For example, "creativegroup*2015" will return creative -// groups with names like "creativegroup June 2015", "creativegroup -// April 2015", or simply "creativegroup 2015". Most of the searches -// also add wild-cards implicitly at the start and the end of the search -// string. For example, a search string of "creativegroup" will match -// creative groups with the name "my creativegroup", "creativegroup -// 2015", or simply "creativegroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for creative groups by name or ID. Wildcards (*) are allowed. For example, +// "creativegroup*2015" will return creative groups with names like +// "creativegroup June 2015", "creativegroup April 2015", or simply +// "creativegroup 2015". Most of the searches also add wild-cards implicitly at +// the start and the end of the search string. For example, a search string of +// "creativegroup" will match creative groups with the name "my creativegroup", +// "creativegroup 2015", or simply "creativegroup". func (c *CreativeGroupsListCall) SearchString(searchString string) *CreativeGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -28562,8 +21135,7 @@ func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -28575,33 +21147,29 @@ func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsListCall) Fields(s ...googleapi.Field) *CreativeGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativeGroupsListCall) IfNoneMatch(entityTag string) *CreativeGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsListCall) Context(ctx context.Context) *CreativeGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28610,12 +21178,7 @@ func (c *CreativeGroupsListCall) Header() http.Header { } func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28632,16 +21195,15 @@ func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.list" call. -// Exactly one of *CreativeGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *CreativeGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *CreativeGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28649,17 +21211,17 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -28672,101 +21234,6 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creative groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "GET", - // "id": "dfareporting.creativeGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only creative groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupNumber": { - // "description": "Select only creative groups that belong to this subgroup.", - // "format": "int32", - // "location": "query", - // "maximum": "2", - // "minimum": "1", - // "type": "integer" - // }, - // "ids": { - // "description": "Select only creative groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for creative groups by name or ID. Wildcards (*) are allowed. For example, \"creativegroup*2015\" will return creative groups with names like \"creativegroup June 2015\", \"creativegroup April 2015\", or simply \"creativegroup 2015\". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of \"creativegroup\" will match creative groups with the name \"my creativegroup\", \"creativegroup 2015\", or simply \"creativegroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "response": { - // "$ref": "CreativeGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -28774,7 +21241,7 @@ func (c *CreativeGroupsListCall) Do(opts ...googleapi.CallOption) (*CreativeGrou // The provided context supersedes any context provided to the Context method. func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -28790,8 +21257,6 @@ func (c *CreativeGroupsListCall) Pages(ctx context.Context, f func(*CreativeGrou } } -// method id "dfareporting.creativeGroups.patch": - type CreativeGroupsPatchCall struct { s *Service profileId int64 @@ -28815,23 +21280,21 @@ func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsPatchCall) Fields(s ...googleapi.Field) *CreativeGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsPatchCall) Context(ctx context.Context) *CreativeGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28840,18 +21303,12 @@ func (c *CreativeGroupsPatchCall) Header() http.Header { } func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -28864,16 +21321,14 @@ func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.patch" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28881,17 +21336,17 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -28904,46 +21359,7 @@ func (c *CreativeGroupsPatchCall) Do(opts ...googleapi.CallOption) (*CreativeGro return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.creativeGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "CreativeGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creativeGroups.update": +} type CreativeGroupsUpdateCall struct { s *Service @@ -28965,23 +21381,21 @@ func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativeGroupsUpdateCall) Fields(s ...googleapi.Field) *CreativeGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativeGroupsUpdateCall) Context(ctx context.Context) *CreativeGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativeGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28990,18 +21404,12 @@ func (c *CreativeGroupsUpdateCall) Header() http.Header { } func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creativegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeGroups") @@ -29014,16 +21422,14 @@ func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.update" call. -// Exactly one of *CreativeGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CreativeGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativeGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29031,17 +21437,17 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativeGroup{ ServerResponse: googleapi.ServerResponse{ @@ -29054,38 +21460,7 @@ func (c *CreativeGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*CreativeGr return nil, err } return ret, nil - // { - // "description": "Updates an existing creative group.", - // "flatPath": "userprofiles/{profileId}/creativeGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.creativeGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creativeGroups", - // "request": { - // "$ref": "CreativeGroup" - // }, - // "response": { - // "$ref": "CreativeGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.get": +} type CreativesGetCall struct { s *Service @@ -29109,33 +21484,29 @@ func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29144,12 +21515,7 @@ func (c *CreativesGetCall) Header() http.Header { } func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29167,16 +21533,14 @@ func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29184,17 +21548,17 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -29207,43 +21571,7 @@ func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { return nil, err } return ret, nil - // { - // "description": "Gets one creative by ID.", - // "flatPath": "userprofiles/{profileId}/creatives/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives/{id}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.insert": +} type CreativesInsertCall struct { s *Service @@ -29265,23 +21593,21 @@ func (r *CreativesService) Insert(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29290,18 +21616,12 @@ func (c *CreativesInsertCall) Header() http.Header { } func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -29314,16 +21634,14 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.insert" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29331,17 +21649,17 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -29354,38 +21672,7 @@ func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Inserts a new creative.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "POST", - // "id": "dfareporting.creatives.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.list": +} type CreativesListCall struct { s *Service @@ -29396,8 +21683,8 @@ type CreativesListCall struct { header_ http.Header } -// List: Retrieves a list of creatives, possibly filtered. This method -// supports paging. +// List: Retrieves a list of creatives, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. func (r *CreativesService) List(profileId int64) *CreativesListCall { @@ -29406,8 +21693,8 @@ func (r *CreativesService) List(profileId int64) *CreativesListCall { return c } -// Active sets the optional parameter "active": Select only active -// creatives. Leave blank to select active and inactive creatives. +// Active sets the optional parameter "active": Select only active creatives. +// Leave blank to select active and inactive creatives. func (c *CreativesListCall) Active(active bool) *CreativesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c @@ -29427,16 +21714,15 @@ func (c *CreativesListCall) Archived(archived bool) *CreativesListCall { return c } -// CampaignId sets the optional parameter "campaignId": Select only -// creatives with this campaign ID. +// CampaignId sets the optional parameter "campaignId": Select only creatives +// with this campaign ID. func (c *CreativesListCall) CampaignId(campaignId int64) *CreativesListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// CompanionCreativeIds sets the optional parameter -// "companionCreativeIds": Select only in-stream video creatives with -// these companion IDs. +// CompanionCreativeIds sets the optional parameter "companionCreativeIds": +// Select only in-stream video creatives with these companion IDs. func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) *CreativesListCall { var companionCreativeIds_ []string for _, v := range companionCreativeIds { @@ -29446,8 +21732,8 @@ func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds ...int64) return c } -// CreativeFieldIds sets the optional parameter "creativeFieldIds": -// Select only creatives with these creative field IDs. +// CreativeFieldIds sets the optional parameter "creativeFieldIds": Select only +// creatives with these creative field IDs. func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *CreativesListCall { var creativeFieldIds_ []string for _, v := range creativeFieldIds { @@ -29457,8 +21743,7 @@ func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds ...int64) *Creativ return c } -// Ids sets the optional parameter "ids": Select only creatives with -// these IDs. +// Ids sets the optional parameter "ids": Select only creatives with these IDs. func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { var ids_ []string for _, v := range ids { @@ -29468,8 +21753,8 @@ func (c *CreativesListCall) Ids(ids ...int64) *CreativesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -29493,21 +21778,20 @@ func (c *CreativesListCall) RenderingIds(renderingIds ...int64) *CreativesListCa return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "creative*2015" will return objects with names like -// "creative June 2015", "creative April 2015", or simply "creative -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "creative" will match objects with name "my creative", "creative -// 2015", or simply "creative". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "creative*2015" will return objects with names like "creative June 2015", +// "creative April 2015", or simply "creative 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "creative" will match objects with name "my +// creative", "creative 2015", or simply "creative". func (c *CreativesListCall) SearchString(searchString string) *CreativesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SizeIds sets the optional parameter "sizeIds": Select only creatives -// with these size IDs. +// SizeIds sets the optional parameter "sizeIds": Select only creatives with +// these size IDs. func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -29517,8 +21801,8 @@ func (c *CreativesListCall) SizeIds(sizeIds ...int64) *CreativesListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -29529,8 +21813,7 @@ func (c *CreativesListCall) SortField(sortField string) *CreativesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -29541,15 +21824,15 @@ func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall { return c } -// StudioCreativeId sets the optional parameter "studioCreativeId": -// Select only creatives corresponding to this Studio creative ID. +// StudioCreativeId sets the optional parameter "studioCreativeId": Select only +// creatives corresponding to this Studio creative ID. func (c *CreativesListCall) StudioCreativeId(studioCreativeId int64) *CreativesListCall { c.urlParams_.Set("studioCreativeId", fmt.Sprint(studioCreativeId)) return c } -// Types sets the optional parameter "types": Select only creatives with -// these creative types. +// Types sets the optional parameter "types": Select only creatives with these +// creative types. // // Possible values: // @@ -29584,33 +21867,29 @@ func (c *CreativesListCall) Types(types ...string) *CreativesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29619,12 +21898,7 @@ func (c *CreativesListCall) Header() http.Header { } func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29641,16 +21915,15 @@ func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.list" call. -// Exactly one of *CreativesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreativesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreativesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29658,17 +21931,17 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreativesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -29681,202 +21954,6 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of creatives, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "GET", - // "id": "dfareporting.creatives.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active creatives. Leave blank to select active and inactive creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only creatives with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived creatives. Leave blank to select archived and unarchived creatives.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignId": { - // "description": "Select only creatives with this campaign ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "companionCreativeIds": { - // "description": "Select only in-stream video creatives with these companion IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "creativeFieldIds": { - // "description": "Select only creatives with these creative field IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only creatives with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "renderingIds": { - // "description": "Select only creatives with these rendering IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"creative*2015\" will return objects with names like \"creative June 2015\", \"creative April 2015\", or simply \"creative 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"creative\" will match objects with name \"my creative\", \"creative 2015\", or simply \"creative\".", - // "location": "query", - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only creatives with these size IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "studioCreativeId": { - // "description": "Select only creatives corresponding to this Studio creative ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "types": { - // "description": "Select only creatives with these creative types.", - // "enum": [ - // "IMAGE", - // "DISPLAY_REDIRECT", - // "CUSTOM_DISPLAY", - // "INTERNAL_REDIRECT", - // "CUSTOM_DISPLAY_INTERSTITIAL", - // "INTERSTITIAL_INTERNAL_REDIRECT", - // "TRACKING_TEXT", - // "RICH_MEDIA_DISPLAY_BANNER", - // "RICH_MEDIA_INPAGE_FLOATING", - // "RICH_MEDIA_IM_EXPAND", - // "RICH_MEDIA_DISPLAY_EXPANDING", - // "RICH_MEDIA_DISPLAY_INTERSTITIAL", - // "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL", - // "RICH_MEDIA_MOBILE_IN_APP", - // "FLASH_INPAGE", - // "INSTREAM_VIDEO", - // "VPAID_LINEAR_VIDEO", - // "VPAID_NON_LINEAR_VIDEO", - // "INSTREAM_VIDEO_REDIRECT", - // "RICH_MEDIA_PEEL_DOWN", - // "HTML5_BANNER", - // "DISPLAY", - // "DISPLAY_IMAGE_GALLERY", - // "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO", - // "INSTREAM_AUDIO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "response": { - // "$ref": "CreativesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -29884,7 +21961,7 @@ func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesListResp // The provided context supersedes any context provided to the Context method. func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -29900,8 +21977,6 @@ func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesListResp } } -// method id "dfareporting.creatives.patch": - type CreativesPatchCall struct { s *Service profileId int64 @@ -29911,8 +21986,7 @@ type CreativesPatchCall struct { header_ http.Header } -// Patch: Updates an existing creative. This method supports patch -// semantics. +// Patch: Updates an existing creative. This method supports patch semantics. // // - id: Creative ID. // - profileId: User profile ID associated with this request. @@ -29925,23 +21999,21 @@ func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesPatchCall) Fields(s ...googleapi.Field) *CreativesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesPatchCall) Context(ctx context.Context) *CreativesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29950,18 +22022,12 @@ func (c *CreativesPatchCall) Header() http.Header { } func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -29974,16 +22040,14 @@ func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.patch" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29991,17 +22055,17 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -30014,46 +22078,7 @@ func (c *CreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing creative. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "PATCH", - // "id": "dfareporting.creatives.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Creative ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.creatives.update": +} type CreativesUpdateCall struct { s *Service @@ -30075,23 +22100,21 @@ func (r *CreativesService) Update(profileId int64, creative *Creative) *Creative } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CreativesUpdateCall) Fields(s ...googleapi.Field) *CreativesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CreativesUpdateCall) Context(ctx context.Context) *CreativesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CreativesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30100,18 +22123,12 @@ func (c *CreativesUpdateCall) Header() http.Header { } func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creatives") @@ -30124,16 +22141,14 @@ func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.update" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30141,17 +22156,17 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Creative{ ServerResponse: googleapi.ServerResponse{ @@ -30164,38 +22179,7 @@ func (c *CreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error return nil, err } return ret, nil - // { - // "description": "Updates an existing creative.", - // "flatPath": "userprofiles/{profileId}/creatives", - // "httpMethod": "PUT", - // "id": "dfareporting.creatives.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.customEvents.batchinsert": +} type CustomEventsBatchinsertCall struct { s *Service @@ -30217,23 +22201,21 @@ func (r *CustomEventsService) Batchinsert(profileId int64, customeventsbatchinse } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomEventsBatchinsertCall) Fields(s ...googleapi.Field) *CustomEventsBatchinsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomEventsBatchinsertCall) Context(ctx context.Context) *CustomEventsBatchinsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomEventsBatchinsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30242,18 +22224,12 @@ func (c *CustomEventsBatchinsertCall) Header() http.Header { } func (c *CustomEventsBatchinsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.customeventsbatchinsertrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/customEvents/batchinsert") @@ -30266,16 +22242,15 @@ func (c *CustomEventsBatchinsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.customEvents.batchinsert" call. -// Exactly one of *CustomEventsBatchInsertResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *CustomEventsBatchInsertResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomEventsBatchInsertResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CustomEventsBatchinsertCall) Do(opts ...googleapi.CallOption) (*CustomEventsBatchInsertResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30283,17 +22258,17 @@ func (c *CustomEventsBatchinsertCall) Do(opts ...googleapi.CallOption) (*CustomE if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomEventsBatchInsertResponse{ ServerResponse: googleapi.ServerResponse{ @@ -30306,38 +22281,7 @@ func (c *CustomEventsBatchinsertCall) Do(opts ...googleapi.CallOption) (*CustomE return nil, err } return ret, nil - // { - // "description": "Inserts custom events.", - // "flatPath": "userprofiles/{profileId}/customEvents/batchinsert", - // "httpMethod": "POST", - // "id": "dfareporting.customEvents.batchinsert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/customEvents/batchinsert", - // "request": { - // "$ref": "CustomEventsBatchInsertRequest" - // }, - // "response": { - // "$ref": "CustomEventsBatchInsertResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions" - // ] - // } - -} - -// method id "dfareporting.dimensionValues.query": +} type DimensionValuesQueryCall struct { s *Service @@ -30348,8 +22292,7 @@ type DimensionValuesQueryCall struct { header_ http.Header } -// Query: Retrieves list of report dimension values for a list of -// filters. +// Query: Retrieves list of report dimension values for a list of filters. // // - profileId: The Campaign Manager 360 user profile ID. func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall { @@ -30359,8 +22302,8 @@ func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *D return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DimensionValuesQueryCall) MaxResults(maxResults int64) *DimensionValuesQueryCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -30374,23 +22317,21 @@ func (c *DimensionValuesQueryCall) PageToken(pageToken string) *DimensionValuesQ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DimensionValuesQueryCall) Fields(s ...googleapi.Field) *DimensionValuesQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DimensionValuesQueryCall) Context(ctx context.Context) *DimensionValuesQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DimensionValuesQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30399,18 +22340,12 @@ func (c *DimensionValuesQueryCall) Header() http.Header { } func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dimensionvaluerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dimensionvalues/query") @@ -30423,16 +22358,15 @@ func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dimensionValues.query" call. -// Exactly one of *DimensionValueList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DimensionValueList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DimensionValueList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionValueList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30440,17 +22374,17 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DimensionValueList{ ServerResponse: googleapi.ServerResponse{ @@ -30463,49 +22397,6 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV return nil, err } return ret, nil - // { - // "description": "Retrieves list of report dimension values for a list of filters.", - // "flatPath": "userprofiles/{profileId}/dimensionvalues/query", - // "httpMethod": "POST", - // "id": "dfareporting.dimensionValues.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "100", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "100", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dimensionvalues/query", - // "request": { - // "$ref": "DimensionValueRequest" - // }, - // "response": { - // "$ref": "DimensionValueList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -30513,7 +22404,7 @@ func (c *DimensionValuesQueryCall) Do(opts ...googleapi.CallOption) (*DimensionV // The provided context supersedes any context provided to the Context method. func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionValueList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -30529,8 +22420,6 @@ func (c *DimensionValuesQueryCall) Pages(ctx context.Context, f func(*DimensionV } } -// method id "dfareporting.directorySites.get": - type DirectorySitesGetCall struct { s *Service profileId int64 @@ -30553,33 +22442,29 @@ func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesGetCall) Fields(s ...googleapi.Field) *DirectorySitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesGetCall) IfNoneMatch(entityTag string) *DirectorySitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesGetCall) Context(ctx context.Context) *DirectorySitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30588,12 +22473,7 @@ func (c *DirectorySitesGetCall) Header() http.Header { } func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30611,16 +22491,14 @@ func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.get" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30628,17 +22506,17 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -30651,43 +22529,7 @@ func (c *DirectorySitesGetCall) Do(opts ...googleapi.CallOption) (*DirectorySite return nil, err } return ret, nil - // { - // "description": "Gets one directory site by ID.", - // "flatPath": "userprofiles/{profileId}/directorySites/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Directory site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites/{id}", - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.insert": +} type DirectorySitesInsertCall struct { s *Service @@ -30709,23 +22551,21 @@ func (r *DirectorySitesService) Insert(profileId int64, directorysite *Directory } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesInsertCall) Fields(s ...googleapi.Field) *DirectorySitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesInsertCall) Context(ctx context.Context) *DirectorySitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30734,18 +22574,12 @@ func (c *DirectorySitesInsertCall) Header() http.Header { } func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.directorysite) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/directorySites") @@ -30758,16 +22592,14 @@ func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.insert" call. -// Exactly one of *DirectorySite or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DirectorySite.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DirectorySite.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectorySite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30775,17 +22607,17 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySite{ ServerResponse: googleapi.ServerResponse{ @@ -30798,38 +22630,7 @@ func (c *DirectorySitesInsertCall) Do(opts ...googleapi.CallOption) (*DirectoryS return nil, err } return ret, nil - // { - // "description": "Inserts a new directory site.", - // "flatPath": "userprofiles/{profileId}/directorySites", - // "httpMethod": "POST", - // "id": "dfareporting.directorySites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "request": { - // "$ref": "DirectorySite" - // }, - // "response": { - // "$ref": "DirectorySite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.directorySites.list": +} type DirectorySitesListCall struct { s *Service @@ -30840,8 +22641,8 @@ type DirectorySitesListCall struct { header_ http.Header } -// List: Retrieves a list of directory sites, possibly filtered. This -// method supports paging. +// List: Retrieves a list of directory sites, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { @@ -30851,46 +22652,45 @@ func (r *DirectorySitesService) List(profileId int64) *DirectorySitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only directory sites that -// accept publisher paid placements. This field can be left blank. +// "acceptsPublisherPaidPlacements": Select only directory sites that accept +// publisher paid placements. This field can be left blank. func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *DirectorySitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// Active sets the optional parameter "active": Select only active -// directory sites. Leave blank to retrieve both active and inactive -// directory sites. +// Active sets the optional parameter "active": Select only active directory +// sites. Leave blank to retrieve both active and inactive directory sites. func (c *DirectorySitesListCall) Active(active bool) *DirectorySitesListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select -// only directory sites with this Ad Manager network code. +// DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select only +// directory sites with this Ad Manager network code. func (c *DirectorySitesListCall) DfpNetworkCode(dfpNetworkCode string) *DirectorySitesListCall { c.urlParams_.Set("dfpNetworkCode", dfpNetworkCode) return c } -// Ids sets the optional parameter "ids": Select only directory sites -// with these IDs. +// Ids sets the optional parameter "ids": Select only directory sites with +// these IDs. func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { var ids_ []string for _, v := range ids { @@ -30900,8 +22700,8 @@ func (c *DirectorySitesListCall) Ids(ids ...int64) *DirectorySitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *DirectorySitesListCall) MaxResults(maxResults int64) *DirectorySitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -30914,22 +22714,21 @@ func (c *DirectorySitesListCall) PageToken(pageToken string) *DirectorySitesList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or URL. Wildcards (*) are allowed. -// For example, "directory site*2015" will return objects with names -// like "directory site June 2015", "directory site April 2015", or -// simply "directory site 2015". Most of the searches also add wildcards -// implicitly at the start and the end of the search string. For -// example, a search string of "directory site" will match objects with -// name "my directory site", "directory site 2015" or simply, "directory -// site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or URL. Wildcards (*) are allowed. For example, +// "directory site*2015" will return objects with names like "directory site +// June 2015", "directory site April 2015", or simply "directory site 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "directory site" will +// match objects with name "my directory site", "directory site 2015" or +// simply, "directory site". func (c *DirectorySitesListCall) SearchString(searchString string) *DirectorySitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -30940,8 +22739,7 @@ func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -30953,33 +22751,29 @@ func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DirectorySitesListCall) Fields(s ...googleapi.Field) *DirectorySitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DirectorySitesListCall) IfNoneMatch(entityTag string) *DirectorySitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DirectorySitesListCall) Context(ctx context.Context) *DirectorySitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DirectorySitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30988,12 +22782,7 @@ func (c *DirectorySitesListCall) Header() http.Header { } func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31010,16 +22799,15 @@ func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.list" call. -// Exactly one of *DirectorySitesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *DirectorySitesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *DirectorySitesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31027,17 +22815,17 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DirectorySitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -31050,111 +22838,6 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit return nil, err } return ret, nil - // { - // "description": "Retrieves a list of directory sites, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/directorySites", - // "httpMethod": "GET", - // "id": "dfareporting.directorySites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only directory sites that accept publisher paid placements. This field can be left blank.", - // "location": "query", - // "type": "boolean" - // }, - // "active": { - // "description": "Select only active directory sites. Leave blank to retrieve both active and inactive directory sites.", - // "location": "query", - // "type": "boolean" - // }, - // "dfpNetworkCode": { - // "description": "Select only directory sites with this Ad Manager network code.", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only directory sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. For example, \"directory site*2015\" will return objects with names like \"directory site June 2015\", \"directory site April 2015\", or simply \"directory site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"directory site\" will match objects with name \"my directory site\", \"directory site 2015\" or simply, \"directory site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/directorySites", - // "response": { - // "$ref": "DirectorySitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -31162,7 +22845,7 @@ func (c *DirectorySitesListCall) Do(opts ...googleapi.CallOption) (*DirectorySit // The provided context supersedes any context provided to the Context method. func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -31178,8 +22861,6 @@ func (c *DirectorySitesListCall) Pages(ctx context.Context, f func(*DirectorySit } } -// method id "dfareporting.dynamicTargetingKeys.delete": - type DynamicTargetingKeysDeleteCall struct { s *Service profileId int64 @@ -31191,13 +22872,13 @@ type DynamicTargetingKeysDeleteCall struct { // Delete: Deletes an existing dynamic targeting key. // -// - name: Name of this dynamic targeting key. This is a required field. -// Must be less than 256 characters long and cannot contain commas. -// All characters are converted to lowercase. +// - name: Name of this dynamic targeting key. This is a required field. Must +// be less than 256 characters long and cannot contain commas. All characters +// are converted to lowercase. // - objectId: ID of the object of this dynamic targeting key. This is a // required field. -// - objectType: Type of the object of this dynamic targeting key. This -// is a required field. +// - objectType: Type of the object of this dynamic targeting key. This is a +// required field. // - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, name string, objectType string) *DynamicTargetingKeysDeleteCall { c := &DynamicTargetingKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -31209,23 +22890,21 @@ func (r *DynamicTargetingKeysService) Delete(profileId int64, objectId int64, na } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysDeleteCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysDeleteCall) Context(ctx context.Context) *DynamicTargetingKeysDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31234,12 +22913,7 @@ func (c *DynamicTargetingKeysDeleteCall) Header() http.Header { } func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -31254,7 +22928,7 @@ func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "objectId": strconv.FormatInt(c.objectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.delete" call. @@ -31266,69 +22940,10 @@ func (c *DynamicTargetingKeysDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing dynamic targeting key.", - // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - // "httpMethod": "DELETE", - // "id": "dfareporting.dynamicTargetingKeys.delete", - // "parameterOrder": [ - // "profileId", - // "objectId", - // "name", - // "objectType" - // ], - // "parameters": { - // "name": { - // "description": "Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "objectId": { - // "description": "ID of the object of this dynamic targeting key. This is a required field.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "objectType": { - // "description": "Type of the object of this dynamic targeting key. This is a required field.", - // "enum": [ - // "OBJECT_ADVERTISER", - // "OBJECT_AD", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys/{objectId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.insert": +} type DynamicTargetingKeysInsertCall struct { s *Service @@ -31339,11 +22954,10 @@ type DynamicTargetingKeysInsertCall struct { header_ http.Header } -// Insert: Inserts a new dynamic targeting key. Keys must be created at -// the advertiser level before being assigned to the advertiser's ads, -// creatives, or placements. There is a maximum of 1000 keys per -// advertiser, out of which a maximum of 20 keys can be assigned per ad, -// creative, or placement. +// Insert: Inserts a new dynamic targeting key. Keys must be created at the +// advertiser level before being assigned to the advertiser's ads, creatives, +// or placements. There is a maximum of 1000 keys per advertiser, out of which +// a maximum of 20 keys can be assigned per ad, creative, or placement. // // - profileId: User profile ID associated with this request. func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingkey *DynamicTargetingKey) *DynamicTargetingKeysInsertCall { @@ -31354,23 +22968,21 @@ func (r *DynamicTargetingKeysService) Insert(profileId int64, dynamictargetingke } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysInsertCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysInsertCall) Context(ctx context.Context) *DynamicTargetingKeysInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31379,18 +22991,12 @@ func (c *DynamicTargetingKeysInsertCall) Header() http.Header { } func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dynamictargetingkey) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/dynamicTargetingKeys") @@ -31403,16 +23009,15 @@ func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.insert" call. -// Exactly one of *DynamicTargetingKey or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DynamicTargetingKey.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKey.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31420,17 +23025,17 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKey{ ServerResponse: googleapi.ServerResponse{ @@ -31443,38 +23048,7 @@ func (c *DynamicTargetingKeysInsertCall) Do(opts ...googleapi.CallOption) (*Dyna return nil, err } return ret, nil - // { - // "description": "Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.", - // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", - // "httpMethod": "POST", - // "id": "dfareporting.dynamicTargetingKeys.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "request": { - // "$ref": "DynamicTargetingKey" - // }, - // "response": { - // "$ref": "DynamicTargetingKey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.dynamicTargetingKeys.list": +} type DynamicTargetingKeysListCall struct { s *Service @@ -31494,15 +23068,15 @@ func (r *DynamicTargetingKeysService) List(profileId int64) *DynamicTargetingKey return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// dynamic targeting keys whose object has this advertiser ID. +// AdvertiserId sets the optional parameter "advertiserId": Select only dynamic +// targeting keys whose object has this advertiser ID. func (c *DynamicTargetingKeysListCall) AdvertiserId(advertiserId int64) *DynamicTargetingKeysListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Names sets the optional parameter "names": Select only dynamic -// targeting keys exactly matching these names. +// Names sets the optional parameter "names": Select only dynamic targeting +// keys exactly matching these names. func (c *DynamicTargetingKeysListCall) Names(names ...string) *DynamicTargetingKeysListCall { c.urlParams_.SetMulti("names", append([]string{}, names...)) return c @@ -31515,8 +23089,8 @@ func (c *DynamicTargetingKeysListCall) ObjectId(objectId int64) *DynamicTargetin return c } -// ObjectType sets the optional parameter "objectType": Select only -// dynamic targeting keys with this object type. +// ObjectType sets the optional parameter "objectType": Select only dynamic +// targeting keys with this object type. // // Possible values: // @@ -31530,33 +23104,29 @@ func (c *DynamicTargetingKeysListCall) ObjectType(objectType string) *DynamicTar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DynamicTargetingKeysListCall) Fields(s ...googleapi.Field) *DynamicTargetingKeysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DynamicTargetingKeysListCall) IfNoneMatch(entityTag string) *DynamicTargetingKeysListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DynamicTargetingKeysListCall) Context(ctx context.Context) *DynamicTargetingKeysListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DynamicTargetingKeysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31565,12 +23135,7 @@ func (c *DynamicTargetingKeysListCall) Header() http.Header { } func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31587,16 +23152,15 @@ func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.list" call. -// Exactly one of *DynamicTargetingKeysListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *DynamicTargetingKeysListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DynamicTargetingKeysListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*DynamicTargetingKeysListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31604,17 +23168,17 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DynamicTargetingKeysListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -31627,70 +23191,7 @@ func (c *DynamicTargetingKeysListCall) Do(opts ...googleapi.CallOption) (*Dynami return nil, err } return ret, nil - // { - // "description": "Retrieves a list of dynamic targeting keys.", - // "flatPath": "userprofiles/{profileId}/dynamicTargetingKeys", - // "httpMethod": "GET", - // "id": "dfareporting.dynamicTargetingKeys.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only dynamic targeting keys whose object has this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "names": { - // "description": "Select only dynamic targeting keys exactly matching these names.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "objectId": { - // "description": "Select only dynamic targeting keys with this object ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "objectType": { - // "description": "Select only dynamic targeting keys with this object type.", - // "enum": [ - // "OBJECT_ADVERTISER", - // "OBJECT_AD", - // "OBJECT_CREATIVE", - // "OBJECT_PLACEMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/dynamicTargetingKeys", - // "response": { - // "$ref": "DynamicTargetingKeysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.delete": +} type EventTagsDeleteCall struct { s *Service @@ -31713,23 +23214,21 @@ func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsDeleteCall) Fields(s ...googleapi.Field) *EventTagsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsDeleteCall) Context(ctx context.Context) *EventTagsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31738,12 +23237,7 @@ func (c *EventTagsDeleteCall) Header() http.Header { } func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -31758,7 +23252,7 @@ func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.delete" call. @@ -31770,43 +23264,10 @@ func (c *EventTagsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.eventTags.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.get": +} type EventTagsGetCall struct { s *Service @@ -31830,33 +23291,29 @@ func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsGetCall) Fields(s ...googleapi.Field) *EventTagsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsGetCall) IfNoneMatch(entityTag string) *EventTagsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsGetCall) Context(ctx context.Context) *EventTagsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31865,12 +23322,7 @@ func (c *EventTagsGetCall) Header() http.Header { } func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31888,16 +23340,14 @@ func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.get" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31905,17 +23355,17 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -31928,43 +23378,7 @@ func (c *EventTagsGetCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { return nil, err } return ret, nil - // { - // "description": "Gets one event tag by ID.", - // "flatPath": "userprofiles/{profileId}/eventTags/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Event tag ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags/{id}", - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.insert": +} type EventTagsInsertCall struct { s *Service @@ -31986,23 +23400,21 @@ func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsInsertCall) Fields(s ...googleapi.Field) *EventTagsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsInsertCall) Context(ctx context.Context) *EventTagsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32011,18 +23423,12 @@ func (c *EventTagsInsertCall) Header() http.Header { } func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -32035,16 +23441,14 @@ func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.insert" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32052,17 +23456,17 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -32075,38 +23479,7 @@ func (c *EventTagsInsertCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Inserts a new event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "POST", - // "id": "dfareporting.eventTags.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.list": +} type EventTagsListCall struct { s *Service @@ -32126,58 +23499,55 @@ func (r *EventTagsService) List(profileId int64) *EventTagsListCall { return c } -// AdId sets the optional parameter "adId": Select only event tags that -// belong to this ad. +// AdId sets the optional parameter "adId": Select only event tags that belong +// to this ad. func (c *EventTagsListCall) AdId(adId int64) *EventTagsListCall { c.urlParams_.Set("adId", fmt.Sprint(adId)) return c } -// AdvertiserId sets the optional parameter "advertiserId": Select only -// event tags that belong to this advertiser. +// AdvertiserId sets the optional parameter "advertiserId": Select only event +// tags that belong to this advertiser. func (c *EventTagsListCall) AdvertiserId(advertiserId int64) *EventTagsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// CampaignId sets the optional parameter "campaignId": Select only -// event tags that belong to this campaign. +// CampaignId sets the optional parameter "campaignId": Select only event tags +// that belong to this campaign. func (c *EventTagsListCall) CampaignId(campaignId int64) *EventTagsListCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// DefinitionsOnly sets the optional parameter "definitionsOnly": -// Examine only the specified campaign or advertiser's event tags for -// matching selector criteria. When set to false, the parent advertiser -// and parent campaign of the specified ad or campaign is examined as -// well. In addition, when set to false, the status field is examined as -// well, along with the enabledByDefault field. This parameter can not -// be set to true when adId is specified as ads do not define their own -// even tags. +// DefinitionsOnly sets the optional parameter "definitionsOnly": Examine only +// the specified campaign or advertiser's event tags for matching selector +// criteria. When set to false, the parent advertiser and parent campaign of +// the specified ad or campaign is examined as well. In addition, when set to +// false, the status field is examined as well, along with the enabledByDefault +// field. This parameter can not be set to true when adId is specified as ads +// do not define their own even tags. func (c *EventTagsListCall) DefinitionsOnly(definitionsOnly bool) *EventTagsListCall { c.urlParams_.Set("definitionsOnly", fmt.Sprint(definitionsOnly)) return c } -// Enabled sets the optional parameter "enabled": Select only enabled -// event tags. What is considered enabled or disabled depends on the -// definitionsOnly parameter. When definitionsOnly is set to true, only -// the specified advertiser or campaign's event tags' enabledByDefault -// field is examined. When definitionsOnly is set to false, the -// specified ad or specified campaign's parent advertiser's or parent -// campaign's event tags' enabledByDefault and status fields are -// examined as well. +// Enabled sets the optional parameter "enabled": Select only enabled event +// tags. What is considered enabled or disabled depends on the definitionsOnly +// parameter. When definitionsOnly is set to true, only the specified +// advertiser or campaign's event tags' enabledByDefault field is examined. +// When definitionsOnly is set to false, the specified ad or specified +// campaign's parent advertiser's or parent campaign's event tags' +// enabledByDefault and status fields are examined as well. func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall { c.urlParams_.Set("enabled", fmt.Sprint(enabled)) return c } -// EventTagTypes sets the optional parameter "eventTagTypes": Select -// only event tags with the specified event tag types. Event tag types -// can be used to specify whether to use a third-party pixel, a -// third-party JavaScript URL, or a third-party click-through URL for -// either impression or click tracking. +// EventTagTypes sets the optional parameter "eventTagTypes": Select only event +// tags with the specified event tag types. Event tag types can be used to +// specify whether to use a third-party pixel, a third-party JavaScript URL, or +// a third-party click-through URL for either impression or click tracking. // // Possible values: // @@ -32189,8 +23559,8 @@ func (c *EventTagsListCall) EventTagTypes(eventTagTypes ...string) *EventTagsLis return c } -// Ids sets the optional parameter "ids": Select only event tags with -// these IDs. +// Ids sets the optional parameter "ids": Select only event tags with these +// IDs. func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { var ids_ []string for _, v := range ids { @@ -32200,21 +23570,20 @@ func (c *EventTagsListCall) Ids(ids ...int64) *EventTagsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "eventtag*2015" will return objects with names like -// "eventtag June 2015", "eventtag April 2015", or simply "eventtag -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "eventtag" will match objects with name "my eventtag", "eventtag -// 2015", or simply "eventtag". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "eventtag*2015" will return objects with names like "eventtag June 2015", +// "eventtag April 2015", or simply "eventtag 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "eventtag" will match objects with name "my +// eventtag", "eventtag 2015", or simply "eventtag". func (c *EventTagsListCall) SearchString(searchString string) *EventTagsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -32225,8 +23594,7 @@ func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -32238,33 +23606,29 @@ func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsListCall) Fields(s ...googleapi.Field) *EventTagsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *EventTagsListCall) IfNoneMatch(entityTag string) *EventTagsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsListCall) Context(ctx context.Context) *EventTagsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32273,12 +23637,7 @@ func (c *EventTagsListCall) Header() http.Header { } func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32295,16 +23654,15 @@ func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.list" call. -// Exactly one of *EventTagsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *EventTagsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTagsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32312,17 +23670,17 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTagsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -32335,119 +23693,7 @@ func (c *EventTagsListCall) Do(opts ...googleapi.CallOption) (*EventTagsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of event tags, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "GET", - // "id": "dfareporting.eventTags.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "adId": { - // "description": "Select only event tags that belong to this ad.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "advertiserId": { - // "description": "Select only event tags that belong to this advertiser.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "campaignId": { - // "description": "Select only event tags that belong to this campaign.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "definitionsOnly": { - // "description": "Examine only the specified campaign or advertiser's event tags for matching selector criteria. When set to false, the parent advertiser and parent campaign of the specified ad or campaign is examined as well. In addition, when set to false, the status field is examined as well, along with the enabledByDefault field. This parameter can not be set to true when adId is specified as ads do not define their own even tags.", - // "location": "query", - // "type": "boolean" - // }, - // "enabled": { - // "description": "Select only enabled event tags. What is considered enabled or disabled depends on the definitionsOnly parameter. When definitionsOnly is set to true, only the specified advertiser or campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' enabledByDefault and status fields are examined as well.", - // "location": "query", - // "type": "boolean" - // }, - // "eventTagTypes": { - // "description": "Select only event tags with the specified event tag types. Event tag types can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking.", - // "enum": [ - // "IMPRESSION_IMAGE_EVENT_TAG", - // "IMPRESSION_JAVASCRIPT_EVENT_TAG", - // "CLICK_THROUGH_EVENT_TAG" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only event tags with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"eventtag*2015\" will return objects with names like \"eventtag June 2015\", \"eventtag April 2015\", or simply \"eventtag 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"eventtag\" will match objects with name \"my eventtag\", \"eventtag 2015\", or simply \"eventtag\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "response": { - // "$ref": "EventTagsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.patch": +} type EventTagsPatchCall struct { s *Service @@ -32458,8 +23704,7 @@ type EventTagsPatchCall struct { header_ http.Header } -// Patch: Updates an existing event tag. This method supports patch -// semantics. +// Patch: Updates an existing event tag. This method supports patch semantics. // // - id: EventTag ID. // - profileId: User profile ID associated with this request. @@ -32472,23 +23717,21 @@ func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsPatchCall) Fields(s ...googleapi.Field) *EventTagsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsPatchCall) Context(ctx context.Context) *EventTagsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32497,18 +23740,12 @@ func (c *EventTagsPatchCall) Header() http.Header { } func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -32521,16 +23758,14 @@ func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.patch" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32538,17 +23773,17 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -32561,46 +23796,7 @@ func (c *EventTagsPatchCall) Do(opts ...googleapi.CallOption) (*EventTag, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "PATCH", - // "id": "dfareporting.eventTags.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "EventTag ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.eventTags.update": +} type EventTagsUpdateCall struct { s *Service @@ -32622,23 +23818,21 @@ func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EventTagsUpdateCall) Fields(s ...googleapi.Field) *EventTagsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EventTagsUpdateCall) Context(ctx context.Context) *EventTagsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EventTagsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32647,18 +23841,12 @@ func (c *EventTagsUpdateCall) Header() http.Header { } func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventtag) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/eventTags") @@ -32671,16 +23859,14 @@ func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.update" call. -// Exactly one of *EventTag or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *EventTag.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EventTag.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32688,17 +23874,17 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EventTag{ ServerResponse: googleapi.ServerResponse{ @@ -32711,38 +23897,7 @@ func (c *EventTagsUpdateCall) Do(opts ...googleapi.CallOption) (*EventTag, error return nil, err } return ret, nil - // { - // "description": "Updates an existing event tag.", - // "flatPath": "userprofiles/{profileId}/eventTags", - // "httpMethod": "PUT", - // "id": "dfareporting.eventTags.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/eventTags", - // "request": { - // "$ref": "EventTag" - // }, - // "response": { - // "$ref": "EventTag" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.files.get": +} type FilesGetCall struct { s *Service @@ -32754,8 +23909,8 @@ type FilesGetCall struct { header_ http.Header } -// Get: Retrieves a report file by its report ID and file ID. This -// method supports media download. +// Get: Retrieves a report file by its report ID and file ID. This method +// supports media download. // // - fileId: The ID of the report file. // - reportId: The ID of the report. @@ -32767,33 +23922,29 @@ func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesGetCall) Fields(s ...googleapi.Field) *FilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesGetCall) IfNoneMatch(entityTag string) *FilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32802,12 +23953,7 @@ func (c *FilesGetCall) Header() http.Header { } func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32825,7 +23971,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -32839,18 +23985,16 @@ func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, e } if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32858,17 +24002,17 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -32881,44 +24025,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "flatPath": "reports/{reportId}/files/{fileId}", - // "httpMethod": "GET", - // "id": "dfareporting.files.get", - // "parameterOrder": [ - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.files.list": +} type FilesListCall struct { s *Service @@ -32938,8 +24045,8 @@ func (r *FilesService) List(profileId int64) *FilesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -32952,8 +24059,8 @@ func (c *FilesListCall) PageToken(pageToken string) *FilesListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -32965,8 +24072,8 @@ func (c *FilesListCall) Scope(scope string) *FilesListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -32977,8 +24084,7 @@ func (c *FilesListCall) SortField(sortField string) *FilesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -32990,33 +24096,29 @@ func (c *FilesListCall) SortOrder(sortOrder string) *FilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FilesListCall) Fields(s ...googleapi.Field) *FilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FilesListCall) IfNoneMatch(entityTag string) *FilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FilesListCall) Context(ctx context.Context) *FilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33025,12 +24127,7 @@ func (c *FilesListCall) Header() http.Header { } func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33047,16 +24144,14 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33064,17 +24159,17 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -33087,90 +24182,6 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { return nil, err } return ret, nil - // { - // "description": "Lists files for a user profile.", - // "flatPath": "userprofiles/{profileId}/files", - // "httpMethod": "GET", - // "id": "dfareporting.files.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE", - // "SHARED_WITH_ME" - // ], - // "enumDescriptions": [ - // "All files in account.", - // "My files.", - // "Files shared with me." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "Sort by file ID.", - // "Sort by 'lastmodifiedAt' field." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -33178,7 +24189,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { // The provided context supersedes any context provided to the Context method. func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -33194,8 +24205,6 @@ func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) erro } } -// method id "dfareporting.floodlightActivities.delete": - type FloodlightActivitiesDeleteCall struct { s *Service profileId int64 @@ -33217,23 +24226,21 @@ func (r *FloodlightActivitiesService) Delete(profileId int64, id int64) *Floodli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesDeleteCall) Fields(s ...googleapi.Field) *FloodlightActivitiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesDeleteCall) Context(ctx context.Context) *FloodlightActivitiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33242,12 +24249,7 @@ func (c *FloodlightActivitiesDeleteCall) Header() http.Header { } func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -33262,7 +24264,7 @@ func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.delete" call. @@ -33274,43 +24276,10 @@ func (c *FloodlightActivitiesDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.floodlightActivities.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.generatetag": +} type FloodlightActivitiesGeneratetagCall struct { s *Service @@ -33329,32 +24298,29 @@ func (r *FloodlightActivitiesService) Generatetag(profileId int64) *FloodlightAc return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Floodlight activity ID for which we want to -// generate a tag. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Floodlight activity ID for which we want to generate a tag. func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityId int64) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGeneratetagCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGeneratetagCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGeneratetagCall) Context(ctx context.Context) *FloodlightActivitiesGeneratetagCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33363,12 +24329,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Header() http.Header { } func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -33382,17 +24343,15 @@ func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.generatetag" call. -// Exactly one of *FloodlightActivitiesGenerateTagResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesGenerateTagResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33400,17 +24359,17 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesGenerateTagResponse{ ServerResponse: googleapi.ServerResponse{ @@ -33423,41 +24382,7 @@ func (c *FloodlightActivitiesGeneratetagCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Generates a tag for a floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/generatetag", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.generatetag", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "floodlightActivityId": { - // "description": "Floodlight activity ID for which we want to generate a tag.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/generatetag", - // "response": { - // "$ref": "FloodlightActivitiesGenerateTagResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.get": +} type FloodlightActivitiesGetCall struct { s *Service @@ -33481,33 +24406,29 @@ func (r *FloodlightActivitiesService) Get(profileId int64, id int64) *Floodlight } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesGetCall) Fields(s ...googleapi.Field) *FloodlightActivitiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesGetCall) IfNoneMatch(entityTag string) *FloodlightActivitiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesGetCall) Context(ctx context.Context) *FloodlightActivitiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33516,12 +24437,7 @@ func (c *FloodlightActivitiesGetCall) Header() http.Header { } func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33539,16 +24455,15 @@ func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.get" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33556,17 +24471,17 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -33579,43 +24494,7 @@ func (c *FloodlightActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Floodli return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities/{id}", - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.insert": +} type FloodlightActivitiesInsertCall struct { s *Service @@ -33637,23 +24516,21 @@ func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesInsertCall) Fields(s ...googleapi.Field) *FloodlightActivitiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesInsertCall) Context(ctx context.Context) *FloodlightActivitiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33662,18 +24539,12 @@ func (c *FloodlightActivitiesInsertCall) Header() http.Header { } func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -33686,16 +24557,15 @@ func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.insert" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33703,17 +24573,17 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -33726,38 +24596,7 @@ func (c *FloodlightActivitiesInsertCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivities.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.list": +} type FloodlightActivitiesListCall struct { s *Service @@ -33768,8 +24607,8 @@ type FloodlightActivitiesListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activities, possibly filtered. -// This method supports paging. +// List: Retrieves a list of floodlight activities, possibly filtered. This +// method supports paging. // // - profileId: User profile ID associated with this request. func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitiesListCall { @@ -33779,17 +24618,16 @@ func (r *FloodlightActivitiesService) List(profileId int64) *FloodlightActivitie } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activities for the specified advertiser ID. Must specify -// either ids, advertiserId, or floodlightConfigurationId for a -// non-empty result. +// floodlight activities for the specified advertiser ID. Must specify either +// ids, advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) AdvertiserId(advertiserId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightActivityGroupIds sets the optional parameter -// "floodlightActivityGroupIds": Select only floodlight activities with -// the specified floodlight activity group IDs. +// "floodlightActivityGroupIds": Select only floodlight activities with the +// specified floodlight activity group IDs. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds ...int64) *FloodlightActivitiesListCall { var floodlightActivityGroupIds_ []string for _, v := range floodlightActivityGroupIds { @@ -33800,24 +24638,24 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActi } // FloodlightActivityGroupName sets the optional parameter -// "floodlightActivityGroupName": Select only floodlight activities with -// the specified floodlight activity group name. +// "floodlightActivityGroupName": Select only floodlight activities with the +// specified floodlight activity group name. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupName string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupName", floodlightActivityGroupName) return c } // FloodlightActivityGroupTagString sets the optional parameter -// "floodlightActivityGroupTagString": Select only floodlight activities -// with the specified floodlight activity group tag string. +// "floodlightActivityGroupTagString": Select only floodlight activities with +// the specified floodlight activity group tag string. func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightActivityGroupTagString", floodlightActivityGroupTagString) return c } // FloodlightActivityGroupType sets the optional parameter -// "floodlightActivityGroupType": Select only floodlight activities with -// the specified floodlight activity group type. +// "floodlightActivityGroupType": Select only floodlight activities with the +// specified floodlight activity group type. // // Possible values: // @@ -33829,17 +24667,17 @@ func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightAct } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activities for -// the specified floodlight configuration ID. Must specify either ids, +// "floodlightConfigurationId": Select only floodlight activities for the +// specified floodlight configuration ID. Must specify either ids, // advertiserId, or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivitiesListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activities with the specified IDs. Must specify either ids, -// advertiserId, or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activities +// with the specified IDs. Must specify either ids, advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesListCall { var ids_ []string for _, v := range ids { @@ -33849,8 +24687,8 @@ func (c *FloodlightActivitiesListCall) Ids(ids ...int64) *FloodlightActivitiesLi return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivitiesListCall) MaxResults(maxResults int64) *FloodlightActivitiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -33863,22 +24701,22 @@ func (c *FloodlightActivitiesListCall) PageToken(pageToken string) *FloodlightAc return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivity*2015" will return objects with names -// like "floodlightactivity June 2015", "floodlightactivity April 2015", -// or simply "floodlightactivity 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivity" will match -// objects with name "my floodlightactivity activity", -// "floodlightactivity 2015", or simply "floodlightactivity". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivity*2015" will return objects with names like +// "floodlightactivity June 2015", "floodlightactivity April 2015", or simply +// "floodlightactivity 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "floodlightactivity" will match objects with name "my +// floodlightactivity activity", "floodlightactivity 2015", or simply +// "floodlightactivity". func (c *FloodlightActivitiesListCall) SearchString(searchString string) *FloodlightActivitiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -33889,8 +24727,7 @@ func (c *FloodlightActivitiesListCall) SortField(sortField string) *FloodlightAc return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -33901,41 +24738,37 @@ func (c *FloodlightActivitiesListCall) SortOrder(sortOrder string) *FloodlightAc return c } -// TagString sets the optional parameter "tagString": Select only -// floodlight activities with the specified tag string. +// TagString sets the optional parameter "tagString": Select only floodlight +// activities with the specified tag string. func (c *FloodlightActivitiesListCall) TagString(tagString string) *FloodlightActivitiesListCall { c.urlParams_.Set("tagString", tagString) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesListCall) Fields(s ...googleapi.Field) *FloodlightActivitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivitiesListCall) IfNoneMatch(entityTag string) *FloodlightActivitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesListCall) Context(ctx context.Context) *FloodlightActivitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33944,12 +24777,7 @@ func (c *FloodlightActivitiesListCall) Header() http.Header { } func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33966,16 +24794,15 @@ func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.list" call. -// Exactly one of *FloodlightActivitiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivitiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivitiesListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivitiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33983,17 +24810,17 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivitiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34006,133 +24833,6 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activities, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivities.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activities for the specified advertiser ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupIds": { - // "description": "Select only floodlight activities with the specified floodlight activity group IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "floodlightActivityGroupName": { - // "description": "Select only floodlight activities with the specified floodlight activity group name.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupTagString": { - // "description": "Select only floodlight activities with the specified floodlight activity group tag string.", - // "location": "query", - // "type": "string" - // }, - // "floodlightActivityGroupType": { - // "description": "Select only floodlight activities with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activities for the specified floodlight configuration ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivity*2015\" will return objects with names like \"floodlightactivity June 2015\", \"floodlightactivity April 2015\", or simply \"floodlightactivity 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivity\" will match objects with name \"my floodlightactivity activity\", \"floodlightactivity 2015\", or simply \"floodlightactivity\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "tagString": { - // "description": "Select only floodlight activities with the specified tag string.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "response": { - // "$ref": "FloodlightActivitiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -34140,7 +24840,7 @@ func (c *FloodlightActivitiesListCall) Do(opts ...googleapi.CallOption) (*Floodl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*FloodlightActivitiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -34156,8 +24856,6 @@ func (c *FloodlightActivitiesListCall) Pages(ctx context.Context, f func(*Floodl } } -// method id "dfareporting.floodlightActivities.patch": - type FloodlightActivitiesPatchCall struct { s *Service profileId int64 @@ -34167,8 +24865,8 @@ type FloodlightActivitiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity. This method supports -// patch semantics. +// Patch: Updates an existing floodlight activity. This method supports patch +// semantics. // // - id: FloodlightActivity ID. // - profileId: User profile ID associated with this request. @@ -34181,23 +24879,21 @@ func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodligh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesPatchCall) Fields(s ...googleapi.Field) *FloodlightActivitiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesPatchCall) Context(ctx context.Context) *FloodlightActivitiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34206,18 +24902,12 @@ func (c *FloodlightActivitiesPatchCall) Header() http.Header { } func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -34230,16 +24920,15 @@ func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.patch" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34247,17 +24936,17 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -34270,46 +24959,7 @@ func (c *FloodlightActivitiesPatchCall) Do(opts ...googleapi.CallOption) (*Flood return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivities.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "FloodlightActivity ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivities.update": +} type FloodlightActivitiesUpdateCall struct { s *Service @@ -34331,23 +24981,21 @@ func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivitiesUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivitiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivitiesUpdateCall) Context(ctx context.Context) *FloodlightActivitiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivitiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34356,18 +25004,12 @@ func (c *FloodlightActivitiesUpdateCall) Header() http.Header { } func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivities") @@ -34380,16 +25022,15 @@ func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.update" call. -// Exactly one of *FloodlightActivity or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FloodlightActivity.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivity.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34397,17 +25038,17 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivity{ ServerResponse: googleapi.ServerResponse{ @@ -34420,38 +25061,7 @@ func (c *FloodlightActivitiesUpdateCall) Do(opts ...googleapi.CallOption) (*Floo return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity.", - // "flatPath": "userprofiles/{profileId}/floodlightActivities", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivities.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivities", - // "request": { - // "$ref": "FloodlightActivity" - // }, - // "response": { - // "$ref": "FloodlightActivity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.get": +} type FloodlightActivityGroupsGetCall struct { s *Service @@ -34475,33 +25085,29 @@ func (r *FloodlightActivityGroupsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsGetCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsGetCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsGetCall) Context(ctx context.Context) *FloodlightActivityGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34510,12 +25116,7 @@ func (c *FloodlightActivityGroupsGetCall) Header() http.Header { } func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34533,16 +25134,15 @@ func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.get" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34550,17 +25150,17 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -34573,43 +25173,7 @@ func (c *FloodlightActivityGroupsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight activity group by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight activity Group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups/{id}", - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.insert": +} type FloodlightActivityGroupsInsertCall struct { s *Service @@ -34631,23 +25195,21 @@ func (r *FloodlightActivityGroupsService) Insert(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsInsertCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsInsertCall) Context(ctx context.Context) *FloodlightActivityGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34656,18 +25218,12 @@ func (c *FloodlightActivityGroupsInsertCall) Header() http.Header { } func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -34680,16 +25236,15 @@ func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.insert" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34697,17 +25252,17 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -34720,38 +25275,7 @@ func (c *FloodlightActivityGroupsInsertCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Inserts a new floodlight activity group.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "POST", - // "id": "dfareporting.floodlightActivityGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.list": +} type FloodlightActivityGroupsListCall struct { s *Service @@ -34762,8 +25286,8 @@ type FloodlightActivityGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight activity groups, possibly -// filtered. This method supports paging. +// List: Retrieves a list of floodlight activity groups, possibly filtered. +// This method supports paging. // // - profileId: User profile ID associated with this request. func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActivityGroupsListCall { @@ -34773,26 +25297,25 @@ func (r *FloodlightActivityGroupsService) List(profileId int64) *FloodlightActiv } // AdvertiserId sets the optional parameter "advertiserId": Select only -// floodlight activity groups with the specified advertiser ID. Must -// specify either advertiserId or floodlightConfigurationId for a -// non-empty result. +// floodlight activity groups with the specified advertiser ID. Must specify +// either advertiserId or floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) AdvertiserId(advertiserId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // FloodlightConfigurationId sets the optional parameter -// "floodlightConfigurationId": Select only floodlight activity groups -// with the specified floodlight configuration ID. Must specify either -// advertiserId, or floodlightConfigurationId for a non-empty result. +// "floodlightConfigurationId": Select only floodlight activity groups with the +// specified floodlight configuration ID. Must specify either advertiserId, or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("floodlightConfigurationId", fmt.Sprint(floodlightConfigurationId)) return c } -// Ids sets the optional parameter "ids": Select only floodlight -// activity groups with the specified IDs. Must specify either -// advertiserId or floodlightConfigurationId for a non-empty result. +// Ids sets the optional parameter "ids": Select only floodlight activity +// groups with the specified IDs. Must specify either advertiserId or +// floodlightConfigurationId for a non-empty result. func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivityGroupsListCall { var ids_ []string for _, v := range ids { @@ -34802,8 +25325,8 @@ func (c *FloodlightActivityGroupsListCall) Ids(ids ...int64) *FloodlightActivity return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *FloodlightActivityGroupsListCall) MaxResults(maxResults int64) *FloodlightActivityGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -34816,23 +25339,22 @@ func (c *FloodlightActivityGroupsListCall) PageToken(pageToken string) *Floodlig return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "floodlightactivitygroup*2015" will return objects with -// names like "floodlightactivitygroup June 2015", -// "floodlightactivitygroup April 2015", or simply -// "floodlightactivitygroup 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "floodlightactivitygroup" will match -// objects with name "my floodlightactivitygroup activity", -// "floodlightactivitygroup 2015", or simply "floodlightactivitygroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "floodlightactivitygroup*2015" will return objects with names like +// "floodlightactivitygroup June 2015", "floodlightactivitygroup April 2015", +// or simply "floodlightactivitygroup 2015". Most of the searches also add +// wildcards implicitly at the start and the end of the search string. For +// example, a search string of "floodlightactivitygroup" will match objects +// with name "my floodlightactivitygroup activity", "floodlightactivitygroup +// 2015", or simply "floodlightactivitygroup". func (c *FloodlightActivityGroupsListCall) SearchString(searchString string) *FloodlightActivityGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -34843,8 +25365,7 @@ func (c *FloodlightActivityGroupsListCall) SortField(sortField string) *Floodlig return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -34855,8 +25376,8 @@ func (c *FloodlightActivityGroupsListCall) SortOrder(sortOrder string) *Floodlig return c } -// Type sets the optional parameter "type": Select only floodlight -// activity groups with the specified floodlight activity group type. +// Type sets the optional parameter "type": Select only floodlight activity +// groups with the specified floodlight activity group type. // // Possible values: // @@ -34868,33 +25389,29 @@ func (c *FloodlightActivityGroupsListCall) Type(type_ string) *FloodlightActivit } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsListCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightActivityGroupsListCall) IfNoneMatch(entityTag string) *FloodlightActivityGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsListCall) Context(ctx context.Context) *FloodlightActivityGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34903,12 +25420,7 @@ func (c *FloodlightActivityGroupsListCall) Header() http.Header { } func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34925,17 +25437,15 @@ func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.list" call. -// Exactly one of *FloodlightActivityGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightActivityGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightActivityGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34943,17 +25453,17 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -34966,111 +25476,6 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight activity groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightActivityGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only floodlight activity groups with the specified advertiser ID. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "floodlightConfigurationId": { - // "description": "Select only floodlight activity groups with the specified floodlight configuration ID. Must specify either advertiserId, or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only floodlight activity groups with the specified IDs. Must specify either advertiserId or floodlightConfigurationId for a non-empty result.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"floodlightactivitygroup*2015\" will return objects with names like \"floodlightactivitygroup June 2015\", \"floodlightactivitygroup April 2015\", or simply \"floodlightactivitygroup 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"floodlightactivitygroup\" will match objects with name \"my floodlightactivitygroup activity\", \"floodlightactivitygroup 2015\", or simply \"floodlightactivitygroup\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only floodlight activity groups with the specified floodlight activity group type.", - // "enum": [ - // "COUNTER", - // "SALE" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "response": { - // "$ref": "FloodlightActivityGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -35078,7 +25483,7 @@ func (c *FloodlightActivityGroupsListCall) Do(opts ...googleapi.CallOption) (*Fl // The provided context supersedes any context provided to the Context method. func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*FloodlightActivityGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -35094,8 +25499,6 @@ func (c *FloodlightActivityGroupsListCall) Pages(ctx context.Context, f func(*Fl } } -// method id "dfareporting.floodlightActivityGroups.patch": - type FloodlightActivityGroupsPatchCall struct { s *Service profileId int64 @@ -35105,8 +25508,8 @@ type FloodlightActivityGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight activity group. This method -// supports patch semantics. +// Patch: Updates an existing floodlight activity group. This method supports +// patch semantics. // // - id: FloodlightActivityGroup ID. // - profileId: User profile ID associated with this request. @@ -35119,23 +25522,21 @@ func (r *FloodlightActivityGroupsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsPatchCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsPatchCall) Context(ctx context.Context) *FloodlightActivityGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35144,18 +25545,12 @@ func (c *FloodlightActivityGroupsPatchCall) Header() http.Header { } func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -35168,16 +25563,15 @@ func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.patch" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35185,17 +25579,17 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -35208,46 +25602,7 @@ func (c *FloodlightActivityGroupsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightActivityGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "FloodlightActivityGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightActivityGroups.update": +} type FloodlightActivityGroupsUpdateCall struct { s *Service @@ -35269,23 +25624,21 @@ func (r *FloodlightActivityGroupsService) Update(profileId int64, floodlightacti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightActivityGroupsUpdateCall) Fields(s ...googleapi.Field) *FloodlightActivityGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightActivityGroupsUpdateCall) Context(ctx context.Context) *FloodlightActivityGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35294,18 +25647,12 @@ func (c *FloodlightActivityGroupsUpdateCall) Header() http.Header { } func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightactivitygroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightActivityGroups") @@ -35318,16 +25665,15 @@ func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.update" call. -// Exactly one of *FloodlightActivityGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightActivityGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightActivityGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35335,17 +25681,17 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightActivityGroup{ ServerResponse: googleapi.ServerResponse{ @@ -35358,38 +25704,7 @@ func (c *FloodlightActivityGroupsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight activity group.", - // "flatPath": "userprofiles/{profileId}/floodlightActivityGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightActivityGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightActivityGroups", - // "request": { - // "$ref": "FloodlightActivityGroup" - // }, - // "response": { - // "$ref": "FloodlightActivityGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.get": +} type FloodlightConfigurationsGetCall struct { s *Service @@ -35413,33 +25728,29 @@ func (r *FloodlightConfigurationsService) Get(profileId int64, id int64) *Floodl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsGetCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsGetCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsGetCall) Context(ctx context.Context) *FloodlightConfigurationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35448,12 +25759,7 @@ func (c *FloodlightConfigurationsGetCall) Header() http.Header { } func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35471,16 +25777,15 @@ func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.get" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35488,17 +25793,17 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -35511,43 +25816,7 @@ func (c *FloodlightConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Flo return nil, err } return ret, nil - // { - // "description": "Gets one floodlight configuration by ID.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Floodlight configuration ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations/{id}", - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.list": +} type FloodlightConfigurationsListCall struct { s *Service @@ -35558,8 +25827,7 @@ type FloodlightConfigurationsListCall struct { header_ http.Header } -// List: Retrieves a list of floodlight configurations, possibly -// filtered. +// List: Retrieves a list of floodlight configurations, possibly filtered. // // - profileId: User profile ID associated with this request. func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfigurationsListCall { @@ -35569,8 +25837,8 @@ func (r *FloodlightConfigurationsService) List(profileId int64) *FloodlightConfi } // Ids sets the optional parameter "ids": Set of IDs of floodlight -// configurations to retrieve. Required field; otherwise an empty list -// will be returned. +// configurations to retrieve. Required field; otherwise an empty list will be +// returned. func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigurationsListCall { var ids_ []string for _, v := range ids { @@ -35581,33 +25849,29 @@ func (c *FloodlightConfigurationsListCall) Ids(ids ...int64) *FloodlightConfigur } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsListCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightConfigurationsListCall) IfNoneMatch(entityTag string) *FloodlightConfigurationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsListCall) Context(ctx context.Context) *FloodlightConfigurationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35616,12 +25880,7 @@ func (c *FloodlightConfigurationsListCall) Header() http.Header { } func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35638,17 +25897,15 @@ func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.list" call. -// Exactly one of *FloodlightConfigurationsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *FloodlightConfigurationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightConfigurationsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*FloodlightConfigurationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35656,17 +25913,17 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfigurationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -35679,42 +25936,7 @@ func (c *FloodlightConfigurationsListCall) Do(opts ...googleapi.CallOption) (*Fl return nil, err } return ret, nil - // { - // "description": "Retrieves a list of floodlight configurations, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - // "httpMethod": "GET", - // "id": "dfareporting.floodlightConfigurations.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will be returned.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "response": { - // "$ref": "FloodlightConfigurationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.patch": +} type FloodlightConfigurationsPatchCall struct { s *Service @@ -35725,8 +25947,8 @@ type FloodlightConfigurationsPatchCall struct { header_ http.Header } -// Patch: Updates an existing floodlight configuration. This method -// supports patch semantics. +// Patch: Updates an existing floodlight configuration. This method supports +// patch semantics. // // - id: FloodlightConfiguration ID. // - profileId: User profile ID associated with this request. @@ -35739,23 +25961,21 @@ func (r *FloodlightConfigurationsService) Patch(profileId int64, id int64, flood } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsPatchCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsPatchCall) Context(ctx context.Context) *FloodlightConfigurationsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35764,18 +25984,12 @@ func (c *FloodlightConfigurationsPatchCall) Header() http.Header { } func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -35788,16 +26002,15 @@ func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.patch" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35805,17 +26018,17 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -35828,46 +26041,7 @@ func (c *FloodlightConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*F return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - // "httpMethod": "PATCH", - // "id": "dfareporting.floodlightConfigurations.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "FloodlightConfiguration ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.floodlightConfigurations.update": +} type FloodlightConfigurationsUpdateCall struct { s *Service @@ -35889,23 +26063,21 @@ func (r *FloodlightConfigurationsService) Update(profileId int64, floodlightconf } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightConfigurationsUpdateCall) Fields(s ...googleapi.Field) *FloodlightConfigurationsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightConfigurationsUpdateCall) Context(ctx context.Context) *FloodlightConfigurationsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35914,18 +26086,12 @@ func (c *FloodlightConfigurationsUpdateCall) Header() http.Header { } func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightconfiguration) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/floodlightConfigurations") @@ -35938,16 +26104,15 @@ func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.update" call. -// Exactly one of *FloodlightConfiguration or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *FloodlightConfiguration.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (*FloodlightConfiguration, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35955,17 +26120,17 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FloodlightConfiguration{ ServerResponse: googleapi.ServerResponse{ @@ -35978,38 +26143,7 @@ func (c *FloodlightConfigurationsUpdateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates an existing floodlight configuration.", - // "flatPath": "userprofiles/{profileId}/floodlightConfigurations", - // "httpMethod": "PUT", - // "id": "dfareporting.floodlightConfigurations.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/floodlightConfigurations", - // "request": { - // "$ref": "FloodlightConfiguration" - // }, - // "response": { - // "$ref": "FloodlightConfiguration" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.get": +} type InventoryItemsGetCall struct { s *Service @@ -36036,33 +26170,29 @@ func (r *InventoryItemsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsGetCall) Fields(s ...googleapi.Field) *InventoryItemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsGetCall) IfNoneMatch(entityTag string) *InventoryItemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsGetCall) Context(ctx context.Context) *InventoryItemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36071,12 +26201,7 @@ func (c *InventoryItemsGetCall) Header() http.Header { } func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36095,16 +26220,14 @@ func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.get" call. -// Exactly one of *InventoryItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InventoryItem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventoryItem.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36112,17 +26235,17 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItem{ ServerResponse: googleapi.ServerResponse{ @@ -36135,51 +26258,7 @@ func (c *InventoryItemsGetCall) Do(opts ...googleapi.CallOption) (*InventoryItem return nil, err } return ret, nil - // { - // "description": "Gets one inventory item by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Inventory item ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}", - // "response": { - // "$ref": "InventoryItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.inventoryItems.list": +} type InventoryItemsListCall struct { s *Service @@ -36191,8 +26270,8 @@ type InventoryItemsListCall struct { header_ http.Header } -// List: Retrieves a list of inventory items, possibly filtered. This -// method supports paging. +// List: Retrieves a list of inventory items, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. // - projectId: Project ID for order documents. @@ -36203,8 +26282,8 @@ func (r *InventoryItemsService) List(profileId int64, projectId int64) *Inventor return c } -// Ids sets the optional parameter "ids": Select only inventory items -// with these IDs. +// Ids sets the optional parameter "ids": Select only inventory items with +// these IDs. func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { var ids_ []string for _, v := range ids { @@ -36214,22 +26293,22 @@ func (c *InventoryItemsListCall) Ids(ids ...int64) *InventoryItemsListCall { return c } -// InPlan sets the optional parameter "inPlan": Select only inventory -// items that are in plan. +// InPlan sets the optional parameter "inPlan": Select only inventory items +// that are in plan. func (c *InventoryItemsListCall) InPlan(inPlan bool) *InventoryItemsListCall { c.urlParams_.Set("inPlan", fmt.Sprint(inPlan)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *InventoryItemsListCall) MaxResults(maxResults int64) *InventoryItemsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only inventory -// items that belong to specified orders. +// OrderId sets the optional parameter "orderId": Select only inventory items +// that belong to specified orders. func (c *InventoryItemsListCall) OrderId(orderId ...int64) *InventoryItemsListCall { var orderId_ []string for _, v := range orderId { @@ -36246,8 +26325,8 @@ func (c *InventoryItemsListCall) PageToken(pageToken string) *InventoryItemsList return c } -// SiteId sets the optional parameter "siteId": Select only inventory -// items that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only inventory items +// that are associated with these sites. func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall { var siteId_ []string for _, v := range siteId { @@ -36257,8 +26336,8 @@ func (c *InventoryItemsListCall) SiteId(siteId ...int64) *InventoryItemsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -36269,8 +26348,7 @@ func (c *InventoryItemsListCall) SortField(sortField string) *InventoryItemsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -36281,8 +26359,8 @@ func (c *InventoryItemsListCall) SortOrder(sortOrder string) *InventoryItemsList return c } -// Type sets the optional parameter "type": Select only inventory items -// with this type. +// Type sets the optional parameter "type": Select only inventory items with +// this type. // // Possible values: // @@ -36294,33 +26372,29 @@ func (c *InventoryItemsListCall) Type(type_ string) *InventoryItemsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventoryItemsListCall) Fields(s ...googleapi.Field) *InventoryItemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventoryItemsListCall) IfNoneMatch(entityTag string) *InventoryItemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventoryItemsListCall) Context(ctx context.Context) *InventoryItemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventoryItemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36329,12 +26403,7 @@ func (c *InventoryItemsListCall) Header() http.Header { } func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36352,16 +26421,15 @@ func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.list" call. -// Exactly one of *InventoryItemsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *InventoryItemsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *InventoryItemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryItemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36369,17 +26437,17 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InventoryItemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36392,121 +26460,6 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte return nil, err } return ret, nil - // { - // "description": "Retrieves a list of inventory items, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - // "httpMethod": "GET", - // "id": "dfareporting.inventoryItems.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only inventory items with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "inPlan": { - // "description": "Select only inventory items that are in plan.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only inventory items that belong to specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "siteId": { - // "description": "Select only inventory items that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Select only inventory items with this type.", - // "enum": [ - // "PLANNING_PLACEMENT_TYPE_REGULAR", - // "PLANNING_PLACEMENT_TYPE_CREDIT" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/inventoryItems", - // "response": { - // "$ref": "InventoryItemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -36514,7 +26467,7 @@ func (c *InventoryItemsListCall) Do(opts ...googleapi.CallOption) (*InventoryIte // The provided context supersedes any context provided to the Context method. func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryItemsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -36530,8 +26483,6 @@ func (c *InventoryItemsListCall) Pages(ctx context.Context, f func(*InventoryIte } } -// method id "dfareporting.languages.list": - type LanguagesListCall struct { s *Service profileId int64 @@ -36551,33 +26502,29 @@ func (r *LanguagesService) List(profileId int64) *LanguagesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LanguagesListCall) Fields(s ...googleapi.Field) *LanguagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LanguagesListCall) IfNoneMatch(entityTag string) *LanguagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LanguagesListCall) Context(ctx context.Context) *LanguagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LanguagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36586,12 +26533,7 @@ func (c *LanguagesListCall) Header() http.Header { } func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36608,16 +26550,15 @@ func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.languages.list" call. -// Exactly one of *LanguagesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *LanguagesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LanguagesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36625,17 +26566,17 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LanguagesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36648,35 +26589,7 @@ func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of languages.", - // "flatPath": "userprofiles/{profileId}/languages", - // "httpMethod": "GET", - // "id": "dfareporting.languages.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/languages", - // "response": { - // "$ref": "LanguagesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.metros.list": +} type MetrosListCall struct { s *Service @@ -36697,33 +26610,29 @@ func (r *MetrosService) List(profileId int64) *MetrosListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MetrosListCall) Fields(s ...googleapi.Field) *MetrosListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MetrosListCall) IfNoneMatch(entityTag string) *MetrosListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MetrosListCall) Context(ctx context.Context) *MetrosListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MetrosListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36732,12 +26641,7 @@ func (c *MetrosListCall) Header() http.Header { } func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36754,16 +26658,15 @@ func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.metros.list" call. -// Exactly one of *MetrosListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MetrosListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MetrosListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36771,17 +26674,17 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MetrosListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -36794,35 +26697,7 @@ func (c *MetrosListCall) Do(opts ...googleapi.CallOption) (*MetrosListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of metros.", - // "flatPath": "userprofiles/{profileId}/metros", - // "httpMethod": "GET", - // "id": "dfareporting.metros.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/metros", - // "response": { - // "$ref": "MetrosListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileApps.get": +} type MobileAppsGetCall struct { s *Service @@ -36846,33 +26721,29 @@ func (r *MobileAppsService) Get(profileId int64, id string) *MobileAppsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileAppsGetCall) Fields(s ...googleapi.Field) *MobileAppsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileAppsGetCall) IfNoneMatch(entityTag string) *MobileAppsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileAppsGetCall) Context(ctx context.Context) *MobileAppsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileAppsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36881,12 +26752,7 @@ func (c *MobileAppsGetCall) Header() http.Header { } func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36904,16 +26770,14 @@ func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileApps.get" call. -// Exactly one of *MobileApp or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileApp.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileApp.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36921,17 +26785,17 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileApp{ ServerResponse: googleapi.ServerResponse{ @@ -36944,42 +26808,7 @@ func (c *MobileAppsGetCall) Do(opts ...googleapi.CallOption) (*MobileApp, error) return nil, err } return ret, nil - // { - // "description": "Gets one mobile app by ID.", - // "flatPath": "userprofiles/{profileId}/mobileApps/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.mobileApps.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile app ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileApps/{id}", - // "response": { - // "$ref": "MobileApp" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileApps.list": +} type MobileAppsListCall struct { s *Service @@ -36999,8 +26828,8 @@ func (r *MobileAppsService) List(profileId int64) *MobileAppsListCall { return c } -// Directories sets the optional parameter "directories": Select only -// apps from these directories. +// Directories sets the optional parameter "directories": Select only apps from +// these directories. // // Possible values: // @@ -37012,15 +26841,14 @@ func (c *MobileAppsListCall) Directories(directories ...string) *MobileAppsListC return c } -// Ids sets the optional parameter "ids": Select only apps with these -// IDs. +// Ids sets the optional parameter "ids": Select only apps with these IDs. func (c *MobileAppsListCall) Ids(ids ...string) *MobileAppsListCall { c.urlParams_.SetMulti("ids", append([]string{}, ids...)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *MobileAppsListCall) MaxResults(maxResults int64) *MobileAppsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -37033,46 +26861,42 @@ func (c *MobileAppsListCall) PageToken(pageToken string) *MobileAppsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "app*2015" will return objects with names like "app Jan -// 2018", "app Jan 2018", or simply "app 2018". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "app" will match objects with -// name "my app", "app 2018", or simply "app". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "app*2015" will return objects with names like "app Jan 2018", "app Jan +// 2018", or simply "app 2018". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "app" will match objects with name "my app", "app 2018", or +// simply "app". func (c *MobileAppsListCall) SearchString(searchString string) *MobileAppsListCall { c.urlParams_.Set("searchString", searchString) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileAppsListCall) Fields(s ...googleapi.Field) *MobileAppsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileAppsListCall) IfNoneMatch(entityTag string) *MobileAppsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileAppsListCall) Context(ctx context.Context) *MobileAppsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileAppsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37081,12 +26905,7 @@ func (c *MobileAppsListCall) Header() http.Header { } func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37103,16 +26922,15 @@ func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileApps.list" call. -// Exactly one of *MobileAppsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *MobileAppsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileAppsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37120,17 +26938,17 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileAppsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37143,73 +26961,6 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves list of available mobile apps.", - // "flatPath": "userprofiles/{profileId}/mobileApps", - // "httpMethod": "GET", - // "id": "dfareporting.mobileApps.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "directories": { - // "description": "Select only apps from these directories.", - // "enum": [ - // "UNKNOWN", - // "APPLE_APP_STORE", - // "GOOGLE_PLAY_STORE" - // ], - // "enumDescriptions": [ - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only apps with these IDs.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"app*2015\" will return objects with names like \"app Jan 2018\", \"app Jan 2018\", or simply \"app 2018\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"app\" will match objects with name \"my app\", \"app 2018\", or simply \"app\".", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileApps", - // "response": { - // "$ref": "MobileAppsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -37217,7 +26968,7 @@ func (c *MobileAppsListCall) Do(opts ...googleapi.CallOption) (*MobileAppsListRe // The provided context supersedes any context provided to the Context method. func (c *MobileAppsListCall) Pages(ctx context.Context, f func(*MobileAppsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -37233,8 +26984,6 @@ func (c *MobileAppsListCall) Pages(ctx context.Context, f func(*MobileAppsListRe } } -// method id "dfareporting.mobileCarriers.get": - type MobileCarriersGetCall struct { s *Service profileId int64 @@ -37257,33 +27006,29 @@ func (r *MobileCarriersService) Get(profileId int64, id int64) *MobileCarriersGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersGetCall) Fields(s ...googleapi.Field) *MobileCarriersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersGetCall) IfNoneMatch(entityTag string) *MobileCarriersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersGetCall) Context(ctx context.Context) *MobileCarriersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37292,12 +27037,7 @@ func (c *MobileCarriersGetCall) Header() http.Header { } func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37315,16 +27055,14 @@ func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.get" call. -// Exactly one of *MobileCarrier or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *MobileCarrier.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *MobileCarrier.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37332,17 +27070,17 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarrier{ ServerResponse: googleapi.ServerResponse{ @@ -37355,43 +27093,7 @@ func (c *MobileCarriersGetCall) Do(opts ...googleapi.CallOption) (*MobileCarrier return nil, err } return ret, nil - // { - // "description": "Gets one mobile carrier by ID.", - // "flatPath": "userprofiles/{profileId}/mobileCarriers/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Mobile carrier ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers/{id}", - // "response": { - // "$ref": "MobileCarrier" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.mobileCarriers.list": +} type MobileCarriersListCall struct { s *Service @@ -37412,33 +27114,29 @@ func (r *MobileCarriersService) List(profileId int64) *MobileCarriersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MobileCarriersListCall) Fields(s ...googleapi.Field) *MobileCarriersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MobileCarriersListCall) IfNoneMatch(entityTag string) *MobileCarriersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MobileCarriersListCall) Context(ctx context.Context) *MobileCarriersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MobileCarriersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37447,12 +27145,7 @@ func (c *MobileCarriersListCall) Header() http.Header { } func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37469,16 +27162,15 @@ func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.list" call. -// Exactly one of *MobileCarriersListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *MobileCarriersListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *MobileCarriersListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarriersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37486,17 +27178,17 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &MobileCarriersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37509,35 +27201,7 @@ func (c *MobileCarriersListCall) Do(opts ...googleapi.CallOption) (*MobileCarrie return nil, err } return ret, nil - // { - // "description": "Retrieves a list of mobile carriers.", - // "flatPath": "userprofiles/{profileId}/mobileCarriers", - // "httpMethod": "GET", - // "id": "dfareporting.mobileCarriers.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/mobileCarriers", - // "response": { - // "$ref": "MobileCarriersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.get": +} type OperatingSystemVersionsGetCall struct { s *Service @@ -37561,33 +27225,29 @@ func (r *OperatingSystemVersionsService) Get(profileId int64, id int64) *Operati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsGetCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsGetCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsGetCall) Context(ctx context.Context) *OperatingSystemVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37596,12 +27256,7 @@ func (c *OperatingSystemVersionsGetCall) Header() http.Header { } func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37619,16 +27274,15 @@ func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.get" call. -// Exactly one of *OperatingSystemVersion or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OperatingSystemVersion.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersion.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37636,17 +27290,17 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersion{ ServerResponse: googleapi.ServerResponse{ @@ -37659,43 +27313,7 @@ func (c *OperatingSystemVersionsGetCall) Do(opts ...googleapi.CallOption) (*Oper return nil, err } return ret, nil - // { - // "description": "Gets one operating system version by ID.", - // "flatPath": "userprofiles/{profileId}/operatingSystemVersions/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Operating system version ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions/{id}", - // "response": { - // "$ref": "OperatingSystemVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystemVersions.list": +} type OperatingSystemVersionsListCall struct { s *Service @@ -37716,33 +27334,29 @@ func (r *OperatingSystemVersionsService) List(profileId int64) *OperatingSystemV } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemVersionsListCall) Fields(s ...googleapi.Field) *OperatingSystemVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemVersionsListCall) IfNoneMatch(entityTag string) *OperatingSystemVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemVersionsListCall) Context(ctx context.Context) *OperatingSystemVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37751,12 +27365,7 @@ func (c *OperatingSystemVersionsListCall) Header() http.Header { } func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37773,17 +27382,15 @@ func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.list" call. -// Exactly one of *OperatingSystemVersionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemVersionsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemVersionsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemVersionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37791,17 +27398,17 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemVersionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -37814,35 +27421,7 @@ func (c *OperatingSystemVersionsListCall) Do(opts ...googleapi.CallOption) (*Ope return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating system versions.", - // "flatPath": "userprofiles/{profileId}/operatingSystemVersions", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystemVersions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystemVersions", - // "response": { - // "$ref": "OperatingSystemVersionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.get": +} type OperatingSystemsGetCall struct { s *Service @@ -37866,33 +27445,29 @@ func (r *OperatingSystemsService) Get(profileId int64, dartId int64) *OperatingS } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsGetCall) Fields(s ...googleapi.Field) *OperatingSystemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsGetCall) IfNoneMatch(entityTag string) *OperatingSystemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsGetCall) Context(ctx context.Context) *OperatingSystemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37901,12 +27476,7 @@ func (c *OperatingSystemsGetCall) Header() http.Header { } func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37924,16 +27494,15 @@ func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.get" call. -// Exactly one of *OperatingSystem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OperatingSystem.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystem.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSystem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37941,17 +27510,17 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystem{ ServerResponse: googleapi.ServerResponse{ @@ -37964,43 +27533,7 @@ func (c *OperatingSystemsGetCall) Do(opts ...googleapi.CallOption) (*OperatingSy return nil, err } return ret, nil - // { - // "description": "Gets one operating system by DART ID.", - // "flatPath": "userprofiles/{profileId}/operatingSystems/{dartId}", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.get", - // "parameterOrder": [ - // "profileId", - // "dartId" - // ], - // "parameters": { - // "dartId": { - // "description": "Operating system DART ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems/{dartId}", - // "response": { - // "$ref": "OperatingSystem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.operatingSystems.list": +} type OperatingSystemsListCall struct { s *Service @@ -38021,33 +27554,29 @@ func (r *OperatingSystemsService) List(profileId int64) *OperatingSystemsListCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperatingSystemsListCall) Fields(s ...googleapi.Field) *OperatingSystemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperatingSystemsListCall) IfNoneMatch(entityTag string) *OperatingSystemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperatingSystemsListCall) Context(ctx context.Context) *OperatingSystemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperatingSystemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38056,12 +27585,7 @@ func (c *OperatingSystemsListCall) Header() http.Header { } func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38078,16 +27602,15 @@ func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.list" call. -// Exactly one of *OperatingSystemsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *OperatingSystemsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperatingSystemsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingSystemsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38095,17 +27618,17 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperatingSystemsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -38118,35 +27641,7 @@ func (c *OperatingSystemsListCall) Do(opts ...googleapi.CallOption) (*OperatingS return nil, err } return ret, nil - // { - // "description": "Retrieves a list of operating systems.", - // "flatPath": "userprofiles/{profileId}/operatingSystems", - // "httpMethod": "GET", - // "id": "dfareporting.operatingSystems.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/operatingSystems", - // "response": { - // "$ref": "OperatingSystemsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.get": +} type OrderDocumentsGetCall struct { s *Service @@ -38173,33 +27668,29 @@ func (r *OrderDocumentsService) Get(profileId int64, projectId int64, id int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsGetCall) Fields(s ...googleapi.Field) *OrderDocumentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsGetCall) IfNoneMatch(entityTag string) *OrderDocumentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsGetCall) Context(ctx context.Context) *OrderDocumentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38208,12 +27699,7 @@ func (c *OrderDocumentsGetCall) Header() http.Header { } func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38232,16 +27718,14 @@ func (c *OrderDocumentsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.get" call. -// Exactly one of *OrderDocument or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OrderDocument.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrderDocument.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38249,17 +27733,17 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocument{ ServerResponse: googleapi.ServerResponse{ @@ -38272,51 +27756,7 @@ func (c *OrderDocumentsGetCall) Do(opts ...googleapi.CallOption) (*OrderDocument return nil, err } return ret, nil - // { - // "description": "Gets one order document by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order document ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}", - // "response": { - // "$ref": "OrderDocument" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orderDocuments.list": +} type OrderDocumentsListCall struct { s *Service @@ -38328,8 +27768,8 @@ type OrderDocumentsListCall struct { header_ http.Header } -// List: Retrieves a list of order documents, possibly filtered. This -// method supports paging. +// List: Retrieves a list of order documents, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. // - projectId: Project ID for order documents. @@ -38340,15 +27780,15 @@ func (r *OrderDocumentsService) List(profileId int64, projectId int64) *OrderDoc return c } -// Approved sets the optional parameter "approved": Select only order -// documents that have been approved by at least one user. +// Approved sets the optional parameter "approved": Select only order documents +// that have been approved by at least one user. func (c *OrderDocumentsListCall) Approved(approved bool) *OrderDocumentsListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// Ids sets the optional parameter "ids": Select only order documents -// with these IDs. +// Ids sets the optional parameter "ids": Select only order documents with +// these IDs. func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { var ids_ []string for _, v := range ids { @@ -38358,15 +27798,15 @@ func (c *OrderDocumentsListCall) Ids(ids ...int64) *OrderDocumentsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrderDocumentsListCall) MaxResults(maxResults int64) *OrderDocumentsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderId sets the optional parameter "orderId": Select only order -// documents for specified orders. +// OrderId sets the optional parameter "orderId": Select only order documents +// for specified orders. func (c *OrderDocumentsListCall) OrderId(orderId ...int64) *OrderDocumentsListCall { var orderId_ []string for _, v := range orderId { @@ -38383,22 +27823,21 @@ func (c *OrderDocumentsListCall) PageToken(pageToken string) *OrderDocumentsList return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for order documents by name or ID. Wildcards (*) are -// allowed. For example, "orderdocument*2015" will return order -// documents with names like "orderdocument June 2015", "orderdocument -// April 2015", or simply "orderdocument 2015". Most of the searches -// also add wildcards implicitly at the start and the end of the search -// string. For example, a search string of "orderdocument" will match -// order documents with name "my orderdocument", "orderdocument 2015", -// or simply "orderdocument". +// SearchString sets the optional parameter "searchString": Allows searching +// for order documents by name or ID. Wildcards (*) are allowed. For example, +// "orderdocument*2015" will return order documents with names like +// "orderdocument June 2015", "orderdocument April 2015", or simply +// "orderdocument 2015". Most of the searches also add wildcards implicitly at +// the start and the end of the search string. For example, a search string of +// "orderdocument" will match order documents with name "my orderdocument", +// "orderdocument 2015", or simply "orderdocument". func (c *OrderDocumentsListCall) SearchString(searchString string) *OrderDocumentsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only order -// documents that are associated with these sites. +// SiteId sets the optional parameter "siteId": Select only order documents +// that are associated with these sites. func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall { var siteId_ []string for _, v := range siteId { @@ -38408,8 +27847,8 @@ func (c *OrderDocumentsListCall) SiteId(siteId ...int64) *OrderDocumentsListCall return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -38420,8 +27859,7 @@ func (c *OrderDocumentsListCall) SortField(sortField string) *OrderDocumentsList return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -38433,33 +27871,29 @@ func (c *OrderDocumentsListCall) SortOrder(sortOrder string) *OrderDocumentsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrderDocumentsListCall) Fields(s ...googleapi.Field) *OrderDocumentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrderDocumentsListCall) IfNoneMatch(entityTag string) *OrderDocumentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrderDocumentsListCall) Context(ctx context.Context) *OrderDocumentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrderDocumentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38468,12 +27902,7 @@ func (c *OrderDocumentsListCall) Header() http.Header { } func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38491,16 +27920,15 @@ func (c *OrderDocumentsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orderDocuments.list" call. -// Exactly one of *OrderDocumentsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *OrderDocumentsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *OrderDocumentsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumentsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38508,17 +27936,17 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrderDocumentsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -38531,113 +27959,6 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen return nil, err } return ret, nil - // { - // "description": "Retrieves a list of order documents, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "httpMethod": "GET", - // "id": "dfareporting.orderDocuments.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "approved": { - // "description": "Select only order documents that have been approved by at least one user.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only order documents with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "orderId": { - // "description": "Select only order documents for specified orders.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for order documents.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for order documents by name or ID. Wildcards (*) are allowed. For example, \"orderdocument*2015\" will return order documents with names like \"orderdocument June 2015\", \"orderdocument April 2015\", or simply \"orderdocument 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"orderdocument\" will match order documents with name \"my orderdocument\", \"orderdocument 2015\", or simply \"orderdocument\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only order documents that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orderDocuments", - // "response": { - // "$ref": "OrderDocumentsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -38645,7 +27966,7 @@ func (c *OrderDocumentsListCall) Do(opts ...googleapi.CallOption) (*OrderDocumen // The provided context supersedes any context provided to the Context method. func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumentsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -38661,8 +27982,6 @@ func (c *OrderDocumentsListCall) Pages(ctx context.Context, f func(*OrderDocumen } } -// method id "dfareporting.orders.get": - type OrdersGetCall struct { s *Service profileId int64 @@ -38688,33 +28007,29 @@ func (r *OrdersService) Get(profileId int64, projectId int64, id int64) *OrdersG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38723,12 +28038,7 @@ func (c *OrdersGetCall) Header() http.Header { } func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38747,16 +28057,14 @@ func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Order.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38764,17 +28072,17 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Order{ ServerResponse: googleapi.ServerResponse{ @@ -38787,51 +28095,7 @@ func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { return nil, err } return ret, nil - // { - // "description": "Gets one order by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.orders.get", - // "parameterOrder": [ - // "profileId", - // "projectId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Order ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders/{id}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.orders.list": +} type OrdersListCall struct { s *Service @@ -38843,8 +28107,8 @@ type OrdersListCall struct { header_ http.Header } -// List: Retrieves a list of orders, possibly filtered. This method -// supports paging. +// List: Retrieves a list of orders, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. // - projectId: Project ID for orders. @@ -38855,8 +28119,7 @@ func (r *OrdersService) List(profileId int64, projectId int64) *OrdersListCall { return c } -// Ids sets the optional parameter "ids": Select only orders with these -// IDs. +// Ids sets the optional parameter "ids": Select only orders with these IDs. func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { var ids_ []string for _, v := range ids { @@ -38866,8 +28129,8 @@ func (c *OrdersListCall) Ids(ids ...int64) *OrdersListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -38880,20 +28143,20 @@ func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for orders by name or ID. Wildcards (*) are allowed. For -// example, "order*2015" will return orders with names like "order June -// 2015", "order April 2015", or simply "order 2015". Most of the -// searches also add wildcards implicitly at the start and the end of -// the search string. For example, a search string of "order" will match -// orders with name "my order", "order 2015", or simply "order". +// SearchString sets the optional parameter "searchString": Allows searching +// for orders by name or ID. Wildcards (*) are allowed. For example, +// "order*2015" will return orders with names like "order June 2015", "order +// April 2015", or simply "order 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "order" will match orders with name "my order", "order +// 2015", or simply "order". func (c *OrdersListCall) SearchString(searchString string) *OrdersListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteId sets the optional parameter "siteId": Select only orders that -// are associated with these site IDs. +// SiteId sets the optional parameter "siteId": Select only orders that are +// associated with these site IDs. func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { var siteId_ []string for _, v := range siteId { @@ -38903,8 +28166,8 @@ func (c *OrdersListCall) SiteId(siteId ...int64) *OrdersListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -38915,8 +28178,7 @@ func (c *OrdersListCall) SortField(sortField string) *OrdersListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -38928,33 +28190,29 @@ func (c *OrdersListCall) SortOrder(sortOrder string) *OrdersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38963,12 +28221,7 @@ func (c *OrdersListCall) Header() http.Header { } func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38986,16 +28239,15 @@ func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.list" call. -// Exactly one of *OrdersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrdersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrdersListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39003,17 +28255,17 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrdersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -39026,101 +28278,6 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, return nil, err } return ret, nil - // { - // "description": "Retrieves a list of orders, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/projects/{projectId}/orders", - // "httpMethod": "GET", - // "id": "dfareporting.orders.list", - // "parameterOrder": [ - // "profileId", - // "projectId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only orders with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "Project ID for orders.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, \"order*2015\" will return orders with names like \"order June 2015\", \"order April 2015\", or simply \"order 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"order\" will match orders with name \"my order\", \"order 2015\", or simply \"order\".", - // "location": "query", - // "type": "string" - // }, - // "siteId": { - // "description": "Select only orders that are associated with these site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{projectId}/orders", - // "response": { - // "$ref": "OrdersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -39128,7 +28285,7 @@ func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, // The provided context supersedes any context provided to the Context method. func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -39144,8 +28301,6 @@ func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) } } -// method id "dfareporting.placementGroups.get": - type PlacementGroupsGetCall struct { s *Service profileId int64 @@ -39168,33 +28323,29 @@ func (r *PlacementGroupsService) Get(profileId int64, id int64) *PlacementGroups } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsGetCall) Fields(s ...googleapi.Field) *PlacementGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsGetCall) IfNoneMatch(entityTag string) *PlacementGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsGetCall) Context(ctx context.Context) *PlacementGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39203,12 +28354,7 @@ func (c *PlacementGroupsGetCall) Header() http.Header { } func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39226,16 +28372,14 @@ func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.get" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39243,17 +28387,17 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -39266,43 +28410,7 @@ func (c *PlacementGroupsGetCall) Do(opts ...googleapi.CallOption) (*PlacementGro return nil, err } return ret, nil - // { - // "description": "Gets one placement group by ID.", - // "flatPath": "userprofiles/{profileId}/placementGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups/{id}", - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.insert": +} type PlacementGroupsInsertCall struct { s *Service @@ -39324,23 +28432,21 @@ func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsInsertCall) Fields(s ...googleapi.Field) *PlacementGroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsInsertCall) Context(ctx context.Context) *PlacementGroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39349,18 +28455,12 @@ func (c *PlacementGroupsInsertCall) Header() http.Header { } func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -39373,16 +28473,14 @@ func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.insert" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39390,17 +28488,17 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -39413,38 +28511,7 @@ func (c *PlacementGroupsInsertCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Inserts a new placement group.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "POST", - // "id": "dfareporting.placementGroups.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.list": +} type PlacementGroupsListCall struct { s *Service @@ -39455,8 +28522,8 @@ type PlacementGroupsListCall struct { header_ http.Header } -// List: Retrieves a list of placement groups, possibly filtered. This -// method supports paging. +// List: Retrieves a list of placement groups, possibly filtered. This method +// supports paging. // // - profileId: User profile ID associated with this request. func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall { @@ -39465,8 +28532,8 @@ func (r *PlacementGroupsService) List(profileId int64) *PlacementGroupsListCall return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placement groups that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placement groups that belong to these advertisers. func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementGroupsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -39477,15 +28544,15 @@ func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *Placeme } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementGroupsListCall) Archived(archived bool) *PlacementGroupsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// placement groups that belong to these campaigns. +// CampaignIds sets the optional parameter "campaignIds": Select only placement +// groups that belong to these campaigns. func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGroupsListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -39495,9 +28562,8 @@ func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGr return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placement groups that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placement groups that are associated with these content categories. func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementGroupsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -39507,9 +28573,8 @@ func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64 return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placement groups that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placement groups that are associated with these directory sites. func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementGroupsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -39519,8 +28584,8 @@ func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *P return c } -// Ids sets the optional parameter "ids": Select only placement groups -// with these IDs. +// Ids sets the optional parameter "ids": Select only placement groups with +// these IDs. func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { var ids_ []string for _, v := range ids { @@ -39530,16 +28595,16 @@ func (c *PlacementGroupsListCall) Ids(ids ...int64) *PlacementGroupsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MaxEndDate(maxEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementGroupsListCall) MaxResults(maxResults int64) *PlacementGroupsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -39553,17 +28618,17 @@ func (c *PlacementGroupsListCall) MaxStartDate(maxStartDate string) *PlacementGr return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinEndDate(minEndDate string) *PlacementGroupsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementGroupsListCall) MinStartDate(minStartDate string) *PlacementGroupsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -39576,13 +28641,13 @@ func (c *PlacementGroupsListCall) PageToken(pageToken string) *PlacementGroupsLi return c } -// PlacementGroupType sets the optional parameter "placementGroupType": -// Select only placement groups belonging with this group type. A -// package is a simple group of placements that acts as a single pricing -// point for a group of tags. A roadblock is a group of placements that -// not only acts as a single pricing point but also assumes that all the -// tags in it will be served at the same time. A roadblock requires one -// of its assigned placements to be marked as primary for reporting. +// PlacementGroupType sets the optional parameter "placementGroupType": Select +// only placement groups belonging with this group type. A package is a simple +// group of placements that acts as a single pricing point for a group of tags. +// A roadblock is a group of placements that not only acts as a single pricing +// point but also assumes that all the tags in it will be served at the same +// time. A roadblock requires one of its assigned placements to be marked as +// primary for reporting. // // Possible values: // @@ -39593,9 +28658,9 @@ func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placement groups that are -// associated with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placement groups that are associated with these placement +// strategies. func (c *PlacementGroupsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementGroupsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -39621,22 +28686,21 @@ func (c *PlacementGroupsListCall) PricingTypes(pricingTypes ...string) *Placemen return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placement groups by name or ID. Wildcards (*) are -// allowed. For example, "placement*2015" will return placement groups -// with names like "placement group June 2015", "placement group May -// 2015", or simply "placements 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementgroup" will match placement -// groups with name "my placementgroup", "placementgroup 2015", or -// simply "placementgroup". +// SearchString sets the optional parameter "searchString": Allows searching +// for placement groups by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placement groups with names like "placement +// group June 2015", "placement group May 2015", or simply "placements 2015". +// Most of the searches also add wildcards implicitly at the start and the end +// of the search string. For example, a search string of "placementgroup" will +// match placement groups with name "my placementgroup", "placementgroup 2015", +// or simply "placementgroup". func (c *PlacementGroupsListCall) SearchString(searchString string) *PlacementGroupsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placement -// groups that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placement groups +// that are associated with these sites. func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsListCall { var siteIds_ []string for _, v := range siteIds { @@ -39646,8 +28710,8 @@ func (c *PlacementGroupsListCall) SiteIds(siteIds ...int64) *PlacementGroupsList return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -39658,8 +28722,7 @@ func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsLi return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -39671,33 +28734,29 @@ func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsLi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsListCall) Fields(s ...googleapi.Field) *PlacementGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementGroupsListCall) IfNoneMatch(entityTag string) *PlacementGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsListCall) Context(ctx context.Context) *PlacementGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39706,12 +28765,7 @@ func (c *PlacementGroupsListCall) Header() http.Header { } func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39728,16 +28782,15 @@ func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.list" call. -// Exactly one of *PlacementGroupsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlacementGroupsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlacementGroupsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39745,17 +28798,17 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -39768,188 +28821,6 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement groups, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "GET", - // "id": "dfareporting.placementGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placement groups that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placement groups that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placement groups that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placement groups that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placement groups with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "800", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "800", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "placementGroupType": { - // "description": "Select only placement groups belonging with this group type. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting.", - // "enum": [ - // "PLACEMENT_PACKAGE", - // "PLACEMENT_ROADBLOCK" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placement groups that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placement groups with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_CPM_ACTIVEVIEW" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placement groups with names like \"placement group June 2015\", \"placement group May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementgroup\" will match placement groups with name \"my placementgroup\", \"placementgroup 2015\", or simply \"placementgroup\".", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placement groups that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "response": { - // "$ref": "PlacementGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -39957,7 +28828,7 @@ func (c *PlacementGroupsListCall) Do(opts ...googleapi.CallOption) (*PlacementGr // The provided context supersedes any context provided to the Context method. func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGroupsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -39973,8 +28844,6 @@ func (c *PlacementGroupsListCall) Pages(ctx context.Context, f func(*PlacementGr } } -// method id "dfareporting.placementGroups.patch": - type PlacementGroupsPatchCall struct { s *Service profileId int64 @@ -39984,8 +28853,8 @@ type PlacementGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement group. This method supports -// patch semantics. +// Patch: Updates an existing placement group. This method supports patch +// semantics. // // - id: PlacementGroup ID. // - profileId: User profile ID associated with this request. @@ -39998,23 +28867,21 @@ func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsPatchCall) Fields(s ...googleapi.Field) *PlacementGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsPatchCall) Context(ctx context.Context) *PlacementGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40023,18 +28890,12 @@ func (c *PlacementGroupsPatchCall) Header() http.Header { } func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -40047,16 +28908,14 @@ func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.patch" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40064,17 +28923,17 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -40087,46 +28946,7 @@ func (c *PlacementGroupsPatchCall) Do(opts ...googleapi.CallOption) (*PlacementG return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementGroups.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "PlacementGroup ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementGroups.update": +} type PlacementGroupsUpdateCall struct { s *Service @@ -40148,23 +28968,21 @@ func (r *PlacementGroupsService) Update(profileId int64, placementgroup *Placeme } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementGroupsUpdateCall) Fields(s ...googleapi.Field) *PlacementGroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementGroupsUpdateCall) Context(ctx context.Context) *PlacementGroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementGroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40173,18 +28991,12 @@ func (c *PlacementGroupsUpdateCall) Header() http.Header { } func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementGroups") @@ -40197,16 +29009,14 @@ func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.update" call. -// Exactly one of *PlacementGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlacementGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementGroup.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40214,17 +29024,17 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementGroup{ ServerResponse: googleapi.ServerResponse{ @@ -40237,38 +29047,7 @@ func (c *PlacementGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement return nil, err } return ret, nil - // { - // "description": "Updates an existing placement group.", - // "flatPath": "userprofiles/{profileId}/placementGroups", - // "httpMethod": "PUT", - // "id": "dfareporting.placementGroups.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementGroups", - // "request": { - // "$ref": "PlacementGroup" - // }, - // "response": { - // "$ref": "PlacementGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.delete": +} type PlacementStrategiesDeleteCall struct { s *Service @@ -40291,23 +29070,21 @@ func (r *PlacementStrategiesService) Delete(profileId int64, id int64) *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesDeleteCall) Fields(s ...googleapi.Field) *PlacementStrategiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesDeleteCall) Context(ctx context.Context) *PlacementStrategiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40316,12 +29093,7 @@ func (c *PlacementStrategiesDeleteCall) Header() http.Header { } func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -40336,7 +29108,7 @@ func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.delete" call. @@ -40348,43 +29120,10 @@ func (c *PlacementStrategiesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.placementStrategies.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.get": +} type PlacementStrategiesGetCall struct { s *Service @@ -40408,33 +29147,29 @@ func (r *PlacementStrategiesService) Get(profileId int64, id int64) *PlacementSt } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesGetCall) Fields(s ...googleapi.Field) *PlacementStrategiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesGetCall) IfNoneMatch(entityTag string) *PlacementStrategiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesGetCall) Context(ctx context.Context) *PlacementStrategiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40443,12 +29178,7 @@ func (c *PlacementStrategiesGetCall) Header() http.Header { } func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40466,16 +29196,15 @@ func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.get" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40483,17 +29212,17 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -40506,43 +29235,7 @@ func (c *PlacementStrategiesGetCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Gets one placement strategy by ID.", - // "flatPath": "userprofiles/{profileId}/placementStrategies/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement strategy ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies/{id}", - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.insert": +} type PlacementStrategiesInsertCall struct { s *Service @@ -40564,23 +29257,21 @@ func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesInsertCall) Fields(s ...googleapi.Field) *PlacementStrategiesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesInsertCall) Context(ctx context.Context) *PlacementStrategiesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40589,18 +29280,12 @@ func (c *PlacementStrategiesInsertCall) Header() http.Header { } func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -40613,16 +29298,15 @@ func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.insert" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40630,17 +29314,17 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -40653,38 +29337,7 @@ func (c *PlacementStrategiesInsertCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Inserts a new placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "POST", - // "id": "dfareporting.placementStrategies.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.list": +} type PlacementStrategiesListCall struct { s *Service @@ -40695,8 +29348,8 @@ type PlacementStrategiesListCall struct { header_ http.Header } -// List: Retrieves a list of placement strategies, possibly filtered. -// This method supports paging. +// List: Retrieves a list of placement strategies, possibly filtered. This +// method supports paging. // // - profileId: User profile ID associated with this request. func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesListCall { @@ -40705,8 +29358,8 @@ func (r *PlacementStrategiesService) List(profileId int64) *PlacementStrategiesL return c } -// Ids sets the optional parameter "ids": Select only placement -// strategies with these IDs. +// Ids sets the optional parameter "ids": Select only placement strategies with +// these IDs. func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesListCall { var ids_ []string for _, v := range ids { @@ -40716,8 +29369,8 @@ func (c *PlacementStrategiesListCall) Ids(ids ...int64) *PlacementStrategiesList return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementStrategiesListCall) MaxResults(maxResults int64) *PlacementStrategiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -40730,22 +29383,21 @@ func (c *PlacementStrategiesListCall) PageToken(pageToken string) *PlacementStra return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "placementstrategy*2015" will return objects with names like -// "placementstrategy June 2015", "placementstrategy April 2015", or -// simply "placementstrategy 2015". Most of the searches also add -// wildcards implicitly at the start and the end of the search string. -// For example, a search string of "placementstrategy" will match -// objects with name "my placementstrategy", "placementstrategy 2015", -// or simply "placementstrategy". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "placementstrategy*2015" will return objects with names like +// "placementstrategy June 2015", "placementstrategy April 2015", or simply +// "placementstrategy 2015". Most of the searches also add wildcards implicitly +// at the start and the end of the search string. For example, a search string +// of "placementstrategy" will match objects with name "my placementstrategy", +// "placementstrategy 2015", or simply "placementstrategy". func (c *PlacementStrategiesListCall) SearchString(searchString string) *PlacementStrategiesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -40756,8 +29408,7 @@ func (c *PlacementStrategiesListCall) SortField(sortField string) *PlacementStra return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -40769,33 +29420,29 @@ func (c *PlacementStrategiesListCall) SortOrder(sortOrder string) *PlacementStra } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesListCall) Fields(s ...googleapi.Field) *PlacementStrategiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementStrategiesListCall) IfNoneMatch(entityTag string) *PlacementStrategiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesListCall) Context(ctx context.Context) *PlacementStrategiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40804,12 +29451,7 @@ func (c *PlacementStrategiesListCall) Header() http.Header { } func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40826,16 +29468,15 @@ func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.list" call. -// Exactly one of *PlacementStrategiesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementStrategiesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategiesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*PlacementStrategiesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40843,17 +29484,17 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategiesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -40866,86 +29507,6 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placement strategies, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "GET", - // "id": "dfareporting.placementStrategies.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only placement strategies with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"placementstrategy*2015\" will return objects with names like \"placementstrategy June 2015\", \"placementstrategy April 2015\", or simply \"placementstrategy 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placementstrategy\" will match objects with name \"my placementstrategy\", \"placementstrategy 2015\", or simply \"placementstrategy\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "response": { - // "$ref": "PlacementStrategiesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -40953,7 +29514,7 @@ func (c *PlacementStrategiesListCall) Do(opts ...googleapi.CallOption) (*Placeme // The provided context supersedes any context provided to the Context method. func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*PlacementStrategiesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -40969,8 +29530,6 @@ func (c *PlacementStrategiesListCall) Pages(ctx context.Context, f func(*Placeme } } -// method id "dfareporting.placementStrategies.patch": - type PlacementStrategiesPatchCall struct { s *Service profileId int64 @@ -40980,8 +29539,8 @@ type PlacementStrategiesPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement strategy. This method supports -// patch semantics. +// Patch: Updates an existing placement strategy. This method supports patch +// semantics. // // - id: PlacementStrategy ID. // - profileId: User profile ID associated with this request. @@ -40994,23 +29553,21 @@ func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placements } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesPatchCall) Fields(s ...googleapi.Field) *PlacementStrategiesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesPatchCall) Context(ctx context.Context) *PlacementStrategiesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41019,18 +29576,12 @@ func (c *PlacementStrategiesPatchCall) Header() http.Header { } func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -41043,16 +29594,15 @@ func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.patch" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41060,17 +29610,17 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -41083,46 +29633,7 @@ func (c *PlacementStrategiesPatchCall) Do(opts ...googleapi.CallOption) (*Placem return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "PATCH", - // "id": "dfareporting.placementStrategies.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "PlacementStrategy ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placementStrategies.update": +} type PlacementStrategiesUpdateCall struct { s *Service @@ -41144,23 +29655,21 @@ func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementStrategiesUpdateCall) Fields(s ...googleapi.Field) *PlacementStrategiesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementStrategiesUpdateCall) Context(ctx context.Context) *PlacementStrategiesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementStrategiesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41169,18 +29678,12 @@ func (c *PlacementStrategiesUpdateCall) Header() http.Header { } func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placementstrategy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placementStrategies") @@ -41193,16 +29696,15 @@ func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.update" call. -// Exactly one of *PlacementStrategy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementStrategy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementStrategy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*PlacementStrategy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41210,17 +29712,17 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementStrategy{ ServerResponse: googleapi.ServerResponse{ @@ -41233,38 +29735,7 @@ func (c *PlacementStrategiesUpdateCall) Do(opts ...googleapi.CallOption) (*Place return nil, err } return ret, nil - // { - // "description": "Updates an existing placement strategy.", - // "flatPath": "userprofiles/{profileId}/placementStrategies", - // "httpMethod": "PUT", - // "id": "dfareporting.placementStrategies.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placementStrategies", - // "request": { - // "$ref": "PlacementStrategy" - // }, - // "response": { - // "$ref": "PlacementStrategy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.generatetags": +} type PlacementsGeneratetagsCall struct { s *Service @@ -41283,15 +29754,15 @@ func (r *PlacementsService) Generatetags(profileId int64) *PlacementsGeneratetag return c } -// CampaignId sets the optional parameter "campaignId": Generate -// placements belonging to this campaign. This is a required field. +// CampaignId sets the optional parameter "campaignId": Generate placements +// belonging to this campaign. This is a required field. func (c *PlacementsGeneratetagsCall) CampaignId(campaignId int64) *PlacementsGeneratetagsCall { c.urlParams_.Set("campaignId", fmt.Sprint(campaignId)) return c } -// PlacementIds sets the optional parameter "placementIds": Generate -// tags for these placements. +// PlacementIds sets the optional parameter "placementIds": Generate tags for +// these placements. func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *PlacementsGeneratetagsCall { var placementIds_ []string for _, v := range placementIds { @@ -41301,9 +29772,9 @@ func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *Placem return c } -// TagFormats sets the optional parameter "tagFormats": Tag formats to -// generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can -// only be generated for 1x1 placements. +// TagFormats sets the optional parameter "tagFormats": Tag formats to generate +// for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generated +// for 1x1 placements. // // Possible values: // @@ -41333,23 +29804,21 @@ func (c *PlacementsGeneratetagsCall) TagFormats(tagFormats ...string) *Placement } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGeneratetagsCall) Fields(s ...googleapi.Field) *PlacementsGeneratetagsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGeneratetagsCall) Context(ctx context.Context) *PlacementsGeneratetagsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGeneratetagsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41358,12 +29827,7 @@ func (c *PlacementsGeneratetagsCall) Header() http.Header { } func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -41377,16 +29841,15 @@ func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.generatetags" call. -// Exactly one of *PlacementsGenerateTagsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsGenerateTagsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*PlacementsGenerateTagsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41394,17 +29857,17 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsGenerateTagsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -41417,98 +29880,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen return nil, err } return ret, nil - // { - // "description": "Generates tags for a placement.", - // "flatPath": "userprofiles/{profileId}/placements/generatetags", - // "httpMethod": "POST", - // "id": "dfareporting.placements.generatetags", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "campaignId": { - // "description": "Generate placements belonging to this campaign. This is a required field.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "placementIds": { - // "description": "Generate tags for these placements.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tagFormats": { - // "description": "Tag formats to generate for these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.", - // "enum": [ - // "PLACEMENT_TAG_STANDARD", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_IFRAME_ILAYER", - // "PLACEMENT_TAG_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT", - // "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT", - // "PLACEMENT_TAG_CLICK_COMMANDS", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH", - // "PLACEMENT_TAG_TRACKING", - // "PLACEMENT_TAG_TRACKING_IFRAME", - // "PLACEMENT_TAG_TRACKING_JAVASCRIPT", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3", - // "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY", - // "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4", - // "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/generatetags", - // "response": { - // "$ref": "PlacementsGenerateTagsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.get": +} type PlacementsGetCall struct { s *Service @@ -41532,33 +29904,29 @@ func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsGetCall) Fields(s ...googleapi.Field) *PlacementsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsGetCall) IfNoneMatch(entityTag string) *PlacementsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsGetCall) Context(ctx context.Context) *PlacementsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41567,12 +29935,7 @@ func (c *PlacementsGetCall) Header() http.Header { } func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41590,16 +29953,14 @@ func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.get" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41607,17 +29968,17 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -41630,43 +29991,7 @@ func (c *PlacementsGetCall) Do(opts ...googleapi.CallOption) (*Placement, error) return nil, err } return ret, nil - // { - // "description": "Gets one placement by ID.", - // "flatPath": "userprofiles/{profileId}/placements/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.placements.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements/{id}", - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.insert": +} type PlacementsInsertCall struct { s *Service @@ -41688,23 +30013,21 @@ func (r *PlacementsService) Insert(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsInsertCall) Fields(s ...googleapi.Field) *PlacementsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsInsertCall) Context(ctx context.Context) *PlacementsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41713,18 +30036,12 @@ func (c *PlacementsInsertCall) Header() http.Header { } func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -41737,16 +30054,14 @@ func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.insert" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41754,17 +30069,17 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -41777,38 +30092,7 @@ func (c *PlacementsInsertCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Inserts a new placement.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "POST", - // "id": "dfareporting.placements.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.list": +} type PlacementsListCall struct { s *Service @@ -41829,8 +30113,8 @@ func (r *PlacementsService) List(profileId int64) *PlacementsListCall { return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only placements that belong to these advertisers. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// placements that belong to these advertisers. func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -41841,8 +30125,8 @@ func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsLi } // Archived sets the optional parameter "archived": Select only archived -// placements. Don't set this field to select both archived and -// non-archived placements. +// placements. Don't set this field to select both archived and non-archived +// placements. func (c *PlacementsListCall) Archived(archived bool) *PlacementsListCall { c.urlParams_.Set("archived", fmt.Sprint(archived)) return c @@ -41859,13 +30143,12 @@ func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCa return c } -// Compatibilities sets the optional parameter "compatibilities": Select -// only placements that are associated with these compatibilities. -// DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop -// or on mobile devices for regular or interstitial ads respectively. -// APP and APP_INTERSTITIAL are for rendering in mobile apps. -// IN_STREAM_VIDEO refers to rendering in in-stream video ads developed -// with the VAST standard. +// Compatibilities sets the optional parameter "compatibilities": Select only +// placements that are associated with these compatibilities. DISPLAY and +// DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile +// devices for regular or interstitial ads respectively. APP and +// APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to +// rendering in in-stream video ads developed with the VAST standard. // // Possible values: // @@ -41880,9 +30163,8 @@ func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *Placeme return c } -// ContentCategoryIds sets the optional parameter "contentCategoryIds": -// Select only placements that are associated with these content -// categories. +// ContentCategoryIds sets the optional parameter "contentCategoryIds": Select +// only placements that are associated with these content categories. func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementsListCall { var contentCategoryIds_ []string for _, v := range contentCategoryIds { @@ -41892,9 +30174,8 @@ func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *Pl return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only placements that are associated with these directory -// sites. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// placements that are associated with these directory sites. func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementsListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -41904,8 +30185,8 @@ func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *Placem return c } -// GroupIds sets the optional parameter "groupIds": Select only -// placements that belong to these placement groups. +// GroupIds sets the optional parameter "groupIds": Select only placements that +// belong to these placement groups. func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { var groupIds_ []string for _, v := range groupIds { @@ -41915,8 +30196,8 @@ func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall { return c } -// Ids sets the optional parameter "ids": Select only placements with -// these IDs. +// Ids sets the optional parameter "ids": Select only placements with these +// IDs. func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { var ids_ []string for _, v := range ids { @@ -41926,16 +30207,16 @@ func (c *PlacementsListCall) Ids(ids ...int64) *PlacementsListCall { return c } -// MaxEndDate sets the optional parameter "maxEndDate": Select only -// placements or placement groups whose end date is on or before the -// specified maxEndDate. The date should be formatted as "yyyy-MM-dd". +// MaxEndDate sets the optional parameter "maxEndDate": Select only placements +// or placement groups whose end date is on or before the specified maxEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MaxEndDate(maxEndDate string) *PlacementsListCall { c.urlParams_.Set("maxEndDate", maxEndDate) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *PlacementsListCall) MaxResults(maxResults int64) *PlacementsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -41949,17 +30230,17 @@ func (c *PlacementsListCall) MaxStartDate(maxStartDate string) *PlacementsListCa return c } -// MinEndDate sets the optional parameter "minEndDate": Select only -// placements or placement groups whose end date is on or after the -// specified minEndDate. The date should be formatted as "yyyy-MM-dd". +// MinEndDate sets the optional parameter "minEndDate": Select only placements +// or placement groups whose end date is on or after the specified minEndDate. +// The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinEndDate(minEndDate string) *PlacementsListCall { c.urlParams_.Set("minEndDate", minEndDate) return c } // MinStartDate sets the optional parameter "minStartDate": Select only -// placements or placement groups whose start date is on or after the -// specified minStartDate. The date should be formatted as "yyyy-MM-dd". +// placements or placement groups whose start date is on or after the specified +// minStartDate. The date should be formatted as "yyyy-MM-dd". func (c *PlacementsListCall) MinStartDate(minStartDate string) *PlacementsListCall { c.urlParams_.Set("minStartDate", minStartDate) return c @@ -41972,8 +30253,8 @@ func (c *PlacementsListCall) PageToken(pageToken string) *PlacementsListCall { return c } -// PaymentSource sets the optional parameter "paymentSource": Select -// only placements with this payment source. +// PaymentSource sets the optional parameter "paymentSource": Select only +// placements with this payment source. // // Possible values: // @@ -41984,9 +30265,8 @@ func (c *PlacementsListCall) PaymentSource(paymentSource string) *PlacementsList return c } -// PlacementStrategyIds sets the optional parameter -// "placementStrategyIds": Select only placements that are associated -// with these placement strategies. +// PlacementStrategyIds sets the optional parameter "placementStrategyIds": +// Select only placements that are associated with these placement strategies. func (c *PlacementsListCall) PlacementStrategyIds(placementStrategyIds ...int64) *PlacementsListCall { var placementStrategyIds_ []string for _, v := range placementStrategyIds { @@ -42012,21 +30292,21 @@ func (c *PlacementsListCall) PricingTypes(pricingTypes ...string) *PlacementsLis return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for placements by name or ID. Wildcards (*) are allowed. -// For example, "placement*2015" will return placements with names like -// "placement June 2015", "placement May 2015", or simply "placements -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "placement" will match placements with name "my placement", -// "placement 2015", or simply "placement" . +// SearchString sets the optional parameter "searchString": Allows searching +// for placements by name or ID. Wildcards (*) are allowed. For example, +// "placement*2015" will return placements with names like "placement June +// 2015", "placement May 2015", or simply "placements 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "placement" will match +// placements with name "my placement", "placement 2015", or simply "placement" +// . func (c *PlacementsListCall) SearchString(searchString string) *PlacementsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SiteIds sets the optional parameter "siteIds": Select only placements -// that are associated with these sites. +// SiteIds sets the optional parameter "siteIds": Select only placements that +// are associated with these sites. func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { var siteIds_ []string for _, v := range siteIds { @@ -42036,8 +30316,8 @@ func (c *PlacementsListCall) SiteIds(siteIds ...int64) *PlacementsListCall { return c } -// SizeIds sets the optional parameter "sizeIds": Select only placements -// that are associated with these sizes. +// SizeIds sets the optional parameter "sizeIds": Select only placements that +// are associated with these sizes. func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { var sizeIds_ []string for _, v := range sizeIds { @@ -42047,8 +30327,8 @@ func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall { return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -42059,8 +30339,7 @@ func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -42072,33 +30351,29 @@ func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsListCall) Fields(s ...googleapi.Field) *PlacementsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlacementsListCall) IfNoneMatch(entityTag string) *PlacementsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsListCall) Context(ctx context.Context) *PlacementsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42107,12 +30382,7 @@ func (c *PlacementsListCall) Header() http.Header { } func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42129,16 +30399,15 @@ func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.list" call. -// Exactly one of *PlacementsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PlacementsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlacementsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42146,17 +30415,17 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlacementsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42169,224 +30438,6 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe return nil, err } return ret, nil - // { - // "description": "Retrieves a list of placements, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "GET", - // "id": "dfareporting.placements.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only placements that belong to these advertisers.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "archived": { - // "description": "Select only archived placements. Don't set this field to select both archived and non-archived placements.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only placements that belong to these campaigns.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "compatibilities": { - // "description": "Select only placements that are associated with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.", - // "enum": [ - // "DISPLAY", - // "DISPLAY_INTERSTITIAL", - // "APP", - // "APP_INTERSTITIAL", - // "IN_STREAM_VIDEO", - // "IN_STREAM_AUDIO" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "contentCategoryIds": { - // "description": "Select only placements that are associated with these content categories.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only placements that are associated with these directory sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "groupIds": { - // "description": "Select only placements that belong to these placement groups.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only placements with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxEndDate": { - // "description": "Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "maxStartDate": { - // "description": "Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minEndDate": { - // "description": "Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "minStartDate": { - // "description": "Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as \"yyyy-MM-dd\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "paymentSource": { - // "description": "Select only placements with this payment source.", - // "enum": [ - // "PLACEMENT_AGENCY_PAID", - // "PLACEMENT_PUBLISHER_PAID" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "placementStrategyIds": { - // "description": "Select only placements that are associated with these placement strategies.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pricingTypes": { - // "description": "Select only placements with these pricing types.", - // "enum": [ - // "PRICING_TYPE_CPM", - // "PRICING_TYPE_CPC", - // "PRICING_TYPE_CPA", - // "PRICING_TYPE_FLAT_RATE_IMPRESSIONS", - // "PRICING_TYPE_FLAT_RATE_CLICKS", - // "PRICING_TYPE_CPM_ACTIVEVIEW" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, \"placement*2015\" will return placements with names like \"placement June 2015\", \"placement May 2015\", or simply \"placements 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"placement\" will match placements with name \"my placement\", \"placement 2015\", or simply \"placement\" .", - // "location": "query", - // "type": "string" - // }, - // "siteIds": { - // "description": "Select only placements that are associated with these sites.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sizeIds": { - // "description": "Select only placements that are associated with these sizes.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "response": { - // "$ref": "PlacementsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -42394,7 +30445,7 @@ func (c *PlacementsListCall) Do(opts ...googleapi.CallOption) (*PlacementsListRe // The provided context supersedes any context provided to the Context method. func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -42410,8 +30461,6 @@ func (c *PlacementsListCall) Pages(ctx context.Context, f func(*PlacementsListRe } } -// method id "dfareporting.placements.patch": - type PlacementsPatchCall struct { s *Service profileId int64 @@ -42421,8 +30470,7 @@ type PlacementsPatchCall struct { header_ http.Header } -// Patch: Updates an existing placement. This method supports patch -// semantics. +// Patch: Updates an existing placement. This method supports patch semantics. // // - id: Placement ID. // - profileId: User profile ID associated with this request. @@ -42435,23 +30483,21 @@ func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placemen } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsPatchCall) Fields(s ...googleapi.Field) *PlacementsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsPatchCall) Context(ctx context.Context) *PlacementsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42460,18 +30506,12 @@ func (c *PlacementsPatchCall) Header() http.Header { } func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -42484,16 +30524,14 @@ func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.patch" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42501,17 +30539,17 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -42524,46 +30562,7 @@ func (c *PlacementsPatchCall) Do(opts ...googleapi.CallOption) (*Placement, erro return nil, err } return ret, nil - // { - // "description": "Updates an existing placement. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "PATCH", - // "id": "dfareporting.placements.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Placement ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.placements.update": +} type PlacementsUpdateCall struct { s *Service @@ -42585,23 +30584,21 @@ func (r *PlacementsService) Update(profileId int64, placement *Placement) *Place } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlacementsUpdateCall) Fields(s ...googleapi.Field) *PlacementsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlacementsUpdateCall) Context(ctx context.Context) *PlacementsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlacementsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42610,18 +30607,12 @@ func (c *PlacementsUpdateCall) Header() http.Header { } func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.placement) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/placements") @@ -42634,16 +30625,14 @@ func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.update" call. -// Exactly one of *Placement or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Placement.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Placement.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42651,17 +30640,17 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Placement{ ServerResponse: googleapi.ServerResponse{ @@ -42674,38 +30663,7 @@ func (c *PlacementsUpdateCall) Do(opts ...googleapi.CallOption) (*Placement, err return nil, err } return ret, nil - // { - // "description": "Updates an existing placement.", - // "flatPath": "userprofiles/{profileId}/placements", - // "httpMethod": "PUT", - // "id": "dfareporting.placements.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/placements", - // "request": { - // "$ref": "Placement" - // }, - // "response": { - // "$ref": "Placement" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.get": +} type PlatformTypesGetCall struct { s *Service @@ -42729,33 +30687,29 @@ func (r *PlatformTypesService) Get(profileId int64, id int64) *PlatformTypesGetC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesGetCall) Fields(s ...googleapi.Field) *PlatformTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesGetCall) IfNoneMatch(entityTag string) *PlatformTypesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesGetCall) Context(ctx context.Context) *PlatformTypesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42764,12 +30718,7 @@ func (c *PlatformTypesGetCall) Header() http.Header { } func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42787,16 +30736,14 @@ func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.get" call. -// Exactly one of *PlatformType or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PlatformType.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PlatformType.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42804,17 +30751,17 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformType{ ServerResponse: googleapi.ServerResponse{ @@ -42827,43 +30774,7 @@ func (c *PlatformTypesGetCall) Do(opts ...googleapi.CallOption) (*PlatformType, return nil, err } return ret, nil - // { - // "description": "Gets one platform type by ID.", - // "flatPath": "userprofiles/{profileId}/platformTypes/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Platform type ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes/{id}", - // "response": { - // "$ref": "PlatformType" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.platformTypes.list": +} type PlatformTypesListCall struct { s *Service @@ -42884,33 +30795,29 @@ func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformTypesListCall) Fields(s ...googleapi.Field) *PlatformTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformTypesListCall) IfNoneMatch(entityTag string) *PlatformTypesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformTypesListCall) Context(ctx context.Context) *PlatformTypesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42919,12 +30826,7 @@ func (c *PlatformTypesListCall) Header() http.Header { } func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42941,16 +30843,15 @@ func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.list" call. -// Exactly one of *PlatformTypesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *PlatformTypesListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *PlatformTypesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42958,17 +30859,17 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PlatformTypesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -42981,35 +30882,7 @@ func (c *PlatformTypesListCall) Do(opts ...googleapi.CallOption) (*PlatformTypes return nil, err } return ret, nil - // { - // "description": "Retrieves a list of platform types.", - // "flatPath": "userprofiles/{profileId}/platformTypes", - // "httpMethod": "GET", - // "id": "dfareporting.platformTypes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/platformTypes", - // "response": { - // "$ref": "PlatformTypesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.get": +} type PostalCodesGetCall struct { s *Service @@ -43033,33 +30906,29 @@ func (r *PostalCodesService) Get(profileId int64, code string) *PostalCodesGetCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesGetCall) Fields(s ...googleapi.Field) *PostalCodesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesGetCall) IfNoneMatch(entityTag string) *PostalCodesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesGetCall) Context(ctx context.Context) *PostalCodesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43068,12 +30937,7 @@ func (c *PostalCodesGetCall) Header() http.Header { } func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43091,16 +30955,14 @@ func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "code": c.code, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.get" call. -// Exactly one of *PostalCode or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PostalCode.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PostalCode.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43108,17 +30970,17 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCode{ ServerResponse: googleapi.ServerResponse{ @@ -43131,42 +30993,7 @@ func (c *PostalCodesGetCall) Do(opts ...googleapi.CallOption) (*PostalCode, erro return nil, err } return ret, nil - // { - // "description": "Gets one postal code by ID.", - // "flatPath": "userprofiles/{profileId}/postalCodes/{code}", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.get", - // "parameterOrder": [ - // "profileId", - // "code" - // ], - // "parameters": { - // "code": { - // "description": "Postal code ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes/{code}", - // "response": { - // "$ref": "PostalCode" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.postalCodes.list": +} type PostalCodesListCall struct { s *Service @@ -43187,33 +31014,29 @@ func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PostalCodesListCall) Fields(s ...googleapi.Field) *PostalCodesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PostalCodesListCall) IfNoneMatch(entityTag string) *PostalCodesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PostalCodesListCall) Context(ctx context.Context) *PostalCodesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PostalCodesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43222,12 +31045,7 @@ func (c *PostalCodesListCall) Header() http.Header { } func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43244,16 +31062,15 @@ func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.list" call. -// Exactly one of *PostalCodesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *PostalCodesListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43261,17 +31078,17 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PostalCodesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -43284,35 +31101,7 @@ func (c *PostalCodesListCall) Do(opts ...googleapi.CallOption) (*PostalCodesList return nil, err } return ret, nil - // { - // "description": "Retrieves a list of postal codes.", - // "flatPath": "userprofiles/{profileId}/postalCodes", - // "httpMethod": "GET", - // "id": "dfareporting.postalCodes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/postalCodes", - // "response": { - // "$ref": "PostalCodesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.get": +} type ProjectsGetCall struct { s *Service @@ -43336,33 +31125,29 @@ func (r *ProjectsService) Get(profileId int64, id int64) *ProjectsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43371,12 +31156,7 @@ func (c *ProjectsGetCall) Header() http.Header { } func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43394,16 +31174,14 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.get" call. -// Exactly one of *Project or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Project.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Project.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43411,17 +31189,17 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Project{ ServerResponse: googleapi.ServerResponse{ @@ -43434,43 +31212,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return nil, err } return ret, nil - // { - // "description": "Gets one project by ID.", - // "flatPath": "userprofiles/{profileId}/projects/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.projects.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Project ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects/{id}", - // "response": { - // "$ref": "Project" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.projects.list": +} type ProjectsListCall struct { s *Service @@ -43481,8 +31223,8 @@ type ProjectsListCall struct { header_ http.Header } -// List: Retrieves a list of projects, possibly filtered. This method -// supports paging . +// List: Retrieves a list of projects, possibly filtered. This method supports +// paging . // // - profileId: User profile ID associated with this request. func (r *ProjectsService) List(profileId int64) *ProjectsListCall { @@ -43491,8 +31233,8 @@ func (r *ProjectsService) List(profileId int64) *ProjectsListCall { return c } -// AdvertiserIds sets the optional parameter "advertiserIds": Select -// only projects with these advertiser IDs. +// AdvertiserIds sets the optional parameter "advertiserIds": Select only +// projects with these advertiser IDs. func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCall { var advertiserIds_ []string for _, v := range advertiserIds { @@ -43502,8 +31244,7 @@ func (c *ProjectsListCall) AdvertiserIds(advertiserIds ...int64) *ProjectsListCa return c } -// Ids sets the optional parameter "ids": Select only projects with -// these IDs. +// Ids sets the optional parameter "ids": Select only projects with these IDs. func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { var ids_ []string for _, v := range ids { @@ -43513,8 +31254,8 @@ func (c *ProjectsListCall) Ids(ids ...int64) *ProjectsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ProjectsListCall) MaxResults(maxResults int64) *ProjectsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -43527,21 +31268,20 @@ func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for projects by name or ID. Wildcards (*) are allowed. For -// example, "project*2015" will return projects with names like "project -// June 2015", "project April 2015", or simply "project 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "project" will -// match projects with name "my project", "project 2015", or simply -// "project". +// SearchString sets the optional parameter "searchString": Allows searching +// for projects by name or ID. Wildcards (*) are allowed. For example, +// "project*2015" will return projects with names like "project June 2015", +// "project April 2015", or simply "project 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "project" will match projects with name "my +// project", "project 2015", or simply "project". func (c *ProjectsListCall) SearchString(searchString string) *ProjectsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -43552,8 +31292,7 @@ func (c *ProjectsListCall) SortField(sortField string) *ProjectsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -43565,33 +31304,29 @@ func (c *ProjectsListCall) SortOrder(sortOrder string) *ProjectsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsListCall) Fields(s ...googleapi.Field) *ProjectsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsListCall) Context(ctx context.Context) *ProjectsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43600,12 +31335,7 @@ func (c *ProjectsListCall) Header() http.Header { } func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43622,16 +31352,15 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.list" call. -// Exactly one of *ProjectsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ProjectsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ProjectsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43639,17 +31368,17 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ProjectsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -43662,93 +31391,6 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of projects, possibly filtered. This method supports paging .", - // "flatPath": "userprofiles/{profileId}/projects", - // "httpMethod": "GET", - // "id": "dfareporting.projects.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserIds": { - // "description": "Select only projects with these advertiser IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only projects with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, \"project*2015\" will return projects with names like \"project June 2015\", \"project April 2015\", or simply \"project 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"project\" will match projects with name \"my project\", \"project 2015\", or simply \"project\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/projects", - // "response": { - // "$ref": "ProjectsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -43756,7 +31398,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectsListRespon // The provided context supersedes any context provided to the Context method. func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -43772,8 +31414,6 @@ func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectsListRespon } } -// method id "dfareporting.regions.list": - type RegionsListCall struct { s *Service profileId int64 @@ -43793,33 +31433,29 @@ func (r *RegionsService) List(profileId int64) *RegionsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RegionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43828,12 +31464,7 @@ func (c *RegionsListCall) Header() http.Header { } func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43850,16 +31481,15 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.regions.list" call. -// Exactly one of *RegionsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RegionsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RegionsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43867,17 +31497,17 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RegionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -43890,35 +31520,7 @@ func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*RegionsListResponse return nil, err } return ret, nil - // { - // "description": "Retrieves a list of regions.", - // "flatPath": "userprofiles/{profileId}/regions", - // "httpMethod": "GET", - // "id": "dfareporting.regions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/regions", - // "response": { - // "$ref": "RegionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.get": +} type RemarketingListSharesGetCall struct { s *Service @@ -43942,33 +31544,29 @@ func (r *RemarketingListSharesService) Get(profileId int64, remarketingListId in } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesGetCall) Fields(s ...googleapi.Field) *RemarketingListSharesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListSharesGetCall) IfNoneMatch(entityTag string) *RemarketingListSharesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesGetCall) Context(ctx context.Context) *RemarketingListSharesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43977,12 +31575,7 @@ func (c *RemarketingListSharesGetCall) Header() http.Header { } func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44000,16 +31593,15 @@ func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "remarketingListId": strconv.FormatInt(c.remarketingListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.get" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44017,17 +31609,17 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -44040,43 +31632,7 @@ func (c *RemarketingListSharesGetCall) Do(opts ...googleapi.CallOption) (*Remark return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list share by remarketing list ID.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingListShares.get", - // "parameterOrder": [ - // "profileId", - // "remarketingListId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "remarketingListId": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares/{remarketingListId}", - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.patch": +} type RemarketingListSharesPatchCall struct { s *Service @@ -44087,8 +31643,8 @@ type RemarketingListSharesPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list share. This method -// supports patch semantics. +// Patch: Updates an existing remarketing list share. This method supports +// patch semantics. // // - id: RemarketingList ID. // - profileId: User profile ID associated with this request. @@ -44101,23 +31657,21 @@ func (r *RemarketingListSharesService) Patch(profileId int64, id int64, remarket } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesPatchCall) Fields(s ...googleapi.Field) *RemarketingListSharesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesPatchCall) Context(ctx context.Context) *RemarketingListSharesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44126,18 +31680,12 @@ func (c *RemarketingListSharesPatchCall) Header() http.Header { } func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -44150,16 +31698,15 @@ func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.patch" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44167,17 +31714,17 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -44190,46 +31737,7 @@ func (c *RemarketingListSharesPatchCall) Do(opts ...googleapi.CallOption) (*Rema return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingListShares.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "RemarketingList ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingListShares.update": +} type RemarketingListSharesUpdateCall struct { s *Service @@ -44251,23 +31759,21 @@ func (r *RemarketingListSharesService) Update(profileId int64, remarketinglistsh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListSharesUpdateCall) Fields(s ...googleapi.Field) *RemarketingListSharesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListSharesUpdateCall) Context(ctx context.Context) *RemarketingListSharesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListSharesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44276,18 +31782,12 @@ func (c *RemarketingListSharesUpdateCall) Header() http.Header { } func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglistshare) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingListShares") @@ -44300,16 +31800,15 @@ func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.update" call. -// Exactly one of *RemarketingListShare or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RemarketingListShare.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListShare.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingListShare, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44317,17 +31816,17 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListShare{ ServerResponse: googleapi.ServerResponse{ @@ -44340,38 +31839,7 @@ func (c *RemarketingListSharesUpdateCall) Do(opts ...googleapi.CallOption) (*Rem return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list share.", - // "flatPath": "userprofiles/{profileId}/remarketingListShares", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingListShares.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingListShares", - // "request": { - // "$ref": "RemarketingListShare" - // }, - // "response": { - // "$ref": "RemarketingListShare" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.get": +} type RemarketingListsGetCall struct { s *Service @@ -44395,33 +31863,29 @@ func (r *RemarketingListsService) Get(profileId int64, id int64) *RemarketingLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsGetCall) Fields(s ...googleapi.Field) *RemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsGetCall) IfNoneMatch(entityTag string) *RemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsGetCall) Context(ctx context.Context) *RemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44430,12 +31894,7 @@ func (c *RemarketingListsGetCall) Header() http.Header { } func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44453,16 +31912,15 @@ func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.get" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44470,17 +31928,17 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -44493,43 +31951,7 @@ func (c *RemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*Remarketing return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "flatPath": "userprofiles/{profileId}/remarketingLists/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists/{id}", - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.insert": +} type RemarketingListsInsertCall struct { s *Service @@ -44551,23 +31973,21 @@ func (r *RemarketingListsService) Insert(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsInsertCall) Fields(s ...googleapi.Field) *RemarketingListsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsInsertCall) Context(ctx context.Context) *RemarketingListsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44576,18 +31996,12 @@ func (c *RemarketingListsInsertCall) Header() http.Header { } func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -44600,16 +32014,15 @@ func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.insert" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44617,17 +32030,17 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -44640,38 +32053,7 @@ func (c *RemarketingListsInsertCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Inserts a new remarketing list.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "POST", - // "id": "dfareporting.remarketingLists.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.list": +} type RemarketingListsListCall struct { s *Service @@ -44682,12 +32064,11 @@ type RemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of remarketing lists, possibly filtered. This -// method supports paging. +// List: Retrieves a list of remarketing lists, possibly filtered. This method +// supports paging. // -// - advertiserId: Select only remarketing lists owned by this -// advertiser. -// - profileId: User profile ID associated with this request. +// - advertiserId: Select only remarketing lists owned by this advertiser. +// - profileId: User profile ID associated with this request. func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *RemarketingListsListCall { c := &RemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.profileId = profileId @@ -44695,36 +32076,35 @@ func (r *RemarketingListsService) List(profileId int64, advertiserId int64) *Rem return c } -// Active sets the optional parameter "active": Select only active or -// only inactive remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive remarketing lists. func (c *RemarketingListsListCall) Active(active bool) *RemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// FloodlightActivityId sets the optional parameter -// "floodlightActivityId": Select only remarketing lists that have this -// floodlight activity ID. +// FloodlightActivityId sets the optional parameter "floodlightActivityId": +// Select only remarketing lists that have this floodlight activity ID. func (c *RemarketingListsListCall) FloodlightActivityId(floodlightActivityId int64) *RemarketingListsListCall { c.urlParams_.Set("floodlightActivityId", fmt.Sprint(floodlightActivityId)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *RemarketingListsListCall) MaxResults(maxResults int64) *RemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *RemarketingListsListCall) Name(name string) *RemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -44737,8 +32117,8 @@ func (c *RemarketingListsListCall) PageToken(pageToken string) *RemarketingLists return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -44749,8 +32129,7 @@ func (c *RemarketingListsListCall) SortField(sortField string) *RemarketingLists return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -44762,33 +32141,29 @@ func (c *RemarketingListsListCall) SortOrder(sortOrder string) *RemarketingLists } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsListCall) Fields(s ...googleapi.Field) *RemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RemarketingListsListCall) IfNoneMatch(entityTag string) *RemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsListCall) Context(ctx context.Context) *RemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44797,12 +32172,7 @@ func (c *RemarketingListsListCall) Header() http.Header { } func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44819,16 +32189,15 @@ func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.list" call. -// Exactly one of *RemarketingListsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *RemarketingListsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingListsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*RemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44836,17 +32205,17 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -44859,98 +32228,6 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of remarketing lists, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "GET", - // "id": "dfareporting.remarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only remarketing lists owned by this advertiser.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "floodlightActivityId": { - // "description": "Select only remarketing lists that have this floodlight activity ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "response": { - // "$ref": "RemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -44958,7 +32235,7 @@ func (c *RemarketingListsListCall) Do(opts ...googleapi.CallOption) (*Remarketin // The provided context supersedes any context provided to the Context method. func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*RemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -44974,8 +32251,6 @@ func (c *RemarketingListsListCall) Pages(ctx context.Context, f func(*Remarketin } } -// method id "dfareporting.remarketingLists.patch": - type RemarketingListsPatchCall struct { s *Service profileId int64 @@ -44985,8 +32260,8 @@ type RemarketingListsPatchCall struct { header_ http.Header } -// Patch: Updates an existing remarketing list. This method supports -// patch semantics. +// Patch: Updates an existing remarketing list. This method supports patch +// semantics. // // - id: RemarketingList ID. // - profileId: User profile ID associated with this request. @@ -44999,23 +32274,21 @@ func (r *RemarketingListsService) Patch(profileId int64, id int64, remarketingli } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsPatchCall) Fields(s ...googleapi.Field) *RemarketingListsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsPatchCall) Context(ctx context.Context) *RemarketingListsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45024,18 +32297,12 @@ func (c *RemarketingListsPatchCall) Header() http.Header { } func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -45048,16 +32315,15 @@ func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.patch" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45065,17 +32331,17 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -45088,46 +32354,7 @@ func (c *RemarketingListsPatchCall) Do(opts ...googleapi.CallOption) (*Remarketi return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "PATCH", - // "id": "dfareporting.remarketingLists.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "RemarketingList ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.remarketingLists.update": +} type RemarketingListsUpdateCall struct { s *Service @@ -45149,23 +32376,21 @@ func (r *RemarketingListsService) Update(profileId int64, remarketinglist *Remar } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RemarketingListsUpdateCall) Fields(s ...googleapi.Field) *RemarketingListsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RemarketingListsUpdateCall) Context(ctx context.Context) *RemarketingListsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RemarketingListsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45174,18 +32399,12 @@ func (c *RemarketingListsUpdateCall) Header() http.Header { } func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remarketinglist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/remarketingLists") @@ -45198,16 +32417,15 @@ func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.update" call. -// Exactly one of *RemarketingList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemarketingList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemarketingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45215,17 +32433,17 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -45238,38 +32456,7 @@ func (c *RemarketingListsUpdateCall) Do(opts ...googleapi.CallOption) (*Remarket return nil, err } return ret, nil - // { - // "description": "Updates an existing remarketing list.", - // "flatPath": "userprofiles/{profileId}/remarketingLists", - // "httpMethod": "PUT", - // "id": "dfareporting.remarketingLists.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/remarketingLists", - // "request": { - // "$ref": "RemarketingList" - // }, - // "response": { - // "$ref": "RemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.reports.delete": +} type ReportsDeleteCall struct { s *Service @@ -45292,23 +32479,21 @@ func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsDeleteCall) Fields(s ...googleapi.Field) *ReportsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsDeleteCall) Context(ctx context.Context) *ReportsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45317,12 +32502,7 @@ func (c *ReportsDeleteCall) Header() http.Header { } func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -45337,7 +32517,7 @@ func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.delete" call. @@ -45349,43 +32529,10 @@ func (c *ReportsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a report by its ID.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "DELETE", - // "id": "dfareporting.reports.delete", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.get": +} type ReportsGetCall struct { s *Service @@ -45409,33 +32556,29 @@ func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsGetCall) Fields(s ...googleapi.Field) *ReportsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsGetCall) IfNoneMatch(entityTag string) *ReportsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsGetCall) Context(ctx context.Context) *ReportsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45444,12 +32587,7 @@ func (c *ReportsGetCall) Header() http.Header { } func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45467,16 +32605,14 @@ func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.get" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45484,17 +32620,17 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -45507,43 +32643,7 @@ func (c *ReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report by its ID.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "GET", - // "id": "dfareporting.reports.get", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.insert": +} type ReportsInsertCall struct { s *Service @@ -45565,23 +32665,21 @@ func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsInsertCall) Fields(s ...googleapi.Field) *ReportsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsInsertCall) Context(ctx context.Context) *ReportsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45590,18 +32688,12 @@ func (c *ReportsInsertCall) Header() http.Header { } func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports") @@ -45614,16 +32706,14 @@ func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.insert" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45631,17 +32721,17 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -45654,38 +32744,7 @@ func (c *ReportsInsertCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Creates a report.", - // "flatPath": "userprofiles/{profileId}/reports", - // "httpMethod": "POST", - // "id": "dfareporting.reports.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.list": +} type ReportsListCall struct { s *Service @@ -45705,8 +32764,8 @@ func (r *ReportsService) List(profileId int64) *ReportsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsListCall) MaxResults(maxResults int64) *ReportsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -45719,8 +32778,8 @@ func (c *ReportsListCall) PageToken(pageToken string) *ReportsListCall { return c } -// Scope sets the optional parameter "scope": The scope that defines -// which results are returned. +// Scope sets the optional parameter "scope": The scope that defines which +// results are returned. // // Possible values: // @@ -45731,8 +32790,8 @@ func (c *ReportsListCall) Scope(scope string) *ReportsListCall { return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -45744,8 +32803,7 @@ func (c *ReportsListCall) SortField(sortField string) *ReportsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -45757,33 +32815,29 @@ func (c *ReportsListCall) SortOrder(sortOrder string) *ReportsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsListCall) Fields(s ...googleapi.Field) *ReportsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsListCall) IfNoneMatch(entityTag string) *ReportsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsListCall) Context(ctx context.Context) *ReportsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45792,12 +32846,7 @@ func (c *ReportsListCall) Header() http.Header { } func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45814,16 +32863,14 @@ func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.list" call. -// Exactly one of *ReportList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ReportList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReportList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45831,17 +32878,17 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ReportList{ ServerResponse: googleapi.ServerResponse{ @@ -45854,90 +32901,6 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) return nil, err } return ret, nil - // { - // "description": "Retrieves list of reports.", - // "flatPath": "userprofiles/{profileId}/reports", - // "httpMethod": "GET", - // "id": "dfareporting.reports.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "scope": { - // "default": "MINE", - // "description": "The scope that defines which results are returned.", - // "enum": [ - // "ALL", - // "MINE" - // ], - // "enumDescriptions": [ - // "All reports in account.", - // "My reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME", - // "NAME" - // ], - // "enumDescriptions": [ - // "Sort by report ID.", - // "Sort by 'lastModifiedTime' field.", - // "Sort by name of reports." - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "Ascending order.", - // "Descending order." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports", - // "response": { - // "$ref": "ReportList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -45945,7 +32908,7 @@ func (c *ReportsListCall) Do(opts ...googleapi.CallOption) (*ReportList, error) // The provided context supersedes any context provided to the Context method. func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -45961,8 +32924,6 @@ func (c *ReportsListCall) Pages(ctx context.Context, f func(*ReportList) error) } } -// method id "dfareporting.reports.patch": - type ReportsPatchCall struct { s *Service profileId int64 @@ -45973,8 +32934,7 @@ type ReportsPatchCall struct { header_ http.Header } -// Patch: Updates an existing report. This method supports patch -// semantics. +// Patch: Updates an existing report. This method supports patch semantics. // // - profileId: The DFA user profile ID. // - reportId: The ID of the report. @@ -45987,23 +32947,21 @@ func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsPatchCall) Fields(s ...googleapi.Field) *ReportsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsPatchCall) Context(ctx context.Context) *ReportsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46012,18 +32970,12 @@ func (c *ReportsPatchCall) Header() http.Header { } func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -46037,16 +32989,14 @@ func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.patch" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46054,17 +33004,17 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -46077,46 +33027,7 @@ func (c *ReportsPatchCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing report. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "PATCH", - // "id": "dfareporting.reports.patch", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The DFA user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.run": +} type ReportsRunCall struct { s *Service @@ -46138,31 +33049,29 @@ func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall { return c } -// Synchronous sets the optional parameter "synchronous": If set and -// true, tries to run the report synchronously. +// Synchronous sets the optional parameter "synchronous": If set and true, +// tries to run the report synchronously. func (c *ReportsRunCall) Synchronous(synchronous bool) *ReportsRunCall { c.urlParams_.Set("synchronous", fmt.Sprint(synchronous)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsRunCall) Fields(s ...googleapi.Field) *ReportsRunCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsRunCall) Context(ctx context.Context) *ReportsRunCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsRunCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46171,12 +33080,7 @@ func (c *ReportsRunCall) Header() http.Header { } func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -46191,16 +33095,14 @@ func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.run" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46208,17 +33110,17 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -46231,49 +33133,7 @@ func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Runs a report.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}/run", - // "httpMethod": "POST", - // "id": "dfareporting.reports.run", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "synchronous": { - // "default": "false", - // "description": "If set and true, tries to run the report synchronously.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/run", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.update": +} type ReportsUpdateCall struct { s *Service @@ -46298,23 +33158,21 @@ func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsUpdateCall) Fields(s ...googleapi.Field) *ReportsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsUpdateCall) Context(ctx context.Context) *ReportsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46323,18 +33181,12 @@ func (c *ReportsUpdateCall) Header() http.Header { } func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/{reportId}") @@ -46348,16 +33200,14 @@ func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.update" call. -// Exactly one of *Report or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Report.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Report.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46365,17 +33215,17 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Report{ ServerResponse: googleapi.ServerResponse{ @@ -46388,46 +33238,7 @@ func (c *ReportsUpdateCall) Do(opts ...googleapi.CallOption) (*Report, error) { return nil, err } return ret, nil - // { - // "description": "Updates a report.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}", - // "httpMethod": "PUT", - // "id": "dfareporting.reports.update", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "Report" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.compatibleFields.query": +} type ReportsCompatibleFieldsQueryCall struct { s *Service @@ -46439,8 +33250,8 @@ type ReportsCompatibleFieldsQueryCall struct { } // Query: Returns the fields that are compatible to be selected in the -// respective sections of a report criteria, given the fields already -// selected in the input report and user permissions. +// respective sections of a report criteria, given the fields already selected +// in the input report and user permissions. // // - profileId: The Campaign Manager 360 user profile ID. func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) *ReportsCompatibleFieldsQueryCall { @@ -46451,23 +33262,21 @@ func (r *ReportsCompatibleFieldsService) Query(profileId int64, report *Report) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsCompatibleFieldsQueryCall) Fields(s ...googleapi.Field) *ReportsCompatibleFieldsQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsCompatibleFieldsQueryCall) Context(ctx context.Context) *ReportsCompatibleFieldsQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46476,18 +33285,12 @@ func (c *ReportsCompatibleFieldsQueryCall) Header() http.Header { } func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.report) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/reports/compatiblefields/query") @@ -46500,16 +33303,15 @@ func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.compatibleFields.query" call. -// Exactly one of *CompatibleFields or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CompatibleFields.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CompatibleFields.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*CompatibleFields, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46517,17 +33319,17 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CompatibleFields{ ServerResponse: googleapi.ServerResponse{ @@ -46540,38 +33342,7 @@ func (c *ReportsCompatibleFieldsQueryCall) Do(opts ...googleapi.CallOption) (*Co return nil, err } return ret, nil - // { - // "description": "Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.", - // "flatPath": "userprofiles/{profileId}/reports/compatiblefields/query", - // "httpMethod": "POST", - // "id": "dfareporting.reports.compatibleFields.query", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/compatiblefields/query", - // "request": { - // "$ref": "Report" - // }, - // "response": { - // "$ref": "CompatibleFields" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - -} - -// method id "dfareporting.reports.files.get": +} type ReportsFilesGetCall struct { s *Service @@ -46584,8 +33355,8 @@ type ReportsFilesGetCall struct { header_ http.Header } -// Get: Retrieves a report file by its report ID and file ID. This -// method supports media download. +// Get: Retrieves a report file by its report ID and file ID. This method +// supports media download. // // - fileId: The ID of the report file. // - profileId: The Campaign Manager 360 user profile ID. @@ -46599,33 +33370,29 @@ func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesGetCall) Fields(s ...googleapi.Field) *ReportsFilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesGetCall) IfNoneMatch(entityTag string) *ReportsFilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ReportsFilesGetCall) Context(ctx context.Context) *ReportsFilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46634,12 +33401,7 @@ func (c *ReportsFilesGetCall) Header() http.Header { } func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46658,7 +33420,7 @@ func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -46672,18 +33434,16 @@ func (c *ReportsFilesGetCall) Download(opts ...googleapi.CallOption) (*http.Resp } if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "dfareporting.reports.files.get" call. -// Exactly one of *File or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *File.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46691,17 +33451,17 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &File{ ServerResponse: googleapi.ServerResponse{ @@ -46714,52 +33474,7 @@ func (c *ReportsFilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a report file by its report ID and file ID. This method supports media download.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.get", - // "parameterOrder": [ - // "profileId", - // "reportId", - // "fileId" - // ], - // "parameters": { - // "fileId": { - // "description": "The ID of the report file.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", - // "response": { - // "$ref": "File" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "dfareporting.reports.files.list": +} type ReportsFilesListCall struct { s *Service @@ -46782,8 +33497,8 @@ func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFile return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *ReportsFilesListCall) MaxResults(maxResults int64) *ReportsFilesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -46796,8 +33511,8 @@ func (c *ReportsFilesListCall) PageToken(pageToken string) *ReportsFilesListCall return c } -// SortField sets the optional parameter "sortField": The field by which -// to sort the list. +// SortField sets the optional parameter "sortField": The field by which to +// sort the list. // // Possible values: // @@ -46808,8 +33523,7 @@ func (c *ReportsFilesListCall) SortField(sortField string) *ReportsFilesListCall return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -46821,33 +33535,29 @@ func (c *ReportsFilesListCall) SortOrder(sortOrder string) *ReportsFilesListCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsFilesListCall) Fields(s ...googleapi.Field) *ReportsFilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsFilesListCall) IfNoneMatch(entityTag string) *ReportsFilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsFilesListCall) Context(ctx context.Context) *ReportsFilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsFilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -46856,12 +33566,7 @@ func (c *ReportsFilesListCall) Header() http.Header { } func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -46879,16 +33584,14 @@ func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.files.list" call. -// Exactly one of *FileList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *FileList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FileList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -46896,17 +33599,17 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FileList{ ServerResponse: googleapi.ServerResponse{ @@ -46919,82 +33622,6 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro return nil, err } return ret, nil - // { - // "description": "Lists files for a report.", - // "flatPath": "userprofiles/{profileId}/reports/{reportId}/files", - // "httpMethod": "GET", - // "id": "dfareporting.reports.files.list", - // "parameterOrder": [ - // "profileId", - // "reportId" - // ], - // "parameters": { - // "maxResults": { - // "default": "10", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "10", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value of the nextToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "The Campaign Manager 360 user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "reportId": { - // "description": "The ID of the parent report.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "LAST_MODIFIED_TIME", - // "description": "The field by which to sort the list.", - // "enum": [ - // "ID", - // "LAST_MODIFIED_TIME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "DESCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/reports/{reportId}/files", - // "response": { - // "$ref": "FileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfareporting" - // ] - // } - } // Pages invokes f for each page of results. @@ -47002,7 +33629,7 @@ func (c *ReportsFilesListCall) Do(opts ...googleapi.CallOption) (*FileList, erro // The provided context supersedes any context provided to the Context method. func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -47018,8 +33645,6 @@ func (c *ReportsFilesListCall) Pages(ctx context.Context, f func(*FileList) erro } } -// method id "dfareporting.sites.get": - type SitesGetCall struct { s *Service profileId int64 @@ -47042,33 +33667,29 @@ func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesGetCall) Context(ctx context.Context) *SitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47077,12 +33698,7 @@ func (c *SitesGetCall) Header() http.Header { } func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47100,16 +33716,14 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.get" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47117,17 +33731,17 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -47140,43 +33754,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Gets one site by ID.", - // "flatPath": "userprofiles/{profileId}/sites/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.sites.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites/{id}", - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.insert": +} type SitesInsertCall struct { s *Service @@ -47198,23 +33776,21 @@ func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesInsertCall) Fields(s ...googleapi.Field) *SitesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesInsertCall) Context(ctx context.Context) *SitesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47223,18 +33799,12 @@ func (c *SitesInsertCall) Header() http.Header { } func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -47247,16 +33817,14 @@ func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.insert" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47264,17 +33832,17 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -47287,38 +33855,7 @@ func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new site.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "POST", - // "id": "dfareporting.sites.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.list": +} type SitesListCall struct { s *Service @@ -47329,8 +33866,8 @@ type SitesListCall struct { header_ http.Header } -// List: Retrieves a list of sites, possibly filtered. This method -// supports paging. +// List: Retrieves a list of sites, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. func (r *SitesService) List(profileId int64) *SitesListCall { @@ -47340,45 +33877,44 @@ func (r *SitesService) List(profileId int64) *SitesListCall { } // AcceptsInStreamVideoPlacements sets the optional parameter -// "acceptsInStreamVideoPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInStreamVideoPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInStreamVideoPlacements", fmt.Sprint(acceptsInStreamVideoPlacements)) return c } // AcceptsInterstitialPlacements sets the optional parameter -// "acceptsInterstitialPlacements": This search filter is no longer -// supported and will have no effect on the results returned. +// "acceptsInterstitialPlacements": This search filter is no longer supported +// and will have no effect on the results returned. func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsInterstitialPlacements", fmt.Sprint(acceptsInterstitialPlacements)) return c } // AcceptsPublisherPaidPlacements sets the optional parameter -// "acceptsPublisherPaidPlacements": Select only sites that accept -// publisher paid placements. +// "acceptsPublisherPaidPlacements": Select only sites that accept publisher +// paid placements. func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *SitesListCall { c.urlParams_.Set("acceptsPublisherPaidPlacements", fmt.Sprint(acceptsPublisherPaidPlacements)) return c } -// AdWordsSite sets the optional parameter "adWordsSite": Select only -// AdWords sites. +// AdWordsSite sets the optional parameter "adWordsSite": Select only AdWords +// sites. func (c *SitesListCall) AdWordsSite(adWordsSite bool) *SitesListCall { c.urlParams_.Set("adWordsSite", fmt.Sprint(adWordsSite)) return c } -// Approved sets the optional parameter "approved": Select only approved -// sites. +// Approved sets the optional parameter "approved": Select only approved sites. func (c *SitesListCall) Approved(approved bool) *SitesListCall { c.urlParams_.Set("approved", fmt.Sprint(approved)) return c } -// CampaignIds sets the optional parameter "campaignIds": Select only -// sites with these campaign IDs. +// CampaignIds sets the optional parameter "campaignIds": Select only sites +// with these campaign IDs. func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { var campaignIds_ []string for _, v := range campaignIds { @@ -47388,8 +33924,8 @@ func (c *SitesListCall) CampaignIds(campaignIds ...int64) *SitesListCall { return c } -// DirectorySiteIds sets the optional parameter "directorySiteIds": -// Select only sites with these directory site IDs. +// DirectorySiteIds sets the optional parameter "directorySiteIds": Select only +// sites with these directory site IDs. func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCall { var directorySiteIds_ []string for _, v := range directorySiteIds { @@ -47399,8 +33935,7 @@ func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCa return c } -// Ids sets the optional parameter "ids": Select only sites with these -// IDs. +// Ids sets the optional parameter "ids": Select only sites with these IDs. func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { var ids_ []string for _, v := range ids { @@ -47410,8 +33945,8 @@ func (c *SitesListCall) Ids(ids ...int64) *SitesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SitesListCall) MaxResults(maxResults int64) *SitesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -47424,20 +33959,20 @@ func (c *SitesListCall) PageToken(pageToken string) *SitesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name, ID or keyName. Wildcards (*) are -// allowed. For example, "site*2015" will return objects with names like -// "site June 2015", "site April 2015", or simply "site 2015". Most of -// the searches also add wildcards implicitly at the start and the end -// of the search string. For example, a search string of "site" will -// match objects with name "my site", "site 2015", or simply "site". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name, ID or keyName. Wildcards (*) are allowed. For example, +// "site*2015" will return objects with names like "site June 2015", "site +// April 2015", or simply "site 2015". Most of the searches also add wildcards +// implicitly at the start and the end of the search string. For example, a +// search string of "site" will match objects with name "my site", "site 2015", +// or simply "site". func (c *SitesListCall) SearchString(searchString string) *SitesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -47448,8 +33983,7 @@ func (c *SitesListCall) SortField(sortField string) *SitesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -47460,48 +33994,44 @@ func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// sites with this subaccount ID. +// SubaccountId sets the optional parameter "subaccountId": Select only sites +// with this subaccount ID. func (c *SitesListCall) SubaccountId(subaccountId int64) *SitesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } -// UnmappedSite sets the optional parameter "unmappedSite": Select only -// sites that have not been mapped to a directory site. +// UnmappedSite sets the optional parameter "unmappedSite": Select only sites +// that have not been mapped to a directory site. func (c *SitesListCall) UnmappedSite(unmappedSite bool) *SitesListCall { c.urlParams_.Set("unmappedSite", fmt.Sprint(unmappedSite)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesListCall) Fields(s ...googleapi.Field) *SitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesListCall) IfNoneMatch(entityTag string) *SitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesListCall) Context(ctx context.Context) *SitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47510,12 +34040,7 @@ func (c *SitesListCall) Header() http.Header { } func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -47532,16 +34057,15 @@ func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.list" call. -// Exactly one of *SitesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SitesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SitesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47549,17 +34073,17 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -47572,136 +34096,6 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sites, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "GET", - // "id": "dfareporting.sites.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "acceptsInStreamVideoPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsInterstitialPlacements": { - // "description": "This search filter is no longer supported and will have no effect on the results returned.", - // "location": "query", - // "type": "boolean" - // }, - // "acceptsPublisherPaidPlacements": { - // "description": "Select only sites that accept publisher paid placements.", - // "location": "query", - // "type": "boolean" - // }, - // "adWordsSite": { - // "description": "Select only AdWords sites.", - // "location": "query", - // "type": "boolean" - // }, - // "approved": { - // "description": "Select only approved sites.", - // "location": "query", - // "type": "boolean" - // }, - // "campaignIds": { - // "description": "Select only sites with these campaign IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "directorySiteIds": { - // "description": "Select only sites with these directory site IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "ids": { - // "description": "Select only sites with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, \"site*2015\" will return objects with names like \"site June 2015\", \"site April 2015\", or simply \"site 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"site\" will match objects with name \"my site\", \"site 2015\", or simply \"site\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only sites with this subaccount ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "unmappedSite": { - // "description": "Select only sites that have not been mapped to a directory site.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "response": { - // "$ref": "SitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -47709,7 +34103,7 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er // The provided context supersedes any context provided to the Context method. func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -47725,8 +34119,6 @@ func (c *SitesListCall) Pages(ctx context.Context, f func(*SitesListResponse) er } } -// method id "dfareporting.sites.patch": - type SitesPatchCall struct { s *Service profileId int64 @@ -47736,8 +34128,7 @@ type SitesPatchCall struct { header_ http.Header } -// Patch: Updates an existing site. This method supports patch -// semantics. +// Patch: Updates an existing site. This method supports patch semantics. // // - id: Site ID. // - profileId: User profile ID associated with this request. @@ -47750,23 +34141,21 @@ func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesPatchCall) Fields(s ...googleapi.Field) *SitesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesPatchCall) Context(ctx context.Context) *SitesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47775,18 +34164,12 @@ func (c *SitesPatchCall) Header() http.Header { } func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -47799,16 +34182,14 @@ func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.patch" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47816,17 +34197,17 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -47839,46 +34220,7 @@ func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "PATCH", - // "id": "dfareporting.sites.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Site ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sites.update": +} type SitesUpdateCall struct { s *Service @@ -47900,23 +34242,21 @@ func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesUpdateCall) Fields(s ...googleapi.Field) *SitesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesUpdateCall) Context(ctx context.Context) *SitesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -47925,18 +34265,12 @@ func (c *SitesUpdateCall) Header() http.Header { } func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sites") @@ -47949,16 +34283,14 @@ func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.update" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -47966,17 +34298,17 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Site{ ServerResponse: googleapi.ServerResponse{ @@ -47989,38 +34321,7 @@ func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing site.", - // "flatPath": "userprofiles/{profileId}/sites", - // "httpMethod": "PUT", - // "id": "dfareporting.sites.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.get": +} type SizesGetCall struct { s *Service @@ -48044,33 +34345,29 @@ func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesGetCall) Fields(s ...googleapi.Field) *SizesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesGetCall) IfNoneMatch(entityTag string) *SizesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesGetCall) Context(ctx context.Context) *SizesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48079,12 +34376,7 @@ func (c *SizesGetCall) Header() http.Header { } func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48102,16 +34394,14 @@ func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.get" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48119,17 +34409,17 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -48142,43 +34432,7 @@ func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Gets one size by ID.", - // "flatPath": "userprofiles/{profileId}/sizes/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Size ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes/{id}", - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.insert": +} type SizesInsertCall struct { s *Service @@ -48200,23 +34454,21 @@ func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesInsertCall) Fields(s ...googleapi.Field) *SizesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesInsertCall) Context(ctx context.Context) *SizesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48225,18 +34477,12 @@ func (c *SizesInsertCall) Header() http.Header { } func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.size) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/sizes") @@ -48249,16 +34495,14 @@ func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.insert" call. -// Exactly one of *Size or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Size.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48266,17 +34510,17 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Size{ ServerResponse: googleapi.ServerResponse{ @@ -48289,38 +34533,7 @@ func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new size.", - // "flatPath": "userprofiles/{profileId}/sizes", - // "httpMethod": "POST", - // "id": "dfareporting.sizes.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "request": { - // "$ref": "Size" - // }, - // "response": { - // "$ref": "Size" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.sizes.list": +} type SizesListCall struct { s *Service @@ -48331,10 +34544,10 @@ type SizesListCall struct { header_ http.Header } -// List: Retrieves a list of sizes, possibly filtered. Retrieved sizes -// are globally unique and may include values not currently in use by -// your account. Due to this, the list of sizes returned by this method -// may differ from the list seen in the Trafficking UI. +// List: Retrieves a list of sizes, possibly filtered. Retrieved sizes are +// globally unique and may include values not currently in use by your account. +// Due to this, the list of sizes returned by this method may differ from the +// list seen in the Trafficking UI. // // - profileId: User profile ID associated with this request. func (r *SizesService) List(profileId int64) *SizesListCall { @@ -48343,22 +34556,21 @@ func (r *SizesService) List(profileId int64) *SizesListCall { return c } -// Height sets the optional parameter "height": Select only sizes with -// this height. +// Height sets the optional parameter "height": Select only sizes with this +// height. func (c *SizesListCall) Height(height int64) *SizesListCall { c.urlParams_.Set("height", fmt.Sprint(height)) return c } -// IabStandard sets the optional parameter "iabStandard": Select only -// IAB standard sizes. +// IabStandard sets the optional parameter "iabStandard": Select only IAB +// standard sizes. func (c *SizesListCall) IabStandard(iabStandard bool) *SizesListCall { c.urlParams_.Set("iabStandard", fmt.Sprint(iabStandard)) return c } -// Ids sets the optional parameter "ids": Select only sizes with these -// IDs. +// Ids sets the optional parameter "ids": Select only sizes with these IDs. func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { var ids_ []string for _, v := range ids { @@ -48368,41 +34580,37 @@ func (c *SizesListCall) Ids(ids ...int64) *SizesListCall { return c } -// Width sets the optional parameter "width": Select only sizes with -// this width. +// Width sets the optional parameter "width": Select only sizes with this +// width. func (c *SizesListCall) Width(width int64) *SizesListCall { c.urlParams_.Set("width", fmt.Sprint(width)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SizesListCall) Fields(s ...googleapi.Field) *SizesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SizesListCall) IfNoneMatch(entityTag string) *SizesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SizesListCall) Context(ctx context.Context) *SizesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SizesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48411,12 +34619,7 @@ func (c *SizesListCall) Header() http.Header { } func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48433,16 +34636,15 @@ func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.list" call. -// Exactly one of *SizesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SizesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SizesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48450,17 +34652,17 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SizesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -48473,63 +34675,7 @@ func (c *SizesListCall) Do(opts ...googleapi.CallOption) (*SizesListResponse, er return nil, err } return ret, nil - // { - // "description": "Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally unique and may include values not currently in use by your account. Due to this, the list of sizes returned by this method may differ from the list seen in the Trafficking UI.", - // "flatPath": "userprofiles/{profileId}/sizes", - // "httpMethod": "GET", - // "id": "dfareporting.sizes.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "height": { - // "description": "Select only sizes with this height.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // }, - // "iabStandard": { - // "description": "Select only IAB standard sizes.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only sizes with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "width": { - // "description": "Select only sizes with this width.", - // "format": "int32", - // "location": "query", - // "maximum": "32767", - // "minimum": "0", - // "type": "integer" - // } - // }, - // "path": "userprofiles/{profileId}/sizes", - // "response": { - // "$ref": "SizesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.get": +} type SubaccountsGetCall struct { s *Service @@ -48553,33 +34699,29 @@ func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsGetCall) Fields(s ...googleapi.Field) *SubaccountsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsGetCall) IfNoneMatch(entityTag string) *SubaccountsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsGetCall) Context(ctx context.Context) *SubaccountsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48588,12 +34730,7 @@ func (c *SubaccountsGetCall) Header() http.Header { } func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48611,16 +34748,14 @@ func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.get" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48628,17 +34763,17 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -48651,43 +34786,7 @@ func (c *SubaccountsGetCall) Do(opts ...googleapi.CallOption) (*Subaccount, erro return nil, err } return ret, nil - // { - // "description": "Gets one subaccount by ID.", - // "flatPath": "userprofiles/{profileId}/subaccounts/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts/{id}", - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.insert": +} type SubaccountsInsertCall struct { s *Service @@ -48709,23 +34808,21 @@ func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsInsertCall) Fields(s ...googleapi.Field) *SubaccountsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsInsertCall) Context(ctx context.Context) *SubaccountsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48734,18 +34831,12 @@ func (c *SubaccountsInsertCall) Header() http.Header { } func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -48758,16 +34849,14 @@ func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.insert" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48775,17 +34864,17 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -48798,38 +34887,7 @@ func (c *SubaccountsInsertCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Inserts a new subaccount.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "POST", - // "id": "dfareporting.subaccounts.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.list": +} type SubaccountsListCall struct { s *Service @@ -48840,8 +34898,8 @@ type SubaccountsListCall struct { header_ http.Header } -// List: Gets a list of subaccounts, possibly filtered. This method -// supports paging. +// List: Gets a list of subaccounts, possibly filtered. This method supports +// paging. // // - profileId: User profile ID associated with this request. func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall { @@ -48850,8 +34908,8 @@ func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall { return c } -// Ids sets the optional parameter "ids": Select only subaccounts with -// these IDs. +// Ids sets the optional parameter "ids": Select only subaccounts with these +// IDs. func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { var ids_ []string for _, v := range ids { @@ -48861,8 +34919,8 @@ func (c *SubaccountsListCall) Ids(ids ...int64) *SubaccountsListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *SubaccountsListCall) MaxResults(maxResults int64) *SubaccountsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -48875,21 +34933,21 @@ func (c *SubaccountsListCall) PageToken(pageToken string) *SubaccountsListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "subaccount*2015" will return objects with names like -// "subaccount June 2015", "subaccount April 2015", or simply -// "subaccount 2015". Most of the searches also add wildcards implicitly -// at the start and the end of the search string. For example, a search -// string of "subaccount" will match objects with name "my subaccount", -// "subaccount 2015", or simply "subaccount" . +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "subaccount*2015" will return objects with names like "subaccount June +// 2015", "subaccount April 2015", or simply "subaccount 2015". Most of the +// searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "subaccount" will match +// objects with name "my subaccount", "subaccount 2015", or simply "subaccount" +// . func (c *SubaccountsListCall) SearchString(searchString string) *SubaccountsListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -48900,8 +34958,7 @@ func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -48913,33 +34970,29 @@ func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsListCall) Fields(s ...googleapi.Field) *SubaccountsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubaccountsListCall) IfNoneMatch(entityTag string) *SubaccountsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsListCall) Context(ctx context.Context) *SubaccountsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -48948,12 +35001,7 @@ func (c *SubaccountsListCall) Header() http.Header { } func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -48970,16 +35018,15 @@ func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.list" call. -// Exactly one of *SubaccountsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *SubaccountsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -48987,17 +35034,17 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SubaccountsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -49010,86 +35057,6 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList return nil, err } return ret, nil - // { - // "description": "Gets a list of subaccounts, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "GET", - // "id": "dfareporting.subaccounts.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only subaccounts with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"subaccount*2015\" will return objects with names like \"subaccount June 2015\", \"subaccount April 2015\", or simply \"subaccount 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"subaccount\" will match objects with name \"my subaccount\", \"subaccount 2015\", or simply \"subaccount\" .", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "response": { - // "$ref": "SubaccountsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -49097,7 +35064,7 @@ func (c *SubaccountsListCall) Do(opts ...googleapi.CallOption) (*SubaccountsList // The provided context supersedes any context provided to the Context method. func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -49113,8 +35080,6 @@ func (c *SubaccountsListCall) Pages(ctx context.Context, f func(*SubaccountsList } } -// method id "dfareporting.subaccounts.patch": - type SubaccountsPatchCall struct { s *Service profileId int64 @@ -49124,8 +35089,7 @@ type SubaccountsPatchCall struct { header_ http.Header } -// Patch: Updates an existing subaccount. This method supports patch -// semantics. +// Patch: Updates an existing subaccount. This method supports patch semantics. // // - id: Subaccount ID. // - profileId: User profile ID associated with this request. @@ -49138,23 +35102,21 @@ func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subacc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsPatchCall) Fields(s ...googleapi.Field) *SubaccountsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsPatchCall) Context(ctx context.Context) *SubaccountsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49163,18 +35125,12 @@ func (c *SubaccountsPatchCall) Header() http.Header { } func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -49187,16 +35143,14 @@ func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.patch" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49204,17 +35158,17 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -49227,46 +35181,7 @@ func (c *SubaccountsPatchCall) Do(opts ...googleapi.CallOption) (*Subaccount, er return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "PATCH", - // "id": "dfareporting.subaccounts.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Subaccount ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.subaccounts.update": +} type SubaccountsUpdateCall struct { s *Service @@ -49288,23 +35203,21 @@ func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubaccountsUpdateCall) Fields(s ...googleapi.Field) *SubaccountsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubaccountsUpdateCall) Context(ctx context.Context) *SubaccountsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubaccountsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49313,18 +35226,12 @@ func (c *SubaccountsUpdateCall) Header() http.Header { } func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subaccount) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/subaccounts") @@ -49337,16 +35244,14 @@ func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.update" call. -// Exactly one of *Subaccount or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subaccount.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subaccount.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49354,17 +35259,17 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subaccount{ ServerResponse: googleapi.ServerResponse{ @@ -49377,38 +35282,7 @@ func (c *SubaccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Subaccount, e return nil, err } return ret, nil - // { - // "description": "Updates an existing subaccount.", - // "flatPath": "userprofiles/{profileId}/subaccounts", - // "httpMethod": "PUT", - // "id": "dfareporting.subaccounts.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/subaccounts", - // "request": { - // "$ref": "Subaccount" - // }, - // "response": { - // "$ref": "Subaccount" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.get": +} type TargetableRemarketingListsGetCall struct { s *Service @@ -49432,33 +35306,29 @@ func (r *TargetableRemarketingListsService) Get(profileId int64, id int64) *Targ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsGetCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsGetCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsGetCall) Context(ctx context.Context) *TargetableRemarketingListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49467,12 +35337,7 @@ func (c *TargetableRemarketingListsGetCall) Header() http.Header { } func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49490,16 +35355,15 @@ func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Respons "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.get" call. -// Exactly one of *TargetableRemarketingList or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TargetableRemarketingList.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TargetableRemarketingList.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49507,17 +35371,17 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingList{ ServerResponse: googleapi.ServerResponse{ @@ -49530,43 +35394,7 @@ func (c *TargetableRemarketingListsGetCall) Do(opts ...googleapi.CallOption) (*T return nil, err } return ret, nil - // { - // "description": "Gets one remarketing list by ID.", - // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Remarketing list ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists/{id}", - // "response": { - // "$ref": "TargetableRemarketingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetableRemarketingLists.list": +} type TargetableRemarketingListsListCall struct { s *Service @@ -49577,11 +35405,11 @@ type TargetableRemarketingListsListCall struct { header_ http.Header } -// List: Retrieves a list of targetable remarketing lists, possibly -// filtered. This method supports paging. +// List: Retrieves a list of targetable remarketing lists, possibly filtered. +// This method supports paging. // -// - advertiserId: Select only targetable remarketing lists targetable -// by these advertisers. +// - advertiserId: Select only targetable remarketing lists targetable by these +// advertisers. // - profileId: User profile ID associated with this request. func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId int64) *TargetableRemarketingListsListCall { c := &TargetableRemarketingListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -49590,28 +35418,28 @@ func (r *TargetableRemarketingListsService) List(profileId int64, advertiserId i return c } -// Active sets the optional parameter "active": Select only active or -// only inactive targetable remarketing lists. +// Active sets the optional parameter "active": Select only active or only +// inactive targetable remarketing lists. func (c *TargetableRemarketingListsListCall) Active(active bool) *TargetableRemarketingListsListCall { c.urlParams_.Set("active", fmt.Sprint(active)) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetableRemarketingListsListCall) MaxResults(maxResults int64) *TargetableRemarketingListsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Allows searching for objects -// by name or ID. Wildcards (*) are allowed. For example, "remarketing -// list*2015" will return objects with names like "remarketing list June -// 2015", "remarketing list April 2015", or simply "remarketing list -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "remarketing list" will match objects with name "my remarketing -// list", "remarketing list 2015", or simply "remarketing list". +// Name sets the optional parameter "name": Allows searching for objects by +// name or ID. Wildcards (*) are allowed. For example, "remarketing list*2015" +// will return objects with names like "remarketing list June 2015", +// "remarketing list April 2015", or simply "remarketing list 2015". Most of +// the searches also add wildcards implicitly at the start and the end of the +// search string. For example, a search string of "remarketing list" will match +// objects with name "my remarketing list", "remarketing list 2015", or simply +// "remarketing list". func (c *TargetableRemarketingListsListCall) Name(name string) *TargetableRemarketingListsListCall { c.urlParams_.Set("name", name) return c @@ -49624,8 +35452,8 @@ func (c *TargetableRemarketingListsListCall) PageToken(pageToken string) *Target return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -49636,8 +35464,7 @@ func (c *TargetableRemarketingListsListCall) SortField(sortField string) *Target return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -49649,33 +35476,29 @@ func (c *TargetableRemarketingListsListCall) SortOrder(sortOrder string) *Target } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetableRemarketingListsListCall) Fields(s ...googleapi.Field) *TargetableRemarketingListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetableRemarketingListsListCall) IfNoneMatch(entityTag string) *TargetableRemarketingListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetableRemarketingListsListCall) Context(ctx context.Context) *TargetableRemarketingListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetableRemarketingListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49684,12 +35507,7 @@ func (c *TargetableRemarketingListsListCall) Header() http.Header { } func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49706,17 +35524,15 @@ func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.list" call. -// Exactly one of *TargetableRemarketingListsListResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetableRemarketingListsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (*TargetableRemarketingListsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49724,17 +35540,17 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetableRemarketingListsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -49747,92 +35563,6 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targetable remarketing lists, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/targetableRemarketingLists", - // "httpMethod": "GET", - // "id": "dfareporting.targetableRemarketingLists.list", - // "parameterOrder": [ - // "profileId", - // "advertiserId" - // ], - // "parameters": { - // "active": { - // "description": "Select only active or only inactive targetable remarketing lists.", - // "location": "query", - // "type": "boolean" - // }, - // "advertiserId": { - // "description": "Select only targetable remarketing lists targetable by these advertisers.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "name": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"remarketing list*2015\" will return objects with names like \"remarketing list June 2015\", \"remarketing list April 2015\", or simply \"remarketing list 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"remarketing list\" will match objects with name \"my remarketing list\", \"remarketing list 2015\", or simply \"remarketing list\".", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetableRemarketingLists", - // "response": { - // "$ref": "TargetableRemarketingListsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -49840,7 +35570,7 @@ func (c *TargetableRemarketingListsListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(*TargetableRemarketingListsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -49856,8 +35586,6 @@ func (c *TargetableRemarketingListsListCall) Pages(ctx context.Context, f func(* } } -// method id "dfareporting.targetingTemplates.get": - type TargetingTemplatesGetCall struct { s *Service profileId int64 @@ -49880,33 +35608,29 @@ func (r *TargetingTemplatesService) Get(profileId int64, id int64) *TargetingTem } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesGetCall) Fields(s ...googleapi.Field) *TargetingTemplatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesGetCall) IfNoneMatch(entityTag string) *TargetingTemplatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesGetCall) Context(ctx context.Context) *TargetingTemplatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -49915,12 +35639,7 @@ func (c *TargetingTemplatesGetCall) Header() http.Header { } func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -49938,16 +35657,15 @@ func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.get" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -49955,17 +35673,17 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -49978,43 +35696,7 @@ func (c *TargetingTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Targeting return nil, err } return ret, nil - // { - // "description": "Gets one targeting template by ID.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Targeting template ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates/{id}", - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.insert": +} type TargetingTemplatesInsertCall struct { s *Service @@ -50036,23 +35718,21 @@ func (r *TargetingTemplatesService) Insert(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesInsertCall) Fields(s ...googleapi.Field) *TargetingTemplatesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesInsertCall) Context(ctx context.Context) *TargetingTemplatesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50061,18 +35741,12 @@ func (c *TargetingTemplatesInsertCall) Header() http.Header { } func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -50085,16 +35759,15 @@ func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.insert" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50102,17 +35775,17 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -50125,38 +35798,7 @@ func (c *TargetingTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Inserts a new targeting template.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "POST", - // "id": "dfareporting.targetingTemplates.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.list": +} type TargetingTemplatesListCall struct { s *Service @@ -50167,8 +35809,8 @@ type TargetingTemplatesListCall struct { header_ http.Header } -// List: Retrieves a list of targeting templates, optionally filtered. -// This method supports paging. +// List: Retrieves a list of targeting templates, optionally filtered. This +// method supports paging. // // - profileId: User profile ID associated with this request. func (r *TargetingTemplatesService) List(profileId int64) *TargetingTemplatesListCall { @@ -50184,8 +35826,8 @@ func (c *TargetingTemplatesListCall) AdvertiserId(advertiserId int64) *Targeting return c } -// Ids sets the optional parameter "ids": Select only targeting -// templates with these IDs. +// Ids sets the optional parameter "ids": Select only targeting templates with +// these IDs. func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCall { var ids_ []string for _, v := range ids { @@ -50195,8 +35837,8 @@ func (c *TargetingTemplatesListCall) Ids(ids ...int64) *TargetingTemplatesListCa return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *TargetingTemplatesListCall) MaxResults(maxResults int64) *TargetingTemplatesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -50209,21 +35851,20 @@ func (c *TargetingTemplatesListCall) PageToken(pageToken string) *TargetingTempl return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "template*2015" will return objects with names like -// "template June 2015", "template April 2015", or simply "template -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "template" will match objects with name "my template", "template -// 2015", or simply "template". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "template*2015" will return objects with names like "template June 2015", +// "template April 2015", or simply "template 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "template" will match objects with name "my +// template", "template 2015", or simply "template". func (c *TargetingTemplatesListCall) SearchString(searchString string) *TargetingTemplatesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -50234,8 +35875,7 @@ func (c *TargetingTemplatesListCall) SortField(sortField string) *TargetingTempl return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -50247,33 +35887,29 @@ func (c *TargetingTemplatesListCall) SortOrder(sortOrder string) *TargetingTempl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesListCall) Fields(s ...googleapi.Field) *TargetingTemplatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTemplatesListCall) IfNoneMatch(entityTag string) *TargetingTemplatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesListCall) Context(ctx context.Context) *TargetingTemplatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50282,12 +35918,7 @@ func (c *TargetingTemplatesListCall) Header() http.Header { } func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50304,16 +35935,15 @@ func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.list" call. -// Exactly one of *TargetingTemplatesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *TargetingTemplatesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplatesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*TargetingTemplatesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50321,17 +35951,17 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplatesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -50344,92 +35974,6 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin return nil, err } return ret, nil - // { - // "description": "Retrieves a list of targeting templates, optionally filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "GET", - // "id": "dfareporting.targetingTemplates.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Select only targeting templates with this advertiser ID.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Select only targeting templates with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"template*2015\" will return objects with names like \"template June 2015\", \"template April 2015\", or simply \"template 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"template\" will match objects with name \"my template\", \"template 2015\", or simply \"template\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "response": { - // "$ref": "TargetingTemplatesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -50437,7 +35981,7 @@ func (c *TargetingTemplatesListCall) Do(opts ...googleapi.CallOption) (*Targetin // The provided context supersedes any context provided to the Context method. func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*TargetingTemplatesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -50453,8 +35997,6 @@ func (c *TargetingTemplatesListCall) Pages(ctx context.Context, f func(*Targetin } } -// method id "dfareporting.targetingTemplates.patch": - type TargetingTemplatesPatchCall struct { s *Service profileId int64 @@ -50464,8 +36006,8 @@ type TargetingTemplatesPatchCall struct { header_ http.Header } -// Patch: Updates an existing targeting template. This method supports -// patch semantics. +// Patch: Updates an existing targeting template. This method supports patch +// semantics. // // - id: TargetingTemplate ID. // - profileId: User profile ID associated with this request. @@ -50478,23 +36020,21 @@ func (r *TargetingTemplatesService) Patch(profileId int64, id int64, targetingte } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesPatchCall) Fields(s ...googleapi.Field) *TargetingTemplatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesPatchCall) Context(ctx context.Context) *TargetingTemplatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50503,18 +36043,12 @@ func (c *TargetingTemplatesPatchCall) Header() http.Header { } func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -50527,16 +36061,15 @@ func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.patch" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50544,17 +36077,17 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -50567,46 +36100,7 @@ func (c *TargetingTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Targeti return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "PATCH", - // "id": "dfareporting.targetingTemplates.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "TargetingTemplate ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.targetingTemplates.update": +} type TargetingTemplatesUpdateCall struct { s *Service @@ -50628,23 +36122,21 @@ func (r *TargetingTemplatesService) Update(profileId int64, targetingtemplate *T } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTemplatesUpdateCall) Fields(s ...googleapi.Field) *TargetingTemplatesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTemplatesUpdateCall) Context(ctx context.Context) *TargetingTemplatesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTemplatesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50653,18 +36145,12 @@ func (c *TargetingTemplatesUpdateCall) Header() http.Header { } func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.targetingtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/targetingTemplates") @@ -50677,16 +36163,15 @@ func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.update" call. -// Exactly one of *TargetingTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TargetingTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingTemplate.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*TargetingTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50694,17 +36179,17 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TargetingTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -50717,38 +36202,7 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target return nil, err } return ret, nil - // { - // "description": "Updates an existing targeting template.", - // "flatPath": "userprofiles/{profileId}/targetingTemplates", - // "httpMethod": "PUT", - // "id": "dfareporting.targetingTemplates.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/targetingTemplates", - // "request": { - // "$ref": "TargetingTemplate" - // }, - // "response": { - // "$ref": "TargetingTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.get": +} type UserProfilesGetCall struct { s *Service @@ -50769,33 +36223,29 @@ func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesGetCall) Fields(s ...googleapi.Field) *UserProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesGetCall) IfNoneMatch(entityTag string) *UserProfilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesGetCall) Context(ctx context.Context) *UserProfilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50804,12 +36254,7 @@ func (c *UserProfilesGetCall) Header() http.Header { } func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50826,16 +36271,14 @@ func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.get" call. -// Exactly one of *UserProfile or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfile.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfile.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50843,17 +36286,17 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -50866,37 +36309,7 @@ func (c *UserProfilesGetCall) Do(opts ...googleapi.CallOption) (*UserProfile, er return nil, err } return ret, nil - // { - // "description": "Gets one user profile by ID.", - // "flatPath": "userprofiles/{profileId}", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.get", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "The user profile ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}", - // "response": { - // "$ref": "UserProfile" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions", - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userProfiles.list": +} type UserProfilesListCall struct { s *Service @@ -50913,33 +36326,29 @@ func (r *UserProfilesService) List() *UserProfilesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserProfilesListCall) Fields(s ...googleapi.Field) *UserProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserProfilesListCall) IfNoneMatch(entityTag string) *UserProfilesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserProfilesListCall) Context(ctx context.Context) *UserProfilesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -50948,12 +36357,7 @@ func (c *UserProfilesListCall) Header() http.Header { } func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -50967,16 +36371,15 @@ func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.list" call. -// Exactly one of *UserProfileList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfileList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfileList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -50984,17 +36387,17 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfileList{ ServerResponse: googleapi.ServerResponse{ @@ -51007,27 +36410,7 @@ func (c *UserProfilesListCall) Do(opts ...googleapi.CallOption) (*UserProfileLis return nil, err } return ret, nil - // { - // "description": "Retrieves list of user profiles for a user.", - // "flatPath": "userprofiles", - // "httpMethod": "GET", - // "id": "dfareporting.userProfiles.list", - // "parameterOrder": [], - // "parameters": {}, - // "path": "userprofiles", - // "response": { - // "$ref": "UserProfileList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/ddmconversions", - // "https://www.googleapis.com/auth/dfareporting", - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissionGroups.get": +} type UserRolePermissionGroupsGetCall struct { s *Service @@ -51051,33 +36434,29 @@ func (r *UserRolePermissionGroupsService) Get(profileId int64, id int64) *UserRo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsGetCall) Context(ctx context.Context) *UserRolePermissionGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51086,12 +36465,7 @@ func (c *UserRolePermissionGroupsGetCall) Header() http.Header { } func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51109,16 +36483,15 @@ func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.get" call. -// Exactly one of *UserRolePermissionGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *UserRolePermissionGroup.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51126,17 +36499,17 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroup{ ServerResponse: googleapi.ServerResponse{ @@ -51149,43 +36522,7 @@ func (c *UserRolePermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*Use return nil, err } return ret, nil - // { - // "description": "Gets one user role permission group by ID.", - // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission group ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups/{id}", - // "response": { - // "$ref": "UserRolePermissionGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissionGroups.list": +} type UserRolePermissionGroupsListCall struct { s *Service @@ -51206,33 +36543,29 @@ func (r *UserRolePermissionGroupsService) List(profileId int64) *UserRolePermiss } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionGroupsListCall) Fields(s ...googleapi.Field) *UserRolePermissionGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionGroupsListCall) IfNoneMatch(entityTag string) *UserRolePermissionGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionGroupsListCall) Context(ctx context.Context) *UserRolePermissionGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51241,12 +36574,7 @@ func (c *UserRolePermissionGroupsListCall) Header() http.Header { } func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51263,17 +36591,15 @@ func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.list" call. -// Exactly one of *UserRolePermissionGroupsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionGroupsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionGroupsListResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionGroupsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51281,17 +36607,17 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionGroupsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -51304,35 +36630,7 @@ func (c *UserRolePermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*Us return nil, err } return ret, nil - // { - // "description": "Gets a list of all supported user role permission groups.", - // "flatPath": "userprofiles/{profileId}/userRolePermissionGroups", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissionGroups.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissionGroups", - // "response": { - // "$ref": "UserRolePermissionGroupsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.get": +} type UserRolePermissionsGetCall struct { s *Service @@ -51356,33 +36654,29 @@ func (r *UserRolePermissionsService) Get(profileId int64, id int64) *UserRolePer } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsGetCall) Fields(s ...googleapi.Field) *UserRolePermissionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsGetCall) IfNoneMatch(entityTag string) *UserRolePermissionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsGetCall) Context(ctx context.Context) *UserRolePermissionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51391,12 +36685,7 @@ func (c *UserRolePermissionsGetCall) Header() http.Header { } func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51414,16 +36703,15 @@ func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.get" call. -// Exactly one of *UserRolePermission or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolePermission.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermission.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRolePermission, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51431,17 +36719,17 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermission{ ServerResponse: googleapi.ServerResponse{ @@ -51454,43 +36742,7 @@ func (c *UserRolePermissionsGetCall) Do(opts ...googleapi.CallOption) (*UserRole return nil, err } return ret, nil - // { - // "description": "Gets one user role permission by ID.", - // "flatPath": "userprofiles/{profileId}/userRolePermissions/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role permission ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions/{id}", - // "response": { - // "$ref": "UserRolePermission" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRolePermissions.list": +} type UserRolePermissionsListCall struct { s *Service @@ -51510,8 +36762,8 @@ func (r *UserRolePermissionsService) List(profileId int64) *UserRolePermissionsL return c } -// Ids sets the optional parameter "ids": Select only user role -// permissions with these IDs. +// Ids sets the optional parameter "ids": Select only user role permissions +// with these IDs. func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsListCall { var ids_ []string for _, v := range ids { @@ -51522,33 +36774,29 @@ func (c *UserRolePermissionsListCall) Ids(ids ...int64) *UserRolePermissionsList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolePermissionsListCall) Fields(s ...googleapi.Field) *UserRolePermissionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolePermissionsListCall) IfNoneMatch(entityTag string) *UserRolePermissionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolePermissionsListCall) Context(ctx context.Context) *UserRolePermissionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolePermissionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51557,12 +36805,7 @@ func (c *UserRolePermissionsListCall) Header() http.Header { } func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51579,16 +36822,15 @@ func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.list" call. -// Exactly one of *UserRolePermissionsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *UserRolePermissionsListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolePermissionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRolePermissionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51596,17 +36838,17 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolePermissionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -51619,42 +36861,7 @@ func (c *UserRolePermissionsListCall) Do(opts ...googleapi.CallOption) (*UserRol return nil, err } return ret, nil - // { - // "description": "Gets a list of user role permissions, possibly filtered.", - // "flatPath": "userprofiles/{profileId}/userRolePermissions", - // "httpMethod": "GET", - // "id": "dfareporting.userRolePermissions.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "ids": { - // "description": "Select only user role permissions with these IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRolePermissions", - // "response": { - // "$ref": "UserRolePermissionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.delete": +} type UserRolesDeleteCall struct { s *Service @@ -51677,23 +36884,21 @@ func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesDeleteCall) Fields(s ...googleapi.Field) *UserRolesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesDeleteCall) Context(ctx context.Context) *UserRolesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51702,12 +36907,7 @@ func (c *UserRolesDeleteCall) Header() http.Header { } func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -51722,7 +36922,7 @@ func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.delete" call. @@ -51734,43 +36934,10 @@ func (c *UserRolesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an existing user role.", - // "flatPath": "userprofiles/{profileId}/userRoles/{id}", - // "httpMethod": "DELETE", - // "id": "dfareporting.userRoles.delete", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.get": +} type UserRolesGetCall struct { s *Service @@ -51794,33 +36961,29 @@ func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesGetCall) Fields(s ...googleapi.Field) *UserRolesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesGetCall) IfNoneMatch(entityTag string) *UserRolesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesGetCall) Context(ctx context.Context) *UserRolesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51829,12 +36992,7 @@ func (c *UserRolesGetCall) Header() http.Header { } func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -51852,16 +37010,14 @@ func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.get" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -51869,17 +37025,17 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -51892,43 +37048,7 @@ func (c *UserRolesGetCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { return nil, err } return ret, nil - // { - // "description": "Gets one user role by ID.", - // "flatPath": "userprofiles/{profileId}/userRoles/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "User role ID.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles/{id}", - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.insert": +} type UserRolesInsertCall struct { s *Service @@ -51950,23 +37070,21 @@ func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesInsertCall) Fields(s ...googleapi.Field) *UserRolesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesInsertCall) Context(ctx context.Context) *UserRolesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -51975,18 +37093,12 @@ func (c *UserRolesInsertCall) Header() http.Header { } func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -51999,16 +37111,14 @@ func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.insert" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -52016,17 +37126,17 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -52039,38 +37149,7 @@ func (c *UserRolesInsertCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Inserts a new user role.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "POST", - // "id": "dfareporting.userRoles.insert", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.list": +} type UserRolesListCall struct { s *Service @@ -52091,16 +37170,16 @@ func (r *UserRolesService) List(profileId int64) *UserRolesListCall { return c } -// AccountUserRoleOnly sets the optional parameter -// "accountUserRoleOnly": Select only account level user roles not -// associated with any specific subaccount. +// AccountUserRoleOnly sets the optional parameter "accountUserRoleOnly": +// Select only account level user roles not associated with any specific +// subaccount. func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnly bool) *UserRolesListCall { c.urlParams_.Set("accountUserRoleOnly", fmt.Sprint(accountUserRoleOnly)) return c } -// Ids sets the optional parameter "ids": Select only user roles with -// the specified IDs. +// Ids sets the optional parameter "ids": Select only user roles with the +// specified IDs. func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { var ids_ []string for _, v := range ids { @@ -52110,8 +37189,8 @@ func (c *UserRolesListCall) Ids(ids ...int64) *UserRolesListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to return. func (c *UserRolesListCall) MaxResults(maxResults int64) *UserRolesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -52124,21 +37203,20 @@ func (c *UserRolesListCall) PageToken(pageToken string) *UserRolesListCall { return c } -// SearchString sets the optional parameter "searchString": Allows -// searching for objects by name or ID. Wildcards (*) are allowed. For -// example, "userrole*2015" will return objects with names like -// "userrole June 2015", "userrole April 2015", or simply "userrole -// 2015". Most of the searches also add wildcards implicitly at the -// start and the end of the search string. For example, a search string -// of "userrole" will match objects with name "my userrole", "userrole -// 2015", or simply "userrole". +// SearchString sets the optional parameter "searchString": Allows searching +// for objects by name or ID. Wildcards (*) are allowed. For example, +// "userrole*2015" will return objects with names like "userrole June 2015", +// "userrole April 2015", or simply "userrole 2015". Most of the searches also +// add wildcards implicitly at the start and the end of the search string. For +// example, a search string of "userrole" will match objects with name "my +// userrole", "userrole 2015", or simply "userrole". func (c *UserRolesListCall) SearchString(searchString string) *UserRolesListCall { c.urlParams_.Set("searchString", searchString) return c } -// SortField sets the optional parameter "sortField": Field by which to -// sort the list. +// SortField sets the optional parameter "sortField": Field by which to sort +// the list. // // Possible values: // @@ -52149,8 +37227,7 @@ func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Order of sorted -// results. +// SortOrder sets the optional parameter "sortOrder": Order of sorted results. // // Possible values: // @@ -52161,41 +37238,37 @@ func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall { return c } -// SubaccountId sets the optional parameter "subaccountId": Select only -// user roles that belong to this subaccount. +// SubaccountId sets the optional parameter "subaccountId": Select only user +// roles that belong to this subaccount. func (c *UserRolesListCall) SubaccountId(subaccountId int64) *UserRolesListCall { c.urlParams_.Set("subaccountId", fmt.Sprint(subaccountId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesListCall) Fields(s ...googleapi.Field) *UserRolesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserRolesListCall) IfNoneMatch(entityTag string) *UserRolesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesListCall) Context(ctx context.Context) *UserRolesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -52204,12 +37277,7 @@ func (c *UserRolesListCall) Header() http.Header { } func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -52226,16 +37294,15 @@ func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.list" call. -// Exactly one of *UserRolesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UserRolesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRolesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -52243,17 +37310,17 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRolesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -52266,97 +37333,6 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of user roles, possibly filtered. This method supports paging.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "GET", - // "id": "dfareporting.userRoles.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "accountUserRoleOnly": { - // "description": "Select only account level user roles not associated with any specific subaccount.", - // "location": "query", - // "type": "boolean" - // }, - // "ids": { - // "description": "Select only user roles with the specified IDs.", - // "format": "int64", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "1000", - // "description": "Maximum number of results to return.", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Value of the nextPageToken from the previous result page.", - // "location": "query", - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "searchString": { - // "description": "Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, \"userrole*2015\" will return objects with names like \"userrole June 2015\", \"userrole April 2015\", or simply \"userrole 2015\". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of \"userrole\" will match objects with name \"my userrole\", \"userrole 2015\", or simply \"userrole\".", - // "location": "query", - // "type": "string" - // }, - // "sortField": { - // "default": "ID", - // "description": "Field by which to sort the list.", - // "enum": [ - // "ID", - // "NAME" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ASCENDING", - // "description": "Order of sorted results.", - // "enum": [ - // "ASCENDING", - // "DESCENDING" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "subaccountId": { - // "description": "Select only user roles that belong to this subaccount.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "response": { - // "$ref": "UserRolesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } // Pages invokes f for each page of results. @@ -52364,7 +37340,7 @@ func (c *UserRolesListCall) Do(opts ...googleapi.CallOption) (*UserRolesListResp // The provided context supersedes any context provided to the Context method. func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -52380,8 +37356,6 @@ func (c *UserRolesListCall) Pages(ctx context.Context, f func(*UserRolesListResp } } -// method id "dfareporting.userRoles.patch": - type UserRolesPatchCall struct { s *Service profileId int64 @@ -52391,8 +37365,7 @@ type UserRolesPatchCall struct { header_ http.Header } -// Patch: Updates an existing user role. This method supports patch -// semantics. +// Patch: Updates an existing user role. This method supports patch semantics. // // - id: UserRole ID. // - profileId: User profile ID associated with this request. @@ -52405,23 +37378,21 @@ func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesPatchCall) Fields(s ...googleapi.Field) *UserRolesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesPatchCall) Context(ctx context.Context) *UserRolesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -52430,18 +37401,12 @@ func (c *UserRolesPatchCall) Header() http.Header { } func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -52454,16 +37419,14 @@ func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.patch" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -52471,17 +37434,17 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -52494,46 +37457,7 @@ func (c *UserRolesPatchCall) Do(opts ...googleapi.CallOption) (*UserRole, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing user role. This method supports patch semantics.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "PATCH", - // "id": "dfareporting.userRoles.patch", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "UserRole ID.", - // "format": "int64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.userRoles.update": +} type UserRolesUpdateCall struct { s *Service @@ -52555,23 +37479,21 @@ func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRole } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserRolesUpdateCall) Fields(s ...googleapi.Field) *UserRolesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserRolesUpdateCall) Context(ctx context.Context) *UserRolesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserRolesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -52580,18 +37502,12 @@ func (c *UserRolesUpdateCall) Header() http.Header { } func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userrole) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/userRoles") @@ -52604,16 +37520,14 @@ func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.update" call. -// Exactly one of *UserRole or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *UserRole.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserRole.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -52621,17 +37535,17 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserRole{ ServerResponse: googleapi.ServerResponse{ @@ -52644,38 +37558,7 @@ func (c *UserRolesUpdateCall) Do(opts ...googleapi.CallOption) (*UserRole, error return nil, err } return ret, nil - // { - // "description": "Updates an existing user role.", - // "flatPath": "userprofiles/{profileId}/userRoles", - // "httpMethod": "PUT", - // "id": "dfareporting.userRoles.update", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/userRoles", - // "request": { - // "$ref": "UserRole" - // }, - // "response": { - // "$ref": "UserRole" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.get": +} type VideoFormatsGetCall struct { s *Service @@ -52699,33 +37582,29 @@ func (r *VideoFormatsService) Get(profileId int64, id int64) *VideoFormatsGetCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsGetCall) Fields(s ...googleapi.Field) *VideoFormatsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsGetCall) IfNoneMatch(entityTag string) *VideoFormatsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsGetCall) Context(ctx context.Context) *VideoFormatsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -52734,12 +37613,7 @@ func (c *VideoFormatsGetCall) Header() http.Header { } func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -52757,16 +37631,14 @@ func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.get" call. -// Exactly one of *VideoFormat or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *VideoFormat.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *VideoFormat.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -52774,17 +37646,17 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormat{ ServerResponse: googleapi.ServerResponse{ @@ -52797,43 +37669,7 @@ func (c *VideoFormatsGetCall) Do(opts ...googleapi.CallOption) (*VideoFormat, er return nil, err } return ret, nil - // { - // "description": "Gets one video format by ID.", - // "flatPath": "userprofiles/{profileId}/videoFormats/{id}", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.get", - // "parameterOrder": [ - // "profileId", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "Video format ID.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats/{id}", - // "response": { - // "$ref": "VideoFormat" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - -} - -// method id "dfareporting.videoFormats.list": +} type VideoFormatsListCall struct { s *Service @@ -52854,33 +37690,29 @@ func (r *VideoFormatsService) List(profileId int64) *VideoFormatsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *VideoFormatsListCall) Fields(s ...googleapi.Field) *VideoFormatsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *VideoFormatsListCall) IfNoneMatch(entityTag string) *VideoFormatsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *VideoFormatsListCall) Context(ctx context.Context) *VideoFormatsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *VideoFormatsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -52889,12 +37721,7 @@ func (c *VideoFormatsListCall) Header() http.Header { } func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -52911,16 +37738,15 @@ func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.list" call. -// Exactly one of *VideoFormatsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *VideoFormatsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -52928,17 +37754,17 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &VideoFormatsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -52951,30 +37777,4 @@ func (c *VideoFormatsListCall) Do(opts ...googleapi.CallOption) (*VideoFormatsLi return nil, err } return ret, nil - // { - // "description": "Lists available video formats.", - // "flatPath": "userprofiles/{profileId}/videoFormats", - // "httpMethod": "GET", - // "id": "dfareporting.videoFormats.list", - // "parameterOrder": [ - // "profileId" - // ], - // "parameters": { - // "profileId": { - // "description": "User profile ID associated with this request.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "userprofiles/{profileId}/videoFormats", - // "response": { - // "$ref": "VideoFormatsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/dfatrafficking" - // ] - // } - } diff --git a/dfareporting/v3.5/dfareporting-gen.go b/dfareporting/v3.5/dfareporting-gen.go index 224e563ef06..eaf2f3920a0 100644 --- a/dfareporting/v3.5/dfareporting-gen.go +++ b/dfareporting/v3.5/dfareporting-gen.go @@ -749,7 +749,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.media.upload" call. diff --git a/dfareporting/v4/dfareporting-gen.go b/dfareporting/v4/dfareporting-gen.go index 1e428ef59fc..d0c7c992b10 100644 --- a/dfareporting/v4/dfareporting-gen.go +++ b/dfareporting/v4/dfareporting-gen.go @@ -12164,7 +12164,7 @@ func (c *AccountActiveAdSummariesGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "summaryAccountId": strconv.FormatInt(c.summaryAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountActiveAdSummaries.get" call. @@ -12276,7 +12276,7 @@ func (c *AccountPermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.get" call. @@ -12384,7 +12384,7 @@ func (c *AccountPermissionGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissionGroups.list" call. @@ -12496,7 +12496,7 @@ func (c *AccountPermissionsGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.get" call. @@ -12604,7 +12604,7 @@ func (c *AccountPermissionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountPermissions.list" call. @@ -12716,7 +12716,7 @@ func (c *AccountUserProfilesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.get" call. @@ -12818,7 +12818,7 @@ func (c *AccountUserProfilesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.insert" call. @@ -13009,7 +13009,7 @@ func (c *AccountUserProfilesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.list" call. @@ -13135,7 +13135,7 @@ func (c *AccountUserProfilesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.patch" call. @@ -13237,7 +13237,7 @@ func (c *AccountUserProfilesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accountUserProfiles.update" call. @@ -13349,7 +13349,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.get" call. @@ -13523,7 +13523,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.list" call. @@ -13648,7 +13648,7 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.patch" call. @@ -13749,7 +13749,7 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.accounts.update" call. @@ -13860,7 +13860,7 @@ func (c *AdsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.get" call. @@ -13961,7 +13961,7 @@ func (c *AdsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.insert" call. @@ -14300,7 +14300,7 @@ func (c *AdsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.list" call. @@ -14425,7 +14425,7 @@ func (c *AdsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.patch" call. @@ -14526,7 +14526,7 @@ func (c *AdsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.ads.update" call. @@ -14625,7 +14625,7 @@ func (c *AdvertiserGroupsDeleteCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.delete" call. @@ -14713,7 +14713,7 @@ func (c *AdvertiserGroupsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.get" call. @@ -14815,7 +14815,7 @@ func (c *AdvertiserGroupsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.insert" call. @@ -14985,7 +14985,7 @@ func (c *AdvertiserGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.list" call. @@ -15111,7 +15111,7 @@ func (c *AdvertiserGroupsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.patch" call. @@ -15213,7 +15213,7 @@ func (c *AdvertiserGroupsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserGroups.update" call. @@ -15348,7 +15348,7 @@ func (c *AdvertiserInvoicesListCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserInvoices.list" call. @@ -15481,7 +15481,7 @@ func (c *AdvertiserLandingPagesGetCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.get" call. @@ -15582,7 +15582,7 @@ func (c *AdvertiserLandingPagesInsertCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.insert" call. @@ -15787,7 +15787,7 @@ func (c *AdvertiserLandingPagesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.list" call. @@ -15913,7 +15913,7 @@ func (c *AdvertiserLandingPagesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.patch" call. @@ -16014,7 +16014,7 @@ func (c *AdvertiserLandingPagesUpdateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertiserLandingPages.update" call. @@ -16125,7 +16125,7 @@ func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.get" call. @@ -16226,7 +16226,7 @@ func (c *AdvertisersInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.insert" call. @@ -16452,7 +16452,7 @@ func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.list" call. @@ -16577,7 +16577,7 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.patch" call. @@ -16678,7 +16678,7 @@ func (c *AdvertisersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.advertisers.update" call. @@ -16787,7 +16787,7 @@ func (c *BillingAssignmentsInsertCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "billingProfileId": strconv.FormatInt(c.billingProfileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.billingAssignments.insert" call. @@ -16899,7 +16899,7 @@ func (c *BillingAssignmentsListCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "billingProfileId": strconv.FormatInt(c.billingProfileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.billingAssignments.list" call. @@ -17011,7 +17011,7 @@ func (c *BillingProfilesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.billingProfiles.get" call. @@ -17219,7 +17219,7 @@ func (c *BillingProfilesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.billingProfiles.list" call. @@ -17342,7 +17342,7 @@ func (c *BillingProfilesUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.billingProfiles.update" call. @@ -17453,7 +17453,7 @@ func (c *BillingRatesListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "billingProfileId": strconv.FormatInt(c.billingProfileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.billingRates.list" call. @@ -17561,7 +17561,7 @@ func (c *BrowsersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.browsers.list" call. @@ -17669,7 +17669,7 @@ func (c *CampaignCreativeAssociationsInsertCall) doRequest(alt string) (*http.Re "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.insert" call. @@ -17807,7 +17807,7 @@ func (c *CampaignCreativeAssociationsListCall) doRequest(alt string) (*http.Resp "profileId": strconv.FormatInt(c.profileId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaignCreativeAssociations.list" call. @@ -17940,7 +17940,7 @@ func (c *CampaignsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.get" call. @@ -18041,7 +18041,7 @@ func (c *CampaignsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.insert" call. @@ -18271,7 +18271,7 @@ func (c *CampaignsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.list" call. @@ -18396,7 +18396,7 @@ func (c *CampaignsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.patch" call. @@ -18497,7 +18497,7 @@ func (c *CampaignsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.campaigns.update" call. @@ -18608,7 +18608,7 @@ func (c *ChangeLogsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.get" call. @@ -18873,7 +18873,7 @@ func (c *ChangeLogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.changeLogs.list" call. @@ -19042,7 +19042,7 @@ func (c *CitiesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.cities.list" call. @@ -19154,7 +19154,7 @@ func (c *ConnectionTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.get" call. @@ -19261,7 +19261,7 @@ func (c *ConnectionTypesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.connectionTypes.list" call. @@ -19361,7 +19361,7 @@ func (c *ContentCategoriesDeleteCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.delete" call. @@ -19449,7 +19449,7 @@ func (c *ContentCategoriesGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.get" call. @@ -19551,7 +19551,7 @@ func (c *ContentCategoriesInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.insert" call. @@ -19721,7 +19721,7 @@ func (c *ContentCategoriesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.list" call. @@ -19847,7 +19847,7 @@ func (c *ContentCategoriesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.patch" call. @@ -19949,7 +19949,7 @@ func (c *ContentCategoriesUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.contentCategories.update" call. @@ -20051,7 +20051,7 @@ func (c *ConversionsBatchinsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchinsert" call. @@ -20153,7 +20153,7 @@ func (c *ConversionsBatchupdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.conversions.batchupdate" call. @@ -20265,7 +20265,7 @@ func (c *CountriesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.get" call. @@ -20372,7 +20372,7 @@ func (c *CountriesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.countries.list" call. @@ -20528,7 +20528,7 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeAssets.insert" call. @@ -20649,7 +20649,7 @@ func (c *CreativeFieldValuesDeleteCall) doRequest(alt string) (*http.Response, e "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.delete" call. @@ -20741,7 +20741,7 @@ func (c *CreativeFieldValuesGetCall) doRequest(alt string) (*http.Response, erro "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.get" call. @@ -20847,7 +20847,7 @@ func (c *CreativeFieldValuesInsertCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.insert" call. @@ -21016,7 +21016,7 @@ func (c *CreativeFieldValuesListCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.list" call. @@ -21146,7 +21146,7 @@ func (c *CreativeFieldValuesPatchCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.patch" call. @@ -21252,7 +21252,7 @@ func (c *CreativeFieldValuesUpdateCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "creativeFieldId": strconv.FormatInt(c.creativeFieldId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFieldValues.update" call. @@ -21352,7 +21352,7 @@ func (c *CreativeFieldsDeleteCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.delete" call. @@ -21440,7 +21440,7 @@ func (c *CreativeFieldsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.get" call. @@ -21541,7 +21541,7 @@ func (c *CreativeFieldsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.insert" call. @@ -21721,7 +21721,7 @@ func (c *CreativeFieldsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.list" call. @@ -21847,7 +21847,7 @@ func (c *CreativeFieldsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.patch" call. @@ -21948,7 +21948,7 @@ func (c *CreativeFieldsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeFields.update" call. @@ -22059,7 +22059,7 @@ func (c *CreativeGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.get" call. @@ -22160,7 +22160,7 @@ func (c *CreativeGroupsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.insert" call. @@ -22347,7 +22347,7 @@ func (c *CreativeGroupsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.list" call. @@ -22473,7 +22473,7 @@ func (c *CreativeGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.patch" call. @@ -22574,7 +22574,7 @@ func (c *CreativeGroupsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creativeGroups.update" call. @@ -22685,7 +22685,7 @@ func (c *CreativesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.get" call. @@ -22786,7 +22786,7 @@ func (c *CreativesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.insert" call. @@ -23067,7 +23067,7 @@ func (c *CreativesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.list" call. @@ -23192,7 +23192,7 @@ func (c *CreativesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.patch" call. @@ -23293,7 +23293,7 @@ func (c *CreativesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.creatives.update" call. @@ -23408,7 +23408,7 @@ func (c *DimensionValuesQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dimensionValues.query" call. @@ -23541,7 +23541,7 @@ func (c *DirectorySitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.get" call. @@ -23642,7 +23642,7 @@ func (c *DirectorySitesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.insert" call. @@ -23849,7 +23849,7 @@ func (c *DirectorySitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.directorySites.list" call. @@ -23978,7 +23978,7 @@ func (c *DynamicTargetingKeysDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "objectId": strconv.FormatInt(c.objectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.delete" call. @@ -24059,7 +24059,7 @@ func (c *DynamicTargetingKeysInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.insert" call. @@ -24202,7 +24202,7 @@ func (c *DynamicTargetingKeysListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.dynamicTargetingKeys.list" call. @@ -24302,7 +24302,7 @@ func (c *EventTagsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.delete" call. @@ -24390,7 +24390,7 @@ func (c *EventTagsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.get" call. @@ -24491,7 +24491,7 @@ func (c *EventTagsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.insert" call. @@ -24712,7 +24712,7 @@ func (c *EventTagsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.list" call. @@ -24816,7 +24816,7 @@ func (c *EventTagsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.patch" call. @@ -24917,7 +24917,7 @@ func (c *EventTagsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.eventTags.update" call. @@ -25029,7 +25029,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -25202,7 +25202,7 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.files.list" call. @@ -25322,7 +25322,7 @@ func (c *FloodlightActivitiesDeleteCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.delete" call. @@ -25401,7 +25401,7 @@ func (c *FloodlightActivitiesGeneratetagCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.generatetag" call. @@ -25513,7 +25513,7 @@ func (c *FloodlightActivitiesGetCall) doRequest(alt string) (*http.Response, err "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.get" call. @@ -25615,7 +25615,7 @@ func (c *FloodlightActivitiesInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.insert" call. @@ -25852,7 +25852,7 @@ func (c *FloodlightActivitiesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.list" call. @@ -25978,7 +25978,7 @@ func (c *FloodlightActivitiesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.patch" call. @@ -26080,7 +26080,7 @@ func (c *FloodlightActivitiesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivities.update" call. @@ -26192,7 +26192,7 @@ func (c *FloodlightActivityGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.get" call. @@ -26294,7 +26294,7 @@ func (c *FloodlightActivityGroupsInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.insert" call. @@ -26495,7 +26495,7 @@ func (c *FloodlightActivityGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.list" call. @@ -26621,7 +26621,7 @@ func (c *FloodlightActivityGroupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.patch" call. @@ -26723,7 +26723,7 @@ func (c *FloodlightActivityGroupsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightActivityGroups.update" call. @@ -26835,7 +26835,7 @@ func (c *FloodlightConfigurationsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.get" call. @@ -26955,7 +26955,7 @@ func (c *FloodlightConfigurationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.list" call. @@ -27060,7 +27060,7 @@ func (c *FloodlightConfigurationsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.patch" call. @@ -27162,7 +27162,7 @@ func (c *FloodlightConfigurationsUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.floodlightConfigurations.update" call. @@ -27278,7 +27278,7 @@ func (c *InventoryItemsGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.get" call. @@ -27479,7 +27479,7 @@ func (c *InventoryItemsListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.inventoryItems.list" call. @@ -27608,7 +27608,7 @@ func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.languages.list" call. @@ -27716,7 +27716,7 @@ func (c *MetrosListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.metros.list" call. @@ -27828,7 +27828,7 @@ func (c *MobileAppsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileApps.get" call. @@ -27988,7 +27988,7 @@ func (c *MobileAppsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileApps.list" call. @@ -28121,7 +28121,7 @@ func (c *MobileCarriersGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.get" call. @@ -28228,7 +28228,7 @@ func (c *MobileCarriersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.mobileCarriers.list" call. @@ -28340,7 +28340,7 @@ func (c *OperatingSystemVersionsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.get" call. @@ -28448,7 +28448,7 @@ func (c *OperatingSystemVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystemVersions.list" call. @@ -28560,7 +28560,7 @@ func (c *OperatingSystemsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "dartId": strconv.FormatInt(c.dartId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.get" call. @@ -28668,7 +28668,7 @@ func (c *OperatingSystemsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.operatingSystems.list" call. @@ -28784,7 +28784,7 @@ func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) { "projectId": strconv.FormatInt(c.projectId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.get" call. @@ -28966,7 +28966,7 @@ func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "projectId": strconv.FormatInt(c.projectId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.orders.list" call. @@ -29099,7 +29099,7 @@ func (c *PlacementGroupsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.get" call. @@ -29200,7 +29200,7 @@ func (c *PlacementGroupsInsertCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.insert" call. @@ -29523,7 +29523,7 @@ func (c *PlacementGroupsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.list" call. @@ -29649,7 +29649,7 @@ func (c *PlacementGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.patch" call. @@ -29750,7 +29750,7 @@ func (c *PlacementGroupsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementGroups.update" call. @@ -29849,7 +29849,7 @@ func (c *PlacementStrategiesDeleteCall) doRequest(alt string) (*http.Response, e "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.delete" call. @@ -29937,7 +29937,7 @@ func (c *PlacementStrategiesGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.get" call. @@ -30039,7 +30039,7 @@ func (c *PlacementStrategiesInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.insert" call. @@ -30209,7 +30209,7 @@ func (c *PlacementStrategiesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.list" call. @@ -30335,7 +30335,7 @@ func (c *PlacementStrategiesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.patch" call. @@ -30437,7 +30437,7 @@ func (c *PlacementStrategiesUpdateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placementStrategies.update" call. @@ -30582,7 +30582,7 @@ func (c *PlacementsGeneratetagsCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.generatetags" call. @@ -30694,7 +30694,7 @@ func (c *PlacementsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.get" call. @@ -30795,7 +30795,7 @@ func (c *PlacementsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.insert" call. @@ -31147,7 +31147,7 @@ func (c *PlacementsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.list" call. @@ -31272,7 +31272,7 @@ func (c *PlacementsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.patch" call. @@ -31373,7 +31373,7 @@ func (c *PlacementsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.placements.update" call. @@ -31484,7 +31484,7 @@ func (c *PlatformTypesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.get" call. @@ -31591,7 +31591,7 @@ func (c *PlatformTypesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.platformTypes.list" call. @@ -31703,7 +31703,7 @@ func (c *PostalCodesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "code": c.code, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.get" call. @@ -31810,7 +31810,7 @@ func (c *PostalCodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.postalCodes.list" call. @@ -31922,7 +31922,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.get" call. @@ -32100,7 +32100,7 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.projects.list" call. @@ -32229,7 +32229,7 @@ func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.regions.list" call. @@ -32341,7 +32341,7 @@ func (c *RemarketingListSharesGetCall) doRequest(alt string) (*http.Response, er "profileId": strconv.FormatInt(c.profileId, 10), "remarketingListId": strconv.FormatInt(c.remarketingListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.get" call. @@ -32446,7 +32446,7 @@ func (c *RemarketingListSharesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.patch" call. @@ -32548,7 +32548,7 @@ func (c *RemarketingListSharesUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingListShares.update" call. @@ -32660,7 +32660,7 @@ func (c *RemarketingListsGetCall) doRequest(alt string) (*http.Response, error) "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.get" call. @@ -32762,7 +32762,7 @@ func (c *RemarketingListsInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.insert" call. @@ -32937,7 +32937,7 @@ func (c *RemarketingListsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.list" call. @@ -33063,7 +33063,7 @@ func (c *RemarketingListsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.patch" call. @@ -33165,7 +33165,7 @@ func (c *RemarketingListsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.remarketingLists.update" call. @@ -33265,7 +33265,7 @@ func (c *ReportsDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.delete" call. @@ -33353,7 +33353,7 @@ func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.get" call. @@ -33454,7 +33454,7 @@ func (c *ReportsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.insert" call. @@ -33611,7 +33611,7 @@ func (c *ReportsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.list" call. @@ -33737,7 +33737,7 @@ func (c *ReportsPatchCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.patch" call. @@ -33843,7 +33843,7 @@ func (c *ReportsRunCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.run" call. @@ -33948,7 +33948,7 @@ func (c *ReportsUpdateCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.update" call. @@ -34051,7 +34051,7 @@ func (c *ReportsCompatibleFieldsQueryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.compatibleFields.query" call. @@ -34168,7 +34168,7 @@ func (c *ReportsFilesGetCall) doRequest(alt string) (*http.Response, error) { "reportId": strconv.FormatInt(c.reportId, 10), "fileId": strconv.FormatInt(c.fileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -34332,7 +34332,7 @@ func (c *ReportsFilesListCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.reports.files.list" call. @@ -34464,7 +34464,7 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.get" call. @@ -34565,7 +34565,7 @@ func (c *SitesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.insert" call. @@ -34805,7 +34805,7 @@ func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.list" call. @@ -34930,7 +34930,7 @@ func (c *SitesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.patch" call. @@ -35031,7 +35031,7 @@ func (c *SitesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sites.update" call. @@ -35142,7 +35142,7 @@ func (c *SizesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.get" call. @@ -35243,7 +35243,7 @@ func (c *SizesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.insert" call. @@ -35384,7 +35384,7 @@ func (c *SizesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.sizes.list" call. @@ -35496,7 +35496,7 @@ func (c *SubaccountsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.get" call. @@ -35597,7 +35597,7 @@ func (c *SubaccountsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.insert" call. @@ -35766,7 +35766,7 @@ func (c *SubaccountsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.list" call. @@ -35891,7 +35891,7 @@ func (c *SubaccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.patch" call. @@ -35992,7 +35992,7 @@ func (c *SubaccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.subaccounts.update" call. @@ -36103,7 +36103,7 @@ func (c *TargetableRemarketingListsGetCall) doRequest(alt string) (*http.Respons "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.get" call. @@ -36272,7 +36272,7 @@ func (c *TargetableRemarketingListsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetableRemarketingLists.list" call. @@ -36405,7 +36405,7 @@ func (c *TargetingTemplatesGetCall) doRequest(alt string) (*http.Response, error "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.get" call. @@ -36507,7 +36507,7 @@ func (c *TargetingTemplatesInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.insert" call. @@ -36683,7 +36683,7 @@ func (c *TargetingTemplatesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.list" call. @@ -36809,7 +36809,7 @@ func (c *TargetingTemplatesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.patch" call. @@ -36911,7 +36911,7 @@ func (c *TargetingTemplatesUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.targetingTemplates.update" call. @@ -37019,7 +37019,7 @@ func (c *UserProfilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.get" call. @@ -37119,7 +37119,7 @@ func (c *UserProfilesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userProfiles.list" call. @@ -37231,7 +37231,7 @@ func (c *UserRolePermissionGroupsGetCall) doRequest(alt string) (*http.Response, "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.get" call. @@ -37339,7 +37339,7 @@ func (c *UserRolePermissionGroupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissionGroups.list" call. @@ -37451,7 +37451,7 @@ func (c *UserRolePermissionsGetCall) doRequest(alt string) (*http.Response, erro "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.get" call. @@ -37570,7 +37570,7 @@ func (c *UserRolePermissionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRolePermissions.list" call. @@ -37670,7 +37670,7 @@ func (c *UserRolesDeleteCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.delete" call. @@ -37758,7 +37758,7 @@ func (c *UserRolesGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.get" call. @@ -37859,7 +37859,7 @@ func (c *UserRolesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.insert" call. @@ -38042,7 +38042,7 @@ func (c *UserRolesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.list" call. @@ -38167,7 +38167,7 @@ func (c *UserRolesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.patch" call. @@ -38268,7 +38268,7 @@ func (c *UserRolesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.userRoles.update" call. @@ -38379,7 +38379,7 @@ func (c *VideoFormatsGetCall) doRequest(alt string) (*http.Response, error) { "profileId": strconv.FormatInt(c.profileId, 10), "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.get" call. @@ -38486,7 +38486,7 @@ func (c *VideoFormatsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "profileId": strconv.FormatInt(c.profileId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dfareporting.videoFormats.list" call. diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index e415baf0955..f2a2c1f8d0b 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -19933,7 +19933,7 @@ func (c *ProjectsDeleteAgentCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.deleteAgent" call. @@ -20042,7 +20042,7 @@ func (c *ProjectsGetAgentCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.getAgent" call. @@ -20153,7 +20153,7 @@ func (c *ProjectsSetAgentCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.setAgent" call. @@ -20262,7 +20262,7 @@ func (c *ProjectsAgentExportCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.export" call. @@ -20370,7 +20370,7 @@ func (c *ProjectsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.getFulfillment" call. @@ -20491,7 +20491,7 @@ func (c *ProjectsAgentGetValidationResultCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.getValidationResult" call. @@ -20611,7 +20611,7 @@ func (c *ProjectsAgentImportCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.import" call. @@ -20730,7 +20730,7 @@ func (c *ProjectsAgentRestoreCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.restore" call. @@ -20857,7 +20857,7 @@ func (c *ProjectsAgentSearchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.search" call. @@ -20990,7 +20990,7 @@ func (c *ProjectsAgentTrainCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.train" call. @@ -21102,7 +21102,7 @@ func (c *ProjectsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.updateFulfillment" call. @@ -21215,7 +21215,7 @@ func (c *ProjectsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.batchDelete" call. @@ -21326,7 +21326,7 @@ func (c *ProjectsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.batchUpdate" call. @@ -21440,7 +21440,7 @@ func (c *ProjectsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.create" call. @@ -21539,7 +21539,7 @@ func (c *ProjectsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.delete" call. @@ -21657,7 +21657,7 @@ func (c *ProjectsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.get" call. @@ -21790,7 +21790,7 @@ func (c *ProjectsAgentEntityTypesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.list" call. @@ -21934,7 +21934,7 @@ func (c *ProjectsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.patch" call. @@ -22047,7 +22047,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchCreate" call. @@ -22160,7 +22160,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchDelete" call. @@ -22274,7 +22274,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchUpdate" call. @@ -22384,7 +22384,7 @@ func (c *ProjectsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.create" call. @@ -22483,7 +22483,7 @@ func (c *ProjectsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.delete" call. @@ -22594,7 +22594,7 @@ func (c *ProjectsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.get" call. @@ -22719,7 +22719,7 @@ func (c *ProjectsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.getHistory" call. @@ -22864,7 +22864,7 @@ func (c *ProjectsAgentEnvironmentsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.list" call. @@ -23017,7 +23017,7 @@ func (c *ProjectsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.patch" call. @@ -23168,7 +23168,7 @@ func (c *ProjectsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.intents.list" call. @@ -23289,7 +23289,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.deleteContexts" call. @@ -23412,7 +23412,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.detectIntent" call. @@ -23519,7 +23519,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.create" call. @@ -23619,7 +23619,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.delete" call. @@ -23731,7 +23731,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.get" call. @@ -23857,7 +23857,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.list" call. @@ -23996,7 +23996,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.patch" call. @@ -24105,7 +24105,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.create" call. @@ -24207,7 +24207,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete" call. @@ -24321,7 +24321,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.get" call. @@ -24450,7 +24450,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.list" call. @@ -24588,7 +24588,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch" call. @@ -24701,7 +24701,7 @@ func (c *ProjectsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.batchDelete" call. @@ -24812,7 +24812,7 @@ func (c *ProjectsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.batchUpdate" call. @@ -24941,7 +24941,7 @@ func (c *ProjectsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.create" call. @@ -25042,7 +25042,7 @@ func (c *ProjectsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.delete" call. @@ -25175,7 +25175,7 @@ func (c *ProjectsAgentIntentsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.get" call. @@ -25326,7 +25326,7 @@ func (c *ProjectsAgentIntentsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.list" call. @@ -25485,7 +25485,7 @@ func (c *ProjectsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.patch" call. @@ -25588,7 +25588,7 @@ func (c *ProjectsAgentKnowledgeBasesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.create" call. @@ -25692,7 +25692,7 @@ func (c *ProjectsAgentKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.delete" call. @@ -25801,7 +25801,7 @@ func (c *ProjectsAgentKnowledgeBasesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.get" call. @@ -25942,7 +25942,7 @@ func (c *ProjectsAgentKnowledgeBasesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.list" call. @@ -26074,7 +26074,7 @@ func (c *ProjectsAgentKnowledgeBasesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.patch" call. @@ -26180,7 +26180,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.create" call. @@ -26282,7 +26282,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.delete" call. @@ -26391,7 +26391,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.get" call. @@ -26529,7 +26529,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.list" call. @@ -26666,7 +26666,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.patch" call. @@ -26778,7 +26778,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.reload" call. @@ -26878,7 +26878,7 @@ func (c *ProjectsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.deleteContexts" call. @@ -27001,7 +27001,7 @@ func (c *ProjectsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.detectIntent" call. @@ -27108,7 +27108,7 @@ func (c *ProjectsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.contexts.create" call. @@ -27208,7 +27208,7 @@ func (c *ProjectsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.contexts.delete" call. @@ -27320,7 +27320,7 @@ func (c *ProjectsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.contexts.get" call. @@ -27446,7 +27446,7 @@ func (c *ProjectsAgentSessionsContextsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.contexts.list" call. @@ -27585,7 +27585,7 @@ func (c *ProjectsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.contexts.patch" call. @@ -27694,7 +27694,7 @@ func (c *ProjectsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.entityTypes.create" call. @@ -27796,7 +27796,7 @@ func (c *ProjectsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.entityTypes.delete" call. @@ -27910,7 +27910,7 @@ func (c *ProjectsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.entityTypes.get" call. @@ -28039,7 +28039,7 @@ func (c *ProjectsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.entityTypes.list" call. @@ -28177,7 +28177,7 @@ func (c *ProjectsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.entityTypes.patch" call. @@ -28281,7 +28281,7 @@ func (c *ProjectsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.versions.create" call. @@ -28378,7 +28378,7 @@ func (c *ProjectsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.versions.delete" call. @@ -28487,7 +28487,7 @@ func (c *ProjectsAgentVersionsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.versions.get" call. @@ -28610,7 +28610,7 @@ func (c *ProjectsAgentVersionsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.versions.list" call. @@ -28744,7 +28744,7 @@ func (c *ProjectsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.versions.patch" call. @@ -28879,7 +28879,7 @@ func (c *ProjectsAnswerRecordsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.answerRecords.list" call. @@ -29010,7 +29010,7 @@ func (c *ProjectsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.answerRecords.patch" call. @@ -29119,7 +29119,7 @@ func (c *ProjectsConversationDatasetsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationDatasets.get" call. @@ -29228,7 +29228,7 @@ func (c *ProjectsConversationDatasetsImportConversationDataCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationDatasets.importConversationData" call. @@ -29353,7 +29353,7 @@ func (c *ProjectsConversationDatasetsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationDatasets.list" call. @@ -29480,7 +29480,7 @@ func (c *ProjectsConversationModelsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationModels.create" call. @@ -29582,7 +29582,7 @@ func (c *ProjectsConversationModelsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationModels.delete" call. @@ -29693,7 +29693,7 @@ func (c *ProjectsConversationModelsDeployCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationModels.deploy" call. @@ -29802,7 +29802,7 @@ func (c *ProjectsConversationModelsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationModels.get" call. @@ -29926,7 +29926,7 @@ func (c *ProjectsConversationModelsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationModels.list" call. @@ -30058,7 +30058,7 @@ func (c *ProjectsConversationModelsUndeployCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationModels.undeploy" call. @@ -30167,7 +30167,7 @@ func (c *ProjectsConversationModelsEvaluationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationModels.evaluations.get" call. @@ -30290,7 +30290,7 @@ func (c *ProjectsConversationModelsEvaluationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationModels.evaluations.list" call. @@ -30421,7 +30421,7 @@ func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) doRequest googleapi.Expand(req.URL, map[string]string{ "conversationProfile": c.conversationProfile, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.clearSuggestionFeatureConfig" call. @@ -30527,7 +30527,7 @@ func (c *ProjectsConversationProfilesCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.create" call. @@ -30624,7 +30624,7 @@ func (c *ProjectsConversationProfilesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.delete" call. @@ -30733,7 +30733,7 @@ func (c *ProjectsConversationProfilesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.get" call. @@ -30857,7 +30857,7 @@ func (c *ProjectsConversationProfilesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.list" call. @@ -30991,7 +30991,7 @@ func (c *ProjectsConversationProfilesPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.patch" call. @@ -31106,7 +31106,7 @@ func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "conversationProfile": c.conversationProfile, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.setSuggestionFeatureConfig" call. @@ -31210,7 +31210,7 @@ func (c *ProjectsConversationsCompleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.complete" call. @@ -31336,7 +31336,7 @@ func (c *ProjectsConversationsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.create" call. @@ -31445,7 +31445,7 @@ func (c *ProjectsConversationsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.get" call. @@ -31578,7 +31578,7 @@ func (c *ProjectsConversationsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.list" call. @@ -31736,7 +31736,7 @@ func (c *ProjectsConversationsMessagesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.messages.list" call. @@ -31864,7 +31864,7 @@ func (c *ProjectsConversationsParticipantsAnalyzeContentCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "participant": c.participant, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.analyzeContent" call. @@ -31967,7 +31967,7 @@ func (c *ProjectsConversationsParticipantsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.create" call. @@ -32076,7 +32076,7 @@ func (c *ProjectsConversationsParticipantsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.get" call. @@ -32199,7 +32199,7 @@ func (c *ProjectsConversationsParticipantsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.list" call. @@ -32330,7 +32330,7 @@ func (c *ProjectsConversationsParticipantsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.patch" call. @@ -32434,7 +32434,7 @@ func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestArticles" call. @@ -32538,7 +32538,7 @@ func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers" call. @@ -32642,7 +32642,7 @@ func (c *ProjectsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestKnowledgeAssist" call. @@ -32746,7 +32746,7 @@ func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) do googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies" call. @@ -32851,7 +32851,7 @@ func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "conversation": c.conversation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.suggestions.searchKnowledge" call. @@ -32956,7 +32956,7 @@ func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) doReque googleapi.Expand(req.URL, map[string]string{ "conversation": c.conversation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.suggestions.suggestConversationSummary" call. @@ -33072,7 +33072,7 @@ func (c *ProjectsGeneratorsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.generators.create" call. @@ -33195,7 +33195,7 @@ func (c *ProjectsGeneratorsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.generators.list" call. @@ -33319,7 +33319,7 @@ func (c *ProjectsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.create" call. @@ -33423,7 +33423,7 @@ func (c *ProjectsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.delete" call. @@ -33532,7 +33532,7 @@ func (c *ProjectsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.get" call. @@ -33673,7 +33673,7 @@ func (c *ProjectsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.list" call. @@ -33805,7 +33805,7 @@ func (c *ProjectsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.patch" call. @@ -33911,7 +33911,7 @@ func (c *ProjectsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.create" call. @@ -34013,7 +34013,7 @@ func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.delete" call. @@ -34120,7 +34120,7 @@ func (c *ProjectsKnowledgeBasesDocumentsExportCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.export" call. @@ -34229,7 +34229,7 @@ func (c *ProjectsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.get" call. @@ -34338,7 +34338,7 @@ func (c *ProjectsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.import" call. @@ -34476,7 +34476,7 @@ func (c *ProjectsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.list" call. @@ -34613,7 +34613,7 @@ func (c *ProjectsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.patch" call. @@ -34725,7 +34725,7 @@ func (c *ProjectsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.reload" call. @@ -34822,7 +34822,7 @@ func (c *ProjectsLocationsDeleteAgentCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.deleteAgent" call. @@ -34930,7 +34930,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.get" call. @@ -35039,7 +35039,7 @@ func (c *ProjectsLocationsGetAgentCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.getAgent" call. @@ -35147,7 +35147,7 @@ func (c *ProjectsLocationsGetEncryptionSpecCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.getEncryptionSpec" call. @@ -35279,7 +35279,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.list" call. @@ -35411,7 +35411,7 @@ func (c *ProjectsLocationsSetAgentCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.setAgent" call. @@ -35520,7 +35520,7 @@ func (c *ProjectsLocationsAgentExportCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.export" call. @@ -35628,7 +35628,7 @@ func (c *ProjectsLocationsAgentGetFulfillmentCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.getFulfillment" call. @@ -35749,7 +35749,7 @@ func (c *ProjectsLocationsAgentGetValidationResultCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.getValidationResult" call. @@ -35869,7 +35869,7 @@ func (c *ProjectsLocationsAgentImportCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.import" call. @@ -35988,7 +35988,7 @@ func (c *ProjectsLocationsAgentRestoreCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.restore" call. @@ -36115,7 +36115,7 @@ func (c *ProjectsLocationsAgentSearchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.search" call. @@ -36248,7 +36248,7 @@ func (c *ProjectsLocationsAgentTrainCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.train" call. @@ -36360,7 +36360,7 @@ func (c *ProjectsLocationsAgentUpdateFulfillmentCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.updateFulfillment" call. @@ -36473,7 +36473,7 @@ func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.batchDelete" call. @@ -36584,7 +36584,7 @@ func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.batchUpdate" call. @@ -36698,7 +36698,7 @@ func (c *ProjectsLocationsAgentEntityTypesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.create" call. @@ -36797,7 +36797,7 @@ func (c *ProjectsLocationsAgentEntityTypesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.delete" call. @@ -36915,7 +36915,7 @@ func (c *ProjectsLocationsAgentEntityTypesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.get" call. @@ -37048,7 +37048,7 @@ func (c *ProjectsLocationsAgentEntityTypesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.list" call. @@ -37192,7 +37192,7 @@ func (c *ProjectsLocationsAgentEntityTypesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.patch" call. @@ -37305,7 +37305,7 @@ func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate" call. @@ -37418,7 +37418,7 @@ func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete" call. @@ -37532,7 +37532,7 @@ func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate" call. @@ -37642,7 +37642,7 @@ func (c *ProjectsLocationsAgentEnvironmentsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.create" call. @@ -37741,7 +37741,7 @@ func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.delete" call. @@ -37852,7 +37852,7 @@ func (c *ProjectsLocationsAgentEnvironmentsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.get" call. @@ -37977,7 +37977,7 @@ func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.getHistory" call. @@ -38122,7 +38122,7 @@ func (c *ProjectsLocationsAgentEnvironmentsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.list" call. @@ -38275,7 +38275,7 @@ func (c *ProjectsLocationsAgentEnvironmentsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.patch" call. @@ -38426,7 +38426,7 @@ func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.intents.list" call. @@ -38547,7 +38547,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts" call. @@ -38670,7 +38670,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequ googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent" call. @@ -38777,7 +38777,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create" call. @@ -38877,7 +38877,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete" call. @@ -38989,7 +38989,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get" call. @@ -39115,7 +39115,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list" call. @@ -39254,7 +39254,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch" call. @@ -39363,7 +39363,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create" call. @@ -39465,7 +39465,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete" call. @@ -39579,7 +39579,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get" call. @@ -39708,7 +39708,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) doR googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list" call. @@ -39846,7 +39846,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch" call. @@ -39959,7 +39959,7 @@ func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.batchDelete" call. @@ -40070,7 +40070,7 @@ func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.batchUpdate" call. @@ -40199,7 +40199,7 @@ func (c *ProjectsLocationsAgentIntentsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.create" call. @@ -40300,7 +40300,7 @@ func (c *ProjectsLocationsAgentIntentsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.delete" call. @@ -40433,7 +40433,7 @@ func (c *ProjectsLocationsAgentIntentsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.get" call. @@ -40584,7 +40584,7 @@ func (c *ProjectsLocationsAgentIntentsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.list" call. @@ -40743,7 +40743,7 @@ func (c *ProjectsLocationsAgentIntentsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.patch" call. @@ -40843,7 +40843,7 @@ func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.deleteContexts" call. @@ -40966,7 +40966,7 @@ func (c *ProjectsLocationsAgentSessionsDetectIntentCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.detectIntent" call. @@ -41073,7 +41073,7 @@ func (c *ProjectsLocationsAgentSessionsContextsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.create" call. @@ -41173,7 +41173,7 @@ func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.delete" call. @@ -41285,7 +41285,7 @@ func (c *ProjectsLocationsAgentSessionsContextsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.get" call. @@ -41411,7 +41411,7 @@ func (c *ProjectsLocationsAgentSessionsContextsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.list" call. @@ -41550,7 +41550,7 @@ func (c *ProjectsLocationsAgentSessionsContextsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.patch" call. @@ -41659,7 +41659,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.create" call. @@ -41761,7 +41761,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.delete" call. @@ -41875,7 +41875,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.get" call. @@ -42004,7 +42004,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.list" call. @@ -42142,7 +42142,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.patch" call. @@ -42246,7 +42246,7 @@ func (c *ProjectsLocationsAgentVersionsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.versions.create" call. @@ -42343,7 +42343,7 @@ func (c *ProjectsLocationsAgentVersionsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.versions.delete" call. @@ -42452,7 +42452,7 @@ func (c *ProjectsLocationsAgentVersionsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.versions.get" call. @@ -42575,7 +42575,7 @@ func (c *ProjectsLocationsAgentVersionsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.versions.list" call. @@ -42709,7 +42709,7 @@ func (c *ProjectsLocationsAgentVersionsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.versions.patch" call. @@ -42844,7 +42844,7 @@ func (c *ProjectsLocationsAnswerRecordsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.answerRecords.list" call. @@ -42975,7 +42975,7 @@ func (c *ProjectsLocationsAnswerRecordsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.answerRecords.patch" call. @@ -43083,7 +43083,7 @@ func (c *ProjectsLocationsConversationDatasetsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationDatasets.create" call. @@ -43186,7 +43186,7 @@ func (c *ProjectsLocationsConversationDatasetsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationDatasets.delete" call. @@ -43295,7 +43295,7 @@ func (c *ProjectsLocationsConversationDatasetsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationDatasets.get" call. @@ -43404,7 +43404,7 @@ func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationDatasets.importConversationData" call. @@ -43529,7 +43529,7 @@ func (c *ProjectsLocationsConversationDatasetsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationDatasets.list" call. @@ -43656,7 +43656,7 @@ func (c *ProjectsLocationsConversationModelsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationModels.create" call. @@ -43758,7 +43758,7 @@ func (c *ProjectsLocationsConversationModelsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationModels.delete" call. @@ -43869,7 +43869,7 @@ func (c *ProjectsLocationsConversationModelsDeployCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationModels.deploy" call. @@ -43978,7 +43978,7 @@ func (c *ProjectsLocationsConversationModelsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationModels.get" call. @@ -44102,7 +44102,7 @@ func (c *ProjectsLocationsConversationModelsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationModels.list" call. @@ -44234,7 +44234,7 @@ func (c *ProjectsLocationsConversationModelsUndeployCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationModels.undeploy" call. @@ -44337,7 +44337,7 @@ func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationModels.evaluations.create" call. @@ -44446,7 +44446,7 @@ func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationModels.evaluations.get" call. @@ -44569,7 +44569,7 @@ func (c *ProjectsLocationsConversationModelsEvaluationsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationModels.evaluations.list" call. @@ -44700,7 +44700,7 @@ func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) googleapi.Expand(req.URL, map[string]string{ "conversationProfile": c.conversationProfile, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.clearSuggestionFeatureConfig" call. @@ -44806,7 +44806,7 @@ func (c *ProjectsLocationsConversationProfilesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.create" call. @@ -44903,7 +44903,7 @@ func (c *ProjectsLocationsConversationProfilesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.delete" call. @@ -45012,7 +45012,7 @@ func (c *ProjectsLocationsConversationProfilesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.get" call. @@ -45136,7 +45136,7 @@ func (c *ProjectsLocationsConversationProfilesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.list" call. @@ -45270,7 +45270,7 @@ func (c *ProjectsLocationsConversationProfilesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.patch" call. @@ -45385,7 +45385,7 @@ func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) do googleapi.Expand(req.URL, map[string]string{ "conversationProfile": c.conversationProfile, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.setSuggestionFeatureConfig" call. @@ -45489,7 +45489,7 @@ func (c *ProjectsLocationsConversationsCompleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.complete" call. @@ -45615,7 +45615,7 @@ func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.create" call. @@ -45724,7 +45724,7 @@ func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.get" call. @@ -45857,7 +45857,7 @@ func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.list" call. @@ -46015,7 +46015,7 @@ func (c *ProjectsLocationsConversationsMessagesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.messages.list" call. @@ -46143,7 +46143,7 @@ func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) doRequest googleapi.Expand(req.URL, map[string]string{ "participant": c.participant, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.analyzeContent" call. @@ -46246,7 +46246,7 @@ func (c *ProjectsLocationsConversationsParticipantsCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.create" call. @@ -46355,7 +46355,7 @@ func (c *ProjectsLocationsConversationsParticipantsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.get" call. @@ -46478,7 +46478,7 @@ func (c *ProjectsLocationsConversationsParticipantsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.list" call. @@ -46609,7 +46609,7 @@ func (c *ProjectsLocationsConversationsParticipantsPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.patch" call. @@ -46713,7 +46713,7 @@ func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCal googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles" call. @@ -46817,7 +46817,7 @@ func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersC googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers" call. @@ -46921,7 +46921,7 @@ func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestKnowledgeAs googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestKnowledgeAssist" call. @@ -47025,7 +47025,7 @@ func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartReplie googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies" call. @@ -47130,7 +47130,7 @@ func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) doRequest googleapi.Expand(req.URL, map[string]string{ "conversation": c.conversation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.suggestions.searchKnowledge" call. @@ -47235,7 +47235,7 @@ func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall googleapi.Expand(req.URL, map[string]string{ "conversation": c.conversation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary" call. @@ -47342,7 +47342,7 @@ func (c *ProjectsLocationsEncryptionSpecInitializeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.encryptionSpec.initialize" call. @@ -47458,7 +47458,7 @@ func (c *ProjectsLocationsGeneratorsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.generators.create" call. @@ -47555,7 +47555,7 @@ func (c *ProjectsLocationsGeneratorsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.generators.delete" call. @@ -47664,7 +47664,7 @@ func (c *ProjectsLocationsGeneratorsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.generators.get" call. @@ -47787,7 +47787,7 @@ func (c *ProjectsLocationsGeneratorsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.generators.list" call. @@ -47918,7 +47918,7 @@ func (c *ProjectsLocationsGeneratorsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.generators.patch" call. @@ -48021,7 +48021,7 @@ func (c *ProjectsLocationsKnowledgeBasesCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.create" call. @@ -48125,7 +48125,7 @@ func (c *ProjectsLocationsKnowledgeBasesDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.delete" call. @@ -48234,7 +48234,7 @@ func (c *ProjectsLocationsKnowledgeBasesGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.get" call. @@ -48375,7 +48375,7 @@ func (c *ProjectsLocationsKnowledgeBasesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.list" call. @@ -48507,7 +48507,7 @@ func (c *ProjectsLocationsKnowledgeBasesPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.patch" call. @@ -48613,7 +48613,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.create" call. @@ -48715,7 +48715,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.delete" call. @@ -48822,7 +48822,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.export" call. @@ -48931,7 +48931,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.get" call. @@ -49040,7 +49040,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.import" call. @@ -49178,7 +49178,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.list" call. @@ -49315,7 +49315,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.patch" call. @@ -49427,7 +49427,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.reload" call. @@ -49531,7 +49531,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.cancel" call. @@ -49641,7 +49641,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.get" call. @@ -49770,7 +49770,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.list" call. @@ -49895,7 +49895,7 @@ func (c *ProjectsLocationsStatelessSuggestionGenerateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.statelessSuggestion.generate" call. @@ -49999,7 +49999,7 @@ func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.suggestions.generateStatelessSummary" call. @@ -50103,7 +50103,7 @@ func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.suggestions.searchKnowledge" call. @@ -50207,7 +50207,7 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.cancel" call. @@ -50317,7 +50317,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.get" call. @@ -50446,7 +50446,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.list" call. @@ -50571,7 +50571,7 @@ func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.suggestions.generateStatelessSummary" call. @@ -50675,7 +50675,7 @@ func (c *ProjectsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.suggestions.searchKnowledge" call. diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 273e6017810..cbda1e3cc20 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -19925,7 +19925,7 @@ func (c *ProjectsDeleteAgentCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.deleteAgent" call. @@ -20034,7 +20034,7 @@ func (c *ProjectsGetAgentCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.getAgent" call. @@ -20146,7 +20146,7 @@ func (c *ProjectsSetAgentCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.setAgent" call. @@ -20255,7 +20255,7 @@ func (c *ProjectsAgentExportCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.export" call. @@ -20364,7 +20364,7 @@ func (c *ProjectsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.getFulfillment" call. @@ -20485,7 +20485,7 @@ func (c *ProjectsAgentGetValidationResultCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.getValidationResult" call. @@ -20605,7 +20605,7 @@ func (c *ProjectsAgentImportCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.import" call. @@ -20724,7 +20724,7 @@ func (c *ProjectsAgentRestoreCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.restore" call. @@ -20852,7 +20852,7 @@ func (c *ProjectsAgentSearchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.search" call. @@ -20985,7 +20985,7 @@ func (c *ProjectsAgentTrainCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.train" call. @@ -21097,7 +21097,7 @@ func (c *ProjectsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.updateFulfillment" call. @@ -21210,7 +21210,7 @@ func (c *ProjectsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.batchDelete" call. @@ -21321,7 +21321,7 @@ func (c *ProjectsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.batchUpdate" call. @@ -21436,7 +21436,7 @@ func (c *ProjectsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.create" call. @@ -21535,7 +21535,7 @@ func (c *ProjectsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.delete" call. @@ -21654,7 +21654,7 @@ func (c *ProjectsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.get" call. @@ -21787,7 +21787,7 @@ func (c *ProjectsAgentEntityTypesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.list" call. @@ -21932,7 +21932,7 @@ func (c *ProjectsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.patch" call. @@ -22046,7 +22046,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchCreate" call. @@ -22160,7 +22160,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchDelete" call. @@ -22275,7 +22275,7 @@ func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchUpdate" call. @@ -22385,7 +22385,7 @@ func (c *ProjectsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.create" call. @@ -22483,7 +22483,7 @@ func (c *ProjectsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.delete" call. @@ -22593,7 +22593,7 @@ func (c *ProjectsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.get" call. @@ -22717,7 +22717,7 @@ func (c *ProjectsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.getHistory" call. @@ -22861,7 +22861,7 @@ func (c *ProjectsAgentEnvironmentsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.list" call. @@ -23013,7 +23013,7 @@ func (c *ProjectsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.patch" call. @@ -23164,7 +23164,7 @@ func (c *ProjectsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.intents.list" call. @@ -23288,7 +23288,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.deleteContexts" call. @@ -23413,7 +23413,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.detectIntent" call. @@ -23522,7 +23522,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.create" call. @@ -23625,7 +23625,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.delete" call. @@ -23740,7 +23740,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.get" call. @@ -23868,7 +23868,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.list" call. @@ -24009,7 +24009,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.patch" call. @@ -24121,7 +24121,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.create" call. @@ -24226,7 +24226,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete" call. @@ -24343,7 +24343,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.get" call. @@ -24475,7 +24475,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.list" call. @@ -24616,7 +24616,7 @@ func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch" call. @@ -24729,7 +24729,7 @@ func (c *ProjectsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.batchDelete" call. @@ -24840,7 +24840,7 @@ func (c *ProjectsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.batchUpdate" call. @@ -24970,7 +24970,7 @@ func (c *ProjectsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.create" call. @@ -25071,7 +25071,7 @@ func (c *ProjectsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.delete" call. @@ -25205,7 +25205,7 @@ func (c *ProjectsAgentIntentsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.get" call. @@ -25356,7 +25356,7 @@ func (c *ProjectsAgentIntentsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.list" call. @@ -25516,7 +25516,7 @@ func (c *ProjectsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.intents.patch" call. @@ -25620,7 +25620,7 @@ func (c *ProjectsAgentKnowledgeBasesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.create" call. @@ -25726,7 +25726,7 @@ func (c *ProjectsAgentKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.delete" call. @@ -25837,7 +25837,7 @@ func (c *ProjectsAgentKnowledgeBasesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.get" call. @@ -25980,7 +25980,7 @@ func (c *ProjectsAgentKnowledgeBasesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.list" call. @@ -26116,7 +26116,7 @@ func (c *ProjectsAgentKnowledgeBasesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.patch" call. @@ -26233,7 +26233,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.create" call. @@ -26337,7 +26337,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.delete" call. @@ -26448,7 +26448,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.get" call. @@ -26588,7 +26588,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.list" call. @@ -26727,7 +26727,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.patch" call. @@ -26842,7 +26842,7 @@ func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.reload" call. @@ -26945,7 +26945,7 @@ func (c *ProjectsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.deleteContexts" call. @@ -27070,7 +27070,7 @@ func (c *ProjectsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.detectIntent" call. @@ -27179,7 +27179,7 @@ func (c *ProjectsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.contexts.create" call. @@ -27282,7 +27282,7 @@ func (c *ProjectsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.contexts.delete" call. @@ -27397,7 +27397,7 @@ func (c *ProjectsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.contexts.get" call. @@ -27525,7 +27525,7 @@ func (c *ProjectsAgentSessionsContextsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.contexts.list" call. @@ -27666,7 +27666,7 @@ func (c *ProjectsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.contexts.patch" call. @@ -27778,7 +27778,7 @@ func (c *ProjectsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.entityTypes.create" call. @@ -27883,7 +27883,7 @@ func (c *ProjectsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.entityTypes.delete" call. @@ -28000,7 +28000,7 @@ func (c *ProjectsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.entityTypes.get" call. @@ -28132,7 +28132,7 @@ func (c *ProjectsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.entityTypes.list" call. @@ -28273,7 +28273,7 @@ func (c *ProjectsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.sessions.entityTypes.patch" call. @@ -28377,7 +28377,7 @@ func (c *ProjectsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.versions.create" call. @@ -28474,7 +28474,7 @@ func (c *ProjectsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.versions.delete" call. @@ -28583,7 +28583,7 @@ func (c *ProjectsAgentVersionsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.versions.get" call. @@ -28706,7 +28706,7 @@ func (c *ProjectsAgentVersionsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.versions.list" call. @@ -28840,7 +28840,7 @@ func (c *ProjectsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.agent.versions.patch" call. @@ -28949,7 +28949,7 @@ func (c *ProjectsAnswerRecordsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.answerRecords.get" call. @@ -29083,7 +29083,7 @@ func (c *ProjectsAnswerRecordsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.answerRecords.list" call. @@ -29215,7 +29215,7 @@ func (c *ProjectsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.answerRecords.patch" call. @@ -29325,7 +29325,7 @@ func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) doRequest googleapi.Expand(req.URL, map[string]string{ "conversationProfile": c.conversationProfile, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.clearSuggestionFeatureConfig" call. @@ -29431,7 +29431,7 @@ func (c *ProjectsConversationProfilesCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.create" call. @@ -29528,7 +29528,7 @@ func (c *ProjectsConversationProfilesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.delete" call. @@ -29637,7 +29637,7 @@ func (c *ProjectsConversationProfilesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.get" call. @@ -29761,7 +29761,7 @@ func (c *ProjectsConversationProfilesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.list" call. @@ -29895,7 +29895,7 @@ func (c *ProjectsConversationProfilesPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.patch" call. @@ -30010,7 +30010,7 @@ func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "conversationProfile": c.conversationProfile, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversationProfiles.setSuggestionFeatureConfig" call. @@ -30114,7 +30114,7 @@ func (c *ProjectsConversationsCompleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.complete" call. @@ -30240,7 +30240,7 @@ func (c *ProjectsConversationsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.create" call. @@ -30349,7 +30349,7 @@ func (c *ProjectsConversationsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.get" call. @@ -30482,7 +30482,7 @@ func (c *ProjectsConversationsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.list" call. @@ -30607,7 +30607,7 @@ func (c *ProjectsConversationsMessagesBatchCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.messages.batchCreate" call. @@ -30744,7 +30744,7 @@ func (c *ProjectsConversationsMessagesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.messages.list" call. @@ -30872,7 +30872,7 @@ func (c *ProjectsConversationsParticipantsAnalyzeContentCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "participant": c.participant, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.analyzeContent" call. @@ -30975,7 +30975,7 @@ func (c *ProjectsConversationsParticipantsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.create" call. @@ -31084,7 +31084,7 @@ func (c *ProjectsConversationsParticipantsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.get" call. @@ -31207,7 +31207,7 @@ func (c *ProjectsConversationsParticipantsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.list" call. @@ -31338,7 +31338,7 @@ func (c *ProjectsConversationsParticipantsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.patch" call. @@ -31445,7 +31445,7 @@ func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.suggestions.compile" call. @@ -31593,7 +31593,7 @@ func (c *ProjectsConversationsParticipantsSuggestionsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.suggestions.list" call. @@ -31720,7 +31720,7 @@ func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestArticles" call. @@ -31824,7 +31824,7 @@ func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers" call. @@ -31928,7 +31928,7 @@ func (c *ProjectsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestKnowledgeAssist" call. @@ -32032,7 +32032,7 @@ func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) do googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies" call. @@ -32137,7 +32137,7 @@ func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "conversation": c.conversation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.suggestions.searchKnowledge" call. @@ -32242,7 +32242,7 @@ func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) doReque googleapi.Expand(req.URL, map[string]string{ "conversation": c.conversation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.conversations.suggestions.suggestConversationSummary" call. @@ -32358,7 +32358,7 @@ func (c *ProjectsGeneratorsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.generators.create" call. @@ -32481,7 +32481,7 @@ func (c *ProjectsGeneratorsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.generators.list" call. @@ -32606,7 +32606,7 @@ func (c *ProjectsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.create" call. @@ -32712,7 +32712,7 @@ func (c *ProjectsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.delete" call. @@ -32823,7 +32823,7 @@ func (c *ProjectsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.get" call. @@ -32966,7 +32966,7 @@ func (c *ProjectsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.list" call. @@ -33102,7 +33102,7 @@ func (c *ProjectsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.patch" call. @@ -33219,7 +33219,7 @@ func (c *ProjectsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.create" call. @@ -33323,7 +33323,7 @@ func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.delete" call. @@ -33434,7 +33434,7 @@ func (c *ProjectsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.get" call. @@ -33542,7 +33542,7 @@ func (c *ProjectsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.import" call. @@ -33682,7 +33682,7 @@ func (c *ProjectsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.list" call. @@ -33821,7 +33821,7 @@ func (c *ProjectsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.patch" call. @@ -33936,7 +33936,7 @@ func (c *ProjectsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.knowledgeBases.documents.reload" call. @@ -34033,7 +34033,7 @@ func (c *ProjectsLocationsDeleteAgentCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.deleteAgent" call. @@ -34141,7 +34141,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.get" call. @@ -34250,7 +34250,7 @@ func (c *ProjectsLocationsGetAgentCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.getAgent" call. @@ -34358,7 +34358,7 @@ func (c *ProjectsLocationsGetEncryptionSpecCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.getEncryptionSpec" call. @@ -34490,7 +34490,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.list" call. @@ -34623,7 +34623,7 @@ func (c *ProjectsLocationsSetAgentCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.setAgent" call. @@ -34732,7 +34732,7 @@ func (c *ProjectsLocationsAgentExportCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.export" call. @@ -34841,7 +34841,7 @@ func (c *ProjectsLocationsAgentGetFulfillmentCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.getFulfillment" call. @@ -34962,7 +34962,7 @@ func (c *ProjectsLocationsAgentGetValidationResultCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.getValidationResult" call. @@ -35082,7 +35082,7 @@ func (c *ProjectsLocationsAgentImportCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.import" call. @@ -35201,7 +35201,7 @@ func (c *ProjectsLocationsAgentRestoreCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.restore" call. @@ -35329,7 +35329,7 @@ func (c *ProjectsLocationsAgentSearchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.search" call. @@ -35462,7 +35462,7 @@ func (c *ProjectsLocationsAgentTrainCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.train" call. @@ -35574,7 +35574,7 @@ func (c *ProjectsLocationsAgentUpdateFulfillmentCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.updateFulfillment" call. @@ -35687,7 +35687,7 @@ func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.batchDelete" call. @@ -35798,7 +35798,7 @@ func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.batchUpdate" call. @@ -35913,7 +35913,7 @@ func (c *ProjectsLocationsAgentEntityTypesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.create" call. @@ -36012,7 +36012,7 @@ func (c *ProjectsLocationsAgentEntityTypesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.delete" call. @@ -36131,7 +36131,7 @@ func (c *ProjectsLocationsAgentEntityTypesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.get" call. @@ -36264,7 +36264,7 @@ func (c *ProjectsLocationsAgentEntityTypesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.list" call. @@ -36409,7 +36409,7 @@ func (c *ProjectsLocationsAgentEntityTypesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.patch" call. @@ -36523,7 +36523,7 @@ func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate" call. @@ -36637,7 +36637,7 @@ func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete" call. @@ -36752,7 +36752,7 @@ func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate" call. @@ -36862,7 +36862,7 @@ func (c *ProjectsLocationsAgentEnvironmentsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.create" call. @@ -36960,7 +36960,7 @@ func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.delete" call. @@ -37070,7 +37070,7 @@ func (c *ProjectsLocationsAgentEnvironmentsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.get" call. @@ -37194,7 +37194,7 @@ func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.getHistory" call. @@ -37338,7 +37338,7 @@ func (c *ProjectsLocationsAgentEnvironmentsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.list" call. @@ -37490,7 +37490,7 @@ func (c *ProjectsLocationsAgentEnvironmentsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.patch" call. @@ -37641,7 +37641,7 @@ func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.intents.list" call. @@ -37765,7 +37765,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts" call. @@ -37890,7 +37890,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequ googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent" call. @@ -37999,7 +37999,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create" call. @@ -38102,7 +38102,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete" call. @@ -38217,7 +38217,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get" call. @@ -38345,7 +38345,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list" call. @@ -38486,7 +38486,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch" call. @@ -38598,7 +38598,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create" call. @@ -38703,7 +38703,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete" call. @@ -38820,7 +38820,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get" call. @@ -38952,7 +38952,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) doR googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list" call. @@ -39093,7 +39093,7 @@ func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch" call. @@ -39206,7 +39206,7 @@ func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.batchDelete" call. @@ -39317,7 +39317,7 @@ func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.batchUpdate" call. @@ -39447,7 +39447,7 @@ func (c *ProjectsLocationsAgentIntentsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.create" call. @@ -39548,7 +39548,7 @@ func (c *ProjectsLocationsAgentIntentsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.delete" call. @@ -39682,7 +39682,7 @@ func (c *ProjectsLocationsAgentIntentsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.get" call. @@ -39833,7 +39833,7 @@ func (c *ProjectsLocationsAgentIntentsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.list" call. @@ -39993,7 +39993,7 @@ func (c *ProjectsLocationsAgentIntentsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.intents.patch" call. @@ -40096,7 +40096,7 @@ func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.deleteContexts" call. @@ -40221,7 +40221,7 @@ func (c *ProjectsLocationsAgentSessionsDetectIntentCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.detectIntent" call. @@ -40330,7 +40330,7 @@ func (c *ProjectsLocationsAgentSessionsContextsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.create" call. @@ -40433,7 +40433,7 @@ func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.delete" call. @@ -40548,7 +40548,7 @@ func (c *ProjectsLocationsAgentSessionsContextsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.get" call. @@ -40676,7 +40676,7 @@ func (c *ProjectsLocationsAgentSessionsContextsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.list" call. @@ -40817,7 +40817,7 @@ func (c *ProjectsLocationsAgentSessionsContextsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.patch" call. @@ -40929,7 +40929,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.create" call. @@ -41034,7 +41034,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.delete" call. @@ -41151,7 +41151,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.get" call. @@ -41283,7 +41283,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.list" call. @@ -41424,7 +41424,7 @@ func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.patch" call. @@ -41528,7 +41528,7 @@ func (c *ProjectsLocationsAgentVersionsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.versions.create" call. @@ -41625,7 +41625,7 @@ func (c *ProjectsLocationsAgentVersionsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.versions.delete" call. @@ -41734,7 +41734,7 @@ func (c *ProjectsLocationsAgentVersionsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.versions.get" call. @@ -41857,7 +41857,7 @@ func (c *ProjectsLocationsAgentVersionsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.versions.list" call. @@ -41991,7 +41991,7 @@ func (c *ProjectsLocationsAgentVersionsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agent.versions.patch" call. @@ -42100,7 +42100,7 @@ func (c *ProjectsLocationsAnswerRecordsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.answerRecords.get" call. @@ -42234,7 +42234,7 @@ func (c *ProjectsLocationsAnswerRecordsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.answerRecords.list" call. @@ -42366,7 +42366,7 @@ func (c *ProjectsLocationsAnswerRecordsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.answerRecords.patch" call. @@ -42476,7 +42476,7 @@ func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) googleapi.Expand(req.URL, map[string]string{ "conversationProfile": c.conversationProfile, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.clearSuggestionFeatureConfig" call. @@ -42582,7 +42582,7 @@ func (c *ProjectsLocationsConversationProfilesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.create" call. @@ -42679,7 +42679,7 @@ func (c *ProjectsLocationsConversationProfilesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.delete" call. @@ -42788,7 +42788,7 @@ func (c *ProjectsLocationsConversationProfilesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.get" call. @@ -42912,7 +42912,7 @@ func (c *ProjectsLocationsConversationProfilesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.list" call. @@ -43046,7 +43046,7 @@ func (c *ProjectsLocationsConversationProfilesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.patch" call. @@ -43161,7 +43161,7 @@ func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) do googleapi.Expand(req.URL, map[string]string{ "conversationProfile": c.conversationProfile, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversationProfiles.setSuggestionFeatureConfig" call. @@ -43265,7 +43265,7 @@ func (c *ProjectsLocationsConversationsCompleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.complete" call. @@ -43391,7 +43391,7 @@ func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.create" call. @@ -43500,7 +43500,7 @@ func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.get" call. @@ -43633,7 +43633,7 @@ func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.list" call. @@ -43758,7 +43758,7 @@ func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.messages.batchCreate" call. @@ -43895,7 +43895,7 @@ func (c *ProjectsLocationsConversationsMessagesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.messages.list" call. @@ -44023,7 +44023,7 @@ func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) doRequest googleapi.Expand(req.URL, map[string]string{ "participant": c.participant, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.analyzeContent" call. @@ -44126,7 +44126,7 @@ func (c *ProjectsLocationsConversationsParticipantsCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.create" call. @@ -44235,7 +44235,7 @@ func (c *ProjectsLocationsConversationsParticipantsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.get" call. @@ -44358,7 +44358,7 @@ func (c *ProjectsLocationsConversationsParticipantsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.list" call. @@ -44489,7 +44489,7 @@ func (c *ProjectsLocationsConversationsParticipantsPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.patch" call. @@ -44595,7 +44595,7 @@ func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCal googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles" call. @@ -44699,7 +44699,7 @@ func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersC googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers" call. @@ -44803,7 +44803,7 @@ func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestKnowledgeAs googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestKnowledgeAssist" call. @@ -44907,7 +44907,7 @@ func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartReplie googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies" call. @@ -45012,7 +45012,7 @@ func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) doRequest googleapi.Expand(req.URL, map[string]string{ "conversation": c.conversation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.suggestions.searchKnowledge" call. @@ -45117,7 +45117,7 @@ func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall googleapi.Expand(req.URL, map[string]string{ "conversation": c.conversation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary" call. @@ -45224,7 +45224,7 @@ func (c *ProjectsLocationsEncryptionSpecInitializeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.encryptionSpec.initialize" call. @@ -45340,7 +45340,7 @@ func (c *ProjectsLocationsGeneratorsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.generators.create" call. @@ -45437,7 +45437,7 @@ func (c *ProjectsLocationsGeneratorsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.generators.delete" call. @@ -45546,7 +45546,7 @@ func (c *ProjectsLocationsGeneratorsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.generators.get" call. @@ -45669,7 +45669,7 @@ func (c *ProjectsLocationsGeneratorsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.generators.list" call. @@ -45800,7 +45800,7 @@ func (c *ProjectsLocationsGeneratorsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.generators.patch" call. @@ -45904,7 +45904,7 @@ func (c *ProjectsLocationsKnowledgeBasesCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.create" call. @@ -46010,7 +46010,7 @@ func (c *ProjectsLocationsKnowledgeBasesDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.delete" call. @@ -46121,7 +46121,7 @@ func (c *ProjectsLocationsKnowledgeBasesGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.get" call. @@ -46264,7 +46264,7 @@ func (c *ProjectsLocationsKnowledgeBasesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.list" call. @@ -46400,7 +46400,7 @@ func (c *ProjectsLocationsKnowledgeBasesPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.patch" call. @@ -46517,7 +46517,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.create" call. @@ -46621,7 +46621,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.delete" call. @@ -46732,7 +46732,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.get" call. @@ -46840,7 +46840,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.import" call. @@ -46980,7 +46980,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.list" call. @@ -47119,7 +47119,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.patch" call. @@ -47234,7 +47234,7 @@ func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.reload" call. @@ -47338,7 +47338,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.cancel" call. @@ -47448,7 +47448,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.get" call. @@ -47577,7 +47577,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.list" call. @@ -47702,7 +47702,7 @@ func (c *ProjectsLocationsStatelessSuggestionGenerateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.statelessSuggestion.generate" call. @@ -47806,7 +47806,7 @@ func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.suggestions.generateStatelessSummary" call. @@ -47910,7 +47910,7 @@ func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.suggestions.searchKnowledge" call. @@ -48014,7 +48014,7 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.cancel" call. @@ -48124,7 +48124,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.get" call. @@ -48253,7 +48253,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.list" call. @@ -48378,7 +48378,7 @@ func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.suggestions.generateStatelessSummary" call. @@ -48482,7 +48482,7 @@ func (c *ProjectsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.suggestions.searchKnowledge" call. diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index b4dcffa099d..10b812f2ef1 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -19102,7 +19102,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.get" call. @@ -19234,7 +19234,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.list" call. @@ -19360,7 +19360,7 @@ func (c *ProjectsLocationsAgentsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.create" call. @@ -19457,7 +19457,7 @@ func (c *ProjectsLocationsAgentsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.delete" call. @@ -19566,7 +19566,7 @@ func (c *ProjectsLocationsAgentsExportCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.export" call. @@ -19674,7 +19674,7 @@ func (c *ProjectsLocationsAgentsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.get" call. @@ -19789,7 +19789,7 @@ func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.getGenerativeSettings" call. @@ -19906,7 +19906,7 @@ func (c *ProjectsLocationsAgentsGetValidationResultCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.getValidationResult" call. @@ -20029,7 +20029,7 @@ func (c *ProjectsLocationsAgentsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.list" call. @@ -20164,7 +20164,7 @@ func (c *ProjectsLocationsAgentsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.patch" call. @@ -20279,7 +20279,7 @@ func (c *ProjectsLocationsAgentsRestoreCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.restore" call. @@ -20389,7 +20389,7 @@ func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.updateGenerativeSettings" call. @@ -20493,7 +20493,7 @@ func (c *ProjectsLocationsAgentsValidateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.validate" call. @@ -20602,7 +20602,7 @@ func (c *ProjectsLocationsAgentsChangelogsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.changelogs.get" call. @@ -20741,7 +20741,7 @@ func (c *ProjectsLocationsAgentsChangelogsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.changelogs.list" call. @@ -20880,7 +20880,7 @@ func (c *ProjectsLocationsAgentsEntityTypesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.create" call. @@ -20991,7 +20991,7 @@ func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.delete" call. @@ -21094,7 +21094,7 @@ func (c *ProjectsLocationsAgentsEntityTypesExportCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.export" call. @@ -21216,7 +21216,7 @@ func (c *ProjectsLocationsAgentsEntityTypesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.get" call. @@ -21319,7 +21319,7 @@ func (c *ProjectsLocationsAgentsEntityTypesImportCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.import" call. @@ -21455,7 +21455,7 @@ func (c *ProjectsLocationsAgentsEntityTypesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.list" call. @@ -21601,7 +21601,7 @@ func (c *ProjectsLocationsAgentsEntityTypesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.patch" call. @@ -21710,7 +21710,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.create" call. @@ -21807,7 +21807,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.delete" call. @@ -21914,7 +21914,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.deployFlow" call. @@ -22023,7 +22023,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.get" call. @@ -22146,7 +22146,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.list" call. @@ -22290,7 +22290,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory" call. @@ -22427,7 +22427,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.patch" call. @@ -22534,7 +22534,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.runContinuousTest" call. @@ -22657,7 +22657,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.continuousTestResults.list" call. @@ -22787,7 +22787,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.deployments.get" call. @@ -22910,7 +22910,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.deployments.list" call. @@ -23034,7 +23034,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.create" call. @@ -23131,7 +23131,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.delete" call. @@ -23240,7 +23240,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.get" call. @@ -23363,7 +23363,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.list" call. @@ -23494,7 +23494,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.patch" call. @@ -23598,7 +23598,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.start" call. @@ -23702,7 +23702,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.stop" call. @@ -23820,7 +23820,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.detectIntent" call. @@ -23932,7 +23932,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) doRequest googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.fulfillIntent" call. @@ -24043,7 +24043,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.matchIntent" call. @@ -24160,7 +24160,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentC googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.serverStreamingDetectIntent" call. @@ -24265,7 +24265,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.create" call. @@ -24364,7 +24364,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.delete" call. @@ -24475,7 +24475,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.get" call. @@ -24600,7 +24600,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.list" call. @@ -24733,7 +24733,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.patch" call. @@ -24853,7 +24853,7 @@ func (c *ProjectsLocationsAgentsFlowsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.create" call. @@ -24962,7 +24962,7 @@ func (c *ProjectsLocationsAgentsFlowsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.delete" call. @@ -25072,7 +25072,7 @@ func (c *ProjectsLocationsAgentsFlowsExportCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.export" call. @@ -25196,7 +25196,7 @@ func (c *ProjectsLocationsAgentsFlowsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.get" call. @@ -25313,7 +25313,7 @@ func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.getValidationResult" call. @@ -25424,7 +25424,7 @@ func (c *ProjectsLocationsAgentsFlowsImportCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.import" call. @@ -25562,7 +25562,7 @@ func (c *ProjectsLocationsAgentsFlowsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.list" call. @@ -25711,7 +25711,7 @@ func (c *ProjectsLocationsAgentsFlowsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.patch" call. @@ -25823,7 +25823,7 @@ func (c *ProjectsLocationsAgentsFlowsTrainCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.train" call. @@ -25927,7 +25927,7 @@ func (c *ProjectsLocationsAgentsFlowsValidateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.validate" call. @@ -26053,7 +26053,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.pages.create" call. @@ -26164,7 +26164,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.pages.delete" call. @@ -26295,7 +26295,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.pages.get" call. @@ -26440,7 +26440,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.pages.list" call. @@ -26596,7 +26596,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.pages.patch" call. @@ -26716,7 +26716,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.create" call. @@ -26827,7 +26827,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.delete" call. @@ -26951,7 +26951,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.get" call. @@ -27088,7 +27088,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.list" call. @@ -27236,7 +27236,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch" call. @@ -27340,7 +27340,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "baseVersion": c.baseVersion, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.compareVersions" call. @@ -27447,7 +27447,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.create" call. @@ -27544,7 +27544,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.delete" call. @@ -27653,7 +27653,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.get" call. @@ -27776,7 +27776,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.list" call. @@ -27907,7 +27907,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.load" call. @@ -28018,7 +28018,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.patch" call. @@ -28129,7 +28129,7 @@ func (c *ProjectsLocationsAgentsGeneratorsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.generators.create" call. @@ -28237,7 +28237,7 @@ func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.generators.delete" call. @@ -28353,7 +28353,7 @@ func (c *ProjectsLocationsAgentsGeneratorsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.generators.get" call. @@ -28483,7 +28483,7 @@ func (c *ProjectsLocationsAgentsGeneratorsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.generators.list" call. @@ -28623,7 +28623,7 @@ func (c *ProjectsLocationsAgentsGeneratorsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.generators.patch" call. @@ -28739,7 +28739,7 @@ func (c *ProjectsLocationsAgentsIntentsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.create" call. @@ -28838,7 +28838,7 @@ func (c *ProjectsLocationsAgentsIntentsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.delete" call. @@ -28945,7 +28945,7 @@ func (c *ProjectsLocationsAgentsIntentsExportCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.export" call. @@ -29066,7 +29066,7 @@ func (c *ProjectsLocationsAgentsIntentsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.get" call. @@ -29173,7 +29173,7 @@ func (c *ProjectsLocationsAgentsIntentsImportCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.import" call. @@ -29324,7 +29324,7 @@ func (c *ProjectsLocationsAgentsIntentsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.list" call. @@ -29470,7 +29470,7 @@ func (c *ProjectsLocationsAgentsIntentsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.patch" call. @@ -29588,7 +29588,7 @@ func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.detectIntent" call. @@ -29700,7 +29700,7 @@ func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.fulfillIntent" call. @@ -29811,7 +29811,7 @@ func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.matchIntent" call. @@ -29928,7 +29928,7 @@ func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) doReque googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.serverStreamingDetectIntent" call. @@ -30031,7 +30031,7 @@ func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.submitAnswerFeedback" call. @@ -30136,7 +30136,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.create" call. @@ -30235,7 +30235,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.delete" call. @@ -30346,7 +30346,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.get" call. @@ -30471,7 +30471,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.list" call. @@ -30604,7 +30604,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.patch" call. @@ -30707,7 +30707,7 @@ func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.batchDelete" call. @@ -30814,7 +30814,7 @@ func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.batchRun" call. @@ -30937,7 +30937,7 @@ func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "agent": c.agent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.calculateCoverage" call. @@ -31040,7 +31040,7 @@ func (c *ProjectsLocationsAgentsTestCasesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.create" call. @@ -31148,7 +31148,7 @@ func (c *ProjectsLocationsAgentsTestCasesExportCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.export" call. @@ -31257,7 +31257,7 @@ func (c *ProjectsLocationsAgentsTestCasesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.get" call. @@ -31366,7 +31366,7 @@ func (c *ProjectsLocationsAgentsTestCasesImportCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.import" call. @@ -31510,7 +31510,7 @@ func (c *ProjectsLocationsAgentsTestCasesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.list" call. @@ -31643,7 +31643,7 @@ func (c *ProjectsLocationsAgentsTestCasesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.patch" call. @@ -31749,7 +31749,7 @@ func (c *ProjectsLocationsAgentsTestCasesRunCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.run" call. @@ -31858,7 +31858,7 @@ func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.results.get" call. @@ -32000,7 +32000,7 @@ func (c *ProjectsLocationsAgentsTestCasesResultsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.results.list" call. @@ -32141,7 +32141,7 @@ func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.create" call. @@ -32252,7 +32252,7 @@ func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.delete" call. @@ -32376,7 +32376,7 @@ func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.get" call. @@ -32513,7 +32513,7 @@ func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.list" call. @@ -32661,7 +32661,7 @@ func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.patch" call. @@ -32764,7 +32764,7 @@ func (c *ProjectsLocationsAgentsWebhooksCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.webhooks.create" call. @@ -32873,7 +32873,7 @@ func (c *ProjectsLocationsAgentsWebhooksDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.webhooks.delete" call. @@ -32982,7 +32982,7 @@ func (c *ProjectsLocationsAgentsWebhooksGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.webhooks.get" call. @@ -33105,7 +33105,7 @@ func (c *ProjectsLocationsAgentsWebhooksListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.webhooks.list" call. @@ -33238,7 +33238,7 @@ func (c *ProjectsLocationsAgentsWebhooksPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.webhooks.patch" call. @@ -33342,7 +33342,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.cancel" call. @@ -33452,7 +33452,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.get" call. @@ -33581,7 +33581,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.list" call. @@ -33705,7 +33705,7 @@ func (c *ProjectsLocationsSecuritySettingsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.securitySettings.create" call. @@ -33802,7 +33802,7 @@ func (c *ProjectsLocationsSecuritySettingsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.securitySettings.delete" call. @@ -33912,7 +33912,7 @@ func (c *ProjectsLocationsSecuritySettingsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.securitySettings.get" call. @@ -34035,7 +34035,7 @@ func (c *ProjectsLocationsSecuritySettingsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.securitySettings.list" call. @@ -34169,7 +34169,7 @@ func (c *ProjectsLocationsSecuritySettingsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.securitySettings.patch" call. @@ -34273,7 +34273,7 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.cancel" call. @@ -34383,7 +34383,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.get" call. @@ -34512,7 +34512,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.list" call. diff --git a/dialogflow/v3alpha1/dialogflow-gen.go b/dialogflow/v3alpha1/dialogflow-gen.go index aaafdab874f..5040ae82e32 100644 --- a/dialogflow/v3alpha1/dialogflow-gen.go +++ b/dialogflow/v3alpha1/dialogflow-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -10,6 +10,17 @@ // // For product documentation, see: https://cloud.google.com/dialogflow/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -19,28 +30,31 @@ // ctx := context.Background() // dialogflowService, err := dialogflow.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // dialogflowService, err := dialogflow.NewService(ctx, option.WithScopes(dialogflow.DialogflowScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // dialogflowService, err := dialogflow.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // dialogflowService, err := dialogflow.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package dialogflow // import "google.golang.org/api/dialogflow/v3alpha1" import ( @@ -56,6 +70,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -76,11 +91,14 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dialogflow:v3alpha1" const apiName = "dialogflow" const apiVersion = "v3alpha1" const basePath = "https://dialogflow.googleapis.com/" +const basePathTemplate = "https://dialogflow.UNIVERSE_DOMAIN/" +const mtlsBasePath = "https://dialogflow.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -93,13 +111,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/dialogflow", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -188,38 +209,31 @@ type ProjectsOperationsService struct { s *Service } -// GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response -// message for Agents.ExportAgent. +// GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response message for +// Agents.ExportAgent. type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct { // AgentContent: Uncompressed raw byte content for agent. AgentContent string `json:"agentContent,omitempty"` - - // AgentUri: The URI to a file containing the exported agent. This field - // is populated + // AgentUri: The URI to a file containing the exported agent. This field is + // populated // only if `agent_uri` is specified in ExportAgentRequest. AgentUri string `json:"agentUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgentContent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AgentContent") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AgentContent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1PageInfo: Represents page information @@ -232,276 +246,209 @@ type GoogleCloudDialogflowCxV3beta1PageInfo struct { // ID>/agents//flows//pages/`. CurrentPage string `json:"currentPage,omitempty"` - - // FormInfo: Optional for both WebhookRequest and - // WebhookResponse. + // FormInfo: Optional for both WebhookRequest and WebhookResponse. // Information about the form. FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"` - // NextPage: Deprecated. Please use WebhookResponse.target_page // or // WebhookResponse.target_flow instead. // // Optional for WebhookResponse. - // The unique identifier of the next page. This field can be set by - // the + // The unique identifier of the next page. This field can be set by the // webhook to immediately transition to a page different from // `current_page`. // Format: `projects//locations//agents//flows//pages/`. NextPage string `json:"nextPage,omitempty"` - // ForceSendFields is a list of field names (e.g. "CurrentPage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrentPage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CurrentPage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form -// information. +// GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form information. type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct { - // ParameterInfo: Optional for both WebhookRequest and - // WebhookResponse. - // The parameters contained in the form. Note that the webhook cannot - // add + // ParameterInfo: Optional for both WebhookRequest and WebhookResponse. + // The parameters contained in the form. Note that the webhook cannot add // or remove any form parameter. ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"` - - // State: Always present for WebhookRequest. Ignored for - // WebhookResponse. + // State: Always present for WebhookRequest. Ignored for WebhookResponse. // The current state of the form. // // Possible values: - // "FORM_STATE_UNSPECIFIED" - Not specified. This value should be - // never used. - // "INITIALIZING" - The server is initializing the form. The webhook - // can process the form + // "FORM_STATE_UNSPECIFIED" - Not specified. This value should be never used. + // "INITIALIZING" - The server is initializing the form. The webhook can + // process the form // before parameter collection begins. - // "COLLECTING" - The server is collecting form parameters from the - // user. The webhook can - // modify form parameters that have been collected or are to be - // collected. - // "FINALIZED" - The server has collected all required form parameters - // from the user. - // The webhook can modify collected form parameters. If any - // required + // "COLLECTING" - The server is collecting form parameters from the user. The + // webhook can + // modify form parameters that have been collected or are to be collected. + // "FINALIZED" - The server has collected all required form parameters from + // the user. + // The webhook can modify collected form parameters. If any required // parameter is invalidated by the webhook, the form will return to // the - // parameter collection state; otherwise, parameter collection - // will + // parameter collection state; otherwise, parameter collection will // conclude. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "ParameterInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ParameterInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ParameterInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo: -// Represents parameter information. +// GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo: Represents +// parameter information. type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct { // DisplayName: Always present for WebhookRequest. Required // for // WebhookResponse. - // The human-readable name of the parameter, unique within the form. - // This + // The human-readable name of the parameter, unique within the form. This // field cannot be modified by the webhook. DisplayName string `json:"displayName,omitempty"` - // JustCollected: Optional for WebhookRequest. Ignored for // WebhookResponse. - // Indicates if the parameter value was just collected on the - // last + // Indicates if the parameter value was just collected on the last // conversation turn. JustCollected bool `json:"justCollected,omitempty"` - // Prompt: Not set for WebhookRequest. Optional for WebhookResponse. - // The prompt to send to the user to fill a required form parameter. - // This - // field can be set by the webhook. If set, this field overrides - // the + // The prompt to send to the user to fill a required form parameter. This + // field can be set by the webhook. If set, this field overrides the // prompt defined for the form parameter. Prompt []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"prompt,omitempty"` - - // Required: Optional for both WebhookRequest and - // WebhookResponse. - // Indicates whether the parameter is required. Optional parameters - // will - // not trigger prompts; however, they are filled if the user - // specifies - // them. Required parameters must be filled before form filling - // concludes. + // Required: Optional for both WebhookRequest and WebhookResponse. + // Indicates whether the parameter is required. Optional parameters will + // not trigger prompts; however, they are filled if the user specifies + // them. Required parameters must be filled before form filling concludes. Required bool `json:"required,omitempty"` - - // State: Always present for WebhookRequest. Required - // for + // State: Always present for WebhookRequest. Required for // WebhookResponse. The state of the parameter. This field can be set // to INVALID by - // the webhook to invalidate the parameter; other values set by - // the + // the webhook to invalidate the parameter; other values set by the // webhook will be ignored. // // Possible values: - // "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be - // never used. + // "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be never + // used. // "EMPTY" - Indicates that the parameter does not have a value. - // "INVALID" - Indicates that the parameter value is invalid. This - // field can be used - // by the webhook to invalidate the parameter and ask the server - // to + // "INVALID" - Indicates that the parameter value is invalid. This field can + // be used + // by the webhook to invalidate the parameter and ask the server to // collect it from the user again. // "FILLED" - Indicates that the parameter has a value. State string `json:"state,omitempty"` - // Value: Optional for both WebhookRequest and WebhookResponse. - // The value of the parameter. This field can be set by the webhook - // to + // The value of the parameter. This field can be set by the webhook to // change the parameter value. Value interface{} `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1ResponseMessage: Represents a response -// message that can be returned by a conversational agent. +// GoogleCloudDialogflowCxV3beta1ResponseMessage: Represents a response message +// that can be returned by a conversational agent. // -// Response messages are also used for output audio synthesis. The -// approach is +// Response messages are also used for output audio synthesis. The approach +// is // as follows: // // - If at least one OutputAudioText response is present, then all -// OutputAudioText responses are linearly concatenated, and the result +// OutputAudioText responses are linearly concatenated, and the result is // -// is used +// used // // for output audio synthesis. +// - If the OutputAudioText responses are a mixture of text and SSML, then the +// concatenated result is treated as SSML; otherwise, the result is treated // -// * If the OutputAudioText responses are a mixture of text and SSML, -// then the -// -// concatenated result is treated as SSML; otherwise, the result is -// -// treated as -// -// either text or SSML as appropriate. The agent designer should -// -// ideally use +// as // +// either text or SSML as appropriate. The agent designer should ideally use // either text or SSML consistently throughout the bot design. // -// * Otherwise, all Text responses are linearly concatenated, and the -// result is +// * Otherwise, all Text responses are linearly concatenated, and the result +// is // // used for output audio synthesis. // -// This approach allows for more sophisticated user experience -// scenarios, where +// This approach allows for more sophisticated user experience scenarios, +// where // the text displayed to the user may differ from what is heard. type GoogleCloudDialogflowCxV3beta1ResponseMessage struct { // ConversationSuccess: Indicates that the conversation succeeded. ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"` - // HumanAgentHandoff: Hands off conversation to a human agent. HumanAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff `json:"humanAgentHandoff,omitempty"` - - // Payload: Returns a response containing a custom, platform-specific - // payload. + // Payload: Returns a response containing a custom, platform-specific payload. Payload googleapi.RawMessage `json:"payload,omitempty"` - // Text: Returns a text response. Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConversationSuccess") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ConversationSuccess") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConversationSuccess") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConversationSuccess") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess: -// Indicates that the conversation succeeded, i.e., the bot handled the -// issue +// GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess: Indicates +// that the conversation succeeded, i.e., the bot handled the issue // that the customer talked to it about. // -// Dialogflow only uses this to determine which conversations should -// be -// counted as successful and doesn't process the metadata in this -// message in -// any way. Note that Dialogflow also considers conversations that get -// to the +// Dialogflow only uses this to determine which conversations should be +// counted as successful and doesn't process the metadata in this message +// in +// any way. Note that Dialogflow also considers conversations that get to +// the // conversation end page as successful even if they don't // return // ConversationSuccess. @@ -509,45 +456,34 @@ func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, e // You may set this, for example: // - In the entry_fulfillment of a Page if // entering the page indicates that the conversation succeeded. -// - In a webhook response when you determine that you handled the -// -// customer -// -// issue. +// - In a webhook response when you determine that you handled the customer +// issue. type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct { - // Metadata: Custom metadata. Dialogflow doesn't impose any structure on - // this. + // Metadata: Custom metadata. Dialogflow doesn't impose any structure on this. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "Metadata") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Metadata") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Metadata") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff: -// Indicates that the conversation should be handed off to a human -// agent. +// GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff: Indicates +// that the conversation should be handed off to a human agent. // -// Dialogflow only uses this to determine which conversations were -// handed off +// Dialogflow only uses this to determine which conversations were handed +// off // to a human agent for measurement purposes. What else to do with this // signal // is up to you and your handoff procedures. @@ -556,38 +492,29 @@ func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) Marsh // - In the entry_fulfillment of a Page if // entering the page indicates something went extremely wrong in the // conversation. -// - In a webhook response when you determine that the customer issue -// -// can only -// -// be handled by a human. +// - In a webhook response when you determine that the customer issue can only +// be handled by a human. type GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff struct { - // Metadata: Custom metadata for your handoff procedure. Dialogflow - // doesn't impose + // Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't + // impose // any structure on this. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "Metadata") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Metadata") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Metadata") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowCxV3beta1ResponseMessageText: The text response @@ -595,362 +522,285 @@ func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageHumanAgentHandoff) Marshal type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct { // Text: A collection of text responses. Text []string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Text") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Text") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Text") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session -// information communicated to and from the webhook. +// GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session information +// communicated to and from the webhook. type GoogleCloudDialogflowCxV3beta1SessionInfo struct { - // Parameters: Optional for WebhookRequest. Optional for - // WebhookResponse. + // Parameters: Optional for WebhookRequest. Optional for WebhookResponse. // All parameters collected from forms and intents during the // session. - // Parameters can be created, updated, or removed by the webhook. To - // remove a + // Parameters can be created, updated, or removed by the webhook. To remove + // a // parameter from the session, the webhook should explicitly set the // parameter - // value to null in WebhookResponse. The map is keyed by - // parameters' + // value to null in WebhookResponse. The map is keyed by parameters' // display names. Parameters googleapi.RawMessage `json:"parameters,omitempty"` - - // Session: Always present for WebhookRequest. Ignored for - // WebhookResponse. + // Session: Always present for WebhookRequest. Ignored for WebhookResponse. // The unique identifier of the session. This // field can be used by the webhook to identify a user. // Format: `projects//locations//agents//sessions/`. Session string `json:"session,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for -// a webhook call. +// GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for a +// webhook call. type GoogleCloudDialogflowCxV3beta1WebhookRequest struct { // DetectIntentResponseId: Always present. The unique identifier of the // DetectIntentResponse that // will be returned to the API caller. DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"` - - // FulfillmentInfo: Always present. Information about the fulfillment - // that triggered this + // FulfillmentInfo: Always present. Information about the fulfillment that + // triggered this // webhook call. FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"` - // IntentInfo: Information about the last matched intent. IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"` - - // Messages: The list of rich message responses to present to the user. - // Webhook can + // Messages: The list of rich message responses to present to the user. Webhook + // can // choose to append or replace this list // in // WebhookResponse.fulfillment_response; Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"` - // PageInfo: Information about page status. PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"` - // Payload: Custom data set in QueryParameters.payload. Payload googleapi.RawMessage `json:"payload,omitempty"` - // SessionInfo: Information about session status. SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DetectIntentResponseId") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DetectIntentResponseId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DetectIntentResponseId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DetectIntentResponseId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo: -// Represents fulfillment information communicated to the webhook. +// GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo: Represents +// fulfillment information communicated to the webhook. type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct { // Tag: Always present. The tag used to identify which fulfillment is // being // called. Tag string `json:"tag,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Tag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Tag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Tag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Tag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents -// intent information communicated to the webhook. +// GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents intent +// information communicated to the webhook. type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct { // LastMatchedIntent: Always present. The unique identifier of the last // matched - // intent. Format: `projects//locations//locations//agents//intents/`. LastMatchedIntent string `json:"lastMatchedIntent,omitempty"` - - // Parameters: Parameters identified as a result of intent matching. - // This is a map of + // Parameters: Parameters identified as a result of intent matching. This is a + // map of // the name of the identified parameter to the value of the // parameter - // identified from the user's utterance. All parameters defined in - // the + // identified from the user's utterance. All parameters defined in the // matched intent that are identified will be surfaced here. Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LastMatchedIntent") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "LastMatchedIntent") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LastMatchedIntent") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LastMatchedIntent") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterV -// alue: Represents a value for an intent parameter. +// GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue: +// Represents a value for an intent parameter. type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct { - // OriginalValue: Always present. Original text value extracted from - // user utterance. + // OriginalValue: Always present. Original text value extracted from user + // utterance. OriginalValue string `json:"originalValue,omitempty"` - - // ResolvedValue: Always present. Structured value for the parameter - // extracted from user + // ResolvedValue: Always present. Structured value for the parameter extracted + // from user // utterance. ResolvedValue interface{} `json:"resolvedValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "OriginalValue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OriginalValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OriginalValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message -// for a webhook call. +// GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message for a +// webhook call. type GoogleCloudDialogflowCxV3beta1WebhookResponse struct { - // FulfillmentResponse: The fulfillment response to send to the user. - // This field can be omitted by + // FulfillmentResponse: The fulfillment response to send to the user. This + // field can be omitted by // the webhook if it does not intend to send any response to the user. FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"` - - // PageInfo: Information about page status. This field can be omitted by - // the webhook if + // PageInfo: Information about page status. This field can be omitted by the + // webhook if // it does not intend to modify page status. PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"` - // Payload: Value to append directly to QueryResult.webhook_payloads. Payload googleapi.RawMessage `json:"payload,omitempty"` - - // SessionInfo: Information about session status. This field can be - // omitted by the webhook + // SessionInfo: Information about session status. This field can be omitted by + // the webhook // if it does not intend to modify session status. SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"` - // TargetFlow: The target flow to transition to. // Format: `projects//locations//agents//flows/`. TargetFlow string `json:"targetFlow,omitempty"` - // TargetPage: The target page to transition to. // Format: `projects//locations//agents//flows//pages/`. TargetPage string `json:"targetPage,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FulfillmentResponse") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FulfillmentResponse") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FulfillmentResponse") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FulfillmentResponse") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse: -// Represents a fulfillment response to the user. +// GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse: Represents +// a fulfillment response to the user. type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct { // MergeBehavior: Merge behavior for `messages`. // // Possible values: - // "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be - // used. - // "APPEND" - `messages` will be appended to the list of messages - // waiting to be sent + // "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be used. + // "APPEND" - `messages` will be appended to the list of messages waiting to + // be sent // to the user. - // "REPLACE" - `messages` will replace the list of messages waiting to - // be sent to the + // "REPLACE" - `messages` will replace the list of messages waiting to be + // sent to the // user. MergeBehavior string `json:"mergeBehavior,omitempty"` - // Messages: The list of rich message responses to present to the user. Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"` - // ForceSendFields is a list of field names (e.g. "MergeBehavior") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MergeBehavior") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MergeBehavior") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a -// message possibly annotated with an entity. The part +// GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a message +// possibly annotated with an entity. The part // can be an entity or purely a part of the message between two entities // or // message start/end. type GoogleCloudDialogflowV2AnnotatedMessagePart struct { - // EntityType: The [Dialogflow system - // entity - // type](https://cloud.google.com/dialogflow/docs/reference/system - // -entities) + // EntityType: The Dialogflow system entity + // type (https://cloud.google.com/dialogflow/docs/reference/system-entities) // of this message part. If this is empty, Dialogflow could not annotate // the // phrase part with a system entity. EntityType string `json:"entityType,omitempty"` - - // FormattedValue: The [Dialogflow system entity formatted - // value - // ](https://cloud.google.com/dialogflow/docs/reference/system-enti - // ties) of + // FormattedValue: The Dialogflow system entity formatted value + // (https://cloud.google.com/dialogflow/docs/reference/system-entities) + // of // this message part. For example for a system entity of // type // `@sys.unit-currency`, this may contain: @@ -961,102 +811,81 @@ type GoogleCloudDialogflowV2AnnotatedMessagePart struct { // } // FormattedValue interface{} `json:"formattedValue,omitempty"` - // Text: A part of a message possibly annotated with an entity. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "EntityType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EntityType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EntityType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response -// message for EntityTypes.BatchUpdateEntityTypes. +// GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response message +// for EntityTypes.BatchUpdateEntityTypes. type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct { // EntityTypes: The collection of updated or created entity types. EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"` - // ForceSendFields is a list of field names (e.g. "EntityTypes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EntityTypes") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EntityTypes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response -// message for Intents.BatchUpdateIntents. +// GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response message for +// Intents.BatchUpdateIntents. type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct { // Intents: The collection of updated or created intents. Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Intents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Intents") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Intents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Intents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2Context: Represents a context. type GoogleCloudDialogflowV2Context struct { - // LifespanCount: Optional. The number of conversational query requests - // after which the + // LifespanCount: Optional. The number of conversational query requests after + // which the // context expires. The default is `0`. If set to `0`, the context // expires - // immediately. Contexts expire automatically after 20 minutes if - // there + // immediately. Contexts expire automatically after 20 minutes if there // are no matching queries. LifespanCount int64 `json:"lifespanCount,omitempty"` - // Name: Required. The unique identifier of the context. // Format: // `projects//agent/sessions//contexts//conversations/`. Conversation string `json:"conversation,omitempty"` - // ErrorStatus: More detailed information about an error. Only set for // type // UNRECOVERABLE_ERROR_IN_PHONE_CALL. ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"` - // NewMessagePayload: Payload of NEW_MESSAGE event. NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"` - // Type: The type of the event that this notification refers to. // // Possible values: // "TYPE_UNSPECIFIED" - Type not set. - // "CONVERSATION_STARTED" - A new conversation has been opened. This - // is fired when a telephone call + // "CONVERSATION_STARTED" - A new conversation has been opened. This is fired + // when a telephone call // is answered, or a conversation is created via the API. - // "CONVERSATION_FINISHED" - An existing conversation has closed. This - // is fired when a telephone call + // "CONVERSATION_FINISHED" - An existing conversation has closed. This is + // fired when a telephone call // is terminated, or a conversation is closed via the API. // "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received // notification from Dialogflow that // human intervention is required. - // "NEW_MESSAGE" - An existing conversation has received a new - // message, either from API or + // "NEW_MESSAGE" - An existing conversation has received a new message, + // either from API or // telephony. It is configured // in // ConversationProfile.new_message_event_notification_config - // "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone - // call. + // "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone call. // - // In general non-recoverable errors only occur if something - // was - // misconfigured in the ConversationProfile corresponding to the call. - // After + // In general non-recoverable errors only occur if something was + // misconfigured in the ConversationProfile corresponding to the call. After // a non-recoverable error, Dialogflow may stop responding. // // We don't fire this event: // * in an API call because we can directly return the error, or, // * when we can recover from an error. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conversation") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conversation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2ConversationEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2EntityType: Represents an entity type. @@ -1211,88 +1016,72 @@ type GoogleCloudDialogflowV2EntityType struct { // Possible values: // "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the // entity. - // "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values - // that have not been explicitly + // "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values that + // have not been explicitly // listed in the entity. AutoExpansionMode string `json:"autoExpansionMode,omitempty"` - // DisplayName: Required. The name of the entity type. DisplayName string `json:"displayName,omitempty"` - - // EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction - // during classification. + // EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction during + // classification. EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"` - - // Entities: Optional. The collection of entity entries associated with - // the entity type. + // Entities: Optional. The collection of entity entries associated with the + // entity type. Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"` - // Kind: Required. Indicates the kind of entity type. // // Possible values: - // "KIND_UNSPECIFIED" - Not specified. This value should be never - // used. - // "KIND_MAP" - Map entity types allow mapping of a group of synonyms - // to a reference + // "KIND_UNSPECIFIED" - Not specified. This value should be never used. + // "KIND_MAP" - Map entity types allow mapping of a group of synonyms to a + // reference // value. - // "KIND_LIST" - List entity types contain a set of entries that do - // not map to reference + // "KIND_LIST" - List entity types contain a set of entries that do not map + // to reference // values. However, list entity types can contain references to other // entity // types (with or without aliases). - // "KIND_REGEXP" - Regexp entity types allow to specify regular - // expressions in entries + // "KIND_REGEXP" - Regexp entity types allow to specify regular expressions + // in entries // values. Kind string `json:"kind,omitempty"` - // Name: The unique identifier of the entity type. // Required for EntityTypes.UpdateEntityType // and // EntityTypes.BatchUpdateEntityTypes methods. // Format: `projects//agent/entityTypes/`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AutoExpansionMode") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AutoExpansionMode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutoExpansionMode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AutoExpansionMode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2EntityType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2EntityTypeEntity: An **entity entry** for an // associated entity type. type GoogleCloudDialogflowV2EntityTypeEntity struct { - // Synonyms: Required. A collection of value synonyms. For example, if - // the entity type + // Synonyms: Required. A collection of value synonyms. For example, if the + // entity type // is *vegetable*, and `value` is *scallions*, a synonym could be // *green // onions*. // // For `KIND_LIST` entity types: // - // * This collection must contain exactly one synonym equal to - // `value`. + // * This collection must contain exactly one synonym equal to `value`. Synonyms []string `json:"synonyms,omitempty"` - - // Value: Required. The primary value associated with this entity - // entry. + // Value: Required. The primary value associated with this entity entry. // For example, if the entity type is *vegetable*, the value could // be // *scallions*. @@ -1303,63 +1092,49 @@ type GoogleCloudDialogflowV2EntityTypeEntity struct { // // For `KIND_LIST` entity types: // - // * A string that can contain references to other entity types (with - // or + // * A string that can contain references to other entity types (with or // without aliases). Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Synonyms") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Synonyms") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Synonyms") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2EntityTypeEntity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2EventInput: Events allow for matching intents -// by event name instead of the natural +// GoogleCloudDialogflowV2EventInput: Events allow for matching intents by +// event name instead of the natural // language input. For instance, input `` can trigger a personalized welcome // response. -// The parameter `name` may be used by the agent in the -// response: +// The parameter `name` may be used by the agent in the response: // "Hello #welcome_event.name! What can I do for you today?". type GoogleCloudDialogflowV2EventInput struct { - // LanguageCode: Required. The language of this query. See - // [Language - // Support](https://cloud.google.com/dialogflow/docs/reference/ - // language) - // for a list of the currently supported language codes. Note that - // queries in - // the same session do not necessarily need to specify the same - // language. + // LanguageCode: Required. The language of this query. See Language + // Support (https://cloud.google.com/dialogflow/docs/reference/language) + // for a list of the currently supported language codes. Note that queries + // in + // the same session do not necessarily need to specify the same language. LanguageCode string `json:"languageCode,omitempty"` - // Name: Required. The unique identifier of the event. Name string `json:"name,omitempty"` - // Parameters: The collection of parameters associated with the // event. // // Depending on your protocol or client library language, this is a - // map, associative array, symbol table, dictionary, or JSON - // object + // map, associative array, symbol table, dictionary, or JSON object // composed of a collection of (MapKey, MapValue) pairs: // // - MapKey type: string @@ -1372,28 +1147,22 @@ type GoogleCloudDialogflowV2EventInput struct { // map from composite entity property names to property values // - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "LanguageCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LanguageCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LanguageCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2EventInput - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2ExportAgentResponse: The response message for @@ -1401,49 +1170,39 @@ func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) { type GoogleCloudDialogflowV2ExportAgentResponse struct { // AgentContent: Zip compressed raw byte content for agent. AgentContent string `json:"agentContent,omitempty"` - - // AgentUri: The URI to a file containing the exported agent. This field - // is populated + // AgentUri: The URI to a file containing the exported agent. This field is + // populated // only if `agent_uri` is specified in `ExportAgentRequest`. AgentUri string `json:"agentUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgentContent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AgentContent") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AgentContent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2ExportAgentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2Intent: Represents an intent. -// Intents convert a number of user expressions or patterns into an -// action. An +// Intents convert a number of user expressions or patterns into an action. +// An // action is an extraction of a user command or sentence semantics. type GoogleCloudDialogflowV2Intent struct { - // Action: Optional. The name of the action associated with the - // intent. + // Action: Optional. The name of the action associated with the intent. // Note: The action name must not contain whitespaces. Action string `json:"action,omitempty"` - - // DefaultResponsePlatforms: Optional. The list of platforms for which - // the first responses will be - // copied from the messages in PLATFORM_UNSPECIFIED (i.e. default - // platform). + // DefaultResponsePlatforms: Optional. The list of platforms for which the + // first responses will be + // copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). // // Possible values: // "PLATFORM_UNSPECIFIED" - Default platform. @@ -1457,77 +1216,61 @@ type GoogleCloudDialogflowV2Intent struct { // "ACTIONS_ON_GOOGLE" - Google Assistant // See [Dialogflow // webhook - // format](https://developers.google.com/assistant/actions/build/ - // json/dialogflow-webhook-json) + // format](https://developers.google.com/assistant/actions/build/json/dialogflow + // -webhook-json) // "GOOGLE_HANGOUTS" - Google Hangouts. DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"` - // DisplayName: Required. The name of this intent. DisplayName string `json:"displayName,omitempty"` - - // Events: Optional. The collection of event names that trigger the - // intent. + // Events: Optional. The collection of event names that trigger the intent. // If the collection of input contexts is not empty, all of the contexts // must // be present in the active user session for an event to trigger this // intent. // Event names are limited to 150 characters. Events []string `json:"events,omitempty"` - - // FollowupIntentInfo: Read-only. Information about all followup intents - // that have this intent as - // a direct or indirect parent. We populate this field only in the - // output. + // FollowupIntentInfo: Read-only. Information about all followup intents that + // have this intent as + // a direct or indirect parent. We populate this field only in the output. FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"` - - // InputContextNames: Optional. The list of context names required for - // this intent to be + // InputContextNames: Optional. The list of context names required for this + // intent to be // triggered. - // Format: `projects//agent/sessions/-/contexts/`. + // Format: `projects//agent/sessions/-/contexts/`. InputContextNames []string `json:"inputContextNames,omitempty"` - // IsFallback: Optional. Indicates whether this is a fallback intent. IsFallback bool `json:"isFallback,omitempty"` - // Messages: Optional. The collection of rich messages corresponding to // the // `Response` field in the Dialogflow console. Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"` - - // MlDisabled: Optional. Indicates whether Machine Learning is disabled - // for the intent. - // Note: If `ml_disabled` setting is set to true, then this intent is - // not + // MlDisabled: Optional. Indicates whether Machine Learning is disabled for the + // intent. + // Note: If `ml_disabled` setting is set to true, then this intent is not // taken into account during inference in `ML ONLY` match mode. // Also, // auto-markup in the UI is turned off. MlDisabled bool `json:"mlDisabled,omitempty"` - // Name: Optional. The unique identifier of this intent. // Required for Intents.UpdateIntent and // Intents.BatchUpdateIntents // methods. // Format: `projects//agent/intents/`. Name string `json:"name,omitempty"` - - // OutputContexts: Optional. The collection of contexts that are - // activated when the intent + // OutputContexts: Optional. The collection of contexts that are activated when + // the intent // is matched. Context messages in this collection should not set // the // parameters field. Setting the `lifespan_count` to 0 will reset the // context // when the intent is matched. - // Format: `projects//agent/sessions/-/contexts/`. + // Format: `projects//agent/sessions/-/contexts/`. OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"` - - // Parameters: Optional. The collection of parameters associated with - // the intent. + // Parameters: Optional. The collection of parameters associated with the + // intent. Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"` - - // ParentFollowupIntentName: Read-only after creation. The unique - // identifier of the parent intent in the + // ParentFollowupIntentName: Read-only after creation. The unique identifier of + // the parent intent in the // chain of followup intents. You can set this field when creating an // intent, // for example with CreateIntent or @@ -1537,9 +1280,8 @@ type GoogleCloudDialogflowV2Intent struct { // It identifies the parent followup intent. // Format: `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` - - // Priority: Optional. The priority of this intent. Higher numbers - // represent higher + // Priority: Optional. The priority of this intent. Higher numbers represent + // higher // priorities. // // - If the supplied value is unspecified or 0, the service @@ -1548,137 +1290,103 @@ type GoogleCloudDialogflowV2Intent struct { // - If the supplied value is negative, the intent is ignored // in runtime detect intent requests. Priority int64 `json:"priority,omitempty"` - - // ResetContexts: Optional. Indicates whether to delete all contexts in - // the current + // ResetContexts: Optional. Indicates whether to delete all contexts in the + // current // session when this intent is matched. ResetContexts bool `json:"resetContexts,omitempty"` - - // RootFollowupIntentName: Read-only. The unique identifier of the root - // intent in the chain of - // followup intents. It identifies the correct followup intents chain - // for + // RootFollowupIntentName: Read-only. The unique identifier of the root intent + // in the chain of + // followup intents. It identifies the correct followup intents chain for // this intent. We populate this field only in the output. // // Format: `projects//agent/intents/`. RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"` - // TrainingPhrases: Optional. The collection of examples that the agent // is // trained on. TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"` - - // WebhookState: Optional. Indicates whether webhooks are enabled for - // the intent. + // WebhookState: Optional. Indicates whether webhooks are enabled for the + // intent. // // Possible values: - // "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and - // in the intent. - // "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in - // the intent. - // "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in - // the agent and in the intent. Also, each slot + // "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and in the + // intent. + // "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in the + // intent. + // "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in the agent + // and in the intent. Also, each slot // filling prompt is forwarded to the webhook. WebhookState string `json:"webhookState,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2Intent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentFollowupIntentInfo: Represents a single // followup intent in the chain. type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct { - // FollowupIntentName: The unique identifier of the followup - // intent. + // FollowupIntentName: The unique identifier of the followup intent. // Format: `projects//agent/intents/`. FollowupIntentName string `json:"followupIntentName,omitempty"` - - // ParentFollowupIntentName: The unique identifier of the followup - // intent's parent. + // ParentFollowupIntentName: The unique identifier of the followup intent's + // parent. // Format: `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FollowupIntentName") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FollowupIntentName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FollowupIntentName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FollowupIntentName") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessage: A rich response -// message. -// Corresponds to the intent `Response` field in the Dialogflow -// console. +// GoogleCloudDialogflowV2IntentMessage: A rich response message. +// Corresponds to the intent `Response` field in the Dialogflow console. // For more information, see -// [Rich -// response -// messages](https://cloud.google.com/dialogflow/docs/intents-ri -// ch-messages). +// Rich response +// messages (https://cloud.google.com/dialogflow/docs/intents-rich-messages). type GoogleCloudDialogflowV2IntentMessage struct { // BasicCard: The basic card response for Actions on Google. BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"` - // BrowseCarouselCard: Browse carousel card for Actions on Google. BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"` - // Card: The card response. Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"` - // CarouselSelect: The carousel card response for Actions on Google. CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"` - // Image: The image response. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` - - // LinkOutSuggestion: The link out suggestion chip for Actions on - // Google. + // LinkOutSuggestion: The link out suggestion chip for Actions on Google. LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"` - // ListSelect: The list card response for Actions on Google. ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"` - // MediaContent: The media content card for Actions on Google. MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"` - // Payload: A custom platform-specific response. Payload googleapi.RawMessage `json:"payload,omitempty"` - // Platform: Optional. The platform that this message is intended for. // // Possible values: @@ -1693,271 +1401,210 @@ type GoogleCloudDialogflowV2IntentMessage struct { // "ACTIONS_ON_GOOGLE" - Google Assistant // See [Dialogflow // webhook - // format](https://developers.google.com/assistant/actions/build/ - // json/dialogflow-webhook-json) + // format](https://developers.google.com/assistant/actions/build/json/dialogflow + // -webhook-json) // "GOOGLE_HANGOUTS" - Google Hangouts. Platform string `json:"platform,omitempty"` - // QuickReplies: The quick replies response. QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"` - - // SimpleResponses: The voice and text-only responses for Actions on - // Google. + // SimpleResponses: The voice and text-only responses for Actions on Google. SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"` - // Suggestions: The suggestion chips for Actions on Google. Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"` - // TableCard: Table card for Actions on Google. TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"` - // Text: The text response. Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "BasicCard") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BasicCard") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BasicCard") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card -// message. Useful for displaying information. +// GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card message. +// Useful for displaying information. type GoogleCloudDialogflowV2IntentMessageBasicCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"` - - // FormattedText: Required, unless image is present. The body text of - // the card. + // FormattedText: Required, unless image is present. The body text of the card. FormattedText string `json:"formattedText,omitempty"` - // Image: Optional. The image for the card. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` - // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` - // Title: Optional. The title of the card. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buttons") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Buttons") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Buttons") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button -// object that appears at the bottom of a card. +// GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button object that +// appears at the bottom of a card. type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct { - // OpenUriAction: Required. Action to take when a user taps on the - // button. + // OpenUriAction: Required. Action to take when a user taps on the button. OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"` - // Title: Required. The title of the button. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "OpenUriAction") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OpenUriAction") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OpenUriAction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction: -// Opens the given URI. +// GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction: Opens the +// given URI. type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct { // Uri: Required. The HTTP or HTTPS scheme URI. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse -// Carousel Card for Actions on +// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse Carousel Card +// for Actions on // Google. -// https://developers.google.com/actions/assistant/responses#brow -// sing_carousel +// https://developers.google.com/actions/assistant/responses#browsing_carousel type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct { - // ImageDisplayOptions: Optional. Settings for displaying the image. - // Applies to every image in + // ImageDisplayOptions: Optional. Settings for displaying the image. Applies to + // every image in // items. // // Possible values: - // "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the - // image and the image container with gray + // "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the image and + // the image container with gray // bars. - // "GRAY" - Fill the gaps between the image and the image container - // with gray + // "GRAY" - Fill the gaps between the image and the image container with + // gray // bars. - // "WHITE" - Fill the gaps between the image and the image container - // with white + // "WHITE" - Fill the gaps between the image and the image container with + // white // bars. - // "CROPPED" - Image is scaled such that the image width and height - // match or exceed - // the container dimensions. This may crop the top and bottom of - // the - // image if the scaled image height is greater than the - // container - // height, or crop the left and right of the image if the scaled - // image - // width is greater than the container width. This is similar to - // "Zoom + // "CROPPED" - Image is scaled such that the image width and height match or + // exceed + // the container dimensions. This may crop the top and bottom of the + // image if the scaled image height is greater than the container + // height, or crop the left and right of the image if the scaled image + // width is greater than the container width. This is similar to "Zoom // Mode" on a widescreen TV when playing a 4:3 video. - // "BLURRED_BACKGROUND" - Pad the gaps between image and image frame - // with a blurred copy of the + // "BLURRED_BACKGROUND" - Pad the gaps between image and image frame with a + // blurred copy of the // same image. ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"` - - // Items: Required. List of items in the Browse Carousel Card. Minimum - // of two + // Items: Required. List of items in the Browse Carousel Card. Minimum of + // two // items, maximum of ten. Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageDisplayOptions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ImageDisplayOptions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa -// rdItem: Browsing carousel tile +// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem: +// +// Browsing carousel tile type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct { - // Description: Optional. Description of the carousel item. Maximum of - // four lines of + // Description: Optional. Description of the carousel item. Maximum of four + // lines of // text. Description string `json:"description,omitempty"` - // Footer: Optional. Text that appears at the bottom of the Browse // Carousel // Card. Maximum of one line of text. Footer string `json:"footer,omitempty"` - // Image: Optional. Hero image for the carousel item. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` - // OpenUriAction: Required. Action to present to the user. OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"` - - // Title: Required. Title of the carousel item. Maximum of two lines of - // text. + // Title: Required. Title of the carousel item. Maximum of two lines of text. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa -// rdItemOpenUrlAction: Actions on Google action to open a given url. +// GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemO +// penUrlAction: Actions on Google action to open a given url. type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct { // Url: Required. URL Url string `json:"url,omitempty"` - // UrlTypeHint: Optional. Specifies the type of viewer that is used when // opening // the URL. Defaults to opening via web browser. @@ -1965,391 +1612,305 @@ type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardIte // Possible values: // "URL_TYPE_HINT_UNSPECIFIED" - Unspecified // "AMP_ACTION" - Url would be an amp action - // "AMP_CONTENT" - URL that points directly to AMP content, or to a - // canonical URL + // "AMP_CONTENT" - URL that points directly to AMP content, or to a canonical + // URL // which refers to AMP content via . UrlTypeHint string `json:"urlTypeHint,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageCard: The card response message. type GoogleCloudDialogflowV2IntentMessageCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"` - // ImageUri: Optional. The public URI to an image file for the card. ImageUri string `json:"imageUri,omitempty"` - // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` - // Title: Optional. The title of the card. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buttons") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Buttons") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Buttons") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageCardButton: Contains information -// about a button. +// GoogleCloudDialogflowV2IntentMessageCardButton: Contains information about a +// button. type GoogleCloudDialogflowV2IntentMessageCardButton struct { - // Postback: Optional. The text to send back to the Dialogflow API or a - // URI to + // Postback: Optional. The text to send back to the Dialogflow API or a URI + // to // open. Postback string `json:"postback,omitempty"` - // Text: Optional. The text to show on the button. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Postback") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Postback") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Postback") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for -// presenting a carousel of options to select from. +// GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for presenting +// a carousel of options to select from. type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct { // Items: Required. Carousel items. Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in -// the carousel. +// GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in the +// carousel. type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct { // Description: Optional. The body text of the card. Description string `json:"description,omitempty"` - // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` - // Info: Required. Additional info about the option item. Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"` - // Title: Required. Title of the carousel item. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageColumnProperties: Column -// properties for TableCard. +// GoogleCloudDialogflowV2IntentMessageColumnProperties: Column properties for +// TableCard. type GoogleCloudDialogflowV2IntentMessageColumnProperties struct { // Header: Required. Column heading. Header string `json:"header,omitempty"` - - // HorizontalAlignment: Optional. Defines text alignment for all cells - // in this column. + // HorizontalAlignment: Optional. Defines text alignment for all cells in this + // column. // // Possible values: - // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading - // edge of the column. + // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading edge + // of the column. // "LEADING" - Text is aligned to the leading edge of the column. // "CENTER" - Text is centered in the column. // "TRAILING" - Text is aligned to the trailing edge of the column. HorizontalAlignment string `json:"horizontalAlignment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageImage: The image response -// message. +// GoogleCloudDialogflowV2IntentMessageImage: The image response message. type GoogleCloudDialogflowV2IntentMessageImage struct { - // AccessibilityText: Optional. A text description of the image to be - // used for accessibility, + // AccessibilityText: Optional. A text description of the image to be used for + // accessibility, // e.g., screen readers. AccessibilityText string `json:"accessibilityText,omitempty"` - // ImageUri: Optional. The public URI to an image file. ImageUri string `json:"imageUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AccessibilityText") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccessibilityText") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessibilityText") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccessibilityText") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion -// chip message that allows the user to jump out to the app +// GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion chip +// message that allows the user to jump out to the app // or website associated with this agent. type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct { - // DestinationName: Required. The name of the app or site this chip is - // linking to. + // DestinationName: Required. The name of the app or site this chip is linking + // to. DestinationName string `json:"destinationName,omitempty"` - // Uri: Required. The URI of the app or site to open when the user taps // the // suggestion chip. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "DestinationName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DestinationName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DestinationName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageListSelect: The card for -// presenting a list of options to select from. +// GoogleCloudDialogflowV2IntentMessageListSelect: The card for presenting a +// list of options to select from. type GoogleCloudDialogflowV2IntentMessageListSelect struct { // Items: Required. List items. Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"` - // Subtitle: Optional. Subtitle of the list. Subtitle string `json:"subtitle,omitempty"` - // Title: Optional. The overall title of the list. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the -// list. +// GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the list. type GoogleCloudDialogflowV2IntentMessageListSelectItem struct { // Description: Optional. The main text describing the item. Description string `json:"description,omitempty"` - // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` - // Info: Required. Additional information about this option. Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"` - // Title: Required. The title of the list item. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageMediaContent: The media content -// card for Actions on Google. +// GoogleCloudDialogflowV2IntentMessageMediaContent: The media content card for +// Actions on Google. type GoogleCloudDialogflowV2IntentMessageMediaContent struct { // MediaObjects: Required. List of media objects. MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"` - // MediaType: Optional. What type of media is the content (ie "audio"). // // Possible values: // "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified. // "AUDIO" - Response media type is audio. MediaType string `json:"mediaType,omitempty"` - // ForceSendFields is a list of field names (e.g. "MediaObjects") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MediaObjects") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MediaObjects") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject: @@ -2357,154 +1918,122 @@ func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct { // ContentUrl: Required. Url where the media is stored. ContentUrl string `json:"contentUrl,omitempty"` - // Description: Optional. Description of media card. Description string `json:"description,omitempty"` - // Icon: Optional. Icon to display above media content. Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"` - // LargeImage: Optional. Image to display above media content. LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"` - // Name: Required. Name of media card. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentUrl") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContentUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies -// response message. +// GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies response +// message. type GoogleCloudDialogflowV2IntentMessageQuickReplies struct { // QuickReplies: Optional. The collection of quick replies. QuickReplies []string `json:"quickReplies,omitempty"` - // Title: Optional. The title of the collection of quick replies. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "QuickReplies") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "QuickReplies") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "QuickReplies") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info -// about the select item for when it is triggered in a +// GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info about +// the select item for when it is triggered in a // dialog. type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct { // Key: Required. A unique key that will be sent back to the agent if // this // response is given. Key string `json:"key,omitempty"` - - // Synonyms: Optional. A list of synonyms that can also be used to - // trigger this + // Synonyms: Optional. A list of synonyms that can also be used to trigger + // this // item in dialog. Synonyms []string `json:"synonyms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple -// response message containing speech or text. +// GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple response +// message containing speech or text. type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct { // DisplayText: Optional. The text to display. DisplayText string `json:"displayText,omitempty"` - // Ssml: One of text_to_speech or ssml must be provided. Structured // spoken // response to the user in the SSML format. Mutually exclusive // with // text_to_speech. Ssml string `json:"ssml,omitempty"` - - // TextToSpeech: One of text_to_speech or ssml must be provided. The - // plain text of the + // TextToSpeech: One of text_to_speech or ssml must be provided. The plain text + // of the // speech output. Mutually exclusive with ssml. TextToSpeech string `json:"textToSpeech,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayText") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayText") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayText") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection -// of simple response candidates. +// GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection of +// simple response candidates. // This message in `QueryResult.fulfillment_messages` // and // `WebhookResponse.fulfillment_messages` should contain only @@ -2513,59 +2042,46 @@ func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]by type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct { // SimpleResponses: Required. The list of simple responses. SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"` - // ForceSendFields is a list of field names (e.g. "SimpleResponses") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SimpleResponses") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "SimpleResponses") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip -// message that the user can tap to quickly post a reply +// GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip message +// that the user can tap to quickly post a reply // to the conversation. type GoogleCloudDialogflowV2IntentMessageSuggestion struct { // Title: Required. The text shown the in the suggestion chip. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Title") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Title") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Title") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageSuggestions: The collection of @@ -2573,244 +2089,189 @@ func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, type GoogleCloudDialogflowV2IntentMessageSuggestions struct { // Suggestions: Required. The list of suggested replies. Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Suggestions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Suggestions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Suggestions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions -// on Google. +// GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions on +// Google. type GoogleCloudDialogflowV2IntentMessageTableCard struct { // Buttons: Optional. List of buttons for the card. Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"` - - // ColumnProperties: Optional. Display properties for the columns in - // this table. + // ColumnProperties: Optional. Display properties for the columns in this + // table. ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"` - // Image: Optional. Image which should be displayed on the card. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` - // Rows: Optional. Rows in this table of data. Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"` - // Subtitle: Optional. Subtitle to the title. Subtitle string `json:"subtitle,omitempty"` - // Title: Required. Title of the card. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buttons") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Buttons") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Buttons") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of -// TableCardRow. +// GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of TableCardRow. type GoogleCloudDialogflowV2IntentMessageTableCardCell struct { // Text: Required. Text in this cell. Text string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Text") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Text") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Text") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageTableCardRow: Row of TableCard. type GoogleCloudDialogflowV2IntentMessageTableCardRow struct { // Cells: Optional. List of cells that make up this row. Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"` - - // DividerAfter: Optional. Whether to add a visual divider after this - // row. + // DividerAfter: Optional. Whether to add a visual divider after this row. DividerAfter bool `json:"dividerAfter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cells") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cells") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cells") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentMessageText: The text response message. type GoogleCloudDialogflowV2IntentMessageText struct { // Text: Optional. The collection of the agent's responses. Text []string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Text") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Text") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Text") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentMessageText - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2IntentParameter: Represents intent parameters. type GoogleCloudDialogflowV2IntentParameter struct { - // DefaultValue: Optional. The default value to use when the `value` - // yields an empty + // DefaultValue: Optional. The default value to use when the `value` yields an + // empty // result. - // Default values can be extracted from contexts by using the - // following + // Default values can be extracted from contexts by using the following // syntax: `#context_name.parameter_name`. DefaultValue string `json:"defaultValue,omitempty"` - // DisplayName: Required. The name of the parameter. DisplayName string `json:"displayName,omitempty"` - - // EntityTypeDisplayName: Optional. The name of the entity type, - // prefixed with `@`, that + // EntityTypeDisplayName: Optional. The name of the entity type, prefixed with + // `@`, that // describes values of the parameter. If the parameter is // required, this must be provided. EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"` - - // IsList: Optional. Indicates whether the parameter represents a list - // of values. + // IsList: Optional. Indicates whether the parameter represents a list of + // values. IsList bool `json:"isList,omitempty"` - - // Mandatory: Optional. Indicates whether the parameter is required. - // That is, + // Mandatory: Optional. Indicates whether the parameter is required. That + // is, // whether the intent cannot be completed without collecting the // parameter // value. Mandatory bool `json:"mandatory,omitempty"` - // Name: The unique identifier of this parameter. Name string `json:"name,omitempty"` - - // Prompts: Optional. The collection of prompts that the agent can - // present to the + // Prompts: Optional. The collection of prompts that the agent can present to + // the // user in order to collect a value for the parameter. Prompts []string `json:"prompts,omitempty"` - // Value: Optional. The definition of the parameter value. It can be: // // - a constant string, // - a parameter value defined as `$parameter_name`, - // - an original parameter value defined as - // `$parameter_name.original`, + // - an original parameter value defined as `$parameter_name.original`, // - a parameter value from some context defined as // `#context_name.parameter_name`. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultValue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example -// that the agent is trained on. +// GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example that the +// agent is trained on. type GoogleCloudDialogflowV2IntentTrainingPhrase struct { // Name: Output only. The unique identifier of this training phrase. Name string `json:"name,omitempty"` - // Parts: Required. The ordered list of training phrase parts. - // The parts are concatenated in order to form the training - // phrase. + // The parts are concatenated in order to form the training phrase. // // Note: The API does not automatically annotate training phrases like // the @@ -2820,120 +2281,91 @@ type GoogleCloudDialogflowV2IntentTrainingPhrase struct { // so the training phrase is well formatted when the parts are // concatenated. // - // If the training phrase does not need to be annotated with - // parameters, + // If the training phrase does not need to be annotated with parameters, // you just need a single part with only the Part.text field set. // - // If you want to annotate the training phrase, you must create - // multiple - // parts, where the fields of each part are populated in one of two - // ways: + // If you want to annotate the training phrase, you must create multiple + // parts, where the fields of each part are populated in one of two ways: // - // - `Part.text` is set to a part of the phrase that has no - // parameters. - // - `Part.text` is set to a part of the phrase that you want to - // annotate, - // and the `entity_type`, `alias`, and `user_defined` fields are - // all + // - `Part.text` is set to a part of the phrase that has no parameters. + // - `Part.text` is set to a part of the phrase that you want to annotate, + // and the `entity_type`, `alias`, and `user_defined` fields are all // set. Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"` - - // TimesAddedCount: Optional. Indicates how many times this example was - // added to + // TimesAddedCount: Optional. Indicates how many times this example was added + // to // the intent. Each time a developer adds an existing sample by editing // an // intent or training, this counter is increased. TimesAddedCount int64 `json:"timesAddedCount,omitempty"` - // Type: Required. The type of the training phrase. // // Possible values: - // "TYPE_UNSPECIFIED" - Not specified. This value should never be - // used. - // "EXAMPLE" - Examples do not contain @-prefixed entity type names, - // but example parts + // "TYPE_UNSPECIFIED" - Not specified. This value should never be used. + // "EXAMPLE" - Examples do not contain @-prefixed entity type names, but + // example parts // can be annotated with entity types. - // "TEMPLATE" - Templates are not annotated with entity types, but - // they can contain + // "TEMPLATE" - Templates are not annotated with entity types, but they can + // contain // @-prefixed entity type names as substrings. - // Template mode has been deprecated. Example mode is the only - // supported - // way to create new training phrases. If you have existing - // training - // phrases that you've created in template mode, those will continue - // to + // Template mode has been deprecated. Example mode is the only supported + // way to create new training phrases. If you have existing training + // phrases that you've created in template mode, those will continue to // work. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of -// a training phrase. +// GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of a +// training phrase. type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct { // Alias: Optional. The parameter name for the value extracted from // the // annotated part of the example. // This field is required for annotated parts of the training phrase. Alias string `json:"alias,omitempty"` - // EntityType: Optional. The entity type name prefixed with `@`. // This field is required for annotated parts of the training phrase. EntityType string `json:"entityType,omitempty"` - // Text: Required. The text for this part. Text string `json:"text,omitempty"` - // UserDefined: Optional. Indicates whether the text was manually // annotated. - // This field is set to true when the Dialogflow Console is used - // to - // manually annotate the part. When creating an annotated part with - // the + // This field is set to true when the Dialogflow Console is used to + // manually annotate the part. When creating an annotated part with the // API, you must set this to true. UserDefined bool `json:"userDefined,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Alias") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Alias") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Alias") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2Message: Represents a message posted into a @@ -2941,28 +2373,22 @@ func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, type GoogleCloudDialogflowV2Message struct { // Content: Required. The message content. Content string `json:"content,omitempty"` - // CreateTime: Output only. The time when the message was created. CreateTime string `json:"createTime,omitempty"` - // LanguageCode: Optional. The message language. - // This should be a - // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) + // This should be a BCP-47 + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) // language tag. Example: "en-US". LanguageCode string `json:"languageCode,omitempty"` - // MessageAnnotation: Output only. The annotation for the message. MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"` - // Name: The unique identifier of the message. // Format: `projects//conversations//messages/`. Name string `json:"name,omitempty"` - // Participant: Output only. The participant that sends this message. Participant string `json:"participant,omitempty"` - // ParticipantRole: Output only. The role of the participant. // // Possible values: @@ -2974,80 +2400,63 @@ type GoogleCloudDialogflowV2Message struct { // with // Dialogflow services. ParticipantRole string `json:"participantRole,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2Message - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2MessageAnnotation: Represents the result of // annotation for the message. type GoogleCloudDialogflowV2MessageAnnotation struct { - // ContainEntities: Indicates whether the text message contains - // entities. + // ContainEntities: Indicates whether the text message contains entities. ContainEntities bool `json:"containEntities,omitempty"` - - // Parts: The collection of annotated message parts ordered by - // their + // Parts: The collection of annotated message parts ordered by their // position in the message. You can recover the annotated message // by // concatenating [AnnotatedMessagePart.text]. Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContainEntities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContainEntities") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContainEntities") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2MessageAnnotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the -// contents of the original request that was passed to +// GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the contents +// of the original request that was passed to // the `[Streaming]DetectIntent` call. type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct { // Payload: Optional. This field is set to the value of the // `QueryParameters.payload` - // field passed in the request. Some integrations that query a - // Dialogflow + // field passed in the request. Some integrations that query a Dialogflow // agent may provide additional information in the payload. // - // In particular, for the Dialogflow Phone Gateway integration, this - // field has + // In particular, for the Dialogflow Phone Gateway integration, this field + // has // the form: //
                  {
                   	//  "telephony": {
                  @@ -3056,63 +2465,48 @@ type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
                   	// }
                  // Note: The caller ID field (`caller_id`) will be redacted for // Standard - // Edition agents and populated with the caller ID in - // [E.164 - // format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition - // agents. + // Edition agents and populated with the caller ID in E.164 + // format (https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. Payload googleapi.RawMessage `json:"payload,omitempty"` - - // Source: The source of this request, e.g., `google`, `facebook`, - // `slack`. It is set + // Source: The source of this request, e.g., `google`, `facebook`, `slack`. It + // is set // by Dialogflow-owned servers. Source string `json:"source,omitempty"` - - // Version: Optional. The version of the protocol used for this - // request. + // Version: Optional. The version of the protocol used for this request. // This field is AoG-specific. Version string `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Payload") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Payload") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Payload") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Payload") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2QueryResult: Represents the result of -// conversational query or event processing. +// GoogleCloudDialogflowV2QueryResult: Represents the result of conversational +// query or event processing. type GoogleCloudDialogflowV2QueryResult struct { // Action: The action name from the matched intent. Action string `json:"action,omitempty"` - // AllRequiredParamsPresent: This field is set to: // - // - `false` if the matched intent has required parameters and not all - // of + // - `false` if the matched intent has required parameters and not all of // the required parameter values have been collected. - // - `true` if all required parameter values have been collected, or if - // the + // - `true` if all required parameter values have been collected, or if the // matched intent doesn't contain any required parameters. AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"` - - // DiagnosticInfo: Free-form diagnostic information for the associated - // detect intent request. + // DiagnosticInfo: Free-form diagnostic information for the associated detect + // intent request. // The fields of this data can change without notice, so you should not // write // code that depends on its structure. @@ -3121,59 +2515,42 @@ type GoogleCloudDialogflowV2QueryResult struct { // - webhook call latency // - webhook errors DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"` - - // FulfillmentMessages: The collection of rich messages to present to - // the user. + // FulfillmentMessages: The collection of rich messages to present to the user. FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"` - - // FulfillmentText: The text to be pronounced to the user or shown on - // the screen. - // Note: This is a legacy field, `fulfillment_messages` should be - // preferred. + // FulfillmentText: The text to be pronounced to the user or shown on the + // screen. + // Note: This is a legacy field, `fulfillment_messages` should be preferred. FulfillmentText string `json:"fulfillmentText,omitempty"` - - // Intent: The intent that matched the conversational query. Some, - // not - // all fields are filled in this message, including but not limited - // to: + // Intent: The intent that matched the conversational query. Some, not + // all fields are filled in this message, including but not limited to: // `name`, `display_name`, `end_interaction` and `is_fallback`. Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"` - - // IntentDetectionConfidence: The intent detection confidence. Values - // range from 0.0 + // IntentDetectionConfidence: The intent detection confidence. Values range + // from 0.0 // (completely uncertain) to 1.0 (completely certain). // This value is for informational purpose only and is only used to // help match the best intent within the classification threshold. - // This value may change for the same end-user expression at any time - // due to a + // This value may change for the same end-user expression at any time due to + // a // model retraining or change in implementation. - // If there are `multiple knowledge_answers` messages, this value is set - // to + // If there are `multiple knowledge_answers` messages, this value is set to // the greatest `knowledgeAnswers.match_confidence` value in the list. IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"` - - // LanguageCode: The language that was triggered during intent - // detection. - // See - // [Language - // Support](https://cloud.google.com/dialogflow/docs/reference/ - // language) + // LanguageCode: The language that was triggered during intent detection. + // See Language + // Support (https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. LanguageCode string `json:"languageCode,omitempty"` - // OutputContexts: The collection of output contexts. If // applicable, // `output_contexts.parameters` contains entries with name - // `.original` containing the original parameter - // values + // `.original` containing the original parameter values // before the query. OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"` - // Parameters: The collection of extracted parameters. // // Depending on your protocol or client library language, this is a - // map, associative array, symbol table, dictionary, or JSON - // object + // map, associative array, symbol table, dictionary, or JSON object // composed of a collection of (MapKey, MapValue) pairs: // // - MapKey type: string @@ -3186,75 +2563,59 @@ type GoogleCloudDialogflowV2QueryResult struct { // map from composite entity property names to property values // - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` - // QueryText: The original conversational query text: // - // - If natural language text was provided as input, `query_text` - // contains + // - If natural language text was provided as input, `query_text` contains // a copy of the input. - // - If natural language speech audio was provided as input, - // `query_text` - // contains the speech recognition result. If speech recognizer - // produced + // - If natural language speech audio was provided as input, `query_text` + // contains the speech recognition result. If speech recognizer produced // multiple alternatives, a particular one is picked. - // - If automatic spell correction is enabled, `query_text` will contain - // the + // - If automatic spell correction is enabled, `query_text` will contain the // corrected user input. QueryText string `json:"queryText,omitempty"` - - // SentimentAnalysisResult: The sentiment analysis result, which depends - // on the + // SentimentAnalysisResult: The sentiment analysis result, which depends on + // the // `sentiment_analysis_request_config` specified in the request. SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"` - - // SpeechRecognitionConfidence: The Speech recognition confidence - // between 0.0 and 1.0. A higher number + // SpeechRecognitionConfidence: The Speech recognition confidence between 0.0 + // and 1.0. A higher number // indicates an estimated greater likelihood that the recognized words // are // correct. The default of 0.0 is a sentinel value indicating that // confidence // was not set. // - // This field is not guaranteed to be accurate or set. In particular - // this - // field isn't set for StreamingDetectIntent since the streaming - // endpoint has + // This field is not guaranteed to be accurate or set. In particular this + // field isn't set for StreamingDetectIntent since the streaming endpoint + // has // separate confidence estimates per portion of the audio // in // StreamingRecognitionResult. SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"` - - // WebhookPayload: If the query was fulfilled by a webhook call, this - // field is set to the + // WebhookPayload: If the query was fulfilled by a webhook call, this field is + // set to the // value of the `payload` field returned in the webhook response. WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"` - - // WebhookSource: If the query was fulfilled by a webhook call, this - // field is set to the + // WebhookSource: If the query was fulfilled by a webhook call, this field is + // set to the // value of the `source` field returned in the webhook response. WebhookSource string `json:"webhookSource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2QueryResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error { @@ -3273,41 +2634,34 @@ func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error { return nil } -// GoogleCloudDialogflowV2Sentiment: The sentiment, such as -// positive/negative feeling or association, for a unit +// GoogleCloudDialogflowV2Sentiment: The sentiment, such as positive/negative +// feeling or association, for a unit // of analysis, such as the query text. type GoogleCloudDialogflowV2Sentiment struct { - // Magnitude: A non-negative number in the [0, +inf) range, which - // represents the absolute + // Magnitude: A non-negative number in the [0, +inf) range, which represents + // the absolute // magnitude of sentiment, regardless of score (positive or negative). Magnitude float64 `json:"magnitude,omitempty"` - // Score: Sentiment score between -1.0 (negative sentiment) and 1.0 // (positive // sentiment). Score float64 `json:"score,omitempty"` - // ForceSendFields is a list of field names (e.g. "Magnitude") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Magnitude") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Magnitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2Sentiment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error { @@ -3326,92 +2680,77 @@ func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error { return nil } -// GoogleCloudDialogflowV2SentimentAnalysisResult: The result of -// sentiment analysis as configured -// by +// GoogleCloudDialogflowV2SentimentAnalysisResult: The result of sentiment +// analysis as configured by // `sentiment_analysis_request_config`. type GoogleCloudDialogflowV2SentimentAnalysisResult struct { // QueryTextSentiment: The sentiment analysis result for `query_text`. QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "QueryTextSentiment") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "QueryTextSentiment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "QueryTextSentiment") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "QueryTextSentiment") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2SessionEntityType: Represents a session entity // type. // -// Extends or replaces a custom entity type at the user session level -// (we +// Extends or replaces a custom entity type at the user session level (we // refer to the entity types defined at the agent level as "custom // entity // types"). // -// Note: session entity types apply to all queries, regardless of the -// language. +// Note: session entity types apply to all queries, regardless of the language. type GoogleCloudDialogflowV2SessionEntityType struct { - // Entities: Required. The collection of entities associated with this - // session entity + // Entities: Required. The collection of entities associated with this session + // entity // type. Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"` - - // EntityOverrideMode: Required. Indicates whether the additional data - // should override or + // EntityOverrideMode: Required. Indicates whether the additional data should + // override or // supplement the custom entity type definition. // // Possible values: - // "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value - // should be never used. - // "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session - // entities overrides the collection of entities + // "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value should be + // never used. + // "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session entities + // overrides the collection of entities // in the corresponding custom entity type. - // "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session - // entities extends the collection of entities in + // "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session entities + // extends the collection of entities in // the corresponding custom entity type. // // Note: Even in this override mode calls to // `ListSessionEntityTypes`, // `GetSessionEntityType`, `CreateSessionEntityType` // and - // `UpdateSessionEntityType` only return the additional entities added - // in - // this session entity type. If you want to get the supplemented - // list, + // `UpdateSessionEntityType` only return the additional entities added in + // this session entity type. If you want to get the supplemented list, // please call EntityTypes.GetEntityType on the custom entity type // and merge. EntityOverrideMode string `json:"entityOverrideMode,omitempty"` - // Name: Required. The unique identifier of this session entity type. // Format: - // `projects//agent/sessions//entityTypes//agent/sessions//entityTypes/`, or `projects//agent/environments//users//sessions//entityTypes/`. - // If `Environment ID` is not specified, we assume default - // 'draft' + // If `Environment ID` is not specified, we assume default 'draft' // environment. If `User ID` is not specified, we assume default '-' // user. // @@ -3419,90 +2758,70 @@ type GoogleCloudDialogflowV2SessionEntityType struct { // entity // type in the same agent that will be overridden or supplemented. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Entities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2SessionEntityType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2WebhookRequest: The request message for a -// webhook call. +// GoogleCloudDialogflowV2WebhookRequest: The request message for a webhook +// call. type GoogleCloudDialogflowV2WebhookRequest struct { - // OriginalDetectIntentRequest: Optional. The contents of the original - // request that was passed to + // OriginalDetectIntentRequest: Optional. The contents of the original request + // that was passed to // `[Streaming]DetectIntent` call. OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"` - - // QueryResult: The result of the conversational query or event - // processing. Contains the + // QueryResult: The result of the conversational query or event processing. + // Contains the // same value as `[Streaming]DetectIntentResponse.query_result`. QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"` - - // ResponseId: The unique identifier of the response. Contains the same - // value as + // ResponseId: The unique identifier of the response. Contains the same value + // as // `[Streaming]DetectIntentResponse.response_id`. ResponseId string `json:"responseId,omitempty"` - // Session: The unique identifier of detectIntent request session. - // Can be used to identify end-user inside webhook - // implementation. + // Can be used to identify end-user inside webhook implementation. // Format: `projects//agent/sessions/`, // or // `projects//agent/environments//users//sessions/`. Session string `json:"session,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "OriginalDetectIntentRequest") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "OriginalDetectIntentRequest") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "OriginalDetectIntentRequest") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "OriginalDetectIntentRequest") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2WebhookRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2WebhookResponse: The response message for a -// webhook call. +// GoogleCloudDialogflowV2WebhookResponse: The response message for a webhook +// call. // -// This response is validated by the Dialogflow server. If validation -// fails, -// an error will be returned in the QueryResult.diagnostic_info -// field. +// This response is validated by the Dialogflow server. If validation fails, +// an error will be returned in the QueryResult.diagnostic_info field. // Setting JSON fields to an empty value with the wrong type is a common // error. // To avoid this error: @@ -3512,34 +2831,27 @@ func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) { // - Use `[]` or `null` for empty arrays // // For more information, see the -// [Protocol Buffers -// Language -// Guide](https://developers.google.com/protocol-buffers/docs/pr -// oto3#json). +// Protocol Buffers Language +// Guide (https://developers.google.com/protocol-buffers/docs/proto3#json). type GoogleCloudDialogflowV2WebhookResponse struct { // FollowupEventInput: Optional. Invokes the supplied events. // When this field is set, Dialogflow ignores the // `fulfillment_text`, // `fulfillment_messages`, and `payload` fields. FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"` - - // FulfillmentMessages: Optional. The rich response messages intended - // for the end-user. + // FulfillmentMessages: Optional. The rich response messages intended for the + // end-user. // When provided, Dialogflow uses this field to // populate - // QueryResult.fulfillment_messages sent to the integration or API - // caller. + // QueryResult.fulfillment_messages sent to the integration or API caller. FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"` - // FulfillmentText: Optional. The text response message intended for the // end-user. - // It is recommended to use `fulfillment_messages.text.text[0]` - // instead. + // It is recommended to use `fulfillment_messages.text.text[0]` instead. // When provided, Dialogflow uses this field to // populate // QueryResult.fulfillment_text sent to the integration or API caller. FulfillmentText string `json:"fulfillmentText,omitempty"` - // OutputContexts: Optional. The collection of output contexts that will // overwrite currently // active contexts for the session and reset their lifespans. @@ -3547,28 +2859,22 @@ type GoogleCloudDialogflowV2WebhookResponse struct { // populate // QueryResult.output_contexts sent to the integration or API caller. OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"` - - // Payload: Optional. This field can be used to pass custom data from - // your webhook to the + // Payload: Optional. This field can be used to pass custom data from your + // webhook to the // integration or API caller. Arbitrary JSON objects are supported. // When provided, Dialogflow uses this field to // populate - // QueryResult.webhook_payload sent to the integration or API - // caller. + // QueryResult.webhook_payload sent to the integration or API caller. // This field is also used by the - // [Google - // Assistant - // integration](https://cloud.google.com/dialogflow/docs/integr - // ations/aog) + // Google Assistant + // integration (https://cloud.google.com/dialogflow/docs/integrations/aog) // for rich response messages. - // See the format definition at [Google Assistant Dialogflow - // webhook - // format](https://developers.google.com/assistant/actions/build/ - // json/dialogflow-webhook-json) + // See the format definition at Google Assistant Dialogflow webhook + // format + // (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) Payload googleapi.RawMessage `json:"payload,omitempty"` - - // SessionEntityTypes: Optional. Additional session entity types to - // replace or extend developer + // SessionEntityTypes: Optional. Additional session entity types to replace or + // extend developer // entity types with. The entity synonyms apply to all languages and // persist // for the session. Setting this data from a webhook overwrites @@ -3576,7 +2882,6 @@ type GoogleCloudDialogflowV2WebhookResponse struct { // `detectIntent`, // `streamingDetectIntent` or SessionEntityType management methods. SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"` - // Source: Optional. A custom field used to identify the webhook // source. // Arbitrary strings are supported. @@ -3584,177 +2889,138 @@ type GoogleCloudDialogflowV2WebhookResponse struct { // populate // QueryResult.webhook_source sent to the integration or API caller. Source string `json:"source,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FollowupEventInput") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FollowupEventInput") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FollowupEventInput") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FollowupEventInput") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2WebhookResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1AnnotatedConversationDataset: Represents -// an annotated conversation dataset. -// ConversationDataset can have multiple AnnotatedConversationDataset, -// each of +// GoogleCloudDialogflowV2beta1AnnotatedConversationDataset: Represents an +// annotated conversation dataset. +// ConversationDataset can have multiple AnnotatedConversationDataset, each +// of // them represents one result from one annotation // task. // AnnotatedConversationDataset can only be generated from annotation // task, // which will be triggered by LabelConversation. type GoogleCloudDialogflowV2beta1AnnotatedConversationDataset struct { - // CompletedExampleCount: Output only. Number of examples that have - // annotations in the annotated + // CompletedExampleCount: Output only. Number of examples that have annotations + // in the annotated // conversation dataset. CompletedExampleCount int64 `json:"completedExampleCount,omitempty,string"` - // CreateTime: Output only. Creation time of this annotated conversation // dataset. CreateTime string `json:"createTime,omitempty"` - // Description: Optional. The description of the annotated conversation // dataset. // Maximum of 10000 bytes. Description string `json:"description,omitempty"` - // DisplayName: Required. The display name of the annotated conversation // dataset. - // It's specified when user starts an annotation task. Maximum of 64 - // bytes. + // It's specified when user starts an annotation task. Maximum of 64 bytes. DisplayName string `json:"displayName,omitempty"` - - // ExampleCount: Output only. Number of examples in the annotated - // conversation dataset. + // ExampleCount: Output only. Number of examples in the annotated conversation + // dataset. ExampleCount int64 `json:"exampleCount,omitempty,string"` - // Name: Output only. AnnotatedConversationDataset resource name. // Format: // `projects//conversationDatasets//annotatedConversationDatasets/` + // ID>/annotatedConversationDatasets/` Name string `json:"name,omitempty"` - - // QuestionTypeName: Output only. Question type name that identifies a - // labeling task. - // A question is a single task that a worker answers. A question type is - // set + // QuestionTypeName: Output only. Question type name that identifies a labeling + // task. + // A question is a single task that a worker answers. A question type is set // of related questions. Each question belongs to a particular question // type. - // It can be used in CrowdCompute UI to filter and manage labeling - // tasks. + // It can be used in CrowdCompute UI to filter and manage labeling tasks. QuestionTypeName string `json:"questionTypeName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CompletedExampleCount") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CompletedExampleCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CompletedExampleCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1AnnotatedConversationDataset) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1AnnotatedConversationDataset) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1AnnotatedConversationDataset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The -// response message for EntityTypes.BatchUpdateEntityTypes. +// GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The response +// message for EntityTypes.BatchUpdateEntityTypes. type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct { // EntityTypes: The collection of updated or created entity types. EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"` - // ForceSendFields is a list of field names (e.g. "EntityTypes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EntityTypes") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EntityTypes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response -// message for Intents.BatchUpdateIntents. +// GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response message +// for Intents.BatchUpdateIntents. type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct { // Intents: The collection of updated or created intents. Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Intents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Intents") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Intents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Intents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1Context: Represents a context. type GoogleCloudDialogflowV2beta1Context struct { - // LifespanCount: Optional. The number of conversational query requests - // after which the + // LifespanCount: Optional. The number of conversational query requests after + // which the // context expires. The default is `0`. If set to `0`, the context // expires - // immediately. Contexts expire automatically after 20 minutes if - // there + // immediately. Contexts expire automatically after 20 minutes if there // are no matching queries. LifespanCount int64 `json:"lifespanCount,omitempty"` - // Name: Required. The unique identifier of the context. // Format: // `projects//agent/sessions//contexts//agent/entityTypes/`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AutoExpansionMode") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AutoExpansionMode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutoExpansionMode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AutoExpansionMode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1EntityType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for -// an associated entity type. +// GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for an +// associated entity type. type GoogleCloudDialogflowV2beta1EntityTypeEntity struct { - // Synonyms: Required. A collection of value synonyms. For example, if - // the entity type + // Synonyms: Required. A collection of value synonyms. For example, if the + // entity type // is *vegetable*, and `value` is *scallions*, a synonym could be // *green // onions*. // // For `KIND_LIST` entity types: // - // * This collection must contain exactly one synonym equal to - // `value`. + // * This collection must contain exactly one synonym equal to `value`. Synonyms []string `json:"synonyms,omitempty"` - - // Value: Required. The primary value associated with this entity - // entry. + // Value: Required. The primary value associated with this entity entry. // For example, if the entity type is *vegetable*, the value could // be // *scallions*. @@ -3929,63 +3166,49 @@ type GoogleCloudDialogflowV2beta1EntityTypeEntity struct { // // For `KIND_LIST` entity types: // - // * A string that can contain references to other entity types (with - // or + // * A string that can contain references to other entity types (with or // without aliases). Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Synonyms") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Synonyms") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Synonyms") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1EventInput: Events allow for matching -// intents by event name instead of the natural +// GoogleCloudDialogflowV2beta1EventInput: Events allow for matching intents by +// event name instead of the natural // language input. For instance, input `` can trigger a personalized welcome // response. -// The parameter `name` may be used by the agent in the -// response: +// The parameter `name` may be used by the agent in the response: // "Hello #welcome_event.name! What can I do for you today?". type GoogleCloudDialogflowV2beta1EventInput struct { - // LanguageCode: Required. The language of this query. See - // [Language - // Support](https://cloud.google.com/dialogflow/docs/reference/ - // language) - // for a list of the currently supported language codes. Note that - // queries in - // the same session do not necessarily need to specify the same - // language. + // LanguageCode: Required. The language of this query. See Language + // Support (https://cloud.google.com/dialogflow/docs/reference/language) + // for a list of the currently supported language codes. Note that queries + // in + // the same session do not necessarily need to specify the same language. LanguageCode string `json:"languageCode,omitempty"` - // Name: Required. The unique identifier of the event. Name string `json:"name,omitempty"` - // Parameters: The collection of parameters associated with the // event. // // Depending on your protocol or client library language, this is a - // map, associative array, symbol table, dictionary, or JSON - // object + // map, associative array, symbol table, dictionary, or JSON object // composed of a collection of (MapKey, MapValue) pairs: // // - MapKey type: string @@ -3998,78 +3221,62 @@ type GoogleCloudDialogflowV2beta1EventInput struct { // map from composite entity property names to property values // - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "LanguageCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LanguageCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LanguageCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1EventInput - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message -// for Agents.ExportAgent. +// GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message for +// Agents.ExportAgent. type GoogleCloudDialogflowV2beta1ExportAgentResponse struct { // AgentContent: Zip compressed raw byte content for agent. AgentContent string `json:"agentContent,omitempty"` - - // AgentUri: The URI to a file containing the exported agent. This field - // is populated + // AgentUri: The URI to a file containing the exported agent. This field is + // populated // only if `agent_uri` is specified in `ExportAgentRequest`. AgentUri string `json:"agentUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgentContent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AgentContent") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AgentContent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1Intent: Represents an intent. -// Intents convert a number of user expressions or patterns into an -// action. An +// Intents convert a number of user expressions or patterns into an action. +// An // action is an extraction of a user command or sentence semantics. type GoogleCloudDialogflowV2beta1Intent struct { - // Action: Optional. The name of the action associated with the - // intent. + // Action: Optional. The name of the action associated with the intent. // Note: The action name must not contain whitespaces. Action string `json:"action,omitempty"` - - // DefaultResponsePlatforms: Optional. The list of platforms for which - // the first responses will be - // copied from the messages in PLATFORM_UNSPECIFIED (i.e. default - // platform). + // DefaultResponsePlatforms: Optional. The list of platforms for which the + // first responses will be + // copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). // // Possible values: // "PLATFORM_UNSPECIFIED" - Not specified. @@ -4083,65 +3290,51 @@ type GoogleCloudDialogflowV2beta1Intent struct { // "ACTIONS_ON_GOOGLE" - Google Assistant // See [Dialogflow // webhook - // format](https://developers.google.com/assistant/actions/build/ - // json/dialogflow-webhook-json) + // format](https://developers.google.com/assistant/actions/build/json/dialogflow + // -webhook-json) // "TELEPHONY" - Telephony Gateway. // "GOOGLE_HANGOUTS" - Google Hangouts. DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"` - // DisplayName: Required. The name of this intent. DisplayName string `json:"displayName,omitempty"` - - // EndInteraction: Optional. Indicates that this intent ends an - // interaction. Some integrations + // EndInteraction: Optional. Indicates that this intent ends an interaction. + // Some integrations // (e.g., Actions on Google or Dialogflow phone gateway) use this // information // to close interaction with an end user. Default is false. EndInteraction bool `json:"endInteraction,omitempty"` - - // Events: Optional. The collection of event names that trigger the - // intent. + // Events: Optional. The collection of event names that trigger the intent. // If the collection of input contexts is not empty, all of the contexts // must // be present in the active user session for an event to trigger this // intent. // Event names are limited to 150 characters. Events []string `json:"events,omitempty"` - - // FollowupIntentInfo: Output only. Information about all followup - // intents that have this intent as - // a direct or indirect parent. We populate this field only in the - // output. + // FollowupIntentInfo: Output only. Information about all followup intents that + // have this intent as + // a direct or indirect parent. We populate this field only in the output. FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"` - - // InputContextNames: Optional. The list of context names required for - // this intent to be + // InputContextNames: Optional. The list of context names required for this + // intent to be // triggered. - // Format: `projects//agent/sessions/-/contexts/`. + // Format: `projects//agent/sessions/-/contexts/`. InputContextNames []string `json:"inputContextNames,omitempty"` - // IsFallback: Optional. Indicates whether this is a fallback intent. IsFallback bool `json:"isFallback,omitempty"` - // Messages: Optional. The collection of rich messages corresponding to // the // `Response` field in the Dialogflow console. Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"` - - // MlDisabled: Optional. Indicates whether Machine Learning is disabled - // for the intent. - // Note: If `ml_disabled` setting is set to true, then this intent is - // not + // MlDisabled: Optional. Indicates whether Machine Learning is disabled for the + // intent. + // Note: If `ml_disabled` setting is set to true, then this intent is not // taken into account during inference in `ML ONLY` match mode. // Also, // auto-markup in the UI is turned off. MlDisabled bool `json:"mlDisabled,omitempty"` - - // MlEnabled: Optional. Indicates whether Machine Learning is enabled - // for the intent. - // Note: If `ml_enabled` setting is set to false, then this intent is - // not + // MlEnabled: Optional. Indicates whether Machine Learning is enabled for the + // intent. + // Note: If `ml_enabled` setting is set to false, then this intent is not // taken into account during inference in `ML ONLY` match mode. // Also, // auto-markup in the UI is turned off. @@ -4154,31 +3347,26 @@ type GoogleCloudDialogflowV2beta1Intent struct { // - After April 15th, 2018 the default is: // ml_enabled = true / ml_disabled = false. MlEnabled bool `json:"mlEnabled,omitempty"` - // Name: Optional. The unique identifier of this intent. // Required for Intents.UpdateIntent and // Intents.BatchUpdateIntents // methods. // Format: `projects//agent/intents/`. Name string `json:"name,omitempty"` - - // OutputContexts: Optional. The collection of contexts that are - // activated when the intent + // OutputContexts: Optional. The collection of contexts that are activated when + // the intent // is matched. Context messages in this collection should not set // the // parameters field. Setting the `lifespan_count` to 0 will reset the // context // when the intent is matched. - // Format: `projects//agent/sessions/-/contexts/`. + // Format: `projects//agent/sessions/-/contexts/`. OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"` - - // Parameters: Optional. The collection of parameters associated with - // the intent. + // Parameters: Optional. The collection of parameters associated with the + // intent. Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"` - - // ParentFollowupIntentName: Optional. The unique identifier of the - // parent intent in the + // ParentFollowupIntentName: Optional. The unique identifier of the parent + // intent in the // chain of followup intents. You can set this field when creating an // intent, // for example with CreateIntent or @@ -4188,9 +3376,8 @@ type GoogleCloudDialogflowV2beta1Intent struct { // It identifies the parent followup intent. // Format: `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` - - // Priority: Optional. The priority of this intent. Higher numbers - // represent higher + // Priority: Optional. The priority of this intent. Higher numbers represent + // higher // priorities. // // - If the supplied value is unspecified or 0, the service @@ -4199,130 +3386,101 @@ type GoogleCloudDialogflowV2beta1Intent struct { // - If the supplied value is negative, the intent is ignored // in runtime detect intent requests. Priority int64 `json:"priority,omitempty"` - - // ResetContexts: Optional. Indicates whether to delete all contexts in - // the current + // ResetContexts: Optional. Indicates whether to delete all contexts in the + // current // session when this intent is matched. ResetContexts bool `json:"resetContexts,omitempty"` - - // RootFollowupIntentName: Output only. The unique identifier of the - // root intent in the chain of - // followup intents. It identifies the correct followup intents chain - // for + // RootFollowupIntentName: Output only. The unique identifier of the root + // intent in the chain of + // followup intents. It identifies the correct followup intents chain for // this intent. // // Format: `projects//agent/intents/`. RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"` - // TrainingPhrases: Optional. The collection of examples that the agent // is // trained on. TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"` - - // WebhookState: Optional. Indicates whether webhooks are enabled for - // the intent. + // WebhookState: Optional. Indicates whether webhooks are enabled for the + // intent. // // Possible values: - // "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and - // in the intent. - // "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in - // the intent. - // "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in - // the agent and in the intent. Also, each slot + // "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and in the + // intent. + // "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in the + // intent. + // "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in the agent + // and in the intent. Also, each slot // filling prompt is forwarded to the webhook. WebhookState string `json:"webhookState,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1Intent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a -// single followup intent in the chain. +// GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a single +// followup intent in the chain. type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct { - // FollowupIntentName: The unique identifier of the followup - // intent. + // FollowupIntentName: The unique identifier of the followup intent. // Format: `projects//agent/intents/`. FollowupIntentName string `json:"followupIntentName,omitempty"` - - // ParentFollowupIntentName: The unique identifier of the followup - // intent's parent. + // ParentFollowupIntentName: The unique identifier of the followup intent's + // parent. // Format: `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FollowupIntentName") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FollowupIntentName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FollowupIntentName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FollowupIntentName") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the -// `Response` field in the Dialogflow console. +// GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the `Response` +// field in the Dialogflow console. type GoogleCloudDialogflowV2beta1IntentMessage struct { // BasicCard: Displays a basic card for Actions on Google. BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"` - // BrowseCarouselCard: Browse carousel card for Actions on Google. BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"` - // Card: Displays a card. Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"` - // CarouselSelect: Displays a carousel card for Actions on Google. CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"` - // Image: Displays an image. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` - // LinkOutSuggestion: Displays a link out suggestion chip for Actions on // Google. LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"` - // ListSelect: Displays a list card for Actions on Google. ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"` - // MediaContent: The media content card for Actions on Google. MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"` - // Payload: A custom platform-specific response. Payload googleapi.RawMessage `json:"payload,omitempty"` - // Platform: Optional. The platform that this message is intended for. // // Possible values: @@ -4337,298 +3495,229 @@ type GoogleCloudDialogflowV2beta1IntentMessage struct { // "ACTIONS_ON_GOOGLE" - Google Assistant // See [Dialogflow // webhook - // format](https://developers.google.com/assistant/actions/build/ - // json/dialogflow-webhook-json) + // format](https://developers.google.com/assistant/actions/build/json/dialogflow + // -webhook-json) // "TELEPHONY" - Telephony Gateway. // "GOOGLE_HANGOUTS" - Google Hangouts. Platform string `json:"platform,omitempty"` - // QuickReplies: Displays quick replies. QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"` - // RbmCarouselRichCard: Rich Business Messaging (RBM) carousel rich card // response. RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"` - - // RbmStandaloneRichCard: Standalone Rich Business Messaging (RBM) rich - // card response. + // RbmStandaloneRichCard: Standalone Rich Business Messaging (RBM) rich card + // response. RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"` - // RbmText: Rich Business Messaging (RBM) text response. // // RBM allows businesses to send enriched and branded versions of SMS. // See // https://jibe.google.com/business-messaging. RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"` - // SimpleResponses: Returns a voice or text-only response for Actions on // Google. SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"` - // Suggestions: Displays suggestion chips for Actions on Google. Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"` - // TableCard: Table card for Actions on Google. TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"` - // TelephonyPlayAudio: Plays audio from a file in Telephony Gateway. TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"` - // TelephonySynthesizeSpeech: Synthesizes speech in Telephony Gateway. TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"` - // TelephonyTransferCall: Transfers the call in Telephony Gateway. TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"` - // Text: Returns a text response. Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "BasicCard") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BasicCard") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BasicCard") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card -// message. Useful for displaying information. +// GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card message. +// Useful for displaying information. type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"` - - // FormattedText: Required, unless image is present. The body text of - // the card. + // FormattedText: Required, unless image is present. The body text of the card. FormattedText string `json:"formattedText,omitempty"` - // Image: Optional. The image for the card. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` - // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` - // Title: Optional. The title of the card. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buttons") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Buttons") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Buttons") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button -// object that appears at the bottom of a card. +// GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button object +// that appears at the bottom of a card. type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct { - // OpenUriAction: Required. Action to take when a user taps on the - // button. + // OpenUriAction: Required. Action to take when a user taps on the button. OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"` - // Title: Required. The title of the button. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "OpenUriAction") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OpenUriAction") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OpenUriAction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction: -// -// Opens the given URI. +// GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction: Opens +// the given URI. type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct { // Uri: Required. The HTTP or HTTPS scheme URI. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse -// Carousel Card for Actions on +// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse Carousel +// Card for Actions on // Google. -// https://developers.google.com/actions/assistant/responses#brow -// sing_carousel +// https://developers.google.com/actions/assistant/responses#browsing_carousel type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct { - // ImageDisplayOptions: Optional. Settings for displaying the image. - // Applies to every image in + // ImageDisplayOptions: Optional. Settings for displaying the image. Applies to + // every image in // items. // // Possible values: - // "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the - // image and the image container with gray + // "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the image and + // the image container with gray // bars. - // "GRAY" - Fill the gaps between the image and the image container - // with gray + // "GRAY" - Fill the gaps between the image and the image container with + // gray // bars. - // "WHITE" - Fill the gaps between the image and the image container - // with white + // "WHITE" - Fill the gaps between the image and the image container with + // white // bars. - // "CROPPED" - Image is scaled such that the image width and height - // match or exceed - // the container dimensions. This may crop the top and bottom of - // the - // image if the scaled image height is greater than the - // container - // height, or crop the left and right of the image if the scaled - // image - // width is greater than the container width. This is similar to - // "Zoom + // "CROPPED" - Image is scaled such that the image width and height match or + // exceed + // the container dimensions. This may crop the top and bottom of the + // image if the scaled image height is greater than the container + // height, or crop the left and right of the image if the scaled image + // width is greater than the container width. This is similar to "Zoom // Mode" on a widescreen TV when playing a 4:3 video. - // "BLURRED_BACKGROUND" - Pad the gaps between image and image frame - // with a blurred copy of the + // "BLURRED_BACKGROUND" - Pad the gaps between image and image frame with a + // blurred copy of the // same image. ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"` - - // Items: Required. List of items in the Browse Carousel Card. Minimum - // of two + // Items: Required. List of items in the Browse Carousel Card. Minimum of + // two // items, maximum of ten. Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageDisplayOptions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ImageDisplayOptions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou -// selCardItem: Browsing carousel tile +// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCard +// Item: Browsing carousel tile type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct { - // Description: Optional. Description of the carousel item. Maximum of - // four lines of + // Description: Optional. Description of the carousel item. Maximum of four + // lines of // text. Description string `json:"description,omitempty"` - // Footer: Optional. Text that appears at the bottom of the Browse // Carousel // Card. Maximum of one line of text. Footer string `json:"footer,omitempty"` - // Image: Optional. Hero image for the carousel item. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` - // OpenUriAction: Required. Action to present to the user. OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"` - - // Title: Required. Title of the carousel item. Maximum of two lines of - // text. + // Title: Required. Title of the carousel item. Maximum of two lines of text. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou -// selCardItemOpenUrlAction: Actions on Google action to open a given -// url. +// GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCard +// ItemOpenUrlAction: Actions on Google action to open a given url. type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct { // Url: Required. URL Url string `json:"url,omitempty"` - // UrlTypeHint: Optional. Specifies the type of viewer that is used when // opening // the URL. Defaults to opening via web browser. @@ -4636,104 +3725,81 @@ type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCa // Possible values: // "URL_TYPE_HINT_UNSPECIFIED" - Unspecified // "AMP_ACTION" - Url would be an amp action - // "AMP_CONTENT" - URL that points directly to AMP content, or to a - // canonical URL + // "AMP_CONTENT" - URL that points directly to AMP content, or to a canonical + // URL // which refers to AMP content via . UrlTypeHint string `json:"urlTypeHint,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageCard: The card response -// message. +// GoogleCloudDialogflowV2beta1IntentMessageCard: The card response message. type GoogleCloudDialogflowV2beta1IntentMessageCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"` - // ImageUri: Optional. The public URI to an image file for the card. ImageUri string `json:"imageUri,omitempty"` - // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` - // Title: Optional. The title of the card. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buttons") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Buttons") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Buttons") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional. -// Contains information about a button. +// GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional. Contains +// information about a button. type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct { - // Postback: Optional. The text to send back to the Dialogflow API or a - // URI to + // Postback: Optional. The text to send back to the Dialogflow API or a URI + // to // open. Postback string `json:"postback,omitempty"` - // Text: Optional. The text to show on the button. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Postback") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Postback") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Postback") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect: The card for @@ -4741,407 +3807,315 @@ func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]b type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct { // Items: Required. Carousel items. Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item -// in the carousel. +// GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item in the +// carousel. type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct { // Description: Optional. The body text of the card. Description string `json:"description,omitempty"` - // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` - // Info: Required. Additional info about the option item. Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"` - // Title: Required. Title of the carousel item. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column -// properties for TableCard. +// GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column properties +// for TableCard. type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct { // Header: Required. Column heading. Header string `json:"header,omitempty"` - - // HorizontalAlignment: Optional. Defines text alignment for all cells - // in this column. + // HorizontalAlignment: Optional. Defines text alignment for all cells in this + // column. // // Possible values: - // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading - // edge of the column. + // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading edge + // of the column. // "LEADING" - Text is aligned to the leading edge of the column. // "CENTER" - Text is centered in the column. // "TRAILING" - Text is aligned to the trailing edge of the column. HorizontalAlignment string `json:"horizontalAlignment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageImage: The image response -// message. +// GoogleCloudDialogflowV2beta1IntentMessageImage: The image response message. type GoogleCloudDialogflowV2beta1IntentMessageImage struct { // AccessibilityText: A text description of the image to be used for // accessibility, - // e.g., screen readers. Required if image_uri is set for - // CarouselSelect. + // e.g., screen readers. Required if image_uri is set for CarouselSelect. AccessibilityText string `json:"accessibilityText,omitempty"` - // ImageUri: Optional. The public URI to an image file. ImageUri string `json:"imageUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AccessibilityText") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AccessibilityText") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessibilityText") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AccessibilityText") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The -// suggestion chip message that allows the user to jump out to the -// app +// GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The suggestion +// chip message that allows the user to jump out to the app // or website associated with this agent. type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct { - // DestinationName: Required. The name of the app or site this chip is - // linking to. + // DestinationName: Required. The name of the app or site this chip is linking + // to. DestinationName string `json:"destinationName,omitempty"` - // Uri: Required. The URI of the app or site to open when the user taps // the // suggestion chip. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "DestinationName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DestinationName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DestinationName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for -// presenting a list of options to select from. +// GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for presenting +// a list of options to select from. type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct { // Items: Required. List items. Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"` - // Subtitle: Optional. Subtitle of the list. Subtitle string `json:"subtitle,omitempty"` - // Title: Optional. The overall title of the list. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in -// the list. +// GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in the +// list. type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct { // Description: Optional. The main text describing the item. Description string `json:"description,omitempty"` - // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` - // Info: Required. Additional information about this option. Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"` - // Title: Required. The title of the list item. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media -// content card for Actions on Google. +// GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media content +// card for Actions on Google. type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct { // MediaObjects: Required. List of media objects. MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"` - // MediaType: Optional. What type of media is the content (ie "audio"). // // Possible values: // "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified. // "AUDIO" - Response media type is audio. MediaType string `json:"mediaType,omitempty"` - // ForceSendFields is a list of field names (e.g. "MediaObjects") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MediaObjects") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MediaObjects") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObje -// ct: Response media object for media content card. +// GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject: +// Response media object for media content card. type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct { // ContentUrl: Required. Url where the media is stored. ContentUrl string `json:"contentUrl,omitempty"` - // Description: Optional. Description of media card. Description string `json:"description,omitempty"` - // Icon: Optional. Icon to display above media content. Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"` - // LargeImage: Optional. Image to display above media content. LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"` - // Name: Required. Name of media card. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentUrl") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContentUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick -// replies response message. +// GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick replies +// response message. type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct { // QuickReplies: Optional. The collection of quick replies. QuickReplies []string `json:"quickReplies,omitempty"` - // Title: Optional. The title of the collection of quick replies. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "QuickReplies") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "QuickReplies") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "QuickReplies") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich -// Business Messaging (RBM) Card content +// GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich Business +// Messaging (RBM) Card content type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct { - // Description: Optional. Description of the card (at most 2000 - // bytes). + // Description: Optional. Description of the card (at most 2000 bytes). // // At least one of the title, description or media must be set. Description string `json:"description,omitempty"` - - // Media: Optional. However at least one of the title, description or - // media must + // Media: Optional. However at least one of the title, description or media + // must // be set. Media (image, GIF or a video) to include in the card. Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"` - // Suggestions: Optional. List of suggestions to include in the card. Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"` - // Title: Optional. Title of the card (at most 200 bytes). // // At least one of the title, description or media must be set. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia: Rich @@ -5166,84 +4140,65 @@ func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct { // FileUri: Required. Publicly reachable URI of the file. The RBM // platform - // determines the MIME type of the file from the content-type field - // in - // the HTTP headers when the platform fetches the file. The - // content-type + // determines the MIME type of the file from the content-type field in + // the HTTP headers when the platform fetches the file. The content-type // field must be present and accurate in the HTTP response from the URL. FileUri string `json:"fileUri,omitempty"` - - // Height: Required for cards with vertical orientation. The height of - // the media - // within a rich card with a vertical layout. - // (https://goo.gl/NeFCjz). - // For a standalone card with horizontal layout, height is - // not + // Height: Required for cards with vertical orientation. The height of the + // media + // within a rich card with a vertical layout. (https://goo.gl/NeFCjz). + // For a standalone card with horizontal layout, height is not // customizable, and this field is ignored. // // Possible values: // "HEIGHT_UNSPECIFIED" - Not specified. // "SHORT" - 112 DP. // "MEDIUM" - 168 DP. - // "TALL" - 264 DP. Not available for rich card carousels when the - // card width + // "TALL" - 264 DP. Not available for rich card carousels when the card + // width // is set to small. Height string `json:"height,omitempty"` - - // ThumbnailUri: Optional. Publicly reachable URI of the thumbnail.If - // you don't - // provide a thumbnail URI, the RBM platform displays a - // blank - // placeholder thumbnail until the user's device downloads the - // file. - // Depending on the user's setting, the file may not - // download + // ThumbnailUri: Optional. Publicly reachable URI of the thumbnail.If you + // don't + // provide a thumbnail URI, the RBM platform displays a blank + // placeholder thumbnail until the user's device downloads the file. + // Depending on the user's setting, the file may not download // automatically and may require the user to tap a download button. ThumbnailUri string `json:"thumbnailUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FileUri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FileUri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel -// Rich Business Messaging (RBM) rich card. +// GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel Rich +// Business Messaging (RBM) rich card. // -// Rich cards allow you to respond to users with more vivid content, -// e.g. +// Rich cards allow you to respond to users with more vivid content, e.g. // with media and suggestions. // // For more details about RBM rich cards, please // see: -// https://developers.google.com/business-communications/rcs-busines -// s-messaging/guides/build/messages/send#rich-cards -// If you want to show a single card with more control over the -// layout, +// https://developers.google.com/business-communications/rcs-business-messaging/guides/build/messages/send#rich-cards +// If you want to show a single card with more control over the layout, // please use RbmStandaloneCard instead. type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct { - // CardContents: Required. The cards in the carousel. A carousel must - // have at least + // CardContents: Required. The cards in the carousel. A carousel must have at + // least // 2 cards and at most 10. CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"` - // CardWidth: Required. The width of the cards in the carousel. // // Possible values: @@ -5251,48 +4206,39 @@ type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct { // "SMALL" - 120 DP. Note that tall media cannot be used. // "MEDIUM" - 232 DP. CardWidth string `json:"cardWidth,omitempty"` - // ForceSendFields is a list of field names (e.g. "CardContents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CardContents") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CardContents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard: -// Standalone Rich Business Messaging (RBM) rich card. +// GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard: Standalone Rich +// Business Messaging (RBM) rich card. // -// Rich cards allow you to respond to users with more vivid content, -// e.g. +// Rich cards allow you to respond to users with more vivid content, e.g. // with media and suggestions. // // For more details about RBM rich cards, please // see: -// https://developers.google.com/business-communications/rcs-busines -// s-messaging/guides/build/messages/send#rich-cards +// https://developers.google.com/business-communications/rcs-business-messaging/guides/build/messages/send#rich-cards // You can group multiple rich cards into one using RbmCarouselCard // but // carousel cards will give you less control over the card layout. type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct { // CardContent: Required. Card content. CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"` - // CardOrientation: Required. Orientation of the card. // // Possible values: @@ -5300,7 +4246,6 @@ type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct { // "HORIZONTAL" - Horizontal layout. // "VERTICAL" - Vertical layout. CardOrientation string `json:"cardOrientation,omitempty"` - // ThumbnailImageAlignment: Required if orientation is horizontal. // Image preview alignment for standalone cards with horizontal layout. // @@ -5309,341 +4254,268 @@ type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct { // "LEFT" - Thumbnail preview is left-aligned. // "RIGHT" - Thumbnail preview is right-aligned. ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"` - // ForceSendFields is a list of field names (e.g. "CardContent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CardContent") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CardContent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich -// Business Messaging (RBM) suggested client-side action that the -// user +// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich Business +// Messaging (RBM) suggested client-side action that the user // can choose from the card. type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct { // Dial: Suggested client side action: Dial a phone number Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"` - // OpenUrl: Suggested client side action: Open a URI on device OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"` - // PostbackData: Opaque payload that the Dialogflow receives in a user // event - // when the user taps the suggested action. This data will be - // also + // when the user taps the suggested action. This data will be also // forwarded to webhook to allow performing custom business logic. PostbackData string `json:"postbackData,omitempty"` - // ShareLocation: Suggested client side action: Share user location ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"` - // Text: Text to display alongside the action. Text string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Dial") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Dial") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dial") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dial") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste -// dActionDial: Opens the user's default dialer app with the specified -// phone number +// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction +// Dial: Opens the user's default dialer app with the specified phone +// number // but does not dial automatically (https://goo.gl/ergbB2). type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct { // PhoneNumber: Required. The phone number to fill in the default dialer // app. - // This field should be in - // [E.164](https://en.wikipedia.org/wiki/E.164) - // format. An example of a correctly formatted phone - // number: + // This field should be in E.164 (https://en.wikipedia.org/wiki/E.164) + // format. An example of a correctly formatted phone number: // +15556767888. PhoneNumber string `json:"phoneNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "PhoneNumber") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PhoneNumber") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PhoneNumber") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste -// dActionOpenUri: Opens the user's default web browser app to the -// specified uri -// (https://goo.gl/6GLJD2). If the user has an app installed that -// is -// registered as the default handler for the URL, then this app will -// be +// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction +// OpenUri: Opens the user's default web browser app to the specified +// uri +// (https://goo.gl/6GLJD2). If the user has an app installed that is +// registered as the default handler for the URL, then this app will be // opened instead, and its icon will be used in the suggested action UI. type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct { // Uri: Required. The uri to open on the user device Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste -// dActionShareLocation: Opens the device's location chooser so the user -// can pick a location +// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction +// ShareLocation: Opens the device's location chooser so the user can pick a +// location // to send back to the agent (https://goo.gl/GXotJW). type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct { } -// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich -// Business Messaging (RBM) suggested reply that the user can -// click +// GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich Business +// Messaging (RBM) suggested reply that the user can click // instead of typing in their own response. type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct { // PostbackData: Opaque payload that the Dialogflow receives in a user // event - // when the user taps the suggested reply. This data will be - // also + // when the user taps the suggested reply. This data will be also // forwarded to webhook to allow performing custom business logic. PostbackData string `json:"postbackData,omitempty"` - // Text: Suggested reply text. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "PostbackData") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PostbackData") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PostbackData") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion: Rich Business // Messaging (RBM) suggestion. Suggestions allow user to -// easily select/click a predefined response or perform an action -// (like +// easily select/click a predefined response or perform an action (like // opening a web uri). type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct { // Action: Predefined client side actions that user can choose Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"` - // Reply: Predefined replies for user to select instead of typing Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business -// Messaging (RBM) text response with suggestions. +// GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business Messaging +// (RBM) text response with suggestions. type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct { // RbmSuggestion: Optional. One or more suggestions to show to the user. RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"` - // Text: Required. Text sent and displayed to the user. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "RbmSuggestion") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RbmSuggestion") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RbmSuggestion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional -// info about the select item for when it is triggered in a +// GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional info +// about the select item for when it is triggered in a // dialog. type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct { // Key: Required. A unique key that will be sent back to the agent if // this // response is given. Key string `json:"key,omitempty"` - - // Synonyms: Optional. A list of synonyms that can also be used to - // trigger this + // Synonyms: Optional. A list of synonyms that can also be used to trigger + // this // item in dialog. Synonyms []string `json:"synonyms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple -// response message containing speech or text. +// GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple response +// message containing speech or text. type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct { // DisplayText: Optional. The text to display. DisplayText string `json:"displayText,omitempty"` - // Ssml: One of text_to_speech or ssml must be provided. Structured // spoken // response to the user in the SSML format. Mutually exclusive // with // text_to_speech. Ssml string `json:"ssml,omitempty"` - - // TextToSpeech: One of text_to_speech or ssml must be provided. The - // plain text of the + // TextToSpeech: One of text_to_speech or ssml must be provided. The plain text + // of the // speech output. Mutually exclusive with ssml. TextToSpeech string `json:"textToSpeech,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayText") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayText") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayText") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The -// collection of simple response candidates. +// GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The collection of +// simple response candidates. // This message in `QueryResult.fulfillment_messages` // and // `WebhookResponse.fulfillment_messages` should contain only @@ -5652,133 +4524,103 @@ func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct { // SimpleResponses: Required. The list of simple responses. SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"` - // ForceSendFields is a list of field names (e.g. "SimpleResponses") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SimpleResponses") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "SimpleResponses") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion -// chip message that the user can tap to quickly post a reply +// GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion chip +// message that the user can tap to quickly post a reply // to the conversation. type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct { // Title: Required. The text shown the in the suggestion chip. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Title") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Title") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Title") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection -// of suggestions. +// GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection of +// suggestions. type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct { // Suggestions: Required. The list of suggested replies. Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Suggestions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Suggestions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Suggestions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for -// Actions on Google. +// GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for Actions +// on Google. type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct { // Buttons: Optional. List of buttons for the card. Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"` - - // ColumnProperties: Optional. Display properties for the columns in - // this table. + // ColumnProperties: Optional. Display properties for the columns in this + // table. ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"` - // Image: Optional. Image which should be displayed on the card. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` - // Rows: Optional. Rows in this table of data. Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"` - // Subtitle: Optional. Subtitle to the title. Subtitle string `json:"subtitle,omitempty"` - // Title: Required. Title of the card. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buttons") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Buttons") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Buttons") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageTableCardCell: Cell of @@ -5786,110 +4628,85 @@ func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]by type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct { // Text: Required. Text in this cell. Text string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Text") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Text") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Text") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of -// TableCard. +// GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of TableCard. type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct { // Cells: Optional. List of cells that make up this row. Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"` - - // DividerAfter: Optional. Whether to add a visual divider after this - // row. + // DividerAfter: Optional. Whether to add a visual divider after this row. DividerAfter bool `json:"dividerAfter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cells") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cells") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cells") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays -// audio from a file in Telephony Gateway. +// GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays audio +// from a file in Telephony Gateway. type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct { - // AudioUri: Required. URI to a Google Cloud Storage object containing - // the audio to - // play, e.g., "gs://bucket/object". The object must contain a - // single + // AudioUri: Required. URI to a Google Cloud Storage object containing the + // audio to + // play, e.g., "gs://bucket/object". The object must contain a single // channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. // // This object must be readable by the // `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service - // account + // Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` service account // where is the number of the Telephony Gateway // project // (usually the same as the Dialogflow agent project). If the Google // Cloud - // Storage bucket is in the Telephony Gateway project, this permission - // is + // Storage bucket is in the Telephony Gateway project, this permission is // added by default when enabling the Dialogflow V2 API. // - // For audio from other sources, consider using - // the + // For audio from other sources, consider using the // `TelephonySynthesizeSpeech` message with SSML. AudioUri string `json:"audioUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudioUri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudioUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AudioUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech: @@ -5902,179 +4719,140 @@ func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSO // `DetectIntentResponse.output_audio_config` which can either be set // at request-level or can come from the agent-level synthesizer config. type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct { - // Ssml: The SSML to be synthesized. For more information, - // see - // [SSML](https://developers.google.com/actions/reference/ssml). + // Ssml: The SSML to be synthesized. For more information, see + // SSML (https://developers.google.com/actions/reference/ssml). Ssml string `json:"ssml,omitempty"` - // Text: The raw text to be synthesized. Text string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Ssml") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ssml") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Ssml") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Ssml") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall: -// Transfers the call in Telephony Gateway. +// GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall: Transfers +// the call in Telephony Gateway. type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct { // PhoneNumber: Required. The phone number to transfer the call to - // in [E.164 format](https://en.wikipedia.org/wiki/E.164). + // in E.164 format (https://en.wikipedia.org/wiki/E.164). // // We currently only allow transferring to US numbers (+1xxxyyyzzzz). PhoneNumber string `json:"phoneNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "PhoneNumber") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PhoneNumber") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PhoneNumber") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentMessageText: The text response -// message. +// GoogleCloudDialogflowV2beta1IntentMessageText: The text response message. type GoogleCloudDialogflowV2beta1IntentMessageText struct { // Text: Optional. The collection of the agent's responses. Text []string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Text") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Text") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Text") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentParameter: Represents intent -// parameters. +// GoogleCloudDialogflowV2beta1IntentParameter: Represents intent parameters. type GoogleCloudDialogflowV2beta1IntentParameter struct { - // DefaultValue: Optional. The default value to use when the `value` - // yields an empty + // DefaultValue: Optional. The default value to use when the `value` yields an + // empty // result. - // Default values can be extracted from contexts by using the - // following + // Default values can be extracted from contexts by using the following // syntax: `#context_name.parameter_name`. DefaultValue string `json:"defaultValue,omitempty"` - // DisplayName: Required. The name of the parameter. DisplayName string `json:"displayName,omitempty"` - - // EntityTypeDisplayName: Optional. The name of the entity type, - // prefixed with `@`, that + // EntityTypeDisplayName: Optional. The name of the entity type, prefixed with + // `@`, that // describes values of the parameter. If the parameter is // required, this must be provided. EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"` - - // IsList: Optional. Indicates whether the parameter represents a list - // of values. + // IsList: Optional. Indicates whether the parameter represents a list of + // values. IsList bool `json:"isList,omitempty"` - - // Mandatory: Optional. Indicates whether the parameter is required. - // That is, + // Mandatory: Optional. Indicates whether the parameter is required. That + // is, // whether the intent cannot be completed without collecting the // parameter // value. Mandatory bool `json:"mandatory,omitempty"` - // Name: The unique identifier of this parameter. Name string `json:"name,omitempty"` - - // Prompts: Optional. The collection of prompts that the agent can - // present to the + // Prompts: Optional. The collection of prompts that the agent can present to + // the // user in order to collect a value for the parameter. Prompts []string `json:"prompts,omitempty"` - // Value: Optional. The definition of the parameter value. It can be: // // - a constant string, // - a parameter value defined as `$parameter_name`, - // - an original parameter value defined as - // `$parameter_name.original`, + // - an original parameter value defined as `$parameter_name.original`, // - a parameter value from some context defined as // `#context_name.parameter_name`. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultValue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an -// example that the agent is trained on. +// GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an example that +// the agent is trained on. type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct { // Name: Output only. The unique identifier of this training phrase. Name string `json:"name,omitempty"` - // Parts: Required. The ordered list of training phrase parts. - // The parts are concatenated in order to form the training - // phrase. + // The parts are concatenated in order to form the training phrase. // // Note: The API does not automatically annotate training phrases like // the @@ -6084,187 +4862,146 @@ type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct { // so the training phrase is well formatted when the parts are // concatenated. // - // If the training phrase does not need to be annotated with - // parameters, + // If the training phrase does not need to be annotated with parameters, // you just need a single part with only the Part.text field set. // - // If you want to annotate the training phrase, you must create - // multiple - // parts, where the fields of each part are populated in one of two - // ways: + // If you want to annotate the training phrase, you must create multiple + // parts, where the fields of each part are populated in one of two ways: // - // - `Part.text` is set to a part of the phrase that has no - // parameters. - // - `Part.text` is set to a part of the phrase that you want to - // annotate, - // and the `entity_type`, `alias`, and `user_defined` fields are - // all + // - `Part.text` is set to a part of the phrase that has no parameters. + // - `Part.text` is set to a part of the phrase that you want to annotate, + // and the `entity_type`, `alias`, and `user_defined` fields are all // set. Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"` - - // TimesAddedCount: Optional. Indicates how many times this example was - // added to + // TimesAddedCount: Optional. Indicates how many times this example was added + // to // the intent. Each time a developer adds an existing sample by editing // an // intent or training, this counter is increased. TimesAddedCount int64 `json:"timesAddedCount,omitempty"` - // Type: Required. The type of the training phrase. // // Possible values: - // "TYPE_UNSPECIFIED" - Not specified. This value should never be - // used. - // "EXAMPLE" - Examples do not contain @-prefixed entity type names, - // but example parts + // "TYPE_UNSPECIFIED" - Not specified. This value should never be used. + // "EXAMPLE" - Examples do not contain @-prefixed entity type names, but + // example parts // can be annotated with entity types. - // "TEMPLATE" - Templates are not annotated with entity types, but - // they can contain + // "TEMPLATE" - Templates are not annotated with entity types, but they can + // contain // @-prefixed entity type names as substrings. - // Template mode has been deprecated. Example mode is the only - // supported - // way to create new training phrases. If you have existing - // training - // phrases that you've created in template mode, those will continue - // to + // Template mode has been deprecated. Example mode is the only supported + // way to create new training phrases. If you have existing training + // phrases that you've created in template mode, those will continue to // work. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a -// part of a training phrase. +// GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a part of a +// training phrase. type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct { // Alias: Optional. The parameter name for the value extracted from // the // annotated part of the example. // This field is required for annotated parts of the training phrase. Alias string `json:"alias,omitempty"` - // EntityType: Optional. The entity type name prefixed with `@`. // This field is required for annotated parts of the training phrase. EntityType string `json:"entityType,omitempty"` - // Text: Required. The text for this part. Text string `json:"text,omitempty"` - // UserDefined: Optional. Indicates whether the text was manually // annotated. - // This field is set to true when the Dialogflow Console is used - // to - // manually annotate the part. When creating an annotated part with - // the + // This field is set to true when the Dialogflow Console is used to + // manually annotate the part. When creating an annotated part with the // API, you must set this to true. UserDefined bool `json:"userDefined,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Alias") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Alias") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Alias") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result -// of querying a Knowledge base. +// GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result of +// querying a Knowledge base. type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct { // Answers: A list of answers from Knowledge Connector. Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Answers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Answers") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Answers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Answers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from -// Knowledge Connector. +// GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from Knowledge +// Connector. type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct { - // Answer: The piece of text from the `source` knowledge base document - // that answers + // Answer: The piece of text from the `source` knowledge base document that + // answers // this conversational query. Answer string `json:"answer,omitempty"` - - // FaqQuestion: The corresponding FAQ question if the answer was - // extracted from a FAQ + // FaqQuestion: The corresponding FAQ question if the answer was extracted from + // a FAQ // Document, empty otherwise. FaqQuestion string `json:"faqQuestion,omitempty"` - - // MatchConfidence: The system's confidence score that this Knowledge - // answer is a good match + // MatchConfidence: The system's confidence score that this Knowledge answer is + // a good match // for this conversational query. // The range is from 0.0 (completely uncertain) to 1.0 (completely // certain). // Note: The confidence score is likely to vary somewhat (possibly even // for - // identical requests), as the underlying model is under - // constant + // identical requests), as the underlying model is under constant // improvement. It may be deprecated in the future. We recommend // using // `match_confidence_level` which should be generally more stable. MatchConfidence float64 `json:"matchConfidence,omitempty"` - - // MatchConfidenceLevel: The system's confidence level that this - // knowledge answer is a good match + // MatchConfidenceLevel: The system's confidence level that this knowledge + // answer is a good match // for this conversational query. // NOTE: The confidence level for a given `` pair may // change - // without notice, as it depends on models that are constantly - // being - // improved. However, it will change less frequently than the - // confidence + // without notice, as it depends on models that are constantly being + // improved. However, it will change less frequently than the confidence // score below, and should be preferred for referencing the quality of // an // answer. @@ -6275,35 +5012,28 @@ type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct { // "MEDIUM" - Indicates our confidence is medium. // "HIGH" - Indicates our confidence is high. MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"` - // Source: Indicates which Knowledge Document this answer was extracted // from. // Format: `projects//knowledgeBases//documents/`. Source string `json:"source,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Answer") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Answer") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Answer") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error { @@ -6331,75 +5061,60 @@ type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct { // "RUNNING" - The operation is currently running. // "DONE" - The operation is done, either cancelled or completed. State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "State") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "State") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "State") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1LabelConversationResponse: The response // for // ConversationDatasets.LabelConversation. type GoogleCloudDialogflowV2beta1LabelConversationResponse struct { - // AnnotatedConversationDataset: New annotated conversation dataset - // created by the labeling task. + // AnnotatedConversationDataset: New annotated conversation dataset created by + // the labeling task. AnnotatedConversationDataset *GoogleCloudDialogflowV2beta1AnnotatedConversationDataset `json:"annotatedConversationDataset,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AnnotatedConversationDataset") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "AnnotatedConversationDataset") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AnnotatedConversationDataset") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnnotatedConversationDataset") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1LabelConversationResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1LabelConversationResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1LabelConversationResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents -// the contents of the original request that was passed to +// GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents the +// contents of the original request that was passed to // the `[Streaming]DetectIntent` call. type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct { // Payload: Optional. This field is set to the value of the // `QueryParameters.payload` - // field passed in the request. Some integrations that query a - // Dialogflow + // field passed in the request. Some integrations that query a Dialogflow // agent may provide additional information in the payload. // - // In particular, for the Dialogflow Phone Gateway integration, this - // field has + // In particular, for the Dialogflow Phone Gateway integration, this field + // has // the form: //
                  {
                   	//  "telephony": {
                  @@ -6408,43 +5123,32 @@ type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
                   	// }
                  // Note: The caller ID field (`caller_id`) will be redacted for // Standard - // Edition agents and populated with the caller ID in - // [E.164 - // format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition - // agents. + // Edition agents and populated with the caller ID in E.164 + // format (https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. Payload googleapi.RawMessage `json:"payload,omitempty"` - - // Source: The source of this request, e.g., `google`, `facebook`, - // `slack`. It is set + // Source: The source of this request, e.g., `google`, `facebook`, `slack`. It + // is set // by Dialogflow-owned servers. Source string `json:"source,omitempty"` - - // Version: Optional. The version of the protocol used for this - // request. + // Version: Optional. The version of the protocol used for this request. // This field is AoG-specific. Version string `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Payload") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Payload") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Payload") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Payload") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1QueryResult: Represents the result of @@ -6452,19 +5156,15 @@ func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() type GoogleCloudDialogflowV2beta1QueryResult struct { // Action: The action name from the matched intent. Action string `json:"action,omitempty"` - // AllRequiredParamsPresent: This field is set to: // - // - `false` if the matched intent has required parameters and not all - // of + // - `false` if the matched intent has required parameters and not all of // the required parameter values have been collected. - // - `true` if all required parameter values have been collected, or if - // the + // - `true` if all required parameter values have been collected, or if the // matched intent doesn't contain any required parameters. AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"` - - // DiagnosticInfo: Free-form diagnostic information for the associated - // detect intent request. + // DiagnosticInfo: Free-form diagnostic information for the associated detect + // intent request. // The fields of this data can change without notice, so you should not // write // code that depends on its structure. @@ -6473,64 +5173,46 @@ type GoogleCloudDialogflowV2beta1QueryResult struct { // - webhook call latency // - webhook errors DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"` - - // FulfillmentMessages: The collection of rich messages to present to - // the user. + // FulfillmentMessages: The collection of rich messages to present to the user. FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"` - - // FulfillmentText: The text to be pronounced to the user or shown on - // the screen. - // Note: This is a legacy field, `fulfillment_messages` should be - // preferred. + // FulfillmentText: The text to be pronounced to the user or shown on the + // screen. + // Note: This is a legacy field, `fulfillment_messages` should be preferred. FulfillmentText string `json:"fulfillmentText,omitempty"` - - // Intent: The intent that matched the conversational query. Some, - // not - // all fields are filled in this message, including but not limited - // to: + // Intent: The intent that matched the conversational query. Some, not + // all fields are filled in this message, including but not limited to: // `name`, `display_name`, `end_interaction` and `is_fallback`. Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"` - - // IntentDetectionConfidence: The intent detection confidence. Values - // range from 0.0 + // IntentDetectionConfidence: The intent detection confidence. Values range + // from 0.0 // (completely uncertain) to 1.0 (completely certain). // This value is for informational purpose only and is only used to // help match the best intent within the classification threshold. - // This value may change for the same end-user expression at any time - // due to a + // This value may change for the same end-user expression at any time due to + // a // model retraining or change in implementation. - // If there are `multiple knowledge_answers` messages, this value is set - // to + // If there are `multiple knowledge_answers` messages, this value is set to // the greatest `knowledgeAnswers.match_confidence` value in the list. IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"` - - // KnowledgeAnswers: The result from Knowledge Connector (if any), - // ordered by decreasing + // KnowledgeAnswers: The result from Knowledge Connector (if any), ordered by + // decreasing // `KnowledgeAnswers.match_confidence`. KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"` - - // LanguageCode: The language that was triggered during intent - // detection. - // See - // [Language - // Support](https://cloud.google.com/dialogflow/docs/reference/ - // language) + // LanguageCode: The language that was triggered during intent detection. + // See Language + // Support (https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. LanguageCode string `json:"languageCode,omitempty"` - // OutputContexts: The collection of output contexts. If // applicable, // `output_contexts.parameters` contains entries with name - // `.original` containing the original parameter - // values + // `.original` containing the original parameter values // before the query. OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"` - // Parameters: The collection of extracted parameters. // // Depending on your protocol or client library language, this is a - // map, associative array, symbol table, dictionary, or JSON - // object + // map, associative array, symbol table, dictionary, or JSON object // composed of a collection of (MapKey, MapValue) pairs: // // - MapKey type: string @@ -6543,75 +5225,59 @@ type GoogleCloudDialogflowV2beta1QueryResult struct { // map from composite entity property names to property values // - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` - // QueryText: The original conversational query text: // - // - If natural language text was provided as input, `query_text` - // contains + // - If natural language text was provided as input, `query_text` contains // a copy of the input. - // - If natural language speech audio was provided as input, - // `query_text` - // contains the speech recognition result. If speech recognizer - // produced + // - If natural language speech audio was provided as input, `query_text` + // contains the speech recognition result. If speech recognizer produced // multiple alternatives, a particular one is picked. - // - If automatic spell correction is enabled, `query_text` will contain - // the + // - If automatic spell correction is enabled, `query_text` will contain the // corrected user input. QueryText string `json:"queryText,omitempty"` - - // SentimentAnalysisResult: The sentiment analysis result, which depends - // on the + // SentimentAnalysisResult: The sentiment analysis result, which depends on + // the // `sentiment_analysis_request_config` specified in the request. SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"` - - // SpeechRecognitionConfidence: The Speech recognition confidence - // between 0.0 and 1.0. A higher number + // SpeechRecognitionConfidence: The Speech recognition confidence between 0.0 + // and 1.0. A higher number // indicates an estimated greater likelihood that the recognized words // are // correct. The default of 0.0 is a sentinel value indicating that // confidence // was not set. // - // This field is not guaranteed to be accurate or set. In particular - // this - // field isn't set for StreamingDetectIntent since the streaming - // endpoint has + // This field is not guaranteed to be accurate or set. In particular this + // field isn't set for StreamingDetectIntent since the streaming endpoint + // has // separate confidence estimates per portion of the audio // in // StreamingRecognitionResult. SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"` - - // WebhookPayload: If the query was fulfilled by a webhook call, this - // field is set to the + // WebhookPayload: If the query was fulfilled by a webhook call, this field is + // set to the // value of the `payload` field returned in the webhook response. WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"` - - // WebhookSource: If the query was fulfilled by a webhook call, this - // field is set to the + // WebhookSource: If the query was fulfilled by a webhook call, this field is + // set to the // value of the `source` field returned in the webhook response. WebhookSource string `json:"webhookSource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1QueryResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error { @@ -6634,37 +5300,30 @@ func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) err // positive/negative feeling or association, for a unit // of analysis, such as the query text. type GoogleCloudDialogflowV2beta1Sentiment struct { - // Magnitude: A non-negative number in the [0, +inf) range, which - // represents the absolute + // Magnitude: A non-negative number in the [0, +inf) range, which represents + // the absolute // magnitude of sentiment, regardless of score (positive or negative). Magnitude float64 `json:"magnitude,omitempty"` - // Score: Sentiment score between -1.0 (negative sentiment) and 1.0 // (positive // sentiment). Score float64 `json:"score,omitempty"` - // ForceSendFields is a list of field names (e.g. "Magnitude") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Magnitude") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Magnitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1Sentiment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error { @@ -6683,91 +5342,76 @@ func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error return nil } -// GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of -// sentiment analysis as configured -// by +// GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of sentiment +// analysis as configured by // `sentiment_analysis_request_config`. type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct { // QueryTextSentiment: The sentiment analysis result for `query_text`. QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "QueryTextSentiment") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "QueryTextSentiment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "QueryTextSentiment") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "QueryTextSentiment") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1SessionEntityType: Represents a session -// entity type. +// GoogleCloudDialogflowV2beta1SessionEntityType: Represents a session entity +// type. // -// Extends or replaces a custom entity type at the user session level -// (we +// Extends or replaces a custom entity type at the user session level (we // refer to the entity types defined at the agent level as "custom // entity // types"). // -// Note: session entity types apply to all queries, regardless of the -// language. +// Note: session entity types apply to all queries, regardless of the language. type GoogleCloudDialogflowV2beta1SessionEntityType struct { - // Entities: Required. The collection of entities associated with this - // session entity + // Entities: Required. The collection of entities associated with this session + // entity // type. Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"` - - // EntityOverrideMode: Required. Indicates whether the additional data - // should override or + // EntityOverrideMode: Required. Indicates whether the additional data should + // override or // supplement the custom entity type definition. // // Possible values: - // "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value - // should be never used. - // "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session - // entities overrides the collection of entities + // "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value should be + // never used. + // "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session entities + // overrides the collection of entities // in the corresponding custom entity type. - // "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session - // entities extends the collection of entities in + // "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session entities + // extends the collection of entities in // the corresponding custom entity type. // // Note: Even in this override mode calls to // `ListSessionEntityTypes`, // `GetSessionEntityType`, `CreateSessionEntityType` // and - // `UpdateSessionEntityType` only return the additional entities added - // in - // this session entity type. If you want to get the supplemented - // list, + // `UpdateSessionEntityType` only return the additional entities added in + // this session entity type. If you want to get the supplemented list, // please call EntityTypes.GetEntityType on the custom entity type // and merge. EntityOverrideMode string `json:"entityOverrideMode,omitempty"` - // Name: Required. The unique identifier of this session entity type. // Format: - // `projects//agent/sessions//entityTypes//agent/sessions//entityTypes/`, or // `projects//agent/environments//users//sessions//entityTypes/`. - // If `Environment ID` is not specified, we assume default - // 'draft' + // If `Environment ID` is not specified, we assume default 'draft' // environment. If `User ID` is not specified, we assume default '-' // user. // @@ -6775,94 +5419,72 @@ type GoogleCloudDialogflowV2beta1SessionEntityType struct { // entity // type in the same agent that will be overridden or supplemented. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Entities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudDialogflowV2beta1WebhookRequest: The request message for a // webhook call. type GoogleCloudDialogflowV2beta1WebhookRequest struct { - // AlternativeQueryResults: Alternative query results from - // KnowledgeService. + // AlternativeQueryResults: Alternative query results from KnowledgeService. AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"` - - // OriginalDetectIntentRequest: Optional. The contents of the original - // request that was passed to + // OriginalDetectIntentRequest: Optional. The contents of the original request + // that was passed to // `[Streaming]DetectIntent` call. OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"` - - // QueryResult: The result of the conversational query or event - // processing. Contains the + // QueryResult: The result of the conversational query or event processing. + // Contains the // same value as `[Streaming]DetectIntentResponse.query_result`. QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"` - - // ResponseId: The unique identifier of the response. Contains the same - // value as + // ResponseId: The unique identifier of the response. Contains the same value + // as // `[Streaming]DetectIntentResponse.response_id`. ResponseId string `json:"responseId,omitempty"` - // Session: The unique identifier of detectIntent request session. - // Can be used to identify end-user inside webhook - // implementation. + // Can be used to identify end-user inside webhook implementation. // Format: `projects//agent/sessions/`, // or // `projects//agent/environments//users//sessions/`. Session string `json:"session,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AlternativeQueryResults") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AlternativeQueryResults") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AlternativeQueryResults") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AlternativeQueryResults") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV2beta1WebhookResponse: The response message for -// a webhook call. +// GoogleCloudDialogflowV2beta1WebhookResponse: The response message for a +// webhook call. // -// This response is validated by the Dialogflow server. If validation -// fails, -// an error will be returned in the QueryResult.diagnostic_info -// field. +// This response is validated by the Dialogflow server. If validation fails, +// an error will be returned in the QueryResult.diagnostic_info field. // Setting JSON fields to an empty value with the wrong type is a common // error. // To avoid this error: @@ -6872,41 +5494,33 @@ func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, erro // - Use `[]` or `null` for empty arrays // // For more information, see the -// [Protocol Buffers -// Language -// Guide](https://developers.google.com/protocol-buffers/docs/pr -// oto3#json). +// Protocol Buffers Language +// Guide (https://developers.google.com/protocol-buffers/docs/proto3#json). type GoogleCloudDialogflowV2beta1WebhookResponse struct { - // EndInteraction: Optional. Indicates that this intent ends an - // interaction. Some integrations + // EndInteraction: Optional. Indicates that this intent ends an interaction. + // Some integrations // (e.g., Actions on Google or Dialogflow phone gateway) use this // information // to close interaction with an end user. Default is false. EndInteraction bool `json:"endInteraction,omitempty"` - // FollowupEventInput: Optional. Invokes the supplied events. // When this field is set, Dialogflow ignores the // `fulfillment_text`, // `fulfillment_messages`, and `payload` fields. FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"` - - // FulfillmentMessages: Optional. The rich response messages intended - // for the end-user. + // FulfillmentMessages: Optional. The rich response messages intended for the + // end-user. // When provided, Dialogflow uses this field to // populate - // QueryResult.fulfillment_messages sent to the integration or API - // caller. + // QueryResult.fulfillment_messages sent to the integration or API caller. FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"` - // FulfillmentText: Optional. The text response message intended for the // end-user. - // It is recommended to use `fulfillment_messages.text.text[0]` - // instead. + // It is recommended to use `fulfillment_messages.text.text[0]` instead. // When provided, Dialogflow uses this field to // populate // QueryResult.fulfillment_text sent to the integration or API caller. FulfillmentText string `json:"fulfillmentText,omitempty"` - // OutputContexts: Optional. The collection of output contexts that will // overwrite currently // active contexts for the session and reset their lifespans. @@ -6914,28 +5528,22 @@ type GoogleCloudDialogflowV2beta1WebhookResponse struct { // populate // QueryResult.output_contexts sent to the integration or API caller. OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"` - - // Payload: Optional. This field can be used to pass custom data from - // your webhook to the + // Payload: Optional. This field can be used to pass custom data from your + // webhook to the // integration or API caller. Arbitrary JSON objects are supported. // When provided, Dialogflow uses this field to // populate - // QueryResult.webhook_payload sent to the integration or API - // caller. + // QueryResult.webhook_payload sent to the integration or API caller. // This field is also used by the - // [Google - // Assistant - // integration](https://cloud.google.com/dialogflow/docs/integr - // ations/aog) + // Google Assistant + // integration (https://cloud.google.com/dialogflow/docs/integrations/aog) // for rich response messages. - // See the format definition at [Google Assistant Dialogflow - // webhook - // format](https://developers.google.com/assistant/actions/build/ - // json/dialogflow-webhook-json) + // See the format definition at Google Assistant Dialogflow webhook + // format + // (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) Payload googleapi.RawMessage `json:"payload,omitempty"` - - // SessionEntityTypes: Optional. Additional session entity types to - // replace or extend developer + // SessionEntityTypes: Optional. Additional session entity types to replace or + // extend developer // entity types with. The entity synonyms apply to all languages and // persist // for the session. Setting this data from a webhook overwrites @@ -6943,7 +5551,6 @@ type GoogleCloudDialogflowV2beta1WebhookResponse struct { // `detectIntent`, // `streamingDetectIntent` or SessionEntityType management methods. SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"` - // Source: Optional. A custom field used to identify the webhook // source. // Arbitrary strings are supported. @@ -6951,63 +5558,49 @@ type GoogleCloudDialogflowV2beta1WebhookResponse struct { // populate // QueryResult.webhook_source sent to the integration or API caller. Source string `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndInteraction") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndInteraction") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EndInteraction") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowV3alpha1ExportAgentResponse: The response -// message for Agents.ExportAgent. +// GoogleCloudDialogflowV3alpha1ExportAgentResponse: The response message for +// Agents.ExportAgent. type GoogleCloudDialogflowV3alpha1ExportAgentResponse struct { // AgentContent: Uncompressed raw byte content for agent. AgentContent string `json:"agentContent,omitempty"` - - // AgentUri: The URI to a file containing the exported agent. This field - // is populated + // AgentUri: The URI to a file containing the exported agent. This field is + // populated // only if `agent_uri` is specified in ExportAgentRequest. AgentUri string `json:"agentUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgentContent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AgentContent") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AgentContent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudDialogflowV3alpha1ExportAgentResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudDialogflowV3alpha1ExportAgentResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudDialogflowV3alpha1ExportAgentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningListOperationsResponse: The response message for @@ -7015,36 +5608,28 @@ func (s *GoogleCloudDialogflowV3alpha1ExportAgentResponse) MarshalJSON() ([]byte type GoogleLongrunningListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningOperation: This resource represents a long-running @@ -7053,150 +5638,115 @@ func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) type GoogleLongrunningOperation struct { // Done: If the value is `false`, it means the operation is still in // progress. - // If `true`, the operation is completed, and either `error` or - // `response` is + // If `true`, the operation is completed, and either `error` or `response` + // is // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. - // It typically - // contains progress information and common metadata such as create - // time. - // Some services might not provide such metadata. Any method that - // returns a + // Metadata: Service-specific metadata associated with the operation. It + // typically + // contains progress information and common metadata such as create time. + // Some services might not provide such metadata. Any method that returns + // a // long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that - // originally returns it. If you use the default HTTP mapping, - // the - // `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that + // originally returns it. If you use the default HTTP mapping, the + // `name` should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. - // If the original + // Response: The normal response of the operation in case of success. If the + // original // method returns no data on success, such as `Delete`, the response // is // `google.protobuf.Empty`. If the original method is // standard // `Get`/`Create`/`Update`, the response should be the resource. For // other - // methods, the response should have the type `XxxResponse`, where - // `Xxx` - // is the original method name. For example, if the original method - // name - // is `TakeSnapshot()`, the inferred response type - // is + // methods, the response should have the type `XxxResponse`, where `Xxx` + // is the original method name. For example, if the original method name + // is `TakeSnapshot()`, the inferred response type is // `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleProtobufEmpty: A generic empty message that you can re-use to -// avoid defining duplicated +// GoogleProtobufEmpty: A generic empty message that you can re-use to avoid +// defining duplicated // empty messages in your APIs. A typical example is to use it as the // request // or the response type of an API method. For instance: // // service Foo { -// rpc Bar(google.protobuf.Empty) returns -// -// (google.protobuf.Empty); -// +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); // } // // The JSON representation for `Empty` is empty JSON object `{}`. type GoogleProtobufEmpty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// GoogleRpcStatus: The `Status` type defines a logical error model that -// is suitable for -// different programming environments, including REST APIs and RPC APIs. -// It is -// used by [gRPC](https://github.com/grpc). Each `Status` message -// contains -// three pieces of data: error code, error message, and error -// details. +// GoogleRpcStatus: The `Status` type defines a logical error model that is +// suitable for +// different programming environments, including REST APIs and RPC APIs. It +// is +// used by gRPC (https://github.com/grpc). Each `Status` message contains +// three pieces of data: error code, error message, and error details. // -// You can find out more about this error model and how to work with it -// in the -// [API Design Guide](https://cloud.google.com/apis/design/errors). +// You can find out more about this error model and how to work with it in +// the +// API Design Guide (https://cloud.google.com/apis/design/errors). type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of + // Details: A list of messages that carry the error details. There is a common + // set of // message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any + // Message: A developer-facing error message, which should be in English. + // Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { +func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleRpcStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "dialogflow.projects.locations.operations.cancel": - type ProjectsLocationsOperationsCancelCall struct { s *Service name string @@ -7205,26 +5755,21 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// -// The server -// -// makes a best effort to cancel the operation, but success is -// not +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server +// makes a best effort to cancel the operation, but success is not // guaranteed. If the server doesn't support this method, it // returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can -// use +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use // Operations.GetOperation or // other methods to check whether the cancellation succeeded or whether // the -// operation completed despite cancellation. On successful -// cancellation, -// the operation is not deleted; instead, it becomes an operation -// with -// an Operation.error value with a google.rpc.Status.code of -// 1, +// operation completed despite cancellation. On successful cancellation, +// the operation is not deleted; instead, it becomes an operation with +// an Operation.error value with a google.rpc.Status.code of 1, // corresponding to `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall { c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7232,23 +5777,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7257,12 +5800,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -7276,16 +5814,15 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7293,17 +5830,17 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ @@ -7316,37 +5853,8 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", - // "flatPath": "v3alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "dialogflow.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v3alpha1/{+name}:cancel", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/dialogflow" - // ] - // } - } -// method id "dialogflow.projects.locations.operations.get": - type ProjectsLocationsOperationsGetCall struct { s *Service name string @@ -7356,11 +5864,13 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this -// method to poll the operation result at intervals as recommended by -// the API +// Get: Gets the latest state of a long-running operation. Clients can use +// this +// method to poll the operation result at intervals as recommended by the +// API // service. +// +// - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7368,33 +5878,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7403,12 +5909,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7425,16 +5926,15 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7442,17 +5942,17 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -7465,37 +5965,8 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", - // "flatPath": "v3alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "dialogflow.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v3alpha1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/dialogflow" - // ] - // } - } -// method id "dialogflow.projects.locations.operations.list": - type ProjectsLocationsOperationsListCall struct { s *Service name string @@ -7505,13 +5976,11 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the -// server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the +// server doesn't support this method, it returns `UNIMPLEMENTED`. // -// NOTE: the `name` binding allows API services to override the -// binding +// NOTE: the `name` binding allows API services to override the binding // to use different resource name schemes, such as `users/*/operations`. // To // override the binding, API services can add a binding such @@ -7519,64 +5988,60 @@ type ProjectsLocationsOperationsListCall struct { // "/v1/{name=users/*}/operations" to their service configuration. // For backwards compatibility, the default name includes the // operations -// collection id, however overriding users must ensure the name -// binding +// collection id, however overriding users must ensure the name binding // is the parent resource, without the operations collection id. +// +// - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7585,12 +6050,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7607,17 +6067,15 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7625,17 +6083,17 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7648,49 +6106,6 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", - // "flatPath": "v3alpha1/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "dialogflow.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v3alpha1/{+name}/operations", - // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/dialogflow" - // ] - // } - } // Pages invokes f for each page of results. @@ -7698,7 +6113,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -7714,8 +6129,6 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( } } -// method id "dialogflow.projects.operations.cancel": - type ProjectsOperationsCancelCall struct { s *Service name string @@ -7724,26 +6137,21 @@ type ProjectsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// -// The server -// -// makes a best effort to cancel the operation, but success is -// not +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server +// makes a best effort to cancel the operation, but success is not // guaranteed. If the server doesn't support this method, it // returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can -// use +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use // Operations.GetOperation or // other methods to check whether the cancellation succeeded or whether // the -// operation completed despite cancellation. On successful -// cancellation, -// the operation is not deleted; instead, it becomes an operation -// with -// an Operation.error value with a google.rpc.Status.code of -// 1, +// operation completed despite cancellation. On successful cancellation, +// the operation is not deleted; instead, it becomes an operation with +// an Operation.error value with a google.rpc.Status.code of 1, // corresponding to `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall { c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7751,23 +6159,21 @@ func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCance } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7776,12 +6182,7 @@ func (c *ProjectsOperationsCancelCall) Header() http.Header { } func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -7795,16 +6196,15 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7812,17 +6212,17 @@ func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ @@ -7835,37 +6235,8 @@ func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Google return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", - // "flatPath": "v3alpha1/projects/{projectsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "dialogflow.projects.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v3alpha1/{+name}:cancel", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/dialogflow" - // ] - // } - } -// method id "dialogflow.projects.operations.get": - type ProjectsOperationsGetCall struct { s *Service name string @@ -7875,11 +6246,13 @@ type ProjectsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this -// method to poll the operation result at intervals as recommended by -// the API +// Get: Gets the latest state of a long-running operation. Clients can use +// this +// method to poll the operation result at intervals as recommended by the +// API // service. +// +// - name: The name of the operation resource. func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall { c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7887,33 +6260,29 @@ func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7922,12 +6291,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { } func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7944,16 +6308,15 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7961,17 +6324,17 @@ func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -7984,37 +6347,8 @@ func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLon return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", - // "flatPath": "v3alpha1/projects/{projectsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "dialogflow.projects.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v3alpha1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/dialogflow" - // ] - // } - } -// method id "dialogflow.projects.operations.list": - type ProjectsOperationsListCall struct { s *Service name string @@ -8024,13 +6358,11 @@ type ProjectsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the -// server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the +// server doesn't support this method, it returns `UNIMPLEMENTED`. // -// NOTE: the `name` binding allows API services to override the -// binding +// NOTE: the `name` binding allows API services to override the binding // to use different resource name schemes, such as `users/*/operations`. // To // override the binding, API services can add a binding such @@ -8038,64 +6370,60 @@ type ProjectsOperationsListCall struct { // "/v1/{name=users/*}/operations" to their service configuration. // For backwards compatibility, the default name includes the // operations -// collection id, however overriding users must ensure the name -// binding +// collection id, however overriding users must ensure the name binding // is the parent resource, without the operations collection id. +// +// - name: The name of the operation's parent resource. func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall { c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8104,12 +6432,7 @@ func (c *ProjectsOperationsListCall) Header() http.Header { } func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200518") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8126,17 +6449,15 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8144,17 +6465,17 @@ func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8167,49 +6488,6 @@ func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLo return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", - // "flatPath": "v3alpha1/projects/{projectsId}/operations", - // "httpMethod": "GET", - // "id": "dialogflow.projects.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v3alpha1/{+name}/operations", - // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/dialogflow" - // ] - // } - } // Pages invokes f for each page of results. @@ -8217,7 +6495,7 @@ func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLo // The provided context supersedes any context provided to the Context method. func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index c4861db55af..c1680f47b7b 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -20746,7 +20746,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.get" call. @@ -20878,7 +20878,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.list" call. @@ -21004,7 +21004,7 @@ func (c *ProjectsLocationsAgentsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.create" call. @@ -21101,7 +21101,7 @@ func (c *ProjectsLocationsAgentsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.delete" call. @@ -21210,7 +21210,7 @@ func (c *ProjectsLocationsAgentsExportCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.export" call. @@ -21318,7 +21318,7 @@ func (c *ProjectsLocationsAgentsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.get" call. @@ -21433,7 +21433,7 @@ func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.getGenerativeSettings" call. @@ -21550,7 +21550,7 @@ func (c *ProjectsLocationsAgentsGetValidationResultCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.getValidationResult" call. @@ -21673,7 +21673,7 @@ func (c *ProjectsLocationsAgentsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.list" call. @@ -21808,7 +21808,7 @@ func (c *ProjectsLocationsAgentsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.patch" call. @@ -21923,7 +21923,7 @@ func (c *ProjectsLocationsAgentsRestoreCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.restore" call. @@ -22033,7 +22033,7 @@ func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.updateGenerativeSettings" call. @@ -22137,7 +22137,7 @@ func (c *ProjectsLocationsAgentsValidateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.validate" call. @@ -22246,7 +22246,7 @@ func (c *ProjectsLocationsAgentsChangelogsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.changelogs.get" call. @@ -22385,7 +22385,7 @@ func (c *ProjectsLocationsAgentsChangelogsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.changelogs.list" call. @@ -22503,7 +22503,7 @@ func (c *ProjectsLocationsAgentsConversationsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.conversations.delete" call. @@ -22612,7 +22612,7 @@ func (c *ProjectsLocationsAgentsConversationsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.conversations.get" call. @@ -22748,7 +22748,7 @@ func (c *ProjectsLocationsAgentsConversationsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.conversations.list" call. @@ -22884,7 +22884,7 @@ func (c *ProjectsLocationsAgentsEntityTypesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.create" call. @@ -22995,7 +22995,7 @@ func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.delete" call. @@ -23098,7 +23098,7 @@ func (c *ProjectsLocationsAgentsEntityTypesExportCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.export" call. @@ -23220,7 +23220,7 @@ func (c *ProjectsLocationsAgentsEntityTypesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.get" call. @@ -23323,7 +23323,7 @@ func (c *ProjectsLocationsAgentsEntityTypesImportCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.import" call. @@ -23459,7 +23459,7 @@ func (c *ProjectsLocationsAgentsEntityTypesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.list" call. @@ -23605,7 +23605,7 @@ func (c *ProjectsLocationsAgentsEntityTypesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.entityTypes.patch" call. @@ -23714,7 +23714,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.create" call. @@ -23811,7 +23811,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.delete" call. @@ -23918,7 +23918,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.deployFlow" call. @@ -24027,7 +24027,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.get" call. @@ -24150,7 +24150,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.list" call. @@ -24296,7 +24296,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.lookupEnvironmentHistory" call. @@ -24433,7 +24433,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.patch" call. @@ -24540,7 +24540,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "environment": c.environment, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.runContinuousTest" call. @@ -24663,7 +24663,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.continuousTestResults.list" call. @@ -24793,7 +24793,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.deployments.get" call. @@ -24916,7 +24916,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.deployments.list" call. @@ -25040,7 +25040,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.create" call. @@ -25137,7 +25137,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.delete" call. @@ -25246,7 +25246,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.get" call. @@ -25369,7 +25369,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.list" call. @@ -25500,7 +25500,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.patch" call. @@ -25604,7 +25604,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.start" call. @@ -25708,7 +25708,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.experiments.stop" call. @@ -25826,7 +25826,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.detectIntent" call. @@ -25938,7 +25938,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) doRequest googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.fulfillIntent" call. @@ -26049,7 +26049,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.matchIntent" call. @@ -26166,7 +26166,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentC googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.serverStreamingDetectIntent" call. @@ -26271,7 +26271,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.create" call. @@ -26370,7 +26370,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.delete" call. @@ -26481,7 +26481,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.get" call. @@ -26606,7 +26606,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.list" call. @@ -26739,7 +26739,7 @@ func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.environments.sessions.entityTypes.patch" call. @@ -26859,7 +26859,7 @@ func (c *ProjectsLocationsAgentsFlowsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.create" call. @@ -26968,7 +26968,7 @@ func (c *ProjectsLocationsAgentsFlowsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.delete" call. @@ -27078,7 +27078,7 @@ func (c *ProjectsLocationsAgentsFlowsExportCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.export" call. @@ -27202,7 +27202,7 @@ func (c *ProjectsLocationsAgentsFlowsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.get" call. @@ -27319,7 +27319,7 @@ func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.getValidationResult" call. @@ -27430,7 +27430,7 @@ func (c *ProjectsLocationsAgentsFlowsImportCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.import" call. @@ -27568,7 +27568,7 @@ func (c *ProjectsLocationsAgentsFlowsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.list" call. @@ -27717,7 +27717,7 @@ func (c *ProjectsLocationsAgentsFlowsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.patch" call. @@ -27829,7 +27829,7 @@ func (c *ProjectsLocationsAgentsFlowsTrainCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.train" call. @@ -27933,7 +27933,7 @@ func (c *ProjectsLocationsAgentsFlowsValidateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.validate" call. @@ -28057,7 +28057,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.pages.create" call. @@ -28166,7 +28166,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.pages.delete" call. @@ -28297,7 +28297,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.pages.get" call. @@ -28442,7 +28442,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.pages.list" call. @@ -28596,7 +28596,7 @@ func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.pages.patch" call. @@ -28716,7 +28716,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.create" call. @@ -28827,7 +28827,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.delete" call. @@ -28951,7 +28951,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.get" call. @@ -29088,7 +29088,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.list" call. @@ -29238,7 +29238,7 @@ func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.transitionRouteGroups.patch" call. @@ -29342,7 +29342,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "baseVersion": c.baseVersion, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.compareVersions" call. @@ -29449,7 +29449,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.create" call. @@ -29546,7 +29546,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.delete" call. @@ -29655,7 +29655,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.get" call. @@ -29778,7 +29778,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.list" call. @@ -29909,7 +29909,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.load" call. @@ -30020,7 +30020,7 @@ func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.flows.versions.patch" call. @@ -30131,7 +30131,7 @@ func (c *ProjectsLocationsAgentsGeneratorsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.generators.create" call. @@ -30239,7 +30239,7 @@ func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.generators.delete" call. @@ -30355,7 +30355,7 @@ func (c *ProjectsLocationsAgentsGeneratorsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.generators.get" call. @@ -30485,7 +30485,7 @@ func (c *ProjectsLocationsAgentsGeneratorsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.generators.list" call. @@ -30625,7 +30625,7 @@ func (c *ProjectsLocationsAgentsGeneratorsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.generators.patch" call. @@ -30741,7 +30741,7 @@ func (c *ProjectsLocationsAgentsIntentsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.create" call. @@ -30840,7 +30840,7 @@ func (c *ProjectsLocationsAgentsIntentsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.delete" call. @@ -30947,7 +30947,7 @@ func (c *ProjectsLocationsAgentsIntentsExportCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.export" call. @@ -31068,7 +31068,7 @@ func (c *ProjectsLocationsAgentsIntentsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.get" call. @@ -31175,7 +31175,7 @@ func (c *ProjectsLocationsAgentsIntentsImportCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.import" call. @@ -31326,7 +31326,7 @@ func (c *ProjectsLocationsAgentsIntentsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.list" call. @@ -31472,7 +31472,7 @@ func (c *ProjectsLocationsAgentsIntentsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.intents.patch" call. @@ -31575,7 +31575,7 @@ func (c *ProjectsLocationsAgentsPlaybooksCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.create" call. @@ -31672,7 +31672,7 @@ func (c *ProjectsLocationsAgentsPlaybooksDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.delete" call. @@ -31781,7 +31781,7 @@ func (c *ProjectsLocationsAgentsPlaybooksGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.get" call. @@ -31904,7 +31904,7 @@ func (c *ProjectsLocationsAgentsPlaybooksListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.list" call. @@ -32036,7 +32036,7 @@ func (c *ProjectsLocationsAgentsPlaybooksPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.patch" call. @@ -32139,7 +32139,7 @@ func (c *ProjectsLocationsAgentsPlaybooksExamplesCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.examples.create" call. @@ -32236,7 +32236,7 @@ func (c *ProjectsLocationsAgentsPlaybooksExamplesDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.examples.delete" call. @@ -32345,7 +32345,7 @@ func (c *ProjectsLocationsAgentsPlaybooksExamplesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.examples.get" call. @@ -32476,7 +32476,7 @@ func (c *ProjectsLocationsAgentsPlaybooksExamplesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.examples.list" call. @@ -32608,7 +32608,7 @@ func (c *ProjectsLocationsAgentsPlaybooksExamplesPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.examples.patch" call. @@ -32711,7 +32711,7 @@ func (c *ProjectsLocationsAgentsPlaybooksVersionsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.versions.create" call. @@ -32808,7 +32808,7 @@ func (c *ProjectsLocationsAgentsPlaybooksVersionsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.versions.delete" call. @@ -32917,7 +32917,7 @@ func (c *ProjectsLocationsAgentsPlaybooksVersionsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.versions.get" call. @@ -33040,7 +33040,7 @@ func (c *ProjectsLocationsAgentsPlaybooksVersionsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.playbooks.versions.list" call. @@ -33179,7 +33179,7 @@ func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.detectIntent" call. @@ -33291,7 +33291,7 @@ func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.fulfillIntent" call. @@ -33402,7 +33402,7 @@ func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.matchIntent" call. @@ -33519,7 +33519,7 @@ func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) doReque googleapi.Expand(req.URL, map[string]string{ "session": c.sessionid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.serverStreamingDetectIntent" call. @@ -33622,7 +33622,7 @@ func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.submitAnswerFeedback" call. @@ -33727,7 +33727,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.create" call. @@ -33826,7 +33826,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.delete" call. @@ -33937,7 +33937,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.get" call. @@ -34062,7 +34062,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.list" call. @@ -34195,7 +34195,7 @@ func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.sessions.entityTypes.patch" call. @@ -34298,7 +34298,7 @@ func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.batchDelete" call. @@ -34405,7 +34405,7 @@ func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.batchRun" call. @@ -34528,7 +34528,7 @@ func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "agent": c.agent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.calculateCoverage" call. @@ -34631,7 +34631,7 @@ func (c *ProjectsLocationsAgentsTestCasesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.create" call. @@ -34739,7 +34739,7 @@ func (c *ProjectsLocationsAgentsTestCasesExportCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.export" call. @@ -34848,7 +34848,7 @@ func (c *ProjectsLocationsAgentsTestCasesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.get" call. @@ -34957,7 +34957,7 @@ func (c *ProjectsLocationsAgentsTestCasesImportCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.import" call. @@ -35101,7 +35101,7 @@ func (c *ProjectsLocationsAgentsTestCasesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.list" call. @@ -35234,7 +35234,7 @@ func (c *ProjectsLocationsAgentsTestCasesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.patch" call. @@ -35340,7 +35340,7 @@ func (c *ProjectsLocationsAgentsTestCasesRunCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.run" call. @@ -35449,7 +35449,7 @@ func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.results.get" call. @@ -35591,7 +35591,7 @@ func (c *ProjectsLocationsAgentsTestCasesResultsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.testCases.results.list" call. @@ -35715,7 +35715,7 @@ func (c *ProjectsLocationsAgentsToolsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.tools.create" call. @@ -35822,7 +35822,7 @@ func (c *ProjectsLocationsAgentsToolsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.tools.delete" call. @@ -35925,7 +35925,7 @@ func (c *ProjectsLocationsAgentsToolsExportCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.tools.export" call. @@ -36033,7 +36033,7 @@ func (c *ProjectsLocationsAgentsToolsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.tools.get" call. @@ -36156,7 +36156,7 @@ func (c *ProjectsLocationsAgentsToolsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.tools.list" call. @@ -36288,7 +36288,7 @@ func (c *ProjectsLocationsAgentsToolsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.tools.patch" call. @@ -36408,7 +36408,7 @@ func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.create" call. @@ -36519,7 +36519,7 @@ func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.delete" call. @@ -36643,7 +36643,7 @@ func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.get" call. @@ -36780,7 +36780,7 @@ func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.list" call. @@ -36930,7 +36930,7 @@ func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.transitionRouteGroups.patch" call. @@ -37033,7 +37033,7 @@ func (c *ProjectsLocationsAgentsWebhooksCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.webhooks.create" call. @@ -37142,7 +37142,7 @@ func (c *ProjectsLocationsAgentsWebhooksDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.webhooks.delete" call. @@ -37251,7 +37251,7 @@ func (c *ProjectsLocationsAgentsWebhooksGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.webhooks.get" call. @@ -37374,7 +37374,7 @@ func (c *ProjectsLocationsAgentsWebhooksListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.webhooks.list" call. @@ -37507,7 +37507,7 @@ func (c *ProjectsLocationsAgentsWebhooksPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.agents.webhooks.patch" call. @@ -37611,7 +37611,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.cancel" call. @@ -37721,7 +37721,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.get" call. @@ -37850,7 +37850,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.operations.list" call. @@ -37974,7 +37974,7 @@ func (c *ProjectsLocationsSecuritySettingsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.securitySettings.create" call. @@ -38071,7 +38071,7 @@ func (c *ProjectsLocationsSecuritySettingsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.securitySettings.delete" call. @@ -38181,7 +38181,7 @@ func (c *ProjectsLocationsSecuritySettingsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.securitySettings.get" call. @@ -38304,7 +38304,7 @@ func (c *ProjectsLocationsSecuritySettingsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.securitySettings.list" call. @@ -38438,7 +38438,7 @@ func (c *ProjectsLocationsSecuritySettingsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.locations.securitySettings.patch" call. @@ -38542,7 +38542,7 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.cancel" call. @@ -38652,7 +38652,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.get" call. @@ -38781,7 +38781,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dialogflow.projects.operations.list" call. diff --git a/digitalassetlinks/v1/digitalassetlinks-gen.go b/digitalassetlinks/v1/digitalassetlinks-gen.go index 0a72a18a78d..a8204941c21 100644 --- a/digitalassetlinks/v1/digitalassetlinks-gen.go +++ b/digitalassetlinks/v1/digitalassetlinks-gen.go @@ -621,7 +621,7 @@ func (c *AssetlinksBulkCheckCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "digitalassetlinks.assetlinks.bulkCheck" call. @@ -854,7 +854,7 @@ func (c *AssetlinksCheckCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "digitalassetlinks.assetlinks.check" call. @@ -1030,7 +1030,7 @@ func (c *StatementsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "digitalassetlinks.statements.list" call. diff --git a/discovery/v1/discovery-gen.go b/discovery/v1/discovery-gen.go index de1adc454c6..d34b616be78 100644 --- a/discovery/v1/discovery-gen.go +++ b/discovery/v1/discovery-gen.go @@ -914,7 +914,7 @@ func (c *ApisGetRestCall) doRequest(alt string) (*http.Response, error) { "api": c.api, "version": c.version, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discovery.apis.getRest" call. @@ -1029,7 +1029,7 @@ func (c *ApisListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discovery.apis.list" call. diff --git a/discoveryengine/v1/discoveryengine-gen.go b/discoveryengine/v1/discoveryengine-gen.go index 50716a1c929..eb2cd830c3b 100644 --- a/discoveryengine/v1/discoveryengine-gen.go +++ b/discoveryengine/v1/discoveryengine-gen.go @@ -18005,7 +18005,7 @@ func (c *ProjectsProvisionCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.provision" call. @@ -18115,7 +18115,7 @@ func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.get" call. @@ -18244,7 +18244,7 @@ func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.list" call. @@ -18424,7 +18424,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.completeQuery" call. @@ -18561,7 +18561,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.create" call. @@ -18662,7 +18662,7 @@ func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.delete" call. @@ -18775,7 +18775,7 @@ func (c *ProjectsLocationsCollectionsDataStoresGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.get" call. @@ -18887,7 +18887,7 @@ func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine" call. @@ -19026,7 +19026,7 @@ func (c *ProjectsLocationsCollectionsDataStoresListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.list" call. @@ -19160,7 +19160,7 @@ func (c *ProjectsLocationsCollectionsDataStoresPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.patch" call. @@ -19265,7 +19265,7 @@ func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.trainCustomModel" call. @@ -19393,7 +19393,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesBatchGetDocumentsMetadata googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.batchGetDocumentsMetadata" call. @@ -19510,7 +19510,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.create" call. @@ -19611,7 +19611,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.delete" call. @@ -19724,7 +19724,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.get" call. @@ -19830,7 +19830,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.import" call. @@ -19963,7 +19963,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.list" call. @@ -20104,7 +20104,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.patch" call. @@ -20213,7 +20213,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.purge" call. @@ -20323,7 +20323,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.cancel" call. @@ -20433,7 +20433,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.get" call. @@ -20562,7 +20562,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.list" call. @@ -20687,7 +20687,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompletionSuggestionsImportCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.completionSuggestions.import" call. @@ -20791,7 +20791,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompletionSuggestionsPurgeCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.completionSuggestions.purge" call. @@ -20908,7 +20908,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.create" call. @@ -21007,7 +21007,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.delete" call. @@ -21117,7 +21117,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.get" call. @@ -21252,7 +21252,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.list" call. @@ -21386,7 +21386,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.patch" call. @@ -21494,7 +21494,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.converse" call. @@ -21599,7 +21599,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.create" call. @@ -21698,7 +21698,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.delete" call. @@ -21808,7 +21808,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.get" call. @@ -21950,7 +21950,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.list" call. @@ -22086,7 +22086,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.patch" call. @@ -22197,7 +22197,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.customModels.list" call. @@ -22307,7 +22307,7 @@ func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.get" call. @@ -22436,7 +22436,7 @@ func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.list" call. @@ -22567,7 +22567,7 @@ func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.get" call. @@ -22696,7 +22696,7 @@ func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.list" call. @@ -22830,7 +22830,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.create" call. @@ -22928,7 +22928,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.delete" call. @@ -23038,7 +23038,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.get" call. @@ -23166,7 +23166,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.list" call. @@ -23300,7 +23300,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.patch" call. @@ -23410,7 +23410,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.get" call. @@ -23539,7 +23539,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.list" call. @@ -23667,7 +23667,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) doReque googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer" call. @@ -23777,7 +23777,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) doRe googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.recommend" call. @@ -23885,7 +23885,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) doReque googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.search" call. @@ -24011,7 +24011,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.create" call. @@ -24110,7 +24110,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.delete" call. @@ -24220,7 +24220,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.get" call. @@ -24362,7 +24362,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.list" call. @@ -24496,7 +24496,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.patch" call. @@ -24606,7 +24606,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.answers.get" call. @@ -24711,7 +24711,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTarget googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.batchVerifyTargetSites" call. @@ -24816,7 +24816,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSi googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call. @@ -24921,7 +24921,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSit googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call. @@ -25054,7 +25054,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerifi googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.fetchDomainVerificationStatus" call. @@ -25178,7 +25178,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.recrawlUris" call. @@ -25288,7 +25288,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.get" call. @@ -25417,7 +25417,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.list" call. @@ -25543,7 +25543,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchC googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.batchCreate" call. @@ -25647,7 +25647,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreate googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.create" call. @@ -25748,7 +25748,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDelete googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.delete" call. @@ -25861,7 +25861,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.get" call. @@ -25992,7 +25992,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCa googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.list" call. @@ -26118,7 +26118,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.patch" call. @@ -26228,7 +26228,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperat googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.get" call. @@ -26357,7 +26357,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperat googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.list" call. @@ -26482,7 +26482,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCa googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.import" call. @@ -26586,7 +26586,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCal googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.purge" call. @@ -26723,7 +26723,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.collect" call. @@ -26831,7 +26831,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.import" call. @@ -26939,7 +26939,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.purge" call. @@ -27054,7 +27054,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.write" call. @@ -27167,7 +27167,7 @@ func (c *ProjectsLocationsCollectionsEnginesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.create" call. @@ -27268,7 +27268,7 @@ func (c *ProjectsLocationsCollectionsEnginesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.delete" call. @@ -27378,7 +27378,7 @@ func (c *ProjectsLocationsCollectionsEnginesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.get" call. @@ -27506,7 +27506,7 @@ func (c *ProjectsLocationsCollectionsEnginesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.list" call. @@ -27642,7 +27642,7 @@ func (c *ProjectsLocationsCollectionsEnginesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.patch" call. @@ -27759,7 +27759,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.create" call. @@ -27858,7 +27858,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.delete" call. @@ -27968,7 +27968,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.get" call. @@ -28103,7 +28103,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.list" call. @@ -28237,7 +28237,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.patch" call. @@ -28345,7 +28345,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.converse" call. @@ -28450,7 +28450,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.create" call. @@ -28549,7 +28549,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.delete" call. @@ -28659,7 +28659,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.get" call. @@ -28801,7 +28801,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.list" call. @@ -28937,7 +28937,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.patch" call. @@ -29047,7 +29047,7 @@ func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.operations.get" call. @@ -29176,7 +29176,7 @@ func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.operations.list" call. @@ -29304,7 +29304,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.answer" call. @@ -29414,7 +29414,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) doReque googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.recommend" call. @@ -29522,7 +29522,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.search" call. @@ -29648,7 +29648,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.create" call. @@ -29747,7 +29747,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.delete" call. @@ -29857,7 +29857,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.get" call. @@ -29999,7 +29999,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.list" call. @@ -30133,7 +30133,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.patch" call. @@ -30243,7 +30243,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.answers.get" call. @@ -30353,7 +30353,7 @@ func (c *ProjectsLocationsCollectionsOperationsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.operations.get" call. @@ -30482,7 +30482,7 @@ func (c *ProjectsLocationsCollectionsOperationsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.operations.list" call. @@ -30662,7 +30662,7 @@ func (c *ProjectsLocationsDataStoresCompleteQueryCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.completeQuery" call. @@ -30799,7 +30799,7 @@ func (c *ProjectsLocationsDataStoresCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.create" call. @@ -30900,7 +30900,7 @@ func (c *ProjectsLocationsDataStoresDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.delete" call. @@ -31013,7 +31013,7 @@ func (c *ProjectsLocationsDataStoresGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.get" call. @@ -31125,7 +31125,7 @@ func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.getSiteSearchEngine" call. @@ -31264,7 +31264,7 @@ func (c *ProjectsLocationsDataStoresListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.list" call. @@ -31398,7 +31398,7 @@ func (c *ProjectsLocationsDataStoresPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.patch" call. @@ -31526,7 +31526,7 @@ func (c *ProjectsLocationsDataStoresBranchesBatchGetDocumentsMetadataCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.batchGetDocumentsMetadata" call. @@ -31643,7 +31643,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.create" call. @@ -31744,7 +31744,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.delete" call. @@ -31857,7 +31857,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.get" call. @@ -31963,7 +31963,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.import" call. @@ -32096,7 +32096,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.list" call. @@ -32237,7 +32237,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.patch" call. @@ -32346,7 +32346,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.purge" call. @@ -32456,7 +32456,7 @@ func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.cancel" call. @@ -32566,7 +32566,7 @@ func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.get" call. @@ -32695,7 +32695,7 @@ func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.list" call. @@ -32820,7 +32820,7 @@ func (c *ProjectsLocationsDataStoresCompletionSuggestionsImportCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.completionSuggestions.import" call. @@ -32924,7 +32924,7 @@ func (c *ProjectsLocationsDataStoresCompletionSuggestionsPurgeCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.completionSuggestions.purge" call. @@ -33041,7 +33041,7 @@ func (c *ProjectsLocationsDataStoresControlsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.create" call. @@ -33140,7 +33140,7 @@ func (c *ProjectsLocationsDataStoresControlsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.delete" call. @@ -33250,7 +33250,7 @@ func (c *ProjectsLocationsDataStoresControlsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.get" call. @@ -33385,7 +33385,7 @@ func (c *ProjectsLocationsDataStoresControlsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.list" call. @@ -33519,7 +33519,7 @@ func (c *ProjectsLocationsDataStoresControlsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.patch" call. @@ -33627,7 +33627,7 @@ func (c *ProjectsLocationsDataStoresConversationsConverseCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.converse" call. @@ -33732,7 +33732,7 @@ func (c *ProjectsLocationsDataStoresConversationsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.create" call. @@ -33831,7 +33831,7 @@ func (c *ProjectsLocationsDataStoresConversationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.delete" call. @@ -33941,7 +33941,7 @@ func (c *ProjectsLocationsDataStoresConversationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.get" call. @@ -34083,7 +34083,7 @@ func (c *ProjectsLocationsDataStoresConversationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.list" call. @@ -34219,7 +34219,7 @@ func (c *ProjectsLocationsDataStoresConversationsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.patch" call. @@ -34329,7 +34329,7 @@ func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.get" call. @@ -34458,7 +34458,7 @@ func (c *ProjectsLocationsDataStoresModelsOperationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.list" call. @@ -34589,7 +34589,7 @@ func (c *ProjectsLocationsDataStoresOperationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.operations.get" call. @@ -34718,7 +34718,7 @@ func (c *ProjectsLocationsDataStoresOperationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.operations.list" call. @@ -34852,7 +34852,7 @@ func (c *ProjectsLocationsDataStoresSchemasCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.create" call. @@ -34950,7 +34950,7 @@ func (c *ProjectsLocationsDataStoresSchemasDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.delete" call. @@ -35060,7 +35060,7 @@ func (c *ProjectsLocationsDataStoresSchemasGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.get" call. @@ -35188,7 +35188,7 @@ func (c *ProjectsLocationsDataStoresSchemasListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.list" call. @@ -35322,7 +35322,7 @@ func (c *ProjectsLocationsDataStoresSchemasPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.patch" call. @@ -35429,7 +35429,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.answer" call. @@ -35539,7 +35539,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.recommend" call. @@ -35647,7 +35647,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.search" call. @@ -35773,7 +35773,7 @@ func (c *ProjectsLocationsDataStoresSessionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.create" call. @@ -35872,7 +35872,7 @@ func (c *ProjectsLocationsDataStoresSessionsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.delete" call. @@ -35982,7 +35982,7 @@ func (c *ProjectsLocationsDataStoresSessionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.get" call. @@ -36124,7 +36124,7 @@ func (c *ProjectsLocationsDataStoresSessionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.list" call. @@ -36258,7 +36258,7 @@ func (c *ProjectsLocationsDataStoresSessionsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.patch" call. @@ -36368,7 +36368,7 @@ func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.answers.get" call. @@ -36473,7 +36473,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCal googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call. @@ -36578,7 +36578,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call. @@ -36681,7 +36681,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.recrawlUris" call. @@ -36786,7 +36786,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.batchCreate" call. @@ -36890,7 +36890,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.create" call. @@ -36991,7 +36991,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.delete" call. @@ -37104,7 +37104,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.get" call. @@ -37235,7 +37235,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.list" call. @@ -37361,7 +37361,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.patch" call. @@ -37465,7 +37465,7 @@ func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.import" call. @@ -37569,7 +37569,7 @@ func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.purge" call. @@ -37706,7 +37706,7 @@ func (c *ProjectsLocationsDataStoresUserEventsCollectCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.collect" call. @@ -37814,7 +37814,7 @@ func (c *ProjectsLocationsDataStoresUserEventsImportCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.import" call. @@ -37922,7 +37922,7 @@ func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.purge" call. @@ -38037,7 +38037,7 @@ func (c *ProjectsLocationsDataStoresUserEventsWriteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.write" call. @@ -38140,7 +38140,7 @@ func (c *ProjectsLocationsGroundingConfigsCheckCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "groundingConfig": c.groundingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.groundingConfigs.check" call. @@ -38250,7 +38250,7 @@ func (c *ProjectsLocationsIdentityMappingStoresOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.identity_mapping_stores.operations.get" call. @@ -38379,7 +38379,7 @@ func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.identity_mapping_stores.operations.list" call. @@ -38510,7 +38510,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.operations.get" call. @@ -38639,7 +38639,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.operations.list" call. @@ -38764,7 +38764,7 @@ func (c *ProjectsLocationsRankingConfigsRankCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "rankingConfig": c.rankingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.rankingConfigs.rank" call. @@ -38901,7 +38901,7 @@ func (c *ProjectsLocationsUserEventsCollectCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.userEvents.collect" call. @@ -39016,7 +39016,7 @@ func (c *ProjectsLocationsUserEventsWriteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.userEvents.write" call. @@ -39126,7 +39126,7 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.operations.cancel" call. @@ -39236,7 +39236,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.operations.get" call. @@ -39365,7 +39365,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.operations.list" call. diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index d659c61326a..1ce7ba7e106 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -18565,7 +18565,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.get" call. @@ -18671,7 +18671,7 @@ func (c *ProjectsProvisionCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.provision" call. @@ -18777,7 +18777,7 @@ func (c *ProjectsReportConsentChangeCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.reportConsentChange" call. @@ -18880,7 +18880,7 @@ func (c *ProjectsLocationsEstimateDataSizeCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.estimateDataSize" call. @@ -18991,7 +18991,7 @@ func (c *ProjectsLocationsGetAclConfigCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.getAclConfig" call. @@ -19097,7 +19097,7 @@ func (c *ProjectsLocationsUpdateAclConfigCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.updateAclConfig" call. @@ -19207,7 +19207,7 @@ func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.get" call. @@ -19336,7 +19336,7 @@ func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.list" call. @@ -19516,7 +19516,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.completeQuery" call. @@ -19655,7 +19655,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.create" call. @@ -19756,7 +19756,7 @@ func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.delete" call. @@ -19869,7 +19869,7 @@ func (c *ProjectsLocationsCollectionsDataStoresGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.get" call. @@ -19979,7 +19979,7 @@ func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.getDocumentProcessingConfig" call. @@ -20091,7 +20091,7 @@ func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine" call. @@ -20230,7 +20230,7 @@ func (c *ProjectsLocationsCollectionsDataStoresListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.list" call. @@ -20364,7 +20364,7 @@ func (c *ProjectsLocationsCollectionsDataStoresPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.patch" call. @@ -20469,7 +20469,7 @@ func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.trainCustomModel" call. @@ -20585,7 +20585,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.updateDocumentProcessingConfig" call. @@ -20713,7 +20713,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesBatchGetDocumentsMetadata googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.batchGetDocumentsMetadata" call. @@ -20830,7 +20830,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.create" call. @@ -20931,7 +20931,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.delete" call. @@ -21044,7 +21044,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.get" call. @@ -21191,7 +21191,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocu googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.getProcessedDocument" call. @@ -21297,7 +21297,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.import" call. @@ -21430,7 +21430,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.list" call. @@ -21573,7 +21573,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.patch" call. @@ -21682,7 +21682,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.purge" call. @@ -21795,7 +21795,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.get" call. @@ -21928,7 +21928,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.list" call. @@ -22059,7 +22059,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.cancel" call. @@ -22169,7 +22169,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.get" call. @@ -22298,7 +22298,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.list" call. @@ -22423,7 +22423,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompletionSuggestionsImportCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.completionSuggestions.import" call. @@ -22527,7 +22527,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompletionSuggestionsPurgeCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.completionSuggestions.purge" call. @@ -22644,7 +22644,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.create" call. @@ -22743,7 +22743,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.delete" call. @@ -22853,7 +22853,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.get" call. @@ -22988,7 +22988,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.list" call. @@ -23122,7 +23122,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.patch" call. @@ -23230,7 +23230,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.converse" call. @@ -23335,7 +23335,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.create" call. @@ -23434,7 +23434,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.delete" call. @@ -23544,7 +23544,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.get" call. @@ -23686,7 +23686,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.list" call. @@ -23822,7 +23822,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.patch" call. @@ -23933,7 +23933,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.customModels.list" call. @@ -24043,7 +24043,7 @@ func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.get" call. @@ -24172,7 +24172,7 @@ func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.list" call. @@ -24303,7 +24303,7 @@ func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.get" call. @@ -24432,7 +24432,7 @@ func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.list" call. @@ -24566,7 +24566,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.create" call. @@ -24664,7 +24664,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.delete" call. @@ -24774,7 +24774,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.get" call. @@ -24902,7 +24902,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.list" call. @@ -25036,7 +25036,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.patch" call. @@ -25146,7 +25146,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.get" call. @@ -25275,7 +25275,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.list" call. @@ -25403,7 +25403,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) doReque googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer" call. @@ -25514,7 +25514,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.get" call. @@ -25640,7 +25640,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.list" call. @@ -25774,7 +25774,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.patch" call. @@ -25884,7 +25884,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) doRe googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.recommend" call. @@ -25992,7 +25992,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) doReque googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.search" call. @@ -26118,7 +26118,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.create" call. @@ -26217,7 +26217,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.delete" call. @@ -26327,7 +26327,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.get" call. @@ -26469,7 +26469,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.list" call. @@ -26603,7 +26603,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.patch" call. @@ -26713,7 +26713,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.answers.get" call. @@ -26818,7 +26818,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTarget googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.batchVerifyTargetSites" call. @@ -26923,7 +26923,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSi googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call. @@ -27028,7 +27028,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSit googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call. @@ -27161,7 +27161,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerifi googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.fetchDomainVerificationStatus" call. @@ -27292,7 +27292,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineGetUriPatternDocu googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.getUriPatternDocumentData" call. @@ -27395,7 +27395,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.recrawlUris" call. @@ -27499,7 +27499,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSetUriPatternDocu googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.setUriPatternDocumentData" call. @@ -27609,7 +27609,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.get" call. @@ -27738,7 +27738,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.list" call. @@ -27864,7 +27864,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchC googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.batchCreate" call. @@ -27968,7 +27968,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreate googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.create" call. @@ -28069,7 +28069,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDelete googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.delete" call. @@ -28182,7 +28182,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.get" call. @@ -28313,7 +28313,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCa googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.list" call. @@ -28439,7 +28439,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.patch" call. @@ -28549,7 +28549,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperat googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.get" call. @@ -28678,7 +28678,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperat googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.list" call. @@ -28803,7 +28803,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCa googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.import" call. @@ -28907,7 +28907,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCal googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.purge" call. @@ -29044,7 +29044,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.collect" call. @@ -29152,7 +29152,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.import" call. @@ -29260,7 +29260,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.purge" call. @@ -29375,7 +29375,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.write" call. @@ -29488,7 +29488,7 @@ func (c *ProjectsLocationsCollectionsEnginesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.create" call. @@ -29589,7 +29589,7 @@ func (c *ProjectsLocationsCollectionsEnginesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.delete" call. @@ -29699,7 +29699,7 @@ func (c *ProjectsLocationsCollectionsEnginesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.get" call. @@ -29827,7 +29827,7 @@ func (c *ProjectsLocationsCollectionsEnginesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.list" call. @@ -29963,7 +29963,7 @@ func (c *ProjectsLocationsCollectionsEnginesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.patch" call. @@ -30068,7 +30068,7 @@ func (c *ProjectsLocationsCollectionsEnginesPauseCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.pause" call. @@ -30173,7 +30173,7 @@ func (c *ProjectsLocationsCollectionsEnginesResumeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.resume" call. @@ -30278,7 +30278,7 @@ func (c *ProjectsLocationsCollectionsEnginesTuneCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.tune" call. @@ -30395,7 +30395,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.create" call. @@ -30494,7 +30494,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.delete" call. @@ -30604,7 +30604,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.get" call. @@ -30739,7 +30739,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.list" call. @@ -30873,7 +30873,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.patch" call. @@ -30981,7 +30981,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.converse" call. @@ -31086,7 +31086,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.create" call. @@ -31185,7 +31185,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.delete" call. @@ -31295,7 +31295,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.get" call. @@ -31437,7 +31437,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.list" call. @@ -31573,7 +31573,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.patch" call. @@ -31683,7 +31683,7 @@ func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.operations.get" call. @@ -31812,7 +31812,7 @@ func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.operations.list" call. @@ -31940,7 +31940,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.answer" call. @@ -32051,7 +32051,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.get" call. @@ -32177,7 +32177,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.list" call. @@ -32311,7 +32311,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.patch" call. @@ -32421,7 +32421,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) doReque googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.recommend" call. @@ -32529,7 +32529,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.search" call. @@ -32655,7 +32655,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.create" call. @@ -32754,7 +32754,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.delete" call. @@ -32864,7 +32864,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.get" call. @@ -33006,7 +33006,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.list" call. @@ -33140,7 +33140,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.patch" call. @@ -33250,7 +33250,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.answers.get" call. @@ -33360,7 +33360,7 @@ func (c *ProjectsLocationsCollectionsOperationsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.operations.get" call. @@ -33489,7 +33489,7 @@ func (c *ProjectsLocationsCollectionsOperationsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.operations.list" call. @@ -33669,7 +33669,7 @@ func (c *ProjectsLocationsDataStoresCompleteQueryCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.completeQuery" call. @@ -33808,7 +33808,7 @@ func (c *ProjectsLocationsDataStoresCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.create" call. @@ -33909,7 +33909,7 @@ func (c *ProjectsLocationsDataStoresDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.delete" call. @@ -34022,7 +34022,7 @@ func (c *ProjectsLocationsDataStoresGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.get" call. @@ -34132,7 +34132,7 @@ func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.getDocumentProcessingConfig" call. @@ -34244,7 +34244,7 @@ func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.getSiteSearchEngine" call. @@ -34383,7 +34383,7 @@ func (c *ProjectsLocationsDataStoresListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.list" call. @@ -34517,7 +34517,7 @@ func (c *ProjectsLocationsDataStoresPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.patch" call. @@ -34633,7 +34633,7 @@ func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.updateDocumentProcessingConfig" call. @@ -34761,7 +34761,7 @@ func (c *ProjectsLocationsDataStoresBranchesBatchGetDocumentsMetadataCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.batchGetDocumentsMetadata" call. @@ -34878,7 +34878,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.create" call. @@ -34979,7 +34979,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.delete" call. @@ -35092,7 +35092,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.get" call. @@ -35239,7 +35239,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.getProcessedDocument" call. @@ -35345,7 +35345,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.import" call. @@ -35478,7 +35478,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.list" call. @@ -35621,7 +35621,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.patch" call. @@ -35730,7 +35730,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.purge" call. @@ -35843,7 +35843,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.chunks.get" call. @@ -35976,7 +35976,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.chunks.list" call. @@ -36107,7 +36107,7 @@ func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.cancel" call. @@ -36217,7 +36217,7 @@ func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.get" call. @@ -36346,7 +36346,7 @@ func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.list" call. @@ -36471,7 +36471,7 @@ func (c *ProjectsLocationsDataStoresCompletionSuggestionsImportCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.completionSuggestions.import" call. @@ -36575,7 +36575,7 @@ func (c *ProjectsLocationsDataStoresCompletionSuggestionsPurgeCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.completionSuggestions.purge" call. @@ -36692,7 +36692,7 @@ func (c *ProjectsLocationsDataStoresControlsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.create" call. @@ -36791,7 +36791,7 @@ func (c *ProjectsLocationsDataStoresControlsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.delete" call. @@ -36901,7 +36901,7 @@ func (c *ProjectsLocationsDataStoresControlsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.get" call. @@ -37036,7 +37036,7 @@ func (c *ProjectsLocationsDataStoresControlsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.list" call. @@ -37170,7 +37170,7 @@ func (c *ProjectsLocationsDataStoresControlsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.patch" call. @@ -37278,7 +37278,7 @@ func (c *ProjectsLocationsDataStoresConversationsConverseCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.converse" call. @@ -37383,7 +37383,7 @@ func (c *ProjectsLocationsDataStoresConversationsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.create" call. @@ -37482,7 +37482,7 @@ func (c *ProjectsLocationsDataStoresConversationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.delete" call. @@ -37592,7 +37592,7 @@ func (c *ProjectsLocationsDataStoresConversationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.get" call. @@ -37734,7 +37734,7 @@ func (c *ProjectsLocationsDataStoresConversationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.list" call. @@ -37870,7 +37870,7 @@ func (c *ProjectsLocationsDataStoresConversationsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.patch" call. @@ -37980,7 +37980,7 @@ func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.get" call. @@ -38109,7 +38109,7 @@ func (c *ProjectsLocationsDataStoresModelsOperationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.list" call. @@ -38240,7 +38240,7 @@ func (c *ProjectsLocationsDataStoresOperationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.operations.get" call. @@ -38369,7 +38369,7 @@ func (c *ProjectsLocationsDataStoresOperationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.operations.list" call. @@ -38503,7 +38503,7 @@ func (c *ProjectsLocationsDataStoresSchemasCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.create" call. @@ -38601,7 +38601,7 @@ func (c *ProjectsLocationsDataStoresSchemasDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.delete" call. @@ -38711,7 +38711,7 @@ func (c *ProjectsLocationsDataStoresSchemasGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.get" call. @@ -38839,7 +38839,7 @@ func (c *ProjectsLocationsDataStoresSchemasListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.list" call. @@ -38973,7 +38973,7 @@ func (c *ProjectsLocationsDataStoresSchemasPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.patch" call. @@ -39080,7 +39080,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.answer" call. @@ -39191,7 +39191,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.get" call. @@ -39317,7 +39317,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.list" call. @@ -39451,7 +39451,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.patch" call. @@ -39561,7 +39561,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.recommend" call. @@ -39669,7 +39669,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.search" call. @@ -39795,7 +39795,7 @@ func (c *ProjectsLocationsDataStoresSessionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.create" call. @@ -39894,7 +39894,7 @@ func (c *ProjectsLocationsDataStoresSessionsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.delete" call. @@ -40004,7 +40004,7 @@ func (c *ProjectsLocationsDataStoresSessionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.get" call. @@ -40146,7 +40146,7 @@ func (c *ProjectsLocationsDataStoresSessionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.list" call. @@ -40280,7 +40280,7 @@ func (c *ProjectsLocationsDataStoresSessionsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.patch" call. @@ -40390,7 +40390,7 @@ func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.answers.get" call. @@ -40495,7 +40495,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCal googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call. @@ -40600,7 +40600,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call. @@ -40703,7 +40703,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.recrawlUris" call. @@ -40808,7 +40808,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.batchCreate" call. @@ -40912,7 +40912,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.create" call. @@ -41013,7 +41013,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.delete" call. @@ -41126,7 +41126,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.get" call. @@ -41257,7 +41257,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.list" call. @@ -41383,7 +41383,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.patch" call. @@ -41487,7 +41487,7 @@ func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.import" call. @@ -41591,7 +41591,7 @@ func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.purge" call. @@ -41728,7 +41728,7 @@ func (c *ProjectsLocationsDataStoresUserEventsCollectCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.collect" call. @@ -41836,7 +41836,7 @@ func (c *ProjectsLocationsDataStoresUserEventsImportCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.import" call. @@ -41944,7 +41944,7 @@ func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.purge" call. @@ -42059,7 +42059,7 @@ func (c *ProjectsLocationsDataStoresUserEventsWriteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.write" call. @@ -42163,7 +42163,7 @@ func (c *ProjectsLocationsEvaluationsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.evaluations.create" call. @@ -42275,7 +42275,7 @@ func (c *ProjectsLocationsEvaluationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.evaluations.get" call. @@ -42406,7 +42406,7 @@ func (c *ProjectsLocationsEvaluationsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.evaluations.list" call. @@ -42559,7 +42559,7 @@ func (c *ProjectsLocationsEvaluationsListResultsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "evaluation": c.evaluation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.evaluations.listResults" call. @@ -42690,7 +42690,7 @@ func (c *ProjectsLocationsEvaluationsOperationsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.evaluations.operations.get" call. @@ -42793,7 +42793,7 @@ func (c *ProjectsLocationsGroundingConfigsCheckCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "groundingConfig": c.groundingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.groundingConfigs.check" call. @@ -42903,7 +42903,7 @@ func (c *ProjectsLocationsIdentityMappingStoresOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.identity_mapping_stores.operations.get" call. @@ -43032,7 +43032,7 @@ func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.identity_mapping_stores.operations.list" call. @@ -43163,7 +43163,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.operations.get" call. @@ -43292,7 +43292,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.operations.list" call. @@ -43417,7 +43417,7 @@ func (c *ProjectsLocationsRankingConfigsRankCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "rankingConfig": c.rankingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.rankingConfigs.rank" call. @@ -43520,7 +43520,7 @@ func (c *ProjectsLocationsRequirementsCheckRequirementCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.requirements.checkRequirement" call. @@ -43637,7 +43637,7 @@ func (c *ProjectsLocationsSampleQuerySetsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.create" call. @@ -43738,7 +43738,7 @@ func (c *ProjectsLocationsSampleQuerySetsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.delete" call. @@ -43851,7 +43851,7 @@ func (c *ProjectsLocationsSampleQuerySetsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.get" call. @@ -43983,7 +43983,7 @@ func (c *ProjectsLocationsSampleQuerySetsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.list" call. @@ -44118,7 +44118,7 @@ func (c *ProjectsLocationsSampleQuerySetsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.patch" call. @@ -44228,7 +44228,7 @@ func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.operations.get" call. @@ -44345,7 +44345,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.create" call. @@ -44446,7 +44446,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.delete" call. @@ -44559,7 +44559,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.get" call. @@ -44667,7 +44667,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesImportCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.import" call. @@ -44799,7 +44799,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.list" call. @@ -44934,7 +44934,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.patch" call. @@ -45071,7 +45071,7 @@ func (c *ProjectsLocationsUserEventsCollectCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.userEvents.collect" call. @@ -45186,7 +45186,7 @@ func (c *ProjectsLocationsUserEventsWriteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.userEvents.write" call. @@ -45296,7 +45296,7 @@ func (c *ProjectsLocationsUserStoresOperationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.userStores.operations.get" call. @@ -45425,7 +45425,7 @@ func (c *ProjectsLocationsUserStoresOperationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.userStores.operations.list" call. @@ -45556,7 +45556,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.operations.get" call. @@ -45685,7 +45685,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.operations.list" call. diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index d6eabb2e344..774f8907f3b 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -18017,7 +18017,7 @@ func (c *ProjectsProvisionCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.provision" call. @@ -18127,7 +18127,7 @@ func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.get" call. @@ -18256,7 +18256,7 @@ func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.list" call. @@ -18436,7 +18436,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.completeQuery" call. @@ -18573,7 +18573,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.create" call. @@ -18674,7 +18674,7 @@ func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.delete" call. @@ -18787,7 +18787,7 @@ func (c *ProjectsLocationsCollectionsDataStoresGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.get" call. @@ -18899,7 +18899,7 @@ func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine" call. @@ -19038,7 +19038,7 @@ func (c *ProjectsLocationsCollectionsDataStoresListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.list" call. @@ -19174,7 +19174,7 @@ func (c *ProjectsLocationsCollectionsDataStoresPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.patch" call. @@ -19279,7 +19279,7 @@ func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.trainCustomModel" call. @@ -19407,7 +19407,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesBatchGetDocumentsMetadata googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.batchGetDocumentsMetadata" call. @@ -19524,7 +19524,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.create" call. @@ -19625,7 +19625,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.delete" call. @@ -19738,7 +19738,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.get" call. @@ -19844,7 +19844,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.import" call. @@ -19977,7 +19977,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.list" call. @@ -20118,7 +20118,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.patch" call. @@ -20227,7 +20227,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.purge" call. @@ -20337,7 +20337,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.cancel" call. @@ -20447,7 +20447,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.get" call. @@ -20576,7 +20576,7 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.list" call. @@ -20701,7 +20701,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompletionSuggestionsImportCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.completionSuggestions.import" call. @@ -20805,7 +20805,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompletionSuggestionsPurgeCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.completionSuggestions.purge" call. @@ -20922,7 +20922,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.create" call. @@ -21021,7 +21021,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.delete" call. @@ -21131,7 +21131,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.get" call. @@ -21266,7 +21266,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.list" call. @@ -21400,7 +21400,7 @@ func (c *ProjectsLocationsCollectionsDataStoresControlsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.controls.patch" call. @@ -21508,7 +21508,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.converse" call. @@ -21613,7 +21613,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.create" call. @@ -21712,7 +21712,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.delete" call. @@ -21822,7 +21822,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.get" call. @@ -21964,7 +21964,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.list" call. @@ -22100,7 +22100,7 @@ func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.patch" call. @@ -22211,7 +22211,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.customModels.list" call. @@ -22321,7 +22321,7 @@ func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.get" call. @@ -22450,7 +22450,7 @@ func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.list" call. @@ -22581,7 +22581,7 @@ func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.get" call. @@ -22710,7 +22710,7 @@ func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.list" call. @@ -22844,7 +22844,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.create" call. @@ -22942,7 +22942,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.delete" call. @@ -23052,7 +23052,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.get" call. @@ -23180,7 +23180,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.list" call. @@ -23314,7 +23314,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.patch" call. @@ -23424,7 +23424,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.get" call. @@ -23553,7 +23553,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.list" call. @@ -23681,7 +23681,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) doReque googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer" call. @@ -23792,7 +23792,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.get" call. @@ -23918,7 +23918,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.list" call. @@ -24052,7 +24052,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.patch" call. @@ -24162,7 +24162,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) doRe googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.recommend" call. @@ -24270,7 +24270,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) doReque googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.search" call. @@ -24396,7 +24396,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.create" call. @@ -24495,7 +24495,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.delete" call. @@ -24605,7 +24605,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.get" call. @@ -24747,7 +24747,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.list" call. @@ -24881,7 +24881,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.patch" call. @@ -24991,7 +24991,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.answers.get" call. @@ -25096,7 +25096,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTarget googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.batchVerifyTargetSites" call. @@ -25201,7 +25201,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSi googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call. @@ -25306,7 +25306,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSit googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call. @@ -25439,7 +25439,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerifi googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.fetchDomainVerificationStatus" call. @@ -25563,7 +25563,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.recrawlUris" call. @@ -25673,7 +25673,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.get" call. @@ -25802,7 +25802,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.list" call. @@ -25928,7 +25928,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchC googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.batchCreate" call. @@ -26032,7 +26032,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreate googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.create" call. @@ -26133,7 +26133,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDelete googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.delete" call. @@ -26246,7 +26246,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCal googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.get" call. @@ -26377,7 +26377,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCa googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.list" call. @@ -26503,7 +26503,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.patch" call. @@ -26613,7 +26613,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperat googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.get" call. @@ -26742,7 +26742,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperat googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.list" call. @@ -26867,7 +26867,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCa googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.import" call. @@ -26971,7 +26971,7 @@ func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCal googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.purge" call. @@ -27108,7 +27108,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.collect" call. @@ -27216,7 +27216,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.import" call. @@ -27324,7 +27324,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.purge" call. @@ -27439,7 +27439,7 @@ func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.write" call. @@ -27552,7 +27552,7 @@ func (c *ProjectsLocationsCollectionsEnginesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.create" call. @@ -27653,7 +27653,7 @@ func (c *ProjectsLocationsCollectionsEnginesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.delete" call. @@ -27763,7 +27763,7 @@ func (c *ProjectsLocationsCollectionsEnginesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.get" call. @@ -27891,7 +27891,7 @@ func (c *ProjectsLocationsCollectionsEnginesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.list" call. @@ -28027,7 +28027,7 @@ func (c *ProjectsLocationsCollectionsEnginesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.patch" call. @@ -28132,7 +28132,7 @@ func (c *ProjectsLocationsCollectionsEnginesPauseCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.pause" call. @@ -28237,7 +28237,7 @@ func (c *ProjectsLocationsCollectionsEnginesResumeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.resume" call. @@ -28342,7 +28342,7 @@ func (c *ProjectsLocationsCollectionsEnginesTuneCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.tune" call. @@ -28459,7 +28459,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.create" call. @@ -28558,7 +28558,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.delete" call. @@ -28668,7 +28668,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.get" call. @@ -28803,7 +28803,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.list" call. @@ -28937,7 +28937,7 @@ func (c *ProjectsLocationsCollectionsEnginesControlsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.controls.patch" call. @@ -29045,7 +29045,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.converse" call. @@ -29150,7 +29150,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.create" call. @@ -29249,7 +29249,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.delete" call. @@ -29359,7 +29359,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.get" call. @@ -29501,7 +29501,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.list" call. @@ -29637,7 +29637,7 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.patch" call. @@ -29747,7 +29747,7 @@ func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.operations.get" call. @@ -29876,7 +29876,7 @@ func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.operations.list" call. @@ -30004,7 +30004,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.answer" call. @@ -30115,7 +30115,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.get" call. @@ -30241,7 +30241,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.list" call. @@ -30375,7 +30375,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.patch" call. @@ -30485,7 +30485,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) doReque googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.recommend" call. @@ -30593,7 +30593,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.search" call. @@ -30719,7 +30719,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.create" call. @@ -30818,7 +30818,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.delete" call. @@ -30928,7 +30928,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.get" call. @@ -31070,7 +31070,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.list" call. @@ -31204,7 +31204,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.patch" call. @@ -31314,7 +31314,7 @@ func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.answers.get" call. @@ -31424,7 +31424,7 @@ func (c *ProjectsLocationsCollectionsOperationsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.operations.get" call. @@ -31553,7 +31553,7 @@ func (c *ProjectsLocationsCollectionsOperationsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.collections.operations.list" call. @@ -31733,7 +31733,7 @@ func (c *ProjectsLocationsDataStoresCompleteQueryCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "dataStore": c.dataStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.completeQuery" call. @@ -31870,7 +31870,7 @@ func (c *ProjectsLocationsDataStoresCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.create" call. @@ -31971,7 +31971,7 @@ func (c *ProjectsLocationsDataStoresDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.delete" call. @@ -32084,7 +32084,7 @@ func (c *ProjectsLocationsDataStoresGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.get" call. @@ -32196,7 +32196,7 @@ func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.getSiteSearchEngine" call. @@ -32335,7 +32335,7 @@ func (c *ProjectsLocationsDataStoresListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.list" call. @@ -32471,7 +32471,7 @@ func (c *ProjectsLocationsDataStoresPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.patch" call. @@ -32599,7 +32599,7 @@ func (c *ProjectsLocationsDataStoresBranchesBatchGetDocumentsMetadataCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.batchGetDocumentsMetadata" call. @@ -32716,7 +32716,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.create" call. @@ -32817,7 +32817,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.delete" call. @@ -32930,7 +32930,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.get" call. @@ -33036,7 +33036,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.import" call. @@ -33169,7 +33169,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.list" call. @@ -33310,7 +33310,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.patch" call. @@ -33419,7 +33419,7 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.purge" call. @@ -33529,7 +33529,7 @@ func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.cancel" call. @@ -33639,7 +33639,7 @@ func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.get" call. @@ -33768,7 +33768,7 @@ func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.list" call. @@ -33893,7 +33893,7 @@ func (c *ProjectsLocationsDataStoresCompletionSuggestionsImportCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.completionSuggestions.import" call. @@ -33997,7 +33997,7 @@ func (c *ProjectsLocationsDataStoresCompletionSuggestionsPurgeCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.completionSuggestions.purge" call. @@ -34114,7 +34114,7 @@ func (c *ProjectsLocationsDataStoresControlsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.create" call. @@ -34213,7 +34213,7 @@ func (c *ProjectsLocationsDataStoresControlsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.delete" call. @@ -34323,7 +34323,7 @@ func (c *ProjectsLocationsDataStoresControlsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.get" call. @@ -34458,7 +34458,7 @@ func (c *ProjectsLocationsDataStoresControlsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.list" call. @@ -34592,7 +34592,7 @@ func (c *ProjectsLocationsDataStoresControlsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.controls.patch" call. @@ -34700,7 +34700,7 @@ func (c *ProjectsLocationsDataStoresConversationsConverseCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.converse" call. @@ -34805,7 +34805,7 @@ func (c *ProjectsLocationsDataStoresConversationsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.create" call. @@ -34904,7 +34904,7 @@ func (c *ProjectsLocationsDataStoresConversationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.delete" call. @@ -35014,7 +35014,7 @@ func (c *ProjectsLocationsDataStoresConversationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.get" call. @@ -35156,7 +35156,7 @@ func (c *ProjectsLocationsDataStoresConversationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.list" call. @@ -35292,7 +35292,7 @@ func (c *ProjectsLocationsDataStoresConversationsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.conversations.patch" call. @@ -35402,7 +35402,7 @@ func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.get" call. @@ -35531,7 +35531,7 @@ func (c *ProjectsLocationsDataStoresModelsOperationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.list" call. @@ -35662,7 +35662,7 @@ func (c *ProjectsLocationsDataStoresOperationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.operations.get" call. @@ -35791,7 +35791,7 @@ func (c *ProjectsLocationsDataStoresOperationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.operations.list" call. @@ -35925,7 +35925,7 @@ func (c *ProjectsLocationsDataStoresSchemasCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.create" call. @@ -36023,7 +36023,7 @@ func (c *ProjectsLocationsDataStoresSchemasDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.delete" call. @@ -36133,7 +36133,7 @@ func (c *ProjectsLocationsDataStoresSchemasGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.get" call. @@ -36261,7 +36261,7 @@ func (c *ProjectsLocationsDataStoresSchemasListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.list" call. @@ -36395,7 +36395,7 @@ func (c *ProjectsLocationsDataStoresSchemasPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.schemas.patch" call. @@ -36502,7 +36502,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.answer" call. @@ -36613,7 +36613,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.get" call. @@ -36739,7 +36739,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.list" call. @@ -36873,7 +36873,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.patch" call. @@ -36983,7 +36983,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.recommend" call. @@ -37091,7 +37091,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.search" call. @@ -37217,7 +37217,7 @@ func (c *ProjectsLocationsDataStoresSessionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.create" call. @@ -37316,7 +37316,7 @@ func (c *ProjectsLocationsDataStoresSessionsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.delete" call. @@ -37426,7 +37426,7 @@ func (c *ProjectsLocationsDataStoresSessionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.get" call. @@ -37568,7 +37568,7 @@ func (c *ProjectsLocationsDataStoresSessionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.list" call. @@ -37702,7 +37702,7 @@ func (c *ProjectsLocationsDataStoresSessionsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.patch" call. @@ -37812,7 +37812,7 @@ func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.sessions.answers.get" call. @@ -37917,7 +37917,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCal googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call. @@ -38022,7 +38022,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call. @@ -38125,7 +38125,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "siteSearchEngine": c.siteSearchEngine, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.recrawlUris" call. @@ -38230,7 +38230,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.batchCreate" call. @@ -38334,7 +38334,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.create" call. @@ -38435,7 +38435,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.delete" call. @@ -38548,7 +38548,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.get" call. @@ -38679,7 +38679,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.list" call. @@ -38805,7 +38805,7 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.patch" call. @@ -38909,7 +38909,7 @@ func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.import" call. @@ -39013,7 +39013,7 @@ func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.purge" call. @@ -39150,7 +39150,7 @@ func (c *ProjectsLocationsDataStoresUserEventsCollectCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.collect" call. @@ -39258,7 +39258,7 @@ func (c *ProjectsLocationsDataStoresUserEventsImportCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.import" call. @@ -39366,7 +39366,7 @@ func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.purge" call. @@ -39481,7 +39481,7 @@ func (c *ProjectsLocationsDataStoresUserEventsWriteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.write" call. @@ -39585,7 +39585,7 @@ func (c *ProjectsLocationsEvaluationsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.evaluations.create" call. @@ -39697,7 +39697,7 @@ func (c *ProjectsLocationsEvaluationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.evaluations.get" call. @@ -39828,7 +39828,7 @@ func (c *ProjectsLocationsEvaluationsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.evaluations.list" call. @@ -39981,7 +39981,7 @@ func (c *ProjectsLocationsEvaluationsListResultsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "evaluation": c.evaluation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.evaluations.listResults" call. @@ -40112,7 +40112,7 @@ func (c *ProjectsLocationsEvaluationsOperationsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.evaluations.operations.get" call. @@ -40215,7 +40215,7 @@ func (c *ProjectsLocationsGroundingConfigsCheckCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "groundingConfig": c.groundingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.groundingConfigs.check" call. @@ -40327,7 +40327,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.operations.get" call. @@ -40456,7 +40456,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.operations.list" call. @@ -40581,7 +40581,7 @@ func (c *ProjectsLocationsRankingConfigsRankCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "rankingConfig": c.rankingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.rankingConfigs.rank" call. @@ -40698,7 +40698,7 @@ func (c *ProjectsLocationsSampleQuerySetsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.create" call. @@ -40799,7 +40799,7 @@ func (c *ProjectsLocationsSampleQuerySetsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.delete" call. @@ -40912,7 +40912,7 @@ func (c *ProjectsLocationsSampleQuerySetsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.get" call. @@ -41044,7 +41044,7 @@ func (c *ProjectsLocationsSampleQuerySetsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.list" call. @@ -41179,7 +41179,7 @@ func (c *ProjectsLocationsSampleQuerySetsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.patch" call. @@ -41289,7 +41289,7 @@ func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.operations.get" call. @@ -41406,7 +41406,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.create" call. @@ -41507,7 +41507,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.delete" call. @@ -41620,7 +41620,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.get" call. @@ -41728,7 +41728,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesImportCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.import" call. @@ -41860,7 +41860,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.list" call. @@ -41995,7 +41995,7 @@ func (c *ProjectsLocationsSampleQuerySetsSampleQueriesPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.sampleQuerySets.sampleQueries.patch" call. @@ -42132,7 +42132,7 @@ func (c *ProjectsLocationsUserEventsCollectCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.userEvents.collect" call. @@ -42247,7 +42247,7 @@ func (c *ProjectsLocationsUserEventsWriteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.locations.userEvents.write" call. @@ -42357,7 +42357,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.operations.get" call. @@ -42486,7 +42486,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "discoveryengine.projects.operations.list" call. diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index d4345c4e389..dbc18a48a10 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -97,16 +97,15 @@ const apiVersion = "v1" const basePath = "https://displayvideo.googleapis.com/" const basePathTemplate = "https://displayvideo.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://displayvideo.mtls.googleapis.com/" -const defaultUniverseDomain = "googleapis.com" // OAuth2 scopes used by this API. const ( - // Create, see, edit, and permanently delete your Display & Video 360 - // entities and reports + // Create, see, edit, and permanently delete your Display & Video 360 entities + // and reports DisplayVideoScope = "https://www.googleapis.com/auth/display-video" - // Create, see, and edit Display & Video 360 Campaign entities and see - // billing invoices + // Create, see, and edit Display & Video 360 Campaign entities and see billing + // invoices DisplayVideoMediaplanningScope = "https://www.googleapis.com/auth/display-video-mediaplanning" // Private Service: @@ -130,7 +129,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) - opts = append(opts, internaloption.WithDefaultUniverseDomain(defaultUniverseDomain)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -704,21 +703,19 @@ type UsersService struct { type ActivateManualTriggerRequest struct { } -// ActiveViewVideoViewabilityMetricConfig: Configuration for custom -// Active View video viewability metrics. +// ActiveViewVideoViewabilityMetricConfig: Configuration for custom Active View +// video viewability metrics. type ActiveViewVideoViewabilityMetricConfig struct { // DisplayName: Required. The display name of the custom metric. DisplayName string `json:"displayName,omitempty"` - - // MinimumDuration: The minimum visible video duration required (in - // seconds) in order for an impression to be recorded. You must specify - // minimum_duration, minimum_quartile or both. If both are specified, an - // impression meets the metric criteria if either requirement is met - // (whichever happens first). + // MinimumDuration: The minimum visible video duration required (in seconds) in + // order for an impression to be recorded. You must specify minimum_duration, + // minimum_quartile or both. If both are specified, an impression meets the + // metric criteria if either requirement is met (whichever happens first). // // Possible values: - // "VIDEO_DURATION_UNSPECIFIED" - Value is not specified or is unknown - // in this version. + // "VIDEO_DURATION_UNSPECIFIED" - Value is not specified or is unknown in + // this version. // "VIDEO_DURATION_SECONDS_NONE" - No duration value. // "VIDEO_DURATION_SECONDS_0" - 0 seconds. // "VIDEO_DURATION_SECONDS_1" - 1 second. @@ -740,68 +737,58 @@ type ActiveViewVideoViewabilityMetricConfig struct { // "VIDEO_DURATION_SECONDS_45" - 45 seconds. // "VIDEO_DURATION_SECONDS_60" - 60 seconds. MinimumDuration string `json:"minimumDuration,omitempty"` - - // MinimumQuartile: The minimum visible video duration required, based - // on the video quartiles, in order for an impression to be recorded. - // You must specify minimum_duration, minimum_quartile or both. If both - // are specified, an impression meets the metric criteria if either - // requirement is met (whichever happens first). + // MinimumQuartile: The minimum visible video duration required, based on the + // video quartiles, in order for an impression to be recorded. You must specify + // minimum_duration, minimum_quartile or both. If both are specified, an + // impression meets the metric criteria if either requirement is met (whichever + // happens first). // // Possible values: - // "VIDEO_DURATION_QUARTILE_UNSPECIFIED" - Value is not specified or - // is unknown in this version. + // "VIDEO_DURATION_QUARTILE_UNSPECIFIED" - Value is not specified or is + // unknown in this version. // "VIDEO_DURATION_QUARTILE_NONE" - No quartile value. // "VIDEO_DURATION_QUARTILE_FIRST" - First quartile. // "VIDEO_DURATION_QUARTILE_SECOND" - Second quartile (midpoint). // "VIDEO_DURATION_QUARTILE_THIRD" - Third quartile. // "VIDEO_DURATION_QUARTILE_FOURTH" - Fourth quartile (completion). MinimumQuartile string `json:"minimumQuartile,omitempty"` - - // MinimumViewability: Required. The minimum percentage of the video - // ad's pixels visible on the screen in order for an impression to be - // recorded. + // MinimumViewability: Required. The minimum percentage of the video ad's + // pixels visible on the screen in order for an impression to be recorded. // // Possible values: - // "VIEWABILITY_PERCENT_UNSPECIFIED" - Value is not specified or is - // unknown in this version. + // "VIEWABILITY_PERCENT_UNSPECIFIED" - Value is not specified or is unknown + // in this version. // "VIEWABILITY_PERCENT_0" - 0% viewable. // "VIEWABILITY_PERCENT_25" - 25% viewable. // "VIEWABILITY_PERCENT_50" - 50% viewable. // "VIEWABILITY_PERCENT_75" - 75% viewable. // "VIEWABILITY_PERCENT_100" - 100% viewable. MinimumViewability string `json:"minimumViewability,omitempty"` - - // MinimumVolume: Required. The minimum percentage of the video ad's - // volume required in order for an impression to be recorded. + // MinimumVolume: Required. The minimum percentage of the video ad's volume + // required in order for an impression to be recorded. // // Possible values: - // "VIDEO_VOLUME_PERCENT_UNSPECIFIED" - Value is not specified or is - // unknown in this version. + // "VIDEO_VOLUME_PERCENT_UNSPECIFIED" - Value is not specified or is unknown + // in this version. // "VIDEO_VOLUME_PERCENT_0" - 0% volume. // "VIDEO_VOLUME_PERCENT_10" - 10% volume. MinimumVolume string `json:"minimumVolume,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActiveViewVideoViewabilityMetricConfig) MarshalJSON() ([]byte, error) { +func (s ActiveViewVideoViewabilityMetricConfig) MarshalJSON() ([]byte, error) { type NoMethod ActiveViewVideoViewabilityMetricConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Adloox: Details of Adloox settings. @@ -809,8 +796,8 @@ type Adloox struct { // ExcludedAdlooxCategories: Adloox's brand safety settings. // // Possible values: - // "ADLOOX_UNSPECIFIED" - This enum is only a placeholder and it - // doesn't specify any Adloox option. + // "ADLOOX_UNSPECIFIED" - This enum is only a placeholder and it doesn't + // specify any Adloox option. // "ADULT_CONTENT_HARD" - Adult content (hard). // "ADULT_CONTENT_SOFT" - Adult content (soft). // "ILLEGAL_CONTENT" - Illegal content. @@ -820,404 +807,315 @@ type Adloox struct { // "LOW_VIEWABILITY_DOMAINS" - Low viewability domains. // "FRAUD" - Fraud. ExcludedAdlooxCategories []string `json:"excludedAdlooxCategories,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ExcludedAdlooxCategories") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ExcludedAdlooxCategories") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExcludedAdlooxCategories") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExcludedAdlooxCategories") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Adloox) MarshalJSON() ([]byte, error) { +func (s Adloox) MarshalJSON() ([]byte, error) { type NoMethod Adloox - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Advertiser: A single advertiser in Display & Video 360 (DV360). type Advertiser struct { - // AdServerConfig: Required. Immutable. Ad server related settings of - // the advertiser. + // AdServerConfig: Required. Immutable. Ad server related settings of the + // advertiser. AdServerConfig *AdvertiserAdServerConfig `json:"adServerConfig,omitempty"` - - // AdvertiserId: Output only. The unique ID of the advertiser. Assigned - // by the system. + // AdvertiserId: Output only. The unique ID of the advertiser. Assigned by the + // system. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // CreativeConfig: Required. Creative related settings of the - // advertiser. + // CreativeConfig: Required. Creative related settings of the advertiser. CreativeConfig *AdvertiserCreativeConfig `json:"creativeConfig,omitempty"` - - // DataAccessConfig: Settings that control how advertiser data may be - // accessed. + // DataAccessConfig: Settings that control how advertiser data may be accessed. DataAccessConfig *AdvertiserDataAccessConfig `json:"dataAccessConfig,omitempty"` - - // DisplayName: Required. The display name of the advertiser. Must be - // UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the advertiser. Must be UTF-8 + // encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // EntityStatus: Required. Controls whether or not insertion orders and - // line items of the advertiser can spend their budgets and bid on - // inventory. * Accepted values are `ENTITY_STATUS_ACTIVE`, - // `ENTITY_STATUS_PAUSED` and `ENTITY_STATUS_SCHEDULED_FOR_DELETION`. * - // If set to `ENTITY_STATUS_SCHEDULED_FOR_DELETION`, the advertiser will - // be deleted 30 days from when it was first scheduled for deletion. + // EntityStatus: Required. Controls whether or not insertion orders and line + // items of the advertiser can spend their budgets and bid on inventory. * + // Accepted values are `ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_PAUSED` and + // `ENTITY_STATUS_SCHEDULED_FOR_DELETION`. * If set to + // `ENTITY_STATUS_SCHEDULED_FOR_DELETION`, the advertiser will be deleted 30 + // days from when it was first scheduled for deletion. // // Possible values: - // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not - // specified or is unknown in this version. - // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend - // budget. - // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and - // budget spending are disabled. An entity can be deleted after - // archived. Deleted entities cannot be retrieved. - // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and - // budget spending are disabled. - // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for - // the entity. - // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled - // for deletion. + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not specified + // or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and budget + // spending are disabled. An entity can be deleted after archived. Deleted + // entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and budget + // spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for the + // entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled for + // deletion. EntityStatus string `json:"entityStatus,omitempty"` - // GeneralConfig: Required. General settings of the advertiser. GeneralConfig *AdvertiserGeneralConfig `json:"generalConfig,omitempty"` - // IntegrationDetails: Integration details of the advertiser. Only - // integrationCode is currently applicable to advertiser. Other fields - // of IntegrationDetails are not supported and will be ignored if - // provided. + // integrationCode is currently applicable to advertiser. Other fields of + // IntegrationDetails are not supported and will be ignored if provided. IntegrationDetails *IntegrationDetails `json:"integrationDetails,omitempty"` - // Name: Output only. The resource name of the advertiser. Name string `json:"name,omitempty"` - // PartnerId: Required. Immutable. The unique ID of the partner that the // advertiser belongs to. PartnerId int64 `json:"partnerId,omitempty,string"` - - // PrismaEnabled: Whether integration with Mediaocean (Prisma) is - // enabled. By enabling this, you agree to the following: On behalf of - // my company, I authorize Mediaocean (Prisma) to send budget segment - // plans to Google, and I authorize Google to send corresponding - // reporting and invoices from DV360 to Mediaocean for the purposes of - // budget planning, billing, and reconciliation for this advertiser. + // PrismaEnabled: Whether integration with Mediaocean (Prisma) is enabled. By + // enabling this, you agree to the following: On behalf of my company, I + // authorize Mediaocean (Prisma) to send budget segment plans to Google, and I + // authorize Google to send corresponding reporting and invoices from DV360 to + // Mediaocean for the purposes of budget planning, billing, and reconciliation + // for this advertiser. PrismaEnabled bool `json:"prismaEnabled,omitempty"` - - // ServingConfig: Targeting settings related to ad serving of the - // advertiser. + // ServingConfig: Targeting settings related to ad serving of the advertiser. ServingConfig *AdvertiserTargetingConfig `json:"servingConfig,omitempty"` - - // UpdateTime: Output only. The timestamp when the advertiser was last - // updated. Assigned by the system. + // UpdateTime: Output only. The timestamp when the advertiser was last updated. + // Assigned by the system. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdServerConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdServerConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Advertiser) MarshalJSON() ([]byte, error) { +func (s Advertiser) MarshalJSON() ([]byte, error) { type NoMethod Advertiser - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdvertiserAdServerConfig: Ad server related settings of an -// advertiser. +// AdvertiserAdServerConfig: Ad server related settings of an advertiser. type AdvertiserAdServerConfig struct { - // CmHybridConfig: The configuration for advertisers that use both - // Campaign Manager 360 (CM360) and third-party ad servers. + // CmHybridConfig: The configuration for advertisers that use both Campaign + // Manager 360 (CM360) and third-party ad servers. CmHybridConfig *CmHybridConfig `json:"cmHybridConfig,omitempty"` - - // ThirdPartyOnlyConfig: The configuration for advertisers that use - // third-party ad servers only. + // ThirdPartyOnlyConfig: The configuration for advertisers that use third-party + // ad servers only. ThirdPartyOnlyConfig *ThirdPartyOnlyConfig `json:"thirdPartyOnlyConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CmHybridConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CmHybridConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CmHybridConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserAdServerConfig) MarshalJSON() ([]byte, error) { +func (s AdvertiserAdServerConfig) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserAdServerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdvertiserCreativeConfig: Creatives related settings of an -// advertiser. +// AdvertiserCreativeConfig: Creatives related settings of an advertiser. type AdvertiserCreativeConfig struct { - // DynamicCreativeEnabled: Whether or not the advertiser is enabled for - // dynamic creatives. + // DynamicCreativeEnabled: Whether or not the advertiser is enabled for dynamic + // creatives. DynamicCreativeEnabled bool `json:"dynamicCreativeEnabled,omitempty"` - - // IasClientId: An ID for configuring campaign monitoring provided by - // Integral Ad Service (IAS). The DV360 system will append an IAS - // "Campaign Monitor" tag containing this ID to the creative tag. + // IasClientId: An ID for configuring campaign monitoring provided by Integral + // Ad Service (IAS). The DV360 system will append an IAS "Campaign Monitor" tag + // containing this ID to the creative tag. IasClientId int64 `json:"iasClientId,omitempty,string"` - - // ObaComplianceDisabled: Whether or not to use DV360's Online - // Behavioral Advertising (OBA) compliance. Starting on February 9, - // 2024, this field will be affected by an update to the Display & Video - // 360 API Terms of Service. See our announcement - // (//ads-developers.googleblog.com/2024/01/update-to-display-video-360-a - // pi-terms.html) for more detail. Warning: Changing OBA settings may - // cause the audit status of your creatives to be reset by some ad - // exchanges, making them ineligible to serve until they are - // re-approved. + // ObaComplianceDisabled: Whether or not to use DV360's Online Behavioral + // Advertising (OBA) compliance. Starting on February 9, 2024, this field will + // be affected by an update to the Display & Video 360 API Terms of Service. + // See our announcement + // (//ads-developers.googleblog.com/2024/01/update-to-display-video-360-api-term + // s.html) for more detail. Warning: Changing OBA settings may cause the audit + // status of your creatives to be reset by some ad exchanges, making them + // ineligible to serve until they are re-approved. ObaComplianceDisabled bool `json:"obaComplianceDisabled,omitempty"` - - // VideoCreativeDataSharingAuthorized: By setting this field to `true`, - // you, on behalf of your company, authorize Google to use video - // creatives associated with this Display & Video 360 advertiser to - // provide reporting and features related to the advertiser's television - // campaigns. Applicable only when the advertiser has a CM360 hybrid ad - // server configuration. + // VideoCreativeDataSharingAuthorized: By setting this field to `true`, you, on + // behalf of your company, authorize Google to use video creatives associated + // with this Display & Video 360 advertiser to provide reporting and features + // related to the advertiser's television campaigns. Applicable only when the + // advertiser has a CM360 hybrid ad server configuration. VideoCreativeDataSharingAuthorized bool `json:"videoCreativeDataSharingAuthorized,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DynamicCreativeEnabled") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DynamicCreativeEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DynamicCreativeEnabled") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DynamicCreativeEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserCreativeConfig) MarshalJSON() ([]byte, error) { +func (s AdvertiserCreativeConfig) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserCreativeConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdvertiserDataAccessConfig: Settings that control how advertiser -// related data may be accessed. +// AdvertiserDataAccessConfig: Settings that control how advertiser related +// data may be accessed. type AdvertiserDataAccessConfig struct { - // SdfConfig: Structured Data Files (SDF) settings for the advertiser. - // If not specified, the SDF settings of the parent partner are used. + // SdfConfig: Structured Data Files (SDF) settings for the advertiser. If not + // specified, the SDF settings of the parent partner are used. SdfConfig *AdvertiserSdfConfig `json:"sdfConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "SdfConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SdfConfig") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SdfConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserDataAccessConfig) MarshalJSON() ([]byte, error) { +func (s AdvertiserDataAccessConfig) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserDataAccessConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AdvertiserGeneralConfig: General settings of an advertiser. type AdvertiserGeneralConfig struct { - // CurrencyCode: Required. Immutable. Advertiser's currency in ISO 4217 - // format. Accepted codes and the currencies they represent are: - // Currency Code : Currency Name * `ARS` : Argentine Peso * `AUD` : - // Australian Dollar * `BRL` : Brazilian Real * `CAD` : Canadian Dollar - // * `CHF` : Swiss Franc * `CLP` : Chilean Peso * `CNY` : Chinese Yuan * - // `COP` : Colombian Peso * `CZK` : Czech Koruna * `DKK` : Danish Krone - // * `EGP` : Egyption Pound * `EUR` : Euro * `GBP` : British Pound * - // `HKD` : Hong Kong Dollar * `HUF` : Hungarian Forint * `IDR` : - // Indonesian Rupiah * `ILS` : Israeli Shekel * `INR` : Indian Rupee * - // `JPY` : Japanese Yen * `KRW` : South Korean Won * `MXN` : Mexican - // Pesos * `MYR` : Malaysian Ringgit * `NGN` : Nigerian Naira * `NOK` : - // Norwegian Krone * `NZD` : New Zealand Dollar * `PEN` : Peruvian Nuevo - // Sol * `PLN` : Polish Zloty * `RON` : New Romanian Leu * `RUB` : - // Russian Ruble * `SEK` : Swedish Krona * `TRY` : Turkish Lira * `TWD` - // : New Taiwan Dollar * `USD` : US Dollar * `ZAR` : South African Rand + // CurrencyCode: Required. Immutable. Advertiser's currency in ISO 4217 format. + // Accepted codes and the currencies they represent are: Currency Code : + // Currency Name * `ARS` : Argentine Peso * `AUD` : Australian Dollar * `BRL` : + // Brazilian Real * `CAD` : Canadian Dollar * `CHF` : Swiss Franc * `CLP` : + // Chilean Peso * `CNY` : Chinese Yuan * `COP` : Colombian Peso * `CZK` : Czech + // Koruna * `DKK` : Danish Krone * `EGP` : Egyption Pound * `EUR` : Euro * + // `GBP` : British Pound * `HKD` : Hong Kong Dollar * `HUF` : Hungarian Forint + // * `IDR` : Indonesian Rupiah * `ILS` : Israeli Shekel * `INR` : Indian Rupee + // * `JPY` : Japanese Yen * `KRW` : South Korean Won * `MXN` : Mexican Pesos * + // `MYR` : Malaysian Ringgit * `NGN` : Nigerian Naira * `NOK` : Norwegian Krone + // * `NZD` : New Zealand Dollar * `PEN` : Peruvian Nuevo Sol * `PLN` : Polish + // Zloty * `RON` : New Romanian Leu * `RUB` : Russian Ruble * `SEK` : Swedish + // Krona * `TRY` : Turkish Lira * `TWD` : New Taiwan Dollar * `USD` : US Dollar + // * `ZAR` : South African Rand CurrencyCode string `json:"currencyCode,omitempty"` - - // DomainUrl: Required. The domain URL of the advertiser's primary - // website. The system will send this information to publishers that - // require website URL to associate a campaign with an advertiser. - // Provide a URL with no path or query string, beginning with `http:` or - // `https:`. For example, http://www.example.com + // DomainUrl: Required. The domain URL of the advertiser's primary website. The + // system will send this information to publishers that require website URL to + // associate a campaign with an advertiser. Provide a URL with no path or query + // string, beginning with `http:` or `https:`. For example, + // http://www.example.com DomainUrl string `json:"domainUrl,omitempty"` - - // TimeZone: Output only. The standard TZ database name of the - // advertiser's time zone. For example, `America/New_York`. See more at: - // https://en.wikipedia.org/wiki/List_of_tz_database_time_zones For - // CM360 hybrid advertisers, the time zone is the same as that of the - // associated CM360 account; for third-party only advertisers, the time - // zone is the same as that of the parent partner. + // TimeZone: Output only. The standard TZ database name of the advertiser's + // time zone. For example, `America/New_York`. See more at: + // https://en.wikipedia.org/wiki/List_of_tz_database_time_zones For CM360 + // hybrid advertisers, the time zone is the same as that of the associated + // CM360 account; for third-party only advertisers, the time zone is the same + // as that of the parent partner. TimeZone string `json:"timeZone,omitempty"` - // ForceSendFields is a list of field names (e.g. "CurrencyCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrencyCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CurrencyCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserGeneralConfig) MarshalJSON() ([]byte, error) { +func (s AdvertiserGeneralConfig) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserGeneralConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdvertiserSdfConfig: Structured Data Files (SDF) settings of an -// advertiser. +// AdvertiserSdfConfig: Structured Data Files (SDF) settings of an advertiser. type AdvertiserSdfConfig struct { - // OverridePartnerSdfConfig: Whether or not this advertiser overrides - // the SDF configuration of its parent partner. By default, an - // advertiser inherits the SDF configuration from the parent partner. To - // override the partner configuration, set this field to `true` and - // provide the new configuration in sdfConfig. + // OverridePartnerSdfConfig: Whether or not this advertiser overrides the SDF + // configuration of its parent partner. By default, an advertiser inherits the + // SDF configuration from the parent partner. To override the partner + // configuration, set this field to `true` and provide the new configuration in + // sdfConfig. OverridePartnerSdfConfig bool `json:"overridePartnerSdfConfig,omitempty"` - // SdfConfig: The SDF configuration for the advertiser. * Required when // overridePartnerSdfConfig is `true`. * Output only when // overridePartnerSdfConfig is `false`. SdfConfig *SdfConfig `json:"sdfConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "OverridePartnerSdfConfig") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "OverridePartnerSdfConfig") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OverridePartnerSdfConfig") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OverridePartnerSdfConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertiserSdfConfig) MarshalJSON() ([]byte, error) { +func (s AdvertiserSdfConfig) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserSdfConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdvertiserTargetingConfig: Targeting settings related to ad serving -// of an advertiser. +// AdvertiserTargetingConfig: Targeting settings related to ad serving of an +// advertiser. type AdvertiserTargetingConfig struct { - // ExemptTvFromViewabilityTargeting: Whether or not connected TV devices - // are exempt from viewability targeting for all video line items under - // the advertiser. + // ExemptTvFromViewabilityTargeting: Whether or not connected TV devices are + // exempt from viewability targeting for all video line items under the + // advertiser. ExemptTvFromViewabilityTargeting bool `json:"exemptTvFromViewabilityTargeting,omitempty"` - // ForceSendFields is a list of field names (e.g. // "ExemptTvFromViewabilityTargeting") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "ExemptTvFromViewabilityTargeting") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // "ExemptTvFromViewabilityTargeting") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } -func (s *AdvertiserTargetingConfig) MarshalJSON() ([]byte, error) { +func (s AdvertiserTargetingConfig) MarshalJSON() ([]byte, error) { type NoMethod AdvertiserTargetingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AgeRangeAssignedTargetingOptionDetails: Represents a targetable age -// range. This will be populated in the details field of an -// AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_AGE_RANGE`. +// AgeRangeAssignedTargetingOptionDetails: Represents a targetable age range. +// This will be populated in the details field of an AssignedTargetingOption +// when targeting_type is `TARGETING_TYPE_AGE_RANGE`. type AgeRangeAssignedTargetingOptionDetails struct { - // AgeRange: Required. The age range of an audience. We only support - // targeting a continuous age range of an audience. Thus, the age range - // represented in this field can be 1) targeted solely, or, 2) part of a - // larger continuous age range. The reach of a continuous age range - // targeting can be expanded by also targeting an audience of an unknown - // age. + // AgeRange: Required. The age range of an audience. We only support targeting + // a continuous age range of an audience. Thus, the age range represented in + // this field can be 1) targeted solely, or, 2) part of a larger continuous age + // range. The reach of a continuous age range targeting can be expanded by also + // targeting an audience of an unknown age. // // Possible values: - // "AGE_RANGE_UNSPECIFIED" - Default value when age range is not - // specified in this version. This enum is a placeholder for default - // value and does not represent a real age range option. + // "AGE_RANGE_UNSPECIFIED" - Default value when age range is not specified in + // this version. This enum is a placeholder for default value and does not + // represent a real age range option. // "AGE_RANGE_18_24" - The age range of the audience is 18 to 24. // "AGE_RANGE_25_34" - The age range of the audience is 25 to 34. // "AGE_RANGE_35_44" - The age range of the audience is 35 to 44. @@ -1226,44 +1124,37 @@ type AgeRangeAssignedTargetingOptionDetails struct { // "AGE_RANGE_65_PLUS" - The age range of the audience is 65 and up. // "AGE_RANGE_UNKNOWN" - The age range of the audience is unknown. AgeRange string `json:"ageRange,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_AGE_RANGE`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_AGE_RANGE`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgeRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AgeRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AgeRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AgeRangeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s AgeRangeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod AgeRangeAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AgeRangeTargetingOptionDetails: Represents a targetable age range. -// This will be populated in the age_range_details field when -// targeting_type is `TARGETING_TYPE_AGE_RANGE`. +// AgeRangeTargetingOptionDetails: Represents a targetable age range. This will +// be populated in the age_range_details field when targeting_type is +// `TARGETING_TYPE_AGE_RANGE`. type AgeRangeTargetingOptionDetails struct { // AgeRange: Output only. The age range of an audience. // // Possible values: - // "AGE_RANGE_UNSPECIFIED" - Default value when age range is not - // specified in this version. This enum is a placeholder for default - // value and does not represent a real age range option. + // "AGE_RANGE_UNSPECIFIED" - Default value when age range is not specified in + // this version. This enum is a placeholder for default value and does not + // represent a real age range option. // "AGE_RANGE_18_24" - The age range of the audience is 18 to 24. // "AGE_RANGE_25_34" - The age range of the audience is 25 to 34. // "AGE_RANGE_35_44" - The age range of the audience is 35 to 44. @@ -1272,48 +1163,40 @@ type AgeRangeTargetingOptionDetails struct { // "AGE_RANGE_65_PLUS" - The age range of the audience is 65 and up. // "AGE_RANGE_UNKNOWN" - The age range of the audience is unknown. AgeRange string `json:"ageRange,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgeRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AgeRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AgeRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AgeRangeTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s AgeRangeTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod AgeRangeTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AppAssignedTargetingOptionDetails: Details for assigned app targeting // option. This will be populated in the details field of an // AssignedTargetingOption when targeting_type is `TARGETING_TYPE_APP`. type AppAssignedTargetingOptionDetails struct { - // AppId: Required. The ID of the app. Android's Play store app uses - // bundle ID, for example `com.google.android.gm`. Apple's App store app - // ID uses 9 digit string, for example `422689480`. + // AppId: Required. The ID of the app. Android's Play store app uses bundle ID, + // for example `com.google.android.gm`. Apple's App store app ID uses 9 digit + // string, for example `422689480`. AppId string `json:"appId,omitempty"` - - // AppPlatform: Indicates the platform of the targeted app. If this - // field is not specified, the app platform will be assumed to be mobile - // (i.e., Android or iOS), and we will derive the appropriate mobile - // platform from the app ID. + // AppPlatform: Indicates the platform of the targeted app. If this field is + // not specified, the app platform will be assumed to be mobile (i.e., Android + // or iOS), and we will derive the appropriate mobile platform from the app ID. // // Possible values: // "APP_PLATFORM_UNSPECIFIED" - Default value when app platform is not - // specified in this version. This enum is a placeholder for default - // value and does not represent a real platform option. + // specified in this version. This enum is a placeholder for default value and + // does not represent a real platform option. // "APP_PLATFORM_IOS" - The app platform is iOS. // "APP_PLATFORM_ANDROID" - The app platform is Android. // "APP_PLATFORM_ROKU" - The app platform is Roku. @@ -1323,1142 +1206,914 @@ type AppAssignedTargetingOptionDetails struct { // "APP_PLATFORM_XBOX" - The app platform is Xbox. // "APP_PLATFORM_SAMSUNG_TV" - The app platform is Samsung TV. // "APP_PLATFORM_ANDROID_TV" - The app platform is Android TV. - // "APP_PLATFORM_GENERIC_CTV" - The app platform is a CTV platform - // that is not explicitly listed elsewhere. + // "APP_PLATFORM_GENERIC_CTV" - The app platform is a CTV platform that is + // not explicitly listed elsewhere. AppPlatform string `json:"appPlatform,omitempty"` - // DisplayName: Output only. The display name of the app. DisplayName string `json:"displayName,omitempty"` - // Negative: Indicates if this option is being negatively targeted. Negative bool `json:"negative,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AppId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AppAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s AppAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod AppAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AppCategoryAssignedTargetingOptionDetails: Details for assigned app -// category targeting option. This will be populated in the -// app_category_details field of an AssignedTargetingOption when -// targeting_type is `TARGETING_TYPE_APP_CATEGORY`. +// AppCategoryAssignedTargetingOptionDetails: Details for assigned app category +// targeting option. This will be populated in the app_category_details field +// of an AssignedTargetingOption when targeting_type is +// `TARGETING_TYPE_APP_CATEGORY`. type AppCategoryAssignedTargetingOptionDetails struct { // DisplayName: Output only. The display name of the app category. DisplayName string `json:"displayName,omitempty"` - // Negative: Indicates if this option is being negatively targeted. Negative bool `json:"negative,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_APP_CATEGORY`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AppCategoryAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s AppCategoryAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod AppCategoryAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AppCategoryTargetingOptionDetails: Represents a targetable collection -// of apps. A collection lets you target dynamic groups of related apps -// that are maintained by the platform, for example `All Apps/Google -// Play/Games`. This will be populated in the app_category_details field -// when targeting_type is `TARGETING_TYPE_APP_CATEGORY`. +// AppCategoryTargetingOptionDetails: Represents a targetable collection of +// apps. A collection lets you target dynamic groups of related apps that are +// maintained by the platform, for example `All Apps/Google Play/Games`. This +// will be populated in the app_category_details field when targeting_type is +// `TARGETING_TYPE_APP_CATEGORY`. type AppCategoryTargetingOptionDetails struct { // DisplayName: Output only. The name of the app collection. DisplayName string `json:"displayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AppCategoryTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s AppCategoryTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod AppCategoryTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Asset: A single asset. type Asset struct { - // Content: The asset content. For uploaded assets, the content is the - // serving path. + // Content: The asset content. For uploaded assets, the content is the serving + // path. Content string `json:"content,omitempty"` - - // MediaId: Media ID of the uploaded asset. This is a unique identifier - // for the asset. This ID can be passed to other API calls, e.g. - // CreateCreative to associate the asset with a creative. The Media ID - // space updated on **April 5, 2023**. Update media IDs cached before - // **April 5, 2023** by retrieving the new media ID from associated - // creative resources or re-uploading the asset. + // MediaId: Media ID of the uploaded asset. This is a unique identifier for the + // asset. This ID can be passed to other API calls, e.g. CreateCreative to + // associate the asset with a creative. The Media ID space updated on **April + // 5, 2023**. Update media IDs cached before **April 5, 2023** by retrieving + // the new media ID from associated creative resources or re-uploading the + // asset. MediaId int64 `json:"mediaId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Asset) MarshalJSON() ([]byte, error) { +func (s Asset) MarshalJSON() ([]byte, error) { type NoMethod Asset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AssetAssociation: Asset association for the creative. type AssetAssociation struct { // Asset: The associated asset. Asset *Asset `json:"asset,omitempty"` - // Role: The role of this asset for the creative. // // Possible values: - // "ASSET_ROLE_UNSPECIFIED" - Asset role is not specified or is - // unknown in this version. + // "ASSET_ROLE_UNSPECIFIED" - Asset role is not specified or is unknown in + // this version. // "ASSET_ROLE_MAIN" - The asset is the main asset of the creative. // "ASSET_ROLE_BACKUP" - The asset is a backup asset of the creative. // "ASSET_ROLE_POLITE_LOAD" - The asset is a polite load asset of the // creative. - // "ASSET_ROLE_HEADLINE" - Headline of a native creative. The content - // must be UTF-8 encoded with a length of no more than 25 characters. - // This role is only supported in following creative_type: * - // `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * - // `CREATIVE_TYPE_NATIVE_VIDEO` - // "ASSET_ROLE_LONG_HEADLINE" - Long headline of a native creative. - // The content must be UTF-8 encoded with a length of no more than 50 - // characters. This role is only supported in following creative_type: * - // `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * - // `CREATIVE_TYPE_NATIVE_VIDEO` - // "ASSET_ROLE_BODY" - Body text of a native creative. The content - // must be UTF-8 encoded with a length of no more than 90 characters. + // "ASSET_ROLE_HEADLINE" - Headline of a native creative. The content must be + // UTF-8 encoded with a length of no more than 25 characters. This role is only + // supported in following creative_type: * `CREATIVE_TYPE_NATIVE` * + // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` + // "ASSET_ROLE_LONG_HEADLINE" - Long headline of a native creative. The + // content must be UTF-8 encoded with a length of no more than 50 characters. // This role is only supported in following creative_type: * // `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * // `CREATIVE_TYPE_NATIVE_VIDEO` - // "ASSET_ROLE_LONG_BODY" - Long body text of a native creative. The - // content must be UTF-8 encoded with a length of no more than 150 - // characters. This role is only supported in following creative_type: * + // "ASSET_ROLE_BODY" - Body text of a native creative. The content must be + // UTF-8 encoded with a length of no more than 90 characters. This role is only + // supported in following creative_type: * `CREATIVE_TYPE_NATIVE` * + // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` + // "ASSET_ROLE_LONG_BODY" - Long body text of a native creative. The content + // must be UTF-8 encoded with a length of no more than 150 characters. This + // role is only supported in following creative_type: * `CREATIVE_TYPE_NATIVE` + // * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` + // "ASSET_ROLE_CAPTION_URL" - A short, friendly version of the landing page + // URL to show in the creative. This URL gives people an idea of where they'll + // arrive after they click on the creative. The content must be UTF-8 encoded + // with a length of no more than 30 characters. For example, if the landing + // page URL is 'http://www.example.com/page', the caption URL can be + // 'example.com'. The protocol (http://) is optional, but the URL can't contain + // spaces or special characters. This role is only supported in following + // creative_type: * `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` + // * `CREATIVE_TYPE_NATIVE_VIDEO` + // "ASSET_ROLE_CALL_TO_ACTION" - The text to use on the call-to-action button + // of a native creative. The content must be UTF-8 encoded with a length of no + // more than 15 characters. This role is only supported in following + // creative_type: * `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` + // * `CREATIVE_TYPE_NATIVE_VIDEO` + // "ASSET_ROLE_ADVERTISER_NAME" - The text that identifies the advertiser or + // brand name. The content must be UTF-8 encoded with a length of no more than + // 25 characters. This role is only supported in following creative_type: * // `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * // `CREATIVE_TYPE_NATIVE_VIDEO` - // "ASSET_ROLE_CAPTION_URL" - A short, friendly version of the landing - // page URL to show in the creative. This URL gives people an idea of - // where they'll arrive after they click on the creative. The content - // must be UTF-8 encoded with a length of no more than 30 characters. - // For example, if the landing page URL is - // 'http://www.example.com/page', the caption URL can be 'example.com'. - // The protocol (http://) is optional, but the URL can't contain spaces - // or special characters. This role is only supported in following - // creative_type: * `CREATIVE_TYPE_NATIVE` * - // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` - // "ASSET_ROLE_CALL_TO_ACTION" - The text to use on the call-to-action - // button of a native creative. The content must be UTF-8 encoded with a - // length of no more than 15 characters. This role is only supported in - // following creative_type: * `CREATIVE_TYPE_NATIVE` * - // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` - // "ASSET_ROLE_ADVERTISER_NAME" - The text that identifies the - // advertiser or brand name. The content must be UTF-8 encoded with a - // length of no more than 25 characters. This role is only supported in - // following creative_type: * `CREATIVE_TYPE_NATIVE` * - // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` - // "ASSET_ROLE_PRICE" - The purchase price of your app in the Google - // play store or iOS app store (for example, $5.99). Note that this - // value is not automatically synced with the actual value listed in the - // store. It will always be the one provided when save the creative. The - // content must be UTF-8 encoded with a length of no more than 15 - // characters. Assets of this role are read-only. - // "ASSET_ROLE_ANDROID_APP_ID" - The ID of an Android app in the - // Google play store. You can find this ID in the App’s Google Play - // Store URL after ‘id’. For example, in + // "ASSET_ROLE_PRICE" - The purchase price of your app in the Google play + // store or iOS app store (for example, $5.99). Note that this value is not + // automatically synced with the actual value listed in the store. It will + // always be the one provided when save the creative. The content must be UTF-8 + // encoded with a length of no more than 15 characters. Assets of this role are + // read-only. + // "ASSET_ROLE_ANDROID_APP_ID" - The ID of an Android app in the Google play + // store. You can find this ID in the App’s Google Play Store URL after + // ‘id’. For example, in // https://play.google.com/store/apps/details?id=com.company.appname the // identifier is com.company.appname. Assets of this role are read-only. - // "ASSET_ROLE_IOS_APP_ID" - The ID of an iOS app in the Apple app - // store. This ID number can be found in the Apple App Store URL as the - // string of numbers directly after "id". For example, in - // https://apps.apple.com/us/app/gmail-email-by-google/id422689480 the - // ID is 422689480. Assets of this role are read-only. - // "ASSET_ROLE_RATING" - The rating of an app in the Google play store - // or iOS app store. Note that this value is not automatically synced - // with the actual rating in the store. It will always be the one - // provided when save the creative. Assets of this role are read-only. - // "ASSET_ROLE_ICON" - The icon of a creative. This role is only - // supported and required in following creative_type: * - // `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` - // "ASSET_ROLE_COVER_IMAGE" - The cover image of a native video - // creative. This role is only supported and required in following - // creative_type: * `CREATIVE_TYPE_VIDEO` + // "ASSET_ROLE_IOS_APP_ID" - The ID of an iOS app in the Apple app store. + // This ID number can be found in the Apple App Store URL as the string of + // numbers directly after "id". For example, in + // https://apps.apple.com/us/app/gmail-email-by-google/id422689480 the ID is + // 422689480. Assets of this role are read-only. + // "ASSET_ROLE_RATING" - The rating of an app in the Google play store or iOS + // app store. Note that this value is not automatically synced with the actual + // rating in the store. It will always be the one provided when save the + // creative. Assets of this role are read-only. + // "ASSET_ROLE_ICON" - The icon of a creative. This role is only supported + // and required in following creative_type: * `CREATIVE_TYPE_NATIVE` * + // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` + // "ASSET_ROLE_COVER_IMAGE" - The cover image of a native video creative. + // This role is only supported and required in following creative_type: * + // `CREATIVE_TYPE_VIDEO` Role string `json:"role,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Asset") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Asset") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Asset") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AssetAssociation) MarshalJSON() ([]byte, error) { +func (s AssetAssociation) MarshalJSON() ([]byte, error) { type NoMethod AssetAssociation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AssignedInventorySource: An assignment between a targetable inventory -// source and an inventory source group. +// AssignedInventorySource: An assignment between a targetable inventory source +// and an inventory source group. type AssignedInventorySource struct { // AssignedInventorySourceId: Output only. The unique ID of the assigned - // inventory source. The ID is only unique within a given inventory - // source group. It may be reused in other contexts. + // inventory source. The ID is only unique within a given inventory source + // group. It may be reused in other contexts. AssignedInventorySourceId int64 `json:"assignedInventorySourceId,omitempty,string"` - - // InventorySourceId: Required. The ID of the inventory source entity - // being targeted. + // InventorySourceId: Required. The ID of the inventory source entity being + // targeted. InventorySourceId string `json:"inventorySourceId,omitempty"` - - // Name: Output only. The resource name of the assigned inventory - // source. + // Name: Output only. The resource name of the assigned inventory source. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedInventorySourceId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedInventorySourceId") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AssignedInventorySourceId") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssignedInventorySourceId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AssignedInventorySource) MarshalJSON() ([]byte, error) { +func (s AssignedInventorySource) MarshalJSON() ([]byte, error) { type NoMethod AssignedInventorySource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AssignedLocation: An assignment between a location list and a -// relevant targeting option. +// AssignedLocation: An assignment between a location list and a relevant +// targeting option. type AssignedLocation struct { - // AssignedLocationId: Output only. The unique ID of the assigned - // location. The ID is only unique within a location list. It may be - // reused in other contexts. + // AssignedLocationId: Output only. The unique ID of the assigned location. The + // ID is only unique within a location list. It may be reused in other + // contexts. AssignedLocationId int64 `json:"assignedLocationId,omitempty,string"` - // Name: Output only. The resource name of the assigned location. Name string `json:"name,omitempty"` - - // TargetingOptionId: Required. The ID of the targeting option assigned - // to the location list. + // TargetingOptionId: Required. The ID of the targeting option assigned to the + // location list. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AssignedLocationId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedLocationId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedLocationId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedLocationId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AssignedLocation) MarshalJSON() ([]byte, error) { +func (s AssignedLocation) MarshalJSON() ([]byte, error) { type NoMethod AssignedLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AssignedTargetingOption: A single assigned targeting option, which -// defines the state of a targeting option for an entity with targeting -// settings. +// AssignedTargetingOption: A single assigned targeting option, which defines +// the state of a targeting option for an entity with targeting settings. type AssignedTargetingOption struct { - // AgeRangeDetails: Age range details. This field will be populated when - // the targeting_type is `TARGETING_TYPE_AGE_RANGE`. + // AgeRangeDetails: Age range details. This field will be populated when the + // targeting_type is `TARGETING_TYPE_AGE_RANGE`. AgeRangeDetails *AgeRangeAssignedTargetingOptionDetails `json:"ageRangeDetails,omitempty"` - - // AppCategoryDetails: App category details. This field will be - // populated when the targeting_type is `TARGETING_TYPE_APP_CATEGORY`. + // AppCategoryDetails: App category details. This field will be populated when + // the targeting_type is `TARGETING_TYPE_APP_CATEGORY`. AppCategoryDetails *AppCategoryAssignedTargetingOptionDetails `json:"appCategoryDetails,omitempty"` - // AppDetails: App details. This field will be populated when the // targeting_type is `TARGETING_TYPE_APP`. AppDetails *AppAssignedTargetingOptionDetails `json:"appDetails,omitempty"` - // AssignedTargetingOptionId: Output only. The unique ID of the assigned // targeting option. The ID is only unique within a given resource and // targeting type. It may be reused in other contexts. AssignedTargetingOptionId string `json:"assignedTargetingOptionId,omitempty"` - // AudienceGroupDetails: Audience targeting details. This field will be - // populated when the targeting_type is `TARGETING_TYPE_AUDIENCE_GROUP`. - // You can only target one audience group option per resource. + // populated when the targeting_type is `TARGETING_TYPE_AUDIENCE_GROUP`. You + // can only target one audience group option per resource. AudienceGroupDetails *AudienceGroupAssignedTargetingOptionDetails `json:"audienceGroupDetails,omitempty"` - - // AudioContentTypeDetails: Audio content type details. This field will - // be populated when the targeting_type is - // `TARGETING_TYPE_AUDIO_CONTENT_TYPE`. + // AudioContentTypeDetails: Audio content type details. This field will be + // populated when the targeting_type is `TARGETING_TYPE_AUDIO_CONTENT_TYPE`. AudioContentTypeDetails *AudioContentTypeAssignedTargetingOptionDetails `json:"audioContentTypeDetails,omitempty"` - - // AuthorizedSellerStatusDetails: Authorized seller status details. This - // field will be populated when the targeting_type is + // AuthorizedSellerStatusDetails: Authorized seller status details. This field + // will be populated when the targeting_type is // `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`. You can only target one - // authorized seller status option per resource. If a resource doesn't - // have an authorized seller status option, all authorized sellers - // indicated as DIRECT or RESELLER in the ads.txt file are targeted by - // default. + // authorized seller status option per resource. If a resource doesn't have an + // authorized seller status option, all authorized sellers indicated as DIRECT + // or RESELLER in the ads.txt file are targeted by default. AuthorizedSellerStatusDetails *AuthorizedSellerStatusAssignedTargetingOptionDetails `json:"authorizedSellerStatusDetails,omitempty"` - - // BrowserDetails: Browser details. This field will be populated when - // the targeting_type is `TARGETING_TYPE_BROWSER`. + // BrowserDetails: Browser details. This field will be populated when the + // targeting_type is `TARGETING_TYPE_BROWSER`. BrowserDetails *BrowserAssignedTargetingOptionDetails `json:"browserDetails,omitempty"` - - // BusinessChainDetails: Business chain details. This field will be - // populated when the targeting_type is `TARGETING_TYPE_BUSINESS_CHAIN`. + // BusinessChainDetails: Business chain details. This field will be populated + // when the targeting_type is `TARGETING_TYPE_BUSINESS_CHAIN`. BusinessChainDetails *BusinessChainAssignedTargetingOptionDetails `json:"businessChainDetails,omitempty"` - - // CarrierAndIspDetails: Carrier and ISP details. This field will be - // populated when the targeting_type is - // `TARGETING_TYPE_CARRIER_AND_ISP`. + // CarrierAndIspDetails: Carrier and ISP details. This field will be populated + // when the targeting_type is `TARGETING_TYPE_CARRIER_AND_ISP`. CarrierAndIspDetails *CarrierAndIspAssignedTargetingOptionDetails `json:"carrierAndIspDetails,omitempty"` - - // CategoryDetails: Category details. This field will be populated when - // the targeting_type is `TARGETING_TYPE_CATEGORY`. Targeting a category - // will also target its subcategories. If a category is excluded from - // targeting and a subcategory is included, the exclusion will take - // precedence. + // CategoryDetails: Category details. This field will be populated when the + // targeting_type is `TARGETING_TYPE_CATEGORY`. Targeting a category will also + // target its subcategories. If a category is excluded from targeting and a + // subcategory is included, the exclusion will take precedence. CategoryDetails *CategoryAssignedTargetingOptionDetails `json:"categoryDetails,omitempty"` - - // ChannelDetails: Channel details. This field will be populated when - // the targeting_type is `TARGETING_TYPE_CHANNEL`. + // ChannelDetails: Channel details. This field will be populated when the + // targeting_type is `TARGETING_TYPE_CHANNEL`. ChannelDetails *ChannelAssignedTargetingOptionDetails `json:"channelDetails,omitempty"` - // ContentDurationDetails: Content duration details. This field will be - // populated when the targeting_type is - // `TARGETING_TYPE_CONTENT_DURATION`. + // populated when the targeting_type is `TARGETING_TYPE_CONTENT_DURATION`. ContentDurationDetails *ContentDurationAssignedTargetingOptionDetails `json:"contentDurationDetails,omitempty"` - - // ContentGenreDetails: Content genre details. This field will be - // populated when the targeting_type is `TARGETING_TYPE_CONTENT_GENRE`. + // ContentGenreDetails: Content genre details. This field will be populated + // when the targeting_type is `TARGETING_TYPE_CONTENT_GENRE`. ContentGenreDetails *ContentGenreAssignedTargetingOptionDetails `json:"contentGenreDetails,omitempty"` - - // ContentInstreamPositionDetails: Content instream position details. - // This field will be populated when the targeting_type is + // ContentInstreamPositionDetails: Content instream position details. This + // field will be populated when the targeting_type is // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. ContentInstreamPositionDetails *ContentInstreamPositionAssignedTargetingOptionDetails `json:"contentInstreamPositionDetails,omitempty"` - - // ContentOutstreamPositionDetails: Content outstream position details. - // This field will be populated when the targeting_type is + // ContentOutstreamPositionDetails: Content outstream position details. This + // field will be populated when the targeting_type is // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. ContentOutstreamPositionDetails *ContentOutstreamPositionAssignedTargetingOptionDetails `json:"contentOutstreamPositionDetails,omitempty"` - - // ContentStreamTypeDetails: Content duration details. This field will - // be populated when the TargetingType is - // `TARGETING_TYPE_CONTENT_STREAM_TYPE`. + // ContentStreamTypeDetails: Content duration details. This field will be + // populated when the TargetingType is `TARGETING_TYPE_CONTENT_STREAM_TYPE`. ContentStreamTypeDetails *ContentStreamTypeAssignedTargetingOptionDetails `json:"contentStreamTypeDetails,omitempty"` - - // DayAndTimeDetails: Day and time details. This field will be populated - // when the targeting_type is `TARGETING_TYPE_DAY_AND_TIME`. + // DayAndTimeDetails: Day and time details. This field will be populated when + // the targeting_type is `TARGETING_TYPE_DAY_AND_TIME`. DayAndTimeDetails *DayAndTimeAssignedTargetingOptionDetails `json:"dayAndTimeDetails,omitempty"` - - // DeviceMakeModelDetails: Device make and model details. This field - // will be populated when the targeting_type is - // `TARGETING_TYPE_DEVICE_MAKE_MODEL`. + // DeviceMakeModelDetails: Device make and model details. This field will be + // populated when the targeting_type is `TARGETING_TYPE_DEVICE_MAKE_MODEL`. DeviceMakeModelDetails *DeviceMakeModelAssignedTargetingOptionDetails `json:"deviceMakeModelDetails,omitempty"` - - // DeviceTypeDetails: Device Type details. This field will be populated - // when the targeting_type is `TARGETING_TYPE_DEVICE_TYPE`. + // DeviceTypeDetails: Device Type details. This field will be populated when + // the targeting_type is `TARGETING_TYPE_DEVICE_TYPE`. DeviceTypeDetails *DeviceTypeAssignedTargetingOptionDetails `json:"deviceTypeDetails,omitempty"` - - // DigitalContentLabelExclusionDetails: Digital content label details. - // This field will be populated when the targeting_type is - // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`. Digital content - // labels are targeting exclusions. Advertiser level digital content - // label exclusions, if set, are always applied in serving (even though - // they aren't visible in resource settings). Resource settings can - // exclude content labels in addition to advertiser exclusions, but - // can't override them. A line item won't serve if all the digital - // content labels are excluded. + // DigitalContentLabelExclusionDetails: Digital content label details. This + // field will be populated when the targeting_type is + // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`. Digital content labels are + // targeting exclusions. Advertiser level digital content label exclusions, if + // set, are always applied in serving (even though they aren't visible in + // resource settings). Resource settings can exclude content labels in addition + // to advertiser exclusions, but can't override them. A line item won't serve + // if all the digital content labels are excluded. DigitalContentLabelExclusionDetails *DigitalContentLabelAssignedTargetingOptionDetails `json:"digitalContentLabelExclusionDetails,omitempty"` - - // EnvironmentDetails: Environment details. This field will be populated - // when the targeting_type is `TARGETING_TYPE_ENVIRONMENT`. + // EnvironmentDetails: Environment details. This field will be populated when + // the targeting_type is `TARGETING_TYPE_ENVIRONMENT`. EnvironmentDetails *EnvironmentAssignedTargetingOptionDetails `json:"environmentDetails,omitempty"` - - // ExchangeDetails: Exchange details. This field will be populated when - // the targeting_type is `TARGETING_TYPE_EXCHANGE`. + // ExchangeDetails: Exchange details. This field will be populated when the + // targeting_type is `TARGETING_TYPE_EXCHANGE`. ExchangeDetails *ExchangeAssignedTargetingOptionDetails `json:"exchangeDetails,omitempty"` - // GenderDetails: Gender details. This field will be populated when the // targeting_type is `TARGETING_TYPE_GENDER`. GenderDetails *GenderAssignedTargetingOptionDetails `json:"genderDetails,omitempty"` - - // GeoRegionDetails: Geographic region details. This field will be - // populated when the targeting_type is `TARGETING_TYPE_GEO_REGION`. + // GeoRegionDetails: Geographic region details. This field will be populated + // when the targeting_type is `TARGETING_TYPE_GEO_REGION`. GeoRegionDetails *GeoRegionAssignedTargetingOptionDetails `json:"geoRegionDetails,omitempty"` - // HouseholdIncomeDetails: Household income details. This field will be - // populated when the targeting_type is - // `TARGETING_TYPE_HOUSEHOLD_INCOME`. + // populated when the targeting_type is `TARGETING_TYPE_HOUSEHOLD_INCOME`. HouseholdIncomeDetails *HouseholdIncomeAssignedTargetingOptionDetails `json:"householdIncomeDetails,omitempty"` - - // Inheritance: Output only. The inheritance status of the assigned - // targeting option. + // Inheritance: Output only. The inheritance status of the assigned targeting + // option. // // Possible values: - // "INHERITANCE_UNSPECIFIED" - The inheritance is unspecified or - // unknown. - // "NOT_INHERITED" - The assigned targeting option is not inherited - // from higher level entity. - // "INHERITED_FROM_PARTNER" - The assigned targeting option is - // inherited from partner targeting settings. - // "INHERITED_FROM_ADVERTISER" - The assigned targeting option is - // inherited from advertiser targeting settings. + // "INHERITANCE_UNSPECIFIED" - The inheritance is unspecified or unknown. + // "NOT_INHERITED" - The assigned targeting option is not inherited from + // higher level entity. + // "INHERITED_FROM_PARTNER" - The assigned targeting option is inherited from + // partner targeting settings. + // "INHERITED_FROM_ADVERTISER" - The assigned targeting option is inherited + // from advertiser targeting settings. Inheritance string `json:"inheritance,omitempty"` - // InventorySourceDetails: Inventory source details. This field will be - // populated when the targeting_type is - // `TARGETING_TYPE_INVENTORY_SOURCE`. + // populated when the targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE`. InventorySourceDetails *InventorySourceAssignedTargetingOptionDetails `json:"inventorySourceDetails,omitempty"` - - // InventorySourceGroupDetails: Inventory source group details. This - // field will be populated when the targeting_type is + // InventorySourceGroupDetails: Inventory source group details. This field will + // be populated when the targeting_type is // `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`. InventorySourceGroupDetails *InventorySourceGroupAssignedTargetingOptionDetails `json:"inventorySourceGroupDetails,omitempty"` - - // KeywordDetails: Keyword details. This field will be populated when - // the targeting_type is `TARGETING_TYPE_KEYWORD`. A maximum of 5000 - // direct negative keywords can be assigned to a resource. No limit on - // number of positive keywords that can be assigned. + // KeywordDetails: Keyword details. This field will be populated when the + // targeting_type is `TARGETING_TYPE_KEYWORD`. A maximum of 5000 direct + // negative keywords can be assigned to a resource. No limit on number of + // positive keywords that can be assigned. KeywordDetails *KeywordAssignedTargetingOptionDetails `json:"keywordDetails,omitempty"` - - // LanguageDetails: Language details. This field will be populated when - // the targeting_type is `TARGETING_TYPE_LANGUAGE`. + // LanguageDetails: Language details. This field will be populated when the + // targeting_type is `TARGETING_TYPE_LANGUAGE`. LanguageDetails *LanguageAssignedTargetingOptionDetails `json:"languageDetails,omitempty"` - - // Name: Output only. The resource name for this assigned targeting - // option. + // Name: Output only. The resource name for this assigned targeting option. Name string `json:"name,omitempty"` - - // NativeContentPositionDetails: Native content position details. This - // field will be populated when the targeting_type is + // NativeContentPositionDetails: Native content position details. This field + // will be populated when the targeting_type is // `TARGETING_TYPE_NATIVE_CONTENT_POSITION`. NativeContentPositionDetails *NativeContentPositionAssignedTargetingOptionDetails `json:"nativeContentPositionDetails,omitempty"` - - // NegativeKeywordListDetails: Keyword details. This field will be - // populated when the targeting_type is - // `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`. A maximum of 4 negative - // keyword lists can be assigned to a resource. + // NegativeKeywordListDetails: Keyword details. This field will be populated + // when the targeting_type is `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`. A maximum + // of 4 negative keyword lists can be assigned to a resource. NegativeKeywordListDetails *NegativeKeywordListAssignedTargetingOptionDetails `json:"negativeKeywordListDetails,omitempty"` - - // OmidDetails: Open Measurement enabled inventory details. This field - // will be populated when the targeting_type is `TARGETING_TYPE_OMID`. + // OmidDetails: Open Measurement enabled inventory details. This field will be + // populated when the targeting_type is `TARGETING_TYPE_OMID`. OmidDetails *OmidAssignedTargetingOptionDetails `json:"omidDetails,omitempty"` - - // OnScreenPositionDetails: On screen position details. This field will - // be populated when the targeting_type is - // `TARGETING_TYPE_ON_SCREEN_POSITION`. + // OnScreenPositionDetails: On screen position details. This field will be + // populated when the targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`. OnScreenPositionDetails *OnScreenPositionAssignedTargetingOptionDetails `json:"onScreenPositionDetails,omitempty"` - // OperatingSystemDetails: Operating system details. This field will be - // populated when the targeting_type is - // `TARGETING_TYPE_OPERATING_SYSTEM`. + // populated when the targeting_type is `TARGETING_TYPE_OPERATING_SYSTEM`. OperatingSystemDetails *OperatingSystemAssignedTargetingOptionDetails `json:"operatingSystemDetails,omitempty"` - - // ParentalStatusDetails: Parental status details. This field will be - // populated when the targeting_type is - // `TARGETING_TYPE_PARENTAL_STATUS`. + // ParentalStatusDetails: Parental status details. This field will be populated + // when the targeting_type is `TARGETING_TYPE_PARENTAL_STATUS`. ParentalStatusDetails *ParentalStatusAssignedTargetingOptionDetails `json:"parentalStatusDetails,omitempty"` - // PoiDetails: POI details. This field will be populated when the // targeting_type is `TARGETING_TYPE_POI`. PoiDetails *PoiAssignedTargetingOptionDetails `json:"poiDetails,omitempty"` - - // ProximityLocationListDetails: Proximity location list details. This - // field will be populated when the targeting_type is + // ProximityLocationListDetails: Proximity location list details. This field + // will be populated when the targeting_type is // `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`. ProximityLocationListDetails *ProximityLocationListAssignedTargetingOptionDetails `json:"proximityLocationListDetails,omitempty"` - - // RegionalLocationListDetails: Regional location list details. This - // field will be populated when the targeting_type is + // RegionalLocationListDetails: Regional location list details. This field will + // be populated when the targeting_type is // `TARGETING_TYPE_REGIONAL_LOCATION_LIST`. RegionalLocationListDetails *RegionalLocationListAssignedTargetingOptionDetails `json:"regionalLocationListDetails,omitempty"` - - // SensitiveCategoryExclusionDetails: Sensitive category details. This - // field will be populated when the targeting_type is - // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. Sensitive categories - // are targeting exclusions. Advertiser level sensitive category - // exclusions, if set, are always applied in serving (even though they - // aren't visible in resource settings). Resource settings can exclude - // sensitive categories in addition to advertiser exclusions, but can't - // override them. + // SensitiveCategoryExclusionDetails: Sensitive category details. This field + // will be populated when the targeting_type is + // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. Sensitive categories are + // targeting exclusions. Advertiser level sensitive category exclusions, if + // set, are always applied in serving (even though they aren't visible in + // resource settings). Resource settings can exclude sensitive categories in + // addition to advertiser exclusions, but can't override them. SensitiveCategoryExclusionDetails *SensitiveCategoryAssignedTargetingOptionDetails `json:"sensitiveCategoryExclusionDetails,omitempty"` - - // SubExchangeDetails: Sub-exchange details. This field will be - // populated when the targeting_type is `TARGETING_TYPE_SUB_EXCHANGE`. + // SubExchangeDetails: Sub-exchange details. This field will be populated when + // the targeting_type is `TARGETING_TYPE_SUB_EXCHANGE`. SubExchangeDetails *SubExchangeAssignedTargetingOptionDetails `json:"subExchangeDetails,omitempty"` - - // TargetingType: Output only. Identifies the type of this assigned - // targeting option. + // TargetingType: Output only. Identifies the type of this assigned targeting + // option. // // Possible values: - // "TARGETING_TYPE_UNSPECIFIED" - Default value when type is not - // specified or is unknown in this version. - // "TARGETING_TYPE_CHANNEL" - Target a channel (a custom group of - // related websites or apps). - // "TARGETING_TYPE_APP_CATEGORY" - Target an app category (for - // example, education or puzzle games). - // "TARGETING_TYPE_APP" - Target a specific app (for example, Angry - // Birds). - // "TARGETING_TYPE_URL" - Target a specific url (for example, - // quora.com). - // "TARGETING_TYPE_DAY_AND_TIME" - Target ads during a chosen time - // period on a specific day. - // "TARGETING_TYPE_AGE_RANGE" - Target ads to a specific age range - // (for example, 18-24). - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST" - Target ads to the - // specified regions on a regional location list. - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST" - Target ads to the - // specified points of interest on a proximity location list. - // "TARGETING_TYPE_GENDER" - Target ads to a specific gender (for - // example, female or male). - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE" - Target a specific video player - // size for video ads. - // "TARGETING_TYPE_USER_REWARDED_CONTENT" - Target user rewarded - // content for video ads. - // "TARGETING_TYPE_PARENTAL_STATUS" - Target ads to a specific - // parental status (for example, parent or not a parent). - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION" - Target video or audio - // ads in a specific content instream position (for example, pre-roll, - // mid-roll, or post-roll). - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION" - Target ads in a - // specific content outstream position. - // "TARGETING_TYPE_DEVICE_TYPE" - Target ads to a specific device type - // (for example, tablet or connected TV). - // "TARGETING_TYPE_AUDIENCE_GROUP" - Target ads to an audience or - // groups of audiences. Singleton field, at most one can exist on a - // single Lineitem at a time. + // "TARGETING_TYPE_UNSPECIFIED" - Default value when type is not specified or + // is unknown in this version. + // "TARGETING_TYPE_CHANNEL" - Target a channel (a custom group of related + // websites or apps). + // "TARGETING_TYPE_APP_CATEGORY" - Target an app category (for example, + // education or puzzle games). + // "TARGETING_TYPE_APP" - Target a specific app (for example, Angry Birds). + // "TARGETING_TYPE_URL" - Target a specific url (for example, quora.com). + // "TARGETING_TYPE_DAY_AND_TIME" - Target ads during a chosen time period on + // a specific day. + // "TARGETING_TYPE_AGE_RANGE" - Target ads to a specific age range (for + // example, 18-24). + // "TARGETING_TYPE_REGIONAL_LOCATION_LIST" - Target ads to the specified + // regions on a regional location list. + // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST" - Target ads to the specified + // points of interest on a proximity location list. + // "TARGETING_TYPE_GENDER" - Target ads to a specific gender (for example, + // female or male). + // "TARGETING_TYPE_VIDEO_PLAYER_SIZE" - Target a specific video player size + // for video ads. + // "TARGETING_TYPE_USER_REWARDED_CONTENT" - Target user rewarded content for + // video ads. + // "TARGETING_TYPE_PARENTAL_STATUS" - Target ads to a specific parental + // status (for example, parent or not a parent). + // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION" - Target video or audio ads in + // a specific content instream position (for example, pre-roll, mid-roll, or + // post-roll). + // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION" - Target ads in a specific + // content outstream position. + // "TARGETING_TYPE_DEVICE_TYPE" - Target ads to a specific device type (for + // example, tablet or connected TV). + // "TARGETING_TYPE_AUDIENCE_GROUP" - Target ads to an audience or groups of + // audiences. Singleton field, at most one can exist on a single Lineitem at a + // time. // "TARGETING_TYPE_BROWSER" - Target ads to specific web browsers (for // example, Chrome). - // "TARGETING_TYPE_HOUSEHOLD_INCOME" - Target ads to a specific - // household income range (for example, top 10%). - // "TARGETING_TYPE_ON_SCREEN_POSITION" - Target ads in a specific on - // screen position. - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER" - Filter web sites through - // third party verification (for example, IAS or DoubleVerify). - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION" - Filter web sites - // by specific digital content label ratings (for example, DL-MA: - // suitable only for mature audiences). - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION" - Filter website - // content by sensitive categories (for example, adult). - // "TARGETING_TYPE_ENVIRONMENT" - Target ads to a specific environment - // (for example, web or app). + // "TARGETING_TYPE_HOUSEHOLD_INCOME" - Target ads to a specific household + // income range (for example, top 10%). + // "TARGETING_TYPE_ON_SCREEN_POSITION" - Target ads in a specific on screen + // position. + // "TARGETING_TYPE_THIRD_PARTY_VERIFIER" - Filter web sites through third + // party verification (for example, IAS or DoubleVerify). + // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION" - Filter web sites by + // specific digital content label ratings (for example, DL-MA: suitable only + // for mature audiences). + // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION" - Filter website content by + // sensitive categories (for example, adult). + // "TARGETING_TYPE_ENVIRONMENT" - Target ads to a specific environment (for + // example, web or app). // "TARGETING_TYPE_CARRIER_AND_ISP" - Target ads to a specific network - // carrier or internet service provider (ISP) (for example, Comcast or - // Orange). - // "TARGETING_TYPE_OPERATING_SYSTEM" - Target ads to a specific - // operating system (for example, macOS). - // "TARGETING_TYPE_DEVICE_MAKE_MODEL" - Target ads to a specific - // device make or model (for example, Roku or Samsung). - // "TARGETING_TYPE_KEYWORD" - Target ads to a specific keyword (for - // example, dog or retriever). - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST" - Target ads to a specific - // negative keyword list. - // "TARGETING_TYPE_VIEWABILITY" - Target ads to a specific viewability - // (for example, 80% viewable). - // "TARGETING_TYPE_CATEGORY" - Target ads to a specific content - // category (for example, arts & entertainment). - // "TARGETING_TYPE_INVENTORY_SOURCE" - Purchase impressions from - // specific deals and auction packages. + // carrier or internet service provider (ISP) (for example, Comcast or Orange). + // "TARGETING_TYPE_OPERATING_SYSTEM" - Target ads to a specific operating + // system (for example, macOS). + // "TARGETING_TYPE_DEVICE_MAKE_MODEL" - Target ads to a specific device make + // or model (for example, Roku or Samsung). + // "TARGETING_TYPE_KEYWORD" - Target ads to a specific keyword (for example, + // dog or retriever). + // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST" - Target ads to a specific negative + // keyword list. + // "TARGETING_TYPE_VIEWABILITY" - Target ads to a specific viewability (for + // example, 80% viewable). + // "TARGETING_TYPE_CATEGORY" - Target ads to a specific content category (for + // example, arts & entertainment). + // "TARGETING_TYPE_INVENTORY_SOURCE" - Purchase impressions from specific + // deals and auction packages. // "TARGETING_TYPE_LANGUAGE" - Target ads to a specific language (for // example, English or Japanese). // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS" - Target ads to ads.txt - // authorized sellers. If no targeting option of this type is assigned, - // the resource uses the "Authorized Direct Sellers and Resellers" - // option by default. - // "TARGETING_TYPE_GEO_REGION" - Target ads to a specific regional - // location (for example, a city or state). - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP" - Purchase impressions from - // a group of deals and auction packages. - // "TARGETING_TYPE_EXCHANGE" - Purchase impressions from specific - // exchanges. + // authorized sellers. If no targeting option of this type is assigned, the + // resource uses the "Authorized Direct Sellers and Resellers" option by + // default. + // "TARGETING_TYPE_GEO_REGION" - Target ads to a specific regional location + // (for example, a city or state). + // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP" - Purchase impressions from a + // group of deals and auction packages. + // "TARGETING_TYPE_EXCHANGE" - Purchase impressions from specific exchanges. // "TARGETING_TYPE_SUB_EXCHANGE" - Purchase impressions from specific // sub-exchanges. - // "TARGETING_TYPE_POI" - Target ads around a specific point of - // interest, such as a notable building, a street address, or - // latitude/longitude coordinates. + // "TARGETING_TYPE_POI" - Target ads around a specific point of interest, + // such as a notable building, a street address, or latitude/longitude + // coordinates. // "TARGETING_TYPE_BUSINESS_CHAIN" - Target ads around locations of a // business chain within a specific geo region. - // "TARGETING_TYPE_CONTENT_DURATION" - Target ads to a specific video - // content duration. - // "TARGETING_TYPE_CONTENT_STREAM_TYPE" - Target ads to a specific - // video content stream type. - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION" - Target ads to a specific - // native content position. + // "TARGETING_TYPE_CONTENT_DURATION" - Target ads to a specific video content + // duration. + // "TARGETING_TYPE_CONTENT_STREAM_TYPE" - Target ads to a specific video + // content stream type. + // "TARGETING_TYPE_NATIVE_CONTENT_POSITION" - Target ads to a specific native + // content position. // "TARGETING_TYPE_OMID" - Target ads in an Open Measurement enabled // inventory. - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE" - Target ads to a specific - // audio content type. - // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content - // genre. + // "TARGETING_TYPE_AUDIO_CONTENT_TYPE" - Target ads to a specific audio + // content type. + // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content genre. TargetingType string `json:"targetingType,omitempty"` - - // ThirdPartyVerifierDetails: Third party verification details. This - // field will be populated when the targeting_type is + // ThirdPartyVerifierDetails: Third party verification details. This field will + // be populated when the targeting_type is // `TARGETING_TYPE_THIRD_PARTY_VERIFIER`. ThirdPartyVerifierDetails *ThirdPartyVerifierAssignedTargetingOptionDetails `json:"thirdPartyVerifierDetails,omitempty"` - // UrlDetails: URL details. This field will be populated when the // targeting_type is `TARGETING_TYPE_URL`. UrlDetails *UrlAssignedTargetingOptionDetails `json:"urlDetails,omitempty"` - - // UserRewardedContentDetails: User rewarded content details. This field - // will be populated when the targeting_type is + // UserRewardedContentDetails: User rewarded content details. This field will + // be populated when the targeting_type is // `TARGETING_TYPE_USER_REWARDED_CONTENT`. UserRewardedContentDetails *UserRewardedContentAssignedTargetingOptionDetails `json:"userRewardedContentDetails,omitempty"` - // VideoPlayerSizeDetails: Video player size details. This field will be - // populated when the targeting_type is - // `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. + // populated when the targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. VideoPlayerSizeDetails *VideoPlayerSizeAssignedTargetingOptionDetails `json:"videoPlayerSizeDetails,omitempty"` - - // ViewabilityDetails: Viewability details. This field will be populated - // when the targeting_type is `TARGETING_TYPE_VIEWABILITY`. You can only - // target one viewability option per resource. + // ViewabilityDetails: Viewability details. This field will be populated when + // the targeting_type is `TARGETING_TYPE_VIEWABILITY`. You can only target one + // viewability option per resource. ViewabilityDetails *ViewabilityAssignedTargetingOptionDetails `json:"viewabilityDetails,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AgeRangeDetails") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AgeRangeDetails") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AgeRangeDetails") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AssignedTargetingOption) MarshalJSON() ([]byte, error) { +func (s AssignedTargetingOption) MarshalJSON() ([]byte, error) { type NoMethod AssignedTargetingOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AssignedUserRole: A single assigned user role, which defines a user's // authorized interaction with a specified partner or advertiser. type AssignedUserRole struct { - // AdvertiserId: The ID of the advertiser that the assigend user role - // applies to. + // AdvertiserId: The ID of the advertiser that the assigend user role applies + // to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // AssignedUserRoleId: Output only. The ID of the assigned user role. AssignedUserRoleId string `json:"assignedUserRoleId,omitempty"` - - // PartnerId: The ID of the partner that the assigned user role applies - // to. + // PartnerId: The ID of the partner that the assigned user role applies to. PartnerId int64 `json:"partnerId,omitempty,string"` - // UserRole: Required. The user role to assign to a user for the entity. // // Possible values: // "USER_ROLE_UNSPECIFIED" - Default value when the user role is not // specified or is unknown in this version. - // "ADMIN" - The user can manage campaigns, creatives, insertion - // orders, line items, and reports for the entity. They can view and - // edit billing information, create or modify users, and enable or - // disable exchanges. This role can only be assigned for a partner - // entity. + // "ADMIN" - The user can manage campaigns, creatives, insertion orders, line + // items, and reports for the entity. They can view and edit billing + // information, create or modify users, and enable or disable exchanges. This + // role can only be assigned for a partner entity. // "ADMIN_PARTNER_CLIENT" - The user can manage campaigns, creatives, - // insertion orders, line items, and reports for the entity. They can - // create and modify other `ADMIN_PARTNER_CLIENT` users and view billing - // information. They cannot view revenue models, markups, or any other - // reseller-sensitive fields. This role can only be assigned for a - // partner entity. - // "STANDARD" - The user can manage campaigns, creatives, insertion - // orders, line items, and reports for the entity. They cannot create - // and modify users or view billing information. - // "STANDARD_PLANNER" - The user can view all campaigns, creatives, - // insertion orders, line items, and reports for the entity, including - // all cost data. They can create and modify planning-related features, - // including plans and inventory. - // "STANDARD_PLANNER_LIMITED" - The user can view all campaigns, - // creatives, insertion orders, line items, and reports for the entity. - // They can create or modify planning-related features, including plans - // and inventory. They have no access to cost data and cannot start, - // accept, or negotiate deals. - // "STANDARD_PARTNER_CLIENT" - The user can manage campaigns, - // creatives, insertion orders, line items, and reports for the entity. - // They cannot create or modify other users or view billing information. - // They cannot view revenue models, markups, or any other - // reseller-sensitive fields. This role can only be assigned for an - // advertiser entity. + // insertion orders, line items, and reports for the entity. They can create + // and modify other `ADMIN_PARTNER_CLIENT` users and view billing information. + // They cannot view revenue models, markups, or any other reseller-sensitive + // fields. This role can only be assigned for a partner entity. + // "STANDARD" - The user can manage campaigns, creatives, insertion orders, + // line items, and reports for the entity. They cannot create and modify users + // or view billing information. + // "STANDARD_PLANNER" - The user can view all campaigns, creatives, insertion + // orders, line items, and reports for the entity, including all cost data. + // They can create and modify planning-related features, including plans and + // inventory. + // "STANDARD_PLANNER_LIMITED" - The user can view all campaigns, creatives, + // insertion orders, line items, and reports for the entity. They can create or + // modify planning-related features, including plans and inventory. They have + // no access to cost data and cannot start, accept, or negotiate deals. + // "STANDARD_PARTNER_CLIENT" - The user can manage campaigns, creatives, + // insertion orders, line items, and reports for the entity. They cannot create + // or modify other users or view billing information. They cannot view revenue + // models, markups, or any other reseller-sensitive fields. This role can only + // be assigned for an advertiser entity. // "READ_ONLY" - The user can only build reports and view data for the // entity. // "REPORTING_ONLY" - The user can only create and manage reports. // "LIMITED_REPORTING_ONLY" - The user can only create and manage the - // following client-safe reports: General, Audience Performance, - // Cross-Partner, Keyword, Order ID, Category, and Third-Party Data - // Provider. + // following client-safe reports: General, Audience Performance, Cross-Partner, + // Keyword, Order ID, Category, and Third-Party Data Provider. // "CREATIVE" - The user can view media plan information they need to // collaborate, but can't view cost-related data or Marketplace. - // "CREATIVE_ADMIN" - The user can view media plan information they - // need to collaborate, but can't view cost-related data or Marketplace. - // In addition, they can add other creative admins or creative users to - // the entity. + // "CREATIVE_ADMIN" - The user can view media plan information they need to + // collaborate, but can't view cost-related data or Marketplace. In addition, + // they can add other creative admins or creative users to the entity. UserRole string `json:"userRole,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AssignedUserRole) MarshalJSON() ([]byte, error) { +func (s AssignedUserRole) MarshalJSON() ([]byte, error) { type NoMethod AssignedUserRole - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudienceGroupAssignedTargetingOptionDetails: Assigned audience group -// targeting option details. This will be populated in the details field -// of an AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_AUDIENCE_GROUP`. The relation between each group is -// UNION, except for excluded_first_and_third_party_audience_group and +// targeting option details. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is +// `TARGETING_TYPE_AUDIENCE_GROUP`. The relation between each group is UNION, +// except for excluded_first_and_third_party_audience_group and // excluded_google_audience_group, of which COMPLEMENT is used as an // INTERSECTION with other groups. type AudienceGroupAssignedTargetingOptionDetails struct { - // ExcludedFirstAndThirdPartyAudienceGroup: The first and third party - // audience ids and recencies of the excluded first and third party - // audience group. Used for negative targeting. The COMPLEMENT of the - // UNION of this group and other excluded audience groups is used as an - // INTERSECTION to any positive audience targeting. All items are - // logically ‘OR’ of each other. + // ExcludedFirstAndThirdPartyAudienceGroup: The first and third party audience + // ids and recencies of the excluded first and third party audience group. Used + // for negative targeting. The COMPLEMENT of the UNION of this group and other + // excluded audience groups is used as an INTERSECTION to any positive audience + // targeting. All items are logically ‘OR’ of each other. ExcludedFirstAndThirdPartyAudienceGroup *FirstAndThirdPartyAudienceGroup `json:"excludedFirstAndThirdPartyAudienceGroup,omitempty"` - - // ExcludedGoogleAudienceGroup: The Google audience ids of the excluded - // Google audience group. Used for negative targeting. The COMPLEMENT of - // the UNION of this group and other excluded audience groups is used as - // an INTERSECTION to any positive audience targeting. Only contains - // Affinity, In-market and Installed-apps type Google audiences. All - // items are logically ‘OR’ of each other. + // ExcludedGoogleAudienceGroup: The Google audience ids of the excluded Google + // audience group. Used for negative targeting. The COMPLEMENT of the UNION of + // this group and other excluded audience groups is used as an INTERSECTION to + // any positive audience targeting. Only contains Affinity, In-market and + // Installed-apps type Google audiences. All items are logically ‘OR’ of + // each other. ExcludedGoogleAudienceGroup *GoogleAudienceGroup `json:"excludedGoogleAudienceGroup,omitempty"` - - // IncludedCombinedAudienceGroup: The combined audience ids of the - // included combined audience group. Contains combined audience ids - // only. + // IncludedCombinedAudienceGroup: The combined audience ids of the included + // combined audience group. Contains combined audience ids only. IncludedCombinedAudienceGroup *CombinedAudienceGroup `json:"includedCombinedAudienceGroup,omitempty"` - - // IncludedCustomListGroup: The custom list ids of the included custom - // list group. Contains custom list ids only. + // IncludedCustomListGroup: The custom list ids of the included custom list + // group. Contains custom list ids only. IncludedCustomListGroup *CustomListGroup `json:"includedCustomListGroup,omitempty"` - - // IncludedFirstAndThirdPartyAudienceGroups: The first and third party - // audience ids and recencies of included first and third party audience - // groups. Each first and third party audience group contains first and - // third party audience ids only. The relation between each first and - // third party audience group is INTERSECTION, and the result is - // UNION'ed with other audience groups. Repeated groups with same - // settings will be ignored. + // IncludedFirstAndThirdPartyAudienceGroups: The first and third party audience + // ids and recencies of included first and third party audience groups. Each + // first and third party audience group contains first and third party audience + // ids only. The relation between each first and third party audience group is + // INTERSECTION, and the result is UNION'ed with other audience groups. + // Repeated groups with same settings will be ignored. IncludedFirstAndThirdPartyAudienceGroups []*FirstAndThirdPartyAudienceGroup `json:"includedFirstAndThirdPartyAudienceGroups,omitempty"` - - // IncludedGoogleAudienceGroup: The Google audience ids of the included - // Google audience group. Contains Google audience ids only. + // IncludedGoogleAudienceGroup: The Google audience ids of the included Google + // audience group. Contains Google audience ids only. IncludedGoogleAudienceGroup *GoogleAudienceGroup `json:"includedGoogleAudienceGroup,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ExcludedFirstAndThirdPartyAudienceGroup") to unconditionally include - // in API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "ExcludedFirstAndThirdPartyAudienceGroup") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "ExcludedFirstAndThirdPartyAudienceGroup") to include in API requests - // with the JSON null value. By default, fields with empty values are - // omitted from API requests. However, any field with an empty value - // appearing in NullFields will be sent to the server as null. It is an - // error if a field in this list has a non-empty value. This may be used - // to include null fields in Patch requests. + // "ExcludedFirstAndThirdPartyAudienceGroup") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted from + // API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields + // for more details. NullFields []string `json:"-"` } -func (s *AudienceGroupAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s AudienceGroupAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod AudienceGroupAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AudioContentTypeAssignedTargetingOptionDetails: Details for audio -// content type assigned targeting option. This will be populated in the +// AudioContentTypeAssignedTargetingOptionDetails: Details for audio content +// type assigned targeting option. This will be populated in the // audio_content_type_details field when targeting_type is -// `TARGETING_TYPE_AUDIO_CONTENT_TYPE`. Explicitly targeting all options -// is not supported. Remove all audio content type targeting options to -// achieve this effect. +// `TARGETING_TYPE_AUDIO_CONTENT_TYPE`. Explicitly targeting all options is not +// supported. Remove all audio content type targeting options to achieve this +// effect. type AudioContentTypeAssignedTargetingOptionDetails struct { // AudioContentType: Required. The audio content type. // // Possible values: - // "AUDIO_CONTENT_TYPE_UNSPECIFIED" - Audio content type is not - // specified in this version. This enum is a place holder for a default - // value and does not represent a real content stream type. + // "AUDIO_CONTENT_TYPE_UNSPECIFIED" - Audio content type is not specified in + // this version. This enum is a place holder for a default value and does not + // represent a real content stream type. // "AUDIO_CONTENT_TYPE_UNKNOWN" - The audio content type is unknown. // "AUDIO_CONTENT_TYPE_MUSIC" - The audio content type is music. - // "AUDIO_CONTENT_TYPE_BROADCAST" - The audio content type is - // broadcast. + // "AUDIO_CONTENT_TYPE_BROADCAST" - The audio content type is broadcast. // "AUDIO_CONTENT_TYPE_PODCAST" - The audio content type is podcast. AudioContentType string `json:"audioContentType,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_AUDIO_CONTENT_TYPE`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudioContentType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudioContentType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AudioContentType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudioContentTypeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s AudioContentTypeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod AudioContentTypeAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudioContentTypeTargetingOptionDetails: Represents a targetable audio -// content type. This will be populated in the -// audio_content_type_details field when targeting_type is -// `TARGETING_TYPE_AUDIO_CONTENT_TYPE`. +// content type. This will be populated in the audio_content_type_details field +// when targeting_type is `TARGETING_TYPE_AUDIO_CONTENT_TYPE`. type AudioContentTypeTargetingOptionDetails struct { // AudioContentType: Output only. The audio content type. // // Possible values: - // "AUDIO_CONTENT_TYPE_UNSPECIFIED" - Audio content type is not - // specified in this version. This enum is a place holder for a default - // value and does not represent a real content stream type. + // "AUDIO_CONTENT_TYPE_UNSPECIFIED" - Audio content type is not specified in + // this version. This enum is a place holder for a default value and does not + // represent a real content stream type. // "AUDIO_CONTENT_TYPE_UNKNOWN" - The audio content type is unknown. // "AUDIO_CONTENT_TYPE_MUSIC" - The audio content type is music. - // "AUDIO_CONTENT_TYPE_BROADCAST" - The audio content type is - // broadcast. + // "AUDIO_CONTENT_TYPE_BROADCAST" - The audio content type is broadcast. // "AUDIO_CONTENT_TYPE_PODCAST" - The audio content type is podcast. AudioContentType string `json:"audioContentType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudioContentType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudioContentType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AudioContentType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudioContentTypeTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s AudioContentTypeTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod AudioContentTypeTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudioVideoOffset: The length an audio or a video has been played. type AudioVideoOffset struct { // Percentage: The offset in percentage of the audio or video duration. Percentage int64 `json:"percentage,omitempty,string"` - // Seconds: The offset in seconds from the start of the audio or video. Seconds int64 `json:"seconds,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Percentage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Percentage") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Percentage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudioVideoOffset) MarshalJSON() ([]byte, error) { +func (s AudioVideoOffset) MarshalJSON() ([]byte, error) { type NoMethod AudioVideoOffset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditAdvertiserResponse: Response message for // AdvertiserService.AuditAdvertiser. type AuditAdvertiserResponse struct { - // AdGroupCriteriaCount: The number of individual targeting options from - // the following targeting types that are assigned to a line item under - // this advertiser. These individual targeting options count towards the - // limit of 4500000 ad group targeting options per advertiser. - // Qualifying Targeting types: * Channels, URLs, apps, and collections * - // Demographic * Google Audiences, including Affinity, Custom Affinity, - // and In-market audiences * Inventory source * Keyword * Mobile app - // category * User lists * Video targeting * Viewability + // AdGroupCriteriaCount: The number of individual targeting options from the + // following targeting types that are assigned to a line item under this + // advertiser. These individual targeting options count towards the limit of + // 4500000 ad group targeting options per advertiser. Qualifying Targeting + // types: * Channels, URLs, apps, and collections * Demographic * Google + // Audiences, including Affinity, Custom Affinity, and In-market audiences * + // Inventory source * Keyword * Mobile app category * User lists * Video + // targeting * Viewability AdGroupCriteriaCount int64 `json:"adGroupCriteriaCount,omitempty,string"` - - // CampaignCriteriaCount: The number of individual targeting options - // from the following targeting types that are assigned to a line item - // under this advertiser. These individual targeting options count - // towards the limit of 900000 campaign targeting options per - // advertiser. Qualifying Targeting types: * Position * Browser * - // Connection speed * Day and time * Device and operating system * - // Digital content label * Sensitive categories * Environment * - // Geography, including business chains and proximity * ISP * Language * - // Third-party verification + // CampaignCriteriaCount: The number of individual targeting options from the + // following targeting types that are assigned to a line item under this + // advertiser. These individual targeting options count towards the limit of + // 900000 campaign targeting options per advertiser. Qualifying Targeting + // types: * Position * Browser * Connection speed * Day and time * Device and + // operating system * Digital content label * Sensitive categories * + // Environment * Geography, including business chains and proximity * ISP * + // Language * Third-party verification CampaignCriteriaCount int64 `json:"campaignCriteriaCount,omitempty,string"` - - // ChannelsCount: The number of channels created under this advertiser. - // These channels count towards the limit of 1000 channels per - // advertiser. + // ChannelsCount: The number of channels created under this advertiser. These + // channels count towards the limit of 1000 channels per advertiser. ChannelsCount int64 `json:"channelsCount,omitempty,string"` - - // NegativeKeywordListsCount: The number of negative keyword lists - // created under this advertiser. These negative keyword lists count - // towards the limit of 20 negative keyword lists per advertiser. + // NegativeKeywordListsCount: The number of negative keyword lists created + // under this advertiser. These negative keyword lists count towards the limit + // of 20 negative keyword lists per advertiser. NegativeKeywordListsCount int64 `json:"negativeKeywordListsCount,omitempty,string"` - - // NegativelyTargetedChannelsCount: The number of negatively targeted - // channels created under this advertiser. These negatively targeted - // channels count towards the limit of 5 negatively targeted channels - // per advertiser. + // NegativelyTargetedChannelsCount: The number of negatively targeted channels + // created under this advertiser. These negatively targeted channels count + // towards the limit of 5 negatively targeted channels per advertiser. NegativelyTargetedChannelsCount int64 `json:"negativelyTargetedChannelsCount,omitempty,string"` - - // UsedCampaignsCount: The number of ACTIVE and PAUSED campaigns under - // this advertiser. These campaigns count towards the limit of 9999 - // campaigns per advertiser. + // UsedCampaignsCount: The number of ACTIVE and PAUSED campaigns under this + // advertiser. These campaigns count towards the limit of 9999 campaigns per + // advertiser. UsedCampaignsCount int64 `json:"usedCampaignsCount,omitempty,string"` - - // UsedInsertionOrdersCount: The number of ACTIVE, PAUSED and DRAFT - // insertion orders under this advertiser. These insertion orders count - // towards the limit of 9999 insertion orders per advertiser. + // UsedInsertionOrdersCount: The number of ACTIVE, PAUSED and DRAFT insertion + // orders under this advertiser. These insertion orders count towards the limit + // of 9999 insertion orders per advertiser. UsedInsertionOrdersCount int64 `json:"usedInsertionOrdersCount,omitempty,string"` - - // UsedLineItemsCount: The number of ACTIVE, PAUSED, and DRAFT line - // items under this advertiser. These line items count towards the limit - // of 9999 line items per advertiser. + // UsedLineItemsCount: The number of ACTIVE, PAUSED, and DRAFT line items under + // this advertiser. These line items count towards the limit of 9999 line items + // per advertiser. UsedLineItemsCount int64 `json:"usedLineItemsCount,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AdGroupCriteriaCount") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdGroupCriteriaCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdGroupCriteriaCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdGroupCriteriaCount") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditAdvertiserResponse) MarshalJSON() ([]byte, error) { +func (s AuditAdvertiserResponse) MarshalJSON() ([]byte, error) { type NoMethod AuditAdvertiserResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AuthorizedSellerStatusAssignedTargetingOptionDetails: Represents an -// assigned authorized seller status. This will be populated in the -// details field of an AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`. If a resource does not -// have an `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` assigned targeting -// option, it is using the "Authorized Direct Sellers and Resellers" -// option. +// AuthorizedSellerStatusAssignedTargetingOptionDetails: Represents an assigned +// authorized seller status. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`. If a resource does not have an +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` assigned targeting option, it is +// using the "Authorized Direct Sellers and Resellers" option. type AuthorizedSellerStatusAssignedTargetingOptionDetails struct { - // AuthorizedSellerStatus: Output only. The authorized seller status to - // target. + // AuthorizedSellerStatus: Output only. The authorized seller status to target. // // Possible values: - // "AUTHORIZED_SELLER_STATUS_UNSPECIFIED" - Default value when - // authorized seller status is not specified in this version. This enum - // is a placeholder for the default value, or "Authorized Direct Sellers - // and Resellers" in the UI. + // "AUTHORIZED_SELLER_STATUS_UNSPECIFIED" - Default value when authorized + // seller status is not specified in this version. This enum is a placeholder + // for the default value, or "Authorized Direct Sellers and Resellers" in the + // UI. // "AUTHORIZED_SELLER_STATUS_AUTHORIZED_DIRECT_SELLERS_ONLY" - Only - // authorized sellers that directly own the inventory being monetized, - // as indicated by a DIRECT declaration in the ads.txt file. This value - // is equivalent to "Authorized Direct Sellers" in the UI. - // - // "AUTHORIZED_SELLER_STATUS_AUTHORIZED_AND_NON_PARTICIPATING_PUBLISHERS" - // - All authorized sellers, including publishers that have not posted - // an ads.txt file. Display & Video 360 automatically disallows - // unauthorized sellers. This value is equivalent to "Authorized and - // Non-Participating Publishers" in the UI. + // authorized sellers that directly own the inventory being monetized, as + // indicated by a DIRECT declaration in the ads.txt file. This value is + // equivalent to "Authorized Direct Sellers" in the UI. + // "AUTHORIZED_SELLER_STATUS_AUTHORIZED_AND_NON_PARTICIPATING_PUBLISHERS" - + // All authorized sellers, including publishers that have not posted an ads.txt + // file. Display & Video 360 automatically disallows unauthorized sellers. This + // value is equivalent to "Authorized and Non-Participating Publishers" in the + // UI. AuthorizedSellerStatus string `json:"authorizedSellerStatus,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthorizedSellerStatus") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AuthorizedSellerStatus") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthorizedSellerStatus") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuthorizedSellerStatus") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuthorizedSellerStatusAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s AuthorizedSellerStatusAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod AuthorizedSellerStatusAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuthorizedSellerStatusTargetingOptionDetails: Represents a targetable @@ -2469,45 +2124,36 @@ type AuthorizedSellerStatusTargetingOptionDetails struct { // AuthorizedSellerStatus: Output only. The authorized seller status. // // Possible values: - // "AUTHORIZED_SELLER_STATUS_UNSPECIFIED" - Default value when - // authorized seller status is not specified in this version. This enum - // is a placeholder for the default value, or "Authorized Direct Sellers - // and Resellers" in the UI. + // "AUTHORIZED_SELLER_STATUS_UNSPECIFIED" - Default value when authorized + // seller status is not specified in this version. This enum is a placeholder + // for the default value, or "Authorized Direct Sellers and Resellers" in the + // UI. // "AUTHORIZED_SELLER_STATUS_AUTHORIZED_DIRECT_SELLERS_ONLY" - Only - // authorized sellers that directly own the inventory being monetized, - // as indicated by a DIRECT declaration in the ads.txt file. This value - // is equivalent to "Authorized Direct Sellers" in the UI. - // - // "AUTHORIZED_SELLER_STATUS_AUTHORIZED_AND_NON_PARTICIPATING_PUBLISHERS" - // - All authorized sellers, including publishers that have not posted - // an ads.txt file. Display & Video 360 automatically disallows - // unauthorized sellers. This value is equivalent to "Authorized and - // Non-Participating Publishers" in the UI. + // authorized sellers that directly own the inventory being monetized, as + // indicated by a DIRECT declaration in the ads.txt file. This value is + // equivalent to "Authorized Direct Sellers" in the UI. + // "AUTHORIZED_SELLER_STATUS_AUTHORIZED_AND_NON_PARTICIPATING_PUBLISHERS" - + // All authorized sellers, including publishers that have not posted an ads.txt + // file. Display & Video 360 automatically disallows unauthorized sellers. This + // value is equivalent to "Authorized and Non-Participating Publishers" in the + // UI. AuthorizedSellerStatus string `json:"authorizedSellerStatus,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthorizedSellerStatus") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AuthorizedSellerStatus") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthorizedSellerStatus") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuthorizedSellerStatus") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuthorizedSellerStatusTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s AuthorizedSellerStatusTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod AuthorizedSellerStatusTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BiddingStrategy: Settings that control the bid strategy. Bid strategy @@ -2515,329 +2161,256 @@ func (s *AuthorizedSellerStatusTargetingOptionDetails) MarshalJSON() ([]byte, er type BiddingStrategy struct { // FixedBid: A strategy that uses a fixed bid price. FixedBid *FixedBidStrategy `json:"fixedBid,omitempty"` - - // MaximizeSpendAutoBid: A strategy that automatically adjusts the bid - // to optimize to your performance goal while spending the full budget. - // At insertion order level, the markup_type of line items cannot be set - // to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when + // MaximizeSpendAutoBid: A strategy that automatically adjusts the bid to + // optimize to your performance goal while spending the full budget. At + // insertion order level, the markup_type of line items cannot be set to + // `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when // performance_goal_type is one of: * // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the - // line_item_type of the insertion order line items must be either: * - // `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , - // and when performance_goal_type is either: * + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of + // the insertion order line items must be either: * + // `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when + // performance_goal_type is either: * // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type - // of the insertion order line items must be - // `LINE_ITEM_TYPE_VIDEO_DEFAULT`. + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the + // insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`. MaximizeSpendAutoBid *MaximizeSpendBidStrategy `json:"maximizeSpendAutoBid,omitempty"` - - // PerformanceGoalAutoBid: A strategy that automatically adjusts the bid - // to meet or beat a specified performance goal. It is to be used only - // for a line item entity. + // PerformanceGoalAutoBid: A strategy that automatically adjusts the bid to + // meet or beat a specified performance goal. It is to be used only for a line + // item entity. PerformanceGoalAutoBid *PerformanceGoalBidStrategy `json:"performanceGoalAutoBid,omitempty"` - // ForceSendFields is a list of field names (e.g. "FixedBid") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FixedBid") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FixedBid") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BiddingStrategy) MarshalJSON() ([]byte, error) { +func (s BiddingStrategy) MarshalJSON() ([]byte, error) { type NoMethod BiddingStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BrowserAssignedTargetingOptionDetails: Details for assigned browser // targeting option. This will be populated in the details field of an -// AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_BROWSER`. +// AssignedTargetingOption when targeting_type is `TARGETING_TYPE_BROWSER`. type BrowserAssignedTargetingOptionDetails struct { // DisplayName: Output only. The display name of the browser. DisplayName string `json:"displayName,omitempty"` - // Negative: Indicates if this option is being negatively targeted. All - // assigned browser targeting options on the same resource must have the - // same value for this field. + // assigned browser targeting options on the same resource must have the same + // value for this field. Negative bool `json:"negative,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_BROWSER`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_BROWSER`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BrowserAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s BrowserAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod BrowserAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BrowserTargetingOptionDetails: Represents a targetable browser. This -// will be populated in the browser_details field when targeting_type is +// BrowserTargetingOptionDetails: Represents a targetable browser. This will be +// populated in the browser_details field when targeting_type is // `TARGETING_TYPE_BROWSER`. type BrowserTargetingOptionDetails struct { // DisplayName: Output only. The display name of the browser. DisplayName string `json:"displayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BrowserTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s BrowserTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod BrowserTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BudgetSummary: Summarized information of an individual campaign -// budget. +// BudgetSummary: Summarized information of an individual campaign budget. type BudgetSummary struct { // ExternalBudgetId: Corresponds to the external_budget_id of a campaign - // budget. If the value is not set in the campaign budget, this field - // will be empty. + // budget. If the value is not set in the campaign budget, this field will be + // empty. ExternalBudgetId string `json:"externalBudgetId,omitempty"` - - // PreTaxAmountMicros: The sum of charges made under this budget before - // taxes, in micros of the invoice's currency. For example, if - // currency_code is `USD`, then 1000000 represents one US dollar. + // PreTaxAmountMicros: The sum of charges made under this budget before taxes, + // in micros of the invoice's currency. For example, if currency_code is `USD`, + // then 1000000 represents one US dollar. PreTaxAmountMicros int64 `json:"preTaxAmountMicros,omitempty,string"` - // PrismaCpeCode: Relevant client, product, and estimate codes from the // Mediaocean Prisma tool. Only applicable for campaign budgets with an // external_budget_source of EXTERNAL_BUDGET_SOURCE_MEDIA_OCEAN. PrismaCpeCode *PrismaCpeCode `json:"prismaCpeCode,omitempty"` - - // TaxAmountMicros: The amount of tax applied to charges under this - // budget, in micros of the invoice's currency. For example, if - // currency_code is `USD`, then 1000000 represents one US dollar. + // TaxAmountMicros: The amount of tax applied to charges under this budget, in + // micros of the invoice's currency. For example, if currency_code is `USD`, + // then 1000000 represents one US dollar. TaxAmountMicros int64 `json:"taxAmountMicros,omitempty,string"` - // TotalAmountMicros: The total sum of charges made under this budget, // including tax, in micros of the invoice's currency. For example, if // currency_code is `USD`, then 1000000 represents one US dollar. TotalAmountMicros int64 `json:"totalAmountMicros,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ExternalBudgetId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExternalBudgetId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExternalBudgetId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BudgetSummary) MarshalJSON() ([]byte, error) { +func (s BudgetSummary) MarshalJSON() ([]byte, error) { type NoMethod BudgetSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BulkEditAdvertiserAssignedTargetingOptionsRequest: Request message -// for BulkEditAdvertiserAssignedTargetingOptions. +// BulkEditAdvertiserAssignedTargetingOptionsRequest: Request message for +// BulkEditAdvertiserAssignedTargetingOptions. type BulkEditAdvertiserAssignedTargetingOptionsRequest struct { - // CreateRequests: The assigned targeting options to create in batch, - // specified as a list of `CreateAssignedTargetingOptionsRequest`. - // Supported targeting types: * `TARGETING_TYPE_CHANNEL` * - // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * - // `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` + // CreateRequests: The assigned targeting options to create in batch, specified + // as a list of `CreateAssignedTargetingOptionsRequest`. Supported targeting + // types: * `TARGETING_TYPE_CHANNEL` * + // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * + // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` CreateRequests []*CreateAssignedTargetingOptionsRequest `json:"createRequests,omitempty"` - - // DeleteRequests: The assigned targeting options to delete in batch, - // specified as a list of `DeleteAssignedTargetingOptionsRequest`. - // Supported targeting types: * `TARGETING_TYPE_CHANNEL` * - // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * - // `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` + // DeleteRequests: The assigned targeting options to delete in batch, specified + // as a list of `DeleteAssignedTargetingOptionsRequest`. Supported targeting + // types: * `TARGETING_TYPE_CHANNEL` * + // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * + // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` DeleteRequests []*DeleteAssignedTargetingOptionsRequest `json:"deleteRequests,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateRequests") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateRequests") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreateRequests") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditAdvertiserAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { +func (s BulkEditAdvertiserAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { type NoMethod BulkEditAdvertiserAssignedTargetingOptionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BulkEditAdvertiserAssignedTargetingOptionsResponse struct { - // CreatedAssignedTargetingOptions: The list of assigned targeting - // options that have been successfully created. This list will be absent - // if empty. + // CreatedAssignedTargetingOptions: The list of assigned targeting options that + // have been successfully created. This list will be absent if empty. CreatedAssignedTargetingOptions []*AssignedTargetingOption `json:"createdAssignedTargetingOptions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. // "CreatedAssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CreatedAssignedTargetingOptions") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreatedAssignedTargetingOptions") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditAdvertiserAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s BulkEditAdvertiserAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkEditAdvertiserAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BulkEditAssignedInventorySourcesRequest: Request message for // AssignedInventorySourceService.BulkEdit. type BulkEditAssignedInventorySourcesRequest struct { - // AdvertiserId: The ID of the advertiser that owns the parent inventory - // source group. The parent partner does not have access to these - // assigned inventory sources. + // AdvertiserId: The ID of the advertiser that owns the parent inventory source + // group. The parent partner does not have access to these assigned inventory + // sources. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // CreatedAssignedInventorySources: The assigned inventory sources to - // create in bulk, specified as a list of AssignedInventorySources. + // CreatedAssignedInventorySources: The assigned inventory sources to create in + // bulk, specified as a list of AssignedInventorySources. CreatedAssignedInventorySources []*AssignedInventorySource `json:"createdAssignedInventorySources,omitempty"` - - // DeletedAssignedInventorySources: The IDs of the assigned inventory - // sources to delete in bulk, specified as a list of - // assigned_inventory_source_ids. + // DeletedAssignedInventorySources: The IDs of the assigned inventory sources + // to delete in bulk, specified as a list of assigned_inventory_source_ids. DeletedAssignedInventorySources googleapi.Int64s `json:"deletedAssignedInventorySources,omitempty"` - - // PartnerId: The ID of the partner that owns the inventory source - // group. Only this partner has write access to these assigned inventory - // sources. + // PartnerId: The ID of the partner that owns the inventory source group. Only + // this partner has write access to these assigned inventory sources. PartnerId int64 `json:"partnerId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditAssignedInventorySourcesRequest) MarshalJSON() ([]byte, error) { +func (s BulkEditAssignedInventorySourcesRequest) MarshalJSON() ([]byte, error) { type NoMethod BulkEditAssignedInventorySourcesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BulkEditAssignedInventorySourcesResponse: Response message for // AssignedInventorySourceService.BulkEdit. type BulkEditAssignedInventorySourcesResponse struct { - // AssignedInventorySources: The list of assigned inventory sources that - // have been successfully created. This list will be absent if empty. + // AssignedInventorySources: The list of assigned inventory sources that have + // been successfully created. This list will be absent if empty. AssignedInventorySources []*AssignedInventorySource `json:"assignedInventorySources,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedInventorySources") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedInventorySources") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedInventorySources") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedInventorySources") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditAssignedInventorySourcesResponse) MarshalJSON() ([]byte, error) { +func (s BulkEditAssignedInventorySourcesResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkEditAssignedInventorySourcesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BulkEditAssignedLocationsRequest: Request message for @@ -2846,34 +2419,25 @@ type BulkEditAssignedLocationsRequest struct { // CreatedAssignedLocations: The assigned locations to create in bulk, // specified as a list of AssignedLocation resources. CreatedAssignedLocations []*AssignedLocation `json:"createdAssignedLocations,omitempty"` - - // DeletedAssignedLocations: The IDs of the assigned locations to delete - // in bulk, specified as a list of assignedLocationId values. + // DeletedAssignedLocations: The IDs of the assigned locations to delete in + // bulk, specified as a list of assignedLocationId values. DeletedAssignedLocations googleapi.Int64s `json:"deletedAssignedLocations,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CreatedAssignedLocations") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreatedAssignedLocations") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreatedAssignedLocations") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreatedAssignedLocations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditAssignedLocationsRequest) MarshalJSON() ([]byte, error) { +func (s BulkEditAssignedLocationsRequest) MarshalJSON() ([]byte, error) { type NoMethod BulkEditAssignedLocationsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BulkEditAssignedLocationsResponse struct { @@ -2881,32 +2445,24 @@ type BulkEditAssignedLocationsResponse struct { // successfully created. This list will be absent if empty. AssignedLocations []*AssignedLocation `json:"assignedLocations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AssignedLocations") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedLocations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedLocations") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedLocations") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditAssignedLocationsResponse) MarshalJSON() ([]byte, error) { +func (s BulkEditAssignedLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkEditAssignedLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BulkEditAssignedUserRolesRequest: Request message for @@ -2915,577 +2471,438 @@ type BulkEditAssignedUserRolesRequest struct { // CreatedAssignedUserRoles: The assigned user roles to create in batch, // specified as a list of AssignedUserRoles. CreatedAssignedUserRoles []*AssignedUserRole `json:"createdAssignedUserRoles,omitempty"` - // DeletedAssignedUserRoles: The assigned user roles to delete in batch, // specified as a list of assigned_user_role_ids. The format of - // assigned_user_role_id is `entityType-entityid`, for example - // `partner-123`. + // assigned_user_role_id is `entityType-entityid`, for example `partner-123`. DeletedAssignedUserRoles []string `json:"deletedAssignedUserRoles,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CreatedAssignedUserRoles") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreatedAssignedUserRoles") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreatedAssignedUserRoles") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreatedAssignedUserRoles") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditAssignedUserRolesRequest) MarshalJSON() ([]byte, error) { +func (s BulkEditAssignedUserRolesRequest) MarshalJSON() ([]byte, error) { type NoMethod BulkEditAssignedUserRolesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BulkEditAssignedUserRolesResponse struct { - // CreatedAssignedUserRoles: The list of assigned user roles that have - // been successfully created. This list will be absent if empty. + // CreatedAssignedUserRoles: The list of assigned user roles that have been + // successfully created. This list will be absent if empty. CreatedAssignedUserRoles []*AssignedUserRole `json:"createdAssignedUserRoles,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "CreatedAssignedUserRoles") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreatedAssignedUserRoles") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreatedAssignedUserRoles") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreatedAssignedUserRoles") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditAssignedUserRolesResponse) MarshalJSON() ([]byte, error) { +func (s BulkEditAssignedUserRolesResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkEditAssignedUserRolesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BulkEditLineItemAssignedTargetingOptionsRequest: Request message for // BulkEditLineItemAssignedTargetingOptions. type BulkEditLineItemAssignedTargetingOptionsRequest struct { - // CreateRequests: The assigned targeting options to create in batch, - // specified as a list of `CreateAssignedTargetingOptionsRequest`. + // CreateRequests: The assigned targeting options to create in batch, specified + // as a list of `CreateAssignedTargetingOptionsRequest`. CreateRequests []*CreateAssignedTargetingOptionsRequest `json:"createRequests,omitempty"` - - // DeleteRequests: The assigned targeting options to delete in batch, - // specified as a list of `DeleteAssignedTargetingOptionsRequest`. + // DeleteRequests: The assigned targeting options to delete in batch, specified + // as a list of `DeleteAssignedTargetingOptionsRequest`. DeleteRequests []*DeleteAssignedTargetingOptionsRequest `json:"deleteRequests,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateRequests") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateRequests") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreateRequests") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditLineItemAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { +func (s BulkEditLineItemAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { type NoMethod BulkEditLineItemAssignedTargetingOptionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BulkEditLineItemAssignedTargetingOptionsResponse struct { - // CreatedAssignedTargetingOptions: The list of assigned targeting - // options that have been successfully created. This list will be absent - // if empty. + // CreatedAssignedTargetingOptions: The list of assigned targeting options that + // have been successfully created. This list will be absent if empty. CreatedAssignedTargetingOptions []*AssignedTargetingOption `json:"createdAssignedTargetingOptions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. // "CreatedAssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CreatedAssignedTargetingOptions") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreatedAssignedTargetingOptions") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditLineItemAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s BulkEditLineItemAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkEditLineItemAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BulkEditNegativeKeywordsRequest: Request message for // NegativeKeywordService.BulkEditNegativeKeywords. type BulkEditNegativeKeywordsRequest struct { - // CreatedNegativeKeywords: The negative keywords to create in batch, - // specified as a list of NegativeKeywords. + // CreatedNegativeKeywords: The negative keywords to create in batch, specified + // as a list of NegativeKeywords. CreatedNegativeKeywords []*NegativeKeyword `json:"createdNegativeKeywords,omitempty"` - - // DeletedNegativeKeywords: The negative keywords to delete in batch, - // specified as a list of keyword_values. + // DeletedNegativeKeywords: The negative keywords to delete in batch, specified + // as a list of keyword_values. DeletedNegativeKeywords []string `json:"deletedNegativeKeywords,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CreatedNegativeKeywords") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CreatedNegativeKeywords") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreatedNegativeKeywords") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreatedNegativeKeywords") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditNegativeKeywordsRequest) MarshalJSON() ([]byte, error) { +func (s BulkEditNegativeKeywordsRequest) MarshalJSON() ([]byte, error) { type NoMethod BulkEditNegativeKeywordsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BulkEditNegativeKeywordsResponse: Response message for // NegativeKeywordService.BulkEditNegativeKeywords. type BulkEditNegativeKeywordsResponse struct { - // NegativeKeywords: The list of negative keywords that have been - // successfully created. This list will be absent if empty. + // NegativeKeywords: The list of negative keywords that have been successfully + // created. This list will be absent if empty. NegativeKeywords []*NegativeKeyword `json:"negativeKeywords,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NegativeKeywords") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NegativeKeywords") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NegativeKeywords") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditNegativeKeywordsResponse) MarshalJSON() ([]byte, error) { +func (s BulkEditNegativeKeywordsResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkEditNegativeKeywordsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BulkEditPartnerAssignedTargetingOptionsRequest: Request message for // BulkEditPartnerAssignedTargetingOptions. type BulkEditPartnerAssignedTargetingOptionsRequest struct { - // CreateRequests: The assigned targeting options to create in batch, - // specified as a list of `CreateAssignedTargetingOptionsRequest`. - // Supported targeting types: * `TARGETING_TYPE_CHANNEL` + // CreateRequests: The assigned targeting options to create in batch, specified + // as a list of `CreateAssignedTargetingOptionsRequest`. Supported targeting + // types: * `TARGETING_TYPE_CHANNEL` CreateRequests []*CreateAssignedTargetingOptionsRequest `json:"createRequests,omitempty"` - - // DeleteRequests: The assigned targeting options to delete in batch, - // specified as a list of `DeleteAssignedTargetingOptionsRequest`. - // Supported targeting types: * `TARGETING_TYPE_CHANNEL` + // DeleteRequests: The assigned targeting options to delete in batch, specified + // as a list of `DeleteAssignedTargetingOptionsRequest`. Supported targeting + // types: * `TARGETING_TYPE_CHANNEL` DeleteRequests []*DeleteAssignedTargetingOptionsRequest `json:"deleteRequests,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateRequests") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateRequests") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CreateRequests") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditPartnerAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { +func (s BulkEditPartnerAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { type NoMethod BulkEditPartnerAssignedTargetingOptionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BulkEditPartnerAssignedTargetingOptionsResponse struct { - // CreatedAssignedTargetingOptions: The list of assigned targeting - // options that have been successfully created. This list will be absent - // if empty. + // CreatedAssignedTargetingOptions: The list of assigned targeting options that + // have been successfully created. This list will be absent if empty. CreatedAssignedTargetingOptions []*AssignedTargetingOption `json:"createdAssignedTargetingOptions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. // "CreatedAssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CreatedAssignedTargetingOptions") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreatedAssignedTargetingOptions") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditPartnerAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s BulkEditPartnerAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkEditPartnerAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BulkEditSitesRequest: Request message for SiteService.BulkEditSites. type BulkEditSitesRequest struct { // AdvertiserId: The ID of the advertiser that owns the parent channel. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // CreatedSites: The sites to create in batch, specified as a list of - // Sites. + // CreatedSites: The sites to create in batch, specified as a list of Sites. CreatedSites []*Site `json:"createdSites,omitempty"` - - // DeletedSites: The sites to delete in batch, specified as a list of - // site url_or_app_ids. + // DeletedSites: The sites to delete in batch, specified as a list of site + // url_or_app_ids. DeletedSites []string `json:"deletedSites,omitempty"` - // PartnerId: The ID of the partner that owns the parent channel. PartnerId int64 `json:"partnerId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditSitesRequest) MarshalJSON() ([]byte, error) { +func (s BulkEditSitesRequest) MarshalJSON() ([]byte, error) { type NoMethod BulkEditSitesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BulkEditSitesResponse: Response message for -// SiteService.BulkEditSites. +// BulkEditSitesResponse: Response message for SiteService.BulkEditSites. type BulkEditSitesResponse struct { - // Sites: The list of sites that have been successfully created. This - // list will be absent if empty. + // Sites: The list of sites that have been successfully created. This list will + // be absent if empty. Sites []*Site `json:"sites,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Sites") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Sites") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Sites") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkEditSitesResponse) MarshalJSON() ([]byte, error) { +func (s BulkEditSitesResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkEditSitesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BulkListAdvertiserAssignedTargetingOptionsResponse struct { - // AssignedTargetingOptions: The list of assigned targeting options. - // This list will be absent if empty. + // AssignedTargetingOptions: The list of assigned targeting options. This list + // will be absent if empty. AssignedTargetingOptions []*AssignedTargetingOption `json:"assignedTargetingOptions,omitempty"` - - // NextPageToken: A token identifying the next page of results. This - // value should be specified as the pageToken in a subsequent - // BulkListAdvertiserAssignedTargetingOptionsRequest to fetch the next - // page of results. This token will be absent if there are no more + // NextPageToken: A token identifying the next page of results. This value + // should be specified as the pageToken in a subsequent + // BulkListAdvertiserAssignedTargetingOptionsRequest to fetch the next page of + // results. This token will be absent if there are no more // assigned_targeting_options to return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedTargetingOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkListAdvertiserAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s BulkListAdvertiserAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkListAdvertiserAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BulkListCampaignAssignedTargetingOptionsResponse struct { - // AssignedTargetingOptions: The list of assigned targeting options. - // This list will be absent if empty. + // AssignedTargetingOptions: The list of assigned targeting options. This list + // will be absent if empty. AssignedTargetingOptions []*AssignedTargetingOption `json:"assignedTargetingOptions,omitempty"` - - // NextPageToken: A token identifying the next page of results. This - // value should be specified as the pageToken in a subsequent - // BulkListCampaignAssignedTargetingOptionsRequest to fetch the next - // page of results. This token will be absent if there are no more + // NextPageToken: A token identifying the next page of results. This value + // should be specified as the pageToken in a subsequent + // BulkListCampaignAssignedTargetingOptionsRequest to fetch the next page of + // results. This token will be absent if there are no more // assigned_targeting_options to return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedTargetingOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkListCampaignAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s BulkListCampaignAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkListCampaignAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BulkListInsertionOrderAssignedTargetingOptionsResponse struct { - // AssignedTargetingOptions: The list of assigned targeting options. - // This list will be absent if empty. + // AssignedTargetingOptions: The list of assigned targeting options. This list + // will be absent if empty. AssignedTargetingOptions []*AssignedTargetingOption `json:"assignedTargetingOptions,omitempty"` - - // NextPageToken: A token identifying the next page of results. This - // value should be specified as the pageToken in a subsequent - // BulkListInsertionOrderAssignedTargetingOptionsRequest to fetch the - // next page of results. This token will be absent if there are no more + // NextPageToken: A token identifying the next page of results. This value + // should be specified as the pageToken in a subsequent + // BulkListInsertionOrderAssignedTargetingOptionsRequest to fetch the next page + // of results. This token will be absent if there are no more // assigned_targeting_options to return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedTargetingOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkListInsertionOrderAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s BulkListInsertionOrderAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkListInsertionOrderAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BulkListLineItemAssignedTargetingOptionsResponse struct { - // AssignedTargetingOptions: The list of assigned targeting options. - // This list will be absent if empty. + // AssignedTargetingOptions: The list of assigned targeting options. This list + // will be absent if empty. AssignedTargetingOptions []*AssignedTargetingOption `json:"assignedTargetingOptions,omitempty"` - - // NextPageToken: A token identifying the next page of results. This - // value should be specified as the pageToken in a subsequent - // BulkListLineItemAssignedTargetingOptionsRequest to fetch the next - // page of results. This token will be absent if there are no more + // NextPageToken: A token identifying the next page of results. This value + // should be specified as the pageToken in a subsequent + // BulkListLineItemAssignedTargetingOptionsRequest to fetch the next page of + // results. This token will be absent if there are no more // assigned_targeting_options to return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedTargetingOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BulkListLineItemAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s BulkListLineItemAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod BulkListLineItemAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BusinessChainAssignedTargetingOptionDetails: Details for assigned -// Business chain targeting option. This will be populated in the -// details field of an AssignedTargetingOption when targeting_type is +// BusinessChainAssignedTargetingOptionDetails: Details for assigned Business +// chain targeting option. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_BUSINESS_CHAIN`. type BusinessChainAssignedTargetingOptionDetails struct { - // DisplayName: Output only. The display name of a business chain, e.g. - // "KFC", "Chase Bank". + // DisplayName: Output only. The display name of a business chain, e.g. "KFC", + // "Chase Bank". DisplayName string `json:"displayName,omitempty"` - - // ProximityRadiusAmount: Required. The radius of the area around the - // business chain that will be targeted. The units of the radius are - // specified by proximity_radius_unit. Must be 1 to 800 if unit is - // `DISTANCE_UNIT_KILOMETERS` and 1 to 500 if unit is - // `DISTANCE_UNIT_MILES`. The minimum increment for both cases is 0.1. - // Inputs will be rounded to the nearest acceptable value if it is too - // granular, e.g. 15.57 will become 15.6. + // ProximityRadiusAmount: Required. The radius of the area around the business + // chain that will be targeted. The units of the radius are specified by + // proximity_radius_unit. Must be 1 to 800 if unit is + // `DISTANCE_UNIT_KILOMETERS` and 1 to 500 if unit is `DISTANCE_UNIT_MILES`. + // The minimum increment for both cases is 0.1. Inputs will be rounded to the + // nearest acceptable value if it is too granular, e.g. 15.57 will become 15.6. ProximityRadiusAmount float64 `json:"proximityRadiusAmount,omitempty"` - - // ProximityRadiusUnit: Required. The unit of distance by which the - // targeting radius is measured. + // ProximityRadiusUnit: Required. The unit of distance by which the targeting + // radius is measured. // // Possible values: - // "DISTANCE_UNIT_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "DISTANCE_UNIT_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. // "DISTANCE_UNIT_MILES" - Miles. // "DISTANCE_UNIT_KILOMETERS" - Kilometers. ProximityRadiusUnit string `json:"proximityRadiusUnit,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_BUSINESS_CHAIN`. Accepted - // business chain targeting option IDs can be retrieved using - // SearchTargetingOptions. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_BUSINESS_CHAIN`. Accepted business chain targeting + // option IDs can be retrieved using SearchTargetingOptions. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BusinessChainAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s BusinessChainAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod BusinessChainAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *BusinessChainAssignedTargetingOptionDetails) UnmarshalJSON(data []byte) error { @@ -3502,55 +2919,43 @@ func (s *BusinessChainAssignedTargetingOptionDetails) UnmarshalJSON(data []byte) return nil } -// BusinessChainSearchTerms: Search terms for Business Chain targeting -// options. At least one of the field should be populated. +// BusinessChainSearchTerms: Search terms for Business Chain targeting options. +// At least one of the field should be populated. type BusinessChainSearchTerms struct { - // BusinessChainQuery: The search query for the desired business chain. - // The query must be the full name of the business, e.g. "KFC", - // "mercedes-benz". + // BusinessChainQuery: The search query for the desired business chain. The + // query must be the full name of the business, e.g. "KFC", "mercedes-benz". BusinessChainQuery string `json:"businessChainQuery,omitempty"` - - // RegionQuery: The search query for the desired geo region, e.g. - // "Seattle", "United State". + // RegionQuery: The search query for the desired geo region, e.g. "Seattle", + // "United State". RegionQuery string `json:"regionQuery,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BusinessChainQuery") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BusinessChainQuery") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BusinessChainQuery") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BusinessChainQuery") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BusinessChainSearchTerms) MarshalJSON() ([]byte, error) { +func (s BusinessChainSearchTerms) MarshalJSON() ([]byte, error) { type NoMethod BusinessChainSearchTerms - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BusinessChainTargetingOptionDetails: Represents a targetable business -// chain within a geo region. This will be populated in the -// business_chain_details field when targeting_type is -// `TARGETING_TYPE_BUSINESS_CHAIN`. +// BusinessChainTargetingOptionDetails: Represents a targetable business chain +// within a geo region. This will be populated in the business_chain_details +// field when targeting_type is `TARGETING_TYPE_BUSINESS_CHAIN`. type BusinessChainTargetingOptionDetails struct { - // BusinessChain: Output only. The display name of the business chain, - // e.g. "KFC", "Chase Bank". + // BusinessChain: Output only. The display name of the business chain, e.g. + // "KFC", "Chase Bank". BusinessChain string `json:"businessChain,omitempty"` - - // GeoRegion: Output only. The display name of the geographic region, - // e.g. "Ontario, Canada". + // GeoRegion: Output only. The display name of the geographic region, e.g. + // "Ontario, Canada". GeoRegion string `json:"geoRegion,omitempty"` - // GeoRegionType: Output only. The type of the geographic region. // // Possible values: @@ -3561,279 +2966,223 @@ type BusinessChainTargetingOptionDetails struct { // "GEO_REGION_TYPE_TERRITORY" - The geographic region is a territory. // "GEO_REGION_TYPE_PROVINCE" - The geographic region is a province. // "GEO_REGION_TYPE_STATE" - The geographic region is a state. - // "GEO_REGION_TYPE_PREFECTURE" - The geographic region is a - // prefecture. - // "GEO_REGION_TYPE_GOVERNORATE" - The geographic region is a - // governorate. + // "GEO_REGION_TYPE_PREFECTURE" - The geographic region is a prefecture. + // "GEO_REGION_TYPE_GOVERNORATE" - The geographic region is a governorate. // "GEO_REGION_TYPE_CANTON" - The geographic region is a canton. - // "GEO_REGION_TYPE_UNION_TERRITORY" - The geographic region is a - // union territory. - // "GEO_REGION_TYPE_AUTONOMOUS_COMMUNITY" - The geographic region is - // an autonomous community. - // "GEO_REGION_TYPE_DMA_REGION" - The geographic region is a - // designated market area (DMA) region. + // "GEO_REGION_TYPE_UNION_TERRITORY" - The geographic region is a union + // territory. + // "GEO_REGION_TYPE_AUTONOMOUS_COMMUNITY" - The geographic region is an + // autonomous community. + // "GEO_REGION_TYPE_DMA_REGION" - The geographic region is a designated + // market area (DMA) region. // "GEO_REGION_TYPE_METRO" - The geographic region type is metro. - // "GEO_REGION_TYPE_CONGRESSIONAL_DISTRICT" - The geographic region is - // a congressional district. + // "GEO_REGION_TYPE_CONGRESSIONAL_DISTRICT" - The geographic region is a + // congressional district. // "GEO_REGION_TYPE_COUNTY" - The geographic region is a county. - // "GEO_REGION_TYPE_MUNICIPALITY" - The geographic region is a - // municipality. + // "GEO_REGION_TYPE_MUNICIPALITY" - The geographic region is a municipality. // "GEO_REGION_TYPE_CITY" - The geographic region is a city. - // "GEO_REGION_TYPE_POSTAL_CODE" - The geographic region targeting - // type is postal code. - // "GEO_REGION_TYPE_DEPARTMENT" - The geographic region targeting type - // is department. + // "GEO_REGION_TYPE_POSTAL_CODE" - The geographic region targeting type is + // postal code. + // "GEO_REGION_TYPE_DEPARTMENT" - The geographic region targeting type is + // department. // "GEO_REGION_TYPE_AIRPORT" - The geographic region is an airport. // "GEO_REGION_TYPE_TV_REGION" - The geographic region is a TV region. // "GEO_REGION_TYPE_OKRUG" - The geographic region is an okrug. // "GEO_REGION_TYPE_BOROUGH" - The geographic region is a borough. - // "GEO_REGION_TYPE_CITY_REGION" - The geographic region is a city - // region. + // "GEO_REGION_TYPE_CITY_REGION" - The geographic region is a city region. // "GEO_REGION_TYPE_ARRONDISSEMENT" - The geographic region is an // arrondissement. - // "GEO_REGION_TYPE_NEIGHBORHOOD" - The geographic region is a - // neighborhood. - // "GEO_REGION_TYPE_UNIVERSITY" - The geographic region is a - // university. + // "GEO_REGION_TYPE_NEIGHBORHOOD" - The geographic region is a neighborhood. + // "GEO_REGION_TYPE_UNIVERSITY" - The geographic region is a university. // "GEO_REGION_TYPE_DISTRICT" - The geographic region is a district. GeoRegionType string `json:"geoRegionType,omitempty"` - // ForceSendFields is a list of field names (e.g. "BusinessChain") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BusinessChain") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BusinessChain") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BusinessChainTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s BusinessChainTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod BusinessChainTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Campaign: A single campaign. type Campaign struct { - // AdvertiserId: Output only. The unique ID of the advertiser the - // campaign belongs to. + // AdvertiserId: Output only. The unique ID of the advertiser the campaign + // belongs to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // CampaignBudgets: The list of budgets available to this campaign. If - // this field is not set, the campaign uses an unlimited budget. + // CampaignBudgets: The list of budgets available to this campaign. If this + // field is not set, the campaign uses an unlimited budget. CampaignBudgets []*CampaignBudget `json:"campaignBudgets,omitempty"` - - // CampaignFlight: Required. The planned spend and duration of the - // campaign. + // CampaignFlight: Required. The planned spend and duration of the campaign. CampaignFlight *CampaignFlight `json:"campaignFlight,omitempty"` - // CampaignGoal: Required. The goal of the campaign. CampaignGoal *CampaignGoal `json:"campaignGoal,omitempty"` - - // CampaignId: Output only. The unique ID of the campaign. Assigned by - // the system. + // CampaignId: Output only. The unique ID of the campaign. Assigned by the + // system. CampaignId int64 `json:"campaignId,omitempty,string"` - - // DisplayName: Required. The display name of the campaign. Must be - // UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the campaign. Must be UTF-8 + // encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // EntityStatus: Required. Controls whether or not the insertion orders - // under this campaign can spend their budgets and bid on inventory. * - // Accepted values are `ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_ARCHIVED`, - // and `ENTITY_STATUS_PAUSED`. * For CreateCampaign method, + // EntityStatus: Required. Controls whether or not the insertion orders under + // this campaign can spend their budgets and bid on inventory. * Accepted + // values are `ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_ARCHIVED`, and + // `ENTITY_STATUS_PAUSED`. * For CreateCampaign method, // `ENTITY_STATUS_ARCHIVED` is not allowed. // // Possible values: - // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not - // specified or is unknown in this version. - // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend - // budget. - // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and - // budget spending are disabled. An entity can be deleted after - // archived. Deleted entities cannot be retrieved. - // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and - // budget spending are disabled. - // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for - // the entity. - // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled - // for deletion. + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not specified + // or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and budget + // spending are disabled. An entity can be deleted after archived. Deleted + // entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and budget + // spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for the + // entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled for + // deletion. EntityStatus string `json:"entityStatus,omitempty"` - // FrequencyCap: Required. The frequency cap setting of the campaign. FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"` - // Name: Output only. The resource name of the campaign. Name string `json:"name,omitempty"` - - // UpdateTime: Output only. The timestamp when the campaign was last - // updated. Assigned by the system. + // UpdateTime: Output only. The timestamp when the campaign was last updated. + // Assigned by the system. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Campaign) MarshalJSON() ([]byte, error) { +func (s Campaign) MarshalJSON() ([]byte, error) { type NoMethod Campaign - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignBudget: Settings that control how the campaign budget is -// allocated. +// CampaignBudget: Settings that control how the campaign budget is allocated. type CampaignBudget struct { - // BudgetAmountMicros: Required. The total amount the linked insertion - // order segments can budget. The amount is in micros. Must be greater - // than 0. For example, 500000000 represents 500 standard units of the - // currency. + // BudgetAmountMicros: Required. The total amount the linked insertion order + // segments can budget. The amount is in micros. Must be greater than 0. For + // example, 500000000 represents 500 standard units of the currency. BudgetAmountMicros int64 `json:"budgetAmountMicros,omitempty,string"` - - // BudgetId: The unique ID of the campaign budget. Assigned by the - // system. Do not set for new budgets. Must be included when updating or - // adding budgets to campaign_budgets. Otherwise, a new ID will be - // generated and assigned. + // BudgetId: The unique ID of the campaign budget. Assigned by the system. Do + // not set for new budgets. Must be included when updating or adding budgets to + // campaign_budgets. Otherwise, a new ID will be generated and assigned. BudgetId int64 `json:"budgetId,omitempty,string"` - - // BudgetUnit: Required. Immutable. Specifies whether the budget is - // measured in currency or impressions. + // BudgetUnit: Required. Immutable. Specifies whether the budget is measured in + // currency or impressions. // // Possible values: - // "BUDGET_UNIT_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "BUDGET_UNIT_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. // "BUDGET_UNIT_CURRENCY" - Budgeting in currency amounts. // "BUDGET_UNIT_IMPRESSIONS" - Budgeting in impression amounts. BudgetUnit string `json:"budgetUnit,omitempty"` - - // DateRange: Required. The date range for the campaign budget. Linked - // budget segments may have a different date range. They are resolved - // relative to the parent advertiser's time zone. Both `start_date` and - // `end_date` must be before the year 2037. + // DateRange: Required. The date range for the campaign budget. Linked budget + // segments may have a different date range. They are resolved relative to the + // parent advertiser's time zone. Both `start_date` and `end_date` must be + // before the year 2037. DateRange *DateRange `json:"dateRange,omitempty"` - - // DisplayName: Required. The display name of the budget. Must be UTF-8 - // encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the budget. Must be UTF-8 encoded + // with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // ExternalBudgetId: Immutable. The ID identifying this budget to the - // external source. If this field is set and the invoice detail level of - // the corresponding billing profile is set to "Budget level PO", all - // impressions served against this budget will include this ID on the - // invoice. Must be unique under the campaign. + // ExternalBudgetId: Immutable. The ID identifying this budget to the external + // source. If this field is set and the invoice detail level of the + // corresponding billing profile is set to "Budget level PO", all impressions + // served against this budget will include this ID on the invoice. Must be + // unique under the campaign. ExternalBudgetId string `json:"externalBudgetId,omitempty"` - // ExternalBudgetSource: Required. The external source of the budget. // // Possible values: - // "EXTERNAL_BUDGET_SOURCE_UNSPECIFIED" - External budget source value - // is not specified or unknown in this version. + // "EXTERNAL_BUDGET_SOURCE_UNSPECIFIED" - External budget source value is not + // specified or unknown in this version. // "EXTERNAL_BUDGET_SOURCE_NONE" - Budget has no external source. // "EXTERNAL_BUDGET_SOURCE_MEDIA_OCEAN" - Budget source is Mediaocean. ExternalBudgetSource string `json:"externalBudgetSource,omitempty"` - - // InvoiceGroupingId: Immutable. The ID used to group budgets to be - // included the same invoice. If this field is set and the invoice level - // of the corresponding billing profile is set to "Budget invoice - // grouping ID", all external_budget_id sharing the same - // invoice_grouping_id will be grouped in the same invoice. + // InvoiceGroupingId: Immutable. The ID used to group budgets to be included + // the same invoice. If this field is set and the invoice level of the + // corresponding billing profile is set to "Budget invoice grouping ID", all + // external_budget_id sharing the same invoice_grouping_id will be grouped in + // the same invoice. InvoiceGroupingId string `json:"invoiceGroupingId,omitempty"` - - // PrismaConfig: Additional metadata for use by the Mediaocean Prisma - // tool. Required for Mediaocean budgets. Only applicable to - // prisma_enabled advertisers. + // PrismaConfig: Additional metadata for use by the Mediaocean Prisma tool. + // Required for Mediaocean budgets. Only applicable to prisma_enabled + // advertisers. PrismaConfig *PrismaConfig `json:"prismaConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BudgetAmountMicros") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BudgetAmountMicros") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BudgetAmountMicros") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BudgetAmountMicros") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignBudget) MarshalJSON() ([]byte, error) { +func (s CampaignBudget) MarshalJSON() ([]byte, error) { type NoMethod CampaignBudget - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CampaignFlight: Settings that track the planned spend and duration of -// a campaign. +// CampaignFlight: Settings that track the planned spend and duration of a +// campaign. type CampaignFlight struct { - // PlannedDates: Required. The dates that the campaign is expected to - // run. They are resolved relative to the parent advertiser's time zone. - // * The dates specified here will not affect serving. They are used to - // generate alerts and warnings. For example, if the flight date of any - // child insertion order is outside the range of these dates, the user - // interface will show a warning. * `start_date` is required and must be - // the current date or later. * `end_date` is optional. If specified, it - // must be the `start_date` or later. * Any specified date must be - // before the year 2037. + // PlannedDates: Required. The dates that the campaign is expected to run. They + // are resolved relative to the parent advertiser's time zone. * The dates + // specified here will not affect serving. They are used to generate alerts and + // warnings. For example, if the flight date of any child insertion order is + // outside the range of these dates, the user interface will show a warning. * + // `start_date` is required and must be the current date or later. * `end_date` + // is optional. If specified, it must be the `start_date` or later. * Any + // specified date must be before the year 2037. PlannedDates *DateRange `json:"plannedDates,omitempty"` - - // PlannedSpendAmountMicros: The amount the campaign is expected to - // spend for its given planned_dates. This will not limit serving, but - // will be used for tracking spend in the DV360 UI. The amount is in - // micros. Must be greater than or equal to 0. For example, 500000000 - // represents 500 standard units of the currency. + // PlannedSpendAmountMicros: The amount the campaign is expected to spend for + // its given planned_dates. This will not limit serving, but will be used for + // tracking spend in the DV360 UI. The amount is in micros. Must be greater + // than or equal to 0. For example, 500000000 represents 500 standard units of + // the currency. PlannedSpendAmountMicros int64 `json:"plannedSpendAmountMicros,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "PlannedDates") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PlannedDates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PlannedDates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignFlight) MarshalJSON() ([]byte, error) { +func (s CampaignFlight) MarshalJSON() ([]byte, error) { type NoMethod CampaignFlight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CampaignGoal: Settings that control the goal of a campaign. @@ -3841,489 +3190,379 @@ type CampaignGoal struct { // CampaignGoalType: Required. The type of the campaign goal. // // Possible values: - // "CAMPAIGN_GOAL_TYPE_UNSPECIFIED" - Goal value is not specified or - // unknown in this version. - // "CAMPAIGN_GOAL_TYPE_APP_INSTALL" - Drive app installs or - // engagements. - // "CAMPAIGN_GOAL_TYPE_BRAND_AWARENESS" - Raise awareness of a brand - // or product. - // "CAMPAIGN_GOAL_TYPE_OFFLINE_ACTION" - Drive offline or in-store - // sales. + // "CAMPAIGN_GOAL_TYPE_UNSPECIFIED" - Goal value is not specified or unknown + // in this version. + // "CAMPAIGN_GOAL_TYPE_APP_INSTALL" - Drive app installs or engagements. + // "CAMPAIGN_GOAL_TYPE_BRAND_AWARENESS" - Raise awareness of a brand or + // product. + // "CAMPAIGN_GOAL_TYPE_OFFLINE_ACTION" - Drive offline or in-store sales. // "CAMPAIGN_GOAL_TYPE_ONLINE_ACTION" - Drive online action or visits. CampaignGoalType string `json:"campaignGoalType,omitempty"` - - // PerformanceGoal: Required. The performance goal of the campaign. - // Acceptable values for performance_goal_type are: * - // `PERFORMANCE_GOAL_TYPE_CPM` * `PERFORMANCE_GOAL_TYPE_CPC` * - // `PERFORMANCE_GOAL_TYPE_CPA` * `PERFORMANCE_GOAL_TYPE_CPIAVC` * - // `PERFORMANCE_GOAL_TYPE_CTR` * `PERFORMANCE_GOAL_TYPE_VIEWABILITY` * - // `PERFORMANCE_GOAL_TYPE_OTHER` + // PerformanceGoal: Required. The performance goal of the campaign. Acceptable + // values for performance_goal_type are: * `PERFORMANCE_GOAL_TYPE_CPM` * + // `PERFORMANCE_GOAL_TYPE_CPC` * `PERFORMANCE_GOAL_TYPE_CPA` * + // `PERFORMANCE_GOAL_TYPE_CPIAVC` * `PERFORMANCE_GOAL_TYPE_CTR` * + // `PERFORMANCE_GOAL_TYPE_VIEWABILITY` * `PERFORMANCE_GOAL_TYPE_OTHER` PerformanceGoal *PerformanceGoal `json:"performanceGoal,omitempty"` - // ForceSendFields is a list of field names (e.g. "CampaignGoalType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CampaignGoalType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CampaignGoalType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CampaignGoal) MarshalJSON() ([]byte, error) { +func (s CampaignGoal) MarshalJSON() ([]byte, error) { type NoMethod CampaignGoal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CarrierAndIspAssignedTargetingOptionDetails: Details for assigned -// carrier and ISP targeting option. This will be populated in the -// details field of an AssignedTargetingOption when targeting_type is +// CarrierAndIspAssignedTargetingOptionDetails: Details for assigned carrier +// and ISP targeting option. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_CARRIER_AND_ISP`. type CarrierAndIspAssignedTargetingOptionDetails struct { // DisplayName: Output only. The display name of the carrier or ISP. DisplayName string `json:"displayName,omitempty"` - // Negative: Indicates if this option is being negatively targeted. All - // assigned carrier and ISP targeting options on the same resource must - // have the same value for this field. + // assigned carrier and ISP targeting options on the same resource must have + // the same value for this field. Negative bool `json:"negative,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_CARRIER_AND_ISP`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_CARRIER_AND_ISP`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CarrierAndIspAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s CarrierAndIspAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod CarrierAndIspAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CarrierAndIspTargetingOptionDetails: Represents a targetable carrier -// or ISP. This will be populated in the carrier_and_isp_details field -// of a TargetingOption when targeting_type is -// `TARGETING_TYPE_CARRIER_AND_ISP`. +// CarrierAndIspTargetingOptionDetails: Represents a targetable carrier or ISP. +// This will be populated in the carrier_and_isp_details field of a +// TargetingOption when targeting_type is `TARGETING_TYPE_CARRIER_AND_ISP`. type CarrierAndIspTargetingOptionDetails struct { // DisplayName: Output only. The display name of the carrier or ISP. DisplayName string `json:"displayName,omitempty"` - // Type: Output only. The type indicating if it's carrier or ISP. // // Possible values: // "CARRIER_AND_ISP_TYPE_UNSPECIFIED" - Default value when type is not // specified or is unknown in this version. - // "CARRIER_AND_ISP_TYPE_ISP" - Indicates this targeting resource - // refers to an ISP. - // "CARRIER_AND_ISP_TYPE_CARRIER" - Indicates this targeting resource - // refers to a mobile carrier. + // "CARRIER_AND_ISP_TYPE_ISP" - Indicates this targeting resource refers to + // an ISP. + // "CARRIER_AND_ISP_TYPE_CARRIER" - Indicates this targeting resource refers + // to a mobile carrier. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CarrierAndIspTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s CarrierAndIspTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod CarrierAndIspTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CategoryAssignedTargetingOptionDetails: Assigned category targeting -// option details. This will be populated in the category_details field -// when targeting_type is `TARGETING_TYPE_CATEGORY`. +// CategoryAssignedTargetingOptionDetails: Assigned category targeting option +// details. This will be populated in the category_details field when +// targeting_type is `TARGETING_TYPE_CATEGORY`. type CategoryAssignedTargetingOptionDetails struct { // DisplayName: Output only. The display name of the category. DisplayName string `json:"displayName,omitempty"` - // Negative: Indicates if this option is being negatively targeted. Negative bool `json:"negative,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_CATEGORY`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CategoryAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s CategoryAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod CategoryAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CategoryTargetingOptionDetails: Represents a targetable category. -// This will be populated in the category_details field of a -// TargetingOption when targeting_type is `TARGETING_TYPE_CATEGORY`. +// CategoryTargetingOptionDetails: Represents a targetable category. This will +// be populated in the category_details field of a TargetingOption when +// targeting_type is `TARGETING_TYPE_CATEGORY`. type CategoryTargetingOptionDetails struct { // DisplayName: Output only. The display name of the category. DisplayName string `json:"displayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CategoryTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s CategoryTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod CategoryTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Channel: A single channel. Channels are custom groups of related -// websites and apps. +// Channel: A single channel. Channels are custom groups of related websites +// and apps. type Channel struct { // AdvertiserId: The ID of the advertiser that owns the channel. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // ChannelId: Output only. The unique ID of the channel. Assigned by the // system. ChannelId int64 `json:"channelId,omitempty,string"` - // DisplayName: Required. The display name of the channel. Must be UTF-8 // encoded with a maximum length of 240 bytes. DisplayName string `json:"displayName,omitempty"` - // Name: Output only. The resource name of the channel. Name string `json:"name,omitempty"` - - // NegativelyTargetedLineItemCount: Output only. Number of line items - // that are directly targeting this channel negatively. + // NegativelyTargetedLineItemCount: Output only. Number of line items that are + // directly targeting this channel negatively. NegativelyTargetedLineItemCount int64 `json:"negativelyTargetedLineItemCount,omitempty,string"` - // PartnerId: The ID of the partner that owns the channel. PartnerId int64 `json:"partnerId,omitempty,string"` - - // PositivelyTargetedLineItemCount: Output only. Number of line items - // that are directly targeting this channel positively. + // PositivelyTargetedLineItemCount: Output only. Number of line items that are + // directly targeting this channel positively. PositivelyTargetedLineItemCount int64 `json:"positivelyTargetedLineItemCount,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Channel) MarshalJSON() ([]byte, error) { +func (s Channel) MarshalJSON() ([]byte, error) { type NoMethod Channel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ChannelAssignedTargetingOptionDetails: Details for assigned channel // targeting option. This will be populated in the details field of an -// AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_CHANNEL`. +// AssignedTargetingOption when targeting_type is `TARGETING_TYPE_CHANNEL`. type ChannelAssignedTargetingOptionDetails struct { - // ChannelId: Required. ID of the channel. Should refer to the channel - // ID field on a Partner-owned channel - // (partners.channels#Channel.FIELDS.channel_id) or advertiser-owned - // channel (advertisers.channels#Channel.FIELDS.channel_id) resource. + // ChannelId: Required. ID of the channel. Should refer to the channel ID field + // on a Partner-owned channel (partners.channels#Channel.FIELDS.channel_id) or + // advertiser-owned channel (advertisers.channels#Channel.FIELDS.channel_id) + // resource. ChannelId int64 `json:"channelId,omitempty,string"` - // Negative: Indicates if this option is being negatively targeted. For // advertiser level assigned targeting option, this field must be true. Negative bool `json:"negative,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChannelAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ChannelAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ChannelAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CmHybridConfig: Settings for advertisers that use both Campaign -// Manager 360 (CM360) and third-party ad servers. +// CmHybridConfig: Settings for advertisers that use both Campaign Manager 360 +// (CM360) and third-party ad servers. type CmHybridConfig struct { // CmAccountId: Required. Immutable. Account ID of the CM360 Floodlight // configuration linked with the DV360 advertiser. CmAccountId int64 `json:"cmAccountId,omitempty,string"` - - // CmAdvertiserIds: Output only. The set of CM360 Advertiser IDs sharing - // the CM360 Floodlight configuration. + // CmAdvertiserIds: Output only. The set of CM360 Advertiser IDs sharing the + // CM360 Floodlight configuration. CmAdvertiserIds googleapi.Int64s `json:"cmAdvertiserIds,omitempty"` - // CmFloodlightConfigId: Required. Immutable. ID of the CM360 Floodlight // configuration linked with the DV360 advertiser. CmFloodlightConfigId int64 `json:"cmFloodlightConfigId,omitempty,string"` - - // CmFloodlightLinkingAuthorized: Required. Immutable. By setting this - // field to `true`, you, on behalf of your company, authorize the - // sharing of information from the given Floodlight configuration to - // this Display & Video 360 advertiser. + // CmFloodlightLinkingAuthorized: Required. Immutable. By setting this field to + // `true`, you, on behalf of your company, authorize the sharing of information + // from the given Floodlight configuration to this Display & Video 360 + // advertiser. CmFloodlightLinkingAuthorized bool `json:"cmFloodlightLinkingAuthorized,omitempty"` - - // CmSyncableSiteIds: A list of CM360 sites whose placements will be - // synced to DV360 as creatives. If absent or empty in CreateAdvertiser - // method, the system will automatically create a CM360 site. Removing - // sites from this list may cause DV360 creatives synced from CM360 to - // be deleted. At least one site must be specified. + // CmSyncableSiteIds: A list of CM360 sites whose placements will be synced to + // DV360 as creatives. If absent or empty in CreateAdvertiser method, the + // system will automatically create a CM360 site. Removing sites from this list + // may cause DV360 creatives synced from CM360 to be deleted. At least one site + // must be specified. CmSyncableSiteIds googleapi.Int64s `json:"cmSyncableSiteIds,omitempty"` - - // Dv360ToCmCostReportingEnabled: Whether or not to report DV360 cost to - // CM360. + // Dv360ToCmCostReportingEnabled: Whether or not to report DV360 cost to CM360. Dv360ToCmCostReportingEnabled bool `json:"dv360ToCmCostReportingEnabled,omitempty"` - - // Dv360ToCmDataSharingEnabled: Whether or not to include DV360 data in - // CM360 data transfer reports. + // Dv360ToCmDataSharingEnabled: Whether or not to include DV360 data in CM360 + // data transfer reports. Dv360ToCmDataSharingEnabled bool `json:"dv360ToCmDataSharingEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. "CmAccountId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CmAccountId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CmAccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CmHybridConfig) MarshalJSON() ([]byte, error) { +func (s CmHybridConfig) MarshalJSON() ([]byte, error) { type NoMethod CmHybridConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CmTrackingAd: A Campaign Manager 360 tracking ad. type CmTrackingAd struct { // CmAdId: The ad ID of the campaign manager 360 tracking Ad. CmAdId int64 `json:"cmAdId,omitempty,string"` - - // CmCreativeId: The creative ID of the campaign manager 360 tracking - // Ad. + // CmCreativeId: The creative ID of the campaign manager 360 tracking Ad. CmCreativeId int64 `json:"cmCreativeId,omitempty,string"` - - // CmPlacementId: The placement ID of the campaign manager 360 tracking - // Ad. + // CmPlacementId: The placement ID of the campaign manager 360 tracking Ad. CmPlacementId int64 `json:"cmPlacementId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "CmAdId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CmAdId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CmAdId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CmTrackingAd) MarshalJSON() ([]byte, error) { +func (s CmTrackingAd) MarshalJSON() ([]byte, error) { type NoMethod CmTrackingAd - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CombinedAudience: Describes a combined audience resource. type CombinedAudience struct { - // CombinedAudienceId: Output only. The unique ID of the combined - // audience. Assigned by the system. + // CombinedAudienceId: Output only. The unique ID of the combined audience. + // Assigned by the system. CombinedAudienceId int64 `json:"combinedAudienceId,omitempty,string"` - - // DisplayName: Output only. The display name of the combined audience. - // . + // DisplayName: Output only. The display name of the combined audience. . DisplayName string `json:"displayName,omitempty"` - // Name: Output only. The resource name of the combined audience. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CombinedAudienceId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CombinedAudienceId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CombinedAudienceId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CombinedAudienceId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CombinedAudience) MarshalJSON() ([]byte, error) { +func (s CombinedAudience) MarshalJSON() ([]byte, error) { type NoMethod CombinedAudience - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CombinedAudienceGroup: Details of combined audience group. All -// combined audience targeting settings are logically ‘OR’ of each -// other. +// CombinedAudienceGroup: Details of combined audience group. All combined +// audience targeting settings are logically ‘OR’ of each other. type CombinedAudienceGroup struct { - // Settings: Required. All combined audience targeting settings in - // combined audience group. Repeated settings with same id will be - // ignored. The number of combined audience settings should be no more - // than five, error will be thrown otherwise. + // Settings: Required. All combined audience targeting settings in combined + // audience group. Repeated settings with same id will be ignored. The number + // of combined audience settings should be no more than five, error will be + // thrown otherwise. Settings []*CombinedAudienceTargetingSetting `json:"settings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Settings") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Settings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Settings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CombinedAudienceGroup) MarshalJSON() ([]byte, error) { +func (s CombinedAudienceGroup) MarshalJSON() ([]byte, error) { type NoMethod CombinedAudienceGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CombinedAudienceTargetingSetting: Details of combined audience -// targeting setting. +// CombinedAudienceTargetingSetting: Details of combined audience targeting +// setting. type CombinedAudienceTargetingSetting struct { - // CombinedAudienceId: Required. Combined audience id of combined - // audience targeting setting. This id is combined_audience_id. + // CombinedAudienceId: Required. Combined audience id of combined audience + // targeting setting. This id is combined_audience_id. CombinedAudienceId int64 `json:"combinedAudienceId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "CombinedAudienceId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CombinedAudienceId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CombinedAudienceId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CombinedAudienceId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CombinedAudienceTargetingSetting) MarshalJSON() ([]byte, error) { +func (s CombinedAudienceTargetingSetting) MarshalJSON() ([]byte, error) { type NoMethod CombinedAudienceTargetingSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Consent: User consent status. @@ -4331,153 +3570,123 @@ type Consent struct { // AdPersonalization: Represents consent for ad personalization. // // Possible values: - // "CONSENT_STATUS_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "CONSENT_STATUS_UNSPECIFIED" - Type value is not specified or is unknown + // in this version. // "CONSENT_STATUS_GRANTED" - Consent is granted. // "CONSENT_STATUS_DENIED" - Consent is denied. AdPersonalization string `json:"adPersonalization,omitempty"` - // AdUserData: Represents consent for ad user data. // // Possible values: - // "CONSENT_STATUS_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "CONSENT_STATUS_UNSPECIFIED" - Type value is not specified or is unknown + // in this version. // "CONSENT_STATUS_GRANTED" - Consent is granted. // "CONSENT_STATUS_DENIED" - Consent is denied. AdUserData string `json:"adUserData,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdPersonalization") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdPersonalization") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdPersonalization") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdPersonalization") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Consent) MarshalJSON() ([]byte, error) { +func (s Consent) MarshalJSON() ([]byte, error) { type NoMethod Consent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContactInfo: Contact information defining a Customer Match audience -// member. +// ContactInfo: Contact information defining a Customer Match audience member. type ContactInfo struct { - // CountryCode: Country code of the member. Must also be set with the - // following fields: * hashed_first_name * hashed_last_name * zip_codes + // CountryCode: Country code of the member. Must also be set with the following + // fields: * hashed_first_name * hashed_last_name * zip_codes CountryCode string `json:"countryCode,omitempty"` - - // HashedEmails: A list of SHA256 hashed email of the member. Before - // hashing, remove all whitespace and make sure the string is all - // lowercase. + // HashedEmails: A list of SHA256 hashed email of the member. Before hashing, + // remove all whitespace and make sure the string is all lowercase. HashedEmails []string `json:"hashedEmails,omitempty"` - - // HashedFirstName: SHA256 hashed first name of the member. Before - // hashing, remove all whitespace and make sure the string is all - // lowercase. Must also be set with the following fields: * country_code - // * hashed_last_name * zip_codes + // HashedFirstName: SHA256 hashed first name of the member. Before hashing, + // remove all whitespace and make sure the string is all lowercase. Must also + // be set with the following fields: * country_code * hashed_last_name * + // zip_codes HashedFirstName string `json:"hashedFirstName,omitempty"` - - // HashedLastName: SHA256 hashed last name of the member. Before - // hashing, remove all whitespace and make sure the string is all - // lowercase. Must also be set with the following fields: * country_code - // * hashed_first_name * zip_codes + // HashedLastName: SHA256 hashed last name of the member. Before hashing, + // remove all whitespace and make sure the string is all lowercase. Must also + // be set with the following fields: * country_code * hashed_first_name * + // zip_codes HashedLastName string `json:"hashedLastName,omitempty"` - - // HashedPhoneNumbers: A list of SHA256 hashed phone numbers of the - // member. Before hashing, all phone numbers must be formatted using the - // E.164 format (//en.wikipedia.org/wiki/E.164) and include the country - // calling code. + // HashedPhoneNumbers: A list of SHA256 hashed phone numbers of the member. + // Before hashing, all phone numbers must be formatted using the E.164 format + // (//en.wikipedia.org/wiki/E.164) and include the country calling code. HashedPhoneNumbers []string `json:"hashedPhoneNumbers,omitempty"` - - // ZipCodes: A list of zip codes of the member. Must also be set with - // the following fields: * country_code * hashed_first_name * - // hashed_last_name + // ZipCodes: A list of zip codes of the member. Must also be set with the + // following fields: * country_code * hashed_first_name * hashed_last_name ZipCodes []string `json:"zipCodes,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContactInfo) MarshalJSON() ([]byte, error) { +func (s ContactInfo) MarshalJSON() ([]byte, error) { type NoMethod ContactInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContactInfoList: Wrapper message for a list of contact information -// defining Customer Match audience members. +// ContactInfoList: Wrapper message for a list of contact information defining +// Customer Match audience members. type ContactInfoList struct { - // Consent: Input only. The consent setting for the users in - // contact_infos. Leaving this field unset indicates that consent is not - // specified. If ad_user_data or ad_personalization fields are set to + // Consent: Input only. The consent setting for the users in contact_infos. + // Leaving this field unset indicates that consent is not specified. If + // ad_user_data or ad_personalization fields are set to // `CONSENT_STATUS_DENIED`, the request will return an error. Consent *Consent `json:"consent,omitempty"` - - // ContactInfos: A list of ContactInfo objects defining Customer Match - // audience members. The size of members after splitting the - // contact_infos mustn't be greater than 500,000. + // ContactInfos: A list of ContactInfo objects defining Customer Match audience + // members. The size of members after splitting the contact_infos mustn't be + // greater than 500,000. ContactInfos []*ContactInfo `json:"contactInfos,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Consent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Consent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Consent") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Consent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContactInfoList) MarshalJSON() ([]byte, error) { +func (s ContactInfoList) MarshalJSON() ([]byte, error) { type NoMethod ContactInfoList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentDurationAssignedTargetingOptionDetails: Details for content -// duration assigned targeting option. This will be populated in the +// ContentDurationAssignedTargetingOptionDetails: Details for content duration +// assigned targeting option. This will be populated in the // content_duration_details field when targeting_type is -// `TARGETING_TYPE_CONTENT_DURATION`. Explicitly targeting all options -// is not supported. Remove all content duration targeting options to -// achieve this effect. +// `TARGETING_TYPE_CONTENT_DURATION`. Explicitly targeting all options is not +// supported. Remove all content duration targeting options to achieve this +// effect. type ContentDurationAssignedTargetingOptionDetails struct { // ContentDuration: Output only. The content duration. // // Possible values: - // "CONTENT_DURATION_UNSPECIFIED" - Content duration is not specified - // in this version. This enum is a place holder for a default value and - // does not represent a real content duration. + // "CONTENT_DURATION_UNSPECIFIED" - Content duration is not specified in this + // version. This enum is a place holder for a default value and does not + // represent a real content duration. // "CONTENT_DURATION_UNKNOWN" - The content duration is unknown. // "CONTENT_DURATION_0_TO_1_MIN" - Content is 0-1 minute long. // "CONTENT_DURATION_1_TO_5_MIN" - Content is 1-5 minutes long. @@ -4486,46 +3695,37 @@ type ContentDurationAssignedTargetingOptionDetails struct { // "CONTENT_DURATION_30_TO_60_MIN" - Content is 30-60 minutes long. // "CONTENT_DURATION_OVER_60_MIN" - Content is over 60 minutes long. ContentDuration string `json:"contentDuration,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_CONTENT_DURATION`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentDuration") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentDuration") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentDuration") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentDurationAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ContentDurationAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ContentDurationAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentDurationTargetingOptionDetails: Represents a targetable -// content duration. This will be populated in the -// content_duration_details field when targeting_type is -// `TARGETING_TYPE_CONTENT_DURATION`. +// ContentDurationTargetingOptionDetails: Represents a targetable content +// duration. This will be populated in the content_duration_details field when +// targeting_type is `TARGETING_TYPE_CONTENT_DURATION`. type ContentDurationTargetingOptionDetails struct { // ContentDuration: Output only. The content duration. // // Possible values: - // "CONTENT_DURATION_UNSPECIFIED" - Content duration is not specified - // in this version. This enum is a place holder for a default value and - // does not represent a real content duration. + // "CONTENT_DURATION_UNSPECIFIED" - Content duration is not specified in this + // version. This enum is a place holder for a default value and does not + // represent a real content duration. // "CONTENT_DURATION_UNKNOWN" - The content duration is unknown. // "CONTENT_DURATION_0_TO_1_MIN" - Content is 0-1 minute long. // "CONTENT_DURATION_1_TO_5_MIN" - Content is 1-5 minutes long. @@ -4534,524 +3734,423 @@ type ContentDurationTargetingOptionDetails struct { // "CONTENT_DURATION_30_TO_60_MIN" - Content is 30-60 minutes long. // "CONTENT_DURATION_OVER_60_MIN" - Content is over 60 minutes long. ContentDuration string `json:"contentDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentDuration") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentDuration") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentDuration") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentDurationTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ContentDurationTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ContentDurationTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContentGenreAssignedTargetingOptionDetails: Details for content genre // assigned targeting option. This will be populated in the // content_genre_details field when targeting_type is -// `TARGETING_TYPE_CONTENT_GENRE`. Explicitly targeting all options is -// not supported. Remove all content genre targeting options to achieve -// this effect. +// `TARGETING_TYPE_CONTENT_GENRE`. Explicitly targeting all options is not +// supported. Remove all content genre targeting options to achieve this +// effect. type ContentGenreAssignedTargetingOptionDetails struct { // DisplayName: Output only. The display name of the content genre. DisplayName string `json:"displayName,omitempty"` - // Negative: Indicates if this option is being negatively targeted. Negative bool `json:"negative,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_CONTENT_GENRE`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentGenreAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ContentGenreAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ContentGenreAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentGenreTargetingOptionDetails: Represents a targetable content -// genre. This will be populated in the content_genre_details field when +// ContentGenreTargetingOptionDetails: Represents a targetable content genre. +// This will be populated in the content_genre_details field when // targeting_type is `TARGETING_TYPE_CONTENT_GENRE`. type ContentGenreTargetingOptionDetails struct { // DisplayName: Output only. The display name of the content genre DisplayName string `json:"displayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentGenreTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ContentGenreTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ContentGenreTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentInstreamPositionAssignedTargetingOptionDetails: Assigned -// content instream position targeting option details. This will be -// populated in the content_instream_position_details field when -// targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. +// ContentInstreamPositionAssignedTargetingOptionDetails: Assigned content +// instream position targeting option details. This will be populated in the +// content_instream_position_details field when targeting_type is +// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. type ContentInstreamPositionAssignedTargetingOptionDetails struct { - // AdType: Output only. The ad type to target. Only applicable to - // insertion order targeting and new line items supporting the specified - // ad type will inherit this targeting option by default. Possible - // values are: * `AD_TYPE_VIDEO`, the setting will be inherited by new - // line item when line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`. * - // `AD_TYPE_AUDIO`, the setting will be inherited by new line item when - // line_item_type is `LINE_ITEM_TYPE_AUDIO_DEFAULT`. + // AdType: Output only. The ad type to target. Only applicable to insertion + // order targeting and new line items supporting the specified ad type will + // inherit this targeting option by default. Possible values are: * + // `AD_TYPE_VIDEO`, the setting will be inherited by new line item when + // line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`. * `AD_TYPE_AUDIO`, the + // setting will be inherited by new line item when line_item_type is + // `LINE_ITEM_TYPE_AUDIO_DEFAULT`. // // Possible values: - // "AD_TYPE_UNSPECIFIED" - Ad type is not specified or is unknown in - // this version. + // "AD_TYPE_UNSPECIFIED" - Ad type is not specified or is unknown in this + // version. // "AD_TYPE_DISPLAY" - Display creatives, e.g. image and HTML5. // "AD_TYPE_VIDEO" - Video creatives, e.g. video ads that play during // streaming content in video players. - // "AD_TYPE_AUDIO" - Audio creatives, e.g. audio ads that play during - // audio content. + // "AD_TYPE_AUDIO" - Audio creatives, e.g. audio ads that play during audio + // content. AdType string `json:"adType,omitempty"` - - // ContentInstreamPosition: Required. The content instream position for - // video or audio ads. + // ContentInstreamPosition: Required. The content instream position for video + // or audio ads. // // Possible values: - // "CONTENT_INSTREAM_POSITION_UNSPECIFIED" - Content instream position - // is not specified in this version. This enum is a place holder for a - // default value and does not represent a real in stream ad position. - // "CONTENT_INSTREAM_POSITION_PRE_ROLL" - Ads that play before - // streaming content. - // "CONTENT_INSTREAM_POSITION_MID_ROLL" - Ads that play between the - // beginning and end of streaming content. + // "CONTENT_INSTREAM_POSITION_UNSPECIFIED" - Content instream position is not + // specified in this version. This enum is a place holder for a default value + // and does not represent a real in stream ad position. + // "CONTENT_INSTREAM_POSITION_PRE_ROLL" - Ads that play before streaming + // content. + // "CONTENT_INSTREAM_POSITION_MID_ROLL" - Ads that play between the beginning + // and end of streaming content. // "CONTENT_INSTREAM_POSITION_POST_ROLL" - Ads that play at the end of // streaming content. - // "CONTENT_INSTREAM_POSITION_UNKNOWN" - Ads instream position is - // unknown. + // "CONTENT_INSTREAM_POSITION_UNKNOWN" - Ads instream position is unknown. ContentInstreamPosition string `json:"contentInstreamPosition,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdType") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdType") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentInstreamPositionAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ContentInstreamPositionAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ContentInstreamPositionAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentInstreamPositionTargetingOptionDetails: Represents a -// targetable content instream position, which could be used by video -// and audio ads. This will be populated in the -// content_instream_position_details field when targeting_type is -// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. +// ContentInstreamPositionTargetingOptionDetails: Represents a targetable +// content instream position, which could be used by video and audio ads. This +// will be populated in the content_instream_position_details field when +// targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. type ContentInstreamPositionTargetingOptionDetails struct { // ContentInstreamPosition: Output only. The content instream position. // // Possible values: - // "CONTENT_INSTREAM_POSITION_UNSPECIFIED" - Content instream position - // is not specified in this version. This enum is a place holder for a - // default value and does not represent a real in stream ad position. - // "CONTENT_INSTREAM_POSITION_PRE_ROLL" - Ads that play before - // streaming content. - // "CONTENT_INSTREAM_POSITION_MID_ROLL" - Ads that play between the - // beginning and end of streaming content. + // "CONTENT_INSTREAM_POSITION_UNSPECIFIED" - Content instream position is not + // specified in this version. This enum is a place holder for a default value + // and does not represent a real in stream ad position. + // "CONTENT_INSTREAM_POSITION_PRE_ROLL" - Ads that play before streaming + // content. + // "CONTENT_INSTREAM_POSITION_MID_ROLL" - Ads that play between the beginning + // and end of streaming content. // "CONTENT_INSTREAM_POSITION_POST_ROLL" - Ads that play at the end of // streaming content. - // "CONTENT_INSTREAM_POSITION_UNKNOWN" - Ads instream position is - // unknown. + // "CONTENT_INSTREAM_POSITION_UNKNOWN" - Ads instream position is unknown. ContentInstreamPosition string `json:"contentInstreamPosition,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ContentInstreamPosition") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentInstreamPosition") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentInstreamPosition") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentInstreamPosition") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentInstreamPositionTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ContentInstreamPositionTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ContentInstreamPositionTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentOutstreamPositionAssignedTargetingOptionDetails: Assigned -// content outstream position targeting option details. This will be -// populated in the content_outstream_position_details field when -// targeting_type is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. +// ContentOutstreamPositionAssignedTargetingOptionDetails: Assigned content +// outstream position targeting option details. This will be populated in the +// content_outstream_position_details field when targeting_type is +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. type ContentOutstreamPositionAssignedTargetingOptionDetails struct { - // AdType: Output only. The ad type to target. Only applicable to - // insertion order targeting and new line items supporting the specified - // ad type will inherit this targeting option by default. Possible - // values are: * `AD_TYPE_DISPLAY`, the setting will be inherited by new - // line item when line_item_type is `LINE_ITEM_TYPE_DISPLAY_DEFAULT`. * - // `AD_TYPE_VIDEO`, the setting will be inherited by new line item when - // line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`. + // AdType: Output only. The ad type to target. Only applicable to insertion + // order targeting and new line items supporting the specified ad type will + // inherit this targeting option by default. Possible values are: * + // `AD_TYPE_DISPLAY`, the setting will be inherited by new line item when + // line_item_type is `LINE_ITEM_TYPE_DISPLAY_DEFAULT`. * `AD_TYPE_VIDEO`, the + // setting will be inherited by new line item when line_item_type is + // `LINE_ITEM_TYPE_VIDEO_DEFAULT`. // // Possible values: - // "AD_TYPE_UNSPECIFIED" - Ad type is not specified or is unknown in - // this version. + // "AD_TYPE_UNSPECIFIED" - Ad type is not specified or is unknown in this + // version. // "AD_TYPE_DISPLAY" - Display creatives, e.g. image and HTML5. // "AD_TYPE_VIDEO" - Video creatives, e.g. video ads that play during // streaming content in video players. - // "AD_TYPE_AUDIO" - Audio creatives, e.g. audio ads that play during - // audio content. + // "AD_TYPE_AUDIO" - Audio creatives, e.g. audio ads that play during audio + // content. AdType string `json:"adType,omitempty"` - // ContentOutstreamPosition: Required. The content outstream position. // // Possible values: - // "CONTENT_OUTSTREAM_POSITION_UNSPECIFIED" - Content outstream - // position is not specified in this version. This enum is a place - // holder for a default value and does not represent a real content - // outstream position. - // "CONTENT_OUTSTREAM_POSITION_UNKNOWN" - The ad position is unknown - // in the content outstream. - // "CONTENT_OUTSTREAM_POSITION_IN_ARTICLE" - Ads that appear between - // the paragraphs of your pages. - // "CONTENT_OUTSTREAM_POSITION_IN_BANNER" - Ads that display on the - // top and the sides of a page. - // "CONTENT_OUTSTREAM_POSITION_IN_FEED" - Ads that appear in a - // scrollable stream of content. A feed is typically editorial (e.g. a - // list of articles or news) or listings (e.g. a list of products or - // services). - // "CONTENT_OUTSTREAM_POSITION_INTERSTITIAL" - Ads shown before or - // between content loads. + // "CONTENT_OUTSTREAM_POSITION_UNSPECIFIED" - Content outstream position is + // not specified in this version. This enum is a place holder for a default + // value and does not represent a real content outstream position. + // "CONTENT_OUTSTREAM_POSITION_UNKNOWN" - The ad position is unknown in the + // content outstream. + // "CONTENT_OUTSTREAM_POSITION_IN_ARTICLE" - Ads that appear between the + // paragraphs of your pages. + // "CONTENT_OUTSTREAM_POSITION_IN_BANNER" - Ads that display on the top and + // the sides of a page. + // "CONTENT_OUTSTREAM_POSITION_IN_FEED" - Ads that appear in a scrollable + // stream of content. A feed is typically editorial (e.g. a list of articles or + // news) or listings (e.g. a list of products or services). + // "CONTENT_OUTSTREAM_POSITION_INTERSTITIAL" - Ads shown before or between + // content loads. ContentOutstreamPosition string `json:"contentOutstreamPosition,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdType") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdType") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentOutstreamPositionAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ContentOutstreamPositionAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ContentOutstreamPositionAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentOutstreamPositionTargetingOptionDetails: Represents a -// targetable content outstream position, which could be used by display -// and video ads. This will be populated in the -// content_outstream_position_details field when targeting_type is -// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. +// ContentOutstreamPositionTargetingOptionDetails: Represents a targetable +// content outstream position, which could be used by display and video ads. +// This will be populated in the content_outstream_position_details field when +// targeting_type is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. type ContentOutstreamPositionTargetingOptionDetails struct { - // ContentOutstreamPosition: Output only. The content outstream - // position. + // ContentOutstreamPosition: Output only. The content outstream position. // // Possible values: - // "CONTENT_OUTSTREAM_POSITION_UNSPECIFIED" - Content outstream - // position is not specified in this version. This enum is a place - // holder for a default value and does not represent a real content - // outstream position. - // "CONTENT_OUTSTREAM_POSITION_UNKNOWN" - The ad position is unknown - // in the content outstream. - // "CONTENT_OUTSTREAM_POSITION_IN_ARTICLE" - Ads that appear between - // the paragraphs of your pages. - // "CONTENT_OUTSTREAM_POSITION_IN_BANNER" - Ads that display on the - // top and the sides of a page. - // "CONTENT_OUTSTREAM_POSITION_IN_FEED" - Ads that appear in a - // scrollable stream of content. A feed is typically editorial (e.g. a - // list of articles or news) or listings (e.g. a list of products or - // services). - // "CONTENT_OUTSTREAM_POSITION_INTERSTITIAL" - Ads shown before or - // between content loads. + // "CONTENT_OUTSTREAM_POSITION_UNSPECIFIED" - Content outstream position is + // not specified in this version. This enum is a place holder for a default + // value and does not represent a real content outstream position. + // "CONTENT_OUTSTREAM_POSITION_UNKNOWN" - The ad position is unknown in the + // content outstream. + // "CONTENT_OUTSTREAM_POSITION_IN_ARTICLE" - Ads that appear between the + // paragraphs of your pages. + // "CONTENT_OUTSTREAM_POSITION_IN_BANNER" - Ads that display on the top and + // the sides of a page. + // "CONTENT_OUTSTREAM_POSITION_IN_FEED" - Ads that appear in a scrollable + // stream of content. A feed is typically editorial (e.g. a list of articles or + // news) or listings (e.g. a list of products or services). + // "CONTENT_OUTSTREAM_POSITION_INTERSTITIAL" - Ads shown before or between + // content loads. ContentOutstreamPosition string `json:"contentOutstreamPosition,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ContentOutstreamPosition") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentOutstreamPosition") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentOutstreamPosition") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentOutstreamPosition") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentOutstreamPositionTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ContentOutstreamPositionTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ContentOutstreamPositionTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentStreamTypeAssignedTargetingOptionDetails: Details for content -// stream type assigned targeting option. This will be populated in the +// ContentStreamTypeAssignedTargetingOptionDetails: Details for content stream +// type assigned targeting option. This will be populated in the // content_stream_type_details field when targeting_type is -// `TARGETING_TYPE_CONTENT_STREAM_TYPE`. Explicitly targeting all -// options is not supported. Remove all content stream type targeting -// options to achieve this effect. +// `TARGETING_TYPE_CONTENT_STREAM_TYPE`. Explicitly targeting all options is +// not supported. Remove all content stream type targeting options to achieve +// this effect. type ContentStreamTypeAssignedTargetingOptionDetails struct { // ContentStreamType: Output only. The content stream type. // // Possible values: - // "CONTENT_STREAM_TYPE_UNSPECIFIED" - Content stream type is not - // specified in this version. This enum is a place holder for a default - // value and does not represent a real content stream type. + // "CONTENT_STREAM_TYPE_UNSPECIFIED" - Content stream type is not specified + // in this version. This enum is a place holder for a default value and does + // not represent a real content stream type. // "CONTENT_LIVE_STREAM" - The content is being live-streamed. // "CONTENT_ON_DEMAND" - The content is viewed on-demand. ContentStreamType string `json:"contentStreamType,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ContentStreamType") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentStreamType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentStreamType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentStreamType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentStreamTypeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ContentStreamTypeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ContentStreamTypeAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContentStreamTypeTargetingOptionDetails: Represents a targetable -// content stream type. This will be populated in the -// content_stream_type_details field when targeting_type is -// `TARGETING_TYPE_CONTENT_STREAM_TYPE`. +// ContentStreamTypeTargetingOptionDetails: Represents a targetable content +// stream type. This will be populated in the content_stream_type_details field +// when targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`. type ContentStreamTypeTargetingOptionDetails struct { // ContentStreamType: Output only. The content stream type. // // Possible values: - // "CONTENT_STREAM_TYPE_UNSPECIFIED" - Content stream type is not - // specified in this version. This enum is a place holder for a default - // value and does not represent a real content stream type. + // "CONTENT_STREAM_TYPE_UNSPECIFIED" - Content stream type is not specified + // in this version. This enum is a place holder for a default value and does + // not represent a real content stream type. // "CONTENT_LIVE_STREAM" - The content is being live-streamed. // "CONTENT_ON_DEMAND" - The content is viewed on-demand. ContentStreamType string `json:"contentStreamType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ContentStreamType") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentStreamType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentStreamType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentStreamType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContentStreamTypeTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ContentStreamTypeTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ContentStreamTypeTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConversionCountingConfig: Settings that control how conversions are -// counted. All post-click conversions will be counted. A percentage -// value can be set for post-view conversions counting. +// ConversionCountingConfig: Settings that control how conversions are counted. +// All post-click conversions will be counted. A percentage value can be set +// for post-view conversions counting. type ConversionCountingConfig struct { - // FloodlightActivityConfigs: The Floodlight activity configs used to - // track conversions. The number of conversions counted is the sum of - // all of the conversions counted by all of the Floodlight activity IDs - // specified in this field. + // FloodlightActivityConfigs: The Floodlight activity configs used to track + // conversions. The number of conversions counted is the sum of all of the + // conversions counted by all of the Floodlight activity IDs specified in this + // field. FloodlightActivityConfigs []*TrackingFloodlightActivityConfig `json:"floodlightActivityConfigs,omitempty"` - - // PostViewCountPercentageMillis: The percentage of post-view - // conversions to count, in millis (1/1000 of a percent). Must be - // between 0 and 100000 inclusive. For example, to track 50% of the - // post-click conversions, set a value of 50000. + // PostViewCountPercentageMillis: The percentage of post-view conversions to + // count, in millis (1/1000 of a percent). Must be between 0 and 100000 + // inclusive. For example, to track 50% of the post-click conversions, set a + // value of 50000. PostViewCountPercentageMillis int64 `json:"postViewCountPercentageMillis,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityConfigs") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityConfigs") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "FloodlightActivityConfigs") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "FloodlightActivityConfigs") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConversionCountingConfig) MarshalJSON() ([]byte, error) { +func (s ConversionCountingConfig) MarshalJSON() ([]byte, error) { type NoMethod ConversionCountingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CounterEvent: Counter event of the creative. type CounterEvent struct { // Name: Required. The name of the counter event. Name string `json:"name,omitempty"` - - // ReportingName: Required. The name used to identify this counter event - // in reports. + // ReportingName: Required. The name used to identify this counter event in + // reports. ReportingName string `json:"reportingName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CounterEvent) MarshalJSON() ([]byte, error) { +func (s CounterEvent) MarshalJSON() ([]byte, error) { type NoMethod CounterEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateAssetRequest: A request message for CreateAsset. type CreateAssetRequest struct { - // Filename: Required. The filename of the asset, including the file - // extension. The filename must be UTF-8 encoded with a maximum size of - // 240 bytes. + // Filename: Required. The filename of the asset, including the file extension. + // The filename must be UTF-8 encoded with a maximum size of 240 bytes. Filename string `json:"filename,omitempty"` - // ForceSendFields is a list of field names (e.g. "Filename") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filename") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filename") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateAssetRequest) MarshalJSON() ([]byte, error) { +func (s CreateAssetRequest) MarshalJSON() ([]byte, error) { type NoMethod CreateAssetRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateAssetResponse: A response message for CreateAsset. @@ -5059,169 +4158,147 @@ type CreateAssetResponse struct { // Asset: The uploaded asset, if successful. Asset *Asset `json:"asset,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Asset") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Asset") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Asset") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateAssetResponse) MarshalJSON() ([]byte, error) { +func (s CreateAssetResponse) MarshalJSON() ([]byte, error) { type NoMethod CreateAssetResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CreateAssignedTargetingOptionsRequest: A request listing which -// assigned targeting options of a given targeting type should be -// created and added. +// CreateAssignedTargetingOptionsRequest: A request listing which assigned +// targeting options of a given targeting type should be created and added. type CreateAssignedTargetingOptionsRequest struct { - // AssignedTargetingOptions: Required. The assigned targeting options to - // create and add. + // AssignedTargetingOptions: Required. The assigned targeting options to create + // and add. AssignedTargetingOptions []*AssignedTargetingOption `json:"assignedTargetingOptions,omitempty"` - - // TargetingType: Required. Identifies the type of this assigned - // targeting option. + // TargetingType: Required. Identifies the type of this assigned targeting + // option. // // Possible values: - // "TARGETING_TYPE_UNSPECIFIED" - Default value when type is not - // specified or is unknown in this version. - // "TARGETING_TYPE_CHANNEL" - Target a channel (a custom group of - // related websites or apps). - // "TARGETING_TYPE_APP_CATEGORY" - Target an app category (for - // example, education or puzzle games). - // "TARGETING_TYPE_APP" - Target a specific app (for example, Angry - // Birds). - // "TARGETING_TYPE_URL" - Target a specific url (for example, - // quora.com). - // "TARGETING_TYPE_DAY_AND_TIME" - Target ads during a chosen time - // period on a specific day. - // "TARGETING_TYPE_AGE_RANGE" - Target ads to a specific age range - // (for example, 18-24). - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST" - Target ads to the - // specified regions on a regional location list. - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST" - Target ads to the - // specified points of interest on a proximity location list. - // "TARGETING_TYPE_GENDER" - Target ads to a specific gender (for - // example, female or male). - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE" - Target a specific video player - // size for video ads. - // "TARGETING_TYPE_USER_REWARDED_CONTENT" - Target user rewarded - // content for video ads. - // "TARGETING_TYPE_PARENTAL_STATUS" - Target ads to a specific - // parental status (for example, parent or not a parent). - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION" - Target video or audio - // ads in a specific content instream position (for example, pre-roll, - // mid-roll, or post-roll). - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION" - Target ads in a - // specific content outstream position. - // "TARGETING_TYPE_DEVICE_TYPE" - Target ads to a specific device type - // (for example, tablet or connected TV). - // "TARGETING_TYPE_AUDIENCE_GROUP" - Target ads to an audience or - // groups of audiences. Singleton field, at most one can exist on a - // single Lineitem at a time. + // "TARGETING_TYPE_UNSPECIFIED" - Default value when type is not specified or + // is unknown in this version. + // "TARGETING_TYPE_CHANNEL" - Target a channel (a custom group of related + // websites or apps). + // "TARGETING_TYPE_APP_CATEGORY" - Target an app category (for example, + // education or puzzle games). + // "TARGETING_TYPE_APP" - Target a specific app (for example, Angry Birds). + // "TARGETING_TYPE_URL" - Target a specific url (for example, quora.com). + // "TARGETING_TYPE_DAY_AND_TIME" - Target ads during a chosen time period on + // a specific day. + // "TARGETING_TYPE_AGE_RANGE" - Target ads to a specific age range (for + // example, 18-24). + // "TARGETING_TYPE_REGIONAL_LOCATION_LIST" - Target ads to the specified + // regions on a regional location list. + // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST" - Target ads to the specified + // points of interest on a proximity location list. + // "TARGETING_TYPE_GENDER" - Target ads to a specific gender (for example, + // female or male). + // "TARGETING_TYPE_VIDEO_PLAYER_SIZE" - Target a specific video player size + // for video ads. + // "TARGETING_TYPE_USER_REWARDED_CONTENT" - Target user rewarded content for + // video ads. + // "TARGETING_TYPE_PARENTAL_STATUS" - Target ads to a specific parental + // status (for example, parent or not a parent). + // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION" - Target video or audio ads in + // a specific content instream position (for example, pre-roll, mid-roll, or + // post-roll). + // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION" - Target ads in a specific + // content outstream position. + // "TARGETING_TYPE_DEVICE_TYPE" - Target ads to a specific device type (for + // example, tablet or connected TV). + // "TARGETING_TYPE_AUDIENCE_GROUP" - Target ads to an audience or groups of + // audiences. Singleton field, at most one can exist on a single Lineitem at a + // time. // "TARGETING_TYPE_BROWSER" - Target ads to specific web browsers (for // example, Chrome). - // "TARGETING_TYPE_HOUSEHOLD_INCOME" - Target ads to a specific - // household income range (for example, top 10%). - // "TARGETING_TYPE_ON_SCREEN_POSITION" - Target ads in a specific on - // screen position. - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER" - Filter web sites through - // third party verification (for example, IAS or DoubleVerify). - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION" - Filter web sites - // by specific digital content label ratings (for example, DL-MA: - // suitable only for mature audiences). - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION" - Filter website - // content by sensitive categories (for example, adult). - // "TARGETING_TYPE_ENVIRONMENT" - Target ads to a specific environment - // (for example, web or app). + // "TARGETING_TYPE_HOUSEHOLD_INCOME" - Target ads to a specific household + // income range (for example, top 10%). + // "TARGETING_TYPE_ON_SCREEN_POSITION" - Target ads in a specific on screen + // position. + // "TARGETING_TYPE_THIRD_PARTY_VERIFIER" - Filter web sites through third + // party verification (for example, IAS or DoubleVerify). + // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION" - Filter web sites by + // specific digital content label ratings (for example, DL-MA: suitable only + // for mature audiences). + // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION" - Filter website content by + // sensitive categories (for example, adult). + // "TARGETING_TYPE_ENVIRONMENT" - Target ads to a specific environment (for + // example, web or app). // "TARGETING_TYPE_CARRIER_AND_ISP" - Target ads to a specific network - // carrier or internet service provider (ISP) (for example, Comcast or - // Orange). - // "TARGETING_TYPE_OPERATING_SYSTEM" - Target ads to a specific - // operating system (for example, macOS). - // "TARGETING_TYPE_DEVICE_MAKE_MODEL" - Target ads to a specific - // device make or model (for example, Roku or Samsung). - // "TARGETING_TYPE_KEYWORD" - Target ads to a specific keyword (for - // example, dog or retriever). - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST" - Target ads to a specific - // negative keyword list. - // "TARGETING_TYPE_VIEWABILITY" - Target ads to a specific viewability - // (for example, 80% viewable). - // "TARGETING_TYPE_CATEGORY" - Target ads to a specific content - // category (for example, arts & entertainment). - // "TARGETING_TYPE_INVENTORY_SOURCE" - Purchase impressions from - // specific deals and auction packages. + // carrier or internet service provider (ISP) (for example, Comcast or Orange). + // "TARGETING_TYPE_OPERATING_SYSTEM" - Target ads to a specific operating + // system (for example, macOS). + // "TARGETING_TYPE_DEVICE_MAKE_MODEL" - Target ads to a specific device make + // or model (for example, Roku or Samsung). + // "TARGETING_TYPE_KEYWORD" - Target ads to a specific keyword (for example, + // dog or retriever). + // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST" - Target ads to a specific negative + // keyword list. + // "TARGETING_TYPE_VIEWABILITY" - Target ads to a specific viewability (for + // example, 80% viewable). + // "TARGETING_TYPE_CATEGORY" - Target ads to a specific content category (for + // example, arts & entertainment). + // "TARGETING_TYPE_INVENTORY_SOURCE" - Purchase impressions from specific + // deals and auction packages. // "TARGETING_TYPE_LANGUAGE" - Target ads to a specific language (for // example, English or Japanese). // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS" - Target ads to ads.txt - // authorized sellers. If no targeting option of this type is assigned, - // the resource uses the "Authorized Direct Sellers and Resellers" - // option by default. - // "TARGETING_TYPE_GEO_REGION" - Target ads to a specific regional - // location (for example, a city or state). - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP" - Purchase impressions from - // a group of deals and auction packages. - // "TARGETING_TYPE_EXCHANGE" - Purchase impressions from specific - // exchanges. + // authorized sellers. If no targeting option of this type is assigned, the + // resource uses the "Authorized Direct Sellers and Resellers" option by + // default. + // "TARGETING_TYPE_GEO_REGION" - Target ads to a specific regional location + // (for example, a city or state). + // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP" - Purchase impressions from a + // group of deals and auction packages. + // "TARGETING_TYPE_EXCHANGE" - Purchase impressions from specific exchanges. // "TARGETING_TYPE_SUB_EXCHANGE" - Purchase impressions from specific // sub-exchanges. - // "TARGETING_TYPE_POI" - Target ads around a specific point of - // interest, such as a notable building, a street address, or - // latitude/longitude coordinates. + // "TARGETING_TYPE_POI" - Target ads around a specific point of interest, + // such as a notable building, a street address, or latitude/longitude + // coordinates. // "TARGETING_TYPE_BUSINESS_CHAIN" - Target ads around locations of a // business chain within a specific geo region. - // "TARGETING_TYPE_CONTENT_DURATION" - Target ads to a specific video - // content duration. - // "TARGETING_TYPE_CONTENT_STREAM_TYPE" - Target ads to a specific - // video content stream type. - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION" - Target ads to a specific - // native content position. + // "TARGETING_TYPE_CONTENT_DURATION" - Target ads to a specific video content + // duration. + // "TARGETING_TYPE_CONTENT_STREAM_TYPE" - Target ads to a specific video + // content stream type. + // "TARGETING_TYPE_NATIVE_CONTENT_POSITION" - Target ads to a specific native + // content position. // "TARGETING_TYPE_OMID" - Target ads in an Open Measurement enabled // inventory. - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE" - Target ads to a specific - // audio content type. - // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content - // genre. + // "TARGETING_TYPE_AUDIO_CONTENT_TYPE" - Target ads to a specific audio + // content type. + // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content genre. TargetingType string `json:"targetingType,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedTargetingOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { +func (s CreateAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { type NoMethod CreateAssignedTargetingOptionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateSdfDownloadTaskRequest: Request message for @@ -5229,31 +4306,24 @@ func (s *CreateAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { type CreateSdfDownloadTaskRequest struct { // AdvertiserId: The ID of the advertiser to download SDF for. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // IdFilter: Filters on entities by their entity IDs. IdFilter *IdFilter `json:"idFilter,omitempty"` - // InventorySourceFilter: Filters on Inventory Sources by their IDs. InventorySourceFilter *InventorySourceFilter `json:"inventorySourceFilter,omitempty"` - - // ParentEntityFilter: Filters on selected file types. The entities in - // each file are filtered by a chosen set of filter entities. The filter - // entities must be the same type as, or a parent type of, the selected - // file types. + // ParentEntityFilter: Filters on selected file types. The entities in each + // file are filtered by a chosen set of filter entities. The filter entities + // must be the same type as, or a parent type of, the selected file types. ParentEntityFilter *ParentEntityFilter `json:"parentEntityFilter,omitempty"` - // PartnerId: The ID of the partner to download SDF for. PartnerId int64 `json:"partnerId,omitempty,string"` - // Version: Required. The SDF version of the downloaded file. If set to - // `SDF_VERSION_UNSPECIFIED`, this will default to the version specified - // by the advertiser or partner identified by `root_id`. An advertiser - // inherits its SDF version from its partner unless configured - // otherwise. + // `SDF_VERSION_UNSPECIFIED`, this will default to the version specified by the + // advertiser or partner identified by `root_id`. An advertiser inherits its + // SDF version from its partner unless configured otherwise. // // Possible values: - // "SDF_VERSION_UNSPECIFIED" - SDF version value is not specified or - // is unknown in this version. + // "SDF_VERSION_UNSPECIFIED" - SDF version value is not specified or is + // unknown in this version. // "SDF_VERSION_3_1" - SDF version 3.1 // "SDF_VERSION_4" - SDF version 4 // "SDF_VERSION_4_1" - SDF version 4.1 @@ -5266,213 +4336,180 @@ type CreateSdfDownloadTaskRequest struct { // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 // "SDF_VERSION_7" - SDF version 7. Read the [v7 migration - // guide](/display-video/api/structured-data-file/v7-migration-guide) - // before migrating to this version. Currently in beta. Only available - // for use by a subset of users. + // guide](/display-video/api/structured-data-file/v7-migration-guide) before + // migrating to this version. Currently in beta. Only available for use by a + // subset of users. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateSdfDownloadTaskRequest) MarshalJSON() ([]byte, error) { +func (s CreateSdfDownloadTaskRequest) MarshalJSON() ([]byte, error) { type NoMethod CreateSdfDownloadTaskRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Creative: A single Creative. type Creative struct { - // AdditionalDimensions: Additional dimensions. Applicable when - // creative_type is one of: * `CREATIVE_TYPE_STANDARD` * - // `CREATIVE_TYPE_EXPANDABLE` * `CREATIVE_TYPE_NATIVE` * - // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_LIGHTBOX` * - // `CREATIVE_TYPE_PUBLISHER_HOSTED` If this field is specified, - // width_pixels and height_pixels are both required and must be greater - // than or equal to 0. + // AdditionalDimensions: Additional dimensions. Applicable when creative_type + // is one of: * `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_EXPANDABLE` * + // `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * + // `CREATIVE_TYPE_LIGHTBOX` * `CREATIVE_TYPE_PUBLISHER_HOSTED` If this field is + // specified, width_pixels and height_pixels are both required and must be + // greater than or equal to 0. AdditionalDimensions []*Dimensions `json:"additionalDimensions,omitempty"` - - // AdvertiserId: Output only. The unique ID of the advertiser the - // creative belongs to. + // AdvertiserId: Output only. The unique ID of the advertiser the creative + // belongs to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // AppendedTag: Third-party HTML tracking tag to be appended to the - // creative tag. + // AppendedTag: Third-party HTML tracking tag to be appended to the creative + // tag. AppendedTag string `json:"appendedTag,omitempty"` - // Assets: Required. Assets associated to this creative. Assets []*AssetAssociation `json:"assets,omitempty"` - // CmPlacementId: Output only. The unique ID of the Campaign Manager 360 - // placement associated with the creative. This field is only applicable - // for creatives that are synced from Campaign Manager. + // placement associated with the creative. This field is only applicable for + // creatives that are synced from Campaign Manager. CmPlacementId int64 `json:"cmPlacementId,omitempty,string"` - - // CmTrackingAd: The Campaign Manager 360 tracking ad associated with - // the creative. Optional for the following creative_type when created - // by an advertiser that uses both Campaign Manager 360 and third-party - // ad serving: * `CREATIVE_TYPE_NATIVE` * - // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` Output only for other cases. + // CmTrackingAd: The Campaign Manager 360 tracking ad associated with the + // creative. Optional for the following creative_type when created by an + // advertiser that uses both Campaign Manager 360 and third-party ad serving: * + // `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` Output only for + // other cases. CmTrackingAd *CmTrackingAd `json:"cmTrackingAd,omitempty"` - - // CompanionCreativeIds: The IDs of companion creatives for a video - // creative. You can assign existing display creatives (with image or - // HTML5 assets) to serve surrounding the publisher's video player. - // Companions display around the video player while the video is playing - // and remain after the video has completed. Creatives contain - // additional dimensions can not be companion creatives. This field is - // only supported for following creative_type: * `CREATIVE_TYPE_AUDIO` * - // `CREATIVE_TYPE_VIDEO` + // CompanionCreativeIds: The IDs of companion creatives for a video creative. + // You can assign existing display creatives (with image or HTML5 assets) to + // serve surrounding the publisher's video player. Companions display around + // the video player while the video is playing and remain after the video has + // completed. Creatives contain additional dimensions can not be companion + // creatives. This field is only supported for following creative_type: * + // `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_VIDEO` CompanionCreativeIds googleapi.Int64s `json:"companionCreativeIds,omitempty"` - - // CounterEvents: Counter events for a rich media creative. Counters - // track the number of times that a user interacts with any part of a - // rich media creative in a specified way (mouse-overs, mouse-outs, - // clicks, taps, data loading, keyboard entries, etc.). Any event that - // can be captured in the creative can be recorded as a counter. Leave - // it empty or unset for creatives containing image assets only. + // CounterEvents: Counter events for a rich media creative. Counters track the + // number of times that a user interacts with any part of a rich media creative + // in a specified way (mouse-overs, mouse-outs, clicks, taps, data loading, + // keyboard entries, etc.). Any event that can be captured in the creative can + // be recorded as a counter. Leave it empty or unset for creatives containing + // image assets only. CounterEvents []*CounterEvent `json:"counterEvents,omitempty"` - // CreateTime: Output only. The timestamp when the creative was created. // Assigned by the system. CreateTime string `json:"createTime,omitempty"` - - // CreativeAttributes: Output only. A list of attributes of the creative - // that is generated by the system. + // CreativeAttributes: Output only. A list of attributes of the creative that + // is generated by the system. // // Possible values: - // "CREATIVE_ATTRIBUTE_UNSPECIFIED" - The creative attribute is not - // specified or is unknown in this version. + // "CREATIVE_ATTRIBUTE_UNSPECIFIED" - The creative attribute is not specified + // or is unknown in this version. // "CREATIVE_ATTRIBUTE_VAST" - The creative is a VAST creative. // "CREATIVE_ATTRIBUTE_VPAID_LINEAR" - The creative is a linear VPAID // creative. - // "CREATIVE_ATTRIBUTE_VPAID_NON_LINEAR" - The creative is a - // non-linear VPAID creative. + // "CREATIVE_ATTRIBUTE_VPAID_NON_LINEAR" - The creative is a non-linear VPAID + // creative. CreativeAttributes []string `json:"creativeAttributes,omitempty"` - - // CreativeId: Output only. The unique ID of the creative. Assigned by - // the system. + // CreativeId: Output only. The unique ID of the creative. Assigned by the + // system. CreativeId int64 `json:"creativeId,omitempty,string"` - // CreativeType: Required. Immutable. The type of the creative. // // Possible values: - // "CREATIVE_TYPE_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. - // "CREATIVE_TYPE_STANDARD" - Standard display creative. Create and - // update methods are supported for this creative type if the - // hosting_source is one of the following: * `HOSTING_SOURCE_HOSTED` * - // `HOSTING_SOURCE_THIRD_PARTY` + // "CREATIVE_TYPE_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. + // "CREATIVE_TYPE_STANDARD" - Standard display creative. Create and update + // methods are supported for this creative type if the hosting_source is one of + // the following: * `HOSTING_SOURCE_HOSTED` * `HOSTING_SOURCE_THIRD_PARTY` // "CREATIVE_TYPE_EXPANDABLE" - Expandable creative. Create and update // methods are supported for this creative type if the hosting_source is // `HOSTING_SOURCE_THIRD_PARTY` - // "CREATIVE_TYPE_VIDEO" - Video creative. Create and update methods - // are supported for this creative type if the hosting_source is one of - // the following: * `HOSTING_SOURCE_HOSTED` * - // `HOSTING_SOURCE_THIRD_PARTY` - // "CREATIVE_TYPE_NATIVE" - Native creative rendered by publishers - // with assets from advertiser. Create and update methods are supported - // for this creative type if the hosting_source is + // "CREATIVE_TYPE_VIDEO" - Video creative. Create and update methods are + // supported for this creative type if the hosting_source is one of the + // following: * `HOSTING_SOURCE_HOSTED` * `HOSTING_SOURCE_THIRD_PARTY` + // "CREATIVE_TYPE_NATIVE" - Native creative rendered by publishers with + // assets from advertiser. Create and update methods are supported for this + // creative type if the hosting_source is `HOSTING_SOURCE_HOSTED` + // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL" - Templated app install mobile + // creative (banner). Create and update methods are **not** supported for this + // creative type. + // "CREATIVE_TYPE_NATIVE_SITE_SQUARE" - Square native creative. Create and + // update methods are supported for this creative type if the hosting_source is // `HOSTING_SOURCE_HOSTED` - // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL" - Templated app install - // mobile creative (banner). Create and update methods are **not** + // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_INTERSTITIAL" - Interstitial creative + // including both display and video. Create and update methods are **not** // supported for this creative type. - // "CREATIVE_TYPE_NATIVE_SITE_SQUARE" - Square native creative. Create - // and update methods are supported for this creative type if the - // hosting_source is `HOSTING_SOURCE_HOSTED` - // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_INTERSTITIAL" - Interstitial - // creative including both display and video. Create and update methods - // are **not** supported for this creative type. - // "CREATIVE_TYPE_LIGHTBOX" - Responsive and expandable Lightbox - // creative. Create and update methods are **not** supported for this - // creative type. - // "CREATIVE_TYPE_NATIVE_APP_INSTALL" - Native app install creative. - // Create and update methods are **not** supported for this creative + // "CREATIVE_TYPE_LIGHTBOX" - Responsive and expandable Lightbox creative. + // Create and update methods are **not** supported for this creative type. + // "CREATIVE_TYPE_NATIVE_APP_INSTALL" - Native app install creative. Create + // and update methods are **not** supported for this creative type. + // "CREATIVE_TYPE_NATIVE_APP_INSTALL_SQUARE" - Square native app install + // creative. Create and update methods are **not** supported for this creative // type. - // "CREATIVE_TYPE_NATIVE_APP_INSTALL_SQUARE" - Square native app - // install creative. Create and update methods are **not** supported for - // this creative type. - // "CREATIVE_TYPE_AUDIO" - Audio creative. Create and update methods - // are supported for this creative type if the hosting_source is + // "CREATIVE_TYPE_AUDIO" - Audio creative. Create and update methods are + // supported for this creative type if the hosting_source is // `HOSTING_SOURCE_HOSTED` - // "CREATIVE_TYPE_PUBLISHER_HOSTED" - Publisher hosted creative. - // Create and update methods are **not** supported for this creative - // type. - // "CREATIVE_TYPE_NATIVE_VIDEO" - Native video creative. Create and - // update methods are supported for this creative type if the - // hosting_source is `HOSTING_SOURCE_HOSTED` - // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_VIDEO" - Templated app install - // mobile video creative. Create and update methods are **not** - // supported for this creative type. + // "CREATIVE_TYPE_PUBLISHER_HOSTED" - Publisher hosted creative. Create and + // update methods are **not** supported for this creative type. + // "CREATIVE_TYPE_NATIVE_VIDEO" - Native video creative. Create and update + // methods are supported for this creative type if the hosting_source is + // `HOSTING_SOURCE_HOSTED` + // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_VIDEO" - Templated app install mobile + // video creative. Create and update methods are **not** supported for this + // creative type. CreativeType string `json:"creativeType,omitempty"` - - // Dimensions: Required. Primary dimensions of the creative. Applicable - // to all creative types. The value of width_pixels and height_pixels - // defaults to `0` when creative_type is one of: * `CREATIVE_TYPE_VIDEO` - // * `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_NATIVE_VIDEO` + // Dimensions: Required. Primary dimensions of the creative. Applicable to all + // creative types. The value of width_pixels and height_pixels defaults to `0` + // when creative_type is one of: * `CREATIVE_TYPE_VIDEO` * + // `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_NATIVE_VIDEO` Dimensions *Dimensions `json:"dimensions,omitempty"` - - // DisplayName: Required. The display name of the creative. Must be - // UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the creative. Must be UTF-8 + // encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - // Dynamic: Output only. Indicates whether the creative is dynamic. Dynamic bool `json:"dynamic,omitempty"` - - // EntityStatus: Required. Controls whether or not the creative can - // serve. Accepted values are: * `ENTITY_STATUS_ACTIVE` * - // `ENTITY_STATUS_ARCHIVED` * `ENTITY_STATUS_PAUSED` + // EntityStatus: Required. Controls whether or not the creative can serve. + // Accepted values are: * `ENTITY_STATUS_ACTIVE` * `ENTITY_STATUS_ARCHIVED` * + // `ENTITY_STATUS_PAUSED` // // Possible values: - // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not - // specified or is unknown in this version. - // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend - // budget. - // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and - // budget spending are disabled. An entity can be deleted after - // archived. Deleted entities cannot be retrieved. - // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and - // budget spending are disabled. - // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for - // the entity. - // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled - // for deletion. + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not specified + // or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and budget + // spending are disabled. An entity can be deleted after archived. Deleted + // entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and budget + // spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for the + // entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled for + // deletion. EntityStatus string `json:"entityStatus,omitempty"` - - // ExitEvents: Required. Exit events for this creative. An exit (also - // known as a click tag) is any area in your creative that someone can - // click or tap to open an advertiser's landing page. Every creative - // must include at least one exit. You can add an exit to your creative - // in any of the following ways: * Use Google Web Designer's tap area. * - // Define a JavaScript variable called "clickTag". * Use the Enabler - // (Enabler.exit()) to track exits in rich media formats. + // ExitEvents: Required. Exit events for this creative. An exit (also known as + // a click tag) is any area in your creative that someone can click or tap to + // open an advertiser's landing page. Every creative must include at least one + // exit. You can add an exit to your creative in any of the following ways: * + // Use Google Web Designer's tap area. * Define a JavaScript variable called + // "clickTag". * Use the Enabler (Enabler.exit()) to track exits in rich media + // formats. ExitEvents []*ExitEvent `json:"exitEvents,omitempty"` - - // ExpandOnHover: Optional. Indicates the creative will automatically - // expand on hover. Optional and only valid for third-party expandable - // creatives. Third-party expandable creatives are creatives with - // following hosting source: * `HOSTING_SOURCE_THIRD_PARTY` combined - // with following creative_type: * `CREATIVE_TYPE_EXPANDABLE` + // ExpandOnHover: Optional. Indicates the creative will automatically expand on + // hover. Optional and only valid for third-party expandable creatives. + // Third-party expandable creatives are creatives with following hosting + // source: * `HOSTING_SOURCE_THIRD_PARTY` combined with following + // creative_type: * `CREATIVE_TYPE_EXPANDABLE` ExpandOnHover bool `json:"expandOnHover,omitempty"` - - // ExpandingDirection: Optional. Specifies the expanding direction of - // the creative. Required and only valid for third-party expandable - // creatives. Third-party expandable creatives are creatives with - // following hosting source: * `HOSTING_SOURCE_THIRD_PARTY` combined - // with following creative_type: * `CREATIVE_TYPE_EXPANDABLE` + // ExpandingDirection: Optional. Specifies the expanding direction of the + // creative. Required and only valid for third-party expandable creatives. + // Third-party expandable creatives are creatives with following hosting + // source: * `HOSTING_SOURCE_THIRD_PARTY` combined with following + // creative_type: * `CREATIVE_TYPE_EXPANDABLE` // // Possible values: // "EXPANDING_DIRECTION_UNSPECIFIED" - The expanding direction is not @@ -5482,465 +4519,372 @@ type Creative struct { // "EXPANDING_DIRECTION_DOWN" - Expands down. // "EXPANDING_DIRECTION_LEFT" - Expands left. // "EXPANDING_DIRECTION_RIGHT" - Expands right. - // "EXPANDING_DIRECTION_UP_AND_LEFT" - Expands up and to the left - // side. - // "EXPANDING_DIRECTION_UP_AND_RIGHT" - Expands up and to the right - // side. - // "EXPANDING_DIRECTION_DOWN_AND_LEFT" - Expands down and to the left - // side. - // "EXPANDING_DIRECTION_DOWN_AND_RIGHT" - Expands down and to the - // right side. + // "EXPANDING_DIRECTION_UP_AND_LEFT" - Expands up and to the left side. + // "EXPANDING_DIRECTION_UP_AND_RIGHT" - Expands up and to the right side. + // "EXPANDING_DIRECTION_DOWN_AND_LEFT" - Expands down and to the left side. + // "EXPANDING_DIRECTION_DOWN_AND_RIGHT" - Expands down and to the right side. // "EXPANDING_DIRECTION_UP_OR_DOWN" - Expands either up or down. - // "EXPANDING_DIRECTION_LEFT_OR_RIGHT" - Expands to either the left or - // the right side. - // "EXPANDING_DIRECTION_ANY_DIAGONAL" - Can expand in any diagonal - // direction. + // "EXPANDING_DIRECTION_LEFT_OR_RIGHT" - Expands to either the left or the + // right side. + // "EXPANDING_DIRECTION_ANY_DIAGONAL" - Can expand in any diagonal direction. ExpandingDirection string `json:"expandingDirection,omitempty"` - // HostingSource: Required. Indicates where the creative is hosted. // // Possible values: - // "HOSTING_SOURCE_UNSPECIFIED" - Hosting source is not specified or - // is unknown in this version. - // "HOSTING_SOURCE_CM" - A creative synced from Campaign Manager 360. - // Create and update methods are **not** supported for this hosting - // type. - // "HOSTING_SOURCE_THIRD_PARTY" - A creative hosted by a third-party - // ad server (3PAS). Create and update methods are supported for this - // hosting type if the creative_type is one of the following: * - // `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_EXPANDABLE` * - // `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_VIDEO` + // "HOSTING_SOURCE_UNSPECIFIED" - Hosting source is not specified or is + // unknown in this version. + // "HOSTING_SOURCE_CM" - A creative synced from Campaign Manager 360. Create + // and update methods are **not** supported for this hosting type. + // "HOSTING_SOURCE_THIRD_PARTY" - A creative hosted by a third-party ad + // server (3PAS). Create and update methods are supported for this hosting type + // if the creative_type is one of the following: * `CREATIVE_TYPE_AUDIO` * + // `CREATIVE_TYPE_EXPANDABLE` * `CREATIVE_TYPE_STANDARD` * + // `CREATIVE_TYPE_VIDEO` // "HOSTING_SOURCE_HOSTED" - A creative created in DV360 and hosted by - // Campaign Manager 360. Create and update methods are supported for - // this hosting type if the creative_type is one of the following: * + // Campaign Manager 360. Create and update methods are supported for this + // hosting type if the creative_type is one of the following: * // `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_NATIVE` * // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` * // `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_VIDEO` - // "HOSTING_SOURCE_RICH_MEDIA" - A rich media creative created in - // Studio and hosted by Campaign Manager 360. Create and update methods - // are **not** supported for this hosting type. + // "HOSTING_SOURCE_RICH_MEDIA" - A rich media creative created in Studio and + // hosted by Campaign Manager 360. Create and update methods are **not** + // supported for this hosting type. HostingSource string `json:"hostingSource,omitempty"` - // Html5Video: Output only. Indicates the third-party VAST tag creative - // requires HTML5 Video support. Output only and only valid for - // third-party VAST tag creatives. Third-party VAST tag creatives are - // creatives with following hosting_source: * - // `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * - // `CREATIVE_TYPE_VIDEO` + // requires HTML5 Video support. Output only and only valid for third-party + // VAST tag creatives. Third-party VAST tag creatives are creatives with + // following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with + // following creative_type: * `CREATIVE_TYPE_VIDEO` Html5Video bool `json:"html5Video,omitempty"` - - // IasCampaignMonitoring: Indicates whether Integral Ad Science (IAS) - // campaign monitoring is enabled. To enable this for the creative, make - // sure the Advertiser.creative_config.ias_client_id has been set to - // your IAS client ID. + // IasCampaignMonitoring: Indicates whether Integral Ad Science (IAS) campaign + // monitoring is enabled. To enable this for the creative, make sure the + // Advertiser.creative_config.ias_client_id has been set to your IAS client ID. IasCampaignMonitoring bool `json:"iasCampaignMonitoring,omitempty"` - - // IntegrationCode: ID information used to link this creative to an - // external system. Must be UTF-8 encoded with a length of no more than - // 10,000 characters. + // IntegrationCode: ID information used to link this creative to an external + // system. Must be UTF-8 encoded with a length of no more than 10,000 + // characters. IntegrationCode string `json:"integrationCode,omitempty"` - // JsTrackerUrl: JavaScript measurement URL from supported third-party - // verification providers (ComScore, DoubleVerify, IAS, Moat). HTML - // script tags are not supported. This field is only writeable in - // following creative_type: * `CREATIVE_TYPE_NATIVE` * - // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` + // verification providers (ComScore, DoubleVerify, IAS, Moat). HTML script tags + // are not supported. This field is only writeable in following creative_type: + // * `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * + // `CREATIVE_TYPE_NATIVE_VIDEO` JsTrackerUrl string `json:"jsTrackerUrl,omitempty"` - // LineItemIds: Output only. The IDs of the line items this creative is // associated with. To associate a creative to a line item, use // LineItem.creative_ids instead. LineItemIds googleapi.Int64s `json:"lineItemIds,omitempty"` - - // MediaDuration: Output only. Media duration of the creative. - // Applicable when creative_type is one of: * `CREATIVE_TYPE_VIDEO` * - // `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_NATIVE_VIDEO` * - // `CREATIVE_TYPE_PUBLISHER_HOSTED` + // MediaDuration: Output only. Media duration of the creative. Applicable when + // creative_type is one of: * `CREATIVE_TYPE_VIDEO` * `CREATIVE_TYPE_AUDIO` * + // `CREATIVE_TYPE_NATIVE_VIDEO` * `CREATIVE_TYPE_PUBLISHER_HOSTED` MediaDuration string `json:"mediaDuration,omitempty"` - - // Mp3Audio: Output only. Indicates the third-party audio creative - // supports MP3. Output only and only valid for third-party audio - // creatives. Third-party audio creatives are creatives with following - // hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with - // following creative_type: * `CREATIVE_TYPE_AUDIO` + // Mp3Audio: Output only. Indicates the third-party audio creative supports + // MP3. Output only and only valid for third-party audio creatives. Third-party + // audio creatives are creatives with following hosting_source: * + // `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * + // `CREATIVE_TYPE_AUDIO` Mp3Audio bool `json:"mp3Audio,omitempty"` - // Name: Output only. The resource name of the creative. Name string `json:"name,omitempty"` - - // Notes: User notes for this creative. Must be UTF-8 encoded with a - // length of no more than 20,000 characters. + // Notes: User notes for this creative. Must be UTF-8 encoded with a length of + // no more than 20,000 characters. Notes string `json:"notes,omitempty"` - - // ObaIcon: Specifies the OBA icon for a video creative. This field is - // only supported in following creative_type: * `CREATIVE_TYPE_VIDEO` + // ObaIcon: Specifies the OBA icon for a video creative. This field is only + // supported in following creative_type: * `CREATIVE_TYPE_VIDEO` ObaIcon *ObaIcon `json:"obaIcon,omitempty"` - - // OggAudio: Output only. Indicates the third-party audio creative - // supports OGG. Output only and only valid for third-party audio - // creatives. Third-party audio creatives are creatives with following - // hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with - // following creative_type: * `CREATIVE_TYPE_AUDIO` + // OggAudio: Output only. Indicates the third-party audio creative supports + // OGG. Output only and only valid for third-party audio creatives. Third-party + // audio creatives are creatives with following hosting_source: * + // `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * + // `CREATIVE_TYPE_AUDIO` OggAudio bool `json:"oggAudio,omitempty"` - - // ProgressOffset: Amount of time to play the video before counting a - // view. This field is required when skippable is true. This field is - // only supported for the following creative_type: * - // `CREATIVE_TYPE_VIDEO` + // ProgressOffset: Amount of time to play the video before counting a view. + // This field is required when skippable is true. This field is only supported + // for the following creative_type: * `CREATIVE_TYPE_VIDEO` ProgressOffset *AudioVideoOffset `json:"progressOffset,omitempty"` - - // RequireHtml5: Optional. Indicates that the creative relies on HTML5 - // to render properly. Optional and only valid for third-party tag - // creatives. Third-party tag creatives are creatives with following - // hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with - // following creative_type: * `CREATIVE_TYPE_STANDARD` * - // `CREATIVE_TYPE_EXPANDABLE` + // RequireHtml5: Optional. Indicates that the creative relies on HTML5 to + // render properly. Optional and only valid for third-party tag creatives. + // Third-party tag creatives are creatives with following hosting_source: * + // `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * + // `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_EXPANDABLE` RequireHtml5 bool `json:"requireHtml5,omitempty"` - - // RequireMraid: Optional. Indicates that the creative requires MRAID - // (Mobile Rich Media Ad Interface Definitions system). Set this if the - // creative relies on mobile gestures for interactivity, such as swiping - // or tapping. Optional and only valid for third-party tag creatives. - // Third-party tag creatives are creatives with following - // hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with - // following creative_type: * `CREATIVE_TYPE_STANDARD` * + // RequireMraid: Optional. Indicates that the creative requires MRAID (Mobile + // Rich Media Ad Interface Definitions system). Set this if the creative relies + // on mobile gestures for interactivity, such as swiping or tapping. Optional + // and only valid for third-party tag creatives. Third-party tag creatives are + // creatives with following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` + // combined with following creative_type: * `CREATIVE_TYPE_STANDARD` * // `CREATIVE_TYPE_EXPANDABLE` RequireMraid bool `json:"requireMraid,omitempty"` - - // RequirePingForAttribution: Optional. Indicates that the creative will - // wait for a return ping for attribution. Only valid when using a - // Campaign Manager 360 tracking ad with a third-party ad server - // parameter and the ${DC_DBM_TOKEN} macro. Optional and only valid for - // third-party tag creatives or third-party VAST tag creatives. - // Third-party tag creatives are creatives with following - // hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with + // RequirePingForAttribution: Optional. Indicates that the creative will wait + // for a return ping for attribution. Only valid when using a Campaign Manager + // 360 tracking ad with a third-party ad server parameter and the + // ${DC_DBM_TOKEN} macro. Optional and only valid for third-party tag creatives + // or third-party VAST tag creatives. Third-party tag creatives are creatives + // with following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with // following creative_type: * `CREATIVE_TYPE_STANDARD` * - // `CREATIVE_TYPE_EXPANDABLE` Third-party VAST tag creatives are - // creatives with following hosting_source: * - // `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * - // `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_VIDEO` + // `CREATIVE_TYPE_EXPANDABLE` Third-party VAST tag creatives are creatives with + // following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with + // following creative_type: * `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_VIDEO` RequirePingForAttribution bool `json:"requirePingForAttribution,omitempty"` - // ReviewStatus: Output only. The current status of the creative review // process. ReviewStatus *ReviewStatusInfo `json:"reviewStatus,omitempty"` - - // SkipOffset: Amount of time to play the video before the skip button - // appears. This field is required when skippable is true. This field is - // only supported for the following creative_type: * - // `CREATIVE_TYPE_VIDEO` + // SkipOffset: Amount of time to play the video before the skip button appears. + // This field is required when skippable is true. This field is only supported + // for the following creative_type: * `CREATIVE_TYPE_VIDEO` SkipOffset *AudioVideoOffset `json:"skipOffset,omitempty"` - - // Skippable: Whether the user can choose to skip a video creative. This - // field is only supported for the following creative_type: * - // `CREATIVE_TYPE_VIDEO` - Skippable bool `json:"skippable,omitempty"` - - // ThirdPartyTag: Optional. The original third-party tag used for the - // creative. Required and only valid for third-party tag creatives. - // Third-party tag creatives are creatives with following - // hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with - // following creative_type: * `CREATIVE_TYPE_STANDARD` * - // `CREATIVE_TYPE_EXPANDABLE` + // Skippable: Whether the user can choose to skip a video creative. This field + // is only supported for the following creative_type: * `CREATIVE_TYPE_VIDEO` + Skippable bool `json:"skippable,omitempty"` + // ThirdPartyTag: Optional. The original third-party tag used for the creative. + // Required and only valid for third-party tag creatives. Third-party tag + // creatives are creatives with following hosting_source: * + // `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * + // `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_EXPANDABLE` ThirdPartyTag string `json:"thirdPartyTag,omitempty"` - - // ThirdPartyUrls: Tracking URLs from third parties to track - // interactions with a video creative. This field is only supported for - // the following creative_type: * `CREATIVE_TYPE_AUDIO` * - // `CREATIVE_TYPE_VIDEO` * `CREATIVE_TYPE_NATIVE_VIDEO` + // ThirdPartyUrls: Tracking URLs from third parties to track interactions with + // a video creative. This field is only supported for the following + // creative_type: * `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_VIDEO` * + // `CREATIVE_TYPE_NATIVE_VIDEO` ThirdPartyUrls []*ThirdPartyUrl `json:"thirdPartyUrls,omitempty"` - - // TimerEvents: Timer custom events for a rich media creative. Timers - // track the time during which a user views and interacts with a - // specified part of a rich media creative. A creative can have multiple - // timer events, each timed independently. Leave it empty or unset for - // creatives containing image assets only. + // TimerEvents: Timer custom events for a rich media creative. Timers track the + // time during which a user views and interacts with a specified part of a rich + // media creative. A creative can have multiple timer events, each timed + // independently. Leave it empty or unset for creatives containing image assets + // only. TimerEvents []*TimerEvent `json:"timerEvents,omitempty"` - // TrackerUrls: Tracking URLs for analytics providers or third-party ad - // technology vendors. The URLs must start with https (except on - // inventory that doesn't require SSL compliance). If using macros in - // your URL, use only macros supported by Display & Video 360. Standard - // URLs only, no IMG or SCRIPT tags. This field is only writeable in - // following creative_type: * `CREATIVE_TYPE_NATIVE` * - // `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * `CREATIVE_TYPE_NATIVE_VIDEO` + // technology vendors. The URLs must start with https (except on inventory that + // doesn't require SSL compliance). If using macros in your URL, use only + // macros supported by Display & Video 360. Standard URLs only, no IMG or + // SCRIPT tags. This field is only writeable in following creative_type: * + // `CREATIVE_TYPE_NATIVE` * `CREATIVE_TYPE_NATIVE_SITE_SQUARE` * + // `CREATIVE_TYPE_NATIVE_VIDEO` TrackerUrls []string `json:"trackerUrls,omitempty"` - // Transcodes: Output only. Audio/Video transcodes. Display & Video 360 - // transcodes the main asset into a number of alternative versions that - // use different file formats or have different properties (resolution, - // audio bit rate, and video bit rate), each designed for specific video - // players or bandwidths. These transcodes give a publisher's system - // more options to choose from for each impression on your video and - // ensures that the appropriate file serves based on the viewer’s - // connection and screen size. This field is only supported in following - // creative_type: * `CREATIVE_TYPE_VIDEO` * `CREATIVE_TYPE_NATIVE_VIDEO` - // * `CREATIVE_TYPE_AUDIO` + // transcodes the main asset into a number of alternative versions that use + // different file formats or have different properties (resolution, audio bit + // rate, and video bit rate), each designed for specific video players or + // bandwidths. These transcodes give a publisher's system more options to + // choose from for each impression on your video and ensures that the + // appropriate file serves based on the viewer’s connection and screen size. + // This field is only supported in following creative_type: * + // `CREATIVE_TYPE_VIDEO` * `CREATIVE_TYPE_NATIVE_VIDEO` * `CREATIVE_TYPE_AUDIO` Transcodes []*Transcode `json:"transcodes,omitempty"` - - // UniversalAdId: Optional. An optional creative identifier provided by - // a registry that is unique across all platforms. Universal Ad ID is - // part of the VAST 4.0 standard. It can be modified after the creative - // is created. This field is only supported for the following - // creative_type: * `CREATIVE_TYPE_VIDEO` + // UniversalAdId: Optional. An optional creative identifier provided by a + // registry that is unique across all platforms. Universal Ad ID is part of the + // VAST 4.0 standard. It can be modified after the creative is created. This + // field is only supported for the following creative_type: * + // `CREATIVE_TYPE_VIDEO` UniversalAdId *UniversalAdId `json:"universalAdId,omitempty"` - - // UpdateTime: Output only. The timestamp when the creative was last - // updated, either by the user or system (e.g. creative review). - // Assigned by the system. + // UpdateTime: Output only. The timestamp when the creative was last updated, + // either by the user or system (e.g. creative review). Assigned by the system. UpdateTime string `json:"updateTime,omitempty"` - - // VastTagUrl: Optional. The URL of the VAST tag for a third-party VAST - // tag creative. Required and only valid for third-party VAST tag - // creatives. Third-party VAST tag creatives are creatives with - // following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined - // with following creative_type: * `CREATIVE_TYPE_AUDIO` * - // `CREATIVE_TYPE_VIDEO` + // VastTagUrl: Optional. The URL of the VAST tag for a third-party VAST tag + // creative. Required and only valid for third-party VAST tag creatives. + // Third-party VAST tag creatives are creatives with following hosting_source: + // * `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * + // `CREATIVE_TYPE_AUDIO` * `CREATIVE_TYPE_VIDEO` VastTagUrl string `json:"vastTagUrl,omitempty"` - - // Vpaid: Output only. Indicates the third-party VAST tag creative - // requires VPAID (Digital Video Player-Ad Interface). Output only and - // only valid for third-party VAST tag creatives. Third-party VAST tag - // creatives are creatives with following hosting_source: * - // `HOSTING_SOURCE_THIRD_PARTY` combined with following creative_type: * - // `CREATIVE_TYPE_VIDEO` + // Vpaid: Output only. Indicates the third-party VAST tag creative requires + // VPAID (Digital Video Player-Ad Interface). Output only and only valid for + // third-party VAST tag creatives. Third-party VAST tag creatives are creatives + // with following hosting_source: * `HOSTING_SOURCE_THIRD_PARTY` combined with + // following creative_type: * `CREATIVE_TYPE_VIDEO` Vpaid bool `json:"vpaid,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AdditionalDimensions") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalDimensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalDimensions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalDimensions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Creative) MarshalJSON() ([]byte, error) { +func (s Creative) MarshalJSON() ([]byte, error) { type NoMethod Creative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreativeConfig: Creative requirements configuration for the inventory // source. type CreativeConfig struct { - // CreativeType: The type of creative that can be assigned to the - // inventory source. Only the following types are supported: * - // `CREATIVE_TYPE_STANDARD` * `CREATIVE_TYPE_VIDEO` + // CreativeType: The type of creative that can be assigned to the inventory + // source. Only the following types are supported: * `CREATIVE_TYPE_STANDARD` * + // `CREATIVE_TYPE_VIDEO` // // Possible values: - // "CREATIVE_TYPE_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. - // "CREATIVE_TYPE_STANDARD" - Standard display creative. Create and - // update methods are supported for this creative type if the - // hosting_source is one of the following: * `HOSTING_SOURCE_HOSTED` * - // `HOSTING_SOURCE_THIRD_PARTY` + // "CREATIVE_TYPE_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. + // "CREATIVE_TYPE_STANDARD" - Standard display creative. Create and update + // methods are supported for this creative type if the hosting_source is one of + // the following: * `HOSTING_SOURCE_HOSTED` * `HOSTING_SOURCE_THIRD_PARTY` // "CREATIVE_TYPE_EXPANDABLE" - Expandable creative. Create and update // methods are supported for this creative type if the hosting_source is // `HOSTING_SOURCE_THIRD_PARTY` - // "CREATIVE_TYPE_VIDEO" - Video creative. Create and update methods - // are supported for this creative type if the hosting_source is one of - // the following: * `HOSTING_SOURCE_HOSTED` * - // `HOSTING_SOURCE_THIRD_PARTY` - // "CREATIVE_TYPE_NATIVE" - Native creative rendered by publishers - // with assets from advertiser. Create and update methods are supported - // for this creative type if the hosting_source is + // "CREATIVE_TYPE_VIDEO" - Video creative. Create and update methods are + // supported for this creative type if the hosting_source is one of the + // following: * `HOSTING_SOURCE_HOSTED` * `HOSTING_SOURCE_THIRD_PARTY` + // "CREATIVE_TYPE_NATIVE" - Native creative rendered by publishers with + // assets from advertiser. Create and update methods are supported for this + // creative type if the hosting_source is `HOSTING_SOURCE_HOSTED` + // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL" - Templated app install mobile + // creative (banner). Create and update methods are **not** supported for this + // creative type. + // "CREATIVE_TYPE_NATIVE_SITE_SQUARE" - Square native creative. Create and + // update methods are supported for this creative type if the hosting_source is // `HOSTING_SOURCE_HOSTED` - // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL" - Templated app install - // mobile creative (banner). Create and update methods are **not** + // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_INTERSTITIAL" - Interstitial creative + // including both display and video. Create and update methods are **not** // supported for this creative type. - // "CREATIVE_TYPE_NATIVE_SITE_SQUARE" - Square native creative. Create - // and update methods are supported for this creative type if the - // hosting_source is `HOSTING_SOURCE_HOSTED` - // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_INTERSTITIAL" - Interstitial - // creative including both display and video. Create and update methods - // are **not** supported for this creative type. - // "CREATIVE_TYPE_LIGHTBOX" - Responsive and expandable Lightbox - // creative. Create and update methods are **not** supported for this - // creative type. - // "CREATIVE_TYPE_NATIVE_APP_INSTALL" - Native app install creative. - // Create and update methods are **not** supported for this creative + // "CREATIVE_TYPE_LIGHTBOX" - Responsive and expandable Lightbox creative. + // Create and update methods are **not** supported for this creative type. + // "CREATIVE_TYPE_NATIVE_APP_INSTALL" - Native app install creative. Create + // and update methods are **not** supported for this creative type. + // "CREATIVE_TYPE_NATIVE_APP_INSTALL_SQUARE" - Square native app install + // creative. Create and update methods are **not** supported for this creative // type. - // "CREATIVE_TYPE_NATIVE_APP_INSTALL_SQUARE" - Square native app - // install creative. Create and update methods are **not** supported for - // this creative type. - // "CREATIVE_TYPE_AUDIO" - Audio creative. Create and update methods - // are supported for this creative type if the hosting_source is + // "CREATIVE_TYPE_AUDIO" - Audio creative. Create and update methods are + // supported for this creative type if the hosting_source is // `HOSTING_SOURCE_HOSTED` - // "CREATIVE_TYPE_PUBLISHER_HOSTED" - Publisher hosted creative. - // Create and update methods are **not** supported for this creative - // type. - // "CREATIVE_TYPE_NATIVE_VIDEO" - Native video creative. Create and - // update methods are supported for this creative type if the - // hosting_source is `HOSTING_SOURCE_HOSTED` - // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_VIDEO" - Templated app install - // mobile video creative. Create and update methods are **not** - // supported for this creative type. + // "CREATIVE_TYPE_PUBLISHER_HOSTED" - Publisher hosted creative. Create and + // update methods are **not** supported for this creative type. + // "CREATIVE_TYPE_NATIVE_VIDEO" - Native video creative. Create and update + // methods are supported for this creative type if the hosting_source is + // `HOSTING_SOURCE_HOSTED` + // "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_VIDEO" - Templated app install mobile + // video creative. Create and update methods are **not** supported for this + // creative type. CreativeType string `json:"creativeType,omitempty"` - - // DisplayCreativeConfig: The configuration for display creatives. - // Applicable when creative_type is `CREATIVE_TYPE_STANDARD`. + // DisplayCreativeConfig: The configuration for display creatives. Applicable + // when creative_type is `CREATIVE_TYPE_STANDARD`. DisplayCreativeConfig *InventorySourceDisplayCreativeConfig `json:"displayCreativeConfig,omitempty"` - - // VideoCreativeConfig: The configuration for video creatives. - // Applicable when creative_type is `CREATIVE_TYPE_VIDEO`. + // VideoCreativeConfig: The configuration for video creatives. Applicable when + // creative_type is `CREATIVE_TYPE_VIDEO`. VideoCreativeConfig *InventorySourceVideoCreativeConfig `json:"videoCreativeConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreativeType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreativeType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreativeConfig) MarshalJSON() ([]byte, error) { +func (s CreativeConfig) MarshalJSON() ([]byte, error) { type NoMethod CreativeConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomBiddingAlgorithm: A single custom bidding algorithm. type CustomBiddingAlgorithm struct { - // AdvertiserId: Immutable. The unique ID of the advertiser that owns - // the custom bidding algorithm. + // AdvertiserId: Immutable. The unique ID of the advertiser that owns the + // custom bidding algorithm. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // CustomBiddingAlgorithmId: Output only. The unique ID of the custom - // bidding algorithm. Assigned by the system. + // CustomBiddingAlgorithmId: Output only. The unique ID of the custom bidding + // algorithm. Assigned by the system. CustomBiddingAlgorithmId int64 `json:"customBiddingAlgorithmId,omitempty,string"` - - // CustomBiddingAlgorithmState: Output only. The status of custom - // bidding algorithm. + // CustomBiddingAlgorithmState: Output only. The status of custom bidding + // algorithm. // // Possible values: // "STATE_UNSPECIFIED" - State is not specified or is unknown in this // version. - // "ENABLED" - Algorithm is enabled, either recently used, currently - // used or scheduled to be used. The algorithm is actively scoring - // impressions. - // "DORMANT" - Algorithm has not been used recently. Although the - // algorithm still acts as `ENABLED`, it will eventually be suspended if - // not used. - // "SUSPENDED" - Algorithm is susepended from scoring impressions and - // doesn't have a serving model trained. If the algorithm is assigned to - // a line item or otherwise updated, it will switch back to the - // `ENABLED` state and require time to prepare the serving model again. + // "ENABLED" - Algorithm is enabled, either recently used, currently used or + // scheduled to be used. The algorithm is actively scoring impressions. + // "DORMANT" - Algorithm has not been used recently. Although the algorithm + // still acts as `ENABLED`, it will eventually be suspended if not used. + // "SUSPENDED" - Algorithm is susepended from scoring impressions and doesn't + // have a serving model trained. If the algorithm is assigned to a line item or + // otherwise updated, it will switch back to the `ENABLED` state and require + // time to prepare the serving model again. CustomBiddingAlgorithmState string `json:"customBiddingAlgorithmState,omitempty"` - - // CustomBiddingAlgorithmType: Required. Immutable. The type of custom - // bidding algorithm. + // CustomBiddingAlgorithmType: Required. Immutable. The type of custom bidding + // algorithm. // // Possible values: // "CUSTOM_BIDDING_ALGORITHM_TYPE_UNSPECIFIED" - Algorithm type is not // specified or is unknown in this version. - // "SCRIPT_BASED" - Algorithm generated through customer-uploaded - // custom bidding script files. - // "ADS_DATA_HUB_BASED" - Algorithm created through Ads Data Hub - // product. - // "GOAL_BUILDER_BASED" - Algorithm created through goal builder in - // DV3 UI. + // "SCRIPT_BASED" - Algorithm generated through customer-uploaded custom + // bidding script files. + // "ADS_DATA_HUB_BASED" - Algorithm created through Ads Data Hub product. + // "GOAL_BUILDER_BASED" - Algorithm created through goal builder in DV3 UI. CustomBiddingAlgorithmType string `json:"customBiddingAlgorithmType,omitempty"` - - // DisplayName: Required. The display name of the custom bidding - // algorithm. Must be UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the custom bidding algorithm. + // Must be UTF-8 encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // EntityStatus: Controls whether or not the custom bidding algorithm - // can be used as a bidding strategy. Accepted values are: * - // `ENTITY_STATUS_ACTIVE` * `ENTITY_STATUS_ARCHIVED` + // EntityStatus: Controls whether or not the custom bidding algorithm can be + // used as a bidding strategy. Accepted values are: * `ENTITY_STATUS_ACTIVE` * + // `ENTITY_STATUS_ARCHIVED` // // Possible values: - // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not - // specified or is unknown in this version. - // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend - // budget. - // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and - // budget spending are disabled. An entity can be deleted after - // archived. Deleted entities cannot be retrieved. - // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and - // budget spending are disabled. - // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for - // the entity. - // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled - // for deletion. + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not specified + // or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and budget + // spending are disabled. An entity can be deleted after archived. Deleted + // entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and budget + // spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for the + // entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled for + // deletion. EntityStatus string `json:"entityStatus,omitempty"` - - // ModelReadiness: Output only. The state of custom bidding model - // readiness for each advertiser who has access. This field may only - // include the state of the queried advertiser if the algorithm `owner` - // (/display-video/api/reference/rest/v1/customBiddingAlgorithms#CustomBi - // ddingAlgorithm.FIELDS.oneof_owner) is a partner and is being - // retrieved using an advertiser `accessor` - // (/display-video/api/reference/rest/v1/customBiddingAlgorithms/list#bod - // y.QUERY_PARAMETERS.oneof_accessor). + // ModelReadiness: Output only. The state of custom bidding model readiness for + // each advertiser who has access. This field may only include the state of the + // queried advertiser if the algorithm `owner` + // (/display-video/api/reference/rest/v1/customBiddingAlgorithms#CustomBiddingAl + // gorithm.FIELDS.oneof_owner) is a partner and is being retrieved using an + // advertiser `accessor` + // (/display-video/api/reference/rest/v1/customBiddingAlgorithms/list#body.QUERY + // _PARAMETERS.oneof_accessor). ModelReadiness []*CustomBiddingModelReadinessState `json:"modelReadiness,omitempty"` - // Name: Output only. The resource name of the custom bidding algorithm. Name string `json:"name,omitempty"` - - // PartnerId: Immutable. The unique ID of the partner that owns the - // custom bidding algorithm. + // PartnerId: Immutable. The unique ID of the partner that owns the custom + // bidding algorithm. PartnerId int64 `json:"partnerId,omitempty,string"` - - // SharedAdvertiserIds: The IDs of the advertisers who have access to - // this algorithm. If advertiser_id is set, this field will only consist - // of that value. This field will not be set if the algorithm `owner` - // (/display-video/api/reference/rest/v1/customBiddingAlgorithms#CustomBi - // ddingAlgorithm.FIELDS.oneof_owner) is a partner and is being - // retrieved using an advertiser `accessor` - // (/display-video/api/reference/rest/v1/customBiddingAlgorithms/list#bod - // y.QUERY_PARAMETERS.oneof_accessor). + // SharedAdvertiserIds: The IDs of the advertisers who have access to this + // algorithm. If advertiser_id is set, this field will only consist of that + // value. This field will not be set if the algorithm `owner` + // (/display-video/api/reference/rest/v1/customBiddingAlgorithms#CustomBiddingAl + // gorithm.FIELDS.oneof_owner) is a partner and is being retrieved using an + // advertiser `accessor` + // (/display-video/api/reference/rest/v1/customBiddingAlgorithms/list#body.QUERY + // _PARAMETERS.oneof_accessor). SharedAdvertiserIds googleapi.Int64s `json:"sharedAdvertiserIds,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomBiddingAlgorithm) MarshalJSON() ([]byte, error) { +func (s CustomBiddingAlgorithm) MarshalJSON() ([]byte, error) { type NoMethod CustomBiddingAlgorithm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomBiddingModelReadinessState: The custom bidding algorithm model @@ -5948,293 +4892,232 @@ func (s *CustomBiddingAlgorithm) MarshalJSON() ([]byte, error) { type CustomBiddingModelReadinessState struct { // AdvertiserId: The unique ID of the relevant advertiser. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // ReadinessState: The readiness state of custom bidding model. // // Possible values: - // "READINESS_STATE_UNSPECIFIED" - State is not specified or is - // unknown in this version. - // "READINESS_STATE_ACTIVE" - The model is trained and ready for + // "READINESS_STATE_UNSPECIFIED" - State is not specified or is unknown in + // this version. + // "READINESS_STATE_ACTIVE" - The model is trained and ready for serving. + // "READINESS_STATE_INSUFFICIENT_DATA" - There is not enough data to train + // the serving model. + // "READINESS_STATE_TRAINING" - The model is training and not ready for // serving. - // "READINESS_STATE_INSUFFICIENT_DATA" - There is not enough data to - // train the serving model. - // "READINESS_STATE_TRAINING" - The model is training and not ready - // for serving. - // "READINESS_STATE_NO_VALID_SCRIPT" - A valid custom bidding script - // has not been provided with which to train the model. This state will - // only be applied to algorithms whose `custom_bidding_algorithm_type` - // is `SCRIPT_BASED`. + // "READINESS_STATE_NO_VALID_SCRIPT" - A valid custom bidding script has not + // been provided with which to train the model. This state will only be applied + // to algorithms whose `custom_bidding_algorithm_type` is `SCRIPT_BASED`. ReadinessState string `json:"readinessState,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomBiddingModelReadinessState) MarshalJSON() ([]byte, error) { +func (s CustomBiddingModelReadinessState) MarshalJSON() ([]byte, error) { type NoMethod CustomBiddingModelReadinessState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomBiddingScript: A single custom bidding script. type CustomBiddingScript struct { - // Active: Output only. Whether the script is currently being used for - // scoring by the parent algorithm. + // Active: Output only. Whether the script is currently being used for scoring + // by the parent algorithm. Active bool `json:"active,omitempty"` - // CreateTime: Output only. The time when the script was created. CreateTime string `json:"createTime,omitempty"` - - // CustomBiddingAlgorithmId: Output only. The unique ID of the custom - // bidding algorithm the script belongs to. + // CustomBiddingAlgorithmId: Output only. The unique ID of the custom bidding + // algorithm the script belongs to. CustomBiddingAlgorithmId int64 `json:"customBiddingAlgorithmId,omitempty,string"` - - // CustomBiddingScriptId: Output only. The unique ID of the custom - // bidding script. + // CustomBiddingScriptId: Output only. The unique ID of the custom bidding + // script. CustomBiddingScriptId int64 `json:"customBiddingScriptId,omitempty,string"` - - // Errors: Output only. Error details of a rejected custom bidding - // script. This field will only be populated when state is REJECTED. + // Errors: Output only. Error details of a rejected custom bidding script. This + // field will only be populated when state is REJECTED. Errors []*ScriptError `json:"errors,omitempty"` - // Name: Output only. The resource name of the custom bidding script. Name string `json:"name,omitempty"` - // Script: The reference to the uploaded script file. Script *CustomBiddingScriptRef `json:"script,omitempty"` - // State: Output only. The state of the custom bidding script. // // Possible values: - // "STATE_UNSPECIFIED" - The script state is not specified or is - // unknown in this version. + // "STATE_UNSPECIFIED" - The script state is not specified or is unknown in + // this version. // "ACCEPTED" - The script has been accepted for scoring impressions. - // "REJECTED" - The script has been rejected by backend pipelines. It - // may have errors. + // "REJECTED" - The script has been rejected by backend pipelines. It may + // have errors. // "PENDING" - The script is being processed for backend pipelines. State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomBiddingScript) MarshalJSON() ([]byte, error) { +func (s CustomBiddingScript) MarshalJSON() ([]byte, error) { type NoMethod CustomBiddingScript - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomBiddingScriptRef: The reference to the uploaded custom bidding -// script file. +// CustomBiddingScriptRef: The reference to the uploaded custom bidding script +// file. type CustomBiddingScriptRef struct { - // ResourceName: A resource name to be used in media.download to - // Download the script files. Or media.upload to Upload the script - // files. Resource names have the format - // `customBiddingAlgorithms/{custom_bidding_algorithm_id}/scriptRef/{ref_ - // id}`. + // ResourceName: A resource name to be used in media.download to Download the + // script files. Or media.upload to Upload the script files. Resource names + // have the format + // `customBiddingAlgorithms/{custom_bidding_algorithm_id}/scriptRef/{ref_id}`. ResourceName string `json:"resourceName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomBiddingScriptRef) MarshalJSON() ([]byte, error) { +func (s CustomBiddingScriptRef) MarshalJSON() ([]byte, error) { type NoMethod CustomBiddingScriptRef - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomList: Describes a custom list entity, such as a custom affinity -// or custom intent audience list. +// CustomList: Describes a custom list entity, such as a custom affinity or +// custom intent audience list. type CustomList struct { - // CustomListId: Output only. The unique ID of the custom list. Assigned - // by the system. + // CustomListId: Output only. The unique ID of the custom list. Assigned by the + // system. CustomListId int64 `json:"customListId,omitempty,string"` - // DisplayName: Output only. The display name of the custom list. . DisplayName string `json:"displayName,omitempty"` - // Name: Output only. The resource name of the custom list. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CustomListId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomListId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomListId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomList) MarshalJSON() ([]byte, error) { +func (s CustomList) MarshalJSON() ([]byte, error) { type NoMethod CustomList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomListGroup: Details of custom list group. All custom list -// targeting settings are logically ‘OR’ of each other. +// CustomListGroup: Details of custom list group. All custom list targeting +// settings are logically ‘OR’ of each other. type CustomListGroup struct { - // Settings: Required. All custom list targeting settings in custom list - // group. Repeated settings with same id will be ignored. + // Settings: Required. All custom list targeting settings in custom list group. + // Repeated settings with same id will be ignored. Settings []*CustomListTargetingSetting `json:"settings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Settings") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Settings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Settings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomListGroup) MarshalJSON() ([]byte, error) { +func (s CustomListGroup) MarshalJSON() ([]byte, error) { type NoMethod CustomListGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomListTargetingSetting: Details of custom list targeting setting. type CustomListTargetingSetting struct { - // CustomListId: Required. Custom id of custom list targeting setting. - // This id is custom_list_id. + // CustomListId: Required. Custom id of custom list targeting setting. This id + // is custom_list_id. CustomListId int64 `json:"customListId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CustomListId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomListId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomListId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomListTargetingSetting) MarshalJSON() ([]byte, error) { +func (s CustomListTargetingSetting) MarshalJSON() ([]byte, error) { type NoMethod CustomListTargetingSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Date: Represents a whole or partial calendar date, such as a -// birthday. The time of day and time zone are either specified -// elsewhere or are insignificant. The date is relative to the Gregorian -// Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values. * A month and day, with a -// zero year (for example, an anniversary). * A year on its own, with a -// zero month and a zero day. * A year and month, with a zero day (for -// example, a credit card expiration date). Related types: * -// google.type.TimeOfDay * google.type.DateTime * + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a birthday. The +// time of day and time zone are either specified elsewhere or are +// insignificant. The date is relative to the Gregorian Calendar. This can +// represent one of the following: * A full date, with non-zero year, month, +// and day values. * A month and day, with a zero year (for example, an +// anniversary). * A year on its own, with a zero month and a zero day. * A +// year and month, with a zero day (for example, a credit card expiration +// date). Related types: * google.type.TimeOfDay * google.type.DateTime * // google.protobuf.Timestamp type Date struct { - // Day: Day of a month. Must be from 1 to 31 and valid for the year and - // month, or 0 to specify a year by itself or a year and month where the - // day isn't significant. + // Day: Day of a month. Must be from 1 to 31 and valid for the year and month, + // or 0 to specify a year by itself or a year and month where the day isn't + // significant. Day int64 `json:"day,omitempty"` - - // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year - // without a month and day. + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without + // a month and day. Month int64 `json:"month,omitempty"` - - // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a - // date without a year. + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date + // without a year. Year int64 `json:"year,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Day") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Day") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Day") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Day") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Date) MarshalJSON() ([]byte, error) { +func (s Date) MarshalJSON() ([]byte, error) { type NoMethod Date - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DateRange: A date range. @@ -6242,41 +5125,34 @@ type DateRange struct { // EndDate: The upper bound of the date range, inclusive. Must specify a // positive value for `year`, `month`, and `day`. EndDate *Date `json:"endDate,omitempty"` - - // StartDate: The lower bound of the date range, inclusive. Must specify - // a positive value for `year`, `month`, and `day`. + // StartDate: The lower bound of the date range, inclusive. Must specify a + // positive value for `year`, `month`, and `day`. StartDate *Date `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndDate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndDate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DateRange) MarshalJSON() ([]byte, error) { +func (s DateRange) MarshalJSON() ([]byte, error) { type NoMethod DateRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DayAndTimeAssignedTargetingOptionDetails: Representation of a segment -// of time defined on a specific day of the week and with a start and -// end time. The time represented by `start_hour` must be before the -// time represented by `end_hour`. +// DayAndTimeAssignedTargetingOptionDetails: Representation of a segment of +// time defined on a specific day of the week and with a start and end time. +// The time represented by `start_hour` must be before the time represented by +// `end_hour`. type DayAndTimeAssignedTargetingOptionDetails struct { - // DayOfWeek: Required. The day of the week for this day and time - // targeting setting. + // DayOfWeek: Required. The day of the week for this day and time targeting + // setting. // // Possible values: // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. @@ -6288,48 +5164,39 @@ type DayAndTimeAssignedTargetingOptionDetails struct { // "SATURDAY" - Saturday // "SUNDAY" - Sunday DayOfWeek string `json:"dayOfWeek,omitempty"` - - // EndHour: Required. The end hour for day and time targeting. Must be - // between 1 (1 hour after start of day) and 24 (end of day). + // EndHour: Required. The end hour for day and time targeting. Must be between + // 1 (1 hour after start of day) and 24 (end of day). EndHour int64 `json:"endHour,omitempty"` - - // StartHour: Required. The start hour for day and time targeting. Must - // be between 0 (start of day) and 23 (1 hour before end of day). + // StartHour: Required. The start hour for day and time targeting. Must be + // between 0 (start of day) and 23 (1 hour before end of day). StartHour int64 `json:"startHour,omitempty"` - - // TimeZoneResolution: Required. The mechanism used to determine which - // timezone to use for this day and time targeting setting. + // TimeZoneResolution: Required. The mechanism used to determine which timezone + // to use for this day and time targeting setting. // // Possible values: // "TIME_ZONE_RESOLUTION_UNSPECIFIED" - Time zone resolution is either // unspecific or unknown. - // "TIME_ZONE_RESOLUTION_END_USER" - Times are resolved in the time - // zone of the user that saw the ad. - // "TIME_ZONE_RESOLUTION_ADVERTISER" - Times are resolved in the time - // zone of the advertiser that served the ad. + // "TIME_ZONE_RESOLUTION_END_USER" - Times are resolved in the time zone of + // the user that saw the ad. + // "TIME_ZONE_RESOLUTION_ADVERTISER" - Times are resolved in the time zone of + // the advertiser that served the ad. TimeZoneResolution string `json:"timeZoneResolution,omitempty"` - // ForceSendFields is a list of field names (e.g. "DayOfWeek") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DayOfWeek") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DayOfWeek") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DayAndTimeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s DayAndTimeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod DayAndTimeAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DeactivateManualTriggerRequest: Request message for @@ -6337,436 +5204,363 @@ func (s *DayAndTimeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) type DeactivateManualTriggerRequest struct { } -// DeleteAssignedTargetingOptionsRequest: A request listing which -// assigned targeting options of a given targeting type should be -// deleted. +// DeleteAssignedTargetingOptionsRequest: A request listing which assigned +// targeting options of a given targeting type should be deleted. type DeleteAssignedTargetingOptionsRequest struct { - // AssignedTargetingOptionIds: Required. The assigned targeting option - // IDs to delete. + // AssignedTargetingOptionIds: Required. The assigned targeting option IDs to + // delete. AssignedTargetingOptionIds []string `json:"assignedTargetingOptionIds,omitempty"` - - // TargetingType: Required. Identifies the type of this assigned - // targeting option. + // TargetingType: Required. Identifies the type of this assigned targeting + // option. // // Possible values: - // "TARGETING_TYPE_UNSPECIFIED" - Default value when type is not - // specified or is unknown in this version. - // "TARGETING_TYPE_CHANNEL" - Target a channel (a custom group of - // related websites or apps). - // "TARGETING_TYPE_APP_CATEGORY" - Target an app category (for - // example, education or puzzle games). - // "TARGETING_TYPE_APP" - Target a specific app (for example, Angry - // Birds). - // "TARGETING_TYPE_URL" - Target a specific url (for example, - // quora.com). - // "TARGETING_TYPE_DAY_AND_TIME" - Target ads during a chosen time - // period on a specific day. - // "TARGETING_TYPE_AGE_RANGE" - Target ads to a specific age range - // (for example, 18-24). - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST" - Target ads to the - // specified regions on a regional location list. - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST" - Target ads to the - // specified points of interest on a proximity location list. - // "TARGETING_TYPE_GENDER" - Target ads to a specific gender (for - // example, female or male). - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE" - Target a specific video player - // size for video ads. - // "TARGETING_TYPE_USER_REWARDED_CONTENT" - Target user rewarded - // content for video ads. - // "TARGETING_TYPE_PARENTAL_STATUS" - Target ads to a specific - // parental status (for example, parent or not a parent). - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION" - Target video or audio - // ads in a specific content instream position (for example, pre-roll, - // mid-roll, or post-roll). - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION" - Target ads in a - // specific content outstream position. - // "TARGETING_TYPE_DEVICE_TYPE" - Target ads to a specific device type - // (for example, tablet or connected TV). - // "TARGETING_TYPE_AUDIENCE_GROUP" - Target ads to an audience or - // groups of audiences. Singleton field, at most one can exist on a - // single Lineitem at a time. + // "TARGETING_TYPE_UNSPECIFIED" - Default value when type is not specified or + // is unknown in this version. + // "TARGETING_TYPE_CHANNEL" - Target a channel (a custom group of related + // websites or apps). + // "TARGETING_TYPE_APP_CATEGORY" - Target an app category (for example, + // education or puzzle games). + // "TARGETING_TYPE_APP" - Target a specific app (for example, Angry Birds). + // "TARGETING_TYPE_URL" - Target a specific url (for example, quora.com). + // "TARGETING_TYPE_DAY_AND_TIME" - Target ads during a chosen time period on + // a specific day. + // "TARGETING_TYPE_AGE_RANGE" - Target ads to a specific age range (for + // example, 18-24). + // "TARGETING_TYPE_REGIONAL_LOCATION_LIST" - Target ads to the specified + // regions on a regional location list. + // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST" - Target ads to the specified + // points of interest on a proximity location list. + // "TARGETING_TYPE_GENDER" - Target ads to a specific gender (for example, + // female or male). + // "TARGETING_TYPE_VIDEO_PLAYER_SIZE" - Target a specific video player size + // for video ads. + // "TARGETING_TYPE_USER_REWARDED_CONTENT" - Target user rewarded content for + // video ads. + // "TARGETING_TYPE_PARENTAL_STATUS" - Target ads to a specific parental + // status (for example, parent or not a parent). + // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION" - Target video or audio ads in + // a specific content instream position (for example, pre-roll, mid-roll, or + // post-roll). + // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION" - Target ads in a specific + // content outstream position. + // "TARGETING_TYPE_DEVICE_TYPE" - Target ads to a specific device type (for + // example, tablet or connected TV). + // "TARGETING_TYPE_AUDIENCE_GROUP" - Target ads to an audience or groups of + // audiences. Singleton field, at most one can exist on a single Lineitem at a + // time. // "TARGETING_TYPE_BROWSER" - Target ads to specific web browsers (for // example, Chrome). - // "TARGETING_TYPE_HOUSEHOLD_INCOME" - Target ads to a specific - // household income range (for example, top 10%). - // "TARGETING_TYPE_ON_SCREEN_POSITION" - Target ads in a specific on - // screen position. - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER" - Filter web sites through - // third party verification (for example, IAS or DoubleVerify). - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION" - Filter web sites - // by specific digital content label ratings (for example, DL-MA: - // suitable only for mature audiences). - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION" - Filter website - // content by sensitive categories (for example, adult). - // "TARGETING_TYPE_ENVIRONMENT" - Target ads to a specific environment - // (for example, web or app). + // "TARGETING_TYPE_HOUSEHOLD_INCOME" - Target ads to a specific household + // income range (for example, top 10%). + // "TARGETING_TYPE_ON_SCREEN_POSITION" - Target ads in a specific on screen + // position. + // "TARGETING_TYPE_THIRD_PARTY_VERIFIER" - Filter web sites through third + // party verification (for example, IAS or DoubleVerify). + // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION" - Filter web sites by + // specific digital content label ratings (for example, DL-MA: suitable only + // for mature audiences). + // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION" - Filter website content by + // sensitive categories (for example, adult). + // "TARGETING_TYPE_ENVIRONMENT" - Target ads to a specific environment (for + // example, web or app). // "TARGETING_TYPE_CARRIER_AND_ISP" - Target ads to a specific network - // carrier or internet service provider (ISP) (for example, Comcast or - // Orange). - // "TARGETING_TYPE_OPERATING_SYSTEM" - Target ads to a specific - // operating system (for example, macOS). - // "TARGETING_TYPE_DEVICE_MAKE_MODEL" - Target ads to a specific - // device make or model (for example, Roku or Samsung). - // "TARGETING_TYPE_KEYWORD" - Target ads to a specific keyword (for - // example, dog or retriever). - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST" - Target ads to a specific - // negative keyword list. - // "TARGETING_TYPE_VIEWABILITY" - Target ads to a specific viewability - // (for example, 80% viewable). - // "TARGETING_TYPE_CATEGORY" - Target ads to a specific content - // category (for example, arts & entertainment). - // "TARGETING_TYPE_INVENTORY_SOURCE" - Purchase impressions from - // specific deals and auction packages. + // carrier or internet service provider (ISP) (for example, Comcast or Orange). + // "TARGETING_TYPE_OPERATING_SYSTEM" - Target ads to a specific operating + // system (for example, macOS). + // "TARGETING_TYPE_DEVICE_MAKE_MODEL" - Target ads to a specific device make + // or model (for example, Roku or Samsung). + // "TARGETING_TYPE_KEYWORD" - Target ads to a specific keyword (for example, + // dog or retriever). + // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST" - Target ads to a specific negative + // keyword list. + // "TARGETING_TYPE_VIEWABILITY" - Target ads to a specific viewability (for + // example, 80% viewable). + // "TARGETING_TYPE_CATEGORY" - Target ads to a specific content category (for + // example, arts & entertainment). + // "TARGETING_TYPE_INVENTORY_SOURCE" - Purchase impressions from specific + // deals and auction packages. // "TARGETING_TYPE_LANGUAGE" - Target ads to a specific language (for // example, English or Japanese). // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS" - Target ads to ads.txt - // authorized sellers. If no targeting option of this type is assigned, - // the resource uses the "Authorized Direct Sellers and Resellers" - // option by default. - // "TARGETING_TYPE_GEO_REGION" - Target ads to a specific regional - // location (for example, a city or state). - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP" - Purchase impressions from - // a group of deals and auction packages. - // "TARGETING_TYPE_EXCHANGE" - Purchase impressions from specific - // exchanges. + // authorized sellers. If no targeting option of this type is assigned, the + // resource uses the "Authorized Direct Sellers and Resellers" option by + // default. + // "TARGETING_TYPE_GEO_REGION" - Target ads to a specific regional location + // (for example, a city or state). + // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP" - Purchase impressions from a + // group of deals and auction packages. + // "TARGETING_TYPE_EXCHANGE" - Purchase impressions from specific exchanges. // "TARGETING_TYPE_SUB_EXCHANGE" - Purchase impressions from specific // sub-exchanges. - // "TARGETING_TYPE_POI" - Target ads around a specific point of - // interest, such as a notable building, a street address, or - // latitude/longitude coordinates. + // "TARGETING_TYPE_POI" - Target ads around a specific point of interest, + // such as a notable building, a street address, or latitude/longitude + // coordinates. // "TARGETING_TYPE_BUSINESS_CHAIN" - Target ads around locations of a // business chain within a specific geo region. - // "TARGETING_TYPE_CONTENT_DURATION" - Target ads to a specific video - // content duration. - // "TARGETING_TYPE_CONTENT_STREAM_TYPE" - Target ads to a specific - // video content stream type. - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION" - Target ads to a specific - // native content position. + // "TARGETING_TYPE_CONTENT_DURATION" - Target ads to a specific video content + // duration. + // "TARGETING_TYPE_CONTENT_STREAM_TYPE" - Target ads to a specific video + // content stream type. + // "TARGETING_TYPE_NATIVE_CONTENT_POSITION" - Target ads to a specific native + // content position. // "TARGETING_TYPE_OMID" - Target ads in an Open Measurement enabled // inventory. - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE" - Target ads to a specific - // audio content type. - // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content - // genre. + // "TARGETING_TYPE_AUDIO_CONTENT_TYPE" - Target ads to a specific audio + // content type. + // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content genre. TargetingType string `json:"targetingType,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptionIds") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptionIds") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AssignedTargetingOptionIds") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptionIds") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { +func (s DeleteAssignedTargetingOptionsRequest) MarshalJSON() ([]byte, error) { type NoMethod DeleteAssignedTargetingOptionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceMakeModelAssignedTargetingOptionDetails: Assigned device make -// and model targeting option details. This will be populated in the +// DeviceMakeModelAssignedTargetingOptionDetails: Assigned device make and +// model targeting option details. This will be populated in the // device_make_model_details field when targeting_type is // `TARGETING_TYPE_DEVICE_MAKE_MODEL`. type DeviceMakeModelAssignedTargetingOptionDetails struct { - // DisplayName: Output only. The display name of the device make and - // model. + // DisplayName: Output only. The display name of the device make and model. DisplayName string `json:"displayName,omitempty"` - // Negative: Indicates if this option is being negatively targeted. Negative bool `json:"negative,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_DEVICE_MAKE_MODEL`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceMakeModelAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s DeviceMakeModelAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod DeviceMakeModelAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceMakeModelTargetingOptionDetails: Represents a targetable device -// make and model. This will be populated in the -// device_make_model_details field of a TargetingOption when -// targeting_type is `TARGETING_TYPE_DEVICE_MAKE_MODEL`. +// DeviceMakeModelTargetingOptionDetails: Represents a targetable device make +// and model. This will be populated in the device_make_model_details field of +// a TargetingOption when targeting_type is `TARGETING_TYPE_DEVICE_MAKE_MODEL`. type DeviceMakeModelTargetingOptionDetails struct { - // DisplayName: Output only. The display name of the device make and - // model. + // DisplayName: Output only. The display name of the device make and model. DisplayName string `json:"displayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceMakeModelTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s DeviceMakeModelTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod DeviceMakeModelTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceTypeAssignedTargetingOptionDetails: Targeting details for -// device type. This will be populated in the details field of an -// AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_DEVICE_TYPE`. +// DeviceTypeAssignedTargetingOptionDetails: Targeting details for device type. +// This will be populated in the details field of an AssignedTargetingOption +// when targeting_type is `TARGETING_TYPE_DEVICE_TYPE`. type DeviceTypeAssignedTargetingOptionDetails struct { // DeviceType: Required. The display name of the device type. // // Possible values: // "DEVICE_TYPE_UNSPECIFIED" - Default value when device type is not - // specified in this version. This enum is a placeholder for default - // value and does not represent a real device type option. + // specified in this version. This enum is a placeholder for default value and + // does not represent a real device type option. // "DEVICE_TYPE_COMPUTER" - Computer. // "DEVICE_TYPE_CONNECTED_TV" - Connected TV. // "DEVICE_TYPE_SMART_PHONE" - Smart phone. // "DEVICE_TYPE_TABLET" - Tablet. DeviceType string `json:"deviceType,omitempty"` - // TargetingOptionId: Required. ID of the device type. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceTypeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s DeviceTypeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod DeviceTypeAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceTypeTargetingOptionDetails: Represents a targetable device -// type. This will be populated in the device_type_details field of a -// TargetingOption when targeting_type is `TARGETING_TYPE_DEVICE_TYPE`. +// DeviceTypeTargetingOptionDetails: Represents a targetable device type. This +// will be populated in the device_type_details field of a TargetingOption when +// targeting_type is `TARGETING_TYPE_DEVICE_TYPE`. type DeviceTypeTargetingOptionDetails struct { // DeviceType: Output only. The device type that is used to be targeted. // // Possible values: // "DEVICE_TYPE_UNSPECIFIED" - Default value when device type is not - // specified in this version. This enum is a placeholder for default - // value and does not represent a real device type option. + // specified in this version. This enum is a placeholder for default value and + // does not represent a real device type option. // "DEVICE_TYPE_COMPUTER" - Computer. // "DEVICE_TYPE_CONNECTED_TV" - Connected TV. // "DEVICE_TYPE_SMART_PHONE" - Smart phone. // "DEVICE_TYPE_TABLET" - Tablet. DeviceType string `json:"deviceType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceTypeTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s DeviceTypeTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod DeviceTypeTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DigitalContentLabelAssignedTargetingOptionDetails: Targeting details -// for digital content label. This will be populated in the details -// field of an AssignedTargetingOption when targeting_type is +// DigitalContentLabelAssignedTargetingOptionDetails: Targeting details for +// digital content label. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`. type DigitalContentLabelAssignedTargetingOptionDetails struct { - // ContentRatingTier: Output only. The display name of the digital - // content label rating tier. + // ContentRatingTier: Output only. The display name of the digital content + // label rating tier. // // Possible values: - // "CONTENT_RATING_TIER_UNSPECIFIED" - Content label is not specified - // in this version. This enum is a place holder for a default value and - // does not represent a real content rating. + // "CONTENT_RATING_TIER_UNSPECIFIED" - Content label is not specified in this + // version. This enum is a place holder for a default value and does not + // represent a real content rating. // "CONTENT_RATING_TIER_UNRATED" - Content that has not been labeled. - // "CONTENT_RATING_TIER_GENERAL" - Content suitable for general - // audiences. + // "CONTENT_RATING_TIER_GENERAL" - Content suitable for general audiences. // "CONTENT_RATING_TIER_PARENTAL_GUIDANCE" - Content suitable for most // audiences with parental guidance. // "CONTENT_RATING_TIER_TEENS" - Content suitable for teen and older // audiences. - // "CONTENT_RATING_TIER_MATURE" - Content suitable only for mature - // audiences. + // "CONTENT_RATING_TIER_MATURE" - Content suitable only for mature audiences. ContentRatingTier string `json:"contentRatingTier,omitempty"` - - // ExcludedTargetingOptionId: Required. ID of the digital content label - // to be EXCLUDED. + // ExcludedTargetingOptionId: Required. ID of the digital content label to be + // EXCLUDED. ExcludedTargetingOptionId string `json:"excludedTargetingOptionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ContentRatingTier") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentRatingTier") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentRatingTier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentRatingTier") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DigitalContentLabelAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s DigitalContentLabelAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod DigitalContentLabelAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DigitalContentLabelTargetingOptionDetails: Represents a targetable -// digital content label rating tier. This will be populated in the +// DigitalContentLabelTargetingOptionDetails: Represents a targetable digital +// content label rating tier. This will be populated in the // digital_content_label_details field of the TargetingOption when // targeting_type is `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`. type DigitalContentLabelTargetingOptionDetails struct { - // ContentRatingTier: Output only. An enum for the content label brand - // safety tiers. + // ContentRatingTier: Output only. An enum for the content label brand safety + // tiers. // // Possible values: - // "CONTENT_RATING_TIER_UNSPECIFIED" - Content label is not specified - // in this version. This enum is a place holder for a default value and - // does not represent a real content rating. + // "CONTENT_RATING_TIER_UNSPECIFIED" - Content label is not specified in this + // version. This enum is a place holder for a default value and does not + // represent a real content rating. // "CONTENT_RATING_TIER_UNRATED" - Content that has not been labeled. - // "CONTENT_RATING_TIER_GENERAL" - Content suitable for general - // audiences. + // "CONTENT_RATING_TIER_GENERAL" - Content suitable for general audiences. // "CONTENT_RATING_TIER_PARENTAL_GUIDANCE" - Content suitable for most // audiences with parental guidance. // "CONTENT_RATING_TIER_TEENS" - Content suitable for teen and older // audiences. - // "CONTENT_RATING_TIER_MATURE" - Content suitable only for mature - // audiences. + // "CONTENT_RATING_TIER_MATURE" - Content suitable only for mature audiences. ContentRatingTier string `json:"contentRatingTier,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ContentRatingTier") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ContentRatingTier") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentRatingTier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentRatingTier") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DigitalContentLabelTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s DigitalContentLabelTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod DigitalContentLabelTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Dimensions: Dimensions. type Dimensions struct { // HeightPixels: The height in pixels. HeightPixels int64 `json:"heightPixels,omitempty"` - // WidthPixels: The width in pixels. WidthPixels int64 `json:"widthPixels,omitempty"` - // ForceSendFields is a list of field names (e.g. "HeightPixels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HeightPixels") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HeightPixels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Dimensions) MarshalJSON() ([]byte, error) { +func (s Dimensions) MarshalJSON() ([]byte, error) { type NoMethod Dimensions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DoubleVerify: Details of DoubleVerify settings. type DoubleVerify struct { // AppStarRating: Avoid bidding on apps with the star ratings. AppStarRating *DoubleVerifyAppStarRating `json:"appStarRating,omitempty"` - // AvoidedAgeRatings: Avoid bidding on apps with the age rating. // // Possible values: - // "AGE_RATING_UNSPECIFIED" - This enum is only a placeholder and it - // doesn't specify any age rating options. + // "AGE_RATING_UNSPECIFIED" - This enum is only a placeholder and it doesn't + // specify any age rating options. // "APP_AGE_RATE_UNKNOWN" - Apps with unknown age rating. // "APP_AGE_RATE_4_PLUS" - Apps rated for Everyone (4+). // "APP_AGE_RATE_9_PLUS" - Apps rated for Everyone (9+). @@ -6774,137 +5568,103 @@ type DoubleVerify struct { // "APP_AGE_RATE_17_PLUS" - Apps rated for Mature (17+). // "APP_AGE_RATE_18_PLUS" - Apps rated for Adults Only (18+). AvoidedAgeRatings []string `json:"avoidedAgeRatings,omitempty"` - // BrandSafetyCategories: DV Brand Safety Controls. BrandSafetyCategories *DoubleVerifyBrandSafetyCategories `json:"brandSafetyCategories,omitempty"` - - // CustomSegmentId: The custom segment ID provided by DoubleVerify. The - // ID must start with "51" and consist of eight digits. Custom segment - // ID cannot be specified along with any of the following fields: * - // brand_safety_categories * avoided_age_ratings * app_star_rating * - // fraud_invalid_traffic + // CustomSegmentId: The custom segment ID provided by DoubleVerify. The ID must + // start with "51" and consist of eight digits. Custom segment ID cannot be + // specified along with any of the following fields: * brand_safety_categories + // * avoided_age_ratings * app_star_rating * fraud_invalid_traffic CustomSegmentId int64 `json:"customSegmentId,omitempty,string"` - - // DisplayViewability: Display viewability settings (applicable to - // display line items only). + // DisplayViewability: Display viewability settings (applicable to display line + // items only). DisplayViewability *DoubleVerifyDisplayViewability `json:"displayViewability,omitempty"` - - // FraudInvalidTraffic: Avoid Sites and Apps with historical Fraud & IVT - // Rates. + // FraudInvalidTraffic: Avoid Sites and Apps with historical Fraud & IVT Rates. FraudInvalidTraffic *DoubleVerifyFraudInvalidTraffic `json:"fraudInvalidTraffic,omitempty"` - - // VideoViewability: Video viewability settings (applicable to video - // line items only). + // VideoViewability: Video viewability settings (applicable to video line items + // only). VideoViewability *DoubleVerifyVideoViewability `json:"videoViewability,omitempty"` - // ForceSendFields is a list of field names (e.g. "AppStarRating") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AppStarRating") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AppStarRating") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DoubleVerify) MarshalJSON() ([]byte, error) { +func (s DoubleVerify) MarshalJSON() ([]byte, error) { type NoMethod DoubleVerify - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DoubleVerifyAppStarRating: Details of DoubleVerify star ratings -// settings. +// DoubleVerifyAppStarRating: Details of DoubleVerify star ratings settings. type DoubleVerifyAppStarRating struct { - // AvoidInsufficientStarRating: Avoid bidding on apps with insufficient - // star ratings. + // AvoidInsufficientStarRating: Avoid bidding on apps with insufficient star + // ratings. AvoidInsufficientStarRating bool `json:"avoidInsufficientStarRating,omitempty"` - // AvoidedStarRating: Avoid bidding on apps with the star ratings. // // Possible values: - // "APP_STAR_RATE_UNSPECIFIED" - This enum is only a placeholder and - // it doesn't specify any app star rating options. - // "APP_STAR_RATE_1_POINT_5_LESS" - Official Apps with rating < 1.5 - // Stars. + // "APP_STAR_RATE_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any app star rating options. + // "APP_STAR_RATE_1_POINT_5_LESS" - Official Apps with rating < 1.5 Stars. // "APP_STAR_RATE_2_LESS" - Official Apps with rating < 2 Stars. - // "APP_STAR_RATE_2_POINT_5_LESS" - Official Apps with rating < 2.5 - // Stars. + // "APP_STAR_RATE_2_POINT_5_LESS" - Official Apps with rating < 2.5 Stars. // "APP_STAR_RATE_3_LESS" - Official Apps with rating < 3 Stars. - // "APP_STAR_RATE_3_POINT_5_LESS" - Official Apps with rating < 3.5 - // Stars. + // "APP_STAR_RATE_3_POINT_5_LESS" - Official Apps with rating < 3.5 Stars. // "APP_STAR_RATE_4_LESS" - Official Apps with rating < 4 Stars. - // "APP_STAR_RATE_4_POINT_5_LESS" - Official Apps with rating < 4.5 - // Stars. + // "APP_STAR_RATE_4_POINT_5_LESS" - Official Apps with rating < 4.5 Stars. AvoidedStarRating string `json:"avoidedStarRating,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AvoidInsufficientStarRating") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "AvoidInsufficientStarRating") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AvoidInsufficientStarRating") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AvoidInsufficientStarRating") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DoubleVerifyAppStarRating) MarshalJSON() ([]byte, error) { +func (s DoubleVerifyAppStarRating) MarshalJSON() ([]byte, error) { type NoMethod DoubleVerifyAppStarRating - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DoubleVerifyBrandSafetyCategories: Settings for brand safety -// controls. +// DoubleVerifyBrandSafetyCategories: Settings for brand safety controls. type DoubleVerifyBrandSafetyCategories struct { // AvoidUnknownBrandSafetyCategory: Unknown or unrateable. AvoidUnknownBrandSafetyCategory bool `json:"avoidUnknownBrandSafetyCategory,omitempty"` - // AvoidedHighSeverityCategories: Brand safety high severity avoidance // categories. // // Possible values: - // "HIGHER_SEVERITY_UNSPECIFIED" - This enum is only a placeholder and - // it doesn't specify any high severity categories. - // "ADULT_CONTENT_PORNOGRAPHY" - Adult Content: Pornography, Mature - // Topics & Nudity. + // "HIGHER_SEVERITY_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any high severity categories. + // "ADULT_CONTENT_PORNOGRAPHY" - Adult Content: Pornography, Mature Topics & + // Nudity. // "COPYRIGHT_INFRINGEMENT" - Copyright Infringement. - // "SUBSTANCE_ABUSE" - Drugs/Alcohol/Controlled Substances: Substance - // Abuse. - // "GRAPHIC_VIOLENCE_WEAPONS" - Extreme Graphic/Explicit - // Violence/Weapons. + // "SUBSTANCE_ABUSE" - Drugs/Alcohol/Controlled Substances: Substance Abuse. + // "GRAPHIC_VIOLENCE_WEAPONS" - Extreme Graphic/Explicit Violence/Weapons. // "HATE_PROFANITY" - Hate/Profanity. // "CRIMINAL_SKILLS" - Illegal Activities: Criminal Skills. - // "NUISANCE_INCENTIVIZED_MALWARE_CLUTTER" - - // Incentivized/Malware/Clutter. + // "NUISANCE_INCENTIVIZED_MALWARE_CLUTTER" - Incentivized/Malware/Clutter. AvoidedHighSeverityCategories []string `json:"avoidedHighSeverityCategories,omitempty"` - - // AvoidedMediumSeverityCategories: Brand safety medium severity - // avoidance categories. + // AvoidedMediumSeverityCategories: Brand safety medium severity avoidance + // categories. // // Possible values: - // "MEDIUM_SEVERITY_UNSPECIFIED" - This enum is only a placeholder and - // it doesn't specify any medium severity categories. + // "MEDIUM_SEVERITY_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any medium severity categories. // "AD_SERVERS" - Ad Servers. // "ADULT_CONTENT_SWIMSUIT" - Adult Content: Swimsuit. - // "ALTERNATIVE_LIFESTYLES" - Controversial Subjects: Alternative - // Lifestyles. + // "ALTERNATIVE_LIFESTYLES" - Controversial Subjects: Alternative Lifestyles. // "CELEBRITY_GOSSIP" - Controversial Subjects: Celebrity Gossip. // "GAMBLING" - Controversial Subjects: Gambling. // "OCCULT" - Controversial Subjects: Occult. @@ -6920,99 +5680,85 @@ type DoubleVerifyBrandSafetyCategories struct { // "NON_ENGLISH" - Non-Std Content: Non-English. // "PARKING_PAGE" - Non-Std Content: Parking Page. // "UNMODERATED_UGC" - Unmoderated UGC: Forums, Images & Video. - // "INFLAMMATORY_POLITICS_AND_NEWS" - Controversial Subjects: - // Inflammatory Politics and News. + // "INFLAMMATORY_POLITICS_AND_NEWS" - Controversial Subjects: Inflammatory + // Politics and News. // "NEGATIVE_NEWS_PHARMACEUTICAL" - Negative News: Pharmaceutical. AvoidedMediumSeverityCategories []string `json:"avoidedMediumSeverityCategories,omitempty"` - // ForceSendFields is a list of field names (e.g. // "AvoidUnknownBrandSafetyCategory") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AvoidUnknownBrandSafetyCategory") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AvoidUnknownBrandSafetyCategory") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DoubleVerifyBrandSafetyCategories) MarshalJSON() ([]byte, error) { +func (s DoubleVerifyBrandSafetyCategories) MarshalJSON() ([]byte, error) { type NoMethod DoubleVerifyBrandSafetyCategories - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DoubleVerifyDisplayViewability: Details of DoubleVerify display -// viewability settings. +// DoubleVerifyDisplayViewability: Details of DoubleVerify display viewability +// settings. type DoubleVerifyDisplayViewability struct { // Iab: Target web and app inventory to maximize IAB viewable rate. // // Possible values: - // "IAB_VIEWED_RATE_UNSPECIFIED" - This enum is only a placeholder and - // it doesn't specify any IAB viewed rate options. - // "IAB_VIEWED_RATE_80_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 80% or higher. - // "IAB_VIEWED_RATE_75_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 75% or higher. - // "IAB_VIEWED_RATE_70_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 70% or higher. - // "IAB_VIEWED_RATE_65_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 65% or higher. - // "IAB_VIEWED_RATE_60_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 60% or higher. - // "IAB_VIEWED_RATE_55_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 55% or higher. - // "IAB_VIEWED_RATE_50_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 50% or higher. - // "IAB_VIEWED_RATE_40_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 40% or higher. - // "IAB_VIEWED_RATE_30_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 30% or higher. + // "IAB_VIEWED_RATE_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any IAB viewed rate options. + // "IAB_VIEWED_RATE_80_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 80% or higher. + // "IAB_VIEWED_RATE_75_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 75% or higher. + // "IAB_VIEWED_RATE_70_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 70% or higher. + // "IAB_VIEWED_RATE_65_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 65% or higher. + // "IAB_VIEWED_RATE_60_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 60% or higher. + // "IAB_VIEWED_RATE_55_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 55% or higher. + // "IAB_VIEWED_RATE_50_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 50% or higher. + // "IAB_VIEWED_RATE_40_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 40% or higher. + // "IAB_VIEWED_RATE_30_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 30% or higher. Iab string `json:"iab,omitempty"` - - // ViewableDuring: Target web and app inventory to maximize 100% - // viewable duration. + // ViewableDuring: Target web and app inventory to maximize 100% viewable + // duration. // // Possible values: - // "AVERAGE_VIEW_DURATION_UNSPECIFIED" - This enum is only a - // placeholder and it doesn't specify any average view duration options. - // "AVERAGE_VIEW_DURATION_5_SEC" - Target web and app inventory to - // maximize 100% viewable duration 5 seconds or more. - // "AVERAGE_VIEW_DURATION_10_SEC" - Target web and app inventory to - // maximize 100% viewable duration 10 seconds or more. - // "AVERAGE_VIEW_DURATION_15_SEC" - Target web and app inventory to - // maximize 100% viewable duration 15 seconds or more. + // "AVERAGE_VIEW_DURATION_UNSPECIFIED" - This enum is only a placeholder and + // it doesn't specify any average view duration options. + // "AVERAGE_VIEW_DURATION_5_SEC" - Target web and app inventory to maximize + // 100% viewable duration 5 seconds or more. + // "AVERAGE_VIEW_DURATION_10_SEC" - Target web and app inventory to maximize + // 100% viewable duration 10 seconds or more. + // "AVERAGE_VIEW_DURATION_15_SEC" - Target web and app inventory to maximize + // 100% viewable duration 15 seconds or more. ViewableDuring string `json:"viewableDuring,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Iab") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Iab") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Iab") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Iab") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DoubleVerifyDisplayViewability) MarshalJSON() ([]byte, error) { +func (s DoubleVerifyDisplayViewability) MarshalJSON() ([]byte, error) { type NoMethod DoubleVerifyDisplayViewability - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DoubleVerifyFraudInvalidTraffic: DoubleVerify Fraud & Invalid Traffic @@ -7020,12 +5766,11 @@ func (s *DoubleVerifyDisplayViewability) MarshalJSON() ([]byte, error) { type DoubleVerifyFraudInvalidTraffic struct { // AvoidInsufficientOption: Insufficient Historical Fraud & IVT Stats. AvoidInsufficientOption bool `json:"avoidInsufficientOption,omitempty"` - // AvoidedFraudOption: Avoid Sites and Apps with historical Fraud & IVT. // // Possible values: - // "FRAUD_UNSPECIFIED" - This enum is only a placeholder and it - // doesn't specify any fraud and invalid traffic options. + // "FRAUD_UNSPECIFIED" - This enum is only a placeholder and it doesn't + // specify any fraud and invalid traffic options. // "AD_IMPRESSION_FRAUD_100" - 100% Fraud & IVT. // "AD_IMPRESSION_FRAUD_50" - 50% or Higher Fraud & IVT. // "AD_IMPRESSION_FRAUD_25" - 25% or Higher Fraud & IVT. @@ -7035,521 +5780,413 @@ type DoubleVerifyFraudInvalidTraffic struct { // "AD_IMPRESSION_FRAUD_4" - 4% or Higher Fraud & IVT. // "AD_IMPRESSION_FRAUD_2" - 2% or Higher Fraud & IVT. AvoidedFraudOption string `json:"avoidedFraudOption,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AvoidInsufficientOption") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AvoidInsufficientOption") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AvoidInsufficientOption") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AvoidInsufficientOption") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DoubleVerifyFraudInvalidTraffic) MarshalJSON() ([]byte, error) { +func (s DoubleVerifyFraudInvalidTraffic) MarshalJSON() ([]byte, error) { type NoMethod DoubleVerifyFraudInvalidTraffic - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DoubleVerifyVideoViewability: Details of DoubleVerify video -// viewability settings. +// DoubleVerifyVideoViewability: Details of DoubleVerify video viewability +// settings. type DoubleVerifyVideoViewability struct { - // PlayerImpressionRate: Target inventory to maximize impressions with - // 400x300 or greater player size. + // PlayerImpressionRate: Target inventory to maximize impressions with 400x300 + // or greater player size. // // Possible values: - // "PLAYER_SIZE_400X300_UNSPECIFIED" - This enum is only a placeholder - // and it doesn't specify any impressions options. + // "PLAYER_SIZE_400X300_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any impressions options. // "PLAYER_SIZE_400X300_95" - Sites with 95%+ of impressions. // "PLAYER_SIZE_400X300_70" - Sites with 70%+ of impressions. // "PLAYER_SIZE_400X300_25" - Sites with 25%+ of impressions. // "PLAYER_SIZE_400X300_5" - Sites with 5%+ of impressions. PlayerImpressionRate string `json:"playerImpressionRate,omitempty"` - // VideoIab: Target web inventory to maximize IAB viewable rate. // // Possible values: - // "VIDEO_IAB_UNSPECIFIED" - This enum is only a placeholder and it - // doesn't specify any video IAB viewable rate options. - // "IAB_VIEWABILITY_80_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 80% or higher. - // "IAB_VIEWABILITY_75_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 75% or higher. - // "IAB_VIEWABILITY_70_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 70% or higher. - // "IAB_VIEWABILITY_65_PERCENT_HIHGER" - Target web and app inventory - // to maximize IAB viewable rate 65% or higher. - // "IAB_VIEWABILITY_60_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 60% or higher. - // "IAB_VIEWABILITY_55_PERCENT_HIHGER" - Target web and app inventory - // to maximize IAB viewable rate 55% or higher. - // "IAB_VIEWABILITY_50_PERCENT_HIGHER" - Target web and app inventory - // to maximize IAB viewable rate 50% or higher. - // "IAB_VIEWABILITY_40_PERCENT_HIHGER" - Target web and app inventory - // to maximize IAB viewable rate 40% or higher. - // "IAB_VIEWABILITY_30_PERCENT_HIHGER" - Target web and app inventory - // to maximize IAB viewable rate 30% or higher. + // "VIDEO_IAB_UNSPECIFIED" - This enum is only a placeholder and it doesn't + // specify any video IAB viewable rate options. + // "IAB_VIEWABILITY_80_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 80% or higher. + // "IAB_VIEWABILITY_75_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 75% or higher. + // "IAB_VIEWABILITY_70_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 70% or higher. + // "IAB_VIEWABILITY_65_PERCENT_HIHGER" - Target web and app inventory to + // maximize IAB viewable rate 65% or higher. + // "IAB_VIEWABILITY_60_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 60% or higher. + // "IAB_VIEWABILITY_55_PERCENT_HIHGER" - Target web and app inventory to + // maximize IAB viewable rate 55% or higher. + // "IAB_VIEWABILITY_50_PERCENT_HIGHER" - Target web and app inventory to + // maximize IAB viewable rate 50% or higher. + // "IAB_VIEWABILITY_40_PERCENT_HIHGER" - Target web and app inventory to + // maximize IAB viewable rate 40% or higher. + // "IAB_VIEWABILITY_30_PERCENT_HIHGER" - Target web and app inventory to + // maximize IAB viewable rate 30% or higher. VideoIab string `json:"videoIab,omitempty"` - - // VideoViewableRate: Target web inventory to maximize fully viewable - // rate. + // VideoViewableRate: Target web inventory to maximize fully viewable rate. // // Possible values: - // "VIDEO_VIEWABLE_RATE_UNSPECIFIED" - This enum is only a placeholder - // and it doesn't specify any video viewable rate options. - // "VIEWED_PERFORMANCE_40_PERCENT_HIGHER" - Target web inventory to - // maximize fully viewable rate 40% or higher. - // "VIEWED_PERFORMANCE_35_PERCENT_HIGHER" - Target web inventory to - // maximize fully viewable rate 35% or higher. - // "VIEWED_PERFORMANCE_30_PERCENT_HIGHER" - Target web inventory to - // maximize fully viewable rate 30% or higher. - // "VIEWED_PERFORMANCE_25_PERCENT_HIGHER" - Target web inventory to - // maximize fully viewable rate 25% or higher. - // "VIEWED_PERFORMANCE_20_PERCENT_HIGHER" - Target web inventory to - // maximize fully viewable rate 20% or higher. - // "VIEWED_PERFORMANCE_10_PERCENT_HIGHER" - Target web inventory to - // maximize fully viewable rate 10% or higher. + // "VIDEO_VIEWABLE_RATE_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any video viewable rate options. + // "VIEWED_PERFORMANCE_40_PERCENT_HIGHER" - Target web inventory to maximize + // fully viewable rate 40% or higher. + // "VIEWED_PERFORMANCE_35_PERCENT_HIGHER" - Target web inventory to maximize + // fully viewable rate 35% or higher. + // "VIEWED_PERFORMANCE_30_PERCENT_HIGHER" - Target web inventory to maximize + // fully viewable rate 30% or higher. + // "VIEWED_PERFORMANCE_25_PERCENT_HIGHER" - Target web inventory to maximize + // fully viewable rate 25% or higher. + // "VIEWED_PERFORMANCE_20_PERCENT_HIGHER" - Target web inventory to maximize + // fully viewable rate 20% or higher. + // "VIEWED_PERFORMANCE_10_PERCENT_HIGHER" - Target web inventory to maximize + // fully viewable rate 10% or higher. VideoViewableRate string `json:"videoViewableRate,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PlayerImpressionRate") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "PlayerImpressionRate") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PlayerImpressionRate") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PlayerImpressionRate") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DoubleVerifyVideoViewability) MarshalJSON() ([]byte, error) { +func (s DoubleVerifyVideoViewability) MarshalJSON() ([]byte, error) { type NoMethod DoubleVerifyVideoViewability - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EditCustomerMatchMembersRequest: Request message for // FirstAndThirdPartyAudienceService.EditCustomerMatchMembers. type EditCustomerMatchMembersRequest struct { - // AddedContactInfoList: Input only. A list of contact information to - // define the members to be added. + // AddedContactInfoList: Input only. A list of contact information to define + // the members to be added. AddedContactInfoList *ContactInfoList `json:"addedContactInfoList,omitempty"` - - // AddedMobileDeviceIdList: Input only. A list of mobile device IDs to - // define the members to be added. + // AddedMobileDeviceIdList: Input only. A list of mobile device IDs to define + // the members to be added. AddedMobileDeviceIdList *MobileDeviceIdList `json:"addedMobileDeviceIdList,omitempty"` - // AdvertiserId: Required. The ID of the owner advertiser of the updated // Customer Match FirstAndThirdPartyAudience. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "AddedContactInfoList") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AddedContactInfoList") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AddedContactInfoList") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AddedContactInfoList") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EditCustomerMatchMembersRequest) MarshalJSON() ([]byte, error) { +func (s EditCustomerMatchMembersRequest) MarshalJSON() ([]byte, error) { type NoMethod EditCustomerMatchMembersRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EditCustomerMatchMembersResponse: The response of // FirstAndThirdPartyAudienceService.EditCustomerMatchMembers. type EditCustomerMatchMembersResponse struct { - // FirstAndThirdPartyAudienceId: Required. The ID of the updated - // Customer Match FirstAndThirdPartyAudience. + // FirstAndThirdPartyAudienceId: Required. The ID of the updated Customer Match + // FirstAndThirdPartyAudience. FirstAndThirdPartyAudienceId int64 `json:"firstAndThirdPartyAudienceId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "FirstAndThirdPartyAudienceId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "FirstAndThirdPartyAudienceId") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "FirstAndThirdPartyAudienceId") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "FirstAndThirdPartyAudienceId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EditCustomerMatchMembersResponse) MarshalJSON() ([]byte, error) { +func (s EditCustomerMatchMembersResponse) MarshalJSON() ([]byte, error) { type NoMethod EditCustomerMatchMembersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EditGuaranteedOrderReadAccessorsRequest: Request message for // GuaranteedOrderService.EditGuaranteedOrderReadAccessors. type EditGuaranteedOrderReadAccessorsRequest struct { - // AddedAdvertisers: The advertisers to add as read accessors to the - // guaranteed order. + // AddedAdvertisers: The advertisers to add as read accessors to the guaranteed + // order. AddedAdvertisers googleapi.Int64s `json:"addedAdvertisers,omitempty"` - - // PartnerId: Required. The partner context in which the change is being - // made. + // PartnerId: Required. The partner context in which the change is being made. PartnerId int64 `json:"partnerId,omitempty,string"` - - // ReadAccessInherited: Whether to give all advertisers of the - // read/write accessor partner read access to the guaranteed order. Only - // applicable if read_write_partner_id is set in the guaranteed order. + // ReadAccessInherited: Whether to give all advertisers of the read/write + // accessor partner read access to the guaranteed order. Only applicable if + // read_write_partner_id is set in the guaranteed order. ReadAccessInherited bool `json:"readAccessInherited,omitempty"` - - // RemovedAdvertisers: The advertisers to remove as read accessors to - // the guaranteed order. + // RemovedAdvertisers: The advertisers to remove as read accessors to the + // guaranteed order. RemovedAdvertisers googleapi.Int64s `json:"removedAdvertisers,omitempty"` - // ForceSendFields is a list of field names (e.g. "AddedAdvertisers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AddedAdvertisers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AddedAdvertisers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EditGuaranteedOrderReadAccessorsRequest) MarshalJSON() ([]byte, error) { +func (s EditGuaranteedOrderReadAccessorsRequest) MarshalJSON() ([]byte, error) { type NoMethod EditGuaranteedOrderReadAccessorsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EditGuaranteedOrderReadAccessorsResponse struct { - // ReadAccessInherited: Whether all advertisers of read_write_partner_id - // have read access to the guaranteed order. + // ReadAccessInherited: Whether all advertisers of read_write_partner_id have + // read access to the guaranteed order. ReadAccessInherited bool `json:"readAccessInherited,omitempty"` - - // ReadAdvertiserIds: The IDs of advertisers with read access to the - // guaranteed order. + // ReadAdvertiserIds: The IDs of advertisers with read access to the guaranteed + // order. ReadAdvertiserIds googleapi.Int64s `json:"readAdvertiserIds,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ReadAccessInherited") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ReadAccessInherited") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ReadAccessInherited") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ReadAccessInherited") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EditGuaranteedOrderReadAccessorsResponse) MarshalJSON() ([]byte, error) { +func (s EditGuaranteedOrderReadAccessorsResponse) MarshalJSON() ([]byte, error) { type NoMethod EditGuaranteedOrderReadAccessorsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EditInventorySourceReadWriteAccessorsRequest: Request message for // InventorySourceService.EditInventorySourceReadWriteAccessors. type EditInventorySourceReadWriteAccessorsRequest struct { // AdvertisersUpdate: The advertisers to add or remove from the list of - // advertisers that have read/write access to the inventory source. This - // change will remove an existing partner read/write accessor. + // advertisers that have read/write access to the inventory source. This change + // will remove an existing partner read/write accessor. AdvertisersUpdate *EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate `json:"advertisersUpdate,omitempty"` - // AssignPartner: Set the partner context as read/write accessor of the - // inventory source. This will remove all other current read/write - // advertiser accessors. + // inventory source. This will remove all other current read/write advertiser + // accessors. AssignPartner bool `json:"assignPartner,omitempty"` - - // PartnerId: Required. The partner context by which the accessors - // change is being made. + // PartnerId: Required. The partner context by which the accessors change is + // being made. PartnerId int64 `json:"partnerId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "AdvertisersUpdate") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdvertisersUpdate") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertisersUpdate") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdvertisersUpdate") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EditInventorySourceReadWriteAccessorsRequest) MarshalJSON() ([]byte, error) { +func (s EditInventorySourceReadWriteAccessorsRequest) MarshalJSON() ([]byte, error) { type NoMethod EditInventorySourceReadWriteAccessorsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate: Update -// to the list of advertisers with read/write access to the inventory -// source. +// EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate: Update to the +// list of advertisers with read/write access to the inventory source. type EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate struct { // AddedAdvertisers: The advertisers to add. AddedAdvertisers googleapi.Int64s `json:"addedAdvertisers,omitempty"` - // RemovedAdvertisers: The advertisers to remove. RemovedAdvertisers googleapi.Int64s `json:"removedAdvertisers,omitempty"` - // ForceSendFields is a list of field names (e.g. "AddedAdvertisers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AddedAdvertisers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AddedAdvertisers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate) MarshalJSON() ([]byte, error) { +func (s EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate) MarshalJSON() ([]byte, error) { type NoMethod EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// EnvironmentAssignedTargetingOptionDetails: Assigned environment -// targeting option details. This will be populated in the details field -// of an AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_ENVIRONMENT`. +// EnvironmentAssignedTargetingOptionDetails: Assigned environment targeting +// option details. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is `TARGETING_TYPE_ENVIRONMENT`. type EnvironmentAssignedTargetingOptionDetails struct { // Environment: Required. The serving environment. // // Possible values: // "ENVIRONMENT_UNSPECIFIED" - Default value when environment is not - // specified in this version. This enum is a placeholder for default - // value and does not represent a real environment option. - // "ENVIRONMENT_WEB_OPTIMIZED" - Target inventory displayed in - // browsers. This includes inventory that was designed for the device it - // was viewed on, such as mobile websites viewed on a mobile device. - // ENVIRONMENT_WEB_NOT_OPTIMIZED, if targeted, should be deleted prior - // to the deletion of this targeting option. - // "ENVIRONMENT_WEB_NOT_OPTIMIZED" - Target inventory displayed in - // browsers. This includes inventory that was not designed for the - // device but viewed on it, such as websites optimized for desktop but - // viewed on a mobile device. ENVIRONMENT_WEB_OPTIMIZED should be - // targeted prior to the addition of this targeting option. + // specified in this version. This enum is a placeholder for default value and + // does not represent a real environment option. + // "ENVIRONMENT_WEB_OPTIMIZED" - Target inventory displayed in browsers. This + // includes inventory that was designed for the device it was viewed on, such + // as mobile websites viewed on a mobile device. ENVIRONMENT_WEB_NOT_OPTIMIZED, + // if targeted, should be deleted prior to the deletion of this targeting + // option. + // "ENVIRONMENT_WEB_NOT_OPTIMIZED" - Target inventory displayed in browsers. + // This includes inventory that was not designed for the device but viewed on + // it, such as websites optimized for desktop but viewed on a mobile device. + // ENVIRONMENT_WEB_OPTIMIZED should be targeted prior to the addition of this + // targeting option. // "ENVIRONMENT_APP" - Target inventory displayed in apps. Environment string `json:"environment,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_ENVIRONMENT` (e.g., "508010" - // for targeting the `ENVIRONMENT_WEB_OPTIMIZED` option). + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_ENVIRONMENT` (e.g., "508010" for targeting the + // `ENVIRONMENT_WEB_OPTIMIZED` option). TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Environment") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Environment") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Environment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnvironmentAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s EnvironmentAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod EnvironmentAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnvironmentTargetingOptionDetails: Represents a targetable -// environment. This will be populated in the environment_details field -// of a TargetingOption when targeting_type is -// `TARGETING_TYPE_ENVIRONMENT`. +// EnvironmentTargetingOptionDetails: Represents a targetable environment. This +// will be populated in the environment_details field of a TargetingOption when +// targeting_type is `TARGETING_TYPE_ENVIRONMENT`. type EnvironmentTargetingOptionDetails struct { // Environment: Output only. The serving environment. // // Possible values: // "ENVIRONMENT_UNSPECIFIED" - Default value when environment is not - // specified in this version. This enum is a placeholder for default - // value and does not represent a real environment option. - // "ENVIRONMENT_WEB_OPTIMIZED" - Target inventory displayed in - // browsers. This includes inventory that was designed for the device it - // was viewed on, such as mobile websites viewed on a mobile device. - // ENVIRONMENT_WEB_NOT_OPTIMIZED, if targeted, should be deleted prior - // to the deletion of this targeting option. - // "ENVIRONMENT_WEB_NOT_OPTIMIZED" - Target inventory displayed in - // browsers. This includes inventory that was not designed for the - // device but viewed on it, such as websites optimized for desktop but - // viewed on a mobile device. ENVIRONMENT_WEB_OPTIMIZED should be - // targeted prior to the addition of this targeting option. + // specified in this version. This enum is a placeholder for default value and + // does not represent a real environment option. + // "ENVIRONMENT_WEB_OPTIMIZED" - Target inventory displayed in browsers. This + // includes inventory that was designed for the device it was viewed on, such + // as mobile websites viewed on a mobile device. ENVIRONMENT_WEB_NOT_OPTIMIZED, + // if targeted, should be deleted prior to the deletion of this targeting + // option. + // "ENVIRONMENT_WEB_NOT_OPTIMIZED" - Target inventory displayed in browsers. + // This includes inventory that was not designed for the device but viewed on + // it, such as websites optimized for desktop but viewed on a mobile device. + // ENVIRONMENT_WEB_OPTIMIZED should be targeted prior to the addition of this + // targeting option. // "ENVIRONMENT_APP" - Target inventory displayed in apps. Environment string `json:"environment,omitempty"` - // ForceSendFields is a list of field names (e.g. "Environment") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Environment") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Environment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnvironmentTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s EnvironmentTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod EnvironmentTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ExchangeAssignedTargetingOptionDetails: Details for assigned exchange // targeting option. This will be populated in the details field of an -// AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_EXCHANGE`. +// AssignedTargetingOption when targeting_type is `TARGETING_TYPE_EXCHANGE`. type ExchangeAssignedTargetingOptionDetails struct { - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_EXCHANGE`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_EXCHANGE`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TargetingOptionId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetingOptionId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TargetingOptionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TargetingOptionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExchangeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ExchangeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ExchangeAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExchangeConfig: Settings that control which exchanges are enabled for -// a partner. +// ExchangeConfig: Settings that control which exchanges are enabled for a +// partner. type ExchangeConfig struct { - // EnabledExchanges: All enabled exchanges in the partner. Duplicate - // enabled exchanges will be ignored. + // EnabledExchanges: All enabled exchanges in the partner. Duplicate enabled + // exchanges will be ignored. EnabledExchanges []*ExchangeConfigEnabledExchange `json:"enabledExchanges,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnabledExchanges") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnabledExchanges") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EnabledExchanges") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExchangeConfig) MarshalJSON() ([]byte, error) { +func (s ExchangeConfig) MarshalJSON() ([]byte, error) { type NoMethod ExchangeConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ExchangeConfigEnabledExchange: An enabled exchange in the partner. @@ -7557,8 +6194,8 @@ type ExchangeConfigEnabledExchange struct { // Exchange: The enabled exchange. // // Possible values: - // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in - // this version. + // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in this + // version. // "EXCHANGE_GOOGLE_AD_MANAGER" - Google Ad Manager. // "EXCHANGE_APPNEXUS" - AppNexus. // "EXCHANGE_BRIGHTROLL" - BrightRoll Exchange for Video from Yahoo!. @@ -7568,8 +6205,8 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_ADSMOGO" - AdsMogo. // "EXCHANGE_ADSWIZZ" - AdsWizz. // "EXCHANGE_BIDSWITCH" - BidSwitch. - // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display - // from Yahoo!. + // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display from + // Yahoo!. // "EXCHANGE_CADREON" - Cadreon. // "EXCHANGE_DAILYMOTION" - Dailymotion. // "EXCHANGE_FIVE" - Five. @@ -7635,41 +6272,30 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_RESET_DIGITAL" - Reset Digital. // "EXCHANGE_HIVESTACK" - Hivestack. Exchange string `json:"exchange,omitempty"` - - // GoogleAdManagerAgencyId: Output only. Agency ID of Google Ad Manager. - // The field is only relevant when Google Ad Manager is the enabled - // exchange. + // GoogleAdManagerAgencyId: Output only. Agency ID of Google Ad Manager. The + // field is only relevant when Google Ad Manager is the enabled exchange. GoogleAdManagerAgencyId string `json:"googleAdManagerAgencyId,omitempty"` - - // GoogleAdManagerBuyerNetworkId: Output only. Network ID of Google Ad - // Manager. The field is only relevant when Google Ad Manager is the - // enabled exchange. + // GoogleAdManagerBuyerNetworkId: Output only. Network ID of Google Ad Manager. + // The field is only relevant when Google Ad Manager is the enabled exchange. GoogleAdManagerBuyerNetworkId string `json:"googleAdManagerBuyerNetworkId,omitempty"` - // SeatId: Output only. Seat ID of the enabled exchange. SeatId string `json:"seatId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Exchange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Exchange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Exchange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExchangeConfigEnabledExchange) MarshalJSON() ([]byte, error) { +func (s ExchangeConfigEnabledExchange) MarshalJSON() ([]byte, error) { type NoMethod ExchangeConfigEnabledExchange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ExchangeReviewStatus: Exchange review status for the creative. @@ -7677,8 +6303,8 @@ type ExchangeReviewStatus struct { // Exchange: The exchange reviewing the creative. // // Possible values: - // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in - // this version. + // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in this + // version. // "EXCHANGE_GOOGLE_AD_MANAGER" - Google Ad Manager. // "EXCHANGE_APPNEXUS" - AppNexus. // "EXCHANGE_BRIGHTROLL" - BrightRoll Exchange for Video from Yahoo!. @@ -7688,8 +6314,8 @@ type ExchangeReviewStatus struct { // "EXCHANGE_ADSMOGO" - AdsMogo. // "EXCHANGE_ADSWIZZ" - AdsWizz. // "EXCHANGE_BIDSWITCH" - BidSwitch. - // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display - // from Yahoo!. + // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display from + // Yahoo!. // "EXCHANGE_CADREON" - Cadreon. // "EXCHANGE_DAILYMOTION" - Dailymotion. // "EXCHANGE_FIVE" - Five. @@ -7755,49 +6381,42 @@ type ExchangeReviewStatus struct { // "EXCHANGE_RESET_DIGITAL" - Reset Digital. // "EXCHANGE_HIVESTACK" - Hivestack. Exchange string `json:"exchange,omitempty"` - // Status: Status of the exchange review. // // Possible values: - // "REVIEW_STATUS_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "REVIEW_STATUS_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. // "REVIEW_STATUS_APPROVED" - The creative is approved. // "REVIEW_STATUS_REJECTED" - The creative is rejected. // "REVIEW_STATUS_PENDING" - The creative is pending review. Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "Exchange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Exchange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Exchange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExchangeReviewStatus) MarshalJSON() ([]byte, error) { +func (s ExchangeReviewStatus) MarshalJSON() ([]byte, error) { type NoMethod ExchangeReviewStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExchangeTargetingOptionDetails: Represents a targetable exchange. -// This will be populated in the exchange_details field of a -// TargetingOption when targeting_type is `TARGETING_TYPE_EXCHANGE`. +// ExchangeTargetingOptionDetails: Represents a targetable exchange. This will +// be populated in the exchange_details field of a TargetingOption when +// targeting_type is `TARGETING_TYPE_EXCHANGE`. type ExchangeTargetingOptionDetails struct { // Exchange: Output only. The type of exchange. // // Possible values: - // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in - // this version. + // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in this + // version. // "EXCHANGE_GOOGLE_AD_MANAGER" - Google Ad Manager. // "EXCHANGE_APPNEXUS" - AppNexus. // "EXCHANGE_BRIGHTROLL" - BrightRoll Exchange for Video from Yahoo!. @@ -7807,8 +6426,8 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_ADSMOGO" - AdsMogo. // "EXCHANGE_ADSWIZZ" - AdsWizz. // "EXCHANGE_BIDSWITCH" - BidSwitch. - // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display - // from Yahoo!. + // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display from + // Yahoo!. // "EXCHANGE_CADREON" - Cadreon. // "EXCHANGE_DAILYMOTION" - Dailymotion. // "EXCHANGE_FIVE" - Five. @@ -7874,101 +6493,82 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_RESET_DIGITAL" - Reset Digital. // "EXCHANGE_HIVESTACK" - Hivestack. Exchange string `json:"exchange,omitempty"` - // ForceSendFields is a list of field names (e.g. "Exchange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Exchange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Exchange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExchangeTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ExchangeTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ExchangeTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ExitEvent: Exit event of the creative. type ExitEvent struct { - // Name: The name of the click tag of the exit event. The name must be - // unique within one creative. Leave it empty or unset for creatives - // containing image assets only. + // Name: The name of the click tag of the exit event. The name must be unique + // within one creative. Leave it empty or unset for creatives containing image + // assets only. Name string `json:"name,omitempty"` - - // ReportingName: The name used to identify this event in reports. Leave - // it empty or unset for creatives containing image assets only. + // ReportingName: The name used to identify this event in reports. Leave it + // empty or unset for creatives containing image assets only. ReportingName string `json:"reportingName,omitempty"` - // Type: Required. The type of the exit event. // // Possible values: - // "EXIT_EVENT_TYPE_UNSPECIFIED" - Exit event type is not specified or - // is unknown in this version. + // "EXIT_EVENT_TYPE_UNSPECIFIED" - Exit event type is not specified or is + // unknown in this version. // "EXIT_EVENT_TYPE_DEFAULT" - The exit event is the default one. - // "EXIT_EVENT_TYPE_BACKUP" - The exit event is a backup exit event. - // There could be multiple backup exit events in a creative. + // "EXIT_EVENT_TYPE_BACKUP" - The exit event is a backup exit event. There + // could be multiple backup exit events in a creative. Type string `json:"type,omitempty"` - - // Url: Required. The click through URL of the exit event. This is - // required when type is: * `EXIT_EVENT_TYPE_DEFAULT` * - // `EXIT_EVENT_TYPE_BACKUP` + // Url: Required. The click through URL of the exit event. This is required + // when type is: * `EXIT_EVENT_TYPE_DEFAULT` * `EXIT_EVENT_TYPE_BACKUP` Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExitEvent) MarshalJSON() ([]byte, error) { +func (s ExitEvent) MarshalJSON() ([]byte, error) { type NoMethod ExitEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FirstAndThirdPartyAudience: Describes a first or third party audience -// list used for targeting. First party audiences are created via usage -// of client data. Third party audiences are provided by Third Party -// data providers and can only be licensed to customers. +// FirstAndThirdPartyAudience: Describes a first or third party audience list +// used for targeting. First party audiences are created via usage of client +// data. Third party audiences are provided by Third Party data providers and +// can only be licensed to customers. type FirstAndThirdPartyAudience struct { - // ActiveDisplayAudienceSize: Output only. The estimated audience size - // for the Display network in the past month. If the size is less than - // 1000, the number will be hidden and 0 will be returned due to privacy - // reasons. Otherwise, the number will be rounded off to two significant - // digits. Only returned in GET request. + // ActiveDisplayAudienceSize: Output only. The estimated audience size for the + // Display network in the past month. If the size is less than 1000, the number + // will be hidden and 0 will be returned due to privacy reasons. Otherwise, the + // number will be rounded off to two significant digits. Only returned in GET + // request. ActiveDisplayAudienceSize int64 `json:"activeDisplayAudienceSize,omitempty,string"` - - // AppId: The app_id matches with the type of the mobile_device_ids - // being uploaded. Only applicable to audience_type - // `CUSTOMER_MATCH_DEVICE_ID` + // AppId: The app_id matches with the type of the mobile_device_ids being + // uploaded. Only applicable to audience_type `CUSTOMER_MATCH_DEVICE_ID` AppId string `json:"appId,omitempty"` - // AudienceSource: Output only. The source of the audience. // // Possible values: - // "AUDIENCE_SOURCE_UNSPECIFIED" - Default value when audience source - // is not specified or is unknown. + // "AUDIENCE_SOURCE_UNSPECIFIED" - Default value when audience source is not + // specified or is unknown. // "DISPLAY_VIDEO_360" - Originated from Display & Video 360. // "CAMPAIGN_MANAGER" - Originated from Campaign Manager 360. // "AD_MANAGER" - Originated from Google Ad Manager. @@ -7976,188 +6576,151 @@ type FirstAndThirdPartyAudience struct { // "YOUTUBE" - Originated from Youtube. // "ADS_DATA_HUB" - Originated from Ads Data Hub. AudienceSource string `json:"audienceSource,omitempty"` - // AudienceType: The type of the audience. // // Possible values: - // "AUDIENCE_TYPE_UNSPECIFIED" - Default value when type is not - // specified or is unknown. - // "CUSTOMER_MATCH_CONTACT_INFO" - Audience was generated through - // matching customers to known contact information. - // "CUSTOMER_MATCH_DEVICE_ID" - Audience was generated through - // matching customers to known Mobile device IDs. + // "AUDIENCE_TYPE_UNSPECIFIED" - Default value when type is not specified or + // is unknown. + // "CUSTOMER_MATCH_CONTACT_INFO" - Audience was generated through matching + // customers to known contact information. + // "CUSTOMER_MATCH_DEVICE_ID" - Audience was generated through matching + // customers to known Mobile device IDs. // "CUSTOMER_MATCH_USER_ID" - Audience was generated through matching // customers to known User IDs. // "ACTIVITY_BASED" - Audience was created based on campaign activity. - // "FREQUENCY_CAP" - Audience was created based on excluding the - // number of impressions they were served. - // "TAG_BASED" - Audience was created based on custom variables - // attached to pixel. - // "YOUTUBE_USERS" - Audience was created based on past interactions - // with videos, YouTube ads, or YouTube channel. + // "FREQUENCY_CAP" - Audience was created based on excluding the number of + // impressions they were served. + // "TAG_BASED" - Audience was created based on custom variables attached to + // pixel. + // "YOUTUBE_USERS" - Audience was created based on past interactions with + // videos, YouTube ads, or YouTube channel. // "LICENSED" - Subtype of third party audience type. AudienceType string `json:"audienceType,omitempty"` - - // ContactInfoList: Input only. A list of contact information to define - // the initial audience members. Only applicable to audience_type + // ContactInfoList: Input only. A list of contact information to define the + // initial audience members. Only applicable to audience_type // `CUSTOMER_MATCH_CONTACT_INFO` ContactInfoList *ContactInfoList `json:"contactInfoList,omitempty"` - - // Description: The user-provided description of the audience. Only - // applicable to first party audiences. + // Description: The user-provided description of the audience. Only applicable + // to first party audiences. Description string `json:"description,omitempty"` - // DisplayAudienceSize: Output only. The estimated audience size for the - // Display network. If the size is less than 1000, the number will be - // hidden and 0 will be returned due to privacy reasons. Otherwise, the - // number will be rounded off to two significant digits. Only returned - // in GET request. + // Display network. If the size is less than 1000, the number will be hidden + // and 0 will be returned due to privacy reasons. Otherwise, the number will be + // rounded off to two significant digits. Only returned in GET request. DisplayAudienceSize int64 `json:"displayAudienceSize,omitempty,string"` - - // DisplayDesktopAudienceSize: Output only. The estimated desktop - // audience size in Display network. If the size is less than 1000, the - // number will be hidden and 0 will be returned due to privacy reasons. - // Otherwise, the number will be rounded off to two significant digits. - // Only applicable to first party audiences. Only returned in GET - // request. + // DisplayDesktopAudienceSize: Output only. The estimated desktop audience size + // in Display network. If the size is less than 1000, the number will be hidden + // and 0 will be returned due to privacy reasons. Otherwise, the number will be + // rounded off to two significant digits. Only applicable to first party + // audiences. Only returned in GET request. DisplayDesktopAudienceSize int64 `json:"displayDesktopAudienceSize,omitempty,string"` - - // DisplayMobileAppAudienceSize: Output only. The estimated mobile app - // audience size in Display network. If the size is less than 1000, the - // number will be hidden and 0 will be returned due to privacy reasons. - // Otherwise, the number will be rounded off to two significant digits. - // Only applicable to first party audiences. Only returned in GET - // request. + // DisplayMobileAppAudienceSize: Output only. The estimated mobile app audience + // size in Display network. If the size is less than 1000, the number will be + // hidden and 0 will be returned due to privacy reasons. Otherwise, the number + // will be rounded off to two significant digits. Only applicable to first + // party audiences. Only returned in GET request. DisplayMobileAppAudienceSize int64 `json:"displayMobileAppAudienceSize,omitempty,string"` - - // DisplayMobileWebAudienceSize: Output only. The estimated mobile web - // audience size in Display network. If the size is less than 1000, the - // number will be hidden and 0 will be returned due to privacy reasons. - // Otherwise, the number will be rounded off to two significant digits. - // Only applicable to first party audiences. Only returned in GET - // request. + // DisplayMobileWebAudienceSize: Output only. The estimated mobile web audience + // size in Display network. If the size is less than 1000, the number will be + // hidden and 0 will be returned due to privacy reasons. Otherwise, the number + // will be rounded off to two significant digits. Only applicable to first + // party audiences. Only returned in GET request. DisplayMobileWebAudienceSize int64 `json:"displayMobileWebAudienceSize,omitempty,string"` - // DisplayName: The display name of the first and third party audience. DisplayName string `json:"displayName,omitempty"` - - // FirstAndThirdPartyAudienceId: Output only. The unique ID of the first - // and third party audience. Assigned by the system. + // FirstAndThirdPartyAudienceId: Output only. The unique ID of the first and + // third party audience. Assigned by the system. FirstAndThirdPartyAudienceId int64 `json:"firstAndThirdPartyAudienceId,omitempty,string"` - - // FirstAndThirdPartyAudienceType: Whether the audience is a first or - // third party audience. + // FirstAndThirdPartyAudienceType: Whether the audience is a first or third + // party audience. // // Possible values: - // "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_UNSPECIFIED" - Default value - // when type is not specified or is unknown. - // "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_FIRST_PARTY" - Audience that - // is created via usage of client data. - // "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_THIRD_PARTY" - Audience that - // is provided by Third Party data providers. + // "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_UNSPECIFIED" - Default value when + // type is not specified or is unknown. + // "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_FIRST_PARTY" - Audience that is + // created via usage of client data. + // "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_THIRD_PARTY" - Audience that is + // provided by Third Party data providers. FirstAndThirdPartyAudienceType string `json:"firstAndThirdPartyAudienceType,omitempty"` - // GmailAudienceSize: Output only. The estimated audience size for Gmail - // network. If the size is less than 1000, the number will be hidden and - // 0 will be returned due to privacy reasons. Otherwise, the number will - // be rounded off to two significant digits. Only applicable to first - // party audiences. Only returned in GET request. + // network. If the size is less than 1000, the number will be hidden and 0 will + // be returned due to privacy reasons. Otherwise, the number will be rounded + // off to two significant digits. Only applicable to first party audiences. + // Only returned in GET request. GmailAudienceSize int64 `json:"gmailAudienceSize,omitempty,string"` - - // MembershipDurationDays: The duration in days that an entry remains in - // the audience after the qualifying event. If the audience has no - // expiration, set the value of this field to 10000. Otherwise, the set - // value must be greater than 0 and less than or equal to 540. Only - // applicable to first party audiences. This field is required if one of - // the following audience_type is used: * `CUSTOMER_MATCH_CONTACT_INFO` - // * `CUSTOMER_MATCH_DEVICE_ID` + // MembershipDurationDays: The duration in days that an entry remains in the + // audience after the qualifying event. If the audience has no expiration, set + // the value of this field to 10000. Otherwise, the set value must be greater + // than 0 and less than or equal to 540. Only applicable to first party + // audiences. This field is required if one of the following audience_type is + // used: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` MembershipDurationDays int64 `json:"membershipDurationDays,omitempty,string"` - - // MobileDeviceIdList: Input only. A list of mobile device IDs to define - // the initial audience members. Only applicable to audience_type + // MobileDeviceIdList: Input only. A list of mobile device IDs to define the + // initial audience members. Only applicable to audience_type // `CUSTOMER_MATCH_DEVICE_ID` MobileDeviceIdList *MobileDeviceIdList `json:"mobileDeviceIdList,omitempty"` - - // Name: Output only. The resource name of the first and third party - // audience. + // Name: Output only. The resource name of the first and third party audience. Name string `json:"name,omitempty"` - - // YoutubeAudienceSize: Output only. The estimated audience size for - // YouTube network. If the size is less than 1000, the number will be - // hidden and 0 will be returned due to privacy reasons. Otherwise, the - // number will be rounded off to two significant digits. Only applicable - // to first party audiences. Only returned in GET request. + // YoutubeAudienceSize: Output only. The estimated audience size for YouTube + // network. If the size is less than 1000, the number will be hidden and 0 will + // be returned due to privacy reasons. Otherwise, the number will be rounded + // off to two significant digits. Only applicable to first party audiences. + // Only returned in GET request. YoutubeAudienceSize int64 `json:"youtubeAudienceSize,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "ActiveDisplayAudienceSize") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ActiveDisplayAudienceSize") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ActiveDisplayAudienceSize") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActiveDisplayAudienceSize") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FirstAndThirdPartyAudience) MarshalJSON() ([]byte, error) { +func (s FirstAndThirdPartyAudience) MarshalJSON() ([]byte, error) { type NoMethod FirstAndThirdPartyAudience - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FirstAndThirdPartyAudienceGroup: Details of first and third party -// audience group. All first and third party audience targeting settings -// are logically ‘OR’ of each other. +// FirstAndThirdPartyAudienceGroup: Details of first and third party audience +// group. All first and third party audience targeting settings are logically +// ‘OR’ of each other. type FirstAndThirdPartyAudienceGroup struct { - // Settings: Required. All first and third party audience targeting - // settings in first and third party audience group. Repeated settings - // with same id are not allowed. + // Settings: Required. All first and third party audience targeting settings in + // first and third party audience group. Repeated settings with same id are not + // allowed. Settings []*FirstAndThirdPartyAudienceTargetingSetting `json:"settings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Settings") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Settings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Settings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FirstAndThirdPartyAudienceGroup) MarshalJSON() ([]byte, error) { +func (s FirstAndThirdPartyAudienceGroup) MarshalJSON() ([]byte, error) { type NoMethod FirstAndThirdPartyAudienceGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FirstAndThirdPartyAudienceTargetingSetting: Details of first and -// third party audience targeting setting. +// FirstAndThirdPartyAudienceTargetingSetting: Details of first and third party +// audience targeting setting. type FirstAndThirdPartyAudienceTargetingSetting struct { - // FirstAndThirdPartyAudienceId: Required. First and third party - // audience id of the first and third party audience targeting setting. - // This id is first_and_third_party_audience_id. + // FirstAndThirdPartyAudienceId: Required. First and third party audience id of + // the first and third party audience targeting setting. This id is + // first_and_third_party_audience_id. FirstAndThirdPartyAudienceId int64 `json:"firstAndThirdPartyAudienceId,omitempty,string"` - // Recency: The recency of the first and third party audience targeting // setting. Only applicable to first party audiences, otherwise will be // ignored. For more info, refer to @@ -8196,372 +6759,303 @@ type FirstAndThirdPartyAudienceTargetingSetting struct { // "RECENCY_270_DAYS" - Recency is 270 days. // "RECENCY_365_DAYS" - Recency is 365 days. Recency string `json:"recency,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "FirstAndThirdPartyAudienceId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "FirstAndThirdPartyAudienceId") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "FirstAndThirdPartyAudienceId") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "FirstAndThirdPartyAudienceId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FirstAndThirdPartyAudienceTargetingSetting) MarshalJSON() ([]byte, error) { +func (s FirstAndThirdPartyAudienceTargetingSetting) MarshalJSON() ([]byte, error) { type NoMethod FirstAndThirdPartyAudienceTargetingSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FixedBidStrategy: A strategy that uses a fixed bidding price. type FixedBidStrategy struct { // BidAmountMicros: The fixed bid amount, in micros of the advertiser's - // currency. For insertion order entity, bid_amount_micros should be set - // as 0. For line item entity, bid_amount_micros must be greater than or - // equal to billable unit of the given currency and smaller than or - // equal to the upper limit 1000000000. For example, 1500000 represents - // 1.5 standard units of the currency. + // currency. For insertion order entity, bid_amount_micros should be set as 0. + // For line item entity, bid_amount_micros must be greater than or equal to + // billable unit of the given currency and smaller than or equal to the upper + // limit 1000000000. For example, 1500000 represents 1.5 standard units of the + // currency. BidAmountMicros int64 `json:"bidAmountMicros,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "BidAmountMicros") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BidAmountMicros") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BidAmountMicros") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FixedBidStrategy) MarshalJSON() ([]byte, error) { +func (s FixedBidStrategy) MarshalJSON() ([]byte, error) { type NoMethod FixedBidStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FloodlightGroup: A single Floodlight group. type FloodlightGroup struct { - // ActiveViewConfig: The Active View video viewability metric - // configuration for the Floodlight group. + // ActiveViewConfig: The Active View video viewability metric configuration for + // the Floodlight group. ActiveViewConfig *ActiveViewVideoViewabilityMetricConfig `json:"activeViewConfig,omitempty"` - - // CustomVariables: User-defined custom variables owned by the - // Floodlight group. Use custom Floodlight variables to create reporting - // data that is tailored to your unique business needs. Custom - // Floodlight variables use the keys `U1=`, `U2=`, and so on, and can - // take any values that you choose to pass to them. You can use them to - // track virtually any type of data that you collect about your - // customers, such as the genre of movie that a customer purchases, the - // country to which the item is shipped, and so on. Custom Floodlight - // variables may not be used to pass any data that could be used or + // CustomVariables: User-defined custom variables owned by the Floodlight + // group. Use custom Floodlight variables to create reporting data that is + // tailored to your unique business needs. Custom Floodlight variables use the + // keys `U1=`, `U2=`, and so on, and can take any values that you choose to + // pass to them. You can use them to track virtually any type of data that you + // collect about your customers, such as the genre of movie that a customer + // purchases, the country to which the item is shipped, and so on. Custom + // Floodlight variables may not be used to pass any data that could be used or // recognized as personally identifiable information (PII). Example: - // `custom_variables { fields { "U1": value { number_value: 123.4 }, - // "U2": value { string_value: "MyVariable2" }, "U3": value { - // string_value: "MyVariable3" } } }` Acceptable values for keys are - // "U1" through "U100", inclusive. String values must be less than 64 - // characters long, and cannot contain the following characters: "<>`. + // `custom_variables { fields { "U1": value { number_value: 123.4 }, "U2": + // value { string_value: "MyVariable2" }, "U3": value { string_value: + // "MyVariable3" } } }` Acceptable values for keys are "U1" through "U100", + // inclusive. String values must be less than 64 characters long, and cannot + // contain the following characters: "<>`. CustomVariables googleapi.RawMessage `json:"customVariables,omitempty"` - // DisplayName: Required. The display name of the Floodlight group. DisplayName string `json:"displayName,omitempty"` - - // FloodlightGroupId: Output only. The unique ID of the Floodlight - // group. Assigned by the system. + // FloodlightGroupId: Output only. The unique ID of the Floodlight group. + // Assigned by the system. FloodlightGroupId int64 `json:"floodlightGroupId,omitempty,string"` - - // LookbackWindow: Required. The lookback window for the Floodlight - // group. Both click_days and impression_days are required. Acceptable - // values for both are `0` to `90`, inclusive. + // LookbackWindow: Required. The lookback window for the Floodlight group. Both + // click_days and impression_days are required. Acceptable values for both are + // `0` to `90`, inclusive. LookbackWindow *LookbackWindow `json:"lookbackWindow,omitempty"` - // Name: Output only. The resource name of the Floodlight group. Name string `json:"name,omitempty"` - - // WebTagType: Required. The web tag type enabled for the Floodlight - // group. + // WebTagType: Required. The web tag type enabled for the Floodlight group. // // Possible values: - // "WEB_TAG_TYPE_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "WEB_TAG_TYPE_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. // "WEB_TAG_TYPE_NONE" - No tag type. // "WEB_TAG_TYPE_IMAGE" - Image tag. // "WEB_TAG_TYPE_DYNAMIC" - Dynamic tag. WebTagType string `json:"webTagType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ActiveViewConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveViewConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveViewConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FloodlightGroup) MarshalJSON() ([]byte, error) { +func (s FloodlightGroup) MarshalJSON() ([]byte, error) { type NoMethod FloodlightGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FrequencyCap: Settings that control the number of times a user may be -// shown with the same ad during a given time period. +// FrequencyCap: Settings that control the number of times a user may be shown +// with the same ad during a given time period. type FrequencyCap struct { - // MaxImpressions: The maximum number of times a user may be shown the - // same ad during this period. Must be greater than 0. Required when - // unlimited is `false` and max_views is not set. + // MaxImpressions: The maximum number of times a user may be shown the same ad + // during this period. Must be greater than 0. Required when unlimited is + // `false` and max_views is not set. MaxImpressions int64 `json:"maxImpressions,omitempty"` - - // TimeUnit: The time unit in which the frequency cap will be applied. - // Required when unlimited is `false`. + // TimeUnit: The time unit in which the frequency cap will be applied. Required + // when unlimited is `false`. // // Possible values: - // "TIME_UNIT_UNSPECIFIED" - Time unit value is not specified or is - // unknown in this version. - // "TIME_UNIT_LIFETIME" - The frequency cap will be applied to the - // whole life time of the line item. - // "TIME_UNIT_MONTHS" - The frequency cap will be applied to a number - // of months. - // "TIME_UNIT_WEEKS" - The frequency cap will be applied to a number - // of weeks. - // "TIME_UNIT_DAYS" - The frequency cap will be applied to a number of - // days. - // "TIME_UNIT_HOURS" - The frequency cap will be applied to a number - // of hours. - // "TIME_UNIT_MINUTES" - The frequency cap will be applied to a number - // of minutes. + // "TIME_UNIT_UNSPECIFIED" - Time unit value is not specified or is unknown + // in this version. + // "TIME_UNIT_LIFETIME" - The frequency cap will be applied to the whole life + // time of the line item. + // "TIME_UNIT_MONTHS" - The frequency cap will be applied to a number of + // months. + // "TIME_UNIT_WEEKS" - The frequency cap will be applied to a number of + // weeks. + // "TIME_UNIT_DAYS" - The frequency cap will be applied to a number of days. + // "TIME_UNIT_HOURS" - The frequency cap will be applied to a number of + // hours. + // "TIME_UNIT_MINUTES" - The frequency cap will be applied to a number of + // minutes. TimeUnit string `json:"timeUnit,omitempty"` - - // TimeUnitCount: The number of time_unit the frequency cap will last. - // Required when unlimited is `false`. The following restrictions apply - // based on the value of time_unit: * `TIME_UNIT_LIFETIME` - this field - // is output only and will default to 1 * `TIME_UNIT_MONTHS` - must be - // between 1 and 2 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * - // `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must - // be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59 + // TimeUnitCount: The number of time_unit the frequency cap will last. Required + // when unlimited is `false`. The following restrictions apply based on the + // value of time_unit: * `TIME_UNIT_LIFETIME` - this field is output only and + // will default to 1 * `TIME_UNIT_MONTHS` - must be between 1 and 2 * + // `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be + // between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * + // `TIME_UNIT_MINUTES` - must be between 1 and 59 TimeUnitCount int64 `json:"timeUnitCount,omitempty"` - - // Unlimited: Whether unlimited frequency capping is applied. When this - // field is set to `true`, the remaining frequency cap fields are not - // applicable. + // Unlimited: Whether unlimited frequency capping is applied. When this field + // is set to `true`, the remaining frequency cap fields are not applicable. Unlimited bool `json:"unlimited,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxImpressions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxImpressions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MaxImpressions") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FrequencyCap) MarshalJSON() ([]byte, error) { +func (s FrequencyCap) MarshalJSON() ([]byte, error) { type NoMethod FrequencyCap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GenderAssignedTargetingOptionDetails: Details for assigned gender -// targeting option. This will be populated in the details field of an -// AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_GENDER`. +// GenderAssignedTargetingOptionDetails: Details for assigned gender targeting +// option. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is `TARGETING_TYPE_GENDER`. type GenderAssignedTargetingOptionDetails struct { // Gender: Required. The gender of the audience. // // Possible values: - // "GENDER_UNSPECIFIED" - Default value when gender is not specified - // in this version. This enum is a place holder for default value and - // does not represent a real gender option. + // "GENDER_UNSPECIFIED" - Default value when gender is not specified in this + // version. This enum is a place holder for default value and does not + // represent a real gender option. // "GENDER_MALE" - The audience gender is male. // "GENDER_FEMALE" - The audience gender is female. // "GENDER_UNKNOWN" - The audience gender is unknown. Gender string `json:"gender,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_GENDER`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_GENDER`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Gender") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Gender") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Gender") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GenderAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s GenderAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod GenderAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GenderTargetingOptionDetails: Represents a targetable gender. This -// will be populated in the gender_details field of a TargetingOption -// when targeting_type is `TARGETING_TYPE_GENDER`. +// GenderTargetingOptionDetails: Represents a targetable gender. This will be +// populated in the gender_details field of a TargetingOption when +// targeting_type is `TARGETING_TYPE_GENDER`. type GenderTargetingOptionDetails struct { // Gender: Output only. The gender of an audience. // // Possible values: - // "GENDER_UNSPECIFIED" - Default value when gender is not specified - // in this version. This enum is a place holder for default value and - // does not represent a real gender option. + // "GENDER_UNSPECIFIED" - Default value when gender is not specified in this + // version. This enum is a place holder for default value and does not + // represent a real gender option. // "GENDER_MALE" - The audience gender is male. // "GENDER_FEMALE" - The audience gender is female. // "GENDER_UNKNOWN" - The audience gender is unknown. Gender string `json:"gender,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Gender") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Gender") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Gender") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GenderTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s GenderTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod GenderTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GenerateDefaultLineItemRequest: Request message for // LineItemService.GenerateDefaultLineItem. type GenerateDefaultLineItemRequest struct { - // DisplayName: Required. The display name of the line item. Must be - // UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the line item. Must be UTF-8 + // encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // InsertionOrderId: Required. The unique ID of the insertion order that - // the line item belongs to. + // InsertionOrderId: Required. The unique ID of the insertion order that the + // line item belongs to. InsertionOrderId int64 `json:"insertionOrderId,omitempty,string"` - // LineItemType: Required. The type of the line item. // // Possible values: - // "LINE_ITEM_TYPE_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. Line items of this type and their targeting - // cannot be created or updated using the API. - // "LINE_ITEM_TYPE_DISPLAY_DEFAULT" - Image, HTML5, native, or rich - // media ads. - // "LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL" - Display ads that - // drive installs of an app. - // "LINE_ITEM_TYPE_VIDEO_DEFAULT" - Video ads sold on a CPM basis for - // a variety of environments. - // "LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL" - Video ads that drive + // "LINE_ITEM_TYPE_UNSPECIFIED" - Type value is not specified or is unknown + // in this version. Line items of this type and their targeting cannot be + // created or updated using the API. + // "LINE_ITEM_TYPE_DISPLAY_DEFAULT" - Image, HTML5, native, or rich media + // ads. + // "LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL" - Display ads that drive // installs of an app. - // "LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INVENTORY" - Display ads served - // on mobile app inventory. Line items of this type and their targeting - // cannot be created or updated using the API. - // "LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INVENTORY" - Video ads served on - // mobile app inventory. Line items of this type and their targeting - // cannot be created or updated using the API. - // "LINE_ITEM_TYPE_AUDIO_DEFAULT" - RTB Audio ads sold for a variety - // of environments. - // "LINE_ITEM_TYPE_VIDEO_OVER_THE_TOP" - Over-the-top ads present in - // OTT insertion orders. This type is only applicable to line items with - // an insertion order of insertion_order_type `OVER_THE_TOP`. + // "LINE_ITEM_TYPE_VIDEO_DEFAULT" - Video ads sold on a CPM basis for a + // variety of environments. + // "LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL" - Video ads that drive installs + // of an app. + // "LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INVENTORY" - Display ads served on + // mobile app inventory. Line items of this type and their targeting cannot be + // created or updated using the API. + // "LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INVENTORY" - Video ads served on mobile + // app inventory. Line items of this type and their targeting cannot be created + // or updated using the API. + // "LINE_ITEM_TYPE_AUDIO_DEFAULT" - RTB Audio ads sold for a variety of + // environments. + // "LINE_ITEM_TYPE_VIDEO_OVER_THE_TOP" - Over-the-top ads present in OTT + // insertion orders. This type is only applicable to line items with an + // insertion order of insertion_order_type `OVER_THE_TOP`. // "LINE_ITEM_TYPE_DISPLAY_OUT_OF_HOME" - Display ads served on - // digital-out-of-home inventory. Line items of this type and their - // targeting cannot be created or updated using the API. + // digital-out-of-home inventory. Line items of this type and their targeting + // cannot be created or updated using the API. // "LINE_ITEM_TYPE_VIDEO_OUT_OF_HOME" - Video ads served on - // digital-out-of-home inventory. Line items of this type and their - // targeting cannot be created or updated using the API. + // digital-out-of-home inventory. Line items of this type and their targeting + // cannot be created or updated using the API. LineItemType string `json:"lineItemType,omitempty"` - - // MobileApp: The mobile app promoted by the line item. This is - // applicable only when line_item_type is either - // `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or + // MobileApp: The mobile app promoted by the line item. This is applicable only + // when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or // `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`. MobileApp *MobileApp `json:"mobileApp,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GenerateDefaultLineItemRequest) MarshalJSON() ([]byte, error) { +func (s GenerateDefaultLineItemRequest) MarshalJSON() ([]byte, error) { type NoMethod GenerateDefaultLineItemRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GeoRegionAssignedTargetingOptionDetails: Details for assigned -// geographic region targeting option. This will be populated in the -// details field of an AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_GEO_REGION`. +// GeoRegionAssignedTargetingOptionDetails: Details for assigned geographic +// region targeting option. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is `TARGETING_TYPE_GEO_REGION`. type GeoRegionAssignedTargetingOptionDetails struct { - // DisplayName: Output only. The display name of the geographic region - // (e.g., "Ontario, Canada"). + // DisplayName: Output only. The display name of the geographic region (e.g., + // "Ontario, Canada"). DisplayName string `json:"displayName,omitempty"` - // GeoRegionType: Output only. The type of geographic region targeting. // // Possible values: @@ -8572,111 +7066,89 @@ type GeoRegionAssignedTargetingOptionDetails struct { // "GEO_REGION_TYPE_TERRITORY" - The geographic region is a territory. // "GEO_REGION_TYPE_PROVINCE" - The geographic region is a province. // "GEO_REGION_TYPE_STATE" - The geographic region is a state. - // "GEO_REGION_TYPE_PREFECTURE" - The geographic region is a - // prefecture. - // "GEO_REGION_TYPE_GOVERNORATE" - The geographic region is a - // governorate. + // "GEO_REGION_TYPE_PREFECTURE" - The geographic region is a prefecture. + // "GEO_REGION_TYPE_GOVERNORATE" - The geographic region is a governorate. // "GEO_REGION_TYPE_CANTON" - The geographic region is a canton. - // "GEO_REGION_TYPE_UNION_TERRITORY" - The geographic region is a - // union territory. - // "GEO_REGION_TYPE_AUTONOMOUS_COMMUNITY" - The geographic region is - // an autonomous community. - // "GEO_REGION_TYPE_DMA_REGION" - The geographic region is a - // designated market area (DMA) region. + // "GEO_REGION_TYPE_UNION_TERRITORY" - The geographic region is a union + // territory. + // "GEO_REGION_TYPE_AUTONOMOUS_COMMUNITY" - The geographic region is an + // autonomous community. + // "GEO_REGION_TYPE_DMA_REGION" - The geographic region is a designated + // market area (DMA) region. // "GEO_REGION_TYPE_METRO" - The geographic region type is metro. - // "GEO_REGION_TYPE_CONGRESSIONAL_DISTRICT" - The geographic region is - // a congressional district. + // "GEO_REGION_TYPE_CONGRESSIONAL_DISTRICT" - The geographic region is a + // congressional district. // "GEO_REGION_TYPE_COUNTY" - The geographic region is a county. - // "GEO_REGION_TYPE_MUNICIPALITY" - The geographic region is a - // municipality. + // "GEO_REGION_TYPE_MUNICIPALITY" - The geographic region is a municipality. // "GEO_REGION_TYPE_CITY" - The geographic region is a city. - // "GEO_REGION_TYPE_POSTAL_CODE" - The geographic region targeting - // type is postal code. - // "GEO_REGION_TYPE_DEPARTMENT" - The geographic region targeting type - // is department. + // "GEO_REGION_TYPE_POSTAL_CODE" - The geographic region targeting type is + // postal code. + // "GEO_REGION_TYPE_DEPARTMENT" - The geographic region targeting type is + // department. // "GEO_REGION_TYPE_AIRPORT" - The geographic region is an airport. // "GEO_REGION_TYPE_TV_REGION" - The geographic region is a TV region. // "GEO_REGION_TYPE_OKRUG" - The geographic region is an okrug. // "GEO_REGION_TYPE_BOROUGH" - The geographic region is a borough. - // "GEO_REGION_TYPE_CITY_REGION" - The geographic region is a city - // region. + // "GEO_REGION_TYPE_CITY_REGION" - The geographic region is a city region. // "GEO_REGION_TYPE_ARRONDISSEMENT" - The geographic region is an // arrondissement. - // "GEO_REGION_TYPE_NEIGHBORHOOD" - The geographic region is a - // neighborhood. - // "GEO_REGION_TYPE_UNIVERSITY" - The geographic region is a - // university. + // "GEO_REGION_TYPE_NEIGHBORHOOD" - The geographic region is a neighborhood. + // "GEO_REGION_TYPE_UNIVERSITY" - The geographic region is a university. // "GEO_REGION_TYPE_DISTRICT" - The geographic region is a district. GeoRegionType string `json:"geoRegionType,omitempty"` - // Negative: Indicates if this option is being negatively targeted. Negative bool `json:"negative,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_GEO_REGION`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_GEO_REGION`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoRegionAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s GeoRegionAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod GeoRegionAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GeoRegionSearchTerms: Search terms for geo region targeting options. type GeoRegionSearchTerms struct { - // GeoRegionQuery: The search query for the desired geo region. The - // query can be a prefix, e.g. "New Yor", "Seattle", "USA", etc. + // GeoRegionQuery: The search query for the desired geo region. The query can + // be a prefix, e.g. "New Yor", "Seattle", "USA", etc. GeoRegionQuery string `json:"geoRegionQuery,omitempty"` - // ForceSendFields is a list of field names (e.g. "GeoRegionQuery") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GeoRegionQuery") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GeoRegionQuery") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoRegionSearchTerms) MarshalJSON() ([]byte, error) { +func (s GeoRegionSearchTerms) MarshalJSON() ([]byte, error) { type NoMethod GeoRegionSearchTerms - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GeoRegionTargetingOptionDetails: Represents a targetable geographic -// region. This will be populated in the geo_region_details field when -// targeting_type is `TARGETING_TYPE_GEO_REGION`. +// GeoRegionTargetingOptionDetails: Represents a targetable geographic region. +// This will be populated in the geo_region_details field when targeting_type +// is `TARGETING_TYPE_GEO_REGION`. type GeoRegionTargetingOptionDetails struct { - // DisplayName: Output only. The display name of the geographic region - // (e.g., "Ontario, Canada"). + // DisplayName: Output only. The display name of the geographic region (e.g., + // "Ontario, Canada"). DisplayName string `json:"displayName,omitempty"` - // GeoRegionType: Output only. The type of geographic region targeting. // // Possible values: @@ -8687,64 +7159,52 @@ type GeoRegionTargetingOptionDetails struct { // "GEO_REGION_TYPE_TERRITORY" - The geographic region is a territory. // "GEO_REGION_TYPE_PROVINCE" - The geographic region is a province. // "GEO_REGION_TYPE_STATE" - The geographic region is a state. - // "GEO_REGION_TYPE_PREFECTURE" - The geographic region is a - // prefecture. - // "GEO_REGION_TYPE_GOVERNORATE" - The geographic region is a - // governorate. + // "GEO_REGION_TYPE_PREFECTURE" - The geographic region is a prefecture. + // "GEO_REGION_TYPE_GOVERNORATE" - The geographic region is a governorate. // "GEO_REGION_TYPE_CANTON" - The geographic region is a canton. - // "GEO_REGION_TYPE_UNION_TERRITORY" - The geographic region is a - // union territory. - // "GEO_REGION_TYPE_AUTONOMOUS_COMMUNITY" - The geographic region is - // an autonomous community. - // "GEO_REGION_TYPE_DMA_REGION" - The geographic region is a - // designated market area (DMA) region. + // "GEO_REGION_TYPE_UNION_TERRITORY" - The geographic region is a union + // territory. + // "GEO_REGION_TYPE_AUTONOMOUS_COMMUNITY" - The geographic region is an + // autonomous community. + // "GEO_REGION_TYPE_DMA_REGION" - The geographic region is a designated + // market area (DMA) region. // "GEO_REGION_TYPE_METRO" - The geographic region type is metro. - // "GEO_REGION_TYPE_CONGRESSIONAL_DISTRICT" - The geographic region is - // a congressional district. + // "GEO_REGION_TYPE_CONGRESSIONAL_DISTRICT" - The geographic region is a + // congressional district. // "GEO_REGION_TYPE_COUNTY" - The geographic region is a county. - // "GEO_REGION_TYPE_MUNICIPALITY" - The geographic region is a - // municipality. + // "GEO_REGION_TYPE_MUNICIPALITY" - The geographic region is a municipality. // "GEO_REGION_TYPE_CITY" - The geographic region is a city. - // "GEO_REGION_TYPE_POSTAL_CODE" - The geographic region targeting - // type is postal code. - // "GEO_REGION_TYPE_DEPARTMENT" - The geographic region targeting type - // is department. + // "GEO_REGION_TYPE_POSTAL_CODE" - The geographic region targeting type is + // postal code. + // "GEO_REGION_TYPE_DEPARTMENT" - The geographic region targeting type is + // department. // "GEO_REGION_TYPE_AIRPORT" - The geographic region is an airport. // "GEO_REGION_TYPE_TV_REGION" - The geographic region is a TV region. // "GEO_REGION_TYPE_OKRUG" - The geographic region is an okrug. // "GEO_REGION_TYPE_BOROUGH" - The geographic region is a borough. - // "GEO_REGION_TYPE_CITY_REGION" - The geographic region is a city - // region. + // "GEO_REGION_TYPE_CITY_REGION" - The geographic region is a city region. // "GEO_REGION_TYPE_ARRONDISSEMENT" - The geographic region is an // arrondissement. - // "GEO_REGION_TYPE_NEIGHBORHOOD" - The geographic region is a - // neighborhood. - // "GEO_REGION_TYPE_UNIVERSITY" - The geographic region is a - // university. + // "GEO_REGION_TYPE_NEIGHBORHOOD" - The geographic region is a neighborhood. + // "GEO_REGION_TYPE_UNIVERSITY" - The geographic region is a university. // "GEO_REGION_TYPE_DISTRICT" - The geographic region is a district. GeoRegionType string `json:"geoRegionType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoRegionTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s GeoRegionTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod GeoRegionTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleAudience: Describes a Google audience resource. Includes Google @@ -8752,11 +7212,9 @@ func (s *GeoRegionTargetingOptionDetails) MarshalJSON() ([]byte, error) { type GoogleAudience struct { // DisplayName: Output only. The display name of the Google audience. . DisplayName string `json:"displayName,omitempty"` - // GoogleAudienceId: Output only. The unique ID of the Google audience. // Assigned by the system. GoogleAudienceId int64 `json:"googleAudienceId,omitempty,string"` - // GoogleAudienceType: Output only. The type of Google audience. . // // Possible values: @@ -8766,72 +7224,57 @@ type GoogleAudience struct { // "GOOGLE_AUDIENCE_TYPE_IN_MARKET" - In-Market type Google audience. // "GOOGLE_AUDIENCE_TYPE_INSTALLED_APPS" - Installed-Apps type Google // audience. - // "GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES" - New-Mobile-Devices type - // Google audience. - // "GOOGLE_AUDIENCE_TYPE_LIFE_EVENT" - Life-Event type Google + // "GOOGLE_AUDIENCE_TYPE_NEW_MOBILE_DEVICES" - New-Mobile-Devices type Google // audience. - // "GOOGLE_AUDIENCE_TYPE_EXTENDED_DEMOGRAPHIC" - Extended-Demographic - // type Google audience. + // "GOOGLE_AUDIENCE_TYPE_LIFE_EVENT" - Life-Event type Google audience. + // "GOOGLE_AUDIENCE_TYPE_EXTENDED_DEMOGRAPHIC" - Extended-Demographic type + // Google audience. GoogleAudienceType string `json:"googleAudienceType,omitempty"` - // Name: Output only. The resource name of the google audience. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleAudience) MarshalJSON() ([]byte, error) { +func (s GoogleAudience) MarshalJSON() ([]byte, error) { type NoMethod GoogleAudience - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleAudienceGroup: Details of Google audience group. All Google -// audience targeting settings are logically ‘OR’ of each other. +// GoogleAudienceGroup: Details of Google audience group. All Google audience +// targeting settings are logically ‘OR’ of each other. type GoogleAudienceGroup struct { // Settings: Required. All Google audience targeting settings in Google // audience group. Repeated settings with same id will be ignored. Settings []*GoogleAudienceTargetingSetting `json:"settings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Settings") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Settings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Settings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleAudienceGroup) MarshalJSON() ([]byte, error) { +func (s GoogleAudienceGroup) MarshalJSON() ([]byte, error) { type NoMethod GoogleAudienceGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleAudienceTargetingSetting: Details of Google audience targeting @@ -8840,29 +7283,22 @@ type GoogleAudienceTargetingSetting struct { // GoogleAudienceId: Required. Google audience id of the Google audience // targeting setting. This id is google_audience_id. GoogleAudienceId int64 `json:"googleAudienceId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "GoogleAudienceId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GoogleAudienceId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GoogleAudienceId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleAudienceTargetingSetting) MarshalJSON() ([]byte, error) { +func (s GoogleAudienceTargetingSetting) MarshalJSON() ([]byte, error) { type NoMethod GoogleAudienceTargetingSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleBytestreamMedia: Media resource. @@ -8870,60 +7306,48 @@ type GoogleBytestreamMedia struct { // ResourceName: Name of the media resource. ResourceName string `json:"resourceName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { +func (s GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { type NoMethod GoogleBytestreamMedia - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GuaranteedOrder: A guaranteed order. Guaranteed orders are parent -// entity of guaranteed inventory sources. When creating a guaranteed -// inventory source, a guaranteed order ID must be assigned to the -// inventory source. +// GuaranteedOrder: A guaranteed order. Guaranteed orders are parent entity of +// guaranteed inventory sources. When creating a guaranteed inventory source, a +// guaranteed order ID must be assigned to the inventory source. type GuaranteedOrder struct { // DefaultAdvertiserId: Output only. The ID of default advertiser of the // guaranteed order. The default advertiser is either the - // read_write_advertiser_id or, if that is not set, the first advertiser - // listed in read_advertiser_ids. Otherwise, there is no default - // advertiser. + // read_write_advertiser_id or, if that is not set, the first advertiser listed + // in read_advertiser_ids. Otherwise, there is no default advertiser. DefaultAdvertiserId int64 `json:"defaultAdvertiserId,omitempty,string"` - - // DefaultCampaignId: The ID of the default campaign that is assigned to - // the guaranteed order. The default campaign must belong to the default + // DefaultCampaignId: The ID of the default campaign that is assigned to the + // guaranteed order. The default campaign must belong to the default // advertiser. DefaultCampaignId int64 `json:"defaultCampaignId,omitempty,string"` - - // DisplayName: Required. The display name of the guaranteed order. Must - // be UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the guaranteed order. Must be + // UTF-8 encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // Exchange: Required. Immutable. The exchange where the guaranteed - // order originated. + // Exchange: Required. Immutable. The exchange where the guaranteed order + // originated. // // Possible values: - // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in - // this version. + // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in this + // version. // "EXCHANGE_GOOGLE_AD_MANAGER" - Google Ad Manager. // "EXCHANGE_APPNEXUS" - AppNexus. // "EXCHANGE_BRIGHTROLL" - BrightRoll Exchange for Video from Yahoo!. @@ -8933,8 +7357,8 @@ type GuaranteedOrder struct { // "EXCHANGE_ADSMOGO" - AdsMogo. // "EXCHANGE_ADSWIZZ" - AdsWizz. // "EXCHANGE_BIDSWITCH" - BidSwitch. - // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display - // from Yahoo!. + // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display from + // Yahoo!. // "EXCHANGE_CADREON" - Cadreon. // "EXCHANGE_DAILYMOTION" - Dailymotion. // "EXCHANGE_FIVE" - Five. @@ -9000,671 +7424,543 @@ type GuaranteedOrder struct { // "EXCHANGE_RESET_DIGITAL" - Reset Digital. // "EXCHANGE_HIVESTACK" - Hivestack. Exchange string `json:"exchange,omitempty"` - - // GuaranteedOrderId: Output only. The unique identifier of the - // guaranteed order. The guaranteed order IDs have the format + // GuaranteedOrderId: Output only. The unique identifier of the guaranteed + // order. The guaranteed order IDs have the format // `{exchange}-{legacy_guaranteed_order_id}`. GuaranteedOrderId string `json:"guaranteedOrderId,omitempty"` - - // LegacyGuaranteedOrderId: Output only. The legacy ID of the guaranteed - // order. Assigned by the original exchange. The legacy ID is unique - // within one exchange, but is not guaranteed to be unique across all - // guaranteed orders. This ID is used in SDF and UI. + // LegacyGuaranteedOrderId: Output only. The legacy ID of the guaranteed order. + // Assigned by the original exchange. The legacy ID is unique within one + // exchange, but is not guaranteed to be unique across all guaranteed orders. + // This ID is used in SDF and UI. LegacyGuaranteedOrderId string `json:"legacyGuaranteedOrderId,omitempty"` - // Name: Output only. The resource name of the guaranteed order. Name string `json:"name,omitempty"` - - // PublisherName: Required. The publisher name of the guaranteed order. - // Must be UTF-8 encoded with a maximum size of 240 bytes. + // PublisherName: Required. The publisher name of the guaranteed order. Must be + // UTF-8 encoded with a maximum size of 240 bytes. PublisherName string `json:"publisherName,omitempty"` - - // ReadAccessInherited: Whether all advertisers of read_write_partner_id - // have read access to the guaranteed order. Only applicable if + // ReadAccessInherited: Whether all advertisers of read_write_partner_id have + // read access to the guaranteed order. Only applicable if // read_write_partner_id is set. If True, overrides read_advertiser_ids. ReadAccessInherited bool `json:"readAccessInherited,omitempty"` - - // ReadAdvertiserIds: The IDs of advertisers with read access to the - // guaranteed order. This field must not include the advertiser assigned - // to read_write_advertiser_id if it is set. All advertisers in this - // field must belong to read_write_partner_id or the same partner as + // ReadAdvertiserIds: The IDs of advertisers with read access to the guaranteed + // order. This field must not include the advertiser assigned to + // read_write_advertiser_id if it is set. All advertisers in this field must + // belong to read_write_partner_id or the same partner as // read_write_advertiser_id. ReadAdvertiserIds googleapi.Int64s `json:"readAdvertiserIds,omitempty"` - // ReadWriteAdvertiserId: The advertiser with read/write access to the - // guaranteed order. This is also the default advertiser of the - // guaranteed order. + // guaranteed order. This is also the default advertiser of the guaranteed + // order. ReadWriteAdvertiserId int64 `json:"readWriteAdvertiserId,omitempty,string"` - - // ReadWritePartnerId: The partner with read/write access to the - // guaranteed order. + // ReadWritePartnerId: The partner with read/write access to the guaranteed + // order. ReadWritePartnerId int64 `json:"readWritePartnerId,omitempty,string"` - // Status: The status settings of the guaranteed order. Status *GuaranteedOrderStatus `json:"status,omitempty"` - - // UpdateTime: Output only. The timestamp when the guaranteed order was - // last updated. Assigned by the system. + // UpdateTime: Output only. The timestamp when the guaranteed order was last + // updated. Assigned by the system. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DefaultAdvertiserId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DefaultAdvertiserId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultAdvertiserId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DefaultAdvertiserId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GuaranteedOrder) MarshalJSON() ([]byte, error) { +func (s GuaranteedOrder) MarshalJSON() ([]byte, error) { type NoMethod GuaranteedOrder - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GuaranteedOrderStatus: The status settings of the guaranteed order. type GuaranteedOrderStatus struct { - // ConfigStatus: Output only. The configuration status of the guaranteed - // order. Acceptable values are `PENDING` and `COMPLETED`. A guaranteed - // order must be configured (fill in the required fields, choose - // creatives, and select a default campaign) before it can serve. - // Currently the configuration action can only be performed via UI. + // ConfigStatus: Output only. The configuration status of the guaranteed order. + // Acceptable values are `PENDING` and `COMPLETED`. A guaranteed order must be + // configured (fill in the required fields, choose creatives, and select a + // default campaign) before it can serve. Currently the configuration action + // can only be performed via UI. // // Possible values: - // "GUARANTEED_ORDER_CONFIG_STATUS_UNSPECIFIED" - The approval status - // is not specified or is unknown in this version. - // "PENDING" - The beginning state of a guaranteed order. The - // guaranteed order in this state needs to be configured before it can - // serve. - // "COMPLETED" - The state after the buyer configures a guaranteed - // order. + // "GUARANTEED_ORDER_CONFIG_STATUS_UNSPECIFIED" - The approval status is not + // specified or is unknown in this version. + // "PENDING" - The beginning state of a guaranteed order. The guaranteed + // order in this state needs to be configured before it can serve. + // "COMPLETED" - The state after the buyer configures a guaranteed order. ConfigStatus string `json:"configStatus,omitempty"` - - // EntityPauseReason: The user-provided reason for pausing this - // guaranteed order. Must be UTF-8 encoded with a maximum length of 100 - // bytes. Only applicable when entity_status is set to - // `ENTITY_STATUS_PAUSED`. + // EntityPauseReason: The user-provided reason for pausing this guaranteed + // order. Must be UTF-8 encoded with a maximum length of 100 bytes. Only + // applicable when entity_status is set to `ENTITY_STATUS_PAUSED`. EntityPauseReason string `json:"entityPauseReason,omitempty"` - - // EntityStatus: Whether or not the guaranteed order is servable. - // Acceptable values are `ENTITY_STATUS_ACTIVE`, - // `ENTITY_STATUS_ARCHIVED`, and `ENTITY_STATUS_PAUSED`. Default value - // is `ENTITY_STATUS_ACTIVE`. + // EntityStatus: Whether or not the guaranteed order is servable. Acceptable + // values are `ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_ARCHIVED`, and + // `ENTITY_STATUS_PAUSED`. Default value is `ENTITY_STATUS_ACTIVE`. // // Possible values: - // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not - // specified or is unknown in this version. - // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend - // budget. - // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and - // budget spending are disabled. An entity can be deleted after - // archived. Deleted entities cannot be retrieved. - // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and - // budget spending are disabled. - // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for - // the entity. - // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled - // for deletion. + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not specified + // or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and budget + // spending are disabled. An entity can be deleted after archived. Deleted + // entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and budget + // spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for the + // entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled for + // deletion. EntityStatus string `json:"entityStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfigStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConfigStatus") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConfigStatus") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GuaranteedOrderStatus) MarshalJSON() ([]byte, error) { +func (s GuaranteedOrderStatus) MarshalJSON() ([]byte, error) { type NoMethod GuaranteedOrderStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // HouseholdIncomeAssignedTargetingOptionDetails: Details for assigned -// household income targeting option. This will be populated in the -// details field of an AssignedTargetingOption when targeting_type is +// household income targeting option. This will be populated in the details +// field of an AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_HOUSEHOLD_INCOME`. type HouseholdIncomeAssignedTargetingOptionDetails struct { // HouseholdIncome: Required. The household income of the audience. // // Possible values: - // "HOUSEHOLD_INCOME_UNSPECIFIED" - Default value when household - // income is not specified in this version. This enum is a placeholder - // for default value and does not represent a real household income - // option. - // "HOUSEHOLD_INCOME_UNKNOWN" - The household income of the audience - // is unknown. - // "HOUSEHOLD_INCOME_LOWER_50_PERCENT" - The audience is in the lower - // 50% of U.S. household incomes. - // "HOUSEHOLD_INCOME_TOP_41_TO_50_PERCENT" - The audience is in the - // top 41-50% of U.S. household incomes. - // "HOUSEHOLD_INCOME_TOP_31_TO_40_PERCENT" - The audience is in the - // top 31-40% of U.S. household incomes. - // "HOUSEHOLD_INCOME_TOP_21_TO_30_PERCENT" - The audience is in the - // top 21-30% of U.S. household incomes. - // "HOUSEHOLD_INCOME_TOP_11_TO_20_PERCENT" - The audience is in the - // top 11-20% of U.S. household incomes. - // "HOUSEHOLD_INCOME_TOP_10_PERCENT" - The audience is in the top 10% - // of U.S. household incomes. + // "HOUSEHOLD_INCOME_UNSPECIFIED" - Default value when household income is + // not specified in this version. This enum is a placeholder for default value + // and does not represent a real household income option. + // "HOUSEHOLD_INCOME_UNKNOWN" - The household income of the audience is + // unknown. + // "HOUSEHOLD_INCOME_LOWER_50_PERCENT" - The audience is in the lower 50% of + // U.S. household incomes. + // "HOUSEHOLD_INCOME_TOP_41_TO_50_PERCENT" - The audience is in the top + // 41-50% of U.S. household incomes. + // "HOUSEHOLD_INCOME_TOP_31_TO_40_PERCENT" - The audience is in the top + // 31-40% of U.S. household incomes. + // "HOUSEHOLD_INCOME_TOP_21_TO_30_PERCENT" - The audience is in the top + // 21-30% of U.S. household incomes. + // "HOUSEHOLD_INCOME_TOP_11_TO_20_PERCENT" - The audience is in the top + // 11-20% of U.S. household incomes. + // "HOUSEHOLD_INCOME_TOP_10_PERCENT" - The audience is in the top 10% of U.S. + // household incomes. HouseholdIncome string `json:"householdIncome,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_HOUSEHOLD_INCOME`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_HOUSEHOLD_INCOME`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "HouseholdIncome") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HouseholdIncome") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "HouseholdIncome") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HouseholdIncomeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s HouseholdIncomeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod HouseholdIncomeAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HouseholdIncomeTargetingOptionDetails: Represents a targetable -// household income. This will be populated in the -// household_income_details field of a TargetingOption when -// targeting_type is `TARGETING_TYPE_HOUSEHOLD_INCOME`. +// HouseholdIncomeTargetingOptionDetails: Represents a targetable household +// income. This will be populated in the household_income_details field of a +// TargetingOption when targeting_type is `TARGETING_TYPE_HOUSEHOLD_INCOME`. type HouseholdIncomeTargetingOptionDetails struct { // HouseholdIncome: Output only. The household income of an audience. // // Possible values: - // "HOUSEHOLD_INCOME_UNSPECIFIED" - Default value when household - // income is not specified in this version. This enum is a placeholder - // for default value and does not represent a real household income - // option. - // "HOUSEHOLD_INCOME_UNKNOWN" - The household income of the audience - // is unknown. - // "HOUSEHOLD_INCOME_LOWER_50_PERCENT" - The audience is in the lower - // 50% of U.S. household incomes. - // "HOUSEHOLD_INCOME_TOP_41_TO_50_PERCENT" - The audience is in the - // top 41-50% of U.S. household incomes. - // "HOUSEHOLD_INCOME_TOP_31_TO_40_PERCENT" - The audience is in the - // top 31-40% of U.S. household incomes. - // "HOUSEHOLD_INCOME_TOP_21_TO_30_PERCENT" - The audience is in the - // top 21-30% of U.S. household incomes. - // "HOUSEHOLD_INCOME_TOP_11_TO_20_PERCENT" - The audience is in the - // top 11-20% of U.S. household incomes. - // "HOUSEHOLD_INCOME_TOP_10_PERCENT" - The audience is in the top 10% - // of U.S. household incomes. + // "HOUSEHOLD_INCOME_UNSPECIFIED" - Default value when household income is + // not specified in this version. This enum is a placeholder for default value + // and does not represent a real household income option. + // "HOUSEHOLD_INCOME_UNKNOWN" - The household income of the audience is + // unknown. + // "HOUSEHOLD_INCOME_LOWER_50_PERCENT" - The audience is in the lower 50% of + // U.S. household incomes. + // "HOUSEHOLD_INCOME_TOP_41_TO_50_PERCENT" - The audience is in the top + // 41-50% of U.S. household incomes. + // "HOUSEHOLD_INCOME_TOP_31_TO_40_PERCENT" - The audience is in the top + // 31-40% of U.S. household incomes. + // "HOUSEHOLD_INCOME_TOP_21_TO_30_PERCENT" - The audience is in the top + // 21-30% of U.S. household incomes. + // "HOUSEHOLD_INCOME_TOP_11_TO_20_PERCENT" - The audience is in the top + // 11-20% of U.S. household incomes. + // "HOUSEHOLD_INCOME_TOP_10_PERCENT" - The audience is in the top 10% of U.S. + // household incomes. HouseholdIncome string `json:"householdIncome,omitempty"` - // ForceSendFields is a list of field names (e.g. "HouseholdIncome") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HouseholdIncome") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "HouseholdIncome") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HouseholdIncomeTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s HouseholdIncomeTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod HouseholdIncomeTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IdFilter: A filtering option that filters entities by their entity -// IDs. +// IdFilter: A filtering option that filters entities by their entity IDs. type IdFilter struct { - // AdGroupAdIds: YouTube Ads to download by ID. All IDs must belong to - // the same Advertiser or Partner specified in - // CreateSdfDownloadTaskRequest. + // AdGroupAdIds: YouTube Ads to download by ID. All IDs must belong to the same + // Advertiser or Partner specified in CreateSdfDownloadTaskRequest. AdGroupAdIds googleapi.Int64s `json:"adGroupAdIds,omitempty"` - - // AdGroupIds: YouTube Ad Groups to download by ID. All IDs must belong - // to the same Advertiser or Partner specified in - // CreateSdfDownloadTaskRequest. - AdGroupIds googleapi.Int64s `json:"adGroupIds,omitempty"` - - // CampaignIds: Campaigns to download by ID. All IDs must belong to the + // AdGroupIds: YouTube Ad Groups to download by ID. All IDs must belong to the // same Advertiser or Partner specified in CreateSdfDownloadTaskRequest. + AdGroupIds googleapi.Int64s `json:"adGroupIds,omitempty"` + // CampaignIds: Campaigns to download by ID. All IDs must belong to the same + // Advertiser or Partner specified in CreateSdfDownloadTaskRequest. CampaignIds googleapi.Int64s `json:"campaignIds,omitempty"` - - // InsertionOrderIds: Insertion Orders to download by ID. All IDs must - // belong to the same Advertiser or Partner specified in - // CreateSdfDownloadTaskRequest. + // InsertionOrderIds: Insertion Orders to download by ID. All IDs must belong + // to the same Advertiser or Partner specified in CreateSdfDownloadTaskRequest. InsertionOrderIds googleapi.Int64s `json:"insertionOrderIds,omitempty"` - - // LineItemIds: Line Items to download by ID. All IDs must belong to the - // same Advertiser or Partner specified in CreateSdfDownloadTaskRequest. + // LineItemIds: Line Items to download by ID. All IDs must belong to the same + // Advertiser or Partner specified in CreateSdfDownloadTaskRequest. LineItemIds googleapi.Int64s `json:"lineItemIds,omitempty"` - - // MediaProductIds: Media Products to download by ID. All IDs must - // belong to the same Advertiser or Partner specified in - // CreateSdfDownloadTaskRequest. + // MediaProductIds: Media Products to download by ID. All IDs must belong to + // the same Advertiser or Partner specified in CreateSdfDownloadTaskRequest. MediaProductIds googleapi.Int64s `json:"mediaProductIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdGroupAdIds") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdGroupAdIds") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdGroupAdIds") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IdFilter) MarshalJSON() ([]byte, error) { +func (s IdFilter) MarshalJSON() ([]byte, error) { type NoMethod IdFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InsertionOrder: A single insertion order. type InsertionOrder struct { - // AdvertiserId: Output only. The unique ID of the advertiser the - // insertion order belongs to. + // AdvertiserId: Output only. The unique ID of the advertiser the insertion + // order belongs to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // BidStrategy: The bidding strategy of the insertion order. By default, // fixed_bid is set. BidStrategy *BiddingStrategy `json:"bidStrategy,omitempty"` - - // BillableOutcome: Immutable. The billable outcome of the insertion - // order. Outcome based buying is deprecated. - // `BILLABLE_OUTCOME_PAY_PER_IMPRESSION` is the only valid value. + // BillableOutcome: Immutable. The billable outcome of the insertion order. + // Outcome based buying is deprecated. `BILLABLE_OUTCOME_PAY_PER_IMPRESSION` is + // the only valid value. // // Possible values: // "BILLABLE_OUTCOME_UNSPECIFIED" - Unspecified billable outcome. // "BILLABLE_OUTCOME_PAY_PER_IMPRESSION" - Pay per impressions. // "BILLABLE_OUTCOME_PAY_PER_CLICK" - Pay per click. - // "BILLABLE_OUTCOME_PAY_PER_VIEWABLE_IMPRESSION" - Pay per active - // view. + // "BILLABLE_OUTCOME_PAY_PER_VIEWABLE_IMPRESSION" - Pay per active view. BillableOutcome string `json:"billableOutcome,omitempty"` - - // Budget: Required. The budget allocation settings of the insertion - // order. + // Budget: Required. The budget allocation settings of the insertion order. Budget *InsertionOrderBudget `json:"budget,omitempty"` - - // CampaignId: Required. Immutable. The unique ID of the campaign that - // the insertion order belongs to. + // CampaignId: Required. Immutable. The unique ID of the campaign that the + // insertion order belongs to. CampaignId int64 `json:"campaignId,omitempty,string"` - - // DisplayName: Required. The display name of the insertion order. Must - // be UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the insertion order. Must be + // UTF-8 encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // EntityStatus: Required. Controls whether or not the insertion order - // can spend its budget and bid on inventory. * For CreateInsertionOrder - // method, only `ENTITY_STATUS_DRAFT` is allowed. To activate an - // insertion order, use UpdateInsertionOrder method and update the - // status to `ENTITY_STATUS_ACTIVE` after creation. * An insertion order - // cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other - // status. * An insertion order cannot be set to `ENTITY_STATUS_ACTIVE` - // if its parent campaign is not active. + // EntityStatus: Required. Controls whether or not the insertion order can + // spend its budget and bid on inventory. * For CreateInsertionOrder method, + // only `ENTITY_STATUS_DRAFT` is allowed. To activate an insertion order, use + // UpdateInsertionOrder method and update the status to `ENTITY_STATUS_ACTIVE` + // after creation. * An insertion order cannot be changed back to + // `ENTITY_STATUS_DRAFT` status from any other status. * An insertion order + // cannot be set to `ENTITY_STATUS_ACTIVE` if its parent campaign is not + // active. // // Possible values: - // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not - // specified or is unknown in this version. - // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend - // budget. - // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and - // budget spending are disabled. An entity can be deleted after - // archived. Deleted entities cannot be retrieved. - // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and - // budget spending are disabled. - // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for - // the entity. - // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled - // for deletion. + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not specified + // or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and budget + // spending are disabled. An entity can be deleted after archived. Deleted + // entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and budget + // spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for the + // entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled for + // deletion. EntityStatus string `json:"entityStatus,omitempty"` - - // FrequencyCap: Required. The frequency capping setting of the - // insertion order. + // FrequencyCap: Required. The frequency capping setting of the insertion + // order. FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"` - // InsertionOrderId: Output only. The unique ID of the insertion order. // Assigned by the system. InsertionOrderId int64 `json:"insertionOrderId,omitempty,string"` - // InsertionOrderType: The type of insertion order. If this field is // unspecified in creation, the value defaults to `RTB`. // // Possible values: - // "INSERTION_ORDER_TYPE_UNSPECIFIED" - Insertion order type is not - // specified or is unknown. + // "INSERTION_ORDER_TYPE_UNSPECIFIED" - Insertion order type is not specified + // or is unknown. // "RTB" - Real-time bidding. // "OVER_THE_TOP" - Over-the-top. InsertionOrderType string `json:"insertionOrderType,omitempty"` - - // IntegrationDetails: Additional integration details of the insertion - // order. + // IntegrationDetails: Additional integration details of the insertion order. IntegrationDetails *IntegrationDetails `json:"integrationDetails,omitempty"` - // Name: Output only. The resource name of the insertion order. Name string `json:"name,omitempty"` - - // Pacing: Required. The budget spending speed setting of the insertion - // order. + // Pacing: Required. The budget spending speed setting of the insertion order. Pacing *Pacing `json:"pacing,omitempty"` - - // PartnerCosts: The partner costs associated with the insertion order. - // If absent or empty in CreateInsertionOrder method, the newly created - // insertion order will inherit partner costs from the partner settings. + // PartnerCosts: The partner costs associated with the insertion order. If + // absent or empty in CreateInsertionOrder method, the newly created insertion + // order will inherit partner costs from the partner settings. PartnerCosts []*PartnerCost `json:"partnerCosts,omitempty"` - // PerformanceGoal: Required. Performance goal of the insertion order. PerformanceGoal *PerformanceGoal `json:"performanceGoal,omitempty"` - - // ReservationType: Output only. The reservation type of the insertion - // order. + // ReservationType: Output only. The reservation type of the insertion order. // // Possible values: - // "RESERVATION_TYPE_UNSPECIFIED" - Reservation type value is not - // specified or is unknown in this version. - // "RESERVATION_TYPE_NOT_GUARANTEED" - Not created through a - // guaranteed inventory source. + // "RESERVATION_TYPE_UNSPECIFIED" - Reservation type value is not specified + // or is unknown in this version. + // "RESERVATION_TYPE_NOT_GUARANTEED" - Not created through a guaranteed + // inventory source. // "RESERVATION_TYPE_PROGRAMMATIC_GUARANTEED" - Created through a // programmatic guaranteed inventory source. - // "RESERVATION_TYPE_TAG_GUARANTEED" - Created through a tag - // guaranteed inventory source. + // "RESERVATION_TYPE_TAG_GUARANTEED" - Created through a tag guaranteed + // inventory source. ReservationType string `json:"reservationType,omitempty"` - - // UpdateTime: Output only. The timestamp when the insertion order was - // last updated. Assigned by the system. + // UpdateTime: Output only. The timestamp when the insertion order was last + // updated. Assigned by the system. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InsertionOrder) MarshalJSON() ([]byte, error) { +func (s InsertionOrder) MarshalJSON() ([]byte, error) { type NoMethod InsertionOrder - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InsertionOrderBudget: Settings that control how insertion order -// budget is allocated. +// InsertionOrderBudget: Settings that control how insertion order budget is +// allocated. type InsertionOrderBudget struct { - // AutomationType: The type of automation used to manage bid and budget - // for the insertion order. If this field is unspecified in creation, - // the value defaults to `INSERTION_ORDER_AUTOMATION_TYPE_NONE`. + // AutomationType: The type of automation used to manage bid and budget for the + // insertion order. If this field is unspecified in creation, the value + // defaults to `INSERTION_ORDER_AUTOMATION_TYPE_NONE`. // // Possible values: - // "INSERTION_ORDER_AUTOMATION_TYPE_UNSPECIFIED" - Insertion order - // automation option is not specified or is unknown in this version. - // "INSERTION_ORDER_AUTOMATION_TYPE_BUDGET" - Automatic budget - // allocation. Allow the system to automatically shift budget to owning - // line items to optimize performance defined by kpi. No automation on - // bid settings. - // "INSERTION_ORDER_AUTOMATION_TYPE_NONE" - No automation of bid or - // budget on insertion order level. Bid and budget must be manually - // configured at the line item level. + // "INSERTION_ORDER_AUTOMATION_TYPE_UNSPECIFIED" - Insertion order automation + // option is not specified or is unknown in this version. + // "INSERTION_ORDER_AUTOMATION_TYPE_BUDGET" - Automatic budget allocation. + // Allow the system to automatically shift budget to owning line items to + // optimize performance defined by kpi. No automation on bid settings. + // "INSERTION_ORDER_AUTOMATION_TYPE_NONE" - No automation of bid or budget on + // insertion order level. Bid and budget must be manually configured at the + // line item level. // "INSERTION_ORDER_AUTOMATION_TYPE_BID_BUDGET" - Allow the system to - // automatically adjust bids and shift budget to owning line items to - // optimize performance defined by kpi. + // automatically adjust bids and shift budget to owning line items to optimize + // performance defined by kpi. AutomationType string `json:"automationType,omitempty"` - - // BudgetSegments: Required. The list of budget segments. Use a budget - // segment to specify a specific budget for a given period of time an - // insertion order is running. + // BudgetSegments: Required. The list of budget segments. Use a budget segment + // to specify a specific budget for a given period of time an insertion order + // is running. BudgetSegments []*InsertionOrderBudgetSegment `json:"budgetSegments,omitempty"` - - // BudgetUnit: Required. Immutable. The budget unit specifies whether - // the budget is currency based or impression based. + // BudgetUnit: Required. Immutable. The budget unit specifies whether the + // budget is currency based or impression based. // // Possible values: - // "BUDGET_UNIT_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "BUDGET_UNIT_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. // "BUDGET_UNIT_CURRENCY" - Budgeting in currency amounts. // "BUDGET_UNIT_IMPRESSIONS" - Budgeting in impression amounts. BudgetUnit string `json:"budgetUnit,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutomationType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutomationType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AutomationType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InsertionOrderBudget) MarshalJSON() ([]byte, error) { +func (s InsertionOrderBudget) MarshalJSON() ([]byte, error) { type NoMethod InsertionOrderBudget - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InsertionOrderBudgetSegment: Settings that control the budget of a -// single budget segment. +// InsertionOrderBudgetSegment: Settings that control the budget of a single +// budget segment. type InsertionOrderBudgetSegment struct { - // BudgetAmountMicros: Required. The budget amount the insertion order - // will spend for the given date_range. The amount is in micros. Must be - // greater than 0. For example, 500000000 represents 500 standard units - // of the currency. + // BudgetAmountMicros: Required. The budget amount the insertion order will + // spend for the given date_range. The amount is in micros. Must be greater + // than 0. For example, 500000000 represents 500 standard units of the + // currency. BudgetAmountMicros int64 `json:"budgetAmountMicros,omitempty,string"` - - // CampaignBudgetId: The budget_id of the campaign budget that this - // insertion order budget segment is a part of. + // CampaignBudgetId: The budget_id of the campaign budget that this insertion + // order budget segment is a part of. CampaignBudgetId int64 `json:"campaignBudgetId,omitempty,string"` - - // DateRange: Required. The start and end date settings of the budget - // segment. They are resolved relative to the parent advertiser's time - // zone. * When creating a new budget segment, both `start_date` and - // `end_date` must be in the future. * An existing budget segment with a - // `start_date` in the past has a mutable `end_date` but an immutable - // `start_date`. * `end_date` must be the `start_date` or later, both - // before the year 2037. + // DateRange: Required. The start and end date settings of the budget segment. + // They are resolved relative to the parent advertiser's time zone. * When + // creating a new budget segment, both `start_date` and `end_date` must be in + // the future. * An existing budget segment with a `start_date` in the past has + // a mutable `end_date` but an immutable `start_date`. * `end_date` must be the + // `start_date` or later, both before the year 2037. DateRange *DateRange `json:"dateRange,omitempty"` - // Description: The budget segment description. It can be used to enter - // Purchase Order information for each budget segment and have that - // information printed on the invoices. Must be UTF-8 encoded. + // Purchase Order information for each budget segment and have that information + // printed on the invoices. Must be UTF-8 encoded. Description string `json:"description,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BudgetAmountMicros") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BudgetAmountMicros") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BudgetAmountMicros") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BudgetAmountMicros") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InsertionOrderBudgetSegment) MarshalJSON() ([]byte, error) { +func (s InsertionOrderBudgetSegment) MarshalJSON() ([]byte, error) { type NoMethod InsertionOrderBudgetSegment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // IntegralAdScience: Details of Integral Ad Science settings. type IntegralAdScience struct { - // CustomSegmentId: The custom segment ID provided by Integral Ad - // Science. The ID must be between `1000001` and `1999999`, inclusive. + // CustomSegmentId: The custom segment ID provided by Integral Ad Science. The + // ID must be between `1000001` and `1999999`, inclusive. CustomSegmentId googleapi.Int64s `json:"customSegmentId,omitempty"` - - // DisplayViewability: Display Viewability section (applicable to - // display line items only). + // DisplayViewability: Display Viewability section (applicable to display line + // items only). // // Possible values: - // "PERFORMANCE_VIEWABILITY_UNSPECIFIED" - This enum is only a - // placeholder and it doesn't specify any display viewability options. + // "PERFORMANCE_VIEWABILITY_UNSPECIFIED" - This enum is only a placeholder + // and it doesn't specify any display viewability options. // "PERFORMANCE_VIEWABILITY_40" - Target 40% Viewability or Higher. // "PERFORMANCE_VIEWABILITY_50" - Target 50% Viewability or Higher. // "PERFORMANCE_VIEWABILITY_60" - Target 60% Viewability or Higher. // "PERFORMANCE_VIEWABILITY_70" - Target 70% Viewability or Higher. DisplayViewability string `json:"displayViewability,omitempty"` - // ExcludeUnrateable: Brand Safety - **Unrateable**. ExcludeUnrateable bool `json:"excludeUnrateable,omitempty"` - // ExcludedAdFraudRisk: Ad Fraud settings. // // Possible values: - // "SUSPICIOUS_ACTIVITY_UNSPECIFIED" - This enum is only a placeholder - // and it doesn't specify any ad fraud prevention options. + // "SUSPICIOUS_ACTIVITY_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any ad fraud prevention options. // "SUSPICIOUS_ACTIVITY_HR" - Ad Fraud - Exclude High Risk. - // "SUSPICIOUS_ACTIVITY_HMR" - Ad Fraud - Exclude High and Moderate - // Risk. + // "SUSPICIOUS_ACTIVITY_HMR" - Ad Fraud - Exclude High and Moderate Risk. ExcludedAdFraudRisk string `json:"excludedAdFraudRisk,omitempty"` - // ExcludedAdultRisk: Brand Safety - **Adult content**. // // Possible values: - // "ADULT_UNSPECIFIED" - This enum is only a placeholder and it - // doesn't specify any adult options. + // "ADULT_UNSPECIFIED" - This enum is only a placeholder and it doesn't + // specify any adult options. // "ADULT_HR" - Adult - Exclude High Risk. // "ADULT_HMR" - Adult - Exclude High and Moderate Risk. ExcludedAdultRisk string `json:"excludedAdultRisk,omitempty"` - // ExcludedAlcoholRisk: Brand Safety - **Alcohol**. // // Possible values: - // "ALCOHOL_UNSPECIFIED" - This enum is only a placeholder and it - // doesn't specify any alcohol options. + // "ALCOHOL_UNSPECIFIED" - This enum is only a placeholder and it doesn't + // specify any alcohol options. // "ALCOHOL_HR" - Alcohol - Exclude High Risk. // "ALCOHOL_HMR" - Alcohol - Exclude High and Moderate Risk. ExcludedAlcoholRisk string `json:"excludedAlcoholRisk,omitempty"` - // ExcludedDrugsRisk: Brand Safety - **Drugs**. // // Possible values: - // "DRUGS_UNSPECIFIED" - This enum is only a placeholder and it - // doesn't specify any drugs options. + // "DRUGS_UNSPECIFIED" - This enum is only a placeholder and it doesn't + // specify any drugs options. // "DRUGS_HR" - Drugs - Exclude High Risk. // "DRUGS_HMR" - Drugs - Exclude High and Moderate Risk. ExcludedDrugsRisk string `json:"excludedDrugsRisk,omitempty"` - // ExcludedGamblingRisk: Brand Safety - **Gambling**. // // Possible values: - // "GAMBLING_UNSPECIFIED" - This enum is only a placeholder and it - // doesn't specify any gambling options. + // "GAMBLING_UNSPECIFIED" - This enum is only a placeholder and it doesn't + // specify any gambling options. // "GAMBLING_HR" - Gambling - Exclude High Risk. // "GAMBLING_HMR" - Gambling - Exclude High and Moderate Risk. ExcludedGamblingRisk string `json:"excludedGamblingRisk,omitempty"` - // ExcludedHateSpeechRisk: Brand Safety - **Hate speech**. // // Possible values: - // "HATE_SPEECH_UNSPECIFIED" - This enum is only a placeholder and it - // doesn't specify any hate speech options. + // "HATE_SPEECH_UNSPECIFIED" - This enum is only a placeholder and it doesn't + // specify any hate speech options. // "HATE_SPEECH_HR" - Hate Speech - Exclude High Risk. // "HATE_SPEECH_HMR" - Hate Speech - Exclude High and Moderate Risk. ExcludedHateSpeechRisk string `json:"excludedHateSpeechRisk,omitempty"` - // ExcludedIllegalDownloadsRisk: Brand Safety - **Illegal downloads**. // // Possible values: - // "ILLEGAL_DOWNLOADS_UNSPECIFIED" - This enum is only a placeholder - // and it doesn't specify any illegal downloads options. + // "ILLEGAL_DOWNLOADS_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any illegal downloads options. // "ILLEGAL_DOWNLOADS_HR" - Illegal Downloads - Exclude High Risk. - // "ILLEGAL_DOWNLOADS_HMR" - Illegal Downloads - Exclude High and - // Moderate Risk. + // "ILLEGAL_DOWNLOADS_HMR" - Illegal Downloads - Exclude High and Moderate + // Risk. ExcludedIllegalDownloadsRisk string `json:"excludedIllegalDownloadsRisk,omitempty"` - // ExcludedOffensiveLanguageRisk: Brand Safety - **Offensive language**. // // Possible values: - // "OFFENSIVE_LANGUAGE_UNSPECIFIED" - This enum is only a placeholder - // and it doesn't specify any language options. + // "OFFENSIVE_LANGUAGE_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any language options. // "OFFENSIVE_LANGUAGE_HR" - Offensive Language - Exclude High Risk. - // "OFFENSIVE_LANGUAGE_HMR" - Offensive Language - Exclude High and - // Moderate Risk. + // "OFFENSIVE_LANGUAGE_HMR" - Offensive Language - Exclude High and Moderate + // Risk. ExcludedOffensiveLanguageRisk string `json:"excludedOffensiveLanguageRisk,omitempty"` - // ExcludedViolenceRisk: Brand Safety - **Violence**. // // Possible values: - // "VIOLENCE_UNSPECIFIED" - This enum is only a placeholder and it - // doesn't specify any violence options. + // "VIOLENCE_UNSPECIFIED" - This enum is only a placeholder and it doesn't + // specify any violence options. // "VIOLENCE_HR" - Violence - Exclude High Risk. // "VIOLENCE_HMR" - Violence - Exclude High and Moderate Risk. ExcludedViolenceRisk string `json:"excludedViolenceRisk,omitempty"` - - // TraqScoreOption: True advertising quality (applicable to Display line - // items only). + // TraqScoreOption: True advertising quality (applicable to Display line items + // only). // // Possible values: // "TRAQ_UNSPECIFIED" - This enum is only a placeholder and it doesn't @@ -9677,130 +7973,104 @@ type IntegralAdScience struct { // "TRAQ_875" - TRAQ score 875-1000. // "TRAQ_1000" - TRAQ score 1000. TraqScoreOption string `json:"traqScoreOption,omitempty"` - - // VideoViewability: Video Viewability Section (applicable to video line - // items only). + // VideoViewability: Video Viewability Section (applicable to video line items + // only). // // Possible values: - // "VIDEO_VIEWABILITY_UNSPECIFIED" - This enum is only a placeholder - // and it doesn't specify any video viewability options. - // "VIDEO_VIEWABILITY_40" - 40%+ in view (IAB video viewability - // standard). - // "VIDEO_VIEWABILITY_50" - 50%+ in view (IAB video viewability - // standard). - // "VIDEO_VIEWABILITY_60" - 60%+ in view (IAB video viewability - // standard). - // "VIDEO_VIEWABILITY_70" - 70%+ in view (IAB video viewability - // standard). + // "VIDEO_VIEWABILITY_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any video viewability options. + // "VIDEO_VIEWABILITY_40" - 40%+ in view (IAB video viewability standard). + // "VIDEO_VIEWABILITY_50" - 50%+ in view (IAB video viewability standard). + // "VIDEO_VIEWABILITY_60" - 60%+ in view (IAB video viewability standard). + // "VIDEO_VIEWABILITY_70" - 70%+ in view (IAB video viewability standard). VideoViewability string `json:"videoViewability,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomSegmentId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomSegmentId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CustomSegmentId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IntegralAdScience) MarshalJSON() ([]byte, error) { +func (s IntegralAdScience) MarshalJSON() ([]byte, error) { type NoMethod IntegralAdScience - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // IntegrationDetails: Integration details of an entry. type IntegrationDetails struct { - // Details: Additional details of the entry in string format. Must be - // UTF-8 encoded with a length of no more than 1000 characters. + // Details: Additional details of the entry in string format. Must be UTF-8 + // encoded with a length of no more than 1000 characters. Details string `json:"details,omitempty"` - - // IntegrationCode: An external identifier to be associated with the - // entry. The integration code will show up together with the entry in - // many places in the system, for example, reporting. Must be UTF-8 - // encoded with a length of no more than 500 characters. + // IntegrationCode: An external identifier to be associated with the entry. The + // integration code will show up together with the entry in many places in the + // system, for example, reporting. Must be UTF-8 encoded with a length of no + // more than 500 characters. IntegrationCode string `json:"integrationCode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IntegrationDetails) MarshalJSON() ([]byte, error) { +func (s IntegrationDetails) MarshalJSON() ([]byte, error) { type NoMethod IntegrationDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventorySource: An inventory source. type InventorySource struct { - // Commitment: Whether the inventory source has a guaranteed or - // non-guaranteed delivery. + // Commitment: Whether the inventory source has a guaranteed or non-guaranteed + // delivery. // // Possible values: // "INVENTORY_SOURCE_COMMITMENT_UNSPECIFIED" - The commitment is not // specified or is unknown in this version. - // "INVENTORY_SOURCE_COMMITMENT_GUARANTEED" - The commitment is - // guaranteed delivery. + // "INVENTORY_SOURCE_COMMITMENT_GUARANTEED" - The commitment is guaranteed + // delivery. // "INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED" - The commitment is // non-guaranteed delivery. Commitment string `json:"commitment,omitempty"` - - // CreativeConfigs: The creative requirements of the inventory source. - // Not applicable for auction packages. + // CreativeConfigs: The creative requirements of the inventory source. Not + // applicable for auction packages. CreativeConfigs []*CreativeConfig `json:"creativeConfigs,omitempty"` - - // DealId: The ID in the exchange space that uniquely identifies the - // inventory source. Must be unique across buyers within each exchange - // but not necessarily unique across exchanges. + // DealId: The ID in the exchange space that uniquely identifies the inventory + // source. Must be unique across buyers within each exchange but not + // necessarily unique across exchanges. DealId string `json:"dealId,omitempty"` - // DeliveryMethod: The delivery method of the inventory source. * For // non-guaranteed inventory sources, the only acceptable value is - // `INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC`. * For guaranteed - // inventory sources, acceptable values are - // `INVENTORY_SOURCE_DELIVERY_METHOD_TAG` and + // `INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC`. * For guaranteed inventory + // sources, acceptable values are `INVENTORY_SOURCE_DELIVERY_METHOD_TAG` and // `INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC`. // // Possible values: - // "INVENTORY_SOURCE_DELIVERY_METHOD_UNSPECIFIED" - The delivery - // method is not specified or is unknown in this version. - // "INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC" - The delivery - // method is programmatic. - // "INVENTORY_SOURCE_DELIVERY_METHOD_TAG" - The delivery method is - // tag. + // "INVENTORY_SOURCE_DELIVERY_METHOD_UNSPECIFIED" - The delivery method is + // not specified or is unknown in this version. + // "INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC" - The delivery method is + // programmatic. + // "INVENTORY_SOURCE_DELIVERY_METHOD_TAG" - The delivery method is tag. DeliveryMethod string `json:"deliveryMethod,omitempty"` - - // DisplayName: The display name of the inventory source. Must be UTF-8 - // encoded with a maximum size of 240 bytes. + // DisplayName: The display name of the inventory source. Must be UTF-8 encoded + // with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - // Exchange: The exchange to which the inventory source belongs. // // Possible values: - // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in - // this version. + // "EXCHANGE_UNSPECIFIED" - Exchange is not specified or is unknown in this + // version. // "EXCHANGE_GOOGLE_AD_MANAGER" - Google Ad Manager. // "EXCHANGE_APPNEXUS" - AppNexus. // "EXCHANGE_BRIGHTROLL" - BrightRoll Exchange for Video from Yahoo!. @@ -9810,8 +8080,8 @@ type InventorySource struct { // "EXCHANGE_ADSMOGO" - AdsMogo. // "EXCHANGE_ADSWIZZ" - AdsWizz. // "EXCHANGE_BIDSWITCH" - BidSwitch. - // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display - // from Yahoo!. + // "EXCHANGE_BRIGHTROLL_DISPLAY" - BrightRoll Exchange for Display from + // Yahoo!. // "EXCHANGE_CADREON" - Cadreon. // "EXCHANGE_DAILYMOTION" - Dailymotion. // "EXCHANGE_FIVE" - Five. @@ -9877,217 +8147,176 @@ type InventorySource struct { // "EXCHANGE_RESET_DIGITAL" - Reset Digital. // "EXCHANGE_HIVESTACK" - Hivestack. Exchange string `json:"exchange,omitempty"` - - // GuaranteedOrderId: Immutable. The ID of the guaranteed order that - // this inventory source belongs to. Only applicable when commitment is + // GuaranteedOrderId: Immutable. The ID of the guaranteed order that this + // inventory source belongs to. Only applicable when commitment is // `INVENTORY_SOURCE_COMMITMENT_GUARANTEED`. GuaranteedOrderId string `json:"guaranteedOrderId,omitempty"` - - // InventorySourceId: Output only. The unique ID of the inventory - // source. Assigned by the system. + // InventorySourceId: Output only. The unique ID of the inventory source. + // Assigned by the system. InventorySourceId int64 `json:"inventorySourceId,omitempty,string"` - - // InventorySourceProductType: Output only. The product type of the - // inventory source, denoting the way through which it sells inventory. + // InventorySourceProductType: Output only. The product type of the inventory + // source, denoting the way through which it sells inventory. // // Possible values: - // "INVENTORY_SOURCE_PRODUCT_TYPE_UNSPECIFIED" - The product type is - // not specified or is unknown in this version. Modifying inventory - // sources of this product type are not supported via API. - // "PREFERRED_DEAL" - The inventory source sells inventory through - // Preferred Deal. - // "PRIVATE_AUCTION" - The inventory source sells inventory through - // Private Auction. - // "PROGRAMMATIC_GUARANTEED" - The inventory source sells inventory - // through Programmatic Guaranteed. + // "INVENTORY_SOURCE_PRODUCT_TYPE_UNSPECIFIED" - The product type is not + // specified or is unknown in this version. Modifying inventory sources of this + // product type are not supported via API. + // "PREFERRED_DEAL" - The inventory source sells inventory through Preferred + // Deal. + // "PRIVATE_AUCTION" - The inventory source sells inventory through Private + // Auction. + // "PROGRAMMATIC_GUARANTEED" - The inventory source sells inventory through + // Programmatic Guaranteed. // "TAG_GUARANTEED" - The inventory source sells inventory through Tag // Guaranteed. - // "YOUTUBE_RESERVE" - The inventory source sells inventory through - // YouTube Reserve. - // "INSTANT_RESERVE" - The inventory source sells inventory through - // Instant Reserve. Modifying inventory sources of this product type are - // not supported via API. + // "YOUTUBE_RESERVE" - The inventory source sells inventory through YouTube + // Reserve. + // "INSTANT_RESERVE" - The inventory source sells inventory through Instant + // Reserve. Modifying inventory sources of this product type are not supported + // via API. // "GUARANTEED_PACKAGE" - The inventory source sells inventory through - // Guaranteed Package. Modifying inventory sources of this product type - // are not supported via API. + // Guaranteed Package. Modifying inventory sources of this product type are not + // supported via API. // "PROGRAMMATIC_TV" - The inventory source sells inventory through - // Programmtic TV. Modifying inventory sources of this product type are - // not supported via API. - // "AUCTION_PACKAGE" - The inventory source sells inventory through - // Auction Package. Modifying inventory sources of this product type are - // not supported via API. + // Programmtic TV. Modifying inventory sources of this product type are not + // supported via API. + // "AUCTION_PACKAGE" - The inventory source sells inventory through Auction + // Package. Modifying inventory sources of this product type are not supported + // via API. InventorySourceProductType string `json:"inventorySourceProductType,omitempty"` - // InventorySourceType: Denotes the type of the inventory source. // // Possible values: - // "INVENTORY_SOURCE_TYPE_UNSPECIFIED" - The inventory source type is - // not specified or is unknown in this version. + // "INVENTORY_SOURCE_TYPE_UNSPECIFIED" - The inventory source type is not + // specified or is unknown in this version. // "INVENTORY_SOURCE_TYPE_PRIVATE" - Private inventory source. // "INVENTORY_SOURCE_TYPE_AUCTION_PACKAGE" - Auction package. InventorySourceType string `json:"inventorySourceType,omitempty"` - // Name: Output only. The resource name of the inventory source. Name string `json:"name,omitempty"` - // PublisherName: The publisher/seller name of the inventory source. PublisherName string `json:"publisherName,omitempty"` - // RateDetails: Required. The rate details of the inventory source. RateDetails *RateDetails `json:"rateDetails,omitempty"` - - // ReadAdvertiserIds: Output only. The IDs of advertisers with read-only - // access to the inventory source. + // ReadAdvertiserIds: Output only. The IDs of advertisers with read-only access + // to the inventory source. ReadAdvertiserIds googleapi.Int64s `json:"readAdvertiserIds,omitempty"` - - // ReadPartnerIds: Output only. The IDs of partners with read-only - // access to the inventory source. All advertisers of partners in this - // field inherit read-only access to the inventory source. + // ReadPartnerIds: Output only. The IDs of partners with read-only access to + // the inventory source. All advertisers of partners in this field inherit + // read-only access to the inventory source. ReadPartnerIds googleapi.Int64s `json:"readPartnerIds,omitempty"` - - // ReadWriteAccessors: The partner or advertisers that have read/write - // access to the inventory source. Output only when commitment is - // `INVENTORY_SOURCE_COMMITMENT_GUARANTEED`, in which case the - // read/write accessors are inherited from the parent guaranteed order. - // Required when commitment is - // `INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED`. If commitment is - // `INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED` and a partner is set in - // this field, all advertisers under this partner will automatically - // have read-only access to the inventory source. These advertisers will - // not be included in read_advertiser_ids. + // ReadWriteAccessors: The partner or advertisers that have read/write access + // to the inventory source. Output only when commitment is + // `INVENTORY_SOURCE_COMMITMENT_GUARANTEED`, in which case the read/write + // accessors are inherited from the parent guaranteed order. Required when + // commitment is `INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED`. If commitment is + // `INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED` and a partner is set in this + // field, all advertisers under this partner will automatically have read-only + // access to the inventory source. These advertisers will not be included in + // read_advertiser_ids. ReadWriteAccessors *InventorySourceAccessors `json:"readWriteAccessors,omitempty"` - // Status: The status settings of the inventory source. Status *InventorySourceStatus `json:"status,omitempty"` - // TimeRange: The time range when this inventory source starts and stops // serving. TimeRange *TimeRange `json:"timeRange,omitempty"` - - // UpdateTime: Output only. The timestamp when the inventory source was - // last updated. Assigned by the system. + // UpdateTime: Output only. The timestamp when the inventory source was last + // updated. Assigned by the system. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Commitment") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Commitment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Commitment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySource) MarshalJSON() ([]byte, error) { +func (s InventorySource) MarshalJSON() ([]byte, error) { type NoMethod InventorySource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InventorySourceAccessors: The partner or advertisers with access to -// the inventory source. +// InventorySourceAccessors: The partner or advertisers with access to the +// inventory source. type InventorySourceAccessors struct { // Advertisers: The advertisers with access to the inventory source. All // advertisers must belong to the same partner. Advertisers *InventorySourceAccessorsAdvertiserAccessors `json:"advertisers,omitempty"` - // Partner: The partner with access to the inventory source. Partner *InventorySourceAccessorsPartnerAccessor `json:"partner,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Advertisers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Advertisers") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Advertisers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySourceAccessors) MarshalJSON() ([]byte, error) { +func (s InventorySourceAccessors) MarshalJSON() ([]byte, error) { type NoMethod InventorySourceAccessors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InventorySourceAccessorsAdvertiserAccessors: The advertisers with -// access to the inventory source. +// InventorySourceAccessorsAdvertiserAccessors: The advertisers with access to +// the inventory source. type InventorySourceAccessorsAdvertiserAccessors struct { // AdvertiserIds: The IDs of the advertisers. AdvertiserIds googleapi.Int64s `json:"advertiserIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdvertiserIds") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserIds") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserIds") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySourceAccessorsAdvertiserAccessors) MarshalJSON() ([]byte, error) { +func (s InventorySourceAccessorsAdvertiserAccessors) MarshalJSON() ([]byte, error) { type NoMethod InventorySourceAccessorsAdvertiserAccessors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InventorySourceAccessorsPartnerAccessor: The partner with access to -// the inventory source. +// InventorySourceAccessorsPartnerAccessor: The partner with access to the +// inventory source. type InventorySourceAccessorsPartnerAccessor struct { // PartnerId: The ID of the partner. PartnerId int64 `json:"partnerId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "PartnerId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PartnerId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PartnerId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySourceAccessorsPartnerAccessor) MarshalJSON() ([]byte, error) { +func (s InventorySourceAccessorsPartnerAccessor) MarshalJSON() ([]byte, error) { type NoMethod InventorySourceAccessorsPartnerAccessor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventorySourceAssignedTargetingOptionDetails: Targeting details for @@ -10095,32 +8324,25 @@ func (s *InventorySourceAccessorsPartnerAccessor) MarshalJSON() ([]byte, error) // AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_INVENTORY_SOURCE`. type InventorySourceAssignedTargetingOptionDetails struct { - // InventorySourceId: Required. ID of the inventory source. Should refer - // to the inventory_source_id field of an InventorySource resource. + // InventorySourceId: Required. ID of the inventory source. Should refer to the + // inventory_source_id field of an InventorySource resource. InventorySourceId int64 `json:"inventorySourceId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "InventorySourceId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "InventorySourceId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventorySourceId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventorySourceId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySourceAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s InventorySourceAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod InventorySourceAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventorySourceDisplayCreativeConfig: The configuration for display @@ -10129,2381 +8351,1857 @@ type InventorySourceDisplayCreativeConfig struct { // CreativeSize: The size requirements for display creatives that can be // assigned to the inventory source. CreativeSize *Dimensions `json:"creativeSize,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreativeSize") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreativeSize") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreativeSize") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySourceDisplayCreativeConfig) MarshalJSON() ([]byte, error) { +func (s InventorySourceDisplayCreativeConfig) MarshalJSON() ([]byte, error) { type NoMethod InventorySourceDisplayCreativeConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InventorySourceFilter: A filtering option for filtering on Inventory -// Source entities. +// InventorySourceFilter: A filtering option for filtering on Inventory Source +// entities. type InventorySourceFilter struct { - // InventorySourceIds: Inventory Sources to download by ID. All IDs must - // belong to the same Advertiser or Partner specified in - // CreateSdfDownloadTaskRequest. Leave empty to download all Inventory - // Sources for the selected Advertiser or Partner. + // InventorySourceIds: Inventory Sources to download by ID. All IDs must belong + // to the same Advertiser or Partner specified in CreateSdfDownloadTaskRequest. + // Leave empty to download all Inventory Sources for the selected Advertiser or + // Partner. InventorySourceIds googleapi.Int64s `json:"inventorySourceIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "InventorySourceIds") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "InventorySourceIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventorySourceIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventorySourceIds") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySourceFilter) MarshalJSON() ([]byte, error) { +func (s InventorySourceFilter) MarshalJSON() ([]byte, error) { type NoMethod InventorySourceFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InventorySourceGroup: A collection of targetable inventory sources. type InventorySourceGroup struct { - // DisplayName: Required. The display name of the inventory source - // group. Must be UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the inventory source group. Must + // be UTF-8 encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // InventorySourceGroupId: Output only. The unique ID of the inventory - // source group. Assigned by the system. + // InventorySourceGroupId: Output only. The unique ID of the inventory source + // group. Assigned by the system. InventorySourceGroupId int64 `json:"inventorySourceGroupId,omitempty,string"` - // Name: Output only. The resource name of the inventory source group. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySourceGroup) MarshalJSON() ([]byte, error) { +func (s InventorySourceGroup) MarshalJSON() ([]byte, error) { type NoMethod InventorySourceGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InventorySourceGroupAssignedTargetingOptionDetails: Targeting details -// for inventory source group. This will be populated in the details -// field of an AssignedTargetingOption when targeting_type is +// InventorySourceGroupAssignedTargetingOptionDetails: Targeting details for +// inventory source group. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`. type InventorySourceGroupAssignedTargetingOptionDetails struct { - // InventorySourceGroupId: Required. ID of the inventory source group. - // Should refer to the inventory_source_group_id field of an - // InventorySourceGroup resource. + // InventorySourceGroupId: Required. ID of the inventory source group. Should + // refer to the inventory_source_group_id field of an InventorySourceGroup + // resource. InventorySourceGroupId int64 `json:"inventorySourceGroupId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "InventorySourceGroupId") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "InventorySourceGroupId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventorySourceGroupId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventorySourceGroupId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySourceGroupAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s InventorySourceGroupAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod InventorySourceGroupAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InventorySourceStatus: The status related settings of the inventory -// source. +// InventorySourceStatus: The status related settings of the inventory source. type InventorySourceStatus struct { - // ConfigStatus: Output only. The configuration status of the inventory - // source. Only applicable for guaranteed inventory sources. Acceptable - // values are `INVENTORY_SOURCE_CONFIG_STATUS_PENDING` and - // `INVENTORY_SOURCE_CONFIG_STATUS_COMPLETED`. An inventory source must - // be configured (fill in the required fields, choose creatives, and - // select a default campaign) before it can serve. + // ConfigStatus: Output only. The configuration status of the inventory source. + // Only applicable for guaranteed inventory sources. Acceptable values are + // `INVENTORY_SOURCE_CONFIG_STATUS_PENDING` and + // `INVENTORY_SOURCE_CONFIG_STATUS_COMPLETED`. An inventory source must be + // configured (fill in the required fields, choose creatives, and select a + // default campaign) before it can serve. // // Possible values: - // "INVENTORY_SOURCE_CONFIG_STATUS_UNSPECIFIED" - The approval status - // is not specified or is unknown in this version. + // "INVENTORY_SOURCE_CONFIG_STATUS_UNSPECIFIED" - The approval status is not + // specified or is unknown in this version. // "INVENTORY_SOURCE_CONFIG_STATUS_PENDING" - The beginning state of a - // guaranteed inventory source. The inventory source in this state needs - // to be configured. - // "INVENTORY_SOURCE_CONFIG_STATUS_COMPLETED" - The state after the - // buyer configures a guaranteed inventory source. + // guaranteed inventory source. The inventory source in this state needs to be + // configured. + // "INVENTORY_SOURCE_CONFIG_STATUS_COMPLETED" - The state after the buyer + // configures a guaranteed inventory source. ConfigStatus string `json:"configStatus,omitempty"` - - // EntityPauseReason: The user-provided reason for pausing this - // inventory source. Must not exceed 100 characters. Only applicable - // when entity_status is set to `ENTITY_STATUS_PAUSED`. + // EntityPauseReason: The user-provided reason for pausing this inventory + // source. Must not exceed 100 characters. Only applicable when entity_status + // is set to `ENTITY_STATUS_PAUSED`. EntityPauseReason string `json:"entityPauseReason,omitempty"` - - // EntityStatus: Whether or not the inventory source is servable. - // Acceptable values are `ENTITY_STATUS_ACTIVE`, - // `ENTITY_STATUS_ARCHIVED`, and `ENTITY_STATUS_PAUSED`. Default value - // is `ENTITY_STATUS_ACTIVE`. + // EntityStatus: Whether or not the inventory source is servable. Acceptable + // values are `ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_ARCHIVED`, and + // `ENTITY_STATUS_PAUSED`. Default value is `ENTITY_STATUS_ACTIVE`. // // Possible values: - // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not - // specified or is unknown in this version. - // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend - // budget. - // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and - // budget spending are disabled. An entity can be deleted after - // archived. Deleted entities cannot be retrieved. - // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and - // budget spending are disabled. - // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for - // the entity. - // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled - // for deletion. + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not specified + // or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and budget + // spending are disabled. An entity can be deleted after archived. Deleted + // entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and budget + // spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for the + // entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled for + // deletion. EntityStatus string `json:"entityStatus,omitempty"` - - // SellerPauseReason: Output only. The seller-provided reason for - // pausing this inventory source. Only applicable for inventory sources - // synced directly from the publishers and when seller_status is set to - // `ENTITY_STATUS_PAUSED`. + // SellerPauseReason: Output only. The seller-provided reason for pausing this + // inventory source. Only applicable for inventory sources synced directly from + // the publishers and when seller_status is set to `ENTITY_STATUS_PAUSED`. SellerPauseReason string `json:"sellerPauseReason,omitempty"` - - // SellerStatus: Output only. The status set by the seller for the - // inventory source. Only applicable for inventory sources synced - // directly from the publishers. Acceptable values are - // `ENTITY_STATUS_ACTIVE` and `ENTITY_STATUS_PAUSED`. + // SellerStatus: Output only. The status set by the seller for the inventory + // source. Only applicable for inventory sources synced directly from the + // publishers. Acceptable values are `ENTITY_STATUS_ACTIVE` and + // `ENTITY_STATUS_PAUSED`. // // Possible values: - // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not - // specified or is unknown in this version. - // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend - // budget. - // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and - // budget spending are disabled. An entity can be deleted after - // archived. Deleted entities cannot be retrieved. - // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and - // budget spending are disabled. - // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for - // the entity. - // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled - // for deletion. + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not specified + // or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and budget + // spending are disabled. An entity can be deleted after archived. Deleted + // entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and budget + // spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for the + // entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled for + // deletion. SellerStatus string `json:"sellerStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfigStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConfigStatus") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConfigStatus") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySourceStatus) MarshalJSON() ([]byte, error) { +func (s InventorySourceStatus) MarshalJSON() ([]byte, error) { type NoMethod InventorySourceStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InventorySourceVideoCreativeConfig: The configuration for video -// creatives. +// InventorySourceVideoCreativeConfig: The configuration for video creatives. type InventorySourceVideoCreativeConfig struct { - // Duration: The duration requirements for the video creatives that can - // be assigned to the inventory source. + // Duration: The duration requirements for the video creatives that can be + // assigned to the inventory source. Duration string `json:"duration,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InventorySourceVideoCreativeConfig) MarshalJSON() ([]byte, error) { +func (s InventorySourceVideoCreativeConfig) MarshalJSON() ([]byte, error) { type NoMethod InventorySourceVideoCreativeConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Invoice: A single invoice. type Invoice struct { - // BudgetInvoiceGroupingId: The budget grouping ID for this invoice. - // This field will only be set if the invoice level of the corresponding - // billing profile was set to "Budget invoice grouping ID". + // BudgetInvoiceGroupingId: The budget grouping ID for this invoice. This field + // will only be set if the invoice level of the corresponding billing profile + // was set to "Budget invoice grouping ID". BudgetInvoiceGroupingId string `json:"budgetInvoiceGroupingId,omitempty"` - // BudgetSummaries: The list of summarized information for each budget - // associated with this invoice. This field will only be set if the - // invoice detail level of the corresponding billing profile was set to - // "Budget level PO". + // associated with this invoice. This field will only be set if the invoice + // detail level of the corresponding billing profile was set to "Budget level + // PO". BudgetSummaries []*BudgetSummary `json:"budgetSummaries,omitempty"` - - // CorrectedInvoiceId: The ID of the original invoice being adjusted by - // this invoice, if applicable. May appear on the invoice PDF as - // `Reference invoice number`. If replaced_invoice_ids is set, this - // field will be empty. + // CorrectedInvoiceId: The ID of the original invoice being adjusted by this + // invoice, if applicable. May appear on the invoice PDF as `Reference invoice + // number`. If replaced_invoice_ids is set, this field will be empty. CorrectedInvoiceId string `json:"correctedInvoiceId,omitempty"` - // CurrencyCode: The currency used in the invoice in ISO 4217 format. CurrencyCode string `json:"currencyCode,omitempty"` - // DisplayName: The display name of the invoice. DisplayName string `json:"displayName,omitempty"` - // DueDate: The date when the invoice is due. DueDate *Date `json:"dueDate,omitempty"` - // InvoiceId: The unique ID of the invoice. InvoiceId string `json:"invoiceId,omitempty"` - // InvoiceType: The type of invoice document. // // Possible values: - // "INVOICE_TYPE_UNSPECIFIED" - Not specified or is unknown in this - // version. + // "INVOICE_TYPE_UNSPECIFIED" - Not specified or is unknown in this version. // "INVOICE_TYPE_CREDIT" - The invoice has a negative amount. // "INVOICE_TYPE_INVOICE" - The invoice has a positive amount. InvoiceType string `json:"invoiceType,omitempty"` - // IssueDate: The date when the invoice was issued. IssueDate *Date `json:"issueDate,omitempty"` - // Name: The resource name of the invoice. Name string `json:"name,omitempty"` - - // NonBudgetMicros: The total amount of costs or adjustments not tied to - // a particular budget, in micros of the invoice's currency. For - // example, if currency_code is `USD`, then 1000000 represents one US - // dollar. + // NonBudgetMicros: The total amount of costs or adjustments not tied to a + // particular budget, in micros of the invoice's currency. For example, if + // currency_code is `USD`, then 1000000 represents one US dollar. NonBudgetMicros int64 `json:"nonBudgetMicros,omitempty,string"` - - // PaymentsAccountId: The ID of the payments account the invoice belongs - // to. Appears on the invoice PDF as `Billing Account Number`. + // PaymentsAccountId: The ID of the payments account the invoice belongs to. + // Appears on the invoice PDF as `Billing Account Number`. PaymentsAccountId string `json:"paymentsAccountId,omitempty"` - - // PaymentsProfileId: The ID of the payments profile the invoice belongs - // to. Appears on the invoice PDF as `Billing ID`. + // PaymentsProfileId: The ID of the payments profile the invoice belongs to. + // Appears on the invoice PDF as `Billing ID`. PaymentsProfileId string `json:"paymentsProfileId,omitempty"` - - // PdfUrl: The URL to download a PDF copy of the invoice. This URL is - // user specific and requires a valid OAuth 2.0 access token to access. - // The access token must be provided in an `Authorization: Bearer` HTTP - // header and be authorized for one of the following scopes: * + // PdfUrl: The URL to download a PDF copy of the invoice. This URL is user + // specific and requires a valid OAuth 2.0 access token to access. The access + // token must be provided in an `Authorization: Bearer` HTTP header and be + // authorized for one of the following scopes: * // `https://www.googleapis.com/auth/display-video-mediaplanning` * - // `https://www.googleapis.com/auth/display-video` The URL will be valid - // for 7 days after retrieval of this invoice object or until this - // invoice is retrieved again. + // `https://www.googleapis.com/auth/display-video` The URL will be valid for 7 + // days after retrieval of this invoice object or until this invoice is + // retrieved again. PdfUrl string `json:"pdfUrl,omitempty"` - - // PurchaseOrderNumber: Purchase order number associated with the - // invoice. + // PurchaseOrderNumber: Purchase order number associated with the invoice. PurchaseOrderNumber string `json:"purchaseOrderNumber,omitempty"` - - // ReplacedInvoiceIds: The ID(s) of any originally issued invoice that - // is being cancelled by this invoice, if applicable. Multiple invoices - // may be listed if those invoices are being consolidated into a single - // invoice. May appear on invoice PDF as `Replaced invoice numbers`. If - // corrected_invoice_id is set, this field will be empty. + // ReplacedInvoiceIds: The ID(s) of any originally issued invoice that is being + // cancelled by this invoice, if applicable. Multiple invoices may be listed if + // those invoices are being consolidated into a single invoice. May appear on + // invoice PDF as `Replaced invoice numbers`. If corrected_invoice_id is set, + // this field will be empty. ReplacedInvoiceIds []string `json:"replacedInvoiceIds,omitempty"` - - // ServiceDateRange: The service start and end dates which are covered - // by this invoice. + // ServiceDateRange: The service start and end dates which are covered by this + // invoice. ServiceDateRange *DateRange `json:"serviceDateRange,omitempty"` - // SubtotalAmountMicros: The pre-tax subtotal amount, in micros of the - // invoice's currency. For example, if currency_code is `USD`, then - // 1000000 represents one US dollar. + // invoice's currency. For example, if currency_code is `USD`, then 1000000 + // represents one US dollar. SubtotalAmountMicros int64 `json:"subtotalAmountMicros,omitempty,string"` - - // TotalAmountMicros: The invoice total amount, in micros of the - // invoice's currency. For example, if currency_code is `USD`, then - // 1000000 represents one US dollar. + // TotalAmountMicros: The invoice total amount, in micros of the invoice's + // currency. For example, if currency_code is `USD`, then 1000000 represents + // one US dollar. TotalAmountMicros int64 `json:"totalAmountMicros,omitempty,string"` - - // TotalTaxAmountMicros: The sum of all taxes in invoice, in micros of - // the invoice's currency. For example, if currency_code is `USD`, then - // 1000000 represents one US dollar. + // TotalTaxAmountMicros: The sum of all taxes in invoice, in micros of the + // invoice's currency. For example, if currency_code is `USD`, then 1000000 + // represents one US dollar. TotalTaxAmountMicros int64 `json:"totalTaxAmountMicros,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "BudgetInvoiceGroupingId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BudgetInvoiceGroupingId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BudgetInvoiceGroupingId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BudgetInvoiceGroupingId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Invoice) MarshalJSON() ([]byte, error) { +func (s Invoice) MarshalJSON() ([]byte, error) { type NoMethod Invoice - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // KeywordAssignedTargetingOptionDetails: Details for assigned keyword // targeting option. This will be populated in the details field of an -// AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_KEYWORD`. +// AssignedTargetingOption when targeting_type is `TARGETING_TYPE_KEYWORD`. type KeywordAssignedTargetingOptionDetails struct { // Keyword: Required. The keyword, for example `car insurance`. Positive - // keyword cannot be offensive word. Must be UTF-8 encoded with a - // maximum size of 255 bytes. Maximum number of characters is 80. - // Maximum number of words is 10. + // keyword cannot be offensive word. Must be UTF-8 encoded with a maximum size + // of 255 bytes. Maximum number of characters is 80. Maximum number of words is + // 10. Keyword string `json:"keyword,omitempty"` - // Negative: Indicates if this option is being negatively targeted. Negative bool `json:"negative,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Keyword") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Keyword") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Keyword") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Keyword") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KeywordAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s KeywordAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod KeywordAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LanguageAssignedTargetingOptionDetails: Details for assigned language // targeting option. This will be populated in the details field of an -// AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_LANGUAGE`. +// AssignedTargetingOption when targeting_type is `TARGETING_TYPE_LANGUAGE`. type LanguageAssignedTargetingOptionDetails struct { - // DisplayName: Output only. The display name of the language (e.g., - // "French"). + // DisplayName: Output only. The display name of the language (e.g., "French"). DisplayName string `json:"displayName,omitempty"` - // Negative: Indicates if this option is being negatively targeted. All - // assigned language targeting options on the same resource must have - // the same value for this field. + // assigned language targeting options on the same resource must have the same + // value for this field. Negative bool `json:"negative,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_LANGUAGE`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_LANGUAGE`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguageAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s LanguageAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod LanguageAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LanguageTargetingOptionDetails: Represents a targetable language. -// This will be populated in the language_details field when -// targeting_type is `TARGETING_TYPE_LANGUAGE`. +// LanguageTargetingOptionDetails: Represents a targetable language. This will +// be populated in the language_details field when targeting_type is +// `TARGETING_TYPE_LANGUAGE`. type LanguageTargetingOptionDetails struct { - // DisplayName: Output only. The display name of the language (e.g., - // "French"). + // DisplayName: Output only. The display name of the language (e.g., "French"). DisplayName string `json:"displayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LanguageTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s LanguageTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod LanguageTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LineItem: A single line item. type LineItem struct { - // AdvertiserId: Output only. The unique ID of the advertiser the line - // item belongs to. + // AdvertiserId: Output only. The unique ID of the advertiser the line item + // belongs to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // BidStrategy: Required. The bidding strategy of the line item. BidStrategy *BiddingStrategy `json:"bidStrategy,omitempty"` - // Budget: Required. The budget allocation setting of the line item. Budget *LineItemBudget `json:"budget,omitempty"` - - // CampaignId: Output only. The unique ID of the campaign that the line - // item belongs to. + // CampaignId: Output only. The unique ID of the campaign that the line item + // belongs to. CampaignId int64 `json:"campaignId,omitempty,string"` - // ConversionCounting: The conversion tracking setting of the line item. ConversionCounting *ConversionCountingConfig `json:"conversionCounting,omitempty"` - // CreativeIds: The IDs of the creatives associated with the line item. CreativeIds googleapi.Int64s `json:"creativeIds,omitempty"` - - // DisplayName: Required. The display name of the line item. Must be - // UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the line item. Must be UTF-8 + // encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // EntityStatus: Required. Controls whether or not the line item can - // spend its budget and bid on inventory. * For CreateLineItem method, - // only `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use - // UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` - // after creation. * A line item cannot be changed back to - // `ENTITY_STATUS_DRAFT` status from any other status. * If the line - // item's parent insertion order is not active, the line item can't - // spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`. + // EntityStatus: Required. Controls whether or not the line item can spend its + // budget and bid on inventory. * For CreateLineItem method, only + // `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use + // UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` after + // creation. * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` + // status from any other status. * If the line item's parent insertion order is + // not active, the line item can't spend its budget even if its own status is + // `ENTITY_STATUS_ACTIVE`. // // Possible values: - // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not - // specified or is unknown in this version. - // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend - // budget. - // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and - // budget spending are disabled. An entity can be deleted after - // archived. Deleted entities cannot be retrieved. - // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and - // budget spending are disabled. - // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for - // the entity. - // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled - // for deletion. + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not specified + // or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and budget + // spending are disabled. An entity can be deleted after archived. Deleted + // entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and budget + // spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for the + // entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled for + // deletion. EntityStatus string `json:"entityStatus,omitempty"` - - // ExcludeNewExchanges: Whether to exclude new exchanges from - // automatically being targeted by the line item. This field is false by - // default. + // ExcludeNewExchanges: Whether to exclude new exchanges from automatically + // being targeted by the line item. This field is false by default. ExcludeNewExchanges bool `json:"excludeNewExchanges,omitempty"` - // Flight: Required. The start and end time of the line item's flight. Flight *LineItemFlight `json:"flight,omitempty"` - - // FrequencyCap: Required. The impression frequency cap settings of the - // line item. The max_impressions field in this settings object must be - // used if assigning a limited cap. + // FrequencyCap: Required. The impression frequency cap settings of the line + // item. The max_impressions field in this settings object must be used if + // assigning a limited cap. FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"` - - // InsertionOrderId: Required. Immutable. The unique ID of the insertion - // order that the line item belongs to. + // InsertionOrderId: Required. Immutable. The unique ID of the insertion order + // that the line item belongs to. InsertionOrderId int64 `json:"insertionOrderId,omitempty,string"` - // IntegrationDetails: Integration details of the line item. IntegrationDetails *IntegrationDetails `json:"integrationDetails,omitempty"` - - // InventorySourceIds: The IDs of the private inventory sources assigned - // to the line item. + // InventorySourceIds: The IDs of the private inventory sources assigned to the + // line item. InventorySourceIds googleapi.Int64s `json:"inventorySourceIds,omitempty"` - - // LineItemId: Output only. The unique ID of the line item. Assigned by - // the system. + // LineItemId: Output only. The unique ID of the line item. Assigned by the + // system. LineItemId int64 `json:"lineItemId,omitempty,string"` - // LineItemType: Required. Immutable. The type of the line item. // // Possible values: - // "LINE_ITEM_TYPE_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. Line items of this type and their targeting - // cannot be created or updated using the API. - // "LINE_ITEM_TYPE_DISPLAY_DEFAULT" - Image, HTML5, native, or rich - // media ads. - // "LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL" - Display ads that - // drive installs of an app. - // "LINE_ITEM_TYPE_VIDEO_DEFAULT" - Video ads sold on a CPM basis for - // a variety of environments. - // "LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL" - Video ads that drive + // "LINE_ITEM_TYPE_UNSPECIFIED" - Type value is not specified or is unknown + // in this version. Line items of this type and their targeting cannot be + // created or updated using the API. + // "LINE_ITEM_TYPE_DISPLAY_DEFAULT" - Image, HTML5, native, or rich media + // ads. + // "LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL" - Display ads that drive // installs of an app. - // "LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INVENTORY" - Display ads served - // on mobile app inventory. Line items of this type and their targeting - // cannot be created or updated using the API. - // "LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INVENTORY" - Video ads served on - // mobile app inventory. Line items of this type and their targeting - // cannot be created or updated using the API. - // "LINE_ITEM_TYPE_AUDIO_DEFAULT" - RTB Audio ads sold for a variety - // of environments. - // "LINE_ITEM_TYPE_VIDEO_OVER_THE_TOP" - Over-the-top ads present in - // OTT insertion orders. This type is only applicable to line items with - // an insertion order of insertion_order_type `OVER_THE_TOP`. + // "LINE_ITEM_TYPE_VIDEO_DEFAULT" - Video ads sold on a CPM basis for a + // variety of environments. + // "LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL" - Video ads that drive installs + // of an app. + // "LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INVENTORY" - Display ads served on + // mobile app inventory. Line items of this type and their targeting cannot be + // created or updated using the API. + // "LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INVENTORY" - Video ads served on mobile + // app inventory. Line items of this type and their targeting cannot be created + // or updated using the API. + // "LINE_ITEM_TYPE_AUDIO_DEFAULT" - RTB Audio ads sold for a variety of + // environments. + // "LINE_ITEM_TYPE_VIDEO_OVER_THE_TOP" - Over-the-top ads present in OTT + // insertion orders. This type is only applicable to line items with an + // insertion order of insertion_order_type `OVER_THE_TOP`. // "LINE_ITEM_TYPE_DISPLAY_OUT_OF_HOME" - Display ads served on - // digital-out-of-home inventory. Line items of this type and their - // targeting cannot be created or updated using the API. + // digital-out-of-home inventory. Line items of this type and their targeting + // cannot be created or updated using the API. // "LINE_ITEM_TYPE_VIDEO_OUT_OF_HOME" - Video ads served on - // digital-out-of-home inventory. Line items of this type and their - // targeting cannot be created or updated using the API. + // digital-out-of-home inventory. Line items of this type and their targeting + // cannot be created or updated using the API. LineItemType string `json:"lineItemType,omitempty"` - - // MobileApp: The mobile app promoted by the line item. This is - // applicable only when line_item_type is either - // `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or + // MobileApp: The mobile app promoted by the line item. This is applicable only + // when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or // `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`. MobileApp *MobileApp `json:"mobileApp,omitempty"` - // Name: Output only. The resource name of the line item. Name string `json:"name,omitempty"` - // Pacing: Required. The budget spending speed setting of the line item. Pacing *Pacing `json:"pacing,omitempty"` - - // PartnerCosts: The partner costs associated with the line item. If - // absent or empty in CreateLineItem method, the newly created line item - // will inherit partner costs from its parent insertion order. + // PartnerCosts: The partner costs associated with the line item. If absent or + // empty in CreateLineItem method, the newly created line item will inherit + // partner costs from its parent insertion order. PartnerCosts []*PartnerCost `json:"partnerCosts,omitempty"` - - // PartnerRevenueModel: Required. The partner revenue model setting of - // the line item. + // PartnerRevenueModel: Required. The partner revenue model setting of the line + // item. PartnerRevenueModel *PartnerRevenueModel `json:"partnerRevenueModel,omitempty"` - // ReservationType: Output only. The reservation type of the line item. // // Possible values: - // "RESERVATION_TYPE_UNSPECIFIED" - Reservation type value is not - // specified or is unknown in this version. - // "RESERVATION_TYPE_NOT_GUARANTEED" - Not created through a - // guaranteed inventory source. + // "RESERVATION_TYPE_UNSPECIFIED" - Reservation type value is not specified + // or is unknown in this version. + // "RESERVATION_TYPE_NOT_GUARANTEED" - Not created through a guaranteed + // inventory source. // "RESERVATION_TYPE_PROGRAMMATIC_GUARANTEED" - Created through a // programmatic guaranteed inventory source. - // "RESERVATION_TYPE_TAG_GUARANTEED" - Created through a tag - // guaranteed inventory source. + // "RESERVATION_TYPE_TAG_GUARANTEED" - Created through a tag guaranteed + // inventory source. ReservationType string `json:"reservationType,omitempty"` - // TargetingExpansion: The optimized targeting - // (//support.google.com/displayvideo/answer/12060859) settings of the - // line item. This config is only applicable for display, video, or - // audio line items that use automated bidding and positively target - // eligible audience lists. + // (//support.google.com/displayvideo/answer/12060859) settings of the line + // item. This config is only applicable for display, video, or audio line items + // that use automated bidding and positively target eligible audience lists. TargetingExpansion *TargetingExpansionConfig `json:"targetingExpansion,omitempty"` - - // UpdateTime: Output only. The timestamp when the line item was last - // updated. Assigned by the system. + // UpdateTime: Output only. The timestamp when the line item was last updated. + // Assigned by the system. UpdateTime string `json:"updateTime,omitempty"` - - // WarningMessages: Output only. The warning messages generated by the - // line item. These warnings do not block saving the line item, but some - // may block the line item from running. + // WarningMessages: Output only. The warning messages generated by the line + // item. These warnings do not block saving the line item, but some may block + // the line item from running. // // Possible values: - // "LINE_ITEM_WARNING_MESSAGE_UNSPECIFIED" - Not specified or is - // unknown. - // "INVALID_FLIGHT_DATES" - This line item has invalid flight dates. - // The line item will not run. + // "LINE_ITEM_WARNING_MESSAGE_UNSPECIFIED" - Not specified or is unknown. + // "INVALID_FLIGHT_DATES" - This line item has invalid flight dates. The line + // item will not run. // "EXPIRED" - This line item's end date is in the past. // "PENDING_FLIGHT" - This line item will begin running in the future. - // "ALL_PARTNER_ENABLED_EXCHANGES_NEGATIVELY_TARGETED" - All partner - // enabled exchanges are negatively targeted. The line item will not - // run. + // "ALL_PARTNER_ENABLED_EXCHANGES_NEGATIVELY_TARGETED" - All partner enabled + // exchanges are negatively targeted. The line item will not run. // "INVALID_INVENTORY_SOURCE" - No active inventory sources are being // targeted. The line item will not run. - // "APP_INVENTORY_INVALID_SITE_TARGETING" - This line item's Apps & - // URLs targeting doesn't include any mobile apps. This line item's type - // requires you to include mobile apps in your channel, sitelist, or - // apps targeting. The line item will not run. - // "APP_INVENTORY_INVALID_AUDIENCE_LISTS" - This line item isn't - // targeting any mobile users. This line item's type requires you to - // target a user list with mobile users. The line item will not run. - // "NO_VALID_CREATIVE" - This line item does not contain any valid - // creative. The line item will not run. - // "PARENT_INSERTION_ORDER_PAUSED" - The insertion order of this line - // item is paused. The line item will not run. - // "PARENT_INSERTION_ORDER_EXPIRED" - The insertion order of this line - // item has its end date set in the past. The line item will not run. - // "NO_POSITIVE_AUDIENCE_LIST_TARGETED" - This line item does not - // target any audience lists, which may result in spending your budget - // too quickly. - // "APP_INSTALL_NO_CONVERSION_PIXEL" - This app install line item does - // not have any conversion pixel set up. - // "TARGETING_REVOKED_OR_CLOSED_USER_LIST" - This line item targets - // one or more user lists that are no longer available. In the future, - // this will prevent the line item from serving, so consider removing - // these lists from your targeting. - // "APP_INSTALL_NO_OPTIMAL_BIDDING_STRATEGY" - This app install line - // item does not have an optimal bidding strategy. - // "CREATIVE_SIZE_NOT_IN_USE_FOR_TARGETED_DEALS" - Deals targeted by - // this line item accept creative sizes which are not in use. This may - // limit the line item's delivery or performance. - // "NO_CREATIVE_FOR_TARGETED_DEALS" - This line item does not contain - // any creative for the targeted deals. - // "TARGETING_DEPRECATED_GEO_TARGET" - This line item targets a geo - // target that is deprecated. - // "DEPRECATED_FIRST_PARTY_AUDIENCE_EXCLUSION" - This line item uses - // the exclude_first_party_audience setting, which is deprecated and - // scheduled to sunset after **March 25, 2023**. Update your API - // integration to directly exclude any first-party audiences using - // audience targeting before **March 25, 2023** to account for the - // sunset of the exclude_first_party_audience field. + // "APP_INVENTORY_INVALID_SITE_TARGETING" - This line item's Apps & URLs + // targeting doesn't include any mobile apps. This line item's type requires + // you to include mobile apps in your channel, sitelist, or apps targeting. The + // line item will not run. + // "APP_INVENTORY_INVALID_AUDIENCE_LISTS" - This line item isn't targeting + // any mobile users. This line item's type requires you to target a user list + // with mobile users. The line item will not run. + // "NO_VALID_CREATIVE" - This line item does not contain any valid creative. + // The line item will not run. + // "PARENT_INSERTION_ORDER_PAUSED" - The insertion order of this line item is + // paused. The line item will not run. + // "PARENT_INSERTION_ORDER_EXPIRED" - The insertion order of this line item + // has its end date set in the past. The line item will not run. + // "NO_POSITIVE_AUDIENCE_LIST_TARGETED" - This line item does not target any + // audience lists, which may result in spending your budget too quickly. + // "APP_INSTALL_NO_CONVERSION_PIXEL" - This app install line item does not + // have any conversion pixel set up. + // "TARGETING_REVOKED_OR_CLOSED_USER_LIST" - This line item targets one or + // more user lists that are no longer available. In the future, this will + // prevent the line item from serving, so consider removing these lists from + // your targeting. + // "APP_INSTALL_NO_OPTIMAL_BIDDING_STRATEGY" - This app install line item + // does not have an optimal bidding strategy. + // "CREATIVE_SIZE_NOT_IN_USE_FOR_TARGETED_DEALS" - Deals targeted by this + // line item accept creative sizes which are not in use. This may limit the + // line item's delivery or performance. + // "NO_CREATIVE_FOR_TARGETED_DEALS" - This line item does not contain any + // creative for the targeted deals. + // "TARGETING_DEPRECATED_GEO_TARGET" - This line item targets a geo target + // that is deprecated. + // "DEPRECATED_FIRST_PARTY_AUDIENCE_EXCLUSION" - This line item uses the + // exclude_first_party_audience setting, which is deprecated and scheduled to + // sunset after **March 25, 2023**. Update your API integration to directly + // exclude any first-party audiences using audience targeting before **March + // 25, 2023** to account for the sunset of the exclude_first_party_audience + // field. WarningMessages []string `json:"warningMessages,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LineItem) MarshalJSON() ([]byte, error) { +func (s LineItem) MarshalJSON() ([]byte, error) { type NoMethod LineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LineItemBudget: Settings that control how budget is allocated. type LineItemBudget struct { // BudgetAllocationType: Required. The type of the budget allocation. // `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when - // automatic budget allocation is enabled for the parent insertion - // order. + // automatic budget allocation is enabled for the parent insertion order. // // Possible values: // "LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNSPECIFIED" - Type value is not // specified or is unknown in this version. - // "LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC" - Automatic budget - // allocation is enabled for the line item. - // "LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED" - A fixed max budget - // amount is allocated for the line item. - // "LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED" - No budget limit is - // applied to the line item. + // "LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC" - Automatic budget allocation + // is enabled for the line item. + // "LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED" - A fixed max budget amount is + // allocated for the line item. + // "LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED" - No budget limit is applied + // to the line item. BudgetAllocationType string `json:"budgetAllocationType,omitempty"` - - // BudgetUnit: Output only. The budget unit specifies whether the budget - // is currency based or impression based. This value is inherited from - // the parent insertion order. + // BudgetUnit: Output only. The budget unit specifies whether the budget is + // currency based or impression based. This value is inherited from the parent + // insertion order. // // Possible values: - // "BUDGET_UNIT_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "BUDGET_UNIT_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. // "BUDGET_UNIT_CURRENCY" - Budgeting in currency amounts. // "BUDGET_UNIT_IMPRESSIONS" - Budgeting in impression amounts. BudgetUnit string `json:"budgetUnit,omitempty"` - - // MaxAmount: The maximum budget amount the line item will spend. Must - // be greater than 0. When budget_allocation_type is: * - // `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable - // and is set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, - // if budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents - // maximum budget amount to spend, in micros of the advertiser's - // currency. For example, 1500000 represents 1.5 standard units of the - // currency. - `BUDGET_UNIT_IMPRESSIONS`, this field represents the - // maximum number of impressions to serve. * - // `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not - // applicable and will be ignored by the system. + // MaxAmount: The maximum budget amount the line item will spend. Must be + // greater than 0. When budget_allocation_type is: * + // `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable and is + // set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if + // budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents maximum + // budget amount to spend, in micros of the advertiser's currency. For example, + // 1500000 represents 1.5 standard units of the currency. - + // `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number of + // impressions to serve. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this + // field is not applicable and will be ignored by the system. MaxAmount int64 `json:"maxAmount,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "BudgetAllocationType") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BudgetAllocationType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BudgetAllocationType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BudgetAllocationType") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LineItemBudget) MarshalJSON() ([]byte, error) { +func (s LineItemBudget) MarshalJSON() ([]byte, error) { type NoMethod LineItemBudget - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LineItemFlight: Settings that control the active duration of a line -// item. +// LineItemFlight: Settings that control the active duration of a line item. type LineItemFlight struct { // DateRange: The flight start and end dates of the line item. They are - // resolved relative to the parent advertiser's time zone. * Required - // when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output - // only otherwise. * When creating a new flight, both `start_date` and - // `end_date` must be in the future. * An existing flight with a - // `start_date` in the past has a mutable `end_date` but an immutable - // `start_date`. * `end_date` must be the `start_date` or later, both - // before the year 2037. + // resolved relative to the parent advertiser's time zone. * Required when + // flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only + // otherwise. * When creating a new flight, both `start_date` and `end_date` + // must be in the future. * An existing flight with a `start_date` in the past + // has a mutable `end_date` but an immutable `start_date`. * `end_date` must be + // the `start_date` or later, both before the year 2037. DateRange *DateRange `json:"dateRange,omitempty"` - // FlightDateType: Required. The type of the line item's flight dates. // // Possible values: - // "LINE_ITEM_FLIGHT_DATE_TYPE_UNSPECIFIED" - Type value is not - // specified or is unknown in this version. - // "LINE_ITEM_FLIGHT_DATE_TYPE_INHERITED" - The line item's flight - // dates are inherited from its parent insertion order. - // "LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM" - The line item uses its own - // custom flight dates. - // "LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER" - The line item uses a - // trigger. **Warning:** Line Items using manual triggers no longer - // serve in Display & Video 360. This value will sunset on August 1, - // 2023. Read our [feature deprecation - // announcement](/display-video/api/deprecations#features.manual_triggers - // ) for more information. + // "LINE_ITEM_FLIGHT_DATE_TYPE_UNSPECIFIED" - Type value is not specified or + // is unknown in this version. + // "LINE_ITEM_FLIGHT_DATE_TYPE_INHERITED" - The line item's flight dates are + // inherited from its parent insertion order. + // "LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM" - The line item uses its own custom + // flight dates. + // "LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER" - The line item uses a trigger. + // **Warning:** Line Items using manual triggers no longer serve in Display & + // Video 360. This value will sunset on August 1, 2023. Read our [feature + // deprecation + // announcement](/display-video/api/deprecations#features.manual_triggers) for + // more information. FlightDateType string `json:"flightDateType,omitempty"` - - // TriggerId: The ID of the manual trigger associated with the line - // item. * Required when flight_date_type is - // `LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER`. Must not be set otherwise. * - // When set, the line item's flight dates are inherited from its parent - // insertion order. * Active line items will spend when the selected - // trigger is activated within the parent insertion order's flight - // dates. **Warning:** Line Items using manual triggers no longer serve - // in Display & Video 360. This field will sunset on August 1, 2023. - // Read our feature deprecation announcement + // TriggerId: The ID of the manual trigger associated with the line item. * + // Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER`. Must + // not be set otherwise. * When set, the line item's flight dates are inherited + // from its parent insertion order. * Active line items will spend when the + // selected trigger is activated within the parent insertion order's flight + // dates. **Warning:** Line Items using manual triggers no longer serve in + // Display & Video 360. This field will sunset on August 1, 2023. Read our + // feature deprecation announcement // (/display-video/api/deprecations#features.manual_triggers) for more // information. TriggerId int64 `json:"triggerId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "DateRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DateRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DateRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LineItemFlight) MarshalJSON() ([]byte, error) { +func (s LineItemFlight) MarshalJSON() ([]byte, error) { type NoMethod LineItemFlight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAdvertiserAssignedTargetingOptionsResponse: Response message for // ListAdvertiserAssignedTargetingOptions. type ListAdvertiserAssignedTargetingOptionsResponse struct { - // AssignedTargetingOptions: The list of assigned targeting options. - // This list will be absent if empty. + // AssignedTargetingOptions: The list of assigned targeting options. This list + // will be absent if empty. AssignedTargetingOptions []*AssignedTargetingOption `json:"assignedTargetingOptions,omitempty"` - - // NextPageToken: A token identifying the next page of results. This - // value should be specified as the pageToken in a subsequent - // ListAdvertiserAssignedTargetingOptionsRequest to fetch the next page - // of results. This token will be absent if there are no more + // NextPageToken: A token identifying the next page of results. This value + // should be specified as the pageToken in a subsequent + // ListAdvertiserAssignedTargetingOptionsRequest to fetch the next page of + // results. This token will be absent if there are no more // assigned_targeting_options to return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedTargetingOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAdvertiserAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s ListAdvertiserAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAdvertiserAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListAdvertisersResponse struct { - // Advertisers: The list of advertisers. This list will be absent if - // empty. + // Advertisers: The list of advertisers. This list will be absent if empty. Advertisers []*Advertiser `json:"advertisers,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListAdvertisers` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListAdvertisers` method + // to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Advertisers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Advertisers") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Advertisers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAdvertisersResponse) MarshalJSON() ([]byte, error) { +func (s ListAdvertisersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAdvertisersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAssignedInventorySourcesResponse: Response message for // AssignedInventorySourceService.ListAssignedInventorySources. type ListAssignedInventorySourcesResponse struct { - // AssignedInventorySources: The list of assigned inventory sources. - // This list will be absent if empty. + // AssignedInventorySources: The list of assigned inventory sources. This list + // will be absent if empty. AssignedInventorySources []*AssignedInventorySource `json:"assignedInventorySources,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListAssignedInventorySources` method to retrieve the next page of - // results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to + // `ListAssignedInventorySources` method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedInventorySources") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedInventorySources") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedInventorySources") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedInventorySources") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAssignedInventorySourcesResponse) MarshalJSON() ([]byte, error) { +func (s ListAssignedInventorySourcesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAssignedInventorySourcesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAssignedLocationsResponse: Response message for // AssignedLocationService.ListAssignedLocations. type ListAssignedLocationsResponse struct { - // AssignedLocations: The list of assigned locations. This list will be - // absent if empty. + // AssignedLocations: The list of assigned locations. This list will be absent + // if empty. AssignedLocations []*AssignedLocation `json:"assignedLocations,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListAssignedLocations` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListAssignedLocations` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AssignedLocations") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedLocations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedLocations") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedLocations") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAssignedLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ListAssignedLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAssignedLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListCampaignAssignedTargetingOptionsResponse: Response message for // ListCampaignAssignedTargetingOptions. type ListCampaignAssignedTargetingOptionsResponse struct { - // AssignedTargetingOptions: The list of assigned targeting options. - // This list will be absent if empty. + // AssignedTargetingOptions: The list of assigned targeting options. This list + // will be absent if empty. AssignedTargetingOptions []*AssignedTargetingOption `json:"assignedTargetingOptions,omitempty"` - - // NextPageToken: A token identifying the next page of results. This - // value should be specified as the pageToken in a subsequent + // NextPageToken: A token identifying the next page of results. This value + // should be specified as the pageToken in a subsequent // ListCampaignAssignedTargetingOptionsRequest to fetch the next page of // results. This token will be absent if there are no more // assigned_targeting_options to return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedTargetingOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCampaignAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s ListCampaignAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCampaignAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListCampaignsResponse struct { // Campaigns: The list of campaigns. This list will be absent if empty. Campaigns []*Campaign `json:"campaigns,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListCampaigns` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListCampaigns` method to + // retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Campaigns") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Campaigns") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Campaigns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCampaignsResponse) MarshalJSON() ([]byte, error) { +func (s ListCampaignsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCampaignsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListChannelsResponse struct { // Channels: The list of channels. This list will be absent if empty. Channels []*Channel `json:"channels,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListChannels` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListChannels` method to + // retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Channels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Channels") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Channels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListChannelsResponse) MarshalJSON() ([]byte, error) { +func (s ListChannelsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListChannelsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListCombinedAudiencesResponse struct { - // CombinedAudiences: The list of combined audiences. This list will be - // absent if empty. + // CombinedAudiences: The list of combined audiences. This list will be absent + // if empty. CombinedAudiences []*CombinedAudience `json:"combinedAudiences,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListCombinedAudiences` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListCombinedAudiences` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CombinedAudiences") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CombinedAudiences") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CombinedAudiences") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CombinedAudiences") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCombinedAudiencesResponse) MarshalJSON() ([]byte, error) { +func (s ListCombinedAudiencesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCombinedAudiencesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListCreativesResponse struct { // Creatives: The list of creatives. This list will be absent if empty. Creatives []*Creative `json:"creatives,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListCreativesRequest` method to retrieve the next page of results. - // If this field is null, it means this is the last page. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListCreativesRequest` + // method to retrieve the next page of results. If this field is null, it means + // this is the last page. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Creatives") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Creatives") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Creatives") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCreativesResponse) MarshalJSON() ([]byte, error) { +func (s ListCreativesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCreativesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListCustomBiddingAlgorithmsResponse struct { - // CustomBiddingAlgorithms: The list of custom bidding algorithms. This - // list will be absent if empty. + // CustomBiddingAlgorithms: The list of custom bidding algorithms. This list + // will be absent if empty. CustomBiddingAlgorithms []*CustomBiddingAlgorithm `json:"customBiddingAlgorithms,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListCustomBiddingAlgorithmsRequest` method to retrieve the next page - // of results. If this field is null, it means this is the last page. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to + // `ListCustomBiddingAlgorithmsRequest` method to retrieve the next page of + // results. If this field is null, it means this is the last page. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "CustomBiddingAlgorithms") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomBiddingAlgorithms") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomBiddingAlgorithms") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CustomBiddingAlgorithms") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCustomBiddingAlgorithmsResponse) MarshalJSON() ([]byte, error) { +func (s ListCustomBiddingAlgorithmsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCustomBiddingAlgorithmsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListCustomBiddingScriptsResponse struct { - // CustomBiddingScripts: The list of custom bidding scripts. This list - // will be absent if empty. + // CustomBiddingScripts: The list of custom bidding scripts. This list will be + // absent if empty. CustomBiddingScripts []*CustomBiddingScript `json:"customBiddingScripts,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to // `ListCustomBiddingScriptsRequest` method to retrieve the next page of // results. If this field is null, it means this is the last page. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "CustomBiddingScripts") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomBiddingScripts") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomBiddingScripts") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CustomBiddingScripts") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCustomBiddingScriptsResponse) MarshalJSON() ([]byte, error) { +func (s ListCustomBiddingScriptsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCustomBiddingScriptsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListCustomListsResponse struct { - // CustomLists: The list of custom lists. This list will be absent if - // empty. + // CustomLists: The list of custom lists. This list will be absent if empty. CustomLists []*CustomList `json:"customLists,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListCustomLists` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListCustomLists` method + // to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CustomLists") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomLists") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomLists") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCustomListsResponse) MarshalJSON() ([]byte, error) { +func (s ListCustomListsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCustomListsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListFirstAndThirdPartyAudiencesResponse struct { - // FirstAndThirdPartyAudiences: The list of first and third party - // audiences. Audience size properties will not be included. This list - // will be absent if empty. + // FirstAndThirdPartyAudiences: The list of first and third party audiences. + // Audience size properties will not be included. This list will be absent if + // empty. FirstAndThirdPartyAudiences []*FirstAndThirdPartyAudience `json:"firstAndThirdPartyAudiences,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to // `ListFirstAndThirdPartyAudiences` method to retrieve the next page of // results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "FirstAndThirdPartyAudiences") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "FirstAndThirdPartyAudiences") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "FirstAndThirdPartyAudiences") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "FirstAndThirdPartyAudiences") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListFirstAndThirdPartyAudiencesResponse) MarshalJSON() ([]byte, error) { +func (s ListFirstAndThirdPartyAudiencesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListFirstAndThirdPartyAudiencesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListGoogleAudiencesResponse struct { - // GoogleAudiences: The list of Google audiences. This list will be - // absent if empty. + // GoogleAudiences: The list of Google audiences. This list will be absent if + // empty. GoogleAudiences []*GoogleAudience `json:"googleAudiences,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListGoogleAudiences` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListGoogleAudiences` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "GoogleAudiences") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GoogleAudiences") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GoogleAudiences") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListGoogleAudiencesResponse) MarshalJSON() ([]byte, error) { +func (s ListGoogleAudiencesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListGoogleAudiencesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListGuaranteedOrdersResponse struct { - // GuaranteedOrders: The list of guaranteed orders. This list will be - // absent if empty. + // GuaranteedOrders: The list of guaranteed orders. This list will be absent if + // empty. GuaranteedOrders []*GuaranteedOrder `json:"guaranteedOrders,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListGuaranteedOrders` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListGuaranteedOrders` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "GuaranteedOrders") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GuaranteedOrders") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GuaranteedOrders") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListGuaranteedOrdersResponse) MarshalJSON() ([]byte, error) { +func (s ListGuaranteedOrdersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListGuaranteedOrdersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListInsertionOrderAssignedTargetingOptionsResponse struct { - // AssignedTargetingOptions: The list of assigned targeting options. - // This list will be absent if empty. + // AssignedTargetingOptions: The list of assigned targeting options. This list + // will be absent if empty. AssignedTargetingOptions []*AssignedTargetingOption `json:"assignedTargetingOptions,omitempty"` - - // NextPageToken: A token identifying the next page of results. This - // value should be specified as the pageToken in a subsequent - // ListInsertionOrderAssignedTargetingOptionsRequest to fetch the next - // page of results. This token will be absent if there are no more + // NextPageToken: A token identifying the next page of results. This value + // should be specified as the pageToken in a subsequent + // ListInsertionOrderAssignedTargetingOptionsRequest to fetch the next page of + // results. This token will be absent if there are no more // assigned_targeting_options to return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedTargetingOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListInsertionOrderAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s ListInsertionOrderAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListInsertionOrderAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListInsertionOrdersResponse struct { - // InsertionOrders: The list of insertion orders. This list will be - // absent if empty. + // InsertionOrders: The list of insertion orders. This list will be absent if + // empty. InsertionOrders []*InsertionOrder `json:"insertionOrders,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListInsertionOrders` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListInsertionOrders` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "InsertionOrders") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InsertionOrders") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InsertionOrders") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListInsertionOrdersResponse) MarshalJSON() ([]byte, error) { +func (s ListInsertionOrdersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListInsertionOrdersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListInventorySourceGroupsResponse: Response message for // InventorySourceGroupService.ListInventorySourceGroups. type ListInventorySourceGroupsResponse struct { - // InventorySourceGroups: The list of inventory source groups. This list - // will be absent if empty. + // InventorySourceGroups: The list of inventory source groups. This list will + // be absent if empty. InventorySourceGroups []*InventorySourceGroup `json:"inventorySourceGroups,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListInventorySourceGroups` method to retrieve the next page of - // results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to + // `ListInventorySourceGroups` method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "InventorySourceGroups") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "InventorySourceGroups") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "InventorySourceGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListInventorySourceGroupsResponse) MarshalJSON() ([]byte, error) { +func (s ListInventorySourceGroupsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListInventorySourceGroupsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListInventorySourcesResponse struct { - // InventorySources: The list of inventory sources. This list will be - // absent if empty. + // InventorySources: The list of inventory sources. This list will be absent if + // empty. InventorySources []*InventorySource `json:"inventorySources,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListInventorySources` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListInventorySources` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "InventorySources") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventorySources") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventorySources") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListInventorySourcesResponse) MarshalJSON() ([]byte, error) { +func (s ListInventorySourcesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListInventorySourcesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListInvoicesResponse struct { // Invoices: The list of invoices. This list will be absent if empty. Invoices []*Invoice `json:"invoices,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListInvoices` method to retrieve the next page of results. This - // token will be absent if there are no more invoices to return. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListInvoices` method to + // retrieve the next page of results. This token will be absent if there are no + // more invoices to return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Invoices") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Invoices") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Invoices") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListInvoicesResponse) MarshalJSON() ([]byte, error) { +func (s ListInvoicesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListInvoicesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListLineItemAssignedTargetingOptionsResponse: Response message for // ListLineItemAssignedTargetingOptions. type ListLineItemAssignedTargetingOptionsResponse struct { - // AssignedTargetingOptions: The list of assigned targeting options. - // This list will be absent if empty. + // AssignedTargetingOptions: The list of assigned targeting options. This list + // will be absent if empty. AssignedTargetingOptions []*AssignedTargetingOption `json:"assignedTargetingOptions,omitempty"` - - // NextPageToken: A token identifying the next page of results. This - // value should be specified as the pageToken in a subsequent + // NextPageToken: A token identifying the next page of results. This value + // should be specified as the pageToken in a subsequent // ListLineItemAssignedTargetingOptionsRequest to fetch the next page of // results. This token will be absent if there are no more // assigned_targeting_options to return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedTargetingOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLineItemAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s ListLineItemAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLineItemAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListLineItemsResponse struct { // LineItems: The list of line items. This list will be absent if empty. LineItems []*LineItem `json:"lineItems,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListLineItems` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListLineItems` method to + // retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "LineItems") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LineItems") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LineItems") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLineItemsResponse) MarshalJSON() ([]byte, error) { +func (s ListLineItemsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLineItemsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListLocationListsResponse struct { - // LocationLists: The list of location lists. This list will be absent - // if empty. + // LocationLists: The list of location lists. This list will be absent if + // empty. LocationLists []*LocationList `json:"locationLists,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListLocationLists` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListLocationLists` method + // to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "LocationLists") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LocationLists") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LocationLists") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLocationListsResponse) MarshalJSON() ([]byte, error) { +func (s ListLocationListsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLocationListsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListManualTriggersResponse struct { - // ManualTriggers: The list of manual triggers. This list will be absent - // if empty. + // ManualTriggers: The list of manual triggers. This list will be absent if + // empty. ManualTriggers []*ManualTrigger `json:"manualTriggers,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListManualTriggers` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListManualTriggers` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ManualTriggers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ManualTriggers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ManualTriggers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListManualTriggersResponse) MarshalJSON() ([]byte, error) { +func (s ListManualTriggersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListManualTriggersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListNegativeKeywordListsResponse: Response message for // NegativeKeywordListService.ListNegativeKeywordLists. type ListNegativeKeywordListsResponse struct { - // NegativeKeywordLists: The list of negative keyword lists. This list - // will be absent if empty. + // NegativeKeywordLists: The list of negative keyword lists. This list will be + // absent if empty. NegativeKeywordLists []*NegativeKeywordList `json:"negativeKeywordLists,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListNegativeKeywordLists` method to retrieve the next page of - // results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListNegativeKeywordLists` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "NegativeKeywordLists") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "NegativeKeywordLists") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NegativeKeywordLists") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NegativeKeywordLists") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListNegativeKeywordListsResponse) MarshalJSON() ([]byte, error) { +func (s ListNegativeKeywordListsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListNegativeKeywordListsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListNegativeKeywordsResponse: Response message for // NegativeKeywordService.ListNegativeKeywords. type ListNegativeKeywordsResponse struct { - // NegativeKeywords: The list of negative keywords. This list will be - // absent if empty. + // NegativeKeywords: The list of negative keywords. This list will be absent if + // empty. NegativeKeywords []*NegativeKeyword `json:"negativeKeywords,omitempty"` - - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListNegativeKeywords` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListNegativeKeywords` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NegativeKeywords") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NegativeKeywords") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NegativeKeywords") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListNegativeKeywordsResponse) MarshalJSON() ([]byte, error) { +func (s ListNegativeKeywordsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListNegativeKeywordsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListPartnerAssignedTargetingOptionsResponse struct { - // AssignedTargetingOptions: The list of assigned targeting options. - // This list will be absent if empty. + // AssignedTargetingOptions: The list of assigned targeting options. This list + // will be absent if empty. AssignedTargetingOptions []*AssignedTargetingOption `json:"assignedTargetingOptions,omitempty"` - - // NextPageToken: A token identifying the next page of results. This - // value should be specified as the pageToken in a subsequent + // NextPageToken: A token identifying the next page of results. This value + // should be specified as the pageToken in a subsequent // ListPartnerAssignedTargetingOptionsRequest to fetch the next page of // results. This token will be absent if there are no more // assigned_targeting_options to return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssignedTargetingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedTargetingOptions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedTargetingOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedTargetingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPartnerAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s ListPartnerAssignedTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListPartnerAssignedTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListPartnersResponse struct { - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListPartners` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListPartners` method to + // retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // Partners: The list of partners. This list will be absent if empty. Partners []*Partner `json:"partners,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPartnersResponse) MarshalJSON() ([]byte, error) { +func (s ListPartnersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListPartnersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListSitesResponse: Response message for SiteService.ListSites. type ListSitesResponse struct { - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListSites` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListSites` method to + // retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // Sites: The list of sites. This list will be absent if empty. Sites []*Site `json:"sites,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListSitesResponse) MarshalJSON() ([]byte, error) { +func (s ListSitesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListSitesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListTargetingOptionsResponse: Response message for -// ListTargetingOptions. +// ListTargetingOptionsResponse: Response message for ListTargetingOptions. type ListTargetingOptionsResponse struct { - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListTargetingOptions` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListTargetingOptions` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - - // TargetingOptions: The list of targeting options. This list will be - // absent if empty. + // TargetingOptions: The list of targeting options. This list will be absent if + // empty. TargetingOptions []*TargetingOption `json:"targetingOptions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s ListTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListUsersResponse struct { - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `ListUsers` method to retrieve the next page of results. This token - // will be absent if there are no more results to return. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `ListUsers` method to + // retrieve the next page of results. This token will be absent if there are no + // more results to return. NextPageToken string `json:"nextPageToken,omitempty"` - // Users: The list of users. This list will be absent if empty. Users []*User `json:"users,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListUsersResponse) MarshalJSON() ([]byte, error) { +func (s ListUsersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListUsersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LocationList: A list of locations used for targeting. type LocationList struct { - // AdvertiserId: Required. Immutable. The unique ID of the advertiser - // the location list belongs to. + // AdvertiserId: Required. Immutable. The unique ID of the advertiser the + // location list belongs to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // DisplayName: Required. The display name of the location list. Must be - // UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the location list. Must be UTF-8 + // encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // LocationListId: Output only. The unique ID of the location list. - // Assigned by the system. + // LocationListId: Output only. The unique ID of the location list. Assigned by + // the system. LocationListId int64 `json:"locationListId,omitempty,string"` - - // LocationType: Required. Immutable. The type of location. All - // locations in the list will share this type. + // LocationType: Required. Immutable. The type of location. All locations in + // the list will share this type. // // Possible values: - // "TARGETING_LOCATION_TYPE_UNSPECIFIED" - Default value when type is - // not specified or is unknown. - // "TARGETING_LOCATION_TYPE_PROXIMITY" - The type for proximity geo - // location. - // "TARGETING_LOCATION_TYPE_REGIONAL" - The type for regional geo - // location. + // "TARGETING_LOCATION_TYPE_UNSPECIFIED" - Default value when type is not + // specified or is unknown. + // "TARGETING_LOCATION_TYPE_PROXIMITY" - The type for proximity geo location. + // "TARGETING_LOCATION_TYPE_REGIONAL" - The type for regional geo location. LocationType string `json:"locationType,omitempty"` - // Name: Output only. The resource name of the location list. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LocationList) MarshalJSON() ([]byte, error) { +func (s LocationList) MarshalJSON() ([]byte, error) { type NoMethod LocationList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LookbackWindow: Specifies how many days into the past to look when // determining whether to record a conversion. type LookbackWindow struct { - // ClickDays: Lookback window, in days, from the last time a given user - // clicked on one of your ads. + // ClickDays: Lookback window, in days, from the last time a given user clicked + // on one of your ads. ClickDays int64 `json:"clickDays,omitempty"` - - // ImpressionDays: Lookback window, in days, from the last time a given - // user viewed one of your ads. + // ImpressionDays: Lookback window, in days, from the last time a given user + // viewed one of your ads. ImpressionDays int64 `json:"impressionDays,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickDays") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickDays") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClickDays") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LookbackWindow) MarshalJSON() ([]byte, error) { +func (s LookbackWindow) MarshalJSON() ([]byte, error) { type NoMethod LookbackWindow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LookupInvoiceCurrencyResponse struct { // CurrencyCode: Currency used by the advertiser in ISO 4217 format. CurrencyCode string `json:"currencyCode,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CurrencyCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrencyCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CurrencyCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LookupInvoiceCurrencyResponse) MarshalJSON() ([]byte, error) { +func (s LookupInvoiceCurrencyResponse) MarshalJSON() ([]byte, error) { type NoMethod LookupInvoiceCurrencyResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ManualTrigger: A single manual trigger in Display & Video 360. -// **Warning:** Line Items using manual triggers no longer serve in -// Display & Video 360. This resource will sunset on August 1, 2023. -// Read our feature deprecation announcement -// (/display-video/api/deprecations#features.manual_triggers) for more -// information. +// ManualTrigger: A single manual trigger in Display & Video 360. **Warning:** +// Line Items using manual triggers no longer serve in Display & Video 360. +// This resource will sunset on August 1, 2023. Read our feature deprecation +// announcement (/display-video/api/deprecations#features.manual_triggers) for +// more information. type ManualTrigger struct { - // ActivationDurationMinutes: Required. The maximum duration of each - // activation in minutes. Must be between 1 and 360 inclusive. After - // this duration, the trigger will be automatically deactivated. + // ActivationDurationMinutes: Required. The maximum duration of each activation + // in minutes. Must be between 1 and 360 inclusive. After this duration, the + // trigger will be automatically deactivated. ActivationDurationMinutes int64 `json:"activationDurationMinutes,omitempty,string"` - - // AdvertiserId: Required. Immutable. The unique ID of the advertiser - // that the manual trigger belongs to. + // AdvertiserId: Required. Immutable. The unique ID of the advertiser that the + // manual trigger belongs to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // DisplayName: Required. The display name of the manual trigger. Must - // be UTF-8 encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the manual trigger. Must be UTF-8 + // encoded with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // LatestActivationTime: Output only. The timestamp of the trigger's - // latest activation. + // LatestActivationTime: Output only. The timestamp of the trigger's latest + // activation. LatestActivationTime string `json:"latestActivationTime,omitempty"` - // Name: Output only. The resource name of the manual trigger. Name string `json:"name,omitempty"` - - // State: Output only. The state of the manual trigger. Will be set to - // the `INACTIVE` state upon creation. + // State: Output only. The state of the manual trigger. Will be set to the + // `INACTIVE` state upon creation. // // Possible values: - // "STATE_UNSPECIFIED" - Default value when state is not specified or - // is unknown in this version. - // "INACTIVE" - The trigger is currently inactive and ready to be - // activated. + // "STATE_UNSPECIFIED" - Default value when state is not specified or is + // unknown in this version. + // "INACTIVE" - The trigger is currently inactive and ready to be activated. // "ACTIVE" - The trigger is currently active (activated). State string `json:"state,omitempty"` - // TriggerId: Output only. The unique ID of the manual trigger. TriggerId int64 `json:"triggerId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "ActivationDurationMinutes") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ActivationDurationMinutes") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ActivationDurationMinutes") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActivationDurationMinutes") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManualTrigger) MarshalJSON() ([]byte, error) { +func (s ManualTrigger) MarshalJSON() ([]byte, error) { type NoMethod ManualTrigger - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MaximizeSpendBidStrategy: A strategy that automatically adjusts the -// bid to optimize a specified performance goal while spending the full -// budget. +// MaximizeSpendBidStrategy: A strategy that automatically adjusts the bid to +// optimize a specified performance goal while spending the full budget. type MaximizeSpendBidStrategy struct { - // CustomBiddingAlgorithmId: The ID of the Custom Bidding Algorithm used - // by this strategy. Only applicable when performance_goal_type is set - // to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. + // CustomBiddingAlgorithmId: The ID of the Custom Bidding Algorithm used by + // this strategy. Only applicable when performance_goal_type is set to + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. CustomBiddingAlgorithmId int64 `json:"customBiddingAlgorithmId,omitempty,string"` - - // MaxAverageCpmBidAmountMicros: The maximum average CPM that may be - // bid, in micros of the advertiser's currency. Must be greater than or - // equal to a billable unit of the given currency. For example, 1500000 - // represents 1.5 standard units of the currency. + // MaxAverageCpmBidAmountMicros: The maximum average CPM that may be bid, in + // micros of the advertiser's currency. Must be greater than or equal to a + // billable unit of the given currency. For example, 1500000 represents 1.5 + // standard units of the currency. MaxAverageCpmBidAmountMicros int64 `json:"maxAverageCpmBidAmountMicros,omitempty,string"` - - // PerformanceGoalType: Required. The type of the performance goal that - // the bidding strategy tries to minimize while spending the full - // budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not - // supported for this strategy. + // PerformanceGoalType: Required. The type of the performance goal that the + // bidding strategy tries to minimize while spending the full budget. + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for + // this strategy. // // Possible values: - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_UNSPECIFIED" - Type value - // is not specified or is unknown in this version. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_UNSPECIFIED" - Type value is not + // specified or is unknown in this version. // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA" - Cost per action. // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC" - Cost per click. - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM" - Viewable - // CPM. - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO" - Custom - // bidding algorithm. - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA" - Completed inview - // and audible views. - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN" - Inview time over - // 10 secs views. - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED" - Viewable - // impressions. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM" - Viewable CPM. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO" - Custom bidding + // algorithm. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA" - Completed inview and + // audible views. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN" - Inview time over 10 + // secs views. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED" - Viewable impressions. PerformanceGoalType string `json:"performanceGoalType,omitempty"` - - // RaiseBidForDeals: Whether the strategy takes deal floor prices into - // account. + // RaiseBidForDeals: Whether the strategy takes deal floor prices into account. RaiseBidForDeals bool `json:"raiseBidForDeals,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomBiddingAlgorithmId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomBiddingAlgorithmId") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomBiddingAlgorithmId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CustomBiddingAlgorithmId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MaximizeSpendBidStrategy) MarshalJSON() ([]byte, error) { +func (s MaximizeSpendBidStrategy) MarshalJSON() ([]byte, error) { type NoMethod MaximizeSpendBidStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MeasurementConfig: Measurement settings of a partner. type MeasurementConfig struct { - // Dv360ToCmCostReportingEnabled: Whether or not to report DV360 cost to - // CM360. + // Dv360ToCmCostReportingEnabled: Whether or not to report DV360 cost to CM360. Dv360ToCmCostReportingEnabled bool `json:"dv360ToCmCostReportingEnabled,omitempty"` - - // Dv360ToCmDataSharingEnabled: Whether or not to include DV360 data in - // CM360 data transfer reports. + // Dv360ToCmDataSharingEnabled: Whether or not to include DV360 data in CM360 + // data transfer reports. Dv360ToCmDataSharingEnabled bool `json:"dv360ToCmDataSharingEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "Dv360ToCmCostReportingEnabled") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "Dv360ToCmCostReportingEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "Dv360ToCmCostReportingEnabled") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dv360ToCmCostReportingEnabled") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MeasurementConfig) MarshalJSON() ([]byte, error) { +func (s MeasurementConfig) MarshalJSON() ([]byte, error) { type NoMethod MeasurementConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MobileApp: A mobile app promoted by a mobile app install line item. type MobileApp struct { - // AppId: Required. The ID of the app provided by the platform store. - // Android apps are identified by the bundle ID used by Android's Play - // store, such as `com.google.android.gm`. iOS apps are identified by a - // nine-digit app ID used by Apple's App store, such as `422689480`. + // AppId: Required. The ID of the app provided by the platform store. Android + // apps are identified by the bundle ID used by Android's Play store, such as + // `com.google.android.gm`. iOS apps are identified by a nine-digit app ID used + // by Apple's App store, such as `422689480`. AppId string `json:"appId,omitempty"` - // DisplayName: Output only. The app name. DisplayName string `json:"displayName,omitempty"` - // Platform: Output only. The app platform. // // Possible values: @@ -12511,807 +10209,642 @@ type MobileApp struct { // "IOS" - iOS platform. // "ANDROID" - Android platform. Platform string `json:"platform,omitempty"` - // Publisher: Output only. The app publisher. Publisher string `json:"publisher,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AppId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileApp) MarshalJSON() ([]byte, error) { +func (s MobileApp) MarshalJSON() ([]byte, error) { type NoMethod MobileApp - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileDeviceIdList: Wrapper message for a list of mobile device IDs -// defining Customer Match audience members. +// MobileDeviceIdList: Wrapper message for a list of mobile device IDs defining +// Customer Match audience members. type MobileDeviceIdList struct { - // Consent: Input only. The consent setting for the users in - // mobile_device_ids. Leaving this field unset indicates that consent is - // not specified. If ad_user_data or ad_personalization fields are set - // to `CONSENT_STATUS_DENIED`, the request will return an error. + // Consent: Input only. The consent setting for the users in mobile_device_ids. + // Leaving this field unset indicates that consent is not specified. If + // ad_user_data or ad_personalization fields are set to + // `CONSENT_STATUS_DENIED`, the request will return an error. Consent *Consent `json:"consent,omitempty"` - // MobileDeviceIds: A list of mobile device IDs defining Customer Match - // audience members. The size of mobile_device_ids mustn't be greater - // than 500,000. + // audience members. The size of mobile_device_ids mustn't be greater than + // 500,000. MobileDeviceIds []string `json:"mobileDeviceIds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Consent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Consent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Consent") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Consent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MobileDeviceIdList) MarshalJSON() ([]byte, error) { +func (s MobileDeviceIdList) MarshalJSON() ([]byte, error) { type NoMethod MobileDeviceIdList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Money: Represents an amount of money with its currency type. type Money struct { // CurrencyCode: The three-letter currency code defined in ISO 4217. CurrencyCode string `json:"currencyCode,omitempty"` - - // Nanos: Number of nano (10^-9) units of the amount. The value must be - // between -999,999,999 and +999,999,999 inclusive. If `units` is - // positive, `nanos` must be positive or zero. If `units` is zero, - // `nanos` can be positive, zero, or negative. If `units` is negative, - // `nanos` must be negative or zero. For example $-1.75 is represented - // as `units`=-1 and `nanos`=-750,000,000. + // Nanos: Number of nano (10^-9) units of the amount. The value must be between + // -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` + // must be positive or zero. If `units` is zero, `nanos` can be positive, zero, + // or negative. If `units` is negative, `nanos` must be negative or zero. For + // example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. Nanos int64 `json:"nanos,omitempty"` - - // Units: The whole units of the amount. For example if `currencyCode` - // is "USD", then 1 unit is one US dollar. + // Units: The whole units of the amount. For example if `currencyCode` is + // "USD", then 1 unit is one US dollar. Units int64 `json:"units,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CurrencyCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrencyCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CurrencyCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Money) MarshalJSON() ([]byte, error) { +func (s Money) MarshalJSON() ([]byte, error) { type NoMethod Money - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NativeContentPositionAssignedTargetingOptionDetails: Details for -// native content position assigned targeting option. This will be -// populated in the native_content_position_details field when -// targeting_type is `TARGETING_TYPE_NATIVE_CONTENT_POSITION`. -// Explicitly targeting all options is not supported. Remove all native -// content position targeting options to achieve this effect. +// NativeContentPositionAssignedTargetingOptionDetails: Details for native +// content position assigned targeting option. This will be populated in the +// native_content_position_details field when targeting_type is +// `TARGETING_TYPE_NATIVE_CONTENT_POSITION`. Explicitly targeting all options +// is not supported. Remove all native content position targeting options to +// achieve this effect. type NativeContentPositionAssignedTargetingOptionDetails struct { // ContentPosition: Required. The content position. // // Possible values: - // "NATIVE_CONTENT_POSITION_UNSPECIFIED" - Native content position is - // not specified in this version. This enum is a place holder for a - // default value and does not represent a real native content position. + // "NATIVE_CONTENT_POSITION_UNSPECIFIED" - Native content position is not + // specified in this version. This enum is a place holder for a default value + // and does not represent a real native content position. // "NATIVE_CONTENT_POSITION_UNKNOWN" - The native content position is // unknown. // "NATIVE_CONTENT_POSITION_IN_ARTICLE" - Native content position is // in-article, i.e., ads appear between the paragraphs of pages. - // "NATIVE_CONTENT_POSITION_IN_FEED" - Native content position is - // in-feed, i.e., ads appear in a scrollable stream of content. A feed - // is typically editorial (e.g. a list of articles or news) or listings - // (e.g. a list of products or services). + // "NATIVE_CONTENT_POSITION_IN_FEED" - Native content position is in-feed, + // i.e., ads appear in a scrollable stream of content. A feed is typically + // editorial (e.g. a list of articles or news) or listings (e.g. a list of + // products or services). // "NATIVE_CONTENT_POSITION_PERIPHERAL" - Native content position is - // peripheral, i.e., ads appear outside of core content on pages, such - // as the right- or left-hand side of the page. - // "NATIVE_CONTENT_POSITION_RECOMMENDATION" - Native content position - // is recommendation, i.e., ads appear in sections for recommended - // content. + // peripheral, i.e., ads appear outside of core content on pages, such as the + // right- or left-hand side of the page. + // "NATIVE_CONTENT_POSITION_RECOMMENDATION" - Native content position is + // recommendation, i.e., ads appear in sections for recommended content. ContentPosition string `json:"contentPosition,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_NATIVE_CONTENT_POSITION`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentPosition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentPosition") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentPosition") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NativeContentPositionAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s NativeContentPositionAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod NativeContentPositionAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NativeContentPositionTargetingOptionDetails: Represents a targetable -// native content position. This will be populated in the +// NativeContentPositionTargetingOptionDetails: Represents a targetable native +// content position. This will be populated in the // native_content_position_details field when targeting_type is // `TARGETING_TYPE_NATIVE_CONTENT_POSITION`. type NativeContentPositionTargetingOptionDetails struct { // ContentPosition: Output only. The content position. // // Possible values: - // "NATIVE_CONTENT_POSITION_UNSPECIFIED" - Native content position is - // not specified in this version. This enum is a place holder for a - // default value and does not represent a real native content position. + // "NATIVE_CONTENT_POSITION_UNSPECIFIED" - Native content position is not + // specified in this version. This enum is a place holder for a default value + // and does not represent a real native content position. // "NATIVE_CONTENT_POSITION_UNKNOWN" - The native content position is // unknown. // "NATIVE_CONTENT_POSITION_IN_ARTICLE" - Native content position is // in-article, i.e., ads appear between the paragraphs of pages. - // "NATIVE_CONTENT_POSITION_IN_FEED" - Native content position is - // in-feed, i.e., ads appear in a scrollable stream of content. A feed - // is typically editorial (e.g. a list of articles or news) or listings - // (e.g. a list of products or services). + // "NATIVE_CONTENT_POSITION_IN_FEED" - Native content position is in-feed, + // i.e., ads appear in a scrollable stream of content. A feed is typically + // editorial (e.g. a list of articles or news) or listings (e.g. a list of + // products or services). // "NATIVE_CONTENT_POSITION_PERIPHERAL" - Native content position is - // peripheral, i.e., ads appear outside of core content on pages, such - // as the right- or left-hand side of the page. - // "NATIVE_CONTENT_POSITION_RECOMMENDATION" - Native content position - // is recommendation, i.e., ads appear in sections for recommended - // content. + // peripheral, i.e., ads appear outside of core content on pages, such as the + // right- or left-hand side of the page. + // "NATIVE_CONTENT_POSITION_RECOMMENDATION" - Native content position is + // recommendation, i.e., ads appear in sections for recommended content. ContentPosition string `json:"contentPosition,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentPosition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentPosition") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentPosition") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NativeContentPositionTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s NativeContentPositionTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod NativeContentPositionTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NegativeKeyword: A negatively targeted keyword that belongs to a -// negative keyword list. +// NegativeKeyword: A negatively targeted keyword that belongs to a negative +// keyword list. type NegativeKeyword struct { - // KeywordValue: Required. Immutable. The negatively targeted keyword, - // for example `car insurance`. Must be UTF-8 encoded with a maximum - // size of 255 bytes. Maximum number of characters is 80. Maximum number - // of words is 10. Valid characters are restricted to ASCII characters - // only. The only URL-escaping permitted is for representing whitespace - // between words. Leading or trailing whitespace is ignored. + // KeywordValue: Required. Immutable. The negatively targeted keyword, for + // example `car insurance`. Must be UTF-8 encoded with a maximum size of 255 + // bytes. Maximum number of characters is 80. Maximum number of words is 10. + // Valid characters are restricted to ASCII characters only. The only + // URL-escaping permitted is for representing whitespace between words. Leading + // or trailing whitespace is ignored. KeywordValue string `json:"keywordValue,omitempty"` - // Name: Output only. The resource name of the negative keyword. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "KeywordValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KeywordValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "KeywordValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NegativeKeyword) MarshalJSON() ([]byte, error) { +func (s NegativeKeyword) MarshalJSON() ([]byte, error) { type NoMethod NegativeKeyword - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NegativeKeywordList: A list of negative keywords used for targeting. type NegativeKeywordList struct { - // AdvertiserId: Output only. The unique ID of the advertiser the - // negative keyword list belongs to. + // AdvertiserId: Output only. The unique ID of the advertiser the negative + // keyword list belongs to. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // DisplayName: Required. The display name of the negative keyword list. - // Must be UTF-8 encoded with a maximum size of 255 bytes. + // DisplayName: Required. The display name of the negative keyword list. Must + // be UTF-8 encoded with a maximum size of 255 bytes. DisplayName string `json:"displayName,omitempty"` - // Name: Output only. The resource name of the negative keyword list. Name string `json:"name,omitempty"` - - // NegativeKeywordListId: Output only. The unique ID of the negative - // keyword list. Assigned by the system. + // NegativeKeywordListId: Output only. The unique ID of the negative keyword + // list. Assigned by the system. NegativeKeywordListId int64 `json:"negativeKeywordListId,omitempty,string"` - - // TargetedLineItemCount: Output only. Number of line items that are - // directly targeting this negative keyword list. + // TargetedLineItemCount: Output only. Number of line items that are directly + // targeting this negative keyword list. TargetedLineItemCount int64 `json:"targetedLineItemCount,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NegativeKeywordList) MarshalJSON() ([]byte, error) { +func (s NegativeKeywordList) MarshalJSON() ([]byte, error) { type NoMethod NegativeKeywordList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NegativeKeywordListAssignedTargetingOptionDetails: Targeting details -// for negative keyword list. This will be populated in the details -// field of an AssignedTargetingOption when targeting_type is +// NegativeKeywordListAssignedTargetingOptionDetails: Targeting details for +// negative keyword list. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`. type NegativeKeywordListAssignedTargetingOptionDetails struct { - // NegativeKeywordListId: Required. ID of the negative keyword list. - // Should refer to the negative_keyword_list_id field of a - // NegativeKeywordList resource. + // NegativeKeywordListId: Required. ID of the negative keyword list. Should + // refer to the negative_keyword_list_id field of a NegativeKeywordList + // resource. NegativeKeywordListId int64 `json:"negativeKeywordListId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "NegativeKeywordListId") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "NegativeKeywordListId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NegativeKeywordListId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NegativeKeywordListAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s NegativeKeywordListAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod NegativeKeywordListAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObaIcon: OBA Icon for a Creative type ObaIcon struct { - // ClickTrackingUrl: Required. The click tracking URL of the OBA icon. - // Only URLs of the following domains are allowed: * - // https://info.evidon.com * https://l.betrad.com + // ClickTrackingUrl: Required. The click tracking URL of the OBA icon. Only + // URLs of the following domains are allowed: * https://info.evidon.com * + // https://l.betrad.com ClickTrackingUrl string `json:"clickTrackingUrl,omitempty"` - // Dimensions: The dimensions of the OBA icon. Dimensions *Dimensions `json:"dimensions,omitempty"` - - // LandingPageUrl: Required. The landing page URL of the OBA icon. Only - // URLs of the following domains are allowed: * https://info.evidon.com - // * https://l.betrad.com + // LandingPageUrl: Required. The landing page URL of the OBA icon. Only URLs of + // the following domains are allowed: * https://info.evidon.com * + // https://l.betrad.com LandingPageUrl string `json:"landingPageUrl,omitempty"` - // Position: The position of the OBA icon on the creative. // // Possible values: - // "OBA_ICON_POSITION_UNSPECIFIED" - The OBA icon position is not - // specified. - // "OBA_ICON_POSITION_UPPER_RIGHT" - At the upper right side of the - // creative. - // "OBA_ICON_POSITION_UPPER_LEFT" - At the upper left side of the - // creative. - // "OBA_ICON_POSITION_LOWER_RIGHT" - At the lower right side of the - // creative. - // "OBA_ICON_POSITION_LOWER_LEFT" - At the lower left side of the - // creative. + // "OBA_ICON_POSITION_UNSPECIFIED" - The OBA icon position is not specified. + // "OBA_ICON_POSITION_UPPER_RIGHT" - At the upper right side of the creative. + // "OBA_ICON_POSITION_UPPER_LEFT" - At the upper left side of the creative. + // "OBA_ICON_POSITION_LOWER_RIGHT" - At the lower right side of the creative. + // "OBA_ICON_POSITION_LOWER_LEFT" - At the lower left side of the creative. Position string `json:"position,omitempty"` - // Program: The program of the OBA icon. For example: “AdChoices”. Program string `json:"program,omitempty"` - // ResourceMimeType: The MIME type of the OBA icon resource. ResourceMimeType string `json:"resourceMimeType,omitempty"` - // ResourceUrl: The URL of the OBA icon resource. ResourceUrl string `json:"resourceUrl,omitempty"` - - // ViewTrackingUrl: Required. The view tracking URL of the OBA icon. - // Only URLs of the following domains are allowed: * - // https://info.evidon.com * https://l.betrad.com + // ViewTrackingUrl: Required. The view tracking URL of the OBA icon. Only URLs + // of the following domains are allowed: * https://info.evidon.com * + // https://l.betrad.com ViewTrackingUrl string `json:"viewTrackingUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClickTrackingUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClickTrackingUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClickTrackingUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObaIcon) MarshalJSON() ([]byte, error) { +func (s ObaIcon) MarshalJSON() ([]byte, error) { type NoMethod ObaIcon - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OmidAssignedTargetingOptionDetails: Represents a targetable Open -// Measurement enabled inventory type. This will be populated in the -// details field of an AssignedTargetingOption when targeting_type is -// `TARGETING_TYPE_OMID`. +// OmidAssignedTargetingOptionDetails: Represents a targetable Open Measurement +// enabled inventory type. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is `TARGETING_TYPE_OMID`. type OmidAssignedTargetingOptionDetails struct { // Omid: Required. The type of Open Measurement enabled inventory. // // Possible values: - // "OMID_UNSPECIFIED" - Default value when omid targeting is not - // specified in this version. - // "OMID_FOR_MOBILE_DISPLAY_ADS" - Open Measurement enabled mobile - // display inventory. + // "OMID_UNSPECIFIED" - Default value when omid targeting is not specified in + // this version. + // "OMID_FOR_MOBILE_DISPLAY_ADS" - Open Measurement enabled mobile display + // inventory. Omid string `json:"omid,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_OMID`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_OMID`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Omid") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Omid") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Omid") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Omid") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OmidAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s OmidAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod OmidAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OmidTargetingOptionDetails: Represents a targetable Open Measurement -// enabled inventory type. This will be populated in the omid_details -// field when targeting_type is `TARGETING_TYPE_OMID`. +// OmidTargetingOptionDetails: Represents a targetable Open Measurement enabled +// inventory type. This will be populated in the omid_details field when +// targeting_type is `TARGETING_TYPE_OMID`. type OmidTargetingOptionDetails struct { // Omid: Output only. The type of Open Measurement enabled inventory. // // Possible values: - // "OMID_UNSPECIFIED" - Default value when omid targeting is not - // specified in this version. - // "OMID_FOR_MOBILE_DISPLAY_ADS" - Open Measurement enabled mobile - // display inventory. + // "OMID_UNSPECIFIED" - Default value when omid targeting is not specified in + // this version. + // "OMID_FOR_MOBILE_DISPLAY_ADS" - Open Measurement enabled mobile display + // inventory. Omid string `json:"omid,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Omid") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Omid") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Omid") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Omid") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OmidTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s OmidTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod OmidTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OnScreenPositionAssignedTargetingOptionDetails: On screen position -// targeting option details. This will be populated in the -// on_screen_position_details field when targeting_type is -// `TARGETING_TYPE_ON_SCREEN_POSITION`. +// OnScreenPositionAssignedTargetingOptionDetails: On screen position targeting +// option details. This will be populated in the on_screen_position_details +// field when targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`. type OnScreenPositionAssignedTargetingOptionDetails struct { - // AdType: Output only. The ad type to target. Only applicable to - // insertion order targeting and new line items supporting the specified - // ad type will inherit this targeting option by default. Possible - // values are: * `AD_TYPE_DISPLAY`, the setting will be inherited by new - // line item when line_item_type is `LINE_ITEM_TYPE_DISPLAY_DEFAULT`. * - // `AD_TYPE_VIDEO`, the setting will be inherited by new line item when - // line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`. + // AdType: Output only. The ad type to target. Only applicable to insertion + // order targeting and new line items supporting the specified ad type will + // inherit this targeting option by default. Possible values are: * + // `AD_TYPE_DISPLAY`, the setting will be inherited by new line item when + // line_item_type is `LINE_ITEM_TYPE_DISPLAY_DEFAULT`. * `AD_TYPE_VIDEO`, the + // setting will be inherited by new line item when line_item_type is + // `LINE_ITEM_TYPE_VIDEO_DEFAULT`. // // Possible values: - // "AD_TYPE_UNSPECIFIED" - Ad type is not specified or is unknown in - // this version. + // "AD_TYPE_UNSPECIFIED" - Ad type is not specified or is unknown in this + // version. // "AD_TYPE_DISPLAY" - Display creatives, e.g. image and HTML5. // "AD_TYPE_VIDEO" - Video creatives, e.g. video ads that play during // streaming content in video players. - // "AD_TYPE_AUDIO" - Audio creatives, e.g. audio ads that play during - // audio content. + // "AD_TYPE_AUDIO" - Audio creatives, e.g. audio ads that play during audio + // content. AdType string `json:"adType,omitempty"` - // OnScreenPosition: Output only. The on screen position. // // Possible values: - // "ON_SCREEN_POSITION_UNSPECIFIED" - On screen position is not - // specified in this version. This enum is a place holder for a default - // value and does not represent a real on screen position. - // "ON_SCREEN_POSITION_UNKNOWN" - The ad position is unknown on the - // screen. - // "ON_SCREEN_POSITION_ABOVE_THE_FOLD" - The ad is located above the - // fold. - // "ON_SCREEN_POSITION_BELOW_THE_FOLD" - The ad is located below the - // fold. + // "ON_SCREEN_POSITION_UNSPECIFIED" - On screen position is not specified in + // this version. This enum is a place holder for a default value and does not + // represent a real on screen position. + // "ON_SCREEN_POSITION_UNKNOWN" - The ad position is unknown on the screen. + // "ON_SCREEN_POSITION_ABOVE_THE_FOLD" - The ad is located above the fold. + // "ON_SCREEN_POSITION_BELOW_THE_FOLD" - The ad is located below the fold. OnScreenPosition string `json:"onScreenPosition,omitempty"` - // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdType") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdType") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OnScreenPositionAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s OnScreenPositionAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod OnScreenPositionAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OnScreenPositionTargetingOptionDetails: Represents a targetable on -// screen position, which could be used by display and video ads. This -// will be populated in the on_screen_position_details field when -// targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`. +// OnScreenPositionTargetingOptionDetails: Represents a targetable on screen +// position, which could be used by display and video ads. This will be +// populated in the on_screen_position_details field when targeting_type is +// `TARGETING_TYPE_ON_SCREEN_POSITION`. type OnScreenPositionTargetingOptionDetails struct { // OnScreenPosition: Output only. The on screen position. // // Possible values: - // "ON_SCREEN_POSITION_UNSPECIFIED" - On screen position is not - // specified in this version. This enum is a place holder for a default - // value and does not represent a real on screen position. - // "ON_SCREEN_POSITION_UNKNOWN" - The ad position is unknown on the - // screen. - // "ON_SCREEN_POSITION_ABOVE_THE_FOLD" - The ad is located above the - // fold. - // "ON_SCREEN_POSITION_BELOW_THE_FOLD" - The ad is located below the - // fold. + // "ON_SCREEN_POSITION_UNSPECIFIED" - On screen position is not specified in + // this version. This enum is a place holder for a default value and does not + // represent a real on screen position. + // "ON_SCREEN_POSITION_UNKNOWN" - The ad position is unknown on the screen. + // "ON_SCREEN_POSITION_ABOVE_THE_FOLD" - The ad is located above the fold. + // "ON_SCREEN_POSITION_BELOW_THE_FOLD" - The ad is located below the fold. OnScreenPosition string `json:"onScreenPosition,omitempty"` - // ForceSendFields is a list of field names (e.g. "OnScreenPosition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OnScreenPosition") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OnScreenPosition") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OnScreenPositionTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s OnScreenPositionTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod OnScreenPositionTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemAssignedTargetingOptionDetails: Assigned operating -// system targeting option details. This will be populated in the +// OperatingSystemAssignedTargetingOptionDetails: Assigned operating system +// targeting option details. This will be populated in the // operating_system_details field when targeting_type is // `TARGETING_TYPE_OPERATING_SYSTEM`. type OperatingSystemAssignedTargetingOptionDetails struct { // DisplayName: Output only. The display name of the operating system. DisplayName string `json:"displayName,omitempty"` - // Negative: Indicates if this option is being negatively targeted. Negative bool `json:"negative,omitempty"` - // TargetingOptionId: Required. The targeting option ID populated in // targeting_option_id field when targeting_type is // `TARGETING_TYPE_OPERATING_SYSTEM`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s OperatingSystemAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperatingSystemTargetingOptionDetails: Represents a targetable -// operating system. This will be populated in the -// operating_system_details field of a TargetingOption when -// targeting_type is `TARGETING_TYPE_OPERATING_SYSTEM`. +// OperatingSystemTargetingOptionDetails: Represents a targetable operating +// system. This will be populated in the operating_system_details field of a +// TargetingOption when targeting_type is `TARGETING_TYPE_OPERATING_SYSTEM`. type OperatingSystemTargetingOptionDetails struct { // DisplayName: Output only. The display name of the operating system. DisplayName string `json:"displayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperatingSystemTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s OperatingSystemTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod OperatingSystemTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal, successful response of the operation. If the - // original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Pacing: Settings that control the rate at which a budget is spent. type Pacing struct { - // DailyMaxImpressions: Maximum number of impressions to serve every - // day. Applicable when the budget is impression based. Must be greater - // than 0. + // DailyMaxImpressions: Maximum number of impressions to serve every day. + // Applicable when the budget is impression based. Must be greater than 0. DailyMaxImpressions int64 `json:"dailyMaxImpressions,omitempty,string"` - - // DailyMaxMicros: Maximum currency amount to spend every day in micros - // of advertiser's currency. Applicable when the budget is currency - // based. Must be greater than 0. For example, for 1.5 standard unit of - // the currency, set this field to 1500000. The value assigned will be - // rounded to whole billable units for the relevant currency by the - // following rules: any positive value less than a single billable unit - // will be rounded up to one billable unit and any value larger than a - // single billable unit will be rounded down to the nearest billable - // value. For example, if the currency's billable unit is 0.01, and this - // field is set to 10257770, it will round down to 10250000, a value of + // DailyMaxMicros: Maximum currency amount to spend every day in micros of + // advertiser's currency. Applicable when the budget is currency based. Must be + // greater than 0. For example, for 1.5 standard unit of the currency, set this + // field to 1500000. The value assigned will be rounded to whole billable units + // for the relevant currency by the following rules: any positive value less + // than a single billable unit will be rounded up to one billable unit and any + // value larger than a single billable unit will be rounded down to the nearest + // billable value. For example, if the currency's billable unit is 0.01, and + // this field is set to 10257770, it will round down to 10250000, a value of // 10.25. If set to 505, it will round up to 10000, a value of 0.01. DailyMaxMicros int64 `json:"dailyMaxMicros,omitempty,string"` - - // PacingPeriod: Required. The time period in which the pacing budget - // will be spent. When automatic budget allocation is enabled at the - // insertion order via automationType, this field is output only and - // defaults to `PACING_PERIOD_FLIGHT`. + // PacingPeriod: Required. The time period in which the pacing budget will be + // spent. When automatic budget allocation is enabled at the insertion order + // via automationType, this field is output only and defaults to + // `PACING_PERIOD_FLIGHT`. // // Possible values: - // "PACING_PERIOD_UNSPECIFIED" - Period value is not specified or is - // unknown in this version. - // "PACING_PERIOD_DAILY" - The pacing setting will be applied on daily - // basis. - // "PACING_PERIOD_FLIGHT" - The pacing setting will be applied to the - // whole flight duration. + // "PACING_PERIOD_UNSPECIFIED" - Period value is not specified or is unknown + // in this version. + // "PACING_PERIOD_DAILY" - The pacing setting will be applied on daily basis. + // "PACING_PERIOD_FLIGHT" - The pacing setting will be applied to the whole + // flight duration. PacingPeriod string `json:"pacingPeriod,omitempty"` - - // PacingType: Required. The type of pacing that defines how the budget - // amount will be spent across the pacing_period. + // PacingType: Required. The type of pacing that defines how the budget amount + // will be spent across the pacing_period. // // Possible values: - // "PACING_TYPE_UNSPECIFIED" - Pacing mode value is not specified or - // is unknown in this version. - // "PACING_TYPE_AHEAD" - Only applicable to `PACING_PERIOD_FLIGHT` - // pacing period. Ahead pacing attempts to spend faster than evenly, to - // make sure the entire budget is spent by the end of the flight. + // "PACING_TYPE_UNSPECIFIED" - Pacing mode value is not specified or is + // unknown in this version. + // "PACING_TYPE_AHEAD" - Only applicable to `PACING_PERIOD_FLIGHT` pacing + // period. Ahead pacing attempts to spend faster than evenly, to make sure the + // entire budget is spent by the end of the flight. // "PACING_TYPE_ASAP" - Spend all of pacing budget amount as quick as // possible. - // "PACING_TYPE_EVEN" - Spend a consistent budget amount every period - // of time. + // "PACING_TYPE_EVEN" - Spend a consistent budget amount every period of + // time. PacingType string `json:"pacingType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DailyMaxImpressions") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DailyMaxImpressions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DailyMaxImpressions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DailyMaxImpressions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pacing) MarshalJSON() ([]byte, error) { +func (s Pacing) MarshalJSON() ([]byte, error) { type NoMethod Pacing - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ParentEntityFilter: A filtering option that filters on selected file -// types belonging to a chosen set of filter entities. +// ParentEntityFilter: A filtering option that filters on selected file types +// belonging to a chosen set of filter entities. type ParentEntityFilter struct { // FileType: Required. File types that will be returned. // // Possible values: - // "FILE_TYPE_UNSPECIFIED" - Default value when type is unspecified or - // is unknown in this version. + // "FILE_TYPE_UNSPECIFIED" - Default value when type is unspecified or is + // unknown in this version. // "FILE_TYPE_CAMPAIGN" - Campaign. // "FILE_TYPE_MEDIA_PRODUCT" - Media Product. // "FILE_TYPE_INSERTION_ORDER" - Insertion Order. @@ -13319,766 +10852,633 @@ type ParentEntityFilter struct { // "FILE_TYPE_AD_GROUP" - YouTube Ad Group. // "FILE_TYPE_AD" - YouTube Ad. FileType []string `json:"fileType,omitempty"` - - // FilterIds: The IDs of the specified filter type. This is used to - // filter entities to fetch. If filter type is not `FILTER_TYPE_NONE`, - // at least one ID must be specified. + // FilterIds: The IDs of the specified filter type. This is used to filter + // entities to fetch. If filter type is not `FILTER_TYPE_NONE`, at least one ID + // must be specified. FilterIds googleapi.Int64s `json:"filterIds,omitempty"` - // FilterType: Required. Filter type used to filter fetched entities. // // Possible values: - // "FILTER_TYPE_UNSPECIFIED" - Default value when type is unspecified - // or is unknown in this version. + // "FILTER_TYPE_UNSPECIFIED" - Default value when type is unspecified or is + // unknown in this version. // "FILTER_TYPE_NONE" - If selected, no filter will be applied to the // download. Can only be used if an Advertiser is specified in // CreateSdfDownloadTaskRequest. - // "FILTER_TYPE_ADVERTISER_ID" - Advertiser ID. If selected, all - // filter IDs must be Advertiser IDs that belong to the Partner - // specified in CreateSdfDownloadTaskRequest. - // "FILTER_TYPE_CAMPAIGN_ID" - Campaign ID. If selected, all filter - // IDs must be Campaign IDs that belong to the Advertiser or Partner - // specified in CreateSdfDownloadTaskRequest. - // "FILTER_TYPE_MEDIA_PRODUCT_ID" - Media Product ID. If selected, all - // filter IDs must be Media Product IDs that belong to the Advertiser or - // Partner specified in CreateSdfDownloadTaskRequest. Can only be used - // for downloading `FILE_TYPE_MEDIA_PRODUCT`. - // "FILTER_TYPE_INSERTION_ORDER_ID" - Insertion Order ID. If selected, - // all filter IDs must be Insertion Order IDs that belong to the - // Advertiser or Partner specified in CreateSdfDownloadTaskRequest. Can - // only be used for downloading `FILE_TYPE_INSERTION_ORDER`, + // "FILTER_TYPE_ADVERTISER_ID" - Advertiser ID. If selected, all filter IDs + // must be Advertiser IDs that belong to the Partner specified in + // CreateSdfDownloadTaskRequest. + // "FILTER_TYPE_CAMPAIGN_ID" - Campaign ID. If selected, all filter IDs must + // be Campaign IDs that belong to the Advertiser or Partner specified in + // CreateSdfDownloadTaskRequest. + // "FILTER_TYPE_MEDIA_PRODUCT_ID" - Media Product ID. If selected, all filter + // IDs must be Media Product IDs that belong to the Advertiser or Partner + // specified in CreateSdfDownloadTaskRequest. Can only be used for downloading + // `FILE_TYPE_MEDIA_PRODUCT`. + // "FILTER_TYPE_INSERTION_ORDER_ID" - Insertion Order ID. If selected, all + // filter IDs must be Insertion Order IDs that belong to the Advertiser or + // Partner specified in CreateSdfDownloadTaskRequest. Can only be used for + // downloading `FILE_TYPE_INSERTION_ORDER`, `FILE_TYPE_LINE_ITEM`, + // `FILE_TYPE_AD_GROUP`, and `FILE_TYPE_AD`. + // "FILTER_TYPE_LINE_ITEM_ID" - Line Item ID. If selected, all filter IDs + // must be Line Item IDs that belong to the Advertiser or Partner specified in + // CreateSdfDownloadTaskRequest. Can only be used for downloading // `FILE_TYPE_LINE_ITEM`, `FILE_TYPE_AD_GROUP`, and `FILE_TYPE_AD`. - // "FILTER_TYPE_LINE_ITEM_ID" - Line Item ID. If selected, all filter - // IDs must be Line Item IDs that belong to the Advertiser or Partner - // specified in CreateSdfDownloadTaskRequest. Can only be used for - // downloading `FILE_TYPE_LINE_ITEM`, `FILE_TYPE_AD_GROUP`, and - // `FILE_TYPE_AD`. FilterType string `json:"filterType,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ParentEntityFilter) MarshalJSON() ([]byte, error) { +func (s ParentEntityFilter) MarshalJSON() ([]byte, error) { type NoMethod ParentEntityFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ParentalStatusAssignedTargetingOptionDetails: Details for assigned -// parental status targeting option. This will be populated in the -// details field of an AssignedTargetingOption when targeting_type is +// ParentalStatusAssignedTargetingOptionDetails: Details for assigned parental +// status targeting option. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_PARENTAL_STATUS`. type ParentalStatusAssignedTargetingOptionDetails struct { // ParentalStatus: Required. The parental status of the audience. // // Possible values: - // "PARENTAL_STATUS_UNSPECIFIED" - Default value when parental status - // is not specified in this version. This enum is a place holder for - // default value and does not represent a real parental status option. + // "PARENTAL_STATUS_UNSPECIFIED" - Default value when parental status is not + // specified in this version. This enum is a place holder for default value and + // does not represent a real parental status option. // "PARENTAL_STATUS_PARENT" - The audience is a parent. // "PARENTAL_STATUS_NOT_A_PARENT" - The audience is not a parent. // "PARENTAL_STATUS_UNKNOWN" - The parental status of the audience is // unknown. ParentalStatus string `json:"parentalStatus,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_PARENTAL_STATUS`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_PARENTAL_STATUS`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ParentalStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ParentalStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ParentalStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ParentalStatusAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ParentalStatusAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ParentalStatusAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ParentalStatusTargetingOptionDetails: Represents a targetable -// parental status. This will be populated in the -// parental_status_details field of a TargetingOption when -// targeting_type is `TARGETING_TYPE_PARENTAL_STATUS`. +// ParentalStatusTargetingOptionDetails: Represents a targetable parental +// status. This will be populated in the parental_status_details field of a +// TargetingOption when targeting_type is `TARGETING_TYPE_PARENTAL_STATUS`. type ParentalStatusTargetingOptionDetails struct { // ParentalStatus: Output only. The parental status of an audience. // // Possible values: - // "PARENTAL_STATUS_UNSPECIFIED" - Default value when parental status - // is not specified in this version. This enum is a place holder for - // default value and does not represent a real parental status option. + // "PARENTAL_STATUS_UNSPECIFIED" - Default value when parental status is not + // specified in this version. This enum is a place holder for default value and + // does not represent a real parental status option. // "PARENTAL_STATUS_PARENT" - The audience is a parent. // "PARENTAL_STATUS_NOT_A_PARENT" - The audience is not a parent. // "PARENTAL_STATUS_UNKNOWN" - The parental status of the audience is // unknown. ParentalStatus string `json:"parentalStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "ParentalStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ParentalStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ParentalStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ParentalStatusTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ParentalStatusTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ParentalStatusTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Partner: A single partner in Display & Video 360 (DV360). type Partner struct { // AdServerConfig: Ad server related settings of the partner. AdServerConfig *PartnerAdServerConfig `json:"adServerConfig,omitempty"` - - // DataAccessConfig: Settings that control how partner data may be - // accessed. + // DataAccessConfig: Settings that control how partner data may be accessed. DataAccessConfig *PartnerDataAccessConfig `json:"dataAccessConfig,omitempty"` - - // DisplayName: The display name of the partner. Must be UTF-8 encoded - // with a maximum size of 240 bytes. + // DisplayName: The display name of the partner. Must be UTF-8 encoded with a + // maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - // EntityStatus: Output only. The status of the partner. // // Possible values: - // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not - // specified or is unknown in this version. - // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend - // budget. - // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and - // budget spending are disabled. An entity can be deleted after - // archived. Deleted entities cannot be retrieved. - // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and - // budget spending are disabled. - // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for - // the entity. - // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled - // for deletion. + // "ENTITY_STATUS_UNSPECIFIED" - Default value when status is not specified + // or is unknown in this version. + // "ENTITY_STATUS_ACTIVE" - The entity is enabled to bid and spend budget. + // "ENTITY_STATUS_ARCHIVED" - The entity is archived. Bidding and budget + // spending are disabled. An entity can be deleted after archived. Deleted + // entities cannot be retrieved. + // "ENTITY_STATUS_DRAFT" - The entity is under draft. Bidding and budget + // spending are disabled. + // "ENTITY_STATUS_PAUSED" - Bidding and budget spending are paused for the + // entity. + // "ENTITY_STATUS_SCHEDULED_FOR_DELETION" - The entity is scheduled for + // deletion. EntityStatus string `json:"entityStatus,omitempty"` - - // ExchangeConfig: Settings that control which exchanges are enabled for - // the partner. + // ExchangeConfig: Settings that control which exchanges are enabled for the + // partner. ExchangeConfig *ExchangeConfig `json:"exchangeConfig,omitempty"` - // GeneralConfig: General settings of the partner. GeneralConfig *PartnerGeneralConfig `json:"generalConfig,omitempty"` - // Name: Output only. The resource name of the partner. Name string `json:"name,omitempty"` - // PartnerId: Output only. The unique ID of the partner. Assigned by the // system. PartnerId int64 `json:"partnerId,omitempty,string"` - - // UpdateTime: Output only. The timestamp when the partner was last - // updated. Assigned by the system. + // UpdateTime: Output only. The timestamp when the partner was last updated. + // Assigned by the system. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdServerConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdServerConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdServerConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Partner) MarshalJSON() ([]byte, error) { +func (s Partner) MarshalJSON() ([]byte, error) { type NoMethod Partner - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PartnerAdServerConfig: Ad server related settings of a partner. type PartnerAdServerConfig struct { // MeasurementConfig: Measurement settings of a partner. MeasurementConfig *MeasurementConfig `json:"measurementConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MeasurementConfig") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "MeasurementConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MeasurementConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MeasurementConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PartnerAdServerConfig) MarshalJSON() ([]byte, error) { +func (s PartnerAdServerConfig) MarshalJSON() ([]byte, error) { type NoMethod PartnerAdServerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PartnerCost: Settings that control a partner cost. A partner cost is -// any type of expense involved in running a campaign, other than the -// costs of purchasing impressions (which is called the media cost) and -// using third-party audience segment data (data fee). Some examples of -// partner costs include the fees for using DV360, a third-party ad -// server, or a third-party ad serving verification service. +// PartnerCost: Settings that control a partner cost. A partner cost is any +// type of expense involved in running a campaign, other than the costs of +// purchasing impressions (which is called the media cost) and using +// third-party audience segment data (data fee). Some examples of partner costs +// include the fees for using DV360, a third-party ad server, or a third-party +// ad serving verification service. type PartnerCost struct { // CostType: Required. The type of the partner cost. // // Possible values: // "PARTNER_COST_TYPE_UNSPECIFIED" - Type value is not specified or is // unknown in this version. - // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Adloox. - // Billed by the partner. - // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using - // Adloox Pre-Bid. Billed through DV360. - // "PARTNER_COST_TYPE_ADSAFE" - The cost is charged for using AdSafe. + // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Adloox. Billed + // by the partner. + // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using Adloox + // Pre-Bid. Billed through DV360. + // "PARTNER_COST_TYPE_ADSAFE" - The cost is charged for using AdSafe. Billed + // by the partner. + // "PARTNER_COST_TYPE_ADXPOSE" - The cost is charged for using AdExpose. // Billed by the partner. - // "PARTNER_COST_TYPE_ADXPOSE" - The cost is charged for using - // AdExpose. Billed by the partner. - // "PARTNER_COST_TYPE_AGGREGATE_KNOWLEDGE" - The cost is charged for - // using Aggregate Knowledge. Billed by the partner. - // "PARTNER_COST_TYPE_AGENCY_TRADING_DESK" - The cost is charged for - // using an Agency Trading Desk. Billed by the partner. - // "PARTNER_COST_TYPE_DV360_FEE" - The cost is charged for using - // DV360. Billed through DV360. - // "PARTNER_COST_TYPE_COMSCORE_VCE" - The cost is charged for using - // comScore vCE. Billed through DV360. - // "PARTNER_COST_TYPE_DATA_MANAGEMENT_PLATFORM" - The cost is charged - // for using a Data Management Platform. Billed by the partner. + // "PARTNER_COST_TYPE_AGGREGATE_KNOWLEDGE" - The cost is charged for using + // Aggregate Knowledge. Billed by the partner. + // "PARTNER_COST_TYPE_AGENCY_TRADING_DESK" - The cost is charged for using an + // Agency Trading Desk. Billed by the partner. + // "PARTNER_COST_TYPE_DV360_FEE" - The cost is charged for using DV360. + // Billed through DV360. + // "PARTNER_COST_TYPE_COMSCORE_VCE" - The cost is charged for using comScore + // vCE. Billed through DV360. + // "PARTNER_COST_TYPE_DATA_MANAGEMENT_PLATFORM" - The cost is charged for + // using a Data Management Platform. Billed by the partner. // "PARTNER_COST_TYPE_DEFAULT" - The default cost type. Billed by the // partner. // "PARTNER_COST_TYPE_DOUBLE_VERIFY" - The cost is charged for using // DoubleVerify. Billed by the partner. - // "PARTNER_COST_TYPE_DOUBLE_VERIFY_PREBID" - The cost is charged for - // using DoubleVerify Pre-Bid. Billed through DV360. - // "PARTNER_COST_TYPE_EVIDON" - The cost is charged for using Evidon. + // "PARTNER_COST_TYPE_DOUBLE_VERIFY_PREBID" - The cost is charged for using + // DoubleVerify Pre-Bid. Billed through DV360. + // "PARTNER_COST_TYPE_EVIDON" - The cost is charged for using Evidon. Billed + // by the partner. + // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_VIDEO" - The cost is charged for + // using Integral Ad Science Video. Billed by the partner. + // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_PREBID" - The cost is charged for + // using Integral Ad Science Pre-Bid. Billed through DV360. + // "PARTNER_COST_TYPE_MEDIA_COST_DATA" - The cost is charged for using media + // cost data. Billed by the partner. + // "PARTNER_COST_TYPE_MOAT_VIDEO" - The cost is charged for using MOAT Video. + // Billed by the partner. + // "PARTNER_COST_TYPE_NIELSEN_DAR" - The cost is charged for using Nielsen + // Digital Ad Ratings. Billed through DV360. + // "PARTNER_COST_TYPE_SHOP_LOCAL" - The cost is charged for using ShopLocal. + // Billed by the partner. + // "PARTNER_COST_TYPE_TERACENT" - The cost is charged for using Teracent. // Billed by the partner. - // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_VIDEO" - The cost is charged - // for using Integral Ad Science Video. Billed by the partner. - // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_PREBID" - The cost is - // charged for using Integral Ad Science Pre-Bid. Billed through DV360. - // "PARTNER_COST_TYPE_MEDIA_COST_DATA" - The cost is charged for using - // media cost data. Billed by the partner. - // "PARTNER_COST_TYPE_MOAT_VIDEO" - The cost is charged for using MOAT - // Video. Billed by the partner. - // "PARTNER_COST_TYPE_NIELSEN_DAR" - The cost is charged for using - // Nielsen Digital Ad Ratings. Billed through DV360. - // "PARTNER_COST_TYPE_SHOP_LOCAL" - The cost is charged for using - // ShopLocal. Billed by the partner. - // "PARTNER_COST_TYPE_TERACENT" - The cost is charged for using - // Teracent. Billed by the partner. - // "PARTNER_COST_TYPE_THIRD_PARTY_AD_SERVER" - The cost is charged for - // using a third-party ad server. Billed by the partner. + // "PARTNER_COST_TYPE_THIRD_PARTY_AD_SERVER" - The cost is charged for using + // a third-party ad server. Billed by the partner. // "PARTNER_COST_TYPE_TRUST_METRICS" - The cost is charged for using // TrustMetrics. Billed by the partner. - // "PARTNER_COST_TYPE_VIZU" - The cost is charged for using Vizu. + // "PARTNER_COST_TYPE_VIZU" - The cost is charged for using Vizu. Billed by + // the partner. + // "PARTNER_COST_TYPE_ADLINGO_FEE" - The cost is charged for using AdLingo. + // Billed through DV360. + // "PARTNER_COST_TYPE_CUSTOM_FEE_1" - The cost is charged as custom fee 1. + // Billed by the partner. + // "PARTNER_COST_TYPE_CUSTOM_FEE_2" - The cost is charged as custom fee 2. + // Billed by the partner. + // "PARTNER_COST_TYPE_CUSTOM_FEE_3" - The cost is charged as custom fee 3. + // Billed by the partner. + // "PARTNER_COST_TYPE_CUSTOM_FEE_4" - The cost is charged as custom fee 4. // Billed by the partner. - // "PARTNER_COST_TYPE_ADLINGO_FEE" - The cost is charged for using - // AdLingo. Billed through DV360. - // "PARTNER_COST_TYPE_CUSTOM_FEE_1" - The cost is charged as custom - // fee 1. Billed by the partner. - // "PARTNER_COST_TYPE_CUSTOM_FEE_2" - The cost is charged as custom - // fee 2. Billed by the partner. - // "PARTNER_COST_TYPE_CUSTOM_FEE_3" - The cost is charged as custom - // fee 3. Billed by the partner. - // "PARTNER_COST_TYPE_CUSTOM_FEE_4" - The cost is charged as custom - // fee 4. Billed by the partner. - // "PARTNER_COST_TYPE_CUSTOM_FEE_5" - The cost is charged as custom - // fee 5. Billed by the partner. - // "PARTNER_COST_TYPE_SCIBIDS_FEE" - The cost is charged for using - // Scibids. Billed through DV360. This type is currently only available - // to certain customers. Other customers attempting to use this type - // will receive an error. + // "PARTNER_COST_TYPE_CUSTOM_FEE_5" - The cost is charged as custom fee 5. + // Billed by the partner. + // "PARTNER_COST_TYPE_SCIBIDS_FEE" - The cost is charged for using Scibids. + // Billed through DV360. This type is currently only available to certain + // customers. Other customers attempting to use this type will receive an + // error. CostType string `json:"costType,omitempty"` - - // FeeAmount: The CPM fee amount in micros of advertiser's currency. - // Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be - // greater than or equal to 0. For example, for 1.5 standard unit of the - // advertiser's currency, set this field to 1500000. + // FeeAmount: The CPM fee amount in micros of advertiser's currency. Applicable + // when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or + // equal to 0. For example, for 1.5 standard unit of the advertiser's currency, + // set this field to 1500000. FeeAmount int64 `json:"feeAmount,omitempty,string"` - // FeePercentageMillis: The media fee percentage in millis (1/1000 of a - // percent). Applicable when the fee_type is - // `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For - // example: 100 represents 0.1%. + // percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must + // be greater than or equal to 0. For example: 100 represents 0.1%. FeePercentageMillis int64 `json:"feePercentageMillis,omitempty,string"` - // FeeType: Required. The fee type for this partner cost. // // Possible values: - // "PARTNER_COST_FEE_TYPE_UNSPECIFIED" - Value is not specified or is - // unknown in this version. - // "PARTNER_COST_FEE_TYPE_CPM_FEE" - The partner cost is a fixed CPM - // fee. Not applicable when the partner cost cost_type is one of: * + // "PARTNER_COST_FEE_TYPE_UNSPECIFIED" - Value is not specified or is unknown + // in this version. + // "PARTNER_COST_FEE_TYPE_CPM_FEE" - The partner cost is a fixed CPM fee. Not + // applicable when the partner cost cost_type is one of: * // `PARTNER_COST_TYPE_MEDIA_COST_DATA` * `PARTNER_COST_TYPE_DV360_FEE`. - // "PARTNER_COST_FEE_TYPE_MEDIA_FEE" - The partner cost is a - // percentage surcharge based on the media cost. Not applicable when the - // partner cost_type is one of: * `PARTNER_COST_TYPE_SHOP_LOCAL` * + // "PARTNER_COST_FEE_TYPE_MEDIA_FEE" - The partner cost is a percentage + // surcharge based on the media cost. Not applicable when the partner cost_type + // is one of: * `PARTNER_COST_TYPE_SHOP_LOCAL` * // `PARTNER_COST_TYPE_TRUST_METRICS` * // `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_VIDEO` * // `PARTNER_COST_TYPE_MOAT_VIDEO`. FeeType string `json:"feeType,omitempty"` - // InvoiceType: The invoice type for this partner cost. * Required when // cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - - // `PARTNER_COST_TYPE_DOUBLE_VERIFY` - - // `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other - // types. + // `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. + // * Output only for other types. // // Possible values: - // "PARTNER_COST_INVOICE_TYPE_UNSPECIFIED" - Type value is not - // specified or is unknown in this version. - // "PARTNER_COST_INVOICE_TYPE_DV360" - Partner cost is billed through - // DV360. + // "PARTNER_COST_INVOICE_TYPE_UNSPECIFIED" - Type value is not specified or + // is unknown in this version. + // "PARTNER_COST_INVOICE_TYPE_DV360" - Partner cost is billed through DV360. // "PARTNER_COST_INVOICE_TYPE_PARTNER" - Partner cost is billed by the // partner. InvoiceType string `json:"invoiceType,omitempty"` - // ForceSendFields is a list of field names (e.g. "CostType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CostType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CostType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PartnerCost) MarshalJSON() ([]byte, error) { +func (s PartnerCost) MarshalJSON() ([]byte, error) { type NoMethod PartnerCost - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PartnerDataAccessConfig: Settings that control how partner related -// data may be accessed. +// PartnerDataAccessConfig: Settings that control how partner related data may +// be accessed. type PartnerDataAccessConfig struct { - // SdfConfig: Structured Data Files (SDF) settings for the partner. The - // SDF configuration for the partner. + // SdfConfig: Structured Data Files (SDF) settings for the partner. The SDF + // configuration for the partner. SdfConfig *SdfConfig `json:"sdfConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "SdfConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SdfConfig") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SdfConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PartnerDataAccessConfig) MarshalJSON() ([]byte, error) { +func (s PartnerDataAccessConfig) MarshalJSON() ([]byte, error) { type NoMethod PartnerDataAccessConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PartnerGeneralConfig: General settings of a partner. type PartnerGeneralConfig struct { // CurrencyCode: Immutable. Partner's currency in ISO 4217 format. CurrencyCode string `json:"currencyCode,omitempty"` - - // TimeZone: Immutable. The standard TZ database name of the partner's - // time zone. For example, `America/New_York`. See more at: + // TimeZone: Immutable. The standard TZ database name of the partner's time + // zone. For example, `America/New_York`. See more at: // https://en.wikipedia.org/wiki/List_of_tz_database_time_zones TimeZone string `json:"timeZone,omitempty"` - // ForceSendFields is a list of field names (e.g. "CurrencyCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrencyCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CurrencyCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PartnerGeneralConfig) MarshalJSON() ([]byte, error) { +func (s PartnerGeneralConfig) MarshalJSON() ([]byte, error) { type NoMethod PartnerGeneralConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PartnerRevenueModel: Settings that control how partner revenue is // calculated. type PartnerRevenueModel struct { - // MarkupAmount: Required. The markup amount of the partner revenue - // model. Must be greater than or equal to 0. * When the markup_type is - // set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field - // represents the CPM markup in micros of advertiser's currency. For - // example, 1500000 represents 1.5 standard units of the currency. * - // When the markup_type is set to be - // `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field - // represents the media cost percent markup in millis. For example, 100 - // represents 0.1% (decimal 0.001). * When the markup_type is set to be - // `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this - // field represents the total media cost percent markup in millis. For - // example, 100 represents 0.1% (decimal 0.001). + // MarkupAmount: Required. The markup amount of the partner revenue model. Must + // be greater than or equal to 0. * When the markup_type is set to be + // `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM + // markup in micros of advertiser's currency. For example, 1500000 represents + // 1.5 standard units of the currency. * When the markup_type is set to be + // `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field represents + // the media cost percent markup in millis. For example, 100 represents 0.1% + // (decimal 0.001). * When the markup_type is set to be + // `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field + // represents the total media cost percent markup in millis. For example, 100 + // represents 0.1% (decimal 0.001). MarkupAmount int64 `json:"markupAmount,omitempty,string"` - // MarkupType: Required. The markup type of the partner revenue model. // // Possible values: // "PARTNER_REVENUE_MODEL_MARKUP_TYPE_UNSPECIFIED" - Type value is not // specified or is unknown in this version. - // "PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM" - Calculate the partner - // revenue based on a fixed CPM. - // "PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP" - Calculate - // the partner revenue based on a percentage surcharge of its media - // cost. - // "PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP" - - // Calculate the partner revenue based on a percentage surcharge of its - // total media cost, which includes all partner costs and data costs. + // "PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM" - Calculate the partner revenue + // based on a fixed CPM. + // "PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP" - Calculate the + // partner revenue based on a percentage surcharge of its media cost. + // "PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP" - Calculate + // the partner revenue based on a percentage surcharge of its total media cost, + // which includes all partner costs and data costs. MarkupType string `json:"markupType,omitempty"` - // ForceSendFields is a list of field names (e.g. "MarkupAmount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MarkupAmount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MarkupAmount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PartnerRevenueModel) MarshalJSON() ([]byte, error) { +func (s PartnerRevenueModel) MarshalJSON() ([]byte, error) { type NoMethod PartnerRevenueModel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PerformanceGoal: Settings that control the performance goal of a -// campaign. +// PerformanceGoal: Settings that control the performance goal of a campaign. type PerformanceGoal struct { - // PerformanceGoalAmountMicros: The goal amount, in micros of the - // advertiser's currency. Applicable when performance_goal_type is one - // of: * `PERFORMANCE_GOAL_TYPE_CPM` * `PERFORMANCE_GOAL_TYPE_CPC` * + // PerformanceGoalAmountMicros: The goal amount, in micros of the advertiser's + // currency. Applicable when performance_goal_type is one of: * + // `PERFORMANCE_GOAL_TYPE_CPM` * `PERFORMANCE_GOAL_TYPE_CPC` * // `PERFORMANCE_GOAL_TYPE_CPA` * `PERFORMANCE_GOAL_TYPE_CPIAVC` * - // `PERFORMANCE_GOAL_TYPE_VCPM` For example 1500000 represents 1.5 - // standard units of the currency. + // `PERFORMANCE_GOAL_TYPE_VCPM` For example 1500000 represents 1.5 standard + // units of the currency. PerformanceGoalAmountMicros int64 `json:"performanceGoalAmountMicros,omitempty,string"` - - // PerformanceGoalPercentageMicros: The decimal representation of the - // goal percentage in micros. Applicable when performance_goal_type is - // one of: * `PERFORMANCE_GOAL_TYPE_CTR` * - // `PERFORMANCE_GOAL_TYPE_VIEWABILITY` * - // `PERFORMANCE_GOAL_TYPE_CLICK_CVR` * - // `PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR` * `PERFORMANCE_GOAL_TYPE_VTR` - // * `PERFORMANCE_GOAL_TYPE_AUDIO_COMPLETION_RATE` * - // `PERFORMANCE_GOAL_TYPE_VIDEO_COMPLETION_RATE` For example, 70000 + // PerformanceGoalPercentageMicros: The decimal representation of the goal + // percentage in micros. Applicable when performance_goal_type is one of: * + // `PERFORMANCE_GOAL_TYPE_CTR` * `PERFORMANCE_GOAL_TYPE_VIEWABILITY` * + // `PERFORMANCE_GOAL_TYPE_CLICK_CVR` * `PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR` * + // `PERFORMANCE_GOAL_TYPE_VTR` * `PERFORMANCE_GOAL_TYPE_AUDIO_COMPLETION_RATE` + // * `PERFORMANCE_GOAL_TYPE_VIDEO_COMPLETION_RATE` For example, 70000 // represents 7% (decimal 0.07). PerformanceGoalPercentageMicros int64 `json:"performanceGoalPercentageMicros,omitempty,string"` - - // PerformanceGoalString: A key performance indicator (KPI) string, - // which can be empty. Must be UTF-8 encoded with a length of no more - // than 100 characters. Applicable when performance_goal_type is set to + // PerformanceGoalString: A key performance indicator (KPI) string, which can + // be empty. Must be UTF-8 encoded with a length of no more than 100 + // characters. Applicable when performance_goal_type is set to // `PERFORMANCE_GOAL_TYPE_OTHER`. PerformanceGoalString string `json:"performanceGoalString,omitempty"` - // PerformanceGoalType: Required. The type of the performance goal. // // Possible values: // "PERFORMANCE_GOAL_TYPE_UNSPECIFIED" - Performance goal type is not // specified or is unknown in this version. - // "PERFORMANCE_GOAL_TYPE_CPM" - The performance goal is set in CPM - // (cost per mille). - // "PERFORMANCE_GOAL_TYPE_CPC" - The performance goal is set in CPC - // (cost per click). - // "PERFORMANCE_GOAL_TYPE_CPA" - The performance goal is set in CPA - // (cost per action). + // "PERFORMANCE_GOAL_TYPE_CPM" - The performance goal is set in CPM (cost per + // mille). + // "PERFORMANCE_GOAL_TYPE_CPC" - The performance goal is set in CPC (cost per + // click). + // "PERFORMANCE_GOAL_TYPE_CPA" - The performance goal is set in CPA (cost per + // action). // "PERFORMANCE_GOAL_TYPE_CTR" - The performance goal is set in CTR // (click-through rate) percentage. - // "PERFORMANCE_GOAL_TYPE_VIEWABILITY" - The performance goal is set - // in Viewability percentage. - // "PERFORMANCE_GOAL_TYPE_CPIAVC" - The performance goal is set as - // CPIAVC (cost per impression audible and visible at completion). - // "PERFORMANCE_GOAL_TYPE_CPE" - The performance goal is set in CPE - // (cost per engagement). - // "PERFORMANCE_GOAL_TYPE_CLICK_CVR" - The performance goal is set in - // click conversion rate (conversions per click) percentage. - // "PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR" - The performance goal is - // set in impression conversion rate (conversions per impression) + // "PERFORMANCE_GOAL_TYPE_VIEWABILITY" - The performance goal is set in + // Viewability percentage. + // "PERFORMANCE_GOAL_TYPE_CPIAVC" - The performance goal is set as CPIAVC + // (cost per impression audible and visible at completion). + // "PERFORMANCE_GOAL_TYPE_CPE" - The performance goal is set in CPE (cost per + // engagement). + // "PERFORMANCE_GOAL_TYPE_CLICK_CVR" - The performance goal is set in click + // conversion rate (conversions per click) percentage. + // "PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR" - The performance goal is set in + // impression conversion rate (conversions per impression) percentage. + // "PERFORMANCE_GOAL_TYPE_VCPM" - The performance goal is set in VCPM (cost + // per thousand viewable impressions). + // "PERFORMANCE_GOAL_TYPE_VTR" - The performance goal is set in YouTube view + // rate (YouTube views per impression) percentage. + // "PERFORMANCE_GOAL_TYPE_AUDIO_COMPLETION_RATE" - The performance goal is + // set in audio completion rate (complete audio listens per impression) // percentage. - // "PERFORMANCE_GOAL_TYPE_VCPM" - The performance goal is set in VCPM - // (cost per thousand viewable impressions). - // "PERFORMANCE_GOAL_TYPE_VTR" - The performance goal is set in - // YouTube view rate (YouTube views per impression) percentage. - // "PERFORMANCE_GOAL_TYPE_AUDIO_COMPLETION_RATE" - The performance - // goal is set in audio completion rate (complete audio listens per - // impression) percentage. - // "PERFORMANCE_GOAL_TYPE_VIDEO_COMPLETION_RATE" - The performance - // goal is set in video completion rate (complete video views per - // impression) percentage. - // "PERFORMANCE_GOAL_TYPE_OTHER" - The performance goal is set to - // Other. + // "PERFORMANCE_GOAL_TYPE_VIDEO_COMPLETION_RATE" - The performance goal is + // set in video completion rate (complete video views per impression) + // percentage. + // "PERFORMANCE_GOAL_TYPE_OTHER" - The performance goal is set to Other. PerformanceGoalType string `json:"performanceGoalType,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "PerformanceGoalAmountMicros") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "PerformanceGoalAmountMicros") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "PerformanceGoalAmountMicros") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "PerformanceGoalAmountMicros") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PerformanceGoal) MarshalJSON() ([]byte, error) { +func (s PerformanceGoal) MarshalJSON() ([]byte, error) { type NoMethod PerformanceGoal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PerformanceGoalBidStrategy: A strategy that automatically adjusts the -// bid to meet or beat a specified performance goal. +// PerformanceGoalBidStrategy: A strategy that automatically adjusts the bid to +// meet or beat a specified performance goal. type PerformanceGoalBidStrategy struct { - // CustomBiddingAlgorithmId: The ID of the Custom Bidding Algorithm used - // by this strategy. Only applicable when performance_goal_type is set - // to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. + // CustomBiddingAlgorithmId: The ID of the Custom Bidding Algorithm used by + // this strategy. Only applicable when performance_goal_type is set to + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. CustomBiddingAlgorithmId int64 `json:"customBiddingAlgorithmId,omitempty,string"` - - // MaxAverageCpmBidAmountMicros: The maximum average CPM that may be - // bid, in micros of the advertiser's currency. Must be greater than or - // equal to a billable unit of the given currency. Not applicable when + // MaxAverageCpmBidAmountMicros: The maximum average CPM that may be bid, in + // micros of the advertiser's currency. Must be greater than or equal to a + // billable unit of the given currency. Not applicable when // performance_goal_type is set to - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, - // 1500000 represents 1.5 standard units of the currency. + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 + // represents 1.5 standard units of the currency. MaxAverageCpmBidAmountMicros int64 `json:"maxAverageCpmBidAmountMicros,omitempty,string"` - - // PerformanceGoalAmountMicros: Required. The performance goal the - // bidding strategy will attempt to meet or beat, in micros of the - // advertiser's currency or in micro of the ROAS (Return On Advertising - // Spend) value which is also based on advertiser's currency. Must be - // greater than or equal to a billable unit of the given currency and - // smaller or equal to upper bounds. Each performance_goal_type has its - // upper bound: * when performance_goal_type is - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 - // USD. * when performance_goal_type is - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 + // PerformanceGoalAmountMicros: Required. The performance goal the bidding + // strategy will attempt to meet or beat, in micros of the advertiser's + // currency or in micro of the ROAS (Return On Advertising Spend) value which + // is also based on advertiser's currency. Must be greater than or equal to a + // billable unit of the given currency and smaller or equal to upper bounds. + // Each performance_goal_type has its upper bound: * when performance_goal_type + // is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 // USD. * when performance_goal_type is + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * + // when performance_goal_type is // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is // 1000.00 USD. * when performance_goal_type is - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is - // 1000.00 and lower bound is 0.01. Example: If set to - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price - // will be based on the probability that each available impression will - // be viewable. For example, if viewable CPM target is $2 and an - // impression is 40% likely to be viewable, the bid price will be $0.80 - // CPM (40% of $2). For example, 1500000 represents 1.5 standard units - // of the currency or ROAS value. + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 + // and lower bound is 0.01. Example: If set to + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be + // based on the probability that each available impression will be viewable. + // For example, if viewable CPM target is $2 and an impression is 40% likely to + // be viewable, the bid price will be $0.80 CPM (40% of $2). For example, + // 1500000 represents 1.5 standard units of the currency or ROAS value. PerformanceGoalAmountMicros int64 `json:"performanceGoalAmountMicros,omitempty,string"` - - // PerformanceGoalType: Required. The type of the performance goal that - // the bidding strategy will try to meet or beat. For line item level - // usage, the value must be one of: * - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * + // PerformanceGoalType: Required. The type of the performance goal that the + // bidding strategy will try to meet or beat. For line item level usage, the + // value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. // // Possible values: - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_UNSPECIFIED" - Type value - // is not specified or is unknown in this version. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_UNSPECIFIED" - Type value is not + // specified or is unknown in this version. // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA" - Cost per action. // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC" - Cost per click. - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM" - Viewable - // CPM. - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO" - Custom - // bidding algorithm. - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA" - Completed inview - // and audible views. - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN" - Inview time over - // 10 secs views. - // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED" - Viewable - // impressions. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM" - Viewable CPM. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO" - Custom bidding + // algorithm. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA" - Completed inview and + // audible views. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN" - Inview time over 10 + // secs views. + // "BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED" - Viewable impressions. PerformanceGoalType string `json:"performanceGoalType,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CustomBiddingAlgorithmId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CustomBiddingAlgorithmId") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomBiddingAlgorithmId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CustomBiddingAlgorithmId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PerformanceGoalBidStrategy) MarshalJSON() ([]byte, error) { +func (s PerformanceGoalBidStrategy) MarshalJSON() ([]byte, error) { type NoMethod PerformanceGoalBidStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PoiAssignedTargetingOptionDetails: Details for assigned POI targeting // option. This will be populated in the details field of an // AssignedTargetingOption when targeting_type is `TARGETING_TYPE_POI`. type PoiAssignedTargetingOptionDetails struct { - // DisplayName: Output only. The display name of a POI, e.g. "Times - // Square", "Space Needle", followed by its full address if available. + // DisplayName: Output only. The display name of a POI, e.g. "Times Square", + // "Space Needle", followed by its full address if available. DisplayName string `json:"displayName,omitempty"` - - // Latitude: Output only. Latitude of the POI rounding to 6th decimal - // place. + // Latitude: Output only. Latitude of the POI rounding to 6th decimal place. Latitude float64 `json:"latitude,omitempty"` - - // Longitude: Output only. Longitude of the POI rounding to 6th decimal - // place. + // Longitude: Output only. Longitude of the POI rounding to 6th decimal place. Longitude float64 `json:"longitude,omitempty"` - - // ProximityRadiusAmount: Required. The radius of the area around the - // POI that will be targeted. The units of the radius are specified by + // ProximityRadiusAmount: Required. The radius of the area around the POI that + // will be targeted. The units of the radius are specified by // proximity_radius_unit. Must be 1 to 800 if unit is - // `DISTANCE_UNIT_KILOMETERS` and 1 to 500 if unit is - // `DISTANCE_UNIT_MILES`. + // `DISTANCE_UNIT_KILOMETERS` and 1 to 500 if unit is `DISTANCE_UNIT_MILES`. ProximityRadiusAmount float64 `json:"proximityRadiusAmount,omitempty"` - - // ProximityRadiusUnit: Required. The unit of distance by which the - // targeting radius is measured. + // ProximityRadiusUnit: Required. The unit of distance by which the targeting + // radius is measured. // // Possible values: - // "DISTANCE_UNIT_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "DISTANCE_UNIT_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. // "DISTANCE_UNIT_MILES" - Miles. // "DISTANCE_UNIT_KILOMETERS" - Kilometers. ProximityRadiusUnit string `json:"proximityRadiusUnit,omitempty"` - - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_POI`. Accepted POI targeting - // option IDs can be retrieved using - // `targetingTypes.targetingOptions.search`. If targeting a specific - // latitude/longitude coordinate removed from an address or POI name, - // you can generate the necessary targeting option ID by rounding the - // desired coordinate values to the 6th decimal place, removing the - // decimals, and concatenating the string values separated by a - // semicolon. For example, you can target the latitude/longitude pair of - // 40.7414691, -74.003387 using the targeting option ID - // "40741469;-74003387". **Upon** **creation, this field value will be - // updated to append a semicolon and** **alphanumerical hash value if - // only latitude/longitude coordinates are** **provided.** + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_POI`. Accepted POI targeting option IDs can be + // retrieved using `targetingTypes.targetingOptions.search`. If targeting a + // specific latitude/longitude coordinate removed from an address or POI name, + // you can generate the necessary targeting option ID by rounding the desired + // coordinate values to the 6th decimal place, removing the decimals, and + // concatenating the string values separated by a semicolon. For example, you + // can target the latitude/longitude pair of 40.7414691, -74.003387 using the + // targeting option ID "40741469;-74003387". **Upon** **creation, this field + // value will be updated to append a semicolon and** **alphanumerical hash + // value if only latitude/longitude coordinates are** **provided.** TargetingOptionId string `json:"targetingOptionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoiAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s PoiAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod PoiAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PoiAssignedTargetingOptionDetails) UnmarshalJSON(data []byte) error { @@ -14101,71 +11501,55 @@ func (s *PoiAssignedTargetingOptionDetails) UnmarshalJSON(data []byte) error { // PoiSearchTerms: Search terms for POI targeting options. type PoiSearchTerms struct { - // PoiQuery: The search query for the desired POI name, street address, - // or coordinate of the desired POI. The query can be a prefix, e.g. - // "Times squar", "40.7505045,-73.99562", "315 W 44th St", etc. + // PoiQuery: The search query for the desired POI name, street address, or + // coordinate of the desired POI. The query can be a prefix, e.g. "Times + // squar", "40.7505045,-73.99562", "315 W 44th St", etc. PoiQuery string `json:"poiQuery,omitempty"` - // ForceSendFields is a list of field names (e.g. "PoiQuery") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PoiQuery") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PoiQuery") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoiSearchTerms) MarshalJSON() ([]byte, error) { +func (s PoiSearchTerms) MarshalJSON() ([]byte, error) { type NoMethod PoiSearchTerms - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PoiTargetingOptionDetails: Represents a targetable point of -// interest(POI). This will be populated in the poi_details field when -// targeting_type is `TARGETING_TYPE_POI`. +// PoiTargetingOptionDetails: Represents a targetable point of interest(POI). +// This will be populated in the poi_details field when targeting_type is +// `TARGETING_TYPE_POI`. type PoiTargetingOptionDetails struct { - // DisplayName: Output only. The display name of a POI(e.g. "Times - // Square", "Space Needle"), followed by its full address if available. + // DisplayName: Output only. The display name of a POI(e.g. "Times Square", + // "Space Needle"), followed by its full address if available. DisplayName string `json:"displayName,omitempty"` - - // Latitude: Output only. Latitude of the POI rounding to 6th decimal - // place. + // Latitude: Output only. Latitude of the POI rounding to 6th decimal place. Latitude float64 `json:"latitude,omitempty"` - - // Longitude: Output only. Longitude of the POI rounding to 6th decimal - // place. + // Longitude: Output only. Longitude of the POI rounding to 6th decimal place. Longitude float64 `json:"longitude,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoiTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s PoiTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod PoiTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PoiTargetingOptionDetails) UnmarshalJSON(data []byte) error { @@ -14186,15 +11570,14 @@ func (s *PoiTargetingOptionDetails) UnmarshalJSON(data []byte) error { // PrismaConfig: Settings specific to the Mediaocean Prisma tool. type PrismaConfig struct { - // PrismaCpeCode: Required. Relevant client, product, and estimate codes - // from the Mediaocean Prisma tool. + // PrismaCpeCode: Required. Relevant client, product, and estimate codes from + // the Mediaocean Prisma tool. PrismaCpeCode *PrismaCpeCode `json:"prismaCpeCode,omitempty"` - // PrismaType: Required. The Prisma type. // // Possible values: - // "PRISMA_TYPE_UNSPECIFIED" - Type is not specified or unknown in - // this version. + // "PRISMA_TYPE_UNSPECIFIED" - Type is not specified or unknown in this + // version. // "PRISMA_TYPE_DISPLAY" - Display type. // "PRISMA_TYPE_SEARCH" - Search type. // "PRISMA_TYPE_VIDEO" - Video type. @@ -14202,161 +11585,125 @@ type PrismaConfig struct { // "PRISMA_TYPE_SOCIAL" - Social type. // "PRISMA_TYPE_FEE" - Fee type. PrismaType string `json:"prismaType,omitempty"` - - // Supplier: Required. The entity allocated this budget (DSP, site, - // etc.). + // Supplier: Required. The entity allocated this budget (DSP, site, etc.). Supplier string `json:"supplier,omitempty"` - // ForceSendFields is a list of field names (e.g. "PrismaCpeCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PrismaCpeCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PrismaCpeCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PrismaConfig) MarshalJSON() ([]byte, error) { +func (s PrismaConfig) MarshalJSON() ([]byte, error) { type NoMethod PrismaConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PrismaCpeCode: Google Payments Center supports searching and -// filtering on the component fields of this code. +// PrismaCpeCode: Google Payments Center supports searching and filtering on +// the component fields of this code. type PrismaCpeCode struct { // PrismaClientCode: The Prisma client code. PrismaClientCode string `json:"prismaClientCode,omitempty"` - // PrismaEstimateCode: The Prisma estimate code. PrismaEstimateCode string `json:"prismaEstimateCode,omitempty"` - // PrismaProductCode: The Prisma product code. PrismaProductCode string `json:"prismaProductCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "PrismaClientCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PrismaClientCode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PrismaClientCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PrismaCpeCode) MarshalJSON() ([]byte, error) { +func (s PrismaCpeCode) MarshalJSON() ([]byte, error) { type NoMethod PrismaCpeCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ProximityLocationListAssignedTargetingOptionDetails: Targeting -// details for proximity location list. This will be populated in the -// details field of an AssignedTargetingOption when targeting_type is +// ProximityLocationListAssignedTargetingOptionDetails: Targeting details for +// proximity location list. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`. type ProximityLocationListAssignedTargetingOptionDetails struct { - // ProximityLocationListId: Required. ID of the proximity location list. - // Should refer to the location_list_id field of a LocationList resource - // whose type is `TARGETING_LOCATION_TYPE_PROXIMITY`. + // ProximityLocationListId: Required. ID of the proximity location list. Should + // refer to the location_list_id field of a LocationList resource whose type is + // `TARGETING_LOCATION_TYPE_PROXIMITY`. ProximityLocationListId int64 `json:"proximityLocationListId,omitempty,string"` - - // ProximityRadiusRange: Required. Radius range for proximity location - // list. This represents the size of the area around a chosen location - // that will be targeted. `All` proximity location targeting under a - // single resource must have the same radius range value. Set this value - // to match any existing targeting. If updated, this field will change - // the radius range for all proximity targeting under the resource. + // ProximityRadiusRange: Required. Radius range for proximity location list. + // This represents the size of the area around a chosen location that will be + // targeted. `All` proximity location targeting under a single resource must + // have the same radius range value. Set this value to match any existing + // targeting. If updated, this field will change the radius range for all + // proximity targeting under the resource. // // Possible values: - // "PROXIMITY_RADIUS_RANGE_UNSPECIFIED" - The targeted radius range is - // not specified or is unknown. Default value when radius range is not - // specified in this version. This enum is a placeholder for default - // value and does not represent a real radius range option. - // "PROXIMITY_RADIUS_RANGE_SMALL" - The targeted radius range is - // small. - // "PROXIMITY_RADIUS_RANGE_MEDIUM" - The targeted radius range is - // medium. - // "PROXIMITY_RADIUS_RANGE_LARGE" - The targeted radius range is - // large. + // "PROXIMITY_RADIUS_RANGE_UNSPECIFIED" - The targeted radius range is not + // specified or is unknown. Default value when radius range is not specified in + // this version. This enum is a placeholder for default value and does not + // represent a real radius range option. + // "PROXIMITY_RADIUS_RANGE_SMALL" - The targeted radius range is small. + // "PROXIMITY_RADIUS_RANGE_MEDIUM" - The targeted radius range is medium. + // "PROXIMITY_RADIUS_RANGE_LARGE" - The targeted radius range is large. ProximityRadiusRange string `json:"proximityRadiusRange,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ProximityLocationListId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ProximityLocationListId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProximityLocationListId") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ProximityLocationListId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProximityLocationListAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ProximityLocationListAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ProximityLocationListAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PublisherReviewStatus: Publisher review status for the creative. type PublisherReviewStatus struct { // PublisherName: The publisher reviewing the creative. PublisherName string `json:"publisherName,omitempty"` - // Status: Status of the publisher review. // // Possible values: - // "REVIEW_STATUS_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "REVIEW_STATUS_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. // "REVIEW_STATUS_APPROVED" - The creative is approved. // "REVIEW_STATUS_REJECTED" - The creative is rejected. // "REVIEW_STATUS_PENDING" - The creative is pending review. Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "PublisherName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PublisherName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PublisherName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PublisherReviewStatus) MarshalJSON() ([]byte, error) { +func (s PublisherReviewStatus) MarshalJSON() ([]byte, error) { type NoMethod PublisherReviewStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RateDetails: The rate related settings of the inventory source. @@ -14367,189 +11714,146 @@ type RateDetails struct { // `INVENTORY_SOURCE_RATE_TYPE_CPD`. // // Possible values: - // "INVENTORY_SOURCE_RATE_TYPE_UNSPECIFIED" - The rate type is not - // specified or is unknown in this version. - // "INVENTORY_SOURCE_RATE_TYPE_CPM_FIXED" - The rate type is CPM - // (Fixed). - // "INVENTORY_SOURCE_RATE_TYPE_CPM_FLOOR" - The rate type is CPM - // (Floor). + // "INVENTORY_SOURCE_RATE_TYPE_UNSPECIFIED" - The rate type is not specified + // or is unknown in this version. + // "INVENTORY_SOURCE_RATE_TYPE_CPM_FIXED" - The rate type is CPM (Fixed). + // "INVENTORY_SOURCE_RATE_TYPE_CPM_FLOOR" - The rate type is CPM (Floor). // "INVENTORY_SOURCE_RATE_TYPE_CPD" - The rate type is Cost per Day. // "INVENTORY_SOURCE_RATE_TYPE_FLAT" - The rate type is Flat. InventorySourceRateType string `json:"inventorySourceRateType,omitempty"` - // MinimumSpend: Output only. The amount that the buyer has committed to - // spending on the inventory source up front. Only applicable for - // guaranteed inventory sources. + // spending on the inventory source up front. Only applicable for guaranteed + // inventory sources. MinimumSpend *Money `json:"minimumSpend,omitempty"` - // Rate: The rate for the inventory source. Rate *Money `json:"rate,omitempty"` - - // UnitsPurchased: Required for guaranteed inventory sources. The number - // of impressions guaranteed by the seller. + // UnitsPurchased: Required for guaranteed inventory sources. The number of + // impressions guaranteed by the seller. UnitsPurchased int64 `json:"unitsPurchased,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "InventorySourceRateType") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "InventorySourceRateType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InventorySourceRateType") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InventorySourceRateType") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RateDetails) MarshalJSON() ([]byte, error) { +func (s RateDetails) MarshalJSON() ([]byte, error) { type NoMethod RateDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RegionalLocationListAssignedTargetingOptionDetails: Targeting details -// for regional location list. This will be populated in the details -// field of an AssignedTargetingOption when targeting_type is +// RegionalLocationListAssignedTargetingOptionDetails: Targeting details for +// regional location list. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_REGIONAL_LOCATION_LIST`. type RegionalLocationListAssignedTargetingOptionDetails struct { // Negative: Indicates if this option is being negatively targeted. Negative bool `json:"negative,omitempty"` - - // RegionalLocationListId: Required. ID of the regional location list. - // Should refer to the location_list_id field of a LocationList resource - // whose type is `TARGETING_LOCATION_TYPE_REGIONAL`. + // RegionalLocationListId: Required. ID of the regional location list. Should + // refer to the location_list_id field of a LocationList resource whose type is + // `TARGETING_LOCATION_TYPE_REGIONAL`. RegionalLocationListId int64 `json:"regionalLocationListId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Negative") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Negative") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Negative") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RegionalLocationListAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s RegionalLocationListAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod RegionalLocationListAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReplaceNegativeKeywordsRequest: Request message for // NegativeKeywordService.ReplaceNegativeKeywords. type ReplaceNegativeKeywordsRequest struct { - // NewNegativeKeywords: The negative keywords that will replace the - // existing keywords in the negative keyword list, specified as a list - // of NegativeKeywords. + // NewNegativeKeywords: The negative keywords that will replace the existing + // keywords in the negative keyword list, specified as a list of + // NegativeKeywords. NewNegativeKeywords []*NegativeKeyword `json:"newNegativeKeywords,omitempty"` - - // ForceSendFields is a list of field names (e.g. "NewNegativeKeywords") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "NewNegativeKeywords") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NewNegativeKeywords") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NewNegativeKeywords") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReplaceNegativeKeywordsRequest) MarshalJSON() ([]byte, error) { +func (s ReplaceNegativeKeywordsRequest) MarshalJSON() ([]byte, error) { type NoMethod ReplaceNegativeKeywordsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReplaceNegativeKeywordsResponse: Response message for // NegativeKeywordService.ReplaceNegativeKeywords. type ReplaceNegativeKeywordsResponse struct { - // NegativeKeywords: The full list of negative keywords now present in - // the negative keyword list. + // NegativeKeywords: The full list of negative keywords now present in the + // negative keyword list. NegativeKeywords []*NegativeKeyword `json:"negativeKeywords,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NegativeKeywords") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NegativeKeywords") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NegativeKeywords") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReplaceNegativeKeywordsResponse) MarshalJSON() ([]byte, error) { +func (s ReplaceNegativeKeywordsResponse) MarshalJSON() ([]byte, error) { type NoMethod ReplaceNegativeKeywordsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReplaceSitesRequest: Request message for SiteService.ReplaceSites. type ReplaceSitesRequest struct { // AdvertiserId: The ID of the advertiser that owns the parent channel. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // NewSites: The sites that will replace the existing sites assigned to - // the channel, specified as a list of Sites. + // NewSites: The sites that will replace the existing sites assigned to the + // channel, specified as a list of Sites. NewSites []*Site `json:"newSites,omitempty"` - // PartnerId: The ID of the partner that owns the parent channel. PartnerId int64 `json:"partnerId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReplaceSitesRequest) MarshalJSON() ([]byte, error) { +func (s ReplaceSitesRequest) MarshalJSON() ([]byte, error) { type NoMethod ReplaceSitesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReplaceSitesResponse: Response message for SiteService.ReplaceSites. @@ -14557,162 +11861,133 @@ type ReplaceSitesResponse struct { // Sites: The list of sites in the channel after replacing. Sites []*Site `json:"sites,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Sites") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Sites") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Sites") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReplaceSitesResponse) MarshalJSON() ([]byte, error) { +func (s ReplaceSitesResponse) MarshalJSON() ([]byte, error) { type NoMethod ReplaceSitesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReviewStatusInfo: Review statuses for the creative. type ReviewStatusInfo struct { - // ApprovalStatus: Represents the basic approval needed for a creative - // to begin serving. Summary of creative_and_landing_page_review_status - // and content_and_policy_review_status. + // ApprovalStatus: Represents the basic approval needed for a creative to begin + // serving. Summary of creative_and_landing_page_review_status and + // content_and_policy_review_status. // // Possible values: - // "APPROVAL_STATUS_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. - // "APPROVAL_STATUS_PENDING_NOT_SERVABLE" - The creative is still - // under review and not servable. - // "APPROVAL_STATUS_PENDING_SERVABLE" - The creative has passed - // creative & landing page review and is servable, but is awaiting - // additional content & policy review. - // "APPROVAL_STATUS_APPROVED_SERVABLE" - Both creative & landing page - // review and content & policy review are approved. The creative is - // servable. - // "APPROVAL_STATUS_REJECTED_NOT_SERVABLE" - There is an issue with - // the creative that must be fixed before it can serve. + // "APPROVAL_STATUS_UNSPECIFIED" - Type value is not specified or is unknown + // in this version. + // "APPROVAL_STATUS_PENDING_NOT_SERVABLE" - The creative is still under + // review and not servable. + // "APPROVAL_STATUS_PENDING_SERVABLE" - The creative has passed creative & + // landing page review and is servable, but is awaiting additional content & + // policy review. + // "APPROVAL_STATUS_APPROVED_SERVABLE" - Both creative & landing page review + // and content & policy review are approved. The creative is servable. + // "APPROVAL_STATUS_REJECTED_NOT_SERVABLE" - There is an issue with the + // creative that must be fixed before it can serve. ApprovalStatus string `json:"approvalStatus,omitempty"` - - // ContentAndPolicyReviewStatus: Content and policy review status for - // the creative. + // ContentAndPolicyReviewStatus: Content and policy review status for the + // creative. // // Possible values: - // "REVIEW_STATUS_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "REVIEW_STATUS_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. // "REVIEW_STATUS_APPROVED" - The creative is approved. // "REVIEW_STATUS_REJECTED" - The creative is rejected. // "REVIEW_STATUS_PENDING" - The creative is pending review. ContentAndPolicyReviewStatus string `json:"contentAndPolicyReviewStatus,omitempty"` - - // CreativeAndLandingPageReviewStatus: Creative and landing page review - // status for the creative. + // CreativeAndLandingPageReviewStatus: Creative and landing page review status + // for the creative. // // Possible values: - // "REVIEW_STATUS_UNSPECIFIED" - Type value is not specified or is - // unknown in this version. + // "REVIEW_STATUS_UNSPECIFIED" - Type value is not specified or is unknown in + // this version. // "REVIEW_STATUS_APPROVED" - The creative is approved. // "REVIEW_STATUS_REJECTED" - The creative is rejected. // "REVIEW_STATUS_PENDING" - The creative is pending review. CreativeAndLandingPageReviewStatus string `json:"creativeAndLandingPageReviewStatus,omitempty"` - // ExchangeReviewStatuses: Exchange review statuses for the creative. ExchangeReviewStatuses []*ExchangeReviewStatus `json:"exchangeReviewStatuses,omitempty"` - // PublisherReviewStatuses: Publisher review statuses for the creative. PublisherReviewStatuses []*PublisherReviewStatus `json:"publisherReviewStatuses,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApprovalStatus") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApprovalStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReviewStatusInfo) MarshalJSON() ([]byte, error) { +func (s ReviewStatusInfo) MarshalJSON() ([]byte, error) { type NoMethod ReviewStatusInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ScriptError: An error message for a custom bidding script. type ScriptError struct { // Column: The column number in the script where the error was thrown. Column int64 `json:"column,omitempty,string"` - // ErrorCode: The type of error. // // Possible values: - // "ERROR_CODE_UNSPECIFIED" - The script error is not specified or is - // unknown in this version. + // "ERROR_CODE_UNSPECIFIED" - The script error is not specified or is unknown + // in this version. // "SYNTAX_ERROR" - The script has a syntax error. // "DEPRECATED_SYNTAX" - The script uses deprecated syntax. // "INTERNAL_ERROR" - Internal errors were thrown while processing the // script. ErrorCode string `json:"errorCode,omitempty"` - // ErrorMessage: The detailed error message. ErrorMessage string `json:"errorMessage,omitempty"` - // Line: The line number in the script where the error was thrown. Line int64 `json:"line,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Column") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Column") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Column") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ScriptError) MarshalJSON() ([]byte, error) { +func (s ScriptError) MarshalJSON() ([]byte, error) { type NoMethod ScriptError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SdfConfig: Structured Data File (SDF) related settings. type SdfConfig struct { - // AdminEmail: An administrator email address to which the SDF - // processing status reports will be sent. + // AdminEmail: An administrator email address to which the SDF processing + // status reports will be sent. AdminEmail string `json:"adminEmail,omitempty"` - // Version: Required. The version of SDF being used. // // Possible values: - // "SDF_VERSION_UNSPECIFIED" - SDF version value is not specified or - // is unknown in this version. + // "SDF_VERSION_UNSPECIFIED" - SDF version value is not specified or is + // unknown in this version. // "SDF_VERSION_3_1" - SDF version 3.1 // "SDF_VERSION_4" - SDF version 4 // "SDF_VERSION_4_1" - SDF version 4.1 @@ -14725,65 +12000,53 @@ type SdfConfig struct { // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 // "SDF_VERSION_7" - SDF version 7. Read the [v7 migration - // guide](/display-video/api/structured-data-file/v7-migration-guide) - // before migrating to this version. Currently in beta. Only available - // for use by a subset of users. + // guide](/display-video/api/structured-data-file/v7-migration-guide) before + // migrating to this version. Currently in beta. Only available for use by a + // subset of users. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdminEmail") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdminEmail") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdminEmail") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SdfConfig) MarshalJSON() ([]byte, error) { +func (s SdfConfig) MarshalJSON() ([]byte, error) { type NoMethod SdfConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SdfDownloadTask: Type for the response returned by // [SdfDownloadTaskService.CreateSdfDownloadTask]. type SdfDownloadTask struct { - // ResourceName: A resource name to be used in media.download to - // Download the prepared files. Resource names have the format + // ResourceName: A resource name to be used in media.download to Download the + // prepared files. Resource names have the format // `download/sdfdownloadtasks/media/{media_id}`. `media_id` will be made - // available by the long running operation service once the task status - // is done. + // available by the long running operation service once the task status is + // done. ResourceName string `json:"resourceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SdfDownloadTask) MarshalJSON() ([]byte, error) { +func (s SdfDownloadTask) MarshalJSON() ([]byte, error) { type NoMethod SdfDownloadTask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SdfDownloadTaskMetadata: Type for the metadata returned by @@ -14791,15 +12054,13 @@ func (s *SdfDownloadTask) MarshalJSON() ([]byte, error) { type SdfDownloadTaskMetadata struct { // CreateTime: The time when the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: The time when execution was completed. EndTime string `json:"endTime,omitempty"` - // Version: The SDF version used to execute this download task. // // Possible values: - // "SDF_VERSION_UNSPECIFIED" - SDF version value is not specified or - // is unknown in this version. + // "SDF_VERSION_UNSPECIFIED" - SDF version value is not specified or is + // unknown in this version. // "SDF_VERSION_3_1" - SDF version 3.1 // "SDF_VERSION_4" - SDF version 4 // "SDF_VERSION_4_1" - SDF version 4.1 @@ -14812,474 +12073,388 @@ type SdfDownloadTaskMetadata struct { // "SDF_VERSION_5_5" - SDF version 5.5 // "SDF_VERSION_6" - SDF version 6 // "SDF_VERSION_7" - SDF version 7. Read the [v7 migration - // guide](/display-video/api/structured-data-file/v7-migration-guide) - // before migrating to this version. Currently in beta. Only available - // for use by a subset of users. + // guide](/display-video/api/structured-data-file/v7-migration-guide) before + // migrating to this version. Currently in beta. Only available for use by a + // subset of users. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SdfDownloadTaskMetadata) MarshalJSON() ([]byte, error) { +func (s SdfDownloadTaskMetadata) MarshalJSON() ([]byte, error) { type NoMethod SdfDownloadTaskMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SearchTargetingOptionsRequest: Request message for -// SearchTargetingOptions. +// SearchTargetingOptionsRequest: Request message for SearchTargetingOptions. type SearchTargetingOptionsRequest struct { - // AdvertiserId: Required. The Advertiser this request is being made in - // the context of. + // AdvertiserId: Required. The Advertiser this request is being made in the + // context of. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - - // BusinessChainSearchTerms: Search terms for Business Chain targeting - // options. Can only be used when targeting_type is - // `TARGETING_TYPE_BUSINESS_CHAIN`. + // BusinessChainSearchTerms: Search terms for Business Chain targeting options. + // Can only be used when targeting_type is `TARGETING_TYPE_BUSINESS_CHAIN`. BusinessChainSearchTerms *BusinessChainSearchTerms `json:"businessChainSearchTerms,omitempty"` - - // GeoRegionSearchTerms: Search terms for geo region targeting options. - // Can only be used when targeting_type is `TARGETING_TYPE_GEO_REGION`. + // GeoRegionSearchTerms: Search terms for geo region targeting options. Can + // only be used when targeting_type is `TARGETING_TYPE_GEO_REGION`. GeoRegionSearchTerms *GeoRegionSearchTerms `json:"geoRegionSearchTerms,omitempty"` - - // PageSize: Requested page size. Must be between `1` and `200`. If - // unspecified will default to `100`. Returns error code - // `INVALID_ARGUMENT` if an invalid value is specified. + // PageSize: Requested page size. Must be between `1` and `200`. If unspecified + // will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid + // value is specified. PageSize int64 `json:"pageSize,omitempty"` - - // PageToken: A token identifying a page of results the server should - // return. Typically, this is the value of next_page_token returned from - // the previous call to `SearchTargetingOptions` method. If not - // specified, the first page of results will be returned. + // PageToken: A token identifying a page of results the server should return. + // Typically, this is the value of next_page_token returned from the previous + // call to `SearchTargetingOptions` method. If not specified, the first page of + // results will be returned. PageToken string `json:"pageToken,omitempty"` - - // PoiSearchTerms: Search terms for POI targeting options. Can only be - // used when targeting_type is `TARGETING_TYPE_POI`. + // PoiSearchTerms: Search terms for POI targeting options. Can only be used + // when targeting_type is `TARGETING_TYPE_POI`. PoiSearchTerms *PoiSearchTerms `json:"poiSearchTerms,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdvertiserId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertiserId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertiserId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SearchTargetingOptionsRequest) MarshalJSON() ([]byte, error) { +func (s SearchTargetingOptionsRequest) MarshalJSON() ([]byte, error) { type NoMethod SearchTargetingOptionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SearchTargetingOptionsResponse: Response message for -// SearchTargetingOptions. +// SearchTargetingOptionsResponse: Response message for SearchTargetingOptions. type SearchTargetingOptionsResponse struct { - // NextPageToken: A token to retrieve the next page of results. Pass - // this value in the page_token field in the subsequent call to - // `SearchTargetingOptions` method to retrieve the next page of results. + // NextPageToken: A token to retrieve the next page of results. Pass this value + // in the page_token field in the subsequent call to `SearchTargetingOptions` + // method to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // TargetingOptions: The list of targeting options that match the search // criteria. This list will be absent if empty. TargetingOptions []*TargetingOption `json:"targetingOptions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SearchTargetingOptionsResponse) MarshalJSON() ([]byte, error) { +func (s SearchTargetingOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod SearchTargetingOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SensitiveCategoryAssignedTargetingOptionDetails: Targeting details -// for sensitive category. This will be populated in the details field -// of an AssignedTargetingOption when targeting_type is +// SensitiveCategoryAssignedTargetingOptionDetails: Targeting details for +// sensitive category. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. type SensitiveCategoryAssignedTargetingOptionDetails struct { - // ExcludedTargetingOptionId: Required. ID of the sensitive category to - // be EXCLUDED. + // ExcludedTargetingOptionId: Required. ID of the sensitive category to be + // EXCLUDED. ExcludedTargetingOptionId string `json:"excludedTargetingOptionId,omitempty"` - - // SensitiveCategory: Output only. An enum for the DV360 Sensitive - // category content classifier. + // SensitiveCategory: Output only. An enum for the DV360 Sensitive category + // content classifier. // // Possible values: - // "SENSITIVE_CATEGORY_UNSPECIFIED" - This enum is only a placeholder - // and doesn't specify a DV360 sensitive category. - // "SENSITIVE_CATEGORY_ADULT" - Adult or pornographic text, image, or - // video content. - // "SENSITIVE_CATEGORY_DEROGATORY" - Content that may be construed as - // biased against individuals, groups, or organizations based on - // criteria such as race, religion, disability, sex, age, veteran - // status, sexual orientation, gender identity, or political - // affiliation. May also indicate discussion of such content, for - // instance, in an academic or journalistic context. - // "SENSITIVE_CATEGORY_DOWNLOADS_SHARING" - Content related to audio, - // video, or software downloads. + // "SENSITIVE_CATEGORY_UNSPECIFIED" - This enum is only a placeholder and + // doesn't specify a DV360 sensitive category. + // "SENSITIVE_CATEGORY_ADULT" - Adult or pornographic text, image, or video + // content. + // "SENSITIVE_CATEGORY_DEROGATORY" - Content that may be construed as biased + // against individuals, groups, or organizations based on criteria such as + // race, religion, disability, sex, age, veteran status, sexual orientation, + // gender identity, or political affiliation. May also indicate discussion of + // such content, for instance, in an academic or journalistic context. + // "SENSITIVE_CATEGORY_DOWNLOADS_SHARING" - Content related to audio, video, + // or software downloads. // "SENSITIVE_CATEGORY_WEAPONS" - Contains content related to personal - // weapons, including knives, guns, small firearms, and ammunition. - // Selecting either "weapons" or "sensitive social issues" will result - // in selecting both. - // "SENSITIVE_CATEGORY_GAMBLING" - Contains content related to betting - // or wagering in a real-world or online setting. + // weapons, including knives, guns, small firearms, and ammunition. Selecting + // either "weapons" or "sensitive social issues" will result in selecting both. + // "SENSITIVE_CATEGORY_GAMBLING" - Contains content related to betting or + // wagering in a real-world or online setting. // "SENSITIVE_CATEGORY_VIOLENCE" - Content which may be considered - // graphically violent, gory, gruesome, or shocking, such as street - // fighting videos, accident photos, descriptions of torture, etc. - // "SENSITIVE_CATEGORY_SUGGESTIVE" - Adult content, as well as - // suggestive content that's not explicitly pornographic. This category - // includes all pages categorized as adult. + // graphically violent, gory, gruesome, or shocking, such as street fighting + // videos, accident photos, descriptions of torture, etc. + // "SENSITIVE_CATEGORY_SUGGESTIVE" - Adult content, as well as suggestive + // content that's not explicitly pornographic. This category includes all pages + // categorized as adult. // "SENSITIVE_CATEGORY_PROFANITY" - Prominent use of words considered // indecent, such as curse words and sexual slang. Pages with only very - // occasional usage, such as news sites that might include such words in - // a quotation, are not included. - // "SENSITIVE_CATEGORY_ALCOHOL" - Contains content related to - // alcoholic beverages, alcohol brands, recipes, etc. - // "SENSITIVE_CATEGORY_DRUGS" - Contains content related to the - // recreational use of legal or illegal drugs, as well as to drug - // paraphernalia or cultivation. - // "SENSITIVE_CATEGORY_TOBACCO" - Contains content related to tobacco - // and tobacco accessories, including lighters, humidors, ashtrays, etc. + // occasional usage, such as news sites that might include such words in a + // quotation, are not included. + // "SENSITIVE_CATEGORY_ALCOHOL" - Contains content related to alcoholic + // beverages, alcohol brands, recipes, etc. + // "SENSITIVE_CATEGORY_DRUGS" - Contains content related to the recreational + // use of legal or illegal drugs, as well as to drug paraphernalia or + // cultivation. + // "SENSITIVE_CATEGORY_TOBACCO" - Contains content related to tobacco and + // tobacco accessories, including lighters, humidors, ashtrays, etc. // "SENSITIVE_CATEGORY_POLITICS" - Political news and media, including // discussions of social, governmental, and public policy. - // "SENSITIVE_CATEGORY_RELIGION" - Content related to religious - // thought or beliefs. + // "SENSITIVE_CATEGORY_RELIGION" - Content related to religious thought or + // beliefs. // "SENSITIVE_CATEGORY_TRAGEDY" - Content related to death, disasters, // accidents, war, etc. - // "SENSITIVE_CATEGORY_TRANSPORTATION_ACCIDENTS" - Content related to - // motor vehicle, aviation or other transportation accidents. - // "SENSITIVE_CATEGORY_SENSITIVE_SOCIAL_ISSUES" - Issues that evoke - // strong, opposing views and spark debate. These include issues that - // are controversial in most countries and markets (such as abortion), - // as well as those that are controversial in specific countries and - // markets (such as immigration reform in the United States). - // "SENSITIVE_CATEGORY_SHOCKING" - Content which may be considered - // shocking or disturbing, such as violent news stories, stunts, or - // toilet humor. + // "SENSITIVE_CATEGORY_TRANSPORTATION_ACCIDENTS" - Content related to motor + // vehicle, aviation or other transportation accidents. + // "SENSITIVE_CATEGORY_SENSITIVE_SOCIAL_ISSUES" - Issues that evoke strong, + // opposing views and spark debate. These include issues that are controversial + // in most countries and markets (such as abortion), as well as those that are + // controversial in specific countries and markets (such as immigration reform + // in the United States). + // "SENSITIVE_CATEGORY_SHOCKING" - Content which may be considered shocking + // or disturbing, such as violent news stories, stunts, or toilet humor. SensitiveCategory string `json:"sensitiveCategory,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ExcludedTargetingOptionId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ExcludedTargetingOptionId") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExcludedTargetingOptionId") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExcludedTargetingOptionId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SensitiveCategoryAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s SensitiveCategoryAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod SensitiveCategoryAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SensitiveCategoryTargetingOptionDetails: Represents a targetable -// sensitive category. This will be populated in the -// sensitive_category_details field of the TargetingOption when -// targeting_type is `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// SensitiveCategoryTargetingOptionDetails: Represents a targetable sensitive +// category. This will be populated in the sensitive_category_details field of +// the TargetingOption when targeting_type is +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. type SensitiveCategoryTargetingOptionDetails struct { - // SensitiveCategory: Output only. An enum for the DV360 Sensitive - // category content classifier. + // SensitiveCategory: Output only. An enum for the DV360 Sensitive category + // content classifier. // // Possible values: - // "SENSITIVE_CATEGORY_UNSPECIFIED" - This enum is only a placeholder - // and doesn't specify a DV360 sensitive category. - // "SENSITIVE_CATEGORY_ADULT" - Adult or pornographic text, image, or - // video content. - // "SENSITIVE_CATEGORY_DEROGATORY" - Content that may be construed as - // biased against individuals, groups, or organizations based on - // criteria such as race, religion, disability, sex, age, veteran - // status, sexual orientation, gender identity, or political - // affiliation. May also indicate discussion of such content, for - // instance, in an academic or journalistic context. - // "SENSITIVE_CATEGORY_DOWNLOADS_SHARING" - Content related to audio, - // video, or software downloads. + // "SENSITIVE_CATEGORY_UNSPECIFIED" - This enum is only a placeholder and + // doesn't specify a DV360 sensitive category. + // "SENSITIVE_CATEGORY_ADULT" - Adult or pornographic text, image, or video + // content. + // "SENSITIVE_CATEGORY_DEROGATORY" - Content that may be construed as biased + // against individuals, groups, or organizations based on criteria such as + // race, religion, disability, sex, age, veteran status, sexual orientation, + // gender identity, or political affiliation. May also indicate discussion of + // such content, for instance, in an academic or journalistic context. + // "SENSITIVE_CATEGORY_DOWNLOADS_SHARING" - Content related to audio, video, + // or software downloads. // "SENSITIVE_CATEGORY_WEAPONS" - Contains content related to personal - // weapons, including knives, guns, small firearms, and ammunition. - // Selecting either "weapons" or "sensitive social issues" will result - // in selecting both. - // "SENSITIVE_CATEGORY_GAMBLING" - Contains content related to betting - // or wagering in a real-world or online setting. + // weapons, including knives, guns, small firearms, and ammunition. Selecting + // either "weapons" or "sensitive social issues" will result in selecting both. + // "SENSITIVE_CATEGORY_GAMBLING" - Contains content related to betting or + // wagering in a real-world or online setting. // "SENSITIVE_CATEGORY_VIOLENCE" - Content which may be considered - // graphically violent, gory, gruesome, or shocking, such as street - // fighting videos, accident photos, descriptions of torture, etc. - // "SENSITIVE_CATEGORY_SUGGESTIVE" - Adult content, as well as - // suggestive content that's not explicitly pornographic. This category - // includes all pages categorized as adult. + // graphically violent, gory, gruesome, or shocking, such as street fighting + // videos, accident photos, descriptions of torture, etc. + // "SENSITIVE_CATEGORY_SUGGESTIVE" - Adult content, as well as suggestive + // content that's not explicitly pornographic. This category includes all pages + // categorized as adult. // "SENSITIVE_CATEGORY_PROFANITY" - Prominent use of words considered // indecent, such as curse words and sexual slang. Pages with only very - // occasional usage, such as news sites that might include such words in - // a quotation, are not included. - // "SENSITIVE_CATEGORY_ALCOHOL" - Contains content related to - // alcoholic beverages, alcohol brands, recipes, etc. - // "SENSITIVE_CATEGORY_DRUGS" - Contains content related to the - // recreational use of legal or illegal drugs, as well as to drug - // paraphernalia or cultivation. - // "SENSITIVE_CATEGORY_TOBACCO" - Contains content related to tobacco - // and tobacco accessories, including lighters, humidors, ashtrays, etc. + // occasional usage, such as news sites that might include such words in a + // quotation, are not included. + // "SENSITIVE_CATEGORY_ALCOHOL" - Contains content related to alcoholic + // beverages, alcohol brands, recipes, etc. + // "SENSITIVE_CATEGORY_DRUGS" - Contains content related to the recreational + // use of legal or illegal drugs, as well as to drug paraphernalia or + // cultivation. + // "SENSITIVE_CATEGORY_TOBACCO" - Contains content related to tobacco and + // tobacco accessories, including lighters, humidors, ashtrays, etc. // "SENSITIVE_CATEGORY_POLITICS" - Political news and media, including // discussions of social, governmental, and public policy. - // "SENSITIVE_CATEGORY_RELIGION" - Content related to religious - // thought or beliefs. + // "SENSITIVE_CATEGORY_RELIGION" - Content related to religious thought or + // beliefs. // "SENSITIVE_CATEGORY_TRAGEDY" - Content related to death, disasters, // accidents, war, etc. - // "SENSITIVE_CATEGORY_TRANSPORTATION_ACCIDENTS" - Content related to - // motor vehicle, aviation or other transportation accidents. - // "SENSITIVE_CATEGORY_SENSITIVE_SOCIAL_ISSUES" - Issues that evoke - // strong, opposing views and spark debate. These include issues that - // are controversial in most countries and markets (such as abortion), - // as well as those that are controversial in specific countries and - // markets (such as immigration reform in the United States). - // "SENSITIVE_CATEGORY_SHOCKING" - Content which may be considered - // shocking or disturbing, such as violent news stories, stunts, or - // toilet humor. + // "SENSITIVE_CATEGORY_TRANSPORTATION_ACCIDENTS" - Content related to motor + // vehicle, aviation or other transportation accidents. + // "SENSITIVE_CATEGORY_SENSITIVE_SOCIAL_ISSUES" - Issues that evoke strong, + // opposing views and spark debate. These include issues that are controversial + // in most countries and markets (such as abortion), as well as those that are + // controversial in specific countries and markets (such as immigration reform + // in the United States). + // "SENSITIVE_CATEGORY_SHOCKING" - Content which may be considered shocking + // or disturbing, such as violent news stories, stunts, or toilet humor. SensitiveCategory string `json:"sensitiveCategory,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SensitiveCategory") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "SensitiveCategory") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SensitiveCategory") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "SensitiveCategory") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SensitiveCategoryTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s SensitiveCategoryTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod SensitiveCategoryTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Site: A single site. Sites are apps or websites belonging to a -// channel. +// Site: A single site. Sites are apps or websites belonging to a channel. type Site struct { // Name: Output only. The resource name of the site. Name string `json:"name,omitempty"` - - // UrlOrAppId: Required. The app ID or URL of the site. Must be UTF-8 - // encoded with a maximum length of 240 bytes. + // UrlOrAppId: Required. The app ID or URL of the site. Must be UTF-8 encoded + // with a maximum length of 240 bytes. UrlOrAppId string `json:"urlOrAppId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Site) MarshalJSON() ([]byte, error) { +func (s Site) MarshalJSON() ([]byte, error) { type NoMethod Site - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SubExchangeAssignedTargetingOptionDetails: Details for assigned -// sub-exchange targeting option. This will be populated in the details -// field of an AssignedTargetingOption when targeting_type is +// SubExchangeAssignedTargetingOptionDetails: Details for assigned sub-exchange +// targeting option. This will be populated in the details field of an +// AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_SUB_EXCHANGE`. type SubExchangeAssignedTargetingOptionDetails struct { - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_SUB_EXCHANGE`. + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_SUB_EXCHANGE`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TargetingOptionId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetingOptionId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TargetingOptionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TargetingOptionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubExchangeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s SubExchangeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod SubExchangeAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SubExchangeTargetingOptionDetails: Represents a targetable -// sub-exchange. This will be populated in the sub_exchange_details -// field of a TargetingOption when targeting_type is -// `TARGETING_TYPE_SUB_EXCHANGE`. +// SubExchangeTargetingOptionDetails: Represents a targetable sub-exchange. +// This will be populated in the sub_exchange_details field of a +// TargetingOption when targeting_type is `TARGETING_TYPE_SUB_EXCHANGE`. type SubExchangeTargetingOptionDetails struct { // DisplayName: Output only. The display name of the sub-exchange. DisplayName string `json:"displayName,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubExchangeTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s SubExchangeTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod SubExchangeTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetingExpansionConfig: Settings that control the optimized -// targeting (//support.google.com/displayvideo/answer/12060859) -// settings of the line item. +// TargetingExpansionConfig: Settings that control the optimized targeting +// (//support.google.com/displayvideo/answer/12060859) settings of the line +// item. type TargetingExpansionConfig struct { - // ExcludeFirstPartyAudience: Whether to exclude first-party audiences - // from use in targeting expansion. This field was deprecated with the - // launch of optimized targeting - // (//support.google.com/displayvideo/answer/12060859). This field will - // be set to `false`. If this field is set to `true` when deprecated, - // all positive first-party audience targeting assigned to this line - // item will be replaced with negative targeting of the same first-party + // ExcludeFirstPartyAudience: Whether to exclude first-party audiences from use + // in targeting expansion. This field was deprecated with the launch of + // optimized targeting (//support.google.com/displayvideo/answer/12060859). + // This field will be set to `false`. If this field is set to `true` when + // deprecated, all positive first-party audience targeting assigned to this + // line item will be replaced with negative targeting of the same first-party // audiences to ensure the continued exclusion of those audiences. ExcludeFirstPartyAudience bool `json:"excludeFirstPartyAudience,omitempty"` - - // TargetingExpansionLevel: Required. Whether optimized targeting is - // turned on. This field supports the following values: * - // `NO_EXPANSION`: optimized targeting is turned off * - // `LEAST_EXPANSION`: optimized targeting is turned on If this field is - // set to any other value, it will automatically be set to - // `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the - // field and will be automatically assigned if you do not set the field. + // TargetingExpansionLevel: Required. Whether optimized targeting is turned on. + // This field supports the following values: * `NO_EXPANSION`: optimized + // targeting is turned off * `LEAST_EXPANSION`: optimized targeting is turned + // on If this field is set to any other value, it will automatically be set to + // `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field + // and will be automatically assigned if you do not set the field. // // Possible values: - // "TARGETING_EXPANSION_LEVEL_UNSPECIFIED" - The optimized targeting - // setting is not specified or is unknown in this version. + // "TARGETING_EXPANSION_LEVEL_UNSPECIFIED" - The optimized targeting setting + // is not specified or is unknown in this version. // "NO_EXPANSION" - Optimized targeting is off. // "LEAST_EXPANSION" - Optimized targeting is on. // "SOME_EXPANSION" - If used, will automatically be set to @@ -15291,576 +12466,451 @@ type TargetingExpansionConfig struct { // "MOST_EXPANSION" - If used, will automatically be set to // `LEAST_EXPANSION`. TargetingExpansionLevel string `json:"targetingExpansionLevel,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ExcludeFirstPartyAudience") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ExcludeFirstPartyAudience") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ExcludeFirstPartyAudience") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExcludeFirstPartyAudience") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingExpansionConfig) MarshalJSON() ([]byte, error) { +func (s TargetingExpansionConfig) MarshalJSON() ([]byte, error) { type NoMethod TargetingExpansionConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TargetingOption: Represents a single targeting option, which is a -// targetable concept in DV360. +// TargetingOption: Represents a single targeting option, which is a targetable +// concept in DV360. type TargetingOption struct { // AgeRangeDetails: Age range details. AgeRangeDetails *AgeRangeTargetingOptionDetails `json:"ageRangeDetails,omitempty"` - // AppCategoryDetails: App category details. AppCategoryDetails *AppCategoryTargetingOptionDetails `json:"appCategoryDetails,omitempty"` - // AudioContentTypeDetails: Audio content type details. AudioContentTypeDetails *AudioContentTypeTargetingOptionDetails `json:"audioContentTypeDetails,omitempty"` - - // AuthorizedSellerStatusDetails: Authorized seller status resource - // details. + // AuthorizedSellerStatusDetails: Authorized seller status resource details. AuthorizedSellerStatusDetails *AuthorizedSellerStatusTargetingOptionDetails `json:"authorizedSellerStatusDetails,omitempty"` - // BrowserDetails: Browser details. BrowserDetails *BrowserTargetingOptionDetails `json:"browserDetails,omitempty"` - // BusinessChainDetails: Business chain resource details. BusinessChainDetails *BusinessChainTargetingOptionDetails `json:"businessChainDetails,omitempty"` - // CarrierAndIspDetails: Carrier and ISP details. CarrierAndIspDetails *CarrierAndIspTargetingOptionDetails `json:"carrierAndIspDetails,omitempty"` - // CategoryDetails: Category resource details. CategoryDetails *CategoryTargetingOptionDetails `json:"categoryDetails,omitempty"` - // ContentDurationDetails: Content duration resource details. ContentDurationDetails *ContentDurationTargetingOptionDetails `json:"contentDurationDetails,omitempty"` - // ContentGenreDetails: Content genre resource details. ContentGenreDetails *ContentGenreTargetingOptionDetails `json:"contentGenreDetails,omitempty"` - // ContentInstreamPositionDetails: Content instream position details. ContentInstreamPositionDetails *ContentInstreamPositionTargetingOptionDetails `json:"contentInstreamPositionDetails,omitempty"` - // ContentOutstreamPositionDetails: Content outstream position details. ContentOutstreamPositionDetails *ContentOutstreamPositionTargetingOptionDetails `json:"contentOutstreamPositionDetails,omitempty"` - // ContentStreamTypeDetails: Content stream type resource details. ContentStreamTypeDetails *ContentStreamTypeTargetingOptionDetails `json:"contentStreamTypeDetails,omitempty"` - // DeviceMakeModelDetails: Device make and model resource details. DeviceMakeModelDetails *DeviceMakeModelTargetingOptionDetails `json:"deviceMakeModelDetails,omitempty"` - // DeviceTypeDetails: Device type details. DeviceTypeDetails *DeviceTypeTargetingOptionDetails `json:"deviceTypeDetails,omitempty"` - // DigitalContentLabelDetails: Digital content label details. DigitalContentLabelDetails *DigitalContentLabelTargetingOptionDetails `json:"digitalContentLabelDetails,omitempty"` - // EnvironmentDetails: Environment details. EnvironmentDetails *EnvironmentTargetingOptionDetails `json:"environmentDetails,omitempty"` - // ExchangeDetails: Exchange details. ExchangeDetails *ExchangeTargetingOptionDetails `json:"exchangeDetails,omitempty"` - // GenderDetails: Gender details. GenderDetails *GenderTargetingOptionDetails `json:"genderDetails,omitempty"` - // GeoRegionDetails: Geographic region resource details. GeoRegionDetails *GeoRegionTargetingOptionDetails `json:"geoRegionDetails,omitempty"` - // HouseholdIncomeDetails: Household income details. HouseholdIncomeDetails *HouseholdIncomeTargetingOptionDetails `json:"householdIncomeDetails,omitempty"` - // LanguageDetails: Language resource details. LanguageDetails *LanguageTargetingOptionDetails `json:"languageDetails,omitempty"` - // Name: Output only. The resource name for this targeting option. Name string `json:"name,omitempty"` - // NativeContentPositionDetails: Native content position details. NativeContentPositionDetails *NativeContentPositionTargetingOptionDetails `json:"nativeContentPositionDetails,omitempty"` - // OmidDetails: Open Measurement enabled inventory details. OmidDetails *OmidTargetingOptionDetails `json:"omidDetails,omitempty"` - // OnScreenPositionDetails: On screen position details. OnScreenPositionDetails *OnScreenPositionTargetingOptionDetails `json:"onScreenPositionDetails,omitempty"` - // OperatingSystemDetails: Operating system resources details. OperatingSystemDetails *OperatingSystemTargetingOptionDetails `json:"operatingSystemDetails,omitempty"` - // ParentalStatusDetails: Parental status details. ParentalStatusDetails *ParentalStatusTargetingOptionDetails `json:"parentalStatusDetails,omitempty"` - // PoiDetails: POI resource details. PoiDetails *PoiTargetingOptionDetails `json:"poiDetails,omitempty"` - // SensitiveCategoryDetails: Sensitive Category details. SensitiveCategoryDetails *SensitiveCategoryTargetingOptionDetails `json:"sensitiveCategoryDetails,omitempty"` - // SubExchangeDetails: Sub-exchange details. SubExchangeDetails *SubExchangeTargetingOptionDetails `json:"subExchangeDetails,omitempty"` - - // TargetingOptionId: Output only. A unique identifier for this - // targeting option. The tuple {`targeting_type`, `targeting_option_id`} - // will be unique. + // TargetingOptionId: Output only. A unique identifier for this targeting + // option. The tuple {`targeting_type`, `targeting_option_id`} will be unique. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // TargetingType: Output only. The type of this targeting option. // // Possible values: - // "TARGETING_TYPE_UNSPECIFIED" - Default value when type is not - // specified or is unknown in this version. - // "TARGETING_TYPE_CHANNEL" - Target a channel (a custom group of - // related websites or apps). - // "TARGETING_TYPE_APP_CATEGORY" - Target an app category (for - // example, education or puzzle games). - // "TARGETING_TYPE_APP" - Target a specific app (for example, Angry - // Birds). - // "TARGETING_TYPE_URL" - Target a specific url (for example, - // quora.com). - // "TARGETING_TYPE_DAY_AND_TIME" - Target ads during a chosen time - // period on a specific day. - // "TARGETING_TYPE_AGE_RANGE" - Target ads to a specific age range - // (for example, 18-24). - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST" - Target ads to the - // specified regions on a regional location list. - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST" - Target ads to the - // specified points of interest on a proximity location list. - // "TARGETING_TYPE_GENDER" - Target ads to a specific gender (for - // example, female or male). - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE" - Target a specific video player - // size for video ads. - // "TARGETING_TYPE_USER_REWARDED_CONTENT" - Target user rewarded - // content for video ads. - // "TARGETING_TYPE_PARENTAL_STATUS" - Target ads to a specific - // parental status (for example, parent or not a parent). - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION" - Target video or audio - // ads in a specific content instream position (for example, pre-roll, - // mid-roll, or post-roll). - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION" - Target ads in a - // specific content outstream position. - // "TARGETING_TYPE_DEVICE_TYPE" - Target ads to a specific device type - // (for example, tablet or connected TV). - // "TARGETING_TYPE_AUDIENCE_GROUP" - Target ads to an audience or - // groups of audiences. Singleton field, at most one can exist on a - // single Lineitem at a time. + // "TARGETING_TYPE_UNSPECIFIED" - Default value when type is not specified or + // is unknown in this version. + // "TARGETING_TYPE_CHANNEL" - Target a channel (a custom group of related + // websites or apps). + // "TARGETING_TYPE_APP_CATEGORY" - Target an app category (for example, + // education or puzzle games). + // "TARGETING_TYPE_APP" - Target a specific app (for example, Angry Birds). + // "TARGETING_TYPE_URL" - Target a specific url (for example, quora.com). + // "TARGETING_TYPE_DAY_AND_TIME" - Target ads during a chosen time period on + // a specific day. + // "TARGETING_TYPE_AGE_RANGE" - Target ads to a specific age range (for + // example, 18-24). + // "TARGETING_TYPE_REGIONAL_LOCATION_LIST" - Target ads to the specified + // regions on a regional location list. + // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST" - Target ads to the specified + // points of interest on a proximity location list. + // "TARGETING_TYPE_GENDER" - Target ads to a specific gender (for example, + // female or male). + // "TARGETING_TYPE_VIDEO_PLAYER_SIZE" - Target a specific video player size + // for video ads. + // "TARGETING_TYPE_USER_REWARDED_CONTENT" - Target user rewarded content for + // video ads. + // "TARGETING_TYPE_PARENTAL_STATUS" - Target ads to a specific parental + // status (for example, parent or not a parent). + // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION" - Target video or audio ads in + // a specific content instream position (for example, pre-roll, mid-roll, or + // post-roll). + // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION" - Target ads in a specific + // content outstream position. + // "TARGETING_TYPE_DEVICE_TYPE" - Target ads to a specific device type (for + // example, tablet or connected TV). + // "TARGETING_TYPE_AUDIENCE_GROUP" - Target ads to an audience or groups of + // audiences. Singleton field, at most one can exist on a single Lineitem at a + // time. // "TARGETING_TYPE_BROWSER" - Target ads to specific web browsers (for // example, Chrome). - // "TARGETING_TYPE_HOUSEHOLD_INCOME" - Target ads to a specific - // household income range (for example, top 10%). - // "TARGETING_TYPE_ON_SCREEN_POSITION" - Target ads in a specific on - // screen position. - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER" - Filter web sites through - // third party verification (for example, IAS or DoubleVerify). - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION" - Filter web sites - // by specific digital content label ratings (for example, DL-MA: - // suitable only for mature audiences). - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION" - Filter website - // content by sensitive categories (for example, adult). - // "TARGETING_TYPE_ENVIRONMENT" - Target ads to a specific environment - // (for example, web or app). + // "TARGETING_TYPE_HOUSEHOLD_INCOME" - Target ads to a specific household + // income range (for example, top 10%). + // "TARGETING_TYPE_ON_SCREEN_POSITION" - Target ads in a specific on screen + // position. + // "TARGETING_TYPE_THIRD_PARTY_VERIFIER" - Filter web sites through third + // party verification (for example, IAS or DoubleVerify). + // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION" - Filter web sites by + // specific digital content label ratings (for example, DL-MA: suitable only + // for mature audiences). + // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION" - Filter website content by + // sensitive categories (for example, adult). + // "TARGETING_TYPE_ENVIRONMENT" - Target ads to a specific environment (for + // example, web or app). // "TARGETING_TYPE_CARRIER_AND_ISP" - Target ads to a specific network - // carrier or internet service provider (ISP) (for example, Comcast or - // Orange). - // "TARGETING_TYPE_OPERATING_SYSTEM" - Target ads to a specific - // operating system (for example, macOS). - // "TARGETING_TYPE_DEVICE_MAKE_MODEL" - Target ads to a specific - // device make or model (for example, Roku or Samsung). - // "TARGETING_TYPE_KEYWORD" - Target ads to a specific keyword (for - // example, dog or retriever). - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST" - Target ads to a specific - // negative keyword list. - // "TARGETING_TYPE_VIEWABILITY" - Target ads to a specific viewability - // (for example, 80% viewable). - // "TARGETING_TYPE_CATEGORY" - Target ads to a specific content - // category (for example, arts & entertainment). - // "TARGETING_TYPE_INVENTORY_SOURCE" - Purchase impressions from - // specific deals and auction packages. + // carrier or internet service provider (ISP) (for example, Comcast or Orange). + // "TARGETING_TYPE_OPERATING_SYSTEM" - Target ads to a specific operating + // system (for example, macOS). + // "TARGETING_TYPE_DEVICE_MAKE_MODEL" - Target ads to a specific device make + // or model (for example, Roku or Samsung). + // "TARGETING_TYPE_KEYWORD" - Target ads to a specific keyword (for example, + // dog or retriever). + // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST" - Target ads to a specific negative + // keyword list. + // "TARGETING_TYPE_VIEWABILITY" - Target ads to a specific viewability (for + // example, 80% viewable). + // "TARGETING_TYPE_CATEGORY" - Target ads to a specific content category (for + // example, arts & entertainment). + // "TARGETING_TYPE_INVENTORY_SOURCE" - Purchase impressions from specific + // deals and auction packages. // "TARGETING_TYPE_LANGUAGE" - Target ads to a specific language (for // example, English or Japanese). // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS" - Target ads to ads.txt - // authorized sellers. If no targeting option of this type is assigned, - // the resource uses the "Authorized Direct Sellers and Resellers" - // option by default. - // "TARGETING_TYPE_GEO_REGION" - Target ads to a specific regional - // location (for example, a city or state). - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP" - Purchase impressions from - // a group of deals and auction packages. - // "TARGETING_TYPE_EXCHANGE" - Purchase impressions from specific - // exchanges. + // authorized sellers. If no targeting option of this type is assigned, the + // resource uses the "Authorized Direct Sellers and Resellers" option by + // default. + // "TARGETING_TYPE_GEO_REGION" - Target ads to a specific regional location + // (for example, a city or state). + // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP" - Purchase impressions from a + // group of deals and auction packages. + // "TARGETING_TYPE_EXCHANGE" - Purchase impressions from specific exchanges. // "TARGETING_TYPE_SUB_EXCHANGE" - Purchase impressions from specific // sub-exchanges. - // "TARGETING_TYPE_POI" - Target ads around a specific point of - // interest, such as a notable building, a street address, or - // latitude/longitude coordinates. + // "TARGETING_TYPE_POI" - Target ads around a specific point of interest, + // such as a notable building, a street address, or latitude/longitude + // coordinates. // "TARGETING_TYPE_BUSINESS_CHAIN" - Target ads around locations of a // business chain within a specific geo region. - // "TARGETING_TYPE_CONTENT_DURATION" - Target ads to a specific video - // content duration. - // "TARGETING_TYPE_CONTENT_STREAM_TYPE" - Target ads to a specific - // video content stream type. - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION" - Target ads to a specific - // native content position. + // "TARGETING_TYPE_CONTENT_DURATION" - Target ads to a specific video content + // duration. + // "TARGETING_TYPE_CONTENT_STREAM_TYPE" - Target ads to a specific video + // content stream type. + // "TARGETING_TYPE_NATIVE_CONTENT_POSITION" - Target ads to a specific native + // content position. // "TARGETING_TYPE_OMID" - Target ads in an Open Measurement enabled // inventory. - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE" - Target ads to a specific - // audio content type. - // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content - // genre. + // "TARGETING_TYPE_AUDIO_CONTENT_TYPE" - Target ads to a specific audio + // content type. + // "TARGETING_TYPE_CONTENT_GENRE" - Target ads to a specific content genre. TargetingType string `json:"targetingType,omitempty"` - // UserRewardedContentDetails: User rewarded content details. UserRewardedContentDetails *UserRewardedContentTargetingOptionDetails `json:"userRewardedContentDetails,omitempty"` - // VideoPlayerSizeDetails: Video player size details. VideoPlayerSizeDetails *VideoPlayerSizeTargetingOptionDetails `json:"videoPlayerSizeDetails,omitempty"` - // ViewabilityDetails: Viewability resource details. ViewabilityDetails *ViewabilityTargetingOptionDetails `json:"viewabilityDetails,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AgeRangeDetails") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AgeRangeDetails") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AgeRangeDetails") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TargetingOption) MarshalJSON() ([]byte, error) { +func (s TargetingOption) MarshalJSON() ([]byte, error) { type NoMethod TargetingOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ThirdPartyOnlyConfig: Settings for advertisers that use third-party -// ad servers only. +// ThirdPartyOnlyConfig: Settings for advertisers that use third-party ad +// servers only. type ThirdPartyOnlyConfig struct { - // PixelOrderIdReportingEnabled: Whether or not order ID reporting for - // pixels is enabled. This value cannot be changed once set to `true`. + // PixelOrderIdReportingEnabled: Whether or not order ID reporting for pixels + // is enabled. This value cannot be changed once set to `true`. PixelOrderIdReportingEnabled bool `json:"pixelOrderIdReportingEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "PixelOrderIdReportingEnabled") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "PixelOrderIdReportingEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "PixelOrderIdReportingEnabled") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "PixelOrderIdReportingEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyOnlyConfig) MarshalJSON() ([]byte, error) { +func (s ThirdPartyOnlyConfig) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyOnlyConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ThirdPartyUrl: Tracking URLs from third parties to track interactions -// with an audio or a video creative. +// ThirdPartyUrl: Tracking URLs from third parties to track interactions with +// an audio or a video creative. type ThirdPartyUrl struct { // Type: The type of interaction needs to be tracked by the tracking URL // // Possible values: // "THIRD_PARTY_URL_TYPE_UNSPECIFIED" - The type of third-party URL is // unspecified or is unknown in this version. - // "THIRD_PARTY_URL_TYPE_IMPRESSION" - Used to count impressions of - // the creative after the audio or video buffering is complete. - // "THIRD_PARTY_URL_TYPE_CLICK_TRACKING" - Used to track user clicks - // on the audio or video. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_START" - Used to track the number - // of times a user starts the audio or video. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_FIRST_QUARTILE" - Used to track - // the number of times the audio or video plays to 25% of its length. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_MIDPOINT" - Used to track the - // number of times the audio or video plays to 50% of its length. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_THIRD_QUARTILE" - Used to track - // the number of times the audio or video plays to 75% of its length. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_COMPLETE" - Used to track the - // number of times the audio or video plays to the end. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_MUTE" - Used to track the number - // of times a user mutes the audio or video. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_PAUSE" - Used to track the number - // of times a user pauses the audio or video. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_REWIND" - Used to track the - // number of times a user replays the audio or video. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_FULLSCREEN" - Used to track the - // number of times a user expands the player to full-screen size. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_STOP" - Used to track the number - // of times a user stops the audio or video. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_CUSTOM" - Used to track the - // number of times a user performs a custom click, such as clicking on a - // video hot spot. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_SKIP" - Used to track the number - // of times the audio or video was skipped. - // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_PROGRESS" - Used to track the - // number of times the audio or video plays to an offset determined by - // the progress_offset. + // "THIRD_PARTY_URL_TYPE_IMPRESSION" - Used to count impressions of the + // creative after the audio or video buffering is complete. + // "THIRD_PARTY_URL_TYPE_CLICK_TRACKING" - Used to track user clicks on the + // audio or video. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_START" - Used to track the number of + // times a user starts the audio or video. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_FIRST_QUARTILE" - Used to track the + // number of times the audio or video plays to 25% of its length. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_MIDPOINT" - Used to track the number of + // times the audio or video plays to 50% of its length. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_THIRD_QUARTILE" - Used to track the + // number of times the audio or video plays to 75% of its length. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_COMPLETE" - Used to track the number of + // times the audio or video plays to the end. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_MUTE" - Used to track the number of + // times a user mutes the audio or video. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_PAUSE" - Used to track the number of + // times a user pauses the audio or video. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_REWIND" - Used to track the number of + // times a user replays the audio or video. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_FULLSCREEN" - Used to track the number + // of times a user expands the player to full-screen size. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_STOP" - Used to track the number of + // times a user stops the audio or video. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_CUSTOM" - Used to track the number of + // times a user performs a custom click, such as clicking on a video hot spot. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_SKIP" - Used to track the number of + // times the audio or video was skipped. + // "THIRD_PARTY_URL_TYPE_AUDIO_VIDEO_PROGRESS" - Used to track the number of + // times the audio or video plays to an offset determined by the + // progress_offset. Type string `json:"type,omitempty"` - - // Url: Tracking URL used to track the interaction. Provide a URL with - // optional path or query string, beginning with `https:`. For example, + // Url: Tracking URL used to track the interaction. Provide a URL with optional + // path or query string, beginning with `https:`. For example, // https://www.example.com/path Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyUrl) MarshalJSON() ([]byte, error) { +func (s ThirdPartyUrl) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyUrl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ThirdPartyVerifierAssignedTargetingOptionDetails: Assigned third -// party verifier targeting option details. This will be populated in -// the details field of an AssignedTargetingOption when targeting_type -// is `TARGETING_TYPE_THIRD_PARTY_VERIFIER`. +// ThirdPartyVerifierAssignedTargetingOptionDetails: Assigned third party +// verifier targeting option details. This will be populated in the details +// field of an AssignedTargetingOption when targeting_type is +// `TARGETING_TYPE_THIRD_PARTY_VERIFIER`. type ThirdPartyVerifierAssignedTargetingOptionDetails struct { // Adloox: Third party brand verifier -- Adloox. Adloox *Adloox `json:"adloox,omitempty"` - // DoubleVerify: Third party brand verifier -- DoubleVerify. DoubleVerify *DoubleVerify `json:"doubleVerify,omitempty"` - // IntegralAdScience: Third party brand verifier -- Integral Ad Science. IntegralAdScience *IntegralAdScience `json:"integralAdScience,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Adloox") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Adloox") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Adloox") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ThirdPartyVerifierAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ThirdPartyVerifierAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ThirdPartyVerifierAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TimeRange: A time range. type TimeRange struct { // EndTime: Required. The upper bound of a time range, inclusive. EndTime string `json:"endTime,omitempty"` - // StartTime: Required. The lower bound of a time range, inclusive. StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimeRange) MarshalJSON() ([]byte, error) { +func (s TimeRange) MarshalJSON() ([]byte, error) { type NoMethod TimeRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TimerEvent: Timer event of the creative. type TimerEvent struct { // Name: Required. The name of the timer event. Name string `json:"name,omitempty"` - - // ReportingName: Required. The name used to identify this timer event - // in reports. + // ReportingName: Required. The name used to identify this timer event in + // reports. ReportingName string `json:"reportingName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimerEvent) MarshalJSON() ([]byte, error) { +func (s TimerEvent) MarshalJSON() ([]byte, error) { type NoMethod TimerEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TrackingFloodlightActivityConfig: Settings that control the behavior -// of a single Floodlight activity config. +// TrackingFloodlightActivityConfig: Settings that control the behavior of a +// single Floodlight activity config. type TrackingFloodlightActivityConfig struct { // FloodlightActivityId: Required. The ID of the Floodlight activity. FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` - - // PostClickLookbackWindowDays: Required. The number of days after an ad - // has been clicked in which a conversion may be counted. Must be - // between 0 and 90 inclusive. + // PostClickLookbackWindowDays: Required. The number of days after an ad has + // been clicked in which a conversion may be counted. Must be between 0 and 90 + // inclusive. PostClickLookbackWindowDays int64 `json:"postClickLookbackWindowDays,omitempty"` - - // PostViewLookbackWindowDays: Required. The number of days after an ad - // has been viewed in which a conversion may be counted. Must be between - // 0 and 90 inclusive. + // PostViewLookbackWindowDays: Required. The number of days after an ad has + // been viewed in which a conversion may be counted. Must be between 0 and 90 + // inclusive. PostViewLookbackWindowDays int64 `json:"postViewLookbackWindowDays,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FloodlightActivityId") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FloodlightActivityId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FloodlightActivityId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TrackingFloodlightActivityConfig) MarshalJSON() ([]byte, error) { +func (s TrackingFloodlightActivityConfig) MarshalJSON() ([]byte, error) { type NoMethod TrackingFloodlightActivityConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Transcode: Represents information about the transcoded audio or video -// file. +// Transcode: Represents information about the transcoded audio or video file. type Transcode struct { - // AudioBitRateKbps: The bit rate for the audio stream of the transcoded - // video, or the bit rate for the transcoded audio, in kilobits per - // second. + // AudioBitRateKbps: The bit rate for the audio stream of the transcoded video, + // or the bit rate for the transcoded audio, in kilobits per second. AudioBitRateKbps int64 `json:"audioBitRateKbps,omitempty,string"` - - // AudioSampleRateHz: The sample rate for the audio stream of the - // transcoded video, or the sample rate for the transcoded audio, in - // hertz. + // AudioSampleRateHz: The sample rate for the audio stream of the transcoded + // video, or the sample rate for the transcoded audio, in hertz. AudioSampleRateHz int64 `json:"audioSampleRateHz,omitempty,string"` - - // BitRateKbps: The transcoding bit rate of the transcoded video, in - // kilobits per second. + // BitRateKbps: The transcoding bit rate of the transcoded video, in kilobits + // per second. BitRateKbps int64 `json:"bitRateKbps,omitempty,string"` - // Dimensions: The dimensions of the transcoded video. Dimensions *Dimensions `json:"dimensions,omitempty"` - // FileSizeBytes: The size of the transcoded file, in bytes. FileSizeBytes int64 `json:"fileSizeBytes,omitempty,string"` - - // FrameRate: The frame rate of the transcoded video, in frames per - // second. + // FrameRate: The frame rate of the transcoded video, in frames per second. FrameRate float64 `json:"frameRate,omitempty"` - // MimeType: The MIME type of the transcoded file. MimeType string `json:"mimeType,omitempty"` - // Name: The name of the transcoded file. Name string `json:"name,omitempty"` - // Transcoded: Indicates if the transcoding was successful. Transcoded bool `json:"transcoded,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudioBitRateKbps") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudioBitRateKbps") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AudioBitRateKbps") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Transcode) MarshalJSON() ([]byte, error) { +func (s Transcode) MarshalJSON() ([]byte, error) { type NoMethod Transcode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Transcode) UnmarshalJSON(data []byte) error { @@ -15877,50 +12927,42 @@ func (s *Transcode) UnmarshalJSON(data []byte) error { return nil } -// UniversalAdId: A creative identifier provided by a registry that is -// unique across all platforms. This is part of the VAST 4.0 standard. +// UniversalAdId: A creative identifier provided by a registry that is unique +// across all platforms. This is part of the VAST 4.0 standard. type UniversalAdId struct { // Id: The unique creative identifier. Id string `json:"id,omitempty"` - // Registry: The registry provides unique creative identifiers. // // Possible values: // "UNIVERSAL_AD_REGISTRY_UNSPECIFIED" - The Universal Ad registry is // unspecified or is unknown in this version. - // "UNIVERSAL_AD_REGISTRY_OTHER" - Use a custom provider to provide - // the Universal Ad ID. - // "UNIVERSAL_AD_REGISTRY_AD_ID" - Use Ad-ID to provide the Universal - // Ad ID. - // "UNIVERSAL_AD_REGISTRY_CLEARCAST" - Use clearcast.co.uk to provide - // the Universal Ad ID. - // "UNIVERSAL_AD_REGISTRY_DV360" - Use Display & Video 360 to provide - // the Universal Ad ID. - // "UNIVERSAL_AD_REGISTRY_CM" - Use Campaign Manager 360 to provide - // the Universal Ad ID. + // "UNIVERSAL_AD_REGISTRY_OTHER" - Use a custom provider to provide the + // Universal Ad ID. + // "UNIVERSAL_AD_REGISTRY_AD_ID" - Use Ad-ID to provide the Universal Ad ID. + // "UNIVERSAL_AD_REGISTRY_CLEARCAST" - Use clearcast.co.uk to provide the + // Universal Ad ID. + // "UNIVERSAL_AD_REGISTRY_DV360" - Use Display & Video 360 to provide the + // Universal Ad ID. + // "UNIVERSAL_AD_REGISTRY_CM" - Use Campaign Manager 360 to provide the + // Universal Ad ID. Registry string `json:"registry,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UniversalAdId) MarshalJSON() ([]byte, error) { +func (s UniversalAdId) MarshalJSON() ([]byte, error) { type NoMethod UniversalAdId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UrlAssignedTargetingOptionDetails: Details for assigned URL targeting @@ -15929,394 +12971,318 @@ func (s *UniversalAdId) MarshalJSON() ([]byte, error) { type UrlAssignedTargetingOptionDetails struct { // Negative: Indicates if this option is being negatively targeted. Negative bool `json:"negative,omitempty"` - - // Url: Required. The URL, for example `example.com`. DV360 supports two - // levels of subdirectory targeting, for example - // `www.example.com/one-subdirectory-level/second-level`, and five - // levels of subdomain targeting, for example - // `five.four.three.two.one.example.com`. + // Url: Required. The URL, for example `example.com`. DV360 supports two levels + // of subdirectory targeting, for example + // `www.example.com/one-subdirectory-level/second-level`, and five levels of + // subdomain targeting, for example `five.four.three.two.one.example.com`. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "Negative") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Negative") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Negative") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s UrlAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod UrlAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // User: A single user in Display & Video 360. type User struct { - // AssignedUserRoles: The assigned user roles. Required in CreateUser. - // Output only in UpdateUser. Can only be updated through - // BulkEditAssignedUserRoles. + // AssignedUserRoles: The assigned user roles. Required in CreateUser. Output + // only in UpdateUser. Can only be updated through BulkEditAssignedUserRoles. AssignedUserRoles []*AssignedUserRole `json:"assignedUserRoles,omitempty"` - - // DisplayName: Required. The display name of the user. Must be UTF-8 - // encoded with a maximum size of 240 bytes. + // DisplayName: Required. The display name of the user. Must be UTF-8 encoded + // with a maximum size of 240 bytes. DisplayName string `json:"displayName,omitempty"` - - // Email: Required. Immutable. The email address used to identify the - // user. + // Email: Required. Immutable. The email address used to identify the user. Email string `json:"email,omitempty"` - - // LastLoginTime: Output only. The timestamp when the user last logged - // in DV360 UI. + // LastLoginTime: Output only. The timestamp when the user last logged in DV360 + // UI. LastLoginTime string `json:"lastLoginTime,omitempty"` - // Name: Output only. The resource name of the user. Name string `json:"name,omitempty"` - - // UserId: Output only. The unique ID of the user. Assigned by the - // system. + // UserId: Output only. The unique ID of the user. Assigned by the system. UserId int64 `json:"userId,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AssignedUserRoles") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AssignedUserRoles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssignedUserRoles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssignedUserRoles") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *User) MarshalJSON() ([]byte, error) { +func (s User) MarshalJSON() ([]byte, error) { type NoMethod User - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserRewardedContentAssignedTargetingOptionDetails: User rewarded -// content targeting option details. This will be populated in the +// UserRewardedContentAssignedTargetingOptionDetails: User rewarded content +// targeting option details. This will be populated in the // user_rewarded_content_details field when targeting_type is // `TARGETING_TYPE_USER_REWARDED_CONTENT`. type UserRewardedContentAssignedTargetingOptionDetails struct { // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_USER_REWARDED_CONTENT`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - - // UserRewardedContent: Output only. User rewarded content status for - // video ads. + // UserRewardedContent: Output only. User rewarded content status for video + // ads. // // Possible values: // "USER_REWARDED_CONTENT_UNSPECIFIED" - User rewarded content is not // specified or is unknown in this version. - // "USER_REWARDED_CONTENT_USER_REWARDED" - Represents ads where the - // user will see a reward after viewing. - // "USER_REWARDED_CONTENT_NOT_USER_REWARDED" - Represents all other - // ads besides user-rewarded. + // "USER_REWARDED_CONTENT_USER_REWARDED" - Represents ads where the user will + // see a reward after viewing. + // "USER_REWARDED_CONTENT_NOT_USER_REWARDED" - Represents all other ads + // besides user-rewarded. UserRewardedContent string `json:"userRewardedContent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TargetingOptionId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetingOptionId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TargetingOptionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TargetingOptionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRewardedContentAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s UserRewardedContentAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod UserRewardedContentAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserRewardedContentTargetingOptionDetails: Represents a targetable -// user rewarded content status for video ads only. This will be -// populated in the user_rewarded_content_details field when -// targeting_type is `TARGETING_TYPE_USER_REWARDED_CONTENT`. +// UserRewardedContentTargetingOptionDetails: Represents a targetable user +// rewarded content status for video ads only. This will be populated in the +// user_rewarded_content_details field when targeting_type is +// `TARGETING_TYPE_USER_REWARDED_CONTENT`. type UserRewardedContentTargetingOptionDetails struct { - // UserRewardedContent: Output only. User rewarded content status for - // video ads. + // UserRewardedContent: Output only. User rewarded content status for video + // ads. // // Possible values: // "USER_REWARDED_CONTENT_UNSPECIFIED" - User rewarded content is not // specified or is unknown in this version. - // "USER_REWARDED_CONTENT_USER_REWARDED" - Represents ads where the - // user will see a reward after viewing. - // "USER_REWARDED_CONTENT_NOT_USER_REWARDED" - Represents all other - // ads besides user-rewarded. + // "USER_REWARDED_CONTENT_USER_REWARDED" - Represents ads where the user will + // see a reward after viewing. + // "USER_REWARDED_CONTENT_NOT_USER_REWARDED" - Represents all other ads + // besides user-rewarded. UserRewardedContent string `json:"userRewardedContent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "UserRewardedContent") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "UserRewardedContent") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "UserRewardedContent") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "UserRewardedContent") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserRewardedContentTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s UserRewardedContentTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod UserRewardedContentTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VideoPlayerSizeAssignedTargetingOptionDetails: Video player size -// targeting option details. This will be populated in the -// video_player_size_details field when targeting_type is -// `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. Explicitly targeting all options -// is not supported. Remove all video player size targeting options to -// achieve this effect. +// VideoPlayerSizeAssignedTargetingOptionDetails: Video player size targeting +// option details. This will be populated in the video_player_size_details +// field when targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. Explicitly +// targeting all options is not supported. Remove all video player size +// targeting options to achieve this effect. type VideoPlayerSizeAssignedTargetingOptionDetails struct { // TargetingOptionId: Required. The targeting_option_id field when // targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // VideoPlayerSize: Required. The video player size. // // Possible values: - // "VIDEO_PLAYER_SIZE_UNSPECIFIED" - Video player size is not - // specified in this version. This enum is a place holder for a default - // value and does not represent a real video player size. - // "VIDEO_PLAYER_SIZE_SMALL" - The dimensions of the video player are - // less than 400×300 (desktop), or up to 20% of screen covered - // (mobile). - // "VIDEO_PLAYER_SIZE_LARGE" - The dimensions of the video player are - // between 400x300 and 1280x720 pixels (desktop), or 20% to 90% of the - // screen covered (mobile). - // "VIDEO_PLAYER_SIZE_HD" - The dimensions of the video player are - // 1280×720 or greater (desktop), or over 90% of the screen covered + // "VIDEO_PLAYER_SIZE_UNSPECIFIED" - Video player size is not specified in + // this version. This enum is a place holder for a default value and does not + // represent a real video player size. + // "VIDEO_PLAYER_SIZE_SMALL" - The dimensions of the video player are less + // than 400×300 (desktop), or up to 20% of screen covered (mobile). + // "VIDEO_PLAYER_SIZE_LARGE" - The dimensions of the video player are between + // 400x300 and 1280x720 pixels (desktop), or 20% to 90% of the screen covered // (mobile). - // "VIDEO_PLAYER_SIZE_UNKNOWN" - The dimensions of the video player - // are unknown. + // "VIDEO_PLAYER_SIZE_HD" - The dimensions of the video player are 1280×720 + // or greater (desktop), or over 90% of the screen covered (mobile). + // "VIDEO_PLAYER_SIZE_UNKNOWN" - The dimensions of the video player are + // unknown. VideoPlayerSize string `json:"videoPlayerSize,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TargetingOptionId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetingOptionId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TargetingOptionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TargetingOptionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoPlayerSizeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s VideoPlayerSizeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod VideoPlayerSizeAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VideoPlayerSizeTargetingOptionDetails: Represents a targetable video -// player size. This will be populated in the video_player_size_details -// field when targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. +// VideoPlayerSizeTargetingOptionDetails: Represents a targetable video player +// size. This will be populated in the video_player_size_details field when +// targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. type VideoPlayerSizeTargetingOptionDetails struct { // VideoPlayerSize: Output only. The video player size. // // Possible values: - // "VIDEO_PLAYER_SIZE_UNSPECIFIED" - Video player size is not - // specified in this version. This enum is a place holder for a default - // value and does not represent a real video player size. - // "VIDEO_PLAYER_SIZE_SMALL" - The dimensions of the video player are - // less than 400×300 (desktop), or up to 20% of screen covered + // "VIDEO_PLAYER_SIZE_UNSPECIFIED" - Video player size is not specified in + // this version. This enum is a place holder for a default value and does not + // represent a real video player size. + // "VIDEO_PLAYER_SIZE_SMALL" - The dimensions of the video player are less + // than 400×300 (desktop), or up to 20% of screen covered (mobile). + // "VIDEO_PLAYER_SIZE_LARGE" - The dimensions of the video player are between + // 400x300 and 1280x720 pixels (desktop), or 20% to 90% of the screen covered // (mobile). - // "VIDEO_PLAYER_SIZE_LARGE" - The dimensions of the video player are - // between 400x300 and 1280x720 pixels (desktop), or 20% to 90% of the - // screen covered (mobile). - // "VIDEO_PLAYER_SIZE_HD" - The dimensions of the video player are - // 1280×720 or greater (desktop), or over 90% of the screen covered - // (mobile). - // "VIDEO_PLAYER_SIZE_UNKNOWN" - The dimensions of the video player - // are unknown. + // "VIDEO_PLAYER_SIZE_HD" - The dimensions of the video player are 1280×720 + // or greater (desktop), or over 90% of the screen covered (mobile). + // "VIDEO_PLAYER_SIZE_UNKNOWN" - The dimensions of the video player are + // unknown. VideoPlayerSize string `json:"videoPlayerSize,omitempty"` - // ForceSendFields is a list of field names (e.g. "VideoPlayerSize") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "VideoPlayerSize") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "VideoPlayerSize") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoPlayerSizeTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s VideoPlayerSizeTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod VideoPlayerSizeTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ViewabilityAssignedTargetingOptionDetails: Assigned viewability -// targeting option details. This will be populated in the -// viewability_details field of an AssignedTargetingOption when -// targeting_type is `TARGETING_TYPE_VIEWABILITY`. +// ViewabilityAssignedTargetingOptionDetails: Assigned viewability targeting +// option details. This will be populated in the viewability_details field of +// an AssignedTargetingOption when targeting_type is +// `TARGETING_TYPE_VIEWABILITY`. type ViewabilityAssignedTargetingOptionDetails struct { - // TargetingOptionId: Required. The targeting_option_id of a - // TargetingOption of type `TARGETING_TYPE_VIEWABILITY` (e.g., "509010" - // for targeting the `VIEWABILITY_10_PERCENT_OR_MORE` option). + // TargetingOptionId: Required. The targeting_option_id of a TargetingOption of + // type `TARGETING_TYPE_VIEWABILITY` (e.g., "509010" for targeting the + // `VIEWABILITY_10_PERCENT_OR_MORE` option). TargetingOptionId string `json:"targetingOptionId,omitempty"` - // Viewability: Required. The predicted viewability percentage. // // Possible values: // "VIEWABILITY_UNSPECIFIED" - Default value when viewability is not - // specified in this version. This enum is a placeholder for default - // value and does not represent a real viewability option. - // "VIEWABILITY_10_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 10% likely to be viewable. - // "VIEWABILITY_20_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 20% likely to be viewable. - // "VIEWABILITY_30_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 30% likely to be viewable. - // "VIEWABILITY_40_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 40% likely to be viewable. - // "VIEWABILITY_50_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 50% likely to be viewable. - // "VIEWABILITY_60_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 60% likely to be viewable. - // "VIEWABILITY_70_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 70% likely to be viewable. - // "VIEWABILITY_80_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 80% likely to be viewable. - // "VIEWABILITY_90_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 90% likely to be viewable. + // specified in this version. This enum is a placeholder for default value and + // does not represent a real viewability option. + // "VIEWABILITY_10_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 10% likely to be viewable. + // "VIEWABILITY_20_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 20% likely to be viewable. + // "VIEWABILITY_30_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 30% likely to be viewable. + // "VIEWABILITY_40_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 40% likely to be viewable. + // "VIEWABILITY_50_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 50% likely to be viewable. + // "VIEWABILITY_60_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 60% likely to be viewable. + // "VIEWABILITY_70_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 70% likely to be viewable. + // "VIEWABILITY_80_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 80% likely to be viewable. + // "VIEWABILITY_90_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 90% likely to be viewable. Viewability string `json:"viewability,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TargetingOptionId") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TargetingOptionId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TargetingOptionId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TargetingOptionId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ViewabilityAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ViewabilityAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ViewabilityAssignedTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ViewabilityTargetingOptionDetails: Represents a targetable -// viewability. This will be populated in the viewability_details field -// of a TargetingOption when targeting_type is -// `TARGETING_TYPE_VIEWABILITY`. +// ViewabilityTargetingOptionDetails: Represents a targetable viewability. This +// will be populated in the viewability_details field of a TargetingOption when +// targeting_type is `TARGETING_TYPE_VIEWABILITY`. type ViewabilityTargetingOptionDetails struct { // Viewability: Output only. The predicted viewability percentage. // // Possible values: // "VIEWABILITY_UNSPECIFIED" - Default value when viewability is not - // specified in this version. This enum is a placeholder for default - // value and does not represent a real viewability option. - // "VIEWABILITY_10_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 10% likely to be viewable. - // "VIEWABILITY_20_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 20% likely to be viewable. - // "VIEWABILITY_30_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 30% likely to be viewable. - // "VIEWABILITY_40_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 40% likely to be viewable. - // "VIEWABILITY_50_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 50% likely to be viewable. - // "VIEWABILITY_60_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 60% likely to be viewable. - // "VIEWABILITY_70_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 70% likely to be viewable. - // "VIEWABILITY_80_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 80% likely to be viewable. - // "VIEWABILITY_90_PERCENT_OR_MORE" - Bid only on impressions that are - // at least 90% likely to be viewable. + // specified in this version. This enum is a placeholder for default value and + // does not represent a real viewability option. + // "VIEWABILITY_10_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 10% likely to be viewable. + // "VIEWABILITY_20_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 20% likely to be viewable. + // "VIEWABILITY_30_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 30% likely to be viewable. + // "VIEWABILITY_40_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 40% likely to be viewable. + // "VIEWABILITY_50_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 50% likely to be viewable. + // "VIEWABILITY_60_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 60% likely to be viewable. + // "VIEWABILITY_70_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 70% likely to be viewable. + // "VIEWABILITY_80_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 80% likely to be viewable. + // "VIEWABILITY_90_PERCENT_OR_MORE" - Bid only on impressions that are at + // least 90% likely to be viewable. Viewability string `json:"viewability,omitempty"` - // ForceSendFields is a list of field names (e.g. "Viewability") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Viewability") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Viewability") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ViewabilityTargetingOptionDetails) MarshalJSON() ([]byte, error) { +func (s ViewabilityTargetingOptionDetails) MarshalJSON() ([]byte, error) { type NoMethod ViewabilityTargetingOptionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "displayvideo.advertisers.audit": - type AdvertisersAuditCall struct { s *Service advertiserId int64 @@ -16327,8 +13293,8 @@ type AdvertisersAuditCall struct { } // Audit: Audits an advertiser. Returns the counts of used entities per -// resource type under the advertiser provided. Used entities count -// towards their respective resource limit. See +// resource type under the advertiser provided. Used entities count towards +// their respective resource limit. See // https://support.google.com/displayvideo/answer/6071450. // // - advertiserId: The ID of the advertiser to audit. @@ -16338,45 +13304,40 @@ func (r *AdvertisersService) Audit(advertiserId int64) *AdvertisersAuditCall { return c } -// ReadMask sets the optional parameter "readMask": The specific fields -// to return. If no mask is specified, all fields in the response proto -// will be filled. Valid values are: * usedLineItemsCount * -// usedInsertionOrdersCount * usedCampaignsCount * channelsCount * -// negativelyTargetedChannelsCount * negativeKeywordListsCount * -// adGroupCriteriaCount * campaignCriteriaCount +// ReadMask sets the optional parameter "readMask": The specific fields to +// return. If no mask is specified, all fields in the response proto will be +// filled. Valid values are: * usedLineItemsCount * usedInsertionOrdersCount * +// usedCampaignsCount * channelsCount * negativelyTargetedChannelsCount * +// negativeKeywordListsCount * adGroupCriteriaCount * campaignCriteriaCount func (c *AdvertisersAuditCall) ReadMask(readMask string) *AdvertisersAuditCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersAuditCall) Fields(s ...googleapi.Field) *AdvertisersAuditCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersAuditCall) IfNoneMatch(entityTag string) *AdvertisersAuditCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersAuditCall) Context(ctx context.Context) *AdvertisersAuditCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersAuditCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16385,12 +13346,7 @@ func (c *AdvertisersAuditCall) Header() http.Header { } func (c *AdvertisersAuditCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16407,16 +13363,15 @@ func (c *AdvertisersAuditCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.audit" call. -// Exactly one of *AuditAdvertiserResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AuditAdvertiserResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersAuditCall) Do(opts ...googleapi.CallOption) (*AuditAdvertiserResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16447,42 +13402,7 @@ func (c *AdvertisersAuditCall) Do(opts ...googleapi.CallOption) (*AuditAdvertise return nil, err } return ret, nil - // { - // "description": "Audits an advertiser. Returns the counts of used entities per resource type under the advertiser provided. Used entities count towards their respective resource limit. See https://support.google.com/displayvideo/answer/6071450.", - // "flatPath": "v1/advertisers/{advertisersId}:audit", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.audit", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser to audit.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Optional. The specific fields to return. If no mask is specified, all fields in the response proto will be filled. Valid values are: * usedLineItemsCount * usedInsertionOrdersCount * usedCampaignsCount * channelsCount * negativelyTargetedChannelsCount * negativeKeywordListsCount * adGroupCriteriaCount * campaignCriteriaCount", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}:audit", - // "response": { - // "$ref": "AuditAdvertiserResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.bulkEditAdvertiserAssignedTargetingOptions": +} type AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall struct { s *Service @@ -16493,11 +13413,11 @@ type AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall struct { header_ http.Header } -// BulkEditAdvertiserAssignedTargetingOptions: Bulk edits targeting -// options under a single advertiser. The operation will delete the -// assigned targeting options provided in -// BulkEditAdvertiserAssignedTargetingOptionsRequest.delete_requests and -// then create the assigned targeting options provided in +// BulkEditAdvertiserAssignedTargetingOptions: Bulk edits targeting options +// under a single advertiser. The operation will delete the assigned targeting +// options provided in +// BulkEditAdvertiserAssignedTargetingOptionsRequest.delete_requests and then +// create the assigned targeting options provided in // BulkEditAdvertiserAssignedTargetingOptionsRequest.create_requests . // // - advertiserId: The ID of the advertiser. @@ -16509,23 +13429,21 @@ func (r *AdvertisersService) BulkEditAdvertiserAssignedTargetingOptions(advertis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall) Fields(s ...googleapi.Field) *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall) Context(ctx context.Context) *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16534,18 +13452,12 @@ func (c *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall) Header() htt } func (c *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bulkeditadvertiserassignedtargetingoptionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}:bulkEditAdvertiserAssignedTargetingOptions") @@ -16558,18 +13470,15 @@ func (c *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.bulkEditAdvertiserAssignedTargetingOptions" call. -// Exactly one of *BulkEditAdvertiserAssignedTargetingOptionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *BulkEditAdvertiserAssignedTargetingOptionsResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkEditAdvertiserAssignedTargetingOptionsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall) Do(opts ...googleapi.CallOption) (*BulkEditAdvertiserAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16600,39 +13509,7 @@ func (c *AdvertisersBulkEditAdvertiserAssignedTargetingOptionsCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Bulk edits targeting options under a single advertiser. The operation will delete the assigned targeting options provided in BulkEditAdvertiserAssignedTargetingOptionsRequest.delete_requests and then create the assigned targeting options provided in BulkEditAdvertiserAssignedTargetingOptionsRequest.create_requests .", - // "flatPath": "v1/advertisers/{advertisersId}:bulkEditAdvertiserAssignedTargetingOptions", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.bulkEditAdvertiserAssignedTargetingOptions", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}:bulkEditAdvertiserAssignedTargetingOptions", - // "request": { - // "$ref": "BulkEditAdvertiserAssignedTargetingOptionsRequest" - // }, - // "response": { - // "$ref": "BulkEditAdvertiserAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.bulkListAdvertiserAssignedTargetingOptions": +} type AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall struct { s *Service @@ -16643,8 +13520,8 @@ type AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall struct { header_ http.Header } -// BulkListAdvertiserAssignedTargetingOptions: Lists assigned targeting -// options of an advertiser across targeting types. +// BulkListAdvertiserAssignedTargetingOptions: Lists assigned targeting options +// of an advertiser across targeting types. // // - advertiserId: The ID of the advertiser the line item belongs to. func (r *AdvertisersService) BulkListAdvertiserAssignedTargetingOptions(advertiserId int64) *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall { @@ -16653,79 +13530,73 @@ func (r *AdvertisersService) BulkListAdvertiserAssignedTargetingOptions(advertis return c } -// Filter sets the optional parameter "filter": Allows filtering by -// assigned targeting option fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the `OR` logical operator. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=) operator`. Supported fields: * `targetingType` Examples: -// * targetingType with value TARGETING_TYPE_CHANNEL -// `targetingType="TARGETING_TYPE_CHANNEL" The length of this field -// should be no more than 500 characters. Reference our filter `LIST` -// requests (/display-video/api/guides/how-tos/filters) guide for more +// Filter sets the optional parameter "filter": Allows filtering by assigned +// targeting option fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the `OR` +// logical operator. * A restriction has the form of `{field} {operator} +// {value}`. * All fields must use the `EQUALS (=) operator`. Supported fields: +// * `targetingType` Examples: * targetingType with value +// TARGETING_TYPE_CHANNEL `targetingType="TARGETING_TYPE_CHANNEL" The length +// of this field should be no more than 500 characters. Reference our filter +// `LIST` requests (/display-video/api/guides/how-tos/filters) guide for more // information. func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Filter(filter string) *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `targetingType` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix "desc" should be added to the field name. Example: -// `targetingType desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `targetingType` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix "desc" +// should be added to the field name. Example: `targetingType desc`. func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) OrderBy(orderBy string) *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// The size must be an integer between `1` and `5000`. If unspecified, -// the default is '5000'. Returns error code `INVALID_ARGUMENT` if an -// invalid value is specified. +// PageSize sets the optional parameter "pageSize": Requested page size. The +// size must be an integer between `1` and `5000`. If unspecified, the default +// is '5000'. Returns error code `INVALID_ARGUMENT` if an invalid value is +// specified. func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) PageSize(pageSize int64) *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token that lets -// the client fetch the next page of results. Typically, this is the -// value of next_page_token returned from the previous call to -// `BulkListAdvertiserAssignedTargetingOptions` method. If not -// specified, the first page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token that lets the +// client fetch the next page of results. Typically, this is the value of +// next_page_token returned from the previous call to +// `BulkListAdvertiserAssignedTargetingOptions` method. If not specified, the +// first page of results will be returned. func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) PageToken(pageToken string) *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Fields(s ...googleapi.Field) *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) IfNoneMatch(entityTag string) *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Context(ctx context.Context) *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16734,12 +13605,7 @@ func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Header() htt } func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16756,18 +13622,15 @@ func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.bulkListAdvertiserAssignedTargetingOptions" call. -// Exactly one of *BulkListAdvertiserAssignedTargetingOptionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *BulkListAdvertiserAssignedTargetingOptionsResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkListAdvertiserAssignedTargetingOptionsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Do(opts ...googleapi.CallOption) (*BulkListAdvertiserAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16798,54 +13661,6 @@ func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Lists assigned targeting options of an advertiser across targeting types.", - // "flatPath": "v1/advertisers/{advertisersId}:bulkListAdvertiserAssignedTargetingOptions", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.bulkListAdvertiserAssignedTargetingOptions", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by assigned targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the `OR` logical operator. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=) operator`. Supported fields: * `targetingType` Examples: * targetingType with value TARGETING_TYPE_CHANNEL `targetingType=\"TARGETING_TYPE_CHANNEL\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `targetingType` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `targetingType desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is '5000'. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token that lets the client fetch the next page of results. Typically, this is the value of next_page_token returned from the previous call to `BulkListAdvertiserAssignedTargetingOptions` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}:bulkListAdvertiserAssignedTargetingOptions", - // "response": { - // "$ref": "BulkListAdvertiserAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -16853,7 +13668,7 @@ func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Do(opts ...g // The provided context supersedes any context provided to the Context method. func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Pages(ctx context.Context, f func(*BulkListAdvertiserAssignedTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -16869,8 +13684,6 @@ func (c *AdvertisersBulkListAdvertiserAssignedTargetingOptionsCall) Pages(ctx co } } -// method id "displayvideo.advertisers.create": - type AdvertisersCreateCall struct { s *Service advertiser *Advertiser @@ -16879,9 +13692,8 @@ type AdvertisersCreateCall struct { header_ http.Header } -// Create: Creates a new advertiser. Returns the newly created -// advertiser if successful. This method can take up to 180 seconds to -// complete. +// Create: Creates a new advertiser. Returns the newly created advertiser if +// successful. This method can take up to 180 seconds to complete. func (r *AdvertisersService) Create(advertiser *Advertiser) *AdvertisersCreateCall { c := &AdvertisersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiser = advertiser @@ -16889,23 +13701,21 @@ func (r *AdvertisersService) Create(advertiser *Advertiser) *AdvertisersCreateCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCreateCall) Fields(s ...googleapi.Field) *AdvertisersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCreateCall) Context(ctx context.Context) *AdvertisersCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16914,18 +13724,12 @@ func (c *AdvertisersCreateCall) Header() http.Header { } func (c *AdvertisersCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers") @@ -16935,16 +13739,14 @@ func (c *AdvertisersCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.create" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersCreateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16975,28 +13777,7 @@ func (c *AdvertisersCreateCall) Do(opts ...googleapi.CallOption) (*Advertiser, e return nil, err } return ret, nil - // { - // "description": "Creates a new advertiser. Returns the newly created advertiser if successful. This method can take up to 180 seconds to complete.", - // "flatPath": "v1/advertisers", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1/advertisers", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.delete": +} type AdvertisersDeleteCall struct { s *Service @@ -17006,9 +13787,9 @@ type AdvertisersDeleteCall struct { header_ http.Header } -// Delete: Deletes an advertiser. Deleting an advertiser will delete all -// of its child resources, for example, campaigns, insertion orders and -// line items. A deleted advertiser cannot be recovered. +// Delete: Deletes an advertiser. Deleting an advertiser will delete all of its +// child resources, for example, campaigns, insertion orders and line items. A +// deleted advertiser cannot be recovered. // // - advertiserId: The ID of the advertiser we need to delete. func (r *AdvertisersService) Delete(advertiserId int64) *AdvertisersDeleteCall { @@ -17018,23 +13799,21 @@ func (r *AdvertisersService) Delete(advertiserId int64) *AdvertisersDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersDeleteCall) Fields(s ...googleapi.Field) *AdvertisersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersDeleteCall) Context(ctx context.Context) *AdvertisersDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17043,12 +13822,7 @@ func (c *AdvertisersDeleteCall) Header() http.Header { } func (c *AdvertisersDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17062,16 +13836,14 @@ func (c *AdvertisersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17102,36 +13874,7 @@ func (c *AdvertisersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) return nil, err } return ret, nil - // { - // "description": "Deletes an advertiser. Deleting an advertiser will delete all of its child resources, for example, campaigns, insertion orders and line items. A deleted advertiser cannot be recovered.", - // "flatPath": "v1/advertisers/{advertisersId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.delete", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser we need to delete.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.get": +} type AdvertisersGetCall struct { s *Service @@ -17152,33 +13895,29 @@ func (r *AdvertisersService) Get(advertiserId int64) *AdvertisersGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersGetCall) Fields(s ...googleapi.Field) *AdvertisersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17187,12 +13926,7 @@ func (c *AdvertisersGetCall) Header() http.Header { } func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17209,16 +13943,14 @@ func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.get" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17249,36 +13981,7 @@ func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, erro return nil, err } return ret, nil - // { - // "description": "Gets an advertiser.", - // "flatPath": "v1/advertisers/{advertisersId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.get", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}", - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.list": +} type AdvertisersListCall struct { s *Service @@ -17288,100 +13991,93 @@ type AdvertisersListCall struct { header_ http.Header } -// List: Lists advertisers that are accessible to the current user. The -// order is defined by the order_by parameter. A single partner_id is -// required. Cross-partner listing is not supported. +// List: Lists advertisers that are accessible to the current user. The order +// is defined by the order_by parameter. A single partner_id is required. +// Cross-partner listing is not supported. func (r *AdvertisersService) List() *AdvertisersListCall { c := &AdvertisersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// Filter sets the optional parameter "filter": Allows filtering by -// advertiser fields. Supported syntax: * Filter expressions are made up -// of one or more restrictions. * Restrictions can be combined by `AND` -// or `OR` logical operators. * A restriction has the form of `{field} -// {operator} {value}`. * The `updateTime` field must use the `GREATER -// THAN OR EQUAL TO (>=)` or `LESS THAN OR EQUAL TO (<=)` operators. * -// All other fields must use the `EQUALS (=)` operator. Supported -// fields: * `advertiserId` * `displayName` * `entityStatus` * -// `updateTime` (input in ISO 8601 format, or `YYYY-MM-DDTHH:MM:SSZ`) -// Examples: * All active advertisers under a partner: -// `entityStatus="ENTITY_STATUS_ACTIVE" * All advertisers with an -// update time less than or equal to 2020-11-04T18:54:47Z (format of ISO -// 8601): `updateTime<="2020-11-04T18:54:47Z" * All advertisers with an -// update time greater than or equal to 2020-11-04T18:54:47Z (format of -// ISO 8601): `updateTime>="2020-11-04T18:54:47Z" The length of this -// field should be no more than 500 characters. Reference our filter -// `LIST` requests (/display-video/api/guides/how-tos/filters) guide for -// more information. +// Filter sets the optional parameter "filter": Allows filtering by advertiser +// fields. Supported syntax: * Filter expressions are made up of one or more +// restrictions. * Restrictions can be combined by `AND` or `OR` logical +// operators. * A restriction has the form of `{field} {operator} {value}`. * +// The `updateTime` field must use the `GREATER THAN OR EQUAL TO (>=)` or `LESS +// THAN OR EQUAL TO (<=)` operators. * All other fields must use the `EQUALS +// (=)` operator. Supported fields: * `advertiserId` * `displayName` * +// `entityStatus` * `updateTime` (input in ISO 8601 format, or +// `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All active advertisers under a partner: +// `entityStatus="ENTITY_STATUS_ACTIVE" * All advertisers with an update time +// less than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): +// `updateTime<="2020-11-04T18:54:47Z" * All advertisers with an update time +// greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): +// `updateTime>="2020-11-04T18:54:47Z" The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersListCall) Filter(filter string) *AdvertisersListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) * -// `entityStatus` * `updateTime` The default sorting order is ascending. -// To specify descending order for a field, a suffix "desc" should be -// added to the field name. For example, `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) * `entityStatus` * +// `updateTime` The default sorting order is ascending. To specify descending +// order for a field, a suffix "desc" should be added to the field name. For +// example, `displayName desc`. func (c *AdvertisersListCall) OrderBy(orderBy string) *AdvertisersListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. func (c *AdvertisersListCall) PageSize(pageSize int64) *AdvertisersListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListAdvertisers` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListAdvertisers` method. +// If not specified, the first page of results will be returned. func (c *AdvertisersListCall) PageToken(pageToken string) *AdvertisersListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": Required. The ID -// of the partner that the fetched advertisers should all belong to. The -// system only supports listing advertisers for one partner at a time. +// PartnerId sets the optional parameter "partnerId": Required. The ID of the +// partner that the fetched advertisers should all belong to. The system only +// supports listing advertisers for one partner at a time. func (c *AdvertisersListCall) PartnerId(partnerId int64) *AdvertisersListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersListCall) Fields(s ...googleapi.Field) *AdvertisersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17390,12 +14086,7 @@ func (c *AdvertisersListCall) Header() http.Header { } func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17409,16 +14100,15 @@ func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.list" call. -// Exactly one of *ListAdvertisersResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListAdvertisersResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*ListAdvertisersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17449,50 +14139,6 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*ListAdvertisers return nil, err } return ret, nil - // { - // "description": "Lists advertisers that are accessible to the current user. The order is defined by the order_by parameter. A single partner_id is required. Cross-partner listing is not supported.", - // "flatPath": "v1/advertisers", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.list", - // "parameterOrder": [], - // "parameters": { - // "filter": { - // "description": "Allows filtering by advertiser fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. * A restriction has the form of `{field} {operator} {value}`. * The `updateTime` field must use the `GREATER THAN OR EQUAL TO (\u003e=)` or `LESS THAN OR EQUAL TO (\u003c=)` operators. * All other fields must use the `EQUALS (=)` operator. Supported fields: * `advertiserId` * `displayName` * `entityStatus` * `updateTime` (input in ISO 8601 format, or `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All active advertisers under a partner: `entityStatus=\"ENTITY_STATUS_ACTIVE\"` * All advertisers with an update time less than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime\u003c=\"2020-11-04T18:54:47Z\"` * All advertisers with an update time greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime\u003e=\"2020-11-04T18:54:47Z\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) * `entityStatus` * `updateTime` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListAdvertisers` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "Required. The ID of the partner that the fetched advertisers should all belong to. The system only supports listing advertisers for one partner at a time.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers", - // "response": { - // "$ref": "ListAdvertisersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -17500,7 +14146,7 @@ func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*ListAdvertisers // The provided context supersedes any context provided to the Context method. func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*ListAdvertisersResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17516,8 +14162,6 @@ func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*ListAdvertisers } } -// method id "displayvideo.advertisers.patch": - type AdvertisersPatchCall struct { s *Service advertiserId int64 @@ -17527,11 +14171,11 @@ type AdvertisersPatchCall struct { header_ http.Header } -// Patch: Updates an existing advertiser. Returns the updated advertiser -// if successful. +// Patch: Updates an existing advertiser. Returns the updated advertiser if +// successful. // -// - advertiserId: Output only. The unique ID of the advertiser. -// Assigned by the system. +// - advertiserId: Output only. The unique ID of the advertiser. Assigned by +// the system. func (r *AdvertisersService) Patch(advertiserId int64, advertiser *Advertiser) *AdvertisersPatchCall { c := &AdvertisersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -17539,31 +14183,29 @@ func (r *AdvertisersService) Patch(advertiserId int64, advertiser *Advertiser) * return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *AdvertisersPatchCall) UpdateMask(updateMask string) *AdvertisersPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersPatchCall) Fields(s ...googleapi.Field) *AdvertisersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17572,18 +14214,12 @@ func (c *AdvertisersPatchCall) Header() http.Header { } func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.advertiser) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}") @@ -17596,16 +14232,14 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.patch" call. -// Exactly one of *Advertiser or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Advertiser.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Advertiser.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17636,45 +14270,7 @@ func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, er return nil, err } return ret, nil - // { - // "description": "Updates an existing advertiser. Returns the updated advertiser if successful.", - // "flatPath": "v1/advertisers/{advertisersId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.advertisers.patch", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Output only. The unique ID of the advertiser. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}", - // "request": { - // "$ref": "Advertiser" - // }, - // "response": { - // "$ref": "Advertiser" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.assets.upload": +} type AdvertisersAssetsUploadCall struct { s *Service @@ -17686,15 +14282,13 @@ type AdvertisersAssetsUploadCall struct { header_ http.Header } -// Upload: Uploads an asset. Returns the ID of the newly uploaded asset -// if successful. The asset file size should be no more than 10 MB for -// images, 200 MB for ZIP files, and 1 GB for videos. Must be used -// within the multipart media upload process -// (/display-video/api/guides/how-tos/upload#multipart). Examples using -// provided client libraries can be found in our Creating Creatives -// guide -// (/display-video/api/guides/creating-creatives/overview#upload_an_asset -// ). +// Upload: Uploads an asset. Returns the ID of the newly uploaded asset if +// successful. The asset file size should be no more than 10 MB for images, 200 +// MB for ZIP files, and 1 GB for videos. Must be used within the multipart +// media upload process (/display-video/api/guides/how-tos/upload#multipart). +// Examples using provided client libraries can be found in our Creating +// Creatives guide +// (/display-video/api/guides/creating-creatives/overview#upload_an_asset). // // - advertiserId: The ID of the advertiser this asset belongs to. func (r *AdvertisersAssetsService) Upload(advertiserId int64, createassetrequest *CreateAssetRequest) *AdvertisersAssetsUploadCall { @@ -17704,54 +14298,51 @@ func (r *AdvertisersAssetsService) Upload(advertiserId int64, createassetrequest return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *AdvertisersAssetsUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *AdvertisersAssetsUploadCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *AdvertisersAssetsUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *AdvertisersAssetsUploadCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *AdvertisersAssetsUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *AdvertisersAssetsUploadCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersAssetsUploadCall) Fields(s ...googleapi.Field) *AdvertisersAssetsUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *AdvertisersAssetsUploadCall) Context(ctx context.Context) *AdvertisersAssetsUploadCall { @@ -17759,8 +14350,8 @@ func (c *AdvertisersAssetsUploadCall) Context(ctx context.Context) *AdvertisersA return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersAssetsUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17769,18 +14360,12 @@ func (c *AdvertisersAssetsUploadCall) Header() http.Header { } func (c *AdvertisersAssetsUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.createassetrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/assets") @@ -17804,16 +14389,15 @@ func (c *AdvertisersAssetsUploadCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.assets.upload" call. -// Exactly one of *CreateAssetResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreateAssetResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreateAssetResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersAssetsUploadCall) Do(opts ...googleapi.CallOption) (*CreateAssetResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17861,51 +14445,7 @@ func (c *AdvertisersAssetsUploadCall) Do(opts ...googleapi.CallOption) (*CreateA return nil, err } return ret, nil - // { - // "description": "Uploads an asset. Returns the ID of the newly uploaded asset if successful. The asset file size should be no more than 10 MB for images, 200 MB for ZIP files, and 1 GB for videos. Must be used within the [multipart media upload process](/display-video/api/guides/how-tos/upload#multipart). Examples using provided client libraries can be found in our [Creating Creatives guide](/display-video/api/guides/creating-creatives/overview#upload_an_asset).", - // "flatPath": "v1/advertisers/{advertisersId}/assets", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.assets.upload", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "protocols": { - // "simple": { - // "multipart": true, - // "path": "/upload/v1/advertisers/{+advertiserId}/assets" - // } - // } - // }, - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser this asset belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/assets", - // "request": { - // "$ref": "CreateAssetRequest" - // }, - // "response": { - // "$ref": "CreateAssetResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "displayvideo.advertisers.campaigns.bulkListCampaignAssignedTargetingOptions": +} type AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall struct { s *Service @@ -17917,12 +14457,11 @@ type AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall struct { header_ http.Header } -// BulkListCampaignAssignedTargetingOptions: Lists assigned targeting -// options of a campaign across targeting types. +// BulkListCampaignAssignedTargetingOptions: Lists assigned targeting options +// of a campaign across targeting types. // -// - advertiserId: The ID of the advertiser the campaign belongs to. -// - campaignId: The ID of the campaign to list assigned targeting -// options for. +// - advertiserId: The ID of the advertiser the campaign belongs to. +// - campaignId: The ID of the campaign to list assigned targeting options for. func (r *AdvertisersCampaignsService) BulkListCampaignAssignedTargetingOptions(advertiserId int64, campaignId int64) *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall { c := &AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -17930,84 +14469,77 @@ func (r *AdvertisersCampaignsService) BulkListCampaignAssignedTargetingOptions(a return c } -// Filter sets the optional parameter "filter": Allows filtering by -// assigned targeting option fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the `OR` logical operator. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=)` operator. Supported fields: * `targetingType` * -// `inheritance` Examples: * `AssignedTargetingOption` resources of -// targeting type `TARGETING_TYPE_LANGUAGE` or `TARGETING_TYPE_GENDER`: -// `targetingType="TARGETING_TYPE_LANGUAGE" OR -// targetingType="TARGETING_TYPE_GENDER" * `AssignedTargetingOption` -// resources with inheritance status of `NOT_INHERITED` or -// `INHERITED_FROM_PARTNER`: `inheritance="NOT_INHERITED" OR -// inheritance="INHERITED_FROM_PARTNER" The length of this field should -// be no more than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// Filter sets the optional parameter "filter": Allows filtering by assigned +// targeting option fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the `OR` +// logical operator. * A restriction has the form of `{field} {operator} +// {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: +// * `targetingType` * `inheritance` Examples: * `AssignedTargetingOption` +// resources of targeting type `TARGETING_TYPE_LANGUAGE` or +// `TARGETING_TYPE_GENDER`: `targetingType="TARGETING_TYPE_LANGUAGE" OR +// targetingType="TARGETING_TYPE_GENDER" * `AssignedTargetingOption` resources +// with inheritance status of `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: +// `inheritance="NOT_INHERITED" OR inheritance="INHERITED_FROM_PARTNER" The +// length of this field should be no more than 500 characters. Reference our +// filter `LIST` requests (/display-video/api/guides/how-tos/filters) guide for +// more information. func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) Filter(filter string) *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `targetingType` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix "desc" should be added to the field name. Example: -// `targetingType desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `targetingType` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix "desc" +// should be added to the field name. Example: `targetingType desc`. func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) OrderBy(orderBy string) *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// The size must be an integer between `1` and `5000`. If unspecified, -// the default is `5000`. Returns error code `INVALID_ARGUMENT` if an -// invalid value is specified. +// PageSize sets the optional parameter "pageSize": Requested page size. The +// size must be an integer between `1` and `5000`. If unspecified, the default +// is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is +// specified. func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) PageSize(pageSize int64) *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token that lets -// the client fetch the next page of results. Typically, this is the -// value of next_page_token returned from the previous call to -// `BulkListCampaignAssignedTargetingOptions` method. If not specified, -// the first page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token that lets the +// client fetch the next page of results. Typically, this is the value of +// next_page_token returned from the previous call to +// `BulkListCampaignAssignedTargetingOptions` method. If not specified, the +// first page of results will be returned. func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) PageToken(pageToken string) *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) Fields(s ...googleapi.Field) *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) IfNoneMatch(entityTag string) *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) Context(ctx context.Context) *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18016,12 +14548,7 @@ func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) Heade } func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18039,18 +14566,15 @@ func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) doReq "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.bulkListCampaignAssignedTargetingOptions" call. -// Exactly one of *BulkListCampaignAssignedTargetingOptionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *BulkListCampaignAssignedTargetingOptionsResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkListCampaignAssignedTargetingOptionsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) Do(opts ...googleapi.CallOption) (*BulkListCampaignAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18081,63 +14605,6 @@ func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) Do(op return nil, err } return ret, nil - // { - // "description": "Lists assigned targeting options of a campaign across targeting types.", - // "flatPath": "v1/advertisers/{advertisersId}/campaigns/{campaignsId}:bulkListCampaignAssignedTargetingOptions", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.campaigns.bulkListCampaignAssignedTargetingOptions", - // "parameterOrder": [ - // "advertiserId", - // "campaignId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the campaign belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "campaignId": { - // "description": "Required. The ID of the campaign to list assigned targeting options for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by assigned targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the `OR` logical operator. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `targetingType` * `inheritance` Examples: * `AssignedTargetingOption` resources of targeting type `TARGETING_TYPE_LANGUAGE` or `TARGETING_TYPE_GENDER`: `targetingType=\"TARGETING_TYPE_LANGUAGE\" OR targetingType=\"TARGETING_TYPE_GENDER\"` * `AssignedTargetingOption` resources with inheritance status of `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: `inheritance=\"NOT_INHERITED\" OR inheritance=\"INHERITED_FROM_PARTNER\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `targetingType` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `targetingType desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token that lets the client fetch the next page of results. Typically, this is the value of next_page_token returned from the previous call to `BulkListCampaignAssignedTargetingOptions` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/campaigns/{+campaignId}:bulkListCampaignAssignedTargetingOptions", - // "response": { - // "$ref": "BulkListCampaignAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -18145,7 +14612,7 @@ func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) Do(op // The provided context supersedes any context provided to the Context method. func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) Pages(ctx context.Context, f func(*BulkListCampaignAssignedTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18161,8 +14628,6 @@ func (c *AdvertisersCampaignsBulkListCampaignAssignedTargetingOptionsCall) Pages } } -// method id "displayvideo.advertisers.campaigns.create": - type AdvertisersCampaignsCreateCall struct { s *Service advertiserId int64 @@ -18175,8 +14640,8 @@ type AdvertisersCampaignsCreateCall struct { // Create: Creates a new campaign. Returns the newly created campaign if // successful. // -// - advertiserId: Output only. The unique ID of the advertiser the -// campaign belongs to. +// - advertiserId: Output only. The unique ID of the advertiser the campaign +// belongs to. func (r *AdvertisersCampaignsService) Create(advertiserId int64, campaign *Campaign) *AdvertisersCampaignsCreateCall { c := &AdvertisersCampaignsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -18185,23 +14650,21 @@ func (r *AdvertisersCampaignsService) Create(advertiserId int64, campaign *Campa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCampaignsCreateCall) Fields(s ...googleapi.Field) *AdvertisersCampaignsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCampaignsCreateCall) Context(ctx context.Context) *AdvertisersCampaignsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCampaignsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18210,18 +14673,12 @@ func (c *AdvertisersCampaignsCreateCall) Header() http.Header { } func (c *AdvertisersCampaignsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/campaigns") @@ -18234,16 +14691,14 @@ func (c *AdvertisersCampaignsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.create" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersCampaignsCreateCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18274,40 +14729,7 @@ func (c *AdvertisersCampaignsCreateCall) Do(opts ...googleapi.CallOption) (*Camp return nil, err } return ret, nil - // { - // "description": "Creates a new campaign. Returns the newly created campaign if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/campaigns", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.campaigns.create", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Output only. The unique ID of the advertiser the campaign belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/campaigns", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/display-video-mediaplanning" - // ] - // } - -} - -// method id "displayvideo.advertisers.campaigns.delete": +} type AdvertisersCampaignsDeleteCall struct { s *Service @@ -18319,8 +14741,8 @@ type AdvertisersCampaignsDeleteCall struct { } // Delete: Permanently deletes a campaign. A deleted campaign cannot be -// recovered. The campaign should be archived first, i.e. set -// entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it. +// recovered. The campaign should be archived first, i.e. set entity_status to +// `ENTITY_STATUS_ARCHIVED`, to be able to delete it. // // - advertiserId: The ID of the advertiser this campaign belongs to. // - campaignId: The ID of the campaign we need to delete. @@ -18332,23 +14754,21 @@ func (r *AdvertisersCampaignsService) Delete(advertiserId int64, campaignId int6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCampaignsDeleteCall) Fields(s ...googleapi.Field) *AdvertisersCampaignsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCampaignsDeleteCall) Context(ctx context.Context) *AdvertisersCampaignsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCampaignsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18357,12 +14777,7 @@ func (c *AdvertisersCampaignsDeleteCall) Header() http.Header { } func (c *AdvertisersCampaignsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -18377,16 +14792,14 @@ func (c *AdvertisersCampaignsDeleteCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersCampaignsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18417,46 +14830,7 @@ func (c *AdvertisersCampaignsDeleteCall) Do(opts ...googleapi.CallOption) (*Empt return nil, err } return ret, nil - // { - // "description": "Permanently deletes a campaign. A deleted campaign cannot be recovered. The campaign should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it.", - // "flatPath": "v1/advertisers/{advertisersId}/campaigns/{campaignsId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.campaigns.delete", - // "parameterOrder": [ - // "advertiserId", - // "campaignId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser this campaign belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "campaignId": { - // "description": "The ID of the campaign we need to delete.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/campaigns/{+campaignId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/display-video-mediaplanning" - // ] - // } - -} - -// method id "displayvideo.advertisers.campaigns.get": +} type AdvertisersCampaignsGetCall struct { s *Service @@ -18480,33 +14854,29 @@ func (r *AdvertisersCampaignsService) Get(advertiserId int64, campaignId int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCampaignsGetCall) Fields(s ...googleapi.Field) *AdvertisersCampaignsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersCampaignsGetCall) IfNoneMatch(entityTag string) *AdvertisersCampaignsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCampaignsGetCall) Context(ctx context.Context) *AdvertisersCampaignsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCampaignsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18515,12 +14885,7 @@ func (c *AdvertisersCampaignsGetCall) Header() http.Header { } func (c *AdvertisersCampaignsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18538,16 +14903,14 @@ func (c *AdvertisersCampaignsGetCall) doRequest(alt string) (*http.Response, err "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.get" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersCampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18578,46 +14941,7 @@ func (c *AdvertisersCampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaig return nil, err } return ret, nil - // { - // "description": "Gets a campaign.", - // "flatPath": "v1/advertisers/{advertisersId}/campaigns/{campaignsId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.campaigns.get", - // "parameterOrder": [ - // "advertiserId", - // "campaignId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser this campaign belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "campaignId": { - // "description": "Required. The ID of the campaign to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/campaigns/{+campaignId}", - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/display-video-mediaplanning" - // ] - // } - -} - -// method id "displayvideo.advertisers.campaigns.list": +} type AdvertisersCampaignsListCall struct { s *Service @@ -18628,10 +14952,9 @@ type AdvertisersCampaignsListCall struct { header_ http.Header } -// List: Lists campaigns in an advertiser. The order is defined by the -// order_by parameter. If a filter by entity_status is not specified, -// campaigns with `ENTITY_STATUS_ARCHIVED` will not be included in the -// results. +// List: Lists campaigns in an advertiser. The order is defined by the order_by +// parameter. If a filter by entity_status is not specified, campaigns with +// `ENTITY_STATUS_ARCHIVED` will not be included in the results. // // - advertiserId: The ID of the advertiser to list campaigns for. func (r *AdvertisersCampaignsService) List(advertiserId int64) *AdvertisersCampaignsListCall { @@ -18640,86 +14963,79 @@ func (r *AdvertisersCampaignsService) List(advertiserId int64) *AdvertisersCampa return c } -// Filter sets the optional parameter "filter": Allows filtering by -// campaign fields. Supported syntax: * Filter expressions are made up -// of one or more restrictions. * Restrictions can be combined by `AND` -// or `OR` logical operators. A sequence of restrictions implicitly uses -// `AND`. * A restriction has the form of `{field} {operator} {value}`. -// * The `updateTime` field must use the `GREATER THAN OR EQUAL TO (>=)` -// or `LESS THAN OR EQUAL TO (<=)` operators. * All other fields must -// use the `EQUALS (=)` operator. Supported fields: * `campaignId` * -// `displayName` * `entityStatus` * `updateTime` (input in ISO 8601 -// format, or `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All +// Filter sets the optional parameter "filter": Allows filtering by campaign +// fields. Supported syntax: * Filter expressions are made up of one or more +// restrictions. * Restrictions can be combined by `AND` or `OR` logical +// operators. A sequence of restrictions implicitly uses `AND`. * A restriction +// has the form of `{field} {operator} {value}`. * The `updateTime` field must +// use the `GREATER THAN OR EQUAL TO (>=)` or `LESS THAN OR EQUAL TO (<=)` +// operators. * All other fields must use the `EQUALS (=)` operator. Supported +// fields: * `campaignId` * `displayName` * `entityStatus` * `updateTime` +// (input in ISO 8601 format, or `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All // `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` campaigns under an // advertiser: `(entityStatus="ENTITY_STATUS_ACTIVE" OR -// entityStatus="ENTITY_STATUS_PAUSED")` * All campaigns with an update -// time less than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): -// `updateTime<="2020-11-04T18:54:47Z" * All campaigns with an update -// time greater than or equal to 2020-11-04T18:54:47Z (format of ISO -// 8601): `updateTime>="2020-11-04T18:54:47Z" The length of this field -// should be no more than 500 characters. Reference our filter `LIST` -// requests (/display-video/api/guides/how-tos/filters) guide for more -// information. +// entityStatus="ENTITY_STATUS_PAUSED")` * All campaigns with an update time +// less than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): +// `updateTime<="2020-11-04T18:54:47Z" * All campaigns with an update time +// greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): +// `updateTime>="2020-11-04T18:54:47Z" The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersCampaignsListCall) Filter(filter string) *AdvertisersCampaignsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) * -// `entityStatus` * `updateTime` The default sorting order is ascending. -// To specify descending order for a field, a suffix "desc" should be -// added to the field name. Example: `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) * `entityStatus` * +// `updateTime` The default sorting order is ascending. To specify descending +// order for a field, a suffix "desc" should be added to the field name. +// Example: `displayName desc`. func (c *AdvertisersCampaignsListCall) OrderBy(orderBy string) *AdvertisersCampaignsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. func (c *AdvertisersCampaignsListCall) PageSize(pageSize int64) *AdvertisersCampaignsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListCampaigns` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListCampaigns` method. +// If not specified, the first page of results will be returned. func (c *AdvertisersCampaignsListCall) PageToken(pageToken string) *AdvertisersCampaignsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCampaignsListCall) Fields(s ...googleapi.Field) *AdvertisersCampaignsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersCampaignsListCall) IfNoneMatch(entityTag string) *AdvertisersCampaignsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCampaignsListCall) Context(ctx context.Context) *AdvertisersCampaignsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCampaignsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18728,12 +15044,7 @@ func (c *AdvertisersCampaignsListCall) Header() http.Header { } func (c *AdvertisersCampaignsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18750,16 +15061,15 @@ func (c *AdvertisersCampaignsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.list" call. -// Exactly one of *ListCampaignsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListCampaignsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListCampaignsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersCampaignsListCall) Do(opts ...googleapi.CallOption) (*ListCampaignsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18790,55 +15100,6 @@ func (c *AdvertisersCampaignsListCall) Do(opts ...googleapi.CallOption) (*ListCa return nil, err } return ret, nil - // { - // "description": "Lists campaigns in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, campaigns with `ENTITY_STATUS_ARCHIVED` will not be included in the results.", - // "flatPath": "v1/advertisers/{advertisersId}/campaigns", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.campaigns.list", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser to list campaigns for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by campaign fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The `updateTime` field must use the `GREATER THAN OR EQUAL TO (\u003e=)` or `LESS THAN OR EQUAL TO (\u003c=)` operators. * All other fields must use the `EQUALS (=)` operator. Supported fields: * `campaignId` * `displayName` * `entityStatus` * `updateTime` (input in ISO 8601 format, or `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` campaigns under an advertiser: `(entityStatus=\"ENTITY_STATUS_ACTIVE\" OR entityStatus=\"ENTITY_STATUS_PAUSED\")` * All campaigns with an update time less than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime\u003c=\"2020-11-04T18:54:47Z\"` * All campaigns with an update time greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime\u003e=\"2020-11-04T18:54:47Z\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) * `entityStatus` * `updateTime` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListCampaigns` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/campaigns", - // "response": { - // "$ref": "ListCampaignsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/display-video-mediaplanning" - // ] - // } - } // Pages invokes f for each page of results. @@ -18846,7 +15107,7 @@ func (c *AdvertisersCampaignsListCall) Do(opts ...googleapi.CallOption) (*ListCa // The provided context supersedes any context provided to the Context method. func (c *AdvertisersCampaignsListCall) Pages(ctx context.Context, f func(*ListCampaignsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18862,8 +15123,6 @@ func (c *AdvertisersCampaignsListCall) Pages(ctx context.Context, f func(*ListCa } } -// method id "displayvideo.advertisers.campaigns.patch": - type AdvertisersCampaignsPatchCall struct { s *Service advertiserId int64 @@ -18877,10 +15136,10 @@ type AdvertisersCampaignsPatchCall struct { // Patch: Updates an existing campaign. Returns the updated campaign if // successful. // -// - advertiserId: Output only. The unique ID of the advertiser the -// campaign belongs to. -// - campaignId: Output only. The unique ID of the campaign. Assigned by -// the system. +// - advertiserId: Output only. The unique ID of the advertiser the campaign +// belongs to. +// - campaignId: Output only. The unique ID of the campaign. Assigned by the +// system. func (r *AdvertisersCampaignsService) Patch(advertiserId int64, campaignId int64, campaign *Campaign) *AdvertisersCampaignsPatchCall { c := &AdvertisersCampaignsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -18889,31 +15148,29 @@ func (r *AdvertisersCampaignsService) Patch(advertiserId int64, campaignId int64 return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *AdvertisersCampaignsPatchCall) UpdateMask(updateMask string) *AdvertisersCampaignsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCampaignsPatchCall) Fields(s ...googleapi.Field) *AdvertisersCampaignsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCampaignsPatchCall) Context(ctx context.Context) *AdvertisersCampaignsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCampaignsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18922,18 +15179,12 @@ func (c *AdvertisersCampaignsPatchCall) Header() http.Header { } func (c *AdvertisersCampaignsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.campaign) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/campaigns/{+campaignId}") @@ -18947,16 +15198,14 @@ func (c *AdvertisersCampaignsPatchCall) doRequest(alt string) (*http.Response, e "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.patch" call. -// Exactly one of *Campaign or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Campaign.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Campaign.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersCampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18987,55 +15236,7 @@ func (c *AdvertisersCampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campa return nil, err } return ret, nil - // { - // "description": "Updates an existing campaign. Returns the updated campaign if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/campaigns/{campaignsId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.advertisers.campaigns.patch", - // "parameterOrder": [ - // "advertiserId", - // "campaignId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Output only. The unique ID of the advertiser the campaign belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "campaignId": { - // "description": "Output only. The unique ID of the campaign. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/campaigns/{+campaignId}", - // "request": { - // "$ref": "Campaign" - // }, - // "response": { - // "$ref": "Campaign" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/display-video-mediaplanning" - // ] - // } - -} - -// method id "displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.get": +} type AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall struct { s *Service @@ -19052,27 +15253,24 @@ type AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall struct { // Get: Gets a single targeting option assigned to a campaign. // // - advertiserId: The ID of the advertiser the campaign belongs to. -// - assignedTargetingOptionId: An identifier unique to the targeting -// type in this campaign that identifies the assigned targeting option -// being requested. -// - campaignId: The ID of the campaign the assigned targeting option -// belongs to. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * +// - assignedTargetingOptionId: An identifier unique to the targeting type in +// this campaign that identifies the assigned targeting option being +// requested. +// - campaignId: The ID of the campaign the assigned targeting option belongs +// to. +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * // `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * -// `TARGETING_TYPE_INVENTORY_SOURCE` * -// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_LANGUAGE` -// - `TARGETING_TYPE_ON_SCREEN_POSITION` * -// `TARGETING_TYPE_PARENTAL_STATUS` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_PARENTAL_STATUS` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * -// `TARGETING_TYPE_SUB_EXCHANGE` * -// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * +// `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * // `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsService) Get(advertiserId int64, campaignId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall { c := &AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -19084,33 +15282,29 @@ func (r *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsService) Get( } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) Fields(s ...googleapi.Field) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) IfNoneMatch(entityTag string) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) Context(ctx context.Context) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19119,12 +15313,7 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) Head } func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19144,16 +15333,15 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) doRe "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.get" call. -// Exactly one of *AssignedTargetingOption or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AssignedTargetingOption.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...googleapi.CallOption) (*AssignedTargetingOption, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19184,157 +15372,7 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) Do(o return nil, err } return ret, nil - // { - // "description": "Gets a single targeting option assigned to a campaign.", - // "flatPath": "v1/advertisers/{advertisersId}/campaigns/{campaignsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.get", - // "parameterOrder": [ - // "advertiserId", - // "campaignId", - // "targetingType", - // "assignedTargetingOptionId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the campaign belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "assignedTargetingOptionId": { - // "description": "Required. An identifier unique to the targeting type in this campaign that identifies the assigned targeting option being requested.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "campaignId": { - // "description": "Required. The ID of the campaign the assigned targeting option belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_VIEWABILITY`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}", - // "response": { - // "$ref": "AssignedTargetingOption" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.list": +} type AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall struct { s *Service @@ -19347,28 +15385,24 @@ type AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall struct { header_ http.Header } -// List: Lists the targeting options assigned to a campaign for a -// specified targeting type. +// List: Lists the targeting options assigned to a campaign for a specified +// targeting type. // // - advertiserId: The ID of the advertiser the campaign belongs to. -// - campaignId: The ID of the campaign to list assigned targeting -// options for. -// - targetingType: Identifies the type of assigned targeting options to -// list. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * +// - campaignId: The ID of the campaign to list assigned targeting options for. +// - targetingType: Identifies the type of assigned targeting options to list. +// Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * // `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * -// `TARGETING_TYPE_INVENTORY_SOURCE` * -// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_LANGUAGE` -// - `TARGETING_TYPE_ON_SCREEN_POSITION` * -// `TARGETING_TYPE_PARENTAL_STATUS` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_LANGUAGE` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_PARENTAL_STATUS` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * -// `TARGETING_TYPE_SUB_EXCHANGE` * -// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * +// `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * // `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsService) List(advertiserId int64, campaignId int64, targetingType string) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall { c := &AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -19378,84 +15412,76 @@ func (r *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsService) List return c } -// Filter sets the optional parameter "filter": Allows filtering by -// assigned targeting option fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the `OR` logical operator. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=)` operator. Supported fields: * -// `assignedTargetingOptionId` * `inheritance` Examples: * +// Filter sets the optional parameter "filter": Allows filtering by assigned +// targeting option fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the `OR` +// logical operator. * A restriction has the form of `{field} {operator} +// {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: +// * `assignedTargetingOptionId` * `inheritance` Examples: * // `AssignedTargetingOption` resources with ID 1 or 2 // `assignedTargetingOptionId="1" OR assignedTargetingOptionId="2" * // `AssignedTargetingOption` resources with inheritance status of -// `NOT_INHERITED` or `INHERITED_FROM_PARTNER` -// `inheritance="NOT_INHERITED" OR inheritance="INHERITED_FROM_PARTNER" -// The length of this field should be no more than 500 characters. -// Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// `NOT_INHERITED` or `INHERITED_FROM_PARTNER` `inheritance="NOT_INHERITED" OR +// inheritance="INHERITED_FROM_PARTNER" The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Filter(filter string) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `assignedTargetingOptionId` -// (default) The default sorting order is ascending. To specify -// descending order for a field, a suffix "desc" should be added to the -// field name. Example: `assignedTargetingOptionId desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `assignedTargetingOptionId` (default) The +// default sorting order is ascending. To specify descending order for a field, +// a suffix "desc" should be added to the field name. Example: +// `assignedTargetingOptionId desc`. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) OrderBy(orderBy string) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `5000`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `5000`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) PageSize(pageSize int64) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListCampaignAssignedTargetingOptions` method. If not specified, -// the first page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to +// `ListCampaignAssignedTargetingOptions` method. If not specified, the first +// page of results will be returned. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) PageToken(pageToken string) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Fields(s ...googleapi.Field) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) IfNoneMatch(entityTag string) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Context(ctx context.Context) *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19464,12 +15490,7 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Hea } func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19488,18 +15509,15 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) doR "campaignId": strconv.FormatInt(c.campaignId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.list" call. -// Exactly one of *ListCampaignAssignedTargetingOptionsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *ListCampaignAssignedTargetingOptionsResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListCampaignAssignedTargetingOptionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...googleapi.CallOption) (*ListCampaignAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19530,167 +15548,6 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Do( return nil, err } return ret, nil - // { - // "description": "Lists the targeting options assigned to a campaign for a specified targeting type.", - // "flatPath": "v1/advertisers/{advertisersId}/campaigns/{campaignsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.list", - // "parameterOrder": [ - // "advertiserId", - // "campaignId", - // "targetingType" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the campaign belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "campaignId": { - // "description": "Required. The ID of the campaign to list assigned targeting options for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by assigned targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the `OR` logical operator. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `assignedTargetingOptionId` * `inheritance` Examples: * `AssignedTargetingOption` resources with ID 1 or 2 `assignedTargetingOptionId=\"1\" OR assignedTargetingOptionId=\"2\"` * `AssignedTargetingOption` resources with inheritance status of `NOT_INHERITED` or `INHERITED_FROM_PARTNER` `inheritance=\"NOT_INHERITED\" OR inheritance=\"INHERITED_FROM_PARTNER\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `assignedTargetingOptionId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `assignedTargetingOptionId desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `5000`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListCampaignAssignedTargetingOptions` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_VIEWABILITY`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions", - // "response": { - // "$ref": "ListCampaignAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -19698,7 +15555,7 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Do( // The provided context supersedes any context provided to the Context method. func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Pages(ctx context.Context, f func(*ListCampaignAssignedTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -19714,8 +15571,6 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) Pag } } -// method id "displayvideo.advertisers.channels.create": - type AdvertisersChannelsCreateCall struct { s *Service advertiserId int64 @@ -19728,8 +15583,7 @@ type AdvertisersChannelsCreateCall struct { // Create: Creates a new channel. Returns the newly created channel if // successful. // -// - advertiserId: The ID of the advertiser that owns the created -// channel. +// - advertiserId: The ID of the advertiser that owns the created channel. func (r *AdvertisersChannelsService) Create(advertiserId int64, channel *Channel) *AdvertisersChannelsCreateCall { c := &AdvertisersChannelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -19737,31 +15591,29 @@ func (r *AdvertisersChannelsService) Create(advertiserId int64, channel *Channel return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the created channel. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the created channel. func (c *AdvertisersChannelsCreateCall) PartnerId(partnerId int64) *AdvertisersChannelsCreateCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersChannelsCreateCall) Fields(s ...googleapi.Field) *AdvertisersChannelsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersChannelsCreateCall) Context(ctx context.Context) *AdvertisersChannelsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersChannelsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19770,18 +15622,12 @@ func (c *AdvertisersChannelsCreateCall) Header() http.Header { } func (c *AdvertisersChannelsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.channel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/channels") @@ -19794,16 +15640,14 @@ func (c *AdvertisersChannelsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.create" call. -// Exactly one of *Channel or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Channel.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Channel.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersChannelsCreateCall) Do(opts ...googleapi.CallOption) (*Channel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19834,45 +15678,7 @@ func (c *AdvertisersChannelsCreateCall) Do(opts ...googleapi.CallOption) (*Chann return nil, err } return ret, nil - // { - // "description": "Creates a new channel. Returns the newly created channel if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/channels", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.channels.create", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the created channel.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the created channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/channels", - // "request": { - // "$ref": "Channel" - // }, - // "response": { - // "$ref": "Channel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.channels.get": +} type AdvertisersChannelsGetCall struct { s *Service @@ -19886,9 +15692,8 @@ type AdvertisersChannelsGetCall struct { // Get: Gets a channel for a partner or advertiser. // -// - advertiserId: The ID of the advertiser that owns the fetched -// channel. -// - channelId: The ID of the channel to fetch. +// - advertiserId: The ID of the advertiser that owns the fetched channel. +// - channelId: The ID of the channel to fetch. func (r *AdvertisersChannelsService) Get(advertiserId int64, channelId int64) *AdvertisersChannelsGetCall { c := &AdvertisersChannelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -19896,41 +15701,37 @@ func (r *AdvertisersChannelsService) Get(advertiserId int64, channelId int64) *A return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the fetched channel. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the fetched channel. func (c *AdvertisersChannelsGetCall) PartnerId(partnerId int64) *AdvertisersChannelsGetCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersChannelsGetCall) Fields(s ...googleapi.Field) *AdvertisersChannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersChannelsGetCall) IfNoneMatch(entityTag string) *AdvertisersChannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersChannelsGetCall) Context(ctx context.Context) *AdvertisersChannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersChannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19939,12 +15740,7 @@ func (c *AdvertisersChannelsGetCall) Header() http.Header { } func (c *AdvertisersChannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19962,16 +15758,14 @@ func (c *AdvertisersChannelsGetCall) doRequest(alt string) (*http.Response, erro "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.get" call. -// Exactly one of *Channel or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Channel.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Channel.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersChannelsGetCall) Do(opts ...googleapi.CallOption) (*Channel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20002,51 +15796,7 @@ func (c *AdvertisersChannelsGetCall) Do(opts ...googleapi.CallOption) (*Channel, return nil, err } return ret, nil - // { - // "description": "Gets a channel for a partner or advertiser.", - // "flatPath": "v1/advertisers/{advertisersId}/channels/{channelsId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.channels.get", - // "parameterOrder": [ - // "advertiserId", - // "channelId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the fetched channel.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "channelId": { - // "description": "Required. The ID of the channel to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the fetched channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/channels/{+channelId}", - // "response": { - // "$ref": "Channel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.channels.list": +} type AdvertisersChannelsListCall struct { s *Service @@ -20066,85 +15816,77 @@ func (r *AdvertisersChannelsService) List(advertiserId int64) *AdvertisersChanne return c } -// Filter sets the optional parameter "filter": Allows filtering by -// channel fields. Supported syntax: * Filter expressions for channel -// can only contain at most one restriction. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the `HAS -// (:)` operator. Supported fields: * `displayName` Examples: * All -// channels for which the display name contains "google": `displayName : -// "google". The length of this field should be no more than 500 -// characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// Filter sets the optional parameter "filter": Allows filtering by channel +// fields. Supported syntax: * Filter expressions for channel can only contain +// at most one restriction. * A restriction has the form of `{field} {operator} +// {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * +// `displayName` Examples: * All channels for which the display name contains +// "google": `displayName : "google". The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersChannelsListCall) Filter(filter string) *AdvertisersChannelsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) * -// `channelId` The default sorting order is ascending. To specify -// descending order for a field, a suffix " desc" should be added to the -// field name. Example: `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) * `channelId` The +// default sorting order is ascending. To specify descending order for a field, +// a suffix " desc" should be added to the field name. Example: `displayName +// desc`. func (c *AdvertisersChannelsListCall) OrderBy(orderBy string) *AdvertisersChannelsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersChannelsListCall) PageSize(pageSize int64) *AdvertisersChannelsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListChannels` method. If not specified, the first page of results -// will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListChannels` method. If +// not specified, the first page of results will be returned. func (c *AdvertisersChannelsListCall) PageToken(pageToken string) *AdvertisersChannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the channels. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the channels. func (c *AdvertisersChannelsListCall) PartnerId(partnerId int64) *AdvertisersChannelsListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersChannelsListCall) Fields(s ...googleapi.Field) *AdvertisersChannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersChannelsListCall) IfNoneMatch(entityTag string) *AdvertisersChannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersChannelsListCall) Context(ctx context.Context) *AdvertisersChannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersChannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20153,12 +15895,7 @@ func (c *AdvertisersChannelsListCall) Header() http.Header { } func (c *AdvertisersChannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20175,16 +15912,15 @@ func (c *AdvertisersChannelsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.list" call. -// Exactly one of *ListChannelsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListChannelsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListChannelsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersChannelsListCall) Do(opts ...googleapi.CallOption) (*ListChannelsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20215,60 +15951,6 @@ func (c *AdvertisersChannelsListCall) Do(opts ...googleapi.CallOption) (*ListCha return nil, err } return ret, nil - // { - // "description": "Lists channels for a partner or advertiser.", - // "flatPath": "v1/advertisers/{advertisersId}/channels", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.channels.list", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the channels.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by channel fields. Supported syntax: * Filter expressions for channel can only contain at most one restriction. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * `displayName` Examples: * All channels for which the display name contains \"google\": `displayName : \"google\"`. The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) * `channelId` The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListChannels` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the channels.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/channels", - // "response": { - // "$ref": "ListChannelsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -20276,7 +15958,7 @@ func (c *AdvertisersChannelsListCall) Do(opts ...googleapi.CallOption) (*ListCha // The provided context supersedes any context provided to the Context method. func (c *AdvertisersChannelsListCall) Pages(ctx context.Context, f func(*ListChannelsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20292,8 +15974,6 @@ func (c *AdvertisersChannelsListCall) Pages(ctx context.Context, f func(*ListCha } } -// method id "displayvideo.advertisers.channels.patch": - type AdvertisersChannelsPatchCall struct { s *Service advertiserId int64 @@ -20306,10 +15986,9 @@ type AdvertisersChannelsPatchCall struct { // Patch: Updates a channel. Returns the updated channel if successful. // -// - advertiserId: The ID of the advertiser that owns the created -// channel. -// - channelId: Output only. The unique ID of the channel. Assigned by -// the system. +// - advertiserId: The ID of the advertiser that owns the created channel. +// - channelId: Output only. The unique ID of the channel. Assigned by the +// system. func (r *AdvertisersChannelsService) Patch(advertiserId int64, channelId int64, channel *Channel) *AdvertisersChannelsPatchCall { c := &AdvertisersChannelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -20318,38 +15997,36 @@ func (r *AdvertisersChannelsService) Patch(advertiserId int64, channelId int64, return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the created channel. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the created channel. func (c *AdvertisersChannelsPatchCall) PartnerId(partnerId int64) *AdvertisersChannelsPatchCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *AdvertisersChannelsPatchCall) UpdateMask(updateMask string) *AdvertisersChannelsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersChannelsPatchCall) Fields(s ...googleapi.Field) *AdvertisersChannelsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersChannelsPatchCall) Context(ctx context.Context) *AdvertisersChannelsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersChannelsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20358,18 +16035,12 @@ func (c *AdvertisersChannelsPatchCall) Header() http.Header { } func (c *AdvertisersChannelsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.channel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/channels/{channelId}") @@ -20383,16 +16054,14 @@ func (c *AdvertisersChannelsPatchCall) doRequest(alt string) (*http.Response, er "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.patch" call. -// Exactly one of *Channel or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Channel.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Channel.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersChannelsPatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20423,59 +16092,7 @@ func (c *AdvertisersChannelsPatchCall) Do(opts ...googleapi.CallOption) (*Channe return nil, err } return ret, nil - // { - // "description": "Updates a channel. Returns the updated channel if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/channels/{channelId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.advertisers.channels.patch", - // "parameterOrder": [ - // "advertiserId", - // "channelId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the created channel.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "channelId": { - // "description": "Output only. The unique ID of the channel. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the created channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/channels/{channelId}", - // "request": { - // "$ref": "Channel" - // }, - // "response": { - // "$ref": "Channel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.channels.sites.bulkEdit": +} type AdvertisersChannelsSitesBulkEditCall struct { s *Service @@ -20487,13 +16104,12 @@ type AdvertisersChannelsSitesBulkEditCall struct { header_ http.Header } -// BulkEdit: Bulk edits sites under a single channel. The operation will -// delete the sites provided in BulkEditSitesRequest.deleted_sites and -// then create the sites provided in BulkEditSitesRequest.created_sites. +// BulkEdit: Bulk edits sites under a single channel. The operation will delete +// the sites provided in BulkEditSitesRequest.deleted_sites and then create the +// sites provided in BulkEditSitesRequest.created_sites. // -// - advertiserId: The ID of the advertiser that owns the parent -// channel. -// - channelId: The ID of the parent channel to which the sites belong. +// - advertiserId: The ID of the advertiser that owns the parent channel. +// - channelId: The ID of the parent channel to which the sites belong. func (r *AdvertisersChannelsSitesService) BulkEdit(advertiserId int64, channelId int64, bulkeditsitesrequest *BulkEditSitesRequest) *AdvertisersChannelsSitesBulkEditCall { c := &AdvertisersChannelsSitesBulkEditCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -20503,23 +16119,21 @@ func (r *AdvertisersChannelsSitesService) BulkEdit(advertiserId int64, channelId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersChannelsSitesBulkEditCall) Fields(s ...googleapi.Field) *AdvertisersChannelsSitesBulkEditCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersChannelsSitesBulkEditCall) Context(ctx context.Context) *AdvertisersChannelsSitesBulkEditCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersChannelsSitesBulkEditCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20528,18 +16142,12 @@ func (c *AdvertisersChannelsSitesBulkEditCall) Header() http.Header { } func (c *AdvertisersChannelsSitesBulkEditCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bulkeditsitesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{advertiserId}/channels/{+channelId}/sites:bulkEdit") @@ -20553,16 +16161,15 @@ func (c *AdvertisersChannelsSitesBulkEditCall) doRequest(alt string) (*http.Resp "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.bulkEdit" call. -// Exactly one of *BulkEditSitesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BulkEditSitesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkEditSitesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersChannelsSitesBulkEditCall) Do(opts ...googleapi.CallOption) (*BulkEditSitesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20593,47 +16200,7 @@ func (c *AdvertisersChannelsSitesBulkEditCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Bulk edits sites under a single channel. The operation will delete the sites provided in BulkEditSitesRequest.deleted_sites and then create the sites provided in BulkEditSitesRequest.created_sites.", - // "flatPath": "v1/advertisers/{advertiserId}/channels/{channelsId}/sites:bulkEdit", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.channels.sites.bulkEdit", - // "parameterOrder": [ - // "advertiserId", - // "channelId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent channel.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "channelId": { - // "description": "Required. The ID of the parent channel to which the sites belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/channels/{+channelId}/sites:bulkEdit", - // "request": { - // "$ref": "BulkEditSitesRequest" - // }, - // "response": { - // "$ref": "BulkEditSitesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.channels.sites.create": +} type AdvertisersChannelsSitesCreateCall struct { s *Service @@ -20647,10 +16214,8 @@ type AdvertisersChannelsSitesCreateCall struct { // Create: Creates a site in a channel. // -// - advertiserId: The ID of the advertiser that owns the parent -// channel. -// - channelId: The ID of the parent channel in which the site will be -// created. +// - advertiserId: The ID of the advertiser that owns the parent channel. +// - channelId: The ID of the parent channel in which the site will be created. func (r *AdvertisersChannelsSitesService) Create(advertiserId int64, channelId int64, site *Site) *AdvertisersChannelsSitesCreateCall { c := &AdvertisersChannelsSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -20659,31 +16224,29 @@ func (r *AdvertisersChannelsSitesService) Create(advertiserId int64, channelId i return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the parent channel. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the parent channel. func (c *AdvertisersChannelsSitesCreateCall) PartnerId(partnerId int64) *AdvertisersChannelsSitesCreateCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersChannelsSitesCreateCall) Fields(s ...googleapi.Field) *AdvertisersChannelsSitesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersChannelsSitesCreateCall) Context(ctx context.Context) *AdvertisersChannelsSitesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersChannelsSitesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20692,18 +16255,12 @@ func (c *AdvertisersChannelsSitesCreateCall) Header() http.Header { } func (c *AdvertisersChannelsSitesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{advertiserId}/channels/{+channelId}/sites") @@ -20717,16 +16274,14 @@ func (c *AdvertisersChannelsSitesCreateCall) doRequest(alt string) (*http.Respon "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.create" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersChannelsSitesCreateCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20757,53 +16312,7 @@ func (c *AdvertisersChannelsSitesCreateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Creates a site in a channel.", - // "flatPath": "v1/advertisers/{advertiserId}/channels/{channelsId}/sites", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.channels.sites.create", - // "parameterOrder": [ - // "advertiserId", - // "channelId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent channel.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "channelId": { - // "description": "Required. The ID of the parent channel in which the site will be created.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/channels/{+channelId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.channels.sites.delete": +} type AdvertisersChannelsSitesDeleteCall struct { s *Service @@ -20817,10 +16326,9 @@ type AdvertisersChannelsSitesDeleteCall struct { // Delete: Deletes a site from a channel. // -// - advertiserId: The ID of the advertiser that owns the parent -// channel. -// - channelId: The ID of the parent channel to which the site belongs. -// - urlOrAppId: The URL or app ID of the site to delete. +// - advertiserId: The ID of the advertiser that owns the parent channel. +// - channelId: The ID of the parent channel to which the site belongs. +// - urlOrAppId: The URL or app ID of the site to delete. func (r *AdvertisersChannelsSitesService) Delete(advertiserId int64, channelId int64, urlOrAppId string) *AdvertisersChannelsSitesDeleteCall { c := &AdvertisersChannelsSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -20829,31 +16337,29 @@ func (r *AdvertisersChannelsSitesService) Delete(advertiserId int64, channelId i return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the parent channel. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the parent channel. func (c *AdvertisersChannelsSitesDeleteCall) PartnerId(partnerId int64) *AdvertisersChannelsSitesDeleteCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersChannelsSitesDeleteCall) Fields(s ...googleapi.Field) *AdvertisersChannelsSitesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersChannelsSitesDeleteCall) Context(ctx context.Context) *AdvertisersChannelsSitesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersChannelsSitesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20862,12 +16368,7 @@ func (c *AdvertisersChannelsSitesDeleteCall) Header() http.Header { } func (c *AdvertisersChannelsSitesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -20883,16 +16384,14 @@ func (c *AdvertisersChannelsSitesDeleteCall) doRequest(alt string) (*http.Respon "channelId": strconv.FormatInt(c.channelId, 10), "urlOrAppId": c.urlOrAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersChannelsSitesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20923,58 +16422,7 @@ func (c *AdvertisersChannelsSitesDeleteCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Deletes a site from a channel.", - // "flatPath": "v1/advertisers/{advertiserId}/channels/{channelsId}/sites/{sitesId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.channels.sites.delete", - // "parameterOrder": [ - // "advertiserId", - // "channelId", - // "urlOrAppId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent channel.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "channelId": { - // "description": "Required. The ID of the parent channel to which the site belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "urlOrAppId": { - // "description": "Required. The URL or app ID of the site to delete.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/channels/{+channelId}/sites/{+urlOrAppId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.channels.sites.list": +} type AdvertisersChannelsSitesListCall struct { s *Service @@ -20988,10 +16436,9 @@ type AdvertisersChannelsSitesListCall struct { // List: Lists sites in a channel. // -// - advertiserId: The ID of the advertiser that owns the parent -// channel. -// - channelId: The ID of the parent channel to which the requested -// sites belong. +// - advertiserId: The ID of the advertiser that owns the parent channel. +// - channelId: The ID of the parent channel to which the requested sites +// belong. func (r *AdvertisersChannelsSitesService) List(advertiserId int64, channelId int64) *AdvertisersChannelsSitesListCall { c := &AdvertisersChannelsSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -21000,84 +16447,75 @@ func (r *AdvertisersChannelsSitesService) List(advertiserId int64, channelId int } // Filter sets the optional parameter "filter": Allows filtering by site -// fields. Supported syntax: * Filter expressions for site retrieval can -// only contain at most one restriction. * A restriction has the form of -// `{field} {operator} {value}`. * All fields must use the `HAS (:)` -// operator. Supported fields: * `urlOrAppId` Examples: * All sites for -// which the URL or app ID contains "google": `urlOrAppId : "google" -// The length of this field should be no more than 500 characters. -// Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// fields. Supported syntax: * Filter expressions for site retrieval can only +// contain at most one restriction. * A restriction has the form of `{field} +// {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported +// fields: * `urlOrAppId` Examples: * All sites for which the URL or app ID +// contains "google": `urlOrAppId : "google" The length of this field should +// be no more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersChannelsSitesListCall) Filter(filter string) *AdvertisersChannelsSitesListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `urlOrAppId` (default) The default -// sorting order is ascending. To specify descending order for a field, -// a suffix " desc" should be added to the field name. Example: -// `urlOrAppId desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `urlOrAppId` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix " +// desc" should be added to the field name. Example: `urlOrAppId desc`. func (c *AdvertisersChannelsSitesListCall) OrderBy(orderBy string) *AdvertisersChannelsSitesListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `10000`. If unspecified will default to -// `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `10000`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersChannelsSitesListCall) PageSize(pageSize int64) *AdvertisersChannelsSitesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListSites` method. If not specified, the first page of results -// will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListSites` method. If +// not specified, the first page of results will be returned. func (c *AdvertisersChannelsSitesListCall) PageToken(pageToken string) *AdvertisersChannelsSitesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the parent channel. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the parent channel. func (c *AdvertisersChannelsSitesListCall) PartnerId(partnerId int64) *AdvertisersChannelsSitesListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersChannelsSitesListCall) Fields(s ...googleapi.Field) *AdvertisersChannelsSitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersChannelsSitesListCall) IfNoneMatch(entityTag string) *AdvertisersChannelsSitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersChannelsSitesListCall) Context(ctx context.Context) *AdvertisersChannelsSitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersChannelsSitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21086,12 +16524,7 @@ func (c *AdvertisersChannelsSitesListCall) Header() http.Header { } func (c *AdvertisersChannelsSitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21109,16 +16542,15 @@ func (c *AdvertisersChannelsSitesListCall) doRequest(alt string) (*http.Response "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.list" call. -// Exactly one of *ListSitesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListSitesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListSitesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersChannelsSitesListCall) Do(opts ...googleapi.CallOption) (*ListSitesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21149,69 +16581,6 @@ func (c *AdvertisersChannelsSitesListCall) Do(opts ...googleapi.CallOption) (*Li return nil, err } return ret, nil - // { - // "description": "Lists sites in a channel.", - // "flatPath": "v1/advertisers/{advertisersId}/channels/{channelsId}/sites", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.channels.sites.list", - // "parameterOrder": [ - // "advertiserId", - // "channelId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent channel.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "channelId": { - // "description": "Required. The ID of the parent channel to which the requested sites belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by site fields. Supported syntax: * Filter expressions for site retrieval can only contain at most one restriction. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * `urlOrAppId` Examples: * All sites for which the URL or app ID contains \"google\": `urlOrAppId : \"google\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `urlOrAppId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be added to the field name. Example: `urlOrAppId desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `10000`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListSites` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/channels/{+channelId}/sites", - // "response": { - // "$ref": "ListSitesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -21219,7 +16588,7 @@ func (c *AdvertisersChannelsSitesListCall) Do(opts ...googleapi.CallOption) (*Li // The provided context supersedes any context provided to the Context method. func (c *AdvertisersChannelsSitesListCall) Pages(ctx context.Context, f func(*ListSitesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21235,8 +16604,6 @@ func (c *AdvertisersChannelsSitesListCall) Pages(ctx context.Context, f func(*Li } } -// method id "displayvideo.advertisers.channels.sites.replace": - type AdvertisersChannelsSitesReplaceCall struct { s *Service advertiserId int64 @@ -21247,14 +16614,12 @@ type AdvertisersChannelsSitesReplaceCall struct { header_ http.Header } -// Replace: Replaces all of the sites under a single channel. The -// operation will replace the sites under a channel with the sites -// provided in ReplaceSitesRequest.new_sites. +// Replace: Replaces all of the sites under a single channel. The operation +// will replace the sites under a channel with the sites provided in +// ReplaceSitesRequest.new_sites. // -// - advertiserId: The ID of the advertiser that owns the parent -// channel. -// - channelId: The ID of the parent channel whose sites will be -// replaced. +// - advertiserId: The ID of the advertiser that owns the parent channel. +// - channelId: The ID of the parent channel whose sites will be replaced. func (r *AdvertisersChannelsSitesService) Replace(advertiserId int64, channelId int64, replacesitesrequest *ReplaceSitesRequest) *AdvertisersChannelsSitesReplaceCall { c := &AdvertisersChannelsSitesReplaceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -21264,23 +16629,21 @@ func (r *AdvertisersChannelsSitesService) Replace(advertiserId int64, channelId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersChannelsSitesReplaceCall) Fields(s ...googleapi.Field) *AdvertisersChannelsSitesReplaceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersChannelsSitesReplaceCall) Context(ctx context.Context) *AdvertisersChannelsSitesReplaceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersChannelsSitesReplaceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21289,18 +16652,12 @@ func (c *AdvertisersChannelsSitesReplaceCall) Header() http.Header { } func (c *AdvertisersChannelsSitesReplaceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.replacesitesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{advertiserId}/channels/{+channelId}/sites:replace") @@ -21314,16 +16671,15 @@ func (c *AdvertisersChannelsSitesReplaceCall) doRequest(alt string) (*http.Respo "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.replace" call. -// Exactly one of *ReplaceSitesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ReplaceSitesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReplaceSitesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersChannelsSitesReplaceCall) Do(opts ...googleapi.CallOption) (*ReplaceSitesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21354,47 +16710,7 @@ func (c *AdvertisersChannelsSitesReplaceCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Replaces all of the sites under a single channel. The operation will replace the sites under a channel with the sites provided in ReplaceSitesRequest.new_sites.", - // "flatPath": "v1/advertisers/{advertiserId}/channels/{channelsId}/sites:replace", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.channels.sites.replace", - // "parameterOrder": [ - // "advertiserId", - // "channelId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent channel.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "channelId": { - // "description": "Required. The ID of the parent channel whose sites will be replaced.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/channels/{+channelId}/sites:replace", - // "request": { - // "$ref": "ReplaceSitesRequest" - // }, - // "response": { - // "$ref": "ReplaceSitesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.creatives.create": +} type AdvertisersCreativesCreateCall struct { s *Service @@ -21407,11 +16723,11 @@ type AdvertisersCreativesCreateCall struct { // Create: Creates a new creative. Returns the newly created creative if // successful. A "Standard" user role -// (//support.google.com/displayvideo/answer/2723011) or greater for the -// parent advertiser or partner is required to make this request. +// (//support.google.com/displayvideo/answer/2723011) or greater for the parent +// advertiser or partner is required to make this request. // -// - advertiserId: Output only. The unique ID of the advertiser the -// creative belongs to. +// - advertiserId: Output only. The unique ID of the advertiser the creative +// belongs to. func (r *AdvertisersCreativesService) Create(advertiserId int64, creative *Creative) *AdvertisersCreativesCreateCall { c := &AdvertisersCreativesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -21420,23 +16736,21 @@ func (r *AdvertisersCreativesService) Create(advertiserId int64, creative *Creat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCreativesCreateCall) Fields(s ...googleapi.Field) *AdvertisersCreativesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCreativesCreateCall) Context(ctx context.Context) *AdvertisersCreativesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCreativesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21445,18 +16759,12 @@ func (c *AdvertisersCreativesCreateCall) Header() http.Header { } func (c *AdvertisersCreativesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/creatives") @@ -21469,16 +16777,14 @@ func (c *AdvertisersCreativesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.create" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersCreativesCreateCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21509,39 +16815,7 @@ func (c *AdvertisersCreativesCreateCall) Do(opts ...googleapi.CallOption) (*Crea return nil, err } return ret, nil - // { - // "description": "Creates a new creative. Returns the newly created creative if successful. A [\"Standard\" user role](//support.google.com/displayvideo/answer/2723011) or greater for the parent advertiser or partner is required to make this request.", - // "flatPath": "v1/advertisers/{advertisersId}/creatives", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.creatives.create", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Output only. The unique ID of the advertiser the creative belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/creatives", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.creatives.delete": +} type AdvertisersCreativesDeleteCall struct { s *Service @@ -21552,12 +16826,12 @@ type AdvertisersCreativesDeleteCall struct { header_ http.Header } -// Delete: Deletes a creative. Returns error code `NOT_FOUND` if the -// creative does not exist. The creative should be archived first, i.e. -// set entity_status to `ENTITY_STATUS_ARCHIVED`, before it can be -// deleted. A "Standard" user role -// (//support.google.com/displayvideo/answer/2723011) or greater for the -// parent advertiser or partner is required to make this request. +// Delete: Deletes a creative. Returns error code `NOT_FOUND` if the creative +// does not exist. The creative should be archived first, i.e. set +// entity_status to `ENTITY_STATUS_ARCHIVED`, before it can be deleted. A +// "Standard" user role (//support.google.com/displayvideo/answer/2723011) or +// greater for the parent advertiser or partner is required to make this +// request. // // - advertiserId: The ID of the advertiser this creative belongs to. // - creativeId: The ID of the creative to be deleted. @@ -21569,23 +16843,21 @@ func (r *AdvertisersCreativesService) Delete(advertiserId int64, creativeId int6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCreativesDeleteCall) Fields(s ...googleapi.Field) *AdvertisersCreativesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCreativesDeleteCall) Context(ctx context.Context) *AdvertisersCreativesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCreativesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21594,12 +16866,7 @@ func (c *AdvertisersCreativesDeleteCall) Header() http.Header { } func (c *AdvertisersCreativesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -21614,16 +16881,14 @@ func (c *AdvertisersCreativesDeleteCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "creativeId": strconv.FormatInt(c.creativeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersCreativesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21654,45 +16919,7 @@ func (c *AdvertisersCreativesDeleteCall) Do(opts ...googleapi.CallOption) (*Empt return nil, err } return ret, nil - // { - // "description": "Deletes a creative. Returns error code `NOT_FOUND` if the creative does not exist. The creative should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, before it can be deleted. A [\"Standard\" user role](//support.google.com/displayvideo/answer/2723011) or greater for the parent advertiser or partner is required to make this request.", - // "flatPath": "v1/advertisers/{advertisersId}/creatives/{creativesId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.creatives.delete", - // "parameterOrder": [ - // "advertiserId", - // "creativeId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser this creative belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "creativeId": { - // "description": "The ID of the creative to be deleted.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/creatives/{+creativeId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.creatives.get": +} type AdvertisersCreativesGetCall struct { s *Service @@ -21716,33 +16943,29 @@ func (r *AdvertisersCreativesService) Get(advertiserId int64, creativeId int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCreativesGetCall) Fields(s ...googleapi.Field) *AdvertisersCreativesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersCreativesGetCall) IfNoneMatch(entityTag string) *AdvertisersCreativesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCreativesGetCall) Context(ctx context.Context) *AdvertisersCreativesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCreativesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21751,12 +16974,7 @@ func (c *AdvertisersCreativesGetCall) Header() http.Header { } func (c *AdvertisersCreativesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21774,16 +16992,14 @@ func (c *AdvertisersCreativesGetCall) doRequest(alt string) (*http.Response, err "advertiserId": strconv.FormatInt(c.advertiserId, 10), "creativeId": strconv.FormatInt(c.creativeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.get" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersCreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21814,45 +17030,7 @@ func (c *AdvertisersCreativesGetCall) Do(opts ...googleapi.CallOption) (*Creativ return nil, err } return ret, nil - // { - // "description": "Gets a creative.", - // "flatPath": "v1/advertisers/{advertisersId}/creatives/{creativesId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.creatives.get", - // "parameterOrder": [ - // "advertiserId", - // "creativeId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser this creative belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "creativeId": { - // "description": "Required. The ID of the creative to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/creatives/{+creativeId}", - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.creatives.list": +} type AdvertisersCreativesListCall struct { s *Service @@ -21863,10 +17041,9 @@ type AdvertisersCreativesListCall struct { header_ http.Header } -// List: Lists creatives in an advertiser. The order is defined by the -// order_by parameter. If a filter by entity_status is not specified, -// creatives with `ENTITY_STATUS_ARCHIVED` will not be included in the -// results. +// List: Lists creatives in an advertiser. The order is defined by the order_by +// parameter. If a filter by entity_status is not specified, creatives with +// `ENTITY_STATUS_ARCHIVED` will not be included in the results. // // - advertiserId: The ID of the advertiser to list creatives for. func (r *AdvertisersCreativesService) List(advertiserId int64) *AdvertisersCreativesListCall { @@ -21875,109 +17052,98 @@ func (r *AdvertisersCreativesService) List(advertiserId int64) *AdvertisersCreat return c } -// Filter sets the optional parameter "filter": Allows filtering by -// creative fields. Supported syntax: * Filter expressions are made up -// of one or more restrictions. * Restrictions can be combined by `AND` -// or `OR` logical operators. A sequence of restrictions implicitly uses -// `AND`. * A restriction has the form of `{field} {operator} {value}`. -// * The `lineItemIds` field must use the `HAS (:)` operator. * The -// `updateTime` field must use the `GREATER THAN OR EQUAL TO (>=)` or -// `LESS THAN OR EQUAL TO (<=)` operators. * All other fields must use -// the `EQUALS (=)` operator. * For `entityStatus`, `minDuration`, -// `maxDuration`, `updateTime`, and `dynamic` fields, there may be at -// most one restriction. Supported Fields: * `approvalStatus` * +// Filter sets the optional parameter "filter": Allows filtering by creative +// fields. Supported syntax: * Filter expressions are made up of one or more +// restrictions. * Restrictions can be combined by `AND` or `OR` logical +// operators. A sequence of restrictions implicitly uses `AND`. * A restriction +// has the form of `{field} {operator} {value}`. * The `lineItemIds` field must +// use the `HAS (:)` operator. * The `updateTime` field must use the `GREATER +// THAN OR EQUAL TO (>=)` or `LESS THAN OR EQUAL TO (<=)` operators. * All +// other fields must use the `EQUALS (=)` operator. * For `entityStatus`, +// `minDuration`, `maxDuration`, `updateTime`, and `dynamic` fields, there may +// be at most one restriction. Supported Fields: * `approvalStatus` * // `creativeId` * `creativeType` * `dimensions` (input in the form of -// `{width}x{height}`) * `dynamic` * `entityStatus` * -// `exchangeReviewStatus` (input in the form of -// `{exchange}-{reviewStatus}`) * `lineItemIds` * `maxDuration` (input -// in the form of `{duration}s`. Only seconds are supported) * -// `minDuration` (input in the form of `{duration}s`. Only seconds are -// supported) * `updateTime` (input in ISO 8601 format, or -// `YYYY-MM-DDTHH:MM:SSZ`) Notes: * For `updateTime`, a creative -// resource's field value reflects the last time that a creative has -// been updated, which includes updates made by the system (e.g. -// creative review updates). Examples: * All native creatives: -// `creativeType="CREATIVE_TYPE_NATIVE" * All active creatives with -// 300x400 or 50x100 dimensions: `entityStatus="ENTITY_STATUS_ACTIVE" -// AND (dimensions="300x400" OR dimensions="50x100")` * All dynamic -// creatives that are approved by AdX or AppNexus, with a minimum -// duration of 5 seconds and 200ms: `dynamic="true" AND -// minDuration="5.2s" AND -// (exchangeReviewStatus="EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROV -// ED" OR -// exchangeReviewStatus="EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED")` * -// All video creatives that are associated with line item ID 1 or 2: -// `creativeType="CREATIVE_TYPE_VIDEO" AND (lineItemIds:1 OR -// lineItemIds:2)` * Find creatives by multiple creative IDs: -// `creativeId=1 OR creativeId=2` * All creatives with an update time -// greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): -// `updateTime>="2020-11-04T18:54:47Z" The length of this field should -// be no more than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// `{width}x{height}`) * `dynamic` * `entityStatus` * `exchangeReviewStatus` +// (input in the form of `{exchange}-{reviewStatus}`) * `lineItemIds` * +// `maxDuration` (input in the form of `{duration}s`. Only seconds are +// supported) * `minDuration` (input in the form of `{duration}s`. Only seconds +// are supported) * `updateTime` (input in ISO 8601 format, or +// `YYYY-MM-DDTHH:MM:SSZ`) Notes: * For `updateTime`, a creative resource's +// field value reflects the last time that a creative has been updated, which +// includes updates made by the system (e.g. creative review updates). +// Examples: * All native creatives: `creativeType="CREATIVE_TYPE_NATIVE" * +// All active creatives with 300x400 or 50x100 dimensions: +// `entityStatus="ENTITY_STATUS_ACTIVE" AND (dimensions="300x400" OR +// dimensions="50x100")` * All dynamic creatives that are approved by AdX or +// AppNexus, with a minimum duration of 5 seconds and 200ms: `dynamic="true" +// AND minDuration="5.2s" AND +// (exchangeReviewStatus="EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED" OR +// exchangeReviewStatus="EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED")` * All +// video creatives that are associated with line item ID 1 or 2: +// `creativeType="CREATIVE_TYPE_VIDEO" AND (lineItemIds:1 OR lineItemIds:2)` * +// Find creatives by multiple creative IDs: `creativeId=1 OR creativeId=2` * +// All creatives with an update time greater than or equal to +// 2020-11-04T18:54:47Z (format of ISO 8601): +// `updateTime>="2020-11-04T18:54:47Z" The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersCreativesListCall) Filter(filter string) *AdvertisersCreativesListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `creativeId` (default) * -// `createTime` * `mediaDuration` * `dimensions` (sorts by width first, -// then by height) The default sorting order is ascending. To specify -// descending order for a field, a suffix "desc" should be added to the -// field name. Example: `createTime desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `creativeId` (default) * `createTime` * +// `mediaDuration` * `dimensions` (sorts by width first, then by height) The +// default sorting order is ascending. To specify descending order for a field, +// a suffix "desc" should be added to the field name. Example: `createTime +// desc`. func (c *AdvertisersCreativesListCall) OrderBy(orderBy string) *AdvertisersCreativesListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersCreativesListCall) PageSize(pageSize int64) *AdvertisersCreativesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListCreatives` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListCreatives` method. +// If not specified, the first page of results will be returned. func (c *AdvertisersCreativesListCall) PageToken(pageToken string) *AdvertisersCreativesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCreativesListCall) Fields(s ...googleapi.Field) *AdvertisersCreativesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersCreativesListCall) IfNoneMatch(entityTag string) *AdvertisersCreativesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCreativesListCall) Context(ctx context.Context) *AdvertisersCreativesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCreativesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21986,12 +17152,7 @@ func (c *AdvertisersCreativesListCall) Header() http.Header { } func (c *AdvertisersCreativesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22008,16 +17169,15 @@ func (c *AdvertisersCreativesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.list" call. -// Exactly one of *ListCreativesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListCreativesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListCreativesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreativesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22048,54 +17208,6 @@ func (c *AdvertisersCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCr return nil, err } return ret, nil - // { - // "description": "Lists creatives in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, creatives with `ENTITY_STATUS_ARCHIVED` will not be included in the results.", - // "flatPath": "v1/advertisers/{advertisersId}/creatives", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.creatives.list", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser to list creatives for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by creative fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The `lineItemIds` field must use the `HAS (:)` operator. * The `updateTime` field must use the `GREATER THAN OR EQUAL TO (\u003e=)` or `LESS THAN OR EQUAL TO (\u003c=)` operators. * All other fields must use the `EQUALS (=)` operator. * For `entityStatus`, `minDuration`, `maxDuration`, `updateTime`, and `dynamic` fields, there may be at most one restriction. Supported Fields: * `approvalStatus` * `creativeId` * `creativeType` * `dimensions` (input in the form of `{width}x{height}`) * `dynamic` * `entityStatus` * `exchangeReviewStatus` (input in the form of `{exchange}-{reviewStatus}`) * `lineItemIds` * `maxDuration` (input in the form of `{duration}s`. Only seconds are supported) * `minDuration` (input in the form of `{duration}s`. Only seconds are supported) * `updateTime` (input in ISO 8601 format, or `YYYY-MM-DDTHH:MM:SSZ`) Notes: * For `updateTime`, a creative resource's field value reflects the last time that a creative has been updated, which includes updates made by the system (e.g. creative review updates). Examples: * All native creatives: `creativeType=\"CREATIVE_TYPE_NATIVE\"` * All active creatives with 300x400 or 50x100 dimensions: `entityStatus=\"ENTITY_STATUS_ACTIVE\" AND (dimensions=\"300x400\" OR dimensions=\"50x100\")` * All dynamic creatives that are approved by AdX or AppNexus, with a minimum duration of 5 seconds and 200ms: `dynamic=\"true\" AND minDuration=\"5.2s\" AND (exchangeReviewStatus=\"EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED\" OR exchangeReviewStatus=\"EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED\")` * All video creatives that are associated with line item ID 1 or 2: `creativeType=\"CREATIVE_TYPE_VIDEO\" AND (lineItemIds:1 OR lineItemIds:2)` * Find creatives by multiple creative IDs: `creativeId=1 OR creativeId=2` * All creatives with an update time greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime\u003e=\"2020-11-04T18:54:47Z\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `creativeId` (default) * `createTime` * `mediaDuration` * `dimensions` (sorts by width first, then by height) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `createTime desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListCreatives` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/creatives", - // "response": { - // "$ref": "ListCreativesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -22103,7 +17215,7 @@ func (c *AdvertisersCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCr // The provided context supersedes any context provided to the Context method. func (c *AdvertisersCreativesListCall) Pages(ctx context.Context, f func(*ListCreativesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -22119,8 +17231,6 @@ func (c *AdvertisersCreativesListCall) Pages(ctx context.Context, f func(*ListCr } } -// method id "displayvideo.advertisers.creatives.patch": - type AdvertisersCreativesPatchCall struct { s *Service advertiserId int64 @@ -22133,13 +17243,13 @@ type AdvertisersCreativesPatchCall struct { // Patch: Updates an existing creative. Returns the updated creative if // successful. A "Standard" user role -// (//support.google.com/displayvideo/answer/2723011) or greater for the -// parent advertiser or partner is required to make this request. +// (//support.google.com/displayvideo/answer/2723011) or greater for the parent +// advertiser or partner is required to make this request. // -// - advertiserId: Output only. The unique ID of the advertiser the -// creative belongs to. -// - creativeId: Output only. The unique ID of the creative. Assigned by -// the system. +// - advertiserId: Output only. The unique ID of the advertiser the creative +// belongs to. +// - creativeId: Output only. The unique ID of the creative. Assigned by the +// system. func (r *AdvertisersCreativesService) Patch(advertiserId int64, creativeId int64, creative *Creative) *AdvertisersCreativesPatchCall { c := &AdvertisersCreativesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -22148,31 +17258,29 @@ func (r *AdvertisersCreativesService) Patch(advertiserId int64, creativeId int64 return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *AdvertisersCreativesPatchCall) UpdateMask(updateMask string) *AdvertisersCreativesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersCreativesPatchCall) Fields(s ...googleapi.Field) *AdvertisersCreativesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersCreativesPatchCall) Context(ctx context.Context) *AdvertisersCreativesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersCreativesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22181,18 +17289,12 @@ func (c *AdvertisersCreativesPatchCall) Header() http.Header { } func (c *AdvertisersCreativesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.creative) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/creatives/{+creativeId}") @@ -22206,16 +17308,14 @@ func (c *AdvertisersCreativesPatchCall) doRequest(alt string) (*http.Response, e "advertiserId": strconv.FormatInt(c.advertiserId, 10), "creativeId": strconv.FormatInt(c.creativeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.patch" call. -// Exactly one of *Creative or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Creative.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Creative.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersCreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creative, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22246,54 +17346,7 @@ func (c *AdvertisersCreativesPatchCall) Do(opts ...googleapi.CallOption) (*Creat return nil, err } return ret, nil - // { - // "description": "Updates an existing creative. Returns the updated creative if successful. A [\"Standard\" user role](//support.google.com/displayvideo/answer/2723011) or greater for the parent advertiser or partner is required to make this request.", - // "flatPath": "v1/advertisers/{advertisersId}/creatives/{creativesId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.advertisers.creatives.patch", - // "parameterOrder": [ - // "advertiserId", - // "creativeId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Output only. The unique ID of the advertiser the creative belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "creativeId": { - // "description": "Output only. The unique ID of the creative. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/creatives/{+creativeId}", - // "request": { - // "$ref": "Creative" - // }, - // "response": { - // "$ref": "Creative" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.insertionOrders.bulkListInsertionOrderAssignedTargetingOptions": +} type AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall struct { s *Service @@ -22305,13 +17358,12 @@ type AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCal header_ http.Header } -// BulkListInsertionOrderAssignedTargetingOptions: Lists assigned -// targeting options of an insertion order across targeting types. +// BulkListInsertionOrderAssignedTargetingOptions: Lists assigned targeting +// options of an insertion order across targeting types. // -// - advertiserId: The ID of the advertiser the insertion order belongs -// to. -// - insertionOrderId: The ID of the insertion order to list assigned -// targeting options for. +// - advertiserId: The ID of the advertiser the insertion order belongs to. +// - insertionOrderId: The ID of the insertion order to list assigned targeting +// options for. func (r *AdvertisersInsertionOrdersService) BulkListInsertionOrderAssignedTargetingOptions(advertiserId int64, insertionOrderId int64) *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall { c := &AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -22319,85 +17371,78 @@ func (r *AdvertisersInsertionOrdersService) BulkListInsertionOrderAssignedTarget return c } -// Filter sets the optional parameter "filter": Allows filtering by -// assigned targeting option fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the logical operator `OR`. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=)` operator. Supported fields: * `targetingType` * -// `inheritance` Examples: * `AssignedTargetingOption` resources of -// targeting type `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` or +// Filter sets the optional parameter "filter": Allows filtering by assigned +// targeting option fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the logical +// operator `OR`. * A restriction has the form of `{field} {operator} {value}`. +// * All fields must use the `EQUALS (=)` operator. Supported fields: * +// `targetingType` * `inheritance` Examples: * `AssignedTargetingOption` +// resources of targeting type `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` or // `TARGETING_TYPE_CHANNEL`: // `targetingType="TARGETING_TYPE_PROXIMITY_LOCATION_LIST" OR // targetingType="TARGETING_TYPE_CHANNEL" * `AssignedTargetingOption` // resources with inheritance status of `NOT_INHERITED` or // `INHERITED_FROM_PARTNER`: `inheritance="NOT_INHERITED" OR -// inheritance="INHERITED_FROM_PARTNER" The length of this field should -// be no more than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// inheritance="INHERITED_FROM_PARTNER" The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) Filter(filter string) *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `targetingType` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix "desc" should be added to the field name. Example: -// `targetingType desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `targetingType` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix "desc" +// should be added to the field name. Example: `targetingType desc`. func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) OrderBy(orderBy string) *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// The size must be an integer between `1` and `5000`. If unspecified, -// the default is `5000`. Returns error code `INVALID_ARGUMENT` if an -// invalid value is specified. +// PageSize sets the optional parameter "pageSize": Requested page size. The +// size must be an integer between `1` and `5000`. If unspecified, the default +// is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is +// specified. func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) PageSize(pageSize int64) *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token that lets -// the client fetch the next page of results. Typically, this is the -// value of next_page_token returned from the previous call to -// `BulkListInsertionOrderAssignedTargetingOptions` method. If not -// specified, the first page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token that lets the +// client fetch the next page of results. Typically, this is the value of +// next_page_token returned from the previous call to +// `BulkListInsertionOrderAssignedTargetingOptions` method. If not specified, +// the first page of results will be returned. func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) PageToken(pageToken string) *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) Fields(s ...googleapi.Field) *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) IfNoneMatch(entityTag string) *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) Context(ctx context.Context) *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22406,12 +17451,7 @@ func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOption } func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22429,19 +17469,17 @@ func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOption "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.bulkListInsertionOrderAssignedTargetingOptions" call. -// Exactly one of -// *BulkListInsertionOrderAssignedTargetingOptionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *BulkListInsertionOrderAssignedTargetingOptionsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkListInsertionOrderAssignedTargetingOptionsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) Do(opts ...googleapi.CallOption) (*BulkListInsertionOrderAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22472,63 +17510,6 @@ func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOption return nil, err } return ret, nil - // { - // "description": "Lists assigned targeting options of an insertion order across targeting types.", - // "flatPath": "v1/advertisers/{advertisersId}/insertionOrders/{insertionOrdersId}:bulkListInsertionOrderAssignedTargetingOptions", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.insertionOrders.bulkListInsertionOrderAssignedTargetingOptions", - // "parameterOrder": [ - // "advertiserId", - // "insertionOrderId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the insertion order belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by assigned targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the logical operator `OR`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `targetingType` * `inheritance` Examples: * `AssignedTargetingOption` resources of targeting type `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` or `TARGETING_TYPE_CHANNEL`: `targetingType=\"TARGETING_TYPE_PROXIMITY_LOCATION_LIST\" OR targetingType=\"TARGETING_TYPE_CHANNEL\"` * `AssignedTargetingOption` resources with inheritance status of `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: `inheritance=\"NOT_INHERITED\" OR inheritance=\"INHERITED_FROM_PARTNER\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "insertionOrderId": { - // "description": "Required. The ID of the insertion order to list assigned targeting options for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `targetingType` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `targetingType desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token that lets the client fetch the next page of results. Typically, this is the value of next_page_token returned from the previous call to `BulkListInsertionOrderAssignedTargetingOptions` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}:bulkListInsertionOrderAssignedTargetingOptions", - // "response": { - // "$ref": "BulkListInsertionOrderAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -22536,7 +17517,7 @@ func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOption // The provided context supersedes any context provided to the Context method. func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOptionsCall) Pages(ctx context.Context, f func(*BulkListInsertionOrderAssignedTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -22552,8 +17533,6 @@ func (c *AdvertisersInsertionOrdersBulkListInsertionOrderAssignedTargetingOption } } -// method id "displayvideo.advertisers.insertionOrders.create": - type AdvertisersInsertionOrdersCreateCall struct { s *Service advertiserId int64 @@ -22563,11 +17542,11 @@ type AdvertisersInsertionOrdersCreateCall struct { header_ http.Header } -// Create: Creates a new insertion order. Returns the newly created -// insertion order if successful. +// Create: Creates a new insertion order. Returns the newly created insertion +// order if successful. // -// - advertiserId: Output only. The unique ID of the advertiser the -// insertion order belongs to. +// - advertiserId: Output only. The unique ID of the advertiser the insertion +// order belongs to. func (r *AdvertisersInsertionOrdersService) Create(advertiserId int64, insertionorder *InsertionOrder) *AdvertisersInsertionOrdersCreateCall { c := &AdvertisersInsertionOrdersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -22576,23 +17555,21 @@ func (r *AdvertisersInsertionOrdersService) Create(advertiserId int64, insertion } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertionOrdersCreateCall) Fields(s ...googleapi.Field) *AdvertisersInsertionOrdersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertionOrdersCreateCall) Context(ctx context.Context) *AdvertisersInsertionOrdersCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertionOrdersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22601,18 +17578,12 @@ func (c *AdvertisersInsertionOrdersCreateCall) Header() http.Header { } func (c *AdvertisersInsertionOrdersCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.insertionorder) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/insertionOrders") @@ -22625,16 +17596,14 @@ func (c *AdvertisersInsertionOrdersCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.create" call. -// Exactly one of *InsertionOrder or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InsertionOrder.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InsertionOrder.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersInsertionOrdersCreateCall) Do(opts ...googleapi.CallOption) (*InsertionOrder, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22665,39 +17634,7 @@ func (c *AdvertisersInsertionOrdersCreateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates a new insertion order. Returns the newly created insertion order if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/insertionOrders", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.insertionOrders.create", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Output only. The unique ID of the advertiser the insertion order belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/insertionOrders", - // "request": { - // "$ref": "InsertionOrder" - // }, - // "response": { - // "$ref": "InsertionOrder" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.insertionOrders.delete": +} type AdvertisersInsertionOrdersDeleteCall struct { s *Service @@ -22708,14 +17645,13 @@ type AdvertisersInsertionOrdersDeleteCall struct { header_ http.Header } -// Delete: Deletes an insertion order. Returns error code `NOT_FOUND` if -// the insertion order does not exist. The insertion order should be -// archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, -// to be able to delete it. +// Delete: Deletes an insertion order. Returns error code `NOT_FOUND` if the +// insertion order does not exist. The insertion order should be archived +// first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to +// delete it. // -// - advertiserId: The ID of the advertiser this insertion order belongs -// to. -// - insertionOrderId: The ID of the insertion order to delete. +// - advertiserId: The ID of the advertiser this insertion order belongs to. +// - insertionOrderId: The ID of the insertion order to delete. func (r *AdvertisersInsertionOrdersService) Delete(advertiserId int64, insertionOrderId int64) *AdvertisersInsertionOrdersDeleteCall { c := &AdvertisersInsertionOrdersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -22724,23 +17660,21 @@ func (r *AdvertisersInsertionOrdersService) Delete(advertiserId int64, insertion } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertionOrdersDeleteCall) Fields(s ...googleapi.Field) *AdvertisersInsertionOrdersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertionOrdersDeleteCall) Context(ctx context.Context) *AdvertisersInsertionOrdersDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertionOrdersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22749,12 +17683,7 @@ func (c *AdvertisersInsertionOrdersDeleteCall) Header() http.Header { } func (c *AdvertisersInsertionOrdersDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -22769,16 +17698,14 @@ func (c *AdvertisersInsertionOrdersDeleteCall) doRequest(alt string) (*http.Resp "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersInsertionOrdersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22809,45 +17736,7 @@ func (c *AdvertisersInsertionOrdersDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Deletes an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist. The insertion order should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it.", - // "flatPath": "v1/advertisers/{advertisersId}/insertionOrders/{insertionOrdersId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.insertionOrders.delete", - // "parameterOrder": [ - // "advertiserId", - // "insertionOrderId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser this insertion order belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "insertionOrderId": { - // "description": "The ID of the insertion order to delete.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.insertionOrders.get": +} type AdvertisersInsertionOrdersGetCall struct { s *Service @@ -22862,9 +17751,8 @@ type AdvertisersInsertionOrdersGetCall struct { // Get: Gets an insertion order. Returns error code `NOT_FOUND` if the // insertion order does not exist. // -// - advertiserId: The ID of the advertiser this insertion order belongs -// to. -// - insertionOrderId: The ID of the insertion order to fetch. +// - advertiserId: The ID of the advertiser this insertion order belongs to. +// - insertionOrderId: The ID of the insertion order to fetch. func (r *AdvertisersInsertionOrdersService) Get(advertiserId int64, insertionOrderId int64) *AdvertisersInsertionOrdersGetCall { c := &AdvertisersInsertionOrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -22873,33 +17761,29 @@ func (r *AdvertisersInsertionOrdersService) Get(advertiserId int64, insertionOrd } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertionOrdersGetCall) Fields(s ...googleapi.Field) *AdvertisersInsertionOrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersInsertionOrdersGetCall) IfNoneMatch(entityTag string) *AdvertisersInsertionOrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertionOrdersGetCall) Context(ctx context.Context) *AdvertisersInsertionOrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertionOrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22908,12 +17792,7 @@ func (c *AdvertisersInsertionOrdersGetCall) Header() http.Header { } func (c *AdvertisersInsertionOrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22931,16 +17810,14 @@ func (c *AdvertisersInsertionOrdersGetCall) doRequest(alt string) (*http.Respons "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.get" call. -// Exactly one of *InsertionOrder or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InsertionOrder.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InsertionOrder.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersInsertionOrdersGetCall) Do(opts ...googleapi.CallOption) (*InsertionOrder, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22971,45 +17848,7 @@ func (c *AdvertisersInsertionOrdersGetCall) Do(opts ...googleapi.CallOption) (*I return nil, err } return ret, nil - // { - // "description": "Gets an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist.", - // "flatPath": "v1/advertisers/{advertisersId}/insertionOrders/{insertionOrdersId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.insertionOrders.get", - // "parameterOrder": [ - // "advertiserId", - // "insertionOrderId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser this insertion order belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "insertionOrderId": { - // "description": "Required. The ID of the insertion order to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}", - // "response": { - // "$ref": "InsertionOrder" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.insertionOrders.list": +} type AdvertisersInsertionOrdersListCall struct { s *Service @@ -23020,103 +17859,92 @@ type AdvertisersInsertionOrdersListCall struct { header_ http.Header } -// List: Lists insertion orders in an advertiser. The order is defined -// by the order_by parameter. If a filter by entity_status is not -// specified, insertion orders with `ENTITY_STATUS_ARCHIVED` will not be -// included in the results. +// List: Lists insertion orders in an advertiser. The order is defined by the +// order_by parameter. If a filter by entity_status is not specified, insertion +// orders with `ENTITY_STATUS_ARCHIVED` will not be included in the results. // -// - advertiserId: The ID of the advertiser to list insertion orders -// for. +// - advertiserId: The ID of the advertiser to list insertion orders for. func (r *AdvertisersInsertionOrdersService) List(advertiserId int64) *AdvertisersInsertionOrdersListCall { c := &AdvertisersInsertionOrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId return c } -// Filter sets the optional parameter "filter": Allows filtering by -// insertion order fields. Supported syntax: * Filter expressions are -// made up of one or more restrictions. * Restrictions can be combined -// by `AND` or `OR` logical operators. A sequence of restrictions -// implicitly uses `AND`. * A restriction has the form of `{field} -// {operator} {value}`. * The `updateTime` field must use the `GREATER -// THAN OR EQUAL TO (>=)` or `LESS THAN OR EQUAL TO (<=)` operators. * -// All other fields must use the `EQUALS (=)` operator. Supported -// fields: * `campaignId` * `displayName` * `entityStatus` * -// `updateTime` (input in ISO 8601 format, or `YYYY-MM-DDTHH:MM:SSZ`) -// Examples: * All insertion orders under a campaign: -// `campaignId="1234" * All `ENTITY_STATUS_ACTIVE` or -// `ENTITY_STATUS_PAUSED` insertion orders under an advertiser: -// `(entityStatus="ENTITY_STATUS_ACTIVE" OR -// entityStatus="ENTITY_STATUS_PAUSED")` * All insertion orders with an -// update time less than or equal to 2020-11-04T18:54:47Z (format of ISO -// 8601): `updateTime<="2020-11-04T18:54:47Z" * All insertion orders -// with an update time greater than or equal to 2020-11-04T18:54:47Z -// (format of ISO 8601): `updateTime>="2020-11-04T18:54:47Z" The length -// of this field should be no more than 500 characters. Reference our -// filter `LIST` requests (/display-video/api/guides/how-tos/filters) -// guide for more information. +// Filter sets the optional parameter "filter": Allows filtering by insertion +// order fields. Supported syntax: * Filter expressions are made up of one or +// more restrictions. * Restrictions can be combined by `AND` or `OR` logical +// operators. A sequence of restrictions implicitly uses `AND`. * A restriction +// has the form of `{field} {operator} {value}`. * The `updateTime` field must +// use the `GREATER THAN OR EQUAL TO (>=)` or `LESS THAN OR EQUAL TO (<=)` +// operators. * All other fields must use the `EQUALS (=)` operator. Supported +// fields: * `campaignId` * `displayName` * `entityStatus` * `updateTime` +// (input in ISO 8601 format, or `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All +// insertion orders under a campaign: `campaignId="1234" * All +// `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` insertion orders under an +// advertiser: `(entityStatus="ENTITY_STATUS_ACTIVE" OR +// entityStatus="ENTITY_STATUS_PAUSED")` * All insertion orders with an update +// time less than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): +// `updateTime<="2020-11-04T18:54:47Z" * All insertion orders with an update +// time greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): +// `updateTime>="2020-11-04T18:54:47Z" The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersInsertionOrdersListCall) Filter(filter string) *AdvertisersInsertionOrdersListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * "displayName" (default) * -// "entityStatus" * "updateTime" The default sorting order is ascending. -// To specify descending order for a field, a suffix "desc" should be -// added to the field name. Example: `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * "displayName" (default) * "entityStatus" * +// "updateTime" The default sorting order is ascending. To specify descending +// order for a field, a suffix "desc" should be added to the field name. +// Example: `displayName desc`. func (c *AdvertisersInsertionOrdersListCall) OrderBy(orderBy string) *AdvertisersInsertionOrdersListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `100`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `100`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersInsertionOrdersListCall) PageSize(pageSize int64) *AdvertisersInsertionOrdersListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListInsertionOrders` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListInsertionOrders` +// method. If not specified, the first page of results will be returned. func (c *AdvertisersInsertionOrdersListCall) PageToken(pageToken string) *AdvertisersInsertionOrdersListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertionOrdersListCall) Fields(s ...googleapi.Field) *AdvertisersInsertionOrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersInsertionOrdersListCall) IfNoneMatch(entityTag string) *AdvertisersInsertionOrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertionOrdersListCall) Context(ctx context.Context) *AdvertisersInsertionOrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertionOrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23125,12 +17953,7 @@ func (c *AdvertisersInsertionOrdersListCall) Header() http.Header { } func (c *AdvertisersInsertionOrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23147,16 +17970,15 @@ func (c *AdvertisersInsertionOrdersListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.list" call. -// Exactly one of *ListInsertionOrdersResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ListInsertionOrdersResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ListInsertionOrdersResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersInsertionOrdersListCall) Do(opts ...googleapi.CallOption) (*ListInsertionOrdersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23187,54 +18009,6 @@ func (c *AdvertisersInsertionOrdersListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Lists insertion orders in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, insertion orders with `ENTITY_STATUS_ARCHIVED` will not be included in the results.", - // "flatPath": "v1/advertisers/{advertisersId}/insertionOrders", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.insertionOrders.list", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser to list insertion orders for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by insertion order fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The `updateTime` field must use the `GREATER THAN OR EQUAL TO (\u003e=)` or `LESS THAN OR EQUAL TO (\u003c=)` operators. * All other fields must use the `EQUALS (=)` operator. Supported fields: * `campaignId` * `displayName` * `entityStatus` * `updateTime` (input in ISO 8601 format, or `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All insertion orders under a campaign: `campaignId=\"1234\"` * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` insertion orders under an advertiser: `(entityStatus=\"ENTITY_STATUS_ACTIVE\" OR entityStatus=\"ENTITY_STATUS_PAUSED\")` * All insertion orders with an update time less than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime\u003c=\"2020-11-04T18:54:47Z\"` * All insertion orders with an update time greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime\u003e=\"2020-11-04T18:54:47Z\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * \"displayName\" (default) * \"entityStatus\" * \"updateTime\" The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `100`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListInsertionOrders` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/insertionOrders", - // "response": { - // "$ref": "ListInsertionOrdersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -23242,7 +18016,7 @@ func (c *AdvertisersInsertionOrdersListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *AdvertisersInsertionOrdersListCall) Pages(ctx context.Context, f func(*ListInsertionOrdersResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -23258,8 +18032,6 @@ func (c *AdvertisersInsertionOrdersListCall) Pages(ctx context.Context, f func(* } } -// method id "displayvideo.advertisers.insertionOrders.patch": - type AdvertisersInsertionOrdersPatchCall struct { s *Service advertiserId int64 @@ -23270,13 +18042,13 @@ type AdvertisersInsertionOrdersPatchCall struct { header_ http.Header } -// Patch: Updates an existing insertion order. Returns the updated -// insertion order if successful. +// Patch: Updates an existing insertion order. Returns the updated insertion +// order if successful. // -// - advertiserId: Output only. The unique ID of the advertiser the -// insertion order belongs to. -// - insertionOrderId: Output only. The unique ID of the insertion -// order. Assigned by the system. +// - advertiserId: Output only. The unique ID of the advertiser the insertion +// order belongs to. +// - insertionOrderId: Output only. The unique ID of the insertion order. +// Assigned by the system. func (r *AdvertisersInsertionOrdersService) Patch(advertiserId int64, insertionOrderId int64, insertionorder *InsertionOrder) *AdvertisersInsertionOrdersPatchCall { c := &AdvertisersInsertionOrdersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -23285,31 +18057,29 @@ func (r *AdvertisersInsertionOrdersService) Patch(advertiserId int64, insertionO return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *AdvertisersInsertionOrdersPatchCall) UpdateMask(updateMask string) *AdvertisersInsertionOrdersPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertionOrdersPatchCall) Fields(s ...googleapi.Field) *AdvertisersInsertionOrdersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertionOrdersPatchCall) Context(ctx context.Context) *AdvertisersInsertionOrdersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertionOrdersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23318,18 +18088,12 @@ func (c *AdvertisersInsertionOrdersPatchCall) Header() http.Header { } func (c *AdvertisersInsertionOrdersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.insertionorder) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}") @@ -23343,16 +18107,14 @@ func (c *AdvertisersInsertionOrdersPatchCall) doRequest(alt string) (*http.Respo "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.patch" call. -// Exactly one of *InsertionOrder or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InsertionOrder.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InsertionOrder.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersInsertionOrdersPatchCall) Do(opts ...googleapi.CallOption) (*InsertionOrder, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23383,54 +18145,7 @@ func (c *AdvertisersInsertionOrdersPatchCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Updates an existing insertion order. Returns the updated insertion order if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/insertionOrders/{insertionOrdersId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.advertisers.insertionOrders.patch", - // "parameterOrder": [ - // "advertiserId", - // "insertionOrderId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Output only. The unique ID of the advertiser the insertion order belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "insertionOrderId": { - // "description": "Output only. The unique ID of the insertion order. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}", - // "request": { - // "$ref": "InsertionOrder" - // }, - // "response": { - // "$ref": "InsertionOrder" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.get": +} type AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall struct { s *Service @@ -23446,46 +18161,38 @@ type AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall str // Get: Gets a single targeting option assigned to an insertion order. // -// - advertiserId: The ID of the advertiser the insertion order belongs -// to. -// - assignedTargetingOptionId: An identifier unique to the targeting -// type in this insertion order that identifies the assigned targeting -// option being requested. -// - insertionOrderId: The ID of the insertion order the assigned -// targeting option belongs to. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types include: * -// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * -// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * -// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * -// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * -// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * -// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * -// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * -// `TARGETING_TYPE_CONTENT_GENRE` * +// - advertiserId: The ID of the advertiser the insertion order belongs to. +// - assignedTargetingOptionId: An identifier unique to the targeting type in +// this insertion order that identifies the assigned targeting option being +// requested. +// - insertionOrderId: The ID of the insertion order the assigned targeting +// option belongs to. +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * +// `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * +// `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * +// `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * +// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * +// `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * -// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * -// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` -// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * +// `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * -// `TARGETING_TYPE_INVENTORY_SOURCE` * -// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` -// - `TARGETING_TYPE_LANGUAGE` * -// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * +// `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * // `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_ON_SCREEN_POSITION` * -// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * // `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * // `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * // `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * -// `TARGETING_TYPE_SUB_EXCHANGE` * -// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * -// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * +// `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * // `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsService) Get(advertiserId int64, insertionOrderId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall { c := &AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -23497,33 +18204,29 @@ func (r *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsService } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall) Fields(s ...googleapi.Field) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall) IfNoneMatch(entityTag string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall) Context(ctx context.Context) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23532,12 +18235,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall } func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23557,16 +18255,15 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.get" call. -// Exactly one of *AssignedTargetingOption or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AssignedTargetingOption.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...googleapi.CallOption) (*AssignedTargetingOption, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23597,157 +18294,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall return nil, err } return ret, nil - // { - // "description": "Gets a single targeting option assigned to an insertion order.", - // "flatPath": "v1/advertisers/{advertisersId}/insertionOrders/{insertionOrdersId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.get", - // "parameterOrder": [ - // "advertiserId", - // "insertionOrderId", - // "targetingType", - // "assignedTargetingOptionId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the insertion order belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "assignedTargetingOptionId": { - // "description": "Required. An identifier unique to the targeting type in this insertion order that identifies the assigned targeting option being requested.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "insertionOrderId": { - // "description": "Required. The ID of the insertion order the assigned targeting option belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}", - // "response": { - // "$ref": "AssignedTargetingOption" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.list": +} type AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall struct { s *Service @@ -23762,43 +18309,35 @@ type AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall st // List: Lists the targeting options assigned to an insertion order. // -// - advertiserId: The ID of the advertiser the insertion order belongs -// to. -// - insertionOrderId: The ID of the insertion order to list assigned -// targeting options for. -// - targetingType: Identifies the type of assigned targeting options to -// list. Supported targeting types include: * -// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * -// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * -// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * -// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * -// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * -// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * -// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * -// `TARGETING_TYPE_CONTENT_GENRE` * +// - advertiserId: The ID of the advertiser the insertion order belongs to. +// - insertionOrderId: The ID of the insertion order to list assigned targeting +// options for. +// - targetingType: Identifies the type of assigned targeting options to list. +// Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * +// `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * +// `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * +// `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * +// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * +// `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * -// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * -// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` -// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * +// `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * -// `TARGETING_TYPE_INVENTORY_SOURCE` * -// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` -// - `TARGETING_TYPE_LANGUAGE` * -// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * +// `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * // `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_ON_SCREEN_POSITION` * -// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * // `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * // `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * // `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * -// `TARGETING_TYPE_SUB_EXCHANGE` * -// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * -// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * +// `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * // `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsService) List(advertiserId int64, insertionOrderId int64, targetingType string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall { c := &AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -23808,84 +18347,76 @@ func (r *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsService return c } -// Filter sets the optional parameter "filter": Allows filtering by -// assigned targeting option fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the logical operator `OR`. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=)` operator. Supported fields: * +// Filter sets the optional parameter "filter": Allows filtering by assigned +// targeting option fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the logical +// operator `OR`. * A restriction has the form of `{field} {operator} {value}`. +// * All fields must use the `EQUALS (=)` operator. Supported fields: * // `assignedTargetingOptionId` * `inheritance` Examples: * // `AssignedTargetingOption` resources with ID 1 or 2: // `assignedTargetingOptionId="1" OR assignedTargetingOptionId="2" * // `AssignedTargetingOption` resources with inheritance status of -// `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: -// `inheritance="NOT_INHERITED" OR inheritance="INHERITED_FROM_PARTNER" -// The length of this field should be no more than 500 characters. -// Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: `inheritance="NOT_INHERITED" OR +// inheritance="INHERITED_FROM_PARTNER" The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) Filter(filter string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `assignedTargetingOptionId` -// (default) The default sorting order is ascending. To specify -// descending order for a field, a suffix "desc" should be added to the -// field name. Example: `assignedTargetingOptionId desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `assignedTargetingOptionId` (default) The +// default sorting order is ascending. To specify descending order for a field, +// a suffix "desc" should be added to the field name. Example: +// `assignedTargetingOptionId desc`. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) OrderBy(orderBy string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `5000`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `5000`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) PageSize(pageSize int64) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListInsertionOrderAssignedTargetingOptions` method. If not -// specified, the first page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to +// `ListInsertionOrderAssignedTargetingOptions` method. If not specified, the +// first page of results will be returned. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) PageToken(pageToken string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) Fields(s ...googleapi.Field) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) IfNoneMatch(entityTag string) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) Context(ctx context.Context) *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23894,12 +18425,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCal } func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23918,18 +18444,15 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCal "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.list" call. -// Exactly one of *ListInsertionOrderAssignedTargetingOptionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *ListInsertionOrderAssignedTargetingOptionsResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListInsertionOrderAssignedTargetingOptionsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...googleapi.CallOption) (*ListInsertionOrderAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23960,167 +18483,6 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCal return nil, err } return ret, nil - // { - // "description": "Lists the targeting options assigned to an insertion order.", - // "flatPath": "v1/advertisers/{advertisersId}/insertionOrders/{insertionOrdersId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.list", - // "parameterOrder": [ - // "advertiserId", - // "insertionOrderId", - // "targetingType" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the insertion order belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by assigned targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the logical operator `OR`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `assignedTargetingOptionId` * `inheritance` Examples: * `AssignedTargetingOption` resources with ID 1 or 2: `assignedTargetingOptionId=\"1\" OR assignedTargetingOptionId=\"2\"` * `AssignedTargetingOption` resources with inheritance status of `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: `inheritance=\"NOT_INHERITED\" OR inheritance=\"INHERITED_FROM_PARTNER\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "insertionOrderId": { - // "description": "Required. The ID of the insertion order to list assigned targeting options for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `assignedTargetingOptionId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `assignedTargetingOptionId desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `5000`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListInsertionOrderAssignedTargetingOptions` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions", - // "response": { - // "$ref": "ListInsertionOrderAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -24128,7 +18490,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCal // The provided context supersedes any context provided to the Context method. func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCall) Pages(ctx context.Context, f func(*ListInsertionOrderAssignedTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -24144,8 +18506,6 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCal } } -// method id "displayvideo.advertisers.invoices.list": - type AdvertisersInvoicesListCall struct { s *Service advertiserId int64 @@ -24155,9 +18515,9 @@ type AdvertisersInvoicesListCall struct { header_ http.Header } -// List: Lists invoices posted for an advertiser in a given month. -// Invoices generated by billing profiles with a "Partner" invoice level -// are not retrievable through this method. +// List: Lists invoices posted for an advertiser in a given month. Invoices +// generated by billing profiles with a "Partner" invoice level are not +// retrievable through this method. // // - advertiserId: The ID of the advertiser to list invoices for. func (r *AdvertisersInvoicesService) List(advertiserId int64) *AdvertisersInvoicesListCall { @@ -24166,18 +18526,17 @@ func (r *AdvertisersInvoicesService) List(advertiserId int64) *AdvertisersInvoic return c } -// IssueMonth sets the optional parameter "issueMonth": The month to -// list the invoices for. If not set, the request will retrieve invoices -// for the previous month. Must be in the format YYYYMM. +// IssueMonth sets the optional parameter "issueMonth": The month to list the +// invoices for. If not set, the request will retrieve invoices for the +// previous month. Must be in the format YYYYMM. func (c *AdvertisersInvoicesListCall) IssueMonth(issueMonth string) *AdvertisersInvoicesListCall { c.urlParams_.Set("issueMonth", issueMonth) return c } -// LoiSapinInvoiceType sets the optional parameter -// "loiSapinInvoiceType": Select type of invoice to retrieve for Loi -// Sapin advertisers. Only applicable to Loi Sapin advertisers. Will be -// ignored otherwise. +// LoiSapinInvoiceType sets the optional parameter "loiSapinInvoiceType": +// Select type of invoice to retrieve for Loi Sapin advertisers. Only +// applicable to Loi Sapin advertisers. Will be ignored otherwise. // // Possible values: // @@ -24189,53 +18548,47 @@ func (c *AdvertisersInvoicesListCall) LoiSapinInvoiceType(loiSapinInvoiceType st return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersInvoicesListCall) PageSize(pageSize int64) *AdvertisersInvoicesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListInvoices` method. If not specified, the first page of results -// will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListInvoices` method. If +// not specified, the first page of results will be returned. func (c *AdvertisersInvoicesListCall) PageToken(pageToken string) *AdvertisersInvoicesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInvoicesListCall) Fields(s ...googleapi.Field) *AdvertisersInvoicesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersInvoicesListCall) IfNoneMatch(entityTag string) *AdvertisersInvoicesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInvoicesListCall) Context(ctx context.Context) *AdvertisersInvoicesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInvoicesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24244,12 +18597,7 @@ func (c *AdvertisersInvoicesListCall) Header() http.Header { } func (c *AdvertisersInvoicesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24266,16 +18614,15 @@ func (c *AdvertisersInvoicesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.invoices.list" call. -// Exactly one of *ListInvoicesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListInvoicesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListInvoicesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersInvoicesListCall) Do(opts ...googleapi.CallOption) (*ListInvoicesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24306,65 +18653,6 @@ func (c *AdvertisersInvoicesListCall) Do(opts ...googleapi.CallOption) (*ListInv return nil, err } return ret, nil - // { - // "description": "Lists invoices posted for an advertiser in a given month. Invoices generated by billing profiles with a \"Partner\" invoice level are not retrievable through this method.", - // "flatPath": "v1/advertisers/{advertisersId}/invoices", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.invoices.list", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser to list invoices for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "issueMonth": { - // "description": "The month to list the invoices for. If not set, the request will retrieve invoices for the previous month. Must be in the format YYYYMM.", - // "location": "query", - // "type": "string" - // }, - // "loiSapinInvoiceType": { - // "description": "Select type of invoice to retrieve for Loi Sapin advertisers. Only applicable to Loi Sapin advertisers. Will be ignored otherwise.", - // "enum": [ - // "LOI_SAPIN_INVOICE_TYPE_UNSPECIFIED", - // "LOI_SAPIN_INVOICE_TYPE_MEDIA", - // "LOI_SAPIN_INVOICE_TYPE_PLATFORM" - // ], - // "enumDescriptions": [ - // "Value is not specified.", - // "Invoices with Media cost.", - // "Invoices with Platform fee." - // ], - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListInvoices` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/invoices", - // "response": { - // "$ref": "ListInvoicesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/display-video-mediaplanning" - // ] - // } - } // Pages invokes f for each page of results. @@ -24372,7 +18660,7 @@ func (c *AdvertisersInvoicesListCall) Do(opts ...googleapi.CallOption) (*ListInv // The provided context supersedes any context provided to the Context method. func (c *AdvertisersInvoicesListCall) Pages(ctx context.Context, f func(*ListInvoicesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -24388,8 +18676,6 @@ func (c *AdvertisersInvoicesListCall) Pages(ctx context.Context, f func(*ListInv } } -// method id "displayvideo.advertisers.invoices.lookupInvoiceCurrency": - type AdvertisersInvoicesLookupInvoiceCurrencyCall struct { s *Service advertiserId int64 @@ -24399,8 +18685,8 @@ type AdvertisersInvoicesLookupInvoiceCurrencyCall struct { header_ http.Header } -// LookupInvoiceCurrency: Retrieves the invoice currency used by an -// advertiser in a given month. +// LookupInvoiceCurrency: Retrieves the invoice currency used by an advertiser +// in a given month. // // - advertiserId: The ID of the advertiser to lookup currency for. func (r *AdvertisersInvoicesService) LookupInvoiceCurrency(advertiserId int64) *AdvertisersInvoicesLookupInvoiceCurrencyCall { @@ -24409,43 +18695,38 @@ func (r *AdvertisersInvoicesService) LookupInvoiceCurrency(advertiserId int64) * return c } -// InvoiceMonth sets the optional parameter "invoiceMonth": Month for -// which the currency is needed. If not set, the request will return -// existing currency settings for the advertiser. Must be in the format -// YYYYMM. +// InvoiceMonth sets the optional parameter "invoiceMonth": Month for which the +// currency is needed. If not set, the request will return existing currency +// settings for the advertiser. Must be in the format YYYYMM. func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) InvoiceMonth(invoiceMonth string) *AdvertisersInvoicesLookupInvoiceCurrencyCall { c.urlParams_.Set("invoiceMonth", invoiceMonth) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) Fields(s ...googleapi.Field) *AdvertisersInvoicesLookupInvoiceCurrencyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) IfNoneMatch(entityTag string) *AdvertisersInvoicesLookupInvoiceCurrencyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) Context(ctx context.Context) *AdvertisersInvoicesLookupInvoiceCurrencyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24454,12 +18735,7 @@ func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) Header() http.Header { } func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24476,16 +18752,15 @@ func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.invoices.lookupInvoiceCurrency" call. -// Exactly one of *LookupInvoiceCurrencyResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *LookupInvoiceCurrencyResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LookupInvoiceCurrencyResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) Do(opts ...googleapi.CallOption) (*LookupInvoiceCurrencyResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24516,42 +18791,7 @@ func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Retrieves the invoice currency used by an advertiser in a given month.", - // "flatPath": "v1/advertisers/{advertisersId}/invoices:lookupInvoiceCurrency", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.invoices.lookupInvoiceCurrency", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser to lookup currency for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "invoiceMonth": { - // "description": "Month for which the currency is needed. If not set, the request will return existing currency settings for the advertiser. Must be in the format YYYYMM.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/invoices:lookupInvoiceCurrency", - // "response": { - // "$ref": "LookupInvoiceCurrencyResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/display-video-mediaplanning" - // ] - // } - -} - -// method id "displayvideo.advertisers.lineItems.bulkEditLineItemAssignedTargetingOptions": +} type AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall struct { s *Service @@ -24563,21 +18803,19 @@ type AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall struct { header_ http.Header } -// BulkEditLineItemAssignedTargetingOptions: Bulk edits targeting -// options under a single line item. The operation will delete the -// assigned targeting options provided in -// BulkEditLineItemAssignedTargetingOptionsRequest.delete_requests and -// then create the assigned targeting options provided in -// BulkEditLineItemAssignedTargetingOptionsRequest.create_requests. -// Requests to this endpoint cannot be made concurrently with the -// following requests updating the same line item: * lineItems.patch * -// assignedTargetingOptions.create * assignedTargetingOptions.delete -// YouTube & Partners line items cannot be created or updated using the -// API. +// BulkEditLineItemAssignedTargetingOptions: Bulk edits targeting options under +// a single line item. The operation will delete the assigned targeting options +// provided in BulkEditLineItemAssignedTargetingOptionsRequest.delete_requests +// and then create the assigned targeting options provided in +// BulkEditLineItemAssignedTargetingOptionsRequest.create_requests. Requests to +// this endpoint cannot be made concurrently with the following requests +// updating the same line item: * lineItems.patch * +// assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube & +// Partners line items cannot be created or updated using the API. // // - advertiserId: The ID of the advertiser the line item belongs to. -// - lineItemId: The ID of the line item the assigned targeting option -// will belong to. +// - lineItemId: The ID of the line item the assigned targeting option will +// belong to. func (r *AdvertisersLineItemsService) BulkEditLineItemAssignedTargetingOptions(advertiserId int64, lineItemId int64, bulkeditlineitemassignedtargetingoptionsrequest *BulkEditLineItemAssignedTargetingOptionsRequest) *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall { c := &AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -24587,23 +18825,21 @@ func (r *AdvertisersLineItemsService) BulkEditLineItemAssignedTargetingOptions(a } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall) Context(ctx context.Context) *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24612,18 +18848,12 @@ func (c *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall) Heade } func (c *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bulkeditlineitemassignedtargetingoptionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkEditLineItemAssignedTargetingOptions") @@ -24637,18 +18867,15 @@ func (c *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall) doReq "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.bulkEditLineItemAssignedTargetingOptions" call. -// Exactly one of *BulkEditLineItemAssignedTargetingOptionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *BulkEditLineItemAssignedTargetingOptionsResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkEditLineItemAssignedTargetingOptionsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall) Do(opts ...googleapi.CallOption) (*BulkEditLineItemAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24679,48 +18906,7 @@ func (c *AdvertisersLineItemsBulkEditLineItemAssignedTargetingOptionsCall) Do(op return nil, err } return ret, nil - // { - // "description": "Bulk edits targeting options under a single line item. The operation will delete the assigned targeting options provided in BulkEditLineItemAssignedTargetingOptionsRequest.delete_requests and then create the assigned targeting options provided in BulkEditLineItemAssignedTargetingOptionsRequest.create_requests. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * lineItems.patch * assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube \u0026 Partners line items cannot be created or updated using the API.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems/{lineItemsId}:bulkEditLineItemAssignedTargetingOptions", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.lineItems.bulkEditLineItemAssignedTargetingOptions", - // "parameterOrder": [ - // "advertiserId", - // "lineItemId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "lineItemId": { - // "description": "Required. The ID of the line item the assigned targeting option will belong to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkEditLineItemAssignedTargetingOptions", - // "request": { - // "$ref": "BulkEditLineItemAssignedTargetingOptionsRequest" - // }, - // "response": { - // "$ref": "BulkEditLineItemAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.lineItems.bulkListLineItemAssignedTargetingOptions": +} type AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall struct { s *Service @@ -24732,12 +18918,12 @@ type AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall struct { header_ http.Header } -// BulkListLineItemAssignedTargetingOptions: Lists assigned targeting -// options of a line item across targeting types. +// BulkListLineItemAssignedTargetingOptions: Lists assigned targeting options +// of a line item across targeting types. // // - advertiserId: The ID of the advertiser the line item belongs to. -// - lineItemId: The ID of the line item to list assigned targeting -// options for. +// - lineItemId: The ID of the line item to list assigned targeting options +// for. func (r *AdvertisersLineItemsService) BulkListLineItemAssignedTargetingOptions(advertiserId int64, lineItemId int64) *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall { c := &AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -24745,85 +18931,78 @@ func (r *AdvertisersLineItemsService) BulkListLineItemAssignedTargetingOptions(a return c } -// Filter sets the optional parameter "filter": Allows filtering by -// assigned targeting option fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the logical operator `OR`. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=)` operator. Supported fields: * `targetingType` * -// `inheritance` Examples: * `AssignedTargetingOption` resources of -// targeting type `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` or +// Filter sets the optional parameter "filter": Allows filtering by assigned +// targeting option fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the logical +// operator `OR`. * A restriction has the form of `{field} {operator} {value}`. +// * All fields must use the `EQUALS (=)` operator. Supported fields: * +// `targetingType` * `inheritance` Examples: * `AssignedTargetingOption` +// resources of targeting type `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` or // `TARGETING_TYPE_CHANNEL`: // `targetingType="TARGETING_TYPE_PROXIMITY_LOCATION_LIST" OR // targetingType="TARGETING_TYPE_CHANNEL" * `AssignedTargetingOption` // resources with inheritance status of `NOT_INHERITED` or // `INHERITED_FROM_PARTNER`: `inheritance="NOT_INHERITED" OR -// inheritance="INHERITED_FROM_PARTNER" The length of this field should -// be no more than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// inheritance="INHERITED_FROM_PARTNER" The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Filter(filter string) *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `targetingType` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix "desc" should be added to the field name. Example: -// `targetingType desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `targetingType` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix "desc" +// should be added to the field name. Example: `targetingType desc`. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) OrderBy(orderBy string) *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// The size must be an integer between `1` and `5000`. If unspecified, -// the default is `5000`. Returns error code `INVALID_ARGUMENT` if an -// invalid value is specified. +// PageSize sets the optional parameter "pageSize": Requested page size. The +// size must be an integer between `1` and `5000`. If unspecified, the default +// is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is +// specified. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) PageSize(pageSize int64) *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token that lets -// the client fetch the next page of results. Typically, this is the -// value of next_page_token returned from the previous call to -// `BulkListLineItemAssignedTargetingOptions` method. If not specified, -// the first page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token that lets the +// client fetch the next page of results. Typically, this is the value of +// next_page_token returned from the previous call to +// `BulkListLineItemAssignedTargetingOptions` method. If not specified, the +// first page of results will be returned. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) PageToken(pageToken string) *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) IfNoneMatch(entityTag string) *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Context(ctx context.Context) *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24832,12 +19011,7 @@ func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Heade } func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24855,18 +19029,15 @@ func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) doReq "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.bulkListLineItemAssignedTargetingOptions" call. -// Exactly one of *BulkListLineItemAssignedTargetingOptionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *BulkListLineItemAssignedTargetingOptionsResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkListLineItemAssignedTargetingOptionsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Do(opts ...googleapi.CallOption) (*BulkListLineItemAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24897,63 +19068,6 @@ func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Do(op return nil, err } return ret, nil - // { - // "description": "Lists assigned targeting options of a line item across targeting types.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems/{lineItemsId}:bulkListLineItemAssignedTargetingOptions", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.lineItems.bulkListLineItemAssignedTargetingOptions", - // "parameterOrder": [ - // "advertiserId", - // "lineItemId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by assigned targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the logical operator `OR`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `targetingType` * `inheritance` Examples: * `AssignedTargetingOption` resources of targeting type `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` or `TARGETING_TYPE_CHANNEL`: `targetingType=\"TARGETING_TYPE_PROXIMITY_LOCATION_LIST\" OR targetingType=\"TARGETING_TYPE_CHANNEL\"` * `AssignedTargetingOption` resources with inheritance status of `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: `inheritance=\"NOT_INHERITED\" OR inheritance=\"INHERITED_FROM_PARTNER\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "lineItemId": { - // "description": "Required. The ID of the line item to list assigned targeting options for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `targetingType` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `targetingType desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token that lets the client fetch the next page of results. Typically, this is the value of next_page_token returned from the previous call to `BulkListLineItemAssignedTargetingOptions` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkListLineItemAssignedTargetingOptions", - // "response": { - // "$ref": "BulkListLineItemAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -24961,7 +19075,7 @@ func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Do(op // The provided context supersedes any context provided to the Context method. func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Pages(ctx context.Context, f func(*BulkListLineItemAssignedTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -24977,8 +19091,6 @@ func (c *AdvertisersLineItemsBulkListLineItemAssignedTargetingOptionsCall) Pages } } -// method id "displayvideo.advertisers.lineItems.create": - type AdvertisersLineItemsCreateCall struct { s *Service advertiserId int64 @@ -24988,12 +19100,12 @@ type AdvertisersLineItemsCreateCall struct { header_ http.Header } -// Create: Creates a new line item. Returns the newly created line item -// if successful. YouTube & Partners line items cannot be created or -// updated using the API. +// Create: Creates a new line item. Returns the newly created line item if +// successful. YouTube & Partners line items cannot be created or updated using +// the API. // -// - advertiserId: Output only. The unique ID of the advertiser the line -// item belongs to. +// - advertiserId: Output only. The unique ID of the advertiser the line item +// belongs to. func (r *AdvertisersLineItemsService) Create(advertiserId int64, lineitem *LineItem) *AdvertisersLineItemsCreateCall { c := &AdvertisersLineItemsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -25002,23 +19114,21 @@ func (r *AdvertisersLineItemsService) Create(advertiserId int64, lineitem *LineI } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsCreateCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsCreateCall) Context(ctx context.Context) *AdvertisersLineItemsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25027,18 +19137,12 @@ func (c *AdvertisersLineItemsCreateCall) Header() http.Header { } func (c *AdvertisersLineItemsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.lineitem) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/lineItems") @@ -25051,16 +19155,14 @@ func (c *AdvertisersLineItemsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.create" call. -// Exactly one of *LineItem or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LineItem.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LineItem.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersLineItemsCreateCall) Do(opts ...googleapi.CallOption) (*LineItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25091,39 +19193,7 @@ func (c *AdvertisersLineItemsCreateCall) Do(opts ...googleapi.CallOption) (*Line return nil, err } return ret, nil - // { - // "description": "Creates a new line item. Returns the newly created line item if successful. YouTube \u0026 Partners line items cannot be created or updated using the API.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.lineItems.create", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Output only. The unique ID of the advertiser the line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems", - // "request": { - // "$ref": "LineItem" - // }, - // "response": { - // "$ref": "LineItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.lineItems.delete": +} type AdvertisersLineItemsDeleteCall struct { s *Service @@ -25134,11 +19204,10 @@ type AdvertisersLineItemsDeleteCall struct { header_ http.Header } -// Delete: Deletes a line item. Returns error code `NOT_FOUND` if the -// line item does not exist. The line item should be archived first, -// i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to -// delete it. YouTube & Partners line items cannot be created or updated -// using the API. +// Delete: Deletes a line item. Returns error code `NOT_FOUND` if the line item +// does not exist. The line item should be archived first, i.e. set +// entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it. YouTube +// & Partners line items cannot be created or updated using the API. // // - advertiserId: The ID of the advertiser this line item belongs to. // - lineItemId: The ID of the line item to delete. @@ -25150,23 +19219,21 @@ func (r *AdvertisersLineItemsService) Delete(advertiserId int64, lineItemId int6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsDeleteCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsDeleteCall) Context(ctx context.Context) *AdvertisersLineItemsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25175,12 +19242,7 @@ func (c *AdvertisersLineItemsDeleteCall) Header() http.Header { } func (c *AdvertisersLineItemsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -25195,16 +19257,14 @@ func (c *AdvertisersLineItemsDeleteCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersLineItemsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25235,45 +19295,7 @@ func (c *AdvertisersLineItemsDeleteCall) Do(opts ...googleapi.CallOption) (*Empt return nil, err } return ret, nil - // { - // "description": "Deletes a line item. Returns error code `NOT_FOUND` if the line item does not exist. The line item should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it. YouTube \u0026 Partners line items cannot be created or updated using the API.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems/{lineItemsId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.lineItems.delete", - // "parameterOrder": [ - // "advertiserId", - // "lineItemId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser this line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "lineItemId": { - // "description": "The ID of the line item to delete.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.lineItems.generateDefault": +} type AdvertisersLineItemsGenerateDefaultCall struct { s *Service @@ -25284,13 +19306,13 @@ type AdvertisersLineItemsGenerateDefaultCall struct { header_ http.Header } -// GenerateDefault: Creates a new line item with settings (including -// targeting) inherited from the insertion order and an -// `ENTITY_STATUS_DRAFT` entity_status. Returns the newly created line -// item if successful. There are default values based on the three -// fields: * The insertion order's insertion_order_type * The insertion -// order's automation_type * The given line_item_type YouTube & Partners -// line items cannot be created or updated using the API. +// GenerateDefault: Creates a new line item with settings (including targeting) +// inherited from the insertion order and an `ENTITY_STATUS_DRAFT` +// entity_status. Returns the newly created line item if successful. There are +// default values based on the three fields: * The insertion order's +// insertion_order_type * The insertion order's automation_type * The given +// line_item_type YouTube & Partners line items cannot be created or updated +// using the API. // // - advertiserId: The ID of the advertiser this line item belongs to. func (r *AdvertisersLineItemsService) GenerateDefault(advertiserId int64, generatedefaultlineitemrequest *GenerateDefaultLineItemRequest) *AdvertisersLineItemsGenerateDefaultCall { @@ -25301,23 +19323,21 @@ func (r *AdvertisersLineItemsService) GenerateDefault(advertiserId int64, genera } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsGenerateDefaultCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsGenerateDefaultCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsGenerateDefaultCall) Context(ctx context.Context) *AdvertisersLineItemsGenerateDefaultCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsGenerateDefaultCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25326,18 +19346,12 @@ func (c *AdvertisersLineItemsGenerateDefaultCall) Header() http.Header { } func (c *AdvertisersLineItemsGenerateDefaultCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.generatedefaultlineitemrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/lineItems:generateDefault") @@ -25350,16 +19364,14 @@ func (c *AdvertisersLineItemsGenerateDefaultCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.generateDefault" call. -// Exactly one of *LineItem or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LineItem.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LineItem.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersLineItemsGenerateDefaultCall) Do(opts ...googleapi.CallOption) (*LineItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25390,39 +19402,7 @@ func (c *AdvertisersLineItemsGenerateDefaultCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Creates a new line item with settings (including targeting) inherited from the insertion order and an `ENTITY_STATUS_DRAFT` entity_status. Returns the newly created line item if successful. There are default values based on the three fields: * The insertion order's insertion_order_type * The insertion order's automation_type * The given line_item_type YouTube \u0026 Partners line items cannot be created or updated using the API.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems:generateDefault", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.lineItems.generateDefault", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser this line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems:generateDefault", - // "request": { - // "$ref": "GenerateDefaultLineItemRequest" - // }, - // "response": { - // "$ref": "LineItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.lineItems.get": +} type AdvertisersLineItemsGetCall struct { s *Service @@ -25446,33 +19426,29 @@ func (r *AdvertisersLineItemsService) Get(advertiserId int64, lineItemId int64) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsGetCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersLineItemsGetCall) IfNoneMatch(entityTag string) *AdvertisersLineItemsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsGetCall) Context(ctx context.Context) *AdvertisersLineItemsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25481,12 +19457,7 @@ func (c *AdvertisersLineItemsGetCall) Header() http.Header { } func (c *AdvertisersLineItemsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25504,16 +19475,14 @@ func (c *AdvertisersLineItemsGetCall) doRequest(alt string) (*http.Response, err "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.get" call. -// Exactly one of *LineItem or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LineItem.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LineItem.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersLineItemsGetCall) Do(opts ...googleapi.CallOption) (*LineItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25544,45 +19513,7 @@ func (c *AdvertisersLineItemsGetCall) Do(opts ...googleapi.CallOption) (*LineIte return nil, err } return ret, nil - // { - // "description": "Gets a line item.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems/{lineItemsId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.lineItems.get", - // "parameterOrder": [ - // "advertiserId", - // "lineItemId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser this line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "lineItemId": { - // "description": "Required. The ID of the line item to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}", - // "response": { - // "$ref": "LineItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.lineItems.list": +} type AdvertisersLineItemsListCall struct { s *Service @@ -25594,9 +19525,8 @@ type AdvertisersLineItemsListCall struct { } // List: Lists line items in an advertiser. The order is defined by the -// order_by parameter. If a filter by entity_status is not specified, -// line items with `ENTITY_STATUS_ARCHIVED` will not be included in the -// results. +// order_by parameter. If a filter by entity_status is not specified, line +// items with `ENTITY_STATUS_ARCHIVED` will not be included in the results. // // - advertiserId: The ID of the advertiser to list line items for. func (r *AdvertisersLineItemsService) List(advertiserId int64) *AdvertisersLineItemsListCall { @@ -25605,91 +19535,83 @@ func (r *AdvertisersLineItemsService) List(advertiserId int64) *AdvertisersLineI return c } -// Filter sets the optional parameter "filter": Allows filtering by line -// item fields. Supported syntax: * Filter expressions are made up of -// one or more restrictions. * Restrictions can be combined by `AND` or -// `OR` logical operators. A sequence of restrictions implicitly uses -// `AND`. * A restriction has the form of `{field} {operator} {value}`. -// * The `updateTime` field must use the `GREATER THAN OR EQUAL TO (>=)` -// or `LESS THAN OR EQUAL TO (<=)` operators. * All other fields must -// use the `EQUALS (=)` operator. Supported fields: * `campaignId` * -// `displayName` * `entityStatus` * `insertionOrderId` * `lineItemId` * -// `lineItemType` * `updateTime` (input in ISO 8601 format, or -// `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All line items under an insertion -// order: `insertionOrderId="1234" * All `ENTITY_STATUS_ACTIVE` or -// `ENTITY_STATUS_PAUSED` and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line -// items under an advertiser: `(entityStatus="ENTITY_STATUS_ACTIVE" OR +// Filter sets the optional parameter "filter": Allows filtering by line item +// fields. Supported syntax: * Filter expressions are made up of one or more +// restrictions. * Restrictions can be combined by `AND` or `OR` logical +// operators. A sequence of restrictions implicitly uses `AND`. * A restriction +// has the form of `{field} {operator} {value}`. * The `updateTime` field must +// use the `GREATER THAN OR EQUAL TO (>=)` or `LESS THAN OR EQUAL TO (<=)` +// operators. * All other fields must use the `EQUALS (=)` operator. Supported +// fields: * `campaignId` * `displayName` * `entityStatus` * `insertionOrderId` +// * `lineItemId` * `lineItemType` * `updateTime` (input in ISO 8601 format, or +// `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All line items under an insertion order: +// `insertionOrderId="1234" * All `ENTITY_STATUS_ACTIVE` or +// `ENTITY_STATUS_PAUSED` and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under +// an advertiser: `(entityStatus="ENTITY_STATUS_ACTIVE" OR // entityStatus="ENTITY_STATUS_PAUSED") AND -// lineItemType="LINE_ITEM_TYPE_DISPLAY_DEFAULT" * All line items with -// an update time less than or equal to 2020-11-04T18:54:47Z (format of -// ISO 8601): `updateTime<="2020-11-04T18:54:47Z" * All line items with -// an update time greater than or equal to 2020-11-04T18:54:47Z (format -// of ISO 8601): `updateTime>="2020-11-04T18:54:47Z" The length of this -// field should be no more than 500 characters. Reference our filter -// `LIST` requests (/display-video/api/guides/how-tos/filters) guide for -// more information. +// lineItemType="LINE_ITEM_TYPE_DISPLAY_DEFAULT" * All line items with an +// update time less than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): +// `updateTime<="2020-11-04T18:54:47Z" * All line items with an update time +// greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): +// `updateTime>="2020-11-04T18:54:47Z" The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersLineItemsListCall) Filter(filter string) *AdvertisersLineItemsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) * -// `entityStatus` * `updateTime` The default sorting order is ascending. -// To specify descending order for a field, a suffix "desc" should be -// added to the field name. Example: `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) * `entityStatus` * +// `updateTime` The default sorting order is ascending. To specify descending +// order for a field, a suffix "desc" should be added to the field name. +// Example: `displayName desc`. func (c *AdvertisersLineItemsListCall) OrderBy(orderBy string) *AdvertisersLineItemsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersLineItemsListCall) PageSize(pageSize int64) *AdvertisersLineItemsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListLineItems` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListLineItems` method. +// If not specified, the first page of results will be returned. func (c *AdvertisersLineItemsListCall) PageToken(pageToken string) *AdvertisersLineItemsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsListCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersLineItemsListCall) IfNoneMatch(entityTag string) *AdvertisersLineItemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsListCall) Context(ctx context.Context) *AdvertisersLineItemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25698,12 +19620,7 @@ func (c *AdvertisersLineItemsListCall) Header() http.Header { } func (c *AdvertisersLineItemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25720,16 +19637,15 @@ func (c *AdvertisersLineItemsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.list" call. -// Exactly one of *ListLineItemsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLineItemsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLineItemsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersLineItemsListCall) Do(opts ...googleapi.CallOption) (*ListLineItemsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25760,54 +19676,6 @@ func (c *AdvertisersLineItemsListCall) Do(opts ...googleapi.CallOption) (*ListLi return nil, err } return ret, nil - // { - // "description": "Lists line items in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, line items with `ENTITY_STATUS_ARCHIVED` will not be included in the results.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.lineItems.list", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser to list line items for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by line item fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The `updateTime` field must use the `GREATER THAN OR EQUAL TO (\u003e=)` or `LESS THAN OR EQUAL TO (\u003c=)` operators. * All other fields must use the `EQUALS (=)` operator. Supported fields: * `campaignId` * `displayName` * `entityStatus` * `insertionOrderId` * `lineItemId` * `lineItemType` * `updateTime` (input in ISO 8601 format, or `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All line items under an insertion order: `insertionOrderId=\"1234\"` * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under an advertiser: `(entityStatus=\"ENTITY_STATUS_ACTIVE\" OR entityStatus=\"ENTITY_STATUS_PAUSED\") AND lineItemType=\"LINE_ITEM_TYPE_DISPLAY_DEFAULT\"` * All line items with an update time less than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime\u003c=\"2020-11-04T18:54:47Z\"` * All line items with an update time greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime\u003e=\"2020-11-04T18:54:47Z\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) * `entityStatus` * `updateTime` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListLineItems` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems", - // "response": { - // "$ref": "ListLineItemsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -25815,7 +19683,7 @@ func (c *AdvertisersLineItemsListCall) Do(opts ...googleapi.CallOption) (*ListLi // The provided context supersedes any context provided to the Context method. func (c *AdvertisersLineItemsListCall) Pages(ctx context.Context, f func(*ListLineItemsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -25831,8 +19699,6 @@ func (c *AdvertisersLineItemsListCall) Pages(ctx context.Context, f func(*ListLi } } -// method id "displayvideo.advertisers.lineItems.patch": - type AdvertisersLineItemsPatchCall struct { s *Service advertiserId int64 @@ -25843,18 +19709,17 @@ type AdvertisersLineItemsPatchCall struct { header_ http.Header } -// Patch: Updates an existing line item. Returns the updated line item -// if successful. Requests to this endpoint cannot be made concurrently -// with the following requests updating the same line item: * +// Patch: Updates an existing line item. Returns the updated line item if +// successful. Requests to this endpoint cannot be made concurrently with the +// following requests updating the same line item: * // BulkEditAssignedTargetingOptions * BulkUpdateLineItems * -// assignedTargetingOptions.create * assignedTargetingOptions.delete -// YouTube & Partners line items cannot be created or updated using the -// API. +// assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube & +// Partners line items cannot be created or updated using the API. // -// - advertiserId: Output only. The unique ID of the advertiser the line -// item belongs to. -// - lineItemId: Output only. The unique ID of the line item. Assigned -// by the system. +// - advertiserId: Output only. The unique ID of the advertiser the line item +// belongs to. +// - lineItemId: Output only. The unique ID of the line item. Assigned by the +// system. func (r *AdvertisersLineItemsService) Patch(advertiserId int64, lineItemId int64, lineitem *LineItem) *AdvertisersLineItemsPatchCall { c := &AdvertisersLineItemsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -25863,31 +19728,29 @@ func (r *AdvertisersLineItemsService) Patch(advertiserId int64, lineItemId int64 return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *AdvertisersLineItemsPatchCall) UpdateMask(updateMask string) *AdvertisersLineItemsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsPatchCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsPatchCall) Context(ctx context.Context) *AdvertisersLineItemsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25896,18 +19759,12 @@ func (c *AdvertisersLineItemsPatchCall) Header() http.Header { } func (c *AdvertisersLineItemsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.lineitem) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}") @@ -25921,16 +19778,14 @@ func (c *AdvertisersLineItemsPatchCall) doRequest(alt string) (*http.Response, e "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.patch" call. -// Exactly one of *LineItem or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LineItem.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LineItem.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersLineItemsPatchCall) Do(opts ...googleapi.CallOption) (*LineItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25961,54 +19816,7 @@ func (c *AdvertisersLineItemsPatchCall) Do(opts ...googleapi.CallOption) (*LineI return nil, err } return ret, nil - // { - // "description": "Updates an existing line item. Returns the updated line item if successful. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * BulkEditAssignedTargetingOptions * BulkUpdateLineItems * assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube \u0026 Partners line items cannot be created or updated using the API.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems/{lineItemsId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.advertisers.lineItems.patch", - // "parameterOrder": [ - // "advertiserId", - // "lineItemId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Output only. The unique ID of the advertiser the line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "lineItemId": { - // "description": "Output only. The unique ID of the line item. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}", - // "request": { - // "$ref": "LineItem" - // }, - // "response": { - // "$ref": "LineItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.create": +} type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall struct { s *Service @@ -26021,50 +19829,42 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall struct header_ http.Header } -// Create: Assigns a targeting option to a line item. Returns the -// assigned targeting option if successful. Requests to this endpoint -// cannot be made concurrently with the following requests updating the -// same line item: * lineItems.bulkEditAssignedTargetingOptions * -// lineItems.bulkUpdate * lineItems.patch * -// DeleteLineItemAssignedTargetingOption YouTube & Partners line items -// cannot be created or updated using the API. +// Create: Assigns a targeting option to a line item. Returns the assigned +// targeting option if successful. Requests to this endpoint cannot be made +// concurrently with the following requests updating the same line item: * +// lineItems.bulkEditAssignedTargetingOptions * lineItems.bulkUpdate * +// lineItems.patch * DeleteLineItemAssignedTargetingOption YouTube & Partners +// line items cannot be created or updated using the API. // // - advertiserId: The ID of the advertiser the line item belongs to. -// - lineItemId: The ID of the line item the assigned targeting option -// will belong to. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types include: * -// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * -// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * -// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * -// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * -// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * -// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * -// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * -// `TARGETING_TYPE_CONTENT_GENRE` * +// - lineItemId: The ID of the line item the assigned targeting option will +// belong to. +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * +// `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * +// `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * +// `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * +// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * +// `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * -// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * -// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` -// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * +// `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * -// `TARGETING_TYPE_INVENTORY_SOURCE` * -// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` -// - `TARGETING_TYPE_LANGUAGE` * -// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * +// `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * // `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_ON_SCREEN_POSITION` * -// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * // `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * // `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * // `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * -// `TARGETING_TYPE_SUB_EXCHANGE` * -// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * -// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * +// `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * // `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Create(advertiserId int64, lineItemId int64, targetingType string, assignedtargetingoption *AssignedTargetingOption) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall { c := &AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -26076,23 +19876,21 @@ func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Crea } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) Context(ctx context.Context) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26101,18 +19899,12 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) H } func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.assignedtargetingoption) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions") @@ -26127,16 +19919,15 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) d "lineItemId": strconv.FormatInt(c.lineItemId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.create" call. -// Exactly one of *AssignedTargetingOption or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AssignedTargetingOption.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) Do(opts ...googleapi.CallOption) (*AssignedTargetingOption, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26167,152 +19958,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) D return nil, err } return ret, nil - // { - // "description": "Assigns a targeting option to a line item. Returns the assigned targeting option if successful. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * lineItems.bulkEditAssignedTargetingOptions * lineItems.bulkUpdate * lineItems.patch * DeleteLineItemAssignedTargetingOption YouTube \u0026 Partners line items cannot be created or updated using the API.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems/{lineItemsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.create", - // "parameterOrder": [ - // "advertiserId", - // "lineItemId", - // "targetingType" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "lineItemId": { - // "description": "Required. The ID of the line item the assigned targeting option will belong to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions", - // "request": { - // "$ref": "AssignedTargetingOption" - // }, - // "response": { - // "$ref": "AssignedTargetingOption" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.delete": +} type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall struct { s *Service @@ -26325,51 +19971,44 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall struct header_ http.Header } -// Delete: Deletes an assigned targeting option from a line item. -// Requests to this endpoint cannot be made concurrently with the -// following requests updating the same line item: * -// lineItems.bulkEditAssignedTargetingOptions * lineItems.bulkUpdate * -// lineItems.patch * CreateLineItemAssignedTargetingOption YouTube & -// Partners line items cannot be created or updated using the API. +// Delete: Deletes an assigned targeting option from a line item. Requests to +// this endpoint cannot be made concurrently with the following requests +// updating the same line item: * lineItems.bulkEditAssignedTargetingOptions * +// lineItems.bulkUpdate * lineItems.patch * +// CreateLineItemAssignedTargetingOption YouTube & Partners line items cannot +// be created or updated using the API. // // - advertiserId: The ID of the advertiser the line item belongs to. -// - assignedTargetingOptionId: The ID of the assigned targeting option -// to delete. -// - lineItemId: The ID of the line item the assigned targeting option -// belongs to. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types include: * -// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * -// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * -// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * -// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * -// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * -// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * -// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * -// `TARGETING_TYPE_CONTENT_GENRE` * +// - assignedTargetingOptionId: The ID of the assigned targeting option to +// delete. +// - lineItemId: The ID of the line item the assigned targeting option belongs +// to. +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * +// `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * +// `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * +// `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * +// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * +// `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * -// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * -// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` -// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * +// `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * -// `TARGETING_TYPE_INVENTORY_SOURCE` * -// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` -// - `TARGETING_TYPE_LANGUAGE` * -// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * +// `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * // `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_ON_SCREEN_POSITION` * -// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * // `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * // `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * // `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * -// `TARGETING_TYPE_SUB_EXCHANGE` * -// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * -// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * +// `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * // `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`. func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Delete(advertiserId int64, lineItemId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall { c := &AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -26381,23 +20020,21 @@ func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Dele } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) Context(ctx context.Context) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26406,12 +20043,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) H } func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -26428,16 +20060,14 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) d "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26468,157 +20098,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) D return nil, err } return ret, nil - // { - // "description": "Deletes an assigned targeting option from a line item. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * lineItems.bulkEditAssignedTargetingOptions * lineItems.bulkUpdate * lineItems.patch * CreateLineItemAssignedTargetingOption YouTube \u0026 Partners line items cannot be created or updated using the API.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems/{lineItemsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.delete", - // "parameterOrder": [ - // "advertiserId", - // "lineItemId", - // "targetingType", - // "assignedTargetingOptionId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "assignedTargetingOptionId": { - // "description": "Required. The ID of the assigned targeting option to delete.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "lineItemId": { - // "description": "Required. The ID of the line item the assigned targeting option belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.get": +} type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall struct { s *Service @@ -26635,44 +20115,37 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall struct { // Get: Gets a single targeting option assigned to a line item. // // - advertiserId: The ID of the advertiser the line item belongs to. -// - assignedTargetingOptionId: An identifier unique to the targeting -// type in this line item that identifies the assigned targeting -// option being requested. -// - lineItemId: The ID of the line item the assigned targeting option -// belongs to. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types include: * -// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * -// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * -// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * -// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * -// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * -// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * -// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * -// `TARGETING_TYPE_CONTENT_GENRE` * +// - assignedTargetingOptionId: An identifier unique to the targeting type in +// this line item that identifies the assigned targeting option being +// requested. +// - lineItemId: The ID of the line item the assigned targeting option belongs +// to. +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * +// `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * +// `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * +// `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * +// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * +// `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * -// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * -// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` -// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * +// `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * -// `TARGETING_TYPE_INVENTORY_SOURCE` * -// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` -// - `TARGETING_TYPE_LANGUAGE` * -// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * +// `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * // `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_ON_SCREEN_POSITION` * -// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * // `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * // `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * // `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * -// `TARGETING_TYPE_SUB_EXCHANGE` * -// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * -// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * +// `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * // `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * // `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for // `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * @@ -26688,33 +20161,29 @@ func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) Get( } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) IfNoneMatch(entityTag string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) Context(ctx context.Context) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26723,12 +20192,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) Head } func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26748,16 +20212,15 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) doRe "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.get" call. -// Exactly one of *AssignedTargetingOption or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AssignedTargetingOption.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...googleapi.CallOption) (*AssignedTargetingOption, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26788,157 +20251,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) Do(o return nil, err } return ret, nil - // { - // "description": "Gets a single targeting option assigned to a line item.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems/{lineItemsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.get", - // "parameterOrder": [ - // "advertiserId", - // "lineItemId", - // "targetingType", - // "assignedTargetingOptionId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "assignedTargetingOptionId": { - // "description": "Required. An identifier unique to the targeting type in this line item that identifies the assigned targeting option being requested.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "lineItemId": { - // "description": "Required. The ID of the line item the assigned targeting option belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * `TARGETING_TYPE_YOUTUBE_VIDEO` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items)", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}", - // "response": { - // "$ref": "AssignedTargetingOption" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.list": +} type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall struct { s *Service @@ -26954,41 +20267,34 @@ type AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall struct { // List: Lists the targeting options assigned to a line item. // // - advertiserId: The ID of the advertiser the line item belongs to. -// - lineItemId: The ID of the line item to list assigned targeting -// options for. -// - targetingType: Identifies the type of assigned targeting options to -// list. Supported targeting types include: * -// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * -// `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * -// `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * -// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * -// `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * -// `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * -// `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * -// `TARGETING_TYPE_CONTENT_GENRE` * +// - lineItemId: The ID of the line item to list assigned targeting options +// for. +// - targetingType: Identifies the type of assigned targeting options to list. +// Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * +// `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * +// `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * +// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * +// `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * +// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * +// `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * -// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * -// `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` -// - `TARGETING_TYPE_DEVICE_TYPE` * +// `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * +// `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * // `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * -// `TARGETING_TYPE_INVENTORY_SOURCE` * -// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` -// - `TARGETING_TYPE_LANGUAGE` * -// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * +// `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * +// `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * +// `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * // `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_ON_SCREEN_POSITION` * -// `TARGETING_TYPE_OPERATING_SYSTEM` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * // `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * // `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * // `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * -// `TARGETING_TYPE_SUB_EXCHANGE` * -// `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * -// `TARGETING_TYPE_USER_REWARDED_CONTENT` * +// `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * +// `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * // `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * // `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for // `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * @@ -27002,84 +20308,76 @@ func (r *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsService) List return c } -// Filter sets the optional parameter "filter": Allows filtering by -// assigned targeting option fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the logical operator `OR`. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=)` operator. Supported fields: * +// Filter sets the optional parameter "filter": Allows filtering by assigned +// targeting option fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the logical +// operator `OR`. * A restriction has the form of `{field} {operator} {value}`. +// * All fields must use the `EQUALS (=)` operator. Supported fields: * // `assignedTargetingOptionId` * `inheritance` Examples: * // `AssignedTargetingOption` resources with ID 1 or 2: // `assignedTargetingOptionId="1" OR assignedTargetingOptionId="2" * // `AssignedTargetingOption` resources with inheritance status of -// `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: -// `inheritance="NOT_INHERITED" OR inheritance="INHERITED_FROM_PARTNER" -// The length of this field should be no more than 500 characters. -// Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: `inheritance="NOT_INHERITED" OR +// inheritance="INHERITED_FROM_PARTNER" The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Filter(filter string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `assignedTargetingOptionId` -// (default) The default sorting order is ascending. To specify -// descending order for a field, a suffix "desc" should be added to the -// field name. Example: `assignedTargetingOptionId desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `assignedTargetingOptionId` (default) The +// default sorting order is ascending. To specify descending order for a field, +// a suffix "desc" should be added to the field name. Example: +// `assignedTargetingOptionId desc`. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) OrderBy(orderBy string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `5000`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `5000`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) PageSize(pageSize int64) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListLineItemAssignedTargetingOptions` method. If not specified, -// the first page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to +// `ListLineItemAssignedTargetingOptions` method. If not specified, the first +// page of results will be returned. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) PageToken(pageToken string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Fields(s ...googleapi.Field) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) IfNoneMatch(entityTag string) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Context(ctx context.Context) *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27088,12 +20386,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Hea } func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27112,18 +20405,15 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) doR "lineItemId": strconv.FormatInt(c.lineItemId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.list" call. -// Exactly one of *ListLineItemAssignedTargetingOptionsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *ListLineItemAssignedTargetingOptionsResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLineItemAssignedTargetingOptionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...googleapi.CallOption) (*ListLineItemAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27154,167 +20444,6 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Do( return nil, err } return ret, nil - // { - // "description": "Lists the targeting options assigned to a line item.", - // "flatPath": "v1/advertisers/{advertisersId}/lineItems/{lineItemsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.list", - // "parameterOrder": [ - // "advertiserId", - // "lineItemId", - // "targetingType" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser the line item belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by assigned targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the logical operator `OR`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `assignedTargetingOptionId` * `inheritance` Examples: * `AssignedTargetingOption` resources with ID 1 or 2: `assignedTargetingOptionId=\"1\" OR assignedTargetingOptionId=\"2\"` * `AssignedTargetingOption` resources with inheritance status of `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: `inheritance=\"NOT_INHERITED\" OR inheritance=\"INHERITED_FROM_PARTNER\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "lineItemId": { - // "description": "Required. The ID of the line item to list assigned targeting options for.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `assignedTargetingOptionId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `assignedTargetingOptionId desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `5000`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListLineItemAssignedTargetingOptions` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_YOUTUBE_CHANNEL` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items) * `TARGETING_TYPE_YOUTUBE_VIDEO` (only for `LINE_ITEM_TYPE_YOUTUBE_AND_PARTNERS_VIDEO_SEQUENCE` line items)", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions", - // "response": { - // "$ref": "ListLineItemAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -27322,7 +20451,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Do( // The provided context supersedes any context provided to the Context method. func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Pages(ctx context.Context, f func(*ListLineItemAssignedTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -27338,8 +20467,6 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) Pag } } -// method id "displayvideo.advertisers.locationLists.create": - type AdvertisersLocationListsCreateCall struct { s *Service advertiserId int64 @@ -27349,11 +20476,11 @@ type AdvertisersLocationListsCreateCall struct { header_ http.Header } -// Create: Creates a new location list. Returns the newly created -// location list if successful. +// Create: Creates a new location list. Returns the newly created location list +// if successful. // -// - advertiserId: The ID of the DV360 advertiser to which the location -// list belongs. +// - advertiserId: The ID of the DV360 advertiser to which the location list +// belongs. func (r *AdvertisersLocationListsService) Create(advertiserId int64, locationlist *LocationList) *AdvertisersLocationListsCreateCall { c := &AdvertisersLocationListsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -27362,23 +20489,21 @@ func (r *AdvertisersLocationListsService) Create(advertiserId int64, locationlis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLocationListsCreateCall) Fields(s ...googleapi.Field) *AdvertisersLocationListsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLocationListsCreateCall) Context(ctx context.Context) *AdvertisersLocationListsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLocationListsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27387,18 +20512,12 @@ func (c *AdvertisersLocationListsCreateCall) Header() http.Header { } func (c *AdvertisersLocationListsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.locationlist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/locationLists") @@ -27411,16 +20530,14 @@ func (c *AdvertisersLocationListsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.create" call. -// Exactly one of *LocationList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LocationList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LocationList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersLocationListsCreateCall) Do(opts ...googleapi.CallOption) (*LocationList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27451,39 +20568,7 @@ func (c *AdvertisersLocationListsCreateCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Creates a new location list. Returns the newly created location list if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/locationLists", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.locationLists.create", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the location list belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/locationLists", - // "request": { - // "$ref": "LocationList" - // }, - // "response": { - // "$ref": "LocationList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.locationLists.get": +} type AdvertisersLocationListsGetCall struct { s *Service @@ -27497,8 +20582,8 @@ type AdvertisersLocationListsGetCall struct { // Get: Gets a location list. // -// - advertiserId: The ID of the DV360 advertiser to which the fetched -// location list belongs. +// - advertiserId: The ID of the DV360 advertiser to which the fetched location +// list belongs. // - locationListId: The ID of the location list to fetch. func (r *AdvertisersLocationListsService) Get(advertiserId int64, locationListId int64) *AdvertisersLocationListsGetCall { c := &AdvertisersLocationListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -27508,33 +20593,29 @@ func (r *AdvertisersLocationListsService) Get(advertiserId int64, locationListId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLocationListsGetCall) Fields(s ...googleapi.Field) *AdvertisersLocationListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersLocationListsGetCall) IfNoneMatch(entityTag string) *AdvertisersLocationListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLocationListsGetCall) Context(ctx context.Context) *AdvertisersLocationListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLocationListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27543,12 +20624,7 @@ func (c *AdvertisersLocationListsGetCall) Header() http.Header { } func (c *AdvertisersLocationListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27566,16 +20642,14 @@ func (c *AdvertisersLocationListsGetCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.get" call. -// Exactly one of *LocationList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LocationList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LocationList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersLocationListsGetCall) Do(opts ...googleapi.CallOption) (*LocationList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27606,45 +20680,7 @@ func (c *AdvertisersLocationListsGetCall) Do(opts ...googleapi.CallOption) (*Loc return nil, err } return ret, nil - // { - // "description": "Gets a location list.", - // "flatPath": "v1/advertisers/{advertisersId}/locationLists/{locationListsId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.locationLists.get", - // "parameterOrder": [ - // "advertiserId", - // "locationListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the fetched location list belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "locationListId": { - // "description": "Required. The ID of the location list to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/locationLists/{+locationListId}", - // "response": { - // "$ref": "LocationList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.locationLists.list": +} type AdvertisersLocationListsListCall struct { s *Service @@ -27657,88 +20693,81 @@ type AdvertisersLocationListsListCall struct { // List: Lists location lists based on a given advertiser id. // -// - advertiserId: The ID of the DV360 advertiser to which the fetched -// location lists belong. +// - advertiserId: The ID of the DV360 advertiser to which the fetched location +// lists belong. func (r *AdvertisersLocationListsService) List(advertiserId int64) *AdvertisersLocationListsListCall { c := &AdvertisersLocationListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId return c } -// Filter sets the optional parameter "filter": Allows filtering by -// location list fields. Supported syntax: * Filter expressions are made -// up of one or more restrictions. * Restrictions can be combined by -// `AND` or `OR` logical operators. A sequence of restrictions -// implicitly uses `AND`. * A restriction has the form of `{field} -// {operator} {value}`. * All fields must use the `EQUALS (=)` operator. -// Supported fields: * `locationType` Examples: * All regional location -// list: `locationType="TARGETING_LOCATION_TYPE_REGIONAL" * All -// proximity location list: -// `locationType="TARGETING_LOCATION_TYPE_PROXIMITY" The length of this -// field should be no more than 500 characters. Reference our filter -// `LIST` requests (/display-video/api/guides/how-tos/filters) guide for -// more information. +// Filter sets the optional parameter "filter": Allows filtering by location +// list fields. Supported syntax: * Filter expressions are made up of one or +// more restrictions. * Restrictions can be combined by `AND` or `OR` logical +// operators. A sequence of restrictions implicitly uses `AND`. * A restriction +// has the form of `{field} {operator} {value}`. * All fields must use the +// `EQUALS (=)` operator. Supported fields: * `locationType` Examples: * All +// regional location list: `locationType="TARGETING_LOCATION_TYPE_REGIONAL" * +// All proximity location list: +// `locationType="TARGETING_LOCATION_TYPE_PROXIMITY" The length of this field +// should be no more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersLocationListsListCall) Filter(filter string) *AdvertisersLocationListsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `locationListId` (default) * -// `displayName` The default sorting order is ascending. To specify -// descending order for a field, a suffix "desc" should be added to the -// field name. Example: `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `locationListId` (default) * `displayName` +// The default sorting order is ascending. To specify descending order for a +// field, a suffix "desc" should be added to the field name. Example: +// `displayName desc`. func (c *AdvertisersLocationListsListCall) OrderBy(orderBy string) *AdvertisersLocationListsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. Defaults to `100` if not set. Returns -// error code `INVALID_ARGUMENT` if an invalid value is specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. Defaults to `100` if not set. Returns error code +// `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersLocationListsListCall) PageSize(pageSize int64) *AdvertisersLocationListsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListLocationLists` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListLocationLists` +// method. If not specified, the first page of results will be returned. func (c *AdvertisersLocationListsListCall) PageToken(pageToken string) *AdvertisersLocationListsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLocationListsListCall) Fields(s ...googleapi.Field) *AdvertisersLocationListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersLocationListsListCall) IfNoneMatch(entityTag string) *AdvertisersLocationListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLocationListsListCall) Context(ctx context.Context) *AdvertisersLocationListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLocationListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27747,12 +20776,7 @@ func (c *AdvertisersLocationListsListCall) Header() http.Header { } func (c *AdvertisersLocationListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27769,16 +20793,15 @@ func (c *AdvertisersLocationListsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.list" call. -// Exactly one of *ListLocationListsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ListLocationListsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ListLocationListsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersLocationListsListCall) Do(opts ...googleapi.CallOption) (*ListLocationListsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27809,54 +20832,6 @@ func (c *AdvertisersLocationListsListCall) Do(opts ...googleapi.CallOption) (*Li return nil, err } return ret, nil - // { - // "description": "Lists location lists based on a given advertiser id.", - // "flatPath": "v1/advertisers/{advertisersId}/locationLists", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.locationLists.list", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the fetched location lists belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by location list fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `locationType` Examples: * All regional location list: `locationType=\"TARGETING_LOCATION_TYPE_REGIONAL\"` * All proximity location list: `locationType=\"TARGETING_LOCATION_TYPE_PROXIMITY\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `locationListId` (default) * `displayName` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. Defaults to `100` if not set. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListLocationLists` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/locationLists", - // "response": { - // "$ref": "ListLocationListsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -27864,7 +20839,7 @@ func (c *AdvertisersLocationListsListCall) Do(opts ...googleapi.CallOption) (*Li // The provided context supersedes any context provided to the Context method. func (c *AdvertisersLocationListsListCall) Pages(ctx context.Context, f func(*ListLocationListsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -27880,8 +20855,6 @@ func (c *AdvertisersLocationListsListCall) Pages(ctx context.Context, f func(*Li } } -// method id "displayvideo.advertisers.locationLists.patch": - type AdvertisersLocationListsPatchCall struct { s *Service advertiserId int64 @@ -27895,10 +20868,10 @@ type AdvertisersLocationListsPatchCall struct { // Patch: Updates a location list. Returns the updated location list if // successful. // -// - advertiserId: The ID of the DV360 advertiser to which the location -// lists belongs. -// - locationListId: Output only. The unique ID of the location list. -// Assigned by the system. +// - advertiserId: The ID of the DV360 advertiser to which the location lists +// belongs. +// - locationListId: Output only. The unique ID of the location list. Assigned +// by the system. func (r *AdvertisersLocationListsService) Patch(advertiserId int64, locationListId int64, locationlist *LocationList) *AdvertisersLocationListsPatchCall { c := &AdvertisersLocationListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -27907,31 +20880,29 @@ func (r *AdvertisersLocationListsService) Patch(advertiserId int64, locationList return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *AdvertisersLocationListsPatchCall) UpdateMask(updateMask string) *AdvertisersLocationListsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLocationListsPatchCall) Fields(s ...googleapi.Field) *AdvertisersLocationListsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLocationListsPatchCall) Context(ctx context.Context) *AdvertisersLocationListsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLocationListsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27940,18 +20911,12 @@ func (c *AdvertisersLocationListsPatchCall) Header() http.Header { } func (c *AdvertisersLocationListsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.locationlist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/locationLists/{locationListId}") @@ -27965,16 +20930,14 @@ func (c *AdvertisersLocationListsPatchCall) doRequest(alt string) (*http.Respons "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.patch" call. -// Exactly one of *LocationList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LocationList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LocationList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersLocationListsPatchCall) Do(opts ...googleapi.CallOption) (*LocationList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28005,53 +20968,7 @@ func (c *AdvertisersLocationListsPatchCall) Do(opts ...googleapi.CallOption) (*L return nil, err } return ret, nil - // { - // "description": "Updates a location list. Returns the updated location list if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/locationLists/{locationListId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.advertisers.locationLists.patch", - // "parameterOrder": [ - // "advertiserId", - // "locationListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the location lists belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "locationListId": { - // "description": "Output only. The unique ID of the location list. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/locationLists/{locationListId}", - // "request": { - // "$ref": "LocationList" - // }, - // "response": { - // "$ref": "LocationList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.locationLists.assignedLocations.bulkEdit": +} type AdvertisersLocationListsAssignedLocationsBulkEditCall struct { s *Service @@ -28063,15 +20980,15 @@ type AdvertisersLocationListsAssignedLocationsBulkEditCall struct { header_ http.Header } -// BulkEdit: Bulk edits multiple assignments between locations and a -// single location list. The operation will delete the assigned -// locations provided in deletedAssignedLocations and then create the -// assigned locations provided in createdAssignedLocations. +// BulkEdit: Bulk edits multiple assignments between locations and a single +// location list. The operation will delete the assigned locations provided in +// deletedAssignedLocations and then create the assigned locations provided in +// createdAssignedLocations. // -// - advertiserId: The ID of the DV360 advertiser to which the location -// list belongs. -// - locationListId: The ID of the location list to which these -// assignments are assigned. +// - advertiserId: The ID of the DV360 advertiser to which the location list +// belongs. +// - locationListId: The ID of the location list to which these assignments are +// assigned. func (r *AdvertisersLocationListsAssignedLocationsService) BulkEdit(advertiserId int64, locationListId int64, bulkeditassignedlocationsrequest *BulkEditAssignedLocationsRequest) *AdvertisersLocationListsAssignedLocationsBulkEditCall { c := &AdvertisersLocationListsAssignedLocationsBulkEditCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -28081,23 +20998,21 @@ func (r *AdvertisersLocationListsAssignedLocationsService) BulkEdit(advertiserId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) Fields(s ...googleapi.Field) *AdvertisersLocationListsAssignedLocationsBulkEditCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) Context(ctx context.Context) *AdvertisersLocationListsAssignedLocationsBulkEditCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28106,18 +21021,12 @@ func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) Header() http.He } func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bulkeditassignedlocationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{advertiserId}/locationLists/{+locationListId}/assignedLocations:bulkEdit") @@ -28131,17 +21040,15 @@ func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) doRequest(alt st "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.bulkEdit" call. -// Exactly one of *BulkEditAssignedLocationsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *BulkEditAssignedLocationsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkEditAssignedLocationsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) Do(opts ...googleapi.CallOption) (*BulkEditAssignedLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28172,47 +21079,7 @@ func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Bulk edits multiple assignments between locations and a single location list. The operation will delete the assigned locations provided in deletedAssignedLocations and then create the assigned locations provided in createdAssignedLocations.", - // "flatPath": "v1/advertisers/{advertiserId}/locationLists/{locationListsId}/assignedLocations:bulkEdit", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.locationLists.assignedLocations.bulkEdit", - // "parameterOrder": [ - // "advertiserId", - // "locationListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the location list belongs.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationListId": { - // "description": "Required. The ID of the location list to which these assignments are assigned.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/locationLists/{+locationListId}/assignedLocations:bulkEdit", - // "request": { - // "$ref": "BulkEditAssignedLocationsRequest" - // }, - // "response": { - // "$ref": "BulkEditAssignedLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.locationLists.assignedLocations.create": +} type AdvertisersLocationListsAssignedLocationsCreateCall struct { s *Service @@ -28226,10 +21093,10 @@ type AdvertisersLocationListsAssignedLocationsCreateCall struct { // Create: Creates an assignment between a location and a location list. // -// - advertiserId: The ID of the DV360 advertiser to which the location -// list belongs. -// - locationListId: The ID of the location list for which the -// assignment will be created. +// - advertiserId: The ID of the DV360 advertiser to which the location list +// belongs. +// - locationListId: The ID of the location list for which the assignment will +// be created. func (r *AdvertisersLocationListsAssignedLocationsService) Create(advertiserId int64, locationListId int64, assignedlocation *AssignedLocation) *AdvertisersLocationListsAssignedLocationsCreateCall { c := &AdvertisersLocationListsAssignedLocationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -28239,23 +21106,21 @@ func (r *AdvertisersLocationListsAssignedLocationsService) Create(advertiserId i } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLocationListsAssignedLocationsCreateCall) Fields(s ...googleapi.Field) *AdvertisersLocationListsAssignedLocationsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLocationListsAssignedLocationsCreateCall) Context(ctx context.Context) *AdvertisersLocationListsAssignedLocationsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLocationListsAssignedLocationsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28264,18 +21129,12 @@ func (c *AdvertisersLocationListsAssignedLocationsCreateCall) Header() http.Head } func (c *AdvertisersLocationListsAssignedLocationsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.assignedlocation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations") @@ -28289,16 +21148,15 @@ func (c *AdvertisersLocationListsAssignedLocationsCreateCall) doRequest(alt stri "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.create" call. -// Exactly one of *AssignedLocation or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AssignedLocation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AssignedLocation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersLocationListsAssignedLocationsCreateCall) Do(opts ...googleapi.CallOption) (*AssignedLocation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28329,46 +21187,7 @@ func (c *AdvertisersLocationListsAssignedLocationsCreateCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Creates an assignment between a location and a location list.", - // "flatPath": "v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.locationLists.assignedLocations.create", - // "parameterOrder": [ - // "advertiserId", - // "locationListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the location list belongs.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationListId": { - // "description": "Required. The ID of the location list for which the assignment will be created.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations", - // "request": { - // "$ref": "AssignedLocation" - // }, - // "response": { - // "$ref": "AssignedLocation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.locationLists.assignedLocations.delete": +} type AdvertisersLocationListsAssignedLocationsDeleteCall struct { s *Service @@ -28380,14 +21199,13 @@ type AdvertisersLocationListsAssignedLocationsDeleteCall struct { header_ http.Header } -// Delete: Deletes the assignment between a location and a location -// list. +// Delete: Deletes the assignment between a location and a location list. // -// - advertiserId: The ID of the DV360 advertiser to which the location -// list belongs. +// - advertiserId: The ID of the DV360 advertiser to which the location list +// belongs. // - assignedLocationId: The ID of the assigned location to delete. -// - locationListId: The ID of the location list to which this -// assignment is assigned. +// - locationListId: The ID of the location list to which this assignment is +// assigned. func (r *AdvertisersLocationListsAssignedLocationsService) Delete(advertiserId int64, locationListId int64, assignedLocationId int64) *AdvertisersLocationListsAssignedLocationsDeleteCall { c := &AdvertisersLocationListsAssignedLocationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -28397,23 +21215,21 @@ func (r *AdvertisersLocationListsAssignedLocationsService) Delete(advertiserId i } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) Fields(s ...googleapi.Field) *AdvertisersLocationListsAssignedLocationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) Context(ctx context.Context) *AdvertisersLocationListsAssignedLocationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28422,12 +21238,7 @@ func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) Header() http.Head } func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -28443,16 +21254,14 @@ func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) doRequest(alt stri "locationListId": strconv.FormatInt(c.locationListId, 10), "assignedLocationId": strconv.FormatInt(c.assignedLocationId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28483,52 +21292,7 @@ func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Deletes the assignment between a location and a location list.", - // "flatPath": "v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations/{assignedLocationsId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.locationLists.assignedLocations.delete", - // "parameterOrder": [ - // "advertiserId", - // "locationListId", - // "assignedLocationId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the location list belongs.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "assignedLocationId": { - // "description": "Required. The ID of the assigned location to delete.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "locationListId": { - // "description": "Required. The ID of the location list to which this assignment is assigned.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations/{+assignedLocationId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.locationLists.assignedLocations.list": +} type AdvertisersLocationListsAssignedLocationsListCall struct { s *Service @@ -28542,10 +21306,10 @@ type AdvertisersLocationListsAssignedLocationsListCall struct { // List: Lists locations assigned to a location list. // -// - advertiserId: The ID of the DV360 advertiser to which the location -// list belongs. -// - locationListId: The ID of the location list to which these -// assignments are assigned. +// - advertiserId: The ID of the DV360 advertiser to which the location list +// belongs. +// - locationListId: The ID of the location list to which these assignments are +// assigned. func (r *AdvertisersLocationListsAssignedLocationsService) List(advertiserId int64, locationListId int64) *AdvertisersLocationListsAssignedLocationsListCall { c := &AdvertisersLocationListsAssignedLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -28553,78 +21317,70 @@ func (r *AdvertisersLocationListsAssignedLocationsService) List(advertiserId int return c } -// Filter sets the optional parameter "filter": Allows filtering by -// location list assignment fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the `OR` logical operator. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=)` operator. Supported fields: * `assignedLocationId` The -// length of this field should be no more than 500 characters. Reference -// our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// Filter sets the optional parameter "filter": Allows filtering by location +// list assignment fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the `OR` +// logical operator. * A restriction has the form of `{field} {operator} +// {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: +// * `assignedLocationId` The length of this field should be no more than 500 +// characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersLocationListsAssignedLocationsListCall) Filter(filter string) *AdvertisersLocationListsAssignedLocationsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `assignedLocationId` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix " desc" should be added to the field name. Example: +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `assignedLocationId` (default) The default +// sorting order is ascending. To specify descending order for a field, a +// suffix " desc" should be added to the field name. Example: // `assignedLocationId desc`. func (c *AdvertisersLocationListsAssignedLocationsListCall) OrderBy(orderBy string) *AdvertisersLocationListsAssignedLocationsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersLocationListsAssignedLocationsListCall) PageSize(pageSize int64) *AdvertisersLocationListsAssignedLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListAssignedLocations` method. If not specified, the first page -// of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListAssignedLocations` +// method. If not specified, the first page of results will be returned. func (c *AdvertisersLocationListsAssignedLocationsListCall) PageToken(pageToken string) *AdvertisersLocationListsAssignedLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersLocationListsAssignedLocationsListCall) Fields(s ...googleapi.Field) *AdvertisersLocationListsAssignedLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersLocationListsAssignedLocationsListCall) IfNoneMatch(entityTag string) *AdvertisersLocationListsAssignedLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersLocationListsAssignedLocationsListCall) Context(ctx context.Context) *AdvertisersLocationListsAssignedLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersLocationListsAssignedLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28633,12 +21389,7 @@ func (c *AdvertisersLocationListsAssignedLocationsListCall) Header() http.Header } func (c *AdvertisersLocationListsAssignedLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28656,16 +21407,15 @@ func (c *AdvertisersLocationListsAssignedLocationsListCall) doRequest(alt string "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.list" call. -// Exactly one of *ListAssignedLocationsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListAssignedLocationsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListAssignedLocationsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersLocationListsAssignedLocationsListCall) Do(opts ...googleapi.CallOption) (*ListAssignedLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28696,61 +21446,6 @@ func (c *AdvertisersLocationListsAssignedLocationsListCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Lists locations assigned to a location list.", - // "flatPath": "v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.locationLists.assignedLocations.list", - // "parameterOrder": [ - // "advertiserId", - // "locationListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the location list belongs.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by location list assignment fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the `OR` logical operator. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `assignedLocationId` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "locationListId": { - // "description": "Required. The ID of the location list to which these assignments are assigned.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `assignedLocationId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be added to the field name. Example: `assignedLocationId desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListAssignedLocations` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations", - // "response": { - // "$ref": "ListAssignedLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -28758,7 +21453,7 @@ func (c *AdvertisersLocationListsAssignedLocationsListCall) Do(opts ...googleapi // The provided context supersedes any context provided to the Context method. func (c *AdvertisersLocationListsAssignedLocationsListCall) Pages(ctx context.Context, f func(*ListAssignedLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -28774,8 +21469,6 @@ func (c *AdvertisersLocationListsAssignedLocationsListCall) Pages(ctx context.Co } } -// method id "displayvideo.advertisers.manualTriggers.activate": - type AdvertisersManualTriggersActivateCall struct { s *Service advertiserId int64 @@ -28786,17 +21479,16 @@ type AdvertisersManualTriggersActivateCall struct { header_ http.Header } -// Activate: Activates a manual trigger. Each activation of the manual -// trigger must be at least 5 minutes apart, otherwise an error will be -// returned. **Warning:** Line Items using manual triggers no longer -// serve in Display & Video 360. This method will sunset on August 1, -// 2023. Read our feature deprecation announcement +// Activate: Activates a manual trigger. Each activation of the manual trigger +// must be at least 5 minutes apart, otherwise an error will be returned. +// **Warning:** Line Items using manual triggers no longer serve in Display & +// Video 360. This method will sunset on August 1, 2023. Read our feature +// deprecation announcement // (/display-video/api/deprecations#features.manual_triggers) for more // information. // -// - advertiserId: The ID of the advertiser that the manual trigger -// belongs. -// - triggerId: The ID of the manual trigger to activate. +// - advertiserId: The ID of the advertiser that the manual trigger belongs. +// - triggerId: The ID of the manual trigger to activate. func (r *AdvertisersManualTriggersService) Activate(advertiserId int64, triggerId int64, activatemanualtriggerrequest *ActivateManualTriggerRequest) *AdvertisersManualTriggersActivateCall { c := &AdvertisersManualTriggersActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -28806,23 +21498,21 @@ func (r *AdvertisersManualTriggersService) Activate(advertiserId int64, triggerI } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersManualTriggersActivateCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersActivateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersManualTriggersActivateCall) Context(ctx context.Context) *AdvertisersManualTriggersActivateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersManualTriggersActivateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28831,18 +21521,12 @@ func (c *AdvertisersManualTriggersActivateCall) Header() http.Header { } func (c *AdvertisersManualTriggersActivateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.activatemanualtriggerrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:activate") @@ -28856,16 +21540,14 @@ func (c *AdvertisersManualTriggersActivateCall) doRequest(alt string) (*http.Res "advertiserId": strconv.FormatInt(c.advertiserId, 10), "triggerId": strconv.FormatInt(c.triggerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.activate" call. -// Exactly one of *ManualTrigger or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ManualTrigger.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManualTrigger.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersManualTriggersActivateCall) Do(opts ...googleapi.CallOption) (*ManualTrigger, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28896,48 +21578,7 @@ func (c *AdvertisersManualTriggersActivateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Activates a manual trigger. Each activation of the manual trigger must be at least 5 minutes apart, otherwise an error will be returned. **Warning:** Line Items using manual triggers no longer serve in Display \u0026 Video 360. This method will sunset on August 1, 2023. Read our [feature deprecation announcement](/display-video/api/deprecations#features.manual_triggers) for more information.", - // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}:activate", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.manualTriggers.activate", - // "parameterOrder": [ - // "advertiserId", - // "triggerId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser that the manual trigger belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "triggerId": { - // "description": "Required. The ID of the manual trigger to activate.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:activate", - // "request": { - // "$ref": "ActivateManualTriggerRequest" - // }, - // "response": { - // "$ref": "ManualTrigger" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.manualTriggers.create": +} type AdvertisersManualTriggersCreateCall struct { s *Service @@ -28948,15 +21589,15 @@ type AdvertisersManualTriggersCreateCall struct { header_ http.Header } -// Create: Creates a new manual trigger. Returns the newly created -// manual trigger if successful. **Warning:** Line Items using manual -// triggers no longer serve in Display & Video 360. This method will -// sunset on August 1, 2023. Read our feature deprecation announcement +// Create: Creates a new manual trigger. Returns the newly created manual +// trigger if successful. **Warning:** Line Items using manual triggers no +// longer serve in Display & Video 360. This method will sunset on August 1, +// 2023. Read our feature deprecation announcement // (/display-video/api/deprecations#features.manual_triggers) for more // information. // -// - advertiserId: Immutable. The unique ID of the advertiser that the -// manual trigger belongs to. +// - advertiserId: Immutable. The unique ID of the advertiser that the manual +// trigger belongs to. func (r *AdvertisersManualTriggersService) Create(advertiserId int64, manualtrigger *ManualTrigger) *AdvertisersManualTriggersCreateCall { c := &AdvertisersManualTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -28965,23 +21606,21 @@ func (r *AdvertisersManualTriggersService) Create(advertiserId int64, manualtrig } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersManualTriggersCreateCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersManualTriggersCreateCall) Context(ctx context.Context) *AdvertisersManualTriggersCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersManualTriggersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28990,18 +21629,12 @@ func (c *AdvertisersManualTriggersCreateCall) Header() http.Header { } func (c *AdvertisersManualTriggersCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.manualtrigger) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/manualTriggers") @@ -29014,16 +21647,14 @@ func (c *AdvertisersManualTriggersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.create" call. -// Exactly one of *ManualTrigger or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ManualTrigger.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManualTrigger.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersManualTriggersCreateCall) Do(opts ...googleapi.CallOption) (*ManualTrigger, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29054,39 +21685,7 @@ func (c *AdvertisersManualTriggersCreateCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Creates a new manual trigger. Returns the newly created manual trigger if successful. **Warning:** Line Items using manual triggers no longer serve in Display \u0026 Video 360. This method will sunset on August 1, 2023. Read our [feature deprecation announcement](/display-video/api/deprecations#features.manual_triggers) for more information.", - // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.manualTriggers.create", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. Immutable. The unique ID of the advertiser that the manual trigger belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/manualTriggers", - // "request": { - // "$ref": "ManualTrigger" - // }, - // "response": { - // "$ref": "ManualTrigger" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.manualTriggers.deactivate": +} type AdvertisersManualTriggersDeactivateCall struct { s *Service @@ -29098,16 +21697,14 @@ type AdvertisersManualTriggersDeactivateCall struct { header_ http.Header } -// Deactivate: Deactivates a manual trigger. **Warning:** Line Items -// using manual triggers no longer serve in Display & Video 360. This -// method will sunset on August 1, 2023. Read our feature deprecation -// announcement +// Deactivate: Deactivates a manual trigger. **Warning:** Line Items using +// manual triggers no longer serve in Display & Video 360. This method will +// sunset on August 1, 2023. Read our feature deprecation announcement // (/display-video/api/deprecations#features.manual_triggers) for more // information. // -// - advertiserId: The ID of the advertiser that the manual trigger -// belongs. -// - triggerId: The ID of the manual trigger to deactivate. +// - advertiserId: The ID of the advertiser that the manual trigger belongs. +// - triggerId: The ID of the manual trigger to deactivate. func (r *AdvertisersManualTriggersService) Deactivate(advertiserId int64, triggerId int64, deactivatemanualtriggerrequest *DeactivateManualTriggerRequest) *AdvertisersManualTriggersDeactivateCall { c := &AdvertisersManualTriggersDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -29117,23 +21714,21 @@ func (r *AdvertisersManualTriggersService) Deactivate(advertiserId int64, trigge } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersManualTriggersDeactivateCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersDeactivateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersManualTriggersDeactivateCall) Context(ctx context.Context) *AdvertisersManualTriggersDeactivateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersManualTriggersDeactivateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29142,18 +21737,12 @@ func (c *AdvertisersManualTriggersDeactivateCall) Header() http.Header { } func (c *AdvertisersManualTriggersDeactivateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.deactivatemanualtriggerrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:deactivate") @@ -29167,16 +21756,14 @@ func (c *AdvertisersManualTriggersDeactivateCall) doRequest(alt string) (*http.R "advertiserId": strconv.FormatInt(c.advertiserId, 10), "triggerId": strconv.FormatInt(c.triggerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.deactivate" call. -// Exactly one of *ManualTrigger or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ManualTrigger.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManualTrigger.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersManualTriggersDeactivateCall) Do(opts ...googleapi.CallOption) (*ManualTrigger, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29207,48 +21794,7 @@ func (c *AdvertisersManualTriggersDeactivateCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Deactivates a manual trigger. **Warning:** Line Items using manual triggers no longer serve in Display \u0026 Video 360. This method will sunset on August 1, 2023. Read our [feature deprecation announcement](/display-video/api/deprecations#features.manual_triggers) for more information.", - // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}:deactivate", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.manualTriggers.deactivate", - // "parameterOrder": [ - // "advertiserId", - // "triggerId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser that the manual trigger belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "triggerId": { - // "description": "Required. The ID of the manual trigger to deactivate.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:deactivate", - // "request": { - // "$ref": "DeactivateManualTriggerRequest" - // }, - // "response": { - // "$ref": "ManualTrigger" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.manualTriggers.get": +} type AdvertisersManualTriggersGetCall struct { s *Service @@ -29260,15 +21806,14 @@ type AdvertisersManualTriggersGetCall struct { header_ http.Header } -// Get: Gets a manual trigger. **Warning:** Line Items using manual -// triggers no longer serve in Display & Video 360. This method will -// sunset on August 1, 2023. Read our feature deprecation announcement +// Get: Gets a manual trigger. **Warning:** Line Items using manual triggers no +// longer serve in Display & Video 360. This method will sunset on August 1, +// 2023. Read our feature deprecation announcement // (/display-video/api/deprecations#features.manual_triggers) for more // information. // -// - advertiserId: The ID of the advertiser this manual trigger belongs -// to. -// - triggerId: The ID of the manual trigger to fetch. +// - advertiserId: The ID of the advertiser this manual trigger belongs to. +// - triggerId: The ID of the manual trigger to fetch. func (r *AdvertisersManualTriggersService) Get(advertiserId int64, triggerId int64) *AdvertisersManualTriggersGetCall { c := &AdvertisersManualTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -29277,33 +21822,29 @@ func (r *AdvertisersManualTriggersService) Get(advertiserId int64, triggerId int } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersManualTriggersGetCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersManualTriggersGetCall) IfNoneMatch(entityTag string) *AdvertisersManualTriggersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersManualTriggersGetCall) Context(ctx context.Context) *AdvertisersManualTriggersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersManualTriggersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29312,12 +21853,7 @@ func (c *AdvertisersManualTriggersGetCall) Header() http.Header { } func (c *AdvertisersManualTriggersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29335,16 +21871,14 @@ func (c *AdvertisersManualTriggersGetCall) doRequest(alt string) (*http.Response "advertiserId": strconv.FormatInt(c.advertiserId, 10), "triggerId": strconv.FormatInt(c.triggerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.get" call. -// Exactly one of *ManualTrigger or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ManualTrigger.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManualTrigger.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersManualTriggersGetCall) Do(opts ...googleapi.CallOption) (*ManualTrigger, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29375,45 +21909,7 @@ func (c *AdvertisersManualTriggersGetCall) Do(opts ...googleapi.CallOption) (*Ma return nil, err } return ret, nil - // { - // "description": "Gets a manual trigger. **Warning:** Line Items using manual triggers no longer serve in Display \u0026 Video 360. This method will sunset on August 1, 2023. Read our [feature deprecation announcement](/display-video/api/deprecations#features.manual_triggers) for more information.", - // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.manualTriggers.get", - // "parameterOrder": [ - // "advertiserId", - // "triggerId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser this manual trigger belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "triggerId": { - // "description": "Required. The ID of the manual trigger to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}", - // "response": { - // "$ref": "ManualTrigger" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.manualTriggers.list": +} type AdvertisersManualTriggersListCall struct { s *Service @@ -29424,94 +21920,87 @@ type AdvertisersManualTriggersListCall struct { header_ http.Header } -// List: Lists manual triggers that are accessible to the current user -// for a given advertiser ID. The order is defined by the order_by -// parameter. A single advertiser_id is required. **Warning:** Line -// Items using manual triggers no longer serve in Display & Video 360. -// This method will sunset on August 1, 2023. Read our feature -// deprecation announcement +// List: Lists manual triggers that are accessible to the current user for a +// given advertiser ID. The order is defined by the order_by parameter. A +// single advertiser_id is required. **Warning:** Line Items using manual +// triggers no longer serve in Display & Video 360. This method will sunset on +// August 1, 2023. Read our feature deprecation announcement // (/display-video/api/deprecations#features.manual_triggers) for more // information. // -// - advertiserId: The ID of the advertiser that the fetched manual -// triggers belong to. +// - advertiserId: The ID of the advertiser that the fetched manual triggers +// belong to. func (r *AdvertisersManualTriggersService) List(advertiserId int64) *AdvertisersManualTriggersListCall { c := &AdvertisersManualTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId return c } -// Filter sets the optional parameter "filter": Allows filtering by -// manual trigger fields. Supported syntax: * Filter expressions are -// made up of one or more restrictions. * Restrictions can be combined -// by `AND` or `OR` logical operators. A sequence of restrictions -// implicitly uses `AND`. * A restriction has the form of `{field} -// {operator} {value}`. * All fields must use the `EQUALS (=)` operator. -// Supported fields: * `displayName` * `state` Examples: * All active -// manual triggers under an advertiser: `state="ACTIVE" The length of -// this field should be no more than 500 characters. Reference our -// filter `LIST` requests (/display-video/api/guides/how-tos/filters) -// guide for more information. +// Filter sets the optional parameter "filter": Allows filtering by manual +// trigger fields. Supported syntax: * Filter expressions are made up of one or +// more restrictions. * Restrictions can be combined by `AND` or `OR` logical +// operators. A sequence of restrictions implicitly uses `AND`. * A restriction +// has the form of `{field} {operator} {value}`. * All fields must use the +// `EQUALS (=)` operator. Supported fields: * `displayName` * `state` Examples: +// * All active manual triggers under an advertiser: `state="ACTIVE" The +// length of this field should be no more than 500 characters. Reference our +// filter `LIST` requests (/display-video/api/guides/how-tos/filters) guide for +// more information. func (c *AdvertisersManualTriggersListCall) Filter(filter string) *AdvertisersManualTriggersListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) * `state` -// The default sorting order is ascending. To specify descending order -// for a field, a suffix "desc" should be added to the field name. For -// example, `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) * `state` The default +// sorting order is ascending. To specify descending order for a field, a +// suffix "desc" should be added to the field name. For example, `displayName +// desc`. func (c *AdvertisersManualTriggersListCall) OrderBy(orderBy string) *AdvertisersManualTriggersListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. func (c *AdvertisersManualTriggersListCall) PageSize(pageSize int64) *AdvertisersManualTriggersListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListManualTriggers` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListManualTriggers` +// method. If not specified, the first page of results will be returned. func (c *AdvertisersManualTriggersListCall) PageToken(pageToken string) *AdvertisersManualTriggersListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersManualTriggersListCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersManualTriggersListCall) IfNoneMatch(entityTag string) *AdvertisersManualTriggersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersManualTriggersListCall) Context(ctx context.Context) *AdvertisersManualTriggersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersManualTriggersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29520,12 +22009,7 @@ func (c *AdvertisersManualTriggersListCall) Header() http.Header { } func (c *AdvertisersManualTriggersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29542,16 +22026,15 @@ func (c *AdvertisersManualTriggersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.list" call. -// Exactly one of *ListManualTriggersResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ListManualTriggersResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ListManualTriggersResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersManualTriggersListCall) Do(opts ...googleapi.CallOption) (*ListManualTriggersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29582,54 +22065,6 @@ func (c *AdvertisersManualTriggersListCall) Do(opts ...googleapi.CallOption) (*L return nil, err } return ret, nil - // { - // "description": "Lists manual triggers that are accessible to the current user for a given advertiser ID. The order is defined by the order_by parameter. A single advertiser_id is required. **Warning:** Line Items using manual triggers no longer serve in Display \u0026 Video 360. This method will sunset on August 1, 2023. Read our [feature deprecation announcement](/display-video/api/deprecations#features.manual_triggers) for more information.", - // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.manualTriggers.list", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser that the fetched manual triggers belong to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by manual trigger fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `displayName` * `state` Examples: * All active manual triggers under an advertiser: `state=\"ACTIVE\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) * `state` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListManualTriggers` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/manualTriggers", - // "response": { - // "$ref": "ListManualTriggersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -29637,7 +22072,7 @@ func (c *AdvertisersManualTriggersListCall) Do(opts ...googleapi.CallOption) (*L // The provided context supersedes any context provided to the Context method. func (c *AdvertisersManualTriggersListCall) Pages(ctx context.Context, f func(*ListManualTriggersResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -29653,8 +22088,6 @@ func (c *AdvertisersManualTriggersListCall) Pages(ctx context.Context, f func(*L } } -// method id "displayvideo.advertisers.manualTriggers.patch": - type AdvertisersManualTriggersPatchCall struct { s *Service advertiserId int64 @@ -29665,15 +22098,15 @@ type AdvertisersManualTriggersPatchCall struct { header_ http.Header } -// Patch: Updates a manual trigger. Returns the updated manual trigger -// if successful. **Warning:** Line Items using manual triggers no -// longer serve in Display & Video 360. This method will sunset on -// August 1, 2023. Read our feature deprecation announcement +// Patch: Updates a manual trigger. Returns the updated manual trigger if +// successful. **Warning:** Line Items using manual triggers no longer serve in +// Display & Video 360. This method will sunset on August 1, 2023. Read our +// feature deprecation announcement // (/display-video/api/deprecations#features.manual_triggers) for more // information. // -// - advertiserId: Immutable. The unique ID of the advertiser that the -// manual trigger belongs to. +// - advertiserId: Immutable. The unique ID of the advertiser that the manual +// trigger belongs to. // - triggerId: Output only. The unique ID of the manual trigger. func (r *AdvertisersManualTriggersService) Patch(advertiserId int64, triggerId int64, manualtrigger *ManualTrigger) *AdvertisersManualTriggersPatchCall { c := &AdvertisersManualTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -29683,31 +22116,29 @@ func (r *AdvertisersManualTriggersService) Patch(advertiserId int64, triggerId i return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *AdvertisersManualTriggersPatchCall) UpdateMask(updateMask string) *AdvertisersManualTriggersPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersManualTriggersPatchCall) Fields(s ...googleapi.Field) *AdvertisersManualTriggersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersManualTriggersPatchCall) Context(ctx context.Context) *AdvertisersManualTriggersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersManualTriggersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29716,18 +22147,12 @@ func (c *AdvertisersManualTriggersPatchCall) Header() http.Header { } func (c *AdvertisersManualTriggersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.manualtrigger) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}") @@ -29741,16 +22166,14 @@ func (c *AdvertisersManualTriggersPatchCall) doRequest(alt string) (*http.Respon "advertiserId": strconv.FormatInt(c.advertiserId, 10), "triggerId": strconv.FormatInt(c.triggerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.patch" call. -// Exactly one of *ManualTrigger or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ManualTrigger.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManualTrigger.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersManualTriggersPatchCall) Do(opts ...googleapi.CallOption) (*ManualTrigger, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29781,54 +22204,7 @@ func (c *AdvertisersManualTriggersPatchCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates a manual trigger. Returns the updated manual trigger if successful. **Warning:** Line Items using manual triggers no longer serve in Display \u0026 Video 360. This method will sunset on August 1, 2023. Read our [feature deprecation announcement](/display-video/api/deprecations#features.manual_triggers) for more information.", - // "flatPath": "v1/advertisers/{advertisersId}/manualTriggers/{manualTriggersId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.advertisers.manualTriggers.patch", - // "parameterOrder": [ - // "advertiserId", - // "triggerId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. Immutable. The unique ID of the advertiser that the manual trigger belongs to.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "triggerId": { - // "description": "Output only. The unique ID of the manual trigger.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}", - // "request": { - // "$ref": "ManualTrigger" - // }, - // "response": { - // "$ref": "ManualTrigger" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.negativeKeywordLists.create": +} type AdvertisersNegativeKeywordListsCreateCall struct { s *Service @@ -29839,11 +22215,11 @@ type AdvertisersNegativeKeywordListsCreateCall struct { header_ http.Header } -// Create: Creates a new negative keyword list. Returns the newly -// created negative keyword list if successful. +// Create: Creates a new negative keyword list. Returns the newly created +// negative keyword list if successful. // -// - advertiserId: The ID of the DV360 advertiser to which the negative -// keyword list will belong. +// - advertiserId: The ID of the DV360 advertiser to which the negative keyword +// list will belong. func (r *AdvertisersNegativeKeywordListsService) Create(advertiserId int64, negativekeywordlist *NegativeKeywordList) *AdvertisersNegativeKeywordListsCreateCall { c := &AdvertisersNegativeKeywordListsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -29852,23 +22228,21 @@ func (r *AdvertisersNegativeKeywordListsService) Create(advertiserId int64, nega } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersNegativeKeywordListsCreateCall) Fields(s ...googleapi.Field) *AdvertisersNegativeKeywordListsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersNegativeKeywordListsCreateCall) Context(ctx context.Context) *AdvertisersNegativeKeywordListsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersNegativeKeywordListsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29877,18 +22251,12 @@ func (c *AdvertisersNegativeKeywordListsCreateCall) Header() http.Header { } func (c *AdvertisersNegativeKeywordListsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.negativekeywordlist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/negativeKeywordLists") @@ -29901,16 +22269,15 @@ func (c *AdvertisersNegativeKeywordListsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.create" call. -// Exactly one of *NegativeKeywordList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *NegativeKeywordList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *NegativeKeywordList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersNegativeKeywordListsCreateCall) Do(opts ...googleapi.CallOption) (*NegativeKeywordList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29941,39 +22308,7 @@ func (c *AdvertisersNegativeKeywordListsCreateCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Creates a new negative keyword list. Returns the newly created negative keyword list if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/negativeKeywordLists", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.negativeKeywordLists.create", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the negative keyword list will belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/negativeKeywordLists", - // "request": { - // "$ref": "NegativeKeywordList" - // }, - // "response": { - // "$ref": "NegativeKeywordList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.negativeKeywordLists.delete": +} type AdvertisersNegativeKeywordListsDeleteCall struct { s *Service @@ -29987,10 +22322,9 @@ type AdvertisersNegativeKeywordListsDeleteCall struct { // Delete: Deletes a negative keyword list given an advertiser ID and a // negative keyword list ID. // -// - advertiserId: The ID of the DV360 advertiser to which the negative -// keyword list belongs. -// - negativeKeywordListId: The ID of the negative keyword list to -// delete. +// - advertiserId: The ID of the DV360 advertiser to which the negative keyword +// list belongs. +// - negativeKeywordListId: The ID of the negative keyword list to delete. func (r *AdvertisersNegativeKeywordListsService) Delete(advertiserId int64, negativeKeywordListId int64) *AdvertisersNegativeKeywordListsDeleteCall { c := &AdvertisersNegativeKeywordListsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -29999,23 +22333,21 @@ func (r *AdvertisersNegativeKeywordListsService) Delete(advertiserId int64, nega } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersNegativeKeywordListsDeleteCall) Fields(s ...googleapi.Field) *AdvertisersNegativeKeywordListsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersNegativeKeywordListsDeleteCall) Context(ctx context.Context) *AdvertisersNegativeKeywordListsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersNegativeKeywordListsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30024,12 +22356,7 @@ func (c *AdvertisersNegativeKeywordListsDeleteCall) Header() http.Header { } func (c *AdvertisersNegativeKeywordListsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -30044,16 +22371,14 @@ func (c *AdvertisersNegativeKeywordListsDeleteCall) doRequest(alt string) (*http "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersNegativeKeywordListsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30084,45 +22409,7 @@ func (c *AdvertisersNegativeKeywordListsDeleteCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Deletes a negative keyword list given an advertiser ID and a negative keyword list ID.", - // "flatPath": "v1/advertisers/{advertisersId}/negativeKeywordLists/{negativeKeywordListsId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.negativeKeywordLists.delete", - // "parameterOrder": [ - // "advertiserId", - // "negativeKeywordListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the negative keyword list belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "negativeKeywordListId": { - // "description": "Required. The ID of the negative keyword list to delete.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.negativeKeywordLists.get": +} type AdvertisersNegativeKeywordListsGetCall struct { s *Service @@ -30134,13 +22421,12 @@ type AdvertisersNegativeKeywordListsGetCall struct { header_ http.Header } -// Get: Gets a negative keyword list given an advertiser ID and a -// negative keyword list ID. +// Get: Gets a negative keyword list given an advertiser ID and a negative +// keyword list ID. // -// - advertiserId: The ID of the DV360 advertiser to which the fetched -// negative keyword list belongs. -// - negativeKeywordListId: The ID of the negative keyword list to -// fetch. +// - advertiserId: The ID of the DV360 advertiser to which the fetched negative +// keyword list belongs. +// - negativeKeywordListId: The ID of the negative keyword list to fetch. func (r *AdvertisersNegativeKeywordListsService) Get(advertiserId int64, negativeKeywordListId int64) *AdvertisersNegativeKeywordListsGetCall { c := &AdvertisersNegativeKeywordListsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -30149,33 +22435,29 @@ func (r *AdvertisersNegativeKeywordListsService) Get(advertiserId int64, negativ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersNegativeKeywordListsGetCall) Fields(s ...googleapi.Field) *AdvertisersNegativeKeywordListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersNegativeKeywordListsGetCall) IfNoneMatch(entityTag string) *AdvertisersNegativeKeywordListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersNegativeKeywordListsGetCall) Context(ctx context.Context) *AdvertisersNegativeKeywordListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersNegativeKeywordListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30184,12 +22466,7 @@ func (c *AdvertisersNegativeKeywordListsGetCall) Header() http.Header { } func (c *AdvertisersNegativeKeywordListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30207,16 +22484,15 @@ func (c *AdvertisersNegativeKeywordListsGetCall) doRequest(alt string) (*http.Re "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.get" call. -// Exactly one of *NegativeKeywordList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *NegativeKeywordList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *NegativeKeywordList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersNegativeKeywordListsGetCall) Do(opts ...googleapi.CallOption) (*NegativeKeywordList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30247,45 +22523,7 @@ func (c *AdvertisersNegativeKeywordListsGetCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Gets a negative keyword list given an advertiser ID and a negative keyword list ID.", - // "flatPath": "v1/advertisers/{advertisersId}/negativeKeywordLists/{negativeKeywordListsId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.negativeKeywordLists.get", - // "parameterOrder": [ - // "advertiserId", - // "negativeKeywordListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the fetched negative keyword list belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "negativeKeywordListId": { - // "description": "Required. The ID of the negative keyword list to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}", - // "response": { - // "$ref": "NegativeKeywordList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.negativeKeywordLists.list": +} type AdvertisersNegativeKeywordListsListCall struct { s *Service @@ -30298,60 +22536,56 @@ type AdvertisersNegativeKeywordListsListCall struct { // List: Lists negative keyword lists based on a given advertiser id. // -// - advertiserId: The ID of the DV360 advertiser to which the fetched -// negative keyword lists belong. +// - advertiserId: The ID of the DV360 advertiser to which the fetched negative +// keyword lists belong. func (r *AdvertisersNegativeKeywordListsService) List(advertiserId int64) *AdvertisersNegativeKeywordListsListCall { c := &AdvertisersNegativeKeywordListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. Defaults to `100` if not set. Returns -// error code `INVALID_ARGUMENT` if an invalid value is specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. Defaults to `100` if not set. Returns error code +// `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersNegativeKeywordListsListCall) PageSize(pageSize int64) *AdvertisersNegativeKeywordListsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListNegativeKeywordLists` method. If not specified, the first -// page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to +// `ListNegativeKeywordLists` method. If not specified, the first page of +// results will be returned. func (c *AdvertisersNegativeKeywordListsListCall) PageToken(pageToken string) *AdvertisersNegativeKeywordListsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersNegativeKeywordListsListCall) Fields(s ...googleapi.Field) *AdvertisersNegativeKeywordListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersNegativeKeywordListsListCall) IfNoneMatch(entityTag string) *AdvertisersNegativeKeywordListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersNegativeKeywordListsListCall) Context(ctx context.Context) *AdvertisersNegativeKeywordListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersNegativeKeywordListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30360,12 +22594,7 @@ func (c *AdvertisersNegativeKeywordListsListCall) Header() http.Header { } func (c *AdvertisersNegativeKeywordListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -30382,16 +22611,15 @@ func (c *AdvertisersNegativeKeywordListsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.list" call. -// Exactly one of *ListNegativeKeywordListsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListNegativeKeywordListsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListNegativeKeywordListsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersNegativeKeywordListsListCall) Do(opts ...googleapi.CallOption) (*ListNegativeKeywordListsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30422,44 +22650,6 @@ func (c *AdvertisersNegativeKeywordListsListCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Lists negative keyword lists based on a given advertiser id.", - // "flatPath": "v1/advertisers/{advertisersId}/negativeKeywordLists", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.negativeKeywordLists.list", - // "parameterOrder": [ - // "advertiserId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the fetched negative keyword lists belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. Defaults to `100` if not set. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListNegativeKeywordLists` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/negativeKeywordLists", - // "response": { - // "$ref": "ListNegativeKeywordListsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -30467,7 +22657,7 @@ func (c *AdvertisersNegativeKeywordListsListCall) Do(opts ...googleapi.CallOptio // The provided context supersedes any context provided to the Context method. func (c *AdvertisersNegativeKeywordListsListCall) Pages(ctx context.Context, f func(*ListNegativeKeywordListsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -30483,8 +22673,6 @@ func (c *AdvertisersNegativeKeywordListsListCall) Pages(ctx context.Context, f f } } -// method id "displayvideo.advertisers.negativeKeywordLists.patch": - type AdvertisersNegativeKeywordListsPatchCall struct { s *Service advertiserId int64 @@ -30495,13 +22683,13 @@ type AdvertisersNegativeKeywordListsPatchCall struct { header_ http.Header } -// Patch: Updates a negative keyword list. Returns the updated negative -// keyword list if successful. +// Patch: Updates a negative keyword list. Returns the updated negative keyword +// list if successful. // -// - advertiserId: The ID of the DV360 advertiser to which the negative -// keyword list belongs. -// - negativeKeywordListId: Output only. The unique ID of the negative -// keyword list. Assigned by the system. +// - advertiserId: The ID of the DV360 advertiser to which the negative keyword +// list belongs. +// - negativeKeywordListId: Output only. The unique ID of the negative keyword +// list. Assigned by the system. func (r *AdvertisersNegativeKeywordListsService) Patch(advertiserId int64, negativeKeywordListId int64, negativekeywordlist *NegativeKeywordList) *AdvertisersNegativeKeywordListsPatchCall { c := &AdvertisersNegativeKeywordListsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -30510,31 +22698,29 @@ func (r *AdvertisersNegativeKeywordListsService) Patch(advertiserId int64, negat return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *AdvertisersNegativeKeywordListsPatchCall) UpdateMask(updateMask string) *AdvertisersNegativeKeywordListsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersNegativeKeywordListsPatchCall) Fields(s ...googleapi.Field) *AdvertisersNegativeKeywordListsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersNegativeKeywordListsPatchCall) Context(ctx context.Context) *AdvertisersNegativeKeywordListsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersNegativeKeywordListsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30543,18 +22729,12 @@ func (c *AdvertisersNegativeKeywordListsPatchCall) Header() http.Header { } func (c *AdvertisersNegativeKeywordListsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.negativekeywordlist) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/negativeKeywordLists/{negativeKeywordListId}") @@ -30568,16 +22748,15 @@ func (c *AdvertisersNegativeKeywordListsPatchCall) doRequest(alt string) (*http. "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.patch" call. -// Exactly one of *NegativeKeywordList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *NegativeKeywordList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *NegativeKeywordList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersNegativeKeywordListsPatchCall) Do(opts ...googleapi.CallOption) (*NegativeKeywordList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30608,53 +22787,7 @@ func (c *AdvertisersNegativeKeywordListsPatchCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Updates a negative keyword list. Returns the updated negative keyword list if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/negativeKeywordLists/{negativeKeywordListId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.advertisers.negativeKeywordLists.patch", - // "parameterOrder": [ - // "advertiserId", - // "negativeKeywordListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the negative keyword list belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "negativeKeywordListId": { - // "description": "Output only. The unique ID of the negative keyword list. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/negativeKeywordLists/{negativeKeywordListId}", - // "request": { - // "$ref": "NegativeKeywordList" - // }, - // "response": { - // "$ref": "NegativeKeywordList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.bulkEdit": +} type AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall struct { s *Service @@ -30666,18 +22799,18 @@ type AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall struct { header_ http.Header } -// BulkEdit: Bulk edits negative keywords in a single negative keyword -// list. The operation will delete the negative keywords provided in -// BulkEditNegativeKeywordsRequest.deleted_negative_keywords and then -// create the negative keywords provided in -// BulkEditNegativeKeywordsRequest.created_negative_keywords. This -// operation is guaranteed to be atomic and will never result in a -// partial success or partial failure. +// BulkEdit: Bulk edits negative keywords in a single negative keyword list. +// The operation will delete the negative keywords provided in +// BulkEditNegativeKeywordsRequest.deleted_negative_keywords and then create +// the negative keywords provided in +// BulkEditNegativeKeywordsRequest.created_negative_keywords. This operation is +// guaranteed to be atomic and will never result in a partial success or +// partial failure. // -// - advertiserId: The ID of the DV360 advertiser to which the parent -// negative keyword list belongs. -// - negativeKeywordListId: The ID of the parent negative keyword list -// to which the negative keywords belong. +// - advertiserId: The ID of the DV360 advertiser to which the parent negative +// keyword list belongs. +// - negativeKeywordListId: The ID of the parent negative keyword list to which +// the negative keywords belong. func (r *AdvertisersNegativeKeywordListsNegativeKeywordsService) BulkEdit(advertiserId int64, negativeKeywordListId int64, bulkeditnegativekeywordsrequest *BulkEditNegativeKeywordsRequest) *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall { c := &AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -30687,23 +22820,21 @@ func (r *AdvertisersNegativeKeywordListsNegativeKeywordsService) BulkEdit(advert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) Fields(s ...googleapi.Field) *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) Context(ctx context.Context) *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30712,18 +22843,12 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) Header() h } func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bulkeditnegativekeywordsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:bulkEdit") @@ -30737,16 +22862,15 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) doRequest( "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.bulkEdit" call. -// Exactly one of *BulkEditNegativeKeywordsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *BulkEditNegativeKeywordsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkEditNegativeKeywordsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) Do(opts ...googleapi.CallOption) (*BulkEditNegativeKeywordsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30777,47 +22901,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) Do(opts .. return nil, err } return ret, nil - // { - // "description": "Bulk edits negative keywords in a single negative keyword list. The operation will delete the negative keywords provided in BulkEditNegativeKeywordsRequest.deleted_negative_keywords and then create the negative keywords provided in BulkEditNegativeKeywordsRequest.created_negative_keywords. This operation is guaranteed to be atomic and will never result in a partial success or partial failure.", - // "flatPath": "v1/advertisers/{advertiserId}/negativeKeywordLists/{negativeKeywordListsId}/negativeKeywords:bulkEdit", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.bulkEdit", - // "parameterOrder": [ - // "advertiserId", - // "negativeKeywordListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the parent negative keyword list belongs.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "negativeKeywordListId": { - // "description": "Required. The ID of the parent negative keyword list to which the negative keywords belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:bulkEdit", - // "request": { - // "$ref": "BulkEditNegativeKeywordsRequest" - // }, - // "response": { - // "$ref": "BulkEditNegativeKeywordsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.create": +} type AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall struct { s *Service @@ -30831,10 +22915,10 @@ type AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall struct { // Create: Creates a negative keyword in a negative keyword list. // -// - advertiserId: The ID of the DV360 advertiser to which the parent -// negative keyword list belongs. -// - negativeKeywordListId: The ID of the parent negative keyword list -// in which the negative keyword will be created. +// - advertiserId: The ID of the DV360 advertiser to which the parent negative +// keyword list belongs. +// - negativeKeywordListId: The ID of the parent negative keyword list in which +// the negative keyword will be created. func (r *AdvertisersNegativeKeywordListsNegativeKeywordsService) Create(advertiserId int64, negativeKeywordListId int64, negativekeyword *NegativeKeyword) *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall { c := &AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -30844,23 +22928,21 @@ func (r *AdvertisersNegativeKeywordListsNegativeKeywordsService) Create(advertis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) Fields(s ...googleapi.Field) *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) Context(ctx context.Context) *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30869,18 +22951,12 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) Header() htt } func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.negativekeyword) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords") @@ -30894,16 +22970,15 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) doRequest(al "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.create" call. -// Exactly one of *NegativeKeyword or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *NegativeKeyword.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *NegativeKeyword.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) Do(opts ...googleapi.CallOption) (*NegativeKeyword, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30934,47 +23009,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Creates a negative keyword in a negative keyword list.", - // "flatPath": "v1/advertisers/{advertiserId}/negativeKeywordLists/{negativeKeywordListsId}/negativeKeywords", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.create", - // "parameterOrder": [ - // "advertiserId", - // "negativeKeywordListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the parent negative keyword list belongs.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "negativeKeywordListId": { - // "description": "Required. The ID of the parent negative keyword list in which the negative keyword will be created.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords", - // "request": { - // "$ref": "NegativeKeyword" - // }, - // "response": { - // "$ref": "NegativeKeyword" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.delete": +} type AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall struct { s *Service @@ -30988,11 +23023,11 @@ type AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall struct { // Delete: Deletes a negative keyword from a negative keyword list. // -// - advertiserId: The ID of the DV360 advertiser to which the parent -// negative keyword list belongs. +// - advertiserId: The ID of the DV360 advertiser to which the parent negative +// keyword list belongs. // - keywordValue: The keyword value of the negative keyword to delete. -// - negativeKeywordListId: The ID of the parent negative keyword list -// to which the negative keyword belongs. +// - negativeKeywordListId: The ID of the parent negative keyword list to which +// the negative keyword belongs. func (r *AdvertisersNegativeKeywordListsNegativeKeywordsService) Delete(advertiserId int64, negativeKeywordListId int64, keywordValue string) *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall { c := &AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -31002,23 +23037,21 @@ func (r *AdvertisersNegativeKeywordListsNegativeKeywordsService) Delete(advertis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) Fields(s ...googleapi.Field) *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) Context(ctx context.Context) *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31027,12 +23060,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) Header() htt } func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -31048,16 +23076,14 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) doRequest(al "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), "keywordValue": c.keywordValue, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31088,52 +23114,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Deletes a negative keyword from a negative keyword list.", - // "flatPath": "v1/advertisers/{advertiserId}/negativeKeywordLists/{negativeKeywordListsId}/negativeKeywords/{negativeKeywordsId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.delete", - // "parameterOrder": [ - // "advertiserId", - // "negativeKeywordListId", - // "keywordValue" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the parent negative keyword list belongs.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "keywordValue": { - // "description": "Required. The keyword value of the negative keyword to delete.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "negativeKeywordListId": { - // "description": "Required. The ID of the parent negative keyword list to which the negative keyword belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords/{+keywordValue}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.list": +} type AdvertisersNegativeKeywordListsNegativeKeywordsListCall struct { s *Service @@ -31147,10 +23128,10 @@ type AdvertisersNegativeKeywordListsNegativeKeywordsListCall struct { // List: Lists negative keywords in a negative keyword list. // -// - advertiserId: The ID of the DV360 advertiser to which the parent -// negative keyword list belongs. -// - negativeKeywordListId: The ID of the parent negative keyword list -// to which the requested negative keywords belong. +// - advertiserId: The ID of the DV360 advertiser to which the parent negative +// keyword list belongs. +// - negativeKeywordListId: The ID of the parent negative keyword list to which +// the requested negative keywords belong. func (r *AdvertisersNegativeKeywordListsNegativeKeywordsService) List(advertiserId int64, negativeKeywordListId int64) *AdvertisersNegativeKeywordListsNegativeKeywordsListCall { c := &AdvertisersNegativeKeywordListsNegativeKeywordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -31158,78 +23139,70 @@ func (r *AdvertisersNegativeKeywordListsNegativeKeywordsService) List(advertiser return c } -// Filter sets the optional parameter "filter": Allows filtering by -// negative keyword fields. Supported syntax: * Filter expressions for -// negative keywords can only contain at most one restriction. * A -// restriction has the form of `{field} {operator} {value}`. * All -// fields must use the `HAS (:)` operator. Supported fields: * -// `keywordValue` Examples: * All negative keywords for which the -// keyword value contains "google": `keywordValue : "google" The length -// of this field should be no more than 500 characters. Reference our -// filter `LIST` requests (/display-video/api/guides/how-tos/filters) -// guide for more information. +// Filter sets the optional parameter "filter": Allows filtering by negative +// keyword fields. Supported syntax: * Filter expressions for negative keywords +// can only contain at most one restriction. * A restriction has the form of +// `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. +// Supported fields: * `keywordValue` Examples: * All negative keywords for +// which the keyword value contains "google": `keywordValue : "google" The +// length of this field should be no more than 500 characters. Reference our +// filter `LIST` requests (/display-video/api/guides/how-tos/filters) guide for +// more information. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Filter(filter string) *AdvertisersNegativeKeywordListsNegativeKeywordsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `keywordValue` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix " desc" should be added to the field name. Example: -// `keywordValue desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `keywordValue` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix " +// desc" should be added to the field name. Example: `keywordValue desc`. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) OrderBy(orderBy string) *AdvertisersNegativeKeywordListsNegativeKeywordsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `1000`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `1000`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) PageSize(pageSize int64) *AdvertisersNegativeKeywordListsNegativeKeywordsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListNegativeKeywords` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListNegativeKeywords` +// method. If not specified, the first page of results will be returned. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) PageToken(pageToken string) *AdvertisersNegativeKeywordListsNegativeKeywordsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Fields(s ...googleapi.Field) *AdvertisersNegativeKeywordListsNegativeKeywordsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) IfNoneMatch(entityTag string) *AdvertisersNegativeKeywordListsNegativeKeywordsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Context(ctx context.Context) *AdvertisersNegativeKeywordListsNegativeKeywordsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31238,12 +23211,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Header() http. } func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -31261,16 +23229,15 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) doRequest(alt "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.list" call. -// Exactly one of *ListNegativeKeywordsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListNegativeKeywordsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListNegativeKeywordsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Do(opts ...googleapi.CallOption) (*ListNegativeKeywordsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31301,63 +23268,6 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Lists negative keywords in a negative keyword list.", - // "flatPath": "v1/advertisers/{advertisersId}/negativeKeywordLists/{negativeKeywordListsId}/negativeKeywords", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.list", - // "parameterOrder": [ - // "advertiserId", - // "negativeKeywordListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the parent negative keyword list belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by negative keyword fields. Supported syntax: * Filter expressions for negative keywords can only contain at most one restriction. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * `keywordValue` Examples: * All negative keywords for which the keyword value contains \"google\": `keywordValue : \"google\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "negativeKeywordListId": { - // "description": "Required. The ID of the parent negative keyword list to which the requested negative keywords belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `keywordValue` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be added to the field name. Example: `keywordValue desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `1000`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListNegativeKeywords` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords", - // "response": { - // "$ref": "ListNegativeKeywordsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -31365,7 +23275,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Do(opts ...goo // The provided context supersedes any context provided to the Context method. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Pages(ctx context.Context, f func(*ListNegativeKeywordsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -31381,8 +23291,6 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) Pages(ctx cont } } -// method id "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.replace": - type AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall struct { s *Service advertiserId int64 @@ -31393,15 +23301,14 @@ type AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall struct { header_ http.Header } -// Replace: Replaces all negative keywords in a single negative keyword -// list. The operation will replace the keywords in a negative keyword -// list with keywords provided in -// ReplaceNegativeKeywordsRequest.new_negative_keywords. +// Replace: Replaces all negative keywords in a single negative keyword list. +// The operation will replace the keywords in a negative keyword list with +// keywords provided in ReplaceNegativeKeywordsRequest.new_negative_keywords. // -// - advertiserId: The ID of the DV360 advertiser to which the parent -// negative keyword list belongs. -// - negativeKeywordListId: The ID of the parent negative keyword list -// to which the negative keywords belong. +// - advertiserId: The ID of the DV360 advertiser to which the parent negative +// keyword list belongs. +// - negativeKeywordListId: The ID of the parent negative keyword list to which +// the negative keywords belong. func (r *AdvertisersNegativeKeywordListsNegativeKeywordsService) Replace(advertiserId int64, negativeKeywordListId int64, replacenegativekeywordsrequest *ReplaceNegativeKeywordsRequest) *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall { c := &AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -31411,23 +23318,21 @@ func (r *AdvertisersNegativeKeywordListsNegativeKeywordsService) Replace(adverti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall) Fields(s ...googleapi.Field) *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall) Context(ctx context.Context) *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31436,18 +23341,12 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall) Header() ht } func (c *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.replacenegativekeywordsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:replace") @@ -31461,16 +23360,15 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall) doRequest(a "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.replace" call. -// Exactly one of *ReplaceNegativeKeywordsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ReplaceNegativeKeywordsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReplaceNegativeKeywordsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall) Do(opts ...googleapi.CallOption) (*ReplaceNegativeKeywordsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31501,47 +23399,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Replaces all negative keywords in a single negative keyword list. The operation will replace the keywords in a negative keyword list with keywords provided in ReplaceNegativeKeywordsRequest.new_negative_keywords.", - // "flatPath": "v1/advertisers/{advertiserId}/negativeKeywordLists/{negativeKeywordListsId}/negativeKeywords:replace", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.replace", - // "parameterOrder": [ - // "advertiserId", - // "negativeKeywordListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the DV360 advertiser to which the parent negative keyword list belongs.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "negativeKeywordListId": { - // "description": "Required. The ID of the parent negative keyword list to which the negative keywords belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:replace", - // "request": { - // "$ref": "ReplaceNegativeKeywordsRequest" - // }, - // "response": { - // "$ref": "ReplaceNegativeKeywordsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.create": +} type AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall struct { s *Service @@ -31553,14 +23411,13 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall struct { header_ http.Header } -// Create: Assigns a targeting option to an advertiser. Returns the -// assigned targeting option if successful. +// Create: Assigns a targeting option to an advertiser. Returns the assigned +// targeting option if successful. // // - advertiserId: The ID of the advertiser. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * -// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * -// `TARGETING_TYPE_OMID` * +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types: * `TARGETING_TYPE_CHANNEL` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Create(advertiserId int64, targetingType string, assignedtargetingoption *AssignedTargetingOption) *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -31571,23 +23428,21 @@ func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Create(advert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) Fields(s ...googleapi.Field) *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) Context(ctx context.Context) *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31596,18 +23451,12 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) Header() h } func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.assignedtargetingoption) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions") @@ -31621,16 +23470,15 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) doRequest( "advertiserId": strconv.FormatInt(c.advertiserId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.create" call. -// Exactly one of *AssignedTargetingOption or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AssignedTargetingOption.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) Do(opts ...googleapi.CallOption) (*AssignedTargetingOption, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31661,143 +23509,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) Do(opts .. return nil, err } return ret, nil - // { - // "description": "Assigns a targeting option to an advertiser. Returns the assigned targeting option if successful.", - // "flatPath": "v1/advertisers/{advertisersId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", - // "httpMethod": "POST", - // "id": "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.create", - // "parameterOrder": [ - // "advertiserId", - // "targetingType" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions", - // "request": { - // "$ref": "AssignedTargetingOption" - // }, - // "response": { - // "$ref": "AssignedTargetingOption" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.delete": +} type AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall struct { s *Service @@ -31812,12 +23524,11 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall struct { // Delete: Deletes an assigned targeting option from an advertiser. // // - advertiserId: The ID of the advertiser. -// - assignedTargetingOptionId: The ID of the assigned targeting option -// to delete. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * -// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * -// `TARGETING_TYPE_OMID` * +// - assignedTargetingOptionId: The ID of the assigned targeting option to +// delete. +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types: * `TARGETING_TYPE_CHANNEL` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Delete(advertiserId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -31828,23 +23539,21 @@ func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Delete(advert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) Fields(s ...googleapi.Field) *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) Context(ctx context.Context) *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -31853,12 +23562,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) Header() h } func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -31874,16 +23578,14 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest( "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -31914,148 +23616,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) Do(opts .. return nil, err } return ret, nil - // { - // "description": "Deletes an assigned targeting option from an advertiser.", - // "flatPath": "v1/advertisers/{advertisersId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.delete", - // "parameterOrder": [ - // "advertiserId", - // "targetingType", - // "assignedTargetingOptionId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "assignedTargetingOptionId": { - // "description": "Required. The ID of the assigned targeting option to delete.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.get": +} type AdvertisersTargetingTypesAssignedTargetingOptionsGetCall struct { s *Service @@ -32071,13 +23632,12 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsGetCall struct { // Get: Gets a single targeting option assigned to an advertiser. // // - advertiserId: The ID of the advertiser. -// - assignedTargetingOptionId: An identifier unique to the targeting -// type in this advertiser that identifies the assigned targeting -// option being requested. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * -// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * -// `TARGETING_TYPE_OMID` * +// - assignedTargetingOptionId: An identifier unique to the targeting type in +// this advertiser that identifies the assigned targeting option being +// requested. +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types: * `TARGETING_TYPE_CHANNEL` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * // `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Get(advertiserId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall { @@ -32089,33 +23649,29 @@ func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Get(advertise } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Fields(s ...googleapi.Field) *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) IfNoneMatch(entityTag string) *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Context(ctx context.Context) *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32124,12 +23680,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Header() http } func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32148,16 +23699,15 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.get" call. -// Exactly one of *AssignedTargetingOption or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AssignedTargetingOption.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...googleapi.CallOption) (*AssignedTargetingOption, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32188,148 +23738,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Gets a single targeting option assigned to an advertiser.", - // "flatPath": "v1/advertisers/{advertisersId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.get", - // "parameterOrder": [ - // "advertiserId", - // "targetingType", - // "assignedTargetingOptionId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "assignedTargetingOptionId": { - // "description": "Required. An identifier unique to the targeting type in this advertiser that identifies the assigned targeting option being requested.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}", - // "response": { - // "$ref": "AssignedTargetingOption" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.list": +} type AdvertisersTargetingTypesAssignedTargetingOptionsListCall struct { s *Service @@ -32344,10 +23753,9 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsListCall struct { // List: Lists the targeting options assigned to an advertiser. // // - advertiserId: The ID of the advertiser. -// - targetingType: Identifies the type of assigned targeting options to -// list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * -// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * -// `TARGETING_TYPE_OMID` * +// - targetingType: Identifies the type of assigned targeting options to list. +// Supported targeting types: * `TARGETING_TYPE_CHANNEL` * +// `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * // `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * // `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) List(advertiserId int64, targetingType string) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { @@ -32357,79 +23765,72 @@ func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) List(advertis return c } -// Filter sets the optional parameter "filter": Allows filtering by -// assigned targeting option fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the `OR` logical operator. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=)` operator. Supported fields: * -// `assignedTargetingOptionId` Examples: * `AssignedTargetingOption` -// with ID 123456: `assignedTargetingOptionId="123456" The length of -// this field should be no more than 500 characters. Reference our -// filter `LIST` requests (/display-video/api/guides/how-tos/filters) -// guide for more information. +// Filter sets the optional parameter "filter": Allows filtering by assigned +// targeting option fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the `OR` +// logical operator. * A restriction has the form of `{field} {operator} +// {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: +// * `assignedTargetingOptionId` Examples: * `AssignedTargetingOption` with ID +// 123456: `assignedTargetingOptionId="123456" The length of this field should +// be no more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Filter(filter string) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `assignedTargetingOptionId` -// (default) The default sorting order is ascending. To specify -// descending order for a field, a suffix "desc" should be added to the -// field name. Example: `assignedTargetingOptionId desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `assignedTargetingOptionId` (default) The +// default sorting order is ascending. To specify descending order for a field, +// a suffix "desc" should be added to the field name. Example: +// `assignedTargetingOptionId desc`. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) OrderBy(orderBy string) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `5000`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `5000`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) PageSize(pageSize int64) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListAdvertiserAssignedTargetingOptions` method. If not specified, -// the first page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to +// `ListAdvertiserAssignedTargetingOptions` method. If not specified, the first +// page of results will be returned. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) PageToken(pageToken string) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Fields(s ...googleapi.Field) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) IfNoneMatch(entityTag string) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Context(ctx context.Context) *AdvertisersTargetingTypesAssignedTargetingOptionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32438,12 +23839,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Header() htt } func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32461,18 +23857,15 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) doRequest(al "advertiserId": strconv.FormatInt(c.advertiserId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.list" call. -// Exactly one of *ListAdvertiserAssignedTargetingOptionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *ListAdvertiserAssignedTargetingOptionsResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListAdvertiserAssignedTargetingOptionsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...googleapi.CallOption) (*ListAdvertiserAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32503,158 +23896,6 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Lists the targeting options assigned to an advertiser.", - // "flatPath": "v1/advertisers/{advertisersId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", - // "httpMethod": "GET", - // "id": "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.list", - // "parameterOrder": [ - // "advertiserId", - // "targetingType" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by assigned targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the `OR` logical operator. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `assignedTargetingOptionId` Examples: * `AssignedTargetingOption` with ID 123456: `assignedTargetingOptionId=\"123456\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `assignedTargetingOptionId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `assignedTargetingOptionId desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `5000`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListAdvertiserAssignedTargetingOptions` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_YOUTUBE_VIDEO` * `TARGETING_TYPE_YOUTUBE_CHANNEL`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions", - // "response": { - // "$ref": "ListAdvertiserAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -32662,7 +23903,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...g // The provided context supersedes any context provided to the Context method. func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Pages(ctx context.Context, f func(*ListAdvertiserAssignedTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -32678,8 +23919,6 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) Pages(ctx co } } -// method id "displayvideo.combinedAudiences.get": - type CombinedAudiencesGetCall struct { s *Service combinedAudienceId int64 @@ -32698,48 +23937,44 @@ func (r *CombinedAudiencesService) Get(combinedAudienceId int64) *CombinedAudien return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the fetched combined audience. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the fetched combined audience. func (c *CombinedAudiencesGetCall) AdvertiserId(advertiserId int64) *CombinedAudiencesGetCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the fetched combined audience. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the fetched combined audience. func (c *CombinedAudiencesGetCall) PartnerId(partnerId int64) *CombinedAudiencesGetCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CombinedAudiencesGetCall) Fields(s ...googleapi.Field) *CombinedAudiencesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CombinedAudiencesGetCall) IfNoneMatch(entityTag string) *CombinedAudiencesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CombinedAudiencesGetCall) Context(ctx context.Context) *CombinedAudiencesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CombinedAudiencesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32748,12 +23983,7 @@ func (c *CombinedAudiencesGetCall) Header() http.Header { } func (c *CombinedAudiencesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32770,16 +24000,15 @@ func (c *CombinedAudiencesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "combinedAudienceId": strconv.FormatInt(c.combinedAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.combinedAudiences.get" call. -// Exactly one of *CombinedAudience or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CombinedAudience.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CombinedAudience.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CombinedAudiencesGetCall) Do(opts ...googleapi.CallOption) (*CombinedAudience, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -32810,48 +24039,7 @@ func (c *CombinedAudiencesGetCall) Do(opts ...googleapi.CallOption) (*CombinedAu return nil, err } return ret, nil - // { - // "description": "Gets a combined audience.", - // "flatPath": "v1/combinedAudiences/{combinedAudiencesId}", - // "httpMethod": "GET", - // "id": "displayvideo.combinedAudiences.get", - // "parameterOrder": [ - // "combinedAudienceId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the fetched combined audience.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "combinedAudienceId": { - // "description": "Required. The ID of the combined audience to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the fetched combined audience.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/combinedAudiences/{+combinedAudienceId}", - // "response": { - // "$ref": "CombinedAudience" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.combinedAudiences.list": +} type CombinedAudiencesListCall struct { s *Service @@ -32868,92 +24056,85 @@ func (r *CombinedAudiencesService) List() *CombinedAudiencesListCall { return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the fetched combined audiences. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the fetched combined audiences. func (c *CombinedAudiencesListCall) AdvertiserId(advertiserId int64) *CombinedAudiencesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// combined audience fields. Supported syntax: * Filter expressions for -// combined audiences can only contain at most one restriction. * A -// restriction has the form of `{field} {operator} {value}`. * All -// fields must use the `HAS (:)` operator. Supported fields: * -// `displayName` Examples: * All combined audiences for which the -// display name contains "Google": `displayName : "Google". The length -// of this field should be no more than 500 characters. Reference our -// filter `LIST` requests (/display-video/api/guides/how-tos/filters) -// guide for more information. +// Filter sets the optional parameter "filter": Allows filtering by combined +// audience fields. Supported syntax: * Filter expressions for combined +// audiences can only contain at most one restriction. * A restriction has the +// form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` +// operator. Supported fields: * `displayName` Examples: * All combined +// audiences for which the display name contains "Google": `displayName : +// "Google". The length of this field should be no more than 500 characters. +// Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *CombinedAudiencesListCall) Filter(filter string) *CombinedAudiencesListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `combinedAudienceId` (default) * -// `displayName` The default sorting order is ascending. To specify -// descending order for a field, a suffix "desc" should be added to the -// field name. Example: `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `combinedAudienceId` (default) * +// `displayName` The default sorting order is ascending. To specify descending +// order for a field, a suffix "desc" should be added to the field name. +// Example: `displayName desc`. func (c *CombinedAudiencesListCall) OrderBy(orderBy string) *CombinedAudiencesListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *CombinedAudiencesListCall) PageSize(pageSize int64) *CombinedAudiencesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListCombinedAudiences` method. If not specified, the first page -// of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListCombinedAudiences` +// method. If not specified, the first page of results will be returned. func (c *CombinedAudiencesListCall) PageToken(pageToken string) *CombinedAudiencesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the fetched combined audiences. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the fetched combined audiences. func (c *CombinedAudiencesListCall) PartnerId(partnerId int64) *CombinedAudiencesListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CombinedAudiencesListCall) Fields(s ...googleapi.Field) *CombinedAudiencesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CombinedAudiencesListCall) IfNoneMatch(entityTag string) *CombinedAudiencesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CombinedAudiencesListCall) Context(ctx context.Context) *CombinedAudiencesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CombinedAudiencesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -32962,12 +24143,7 @@ func (c *CombinedAudiencesListCall) Header() http.Header { } func (c *CombinedAudiencesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -32981,16 +24157,15 @@ func (c *CombinedAudiencesListCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.combinedAudiences.list" call. -// Exactly one of *ListCombinedAudiencesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListCombinedAudiencesResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListCombinedAudiencesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CombinedAudiencesListCall) Do(opts ...googleapi.CallOption) (*ListCombinedAudiencesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33021,56 +24196,6 @@ func (c *CombinedAudiencesListCall) Do(opts ...googleapi.CallOption) (*ListCombi return nil, err } return ret, nil - // { - // "description": "Lists combined audiences. The order is defined by the order_by parameter.", - // "flatPath": "v1/combinedAudiences", - // "httpMethod": "GET", - // "id": "displayvideo.combinedAudiences.list", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the fetched combined audiences.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by combined audience fields. Supported syntax: * Filter expressions for combined audiences can only contain at most one restriction. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * `displayName` Examples: * All combined audiences for which the display name contains \"Google\": `displayName : \"Google\"`. The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `combinedAudienceId` (default) * `displayName` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListCombinedAudiences` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the fetched combined audiences.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/combinedAudiences", - // "response": { - // "$ref": "ListCombinedAudiencesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -33078,7 +24203,7 @@ func (c *CombinedAudiencesListCall) Do(opts ...googleapi.CallOption) (*ListCombi // The provided context supersedes any context provided to the Context method. func (c *CombinedAudiencesListCall) Pages(ctx context.Context, f func(*ListCombinedAudiencesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -33094,8 +24219,6 @@ func (c *CombinedAudiencesListCall) Pages(ctx context.Context, f func(*ListCombi } } -// method id "displayvideo.customBiddingAlgorithms.create": - type CustomBiddingAlgorithmsCreateCall struct { s *Service custombiddingalgorithm *CustomBiddingAlgorithm @@ -33104,8 +24227,8 @@ type CustomBiddingAlgorithmsCreateCall struct { header_ http.Header } -// Create: Creates a new custom bidding algorithm. Returns the newly -// created custom bidding algorithm if successful. +// Create: Creates a new custom bidding algorithm. Returns the newly created +// custom bidding algorithm if successful. func (r *CustomBiddingAlgorithmsService) Create(custombiddingalgorithm *CustomBiddingAlgorithm) *CustomBiddingAlgorithmsCreateCall { c := &CustomBiddingAlgorithmsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.custombiddingalgorithm = custombiddingalgorithm @@ -33113,23 +24236,21 @@ func (r *CustomBiddingAlgorithmsService) Create(custombiddingalgorithm *CustomBi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomBiddingAlgorithmsCreateCall) Fields(s ...googleapi.Field) *CustomBiddingAlgorithmsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomBiddingAlgorithmsCreateCall) Context(ctx context.Context) *CustomBiddingAlgorithmsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomBiddingAlgorithmsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33138,18 +24259,12 @@ func (c *CustomBiddingAlgorithmsCreateCall) Header() http.Header { } func (c *CustomBiddingAlgorithmsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.custombiddingalgorithm) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/customBiddingAlgorithms") @@ -33159,16 +24274,15 @@ func (c *CustomBiddingAlgorithmsCreateCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.create" call. -// Exactly one of *CustomBiddingAlgorithm or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CustomBiddingAlgorithm.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomBiddingAlgorithm.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CustomBiddingAlgorithmsCreateCall) Do(opts ...googleapi.CallOption) (*CustomBiddingAlgorithm, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33199,28 +24313,7 @@ func (c *CustomBiddingAlgorithmsCreateCall) Do(opts ...googleapi.CallOption) (*C return nil, err } return ret, nil - // { - // "description": "Creates a new custom bidding algorithm. Returns the newly created custom bidding algorithm if successful.", - // "flatPath": "v1/customBiddingAlgorithms", - // "httpMethod": "POST", - // "id": "displayvideo.customBiddingAlgorithms.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1/customBiddingAlgorithms", - // "request": { - // "$ref": "CustomBiddingAlgorithm" - // }, - // "response": { - // "$ref": "CustomBiddingAlgorithm" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.customBiddingAlgorithms.get": +} type CustomBiddingAlgorithmsGetCall struct { s *Service @@ -33233,56 +24326,51 @@ type CustomBiddingAlgorithmsGetCall struct { // Get: Gets a custom bidding algorithm. // -// - customBiddingAlgorithmId: The ID of the custom bidding algorithm to -// fetch. +// - customBiddingAlgorithmId: The ID of the custom bidding algorithm to fetch. func (r *CustomBiddingAlgorithmsService) Get(customBiddingAlgorithmId int64) *CustomBiddingAlgorithmsGetCall { c := &CustomBiddingAlgorithmsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.customBiddingAlgorithmId = customBiddingAlgorithmId return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the DV360 partner that has access to the custom bidding algorithm. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the DV360 +// partner that has access to the custom bidding algorithm. func (c *CustomBiddingAlgorithmsGetCall) AdvertiserId(advertiserId int64) *CustomBiddingAlgorithmsGetCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// DV360 partner that has access to the custom bidding algorithm. +// PartnerId sets the optional parameter "partnerId": The ID of the DV360 +// partner that has access to the custom bidding algorithm. func (c *CustomBiddingAlgorithmsGetCall) PartnerId(partnerId int64) *CustomBiddingAlgorithmsGetCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomBiddingAlgorithmsGetCall) Fields(s ...googleapi.Field) *CustomBiddingAlgorithmsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomBiddingAlgorithmsGetCall) IfNoneMatch(entityTag string) *CustomBiddingAlgorithmsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomBiddingAlgorithmsGetCall) Context(ctx context.Context) *CustomBiddingAlgorithmsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomBiddingAlgorithmsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33291,12 +24379,7 @@ func (c *CustomBiddingAlgorithmsGetCall) Header() http.Header { } func (c *CustomBiddingAlgorithmsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33313,16 +24396,15 @@ func (c *CustomBiddingAlgorithmsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.get" call. -// Exactly one of *CustomBiddingAlgorithm or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CustomBiddingAlgorithm.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomBiddingAlgorithm.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CustomBiddingAlgorithmsGetCall) Do(opts ...googleapi.CallOption) (*CustomBiddingAlgorithm, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33353,48 +24435,7 @@ func (c *CustomBiddingAlgorithmsGetCall) Do(opts ...googleapi.CallOption) (*Cust return nil, err } return ret, nil - // { - // "description": "Gets a custom bidding algorithm.", - // "flatPath": "v1/customBiddingAlgorithms/{customBiddingAlgorithmsId}", - // "httpMethod": "GET", - // "id": "displayvideo.customBiddingAlgorithms.get", - // "parameterOrder": [ - // "customBiddingAlgorithmId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the DV360 partner that has access to the custom bidding algorithm.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "customBiddingAlgorithmId": { - // "description": "Required. The ID of the custom bidding algorithm to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the DV360 partner that has access to the custom bidding algorithm.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}", - // "response": { - // "$ref": "CustomBiddingAlgorithm" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.customBiddingAlgorithms.list": +} type CustomBiddingAlgorithmsListCall struct { s *Service @@ -33404,105 +24445,97 @@ type CustomBiddingAlgorithmsListCall struct { header_ http.Header } -// List: Lists custom bidding algorithms that are accessible to the -// current user and can be used in bidding stratgies. The order is -// defined by the order_by parameter. +// List: Lists custom bidding algorithms that are accessible to the current +// user and can be used in bidding stratgies. The order is defined by the +// order_by parameter. func (r *CustomBiddingAlgorithmsService) List() *CustomBiddingAlgorithmsListCall { c := &CustomBiddingAlgorithmsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the DV360 advertiser that has access to the custom bidding algorithm. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the DV360 +// advertiser that has access to the custom bidding algorithm. func (c *CustomBiddingAlgorithmsListCall) AdvertiserId(advertiserId int64) *CustomBiddingAlgorithmsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// custom bidding algorithm fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by `AND`. A sequence of restrictions implicitly uses -// `AND`. * A restriction has the form of `{field} {operator} {value}`. -// * The `customBiddingAlgorithmType` field must use the `EQUALS (=)` -// operator. * The `displayName` field must use the `HAS (:)` operator. -// Supported fields: * `customBiddingAlgorithmType` * `displayName` -// Examples: * All custom bidding algorithms for which the display name -// contains "politics": `displayName:"politics". * All custom bidding -// algorithms for which the type is "SCRIPT_BASED": -// `customBiddingAlgorithmType=SCRIPT_BASED` The length of this field -// should be no more than 500 characters. Reference our filter `LIST` -// requests (/display-video/api/guides/how-tos/filters) guide for more -// information. +// Filter sets the optional parameter "filter": Allows filtering by custom +// bidding algorithm fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by `AND`. A +// sequence of restrictions implicitly uses `AND`. * A restriction has the form +// of `{field} {operator} {value}`. * The `customBiddingAlgorithmType` field +// must use the `EQUALS (=)` operator. * The `displayName` field must use the +// `HAS (:)` operator. Supported fields: * `customBiddingAlgorithmType` * +// `displayName` Examples: * All custom bidding algorithms for which the +// display name contains "politics": `displayName:"politics". * All custom +// bidding algorithms for which the type is "SCRIPT_BASED": +// `customBiddingAlgorithmType=SCRIPT_BASED` The length of this field should be +// no more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *CustomBiddingAlgorithmsListCall) Filter(filter string) *CustomBiddingAlgorithmsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix "desc" should be added to the field name. Example: -// `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix "desc" +// should be added to the field name. Example: `displayName desc`. func (c *CustomBiddingAlgorithmsListCall) OrderBy(orderBy string) *CustomBiddingAlgorithmsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *CustomBiddingAlgorithmsListCall) PageSize(pageSize int64) *CustomBiddingAlgorithmsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListCustomBiddingAlgorithms` method. If not specified, the first -// page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to +// `ListCustomBiddingAlgorithms` method. If not specified, the first page of +// results will be returned. func (c *CustomBiddingAlgorithmsListCall) PageToken(pageToken string) *CustomBiddingAlgorithmsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// DV360 partner that has access to the custom bidding algorithm. +// PartnerId sets the optional parameter "partnerId": The ID of the DV360 +// partner that has access to the custom bidding algorithm. func (c *CustomBiddingAlgorithmsListCall) PartnerId(partnerId int64) *CustomBiddingAlgorithmsListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomBiddingAlgorithmsListCall) Fields(s ...googleapi.Field) *CustomBiddingAlgorithmsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomBiddingAlgorithmsListCall) IfNoneMatch(entityTag string) *CustomBiddingAlgorithmsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomBiddingAlgorithmsListCall) Context(ctx context.Context) *CustomBiddingAlgorithmsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomBiddingAlgorithmsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33511,12 +24544,7 @@ func (c *CustomBiddingAlgorithmsListCall) Header() http.Header { } func (c *CustomBiddingAlgorithmsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33530,17 +24558,15 @@ func (c *CustomBiddingAlgorithmsListCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.list" call. -// Exactly one of *ListCustomBiddingAlgorithmsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListCustomBiddingAlgorithmsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListCustomBiddingAlgorithmsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CustomBiddingAlgorithmsListCall) Do(opts ...googleapi.CallOption) (*ListCustomBiddingAlgorithmsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33571,56 +24597,6 @@ func (c *CustomBiddingAlgorithmsListCall) Do(opts ...googleapi.CallOption) (*Lis return nil, err } return ret, nil - // { - // "description": "Lists custom bidding algorithms that are accessible to the current user and can be used in bidding stratgies. The order is defined by the order_by parameter.", - // "flatPath": "v1/customBiddingAlgorithms", - // "httpMethod": "GET", - // "id": "displayvideo.customBiddingAlgorithms.list", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the DV360 advertiser that has access to the custom bidding algorithm.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by custom bidding algorithm fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND`. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The `customBiddingAlgorithmType` field must use the `EQUALS (=)` operator. * The `displayName` field must use the `HAS (:)` operator. Supported fields: * `customBiddingAlgorithmType` * `displayName` Examples: * All custom bidding algorithms for which the display name contains \"politics\": `displayName:\"politics\"`. * All custom bidding algorithms for which the type is \"SCRIPT_BASED\": `customBiddingAlgorithmType=SCRIPT_BASED` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListCustomBiddingAlgorithms` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the DV360 partner that has access to the custom bidding algorithm.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/customBiddingAlgorithms", - // "response": { - // "$ref": "ListCustomBiddingAlgorithmsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -33628,7 +24604,7 @@ func (c *CustomBiddingAlgorithmsListCall) Do(opts ...googleapi.CallOption) (*Lis // The provided context supersedes any context provided to the Context method. func (c *CustomBiddingAlgorithmsListCall) Pages(ctx context.Context, f func(*ListCustomBiddingAlgorithmsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -33644,8 +24620,6 @@ func (c *CustomBiddingAlgorithmsListCall) Pages(ctx context.Context, f func(*Lis } } -// method id "displayvideo.customBiddingAlgorithms.patch": - type CustomBiddingAlgorithmsPatchCall struct { s *Service customBiddingAlgorithmId int64 @@ -33655,11 +24629,11 @@ type CustomBiddingAlgorithmsPatchCall struct { header_ http.Header } -// Patch: Updates an existing custom bidding algorithm. Returns the -// updated custom bidding algorithm if successful. +// Patch: Updates an existing custom bidding algorithm. Returns the updated +// custom bidding algorithm if successful. // -// - customBiddingAlgorithmId: Output only. The unique ID of the custom -// bidding algorithm. Assigned by the system. +// - customBiddingAlgorithmId: Output only. The unique ID of the custom bidding +// algorithm. Assigned by the system. func (r *CustomBiddingAlgorithmsService) Patch(customBiddingAlgorithmId int64, custombiddingalgorithm *CustomBiddingAlgorithm) *CustomBiddingAlgorithmsPatchCall { c := &CustomBiddingAlgorithmsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.customBiddingAlgorithmId = customBiddingAlgorithmId @@ -33667,31 +24641,29 @@ func (r *CustomBiddingAlgorithmsService) Patch(customBiddingAlgorithmId int64, c return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *CustomBiddingAlgorithmsPatchCall) UpdateMask(updateMask string) *CustomBiddingAlgorithmsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomBiddingAlgorithmsPatchCall) Fields(s ...googleapi.Field) *CustomBiddingAlgorithmsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomBiddingAlgorithmsPatchCall) Context(ctx context.Context) *CustomBiddingAlgorithmsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomBiddingAlgorithmsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33700,18 +24672,12 @@ func (c *CustomBiddingAlgorithmsPatchCall) Header() http.Header { } func (c *CustomBiddingAlgorithmsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.custombiddingalgorithm) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}") @@ -33724,16 +24690,15 @@ func (c *CustomBiddingAlgorithmsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.patch" call. -// Exactly one of *CustomBiddingAlgorithm or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CustomBiddingAlgorithm.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomBiddingAlgorithm.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CustomBiddingAlgorithmsPatchCall) Do(opts ...googleapi.CallOption) (*CustomBiddingAlgorithm, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33764,45 +24729,7 @@ func (c *CustomBiddingAlgorithmsPatchCall) Do(opts ...googleapi.CallOption) (*Cu return nil, err } return ret, nil - // { - // "description": "Updates an existing custom bidding algorithm. Returns the updated custom bidding algorithm if successful.", - // "flatPath": "v1/customBiddingAlgorithms/{customBiddingAlgorithmsId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.customBiddingAlgorithms.patch", - // "parameterOrder": [ - // "customBiddingAlgorithmId" - // ], - // "parameters": { - // "customBiddingAlgorithmId": { - // "description": "Output only. The unique ID of the custom bidding algorithm. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}", - // "request": { - // "$ref": "CustomBiddingAlgorithm" - // }, - // "response": { - // "$ref": "CustomBiddingAlgorithm" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.customBiddingAlgorithms.uploadScript": +} type CustomBiddingAlgorithmsUploadScriptCall struct { s *Service @@ -33813,63 +24740,58 @@ type CustomBiddingAlgorithmsUploadScriptCall struct { header_ http.Header } -// UploadScript: Creates a custom bidding script reference object for a -// script file. The resulting reference object provides a resource path -// to which the script file should be uploaded. This reference object -// should be included in when creating a new custom bidding script -// object. +// UploadScript: Creates a custom bidding script reference object for a script +// file. The resulting reference object provides a resource path to which the +// script file should be uploaded. This reference object should be included in +// when creating a new custom bidding script object. // -// - customBiddingAlgorithmId: The ID of the custom bidding algorithm -// owns the script. +// - customBiddingAlgorithmId: The ID of the custom bidding algorithm owns the +// script. func (r *CustomBiddingAlgorithmsService) UploadScript(customBiddingAlgorithmId int64) *CustomBiddingAlgorithmsUploadScriptCall { c := &CustomBiddingAlgorithmsUploadScriptCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.customBiddingAlgorithmId = customBiddingAlgorithmId return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the parent custom bidding algorithm. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the parent custom bidding algorithm. func (c *CustomBiddingAlgorithmsUploadScriptCall) AdvertiserId(advertiserId int64) *CustomBiddingAlgorithmsUploadScriptCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the parent custom bidding algorithm. Only this -// partner will have write access to this custom bidding script. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the parent custom bidding algorithm. Only this partner will have +// write access to this custom bidding script. func (c *CustomBiddingAlgorithmsUploadScriptCall) PartnerId(partnerId int64) *CustomBiddingAlgorithmsUploadScriptCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomBiddingAlgorithmsUploadScriptCall) Fields(s ...googleapi.Field) *CustomBiddingAlgorithmsUploadScriptCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomBiddingAlgorithmsUploadScriptCall) IfNoneMatch(entityTag string) *CustomBiddingAlgorithmsUploadScriptCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomBiddingAlgorithmsUploadScriptCall) Context(ctx context.Context) *CustomBiddingAlgorithmsUploadScriptCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomBiddingAlgorithmsUploadScriptCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -33878,12 +24800,7 @@ func (c *CustomBiddingAlgorithmsUploadScriptCall) Header() http.Header { } func (c *CustomBiddingAlgorithmsUploadScriptCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -33900,16 +24817,15 @@ func (c *CustomBiddingAlgorithmsUploadScriptCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.uploadScript" call. -// Exactly one of *CustomBiddingScriptRef or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CustomBiddingScriptRef.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomBiddingScriptRef.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CustomBiddingAlgorithmsUploadScriptCall) Do(opts ...googleapi.CallOption) (*CustomBiddingScriptRef, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -33940,48 +24856,7 @@ func (c *CustomBiddingAlgorithmsUploadScriptCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Creates a custom bidding script reference object for a script file. The resulting reference object provides a resource path to which the script file should be uploaded. This reference object should be included in when creating a new custom bidding script object.", - // "flatPath": "v1/customBiddingAlgorithms/{customBiddingAlgorithmsId}:uploadScript", - // "httpMethod": "GET", - // "id": "displayvideo.customBiddingAlgorithms.uploadScript", - // "parameterOrder": [ - // "customBiddingAlgorithmId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent custom bidding algorithm.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "customBiddingAlgorithmId": { - // "description": "Required. The ID of the custom bidding algorithm owns the script.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent custom bidding algorithm. Only this partner will have write access to this custom bidding script.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}:uploadScript", - // "response": { - // "$ref": "CustomBiddingScriptRef" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.customBiddingAlgorithms.scripts.create": +} type CustomBiddingAlgorithmsScriptsCreateCall struct { s *Service @@ -33992,11 +24867,11 @@ type CustomBiddingAlgorithmsScriptsCreateCall struct { header_ http.Header } -// Create: Creates a new custom bidding script. Returns the newly -// created script if successful. +// Create: Creates a new custom bidding script. Returns the newly created +// script if successful. // -// - customBiddingAlgorithmId: The ID of the custom bidding algorithm -// that owns the script. +// - customBiddingAlgorithmId: The ID of the custom bidding algorithm that owns +// the script. func (r *CustomBiddingAlgorithmsScriptsService) Create(customBiddingAlgorithmId int64, custombiddingscript *CustomBiddingScript) *CustomBiddingAlgorithmsScriptsCreateCall { c := &CustomBiddingAlgorithmsScriptsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.customBiddingAlgorithmId = customBiddingAlgorithmId @@ -34004,39 +24879,37 @@ func (r *CustomBiddingAlgorithmsScriptsService) Create(customBiddingAlgorithmId return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the parent custom bidding algorithm. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the parent custom bidding algorithm. func (c *CustomBiddingAlgorithmsScriptsCreateCall) AdvertiserId(advertiserId int64) *CustomBiddingAlgorithmsScriptsCreateCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the parent custom bidding algorithm. Only this -// partner will have write access to this custom bidding script. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the parent custom bidding algorithm. Only this partner will have +// write access to this custom bidding script. func (c *CustomBiddingAlgorithmsScriptsCreateCall) PartnerId(partnerId int64) *CustomBiddingAlgorithmsScriptsCreateCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomBiddingAlgorithmsScriptsCreateCall) Fields(s ...googleapi.Field) *CustomBiddingAlgorithmsScriptsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomBiddingAlgorithmsScriptsCreateCall) Context(ctx context.Context) *CustomBiddingAlgorithmsScriptsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomBiddingAlgorithmsScriptsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34045,18 +24918,12 @@ func (c *CustomBiddingAlgorithmsScriptsCreateCall) Header() http.Header { } func (c *CustomBiddingAlgorithmsScriptsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.custombiddingscript) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts") @@ -34069,16 +24936,15 @@ func (c *CustomBiddingAlgorithmsScriptsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.scripts.create" call. -// Exactly one of *CustomBiddingScript or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CustomBiddingScript.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomBiddingScript.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CustomBiddingAlgorithmsScriptsCreateCall) Do(opts ...googleapi.CallOption) (*CustomBiddingScript, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34109,51 +24975,7 @@ func (c *CustomBiddingAlgorithmsScriptsCreateCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Creates a new custom bidding script. Returns the newly created script if successful.", - // "flatPath": "v1/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts", - // "httpMethod": "POST", - // "id": "displayvideo.customBiddingAlgorithms.scripts.create", - // "parameterOrder": [ - // "customBiddingAlgorithmId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent custom bidding algorithm.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "customBiddingAlgorithmId": { - // "description": "Required. The ID of the custom bidding algorithm that owns the script.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent custom bidding algorithm. Only this partner will have write access to this custom bidding script.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts", - // "request": { - // "$ref": "CustomBiddingScript" - // }, - // "response": { - // "$ref": "CustomBiddingScript" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.customBiddingAlgorithms.scripts.get": +} type CustomBiddingAlgorithmsScriptsGetCall struct { s *Service @@ -34167,10 +24989,9 @@ type CustomBiddingAlgorithmsScriptsGetCall struct { // Get: Gets a custom bidding script. // -// - customBiddingAlgorithmId: The ID of the custom bidding algorithm -// owns the script. -// - customBiddingScriptId: The ID of the custom bidding script to -// fetch. +// - customBiddingAlgorithmId: The ID of the custom bidding algorithm owns the +// script. +// - customBiddingScriptId: The ID of the custom bidding script to fetch. func (r *CustomBiddingAlgorithmsScriptsService) Get(customBiddingAlgorithmId int64, customBiddingScriptId int64) *CustomBiddingAlgorithmsScriptsGetCall { c := &CustomBiddingAlgorithmsScriptsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.customBiddingAlgorithmId = customBiddingAlgorithmId @@ -34178,49 +24999,45 @@ func (r *CustomBiddingAlgorithmsScriptsService) Get(customBiddingAlgorithmId int return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the parent custom bidding algorithm. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the parent custom bidding algorithm. func (c *CustomBiddingAlgorithmsScriptsGetCall) AdvertiserId(advertiserId int64) *CustomBiddingAlgorithmsScriptsGetCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the parent custom bidding algorithm. Only this -// partner will have write access to this custom bidding script. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the parent custom bidding algorithm. Only this partner will have +// write access to this custom bidding script. func (c *CustomBiddingAlgorithmsScriptsGetCall) PartnerId(partnerId int64) *CustomBiddingAlgorithmsScriptsGetCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomBiddingAlgorithmsScriptsGetCall) Fields(s ...googleapi.Field) *CustomBiddingAlgorithmsScriptsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomBiddingAlgorithmsScriptsGetCall) IfNoneMatch(entityTag string) *CustomBiddingAlgorithmsScriptsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomBiddingAlgorithmsScriptsGetCall) Context(ctx context.Context) *CustomBiddingAlgorithmsScriptsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomBiddingAlgorithmsScriptsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34229,12 +25046,7 @@ func (c *CustomBiddingAlgorithmsScriptsGetCall) Header() http.Header { } func (c *CustomBiddingAlgorithmsScriptsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34252,16 +25064,15 @@ func (c *CustomBiddingAlgorithmsScriptsGetCall) doRequest(alt string) (*http.Res "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), "customBiddingScriptId": strconv.FormatInt(c.customBiddingScriptId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.scripts.get" call. -// Exactly one of *CustomBiddingScript or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CustomBiddingScript.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomBiddingScript.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CustomBiddingAlgorithmsScriptsGetCall) Do(opts ...googleapi.CallOption) (*CustomBiddingScript, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34292,57 +25103,7 @@ func (c *CustomBiddingAlgorithmsScriptsGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets a custom bidding script.", - // "flatPath": "v1/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts/{scriptsId}", - // "httpMethod": "GET", - // "id": "displayvideo.customBiddingAlgorithms.scripts.get", - // "parameterOrder": [ - // "customBiddingAlgorithmId", - // "customBiddingScriptId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent custom bidding algorithm.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "customBiddingAlgorithmId": { - // "description": "Required. The ID of the custom bidding algorithm owns the script.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "customBiddingScriptId": { - // "description": "Required. The ID of the custom bidding script to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent custom bidding algorithm. Only this partner will have write access to this custom bidding script.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts/{+customBiddingScriptId}", - // "response": { - // "$ref": "CustomBiddingScript" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.customBiddingAlgorithms.scripts.list": +} type CustomBiddingAlgorithmsScriptsListCall struct { s *Service @@ -34353,88 +25114,83 @@ type CustomBiddingAlgorithmsScriptsListCall struct { header_ http.Header } -// List: Lists custom bidding scripts that belong to the given -// algorithm. The order is defined by the order_by parameter. +// List: Lists custom bidding scripts that belong to the given algorithm. The +// order is defined by the order_by parameter. // -// - customBiddingAlgorithmId: The ID of the custom bidding algorithm -// owns the script. +// - customBiddingAlgorithmId: The ID of the custom bidding algorithm owns the +// script. func (r *CustomBiddingAlgorithmsScriptsService) List(customBiddingAlgorithmId int64) *CustomBiddingAlgorithmsScriptsListCall { c := &CustomBiddingAlgorithmsScriptsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.customBiddingAlgorithmId = customBiddingAlgorithmId return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the parent custom bidding algorithm. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the parent custom bidding algorithm. func (c *CustomBiddingAlgorithmsScriptsListCall) AdvertiserId(advertiserId int64) *CustomBiddingAlgorithmsScriptsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `createTime desc` (default) The -// default sorting order is descending. To specify ascending order for a -// field, the suffix "desc" should be removed. Example: `createTime`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `createTime desc` (default) The default +// sorting order is descending. To specify ascending order for a field, the +// suffix "desc" should be removed. Example: `createTime`. func (c *CustomBiddingAlgorithmsScriptsListCall) OrderBy(orderBy string) *CustomBiddingAlgorithmsScriptsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *CustomBiddingAlgorithmsScriptsListCall) PageSize(pageSize int64) *CustomBiddingAlgorithmsScriptsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListCustomBiddingScripts` method. If not specified, the first -// page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to +// `ListCustomBiddingScripts` method. If not specified, the first page of +// results will be returned. func (c *CustomBiddingAlgorithmsScriptsListCall) PageToken(pageToken string) *CustomBiddingAlgorithmsScriptsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the parent custom bidding algorithm. Only this -// partner will have write access to this custom bidding script. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the parent custom bidding algorithm. Only this partner will have +// write access to this custom bidding script. func (c *CustomBiddingAlgorithmsScriptsListCall) PartnerId(partnerId int64) *CustomBiddingAlgorithmsScriptsListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomBiddingAlgorithmsScriptsListCall) Fields(s ...googleapi.Field) *CustomBiddingAlgorithmsScriptsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomBiddingAlgorithmsScriptsListCall) IfNoneMatch(entityTag string) *CustomBiddingAlgorithmsScriptsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomBiddingAlgorithmsScriptsListCall) Context(ctx context.Context) *CustomBiddingAlgorithmsScriptsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomBiddingAlgorithmsScriptsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34443,12 +25199,7 @@ func (c *CustomBiddingAlgorithmsScriptsListCall) Header() http.Header { } func (c *CustomBiddingAlgorithmsScriptsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34465,16 +25216,15 @@ func (c *CustomBiddingAlgorithmsScriptsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.scripts.list" call. -// Exactly one of *ListCustomBiddingScriptsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListCustomBiddingScriptsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListCustomBiddingScriptsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CustomBiddingAlgorithmsScriptsListCall) Do(opts ...googleapi.CallOption) (*ListCustomBiddingScriptsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34505,61 +25255,6 @@ func (c *CustomBiddingAlgorithmsScriptsListCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Lists custom bidding scripts that belong to the given algorithm. The order is defined by the order_by parameter.", - // "flatPath": "v1/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts", - // "httpMethod": "GET", - // "id": "displayvideo.customBiddingAlgorithms.scripts.list", - // "parameterOrder": [ - // "customBiddingAlgorithmId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent custom bidding algorithm.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "customBiddingAlgorithmId": { - // "description": "Required. The ID of the custom bidding algorithm owns the script.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `createTime desc` (default) The default sorting order is descending. To specify ascending order for a field, the suffix \"desc\" should be removed. Example: `createTime`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListCustomBiddingScripts` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent custom bidding algorithm. Only this partner will have write access to this custom bidding script.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts", - // "response": { - // "$ref": "ListCustomBiddingScriptsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -34567,7 +25262,7 @@ func (c *CustomBiddingAlgorithmsScriptsListCall) Do(opts ...googleapi.CallOption // The provided context supersedes any context provided to the Context method. func (c *CustomBiddingAlgorithmsScriptsListCall) Pages(ctx context.Context, f func(*ListCustomBiddingScriptsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -34583,8 +25278,6 @@ func (c *CustomBiddingAlgorithmsScriptsListCall) Pages(ctx context.Context, f fu } } -// method id "displayvideo.customLists.get": - type CustomListsGetCall struct { s *Service customListId int64 @@ -34603,41 +25296,37 @@ func (r *CustomListsService) Get(customListId int64) *CustomListsGetCall { return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the DV360 advertiser that has access to the fetched custom lists. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the DV360 +// advertiser that has access to the fetched custom lists. func (c *CustomListsGetCall) AdvertiserId(advertiserId int64) *CustomListsGetCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomListsGetCall) Fields(s ...googleapi.Field) *CustomListsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomListsGetCall) IfNoneMatch(entityTag string) *CustomListsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomListsGetCall) Context(ctx context.Context) *CustomListsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomListsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34646,12 +25335,7 @@ func (c *CustomListsGetCall) Header() http.Header { } func (c *CustomListsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34668,16 +25352,14 @@ func (c *CustomListsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customListId": strconv.FormatInt(c.customListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customLists.get" call. -// Exactly one of *CustomList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CustomList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CustomList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CustomListsGetCall) Do(opts ...googleapi.CallOption) (*CustomList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34708,42 +25390,7 @@ func (c *CustomListsGetCall) Do(opts ...googleapi.CallOption) (*CustomList, erro return nil, err } return ret, nil - // { - // "description": "Gets a custom list.", - // "flatPath": "v1/customLists/{customListsId}", - // "httpMethod": "GET", - // "id": "displayvideo.customLists.get", - // "parameterOrder": [ - // "customListId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the DV360 advertiser that has access to the fetched custom lists.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "customListId": { - // "description": "Required. The ID of the custom list to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/customLists/{+customListId}", - // "response": { - // "$ref": "CustomList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.customLists.list": +} type CustomListsListCall struct { s *Service @@ -34753,92 +25400,83 @@ type CustomListsListCall struct { header_ http.Header } -// List: Lists custom lists. The order is defined by the order_by -// parameter. +// List: Lists custom lists. The order is defined by the order_by parameter. func (r *CustomListsService) List() *CustomListsListCall { c := &CustomListsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the DV360 advertiser that has access to the fetched custom lists. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the DV360 +// advertiser that has access to the fetched custom lists. func (c *CustomListsListCall) AdvertiserId(advertiserId int64) *CustomListsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// custom list fields. Supported syntax: * Filter expressions for custom -// lists can only contain at most one restriction. * A restriction has -// the form of `{field} {operator} {value}`. * All fields must use the -// `HAS (:)` operator. Supported fields: * `displayName` Examples: * All -// custom lists for which the display name contains "Google": -// `displayName:"Google". The length of this field should be no more -// than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// Filter sets the optional parameter "filter": Allows filtering by custom list +// fields. Supported syntax: * Filter expressions for custom lists can only +// contain at most one restriction. * A restriction has the form of `{field} +// {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported +// fields: * `displayName` Examples: * All custom lists for which the display +// name contains "Google": `displayName:"Google". The length of this field +// should be no more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *CustomListsListCall) Filter(filter string) *CustomListsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `customListId` (default) * -// `displayName` The default sorting order is ascending. To specify -// descending order for a field, a suffix "desc" should be added to the -// field name. Example: `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `customListId` (default) * `displayName` The +// default sorting order is ascending. To specify descending order for a field, +// a suffix "desc" should be added to the field name. Example: `displayName +// desc`. func (c *CustomListsListCall) OrderBy(orderBy string) *CustomListsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *CustomListsListCall) PageSize(pageSize int64) *CustomListsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListCustomLists` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListCustomLists` method. +// If not specified, the first page of results will be returned. func (c *CustomListsListCall) PageToken(pageToken string) *CustomListsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomListsListCall) Fields(s ...googleapi.Field) *CustomListsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomListsListCall) IfNoneMatch(entityTag string) *CustomListsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomListsListCall) Context(ctx context.Context) *CustomListsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomListsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -34847,12 +25485,7 @@ func (c *CustomListsListCall) Header() http.Header { } func (c *CustomListsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -34866,16 +25499,15 @@ func (c *CustomListsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customLists.list" call. -// Exactly one of *ListCustomListsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListCustomListsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CustomListsListCall) Do(opts ...googleapi.CallOption) (*ListCustomListsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -34906,50 +25538,6 @@ func (c *CustomListsListCall) Do(opts ...googleapi.CallOption) (*ListCustomLists return nil, err } return ret, nil - // { - // "description": "Lists custom lists. The order is defined by the order_by parameter.", - // "flatPath": "v1/customLists", - // "httpMethod": "GET", - // "id": "displayvideo.customLists.list", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the DV360 advertiser that has access to the fetched custom lists.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by custom list fields. Supported syntax: * Filter expressions for custom lists can only contain at most one restriction. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * `displayName` Examples: * All custom lists for which the display name contains \"Google\": `displayName:\"Google\"`. The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `customListId` (default) * `displayName` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListCustomLists` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/customLists", - // "response": { - // "$ref": "ListCustomListsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -34957,7 +25545,7 @@ func (c *CustomListsListCall) Do(opts ...googleapi.CallOption) (*ListCustomLists // The provided context supersedes any context provided to the Context method. func (c *CustomListsListCall) Pages(ctx context.Context, f func(*ListCustomListsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -34973,8 +25561,6 @@ func (c *CustomListsListCall) Pages(ctx context.Context, f func(*ListCustomLists } } -// method id "displayvideo.firstAndThirdPartyAudiences.create": - type FirstAndThirdPartyAudiencesCreateCall struct { s *Service firstandthirdpartyaudience *FirstAndThirdPartyAudience @@ -34992,32 +25578,29 @@ func (r *FirstAndThirdPartyAudiencesService) Create(firstandthirdpartyaudience * return c } -// AdvertiserId sets the optional parameter "advertiserId": Required. -// The ID of the advertiser under whom the FirstAndThirdPartyAudience -// will be created. +// AdvertiserId sets the optional parameter "advertiserId": Required. The ID of +// the advertiser under whom the FirstAndThirdPartyAudience will be created. func (c *FirstAndThirdPartyAudiencesCreateCall) AdvertiserId(advertiserId int64) *FirstAndThirdPartyAudiencesCreateCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FirstAndThirdPartyAudiencesCreateCall) Fields(s ...googleapi.Field) *FirstAndThirdPartyAudiencesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FirstAndThirdPartyAudiencesCreateCall) Context(ctx context.Context) *FirstAndThirdPartyAudiencesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FirstAndThirdPartyAudiencesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35026,18 +25609,12 @@ func (c *FirstAndThirdPartyAudiencesCreateCall) Header() http.Header { } func (c *FirstAndThirdPartyAudiencesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.firstandthirdpartyaudience) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/firstAndThirdPartyAudiences") @@ -35047,16 +25624,15 @@ func (c *FirstAndThirdPartyAudiencesCreateCall) doRequest(alt string) (*http.Res return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.create" call. -// Exactly one of *FirstAndThirdPartyAudience or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *FirstAndThirdPartyAudience.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *FirstAndThirdPartyAudience.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FirstAndThirdPartyAudiencesCreateCall) Do(opts ...googleapi.CallOption) (*FirstAndThirdPartyAudience, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35087,35 +25663,7 @@ func (c *FirstAndThirdPartyAudiencesCreateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates a FirstAndThirdPartyAudience. Only supported for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`", - // "flatPath": "v1/firstAndThirdPartyAudiences", - // "httpMethod": "POST", - // "id": "displayvideo.firstAndThirdPartyAudiences.create", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the advertiser under whom the FirstAndThirdPartyAudience will be created.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/firstAndThirdPartyAudiences", - // "request": { - // "$ref": "FirstAndThirdPartyAudience" - // }, - // "response": { - // "$ref": "FirstAndThirdPartyAudience" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers": +} type FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall struct { s *Service @@ -35140,23 +25688,21 @@ func (r *FirstAndThirdPartyAudiencesService) EditCustomerMatchMembers(firstAndTh } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) Fields(s ...googleapi.Field) *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) Context(ctx context.Context) *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35165,18 +25711,12 @@ func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) Header() http. } func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.editcustomermatchmembersrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}:editCustomerMatchMembers") @@ -35189,16 +25729,15 @@ func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers" call. -// Exactly one of *EditCustomerMatchMembersResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *EditCustomerMatchMembersResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EditCustomerMatchMembersResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) Do(opts ...googleapi.CallOption) (*EditCustomerMatchMembersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35229,39 +25768,7 @@ func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Updates the member list of a Customer Match audience. Only supported for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`", - // "flatPath": "v1/firstAndThirdPartyAudiences/{firstAndThirdPartyAudiencesId}:editCustomerMatchMembers", - // "httpMethod": "POST", - // "id": "displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers", - // "parameterOrder": [ - // "firstAndThirdPartyAudienceId" - // ], - // "parameters": { - // "firstAndThirdPartyAudienceId": { - // "description": "Required. The ID of the Customer Match FirstAndThirdPartyAudience whose members will be edited.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}:editCustomerMatchMembers", - // "request": { - // "$ref": "EditCustomerMatchMembersRequest" - // }, - // "response": { - // "$ref": "EditCustomerMatchMembersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.firstAndThirdPartyAudiences.get": +} type FirstAndThirdPartyAudiencesGetCall struct { s *Service @@ -35274,58 +25781,52 @@ type FirstAndThirdPartyAudiencesGetCall struct { // Get: Gets a first and third party audience. // -// - firstAndThirdPartyAudienceId: The ID of the first and third party -// audience to fetch. +// - firstAndThirdPartyAudienceId: The ID of the first and third party audience +// to fetch. func (r *FirstAndThirdPartyAudiencesService) Get(firstAndThirdPartyAudienceId int64) *FirstAndThirdPartyAudiencesGetCall { c := &FirstAndThirdPartyAudiencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.firstAndThirdPartyAudienceId = firstAndThirdPartyAudienceId return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the fetched first and third party -// audience. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the fetched first and third party audience. func (c *FirstAndThirdPartyAudiencesGetCall) AdvertiserId(advertiserId int64) *FirstAndThirdPartyAudiencesGetCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the fetched first and third party -// audience. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the fetched first and third party audience. func (c *FirstAndThirdPartyAudiencesGetCall) PartnerId(partnerId int64) *FirstAndThirdPartyAudiencesGetCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FirstAndThirdPartyAudiencesGetCall) Fields(s ...googleapi.Field) *FirstAndThirdPartyAudiencesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FirstAndThirdPartyAudiencesGetCall) IfNoneMatch(entityTag string) *FirstAndThirdPartyAudiencesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FirstAndThirdPartyAudiencesGetCall) Context(ctx context.Context) *FirstAndThirdPartyAudiencesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FirstAndThirdPartyAudiencesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35334,12 +25835,7 @@ func (c *FirstAndThirdPartyAudiencesGetCall) Header() http.Header { } func (c *FirstAndThirdPartyAudiencesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35356,16 +25852,15 @@ func (c *FirstAndThirdPartyAudiencesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.get" call. -// Exactly one of *FirstAndThirdPartyAudience or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *FirstAndThirdPartyAudience.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *FirstAndThirdPartyAudience.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FirstAndThirdPartyAudiencesGetCall) Do(opts ...googleapi.CallOption) (*FirstAndThirdPartyAudience, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35396,48 +25891,7 @@ func (c *FirstAndThirdPartyAudiencesGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets a first and third party audience.", - // "flatPath": "v1/firstAndThirdPartyAudiences/{firstAndThirdPartyAudiencesId}", - // "httpMethod": "GET", - // "id": "displayvideo.firstAndThirdPartyAudiences.get", - // "parameterOrder": [ - // "firstAndThirdPartyAudienceId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the fetched first and third party audience.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "firstAndThirdPartyAudienceId": { - // "description": "Required. The ID of the first and third party audience to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the fetched first and third party audience.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}", - // "response": { - // "$ref": "FirstAndThirdPartyAudience" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.firstAndThirdPartyAudiences.list": +} type FirstAndThirdPartyAudiencesListCall struct { s *Service @@ -35447,102 +25901,93 @@ type FirstAndThirdPartyAudiencesListCall struct { header_ http.Header } -// List: Lists first and third party audiences. The order is defined by -// the order_by parameter. +// List: Lists first and third party audiences. The order is defined by the +// order_by parameter. func (r *FirstAndThirdPartyAudiencesService) List() *FirstAndThirdPartyAudiencesListCall { c := &FirstAndThirdPartyAudiencesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the fetched first and third party -// audiences. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the fetched first and third party audiences. func (c *FirstAndThirdPartyAudiencesListCall) AdvertiserId(advertiserId int64) *FirstAndThirdPartyAudiencesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// first and third party audience fields. Supported syntax: * Filter -// expressions for first and third party audiences can only contain at -// most one restriction. * A restriction has the form of `{field} -// {operator} {value}`. * All fields must use the `HAS (:)` operator. -// Supported fields: * `displayName` Examples: * All first and third -// party audiences for which the display name contains "Google": -// `displayName:"Google". The length of this field should be no more +// Filter sets the optional parameter "filter": Allows filtering by first and +// third party audience fields. Supported syntax: * Filter expressions for +// first and third party audiences can only contain at most one restriction. * +// A restriction has the form of `{field} {operator} {value}`. * All fields +// must use the `HAS (:)` operator. Supported fields: * `displayName` Examples: +// * All first and third party audiences for which the display name contains +// "Google": `displayName:"Google". The length of this field should be no more // than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *FirstAndThirdPartyAudiencesListCall) Filter(filter string) *FirstAndThirdPartyAudiencesListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `firstAndThirdPartyAudienceId` -// (default) * `displayName` The default sorting order is ascending. To -// specify descending order for a field, a suffix "desc" should be added -// to the field name. Example: `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `firstAndThirdPartyAudienceId` (default) * +// `displayName` The default sorting order is ascending. To specify descending +// order for a field, a suffix "desc" should be added to the field name. +// Example: `displayName desc`. func (c *FirstAndThirdPartyAudiencesListCall) OrderBy(orderBy string) *FirstAndThirdPartyAudiencesListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *FirstAndThirdPartyAudiencesListCall) PageSize(pageSize int64) *FirstAndThirdPartyAudiencesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListFirstAndThirdPartyAudiences` method. If not specified, the -// first page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to +// `ListFirstAndThirdPartyAudiences` method. If not specified, the first page +// of results will be returned. func (c *FirstAndThirdPartyAudiencesListCall) PageToken(pageToken string) *FirstAndThirdPartyAudiencesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the fetched first and third party -// audiences. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the fetched first and third party audiences. func (c *FirstAndThirdPartyAudiencesListCall) PartnerId(partnerId int64) *FirstAndThirdPartyAudiencesListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FirstAndThirdPartyAudiencesListCall) Fields(s ...googleapi.Field) *FirstAndThirdPartyAudiencesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FirstAndThirdPartyAudiencesListCall) IfNoneMatch(entityTag string) *FirstAndThirdPartyAudiencesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FirstAndThirdPartyAudiencesListCall) Context(ctx context.Context) *FirstAndThirdPartyAudiencesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FirstAndThirdPartyAudiencesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35551,12 +25996,7 @@ func (c *FirstAndThirdPartyAudiencesListCall) Header() http.Header { } func (c *FirstAndThirdPartyAudiencesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35570,17 +26010,15 @@ func (c *FirstAndThirdPartyAudiencesListCall) doRequest(alt string) (*http.Respo return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.list" call. -// Exactly one of *ListFirstAndThirdPartyAudiencesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *ListFirstAndThirdPartyAudiencesResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListFirstAndThirdPartyAudiencesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FirstAndThirdPartyAudiencesListCall) Do(opts ...googleapi.CallOption) (*ListFirstAndThirdPartyAudiencesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35611,56 +26049,6 @@ func (c *FirstAndThirdPartyAudiencesListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists first and third party audiences. The order is defined by the order_by parameter.", - // "flatPath": "v1/firstAndThirdPartyAudiences", - // "httpMethod": "GET", - // "id": "displayvideo.firstAndThirdPartyAudiences.list", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the fetched first and third party audiences.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by first and third party audience fields. Supported syntax: * Filter expressions for first and third party audiences can only contain at most one restriction. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * `displayName` Examples: * All first and third party audiences for which the display name contains \"Google\": `displayName:\"Google\"`. The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `firstAndThirdPartyAudienceId` (default) * `displayName` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListFirstAndThirdPartyAudiences` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the fetched first and third party audiences.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/firstAndThirdPartyAudiences", - // "response": { - // "$ref": "ListFirstAndThirdPartyAudiencesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -35668,7 +26056,7 @@ func (c *FirstAndThirdPartyAudiencesListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *FirstAndThirdPartyAudiencesListCall) Pages(ctx context.Context, f func(*ListFirstAndThirdPartyAudiencesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -35684,8 +26072,6 @@ func (c *FirstAndThirdPartyAudiencesListCall) Pages(ctx context.Context, f func( } } -// method id "displayvideo.firstAndThirdPartyAudiences.patch": - type FirstAndThirdPartyAudiencesPatchCall struct { s *Service firstAndThirdPartyAudienceId int64 @@ -35695,12 +26081,12 @@ type FirstAndThirdPartyAudiencesPatchCall struct { header_ http.Header } -// Patch: Updates an existing FirstAndThirdPartyAudience. Only supported -// for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * +// Patch: Updates an existing FirstAndThirdPartyAudience. Only supported for +// the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * // `CUSTOMER_MATCH_DEVICE_ID` // -// - firstAndThirdPartyAudienceId: Output only. The unique ID of the -// first and third party audience. Assigned by the system. +// - firstAndThirdPartyAudienceId: Output only. The unique ID of the first and +// third party audience. Assigned by the system. func (r *FirstAndThirdPartyAudiencesService) Patch(firstAndThirdPartyAudienceId int64, firstandthirdpartyaudience *FirstAndThirdPartyAudience) *FirstAndThirdPartyAudiencesPatchCall { c := &FirstAndThirdPartyAudiencesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.firstAndThirdPartyAudienceId = firstAndThirdPartyAudienceId @@ -35708,41 +26094,37 @@ func (r *FirstAndThirdPartyAudiencesService) Patch(firstAndThirdPartyAudienceId return c } -// AdvertiserId sets the optional parameter "advertiserId": Required. -// The ID of the owner advertiser of the updated -// FirstAndThirdPartyAudience. +// AdvertiserId sets the optional parameter "advertiserId": Required. The ID of +// the owner advertiser of the updated FirstAndThirdPartyAudience. func (c *FirstAndThirdPartyAudiencesPatchCall) AdvertiserId(advertiserId int64) *FirstAndThirdPartyAudiencesPatchCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. Updates are only supported -// for the following fields: * `displayName` * `description` * -// `membershipDurationDays` +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. Updates are only supported for the following +// fields: * `displayName` * `description` * `membershipDurationDays` func (c *FirstAndThirdPartyAudiencesPatchCall) UpdateMask(updateMask string) *FirstAndThirdPartyAudiencesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FirstAndThirdPartyAudiencesPatchCall) Fields(s ...googleapi.Field) *FirstAndThirdPartyAudiencesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FirstAndThirdPartyAudiencesPatchCall) Context(ctx context.Context) *FirstAndThirdPartyAudiencesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FirstAndThirdPartyAudiencesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35751,18 +26133,12 @@ func (c *FirstAndThirdPartyAudiencesPatchCall) Header() http.Header { } func (c *FirstAndThirdPartyAudiencesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.firstandthirdpartyaudience) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}") @@ -35775,16 +26151,15 @@ func (c *FirstAndThirdPartyAudiencesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.patch" call. -// Exactly one of *FirstAndThirdPartyAudience or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *FirstAndThirdPartyAudience.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *FirstAndThirdPartyAudience.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FirstAndThirdPartyAudiencesPatchCall) Do(opts ...googleapi.CallOption) (*FirstAndThirdPartyAudience, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35815,51 +26190,7 @@ func (c *FirstAndThirdPartyAudiencesPatchCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Updates an existing FirstAndThirdPartyAudience. Only supported for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`", - // "flatPath": "v1/firstAndThirdPartyAudiences/{firstAndThirdPartyAudiencesId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.firstAndThirdPartyAudiences.patch", - // "parameterOrder": [ - // "firstAndThirdPartyAudienceId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The ID of the owner advertiser of the updated FirstAndThirdPartyAudience.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "firstAndThirdPartyAudienceId": { - // "description": "Output only. The unique ID of the first and third party audience. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update. Updates are only supported for the following fields: * `displayName` * `description` * `membershipDurationDays`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}", - // "request": { - // "$ref": "FirstAndThirdPartyAudience" - // }, - // "response": { - // "$ref": "FirstAndThirdPartyAudience" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.floodlightGroups.get": +} type FloodlightGroupsGetCall struct { s *Service @@ -35879,41 +26210,37 @@ func (r *FloodlightGroupsService) Get(floodlightGroupId int64) *FloodlightGroups return c } -// PartnerId sets the optional parameter "partnerId": Required. The -// partner context by which the Floodlight group is being accessed. +// PartnerId sets the optional parameter "partnerId": Required. The partner +// context by which the Floodlight group is being accessed. func (c *FloodlightGroupsGetCall) PartnerId(partnerId int64) *FloodlightGroupsGetCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightGroupsGetCall) Fields(s ...googleapi.Field) *FloodlightGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FloodlightGroupsGetCall) IfNoneMatch(entityTag string) *FloodlightGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightGroupsGetCall) Context(ctx context.Context) *FloodlightGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -35922,12 +26249,7 @@ func (c *FloodlightGroupsGetCall) Header() http.Header { } func (c *FloodlightGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -35944,16 +26266,15 @@ func (c *FloodlightGroupsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "floodlightGroupId": strconv.FormatInt(c.floodlightGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.floodlightGroups.get" call. -// Exactly one of *FloodlightGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *FloodlightGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -35984,42 +26305,7 @@ func (c *FloodlightGroupsGetCall) Do(opts ...googleapi.CallOption) (*FloodlightG return nil, err } return ret, nil - // { - // "description": "Gets a Floodlight group.", - // "flatPath": "v1/floodlightGroups/{floodlightGroupsId}", - // "httpMethod": "GET", - // "id": "displayvideo.floodlightGroups.get", - // "parameterOrder": [ - // "floodlightGroupId" - // ], - // "parameters": { - // "floodlightGroupId": { - // "description": "Required. The ID of the Floodlight group to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "Required. The partner context by which the Floodlight group is being accessed.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/floodlightGroups/{+floodlightGroupId}", - // "response": { - // "$ref": "FloodlightGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.floodlightGroups.patch": +} type FloodlightGroupsPatchCall struct { s *Service @@ -36030,11 +26316,11 @@ type FloodlightGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an existing Floodlight group. Returns the updated -// Floodlight group if successful. +// Patch: Updates an existing Floodlight group. Returns the updated Floodlight +// group if successful. // -// - floodlightGroupId: Output only. The unique ID of the Floodlight -// group. Assigned by the system. +// - floodlightGroupId: Output only. The unique ID of the Floodlight group. +// Assigned by the system. func (r *FloodlightGroupsService) Patch(floodlightGroupId int64, floodlightgroup *FloodlightGroup) *FloodlightGroupsPatchCall { c := &FloodlightGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.floodlightGroupId = floodlightGroupId @@ -36042,38 +26328,36 @@ func (r *FloodlightGroupsService) Patch(floodlightGroupId int64, floodlightgroup return c } -// PartnerId sets the optional parameter "partnerId": Required. The -// partner context by which the Floodlight group is being accessed. +// PartnerId sets the optional parameter "partnerId": Required. The partner +// context by which the Floodlight group is being accessed. func (c *FloodlightGroupsPatchCall) PartnerId(partnerId int64) *FloodlightGroupsPatchCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *FloodlightGroupsPatchCall) UpdateMask(updateMask string) *FloodlightGroupsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FloodlightGroupsPatchCall) Fields(s ...googleapi.Field) *FloodlightGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FloodlightGroupsPatchCall) Context(ctx context.Context) *FloodlightGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FloodlightGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36082,18 +26366,12 @@ func (c *FloodlightGroupsPatchCall) Header() http.Header { } func (c *FloodlightGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.floodlightgroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/floodlightGroups/{floodlightGroupId}") @@ -36106,16 +26384,15 @@ func (c *FloodlightGroupsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "floodlightGroupId": strconv.FormatInt(c.floodlightGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.floodlightGroups.patch" call. -// Exactly one of *FloodlightGroup or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *FloodlightGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FloodlightGroup.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FloodlightGroupsPatchCall) Do(opts ...googleapi.CallOption) (*FloodlightGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36146,50 +26423,7 @@ func (c *FloodlightGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Floodligh return nil, err } return ret, nil - // { - // "description": "Updates an existing Floodlight group. Returns the updated Floodlight group if successful.", - // "flatPath": "v1/floodlightGroups/{floodlightGroupId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.floodlightGroups.patch", - // "parameterOrder": [ - // "floodlightGroupId" - // ], - // "parameters": { - // "floodlightGroupId": { - // "description": "Output only. The unique ID of the Floodlight group. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "Required. The partner context by which the Floodlight group is being accessed.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/floodlightGroups/{floodlightGroupId}", - // "request": { - // "$ref": "FloodlightGroup" - // }, - // "response": { - // "$ref": "FloodlightGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.googleAudiences.get": +} type GoogleAudiencesGetCall struct { s *Service @@ -36209,48 +26443,44 @@ func (r *GoogleAudiencesService) Get(googleAudienceId int64) *GoogleAudiencesGet return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the fetched Google audience. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the fetched Google audience. func (c *GoogleAudiencesGetCall) AdvertiserId(advertiserId int64) *GoogleAudiencesGetCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the fetched Google audience. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the fetched Google audience. func (c *GoogleAudiencesGetCall) PartnerId(partnerId int64) *GoogleAudiencesGetCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GoogleAudiencesGetCall) Fields(s ...googleapi.Field) *GoogleAudiencesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *GoogleAudiencesGetCall) IfNoneMatch(entityTag string) *GoogleAudiencesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GoogleAudiencesGetCall) Context(ctx context.Context) *GoogleAudiencesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GoogleAudiencesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36259,12 +26489,7 @@ func (c *GoogleAudiencesGetCall) Header() http.Header { } func (c *GoogleAudiencesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36281,16 +26506,14 @@ func (c *GoogleAudiencesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "googleAudienceId": strconv.FormatInt(c.googleAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.googleAudiences.get" call. -// Exactly one of *GoogleAudience or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *GoogleAudience.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleAudience.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *GoogleAudiencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAudience, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36321,48 +26544,7 @@ func (c *GoogleAudiencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAudien return nil, err } return ret, nil - // { - // "description": "Gets a Google audience.", - // "flatPath": "v1/googleAudiences/{googleAudiencesId}", - // "httpMethod": "GET", - // "id": "displayvideo.googleAudiences.get", - // "parameterOrder": [ - // "googleAudienceId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the fetched Google audience.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "googleAudienceId": { - // "description": "Required. The ID of the Google audience to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the fetched Google audience.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/googleAudiences/{+googleAudienceId}", - // "response": { - // "$ref": "GoogleAudience" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.googleAudiences.list": +} type GoogleAudiencesListCall struct { s *Service @@ -36379,92 +26561,85 @@ func (r *GoogleAudiencesService) List() *GoogleAudiencesListCall { return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the fetched Google audiences. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the fetched Google audiences. func (c *GoogleAudiencesListCall) AdvertiserId(advertiserId int64) *GoogleAudiencesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// Google audience fields. Supported syntax: * Filter expressions for -// Google audiences can only contain at most one restriction. * A -// restriction has the form of `{field} {operator} {value}`. * All -// fields must use the `HAS (:)` operator. Supported fields: * -// `displayName` Examples: * All Google audiences for which the display -// name contains "Google": `displayName:"Google". The length of this -// field should be no more than 500 characters. Reference our filter -// `LIST` requests (/display-video/api/guides/how-tos/filters) guide for -// more information. +// Filter sets the optional parameter "filter": Allows filtering by Google +// audience fields. Supported syntax: * Filter expressions for Google audiences +// can only contain at most one restriction. * A restriction has the form of +// `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. +// Supported fields: * `displayName` Examples: * All Google audiences for which +// the display name contains "Google": `displayName:"Google". The length of +// this field should be no more than 500 characters. Reference our filter +// `LIST` requests (/display-video/api/guides/how-tos/filters) guide for more +// information. func (c *GoogleAudiencesListCall) Filter(filter string) *GoogleAudiencesListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `googleAudienceId` (default) * -// `displayName` The default sorting order is ascending. To specify -// descending order for a field, a suffix "desc" should be added to the -// field name. Example: `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `googleAudienceId` (default) * `displayName` +// The default sorting order is ascending. To specify descending order for a +// field, a suffix "desc" should be added to the field name. Example: +// `displayName desc`. func (c *GoogleAudiencesListCall) OrderBy(orderBy string) *GoogleAudiencesListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *GoogleAudiencesListCall) PageSize(pageSize int64) *GoogleAudiencesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListGoogleAudiences` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListGoogleAudiences` +// method. If not specified, the first page of results will be returned. func (c *GoogleAudiencesListCall) PageToken(pageToken string) *GoogleAudiencesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the fetched Google audiences. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the fetched Google audiences. func (c *GoogleAudiencesListCall) PartnerId(partnerId int64) *GoogleAudiencesListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GoogleAudiencesListCall) Fields(s ...googleapi.Field) *GoogleAudiencesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *GoogleAudiencesListCall) IfNoneMatch(entityTag string) *GoogleAudiencesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GoogleAudiencesListCall) Context(ctx context.Context) *GoogleAudiencesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GoogleAudiencesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36473,12 +26648,7 @@ func (c *GoogleAudiencesListCall) Header() http.Header { } func (c *GoogleAudiencesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36492,16 +26662,15 @@ func (c *GoogleAudiencesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.googleAudiences.list" call. -// Exactly one of *ListGoogleAudiencesResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ListGoogleAudiencesResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ListGoogleAudiencesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *GoogleAudiencesListCall) Do(opts ...googleapi.CallOption) (*ListGoogleAudiencesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36532,56 +26701,6 @@ func (c *GoogleAudiencesListCall) Do(opts ...googleapi.CallOption) (*ListGoogleA return nil, err } return ret, nil - // { - // "description": "Lists Google audiences. The order is defined by the order_by parameter.", - // "flatPath": "v1/googleAudiences", - // "httpMethod": "GET", - // "id": "displayvideo.googleAudiences.list", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the fetched Google audiences.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by Google audience fields. Supported syntax: * Filter expressions for Google audiences can only contain at most one restriction. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * `displayName` Examples: * All Google audiences for which the display name contains \"Google\": `displayName:\"Google\"`. The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `googleAudienceId` (default) * `displayName` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListGoogleAudiences` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the fetched Google audiences.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/googleAudiences", - // "response": { - // "$ref": "ListGoogleAudiencesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -36589,7 +26708,7 @@ func (c *GoogleAudiencesListCall) Do(opts ...googleapi.CallOption) (*ListGoogleA // The provided context supersedes any context provided to the Context method. func (c *GoogleAudiencesListCall) Pages(ctx context.Context, f func(*ListGoogleAudiencesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -36605,8 +26724,6 @@ func (c *GoogleAudiencesListCall) Pages(ctx context.Context, f func(*ListGoogleA } } -// method id "displayvideo.guaranteedOrders.create": - type GuaranteedOrdersCreateCall struct { s *Service guaranteedorder *GuaranteedOrder @@ -36615,46 +26732,44 @@ type GuaranteedOrdersCreateCall struct { header_ http.Header } -// Create: Creates a new guaranteed order. Returns the newly created -// guaranteed order if successful. +// Create: Creates a new guaranteed order. Returns the newly created guaranteed +// order if successful. func (r *GuaranteedOrdersService) Create(guaranteedorder *GuaranteedOrder) *GuaranteedOrdersCreateCall { c := &GuaranteedOrdersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.guaranteedorder = guaranteedorder return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that the request is being made within. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that the request is being made within. func (c *GuaranteedOrdersCreateCall) AdvertiserId(advertiserId int64) *GuaranteedOrdersCreateCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that the request is being made within. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that the request is being made within. func (c *GuaranteedOrdersCreateCall) PartnerId(partnerId int64) *GuaranteedOrdersCreateCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GuaranteedOrdersCreateCall) Fields(s ...googleapi.Field) *GuaranteedOrdersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GuaranteedOrdersCreateCall) Context(ctx context.Context) *GuaranteedOrdersCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GuaranteedOrdersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36663,18 +26778,12 @@ func (c *GuaranteedOrdersCreateCall) Header() http.Header { } func (c *GuaranteedOrdersCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.guaranteedorder) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/guaranteedOrders") @@ -36684,16 +26793,15 @@ func (c *GuaranteedOrdersCreateCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.create" call. -// Exactly one of *GuaranteedOrder or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *GuaranteedOrder.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GuaranteedOrder.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *GuaranteedOrdersCreateCall) Do(opts ...googleapi.CallOption) (*GuaranteedOrder, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36724,41 +26832,7 @@ func (c *GuaranteedOrdersCreateCall) Do(opts ...googleapi.CallOption) (*Guarante return nil, err } return ret, nil - // { - // "description": "Creates a new guaranteed order. Returns the newly created guaranteed order if successful.", - // "flatPath": "v1/guaranteedOrders", - // "httpMethod": "POST", - // "id": "displayvideo.guaranteedOrders.create", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that the request is being made within.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that the request is being made within.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/guaranteedOrders", - // "request": { - // "$ref": "GuaranteedOrder" - // }, - // "response": { - // "$ref": "GuaranteedOrder" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors": +} type GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall struct { s *Service @@ -36769,11 +26843,11 @@ type GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall struct { header_ http.Header } -// EditGuaranteedOrderReadAccessors: Edits read advertisers of a -// guaranteed order. +// EditGuaranteedOrderReadAccessors: Edits read advertisers of a guaranteed +// order. // -// - guaranteedOrderId: The ID of the guaranteed order to edit. The ID -// is of the format `{exchange}-{legacy_guaranteed_order_id}`. +// - guaranteedOrderId: The ID of the guaranteed order to edit. The ID is of +// the format `{exchange}-{legacy_guaranteed_order_id}`. func (r *GuaranteedOrdersService) EditGuaranteedOrderReadAccessors(guaranteedOrderId string, editguaranteedorderreadaccessorsrequest *EditGuaranteedOrderReadAccessorsRequest) *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall { c := &GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.guaranteedOrderId = guaranteedOrderId @@ -36782,23 +26856,21 @@ func (r *GuaranteedOrdersService) EditGuaranteedOrderReadAccessors(guaranteedOrd } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) Fields(s ...googleapi.Field) *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) Context(ctx context.Context) *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36807,18 +26879,12 @@ func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) Header() http.Hea } func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.editguaranteedorderreadaccessorsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/guaranteedOrders/{+guaranteedOrderId}:editGuaranteedOrderReadAccessors") @@ -36831,18 +26897,15 @@ func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "guaranteedOrderId": c.guaranteedOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors" call. -// Exactly one of *EditGuaranteedOrderReadAccessorsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *EditGuaranteedOrderReadAccessorsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *EditGuaranteedOrderReadAccessorsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) Do(opts ...googleapi.CallOption) (*EditGuaranteedOrderReadAccessorsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -36873,38 +26936,7 @@ func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Edits read advertisers of a guaranteed order.", - // "flatPath": "v1/guaranteedOrders/{guaranteedOrdersId}:editGuaranteedOrderReadAccessors", - // "httpMethod": "POST", - // "id": "displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors", - // "parameterOrder": [ - // "guaranteedOrderId" - // ], - // "parameters": { - // "guaranteedOrderId": { - // "description": "Required. The ID of the guaranteed order to edit. The ID is of the format `{exchange}-{legacy_guaranteed_order_id}`", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/guaranteedOrders/{+guaranteedOrderId}:editGuaranteedOrderReadAccessors", - // "request": { - // "$ref": "EditGuaranteedOrderReadAccessorsRequest" - // }, - // "response": { - // "$ref": "EditGuaranteedOrderReadAccessorsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.guaranteedOrders.get": +} type GuaranteedOrdersGetCall struct { s *Service @@ -36917,56 +26949,52 @@ type GuaranteedOrdersGetCall struct { // Get: Gets a guaranteed order. // -// - guaranteedOrderId: The ID of the guaranteed order to fetch. The ID -// is of the format `{exchange}-{legacy_guaranteed_order_id}`. +// - guaranteedOrderId: The ID of the guaranteed order to fetch. The ID is of +// the format `{exchange}-{legacy_guaranteed_order_id}`. func (r *GuaranteedOrdersService) Get(guaranteedOrderId string) *GuaranteedOrdersGetCall { c := &GuaranteedOrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.guaranteedOrderId = guaranteedOrderId return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the guaranteed order. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the guaranteed order. func (c *GuaranteedOrdersGetCall) AdvertiserId(advertiserId int64) *GuaranteedOrdersGetCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the guaranteed order. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the guaranteed order. func (c *GuaranteedOrdersGetCall) PartnerId(partnerId int64) *GuaranteedOrdersGetCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GuaranteedOrdersGetCall) Fields(s ...googleapi.Field) *GuaranteedOrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *GuaranteedOrdersGetCall) IfNoneMatch(entityTag string) *GuaranteedOrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GuaranteedOrdersGetCall) Context(ctx context.Context) *GuaranteedOrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GuaranteedOrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -36975,12 +27003,7 @@ func (c *GuaranteedOrdersGetCall) Header() http.Header { } func (c *GuaranteedOrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -36997,16 +27020,15 @@ func (c *GuaranteedOrdersGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "guaranteedOrderId": c.guaranteedOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.get" call. -// Exactly one of *GuaranteedOrder or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *GuaranteedOrder.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GuaranteedOrder.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *GuaranteedOrdersGetCall) Do(opts ...googleapi.CallOption) (*GuaranteedOrder, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37037,47 +27059,7 @@ func (c *GuaranteedOrdersGetCall) Do(opts ...googleapi.CallOption) (*GuaranteedO return nil, err } return ret, nil - // { - // "description": "Gets a guaranteed order.", - // "flatPath": "v1/guaranteedOrders/{guaranteedOrdersId}", - // "httpMethod": "GET", - // "id": "displayvideo.guaranteedOrders.get", - // "parameterOrder": [ - // "guaranteedOrderId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the guaranteed order.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "guaranteedOrderId": { - // "description": "Required. The ID of the guaranteed order to fetch. The ID is of the format `{exchange}-{legacy_guaranteed_order_id}`", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the guaranteed order.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/guaranteedOrders/{+guaranteedOrderId}", - // "response": { - // "$ref": "GuaranteedOrder" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.guaranteedOrders.list": +} type GuaranteedOrdersListCall struct { s *Service @@ -37087,104 +27069,96 @@ type GuaranteedOrdersListCall struct { header_ http.Header } -// List: Lists guaranteed orders that are accessible to the current -// user. The order is defined by the order_by parameter. If a filter by -// entity_status is not specified, guaranteed orders with entity status -// `ENTITY_STATUS_ARCHIVED` will not be included in the results. +// List: Lists guaranteed orders that are accessible to the current user. The +// order is defined by the order_by parameter. If a filter by entity_status is +// not specified, guaranteed orders with entity status `ENTITY_STATUS_ARCHIVED` +// will not be included in the results. func (r *GuaranteedOrdersService) List() *GuaranteedOrdersListCall { c := &GuaranteedOrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the guaranteed order. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the guaranteed order. func (c *GuaranteedOrdersListCall) AdvertiserId(advertiserId int64) *GuaranteedOrdersListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// guaranteed order fields. * Filter expressions are made up of one or -// more restrictions. * Restrictions can be combined by `AND` or `OR` -// logical operators. A sequence of restrictions implicitly uses `AND`. -// * A restriction has the form of `{field} {operator} {value}`. * All -// fields must use the `EQUALS (=)` operator. Supported fields: * -// `guaranteed_order_id` * `exchange` * `display_name` * -// `status.entityStatus` Examples: * All active guaranteed orders: -// `status.entityStatus="ENTITY_STATUS_ACTIVE" * Guaranteed orders +// Filter sets the optional parameter "filter": Allows filtering by guaranteed +// order fields. * Filter expressions are made up of one or more restrictions. +// * Restrictions can be combined by `AND` or `OR` logical operators. A +// sequence of restrictions implicitly uses `AND`. * A restriction has the form +// of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` +// operator. Supported fields: * `guaranteed_order_id` * `exchange` * +// `display_name` * `status.entityStatus` Examples: * All active guaranteed +// orders: `status.entityStatus="ENTITY_STATUS_ACTIVE" * Guaranteed orders // belonging to Google Ad Manager or Rubicon exchanges: -// `exchange="EXCHANGE_GOOGLE_AD_MANAGER" OR -// exchange="EXCHANGE_RUBICON" The length of this field should be no -// more than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// `exchange="EXCHANGE_GOOGLE_AD_MANAGER" OR exchange="EXCHANGE_RUBICON" The +// length of this field should be no more than 500 characters. Reference our +// filter `LIST` requests (/display-video/api/guides/how-tos/filters) guide for +// more information. func (c *GuaranteedOrdersListCall) Filter(filter string) *GuaranteedOrdersListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix "desc" should be added to the field name. For -// example, `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix "desc" +// should be added to the field name. For example, `displayName desc`. func (c *GuaranteedOrdersListCall) OrderBy(orderBy string) *GuaranteedOrdersListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. func (c *GuaranteedOrdersListCall) PageSize(pageSize int64) *GuaranteedOrdersListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListGuaranteedOrders` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListGuaranteedOrders` +// method. If not specified, the first page of results will be returned. func (c *GuaranteedOrdersListCall) PageToken(pageToken string) *GuaranteedOrdersListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the guaranteed order. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the guaranteed order. func (c *GuaranteedOrdersListCall) PartnerId(partnerId int64) *GuaranteedOrdersListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GuaranteedOrdersListCall) Fields(s ...googleapi.Field) *GuaranteedOrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *GuaranteedOrdersListCall) IfNoneMatch(entityTag string) *GuaranteedOrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GuaranteedOrdersListCall) Context(ctx context.Context) *GuaranteedOrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GuaranteedOrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37193,12 +27167,7 @@ func (c *GuaranteedOrdersListCall) Header() http.Header { } func (c *GuaranteedOrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37212,16 +27181,15 @@ func (c *GuaranteedOrdersListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.list" call. -// Exactly one of *ListGuaranteedOrdersResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListGuaranteedOrdersResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListGuaranteedOrdersResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *GuaranteedOrdersListCall) Do(opts ...googleapi.CallOption) (*ListGuaranteedOrdersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37252,56 +27220,6 @@ func (c *GuaranteedOrdersListCall) Do(opts ...googleapi.CallOption) (*ListGuaran return nil, err } return ret, nil - // { - // "description": "Lists guaranteed orders that are accessible to the current user. The order is defined by the order_by parameter. If a filter by entity_status is not specified, guaranteed orders with entity status `ENTITY_STATUS_ARCHIVED` will not be included in the results.", - // "flatPath": "v1/guaranteedOrders", - // "httpMethod": "GET", - // "id": "displayvideo.guaranteedOrders.list", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the guaranteed order.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by guaranteed order fields. * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `guaranteed_order_id` * `exchange` * `display_name` * `status.entityStatus` Examples: * All active guaranteed orders: `status.entityStatus=\"ENTITY_STATUS_ACTIVE\"` * Guaranteed orders belonging to Google Ad Manager or Rubicon exchanges: `exchange=\"EXCHANGE_GOOGLE_AD_MANAGER\" OR exchange=\"EXCHANGE_RUBICON\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListGuaranteedOrders` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the guaranteed order.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/guaranteedOrders", - // "response": { - // "$ref": "ListGuaranteedOrdersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -37309,7 +27227,7 @@ func (c *GuaranteedOrdersListCall) Do(opts ...googleapi.CallOption) (*ListGuaran // The provided context supersedes any context provided to the Context method. func (c *GuaranteedOrdersListCall) Pages(ctx context.Context, f func(*ListGuaranteedOrdersResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -37325,8 +27243,6 @@ func (c *GuaranteedOrdersListCall) Pages(ctx context.Context, f func(*ListGuaran } } -// method id "displayvideo.guaranteedOrders.patch": - type GuaranteedOrdersPatchCall struct { s *Service guaranteedOrderId string @@ -37336,11 +27252,11 @@ type GuaranteedOrdersPatchCall struct { header_ http.Header } -// Patch: Updates an existing guaranteed order. Returns the updated -// guaranteed order if successful. +// Patch: Updates an existing guaranteed order. Returns the updated guaranteed +// order if successful. // -// - guaranteedOrderId: Output only. The unique identifier of the -// guaranteed order. The guaranteed order IDs have the format +// - guaranteedOrderId: Output only. The unique identifier of the guaranteed +// order. The guaranteed order IDs have the format // `{exchange}-{legacy_guaranteed_order_id}`. func (r *GuaranteedOrdersService) Patch(guaranteedOrderId string, guaranteedorder *GuaranteedOrder) *GuaranteedOrdersPatchCall { c := &GuaranteedOrdersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -37349,45 +27265,43 @@ func (r *GuaranteedOrdersService) Patch(guaranteedOrderId string, guaranteedorde return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that the request is being made within. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that the request is being made within. func (c *GuaranteedOrdersPatchCall) AdvertiserId(advertiserId int64) *GuaranteedOrdersPatchCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that the request is being made within. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that the request is being made within. func (c *GuaranteedOrdersPatchCall) PartnerId(partnerId int64) *GuaranteedOrdersPatchCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *GuaranteedOrdersPatchCall) UpdateMask(updateMask string) *GuaranteedOrdersPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GuaranteedOrdersPatchCall) Fields(s ...googleapi.Field) *GuaranteedOrdersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GuaranteedOrdersPatchCall) Context(ctx context.Context) *GuaranteedOrdersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GuaranteedOrdersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37396,18 +27310,12 @@ func (c *GuaranteedOrdersPatchCall) Header() http.Header { } func (c *GuaranteedOrdersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.guaranteedorder) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/guaranteedOrders/{+guaranteedOrderId}") @@ -37420,16 +27328,15 @@ func (c *GuaranteedOrdersPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "guaranteedOrderId": c.guaranteedOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.patch" call. -// Exactly one of *GuaranteedOrder or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *GuaranteedOrder.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GuaranteedOrder.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *GuaranteedOrdersPatchCall) Do(opts ...googleapi.CallOption) (*GuaranteedOrder, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37460,56 +27367,7 @@ func (c *GuaranteedOrdersPatchCall) Do(opts ...googleapi.CallOption) (*Guarantee return nil, err } return ret, nil - // { - // "description": "Updates an existing guaranteed order. Returns the updated guaranteed order if successful.", - // "flatPath": "v1/guaranteedOrders/{guaranteedOrdersId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.guaranteedOrders.patch", - // "parameterOrder": [ - // "guaranteedOrderId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that the request is being made within.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "guaranteedOrderId": { - // "description": "Output only. The unique identifier of the guaranteed order. The guaranteed order IDs have the format `{exchange}-{legacy_guaranteed_order_id}`.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that the request is being made within.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/guaranteedOrders/{+guaranteedOrderId}", - // "request": { - // "$ref": "GuaranteedOrder" - // }, - // "response": { - // "$ref": "GuaranteedOrder" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySourceGroups.create": +} type InventorySourceGroupsCreateCall struct { s *Service @@ -37519,49 +27377,47 @@ type InventorySourceGroupsCreateCall struct { header_ http.Header } -// Create: Creates a new inventory source group. Returns the newly -// created inventory source group if successful. +// Create: Creates a new inventory source group. Returns the newly created +// inventory source group if successful. func (r *InventorySourceGroupsService) Create(inventorysourcegroup *InventorySourceGroup) *InventorySourceGroupsCreateCall { c := &InventorySourceGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.inventorysourcegroup = inventorysourcegroup return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the inventory source group. The parent -// partner will not have access to this group. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the inventory source group. The parent partner will not +// have access to this group. func (c *InventorySourceGroupsCreateCall) AdvertiserId(advertiserId int64) *InventorySourceGroupsCreateCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the inventory source group. Only this partner will -// have write access to this group. Only advertisers to which this group -// is explicitly shared will have read access to this group. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the inventory source group. Only this partner will have write +// access to this group. Only advertisers to which this group is explicitly +// shared will have read access to this group. func (c *InventorySourceGroupsCreateCall) PartnerId(partnerId int64) *InventorySourceGroupsCreateCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourceGroupsCreateCall) Fields(s ...googleapi.Field) *InventorySourceGroupsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourceGroupsCreateCall) Context(ctx context.Context) *InventorySourceGroupsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourceGroupsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37570,18 +27426,12 @@ func (c *InventorySourceGroupsCreateCall) Header() http.Header { } func (c *InventorySourceGroupsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.inventorysourcegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inventorySourceGroups") @@ -37591,16 +27441,15 @@ func (c *InventorySourceGroupsCreateCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.create" call. -// Exactly one of *InventorySourceGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *InventorySourceGroup.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventorySourceGroup.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *InventorySourceGroupsCreateCall) Do(opts ...googleapi.CallOption) (*InventorySourceGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37631,41 +27480,7 @@ func (c *InventorySourceGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Inv return nil, err } return ret, nil - // { - // "description": "Creates a new inventory source group. Returns the newly created inventory source group if successful.", - // "flatPath": "v1/inventorySourceGroups", - // "httpMethod": "POST", - // "id": "displayvideo.inventorySourceGroups.create", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the inventory source group. The parent partner will not have access to this group.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the inventory source group. Only this partner will have write access to this group. Only advertisers to which this group is explicitly shared will have read access to this group.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySourceGroups", - // "request": { - // "$ref": "InventorySourceGroup" - // }, - // "response": { - // "$ref": "InventorySourceGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySourceGroups.delete": +} type InventorySourceGroupsDeleteCall struct { s *Service @@ -37677,48 +27492,45 @@ type InventorySourceGroupsDeleteCall struct { // Delete: Deletes an inventory source group. // -// - inventorySourceGroupId: The ID of the inventory source group to -// delete. +// - inventorySourceGroupId: The ID of the inventory source group to delete. func (r *InventorySourceGroupsService) Delete(inventorySourceGroupId int64) *InventorySourceGroupsDeleteCall { c := &InventorySourceGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.inventorySourceGroupId = inventorySourceGroupId return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the inventory source group. The parent -// partner does not have access to this group. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the inventory source group. The parent partner does not +// have access to this group. func (c *InventorySourceGroupsDeleteCall) AdvertiserId(advertiserId int64) *InventorySourceGroupsDeleteCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the inventory source group. Only this partner has -// write access to this group. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the inventory source group. Only this partner has write access to +// this group. func (c *InventorySourceGroupsDeleteCall) PartnerId(partnerId int64) *InventorySourceGroupsDeleteCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourceGroupsDeleteCall) Fields(s ...googleapi.Field) *InventorySourceGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourceGroupsDeleteCall) Context(ctx context.Context) *InventorySourceGroupsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourceGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37727,12 +27539,7 @@ func (c *InventorySourceGroupsDeleteCall) Header() http.Header { } func (c *InventorySourceGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -37746,16 +27553,14 @@ func (c *InventorySourceGroupsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InventorySourceGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37786,48 +27591,7 @@ func (c *InventorySourceGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Emp return nil, err } return ret, nil - // { - // "description": "Deletes an inventory source group.", - // "flatPath": "v1/inventorySourceGroups/{inventorySourceGroupsId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.inventorySourceGroups.delete", - // "parameterOrder": [ - // "inventorySourceGroupId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the inventory source group. The parent partner does not have access to this group.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "inventorySourceGroupId": { - // "description": "Required. The ID of the inventory source group to delete.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the inventory source group. Only this partner has write access to this group.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySourceGroups/{+inventorySourceGroupId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySourceGroups.get": +} type InventorySourceGroupsGetCall struct { s *Service @@ -37840,59 +27604,54 @@ type InventorySourceGroupsGetCall struct { // Get: Gets an inventory source group. // -// - inventorySourceGroupId: The ID of the inventory source group to -// fetch. +// - inventorySourceGroupId: The ID of the inventory source group to fetch. func (r *InventorySourceGroupsService) Get(inventorySourceGroupId int64) *InventorySourceGroupsGetCall { c := &InventorySourceGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.inventorySourceGroupId = inventorySourceGroupId return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the inventory source group. If an -// inventory source group is partner-owned, only advertisers to which -// the group is explicitly shared can access the group. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the inventory source group. If an inventory +// source group is partner-owned, only advertisers to which the group is +// explicitly shared can access the group. func (c *InventorySourceGroupsGetCall) AdvertiserId(advertiserId int64) *InventorySourceGroupsGetCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the inventory source group. A partner -// cannot access an advertiser-owned inventory source group. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the inventory source group. A partner cannot access an +// advertiser-owned inventory source group. func (c *InventorySourceGroupsGetCall) PartnerId(partnerId int64) *InventorySourceGroupsGetCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourceGroupsGetCall) Fields(s ...googleapi.Field) *InventorySourceGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventorySourceGroupsGetCall) IfNoneMatch(entityTag string) *InventorySourceGroupsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourceGroupsGetCall) Context(ctx context.Context) *InventorySourceGroupsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourceGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -37901,12 +27660,7 @@ func (c *InventorySourceGroupsGetCall) Header() http.Header { } func (c *InventorySourceGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -37923,16 +27677,15 @@ func (c *InventorySourceGroupsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.get" call. -// Exactly one of *InventorySourceGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *InventorySourceGroup.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventorySourceGroup.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *InventorySourceGroupsGetCall) Do(opts ...googleapi.CallOption) (*InventorySourceGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -37963,48 +27716,7 @@ func (c *InventorySourceGroupsGetCall) Do(opts ...googleapi.CallOption) (*Invent return nil, err } return ret, nil - // { - // "description": "Gets an inventory source group.", - // "flatPath": "v1/inventorySourceGroups/{inventorySourceGroupsId}", - // "httpMethod": "GET", - // "id": "displayvideo.inventorySourceGroups.get", - // "parameterOrder": [ - // "inventorySourceGroupId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the inventory source group. If an inventory source group is partner-owned, only advertisers to which the group is explicitly shared can access the group.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "inventorySourceGroupId": { - // "description": "Required. The ID of the inventory source group to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the inventory source group. A partner cannot access an advertiser-owned inventory source group.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySourceGroups/{+inventorySourceGroupId}", - // "response": { - // "$ref": "InventorySourceGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySourceGroups.list": +} type InventorySourceGroupsListCall struct { s *Service @@ -38014,100 +27726,93 @@ type InventorySourceGroupsListCall struct { header_ http.Header } -// List: Lists inventory source groups that are accessible to the -// current user. The order is defined by the order_by parameter. +// List: Lists inventory source groups that are accessible to the current user. +// The order is defined by the order_by parameter. func (r *InventorySourceGroupsService) List() *InventorySourceGroupsListCall { c := &InventorySourceGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the inventory source group. If an -// inventory source group is partner-owned, only advertisers to which -// the group is explicitly shared can access the group. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the inventory source group. If an inventory +// source group is partner-owned, only advertisers to which the group is +// explicitly shared can access the group. func (c *InventorySourceGroupsListCall) AdvertiserId(advertiserId int64) *InventorySourceGroupsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// inventory source group fields. Supported syntax: * Filter expressions -// are made up of one or more restrictions. * Restrictions can be -// combined by the logical operator `OR`. * A restriction has the form -// of `{field} {operator} {value}`. * All fields must use the `EQUALS -// (=)` operator. Supported fields: * `inventorySourceGroupId` The -// length of this field should be no more than 500 characters. Reference -// our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// Filter sets the optional parameter "filter": Allows filtering by inventory +// source group fields. Supported syntax: * Filter expressions are made up of +// one or more restrictions. * Restrictions can be combined by the logical +// operator `OR`. * A restriction has the form of `{field} {operator} {value}`. +// * All fields must use the `EQUALS (=)` operator. Supported fields: * +// `inventorySourceGroupId` The length of this field should be no more than 500 +// characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *InventorySourceGroupsListCall) Filter(filter string) *InventorySourceGroupsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) * -// `inventorySourceGroupId` The default sorting order is ascending. To -// specify descending order for a field, a suffix "desc" should be added -// to the field name. For example, `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) * +// `inventorySourceGroupId` The default sorting order is ascending. To specify +// descending order for a field, a suffix "desc" should be added to the field +// name. For example, `displayName desc`. func (c *InventorySourceGroupsListCall) OrderBy(orderBy string) *InventorySourceGroupsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. func (c *InventorySourceGroupsListCall) PageSize(pageSize int64) *InventorySourceGroupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListInventorySources` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListInventorySources` +// method. If not specified, the first page of results will be returned. func (c *InventorySourceGroupsListCall) PageToken(pageToken string) *InventorySourceGroupsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the inventory source group. A partner -// cannot access advertiser-owned inventory source groups. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the inventory source group. A partner cannot access +// advertiser-owned inventory source groups. func (c *InventorySourceGroupsListCall) PartnerId(partnerId int64) *InventorySourceGroupsListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourceGroupsListCall) Fields(s ...googleapi.Field) *InventorySourceGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventorySourceGroupsListCall) IfNoneMatch(entityTag string) *InventorySourceGroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourceGroupsListCall) Context(ctx context.Context) *InventorySourceGroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourceGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38116,12 +27821,7 @@ func (c *InventorySourceGroupsListCall) Header() http.Header { } func (c *InventorySourceGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -38135,17 +27835,15 @@ func (c *InventorySourceGroupsListCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.list" call. -// Exactly one of *ListInventorySourceGroupsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListInventorySourceGroupsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListInventorySourceGroupsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventorySourceGroupsListCall) Do(opts ...googleapi.CallOption) (*ListInventorySourceGroupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38176,56 +27874,6 @@ func (c *InventorySourceGroupsListCall) Do(opts ...googleapi.CallOption) (*ListI return nil, err } return ret, nil - // { - // "description": "Lists inventory source groups that are accessible to the current user. The order is defined by the order_by parameter.", - // "flatPath": "v1/inventorySourceGroups", - // "httpMethod": "GET", - // "id": "displayvideo.inventorySourceGroups.list", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the inventory source group. If an inventory source group is partner-owned, only advertisers to which the group is explicitly shared can access the group.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by inventory source group fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the logical operator `OR`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `inventorySourceGroupId` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) * `inventorySourceGroupId` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListInventorySources` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the inventory source group. A partner cannot access advertiser-owned inventory source groups.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySourceGroups", - // "response": { - // "$ref": "ListInventorySourceGroupsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -38233,7 +27881,7 @@ func (c *InventorySourceGroupsListCall) Do(opts ...googleapi.CallOption) (*ListI // The provided context supersedes any context provided to the Context method. func (c *InventorySourceGroupsListCall) Pages(ctx context.Context, f func(*ListInventorySourceGroupsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -38249,8 +27897,6 @@ func (c *InventorySourceGroupsListCall) Pages(ctx context.Context, f func(*ListI } } -// method id "displayvideo.inventorySourceGroups.patch": - type InventorySourceGroupsPatchCall struct { s *Service inventorySourceGroupId int64 @@ -38260,11 +27906,11 @@ type InventorySourceGroupsPatchCall struct { header_ http.Header } -// Patch: Updates an inventory source group. Returns the updated -// inventory source group if successful. +// Patch: Updates an inventory source group. Returns the updated inventory +// source group if successful. // -// - inventorySourceGroupId: Output only. The unique ID of the inventory -// source group. Assigned by the system. +// - inventorySourceGroupId: Output only. The unique ID of the inventory source +// group. Assigned by the system. func (r *InventorySourceGroupsService) Patch(inventorySourceGroupId int64, inventorysourcegroup *InventorySourceGroup) *InventorySourceGroupsPatchCall { c := &InventorySourceGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.inventorySourceGroupId = inventorySourceGroupId @@ -38272,47 +27918,45 @@ func (r *InventorySourceGroupsService) Patch(inventorySourceGroupId int64, inven return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the inventory source group. The parent -// partner does not have access to this group. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the inventory source group. The parent partner does not +// have access to this group. func (c *InventorySourceGroupsPatchCall) AdvertiserId(advertiserId int64) *InventorySourceGroupsPatchCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the inventory source group. Only this partner has -// write access to this group. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the inventory source group. Only this partner has write access to +// this group. func (c *InventorySourceGroupsPatchCall) PartnerId(partnerId int64) *InventorySourceGroupsPatchCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *InventorySourceGroupsPatchCall) UpdateMask(updateMask string) *InventorySourceGroupsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourceGroupsPatchCall) Fields(s ...googleapi.Field) *InventorySourceGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourceGroupsPatchCall) Context(ctx context.Context) *InventorySourceGroupsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourceGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38321,18 +27965,12 @@ func (c *InventorySourceGroupsPatchCall) Header() http.Header { } func (c *InventorySourceGroupsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.inventorysourcegroup) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inventorySourceGroups/{inventorySourceGroupId}") @@ -38345,16 +27983,15 @@ func (c *InventorySourceGroupsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.patch" call. -// Exactly one of *InventorySourceGroup or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *InventorySourceGroup.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventorySourceGroup.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *InventorySourceGroupsPatchCall) Do(opts ...googleapi.CallOption) (*InventorySourceGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38385,56 +28022,7 @@ func (c *InventorySourceGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Inve return nil, err } return ret, nil - // { - // "description": "Updates an inventory source group. Returns the updated inventory source group if successful.", - // "flatPath": "v1/inventorySourceGroups/{inventorySourceGroupId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.inventorySourceGroups.patch", - // "parameterOrder": [ - // "inventorySourceGroupId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the inventory source group. The parent partner does not have access to this group.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "inventorySourceGroupId": { - // "description": "Output only. The unique ID of the inventory source group. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the inventory source group. Only this partner has write access to this group.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySourceGroups/{inventorySourceGroupId}", - // "request": { - // "$ref": "InventorySourceGroup" - // }, - // "response": { - // "$ref": "InventorySourceGroup" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySourceGroups.assignedInventorySources.bulkEdit": +} type InventorySourceGroupsAssignedInventorySourcesBulkEditCall struct { s *Service @@ -38445,16 +28033,15 @@ type InventorySourceGroupsAssignedInventorySourcesBulkEditCall struct { header_ http.Header } -// BulkEdit: Bulk edits multiple assignments between inventory sources -// and a single inventory source group. The operation will delete the -// assigned inventory sources provided in -// BulkEditAssignedInventorySourcesRequest.deleted_assigned_inventory_sou -// rces and then create the assigned inventory sources provided in -// BulkEditAssignedInventorySourcesRequest.created_assigned_inventory_sou -// rces. +// BulkEdit: Bulk edits multiple assignments between inventory sources and a +// single inventory source group. The operation will delete the assigned +// inventory sources provided in +// BulkEditAssignedInventorySourcesRequest.deleted_assigned_inventory_sources +// and then create the assigned inventory sources provided in +// BulkEditAssignedInventorySourcesRequest.created_assigned_inventory_sources. // -// - inventorySourceGroupId: The ID of the inventory source group to -// which the assignments are assigned. +// - inventorySourceGroupId: The ID of the inventory source group to which the +// assignments are assigned. func (r *InventorySourceGroupsAssignedInventorySourcesService) BulkEdit(inventorySourceGroupId int64, bulkeditassignedinventorysourcesrequest *BulkEditAssignedInventorySourcesRequest) *InventorySourceGroupsAssignedInventorySourcesBulkEditCall { c := &InventorySourceGroupsAssignedInventorySourcesBulkEditCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.inventorySourceGroupId = inventorySourceGroupId @@ -38463,23 +28050,21 @@ func (r *InventorySourceGroupsAssignedInventorySourcesService) BulkEdit(inventor } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) Fields(s ...googleapi.Field) *InventorySourceGroupsAssignedInventorySourcesBulkEditCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) Context(ctx context.Context) *InventorySourceGroupsAssignedInventorySourcesBulkEditCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38488,18 +28073,12 @@ func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) Header() htt } func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bulkeditassignedinventorysourcesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources:bulkEdit") @@ -38512,18 +28091,15 @@ func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.bulkEdit" call. -// Exactly one of *BulkEditAssignedInventorySourcesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *BulkEditAssignedInventorySourcesResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkEditAssignedInventorySourcesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) Do(opts ...googleapi.CallOption) (*BulkEditAssignedInventorySourcesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38554,39 +28130,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Bulk edits multiple assignments between inventory sources and a single inventory source group. The operation will delete the assigned inventory sources provided in BulkEditAssignedInventorySourcesRequest.deleted_assigned_inventory_sources and then create the assigned inventory sources provided in BulkEditAssignedInventorySourcesRequest.created_assigned_inventory_sources.", - // "flatPath": "v1/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources:bulkEdit", - // "httpMethod": "POST", - // "id": "displayvideo.inventorySourceGroups.assignedInventorySources.bulkEdit", - // "parameterOrder": [ - // "inventorySourceGroupId" - // ], - // "parameters": { - // "inventorySourceGroupId": { - // "description": "Required. The ID of the inventory source group to which the assignments are assigned.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources:bulkEdit", - // "request": { - // "$ref": "BulkEditAssignedInventorySourcesRequest" - // }, - // "response": { - // "$ref": "BulkEditAssignedInventorySourcesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySourceGroups.assignedInventorySources.create": +} type InventorySourceGroupsAssignedInventorySourcesCreateCall struct { s *Service @@ -38597,11 +28141,11 @@ type InventorySourceGroupsAssignedInventorySourcesCreateCall struct { header_ http.Header } -// Create: Creates an assignment between an inventory source and an -// inventory source group. +// Create: Creates an assignment between an inventory source and an inventory +// source group. // -// - inventorySourceGroupId: The ID of the inventory source group to -// which the assignment will be assigned. +// - inventorySourceGroupId: The ID of the inventory source group to which the +// assignment will be assigned. func (r *InventorySourceGroupsAssignedInventorySourcesService) Create(inventorySourceGroupId int64, assignedinventorysource *AssignedInventorySource) *InventorySourceGroupsAssignedInventorySourcesCreateCall { c := &InventorySourceGroupsAssignedInventorySourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.inventorySourceGroupId = inventorySourceGroupId @@ -38609,41 +28153,38 @@ func (r *InventorySourceGroupsAssignedInventorySourcesService) Create(inventoryS return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the parent inventory source group. The -// parent partner will not have access to this assigned inventory -// source. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the parent inventory source group. The parent partner +// will not have access to this assigned inventory source. func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) AdvertiserId(advertiserId int64) *InventorySourceGroupsAssignedInventorySourcesCreateCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the parent inventory source group. Only this -// partner will have write access to this assigned inventory source. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the parent inventory source group. Only this partner will have +// write access to this assigned inventory source. func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) PartnerId(partnerId int64) *InventorySourceGroupsAssignedInventorySourcesCreateCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) Fields(s ...googleapi.Field) *InventorySourceGroupsAssignedInventorySourcesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) Context(ctx context.Context) *InventorySourceGroupsAssignedInventorySourcesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38652,18 +28193,12 @@ func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) Header() http. } func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.assignedinventorysource) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources") @@ -38676,16 +28211,15 @@ func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.create" call. -// Exactly one of *AssignedInventorySource or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AssignedInventorySource.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) Do(opts ...googleapi.CallOption) (*AssignedInventorySource, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38716,51 +28250,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Creates an assignment between an inventory source and an inventory source group.", - // "flatPath": "v1/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources", - // "httpMethod": "POST", - // "id": "displayvideo.inventorySourceGroups.assignedInventorySources.create", - // "parameterOrder": [ - // "inventorySourceGroupId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent inventory source group. The parent partner will not have access to this assigned inventory source.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "inventorySourceGroupId": { - // "description": "Required. The ID of the inventory source group to which the assignment will be assigned.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent inventory source group. Only this partner will have write access to this assigned inventory source.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources", - // "request": { - // "$ref": "AssignedInventorySource" - // }, - // "response": { - // "$ref": "AssignedInventorySource" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySourceGroups.assignedInventorySources.delete": +} type InventorySourceGroupsAssignedInventorySourcesDeleteCall struct { s *Service @@ -38771,13 +28261,13 @@ type InventorySourceGroupsAssignedInventorySourcesDeleteCall struct { header_ http.Header } -// Delete: Deletes the assignment between an inventory source and an -// inventory source group. +// Delete: Deletes the assignment between an inventory source and an inventory +// source group. // -// - assignedInventorySourceId: The ID of the assigned inventory source -// to delete. -// - inventorySourceGroupId: The ID of the inventory source group to -// which this assignment is assigned. +// - assignedInventorySourceId: The ID of the assigned inventory source to +// delete. +// - inventorySourceGroupId: The ID of the inventory source group to which this +// assignment is assigned. func (r *InventorySourceGroupsAssignedInventorySourcesService) Delete(inventorySourceGroupId int64, assignedInventorySourceId int64) *InventorySourceGroupsAssignedInventorySourcesDeleteCall { c := &InventorySourceGroupsAssignedInventorySourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.inventorySourceGroupId = inventorySourceGroupId @@ -38785,41 +28275,38 @@ func (r *InventorySourceGroupsAssignedInventorySourcesService) Delete(inventoryS return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the parent inventory source group. The -// parent partner does not have access to this assigned inventory -// source. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the parent inventory source group. The parent partner +// does not have access to this assigned inventory source. func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) AdvertiserId(advertiserId int64) *InventorySourceGroupsAssignedInventorySourcesDeleteCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that owns the parent inventory source group. Only this -// partner has write access to this assigned inventory source. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that owns the parent inventory source group. Only this partner has write +// access to this assigned inventory source. func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) PartnerId(partnerId int64) *InventorySourceGroupsAssignedInventorySourcesDeleteCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) Fields(s ...googleapi.Field) *InventorySourceGroupsAssignedInventorySourcesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) Context(ctx context.Context) *InventorySourceGroupsAssignedInventorySourcesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -38828,12 +28315,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) Header() http. } func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -38848,16 +28330,14 @@ func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) doRequest(alt "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), "assignedInventorySourceId": strconv.FormatInt(c.assignedInventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -38888,57 +28368,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Deletes the assignment between an inventory source and an inventory source group.", - // "flatPath": "v1/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources/{assignedInventorySourcesId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.inventorySourceGroups.assignedInventorySources.delete", - // "parameterOrder": [ - // "inventorySourceGroupId", - // "assignedInventorySourceId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent inventory source group. The parent partner does not have access to this assigned inventory source.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "assignedInventorySourceId": { - // "description": "Required. The ID of the assigned inventory source to delete.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "inventorySourceGroupId": { - // "description": "Required. The ID of the inventory source group to which this assignment is assigned.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent inventory source group. Only this partner has write access to this assigned inventory source.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources/{+assignedInventorySourceId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySourceGroups.assignedInventorySources.list": +} type InventorySourceGroupsAssignedInventorySourcesListCall struct { s *Service @@ -38951,105 +28381,96 @@ type InventorySourceGroupsAssignedInventorySourcesListCall struct { // List: Lists inventory sources assigned to an inventory source group. // -// - inventorySourceGroupId: The ID of the inventory source group to -// which these assignments are assigned. +// - inventorySourceGroupId: The ID of the inventory source group to which +// these assignments are assigned. func (r *InventorySourceGroupsAssignedInventorySourcesService) List(inventorySourceGroupId int64) *InventorySourceGroupsAssignedInventorySourcesListCall { c := &InventorySourceGroupsAssignedInventorySourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.inventorySourceGroupId = inventorySourceGroupId return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the assignment. If the parent -// inventory source group is partner-owned, only advertisers to which -// the parent group is explicitly shared can access the assigned -// inventory source. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the assignment. If the parent inventory source +// group is partner-owned, only advertisers to which the parent group is +// explicitly shared can access the assigned inventory source. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) AdvertiserId(advertiserId int64) *InventorySourceGroupsAssignedInventorySourcesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// assigned inventory source fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the `OR` logical operator. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=)` operator. Supported fields: * -// `assignedInventorySourceId` The length of this field should be no -// more than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// Filter sets the optional parameter "filter": Allows filtering by assigned +// inventory source fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the `OR` +// logical operator. * A restriction has the form of `{field} {operator} +// {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: +// * `assignedInventorySourceId` The length of this field should be no more +// than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Filter(filter string) *InventorySourceGroupsAssignedInventorySourcesListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `assignedInventorySourceId` -// (default) The default sorting order is ascending. To specify -// descending order for a field, a suffix " desc" should be added to the -// field name. Example: `assignedInventorySourceId desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `assignedInventorySourceId` (default) The +// default sorting order is ascending. To specify descending order for a field, +// a suffix " desc" should be added to the field name. Example: +// `assignedInventorySourceId desc`. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) OrderBy(orderBy string) *InventorySourceGroupsAssignedInventorySourcesListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `100`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `100`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) PageSize(pageSize int64) *InventorySourceGroupsAssignedInventorySourcesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListAssignedInventorySources` method. If not specified, the first -// page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to +// `ListAssignedInventorySources` method. If not specified, the first page of +// results will be returned. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) PageToken(pageToken string) *InventorySourceGroupsAssignedInventorySourcesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the assignment. If the parent inventory -// source group is advertiser-owned, the assignment cannot be accessed -// via a partner. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the assignment. If the parent inventory source group is +// advertiser-owned, the assignment cannot be accessed via a partner. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) PartnerId(partnerId int64) *InventorySourceGroupsAssignedInventorySourcesListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Fields(s ...googleapi.Field) *InventorySourceGroupsAssignedInventorySourcesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) IfNoneMatch(entityTag string) *InventorySourceGroupsAssignedInventorySourcesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Context(ctx context.Context) *InventorySourceGroupsAssignedInventorySourcesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39058,12 +28479,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Header() http.He } func (c *InventorySourceGroupsAssignedInventorySourcesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39080,17 +28496,15 @@ func (c *InventorySourceGroupsAssignedInventorySourcesListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.list" call. -// Exactly one of *ListAssignedInventorySourcesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListAssignedInventorySourcesResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListAssignedInventorySourcesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Do(opts ...googleapi.CallOption) (*ListAssignedInventorySourcesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39121,66 +28535,6 @@ func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Lists inventory sources assigned to an inventory source group.", - // "flatPath": "v1/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources", - // "httpMethod": "GET", - // "id": "displayvideo.inventorySourceGroups.assignedInventorySources.list", - // "parameterOrder": [ - // "inventorySourceGroupId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the assignment. If the parent inventory source group is partner-owned, only advertisers to which the parent group is explicitly shared can access the assigned inventory source.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by assigned inventory source fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the `OR` logical operator. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `assignedInventorySourceId` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "inventorySourceGroupId": { - // "description": "Required. The ID of the inventory source group to which these assignments are assigned.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `assignedInventorySourceId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be added to the field name. Example: `assignedInventorySourceId desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `100`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListAssignedInventorySources` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the assignment. If the parent inventory source group is advertiser-owned, the assignment cannot be accessed via a partner.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources", - // "response": { - // "$ref": "ListAssignedInventorySourcesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -39188,7 +28542,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Do(opts ...googl // The provided context supersedes any context provided to the Context method. func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Pages(ctx context.Context, f func(*ListAssignedInventorySourcesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -39204,8 +28558,6 @@ func (c *InventorySourceGroupsAssignedInventorySourcesListCall) Pages(ctx contex } } -// method id "displayvideo.inventorySources.create": - type InventorySourcesCreateCall struct { s *Service inventorysource *InventorySource @@ -39214,46 +28566,44 @@ type InventorySourcesCreateCall struct { header_ http.Header } -// Create: Creates a new inventory source. Returns the newly created -// inventory source if successful. +// Create: Creates a new inventory source. Returns the newly created inventory +// source if successful. func (r *InventorySourcesService) Create(inventorysource *InventorySource) *InventorySourcesCreateCall { c := &InventorySourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.inventorysource = inventorysource return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that the request is being made within. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that the request is being made within. func (c *InventorySourcesCreateCall) AdvertiserId(advertiserId int64) *InventorySourcesCreateCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that the request is being made within. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that the request is being made within. func (c *InventorySourcesCreateCall) PartnerId(partnerId int64) *InventorySourcesCreateCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourcesCreateCall) Fields(s ...googleapi.Field) *InventorySourcesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourcesCreateCall) Context(ctx context.Context) *InventorySourcesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourcesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39262,18 +28612,12 @@ func (c *InventorySourcesCreateCall) Header() http.Header { } func (c *InventorySourcesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.inventorysource) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inventorySources") @@ -39283,16 +28627,15 @@ func (c *InventorySourcesCreateCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.create" call. -// Exactly one of *InventorySource or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InventorySource.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventorySource.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *InventorySourcesCreateCall) Do(opts ...googleapi.CallOption) (*InventorySource, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39323,41 +28666,7 @@ func (c *InventorySourcesCreateCall) Do(opts ...googleapi.CallOption) (*Inventor return nil, err } return ret, nil - // { - // "description": "Creates a new inventory source. Returns the newly created inventory source if successful.", - // "flatPath": "v1/inventorySources", - // "httpMethod": "POST", - // "id": "displayvideo.inventorySources.create", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that the request is being made within.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that the request is being made within.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySources", - // "request": { - // "$ref": "InventorySource" - // }, - // "response": { - // "$ref": "InventorySource" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySources.editInventorySourceReadWriteAccessors": +} type InventorySourcesEditInventorySourceReadWriteAccessorsCall struct { s *Service @@ -39368,9 +28677,9 @@ type InventorySourcesEditInventorySourceReadWriteAccessorsCall struct { header_ http.Header } -// EditInventorySourceReadWriteAccessors: Edits read/write accessors of -// an inventory source. Returns the updated read_write_accessors for the -// inventory source. +// EditInventorySourceReadWriteAccessors: Edits read/write accessors of an +// inventory source. Returns the updated read_write_accessors for the inventory +// source. // // - inventorySourceId: The ID of inventory source to update. func (r *InventorySourcesService) EditInventorySourceReadWriteAccessors(inventorySourceId int64, editinventorysourcereadwriteaccessorsrequest *EditInventorySourceReadWriteAccessorsRequest) *InventorySourcesEditInventorySourceReadWriteAccessorsCall { @@ -39381,23 +28690,21 @@ func (r *InventorySourcesService) EditInventorySourceReadWriteAccessors(inventor } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) Fields(s ...googleapi.Field) *InventorySourcesEditInventorySourceReadWriteAccessorsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) Context(ctx context.Context) *InventorySourcesEditInventorySourceReadWriteAccessorsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39406,18 +28713,12 @@ func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) Header() htt } func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.editinventorysourcereadwriteaccessorsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inventorySources/{+inventorySourceId}:editInventorySourceReadWriteAccessors") @@ -39430,16 +28731,15 @@ func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.editInventorySourceReadWriteAccessors" call. -// Exactly one of *InventorySourceAccessors or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *InventorySourceAccessors.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) Do(opts ...googleapi.CallOption) (*InventorySourceAccessors, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39470,39 +28770,7 @@ func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Edits read/write accessors of an inventory source. Returns the updated read_write_accessors for the inventory source.", - // "flatPath": "v1/inventorySources/{inventorySourcesId}:editInventorySourceReadWriteAccessors", - // "httpMethod": "POST", - // "id": "displayvideo.inventorySources.editInventorySourceReadWriteAccessors", - // "parameterOrder": [ - // "inventorySourceId" - // ], - // "parameters": { - // "inventorySourceId": { - // "description": "Required. The ID of inventory source to update.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/inventorySources/{+inventorySourceId}:editInventorySourceReadWriteAccessors", - // "request": { - // "$ref": "EditInventorySourceReadWriteAccessorsRequest" - // }, - // "response": { - // "$ref": "InventorySourceAccessors" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySources.get": +} type InventorySourcesGetCall struct { s *Service @@ -39522,42 +28790,37 @@ func (r *InventorySourcesService) Get(inventorySourceId int64) *InventorySources return c } -// PartnerId sets the optional parameter "partnerId": Required. The ID -// of the DV360 partner to which the fetched inventory source is -// permissioned. +// PartnerId sets the optional parameter "partnerId": Required. The ID of the +// DV360 partner to which the fetched inventory source is permissioned. func (c *InventorySourcesGetCall) PartnerId(partnerId int64) *InventorySourcesGetCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourcesGetCall) Fields(s ...googleapi.Field) *InventorySourcesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventorySourcesGetCall) IfNoneMatch(entityTag string) *InventorySourcesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourcesGetCall) Context(ctx context.Context) *InventorySourcesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourcesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39566,12 +28829,7 @@ func (c *InventorySourcesGetCall) Header() http.Header { } func (c *InventorySourcesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39588,16 +28846,15 @@ func (c *InventorySourcesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.get" call. -// Exactly one of *InventorySource or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InventorySource.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventorySource.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *InventorySourcesGetCall) Do(opts ...googleapi.CallOption) (*InventorySource, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39628,42 +28885,7 @@ func (c *InventorySourcesGetCall) Do(opts ...googleapi.CallOption) (*InventorySo return nil, err } return ret, nil - // { - // "description": "Gets an inventory source.", - // "flatPath": "v1/inventorySources/{inventorySourcesId}", - // "httpMethod": "GET", - // "id": "displayvideo.inventorySources.get", - // "parameterOrder": [ - // "inventorySourceId" - // ], - // "parameters": { - // "inventorySourceId": { - // "description": "Required. The ID of the inventory source to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "Required. The ID of the DV360 partner to which the fetched inventory source is permissioned.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySources/{+inventorySourceId}", - // "response": { - // "$ref": "InventorySource" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.inventorySources.list": +} type InventorySourcesListCall struct { s *Service @@ -39673,105 +28895,97 @@ type InventorySourcesListCall struct { header_ http.Header } -// List: Lists inventory sources that are accessible to the current -// user. The order is defined by the order_by parameter. If a filter by -// entity_status is not specified, inventory sources with entity status -// `ENTITY_STATUS_ARCHIVED` will not be included in the results. +// List: Lists inventory sources that are accessible to the current user. The +// order is defined by the order_by parameter. If a filter by entity_status is +// not specified, inventory sources with entity status `ENTITY_STATUS_ARCHIVED` +// will not be included in the results. func (r *InventorySourcesService) List() *InventorySourcesListCall { c := &InventorySourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that has access to the inventory source. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that has access to the inventory source. func (c *InventorySourcesListCall) AdvertiserId(advertiserId int64) *InventorySourcesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// inventory source fields. Supported syntax: * Filter expressions are -// made up of one or more restrictions. * Restrictions can be combined -// by `AND` or `OR` logical operators. A sequence of restrictions -// implicitly uses `AND`. * A restriction has the form of `{field} -// {operator} {value}`. * All fields must use the `EQUALS (=)` operator. -// Supported fields: * `status.entityStatus` * `commitment` * -// `deliveryMethod` * `rateDetails.rateType` * `exchange` Examples: * -// All active inventory sources: -// `status.entityStatus="ENTITY_STATUS_ACTIVE" * Inventory sources -// belonging to Google Ad Manager or Rubicon exchanges: -// `exchange="EXCHANGE_GOOGLE_AD_MANAGER" OR -// exchange="EXCHANGE_RUBICON" The length of this field should be no -// more than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// Filter sets the optional parameter "filter": Allows filtering by inventory +// source fields. Supported syntax: * Filter expressions are made up of one or +// more restrictions. * Restrictions can be combined by `AND` or `OR` logical +// operators. A sequence of restrictions implicitly uses `AND`. * A restriction +// has the form of `{field} {operator} {value}`. * All fields must use the +// `EQUALS (=)` operator. Supported fields: * `status.entityStatus` * +// `commitment` * `deliveryMethod` * `rateDetails.rateType` * `exchange` +// Examples: * All active inventory sources: +// `status.entityStatus="ENTITY_STATUS_ACTIVE" * Inventory sources belonging +// to Google Ad Manager or Rubicon exchanges: +// `exchange="EXCHANGE_GOOGLE_AD_MANAGER" OR exchange="EXCHANGE_RUBICON" The +// length of this field should be no more than 500 characters. Reference our +// filter `LIST` requests (/display-video/api/guides/how-tos/filters) guide for +// more information. func (c *InventorySourcesListCall) Filter(filter string) *InventorySourcesListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix "desc" should be added to the field name. For -// example, `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix "desc" +// should be added to the field name. For example, `displayName desc`. func (c *InventorySourcesListCall) OrderBy(orderBy string) *InventorySourcesListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. func (c *InventorySourcesListCall) PageSize(pageSize int64) *InventorySourcesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListInventorySources` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListInventorySources` +// method. If not specified, the first page of results will be returned. func (c *InventorySourcesListCall) PageToken(pageToken string) *InventorySourcesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that has access to the inventory source. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that has access to the inventory source. func (c *InventorySourcesListCall) PartnerId(partnerId int64) *InventorySourcesListCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourcesListCall) Fields(s ...googleapi.Field) *InventorySourcesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InventorySourcesListCall) IfNoneMatch(entityTag string) *InventorySourcesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourcesListCall) Context(ctx context.Context) *InventorySourcesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourcesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39780,12 +28994,7 @@ func (c *InventorySourcesListCall) Header() http.Header { } func (c *InventorySourcesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -39799,16 +29008,15 @@ func (c *InventorySourcesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.list" call. -// Exactly one of *ListInventorySourcesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListInventorySourcesResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListInventorySourcesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InventorySourcesListCall) Do(opts ...googleapi.CallOption) (*ListInventorySourcesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -39839,56 +29047,6 @@ func (c *InventorySourcesListCall) Do(opts ...googleapi.CallOption) (*ListInvent return nil, err } return ret, nil - // { - // "description": "Lists inventory sources that are accessible to the current user. The order is defined by the order_by parameter. If a filter by entity_status is not specified, inventory sources with entity status `ENTITY_STATUS_ARCHIVED` will not be included in the results.", - // "flatPath": "v1/inventorySources", - // "httpMethod": "GET", - // "id": "displayvideo.inventorySources.list", - // "parameterOrder": [], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that has access to the inventory source.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by inventory source fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `status.entityStatus` * `commitment` * `deliveryMethod` * `rateDetails.rateType` * `exchange` Examples: * All active inventory sources: `status.entityStatus=\"ENTITY_STATUS_ACTIVE\"` * Inventory sources belonging to Google Ad Manager or Rubicon exchanges: `exchange=\"EXCHANGE_GOOGLE_AD_MANAGER\" OR exchange=\"EXCHANGE_RUBICON\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListInventorySources` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that has access to the inventory source.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySources", - // "response": { - // "$ref": "ListInventorySourcesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -39896,7 +29054,7 @@ func (c *InventorySourcesListCall) Do(opts ...googleapi.CallOption) (*ListInvent // The provided context supersedes any context provided to the Context method. func (c *InventorySourcesListCall) Pages(ctx context.Context, f func(*ListInventorySourcesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -39912,8 +29070,6 @@ func (c *InventorySourcesListCall) Pages(ctx context.Context, f func(*ListInvent } } -// method id "displayvideo.inventorySources.patch": - type InventorySourcesPatchCall struct { s *Service inventorySourceId int64 @@ -39923,11 +29079,11 @@ type InventorySourcesPatchCall struct { header_ http.Header } -// Patch: Updates an existing inventory source. Returns the updated -// inventory source if successful. +// Patch: Updates an existing inventory source. Returns the updated inventory +// source if successful. // -// - inventorySourceId: Output only. The unique ID of the inventory -// source. Assigned by the system. +// - inventorySourceId: Output only. The unique ID of the inventory source. +// Assigned by the system. func (r *InventorySourcesService) Patch(inventorySourceId int64, inventorysource *InventorySource) *InventorySourcesPatchCall { c := &InventorySourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.inventorySourceId = inventorySourceId @@ -39935,45 +29091,43 @@ func (r *InventorySourcesService) Patch(inventorySourceId int64, inventorysource return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that the request is being made within. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that the request is being made within. func (c *InventorySourcesPatchCall) AdvertiserId(advertiserId int64) *InventorySourcesPatchCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// PartnerId sets the optional parameter "partnerId": The ID of the -// partner that the request is being made within. +// PartnerId sets the optional parameter "partnerId": The ID of the partner +// that the request is being made within. func (c *InventorySourcesPatchCall) PartnerId(partnerId int64) *InventorySourcesPatchCall { c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *InventorySourcesPatchCall) UpdateMask(updateMask string) *InventorySourcesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InventorySourcesPatchCall) Fields(s ...googleapi.Field) *InventorySourcesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InventorySourcesPatchCall) Context(ctx context.Context) *InventorySourcesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InventorySourcesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -39982,18 +29136,12 @@ func (c *InventorySourcesPatchCall) Header() http.Header { } func (c *InventorySourcesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.inventorysource) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/inventorySources/{+inventorySourceId}") @@ -40006,16 +29154,15 @@ func (c *InventorySourcesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.patch" call. -// Exactly one of *InventorySource or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *InventorySource.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InventorySource.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *InventorySourcesPatchCall) Do(opts ...googleapi.CallOption) (*InventorySource, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40046,57 +29193,7 @@ func (c *InventorySourcesPatchCall) Do(opts ...googleapi.CallOption) (*Inventory return nil, err } return ret, nil - // { - // "description": "Updates an existing inventory source. Returns the updated inventory source if successful.", - // "flatPath": "v1/inventorySources/{inventorySourcesId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.inventorySources.patch", - // "parameterOrder": [ - // "inventorySourceId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that the request is being made within.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "inventorySourceId": { - // "description": "Output only. The unique ID of the inventory source. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that the request is being made within.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/inventorySources/{+inventorySourceId}", - // "request": { - // "$ref": "InventorySource" - // }, - // "response": { - // "$ref": "InventorySource" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.media.download": +} type MediaDownloadCall struct { s *Service @@ -40108,8 +29205,8 @@ type MediaDownloadCall struct { } // Download: Downloads media. Download is supported on the URI -// `/download/{resource_name=**}?alt=media.` **Note**: Download requests -// will not be successful without including `alt=media` query string. +// `/download/{resource_name=**}?alt=media.` **Note**: Download requests will +// not be successful without including `alt=media` query string. // // - resourceName: Name of the media that is being downloaded. See // ReadRequest.resource_name. @@ -40120,33 +29217,29 @@ func (r *MediaService) Download(resourceName string) *MediaDownloadCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MediaDownloadCall) Fields(s ...googleapi.Field) *MediaDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MediaDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40155,12 +29248,7 @@ func (c *MediaDownloadCall) Header() http.Header { } func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40177,7 +29265,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -40197,12 +29285,11 @@ func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Respon } // Do executes the "displayvideo.media.download" call. -// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40233,37 +29320,7 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamM return nil, err } return ret, nil - // { - // "description": "Downloads media. Download is supported on the URI `/download/{resource_name=**}?alt=media.` **Note**: Download requests will not be successful without including `alt=media` query string.", - // "flatPath": "download/{downloadId}", - // "httpMethod": "GET", - // "id": "displayvideo.media.download", - // "parameterOrder": [ - // "resourceName" - // ], - // "parameters": { - // "resourceName": { - // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "download/{+resourceName}", - // "response": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "displayvideo.media.upload": +} type MediaUploadCall struct { s *Service @@ -40276,9 +29333,9 @@ type MediaUploadCall struct { } // Upload: Uploads media. Upload is supported on the URI -// `/upload/media/{resource_name=**}?upload_type=media.` **Note**: -// Upload requests will not be successful without including -// `upload_type=media` query string. +// `/upload/media/{resource_name=**}?upload_type=media.` **Note**: Upload +// requests will not be successful without including `upload_type=media` query +// string. // // - resourceName: Name of the media that is being downloaded. See // ReadRequest.resource_name. @@ -40289,54 +29346,51 @@ func (r *MediaService) Upload(resourceName string, googlebytestreammedia *Google return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall { @@ -40344,8 +29398,8 @@ func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall { return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MediaUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40354,18 +29408,12 @@ func (c *MediaUploadCall) Header() http.Header { } func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlebytestreammedia) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "media/{+resourceName}") @@ -40389,16 +29437,15 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.media.upload" call. -// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40446,51 +29493,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMed return nil, err } return ret, nil - // { - // "description": "Uploads media. Upload is supported on the URI `/upload/media/{resource_name=**}?upload_type=media.` **Note**: Upload requests will not be successful without including `upload_type=media` query string.", - // "flatPath": "media/{mediaId}", - // "httpMethod": "POST", - // "id": "displayvideo.media.upload", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "protocols": { - // "simple": { - // "multipart": true, - // "path": "/upload/media/{+resourceName}" - // } - // } - // }, - // "parameterOrder": [ - // "resourceName" - // ], - // "parameters": { - // "resourceName": { - // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "media/{+resourceName}", - // "request": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "response": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "displayvideo.partners.bulkEditPartnerAssignedTargetingOptions": +} type PartnersBulkEditPartnerAssignedTargetingOptionsCall struct { s *Service @@ -40501,11 +29504,10 @@ type PartnersBulkEditPartnerAssignedTargetingOptionsCall struct { header_ http.Header } -// BulkEditPartnerAssignedTargetingOptions: Bulk edits targeting options -// under a single partner. The operation will delete the assigned -// targeting options provided in -// BulkEditPartnerAssignedTargetingOptionsRequest.deleteRequests and -// then create the assigned targeting options provided in +// BulkEditPartnerAssignedTargetingOptions: Bulk edits targeting options under +// a single partner. The operation will delete the assigned targeting options +// provided in BulkEditPartnerAssignedTargetingOptionsRequest.deleteRequests +// and then create the assigned targeting options provided in // BulkEditPartnerAssignedTargetingOptionsRequest.createRequests . // // - partnerId: The ID of the partner. @@ -40517,23 +29519,21 @@ func (r *PartnersService) BulkEditPartnerAssignedTargetingOptions(partnerId int6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersBulkEditPartnerAssignedTargetingOptionsCall) Fields(s ...googleapi.Field) *PartnersBulkEditPartnerAssignedTargetingOptionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersBulkEditPartnerAssignedTargetingOptionsCall) Context(ctx context.Context) *PartnersBulkEditPartnerAssignedTargetingOptionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersBulkEditPartnerAssignedTargetingOptionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40542,18 +29542,12 @@ func (c *PartnersBulkEditPartnerAssignedTargetingOptionsCall) Header() http.Head } func (c *PartnersBulkEditPartnerAssignedTargetingOptionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bulkeditpartnerassignedtargetingoptionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/partners/{+partnerId}:bulkEditPartnerAssignedTargetingOptions") @@ -40566,20 +29560,15 @@ func (c *PartnersBulkEditPartnerAssignedTargetingOptionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.bulkEditPartnerAssignedTargetingOptions" call. -// Exactly one of *BulkEditPartnerAssignedTargetingOptionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *BulkEditPartnerAssignedTargetingOptionsResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkEditPartnerAssignedTargetingOptionsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PartnersBulkEditPartnerAssignedTargetingOptionsCall) Do(opts ...googleapi.CallOption) (*BulkEditPartnerAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40610,39 +29599,7 @@ func (c *PartnersBulkEditPartnerAssignedTargetingOptionsCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Bulk edits targeting options under a single partner. The operation will delete the assigned targeting options provided in BulkEditPartnerAssignedTargetingOptionsRequest.deleteRequests and then create the assigned targeting options provided in BulkEditPartnerAssignedTargetingOptionsRequest.createRequests .", - // "flatPath": "v1/partners/{partnersId}:bulkEditPartnerAssignedTargetingOptions", - // "httpMethod": "POST", - // "id": "displayvideo.partners.bulkEditPartnerAssignedTargetingOptions", - // "parameterOrder": [ - // "partnerId" - // ], - // "parameters": { - // "partnerId": { - // "description": "Required. The ID of the partner.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}:bulkEditPartnerAssignedTargetingOptions", - // "request": { - // "$ref": "BulkEditPartnerAssignedTargetingOptionsRequest" - // }, - // "response": { - // "$ref": "BulkEditPartnerAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.get": +} type PartnersGetCall struct { s *Service @@ -40663,33 +29620,29 @@ func (r *PartnersService) Get(partnerId int64) *PartnersGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersGetCall) Fields(s ...googleapi.Field) *PartnersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PartnersGetCall) IfNoneMatch(entityTag string) *PartnersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersGetCall) Context(ctx context.Context) *PartnersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40698,12 +29651,7 @@ func (c *PartnersGetCall) Header() http.Header { } func (c *PartnersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40720,16 +29668,14 @@ func (c *PartnersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.get" call. -// Exactly one of *Partner or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Partner.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Partner.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PartnersGetCall) Do(opts ...googleapi.CallOption) (*Partner, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40760,36 +29706,7 @@ func (c *PartnersGetCall) Do(opts ...googleapi.CallOption) (*Partner, error) { return nil, err } return ret, nil - // { - // "description": "Gets a partner.", - // "flatPath": "v1/partners/{partnersId}", - // "httpMethod": "GET", - // "id": "displayvideo.partners.get", - // "parameterOrder": [ - // "partnerId" - // ], - // "parameters": { - // "partnerId": { - // "description": "Required. The ID of the partner to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}", - // "response": { - // "$ref": "Partner" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.list": +} type PartnersListCall struct { s *Service @@ -40799,84 +29716,77 @@ type PartnersListCall struct { header_ http.Header } -// List: Lists partners that are accessible to the current user. The -// order is defined by the order_by parameter. +// List: Lists partners that are accessible to the current user. The order is +// defined by the order_by parameter. func (r *PartnersService) List() *PartnersListCall { c := &PartnersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// Filter sets the optional parameter "filter": Allows filtering by -// partner fields. Supported syntax: * Filter expressions are made up of -// one or more restrictions. * Restrictions can be combined by `AND` or -// `OR` logical operators. A sequence of restrictions implicitly uses -// `AND`. * A restriction has the form of `{field} {operator} {value}`. -// * All fields must use the `EQUALS (=)` operator. Supported fields: * -// `entityStatus` Examples: * All active partners: -// `entityStatus="ENTITY_STATUS_ACTIVE" The length of this field should -// be no more than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more +// Filter sets the optional parameter "filter": Allows filtering by partner +// fields. Supported syntax: * Filter expressions are made up of one or more +// restrictions. * Restrictions can be combined by `AND` or `OR` logical +// operators. A sequence of restrictions implicitly uses `AND`. * A restriction +// has the form of `{field} {operator} {value}`. * All fields must use the +// `EQUALS (=)` operator. Supported fields: * `entityStatus` Examples: * All +// active partners: `entityStatus="ENTITY_STATUS_ACTIVE" The length of this +// field should be no more than 500 characters. Reference our filter `LIST` +// requests (/display-video/api/guides/how-tos/filters) guide for more // information. func (c *PartnersListCall) Filter(filter string) *PartnersListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` The default sorting -// order is ascending. To specify descending order for a field, a suffix -// "desc" should be added to the field name. For example, `displayName -// desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` The default sorting order is +// ascending. To specify descending order for a field, a suffix "desc" should +// be added to the field name. For example, `displayName desc`. func (c *PartnersListCall) OrderBy(orderBy string) *PartnersListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. func (c *PartnersListCall) PageSize(pageSize int64) *PartnersListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListPartners` method. If not specified, the first page of results -// will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListPartners` method. If +// not specified, the first page of results will be returned. func (c *PartnersListCall) PageToken(pageToken string) *PartnersListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersListCall) Fields(s ...googleapi.Field) *PartnersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PartnersListCall) IfNoneMatch(entityTag string) *PartnersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersListCall) Context(ctx context.Context) *PartnersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -40885,12 +29795,7 @@ func (c *PartnersListCall) Header() http.Header { } func (c *PartnersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -40904,16 +29809,15 @@ func (c *PartnersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.list" call. -// Exactly one of *ListPartnersResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListPartnersResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListPartnersResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PartnersListCall) Do(opts ...googleapi.CallOption) (*ListPartnersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -40944,44 +29848,6 @@ func (c *PartnersListCall) Do(opts ...googleapi.CallOption) (*ListPartnersRespon return nil, err } return ret, nil - // { - // "description": "Lists partners that are accessible to the current user. The order is defined by the order_by parameter.", - // "flatPath": "v1/partners", - // "httpMethod": "GET", - // "id": "displayvideo.partners.list", - // "parameterOrder": [], - // "parameters": { - // "filter": { - // "description": "Allows filtering by partner fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `entityStatus` Examples: * All active partners: `entityStatus=\"ENTITY_STATUS_ACTIVE\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListPartners` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/partners", - // "response": { - // "$ref": "ListPartnersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -40989,7 +29855,7 @@ func (c *PartnersListCall) Do(opts ...googleapi.CallOption) (*ListPartnersRespon // The provided context supersedes any context provided to the Context method. func (c *PartnersListCall) Pages(ctx context.Context, f func(*ListPartnersResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -41005,8 +29871,6 @@ func (c *PartnersListCall) Pages(ctx context.Context, f func(*ListPartnersRespon } } -// method id "displayvideo.partners.channels.create": - type PartnersChannelsCreateCall struct { s *Service partnerId int64 @@ -41027,31 +29891,29 @@ func (r *PartnersChannelsService) Create(partnerId int64, channel *Channel) *Par return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the created channel. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the created channel. func (c *PartnersChannelsCreateCall) AdvertiserId(advertiserId int64) *PartnersChannelsCreateCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersChannelsCreateCall) Fields(s ...googleapi.Field) *PartnersChannelsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersChannelsCreateCall) Context(ctx context.Context) *PartnersChannelsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersChannelsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41060,18 +29922,12 @@ func (c *PartnersChannelsCreateCall) Header() http.Header { } func (c *PartnersChannelsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.channel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/partners/{+partnerId}/channels") @@ -41084,16 +29940,14 @@ func (c *PartnersChannelsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.create" call. -// Exactly one of *Channel or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Channel.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Channel.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PartnersChannelsCreateCall) Do(opts ...googleapi.CallOption) (*Channel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41124,45 +29978,7 @@ func (c *PartnersChannelsCreateCall) Do(opts ...googleapi.CallOption) (*Channel, return nil, err } return ret, nil - // { - // "description": "Creates a new channel. Returns the newly created channel if successful.", - // "flatPath": "v1/partners/{partnersId}/channels", - // "httpMethod": "POST", - // "id": "displayvideo.partners.channels.create", - // "parameterOrder": [ - // "partnerId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the created channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the created channel.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}/channels", - // "request": { - // "$ref": "Channel" - // }, - // "response": { - // "$ref": "Channel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.channels.get": +} type PartnersChannelsGetCall struct { s *Service @@ -41185,41 +30001,37 @@ func (r *PartnersChannelsService) Get(partnerId int64, channelId int64) *Partner return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the fetched channel. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the fetched channel. func (c *PartnersChannelsGetCall) AdvertiserId(advertiserId int64) *PartnersChannelsGetCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersChannelsGetCall) Fields(s ...googleapi.Field) *PartnersChannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PartnersChannelsGetCall) IfNoneMatch(entityTag string) *PartnersChannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersChannelsGetCall) Context(ctx context.Context) *PartnersChannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersChannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41228,12 +30040,7 @@ func (c *PartnersChannelsGetCall) Header() http.Header { } func (c *PartnersChannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41251,16 +30058,14 @@ func (c *PartnersChannelsGetCall) doRequest(alt string) (*http.Response, error) "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.get" call. -// Exactly one of *Channel or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Channel.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Channel.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PartnersChannelsGetCall) Do(opts ...googleapi.CallOption) (*Channel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41291,51 +30096,7 @@ func (c *PartnersChannelsGetCall) Do(opts ...googleapi.CallOption) (*Channel, er return nil, err } return ret, nil - // { - // "description": "Gets a channel for a partner or advertiser.", - // "flatPath": "v1/partners/{partnersId}/channels/{channelsId}", - // "httpMethod": "GET", - // "id": "displayvideo.partners.channels.get", - // "parameterOrder": [ - // "partnerId", - // "channelId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the fetched channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "channelId": { - // "description": "Required. The ID of the channel to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the fetched channel.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}/channels/{+channelId}", - // "response": { - // "$ref": "Channel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.channels.list": +} type PartnersChannelsListCall struct { s *Service @@ -41355,85 +30116,77 @@ func (r *PartnersChannelsService) List(partnerId int64) *PartnersChannelsListCal return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the channels. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the channels. func (c *PartnersChannelsListCall) AdvertiserId(advertiserId int64) *PartnersChannelsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// channel fields. Supported syntax: * Filter expressions for channel -// can only contain at most one restriction. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the `HAS -// (:)` operator. Supported fields: * `displayName` Examples: * All -// channels for which the display name contains "google": `displayName : -// "google". The length of this field should be no more than 500 -// characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// Filter sets the optional parameter "filter": Allows filtering by channel +// fields. Supported syntax: * Filter expressions for channel can only contain +// at most one restriction. * A restriction has the form of `{field} {operator} +// {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * +// `displayName` Examples: * All channels for which the display name contains +// "google": `displayName : "google". The length of this field should be no +// more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *PartnersChannelsListCall) Filter(filter string) *PartnersChannelsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) * -// `channelId` The default sorting order is ascending. To specify -// descending order for a field, a suffix " desc" should be added to the -// field name. Example: `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) * `channelId` The +// default sorting order is ascending. To specify descending order for a field, +// a suffix " desc" should be added to the field name. Example: `displayName +// desc`. func (c *PartnersChannelsListCall) OrderBy(orderBy string) *PartnersChannelsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *PartnersChannelsListCall) PageSize(pageSize int64) *PartnersChannelsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListChannels` method. If not specified, the first page of results -// will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListChannels` method. If +// not specified, the first page of results will be returned. func (c *PartnersChannelsListCall) PageToken(pageToken string) *PartnersChannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersChannelsListCall) Fields(s ...googleapi.Field) *PartnersChannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PartnersChannelsListCall) IfNoneMatch(entityTag string) *PartnersChannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersChannelsListCall) Context(ctx context.Context) *PartnersChannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersChannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41442,12 +30195,7 @@ func (c *PartnersChannelsListCall) Header() http.Header { } func (c *PartnersChannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -41464,16 +30212,15 @@ func (c *PartnersChannelsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.list" call. -// Exactly one of *ListChannelsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListChannelsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListChannelsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PartnersChannelsListCall) Do(opts ...googleapi.CallOption) (*ListChannelsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41504,60 +30251,6 @@ func (c *PartnersChannelsListCall) Do(opts ...googleapi.CallOption) (*ListChanne return nil, err } return ret, nil - // { - // "description": "Lists channels for a partner or advertiser.", - // "flatPath": "v1/partners/{partnersId}/channels", - // "httpMethod": "GET", - // "id": "displayvideo.partners.channels.list", - // "parameterOrder": [ - // "partnerId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the channels.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by channel fields. Supported syntax: * Filter expressions for channel can only contain at most one restriction. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * `displayName` Examples: * All channels for which the display name contains \"google\": `displayName : \"google\"`. The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) * `channelId` The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be added to the field name. Example: `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListChannels` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the channels.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}/channels", - // "response": { - // "$ref": "ListChannelsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -41565,7 +30258,7 @@ func (c *PartnersChannelsListCall) Do(opts ...googleapi.CallOption) (*ListChanne // The provided context supersedes any context provided to the Context method. func (c *PartnersChannelsListCall) Pages(ctx context.Context, f func(*ListChannelsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -41581,8 +30274,6 @@ func (c *PartnersChannelsListCall) Pages(ctx context.Context, f func(*ListChanne } } -// method id "displayvideo.partners.channels.patch": - type PartnersChannelsPatchCall struct { s *Service partnerId int64 @@ -41595,8 +30286,8 @@ type PartnersChannelsPatchCall struct { // Patch: Updates a channel. Returns the updated channel if successful. // -// - channelId: Output only. The unique ID of the channel. Assigned by -// the system. +// - channelId: Output only. The unique ID of the channel. Assigned by the +// system. // - partnerId: The ID of the partner that owns the created channel. func (r *PartnersChannelsService) Patch(partnerId int64, channelId int64, channel *Channel) *PartnersChannelsPatchCall { c := &PartnersChannelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -41606,38 +30297,36 @@ func (r *PartnersChannelsService) Patch(partnerId int64, channelId int64, channe return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the created channel. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the created channel. func (c *PartnersChannelsPatchCall) AdvertiserId(advertiserId int64) *PartnersChannelsPatchCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *PartnersChannelsPatchCall) UpdateMask(updateMask string) *PartnersChannelsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersChannelsPatchCall) Fields(s ...googleapi.Field) *PartnersChannelsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersChannelsPatchCall) Context(ctx context.Context) *PartnersChannelsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersChannelsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41646,18 +30335,12 @@ func (c *PartnersChannelsPatchCall) Header() http.Header { } func (c *PartnersChannelsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.channel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/partners/{+partnerId}/channels/{channelId}") @@ -41671,16 +30354,14 @@ func (c *PartnersChannelsPatchCall) doRequest(alt string) (*http.Response, error "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.patch" call. -// Exactly one of *Channel or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Channel.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Channel.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PartnersChannelsPatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41711,59 +30392,7 @@ func (c *PartnersChannelsPatchCall) Do(opts ...googleapi.CallOption) (*Channel, return nil, err } return ret, nil - // { - // "description": "Updates a channel. Returns the updated channel if successful.", - // "flatPath": "v1/partners/{partnersId}/channels/{channelId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.partners.channels.patch", - // "parameterOrder": [ - // "partnerId", - // "channelId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the created channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "channelId": { - // "description": "Output only. The unique ID of the channel. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the created channel.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}/channels/{channelId}", - // "request": { - // "$ref": "Channel" - // }, - // "response": { - // "$ref": "Channel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.channels.sites.bulkEdit": +} type PartnersChannelsSitesBulkEditCall struct { s *Service @@ -41775,9 +30404,9 @@ type PartnersChannelsSitesBulkEditCall struct { header_ http.Header } -// BulkEdit: Bulk edits sites under a single channel. The operation will -// delete the sites provided in BulkEditSitesRequest.deleted_sites and -// then create the sites provided in BulkEditSitesRequest.created_sites. +// BulkEdit: Bulk edits sites under a single channel. The operation will delete +// the sites provided in BulkEditSitesRequest.deleted_sites and then create the +// sites provided in BulkEditSitesRequest.created_sites. // // - channelId: The ID of the parent channel to which the sites belong. // - partnerId: The ID of the partner that owns the parent channel. @@ -41790,23 +30419,21 @@ func (r *PartnersChannelsSitesService) BulkEdit(partnerId int64, channelId int64 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersChannelsSitesBulkEditCall) Fields(s ...googleapi.Field) *PartnersChannelsSitesBulkEditCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersChannelsSitesBulkEditCall) Context(ctx context.Context) *PartnersChannelsSitesBulkEditCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersChannelsSitesBulkEditCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41815,18 +30442,12 @@ func (c *PartnersChannelsSitesBulkEditCall) Header() http.Header { } func (c *PartnersChannelsSitesBulkEditCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bulkeditsitesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/partners/{partnerId}/channels/{+channelId}/sites:bulkEdit") @@ -41840,16 +30461,15 @@ func (c *PartnersChannelsSitesBulkEditCall) doRequest(alt string) (*http.Respons "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.bulkEdit" call. -// Exactly one of *BulkEditSitesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BulkEditSitesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkEditSitesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PartnersChannelsSitesBulkEditCall) Do(opts ...googleapi.CallOption) (*BulkEditSitesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -41880,47 +30500,7 @@ func (c *PartnersChannelsSitesBulkEditCall) Do(opts ...googleapi.CallOption) (*B return nil, err } return ret, nil - // { - // "description": "Bulk edits sites under a single channel. The operation will delete the sites provided in BulkEditSitesRequest.deleted_sites and then create the sites provided in BulkEditSitesRequest.created_sites.", - // "flatPath": "v1/partners/{partnerId}/channels/{channelsId}/sites:bulkEdit", - // "httpMethod": "POST", - // "id": "displayvideo.partners.channels.sites.bulkEdit", - // "parameterOrder": [ - // "partnerId", - // "channelId" - // ], - // "parameters": { - // "channelId": { - // "description": "Required. The ID of the parent channel to which the sites belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent channel.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{partnerId}/channels/{+channelId}/sites:bulkEdit", - // "request": { - // "$ref": "BulkEditSitesRequest" - // }, - // "response": { - // "$ref": "BulkEditSitesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.channels.sites.create": +} type PartnersChannelsSitesCreateCall struct { s *Service @@ -41934,9 +30514,8 @@ type PartnersChannelsSitesCreateCall struct { // Create: Creates a site in a channel. // -// - channelId: The ID of the parent channel in which the site will be -// created. -// - partnerId: The ID of the partner that owns the parent channel. +// - channelId: The ID of the parent channel in which the site will be created. +// - partnerId: The ID of the partner that owns the parent channel. func (r *PartnersChannelsSitesService) Create(partnerId int64, channelId int64, site *Site) *PartnersChannelsSitesCreateCall { c := &PartnersChannelsSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.partnerId = partnerId @@ -41945,31 +30524,29 @@ func (r *PartnersChannelsSitesService) Create(partnerId int64, channelId int64, return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the parent channel. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the parent channel. func (c *PartnersChannelsSitesCreateCall) AdvertiserId(advertiserId int64) *PartnersChannelsSitesCreateCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersChannelsSitesCreateCall) Fields(s ...googleapi.Field) *PartnersChannelsSitesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersChannelsSitesCreateCall) Context(ctx context.Context) *PartnersChannelsSitesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersChannelsSitesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -41978,18 +30555,12 @@ func (c *PartnersChannelsSitesCreateCall) Header() http.Header { } func (c *PartnersChannelsSitesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.site) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/partners/{partnerId}/channels/{+channelId}/sites") @@ -42003,16 +30574,14 @@ func (c *PartnersChannelsSitesCreateCall) doRequest(alt string) (*http.Response, "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.create" call. -// Exactly one of *Site or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Site.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *PartnersChannelsSitesCreateCall) Do(opts ...googleapi.CallOption) (*Site, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42043,53 +30612,7 @@ func (c *PartnersChannelsSitesCreateCall) Do(opts ...googleapi.CallOption) (*Sit return nil, err } return ret, nil - // { - // "description": "Creates a site in a channel.", - // "flatPath": "v1/partners/{partnerId}/channels/{channelsId}/sites", - // "httpMethod": "POST", - // "id": "displayvideo.partners.channels.sites.create", - // "parameterOrder": [ - // "partnerId", - // "channelId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "channelId": { - // "description": "Required. The ID of the parent channel in which the site will be created.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent channel.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{partnerId}/channels/{+channelId}/sites", - // "request": { - // "$ref": "Site" - // }, - // "response": { - // "$ref": "Site" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.channels.sites.delete": +} type PartnersChannelsSitesDeleteCall struct { s *Service @@ -42114,31 +30637,29 @@ func (r *PartnersChannelsSitesService) Delete(partnerId int64, channelId int64, return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the parent channel. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the parent channel. func (c *PartnersChannelsSitesDeleteCall) AdvertiserId(advertiserId int64) *PartnersChannelsSitesDeleteCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersChannelsSitesDeleteCall) Fields(s ...googleapi.Field) *PartnersChannelsSitesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersChannelsSitesDeleteCall) Context(ctx context.Context) *PartnersChannelsSitesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersChannelsSitesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42147,12 +30668,7 @@ func (c *PartnersChannelsSitesDeleteCall) Header() http.Header { } func (c *PartnersChannelsSitesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -42168,16 +30684,14 @@ func (c *PartnersChannelsSitesDeleteCall) doRequest(alt string) (*http.Response, "channelId": strconv.FormatInt(c.channelId, 10), "urlOrAppId": c.urlOrAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PartnersChannelsSitesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42208,58 +30722,7 @@ func (c *PartnersChannelsSitesDeleteCall) Do(opts ...googleapi.CallOption) (*Emp return nil, err } return ret, nil - // { - // "description": "Deletes a site from a channel.", - // "flatPath": "v1/partners/{partnerId}/channels/{channelsId}/sites/{sitesId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.partners.channels.sites.delete", - // "parameterOrder": [ - // "partnerId", - // "channelId", - // "urlOrAppId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "channelId": { - // "description": "Required. The ID of the parent channel to which the site belongs.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent channel.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "urlOrAppId": { - // "description": "Required. The URL or app ID of the site to delete.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{partnerId}/channels/{+channelId}/sites/{+urlOrAppId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.channels.sites.list": +} type PartnersChannelsSitesListCall struct { s *Service @@ -42273,8 +30736,8 @@ type PartnersChannelsSitesListCall struct { // List: Lists sites in a channel. // -// - channelId: The ID of the parent channel to which the requested -// sites belong. +// - channelId: The ID of the parent channel to which the requested sites +// belong. // - partnerId: The ID of the partner that owns the parent channel. func (r *PartnersChannelsSitesService) List(partnerId int64, channelId int64) *PartnersChannelsSitesListCall { c := &PartnersChannelsSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -42283,85 +30746,76 @@ func (r *PartnersChannelsSitesService) List(partnerId int64, channelId int64) *P return c } -// AdvertiserId sets the optional parameter "advertiserId": The ID of -// the advertiser that owns the parent channel. +// AdvertiserId sets the optional parameter "advertiserId": The ID of the +// advertiser that owns the parent channel. func (c *PartnersChannelsSitesListCall) AdvertiserId(advertiserId int64) *PartnersChannelsSitesListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // Filter sets the optional parameter "filter": Allows filtering by site -// fields. Supported syntax: * Filter expressions for site retrieval can -// only contain at most one restriction. * A restriction has the form of -// `{field} {operator} {value}`. * All fields must use the `HAS (:)` -// operator. Supported fields: * `urlOrAppId` Examples: * All sites for -// which the URL or app ID contains "google": `urlOrAppId : "google" -// The length of this field should be no more than 500 characters. -// Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// fields. Supported syntax: * Filter expressions for site retrieval can only +// contain at most one restriction. * A restriction has the form of `{field} +// {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported +// fields: * `urlOrAppId` Examples: * All sites for which the URL or app ID +// contains "google": `urlOrAppId : "google" The length of this field should +// be no more than 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *PartnersChannelsSitesListCall) Filter(filter string) *PartnersChannelsSitesListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `urlOrAppId` (default) The default -// sorting order is ascending. To specify descending order for a field, -// a suffix " desc" should be added to the field name. Example: -// `urlOrAppId desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `urlOrAppId` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix " +// desc" should be added to the field name. Example: `urlOrAppId desc`. func (c *PartnersChannelsSitesListCall) OrderBy(orderBy string) *PartnersChannelsSitesListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `10000`. If unspecified will default to -// `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `10000`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *PartnersChannelsSitesListCall) PageSize(pageSize int64) *PartnersChannelsSitesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListSites` method. If not specified, the first page of results -// will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListSites` method. If +// not specified, the first page of results will be returned. func (c *PartnersChannelsSitesListCall) PageToken(pageToken string) *PartnersChannelsSitesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersChannelsSitesListCall) Fields(s ...googleapi.Field) *PartnersChannelsSitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PartnersChannelsSitesListCall) IfNoneMatch(entityTag string) *PartnersChannelsSitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersChannelsSitesListCall) Context(ctx context.Context) *PartnersChannelsSitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersChannelsSitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42370,12 +30824,7 @@ func (c *PartnersChannelsSitesListCall) Header() http.Header { } func (c *PartnersChannelsSitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -42393,16 +30842,15 @@ func (c *PartnersChannelsSitesListCall) doRequest(alt string) (*http.Response, e "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.list" call. -// Exactly one of *ListSitesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListSitesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListSitesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PartnersChannelsSitesListCall) Do(opts ...googleapi.CallOption) (*ListSitesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42433,69 +30881,6 @@ func (c *PartnersChannelsSitesListCall) Do(opts ...googleapi.CallOption) (*ListS return nil, err } return ret, nil - // { - // "description": "Lists sites in a channel.", - // "flatPath": "v1/partners/{partnersId}/channels/{channelsId}/sites", - // "httpMethod": "GET", - // "id": "displayvideo.partners.channels.sites.list", - // "parameterOrder": [ - // "partnerId", - // "channelId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "The ID of the advertiser that owns the parent channel.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "channelId": { - // "description": "Required. The ID of the parent channel to which the requested sites belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by site fields. Supported syntax: * Filter expressions for site retrieval can only contain at most one restriction. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * `urlOrAppId` Examples: * All sites for which the URL or app ID contains \"google\": `urlOrAppId : \"google\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `urlOrAppId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be added to the field name. Example: `urlOrAppId desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `10000`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListSites` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent channel.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}/channels/{+channelId}/sites", - // "response": { - // "$ref": "ListSitesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -42503,7 +30888,7 @@ func (c *PartnersChannelsSitesListCall) Do(opts ...googleapi.CallOption) (*ListS // The provided context supersedes any context provided to the Context method. func (c *PartnersChannelsSitesListCall) Pages(ctx context.Context, f func(*ListSitesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -42519,8 +30904,6 @@ func (c *PartnersChannelsSitesListCall) Pages(ctx context.Context, f func(*ListS } } -// method id "displayvideo.partners.channels.sites.replace": - type PartnersChannelsSitesReplaceCall struct { s *Service partnerId int64 @@ -42531,13 +30914,12 @@ type PartnersChannelsSitesReplaceCall struct { header_ http.Header } -// Replace: Replaces all of the sites under a single channel. The -// operation will replace the sites under a channel with the sites -// provided in ReplaceSitesRequest.new_sites. +// Replace: Replaces all of the sites under a single channel. The operation +// will replace the sites under a channel with the sites provided in +// ReplaceSitesRequest.new_sites. // -// - channelId: The ID of the parent channel whose sites will be -// replaced. -// - partnerId: The ID of the partner that owns the parent channel. +// - channelId: The ID of the parent channel whose sites will be replaced. +// - partnerId: The ID of the partner that owns the parent channel. func (r *PartnersChannelsSitesService) Replace(partnerId int64, channelId int64, replacesitesrequest *ReplaceSitesRequest) *PartnersChannelsSitesReplaceCall { c := &PartnersChannelsSitesReplaceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.partnerId = partnerId @@ -42547,23 +30929,21 @@ func (r *PartnersChannelsSitesService) Replace(partnerId int64, channelId int64, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersChannelsSitesReplaceCall) Fields(s ...googleapi.Field) *PartnersChannelsSitesReplaceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersChannelsSitesReplaceCall) Context(ctx context.Context) *PartnersChannelsSitesReplaceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersChannelsSitesReplaceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42572,18 +30952,12 @@ func (c *PartnersChannelsSitesReplaceCall) Header() http.Header { } func (c *PartnersChannelsSitesReplaceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.replacesitesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/partners/{partnerId}/channels/{+channelId}/sites:replace") @@ -42597,16 +30971,15 @@ func (c *PartnersChannelsSitesReplaceCall) doRequest(alt string) (*http.Response "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.replace" call. -// Exactly one of *ReplaceSitesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ReplaceSitesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReplaceSitesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PartnersChannelsSitesReplaceCall) Do(opts ...googleapi.CallOption) (*ReplaceSitesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42637,47 +31010,7 @@ func (c *PartnersChannelsSitesReplaceCall) Do(opts ...googleapi.CallOption) (*Re return nil, err } return ret, nil - // { - // "description": "Replaces all of the sites under a single channel. The operation will replace the sites under a channel with the sites provided in ReplaceSitesRequest.new_sites.", - // "flatPath": "v1/partners/{partnerId}/channels/{channelsId}/sites:replace", - // "httpMethod": "POST", - // "id": "displayvideo.partners.channels.sites.replace", - // "parameterOrder": [ - // "partnerId", - // "channelId" - // ], - // "parameters": { - // "channelId": { - // "description": "Required. The ID of the parent channel whose sites will be replaced.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "The ID of the partner that owns the parent channel.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{partnerId}/channels/{+channelId}/sites:replace", - // "request": { - // "$ref": "ReplaceSitesRequest" - // }, - // "response": { - // "$ref": "ReplaceSitesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.targetingTypes.assignedTargetingOptions.create": +} type PartnersTargetingTypesAssignedTargetingOptionsCreateCall struct { s *Service @@ -42693,8 +31026,8 @@ type PartnersTargetingTypesAssignedTargetingOptionsCreateCall struct { // targeting option if successful. // // - partnerId: The ID of the partner. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types: * `TARGETING_TYPE_CHANNEL`. +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types: * `TARGETING_TYPE_CHANNEL`. func (r *PartnersTargetingTypesAssignedTargetingOptionsService) Create(partnerId int64, targetingType string, assignedtargetingoption *AssignedTargetingOption) *PartnersTargetingTypesAssignedTargetingOptionsCreateCall { c := &PartnersTargetingTypesAssignedTargetingOptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.partnerId = partnerId @@ -42704,23 +31037,21 @@ func (r *PartnersTargetingTypesAssignedTargetingOptionsService) Create(partnerId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) Fields(s ...googleapi.Field) *PartnersTargetingTypesAssignedTargetingOptionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) Context(ctx context.Context) *PartnersTargetingTypesAssignedTargetingOptionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42729,18 +31060,12 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) Header() http } func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.assignedtargetingoption) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions") @@ -42754,16 +31079,15 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) doRequest(alt "partnerId": strconv.FormatInt(c.partnerId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.create" call. -// Exactly one of *AssignedTargetingOption or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AssignedTargetingOption.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) Do(opts ...googleapi.CallOption) (*AssignedTargetingOption, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -42794,143 +31118,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Assigns a targeting option to a partner. Returns the assigned targeting option if successful.", - // "flatPath": "v1/partners/{partnersId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", - // "httpMethod": "POST", - // "id": "displayvideo.partners.targetingTypes.assignedTargetingOptions.create", - // "parameterOrder": [ - // "partnerId", - // "targetingType" - // ], - // "parameters": { - // "partnerId": { - // "description": "Required. The ID of the partner.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions", - // "request": { - // "$ref": "AssignedTargetingOption" - // }, - // "response": { - // "$ref": "AssignedTargetingOption" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.targetingTypes.assignedTargetingOptions.delete": +} type PartnersTargetingTypesAssignedTargetingOptionsDeleteCall struct { s *Service @@ -42944,11 +31132,11 @@ type PartnersTargetingTypesAssignedTargetingOptionsDeleteCall struct { // Delete: Deletes an assigned targeting option from a partner. // -// - assignedTargetingOptionId: The ID of the assigned targeting option -// to delete. +// - assignedTargetingOptionId: The ID of the assigned targeting option to +// delete. // - partnerId: The ID of the partner. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types: * `TARGETING_TYPE_CHANNEL`. +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types: * `TARGETING_TYPE_CHANNEL`. func (r *PartnersTargetingTypesAssignedTargetingOptionsService) Delete(partnerId int64, targetingType string, assignedTargetingOptionId string) *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall { c := &PartnersTargetingTypesAssignedTargetingOptionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.partnerId = partnerId @@ -42958,23 +31146,21 @@ func (r *PartnersTargetingTypesAssignedTargetingOptionsService) Delete(partnerId } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) Fields(s ...googleapi.Field) *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) Context(ctx context.Context) *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -42983,12 +31169,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) Header() http } func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -43004,16 +31185,14 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest(alt "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43044,148 +31223,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Deletes an assigned targeting option from a partner.", - // "flatPath": "v1/partners/{partnersId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.partners.targetingTypes.assignedTargetingOptions.delete", - // "parameterOrder": [ - // "partnerId", - // "targetingType", - // "assignedTargetingOptionId" - // ], - // "parameters": { - // "assignedTargetingOptionId": { - // "description": "Required. The ID of the assigned targeting option to delete.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "Required. The ID of the partner.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.targetingTypes.assignedTargetingOptions.get": +} type PartnersTargetingTypesAssignedTargetingOptionsGetCall struct { s *Service @@ -43200,12 +31238,12 @@ type PartnersTargetingTypesAssignedTargetingOptionsGetCall struct { // Get: Gets a single targeting option assigned to a partner. // -// - assignedTargetingOptionId: An identifier unique to the targeting -// type in this partner that identifies the assigned targeting option -// being requested. +// - assignedTargetingOptionId: An identifier unique to the targeting type in +// this partner that identifies the assigned targeting option being +// requested. // - partnerId: The ID of the partner. -// - targetingType: Identifies the type of this assigned targeting -// option. Supported targeting types: * `TARGETING_TYPE_CHANNEL`. +// - targetingType: Identifies the type of this assigned targeting option. +// Supported targeting types: * `TARGETING_TYPE_CHANNEL`. func (r *PartnersTargetingTypesAssignedTargetingOptionsService) Get(partnerId int64, targetingType string, assignedTargetingOptionId string) *PartnersTargetingTypesAssignedTargetingOptionsGetCall { c := &PartnersTargetingTypesAssignedTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.partnerId = partnerId @@ -43215,33 +31253,29 @@ func (r *PartnersTargetingTypesAssignedTargetingOptionsService) Get(partnerId in } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) Fields(s ...googleapi.Field) *PartnersTargetingTypesAssignedTargetingOptionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) IfNoneMatch(entityTag string) *PartnersTargetingTypesAssignedTargetingOptionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) Context(ctx context.Context) *PartnersTargetingTypesAssignedTargetingOptionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43250,12 +31284,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) Header() http.He } func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43274,16 +31303,15 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt st "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.get" call. -// Exactly one of *AssignedTargetingOption or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AssignedTargetingOption.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...googleapi.CallOption) (*AssignedTargetingOption, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43314,148 +31342,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Gets a single targeting option assigned to a partner.", - // "flatPath": "v1/partners/{partnersId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", - // "httpMethod": "GET", - // "id": "displayvideo.partners.targetingTypes.assignedTargetingOptions.get", - // "parameterOrder": [ - // "partnerId", - // "targetingType", - // "assignedTargetingOptionId" - // ], - // "parameters": { - // "assignedTargetingOptionId": { - // "description": "Required. An identifier unique to the targeting type in this partner that identifies the assigned targeting option being requested.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "partnerId": { - // "description": "Required. The ID of the partner.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}", - // "response": { - // "$ref": "AssignedTargetingOption" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.partners.targetingTypes.assignedTargetingOptions.list": +} type PartnersTargetingTypesAssignedTargetingOptionsListCall struct { s *Service @@ -43470,8 +31357,8 @@ type PartnersTargetingTypesAssignedTargetingOptionsListCall struct { // List: Lists the targeting options assigned to a partner. // // - partnerId: The ID of the partner. -// - targetingType: Identifies the type of assigned targeting options to -// list. Supported targeting types: * `TARGETING_TYPE_CHANNEL`. +// - targetingType: Identifies the type of assigned targeting options to list. +// Supported targeting types: * `TARGETING_TYPE_CHANNEL`. func (r *PartnersTargetingTypesAssignedTargetingOptionsService) List(partnerId int64, targetingType string) *PartnersTargetingTypesAssignedTargetingOptionsListCall { c := &PartnersTargetingTypesAssignedTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.partnerId = partnerId @@ -43479,80 +31366,73 @@ func (r *PartnersTargetingTypesAssignedTargetingOptionsService) List(partnerId i return c } -// Filter sets the optional parameter "filter": Allows filtering by -// assigned targeting option fields. Supported syntax: * Filter -// expressions are made up of one or more restrictions. * Restrictions -// can be combined by the logical operator `OR`. * A restriction has the -// form of `{field} {operator} {value}`. * All fields must use the -// `EQUALS (=)` operator. Supported fields: * -// `assignedTargetingOptionId` Examples: * `AssignedTargetingOption` -// resource with ID 123456: `assignedTargetingOptionId="123456" The -// length of this field should be no more than 500 characters. Reference -// our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more +// Filter sets the optional parameter "filter": Allows filtering by assigned +// targeting option fields. Supported syntax: * Filter expressions are made up +// of one or more restrictions. * Restrictions can be combined by the logical +// operator `OR`. * A restriction has the form of `{field} {operator} {value}`. +// * All fields must use the `EQUALS (=)` operator. Supported fields: * +// `assignedTargetingOptionId` Examples: * `AssignedTargetingOption` resource +// with ID 123456: `assignedTargetingOptionId="123456" The length of this +// field should be no more than 500 characters. Reference our filter `LIST` +// requests (/display-video/api/guides/how-tos/filters) guide for more // information. func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Filter(filter string) *PartnersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `assignedTargetingOptionId` -// (default) The default sorting order is ascending. To specify -// descending order for a field, a suffix "desc" should be added to the -// field name. Example: `assignedTargetingOptionId desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `assignedTargetingOptionId` (default) The +// default sorting order is ascending. To specify descending order for a field, +// a suffix "desc" should be added to the field name. Example: +// `assignedTargetingOptionId desc`. func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) OrderBy(orderBy string) *PartnersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) PageSize(pageSize int64) *PartnersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListPartnerAssignedTargetingOptions` method. If not specified, -// the first page of results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to +// `ListPartnerAssignedTargetingOptions` method. If not specified, the first +// page of results will be returned. func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) PageToken(pageToken string) *PartnersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Fields(s ...googleapi.Field) *PartnersTargetingTypesAssignedTargetingOptionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) IfNoneMatch(entityTag string) *PartnersTargetingTypesAssignedTargetingOptionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Context(ctx context.Context) *PartnersTargetingTypesAssignedTargetingOptionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43561,12 +31441,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Header() http.H } func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -43584,18 +31459,15 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt s "partnerId": strconv.FormatInt(c.partnerId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.list" call. -// Exactly one of *ListPartnerAssignedTargetingOptionsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *ListPartnerAssignedTargetingOptionsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListPartnerAssignedTargetingOptionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...googleapi.CallOption) (*ListPartnerAssignedTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43626,158 +31498,6 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Lists the targeting options assigned to a partner.", - // "flatPath": "v1/partners/{partnersId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", - // "httpMethod": "GET", - // "id": "displayvideo.partners.targetingTypes.assignedTargetingOptions.list", - // "parameterOrder": [ - // "partnerId", - // "targetingType" - // ], - // "parameters": { - // "filter": { - // "description": "Allows filtering by assigned targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the logical operator `OR`. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `assignedTargetingOptionId` Examples: * `AssignedTargetingOption` resource with ID 123456: `assignedTargetingOptionId=\"123456\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `assignedTargetingOptionId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `assignedTargetingOptionId desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListPartnerAssignedTargetingOptions` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "partnerId": { - // "description": "Required. The ID of the partner.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. Identifies the type of assigned targeting options to list. Supported targeting types: * `TARGETING_TYPE_CHANNEL`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions", - // "response": { - // "$ref": "ListPartnerAssignedTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -43785,7 +31505,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Do(opts ...goog // The provided context supersedes any context provided to the Context method. func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Pages(ctx context.Context, f func(*ListPartnerAssignedTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -43801,8 +31521,6 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) Pages(ctx conte } } -// method id "displayvideo.sdfdownloadtasks.create": - type SdfdownloadtasksCreateCall struct { s *Service createsdfdownloadtaskrequest *CreateSdfDownloadTaskRequest @@ -43811,15 +31529,14 @@ type SdfdownloadtasksCreateCall struct { header_ http.Header } -// Create: Creates an SDF Download Task. Returns an Operation. An SDF -// Download Task is a long-running, asynchronous operation. The metadata -// type of this operation is SdfDownloadTaskMetadata. If the request is -// successful, the response type of the operation is SdfDownloadTask. -// The response will not include the download files, which must be -// retrieved with media.download. The state of operation can be -// retrieved with sdfdownloadtask.operations.get. Any errors can be -// found in the error.message. Note that error.details is expected to be -// empty. +// Create: Creates an SDF Download Task. Returns an Operation. An SDF Download +// Task is a long-running, asynchronous operation. The metadata type of this +// operation is SdfDownloadTaskMetadata. If the request is successful, the +// response type of the operation is SdfDownloadTask. The response will not +// include the download files, which must be retrieved with media.download. The +// state of operation can be retrieved with sdfdownloadtask.operations.get. Any +// errors can be found in the error.message. Note that error.details is +// expected to be empty. func (r *SdfdownloadtasksService) Create(createsdfdownloadtaskrequest *CreateSdfDownloadTaskRequest) *SdfdownloadtasksCreateCall { c := &SdfdownloadtasksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.createsdfdownloadtaskrequest = createsdfdownloadtaskrequest @@ -43827,23 +31544,21 @@ func (r *SdfdownloadtasksService) Create(createsdfdownloadtaskrequest *CreateSdf } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SdfdownloadtasksCreateCall) Fields(s ...googleapi.Field) *SdfdownloadtasksCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SdfdownloadtasksCreateCall) Context(ctx context.Context) *SdfdownloadtasksCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SdfdownloadtasksCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43852,18 +31567,12 @@ func (c *SdfdownloadtasksCreateCall) Header() http.Header { } func (c *SdfdownloadtasksCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.createsdfdownloadtaskrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/sdfdownloadtasks") @@ -43873,16 +31582,14 @@ func (c *SdfdownloadtasksCreateCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtasks.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SdfdownloadtasksCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -43913,28 +31620,7 @@ func (c *SdfdownloadtasksCreateCall) Do(opts ...googleapi.CallOption) (*Operatio return nil, err } return ret, nil - // { - // "description": "Creates an SDF Download Task. Returns an Operation. An SDF Download Task is a long-running, asynchronous operation. The metadata type of this operation is SdfDownloadTaskMetadata. If the request is successful, the response type of the operation is SdfDownloadTask. The response will not include the download files, which must be retrieved with media.download. The state of operation can be retrieved with sdfdownloadtask.operations.get. Any errors can be found in the error.message. Note that error.details is expected to be empty.", - // "flatPath": "v1/sdfdownloadtasks", - // "httpMethod": "POST", - // "id": "displayvideo.sdfdownloadtasks.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1/sdfdownloadtasks", - // "request": { - // "$ref": "CreateSdfDownloadTaskRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.sdfdownloadtasks.operations.get": +} type SdfdownloadtasksOperationsGetCall struct { s *Service @@ -43945,9 +31631,8 @@ type SdfdownloadtasksOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of an asynchronous SDF download task -// operation. Clients should poll this method at intervals of 30 -// seconds. +// Get: Gets the latest state of an asynchronous SDF download task operation. +// Clients should poll this method at intervals of 30 seconds. // // - name: The name of the operation resource. func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOperationsGetCall { @@ -43957,33 +31642,29 @@ func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SdfdownloadtasksOperationsGetCall) Fields(s ...googleapi.Field) *SdfdownloadtasksOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SdfdownloadtasksOperationsGetCall) IfNoneMatch(entityTag string) *SdfdownloadtasksOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SdfdownloadtasksOperationsGetCall) Context(ctx context.Context) *SdfdownloadtasksOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -43992,12 +31673,7 @@ func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { } func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44014,16 +31690,14 @@ func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtasks.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44054,36 +31728,7 @@ func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*O return nil, err } return ret, nil - // { - // "description": "Gets the latest state of an asynchronous SDF download task operation. Clients should poll this method at intervals of 30 seconds.", - // "flatPath": "v1/sdfdownloadtasks/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "displayvideo.sdfdownloadtasks.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^sdfdownloadtasks/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - -} - -// method id "displayvideo.targetingTypes.targetingOptions.get": +} type TargetingTypesTargetingOptionsGetCall struct { s *Service @@ -44098,27 +31743,22 @@ type TargetingTypesTargetingOptionsGetCall struct { // Get: Gets a single targeting option. // // - targetingOptionId: The ID of the of targeting option to retrieve. -// - targetingType: The type of targeting option to retrieve. Accepted -// values are: * `TARGETING_TYPE_APP_CATEGORY` * -// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_GENDER` * -// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * -// `TARGETING_TYPE_USER_REWARDED_CONTENT` * -// `TARGETING_TYPE_PARENTAL_STATUS` * -// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * -// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * -// `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_BROWSER` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * -// `TARGETING_TYPE_ON_SCREEN_POSITION` * -// `TARGETING_TYPE_CARRIER_AND_ISP` * -// `TARGETING_TYPE_OPERATING_SYSTEM` * -// `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_ENVIRONMENT` * -// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_VIEWABILITY` * -// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// - targetingType: The type of targeting option to retrieve. Accepted values +// are: * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AGE_RANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_PARENTAL_STATUS` +// - `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DEVICE_TYPE` +// - `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_CARRIER_AND_ISP` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * // `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_GEO_REGION` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * -// `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_SUB_EXCHANGE` * -// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_EXCHANGE` +// - `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` +// - `TARGETING_TYPE_OMID`. func (r *TargetingTypesTargetingOptionsService) Get(targetingType string, targetingOptionId string) *TargetingTypesTargetingOptionsGetCall { c := &TargetingTypesTargetingOptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.targetingType = targetingType @@ -44126,41 +31766,37 @@ func (r *TargetingTypesTargetingOptionsService) Get(targetingType string, target return c } -// AdvertiserId sets the optional parameter "advertiserId": Required. -// The Advertiser this request is being made in the context of. +// AdvertiserId sets the optional parameter "advertiserId": Required. The +// Advertiser this request is being made in the context of. func (c *TargetingTypesTargetingOptionsGetCall) AdvertiserId(advertiserId int64) *TargetingTypesTargetingOptionsGetCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTypesTargetingOptionsGetCall) Fields(s ...googleapi.Field) *TargetingTypesTargetingOptionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTypesTargetingOptionsGetCall) IfNoneMatch(entityTag string) *TargetingTypesTargetingOptionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTypesTargetingOptionsGetCall) Context(ctx context.Context) *TargetingTypesTargetingOptionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTypesTargetingOptionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44169,12 +31805,7 @@ func (c *TargetingTypesTargetingOptionsGetCall) Header() http.Header { } func (c *TargetingTypesTargetingOptionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44192,16 +31823,15 @@ func (c *TargetingTypesTargetingOptionsGetCall) doRequest(alt string) (*http.Res "targetingType": c.targetingType, "targetingOptionId": c.targetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.targetingTypes.targetingOptions.get" call. -// Exactly one of *TargetingOption or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *TargetingOption.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TargetingOption.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TargetingTypesTargetingOptionsGetCall) Do(opts ...googleapi.CallOption) (*TargetingOption, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44232,145 +31862,7 @@ func (c *TargetingTypesTargetingOptionsGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets a single targeting option.", - // "flatPath": "v1/targetingTypes/{targetingTypesId}/targetingOptions/{targetingOptionsId}", - // "httpMethod": "GET", - // "id": "displayvideo.targetingTypes.targetingOptions.get", - // "parameterOrder": [ - // "targetingType", - // "targetingOptionId" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The Advertiser this request is being made in the context of.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "targetingOptionId": { - // "description": "Required. The ID of the of targeting option to retrieve.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. The type of targeting option to retrieve. Accepted values are: * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/targetingTypes/{+targetingType}/targetingOptions/{+targetingOptionId}", - // "response": { - // "$ref": "TargetingOption" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - -} - -// method id "displayvideo.targetingTypes.targetingOptions.list": +} type TargetingTypesTargetingOptionsListCall struct { s *Service @@ -44383,119 +31875,107 @@ type TargetingTypesTargetingOptionsListCall struct { // List: Lists targeting options of a given type. // -// - targetingType: The type of targeting option to be listed. Accepted -// values are: * `TARGETING_TYPE_APP_CATEGORY` * -// `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_GENDER` * -// `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * -// `TARGETING_TYPE_USER_REWARDED_CONTENT` * -// `TARGETING_TYPE_PARENTAL_STATUS` * -// `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * -// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * -// `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_BROWSER` * -// `TARGETING_TYPE_HOUSEHOLD_INCOME` * -// `TARGETING_TYPE_ON_SCREEN_POSITION` * -// `TARGETING_TYPE_CARRIER_AND_ISP` * -// `TARGETING_TYPE_OPERATING_SYSTEM` * -// `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_ENVIRONMENT` * -// `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_VIEWABILITY` * -// `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * +// - targetingType: The type of targeting option to be listed. Accepted values +// are: * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AGE_RANGE` * +// `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * +// `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_PARENTAL_STATUS` +// - `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * +// `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DEVICE_TYPE` +// - `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * +// `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_CARRIER_AND_ISP` * +// `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * +// `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_CATEGORY` * +// `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * // `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_GEO_REGION` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * -// `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_SUB_EXCHANGE` * -// `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_EXCHANGE` +// - `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` +// - `TARGETING_TYPE_OMID`. func (r *TargetingTypesTargetingOptionsService) List(targetingType string) *TargetingTypesTargetingOptionsListCall { c := &TargetingTypesTargetingOptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.targetingType = targetingType return c } -// AdvertiserId sets the optional parameter "advertiserId": Required. -// The Advertiser this request is being made in the context of. +// AdvertiserId sets the optional parameter "advertiserId": Required. The +// Advertiser this request is being made in the context of. func (c *TargetingTypesTargetingOptionsListCall) AdvertiserId(advertiserId int64) *TargetingTypesTargetingOptionsListCall { c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) return c } -// Filter sets the optional parameter "filter": Allows filtering by -// targeting option fields. Supported syntax: * Filter expressions are -// made up of one or more restrictions. * Restrictions can be combined -// by `OR` logical operators. * A restriction has the form of `{field} -// {operator} {value}`. * All fields must use the `EQUALS (=)` operator. -// Supported fields: * `carrierAndIspDetails.type` * -// `geoRegionDetails.geoRegionType` * `targetingOptionId` Examples: * -// All `GEO REGION` targeting options that belong to sub type -// `GEO_REGION_TYPE_COUNTRY` or `GEO_REGION_TYPE_STATE`: +// Filter sets the optional parameter "filter": Allows filtering by targeting +// option fields. Supported syntax: * Filter expressions are made up of one or +// more restrictions. * Restrictions can be combined by `OR` logical operators. +// * A restriction has the form of `{field} {operator} {value}`. * All fields +// must use the `EQUALS (=)` operator. Supported fields: * +// `carrierAndIspDetails.type` * `geoRegionDetails.geoRegionType` * +// `targetingOptionId` Examples: * All `GEO REGION` targeting options that +// belong to sub type `GEO_REGION_TYPE_COUNTRY` or `GEO_REGION_TYPE_STATE`: // `geoRegionDetails.geoRegionType="GEO_REGION_TYPE_COUNTRY" OR -// geoRegionDetails.geoRegionType="GEO_REGION_TYPE_STATE" * All -// `CARRIER AND ISP` targeting options that belong to sub type +// geoRegionDetails.geoRegionType="GEO_REGION_TYPE_STATE" * All `CARRIER AND +// ISP` targeting options that belong to sub type // `CARRIER_AND_ISP_TYPE_CARRIER`: -// `carrierAndIspDetails.type="CARRIER_AND_ISP_TYPE_CARRIER" The length -// of this field should be no more than 500 characters. Reference our -// filter `LIST` requests (/display-video/api/guides/how-tos/filters) -// guide for more information. +// `carrierAndIspDetails.type="CARRIER_AND_ISP_TYPE_CARRIER" The length of +// this field should be no more than 500 characters. Reference our filter +// `LIST` requests (/display-video/api/guides/how-tos/filters) guide for more +// information. func (c *TargetingTypesTargetingOptionsListCall) Filter(filter string) *TargetingTypesTargetingOptionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `targetingOptionId` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix "desc" should be added to the field name. Example: -// `targetingOptionId desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `targetingOptionId` (default) The default +// sorting order is ascending. To specify descending order for a field, a +// suffix "desc" should be added to the field name. Example: `targetingOptionId +// desc`. func (c *TargetingTypesTargetingOptionsListCall) OrderBy(orderBy string) *TargetingTypesTargetingOptionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is -// specified. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. Returns +// error code `INVALID_ARGUMENT` if an invalid value is specified. func (c *TargetingTypesTargetingOptionsListCall) PageSize(pageSize int64) *TargetingTypesTargetingOptionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListTargetingOptions` method. If not specified, the first page of -// results will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListTargetingOptions` +// method. If not specified, the first page of results will be returned. func (c *TargetingTypesTargetingOptionsListCall) PageToken(pageToken string) *TargetingTypesTargetingOptionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTypesTargetingOptionsListCall) Fields(s ...googleapi.Field) *TargetingTypesTargetingOptionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TargetingTypesTargetingOptionsListCall) IfNoneMatch(entityTag string) *TargetingTypesTargetingOptionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTypesTargetingOptionsListCall) Context(ctx context.Context) *TargetingTypesTargetingOptionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTypesTargetingOptionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44504,12 +31984,7 @@ func (c *TargetingTypesTargetingOptionsListCall) Header() http.Header { } func (c *TargetingTypesTargetingOptionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -44526,16 +32001,15 @@ func (c *TargetingTypesTargetingOptionsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.targetingTypes.targetingOptions.list" call. -// Exactly one of *ListTargetingOptionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListTargetingOptionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListTargetingOptionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetingTypesTargetingOptionsListCall) Do(opts ...googleapi.CallOption) (*ListTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44566,155 +32040,6 @@ func (c *TargetingTypesTargetingOptionsListCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Lists targeting options of a given type.", - // "flatPath": "v1/targetingTypes/{targetingTypesId}/targetingOptions", - // "httpMethod": "GET", - // "id": "displayvideo.targetingTypes.targetingOptions.list", - // "parameterOrder": [ - // "targetingType" - // ], - // "parameters": { - // "advertiserId": { - // "description": "Required. The Advertiser this request is being made in the context of.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Allows filtering by targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `OR` logical operators. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `carrierAndIspDetails.type` * `geoRegionDetails.geoRegionType` * `targetingOptionId` Examples: * All `GEO REGION` targeting options that belong to sub type `GEO_REGION_TYPE_COUNTRY` or `GEO_REGION_TYPE_STATE`: `geoRegionDetails.geoRegionType=\"GEO_REGION_TYPE_COUNTRY\" OR geoRegionDetails.geoRegionType=\"GEO_REGION_TYPE_STATE\"` * All `CARRIER AND ISP` targeting options that belong to sub type `CARRIER_AND_ISP_TYPE_CARRIER`: `carrierAndIspDetails.type=\"CARRIER_AND_ISP_TYPE_CARRIER\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `targetingOptionId` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `targetingOptionId desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListTargetingOptions` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // }, - // "targetingType": { - // "description": "Required. The type of targeting option to be listed. Accepted values are: * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_VIEWABILITY` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/targetingTypes/{+targetingType}/targetingOptions", - // "response": { - // "$ref": "ListTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -44722,7 +32047,7 @@ func (c *TargetingTypesTargetingOptionsListCall) Do(opts ...googleapi.CallOption // The provided context supersedes any context provided to the Context method. func (c *TargetingTypesTargetingOptionsListCall) Pages(ctx context.Context, f func(*ListTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -44738,8 +32063,6 @@ func (c *TargetingTypesTargetingOptionsListCall) Pages(ctx context.Context, f fu } } -// method id "displayvideo.targetingTypes.targetingOptions.search": - type TargetingTypesTargetingOptionsSearchCall struct { s *Service targetingType string @@ -44749,11 +32072,11 @@ type TargetingTypesTargetingOptionsSearchCall struct { header_ http.Header } -// Search: Searches for targeting options of a given type based on the -// given search terms. +// Search: Searches for targeting options of a given type based on the given +// search terms. // -// - targetingType: The type of targeting options to retrieve. Accepted -// values are: * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_POI` * +// - targetingType: The type of targeting options to retrieve. Accepted values +// are: * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_POI` * // `TARGETING_TYPE_BUSINESS_CHAIN`. func (r *TargetingTypesTargetingOptionsService) Search(targetingType string, searchtargetingoptionsrequest *SearchTargetingOptionsRequest) *TargetingTypesTargetingOptionsSearchCall { c := &TargetingTypesTargetingOptionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -44763,23 +32086,21 @@ func (r *TargetingTypesTargetingOptionsService) Search(targetingType string, sea } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TargetingTypesTargetingOptionsSearchCall) Fields(s ...googleapi.Field) *TargetingTypesTargetingOptionsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TargetingTypesTargetingOptionsSearchCall) Context(ctx context.Context) *TargetingTypesTargetingOptionsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TargetingTypesTargetingOptionsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -44788,18 +32109,12 @@ func (c *TargetingTypesTargetingOptionsSearchCall) Header() http.Header { } func (c *TargetingTypesTargetingOptionsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchtargetingoptionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/targetingTypes/{+targetingType}/targetingOptions:search") @@ -44812,16 +32127,15 @@ func (c *TargetingTypesTargetingOptionsSearchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.targetingTypes.targetingOptions.search" call. -// Exactly one of *SearchTargetingOptionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *SearchTargetingOptionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SearchTargetingOptionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TargetingTypesTargetingOptionsSearchCall) Do(opts ...googleapi.CallOption) (*SearchTargetingOptionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -44852,131 +32166,6 @@ func (c *TargetingTypesTargetingOptionsSearchCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Searches for targeting options of a given type based on the given search terms.", - // "flatPath": "v1/targetingTypes/{targetingTypesId}/targetingOptions:search", - // "httpMethod": "POST", - // "id": "displayvideo.targetingTypes.targetingOptions.search", - // "parameterOrder": [ - // "targetingType" - // ], - // "parameters": { - // "targetingType": { - // "description": "Required. The type of targeting options to retrieve. Accepted values are: * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_BUSINESS_CHAIN`", - // "enum": [ - // "TARGETING_TYPE_UNSPECIFIED", - // "TARGETING_TYPE_CHANNEL", - // "TARGETING_TYPE_APP_CATEGORY", - // "TARGETING_TYPE_APP", - // "TARGETING_TYPE_URL", - // "TARGETING_TYPE_DAY_AND_TIME", - // "TARGETING_TYPE_AGE_RANGE", - // "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - // "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - // "TARGETING_TYPE_GENDER", - // "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - // "TARGETING_TYPE_USER_REWARDED_CONTENT", - // "TARGETING_TYPE_PARENTAL_STATUS", - // "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - // "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - // "TARGETING_TYPE_DEVICE_TYPE", - // "TARGETING_TYPE_AUDIENCE_GROUP", - // "TARGETING_TYPE_BROWSER", - // "TARGETING_TYPE_HOUSEHOLD_INCOME", - // "TARGETING_TYPE_ON_SCREEN_POSITION", - // "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - // "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - // "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - // "TARGETING_TYPE_ENVIRONMENT", - // "TARGETING_TYPE_CARRIER_AND_ISP", - // "TARGETING_TYPE_OPERATING_SYSTEM", - // "TARGETING_TYPE_DEVICE_MAKE_MODEL", - // "TARGETING_TYPE_KEYWORD", - // "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - // "TARGETING_TYPE_VIEWABILITY", - // "TARGETING_TYPE_CATEGORY", - // "TARGETING_TYPE_INVENTORY_SOURCE", - // "TARGETING_TYPE_LANGUAGE", - // "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - // "TARGETING_TYPE_GEO_REGION", - // "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - // "TARGETING_TYPE_EXCHANGE", - // "TARGETING_TYPE_SUB_EXCHANGE", - // "TARGETING_TYPE_POI", - // "TARGETING_TYPE_BUSINESS_CHAIN", - // "TARGETING_TYPE_CONTENT_DURATION", - // "TARGETING_TYPE_CONTENT_STREAM_TYPE", - // "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - // "TARGETING_TYPE_OMID", - // "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - // "TARGETING_TYPE_CONTENT_GENRE" - // ], - // "enumDescriptions": [ - // "Default value when type is not specified or is unknown in this version.", - // "Target a channel (a custom group of related websites or apps).", - // "Target an app category (for example, education or puzzle games).", - // "Target a specific app (for example, Angry Birds).", - // "Target a specific url (for example, quora.com).", - // "Target ads during a chosen time period on a specific day.", - // "Target ads to a specific age range (for example, 18-24).", - // "Target ads to the specified regions on a regional location list.", - // "Target ads to the specified points of interest on a proximity location list.", - // "Target ads to a specific gender (for example, female or male).", - // "Target a specific video player size for video ads.", - // "Target user rewarded content for video ads.", - // "Target ads to a specific parental status (for example, parent or not a parent).", - // "Target video or audio ads in a specific content instream position (for example, pre-roll, mid-roll, or post-roll).", - // "Target ads in a specific content outstream position.", - // "Target ads to a specific device type (for example, tablet or connected TV).", - // "Target ads to an audience or groups of audiences. Singleton field, at most one can exist on a single Lineitem at a time.", - // "Target ads to specific web browsers (for example, Chrome).", - // "Target ads to a specific household income range (for example, top 10%).", - // "Target ads in a specific on screen position.", - // "Filter web sites through third party verification (for example, IAS or DoubleVerify).", - // "Filter web sites by specific digital content label ratings (for example, DL-MA: suitable only for mature audiences).", - // "Filter website content by sensitive categories (for example, adult).", - // "Target ads to a specific environment (for example, web or app).", - // "Target ads to a specific network carrier or internet service provider (ISP) (for example, Comcast or Orange).", - // "Target ads to a specific operating system (for example, macOS).", - // "Target ads to a specific device make or model (for example, Roku or Samsung).", - // "Target ads to a specific keyword (for example, dog or retriever).", - // "Target ads to a specific negative keyword list.", - // "Target ads to a specific viewability (for example, 80% viewable).", - // "Target ads to a specific content category (for example, arts \u0026 entertainment).", - // "Purchase impressions from specific deals and auction packages.", - // "Target ads to a specific language (for example, English or Japanese).", - // "Target ads to ads.txt authorized sellers. If no targeting option of this type is assigned, the resource uses the \"Authorized Direct Sellers and Resellers\" option by default.", - // "Target ads to a specific regional location (for example, a city or state).", - // "Purchase impressions from a group of deals and auction packages.", - // "Purchase impressions from specific exchanges.", - // "Purchase impressions from specific sub-exchanges.", - // "Target ads around a specific point of interest, such as a notable building, a street address, or latitude/longitude coordinates.", - // "Target ads around locations of a business chain within a specific geo region.", - // "Target ads to a specific video content duration.", - // "Target ads to a specific video content stream type.", - // "Target ads to a specific native content position.", - // "Target ads in an Open Measurement enabled inventory.", - // "Target ads to a specific audio content type.", - // "Target ads to a specific content genre." - // ], - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/targetingTypes/{+targetingType}/targetingOptions:search", - // "request": { - // "$ref": "SearchTargetingOptionsRequest" - // }, - // "response": { - // "$ref": "SearchTargetingOptionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video" - // ] - // } - } // Pages invokes f for each page of results. @@ -44984,7 +32173,7 @@ func (c *TargetingTypesTargetingOptionsSearchCall) Do(opts ...googleapi.CallOpti // The provided context supersedes any context provided to the Context method. func (c *TargetingTypesTargetingOptionsSearchCall) Pages(ctx context.Context, f func(*SearchTargetingOptionsResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.searchtargetingoptionsrequest.PageToken = pt }(c.searchtargetingoptionsrequest.PageToken) // reset paging to original point + defer func(pt string) { c.searchtargetingoptionsrequest.PageToken = pt }(c.searchtargetingoptionsrequest.PageToken) for { x, err := c.Do() if err != nil { @@ -45000,8 +32189,6 @@ func (c *TargetingTypesTargetingOptionsSearchCall) Pages(ctx context.Context, f } } -// method id "displayvideo.users.bulkEditAssignedUserRoles": - type UsersBulkEditAssignedUserRolesCall struct { s *Service userId int64 @@ -45011,15 +32198,14 @@ type UsersBulkEditAssignedUserRolesCall struct { header_ http.Header } -// BulkEditAssignedUserRoles: Bulk edits user roles for a user. The -// operation will delete the assigned user roles provided in -// BulkEditAssignedUserRolesRequest.deletedAssignedUserRoles and then -// assign the user roles provided in -// BulkEditAssignedUserRolesRequest.createdAssignedUserRoles. This -// method has unique authentication requirements. Read the prerequisites -// in our Managing Users guide -// (/display-video/api/guides/users/overview#prerequisites) before using -// this method. The "Try this method" feature does not work for this +// BulkEditAssignedUserRoles: Bulk edits user roles for a user. The operation +// will delete the assigned user roles provided in +// BulkEditAssignedUserRolesRequest.deletedAssignedUserRoles and then assign +// the user roles provided in +// BulkEditAssignedUserRolesRequest.createdAssignedUserRoles. This method has +// unique authentication requirements. Read the prerequisites in our Managing +// Users guide (/display-video/api/guides/users/overview#prerequisites) before +// using this method. The "Try this method" feature does not work for this // method. // // - userId: The ID of the user to which the assigned user roles belong. @@ -45031,23 +32217,21 @@ func (r *UsersService) BulkEditAssignedUserRoles(userId int64, bulkeditassignedu } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersBulkEditAssignedUserRolesCall) Fields(s ...googleapi.Field) *UsersBulkEditAssignedUserRolesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersBulkEditAssignedUserRolesCall) Context(ctx context.Context) *UsersBulkEditAssignedUserRolesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersBulkEditAssignedUserRolesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45056,18 +32240,12 @@ func (c *UsersBulkEditAssignedUserRolesCall) Header() http.Header { } func (c *UsersBulkEditAssignedUserRolesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bulkeditassigneduserrolesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/users/{+userId}:bulkEditAssignedUserRoles") @@ -45080,17 +32258,15 @@ func (c *UsersBulkEditAssignedUserRolesCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.bulkEditAssignedUserRoles" call. -// Exactly one of *BulkEditAssignedUserRolesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *BulkEditAssignedUserRolesResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BulkEditAssignedUserRolesResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *UsersBulkEditAssignedUserRolesCall) Do(opts ...googleapi.CallOption) (*BulkEditAssignedUserRolesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45121,39 +32297,7 @@ func (c *UsersBulkEditAssignedUserRolesCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Bulk edits user roles for a user. The operation will delete the assigned user roles provided in BulkEditAssignedUserRolesRequest.deletedAssignedUserRoles and then assign the user roles provided in BulkEditAssignedUserRolesRequest.createdAssignedUserRoles. This method has unique authentication requirements. Read the prerequisites in our [Managing Users guide](/display-video/api/guides/users/overview#prerequisites) before using this method. The \"Try this method\" feature does not work for this method.", - // "flatPath": "v1/users/{usersId}:bulkEditAssignedUserRoles", - // "httpMethod": "POST", - // "id": "displayvideo.users.bulkEditAssignedUserRoles", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "userId": { - // "description": "Required. The ID of the user to which the assigned user roles belong.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/users/{+userId}:bulkEditAssignedUserRoles", - // "request": { - // "$ref": "BulkEditAssignedUserRolesRequest" - // }, - // "response": { - // "$ref": "BulkEditAssignedUserRolesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video-user-management" - // ] - // } - -} - -// method id "displayvideo.users.create": +} type UsersCreateCall struct { s *Service @@ -45163,12 +32307,11 @@ type UsersCreateCall struct { header_ http.Header } -// Create: Creates a new user. Returns the newly created user if -// successful. This method has unique authentication requirements. Read -// the prerequisites in our Managing Users guide -// (/display-video/api/guides/users/overview#prerequisites) before using -// this method. The "Try this method" feature does not work for this -// method. +// Create: Creates a new user. Returns the newly created user if successful. +// This method has unique authentication requirements. Read the prerequisites +// in our Managing Users guide +// (/display-video/api/guides/users/overview#prerequisites) before using this +// method. The "Try this method" feature does not work for this method. func (r *UsersService) Create(user *User) *UsersCreateCall { c := &UsersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.user = user @@ -45176,23 +32319,21 @@ func (r *UsersService) Create(user *User) *UsersCreateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersCreateCall) Fields(s ...googleapi.Field) *UsersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersCreateCall) Context(ctx context.Context) *UsersCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45201,18 +32342,12 @@ func (c *UsersCreateCall) Header() http.Header { } func (c *UsersCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.user) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/users") @@ -45222,16 +32357,14 @@ func (c *UsersCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.create" call. -// Exactly one of *User or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *User.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersCreateCall) Do(opts ...googleapi.CallOption) (*User, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45262,28 +32395,7 @@ func (c *UsersCreateCall) Do(opts ...googleapi.CallOption) (*User, error) { return nil, err } return ret, nil - // { - // "description": "Creates a new user. Returns the newly created user if successful. This method has unique authentication requirements. Read the prerequisites in our [Managing Users guide](/display-video/api/guides/users/overview#prerequisites) before using this method. The \"Try this method\" feature does not work for this method.", - // "flatPath": "v1/users", - // "httpMethod": "POST", - // "id": "displayvideo.users.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1/users", - // "request": { - // "$ref": "User" - // }, - // "response": { - // "$ref": "User" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video-user-management" - // ] - // } - -} - -// method id "displayvideo.users.delete": +} type UsersDeleteCall struct { s *Service @@ -45293,11 +32405,10 @@ type UsersDeleteCall struct { header_ http.Header } -// Delete: Deletes a user. This method has unique authentication -// requirements. Read the prerequisites in our Managing Users guide -// (/display-video/api/guides/users/overview#prerequisites) before using -// this method. The "Try this method" feature does not work for this -// method. +// Delete: Deletes a user. This method has unique authentication requirements. +// Read the prerequisites in our Managing Users guide +// (/display-video/api/guides/users/overview#prerequisites) before using this +// method. The "Try this method" feature does not work for this method. // // - userId: The ID of the user to delete. func (r *UsersService) Delete(userId int64) *UsersDeleteCall { @@ -45307,23 +32418,21 @@ func (r *UsersService) Delete(userId int64) *UsersDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersDeleteCall) Fields(s ...googleapi.Field) *UsersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersDeleteCall) Context(ctx context.Context) *UsersDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45332,12 +32441,7 @@ func (c *UsersDeleteCall) Header() http.Header { } func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -45351,16 +32455,14 @@ func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45391,36 +32493,7 @@ func (c *UsersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { return nil, err } return ret, nil - // { - // "description": "Deletes a user. This method has unique authentication requirements. Read the prerequisites in our [Managing Users guide](/display-video/api/guides/users/overview#prerequisites) before using this method. The \"Try this method\" feature does not work for this method.", - // "flatPath": "v1/users/{usersId}", - // "httpMethod": "DELETE", - // "id": "displayvideo.users.delete", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "userId": { - // "description": "Required. The ID of the user to delete.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/users/{+userId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video-user-management" - // ] - // } - -} - -// method id "displayvideo.users.get": +} type UsersGetCall struct { s *Service @@ -45431,11 +32504,10 @@ type UsersGetCall struct { header_ http.Header } -// Get: Gets a user. This method has unique authentication requirements. -// Read the prerequisites in our Managing Users guide -// (/display-video/api/guides/users/overview#prerequisites) before using -// this method. The "Try this method" feature does not work for this -// method. +// Get: Gets a user. This method has unique authentication requirements. Read +// the prerequisites in our Managing Users guide +// (/display-video/api/guides/users/overview#prerequisites) before using this +// method. The "Try this method" feature does not work for this method. // // - userId: The ID of the user to fetch. func (r *UsersService) Get(userId int64) *UsersGetCall { @@ -45445,33 +32517,29 @@ func (r *UsersService) Get(userId int64) *UsersGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UsersGetCall) IfNoneMatch(entityTag string) *UsersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersGetCall) Context(ctx context.Context) *UsersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45480,12 +32548,7 @@ func (c *UsersGetCall) Header() http.Header { } func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45502,16 +32565,14 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.get" call. -// Exactly one of *User or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *User.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45542,36 +32603,7 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { return nil, err } return ret, nil - // { - // "description": "Gets a user. This method has unique authentication requirements. Read the prerequisites in our [Managing Users guide](/display-video/api/guides/users/overview#prerequisites) before using this method. The \"Try this method\" feature does not work for this method.", - // "flatPath": "v1/users/{usersId}", - // "httpMethod": "GET", - // "id": "displayvideo.users.get", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "userId": { - // "description": "Required. The ID of the user to fetch.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/users/{+userId}", - // "response": { - // "$ref": "User" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video-user-management" - // ] - // } - -} - -// method id "displayvideo.users.list": +} type UsersListCall struct { s *Service @@ -45581,106 +32613,96 @@ type UsersListCall struct { header_ http.Header } -// List: Lists users that are accessible to the current user. If two -// users have user roles on the same partner or advertiser, they can -// access each other. This method has unique authentication -// requirements. Read the prerequisites in our Managing Users guide -// (/display-video/api/guides/users/overview#prerequisites) before using -// this method. The "Try this method" feature does not work for this -// method. +// List: Lists users that are accessible to the current user. If two users have +// user roles on the same partner or advertiser, they can access each other. +// This method has unique authentication requirements. Read the prerequisites +// in our Managing Users guide +// (/display-video/api/guides/users/overview#prerequisites) before using this +// method. The "Try this method" feature does not work for this method. func (r *UsersService) List() *UsersListCall { c := &UsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } // Filter sets the optional parameter "filter": Allows filtering by user -// fields. Supported syntax: * Filter expressions are made up of one or -// more restrictions. * Restrictions can be combined by the logical -// operator `AND`. * A restriction has the form of `{field} {operator} -// {value}`. * The `budget.budget_segments.date_range.end_date` field -// must use the `LESS THAN (<)` operator. * The `displayName and `email` -// field must use the `HAS (:)` operator. * All other fields must use -// the `EQUALS (=)` operator. Supported fields: * -// `assignedUserRole.advertiserId` * `assignedUserRole.entityType` * -// This is synthetic field of `AssignedUserRole` used for filtering. -// Identifies the type of entity to which the user role is assigned. -// Valid values are `Partner` and `Advertiser`. * -// `assignedUserRole.parentPartnerId` * This is a synthetic field of -// `AssignedUserRole` used for filtering. Identifies the parent partner -// of the entity to which the user role is assigned. * -// `assignedUserRole.partnerId` * `assignedUserRole.userRole` * -// `displayName` * `email` Examples: * The user with `displayName` -// containing "foo": `displayName:"foo" * The user with `email` -// containing "bar": `email:"bar" * All users with standard user roles: -// `assignedUserRole.userRole="STANDARD" * All users with user roles -// for partner 123: `assignedUserRole.partnerId="123" * All users with -// user roles for advertiser 123: `assignedUserRole.advertiserId="123" -// * All users with partner level user roles: `entityType="PARTNER" * -// All users with user roles for partner 123 and advertisers under -// partner 123: `parentPartnerId="123" The length of this field should -// be no more than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more -// information. +// fields. Supported syntax: * Filter expressions are made up of one or more +// restrictions. * Restrictions can be combined by the logical operator `AND`. +// * A restriction has the form of `{field} {operator} {value}`. * The +// `budget.budget_segments.date_range.end_date` field must use the `LESS THAN +// (<)` operator. * The `displayName and `email` field must use the `HAS (:)` +// operator. * All other fields must use the `EQUALS (=)` operator. Supported +// fields: * `assignedUserRole.advertiserId` * `assignedUserRole.entityType` * +// This is synthetic field of `AssignedUserRole` used for filtering. Identifies +// the type of entity to which the user role is assigned. Valid values are +// `Partner` and `Advertiser`. * `assignedUserRole.parentPartnerId` * This is a +// synthetic field of `AssignedUserRole` used for filtering. Identifies the +// parent partner of the entity to which the user role is assigned. * +// `assignedUserRole.partnerId` * `assignedUserRole.userRole` * `displayName` * +// `email` Examples: * The user with `displayName` containing "foo": +// `displayName:"foo" * The user with `email` containing "bar": `email:"bar" +// * All users with standard user roles: `assignedUserRole.userRole="STANDARD" +// * All users with user roles for partner 123: +// `assignedUserRole.partnerId="123" * All users with user roles for +// advertiser 123: `assignedUserRole.advertiserId="123" * All users with +// partner level user roles: `entityType="PARTNER" * All users with user roles +// for partner 123 and advertisers under partner 123: `parentPartnerId="123" +// The length of this field should be no more than 500 characters. Reference +// our filter `LIST` requests (/display-video/api/guides/how-tos/filters) guide +// for more information. func (c *UsersListCall) Filter(filter string) *UsersListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field by which to sort -// the list. Acceptable values are: * `displayName` (default) The -// default sorting order is ascending. To specify descending order for a -// field, a suffix "desc" should be added to the field name. For -// example, `displayName desc`. +// OrderBy sets the optional parameter "orderBy": Field by which to sort the +// list. Acceptable values are: * `displayName` (default) The default sorting +// order is ascending. To specify descending order for a field, a suffix "desc" +// should be added to the field name. For example, `displayName desc`. func (c *UsersListCall) OrderBy(orderBy string) *UsersListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Must be between `1` and `200`. If unspecified will default to `100`. +// PageSize sets the optional parameter "pageSize": Requested page size. Must +// be between `1` and `200`. If unspecified will default to `100`. func (c *UsersListCall) PageSize(pageSize int64) *UsersListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. Typically, -// this is the value of next_page_token returned from the previous call -// to `ListUsers` method. If not specified, the first page of results -// will be returned. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. Typically, this is the value of +// next_page_token returned from the previous call to `ListUsers` method. If +// not specified, the first page of results will be returned. func (c *UsersListCall) PageToken(pageToken string) *UsersListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersListCall) Fields(s ...googleapi.Field) *UsersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UsersListCall) IfNoneMatch(entityTag string) *UsersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersListCall) Context(ctx context.Context) *UsersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45689,12 +32711,7 @@ func (c *UsersListCall) Header() http.Header { } func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -45708,16 +32725,15 @@ func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.list" call. -// Exactly one of *ListUsersResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListUsersResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListUsersResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UsersListCall) Do(opts ...googleapi.CallOption) (*ListUsersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45748,44 +32764,6 @@ func (c *UsersListCall) Do(opts ...googleapi.CallOption) (*ListUsersResponse, er return nil, err } return ret, nil - // { - // "description": "Lists users that are accessible to the current user. If two users have user roles on the same partner or advertiser, they can access each other. This method has unique authentication requirements. Read the prerequisites in our [Managing Users guide](/display-video/api/guides/users/overview#prerequisites) before using this method. The \"Try this method\" feature does not work for this method.", - // "flatPath": "v1/users", - // "httpMethod": "GET", - // "id": "displayvideo.users.list", - // "parameterOrder": [], - // "parameters": { - // "filter": { - // "description": "Allows filtering by user fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the logical operator `AND`. * A restriction has the form of `{field} {operator} {value}`. * The `budget.budget_segments.date_range.end_date` field must use the `LESS THAN (\u003c)` operator. * The `displayName and `email` field must use the `HAS (:)` operator. * All other fields must use the `EQUALS (=)` operator. Supported fields: * `assignedUserRole.advertiserId` * `assignedUserRole.entityType` * This is synthetic field of `AssignedUserRole` used for filtering. Identifies the type of entity to which the user role is assigned. Valid values are `Partner` and `Advertiser`. * `assignedUserRole.parentPartnerId` * This is a synthetic field of `AssignedUserRole` used for filtering. Identifies the parent partner of the entity to which the user role is assigned. * `assignedUserRole.partnerId` * `assignedUserRole.userRole` * `displayName` * `email` Examples: * The user with `displayName` containing \"foo\": `displayName:\"foo\"` * The user with `email` containing \"bar\": `email:\"bar\"` * All users with standard user roles: `assignedUserRole.userRole=\"STANDARD\"` * All users with user roles for partner 123: `assignedUserRole.partnerId=\"123\"` * All users with user roles for advertiser 123: `assignedUserRole.advertiserId=\"123\"` * All users with partner level user roles: `entityType=\"PARTNER\"` * All users with user roles for partner 123 and advertisers under partner 123: `parentPartnerId=\"123\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field by which to sort the list. Acceptable values are: * `displayName` (default) The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. For example, `displayName desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Must be between `1` and `200`. If unspecified will default to `100`.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListUsers` method. If not specified, the first page of results will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/users", - // "response": { - // "$ref": "ListUsersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video-user-management" - // ] - // } - } // Pages invokes f for each page of results. @@ -45793,7 +32771,7 @@ func (c *UsersListCall) Do(opts ...googleapi.CallOption) (*ListUsersResponse, er // The provided context supersedes any context provided to the Context method. func (c *UsersListCall) Pages(ctx context.Context, f func(*ListUsersResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -45809,8 +32787,6 @@ func (c *UsersListCall) Pages(ctx context.Context, f func(*ListUsersResponse) er } } -// method id "displayvideo.users.patch": - type UsersPatchCall struct { s *Service userId int64 @@ -45820,15 +32796,13 @@ type UsersPatchCall struct { header_ http.Header } -// Patch: Updates an existing user. Returns the updated user if -// successful. This method has unique authentication requirements. Read -// the prerequisites in our Managing Users guide -// (/display-video/api/guides/users/overview#prerequisites) before using -// this method. The "Try this method" feature does not work for this -// method. +// Patch: Updates an existing user. Returns the updated user if successful. +// This method has unique authentication requirements. Read the prerequisites +// in our Managing Users guide +// (/display-video/api/guides/users/overview#prerequisites) before using this +// method. The "Try this method" feature does not work for this method. // -// - userId: Output only. The unique ID of the user. Assigned by the -// system. +// - userId: Output only. The unique ID of the user. Assigned by the system. func (r *UsersService) Patch(userId int64, user *User) *UsersPatchCall { c := &UsersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -45836,31 +32810,29 @@ func (r *UsersService) Patch(userId int64, user *User) *UsersPatchCall { return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// mask to control which fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The mask to +// control which fields to update. func (c *UsersPatchCall) UpdateMask(updateMask string) *UsersPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersPatchCall) Fields(s ...googleapi.Field) *UsersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersPatchCall) Context(ctx context.Context) *UsersPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -45869,18 +32841,12 @@ func (c *UsersPatchCall) Header() http.Header { } func (c *UsersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.user) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/users/{+userId}") @@ -45893,16 +32859,14 @@ func (c *UsersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.patch" call. -// Exactly one of *User or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *User.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersPatchCall) Do(opts ...googleapi.CallOption) (*User, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -45933,40 +32897,4 @@ func (c *UsersPatchCall) Do(opts ...googleapi.CallOption) (*User, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing user. Returns the updated user if successful. This method has unique authentication requirements. Read the prerequisites in our [Managing Users guide](/display-video/api/guides/users/overview#prerequisites) before using this method. The \"Try this method\" feature does not work for this method.", - // "flatPath": "v1/users/{usersId}", - // "httpMethod": "PATCH", - // "id": "displayvideo.users.patch", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "updateMask": { - // "description": "Required. The mask to control which fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "description": "Output only. The unique ID of the user. Assigned by the system.", - // "format": "int64", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/users/{+userId}", - // "request": { - // "$ref": "User" - // }, - // "response": { - // "$ref": "User" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video-user-management" - // ] - // } - } diff --git a/displayvideo/v1beta/displayvideo-gen.go b/displayvideo/v1beta/displayvideo-gen.go index ce10d4d995f..c1c8a98ee43 100644 --- a/displayvideo/v1beta/displayvideo-gen.go +++ b/displayvideo/v1beta/displayvideo-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/display-video/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // displayvideoService, err := displayvideo.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // displayvideoService, err := displayvideo.NewService(ctx, option.WithScopes(displayvideo.DoubleclickbidmanagerScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // displayvideoService, err := displayvideo.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // displayvideoService, err := displayvideo.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package displayvideo // import "google.golang.org/api/displayvideo/v1beta" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,17 +89,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "displayvideo:v1beta" const apiName = "displayvideo" const apiVersion = "v1beta" const basePath = "https://displayvideo.googleapis.com/" +const basePathTemplate = "https://displayvideo.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://displayvideo.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // Create, see, edit, and permanently delete your Display & Video 360 - // entities and reports + // Create, see, edit, and permanently delete your Display & Video 360 entities + // and reports DisplayVideoScope = "https://www.googleapis.com/auth/display-video" // View and manage your reports in DoubleClick Bid Manager @@ -93,14 +110,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/display-video", "https://www.googleapis.com/auth/doubleclickbidmanager", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -206,141 +225,107 @@ type GoogleBytestreamMedia struct { // ResourceName: Name of the media resource. ResourceName string `json:"resourceName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { +func (s GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { type NoMethod GoogleBytestreamMedia - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the [API Design -// Guide](https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "displayvideo.media.download": - type MediaDownloadCall struct { s *Service resourceName string @@ -351,8 +336,11 @@ type MediaDownloadCall struct { } // Download: Downloads media. Download is supported on the URI -// `/download/{resource_name=**}?alt=media.` **Note**: Download requests -// will not be successful without including `alt=media` query string. +// `/download/{resource_name=**}?alt=media.` **Note**: Download requests will +// not be successful without including `alt=media` query string. +// +// - resourceName: Name of the media that is being downloaded. See +// ReadRequest.resource_name. func (r *MediaService) Download(resourceName string) *MediaDownloadCall { c := &MediaDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resourceName = resourceName @@ -360,33 +348,29 @@ func (r *MediaService) Download(resourceName string) *MediaDownloadCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MediaDownloadCall) Fields(s ...googleapi.Field) *MediaDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MediaDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -395,12 +379,7 @@ func (c *MediaDownloadCall) Header() http.Header { } func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -417,7 +396,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -429,20 +408,19 @@ func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Respon if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "displayvideo.media.download" call. -// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -450,17 +428,17 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamM if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleBytestreamMedia{ ServerResponse: googleapi.ServerResponse{ @@ -473,37 +451,7 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamM return nil, err } return ret, nil - // { - // "description": "Downloads media. Download is supported on the URI `/download/{resource_name=**}?alt=media.` **Note**: Download requests will not be successful without including `alt=media` query string.", - // "flatPath": "download/{downloadId}", - // "httpMethod": "GET", - // "id": "displayvideo.media.download", - // "parameterOrder": [ - // "resourceName" - // ], - // "parameters": { - // "resourceName": { - // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "download/{+resourceName}", - // "response": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "displayvideo.sdfdownloadtask.operations.get": +} type SdfdownloadtaskOperationsGetCall struct { s *Service @@ -514,9 +462,10 @@ type SdfdownloadtaskOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of an asynchronous SDF download task -// operation. Clients should poll this method at intervals of 30 -// seconds. +// Get: Gets the latest state of an asynchronous SDF download task operation. +// Clients should poll this method at intervals of 30 seconds. +// +// - name: The name of the operation resource. func (r *SdfdownloadtaskOperationsService) Get(name string) *SdfdownloadtaskOperationsGetCall { c := &SdfdownloadtaskOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -524,33 +473,29 @@ func (r *SdfdownloadtaskOperationsService) Get(name string) *SdfdownloadtaskOper } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SdfdownloadtaskOperationsGetCall) Fields(s ...googleapi.Field) *SdfdownloadtaskOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SdfdownloadtaskOperationsGetCall) IfNoneMatch(entityTag string) *SdfdownloadtaskOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SdfdownloadtaskOperationsGetCall) Context(ctx context.Context) *SdfdownloadtaskOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SdfdownloadtaskOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -559,12 +504,7 @@ func (c *SdfdownloadtaskOperationsGetCall) Header() http.Header { } func (c *SdfdownloadtaskOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -581,16 +521,14 @@ func (c *SdfdownloadtaskOperationsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtask.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SdfdownloadtaskOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -598,17 +536,17 @@ func (c *SdfdownloadtaskOperationsGetCall) Do(opts ...googleapi.CallOption) (*Op if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -621,36 +559,7 @@ func (c *SdfdownloadtaskOperationsGetCall) Do(opts ...googleapi.CallOption) (*Op return nil, err } return ret, nil - // { - // "description": "Gets the latest state of an asynchronous SDF download task operation. Clients should poll this method at intervals of 30 seconds.", - // "flatPath": "v1beta/sdfdownloadtask/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "displayvideo.sdfdownloadtask.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^sdfdownloadtask/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - -} - -// method id "displayvideo.sdfdownloadtasks.operations.get": +} type SdfdownloadtasksOperationsGetCall struct { s *Service @@ -661,9 +570,10 @@ type SdfdownloadtasksOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of an asynchronous SDF download task -// operation. Clients should poll this method at intervals of 30 -// seconds. +// Get: Gets the latest state of an asynchronous SDF download task operation. +// Clients should poll this method at intervals of 30 seconds. +// +// - name: The name of the operation resource. func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOperationsGetCall { c := &SdfdownloadtasksOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -671,33 +581,29 @@ func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SdfdownloadtasksOperationsGetCall) Fields(s ...googleapi.Field) *SdfdownloadtasksOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SdfdownloadtasksOperationsGetCall) IfNoneMatch(entityTag string) *SdfdownloadtasksOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SdfdownloadtasksOperationsGetCall) Context(ctx context.Context) *SdfdownloadtasksOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -706,12 +612,7 @@ func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { } func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -728,16 +629,14 @@ func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtasks.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -745,17 +644,17 @@ func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*O if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -768,31 +667,4 @@ func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*O return nil, err } return ret, nil - // { - // "description": "Gets the latest state of an asynchronous SDF download task operation. Clients should poll this method at intervals of 30 seconds.", - // "flatPath": "v1beta/sdfdownloadtasks/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "displayvideo.sdfdownloadtasks.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^sdfdownloadtasks/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - } diff --git a/displayvideo/v1beta2/displayvideo-gen.go b/displayvideo/v1beta2/displayvideo-gen.go index d0fa2359917..c89abfe804f 100644 --- a/displayvideo/v1beta2/displayvideo-gen.go +++ b/displayvideo/v1beta2/displayvideo-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/display-video/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // displayvideoService, err := displayvideo.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // displayvideoService, err := displayvideo.NewService(ctx, option.WithScopes(displayvideo.DoubleclickbidmanagerScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // displayvideoService, err := displayvideo.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // displayvideoService, err := displayvideo.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package displayvideo // import "google.golang.org/api/displayvideo/v1beta2" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,17 +89,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "displayvideo:v1beta2" const apiName = "displayvideo" const apiVersion = "v1beta2" const basePath = "https://displayvideo.googleapis.com/" +const basePathTemplate = "https://displayvideo.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://displayvideo.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // Create, see, edit, and permanently delete your Display & Video 360 - // entities and reports + // Create, see, edit, and permanently delete your Display & Video 360 entities + // and reports DisplayVideoScope = "https://www.googleapis.com/auth/display-video" // View and manage your reports in DoubleClick Bid Manager @@ -93,14 +110,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/display-video", "https://www.googleapis.com/auth/doubleclickbidmanager", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -182,141 +201,107 @@ type GoogleBytestreamMedia struct { // ResourceName: Name of the media resource. ResourceName string `json:"resourceName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { +func (s GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { type NoMethod GoogleBytestreamMedia - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the [API Design -// Guide](https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "displayvideo.media.download": - type MediaDownloadCall struct { s *Service resourceName string @@ -327,8 +312,11 @@ type MediaDownloadCall struct { } // Download: Downloads media. Download is supported on the URI -// `/download/{resource_name=**}?alt=media.` **Note**: Download requests -// will not be successful without including `alt=media` query string. +// `/download/{resource_name=**}?alt=media.` **Note**: Download requests will +// not be successful without including `alt=media` query string. +// +// - resourceName: Name of the media that is being downloaded. See +// ReadRequest.resource_name. func (r *MediaService) Download(resourceName string) *MediaDownloadCall { c := &MediaDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resourceName = resourceName @@ -336,33 +324,29 @@ func (r *MediaService) Download(resourceName string) *MediaDownloadCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MediaDownloadCall) Fields(s ...googleapi.Field) *MediaDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MediaDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -371,12 +355,7 @@ func (c *MediaDownloadCall) Header() http.Header { } func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -393,7 +372,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -405,20 +384,19 @@ func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Respon if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "displayvideo.media.download" call. -// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -426,17 +404,17 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamM if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleBytestreamMedia{ ServerResponse: googleapi.ServerResponse{ @@ -449,37 +427,7 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamM return nil, err } return ret, nil - // { - // "description": "Downloads media. Download is supported on the URI `/download/{resource_name=**}?alt=media.` **Note**: Download requests will not be successful without including `alt=media` query string.", - // "flatPath": "download/{downloadId}", - // "httpMethod": "GET", - // "id": "displayvideo.media.download", - // "parameterOrder": [ - // "resourceName" - // ], - // "parameters": { - // "resourceName": { - // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "download/{+resourceName}", - // "response": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "displayvideo.sdfdownloadtasks.operations.get": +} type SdfdownloadtasksOperationsGetCall struct { s *Service @@ -490,9 +438,10 @@ type SdfdownloadtasksOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of an asynchronous SDF download task -// operation. Clients should poll this method at intervals of 30 -// seconds. +// Get: Gets the latest state of an asynchronous SDF download task operation. +// Clients should poll this method at intervals of 30 seconds. +// +// - name: The name of the operation resource. func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOperationsGetCall { c := &SdfdownloadtasksOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -500,33 +449,29 @@ func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SdfdownloadtasksOperationsGetCall) Fields(s ...googleapi.Field) *SdfdownloadtasksOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SdfdownloadtasksOperationsGetCall) IfNoneMatch(entityTag string) *SdfdownloadtasksOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SdfdownloadtasksOperationsGetCall) Context(ctx context.Context) *SdfdownloadtasksOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -535,12 +480,7 @@ func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { } func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -557,16 +497,14 @@ func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtasks.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -574,17 +512,17 @@ func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*O if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -597,31 +535,4 @@ func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*O return nil, err } return ret, nil - // { - // "description": "Gets the latest state of an asynchronous SDF download task operation. Clients should poll this method at intervals of 30 seconds.", - // "flatPath": "v1beta2/sdfdownloadtasks/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "displayvideo.sdfdownloadtasks.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^sdfdownloadtasks/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - } diff --git a/displayvideo/v1dev/displayvideo-gen.go b/displayvideo/v1dev/displayvideo-gen.go index 270a2eb4c36..6c5be772bd7 100644 --- a/displayvideo/v1dev/displayvideo-gen.go +++ b/displayvideo/v1dev/displayvideo-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/display-video/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // displayvideoService, err := displayvideo.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // displayvideoService, err := displayvideo.NewService(ctx, option.WithScopes(displayvideo.DoubleclickbidmanagerScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // displayvideoService, err := displayvideo.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // displayvideoService, err := displayvideo.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package displayvideo // import "google.golang.org/api/displayvideo/v1dev" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,17 +89,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "displayvideo:v1dev" const apiName = "displayvideo" const apiVersion = "v1dev" const basePath = "https://displayvideo.googleapis.com/" +const basePathTemplate = "https://displayvideo.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://displayvideo.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // Create, see, edit, and permanently delete your Display & Video 360 - // entities and reports + // Create, see, edit, and permanently delete your Display & Video 360 entities + // and reports DisplayVideoScope = "https://www.googleapis.com/auth/display-video" // View and manage your reports in DoubleClick Bid Manager @@ -93,14 +110,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/display-video", "https://www.googleapis.com/auth/doubleclickbidmanager", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -182,141 +201,107 @@ type GoogleBytestreamMedia struct { // ResourceName: Name of the media resource. ResourceName string `json:"resourceName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { +func (s GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { type NoMethod GoogleBytestreamMedia - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the [API Design -// Guide](https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "displayvideo.media.download": - type MediaDownloadCall struct { s *Service resourceName string @@ -327,8 +312,11 @@ type MediaDownloadCall struct { } // Download: Downloads media. Download is supported on the URI -// `/download/{resource_name=**}?alt=media.` **Note**: Download requests -// will not be successful without including `alt=media` query string. +// `/download/{resource_name=**}?alt=media.` **Note**: Download requests will +// not be successful without including `alt=media` query string. +// +// - resourceName: Name of the media that is being downloaded. See +// ReadRequest.resource_name. func (r *MediaService) Download(resourceName string) *MediaDownloadCall { c := &MediaDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resourceName = resourceName @@ -336,33 +324,29 @@ func (r *MediaService) Download(resourceName string) *MediaDownloadCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MediaDownloadCall) Fields(s ...googleapi.Field) *MediaDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MediaDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -371,12 +355,7 @@ func (c *MediaDownloadCall) Header() http.Header { } func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -393,7 +372,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -405,20 +384,19 @@ func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Respon if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "displayvideo.media.download" call. -// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -426,17 +404,17 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamM if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleBytestreamMedia{ ServerResponse: googleapi.ServerResponse{ @@ -449,37 +427,7 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamM return nil, err } return ret, nil - // { - // "description": "Downloads media. Download is supported on the URI `/download/{resource_name=**}?alt=media.` **Note**: Download requests will not be successful without including `alt=media` query string.", - // "flatPath": "download/{downloadId}", - // "httpMethod": "GET", - // "id": "displayvideo.media.download", - // "parameterOrder": [ - // "resourceName" - // ], - // "parameters": { - // "resourceName": { - // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "download/{+resourceName}", - // "response": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "displayvideo.sdfdownloadtasks.operations.get": +} type SdfdownloadtasksOperationsGetCall struct { s *Service @@ -490,9 +438,10 @@ type SdfdownloadtasksOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of an asynchronous SDF download task -// operation. Clients should poll this method at intervals of 30 -// seconds. +// Get: Gets the latest state of an asynchronous SDF download task operation. +// Clients should poll this method at intervals of 30 seconds. +// +// - name: The name of the operation resource. func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOperationsGetCall { c := &SdfdownloadtasksOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -500,33 +449,29 @@ func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SdfdownloadtasksOperationsGetCall) Fields(s ...googleapi.Field) *SdfdownloadtasksOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SdfdownloadtasksOperationsGetCall) IfNoneMatch(entityTag string) *SdfdownloadtasksOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SdfdownloadtasksOperationsGetCall) Context(ctx context.Context) *SdfdownloadtasksOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -535,12 +480,7 @@ func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { } func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201104") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -557,16 +497,14 @@ func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtasks.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -574,17 +512,17 @@ func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*O if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -597,31 +535,4 @@ func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*O return nil, err } return ret, nil - // { - // "description": "Gets the latest state of an asynchronous SDF download task operation. Clients should poll this method at intervals of 30 seconds.", - // "flatPath": "v1dev/sdfdownloadtasks/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "displayvideo.sdfdownloadtasks.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^sdfdownloadtasks/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1dev/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - } diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index ad9c2789962..92b03e8d67a 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -15370,7 +15370,7 @@ func (c *AdvertisersAuditCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.audit" call. @@ -15469,7 +15469,7 @@ func (c *AdvertisersCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.create" call. @@ -15566,7 +15566,7 @@ func (c *AdvertisersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.delete" call. @@ -15672,7 +15672,7 @@ func (c *AdvertisersEditAssignedTargetingOptionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.editAssignedTargetingOptions" call. @@ -15780,7 +15780,7 @@ func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.get" call. @@ -15937,7 +15937,7 @@ func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.list" call. @@ -16110,7 +16110,7 @@ func (c *AdvertisersListAssignedTargetingOptionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.listAssignedTargetingOptions" call. @@ -16242,7 +16242,7 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.patch" call. @@ -16399,7 +16399,7 @@ func (c *AdvertisersAssetsUploadCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.assets.upload" call. @@ -16520,7 +16520,7 @@ func (c *AdvertisersCampaignsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.create" call. @@ -16624,7 +16624,7 @@ func (c *AdvertisersCampaignsDeleteCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.delete" call. @@ -16735,7 +16735,7 @@ func (c *AdvertisersCampaignsGetCall) doRequest(alt string) (*http.Response, err "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.get" call. @@ -16893,7 +16893,7 @@ func (c *AdvertisersCampaignsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.list" call. @@ -17074,7 +17074,7 @@ func (c *AdvertisersCampaignsListAssignedTargetingOptionsCall) doRequest(alt str "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.listAssignedTargetingOptions" call. @@ -17211,7 +17211,7 @@ func (c *AdvertisersCampaignsPatchCall) doRequest(alt string) (*http.Response, e "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.patch" call. @@ -17346,7 +17346,7 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) doRe "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.get" call. @@ -17522,7 +17522,7 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) doR "campaignId": strconv.FormatInt(c.campaignId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.list" call. @@ -17653,7 +17653,7 @@ func (c *AdvertisersChannelsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.create" call. @@ -17771,7 +17771,7 @@ func (c *AdvertisersChannelsGetCall) doRequest(alt string) (*http.Response, erro "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.get" call. @@ -17925,7 +17925,7 @@ func (c *AdvertisersChannelsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.list" call. @@ -18067,7 +18067,7 @@ func (c *AdvertisersChannelsPatchCall) doRequest(alt string) (*http.Response, er "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.patch" call. @@ -18174,7 +18174,7 @@ func (c *AdvertisersChannelsSitesBulkEditCall) doRequest(alt string) (*http.Resp "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.bulkEdit" call. @@ -18287,7 +18287,7 @@ func (c *AdvertisersChannelsSitesCreateCall) doRequest(alt string) (*http.Respon "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.create" call. @@ -18397,7 +18397,7 @@ func (c *AdvertisersChannelsSitesDeleteCall) doRequest(alt string) (*http.Respon "channelId": strconv.FormatInt(c.channelId, 10), "urlOrAppId": c.urlOrAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.delete" call. @@ -18555,7 +18555,7 @@ func (c *AdvertisersChannelsSitesListCall) doRequest(alt string) (*http.Response "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.list" call. @@ -18687,7 +18687,7 @@ func (c *AdvertisersChannelsSitesReplaceCall) doRequest(alt string) (*http.Respo "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.replace" call. @@ -18793,7 +18793,7 @@ func (c *AdvertisersCreativesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.create" call. @@ -18897,7 +18897,7 @@ func (c *AdvertisersCreativesDeleteCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "creativeId": strconv.FormatInt(c.creativeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.delete" call. @@ -19008,7 +19008,7 @@ func (c *AdvertisersCreativesGetCall) doRequest(alt string) (*http.Response, err "advertiserId": strconv.FormatInt(c.advertiserId, 10), "creativeId": strconv.FormatInt(c.creativeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.get" call. @@ -19185,7 +19185,7 @@ func (c *AdvertisersCreativesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.list" call. @@ -19324,7 +19324,7 @@ func (c *AdvertisersCreativesPatchCall) doRequest(alt string) (*http.Response, e "advertiserId": strconv.FormatInt(c.advertiserId, 10), "creativeId": strconv.FormatInt(c.creativeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.patch" call. @@ -19427,7 +19427,7 @@ func (c *AdvertisersInsertionOrdersCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.create" call. @@ -19529,7 +19529,7 @@ func (c *AdvertisersInsertionOrdersDeleteCall) doRequest(alt string) (*http.Resp "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.delete" call. @@ -19641,7 +19641,7 @@ func (c *AdvertisersInsertionOrdersGetCall) doRequest(alt string) (*http.Respons "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.get" call. @@ -19801,7 +19801,7 @@ func (c *AdvertisersInsertionOrdersListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.list" call. @@ -19984,7 +19984,7 @@ func (c *AdvertisersInsertionOrdersListAssignedTargetingOptionsCall) doRequest(a "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.listAssignedTargetingOptions" call. @@ -20123,7 +20123,7 @@ func (c *AdvertisersInsertionOrdersPatchCall) doRequest(alt string) (*http.Respo "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.patch" call. @@ -20253,7 +20253,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsCreateC "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.create" call. @@ -20382,7 +20382,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsDeleteC "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.delete" call. @@ -20530,7 +20530,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.get" call. @@ -20719,7 +20719,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCal "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.list" call. @@ -20889,7 +20889,7 @@ func (c *AdvertisersInvoicesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.invoices.list" call. @@ -21027,7 +21027,7 @@ func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.invoices.lookupInvoiceCurrency" call. @@ -21137,7 +21137,7 @@ func (c *AdvertisersLineItemsBulkEditAssignedTargetingOptionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.bulkEditAssignedTargetingOptions" call. @@ -21306,7 +21306,7 @@ func (c *AdvertisersLineItemsBulkListAssignedTargetingOptionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.bulkListAssignedTargetingOptions" call. @@ -21433,7 +21433,7 @@ func (c *AdvertisersLineItemsBulkUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.bulkUpdate" call. @@ -21538,7 +21538,7 @@ func (c *AdvertisersLineItemsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.create" call. @@ -21640,7 +21640,7 @@ func (c *AdvertisersLineItemsDeleteCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.delete" call. @@ -21750,7 +21750,7 @@ func (c *AdvertisersLineItemsDuplicateCall) doRequest(alt string) (*http.Respons "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.duplicate" call. @@ -21858,7 +21858,7 @@ func (c *AdvertisersLineItemsGenerateDefaultCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.generateDefault" call. @@ -21969,7 +21969,7 @@ func (c *AdvertisersLineItemsGetCall) doRequest(alt string) (*http.Response, err "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.get" call. @@ -22131,7 +22131,7 @@ func (c *AdvertisersLineItemsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.list" call. @@ -22276,7 +22276,7 @@ func (c *AdvertisersLineItemsPatchCall) doRequest(alt string) (*http.Response, e "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.patch" call. @@ -22417,7 +22417,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) d "lineItemId": strconv.FormatInt(c.lineItemId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.create" call. @@ -22558,7 +22558,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) d "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.delete" call. @@ -22710,7 +22710,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) doRe "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.get" call. @@ -22903,7 +22903,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) doR "lineItemId": strconv.FormatInt(c.lineItemId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.list" call. @@ -23028,7 +23028,7 @@ func (c *AdvertisersLocationListsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.create" call. @@ -23140,7 +23140,7 @@ func (c *AdvertisersLocationListsGetCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.get" call. @@ -23291,7 +23291,7 @@ func (c *AdvertisersLocationListsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.list" call. @@ -23428,7 +23428,7 @@ func (c *AdvertisersLocationListsPatchCall) doRequest(alt string) (*http.Respons "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.patch" call. @@ -23538,7 +23538,7 @@ func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) doRequest(alt st "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.bulkEdit" call. @@ -23646,7 +23646,7 @@ func (c *AdvertisersLocationListsAssignedLocationsCreateCall) doRequest(alt stri "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.create" call. @@ -23752,7 +23752,7 @@ func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) doRequest(alt stri "locationListId": strconv.FormatInt(c.locationListId, 10), "assignedLocationId": strconv.FormatInt(c.assignedLocationId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.delete" call. @@ -23905,7 +23905,7 @@ func (c *AdvertisersLocationListsAssignedLocationsListCall) doRequest(alt string "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.list" call. @@ -24038,7 +24038,7 @@ func (c *AdvertisersManualTriggersActivateCall) doRequest(alt string) (*http.Res "advertiserId": strconv.FormatInt(c.advertiserId, 10), "triggerId": strconv.FormatInt(c.triggerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.activate" call. @@ -24145,7 +24145,7 @@ func (c *AdvertisersManualTriggersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.create" call. @@ -24254,7 +24254,7 @@ func (c *AdvertisersManualTriggersDeactivateCall) doRequest(alt string) (*http.R "advertiserId": strconv.FormatInt(c.advertiserId, 10), "triggerId": strconv.FormatInt(c.triggerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.deactivate" call. @@ -24369,7 +24369,7 @@ func (c *AdvertisersManualTriggersGetCall) doRequest(alt string) (*http.Response "advertiserId": strconv.FormatInt(c.advertiserId, 10), "triggerId": strconv.FormatInt(c.triggerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.get" call. @@ -24524,7 +24524,7 @@ func (c *AdvertisersManualTriggersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.list" call. @@ -24664,7 +24664,7 @@ func (c *AdvertisersManualTriggersPatchCall) doRequest(alt string) (*http.Respon "advertiserId": strconv.FormatInt(c.advertiserId, 10), "triggerId": strconv.FormatInt(c.triggerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.manualTriggers.patch" call. @@ -24767,7 +24767,7 @@ func (c *AdvertisersNegativeKeywordListsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.create" call. @@ -24869,7 +24869,7 @@ func (c *AdvertisersNegativeKeywordListsDeleteCall) doRequest(alt string) (*http "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.delete" call. @@ -24982,7 +24982,7 @@ func (c *AdvertisersNegativeKeywordListsGetCall) doRequest(alt string) (*http.Re "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.get" call. @@ -25109,7 +25109,7 @@ func (c *AdvertisersNegativeKeywordListsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.list" call. @@ -25246,7 +25246,7 @@ func (c *AdvertisersNegativeKeywordListsPatchCall) doRequest(alt string) (*http. "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.patch" call. @@ -25360,7 +25360,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) doRequest( "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.bulkEdit" call. @@ -25468,7 +25468,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) doRequest(al "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.create" call. @@ -25574,7 +25574,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) doRequest(al "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), "keywordValue": c.keywordValue, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.delete" call. @@ -25727,7 +25727,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) doRequest(alt "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.list" call. @@ -25858,7 +25858,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall) doRequest(a "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.replace" call. @@ -25968,7 +25968,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) doRequest( "advertiserId": strconv.FormatInt(c.advertiserId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.create" call. @@ -26076,7 +26076,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest( "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.delete" call. @@ -26198,7 +26198,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.get" call. @@ -26357,7 +26357,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) doRequest(al "advertiserId": strconv.FormatInt(c.advertiserId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.list" call. @@ -26490,7 +26490,7 @@ func (c *AdvertisersYoutubeAdGroupAdsGetCall) doRequest(alt string) (*http.Respo "advertiserId": strconv.FormatInt(c.advertiserId, 10), "youtubeAdGroupAdId": strconv.FormatInt(c.youtubeAdGroupAdId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.youtubeAdGroupAds.get" call. @@ -26644,7 +26644,7 @@ func (c *AdvertisersYoutubeAdGroupAdsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.youtubeAdGroupAds.list" call. @@ -26831,7 +26831,7 @@ func (c *AdvertisersYoutubeAdGroupsBulkListAdGroupAssignedTargetingOptionsCall) googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.youtubeAdGroups.bulkListAdGroupAssignedTargetingOptions" call. @@ -26964,7 +26964,7 @@ func (c *AdvertisersYoutubeAdGroupsGetCall) doRequest(alt string) (*http.Respons "advertiserId": strconv.FormatInt(c.advertiserId, 10), "youtubeAdGroupId": strconv.FormatInt(c.youtubeAdGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.youtubeAdGroups.get" call. @@ -27118,7 +27118,7 @@ func (c *AdvertisersYoutubeAdGroupsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.youtubeAdGroups.list" call. @@ -27270,7 +27270,7 @@ func (c *AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsGetCall "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.youtubeAdGroups.targetingTypes.assignedTargetingOptions.get" call. @@ -27438,7 +27438,7 @@ func (c *AdvertisersYoutubeAdGroupsTargetingTypesAssignedTargetingOptionsListCal "youtubeAdGroupId": strconv.FormatInt(c.youtubeAdGroupId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.youtubeAdGroups.targetingTypes.assignedTargetingOptions.list" call. @@ -27581,7 +27581,7 @@ func (c *CombinedAudiencesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "combinedAudienceId": strconv.FormatInt(c.combinedAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.combinedAudiences.get" call. @@ -27738,7 +27738,7 @@ func (c *CombinedAudiencesListCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.combinedAudiences.list" call. @@ -27855,7 +27855,7 @@ func (c *CustomBiddingAlgorithmsCreateCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.create" call. @@ -27977,7 +27977,7 @@ func (c *CustomBiddingAlgorithmsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.get" call. @@ -28139,7 +28139,7 @@ func (c *CustomBiddingAlgorithmsListCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.list" call. @@ -28271,7 +28271,7 @@ func (c *CustomBiddingAlgorithmsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.patch" call. @@ -28398,7 +28398,7 @@ func (c *CustomBiddingAlgorithmsUploadScriptCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.uploadScript" call. @@ -28517,7 +28517,7 @@ func (c *CustomBiddingAlgorithmsScriptsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.scripts.create" call. @@ -28645,7 +28645,7 @@ func (c *CustomBiddingAlgorithmsScriptsGetCall) doRequest(alt string) (*http.Res "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), "customBiddingScriptId": strconv.FormatInt(c.customBiddingScriptId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.scripts.get" call. @@ -28797,7 +28797,7 @@ func (c *CustomBiddingAlgorithmsScriptsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.scripts.list" call. @@ -28933,7 +28933,7 @@ func (c *CustomListsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customListId": strconv.FormatInt(c.customListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customLists.get" call. @@ -29080,7 +29080,7 @@ func (c *CustomListsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customLists.list" call. @@ -29205,7 +29205,7 @@ func (c *FirstAndThirdPartyAudiencesCreateCall) doRequest(alt string) (*http.Res return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.create" call. @@ -29310,7 +29310,7 @@ func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers" call. @@ -29433,7 +29433,7 @@ func (c *FirstAndThirdPartyAudiencesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.get" call. @@ -29591,7 +29591,7 @@ func (c *FirstAndThirdPartyAudiencesListCall) doRequest(alt string) (*http.Respo return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.list" call. @@ -29732,7 +29732,7 @@ func (c *FirstAndThirdPartyAudiencesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.patch" call. @@ -29847,7 +29847,7 @@ func (c *FloodlightGroupsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "floodlightGroupId": strconv.FormatInt(c.floodlightGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.floodlightGroups.get" call. @@ -29965,7 +29965,7 @@ func (c *FloodlightGroupsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "floodlightGroupId": strconv.FormatInt(c.floodlightGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.floodlightGroups.patch" call. @@ -30085,7 +30085,7 @@ func (c *FloodlightGroupsFloodlightActivitiesGetCall) doRequest(alt string) (*ht "floodlightGroupId": strconv.FormatInt(c.floodlightGroupId, 10), "floodlightActivityId": strconv.FormatInt(c.floodlightActivityId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.floodlightGroups.floodlightActivities.get" call. @@ -30229,7 +30229,7 @@ func (c *FloodlightGroupsFloodlightActivitiesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "floodlightGroupId": strconv.FormatInt(c.floodlightGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.floodlightGroups.floodlightActivities.list" call. @@ -30372,7 +30372,7 @@ func (c *GoogleAudiencesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "googleAudienceId": strconv.FormatInt(c.googleAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.googleAudiences.get" call. @@ -30528,7 +30528,7 @@ func (c *GoogleAudiencesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.googleAudiences.list" call. @@ -30659,7 +30659,7 @@ func (c *GuaranteedOrdersCreateCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.create" call. @@ -30763,7 +30763,7 @@ func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "guaranteedOrderId": c.guaranteedOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors" call. @@ -30886,7 +30886,7 @@ func (c *GuaranteedOrdersGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "guaranteedOrderId": c.guaranteedOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.get" call. @@ -31047,7 +31047,7 @@ func (c *GuaranteedOrdersListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.list" call. @@ -31194,7 +31194,7 @@ func (c *GuaranteedOrdersPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "guaranteedOrderId": c.guaranteedOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.patch" call. @@ -31307,7 +31307,7 @@ func (c *InventorySourceGroupsCreateCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.create" call. @@ -31419,7 +31419,7 @@ func (c *InventorySourceGroupsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.delete" call. @@ -31543,7 +31543,7 @@ func (c *InventorySourceGroupsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.get" call. @@ -31701,7 +31701,7 @@ func (c *InventorySourceGroupsListCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.list" call. @@ -31849,7 +31849,7 @@ func (c *InventorySourceGroupsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.patch" call. @@ -31957,7 +31957,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.bulkEdit" call. @@ -32077,7 +32077,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.create" call. @@ -32196,7 +32196,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) doRequest(alt "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), "assignedInventorySourceId": strconv.FormatInt(c.assignedInventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.delete" call. @@ -32362,7 +32362,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.list" call. @@ -32493,7 +32493,7 @@ func (c *InventorySourcesCreateCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.create" call. @@ -32597,7 +32597,7 @@ func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.editInventorySourceReadWriteAccessors" call. @@ -32712,7 +32712,7 @@ func (c *InventorySourcesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.get" call. @@ -32874,7 +32874,7 @@ func (c *InventorySourcesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.list" call. @@ -33020,7 +33020,7 @@ func (c *InventorySourcesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.patch" call. @@ -33131,7 +33131,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -33303,7 +33303,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.media.upload" call. @@ -33426,7 +33426,7 @@ func (c *PartnersEditAssignedTargetingOptionsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.editAssignedTargetingOptions" call. @@ -33534,7 +33534,7 @@ func (c *PartnersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.get" call. @@ -33675,7 +33675,7 @@ func (c *PartnersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.list" call. @@ -33806,7 +33806,7 @@ func (c *PartnersChannelsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.create" call. @@ -33924,7 +33924,7 @@ func (c *PartnersChannelsGetCall) doRequest(alt string) (*http.Response, error) "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.get" call. @@ -34078,7 +34078,7 @@ func (c *PartnersChannelsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.list" call. @@ -34220,7 +34220,7 @@ func (c *PartnersChannelsPatchCall) doRequest(alt string) (*http.Response, error "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.patch" call. @@ -34327,7 +34327,7 @@ func (c *PartnersChannelsSitesBulkEditCall) doRequest(alt string) (*http.Respons "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.bulkEdit" call. @@ -34440,7 +34440,7 @@ func (c *PartnersChannelsSitesCreateCall) doRequest(alt string) (*http.Response, "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.create" call. @@ -34550,7 +34550,7 @@ func (c *PartnersChannelsSitesDeleteCall) doRequest(alt string) (*http.Response, "channelId": strconv.FormatInt(c.channelId, 10), "urlOrAppId": c.urlOrAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.delete" call. @@ -34708,7 +34708,7 @@ func (c *PartnersChannelsSitesListCall) doRequest(alt string) (*http.Response, e "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.list" call. @@ -34840,7 +34840,7 @@ func (c *PartnersChannelsSitesReplaceCall) doRequest(alt string) (*http.Response "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.replace" call. @@ -34948,7 +34948,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) doRequest(alt "partnerId": strconv.FormatInt(c.partnerId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.create" call. @@ -35054,7 +35054,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest(alt "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.delete" call. @@ -35172,7 +35172,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt st "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.get" call. @@ -35328,7 +35328,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt s "partnerId": strconv.FormatInt(c.partnerId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.list" call. @@ -35451,7 +35451,7 @@ func (c *SdfdownloadtasksCreateCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtasks.create" call. @@ -35559,7 +35559,7 @@ func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtasks.operations.get" call. @@ -35692,7 +35692,7 @@ func (c *TargetingTypesTargetingOptionsGetCall) doRequest(alt string) (*http.Res "targetingType": c.targetingType, "targetingOptionId": c.targetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.targetingTypes.targetingOptions.get" call. @@ -35870,7 +35870,7 @@ func (c *TargetingTypesTargetingOptionsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.targetingTypes.targetingOptions.list" call. @@ -35996,7 +35996,7 @@ func (c *TargetingTypesTargetingOptionsSearchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.targetingTypes.targetingOptions.search" call. @@ -36127,7 +36127,7 @@ func (c *UsersBulkEditAssignedUserRolesCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.bulkEditAssignedUserRoles" call. @@ -36226,7 +36226,7 @@ func (c *UsersCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.create" call. @@ -36324,7 +36324,7 @@ func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.delete" call. @@ -36434,7 +36434,7 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.get" call. @@ -36597,7 +36597,7 @@ func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.list" call. @@ -36731,7 +36731,7 @@ func (c *UsersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.patch" call. diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index 9926dfd0f6b..308066536cf 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -16000,7 +16000,7 @@ func (c *AdvertisersAuditCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.audit" call. @@ -16099,7 +16099,7 @@ func (c *AdvertisersCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.create" call. @@ -16196,7 +16196,7 @@ func (c *AdvertisersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.delete" call. @@ -16302,7 +16302,7 @@ func (c *AdvertisersEditAssignedTargetingOptionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.editAssignedTargetingOptions" call. @@ -16410,7 +16410,7 @@ func (c *AdvertisersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.get" call. @@ -16567,7 +16567,7 @@ func (c *AdvertisersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.list" call. @@ -16740,7 +16740,7 @@ func (c *AdvertisersListAssignedTargetingOptionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.listAssignedTargetingOptions" call. @@ -16872,7 +16872,7 @@ func (c *AdvertisersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.patch" call. @@ -16983,7 +16983,7 @@ func (c *AdvertisersAdGroupAdsGetCall) doRequest(alt string) (*http.Response, er "advertiserId": strconv.FormatInt(c.advertiserId, 10), "adGroupAdId": strconv.FormatInt(c.adGroupAdId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.adGroupAds.get" call. @@ -17136,7 +17136,7 @@ func (c *AdvertisersAdGroupAdsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.adGroupAds.list" call. @@ -17323,7 +17323,7 @@ func (c *AdvertisersAdGroupsBulkListAdGroupAssignedTargetingOptionsCall) doReque googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.adGroups.bulkListAdGroupAssignedTargetingOptions" call. @@ -17456,7 +17456,7 @@ func (c *AdvertisersAdGroupsGetCall) doRequest(alt string) (*http.Response, erro "advertiserId": strconv.FormatInt(c.advertiserId, 10), "adGroupId": strconv.FormatInt(c.adGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.adGroups.get" call. @@ -17609,7 +17609,7 @@ func (c *AdvertisersAdGroupsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.adGroups.list" call. @@ -17761,7 +17761,7 @@ func (c *AdvertisersAdGroupsTargetingTypesAssignedTargetingOptionsGetCall) doReq "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.adGroups.targetingTypes.assignedTargetingOptions.get" call. @@ -17928,7 +17928,7 @@ func (c *AdvertisersAdGroupsTargetingTypesAssignedTargetingOptionsListCall) doRe "adGroupId": strconv.FormatInt(c.adGroupId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.adGroups.targetingTypes.assignedTargetingOptions.list" call. @@ -18107,7 +18107,7 @@ func (c *AdvertisersAssetsUploadCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.assets.upload" call. @@ -18228,7 +18228,7 @@ func (c *AdvertisersCampaignsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.create" call. @@ -18332,7 +18332,7 @@ func (c *AdvertisersCampaignsDeleteCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.delete" call. @@ -18443,7 +18443,7 @@ func (c *AdvertisersCampaignsGetCall) doRequest(alt string) (*http.Response, err "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.get" call. @@ -18601,7 +18601,7 @@ func (c *AdvertisersCampaignsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.list" call. @@ -18782,7 +18782,7 @@ func (c *AdvertisersCampaignsListAssignedTargetingOptionsCall) doRequest(alt str "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.listAssignedTargetingOptions" call. @@ -18919,7 +18919,7 @@ func (c *AdvertisersCampaignsPatchCall) doRequest(alt string) (*http.Response, e "advertiserId": strconv.FormatInt(c.advertiserId, 10), "campaignId": strconv.FormatInt(c.campaignId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.patch" call. @@ -19054,7 +19054,7 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsGetCall) doRe "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.get" call. @@ -19230,7 +19230,7 @@ func (c *AdvertisersCampaignsTargetingTypesAssignedTargetingOptionsListCall) doR "campaignId": strconv.FormatInt(c.campaignId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.list" call. @@ -19361,7 +19361,7 @@ func (c *AdvertisersChannelsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.create" call. @@ -19479,7 +19479,7 @@ func (c *AdvertisersChannelsGetCall) doRequest(alt string) (*http.Response, erro "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.get" call. @@ -19633,7 +19633,7 @@ func (c *AdvertisersChannelsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.list" call. @@ -19775,7 +19775,7 @@ func (c *AdvertisersChannelsPatchCall) doRequest(alt string) (*http.Response, er "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.patch" call. @@ -19882,7 +19882,7 @@ func (c *AdvertisersChannelsSitesBulkEditCall) doRequest(alt string) (*http.Resp "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.bulkEdit" call. @@ -19995,7 +19995,7 @@ func (c *AdvertisersChannelsSitesCreateCall) doRequest(alt string) (*http.Respon "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.create" call. @@ -20105,7 +20105,7 @@ func (c *AdvertisersChannelsSitesDeleteCall) doRequest(alt string) (*http.Respon "channelId": strconv.FormatInt(c.channelId, 10), "urlOrAppId": c.urlOrAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.delete" call. @@ -20263,7 +20263,7 @@ func (c *AdvertisersChannelsSitesListCall) doRequest(alt string) (*http.Response "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.list" call. @@ -20395,7 +20395,7 @@ func (c *AdvertisersChannelsSitesReplaceCall) doRequest(alt string) (*http.Respo "advertiserId": strconv.FormatInt(c.advertiserId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.channels.sites.replace" call. @@ -20501,7 +20501,7 @@ func (c *AdvertisersCreativesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.create" call. @@ -20605,7 +20605,7 @@ func (c *AdvertisersCreativesDeleteCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "creativeId": strconv.FormatInt(c.creativeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.delete" call. @@ -20716,7 +20716,7 @@ func (c *AdvertisersCreativesGetCall) doRequest(alt string) (*http.Response, err "advertiserId": strconv.FormatInt(c.advertiserId, 10), "creativeId": strconv.FormatInt(c.creativeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.get" call. @@ -20893,7 +20893,7 @@ func (c *AdvertisersCreativesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.list" call. @@ -21032,7 +21032,7 @@ func (c *AdvertisersCreativesPatchCall) doRequest(alt string) (*http.Response, e "advertiserId": strconv.FormatInt(c.advertiserId, 10), "creativeId": strconv.FormatInt(c.creativeId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.creatives.patch" call. @@ -21135,7 +21135,7 @@ func (c *AdvertisersInsertionOrdersCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.create" call. @@ -21237,7 +21237,7 @@ func (c *AdvertisersInsertionOrdersDeleteCall) doRequest(alt string) (*http.Resp "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.delete" call. @@ -21349,7 +21349,7 @@ func (c *AdvertisersInsertionOrdersGetCall) doRequest(alt string) (*http.Respons "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.get" call. @@ -21509,7 +21509,7 @@ func (c *AdvertisersInsertionOrdersListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.list" call. @@ -21692,7 +21692,7 @@ func (c *AdvertisersInsertionOrdersListAssignedTargetingOptionsCall) doRequest(a "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.listAssignedTargetingOptions" call. @@ -21831,7 +21831,7 @@ func (c *AdvertisersInsertionOrdersPatchCall) doRequest(alt string) (*http.Respo "advertiserId": strconv.FormatInt(c.advertiserId, 10), "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.patch" call. @@ -21961,7 +21961,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsCreateC "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.create" call. @@ -22090,7 +22090,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsDeleteC "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.delete" call. @@ -22238,7 +22238,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsGetCall "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.get" call. @@ -22427,7 +22427,7 @@ func (c *AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptionsListCal "insertionOrderId": strconv.FormatInt(c.insertionOrderId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.list" call. @@ -22597,7 +22597,7 @@ func (c *AdvertisersInvoicesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.invoices.list" call. @@ -22735,7 +22735,7 @@ func (c *AdvertisersInvoicesLookupInvoiceCurrencyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.invoices.lookupInvoiceCurrency" call. @@ -22845,7 +22845,7 @@ func (c *AdvertisersLineItemsBulkEditAssignedTargetingOptionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.bulkEditAssignedTargetingOptions" call. @@ -23014,7 +23014,7 @@ func (c *AdvertisersLineItemsBulkListAssignedTargetingOptionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.bulkListAssignedTargetingOptions" call. @@ -23141,7 +23141,7 @@ func (c *AdvertisersLineItemsBulkUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.bulkUpdate" call. @@ -23246,7 +23246,7 @@ func (c *AdvertisersLineItemsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.create" call. @@ -23348,7 +23348,7 @@ func (c *AdvertisersLineItemsDeleteCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.delete" call. @@ -23458,7 +23458,7 @@ func (c *AdvertisersLineItemsDuplicateCall) doRequest(alt string) (*http.Respons "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.duplicate" call. @@ -23566,7 +23566,7 @@ func (c *AdvertisersLineItemsGenerateDefaultCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.generateDefault" call. @@ -23677,7 +23677,7 @@ func (c *AdvertisersLineItemsGetCall) doRequest(alt string) (*http.Response, err "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.get" call. @@ -23839,7 +23839,7 @@ func (c *AdvertisersLineItemsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.list" call. @@ -23984,7 +23984,7 @@ func (c *AdvertisersLineItemsPatchCall) doRequest(alt string) (*http.Response, e "advertiserId": strconv.FormatInt(c.advertiserId, 10), "lineItemId": strconv.FormatInt(c.lineItemId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.patch" call. @@ -24125,7 +24125,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsCreateCall) d "lineItemId": strconv.FormatInt(c.lineItemId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.create" call. @@ -24266,7 +24266,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsDeleteCall) d "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.delete" call. @@ -24418,7 +24418,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsGetCall) doRe "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.get" call. @@ -24611,7 +24611,7 @@ func (c *AdvertisersLineItemsTargetingTypesAssignedTargetingOptionsListCall) doR "lineItemId": strconv.FormatInt(c.lineItemId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.list" call. @@ -24736,7 +24736,7 @@ func (c *AdvertisersLocationListsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.create" call. @@ -24848,7 +24848,7 @@ func (c *AdvertisersLocationListsGetCall) doRequest(alt string) (*http.Response, "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.get" call. @@ -24999,7 +24999,7 @@ func (c *AdvertisersLocationListsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.list" call. @@ -25136,7 +25136,7 @@ func (c *AdvertisersLocationListsPatchCall) doRequest(alt string) (*http.Respons "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.patch" call. @@ -25246,7 +25246,7 @@ func (c *AdvertisersLocationListsAssignedLocationsBulkEditCall) doRequest(alt st "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.bulkEdit" call. @@ -25354,7 +25354,7 @@ func (c *AdvertisersLocationListsAssignedLocationsCreateCall) doRequest(alt stri "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.create" call. @@ -25460,7 +25460,7 @@ func (c *AdvertisersLocationListsAssignedLocationsDeleteCall) doRequest(alt stri "locationListId": strconv.FormatInt(c.locationListId, 10), "assignedLocationId": strconv.FormatInt(c.assignedLocationId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.delete" call. @@ -25613,7 +25613,7 @@ func (c *AdvertisersLocationListsAssignedLocationsListCall) doRequest(alt string "advertiserId": strconv.FormatInt(c.advertiserId, 10), "locationListId": strconv.FormatInt(c.locationListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.locationLists.assignedLocations.list" call. @@ -25738,7 +25738,7 @@ func (c *AdvertisersNegativeKeywordListsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.create" call. @@ -25840,7 +25840,7 @@ func (c *AdvertisersNegativeKeywordListsDeleteCall) doRequest(alt string) (*http "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.delete" call. @@ -25953,7 +25953,7 @@ func (c *AdvertisersNegativeKeywordListsGetCall) doRequest(alt string) (*http.Re "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.get" call. @@ -26080,7 +26080,7 @@ func (c *AdvertisersNegativeKeywordListsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.list" call. @@ -26217,7 +26217,7 @@ func (c *AdvertisersNegativeKeywordListsPatchCall) doRequest(alt string) (*http. "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.patch" call. @@ -26331,7 +26331,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsBulkEditCall) doRequest( "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.bulkEdit" call. @@ -26439,7 +26439,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsCreateCall) doRequest(al "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.create" call. @@ -26545,7 +26545,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsDeleteCall) doRequest(al "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), "keywordValue": c.keywordValue, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.delete" call. @@ -26698,7 +26698,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsListCall) doRequest(alt "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.list" call. @@ -26829,7 +26829,7 @@ func (c *AdvertisersNegativeKeywordListsNegativeKeywordsReplaceCall) doRequest(a "advertiserId": strconv.FormatInt(c.advertiserId, 10), "negativeKeywordListId": strconv.FormatInt(c.negativeKeywordListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.negativeKeywordLists.negativeKeywords.replace" call. @@ -26939,7 +26939,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) doRequest( "advertiserId": strconv.FormatInt(c.advertiserId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.create" call. @@ -27047,7 +27047,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest( "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.delete" call. @@ -27169,7 +27169,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.get" call. @@ -27328,7 +27328,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsListCall) doRequest(al "advertiserId": strconv.FormatInt(c.advertiserId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.advertisers.targetingTypes.assignedTargetingOptions.list" call. @@ -27471,7 +27471,7 @@ func (c *CombinedAudiencesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "combinedAudienceId": strconv.FormatInt(c.combinedAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.combinedAudiences.get" call. @@ -27628,7 +27628,7 @@ func (c *CombinedAudiencesListCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.combinedAudiences.list" call. @@ -27745,7 +27745,7 @@ func (c *CustomBiddingAlgorithmsCreateCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.create" call. @@ -27867,7 +27867,7 @@ func (c *CustomBiddingAlgorithmsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.get" call. @@ -28029,7 +28029,7 @@ func (c *CustomBiddingAlgorithmsListCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.list" call. @@ -28161,7 +28161,7 @@ func (c *CustomBiddingAlgorithmsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.patch" call. @@ -28287,7 +28287,7 @@ func (c *CustomBiddingAlgorithmsUploadRulesCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.uploadRules" call. @@ -28414,7 +28414,7 @@ func (c *CustomBiddingAlgorithmsUploadScriptCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.uploadScript" call. @@ -28533,7 +28533,7 @@ func (c *CustomBiddingAlgorithmsRulesCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.rules.create" call. @@ -28660,7 +28660,7 @@ func (c *CustomBiddingAlgorithmsRulesGetCall) doRequest(alt string) (*http.Respo "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), "customBiddingAlgorithmRulesId": strconv.FormatInt(c.customBiddingAlgorithmRulesId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.rules.get" call. @@ -28811,7 +28811,7 @@ func (c *CustomBiddingAlgorithmsRulesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.rules.list" call. @@ -28951,7 +28951,7 @@ func (c *CustomBiddingAlgorithmsScriptsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.scripts.create" call. @@ -29079,7 +29079,7 @@ func (c *CustomBiddingAlgorithmsScriptsGetCall) doRequest(alt string) (*http.Res "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), "customBiddingScriptId": strconv.FormatInt(c.customBiddingScriptId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.scripts.get" call. @@ -29231,7 +29231,7 @@ func (c *CustomBiddingAlgorithmsScriptsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "customBiddingAlgorithmId": strconv.FormatInt(c.customBiddingAlgorithmId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customBiddingAlgorithms.scripts.list" call. @@ -29367,7 +29367,7 @@ func (c *CustomListsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customListId": strconv.FormatInt(c.customListId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customLists.get" call. @@ -29514,7 +29514,7 @@ func (c *CustomListsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.customLists.list" call. @@ -29639,7 +29639,7 @@ func (c *FirstAndThirdPartyAudiencesCreateCall) doRequest(alt string) (*http.Res return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.create" call. @@ -29744,7 +29744,7 @@ func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers" call. @@ -29867,7 +29867,7 @@ func (c *FirstAndThirdPartyAudiencesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.get" call. @@ -30025,7 +30025,7 @@ func (c *FirstAndThirdPartyAudiencesListCall) doRequest(alt string) (*http.Respo return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.list" call. @@ -30166,7 +30166,7 @@ func (c *FirstAndThirdPartyAudiencesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.firstAndThirdPartyAudiences.patch" call. @@ -30281,7 +30281,7 @@ func (c *FloodlightGroupsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "floodlightGroupId": strconv.FormatInt(c.floodlightGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.floodlightGroups.get" call. @@ -30399,7 +30399,7 @@ func (c *FloodlightGroupsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "floodlightGroupId": strconv.FormatInt(c.floodlightGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.floodlightGroups.patch" call. @@ -30519,7 +30519,7 @@ func (c *FloodlightGroupsFloodlightActivitiesGetCall) doRequest(alt string) (*ht "floodlightGroupId": strconv.FormatInt(c.floodlightGroupId, 10), "floodlightActivityId": strconv.FormatInt(c.floodlightActivityId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.floodlightGroups.floodlightActivities.get" call. @@ -30663,7 +30663,7 @@ func (c *FloodlightGroupsFloodlightActivitiesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "floodlightGroupId": strconv.FormatInt(c.floodlightGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.floodlightGroups.floodlightActivities.list" call. @@ -30806,7 +30806,7 @@ func (c *GoogleAudiencesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "googleAudienceId": strconv.FormatInt(c.googleAudienceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.googleAudiences.get" call. @@ -30962,7 +30962,7 @@ func (c *GoogleAudiencesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.googleAudiences.list" call. @@ -31093,7 +31093,7 @@ func (c *GuaranteedOrdersCreateCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.create" call. @@ -31197,7 +31197,7 @@ func (c *GuaranteedOrdersEditGuaranteedOrderReadAccessorsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "guaranteedOrderId": c.guaranteedOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors" call. @@ -31320,7 +31320,7 @@ func (c *GuaranteedOrdersGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "guaranteedOrderId": c.guaranteedOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.get" call. @@ -31481,7 +31481,7 @@ func (c *GuaranteedOrdersListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.list" call. @@ -31628,7 +31628,7 @@ func (c *GuaranteedOrdersPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "guaranteedOrderId": c.guaranteedOrderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.guaranteedOrders.patch" call. @@ -31741,7 +31741,7 @@ func (c *InventorySourceGroupsCreateCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.create" call. @@ -31853,7 +31853,7 @@ func (c *InventorySourceGroupsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.delete" call. @@ -31977,7 +31977,7 @@ func (c *InventorySourceGroupsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.get" call. @@ -32135,7 +32135,7 @@ func (c *InventorySourceGroupsListCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.list" call. @@ -32283,7 +32283,7 @@ func (c *InventorySourceGroupsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.patch" call. @@ -32391,7 +32391,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesBulkEditCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.bulkEdit" call. @@ -32511,7 +32511,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.create" call. @@ -32630,7 +32630,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesDeleteCall) doRequest(alt "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), "assignedInventorySourceId": strconv.FormatInt(c.assignedInventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.delete" call. @@ -32796,7 +32796,7 @@ func (c *InventorySourceGroupsAssignedInventorySourcesListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "inventorySourceGroupId": strconv.FormatInt(c.inventorySourceGroupId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySourceGroups.assignedInventorySources.list" call. @@ -32927,7 +32927,7 @@ func (c *InventorySourcesCreateCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.create" call. @@ -33031,7 +33031,7 @@ func (c *InventorySourcesEditInventorySourceReadWriteAccessorsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.editInventorySourceReadWriteAccessors" call. @@ -33155,7 +33155,7 @@ func (c *InventorySourcesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.get" call. @@ -33317,7 +33317,7 @@ func (c *InventorySourcesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.list" call. @@ -33463,7 +33463,7 @@ func (c *InventorySourcesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "inventorySourceId": strconv.FormatInt(c.inventorySourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.inventorySources.patch" call. @@ -33574,7 +33574,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -33746,7 +33746,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.media.upload" call. @@ -33869,7 +33869,7 @@ func (c *PartnersEditAssignedTargetingOptionsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.editAssignedTargetingOptions" call. @@ -33977,7 +33977,7 @@ func (c *PartnersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.get" call. @@ -34118,7 +34118,7 @@ func (c *PartnersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.list" call. @@ -34249,7 +34249,7 @@ func (c *PartnersChannelsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.create" call. @@ -34367,7 +34367,7 @@ func (c *PartnersChannelsGetCall) doRequest(alt string) (*http.Response, error) "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.get" call. @@ -34521,7 +34521,7 @@ func (c *PartnersChannelsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "partnerId": strconv.FormatInt(c.partnerId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.list" call. @@ -34663,7 +34663,7 @@ func (c *PartnersChannelsPatchCall) doRequest(alt string) (*http.Response, error "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.patch" call. @@ -34770,7 +34770,7 @@ func (c *PartnersChannelsSitesBulkEditCall) doRequest(alt string) (*http.Respons "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.bulkEdit" call. @@ -34883,7 +34883,7 @@ func (c *PartnersChannelsSitesCreateCall) doRequest(alt string) (*http.Response, "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.create" call. @@ -34993,7 +34993,7 @@ func (c *PartnersChannelsSitesDeleteCall) doRequest(alt string) (*http.Response, "channelId": strconv.FormatInt(c.channelId, 10), "urlOrAppId": c.urlOrAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.delete" call. @@ -35151,7 +35151,7 @@ func (c *PartnersChannelsSitesListCall) doRequest(alt string) (*http.Response, e "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.list" call. @@ -35283,7 +35283,7 @@ func (c *PartnersChannelsSitesReplaceCall) doRequest(alt string) (*http.Response "partnerId": strconv.FormatInt(c.partnerId, 10), "channelId": strconv.FormatInt(c.channelId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.channels.sites.replace" call. @@ -35391,7 +35391,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsCreateCall) doRequest(alt "partnerId": strconv.FormatInt(c.partnerId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.create" call. @@ -35497,7 +35497,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsDeleteCall) doRequest(alt "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.delete" call. @@ -35615,7 +35615,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsGetCall) doRequest(alt st "targetingType": c.targetingType, "assignedTargetingOptionId": c.assignedTargetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.get" call. @@ -35771,7 +35771,7 @@ func (c *PartnersTargetingTypesAssignedTargetingOptionsListCall) doRequest(alt s "partnerId": strconv.FormatInt(c.partnerId, 10), "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.partners.targetingTypes.assignedTargetingOptions.list" call. @@ -35894,7 +35894,7 @@ func (c *SdfdownloadtasksCreateCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtasks.create" call. @@ -36002,7 +36002,7 @@ func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtasks.operations.get" call. @@ -36135,7 +36135,7 @@ func (c *TargetingTypesTargetingOptionsGetCall) doRequest(alt string) (*http.Res "targetingType": c.targetingType, "targetingOptionId": c.targetingOptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.targetingTypes.targetingOptions.get" call. @@ -36313,7 +36313,7 @@ func (c *TargetingTypesTargetingOptionsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.targetingTypes.targetingOptions.list" call. @@ -36439,7 +36439,7 @@ func (c *TargetingTypesTargetingOptionsSearchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "targetingType": c.targetingType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.targetingTypes.targetingOptions.search" call. @@ -36570,7 +36570,7 @@ func (c *UsersBulkEditAssignedUserRolesCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.bulkEditAssignedUserRoles" call. @@ -36669,7 +36669,7 @@ func (c *UsersCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.create" call. @@ -36767,7 +36767,7 @@ func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.delete" call. @@ -36877,7 +36877,7 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.get" call. @@ -37040,7 +37040,7 @@ func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.list" call. @@ -37174,7 +37174,7 @@ func (c *UsersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": strconv.FormatInt(c.userId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.users.patch" call. diff --git a/displayvideo/v4/displayvideo-gen.go b/displayvideo/v4/displayvideo-gen.go index b088f659022..10fc057b8fc 100644 --- a/displayvideo/v4/displayvideo-gen.go +++ b/displayvideo/v4/displayvideo-gen.go @@ -97,12 +97,11 @@ const apiVersion = "v4" const basePath = "https://displayvideo.googleapis.com/" const basePathTemplate = "https://displayvideo.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://displayvideo.mtls.googleapis.com/" -const defaultUniverseDomain = "googleapis.com" // OAuth2 scopes used by this API. const ( - // Create, see, edit, and permanently delete your Display & Video 360 - // entities and reports + // Create, see, edit, and permanently delete your Display & Video 360 entities + // and reports DisplayVideoScope = "https://www.googleapis.com/auth/display-video" // View and manage your reports in DoubleClick Bid Manager @@ -120,7 +119,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) - opts = append(opts, internaloption.WithDefaultUniverseDomain(defaultUniverseDomain)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -202,141 +201,107 @@ type GoogleBytestreamMedia struct { // ResourceName: Name of the media resource. ResourceName string `json:"resourceName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { +func (s GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { type NoMethod GoogleBytestreamMedia - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal, successful response of the operation. If the - // original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "displayvideo.media.download": - type MediaDownloadCall struct { s *Service resourceName string @@ -347,8 +312,8 @@ type MediaDownloadCall struct { } // Download: Downloads media. Download is supported on the URI -// `/download/{resource_name=**}?alt=media.` **Note**: Download requests -// will not be successful without including `alt=media` query string. +// `/download/{resource_name=**}?alt=media.` **Note**: Download requests will +// not be successful without including `alt=media` query string. // // - resourceName: Name of the media that is being downloaded. See // ReadRequest.resource_name. @@ -359,33 +324,29 @@ func (r *MediaService) Download(resourceName string) *MediaDownloadCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MediaDownloadCall) Fields(s ...googleapi.Field) *MediaDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MediaDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -394,12 +355,7 @@ func (c *MediaDownloadCall) Header() http.Header { } func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -416,7 +372,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -436,12 +392,11 @@ func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Respon } // Do executes the "displayvideo.media.download" call. -// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -472,37 +427,7 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamM return nil, err } return ret, nil - // { - // "description": "Downloads media. Download is supported on the URI `/download/{resource_name=**}?alt=media.` **Note**: Download requests will not be successful without including `alt=media` query string.", - // "flatPath": "download/{downloadId}", - // "httpMethod": "GET", - // "id": "displayvideo.media.download", - // "parameterOrder": [ - // "resourceName" - // ], - // "parameters": { - // "resourceName": { - // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "download/{+resourceName}", - // "response": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "displayvideo.media.upload": +} type MediaUploadCall struct { s *Service @@ -515,9 +440,9 @@ type MediaUploadCall struct { } // Upload: Uploads media. Upload is supported on the URI -// `/upload/media/{resource_name=**}?upload_type=media.` **Note**: -// Upload requests will not be successful without including -// `upload_type=media` query string. +// `/upload/media/{resource_name=**}?upload_type=media.` **Note**: Upload +// requests will not be successful without including `upload_type=media` query +// string. // // - resourceName: Name of the media that is being downloaded. See // ReadRequest.resource_name. @@ -528,54 +453,51 @@ func (r *MediaService) Upload(resourceName string, googlebytestreammedia *Google return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall { @@ -583,8 +505,8 @@ func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall { return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MediaUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -593,18 +515,12 @@ func (c *MediaUploadCall) Header() http.Header { } func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlebytestreammedia) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "media/{+resourceName}") @@ -628,16 +544,15 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.media.upload" call. -// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -685,51 +600,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMed return nil, err } return ret, nil - // { - // "description": "Uploads media. Upload is supported on the URI `/upload/media/{resource_name=**}?upload_type=media.` **Note**: Upload requests will not be successful without including `upload_type=media` query string.", - // "flatPath": "media/{mediaId}", - // "httpMethod": "POST", - // "id": "displayvideo.media.upload", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "protocols": { - // "simple": { - // "multipart": true, - // "path": "/upload/media/{+resourceName}" - // } - // } - // }, - // "parameterOrder": [ - // "resourceName" - // ], - // "parameters": { - // "resourceName": { - // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "media/{+resourceName}", - // "request": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "response": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "displayvideo.sdfdownloadtasks.operations.get": +} type SdfdownloadtasksOperationsGetCall struct { s *Service @@ -740,9 +611,8 @@ type SdfdownloadtasksOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of an asynchronous SDF download task -// operation. Clients should poll this method at intervals of 30 -// seconds. +// Get: Gets the latest state of an asynchronous SDF download task operation. +// Clients should poll this method at intervals of 30 seconds. // // - name: The name of the operation resource. func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOperationsGetCall { @@ -752,33 +622,29 @@ func (r *SdfdownloadtasksOperationsService) Get(name string) *SdfdownloadtasksOp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SdfdownloadtasksOperationsGetCall) Fields(s ...googleapi.Field) *SdfdownloadtasksOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SdfdownloadtasksOperationsGetCall) IfNoneMatch(entityTag string) *SdfdownloadtasksOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SdfdownloadtasksOperationsGetCall) Context(ctx context.Context) *SdfdownloadtasksOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -787,12 +653,7 @@ func (c *SdfdownloadtasksOperationsGetCall) Header() http.Header { } func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -809,16 +670,14 @@ func (c *SdfdownloadtasksOperationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "displayvideo.sdfdownloadtasks.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -849,31 +708,4 @@ func (c *SdfdownloadtasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*O return nil, err } return ret, nil - // { - // "description": "Gets the latest state of an asynchronous SDF download task operation. Clients should poll this method at intervals of 30 seconds.", - // "flatPath": "v4/sdfdownloadtasks/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "displayvideo.sdfdownloadtasks.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^sdfdownloadtasks/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v4/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/display-video", - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - } diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 983f4e213ff..84cf6ce2464 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -10594,7 +10594,7 @@ func (c *InfoTypesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.infoTypes.list" call. @@ -10728,7 +10728,7 @@ func (c *LocationsInfoTypesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.locations.infoTypes.list" call. @@ -10846,7 +10846,7 @@ func (c *OrganizationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.deidentifyTemplates.create" call. @@ -10947,7 +10947,7 @@ func (c *OrganizationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.deidentifyTemplates.delete" call. @@ -11059,7 +11059,7 @@ func (c *OrganizationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.deidentifyTemplates.get" call. @@ -11217,7 +11217,7 @@ func (c *OrganizationsDeidentifyTemplatesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.deidentifyTemplates.list" call. @@ -11344,7 +11344,7 @@ func (c *OrganizationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.deidentifyTemplates.patch" call. @@ -11462,7 +11462,7 @@ func (c *OrganizationsInspectTemplatesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.inspectTemplates.create" call. @@ -11562,7 +11562,7 @@ func (c *OrganizationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.inspectTemplates.delete" call. @@ -11674,7 +11674,7 @@ func (c *OrganizationsInspectTemplatesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.inspectTemplates.get" call. @@ -11832,7 +11832,7 @@ func (c *OrganizationsInspectTemplatesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.inspectTemplates.list" call. @@ -11959,7 +11959,7 @@ func (c *OrganizationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.inspectTemplates.patch" call. @@ -12068,7 +12068,7 @@ func (c *OrganizationsLocationsColumnDataProfilesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.columnDataProfiles.get" call. @@ -12232,7 +12232,7 @@ func (c *OrganizationsLocationsColumnDataProfilesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.columnDataProfiles.list" call. @@ -12358,7 +12358,7 @@ func (c *OrganizationsLocationsConnectionsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.connections.create" call. @@ -12455,7 +12455,7 @@ func (c *OrganizationsLocationsConnectionsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.connections.delete" call. @@ -12564,7 +12564,7 @@ func (c *OrganizationsLocationsConnectionsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.connections.get" call. @@ -12697,7 +12697,7 @@ func (c *OrganizationsLocationsConnectionsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.connections.list" call. @@ -12821,7 +12821,7 @@ func (c *OrganizationsLocationsConnectionsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.connections.patch" call. @@ -12953,7 +12953,7 @@ func (c *OrganizationsLocationsConnectionsSearchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.connections.search" call. @@ -13092,7 +13092,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.deidentifyTemplates.create" call. @@ -13193,7 +13193,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.deidentifyTemplates.delete" call. @@ -13305,7 +13305,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.deidentifyTemplates.get" call. @@ -13463,7 +13463,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.deidentifyTemplates.list" call. @@ -13590,7 +13590,7 @@ func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.deidentifyTemplates.patch" call. @@ -13698,7 +13698,7 @@ func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.discoveryConfigs.create" call. @@ -13795,7 +13795,7 @@ func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.discoveryConfigs.delete" call. @@ -13904,7 +13904,7 @@ func (c *OrganizationsLocationsDiscoveryConfigsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.discoveryConfigs.get" call. @@ -14043,7 +14043,7 @@ func (c *OrganizationsLocationsDiscoveryConfigsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.discoveryConfigs.list" call. @@ -14167,7 +14167,7 @@ func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.discoveryConfigs.patch" call. @@ -14356,7 +14356,7 @@ func (c *OrganizationsLocationsDlpJobsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.dlpJobs.list" call. @@ -14475,7 +14475,7 @@ func (c *OrganizationsLocationsFileStoreDataProfilesDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.fileStoreDataProfiles.delete" call. @@ -14584,7 +14584,7 @@ func (c *OrganizationsLocationsFileStoreDataProfilesGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.fileStoreDataProfiles.get" call. @@ -14750,7 +14750,7 @@ func (c *OrganizationsLocationsFileStoreDataProfilesListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.fileStoreDataProfiles.list" call. @@ -14889,7 +14889,7 @@ func (c *OrganizationsLocationsInspectTemplatesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.inspectTemplates.create" call. @@ -14989,7 +14989,7 @@ func (c *OrganizationsLocationsInspectTemplatesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.inspectTemplates.delete" call. @@ -15101,7 +15101,7 @@ func (c *OrganizationsLocationsInspectTemplatesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.inspectTemplates.get" call. @@ -15259,7 +15259,7 @@ func (c *OrganizationsLocationsInspectTemplatesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.inspectTemplates.list" call. @@ -15386,7 +15386,7 @@ func (c *OrganizationsLocationsInspectTemplatesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.inspectTemplates.patch" call. @@ -15500,7 +15500,7 @@ func (c *OrganizationsLocationsJobTriggersCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.jobTriggers.create" call. @@ -15599,7 +15599,7 @@ func (c *OrganizationsLocationsJobTriggersDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.jobTriggers.delete" call. @@ -15710,7 +15710,7 @@ func (c *OrganizationsLocationsJobTriggersGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.jobTriggers.get" call. @@ -15899,7 +15899,7 @@ func (c *OrganizationsLocationsJobTriggersListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.jobTriggers.list" call. @@ -16025,7 +16025,7 @@ func (c *OrganizationsLocationsJobTriggersPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.jobTriggers.patch" call. @@ -16134,7 +16134,7 @@ func (c *OrganizationsLocationsProjectDataProfilesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.projectDataProfiles.get" call. @@ -16287,7 +16287,7 @@ func (c *OrganizationsLocationsProjectDataProfilesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.projectDataProfiles.list" call. @@ -16425,7 +16425,7 @@ func (c *OrganizationsLocationsStoredInfoTypesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.storedInfoTypes.create" call. @@ -16525,7 +16525,7 @@ func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.storedInfoTypes.delete" call. @@ -16637,7 +16637,7 @@ func (c *OrganizationsLocationsStoredInfoTypesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.storedInfoTypes.get" call. @@ -16792,7 +16792,7 @@ func (c *OrganizationsLocationsStoredInfoTypesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.storedInfoTypes.list" call. @@ -16920,7 +16920,7 @@ func (c *OrganizationsLocationsStoredInfoTypesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.storedInfoTypes.patch" call. @@ -17017,7 +17017,7 @@ func (c *OrganizationsLocationsTableDataProfilesDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.tableDataProfiles.delete" call. @@ -17126,7 +17126,7 @@ func (c *OrganizationsLocationsTableDataProfilesGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.tableDataProfiles.get" call. @@ -17289,7 +17289,7 @@ func (c *OrganizationsLocationsTableDataProfilesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.locations.tableDataProfiles.list" call. @@ -17427,7 +17427,7 @@ func (c *OrganizationsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.storedInfoTypes.create" call. @@ -17527,7 +17527,7 @@ func (c *OrganizationsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.storedInfoTypes.delete" call. @@ -17639,7 +17639,7 @@ func (c *OrganizationsStoredInfoTypesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.storedInfoTypes.get" call. @@ -17794,7 +17794,7 @@ func (c *OrganizationsStoredInfoTypesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.storedInfoTypes.list" call. @@ -17922,7 +17922,7 @@ func (c *OrganizationsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.organizations.storedInfoTypes.patch" call. @@ -18039,7 +18039,7 @@ func (c *ProjectsContentDeidentifyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.content.deidentify" call. @@ -18156,7 +18156,7 @@ func (c *ProjectsContentInspectCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.content.inspect" call. @@ -18269,7 +18269,7 @@ func (c *ProjectsContentReidentifyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.content.reidentify" call. @@ -18387,7 +18387,7 @@ func (c *ProjectsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.deidentifyTemplates.create" call. @@ -18488,7 +18488,7 @@ func (c *ProjectsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.deidentifyTemplates.delete" call. @@ -18600,7 +18600,7 @@ func (c *ProjectsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.deidentifyTemplates.get" call. @@ -18758,7 +18758,7 @@ func (c *ProjectsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.deidentifyTemplates.list" call. @@ -18885,7 +18885,7 @@ func (c *ProjectsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.deidentifyTemplates.patch" call. @@ -18993,7 +18993,7 @@ func (c *ProjectsDlpJobsCancelCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.dlpJobs.cancel" call. @@ -19110,7 +19110,7 @@ func (c *ProjectsDlpJobsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.dlpJobs.create" call. @@ -19212,7 +19212,7 @@ func (c *ProjectsDlpJobsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.dlpJobs.delete" call. @@ -19324,7 +19324,7 @@ func (c *ProjectsDlpJobsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.dlpJobs.get" call. @@ -19513,7 +19513,7 @@ func (c *ProjectsDlpJobsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.dlpJobs.list" call. @@ -19651,7 +19651,7 @@ func (c *ProjectsImageRedactCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.image.redact" call. @@ -19769,7 +19769,7 @@ func (c *ProjectsInspectTemplatesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.inspectTemplates.create" call. @@ -19869,7 +19869,7 @@ func (c *ProjectsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.inspectTemplates.delete" call. @@ -19981,7 +19981,7 @@ func (c *ProjectsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.inspectTemplates.get" call. @@ -20139,7 +20139,7 @@ func (c *ProjectsInspectTemplatesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.inspectTemplates.list" call. @@ -20266,7 +20266,7 @@ func (c *ProjectsInspectTemplatesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.inspectTemplates.patch" call. @@ -20370,7 +20370,7 @@ func (c *ProjectsJobTriggersActivateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.jobTriggers.activate" call. @@ -20484,7 +20484,7 @@ func (c *ProjectsJobTriggersCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.jobTriggers.create" call. @@ -20583,7 +20583,7 @@ func (c *ProjectsJobTriggersDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.jobTriggers.delete" call. @@ -20694,7 +20694,7 @@ func (c *ProjectsJobTriggersGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.jobTriggers.get" call. @@ -20883,7 +20883,7 @@ func (c *ProjectsJobTriggersListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.jobTriggers.list" call. @@ -21009,7 +21009,7 @@ func (c *ProjectsJobTriggersPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.jobTriggers.patch" call. @@ -21118,7 +21118,7 @@ func (c *ProjectsLocationsColumnDataProfilesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.columnDataProfiles.get" call. @@ -21282,7 +21282,7 @@ func (c *ProjectsLocationsColumnDataProfilesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.columnDataProfiles.list" call. @@ -21408,7 +21408,7 @@ func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.connections.create" call. @@ -21505,7 +21505,7 @@ func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.connections.delete" call. @@ -21614,7 +21614,7 @@ func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.connections.get" call. @@ -21747,7 +21747,7 @@ func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.connections.list" call. @@ -21871,7 +21871,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.connections.patch" call. @@ -22003,7 +22003,7 @@ func (c *ProjectsLocationsConnectionsSearchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.connections.search" call. @@ -22141,7 +22141,7 @@ func (c *ProjectsLocationsContentDeidentifyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.content.deidentify" call. @@ -22258,7 +22258,7 @@ func (c *ProjectsLocationsContentInspectCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.content.inspect" call. @@ -22371,7 +22371,7 @@ func (c *ProjectsLocationsContentReidentifyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.content.reidentify" call. @@ -22489,7 +22489,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.deidentifyTemplates.create" call. @@ -22590,7 +22590,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.deidentifyTemplates.delete" call. @@ -22702,7 +22702,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.deidentifyTemplates.get" call. @@ -22860,7 +22860,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.deidentifyTemplates.list" call. @@ -22987,7 +22987,7 @@ func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.deidentifyTemplates.patch" call. @@ -23095,7 +23095,7 @@ func (c *ProjectsLocationsDiscoveryConfigsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.discoveryConfigs.create" call. @@ -23192,7 +23192,7 @@ func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.discoveryConfigs.delete" call. @@ -23301,7 +23301,7 @@ func (c *ProjectsLocationsDiscoveryConfigsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.discoveryConfigs.get" call. @@ -23440,7 +23440,7 @@ func (c *ProjectsLocationsDiscoveryConfigsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.discoveryConfigs.list" call. @@ -23564,7 +23564,7 @@ func (c *ProjectsLocationsDiscoveryConfigsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.discoveryConfigs.patch" call. @@ -23672,7 +23672,7 @@ func (c *ProjectsLocationsDlpJobsCancelCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.dlpJobs.cancel" call. @@ -23789,7 +23789,7 @@ func (c *ProjectsLocationsDlpJobsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.dlpJobs.create" call. @@ -23891,7 +23891,7 @@ func (c *ProjectsLocationsDlpJobsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.dlpJobs.delete" call. @@ -23994,7 +23994,7 @@ func (c *ProjectsLocationsDlpJobsFinishCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.dlpJobs.finish" call. @@ -24106,7 +24106,7 @@ func (c *ProjectsLocationsDlpJobsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.dlpJobs.get" call. @@ -24210,7 +24210,7 @@ func (c *ProjectsLocationsDlpJobsHybridInspectCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.dlpJobs.hybridInspect" call. @@ -24399,7 +24399,7 @@ func (c *ProjectsLocationsDlpJobsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.dlpJobs.list" call. @@ -24518,7 +24518,7 @@ func (c *ProjectsLocationsFileStoreDataProfilesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.fileStoreDataProfiles.delete" call. @@ -24627,7 +24627,7 @@ func (c *ProjectsLocationsFileStoreDataProfilesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.fileStoreDataProfiles.get" call. @@ -24793,7 +24793,7 @@ func (c *ProjectsLocationsFileStoreDataProfilesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.fileStoreDataProfiles.list" call. @@ -24931,7 +24931,7 @@ func (c *ProjectsLocationsImageRedactCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.image.redact" call. @@ -25049,7 +25049,7 @@ func (c *ProjectsLocationsInspectTemplatesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.inspectTemplates.create" call. @@ -25149,7 +25149,7 @@ func (c *ProjectsLocationsInspectTemplatesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.inspectTemplates.delete" call. @@ -25261,7 +25261,7 @@ func (c *ProjectsLocationsInspectTemplatesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.inspectTemplates.get" call. @@ -25419,7 +25419,7 @@ func (c *ProjectsLocationsInspectTemplatesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.inspectTemplates.list" call. @@ -25546,7 +25546,7 @@ func (c *ProjectsLocationsInspectTemplatesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.inspectTemplates.patch" call. @@ -25650,7 +25650,7 @@ func (c *ProjectsLocationsJobTriggersActivateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.jobTriggers.activate" call. @@ -25764,7 +25764,7 @@ func (c *ProjectsLocationsJobTriggersCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.jobTriggers.create" call. @@ -25863,7 +25863,7 @@ func (c *ProjectsLocationsJobTriggersDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.jobTriggers.delete" call. @@ -25974,7 +25974,7 @@ func (c *ProjectsLocationsJobTriggersGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.jobTriggers.get" call. @@ -26079,7 +26079,7 @@ func (c *ProjectsLocationsJobTriggersHybridInspectCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.jobTriggers.hybridInspect" call. @@ -26268,7 +26268,7 @@ func (c *ProjectsLocationsJobTriggersListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.jobTriggers.list" call. @@ -26394,7 +26394,7 @@ func (c *ProjectsLocationsJobTriggersPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.jobTriggers.patch" call. @@ -26503,7 +26503,7 @@ func (c *ProjectsLocationsProjectDataProfilesGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.projectDataProfiles.get" call. @@ -26656,7 +26656,7 @@ func (c *ProjectsLocationsProjectDataProfilesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.projectDataProfiles.list" call. @@ -26794,7 +26794,7 @@ func (c *ProjectsLocationsStoredInfoTypesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.storedInfoTypes.create" call. @@ -26894,7 +26894,7 @@ func (c *ProjectsLocationsStoredInfoTypesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.storedInfoTypes.delete" call. @@ -27006,7 +27006,7 @@ func (c *ProjectsLocationsStoredInfoTypesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.storedInfoTypes.get" call. @@ -27161,7 +27161,7 @@ func (c *ProjectsLocationsStoredInfoTypesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.storedInfoTypes.list" call. @@ -27289,7 +27289,7 @@ func (c *ProjectsLocationsStoredInfoTypesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.storedInfoTypes.patch" call. @@ -27386,7 +27386,7 @@ func (c *ProjectsLocationsTableDataProfilesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.tableDataProfiles.delete" call. @@ -27495,7 +27495,7 @@ func (c *ProjectsLocationsTableDataProfilesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.tableDataProfiles.get" call. @@ -27658,7 +27658,7 @@ func (c *ProjectsLocationsTableDataProfilesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.locations.tableDataProfiles.list" call. @@ -27796,7 +27796,7 @@ func (c *ProjectsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.storedInfoTypes.create" call. @@ -27896,7 +27896,7 @@ func (c *ProjectsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.storedInfoTypes.delete" call. @@ -28008,7 +28008,7 @@ func (c *ProjectsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.storedInfoTypes.get" call. @@ -28163,7 +28163,7 @@ func (c *ProjectsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.storedInfoTypes.list" call. @@ -28291,7 +28291,7 @@ func (c *ProjectsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dlp.projects.storedInfoTypes.patch" call. diff --git a/dns/v1/dns-gen.go b/dns/v1/dns-gen.go index 6068a09d91d..a1276b447b4 100644 --- a/dns/v1/dns-gen.go +++ b/dns/v1/dns-gen.go @@ -2713,7 +2713,7 @@ func (c *ChangesCreateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.create" call. @@ -2838,7 +2838,7 @@ func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) { "managedZone": c.managedZone, "changeId": c.changeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.get" call. @@ -2984,7 +2984,7 @@ func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.list" call. @@ -3138,7 +3138,7 @@ func (c *DnsKeysGetCall) doRequest(alt string) (*http.Response, error) { "managedZone": c.managedZone, "dnsKeyId": c.dnsKeyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.dnsKeys.get" call. @@ -3274,7 +3274,7 @@ func (c *DnsKeysListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.dnsKeys.list" call. @@ -3420,7 +3420,7 @@ func (c *ManagedZoneOperationsGetCall) doRequest(alt string) (*http.Response, er "managedZone": c.managedZone, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZoneOperations.get" call. @@ -3559,7 +3559,7 @@ func (c *ManagedZoneOperationsListCall) doRequest(alt string) (*http.Response, e "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZoneOperations.list" call. @@ -3690,7 +3690,7 @@ func (c *ManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.create" call. @@ -3798,7 +3798,7 @@ func (c *ManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.delete" call. @@ -3895,7 +3895,7 @@ func (c *ManagedZonesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.get" call. @@ -3999,7 +3999,7 @@ func (c *ManagedZonesGetIamPolicyCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.getIamPolicy" call. @@ -4130,7 +4130,7 @@ func (c *ManagedZonesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.list" call. @@ -4266,7 +4266,7 @@ func (c *ManagedZonesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.patch" call. @@ -4371,7 +4371,7 @@ func (c *ManagedZonesSetIamPolicyCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.setIamPolicy" call. @@ -4480,7 +4480,7 @@ func (c *ManagedZonesTestIamPermissionsCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.testIamPermissions" call. @@ -4595,7 +4595,7 @@ func (c *ManagedZonesUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.update" call. @@ -4704,7 +4704,7 @@ func (c *PoliciesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.create" call. @@ -4812,7 +4812,7 @@ func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.delete" call. @@ -4908,7 +4908,7 @@ func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.get" call. @@ -5031,7 +5031,7 @@ func (c *PoliciesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.list" call. @@ -5166,7 +5166,7 @@ func (c *PoliciesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.patch" call. @@ -5280,7 +5280,7 @@ func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.update" call. @@ -5396,7 +5396,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.projects.get" call. @@ -5510,7 +5510,7 @@ func (c *ResourceRecordSetsCreateCall) doRequest(alt string) (*http.Response, er "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.create" call. @@ -5627,7 +5627,7 @@ func (c *ResourceRecordSetsDeleteCall) doRequest(alt string) (*http.Response, er "name": c.name, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.delete" call. @@ -5756,7 +5756,7 @@ func (c *ResourceRecordSetsGetCall) doRequest(alt string) (*http.Response, error "name": c.name, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.get" call. @@ -5900,7 +5900,7 @@ func (c *ResourceRecordSetsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.list" call. @@ -6044,7 +6044,7 @@ func (c *ResourceRecordSetsPatchCall) doRequest(alt string) (*http.Response, err "name": c.name, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.patch" call. @@ -6154,7 +6154,7 @@ func (c *ResponsePoliciesCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.create" call. @@ -6263,7 +6263,7 @@ func (c *ResponsePoliciesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.delete" call. @@ -6360,7 +6360,7 @@ func (c *ResponsePoliciesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.get" call. @@ -6483,7 +6483,7 @@ func (c *ResponsePoliciesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.list" call. @@ -6619,7 +6619,7 @@ func (c *ResponsePoliciesPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.patch" call. @@ -6734,7 +6734,7 @@ func (c *ResponsePoliciesUpdateCall) doRequest(alt string) (*http.Response, erro "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.update" call. @@ -6849,7 +6849,7 @@ func (c *ResponsePolicyRulesCreateCall) doRequest(alt string) (*http.Response, e "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.create" call. @@ -6963,7 +6963,7 @@ func (c *ResponsePolicyRulesDeleteCall) doRequest(alt string) (*http.Response, e "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.delete" call. @@ -7065,7 +7065,7 @@ func (c *ResponsePolicyRulesGetCall) doRequest(alt string) (*http.Response, erro "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.get" call. @@ -7193,7 +7193,7 @@ func (c *ResponsePolicyRulesListCall) doRequest(alt string) (*http.Response, err "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.list" call. @@ -7334,7 +7334,7 @@ func (c *ResponsePolicyRulesPatchCall) doRequest(alt string) (*http.Response, er "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.patch" call. @@ -7454,7 +7454,7 @@ func (c *ResponsePolicyRulesUpdateCall) doRequest(alt string) (*http.Response, e "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.update" call. diff --git a/dns/v1beta2/dns-gen.go b/dns/v1beta2/dns-gen.go index 082a6a15d9f..04eea0f653a 100644 --- a/dns/v1beta2/dns-gen.go +++ b/dns/v1beta2/dns-gen.go @@ -2710,7 +2710,7 @@ func (c *ChangesCreateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.create" call. @@ -2835,7 +2835,7 @@ func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) { "managedZone": c.managedZone, "changeId": c.changeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.get" call. @@ -2981,7 +2981,7 @@ func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.list" call. @@ -3135,7 +3135,7 @@ func (c *DnsKeysGetCall) doRequest(alt string) (*http.Response, error) { "managedZone": c.managedZone, "dnsKeyId": c.dnsKeyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.dnsKeys.get" call. @@ -3271,7 +3271,7 @@ func (c *DnsKeysListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.dnsKeys.list" call. @@ -3417,7 +3417,7 @@ func (c *ManagedZoneOperationsGetCall) doRequest(alt string) (*http.Response, er "managedZone": c.managedZone, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZoneOperations.get" call. @@ -3556,7 +3556,7 @@ func (c *ManagedZoneOperationsListCall) doRequest(alt string) (*http.Response, e "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZoneOperations.list" call. @@ -3687,7 +3687,7 @@ func (c *ManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.create" call. @@ -3795,7 +3795,7 @@ func (c *ManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.delete" call. @@ -3892,7 +3892,7 @@ func (c *ManagedZonesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.get" call. @@ -3996,7 +3996,7 @@ func (c *ManagedZonesGetIamPolicyCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.getIamPolicy" call. @@ -4127,7 +4127,7 @@ func (c *ManagedZonesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.list" call. @@ -4263,7 +4263,7 @@ func (c *ManagedZonesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.patch" call. @@ -4368,7 +4368,7 @@ func (c *ManagedZonesSetIamPolicyCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.setIamPolicy" call. @@ -4477,7 +4477,7 @@ func (c *ManagedZonesTestIamPermissionsCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.testIamPermissions" call. @@ -4592,7 +4592,7 @@ func (c *ManagedZonesUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.update" call. @@ -4701,7 +4701,7 @@ func (c *PoliciesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.create" call. @@ -4809,7 +4809,7 @@ func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.delete" call. @@ -4905,7 +4905,7 @@ func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.get" call. @@ -5028,7 +5028,7 @@ func (c *PoliciesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.list" call. @@ -5163,7 +5163,7 @@ func (c *PoliciesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.patch" call. @@ -5277,7 +5277,7 @@ func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.update" call. @@ -5393,7 +5393,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.projects.get" call. @@ -5507,7 +5507,7 @@ func (c *ResourceRecordSetsCreateCall) doRequest(alt string) (*http.Response, er "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.create" call. @@ -5624,7 +5624,7 @@ func (c *ResourceRecordSetsDeleteCall) doRequest(alt string) (*http.Response, er "name": c.name, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.delete" call. @@ -5729,7 +5729,7 @@ func (c *ResourceRecordSetsGetCall) doRequest(alt string) (*http.Response, error "name": c.name, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.get" call. @@ -5873,7 +5873,7 @@ func (c *ResourceRecordSetsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.list" call. @@ -6017,7 +6017,7 @@ func (c *ResourceRecordSetsPatchCall) doRequest(alt string) (*http.Response, err "name": c.name, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.patch" call. @@ -6127,7 +6127,7 @@ func (c *ResponsePoliciesCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.create" call. @@ -6236,7 +6236,7 @@ func (c *ResponsePoliciesDeleteCall) doRequest(alt string) (*http.Response, erro "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.delete" call. @@ -6333,7 +6333,7 @@ func (c *ResponsePoliciesGetCall) doRequest(alt string) (*http.Response, error) "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.get" call. @@ -6456,7 +6456,7 @@ func (c *ResponsePoliciesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.list" call. @@ -6592,7 +6592,7 @@ func (c *ResponsePoliciesPatchCall) doRequest(alt string) (*http.Response, error "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.patch" call. @@ -6707,7 +6707,7 @@ func (c *ResponsePoliciesUpdateCall) doRequest(alt string) (*http.Response, erro "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.update" call. @@ -6822,7 +6822,7 @@ func (c *ResponsePolicyRulesCreateCall) doRequest(alt string) (*http.Response, e "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.create" call. @@ -6936,7 +6936,7 @@ func (c *ResponsePolicyRulesDeleteCall) doRequest(alt string) (*http.Response, e "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.delete" call. @@ -7038,7 +7038,7 @@ func (c *ResponsePolicyRulesGetCall) doRequest(alt string) (*http.Response, erro "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.get" call. @@ -7166,7 +7166,7 @@ func (c *ResponsePolicyRulesListCall) doRequest(alt string) (*http.Response, err "project": c.project, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.list" call. @@ -7307,7 +7307,7 @@ func (c *ResponsePolicyRulesPatchCall) doRequest(alt string) (*http.Response, er "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.patch" call. @@ -7427,7 +7427,7 @@ func (c *ResponsePolicyRulesUpdateCall) doRequest(alt string) (*http.Response, e "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.update" call. diff --git a/dns/v2/dns-gen.go b/dns/v2/dns-gen.go index fc477e9466f..1c3f70cdbd6 100644 --- a/dns/v2/dns-gen.go +++ b/dns/v2/dns-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/dns/docs // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // dnsService, err := dns.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // dnsService, err := dns.NewService(ctx, option.WithScopes(dns.NdevClouddnsReadwriteScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // dnsService, err := dns.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // dnsService, err := dns.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package dns // import "google.golang.org/api/dns/v2" import ( @@ -75,21 +89,23 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dns:v2" const apiName = "dns" const apiVersion = "v2" const basePath = "https://dns.googleapis.com/" +const basePathTemplate = "https://dns.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://dns.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" - // View your data across Google Cloud services and see the email address - // of your Google Account + // View your data across Google Cloud services and see the email address of + // your Google Account CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only" // View your DNS records hosted by Google Cloud DNS @@ -110,7 +126,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -260,122 +278,97 @@ type ResponsePolicyRulesService struct { } // Change: A Change represents a set of ResourceRecordSet additions and -// deletions applied atomically to a ManagedZone. ResourceRecordSets -// within a ManagedZone are modified by creating a new Change element in -// the Changes collection. In turn the Changes collection also records -// the past modifications to the ResourceRecordSets in a ManagedZone. -// The current state of the ManagedZone is the sum effect of applying -// all Change elements in the Changes collection in sequence. +// deletions applied atomically to a ManagedZone. ResourceRecordSets within a +// ManagedZone are modified by creating a new Change element in the Changes +// collection. In turn the Changes collection also records the past +// modifications to the ResourceRecordSets in a ManagedZone. The current state +// of the ManagedZone is the sum effect of applying all Change elements in the +// Changes collection in sequence. type Change struct { // Additions: Which ResourceRecordSets to add? Additions []*ResourceRecordSet `json:"additions,omitempty"` - - // Deletions: Which ResourceRecordSets to remove? Must match existing - // data exactly. + // Deletions: Which ResourceRecordSets to remove? Must match existing data + // exactly. Deletions []*ResourceRecordSet `json:"deletions,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). + // Id: Unique identifier for the resource; defined by the server (output only). Id string `json:"id,omitempty"` - // IsServing: If the DNS queries for the zone will be served. - IsServing bool `json:"isServing,omitempty"` - - Kind string `json:"kind,omitempty"` - - // StartTime: The time that this operation was started by the server - // (output only). This is in RFC3339 text format. + IsServing bool `json:"isServing,omitempty"` + Kind string `json:"kind,omitempty"` + // StartTime: The time that this operation was started by the server (output + // only). This is in RFC3339 text format. StartTime string `json:"startTime,omitempty"` - - // Status: Status of the operation (output only). A status of "done" - // means that the request to update the authoritative servers has been - // sent, but the servers might not be updated yet. + // Status: Status of the operation (output only). A status of "done" means that + // the request to update the authoritative servers has been sent, but the + // servers might not be updated yet. // // Possible values: // "PENDING" // "DONE" Status string `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Additions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Additions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Additions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Change) MarshalJSON() ([]byte, error) { +func (s Change) MarshalJSON() ([]byte, error) { type NoMethod Change - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ChangesListResponse: The response to a request to enumerate Changes -// to a ResourceRecordSets collection. +// ChangesListResponse: The response to a request to enumerate Changes to a +// ResourceRecordSets collection. type ChangesListResponse struct { // Changes: The requested changes. - Changes []*Change `json:"changes,omitempty"` - - Header *ResponseHeader `json:"header,omitempty"` - + Changes []*Change `json:"changes,omitempty"` + Header *ResponseHeader `json:"header,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // pagination token. This lets you retrieve the complete contents of - // even very large collections one page at a time. However, if the - // contents of the collection change between the first and last - // paginated list request, the set of all elements returned are an - // inconsistent view of the collection. You cannot retrieve a "snapshot" - // of collections larger than the maximum page size. + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your pagination token. + // This lets you retrieve the complete contents of even very large collections + // one page at a time. However, if the contents of the collection change + // between the first and last paginated list request, the set of all elements + // returned are an inconsistent view of the collection. You cannot retrieve a + // "snapshot" of collections larger than the maximum page size. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Changes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Changes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Changes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Changes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangesListResponse) MarshalJSON() ([]byte, error) { +func (s ChangesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ChangesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DnsKey: A DNSSEC key pair. type DnsKey struct { - // Algorithm: String mnemonic specifying the DNSSEC algorithm of this - // key. Immutable after creation time. + // Algorithm: String mnemonic specifying the DNSSEC algorithm of this key. + // Immutable after creation time. // // Possible values: // "RSASHA1" @@ -384,92 +377,71 @@ type DnsKey struct { // "ECDSAP256SHA256" // "ECDSAP384SHA384" Algorithm string `json:"algorithm,omitempty"` - - // CreationTime: The time that this resource was created in the control - // plane. This is in RFC3339 text format. Output only. + // CreationTime: The time that this resource was created in the control plane. + // This is in RFC3339 text format. Output only. CreationTime string `json:"creationTime,omitempty"` - - // Description: A mutable string of at most 1024 characters associated - // with this resource for the user's convenience. Has no effect on the - // resource's function. + // Description: A mutable string of at most 1024 characters associated with + // this resource for the user's convenience. Has no effect on the resource's + // function. Description string `json:"description,omitempty"` - - // Digests: Cryptographic hashes of the DNSKEY resource record - // associated with this DnsKey. These digests are needed to construct a - // DS record that points at this DNS key. Output only. + // Digests: Cryptographic hashes of the DNSKEY resource record associated with + // this DnsKey. These digests are needed to construct a DS record that points + // at this DNS key. Output only. Digests []*DnsKeyDigest `json:"digests,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). + // Id: Unique identifier for the resource; defined by the server (output only). Id string `json:"id,omitempty"` - // IsActive: Active keys are used to sign subsequent changes to the - // ManagedZone. Inactive keys are still present as DNSKEY Resource - // Records for the use of resolvers validating existing signatures. + // ManagedZone. Inactive keys are still present as DNSKEY Resource Records for + // the use of resolvers validating existing signatures. IsActive bool `json:"isActive,omitempty"` - - // KeyLength: Length of the key in bits. Specified at creation time, and - // then immutable. + // KeyLength: Length of the key in bits. Specified at creation time, and then + // immutable. KeyLength int64 `json:"keyLength,omitempty"` - - // KeyTag: The key tag is a non-cryptographic hash of the a DNSKEY - // resource record associated with this DnsKey. The key tag can be used - // to identify a DNSKEY more quickly (but it is not a unique - // identifier). In particular, the key tag is used in a parent zone's DS - // record to point at the DNSKEY in this child ManagedZone. The key tag - // is a number in the range [0, 65535] and the algorithm to calculate it - // is specified in RFC4034 Appendix B. Output only. - KeyTag int64 `json:"keyTag,omitempty"` - - Kind string `json:"kind,omitempty"` - + // KeyTag: The key tag is a non-cryptographic hash of the a DNSKEY resource + // record associated with this DnsKey. The key tag can be used to identify a + // DNSKEY more quickly (but it is not a unique identifier). In particular, the + // key tag is used in a parent zone's DS record to point at the DNSKEY in this + // child ManagedZone. The key tag is a number in the range [0, 65535] and the + // algorithm to calculate it is specified in RFC4034 Appendix B. Output only. + KeyTag int64 `json:"keyTag,omitempty"` + Kind string `json:"kind,omitempty"` // PublicKey: Base64 encoded public half of this key. Output only. PublicKey string `json:"publicKey,omitempty"` - - // Type: One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type - // KEY_SIGNING have the Secure Entry Point flag set and, when active, - // are used to sign only resource record sets of type DNSKEY. Otherwise, - // the Secure Entry Point flag is cleared, and this key is used to sign - // only resource record sets of other types. Immutable after creation - // time. + // Type: One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have + // the Secure Entry Point flag set and, when active, are used to sign only + // resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag + // is cleared, and this key is used to sign only resource record sets of other + // types. Immutable after creation time. // // Possible values: // "KEY_SIGNING" // "ZONE_SIGNING" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Algorithm") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Algorithm") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Algorithm") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DnsKey) MarshalJSON() ([]byte, error) { +func (s DnsKey) MarshalJSON() ([]byte, error) { type NoMethod DnsKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DnsKeyDigest struct { - // Digest: The base-16 encoded bytes of this digest. Suitable for use in - // a DS resource record. + // Digest: The base-16 encoded bytes of this digest. Suitable for use in a DS + // resource record. Digest string `json:"digest,omitempty"` - // Type: Specifies the algorithm used to calculate this digest. // // Possible values: @@ -477,36 +449,28 @@ type DnsKeyDigest struct { // "SHA256" // "SHA384" Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DnsKeyDigest) MarshalJSON() ([]byte, error) { +func (s DnsKeyDigest) MarshalJSON() ([]byte, error) { type NoMethod DnsKeyDigest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DnsKeySpec: Parameters for DnsKey key generation. Used for generating -// initial keys for a new ManagedZone and as default when adding a new -// DnsKey. +// initial keys for a new ManagedZone and as default when adding a new DnsKey. type DnsKeySpec struct { - // Algorithm: String mnemonic specifying the DNSSEC algorithm of this - // key. + // Algorithm: String mnemonic specifying the DNSSEC algorithm of this key. // // Possible values: // "RSASHA1" @@ -515,254 +479,194 @@ type DnsKeySpec struct { // "ECDSAP256SHA256" // "ECDSAP384SHA384" Algorithm string `json:"algorithm,omitempty"` - // KeyLength: Length of the keys in bits. KeyLength int64 `json:"keyLength,omitempty"` - - // KeyType: Specifies whether this is a key signing key (KSK) or a zone - // signing key (ZSK). Key signing keys have the Secure Entry Point flag - // set and, when active, are only used to sign resource record sets of - // type DNSKEY. Zone signing keys do not have the Secure Entry Point - // flag set and are used to sign all other types of resource record - // sets. + // KeyType: Specifies whether this is a key signing key (KSK) or a zone signing + // key (ZSK). Key signing keys have the Secure Entry Point flag set and, when + // active, are only used to sign resource record sets of type DNSKEY. Zone + // signing keys do not have the Secure Entry Point flag set and are used to + // sign all other types of resource record sets. // // Possible values: // "KEY_SIGNING" // "ZONE_SIGNING" KeyType string `json:"keyType,omitempty"` - - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "Algorithm") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Algorithm") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Algorithm") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DnsKeySpec) MarshalJSON() ([]byte, error) { +func (s DnsKeySpec) MarshalJSON() ([]byte, error) { type NoMethod DnsKeySpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DnsKeysListResponse: The response to a request to enumerate DnsKeys -// in a ManagedZone. +// DnsKeysListResponse: The response to a request to enumerate DnsKeys in a +// ManagedZone. type DnsKeysListResponse struct { // DnsKeys: The requested resources. - DnsKeys []*DnsKey `json:"dnsKeys,omitempty"` - - Header *ResponseHeader `json:"header,omitempty"` - + DnsKeys []*DnsKey `json:"dnsKeys,omitempty"` + Header *ResponseHeader `json:"header,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // pagination token. In this way you can retrieve the complete contents - // of even very large collections one page at a time. However, if the - // contents of the collection change between the first and last - // paginated list request, the set of all elements returned are an - // inconsistent view of the collection. There is no way to retrieve a - // "snapshot" of collections larger than the maximum page size. + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your pagination token. + // In this way you can retrieve the complete contents of even very large + // collections one page at a time. However, if the contents of the collection + // change between the first and last paginated list request, the set of all + // elements returned are an inconsistent view of the collection. There is no + // way to retrieve a "snapshot" of collections larger than the maximum page + // size. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DnsKeys") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DnsKeys") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DnsKeys") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DnsKeys") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DnsKeysListResponse) MarshalJSON() ([]byte, error) { +func (s DnsKeysListResponse) MarshalJSON() ([]byte, error) { type NoMethod DnsKeysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ManagedZone: A zone is a subtree of the DNS namespace under one -// administrative responsibility. A ManagedZone is a resource that -// represents a DNS zone hosted by the Cloud DNS service. +// administrative responsibility. A ManagedZone is a resource that represents a +// DNS zone hosted by the Cloud DNS service. type ManagedZone struct { CloudLoggingConfig *ManagedZoneCloudLoggingConfig `json:"cloudLoggingConfig,omitempty"` - - // CreationTime: The time that this resource was created on the server. - // This is in RFC3339 text format. Output only. + // CreationTime: The time that this resource was created on the server. This is + // in RFC3339 text format. Output only. CreationTime string `json:"creationTime,omitempty"` - - // Description: A mutable string of at most 1024 characters associated - // with this resource for the user's convenience. Has no effect on the - // managed zone's function. + // Description: A mutable string of at most 1024 characters associated with + // this resource for the user's convenience. Has no effect on the managed + // zone's function. Description string `json:"description,omitempty"` - - // DnsName: The DNS name of this managed zone, for instance - // "example.com.". + // DnsName: The DNS name of this managed zone, for instance "example.com.". DnsName string `json:"dnsName,omitempty"` - // DnssecConfig: DNSSEC configuration. DnssecConfig *ManagedZoneDnsSecConfig `json:"dnssecConfig,omitempty"` - // ForwardingConfig: The presence for this field indicates that outbound - // forwarding is enabled for this zone. The value of this field contains - // the set of destinations to forward to. + // forwarding is enabled for this zone. The value of this field contains the + // set of destinations to forward to. ForwardingConfig *ManagedZoneForwardingConfig `json:"forwardingConfig,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only) - Id uint64 `json:"id,omitempty,string"` - + // Id: Unique identifier for the resource; defined by the server (output only) + Id uint64 `json:"id,omitempty,string"` Kind string `json:"kind,omitempty"` - // Labels: User labels. Labels map[string]string `json:"labels,omitempty"` - // Name: User assigned name for this resource. Must be unique within the - // project. The name must be 1-63 characters long, must begin with a - // letter, end with a letter or digit, and only contain lowercase - // letters, digits or dashes. + // project. The name must be 1-63 characters long, must begin with a letter, + // end with a letter or digit, and only contain lowercase letters, digits or + // dashes. Name string `json:"name,omitempty"` - - // NameServerSet: Optionally specifies the NameServerSet for this - // ManagedZone. A NameServerSet is a set of DNS name servers that all - // host the same ManagedZones. Most users leave this field unset. If you - // need to use this field, contact your account team. + // NameServerSet: Optionally specifies the NameServerSet for this ManagedZone. + // A NameServerSet is a set of DNS name servers that all host the same + // ManagedZones. Most users leave this field unset. If you need to use this + // field, contact your account team. NameServerSet string `json:"nameServerSet,omitempty"` - - // NameServers: Delegate your managed_zone to these virtual name - // servers; defined by the server (output only) + // NameServers: Delegate your managed_zone to these virtual name servers; + // defined by the server (output only) NameServers []string `json:"nameServers,omitempty"` - - // PeeringConfig: The presence of this field indicates that DNS Peering - // is enabled for this zone. The value of this field contains the - // network to peer with. + // PeeringConfig: The presence of this field indicates that DNS Peering is + // enabled for this zone. The value of this field contains the network to peer + // with. PeeringConfig *ManagedZonePeeringConfig `json:"peeringConfig,omitempty"` - - // PrivateVisibilityConfig: For privately visible zones, the set of - // Virtual Private Cloud resources that the zone is visible from. + // PrivateVisibilityConfig: For privately visible zones, the set of Virtual + // Private Cloud resources that the zone is visible from. PrivateVisibilityConfig *ManagedZonePrivateVisibilityConfig `json:"privateVisibilityConfig,omitempty"` - - // ReverseLookupConfig: The presence of this field indicates that this - // is a managed reverse lookup zone and Cloud DNS resolves reverse - // lookup queries using automatically configured records for VPC - // resources. This only applies to networks listed under - // private_visibility_config. + // ReverseLookupConfig: The presence of this field indicates that this is a + // managed reverse lookup zone and Cloud DNS resolves reverse lookup queries + // using automatically configured records for VPC resources. This only applies + // to networks listed under private_visibility_config. ReverseLookupConfig *ManagedZoneReverseLookupConfig `json:"reverseLookupConfig,omitempty"` - - // ServiceDirectoryConfig: This field links to the associated service - // directory namespace. Do not set this field for public zones or - // forwarding zones. + // ServiceDirectoryConfig: This field links to the associated service directory + // namespace. Do not set this field for public zones or forwarding zones. ServiceDirectoryConfig *ManagedZoneServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"` - - // Visibility: The zone's visibility: public zones are exposed to the - // Internet, while private zones are visible only to Virtual Private - // Cloud resources. + // Visibility: The zone's visibility: public zones are exposed to the Internet, + // while private zones are visible only to Virtual Private Cloud resources. // // Possible values: // "PUBLIC" // "PRIVATE" Visibility string `json:"visibility,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CloudLoggingConfig") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CloudLoggingConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudLoggingConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CloudLoggingConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZone) MarshalJSON() ([]byte, error) { +func (s ManagedZone) MarshalJSON() ([]byte, error) { type NoMethod ManagedZone - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ManagedZoneCloudLoggingConfig: Cloud Logging configurations for -// publicly visible zones. +// ManagedZoneCloudLoggingConfig: Cloud Logging configurations for publicly +// visible zones. type ManagedZoneCloudLoggingConfig struct { - // EnableLogging: If set, enable query logging for this ManagedZone. - // False by default, making logging opt-in. - EnableLogging bool `json:"enableLogging,omitempty"` - - Kind string `json:"kind,omitempty"` - + // EnableLogging: If set, enable query logging for this ManagedZone. False by + // default, making logging opt-in. + EnableLogging bool `json:"enableLogging,omitempty"` + Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableLogging") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnableLogging") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EnableLogging") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneCloudLoggingConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZoneCloudLoggingConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneCloudLoggingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneDnsSecConfig struct { - // DefaultKeySpecs: Specifies parameters for generating initial DnsKeys - // for this ManagedZone. Can only be changed while the state is OFF. + // DefaultKeySpecs: Specifies parameters for generating initial DnsKeys for + // this ManagedZone. Can only be changed while the state is OFF. DefaultKeySpecs []*DnsKeySpec `json:"defaultKeySpecs,omitempty"` - - Kind string `json:"kind,omitempty"` - - // NonExistence: Specifies the mechanism for authenticated - // denial-of-existence responses. Can only be changed while the state is - // OFF. + Kind string `json:"kind,omitempty"` + // NonExistence: Specifies the mechanism for authenticated denial-of-existence + // responses. Can only be changed while the state is OFF. // // Possible values: // "NSEC" // "NSEC3" NonExistence string `json:"nonExistence,omitempty"` - // State: Specifies whether DNSSEC is enabled, and what mode it is in. // // Possible values: @@ -770,1187 +674,903 @@ type ManagedZoneDnsSecConfig struct { // "ON" - DNSSEC is enabled; the zone is signed and fully managed. // "TRANSFER" - DNSSEC is enabled, but in a "transfer" mode. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultKeySpecs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultKeySpecs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DefaultKeySpecs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneDnsSecConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZoneDnsSecConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneDnsSecConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneForwardingConfig struct { Kind string `json:"kind,omitempty"` - - // TargetNameServers: List of target name servers to forward to. Cloud - // DNS selects the best available name server if more than one target is - // given. + // TargetNameServers: List of target name servers to forward to. Cloud DNS + // selects the best available name server if more than one target is given. TargetNameServers []*ManagedZoneForwardingConfigNameServerTarget `json:"targetNameServers,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneForwardingConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZoneForwardingConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneForwardingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneForwardingConfigNameServerTarget struct { - // ForwardingPath: Forwarding path for this NameServerTarget. If unset - // or set to DEFAULT, Cloud DNS makes forwarding decisions based on IP - // address ranges; that is, RFC1918 addresses go to the VPC network, - // non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud - // DNS always sends queries through the VPC network for this target. + // ForwardingPath: Forwarding path for this NameServerTarget. If unset or set + // to DEFAULT, Cloud DNS makes forwarding decisions based on IP address ranges; + // that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go + // to the internet. When set to PRIVATE, Cloud DNS always sends queries through + // the VPC network for this target. // // Possible values: - // "DEFAULT" - Cloud DNS makes forwarding decisions based on address - // ranges; that is, RFC1918 addresses forward to the target through the - // VPC and non-RFC1918 addresses forward to the target through the - // internet - // "PRIVATE" - Cloud DNS always forwards to this target through the - // VPC. + // "DEFAULT" - Cloud DNS makes forwarding decisions based on address ranges; + // that is, RFC1918 addresses forward to the target through the VPC and + // non-RFC1918 addresses forward to the target through the internet + // "PRIVATE" - Cloud DNS always forwards to this target through the VPC. ForwardingPath string `json:"forwardingPath,omitempty"` - // Ipv4Address: IPv4 address of a target name server. Ipv4Address string `json:"ipv4Address,omitempty"` - - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "ForwardingPath") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ForwardingPath") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ForwardingPath") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneForwardingConfigNameServerTarget) MarshalJSON() ([]byte, error) { +func (s ManagedZoneForwardingConfigNameServerTarget) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneForwardingConfigNameServerTarget - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneOperationsListResponse struct { Header *ResponseHeader `json:"header,omitempty"` - - Kind string `json:"kind,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // page token. This lets you retrieve the complete contents of even very - // large collections one page at a time. However, if the contents of the - // collection change between the first and last paginated list request, - // the set of all elements returned are an inconsistent view of the - // collection. You cannot retrieve a consistent snapshot of a collection - // larger than the maximum page size. + Kind string `json:"kind,omitempty"` + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your page token. This + // lets you retrieve the complete contents of even very large collections one + // page at a time. However, if the contents of the collection change between + // the first and last paginated list request, the set of all elements returned + // are an inconsistent view of the collection. You cannot retrieve a consistent + // snapshot of a collection larger than the maximum page size. NextPageToken string `json:"nextPageToken,omitempty"` - // Operations: The operation resources. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneOperationsListResponse) MarshalJSON() ([]byte, error) { +func (s ManagedZoneOperationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneOperationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonePeeringConfig struct { Kind string `json:"kind,omitempty"` - // TargetNetwork: The network with which to peer. TargetNetwork *ManagedZonePeeringConfigTargetNetwork `json:"targetNetwork,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonePeeringConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZonePeeringConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonePeeringConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonePeeringConfigTargetNetwork struct { - // DeactivateTime: The time at which the zone was deactivated, in RFC - // 3339 date-time format. An empty string indicates that the peering - // connection is active. The producer network can deactivate a zone. The - // zone is automatically deactivated if the producer network that the - // zone targeted is deleted. Output only. + // DeactivateTime: The time at which the zone was deactivated, in RFC 3339 + // date-time format. An empty string indicates that the peering connection is + // active. The producer network can deactivate a zone. The zone is + // automatically deactivated if the producer network that the zone targeted is + // deleted. Output only. DeactivateTime string `json:"deactivateTime,omitempty"` - - Kind string `json:"kind,omitempty"` - - // NetworkUrl: The fully qualified URL of the VPC network to forward - // queries to. This should be formatted like + Kind string `json:"kind,omitempty"` + // NetworkUrl: The fully qualified URL of the VPC network to forward queries + // to. This should be formatted like // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} NetworkUrl string `json:"networkUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeactivateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeactivateTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DeactivateTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonePeeringConfigTargetNetwork) MarshalJSON() ([]byte, error) { +func (s ManagedZonePeeringConfigTargetNetwork) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonePeeringConfigTargetNetwork - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonePrivateVisibilityConfig struct { - // GkeClusters: The list of Google Kubernetes Engine clusters that can - // see this zone. + // GkeClusters: The list of Google Kubernetes Engine clusters that can see this + // zone. GkeClusters []*ManagedZonePrivateVisibilityConfigGKECluster `json:"gkeClusters,omitempty"` - - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` // Networks: The list of VPC networks that can see this zone. Networks []*ManagedZonePrivateVisibilityConfigNetwork `json:"networks,omitempty"` - // ForceSendFields is a list of field names (e.g. "GkeClusters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GkeClusters") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GkeClusters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonePrivateVisibilityConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZonePrivateVisibilityConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonePrivateVisibilityConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonePrivateVisibilityConfigGKECluster struct { - // GkeClusterName: The resource name of the cluster to bind this - // ManagedZone to. This should be specified in the format like: + // GkeClusterName: The resource name of the cluster to bind this ManagedZone + // to. This should be specified in the format like: // projects/*/locations/*/clusters/*. This is referenced from GKE // projects.locations.clusters.get API: // https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get GkeClusterName string `json:"gkeClusterName,omitempty"` - - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "GkeClusterName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GkeClusterName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GkeClusterName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonePrivateVisibilityConfigGKECluster) MarshalJSON() ([]byte, error) { +func (s ManagedZonePrivateVisibilityConfigGKECluster) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonePrivateVisibilityConfigGKECluster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonePrivateVisibilityConfigNetwork struct { Kind string `json:"kind,omitempty"` - - // NetworkUrl: The fully qualified URL of the VPC network to bind to. - // Format this URL like + // NetworkUrl: The fully qualified URL of the VPC network to bind to. Format + // this URL like // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} NetworkUrl string `json:"networkUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonePrivateVisibilityConfigNetwork) MarshalJSON() ([]byte, error) { +func (s ManagedZonePrivateVisibilityConfigNetwork) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonePrivateVisibilityConfigNetwork - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneReverseLookupConfig struct { Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneReverseLookupConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZoneReverseLookupConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneReverseLookupConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ManagedZoneServiceDirectoryConfig: Contains information about Service // Directory-backed zones. type ManagedZoneServiceDirectoryConfig struct { Kind string `json:"kind,omitempty"` - - // Namespace: Contains information about the namespace associated with - // the zone. + // Namespace: Contains information about the namespace associated with the + // zone. Namespace *ManagedZoneServiceDirectoryConfigNamespace `json:"namespace,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneServiceDirectoryConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZoneServiceDirectoryConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneServiceDirectoryConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneServiceDirectoryConfigNamespace struct { - // DeletionTime: The time that the namespace backing this zone was - // deleted; an empty string if it still exists. This is in RFC3339 text - // format. Output only. + // DeletionTime: The time that the namespace backing this zone was deleted; an + // empty string if it still exists. This is in RFC3339 text format. Output + // only. DeletionTime string `json:"deletionTime,omitempty"` - - Kind string `json:"kind,omitempty"` - - // NamespaceUrl: The fully qualified URL of the namespace associated - // with the zone. Format must be + Kind string `json:"kind,omitempty"` + // NamespaceUrl: The fully qualified URL of the namespace associated with the + // zone. Format must be // https://servicedirectory.googleapis.com/v1/projects/{project}/locations/{location}/namespaces/{namespace} NamespaceUrl string `json:"namespaceUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeletionTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeletionTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeletionTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneServiceDirectoryConfigNamespace) MarshalJSON() ([]byte, error) { +func (s ManagedZoneServiceDirectoryConfigNamespace) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneServiceDirectoryConfigNamespace - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonesListResponse struct { Header *ResponseHeader `json:"header,omitempty"` - // Kind: Type of resource. Kind string `json:"kind,omitempty"` - // ManagedZones: The managed zone resources. ManagedZones []*ManagedZone `json:"managedZones,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // page token. This lets you the complete contents of even very large - // collections one page at a time. However, if the contents of the - // collection change between the first and last paginated list request, - // the set of all elements returned are an inconsistent view of the - // collection. You cannot retrieve a consistent snapshot of a collection - // larger than the maximum page size. + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your page token. This + // lets you the complete contents of even very large collections one page at a + // time. However, if the contents of the collection change between the first + // and last paginated list request, the set of all elements returned are an + // inconsistent view of the collection. You cannot retrieve a consistent + // snapshot of a collection larger than the maximum page size. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonesListResponse) MarshalJSON() ([]byte, error) { +func (s ManagedZonesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: An operation represents a successful mutation performed on -// a Cloud DNS resource. Operations provide: - An audit log of server -// resource mutations. - A way to recover/retry API calls in the case -// where the response is never received by the caller. Use the caller -// specified client_operation_id. +// Operation: An operation represents a successful mutation performed on a +// Cloud DNS resource. Operations provide: - An audit log of server resource +// mutations. - A way to recover/retry API calls in the case where the response +// is never received by the caller. Use the caller specified +// client_operation_id. type Operation struct { - // DnsKeyContext: Only populated if the operation targeted a DnsKey - // (output only). + // DnsKeyContext: Only populated if the operation targeted a DnsKey (output + // only). DnsKeyContext *OperationDnsKeyContext `json:"dnsKeyContext,omitempty"` - - // Id: Unique identifier for the resource. This is the - // client_operation_id if the client specified it when the mutation was - // initiated, otherwise, it is generated by the server. The name must be - // 1-63 characters long and match the regular expression [-a-z0-9]? - // (output only) - Id string `json:"id,omitempty"` - + // Id: Unique identifier for the resource. This is the client_operation_id if + // the client specified it when the mutation was initiated, otherwise, it is + // generated by the server. The name must be 1-63 characters long and match the + // regular expression [-a-z0-9]? (output only) + Id string `json:"id,omitempty"` Kind string `json:"kind,omitempty"` - - // StartTime: The time that this operation was started by the server. - // This is in RFC3339 text format (output only). + // StartTime: The time that this operation was started by the server. This is + // in RFC3339 text format (output only). StartTime string `json:"startTime,omitempty"` - - // Status: Status of the operation. Can be one of the following: - // "PENDING" or "DONE" (output only). A status of "DONE" means that the - // request to update the authoritative servers has been sent, but the - // servers might not be updated yet. + // Status: Status of the operation. Can be one of the following: "PENDING" or + // "DONE" (output only). A status of "DONE" means that the request to update + // the authoritative servers has been sent, but the servers might not be + // updated yet. // // Possible values: // "PENDING" // "DONE" Status string `json:"status,omitempty"` - - // Type: Type of the operation. Operations include insert, update, and - // delete (output only). + // Type: Type of the operation. Operations include insert, update, and delete + // (output only). Type string `json:"type,omitempty"` - - // User: User who requested the operation, for example: - // user@example.com. cloud-dns-system for operations automatically done - // by the system. (output only) + // User: User who requested the operation, for example: user@example.com. + // cloud-dns-system for operations automatically done by the system. (output + // only) User string `json:"user,omitempty"` - - // ZoneContext: Only populated if the operation targeted a ManagedZone - // (output only). + // ZoneContext: Only populated if the operation targeted a ManagedZone (output + // only). ZoneContext *OperationManagedZoneContext `json:"zoneContext,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DnsKeyContext") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DnsKeyContext") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DnsKeyContext") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OperationDnsKeyContext struct { // NewValue: The post-operation DnsKey resource. NewValue *DnsKey `json:"newValue,omitempty"` - // OldValue: The pre-operation DnsKey resource. OldValue *DnsKey `json:"oldValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "NewValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NewValue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NewValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationDnsKeyContext) MarshalJSON() ([]byte, error) { +func (s OperationDnsKeyContext) MarshalJSON() ([]byte, error) { type NoMethod OperationDnsKeyContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OperationManagedZoneContext struct { // NewValue: The post-operation ManagedZone resource. NewValue *ManagedZone `json:"newValue,omitempty"` - // OldValue: The pre-operation ManagedZone resource. OldValue *ManagedZone `json:"oldValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "NewValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NewValue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NewValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationManagedZoneContext) MarshalJSON() ([]byte, error) { +func (s OperationManagedZoneContext) MarshalJSON() ([]byte, error) { type NoMethod OperationManagedZoneContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PoliciesListResponse struct { Header *ResponseHeader `json:"header,omitempty"` - // Kind: Type of resource. Kind string `json:"kind,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // page token. This lets you the complete contents of even very large - // collections one page at a time. However, if the contents of the - // collection change between the first and last paginated list request, - // the set of all elements returned are an inconsistent view of the - // collection. You cannot retrieve a consistent snapshot of a collection - // larger than the maximum page size. + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your page token. This + // lets you the complete contents of even very large collections one page at a + // time. However, if the contents of the collection change between the first + // and last paginated list request, the set of all elements returned are an + // inconsistent view of the collection. You cannot retrieve a consistent + // snapshot of a collection larger than the maximum page size. NextPageToken string `json:"nextPageToken,omitempty"` - // Policies: The policy resources. Policies []*Policy `json:"policies,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoliciesListResponse) MarshalJSON() ([]byte, error) { +func (s PoliciesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PoliciesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PoliciesPatchResponse struct { Header *ResponseHeader `json:"header,omitempty"` + Policy *Policy `json:"policy,omitempty"` - Policy *Policy `json:"policy,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoliciesPatchResponse) MarshalJSON() ([]byte, error) { +func (s PoliciesPatchResponse) MarshalJSON() ([]byte, error) { type NoMethod PoliciesPatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PoliciesUpdateResponse struct { Header *ResponseHeader `json:"header,omitempty"` + Policy *Policy `json:"policy,omitempty"` - Policy *Policy `json:"policy,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoliciesUpdateResponse) MarshalJSON() ([]byte, error) { +func (s PoliciesUpdateResponse) MarshalJSON() ([]byte, error) { type NoMethod PoliciesUpdateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Policy: A policy is a collection of DNS rules applied to one or more -// Virtual Private Cloud resources. +// Policy: A policy is a collection of DNS rules applied to one or more Virtual +// Private Cloud resources. type Policy struct { // AlternativeNameServerConfig: Sets an alternative name server for the - // associated networks. When specified, all DNS queries are forwarded to - // a name server that you choose. Names such as .internal are not - // available when an alternative name server is specified. + // associated networks. When specified, all DNS queries are forwarded to a name + // server that you choose. Names such as .internal are not available when an + // alternative name server is specified. AlternativeNameServerConfig *PolicyAlternativeNameServerConfig `json:"alternativeNameServerConfig,omitempty"` - - // Description: A mutable string of at most 1024 characters associated - // with this resource for the user's convenience. Has no effect on the - // policy's function. + // Description: A mutable string of at most 1024 characters associated with + // this resource for the user's convenience. Has no effect on the policy's + // function. Description string `json:"description,omitempty"` - - // EnableInboundForwarding: Allows networks bound to this policy to - // receive DNS queries sent by VMs or applications over VPN connections. - // When enabled, a virtual IP address is allocated from each of the - // subnetworks that are bound to this policy. + // EnableInboundForwarding: Allows networks bound to this policy to receive DNS + // queries sent by VMs or applications over VPN connections. When enabled, a + // virtual IP address is allocated from each of the subnetworks that are bound + // to this policy. EnableInboundForwarding bool `json:"enableInboundForwarding,omitempty"` - - // EnableLogging: Controls whether logging is enabled for the networks - // bound to this policy. Defaults to no logging if not set. + // EnableLogging: Controls whether logging is enabled for the networks bound to + // this policy. Defaults to no logging if not set. EnableLogging bool `json:"enableLogging,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id uint64 `json:"id,omitempty,string"` - + // Id: Unique identifier for the resource; defined by the server (output only). + Id uint64 `json:"id,omitempty,string"` Kind string `json:"kind,omitempty"` - // Name: User-assigned name for this policy. Name string `json:"name,omitempty"` - - // Networks: List of network names specifying networks to which this - // policy is applied. + // Networks: List of network names specifying networks to which this policy is + // applied. Networks []*PolicyNetwork `json:"networks,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "AlternativeNameServerConfig") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "AlternativeNameServerConfig") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AlternativeNameServerConfig") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlternativeNameServerConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PolicyAlternativeNameServerConfig struct { Kind string `json:"kind,omitempty"` - // TargetNameServers: Sets an alternative name server for the associated - // networks. When specified, all DNS queries are forwarded to a name - // server that you choose. Names such as .internal are not available - // when an alternative name server is specified. + // networks. When specified, all DNS queries are forwarded to a name server + // that you choose. Names such as .internal are not available when an + // alternative name server is specified. TargetNameServers []*PolicyAlternativeNameServerConfigTargetNameServer `json:"targetNameServers,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PolicyAlternativeNameServerConfig) MarshalJSON() ([]byte, error) { +func (s PolicyAlternativeNameServerConfig) MarshalJSON() ([]byte, error) { type NoMethod PolicyAlternativeNameServerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PolicyAlternativeNameServerConfigTargetNameServer struct { - // ForwardingPath: Forwarding path for this TargetNameServer. If unset - // or set to DEFAULT, Cloud DNS makes forwarding decisions based on - // address ranges; that is, RFC1918 addresses go to the VPC network, - // non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud - // DNS always sends queries through the VPC network for this target. + // ForwardingPath: Forwarding path for this TargetNameServer. If unset or set + // to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; + // that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go + // to the internet. When set to PRIVATE, Cloud DNS always sends queries through + // the VPC network for this target. // // Possible values: // "DEFAULT" - Cloud DNS makes forwarding decision based on IP address - // ranges; that is, RFC1918 addresses forward to the target through the - // VPC and non-RFC1918 addresses forward to the target through the - // internet - // "PRIVATE" - Cloud DNS always forwards to this target through the - // VPC. + // ranges; that is, RFC1918 addresses forward to the target through the VPC and + // non-RFC1918 addresses forward to the target through the internet + // "PRIVATE" - Cloud DNS always forwards to this target through the VPC. ForwardingPath string `json:"forwardingPath,omitempty"` - // Ipv4Address: IPv4 address to forward to. Ipv4Address string `json:"ipv4Address,omitempty"` - - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "ForwardingPath") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ForwardingPath") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ForwardingPath") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PolicyAlternativeNameServerConfigTargetNameServer) MarshalJSON() ([]byte, error) { +func (s PolicyAlternativeNameServerConfigTargetNameServer) MarshalJSON() ([]byte, error) { type NoMethod PolicyAlternativeNameServerConfigTargetNameServer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PolicyNetwork struct { Kind string `json:"kind,omitempty"` - - // NetworkUrl: The fully qualified URL of the VPC network to bind to. - // This should be formatted like + // NetworkUrl: The fully qualified URL of the VPC network to bind to. This + // should be formatted like // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} NetworkUrl string `json:"networkUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PolicyNetwork) MarshalJSON() ([]byte, error) { +func (s PolicyNetwork) MarshalJSON() ([]byte, error) { type NoMethod PolicyNetwork - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Project: A project resource. The project is a top level container for -// resources including Cloud DNS ManagedZones. Projects can be created -// only in the APIs console. Next tag: 7. +// resources including Cloud DNS ManagedZones. Projects can be created only in +// the APIs console. Next tag: 7. type Project struct { // Id: User assigned unique identifier for the resource (output only). - Id string `json:"id,omitempty"` - + Id string `json:"id,omitempty"` Kind string `json:"kind,omitempty"` - - // Number: Unique numeric identifier for the resource; defined by the - // server (output only). + // Number: Unique numeric identifier for the resource; defined by the server + // (output only). Number uint64 `json:"number,omitempty,string"` - // Quota: Quotas assigned to this project (output only). Quota *Quota `json:"quota,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Project) MarshalJSON() ([]byte, error) { +func (s Project) MarshalJSON() ([]byte, error) { type NoMethod Project - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Quota: Limits associated with a Project. type Quota struct { - // DnsKeysPerManagedZone: Maximum allowed number of DnsKeys per - // ManagedZone. + // DnsKeysPerManagedZone: Maximum allowed number of DnsKeys per ManagedZone. DnsKeysPerManagedZone int64 `json:"dnsKeysPerManagedZone,omitempty"` - - // ItemsPerRoutingPolicy: Maximum allowed number of items per routing - // policy. - ItemsPerRoutingPolicy int64 `json:"itemsPerRoutingPolicy,omitempty"` - - Kind string `json:"kind,omitempty"` - + // ItemsPerRoutingPolicy: Maximum allowed number of items per routing policy. + ItemsPerRoutingPolicy int64 `json:"itemsPerRoutingPolicy,omitempty"` + Kind string `json:"kind,omitempty"` // ManagedZones: Maximum allowed number of managed zones in the project. ManagedZones int64 `json:"managedZones,omitempty"` - - // ManagedZonesPerNetwork: Maximum allowed number of managed zones which - // can be attached to a network. + // ManagedZonesPerNetwork: Maximum allowed number of managed zones which can be + // attached to a network. ManagedZonesPerNetwork int64 `json:"managedZonesPerNetwork,omitempty"` - // NetworksPerManagedZone: Maximum allowed number of networks to which a // privately scoped zone can be attached. NetworksPerManagedZone int64 `json:"networksPerManagedZone,omitempty"` - // NetworksPerPolicy: Maximum allowed number of networks per policy. NetworksPerPolicy int64 `json:"networksPerPolicy,omitempty"` - - // PeeringZonesPerTargetNetwork: Maximum allowed number of consumer - // peering zones per target network owned by this producer project + // PeeringZonesPerTargetNetwork: Maximum allowed number of consumer peering + // zones per target network owned by this producer project PeeringZonesPerTargetNetwork int64 `json:"peeringZonesPerTargetNetwork,omitempty"` - // Policies: Maximum allowed number of policies per project. Policies int64 `json:"policies,omitempty"` - - // ResourceRecordsPerRrset: Maximum allowed number of ResourceRecords - // per ResourceRecordSet. + // ResourceRecordsPerRrset: Maximum allowed number of ResourceRecords per + // ResourceRecordSet. ResourceRecordsPerRrset int64 `json:"resourceRecordsPerRrset,omitempty"` - - // RrsetAdditionsPerChange: Maximum allowed number of ResourceRecordSets - // to add per ChangesCreateRequest. + // RrsetAdditionsPerChange: Maximum allowed number of ResourceRecordSets to add + // per ChangesCreateRequest. RrsetAdditionsPerChange int64 `json:"rrsetAdditionsPerChange,omitempty"` - - // RrsetDeletionsPerChange: Maximum allowed number of ResourceRecordSets - // to delete per ChangesCreateRequest. + // RrsetDeletionsPerChange: Maximum allowed number of ResourceRecordSets to + // delete per ChangesCreateRequest. RrsetDeletionsPerChange int64 `json:"rrsetDeletionsPerChange,omitempty"` - - // RrsetsPerManagedZone: Maximum allowed number of ResourceRecordSets - // per zone in the project. + // RrsetsPerManagedZone: Maximum allowed number of ResourceRecordSets per zone + // in the project. RrsetsPerManagedZone int64 `json:"rrsetsPerManagedZone,omitempty"` - - // TargetNameServersPerManagedZone: Maximum allowed number of target - // name servers per managed forwarding zone. + // TargetNameServersPerManagedZone: Maximum allowed number of target name + // servers per managed forwarding zone. TargetNameServersPerManagedZone int64 `json:"targetNameServersPerManagedZone,omitempty"` - - // TargetNameServersPerPolicy: Maximum allowed number of alternative - // target name servers per policy. + // TargetNameServersPerPolicy: Maximum allowed number of alternative target + // name servers per policy. TargetNameServersPerPolicy int64 `json:"targetNameServersPerPolicy,omitempty"` - - // TotalRrdataSizePerChange: Maximum allowed size for total rrdata in - // one ChangesCreateRequest in bytes. + // TotalRrdataSizePerChange: Maximum allowed size for total rrdata in one + // ChangesCreateRequest in bytes. TotalRrdataSizePerChange int64 `json:"totalRrdataSizePerChange,omitempty"` - - // WhitelistedKeySpecs: DNSSEC algorithm and key length types that can - // be used for DnsKeys. + // WhitelistedKeySpecs: DNSSEC algorithm and key length types that can be used + // for DnsKeys. WhitelistedKeySpecs []*DnsKeySpec `json:"whitelistedKeySpecs,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DnsKeysPerManagedZone") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DnsKeysPerManagedZone") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DnsKeysPerManagedZone") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Quota) MarshalJSON() ([]byte, error) { +func (s Quota) MarshalJSON() ([]byte, error) { type NoMethod Quota - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RRSetRoutingPolicy: A RRSetRoutingPolicy represents ResourceRecordSet -// data that is returned dynamically with the response varying based on -// configured properties such as geolocation or by weighted random -// selection. +// RRSetRoutingPolicy: A RRSetRoutingPolicy represents ResourceRecordSet data +// that is returned dynamically with the response varying based on configured +// properties such as geolocation or by weighted random selection. type RRSetRoutingPolicy struct { - Geo *RRSetRoutingPolicyGeoPolicy `json:"geo,omitempty"` - - Kind string `json:"kind,omitempty"` - - Wrr *RRSetRoutingPolicyWrrPolicy `json:"wrr,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Geo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Geo *RRSetRoutingPolicyGeoPolicy `json:"geo,omitempty"` + Kind string `json:"kind,omitempty"` + Wrr *RRSetRoutingPolicyWrrPolicy `json:"wrr,omitempty"` + // ForceSendFields is a list of field names (e.g. "Geo") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Geo") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Geo") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RRSetRoutingPolicy) MarshalJSON() ([]byte, error) { +func (s RRSetRoutingPolicy) MarshalJSON() ([]byte, error) { type NoMethod RRSetRoutingPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RRSetRoutingPolicyGeoPolicy: Configures a RRSetRoutingPolicy that -// routes based on the geo location of the querying user. +// RRSetRoutingPolicyGeoPolicy: Configures a RRSetRoutingPolicy that routes +// based on the geo location of the querying user. type RRSetRoutingPolicyGeoPolicy struct { - // Items: The primary geo routing configuration. If there are multiple - // items with the same location, an error is returned instead. + // Items: The primary geo routing configuration. If there are multiple items + // with the same location, an error is returned instead. Items []*RRSetRoutingPolicyGeoPolicyGeoPolicyItem `json:"items,omitempty"` - - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Kind string `json:"kind,omitempty"` + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RRSetRoutingPolicyGeoPolicy) MarshalJSON() ([]byte, error) { +func (s RRSetRoutingPolicyGeoPolicy) MarshalJSON() ([]byte, error) { type NoMethod RRSetRoutingPolicyGeoPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RRSetRoutingPolicyGeoPolicyGeoPolicyItem: ResourceRecordSet data for -// one geo location. +// RRSetRoutingPolicyGeoPolicyGeoPolicyItem: ResourceRecordSet data for one geo +// location. type RRSetRoutingPolicyGeoPolicyGeoPolicyItem struct { Kind string `json:"kind,omitempty"` - - // Location: The geo-location granularity is a GCP region. This location - // string should correspond to a GCP region. e.g. "us-east1", - // "southamerica-east1", "asia-east1", etc. - Location string `json:"location,omitempty"` - - Rrdatas []string `json:"rrdatas,omitempty"` - - // SignatureRrdatas: DNSSEC generated signatures for all the rrdata - // within this item. Note that if health checked targets are provided - // for DNSSEC enabled zones, there's a restriction of 1 ip per item. . + // Location: The geo-location granularity is a GCP region. This location string + // should correspond to a GCP region. e.g. "us-east1", "southamerica-east1", + // "asia-east1", etc. + Location string `json:"location,omitempty"` + Rrdatas []string `json:"rrdatas,omitempty"` + // SignatureRrdatas: DNSSEC generated signatures for all the rrdata within this + // item. Note that if health checked targets are provided for DNSSEC enabled + // zones, there's a restriction of 1 ip per item. . SignatureRrdatas []string `json:"signatureRrdatas,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RRSetRoutingPolicyGeoPolicyGeoPolicyItem) MarshalJSON() ([]byte, error) { +func (s RRSetRoutingPolicyGeoPolicyGeoPolicyItem) MarshalJSON() ([]byte, error) { type NoMethod RRSetRoutingPolicyGeoPolicyGeoPolicyItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RRSetRoutingPolicyWrrPolicy: Configures a RRSetRoutingPolicy that -// routes in a weighted round robin fashion. +// RRSetRoutingPolicyWrrPolicy: Configures a RRSetRoutingPolicy that routes in +// a weighted round robin fashion. type RRSetRoutingPolicyWrrPolicy struct { Items []*RRSetRoutingPolicyWrrPolicyWrrPolicyItem `json:"items,omitempty"` - - Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Kind string `json:"kind,omitempty"` + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RRSetRoutingPolicyWrrPolicy) MarshalJSON() ([]byte, error) { +func (s RRSetRoutingPolicyWrrPolicy) MarshalJSON() ([]byte, error) { type NoMethod RRSetRoutingPolicyWrrPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RRSetRoutingPolicyWrrPolicyWrrPolicyItem: A routing block which -// contains the routing information for one WRR item. +// RRSetRoutingPolicyWrrPolicyWrrPolicyItem: A routing block which contains the +// routing information for one WRR item. type RRSetRoutingPolicyWrrPolicyWrrPolicyItem struct { - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` Rrdatas []string `json:"rrdatas,omitempty"` - - // SignatureRrdatas: DNSSEC generated signatures for all the rrdata - // within this item. Note that if health checked targets are provided - // for DNSSEC enabled zones, there's a restriction of 1 ip per item. . + // SignatureRrdatas: DNSSEC generated signatures for all the rrdata within this + // item. Note that if health checked targets are provided for DNSSEC enabled + // zones, there's a restriction of 1 ip per item. . SignatureRrdatas []string `json:"signatureRrdatas,omitempty"` - - // Weight: The weight corresponding to this subset of rrdata. When - // multiple WeightedRoundRobinPolicyItems are configured, the - // probability of returning an rrset is proportional to its weight - // relative to the sum of weights configured for all items. This weight - // should be non-negative. + // Weight: The weight corresponding to this subset of rrdata. When multiple + // WeightedRoundRobinPolicyItems are configured, the probability of returning + // an rrset is proportional to its weight relative to the sum of weights + // configured for all items. This weight should be non-negative. Weight float64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RRSetRoutingPolicyWrrPolicyWrrPolicyItem) MarshalJSON() ([]byte, error) { +func (s RRSetRoutingPolicyWrrPolicyWrrPolicyItem) MarshalJSON() ([]byte, error) { type NoMethod RRSetRoutingPolicyWrrPolicyWrrPolicyItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *RRSetRoutingPolicyWrrPolicyWrrPolicyItem) UnmarshalJSON(data []byte) error { @@ -1967,563 +1587,431 @@ func (s *RRSetRoutingPolicyWrrPolicyWrrPolicyItem) UnmarshalJSON(data []byte) er return nil } -// ResourceRecordSet: A unit of data that is returned by the DNS -// servers. +// ResourceRecordSet: A unit of data that is returned by the DNS servers. type ResourceRecordSet struct { Kind string `json:"kind,omitempty"` - // Name: For example, www.example.com. Name string `json:"name,omitempty"` - - // RoutingPolicy: Configures dynamic query responses based on geo - // location of querying user or a weighted round robin based routing - // policy. A ResourceRecordSet should only have either rrdata (static) - // or routing_policy (dynamic). An error is returned otherwise. + // RoutingPolicy: Configures dynamic query responses based on geo location of + // querying user or a weighted round robin based routing policy. A + // ResourceRecordSet should only have either rrdata (static) or routing_policy + // (dynamic). An error is returned otherwise. RoutingPolicy *RRSetRoutingPolicy `json:"routingPolicy,omitempty"` - - // Rrdatas: As defined in RFC 1035 (section 5) and RFC 1034 (section - // 3.6.1) -- see examples. + // Rrdatas: As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- + // see examples. Rrdatas []string `json:"rrdatas,omitempty"` - // SignatureRrdatas: As defined in RFC 4034 (section 3.2). SignatureRrdatas []string `json:"signatureRrdatas,omitempty"` - // Ttl: Number of seconds that this ResourceRecordSet can be cached by // resolvers. Ttl int64 `json:"ttl,omitempty"` - - // Type: The identifier of a supported record type. See the list of - // Supported DNS record types. + // Type: The identifier of a supported record type. See the list of Supported + // DNS record types. Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResourceRecordSet) MarshalJSON() ([]byte, error) { +func (s ResourceRecordSet) MarshalJSON() ([]byte, error) { type NoMethod ResourceRecordSet - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResourceRecordSetsListResponse struct { Header *ResponseHeader `json:"header,omitempty"` - // Kind: Type of resource. Kind string `json:"kind,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // pagination token. This lets you retrieve complete contents of even - // larger collections, one page at a time. However, if the contents of - // the collection change between the first and last paginated list - // request, the set of elements returned are an inconsistent view of the - // collection. You cannot retrieve a consistent snapshot of a collection - // larger than the maximum page size. + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your pagination token. + // This lets you retrieve complete contents of even larger collections, one + // page at a time. However, if the contents of the collection change between + // the first and last paginated list request, the set of elements returned are + // an inconsistent view of the collection. You cannot retrieve a consistent + // snapshot of a collection larger than the maximum page size. NextPageToken string `json:"nextPageToken,omitempty"` - // Rrsets: The resource record set resources. Rrsets []*ResourceRecordSet `json:"rrsets,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResourceRecordSetsListResponse) MarshalJSON() ([]byte, error) { +func (s ResourceRecordSetsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ResourceRecordSetsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ResponseHeader: Elements common to every response. type ResponseHeader struct { - // OperationId: For mutating operation requests that completed - // successfully. This is the client_operation_id if the client specified - // it, otherwise it is generated by the server (output only). + // OperationId: For mutating operation requests that completed successfully. + // This is the client_operation_id if the client specified it, otherwise it is + // generated by the server (output only). OperationId string `json:"operationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "OperationId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OperationId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OperationId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponseHeader) MarshalJSON() ([]byte, error) { +func (s ResponseHeader) MarshalJSON() ([]byte, error) { type NoMethod ResponseHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResponsePoliciesListResponse struct { Header *ResponseHeader `json:"header,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // page token. This lets you the complete contents of even very large - // collections one page at a time. However, if the contents of the - // collection change between the first and last paginated list request, - // the set of all elements returned are an inconsistent view of the - // collection. You cannot retrieve a consistent snapshot of a collection - // larger than the maximum page size. + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your page token. This + // lets you the complete contents of even very large collections one page at a + // time. However, if the contents of the collection change between the first + // and last paginated list request, the set of all elements returned are an + // inconsistent view of the collection. You cannot retrieve a consistent + // snapshot of a collection larger than the maximum page size. NextPageToken string `json:"nextPageToken,omitempty"` - // ResponsePolicies: The Response Policy resources. ResponsePolicies []*ResponsePolicy `json:"responsePolicies,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePoliciesListResponse) MarshalJSON() ([]byte, error) { +func (s ResponsePoliciesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ResponsePoliciesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResponsePoliciesPatchResponse struct { - Header *ResponseHeader `json:"header,omitempty"` - + Header *ResponseHeader `json:"header,omitempty"` ResponsePolicy *ResponsePolicy `json:"responsePolicy,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePoliciesPatchResponse) MarshalJSON() ([]byte, error) { +func (s ResponsePoliciesPatchResponse) MarshalJSON() ([]byte, error) { type NoMethod ResponsePoliciesPatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResponsePoliciesUpdateResponse struct { - Header *ResponseHeader `json:"header,omitempty"` - + Header *ResponseHeader `json:"header,omitempty"` ResponsePolicy *ResponsePolicy `json:"responsePolicy,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePoliciesUpdateResponse) MarshalJSON() ([]byte, error) { +func (s ResponsePoliciesUpdateResponse) MarshalJSON() ([]byte, error) { type NoMethod ResponsePoliciesUpdateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResponsePolicy: A Response Policy is a collection of selectors that -// apply to queries made against one or more Virtual Private Cloud -// networks. +// ResponsePolicy: A Response Policy is a collection of selectors that apply to +// queries made against one or more Virtual Private Cloud networks. type ResponsePolicy struct { // Description: User-provided description for this Response Policy. Description string `json:"description,omitempty"` - - // GkeClusters: The list of Google Kubernetes Engine clusters to which - // this response policy is applied. + // GkeClusters: The list of Google Kubernetes Engine clusters to which this + // response policy is applied. GkeClusters []*ResponsePolicyGKECluster `json:"gkeClusters,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id int64 `json:"id,omitempty,string"` - + // Id: Unique identifier for the resource; defined by the server (output only). + Id int64 `json:"id,omitempty,string"` Kind string `json:"kind,omitempty"` - - // Networks: List of network names specifying networks to which this - // policy is applied. + // Networks: List of network names specifying networks to which this policy is + // applied. Networks []*ResponsePolicyNetwork `json:"networks,omitempty"` - // ResponsePolicyName: User assigned name for this Response Policy. ResponsePolicyName string `json:"responsePolicyName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePolicy) MarshalJSON() ([]byte, error) { +func (s ResponsePolicy) MarshalJSON() ([]byte, error) { type NoMethod ResponsePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResponsePolicyGKECluster struct { - // GkeClusterName: The resource name of the cluster to bind this - // response policy to. This should be specified in the format like: + // GkeClusterName: The resource name of the cluster to bind this response + // policy to. This should be specified in the format like: // projects/*/locations/*/clusters/*. This is referenced from GKE // projects.locations.clusters.get API: // https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get GkeClusterName string `json:"gkeClusterName,omitempty"` - - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "GkeClusterName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GkeClusterName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GkeClusterName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePolicyGKECluster) MarshalJSON() ([]byte, error) { +func (s ResponsePolicyGKECluster) MarshalJSON() ([]byte, error) { type NoMethod ResponsePolicyGKECluster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResponsePolicyNetwork struct { Kind string `json:"kind,omitempty"` - - // NetworkUrl: The fully qualified URL of the VPC network to bind to. - // This should be formatted like + // NetworkUrl: The fully qualified URL of the VPC network to bind to. This + // should be formatted like // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} NetworkUrl string `json:"networkUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePolicyNetwork) MarshalJSON() ([]byte, error) { +func (s ResponsePolicyNetwork) MarshalJSON() ([]byte, error) { type NoMethod ResponsePolicyNetwork - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResponsePolicyRule: A Response Policy Rule is a selector that applies -// its behavior to queries that match the selector. Selectors are DNS -// names, which may be wildcards or exact matches. Each DNS query -// subject to a Response Policy matches at most one ResponsePolicyRule, -// as identified by the dns_name field with the longest matching suffix. +// ResponsePolicyRule: A Response Policy Rule is a selector that applies its +// behavior to queries that match the selector. Selectors are DNS names, which +// may be wildcards or exact matches. Each DNS query subject to a Response +// Policy matches at most one ResponsePolicyRule, as identified by the dns_name +// field with the longest matching suffix. type ResponsePolicyRule struct { // Behavior: Answer this query with a behavior rather than DNS data. // // Possible values: // "BEHAVIOR_UNSPECIFIED" - // "BYPASS_RESPONSE_POLICY" - Skip a less-specific ResponsePolicyRule - // and continue normal query logic. This can be used in conjunction with - // a wildcard to exempt a subset of the wildcard ResponsePolicyRule from - // the ResponsePolicy behavior and e.g., query the public internet - // instead. For instance, if these rules exist: *.example.com -> 1.2.3.4 - // foo.example.com -> PASSTHRU Then a query for 'foo.example.com' skips - // the wildcard. + // "BYPASS_RESPONSE_POLICY" - Skip a less-specific ResponsePolicyRule and + // continue normal query logic. This can be used in conjunction with a wildcard + // to exempt a subset of the wildcard ResponsePolicyRule from the + // ResponsePolicy behavior and e.g., query the public internet instead. For + // instance, if these rules exist: *.example.com -> 1.2.3.4 foo.example.com -> + // PASSTHRU Then a query for 'foo.example.com' skips the wildcard. Behavior string `json:"behavior,omitempty"` - - // DnsName: The DNS name (wildcard or exact) to apply this rule to. Must - // be unique within the Response Policy Rule. + // DnsName: The DNS name (wildcard or exact) to apply this rule to. Must be + // unique within the Response Policy Rule. DnsName string `json:"dnsName,omitempty"` - - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` // LocalData: Answer this query directly with DNS data. These - // ResourceRecordSets override any other DNS behavior for the matched - // name; in particular they override private zones, the public internet, - // and GCP internal DNS. No SOA nor NS types are allowed. + // ResourceRecordSets override any other DNS behavior for the matched name; in + // particular they override private zones, the public internet, and GCP + // internal DNS. No SOA nor NS types are allowed. LocalData *ResponsePolicyRuleLocalData `json:"localData,omitempty"` - // RuleName: An identifier for this rule. Must be unique with the // ResponsePolicy. RuleName string `json:"ruleName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Behavior") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Behavior") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Behavior") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePolicyRule) MarshalJSON() ([]byte, error) { +func (s ResponsePolicyRule) MarshalJSON() ([]byte, error) { type NoMethod ResponsePolicyRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResponsePolicyRuleLocalData struct { - // LocalDatas: All resource record sets for this selector, one per - // resource record type. The name must match the dns_name. + // LocalDatas: All resource record sets for this selector, one per resource + // record type. The name must match the dns_name. LocalDatas []*ResourceRecordSet `json:"localDatas,omitempty"` - // ForceSendFields is a list of field names (e.g. "LocalDatas") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LocalDatas") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LocalDatas") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePolicyRuleLocalData) MarshalJSON() ([]byte, error) { +func (s ResponsePolicyRuleLocalData) MarshalJSON() ([]byte, error) { type NoMethod ResponsePolicyRuleLocalData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResponsePolicyRulesListResponse struct { Header *ResponseHeader `json:"header,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // page token. This lets you the complete contents of even very large - // collections one page at a time. However, if the contents of the - // collection change between the first and last paginated list request, - // the set of all elements returned are an inconsistent view of the - // collection. You cannot retrieve a consistent snapshot of a collection - // larger than the maximum page size. + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your page token. This + // lets you the complete contents of even very large collections one page at a + // time. However, if the contents of the collection change between the first + // and last paginated list request, the set of all elements returned are an + // inconsistent view of the collection. You cannot retrieve a consistent + // snapshot of a collection larger than the maximum page size. NextPageToken string `json:"nextPageToken,omitempty"` - // ResponsePolicyRules: The Response Policy Rule resources. ResponsePolicyRules []*ResponsePolicyRule `json:"responsePolicyRules,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePolicyRulesListResponse) MarshalJSON() ([]byte, error) { +func (s ResponsePolicyRulesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ResponsePolicyRulesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResponsePolicyRulesPatchResponse struct { - Header *ResponseHeader `json:"header,omitempty"` - + Header *ResponseHeader `json:"header,omitempty"` ResponsePolicyRule *ResponsePolicyRule `json:"responsePolicyRule,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePolicyRulesPatchResponse) MarshalJSON() ([]byte, error) { +func (s ResponsePolicyRulesPatchResponse) MarshalJSON() ([]byte, error) { type NoMethod ResponsePolicyRulesPatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResponsePolicyRulesUpdateResponse struct { - Header *ResponseHeader `json:"header,omitempty"` - + Header *ResponseHeader `json:"header,omitempty"` ResponsePolicyRule *ResponsePolicyRule `json:"responsePolicyRule,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponsePolicyRulesUpdateResponse) MarshalJSON() ([]byte, error) { +func (s ResponsePolicyRulesUpdateResponse) MarshalJSON() ([]byte, error) { type NoMethod ResponsePolicyRulesUpdateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "dns.changes.create": - type ChangesCreateCall struct { s *Service project string @@ -2538,8 +2026,8 @@ type ChangesCreateCall struct { // Create: Atomically updates the ResourceRecordSet collection. // // - location: . -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *ChangesService) Create(project string, location string, managedZone string, change *Change) *ChangesCreateCall { c := &ChangesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -2550,33 +2038,30 @@ func (r *ChangesService) Create(project string, location string, managedZone str return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ChangesCreateCall) ClientOperationId(clientOperationId string) *ChangesCreateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangesCreateCall) Fields(s ...googleapi.Field) *ChangesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangesCreateCall) Context(ctx context.Context) *ChangesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2585,18 +2070,12 @@ func (c *ChangesCreateCall) Header() http.Header { } func (c *ChangesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.change) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes") @@ -2611,16 +2090,14 @@ func (c *ChangesCreateCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.create" call. -// Exactly one of *Change or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Change.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Change.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ChangesCreateCall) Do(opts ...googleapi.CallOption) (*Change, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2628,17 +2105,17 @@ func (c *ChangesCreateCall) Do(opts ...googleapi.CallOption) (*Change, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Change{ ServerResponse: googleapi.ServerResponse{ @@ -2651,57 +2128,7 @@ func (c *ChangesCreateCall) Do(opts ...googleapi.CallOption) (*Change, error) { return nil, err } return ret, nil - // { - // "description": "Atomically updates the ResourceRecordSet collection.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes", - // "httpMethod": "POST", - // "id": "dns.changes.create", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes", - // "request": { - // "$ref": "Change" - // }, - // "response": { - // "$ref": "Change" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.changes.get": +} type ChangesGetCall struct { s *Service @@ -2720,8 +2147,8 @@ type ChangesGetCall struct { // - changeId: The identifier of the requested change, from a previous // ResourceRecordSetsChangeResponse. // - location: . -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *ChangesService) Get(project string, location string, managedZone string, changeId string) *ChangesGetCall { c := &ChangesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -2732,43 +2159,38 @@ func (r *ChangesService) Get(project string, location string, managedZone string return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ChangesGetCall) ClientOperationId(clientOperationId string) *ChangesGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangesGetCall) Fields(s ...googleapi.Field) *ChangesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangesGetCall) IfNoneMatch(entityTag string) *ChangesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangesGetCall) Context(ctx context.Context) *ChangesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2777,12 +2199,7 @@ func (c *ChangesGetCall) Header() http.Header { } func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2802,16 +2219,14 @@ func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) { "managedZone": c.managedZone, "changeId": c.changeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.get" call. -// Exactly one of *Change or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Change.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Change.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ChangesGetCall) Do(opts ...googleapi.CallOption) (*Change, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2819,17 +2234,17 @@ func (c *ChangesGetCall) Do(opts ...googleapi.CallOption) (*Change, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Change{ ServerResponse: googleapi.ServerResponse{ @@ -2842,63 +2257,7 @@ func (c *ChangesGetCall) Do(opts ...googleapi.CallOption) (*Change, error) { return nil, err } return ret, nil - // { - // "description": "Fetches the representation of an existing Change.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes/{changeId}", - // "httpMethod": "GET", - // "id": "dns.changes.get", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone", - // "changeId" - // ], - // "parameters": { - // "changeId": { - // "description": "The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes/{changeId}", - // "response": { - // "$ref": "Change" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.changes.list": +} type ChangesListCall struct { s *Service @@ -2914,8 +2273,8 @@ type ChangesListCall struct { // List: Enumerates Changes to a ResourceRecordSet collection. // // - location: . -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *ChangesService) List(project string, location string, managedZone string) *ChangesListCall { c := &ChangesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -2925,24 +2284,24 @@ func (r *ChangesService) List(project string, location string, managedZone strin return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server decides how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server decides how many results +// to return. func (c *ChangesListCall) MaxResults(maxResults int64) *ChangesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *ChangesListCall) PageToken(pageToken string) *ChangesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// SortBy sets the optional parameter "sortBy": Sorting criterion. The -// only supported value is change sequence. +// SortBy sets the optional parameter "sortBy": Sorting criterion. The only +// supported value is change sequence. // // Possible values: // @@ -2952,41 +2311,37 @@ func (c *ChangesListCall) SortBy(sortBy string) *ChangesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Sorting order -// direction: 'ascending' or 'descending'. +// SortOrder sets the optional parameter "sortOrder": Sorting order direction: +// 'ascending' or 'descending'. func (c *ChangesListCall) SortOrder(sortOrder string) *ChangesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangesListCall) Fields(s ...googleapi.Field) *ChangesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangesListCall) IfNoneMatch(entityTag string) *ChangesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangesListCall) Context(ctx context.Context) *ChangesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2995,12 +2350,7 @@ func (c *ChangesListCall) Header() http.Header { } func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3019,16 +2369,15 @@ func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.list" call. -// Exactly one of *ChangesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ChangesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3036,17 +2385,17 @@ func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangesListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3059,76 +2408,6 @@ func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangesListResponse return nil, err } return ret, nil - // { - // "description": "Enumerates Changes to a ResourceRecordSet collection.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes", - // "httpMethod": "GET", - // "id": "dns.changes.list", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone" - // ], - // "parameters": { - // "location": { - // "default": "global", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortBy": { - // "default": "CHANGE_SEQUENCE", - // "description": "Sorting criterion. The only supported value is change sequence.", - // "enum": [ - // "CHANGE_SEQUENCE" - // ], - // "enumDescriptions": [ - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "description": "Sorting order direction: 'ascending' or 'descending'.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes", - // "response": { - // "$ref": "ChangesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -3136,7 +2415,7 @@ func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangesListResponse // The provided context supersedes any context provided to the Context method. func (c *ChangesListCall) Pages(ctx context.Context, f func(*ChangesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3152,8 +2431,6 @@ func (c *ChangesListCall) Pages(ctx context.Context, f func(*ChangesListResponse } } -// method id "dns.dnsKeys.get": - type DnsKeysGetCall struct { s *Service project string @@ -3169,10 +2446,10 @@ type DnsKeysGetCall struct { // Get: Fetches the representation of an existing DnsKey. // // - dnsKeyId: The identifier of the requested DnsKey. -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *DnsKeysService) Get(project string, location string, managedZone string, dnsKeyId string) *DnsKeysGetCall { c := &DnsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -3183,52 +2460,46 @@ func (r *DnsKeysService) Get(project string, location string, managedZone string return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *DnsKeysGetCall) ClientOperationId(clientOperationId string) *DnsKeysGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // DigestType sets the optional parameter "digestType": An optional -// comma-separated list of digest types to compute and display for key -// signing keys. If omitted, the recommended digest type is computed and -// displayed. +// comma-separated list of digest types to compute and display for key signing +// keys. If omitted, the recommended digest type is computed and displayed. func (c *DnsKeysGetCall) DigestType(digestType string) *DnsKeysGetCall { c.urlParams_.Set("digestType", digestType) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DnsKeysGetCall) Fields(s ...googleapi.Field) *DnsKeysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DnsKeysGetCall) IfNoneMatch(entityTag string) *DnsKeysGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DnsKeysGetCall) Context(ctx context.Context) *DnsKeysGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DnsKeysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3237,12 +2508,7 @@ func (c *DnsKeysGetCall) Header() http.Header { } func (c *DnsKeysGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3262,16 +2528,14 @@ func (c *DnsKeysGetCall) doRequest(alt string) (*http.Response, error) { "managedZone": c.managedZone, "dnsKeyId": c.dnsKeyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.dnsKeys.get" call. -// Exactly one of *DnsKey or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *DnsKey.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DnsKey.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DnsKeysGetCall) Do(opts ...googleapi.CallOption) (*DnsKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3279,17 +2543,17 @@ func (c *DnsKeysGetCall) Do(opts ...googleapi.CallOption) (*DnsKey, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DnsKey{ ServerResponse: googleapi.ServerResponse{ @@ -3302,69 +2566,7 @@ func (c *DnsKeysGetCall) Do(opts ...googleapi.CallOption) (*DnsKey, error) { return nil, err } return ret, nil - // { - // "description": "Fetches the representation of an existing DnsKey.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}", - // "httpMethod": "GET", - // "id": "dns.dnsKeys.get", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone", - // "dnsKeyId" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "digestType": { - // "description": "An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type is computed and displayed.", - // "location": "query", - // "type": "string" - // }, - // "dnsKeyId": { - // "description": "The identifier of the requested DnsKey.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}", - // "response": { - // "$ref": "DnsKey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.dnsKeys.list": +} type DnsKeysListCall struct { s *Service @@ -3379,10 +2581,10 @@ type DnsKeysListCall struct { // List: Enumerates DnsKeys to a ResourceRecordSet collection. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *DnsKeysService) List(project string, location string, managedZone string) *DnsKeysListCall { c := &DnsKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -3393,58 +2595,53 @@ func (r *DnsKeysService) List(project string, location string, managedZone strin } // DigestType sets the optional parameter "digestType": An optional -// comma-separated list of digest types to compute and display for key -// signing keys. If omitted, the recommended digest type is computed and -// displayed. +// comma-separated list of digest types to compute and display for key signing +// keys. If omitted, the recommended digest type is computed and displayed. func (c *DnsKeysListCall) DigestType(digestType string) *DnsKeysListCall { c.urlParams_.Set("digestType", digestType) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server decides how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server decides how many results +// to return. func (c *DnsKeysListCall) MaxResults(maxResults int64) *DnsKeysListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *DnsKeysListCall) PageToken(pageToken string) *DnsKeysListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DnsKeysListCall) Fields(s ...googleapi.Field) *DnsKeysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DnsKeysListCall) IfNoneMatch(entityTag string) *DnsKeysListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DnsKeysListCall) Context(ctx context.Context) *DnsKeysListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DnsKeysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3453,12 +2650,7 @@ func (c *DnsKeysListCall) Header() http.Header { } func (c *DnsKeysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3477,16 +2669,15 @@ func (c *DnsKeysListCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.dnsKeys.list" call. -// Exactly one of *DnsKeysListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DnsKeysListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DnsKeysListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DnsKeysListCall) Do(opts ...googleapi.CallOption) (*DnsKeysListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3494,17 +2685,17 @@ func (c *DnsKeysListCall) Do(opts ...googleapi.CallOption) (*DnsKeysListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DnsKeysListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3517,65 +2708,6 @@ func (c *DnsKeysListCall) Do(opts ...googleapi.CallOption) (*DnsKeysListResponse return nil, err } return ret, nil - // { - // "description": "Enumerates DnsKeys to a ResourceRecordSet collection.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys", - // "httpMethod": "GET", - // "id": "dns.dnsKeys.list", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone" - // ], - // "parameters": { - // "digestType": { - // "description": "An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type is computed and displayed.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys", - // "response": { - // "$ref": "DnsKeysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -3583,7 +2715,7 @@ func (c *DnsKeysListCall) Do(opts ...googleapi.CallOption) (*DnsKeysListResponse // The provided context supersedes any context provided to the Context method. func (c *DnsKeysListCall) Pages(ctx context.Context, f func(*DnsKeysListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3599,8 +2731,6 @@ func (c *DnsKeysListCall) Pages(ctx context.Context, f func(*DnsKeysListResponse } } -// method id "dns.managedZoneOperations.get": - type ManagedZoneOperationsGetCall struct { s *Service project string @@ -3615,11 +2745,11 @@ type ManagedZoneOperationsGetCall struct { // Get: Fetches the representation of an existing Operation. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - managedZone: Identifies the managed zone addressed by this request. -// - operation: Identifies the operation addressed by this request (ID -// of the operation). +// - operation: Identifies the operation addressed by this request (ID of the +// operation). // - project: Identifies the project addressed by this request. func (r *ManagedZoneOperationsService) Get(project string, location string, managedZone string, operation string) *ManagedZoneOperationsGetCall { c := &ManagedZoneOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -3630,43 +2760,38 @@ func (r *ManagedZoneOperationsService) Get(project string, location string, mana return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZoneOperationsGetCall) ClientOperationId(clientOperationId string) *ManagedZoneOperationsGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZoneOperationsGetCall) Fields(s ...googleapi.Field) *ManagedZoneOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagedZoneOperationsGetCall) IfNoneMatch(entityTag string) *ManagedZoneOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZoneOperationsGetCall) Context(ctx context.Context) *ManagedZoneOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZoneOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3675,12 +2800,7 @@ func (c *ManagedZoneOperationsGetCall) Header() http.Header { } func (c *ManagedZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3700,16 +2820,14 @@ func (c *ManagedZoneOperationsGetCall) doRequest(alt string) (*http.Response, er "managedZone": c.managedZone, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZoneOperations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ManagedZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3717,17 +2835,17 @@ func (c *ManagedZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3740,64 +2858,7 @@ func (c *ManagedZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operat return nil, err } return ret, nil - // { - // "description": "Fetches the representation of an existing Operation.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations/{operation}", - // "httpMethod": "GET", - // "id": "dns.managedZoneOperations.get", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone", - // "operation" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "operation": { - // "description": "Identifies the operation addressed by this request (ID of the operation).", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations/{operation}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.managedZoneOperations.list": +} type ManagedZoneOperationsListCall struct { s *Service @@ -3812,8 +2873,8 @@ type ManagedZoneOperationsListCall struct { // List: Enumerates Operations for the given ManagedZone. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - managedZone: Identifies the managed zone addressed by this request. // - project: Identifies the project addressed by this request. func (r *ManagedZoneOperationsService) List(project string, location string, managedZone string) *ManagedZoneOperationsListCall { @@ -3824,24 +2885,24 @@ func (r *ManagedZoneOperationsService) List(project string, location string, man return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server decides how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server decides how many results +// to return. func (c *ManagedZoneOperationsListCall) MaxResults(maxResults int64) *ManagedZoneOperationsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *ManagedZoneOperationsListCall) PageToken(pageToken string) *ManagedZoneOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// SortBy sets the optional parameter "sortBy": Sorting criterion. The -// only supported values are START_TIME and ID. +// SortBy sets the optional parameter "sortBy": Sorting criterion. The only +// supported values are START_TIME and ID. // // Possible values: // @@ -3853,33 +2914,29 @@ func (c *ManagedZoneOperationsListCall) SortBy(sortBy string) *ManagedZoneOperat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZoneOperationsListCall) Fields(s ...googleapi.Field) *ManagedZoneOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagedZoneOperationsListCall) IfNoneMatch(entityTag string) *ManagedZoneOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZoneOperationsListCall) Context(ctx context.Context) *ManagedZoneOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZoneOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3888,12 +2945,7 @@ func (c *ManagedZoneOperationsListCall) Header() http.Header { } func (c *ManagedZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3912,17 +2964,15 @@ func (c *ManagedZoneOperationsListCall) doRequest(alt string) (*http.Response, e "location": c.location, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZoneOperations.list" call. -// Exactly one of *ManagedZoneOperationsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ManagedZoneOperationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManagedZoneOperationsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ManagedZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*ManagedZoneOperationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3930,17 +2980,17 @@ func (c *ManagedZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*Manag if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ManagedZoneOperationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3953,74 +3003,6 @@ func (c *ManagedZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*Manag return nil, err } return ret, nil - // { - // "description": "Enumerates Operations for the given ManagedZone.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations", - // "httpMethod": "GET", - // "id": "dns.managedZoneOperations.list", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone" - // ], - // "parameters": { - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortBy": { - // "default": "START_TIME", - // "description": "Sorting criterion. The only supported values are START_TIME and ID.", - // "enum": [ - // "START_TIME", - // "ID" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations", - // "response": { - // "$ref": "ManagedZoneOperationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -4028,7 +3010,7 @@ func (c *ManagedZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*Manag // The provided context supersedes any context provided to the Context method. func (c *ManagedZoneOperationsListCall) Pages(ctx context.Context, f func(*ManagedZoneOperationsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4044,8 +3026,6 @@ func (c *ManagedZoneOperationsListCall) Pages(ctx context.Context, f func(*Manag } } -// method id "dns.managedZones.create": - type ManagedZonesCreateCall struct { s *Service project string @@ -4058,8 +3038,8 @@ type ManagedZonesCreateCall struct { // Create: Creates a new ManagedZone. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. func (r *ManagedZonesService) Create(project string, location string, managedzone *ManagedZone) *ManagedZonesCreateCall { c := &ManagedZonesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -4069,33 +3049,30 @@ func (r *ManagedZonesService) Create(project string, location string, managedzon return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZonesCreateCall) ClientOperationId(clientOperationId string) *ManagedZonesCreateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesCreateCall) Fields(s ...googleapi.Field) *ManagedZonesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesCreateCall) Context(ctx context.Context) *ManagedZonesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4104,18 +3081,12 @@ func (c *ManagedZonesCreateCall) Header() http.Header { } func (c *ManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.managedzone) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/managedZones") @@ -4129,16 +3100,14 @@ func (c *ManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.create" call. -// Exactly one of *ManagedZone or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ManagedZone.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManagedZone.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ManagedZonesCreateCall) Do(opts ...googleapi.CallOption) (*ManagedZone, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4146,17 +3115,17 @@ func (c *ManagedZonesCreateCall) Do(opts ...googleapi.CallOption) (*ManagedZone, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ManagedZone{ ServerResponse: googleapi.ServerResponse{ @@ -4169,51 +3138,7 @@ func (c *ManagedZonesCreateCall) Do(opts ...googleapi.CallOption) (*ManagedZone, return nil, err } return ret, nil - // { - // "description": "Creates a new ManagedZone.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones", - // "httpMethod": "POST", - // "id": "dns.managedZones.create", - // "parameterOrder": [ - // "project", - // "location" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones", - // "request": { - // "$ref": "ManagedZone" - // }, - // "response": { - // "$ref": "ManagedZone" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.managedZones.delete": +} type ManagedZonesDeleteCall struct { s *Service @@ -4227,10 +3152,10 @@ type ManagedZonesDeleteCall struct { // Delete: Deletes a previously created ManagedZone. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *ManagedZonesService) Delete(project string, location string, managedZone string) *ManagedZonesDeleteCall { c := &ManagedZonesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -4240,33 +3165,30 @@ func (r *ManagedZonesService) Delete(project string, location string, managedZon return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZonesDeleteCall) ClientOperationId(clientOperationId string) *ManagedZonesDeleteCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesDeleteCall) Fields(s ...googleapi.Field) *ManagedZonesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesDeleteCall) Context(ctx context.Context) *ManagedZonesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4275,12 +3197,7 @@ func (c *ManagedZonesDeleteCall) Header() http.Header { } func (c *ManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4296,7 +3213,7 @@ func (c *ManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.delete" call. @@ -4308,55 +3225,10 @@ func (c *ManagedZonesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a previously created ManagedZone.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}", - // "httpMethod": "DELETE", - // "id": "dns.managedZones.delete", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}", - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.managedZones.get": +} type ManagedZonesGetCall struct { s *Service @@ -4371,10 +3243,10 @@ type ManagedZonesGetCall struct { // Get: Fetches the representation of an existing ManagedZone. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *ManagedZonesService) Get(project string, location string, managedZone string) *ManagedZonesGetCall { c := &ManagedZonesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -4384,43 +3256,38 @@ func (r *ManagedZonesService) Get(project string, location string, managedZone s return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZonesGetCall) ClientOperationId(clientOperationId string) *ManagedZonesGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesGetCall) Fields(s ...googleapi.Field) *ManagedZonesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagedZonesGetCall) IfNoneMatch(entityTag string) *ManagedZonesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesGetCall) Context(ctx context.Context) *ManagedZonesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4429,12 +3296,7 @@ func (c *ManagedZonesGetCall) Header() http.Header { } func (c *ManagedZonesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4453,16 +3315,14 @@ func (c *ManagedZonesGetCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.get" call. -// Exactly one of *ManagedZone or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ManagedZone.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManagedZone.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ManagedZonesGetCall) Do(opts ...googleapi.CallOption) (*ManagedZone, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4470,17 +3330,17 @@ func (c *ManagedZonesGetCall) Do(opts ...googleapi.CallOption) (*ManagedZone, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ManagedZone{ ServerResponse: googleapi.ServerResponse{ @@ -4493,57 +3353,7 @@ func (c *ManagedZonesGetCall) Do(opts ...googleapi.CallOption) (*ManagedZone, er return nil, err } return ret, nil - // { - // "description": "Fetches the representation of an existing ManagedZone.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}", - // "httpMethod": "GET", - // "id": "dns.managedZones.get", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}", - // "response": { - // "$ref": "ManagedZone" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.managedZones.list": +} type ManagedZonesListCall struct { s *Service @@ -4555,11 +3365,10 @@ type ManagedZonesListCall struct { header_ http.Header } -// List: Enumerates ManagedZones that have been created but not yet -// deleted. +// List: Enumerates ManagedZones that have been created but not yet deleted. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. func (r *ManagedZonesService) List(project string, location string) *ManagedZonesListCall { c := &ManagedZonesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -4568,57 +3377,53 @@ func (r *ManagedZonesService) List(project string, location string) *ManagedZone return c } -// DnsName sets the optional parameter "dnsName": Restricts the list to -// return only zones with this domain name. +// DnsName sets the optional parameter "dnsName": Restricts the list to return +// only zones with this domain name. func (c *ManagedZonesListCall) DnsName(dnsName string) *ManagedZonesListCall { c.urlParams_.Set("dnsName", dnsName) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server decides how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server decides how many results +// to return. func (c *ManagedZonesListCall) MaxResults(maxResults int64) *ManagedZonesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *ManagedZonesListCall) PageToken(pageToken string) *ManagedZonesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesListCall) Fields(s ...googleapi.Field) *ManagedZonesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagedZonesListCall) IfNoneMatch(entityTag string) *ManagedZonesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesListCall) Context(ctx context.Context) *ManagedZonesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4627,12 +3432,7 @@ func (c *ManagedZonesListCall) Header() http.Header { } func (c *ManagedZonesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4650,16 +3450,15 @@ func (c *ManagedZonesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.list" call. -// Exactly one of *ManagedZonesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *ManagedZonesListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ManagedZonesListCall) Do(opts ...googleapi.CallOption) (*ManagedZonesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4667,17 +3466,17 @@ func (c *ManagedZonesListCall) Do(opts ...googleapi.CallOption) (*ManagedZonesLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ManagedZonesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4690,58 +3489,6 @@ func (c *ManagedZonesListCall) Do(opts ...googleapi.CallOption) (*ManagedZonesLi return nil, err } return ret, nil - // { - // "description": "Enumerates ManagedZones that have been created but not yet deleted.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones", - // "httpMethod": "GET", - // "id": "dns.managedZones.list", - // "parameterOrder": [ - // "project", - // "location" - // ], - // "parameters": { - // "dnsName": { - // "description": "Restricts the list to return only zones with this domain name.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones", - // "response": { - // "$ref": "ManagedZonesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -4749,7 +3496,7 @@ func (c *ManagedZonesListCall) Do(opts ...googleapi.CallOption) (*ManagedZonesLi // The provided context supersedes any context provided to the Context method. func (c *ManagedZonesListCall) Pages(ctx context.Context, f func(*ManagedZonesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4765,8 +3512,6 @@ func (c *ManagedZonesListCall) Pages(ctx context.Context, f func(*ManagedZonesLi } } -// method id "dns.managedZones.patch": - type ManagedZonesPatchCall struct { s *Service project string @@ -4780,10 +3525,10 @@ type ManagedZonesPatchCall struct { // Patch: Applies a partial update to an existing ManagedZone. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *ManagedZonesService) Patch(project string, location string, managedZone string, managedzone *ManagedZone) *ManagedZonesPatchCall { c := &ManagedZonesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -4794,33 +3539,30 @@ func (r *ManagedZonesService) Patch(project string, location string, managedZone return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZonesPatchCall) ClientOperationId(clientOperationId string) *ManagedZonesPatchCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesPatchCall) Fields(s ...googleapi.Field) *ManagedZonesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesPatchCall) Context(ctx context.Context) *ManagedZonesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4829,18 +3571,12 @@ func (c *ManagedZonesPatchCall) Header() http.Header { } func (c *ManagedZonesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.managedzone) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}") @@ -4855,16 +3591,14 @@ func (c *ManagedZonesPatchCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ManagedZonesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4872,17 +3606,17 @@ func (c *ManagedZonesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4895,58 +3629,7 @@ func (c *ManagedZonesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, er return nil, err } return ret, nil - // { - // "description": "Applies a partial update to an existing ManagedZone.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}", - // "httpMethod": "PATCH", - // "id": "dns.managedZones.patch", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}", - // "request": { - // "$ref": "ManagedZone" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.managedZones.update": +} type ManagedZonesUpdateCall struct { s *Service @@ -4961,10 +3644,10 @@ type ManagedZonesUpdateCall struct { // Update: Updates an existing ManagedZone. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *ManagedZonesService) Update(project string, location string, managedZone string, managedzone *ManagedZone) *ManagedZonesUpdateCall { c := &ManagedZonesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -4975,33 +3658,30 @@ func (r *ManagedZonesService) Update(project string, location string, managedZon return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZonesUpdateCall) ClientOperationId(clientOperationId string) *ManagedZonesUpdateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesUpdateCall) Fields(s ...googleapi.Field) *ManagedZonesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesUpdateCall) Context(ctx context.Context) *ManagedZonesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5010,18 +3690,12 @@ func (c *ManagedZonesUpdateCall) Header() http.Header { } func (c *ManagedZonesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.managedzone) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}") @@ -5036,16 +3710,14 @@ func (c *ManagedZonesUpdateCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.update" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ManagedZonesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5053,17 +3725,17 @@ func (c *ManagedZonesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5076,58 +3748,7 @@ func (c *ManagedZonesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, e return nil, err } return ret, nil - // { - // "description": "Updates an existing ManagedZone.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}", - // "httpMethod": "PUT", - // "id": "dns.managedZones.update", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}", - // "request": { - // "$ref": "ManagedZone" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.policies.create": +} type PoliciesCreateCall struct { s *Service @@ -5141,8 +3762,8 @@ type PoliciesCreateCall struct { // Create: Creates a new Policy. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. func (r *PoliciesService) Create(project string, location string, policy *Policy) *PoliciesCreateCall { c := &PoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5152,33 +3773,30 @@ func (r *PoliciesService) Create(project string, location string, policy *Policy return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *PoliciesCreateCall) ClientOperationId(clientOperationId string) *PoliciesCreateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesCreateCall) Fields(s ...googleapi.Field) *PoliciesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesCreateCall) Context(ctx context.Context) *PoliciesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5187,18 +3805,12 @@ func (c *PoliciesCreateCall) Header() http.Header { } func (c *PoliciesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.policy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/policies") @@ -5212,16 +3824,14 @@ func (c *PoliciesCreateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.create" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5229,17 +3839,17 @@ func (c *PoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Policy, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -5252,51 +3862,7 @@ func (c *PoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Policy, error) { return nil, err } return ret, nil - // { - // "description": "Creates a new Policy.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/policies", - // "httpMethod": "POST", - // "id": "dns.policies.create", - // "parameterOrder": [ - // "project", - // "location" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/policies", - // "request": { - // "$ref": "Policy" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.policies.delete": +} type PoliciesDeleteCall struct { s *Service @@ -5308,13 +3874,12 @@ type PoliciesDeleteCall struct { header_ http.Header } -// Delete: Deletes a previously created Policy. Fails if the policy is -// still being referenced by a network. +// Delete: Deletes a previously created Policy. Fails if the policy is still +// being referenced by a network. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - policy: User given friendly name of the policy addressed by this -// request. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - policy: User given friendly name of the policy addressed by this request. // - project: Identifies the project addressed by this request. func (r *PoliciesService) Delete(project string, location string, policy string) *PoliciesDeleteCall { c := &PoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5324,33 +3889,30 @@ func (r *PoliciesService) Delete(project string, location string, policy string) return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *PoliciesDeleteCall) ClientOperationId(clientOperationId string) *PoliciesDeleteCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesDeleteCall) Fields(s ...googleapi.Field) *PoliciesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesDeleteCall) Context(ctx context.Context) *PoliciesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5359,12 +3921,7 @@ func (c *PoliciesDeleteCall) Header() http.Header { } func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5380,7 +3937,7 @@ func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.delete" call. @@ -5392,55 +3949,10 @@ func (c *PoliciesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a previously created Policy. Fails if the policy is still being referenced by a network.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/policies/{policy}", - // "httpMethod": "DELETE", - // "id": "dns.policies.delete", - // "parameterOrder": [ - // "project", - // "location", - // "policy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "policy": { - // "description": "User given friendly name of the policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/policies/{policy}", - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.policies.get": +} type PoliciesGetCall struct { s *Service @@ -5455,10 +3967,9 @@ type PoliciesGetCall struct { // Get: Fetches the representation of an existing Policy. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - policy: User given friendly name of the policy addressed by this -// request. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - policy: User given friendly name of the policy addressed by this request. // - project: Identifies the project addressed by this request. func (r *PoliciesService) Get(project string, location string, policy string) *PoliciesGetCall { c := &PoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5468,43 +3979,38 @@ func (r *PoliciesService) Get(project string, location string, policy string) *P return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *PoliciesGetCall) ClientOperationId(clientOperationId string) *PoliciesGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesGetCall) Fields(s ...googleapi.Field) *PoliciesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PoliciesGetCall) IfNoneMatch(entityTag string) *PoliciesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesGetCall) Context(ctx context.Context) *PoliciesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5513,12 +4019,7 @@ func (c *PoliciesGetCall) Header() http.Header { } func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5537,16 +4038,14 @@ func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.get" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PoliciesGetCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5554,17 +4053,17 @@ func (c *PoliciesGetCall) Do(opts ...googleapi.CallOption) (*Policy, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -5577,57 +4076,7 @@ func (c *PoliciesGetCall) Do(opts ...googleapi.CallOption) (*Policy, error) { return nil, err } return ret, nil - // { - // "description": "Fetches the representation of an existing Policy.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/policies/{policy}", - // "httpMethod": "GET", - // "id": "dns.policies.get", - // "parameterOrder": [ - // "project", - // "location", - // "policy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "policy": { - // "description": "User given friendly name of the policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/policies/{policy}", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.policies.list": +} type PoliciesListCall struct { s *Service @@ -5641,8 +4090,8 @@ type PoliciesListCall struct { // List: Enumerates all Policies associated with a project. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. func (r *PoliciesService) List(project string, location string) *PoliciesListCall { c := &PoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5651,50 +4100,46 @@ func (r *PoliciesService) List(project string, location string) *PoliciesListCal return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server decides how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server decides how many results +// to return. func (c *PoliciesListCall) MaxResults(maxResults int64) *PoliciesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *PoliciesListCall) PageToken(pageToken string) *PoliciesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesListCall) Fields(s ...googleapi.Field) *PoliciesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PoliciesListCall) IfNoneMatch(entityTag string) *PoliciesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesListCall) Context(ctx context.Context) *PoliciesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5703,12 +4148,7 @@ func (c *PoliciesListCall) Header() http.Header { } func (c *PoliciesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5726,16 +4166,15 @@ func (c *PoliciesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.list" call. -// Exactly one of *PoliciesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PoliciesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PoliciesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PoliciesListCall) Do(opts ...googleapi.CallOption) (*PoliciesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5743,17 +4182,17 @@ func (c *PoliciesListCall) Do(opts ...googleapi.CallOption) (*PoliciesListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PoliciesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5766,53 +4205,6 @@ func (c *PoliciesListCall) Do(opts ...googleapi.CallOption) (*PoliciesListRespon return nil, err } return ret, nil - // { - // "description": "Enumerates all Policies associated with a project.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/policies", - // "httpMethod": "GET", - // "id": "dns.policies.list", - // "parameterOrder": [ - // "project", - // "location" - // ], - // "parameters": { - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/policies", - // "response": { - // "$ref": "PoliciesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -5820,7 +4212,7 @@ func (c *PoliciesListCall) Do(opts ...googleapi.CallOption) (*PoliciesListRespon // The provided context supersedes any context provided to the Context method. func (c *PoliciesListCall) Pages(ctx context.Context, f func(*PoliciesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5836,8 +4228,6 @@ func (c *PoliciesListCall) Pages(ctx context.Context, f func(*PoliciesListRespon } } -// method id "dns.policies.patch": - type PoliciesPatchCall struct { s *Service project string @@ -5851,10 +4241,9 @@ type PoliciesPatchCall struct { // Patch: Applies a partial update to an existing Policy. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - policy: User given friendly name of the policy addressed by this -// request. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - policy: User given friendly name of the policy addressed by this request. // - project: Identifies the project addressed by this request. func (r *PoliciesService) Patch(project string, location string, policy string, policy2 *Policy) *PoliciesPatchCall { c := &PoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5865,33 +4254,30 @@ func (r *PoliciesService) Patch(project string, location string, policy string, return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *PoliciesPatchCall) ClientOperationId(clientOperationId string) *PoliciesPatchCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesPatchCall) Fields(s ...googleapi.Field) *PoliciesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesPatchCall) Context(ctx context.Context) *PoliciesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5900,18 +4286,12 @@ func (c *PoliciesPatchCall) Header() http.Header { } func (c *PoliciesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.policy2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/policies/{policy}") @@ -5926,16 +4306,15 @@ func (c *PoliciesPatchCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.patch" call. -// Exactly one of *PoliciesPatchResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PoliciesPatchResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PoliciesPatchResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PoliciesPatchCall) Do(opts ...googleapi.CallOption) (*PoliciesPatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5943,17 +4322,17 @@ func (c *PoliciesPatchCall) Do(opts ...googleapi.CallOption) (*PoliciesPatchResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PoliciesPatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5966,58 +4345,7 @@ func (c *PoliciesPatchCall) Do(opts ...googleapi.CallOption) (*PoliciesPatchResp return nil, err } return ret, nil - // { - // "description": "Applies a partial update to an existing Policy.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/policies/{policy}", - // "httpMethod": "PATCH", - // "id": "dns.policies.patch", - // "parameterOrder": [ - // "project", - // "location", - // "policy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "policy": { - // "description": "User given friendly name of the policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/policies/{policy}", - // "request": { - // "$ref": "Policy" - // }, - // "response": { - // "$ref": "PoliciesPatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.policies.update": +} type PoliciesUpdateCall struct { s *Service @@ -6032,10 +4360,9 @@ type PoliciesUpdateCall struct { // Update: Updates an existing Policy. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - policy: User given friendly name of the policy addressed by this -// request. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - policy: User given friendly name of the policy addressed by this request. // - project: Identifies the project addressed by this request. func (r *PoliciesService) Update(project string, location string, policy string, policy2 *Policy) *PoliciesUpdateCall { c := &PoliciesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -6046,33 +4373,30 @@ func (r *PoliciesService) Update(project string, location string, policy string, return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *PoliciesUpdateCall) ClientOperationId(clientOperationId string) *PoliciesUpdateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesUpdateCall) Fields(s ...googleapi.Field) *PoliciesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesUpdateCall) Context(ctx context.Context) *PoliciesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6081,18 +4405,12 @@ func (c *PoliciesUpdateCall) Header() http.Header { } func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.policy2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/policies/{policy}") @@ -6107,16 +4425,15 @@ func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { "location": c.location, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.update" call. -// Exactly one of *PoliciesUpdateResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PoliciesUpdateResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PoliciesUpdateResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*PoliciesUpdateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6124,17 +4441,17 @@ func (c *PoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*PoliciesUpdateRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PoliciesUpdateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6147,58 +4464,7 @@ func (c *PoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*PoliciesUpdateRe return nil, err } return ret, nil - // { - // "description": "Updates an existing Policy.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/policies/{policy}", - // "httpMethod": "PUT", - // "id": "dns.policies.update", - // "parameterOrder": [ - // "project", - // "location", - // "policy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "policy": { - // "description": "User given friendly name of the policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/policies/{policy}", - // "request": { - // "$ref": "Policy" - // }, - // "response": { - // "$ref": "PoliciesUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.projects.get": +} type ProjectsGetCall struct { s *Service @@ -6221,43 +4487,38 @@ func (r *ProjectsService) Get(project string, location string) *ProjectsGetCall return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ProjectsGetCall) ClientOperationId(clientOperationId string) *ProjectsGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6266,12 +4527,7 @@ func (c *ProjectsGetCall) Header() http.Header { } func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6289,16 +4545,14 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.projects.get" call. -// Exactly one of *Project or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Project.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Project.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6306,17 +4560,17 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Project{ ServerResponse: googleapi.ServerResponse{ @@ -6329,49 +4583,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return nil, err } return ret, nil - // { - // "description": "Fetches the representation of an existing Project.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}", - // "httpMethod": "GET", - // "id": "dns.projects.get", - // "parameterOrder": [ - // "project", - // "location" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}", - // "response": { - // "$ref": "Project" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.resourceRecordSets.create": +} type ResourceRecordSetsCreateCall struct { s *Service @@ -6386,10 +4598,10 @@ type ResourceRecordSetsCreateCall struct { // Create: Creates a new ResourceRecordSet. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *ResourceRecordSetsService) Create(project string, location string, managedZone string, resourcerecordset *ResourceRecordSet) *ResourceRecordSetsCreateCall { c := &ResourceRecordSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -6400,33 +4612,30 @@ func (r *ResourceRecordSetsService) Create(project string, location string, mana return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResourceRecordSetsCreateCall) ClientOperationId(clientOperationId string) *ResourceRecordSetsCreateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResourceRecordSetsCreateCall) Fields(s ...googleapi.Field) *ResourceRecordSetsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResourceRecordSetsCreateCall) Context(ctx context.Context) *ResourceRecordSetsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResourceRecordSetsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6435,18 +4644,12 @@ func (c *ResourceRecordSetsCreateCall) Header() http.Header { } func (c *ResourceRecordSetsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.resourcerecordset) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets") @@ -6461,16 +4664,15 @@ func (c *ResourceRecordSetsCreateCall) doRequest(alt string) (*http.Response, er "location": c.location, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.create" call. -// Exactly one of *ResourceRecordSet or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ResourceRecordSet.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResourceRecordSet.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ResourceRecordSetsCreateCall) Do(opts ...googleapi.CallOption) (*ResourceRecordSet, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6478,17 +4680,17 @@ func (c *ResourceRecordSetsCreateCall) Do(opts ...googleapi.CallOption) (*Resour if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResourceRecordSet{ ServerResponse: googleapi.ServerResponse{ @@ -6501,58 +4703,7 @@ func (c *ResourceRecordSetsCreateCall) Do(opts ...googleapi.CallOption) (*Resour return nil, err } return ret, nil - // { - // "description": "Creates a new ResourceRecordSet.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets", - // "httpMethod": "POST", - // "id": "dns.resourceRecordSets.create", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets", - // "request": { - // "$ref": "ResourceRecordSet" - // }, - // "response": { - // "$ref": "ResourceRecordSet" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.resourceRecordSets.delete": +} type ResourceRecordSetsDeleteCall struct { s *Service @@ -6568,10 +4719,10 @@ type ResourceRecordSetsDeleteCall struct { // Delete: Deletes a previously created ResourceRecordSet. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - name: Fully qualified domain name. // - project: Identifies the project addressed by this request. // - type: RRSet type. @@ -6585,33 +4736,30 @@ func (r *ResourceRecordSetsService) Delete(project string, location string, mana return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResourceRecordSetsDeleteCall) ClientOperationId(clientOperationId string) *ResourceRecordSetsDeleteCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResourceRecordSetsDeleteCall) Fields(s ...googleapi.Field) *ResourceRecordSetsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResourceRecordSetsDeleteCall) Context(ctx context.Context) *ResourceRecordSetsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResourceRecordSetsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6620,12 +4768,7 @@ func (c *ResourceRecordSetsDeleteCall) Header() http.Header { } func (c *ResourceRecordSetsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -6643,7 +4786,7 @@ func (c *ResourceRecordSetsDeleteCall) doRequest(alt string) (*http.Response, er "name": c.name, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.delete" call. @@ -6655,69 +4798,10 @@ func (c *ResourceRecordSetsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a previously created ResourceRecordSet.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}", - // "httpMethod": "DELETE", - // "id": "dns.resourceRecordSets.delete", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone", - // "name", - // "type" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "name": { - // "description": "Fully qualified domain name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "RRSet type.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}", - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.resourceRecordSets.get": +} type ResourceRecordSetsGetCall struct { s *Service @@ -6734,10 +4818,10 @@ type ResourceRecordSetsGetCall struct { // Get: Fetches the representation of an existing ResourceRecordSet. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - name: Fully qualified domain name. // - project: Identifies the project addressed by this request. // - type: RRSet type. @@ -6751,43 +4835,38 @@ func (r *ResourceRecordSetsService) Get(project string, location string, managed return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResourceRecordSetsGetCall) ClientOperationId(clientOperationId string) *ResourceRecordSetsGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResourceRecordSetsGetCall) Fields(s ...googleapi.Field) *ResourceRecordSetsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ResourceRecordSetsGetCall) IfNoneMatch(entityTag string) *ResourceRecordSetsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResourceRecordSetsGetCall) Context(ctx context.Context) *ResourceRecordSetsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResourceRecordSetsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6796,12 +4875,7 @@ func (c *ResourceRecordSetsGetCall) Header() http.Header { } func (c *ResourceRecordSetsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6822,16 +4896,15 @@ func (c *ResourceRecordSetsGetCall) doRequest(alt string) (*http.Response, error "name": c.name, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.get" call. -// Exactly one of *ResourceRecordSet or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ResourceRecordSet.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResourceRecordSet.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ResourceRecordSetsGetCall) Do(opts ...googleapi.CallOption) (*ResourceRecordSet, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6839,17 +4912,17 @@ func (c *ResourceRecordSetsGetCall) Do(opts ...googleapi.CallOption) (*ResourceR if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResourceRecordSet{ ServerResponse: googleapi.ServerResponse{ @@ -6862,71 +4935,7 @@ func (c *ResourceRecordSetsGetCall) Do(opts ...googleapi.CallOption) (*ResourceR return nil, err } return ret, nil - // { - // "description": "Fetches the representation of an existing ResourceRecordSet.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}", - // "httpMethod": "GET", - // "id": "dns.resourceRecordSets.get", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone", - // "name", - // "type" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "name": { - // "description": "Fully qualified domain name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "RRSet type.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}", - // "response": { - // "$ref": "ResourceRecordSet" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.resourceRecordSets.list": +} type ResourceRecordSetsListCall struct { s *Service @@ -6942,10 +4951,10 @@ type ResourceRecordSetsListCall struct { // List: Enumerates ResourceRecordSets that you have created but not yet // deleted. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - project: Identifies the project addressed by this request. func (r *ResourceRecordSetsService) List(project string, location string, managedZone string) *ResourceRecordSetsListCall { c := &ResourceRecordSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -6955,65 +4964,60 @@ func (r *ResourceRecordSetsService) List(project string, location string, manage return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server decides how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server decides how many results +// to return. func (c *ResourceRecordSetsListCall) MaxResults(maxResults int64) *ResourceRecordSetsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Restricts the list to return -// only records with this fully qualified domain name. +// Name sets the optional parameter "name": Restricts the list to return only +// records with this fully qualified domain name. func (c *ResourceRecordSetsListCall) Name(name string) *ResourceRecordSetsListCall { c.urlParams_.Set("name", name) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *ResourceRecordSetsListCall) PageToken(pageToken string) *ResourceRecordSetsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Type sets the optional parameter "type": Restricts the list to return -// only records of this type. If present, the "name" parameter must also -// be present. +// Type sets the optional parameter "type": Restricts the list to return only +// records of this type. If present, the "name" parameter must also be present. func (c *ResourceRecordSetsListCall) Type(type_ string) *ResourceRecordSetsListCall { c.urlParams_.Set("type", type_) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResourceRecordSetsListCall) Fields(s ...googleapi.Field) *ResourceRecordSetsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ResourceRecordSetsListCall) IfNoneMatch(entityTag string) *ResourceRecordSetsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResourceRecordSetsListCall) Context(ctx context.Context) *ResourceRecordSetsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResourceRecordSetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7022,12 +5026,7 @@ func (c *ResourceRecordSetsListCall) Header() http.Header { } func (c *ResourceRecordSetsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7046,16 +5045,15 @@ func (c *ResourceRecordSetsListCall) doRequest(alt string) (*http.Response, erro "location": c.location, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.list" call. -// Exactly one of *ResourceRecordSetsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ResourceRecordSetsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResourceRecordSetsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ResourceRecordSetsListCall) Do(opts ...googleapi.CallOption) (*ResourceRecordSetsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7063,17 +5061,17 @@ func (c *ResourceRecordSetsListCall) Do(opts ...googleapi.CallOption) (*Resource if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResourceRecordSetsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7086,70 +5084,6 @@ func (c *ResourceRecordSetsListCall) Do(opts ...googleapi.CallOption) (*Resource return nil, err } return ret, nil - // { - // "description": "Enumerates ResourceRecordSets that you have created but not yet deleted.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets", - // "httpMethod": "GET", - // "id": "dns.resourceRecordSets.list", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone" - // ], - // "parameters": { - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "name": { - // "description": "Restricts the list to return only records with this fully qualified domain name.", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "Restricts the list to return only records of this type. If present, the \"name\" parameter must also be present.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets", - // "response": { - // "$ref": "ResourceRecordSetsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -7157,7 +5091,7 @@ func (c *ResourceRecordSetsListCall) Do(opts ...googleapi.CallOption) (*Resource // The provided context supersedes any context provided to the Context method. func (c *ResourceRecordSetsListCall) Pages(ctx context.Context, f func(*ResourceRecordSetsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -7173,8 +5107,6 @@ func (c *ResourceRecordSetsListCall) Pages(ctx context.Context, f func(*Resource } } -// method id "dns.resourceRecordSets.patch": - type ResourceRecordSetsPatchCall struct { s *Service project string @@ -7190,10 +5122,10 @@ type ResourceRecordSetsPatchCall struct { // Patch: Applies a partial update to an existing ResourceRecordSet. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. -// - managedZone: Identifies the managed zone addressed by this request. -// Can be the managed zone name or ID. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or ID. // - name: Fully qualified domain name. // - project: Identifies the project addressed by this request. // - type: RRSet type. @@ -7208,33 +5140,30 @@ func (r *ResourceRecordSetsService) Patch(project string, location string, manag return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResourceRecordSetsPatchCall) ClientOperationId(clientOperationId string) *ResourceRecordSetsPatchCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResourceRecordSetsPatchCall) Fields(s ...googleapi.Field) *ResourceRecordSetsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResourceRecordSetsPatchCall) Context(ctx context.Context) *ResourceRecordSetsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResourceRecordSetsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7243,18 +5172,12 @@ func (c *ResourceRecordSetsPatchCall) Header() http.Header { } func (c *ResourceRecordSetsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.resourcerecordset) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}") @@ -7271,16 +5194,15 @@ func (c *ResourceRecordSetsPatchCall) doRequest(alt string) (*http.Response, err "name": c.name, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.patch" call. -// Exactly one of *ResourceRecordSet or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ResourceRecordSet.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResourceRecordSet.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ResourceRecordSetsPatchCall) Do(opts ...googleapi.CallOption) (*ResourceRecordSet, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7288,17 +5210,17 @@ func (c *ResourceRecordSetsPatchCall) Do(opts ...googleapi.CallOption) (*Resourc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResourceRecordSet{ ServerResponse: googleapi.ServerResponse{ @@ -7311,72 +5233,7 @@ func (c *ResourceRecordSetsPatchCall) Do(opts ...googleapi.CallOption) (*Resourc return nil, err } return ret, nil - // { - // "description": "Applies a partial update to an existing ResourceRecordSet.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}", - // "httpMethod": "PATCH", - // "id": "dns.resourceRecordSets.patch", - // "parameterOrder": [ - // "project", - // "location", - // "managedZone", - // "name", - // "type" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "name": { - // "description": "Fully qualified domain name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "RRSet type.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}", - // "request": { - // "$ref": "ResourceRecordSet" - // }, - // "response": { - // "$ref": "ResourceRecordSet" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.responsePolicies.create": +} type ResponsePoliciesCreateCall struct { s *Service @@ -7390,9 +5247,9 @@ type ResponsePoliciesCreateCall struct { // Create: Creates a new Response Policy // -// - location: Specifies the location of the resource, only applicable -// in the v APIs. This information will be used for routing and will -// be part of the resource name. +// - location: Specifies the location of the resource, only applicable in the v +// APIs. This information will be used for routing and will be part of the +// resource name. // - project: Identifies the project addressed by this request. func (r *ResponsePoliciesService) Create(project string, location string, responsepolicy *ResponsePolicy) *ResponsePoliciesCreateCall { c := &ResponsePoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -7402,33 +5259,30 @@ func (r *ResponsePoliciesService) Create(project string, location string, respon return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResponsePoliciesCreateCall) ClientOperationId(clientOperationId string) *ResponsePoliciesCreateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePoliciesCreateCall) Fields(s ...googleapi.Field) *ResponsePoliciesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePoliciesCreateCall) Context(ctx context.Context) *ResponsePoliciesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePoliciesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7437,18 +5291,12 @@ func (c *ResponsePoliciesCreateCall) Header() http.Header { } func (c *ResponsePoliciesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.responsepolicy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/responsePolicies") @@ -7462,16 +5310,14 @@ func (c *ResponsePoliciesCreateCall) doRequest(alt string) (*http.Response, erro "project": c.project, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.create" call. -// Exactly one of *ResponsePolicy or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ResponsePolicy.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResponsePolicy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ResponsePoliciesCreateCall) Do(opts ...googleapi.CallOption) (*ResponsePolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7479,17 +5325,17 @@ func (c *ResponsePoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Response if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResponsePolicy{ ServerResponse: googleapi.ServerResponse{ @@ -7502,51 +5348,7 @@ func (c *ResponsePoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Response return nil, err } return ret, nil - // { - // "description": "Creates a new Response Policy", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies", - // "httpMethod": "POST", - // "id": "dns.responsePolicies.create", - // "parameterOrder": [ - // "project", - // "location" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource, only applicable in the v APIs. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies", - // "request": { - // "$ref": "ResponsePolicy" - // }, - // "response": { - // "$ref": "ResponsePolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.responsePolicies.delete": +} type ResponsePoliciesDeleteCall struct { s *Service @@ -7558,14 +5360,14 @@ type ResponsePoliciesDeleteCall struct { header_ http.Header } -// Delete: Deletes a previously created Response Policy. Fails if the -// response policy is non-empty or still being referenced by a network. +// Delete: Deletes a previously created Response Policy. Fails if the response +// policy is non-empty or still being referenced by a network. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. -// - responsePolicy: User assigned name of the Response Policy addressed -// by this request. +// - responsePolicy: User assigned name of the Response Policy addressed by +// this request. func (r *ResponsePoliciesService) Delete(project string, location string, responsePolicy string) *ResponsePoliciesDeleteCall { c := &ResponsePoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -7574,33 +5376,30 @@ func (r *ResponsePoliciesService) Delete(project string, location string, respon return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResponsePoliciesDeleteCall) ClientOperationId(clientOperationId string) *ResponsePoliciesDeleteCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePoliciesDeleteCall) Fields(s ...googleapi.Field) *ResponsePoliciesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePoliciesDeleteCall) Context(ctx context.Context) *ResponsePoliciesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePoliciesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7609,12 +5408,7 @@ func (c *ResponsePoliciesDeleteCall) Header() http.Header { } func (c *ResponsePoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -7630,7 +5424,7 @@ func (c *ResponsePoliciesDeleteCall) doRequest(alt string) (*http.Response, erro "location": c.location, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.delete" call. @@ -7642,55 +5436,10 @@ func (c *ResponsePoliciesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}", - // "httpMethod": "DELETE", - // "id": "dns.responsePolicies.delete", - // "parameterOrder": [ - // "project", - // "location", - // "responsePolicy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicy": { - // "description": "User assigned name of the Response Policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}", - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.responsePolicies.get": +} type ResponsePoliciesGetCall struct { s *Service @@ -7705,11 +5454,11 @@ type ResponsePoliciesGetCall struct { // Get: Fetches the representation of an existing Response Policy. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. -// - responsePolicy: User assigned name of the Response Policy addressed -// by this request. +// - responsePolicy: User assigned name of the Response Policy addressed by +// this request. func (r *ResponsePoliciesService) Get(project string, location string, responsePolicy string) *ResponsePoliciesGetCall { c := &ResponsePoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -7718,43 +5467,38 @@ func (r *ResponsePoliciesService) Get(project string, location string, responseP return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResponsePoliciesGetCall) ClientOperationId(clientOperationId string) *ResponsePoliciesGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePoliciesGetCall) Fields(s ...googleapi.Field) *ResponsePoliciesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ResponsePoliciesGetCall) IfNoneMatch(entityTag string) *ResponsePoliciesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePoliciesGetCall) Context(ctx context.Context) *ResponsePoliciesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7763,12 +5507,7 @@ func (c *ResponsePoliciesGetCall) Header() http.Header { } func (c *ResponsePoliciesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7787,16 +5526,14 @@ func (c *ResponsePoliciesGetCall) doRequest(alt string) (*http.Response, error) "location": c.location, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.get" call. -// Exactly one of *ResponsePolicy or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ResponsePolicy.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResponsePolicy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ResponsePoliciesGetCall) Do(opts ...googleapi.CallOption) (*ResponsePolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7804,17 +5541,17 @@ func (c *ResponsePoliciesGetCall) Do(opts ...googleapi.CallOption) (*ResponsePol if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResponsePolicy{ ServerResponse: googleapi.ServerResponse{ @@ -7827,57 +5564,7 @@ func (c *ResponsePoliciesGetCall) Do(opts ...googleapi.CallOption) (*ResponsePol return nil, err } return ret, nil - // { - // "description": "Fetches the representation of an existing Response Policy.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}", - // "httpMethod": "GET", - // "id": "dns.responsePolicies.get", - // "parameterOrder": [ - // "project", - // "location", - // "responsePolicy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicy": { - // "description": "User assigned name of the Response Policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}", - // "response": { - // "$ref": "ResponsePolicy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.responsePolicies.list": +} type ResponsePoliciesListCall struct { s *Service @@ -7891,8 +5578,8 @@ type ResponsePoliciesListCall struct { // List: Enumerates all Response Policies associated with a project. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. func (r *ResponsePoliciesService) List(project string, location string) *ResponsePoliciesListCall { c := &ResponsePoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -7901,50 +5588,46 @@ func (r *ResponsePoliciesService) List(project string, location string) *Respons return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server decides how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server decides how many results +// to return. func (c *ResponsePoliciesListCall) MaxResults(maxResults int64) *ResponsePoliciesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *ResponsePoliciesListCall) PageToken(pageToken string) *ResponsePoliciesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePoliciesListCall) Fields(s ...googleapi.Field) *ResponsePoliciesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ResponsePoliciesListCall) IfNoneMatch(entityTag string) *ResponsePoliciesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePoliciesListCall) Context(ctx context.Context) *ResponsePoliciesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7953,12 +5636,7 @@ func (c *ResponsePoliciesListCall) Header() http.Header { } func (c *ResponsePoliciesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7976,16 +5654,15 @@ func (c *ResponsePoliciesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.list" call. -// Exactly one of *ResponsePoliciesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ResponsePoliciesListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResponsePoliciesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ResponsePoliciesListCall) Do(opts ...googleapi.CallOption) (*ResponsePoliciesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7993,17 +5670,17 @@ func (c *ResponsePoliciesListCall) Do(opts ...googleapi.CallOption) (*ResponsePo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResponsePoliciesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8016,53 +5693,6 @@ func (c *ResponsePoliciesListCall) Do(opts ...googleapi.CallOption) (*ResponsePo return nil, err } return ret, nil - // { - // "description": "Enumerates all Response Policies associated with a project.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies", - // "httpMethod": "GET", - // "id": "dns.responsePolicies.list", - // "parameterOrder": [ - // "project", - // "location" - // ], - // "parameters": { - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies", - // "response": { - // "$ref": "ResponsePoliciesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -8070,7 +5700,7 @@ func (c *ResponsePoliciesListCall) Do(opts ...googleapi.CallOption) (*ResponsePo // The provided context supersedes any context provided to the Context method. func (c *ResponsePoliciesListCall) Pages(ctx context.Context, f func(*ResponsePoliciesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -8086,8 +5716,6 @@ func (c *ResponsePoliciesListCall) Pages(ctx context.Context, f func(*ResponsePo } } -// method id "dns.responsePolicies.patch": - type ResponsePoliciesPatchCall struct { s *Service project string @@ -8101,11 +5729,11 @@ type ResponsePoliciesPatchCall struct { // Patch: Applies a partial update to an existing Response Policy. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. -// - responsePolicy: User assigned name of the Respones Policy addressed -// by this request. +// - responsePolicy: User assigned name of the Respones Policy addressed by +// this request. func (r *ResponsePoliciesService) Patch(project string, location string, responsePolicy string, responsepolicy *ResponsePolicy) *ResponsePoliciesPatchCall { c := &ResponsePoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -8115,33 +5743,30 @@ func (r *ResponsePoliciesService) Patch(project string, location string, respons return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResponsePoliciesPatchCall) ClientOperationId(clientOperationId string) *ResponsePoliciesPatchCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePoliciesPatchCall) Fields(s ...googleapi.Field) *ResponsePoliciesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePoliciesPatchCall) Context(ctx context.Context) *ResponsePoliciesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePoliciesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8150,18 +5775,12 @@ func (c *ResponsePoliciesPatchCall) Header() http.Header { } func (c *ResponsePoliciesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.responsepolicy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}") @@ -8176,16 +5795,15 @@ func (c *ResponsePoliciesPatchCall) doRequest(alt string) (*http.Response, error "location": c.location, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.patch" call. -// Exactly one of *ResponsePoliciesPatchResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ResponsePoliciesPatchResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResponsePoliciesPatchResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ResponsePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*ResponsePoliciesPatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8193,17 +5811,17 @@ func (c *ResponsePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*ResponseP if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResponsePoliciesPatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8216,58 +5834,7 @@ func (c *ResponsePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*ResponseP return nil, err } return ret, nil - // { - // "description": "Applies a partial update to an existing Response Policy.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}", - // "httpMethod": "PATCH", - // "id": "dns.responsePolicies.patch", - // "parameterOrder": [ - // "project", - // "location", - // "responsePolicy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicy": { - // "description": "User assigned name of the Respones Policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}", - // "request": { - // "$ref": "ResponsePolicy" - // }, - // "response": { - // "$ref": "ResponsePoliciesPatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.responsePolicies.update": +} type ResponsePoliciesUpdateCall struct { s *Service @@ -8282,11 +5849,11 @@ type ResponsePoliciesUpdateCall struct { // Update: Updates an existing Response Policy. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. -// - responsePolicy: User assigned name of the Response Policy addressed -// by this request. +// - responsePolicy: User assigned name of the Response Policy addressed by +// this request. func (r *ResponsePoliciesService) Update(project string, location string, responsePolicy string, responsepolicy *ResponsePolicy) *ResponsePoliciesUpdateCall { c := &ResponsePoliciesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -8296,33 +5863,30 @@ func (r *ResponsePoliciesService) Update(project string, location string, respon return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResponsePoliciesUpdateCall) ClientOperationId(clientOperationId string) *ResponsePoliciesUpdateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePoliciesUpdateCall) Fields(s ...googleapi.Field) *ResponsePoliciesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePoliciesUpdateCall) Context(ctx context.Context) *ResponsePoliciesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePoliciesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8331,18 +5895,12 @@ func (c *ResponsePoliciesUpdateCall) Header() http.Header { } func (c *ResponsePoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.responsepolicy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}") @@ -8357,16 +5915,15 @@ func (c *ResponsePoliciesUpdateCall) doRequest(alt string) (*http.Response, erro "location": c.location, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicies.update" call. -// Exactly one of *ResponsePoliciesUpdateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ResponsePoliciesUpdateResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResponsePoliciesUpdateResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ResponsePoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*ResponsePoliciesUpdateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8374,17 +5931,17 @@ func (c *ResponsePoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*Response if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResponsePoliciesUpdateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8397,58 +5954,7 @@ func (c *ResponsePoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*Response return nil, err } return ret, nil - // { - // "description": "Updates an existing Response Policy.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}", - // "httpMethod": "PUT", - // "id": "dns.responsePolicies.update", - // "parameterOrder": [ - // "project", - // "location", - // "responsePolicy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicy": { - // "description": "User assigned name of the Response Policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}", - // "request": { - // "$ref": "ResponsePolicy" - // }, - // "response": { - // "$ref": "ResponsePoliciesUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.responsePolicyRules.create": +} type ResponsePolicyRulesCreateCall struct { s *Service @@ -8463,11 +5969,11 @@ type ResponsePolicyRulesCreateCall struct { // Create: Creates a new Response Policy Rule. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. -// - responsePolicy: User assigned name of the Response Policy -// containing the Response Policy Rule. +// - responsePolicy: User assigned name of the Response Policy containing the +// Response Policy Rule. func (r *ResponsePolicyRulesService) Create(project string, location string, responsePolicy string, responsepolicyrule *ResponsePolicyRule) *ResponsePolicyRulesCreateCall { c := &ResponsePolicyRulesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -8477,33 +5983,30 @@ func (r *ResponsePolicyRulesService) Create(project string, location string, res return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResponsePolicyRulesCreateCall) ClientOperationId(clientOperationId string) *ResponsePolicyRulesCreateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePolicyRulesCreateCall) Fields(s ...googleapi.Field) *ResponsePolicyRulesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePolicyRulesCreateCall) Context(ctx context.Context) *ResponsePolicyRulesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePolicyRulesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8512,18 +6015,12 @@ func (c *ResponsePolicyRulesCreateCall) Header() http.Header { } func (c *ResponsePolicyRulesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.responsepolicyrule) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules") @@ -8538,16 +6035,15 @@ func (c *ResponsePolicyRulesCreateCall) doRequest(alt string) (*http.Response, e "location": c.location, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.create" call. -// Exactly one of *ResponsePolicyRule or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ResponsePolicyRule.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResponsePolicyRule.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ResponsePolicyRulesCreateCall) Do(opts ...googleapi.CallOption) (*ResponsePolicyRule, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8555,17 +6051,17 @@ func (c *ResponsePolicyRulesCreateCall) Do(opts ...googleapi.CallOption) (*Respo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResponsePolicyRule{ ServerResponse: googleapi.ServerResponse{ @@ -8578,58 +6074,7 @@ func (c *ResponsePolicyRulesCreateCall) Do(opts ...googleapi.CallOption) (*Respo return nil, err } return ret, nil - // { - // "description": "Creates a new Response Policy Rule.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules", - // "httpMethod": "POST", - // "id": "dns.responsePolicyRules.create", - // "parameterOrder": [ - // "project", - // "location", - // "responsePolicy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicy": { - // "description": "User assigned name of the Response Policy containing the Response Policy Rule.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules", - // "request": { - // "$ref": "ResponsePolicyRule" - // }, - // "response": { - // "$ref": "ResponsePolicyRule" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.responsePolicyRules.delete": +} type ResponsePolicyRulesDeleteCall struct { s *Service @@ -8644,11 +6089,11 @@ type ResponsePolicyRulesDeleteCall struct { // Delete: Deletes a previously created Response Policy Rule. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. -// - responsePolicy: User assigned name of the Response Policy -// containing the Response Policy Rule. +// - responsePolicy: User assigned name of the Response Policy containing the +// Response Policy Rule. // - responsePolicyRule: User assigned name of the Response Policy Rule // addressed by this request. func (r *ResponsePolicyRulesService) Delete(project string, location string, responsePolicy string, responsePolicyRule string) *ResponsePolicyRulesDeleteCall { @@ -8660,33 +6105,30 @@ func (r *ResponsePolicyRulesService) Delete(project string, location string, res return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResponsePolicyRulesDeleteCall) ClientOperationId(clientOperationId string) *ResponsePolicyRulesDeleteCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePolicyRulesDeleteCall) Fields(s ...googleapi.Field) *ResponsePolicyRulesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePolicyRulesDeleteCall) Context(ctx context.Context) *ResponsePolicyRulesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePolicyRulesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8695,12 +6137,7 @@ func (c *ResponsePolicyRulesDeleteCall) Header() http.Header { } func (c *ResponsePolicyRulesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -8717,7 +6154,7 @@ func (c *ResponsePolicyRulesDeleteCall) doRequest(alt string) (*http.Response, e "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.delete" call. @@ -8729,62 +6166,10 @@ func (c *ResponsePolicyRulesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a previously created Response Policy Rule.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}", - // "httpMethod": "DELETE", - // "id": "dns.responsePolicyRules.delete", - // "parameterOrder": [ - // "project", - // "location", - // "responsePolicy", - // "responsePolicyRule" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicy": { - // "description": "User assigned name of the Response Policy containing the Response Policy Rule.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicyRule": { - // "description": "User assigned name of the Response Policy Rule addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}", - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.responsePolicyRules.get": +} type ResponsePolicyRulesGetCall struct { s *Service @@ -8800,11 +6185,11 @@ type ResponsePolicyRulesGetCall struct { // Get: Fetches the representation of an existing Response Policy Rule. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. -// - responsePolicy: User assigned name of the Response Policy -// containing the Response Policy Rule. +// - responsePolicy: User assigned name of the Response Policy containing the +// Response Policy Rule. // - responsePolicyRule: User assigned name of the Response Policy Rule // addressed by this request. func (r *ResponsePolicyRulesService) Get(project string, location string, responsePolicy string, responsePolicyRule string) *ResponsePolicyRulesGetCall { @@ -8816,43 +6201,38 @@ func (r *ResponsePolicyRulesService) Get(project string, location string, respon return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResponsePolicyRulesGetCall) ClientOperationId(clientOperationId string) *ResponsePolicyRulesGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePolicyRulesGetCall) Fields(s ...googleapi.Field) *ResponsePolicyRulesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ResponsePolicyRulesGetCall) IfNoneMatch(entityTag string) *ResponsePolicyRulesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePolicyRulesGetCall) Context(ctx context.Context) *ResponsePolicyRulesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePolicyRulesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8861,12 +6241,7 @@ func (c *ResponsePolicyRulesGetCall) Header() http.Header { } func (c *ResponsePolicyRulesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8886,16 +6261,15 @@ func (c *ResponsePolicyRulesGetCall) doRequest(alt string) (*http.Response, erro "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.get" call. -// Exactly one of *ResponsePolicyRule or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ResponsePolicyRule.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResponsePolicyRule.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ResponsePolicyRulesGetCall) Do(opts ...googleapi.CallOption) (*ResponsePolicyRule, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8903,17 +6277,17 @@ func (c *ResponsePolicyRulesGetCall) Do(opts ...googleapi.CallOption) (*Response if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResponsePolicyRule{ ServerResponse: googleapi.ServerResponse{ @@ -8926,64 +6300,7 @@ func (c *ResponsePolicyRulesGetCall) Do(opts ...googleapi.CallOption) (*Response return nil, err } return ret, nil - // { - // "description": "Fetches the representation of an existing Response Policy Rule.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}", - // "httpMethod": "GET", - // "id": "dns.responsePolicyRules.get", - // "parameterOrder": [ - // "project", - // "location", - // "responsePolicy", - // "responsePolicyRule" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicy": { - // "description": "User assigned name of the Response Policy containing the Response Policy Rule.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicyRule": { - // "description": "User assigned name of the Response Policy Rule addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}", - // "response": { - // "$ref": "ResponsePolicyRule" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.responsePolicyRules.list": +} type ResponsePolicyRulesListCall struct { s *Service @@ -8998,8 +6315,8 @@ type ResponsePolicyRulesListCall struct { // List: Enumerates all Response Policy Rules associated with a project. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. // - responsePolicy: User assigned name of the Response Policy to list. func (r *ResponsePolicyRulesService) List(project string, location string, responsePolicy string) *ResponsePolicyRulesListCall { @@ -9010,50 +6327,46 @@ func (r *ResponsePolicyRulesService) List(project string, location string, respo return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server decides how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server decides how many results +// to return. func (c *ResponsePolicyRulesListCall) MaxResults(maxResults int64) *ResponsePolicyRulesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *ResponsePolicyRulesListCall) PageToken(pageToken string) *ResponsePolicyRulesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePolicyRulesListCall) Fields(s ...googleapi.Field) *ResponsePolicyRulesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ResponsePolicyRulesListCall) IfNoneMatch(entityTag string) *ResponsePolicyRulesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePolicyRulesListCall) Context(ctx context.Context) *ResponsePolicyRulesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePolicyRulesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9062,12 +6375,7 @@ func (c *ResponsePolicyRulesListCall) Header() http.Header { } func (c *ResponsePolicyRulesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9086,16 +6394,15 @@ func (c *ResponsePolicyRulesListCall) doRequest(alt string) (*http.Response, err "location": c.location, "responsePolicy": c.responsePolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.list" call. -// Exactly one of *ResponsePolicyRulesListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ResponsePolicyRulesListResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResponsePolicyRulesListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ResponsePolicyRulesListCall) Do(opts ...googleapi.CallOption) (*ResponsePolicyRulesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9103,17 +6410,17 @@ func (c *ResponsePolicyRulesListCall) Do(opts ...googleapi.CallOption) (*Respons if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResponsePolicyRulesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9126,60 +6433,6 @@ func (c *ResponsePolicyRulesListCall) Do(opts ...googleapi.CallOption) (*Respons return nil, err } return ret, nil - // { - // "description": "Enumerates all Response Policy Rules associated with a project.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules", - // "httpMethod": "GET", - // "id": "dns.responsePolicyRules.list", - // "parameterOrder": [ - // "project", - // "location", - // "responsePolicy" - // ], - // "parameters": { - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicy": { - // "description": "User assigned name of the Response Policy to list.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules", - // "response": { - // "$ref": "ResponsePolicyRulesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -9187,7 +6440,7 @@ func (c *ResponsePolicyRulesListCall) Do(opts ...googleapi.CallOption) (*Respons // The provided context supersedes any context provided to the Context method. func (c *ResponsePolicyRulesListCall) Pages(ctx context.Context, f func(*ResponsePolicyRulesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -9203,8 +6456,6 @@ func (c *ResponsePolicyRulesListCall) Pages(ctx context.Context, f func(*Respons } } -// method id "dns.responsePolicyRules.patch": - type ResponsePolicyRulesPatchCall struct { s *Service project string @@ -9219,11 +6470,11 @@ type ResponsePolicyRulesPatchCall struct { // Patch: Applies a partial update to an existing Response Policy Rule. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. -// - responsePolicy: User assigned name of the Response Policy -// containing the Response Policy Rule. +// - responsePolicy: User assigned name of the Response Policy containing the +// Response Policy Rule. // - responsePolicyRule: User assigned name of the Response Policy Rule // addressed by this request. func (r *ResponsePolicyRulesService) Patch(project string, location string, responsePolicy string, responsePolicyRule string, responsepolicyrule *ResponsePolicyRule) *ResponsePolicyRulesPatchCall { @@ -9236,33 +6487,30 @@ func (r *ResponsePolicyRulesService) Patch(project string, location string, resp return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResponsePolicyRulesPatchCall) ClientOperationId(clientOperationId string) *ResponsePolicyRulesPatchCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePolicyRulesPatchCall) Fields(s ...googleapi.Field) *ResponsePolicyRulesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePolicyRulesPatchCall) Context(ctx context.Context) *ResponsePolicyRulesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePolicyRulesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9271,18 +6519,12 @@ func (c *ResponsePolicyRulesPatchCall) Header() http.Header { } func (c *ResponsePolicyRulesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.responsepolicyrule) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}") @@ -9298,16 +6540,15 @@ func (c *ResponsePolicyRulesPatchCall) doRequest(alt string) (*http.Response, er "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.patch" call. -// Exactly one of *ResponsePolicyRulesPatchResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ResponsePolicyRulesPatchResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResponsePolicyRulesPatchResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ResponsePolicyRulesPatchCall) Do(opts ...googleapi.CallOption) (*ResponsePolicyRulesPatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9315,17 +6556,17 @@ func (c *ResponsePolicyRulesPatchCall) Do(opts ...googleapi.CallOption) (*Respon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResponsePolicyRulesPatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9338,65 +6579,7 @@ func (c *ResponsePolicyRulesPatchCall) Do(opts ...googleapi.CallOption) (*Respon return nil, err } return ret, nil - // { - // "description": "Applies a partial update to an existing Response Policy Rule.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}", - // "httpMethod": "PATCH", - // "id": "dns.responsePolicyRules.patch", - // "parameterOrder": [ - // "project", - // "location", - // "responsePolicy", - // "responsePolicyRule" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicy": { - // "description": "User assigned name of the Response Policy containing the Response Policy Rule.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicyRule": { - // "description": "User assigned name of the Response Policy Rule addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}", - // "request": { - // "$ref": "ResponsePolicyRule" - // }, - // "response": { - // "$ref": "ResponsePolicyRulesPatchResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.responsePolicyRules.update": +} type ResponsePolicyRulesUpdateCall struct { s *Service @@ -9412,11 +6595,11 @@ type ResponsePolicyRulesUpdateCall struct { // Update: Updates an existing Response Policy Rule. // -// - location: Specifies the location of the resource. This information -// will be used for routing and will be part of the resource name. +// - location: Specifies the location of the resource. This information will be +// used for routing and will be part of the resource name. // - project: Identifies the project addressed by this request. -// - responsePolicy: User assigned name of the Response Policy -// containing the Response Policy Rule. +// - responsePolicy: User assigned name of the Response Policy containing the +// Response Policy Rule. // - responsePolicyRule: User assigned name of the Response Policy Rule // addressed by this request. func (r *ResponsePolicyRulesService) Update(project string, location string, responsePolicy string, responsePolicyRule string, responsepolicyrule *ResponsePolicyRule) *ResponsePolicyRulesUpdateCall { @@ -9429,33 +6612,30 @@ func (r *ResponsePolicyRulesService) Update(project string, location string, res return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ResponsePolicyRulesUpdateCall) ClientOperationId(clientOperationId string) *ResponsePolicyRulesUpdateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResponsePolicyRulesUpdateCall) Fields(s ...googleapi.Field) *ResponsePolicyRulesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResponsePolicyRulesUpdateCall) Context(ctx context.Context) *ResponsePolicyRulesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResponsePolicyRulesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9464,18 +6644,12 @@ func (c *ResponsePolicyRulesUpdateCall) Header() http.Header { } func (c *ResponsePolicyRulesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.responsepolicyrule) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}") @@ -9491,17 +6665,15 @@ func (c *ResponsePolicyRulesUpdateCall) doRequest(alt string) (*http.Response, e "responsePolicy": c.responsePolicy, "responsePolicyRule": c.responsePolicyRule, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.responsePolicyRules.update" call. -// Exactly one of *ResponsePolicyRulesUpdateResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ResponsePolicyRulesUpdateResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResponsePolicyRulesUpdateResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ResponsePolicyRulesUpdateCall) Do(opts ...googleapi.CallOption) (*ResponsePolicyRulesUpdateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9509,17 +6681,17 @@ func (c *ResponsePolicyRulesUpdateCall) Do(opts ...googleapi.CallOption) (*Respo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResponsePolicyRulesUpdateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9532,60 +6704,4 @@ func (c *ResponsePolicyRulesUpdateCall) Do(opts ...googleapi.CallOption) (*Respo return nil, err } return ret, nil - // { - // "description": "Updates an existing Response Policy Rule.", - // "flatPath": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}", - // "httpMethod": "PUT", - // "id": "dns.responsePolicyRules.update", - // "parameterOrder": [ - // "project", - // "location", - // "responsePolicy", - // "responsePolicyRule" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "default": "global", - // "description": "Specifies the location of the resource. This information will be used for routing and will be part of the resource name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicy": { - // "description": "User assigned name of the Response Policy containing the Response Policy Rule.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "responsePolicyRule": { - // "description": "User assigned name of the Response Policy Rule addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}", - // "request": { - // "$ref": "ResponsePolicyRule" - // }, - // "response": { - // "$ref": "ResponsePolicyRulesUpdateResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } diff --git a/dns/v2beta1/dns-gen.go b/dns/v2beta1/dns-gen.go index 9969d4d7a26..5748bbeebb4 100644 --- a/dns/v2beta1/dns-gen.go +++ b/dns/v2beta1/dns-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: http://developers.google.com/cloud-dns // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // dnsService, err := dns.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // dnsService, err := dns.NewService(ctx, option.WithScopes(dns.NdevClouddnsReadwriteScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // dnsService, err := dns.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // dnsService, err := dns.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package dns // import "google.golang.org/api/dns/v2beta1" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dns:v2beta1" const apiName = "dns" const apiVersion = "v2beta1" const basePath = "https://dns.googleapis.com/" +const basePathTemplate = "https://dns.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://dns.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -98,7 +115,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/ndev.clouddns.readonly", @@ -107,7 +124,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -233,122 +252,98 @@ type ResourceRecordSetsService struct { } // Change: A Change represents a set of ResourceRecordSet additions and -// deletions applied atomically to a ManagedZone. ResourceRecordSets -// within a ManagedZone are modified by creating a new Change element in -// the Changes collection. In turn the Changes collection also records -// the past modifications to the ResourceRecordSets in a ManagedZone. -// The current state of the ManagedZone is the sum effect of applying -// all Change elements in the Changes collection in sequence. +// deletions applied atomically to a ManagedZone. ResourceRecordSets within a +// ManagedZone are modified by creating a new Change element in the Changes +// collection. In turn the Changes collection also records the past +// modifications to the ResourceRecordSets in a ManagedZone. The current state +// of the ManagedZone is the sum effect of applying all Change elements in the +// Changes collection in sequence. type Change struct { // Additions: Which ResourceRecordSets to add? Additions []*ResourceRecordSet `json:"additions,omitempty"` - - // Deletions: Which ResourceRecordSets to remove? Must match existing - // data exactly. + // Deletions: Which ResourceRecordSets to remove? Must match existing data + // exactly. Deletions []*ResourceRecordSet `json:"deletions,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). + // Id: Unique identifier for the resource; defined by the server (output only). Id string `json:"id,omitempty"` - // IsServing: If the DNS queries for the zone will be served. - IsServing bool `json:"isServing,omitempty"` - - Kind string `json:"kind,omitempty"` - - // StartTime: The time that this operation was started by the server - // (output only). This is in RFC3339 text format. + IsServing bool `json:"isServing,omitempty"` + Kind string `json:"kind,omitempty"` + // StartTime: The time that this operation was started by the server (output + // only). This is in RFC3339 text format. StartTime string `json:"startTime,omitempty"` - - // Status: Status of the operation (output only). A status of "done" - // means that the request to update the authoritative servers has been - // sent but the servers might not be updated yet. + // Status: Status of the operation (output only). A status of "done" means that + // the request to update the authoritative servers has been sent but the + // servers might not be updated yet. // // Possible values: // "PENDING" // "DONE" Status string `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Additions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Additions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Additions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Change) MarshalJSON() ([]byte, error) { +func (s Change) MarshalJSON() ([]byte, error) { type NoMethod Change - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ChangesListResponse: The response to a request to enumerate Changes -// to a ResourceRecordSets collection. +// ChangesListResponse: The response to a request to enumerate Changes to a +// ResourceRecordSets collection. type ChangesListResponse struct { // Changes: The requested changes. - Changes []*Change `json:"changes,omitempty"` - - Header *ResponseHeader `json:"header,omitempty"` - + Changes []*Change `json:"changes,omitempty"` + Header *ResponseHeader `json:"header,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // pagination token. In this way you can retrieve the complete contents - // of even very large collections one page at a time. However, if the - // contents of the collection change between the first and last - // paginated list request, the set of all elements returned will be an - // inconsistent view of the collection. There is no way to retrieve a - // "snapshot" of collections larger than the maximum page size. + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your pagination token. + // In this way you can retrieve the complete contents of even very large + // collections one page at a time. However, if the contents of the collection + // change between the first and last paginated list request, the set of all + // elements returned will be an inconsistent view of the collection. There is + // no way to retrieve a "snapshot" of collections larger than the maximum page + // size. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Changes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Changes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Changes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Changes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChangesListResponse) MarshalJSON() ([]byte, error) { +func (s ChangesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ChangesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DnsKey: A DNSSEC key pair. type DnsKey struct { - // Algorithm: String mnemonic specifying the DNSSEC algorithm of this - // key. Immutable after creation time. + // Algorithm: String mnemonic specifying the DNSSEC algorithm of this key. + // Immutable after creation time. // // Possible values: // "RSASHA1" @@ -357,92 +352,71 @@ type DnsKey struct { // "ECDSAP256SHA256" // "ECDSAP384SHA384" Algorithm string `json:"algorithm,omitempty"` - - // CreationTime: The time that this resource was created in the control - // plane. This is in RFC3339 text format. Output only. + // CreationTime: The time that this resource was created in the control plane. + // This is in RFC3339 text format. Output only. CreationTime string `json:"creationTime,omitempty"` - - // Description: A mutable string of at most 1024 characters associated - // with this resource for the user's convenience. Has no effect on the - // resource's function. + // Description: A mutable string of at most 1024 characters associated with + // this resource for the user's convenience. Has no effect on the resource's + // function. Description string `json:"description,omitempty"` - - // Digests: Cryptographic hashes of the DNSKEY resource record - // associated with this DnsKey. These digests are needed to construct a - // DS record that points at this DNS key. Output only. + // Digests: Cryptographic hashes of the DNSKEY resource record associated with + // this DnsKey. These digests are needed to construct a DS record that points + // at this DNS key. Output only. Digests []*DnsKeyDigest `json:"digests,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). + // Id: Unique identifier for the resource; defined by the server (output only). Id string `json:"id,omitempty"` - // IsActive: Active keys will be used to sign subsequent changes to the - // ManagedZone. Inactive keys will still be present as DNSKEY Resource - // Records for the use of resolvers validating existing signatures. + // ManagedZone. Inactive keys will still be present as DNSKEY Resource Records + // for the use of resolvers validating existing signatures. IsActive bool `json:"isActive,omitempty"` - // KeyLength: Length of the key in bits. Specified at creation time then // immutable. KeyLength int64 `json:"keyLength,omitempty"` - - // KeyTag: The key tag is a non-cryptographic hash of the a DNSKEY - // resource record associated with this DnsKey. The key tag can be used - // to identify a DNSKEY more quickly (but it is not a unique - // identifier). In particular, the key tag is used in a parent zone's DS - // record to point at the DNSKEY in this child ManagedZone. The key tag - // is a number in the range [0, 65535] and the algorithm to calculate it - // is specified in RFC4034 Appendix B. Output only. - KeyTag int64 `json:"keyTag,omitempty"` - - Kind string `json:"kind,omitempty"` - + // KeyTag: The key tag is a non-cryptographic hash of the a DNSKEY resource + // record associated with this DnsKey. The key tag can be used to identify a + // DNSKEY more quickly (but it is not a unique identifier). In particular, the + // key tag is used in a parent zone's DS record to point at the DNSKEY in this + // child ManagedZone. The key tag is a number in the range [0, 65535] and the + // algorithm to calculate it is specified in RFC4034 Appendix B. Output only. + KeyTag int64 `json:"keyTag,omitempty"` + Kind string `json:"kind,omitempty"` // PublicKey: Base64 encoded public half of this key. Output only. PublicKey string `json:"publicKey,omitempty"` - - // Type: One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type - // KEY_SIGNING have the Secure Entry Point flag set and, when active, - // will be used to sign only resource record sets of type DNSKEY. - // Otherwise, the Secure Entry Point flag will be cleared and this key - // will be used to sign only resource record sets of other types. - // Immutable after creation time. + // Type: One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have + // the Secure Entry Point flag set and, when active, will be used to sign only + // resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag + // will be cleared and this key will be used to sign only resource record sets + // of other types. Immutable after creation time. // // Possible values: // "KEY_SIGNING" // "ZONE_SIGNING" Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Algorithm") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Algorithm") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Algorithm") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DnsKey) MarshalJSON() ([]byte, error) { +func (s DnsKey) MarshalJSON() ([]byte, error) { type NoMethod DnsKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type DnsKeyDigest struct { - // Digest: The base-16 encoded bytes of this digest. Suitable for use in - // a DS resource record. + // Digest: The base-16 encoded bytes of this digest. Suitable for use in a DS + // resource record. Digest string `json:"digest,omitempty"` - // Type: Specifies the algorithm used to calculate this digest. // // Possible values: @@ -450,36 +424,28 @@ type DnsKeyDigest struct { // "SHA256" // "SHA384" Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DnsKeyDigest) MarshalJSON() ([]byte, error) { +func (s DnsKeyDigest) MarshalJSON() ([]byte, error) { type NoMethod DnsKeyDigest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DnsKeySpec: Parameters for DnsKey key generation. Used for generating -// initial keys for a new ManagedZone and as default when adding a new -// DnsKey. +// initial keys for a new ManagedZone and as default when adding a new DnsKey. type DnsKeySpec struct { - // Algorithm: String mnemonic specifying the DNSSEC algorithm of this - // key. + // Algorithm: String mnemonic specifying the DNSSEC algorithm of this key. // // Possible values: // "RSASHA1" @@ -488,213 +454,164 @@ type DnsKeySpec struct { // "ECDSAP256SHA256" // "ECDSAP384SHA384" Algorithm string `json:"algorithm,omitempty"` - // KeyLength: Length of the keys in bits. KeyLength int64 `json:"keyLength,omitempty"` - - // KeyType: Specifies whether this is a key signing key (KSK) or a zone - // signing key (ZSK). Key signing keys have the Secure Entry Point flag - // set and, when active, will only be used to sign resource record sets - // of type DNSKEY. Zone signing keys do not have the Secure Entry Point - // flag set and will be used to sign all other types of resource record - // sets. + // KeyType: Specifies whether this is a key signing key (KSK) or a zone signing + // key (ZSK). Key signing keys have the Secure Entry Point flag set and, when + // active, will only be used to sign resource record sets of type DNSKEY. Zone + // signing keys do not have the Secure Entry Point flag set and will be used to + // sign all other types of resource record sets. // // Possible values: // "KEY_SIGNING" // "ZONE_SIGNING" KeyType string `json:"keyType,omitempty"` - - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "Algorithm") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Algorithm") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Algorithm") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DnsKeySpec) MarshalJSON() ([]byte, error) { +func (s DnsKeySpec) MarshalJSON() ([]byte, error) { type NoMethod DnsKeySpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DnsKeysListResponse: The response to a request to enumerate DnsKeys -// in a ManagedZone. +// DnsKeysListResponse: The response to a request to enumerate DnsKeys in a +// ManagedZone. type DnsKeysListResponse struct { // DnsKeys: The requested resources. - DnsKeys []*DnsKey `json:"dnsKeys,omitempty"` - - Header *ResponseHeader `json:"header,omitempty"` - + DnsKeys []*DnsKey `json:"dnsKeys,omitempty"` + Header *ResponseHeader `json:"header,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // pagination token. In this way you can retrieve the complete contents - // of even very large collections one page at a time. However, if the - // contents of the collection change between the first and last - // paginated list request, the set of all elements returned will be an - // inconsistent view of the collection. There is no way to retrieve a - // "snapshot" of collections larger than the maximum page size. + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your pagination token. + // In this way you can retrieve the complete contents of even very large + // collections one page at a time. However, if the contents of the collection + // change between the first and last paginated list request, the set of all + // elements returned will be an inconsistent view of the collection. There is + // no way to retrieve a "snapshot" of collections larger than the maximum page + // size. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DnsKeys") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DnsKeys") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DnsKeys") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DnsKeys") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DnsKeysListResponse) MarshalJSON() ([]byte, error) { +func (s DnsKeysListResponse) MarshalJSON() ([]byte, error) { type NoMethod DnsKeysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ManagedZone: A zone is a subtree of the DNS namespace under one -// administrative responsibility. A ManagedZone is a resource that -// represents a DNS zone hosted by the Cloud DNS service. +// administrative responsibility. A ManagedZone is a resource that represents a +// DNS zone hosted by the Cloud DNS service. type ManagedZone struct { - // CreationTime: The time that this resource was created on the server. - // This is in RFC3339 text format. Output only. + // CreationTime: The time that this resource was created on the server. This is + // in RFC3339 text format. Output only. CreationTime string `json:"creationTime,omitempty"` - - // Description: A mutable string of at most 1024 characters associated - // with this resource for the user's convenience. Has no effect on the - // managed zone's function. + // Description: A mutable string of at most 1024 characters associated with + // this resource for the user's convenience. Has no effect on the managed + // zone's function. Description string `json:"description,omitempty"` - - // DnsName: The DNS name of this managed zone, for instance - // "example.com.". + // DnsName: The DNS name of this managed zone, for instance "example.com.". DnsName string `json:"dnsName,omitempty"` - // DnssecConfig: DNSSEC configuration. DnssecConfig *ManagedZoneDnsSecConfig `json:"dnssecConfig,omitempty"` - // ForwardingConfig: The presence for this field indicates that outbound - // forwarding is enabled for this zone. The value of this field contains - // the set of destinations to forward to. + // forwarding is enabled for this zone. The value of this field contains the + // set of destinations to forward to. ForwardingConfig *ManagedZoneForwardingConfig `json:"forwardingConfig,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only) - Id uint64 `json:"id,omitempty,string"` - + // Id: Unique identifier for the resource; defined by the server (output only) + Id uint64 `json:"id,omitempty,string"` Kind string `json:"kind,omitempty"` - // Labels: User labels. Labels map[string]string `json:"labels,omitempty"` - // Name: User assigned name for this resource. Must be unique within the - // project. The name must be 1-63 characters long, must begin with a - // letter, end with a letter or digit, and only contain lowercase - // letters, digits or dashes. + // project. The name must be 1-63 characters long, must begin with a letter, + // end with a letter or digit, and only contain lowercase letters, digits or + // dashes. Name string `json:"name,omitempty"` - - // NameServerSet: Optionally specifies the NameServerSet for this - // ManagedZone. A NameServerSet is a set of DNS name servers that all - // host the same ManagedZones. Most users will leave this field unset. + // NameServerSet: Optionally specifies the NameServerSet for this ManagedZone. + // A NameServerSet is a set of DNS name servers that all host the same + // ManagedZones. Most users will leave this field unset. NameServerSet string `json:"nameServerSet,omitempty"` - - // NameServers: Delegate your managed_zone to these virtual name - // servers; defined by the server (output only) + // NameServers: Delegate your managed_zone to these virtual name servers; + // defined by the server (output only) NameServers []string `json:"nameServers,omitempty"` - - // PeeringConfig: The presence of this field indicates that DNS Peering - // is enabled for this zone. The value of this field contains the - // network to peer with. + // PeeringConfig: The presence of this field indicates that DNS Peering is + // enabled for this zone. The value of this field contains the network to peer + // with. PeeringConfig *ManagedZonePeeringConfig `json:"peeringConfig,omitempty"` - - // PrivateVisibilityConfig: For privately visible zones, the set of - // Virtual Private Cloud resources that the zone is visible from. + // PrivateVisibilityConfig: For privately visible zones, the set of Virtual + // Private Cloud resources that the zone is visible from. PrivateVisibilityConfig *ManagedZonePrivateVisibilityConfig `json:"privateVisibilityConfig,omitempty"` - - // ReverseLookupConfig: The presence of this field indicates that this - // is a managed reverse lookup zone and Cloud DNS will resolve reverse - // lookup queries using automatically configured records for VPC - // resources. This only applies to networks listed under - // private_visibility_config. + // ReverseLookupConfig: The presence of this field indicates that this is a + // managed reverse lookup zone and Cloud DNS will resolve reverse lookup + // queries using automatically configured records for VPC resources. This only + // applies to networks listed under private_visibility_config. ReverseLookupConfig *ManagedZoneReverseLookupConfig `json:"reverseLookupConfig,omitempty"` - - // Visibility: The zone's visibility: public zones are exposed to the - // Internet, while private zones are visible only to Virtual Private - // Cloud resources. + // Visibility: The zone's visibility: public zones are exposed to the Internet, + // while private zones are visible only to Virtual Private Cloud resources. // // Possible values: // "PUBLIC" // "PRIVATE" Visibility string `json:"visibility,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreationTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreationTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZone) MarshalJSON() ([]byte, error) { +func (s ManagedZone) MarshalJSON() ([]byte, error) { type NoMethod ManagedZone - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneDnsSecConfig struct { - // DefaultKeySpecs: Specifies parameters for generating initial DnsKeys - // for this ManagedZone. Can only be changed while the state is OFF. + // DefaultKeySpecs: Specifies parameters for generating initial DnsKeys for + // this ManagedZone. Can only be changed while the state is OFF. DefaultKeySpecs []*DnsKeySpec `json:"defaultKeySpecs,omitempty"` - - Kind string `json:"kind,omitempty"` - - // NonExistence: Specifies the mechanism for authenticated - // denial-of-existence responses. Can only be changed while the state is - // OFF. + Kind string `json:"kind,omitempty"` + // NonExistence: Specifies the mechanism for authenticated denial-of-existence + // responses. Can only be changed while the state is OFF. // // Possible values: // "NSEC" // "NSEC3" NonExistence string `json:"nonExistence,omitempty"` - // State: Specifies whether DNSSEC is enabled, and what mode it is in. // // Possible values: @@ -702,1026 +619,780 @@ type ManagedZoneDnsSecConfig struct { // "ON" - DNSSEC is enabled; the zone is signed and fully managed. // "TRANSFER" - DNSSEC is enabled, but in a "transfer" mode. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultKeySpecs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultKeySpecs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DefaultKeySpecs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneDnsSecConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZoneDnsSecConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneDnsSecConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneForwardingConfig struct { Kind string `json:"kind,omitempty"` - - // TargetNameServers: List of target name servers to forward to. Cloud - // DNS will select the best available name server if more than one - // target is given. + // TargetNameServers: List of target name servers to forward to. Cloud DNS will + // select the best available name server if more than one target is given. TargetNameServers []*ManagedZoneForwardingConfigNameServerTarget `json:"targetNameServers,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneForwardingConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZoneForwardingConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneForwardingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneForwardingConfigNameServerTarget struct { - // ForwardingPath: Forwarding path for this NameServerTarget. If unset - // or set to DEFAULT, Cloud DNS will make forwarding decision based on - // address ranges, i.e. RFC1918 addresses go to the VPC, non-RFC1918 - // addresses go to the Internet. When set to PRIVATE, Cloud DNS will - // always send queries through VPC for this target. + // ForwardingPath: Forwarding path for this NameServerTarget. If unset or set + // to DEFAULT, Cloud DNS will make forwarding decision based on address ranges, + // i.e. RFC1918 addresses go to the VPC, non-RFC1918 addresses go to the + // Internet. When set to PRIVATE, Cloud DNS will always send queries through + // VPC for this target. // // Possible values: - // "DEFAULT" - Cloud DNS will make forwarding decision based on - // address ranges, i.e. RFC1918 addresses forward to the target through - // the VPC and non-RFC1918 addresses will forward to the target through - // the Internet - // "PRIVATE" - Cloud DNS will always forward to this target through - // the VPC. + // "DEFAULT" - Cloud DNS will make forwarding decision based on address + // ranges, i.e. RFC1918 addresses forward to the target through the VPC and + // non-RFC1918 addresses will forward to the target through the Internet + // "PRIVATE" - Cloud DNS will always forward to this target through the VPC. ForwardingPath string `json:"forwardingPath,omitempty"` - // Ipv4Address: IPv4 address of a target name server. Ipv4Address string `json:"ipv4Address,omitempty"` - - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "ForwardingPath") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ForwardingPath") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ForwardingPath") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneForwardingConfigNameServerTarget) MarshalJSON() ([]byte, error) { +func (s ManagedZoneForwardingConfigNameServerTarget) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneForwardingConfigNameServerTarget - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneOperationsListResponse struct { Header *ResponseHeader `json:"header,omitempty"` - - Kind string `json:"kind,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // page token. In this way you can retrieve the complete contents of - // even very large collections one page at a time. However, if the - // contents of the collection change between the first and last - // paginated list request, the set of all elements returned will be an - // inconsistent view of the collection. There is no way to retrieve a - // consistent snapshot of a collection larger than the maximum page + Kind string `json:"kind,omitempty"` + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your page token. In this + // way you can retrieve the complete contents of even very large collections + // one page at a time. However, if the contents of the collection change + // between the first and last paginated list request, the set of all elements + // returned will be an inconsistent view of the collection. There is no way to + // retrieve a consistent snapshot of a collection larger than the maximum page // size. NextPageToken string `json:"nextPageToken,omitempty"` - // Operations: The operation resources. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneOperationsListResponse) MarshalJSON() ([]byte, error) { +func (s ManagedZoneOperationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneOperationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonePeeringConfig struct { Kind string `json:"kind,omitempty"` - // TargetNetwork: The network with which to peer. TargetNetwork *ManagedZonePeeringConfigTargetNetwork `json:"targetNetwork,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonePeeringConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZonePeeringConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonePeeringConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonePeeringConfigTargetNetwork struct { - // DeactivateTime: The time at which the zone was deactivated, in RFC - // 3339 date-time format. An empty string indicates that the peering - // connection is active. The producer network can deactivate a zone. The - // zone is automatically deactivated if the producer network that the - // zone targeted is deleted. Output only. + // DeactivateTime: The time at which the zone was deactivated, in RFC 3339 + // date-time format. An empty string indicates that the peering connection is + // active. The producer network can deactivate a zone. The zone is + // automatically deactivated if the producer network that the zone targeted is + // deleted. Output only. DeactivateTime string `json:"deactivateTime,omitempty"` - - Kind string `json:"kind,omitempty"` - - // NetworkUrl: The fully qualified URL of the VPC network to forward - // queries to. This should be formatted like + Kind string `json:"kind,omitempty"` + // NetworkUrl: The fully qualified URL of the VPC network to forward queries + // to. This should be formatted like // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} NetworkUrl string `json:"networkUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeactivateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeactivateTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DeactivateTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonePeeringConfigTargetNetwork) MarshalJSON() ([]byte, error) { +func (s ManagedZonePeeringConfigTargetNetwork) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonePeeringConfigTargetNetwork - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonePrivateVisibilityConfig struct { Kind string `json:"kind,omitempty"` - // Networks: The list of VPC networks that can see this zone. Networks []*ManagedZonePrivateVisibilityConfigNetwork `json:"networks,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonePrivateVisibilityConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZonePrivateVisibilityConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonePrivateVisibilityConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonePrivateVisibilityConfigNetwork struct { Kind string `json:"kind,omitempty"` - - // NetworkUrl: The fully qualified URL of the VPC network to bind to. - // This should be formatted like + // NetworkUrl: The fully qualified URL of the VPC network to bind to. This + // should be formatted like // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} NetworkUrl string `json:"networkUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonePrivateVisibilityConfigNetwork) MarshalJSON() ([]byte, error) { +func (s ManagedZonePrivateVisibilityConfigNetwork) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonePrivateVisibilityConfigNetwork - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZoneReverseLookupConfig struct { Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZoneReverseLookupConfig) MarshalJSON() ([]byte, error) { +func (s ManagedZoneReverseLookupConfig) MarshalJSON() ([]byte, error) { type NoMethod ManagedZoneReverseLookupConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ManagedZonesListResponse struct { Header *ResponseHeader `json:"header,omitempty"` - // Kind: Type of resource. Kind string `json:"kind,omitempty"` - // ManagedZones: The managed zone resources. ManagedZones []*ManagedZone `json:"managedZones,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // page token. In this way you can retrieve the complete contents of - // even very large collections one page at a time. However, if the - // contents of the collection change between the first and last - // paginated list request, the set of all elements returned will be an - // inconsistent view of the collection. There is no way to retrieve a - // consistent snapshot of a collection larger than the maximum page + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your page token. In this + // way you can retrieve the complete contents of even very large collections + // one page at a time. However, if the contents of the collection change + // between the first and last paginated list request, the set of all elements + // returned will be an inconsistent view of the collection. There is no way to + // retrieve a consistent snapshot of a collection larger than the maximum page // size. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagedZonesListResponse) MarshalJSON() ([]byte, error) { +func (s ManagedZonesListResponse) MarshalJSON() ([]byte, error) { type NoMethod ManagedZonesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: An operation represents a successful mutation performed on -// a Cloud DNS resource. Operations provide: - An audit log of server -// resource mutations. - A way to recover/retry API calls in the case -// where the response is never received by the caller. Use the caller -// specified client_operation_id. +// Operation: An operation represents a successful mutation performed on a +// Cloud DNS resource. Operations provide: - An audit log of server resource +// mutations. - A way to recover/retry API calls in the case where the response +// is never received by the caller. Use the caller specified +// client_operation_id. type Operation struct { - // DnsKeyContext: Only populated if the operation targeted a DnsKey - // (output only). + // DnsKeyContext: Only populated if the operation targeted a DnsKey (output + // only). DnsKeyContext *OperationDnsKeyContext `json:"dnsKeyContext,omitempty"` - - // Id: Unique identifier for the resource. This is the - // client_operation_id if the client specified it when the mutation was - // initiated, otherwise, it is generated by the server. The name must be - // 1-63 characters long and match the regular expression [-a-z0-9]? - // (output only) - Id string `json:"id,omitempty"` - + // Id: Unique identifier for the resource. This is the client_operation_id if + // the client specified it when the mutation was initiated, otherwise, it is + // generated by the server. The name must be 1-63 characters long and match the + // regular expression [-a-z0-9]? (output only) + Id string `json:"id,omitempty"` Kind string `json:"kind,omitempty"` - - // StartTime: The time that this operation was started by the server. - // This is in RFC3339 text format (output only). + // StartTime: The time that this operation was started by the server. This is + // in RFC3339 text format (output only). StartTime string `json:"startTime,omitempty"` - - // Status: Status of the operation. Can be one of the following: - // "PENDING" or "DONE" (output only). A status of "DONE" means that the - // request to update the authoritative servers has been sent, but the - // servers might not be updated yet. + // Status: Status of the operation. Can be one of the following: "PENDING" or + // "DONE" (output only). A status of "DONE" means that the request to update + // the authoritative servers has been sent, but the servers might not be + // updated yet. // // Possible values: // "PENDING" // "DONE" Status string `json:"status,omitempty"` - - // Type: Type of the operation. Operations include insert, update, and - // delete (output only). + // Type: Type of the operation. Operations include insert, update, and delete + // (output only). Type string `json:"type,omitempty"` - - // User: User who requested the operation, for example: - // user@example.com. cloud-dns-system for operations automatically done - // by the system. (output only) + // User: User who requested the operation, for example: user@example.com. + // cloud-dns-system for operations automatically done by the system. (output + // only) User string `json:"user,omitempty"` - - // ZoneContext: Only populated if the operation targeted a ManagedZone - // (output only). + // ZoneContext: Only populated if the operation targeted a ManagedZone (output + // only). ZoneContext *OperationManagedZoneContext `json:"zoneContext,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DnsKeyContext") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DnsKeyContext") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DnsKeyContext") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OperationDnsKeyContext struct { // NewValue: The post-operation DnsKey resource. NewValue *DnsKey `json:"newValue,omitempty"` - // OldValue: The pre-operation DnsKey resource. OldValue *DnsKey `json:"oldValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "NewValue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NewValue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NewValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationDnsKeyContext) MarshalJSON() ([]byte, error) { +func (s OperationDnsKeyContext) MarshalJSON() ([]byte, error) { type NoMethod OperationDnsKeyContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OperationManagedZoneContext struct { // NewValue: The post-operation ManagedZone resource. NewValue *ManagedZone `json:"newValue,omitempty"` - // OldValue: The pre-operation ManagedZone resource. OldValue *ManagedZone `json:"oldValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "NewValue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NewValue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NewValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationManagedZoneContext) MarshalJSON() ([]byte, error) { +func (s OperationManagedZoneContext) MarshalJSON() ([]byte, error) { type NoMethod OperationManagedZoneContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PoliciesListResponse struct { Header *ResponseHeader `json:"header,omitempty"` - // Kind: Type of resource. Kind string `json:"kind,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // page token. In this way you can retrieve the complete contents of - // even very large collections one page at a time. However, if the - // contents of the collection change between the first and last - // paginated list request, the set of all elements returned will be an - // inconsistent view of the collection. There is no way to retrieve a - // consistent snapshot of a collection larger than the maximum page + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your page token. In this + // way you can retrieve the complete contents of even very large collections + // one page at a time. However, if the contents of the collection change + // between the first and last paginated list request, the set of all elements + // returned will be an inconsistent view of the collection. There is no way to + // retrieve a consistent snapshot of a collection larger than the maximum page // size. NextPageToken string `json:"nextPageToken,omitempty"` - // Policies: The policy resources. Policies []*Policy `json:"policies,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoliciesListResponse) MarshalJSON() ([]byte, error) { +func (s PoliciesListResponse) MarshalJSON() ([]byte, error) { type NoMethod PoliciesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PoliciesPatchResponse struct { Header *ResponseHeader `json:"header,omitempty"` + Policy *Policy `json:"policy,omitempty"` - Policy *Policy `json:"policy,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoliciesPatchResponse) MarshalJSON() ([]byte, error) { +func (s PoliciesPatchResponse) MarshalJSON() ([]byte, error) { type NoMethod PoliciesPatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PoliciesUpdateResponse struct { Header *ResponseHeader `json:"header,omitempty"` + Policy *Policy `json:"policy,omitempty"` - Policy *Policy `json:"policy,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoliciesUpdateResponse) MarshalJSON() ([]byte, error) { +func (s PoliciesUpdateResponse) MarshalJSON() ([]byte, error) { type NoMethod PoliciesUpdateResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Policy: A policy is a collection of DNS rules applied to one or more -// Virtual Private Cloud resources. +// Policy: A policy is a collection of DNS rules applied to one or more Virtual +// Private Cloud resources. type Policy struct { // AlternativeNameServerConfig: Sets an alternative name server for the - // associated networks. When specified, all DNS queries are forwarded to - // a name server that you choose. Names such as .internal are not - // available when an alternative name server is specified. + // associated networks. When specified, all DNS queries are forwarded to a name + // server that you choose. Names such as .internal are not available when an + // alternative name server is specified. AlternativeNameServerConfig *PolicyAlternativeNameServerConfig `json:"alternativeNameServerConfig,omitempty"` - - // Description: A mutable string of at most 1024 characters associated - // with this resource for the user's convenience. Has no effect on the - // policy's function. + // Description: A mutable string of at most 1024 characters associated with + // this resource for the user's convenience. Has no effect on the policy's + // function. Description string `json:"description,omitempty"` - - // EnableInboundForwarding: Allows networks bound to this policy to - // receive DNS queries sent by VMs or applications over VPN connections. - // When enabled, a virtual IP address will be allocated from each of the - // sub-networks that are bound to this policy. + // EnableInboundForwarding: Allows networks bound to this policy to receive DNS + // queries sent by VMs or applications over VPN connections. When enabled, a + // virtual IP address will be allocated from each of the sub-networks that are + // bound to this policy. EnableInboundForwarding bool `json:"enableInboundForwarding,omitempty"` - - // EnableLogging: Controls whether logging is enabled for the networks - // bound to this policy. Defaults to no logging if not set. + // EnableLogging: Controls whether logging is enabled for the networks bound to + // this policy. Defaults to no logging if not set. EnableLogging bool `json:"enableLogging,omitempty"` - - // Id: Unique identifier for the resource; defined by the server (output - // only). - Id uint64 `json:"id,omitempty,string"` - + // Id: Unique identifier for the resource; defined by the server (output only). + Id uint64 `json:"id,omitempty,string"` Kind string `json:"kind,omitempty"` - // Name: User assigned name for this policy. Name string `json:"name,omitempty"` - - // Networks: List of network names specifying networks to which this - // policy is applied. + // Networks: List of network names specifying networks to which this policy is + // applied. Networks []*PolicyNetwork `json:"networks,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "AlternativeNameServerConfig") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "AlternativeNameServerConfig") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AlternativeNameServerConfig") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlternativeNameServerConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PolicyAlternativeNameServerConfig struct { Kind string `json:"kind,omitempty"` - // TargetNameServers: Sets an alternative name server for the associated - // networks. When specified, all DNS queries are forwarded to a name - // server that you choose. Names such as .internal are not available - // when an alternative name server is specified. + // networks. When specified, all DNS queries are forwarded to a name server + // that you choose. Names such as .internal are not available when an + // alternative name server is specified. TargetNameServers []*PolicyAlternativeNameServerConfigTargetNameServer `json:"targetNameServers,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PolicyAlternativeNameServerConfig) MarshalJSON() ([]byte, error) { +func (s PolicyAlternativeNameServerConfig) MarshalJSON() ([]byte, error) { type NoMethod PolicyAlternativeNameServerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PolicyAlternativeNameServerConfigTargetNameServer struct { - // ForwardingPath: Forwarding path for this TargetNameServer. If unset - // or set to DEFAULT, Cloud DNS will make forwarding decision based on - // address ranges, i.e. RFC1918 addresses go to the VPC, non-RFC1918 - // addresses go to the Internet. When set to PRIVATE, Cloud DNS will - // always send queries through VPC for this target. + // ForwardingPath: Forwarding path for this TargetNameServer. If unset or set + // to DEFAULT, Cloud DNS will make forwarding decision based on address ranges, + // i.e. RFC1918 addresses go to the VPC, non-RFC1918 addresses go to the + // Internet. When set to PRIVATE, Cloud DNS will always send queries through + // VPC for this target. // // Possible values: - // "DEFAULT" - Cloud DNS will make forwarding decision based on - // address ranges, i.e. RFC1918 addresses forward to the target through - // the VPC and non-RFC1918 addresses will forward to the target through - // the Internet - // "PRIVATE" - Cloud DNS will always forward to this target through - // the VPC. + // "DEFAULT" - Cloud DNS will make forwarding decision based on address + // ranges, i.e. RFC1918 addresses forward to the target through the VPC and + // non-RFC1918 addresses will forward to the target through the Internet + // "PRIVATE" - Cloud DNS will always forward to this target through the VPC. ForwardingPath string `json:"forwardingPath,omitempty"` - // Ipv4Address: IPv4 address to forward to. Ipv4Address string `json:"ipv4Address,omitempty"` - - Kind string `json:"kind,omitempty"` - + Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "ForwardingPath") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ForwardingPath") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ForwardingPath") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PolicyAlternativeNameServerConfigTargetNameServer) MarshalJSON() ([]byte, error) { +func (s PolicyAlternativeNameServerConfigTargetNameServer) MarshalJSON() ([]byte, error) { type NoMethod PolicyAlternativeNameServerConfigTargetNameServer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PolicyNetwork struct { Kind string `json:"kind,omitempty"` - - // NetworkUrl: The fully qualified URL of the VPC network to bind to. - // This should be formatted like + // NetworkUrl: The fully qualified URL of the VPC network to bind to. This + // should be formatted like // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} NetworkUrl string `json:"networkUrl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PolicyNetwork) MarshalJSON() ([]byte, error) { +func (s PolicyNetwork) MarshalJSON() ([]byte, error) { type NoMethod PolicyNetwork - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Project: A project resource. The project is a top level container for -// resources including Cloud DNS ManagedZones. Projects can be created -// only in the APIs console. +// resources including Cloud DNS ManagedZones. Projects can be created only in +// the APIs console. type Project struct { // Id: User assigned unique identifier for the resource (output only). - Id string `json:"id,omitempty"` - + Id string `json:"id,omitempty"` Kind string `json:"kind,omitempty"` - - // Number: Unique numeric identifier for the resource; defined by the - // server (output only). + // Number: Unique numeric identifier for the resource; defined by the server + // (output only). Number uint64 `json:"number,omitempty,string"` - // Quota: Quotas assigned to this project (output only). Quota *Quota `json:"quota,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Project) MarshalJSON() ([]byte, error) { +func (s Project) MarshalJSON() ([]byte, error) { type NoMethod Project - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Quota: Limits associated with a Project. type Quota struct { - // DnsKeysPerManagedZone: Maximum allowed number of DnsKeys per - // ManagedZone. - DnsKeysPerManagedZone int64 `json:"dnsKeysPerManagedZone,omitempty"` - - Kind string `json:"kind,omitempty"` - + // DnsKeysPerManagedZone: Maximum allowed number of DnsKeys per ManagedZone. + DnsKeysPerManagedZone int64 `json:"dnsKeysPerManagedZone,omitempty"` + Kind string `json:"kind,omitempty"` // ManagedZones: Maximum allowed number of managed zones in the project. ManagedZones int64 `json:"managedZones,omitempty"` - - // ManagedZonesPerNetwork: Maximum allowed number of managed zones which - // can be attached to a network. + // ManagedZonesPerNetwork: Maximum allowed number of managed zones which can be + // attached to a network. ManagedZonesPerNetwork int64 `json:"managedZonesPerNetwork,omitempty"` - // NetworksPerManagedZone: Maximum allowed number of networks to which a // privately scoped zone can be attached. NetworksPerManagedZone int64 `json:"networksPerManagedZone,omitempty"` - // NetworksPerPolicy: Maximum allowed number of networks per policy. NetworksPerPolicy int64 `json:"networksPerPolicy,omitempty"` - // Policies: Maximum allowed number of policies per project. Policies int64 `json:"policies,omitempty"` - - // ResourceRecordsPerRrset: Maximum allowed number of ResourceRecords - // per ResourceRecordSet. + // ResourceRecordsPerRrset: Maximum allowed number of ResourceRecords per + // ResourceRecordSet. ResourceRecordsPerRrset int64 `json:"resourceRecordsPerRrset,omitempty"` - - // RrsetAdditionsPerChange: Maximum allowed number of ResourceRecordSets - // to add per ChangesCreateRequest. + // RrsetAdditionsPerChange: Maximum allowed number of ResourceRecordSets to add + // per ChangesCreateRequest. RrsetAdditionsPerChange int64 `json:"rrsetAdditionsPerChange,omitempty"` - - // RrsetDeletionsPerChange: Maximum allowed number of ResourceRecordSets - // to delete per ChangesCreateRequest. + // RrsetDeletionsPerChange: Maximum allowed number of ResourceRecordSets to + // delete per ChangesCreateRequest. RrsetDeletionsPerChange int64 `json:"rrsetDeletionsPerChange,omitempty"` - - // RrsetsPerManagedZone: Maximum allowed number of ResourceRecordSets - // per zone in the project. + // RrsetsPerManagedZone: Maximum allowed number of ResourceRecordSets per zone + // in the project. RrsetsPerManagedZone int64 `json:"rrsetsPerManagedZone,omitempty"` - - // TargetNameServersPerManagedZone: Maximum allowed number of target - // name servers per managed forwarding zone. + // TargetNameServersPerManagedZone: Maximum allowed number of target name + // servers per managed forwarding zone. TargetNameServersPerManagedZone int64 `json:"targetNameServersPerManagedZone,omitempty"` - - // TargetNameServersPerPolicy: Maximum allowed number of alternative - // target name servers per policy. + // TargetNameServersPerPolicy: Maximum allowed number of alternative target + // name servers per policy. TargetNameServersPerPolicy int64 `json:"targetNameServersPerPolicy,omitempty"` - - // TotalRrdataSizePerChange: Maximum allowed size for total rrdata in - // one ChangesCreateRequest in bytes. + // TotalRrdataSizePerChange: Maximum allowed size for total rrdata in one + // ChangesCreateRequest in bytes. TotalRrdataSizePerChange int64 `json:"totalRrdataSizePerChange,omitempty"` - - // WhitelistedKeySpecs: DNSSEC algorithm and key length types that can - // be used for DnsKeys. + // WhitelistedKeySpecs: DNSSEC algorithm and key length types that can be used + // for DnsKeys. WhitelistedKeySpecs []*DnsKeySpec `json:"whitelistedKeySpecs,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DnsKeysPerManagedZone") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DnsKeysPerManagedZone") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DnsKeysPerManagedZone") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Quota) MarshalJSON() ([]byte, error) { +func (s Quota) MarshalJSON() ([]byte, error) { type NoMethod Quota - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResourceRecordSet: A unit of data that will be returned by the DNS -// servers. +// ResourceRecordSet: A unit of data that will be returned by the DNS servers. type ResourceRecordSet struct { Kind string `json:"kind,omitempty"` - // Name: For example, www.example.com. Name string `json:"name,omitempty"` - - // Rrdatas: As defined in RFC 1035 (section 5) and RFC 1034 (section - // 3.6.1) -- see examples. + // Rrdatas: As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- + // see examples. Rrdatas []string `json:"rrdatas,omitempty"` - // SignatureRrdatas: As defined in RFC 4034 (section 3.2). SignatureRrdatas []string `json:"signatureRrdatas,omitempty"` - // Ttl: Number of seconds that this ResourceRecordSet can be cached by // resolvers. Ttl int64 `json:"ttl,omitempty"` - - // Type: The identifier of a supported record type. See the list of - // Supported DNS record types. + // Type: The identifier of a supported record type. See the list of Supported + // DNS record types. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResourceRecordSet) MarshalJSON() ([]byte, error) { +func (s ResourceRecordSet) MarshalJSON() ([]byte, error) { type NoMethod ResourceRecordSet - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResourceRecordSetsListResponse struct { Header *ResponseHeader `json:"header,omitempty"` - // Kind: Type of resource. Kind string `json:"kind,omitempty"` - - // NextPageToken: The presence of this field indicates that there exist - // more results following your last page of results in pagination order. - // To fetch them, make another list request using this value as your - // pagination token. In this way you can retrieve the complete contents - // of even very large collections one page at a time. However, if the - // contents of the collection change between the first and last - // paginated list request, the set of all elements returned will be an - // inconsistent view of the collection. There is no way to retrieve a - // consistent snapshot of a collection larger than the maximum page - // size. + // NextPageToken: The presence of this field indicates that there exist more + // results following your last page of results in pagination order. To fetch + // them, make another list request using this value as your pagination token. + // In this way you can retrieve the complete contents of even very large + // collections one page at a time. However, if the contents of the collection + // change between the first and last paginated list request, the set of all + // elements returned will be an inconsistent view of the collection. There is + // no way to retrieve a consistent snapshot of a collection larger than the + // maximum page size. NextPageToken string `json:"nextPageToken,omitempty"` - // Rrsets: The resource record set resources. Rrsets []*ResourceRecordSet `json:"rrsets,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResourceRecordSetsListResponse) MarshalJSON() ([]byte, error) { +func (s ResourceRecordSetsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ResourceRecordSetsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ResponseHeader: Elements common to every response. type ResponseHeader struct { - // OperationId: For mutating operation requests that completed - // successfully. This is the client_operation_id if the client specified - // it, otherwise it is generated by the server (output only). + // OperationId: For mutating operation requests that completed successfully. + // This is the client_operation_id if the client specified it, otherwise it is + // generated by the server (output only). OperationId string `json:"operationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "OperationId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OperationId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "OperationId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponseHeader) MarshalJSON() ([]byte, error) { +func (s ResponseHeader) MarshalJSON() ([]byte, error) { type NoMethod ResponseHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "dns.changes.create": - type ChangesCreateCall struct { s *Service project string @@ -1733,6 +1404,10 @@ type ChangesCreateCall struct { } // Create: Atomically update the ResourceRecordSet collection. +// +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or id. +// - project: Identifies the project addressed by this request. func (r *ChangesService) Create(project string, managedZone string, change *Change) *ChangesCreateCall { c := &ChangesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -1741,33 +1416,30 @@ func (r *ChangesService) Create(project string, managedZone string, change *Chan return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ChangesCreateCall) ClientOperationId(clientOperationId string) *ChangesCreateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangesCreateCall) Fields(s ...googleapi.Field) *ChangesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangesCreateCall) Context(ctx context.Context) *ChangesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1776,18 +1448,12 @@ func (c *ChangesCreateCall) Header() http.Header { } func (c *ChangesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.change) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes") @@ -1801,16 +1467,14 @@ func (c *ChangesCreateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.create" call. -// Exactly one of *Change or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Change.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Change.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ChangesCreateCall) Do(opts ...googleapi.CallOption) (*Change, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1818,17 +1482,17 @@ func (c *ChangesCreateCall) Do(opts ...googleapi.CallOption) (*Change, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Change{ ServerResponse: googleapi.ServerResponse{ @@ -1841,50 +1505,7 @@ func (c *ChangesCreateCall) Do(opts ...googleapi.CallOption) (*Change, error) { return nil, err } return ret, nil - // { - // "description": "Atomically update the ResourceRecordSet collection.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes", - // "httpMethod": "POST", - // "id": "dns.changes.create", - // "parameterOrder": [ - // "project", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes", - // "request": { - // "$ref": "Change" - // }, - // "response": { - // "$ref": "Change" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.changes.get": +} type ChangesGetCall struct { s *Service @@ -1898,6 +1519,12 @@ type ChangesGetCall struct { } // Get: Fetch the representation of an existing Change. +// +// - changeId: The identifier of the requested change, from a previous +// ResourceRecordSetsChangeResponse. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or id. +// - project: Identifies the project addressed by this request. func (r *ChangesService) Get(project string, managedZone string, changeId string) *ChangesGetCall { c := &ChangesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -1906,43 +1533,38 @@ func (r *ChangesService) Get(project string, managedZone string, changeId string return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ChangesGetCall) ClientOperationId(clientOperationId string) *ChangesGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangesGetCall) Fields(s ...googleapi.Field) *ChangesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangesGetCall) IfNoneMatch(entityTag string) *ChangesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangesGetCall) Context(ctx context.Context) *ChangesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1951,12 +1573,7 @@ func (c *ChangesGetCall) Header() http.Header { } func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1975,16 +1592,14 @@ func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) { "managedZone": c.managedZone, "changeId": c.changeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.get" call. -// Exactly one of *Change or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Change.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Change.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ChangesGetCall) Do(opts ...googleapi.CallOption) (*Change, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1992,17 +1607,17 @@ func (c *ChangesGetCall) Do(opts ...googleapi.CallOption) (*Change, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Change{ ServerResponse: googleapi.ServerResponse{ @@ -2015,56 +1630,7 @@ func (c *ChangesGetCall) Do(opts ...googleapi.CallOption) (*Change, error) { return nil, err } return ret, nil - // { - // "description": "Fetch the representation of an existing Change.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes/{changeId}", - // "httpMethod": "GET", - // "id": "dns.changes.get", - // "parameterOrder": [ - // "project", - // "managedZone", - // "changeId" - // ], - // "parameters": { - // "changeId": { - // "description": "The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes/{changeId}", - // "response": { - // "$ref": "Change" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.changes.list": +} type ChangesListCall struct { s *Service @@ -2077,6 +1643,10 @@ type ChangesListCall struct { } // List: Enumerate Changes to a ResourceRecordSet collection. +// +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or id. +// - project: Identifies the project addressed by this request. func (r *ChangesService) List(project string, managedZone string) *ChangesListCall { c := &ChangesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -2084,24 +1654,24 @@ func (r *ChangesService) List(project string, managedZone string) *ChangesListCa return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server will decide how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server will decide how many +// results to return. func (c *ChangesListCall) MaxResults(maxResults int64) *ChangesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *ChangesListCall) PageToken(pageToken string) *ChangesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// SortBy sets the optional parameter "sortBy": Sorting criterion. The -// only supported value is change sequence. +// SortBy sets the optional parameter "sortBy": Sorting criterion. The only +// supported value is change sequence. // // Possible values: // @@ -2111,41 +1681,37 @@ func (c *ChangesListCall) SortBy(sortBy string) *ChangesListCall { return c } -// SortOrder sets the optional parameter "sortOrder": Sorting order -// direction: 'ascending' or 'descending'. +// SortOrder sets the optional parameter "sortOrder": Sorting order direction: +// 'ascending' or 'descending'. func (c *ChangesListCall) SortOrder(sortOrder string) *ChangesListCall { c.urlParams_.Set("sortOrder", sortOrder) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChangesListCall) Fields(s ...googleapi.Field) *ChangesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ChangesListCall) IfNoneMatch(entityTag string) *ChangesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChangesListCall) Context(ctx context.Context) *ChangesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChangesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2154,12 +1720,7 @@ func (c *ChangesListCall) Header() http.Header { } func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2177,16 +1738,15 @@ func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.changes.list" call. -// Exactly one of *ChangesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ChangesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ChangesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2194,17 +1754,17 @@ func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangesListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ChangesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2217,69 +1777,6 @@ func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangesListResponse return nil, err } return ret, nil - // { - // "description": "Enumerate Changes to a ResourceRecordSet collection.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes", - // "httpMethod": "GET", - // "id": "dns.changes.list", - // "parameterOrder": [ - // "project", - // "managedZone" - // ], - // "parameters": { - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortBy": { - // "default": "CHANGE_SEQUENCE", - // "description": "Sorting criterion. The only supported value is change sequence.", - // "enum": [ - // "CHANGE_SEQUENCE" - // ], - // "enumDescriptions": [ - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "description": "Sorting order direction: 'ascending' or 'descending'.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes", - // "response": { - // "$ref": "ChangesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -2287,7 +1784,7 @@ func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangesListResponse // The provided context supersedes any context provided to the Context method. func (c *ChangesListCall) Pages(ctx context.Context, f func(*ChangesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2303,8 +1800,6 @@ func (c *ChangesListCall) Pages(ctx context.Context, f func(*ChangesListResponse } } -// method id "dns.dnsKeys.get": - type DnsKeysGetCall struct { s *Service project string @@ -2317,6 +1812,11 @@ type DnsKeysGetCall struct { } // Get: Fetch the representation of an existing DnsKey. +// +// - dnsKeyId: The identifier of the requested DnsKey. +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or id. +// - project: Identifies the project addressed by this request. func (r *DnsKeysService) Get(project string, managedZone string, dnsKeyId string) *DnsKeysGetCall { c := &DnsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -2325,52 +1825,47 @@ func (r *DnsKeysService) Get(project string, managedZone string, dnsKeyId string return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *DnsKeysGetCall) ClientOperationId(clientOperationId string) *DnsKeysGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // DigestType sets the optional parameter "digestType": An optional -// comma-separated list of digest types to compute and display for key -// signing keys. If omitted, the recommended digest type will be -// computed and displayed. +// comma-separated list of digest types to compute and display for key signing +// keys. If omitted, the recommended digest type will be computed and +// displayed. func (c *DnsKeysGetCall) DigestType(digestType string) *DnsKeysGetCall { c.urlParams_.Set("digestType", digestType) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DnsKeysGetCall) Fields(s ...googleapi.Field) *DnsKeysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DnsKeysGetCall) IfNoneMatch(entityTag string) *DnsKeysGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DnsKeysGetCall) Context(ctx context.Context) *DnsKeysGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DnsKeysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2379,12 +1874,7 @@ func (c *DnsKeysGetCall) Header() http.Header { } func (c *DnsKeysGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2403,16 +1893,14 @@ func (c *DnsKeysGetCall) doRequest(alt string) (*http.Response, error) { "managedZone": c.managedZone, "dnsKeyId": c.dnsKeyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.dnsKeys.get" call. -// Exactly one of *DnsKey or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *DnsKey.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DnsKey.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DnsKeysGetCall) Do(opts ...googleapi.CallOption) (*DnsKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2420,17 +1908,17 @@ func (c *DnsKeysGetCall) Do(opts ...googleapi.CallOption) (*DnsKey, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DnsKey{ ServerResponse: googleapi.ServerResponse{ @@ -2443,61 +1931,7 @@ func (c *DnsKeysGetCall) Do(opts ...googleapi.CallOption) (*DnsKey, error) { return nil, err } return ret, nil - // { - // "description": "Fetch the representation of an existing DnsKey.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}", - // "httpMethod": "GET", - // "id": "dns.dnsKeys.get", - // "parameterOrder": [ - // "project", - // "managedZone", - // "dnsKeyId" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "digestType": { - // "description": "An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type will be computed and displayed.", - // "location": "query", - // "type": "string" - // }, - // "dnsKeyId": { - // "description": "The identifier of the requested DnsKey.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}", - // "response": { - // "$ref": "DnsKey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.dnsKeys.list": +} type DnsKeysListCall struct { s *Service @@ -2510,6 +1944,10 @@ type DnsKeysListCall struct { } // List: Enumerate DnsKeys to a ResourceRecordSet collection. +// +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or id. +// - project: Identifies the project addressed by this request. func (r *DnsKeysService) List(project string, managedZone string) *DnsKeysListCall { c := &DnsKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -2518,58 +1956,54 @@ func (r *DnsKeysService) List(project string, managedZone string) *DnsKeysListCa } // DigestType sets the optional parameter "digestType": An optional -// comma-separated list of digest types to compute and display for key -// signing keys. If omitted, the recommended digest type will be -// computed and displayed. +// comma-separated list of digest types to compute and display for key signing +// keys. If omitted, the recommended digest type will be computed and +// displayed. func (c *DnsKeysListCall) DigestType(digestType string) *DnsKeysListCall { c.urlParams_.Set("digestType", digestType) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server will decide how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server will decide how many +// results to return. func (c *DnsKeysListCall) MaxResults(maxResults int64) *DnsKeysListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *DnsKeysListCall) PageToken(pageToken string) *DnsKeysListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DnsKeysListCall) Fields(s ...googleapi.Field) *DnsKeysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DnsKeysListCall) IfNoneMatch(entityTag string) *DnsKeysListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DnsKeysListCall) Context(ctx context.Context) *DnsKeysListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DnsKeysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2578,12 +2012,7 @@ func (c *DnsKeysListCall) Header() http.Header { } func (c *DnsKeysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2601,16 +2030,15 @@ func (c *DnsKeysListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.dnsKeys.list" call. -// Exactly one of *DnsKeysListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DnsKeysListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DnsKeysListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DnsKeysListCall) Do(opts ...googleapi.CallOption) (*DnsKeysListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2618,17 +2046,17 @@ func (c *DnsKeysListCall) Do(opts ...googleapi.CallOption) (*DnsKeysListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DnsKeysListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2641,57 +2069,6 @@ func (c *DnsKeysListCall) Do(opts ...googleapi.CallOption) (*DnsKeysListResponse return nil, err } return ret, nil - // { - // "description": "Enumerate DnsKeys to a ResourceRecordSet collection.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys", - // "httpMethod": "GET", - // "id": "dns.dnsKeys.list", - // "parameterOrder": [ - // "project", - // "managedZone" - // ], - // "parameters": { - // "digestType": { - // "description": "An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type will be computed and displayed.", - // "location": "query", - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys", - // "response": { - // "$ref": "DnsKeysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -2699,7 +2076,7 @@ func (c *DnsKeysListCall) Do(opts ...googleapi.CallOption) (*DnsKeysListResponse // The provided context supersedes any context provided to the Context method. func (c *DnsKeysListCall) Pages(ctx context.Context, f func(*DnsKeysListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2715,8 +2092,6 @@ func (c *DnsKeysListCall) Pages(ctx context.Context, f func(*DnsKeysListResponse } } -// method id "dns.managedZoneOperations.get": - type ManagedZoneOperationsGetCall struct { s *Service project string @@ -2729,6 +2104,10 @@ type ManagedZoneOperationsGetCall struct { } // Get: Fetch the representation of an existing Operation. +// +// - managedZone: Identifies the managed zone addressed by this request. +// - operation: Identifies the operation addressed by this request. +// - project: Identifies the project addressed by this request. func (r *ManagedZoneOperationsService) Get(project string, managedZone string, operation string) *ManagedZoneOperationsGetCall { c := &ManagedZoneOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -2737,43 +2116,38 @@ func (r *ManagedZoneOperationsService) Get(project string, managedZone string, o return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZoneOperationsGetCall) ClientOperationId(clientOperationId string) *ManagedZoneOperationsGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZoneOperationsGetCall) Fields(s ...googleapi.Field) *ManagedZoneOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagedZoneOperationsGetCall) IfNoneMatch(entityTag string) *ManagedZoneOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZoneOperationsGetCall) Context(ctx context.Context) *ManagedZoneOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZoneOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2782,12 +2156,7 @@ func (c *ManagedZoneOperationsGetCall) Header() http.Header { } func (c *ManagedZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2806,16 +2175,14 @@ func (c *ManagedZoneOperationsGetCall) doRequest(alt string) (*http.Response, er "managedZone": c.managedZone, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZoneOperations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ManagedZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2823,17 +2190,17 @@ func (c *ManagedZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2846,56 +2213,7 @@ func (c *ManagedZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operat return nil, err } return ret, nil - // { - // "description": "Fetch the representation of an existing Operation.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations/{operation}", - // "httpMethod": "GET", - // "id": "dns.managedZoneOperations.get", - // "parameterOrder": [ - // "project", - // "managedZone", - // "operation" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "operation": { - // "description": "Identifies the operation addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations/{operation}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.managedZoneOperations.list": +} type ManagedZoneOperationsListCall struct { s *Service @@ -2908,6 +2226,9 @@ type ManagedZoneOperationsListCall struct { } // List: Enumerate Operations for the given ManagedZone. +// +// - managedZone: Identifies the managed zone addressed by this request. +// - project: Identifies the project addressed by this request. func (r *ManagedZoneOperationsService) List(project string, managedZone string) *ManagedZoneOperationsListCall { c := &ManagedZoneOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -2915,24 +2236,24 @@ func (r *ManagedZoneOperationsService) List(project string, managedZone string) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server will decide how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server will decide how many +// results to return. func (c *ManagedZoneOperationsListCall) MaxResults(maxResults int64) *ManagedZoneOperationsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *ManagedZoneOperationsListCall) PageToken(pageToken string) *ManagedZoneOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// SortBy sets the optional parameter "sortBy": Sorting criterion. The -// only supported values are START_TIME and ID. +// SortBy sets the optional parameter "sortBy": Sorting criterion. The only +// supported values are START_TIME and ID. // // Possible values: // @@ -2944,33 +2265,29 @@ func (c *ManagedZoneOperationsListCall) SortBy(sortBy string) *ManagedZoneOperat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZoneOperationsListCall) Fields(s ...googleapi.Field) *ManagedZoneOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagedZoneOperationsListCall) IfNoneMatch(entityTag string) *ManagedZoneOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZoneOperationsListCall) Context(ctx context.Context) *ManagedZoneOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZoneOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2979,12 +2296,7 @@ func (c *ManagedZoneOperationsListCall) Header() http.Header { } func (c *ManagedZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3002,17 +2314,15 @@ func (c *ManagedZoneOperationsListCall) doRequest(alt string) (*http.Response, e "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZoneOperations.list" call. -// Exactly one of *ManagedZoneOperationsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ManagedZoneOperationsListResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManagedZoneOperationsListResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ManagedZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*ManagedZoneOperationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3020,17 +2330,17 @@ func (c *ManagedZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*Manag if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ManagedZoneOperationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3043,66 +2353,6 @@ func (c *ManagedZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*Manag return nil, err } return ret, nil - // { - // "description": "Enumerate Operations for the given ManagedZone.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations", - // "httpMethod": "GET", - // "id": "dns.managedZoneOperations.list", - // "parameterOrder": [ - // "project", - // "managedZone" - // ], - // "parameters": { - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sortBy": { - // "default": "START_TIME", - // "description": "Sorting criterion. The only supported values are START_TIME and ID.", - // "enum": [ - // "START_TIME", - // "ID" - // ], - // "enumDescriptions": [ - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations", - // "response": { - // "$ref": "ManagedZoneOperationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -3110,7 +2360,7 @@ func (c *ManagedZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*Manag // The provided context supersedes any context provided to the Context method. func (c *ManagedZoneOperationsListCall) Pages(ctx context.Context, f func(*ManagedZoneOperationsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3126,8 +2376,6 @@ func (c *ManagedZoneOperationsListCall) Pages(ctx context.Context, f func(*Manag } } -// method id "dns.managedZones.create": - type ManagedZonesCreateCall struct { s *Service project string @@ -3138,6 +2386,8 @@ type ManagedZonesCreateCall struct { } // Create: Create a new ManagedZone. +// +// - project: Identifies the project addressed by this request. func (r *ManagedZonesService) Create(project string, managedzone *ManagedZone) *ManagedZonesCreateCall { c := &ManagedZonesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -3145,33 +2395,30 @@ func (r *ManagedZonesService) Create(project string, managedzone *ManagedZone) * return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZonesCreateCall) ClientOperationId(clientOperationId string) *ManagedZonesCreateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesCreateCall) Fields(s ...googleapi.Field) *ManagedZonesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesCreateCall) Context(ctx context.Context) *ManagedZonesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3180,18 +2427,12 @@ func (c *ManagedZonesCreateCall) Header() http.Header { } func (c *ManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.managedzone) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2beta1/projects/{project}/managedZones") @@ -3204,16 +2445,14 @@ func (c *ManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.create" call. -// Exactly one of *ManagedZone or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ManagedZone.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManagedZone.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ManagedZonesCreateCall) Do(opts ...googleapi.CallOption) (*ManagedZone, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3221,17 +2460,17 @@ func (c *ManagedZonesCreateCall) Do(opts ...googleapi.CallOption) (*ManagedZone, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ManagedZone{ ServerResponse: googleapi.ServerResponse{ @@ -3244,43 +2483,7 @@ func (c *ManagedZonesCreateCall) Do(opts ...googleapi.CallOption) (*ManagedZone, return nil, err } return ret, nil - // { - // "description": "Create a new ManagedZone.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones", - // "httpMethod": "POST", - // "id": "dns.managedZones.create", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones", - // "request": { - // "$ref": "ManagedZone" - // }, - // "response": { - // "$ref": "ManagedZone" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.managedZones.delete": +} type ManagedZonesDeleteCall struct { s *Service @@ -3292,6 +2495,10 @@ type ManagedZonesDeleteCall struct { } // Delete: Delete a previously created ManagedZone. +// +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or id. +// - project: Identifies the project addressed by this request. func (r *ManagedZonesService) Delete(project string, managedZone string) *ManagedZonesDeleteCall { c := &ManagedZonesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -3299,33 +2506,30 @@ func (r *ManagedZonesService) Delete(project string, managedZone string) *Manage return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZonesDeleteCall) ClientOperationId(clientOperationId string) *ManagedZonesDeleteCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesDeleteCall) Fields(s ...googleapi.Field) *ManagedZonesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesDeleteCall) Context(ctx context.Context) *ManagedZonesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3334,12 +2538,7 @@ func (c *ManagedZonesDeleteCall) Header() http.Header { } func (c *ManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3354,7 +2553,7 @@ func (c *ManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.delete" call. @@ -3366,47 +2565,10 @@ func (c *ManagedZonesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Delete a previously created ManagedZone.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}", - // "httpMethod": "DELETE", - // "id": "dns.managedZones.delete", - // "parameterOrder": [ - // "project", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}", - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.managedZones.get": +} type ManagedZonesGetCall struct { s *Service @@ -3419,6 +2581,10 @@ type ManagedZonesGetCall struct { } // Get: Fetch the representation of an existing ManagedZone. +// +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or id. +// - project: Identifies the project addressed by this request. func (r *ManagedZonesService) Get(project string, managedZone string) *ManagedZonesGetCall { c := &ManagedZonesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -3426,43 +2592,38 @@ func (r *ManagedZonesService) Get(project string, managedZone string) *ManagedZo return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZonesGetCall) ClientOperationId(clientOperationId string) *ManagedZonesGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesGetCall) Fields(s ...googleapi.Field) *ManagedZonesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagedZonesGetCall) IfNoneMatch(entityTag string) *ManagedZonesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesGetCall) Context(ctx context.Context) *ManagedZonesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3471,12 +2632,7 @@ func (c *ManagedZonesGetCall) Header() http.Header { } func (c *ManagedZonesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3494,16 +2650,14 @@ func (c *ManagedZonesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.get" call. -// Exactly one of *ManagedZone or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ManagedZone.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ManagedZone.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ManagedZonesGetCall) Do(opts ...googleapi.CallOption) (*ManagedZone, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3511,17 +2665,17 @@ func (c *ManagedZonesGetCall) Do(opts ...googleapi.CallOption) (*ManagedZone, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ManagedZone{ ServerResponse: googleapi.ServerResponse{ @@ -3534,49 +2688,7 @@ func (c *ManagedZonesGetCall) Do(opts ...googleapi.CallOption) (*ManagedZone, er return nil, err } return ret, nil - // { - // "description": "Fetch the representation of an existing ManagedZone.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}", - // "httpMethod": "GET", - // "id": "dns.managedZones.get", - // "parameterOrder": [ - // "project", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}", - // "response": { - // "$ref": "ManagedZone" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.managedZones.list": +} type ManagedZonesListCall struct { s *Service @@ -3587,65 +2699,62 @@ type ManagedZonesListCall struct { header_ http.Header } -// List: Enumerate ManagedZones that have been created but not yet -// deleted. +// List: Enumerate ManagedZones that have been created but not yet deleted. +// +// - project: Identifies the project addressed by this request. func (r *ManagedZonesService) List(project string) *ManagedZonesListCall { c := &ManagedZonesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project return c } -// DnsName sets the optional parameter "dnsName": Restricts the list to -// return only zones with this domain name. +// DnsName sets the optional parameter "dnsName": Restricts the list to return +// only zones with this domain name. func (c *ManagedZonesListCall) DnsName(dnsName string) *ManagedZonesListCall { c.urlParams_.Set("dnsName", dnsName) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server will decide how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server will decide how many +// results to return. func (c *ManagedZonesListCall) MaxResults(maxResults int64) *ManagedZonesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *ManagedZonesListCall) PageToken(pageToken string) *ManagedZonesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesListCall) Fields(s ...googleapi.Field) *ManagedZonesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ManagedZonesListCall) IfNoneMatch(entityTag string) *ManagedZonesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesListCall) Context(ctx context.Context) *ManagedZonesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3654,12 +2763,7 @@ func (c *ManagedZonesListCall) Header() http.Header { } func (c *ManagedZonesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3676,16 +2780,15 @@ func (c *ManagedZonesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.list" call. -// Exactly one of *ManagedZonesListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *ManagedZonesListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ManagedZonesListCall) Do(opts ...googleapi.CallOption) (*ManagedZonesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3693,17 +2796,17 @@ func (c *ManagedZonesListCall) Do(opts ...googleapi.CallOption) (*ManagedZonesLi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ManagedZonesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3716,50 +2819,6 @@ func (c *ManagedZonesListCall) Do(opts ...googleapi.CallOption) (*ManagedZonesLi return nil, err } return ret, nil - // { - // "description": "Enumerate ManagedZones that have been created but not yet deleted.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones", - // "httpMethod": "GET", - // "id": "dns.managedZones.list", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "dnsName": { - // "description": "Restricts the list to return only zones with this domain name.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones", - // "response": { - // "$ref": "ManagedZonesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -3767,7 +2826,7 @@ func (c *ManagedZonesListCall) Do(opts ...googleapi.CallOption) (*ManagedZonesLi // The provided context supersedes any context provided to the Context method. func (c *ManagedZonesListCall) Pages(ctx context.Context, f func(*ManagedZonesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3783,8 +2842,6 @@ func (c *ManagedZonesListCall) Pages(ctx context.Context, f func(*ManagedZonesLi } } -// method id "dns.managedZones.patch": - type ManagedZonesPatchCall struct { s *Service project string @@ -3796,6 +2853,10 @@ type ManagedZonesPatchCall struct { } // Patch: Apply a partial update to an existing ManagedZone. +// +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or id. +// - project: Identifies the project addressed by this request. func (r *ManagedZonesService) Patch(project string, managedZone string, managedzone *ManagedZone) *ManagedZonesPatchCall { c := &ManagedZonesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -3804,33 +2865,30 @@ func (r *ManagedZonesService) Patch(project string, managedZone string, managedz return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZonesPatchCall) ClientOperationId(clientOperationId string) *ManagedZonesPatchCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesPatchCall) Fields(s ...googleapi.Field) *ManagedZonesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesPatchCall) Context(ctx context.Context) *ManagedZonesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3839,18 +2897,12 @@ func (c *ManagedZonesPatchCall) Header() http.Header { } func (c *ManagedZonesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.managedzone) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2beta1/projects/{project}/managedZones/{managedZone}") @@ -3864,16 +2916,14 @@ func (c *ManagedZonesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ManagedZonesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3881,17 +2931,17 @@ func (c *ManagedZonesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3904,50 +2954,7 @@ func (c *ManagedZonesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, er return nil, err } return ret, nil - // { - // "description": "Apply a partial update to an existing ManagedZone.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}", - // "httpMethod": "PATCH", - // "id": "dns.managedZones.patch", - // "parameterOrder": [ - // "project", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}", - // "request": { - // "$ref": "ManagedZone" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.managedZones.update": +} type ManagedZonesUpdateCall struct { s *Service @@ -3960,6 +2967,10 @@ type ManagedZonesUpdateCall struct { } // Update: Update an existing ManagedZone. +// +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or id. +// - project: Identifies the project addressed by this request. func (r *ManagedZonesService) Update(project string, managedZone string, managedzone *ManagedZone) *ManagedZonesUpdateCall { c := &ManagedZonesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -3968,33 +2979,30 @@ func (r *ManagedZonesService) Update(project string, managedZone string, managed return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ManagedZonesUpdateCall) ClientOperationId(clientOperationId string) *ManagedZonesUpdateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ManagedZonesUpdateCall) Fields(s ...googleapi.Field) *ManagedZonesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ManagedZonesUpdateCall) Context(ctx context.Context) *ManagedZonesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ManagedZonesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4003,18 +3011,12 @@ func (c *ManagedZonesUpdateCall) Header() http.Header { } func (c *ManagedZonesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.managedzone) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2beta1/projects/{project}/managedZones/{managedZone}") @@ -4028,16 +3030,14 @@ func (c *ManagedZonesUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.managedZones.update" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ManagedZonesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4045,17 +3045,17 @@ func (c *ManagedZonesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4068,50 +3068,7 @@ func (c *ManagedZonesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, e return nil, err } return ret, nil - // { - // "description": "Update an existing ManagedZone.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}", - // "httpMethod": "PUT", - // "id": "dns.managedZones.update", - // "parameterOrder": [ - // "project", - // "managedZone" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}", - // "request": { - // "$ref": "ManagedZone" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.policies.create": +} type PoliciesCreateCall struct { s *Service @@ -4123,6 +3080,8 @@ type PoliciesCreateCall struct { } // Create: Create a new Policy +// +// - project: Identifies the project addressed by this request. func (r *PoliciesService) Create(project string, policy *Policy) *PoliciesCreateCall { c := &PoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4130,33 +3089,30 @@ func (r *PoliciesService) Create(project string, policy *Policy) *PoliciesCreate return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *PoliciesCreateCall) ClientOperationId(clientOperationId string) *PoliciesCreateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesCreateCall) Fields(s ...googleapi.Field) *PoliciesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesCreateCall) Context(ctx context.Context) *PoliciesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4165,18 +3121,12 @@ func (c *PoliciesCreateCall) Header() http.Header { } func (c *PoliciesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.policy) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2beta1/projects/{project}/policies") @@ -4189,16 +3139,14 @@ func (c *PoliciesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.create" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4206,17 +3154,17 @@ func (c *PoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Policy, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -4229,39 +3177,7 @@ func (c *PoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Policy, error) { return nil, err } return ret, nil - // { - // "description": "Create a new Policy", - // "flatPath": "dns/v2beta1/projects/{project}/policies", - // "httpMethod": "POST", - // "id": "dns.policies.create", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/policies", - // "request": { - // "$ref": "Policy" - // }, - // "response": { - // "$ref": "Policy" - // } - // } - -} - -// method id "dns.policies.delete": +} type PoliciesDeleteCall struct { s *Service @@ -4272,8 +3188,11 @@ type PoliciesDeleteCall struct { header_ http.Header } -// Delete: Delete a previously created Policy. Will fail if the policy -// is still being referenced by a network. +// Delete: Delete a previously created Policy. Will fail if the policy is still +// being referenced by a network. +// +// - policy: User given friendly name of the policy addressed by this request. +// - project: Identifies the project addressed by this request. func (r *PoliciesService) Delete(project string, policy string) *PoliciesDeleteCall { c := &PoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4281,33 +3200,30 @@ func (r *PoliciesService) Delete(project string, policy string) *PoliciesDeleteC return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *PoliciesDeleteCall) ClientOperationId(clientOperationId string) *PoliciesDeleteCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesDeleteCall) Fields(s ...googleapi.Field) *PoliciesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesDeleteCall) Context(ctx context.Context) *PoliciesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4316,12 +3232,7 @@ func (c *PoliciesDeleteCall) Header() http.Header { } func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4336,7 +3247,7 @@ func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.delete" call. @@ -4348,43 +3259,10 @@ func (c *PoliciesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Delete a previously created Policy. Will fail if the policy is still being referenced by a network.", - // "flatPath": "dns/v2beta1/projects/{project}/policies/{policy}", - // "httpMethod": "DELETE", - // "id": "dns.policies.delete", - // "parameterOrder": [ - // "project", - // "policy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "policy": { - // "description": "User given friendly name of the policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/policies/{policy}" - // } - -} - -// method id "dns.policies.get": +} type PoliciesGetCall struct { s *Service @@ -4397,6 +3275,9 @@ type PoliciesGetCall struct { } // Get: Fetch the representation of an existing Policy. +// +// - policy: User given friendly name of the policy addressed by this request. +// - project: Identifies the project addressed by this request. func (r *PoliciesService) Get(project string, policy string) *PoliciesGetCall { c := &PoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4404,43 +3285,38 @@ func (r *PoliciesService) Get(project string, policy string) *PoliciesGetCall { return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *PoliciesGetCall) ClientOperationId(clientOperationId string) *PoliciesGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesGetCall) Fields(s ...googleapi.Field) *PoliciesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PoliciesGetCall) IfNoneMatch(entityTag string) *PoliciesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesGetCall) Context(ctx context.Context) *PoliciesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4449,12 +3325,7 @@ func (c *PoliciesGetCall) Header() http.Header { } func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4472,16 +3343,14 @@ func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.get" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PoliciesGetCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4489,17 +3358,17 @@ func (c *PoliciesGetCall) Do(opts ...googleapi.CallOption) (*Policy, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -4512,43 +3381,7 @@ func (c *PoliciesGetCall) Do(opts ...googleapi.CallOption) (*Policy, error) { return nil, err } return ret, nil - // { - // "description": "Fetch the representation of an existing Policy.", - // "flatPath": "dns/v2beta1/projects/{project}/policies/{policy}", - // "httpMethod": "GET", - // "id": "dns.policies.get", - // "parameterOrder": [ - // "project", - // "policy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "policy": { - // "description": "User given friendly name of the policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/policies/{policy}", - // "response": { - // "$ref": "Policy" - // } - // } - -} - -// method id "dns.policies.list": +} type PoliciesListCall struct { s *Service @@ -4560,56 +3393,54 @@ type PoliciesListCall struct { } // List: Enumerate all Policies associated with a project. +// +// - project: Identifies the project addressed by this request. func (r *PoliciesService) List(project string) *PoliciesListCall { c := &PoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server will decide how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server will decide how many +// results to return. func (c *PoliciesListCall) MaxResults(maxResults int64) *PoliciesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *PoliciesListCall) PageToken(pageToken string) *PoliciesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesListCall) Fields(s ...googleapi.Field) *PoliciesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PoliciesListCall) IfNoneMatch(entityTag string) *PoliciesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesListCall) Context(ctx context.Context) *PoliciesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4618,12 +3449,7 @@ func (c *PoliciesListCall) Header() http.Header { } func (c *PoliciesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4640,16 +3466,15 @@ func (c *PoliciesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.list" call. -// Exactly one of *PoliciesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PoliciesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PoliciesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PoliciesListCall) Do(opts ...googleapi.CallOption) (*PoliciesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4657,17 +3482,17 @@ func (c *PoliciesListCall) Do(opts ...googleapi.CallOption) (*PoliciesListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PoliciesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4680,39 +3505,6 @@ func (c *PoliciesListCall) Do(opts ...googleapi.CallOption) (*PoliciesListRespon return nil, err } return ret, nil - // { - // "description": "Enumerate all Policies associated with a project.", - // "flatPath": "dns/v2beta1/projects/{project}/policies", - // "httpMethod": "GET", - // "id": "dns.policies.list", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/policies", - // "response": { - // "$ref": "PoliciesListResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -4720,7 +3512,7 @@ func (c *PoliciesListCall) Do(opts ...googleapi.CallOption) (*PoliciesListRespon // The provided context supersedes any context provided to the Context method. func (c *PoliciesListCall) Pages(ctx context.Context, f func(*PoliciesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4736,8 +3528,6 @@ func (c *PoliciesListCall) Pages(ctx context.Context, f func(*PoliciesListRespon } } -// method id "dns.policies.patch": - type PoliciesPatchCall struct { s *Service project string @@ -4749,6 +3539,9 @@ type PoliciesPatchCall struct { } // Patch: Apply a partial update to an existing Policy. +// +// - policy: User given friendly name of the policy addressed by this request. +// - project: Identifies the project addressed by this request. func (r *PoliciesService) Patch(project string, policy string, policy2 *Policy) *PoliciesPatchCall { c := &PoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4757,33 +3550,30 @@ func (r *PoliciesService) Patch(project string, policy string, policy2 *Policy) return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *PoliciesPatchCall) ClientOperationId(clientOperationId string) *PoliciesPatchCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesPatchCall) Fields(s ...googleapi.Field) *PoliciesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesPatchCall) Context(ctx context.Context) *PoliciesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4792,18 +3582,12 @@ func (c *PoliciesPatchCall) Header() http.Header { } func (c *PoliciesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.policy2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2beta1/projects/{project}/policies/{policy}") @@ -4817,16 +3601,15 @@ func (c *PoliciesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.patch" call. -// Exactly one of *PoliciesPatchResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PoliciesPatchResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PoliciesPatchResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PoliciesPatchCall) Do(opts ...googleapi.CallOption) (*PoliciesPatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4834,17 +3617,17 @@ func (c *PoliciesPatchCall) Do(opts ...googleapi.CallOption) (*PoliciesPatchResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PoliciesPatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4857,46 +3640,7 @@ func (c *PoliciesPatchCall) Do(opts ...googleapi.CallOption) (*PoliciesPatchResp return nil, err } return ret, nil - // { - // "description": "Apply a partial update to an existing Policy.", - // "flatPath": "dns/v2beta1/projects/{project}/policies/{policy}", - // "httpMethod": "PATCH", - // "id": "dns.policies.patch", - // "parameterOrder": [ - // "project", - // "policy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "policy": { - // "description": "User given friendly name of the policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/policies/{policy}", - // "request": { - // "$ref": "Policy" - // }, - // "response": { - // "$ref": "PoliciesPatchResponse" - // } - // } - -} - -// method id "dns.policies.update": +} type PoliciesUpdateCall struct { s *Service @@ -4909,6 +3653,9 @@ type PoliciesUpdateCall struct { } // Update: Update an existing Policy. +// +// - policy: User given friendly name of the policy addressed by this request. +// - project: Identifies the project addressed by this request. func (r *PoliciesService) Update(project string, policy string, policy2 *Policy) *PoliciesUpdateCall { c := &PoliciesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4917,33 +3664,30 @@ func (r *PoliciesService) Update(project string, policy string, policy2 *Policy) return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *PoliciesUpdateCall) ClientOperationId(clientOperationId string) *PoliciesUpdateCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoliciesUpdateCall) Fields(s ...googleapi.Field) *PoliciesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoliciesUpdateCall) Context(ctx context.Context) *PoliciesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoliciesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4952,18 +3696,12 @@ func (c *PoliciesUpdateCall) Header() http.Header { } func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.policy2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "dns/v2beta1/projects/{project}/policies/{policy}") @@ -4977,16 +3715,15 @@ func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "policy": c.policy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.policies.update" call. -// Exactly one of *PoliciesUpdateResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PoliciesUpdateResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PoliciesUpdateResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*PoliciesUpdateResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4994,17 +3731,17 @@ func (c *PoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*PoliciesUpdateRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PoliciesUpdateResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5017,46 +3754,7 @@ func (c *PoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*PoliciesUpdateRe return nil, err } return ret, nil - // { - // "description": "Update an existing Policy.", - // "flatPath": "dns/v2beta1/projects/{project}/policies/{policy}", - // "httpMethod": "PUT", - // "id": "dns.policies.update", - // "parameterOrder": [ - // "project", - // "policy" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "policy": { - // "description": "User given friendly name of the policy addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/policies/{policy}", - // "request": { - // "$ref": "Policy" - // }, - // "response": { - // "$ref": "PoliciesUpdateResponse" - // } - // } - -} - -// method id "dns.projects.get": +} type ProjectsGetCall struct { s *Service @@ -5068,49 +3766,46 @@ type ProjectsGetCall struct { } // Get: Fetch the representation of an existing Project. +// +// - project: Identifies the project addressed by this request. func (r *ProjectsService) Get(project string) *ProjectsGetCall { c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project return c } -// ClientOperationId sets the optional parameter "clientOperationId": -// For mutating operation requests only. An optional identifier -// specified by the client. Must be unique for operation resources in -// the Operations collection. +// ClientOperationId sets the optional parameter "clientOperationId": For +// mutating operation requests only. An optional identifier specified by the +// client. Must be unique for operation resources in the Operations collection. func (c *ProjectsGetCall) ClientOperationId(clientOperationId string) *ProjectsGetCall { c.urlParams_.Set("clientOperationId", clientOperationId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5119,12 +3814,7 @@ func (c *ProjectsGetCall) Header() http.Header { } func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5141,16 +3831,14 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.projects.get" call. -// Exactly one of *Project or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Project.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Project.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5158,17 +3846,17 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Project{ ServerResponse: googleapi.ServerResponse{ @@ -5181,42 +3869,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { return nil, err } return ret, nil - // { - // "description": "Fetch the representation of an existing Project.", - // "flatPath": "dns/v2beta1/projects/{project}", - // "httpMethod": "GET", - // "id": "dns.projects.get", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "clientOperationId": { - // "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}", - // "response": { - // "$ref": "Project" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - -} - -// method id "dns.resourceRecordSets.list": +} type ResourceRecordSetsListCall struct { s *Service @@ -5230,6 +3883,10 @@ type ResourceRecordSetsListCall struct { // List: Enumerate ResourceRecordSets that have been created but not yet // deleted. +// +// - managedZone: Identifies the managed zone addressed by this request. Can be +// the managed zone name or id. +// - project: Identifies the project addressed by this request. func (r *ResourceRecordSetsService) List(project string, managedZone string) *ResourceRecordSetsListCall { c := &ResourceRecordSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -5237,65 +3894,60 @@ func (r *ResourceRecordSetsService) List(project string, managedZone string) *Re return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of results to be returned. If unspecified, the server will decide how -// many results to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// results to be returned. If unspecified, the server will decide how many +// results to return. func (c *ResourceRecordSetsListCall) MaxResults(maxResults int64) *ResourceRecordSetsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Name sets the optional parameter "name": Restricts the list to return -// only records with this fully qualified domain name. +// Name sets the optional parameter "name": Restricts the list to return only +// records with this fully qualified domain name. func (c *ResourceRecordSetsListCall) Name(name string) *ResourceRecordSetsListCall { c.urlParams_.Set("name", name) return c } -// PageToken sets the optional parameter "pageToken": A tag returned by -// a previous list request that was truncated. Use this parameter to -// continue a previous list request. +// PageToken sets the optional parameter "pageToken": A tag returned by a +// previous list request that was truncated. Use this parameter to continue a +// previous list request. func (c *ResourceRecordSetsListCall) PageToken(pageToken string) *ResourceRecordSetsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Type sets the optional parameter "type": Restricts the list to return -// only records of this type. If present, the "name" parameter must also -// be present. +// Type sets the optional parameter "type": Restricts the list to return only +// records of this type. If present, the "name" parameter must also be present. func (c *ResourceRecordSetsListCall) Type(type_ string) *ResourceRecordSetsListCall { c.urlParams_.Set("type", type_) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResourceRecordSetsListCall) Fields(s ...googleapi.Field) *ResourceRecordSetsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ResourceRecordSetsListCall) IfNoneMatch(entityTag string) *ResourceRecordSetsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ResourceRecordSetsListCall) Context(ctx context.Context) *ResourceRecordSetsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResourceRecordSetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5304,12 +3956,7 @@ func (c *ResourceRecordSetsListCall) Header() http.Header { } func (c *ResourceRecordSetsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200811") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5327,16 +3974,15 @@ func (c *ResourceRecordSetsListCall) doRequest(alt string) (*http.Response, erro "project": c.project, "managedZone": c.managedZone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "dns.resourceRecordSets.list" call. -// Exactly one of *ResourceRecordSetsListResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ResourceRecordSetsListResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResourceRecordSetsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ResourceRecordSetsListCall) Do(opts ...googleapi.CallOption) (*ResourceRecordSetsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5344,17 +3990,17 @@ func (c *ResourceRecordSetsListCall) Do(opts ...googleapi.CallOption) (*Resource if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResourceRecordSetsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5367,62 +4013,6 @@ func (c *ResourceRecordSetsListCall) Do(opts ...googleapi.CallOption) (*Resource return nil, err } return ret, nil - // { - // "description": "Enumerate ResourceRecordSets that have been created but not yet deleted.", - // "flatPath": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/rrsets", - // "httpMethod": "GET", - // "id": "dns.resourceRecordSets.list", - // "parameterOrder": [ - // "project", - // "managedZone" - // ], - // "parameters": { - // "managedZone": { - // "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "name": { - // "description": "Restricts the list to return only records with this fully qualified domain name.", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Identifies the project addressed by this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "Restricts the list to return only records of this type. If present, the \"name\" parameter must also be present.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "dns/v2beta1/projects/{project}/managedZones/{managedZone}/rrsets", - // "response": { - // "$ref": "ResourceRecordSetsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.clouddns.readonly", - // "https://www.googleapis.com/auth/ndev.clouddns.readwrite" - // ] - // } - } // Pages invokes f for each page of results. @@ -5430,7 +4020,7 @@ func (c *ResourceRecordSetsListCall) Do(opts ...googleapi.CallOption) (*Resource // The provided context supersedes any context provided to the Context method. func (c *ResourceRecordSetsListCall) Pages(ctx context.Context, f func(*ResourceRecordSetsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/docs/v1/docs-gen.go b/docs/v1/docs-gen.go index 8759d86ceb7..18ee43fadf0 100644 --- a/docs/v1/docs-gen.go +++ b/docs/v1/docs-gen.go @@ -6042,7 +6042,7 @@ func (c *DocumentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "documentId": c.documentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "docs.documents.batchUpdate" call. @@ -6139,7 +6139,7 @@ func (c *DocumentsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "docs.documents.create" call. @@ -6292,7 +6292,7 @@ func (c *DocumentsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "documentId": c.documentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "docs.documents.get" call. diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 7df745d5287..e615960d268 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -7381,7 +7381,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.operations.delete" call. @@ -7491,7 +7491,7 @@ func (c *ProjectsLocationsFetchProcessorTypesCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.fetchProcessorTypes" call. @@ -7599,7 +7599,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.get" call. @@ -7731,7 +7731,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.list" call. @@ -7856,7 +7856,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.operations.cancel" call. @@ -7966,7 +7966,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.operations.get" call. @@ -8095,7 +8095,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.operations.list" call. @@ -8224,7 +8224,7 @@ func (c *ProjectsLocationsProcessorTypesGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processorTypes.get" call. @@ -8349,7 +8349,7 @@ func (c *ProjectsLocationsProcessorTypesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processorTypes.list" call. @@ -8476,7 +8476,7 @@ func (c *ProjectsLocationsProcessorsBatchProcessCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.batchProcess" call. @@ -8584,7 +8584,7 @@ func (c *ProjectsLocationsProcessorsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.create" call. @@ -8681,7 +8681,7 @@ func (c *ProjectsLocationsProcessorsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.delete" call. @@ -8783,7 +8783,7 @@ func (c *ProjectsLocationsProcessorsDisableCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.disable" call. @@ -8885,7 +8885,7 @@ func (c *ProjectsLocationsProcessorsEnableCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.enable" call. @@ -8993,7 +8993,7 @@ func (c *ProjectsLocationsProcessorsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.get" call. @@ -9119,7 +9119,7 @@ func (c *ProjectsLocationsProcessorsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.list" call. @@ -9247,7 +9247,7 @@ func (c *ProjectsLocationsProcessorsProcessCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.process" call. @@ -9350,7 +9350,7 @@ func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "processor": c.processor, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.setDefaultProcessorVersion" call. @@ -9454,7 +9454,7 @@ func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) doReque googleapi.Expand(req.URL, map[string]string{ "humanReviewConfig": c.humanReviewConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.humanReviewConfig.reviewDocument" call. @@ -9560,7 +9560,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.batchProcess" call. @@ -9657,7 +9657,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.delete" call. @@ -9759,7 +9759,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.deploy" call. @@ -9864,7 +9864,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCal googleapi.Expand(req.URL, map[string]string{ "processorVersion": c.processorVersion, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.evaluateProcessorVersion" call. @@ -9972,7 +9972,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.get" call. @@ -10098,7 +10098,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.list" call. @@ -10226,7 +10226,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.process" call. @@ -10331,7 +10331,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.train" call. @@ -10433,7 +10433,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.undeploy" call. @@ -10543,7 +10543,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.evaluations.get" call. @@ -10669,7 +10669,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.evaluations.list" call. @@ -10800,7 +10800,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.operations.get" call. diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index 76a5feaac8d..5822a85b4b5 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -8134,7 +8134,7 @@ func (c *ProjectsDocumentsBatchProcessCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.documents.batchProcess" call. @@ -8239,7 +8239,7 @@ func (c *ProjectsDocumentsProcessCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.documents.process" call. @@ -8344,7 +8344,7 @@ func (c *ProjectsLocationsDocumentsBatchProcessCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.documents.batchProcess" call. @@ -8449,7 +8449,7 @@ func (c *ProjectsLocationsDocumentsProcessCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.documents.process" call. @@ -8559,7 +8559,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.operations.get" call. @@ -8669,7 +8669,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.operations.get" call. diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 24f06cdc39a..a06be1f5ced 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -7964,7 +7964,7 @@ func (c *ProjectsLocationsFetchProcessorTypesCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.fetchProcessorTypes" call. @@ -8072,7 +8072,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.get" call. @@ -8204,7 +8204,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.list" call. @@ -8329,7 +8329,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.operations.cancel" call. @@ -8439,7 +8439,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.operations.get" call. @@ -8568,7 +8568,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.operations.list" call. @@ -8697,7 +8697,7 @@ func (c *ProjectsLocationsProcessorTypesGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processorTypes.get" call. @@ -8822,7 +8822,7 @@ func (c *ProjectsLocationsProcessorTypesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processorTypes.list" call. @@ -8951,7 +8951,7 @@ func (c *ProjectsLocationsProcessorsBatchProcessCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.batchProcess" call. @@ -9059,7 +9059,7 @@ func (c *ProjectsLocationsProcessorsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.create" call. @@ -9156,7 +9156,7 @@ func (c *ProjectsLocationsProcessorsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.delete" call. @@ -9258,7 +9258,7 @@ func (c *ProjectsLocationsProcessorsDisableCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.disable" call. @@ -9360,7 +9360,7 @@ func (c *ProjectsLocationsProcessorsEnableCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.enable" call. @@ -9468,7 +9468,7 @@ func (c *ProjectsLocationsProcessorsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.get" call. @@ -9594,7 +9594,7 @@ func (c *ProjectsLocationsProcessorsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.list" call. @@ -9722,7 +9722,7 @@ func (c *ProjectsLocationsProcessorsProcessCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.process" call. @@ -9825,7 +9825,7 @@ func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "processor": c.processor, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.setDefaultProcessorVersion" call. @@ -9939,7 +9939,7 @@ func (c *ProjectsLocationsProcessorsUpdateDatasetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.updateDataset" call. @@ -10042,7 +10042,7 @@ func (c *ProjectsLocationsProcessorsDatasetBatchDeleteDocumentsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "dataset": c.dataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.dataset.batchDeleteDocuments" call. @@ -10159,7 +10159,7 @@ func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.dataset.getDatasetSchema" call. @@ -10349,7 +10349,7 @@ func (c *ProjectsLocationsProcessorsDatasetGetDocumentCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "dataset": c.dataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.dataset.getDocument" call. @@ -10452,7 +10452,7 @@ func (c *ProjectsLocationsProcessorsDatasetImportDocumentsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "dataset": c.dataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.dataset.importDocuments" call. @@ -10555,7 +10555,7 @@ func (c *ProjectsLocationsProcessorsDatasetListDocumentsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "dataset": c.dataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.dataset.listDocuments" call. @@ -10687,7 +10687,7 @@ func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.dataset.updateDatasetSchema" call. @@ -10791,7 +10791,7 @@ func (c *ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall) doReque googleapi.Expand(req.URL, map[string]string{ "humanReviewConfig": c.humanReviewConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.humanReviewConfig.reviewDocument" call. @@ -10897,7 +10897,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsBatchProcessCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.batchProcess" call. @@ -10994,7 +10994,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.delete" call. @@ -11096,7 +11096,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsDeployCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.deploy" call. @@ -11201,7 +11201,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluateProcessorVersionCal googleapi.Expand(req.URL, map[string]string{ "processorVersion": c.processorVersion, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.evaluateProcessorVersion" call. @@ -11309,7 +11309,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.get" call. @@ -11413,7 +11413,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsImportProcessorVersionCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.importProcessorVersion" call. @@ -11539,7 +11539,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.list" call. @@ -11667,7 +11667,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsProcessCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.process" call. @@ -11772,7 +11772,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsTrainCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.train" call. @@ -11874,7 +11874,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsUndeployCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.undeploy" call. @@ -11984,7 +11984,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.evaluations.get" call. @@ -12110,7 +12110,7 @@ func (c *ProjectsLocationsProcessorsProcessorVersionsEvaluationsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "documentai.projects.locations.processors.processorVersions.evaluations.list" call. diff --git a/domains/v1/domains-gen.go b/domains/v1/domains-gen.go index 9c529cbe23f..30f471614b9 100644 --- a/domains/v1/domains-gen.go +++ b/domains/v1/domains-gen.go @@ -2716,7 +2716,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.get" call. @@ -2847,7 +2847,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.list" call. @@ -2978,7 +2978,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.operations.get" call. @@ -3106,7 +3106,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.operations.list" call. @@ -3241,7 +3241,7 @@ func (c *ProjectsLocationsRegistrationsConfigureContactSettingsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.configureContactSettings" call. @@ -3343,7 +3343,7 @@ func (c *ProjectsLocationsRegistrationsConfigureDnsSettingsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.configureDnsSettings" call. @@ -3445,7 +3445,7 @@ func (c *ProjectsLocationsRegistrationsConfigureManagementSettingsCall) doReques googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.configureManagementSettings" call. @@ -3554,7 +3554,7 @@ func (c *ProjectsLocationsRegistrationsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.delete" call. @@ -3665,7 +3665,7 @@ func (c *ProjectsLocationsRegistrationsExportCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.export" call. @@ -3773,7 +3773,7 @@ func (c *ProjectsLocationsRegistrationsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.get" call. @@ -3900,7 +3900,7 @@ func (c *ProjectsLocationsRegistrationsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.getIamPolicy" call. @@ -4009,7 +4009,7 @@ func (c *ProjectsLocationsRegistrationsImportCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.import" call. @@ -4120,7 +4120,7 @@ func (c *ProjectsLocationsRegistrationsInitiatePushTransferCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.initiatePushTransfer" call. @@ -4259,7 +4259,7 @@ func (c *ProjectsLocationsRegistrationsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.list" call. @@ -4396,7 +4396,7 @@ func (c *ProjectsLocationsRegistrationsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.patch" call. @@ -4506,7 +4506,7 @@ func (c *ProjectsLocationsRegistrationsRegisterCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.register" call. @@ -4611,7 +4611,7 @@ func (c *ProjectsLocationsRegistrationsRenewDomainCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.renewDomain" call. @@ -4718,7 +4718,7 @@ func (c *ProjectsLocationsRegistrationsResetAuthorizationCodeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.resetAuthorizationCode" call. @@ -4833,7 +4833,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveAuthorizationCodeCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveAuthorizationCode" call. @@ -4959,7 +4959,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveGoogleDomainsDnsRecordsCall) doRe googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveGoogleDomainsDnsRecords" call. @@ -5096,7 +5096,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveGoogleDomainsForwardingConfigCall googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveGoogleDomainsForwardingConfig" call. @@ -5225,7 +5225,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveImportableDomainsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveImportableDomains" call. @@ -5363,7 +5363,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveRegisterParametersCall) doRequest googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveRegisterParameters" call. @@ -5484,7 +5484,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveTransferParametersCall) doRequest googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveTransferParameters" call. @@ -5602,7 +5602,7 @@ func (c *ProjectsLocationsRegistrationsSearchDomainsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.searchDomains" call. @@ -5708,7 +5708,7 @@ func (c *ProjectsLocationsRegistrationsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.setIamPolicy" call. @@ -5816,7 +5816,7 @@ func (c *ProjectsLocationsRegistrationsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.testIamPermissions" call. @@ -5937,7 +5937,7 @@ func (c *ProjectsLocationsRegistrationsTransferCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.transfer" call. diff --git a/domains/v1alpha2/domains-gen.go b/domains/v1alpha2/domains-gen.go index 88e4228ba20..538cfb9cb29 100644 --- a/domains/v1alpha2/domains-gen.go +++ b/domains/v1alpha2/domains-gen.go @@ -2723,7 +2723,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.get" call. @@ -2854,7 +2854,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.list" call. @@ -2985,7 +2985,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.operations.get" call. @@ -3113,7 +3113,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.operations.list" call. @@ -3248,7 +3248,7 @@ func (c *ProjectsLocationsRegistrationsConfigureContactSettingsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.configureContactSettings" call. @@ -3350,7 +3350,7 @@ func (c *ProjectsLocationsRegistrationsConfigureDnsSettingsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.configureDnsSettings" call. @@ -3452,7 +3452,7 @@ func (c *ProjectsLocationsRegistrationsConfigureManagementSettingsCall) doReques googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.configureManagementSettings" call. @@ -3561,7 +3561,7 @@ func (c *ProjectsLocationsRegistrationsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.delete" call. @@ -3672,7 +3672,7 @@ func (c *ProjectsLocationsRegistrationsExportCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.export" call. @@ -3780,7 +3780,7 @@ func (c *ProjectsLocationsRegistrationsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.get" call. @@ -3907,7 +3907,7 @@ func (c *ProjectsLocationsRegistrationsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.getIamPolicy" call. @@ -4016,7 +4016,7 @@ func (c *ProjectsLocationsRegistrationsImportCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.import" call. @@ -4127,7 +4127,7 @@ func (c *ProjectsLocationsRegistrationsInitiatePushTransferCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.initiatePushTransfer" call. @@ -4266,7 +4266,7 @@ func (c *ProjectsLocationsRegistrationsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.list" call. @@ -4403,7 +4403,7 @@ func (c *ProjectsLocationsRegistrationsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.patch" call. @@ -4513,7 +4513,7 @@ func (c *ProjectsLocationsRegistrationsRegisterCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.register" call. @@ -4618,7 +4618,7 @@ func (c *ProjectsLocationsRegistrationsRenewDomainCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.renewDomain" call. @@ -4725,7 +4725,7 @@ func (c *ProjectsLocationsRegistrationsResetAuthorizationCodeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.resetAuthorizationCode" call. @@ -4840,7 +4840,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveAuthorizationCodeCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveAuthorizationCode" call. @@ -4966,7 +4966,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveGoogleDomainsDnsRecordsCall) doRe googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveGoogleDomainsDnsRecords" call. @@ -5103,7 +5103,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveGoogleDomainsForwardingConfigCall googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveGoogleDomainsForwardingConfig" call. @@ -5232,7 +5232,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveImportableDomainsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveImportableDomains" call. @@ -5370,7 +5370,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveRegisterParametersCall) doRequest googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveRegisterParameters" call. @@ -5491,7 +5491,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveTransferParametersCall) doRequest googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveTransferParameters" call. @@ -5609,7 +5609,7 @@ func (c *ProjectsLocationsRegistrationsSearchDomainsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.searchDomains" call. @@ -5715,7 +5715,7 @@ func (c *ProjectsLocationsRegistrationsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.setIamPolicy" call. @@ -5823,7 +5823,7 @@ func (c *ProjectsLocationsRegistrationsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.testIamPermissions" call. @@ -5944,7 +5944,7 @@ func (c *ProjectsLocationsRegistrationsTransferCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.transfer" call. diff --git a/domains/v1beta1/domains-gen.go b/domains/v1beta1/domains-gen.go index d09085e69a0..cf2138bfa62 100644 --- a/domains/v1beta1/domains-gen.go +++ b/domains/v1beta1/domains-gen.go @@ -2716,7 +2716,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.get" call. @@ -2847,7 +2847,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.list" call. @@ -2978,7 +2978,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.operations.get" call. @@ -3106,7 +3106,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.operations.list" call. @@ -3241,7 +3241,7 @@ func (c *ProjectsLocationsRegistrationsConfigureContactSettingsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.configureContactSettings" call. @@ -3343,7 +3343,7 @@ func (c *ProjectsLocationsRegistrationsConfigureDnsSettingsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.configureDnsSettings" call. @@ -3445,7 +3445,7 @@ func (c *ProjectsLocationsRegistrationsConfigureManagementSettingsCall) doReques googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.configureManagementSettings" call. @@ -3554,7 +3554,7 @@ func (c *ProjectsLocationsRegistrationsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.delete" call. @@ -3665,7 +3665,7 @@ func (c *ProjectsLocationsRegistrationsExportCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.export" call. @@ -3773,7 +3773,7 @@ func (c *ProjectsLocationsRegistrationsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.get" call. @@ -3900,7 +3900,7 @@ func (c *ProjectsLocationsRegistrationsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.getIamPolicy" call. @@ -4009,7 +4009,7 @@ func (c *ProjectsLocationsRegistrationsImportCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.import" call. @@ -4120,7 +4120,7 @@ func (c *ProjectsLocationsRegistrationsInitiatePushTransferCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.initiatePushTransfer" call. @@ -4259,7 +4259,7 @@ func (c *ProjectsLocationsRegistrationsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.list" call. @@ -4396,7 +4396,7 @@ func (c *ProjectsLocationsRegistrationsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.patch" call. @@ -4506,7 +4506,7 @@ func (c *ProjectsLocationsRegistrationsRegisterCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.register" call. @@ -4611,7 +4611,7 @@ func (c *ProjectsLocationsRegistrationsRenewDomainCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.renewDomain" call. @@ -4718,7 +4718,7 @@ func (c *ProjectsLocationsRegistrationsResetAuthorizationCodeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.resetAuthorizationCode" call. @@ -4833,7 +4833,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveAuthorizationCodeCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveAuthorizationCode" call. @@ -4959,7 +4959,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveGoogleDomainsDnsRecordsCall) doRe googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveGoogleDomainsDnsRecords" call. @@ -5096,7 +5096,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveGoogleDomainsForwardingConfigCall googleapi.Expand(req.URL, map[string]string{ "registration": c.registration, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveGoogleDomainsForwardingConfig" call. @@ -5225,7 +5225,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveImportableDomainsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveImportableDomains" call. @@ -5363,7 +5363,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveRegisterParametersCall) doRequest googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveRegisterParameters" call. @@ -5484,7 +5484,7 @@ func (c *ProjectsLocationsRegistrationsRetrieveTransferParametersCall) doRequest googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.retrieveTransferParameters" call. @@ -5602,7 +5602,7 @@ func (c *ProjectsLocationsRegistrationsSearchDomainsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.searchDomains" call. @@ -5708,7 +5708,7 @@ func (c *ProjectsLocationsRegistrationsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.setIamPolicy" call. @@ -5816,7 +5816,7 @@ func (c *ProjectsLocationsRegistrationsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.testIamPermissions" call. @@ -5937,7 +5937,7 @@ func (c *ProjectsLocationsRegistrationsTransferCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domains.projects.locations.registrations.transfer" call. diff --git a/domainsrdap/v1/domainsrdap-gen.go b/domainsrdap/v1/domainsrdap-gen.go index aecb77621d0..24231cd7ce4 100644 --- a/domainsrdap/v1/domainsrdap-gen.go +++ b/domainsrdap/v1/domainsrdap-gen.go @@ -433,7 +433,7 @@ func (c *AutnumGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "autnumId": c.autnumId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domainsrdap.autnum.get" call. @@ -540,7 +540,7 @@ func (c *DomainGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "domainName": c.domainName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domainsrdap.domain.get" call. @@ -648,7 +648,7 @@ func (c *EntityGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "entityId": c.entityId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domainsrdap.entity.get" call. @@ -760,7 +760,7 @@ func (c *IpGetCall) doRequest(alt string) (*http.Response, error) { "ipId": c.ipId, "ipId1": c.ipId1, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domainsrdap.ip.get" call. @@ -868,7 +868,7 @@ func (c *NameserverGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "nameserverId": c.nameserverId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domainsrdap.nameserver.get" call. @@ -969,7 +969,7 @@ func (c *V1GetDomainsCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domainsrdap.getDomains" call. @@ -1071,7 +1071,7 @@ func (c *V1GetEntitiesCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domainsrdap.getEntities" call. @@ -1172,7 +1172,7 @@ func (c *V1GetHelpCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domainsrdap.getHelp" call. @@ -1273,7 +1273,7 @@ func (c *V1GetIpCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domainsrdap.getIp" call. @@ -1375,7 +1375,7 @@ func (c *V1GetNameserversCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "domainsrdap.getNameservers" call. diff --git a/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go index 79b381b4da8..7ac3434943c 100644 --- a/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/bid-manager/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // doubleclickbidmanagerService, err := doubleclickbidmanager.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // doubleclickbidmanagerService, err := doubleclickbidmanager.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // doubleclickbidmanagerService, err := doubleclickbidmanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package doubleclickbidmanager // import "google.golang.org/api/doubleclickbidmanager/v1.1" import ( @@ -77,6 +90,7 @@ const apiId = "doubleclickbidmanager:v1.1" const apiName = "doubleclickbidmanager" const apiVersion = "v1.1" const basePath = "https://doubleclickbidmanager.googleapis.com/doubleclickbidmanager/v1.1/" +const basePathTemplate = "https://doubleclickbidmanager.UNIVERSE_DOMAIN/doubleclickbidmanager/v1.1/" const mtlsBasePath = "https://doubleclickbidmanager.mtls.googleapis.com/doubleclickbidmanager/v1.1/" // OAuth2 scopes used by this API. @@ -93,7 +107,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -158,101 +174,80 @@ type ReportsService struct { s *Service } -// ChannelGrouping: A channel grouping defines a set of rules that can -// be used to categorize events in a path report. +// ChannelGrouping: A channel grouping defines a set of rules that can be used +// to categorize events in a path report. type ChannelGrouping struct { - // FallbackName: The name to apply to an event that does not match any - // of the rules in the channel grouping. + // FallbackName: The name to apply to an event that does not match any of the + // rules in the channel grouping. FallbackName string `json:"fallbackName,omitempty"` - // Name: Channel Grouping name. Name string `json:"name,omitempty"` - - // Rules: Rules within Channel Grouping. There is a limit of 100 rules - // that can be set per channel grouping. + // Rules: Rules within Channel Grouping. There is a limit of 100 rules that can + // be set per channel grouping. Rules []*Rule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "FallbackName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FallbackName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FallbackName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ChannelGrouping) MarshalJSON() ([]byte, error) { +func (s ChannelGrouping) MarshalJSON() ([]byte, error) { type NoMethod ChannelGrouping - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DisjunctiveMatchStatement: DisjunctiveMatchStatement that OR's all -// contained filters. +// DisjunctiveMatchStatement: DisjunctiveMatchStatement that OR's all contained +// filters. type DisjunctiveMatchStatement struct { - // EventFilters: Filters. There is a limit of 100 filters that can be - // set per disjunctive match statement. + // EventFilters: Filters. There is a limit of 100 filters that can be set per + // disjunctive match statement. EventFilters []*EventFilter `json:"eventFilters,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventFilters") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventFilters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DisjunctiveMatchStatement) MarshalJSON() ([]byte, error) { +func (s DisjunctiveMatchStatement) MarshalJSON() ([]byte, error) { type NoMethod DisjunctiveMatchStatement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventFilter: Defines the type of filter to be applied to the path, a -// DV360 event dimension filter. +// EventFilter: Defines the type of filter to be applied to the path, a DV360 +// event dimension filter. type EventFilter struct { // DimensionFilter: Filter on a dimension. DimensionFilter *PathQueryOptionsFilter `json:"dimensionFilter,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DimensionFilter") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DimensionFilter") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventFilter) MarshalJSON() ([]byte, error) { +func (s EventFilter) MarshalJSON() ([]byte, error) { type NoMethod EventFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FilterPair: Filter used to match traffic data in your report. @@ -555,152 +550,117 @@ type FilterPair struct { // "FILTER_TRUEVIEW_TARGETING_EXPANSION" // "FILTER_PUBLISHER_TRAFFIC_SOURCE" Type string `json:"type,omitempty"` - // Value: Filter value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FilterPair) MarshalJSON() ([]byte, error) { +func (s FilterPair) MarshalJSON() ([]byte, error) { type NoMethod FilterPair - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListQueriesResponse: List queries response. type ListQueriesResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "doubleclickbidmanager#listQueriesResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "doubleclickbidmanager#listQueriesResponse". Kind string `json:"kind,omitempty"` - // NextPageToken: Next page's pagination token if one exists. NextPageToken string `json:"nextPageToken,omitempty"` - // Queries: Retrieved queries. Queries []*Query `json:"queries,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListQueriesResponse) MarshalJSON() ([]byte, error) { +func (s ListQueriesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListQueriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListReportsResponse: List reports response. type ListReportsResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "doubleclickbidmanager#listReportsResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "doubleclickbidmanager#listReportsResponse". Kind string `json:"kind,omitempty"` - // NextPageToken: Next page's pagination token if one exists. NextPageToken string `json:"nextPageToken,omitempty"` - // Reports: Retrieved reports. Reports []*Report `json:"reports,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListReportsResponse) MarshalJSON() ([]byte, error) { +func (s ListReportsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListReportsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Options: Additional query options. type Options struct { // IncludeOnlyTargetedUserLists: Set to true and filter your report by - // `FILTER_INSERTION_ORDER` or `FILTER_LINE_ITEM` to include data for - // audience lists specifically targeted by those items. + // `FILTER_INSERTION_ORDER` or `FILTER_LINE_ITEM` to include data for audience + // lists specifically targeted by those items. IncludeOnlyTargetedUserLists bool `json:"includeOnlyTargetedUserLists,omitempty"` - - // PathQueryOptions: Options that contain Path Filters and Custom - // Channel Groupings. + // PathQueryOptions: Options that contain Path Filters and Custom Channel + // Groupings. PathQueryOptions *PathQueryOptions `json:"pathQueryOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "IncludeOnlyTargetedUserLists") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "IncludeOnlyTargetedUserLists") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "IncludeOnlyTargetedUserLists") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "IncludeOnlyTargetedUserLists") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Options) MarshalJSON() ([]byte, error) { +func (s Options) MarshalJSON() ([]byte, error) { type NoMethod Options - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Parameters: Parameters of a query or report. type Parameters struct { // Filters: Filters used to match traffic data in your report. Filters []*FilterPair `json:"filters,omitempty"` - // GroupBys: Data is grouped by the filters listed in this field. // // Possible values: @@ -999,10 +959,8 @@ type Parameters struct { // "FILTER_TRUEVIEW_TARGETING_EXPANSION" // "FILTER_PUBLISHER_TRAFFIC_SOURCE" GroupBys []string `json:"groupBys,omitempty"` - // IncludeInviteData: Deprecated. This field is no longer in use. IncludeInviteData bool `json:"includeInviteData,omitempty"` - // Metrics: Metrics to include as columns in your report. // // Possible values: @@ -1288,22 +1246,19 @@ type Parameters struct { // "METRIC_NIELSEN_POPULATION_SHARE" // "METRIC_NIELSEN_REACH_INDEX" // "METRIC_NIELSEN_REACH_SHARE" + // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_IMPRESSIONS" // - // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_IMPRESSIO - // NS" - // - // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_MEASURABL - // E_IMPRESSIONS" + // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_MEASURABLE_IMPRE + // SSIONS" // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_RATE" // - // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_TRUEVIEW_ - // IMPRESSIONS" + // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_TRUEVIEW_IMPRESS + // IONS" // - // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_TRUEVIEW_ - // MEASURABLE_IMPRESSIONS" + // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_TRUEVIEW_MEASURA + // BLE_IMPRESSIONS" // - // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_TRUEVIEW_ - // RATE" + // "METRIC_ACTIVE_VIEW_AUDIBLE_FULLY_ON_SCREEN_HALF_OF_DURATION_TRUEVIEW_RATE" // "METRIC_ACTIVE_VIEW_CUSTOM_METRIC_MEASURABLE_IMPRESSIONS" // "METRIC_ACTIVE_VIEW_CUSTOM_METRIC_VIEWABLE_IMPRESSIONS" // "METRIC_ACTIVE_VIEW_CUSTOM_METRIC_VIEWABLE_RATE" @@ -1312,21 +1267,17 @@ type Parameters struct { // "METRIC_ACTIVE_VIEW_PERCENT_FULL_SCREEN" // "METRIC_ACTIVE_VIEW_PERCENT_IN_BACKGROUND" // "METRIC_ACTIVE_VIEW_PERCENT_OF_AD_PLAYED" - // - // "METRIC_ACTIVE_VIEW_PERCENT_OF_COMPLETED_IMPRESSIONS_AUDIBLE_AND_VISIB - // LE" + // "METRIC_ACTIVE_VIEW_PERCENT_OF_COMPLETED_IMPRESSIONS_AUDIBLE_AND_VISIBLE" // "METRIC_ACTIVE_VIEW_PERCENT_OF_COMPLETED_IMPRESSIONS_VISIBLE" // - // "METRIC_ACTIVE_VIEW_PERCENT_OF_FIRST_QUARTILE_IMPRESSIONS_AUDIBLE_AND_ - // VISIBLE" + // "METRIC_ACTIVE_VIEW_PERCENT_OF_FIRST_QUARTILE_IMPRESSIONS_AUDIBLE_AND_VISIBLE + // " // "METRIC_ACTIVE_VIEW_PERCENT_OF_FIRST_QUARTILE_IMPRESSIONS_VISIBLE" - // - // "METRIC_ACTIVE_VIEW_PERCENT_OF_MIDPOINT_IMPRESSIONS_AUDIBLE_AND_VISIBL - // E" + // "METRIC_ACTIVE_VIEW_PERCENT_OF_MIDPOINT_IMPRESSIONS_AUDIBLE_AND_VISIBLE" // "METRIC_ACTIVE_VIEW_PERCENT_OF_MIDPOINT_IMPRESSIONS_VISIBLE" // - // "METRIC_ACTIVE_VIEW_PERCENT_OF_THIRD_QUARTILE_IMPRESSIONS_AUDIBLE_AND_ - // VISIBLE" + // "METRIC_ACTIVE_VIEW_PERCENT_OF_THIRD_QUARTILE_IMPRESSIONS_AUDIBLE_AND_VISIBLE + // " // "METRIC_ACTIVE_VIEW_PERCENT_OF_THIRD_QUARTILE_IMPRESSIONS_VISIBLE" // "METRIC_ACTIVE_VIEW_PERCENT_PLAY_TIME_AUDIBLE" // "METRIC_ACTIVE_VIEW_PERCENT_PLAY_TIME_AUDIBLE_AND_VISIBLE" @@ -1378,11 +1329,10 @@ type Parameters struct { // "METRIC_CUSTOM_VALUE_PER_1000_IMPRESSIONS" // "METRIC_ENGAGEMENTS" // - // "METRIC_ESTIMATED_CPM_FOR_IMPRESSIONS_WITH_CUSTOM_VALUE_ADVERTISER_CUR - // RENCY" + // "METRIC_ESTIMATED_CPM_FOR_IMPRESSIONS_WITH_CUSTOM_VALUE_ADVERTISER_CURRENCY" // - // "METRIC_ESTIMATED_TOTAL_COST_FOR_IMPRESSIONS_WITH_CUSTOM_VALUE_ADVERTI - // SER_CURRENCY" + // "METRIC_ESTIMATED_TOTAL_COST_FOR_IMPRESSIONS_WITH_CUSTOM_VALUE_ADVERTISER_CUR + // RENCY" // "METRIC_EXITS" // "METRIC_EXPANSIONS" // "METRIC_FIRST_QUARTILE_AUDIO" @@ -1418,11 +1368,10 @@ type Parameters struct { // "METRIC_POTENTIAL_IMPRESSIONS" // "METRIC_POTENTIAL_VIEWS" // "METRIC_PREMIUM_FEE_ADVERTISER_CURRENCY" + // "METRIC_PROGRAMMATIC_GUARANTEED_IMPRESSIONS_PASSED_DUE_TO_FREQUENCY" // - // "METRIC_PROGRAMMATIC_GUARANTEED_IMPRESSIONS_PASSED_DUE_TO_FREQUENCY" - // - // "METRIC_PROGRAMMATIC_GUARANTEED_SAVINGS_RE_INVESTED_DUE_TO_FREQUENCY_A - // DVERTISER_CURRENCY" + // "METRIC_PROGRAMMATIC_GUARANTEED_SAVINGS_RE_INVESTED_DUE_TO_FREQUENCY_ADVERTIS + // ER_CURRENCY" // "METRIC_REFUND_BILLABLE_COST_ADVERTISER_CURRENCY" // "METRIC_REFUND_MEDIA_COST_ADVERTISER_CURRENCY" // "METRIC_REFUND_PLATFORM_FEE_ADVERTISER_CURRENCY" @@ -1473,8 +1422,7 @@ type Parameters struct { // "METRIC_GRP_CORRECTED_VIEWABLE_IMPRESSIONS" // "METRIC_GRP_CORRECTED_VIEWABLE_IMPRESSIONS_SHARE_PERCENT" // "METRIC_VIEWABLE_GROSS_RATING_POINTS" - // - // "METRIC_VIRTUAL_PEOPLE_AVERAGE_VIEWABLE_IMPRESSION_FREQUENCY_BY_DEMO" + // "METRIC_VIRTUAL_PEOPLE_AVERAGE_VIEWABLE_IMPRESSION_FREQUENCY_BY_DEMO" // "METRIC_VIRTUAL_PEOPLE_VIEWABLE_IMPRESSION_REACH_BY_DEMO" // "METRIC_VIRTUAL_PEOPLE_VIEWABLE_IMPRESSION_REACH_PERCENT" // "METRIC_VIRTUAL_PEOPLE_VIEWABLE_IMPRESSION_REACH_SHARE_PERCENT" @@ -1503,17 +1451,14 @@ type Parameters struct { // "METRIC_UNIQUE_REACH_AVERAGE_IMPRESSION_FREQUENCY_COVIEWED" // "METRIC_GRP_CORRECTED_IMPRESSIONS_COVIEWED" // "METRIC_VIRTUAL_PEOPLE_IMPRESSION_REACH_BY_DEMO_COVIEWED" - // - // "METRIC_VIRTUAL_PEOPLE_AVERAGE_IMPRESSION_FREQUENCY_BY_DEMO_COVIEWED" + // "METRIC_VIRTUAL_PEOPLE_AVERAGE_IMPRESSION_FREQUENCY_BY_DEMO_COVIEWED" // "METRIC_TARGET_RATING_POINTS_COVIEWED" // "METRIC_DEMO_COMPOSITION_IMPRESSION_COVIEWED" // "METRIC_VIRTUAL_PEOPLE_IMPRESSION_REACH_SHARE_PERCENT_COVIEWED" // "METRIC_VIRTUAL_PEOPLE_IMPRESSION_REACH_PERCENT_COVIEWED" Metrics []string `json:"metrics,omitempty"` - // Options: Additional query options. Options *Options `json:"options,omitempty"` - // Type: Report type. // // Possible values: @@ -1552,103 +1497,81 @@ type Parameters struct { // "TYPE_PATH" // "TYPE_PATH_ATTRIBUTION" Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filters") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Parameters) MarshalJSON() ([]byte, error) { +func (s Parameters) MarshalJSON() ([]byte, error) { type NoMethod Parameters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PathFilter: Path filters specify which paths to include in a report. -// A path is the result of combining DV360 events based on User ID to -// create a workflow of users' actions. When a path filter is set, the -// resulting report will only include paths that match the specified -// event at the specified position. All other paths will be excluded. +// PathFilter: Path filters specify which paths to include in a report. A path +// is the result of combining DV360 events based on User ID to create a +// workflow of users' actions. When a path filter is set, the resulting report +// will only include paths that match the specified event at the specified +// position. All other paths will be excluded. type PathFilter struct { - // EventFilters: Filter on an event to be applied to some part of the - // path. + // EventFilters: Filter on an event to be applied to some part of the path. EventFilters []*EventFilter `json:"eventFilters,omitempty"` - - // PathMatchPosition: Indicates the position of the path the filter - // should match to (first, last, or any event in path). + // PathMatchPosition: Indicates the position of the path the filter should + // match to (first, last, or any event in path). // // Possible values: // "ANY" // "FIRST" // "LAST" PathMatchPosition string `json:"pathMatchPosition,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventFilters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventFilters") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventFilters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathFilter) MarshalJSON() ([]byte, error) { +func (s PathFilter) MarshalJSON() ([]byte, error) { type NoMethod PathFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PathQueryOptions: Path Query Options for Report Options. type PathQueryOptions struct { // ChannelGrouping: Custom Channel Groupings. ChannelGrouping *ChannelGrouping `json:"channelGrouping,omitempty"` - - // PathFilters: Path Filters. There is a limit of 100 path filters that - // can be set per report. + // PathFilters: Path Filters. There is a limit of 100 path filters that can be + // set per report. PathFilters []*PathFilter `json:"pathFilters,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelGrouping") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelGrouping") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ChannelGrouping") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathQueryOptions) MarshalJSON() ([]byte, error) { +func (s PathQueryOptions) MarshalJSON() ([]byte, error) { type NoMethod PathQueryOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PathQueryOptionsFilter: Dimension Filter on path events. @@ -1951,7 +1874,6 @@ type PathQueryOptionsFilter struct { // "FILTER_TRUEVIEW_TARGETING_EXPANSION" // "FILTER_PUBLISHER_TRAFFIC_SOURCE" Filter string `json:"filter,omitempty"` - // Match: Indicates how the filter should be matched to the value. // // Possible values: @@ -1961,90 +1883,69 @@ type PathQueryOptionsFilter struct { // "BEGINS_WITH" // "WILDCARD_EXPRESSION" Match string `json:"match,omitempty"` - // Values: Value to filter on. Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PathQueryOptionsFilter) MarshalJSON() ([]byte, error) { +func (s PathQueryOptionsFilter) MarshalJSON() ([]byte, error) { type NoMethod PathQueryOptionsFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Query: Represents a query. type Query struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "doubleclickbidmanager#query". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "doubleclickbidmanager#query". Kind string `json:"kind,omitempty"` - // Metadata: Query metadata. Metadata *QueryMetadata `json:"metadata,omitempty"` - // Params: Query parameters. Params *Parameters `json:"params,omitempty"` - // QueryId: Query ID. QueryId int64 `json:"queryId,omitempty,string"` - - // ReportDataEndTimeMs: The ending time for the data that is shown in - // the report. Note, reportDataEndTimeMs is required if - // metadata.dataRange is CUSTOM_DATES and ignored otherwise. + // ReportDataEndTimeMs: The ending time for the data that is shown in the + // report. Note, reportDataEndTimeMs is required if metadata.dataRange is + // CUSTOM_DATES and ignored otherwise. ReportDataEndTimeMs int64 `json:"reportDataEndTimeMs,omitempty,string"` - - // ReportDataStartTimeMs: The starting time for the data that is shown - // in the report. Note, reportDataStartTimeMs is required if - // metadata.dataRange is CUSTOM_DATES and ignored otherwise. + // ReportDataStartTimeMs: The starting time for the data that is shown in the + // report. Note, reportDataStartTimeMs is required if metadata.dataRange is + // CUSTOM_DATES and ignored otherwise. ReportDataStartTimeMs int64 `json:"reportDataStartTimeMs,omitempty,string"` - // Schedule: Information on how often and when to run a query. Schedule *QuerySchedule `json:"schedule,omitempty"` - - // TimezoneCode: Canonical timezone code for report data time. Defaults - // to America/New_York. + // TimezoneCode: Canonical timezone code for report data time. Defaults to + // America/New_York. TimezoneCode string `json:"timezoneCode,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Query) MarshalJSON() ([]byte, error) { +func (s Query) MarshalJSON() ([]byte, error) { type NoMethod Query - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // QueryMetadata: Query metadata. @@ -2073,7 +1974,6 @@ type QueryMetadata struct { // "TYPE_NOT_SUPPORTED" // "LAST_60_DAYS" DataRange string `json:"dataRange,omitempty"` - // Format: Format of the generated report. // // Possible values: @@ -2081,74 +1981,55 @@ type QueryMetadata struct { // "EXCEL_CSV" // "XLSX" Format string `json:"format,omitempty"` - - // GoogleCloudStoragePathForLatestReport: The path to the location in - // Google Cloud Storage where the latest report is stored. + // GoogleCloudStoragePathForLatestReport: The path to the location in Google + // Cloud Storage where the latest report is stored. GoogleCloudStoragePathForLatestReport string `json:"googleCloudStoragePathForLatestReport,omitempty"` - - // GoogleDrivePathForLatestReport: The path in Google Drive for the - // latest report. + // GoogleDrivePathForLatestReport: The path in Google Drive for the latest + // report. GoogleDrivePathForLatestReport string `json:"googleDrivePathForLatestReport,omitempty"` - - // LatestReportRunTimeMs: The time when the latest report started to - // run. + // LatestReportRunTimeMs: The time when the latest report started to run. LatestReportRunTimeMs int64 `json:"latestReportRunTimeMs,omitempty,string"` - - // Locale: Locale of the generated reports. Valid values are cs CZECH de - // GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko - // KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk - // UKRAINIAN zh-CN CHINA_CHINESE zh-TW TAIWAN_CHINESE An locale string - // not in the list above will generate reports in English. + // Locale: Locale of the generated reports. Valid values are cs CZECH de GERMAN + // en ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH + // pt-BR BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN + // CHINA_CHINESE zh-TW TAIWAN_CHINESE An locale string not in the list above + // will generate reports in English. Locale string `json:"locale,omitempty"` - - // ReportCount: Number of reports that have been generated for the - // query. + // ReportCount: Number of reports that have been generated for the query. ReportCount int64 `json:"reportCount,omitempty"` - // Running: Whether the latest report is currently running. Running bool `json:"running,omitempty"` - - // SendNotification: Whether to send an email notification when a report - // is ready. Default to false. + // SendNotification: Whether to send an email notification when a report is + // ready. Default to false. SendNotification bool `json:"sendNotification,omitempty"` - // ShareEmailAddress: List of email addresses which are sent email - // notifications when the report is finished. Separate from - // sendNotification. + // notifications when the report is finished. Separate from sendNotification. ShareEmailAddress []string `json:"shareEmailAddress,omitempty"` - - // Title: Query title. It is used to name the reports generated from - // this query. + // Title: Query title. It is used to name the reports generated from this + // query. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *QueryMetadata) MarshalJSON() ([]byte, error) { +func (s QueryMetadata) MarshalJSON() ([]byte, error) { type NoMethod QueryMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // QuerySchedule: Information on how frequently and when to run a query. type QuerySchedule struct { // EndTimeMs: Datetime to periodically run the query until. EndTimeMs int64 `json:"endTimeMs,omitempty,string"` - // Frequency: How often the query is run. // // Possible values: @@ -2160,75 +2041,58 @@ type QuerySchedule struct { // "QUARTERLY" // "YEARLY" Frequency string `json:"frequency,omitempty"` - - // NextRunMinuteOfDay: Time of day at which a new report will be - // generated, represented as minutes past midnight. Range is 0 to 1439. - // Only applies to scheduled reports. + // NextRunMinuteOfDay: Time of day at which a new report will be generated, + // represented as minutes past midnight. Range is 0 to 1439. Only applies to + // scheduled reports. NextRunMinuteOfDay int64 `json:"nextRunMinuteOfDay,omitempty"` - - // NextRunTimezoneCode: Canonical timezone code for report generation - // time. Defaults to America/New_York. + // NextRunTimezoneCode: Canonical timezone code for report generation time. + // Defaults to America/New_York. NextRunTimezoneCode string `json:"nextRunTimezoneCode,omitempty"` - - // StartTimeMs: When to start running the query. Not applicable to - // `ONE_TIME` frequency. + // StartTimeMs: When to start running the query. Not applicable to `ONE_TIME` + // frequency. StartTimeMs int64 `json:"startTimeMs,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "EndTimeMs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTimeMs") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTimeMs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *QuerySchedule) MarshalJSON() ([]byte, error) { +func (s QuerySchedule) MarshalJSON() ([]byte, error) { type NoMethod QuerySchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Report: Represents a report. type Report struct { // Key: Key used to identify a report. Key *ReportKey `json:"key,omitempty"` - // Metadata: Report metadata. Metadata *ReportMetadata `json:"metadata,omitempty"` - // Params: Report parameters. Params *Parameters `json:"params,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Report) MarshalJSON() ([]byte, error) { +func (s Report) MarshalJSON() ([]byte, error) { type NoMethod Report - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportFailure: An explanation of a report failure. @@ -2255,112 +2119,86 @@ type ReportFailure struct { // "REPORTING_INVALID_QUERY_TITLE_MISSING" // "REPORTING_INVALID_QUERY_MISSING_PARTNER_AND_ADVERTISER_FILTERS" ErrorCode string `json:"errorCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ErrorCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ErrorCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportFailure) MarshalJSON() ([]byte, error) { +func (s ReportFailure) MarshalJSON() ([]byte, error) { type NoMethod ReportFailure - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportKey: Key used to identify a report. type ReportKey struct { // QueryId: Query ID. QueryId int64 `json:"queryId,omitempty,string"` - // ReportId: Report ID. ReportId int64 `json:"reportId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "QueryId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "QueryId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "QueryId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "QueryId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportKey) MarshalJSON() ([]byte, error) { +func (s ReportKey) MarshalJSON() ([]byte, error) { type NoMethod ReportKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportMetadata: Report metadata. type ReportMetadata struct { - // GoogleCloudStoragePath: The path to the location in Google Cloud - // Storage where the report is stored. + // GoogleCloudStoragePath: The path to the location in Google Cloud Storage + // where the report is stored. GoogleCloudStoragePath string `json:"googleCloudStoragePath,omitempty"` - - // ReportDataEndTimeMs: The ending time for the data that is shown in - // the report. + // ReportDataEndTimeMs: The ending time for the data that is shown in the + // report. ReportDataEndTimeMs int64 `json:"reportDataEndTimeMs,omitempty,string"` - - // ReportDataStartTimeMs: The starting time for the data that is shown - // in the report. + // ReportDataStartTimeMs: The starting time for the data that is shown in the + // report. ReportDataStartTimeMs int64 `json:"reportDataStartTimeMs,omitempty,string"` - // Status: Report status. Status *ReportStatus `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "GoogleCloudStoragePath") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "GoogleCloudStoragePath") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GoogleCloudStoragePath") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GoogleCloudStoragePath") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportMetadata) MarshalJSON() ([]byte, error) { +func (s ReportMetadata) MarshalJSON() ([]byte, error) { type NoMethod ReportMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReportStatus: Report status. type ReportStatus struct { // Failure: If the report failed, this records the cause. Failure *ReportFailure `json:"failure,omitempty"` - - // FinishTimeMs: The time when this report either completed successfully - // or failed. + // FinishTimeMs: The time when this report either completed successfully or + // failed. FinishTimeMs int64 `json:"finishTimeMs,omitempty,string"` - // Format: The file type of the report. // // Possible values: @@ -2368,7 +2206,6 @@ type ReportStatus struct { // "EXCEL_CSV" // "XLSX" Format string `json:"format,omitempty"` - // State: The state of the report. // // Possible values: @@ -2376,64 +2213,48 @@ type ReportStatus struct { // "DONE" // "FAILED" State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Failure") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Failure") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Failure") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Failure") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReportStatus) MarshalJSON() ([]byte, error) { +func (s ReportStatus) MarshalJSON() ([]byte, error) { type NoMethod ReportStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Rule: A Rule defines a name, and a boolean expression in conjunctive -// normal form (http: -// //mathworld.wolfram.com/ConjunctiveNormalForm.html){.external} that -// can be // applied to a path event to determine if that name should be +// Rule: A Rule defines a name, and a boolean expression in conjunctive normal +// form (http: //mathworld.wolfram.com/ConjunctiveNormalForm.html){.external} +// that can be // applied to a path event to determine if that name should be // applied. type Rule struct { DisjunctiveMatchStatements []*DisjunctiveMatchStatement `json:"disjunctiveMatchStatements,omitempty"` - // Name: Rule name. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DisjunctiveMatchStatements") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DisjunctiveMatchStatements") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DisjunctiveMatchStatements") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisjunctiveMatchStatements") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rule) MarshalJSON() ([]byte, error) { +func (s Rule) MarshalJSON() ([]byte, error) { type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RunQueryRequest: Request to run a stored query to generate a report. @@ -2462,46 +2283,35 @@ type RunQueryRequest struct { // "TYPE_NOT_SUPPORTED" // "LAST_60_DAYS" DataRange string `json:"dataRange,omitempty"` - - // ReportDataEndTimeMs: The ending time for the data that is shown in - // the report. Note, reportDataEndTimeMs is required if dataRange is - // CUSTOM_DATES and ignored otherwise. + // ReportDataEndTimeMs: The ending time for the data that is shown in the + // report. Note, reportDataEndTimeMs is required if dataRange is CUSTOM_DATES + // and ignored otherwise. ReportDataEndTimeMs int64 `json:"reportDataEndTimeMs,omitempty,string"` - - // ReportDataStartTimeMs: The starting time for the data that is shown - // in the report. Note, reportDataStartTimeMs is required if dataRange - // is CUSTOM_DATES and ignored otherwise. + // ReportDataStartTimeMs: The starting time for the data that is shown in the + // report. Note, reportDataStartTimeMs is required if dataRange is CUSTOM_DATES + // and ignored otherwise. ReportDataStartTimeMs int64 `json:"reportDataStartTimeMs,omitempty,string"` - - // TimezoneCode: Canonical timezone code for report data time. Defaults - // to America/New_York. + // TimezoneCode: Canonical timezone code for report data time. Defaults to + // America/New_York. TimezoneCode string `json:"timezoneCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataRange") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunQueryRequest) MarshalJSON() ([]byte, error) { +func (s RunQueryRequest) MarshalJSON() ([]byte, error) { type NoMethod RunQueryRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "doubleclickbidmanager.queries.createquery": - type QueriesCreatequeryCall struct { s *Service query *Query @@ -2517,32 +2327,30 @@ func (r *QueriesService) Createquery(query *Query) *QueriesCreatequeryCall { return c } -// Asynchronous sets the optional parameter "asynchronous": If true, -// tries to run the query asynchronously. Only applicable when the -// frequency is ONE_TIME. +// Asynchronous sets the optional parameter "asynchronous": If true, tries to +// run the query asynchronously. Only applicable when the frequency is +// ONE_TIME. func (c *QueriesCreatequeryCall) Asynchronous(asynchronous bool) *QueriesCreatequeryCall { c.urlParams_.Set("asynchronous", fmt.Sprint(asynchronous)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *QueriesCreatequeryCall) Fields(s ...googleapi.Field) *QueriesCreatequeryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *QueriesCreatequeryCall) Context(ctx context.Context) *QueriesCreatequeryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *QueriesCreatequeryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2551,18 +2359,12 @@ func (c *QueriesCreatequeryCall) Header() http.Header { } func (c *QueriesCreatequeryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.query) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "query") @@ -2572,16 +2374,14 @@ func (c *QueriesCreatequeryCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.createquery" call. -// Exactly one of *Query or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Query.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Query.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *QueriesCreatequeryCall) Do(opts ...googleapi.CallOption) (*Query, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2612,35 +2412,7 @@ func (c *QueriesCreatequeryCall) Do(opts ...googleapi.CallOption) (*Query, error return nil, err } return ret, nil - // { - // "description": "Creates a query.", - // "flatPath": "query", - // "httpMethod": "POST", - // "id": "doubleclickbidmanager.queries.createquery", - // "parameterOrder": [], - // "parameters": { - // "asynchronous": { - // "default": "false", - // "description": "If true, tries to run the query asynchronously. Only applicable when the frequency is ONE_TIME.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "query", - // "request": { - // "$ref": "Query" - // }, - // "response": { - // "$ref": "Query" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - -} - -// method id "doubleclickbidmanager.queries.deletequery": +} type QueriesDeletequeryCall struct { s *Service @@ -2661,23 +2433,21 @@ func (r *QueriesService) Deletequery(queryId int64) *QueriesDeletequeryCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *QueriesDeletequeryCall) Fields(s ...googleapi.Field) *QueriesDeletequeryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *QueriesDeletequeryCall) Context(ctx context.Context) *QueriesDeletequeryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *QueriesDeletequeryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2686,12 +2456,7 @@ func (c *QueriesDeletequeryCall) Header() http.Header { } func (c *QueriesDeletequeryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2705,7 +2470,7 @@ func (c *QueriesDeletequeryCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "queryId": strconv.FormatInt(c.queryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.deletequery" call. @@ -2720,32 +2485,7 @@ func (c *QueriesDeletequeryCall) Do(opts ...googleapi.CallOption) error { return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a stored query as well as the associated stored reports.", - // "flatPath": "query/{queryId}", - // "httpMethod": "DELETE", - // "id": "doubleclickbidmanager.queries.deletequery", - // "parameterOrder": [ - // "queryId" - // ], - // "parameters": { - // "queryId": { - // "description": "Query ID to delete.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "query/{queryId}", - // "scopes": [ - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - -} - -// method id "doubleclickbidmanager.queries.getquery": +} type QueriesGetqueryCall struct { s *Service @@ -2766,33 +2506,29 @@ func (r *QueriesService) Getquery(queryId int64) *QueriesGetqueryCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *QueriesGetqueryCall) Fields(s ...googleapi.Field) *QueriesGetqueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *QueriesGetqueryCall) IfNoneMatch(entityTag string) *QueriesGetqueryCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *QueriesGetqueryCall) Context(ctx context.Context) *QueriesGetqueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *QueriesGetqueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2801,12 +2537,7 @@ func (c *QueriesGetqueryCall) Header() http.Header { } func (c *QueriesGetqueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2823,16 +2554,14 @@ func (c *QueriesGetqueryCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "queryId": strconv.FormatInt(c.queryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.getquery" call. -// Exactly one of *Query or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Query.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Query.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *QueriesGetqueryCall) Do(opts ...googleapi.CallOption) (*Query, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2863,35 +2592,7 @@ func (c *QueriesGetqueryCall) Do(opts ...googleapi.CallOption) (*Query, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a stored query.", - // "flatPath": "query/{queryId}", - // "httpMethod": "GET", - // "id": "doubleclickbidmanager.queries.getquery", - // "parameterOrder": [ - // "queryId" - // ], - // "parameters": { - // "queryId": { - // "description": "Query ID to retrieve.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "query/{queryId}", - // "response": { - // "$ref": "Query" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - -} - -// method id "doubleclickbidmanager.queries.listqueries": +} type QueriesListqueriesCall struct { s *Service @@ -2907,49 +2608,44 @@ func (r *QueriesService) Listqueries() *QueriesListqueriesCall { return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// results per page. Must be between 1 and 100. Defaults to 100 if -// unspecified. +// PageSize sets the optional parameter "pageSize": Maximum number of results +// per page. Must be between 1 and 100. Defaults to 100 if unspecified. func (c *QueriesListqueriesCall) PageSize(pageSize int64) *QueriesListqueriesCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Optional -// pagination token. +// PageToken sets the optional parameter "pageToken": Optional pagination +// token. func (c *QueriesListqueriesCall) PageToken(pageToken string) *QueriesListqueriesCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *QueriesListqueriesCall) Fields(s ...googleapi.Field) *QueriesListqueriesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *QueriesListqueriesCall) IfNoneMatch(entityTag string) *QueriesListqueriesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *QueriesListqueriesCall) Context(ctx context.Context) *QueriesListqueriesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *QueriesListqueriesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2958,12 +2654,7 @@ func (c *QueriesListqueriesCall) Header() http.Header { } func (c *QueriesListqueriesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2977,16 +2668,15 @@ func (c *QueriesListqueriesCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.listqueries" call. -// Exactly one of *ListQueriesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListQueriesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListQueriesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *QueriesListqueriesCall) Do(opts ...googleapi.CallOption) (*ListQueriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3017,34 +2707,6 @@ func (c *QueriesListqueriesCall) Do(opts ...googleapi.CallOption) (*ListQueriesR return nil, err } return ret, nil - // { - // "description": "Retrieves stored queries.", - // "flatPath": "queries", - // "httpMethod": "GET", - // "id": "doubleclickbidmanager.queries.listqueries", - // "parameterOrder": [], - // "parameters": { - // "pageSize": { - // "description": "Maximum number of results per page. Must be between 1 and 100. Defaults to 100 if unspecified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional pagination token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "queries", - // "response": { - // "$ref": "ListQueriesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - } // Pages invokes f for each page of results. @@ -3052,7 +2714,7 @@ func (c *QueriesListqueriesCall) Do(opts ...googleapi.CallOption) (*ListQueriesR // The provided context supersedes any context provided to the Context method. func (c *QueriesListqueriesCall) Pages(ctx context.Context, f func(*ListQueriesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3068,8 +2730,6 @@ func (c *QueriesListqueriesCall) Pages(ctx context.Context, f func(*ListQueriesR } } -// method id "doubleclickbidmanager.queries.runquery": - type QueriesRunqueryCall struct { s *Service queryId int64 @@ -3089,31 +2749,29 @@ func (r *QueriesService) Runquery(queryId int64, runqueryrequest *RunQueryReques return c } -// Asynchronous sets the optional parameter "asynchronous": If true, -// tries to run the query asynchronously. +// Asynchronous sets the optional parameter "asynchronous": If true, tries to +// run the query asynchronously. func (c *QueriesRunqueryCall) Asynchronous(asynchronous bool) *QueriesRunqueryCall { c.urlParams_.Set("asynchronous", fmt.Sprint(asynchronous)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *QueriesRunqueryCall) Fields(s ...googleapi.Field) *QueriesRunqueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *QueriesRunqueryCall) Context(ctx context.Context) *QueriesRunqueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *QueriesRunqueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3122,18 +2780,12 @@ func (c *QueriesRunqueryCall) Header() http.Header { } func (c *QueriesRunqueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.runqueryrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "query/{queryId}") @@ -3146,7 +2798,7 @@ func (c *QueriesRunqueryCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "queryId": strconv.FormatInt(c.queryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.runquery" call. @@ -3161,41 +2813,7 @@ func (c *QueriesRunqueryCall) Do(opts ...googleapi.CallOption) error { return gensupport.WrapError(err) } return nil - // { - // "description": "Runs a stored query to generate a report.", - // "flatPath": "query/{queryId}", - // "httpMethod": "POST", - // "id": "doubleclickbidmanager.queries.runquery", - // "parameterOrder": [ - // "queryId" - // ], - // "parameters": { - // "asynchronous": { - // "default": "false", - // "description": "If true, tries to run the query asynchronously.", - // "location": "query", - // "type": "boolean" - // }, - // "queryId": { - // "description": "Query ID to run.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "query/{queryId}", - // "request": { - // "$ref": "RunQueryRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - -} - -// method id "doubleclickbidmanager.reports.listreports": +} type ReportsListreportsCall struct { s *Service @@ -3215,49 +2833,44 @@ func (r *ReportsService) Listreports(queryId int64) *ReportsListreportsCall { return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// results per page. Must be between 1 and 100. Defaults to 100 if -// unspecified. +// PageSize sets the optional parameter "pageSize": Maximum number of results +// per page. Must be between 1 and 100. Defaults to 100 if unspecified. func (c *ReportsListreportsCall) PageSize(pageSize int64) *ReportsListreportsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Optional -// pagination token. +// PageToken sets the optional parameter "pageToken": Optional pagination +// token. func (c *ReportsListreportsCall) PageToken(pageToken string) *ReportsListreportsCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsListreportsCall) Fields(s ...googleapi.Field) *ReportsListreportsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsListreportsCall) IfNoneMatch(entityTag string) *ReportsListreportsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsListreportsCall) Context(ctx context.Context) *ReportsListreportsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsListreportsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3266,12 +2879,7 @@ func (c *ReportsListreportsCall) Header() http.Header { } func (c *ReportsListreportsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3288,16 +2896,15 @@ func (c *ReportsListreportsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "queryId": strconv.FormatInt(c.queryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.reports.listreports" call. -// Exactly one of *ListReportsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListReportsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListReportsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ReportsListreportsCall) Do(opts ...googleapi.CallOption) (*ListReportsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3328,43 +2935,6 @@ func (c *ReportsListreportsCall) Do(opts ...googleapi.CallOption) (*ListReportsR return nil, err } return ret, nil - // { - // "description": "Retrieves stored reports.", - // "flatPath": "queries/{queryId}/reports", - // "httpMethod": "GET", - // "id": "doubleclickbidmanager.reports.listreports", - // "parameterOrder": [ - // "queryId" - // ], - // "parameters": { - // "pageSize": { - // "description": "Maximum number of results per page. Must be between 1 and 100. Defaults to 100 if unspecified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional pagination token.", - // "location": "query", - // "type": "string" - // }, - // "queryId": { - // "description": "Query ID with which the reports are associated.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "queries/{queryId}/reports", - // "response": { - // "$ref": "ListReportsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/doubleclickbidmanager" - // ] - // } - } // Pages invokes f for each page of results. @@ -3372,7 +2942,7 @@ func (c *ReportsListreportsCall) Do(opts ...googleapi.CallOption) (*ListReportsR // The provided context supersedes any context provided to the Context method. func (c *ReportsListreportsCall) Pages(ctx context.Context, f func(*ListReportsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/doubleclickbidmanager/v1/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v1/doubleclickbidmanager-gen.go index f855d3aede1..035557e439f 100644 --- a/doubleclickbidmanager/v1/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v1/doubleclickbidmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/bid-manager/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // doubleclickbidmanagerService, err := doubleclickbidmanager.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // doubleclickbidmanagerService, err := doubleclickbidmanager.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // doubleclickbidmanagerService, err := doubleclickbidmanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package doubleclickbidmanager // import "google.golang.org/api/doubleclickbidmanager/v1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,17 +84,21 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "doubleclickbidmanager:v1" const apiName = "doubleclickbidmanager" const apiVersion = "v1" const basePath = "https://doubleclickbidmanager.googleapis.com/doubleclickbidmanager/v1/" +const basePathTemplate = "https://doubleclickbidmanager.UNIVERSE_DOMAIN/doubleclickbidmanager/v1/" const mtlsBasePath = "https://doubleclickbidmanager.mtls.googleapis.com/doubleclickbidmanager/v1/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err diff --git a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go index 7da311ab382..abfbd7a8d47 100644 --- a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go @@ -750,7 +750,7 @@ func (c *QueriesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.create" call. @@ -845,7 +845,7 @@ func (c *QueriesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "queryId": strconv.FormatInt(c.queryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.delete" call. @@ -929,7 +929,7 @@ func (c *QueriesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "queryId": strconv.FormatInt(c.queryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.get" call. @@ -1054,7 +1054,7 @@ func (c *QueriesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.list" call. @@ -1186,7 +1186,7 @@ func (c *QueriesRunCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "queryId": strconv.FormatInt(c.queryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.run" call. @@ -1297,7 +1297,7 @@ func (c *QueriesReportsGetCall) doRequest(alt string) (*http.Response, error) { "queryId": strconv.FormatInt(c.queryId, 10), "reportId": strconv.FormatInt(c.reportId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.reports.get" call. @@ -1429,7 +1429,7 @@ func (c *QueriesReportsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "queryId": strconv.FormatInt(c.queryId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclickbidmanager.queries.reports.list" call. diff --git a/doubleclicksearch/v2/doubleclicksearch-gen.go b/doubleclicksearch/v2/doubleclicksearch-gen.go index 3832f6f224e..d0d6b8040d7 100644 --- a/doubleclicksearch/v2/doubleclicksearch-gen.go +++ b/doubleclicksearch/v2/doubleclicksearch-gen.go @@ -1014,7 +1014,7 @@ func (c *ConversionGetCall) doRequest(alt string) (*http.Response, error) { "advertiserId": strconv.FormatInt(c.advertiserId, 10), "engineAccountId": strconv.FormatInt(c.engineAccountId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclicksearch.conversion.get" call. @@ -1180,7 +1180,7 @@ func (c *ConversionGetByCustomerIdCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclicksearch.conversion.getByCustomerId" call. @@ -1274,7 +1274,7 @@ func (c *ConversionInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclicksearch.conversion.insert" call. @@ -1368,7 +1368,7 @@ func (c *ConversionUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclicksearch.conversion.update" call. @@ -1463,7 +1463,7 @@ func (c *ConversionUpdateAvailabilityCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclicksearch.conversion.updateAvailability" call. @@ -1558,7 +1558,7 @@ func (c *ReportsGenerateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclicksearch.reports.generate" call. @@ -1665,7 +1665,7 @@ func (c *ReportsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "reportId": c.reportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclicksearch.reports.get" call. @@ -1776,7 +1776,7 @@ func (c *ReportsGetFileCall) doRequest(alt string) (*http.Response, error) { "reportId": c.reportId, "reportFragment": strconv.FormatInt(c.reportFragment, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -1883,7 +1883,7 @@ func (c *ReportsGetIdMappingFileCall) doRequest(alt string) (*http.Response, err "agencyId": strconv.FormatInt(c.agencyId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -1993,7 +1993,7 @@ func (c *ReportsRequestCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclicksearch.reports.request" call. @@ -2104,7 +2104,7 @@ func (c *SavedColumnsListCall) doRequest(alt string) (*http.Response, error) { "agencyId": strconv.FormatInt(c.agencyId, 10), "advertiserId": strconv.FormatInt(c.advertiserId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "doubleclicksearch.savedColumns.list" call. diff --git a/drive/v2/drive-gen.go b/drive/v2/drive-gen.go index aa0ea731906..cac2eb09618 100644 --- a/drive/v2/drive-gen.go +++ b/drive/v2/drive-gen.go @@ -3580,7 +3580,7 @@ func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.about.get" call. @@ -3687,7 +3687,7 @@ func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appId": c.appId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.apps.get" call. @@ -3815,7 +3815,7 @@ func (c *AppsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.apps.list" call. @@ -3951,7 +3951,7 @@ func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "changeId": c.changeId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.changes.get" call. @@ -4080,7 +4080,7 @@ func (c *ChangesGetStartPageTokenCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.changes.getStartPageToken" call. @@ -4297,7 +4297,7 @@ func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.changes.list" call. @@ -4529,7 +4529,7 @@ func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.changes.watch" call. @@ -4623,7 +4623,7 @@ func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.channels.stop" call. @@ -4707,7 +4707,7 @@ func (c *ChildrenDeleteCall) doRequest(alt string) (*http.Response, error) { "folderId": c.folderId, "childId": c.childId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.children.delete" call. @@ -4795,7 +4795,7 @@ func (c *ChildrenGetCall) doRequest(alt string) (*http.Response, error) { "folderId": c.folderId, "childId": c.childId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.children.get" call. @@ -4918,7 +4918,7 @@ func (c *ChildrenInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "folderId": c.folderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.children.insert" call. @@ -5057,7 +5057,7 @@ func (c *ChildrenListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "folderId": c.folderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.children.list" call. @@ -5177,7 +5177,7 @@ func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.delete" call. @@ -5273,7 +5273,7 @@ func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.get" call. @@ -5374,7 +5374,7 @@ func (c *CommentsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.insert" call. @@ -5512,7 +5512,7 @@ func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.list" call. @@ -5638,7 +5638,7 @@ func (c *CommentsPatchCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.patch" call. @@ -5743,7 +5743,7 @@ func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.update" call. @@ -5856,7 +5856,7 @@ func (c *DrivesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "driveId": c.driveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.delete" call. @@ -5949,7 +5949,7 @@ func (c *DrivesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "driveId": c.driveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.get" call. @@ -6044,7 +6044,7 @@ func (c *DrivesHideCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "driveId": c.driveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.hide" call. @@ -6145,7 +6145,7 @@ func (c *DrivesInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.insert" call. @@ -6277,7 +6277,7 @@ func (c *DrivesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.list" call. @@ -6393,7 +6393,7 @@ func (c *DrivesUnhideCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "driveId": c.driveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.unhide" call. @@ -6503,7 +6503,7 @@ func (c *DrivesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "driveId": c.driveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.update" call. @@ -6699,7 +6699,7 @@ func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.copy" call. @@ -6820,7 +6820,7 @@ func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.delete" call. @@ -6901,7 +6901,7 @@ func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.emptyTrash" call. @@ -6989,7 +6989,7 @@ func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -7106,7 +7106,7 @@ func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.generateIds" call. @@ -7285,7 +7285,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -7563,7 +7563,7 @@ func (c *FilesInsertCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.insert" call. @@ -7816,7 +7816,7 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.list" call. @@ -7959,7 +7959,7 @@ func (c *FilesListLabelsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.listLabels" call. @@ -8082,7 +8082,7 @@ func (c *FilesModifyLabelsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.modifyLabels" call. @@ -8347,7 +8347,7 @@ func (c *FilesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.patch" call. @@ -8471,7 +8471,7 @@ func (c *FilesTouchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.touch" call. @@ -8597,7 +8597,7 @@ func (c *FilesTrashCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.trash" call. @@ -8723,7 +8723,7 @@ func (c *FilesUntrashCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.untrash" call. @@ -9041,7 +9041,7 @@ func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.update" call. @@ -9225,7 +9225,7 @@ func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.watch" call. @@ -9332,7 +9332,7 @@ func (c *ParentsDeleteCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "parentId": c.parentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.parents.delete" call. @@ -9420,7 +9420,7 @@ func (c *ParentsGetCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "parentId": c.parentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.parents.get" call. @@ -9544,7 +9544,7 @@ func (c *ParentsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.parents.insert" call. @@ -9652,7 +9652,7 @@ func (c *ParentsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.parents.list" call. @@ -9777,7 +9777,7 @@ func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.delete" call. @@ -9889,7 +9889,7 @@ func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.get" call. @@ -9996,7 +9996,7 @@ func (c *PermissionsGetIdForEmailCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "email": c.email, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.getIdForEmail" call. @@ -10155,7 +10155,7 @@ func (c *PermissionsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.insert" call. @@ -10311,7 +10311,7 @@ func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.list" call. @@ -10478,7 +10478,7 @@ func (c *PermissionsPatchCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.patch" call. @@ -10623,7 +10623,7 @@ func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.update" call. @@ -10729,7 +10729,7 @@ func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "propertyKey": c.propertyKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.properties.delete" call. @@ -10824,7 +10824,7 @@ func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "propertyKey": c.propertyKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.properties.get" call. @@ -10925,7 +10925,7 @@ func (c *PropertiesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.properties.insert" call. @@ -11032,7 +11032,7 @@ func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.properties.list" call. @@ -11144,7 +11144,7 @@ func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "propertyKey": c.propertyKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.properties.patch" call. @@ -11256,7 +11256,7 @@ func (c *PropertiesUpdateCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "propertyKey": c.propertyKey, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.properties.update" call. @@ -11359,7 +11359,7 @@ func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) { "commentId": c.commentId, "replyId": c.replyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.delete" call. @@ -11458,7 +11458,7 @@ func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) { "commentId": c.commentId, "replyId": c.replyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.get" call. @@ -11563,7 +11563,7 @@ func (c *RepliesInsertCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.insert" call. @@ -11696,7 +11696,7 @@ func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.list" call. @@ -11827,7 +11827,7 @@ func (c *RepliesPatchCall) doRequest(alt string) (*http.Response, error) { "commentId": c.commentId, "replyId": c.replyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.patch" call. @@ -11936,7 +11936,7 @@ func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) { "commentId": c.commentId, "replyId": c.replyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.update" call. @@ -12038,7 +12038,7 @@ func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "revisionId": c.revisionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.revisions.delete" call. @@ -12126,7 +12126,7 @@ func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "revisionId": c.revisionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.revisions.get" call. @@ -12248,7 +12248,7 @@ func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.revisions.list" call. @@ -12374,7 +12374,7 @@ func (c *RevisionsPatchCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "revisionId": c.revisionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.revisions.patch" call. @@ -12479,7 +12479,7 @@ func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "revisionId": c.revisionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.revisions.update" call. @@ -12574,7 +12574,7 @@ func (c *TeamdrivesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "teamDriveId": c.teamDriveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.teamdrives.delete" call. @@ -12667,7 +12667,7 @@ func (c *TeamdrivesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "teamDriveId": c.teamDriveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.teamdrives.get" call. @@ -12768,7 +12768,7 @@ func (c *TeamdrivesInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.teamdrives.insert" call. @@ -12897,7 +12897,7 @@ func (c *TeamdrivesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.teamdrives.list" call. @@ -13028,7 +13028,7 @@ func (c *TeamdrivesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "teamDriveId": c.teamDriveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.teamdrives.update" call. diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 03e968b26c1..f2be45a5901 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -3117,7 +3117,7 @@ func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.about.get" call. @@ -3224,7 +3224,7 @@ func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appId": c.appId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.apps.get" call. @@ -3352,7 +3352,7 @@ func (c *AppsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.apps.list" call. @@ -3481,7 +3481,7 @@ func (c *ChangesGetStartPageTokenCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.changes.getStartPageToken" call. @@ -3687,7 +3687,7 @@ func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.changes.list" call. @@ -3887,7 +3887,7 @@ func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.changes.watch" call. @@ -3981,7 +3981,7 @@ func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.channels.stop" call. @@ -4059,7 +4059,7 @@ func (c *CommentsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.create" call. @@ -4158,7 +4158,7 @@ func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.delete" call. @@ -4254,7 +4254,7 @@ func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.get" call. @@ -4392,7 +4392,7 @@ func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.list" call. @@ -4518,7 +4518,7 @@ func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.comments.update" call. @@ -4619,7 +4619,7 @@ func (c *DrivesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.create" call. @@ -4732,7 +4732,7 @@ func (c *DrivesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "driveId": c.driveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.delete" call. @@ -4825,7 +4825,7 @@ func (c *DrivesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "driveId": c.driveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.get" call. @@ -4920,7 +4920,7 @@ func (c *DrivesHideCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "driveId": c.driveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.hide" call. @@ -5052,7 +5052,7 @@ func (c *DrivesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.list" call. @@ -5168,7 +5168,7 @@ func (c *DrivesUnhideCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "driveId": c.driveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.unhide" call. @@ -5278,7 +5278,7 @@ func (c *DrivesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "driveId": c.driveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.drives.update" call. @@ -5445,7 +5445,7 @@ func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.copy" call. @@ -5678,7 +5678,7 @@ func (c *FilesCreateCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.create" call. @@ -5816,7 +5816,7 @@ func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.delete" call. @@ -5909,7 +5909,7 @@ func (c *FilesDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.download" call. @@ -6013,7 +6013,7 @@ func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.emptyTrash" call. @@ -6101,7 +6101,7 @@ func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -6217,7 +6217,7 @@ func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.generateIds" call. @@ -6369,7 +6369,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -6612,7 +6612,7 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.list" call. @@ -6755,7 +6755,7 @@ func (c *FilesListLabelsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.listLabels" call. @@ -6878,7 +6878,7 @@ func (c *FilesModifyLabelsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.modifyLabels" call. @@ -7115,7 +7115,7 @@ func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.update" call. @@ -7272,7 +7272,7 @@ func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.files.watch" call. @@ -7375,7 +7375,7 @@ func (c *OperationCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.operation.cancel" call. @@ -7450,7 +7450,7 @@ func (c *OperationDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.operation.delete" call. @@ -7536,7 +7536,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.operations.get" call. @@ -7664,7 +7664,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.operations.list" call. @@ -7855,7 +7855,7 @@ func (c *PermissionsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.create" call. @@ -7979,7 +7979,7 @@ func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.delete" call. @@ -8091,7 +8091,7 @@ func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.get" call. @@ -8247,7 +8247,7 @@ func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.list" call. @@ -8415,7 +8415,7 @@ func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.permissions.update" call. @@ -8520,7 +8520,7 @@ func (c *RepliesCreateCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.create" call. @@ -8623,7 +8623,7 @@ func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) { "commentId": c.commentId, "replyId": c.replyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.delete" call. @@ -8723,7 +8723,7 @@ func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) { "commentId": c.commentId, "replyId": c.replyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.get" call. @@ -8857,7 +8857,7 @@ func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.list" call. @@ -8987,7 +8987,7 @@ func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) { "commentId": c.commentId, "replyId": c.replyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.replies.update" call. @@ -9089,7 +9089,7 @@ func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "revisionId": c.revisionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.revisions.delete" call. @@ -9187,7 +9187,7 @@ func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "revisionId": c.revisionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -9325,7 +9325,7 @@ func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "fileId": c.fileId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.revisions.list" call. @@ -9451,7 +9451,7 @@ func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) { "fileId": c.fileId, "revisionId": c.revisionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.revisions.update" call. @@ -9552,7 +9552,7 @@ func (c *TeamdrivesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.teamdrives.create" call. @@ -9647,7 +9647,7 @@ func (c *TeamdrivesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "teamDriveId": c.teamDriveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.teamdrives.delete" call. @@ -9740,7 +9740,7 @@ func (c *TeamdrivesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "teamDriveId": c.teamDriveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.teamdrives.get" call. @@ -9869,7 +9869,7 @@ func (c *TeamdrivesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.teamdrives.list" call. @@ -10000,7 +10000,7 @@ func (c *TeamdrivesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "teamDriveId": c.teamDriveId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drive.teamdrives.update" call. diff --git a/driveactivity/v2/driveactivity-gen.go b/driveactivity/v2/driveactivity-gen.go index 1aafc06b564..909eaf44bf4 100644 --- a/driveactivity/v2/driveactivity-gen.go +++ b/driveactivity/v2/driveactivity-gen.go @@ -1856,7 +1856,7 @@ func (c *ActivityQueryCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "driveactivity.activity.query" call. diff --git a/drivelabels/v2/drivelabels-gen.go b/drivelabels/v2/drivelabels-gen.go index ae304052e68..8cf6bccdef0 100644 --- a/drivelabels/v2/drivelabels-gen.go +++ b/drivelabels/v2/drivelabels-gen.go @@ -2902,7 +2902,7 @@ func (c *LabelsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.create" call. @@ -3018,7 +3018,7 @@ func (c *LabelsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.delete" call. @@ -3123,7 +3123,7 @@ func (c *LabelsDeltaCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.delta" call. @@ -3229,7 +3229,7 @@ func (c *LabelsDisableCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.disable" call. @@ -3334,7 +3334,7 @@ func (c *LabelsEnableCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.enable" call. @@ -3479,7 +3479,7 @@ func (c *LabelsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.get" call. @@ -3672,7 +3672,7 @@ func (c *LabelsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.list" call. @@ -3807,7 +3807,7 @@ func (c *LabelsPublishCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.publish" call. @@ -3910,7 +3910,7 @@ func (c *LabelsUpdateLabelCopyModeCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.updateLabelCopyMode" call. @@ -4023,7 +4023,7 @@ func (c *LabelsUpdatePermissionsCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.updatePermissions" call. @@ -4145,7 +4145,7 @@ func (c *LabelsLocksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.locks.list" call. @@ -4272,7 +4272,7 @@ func (c *LabelsPermissionsBatchDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.permissions.batchDelete" call. @@ -4380,7 +4380,7 @@ func (c *LabelsPermissionsBatchUpdateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.permissions.batchUpdate" call. @@ -4494,7 +4494,7 @@ func (c *LabelsPermissionsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.permissions.create" call. @@ -4599,7 +4599,7 @@ func (c *LabelsPermissionsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.permissions.delete" call. @@ -4730,7 +4730,7 @@ func (c *LabelsPermissionsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.permissions.list" call. @@ -4864,7 +4864,7 @@ func (c *LabelsRevisionsUpdatePermissionsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.updatePermissions" call. @@ -4986,7 +4986,7 @@ func (c *LabelsRevisionsLocksListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.locks.list" call. @@ -5113,7 +5113,7 @@ func (c *LabelsRevisionsPermissionsBatchDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.permissions.batchDelete" call. @@ -5221,7 +5221,7 @@ func (c *LabelsRevisionsPermissionsBatchUpdateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.permissions.batchUpdate" call. @@ -5335,7 +5335,7 @@ func (c *LabelsRevisionsPermissionsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.permissions.create" call. @@ -5440,7 +5440,7 @@ func (c *LabelsRevisionsPermissionsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.permissions.delete" call. @@ -5571,7 +5571,7 @@ func (c *LabelsRevisionsPermissionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.permissions.list" call. @@ -5701,7 +5701,7 @@ func (c *LimitsGetLabelCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.limits.getLabel" call. @@ -5818,7 +5818,7 @@ func (c *UsersGetCapabilitiesCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.users.getCapabilities" call. diff --git a/drivelabels/v2beta/drivelabels-gen.go b/drivelabels/v2beta/drivelabels-gen.go index f03ef683dc7..5cce331ec16 100644 --- a/drivelabels/v2beta/drivelabels-gen.go +++ b/drivelabels/v2beta/drivelabels-gen.go @@ -2905,7 +2905,7 @@ func (c *LabelsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.create" call. @@ -3021,7 +3021,7 @@ func (c *LabelsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.delete" call. @@ -3126,7 +3126,7 @@ func (c *LabelsDeltaCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.delta" call. @@ -3232,7 +3232,7 @@ func (c *LabelsDisableCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.disable" call. @@ -3337,7 +3337,7 @@ func (c *LabelsEnableCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.enable" call. @@ -3482,7 +3482,7 @@ func (c *LabelsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.get" call. @@ -3675,7 +3675,7 @@ func (c *LabelsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.list" call. @@ -3810,7 +3810,7 @@ func (c *LabelsPublishCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.publish" call. @@ -3913,7 +3913,7 @@ func (c *LabelsUpdateLabelCopyModeCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.updateLabelCopyMode" call. @@ -4026,7 +4026,7 @@ func (c *LabelsUpdatePermissionsCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.updatePermissions" call. @@ -4148,7 +4148,7 @@ func (c *LabelsLocksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.locks.list" call. @@ -4275,7 +4275,7 @@ func (c *LabelsPermissionsBatchDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.permissions.batchDelete" call. @@ -4383,7 +4383,7 @@ func (c *LabelsPermissionsBatchUpdateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.permissions.batchUpdate" call. @@ -4497,7 +4497,7 @@ func (c *LabelsPermissionsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.permissions.create" call. @@ -4602,7 +4602,7 @@ func (c *LabelsPermissionsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.permissions.delete" call. @@ -4733,7 +4733,7 @@ func (c *LabelsPermissionsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.permissions.list" call. @@ -4867,7 +4867,7 @@ func (c *LabelsRevisionsUpdatePermissionsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.updatePermissions" call. @@ -4989,7 +4989,7 @@ func (c *LabelsRevisionsLocksListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.locks.list" call. @@ -5116,7 +5116,7 @@ func (c *LabelsRevisionsPermissionsBatchDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.permissions.batchDelete" call. @@ -5224,7 +5224,7 @@ func (c *LabelsRevisionsPermissionsBatchUpdateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.permissions.batchUpdate" call. @@ -5338,7 +5338,7 @@ func (c *LabelsRevisionsPermissionsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.permissions.create" call. @@ -5443,7 +5443,7 @@ func (c *LabelsRevisionsPermissionsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.permissions.delete" call. @@ -5574,7 +5574,7 @@ func (c *LabelsRevisionsPermissionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.labels.revisions.permissions.list" call. @@ -5704,7 +5704,7 @@ func (c *LimitsGetLabelCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.limits.getLabel" call. @@ -5821,7 +5821,7 @@ func (c *UsersGetCapabilitiesCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "drivelabels.users.getCapabilities" call. diff --git a/essentialcontacts/v1/essentialcontacts-gen.go b/essentialcontacts/v1/essentialcontacts-gen.go index 6dc6e4f7a7c..6b1d679b66c 100644 --- a/essentialcontacts/v1/essentialcontacts-gen.go +++ b/essentialcontacts/v1/essentialcontacts-gen.go @@ -557,7 +557,7 @@ func (c *FoldersContactsComputeCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.folders.contacts.compute" call. @@ -682,7 +682,7 @@ func (c *FoldersContactsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.folders.contacts.create" call. @@ -781,7 +781,7 @@ func (c *FoldersContactsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.folders.contacts.delete" call. @@ -892,7 +892,7 @@ func (c *FoldersContactsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.folders.contacts.get" call. @@ -1020,7 +1020,7 @@ func (c *FoldersContactsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.folders.contacts.list" call. @@ -1152,7 +1152,7 @@ func (c *FoldersContactsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.folders.contacts.patch" call. @@ -1259,7 +1259,7 @@ func (c *FoldersContactsSendTestMessageCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.folders.contacts.sendTestMessage" call. @@ -1435,7 +1435,7 @@ func (c *OrganizationsContactsComputeCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.organizations.contacts.compute" call. @@ -1560,7 +1560,7 @@ func (c *OrganizationsContactsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.organizations.contacts.create" call. @@ -1659,7 +1659,7 @@ func (c *OrganizationsContactsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.organizations.contacts.delete" call. @@ -1770,7 +1770,7 @@ func (c *OrganizationsContactsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.organizations.contacts.get" call. @@ -1898,7 +1898,7 @@ func (c *OrganizationsContactsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.organizations.contacts.list" call. @@ -2030,7 +2030,7 @@ func (c *OrganizationsContactsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.organizations.contacts.patch" call. @@ -2137,7 +2137,7 @@ func (c *OrganizationsContactsSendTestMessageCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.organizations.contacts.sendTestMessage" call. @@ -2313,7 +2313,7 @@ func (c *ProjectsContactsComputeCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.projects.contacts.compute" call. @@ -2438,7 +2438,7 @@ func (c *ProjectsContactsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.projects.contacts.create" call. @@ -2537,7 +2537,7 @@ func (c *ProjectsContactsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.projects.contacts.delete" call. @@ -2648,7 +2648,7 @@ func (c *ProjectsContactsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.projects.contacts.get" call. @@ -2776,7 +2776,7 @@ func (c *ProjectsContactsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.projects.contacts.list" call. @@ -2908,7 +2908,7 @@ func (c *ProjectsContactsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.projects.contacts.patch" call. @@ -3015,7 +3015,7 @@ func (c *ProjectsContactsSendTestMessageCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "essentialcontacts.projects.contacts.sendTestMessage" call. diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index 9a6d07584b8..6fb383c3e05 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -1735,7 +1735,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.get" call. @@ -1842,7 +1842,7 @@ func (c *ProjectsLocationsGetGoogleChannelConfigCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.getGoogleChannelConfig" call. @@ -1974,7 +1974,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.list" call. @@ -2107,7 +2107,7 @@ func (c *ProjectsLocationsUpdateGoogleChannelConfigCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.updateGoogleChannelConfig" call. @@ -2216,7 +2216,7 @@ func (c *ProjectsLocationsChannelConnectionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channelConnections.create" call. @@ -2312,7 +2312,7 @@ func (c *ProjectsLocationsChannelConnectionsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channelConnections.delete" call. @@ -2420,7 +2420,7 @@ func (c *ProjectsLocationsChannelConnectionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channelConnections.get" call. @@ -2548,7 +2548,7 @@ func (c *ProjectsLocationsChannelConnectionsGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channelConnections.getIamPolicy" call. @@ -2673,7 +2673,7 @@ func (c *ProjectsLocationsChannelConnectionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channelConnections.list" call. @@ -2800,7 +2800,7 @@ func (c *ProjectsLocationsChannelConnectionsSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channelConnections.setIamPolicy" call. @@ -2908,7 +2908,7 @@ func (c *ProjectsLocationsChannelConnectionsTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channelConnections.testIamPermissions" call. @@ -3024,7 +3024,7 @@ func (c *ProjectsLocationsChannelsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channels.create" call. @@ -3127,7 +3127,7 @@ func (c *ProjectsLocationsChannelsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channels.delete" call. @@ -3235,7 +3235,7 @@ func (c *ProjectsLocationsChannelsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channels.get" call. @@ -3362,7 +3362,7 @@ func (c *ProjectsLocationsChannelsGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channels.getIamPolicy" call. @@ -3494,7 +3494,7 @@ func (c *ProjectsLocationsChannelsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channels.list" call. @@ -3635,7 +3635,7 @@ func (c *ProjectsLocationsChannelsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channels.patch" call. @@ -3741,7 +3741,7 @@ func (c *ProjectsLocationsChannelsSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channels.setIamPolicy" call. @@ -3849,7 +3849,7 @@ func (c *ProjectsLocationsChannelsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.channels.testIamPermissions" call. @@ -3959,7 +3959,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.operations.cancel" call. @@ -4057,7 +4057,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.operations.delete" call. @@ -4166,7 +4166,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.operations.get" call. @@ -4295,7 +4295,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.operations.list" call. @@ -4424,7 +4424,7 @@ func (c *ProjectsLocationsProvidersGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.providers.get" call. @@ -4564,7 +4564,7 @@ func (c *ProjectsLocationsProvidersListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.providers.list" call. @@ -4701,7 +4701,7 @@ func (c *ProjectsLocationsTriggersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.create" call. @@ -4819,7 +4819,7 @@ func (c *ProjectsLocationsTriggersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.delete" call. @@ -4927,7 +4927,7 @@ func (c *ProjectsLocationsTriggersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.get" call. @@ -5054,7 +5054,7 @@ func (c *ProjectsLocationsTriggersGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.getIamPolicy" call. @@ -5195,7 +5195,7 @@ func (c *ProjectsLocationsTriggersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.list" call. @@ -5344,7 +5344,7 @@ func (c *ProjectsLocationsTriggersPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.patch" call. @@ -5450,7 +5450,7 @@ func (c *ProjectsLocationsTriggersSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.setIamPolicy" call. @@ -5558,7 +5558,7 @@ func (c *ProjectsLocationsTriggersTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.testIamPermissions" call. diff --git a/eventarc/v1beta1/eventarc-gen.go b/eventarc/v1beta1/eventarc-gen.go index 3d7cdf8efdb..bea60578bae 100644 --- a/eventarc/v1beta1/eventarc-gen.go +++ b/eventarc/v1beta1/eventarc-gen.go @@ -235,9 +235,9 @@ type AuditConfig struct { NullFields []string `json:"-"` } -func (s *AuditConfig) MarshalJSON() ([]byte, error) { +func (s AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditLogConfig: Provides the configuration for logging a type of @@ -270,9 +270,9 @@ type AuditLogConfig struct { NullFields []string `json:"-"` } -func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditLogConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members`, or principals, with a `role`. @@ -369,9 +369,9 @@ type Binding struct { NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CancelOperationRequest: The request message for Operations.CancelOperation. @@ -404,9 +404,9 @@ type CloudRunService struct { NullFields []string `json:"-"` } -func (s *CloudRunService) MarshalJSON() ([]byte, error) { +func (s CloudRunService) MarshalJSON() ([]byte, error) { type NoMethod CloudRunService - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Destination: Represents a target of an invocation over HTTP. @@ -427,9 +427,9 @@ type Destination struct { NullFields []string `json:"-"` } -func (s *Destination) MarshalJSON() ([]byte, error) { +func (s Destination) MarshalJSON() ([]byte, error) { type NoMethod Destination - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining @@ -484,9 +484,9 @@ type Expr struct { NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListLocationsResponse: The response message for Locations.ListLocations. @@ -512,9 +512,9 @@ type ListLocationsResponse struct { NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLocationsResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListOperationsResponse: The response message for Operations.ListOperations. @@ -540,9 +540,9 @@ type ListOperationsResponse struct { NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListTriggersResponse: The response message for the ListTriggers method. @@ -570,9 +570,9 @@ type ListTriggersResponse struct { NullFields []string `json:"-"` } -func (s *ListTriggersResponse) MarshalJSON() ([]byte, error) { +func (s ListTriggersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListTriggersResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Location: A resource that represents a Google Cloud location. @@ -608,9 +608,9 @@ type Location struct { NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MatchingCriteria: Matches events based on exact matches on the CloudEvents @@ -635,9 +635,9 @@ type MatchingCriteria struct { NullFields []string `json:"-"` } -func (s *MatchingCriteria) MarshalJSON() ([]byte, error) { +func (s MatchingCriteria) MarshalJSON() ([]byte, error) { type NoMethod MatchingCriteria - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Operation: This resource represents a long-running operation that is the @@ -682,9 +682,9 @@ type Operation struct { NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadata: Represents the metadata of the long-running operation. @@ -720,9 +720,9 @@ type OperationMetadata struct { NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { +func (s OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadata - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Policy: An Identity and Access Management (IAM) policy, which specifies @@ -812,9 +812,9 @@ type Policy struct { NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Pubsub: Represents a Pub/Sub transport. @@ -843,9 +843,9 @@ type Pubsub struct { NullFields []string `json:"-"` } -func (s *Pubsub) MarshalJSON() ([]byte, error) { +func (s Pubsub) MarshalJSON() ([]byte, error) { type NoMethod Pubsub - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetIamPolicyRequest: Request message for `SetIamPolicy` method. @@ -872,9 +872,9 @@ type SetIamPolicyRequest struct { NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod SetIamPolicyRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Status: The `Status` type defines a logical error model that is suitable for @@ -906,9 +906,9 @@ type Status struct { NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsRequest: Request message for `TestIamPermissions` method. @@ -931,9 +931,9 @@ type TestIamPermissionsRequest struct { NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsResponse: Response message for `TestIamPermissions` @@ -958,9 +958,9 @@ type TestIamPermissionsResponse struct { NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Transport: Represents the transport intermediaries created for the trigger @@ -982,9 +982,9 @@ type Transport struct { NullFields []string `json:"-"` } -func (s *Transport) MarshalJSON() ([]byte, error) { +func (s Transport) MarshalJSON() ([]byte, error) { type NoMethod Transport - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Trigger: A representation of the trigger resource. @@ -1044,9 +1044,9 @@ type Trigger struct { NullFields []string `json:"-"` } -func (s *Trigger) MarshalJSON() ([]byte, error) { +func (s Trigger) MarshalJSON() ([]byte, error) { type NoMethod Trigger - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProjectsLocationsGetCall struct { @@ -1116,7 +1116,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.get" call. @@ -1247,7 +1247,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.list" call. @@ -1378,7 +1378,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.operations.cancel" call. @@ -1476,7 +1476,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.operations.delete" call. @@ -1585,7 +1585,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.operations.get" call. @@ -1713,7 +1713,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.operations.list" call. @@ -1850,7 +1850,7 @@ func (c *ProjectsLocationsTriggersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.create" call. @@ -1967,7 +1967,7 @@ func (c *ProjectsLocationsTriggersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.delete" call. @@ -2074,7 +2074,7 @@ func (c *ProjectsLocationsTriggersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.get" call. @@ -2201,7 +2201,7 @@ func (c *ProjectsLocationsTriggersGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.getIamPolicy" call. @@ -2333,7 +2333,7 @@ func (c *ProjectsLocationsTriggersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.list" call. @@ -2482,7 +2482,7 @@ func (c *ProjectsLocationsTriggersPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.patch" call. @@ -2587,7 +2587,7 @@ func (c *ProjectsLocationsTriggersSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.setIamPolicy" call. @@ -2695,7 +2695,7 @@ func (c *ProjectsLocationsTriggersTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "eventarc.projects.locations.triggers.testIamPermissions" call. diff --git a/factchecktools/v1alpha1/factchecktools-gen.go b/factchecktools/v1alpha1/factchecktools-gen.go index ac1193fca55..b180ce19134 100644 --- a/factchecktools/v1alpha1/factchecktools-gen.go +++ b/factchecktools/v1alpha1/factchecktools-gen.go @@ -692,7 +692,7 @@ func (c *ClaimsImageSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "factchecktools.claims.imageSearch" call. @@ -871,7 +871,7 @@ func (c *ClaimsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "factchecktools.claims.search" call. @@ -987,7 +987,7 @@ func (c *PagesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "factchecktools.pages.create" call. @@ -1084,7 +1084,7 @@ func (c *PagesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "factchecktools.pages.delete" call. @@ -1192,7 +1192,7 @@ func (c *PagesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "factchecktools.pages.get" call. @@ -1338,7 +1338,7 @@ func (c *PagesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "factchecktools.pages.list" call. @@ -1466,7 +1466,7 @@ func (c *PagesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "factchecktools.pages.update" call. diff --git a/fcm/v1/fcm-gen.go b/fcm/v1/fcm-gen.go index 152cb5b523f..62b55fde74b 100644 --- a/fcm/v1/fcm-gen.go +++ b/fcm/v1/fcm-gen.go @@ -928,7 +928,7 @@ func (c *ProjectsMessagesSendCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fcm.projects.messages.send" call. diff --git a/fcmdata/v1beta1/fcmdata-gen.go b/fcmdata/v1beta1/fcmdata-gen.go index 6b9456297a7..3e2949ed556 100644 --- a/fcmdata/v1beta1/fcmdata-gen.go +++ b/fcmdata/v1beta1/fcmdata-gen.go @@ -682,7 +682,7 @@ func (c *ProjectsAndroidAppsDeliveryDataListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fcmdata.projects.androidApps.deliveryData.list" call. diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index 4acf8b2bb55..c81d30480fc 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -1990,7 +1990,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.get" call. @@ -2129,7 +2129,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.list" call. @@ -2264,7 +2264,7 @@ func (c *ProjectsLocationsBackupsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.backups.create" call. @@ -2360,7 +2360,7 @@ func (c *ProjectsLocationsBackupsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.backups.delete" call. @@ -2468,7 +2468,7 @@ func (c *ProjectsLocationsBackupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.backups.get" call. @@ -2607,7 +2607,7 @@ func (c *ProjectsLocationsBackupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.backups.list" call. @@ -2738,7 +2738,7 @@ func (c *ProjectsLocationsBackupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.backups.patch" call. @@ -2851,7 +2851,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.create" call. @@ -2955,7 +2955,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.delete" call. @@ -3063,7 +3063,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.get" call. @@ -3202,7 +3202,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.list" call. @@ -3336,7 +3336,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.patch" call. @@ -3438,7 +3438,7 @@ func (c *ProjectsLocationsInstancesPromoteReplicaCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.promoteReplica" call. @@ -3544,7 +3544,7 @@ func (c *ProjectsLocationsInstancesRestoreCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.restore" call. @@ -3646,7 +3646,7 @@ func (c *ProjectsLocationsInstancesRevertCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.revert" call. @@ -3757,7 +3757,7 @@ func (c *ProjectsLocationsInstancesSnapshotsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.snapshots.create" call. @@ -3854,7 +3854,7 @@ func (c *ProjectsLocationsInstancesSnapshotsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.snapshots.delete" call. @@ -3963,7 +3963,7 @@ func (c *ProjectsLocationsInstancesSnapshotsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.snapshots.get" call. @@ -4100,7 +4100,7 @@ func (c *ProjectsLocationsInstancesSnapshotsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.snapshots.list" call. @@ -4232,7 +4232,7 @@ func (c *ProjectsLocationsInstancesSnapshotsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.snapshots.patch" call. @@ -4341,7 +4341,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.operations.cancel" call. @@ -4439,7 +4439,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.operations.delete" call. @@ -4548,7 +4548,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.operations.get" call. @@ -4676,7 +4676,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.operations.list" call. diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index 5c40637c6c6..70a56d7195f 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -2174,7 +2174,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.get" call. @@ -2313,7 +2313,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.list" call. @@ -2447,7 +2447,7 @@ func (c *ProjectsLocationsBackupsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.backups.create" call. @@ -2543,7 +2543,7 @@ func (c *ProjectsLocationsBackupsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.backups.delete" call. @@ -2651,7 +2651,7 @@ func (c *ProjectsLocationsBackupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.backups.get" call. @@ -2790,7 +2790,7 @@ func (c *ProjectsLocationsBackupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.backups.list" call. @@ -2921,7 +2921,7 @@ func (c *ProjectsLocationsBackupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.backups.patch" call. @@ -3035,7 +3035,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.create" call. @@ -3139,7 +3139,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.delete" call. @@ -3247,7 +3247,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.get" call. @@ -3386,7 +3386,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.list" call. @@ -3521,7 +3521,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.patch" call. @@ -3623,7 +3623,7 @@ func (c *ProjectsLocationsInstancesPromoteReplicaCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.promoteReplica" call. @@ -3728,7 +3728,7 @@ func (c *ProjectsLocationsInstancesRestoreCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.restore" call. @@ -3830,7 +3830,7 @@ func (c *ProjectsLocationsInstancesRevertCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.revert" call. @@ -3941,7 +3941,7 @@ func (c *ProjectsLocationsInstancesSharesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.shares.create" call. @@ -4038,7 +4038,7 @@ func (c *ProjectsLocationsInstancesSharesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.shares.delete" call. @@ -4147,7 +4147,7 @@ func (c *ProjectsLocationsInstancesSharesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.shares.get" call. @@ -4283,7 +4283,7 @@ func (c *ProjectsLocationsInstancesSharesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.shares.list" call. @@ -4417,7 +4417,7 @@ func (c *ProjectsLocationsInstancesSharesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.shares.patch" call. @@ -4528,7 +4528,7 @@ func (c *ProjectsLocationsInstancesSnapshotsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.snapshots.create" call. @@ -4625,7 +4625,7 @@ func (c *ProjectsLocationsInstancesSnapshotsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.snapshots.delete" call. @@ -4734,7 +4734,7 @@ func (c *ProjectsLocationsInstancesSnapshotsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.snapshots.get" call. @@ -4871,7 +4871,7 @@ func (c *ProjectsLocationsInstancesSnapshotsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.snapshots.list" call. @@ -5003,7 +5003,7 @@ func (c *ProjectsLocationsInstancesSnapshotsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.instances.snapshots.patch" call. @@ -5112,7 +5112,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.operations.cancel" call. @@ -5210,7 +5210,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.operations.delete" call. @@ -5319,7 +5319,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.operations.get" call. @@ -5447,7 +5447,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "file.projects.locations.operations.list" call. diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index 192c7ef4996..b741910516c 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -1983,7 +1983,7 @@ func (c *AvailableProjectsListCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.availableProjects.list" call. @@ -2114,7 +2114,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.operations.get" call. @@ -2244,7 +2244,7 @@ func (c *ProjectsAddFirebaseCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.projectid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.addFirebase" call. @@ -2383,7 +2383,7 @@ func (c *ProjectsAddGoogleAnalyticsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.addGoogleAnalytics" call. @@ -2493,7 +2493,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.get" call. @@ -2608,7 +2608,7 @@ func (c *ProjectsGetAdminSdkConfigCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.getAdminSdkConfig" call. @@ -2721,7 +2721,7 @@ func (c *ProjectsGetAnalyticsDetailsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.getAnalyticsDetails" call. @@ -2855,7 +2855,7 @@ func (c *ProjectsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.list" call. @@ -2998,7 +2998,7 @@ func (c *ProjectsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.patch" call. @@ -3113,7 +3113,7 @@ func (c *ProjectsRemoveAnalyticsCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.removeAnalytics" call. @@ -3278,7 +3278,7 @@ func (c *ProjectsSearchAppsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.searchApps" call. @@ -3408,7 +3408,7 @@ func (c *ProjectsAndroidAppsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.androidApps.create" call. @@ -3520,7 +3520,7 @@ func (c *ProjectsAndroidAppsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.androidApps.get" call. @@ -3634,7 +3634,7 @@ func (c *ProjectsAndroidAppsGetConfigCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.androidApps.getConfig" call. @@ -3773,7 +3773,7 @@ func (c *ProjectsAndroidAppsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.androidApps.list" call. @@ -3914,7 +3914,7 @@ func (c *ProjectsAndroidAppsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.androidApps.patch" call. @@ -4020,7 +4020,7 @@ func (c *ProjectsAndroidAppsRemoveCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.androidApps.remove" call. @@ -4126,7 +4126,7 @@ func (c *ProjectsAndroidAppsUndeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.androidApps.undelete" call. @@ -4233,7 +4233,7 @@ func (c *ProjectsAndroidAppsShaCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.androidApps.sha.create" call. @@ -4335,7 +4335,7 @@ func (c *ProjectsAndroidAppsShaDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.androidApps.sha.delete" call. @@ -4448,7 +4448,7 @@ func (c *ProjectsAndroidAppsShaListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.androidApps.sha.list" call. @@ -4597,7 +4597,7 @@ func (c *ProjectsAvailableLocationsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.availableLocations.list" call. @@ -4752,7 +4752,7 @@ func (c *ProjectsDefaultLocationFinalizeCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.defaultLocation.finalize" call. @@ -4859,7 +4859,7 @@ func (c *ProjectsIosAppsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.iosApps.create" call. @@ -4971,7 +4971,7 @@ func (c *ProjectsIosAppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.iosApps.get" call. @@ -5084,7 +5084,7 @@ func (c *ProjectsIosAppsGetConfigCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.iosApps.getConfig" call. @@ -5222,7 +5222,7 @@ func (c *ProjectsIosAppsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.iosApps.list" call. @@ -5363,7 +5363,7 @@ func (c *ProjectsIosAppsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.iosApps.patch" call. @@ -5469,7 +5469,7 @@ func (c *ProjectsIosAppsRemoveCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.iosApps.remove" call. @@ -5575,7 +5575,7 @@ func (c *ProjectsIosAppsUndeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.iosApps.undelete" call. @@ -5682,7 +5682,7 @@ func (c *ProjectsWebAppsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.webApps.create" call. @@ -5794,7 +5794,7 @@ func (c *ProjectsWebAppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.webApps.get" call. @@ -5907,7 +5907,7 @@ func (c *ProjectsWebAppsGetConfigCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.webApps.getConfig" call. @@ -6045,7 +6045,7 @@ func (c *ProjectsWebAppsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.webApps.list" call. @@ -6186,7 +6186,7 @@ func (c *ProjectsWebAppsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.webApps.patch" call. @@ -6292,7 +6292,7 @@ func (c *ProjectsWebAppsRemoveCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.webApps.remove" call. @@ -6398,7 +6398,7 @@ func (c *ProjectsWebAppsUndeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebase.projects.webApps.undelete" call. diff --git a/firebaseappcheck/v1/firebaseappcheck-gen.go b/firebaseappcheck/v1/firebaseappcheck-gen.go index fece356d9bf..2a24e74af44 100644 --- a/firebaseappcheck/v1/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1/firebaseappcheck-gen.go @@ -1759,7 +1759,7 @@ func (c *JwksGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.jwks.get" call. @@ -1867,7 +1867,7 @@ func (c *OauthClientsExchangeAppAttestAssertionCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.oauthClients.exchangeAppAttestAssertion" call. @@ -1978,7 +1978,7 @@ func (c *OauthClientsExchangeAppAttestAttestationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.oauthClients.exchangeAppAttestAttestation" call. @@ -2087,7 +2087,7 @@ func (c *OauthClientsExchangeDebugTokenCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.oauthClients.exchangeDebugToken" call. @@ -2196,7 +2196,7 @@ func (c *OauthClientsGenerateAppAttestChallengeCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.oauthClients.generateAppAttestChallenge" call. @@ -2304,7 +2304,7 @@ func (c *ProjectsAppsExchangeAppAttestAssertionCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeAppAttestAssertion" call. @@ -2415,7 +2415,7 @@ func (c *ProjectsAppsExchangeAppAttestAttestationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeAppAttestAttestation" call. @@ -2522,7 +2522,7 @@ func (c *ProjectsAppsExchangeCustomTokenCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeCustomToken" call. @@ -2631,7 +2631,7 @@ func (c *ProjectsAppsExchangeDebugTokenCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeDebugToken" call. @@ -2740,7 +2740,7 @@ func (c *ProjectsAppsExchangeDeviceCheckTokenCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeDeviceCheckToken" call. @@ -2849,7 +2849,7 @@ func (c *ProjectsAppsExchangePlayIntegrityTokenCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangePlayIntegrityToken" call. @@ -2958,7 +2958,7 @@ func (c *ProjectsAppsExchangeRecaptchaEnterpriseTokenCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeRecaptchaEnterpriseToken" call. @@ -3066,7 +3066,7 @@ func (c *ProjectsAppsExchangeRecaptchaV3TokenCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeRecaptchaV3Token" call. @@ -3174,7 +3174,7 @@ func (c *ProjectsAppsExchangeSafetyNetTokenCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeSafetyNetToken" call. @@ -3283,7 +3283,7 @@ func (c *ProjectsAppsGenerateAppAttestChallengeCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.generateAppAttestChallenge" call. @@ -3393,7 +3393,7 @@ func (c *ProjectsAppsGeneratePlayIntegrityChallengeCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.generatePlayIntegrityChallenge" call. @@ -3514,7 +3514,7 @@ func (c *ProjectsAppsAppAttestConfigBatchGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.appAttestConfig.batchGet" call. @@ -3623,7 +3623,7 @@ func (c *ProjectsAppsAppAttestConfigGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.appAttestConfig.get" call. @@ -3737,7 +3737,7 @@ func (c *ProjectsAppsAppAttestConfigPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.appAttestConfig.patch" call. @@ -3844,7 +3844,7 @@ func (c *ProjectsAppsDebugTokensCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.debugTokens.create" call. @@ -3945,7 +3945,7 @@ func (c *ProjectsAppsDebugTokensDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.debugTokens.delete" call. @@ -4055,7 +4055,7 @@ func (c *ProjectsAppsDebugTokensGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.debugTokens.get" call. @@ -4187,7 +4187,7 @@ func (c *ProjectsAppsDebugTokensListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.debugTokens.list" call. @@ -4321,7 +4321,7 @@ func (c *ProjectsAppsDebugTokensPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.debugTokens.patch" call. @@ -4443,7 +4443,7 @@ func (c *ProjectsAppsDeviceCheckConfigBatchGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.deviceCheckConfig.batchGet" call. @@ -4553,7 +4553,7 @@ func (c *ProjectsAppsDeviceCheckConfigGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.deviceCheckConfig.get" call. @@ -4668,7 +4668,7 @@ func (c *ProjectsAppsDeviceCheckConfigPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.deviceCheckConfig.patch" call. @@ -4789,7 +4789,7 @@ func (c *ProjectsAppsPlayIntegrityConfigBatchGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.playIntegrityConfig.batchGet" call. @@ -4899,7 +4899,7 @@ func (c *ProjectsAppsPlayIntegrityConfigGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.playIntegrityConfig.get" call. @@ -5013,7 +5013,7 @@ func (c *ProjectsAppsPlayIntegrityConfigPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.playIntegrityConfig.patch" call. @@ -5134,7 +5134,7 @@ func (c *ProjectsAppsRecaptchaEnterpriseConfigBatchGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaEnterpriseConfig.batchGet" call. @@ -5244,7 +5244,7 @@ func (c *ProjectsAppsRecaptchaEnterpriseConfigGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaEnterpriseConfig.get" call. @@ -5358,7 +5358,7 @@ func (c *ProjectsAppsRecaptchaEnterpriseConfigPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaEnterpriseConfig.patch" call. @@ -5480,7 +5480,7 @@ func (c *ProjectsAppsRecaptchaV3ConfigBatchGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaV3Config.batchGet" call. @@ -5590,7 +5590,7 @@ func (c *ProjectsAppsRecaptchaV3ConfigGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaV3Config.get" call. @@ -5705,7 +5705,7 @@ func (c *ProjectsAppsRecaptchaV3ConfigPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaV3Config.patch" call. @@ -5826,7 +5826,7 @@ func (c *ProjectsAppsSafetyNetConfigBatchGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.safetyNetConfig.batchGet" call. @@ -5935,7 +5935,7 @@ func (c *ProjectsAppsSafetyNetConfigGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.safetyNetConfig.get" call. @@ -6049,7 +6049,7 @@ func (c *ProjectsAppsSafetyNetConfigPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.safetyNetConfig.patch" call. @@ -6154,7 +6154,7 @@ func (c *ProjectsServicesBatchUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.batchUpdate" call. @@ -6267,7 +6267,7 @@ func (c *ProjectsServicesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.get" call. @@ -6399,7 +6399,7 @@ func (c *ProjectsServicesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.list" call. @@ -6536,7 +6536,7 @@ func (c *ProjectsServicesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.patch" call. @@ -6641,7 +6641,7 @@ func (c *ProjectsServicesResourcePoliciesBatchUpdateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.batchUpdate" call. @@ -6748,7 +6748,7 @@ func (c *ProjectsServicesResourcePoliciesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.create" call. @@ -6860,7 +6860,7 @@ func (c *ProjectsServicesResourcePoliciesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.delete" call. @@ -6973,7 +6973,7 @@ func (c *ProjectsServicesResourcePoliciesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.get" call. @@ -7122,7 +7122,7 @@ func (c *ProjectsServicesResourcePoliciesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.list" call. @@ -7259,7 +7259,7 @@ func (c *ProjectsServicesResourcePoliciesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.patch" call. diff --git a/firebaseappcheck/v1beta/firebaseappcheck-gen.go b/firebaseappcheck/v1beta/firebaseappcheck-gen.go index e9feff42af1..7ad22849460 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1beta/firebaseappcheck-gen.go @@ -1972,7 +1972,7 @@ func (c *JwksGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.jwks.get" call. @@ -2088,7 +2088,7 @@ func (c *OauthClientsExchangeAppAttestAssertionCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.oauthClients.exchangeAppAttestAssertion" call. @@ -2207,7 +2207,7 @@ func (c *OauthClientsExchangeAppAttestAttestationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.oauthClients.exchangeAppAttestAttestation" call. @@ -2324,7 +2324,7 @@ func (c *OauthClientsExchangeDebugTokenCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.oauthClients.exchangeDebugToken" call. @@ -2441,7 +2441,7 @@ func (c *OauthClientsGenerateAppAttestChallengeCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.oauthClients.generateAppAttestChallenge" call. @@ -2568,7 +2568,7 @@ func (c *ProjectsVerifyAppCheckTokenCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.projectid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.verifyAppCheckToken" call. @@ -2684,7 +2684,7 @@ func (c *ProjectsAppsExchangeAppAttestAssertionCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeAppAttestAssertion" call. @@ -2803,7 +2803,7 @@ func (c *ProjectsAppsExchangeAppAttestAttestationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeAppAttestAttestation" call. @@ -2910,7 +2910,7 @@ func (c *ProjectsAppsExchangeCustomTokenCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeCustomToken" call. @@ -3027,7 +3027,7 @@ func (c *ProjectsAppsExchangeDebugTokenCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeDebugToken" call. @@ -3136,7 +3136,7 @@ func (c *ProjectsAppsExchangeDeviceCheckTokenCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeDeviceCheckToken" call. @@ -3245,7 +3245,7 @@ func (c *ProjectsAppsExchangePlayIntegrityTokenCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangePlayIntegrityToken" call. @@ -3354,7 +3354,7 @@ func (c *ProjectsAppsExchangeRecaptchaEnterpriseTokenCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeRecaptchaEnterpriseToken" call. @@ -3462,7 +3462,7 @@ func (c *ProjectsAppsExchangeRecaptchaTokenCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeRecaptchaToken" call. @@ -3570,7 +3570,7 @@ func (c *ProjectsAppsExchangeRecaptchaV3TokenCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeRecaptchaV3Token" call. @@ -3678,7 +3678,7 @@ func (c *ProjectsAppsExchangeSafetyNetTokenCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.exchangeSafetyNetToken" call. @@ -3795,7 +3795,7 @@ func (c *ProjectsAppsGenerateAppAttestChallengeCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.generateAppAttestChallenge" call. @@ -3905,7 +3905,7 @@ func (c *ProjectsAppsGeneratePlayIntegrityChallengeCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "app": c.appid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.generatePlayIntegrityChallenge" call. @@ -4026,7 +4026,7 @@ func (c *ProjectsAppsAppAttestConfigBatchGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.appAttestConfig.batchGet" call. @@ -4135,7 +4135,7 @@ func (c *ProjectsAppsAppAttestConfigGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.appAttestConfig.get" call. @@ -4249,7 +4249,7 @@ func (c *ProjectsAppsAppAttestConfigPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.appAttestConfig.patch" call. @@ -4356,7 +4356,7 @@ func (c *ProjectsAppsDebugTokensCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.debugTokens.create" call. @@ -4457,7 +4457,7 @@ func (c *ProjectsAppsDebugTokensDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.debugTokens.delete" call. @@ -4567,7 +4567,7 @@ func (c *ProjectsAppsDebugTokensGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.debugTokens.get" call. @@ -4699,7 +4699,7 @@ func (c *ProjectsAppsDebugTokensListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.debugTokens.list" call. @@ -4833,7 +4833,7 @@ func (c *ProjectsAppsDebugTokensPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.debugTokens.patch" call. @@ -4955,7 +4955,7 @@ func (c *ProjectsAppsDeviceCheckConfigBatchGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.deviceCheckConfig.batchGet" call. @@ -5065,7 +5065,7 @@ func (c *ProjectsAppsDeviceCheckConfigGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.deviceCheckConfig.get" call. @@ -5180,7 +5180,7 @@ func (c *ProjectsAppsDeviceCheckConfigPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.deviceCheckConfig.patch" call. @@ -5301,7 +5301,7 @@ func (c *ProjectsAppsPlayIntegrityConfigBatchGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.playIntegrityConfig.batchGet" call. @@ -5411,7 +5411,7 @@ func (c *ProjectsAppsPlayIntegrityConfigGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.playIntegrityConfig.get" call. @@ -5525,7 +5525,7 @@ func (c *ProjectsAppsPlayIntegrityConfigPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.playIntegrityConfig.patch" call. @@ -5647,7 +5647,7 @@ func (c *ProjectsAppsRecaptchaConfigBatchGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaConfig.batchGet" call. @@ -5757,7 +5757,7 @@ func (c *ProjectsAppsRecaptchaConfigGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaConfig.get" call. @@ -5872,7 +5872,7 @@ func (c *ProjectsAppsRecaptchaConfigPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaConfig.patch" call. @@ -5993,7 +5993,7 @@ func (c *ProjectsAppsRecaptchaEnterpriseConfigBatchGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaEnterpriseConfig.batchGet" call. @@ -6103,7 +6103,7 @@ func (c *ProjectsAppsRecaptchaEnterpriseConfigGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaEnterpriseConfig.get" call. @@ -6217,7 +6217,7 @@ func (c *ProjectsAppsRecaptchaEnterpriseConfigPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaEnterpriseConfig.patch" call. @@ -6339,7 +6339,7 @@ func (c *ProjectsAppsRecaptchaV3ConfigBatchGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaV3Config.batchGet" call. @@ -6449,7 +6449,7 @@ func (c *ProjectsAppsRecaptchaV3ConfigGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaV3Config.get" call. @@ -6564,7 +6564,7 @@ func (c *ProjectsAppsRecaptchaV3ConfigPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.recaptchaV3Config.patch" call. @@ -6685,7 +6685,7 @@ func (c *ProjectsAppsSafetyNetConfigBatchGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.safetyNetConfig.batchGet" call. @@ -6794,7 +6794,7 @@ func (c *ProjectsAppsSafetyNetConfigGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.safetyNetConfig.get" call. @@ -6908,7 +6908,7 @@ func (c *ProjectsAppsSafetyNetConfigPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.apps.safetyNetConfig.patch" call. @@ -7013,7 +7013,7 @@ func (c *ProjectsServicesBatchUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.batchUpdate" call. @@ -7128,7 +7128,7 @@ func (c *ProjectsServicesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.get" call. @@ -7260,7 +7260,7 @@ func (c *ProjectsServicesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.list" call. @@ -7399,7 +7399,7 @@ func (c *ProjectsServicesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.patch" call. @@ -7504,7 +7504,7 @@ func (c *ProjectsServicesResourcePoliciesBatchUpdateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.batchUpdate" call. @@ -7611,7 +7611,7 @@ func (c *ProjectsServicesResourcePoliciesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.create" call. @@ -7723,7 +7723,7 @@ func (c *ProjectsServicesResourcePoliciesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.delete" call. @@ -7836,7 +7836,7 @@ func (c *ProjectsServicesResourcePoliciesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.get" call. @@ -7985,7 +7985,7 @@ func (c *ProjectsServicesResourcePoliciesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.list" call. @@ -8122,7 +8122,7 @@ func (c *ProjectsServicesResourcePoliciesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappcheck.projects.services.resourcePolicies.patch" call. diff --git a/firebaseappdistribution/v1/firebaseappdistribution-gen.go b/firebaseappdistribution/v1/firebaseappdistribution-gen.go index 4b566c38d84..3f8fb3737bb 100644 --- a/firebaseappdistribution/v1/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1/firebaseappdistribution-gen.go @@ -1655,7 +1655,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "app": c.app, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.media.upload" call. @@ -1781,7 +1781,7 @@ func (c *ProjectsAppsGetAabInfoCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.getAabInfo" call. @@ -1885,7 +1885,7 @@ func (c *ProjectsAppsReleasesBatchDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.batchDelete" call. @@ -1992,7 +1992,7 @@ func (c *ProjectsAppsReleasesDistributeCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.distribute" call. @@ -2101,7 +2101,7 @@ func (c *ProjectsAppsReleasesGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.get" call. @@ -2251,7 +2251,7 @@ func (c *ProjectsAppsReleasesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.list" call. @@ -2382,7 +2382,7 @@ func (c *ProjectsAppsReleasesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.patch" call. @@ -2480,7 +2480,7 @@ func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.feedbackReports.delete" call. @@ -2590,7 +2590,7 @@ func (c *ProjectsAppsReleasesFeedbackReportsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.feedbackReports.get" call. @@ -2719,7 +2719,7 @@ func (c *ProjectsAppsReleasesFeedbackReportsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.feedbackReports.list" call. @@ -2850,7 +2850,7 @@ func (c *ProjectsAppsReleasesOperationsCancelCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.operations.cancel" call. @@ -2949,7 +2949,7 @@ func (c *ProjectsAppsReleasesOperationsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.operations.delete" call. @@ -3059,7 +3059,7 @@ func (c *ProjectsAppsReleasesOperationsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.operations.get" call. @@ -3188,7 +3188,7 @@ func (c *ProjectsAppsReleasesOperationsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.operations.list" call. @@ -3319,7 +3319,7 @@ func (c *ProjectsAppsReleasesOperationsWaitCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.operations.wait" call. @@ -3423,7 +3423,7 @@ func (c *ProjectsGroupsBatchJoinCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "group": c.group, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.groups.batchJoin" call. @@ -3527,7 +3527,7 @@ func (c *ProjectsGroupsBatchLeaveCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "group": c.group, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.groups.batchLeave" call. @@ -3641,7 +3641,7 @@ func (c *ProjectsGroupsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.groups.create" call. @@ -3738,7 +3738,7 @@ func (c *ProjectsGroupsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.groups.delete" call. @@ -3847,7 +3847,7 @@ func (c *ProjectsGroupsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.groups.get" call. @@ -3974,7 +3974,7 @@ func (c *ProjectsGroupsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.groups.list" call. @@ -4105,7 +4105,7 @@ func (c *ProjectsGroupsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.groups.patch" call. @@ -4211,7 +4211,7 @@ func (c *ProjectsTestersBatchAddCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.testers.batchAdd" call. @@ -4315,7 +4315,7 @@ func (c *ProjectsTestersBatchRemoveCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.testers.batchRemove" call. @@ -4453,7 +4453,7 @@ func (c *ProjectsTestersListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.testers.list" call. @@ -4585,7 +4585,7 @@ func (c *ProjectsTestersPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.testers.patch" call. diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go index a698401cf08..901805febc4 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go @@ -1548,7 +1548,7 @@ func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "mobilesdkAppId": c.mobilesdkAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.apps.get" call. @@ -1658,7 +1658,7 @@ func (c *AppsGetJwtCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "mobilesdkAppId": c.mobilesdkAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.apps.getJwt" call. @@ -1757,7 +1757,7 @@ func (c *AppsProvisionAppCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "mobilesdkAppId": c.mobilesdkAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.apps.provisionApp" call. @@ -1871,7 +1871,7 @@ func (c *AppsReleaseByHashGetCall) doRequest(alt string) (*http.Response, error) "mobilesdkAppId": c.mobilesdkAppId, "uploadHash": c.uploadHash, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.apps.release_by_hash.get" call. @@ -1979,7 +1979,7 @@ func (c *AppsReleasesEnableAccessCall) doRequest(alt string) (*http.Response, er "mobilesdkAppId": c.mobilesdkAppId, "releaseId": c.releaseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.apps.releases.enable_access" call. @@ -2087,7 +2087,7 @@ func (c *AppsReleasesNotesCreateCall) doRequest(alt string) (*http.Response, err "mobilesdkAppId": c.mobilesdkAppId, "releaseId": c.releaseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.apps.releases.notes.create" call. @@ -2204,7 +2204,7 @@ func (c *AppsTestersGetTesterUdidsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "mobilesdkAppId": c.mobilesdkAppId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.apps.testers.getTesterUdids" call. @@ -2318,7 +2318,7 @@ func (c *AppsUploadStatusGetCall) doRequest(alt string) (*http.Response, error) "mobilesdkAppId": c.mobilesdkAppId, "uploadToken": c.uploadToken, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.apps.upload_status.get" call. @@ -2427,7 +2427,7 @@ func (c *ProjectsAppsGetTestConfigCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.getTestConfig" call. @@ -2537,7 +2537,7 @@ func (c *ProjectsAppsUpdateTestConfigCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.updateTestConfig" call. @@ -2649,7 +2649,7 @@ func (c *ProjectsAppsReleasesTestsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.tests.create" call. @@ -2759,7 +2759,7 @@ func (c *ProjectsAppsReleasesTestsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.tests.get" call. @@ -2883,7 +2883,7 @@ func (c *ProjectsAppsReleasesTestsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.apps.releases.tests.list" call. @@ -3024,7 +3024,7 @@ func (c *ProjectsTestersGetUdidsCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseappdistribution.projects.testers.getUdids" call. diff --git a/firebasedatabase/v1beta/firebasedatabase-gen.go b/firebasedatabase/v1beta/firebasedatabase-gen.go index 5b84e2331e1..13cb16b8a2c 100644 --- a/firebasedatabase/v1beta/firebasedatabase-gen.go +++ b/firebasedatabase/v1beta/firebasedatabase-gen.go @@ -389,7 +389,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedatabase.projects.locations.instances.create" call. @@ -491,7 +491,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedatabase.projects.locations.instances.delete" call. @@ -597,7 +597,7 @@ func (c *ProjectsLocationsInstancesDisableCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedatabase.projects.locations.instances.disable" call. @@ -712,7 +712,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedatabase.projects.locations.instances.get" call. @@ -852,7 +852,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedatabase.projects.locations.instances.list" call. @@ -979,7 +979,7 @@ func (c *ProjectsLocationsInstancesReenableCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedatabase.projects.locations.instances.reenable" call. @@ -1088,7 +1088,7 @@ func (c *ProjectsLocationsInstancesUndeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedatabase.projects.locations.instances.undelete" call. diff --git a/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go b/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go index 38429447bd0..65f908d8acb 100644 --- a/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go +++ b/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go @@ -1182,7 +1182,7 @@ func (c *ManagedShortLinksCreateCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedynamiclinks.managedShortLinks.create" call. @@ -1282,7 +1282,7 @@ func (c *ShortLinksCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedynamiclinks.shortLinks.create" call. @@ -1406,7 +1406,7 @@ func (c *V1GetLinkStatsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "dynamicLink": c.dynamicLink, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedynamiclinks.getLinkStats" call. @@ -1502,7 +1502,7 @@ func (c *V1InstallAttributionCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedynamiclinks.installAttribution" call. @@ -1598,7 +1598,7 @@ func (c *V1ReopenAttributionCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasedynamiclinks.reopenAttribution" call. diff --git a/firebasehosting/v1/firebasehosting-gen.go b/firebasehosting/v1/firebasehosting-gen.go index fe77535ae7b..e0b1704fda7 100644 --- a/firebasehosting/v1/firebasehosting-gen.go +++ b/firebasehosting/v1/firebasehosting-gen.go @@ -784,7 +784,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.operations.cancel" call. @@ -882,7 +882,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.operations.delete" call. @@ -1010,7 +1010,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.operations.list" call. @@ -1134,7 +1134,7 @@ func (c *ProjectsSitesCustomDomainsOperationsCancelCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.customDomains.operations.cancel" call. @@ -1230,7 +1230,7 @@ func (c *ProjectsSitesCustomDomainsOperationsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.customDomains.operations.delete" call. diff --git a/firebasehosting/v1beta1/firebasehosting-gen.go b/firebasehosting/v1beta1/firebasehosting-gen.go index bf10854b524..12d150ae2ce 100644 --- a/firebasehosting/v1beta1/firebasehosting-gen.go +++ b/firebasehosting/v1beta1/firebasehosting-gen.go @@ -2251,7 +2251,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.operations.get" call. @@ -2374,7 +2374,7 @@ func (c *ProjectsSitesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.create" call. @@ -2473,7 +2473,7 @@ func (c *ProjectsSitesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.delete" call. @@ -2585,7 +2585,7 @@ func (c *ProjectsSitesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.get" call. @@ -2693,7 +2693,7 @@ func (c *ProjectsSitesGetConfigCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.getConfig" call. @@ -2819,7 +2819,7 @@ func (c *ProjectsSitesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.list" call. @@ -2956,7 +2956,7 @@ func (c *ProjectsSitesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.patch" call. @@ -3068,7 +3068,7 @@ func (c *ProjectsSitesUpdateConfigCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.updateConfig" call. @@ -3177,7 +3177,7 @@ func (c *ProjectsSitesChannelsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.channels.create" call. @@ -3274,7 +3274,7 @@ func (c *ProjectsSitesChannelsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.channels.delete" call. @@ -3382,7 +3382,7 @@ func (c *ProjectsSitesChannelsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.channels.get" call. @@ -3506,7 +3506,7 @@ func (c *ProjectsSitesChannelsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.channels.list" call. @@ -3638,7 +3638,7 @@ func (c *ProjectsSitesChannelsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.channels.patch" call. @@ -3751,7 +3751,7 @@ func (c *ProjectsSitesChannelsReleasesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.channels.releases.create" call. @@ -3863,7 +3863,7 @@ func (c *ProjectsSitesChannelsReleasesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.channels.releases.get" call. @@ -3990,7 +3990,7 @@ func (c *ProjectsSitesChannelsReleasesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.channels.releases.list" call. @@ -4130,7 +4130,7 @@ func (c *ProjectsSitesCustomDomainsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.customDomains.create" call. @@ -4248,7 +4248,7 @@ func (c *ProjectsSitesCustomDomainsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.customDomains.delete" call. @@ -4355,7 +4355,7 @@ func (c *ProjectsSitesCustomDomainsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.customDomains.get" call. @@ -4487,7 +4487,7 @@ func (c *ProjectsSitesCustomDomainsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.customDomains.list" call. @@ -4634,7 +4634,7 @@ func (c *ProjectsSitesCustomDomainsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.customDomains.patch" call. @@ -4737,7 +4737,7 @@ func (c *ProjectsSitesCustomDomainsUndeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.customDomains.undelete" call. @@ -4845,7 +4845,7 @@ func (c *ProjectsSitesCustomDomainsOperationsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.customDomains.operations.get" call. @@ -4972,7 +4972,7 @@ func (c *ProjectsSitesCustomDomainsOperationsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.customDomains.operations.list" call. @@ -5096,7 +5096,7 @@ func (c *ProjectsSitesDomainsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.domains.create" call. @@ -5191,7 +5191,7 @@ func (c *ProjectsSitesDomainsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.domains.delete" call. @@ -5298,7 +5298,7 @@ func (c *ProjectsSitesDomainsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.domains.get" call. @@ -5420,7 +5420,7 @@ func (c *ProjectsSitesDomainsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.domains.list" call. @@ -5545,7 +5545,7 @@ func (c *ProjectsSitesDomainsUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.domains.update" call. @@ -5658,7 +5658,7 @@ func (c *ProjectsSitesReleasesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.releases.create" call. @@ -5770,7 +5770,7 @@ func (c *ProjectsSitesReleasesGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.releases.get" call. @@ -5897,7 +5897,7 @@ func (c *ProjectsSitesReleasesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.releases.list" call. @@ -6022,7 +6022,7 @@ func (c *ProjectsSitesVersionsCloneCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.versions.clone" call. @@ -6140,7 +6140,7 @@ func (c *ProjectsSitesVersionsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.versions.create" call. @@ -6236,7 +6236,7 @@ func (c *ProjectsSitesVersionsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.versions.delete" call. @@ -6346,7 +6346,7 @@ func (c *ProjectsSitesVersionsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.versions.get" call. @@ -6481,7 +6481,7 @@ func (c *ProjectsSitesVersionsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.versions.list" call. @@ -6620,7 +6620,7 @@ func (c *ProjectsSitesVersionsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.versions.patch" call. @@ -6723,7 +6723,7 @@ func (c *ProjectsSitesVersionsPopulateFilesCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.versions.populateFiles" call. @@ -6867,7 +6867,7 @@ func (c *ProjectsSitesVersionsFilesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.projects.sites.versions.files.list" call. @@ -6997,7 +6997,7 @@ func (c *SitesGetConfigCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.getConfig" call. @@ -7109,7 +7109,7 @@ func (c *SitesUpdateConfigCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.updateConfig" call. @@ -7218,7 +7218,7 @@ func (c *SitesChannelsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.channels.create" call. @@ -7315,7 +7315,7 @@ func (c *SitesChannelsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.channels.delete" call. @@ -7423,7 +7423,7 @@ func (c *SitesChannelsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.channels.get" call. @@ -7547,7 +7547,7 @@ func (c *SitesChannelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.channels.list" call. @@ -7679,7 +7679,7 @@ func (c *SitesChannelsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.channels.patch" call. @@ -7792,7 +7792,7 @@ func (c *SitesChannelsReleasesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.channels.releases.create" call. @@ -7904,7 +7904,7 @@ func (c *SitesChannelsReleasesGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.channels.releases.get" call. @@ -8031,7 +8031,7 @@ func (c *SitesChannelsReleasesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.channels.releases.list" call. @@ -8155,7 +8155,7 @@ func (c *SitesDomainsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.domains.create" call. @@ -8250,7 +8250,7 @@ func (c *SitesDomainsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.domains.delete" call. @@ -8357,7 +8357,7 @@ func (c *SitesDomainsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.domains.get" call. @@ -8479,7 +8479,7 @@ func (c *SitesDomainsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.domains.list" call. @@ -8604,7 +8604,7 @@ func (c *SitesDomainsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.domains.update" call. @@ -8717,7 +8717,7 @@ func (c *SitesReleasesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.releases.create" call. @@ -8829,7 +8829,7 @@ func (c *SitesReleasesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.releases.get" call. @@ -8956,7 +8956,7 @@ func (c *SitesReleasesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.releases.list" call. @@ -9081,7 +9081,7 @@ func (c *SitesVersionsCloneCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.versions.clone" call. @@ -9199,7 +9199,7 @@ func (c *SitesVersionsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.versions.create" call. @@ -9295,7 +9295,7 @@ func (c *SitesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.versions.delete" call. @@ -9405,7 +9405,7 @@ func (c *SitesVersionsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.versions.get" call. @@ -9540,7 +9540,7 @@ func (c *SitesVersionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.versions.list" call. @@ -9679,7 +9679,7 @@ func (c *SitesVersionsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.versions.patch" call. @@ -9782,7 +9782,7 @@ func (c *SitesVersionsPopulateFilesCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.versions.populateFiles" call. @@ -9926,7 +9926,7 @@ func (c *SitesVersionsFilesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasehosting.sites.versions.files.list" call. diff --git a/firebaseml/v1/firebaseml-gen.go b/firebaseml/v1/firebaseml-gen.go index b8839ab2857..1aae57971a0 100644 --- a/firebaseml/v1/firebaseml-gen.go +++ b/firebaseml/v1/firebaseml-gen.go @@ -380,7 +380,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.operations.cancel" call. @@ -478,7 +478,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.operations.delete" call. @@ -606,7 +606,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.operations.list" call. diff --git a/firebaseml/v1beta2/firebaseml-gen.go b/firebaseml/v1beta2/firebaseml-gen.go index a126ec916c7..befa823d812 100644 --- a/firebaseml/v1beta2/firebaseml-gen.go +++ b/firebaseml/v1beta2/firebaseml-gen.go @@ -549,7 +549,7 @@ func (c *ProjectsModelsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.projects.models.create" call. @@ -645,7 +645,7 @@ func (c *ProjectsModelsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.projects.models.delete" call. @@ -755,7 +755,7 @@ func (c *ProjectsModelsDownloadCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.projects.models.download" call. @@ -864,7 +864,7 @@ func (c *ProjectsModelsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.projects.models.get" call. @@ -993,7 +993,7 @@ func (c *ProjectsModelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.projects.models.list" call. @@ -1125,7 +1125,7 @@ func (c *ProjectsModelsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.projects.models.patch" call. @@ -1234,7 +1234,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.projects.operations.get" call. diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index b6e2df51da4..ab2af215038 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -1870,7 +1870,7 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "endpoint": c.endpoint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.projects.locations.publishers.models.countTokens" call. @@ -1976,7 +1976,7 @@ func (c *ProjectsLocationsPublishersModelsGenerateContentCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.projects.locations.publishers.models.generateContent" call. @@ -2083,7 +2083,7 @@ func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "model": c.model, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseml.projects.locations.publishers.models.streamGenerateContent" call. diff --git a/firebaseremoteconfig/v1/firebaseremoteconfig-gen.go b/firebaseremoteconfig/v1/firebaseremoteconfig-gen.go index e890efb262e..551acc636ca 100644 --- a/firebaseremoteconfig/v1/firebaseremoteconfig-gen.go +++ b/firebaseremoteconfig/v1/firebaseremoteconfig-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://firebase.google.com/docs/remote-config/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // firebaseremoteconfigService, err := firebaseremoteconfig.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // firebaseremoteconfigService, err := firebaseremoteconfig.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // firebaseremoteconfigService, err := firebaseremoteconfig.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package firebaseremoteconfig // import "google.golang.org/api/firebaseremoteconfig/v1" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,14 +83,20 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "firebaseremoteconfig:v1" const apiName = "firebaseremoteconfig" const apiVersion = "v1" const basePath = "https://firebaseremoteconfig.googleapis.com/" +const basePathTemplate = "https://firebaseremoteconfig.UNIVERSE_DOMAIN/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -129,10 +150,9 @@ type ProjectsService struct { } // RemoteConfig: * -// The RemoteConfig consists of a list of conditions (which can -// be -// thought of as named "if" statements) and a map of parameters -// (parameter key +// The RemoteConfig consists of a list of conditions (which can be +// thought of as named "if" statements) and a map of parameters (parameter +// key // to a structure containing an optional default value, as well as a // optional // submap of (condition name to value when that condition is true). @@ -142,97 +162,75 @@ type RemoteConfig struct { // The condition_name values of these entries must be unique. // // The resolved value of a config parameter P is determined as follow: - // * Let Y be the set of values from the submap of P that refer to - // conditions + // * Let Y be the set of values from the submap of P that refer to conditions // that evaluate to true. - // * If Y is non empty, the value is taken from the specific submap in Y - // whose + // * If Y is non empty, the value is taken from the specific submap in Y whose // condition_name is the earliest in this condition list. - // * Else, if P has a default value option (condition_name is empty) - // then + // * Else, if P has a default value option (condition_name is empty) then // the value is taken from that option. // * Else, parameter P has no value and is omitted from the config // result. // - // Example: parameter key "p1", default value "v1", submap specified - // as + // Example: parameter key "p1", default value "v1", submap specified as // {"c1": v2, "c2": v3} where "c1" and "c2" are names of conditions in // the - // condition list (where "c1" in this example appears before "c2"). - // The - // value of p1 would be v2 as long as c1 is true. Otherwise, if c2 is - // true, + // condition list (where "c1" in this example appears before "c2"). The + // value of p1 would be v2 as long as c1 is true. Otherwise, if c2 is true, // p1 would evaluate to v3, and if c1 and c2 are both false, p1 would // evaluate - // to v1. If no default value was specified, and c1 and c2 were both - // false, + // to v1. If no default value was specified, and c1 and c2 were both false, // no value for p1 would be generated. Conditions []*RemoteConfigCondition `json:"conditions,omitempty"` - - // Parameters: Map of parameter keys to their optional default values - // and optional submap + // Parameters: Map of parameter keys to their optional default values and + // optional submap // of (condition name : value). Order doesn't affect semantics, and so // is // sorted by the server. The 'key' values of the params must be unique. Parameters map[string]RemoteConfigParameter `json:"parameters,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Conditions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conditions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conditions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemoteConfig) MarshalJSON() ([]byte, error) { +func (s RemoteConfig) MarshalJSON() ([]byte, error) { type NoMethod RemoteConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemoteConfigCondition: A single RemoteConfig Condition. A list of -// these (because order matters) are +// RemoteConfigCondition: A single RemoteConfig Condition. A list of these +// (because order matters) are // part of a single RemoteConfig template. type RemoteConfigCondition struct { - // Description: DO NOT USE. Implementation removed and will not be added - // unless requested. - // A description for this Condition. Length must be less than or equal - // to - // 100 characters (or more precisely, unicode code points, which is - // defined + // Description: DO NOT USE. Implementation removed and will not be added unless + // requested. + // A description for this Condition. Length must be less than or equal to + // 100 characters (or more precisely, unicode code points, which is defined // in // java/com/google/wireless/android/config/ConstsExporter.java). // A description may contain any Unicode characters Description string `json:"description,omitempty"` - // Expression: Required. Expression string `json:"expression,omitempty"` - // Name: Required. // A non empty and unique name of this condition. Name string `json:"name,omitempty"` - // TagColor: Optional. - // The display (tag) color of this condition. This serves as part of a - // tag + // The display (tag) color of this condition. This serves as part of a tag // (in the future, we may add tag text as well as tag color, but that is // not // yet implemented in the UI). - // This value has no affect on the semantics of the delivered config and - // it + // This value has no affect on the semantics of the delivered config and it // is ignored by the backend, except for passing it through // write/read // requests. @@ -257,32 +255,26 @@ type RemoteConfigCondition struct { // "PURPLE" - Purple // "TEAL" - Teal TagColor string `json:"tagColor,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemoteConfigCondition) MarshalJSON() ([]byte, error) { +func (s RemoteConfigCondition) MarshalJSON() ([]byte, error) { type NoMethod RemoteConfigCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemoteConfigParameter: While default_value and conditional_values are -// each optional, at least one of +// RemoteConfigParameter: While default_value and conditional_values are each +// optional, at least one of // the two is required - otherwise, the parameter is meaningless (and // an // exception will be thrown by the validation logic). @@ -293,54 +285,42 @@ type RemoteConfigParameter struct { // determines // the value of this parameter. ConditionalValues map[string]RemoteConfigParameterValue `json:"conditionalValues,omitempty"` - - // DefaultValue: Optional - value to set the parameter to, when none of - // the named conditions + // DefaultValue: Optional - value to set the parameter to, when none of the + // named conditions // evaluate to true. DefaultValue *RemoteConfigParameterValue `json:"defaultValue,omitempty"` - // Description: Optional. - // A description for this Parameter. Length must be less than or equal - // to - // 100 characters (or more precisely, unicode code points, which is - // defined + // A description for this Parameter. Length must be less than or equal to + // 100 characters (or more precisely, unicode code points, which is defined // in // java/com/google/wireless/android/config/ConstsExporter.java). // A description may contain any Unicode characters Description string `json:"description,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConditionalValues") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ConditionalValues") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConditionalValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConditionalValues") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemoteConfigParameter) MarshalJSON() ([]byte, error) { +func (s RemoteConfigParameter) MarshalJSON() ([]byte, error) { type NoMethod RemoteConfigParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemoteConfigParameterValue: A RemoteConfigParameter's "value" (either -// the default value, or the value +// RemoteConfigParameterValue: A RemoteConfigParameter's "value" (either the +// default value, or the value // associated with a condition name) is either a string, or // the -// "use_in_app_default" indicator (which means to leave out the -// parameter from -// the returned map that is the output of the parameter -// fetch). +// "use_in_app_default" indicator (which means to leave out the parameter +// from +// the returned map that is the output of the parameter fetch). // We represent the "use_in_app_default" as a bool, but (when using the // boolean // instead of the string) it should always be true. @@ -348,36 +328,26 @@ type RemoteConfigParameterValue struct { // UseInAppDefault: if true, omit the parameter from the map of fetched // parameter values UseInAppDefault bool `json:"useInAppDefault,omitempty"` - // Value: the string to set the parameter to Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "UseInAppDefault") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "UseInAppDefault") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "UseInAppDefault") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RemoteConfigParameterValue) MarshalJSON() ([]byte, error) { +func (s RemoteConfigParameterValue) MarshalJSON() ([]byte, error) { type NoMethod RemoteConfigParameterValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "firebaseremoteconfig.projects.getRemoteConfig": - type ProjectsGetRemoteConfigCall struct { s *Service projectid string @@ -389,9 +359,11 @@ type ProjectsGetRemoteConfigCall struct { // GetRemoteConfig: Get the latest version Remote Configuration for a // project. -// Returns the RemoteConfig as the payload, and also the eTag as -// a +// Returns the RemoteConfig as the payload, and also the eTag as a // response header. +// +// - project: The GMP project identifier. +// See note at the beginning of this file regarding project ids. func (r *ProjectsService) GetRemoteConfig(projectid string) *ProjectsGetRemoteConfigCall { c := &ProjectsGetRemoteConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectid = projectid @@ -399,33 +371,29 @@ func (r *ProjectsService) GetRemoteConfig(projectid string) *ProjectsGetRemoteCo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetRemoteConfigCall) Fields(s ...googleapi.Field) *ProjectsGetRemoteConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetRemoteConfigCall) IfNoneMatch(entityTag string) *ProjectsGetRemoteConfigCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetRemoteConfigCall) Context(ctx context.Context) *ProjectsGetRemoteConfigCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetRemoteConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -434,12 +402,7 @@ func (c *ProjectsGetRemoteConfigCall) Header() http.Header { } func (c *ProjectsGetRemoteConfigCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -456,16 +419,14 @@ func (c *ProjectsGetRemoteConfigCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.projectid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseremoteconfig.projects.getRemoteConfig" call. -// Exactly one of *RemoteConfig or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemoteConfig.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemoteConfig.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsGetRemoteConfigCall) Do(opts ...googleapi.CallOption) (*RemoteConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -473,17 +434,17 @@ func (c *ProjectsGetRemoteConfigCall) Do(opts ...googleapi.CallOption) (*RemoteC if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemoteConfig{ ServerResponse: googleapi.ServerResponse{ @@ -496,33 +457,8 @@ func (c *ProjectsGetRemoteConfigCall) Do(opts ...googleapi.CallOption) (*RemoteC return nil, err } return ret, nil - // { - // "description": "Get the latest version Remote Configuration for a project.\nReturns the RemoteConfig as the payload, and also the eTag as a\nresponse header.", - // "flatPath": "v1/projects/{projectsId}/remoteConfig", - // "httpMethod": "GET", - // "id": "firebaseremoteconfig.projects.getRemoteConfig", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "project": { - // "description": "The GMP project identifier. Required.\nSee note at the beginning of this file regarding project ids.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+project}/remoteConfig", - // "response": { - // "$ref": "RemoteConfig" - // } - // } - } -// method id "firebaseremoteconfig.projects.updateRemoteConfig": - type ProjectsUpdateRemoteConfigCall struct { s *Service projectid string @@ -534,34 +470,29 @@ type ProjectsUpdateRemoteConfigCall struct { // UpdateRemoteConfig: Update a RemoteConfig. We treat this as an // always-existing -// resource (when it is not found in our data store, we treat it as -// version -// 0, a template with zero conditions and zero parameters). Hence there -// are -// no Create or Delete operations. Returns the updated template -// when +// resource (when it is not found in our data store, we treat it as version +// 0, a template with zero conditions and zero parameters). Hence there are +// no Create or Delete operations. Returns the updated template when // successful (and the updated eTag as a response header), or an error // if // things go wrong. // Possible error messages: -// * VALIDATION_ERROR (HTTP status 400) with additional details if -// the +// * VALIDATION_ERROR (HTTP status 400) with additional details if the // template being passed in can not be validated. // * AUTHENTICATION_ERROR (HTTP status 401) if the request can not // be // authenticate (e.g. no access token, or invalid access token). -// * AUTHORIZATION_ERROR (HTTP status 403) if the request can not -// be -// authorized (e.g. the user has no access to the specified project -// id). -// * VERSION_MISMATCH (HTTP status 412) when trying to update when -// the -// expected eTag (passed in via the "If-match" header) is not specified, -// or +// * AUTHORIZATION_ERROR (HTTP status 403) if the request can not be +// authorized (e.g. the user has no access to the specified project id). +// * VERSION_MISMATCH (HTTP status 412) when trying to update when the +// expected eTag (passed in via the "If-match" header) is not specified, or // is specified but does does not match the current eTag. // * Internal error (HTTP status 500) for Database problems or other // internal // errors. +// +// - project: The GMP project identifier. +// See note at the beginning of this file regarding project ids. func (r *ProjectsService) UpdateRemoteConfig(projectid string, remoteconfig *RemoteConfig) *ProjectsUpdateRemoteConfigCall { c := &ProjectsUpdateRemoteConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectid = projectid @@ -571,16 +502,15 @@ func (r *ProjectsService) UpdateRemoteConfig(projectid string, remoteconfig *Rem // ValidateOnly sets the optional parameter "validateOnly": Defaults to // false (UpdateRemoteConfig call should -// update the backend if there are no validation/interal errors). May be -// set +// update the backend if there are no validation/interal errors). May be set // to true to indicate that, should no validation errors // occur, // the call should return a "200 OK" instead of performing the update. // Note // that other error messages (500 Internal Error, 412 Version Mismatch, // etc) -// may still result after flipping to false, even if -// getting a +// may still result after flipping to false, even if getting +// a // "200 OK" when calling with true. func (c *ProjectsUpdateRemoteConfigCall) ValidateOnly(validateOnly bool) *ProjectsUpdateRemoteConfigCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) @@ -588,23 +518,21 @@ func (c *ProjectsUpdateRemoteConfigCall) ValidateOnly(validateOnly bool) *Projec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsUpdateRemoteConfigCall) Fields(s ...googleapi.Field) *ProjectsUpdateRemoteConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsUpdateRemoteConfigCall) Context(ctx context.Context) *ProjectsUpdateRemoteConfigCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsUpdateRemoteConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -613,18 +541,12 @@ func (c *ProjectsUpdateRemoteConfigCall) Header() http.Header { } func (c *ProjectsUpdateRemoteConfigCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.remoteconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}/remoteConfig") @@ -637,16 +559,14 @@ func (c *ProjectsUpdateRemoteConfigCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.projectid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaseremoteconfig.projects.updateRemoteConfig" call. -// Exactly one of *RemoteConfig or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RemoteConfig.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RemoteConfig.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsUpdateRemoteConfigCall) Do(opts ...googleapi.CallOption) (*RemoteConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -654,17 +574,17 @@ func (c *ProjectsUpdateRemoteConfigCall) Do(opts ...googleapi.CallOption) (*Remo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RemoteConfig{ ServerResponse: googleapi.ServerResponse{ @@ -677,35 +597,4 @@ func (c *ProjectsUpdateRemoteConfigCall) Do(opts ...googleapi.CallOption) (*Remo return nil, err } return ret, nil - // { - // "description": "Update a RemoteConfig. We treat this as an always-existing\nresource (when it is not found in our data store, we treat it as version\n0, a template with zero conditions and zero parameters). Hence there are\nno Create or Delete operations. Returns the updated template when\nsuccessful (and the updated eTag as a response header), or an error if\nthings go wrong.\nPossible error messages:\n* VALIDATION_ERROR (HTTP status 400) with additional details if the\ntemplate being passed in can not be validated.\n* AUTHENTICATION_ERROR (HTTP status 401) if the request can not be\nauthenticate (e.g. no access token, or invalid access token).\n* AUTHORIZATION_ERROR (HTTP status 403) if the request can not be\nauthorized (e.g. the user has no access to the specified project id).\n* VERSION_MISMATCH (HTTP status 412) when trying to update when the\nexpected eTag (passed in via the \"If-match\" header) is not specified, or\nis specified but does does not match the current eTag.\n* Internal error (HTTP status 500) for Database problems or other internal\nerrors.", - // "flatPath": "v1/projects/{projectsId}/remoteConfig", - // "httpMethod": "PUT", - // "id": "firebaseremoteconfig.projects.updateRemoteConfig", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "project": { - // "description": "The GMP project identifier. Required.\nSee note at the beginning of this file regarding project ids.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "validateOnly": { - // "description": "Optional. Defaults to \u003ccode\u003efalse\u003c/code\u003e (UpdateRemoteConfig call should\nupdate the backend if there are no validation/interal errors). May be set\nto \u003ccode\u003etrue\u003c/code\u003e to indicate that, should no validation errors occur,\nthe call should return a \"200 OK\" instead of performing the update. Note\nthat other error messages (500 Internal Error, 412 Version Mismatch, etc)\nmay still result after flipping to \u003ccode\u003efalse\u003c/code\u003e, even if getting a\n\"200 OK\" when calling with \u003ccode\u003etrue\u003c/code\u003e.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1/{+project}/remoteConfig", - // "request": { - // "$ref": "RemoteConfig" - // }, - // "response": { - // "$ref": "RemoteConfig" - // } - // } - } diff --git a/firebaserules/v1/firebaserules-gen.go b/firebaserules/v1/firebaserules-gen.go index df0cab33450..4262b6b694f 100644 --- a/firebaserules/v1/firebaserules-gen.go +++ b/firebaserules/v1/firebaserules-gen.go @@ -1019,7 +1019,7 @@ func (c *ProjectsTestCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.test" call. @@ -1135,7 +1135,7 @@ func (c *ProjectsReleasesCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.releases.create" call. @@ -1231,7 +1231,7 @@ func (c *ProjectsReleasesDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.releases.delete" call. @@ -1339,7 +1339,7 @@ func (c *ProjectsReleasesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.releases.get" call. @@ -1469,7 +1469,7 @@ func (c *ProjectsReleasesGetExecutableCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.releases.getExecutable" call. @@ -1615,7 +1615,7 @@ func (c *ProjectsReleasesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.releases.list" call. @@ -1741,7 +1741,7 @@ func (c *ProjectsReleasesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.releases.patch" call. @@ -1847,7 +1847,7 @@ func (c *ProjectsRulesetsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.rulesets.create" call. @@ -1944,7 +1944,7 @@ func (c *ProjectsRulesetsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.rulesets.delete" call. @@ -2052,7 +2052,7 @@ func (c *ProjectsRulesetsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.rulesets.get" call. @@ -2188,7 +2188,7 @@ func (c *ProjectsRulesetsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebaserules.projects.rulesets.list" call. diff --git a/firebasestorage/v1beta/firebasestorage-gen.go b/firebasestorage/v1beta/firebasestorage-gen.go index 1346c8fdd1c..3f8d8bbfdb7 100644 --- a/firebasestorage/v1beta/firebasestorage-gen.go +++ b/firebasestorage/v1beta/firebasestorage-gen.go @@ -424,7 +424,7 @@ func (c *ProjectsBucketsAddFirebaseCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasestorage.projects.buckets.addFirebase" call. @@ -533,7 +533,7 @@ func (c *ProjectsBucketsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasestorage.projects.buckets.get" call. @@ -657,7 +657,7 @@ func (c *ProjectsBucketsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasestorage.projects.buckets.list" call. @@ -783,7 +783,7 @@ func (c *ProjectsBucketsRemoveFirebaseCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firebasestorage.projects.buckets.removeFirebase" call. diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 5dc594ed023..3f051bc72ac 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -4355,7 +4355,7 @@ func (c *ProjectsDatabasesBulkDeleteDocumentsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.bulkDeleteDocuments" call. @@ -4468,7 +4468,7 @@ func (c *ProjectsDatabasesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.create" call. @@ -4572,7 +4572,7 @@ func (c *ProjectsDatabasesDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.delete" call. @@ -4683,7 +4683,7 @@ func (c *ProjectsDatabasesExportDocumentsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.exportDocuments" call. @@ -4791,7 +4791,7 @@ func (c *ProjectsDatabasesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.get" call. @@ -4899,7 +4899,7 @@ func (c *ProjectsDatabasesImportDocumentsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.importDocuments" call. @@ -5014,7 +5014,7 @@ func (c *ProjectsDatabasesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.list" call. @@ -5124,7 +5124,7 @@ func (c *ProjectsDatabasesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.patch" call. @@ -5236,7 +5236,7 @@ func (c *ProjectsDatabasesRestoreCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.restore" call. @@ -5341,7 +5341,7 @@ func (c *ProjectsDatabasesBackupSchedulesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.backupSchedules.create" call. @@ -5438,7 +5438,7 @@ func (c *ProjectsDatabasesBackupSchedulesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.backupSchedules.delete" call. @@ -5546,7 +5546,7 @@ func (c *ProjectsDatabasesBackupSchedulesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.backupSchedules.get" call. @@ -5655,7 +5655,7 @@ func (c *ProjectsDatabasesBackupSchedulesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.backupSchedules.list" call. @@ -5767,7 +5767,7 @@ func (c *ProjectsDatabasesBackupSchedulesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.backupSchedules.patch" call. @@ -5877,7 +5877,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.fields.get" call. @@ -6016,7 +6016,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.fields.list" call. @@ -6173,7 +6173,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.fields.patch" call. @@ -6280,7 +6280,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.indexes.create" call. @@ -6378,7 +6378,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.indexes.delete" call. @@ -6487,7 +6487,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.indexes.get" call. @@ -6619,7 +6619,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.indexes.list" call. @@ -6744,7 +6744,7 @@ func (c *ProjectsDatabasesDocumentsBatchGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.batchGet" call. @@ -6852,7 +6852,7 @@ func (c *ProjectsDatabasesDocumentsBatchWriteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.batchWrite" call. @@ -6955,7 +6955,7 @@ func (c *ProjectsDatabasesDocumentsBeginTransactionCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.beginTransaction" call. @@ -7058,7 +7058,7 @@ func (c *ProjectsDatabasesDocumentsCommitCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.commit" call. @@ -7183,7 +7183,7 @@ func (c *ProjectsDatabasesDocumentsCreateDocumentCall) doRequest(alt string) (*h "parent": c.parent, "collectionId": c.collectionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.createDocument" call. @@ -7295,7 +7295,7 @@ func (c *ProjectsDatabasesDocumentsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.delete" call. @@ -7427,7 +7427,7 @@ func (c *ProjectsDatabasesDocumentsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.get" call. @@ -7607,7 +7607,7 @@ func (c *ProjectsDatabasesDocumentsListCall) doRequest(alt string) (*http.Respon "parent": c.parent, "collectionId": c.collectionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.list" call. @@ -7733,7 +7733,7 @@ func (c *ProjectsDatabasesDocumentsListCollectionIdsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.listCollectionIds" call. @@ -7935,7 +7935,7 @@ func (c *ProjectsDatabasesDocumentsListDocumentsCall) doRequest(alt string) (*ht "parent": c.parent, "collectionId": c.collectionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.listDocuments" call. @@ -8060,7 +8060,7 @@ func (c *ProjectsDatabasesDocumentsListenCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.listen" call. @@ -8167,7 +8167,7 @@ func (c *ProjectsDatabasesDocumentsPartitionQueryCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.partitionQuery" call. @@ -8323,7 +8323,7 @@ func (c *ProjectsDatabasesDocumentsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.patch" call. @@ -8425,7 +8425,7 @@ func (c *ProjectsDatabasesDocumentsRollbackCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.rollback" call. @@ -8534,7 +8534,7 @@ func (c *ProjectsDatabasesDocumentsRunAggregationQueryCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.runAggregationQuery" call. @@ -8640,7 +8640,7 @@ func (c *ProjectsDatabasesDocumentsRunQueryCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.runQuery" call. @@ -8745,7 +8745,7 @@ func (c *ProjectsDatabasesDocumentsWriteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.write" call. @@ -8854,7 +8854,7 @@ func (c *ProjectsDatabasesOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.operations.cancel" call. @@ -8952,7 +8952,7 @@ func (c *ProjectsDatabasesOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.operations.delete" call. @@ -9061,7 +9061,7 @@ func (c *ProjectsDatabasesOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.operations.get" call. @@ -9190,7 +9190,7 @@ func (c *ProjectsDatabasesOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.operations.list" call. @@ -9319,7 +9319,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.locations.get" call. @@ -9450,7 +9450,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.locations.list" call. @@ -9568,7 +9568,7 @@ func (c *ProjectsLocationsBackupsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.locations.backups.delete" call. @@ -9676,7 +9676,7 @@ func (c *ProjectsLocationsBackupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.locations.backups.get" call. @@ -9799,7 +9799,7 @@ func (c *ProjectsLocationsBackupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.locations.backups.list" call. diff --git a/firestore/v1beta1/firestore-gen.go b/firestore/v1beta1/firestore-gen.go index 9302eeab73e..bdbf9913cc4 100644 --- a/firestore/v1beta1/firestore-gen.go +++ b/firestore/v1beta1/firestore-gen.go @@ -3209,7 +3209,7 @@ func (c *ProjectsDatabasesExportDocumentsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.exportDocuments" call. @@ -3317,7 +3317,7 @@ func (c *ProjectsDatabasesImportDocumentsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.importDocuments" call. @@ -3421,7 +3421,7 @@ func (c *ProjectsDatabasesDocumentsBatchGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.batchGet" call. @@ -3529,7 +3529,7 @@ func (c *ProjectsDatabasesDocumentsBatchWriteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.batchWrite" call. @@ -3632,7 +3632,7 @@ func (c *ProjectsDatabasesDocumentsBeginTransactionCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.beginTransaction" call. @@ -3735,7 +3735,7 @@ func (c *ProjectsDatabasesDocumentsCommitCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.commit" call. @@ -3860,7 +3860,7 @@ func (c *ProjectsDatabasesDocumentsCreateDocumentCall) doRequest(alt string) (*h "parent": c.parent, "collectionId": c.collectionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.createDocument" call. @@ -3972,7 +3972,7 @@ func (c *ProjectsDatabasesDocumentsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.delete" call. @@ -4104,7 +4104,7 @@ func (c *ProjectsDatabasesDocumentsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.get" call. @@ -4284,7 +4284,7 @@ func (c *ProjectsDatabasesDocumentsListCall) doRequest(alt string) (*http.Respon "parent": c.parent, "collectionId": c.collectionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.list" call. @@ -4410,7 +4410,7 @@ func (c *ProjectsDatabasesDocumentsListCollectionIdsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.listCollectionIds" call. @@ -4612,7 +4612,7 @@ func (c *ProjectsDatabasesDocumentsListDocumentsCall) doRequest(alt string) (*ht "parent": c.parent, "collectionId": c.collectionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.listDocuments" call. @@ -4737,7 +4737,7 @@ func (c *ProjectsDatabasesDocumentsListenCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.listen" call. @@ -4844,7 +4844,7 @@ func (c *ProjectsDatabasesDocumentsPartitionQueryCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.partitionQuery" call. @@ -5000,7 +5000,7 @@ func (c *ProjectsDatabasesDocumentsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.patch" call. @@ -5102,7 +5102,7 @@ func (c *ProjectsDatabasesDocumentsRollbackCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.rollback" call. @@ -5211,7 +5211,7 @@ func (c *ProjectsDatabasesDocumentsRunAggregationQueryCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.runAggregationQuery" call. @@ -5317,7 +5317,7 @@ func (c *ProjectsDatabasesDocumentsRunQueryCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.runQuery" call. @@ -5422,7 +5422,7 @@ func (c *ProjectsDatabasesDocumentsWriteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.documents.write" call. @@ -5531,7 +5531,7 @@ func (c *ProjectsDatabasesIndexesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.indexes.create" call. @@ -5628,7 +5628,7 @@ func (c *ProjectsDatabasesIndexesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.indexes.delete" call. @@ -5736,7 +5736,7 @@ func (c *ProjectsDatabasesIndexesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.indexes.get" call. @@ -5865,7 +5865,7 @@ func (c *ProjectsDatabasesIndexesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.indexes.list" call. diff --git a/firestore/v1beta2/firestore-gen.go b/firestore/v1beta2/firestore-gen.go index ee916106fcc..80110cdc9a9 100644 --- a/firestore/v1beta2/firestore-gen.go +++ b/firestore/v1beta2/firestore-gen.go @@ -1127,7 +1127,7 @@ func (c *ProjectsDatabasesExportDocumentsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.exportDocuments" call. @@ -1235,7 +1235,7 @@ func (c *ProjectsDatabasesImportDocumentsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.importDocuments" call. @@ -1345,7 +1345,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.fields.get" call. @@ -1484,7 +1484,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.fields.list" call. @@ -1643,7 +1643,7 @@ func (c *ProjectsDatabasesCollectionGroupsFieldsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.fields.patch" call. @@ -1750,7 +1750,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.indexes.create" call. @@ -1848,7 +1848,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.indexes.delete" call. @@ -1957,7 +1957,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.indexes.get" call. @@ -2089,7 +2089,7 @@ func (c *ProjectsDatabasesCollectionGroupsIndexesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "firestore.projects.databases.collectionGroups.indexes.list" call. diff --git a/fitness/v1/fitness-gen.go b/fitness/v1/fitness-gen.go index c185c7f6047..d547e914bdd 100644 --- a/fitness/v1/fitness-gen.go +++ b/fitness/v1/fitness-gen.go @@ -1290,7 +1290,7 @@ func (c *UsersDataSourcesCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.dataSources.create" call. @@ -1391,7 +1391,7 @@ func (c *UsersDataSourcesDeleteCall) doRequest(alt string) (*http.Response, erro "userId": c.userId, "dataSourceId": c.dataSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.dataSources.delete" call. @@ -1503,7 +1503,7 @@ func (c *UsersDataSourcesGetCall) doRequest(alt string) (*http.Response, error) "userId": c.userId, "dataSourceId": c.dataSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.dataSources.get" call. @@ -1622,7 +1622,7 @@ func (c *UsersDataSourcesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.dataSources.list" call. @@ -1731,7 +1731,7 @@ func (c *UsersDataSourcesUpdateCall) doRequest(alt string) (*http.Response, erro "userId": c.userId, "dataSourceId": c.dataSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.dataSources.update" call. @@ -1860,7 +1860,7 @@ func (c *UsersDataSourcesDataPointChangesListCall) doRequest(alt string) (*http. "userId": c.userId, "dataSourceId": c.dataSourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.dataSources.dataPointChanges.list" call. @@ -1995,7 +1995,7 @@ func (c *UsersDataSourcesDatasetsDeleteCall) doRequest(alt string) (*http.Respon "dataSourceId": c.dataSourceId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.dataSources.datasets.delete" call. @@ -2117,7 +2117,7 @@ func (c *UsersDataSourcesDatasetsGetCall) doRequest(alt string) (*http.Response, "dataSourceId": c.dataSourceId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.dataSources.datasets.get" call. @@ -2253,7 +2253,7 @@ func (c *UsersDataSourcesDatasetsPatchCall) doRequest(alt string) (*http.Respons "dataSourceId": c.dataSourceId, "datasetId": c.datasetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.dataSources.datasets.patch" call. @@ -2378,7 +2378,7 @@ func (c *UsersDatasetAggregateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.dataset.aggregate" call. @@ -2479,7 +2479,7 @@ func (c *UsersSessionsDeleteCall) doRequest(alt string) (*http.Response, error) "userId": c.userId, "sessionId": c.sessionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.sessions.delete" call. @@ -2611,7 +2611,7 @@ func (c *UsersSessionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.sessions.list" call. @@ -2739,7 +2739,7 @@ func (c *UsersSessionsUpdateCall) doRequest(alt string) (*http.Response, error) "userId": c.userId, "sessionId": c.sessionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fitness.users.sessions.update" call. diff --git a/forms/v1/forms-gen.go b/forms/v1/forms-gen.go index a51de11cc03..6882df6562a 100644 --- a/forms/v1/forms-gen.go +++ b/forms/v1/forms-gen.go @@ -1959,7 +1959,7 @@ func (c *FormsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "formId": c.formId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "forms.forms.batchUpdate" call. @@ -2060,7 +2060,7 @@ func (c *FormsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "forms.forms.create" call. @@ -2167,7 +2167,7 @@ func (c *FormsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "formId": c.formId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "forms.forms.get" call. @@ -2278,7 +2278,7 @@ func (c *FormsResponsesGetCall) doRequest(alt string) (*http.Response, error) { "formId": c.formId, "responseId": c.responseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "forms.forms.responses.get" call. @@ -2413,7 +2413,7 @@ func (c *FormsResponsesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "formId": c.formId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "forms.forms.responses.list" call. @@ -2539,7 +2539,7 @@ func (c *FormsWatchesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "formId": c.formId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "forms.forms.watches.create" call. @@ -2638,7 +2638,7 @@ func (c *FormsWatchesDeleteCall) doRequest(alt string) (*http.Response, error) { "formId": c.formId, "watchId": c.watchId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "forms.forms.watches.delete" call. @@ -2747,7 +2747,7 @@ func (c *FormsWatchesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "formId": c.formId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "forms.forms.watches.list" call. @@ -2857,7 +2857,7 @@ func (c *FormsWatchesRenewCall) doRequest(alt string) (*http.Response, error) { "formId": c.formId, "watchId": c.watchId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "forms.forms.watches.renew" call. diff --git a/fusiontables/v1/fusiontables-gen.go b/fusiontables/v1/fusiontables-gen.go index 44b73ca0c51..319f0c20788 100644 --- a/fusiontables/v1/fusiontables-gen.go +++ b/fusiontables/v1/fusiontables-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/fusiontables // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // fusiontablesService, err := fusiontables.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // fusiontablesService, err := fusiontables.NewService(ctx, option.WithScopes(fusiontables.FusiontablesReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // fusiontablesService, err := fusiontables.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // fusiontablesService, err := fusiontables.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package fusiontables // import "google.golang.org/api/fusiontables/v1" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "fusiontables:v1" const apiName = "fusiontables" const apiVersion = "v1" const basePath = "https://www.googleapis.com/fusiontables/v1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/fusiontables/v1/" // OAuth2 scopes used by this API. const ( @@ -89,12 +108,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -207,50 +229,39 @@ type TemplateService struct { s *Service } -// Bucket: Specifies the minimum and maximum values, the color, opacity, -// icon and weight of a bucket within a StyleSetting. +// Bucket: Specifies the minimum and maximum values, the color, opacity, icon +// and weight of a bucket within a StyleSetting. type Bucket struct { // Color: Color of line or the interior of a polygon in #RRGGBB format. Color string `json:"color,omitempty"` - // Icon: Icon name used for a point. Icon string `json:"icon,omitempty"` - - // Max: Maximum value in the selected column for a row to be styled - // according to the bucket color, opacity, icon, or weight. + // Max: Maximum value in the selected column for a row to be styled according + // to the bucket color, opacity, icon, or weight. Max float64 `json:"max,omitempty"` - - // Min: Minimum value in the selected column for a row to be styled - // according to the bucket color, opacity, icon, or weight. + // Min: Minimum value in the selected column for a row to be styled according + // to the bucket color, opacity, icon, or weight. Min float64 `json:"min,omitempty"` - // Opacity: Opacity of the color: 0.0 (transparent) to 1.0 (opaque). Opacity float64 `json:"opacity,omitempty"` - // Weight: Width of a line (in pixels). Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Color") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Color") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Color") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Bucket) MarshalJSON() ([]byte, error) { +func (s Bucket) MarshalJSON() ([]byte, error) { type NoMethod Bucket - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Bucket) UnmarshalJSON(data []byte) error { @@ -273,273 +284,209 @@ func (s *Bucket) UnmarshalJSON(data []byte) error { // Column: Specifies the id, name and type of a column in a table. type Column struct { - // BaseColumn: Optional identifier of the base column. If present, this - // column is derived from the specified base column. + // BaseColumn: Optional identifier of the base column. If present, this column + // is derived from the specified base column. BaseColumn *ColumnBaseColumn `json:"baseColumn,omitempty"` - // ColumnId: Identifier for the column. ColumnId int64 `json:"columnId,omitempty"` - // Description: Optional column description. Description string `json:"description,omitempty"` - - // GraphPredicate: Optional column predicate. Used to map table to graph - // data model (subject,predicate,object) See + // GraphPredicate: Optional column predicate. Used to map table to graph data + // model (subject,predicate,object) See // http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model GraphPredicate string `json:"graph_predicate,omitempty"` - // Kind: Type name: a template for an individual column. Kind string `json:"kind,omitempty"` - // Name: Required name of the column. Name string `json:"name,omitempty"` - // Type: Required type of the column. Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BaseColumn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BaseColumn") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BaseColumn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Column) MarshalJSON() ([]byte, error) { +func (s Column) MarshalJSON() ([]byte, error) { type NoMethod Column - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ColumnBaseColumn: Optional identifier of the base column. If present, -// this column is derived from the specified base column. +// ColumnBaseColumn: Optional identifier of the base column. If present, this +// column is derived from the specified base column. type ColumnBaseColumn struct { - // ColumnId: The id of the column in the base table from which this - // column is derived. + // ColumnId: The id of the column in the base table from which this column is + // derived. ColumnId int64 `json:"columnId,omitempty"` - - // TableIndex: Offset to the entry in the list of base tables in the - // table definition. + // TableIndex: Offset to the entry in the list of base tables in the table + // definition. TableIndex int64 `json:"tableIndex,omitempty"` - // ForceSendFields is a list of field names (e.g. "ColumnId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ColumnId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ColumnId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ColumnBaseColumn) MarshalJSON() ([]byte, error) { +func (s ColumnBaseColumn) MarshalJSON() ([]byte, error) { type NoMethod ColumnBaseColumn - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ColumnList: Represents a list of columns in a table. type ColumnList struct { // Items: List of all requested columns. Items []*Column `json:"items,omitempty"` - // Kind: Type name: a list of all columns. Kind string `json:"kind,omitempty"` - - // NextPageToken: Token used to access the next page of this result. No - // token is displayed if there are no more pages left. + // NextPageToken: Token used to access the next page of this result. No token + // is displayed if there are no more pages left. NextPageToken string `json:"nextPageToken,omitempty"` - // TotalItems: Total number of columns for the table. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ColumnList) MarshalJSON() ([]byte, error) { +func (s ColumnList) MarshalJSON() ([]byte, error) { type NoMethod ColumnList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Geometry: Represents a Geometry object. type Geometry struct { // Geometries: The list of geometries in this geometry collection. Geometries []interface{} `json:"geometries,omitempty"` - - Geometry interface{} `json:"geometry,omitempty"` - + Geometry interface{} `json:"geometry,omitempty"` // Type: Type: A collection of geometries. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Geometries") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Geometries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Geometries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Geometry) MarshalJSON() ([]byte, error) { +func (s Geometry) MarshalJSON() ([]byte, error) { type NoMethod Geometry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Import: Represents an import request. type Import struct { // Kind: Type name: a template for an import request. Kind string `json:"kind,omitempty"` - // NumRowsReceived: The number of rows received from the import request. NumRowsReceived int64 `json:"numRowsReceived,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Import) MarshalJSON() ([]byte, error) { +func (s Import) MarshalJSON() ([]byte, error) { type NoMethod Import - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Line: Represents a line geometry. type Line struct { // Coordinates: The coordinates that define the line. Coordinates [][]float64 `json:"coordinates,omitempty"` - // Type: Type: A line geometry. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Coordinates") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Coordinates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Coordinates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Line) MarshalJSON() ([]byte, error) { +func (s Line) MarshalJSON() ([]byte, error) { type NoMethod Line - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LineStyle: Represents a LineStyle within a StyleSetting type LineStyle struct { // StrokeColor: Color of the line in #RRGGBB format. StrokeColor string `json:"strokeColor,omitempty"` - - // StrokeColorStyler: Column-value, gradient or buckets styler that is - // used to determine the line color and opacity. + // StrokeColorStyler: Column-value, gradient or buckets styler that is used to + // determine the line color and opacity. StrokeColorStyler *StyleFunction `json:"strokeColorStyler,omitempty"` - - // StrokeOpacity: Opacity of the line : 0.0 (transparent) to 1.0 - // (opaque). + // StrokeOpacity: Opacity of the line : 0.0 (transparent) to 1.0 (opaque). StrokeOpacity float64 `json:"strokeOpacity,omitempty"` - // StrokeWeight: Width of the line in pixels. StrokeWeight int64 `json:"strokeWeight,omitempty"` - - // StrokeWeightStyler: Column-value or bucket styler that is used to - // determine the width of the line. + // StrokeWeightStyler: Column-value or bucket styler that is used to determine + // the width of the line. StrokeWeightStyler *StyleFunction `json:"strokeWeightStyler,omitempty"` - // ForceSendFields is a list of field names (e.g. "StrokeColor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StrokeColor") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StrokeColor") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LineStyle) MarshalJSON() ([]byte, error) { +func (s LineStyle) MarshalJSON() ([]byte, error) { type NoMethod LineStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *LineStyle) UnmarshalJSON(data []byte) error { @@ -560,31 +507,41 @@ func (s *LineStyle) UnmarshalJSON(data []byte) error { type Point struct { // Coordinates: The coordinates that define the point. Coordinates []float64 `json:"coordinates,omitempty"` - // Type: Point: A point geometry. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Coordinates") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Coordinates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Coordinates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Point) MarshalJSON() ([]byte, error) { +func (s Point) MarshalJSON() ([]byte, error) { type NoMethod Point - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *Point) UnmarshalJSON(data []byte) error { + type NoMethod Point + var s1 struct { + Coordinates []gensupport.JSONFloat64 `json:"coordinates"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Coordinates = make([]float64, len(s1.Coordinates)) + for i := range s1.Coordinates { + s.Coordinates[i] = float64(s1.Coordinates[i]) + } + return nil } // PointStyle: Represents a PointStyle within a StyleSetting @@ -592,117 +549,90 @@ type PointStyle struct { // IconName: Name of the icon. Use values defined in // http://www.google.com/fusiontables/DataSource?dsrcid=308519 IconName string `json:"iconName,omitempty"` - - // IconStyler: Column or a bucket value from which the icon name is to - // be determined. + // IconStyler: Column or a bucket value from which the icon name is to be + // determined. IconStyler *StyleFunction `json:"iconStyler,omitempty"` - // ForceSendFields is a list of field names (e.g. "IconName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IconName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IconName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PointStyle) MarshalJSON() ([]byte, error) { +func (s PointStyle) MarshalJSON() ([]byte, error) { type NoMethod PointStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Polygon: Represents a polygon object. type Polygon struct { // Coordinates: The coordinates that define the polygon. Coordinates [][][]float64 `json:"coordinates,omitempty"` - // Type: Type: A polygon geometry. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Coordinates") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Coordinates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Coordinates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Polygon) MarshalJSON() ([]byte, error) { +func (s Polygon) MarshalJSON() ([]byte, error) { type NoMethod Polygon - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PolygonStyle: Represents a PolygonStyle within a StyleSetting type PolygonStyle struct { // FillColor: Color of the interior of the polygon in #RRGGBB format. FillColor string `json:"fillColor,omitempty"` - - // FillColorStyler: Column-value, gradient, or bucket styler that is - // used to determine the interior color and opacity of the polygon. + // FillColorStyler: Column-value, gradient, or bucket styler that is used to + // determine the interior color and opacity of the polygon. FillColorStyler *StyleFunction `json:"fillColorStyler,omitempty"` - - // FillOpacity: Opacity of the interior of the polygon: 0.0 - // (transparent) to 1.0 (opaque). + // FillOpacity: Opacity of the interior of the polygon: 0.0 (transparent) to + // 1.0 (opaque). FillOpacity float64 `json:"fillOpacity,omitempty"` - // StrokeColor: Color of the polygon border in #RRGGBB format. StrokeColor string `json:"strokeColor,omitempty"` - - // StrokeColorStyler: Column-value, gradient or buckets styler that is - // used to determine the border color and opacity. + // StrokeColorStyler: Column-value, gradient or buckets styler that is used to + // determine the border color and opacity. StrokeColorStyler *StyleFunction `json:"strokeColorStyler,omitempty"` - - // StrokeOpacity: Opacity of the polygon border: 0.0 (transparent) to - // 1.0 (opaque). + // StrokeOpacity: Opacity of the polygon border: 0.0 (transparent) to 1.0 + // (opaque). StrokeOpacity float64 `json:"strokeOpacity,omitempty"` - // StrokeWeight: Width of the polyon border in pixels. StrokeWeight int64 `json:"strokeWeight,omitempty"` - - // StrokeWeightStyler: Column-value or bucket styler that is used to - // determine the width of the polygon border. + // StrokeWeightStyler: Column-value or bucket styler that is used to determine + // the width of the polygon border. StrokeWeightStyler *StyleFunction `json:"strokeWeightStyler,omitempty"` - // ForceSendFields is a list of field names (e.g. "FillColor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FillColor") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FillColor") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PolygonStyle) MarshalJSON() ([]byte, error) { +func (s PolygonStyle) MarshalJSON() ([]byte, error) { type NoMethod PolygonStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PolygonStyle) UnmarshalJSON(data []byte) error { @@ -725,122 +655,95 @@ func (s *PolygonStyle) UnmarshalJSON(data []byte) error { type Sqlresponse struct { // Columns: Columns in the table. Columns []string `json:"columns,omitempty"` - // Kind: Type name: a template for an individual table. Kind string `json:"kind,omitempty"` - - // Rows: The rows in the table. For each cell we print out whatever cell - // value (e.g., numeric, string) exists. Thus it is important that each - // cell contains only one value. + // Rows: The rows in the table. For each cell we print out whatever cell value + // (e.g., numeric, string) exists. Thus it is important that each cell contains + // only one value. Rows [][]interface{} `json:"rows,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Columns") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Columns") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Columns") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Columns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Sqlresponse) MarshalJSON() ([]byte, error) { +func (s Sqlresponse) MarshalJSON() ([]byte, error) { type NoMethod Sqlresponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StyleFunction: Represents a StyleFunction within a StyleSetting type StyleFunction struct { - // Buckets: Bucket function that assigns a style based on the range a - // column value falls into. + // Buckets: Bucket function that assigns a style based on the range a column + // value falls into. Buckets []*Bucket `json:"buckets,omitempty"` - // ColumnName: Name of the column whose value is used in the style. ColumnName string `json:"columnName,omitempty"` - - // Gradient: Gradient function that interpolates a range of colors based - // on column value. + // Gradient: Gradient function that interpolates a range of colors based on + // column value. Gradient *StyleFunctionGradient `json:"gradient,omitempty"` - - // Kind: Stylers can be one of three kinds: "fusiontables#fromColumn" if - // the column value is to be used as is, i.e., the column values can - // have colors in #RRGGBBAA format or integer line widths or icon names; - // "fusiontables#gradient" if the styling of the row is to be based on - // applying the gradient function on the column value; or - // "fusiontables#buckets" if the styling is to based on the bucket into - // which the the column value falls. + // Kind: Stylers can be one of three kinds: "fusiontables#fromColumn" if the + // column value is to be used as is, i.e., the column values can have colors in + // #RRGGBBAA format or integer line widths or icon names; + // "fusiontables#gradient" if the styling of the row is to be based on applying + // the gradient function on the column value; or "fusiontables#buckets" if the + // styling is to based on the bucket into which the the column value falls. Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buckets") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Buckets") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Buckets") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StyleFunction) MarshalJSON() ([]byte, error) { +func (s StyleFunction) MarshalJSON() ([]byte, error) { type NoMethod StyleFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StyleFunctionGradient: Gradient function that interpolates a range of -// colors based on column value. +// StyleFunctionGradient: Gradient function that interpolates a range of colors +// based on column value. type StyleFunctionGradient struct { // Colors: Array with two or more colors. Colors []*StyleFunctionGradientColors `json:"colors,omitempty"` - - // Max: Higher-end of the interpolation range: rows with this value will - // be assigned to colors[n-1]. + // Max: Higher-end of the interpolation range: rows with this value will be + // assigned to colors[n-1]. Max float64 `json:"max,omitempty"` - - // Min: Lower-end of the interpolation range: rows with this value will - // be assigned to colors[0]. + // Min: Lower-end of the interpolation range: rows with this value will be + // assigned to colors[0]. Min float64 `json:"min,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Colors") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Colors") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Colors") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StyleFunctionGradient) MarshalJSON() ([]byte, error) { +func (s StyleFunctionGradient) MarshalJSON() ([]byte, error) { type NoMethod StyleFunctionGradient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *StyleFunctionGradient) UnmarshalJSON(data []byte) error { @@ -862,31 +765,24 @@ func (s *StyleFunctionGradient) UnmarshalJSON(data []byte) error { type StyleFunctionGradientColors struct { // Color: Color in #RRGGBB format. Color string `json:"color,omitempty"` - // Opacity: Opacity of the color: 0.0 (transparent) to 1.0 (opaque). Opacity float64 `json:"opacity,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Color") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Color") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Color") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StyleFunctionGradientColors) MarshalJSON() ([]byte, error) { +func (s StyleFunctionGradientColors) MarshalJSON() ([]byte, error) { type NoMethod StyleFunctionGradientColors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *StyleFunctionGradientColors) UnmarshalJSON(data []byte) error { @@ -903,396 +799,298 @@ func (s *StyleFunctionGradientColors) UnmarshalJSON(data []byte) error { return nil } -// StyleSetting: Represents a complete StyleSettings object. The primary -// key is a combination of the tableId and a styleId. +// StyleSetting: Represents a complete StyleSettings object. The primary key is +// a combination of the tableId and a styleId. type StyleSetting struct { - // Kind: Type name: an individual style setting. A StyleSetting contains - // the style defintions for points, lines, and polygons in a table. - // Since a table can have any one or all of them, a style definition can - // have point, line and polygon style definitions. + // Kind: Type name: an individual style setting. A StyleSetting contains the + // style defintions for points, lines, and polygons in a table. Since a table + // can have any one or all of them, a style definition can have point, line and + // polygon style definitions. Kind string `json:"kind,omitempty"` - // MarkerOptions: Style definition for points in the table. MarkerOptions *PointStyle `json:"markerOptions,omitempty"` - // Name: Optional name for the style setting. Name string `json:"name,omitempty"` - // PolygonOptions: Style definition for polygons in the table. PolygonOptions *PolygonStyle `json:"polygonOptions,omitempty"` - // PolylineOptions: Style definition for lines in the table. PolylineOptions *LineStyle `json:"polylineOptions,omitempty"` - - // StyleId: Identifier for the style setting (unique only within - // tables). + // StyleId: Identifier for the style setting (unique only within tables). StyleId int64 `json:"styleId,omitempty"` - // TableId: Identifier for the table. TableId string `json:"tableId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StyleSetting) MarshalJSON() ([]byte, error) { +func (s StyleSetting) MarshalJSON() ([]byte, error) { type NoMethod StyleSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StyleSettingList: Represents a list of styles for a given table. type StyleSettingList struct { // Items: All requested style settings. Items []*StyleSetting `json:"items,omitempty"` - // Kind: Type name: in this case, a list of style settings. Kind string `json:"kind,omitempty"` - - // NextPageToken: Token used to access the next page of this result. No - // token is displayed if there are no more pages left. + // NextPageToken: Token used to access the next page of this result. No token + // is displayed if there are no more pages left. NextPageToken string `json:"nextPageToken,omitempty"` - // TotalItems: Total number of styles for the table. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StyleSettingList) MarshalJSON() ([]byte, error) { +func (s StyleSettingList) MarshalJSON() ([]byte, error) { type NoMethod StyleSettingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Table: Represents a table. Specifies the name, whether it is -// exportable, description, attribution, and attribution link. +// Table: Represents a table. Specifies the name, whether it is exportable, +// description, attribution, and attribution link. type Table struct { // Attribution: Optional attribution assigned to the table. Attribution string `json:"attribution,omitempty"` - // AttributionLink: Optional link for attribution. AttributionLink string `json:"attributionLink,omitempty"` - - // BaseTableIds: Optional base table identifier if this table is a view - // or merged table. + // BaseTableIds: Optional base table identifier if this table is a view or + // merged table. BaseTableIds []string `json:"baseTableIds,omitempty"` - // Columns: Columns in the table. Columns []*Column `json:"columns,omitempty"` - // Description: Optional description assigned to the table. Description string `json:"description,omitempty"` - // IsExportable: Variable for whether table is exportable. IsExportable bool `json:"isExportable,omitempty"` - // Kind: Type name: a template for an individual table. Kind string `json:"kind,omitempty"` - // Name: Name assigned to a table. Name string `json:"name,omitempty"` - - // Sql: Optional sql that encodes the table definition for derived - // tables. + // Sql: Optional sql that encodes the table definition for derived tables. Sql string `json:"sql,omitempty"` - // TableId: Encrypted unique alphanumeric identifier for the table. TableId string `json:"tableId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Attribution") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attribution") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attribution") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Table) MarshalJSON() ([]byte, error) { +func (s Table) MarshalJSON() ([]byte, error) { type NoMethod Table - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TableList: Represents a list of tables. type TableList struct { // Items: List of all requested tables. Items []*Table `json:"items,omitempty"` - // Kind: Type name: a list of all tables. Kind string `json:"kind,omitempty"` - - // NextPageToken: Token used to access the next page of this result. No - // token is displayed if there are no more pages left. + // NextPageToken: Token used to access the next page of this result. No token + // is displayed if there are no more pages left. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TableList) MarshalJSON() ([]byte, error) { +func (s TableList) MarshalJSON() ([]byte, error) { type NoMethod TableList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Task: Specifies the identifier, name, and type of a task in a table. type Task struct { // Kind: Type of the resource. This is always "fusiontables#task". Kind string `json:"kind,omitempty"` - // Progress: An indication of task progress. Progress string `json:"progress,omitempty"` - - // Started: false while the table is busy with some other task. true if - // this background task is currently running. + // Started: false while the table is busy with some other task. true if this + // background task is currently running. Started bool `json:"started,omitempty"` - // TaskId: Identifier for the task. TaskId int64 `json:"taskId,omitempty,string"` - - // Type: Type of background task. One of DELETE_ROWS Deletes one or - // more rows from the table. ADD_ROWS "Adds one or more rows to a table. - // Includes importing data into a new table and importing more rows into - // an existing table. ADD_COLUMN Adds a new column to the table. - // CHANGE_TYPE Changes the type of a column. + // Type: Type of background task. One of DELETE_ROWS Deletes one or more rows + // from the table. ADD_ROWS "Adds one or more rows to a table. Includes + // importing data into a new table and importing more rows into an existing + // table. ADD_COLUMN Adds a new column to the table. CHANGE_TYPE Changes the + // type of a column. Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Task) MarshalJSON() ([]byte, error) { +func (s Task) MarshalJSON() ([]byte, error) { type NoMethod Task - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TaskList: Represents a list of tasks for a table. type TaskList struct { // Items: List of all requested tasks. Items []*Task `json:"items,omitempty"` - // Kind: Type of the resource. This is always "fusiontables#taskList". Kind string `json:"kind,omitempty"` - - // NextPageToken: Token used to access the next page of this result. No - // token is displayed if there are no more pages left. + // NextPageToken: Token used to access the next page of this result. No token + // is displayed if there are no more pages left. NextPageToken string `json:"nextPageToken,omitempty"` - // TotalItems: Total number of tasks for the table. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TaskList) MarshalJSON() ([]byte, error) { +func (s TaskList) MarshalJSON() ([]byte, error) { type NoMethod TaskList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Template: Represents the contents of InfoWindow templates. type Template struct { - // AutomaticColumnNames: List of columns from which the template is to - // be automatically constructed. Only one of body or automaticColumns - // can be specified. + // AutomaticColumnNames: List of columns from which the template is to be + // automatically constructed. Only one of body or automaticColumns can be + // specified. AutomaticColumnNames []string `json:"automaticColumnNames,omitempty"` - - // Body: Body of the template. It contains HTML with {column_name} to - // insert values from a particular column. The body is sanitized to - // remove certain tags, e.g., script. Only one of body or - // automaticColumns can be specified. + // Body: Body of the template. It contains HTML with {column_name} to insert + // values from a particular column. The body is sanitized to remove certain + // tags, e.g., script. Only one of body or automaticColumns can be specified. Body string `json:"body,omitempty"` - - // Kind: Type name: a template for the info window contents. The - // template can either include an HTML body or a list of columns from - // which the template is computed automatically. + // Kind: Type name: a template for the info window contents. The template can + // either include an HTML body or a list of columns from which the template is + // computed automatically. Kind string `json:"kind,omitempty"` - // Name: Optional name assigned to a template. Name string `json:"name,omitempty"` - // TableId: Identifier for the table for which the template is defined. TableId string `json:"tableId,omitempty"` - - // TemplateId: Identifier for the template, unique within the context of - // a particular table. + // TemplateId: Identifier for the template, unique within the context of a + // particular table. TemplateId int64 `json:"templateId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AutomaticColumnNames") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AutomaticColumnNames") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutomaticColumnNames") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AutomaticColumnNames") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Template) MarshalJSON() ([]byte, error) { +func (s Template) MarshalJSON() ([]byte, error) { type NoMethod Template - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TemplateList: Represents a list of templates for a given table. type TemplateList struct { // Items: List of all requested templates. Items []*Template `json:"items,omitempty"` - // Kind: Type name: a list of all templates. Kind string `json:"kind,omitempty"` - - // NextPageToken: Token used to access the next page of this result. No - // token is displayed if there are no more pages left. + // NextPageToken: Token used to access the next page of this result. No token + // is displayed if there are no more pages left. NextPageToken string `json:"nextPageToken,omitempty"` - // TotalItems: Total number of templates for the table. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TemplateList) MarshalJSON() ([]byte, error) { +func (s TemplateList) MarshalJSON() ([]byte, error) { type NoMethod TemplateList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "fusiontables.column.delete": - type ColumnDeleteCall struct { s *Service tableId string @@ -1303,6 +1101,9 @@ type ColumnDeleteCall struct { } // Delete: Deletes the column. +// +// - columnId: Name or identifier for the column being deleted. +// - tableId: Table from which the column is being deleted. func (r *ColumnService) Delete(tableId string, columnId string) *ColumnDeleteCall { c := &ColumnDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -1311,23 +1112,21 @@ func (r *ColumnService) Delete(tableId string, columnId string) *ColumnDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnDeleteCall) Fields(s ...googleapi.Field) *ColumnDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnDeleteCall) Context(ctx context.Context) *ColumnDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1336,12 +1135,7 @@ func (c *ColumnDeleteCall) Header() http.Header { } func (c *ColumnDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1356,7 +1150,7 @@ func (c *ColumnDeleteCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "columnId": c.columnId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.delete" call. @@ -1368,40 +1162,10 @@ func (c *ColumnDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes the column.", - // "httpMethod": "DELETE", - // "id": "fusiontables.column.delete", - // "parameterOrder": [ - // "tableId", - // "columnId" - // ], - // "parameters": { - // "columnId": { - // "description": "Name or identifier for the column being deleted.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tableId": { - // "description": "Table from which the column is being deleted.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns/{columnId}", - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.column.get": +} type ColumnGetCall struct { s *Service @@ -1414,6 +1178,9 @@ type ColumnGetCall struct { } // Get: Retrieves a specific column by its id. +// +// - columnId: Name or identifier for the column that is being requested. +// - tableId: Table to which the column belongs. func (r *ColumnService) Get(tableId string, columnId string) *ColumnGetCall { c := &ColumnGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -1422,33 +1189,29 @@ func (r *ColumnService) Get(tableId string, columnId string) *ColumnGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnGetCall) Fields(s ...googleapi.Field) *ColumnGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ColumnGetCall) IfNoneMatch(entityTag string) *ColumnGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnGetCall) Context(ctx context.Context) *ColumnGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1457,12 +1220,7 @@ func (c *ColumnGetCall) Header() http.Header { } func (c *ColumnGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1480,16 +1238,14 @@ func (c *ColumnGetCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "columnId": c.columnId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.get" call. -// Exactly one of *Column or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Column.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Column.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ColumnGetCall) Do(opts ...googleapi.CallOption) (*Column, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1497,17 +1253,17 @@ func (c *ColumnGetCall) Do(opts ...googleapi.CallOption) (*Column, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Column{ ServerResponse: googleapi.ServerResponse{ @@ -1520,41 +1276,7 @@ func (c *ColumnGetCall) Do(opts ...googleapi.CallOption) (*Column, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a specific column by its id.", - // "httpMethod": "GET", - // "id": "fusiontables.column.get", - // "parameterOrder": [ - // "tableId", - // "columnId" - // ], - // "parameters": { - // "columnId": { - // "description": "Name or identifier for the column that is being requested.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tableId": { - // "description": "Table to which the column belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns/{columnId}", - // "response": { - // "$ref": "Column" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.column.insert": +} type ColumnInsertCall struct { s *Service @@ -1566,6 +1288,8 @@ type ColumnInsertCall struct { } // Insert: Adds a new column to the table. +// +// - tableId: Table for which a new column is being added. func (r *ColumnService) Insert(tableId string, column *Column) *ColumnInsertCall { c := &ColumnInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -1574,23 +1298,21 @@ func (r *ColumnService) Insert(tableId string, column *Column) *ColumnInsertCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnInsertCall) Fields(s ...googleapi.Field) *ColumnInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnInsertCall) Context(ctx context.Context) *ColumnInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1599,18 +1321,12 @@ func (c *ColumnInsertCall) Header() http.Header { } func (c *ColumnInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.column) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/columns") @@ -1623,16 +1339,14 @@ func (c *ColumnInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.insert" call. -// Exactly one of *Column or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Column.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Column.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ColumnInsertCall) Do(opts ...googleapi.CallOption) (*Column, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1640,17 +1354,17 @@ func (c *ColumnInsertCall) Do(opts ...googleapi.CallOption) (*Column, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Column{ ServerResponse: googleapi.ServerResponse{ @@ -1663,36 +1377,7 @@ func (c *ColumnInsertCall) Do(opts ...googleapi.CallOption) (*Column, error) { return nil, err } return ret, nil - // { - // "description": "Adds a new column to the table.", - // "httpMethod": "POST", - // "id": "fusiontables.column.insert", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table for which a new column is being added.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns", - // "request": { - // "$ref": "Column" - // }, - // "response": { - // "$ref": "Column" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.column.list": +} type ColumnListCall struct { s *Service @@ -1704,14 +1389,16 @@ type ColumnListCall struct { } // List: Retrieves a list of columns. +// +// - tableId: Table whose columns are being listed. func (r *ColumnService) List(tableId string) *ColumnListCall { c := &ColumnListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of columns to return. Default is 5. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// columns to return. Default is 5. func (c *ColumnListCall) MaxResults(maxResults int64) *ColumnListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -1725,33 +1412,29 @@ func (c *ColumnListCall) PageToken(pageToken string) *ColumnListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnListCall) Fields(s ...googleapi.Field) *ColumnListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ColumnListCall) IfNoneMatch(entityTag string) *ColumnListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnListCall) Context(ctx context.Context) *ColumnListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1760,12 +1443,7 @@ func (c *ColumnListCall) Header() http.Header { } func (c *ColumnListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1782,16 +1460,14 @@ func (c *ColumnListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.list" call. -// Exactly one of *ColumnList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ColumnList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ColumnList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ColumnListCall) Do(opts ...googleapi.CallOption) (*ColumnList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1799,17 +1475,17 @@ func (c *ColumnListCall) Do(opts ...googleapi.CallOption) (*ColumnList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ColumnList{ ServerResponse: googleapi.ServerResponse{ @@ -1822,43 +1498,6 @@ func (c *ColumnListCall) Do(opts ...googleapi.CallOption) (*ColumnList, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of columns.", - // "httpMethod": "GET", - // "id": "fusiontables.column.list", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "maxResults": { - // "description": "Maximum number of columns to return. Optional. Default is 5.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token specifying which result page to return. Optional.", - // "location": "query", - // "type": "string" - // }, - // "tableId": { - // "description": "Table whose columns are being listed.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns", - // "response": { - // "$ref": "ColumnList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1866,7 +1505,7 @@ func (c *ColumnListCall) Do(opts ...googleapi.CallOption) (*ColumnList, error) { // The provided context supersedes any context provided to the Context method. func (c *ColumnListCall) Pages(ctx context.Context, f func(*ColumnList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1882,8 +1521,6 @@ func (c *ColumnListCall) Pages(ctx context.Context, f func(*ColumnList) error) e } } -// method id "fusiontables.column.patch": - type ColumnPatchCall struct { s *Service tableId string @@ -1894,8 +1531,11 @@ type ColumnPatchCall struct { header_ http.Header } -// Patch: Updates the name or type of an existing column. This method -// supports patch semantics. +// Patch: Updates the name or type of an existing column. This method supports +// patch semantics. +// +// - columnId: Name or identifier for the column that is being updated. +// - tableId: Table for which the column is being updated. func (r *ColumnService) Patch(tableId string, columnId string, column *Column) *ColumnPatchCall { c := &ColumnPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -1905,23 +1545,21 @@ func (r *ColumnService) Patch(tableId string, columnId string, column *Column) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnPatchCall) Fields(s ...googleapi.Field) *ColumnPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnPatchCall) Context(ctx context.Context) *ColumnPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1930,18 +1568,12 @@ func (c *ColumnPatchCall) Header() http.Header { } func (c *ColumnPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.column) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/columns/{columnId}") @@ -1955,16 +1587,14 @@ func (c *ColumnPatchCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "columnId": c.columnId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.patch" call. -// Exactly one of *Column or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Column.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Column.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ColumnPatchCall) Do(opts ...googleapi.CallOption) (*Column, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1972,17 +1602,17 @@ func (c *ColumnPatchCall) Do(opts ...googleapi.CallOption) (*Column, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Column{ ServerResponse: googleapi.ServerResponse{ @@ -1995,43 +1625,7 @@ func (c *ColumnPatchCall) Do(opts ...googleapi.CallOption) (*Column, error) { return nil, err } return ret, nil - // { - // "description": "Updates the name or type of an existing column. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "fusiontables.column.patch", - // "parameterOrder": [ - // "tableId", - // "columnId" - // ], - // "parameters": { - // "columnId": { - // "description": "Name or identifier for the column that is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tableId": { - // "description": "Table for which the column is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns/{columnId}", - // "request": { - // "$ref": "Column" - // }, - // "response": { - // "$ref": "Column" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.column.update": +} type ColumnUpdateCall struct { s *Service @@ -2044,6 +1638,9 @@ type ColumnUpdateCall struct { } // Update: Updates the name or type of an existing column. +// +// - columnId: Name or identifier for the column that is being updated. +// - tableId: Table for which the column is being updated. func (r *ColumnService) Update(tableId string, columnId string, column *Column) *ColumnUpdateCall { c := &ColumnUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -2053,23 +1650,21 @@ func (r *ColumnService) Update(tableId string, columnId string, column *Column) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnUpdateCall) Fields(s ...googleapi.Field) *ColumnUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnUpdateCall) Context(ctx context.Context) *ColumnUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2078,18 +1673,12 @@ func (c *ColumnUpdateCall) Header() http.Header { } func (c *ColumnUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.column) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/columns/{columnId}") @@ -2103,16 +1692,14 @@ func (c *ColumnUpdateCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "columnId": c.columnId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.update" call. -// Exactly one of *Column or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Column.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Column.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ColumnUpdateCall) Do(opts ...googleapi.CallOption) (*Column, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2120,17 +1707,17 @@ func (c *ColumnUpdateCall) Do(opts ...googleapi.CallOption) (*Column, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Column{ ServerResponse: googleapi.ServerResponse{ @@ -2143,43 +1730,7 @@ func (c *ColumnUpdateCall) Do(opts ...googleapi.CallOption) (*Column, error) { return nil, err } return ret, nil - // { - // "description": "Updates the name or type of an existing column.", - // "httpMethod": "PUT", - // "id": "fusiontables.column.update", - // "parameterOrder": [ - // "tableId", - // "columnId" - // ], - // "parameters": { - // "columnId": { - // "description": "Name or identifier for the column that is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tableId": { - // "description": "Table for which the column is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns/{columnId}", - // "request": { - // "$ref": "Column" - // }, - // "response": { - // "$ref": "Column" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.query.sql": +} type QuerySqlCall struct { s *Service @@ -2190,45 +1741,45 @@ type QuerySqlCall struct { // Sql: Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE // statement. +// +// - sql: An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE statement. func (r *QueryService) Sql(sql string) *QuerySqlCall { c := &QuerySqlCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("sql", sql) return c } -// Hdrs sets the optional parameter "hdrs": Should column names be -// included (in the first row)?. Default is true. +// Hdrs sets the optional parameter "hdrs": Should column names be included (in +// the first row)?. Default is true. func (c *QuerySqlCall) Hdrs(hdrs bool) *QuerySqlCall { c.urlParams_.Set("hdrs", fmt.Sprint(hdrs)) return c } -// Typed sets the optional parameter "typed": Should typed values be -// returned in the (JSON) response -- numbers for numeric values and -// parsed geometries for KML values? Default is true. +// Typed sets the optional parameter "typed": Should typed values be returned +// in the (JSON) response -- numbers for numeric values and parsed geometries +// for KML values? Default is true. func (c *QuerySqlCall) Typed(typed bool) *QuerySqlCall { c.urlParams_.Set("typed", fmt.Sprint(typed)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *QuerySqlCall) Fields(s ...googleapi.Field) *QuerySqlCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *QuerySqlCall) Context(ctx context.Context) *QuerySqlCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *QuerySqlCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2237,12 +1788,7 @@ func (c *QuerySqlCall) Header() http.Header { } func (c *QuerySqlCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2253,7 +1799,7 @@ func (c *QuerySqlCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -2265,20 +1811,18 @@ func (c *QuerySqlCall) Download(opts ...googleapi.CallOption) (*http.Response, e if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "fusiontables.query.sql" call. -// Exactly one of *Sqlresponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Sqlresponse.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Sqlresponse.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *QuerySqlCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2286,17 +1830,17 @@ func (c *QuerySqlCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Sqlresponse{ ServerResponse: googleapi.ServerResponse{ @@ -2309,46 +1853,7 @@ func (c *QuerySqlCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) { return nil, err } return ret, nil - // { - // "description": "Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement.", - // "httpMethod": "POST", - // "id": "fusiontables.query.sql", - // "parameterOrder": [ - // "sql" - // ], - // "parameters": { - // "hdrs": { - // "description": "Should column names be included (in the first row)?. Default is true.", - // "location": "query", - // "type": "boolean" - // }, - // "sql": { - // "description": "An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE statement.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "typed": { - // "description": "Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "query", - // "response": { - // "$ref": "Sqlresponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ], - // "supportsMediaDownload": true, - // "useMediaDownloadService": true - // } - -} - -// method id "fusiontables.query.sqlGet": +} type QuerySqlGetCall struct { s *Service @@ -2359,55 +1864,53 @@ type QuerySqlGetCall struct { } // SqlGet: Executes an SQL SELECT/SHOW/DESCRIBE statement. +// +// - sql: An SQL SELECT/SHOW/DESCRIBE statement. func (r *QueryService) SqlGet(sql string) *QuerySqlGetCall { c := &QuerySqlGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("sql", sql) return c } -// Hdrs sets the optional parameter "hdrs": Should column names be -// included (in the first row)?. Default is true. +// Hdrs sets the optional parameter "hdrs": Should column names be included (in +// the first row)?. Default is true. func (c *QuerySqlGetCall) Hdrs(hdrs bool) *QuerySqlGetCall { c.urlParams_.Set("hdrs", fmt.Sprint(hdrs)) return c } -// Typed sets the optional parameter "typed": Should typed values be -// returned in the (JSON) response -- numbers for numeric values and -// parsed geometries for KML values? Default is true. +// Typed sets the optional parameter "typed": Should typed values be returned +// in the (JSON) response -- numbers for numeric values and parsed geometries +// for KML values? Default is true. func (c *QuerySqlGetCall) Typed(typed bool) *QuerySqlGetCall { c.urlParams_.Set("typed", fmt.Sprint(typed)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *QuerySqlGetCall) Fields(s ...googleapi.Field) *QuerySqlGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *QuerySqlGetCall) IfNoneMatch(entityTag string) *QuerySqlGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *QuerySqlGetCall) Context(ctx context.Context) *QuerySqlGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *QuerySqlGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2416,12 +1919,7 @@ func (c *QuerySqlGetCall) Header() http.Header { } func (c *QuerySqlGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2435,7 +1933,7 @@ func (c *QuerySqlGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -2447,20 +1945,18 @@ func (c *QuerySqlGetCall) Download(opts ...googleapi.CallOption) (*http.Response if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "fusiontables.query.sqlGet" call. -// Exactly one of *Sqlresponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Sqlresponse.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Sqlresponse.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *QuerySqlGetCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2468,17 +1964,17 @@ func (c *QuerySqlGetCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Sqlresponse{ ServerResponse: googleapi.ServerResponse{ @@ -2491,46 +1987,7 @@ func (c *QuerySqlGetCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) return nil, err } return ret, nil - // { - // "description": "Executes an SQL SELECT/SHOW/DESCRIBE statement.", - // "httpMethod": "GET", - // "id": "fusiontables.query.sqlGet", - // "parameterOrder": [ - // "sql" - // ], - // "parameters": { - // "hdrs": { - // "description": "Should column names be included (in the first row)?. Default is true.", - // "location": "query", - // "type": "boolean" - // }, - // "sql": { - // "description": "An SQL SELECT/SHOW/DESCRIBE statement.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "typed": { - // "description": "Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "query", - // "response": { - // "$ref": "Sqlresponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ], - // "supportsMediaDownload": true, - // "useMediaDownloadService": true - // } - -} - -// method id "fusiontables.style.delete": +} type StyleDeleteCall struct { s *Service @@ -2542,6 +1999,9 @@ type StyleDeleteCall struct { } // Delete: Deletes a style. +// +// - styleId: Identifier (within a table) for the style being deleted. +// - tableId: Table from which the style is being deleted. func (r *StyleService) Delete(tableId string, styleId int64) *StyleDeleteCall { c := &StyleDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -2550,23 +2010,21 @@ func (r *StyleService) Delete(tableId string, styleId int64) *StyleDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StyleDeleteCall) Fields(s ...googleapi.Field) *StyleDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StyleDeleteCall) Context(ctx context.Context) *StyleDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StyleDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2575,12 +2033,7 @@ func (c *StyleDeleteCall) Header() http.Header { } func (c *StyleDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2595,7 +2048,7 @@ func (c *StyleDeleteCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "styleId": strconv.FormatInt(c.styleId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.delete" call. @@ -2607,41 +2060,10 @@ func (c *StyleDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a style.", - // "httpMethod": "DELETE", - // "id": "fusiontables.style.delete", - // "parameterOrder": [ - // "tableId", - // "styleId" - // ], - // "parameters": { - // "styleId": { - // "description": "Identifier (within a table) for the style being deleted", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "tableId": { - // "description": "Table from which the style is being deleted", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles/{styleId}", - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.style.get": +} type StyleGetCall struct { s *Service @@ -2654,6 +2076,9 @@ type StyleGetCall struct { } // Get: Gets a specific style. +// +// - styleId: Identifier (integer) for a specific style in a table. +// - tableId: Table to which the requested style belongs. func (r *StyleService) Get(tableId string, styleId int64) *StyleGetCall { c := &StyleGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -2662,33 +2087,29 @@ func (r *StyleService) Get(tableId string, styleId int64) *StyleGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StyleGetCall) Fields(s ...googleapi.Field) *StyleGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *StyleGetCall) IfNoneMatch(entityTag string) *StyleGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StyleGetCall) Context(ctx context.Context) *StyleGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StyleGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2697,12 +2118,7 @@ func (c *StyleGetCall) Header() http.Header { } func (c *StyleGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2720,16 +2136,14 @@ func (c *StyleGetCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "styleId": strconv.FormatInt(c.styleId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.get" call. -// Exactly one of *StyleSetting or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *StyleSetting.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StyleSetting.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StyleGetCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2737,17 +2151,17 @@ func (c *StyleGetCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StyleSetting{ ServerResponse: googleapi.ServerResponse{ @@ -2760,42 +2174,7 @@ func (c *StyleGetCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { return nil, err } return ret, nil - // { - // "description": "Gets a specific style.", - // "httpMethod": "GET", - // "id": "fusiontables.style.get", - // "parameterOrder": [ - // "tableId", - // "styleId" - // ], - // "parameters": { - // "styleId": { - // "description": "Identifier (integer) for a specific style in a table", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "tableId": { - // "description": "Table to which the requested style belongs", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles/{styleId}", - // "response": { - // "$ref": "StyleSetting" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.style.insert": +} type StyleInsertCall struct { s *Service @@ -2807,6 +2186,8 @@ type StyleInsertCall struct { } // Insert: Adds a new style for the table. +// +// - tableId: Table for which a new style is being added. func (r *StyleService) Insert(tableId string, stylesetting *StyleSetting) *StyleInsertCall { c := &StyleInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -2815,23 +2196,21 @@ func (r *StyleService) Insert(tableId string, stylesetting *StyleSetting) *Style } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StyleInsertCall) Fields(s ...googleapi.Field) *StyleInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StyleInsertCall) Context(ctx context.Context) *StyleInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StyleInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2840,18 +2219,12 @@ func (c *StyleInsertCall) Header() http.Header { } func (c *StyleInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.stylesetting) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/styles") @@ -2864,16 +2237,14 @@ func (c *StyleInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.insert" call. -// Exactly one of *StyleSetting or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *StyleSetting.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StyleSetting.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StyleInsertCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2881,17 +2252,17 @@ func (c *StyleInsertCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StyleSetting{ ServerResponse: googleapi.ServerResponse{ @@ -2904,36 +2275,7 @@ func (c *StyleInsertCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error return nil, err } return ret, nil - // { - // "description": "Adds a new style for the table.", - // "httpMethod": "POST", - // "id": "fusiontables.style.insert", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table for which a new style is being added", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles", - // "request": { - // "$ref": "StyleSetting" - // }, - // "response": { - // "$ref": "StyleSetting" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.style.list": +} type StyleListCall struct { s *Service @@ -2945,14 +2287,16 @@ type StyleListCall struct { } // List: Retrieves a list of styles. +// +// - tableId: Table whose styles are being listed. func (r *StyleService) List(tableId string) *StyleListCall { c := &StyleListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of styles to return. Default is 5. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// styles to return. Default is 5. func (c *StyleListCall) MaxResults(maxResults int64) *StyleListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -2966,33 +2310,29 @@ func (c *StyleListCall) PageToken(pageToken string) *StyleListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StyleListCall) Fields(s ...googleapi.Field) *StyleListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *StyleListCall) IfNoneMatch(entityTag string) *StyleListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StyleListCall) Context(ctx context.Context) *StyleListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StyleListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3001,12 +2341,7 @@ func (c *StyleListCall) Header() http.Header { } func (c *StyleListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3023,16 +2358,15 @@ func (c *StyleListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.list" call. -// Exactly one of *StyleSettingList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *StyleSettingList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StyleSettingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *StyleListCall) Do(opts ...googleapi.CallOption) (*StyleSettingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3040,17 +2374,17 @@ func (c *StyleListCall) Do(opts ...googleapi.CallOption) (*StyleSettingList, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StyleSettingList{ ServerResponse: googleapi.ServerResponse{ @@ -3063,43 +2397,6 @@ func (c *StyleListCall) Do(opts ...googleapi.CallOption) (*StyleSettingList, err return nil, err } return ret, nil - // { - // "description": "Retrieves a list of styles.", - // "httpMethod": "GET", - // "id": "fusiontables.style.list", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "maxResults": { - // "description": "Maximum number of styles to return. Optional. Default is 5.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token specifying which result page to return. Optional.", - // "location": "query", - // "type": "string" - // }, - // "tableId": { - // "description": "Table whose styles are being listed", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles", - // "response": { - // "$ref": "StyleSettingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -3107,7 +2404,7 @@ func (c *StyleListCall) Do(opts ...googleapi.CallOption) (*StyleSettingList, err // The provided context supersedes any context provided to the Context method. func (c *StyleListCall) Pages(ctx context.Context, f func(*StyleSettingList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3123,8 +2420,6 @@ func (c *StyleListCall) Pages(ctx context.Context, f func(*StyleSettingList) err } } -// method id "fusiontables.style.patch": - type StylePatchCall struct { s *Service tableId string @@ -3135,8 +2430,10 @@ type StylePatchCall struct { header_ http.Header } -// Patch: Updates an existing style. This method supports patch -// semantics. +// Patch: Updates an existing style. This method supports patch semantics. +// +// - styleId: Identifier (within a table) for the style being updated. +// - tableId: Table whose style is being updated. func (r *StyleService) Patch(tableId string, styleId int64, stylesetting *StyleSetting) *StylePatchCall { c := &StylePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -3146,23 +2443,21 @@ func (r *StyleService) Patch(tableId string, styleId int64, stylesetting *StyleS } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StylePatchCall) Fields(s ...googleapi.Field) *StylePatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StylePatchCall) Context(ctx context.Context) *StylePatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StylePatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3171,18 +2466,12 @@ func (c *StylePatchCall) Header() http.Header { } func (c *StylePatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.stylesetting) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/styles/{styleId}") @@ -3196,16 +2485,14 @@ func (c *StylePatchCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "styleId": strconv.FormatInt(c.styleId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.patch" call. -// Exactly one of *StyleSetting or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *StyleSetting.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StyleSetting.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StylePatchCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3213,17 +2500,17 @@ func (c *StylePatchCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StyleSetting{ ServerResponse: googleapi.ServerResponse{ @@ -3236,44 +2523,7 @@ func (c *StylePatchCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing style. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "fusiontables.style.patch", - // "parameterOrder": [ - // "tableId", - // "styleId" - // ], - // "parameters": { - // "styleId": { - // "description": "Identifier (within a table) for the style being updated.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "tableId": { - // "description": "Table whose style is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles/{styleId}", - // "request": { - // "$ref": "StyleSetting" - // }, - // "response": { - // "$ref": "StyleSetting" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.style.update": +} type StyleUpdateCall struct { s *Service @@ -3286,6 +2536,9 @@ type StyleUpdateCall struct { } // Update: Updates an existing style. +// +// - styleId: Identifier (within a table) for the style being updated. +// - tableId: Table whose style is being updated. func (r *StyleService) Update(tableId string, styleId int64, stylesetting *StyleSetting) *StyleUpdateCall { c := &StyleUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -3295,23 +2548,21 @@ func (r *StyleService) Update(tableId string, styleId int64, stylesetting *Style } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StyleUpdateCall) Fields(s ...googleapi.Field) *StyleUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StyleUpdateCall) Context(ctx context.Context) *StyleUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StyleUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3320,18 +2571,12 @@ func (c *StyleUpdateCall) Header() http.Header { } func (c *StyleUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.stylesetting) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/styles/{styleId}") @@ -3345,16 +2590,14 @@ func (c *StyleUpdateCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "styleId": strconv.FormatInt(c.styleId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.update" call. -// Exactly one of *StyleSetting or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *StyleSetting.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StyleSetting.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StyleUpdateCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3362,17 +2605,17 @@ func (c *StyleUpdateCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StyleSetting{ ServerResponse: googleapi.ServerResponse{ @@ -3385,44 +2628,7 @@ func (c *StyleUpdateCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error return nil, err } return ret, nil - // { - // "description": "Updates an existing style.", - // "httpMethod": "PUT", - // "id": "fusiontables.style.update", - // "parameterOrder": [ - // "tableId", - // "styleId" - // ], - // "parameters": { - // "styleId": { - // "description": "Identifier (within a table) for the style being updated.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "tableId": { - // "description": "Table whose style is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles/{styleId}", - // "request": { - // "$ref": "StyleSetting" - // }, - // "response": { - // "$ref": "StyleSetting" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.table.copy": +} type TableCopyCall struct { s *Service @@ -3433,37 +2639,37 @@ type TableCopyCall struct { } // Copy: Copies a table. +// +// - tableId: ID of the table that is being copied. func (r *TableService) Copy(tableId string) *TableCopyCall { c := &TableCopyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// CopyPresentation sets the optional parameter "copyPresentation": -// Whether to also copy tabs, styles, and templates. Default is false. +// CopyPresentation sets the optional parameter "copyPresentation": Whether to +// also copy tabs, styles, and templates. Default is false. func (c *TableCopyCall) CopyPresentation(copyPresentation bool) *TableCopyCall { c.urlParams_.Set("copyPresentation", fmt.Sprint(copyPresentation)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableCopyCall) Fields(s ...googleapi.Field) *TableCopyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableCopyCall) Context(ctx context.Context) *TableCopyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableCopyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3472,12 +2678,7 @@ func (c *TableCopyCall) Header() http.Header { } func (c *TableCopyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3491,16 +2692,14 @@ func (c *TableCopyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.copy" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableCopyCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3508,17 +2707,17 @@ func (c *TableCopyCall) Do(opts ...googleapi.CallOption) (*Table, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Table{ ServerResponse: googleapi.ServerResponse{ @@ -3531,39 +2730,7 @@ func (c *TableCopyCall) Do(opts ...googleapi.CallOption) (*Table, error) { return nil, err } return ret, nil - // { - // "description": "Copies a table.", - // "httpMethod": "POST", - // "id": "fusiontables.table.copy", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "copyPresentation": { - // "description": "Whether to also copy tabs, styles, and templates. Default is false.", - // "location": "query", - // "type": "boolean" - // }, - // "tableId": { - // "description": "ID of the table that is being copied.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/copy", - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.table.delete": +} type TableDeleteCall struct { s *Service @@ -3574,6 +2741,8 @@ type TableDeleteCall struct { } // Delete: Deletes a table. +// +// - tableId: ID of the table that is being deleted. func (r *TableService) Delete(tableId string) *TableDeleteCall { c := &TableDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -3581,23 +2750,21 @@ func (r *TableService) Delete(tableId string) *TableDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableDeleteCall) Fields(s ...googleapi.Field) *TableDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableDeleteCall) Context(ctx context.Context) *TableDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3606,12 +2773,7 @@ func (c *TableDeleteCall) Header() http.Header { } func (c *TableDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3625,7 +2787,7 @@ func (c *TableDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.delete" call. @@ -3637,33 +2799,10 @@ func (c *TableDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a table.", - // "httpMethod": "DELETE", - // "id": "fusiontables.table.delete", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "ID of the table that is being deleted.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}", - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.table.get": +} type TableGetCall struct { s *Service @@ -3675,6 +2814,8 @@ type TableGetCall struct { } // Get: Retrieves a specific table by its id. +// +// - tableId: Identifier(ID) for the table being requested. func (r *TableService) Get(tableId string) *TableGetCall { c := &TableGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -3682,33 +2823,29 @@ func (r *TableService) Get(tableId string) *TableGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableGetCall) Fields(s ...googleapi.Field) *TableGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TableGetCall) IfNoneMatch(entityTag string) *TableGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableGetCall) Context(ctx context.Context) *TableGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3717,12 +2854,7 @@ func (c *TableGetCall) Header() http.Header { } func (c *TableGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3739,16 +2871,14 @@ func (c *TableGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.get" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableGetCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3756,17 +2886,17 @@ func (c *TableGetCall) Do(opts ...googleapi.CallOption) (*Table, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Table{ ServerResponse: googleapi.ServerResponse{ @@ -3779,34 +2909,7 @@ func (c *TableGetCall) Do(opts ...googleapi.CallOption) (*Table, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a specific table by its id.", - // "httpMethod": "GET", - // "id": "fusiontables.table.get", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "Identifier(ID) for the table being requested.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}", - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.table.importRows": +} type TableImportRowsCall struct { s *Service @@ -3818,15 +2921,17 @@ type TableImportRowsCall struct { } // ImportRows: Import more rows into a table. +// +// - tableId: The table into which new rows are being imported. func (r *TableService) ImportRows(tableId string) *TableImportRowsCall { c := &TableImportRowsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// Delimiter sets the optional parameter "delimiter": The delimiter used -// to separate cell values. This can only consist of a single character. -// Default is ','. +// Delimiter sets the optional parameter "delimiter": The delimiter used to +// separate cell values. This can only consist of a single character. Default +// is ','. func (c *TableImportRowsCall) Delimiter(delimiter string) *TableImportRowsCall { c.urlParams_.Set("delimiter", delimiter) return c @@ -3840,83 +2945,79 @@ func (c *TableImportRowsCall) Encoding(encoding string) *TableImportRowsCall { return c } -// EndLine sets the optional parameter "endLine": The index of the last -// line from which to start importing, exclusive. Thus, the number of -// imported lines is endLine - startLine. If this parameter is not -// provided, the file will be imported until the last line of the file. -// If endLine is negative, then the imported content will exclude the -// last endLine lines. That is, if endline is negative, no line will be -// imported whose index is greater than N + endLine where N is the -// number of lines in the file, and the number of imported lines will be -// N + endLine - startLine. +// EndLine sets the optional parameter "endLine": The index of the last line +// from which to start importing, exclusive. Thus, the number of imported lines +// is endLine - startLine. If this parameter is not provided, the file will be +// imported until the last line of the file. If endLine is negative, then the +// imported content will exclude the last endLine lines. That is, if endline is +// negative, no line will be imported whose index is greater than N + endLine +// where N is the number of lines in the file, and the number of imported lines +// will be N + endLine - startLine. func (c *TableImportRowsCall) EndLine(endLine int64) *TableImportRowsCall { c.urlParams_.Set("endLine", fmt.Sprint(endLine)) return c } -// IsStrict sets the optional parameter "isStrict": Whether the CSV must -// have the same number of values for each row. If false, rows with -// fewer values will be padded with empty values. Default is true. +// IsStrict sets the optional parameter "isStrict": Whether the CSV must have +// the same number of values for each row. If false, rows with fewer values +// will be padded with empty values. Default is true. func (c *TableImportRowsCall) IsStrict(isStrict bool) *TableImportRowsCall { c.urlParams_.Set("isStrict", fmt.Sprint(isStrict)) return c } -// StartLine sets the optional parameter "startLine": The index of the -// first line from which to start importing, inclusive. Default is 0. +// StartLine sets the optional parameter "startLine": The index of the first +// line from which to start importing, inclusive. Default is 0. func (c *TableImportRowsCall) StartLine(startLine int64) *TableImportRowsCall { c.urlParams_.Set("startLine", fmt.Sprint(startLine)) return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *TableImportRowsCall) Media(r io.Reader, options ...googleapi.MediaOption) *TableImportRowsCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *TableImportRowsCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TableImportRowsCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *TableImportRowsCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TableImportRowsCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableImportRowsCall) Fields(s ...googleapi.Field) *TableImportRowsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *TableImportRowsCall) Context(ctx context.Context) *TableImportRowsCall { @@ -3924,8 +3025,8 @@ func (c *TableImportRowsCall) Context(ctx context.Context) *TableImportRowsCall return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableImportRowsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3934,12 +3035,7 @@ func (c *TableImportRowsCall) Header() http.Header { } func (c *TableImportRowsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3964,16 +3060,14 @@ func (c *TableImportRowsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.importRows" call. -// Exactly one of *Import or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Import.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Import.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableImportRowsCall) Do(opts ...googleapi.CallOption) (*Import, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3981,17 +3075,17 @@ func (c *TableImportRowsCall) Do(opts ...googleapi.CallOption) (*Import, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -4007,7 +3101,7 @@ func (c *TableImportRowsCall) Do(opts ...googleapi.CallOption) (*Import, error) } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &Import{ @@ -4021,77 +3115,7 @@ func (c *TableImportRowsCall) Do(opts ...googleapi.CallOption) (*Import, error) return nil, err } return ret, nil - // { - // "description": "Import more rows into a table.", - // "httpMethod": "POST", - // "id": "fusiontables.table.importRows", - // "mediaUpload": { - // "accept": [ - // "application/octet-stream" - // ], - // "maxSize": "250MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/fusiontables/v1/tables/{tableId}/import" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/fusiontables/v1/tables/{tableId}/import" - // } - // } - // }, - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "delimiter": { - // "description": "The delimiter used to separate cell values. This can only consist of a single character. Default is ','.", - // "location": "query", - // "type": "string" - // }, - // "encoding": { - // "description": "The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.", - // "location": "query", - // "type": "string" - // }, - // "endLine": { - // "description": "The index of the last line from which to start importing, exclusive. Thus, the number of imported lines is endLine - startLine. If this parameter is not provided, the file will be imported until the last line of the file. If endLine is negative, then the imported content will exclude the last endLine lines. That is, if endline is negative, no line will be imported whose index is greater than N + endLine where N is the number of lines in the file, and the number of imported lines will be N + endLine - startLine.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "isStrict": { - // "description": "Whether the CSV must have the same number of values for each row. If false, rows with fewer values will be padded with empty values. Default is true.", - // "location": "query", - // "type": "boolean" - // }, - // "startLine": { - // "description": "The index of the first line from which to start importing, inclusive. Default is 0.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "tableId": { - // "description": "The table into which new rows are being imported.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/import", - // "response": { - // "$ref": "Import" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "fusiontables.table.importTable": +} type TableImportTableCall struct { s *Service @@ -4102,15 +3126,17 @@ type TableImportTableCall struct { } // ImportTable: Import a new table. +// +// - name: The name to be assigned to the new table. func (r *TableService) ImportTable(name string) *TableImportTableCall { c := &TableImportTableCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("name", name) return c } -// Delimiter sets the optional parameter "delimiter": The delimiter used -// to separate cell values. This can only consist of a single character. -// Default is ','. +// Delimiter sets the optional parameter "delimiter": The delimiter used to +// separate cell values. This can only consist of a single character. Default +// is ','. func (c *TableImportTableCall) Delimiter(delimiter string) *TableImportTableCall { c.urlParams_.Set("delimiter", delimiter) return c @@ -4124,54 +3150,51 @@ func (c *TableImportTableCall) Encoding(encoding string) *TableImportTableCall { return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *TableImportTableCall) Media(r io.Reader, options ...googleapi.MediaOption) *TableImportTableCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *TableImportTableCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TableImportTableCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *TableImportTableCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TableImportTableCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableImportTableCall) Fields(s ...googleapi.Field) *TableImportTableCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *TableImportTableCall) Context(ctx context.Context) *TableImportTableCall { @@ -4179,8 +3202,8 @@ func (c *TableImportTableCall) Context(ctx context.Context) *TableImportTableCal return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableImportTableCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4189,12 +3212,7 @@ func (c *TableImportTableCall) Header() http.Header { } func (c *TableImportTableCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4216,16 +3234,14 @@ func (c *TableImportTableCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.importTable" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableImportTableCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4233,17 +3249,17 @@ func (c *TableImportTableCall) Do(opts ...googleapi.CallOption) (*Table, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -4259,7 +3275,7 @@ func (c *TableImportTableCall) Do(opts ...googleapi.CallOption) (*Table, error) } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &Table{ @@ -4273,60 +3289,7 @@ func (c *TableImportTableCall) Do(opts ...googleapi.CallOption) (*Table, error) return nil, err } return ret, nil - // { - // "description": "Import a new table.", - // "httpMethod": "POST", - // "id": "fusiontables.table.importTable", - // "mediaUpload": { - // "accept": [ - // "application/octet-stream" - // ], - // "maxSize": "250MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/fusiontables/v1/tables/import" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/fusiontables/v1/tables/import" - // } - // } - // }, - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "delimiter": { - // "description": "The delimiter used to separate cell values. This can only consist of a single character. Default is ','.", - // "location": "query", - // "type": "string" - // }, - // "encoding": { - // "description": "The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name to be assigned to the new table.", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/import", - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "fusiontables.table.insert": +} type TableInsertCall struct { s *Service @@ -4344,23 +3307,21 @@ func (r *TableService) Insert(table *Table) *TableInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableInsertCall) Fields(s ...googleapi.Field) *TableInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableInsertCall) Context(ctx context.Context) *TableInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4369,18 +3330,12 @@ func (c *TableInsertCall) Header() http.Header { } func (c *TableInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.table) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables") @@ -4390,16 +3345,14 @@ func (c *TableInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.insert" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableInsertCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4407,17 +3360,17 @@ func (c *TableInsertCall) Do(opts ...googleapi.CallOption) (*Table, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Table{ ServerResponse: googleapi.ServerResponse{ @@ -4430,25 +3383,7 @@ func (c *TableInsertCall) Do(opts ...googleapi.CallOption) (*Table, error) { return nil, err } return ret, nil - // { - // "description": "Creates a new table.", - // "httpMethod": "POST", - // "id": "fusiontables.table.insert", - // "path": "tables", - // "request": { - // "$ref": "Table" - // }, - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.table.list": +} type TableListCall struct { s *Service @@ -4464,8 +3399,8 @@ func (r *TableService) List() *TableListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of styles to return. Default is 5. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// styles to return. Default is 5. func (c *TableListCall) MaxResults(maxResults int64) *TableListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -4479,33 +3414,29 @@ func (c *TableListCall) PageToken(pageToken string) *TableListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableListCall) Fields(s ...googleapi.Field) *TableListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TableListCall) IfNoneMatch(entityTag string) *TableListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableListCall) Context(ctx context.Context) *TableListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4514,12 +3445,7 @@ func (c *TableListCall) Header() http.Header { } func (c *TableListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4533,16 +3459,14 @@ func (c *TableListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.list" call. -// Exactly one of *TableList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *TableList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TableList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableListCall) Do(opts ...googleapi.CallOption) (*TableList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4550,17 +3474,17 @@ func (c *TableListCall) Do(opts ...googleapi.CallOption) (*TableList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TableList{ ServerResponse: googleapi.ServerResponse{ @@ -4573,34 +3497,6 @@ func (c *TableListCall) Do(opts ...googleapi.CallOption) (*TableList, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of tables a user owns.", - // "httpMethod": "GET", - // "id": "fusiontables.table.list", - // "parameters": { - // "maxResults": { - // "description": "Maximum number of styles to return. Optional. Default is 5.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token specifying which result page to return. Optional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "tables", - // "response": { - // "$ref": "TableList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -4608,7 +3504,7 @@ func (c *TableListCall) Do(opts ...googleapi.CallOption) (*TableList, error) { // The provided context supersedes any context provided to the Context method. func (c *TableListCall) Pages(ctx context.Context, f func(*TableList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4624,8 +3520,6 @@ func (c *TableListCall) Pages(ctx context.Context, f func(*TableList) error) err } } -// method id "fusiontables.table.patch": - type TablePatchCall struct { s *Service tableId string @@ -4635,9 +3529,11 @@ type TablePatchCall struct { header_ http.Header } -// Patch: Updates an existing table. Unless explicitly requested, only -// the name, description, and attribution will be updated. This method -// supports patch semantics. +// Patch: Updates an existing table. Unless explicitly requested, only the +// name, description, and attribution will be updated. This method supports +// patch semantics. +// +// - tableId: ID of the table that is being updated. func (r *TableService) Patch(tableId string, table *Table) *TablePatchCall { c := &TablePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -4645,33 +3541,30 @@ func (r *TableService) Patch(tableId string, table *Table) *TablePatchCall { return c } -// ReplaceViewDefinition sets the optional parameter -// "replaceViewDefinition": Should the view definition also be updated? -// The specified view definition replaces the existing one. Only a view -// can be updated with a new definition. +// ReplaceViewDefinition sets the optional parameter "replaceViewDefinition": +// Should the view definition also be updated? The specified view definition +// replaces the existing one. Only a view can be updated with a new definition. func (c *TablePatchCall) ReplaceViewDefinition(replaceViewDefinition bool) *TablePatchCall { c.urlParams_.Set("replaceViewDefinition", fmt.Sprint(replaceViewDefinition)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TablePatchCall) Fields(s ...googleapi.Field) *TablePatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TablePatchCall) Context(ctx context.Context) *TablePatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TablePatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4680,18 +3573,12 @@ func (c *TablePatchCall) Header() http.Header { } func (c *TablePatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.table) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}") @@ -4704,16 +3591,14 @@ func (c *TablePatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.patch" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TablePatchCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4721,17 +3606,17 @@ func (c *TablePatchCall) Do(opts ...googleapi.CallOption) (*Table, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Table{ ServerResponse: googleapi.ServerResponse{ @@ -4744,41 +3629,7 @@ func (c *TablePatchCall) Do(opts ...googleapi.CallOption) (*Table, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "fusiontables.table.patch", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "replaceViewDefinition": { - // "description": "Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.", - // "location": "query", - // "type": "boolean" - // }, - // "tableId": { - // "description": "ID of the table that is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}", - // "request": { - // "$ref": "Table" - // }, - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.table.update": +} type TableUpdateCall struct { s *Service @@ -4789,8 +3640,10 @@ type TableUpdateCall struct { header_ http.Header } -// Update: Updates an existing table. Unless explicitly requested, only -// the name, description, and attribution will be updated. +// Update: Updates an existing table. Unless explicitly requested, only the +// name, description, and attribution will be updated. +// +// - tableId: ID of the table that is being updated. func (r *TableService) Update(tableId string, table *Table) *TableUpdateCall { c := &TableUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -4798,33 +3651,30 @@ func (r *TableService) Update(tableId string, table *Table) *TableUpdateCall { return c } -// ReplaceViewDefinition sets the optional parameter -// "replaceViewDefinition": Should the view definition also be updated? -// The specified view definition replaces the existing one. Only a view -// can be updated with a new definition. +// ReplaceViewDefinition sets the optional parameter "replaceViewDefinition": +// Should the view definition also be updated? The specified view definition +// replaces the existing one. Only a view can be updated with a new definition. func (c *TableUpdateCall) ReplaceViewDefinition(replaceViewDefinition bool) *TableUpdateCall { c.urlParams_.Set("replaceViewDefinition", fmt.Sprint(replaceViewDefinition)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableUpdateCall) Fields(s ...googleapi.Field) *TableUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableUpdateCall) Context(ctx context.Context) *TableUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4833,18 +3683,12 @@ func (c *TableUpdateCall) Header() http.Header { } func (c *TableUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.table) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}") @@ -4857,16 +3701,14 @@ func (c *TableUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.update" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableUpdateCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4874,17 +3716,17 @@ func (c *TableUpdateCall) Do(opts ...googleapi.CallOption) (*Table, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Table{ ServerResponse: googleapi.ServerResponse{ @@ -4897,41 +3739,7 @@ func (c *TableUpdateCall) Do(opts ...googleapi.CallOption) (*Table, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.", - // "httpMethod": "PUT", - // "id": "fusiontables.table.update", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "replaceViewDefinition": { - // "description": "Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.", - // "location": "query", - // "type": "boolean" - // }, - // "tableId": { - // "description": "ID of the table that is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}", - // "request": { - // "$ref": "Table" - // }, - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.task.delete": +} type TaskDeleteCall struct { s *Service @@ -4943,6 +3751,9 @@ type TaskDeleteCall struct { } // Delete: Deletes the task, unless already started. +// +// - tableId: Table from which the task is being deleted. +// - taskId: . func (r *TaskService) Delete(tableId string, taskId string) *TaskDeleteCall { c := &TaskDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -4951,23 +3762,21 @@ func (r *TaskService) Delete(tableId string, taskId string) *TaskDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TaskDeleteCall) Fields(s ...googleapi.Field) *TaskDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TaskDeleteCall) Context(ctx context.Context) *TaskDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TaskDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4976,12 +3785,7 @@ func (c *TaskDeleteCall) Header() http.Header { } func (c *TaskDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4996,7 +3800,7 @@ func (c *TaskDeleteCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "taskId": c.taskId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.task.delete" call. @@ -5008,39 +3812,10 @@ func (c *TaskDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes the task, unless already started.", - // "httpMethod": "DELETE", - // "id": "fusiontables.task.delete", - // "parameterOrder": [ - // "tableId", - // "taskId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table from which the task is being deleted.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "taskId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/tasks/{taskId}", - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.task.get": +} type TaskGetCall struct { s *Service @@ -5053,6 +3828,9 @@ type TaskGetCall struct { } // Get: Retrieves a specific task by its id. +// +// - tableId: Table to which the task belongs. +// - taskId: . func (r *TaskService) Get(tableId string, taskId string) *TaskGetCall { c := &TaskGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -5061,33 +3839,29 @@ func (r *TaskService) Get(tableId string, taskId string) *TaskGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TaskGetCall) Fields(s ...googleapi.Field) *TaskGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TaskGetCall) IfNoneMatch(entityTag string) *TaskGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TaskGetCall) Context(ctx context.Context) *TaskGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TaskGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5096,12 +3870,7 @@ func (c *TaskGetCall) Header() http.Header { } func (c *TaskGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5119,16 +3888,14 @@ func (c *TaskGetCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "taskId": c.taskId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.task.get" call. -// Exactly one of *Task or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Task.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *TaskGetCall) Do(opts ...googleapi.CallOption) (*Task, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5136,17 +3903,17 @@ func (c *TaskGetCall) Do(opts ...googleapi.CallOption) (*Task, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Task{ ServerResponse: googleapi.ServerResponse{ @@ -5159,40 +3926,7 @@ func (c *TaskGetCall) Do(opts ...googleapi.CallOption) (*Task, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a specific task by its id.", - // "httpMethod": "GET", - // "id": "fusiontables.task.get", - // "parameterOrder": [ - // "tableId", - // "taskId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table to which the task belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "taskId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/tasks/{taskId}", - // "response": { - // "$ref": "Task" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.task.list": +} type TaskListCall struct { s *Service @@ -5204,14 +3938,16 @@ type TaskListCall struct { } // List: Retrieves a list of tasks. +// +// - tableId: Table whose tasks are being listed. func (r *TaskService) List(tableId string) *TaskListCall { c := &TaskListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of columns to return. Default is 5. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// columns to return. Default is 5. func (c *TaskListCall) MaxResults(maxResults int64) *TaskListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -5230,33 +3966,29 @@ func (c *TaskListCall) StartIndex(startIndex int64) *TaskListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TaskListCall) Fields(s ...googleapi.Field) *TaskListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TaskListCall) IfNoneMatch(entityTag string) *TaskListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TaskListCall) Context(ctx context.Context) *TaskListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TaskListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5265,12 +3997,7 @@ func (c *TaskListCall) Header() http.Header { } func (c *TaskListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5287,16 +4014,14 @@ func (c *TaskListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.task.list" call. -// Exactly one of *TaskList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *TaskList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TaskList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TaskListCall) Do(opts ...googleapi.CallOption) (*TaskList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5304,17 +4029,17 @@ func (c *TaskListCall) Do(opts ...googleapi.CallOption) (*TaskList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TaskList{ ServerResponse: googleapi.ServerResponse{ @@ -5327,47 +4052,6 @@ func (c *TaskListCall) Do(opts ...googleapi.CallOption) (*TaskList, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of tasks.", - // "httpMethod": "GET", - // "id": "fusiontables.task.list", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "maxResults": { - // "description": "Maximum number of columns to return. Optional. Default is 5.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "location": "query", - // "type": "string" - // }, - // "startIndex": { - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "tableId": { - // "description": "Table whose tasks are being listed.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/tasks", - // "response": { - // "$ref": "TaskList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -5375,7 +4059,7 @@ func (c *TaskListCall) Do(opts ...googleapi.CallOption) (*TaskList, error) { // The provided context supersedes any context provided to the Context method. func (c *TaskListCall) Pages(ctx context.Context, f func(*TaskList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5391,8 +4075,6 @@ func (c *TaskListCall) Pages(ctx context.Context, f func(*TaskList) error) error } } -// method id "fusiontables.template.delete": - type TemplateDeleteCall struct { s *Service tableId string @@ -5403,6 +4085,9 @@ type TemplateDeleteCall struct { } // Delete: Deletes a template +// +// - tableId: Table from which the template is being deleted. +// - templateId: Identifier for the template which is being deleted. func (r *TemplateService) Delete(tableId string, templateId int64) *TemplateDeleteCall { c := &TemplateDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -5411,23 +4096,21 @@ func (r *TemplateService) Delete(tableId string, templateId int64) *TemplateDele } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplateDeleteCall) Fields(s ...googleapi.Field) *TemplateDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplateDeleteCall) Context(ctx context.Context) *TemplateDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplateDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5436,12 +4119,7 @@ func (c *TemplateDeleteCall) Header() http.Header { } func (c *TemplateDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5456,7 +4134,7 @@ func (c *TemplateDeleteCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "templateId": strconv.FormatInt(c.templateId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.delete" call. @@ -5468,41 +4146,10 @@ func (c *TemplateDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a template", - // "httpMethod": "DELETE", - // "id": "fusiontables.template.delete", - // "parameterOrder": [ - // "tableId", - // "templateId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table from which the template is being deleted", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "templateId": { - // "description": "Identifier for the template which is being deleted", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "tables/{tableId}/templates/{templateId}", - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.template.get": +} type TemplateGetCall struct { s *Service @@ -5515,6 +4162,9 @@ type TemplateGetCall struct { } // Get: Retrieves a specific template by its id +// +// - tableId: Table to which the template belongs. +// - templateId: Identifier for the template that is being requested. func (r *TemplateService) Get(tableId string, templateId int64) *TemplateGetCall { c := &TemplateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -5523,33 +4173,29 @@ func (r *TemplateService) Get(tableId string, templateId int64) *TemplateGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplateGetCall) Fields(s ...googleapi.Field) *TemplateGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TemplateGetCall) IfNoneMatch(entityTag string) *TemplateGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplateGetCall) Context(ctx context.Context) *TemplateGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplateGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5558,12 +4204,7 @@ func (c *TemplateGetCall) Header() http.Header { } func (c *TemplateGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5581,16 +4222,14 @@ func (c *TemplateGetCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "templateId": strconv.FormatInt(c.templateId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.get" call. -// Exactly one of *Template or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Template.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Template.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TemplateGetCall) Do(opts ...googleapi.CallOption) (*Template, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5598,17 +4237,17 @@ func (c *TemplateGetCall) Do(opts ...googleapi.CallOption) (*Template, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Template{ ServerResponse: googleapi.ServerResponse{ @@ -5621,42 +4260,7 @@ func (c *TemplateGetCall) Do(opts ...googleapi.CallOption) (*Template, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a specific template by its id", - // "httpMethod": "GET", - // "id": "fusiontables.template.get", - // "parameterOrder": [ - // "tableId", - // "templateId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table to which the template belongs", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "templateId": { - // "description": "Identifier for the template that is being requested", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "tables/{tableId}/templates/{templateId}", - // "response": { - // "$ref": "Template" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.template.insert": +} type TemplateInsertCall struct { s *Service @@ -5668,6 +4272,8 @@ type TemplateInsertCall struct { } // Insert: Creates a new template for the table. +// +// - tableId: Table for which a new template is being created. func (r *TemplateService) Insert(tableId string, template *Template) *TemplateInsertCall { c := &TemplateInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -5676,23 +4282,21 @@ func (r *TemplateService) Insert(tableId string, template *Template) *TemplateIn } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplateInsertCall) Fields(s ...googleapi.Field) *TemplateInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplateInsertCall) Context(ctx context.Context) *TemplateInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplateInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5701,18 +4305,12 @@ func (c *TemplateInsertCall) Header() http.Header { } func (c *TemplateInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.template) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/templates") @@ -5725,16 +4323,14 @@ func (c *TemplateInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.insert" call. -// Exactly one of *Template or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Template.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Template.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TemplateInsertCall) Do(opts ...googleapi.CallOption) (*Template, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5742,17 +4338,17 @@ func (c *TemplateInsertCall) Do(opts ...googleapi.CallOption) (*Template, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Template{ ServerResponse: googleapi.ServerResponse{ @@ -5765,36 +4361,7 @@ func (c *TemplateInsertCall) Do(opts ...googleapi.CallOption) (*Template, error) return nil, err } return ret, nil - // { - // "description": "Creates a new template for the table.", - // "httpMethod": "POST", - // "id": "fusiontables.template.insert", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table for which a new template is being created", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/templates", - // "request": { - // "$ref": "Template" - // }, - // "response": { - // "$ref": "Template" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.template.list": +} type TemplateListCall struct { s *Service @@ -5806,14 +4373,16 @@ type TemplateListCall struct { } // List: Retrieves a list of templates. +// +// - tableId: Identifier for the table whose templates are being requested. func (r *TemplateService) List(tableId string) *TemplateListCall { c := &TemplateListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of templates to return. Default is 5. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// templates to return. Default is 5. func (c *TemplateListCall) MaxResults(maxResults int64) *TemplateListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -5827,33 +4396,29 @@ func (c *TemplateListCall) PageToken(pageToken string) *TemplateListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplateListCall) Fields(s ...googleapi.Field) *TemplateListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TemplateListCall) IfNoneMatch(entityTag string) *TemplateListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplateListCall) Context(ctx context.Context) *TemplateListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplateListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5862,12 +4427,7 @@ func (c *TemplateListCall) Header() http.Header { } func (c *TemplateListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5884,16 +4444,14 @@ func (c *TemplateListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.list" call. -// Exactly one of *TemplateList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *TemplateList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TemplateList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TemplateListCall) Do(opts ...googleapi.CallOption) (*TemplateList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5901,17 +4459,17 @@ func (c *TemplateListCall) Do(opts ...googleapi.CallOption) (*TemplateList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TemplateList{ ServerResponse: googleapi.ServerResponse{ @@ -5924,43 +4482,6 @@ func (c *TemplateListCall) Do(opts ...googleapi.CallOption) (*TemplateList, erro return nil, err } return ret, nil - // { - // "description": "Retrieves a list of templates.", - // "httpMethod": "GET", - // "id": "fusiontables.template.list", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "maxResults": { - // "description": "Maximum number of templates to return. Optional. Default is 5.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token specifying which results page to return. Optional.", - // "location": "query", - // "type": "string" - // }, - // "tableId": { - // "description": "Identifier for the table whose templates are being requested", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/templates", - // "response": { - // "$ref": "TemplateList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -5968,7 +4489,7 @@ func (c *TemplateListCall) Do(opts ...googleapi.CallOption) (*TemplateList, erro // The provided context supersedes any context provided to the Context method. func (c *TemplateListCall) Pages(ctx context.Context, f func(*TemplateList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5984,8 +4505,6 @@ func (c *TemplateListCall) Pages(ctx context.Context, f func(*TemplateList) erro } } -// method id "fusiontables.template.patch": - type TemplatePatchCall struct { s *Service tableId string @@ -5996,8 +4515,10 @@ type TemplatePatchCall struct { header_ http.Header } -// Patch: Updates an existing template. This method supports patch -// semantics. +// Patch: Updates an existing template. This method supports patch semantics. +// +// - tableId: Table to which the updated template belongs. +// - templateId: Identifier for the template that is being updated. func (r *TemplateService) Patch(tableId string, templateId int64, template *Template) *TemplatePatchCall { c := &TemplatePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -6007,23 +4528,21 @@ func (r *TemplateService) Patch(tableId string, templateId int64, template *Temp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplatePatchCall) Fields(s ...googleapi.Field) *TemplatePatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplatePatchCall) Context(ctx context.Context) *TemplatePatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplatePatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6032,18 +4551,12 @@ func (c *TemplatePatchCall) Header() http.Header { } func (c *TemplatePatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.template) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/templates/{templateId}") @@ -6057,16 +4570,14 @@ func (c *TemplatePatchCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "templateId": strconv.FormatInt(c.templateId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.patch" call. -// Exactly one of *Template or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Template.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Template.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TemplatePatchCall) Do(opts ...googleapi.CallOption) (*Template, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6074,17 +4585,17 @@ func (c *TemplatePatchCall) Do(opts ...googleapi.CallOption) (*Template, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Template{ ServerResponse: googleapi.ServerResponse{ @@ -6097,44 +4608,7 @@ func (c *TemplatePatchCall) Do(opts ...googleapi.CallOption) (*Template, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing template. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "fusiontables.template.patch", - // "parameterOrder": [ - // "tableId", - // "templateId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table to which the updated template belongs", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "templateId": { - // "description": "Identifier for the template that is being updated", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "tables/{tableId}/templates/{templateId}", - // "request": { - // "$ref": "Template" - // }, - // "response": { - // "$ref": "Template" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.template.update": +} type TemplateUpdateCall struct { s *Service @@ -6147,6 +4621,9 @@ type TemplateUpdateCall struct { } // Update: Updates an existing template +// +// - tableId: Table to which the updated template belongs. +// - templateId: Identifier for the template that is being updated. func (r *TemplateService) Update(tableId string, templateId int64, template *Template) *TemplateUpdateCall { c := &TemplateUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -6156,23 +4633,21 @@ func (r *TemplateService) Update(tableId string, templateId int64, template *Tem } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplateUpdateCall) Fields(s ...googleapi.Field) *TemplateUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplateUpdateCall) Context(ctx context.Context) *TemplateUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplateUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6181,18 +4656,12 @@ func (c *TemplateUpdateCall) Header() http.Header { } func (c *TemplateUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.template) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/templates/{templateId}") @@ -6206,16 +4675,14 @@ func (c *TemplateUpdateCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "templateId": strconv.FormatInt(c.templateId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.update" call. -// Exactly one of *Template or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Template.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Template.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TemplateUpdateCall) Do(opts ...googleapi.CallOption) (*Template, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6223,17 +4690,17 @@ func (c *TemplateUpdateCall) Do(opts ...googleapi.CallOption) (*Template, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Template{ ServerResponse: googleapi.ServerResponse{ @@ -6246,39 +4713,4 @@ func (c *TemplateUpdateCall) Do(opts ...googleapi.CallOption) (*Template, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing template", - // "httpMethod": "PUT", - // "id": "fusiontables.template.update", - // "parameterOrder": [ - // "tableId", - // "templateId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table to which the updated template belongs", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "templateId": { - // "description": "Identifier for the template that is being updated", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "tables/{tableId}/templates/{templateId}", - // "request": { - // "$ref": "Template" - // }, - // "response": { - // "$ref": "Template" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - } diff --git a/fusiontables/v2/fusiontables-gen.go b/fusiontables/v2/fusiontables-gen.go index 720a23f8f7c..4158d1c3980 100644 --- a/fusiontables/v2/fusiontables-gen.go +++ b/fusiontables/v2/fusiontables-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/fusiontables // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // fusiontablesService, err := fusiontables.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // fusiontablesService, err := fusiontables.NewService(ctx, option.WithScopes(fusiontables.FusiontablesReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // fusiontablesService, err := fusiontables.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // fusiontablesService, err := fusiontables.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package fusiontables // import "google.golang.org/api/fusiontables/v2" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "fusiontables:v2" const apiName = "fusiontables" const apiVersion = "v2" const basePath = "https://www.googleapis.com/fusiontables/v2/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/fusiontables/v2/" // OAuth2 scopes used by this API. const ( @@ -89,12 +108,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -207,50 +229,39 @@ type TemplateService struct { s *Service } -// Bucket: Specifies the minimum and maximum values, the color, opacity, -// icon and weight of a bucket within a StyleSetting. +// Bucket: Specifies the minimum and maximum values, the color, opacity, icon +// and weight of a bucket within a StyleSetting. type Bucket struct { // Color: Color of line or the interior of a polygon in #RRGGBB format. Color string `json:"color,omitempty"` - // Icon: Icon name used for a point. Icon string `json:"icon,omitempty"` - - // Max: Maximum value in the selected column for a row to be styled - // according to the bucket color, opacity, icon, or weight. + // Max: Maximum value in the selected column for a row to be styled according + // to the bucket color, opacity, icon, or weight. Max float64 `json:"max,omitempty"` - - // Min: Minimum value in the selected column for a row to be styled - // according to the bucket color, opacity, icon, or weight. + // Min: Minimum value in the selected column for a row to be styled according + // to the bucket color, opacity, icon, or weight. Min float64 `json:"min,omitempty"` - // Opacity: Opacity of the color: 0.0 (transparent) to 1.0 (opaque). Opacity float64 `json:"opacity,omitempty"` - // Weight: Width of a line (in pixels). Weight int64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Color") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Color") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Color") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Bucket) MarshalJSON() ([]byte, error) { +func (s Bucket) MarshalJSON() ([]byte, error) { type NoMethod Bucket - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Bucket) UnmarshalJSON(data []byte) error { @@ -276,207 +287,159 @@ type Column struct { // BaseColumn: Identifier of the base column. If present, this column is // derived from the specified base column. BaseColumn *ColumnBaseColumn `json:"baseColumn,omitempty"` - // ColumnId: Identifier for the column. ColumnId int64 `json:"columnId,omitempty"` - // ColumnJsonSchema: JSON schema for interpreting JSON in this column. ColumnJsonSchema string `json:"columnJsonSchema,omitempty"` - - // ColumnPropertiesJson: JSON object containing custom column - // properties. + // ColumnPropertiesJson: JSON object containing custom column properties. ColumnPropertiesJson string `json:"columnPropertiesJson,omitempty"` - // Description: Column description. Description string `json:"description,omitempty"` - // FormatPattern: Format pattern. // Acceptable values are DT_DATE_MEDIUMe.g Dec 24, 2008 DT_DATE_SHORTfor - // example 12/24/08 DT_DATE_TIME_MEDIUMfor example Dec 24, 2008 8:30:45 - // PM DT_DATE_TIME_SHORTfor example 12/24/08 8:30 PM - // DT_DAY_MONTH_2_DIGIT_YEARfor example 24/12/08 - // DT_DAY_MONTH_2_DIGIT_YEAR_TIMEfor example 24/12/08 20:30 + // example 12/24/08 DT_DATE_TIME_MEDIUMfor example Dec 24, 2008 8:30:45 PM + // DT_DATE_TIME_SHORTfor example 12/24/08 8:30 PM DT_DAY_MONTH_2_DIGIT_YEARfor + // example 24/12/08 DT_DAY_MONTH_2_DIGIT_YEAR_TIMEfor example 24/12/08 20:30 // DT_DAY_MONTH_2_DIGIT_YEAR_TIME_MERIDIANfor example 24/12/08 8:30 PM // DT_DAY_MONTH_4_DIGIT_YEARfor example 24/12/2008 // DT_DAY_MONTH_4_DIGIT_YEAR_TIMEfor example 24/12/2008 20:30 // DT_DAY_MONTH_4_DIGIT_YEAR_TIME_MERIDIANfor example 24/12/2008 8:30 PM - // DT_ISO_YEAR_MONTH_DAYfor example 2008-12-24 - // DT_ISO_YEAR_MONTH_DAY_TIMEfor example 2008-12-24 20:30:45 - // DT_MONTH_DAY_4_DIGIT_YEARfor example 12/24/2008 DT_TIME_LONGfor - // example 8:30:45 PM UTC-6 DT_TIME_MEDIUMfor example 8:30:45 PM - // DT_TIME_SHORTfor example 8:30 PM DT_YEAR_ONLYfor example 2008 - // HIGHLIGHT_UNTYPED_CELLSHighlight cell data that does not match the - // data type NONENo formatting (default) NUMBER_CURRENCYfor example - // $1234.56 NUMBER_DEFAULTfor example 1,234.56 NUMBER_INTEGERfor example - // 1235 NUMBER_NO_SEPARATORfor example 1234.56 NUMBER_PERCENTfor example - // 123,456% NUMBER_SCIENTIFICfor example 1E3 - // STRING_EIGHT_LINE_IMAGEDisplays thumbnail images as tall as eight - // lines of text STRING_FOUR_LINE_IMAGEDisplays thumbnail images as tall - // as four lines of text STRING_JSON_TEXTAllows editing of text as JSON - // in UI STRING_JSON_LISTAllows editing of text as a JSON list in UI - // STRING_LINKTreats cell as a link (must start with http:// or - // https://) STRING_ONE_LINE_IMAGEDisplays thumbnail images as tall as - // one line of text STRING_VIDEO_OR_MAPDisplay a video or map thumbnail + // DT_ISO_YEAR_MONTH_DAYfor example 2008-12-24 DT_ISO_YEAR_MONTH_DAY_TIMEfor + // example 2008-12-24 20:30:45 DT_MONTH_DAY_4_DIGIT_YEARfor example 12/24/2008 + // DT_TIME_LONGfor example 8:30:45 PM UTC-6 DT_TIME_MEDIUMfor example 8:30:45 + // PM DT_TIME_SHORTfor example 8:30 PM DT_YEAR_ONLYfor example 2008 + // HIGHLIGHT_UNTYPED_CELLSHighlight cell data that does not match the data type + // NONENo formatting (default) NUMBER_CURRENCYfor example $1234.56 + // NUMBER_DEFAULTfor example 1,234.56 NUMBER_INTEGERfor example 1235 + // NUMBER_NO_SEPARATORfor example 1234.56 NUMBER_PERCENTfor example 123,456% + // NUMBER_SCIENTIFICfor example 1E3 STRING_EIGHT_LINE_IMAGEDisplays thumbnail + // images as tall as eight lines of text STRING_FOUR_LINE_IMAGEDisplays + // thumbnail images as tall as four lines of text STRING_JSON_TEXTAllows + // editing of text as JSON in UI STRING_JSON_LISTAllows editing of text as a + // JSON list in UI STRING_LINKTreats cell as a link (must start with http:// or + // https://) STRING_ONE_LINE_IMAGEDisplays thumbnail images as tall as one line + // of text STRING_VIDEO_OR_MAPDisplay a video or map thumbnail FormatPattern string `json:"formatPattern,omitempty"` - // GraphPredicate: Column graph predicate. // Used to map table to graph data model (subject,predicate,object) // See W3C Graph-based Data Model. GraphPredicate string `json:"graphPredicate,omitempty"` - // Kind: The kind of item this is. For a column, this is always // fusiontables#column. Kind string `json:"kind,omitempty"` - // Name: Name of the column. Name string `json:"name,omitempty"` - // Type: Type of the column. Type string `json:"type,omitempty"` - // ValidValues: List of valid values used to validate data and supply a // drop-down list of values in the web application. ValidValues []string `json:"validValues,omitempty"` - - // ValidateData: If true, data entered via the web application is - // validated. + // ValidateData: If true, data entered via the web application is validated. ValidateData bool `json:"validateData,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BaseColumn") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BaseColumn") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BaseColumn") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Column) MarshalJSON() ([]byte, error) { +func (s Column) MarshalJSON() ([]byte, error) { type NoMethod Column - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ColumnBaseColumn: Identifier of the base column. If present, this -// column is derived from the specified base column. +// ColumnBaseColumn: Identifier of the base column. If present, this column is +// derived from the specified base column. type ColumnBaseColumn struct { - // ColumnId: The id of the column in the base table from which this - // column is derived. + // ColumnId: The id of the column in the base table from which this column is + // derived. ColumnId int64 `json:"columnId,omitempty"` - - // TableIndex: Offset to the entry in the list of base tables in the - // table definition. + // TableIndex: Offset to the entry in the list of base tables in the table + // definition. TableIndex int64 `json:"tableIndex,omitempty"` - // ForceSendFields is a list of field names (e.g. "ColumnId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ColumnId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ColumnId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ColumnBaseColumn) MarshalJSON() ([]byte, error) { +func (s ColumnBaseColumn) MarshalJSON() ([]byte, error) { type NoMethod ColumnBaseColumn - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ColumnList: Represents a list of columns in a table. type ColumnList struct { // Items: List of all requested columns. Items []*Column `json:"items,omitempty"` - // Kind: The kind of item this is. For a column list, this is always // fusiontables#columnList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Token used to access the next page of this result. No - // token is displayed if there are no more pages left. + // NextPageToken: Token used to access the next page of this result. No token + // is displayed if there are no more pages left. NextPageToken string `json:"nextPageToken,omitempty"` - // TotalItems: Total number of columns for the table. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ColumnList) MarshalJSON() ([]byte, error) { +func (s ColumnList) MarshalJSON() ([]byte, error) { type NoMethod ColumnList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Geometry: Represents a Geometry object. type Geometry struct { // Geometries: The list of geometries in this geometry collection. Geometries []interface{} `json:"geometries,omitempty"` - - Geometry interface{} `json:"geometry,omitempty"` - + Geometry interface{} `json:"geometry,omitempty"` // Type: Type: A collection of geometries. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Geometries") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Geometries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Geometries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Geometry) MarshalJSON() ([]byte, error) { +func (s Geometry) MarshalJSON() ([]byte, error) { type NoMethod Geometry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Import: Represents an import request. @@ -484,109 +447,83 @@ type Import struct { // Kind: The kind of item this is. For an import, this is always // fusiontables#import. Kind string `json:"kind,omitempty"` - // NumRowsReceived: The number of rows received from the import request. NumRowsReceived int64 `json:"numRowsReceived,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Import) MarshalJSON() ([]byte, error) { +func (s Import) MarshalJSON() ([]byte, error) { type NoMethod Import - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Line: Represents a line geometry. type Line struct { // Coordinates: The coordinates that define the line. Coordinates [][]float64 `json:"coordinates,omitempty"` - // Type: Type: A line geometry. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Coordinates") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Coordinates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Coordinates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Line) MarshalJSON() ([]byte, error) { +func (s Line) MarshalJSON() ([]byte, error) { type NoMethod Line - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LineStyle: Represents a LineStyle within a StyleSetting type LineStyle struct { // StrokeColor: Color of the line in #RRGGBB format. StrokeColor string `json:"strokeColor,omitempty"` - - // StrokeColorStyler: Column-value, gradient or buckets styler that is - // used to determine the line color and opacity. + // StrokeColorStyler: Column-value, gradient or buckets styler that is used to + // determine the line color and opacity. StrokeColorStyler *StyleFunction `json:"strokeColorStyler,omitempty"` - - // StrokeOpacity: Opacity of the line : 0.0 (transparent) to 1.0 - // (opaque). + // StrokeOpacity: Opacity of the line : 0.0 (transparent) to 1.0 (opaque). StrokeOpacity float64 `json:"strokeOpacity,omitempty"` - // StrokeWeight: Width of the line in pixels. StrokeWeight int64 `json:"strokeWeight,omitempty"` - - // StrokeWeightStyler: Column-value or bucket styler that is used to - // determine the width of the line. + // StrokeWeightStyler: Column-value or bucket styler that is used to determine + // the width of the line. StrokeWeightStyler *StyleFunction `json:"strokeWeightStyler,omitempty"` - // ForceSendFields is a list of field names (e.g. "StrokeColor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StrokeColor") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StrokeColor") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LineStyle) MarshalJSON() ([]byte, error) { +func (s LineStyle) MarshalJSON() ([]byte, error) { type NoMethod LineStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *LineStyle) UnmarshalJSON(data []byte) error { @@ -607,31 +544,41 @@ func (s *LineStyle) UnmarshalJSON(data []byte) error { type Point struct { // Coordinates: The coordinates that define the point. Coordinates []float64 `json:"coordinates,omitempty"` - // Type: Point: A point geometry. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Coordinates") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Coordinates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Coordinates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Point) MarshalJSON() ([]byte, error) { +func (s Point) MarshalJSON() ([]byte, error) { type NoMethod Point - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *Point) UnmarshalJSON(data []byte) error { + type NoMethod Point + var s1 struct { + Coordinates []gensupport.JSONFloat64 `json:"coordinates"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Coordinates = make([]float64, len(s1.Coordinates)) + for i := range s1.Coordinates { + s.Coordinates[i] = float64(s1.Coordinates[i]) + } + return nil } // PointStyle: Represents a PointStyle within a StyleSetting @@ -639,117 +586,90 @@ type PointStyle struct { // IconName: Name of the icon. Use values defined in // http://www.google.com/fusiontables/DataSource?dsrcid=308519 IconName string `json:"iconName,omitempty"` - - // IconStyler: Column or a bucket value from which the icon name is to - // be determined. + // IconStyler: Column or a bucket value from which the icon name is to be + // determined. IconStyler *StyleFunction `json:"iconStyler,omitempty"` - // ForceSendFields is a list of field names (e.g. "IconName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IconName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IconName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PointStyle) MarshalJSON() ([]byte, error) { +func (s PointStyle) MarshalJSON() ([]byte, error) { type NoMethod PointStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Polygon: Represents a polygon object. type Polygon struct { // Coordinates: The coordinates that define the polygon. Coordinates [][][]float64 `json:"coordinates,omitempty"` - // Type: Type: A polygon geometry. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Coordinates") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Coordinates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Coordinates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Polygon) MarshalJSON() ([]byte, error) { +func (s Polygon) MarshalJSON() ([]byte, error) { type NoMethod Polygon - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PolygonStyle: Represents a PolygonStyle within a StyleSetting type PolygonStyle struct { // FillColor: Color of the interior of the polygon in #RRGGBB format. FillColor string `json:"fillColor,omitempty"` - - // FillColorStyler: Column-value, gradient, or bucket styler that is - // used to determine the interior color and opacity of the polygon. + // FillColorStyler: Column-value, gradient, or bucket styler that is used to + // determine the interior color and opacity of the polygon. FillColorStyler *StyleFunction `json:"fillColorStyler,omitempty"` - - // FillOpacity: Opacity of the interior of the polygon: 0.0 - // (transparent) to 1.0 (opaque). + // FillOpacity: Opacity of the interior of the polygon: 0.0 (transparent) to + // 1.0 (opaque). FillOpacity float64 `json:"fillOpacity,omitempty"` - // StrokeColor: Color of the polygon border in #RRGGBB format. StrokeColor string `json:"strokeColor,omitempty"` - - // StrokeColorStyler: Column-value, gradient or buckets styler that is - // used to determine the border color and opacity. + // StrokeColorStyler: Column-value, gradient or buckets styler that is used to + // determine the border color and opacity. StrokeColorStyler *StyleFunction `json:"strokeColorStyler,omitempty"` - - // StrokeOpacity: Opacity of the polygon border: 0.0 (transparent) to - // 1.0 (opaque). + // StrokeOpacity: Opacity of the polygon border: 0.0 (transparent) to 1.0 + // (opaque). StrokeOpacity float64 `json:"strokeOpacity,omitempty"` - // StrokeWeight: Width of the polyon border in pixels. StrokeWeight int64 `json:"strokeWeight,omitempty"` - - // StrokeWeightStyler: Column-value or bucket styler that is used to - // determine the width of the polygon border. + // StrokeWeightStyler: Column-value or bucket styler that is used to determine + // the width of the polygon border. StrokeWeightStyler *StyleFunction `json:"strokeWeightStyler,omitempty"` - // ForceSendFields is a list of field names (e.g. "FillColor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FillColor") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FillColor") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PolygonStyle) MarshalJSON() ([]byte, error) { +func (s PolygonStyle) MarshalJSON() ([]byte, error) { type NoMethod PolygonStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PolygonStyle) UnmarshalJSON(data []byte) error { @@ -772,123 +692,96 @@ func (s *PolygonStyle) UnmarshalJSON(data []byte) error { type Sqlresponse struct { // Columns: Columns in the table. Columns []string `json:"columns,omitempty"` - - // Kind: The kind of item this is. For responses to SQL queries, this is - // always fusiontables#sqlresponse. + // Kind: The kind of item this is. For responses to SQL queries, this is always + // fusiontables#sqlresponse. Kind string `json:"kind,omitempty"` - - // Rows: The rows in the table. For each cell we print out whatever cell - // value (e.g., numeric, string) exists. Thus it is important that each - // cell contains only one value. + // Rows: The rows in the table. For each cell we print out whatever cell value + // (e.g., numeric, string) exists. Thus it is important that each cell contains + // only one value. Rows [][]interface{} `json:"rows,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Columns") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Columns") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Columns") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Columns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Sqlresponse) MarshalJSON() ([]byte, error) { +func (s Sqlresponse) MarshalJSON() ([]byte, error) { type NoMethod Sqlresponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StyleFunction: Represents a StyleFunction within a StyleSetting type StyleFunction struct { - // Buckets: Bucket function that assigns a style based on the range a - // column value falls into. + // Buckets: Bucket function that assigns a style based on the range a column + // value falls into. Buckets []*Bucket `json:"buckets,omitempty"` - // ColumnName: Name of the column whose value is used in the style. ColumnName string `json:"columnName,omitempty"` - - // Gradient: Gradient function that interpolates a range of colors based - // on column value. + // Gradient: Gradient function that interpolates a range of colors based on + // column value. Gradient *StyleFunctionGradient `json:"gradient,omitempty"` - - // Kind: Stylers can be one of three kinds: "fusiontables#fromColumn if - // the column value is to be used as is, i.e., the column values can - // have colors in #RRGGBBAA format or integer line widths or icon names; - // fusiontables#gradient if the styling of the row is to be based on - // applying the gradient function on the column value; or - // fusiontables#buckets if the styling is to based on the bucket into - // which the the column value falls. + // Kind: Stylers can be one of three kinds: "fusiontables#fromColumn if the + // column value is to be used as is, i.e., the column values can have colors in + // #RRGGBBAA format or integer line widths or icon names; fusiontables#gradient + // if the styling of the row is to be based on applying the gradient function + // on the column value; or fusiontables#buckets if the styling is to based on + // the bucket into which the the column value falls. Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buckets") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Buckets") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Buckets") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StyleFunction) MarshalJSON() ([]byte, error) { +func (s StyleFunction) MarshalJSON() ([]byte, error) { type NoMethod StyleFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StyleFunctionGradient: Gradient function that interpolates a range of -// colors based on column value. +// StyleFunctionGradient: Gradient function that interpolates a range of colors +// based on column value. type StyleFunctionGradient struct { // Colors: Array with two or more colors. Colors []*StyleFunctionGradientColors `json:"colors,omitempty"` - - // Max: Higher-end of the interpolation range: rows with this value will - // be assigned to colors[n-1]. + // Max: Higher-end of the interpolation range: rows with this value will be + // assigned to colors[n-1]. Max float64 `json:"max,omitempty"` - - // Min: Lower-end of the interpolation range: rows with this value will - // be assigned to colors[0]. + // Min: Lower-end of the interpolation range: rows with this value will be + // assigned to colors[0]. Min float64 `json:"min,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Colors") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Colors") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Colors") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StyleFunctionGradient) MarshalJSON() ([]byte, error) { +func (s StyleFunctionGradient) MarshalJSON() ([]byte, error) { type NoMethod StyleFunctionGradient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *StyleFunctionGradient) UnmarshalJSON(data []byte) error { @@ -910,31 +803,24 @@ func (s *StyleFunctionGradient) UnmarshalJSON(data []byte) error { type StyleFunctionGradientColors struct { // Color: Color in #RRGGBB format. Color string `json:"color,omitempty"` - // Opacity: Opacity of the color: 0.0 (transparent) to 1.0 (opaque). Opacity float64 `json:"opacity,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Color") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Color") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Color") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StyleFunctionGradientColors) MarshalJSON() ([]byte, error) { +func (s StyleFunctionGradientColors) MarshalJSON() ([]byte, error) { type NoMethod StyleFunctionGradientColors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *StyleFunctionGradientColors) UnmarshalJSON(data []byte) error { @@ -951,406 +837,305 @@ func (s *StyleFunctionGradientColors) UnmarshalJSON(data []byte) error { return nil } -// StyleSetting: Represents a complete StyleSettings object. The primary -// key is a combination of the tableId and a styleId. +// StyleSetting: Represents a complete StyleSettings object. The primary key is +// a combination of the tableId and a styleId. type StyleSetting struct { // Kind: The kind of item this is. A StyleSetting contains the style - // definitions for points, lines, and polygons in a table. Since a table - // can have any one or all of them, a style definition can have point, - // line and polygon style definitions. + // definitions for points, lines, and polygons in a table. Since a table can + // have any one or all of them, a style definition can have point, line and + // polygon style definitions. Kind string `json:"kind,omitempty"` - // MarkerOptions: Style definition for points in the table. MarkerOptions *PointStyle `json:"markerOptions,omitempty"` - // Name: Optional name for the style setting. Name string `json:"name,omitempty"` - // PolygonOptions: Style definition for polygons in the table. PolygonOptions *PolygonStyle `json:"polygonOptions,omitempty"` - // PolylineOptions: Style definition for lines in the table. PolylineOptions *LineStyle `json:"polylineOptions,omitempty"` - - // StyleId: Identifier for the style setting (unique only within - // tables). + // StyleId: Identifier for the style setting (unique only within tables). StyleId int64 `json:"styleId,omitempty"` - // TableId: Identifier for the table. TableId string `json:"tableId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StyleSetting) MarshalJSON() ([]byte, error) { +func (s StyleSetting) MarshalJSON() ([]byte, error) { type NoMethod StyleSetting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StyleSettingList: Represents a list of styles for a given table. type StyleSettingList struct { // Items: All requested style settings. Items []*StyleSetting `json:"items,omitempty"` - // Kind: The kind of item this is. For a style list, this is always // fusiontables#styleSettingList . Kind string `json:"kind,omitempty"` - - // NextPageToken: Token used to access the next page of this result. No - // token is displayed if there are no more styles left. + // NextPageToken: Token used to access the next page of this result. No token + // is displayed if there are no more styles left. NextPageToken string `json:"nextPageToken,omitempty"` - // TotalItems: Total number of styles for the table. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StyleSettingList) MarshalJSON() ([]byte, error) { +func (s StyleSettingList) MarshalJSON() ([]byte, error) { type NoMethod StyleSettingList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Table: Represents a table. type Table struct { // Attribution: Attribution assigned to the table. Attribution string `json:"attribution,omitempty"` - // AttributionLink: Optional link for attribution. AttributionLink string `json:"attributionLink,omitempty"` - - // BaseTableIds: Base table identifier if this table is a view or merged - // table. + // BaseTableIds: Base table identifier if this table is a view or merged table. BaseTableIds []string `json:"baseTableIds,omitempty"` - - // ColumnPropertiesJsonSchema: Default JSON schema for validating all - // JSON column properties. + // ColumnPropertiesJsonSchema: Default JSON schema for validating all JSON + // column properties. ColumnPropertiesJsonSchema string `json:"columnPropertiesJsonSchema,omitempty"` - // Columns: Columns in the table. Columns []*Column `json:"columns,omitempty"` - // Description: Description assigned to the table. Description string `json:"description,omitempty"` - // IsExportable: Variable for whether table is exportable. IsExportable bool `json:"isExportable,omitempty"` - // Kind: The kind of item this is. For a table, this is always // fusiontables#table. Kind string `json:"kind,omitempty"` - // Name: Name assigned to a table. Name string `json:"name,omitempty"` - // Sql: SQL that encodes the table definition for derived tables. Sql string `json:"sql,omitempty"` - // TableId: Encrypted unique alphanumeric identifier for the table. TableId string `json:"tableId,omitempty"` - // TablePropertiesJson: JSON object containing custom table properties. TablePropertiesJson string `json:"tablePropertiesJson,omitempty"` - // TablePropertiesJsonSchema: JSON schema for validating the JSON table // properties. TablePropertiesJsonSchema string `json:"tablePropertiesJsonSchema,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Attribution") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attribution") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attribution") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Table) MarshalJSON() ([]byte, error) { +func (s Table) MarshalJSON() ([]byte, error) { type NoMethod Table - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TableList: Represents a list of tables. type TableList struct { // Items: List of all requested tables. Items []*Table `json:"items,omitempty"` - // Kind: The kind of item this is. For table list, this is always // fusiontables#tableList. Kind string `json:"kind,omitempty"` - - // NextPageToken: Token used to access the next page of this result. No - // token is displayed if there are no more pages left. + // NextPageToken: Token used to access the next page of this result. No token + // is displayed if there are no more pages left. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TableList) MarshalJSON() ([]byte, error) { +func (s TableList) MarshalJSON() ([]byte, error) { type NoMethod TableList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Task: A background task on a table, initiated for time- or -// resource-consuming operations such as changing column types or -// deleting all rows. +// resource-consuming operations such as changing column types or deleting all +// rows. type Task struct { // Kind: Type of the resource. This is always "fusiontables#task". Kind string `json:"kind,omitempty"` - // Progress: Task percentage completion. Progress string `json:"progress,omitempty"` - - // Started: false while the table is busy with some other task. true if - // this background task is currently running. + // Started: false while the table is busy with some other task. true if this + // background task is currently running. Started bool `json:"started,omitempty"` - // TaskId: Identifier for the task. TaskId int64 `json:"taskId,omitempty,string"` - // Type: Type of background task. Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Task) MarshalJSON() ([]byte, error) { +func (s Task) MarshalJSON() ([]byte, error) { type NoMethod Task - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TaskList: Represents a list of tasks for a table. type TaskList struct { // Items: List of all requested tasks. Items []*Task `json:"items,omitempty"` - // Kind: Type of the resource. This is always "fusiontables#taskList". Kind string `json:"kind,omitempty"` - - // NextPageToken: Token used to access the next page of this result. No - // token is displayed if there are no more pages left. + // NextPageToken: Token used to access the next page of this result. No token + // is displayed if there are no more pages left. NextPageToken string `json:"nextPageToken,omitempty"` - // TotalItems: Total number of tasks for the table. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TaskList) MarshalJSON() ([]byte, error) { +func (s TaskList) MarshalJSON() ([]byte, error) { type NoMethod TaskList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Template: Represents the contents of InfoWindow templates. type Template struct { - // AutomaticColumnNames: List of columns from which the template is to - // be automatically constructed. Only one of body or automaticColumns - // can be specified. + // AutomaticColumnNames: List of columns from which the template is to be + // automatically constructed. Only one of body or automaticColumns can be + // specified. AutomaticColumnNames []string `json:"automaticColumnNames,omitempty"` - - // Body: Body of the template. It contains HTML with {column_name} to - // insert values from a particular column. The body is sanitized to - // remove certain tags, e.g., script. Only one of body or - // automaticColumns can be specified. + // Body: Body of the template. It contains HTML with {column_name} to insert + // values from a particular column. The body is sanitized to remove certain + // tags, e.g., script. Only one of body or automaticColumns can be specified. Body string `json:"body,omitempty"` - // Kind: The kind of item this is. For a template, this is always // fusiontables#template. Kind string `json:"kind,omitempty"` - // Name: Optional name assigned to a template. Name string `json:"name,omitempty"` - // TableId: Identifier for the table for which the template is defined. TableId string `json:"tableId,omitempty"` - - // TemplateId: Identifier for the template, unique within the context of - // a particular table. + // TemplateId: Identifier for the template, unique within the context of a + // particular table. TemplateId int64 `json:"templateId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AutomaticColumnNames") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AutomaticColumnNames") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutomaticColumnNames") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AutomaticColumnNames") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Template) MarshalJSON() ([]byte, error) { +func (s Template) MarshalJSON() ([]byte, error) { type NoMethod Template - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TemplateList: Represents a list of templates for a given table. type TemplateList struct { // Items: List of all requested templates. Items []*Template `json:"items,omitempty"` - // Kind: The kind of item this is. For a template list, this is always // fusiontables#templateList . Kind string `json:"kind,omitempty"` - - // NextPageToken: Token used to access the next page of this result. No - // token is displayed if there are no more pages left. + // NextPageToken: Token used to access the next page of this result. No token + // is displayed if there are no more pages left. NextPageToken string `json:"nextPageToken,omitempty"` - // TotalItems: Total number of templates for the table. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TemplateList) MarshalJSON() ([]byte, error) { +func (s TemplateList) MarshalJSON() ([]byte, error) { type NoMethod TemplateList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "fusiontables.column.delete": - type ColumnDeleteCall struct { s *Service tableId string @@ -1361,6 +1146,9 @@ type ColumnDeleteCall struct { } // Delete: Deletes the specified column. +// +// - columnId: Name or identifier for the column being deleted. +// - tableId: Table from which the column is being deleted. func (r *ColumnService) Delete(tableId string, columnId string) *ColumnDeleteCall { c := &ColumnDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -1369,23 +1157,21 @@ func (r *ColumnService) Delete(tableId string, columnId string) *ColumnDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnDeleteCall) Fields(s ...googleapi.Field) *ColumnDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnDeleteCall) Context(ctx context.Context) *ColumnDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1394,12 +1180,7 @@ func (c *ColumnDeleteCall) Header() http.Header { } func (c *ColumnDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1414,7 +1195,7 @@ func (c *ColumnDeleteCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "columnId": c.columnId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.delete" call. @@ -1426,40 +1207,10 @@ func (c *ColumnDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes the specified column.", - // "httpMethod": "DELETE", - // "id": "fusiontables.column.delete", - // "parameterOrder": [ - // "tableId", - // "columnId" - // ], - // "parameters": { - // "columnId": { - // "description": "Name or identifier for the column being deleted.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tableId": { - // "description": "Table from which the column is being deleted.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns/{columnId}", - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.column.get": +} type ColumnGetCall struct { s *Service @@ -1472,6 +1223,9 @@ type ColumnGetCall struct { } // Get: Retrieves a specific column by its ID. +// +// - columnId: Name or identifier for the column that is being requested. +// - tableId: Table to which the column belongs. func (r *ColumnService) Get(tableId string, columnId string) *ColumnGetCall { c := &ColumnGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -1480,33 +1234,29 @@ func (r *ColumnService) Get(tableId string, columnId string) *ColumnGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnGetCall) Fields(s ...googleapi.Field) *ColumnGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ColumnGetCall) IfNoneMatch(entityTag string) *ColumnGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnGetCall) Context(ctx context.Context) *ColumnGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1515,12 +1265,7 @@ func (c *ColumnGetCall) Header() http.Header { } func (c *ColumnGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1538,16 +1283,14 @@ func (c *ColumnGetCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "columnId": c.columnId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.get" call. -// Exactly one of *Column or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Column.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Column.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ColumnGetCall) Do(opts ...googleapi.CallOption) (*Column, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1555,17 +1298,17 @@ func (c *ColumnGetCall) Do(opts ...googleapi.CallOption) (*Column, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Column{ ServerResponse: googleapi.ServerResponse{ @@ -1578,41 +1321,7 @@ func (c *ColumnGetCall) Do(opts ...googleapi.CallOption) (*Column, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a specific column by its ID.", - // "httpMethod": "GET", - // "id": "fusiontables.column.get", - // "parameterOrder": [ - // "tableId", - // "columnId" - // ], - // "parameters": { - // "columnId": { - // "description": "Name or identifier for the column that is being requested.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tableId": { - // "description": "Table to which the column belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns/{columnId}", - // "response": { - // "$ref": "Column" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.column.insert": +} type ColumnInsertCall struct { s *Service @@ -1624,6 +1333,8 @@ type ColumnInsertCall struct { } // Insert: Adds a new column to the table. +// +// - tableId: Table for which a new column is being added. func (r *ColumnService) Insert(tableId string, column *Column) *ColumnInsertCall { c := &ColumnInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -1632,23 +1343,21 @@ func (r *ColumnService) Insert(tableId string, column *Column) *ColumnInsertCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnInsertCall) Fields(s ...googleapi.Field) *ColumnInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnInsertCall) Context(ctx context.Context) *ColumnInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1657,18 +1366,12 @@ func (c *ColumnInsertCall) Header() http.Header { } func (c *ColumnInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.column) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/columns") @@ -1681,16 +1384,14 @@ func (c *ColumnInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.insert" call. -// Exactly one of *Column or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Column.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Column.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ColumnInsertCall) Do(opts ...googleapi.CallOption) (*Column, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1698,17 +1399,17 @@ func (c *ColumnInsertCall) Do(opts ...googleapi.CallOption) (*Column, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Column{ ServerResponse: googleapi.ServerResponse{ @@ -1721,36 +1422,7 @@ func (c *ColumnInsertCall) Do(opts ...googleapi.CallOption) (*Column, error) { return nil, err } return ret, nil - // { - // "description": "Adds a new column to the table.", - // "httpMethod": "POST", - // "id": "fusiontables.column.insert", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table for which a new column is being added.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns", - // "request": { - // "$ref": "Column" - // }, - // "response": { - // "$ref": "Column" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.column.list": +} type ColumnListCall struct { s *Service @@ -1762,14 +1434,16 @@ type ColumnListCall struct { } // List: Retrieves a list of columns. +// +// - tableId: Table whose columns are being listed. func (r *ColumnService) List(tableId string) *ColumnListCall { c := &ColumnListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of columns to return. Default is 5. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// columns to return. Default is 5. func (c *ColumnListCall) MaxResults(maxResults int64) *ColumnListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -1783,33 +1457,29 @@ func (c *ColumnListCall) PageToken(pageToken string) *ColumnListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnListCall) Fields(s ...googleapi.Field) *ColumnListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ColumnListCall) IfNoneMatch(entityTag string) *ColumnListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnListCall) Context(ctx context.Context) *ColumnListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1818,12 +1488,7 @@ func (c *ColumnListCall) Header() http.Header { } func (c *ColumnListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1840,16 +1505,14 @@ func (c *ColumnListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.list" call. -// Exactly one of *ColumnList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ColumnList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ColumnList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ColumnListCall) Do(opts ...googleapi.CallOption) (*ColumnList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1857,17 +1520,17 @@ func (c *ColumnListCall) Do(opts ...googleapi.CallOption) (*ColumnList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ColumnList{ ServerResponse: googleapi.ServerResponse{ @@ -1880,43 +1543,6 @@ func (c *ColumnListCall) Do(opts ...googleapi.CallOption) (*ColumnList, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of columns.", - // "httpMethod": "GET", - // "id": "fusiontables.column.list", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "maxResults": { - // "description": "Maximum number of columns to return. Default is 5.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token specifying which result page to return.", - // "location": "query", - // "type": "string" - // }, - // "tableId": { - // "description": "Table whose columns are being listed.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns", - // "response": { - // "$ref": "ColumnList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1924,7 +1550,7 @@ func (c *ColumnListCall) Do(opts ...googleapi.CallOption) (*ColumnList, error) { // The provided context supersedes any context provided to the Context method. func (c *ColumnListCall) Pages(ctx context.Context, f func(*ColumnList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1940,8 +1566,6 @@ func (c *ColumnListCall) Pages(ctx context.Context, f func(*ColumnList) error) e } } -// method id "fusiontables.column.patch": - type ColumnPatchCall struct { s *Service tableId string @@ -1952,8 +1576,11 @@ type ColumnPatchCall struct { header_ http.Header } -// Patch: Updates the name or type of an existing column. This method -// supports patch semantics. +// Patch: Updates the name or type of an existing column. This method supports +// patch semantics. +// +// - columnId: Name or identifier for the column that is being updated. +// - tableId: Table for which the column is being updated. func (r *ColumnService) Patch(tableId string, columnId string, column *Column) *ColumnPatchCall { c := &ColumnPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -1963,23 +1590,21 @@ func (r *ColumnService) Patch(tableId string, columnId string, column *Column) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnPatchCall) Fields(s ...googleapi.Field) *ColumnPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnPatchCall) Context(ctx context.Context) *ColumnPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1988,18 +1613,12 @@ func (c *ColumnPatchCall) Header() http.Header { } func (c *ColumnPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.column) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/columns/{columnId}") @@ -2013,16 +1632,14 @@ func (c *ColumnPatchCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "columnId": c.columnId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.patch" call. -// Exactly one of *Column or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Column.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Column.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ColumnPatchCall) Do(opts ...googleapi.CallOption) (*Column, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2030,17 +1647,17 @@ func (c *ColumnPatchCall) Do(opts ...googleapi.CallOption) (*Column, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Column{ ServerResponse: googleapi.ServerResponse{ @@ -2053,43 +1670,7 @@ func (c *ColumnPatchCall) Do(opts ...googleapi.CallOption) (*Column, error) { return nil, err } return ret, nil - // { - // "description": "Updates the name or type of an existing column. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "fusiontables.column.patch", - // "parameterOrder": [ - // "tableId", - // "columnId" - // ], - // "parameters": { - // "columnId": { - // "description": "Name or identifier for the column that is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tableId": { - // "description": "Table for which the column is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns/{columnId}", - // "request": { - // "$ref": "Column" - // }, - // "response": { - // "$ref": "Column" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.column.update": +} type ColumnUpdateCall struct { s *Service @@ -2102,6 +1683,9 @@ type ColumnUpdateCall struct { } // Update: Updates the name or type of an existing column. +// +// - columnId: Name or identifier for the column that is being updated. +// - tableId: Table for which the column is being updated. func (r *ColumnService) Update(tableId string, columnId string, column *Column) *ColumnUpdateCall { c := &ColumnUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -2111,23 +1695,21 @@ func (r *ColumnService) Update(tableId string, columnId string, column *Column) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ColumnUpdateCall) Fields(s ...googleapi.Field) *ColumnUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ColumnUpdateCall) Context(ctx context.Context) *ColumnUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ColumnUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2136,18 +1718,12 @@ func (c *ColumnUpdateCall) Header() http.Header { } func (c *ColumnUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.column) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/columns/{columnId}") @@ -2161,16 +1737,14 @@ func (c *ColumnUpdateCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "columnId": c.columnId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.column.update" call. -// Exactly one of *Column or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Column.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Column.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ColumnUpdateCall) Do(opts ...googleapi.CallOption) (*Column, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2178,17 +1752,17 @@ func (c *ColumnUpdateCall) Do(opts ...googleapi.CallOption) (*Column, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Column{ ServerResponse: googleapi.ServerResponse{ @@ -2201,43 +1775,7 @@ func (c *ColumnUpdateCall) Do(opts ...googleapi.CallOption) (*Column, error) { return nil, err } return ret, nil - // { - // "description": "Updates the name or type of an existing column.", - // "httpMethod": "PUT", - // "id": "fusiontables.column.update", - // "parameterOrder": [ - // "tableId", - // "columnId" - // ], - // "parameters": { - // "columnId": { - // "description": "Name or identifier for the column that is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tableId": { - // "description": "Table for which the column is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/columns/{columnId}", - // "request": { - // "$ref": "Column" - // }, - // "response": { - // "$ref": "Column" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.query.sql": +} type QuerySqlCall struct { s *Service @@ -2254,45 +1792,53 @@ type QuerySqlCall struct { // - SHOW // - DESCRIBE // - CREATE statement. +// +// - sql: A Fusion Tables SQL statement, which can be any of +// - SELECT +// +// - INSERT +// - UPDATE +// - DELETE +// - SHOW +// - DESCRIBE +// - CREATE. func (r *QueryService) Sql(sql string) *QuerySqlCall { c := &QuerySqlCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("sql", sql) return c } -// Hdrs sets the optional parameter "hdrs": Whether column names are -// included in the first row. Default is true. +// Hdrs sets the optional parameter "hdrs": Whether column names are included +// in the first row. Default is true. func (c *QuerySqlCall) Hdrs(hdrs bool) *QuerySqlCall { c.urlParams_.Set("hdrs", fmt.Sprint(hdrs)) return c } -// Typed sets the optional parameter "typed": Whether typed values are -// returned in the (JSON) response: numbers for numeric values and -// parsed geometries for KML values. Default is true. +// Typed sets the optional parameter "typed": Whether typed values are returned +// in the (JSON) response: numbers for numeric values and parsed geometries for +// KML values. Default is true. func (c *QuerySqlCall) Typed(typed bool) *QuerySqlCall { c.urlParams_.Set("typed", fmt.Sprint(typed)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *QuerySqlCall) Fields(s ...googleapi.Field) *QuerySqlCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *QuerySqlCall) Context(ctx context.Context) *QuerySqlCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *QuerySqlCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2301,12 +1847,7 @@ func (c *QuerySqlCall) Header() http.Header { } func (c *QuerySqlCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2317,7 +1858,7 @@ func (c *QuerySqlCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -2329,20 +1870,18 @@ func (c *QuerySqlCall) Download(opts ...googleapi.CallOption) (*http.Response, e if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "fusiontables.query.sql" call. -// Exactly one of *Sqlresponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Sqlresponse.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Sqlresponse.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *QuerySqlCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2350,17 +1889,17 @@ func (c *QuerySqlCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Sqlresponse{ ServerResponse: googleapi.ServerResponse{ @@ -2373,46 +1912,7 @@ func (c *QuerySqlCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) { return nil, err } return ret, nil - // { - // "description": "Executes a Fusion Tables SQL statement, which can be any of \n- SELECT\n- INSERT\n- UPDATE\n- DELETE\n- SHOW\n- DESCRIBE\n- CREATE statement.", - // "httpMethod": "POST", - // "id": "fusiontables.query.sql", - // "parameterOrder": [ - // "sql" - // ], - // "parameters": { - // "hdrs": { - // "description": "Whether column names are included in the first row. Default is true.", - // "location": "query", - // "type": "boolean" - // }, - // "sql": { - // "description": "A Fusion Tables SQL statement, which can be any of \n- SELECT\n- INSERT\n- UPDATE\n- DELETE\n- SHOW\n- DESCRIBE\n- CREATE", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "typed": { - // "description": "Whether typed values are returned in the (JSON) response: numbers for numeric values and parsed geometries for KML values. Default is true.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "query", - // "response": { - // "$ref": "Sqlresponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ], - // "supportsMediaDownload": true, - // "useMediaDownloadService": true - // } - -} - -// method id "fusiontables.query.sqlGet": +} type QuerySqlGetCall struct { s *Service @@ -2426,55 +1926,56 @@ type QuerySqlGetCall struct { // - SELECT // - SHOW // - DESCRIBE +// +// - sql: A SQL statement which can be any of +// - SELECT +// - SHOW +// - DESCRIBE. func (r *QueryService) SqlGet(sql string) *QuerySqlGetCall { c := &QuerySqlGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("sql", sql) return c } -// Hdrs sets the optional parameter "hdrs": Whether column names are -// included (in the first row). Default is true. +// Hdrs sets the optional parameter "hdrs": Whether column names are included +// (in the first row). Default is true. func (c *QuerySqlGetCall) Hdrs(hdrs bool) *QuerySqlGetCall { c.urlParams_.Set("hdrs", fmt.Sprint(hdrs)) return c } -// Typed sets the optional parameter "typed": Whether typed values are -// returned in the (JSON) response: numbers for numeric values and -// parsed geometries for KML values. Default is true. +// Typed sets the optional parameter "typed": Whether typed values are returned +// in the (JSON) response: numbers for numeric values and parsed geometries for +// KML values. Default is true. func (c *QuerySqlGetCall) Typed(typed bool) *QuerySqlGetCall { c.urlParams_.Set("typed", fmt.Sprint(typed)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *QuerySqlGetCall) Fields(s ...googleapi.Field) *QuerySqlGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *QuerySqlGetCall) IfNoneMatch(entityTag string) *QuerySqlGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *QuerySqlGetCall) Context(ctx context.Context) *QuerySqlGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *QuerySqlGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2483,12 +1984,7 @@ func (c *QuerySqlGetCall) Header() http.Header { } func (c *QuerySqlGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2502,7 +1998,7 @@ func (c *QuerySqlGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -2514,20 +2010,18 @@ func (c *QuerySqlGetCall) Download(opts ...googleapi.CallOption) (*http.Response if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "fusiontables.query.sqlGet" call. -// Exactly one of *Sqlresponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Sqlresponse.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Sqlresponse.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *QuerySqlGetCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2535,17 +2029,17 @@ func (c *QuerySqlGetCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Sqlresponse{ ServerResponse: googleapi.ServerResponse{ @@ -2558,46 +2052,7 @@ func (c *QuerySqlGetCall) Do(opts ...googleapi.CallOption) (*Sqlresponse, error) return nil, err } return ret, nil - // { - // "description": "Executes a SQL statement which can be any of \n- SELECT\n- SHOW\n- DESCRIBE", - // "httpMethod": "GET", - // "id": "fusiontables.query.sqlGet", - // "parameterOrder": [ - // "sql" - // ], - // "parameters": { - // "hdrs": { - // "description": "Whether column names are included (in the first row). Default is true.", - // "location": "query", - // "type": "boolean" - // }, - // "sql": { - // "description": "A SQL statement which can be any of \n- SELECT\n- SHOW\n- DESCRIBE", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "typed": { - // "description": "Whether typed values are returned in the (JSON) response: numbers for numeric values and parsed geometries for KML values. Default is true.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "query", - // "response": { - // "$ref": "Sqlresponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ], - // "supportsMediaDownload": true, - // "useMediaDownloadService": true - // } - -} - -// method id "fusiontables.style.delete": +} type StyleDeleteCall struct { s *Service @@ -2609,6 +2064,9 @@ type StyleDeleteCall struct { } // Delete: Deletes a style. +// +// - styleId: Identifier (within a table) for the style being deleted. +// - tableId: Table from which the style is being deleted. func (r *StyleService) Delete(tableId string, styleId int64) *StyleDeleteCall { c := &StyleDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -2617,23 +2075,21 @@ func (r *StyleService) Delete(tableId string, styleId int64) *StyleDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StyleDeleteCall) Fields(s ...googleapi.Field) *StyleDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StyleDeleteCall) Context(ctx context.Context) *StyleDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StyleDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2642,12 +2098,7 @@ func (c *StyleDeleteCall) Header() http.Header { } func (c *StyleDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2662,7 +2113,7 @@ func (c *StyleDeleteCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "styleId": strconv.FormatInt(c.styleId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.delete" call. @@ -2674,41 +2125,10 @@ func (c *StyleDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a style.", - // "httpMethod": "DELETE", - // "id": "fusiontables.style.delete", - // "parameterOrder": [ - // "tableId", - // "styleId" - // ], - // "parameters": { - // "styleId": { - // "description": "Identifier (within a table) for the style being deleted", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "tableId": { - // "description": "Table from which the style is being deleted", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles/{styleId}", - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.style.get": +} type StyleGetCall struct { s *Service @@ -2721,6 +2141,9 @@ type StyleGetCall struct { } // Get: Gets a specific style. +// +// - styleId: Identifier (integer) for a specific style in a table. +// - tableId: Table to which the requested style belongs. func (r *StyleService) Get(tableId string, styleId int64) *StyleGetCall { c := &StyleGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -2729,33 +2152,29 @@ func (r *StyleService) Get(tableId string, styleId int64) *StyleGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StyleGetCall) Fields(s ...googleapi.Field) *StyleGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *StyleGetCall) IfNoneMatch(entityTag string) *StyleGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StyleGetCall) Context(ctx context.Context) *StyleGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StyleGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2764,12 +2183,7 @@ func (c *StyleGetCall) Header() http.Header { } func (c *StyleGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2787,16 +2201,14 @@ func (c *StyleGetCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "styleId": strconv.FormatInt(c.styleId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.get" call. -// Exactly one of *StyleSetting or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *StyleSetting.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StyleSetting.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StyleGetCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2804,17 +2216,17 @@ func (c *StyleGetCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StyleSetting{ ServerResponse: googleapi.ServerResponse{ @@ -2827,42 +2239,7 @@ func (c *StyleGetCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { return nil, err } return ret, nil - // { - // "description": "Gets a specific style.", - // "httpMethod": "GET", - // "id": "fusiontables.style.get", - // "parameterOrder": [ - // "tableId", - // "styleId" - // ], - // "parameters": { - // "styleId": { - // "description": "Identifier (integer) for a specific style in a table", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "tableId": { - // "description": "Table to which the requested style belongs", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles/{styleId}", - // "response": { - // "$ref": "StyleSetting" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.style.insert": +} type StyleInsertCall struct { s *Service @@ -2874,6 +2251,8 @@ type StyleInsertCall struct { } // Insert: Adds a new style for the table. +// +// - tableId: Table for which a new style is being added. func (r *StyleService) Insert(tableId string, stylesetting *StyleSetting) *StyleInsertCall { c := &StyleInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -2882,23 +2261,21 @@ func (r *StyleService) Insert(tableId string, stylesetting *StyleSetting) *Style } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StyleInsertCall) Fields(s ...googleapi.Field) *StyleInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StyleInsertCall) Context(ctx context.Context) *StyleInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StyleInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2907,18 +2284,12 @@ func (c *StyleInsertCall) Header() http.Header { } func (c *StyleInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.stylesetting) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/styles") @@ -2931,16 +2302,14 @@ func (c *StyleInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.insert" call. -// Exactly one of *StyleSetting or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *StyleSetting.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StyleSetting.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StyleInsertCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2948,17 +2317,17 @@ func (c *StyleInsertCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StyleSetting{ ServerResponse: googleapi.ServerResponse{ @@ -2971,36 +2340,7 @@ func (c *StyleInsertCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error return nil, err } return ret, nil - // { - // "description": "Adds a new style for the table.", - // "httpMethod": "POST", - // "id": "fusiontables.style.insert", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table for which a new style is being added", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles", - // "request": { - // "$ref": "StyleSetting" - // }, - // "response": { - // "$ref": "StyleSetting" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.style.list": +} type StyleListCall struct { s *Service @@ -3012,14 +2352,16 @@ type StyleListCall struct { } // List: Retrieves a list of styles. +// +// - tableId: Table whose styles are being listed. func (r *StyleService) List(tableId string) *StyleListCall { c := &StyleListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of styles to return. Default is 5. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// styles to return. Default is 5. func (c *StyleListCall) MaxResults(maxResults int64) *StyleListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -3033,33 +2375,29 @@ func (c *StyleListCall) PageToken(pageToken string) *StyleListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StyleListCall) Fields(s ...googleapi.Field) *StyleListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *StyleListCall) IfNoneMatch(entityTag string) *StyleListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StyleListCall) Context(ctx context.Context) *StyleListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StyleListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3068,12 +2406,7 @@ func (c *StyleListCall) Header() http.Header { } func (c *StyleListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3090,16 +2423,15 @@ func (c *StyleListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.list" call. -// Exactly one of *StyleSettingList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *StyleSettingList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StyleSettingList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *StyleListCall) Do(opts ...googleapi.CallOption) (*StyleSettingList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3107,17 +2439,17 @@ func (c *StyleListCall) Do(opts ...googleapi.CallOption) (*StyleSettingList, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StyleSettingList{ ServerResponse: googleapi.ServerResponse{ @@ -3130,43 +2462,6 @@ func (c *StyleListCall) Do(opts ...googleapi.CallOption) (*StyleSettingList, err return nil, err } return ret, nil - // { - // "description": "Retrieves a list of styles.", - // "httpMethod": "GET", - // "id": "fusiontables.style.list", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "maxResults": { - // "description": "Maximum number of styles to return. Optional. Default is 5.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token specifying which result page to return. Optional.", - // "location": "query", - // "type": "string" - // }, - // "tableId": { - // "description": "Table whose styles are being listed", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles", - // "response": { - // "$ref": "StyleSettingList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -3174,7 +2469,7 @@ func (c *StyleListCall) Do(opts ...googleapi.CallOption) (*StyleSettingList, err // The provided context supersedes any context provided to the Context method. func (c *StyleListCall) Pages(ctx context.Context, f func(*StyleSettingList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3190,8 +2485,6 @@ func (c *StyleListCall) Pages(ctx context.Context, f func(*StyleSettingList) err } } -// method id "fusiontables.style.patch": - type StylePatchCall struct { s *Service tableId string @@ -3202,8 +2495,10 @@ type StylePatchCall struct { header_ http.Header } -// Patch: Updates an existing style. This method supports patch -// semantics. +// Patch: Updates an existing style. This method supports patch semantics. +// +// - styleId: Identifier (within a table) for the style being updated. +// - tableId: Table whose style is being updated. func (r *StyleService) Patch(tableId string, styleId int64, stylesetting *StyleSetting) *StylePatchCall { c := &StylePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -3213,23 +2508,21 @@ func (r *StyleService) Patch(tableId string, styleId int64, stylesetting *StyleS } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StylePatchCall) Fields(s ...googleapi.Field) *StylePatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StylePatchCall) Context(ctx context.Context) *StylePatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StylePatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3238,18 +2531,12 @@ func (c *StylePatchCall) Header() http.Header { } func (c *StylePatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.stylesetting) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/styles/{styleId}") @@ -3263,16 +2550,14 @@ func (c *StylePatchCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "styleId": strconv.FormatInt(c.styleId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.patch" call. -// Exactly one of *StyleSetting or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *StyleSetting.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StyleSetting.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StylePatchCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3280,17 +2565,17 @@ func (c *StylePatchCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StyleSetting{ ServerResponse: googleapi.ServerResponse{ @@ -3303,44 +2588,7 @@ func (c *StylePatchCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing style. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "fusiontables.style.patch", - // "parameterOrder": [ - // "tableId", - // "styleId" - // ], - // "parameters": { - // "styleId": { - // "description": "Identifier (within a table) for the style being updated.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "tableId": { - // "description": "Table whose style is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles/{styleId}", - // "request": { - // "$ref": "StyleSetting" - // }, - // "response": { - // "$ref": "StyleSetting" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.style.update": +} type StyleUpdateCall struct { s *Service @@ -3353,6 +2601,9 @@ type StyleUpdateCall struct { } // Update: Updates an existing style. +// +// - styleId: Identifier (within a table) for the style being updated. +// - tableId: Table whose style is being updated. func (r *StyleService) Update(tableId string, styleId int64, stylesetting *StyleSetting) *StyleUpdateCall { c := &StyleUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -3362,23 +2613,21 @@ func (r *StyleService) Update(tableId string, styleId int64, stylesetting *Style } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *StyleUpdateCall) Fields(s ...googleapi.Field) *StyleUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *StyleUpdateCall) Context(ctx context.Context) *StyleUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *StyleUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3387,18 +2636,12 @@ func (c *StyleUpdateCall) Header() http.Header { } func (c *StyleUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.stylesetting) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/styles/{styleId}") @@ -3412,16 +2655,14 @@ func (c *StyleUpdateCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "styleId": strconv.FormatInt(c.styleId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.style.update" call. -// Exactly one of *StyleSetting or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *StyleSetting.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StyleSetting.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *StyleUpdateCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3429,17 +2670,17 @@ func (c *StyleUpdateCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StyleSetting{ ServerResponse: googleapi.ServerResponse{ @@ -3452,44 +2693,7 @@ func (c *StyleUpdateCall) Do(opts ...googleapi.CallOption) (*StyleSetting, error return nil, err } return ret, nil - // { - // "description": "Updates an existing style.", - // "httpMethod": "PUT", - // "id": "fusiontables.style.update", - // "parameterOrder": [ - // "tableId", - // "styleId" - // ], - // "parameters": { - // "styleId": { - // "description": "Identifier (within a table) for the style being updated.", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // }, - // "tableId": { - // "description": "Table whose style is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/styles/{styleId}", - // "request": { - // "$ref": "StyleSetting" - // }, - // "response": { - // "$ref": "StyleSetting" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.table.copy": +} type TableCopyCall struct { s *Service @@ -3500,37 +2704,37 @@ type TableCopyCall struct { } // Copy: Copies a table. +// +// - tableId: ID of the table that is being copied. func (r *TableService) Copy(tableId string) *TableCopyCall { c := &TableCopyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// CopyPresentation sets the optional parameter "copyPresentation": -// Whether to also copy tabs, styles, and templates. Default is false. +// CopyPresentation sets the optional parameter "copyPresentation": Whether to +// also copy tabs, styles, and templates. Default is false. func (c *TableCopyCall) CopyPresentation(copyPresentation bool) *TableCopyCall { c.urlParams_.Set("copyPresentation", fmt.Sprint(copyPresentation)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableCopyCall) Fields(s ...googleapi.Field) *TableCopyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableCopyCall) Context(ctx context.Context) *TableCopyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableCopyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3539,12 +2743,7 @@ func (c *TableCopyCall) Header() http.Header { } func (c *TableCopyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3558,16 +2757,14 @@ func (c *TableCopyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.copy" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableCopyCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3575,17 +2772,17 @@ func (c *TableCopyCall) Do(opts ...googleapi.CallOption) (*Table, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Table{ ServerResponse: googleapi.ServerResponse{ @@ -3598,39 +2795,7 @@ func (c *TableCopyCall) Do(opts ...googleapi.CallOption) (*Table, error) { return nil, err } return ret, nil - // { - // "description": "Copies a table.", - // "httpMethod": "POST", - // "id": "fusiontables.table.copy", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "copyPresentation": { - // "description": "Whether to also copy tabs, styles, and templates. Default is false.", - // "location": "query", - // "type": "boolean" - // }, - // "tableId": { - // "description": "ID of the table that is being copied.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/copy", - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.table.delete": +} type TableDeleteCall struct { s *Service @@ -3641,6 +2806,8 @@ type TableDeleteCall struct { } // Delete: Deletes a table. +// +// - tableId: ID of the table to be deleted. func (r *TableService) Delete(tableId string) *TableDeleteCall { c := &TableDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -3648,23 +2815,21 @@ func (r *TableService) Delete(tableId string) *TableDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableDeleteCall) Fields(s ...googleapi.Field) *TableDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableDeleteCall) Context(ctx context.Context) *TableDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3673,12 +2838,7 @@ func (c *TableDeleteCall) Header() http.Header { } func (c *TableDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3692,7 +2852,7 @@ func (c *TableDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.delete" call. @@ -3704,33 +2864,10 @@ func (c *TableDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a table.", - // "httpMethod": "DELETE", - // "id": "fusiontables.table.delete", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "ID of the table to be deleted.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}", - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.table.get": +} type TableGetCall struct { s *Service @@ -3742,6 +2879,8 @@ type TableGetCall struct { } // Get: Retrieves a specific table by its ID. +// +// - tableId: Identifier for the table being requested. func (r *TableService) Get(tableId string) *TableGetCall { c := &TableGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -3749,33 +2888,29 @@ func (r *TableService) Get(tableId string) *TableGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableGetCall) Fields(s ...googleapi.Field) *TableGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TableGetCall) IfNoneMatch(entityTag string) *TableGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableGetCall) Context(ctx context.Context) *TableGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3784,12 +2919,7 @@ func (c *TableGetCall) Header() http.Header { } func (c *TableGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3806,16 +2936,14 @@ func (c *TableGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.get" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableGetCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3823,17 +2951,17 @@ func (c *TableGetCall) Do(opts ...googleapi.CallOption) (*Table, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Table{ ServerResponse: googleapi.ServerResponse{ @@ -3846,34 +2974,7 @@ func (c *TableGetCall) Do(opts ...googleapi.CallOption) (*Table, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a specific table by its ID.", - // "httpMethod": "GET", - // "id": "fusiontables.table.get", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "Identifier for the table being requested.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}", - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.table.importRows": +} type TableImportRowsCall struct { s *Service @@ -3885,15 +2986,17 @@ type TableImportRowsCall struct { } // ImportRows: Imports more rows into a table. +// +// - tableId: The table into which new rows are being imported. func (r *TableService) ImportRows(tableId string) *TableImportRowsCall { c := &TableImportRowsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// Delimiter sets the optional parameter "delimiter": The delimiter used -// to separate cell values. This can only consist of a single character. -// Default is ,. +// Delimiter sets the optional parameter "delimiter": The delimiter used to +// separate cell values. This can only consist of a single character. Default +// is ,. func (c *TableImportRowsCall) Delimiter(delimiter string) *TableImportRowsCall { c.urlParams_.Set("delimiter", delimiter) return c @@ -3907,78 +3010,75 @@ func (c *TableImportRowsCall) Encoding(encoding string) *TableImportRowsCall { return c } -// EndLine sets the optional parameter "endLine": The index of the line -// up to which data will be imported. Default is to import the entire -// file. If endLine is negative, it is an offset from the end of the -// file; the imported content will exclude the last endLine lines. +// EndLine sets the optional parameter "endLine": The index of the line up to +// which data will be imported. Default is to import the entire file. If +// endLine is negative, it is an offset from the end of the file; the imported +// content will exclude the last endLine lines. func (c *TableImportRowsCall) EndLine(endLine int64) *TableImportRowsCall { c.urlParams_.Set("endLine", fmt.Sprint(endLine)) return c } -// IsStrict sets the optional parameter "isStrict": Whether the imported -// CSV must have the same number of values for each row. If false, rows -// with fewer values will be padded with empty values. Default is true. +// IsStrict sets the optional parameter "isStrict": Whether the imported CSV +// must have the same number of values for each row. If false, rows with fewer +// values will be padded with empty values. Default is true. func (c *TableImportRowsCall) IsStrict(isStrict bool) *TableImportRowsCall { c.urlParams_.Set("isStrict", fmt.Sprint(isStrict)) return c } -// StartLine sets the optional parameter "startLine": The index of the -// first line from which to start importing, inclusive. Default is 0. +// StartLine sets the optional parameter "startLine": The index of the first +// line from which to start importing, inclusive. Default is 0. func (c *TableImportRowsCall) StartLine(startLine int64) *TableImportRowsCall { c.urlParams_.Set("startLine", fmt.Sprint(startLine)) return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *TableImportRowsCall) Media(r io.Reader, options ...googleapi.MediaOption) *TableImportRowsCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *TableImportRowsCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TableImportRowsCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *TableImportRowsCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TableImportRowsCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableImportRowsCall) Fields(s ...googleapi.Field) *TableImportRowsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *TableImportRowsCall) Context(ctx context.Context) *TableImportRowsCall { @@ -3986,8 +3086,8 @@ func (c *TableImportRowsCall) Context(ctx context.Context) *TableImportRowsCall return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableImportRowsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3996,12 +3096,7 @@ func (c *TableImportRowsCall) Header() http.Header { } func (c *TableImportRowsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4026,16 +3121,14 @@ func (c *TableImportRowsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.importRows" call. -// Exactly one of *Import or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Import.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Import.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableImportRowsCall) Do(opts ...googleapi.CallOption) (*Import, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4043,17 +3136,17 @@ func (c *TableImportRowsCall) Do(opts ...googleapi.CallOption) (*Import, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -4069,7 +3162,7 @@ func (c *TableImportRowsCall) Do(opts ...googleapi.CallOption) (*Import, error) } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &Import{ @@ -4083,77 +3176,7 @@ func (c *TableImportRowsCall) Do(opts ...googleapi.CallOption) (*Import, error) return nil, err } return ret, nil - // { - // "description": "Imports more rows into a table.", - // "httpMethod": "POST", - // "id": "fusiontables.table.importRows", - // "mediaUpload": { - // "accept": [ - // "application/octet-stream" - // ], - // "maxSize": "250MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/fusiontables/v2/tables/{tableId}/import" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/fusiontables/v2/tables/{tableId}/import" - // } - // } - // }, - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "delimiter": { - // "description": "The delimiter used to separate cell values. This can only consist of a single character. Default is ,.", - // "location": "query", - // "type": "string" - // }, - // "encoding": { - // "description": "The encoding of the content. Default is UTF-8. Use auto-detect if you are unsure of the encoding.", - // "location": "query", - // "type": "string" - // }, - // "endLine": { - // "description": "The index of the line up to which data will be imported. Default is to import the entire file. If endLine is negative, it is an offset from the end of the file; the imported content will exclude the last endLine lines.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "isStrict": { - // "description": "Whether the imported CSV must have the same number of values for each row. If false, rows with fewer values will be padded with empty values. Default is true.", - // "location": "query", - // "type": "boolean" - // }, - // "startLine": { - // "description": "The index of the first line from which to start importing, inclusive. Default is 0.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "tableId": { - // "description": "The table into which new rows are being imported.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/import", - // "response": { - // "$ref": "Import" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "fusiontables.table.importTable": +} type TableImportTableCall struct { s *Service @@ -4164,15 +3187,17 @@ type TableImportTableCall struct { } // ImportTable: Imports a new table. +// +// - name: The name to be assigned to the new table. func (r *TableService) ImportTable(name string) *TableImportTableCall { c := &TableImportTableCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("name", name) return c } -// Delimiter sets the optional parameter "delimiter": The delimiter used -// to separate cell values. This can only consist of a single character. -// Default is ,. +// Delimiter sets the optional parameter "delimiter": The delimiter used to +// separate cell values. This can only consist of a single character. Default +// is ,. func (c *TableImportTableCall) Delimiter(delimiter string) *TableImportTableCall { c.urlParams_.Set("delimiter", delimiter) return c @@ -4186,54 +3211,51 @@ func (c *TableImportTableCall) Encoding(encoding string) *TableImportTableCall { return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *TableImportTableCall) Media(r io.Reader, options ...googleapi.MediaOption) *TableImportTableCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *TableImportTableCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TableImportTableCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *TableImportTableCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TableImportTableCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableImportTableCall) Fields(s ...googleapi.Field) *TableImportTableCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *TableImportTableCall) Context(ctx context.Context) *TableImportTableCall { @@ -4241,8 +3263,8 @@ func (c *TableImportTableCall) Context(ctx context.Context) *TableImportTableCal return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableImportTableCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4251,12 +3273,7 @@ func (c *TableImportTableCall) Header() http.Header { } func (c *TableImportTableCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4278,16 +3295,14 @@ func (c *TableImportTableCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.importTable" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableImportTableCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4295,17 +3310,17 @@ func (c *TableImportTableCall) Do(opts ...googleapi.CallOption) (*Table, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -4321,7 +3336,7 @@ func (c *TableImportTableCall) Do(opts ...googleapi.CallOption) (*Table, error) } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &Table{ @@ -4335,60 +3350,7 @@ func (c *TableImportTableCall) Do(opts ...googleapi.CallOption) (*Table, error) return nil, err } return ret, nil - // { - // "description": "Imports a new table.", - // "httpMethod": "POST", - // "id": "fusiontables.table.importTable", - // "mediaUpload": { - // "accept": [ - // "application/octet-stream" - // ], - // "maxSize": "250MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/fusiontables/v2/tables/import" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/fusiontables/v2/tables/import" - // } - // } - // }, - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "delimiter": { - // "description": "The delimiter used to separate cell values. This can only consist of a single character. Default is ,.", - // "location": "query", - // "type": "string" - // }, - // "encoding": { - // "description": "The encoding of the content. Default is UTF-8. Use auto-detect if you are unsure of the encoding.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name to be assigned to the new table.", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/import", - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "fusiontables.table.insert": +} type TableInsertCall struct { s *Service @@ -4406,23 +3368,21 @@ func (r *TableService) Insert(table *Table) *TableInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableInsertCall) Fields(s ...googleapi.Field) *TableInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableInsertCall) Context(ctx context.Context) *TableInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4431,18 +3391,12 @@ func (c *TableInsertCall) Header() http.Header { } func (c *TableInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.table) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables") @@ -4452,16 +3406,14 @@ func (c *TableInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.insert" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableInsertCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4469,17 +3421,17 @@ func (c *TableInsertCall) Do(opts ...googleapi.CallOption) (*Table, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Table{ ServerResponse: googleapi.ServerResponse{ @@ -4492,25 +3444,7 @@ func (c *TableInsertCall) Do(opts ...googleapi.CallOption) (*Table, error) { return nil, err } return ret, nil - // { - // "description": "Creates a new table.", - // "httpMethod": "POST", - // "id": "fusiontables.table.insert", - // "path": "tables", - // "request": { - // "$ref": "Table" - // }, - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.table.list": +} type TableListCall struct { s *Service @@ -4526,8 +3460,8 @@ func (r *TableService) List() *TableListCall { return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of tables to return. Default is 5. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// tables to return. Default is 5. func (c *TableListCall) MaxResults(maxResults int64) *TableListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -4541,33 +3475,29 @@ func (c *TableListCall) PageToken(pageToken string) *TableListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableListCall) Fields(s ...googleapi.Field) *TableListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TableListCall) IfNoneMatch(entityTag string) *TableListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableListCall) Context(ctx context.Context) *TableListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4576,12 +3506,7 @@ func (c *TableListCall) Header() http.Header { } func (c *TableListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4595,16 +3520,14 @@ func (c *TableListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.list" call. -// Exactly one of *TableList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *TableList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TableList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableListCall) Do(opts ...googleapi.CallOption) (*TableList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4612,17 +3535,17 @@ func (c *TableListCall) Do(opts ...googleapi.CallOption) (*TableList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TableList{ ServerResponse: googleapi.ServerResponse{ @@ -4635,34 +3558,6 @@ func (c *TableListCall) Do(opts ...googleapi.CallOption) (*TableList, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of tables a user owns.", - // "httpMethod": "GET", - // "id": "fusiontables.table.list", - // "parameters": { - // "maxResults": { - // "description": "Maximum number of tables to return. Default is 5.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token specifying which result page to return.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "tables", - // "response": { - // "$ref": "TableList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -4670,7 +3565,7 @@ func (c *TableListCall) Do(opts ...googleapi.CallOption) (*TableList, error) { // The provided context supersedes any context provided to the Context method. func (c *TableListCall) Pages(ctx context.Context, f func(*TableList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4686,8 +3581,6 @@ func (c *TableListCall) Pages(ctx context.Context, f func(*TableList) error) err } } -// method id "fusiontables.table.patch": - type TablePatchCall struct { s *Service tableId string @@ -4697,9 +3590,11 @@ type TablePatchCall struct { header_ http.Header } -// Patch: Updates an existing table. Unless explicitly requested, only -// the name, description, and attribution will be updated. This method -// supports patch semantics. +// Patch: Updates an existing table. Unless explicitly requested, only the +// name, description, and attribution will be updated. This method supports +// patch semantics. +// +// - tableId: ID of the table that is being updated. func (r *TableService) Patch(tableId string, table *Table) *TablePatchCall { c := &TablePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -4707,33 +3602,30 @@ func (r *TableService) Patch(tableId string, table *Table) *TablePatchCall { return c } -// ReplaceViewDefinition sets the optional parameter -// "replaceViewDefinition": Whether the view definition is also updated. -// The specified view definition replaces the existing one. Only a view -// can be updated with a new definition. +// ReplaceViewDefinition sets the optional parameter "replaceViewDefinition": +// Whether the view definition is also updated. The specified view definition +// replaces the existing one. Only a view can be updated with a new definition. func (c *TablePatchCall) ReplaceViewDefinition(replaceViewDefinition bool) *TablePatchCall { c.urlParams_.Set("replaceViewDefinition", fmt.Sprint(replaceViewDefinition)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TablePatchCall) Fields(s ...googleapi.Field) *TablePatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TablePatchCall) Context(ctx context.Context) *TablePatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TablePatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4742,18 +3634,12 @@ func (c *TablePatchCall) Header() http.Header { } func (c *TablePatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.table) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}") @@ -4766,16 +3652,14 @@ func (c *TablePatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.patch" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TablePatchCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4783,17 +3667,17 @@ func (c *TablePatchCall) Do(opts ...googleapi.CallOption) (*Table, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Table{ ServerResponse: googleapi.ServerResponse{ @@ -4806,41 +3690,7 @@ func (c *TablePatchCall) Do(opts ...googleapi.CallOption) (*Table, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "fusiontables.table.patch", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "replaceViewDefinition": { - // "description": "Whether the view definition is also updated. The specified view definition replaces the existing one. Only a view can be updated with a new definition.", - // "location": "query", - // "type": "boolean" - // }, - // "tableId": { - // "description": "ID of the table that is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}", - // "request": { - // "$ref": "Table" - // }, - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.table.refetchSheet": +} type TableRefetchSheetCall struct { s *Service @@ -4850,9 +3700,11 @@ type TableRefetchSheetCall struct { header_ http.Header } -// RefetchSheet: Replaces rows of the table with the rows of the -// spreadsheet that is first imported from. Current rows remain visible -// until all replacement rows are ready. +// RefetchSheet: Replaces rows of the table with the rows of the spreadsheet +// that is first imported from. Current rows remain visible until all +// replacement rows are ready. +// +// - tableId: Table whose rows will be replaced from the spreadsheet. func (r *TableService) RefetchSheet(tableId string) *TableRefetchSheetCall { c := &TableRefetchSheetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -4860,23 +3712,21 @@ func (r *TableService) RefetchSheet(tableId string) *TableRefetchSheetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableRefetchSheetCall) Fields(s ...googleapi.Field) *TableRefetchSheetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableRefetchSheetCall) Context(ctx context.Context) *TableRefetchSheetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableRefetchSheetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4885,12 +3735,7 @@ func (c *TableRefetchSheetCall) Header() http.Header { } func (c *TableRefetchSheetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4904,16 +3749,14 @@ func (c *TableRefetchSheetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.refetchSheet" call. -// Exactly one of *Task or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Task.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *TableRefetchSheetCall) Do(opts ...googleapi.CallOption) (*Task, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4921,17 +3764,17 @@ func (c *TableRefetchSheetCall) Do(opts ...googleapi.CallOption) (*Task, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Task{ ServerResponse: googleapi.ServerResponse{ @@ -4944,33 +3787,7 @@ func (c *TableRefetchSheetCall) Do(opts ...googleapi.CallOption) (*Task, error) return nil, err } return ret, nil - // { - // "description": "Replaces rows of the table with the rows of the spreadsheet that is first imported from. Current rows remain visible until all replacement rows are ready.", - // "httpMethod": "POST", - // "id": "fusiontables.table.refetchSheet", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table whose rows will be replaced from the spreadsheet.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/refetch", - // "response": { - // "$ref": "Task" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.table.replaceRows": +} type TableReplaceRowsCall struct { s *Service @@ -4981,17 +3798,19 @@ type TableReplaceRowsCall struct { header_ http.Header } -// ReplaceRows: Replaces rows of an existing table. Current rows remain -// visible until all replacement rows are ready. +// ReplaceRows: Replaces rows of an existing table. Current rows remain visible +// until all replacement rows are ready. +// +// - tableId: Table whose rows will be replaced. func (r *TableService) ReplaceRows(tableId string) *TableReplaceRowsCall { c := &TableReplaceRowsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// Delimiter sets the optional parameter "delimiter": The delimiter used -// to separate cell values. This can only consist of a single character. -// Default is ,. +// Delimiter sets the optional parameter "delimiter": The delimiter used to +// separate cell values. This can only consist of a single character. Default +// is ,. func (c *TableReplaceRowsCall) Delimiter(delimiter string) *TableReplaceRowsCall { c.urlParams_.Set("delimiter", delimiter) return c @@ -5005,80 +3824,77 @@ func (c *TableReplaceRowsCall) Encoding(encoding string) *TableReplaceRowsCall { return c } -// EndLine sets the optional parameter "endLine": The index of the line -// up to which data will be imported. Default is to import the entire -// file. If endLine is negative, it is an offset from the end of the -// file; the imported content will exclude the last endLine lines. +// EndLine sets the optional parameter "endLine": The index of the line up to +// which data will be imported. Default is to import the entire file. If +// endLine is negative, it is an offset from the end of the file; the imported +// content will exclude the last endLine lines. func (c *TableReplaceRowsCall) EndLine(endLine int64) *TableReplaceRowsCall { c.urlParams_.Set("endLine", fmt.Sprint(endLine)) return c } -// IsStrict sets the optional parameter "isStrict": Whether the imported -// CSV must have the same number of column values for each row. If true, -// throws an exception if the CSV does not have the same number of -// columns. If false, rows with fewer column values will be padded with -// empty values. Default is true. +// IsStrict sets the optional parameter "isStrict": Whether the imported CSV +// must have the same number of column values for each row. If true, throws an +// exception if the CSV does not have the same number of columns. If false, +// rows with fewer column values will be padded with empty values. Default is +// true. func (c *TableReplaceRowsCall) IsStrict(isStrict bool) *TableReplaceRowsCall { c.urlParams_.Set("isStrict", fmt.Sprint(isStrict)) return c } -// StartLine sets the optional parameter "startLine": The index of the -// first line from which to start importing, inclusive. Default is 0. +// StartLine sets the optional parameter "startLine": The index of the first +// line from which to start importing, inclusive. Default is 0. func (c *TableReplaceRowsCall) StartLine(startLine int64) *TableReplaceRowsCall { c.urlParams_.Set("startLine", fmt.Sprint(startLine)) return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *TableReplaceRowsCall) Media(r io.Reader, options ...googleapi.MediaOption) *TableReplaceRowsCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *TableReplaceRowsCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TableReplaceRowsCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *TableReplaceRowsCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TableReplaceRowsCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableReplaceRowsCall) Fields(s ...googleapi.Field) *TableReplaceRowsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *TableReplaceRowsCall) Context(ctx context.Context) *TableReplaceRowsCall { @@ -5086,8 +3902,8 @@ func (c *TableReplaceRowsCall) Context(ctx context.Context) *TableReplaceRowsCal return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableReplaceRowsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5096,12 +3912,7 @@ func (c *TableReplaceRowsCall) Header() http.Header { } func (c *TableReplaceRowsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5126,16 +3937,14 @@ func (c *TableReplaceRowsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.replaceRows" call. -// Exactly one of *Task or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Task.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *TableReplaceRowsCall) Do(opts ...googleapi.CallOption) (*Task, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5143,17 +3952,17 @@ func (c *TableReplaceRowsCall) Do(opts ...googleapi.CallOption) (*Task, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -5169,7 +3978,7 @@ func (c *TableReplaceRowsCall) Do(opts ...googleapi.CallOption) (*Task, error) { } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &Task{ @@ -5183,77 +3992,7 @@ func (c *TableReplaceRowsCall) Do(opts ...googleapi.CallOption) (*Task, error) { return nil, err } return ret, nil - // { - // "description": "Replaces rows of an existing table. Current rows remain visible until all replacement rows are ready.", - // "httpMethod": "POST", - // "id": "fusiontables.table.replaceRows", - // "mediaUpload": { - // "accept": [ - // "application/octet-stream" - // ], - // "maxSize": "250MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/fusiontables/v2/tables/{tableId}/replace" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/fusiontables/v2/tables/{tableId}/replace" - // } - // } - // }, - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "delimiter": { - // "description": "The delimiter used to separate cell values. This can only consist of a single character. Default is ,.", - // "location": "query", - // "type": "string" - // }, - // "encoding": { - // "description": "The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.", - // "location": "query", - // "type": "string" - // }, - // "endLine": { - // "description": "The index of the line up to which data will be imported. Default is to import the entire file. If endLine is negative, it is an offset from the end of the file; the imported content will exclude the last endLine lines.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "isStrict": { - // "description": "Whether the imported CSV must have the same number of column values for each row. If true, throws an exception if the CSV does not have the same number of columns. If false, rows with fewer column values will be padded with empty values. Default is true.", - // "location": "query", - // "type": "boolean" - // }, - // "startLine": { - // "description": "The index of the first line from which to start importing, inclusive. Default is 0.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "tableId": { - // "description": "Table whose rows will be replaced.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/replace", - // "response": { - // "$ref": "Task" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "fusiontables.table.update": +} type TableUpdateCall struct { s *Service @@ -5264,8 +4003,10 @@ type TableUpdateCall struct { header_ http.Header } -// Update: Updates an existing table. Unless explicitly requested, only -// the name, description, and attribution will be updated. +// Update: Updates an existing table. Unless explicitly requested, only the +// name, description, and attribution will be updated. +// +// - tableId: ID of the table that is being updated. func (r *TableService) Update(tableId string, table *Table) *TableUpdateCall { c := &TableUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -5273,33 +4014,30 @@ func (r *TableService) Update(tableId string, table *Table) *TableUpdateCall { return c } -// ReplaceViewDefinition sets the optional parameter -// "replaceViewDefinition": Whether the view definition is also updated. -// The specified view definition replaces the existing one. Only a view -// can be updated with a new definition. +// ReplaceViewDefinition sets the optional parameter "replaceViewDefinition": +// Whether the view definition is also updated. The specified view definition +// replaces the existing one. Only a view can be updated with a new definition. func (c *TableUpdateCall) ReplaceViewDefinition(replaceViewDefinition bool) *TableUpdateCall { c.urlParams_.Set("replaceViewDefinition", fmt.Sprint(replaceViewDefinition)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TableUpdateCall) Fields(s ...googleapi.Field) *TableUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TableUpdateCall) Context(ctx context.Context) *TableUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TableUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5308,18 +4046,12 @@ func (c *TableUpdateCall) Header() http.Header { } func (c *TableUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.table) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}") @@ -5332,16 +4064,14 @@ func (c *TableUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.table.update" call. -// Exactly one of *Table or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Table.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Table.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TableUpdateCall) Do(opts ...googleapi.CallOption) (*Table, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5349,17 +4079,17 @@ func (c *TableUpdateCall) Do(opts ...googleapi.CallOption) (*Table, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Table{ ServerResponse: googleapi.ServerResponse{ @@ -5372,41 +4102,7 @@ func (c *TableUpdateCall) Do(opts ...googleapi.CallOption) (*Table, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.", - // "httpMethod": "PUT", - // "id": "fusiontables.table.update", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "replaceViewDefinition": { - // "description": "Whether the view definition is also updated. The specified view definition replaces the existing one. Only a view can be updated with a new definition.", - // "location": "query", - // "type": "boolean" - // }, - // "tableId": { - // "description": "ID of the table that is being updated.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}", - // "request": { - // "$ref": "Table" - // }, - // "response": { - // "$ref": "Table" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.task.delete": +} type TaskDeleteCall struct { s *Service @@ -5417,8 +4113,11 @@ type TaskDeleteCall struct { header_ http.Header } -// Delete: Deletes a specific task by its ID, unless that task has -// already started running. +// Delete: Deletes a specific task by its ID, unless that task has already +// started running. +// +// - tableId: Table from which the task is being deleted. +// - taskId: The identifier of the task to delete. func (r *TaskService) Delete(tableId string, taskId string) *TaskDeleteCall { c := &TaskDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -5427,23 +4126,21 @@ func (r *TaskService) Delete(tableId string, taskId string) *TaskDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TaskDeleteCall) Fields(s ...googleapi.Field) *TaskDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TaskDeleteCall) Context(ctx context.Context) *TaskDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TaskDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5452,12 +4149,7 @@ func (c *TaskDeleteCall) Header() http.Header { } func (c *TaskDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5472,7 +4164,7 @@ func (c *TaskDeleteCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "taskId": c.taskId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.task.delete" call. @@ -5484,40 +4176,10 @@ func (c *TaskDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a specific task by its ID, unless that task has already started running.", - // "httpMethod": "DELETE", - // "id": "fusiontables.task.delete", - // "parameterOrder": [ - // "tableId", - // "taskId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table from which the task is being deleted.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "taskId": { - // "description": "The identifier of the task to delete.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/tasks/{taskId}", - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.task.get": +} type TaskGetCall struct { s *Service @@ -5530,6 +4192,9 @@ type TaskGetCall struct { } // Get: Retrieves a specific task by its ID. +// +// - tableId: Table to which the task belongs. +// - taskId: The identifier of the task to get. func (r *TaskService) Get(tableId string, taskId string) *TaskGetCall { c := &TaskGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -5538,33 +4203,29 @@ func (r *TaskService) Get(tableId string, taskId string) *TaskGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TaskGetCall) Fields(s ...googleapi.Field) *TaskGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TaskGetCall) IfNoneMatch(entityTag string) *TaskGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TaskGetCall) Context(ctx context.Context) *TaskGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TaskGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5573,12 +4234,7 @@ func (c *TaskGetCall) Header() http.Header { } func (c *TaskGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5596,16 +4252,14 @@ func (c *TaskGetCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "taskId": c.taskId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.task.get" call. -// Exactly one of *Task or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Task.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *TaskGetCall) Do(opts ...googleapi.CallOption) (*Task, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5613,17 +4267,17 @@ func (c *TaskGetCall) Do(opts ...googleapi.CallOption) (*Task, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Task{ ServerResponse: googleapi.ServerResponse{ @@ -5636,41 +4290,7 @@ func (c *TaskGetCall) Do(opts ...googleapi.CallOption) (*Task, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a specific task by its ID.", - // "httpMethod": "GET", - // "id": "fusiontables.task.get", - // "parameterOrder": [ - // "tableId", - // "taskId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table to which the task belongs.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "taskId": { - // "description": "The identifier of the task to get.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/tasks/{taskId}", - // "response": { - // "$ref": "Task" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.task.list": +} type TaskListCall struct { s *Service @@ -5682,14 +4302,16 @@ type TaskListCall struct { } // List: Retrieves a list of tasks. +// +// - tableId: Table whose tasks are being listed. func (r *TaskService) List(tableId string) *TaskListCall { c := &TaskListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of tasks to return. Default is 5. +// MaxResults sets the optional parameter "maxResults": Maximum number of tasks +// to return. Default is 5. func (c *TaskListCall) MaxResults(maxResults int64) *TaskListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -5702,41 +4324,37 @@ func (c *TaskListCall) PageToken(pageToken string) *TaskListCall { return c } -// StartIndex sets the optional parameter "startIndex": Index of the -// first result returned in the current page. +// StartIndex sets the optional parameter "startIndex": Index of the first +// result returned in the current page. func (c *TaskListCall) StartIndex(startIndex int64) *TaskListCall { c.urlParams_.Set("startIndex", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TaskListCall) Fields(s ...googleapi.Field) *TaskListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TaskListCall) IfNoneMatch(entityTag string) *TaskListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TaskListCall) Context(ctx context.Context) *TaskListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TaskListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5745,12 +4363,7 @@ func (c *TaskListCall) Header() http.Header { } func (c *TaskListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5767,16 +4380,14 @@ func (c *TaskListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.task.list" call. -// Exactly one of *TaskList or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *TaskList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TaskList.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TaskListCall) Do(opts ...googleapi.CallOption) (*TaskList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5784,17 +4395,17 @@ func (c *TaskListCall) Do(opts ...googleapi.CallOption) (*TaskList, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TaskList{ ServerResponse: googleapi.ServerResponse{ @@ -5807,49 +4418,6 @@ func (c *TaskListCall) Do(opts ...googleapi.CallOption) (*TaskList, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of tasks.", - // "httpMethod": "GET", - // "id": "fusiontables.task.list", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "maxResults": { - // "description": "Maximum number of tasks to return. Default is 5.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token specifying which result page to return.", - // "location": "query", - // "type": "string" - // }, - // "startIndex": { - // "description": "Index of the first result returned in the current page.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "tableId": { - // "description": "Table whose tasks are being listed.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/tasks", - // "response": { - // "$ref": "TaskList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -5857,7 +4425,7 @@ func (c *TaskListCall) Do(opts ...googleapi.CallOption) (*TaskList, error) { // The provided context supersedes any context provided to the Context method. func (c *TaskListCall) Pages(ctx context.Context, f func(*TaskList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5873,8 +4441,6 @@ func (c *TaskListCall) Pages(ctx context.Context, f func(*TaskList) error) error } } -// method id "fusiontables.template.delete": - type TemplateDeleteCall struct { s *Service tableId string @@ -5885,6 +4451,9 @@ type TemplateDeleteCall struct { } // Delete: Deletes a template +// +// - tableId: Table from which the template is being deleted. +// - templateId: Identifier for the template which is being deleted. func (r *TemplateService) Delete(tableId string, templateId int64) *TemplateDeleteCall { c := &TemplateDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -5893,23 +4462,21 @@ func (r *TemplateService) Delete(tableId string, templateId int64) *TemplateDele } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplateDeleteCall) Fields(s ...googleapi.Field) *TemplateDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplateDeleteCall) Context(ctx context.Context) *TemplateDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplateDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5918,12 +4485,7 @@ func (c *TemplateDeleteCall) Header() http.Header { } func (c *TemplateDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5938,7 +4500,7 @@ func (c *TemplateDeleteCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "templateId": strconv.FormatInt(c.templateId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.delete" call. @@ -5950,41 +4512,10 @@ func (c *TemplateDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a template", - // "httpMethod": "DELETE", - // "id": "fusiontables.template.delete", - // "parameterOrder": [ - // "tableId", - // "templateId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table from which the template is being deleted", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "templateId": { - // "description": "Identifier for the template which is being deleted", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "tables/{tableId}/templates/{templateId}", - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.template.get": +} type TemplateGetCall struct { s *Service @@ -5997,6 +4528,9 @@ type TemplateGetCall struct { } // Get: Retrieves a specific template by its id +// +// - tableId: Table to which the template belongs. +// - templateId: Identifier for the template that is being requested. func (r *TemplateService) Get(tableId string, templateId int64) *TemplateGetCall { c := &TemplateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -6005,33 +4539,29 @@ func (r *TemplateService) Get(tableId string, templateId int64) *TemplateGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplateGetCall) Fields(s ...googleapi.Field) *TemplateGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TemplateGetCall) IfNoneMatch(entityTag string) *TemplateGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplateGetCall) Context(ctx context.Context) *TemplateGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplateGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6040,12 +4570,7 @@ func (c *TemplateGetCall) Header() http.Header { } func (c *TemplateGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6063,16 +4588,14 @@ func (c *TemplateGetCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "templateId": strconv.FormatInt(c.templateId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.get" call. -// Exactly one of *Template or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Template.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Template.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TemplateGetCall) Do(opts ...googleapi.CallOption) (*Template, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6080,17 +4603,17 @@ func (c *TemplateGetCall) Do(opts ...googleapi.CallOption) (*Template, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Template{ ServerResponse: googleapi.ServerResponse{ @@ -6103,42 +4626,7 @@ func (c *TemplateGetCall) Do(opts ...googleapi.CallOption) (*Template, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a specific template by its id", - // "httpMethod": "GET", - // "id": "fusiontables.template.get", - // "parameterOrder": [ - // "tableId", - // "templateId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table to which the template belongs", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "templateId": { - // "description": "Identifier for the template that is being requested", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "tables/{tableId}/templates/{templateId}", - // "response": { - // "$ref": "Template" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - -} - -// method id "fusiontables.template.insert": +} type TemplateInsertCall struct { s *Service @@ -6150,6 +4638,8 @@ type TemplateInsertCall struct { } // Insert: Creates a new template for the table. +// +// - tableId: Table for which a new template is being created. func (r *TemplateService) Insert(tableId string, template *Template) *TemplateInsertCall { c := &TemplateInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -6158,23 +4648,21 @@ func (r *TemplateService) Insert(tableId string, template *Template) *TemplateIn } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplateInsertCall) Fields(s ...googleapi.Field) *TemplateInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplateInsertCall) Context(ctx context.Context) *TemplateInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplateInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6183,18 +4671,12 @@ func (c *TemplateInsertCall) Header() http.Header { } func (c *TemplateInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.template) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/templates") @@ -6207,16 +4689,14 @@ func (c *TemplateInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.insert" call. -// Exactly one of *Template or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Template.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Template.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TemplateInsertCall) Do(opts ...googleapi.CallOption) (*Template, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6224,17 +4704,17 @@ func (c *TemplateInsertCall) Do(opts ...googleapi.CallOption) (*Template, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Template{ ServerResponse: googleapi.ServerResponse{ @@ -6247,36 +4727,7 @@ func (c *TemplateInsertCall) Do(opts ...googleapi.CallOption) (*Template, error) return nil, err } return ret, nil - // { - // "description": "Creates a new template for the table.", - // "httpMethod": "POST", - // "id": "fusiontables.template.insert", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table for which a new template is being created", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/templates", - // "request": { - // "$ref": "Template" - // }, - // "response": { - // "$ref": "Template" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.template.list": +} type TemplateListCall struct { s *Service @@ -6288,14 +4739,16 @@ type TemplateListCall struct { } // List: Retrieves a list of templates. +// +// - tableId: Identifier for the table whose templates are being requested. func (r *TemplateService) List(tableId string) *TemplateListCall { c := &TemplateListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of templates to return. Default is 5. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// templates to return. Default is 5. func (c *TemplateListCall) MaxResults(maxResults int64) *TemplateListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -6309,33 +4762,29 @@ func (c *TemplateListCall) PageToken(pageToken string) *TemplateListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplateListCall) Fields(s ...googleapi.Field) *TemplateListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TemplateListCall) IfNoneMatch(entityTag string) *TemplateListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplateListCall) Context(ctx context.Context) *TemplateListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplateListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6344,12 +4793,7 @@ func (c *TemplateListCall) Header() http.Header { } func (c *TemplateListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6366,16 +4810,14 @@ func (c *TemplateListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tableId": c.tableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.list" call. -// Exactly one of *TemplateList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *TemplateList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TemplateList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TemplateListCall) Do(opts ...googleapi.CallOption) (*TemplateList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6383,17 +4825,17 @@ func (c *TemplateListCall) Do(opts ...googleapi.CallOption) (*TemplateList, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TemplateList{ ServerResponse: googleapi.ServerResponse{ @@ -6406,43 +4848,6 @@ func (c *TemplateListCall) Do(opts ...googleapi.CallOption) (*TemplateList, erro return nil, err } return ret, nil - // { - // "description": "Retrieves a list of templates.", - // "httpMethod": "GET", - // "id": "fusiontables.template.list", - // "parameterOrder": [ - // "tableId" - // ], - // "parameters": { - // "maxResults": { - // "description": "Maximum number of templates to return. Optional. Default is 5.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token specifying which results page to return. Optional.", - // "location": "query", - // "type": "string" - // }, - // "tableId": { - // "description": "Identifier for the table whose templates are being requested", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "tables/{tableId}/templates", - // "response": { - // "$ref": "TemplateList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables", - // "https://www.googleapis.com/auth/fusiontables.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -6450,7 +4855,7 @@ func (c *TemplateListCall) Do(opts ...googleapi.CallOption) (*TemplateList, erro // The provided context supersedes any context provided to the Context method. func (c *TemplateListCall) Pages(ctx context.Context, f func(*TemplateList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6466,8 +4871,6 @@ func (c *TemplateListCall) Pages(ctx context.Context, f func(*TemplateList) erro } } -// method id "fusiontables.template.patch": - type TemplatePatchCall struct { s *Service tableId string @@ -6478,8 +4881,10 @@ type TemplatePatchCall struct { header_ http.Header } -// Patch: Updates an existing template. This method supports patch -// semantics. +// Patch: Updates an existing template. This method supports patch semantics. +// +// - tableId: Table to which the updated template belongs. +// - templateId: Identifier for the template that is being updated. func (r *TemplateService) Patch(tableId string, templateId int64, template *Template) *TemplatePatchCall { c := &TemplatePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -6489,23 +4894,21 @@ func (r *TemplateService) Patch(tableId string, templateId int64, template *Temp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplatePatchCall) Fields(s ...googleapi.Field) *TemplatePatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplatePatchCall) Context(ctx context.Context) *TemplatePatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplatePatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6514,18 +4917,12 @@ func (c *TemplatePatchCall) Header() http.Header { } func (c *TemplatePatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.template) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/templates/{templateId}") @@ -6539,16 +4936,14 @@ func (c *TemplatePatchCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "templateId": strconv.FormatInt(c.templateId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.patch" call. -// Exactly one of *Template or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Template.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Template.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TemplatePatchCall) Do(opts ...googleapi.CallOption) (*Template, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6556,17 +4951,17 @@ func (c *TemplatePatchCall) Do(opts ...googleapi.CallOption) (*Template, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Template{ ServerResponse: googleapi.ServerResponse{ @@ -6579,44 +4974,7 @@ func (c *TemplatePatchCall) Do(opts ...googleapi.CallOption) (*Template, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing template. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "fusiontables.template.patch", - // "parameterOrder": [ - // "tableId", - // "templateId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table to which the updated template belongs", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "templateId": { - // "description": "Identifier for the template that is being updated", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "tables/{tableId}/templates/{templateId}", - // "request": { - // "$ref": "Template" - // }, - // "response": { - // "$ref": "Template" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - -} - -// method id "fusiontables.template.update": +} type TemplateUpdateCall struct { s *Service @@ -6629,6 +4987,9 @@ type TemplateUpdateCall struct { } // Update: Updates an existing template +// +// - tableId: Table to which the updated template belongs. +// - templateId: Identifier for the template that is being updated. func (r *TemplateService) Update(tableId string, templateId int64, template *Template) *TemplateUpdateCall { c := &TemplateUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tableId = tableId @@ -6638,23 +4999,21 @@ func (r *TemplateService) Update(tableId string, templateId int64, template *Tem } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TemplateUpdateCall) Fields(s ...googleapi.Field) *TemplateUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TemplateUpdateCall) Context(ctx context.Context) *TemplateUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TemplateUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6663,18 +5022,12 @@ func (c *TemplateUpdateCall) Header() http.Header { } func (c *TemplateUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.template) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "tables/{tableId}/templates/{templateId}") @@ -6688,16 +5041,14 @@ func (c *TemplateUpdateCall) doRequest(alt string) (*http.Response, error) { "tableId": c.tableId, "templateId": strconv.FormatInt(c.templateId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "fusiontables.template.update" call. -// Exactly one of *Template or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Template.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Template.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TemplateUpdateCall) Do(opts ...googleapi.CallOption) (*Template, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6705,17 +5056,17 @@ func (c *TemplateUpdateCall) Do(opts ...googleapi.CallOption) (*Template, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Template{ ServerResponse: googleapi.ServerResponse{ @@ -6728,39 +5079,4 @@ func (c *TemplateUpdateCall) Do(opts ...googleapi.CallOption) (*Template, error) return nil, err } return ret, nil - // { - // "description": "Updates an existing template", - // "httpMethod": "PUT", - // "id": "fusiontables.template.update", - // "parameterOrder": [ - // "tableId", - // "templateId" - // ], - // "parameters": { - // "tableId": { - // "description": "Table to which the updated template belongs", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "templateId": { - // "description": "Identifier for the template that is being updated", - // "format": "int32", - // "location": "path", - // "required": true, - // "type": "integer" - // } - // }, - // "path": "tables/{tableId}/templates/{templateId}", - // "request": { - // "$ref": "Template" - // }, - // "response": { - // "$ref": "Template" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/fusiontables" - // ] - // } - } diff --git a/games/v1/games-gen.go b/games/v1/games-gen.go index 4dacf9ab56a..94a034fd86a 100644 --- a/games/v1/games-gen.go +++ b/games/v1/games-gen.go @@ -3057,7 +3057,7 @@ func (c *AccesstokensGeneratePlayGroupingApiTokenCall) doRequest(alt string) (*h return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.accesstokens.generatePlayGroupingApiToken" call. @@ -3174,7 +3174,7 @@ func (c *AccesstokensGenerateRecallPlayGroupingApiTokenCall) doRequest(alt strin return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.accesstokens.generateRecallPlayGroupingApiToken" call. @@ -3298,7 +3298,7 @@ func (c *AchievementDefinitionsListCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.achievementDefinitions.list" call. @@ -3426,7 +3426,7 @@ func (c *AchievementsIncrementCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "achievementId": c.achievementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.achievements.increment" call. @@ -3574,7 +3574,7 @@ func (c *AchievementsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "playerId": c.playerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.achievements.list" call. @@ -3692,7 +3692,7 @@ func (c *AchievementsRevealCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "achievementId": c.achievementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.achievements.reveal" call. @@ -3793,7 +3793,7 @@ func (c *AchievementsSetStepsAtLeastCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "achievementId": c.achievementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.achievements.setStepsAtLeast" call. @@ -3889,7 +3889,7 @@ func (c *AchievementsUnlockCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "achievementId": c.achievementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.achievements.unlock" call. @@ -3985,7 +3985,7 @@ func (c *AchievementsUpdateMultipleCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.achievements.updateMultiple" call. @@ -4115,7 +4115,7 @@ func (c *ApplicationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "applicationId": c.applicationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.applications.get" call. @@ -4222,7 +4222,7 @@ func (c *ApplicationsGetEndPointCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.applications.getEndPoint" call. @@ -4311,7 +4311,7 @@ func (c *ApplicationsPlayedCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.applications.played" call. @@ -4397,7 +4397,7 @@ func (c *ApplicationsVerifyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "applicationId": c.applicationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.applications.verify" call. @@ -4521,7 +4521,7 @@ func (c *EventsListByPlayerCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.events.listByPlayer" call. @@ -4667,7 +4667,7 @@ func (c *EventsListDefinitionsCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.events.listDefinitions" call. @@ -4791,7 +4791,7 @@ func (c *EventsRecordCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.events.record" call. @@ -4906,7 +4906,7 @@ func (c *LeaderboardsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "leaderboardId": c.leaderboardId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.leaderboards.get" call. @@ -5028,7 +5028,7 @@ func (c *LeaderboardsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.leaderboards.list" call. @@ -5151,7 +5151,7 @@ func (c *MetagameGetMetagameConfigCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.metagame.getMetagameConfig" call. @@ -5287,7 +5287,7 @@ func (c *MetagameListCategoriesByPlayerCall) doRequest(alt string) (*http.Respon "playerId": c.playerId, "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.metagame.listCategoriesByPlayer" call. @@ -5434,7 +5434,7 @@ func (c *PlayersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "playerId": c.playerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.players.get" call. @@ -5545,7 +5545,7 @@ func (c *PlayersGetMultipleApplicationPlayerIdsCall) doRequest(alt string) (*htt return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.players.getMultipleApplicationPlayerIds" call. @@ -5647,7 +5647,7 @@ func (c *PlayersGetScopedPlayerIdsCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.players.getScopedPlayerIds" call. @@ -5778,7 +5778,7 @@ func (c *PlayersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.players.list" call. @@ -5918,7 +5918,7 @@ func (c *RecallGamesPlayerTokensCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "sessionId": c.sessionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.recall.gamesPlayerTokens" call. @@ -6030,7 +6030,7 @@ func (c *RecallLastTokenFromAllDeveloperGamesCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "sessionId": c.sessionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.recall.lastTokenFromAllDeveloperGames" call. @@ -6126,7 +6126,7 @@ func (c *RecallLinkPersonaCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.recall.linkPersona" call. @@ -6222,7 +6222,7 @@ func (c *RecallResetPersonaCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.recall.resetPersona" call. @@ -6333,7 +6333,7 @@ func (c *RecallRetrieveTokensCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "sessionId": c.sessionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.recall.retrieveTokens" call. @@ -6430,7 +6430,7 @@ func (c *RecallUnlinkPersonaCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.recall.unlinkPersona" call. @@ -6538,7 +6538,7 @@ func (c *RevisionsCheckCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.revisions.check" call. @@ -6703,7 +6703,7 @@ func (c *ScoresGetCall) doRequest(alt string) (*http.Response, error) { "leaderboardId": c.leaderboardId, "timeSpan": c.timeSpan, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.scores.get" call. @@ -6861,7 +6861,7 @@ func (c *ScoresListCall) doRequest(alt string) (*http.Response, error) { "leaderboardId": c.leaderboardId, "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.scores.list" call. @@ -7038,7 +7038,7 @@ func (c *ScoresListWindowCall) doRequest(alt string) (*http.Response, error) { "leaderboardId": c.leaderboardId, "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.scores.listWindow" call. @@ -7177,7 +7177,7 @@ func (c *ScoresSubmitCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "leaderboardId": c.leaderboardId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.scores.submit" call. @@ -7279,7 +7279,7 @@ func (c *ScoresSubmitMultipleCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.scores.submitMultiple" call. @@ -7394,7 +7394,7 @@ func (c *SnapshotsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "snapshotId": c.snapshotId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.snapshots.get" call. @@ -7526,7 +7526,7 @@ func (c *SnapshotsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "playerId": c.playerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.snapshots.list" call. @@ -7649,7 +7649,7 @@ func (c *StatsGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "games.stats.get" call. diff --git a/gamesconfiguration/v1configuration/gamesconfiguration-gen.go b/gamesconfiguration/v1configuration/gamesconfiguration-gen.go index b5c40200f43..6a8abf7a041 100644 --- a/gamesconfiguration/v1configuration/gamesconfiguration-gen.go +++ b/gamesconfiguration/v1configuration/gamesconfiguration-gen.go @@ -578,7 +578,7 @@ func (c *AchievementConfigurationsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "achievementId": c.achievementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesConfiguration.achievementConfigurations.delete" call. @@ -663,7 +663,7 @@ func (c *AchievementConfigurationsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "achievementId": c.achievementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesConfiguration.achievementConfigurations.get" call. @@ -765,7 +765,7 @@ func (c *AchievementConfigurationsInsertCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "applicationId": c.applicationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesConfiguration.achievementConfigurations.insert" call. @@ -889,7 +889,7 @@ func (c *AchievementConfigurationsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "applicationId": c.applicationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesConfiguration.achievementConfigurations.list" call. @@ -1013,7 +1013,7 @@ func (c *AchievementConfigurationsUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "achievementId": c.achievementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesConfiguration.achievementConfigurations.update" call. @@ -1109,7 +1109,7 @@ func (c *LeaderboardConfigurationsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "leaderboardId": c.leaderboardId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesConfiguration.leaderboardConfigurations.delete" call. @@ -1194,7 +1194,7 @@ func (c *LeaderboardConfigurationsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "leaderboardId": c.leaderboardId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesConfiguration.leaderboardConfigurations.get" call. @@ -1296,7 +1296,7 @@ func (c *LeaderboardConfigurationsInsertCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "applicationId": c.applicationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesConfiguration.leaderboardConfigurations.insert" call. @@ -1420,7 +1420,7 @@ func (c *LeaderboardConfigurationsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "applicationId": c.applicationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesConfiguration.leaderboardConfigurations.list" call. @@ -1544,7 +1544,7 @@ func (c *LeaderboardConfigurationsUpdateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "leaderboardId": c.leaderboardId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesConfiguration.leaderboardConfigurations.update" call. diff --git a/gameservices/v1/gameservices-gen.go b/gameservices/v1/gameservices-gen.go index a8d47d352c8..a29a38be82d 100644 --- a/gameservices/v1/gameservices-gen.go +++ b/gameservices/v1/gameservices-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/solutions/gaming/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // gameservicesService, err := gameservices.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // gameservicesService, err := gameservices.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // gameservicesService, err := gameservices.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package gameservices // import "google.golang.org/api/gameservices/v1" import ( @@ -77,12 +90,13 @@ const apiId = "gameservices:v1" const apiName = "gameservices" const apiVersion = "v1" const basePath = "https://gameservices.googleapis.com/" +const basePathTemplate = "https://gameservices.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://gameservices.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -94,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -185,70 +201,55 @@ type ProjectsLocationsOperationsService struct { // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what -// identities, if any, are exempted from logging. An AuditConfig must -// have one or more AuditLogConfigs. If there are AuditConfigs for both -// `allServices` and a specific service, the union of the two -// AuditConfigs is used for that service: the log_types specified in -// each AuditConfig are enabled, and the exempted_members in each -// AuditLogConfig are exempted. Example Policy with multiple -// AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": -// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { -// "log_type": "ADMIN_READ" } ] }, { "service": -// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": -// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy -// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts -// `jose@example.com` from DATA_READ logging, and `aliya@example.com` -// from DATA_WRITE logging. +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +// and a specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted. Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts `jose@example.com` from DATA_READ logging, and +// `aliya@example.com` from DATA_WRITE logging. type AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit logging. - // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - // `allServices` is a special value that covers all services. + // Service: Specifies a service that will be enabled for audit logging. For + // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` + // is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditConfig) MarshalJSON() ([]byte, error) { +func (s AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditLogConfig: Provides the configuration for logging a type of -// permissions. Example: { "audit_log_configs": [ { "log_type": -// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { -// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and -// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ -// logging. +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. type AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of permission. Follows the same format of - // Binding.members. - ExemptedMembers []string `json:"exemptedMembers,omitempty"` - - IgnoreChildExemptions bool `json:"ignoreChildExemptions,omitempty"` - + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + IgnoreChildExemptions bool `json:"ignoreChildExemptions,omitempty"` // LogType: The log type that this config enables. // // Possible values: @@ -257,33 +258,26 @@ type AuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AuthorizationLoggingOptions: Authorization-related information used -// by Cloud Audit Logging. +// AuthorizationLoggingOptions: Authorization-related information used by Cloud +// Audit Logging. type AuthorizationLoggingOptions struct { // PermissionType: The type of the permission that was checked. // @@ -294,155 +288,125 @@ type AuthorizationLoggingOptions struct { // "DATA_READ" - A read of standard data. // "DATA_WRITE" - A write of standard data. PermissionType string `json:"permissionType,omitempty"` - // ForceSendFields is a list of field names (e.g. "PermissionType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PermissionType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PermissionType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { +func (s AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { type NoMethod AuthorizationLoggingOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members`, or principals, with a `role`. type Binding struct { BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the - // current request. If the condition evaluates to `false`, then this - // binding does not apply to the current request. However, a different - // role binding might grant the same role to one or more of the - // principals in this binding. To learn which resources support - // conditions in their IAM policies, see the IAM documentation + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the principals in this binding. To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` - - // Members: Specifies the principals requesting access for a Google - // Cloud resource. `members` can have the following values: * - // `allUsers`: A special identifier that represents anyone who is on the - // internet; with or without a Google account. * - // `allAuthenticatedUsers`: A special identifier that represents anyone - // who is authenticated with a Google account or a service account. Does - // not include identities that come from external identity providers - // (IdPs) through identity federation. * `user:{emailid}`: An email + // Members: Specifies the principals requesting access for a Google Cloud + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. Does not include identities that come from external identity + // providers (IdPs) through identity federation. * `user:{emailid}`: An email // address that represents a specific Google account. For example, - // `alice@example.com` . * `serviceAccount:{emailid}`: An email address - // that represents a Google service account. For example, + // `alice@example.com` . * `serviceAccount:{emailid}`: An email address that + // represents a Google service account. For example, // `my-other-app@appspot.gserviceaccount.com`. * - // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: - // An identifier for a Kubernetes service account + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An + // identifier for a Kubernetes service account // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). - // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. - // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * `domain:{domain}`: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, `google.com` or `example.com`. * - // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently - // deleted. For example, `alice@example.com?uid=123456789012345678901`. - // If the user is recovered, this value reverts to `user:{emailid}` and - // the recovered user retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus unique identifier) representing a service account that has been + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + // `group:{emailid}`: An email address that represents a Google group. For + // example, `admins@example.com`. * `domain:{domain}`: The G Suite domain + // (primary) that represents all the users of that domain. For example, + // `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has been // recently deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: - // An email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is - // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. + // `alice@example.com?uid=123456789012345678901`. If the user is recovered, + // this value reverts to `user:{emailid}` and the recovered user retains the + // role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a service account that + // has been recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the + // service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + // address (plus unique identifier) representing a Google group that has been + // recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is recovered, + // this value reverts to `group:{emailid}` and the recovered group retains the + // role in the binding. Members []string `json:"members,omitempty"` - - // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // Role: Role that is assigned to the list of `members`, or principals. For + // example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BindingId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BindingId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. +// CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } // CloudAuditOptions: Write a Cloud Audit log type CloudAuditOptions struct { - // AuthorizationLoggingOptions: Information used by the Cloud Audit - // Logging pipeline. + // AuthorizationLoggingOptions: Information used by the Cloud Audit Logging + // pipeline. AuthorizationLoggingOptions *AuthorizationLoggingOptions `json:"authorizationLoggingOptions,omitempty"` - // LogName: The log_name to populate in the Cloud Audit Record. // // Possible values: // "UNSPECIFIED_LOG_NAME" - Default. Should not be used. - // "ADMIN_ACTIVITY" - Corresponds to - // "cloudaudit.googleapis.com/activity" - // "DATA_ACCESS" - Corresponds to - // "cloudaudit.googleapis.com/data_access" + // "ADMIN_ACTIVITY" - Corresponds to "cloudaudit.googleapis.com/activity" + // "DATA_ACCESS" - Corresponds to "cloudaudit.googleapis.com/data_access" LogName string `json:"logName,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "AuthorizationLoggingOptions") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthorizationLoggingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CloudAuditOptions) MarshalJSON() ([]byte, error) { +func (s CloudAuditOptions) MarshalJSON() ([]byte, error) { type NoMethod CloudAuditOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Condition: A condition to be met. @@ -452,70 +416,64 @@ type Condition struct { // Possible values: // "NO_ATTR" - Default non-attribute. // "AUTHORITY" - Either principal or (if present) authority selector. - // "ATTRIBUTION" - The principal (even if an authority selector is - // present), which must only be used for attribution, not authorization. + // "ATTRIBUTION" - The principal (even if an authority selector is present), + // which must only be used for attribution, not authorization. // "SECURITY_REALM" - Any of the security realms in the IAMContext - // (go/security-realms). When used with IN, the condition indicates "any - // of the request's realms match one of the given values; with NOT_IN, - // "none of the realms match any of the given values". Note that a value - // can be: - 'self:campus' (i.e., clients that are in the same campus) - - // 'self:metro' (i.e., clients that are in the same metro) - - // 'self:cloud-region' (i.e., allow connections from clients that are in - // the same cloud region) - 'self:prod-region' (i.e., allow connections - // from clients that are in the same prod region) - 'guardians' (i.e., - // allow connections from its guardian realms. See - // go/security-realms-glossary#guardian for more information.) - 'self' - // [DEPRECATED] (i.e., allow connections from clients that are in the + // (go/security-realms). When used with IN, the condition indicates "any of the + // request's realms match one of the given values; with NOT_IN, "none of the + // realms match any of the given values". Note that a value can be: - + // 'self:campus' (i.e., clients that are in the same campus) - 'self:metro' + // (i.e., clients that are in the same metro) - 'self:cloud-region' (i.e., + // allow connections from clients that are in the same cloud region) - + // 'self:prod-region' (i.e., allow connections from clients that are in the + // same prod region) - 'guardians' (i.e., allow connections from its guardian + // realms. See go/security-realms-glossary#guardian for more information.) - + // 'self' [DEPRECATED] (i.e., allow connections from clients that are in the // same security realm, which is currently but not guaranteed to be // campus-sized) - a realm (e.g., 'campus-abc') - a realm group (e.g., - // 'realms-for-borg-cell-xx', see: go/realm-groups) A match is - // determined by a realm group membership check performed by a - // RealmAclRep object (go/realm-acl-howto). It is not permitted to grant - // access based on the *absence* of a realm, so realm conditions can - // only be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). - // "APPROVER" - An approver (distinct from the requester) that has - // authorized this request. When used with IN, the condition indicates - // that one of the approvers associated with the request matches the - // specified principal, or is a member of the specified group. Approvers - // can only grant additional access, and are thus only used in a - // strictly positive context (e.g. ALLOW/IN or DENY/NOT_IN). - // "JUSTIFICATION_TYPE" - What types of justifications have been - // supplied with this request. String values should match enum names - // from security.credentials.JustificationType, e.g. "MANUAL_STRING". It - // is not permitted to grant access based on the *absence* of a - // justification, so justification conditions can only be used in a - // "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). Multiple - // justifications, e.g., a Buganizer ID and a manually-entered reason, - // are normal and supported. - // "CREDENTIALS_TYPE" - What type of credentials have been supplied + // 'realms-for-borg-cell-xx', see: go/realm-groups) A match is determined by a + // realm group membership check performed by a RealmAclRep object + // (go/realm-acl-howto). It is not permitted to grant access based on the + // *absence* of a realm, so realm conditions can only be used in a "positive" + // context (e.g., ALLOW/IN or DENY/NOT_IN). + // "APPROVER" - An approver (distinct from the requester) that has authorized + // this request. When used with IN, the condition indicates that one of the + // approvers associated with the request matches the specified principal, or is + // a member of the specified group. Approvers can only grant additional access, + // and are thus only used in a strictly positive context (e.g. ALLOW/IN or + // DENY/NOT_IN). + // "JUSTIFICATION_TYPE" - What types of justifications have been supplied // with this request. String values should match enum names from - // security_loas_l2.CredentialsType - currently, only - // CREDS_TYPE_EMERGENCY is supported. It is not permitted to grant - // access based on the *absence* of a credentials type, so the - // conditions can only be used in a "positive" context (e.g., ALLOW/IN - // or DENY/NOT_IN). - // "CREDS_ASSERTION" - EXPERIMENTAL -- DO NOT USE. The conditions can - // only be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). + // security.credentials.JustificationType, e.g. "MANUAL_STRING". It is not + // permitted to grant access based on the *absence* of a justification, so + // justification conditions can only be used in a "positive" context (e.g., + // ALLOW/IN or DENY/NOT_IN). Multiple justifications, e.g., a Buganizer ID and + // a manually-entered reason, are normal and supported. + // "CREDENTIALS_TYPE" - What type of credentials have been supplied with this + // request. String values should match enum names from + // security_loas_l2.CredentialsType - currently, only CREDS_TYPE_EMERGENCY is + // supported. It is not permitted to grant access based on the *absence* of a + // credentials type, so the conditions can only be used in a "positive" context + // (e.g., ALLOW/IN or DENY/NOT_IN). + // "CREDS_ASSERTION" - EXPERIMENTAL -- DO NOT USE. The conditions can only be + // used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). Iam string `json:"iam,omitempty"` - // Op: An operator to apply the subject with. // // Possible values: // "NO_OP" - Default no-op. // "EQUALS" - DEPRECATED. Use IN instead. // "NOT_EQUALS" - DEPRECATED. Use NOT_IN instead. - // "IN" - The condition is true if the subject (or any element of it - // if it is a set) matches any of the supplied values. - // "NOT_IN" - The condition is true if the subject (or every element - // of it if it is a set) matches none of the supplied values. + // "IN" - The condition is true if the subject (or any element of it if it is + // a set) matches any of the supplied values. + // "NOT_IN" - The condition is true if the subject (or every element of it if + // it is a set) matches none of the supplied values. // "DISCHARGED" - Subject is discharged Op string `json:"op,omitempty"` - // Svc: Trusted attributes discharged by the service. Svc string `json:"svc,omitempty"` - - // Sys: Trusted attributes supplied by any service that owns resources - // and uses the IAM system for access control. + // Sys: Trusted attributes supplied by any service that owns resources and uses + // the IAM system for access control. // // Possible values: // "NO_ATTR" - Default non-attribute type @@ -524,565 +482,448 @@ type Condition struct { // "NAME" - Resource name // "IP" - IP address of the caller Sys string `json:"sys,omitempty"` - // Values: The objects of the condition. Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Iam") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Iam") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Iam") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Iam") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Condition) MarshalJSON() ([]byte, error) { +func (s Condition) MarshalJSON() ([]byte, error) { type NoMethod Condition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CounterOptions: Increment a streamz counter with the specified metric -// and field names. Metric names should start with a '/', generally be -// lowercase-only, and end in "_count". Field names should not contain -// an initial slash. The actual exported metric names will have -// "/iam/policy" prepended. Field names correspond to IAM request -// parameters and field values are their respective values. Supported -// field names: - "authority", which is "[token]" if IAMContext.token is -// present, otherwise the value of IAMContext.authority_selector if -// present, and otherwise a representation of IAMContext.principal; or - -// "iam_principal", a representation of IAMContext.principal even if a -// token or authority selector is present; or - "" (empty string), -// resulting in a counter with no fields. Examples: counter { metric: -// "/debug_access_count" field: "iam_principal" } ==> increment counter -// /iam/policy/debug_access_count {iam_principal=[value of + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CounterOptions: Increment a streamz counter with the specified metric and +// field names. Metric names should start with a '/', generally be +// lowercase-only, and end in "_count". Field names should not contain an +// initial slash. The actual exported metric names will have "/iam/policy" +// prepended. Field names correspond to IAM request parameters and field values +// are their respective values. Supported field names: - "authority", which is +// "[token]" if IAMContext.token is present, otherwise the value of +// IAMContext.authority_selector if present, and otherwise a representation of +// IAMContext.principal; or - "iam_principal", a representation of +// IAMContext.principal even if a token or authority selector is present; or - +// "" (empty string), resulting in a counter with no fields. Examples: counter +// { metric: "/debug_access_count" field: "iam_principal" } ==> increment +// counter /iam/policy/debug_access_count {iam_principal=[value of // IAMContext.principal]} type CounterOptions struct { // CustomFields: Custom fields. CustomFields []*CustomField `json:"customFields,omitempty"` - // Field: The field value to attribute. Field string `json:"field,omitempty"` - // Metric: The metric to update. Metric string `json:"metric,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomFields") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomFields") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomFields") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CounterOptions) MarshalJSON() ([]byte, error) { +func (s CounterOptions) MarshalJSON() ([]byte, error) { type NoMethod CounterOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomField: Custom fields. These can be used to create a counter -// with arbitrary field/value pairs. See: go/rpcsp-custom-fields. +// CustomField: Custom fields. These can be used to create a counter with +// arbitrary field/value pairs. See: go/rpcsp-custom-fields. type CustomField struct { // Name: Name is the field name. Name string `json:"name,omitempty"` - - // Value: Value is the field value. It is important that in contrast to - // the CounterOptions.field, the value here is a constant that is not - // derived from the IAMContext. + // Value: Value is the field value. It is important that in contrast to the + // CounterOptions.field, the value here is a constant that is not derived from + // the IAMContext. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomField) MarshalJSON() ([]byte, error) { +func (s CustomField) MarshalJSON() ([]byte, error) { type NoMethod CustomField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DataAccessOptions: Write a Data Access (Gin) log type DataAccessOptions struct { // Possible values: - // "LOG_MODE_UNSPECIFIED" - Client is not required to write a partial - // Gin log immediately after the authorization check. If client chooses - // to write one and it fails, client may either fail open (allow the - // operation to continue) or fail closed (handle as a DENY outcome). - // "LOG_FAIL_CLOSED" - The application's operation in the context of - // which this authorization check is being made may only be performed if - // it is successfully logged to Gin. For instance, the authorization - // library may satisfy this obligation by emitting a partial log entry - // at authorization check time and only returning ALLOW to the - // application if it succeeds. If a matching Rule has this directive, - // but the client has not indicated that it will honor such - // requirements, then the IAM check will result in authorization failure - // by setting CheckPolicyResponse.success=false. + // "LOG_MODE_UNSPECIFIED" - Client is not required to write a partial Gin log + // immediately after the authorization check. If client chooses to write one + // and it fails, client may either fail open (allow the operation to continue) + // or fail closed (handle as a DENY outcome). + // "LOG_FAIL_CLOSED" - The application's operation in the context of which + // this authorization check is being made may only be performed if it is + // successfully logged to Gin. For instance, the authorization library may + // satisfy this obligation by emitting a partial log entry at authorization + // check time and only returning ALLOW to the application if it succeeds. If a + // matching Rule has this directive, but the client has not indicated that it + // will honor such requirements, then the IAM check will result in + // authorization failure by setting CheckPolicyResponse.success=false. LogMode string `json:"logMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LogMode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "LogMode") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogMode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LogMode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DataAccessOptions) MarshalJSON() ([]byte, error) { +func (s DataAccessOptions) MarshalJSON() ([]byte, error) { type NoMethod DataAccessOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec. Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if // requestor is the document owner" expression: "document.owner == // request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. +// ListLocationsResponse: The response message for Locations.ListLocations. type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. + // Locations: A list of locations that matches the specified filter in the + // request. Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Location: A resource that represents a Google Cloud location. type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". + // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LogConfig: Specifies what kind of log the caller must write type LogConfig struct { // CloudAudit: Cloud audit options. CloudAudit *CloudAuditOptions `json:"cloudAudit,omitempty"` - // Counter: Counter options. Counter *CounterOptions `json:"counter,omitempty"` - // DataAccess: Data access options. DataAccess *DataAccessOptions `json:"dataAccess,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudAudit") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudAudit") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudAudit") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogConfig) MarshalJSON() ([]byte, error) { +func (s LogConfig) MarshalJSON() ([]byte, error) { type NoMethod LogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members`, or -// principals, to a single `role`. Principals can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. For some types of -// Google Cloud resources, a `binding` can also specify a `condition`, -// which is a logical expression that allows access to a resource only -// if the expression evaluates to `true`. A condition can add -// constraints based on attributes of the request, the resource, or -// both. To learn which resources support conditions in their IAM -// policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which specifies +// access controls for Google Cloud resources. A `Policy` is a collection of +// `bindings`. A `binding` binds one or more `members`, or principals, to a +// single `role`. Principals can be user accounts, service accounts, Google +// groups, and domains (such as G Suite). A `role` is a named list of +// permissions; each `role` can be an IAM predefined role or a user-created +// custom role. For some types of Google Cloud resources, a `binding` can also +// specify a `condition`, which is a logical expression that allows access to a +// resource only if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or both. To +// learn which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - - // Bindings: Associates a list of `members`, or principals, with a - // `role`. Optionally, may specify a `condition` that determines how and - // when the `bindings` are applied. Each of the `bindings` must contain - // at least one principal. The `bindings` in a `Policy` can refer to up - // to 1,500 principals; up to 250 of these principals can be Google - // groups. Each occurrence of a principal counts towards these limits. - // For example, if the `bindings` grant 50 different roles to - // `user:alice@example.com`, and not to any other principal, then you - // can add another 1,450 principals to the `bindings` in the `Policy`. + // Bindings: Associates a list of `members`, or principals, with a `role`. + // Optionally, may specify a `condition` that determines how and when the + // `bindings` are applied. Each of the `bindings` must contain at least one + // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; + // up to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the `bindings` grant + // 50 different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. Bindings []*Binding `json:"bindings,omitempty"` - - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - - // Rules: If more than one rule is specified, the rules are applied in - // the following manner: - All matching LOG rules are always applied. - - // If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging - // will be applied if one or more matching rule requires logging. - - // Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is - // granted. Logging will be applied if one or more matching rule - // requires logging. - Otherwise, if no rule applies, permission is - // denied. + // Rules: If more than one rule is specified, the rules are applied in the + // following manner: - All matching LOG rules are always applied. - If any + // DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be + // applied if one or more matching rule requires logging. - Otherwise, if any + // ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be + // applied if one or more matching rule requires logging. - Otherwise, if no + // rule applies, permission is denied. Rules []*Rule `json:"rules,omitempty"` - - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the IAM - // documentation + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Rule: A rule to be applied in a Policy. @@ -1092,212 +933,166 @@ type Rule struct { // Possible values: // "NO_ACTION" - Default no action. // "ALLOW" - Matching 'Entries' grant access. - // "ALLOW_WITH_LOG" - Matching 'Entries' grant access and the caller - // promises to log the request per the returned log_configs. + // "ALLOW_WITH_LOG" - Matching 'Entries' grant access and the caller promises + // to log the request per the returned log_configs. // "DENY" - Matching 'Entries' deny access. - // "DENY_WITH_LOG" - Matching 'Entries' deny access and the caller - // promises to log the request per the returned log_configs. + // "DENY_WITH_LOG" - Matching 'Entries' deny access and the caller promises + // to log the request per the returned log_configs. // "LOG" - Matching 'Entries' tell IAM.Check callers to generate logs. Action string `json:"action,omitempty"` - - // Conditions: Additional restrictions that must be met. All conditions - // must pass for the rule to match. + // Conditions: Additional restrictions that must be met. All conditions must + // pass for the rule to match. Conditions []*Condition `json:"conditions,omitempty"` - // Description: Human-readable description of the rule. Description string `json:"description,omitempty"` - - // In: If one or more 'in' clauses are specified, the rule matches if - // the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. + // In: If one or more 'in' clauses are specified, the rule matches if the + // PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. In []string `json:"in,omitempty"` - - // LogConfig: The config returned to callers of CheckPolicy for any - // entries that match the LOG action. + // LogConfig: The config returned to callers of CheckPolicy for any entries + // that match the LOG action. LogConfig []*LogConfig `json:"logConfig,omitempty"` - - // NotIn: If one or more 'not_in' clauses are specified, the rule - // matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the - // entries. The format for in and not_in entries can be found at in the - // Local IAM documentation (see go/local-iam#features). + // NotIn: If one or more 'not_in' clauses are specified, the rule matches if + // the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. The format for + // in and not_in entries can be found at in the Local IAM documentation (see + // go/local-iam#features). NotIn []string `json:"notIn,omitempty"` - // Permissions: A permission is a string of form '..' (e.g., - // 'storage.buckets.list'). A value of '*' matches all permissions, and - // a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. + // 'storage.buckets.list'). A value of '*' matches all permissions, and a verb + // part of '*' (e.g., 'storage.buckets.*') matches all verbs. Permissions []string `json:"permissions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rule) MarshalJSON() ([]byte, error) { +func (s Rule) MarshalJSON() ([]byte, error) { type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Google Cloud services - // (such as Projects) might reject them. + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Google Cloud services (such as Projects) might reject + // them. Policy *Policy `json:"policy,omitempty"` - - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only the fields in the mask will be modified. If no - // mask is provided, the following default mask is used: `paths: - // "bindings, etag" + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only the fields in the mask will be modified. If no mask is + // provided, the following default mask is used: `paths: "bindings, etag" UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. +// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as `*` or `storage.*`) are not - // allowed. For more information see IAM Overview + // Permissions: The set of permissions to check for the `resource`. Permissions + // with wildcards (such as `*` or `storage.*`) are not allowed. For more + // information see IAM Overview // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsResponse: Response message for `TestIamPermissions` // method. type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is allowed. + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "gameservices.projects.locations.get": - type ProjectsLocationsGetCall struct { s *Service name string @@ -1317,33 +1112,29 @@ func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1352,12 +1143,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { } func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1374,16 +1160,14 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1414,35 +1198,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, return nil, err } return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "gameservices.projects.locations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the location.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Location" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.list": +} type ProjectsLocationsListCall struct { s *Service @@ -1453,21 +1209,19 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this service. // -// - name: The resource that owns the locations collection, if -// applicable. +// - name: The resource that owns the locations collection, if applicable. func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). +// Filter sets the optional parameter "filter": A filter to narrow down results +// to a preferred subset. The filtering language accepts strings like +// "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -1481,49 +1235,45 @@ func (c *ProjectsLocationsListCall) IncludeUnrevealedLocations(includeUnrevealed return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. If not set, the service selects a default. func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. +// PageToken sets the optional parameter "pageToken": A page token received +// from the `next_page_token` field in the response. Send that page token to +// receive the subsequent page. func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1532,12 +1282,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { } func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1554,16 +1299,15 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1594,53 +1338,6 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat return nil, err } return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "gameservices.projects.locations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - // "location": "query", - // "type": "string" - // }, - // "includeUnrevealedLocations": { - // "description": "If true, the returned list will include locations which are not yet revealed.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}/locations", - // "response": { - // "$ref": "ListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1648,7 +1345,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1664,8 +1361,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -// method id "gameservices.projects.locations.gameServerDeployments.getIamPolicy": - type ProjectsLocationsGameServerDeploymentsGetIamPolicyCall struct { s *Service resource string @@ -1675,14 +1370,12 @@ type ProjectsLocationsGameServerDeploymentsGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. func (r *ProjectsLocationsGameServerDeploymentsService) GetIamPolicy(resource string) *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall { c := &ProjectsLocationsGameServerDeploymentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1690,17 +1383,16 @@ func (r *ProjectsLocationsGameServerDeploymentsService) GetIamPolicy(resource st } // OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -1708,33 +1400,29 @@ func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) OptionsRequeste } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1743,12 +1431,7 @@ func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Header() http.H } func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1765,16 +1448,14 @@ func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.gameServerDeployments.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1805,41 +1486,7 @@ func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/gameServerDeployments/{gameServerDeploymentsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "gameservices.projects.locations.gameServerDeployments.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gameServerDeployments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.gameServerDeployments.setIamPolicy": +} type ProjectsLocationsGameServerDeploymentsSetIamPolicyCall struct { s *Service @@ -1850,14 +1497,13 @@ type ProjectsLocationsGameServerDeploymentsSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. func (r *ProjectsLocationsGameServerDeploymentsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall { c := &ProjectsLocationsGameServerDeploymentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1866,23 +1512,21 @@ func (r *ProjectsLocationsGameServerDeploymentsService) SetIamPolicy(resource st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1891,18 +1535,12 @@ func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Header() http.H } func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") @@ -1915,16 +1553,14 @@ func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.gameServerDeployments.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1955,38 +1591,7 @@ func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/gameServerDeployments/{gameServerDeploymentsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "gameservices.projects.locations.gameServerDeployments.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gameServerDeployments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.gameServerDeployments.testIamPermissions": +} type ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall struct { s *Service @@ -1997,17 +1602,16 @@ type ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. func (r *ProjectsLocationsGameServerDeploymentsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall { c := &ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2016,23 +1620,21 @@ func (r *ProjectsLocationsGameServerDeploymentsService) TestIamPermissions(resou } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2041,18 +1643,12 @@ func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Header() } func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") @@ -2065,16 +1661,15 @@ func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.gameServerDeployments.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2105,38 +1700,7 @@ func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Do(opts . return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/gameServerDeployments/{gameServerDeploymentsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "gameservices.projects.locations.gameServerDeployments.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gameServerDeployments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.operations.cancel": +} type ProjectsLocationsOperationsCancelCall struct { s *Service @@ -2147,15 +1711,14 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. @@ -2167,23 +1730,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2192,18 +1753,12 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") @@ -2216,16 +1771,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2256,38 +1809,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "gameservices.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.operations.delete": +} type ProjectsLocationsOperationsDeleteCall struct { s *Service @@ -2297,10 +1819,10 @@ type ProjectsLocationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { @@ -2310,23 +1832,21 @@ func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2335,12 +1855,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2354,16 +1869,14 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2394,35 +1907,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "gameservices.projects.locations.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.operations.get": +} type ProjectsLocationsOperationsGetCall struct { s *Service @@ -2433,9 +1918,9 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { @@ -2445,33 +1930,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2480,12 +1961,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2502,16 +1978,14 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2542,35 +2016,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "gameservices.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.operations.list": +} type ProjectsLocationsOperationsListCall struct { s *Service @@ -2581,9 +2027,8 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -2592,55 +2037,50 @@ func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocation return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2649,12 +2089,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2671,16 +2106,15 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2711,48 +2145,6 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "gameservices.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2760,7 +2152,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/gameservices/v1beta/gameservices-gen.go b/gameservices/v1beta/gameservices-gen.go index cd65477a56f..575aa68356f 100644 --- a/gameservices/v1beta/gameservices-gen.go +++ b/gameservices/v1beta/gameservices-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/solutions/gaming/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // gameservicesService, err := gameservices.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // gameservicesService, err := gameservices.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // gameservicesService, err := gameservices.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package gameservices // import "google.golang.org/api/gameservices/v1beta" import ( @@ -77,12 +90,13 @@ const apiId = "gameservices:v1beta" const apiName = "gameservices" const apiVersion = "v1beta" const basePath = "https://gameservices.googleapis.com/" +const basePathTemplate = "https://gameservices.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://gameservices.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -94,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -185,70 +201,55 @@ type ProjectsLocationsOperationsService struct { // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what -// identities, if any, are exempted from logging. An AuditConfig must -// have one or more AuditLogConfigs. If there are AuditConfigs for both -// `allServices` and a specific service, the union of the two -// AuditConfigs is used for that service: the log_types specified in -// each AuditConfig are enabled, and the exempted_members in each -// AuditLogConfig are exempted. Example Policy with multiple -// AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": -// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { -// "log_type": "ADMIN_READ" } ] }, { "service": -// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": -// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy -// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts -// `jose@example.com` from DATA_READ logging, and `aliya@example.com` -// from DATA_WRITE logging. +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +// and a specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted. Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts `jose@example.com` from DATA_READ logging, and +// `aliya@example.com` from DATA_WRITE logging. type AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit logging. - // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - // `allServices` is a special value that covers all services. + // Service: Specifies a service that will be enabled for audit logging. For + // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` + // is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditConfig) MarshalJSON() ([]byte, error) { +func (s AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditLogConfig: Provides the configuration for logging a type of -// permissions. Example: { "audit_log_configs": [ { "log_type": -// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { -// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and -// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ -// logging. +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. type AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of permission. Follows the same format of - // Binding.members. - ExemptedMembers []string `json:"exemptedMembers,omitempty"` - - IgnoreChildExemptions bool `json:"ignoreChildExemptions,omitempty"` - + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + IgnoreChildExemptions bool `json:"ignoreChildExemptions,omitempty"` // LogType: The log type that this config enables. // // Possible values: @@ -257,33 +258,26 @@ type AuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AuthorizationLoggingOptions: Authorization-related information used -// by Cloud Audit Logging. +// AuthorizationLoggingOptions: Authorization-related information used by Cloud +// Audit Logging. type AuthorizationLoggingOptions struct { // PermissionType: The type of the permission that was checked. // @@ -294,155 +288,125 @@ type AuthorizationLoggingOptions struct { // "DATA_READ" - A read of standard data. // "DATA_WRITE" - A write of standard data. PermissionType string `json:"permissionType,omitempty"` - // ForceSendFields is a list of field names (e.g. "PermissionType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PermissionType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PermissionType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { +func (s AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { type NoMethod AuthorizationLoggingOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members`, or principals, with a `role`. type Binding struct { BindingId string `json:"bindingId,omitempty"` - // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the - // current request. If the condition evaluates to `false`, then this - // binding does not apply to the current request. However, a different - // role binding might grant the same role to one or more of the - // principals in this binding. To learn which resources support - // conditions in their IAM policies, see the IAM documentation + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the principals in this binding. To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` - - // Members: Specifies the principals requesting access for a Google - // Cloud resource. `members` can have the following values: * - // `allUsers`: A special identifier that represents anyone who is on the - // internet; with or without a Google account. * - // `allAuthenticatedUsers`: A special identifier that represents anyone - // who is authenticated with a Google account or a service account. Does - // not include identities that come from external identity providers - // (IdPs) through identity federation. * `user:{emailid}`: An email + // Members: Specifies the principals requesting access for a Google Cloud + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. Does not include identities that come from external identity + // providers (IdPs) through identity federation. * `user:{emailid}`: An email // address that represents a specific Google account. For example, - // `alice@example.com` . * `serviceAccount:{emailid}`: An email address - // that represents a Google service account. For example, + // `alice@example.com` . * `serviceAccount:{emailid}`: An email address that + // represents a Google service account. For example, // `my-other-app@appspot.gserviceaccount.com`. * - // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: - // An identifier for a Kubernetes service account + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An + // identifier for a Kubernetes service account // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). - // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. - // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * `domain:{domain}`: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, `google.com` or `example.com`. * - // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently - // deleted. For example, `alice@example.com?uid=123456789012345678901`. - // If the user is recovered, this value reverts to `user:{emailid}` and - // the recovered user retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus unique identifier) representing a service account that has been + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + // `group:{emailid}`: An email address that represents a Google group. For + // example, `admins@example.com`. * `domain:{domain}`: The G Suite domain + // (primary) that represents all the users of that domain. For example, + // `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has been // recently deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: - // An email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is - // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. + // `alice@example.com?uid=123456789012345678901`. If the user is recovered, + // this value reverts to `user:{emailid}` and the recovered user retains the + // role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a service account that + // has been recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the + // service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + // address (plus unique identifier) representing a Google group that has been + // recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is recovered, + // this value reverts to `group:{emailid}` and the recovered group retains the + // role in the binding. Members []string `json:"members,omitempty"` - - // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // Role: Role that is assigned to the list of `members`, or principals. For + // example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindingId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BindingId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BindingId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. +// CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } // CloudAuditOptions: Write a Cloud Audit log type CloudAuditOptions struct { - // AuthorizationLoggingOptions: Information used by the Cloud Audit - // Logging pipeline. + // AuthorizationLoggingOptions: Information used by the Cloud Audit Logging + // pipeline. AuthorizationLoggingOptions *AuthorizationLoggingOptions `json:"authorizationLoggingOptions,omitempty"` - // LogName: The log_name to populate in the Cloud Audit Record. // // Possible values: // "UNSPECIFIED_LOG_NAME" - Default. Should not be used. - // "ADMIN_ACTIVITY" - Corresponds to - // "cloudaudit.googleapis.com/activity" - // "DATA_ACCESS" - Corresponds to - // "cloudaudit.googleapis.com/data_access" + // "ADMIN_ACTIVITY" - Corresponds to "cloudaudit.googleapis.com/activity" + // "DATA_ACCESS" - Corresponds to "cloudaudit.googleapis.com/data_access" LogName string `json:"logName,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "AuthorizationLoggingOptions") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthorizationLoggingOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CloudAuditOptions) MarshalJSON() ([]byte, error) { +func (s CloudAuditOptions) MarshalJSON() ([]byte, error) { type NoMethod CloudAuditOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Condition: A condition to be met. @@ -452,70 +416,64 @@ type Condition struct { // Possible values: // "NO_ATTR" - Default non-attribute. // "AUTHORITY" - Either principal or (if present) authority selector. - // "ATTRIBUTION" - The principal (even if an authority selector is - // present), which must only be used for attribution, not authorization. + // "ATTRIBUTION" - The principal (even if an authority selector is present), + // which must only be used for attribution, not authorization. // "SECURITY_REALM" - Any of the security realms in the IAMContext - // (go/security-realms). When used with IN, the condition indicates "any - // of the request's realms match one of the given values; with NOT_IN, - // "none of the realms match any of the given values". Note that a value - // can be: - 'self:campus' (i.e., clients that are in the same campus) - - // 'self:metro' (i.e., clients that are in the same metro) - - // 'self:cloud-region' (i.e., allow connections from clients that are in - // the same cloud region) - 'self:prod-region' (i.e., allow connections - // from clients that are in the same prod region) - 'guardians' (i.e., - // allow connections from its guardian realms. See - // go/security-realms-glossary#guardian for more information.) - 'self' - // [DEPRECATED] (i.e., allow connections from clients that are in the + // (go/security-realms). When used with IN, the condition indicates "any of the + // request's realms match one of the given values; with NOT_IN, "none of the + // realms match any of the given values". Note that a value can be: - + // 'self:campus' (i.e., clients that are in the same campus) - 'self:metro' + // (i.e., clients that are in the same metro) - 'self:cloud-region' (i.e., + // allow connections from clients that are in the same cloud region) - + // 'self:prod-region' (i.e., allow connections from clients that are in the + // same prod region) - 'guardians' (i.e., allow connections from its guardian + // realms. See go/security-realms-glossary#guardian for more information.) - + // 'self' [DEPRECATED] (i.e., allow connections from clients that are in the // same security realm, which is currently but not guaranteed to be // campus-sized) - a realm (e.g., 'campus-abc') - a realm group (e.g., - // 'realms-for-borg-cell-xx', see: go/realm-groups) A match is - // determined by a realm group membership check performed by a - // RealmAclRep object (go/realm-acl-howto). It is not permitted to grant - // access based on the *absence* of a realm, so realm conditions can - // only be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). - // "APPROVER" - An approver (distinct from the requester) that has - // authorized this request. When used with IN, the condition indicates - // that one of the approvers associated with the request matches the - // specified principal, or is a member of the specified group. Approvers - // can only grant additional access, and are thus only used in a - // strictly positive context (e.g. ALLOW/IN or DENY/NOT_IN). - // "JUSTIFICATION_TYPE" - What types of justifications have been - // supplied with this request. String values should match enum names - // from security.credentials.JustificationType, e.g. "MANUAL_STRING". It - // is not permitted to grant access based on the *absence* of a - // justification, so justification conditions can only be used in a - // "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). Multiple - // justifications, e.g., a Buganizer ID and a manually-entered reason, - // are normal and supported. - // "CREDENTIALS_TYPE" - What type of credentials have been supplied + // 'realms-for-borg-cell-xx', see: go/realm-groups) A match is determined by a + // realm group membership check performed by a RealmAclRep object + // (go/realm-acl-howto). It is not permitted to grant access based on the + // *absence* of a realm, so realm conditions can only be used in a "positive" + // context (e.g., ALLOW/IN or DENY/NOT_IN). + // "APPROVER" - An approver (distinct from the requester) that has authorized + // this request. When used with IN, the condition indicates that one of the + // approvers associated with the request matches the specified principal, or is + // a member of the specified group. Approvers can only grant additional access, + // and are thus only used in a strictly positive context (e.g. ALLOW/IN or + // DENY/NOT_IN). + // "JUSTIFICATION_TYPE" - What types of justifications have been supplied // with this request. String values should match enum names from - // security_loas_l2.CredentialsType - currently, only - // CREDS_TYPE_EMERGENCY is supported. It is not permitted to grant - // access based on the *absence* of a credentials type, so the - // conditions can only be used in a "positive" context (e.g., ALLOW/IN - // or DENY/NOT_IN). - // "CREDS_ASSERTION" - EXPERIMENTAL -- DO NOT USE. The conditions can - // only be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). + // security.credentials.JustificationType, e.g. "MANUAL_STRING". It is not + // permitted to grant access based on the *absence* of a justification, so + // justification conditions can only be used in a "positive" context (e.g., + // ALLOW/IN or DENY/NOT_IN). Multiple justifications, e.g., a Buganizer ID and + // a manually-entered reason, are normal and supported. + // "CREDENTIALS_TYPE" - What type of credentials have been supplied with this + // request. String values should match enum names from + // security_loas_l2.CredentialsType - currently, only CREDS_TYPE_EMERGENCY is + // supported. It is not permitted to grant access based on the *absence* of a + // credentials type, so the conditions can only be used in a "positive" context + // (e.g., ALLOW/IN or DENY/NOT_IN). + // "CREDS_ASSERTION" - EXPERIMENTAL -- DO NOT USE. The conditions can only be + // used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). Iam string `json:"iam,omitempty"` - // Op: An operator to apply the subject with. // // Possible values: // "NO_OP" - Default no-op. // "EQUALS" - DEPRECATED. Use IN instead. // "NOT_EQUALS" - DEPRECATED. Use NOT_IN instead. - // "IN" - The condition is true if the subject (or any element of it - // if it is a set) matches any of the supplied values. - // "NOT_IN" - The condition is true if the subject (or every element - // of it if it is a set) matches none of the supplied values. + // "IN" - The condition is true if the subject (or any element of it if it is + // a set) matches any of the supplied values. + // "NOT_IN" - The condition is true if the subject (or every element of it if + // it is a set) matches none of the supplied values. // "DISCHARGED" - Subject is discharged Op string `json:"op,omitempty"` - // Svc: Trusted attributes discharged by the service. Svc string `json:"svc,omitempty"` - - // Sys: Trusted attributes supplied by any service that owns resources - // and uses the IAM system for access control. + // Sys: Trusted attributes supplied by any service that owns resources and uses + // the IAM system for access control. // // Possible values: // "NO_ATTR" - Default non-attribute type @@ -524,565 +482,448 @@ type Condition struct { // "NAME" - Resource name // "IP" - IP address of the caller Sys string `json:"sys,omitempty"` - // Values: The objects of the condition. Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Iam") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Iam") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Iam") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Iam") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Condition) MarshalJSON() ([]byte, error) { +func (s Condition) MarshalJSON() ([]byte, error) { type NoMethod Condition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CounterOptions: Increment a streamz counter with the specified metric -// and field names. Metric names should start with a '/', generally be -// lowercase-only, and end in "_count". Field names should not contain -// an initial slash. The actual exported metric names will have -// "/iam/policy" prepended. Field names correspond to IAM request -// parameters and field values are their respective values. Supported -// field names: - "authority", which is "[token]" if IAMContext.token is -// present, otherwise the value of IAMContext.authority_selector if -// present, and otherwise a representation of IAMContext.principal; or - -// "iam_principal", a representation of IAMContext.principal even if a -// token or authority selector is present; or - "" (empty string), -// resulting in a counter with no fields. Examples: counter { metric: -// "/debug_access_count" field: "iam_principal" } ==> increment counter -// /iam/policy/debug_access_count {iam_principal=[value of + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CounterOptions: Increment a streamz counter with the specified metric and +// field names. Metric names should start with a '/', generally be +// lowercase-only, and end in "_count". Field names should not contain an +// initial slash. The actual exported metric names will have "/iam/policy" +// prepended. Field names correspond to IAM request parameters and field values +// are their respective values. Supported field names: - "authority", which is +// "[token]" if IAMContext.token is present, otherwise the value of +// IAMContext.authority_selector if present, and otherwise a representation of +// IAMContext.principal; or - "iam_principal", a representation of +// IAMContext.principal even if a token or authority selector is present; or - +// "" (empty string), resulting in a counter with no fields. Examples: counter +// { metric: "/debug_access_count" field: "iam_principal" } ==> increment +// counter /iam/policy/debug_access_count {iam_principal=[value of // IAMContext.principal]} type CounterOptions struct { // CustomFields: Custom fields. CustomFields []*CustomField `json:"customFields,omitempty"` - // Field: The field value to attribute. Field string `json:"field,omitempty"` - // Metric: The metric to update. Metric string `json:"metric,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomFields") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomFields") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomFields") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CounterOptions) MarshalJSON() ([]byte, error) { +func (s CounterOptions) MarshalJSON() ([]byte, error) { type NoMethod CounterOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomField: Custom fields. These can be used to create a counter -// with arbitrary field/value pairs. See: go/rpcsp-custom-fields. +// CustomField: Custom fields. These can be used to create a counter with +// arbitrary field/value pairs. See: go/rpcsp-custom-fields. type CustomField struct { // Name: Name is the field name. Name string `json:"name,omitempty"` - - // Value: Value is the field value. It is important that in contrast to - // the CounterOptions.field, the value here is a constant that is not - // derived from the IAMContext. + // Value: Value is the field value. It is important that in contrast to the + // CounterOptions.field, the value here is a constant that is not derived from + // the IAMContext. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomField) MarshalJSON() ([]byte, error) { +func (s CustomField) MarshalJSON() ([]byte, error) { type NoMethod CustomField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DataAccessOptions: Write a Data Access (Gin) log type DataAccessOptions struct { // Possible values: - // "LOG_MODE_UNSPECIFIED" - Client is not required to write a partial - // Gin log immediately after the authorization check. If client chooses - // to write one and it fails, client may either fail open (allow the - // operation to continue) or fail closed (handle as a DENY outcome). - // "LOG_FAIL_CLOSED" - The application's operation in the context of - // which this authorization check is being made may only be performed if - // it is successfully logged to Gin. For instance, the authorization - // library may satisfy this obligation by emitting a partial log entry - // at authorization check time and only returning ALLOW to the - // application if it succeeds. If a matching Rule has this directive, - // but the client has not indicated that it will honor such - // requirements, then the IAM check will result in authorization failure - // by setting CheckPolicyResponse.success=false. + // "LOG_MODE_UNSPECIFIED" - Client is not required to write a partial Gin log + // immediately after the authorization check. If client chooses to write one + // and it fails, client may either fail open (allow the operation to continue) + // or fail closed (handle as a DENY outcome). + // "LOG_FAIL_CLOSED" - The application's operation in the context of which + // this authorization check is being made may only be performed if it is + // successfully logged to Gin. For instance, the authorization library may + // satisfy this obligation by emitting a partial log entry at authorization + // check time and only returning ALLOW to the application if it succeeds. If a + // matching Rule has this directive, but the client has not indicated that it + // will honor such requirements, then the IAM check will result in + // authorization failure by setting CheckPolicyResponse.success=false. LogMode string `json:"logMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LogMode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "LogMode") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogMode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LogMode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DataAccessOptions) MarshalJSON() ([]byte, error) { +func (s DataAccessOptions) MarshalJSON() ([]byte, error) { type NoMethod DataAccessOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec. Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if // requestor is the document owner" expression: "document.owner == // request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. +// ListLocationsResponse: The response message for Locations.ListLocations. type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. + // Locations: A list of locations that matches the specified filter in the + // request. Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Location: A resource that represents a Google Cloud location. type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". + // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LogConfig: Specifies what kind of log the caller must write type LogConfig struct { // CloudAudit: Cloud audit options. CloudAudit *CloudAuditOptions `json:"cloudAudit,omitempty"` - // Counter: Counter options. Counter *CounterOptions `json:"counter,omitempty"` - // DataAccess: Data access options. DataAccess *DataAccessOptions `json:"dataAccess,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudAudit") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudAudit") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudAudit") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogConfig) MarshalJSON() ([]byte, error) { +func (s LogConfig) MarshalJSON() ([]byte, error) { type NoMethod LogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members`, or -// principals, to a single `role`. Principals can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. For some types of -// Google Cloud resources, a `binding` can also specify a `condition`, -// which is a logical expression that allows access to a resource only -// if the expression evaluates to `true`. A condition can add -// constraints based on attributes of the request, the resource, or -// both. To learn which resources support conditions in their IAM -// policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which specifies +// access controls for Google Cloud resources. A `Policy` is a collection of +// `bindings`. A `binding` binds one or more `members`, or principals, to a +// single `role`. Principals can be user accounts, service accounts, Google +// groups, and domains (such as G Suite). A `role` is a named list of +// permissions; each `role` can be an IAM predefined role or a user-created +// custom role. For some types of Google Cloud resources, a `binding` can also +// specify a `condition`, which is a logical expression that allows access to a +// resource only if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or both. To +// learn which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - - // Bindings: Associates a list of `members`, or principals, with a - // `role`. Optionally, may specify a `condition` that determines how and - // when the `bindings` are applied. Each of the `bindings` must contain - // at least one principal. The `bindings` in a `Policy` can refer to up - // to 1,500 principals; up to 250 of these principals can be Google - // groups. Each occurrence of a principal counts towards these limits. - // For example, if the `bindings` grant 50 different roles to - // `user:alice@example.com`, and not to any other principal, then you - // can add another 1,450 principals to the `bindings` in the `Policy`. + // Bindings: Associates a list of `members`, or principals, with a `role`. + // Optionally, may specify a `condition` that determines how and when the + // `bindings` are applied. Each of the `bindings` must contain at least one + // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; + // up to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the `bindings` grant + // 50 different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. Bindings []*Binding `json:"bindings,omitempty"` - - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - - // Rules: If more than one rule is specified, the rules are applied in - // the following manner: - All matching LOG rules are always applied. - - // If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging - // will be applied if one or more matching rule requires logging. - - // Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is - // granted. Logging will be applied if one or more matching rule - // requires logging. - Otherwise, if no rule applies, permission is - // denied. + // Rules: If more than one rule is specified, the rules are applied in the + // following manner: - All matching LOG rules are always applied. - If any + // DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be + // applied if one or more matching rule requires logging. - Otherwise, if any + // ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be + // applied if one or more matching rule requires logging. - Otherwise, if no + // rule applies, permission is denied. Rules []*Rule `json:"rules,omitempty"` - - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the IAM - // documentation + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Rule: A rule to be applied in a Policy. @@ -1092,212 +933,166 @@ type Rule struct { // Possible values: // "NO_ACTION" - Default no action. // "ALLOW" - Matching 'Entries' grant access. - // "ALLOW_WITH_LOG" - Matching 'Entries' grant access and the caller - // promises to log the request per the returned log_configs. + // "ALLOW_WITH_LOG" - Matching 'Entries' grant access and the caller promises + // to log the request per the returned log_configs. // "DENY" - Matching 'Entries' deny access. - // "DENY_WITH_LOG" - Matching 'Entries' deny access and the caller - // promises to log the request per the returned log_configs. + // "DENY_WITH_LOG" - Matching 'Entries' deny access and the caller promises + // to log the request per the returned log_configs. // "LOG" - Matching 'Entries' tell IAM.Check callers to generate logs. Action string `json:"action,omitempty"` - - // Conditions: Additional restrictions that must be met. All conditions - // must pass for the rule to match. + // Conditions: Additional restrictions that must be met. All conditions must + // pass for the rule to match. Conditions []*Condition `json:"conditions,omitempty"` - // Description: Human-readable description of the rule. Description string `json:"description,omitempty"` - - // In: If one or more 'in' clauses are specified, the rule matches if - // the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. + // In: If one or more 'in' clauses are specified, the rule matches if the + // PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. In []string `json:"in,omitempty"` - - // LogConfig: The config returned to callers of CheckPolicy for any - // entries that match the LOG action. + // LogConfig: The config returned to callers of CheckPolicy for any entries + // that match the LOG action. LogConfig []*LogConfig `json:"logConfig,omitempty"` - - // NotIn: If one or more 'not_in' clauses are specified, the rule - // matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the - // entries. The format for in and not_in entries can be found at in the - // Local IAM documentation (see go/local-iam#features). + // NotIn: If one or more 'not_in' clauses are specified, the rule matches if + // the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. The format for + // in and not_in entries can be found at in the Local IAM documentation (see + // go/local-iam#features). NotIn []string `json:"notIn,omitempty"` - // Permissions: A permission is a string of form '..' (e.g., - // 'storage.buckets.list'). A value of '*' matches all permissions, and - // a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. + // 'storage.buckets.list'). A value of '*' matches all permissions, and a verb + // part of '*' (e.g., 'storage.buckets.*') matches all verbs. Permissions []string `json:"permissions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rule) MarshalJSON() ([]byte, error) { +func (s Rule) MarshalJSON() ([]byte, error) { type NoMethod Rule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Google Cloud services - // (such as Projects) might reject them. + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Google Cloud services (such as Projects) might reject + // them. Policy *Policy `json:"policy,omitempty"` - - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only the fields in the mask will be modified. If no - // mask is provided, the following default mask is used: `paths: - // "bindings, etag" + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only the fields in the mask will be modified. If no mask is + // provided, the following default mask is used: `paths: "bindings, etag" UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. +// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as `*` or `storage.*`) are not - // allowed. For more information see IAM Overview + // Permissions: The set of permissions to check for the `resource`. Permissions + // with wildcards (such as `*` or `storage.*`) are not allowed. For more + // information see IAM Overview // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsResponse: Response message for `TestIamPermissions` // method. type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is allowed. + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "gameservices.projects.locations.get": - type ProjectsLocationsGetCall struct { s *Service name string @@ -1317,33 +1112,29 @@ func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1352,12 +1143,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { } func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1374,16 +1160,14 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1414,35 +1198,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, return nil, err } return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "gameservices.projects.locations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the location.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "Location" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.list": +} type ProjectsLocationsListCall struct { s *Service @@ -1453,21 +1209,19 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this service. // -// - name: The resource that owns the locations collection, if -// applicable. +// - name: The resource that owns the locations collection, if applicable. func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). +// Filter sets the optional parameter "filter": A filter to narrow down results +// to a preferred subset. The filtering language accepts strings like +// "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -1481,49 +1235,45 @@ func (c *ProjectsLocationsListCall) IncludeUnrevealedLocations(includeUnrevealed return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. If not set, the service selects a default. func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. +// PageToken sets the optional parameter "pageToken": A page token received +// from the `next_page_token` field in the response. Send that page token to +// receive the subsequent page. func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1532,12 +1282,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { } func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1554,16 +1299,15 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1594,53 +1338,6 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat return nil, err } return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1beta/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "gameservices.projects.locations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - // "location": "query", - // "type": "string" - // }, - // "includeUnrevealedLocations": { - // "description": "If true, the returned list will include locations which are not yet revealed.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}/locations", - // "response": { - // "$ref": "ListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1648,7 +1345,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1664,8 +1361,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -// method id "gameservices.projects.locations.gameServerDeployments.getIamPolicy": - type ProjectsLocationsGameServerDeploymentsGetIamPolicyCall struct { s *Service resource string @@ -1675,14 +1370,12 @@ type ProjectsLocationsGameServerDeploymentsGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. func (r *ProjectsLocationsGameServerDeploymentsService) GetIamPolicy(resource string) *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall { c := &ProjectsLocationsGameServerDeploymentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1690,17 +1383,16 @@ func (r *ProjectsLocationsGameServerDeploymentsService) GetIamPolicy(resource st } // OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -1708,33 +1400,29 @@ func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) OptionsRequeste } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1743,12 +1431,7 @@ func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Header() http.H } func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1765,16 +1448,14 @@ func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.gameServerDeployments.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1805,41 +1486,7 @@ func (c *ProjectsLocationsGameServerDeploymentsGetIamPolicyCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/gameServerDeployments/{gameServerDeploymentsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "gameservices.projects.locations.gameServerDeployments.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gameServerDeployments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.gameServerDeployments.setIamPolicy": +} type ProjectsLocationsGameServerDeploymentsSetIamPolicyCall struct { s *Service @@ -1850,14 +1497,13 @@ type ProjectsLocationsGameServerDeploymentsSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. func (r *ProjectsLocationsGameServerDeploymentsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall { c := &ProjectsLocationsGameServerDeploymentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1866,23 +1512,21 @@ func (r *ProjectsLocationsGameServerDeploymentsService) SetIamPolicy(resource st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1891,18 +1535,12 @@ func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Header() http.H } func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+resource}:setIamPolicy") @@ -1915,16 +1553,14 @@ func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.gameServerDeployments.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1955,38 +1591,7 @@ func (c *ProjectsLocationsGameServerDeploymentsSetIamPolicyCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/gameServerDeployments/{gameServerDeploymentsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "gameservices.projects.locations.gameServerDeployments.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gameServerDeployments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.gameServerDeployments.testIamPermissions": +} type ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall struct { s *Service @@ -1997,17 +1602,16 @@ type ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. func (r *ProjectsLocationsGameServerDeploymentsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall { c := &ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2016,23 +1620,21 @@ func (r *ProjectsLocationsGameServerDeploymentsService) TestIamPermissions(resou } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2041,18 +1643,12 @@ func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Header() } func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+resource}:testIamPermissions") @@ -2065,16 +1661,15 @@ func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.gameServerDeployments.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2105,38 +1700,7 @@ func (c *ProjectsLocationsGameServerDeploymentsTestIamPermissionsCall) Do(opts . return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/gameServerDeployments/{gameServerDeploymentsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "gameservices.projects.locations.gameServerDeployments.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/gameServerDeployments/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.operations.cancel": +} type ProjectsLocationsOperationsCancelCall struct { s *Service @@ -2147,15 +1711,14 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. @@ -2167,23 +1730,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2192,18 +1753,12 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:cancel") @@ -2216,16 +1771,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2256,38 +1809,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "gameservices.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.operations.delete": +} type ProjectsLocationsOperationsDeleteCall struct { s *Service @@ -2297,10 +1819,10 @@ type ProjectsLocationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { @@ -2310,23 +1832,21 @@ func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2335,12 +1855,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2354,16 +1869,14 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2394,35 +1907,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "gameservices.projects.locations.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.operations.get": +} type ProjectsLocationsOperationsGetCall struct { s *Service @@ -2433,9 +1918,9 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { @@ -2445,33 +1930,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2480,12 +1961,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2502,16 +1978,14 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2542,35 +2016,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "gameservices.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gameservices.projects.locations.operations.list": +} type ProjectsLocationsOperationsListCall struct { s *Service @@ -2581,9 +2027,8 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -2592,55 +2037,50 @@ func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocation return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2649,12 +2089,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2671,16 +2106,15 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gameservices.projects.locations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2711,48 +2145,6 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "gameservices.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2760,7 +2152,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/gamesmanagement/v1management/gamesmanagement-gen.go b/gamesmanagement/v1management/gamesmanagement-gen.go index fb05840b9d9..e571c418053 100644 --- a/gamesmanagement/v1management/gamesmanagement-gen.go +++ b/gamesmanagement/v1management/gamesmanagement-gen.go @@ -680,7 +680,7 @@ func (c *AchievementsResetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "achievementId": c.achievementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.achievements.reset" call. @@ -771,7 +771,7 @@ func (c *AchievementsResetAllCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.achievements.resetAll" call. @@ -861,7 +861,7 @@ func (c *AchievementsResetAllForAllPlayersCall) doRequest(alt string) (*http.Res return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.achievements.resetAllForAllPlayers" call. @@ -935,7 +935,7 @@ func (c *AchievementsResetForAllPlayersCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "achievementId": c.achievementId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.achievements.resetForAllPlayers" call. @@ -1008,7 +1008,7 @@ func (c *AchievementsResetMultipleForAllPlayersCall) doRequest(alt string) (*htt return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.achievements.resetMultipleForAllPlayers" call. @@ -1109,7 +1109,7 @@ func (c *ApplicationsListHiddenCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "applicationId": c.applicationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.applications.listHidden" call. @@ -1228,7 +1228,7 @@ func (c *EventsResetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "eventId": c.eventId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.events.reset" call. @@ -1295,7 +1295,7 @@ func (c *EventsResetAllCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.events.resetAll" call. @@ -1361,7 +1361,7 @@ func (c *EventsResetAllForAllPlayersCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.events.resetAllForAllPlayers" call. @@ -1435,7 +1435,7 @@ func (c *EventsResetForAllPlayersCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "eventId": c.eventId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.events.resetForAllPlayers" call. @@ -1508,7 +1508,7 @@ func (c *EventsResetMultipleForAllPlayersCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.events.resetMultipleForAllPlayers" call. @@ -1586,7 +1586,7 @@ func (c *PlayersHideCall) doRequest(alt string) (*http.Response, error) { "applicationId": c.applicationId, "playerId": c.playerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.players.hide" call. @@ -1665,7 +1665,7 @@ func (c *PlayersUnhideCall) doRequest(alt string) (*http.Response, error) { "applicationId": c.applicationId, "playerId": c.playerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.players.unhide" call. @@ -1739,7 +1739,7 @@ func (c *ScoresResetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "leaderboardId": c.leaderboardId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.scores.reset" call. @@ -1830,7 +1830,7 @@ func (c *ScoresResetAllCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.scores.resetAll" call. @@ -1921,7 +1921,7 @@ func (c *ScoresResetAllForAllPlayersCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.scores.resetAllForAllPlayers" call. @@ -1995,7 +1995,7 @@ func (c *ScoresResetForAllPlayersCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "leaderboardId": c.leaderboardId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.scores.resetForAllPlayers" call. @@ -2068,7 +2068,7 @@ func (c *ScoresResetMultipleForAllPlayersCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gamesManagement.scores.resetMultipleForAllPlayers" call. diff --git a/genomics/v1/genomics-gen.go b/genomics/v1/genomics-gen.go index 35880f3c337..bc0f4468aec 100644 --- a/genomics/v1/genomics-gen.go +++ b/genomics/v1/genomics-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/genomics // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // genomicsService, err := genomics.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // genomicsService, err := genomics.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // genomicsService, err := genomics.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package genomics // import "google.golang.org/api/genomics/v1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,17 +84,21 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "genomics:v1" const apiName = "genomics" const apiVersion = "v1" const basePath = "https://genomics.googleapis.com/" +const basePathTemplate = "https://genomics.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://genomics.mtls.googleapis.com/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -121,685 +139,556 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } -// Accelerator: Carries information about an accelerator that can be -// attached to a VM. +// Accelerator: Carries information about an accelerator that can be attached +// to a VM. type Accelerator struct { // Count: How many accelerators of this type to attach. Count int64 `json:"count,omitempty,string"` - - // Type: The accelerator type string (for example, "nvidia-tesla-k80"). - // Only NVIDIA GPU accelerators are currently supported. If an NVIDIA - // GPU is attached, the required runtime libraries will be made - // available to all containers under `/usr/local/nvidia`. The driver - // version to install must be specified using the NVIDIA driver version - // parameter on the virtual machine specification. Note that attaching a - // GPU increases the worker VM startup time by a few minutes. + // Type: The accelerator type string (for example, "nvidia-tesla-k80"). Only + // NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is + // attached, the required runtime libraries will be made available to all + // containers under `/usr/local/nvidia`. The driver version to install must be + // specified using the NVIDIA driver version parameter on the virtual machine + // specification. Note that attaching a GPU increases the worker VM startup + // time by a few minutes. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Count") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Count") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Count") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Accelerator) MarshalJSON() ([]byte, error) { +func (s Accelerator) MarshalJSON() ([]byte, error) { type NoMethod Accelerator - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Action: Specifies a single action that runs a Docker container. type Action struct { - // Commands: If specified, overrides the `CMD` specified in the - // container. If the container also has an `ENTRYPOINT` the values are - // used as entrypoint arguments. Otherwise, they are used as a command - // and arguments to run inside the container. + // Commands: If specified, overrides the `CMD` specified in the container. If + // the container also has an `ENTRYPOINT` the values are used as entrypoint + // arguments. Otherwise, they are used as a command and arguments to run inside + // the container. Commands []string `json:"commands,omitempty"` - - // Credentials: If the specified image is hosted on a private registry - // other than Google Container Registry, the credentials required to - // pull the image must be specified here as an encrypted secret. The - // secret must decrypt to a JSON-encoded dictionary containing both - // `username` and `password` keys. + // Credentials: If the specified image is hosted on a private registry other + // than Google Container Registry, the credentials required to pull the image + // must be specified here as an encrypted secret. The secret must decrypt to a + // JSON-encoded dictionary containing both `username` and `password` keys. Credentials *Secret `json:"credentials,omitempty"` - - // EncryptedEnvironment: The encrypted environment to pass into the - // container. This environment is merged with values specified in the - // google.genomics.v2alpha1.Pipeline message, overwriting any duplicate - // values. The secret must decrypt to a JSON-encoded dictionary where - // key-value pairs serve as environment variable names and their values. - // The decoded environment variables can overwrite the values specified - // by the `environment` field. + // EncryptedEnvironment: The encrypted environment to pass into the container. + // This environment is merged with values specified in the + // google.genomics.v2alpha1.Pipeline message, overwriting any duplicate values. + // The secret must decrypt to a JSON-encoded dictionary where key-value pairs + // serve as environment variable names and their values. The decoded + // environment variables can overwrite the values specified by the + // `environment` field. EncryptedEnvironment *Secret `json:"encryptedEnvironment,omitempty"` - // Entrypoint: If specified, overrides the `ENTRYPOINT` specified in the // container. Entrypoint string `json:"entrypoint,omitempty"` - - // Environment: The environment to pass into the container. This - // environment is merged with values specified in the - // google.genomics.v2alpha1.Pipeline message, overwriting any duplicate - // values. In addition to the values passed here, a few other values are - // automatically injected into the environment. These cannot be hidden - // or overwritten. `GOOGLE_PIPELINE_FAILED` will be set to "1" if the - // pipeline failed because an action has exited with a non-zero status - // (and did not have the `IGNORE_EXIT_STATUS` flag set). This can be - // used to determine if additional debug or logging actions should - // execute. `GOOGLE_LAST_EXIT_STATUS` will be set to the exit status of - // the last non-background action that executed. This can be used by - // workflow engine authors to determine whether an individual action has - // succeeded or failed. + // Environment: The environment to pass into the container. This environment is + // merged with values specified in the google.genomics.v2alpha1.Pipeline + // message, overwriting any duplicate values. In addition to the values passed + // here, a few other values are automatically injected into the environment. + // These cannot be hidden or overwritten. `GOOGLE_PIPELINE_FAILED` will be set + // to "1" if the pipeline failed because an action has exited with a non-zero + // status (and did not have the `IGNORE_EXIT_STATUS` flag set). This can be + // used to determine if additional debug or logging actions should execute. + // `GOOGLE_LAST_EXIT_STATUS` will be set to the exit status of the last + // non-background action that executed. This can be used by workflow engine + // authors to determine whether an individual action has succeeded or failed. Environment map[string]string `json:"environment,omitempty"` - // Flags: The set of flags to apply to this action. // // Possible values: // "FLAG_UNSPECIFIED" - Unspecified flag. // "IGNORE_EXIT_STATUS" - Normally, a non-zero exit status causes the - // pipeline to fail. This flag allows execution of other actions to - // continue instead. - // "RUN_IN_BACKGROUND" - This flag allows an action to continue - // running in the background while executing subsequent actions. This is - // useful to provide services to other actions (or to provide debugging - // support tools like SSH servers). - // "ALWAYS_RUN" - By default, after an action fails, no further - // actions are run. This flag indicates that this action must be run - // even if the pipeline has already failed. This is useful for actions - // that copy output files off of the VM or for debugging. Note that no - // actions will be run if image prefetching fails. + // pipeline to fail. This flag allows execution of other actions to continue + // instead. + // "RUN_IN_BACKGROUND" - This flag allows an action to continue running in + // the background while executing subsequent actions. This is useful to provide + // services to other actions (or to provide debugging support tools like SSH + // servers). + // "ALWAYS_RUN" - By default, after an action fails, no further actions are + // run. This flag indicates that this action must be run even if the pipeline + // has already failed. This is useful for actions that copy output files off of + // the VM or for debugging. Note that no actions will be run if image + // prefetching fails. // "ENABLE_FUSE" - Enable access to the FUSE device for this action. - // Filesystems can then be mounted into disks shared with other actions. - // The other actions do not need the `ENABLE_FUSE` flag to access the - // mounted filesystem. This has the effect of causing the container to - // be executed with `CAP_SYS_ADMIN` and exposes `/dev/fuse` to the - // container, so use it only for containers you trust. + // Filesystems can then be mounted into disks shared with other actions. The + // other actions do not need the `ENABLE_FUSE` flag to access the mounted + // filesystem. This has the effect of causing the container to be executed with + // `CAP_SYS_ADMIN` and exposes `/dev/fuse` to the container, so use it only for + // containers you trust. // "PUBLISH_EXPOSED_PORTS" - Exposes all ports specified by `EXPOSE` - // statements in the container. To discover the host side port numbers, - // consult the `ACTION_STARTED` event in the operation metadata. - // "DISABLE_IMAGE_PREFETCH" - All container images are typically - // downloaded before any actions are executed. This helps prevent typos - // in URIs or issues like lack of disk space from wasting large amounts - // of compute resources. If set, this flag prevents the worker from - // downloading the image until just before the action is executed. - // "DISABLE_STANDARD_ERROR_CAPTURE" - A small portion of the - // container's standard error stream is typically captured and returned - // inside the `ContainerStoppedEvent`. Setting this flag disables this - // functionality. - // "BLOCK_EXTERNAL_NETWORK" - Prevents the container from accessing - // the external network. + // statements in the container. To discover the host side port numbers, consult + // the `ACTION_STARTED` event in the operation metadata. + // "DISABLE_IMAGE_PREFETCH" - All container images are typically downloaded + // before any actions are executed. This helps prevent typos in URIs or issues + // like lack of disk space from wasting large amounts of compute resources. If + // set, this flag prevents the worker from downloading the image until just + // before the action is executed. + // "DISABLE_STANDARD_ERROR_CAPTURE" - A small portion of the container's + // standard error stream is typically captured and returned inside the + // `ContainerStoppedEvent`. Setting this flag disables this functionality. + // "BLOCK_EXTERNAL_NETWORK" - Prevents the container from accessing the + // external network. Flags []string `json:"flags,omitempty"` - - // ImageUri: Required. The URI to pull the container image from. Note - // that all images referenced by actions in the pipeline are pulled - // before the first action runs. If multiple actions reference the same - // image, it is only pulled once, ensuring that the same image is used - // for all actions in a single pipeline. The image URI can be either a - // complete host and image specification (e.g., - // quay.io/biocontainers/samtools), a library and image name (e.g., - // google/cloud-sdk) or a bare image name ('bash') to pull from the + // ImageUri: Required. The URI to pull the container image from. Note that all + // images referenced by actions in the pipeline are pulled before the first + // action runs. If multiple actions reference the same image, it is only pulled + // once, ensuring that the same image is used for all actions in a single + // pipeline. The image URI can be either a complete host and image + // specification (e.g., quay.io/biocontainers/samtools), a library and image + // name (e.g., google/cloud-sdk) or a bare image name ('bash') to pull from the // default library. No schema is required in any of these cases. If the - // specified image is not public, the service account specified for the - // Virtual Machine must have access to pull the images from GCR, or - // appropriate credentials must be specified in the + // specified image is not public, the service account specified for the Virtual + // Machine must have access to pull the images from GCR, or appropriate + // credentials must be specified in the // google.genomics.v2alpha1.Action.credentials field. ImageUri string `json:"imageUri,omitempty"` - - // Labels: Labels to associate with the action. This field is provided - // to assist workflow engine authors in identifying actions (for - // example, to indicate what sort of action they perform, such as - // localization or debugging). They are returned in the operation - // metadata, but are otherwise ignored. + // Labels: Labels to associate with the action. This field is provided to + // assist workflow engine authors in identifying actions (for example, to + // indicate what sort of action they perform, such as localization or + // debugging). They are returned in the operation metadata, but are otherwise + // ignored. Labels map[string]string `json:"labels,omitempty"` - - // Mounts: A list of mounts to make available to the action. In addition - // to the values specified here, every action has a special virtual disk - // mounted under `/google` that contains log files and other operational - // components. - /google/logs All logs written during the pipeline - // execution. - /google/logs/output The combined standard output and - // standard error of all actions run as part of the pipeline execution. - // - /google/logs/action/*/stdout The complete contents of each - // individual action's standard output. - /google/logs/action/*/stderr - // The complete contents of each individual action's standard error - // output. + // Mounts: A list of mounts to make available to the action. In addition to the + // values specified here, every action has a special virtual disk mounted under + // `/google` that contains log files and other operational components. - + // /google/logs All logs written during the pipeline execution. - + // /google/logs/output The combined standard output and standard error of all + // actions run as part of the pipeline execution. - + // /google/logs/action/*/stdout The complete contents of each individual + // action's standard output. - /google/logs/action/*/stderr The complete + // contents of each individual action's standard error output. Mounts []*Mount `json:"mounts,omitempty"` - - // Name: An optional name for the container. The container hostname will - // be set to this name, making it useful for inter-container - // communication. The name must contain only upper and lowercase - // alphanumeric characters and hyphens and cannot start with a hyphen. + // Name: An optional name for the container. The container hostname will be set + // to this name, making it useful for inter-container communication. The name + // must contain only upper and lowercase alphanumeric characters and hyphens + // and cannot start with a hyphen. Name string `json:"name,omitempty"` - - // PidNamespace: An optional identifier for a PID namespace to run the - // action inside. Multiple actions should use the same string to share a - // namespace. If unspecified, a separate isolated namespace is used. + // PidNamespace: An optional identifier for a PID namespace to run the action + // inside. Multiple actions should use the same string to share a namespace. If + // unspecified, a separate isolated namespace is used. PidNamespace string `json:"pidNamespace,omitempty"` - - // PortMappings: A map of containers to host port mappings for this - // container. If the container already specifies exposed ports, use the - // `PUBLISH_EXPOSED_PORTS` flag instead. The host port number must be - // less than 65536. If it is zero, an unused random port is assigned. To - // determine the resulting port number, consult the - // `ContainerStartedEvent` in the operation metadata. + // PortMappings: A map of containers to host port mappings for this container. + // If the container already specifies exposed ports, use the + // `PUBLISH_EXPOSED_PORTS` flag instead. The host port number must be less than + // 65536. If it is zero, an unused random port is assigned. To determine the + // resulting port number, consult the `ContainerStartedEvent` in the operation + // metadata. PortMappings map[string]int64 `json:"portMappings,omitempty"` - - // Timeout: The maximum amount of time to give the action to complete. - // If the action fails to complete before the timeout, it will be - // terminated and the exit status will be non-zero. The pipeline will - // continue or terminate based on the rules defined by the `ALWAYS_RUN` - // and `IGNORE_EXIT_STATUS` flags. + // Timeout: The maximum amount of time to give the action to complete. If the + // action fails to complete before the timeout, it will be terminated and the + // exit status will be non-zero. The pipeline will continue or terminate based + // on the rules defined by the `ALWAYS_RUN` and `IGNORE_EXIT_STATUS` flags. Timeout string `json:"timeout,omitempty"` - // ForceSendFields is a list of field names (e.g. "Commands") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Commands") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Commands") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Action) MarshalJSON() ([]byte, error) { +func (s Action) MarshalJSON() ([]byte, error) { type NoMethod Action - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContainerKilledEvent: An event generated when a container is forcibly -// terminated by the worker. Currently, this only occurs when the -// container outlives the timeout specified by the user. +// terminated by the worker. Currently, this only occurs when the container +// outlives the timeout specified by the user. type ContainerKilledEvent struct { // ActionId: The numeric ID of the action that started the container. ActionId int64 `json:"actionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerKilledEvent) MarshalJSON() ([]byte, error) { +func (s ContainerKilledEvent) MarshalJSON() ([]byte, error) { type NoMethod ContainerKilledEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContainerStartedEvent: An event generated when a container starts. type ContainerStartedEvent struct { // ActionId: The numeric ID of the action that started this container. ActionId int64 `json:"actionId,omitempty"` - // IpAddress: The public IP address that can be used to connect to the - // container. This field is only populated when at least one port - // mapping is present. If the instance was created with a private - // address, this field will be empty even if port mappings exist. + // container. This field is only populated when at least one port mapping is + // present. If the instance was created with a private address, this field will + // be empty even if port mappings exist. IpAddress string `json:"ipAddress,omitempty"` - // PortMappings: The container-to-host port mappings installed for this // container. This set will contain any ports exposed using the // `PUBLISH_EXPOSED_PORTS` flag as well as any specified in the `Action` // definition. PortMappings map[string]int64 `json:"portMappings,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerStartedEvent) MarshalJSON() ([]byte, error) { +func (s ContainerStartedEvent) MarshalJSON() ([]byte, error) { type NoMethod ContainerStartedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContainerStoppedEvent: An event generated when a container exits. type ContainerStoppedEvent struct { // ActionId: The numeric ID of the action that started this container. ActionId int64 `json:"actionId,omitempty"` - // ExitStatus: The exit status of the container. ExitStatus int64 `json:"exitStatus,omitempty"` - // Stderr: The tail end of any content written to standard error by the - // container. If the content emits large amounts of debugging noise or - // contains sensitive information, you can prevent the content from - // being printed by setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. - // Note that only a small amount of the end of the stream is captured - // here. The entire stream is stored in the `/google/logs` directory - // mounted into each action, and can be copied off the machine as - // described elsewhere. + // container. If the content emits large amounts of debugging noise or contains + // sensitive information, you can prevent the content from being printed by + // setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. Note that only a small + // amount of the end of the stream is captured here. The entire stream is + // stored in the `/google/logs` directory mounted into each action, and can be + // copied off the machine as described elsewhere. Stderr string `json:"stderr,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerStoppedEvent) MarshalJSON() ([]byte, error) { +func (s ContainerStoppedEvent) MarshalJSON() ([]byte, error) { type NoMethod ContainerStoppedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DelayedEvent: An event generated whenever a resource limitation or -// transient error delays execution of a pipeline that was otherwise -// ready to run. +// DelayedEvent: An event generated whenever a resource limitation or transient +// error delays execution of a pipeline that was otherwise ready to run. type DelayedEvent struct { - // Cause: A textual description of the cause of the delay. The string - // can change without notice because it is often generated by another - // service (such as Compute Engine). + // Cause: A textual description of the cause of the delay. The string can + // change without notice because it is often generated by another service (such + // as Compute Engine). Cause string `json:"cause,omitempty"` - - // Metrics: If the delay was caused by a resource shortage, this field - // lists the Compute Engine metrics that are preventing this operation - // from running (for example, `CPUS` or `INSTANCES`). If the particular - // metric is not known, a single `UNKNOWN` metric will be present. + // Metrics: If the delay was caused by a resource shortage, this field lists + // the Compute Engine metrics that are preventing this operation from running + // (for example, `CPUS` or `INSTANCES`). If the particular metric is not known, + // a single `UNKNOWN` metric will be present. Metrics []string `json:"metrics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cause") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cause") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cause") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DelayedEvent) MarshalJSON() ([]byte, error) { +func (s DelayedEvent) MarshalJSON() ([]byte, error) { type NoMethod DelayedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Disk: Carries information about a disk that can be attached to a VM. -// See https://cloud.google.com/compute/docs/disks/performance for more -// information about disk type, size, and performance considerations. -// Specify either `Volume` or `Disk`, but not both. +// Disk: Carries information about a disk that can be attached to a VM. See +// https://cloud.google.com/compute/docs/disks/performance for more information +// about disk type, size, and performance considerations. Specify either +// `Volume` or `Disk`, but not both. type Disk struct { - // Name: A user-supplied name for the disk. Used when mounting the disk - // into actions. The name must contain only upper and lowercase - // alphanumeric characters and hyphens and cannot start with a hyphen. + // Name: A user-supplied name for the disk. Used when mounting the disk into + // actions. The name must contain only upper and lowercase alphanumeric + // characters and hyphens and cannot start with a hyphen. Name string `json:"name,omitempty"` - // SizeGb: The size, in GB, of the disk to attach. If the size is not - // specified, a default is chosen to ensure reasonable I/O performance. - // If the disk type is specified as `local-ssd`, multiple local drives - // are automatically combined to provide the requested size. Note, - // however, that each physical SSD is 375GB in size, and no more than 8 - // drives can be attached to a single instance. + // specified, a default is chosen to ensure reasonable I/O performance. If the + // disk type is specified as `local-ssd`, multiple local drives are + // automatically combined to provide the requested size. Note, however, that + // each physical SSD is 375GB in size, and no more than 8 drives can be + // attached to a single instance. SizeGb int64 `json:"sizeGb,omitempty"` - - // SourceImage: An optional image to put on the disk before attaching it - // to the VM. + // SourceImage: An optional image to put on the disk before attaching it to the + // VM. SourceImage string `json:"sourceImage,omitempty"` - - // Type: The Compute Engine disk type. If unspecified, `pd-standard` is - // used. + // Type: The Compute Engine disk type. If unspecified, `pd-standard` is used. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Disk) MarshalJSON() ([]byte, error) { +func (s Disk) MarshalJSON() ([]byte, error) { type NoMethod Disk - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Event: Carries information about events that occur during pipeline // execution. type Event struct { - // Description: A human-readable description of the event. Note that - // these strings can change at any time without notice. Any application - // logic must use the information in the `details` field. + // Description: A human-readable description of the event. Note that these + // strings can change at any time without notice. Any application logic must + // use the information in the `details` field. Description string `json:"description,omitempty"` - // Details: Machine-readable details about the event. Details googleapi.RawMessage `json:"details,omitempty"` - // Timestamp: The time at which the event occurred. Timestamp string `json:"timestamp,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Event) MarshalJSON() ([]byte, error) { +func (s Event) MarshalJSON() ([]byte, error) { type NoMethod Event - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExistingDisk: Configuration for an existing disk to be attached to -// the VM. +// ExistingDisk: Configuration for an existing disk to be attached to the VM. type ExistingDisk struct { - // Disk: If `disk` contains slashes, the Cloud Life Sciences API assumes - // that it is a complete URL for the disk. If `disk` does not contain - // slashes, the Cloud Life Sciences API assumes that the disk is a zonal - // disk and a URL will be generated of the form `zones//disks/`, where - // `` is the zone in which the instance is allocated. The disk must be - // ext4 formatted. If all `Mount` references to this disk have the - // `read_only` flag set to true, the disk will be attached in - // `read-only` mode and can be shared with other instances. Otherwise, - // the disk will be available for writing but cannot be shared. + // Disk: If `disk` contains slashes, the Cloud Life Sciences API assumes that + // it is a complete URL for the disk. If `disk` does not contain slashes, the + // Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will + // be generated of the form `zones//disks/`, where `` is the zone in which the + // instance is allocated. The disk must be ext4 formatted. If all `Mount` + // references to this disk have the `read_only` flag set to true, the disk will + // be attached in `read-only` mode and can be shared with other instances. + // Otherwise, the disk will be available for writing but cannot be shared. Disk string `json:"disk,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Disk") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Disk") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Disk") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Disk") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExistingDisk) MarshalJSON() ([]byte, error) { +func (s ExistingDisk) MarshalJSON() ([]byte, error) { type NoMethod ExistingDisk - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FailedEvent: An event generated when the execution of a pipeline has -// failed. Note that other events can continue to occur after this -// event. +// FailedEvent: An event generated when the execution of a pipeline has failed. +// Note that other events can continue to occur after this event. type FailedEvent struct { // Cause: The human-readable description of the cause of the failure. Cause string `json:"cause,omitempty"` - - // Code: The Google standard error code that best describes this - // failure. + // Code: The Google standard error code that best describes this failure. // // Possible values: // "OK" - Not an error; returned on success HTTP Mapping: 200 OK - // "CANCELLED" - The operation was cancelled, typically by the caller. - // HTTP Mapping: 499 Client Closed Request - // "UNKNOWN" - Unknown error. For example, this error may be returned - // when a `Status` value received from another address space belongs to - // an error space that is not known in this address space. Also errors - // raised by APIs that do not return enough error information may be - // converted to this error. HTTP Mapping: 500 Internal Server Error - // "INVALID_ARGUMENT" - The client specified an invalid argument. Note - // that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` - // indicates arguments that are problematic regardless of the state of - // the system (e.g., a malformed file name). HTTP Mapping: 400 Bad - // Request - // "DEADLINE_EXCEEDED" - The deadline expired before the operation - // could complete. For operations that change the state of the system, - // this error may be returned even if the operation has completed - // successfully. For example, a successful response from a server could - // have been delayed long enough for the deadline to expire. HTTP - // Mapping: 504 Gateway Timeout - // "NOT_FOUND" - Some requested entity (e.g., file or directory) was - // not found. Note to server developers: if a request is denied for an - // entire class of users, such as gradual feature rollout or - // undocumented allowlist, `NOT_FOUND` may be used. If a request is - // denied for some users within a class of users, such as user-based - // access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 - // Not Found - // "ALREADY_EXISTS" - The entity that a client attempted to create - // (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict - // "PERMISSION_DENIED" - The caller does not have permission to - // execute the specified operation. `PERMISSION_DENIED` must not be used - // for rejections caused by exhausting some resource (use - // `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` - // must not be used if the caller can not be identified (use - // `UNAUTHENTICATED` instead for those errors). This error code does not - // imply the request is valid or the requested entity exists or + // "CANCELLED" - The operation was cancelled, typically by the caller. HTTP + // Mapping: 499 Client Closed Request + // "UNKNOWN" - Unknown error. For example, this error may be returned when a + // `Status` value received from another address space belongs to an error space + // that is not known in this address space. Also errors raised by APIs that do + // not return enough error information may be converted to this error. HTTP + // Mapping: 500 Internal Server Error + // "INVALID_ARGUMENT" - The client specified an invalid argument. Note that + // this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates + // arguments that are problematic regardless of the state of the system (e.g., + // a malformed file name). HTTP Mapping: 400 Bad Request + // "DEADLINE_EXCEEDED" - The deadline expired before the operation could + // complete. For operations that change the state of the system, this error may + // be returned even if the operation has completed successfully. For example, a + // successful response from a server could have been delayed long enough for + // the deadline to expire. HTTP Mapping: 504 Gateway Timeout + // "NOT_FOUND" - Some requested entity (e.g., file or directory) was not + // found. Note to server developers: if a request is denied for an entire class + // of users, such as gradual feature rollout or undocumented allowlist, + // `NOT_FOUND` may be used. If a request is denied for some users within a + // class of users, such as user-based access control, `PERMISSION_DENIED` must + // be used. HTTP Mapping: 404 Not Found + // "ALREADY_EXISTS" - The entity that a client attempted to create (e.g., + // file or directory) already exists. HTTP Mapping: 409 Conflict + // "PERMISSION_DENIED" - The caller does not have permission to execute the + // specified operation. `PERMISSION_DENIED` must not be used for rejections + // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for + // those errors). `PERMISSION_DENIED` must not be used if the caller can not be + // identified (use `UNAUTHENTICATED` instead for those errors). This error code + // does not imply the request is valid or the requested entity exists or // satisfies other pre-conditions. HTTP Mapping: 403 Forbidden // "UNAUTHENTICATED" - The request does not have valid authentication // credentials for the operation. HTTP Mapping: 401 Unauthorized // "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a - // per-user quota, or perhaps the entire file system is out of space. - // HTTP Mapping: 429 Too Many Requests - // "FAILED_PRECONDITION" - The operation was rejected because the - // system is not in a state required for the operation's execution. For - // example, the directory to be deleted is non-empty, an rmdir operation - // is applied to a non-directory, etc. Service implementors can use the - // following guidelines to decide between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can - // retry just the failing call. (b) Use `ABORTED` if the client should - // retry at a higher level. For example, when a client-specified - // test-and-set fails, indicating the client should restart a - // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the - // client should not retry until the system state has been explicitly - // fixed. For example, if an "rmdir" fails because the directory is - // non-empty, `FAILED_PRECONDITION` should be returned since the client - // should not retry unless the files are deleted from the directory. - // HTTP Mapping: 400 Bad Request - // "ABORTED" - The operation was aborted, typically due to a - // concurrency issue such as a sequencer check failure or transaction - // abort. See the guidelines above for deciding between - // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: - // 409 Conflict - // "OUT_OF_RANGE" - The operation was attempted past the valid range. - // E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, - // this error indicates a problem that may be fixed if the system state - // changes. For example, a 32-bit file system will generate - // `INVALID_ARGUMENT` if asked to read at an offset that is not in the - // range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to - // read from an offset past the current file size. There is a fair bit - // of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We - // recommend using `OUT_OF_RANGE` (the more specific error) when it - // applies so that callers who are iterating through a space can easily - // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP - // Mapping: 400 Bad Request + // per-user quota, or perhaps the entire file system is out of space. HTTP + // Mapping: 429 Too Many Requests + // "FAILED_PRECONDITION" - The operation was rejected because the system is + // not in a state required for the operation's execution. For example, the + // directory to be deleted is non-empty, an rmdir operation is applied to a + // non-directory, etc. Service implementors can use the following guidelines to + // decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use + // `UNAVAILABLE` if the client can retry just the failing call. (b) Use + // `ABORTED` if the client should retry at a higher level. For example, when a + // client-specified test-and-set fails, indicating the client should restart a + // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the client + // should not retry until the system state has been explicitly fixed. For + // example, if an "rmdir" fails because the directory is non-empty, + // `FAILED_PRECONDITION` should be returned since the client should not retry + // unless the files are deleted from the directory. HTTP Mapping: 400 Bad + // Request + // "ABORTED" - The operation was aborted, typically due to a concurrency + // issue such as a sequencer check failure or transaction abort. See the + // guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and + // `UNAVAILABLE`. HTTP Mapping: 409 Conflict + // "OUT_OF_RANGE" - The operation was attempted past the valid range. E.g., + // seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error + // indicates a problem that may be fixed if the system state changes. For + // example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to + // read at an offset that is not in the range [0,2^32-1], but it will generate + // `OUT_OF_RANGE` if asked to read from an offset past the current file size. + // There is a fair bit of overlap between `FAILED_PRECONDITION` and + // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) + // when it applies so that callers who are iterating through a space can easily + // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: + // 400 Bad Request // "UNIMPLEMENTED" - The operation is not implemented or is not // supported/enabled in this service. HTTP Mapping: 501 Not Implemented - // "INTERNAL" - Internal errors. This means that some invariants - // expected by the underlying system have been broken. This error code - // is reserved for serious errors. HTTP Mapping: 500 Internal Server - // Error - // "UNAVAILABLE" - The service is currently unavailable. This is most - // likely a transient condition, which can be corrected by retrying with - // a backoff. Note that it is not always safe to retry non-idempotent - // operations. See the guidelines above for deciding between - // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: - // 503 Service Unavailable - // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: - // 500 Internal Server Error + // "INTERNAL" - Internal errors. This means that some invariants expected by + // the underlying system have been broken. This error code is reserved for + // serious errors. HTTP Mapping: 500 Internal Server Error + // "UNAVAILABLE" - The service is currently unavailable. This is most likely + // a transient condition, which can be corrected by retrying with a backoff. + // Note that it is not always safe to retry non-idempotent operations. See the + // guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and + // `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable + // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: 500 + // Internal Server Error Code string `json:"code,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cause") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cause") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cause") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FailedEvent) MarshalJSON() ([]byte, error) { +func (s FailedEvent) MarshalJSON() ([]byte, error) { type NoMethod FailedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metadata: Carries information about the pipeline execution that is -// returned in the long running operation's metadata field. +// Metadata: Carries information about the pipeline execution that is returned +// in the long running operation's metadata field. type Metadata struct { // CreateTime: The time at which the operation was created by the API. CreateTime string `json:"createTime,omitempty"` - // EndTime: The time at which execution was completed and resources were // cleaned up. EndTime string `json:"endTime,omitempty"` - - // Events: The list of events that have happened so far during the - // execution of this operation. + // Events: The list of events that have happened so far during the execution of + // this operation. Events []*Event `json:"events,omitempty"` - // Labels: The user-defined labels associated with this operation. Labels map[string]string `json:"labels,omitempty"` - // Pipeline: The pipeline this operation represents. Pipeline *Pipeline `json:"pipeline,omitempty"` - - // StartTime: The first time at which resources were allocated to - // execute the pipeline. + // StartTime: The first time at which resources were allocated to execute the + // pipeline. StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metadata) MarshalJSON() ([]byte, error) { +func (s Metadata) MarshalJSON() ([]byte, error) { type NoMethod Metadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Mount: Carries information about a particular disk mount inside a -// container. +// Mount: Carries information about a particular disk mount inside a container. type Mount struct { - // Disk: The name of the disk to mount, as specified in the resources - // section. + // Disk: The name of the disk to mount, as specified in the resources section. Disk string `json:"disk,omitempty"` - // Path: The path to mount the disk inside the container. Path string `json:"path,omitempty"` - - // ReadOnly: If true, the disk is mounted read-only inside the - // container. + // ReadOnly: If true, the disk is mounted read-only inside the container. ReadOnly bool `json:"readOnly,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Disk") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Disk") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Disk") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Disk") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Mount) MarshalJSON() ([]byte, error) { +func (s Mount) MarshalJSON() ([]byte, error) { type NoMethod Mount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NFSMount: Configuration for an `NFSMount` to be attached to the VM. @@ -807,604 +696,469 @@ type NFSMount struct { // Target: A target NFS mount. The target must be specified as // `address:/mount". Target string `json:"target,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Target") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Target") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Target") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NFSMount) MarshalJSON() ([]byte, error) { +func (s NFSMount) MarshalJSON() ([]byte, error) { type NoMethod NFSMount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Network: VM networking options. type Network struct { - // Name: The network name to attach the VM's network interface to. The - // value will be prefixed with `global/networks/` unless it contains a - // `/`, in which case it is assumed to be a fully specified network - // resource URL. If unspecified, the global default network is used. + // Name: The network name to attach the VM's network interface to. The value + // will be prefixed with `global/networks/` unless it contains a `/`, in which + // case it is assumed to be a fully specified network resource URL. If + // unspecified, the global default network is used. Name string `json:"name,omitempty"` - // Subnetwork: If the specified network is configured for custom subnet - // creation, the name of the subnetwork to attach the instance to must - // be specified here. The value is prefixed with - // `regions/*/subnetworks/` unless it contains a `/`, in which case it - // is assumed to be a fully specified subnetwork resource URL. If the - // `*` character appears in the value, it is replaced with the region - // that the virtual machine has been allocated in. + // creation, the name of the subnetwork to attach the instance to must be + // specified here. The value is prefixed with `regions/*/subnetworks/` unless + // it contains a `/`, in which case it is assumed to be a fully specified + // subnetwork resource URL. If the `*` character appears in the value, it is + // replaced with the region that the virtual machine has been allocated in. Subnetwork string `json:"subnetwork,omitempty"` - - // UsePrivateAddress: If set to true, do not attach a public IP address - // to the VM. Note that without a public IP address, additional - // configuration is required to allow the VM to access Google services. - // See https://cloud.google.com/vpc/docs/configure-private-google-access - // for more information. + // UsePrivateAddress: If set to true, do not attach a public IP address to the + // VM. Note that without a public IP address, additional configuration is + // required to allow the VM to access Google services. See + // https://cloud.google.com/vpc/docs/configure-private-google-access for more + // information. UsePrivateAddress bool `json:"usePrivateAddress,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Network) MarshalJSON() ([]byte, error) { +func (s Network) MarshalJSON() ([]byte, error) { type NoMethod Network - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PersistentDisk: Configuration for a persistent disk to be attached to -// the VM. See https://cloud.google.com/compute/docs/disks/performance -// for more information about disk type, size, and performance -// considerations. +// PersistentDisk: Configuration for a persistent disk to be attached to the +// VM. See https://cloud.google.com/compute/docs/disks/performance for more +// information about disk type, size, and performance considerations. type PersistentDisk struct { // SizeGb: The size, in GB, of the disk to attach. If the size is not - // specified, a default is chosen to ensure reasonable I/O performance. - // If the disk type is specified as `local-ssd`, multiple local drives - // are automatically combined to provide the requested size. Note, - // however, that each physical SSD is 375GB in size, and no more than 8 - // drives can be attached to a single instance. + // specified, a default is chosen to ensure reasonable I/O performance. If the + // disk type is specified as `local-ssd`, multiple local drives are + // automatically combined to provide the requested size. Note, however, that + // each physical SSD is 375GB in size, and no more than 8 drives can be + // attached to a single instance. SizeGb int64 `json:"sizeGb,omitempty"` - - // SourceImage: An image to put on the disk before attaching it to the - // VM. + // SourceImage: An image to put on the disk before attaching it to the VM. SourceImage string `json:"sourceImage,omitempty"` - - // Type: The Compute Engine disk type. If unspecified, `pd-standard` is - // used. + // Type: The Compute Engine disk type. If unspecified, `pd-standard` is used. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SizeGb") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "SizeGb") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SizeGb") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersistentDisk) MarshalJSON() ([]byte, error) { +func (s PersistentDisk) MarshalJSON() ([]byte, error) { type NoMethod PersistentDisk - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Pipeline: Specifies a series of actions to execute, expressed as -// Docker containers. +// Pipeline: Specifies a series of actions to execute, expressed as Docker +// containers. type Pipeline struct { - // Actions: The list of actions to execute, in the order they are - // specified. + // Actions: The list of actions to execute, in the order they are specified. Actions []*Action `json:"actions,omitempty"` - - // EncryptedEnvironment: The encrypted environment to pass into every - // action. Each action can also specify its own encrypted environment. - // The secret must decrypt to a JSON-encoded dictionary where key-value - // pairs serve as environment variable names and their values. The - // decoded environment variables can overwrite the values specified by - // the `environment` field. + // EncryptedEnvironment: The encrypted environment to pass into every action. + // Each action can also specify its own encrypted environment. The secret must + // decrypt to a JSON-encoded dictionary where key-value pairs serve as + // environment variable names and their values. The decoded environment + // variables can overwrite the values specified by the `environment` field. EncryptedEnvironment *Secret `json:"encryptedEnvironment,omitempty"` - - // Environment: The environment to pass into every action. Each action - // can also specify additional environment variables but cannot delete - // an entry from this map (though they can overwrite it with a different - // value). + // Environment: The environment to pass into every action. Each action can also + // specify additional environment variables but cannot delete an entry from + // this map (though they can overwrite it with a different value). Environment map[string]string `json:"environment,omitempty"` - // Resources: The resources required for execution. Resources *Resources `json:"resources,omitempty"` - - // Timeout: The maximum amount of time to give the pipeline to complete. - // This includes the time spent waiting for a worker to be allocated. If - // the pipeline fails to complete before the timeout, it will be - // cancelled and the error code will be set to DEADLINE_EXCEEDED. If - // unspecified, it will default to 7 days. + // Timeout: The maximum amount of time to give the pipeline to complete. This + // includes the time spent waiting for a worker to be allocated. If the + // pipeline fails to complete before the timeout, it will be cancelled and the + // error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default + // to 7 days. Timeout string `json:"timeout,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Actions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actions") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Actions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Actions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pipeline) MarshalJSON() ([]byte, error) { +func (s Pipeline) MarshalJSON() ([]byte, error) { type NoMethod Pipeline - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PullStartedEvent: An event generated when the worker starts pulling -// an image. +// PullStartedEvent: An event generated when the worker starts pulling an +// image. type PullStartedEvent struct { // ImageUri: The URI of the image that was pulled. ImageUri string `json:"imageUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageUri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ImageUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PullStartedEvent) MarshalJSON() ([]byte, error) { +func (s PullStartedEvent) MarshalJSON() ([]byte, error) { type NoMethod PullStartedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PullStoppedEvent: An event generated when the worker stops pulling an -// image. +// PullStoppedEvent: An event generated when the worker stops pulling an image. type PullStoppedEvent struct { // ImageUri: The URI of the image that was pulled. ImageUri string `json:"imageUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageUri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ImageUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PullStoppedEvent) MarshalJSON() ([]byte, error) { +func (s PullStoppedEvent) MarshalJSON() ([]byte, error) { type NoMethod PullStoppedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Resources: The system resources for the pipeline run. At least one -// zone or region must be specified or the pipeline run will fail. +// Resources: The system resources for the pipeline run. At least one zone or +// region must be specified or the pipeline run will fail. type Resources struct { // ProjectId: The project ID to allocate resources in. ProjectId string `json:"projectId,omitempty"` - - // Regions: The list of regions allowed for VM allocation. If set, the - // `zones` field must not be set. + // Regions: The list of regions allowed for VM allocation. If set, the `zones` + // field must not be set. Regions []string `json:"regions,omitempty"` - // VirtualMachine: The virtual machine specification. VirtualMachine *VirtualMachine `json:"virtualMachine,omitempty"` - - // Zones: The list of zones allowed for VM allocation. If set, the - // `regions` field must not be set. + // Zones: The list of zones allowed for VM allocation. If set, the `regions` + // field must not be set. Zones []string `json:"zones,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProjectId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProjectId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Resources) MarshalJSON() ([]byte, error) { +func (s Resources) MarshalJSON() ([]byte, error) { type NoMethod Resources - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RunPipelineResponse: The response to the RunPipeline method, returned -// in the operation's result field on success. +// RunPipelineResponse: The response to the RunPipeline method, returned in the +// operation's result field on success. type RunPipelineResponse struct { } -// Secret: Holds encrypted information that is only decrypted and stored -// in RAM by the worker VM when running the pipeline. +// Secret: Holds encrypted information that is only decrypted and stored in RAM +// by the worker VM when running the pipeline. type Secret struct { - // CipherText: The value of the cipherText response from the `encrypt` - // method. This field is intentionally unaudited. + // CipherText: The value of the cipherText response from the `encrypt` method. + // This field is intentionally unaudited. CipherText string `json:"cipherText,omitempty"` - - // KeyName: The name of the Cloud KMS key that will be used to decrypt - // the secret value. The VM service account must have the required - // permissions and authentication scopes to invoke the `decrypt` method - // on the specified key. + // KeyName: The name of the Cloud KMS key that will be used to decrypt the + // secret value. The VM service account must have the required permissions and + // authentication scopes to invoke the `decrypt` method on the specified key. KeyName string `json:"keyName,omitempty"` - // ForceSendFields is a list of field names (e.g. "CipherText") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CipherText") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CipherText") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Secret) MarshalJSON() ([]byte, error) { +func (s Secret) MarshalJSON() ([]byte, error) { type NoMethod Secret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceAccount: Carries information about a Google Cloud service -// account. +// ServiceAccount: Carries information about a Google Cloud service account. type ServiceAccount struct { - // Email: Email address of the service account. If not specified, the - // default Compute Engine service account for the project will be used. + // Email: Email address of the service account. If not specified, the default + // Compute Engine service account for the project will be used. Email string `json:"email,omitempty"` - - // Scopes: List of scopes to be enabled for this service account on the - // VM, in addition to the cloud-platform API scope that will be added by - // default. + // Scopes: List of scopes to be enabled for this service account on the VM, in + // addition to the cloud-platform API scope that will be added by default. Scopes []string `json:"scopes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ServiceAccount) MarshalJSON() ([]byte, error) { +func (s ServiceAccount) MarshalJSON() ([]byte, error) { type NoMethod ServiceAccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UnexpectedExitStatusEvent: An event generated when the execution of a -// container results in a non-zero exit status that was not otherwise -// ignored. Execution will continue, but only actions that are flagged -// as `ALWAYS_RUN` will be executed. Other actions will be skipped. +// container results in a non-zero exit status that was not otherwise ignored. +// Execution will continue, but only actions that are flagged as `ALWAYS_RUN` +// will be executed. Other actions will be skipped. type UnexpectedExitStatusEvent struct { // ActionId: The numeric ID of the action that started the container. ActionId int64 `json:"actionId,omitempty"` - // ExitStatus: The exit status of the container. ExitStatus int64 `json:"exitStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnexpectedExitStatusEvent) MarshalJSON() ([]byte, error) { +func (s UnexpectedExitStatusEvent) MarshalJSON() ([]byte, error) { type NoMethod UnexpectedExitStatusEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VirtualMachine: Carries information about a Compute Engine VM -// resource. +// VirtualMachine: Carries information about a Compute Engine VM resource. type VirtualMachine struct { // Accelerators: The list of accelerators to attach to the VM. Accelerators []*Accelerator `json:"accelerators,omitempty"` - - // BootDiskSizeGb: The size of the boot disk, in GB. The boot disk must - // be large enough to accommodate all of the Docker images from each - // action in the pipeline at the same time. If not specified, a small - // but reasonable default value is used. + // BootDiskSizeGb: The size of the boot disk, in GB. The boot disk must be + // large enough to accommodate all of the Docker images from each action in the + // pipeline at the same time. If not specified, a small but reasonable default + // value is used. BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` - // BootImage: The host operating system image to use. Currently, only // Container-Optimized OS images can be used. The default value is - // `projects/cos-cloud/global/images/family/cos-stable`, which selects - // the latest stable release of Container-Optimized OS. This option is - // provided to allow testing against the beta release of the operating - // system to ensure that the new version does not interact negatively - // with production pipelines. To test a pipeline against the beta - // release of Container-Optimized OS, use the value - // `projects/cos-cloud/global/images/family/cos-beta`. + // `projects/cos-cloud/global/images/family/cos-stable`, which selects the + // latest stable release of Container-Optimized OS. This option is provided to + // allow testing against the beta release of the operating system to ensure + // that the new version does not interact negatively with production pipelines. + // To test a pipeline against the beta release of Container-Optimized OS, use + // the value `projects/cos-cloud/global/images/family/cos-beta`. BootImage string `json:"bootImage,omitempty"` - - // CpuPlatform: The CPU platform to request. An instance based on a - // newer platform can be allocated, but never one with fewer - // capabilities. The value of this parameter must be a valid Compute - // Engine CPU platform name (such as "Intel Skylake"). This parameter is - // only useful for carefully optimized work loads where the CPU platform - // has a significant impact. For more information about the effect of - // this parameter, see + // CpuPlatform: The CPU platform to request. An instance based on a newer + // platform can be allocated, but never one with fewer capabilities. The value + // of this parameter must be a valid Compute Engine CPU platform name (such as + // "Intel Skylake"). This parameter is only useful for carefully optimized work + // loads where the CPU platform has a significant impact. For more information + // about the effect of this parameter, see // https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. CpuPlatform string `json:"cpuPlatform,omitempty"` - - // Disks: The list of disks to create and attach to the VM. Specify - // either the `volumes[]` field or the `disks[]` field, but not both. + // Disks: The list of disks to create and attach to the VM. Specify either the + // `volumes[]` field or the `disks[]` field, but not both. Disks []*Disk `json:"disks,omitempty"` - - // DockerCacheImages: The Compute Engine Disk Images to use as a Docker - // cache. The disks will be mounted into the Docker folder in a way that - // the images present in the cache will not need to be pulled. The - // digests of the cached images must match those of the tags used or the - // latest version will still be pulled. The root directory of the ext4 - // image must contain `image` and `overlay2` directories copied from the - // Docker directory of a VM where the desired Docker images have already - // been pulled. Any images pulled that are not cached will be stored on - // the first cache disk instead of the boot disk. Only a single image is - // supported. + // DockerCacheImages: The Compute Engine Disk Images to use as a Docker cache. + // The disks will be mounted into the Docker folder in a way that the images + // present in the cache will not need to be pulled. The digests of the cached + // images must match those of the tags used or the latest version will still be + // pulled. The root directory of the ext4 image must contain `image` and + // `overlay2` directories copied from the Docker directory of a VM where the + // desired Docker images have already been pulled. Any images pulled that are + // not cached will be stored on the first cache disk instead of the boot disk. + // Only a single image is supported. DockerCacheImages []string `json:"dockerCacheImages,omitempty"` - // EnableStackdriverMonitoring: Whether Stackdriver monitoring should be // enabled on the VM. EnableStackdriverMonitoring bool `json:"enableStackdriverMonitoring,omitempty"` - - // Labels: Optional set of labels to apply to the VM and any attached - // disk resources. These labels must adhere to the name and value - // restrictions - // (https://cloud.google.com/compute/docs/labeling-resources) on VM - // labels imposed by Compute Engine. Labels keys with the prefix - // 'google-' are reserved for use by Google. Labels applied at creation - // time to the VM. Applied on a best-effort basis to attached disk - // resources shortly after VM creation. + // Labels: Optional set of labels to apply to the VM and any attached disk + // resources. These labels must adhere to the name and value restrictions + // (https://cloud.google.com/compute/docs/labeling-resources) on VM labels + // imposed by Compute Engine. Labels keys with the prefix 'google-' are + // reserved for use by Google. Labels applied at creation time to the VM. + // Applied on a best-effort basis to attached disk resources shortly after VM + // creation. Labels map[string]string `json:"labels,omitempty"` - - // MachineType: Required. The machine type of the virtual machine to - // create. Must be the short name of a standard machine type (such as - // "n1-standard-1") or a custom machine type (such as "custom-1-4096", - // where "1" indicates the number of vCPUs and "4096" indicates the - // memory in MB). See Creating an instance with a custom machine type + // MachineType: Required. The machine type of the virtual machine to create. + // Must be the short name of a standard machine type (such as "n1-standard-1") + // or a custom machine type (such as "custom-1-4096", where "1" indicates the + // number of vCPUs and "4096" indicates the memory in MB). See Creating an + // instance with a custom machine type // (https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) // for more specifications on creating a custom machine type. MachineType string `json:"machineType,omitempty"` - // Network: The VM network configuration. Network *Network `json:"network,omitempty"` - - // NvidiaDriverVersion: The NVIDIA driver version to use when attaching - // an NVIDIA GPU accelerator. The version specified here must be - // compatible with the GPU libraries contained in the container being - // executed, and must be one of the drivers hosted in the - // `nvidia-drivers-us-public` bucket on Google Cloud Storage. + // NvidiaDriverVersion: The NVIDIA driver version to use when attaching an + // NVIDIA GPU accelerator. The version specified here must be compatible with + // the GPU libraries contained in the container being executed, and must be one + // of the drivers hosted in the `nvidia-drivers-us-public` bucket on Google + // Cloud Storage. NvidiaDriverVersion string `json:"nvidiaDriverVersion,omitempty"` - // Preemptible: If true, allocate a preemptible VM. Preemptible bool `json:"preemptible,omitempty"` - - // ServiceAccount: The service account to install on the VM. This - // account does not need any permissions other than those required by - // the pipeline. + // ServiceAccount: The service account to install on the VM. This account does + // not need any permissions other than those required by the pipeline. ServiceAccount *ServiceAccount `json:"serviceAccount,omitempty"` - - // Volumes: The list of disks and other storage to create or attach to - // the VM. Specify either the `volumes[]` field or the `disks[]` field, - // but not both. + // Volumes: The list of disks and other storage to create or attach to the VM. + // Specify either the `volumes[]` field or the `disks[]` field, but not both. Volumes []*Volume `json:"volumes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Accelerators") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accelerators") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accelerators") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VirtualMachine) MarshalJSON() ([]byte, error) { +func (s VirtualMachine) MarshalJSON() ([]byte, error) { type NoMethod VirtualMachine - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Volume: Carries information about storage that can be attached to a -// VM. Specify either `Volume` or `Disk`, but not both. +// Volume: Carries information about storage that can be attached to a VM. +// Specify either `Volume` or `Disk`, but not both. type Volume struct { // ExistingDisk: Configuration for a existing disk. ExistingDisk *ExistingDisk `json:"existingDisk,omitempty"` - // NfsMount: Configuration for an NFS mount. NfsMount *NFSMount `json:"nfsMount,omitempty"` - // PersistentDisk: Configuration for a persistent disk. PersistentDisk *PersistentDisk `json:"persistentDisk,omitempty"` - - // Volume: A user-supplied name for the volume. Used when mounting the - // volume into `Actions`. The name must contain only upper and lowercase - // alphanumeric characters and hyphens and cannot start with a hyphen. + // Volume: A user-supplied name for the volume. Used when mounting the volume + // into `Actions`. The name must contain only upper and lowercase alphanumeric + // characters and hyphens and cannot start with a hyphen. Volume string `json:"volume,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExistingDisk") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExistingDisk") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExistingDisk") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Volume) MarshalJSON() ([]byte, error) { +func (s Volume) MarshalJSON() ([]byte, error) { type NoMethod Volume - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkerAssignedEvent: An event generated after a worker VM has been -// assigned to run the pipeline. +// WorkerAssignedEvent: An event generated after a worker VM has been assigned +// to run the pipeline. type WorkerAssignedEvent struct { // Instance: The worker's instance name. Instance string `json:"instance,omitempty"` - // MachineType: The machine type that was assigned for the worker. MachineType string `json:"machineType,omitempty"` - // Zone: The zone the worker is running in. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerAssignedEvent) MarshalJSON() ([]byte, error) { +func (s WorkerAssignedEvent) MarshalJSON() ([]byte, error) { type NoMethod WorkerAssignedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkerReleasedEvent: An event generated when the worker VM that was -// assigned to the pipeline has been released (deleted). +// WorkerReleasedEvent: An event generated when the worker VM that was assigned +// to the pipeline has been released (deleted). type WorkerReleasedEvent struct { // Instance: The worker's instance name. Instance string `json:"instance,omitempty"` - // Zone: The zone the worker was running in. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerReleasedEvent) MarshalJSON() ([]byte, error) { +func (s WorkerReleasedEvent) MarshalJSON() ([]byte, error) { type NoMethod WorkerReleasedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } diff --git a/genomics/v1alpha2/genomics-gen.go b/genomics/v1alpha2/genomics-gen.go index 00de38a5334..c928c5c1c3b 100644 --- a/genomics/v1alpha2/genomics-gen.go +++ b/genomics/v1alpha2/genomics-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/genomics // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // genomicsService, err := genomics.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // genomicsService, err := genomics.NewService(ctx, option.WithScopes(genomics.GenomicsScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // genomicsService, err := genomics.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // genomicsService, err := genomics.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package genomics // import "google.golang.org/api/genomics/v1alpha2" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "genomics:v1alpha2" const apiName = "genomics" const apiVersion = "v1alpha2" const basePath = "https://genomics.googleapis.com/" +const basePathTemplate = "https://genomics.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://genomics.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -95,7 +112,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/genomics", @@ -103,7 +120,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -168,762 +187,602 @@ type PipelinesService struct { s *Service } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. +// CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } -// ComputeEngine: Describes a Compute Engine resource that is being -// managed by a running pipeline. +// ComputeEngine: Describes a Compute Engine resource that is being managed by +// a running pipeline. type ComputeEngine struct { - // DiskNames: The names of the disks that were created for this - // pipeline. + // DiskNames: The names of the disks that were created for this pipeline. DiskNames []string `json:"diskNames,omitempty"` - // InstanceName: The instance on which the operation is running. InstanceName string `json:"instanceName,omitempty"` - // MachineType: The machine type of the instance. MachineType string `json:"machineType,omitempty"` - // Zone: The availability zone in which the instance resides. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "DiskNames") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DiskNames") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DiskNames") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ComputeEngine) MarshalJSON() ([]byte, error) { +func (s ComputeEngine) MarshalJSON() ([]byte, error) { type NoMethod ComputeEngine - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContainerKilledEvent: An event generated when a container is forcibly -// terminated by the worker. Currently, this only occurs when the -// container outlives the timeout specified by the user. +// terminated by the worker. Currently, this only occurs when the container +// outlives the timeout specified by the user. type ContainerKilledEvent struct { // ActionId: The numeric ID of the action that started the container. ActionId int64 `json:"actionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerKilledEvent) MarshalJSON() ([]byte, error) { +func (s ContainerKilledEvent) MarshalJSON() ([]byte, error) { type NoMethod ContainerKilledEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContainerStartedEvent: An event generated when a container starts. type ContainerStartedEvent struct { // ActionId: The numeric ID of the action that started this container. ActionId int64 `json:"actionId,omitempty"` - // IpAddress: The public IP address that can be used to connect to the - // container. This field is only populated when at least one port - // mapping is present. If the instance was created with a private - // address, this field will be empty even if port mappings exist. + // container. This field is only populated when at least one port mapping is + // present. If the instance was created with a private address, this field will + // be empty even if port mappings exist. IpAddress string `json:"ipAddress,omitempty"` - // PortMappings: The container-to-host port mappings installed for this // container. This set will contain any ports exposed using the // `PUBLISH_EXPOSED_PORTS` flag as well as any specified in the `Action` // definition. PortMappings map[string]int64 `json:"portMappings,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerStartedEvent) MarshalJSON() ([]byte, error) { +func (s ContainerStartedEvent) MarshalJSON() ([]byte, error) { type NoMethod ContainerStartedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContainerStoppedEvent: An event generated when a container exits. type ContainerStoppedEvent struct { // ActionId: The numeric ID of the action that started this container. ActionId int64 `json:"actionId,omitempty"` - // ExitStatus: The exit status of the container. ExitStatus int64 `json:"exitStatus,omitempty"` - // Stderr: The tail end of any content written to standard error by the - // container. If the content emits large amounts of debugging noise or - // contains sensitive information, you can prevent the content from - // being printed by setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. - // Note that only a small amount of the end of the stream is captured - // here. The entire stream is stored in the `/google/logs` directory - // mounted into each action, and can be copied off the machine as - // described elsewhere. + // container. If the content emits large amounts of debugging noise or contains + // sensitive information, you can prevent the content from being printed by + // setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. Note that only a small + // amount of the end of the stream is captured here. The entire stream is + // stored in the `/google/logs` directory mounted into each action, and can be + // copied off the machine as described elsewhere. Stderr string `json:"stderr,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerStoppedEvent) MarshalJSON() ([]byte, error) { +func (s ContainerStoppedEvent) MarshalJSON() ([]byte, error) { type NoMethod ContainerStoppedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ControllerConfig: Stores the information that the controller will -// fetch from the server in order to run. Should only be used by VMs -// created by the Pipelines Service and not by end users. +// ControllerConfig: Stores the information that the controller will fetch from +// the server in order to run. Should only be used by VMs created by the +// Pipelines Service and not by end users. type ControllerConfig struct { - Cmd string `json:"cmd,omitempty"` - - Disks map[string]string `json:"disks,omitempty"` - - GcsLogPath string `json:"gcsLogPath,omitempty"` - - GcsSinks map[string]RepeatedString `json:"gcsSinks,omitempty"` - - GcsSources map[string]RepeatedString `json:"gcsSources,omitempty"` - - Image string `json:"image,omitempty"` - - MachineType string `json:"machineType,omitempty"` - - Vars map[string]string `json:"vars,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + Cmd string `json:"cmd,omitempty"` + Disks map[string]string `json:"disks,omitempty"` + GcsLogPath string `json:"gcsLogPath,omitempty"` + GcsSinks map[string]RepeatedString `json:"gcsSinks,omitempty"` + GcsSources map[string]RepeatedString `json:"gcsSources,omitempty"` + Image string `json:"image,omitempty"` + MachineType string `json:"machineType,omitempty"` + Vars map[string]string `json:"vars,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Cmd") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cmd") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cmd") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cmd") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ControllerConfig) MarshalJSON() ([]byte, error) { +func (s ControllerConfig) MarshalJSON() ([]byte, error) { type NoMethod ControllerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DelayedEvent: An event generated whenever a resource limitation or -// transient error delays execution of a pipeline that was otherwise -// ready to run. +// DelayedEvent: An event generated whenever a resource limitation or transient +// error delays execution of a pipeline that was otherwise ready to run. type DelayedEvent struct { - // Cause: A textual description of the cause of the delay. The string - // can change without notice because it is often generated by another - // service (such as Compute Engine). + // Cause: A textual description of the cause of the delay. The string can + // change without notice because it is often generated by another service (such + // as Compute Engine). Cause string `json:"cause,omitempty"` - - // Metrics: If the delay was caused by a resource shortage, this field - // lists the Compute Engine metrics that are preventing this operation - // from running (for example, `CPUS` or `INSTANCES`). If the particular - // metric is not known, a single `UNKNOWN` metric will be present. + // Metrics: If the delay was caused by a resource shortage, this field lists + // the Compute Engine metrics that are preventing this operation from running + // (for example, `CPUS` or `INSTANCES`). If the particular metric is not known, + // a single `UNKNOWN` metric will be present. Metrics []string `json:"metrics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cause") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cause") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cause") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DelayedEvent) MarshalJSON() ([]byte, error) { +func (s DelayedEvent) MarshalJSON() ([]byte, error) { type NoMethod DelayedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Disk: A Google Compute Engine disk resource specification. type Disk struct { - // AutoDelete: Deprecated. Disks created by the Pipelines API will be - // deleted at the end of the pipeline run, regardless of what this field - // is set to. + // AutoDelete: Deprecated. Disks created by the Pipelines API will be deleted + // at the end of the pipeline run, regardless of what this field is set to. AutoDelete bool `json:"autoDelete,omitempty"` - - // MountPoint: Required at create time and cannot be overridden at run - // time. Specifies the path in the docker container where files on this - // disk should be located. For example, if `mountPoint` is `/mnt/disk`, - // and the parameter has `localPath` `inputs/file.txt`, the docker - // container can access the data at `/mnt/disk/inputs/file.txt`. + // MountPoint: Required at create time and cannot be overridden at run time. + // Specifies the path in the docker container where files on this disk should + // be located. For example, if `mountPoint` is `/mnt/disk`, and the parameter + // has `localPath` `inputs/file.txt`, the docker container can access the data + // at `/mnt/disk/inputs/file.txt`. MountPoint string `json:"mountPoint,omitempty"` - // Name: Required. The name of the disk that can be used in the pipeline - // parameters. Must be 1 - 63 characters. The name "boot" is reserved - // for system use. + // parameters. Must be 1 - 63 characters. The name "boot" is reserved for + // system use. Name string `json:"name,omitempty"` - - // ReadOnly: Specifies how a sourced-base persistent disk will be - // mounted. See + // ReadOnly: Specifies how a sourced-base persistent disk will be mounted. See // https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances // for more details. Can only be set at create time. ReadOnly bool `json:"readOnly,omitempty"` - // SizeGb: The size of the disk. Defaults to 500 (GB). This field is not // applicable for local SSD. SizeGb int64 `json:"sizeGb,omitempty"` - // Source: The full or partial URL of the persistent disk to attach. See // https://cloud.google.com/compute/docs/reference/latest/instances#resource - // and - // https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots + // and https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots // for more details. Source string `json:"source,omitempty"` - // Type: Required. The type of the disk to create. // // Possible values: - // "TYPE_UNSPECIFIED" - Default disk type. Use one of the other - // options below. - // "PERSISTENT_HDD" - Specifies a Google Compute Engine persistent - // hard disk. See https://cloud.google.com/compute/docs/disks/#pdspecs - // for details. + // "TYPE_UNSPECIFIED" - Default disk type. Use one of the other options + // below. + // "PERSISTENT_HDD" - Specifies a Google Compute Engine persistent hard disk. + // See https://cloud.google.com/compute/docs/disks/#pdspecs for details. // "PERSISTENT_SSD" - Specifies a Google Compute Engine persistent - // solid-state disk. See - // https://cloud.google.com/compute/docs/disks/#pdspecs for details. + // solid-state disk. See https://cloud.google.com/compute/docs/disks/#pdspecs + // for details. // "LOCAL_SSD" - Specifies a Google Compute Engine local SSD. See // https://cloud.google.com/compute/docs/disks/local-ssd for details. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoDelete") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutoDelete") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AutoDelete") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Disk) MarshalJSON() ([]byte, error) { +func (s Disk) MarshalJSON() ([]byte, error) { type NoMethod Disk - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DockerExecutor: The Docker execuctor specification. type DockerExecutor struct { - // Cmd: Required. The command or newline delimited script to run. The - // command string will be executed within a bash shell. If the command - // exits with a non-zero exit code, output parameter de-localization - // will be skipped and the pipeline operation's `error` field will be - // populated. Maximum command string length is 16384. + // Cmd: Required. The command or newline delimited script to run. The command + // string will be executed within a bash shell. If the command exits with a + // non-zero exit code, output parameter de-localization will be skipped and the + // pipeline operation's `error` field will be populated. Maximum command string + // length is 16384. Cmd string `json:"cmd,omitempty"` - - // ImageName: Required. Image name from either Docker Hub or Google - // Container Registry. Users that run pipelines must have READ access to - // the image. + // ImageName: Required. Image name from either Docker Hub or Google Container + // Registry. Users that run pipelines must have READ access to the image. ImageName string `json:"imageName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cmd") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cmd") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cmd") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cmd") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DockerExecutor) MarshalJSON() ([]byte, error) { +func (s DockerExecutor) MarshalJSON() ([]byte, error) { type NoMethod DockerExecutor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON +// representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // Event: Carries information about events that occur during pipeline // execution. type Event struct { - // Description: A human-readable description of the event. Note that - // these strings can change at any time without notice. Any application - // logic must use the information in the `details` field. + // Description: A human-readable description of the event. Note that these + // strings can change at any time without notice. Any application logic must + // use the information in the `details` field. Description string `json:"description,omitempty"` - // Details: Machine-readable details about the event. Details googleapi.RawMessage `json:"details,omitempty"` - // Timestamp: The time at which the event occurred. Timestamp string `json:"timestamp,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Event) MarshalJSON() ([]byte, error) { +func (s Event) MarshalJSON() ([]byte, error) { type NoMethod Event - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FailedEvent: An event generated when the execution of a pipeline has -// failed. Note that other events can continue to occur after this -// event. +// FailedEvent: An event generated when the execution of a pipeline has failed. +// Note that other events can continue to occur after this event. type FailedEvent struct { // Cause: The human-readable description of the cause of the failure. Cause string `json:"cause,omitempty"` - - // Code: The Google standard error code that best describes this - // failure. + // Code: The Google standard error code that best describes this failure. // // Possible values: // "OK" - Not an error; returned on success HTTP Mapping: 200 OK - // "CANCELLED" - The operation was cancelled, typically by the caller. - // HTTP Mapping: 499 Client Closed Request - // "UNKNOWN" - Unknown error. For example, this error may be returned - // when a `Status` value received from another address space belongs to - // an error space that is not known in this address space. Also errors - // raised by APIs that do not return enough error information may be - // converted to this error. HTTP Mapping: 500 Internal Server Error - // "INVALID_ARGUMENT" - The client specified an invalid argument. Note - // that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` - // indicates arguments that are problematic regardless of the state of - // the system (e.g., a malformed file name). HTTP Mapping: 400 Bad - // Request - // "DEADLINE_EXCEEDED" - The deadline expired before the operation - // could complete. For operations that change the state of the system, - // this error may be returned even if the operation has completed - // successfully. For example, a successful response from a server could - // have been delayed long enough for the deadline to expire. HTTP - // Mapping: 504 Gateway Timeout - // "NOT_FOUND" - Some requested entity (e.g., file or directory) was - // not found. Note to server developers: if a request is denied for an - // entire class of users, such as gradual feature rollout or - // undocumented allowlist, `NOT_FOUND` may be used. If a request is - // denied for some users within a class of users, such as user-based - // access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 - // Not Found - // "ALREADY_EXISTS" - The entity that a client attempted to create - // (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict - // "PERMISSION_DENIED" - The caller does not have permission to - // execute the specified operation. `PERMISSION_DENIED` must not be used - // for rejections caused by exhausting some resource (use - // `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` - // must not be used if the caller can not be identified (use - // `UNAUTHENTICATED` instead for those errors). This error code does not - // imply the request is valid or the requested entity exists or + // "CANCELLED" - The operation was cancelled, typically by the caller. HTTP + // Mapping: 499 Client Closed Request + // "UNKNOWN" - Unknown error. For example, this error may be returned when a + // `Status` value received from another address space belongs to an error space + // that is not known in this address space. Also errors raised by APIs that do + // not return enough error information may be converted to this error. HTTP + // Mapping: 500 Internal Server Error + // "INVALID_ARGUMENT" - The client specified an invalid argument. Note that + // this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates + // arguments that are problematic regardless of the state of the system (e.g., + // a malformed file name). HTTP Mapping: 400 Bad Request + // "DEADLINE_EXCEEDED" - The deadline expired before the operation could + // complete. For operations that change the state of the system, this error may + // be returned even if the operation has completed successfully. For example, a + // successful response from a server could have been delayed long enough for + // the deadline to expire. HTTP Mapping: 504 Gateway Timeout + // "NOT_FOUND" - Some requested entity (e.g., file or directory) was not + // found. Note to server developers: if a request is denied for an entire class + // of users, such as gradual feature rollout or undocumented allowlist, + // `NOT_FOUND` may be used. If a request is denied for some users within a + // class of users, such as user-based access control, `PERMISSION_DENIED` must + // be used. HTTP Mapping: 404 Not Found + // "ALREADY_EXISTS" - The entity that a client attempted to create (e.g., + // file or directory) already exists. HTTP Mapping: 409 Conflict + // "PERMISSION_DENIED" - The caller does not have permission to execute the + // specified operation. `PERMISSION_DENIED` must not be used for rejections + // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for + // those errors). `PERMISSION_DENIED` must not be used if the caller can not be + // identified (use `UNAUTHENTICATED` instead for those errors). This error code + // does not imply the request is valid or the requested entity exists or // satisfies other pre-conditions. HTTP Mapping: 403 Forbidden // "UNAUTHENTICATED" - The request does not have valid authentication // credentials for the operation. HTTP Mapping: 401 Unauthorized // "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a - // per-user quota, or perhaps the entire file system is out of space. - // HTTP Mapping: 429 Too Many Requests - // "FAILED_PRECONDITION" - The operation was rejected because the - // system is not in a state required for the operation's execution. For - // example, the directory to be deleted is non-empty, an rmdir operation - // is applied to a non-directory, etc. Service implementors can use the - // following guidelines to decide between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can - // retry just the failing call. (b) Use `ABORTED` if the client should - // retry at a higher level. For example, when a client-specified - // test-and-set fails, indicating the client should restart a - // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the - // client should not retry until the system state has been explicitly - // fixed. For example, if an "rmdir" fails because the directory is - // non-empty, `FAILED_PRECONDITION` should be returned since the client - // should not retry unless the files are deleted from the directory. - // HTTP Mapping: 400 Bad Request - // "ABORTED" - The operation was aborted, typically due to a - // concurrency issue such as a sequencer check failure or transaction - // abort. See the guidelines above for deciding between - // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: - // 409 Conflict - // "OUT_OF_RANGE" - The operation was attempted past the valid range. - // E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, - // this error indicates a problem that may be fixed if the system state - // changes. For example, a 32-bit file system will generate - // `INVALID_ARGUMENT` if asked to read at an offset that is not in the - // range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to - // read from an offset past the current file size. There is a fair bit - // of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We - // recommend using `OUT_OF_RANGE` (the more specific error) when it - // applies so that callers who are iterating through a space can easily - // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP - // Mapping: 400 Bad Request + // per-user quota, or perhaps the entire file system is out of space. HTTP + // Mapping: 429 Too Many Requests + // "FAILED_PRECONDITION" - The operation was rejected because the system is + // not in a state required for the operation's execution. For example, the + // directory to be deleted is non-empty, an rmdir operation is applied to a + // non-directory, etc. Service implementors can use the following guidelines to + // decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use + // `UNAVAILABLE` if the client can retry just the failing call. (b) Use + // `ABORTED` if the client should retry at a higher level. For example, when a + // client-specified test-and-set fails, indicating the client should restart a + // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the client + // should not retry until the system state has been explicitly fixed. For + // example, if an "rmdir" fails because the directory is non-empty, + // `FAILED_PRECONDITION` should be returned since the client should not retry + // unless the files are deleted from the directory. HTTP Mapping: 400 Bad + // Request + // "ABORTED" - The operation was aborted, typically due to a concurrency + // issue such as a sequencer check failure or transaction abort. See the + // guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and + // `UNAVAILABLE`. HTTP Mapping: 409 Conflict + // "OUT_OF_RANGE" - The operation was attempted past the valid range. E.g., + // seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error + // indicates a problem that may be fixed if the system state changes. For + // example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to + // read at an offset that is not in the range [0,2^32-1], but it will generate + // `OUT_OF_RANGE` if asked to read from an offset past the current file size. + // There is a fair bit of overlap between `FAILED_PRECONDITION` and + // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) + // when it applies so that callers who are iterating through a space can easily + // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: + // 400 Bad Request // "UNIMPLEMENTED" - The operation is not implemented or is not // supported/enabled in this service. HTTP Mapping: 501 Not Implemented - // "INTERNAL" - Internal errors. This means that some invariants - // expected by the underlying system have been broken. This error code - // is reserved for serious errors. HTTP Mapping: 500 Internal Server - // Error - // "UNAVAILABLE" - The service is currently unavailable. This is most - // likely a transient condition, which can be corrected by retrying with - // a backoff. Note that it is not always safe to retry non-idempotent - // operations. See the guidelines above for deciding between - // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: - // 503 Service Unavailable - // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: - // 500 Internal Server Error + // "INTERNAL" - Internal errors. This means that some invariants expected by + // the underlying system have been broken. This error code is reserved for + // serious errors. HTTP Mapping: 500 Internal Server Error + // "UNAVAILABLE" - The service is currently unavailable. This is most likely + // a transient condition, which can be corrected by retrying with a backoff. + // Note that it is not always safe to retry non-idempotent operations. See the + // guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and + // `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable + // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: 500 + // Internal Server Error Code string `json:"code,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cause") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cause") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cause") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FailedEvent) MarshalJSON() ([]byte, error) { +func (s FailedEvent) MarshalJSON() ([]byte, error) { type NoMethod FailedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListPipelinesResponse: The response of ListPipelines. Contains at -// most `pageSize` pipelines. If it contains `pageSize` pipelines, and -// more pipelines exist, then `nextPageToken` will be populated and -// should be used as the `pageToken` argument to a subsequent -// ListPipelines request. +// ListPipelinesResponse: The response of ListPipelines. Contains at most +// `pageSize` pipelines. If it contains `pageSize` pipelines, and more +// pipelines exist, then `nextPageToken` will be populated and should be used +// as the `pageToken` argument to a subsequent ListPipelines request. type ListPipelinesResponse struct { // NextPageToken: The token to use to get the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // Pipelines: The matched pipelines. Pipelines []*Pipeline `json:"pipelines,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListPipelinesResponse) MarshalJSON() ([]byte, error) { +func (s ListPipelinesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListPipelinesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LocalCopy: LocalCopy defines how a remote file should be copied to -// and from the VM. +// LocalCopy: LocalCopy defines how a remote file should be copied to and from +// the VM. type LocalCopy struct { - // Disk: Required. The name of the disk where this parameter is located. - // Can be the name of one of the disks specified in the Resources field, - // or "boot", which represents the Docker instance's boot disk and has a - // mount point of `/`. + // Disk: Required. The name of the disk where this parameter is located. Can be + // the name of one of the disks specified in the Resources field, or "boot", + // which represents the Docker instance's boot disk and has a mount point of + // `/`. Disk string `json:"disk,omitempty"` - - // Path: Required. The path within the user's docker container where - // this input should be localized to and from, relative to the specified - // disk's mount point. For example: file.txt, + // Path: Required. The path within the user's docker container where this input + // should be localized to and from, relative to the specified disk's mount + // point. For example: file.txt, Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Disk") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Disk") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Disk") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Disk") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LocalCopy) MarshalJSON() ([]byte, error) { +func (s LocalCopy) MarshalJSON() ([]byte, error) { type NoMethod LocalCopy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LoggingOptions: The logging options for the pipeline run. type LoggingOptions struct { - // GcsPath: The location in Google Cloud Storage to which the pipeline - // logs will be copied. Can be specified as a fully qualified directory - // path, in which case logs will be output with a unique identifier as - // the filename in that directory, or as a fully specified path, which - // must end in `.log`, in which case that path will be used, and the - // user must ensure that logs are not overwritten. Stdout and stderr - // logs from the run are also generated and output as `-stdout.log` and - // `-stderr.log`. + // GcsPath: The location in Google Cloud Storage to which the pipeline logs + // will be copied. Can be specified as a fully qualified directory path, in + // which case logs will be output with a unique identifier as the filename in + // that directory, or as a fully specified path, which must end in `.log`, in + // which case that path will be used, and the user must ensure that logs are + // not overwritten. Stdout and stderr logs from the run are also generated and + // output as `-stdout.log` and `-stderr.log`. GcsPath string `json:"gcsPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GcsPath") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "GcsPath") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GcsPath") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GcsPath") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LoggingOptions) MarshalJSON() ([]byte, error) { +func (s LoggingOptions) MarshalJSON() ([]byte, error) { type NoMethod LoggingOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - - // Metadata: An OperationMetadata or Metadata object. This will always - // be returned with the Operation. + // Metadata: An OperationMetadata or Metadata object. This will always be + // returned with the Operation. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. For example: + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. For example: // `operations/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw` Name string `json:"name,omitempty"` - // Response: An Empty object. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationEvent: An event that occurred during an Operation. type OperationEvent struct { // Description: Required description of event. Description string `json:"description,omitempty"` - - // EndTime: Optional time of when event finished. An event can have a - // start time and no finish time. If an event has a finish time, there - // must be a start time. + // EndTime: Optional time of when event finished. An event can have a start + // time and no finish time. If an event has a finish time, there must be a + // start time. EndTime string `json:"endTime,omitempty"` - // StartTime: Optional time of when event started. StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationEvent) MarshalJSON() ([]byte, error) { +func (s OperationEvent) MarshalJSON() ([]byte, error) { type NoMethod OperationEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadata: Metadata describing an Operation. @@ -932,283 +791,222 @@ type OperationMetadata struct { // provided by the caller when submitting the request that creates the // operation. ClientId string `json:"clientId,omitempty"` - - // CreateTime: The time at which the job was submitted to the Genomics - // service. + // CreateTime: The time at which the job was submitted to the Genomics service. CreateTime string `json:"createTime,omitempty"` - // EndTime: The time at which the job stopped running. EndTime string `json:"endTime,omitempty"` - // Events: Optional event messages that were generated during the job's - // execution. This also contains any warnings that were generated during - // import or export. + // execution. This also contains any warnings that were generated during import + // or export. Events []*OperationEvent `json:"events,omitempty"` - - // Labels: Optionally provided by the caller when submitting the request - // that creates the operation. + // Labels: Optionally provided by the caller when submitting the request that + // creates the operation. Labels map[string]string `json:"labels,omitempty"` - // ProjectId: The Google Cloud Project in which the job is scoped. ProjectId string `json:"projectId,omitempty"` - - // Request: The original request that started the operation. Note that - // this will be in current version of the API. If the operation was - // started with v1beta2 API and a GetOperation is performed on v1 API, a - // v1 request will be returned. + // Request: The original request that started the operation. Note that this + // will be in current version of the API. If the operation was started with + // v1beta2 API and a GetOperation is performed on v1 API, a v1 request will be + // returned. Request googleapi.RawMessage `json:"request,omitempty"` - // RuntimeMetadata: Runtime metadata on this Operation. RuntimeMetadata googleapi.RawMessage `json:"runtimeMetadata,omitempty"` - // StartTime: The time at which the job began to run. StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { +func (s OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Pipeline: The pipeline object. Represents a transformation from a set -// of input parameters to a set of output parameters. The transformation -// is defined as a docker image and command to run within that image. -// Each pipeline is run on a Google Compute Engine VM. A pipeline can be -// created with the `create` method and then later run with the `run` -// method, or a pipeline can be defined and run all at once with the -// `run` method. +// Pipeline: The pipeline object. Represents a transformation from a set of +// input parameters to a set of output parameters. The transformation is +// defined as a docker image and command to run within that image. Each +// pipeline is run on a Google Compute Engine VM. A pipeline can be created +// with the `create` method and then later run with the `run` method, or a +// pipeline can be defined and run all at once with the `run` method. type Pipeline struct { // Description: User-specified description. Description string `json:"description,omitempty"` - // Docker: Specifies the docker run information. Docker *DockerExecutor `json:"docker,omitempty"` - // InputParameters: Input parameters of the pipeline. InputParameters []*PipelineParameter `json:"inputParameters,omitempty"` - - // Name: Required. A user specified pipeline name that does not have to - // be unique. This name can be used for filtering Pipelines in - // ListPipelines. + // Name: Required. A user specified pipeline name that does not have to be + // unique. This name can be used for filtering Pipelines in ListPipelines. Name string `json:"name,omitempty"` - // OutputParameters: Output parameters of the pipeline. OutputParameters []*PipelineParameter `json:"outputParameters,omitempty"` - // PipelineId: Unique pipeline id that is generated by the service when - // CreatePipeline is called. Cannot be specified in the Pipeline used in - // the CreatePipelineRequest, and will be populated in the response to - // CreatePipeline and all subsequent Get and List calls. Indicates that - // the service has registered this pipeline. + // CreatePipeline is called. Cannot be specified in the Pipeline used in the + // CreatePipelineRequest, and will be populated in the response to + // CreatePipeline and all subsequent Get and List calls. Indicates that the + // service has registered this pipeline. PipelineId string `json:"pipelineId,omitempty"` - - // ProjectId: Required. The project in which to create the pipeline. The - // caller must have WRITE access. + // ProjectId: Required. The project in which to create the pipeline. The caller + // must have WRITE access. ProjectId string `json:"projectId,omitempty"` - - // Resources: Required. Specifies resource requirements for the pipeline - // run. Required fields: * minimumCpuCores * minimumRamGb + // Resources: Required. Specifies resource requirements for the pipeline run. + // Required fields: * minimumCpuCores * minimumRamGb Resources *PipelineResources `json:"resources,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pipeline) MarshalJSON() ([]byte, error) { +func (s Pipeline) MarshalJSON() ([]byte, error) { type NoMethod Pipeline - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PipelineParameter: Parameters facilitate setting and delivering data -// into the pipeline's execution environment. They are defined at create -// time, with optional defaults, and can be overridden at run time. If -// `localCopy` is unset, then the parameter specifies a string that is -// passed as-is into the pipeline, as the value of the environment -// variable with the given name. A default value can be optionally -// specified at create time. The default can be overridden at run time -// using the inputs map. If no default is given, a value must be -// supplied at runtime. If `localCopy` is defined, then the parameter -// specifies a data source or sink, both in Google Cloud Storage and on -// the Docker container where the pipeline computation is run. The -// service account associated with the Pipeline (by default the -// project's Compute Engine service account) must have access to the -// Google Cloud Storage paths. At run time, the Google Cloud Storage -// paths can be overridden if a default was provided at create time, or -// must be set otherwise. The pipeline runner should add a key/value -// pair to either the inputs or outputs map. The indicated data copies -// will be carried out before/after pipeline execution, just as if the -// corresponding arguments were provided to `gsutil cp`. For example: -// Given the following `PipelineParameter`, specified in the + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PipelineParameter: Parameters facilitate setting and delivering data into +// the pipeline's execution environment. They are defined at create time, with +// optional defaults, and can be overridden at run time. If `localCopy` is +// unset, then the parameter specifies a string that is passed as-is into the +// pipeline, as the value of the environment variable with the given name. A +// default value can be optionally specified at create time. The default can be +// overridden at run time using the inputs map. If no default is given, a value +// must be supplied at runtime. If `localCopy` is defined, then the parameter +// specifies a data source or sink, both in Google Cloud Storage and on the +// Docker container where the pipeline computation is run. The service account +// associated with the Pipeline (by default the project's Compute Engine +// service account) must have access to the Google Cloud Storage paths. At run +// time, the Google Cloud Storage paths can be overridden if a default was +// provided at create time, or must be set otherwise. The pipeline runner +// should add a key/value pair to either the inputs or outputs map. The +// indicated data copies will be carried out before/after pipeline execution, +// just as if the corresponding arguments were provided to `gsutil cp`. For +// example: Given the following `PipelineParameter`, specified in the // `inputParameters` list: ``` {name: "input_file", localCopy: {path: // "file.txt", disk: "pd1"}} ``` where `disk` is defined in the -// `PipelineResources` object as: ``` {name: "pd1", mountPoint: -// "/mnt/disk/"} ``` We create a disk named `pd1`, mount it on the host -// VM, and map `/mnt/pd1` to `/mnt/disk` in the docker container. At -// runtime, an entry for `input_file` would be required in the inputs -// map, such as: ``` inputs["input_file"] = "gs://my-bucket/bar.txt" ``` -// This would generate the following gsutil call: ``` gsutil cp -// gs://my-bucket/bar.txt /mnt/pd1/file.txt ``` The file -// `/mnt/pd1/file.txt` maps to `/mnt/disk/file.txt` in the Docker -// container. Acceptable paths are: Google Cloud storage pathLocal path -// file file glob directory For outputs, the direction of the copy is -// reversed: ``` gsutil cp /mnt/disk/file.txt gs://my-bucket/bar.txt ``` -// Acceptable paths are: Local pathGoogle Cloud Storage path file file -// file directory - directory must already exist glob directory - -// directory will be created if it doesn't exist One restriction due to -// docker limitations, is that for outputs that are found on the boot +// `PipelineResources` object as: ``` {name: "pd1", mountPoint: "/mnt/disk/"} +// ``` We create a disk named `pd1`, mount it on the host VM, and map +// `/mnt/pd1` to `/mnt/disk` in the docker container. At runtime, an entry for +// `input_file` would be required in the inputs map, such as: ``` +// inputs["input_file"] = "gs://my-bucket/bar.txt" ``` This would generate the +// following gsutil call: ``` gsutil cp gs://my-bucket/bar.txt +// /mnt/pd1/file.txt ``` The file `/mnt/pd1/file.txt` maps to +// `/mnt/disk/file.txt` in the Docker container. Acceptable paths are: Google +// Cloud storage pathLocal path file file glob directory For outputs, the +// direction of the copy is reversed: ``` gsutil cp /mnt/disk/file.txt +// gs://my-bucket/bar.txt ``` Acceptable paths are: Local pathGoogle Cloud +// Storage path file file file directory - directory must already exist glob +// directory - directory will be created if it doesn't exist One restriction +// due to docker limitations, is that for outputs that are found on the boot // disk, the local path cannot be a glob and must be a file. type PipelineParameter struct { - // DefaultValue: The default value for this parameter. Can be overridden - // at runtime. If `localCopy` is present, then this must be a Google - // Cloud Storage path beginning with `gs://`. + // DefaultValue: The default value for this parameter. Can be overridden at + // runtime. If `localCopy` is present, then this must be a Google Cloud Storage + // path beginning with `gs://`. DefaultValue string `json:"defaultValue,omitempty"` - // Description: Human-readable description. Description string `json:"description,omitempty"` - - // LocalCopy: If present, this parameter is marked for copying to and - // from the VM. `LocalCopy` indicates where on the VM the file should - // be. The value given to this parameter (either at runtime or using - // `defaultValue`) must be the remote path where the file should be. + // LocalCopy: If present, this parameter is marked for copying to and from the + // VM. `LocalCopy` indicates where on the VM the file should be. The value + // given to this parameter (either at runtime or using `defaultValue`) must be + // the remote path where the file should be. LocalCopy *LocalCopy `json:"localCopy,omitempty"` - - // Name: Required. Name of the parameter - the pipeline runner uses this - // string as the key to the input and output maps in RunPipeline. + // Name: Required. Name of the parameter - the pipeline runner uses this string + // as the key to the input and output maps in RunPipeline. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultValue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PipelineParameter) MarshalJSON() ([]byte, error) { +func (s PipelineParameter) MarshalJSON() ([]byte, error) { type NoMethod PipelineParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PipelineResources: The system resources for the pipeline run. type PipelineResources struct { - // AcceleratorCount: Optional. The number of accelerators of the - // specified type to attach. By specifying this parameter, you will - // download and install the following third-party software onto your - // managed Compute Engine instances: NVIDIA® Tesla® drivers and - // NVIDIA® CUDA toolkit. + // AcceleratorCount: Optional. The number of accelerators of the specified type + // to attach. By specifying this parameter, you will download and install the + // following third-party software onto your managed Compute Engine instances: + // NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit. AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"` - - // AcceleratorType: Optional. The Compute Engine defined accelerator - // type. By specifying this parameter, you will download and install the - // following third-party software onto your managed Compute Engine - // instances: NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit. Please - // see https://cloud.google.com/compute/docs/gpus/ for a list of - // available accelerator types. + // AcceleratorType: Optional. The Compute Engine defined accelerator type. By + // specifying this parameter, you will download and install the following + // third-party software onto your managed Compute Engine instances: NVIDIA® + // Tesla® drivers and NVIDIA® CUDA toolkit. Please see + // https://cloud.google.com/compute/docs/gpus/ for a list of available + // accelerator types. AcceleratorType string `json:"acceleratorType,omitempty"` - // BootDiskSizeGb: The size of the boot disk. Defaults to 10 (GB). BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` - // Disks: Disks to attach. Disks []*Disk `json:"disks,omitempty"` - // MinimumCpuCores: The minimum number of cores to use. Defaults to 1. MinimumCpuCores int64 `json:"minimumCpuCores,omitempty"` - // MinimumRamGb: The minimum amount of RAM to use. Defaults to 3.75 (GB) MinimumRamGb float64 `json:"minimumRamGb,omitempty"` - - // NoAddress: Whether to assign an external IP to the instance. This is - // an experimental feature that may go away. Defaults to false. - // Corresponds to `--no_address` flag for [gcloud compute instances - // create] - // (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create). - // In order to use this, must be true for both create time and run time. - // Cannot be true at run time if false at create time. If you need to - // ssh into a private IP VM for debugging, you can ssh to a public VM - // and then ssh into the private VM's Internal IP. If noAddress is set, - // this pipeline run may only load docker images from Google Container - // Registry and not Docker Hub. Before using this, you must configure - // access to Google services from internal IPs + // NoAddress: Whether to assign an external IP to the instance. This is an + // experimental feature that may go away. Defaults to false. Corresponds to + // `--no_address` flag for [gcloud compute instances create] + // (https://cloud.google.com/sdk/gcloud/reference/compute/instances/create). In + // order to use this, must be true for both create time and run time. Cannot be + // true at run time if false at create time. If you need to ssh into a private + // IP VM for debugging, you can ssh to a public VM and then ssh into the + // private VM's Internal IP. If noAddress is set, this pipeline run may only + // load docker images from Google Container Registry and not Docker Hub. Before + // using this, you must configure access to Google services from internal IPs // (https://cloud.google.com/compute/docs/configure-private-google-access#configuring_access_to_google_services_from_internal_ips). NoAddress bool `json:"noAddress,omitempty"` - - // Preemptible: Whether to use preemptible VMs. Defaults to `false`. In - // order to use this, must be true for both create time and run time. - // Cannot be true at run time if false at create time. + // Preemptible: Whether to use preemptible VMs. Defaults to `false`. In order + // to use this, must be true for both create time and run time. Cannot be true + // at run time if false at create time. Preemptible bool `json:"preemptible,omitempty"` - - // Zones: List of Google Compute Engine availability zones to which - // resource creation will restricted. If empty, any zone may be chosen. + // Zones: List of Google Compute Engine availability zones to which resource + // creation will restricted. If empty, any zone may be chosen. Zones []string `json:"zones,omitempty"` - // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AcceleratorCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AcceleratorCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PipelineResources) MarshalJSON() ([]byte, error) { +func (s PipelineResources) MarshalJSON() ([]byte, error) { type NoMethod PipelineResources - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PipelineResources) UnmarshalJSON(data []byte) error { @@ -1225,210 +1023,166 @@ func (s *PipelineResources) UnmarshalJSON(data []byte) error { return nil } -// PullStartedEvent: An event generated when the worker starts pulling -// an image. +// PullStartedEvent: An event generated when the worker starts pulling an +// image. type PullStartedEvent struct { // ImageUri: The URI of the image that was pulled. ImageUri string `json:"imageUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageUri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ImageUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PullStartedEvent) MarshalJSON() ([]byte, error) { +func (s PullStartedEvent) MarshalJSON() ([]byte, error) { type NoMethod PullStartedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PullStoppedEvent: An event generated when the worker stops pulling an -// image. +// PullStoppedEvent: An event generated when the worker stops pulling an image. type PullStoppedEvent struct { // ImageUri: The URI of the image that was pulled. ImageUri string `json:"imageUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageUri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ImageUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PullStoppedEvent) MarshalJSON() ([]byte, error) { +func (s PullStoppedEvent) MarshalJSON() ([]byte, error) { type NoMethod PullStoppedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type RepeatedString struct { Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RepeatedString) MarshalJSON() ([]byte, error) { +func (s RepeatedString) MarshalJSON() ([]byte, error) { type NoMethod RepeatedString - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RunPipelineArgs: The pipeline run arguments. type RunPipelineArgs struct { - // ClientId: This field is deprecated. Use `labels` instead. - // Client-specified pipeline operation identifier. + // ClientId: This field is deprecated. Use `labels` instead. Client-specified + // pipeline operation identifier. ClientId string `json:"clientId,omitempty"` - // Inputs: Pipeline input arguments; keys are defined in the pipeline - // documentation. All input parameters that do not have default values - // must be specified. If parameters with defaults are specified here, - // the defaults will be overridden. + // documentation. All input parameters that do not have default values must be + // specified. If parameters with defaults are specified here, the defaults will + // be overridden. Inputs map[string]string `json:"inputs,omitempty"` - - // KeepVmAliveOnFailureDuration: How long to keep the VM up after a - // failure (for example docker command failed, copying input or output - // files failed, etc). While the VM is up, one can ssh into the VM to - // debug. Default is 0; maximum allowed value is 1 day. + // KeepVmAliveOnFailureDuration: How long to keep the VM up after a failure + // (for example docker command failed, copying input or output files failed, + // etc). While the VM is up, one can ssh into the VM to debug. Default is 0; + // maximum allowed value is 1 day. KeepVmAliveOnFailureDuration string `json:"keepVmAliveOnFailureDuration,omitempty"` - - // Labels: Labels to apply to this pipeline run. Labels will also be - // applied to compute resources (VM, disks) created by this pipeline - // run. When listing operations, operations can filtered by labels. - // Label keys may not be empty; label values may be empty. Non-empty - // labels must be 1-63 characters long, and comply with [RFC1035] - // (https://www.ietf.org/rfc/rfc1035.txt). Specifically, the name must - // be 1-63 characters long and match the regular expression - // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be - // a lowercase letter, and all following characters must be a dash, - // lowercase letter, or digit, except the last character, which cannot - // be a dash. + // Labels: Labels to apply to this pipeline run. Labels will also be applied to + // compute resources (VM, disks) created by this pipeline run. When listing + // operations, operations can filtered by labels. Label keys may not be empty; + // label values may be empty. Non-empty labels must be 1-63 characters long, + // and comply with [RFC1035] (https://www.ietf.org/rfc/rfc1035.txt). + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must + // be a lowercase letter, and all following characters must be a dash, + // lowercase letter, or digit, except the last character, which cannot be a + // dash. Labels map[string]string `json:"labels,omitempty"` - - // Logging: Required. Logging options. Used by the service to - // communicate results to the user. + // Logging: Required. Logging options. Used by the service to communicate + // results to the user. Logging *LoggingOptions `json:"logging,omitempty"` - // Outputs: Pipeline output arguments; keys are defined in the pipeline - // documentation. All output parameters of without default values must - // be specified. If parameters with defaults are specified here, the - // defaults will be overridden. + // documentation. All output parameters of without default values must be + // specified. If parameters with defaults are specified here, the defaults will + // be overridden. Outputs map[string]string `json:"outputs,omitempty"` - - // ProjectId: Required. The project in which to run the pipeline. The - // caller must have WRITER access to all Google Cloud services and - // resources (e.g. Google Compute Engine) will be used. + // ProjectId: Required. The project in which to run the pipeline. The caller + // must have WRITER access to all Google Cloud services and resources (e.g. + // Google Compute Engine) will be used. ProjectId string `json:"projectId,omitempty"` - - // Resources: Specifies resource requirements/overrides for the pipeline - // run. + // Resources: Specifies resource requirements/overrides for the pipeline run. Resources *PipelineResources `json:"resources,omitempty"` - - // ServiceAccount: The Google Cloud Service Account that will be used to - // access data and services. By default, the compute service account - // associated with `projectId` is used. + // ServiceAccount: The Google Cloud Service Account that will be used to access + // data and services. By default, the compute service account associated with + // `projectId` is used. ServiceAccount *ServiceAccount `json:"serviceAccount,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunPipelineArgs) MarshalJSON() ([]byte, error) { +func (s RunPipelineArgs) MarshalJSON() ([]byte, error) { type NoMethod RunPipelineArgs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RunPipelineRequest: The request to run a pipeline. If `pipelineId` is -// specified, it refers to a saved pipeline created with CreatePipeline -// and set as the `pipelineId` of the returned Pipeline object. If -// `ephemeralPipeline` is specified, that pipeline is run once with the -// given args and not saved. It is an error to specify both `pipelineId` -// and `ephemeralPipeline`. `pipelineArgs` must be specified. +// specified, it refers to a saved pipeline created with CreatePipeline and set +// as the `pipelineId` of the returned Pipeline object. If `ephemeralPipeline` +// is specified, that pipeline is run once with the given args and not saved. +// It is an error to specify both `pipelineId` and `ephemeralPipeline`. +// `pipelineArgs` must be specified. type RunPipelineRequest struct { // EphemeralPipeline: A new pipeline object to run once and then delete. EphemeralPipeline *Pipeline `json:"ephemeralPipeline,omitempty"` - // PipelineArgs: The arguments to use when running this pipeline. PipelineArgs *RunPipelineArgs `json:"pipelineArgs,omitempty"` - // PipelineId: The already created pipeline to run. PipelineId string `json:"pipelineId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EphemeralPipeline") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EphemeralPipeline") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EphemeralPipeline") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EphemeralPipeline") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunPipelineRequest) MarshalJSON() ([]byte, error) { +func (s RunPipelineRequest) MarshalJSON() ([]byte, error) { type NoMethod RunPipelineRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RunPipelineResponse: The response to the RunPipeline method, returned -// in the operation's result field on success. +// RunPipelineResponse: The response to the RunPipeline method, returned in the +// operation's result field on success. type RunPipelineResponse struct { } @@ -1436,375 +1190,300 @@ type RunPipelineResponse struct { // runtimeMetadata field of the Operation associated with a RunPipeline // execution. type RuntimeMetadata struct { - // ComputeEngine: Execution information specific to Google Compute - // Engine. + // ComputeEngine: Execution information specific to Google Compute Engine. ComputeEngine *ComputeEngine `json:"computeEngine,omitempty"` - // ForceSendFields is a list of field names (e.g. "ComputeEngine") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ComputeEngine") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ComputeEngine") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RuntimeMetadata) MarshalJSON() ([]byte, error) { +func (s RuntimeMetadata) MarshalJSON() ([]byte, error) { type NoMethod RuntimeMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ServiceAccount: A Google Cloud Service Account. type ServiceAccount struct { - // Email: Email address of the service account. Defaults to `default`, - // which uses the compute service account associated with the project. + // Email: Email address of the service account. Defaults to `default`, which + // uses the compute service account associated with the project. Email string `json:"email,omitempty"` - - // Scopes: List of scopes to be enabled for this service account on the - // VM. The following scopes are automatically included: * + // Scopes: List of scopes to be enabled for this service account on the VM. The + // following scopes are automatically included: * // https://www.googleapis.com/auth/compute * // https://www.googleapis.com/auth/devstorage.full_control * // https://www.googleapis.com/auth/genomics * // https://www.googleapis.com/auth/logging.write * // https://www.googleapis.com/auth/monitoring.write Scopes []string `json:"scopes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ServiceAccount) MarshalJSON() ([]byte, error) { +func (s ServiceAccount) MarshalJSON() ([]byte, error) { type NoMethod ServiceAccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SetOperationStatusRequest: Request to set operation status. Should -// only be used by VMs created by the Pipelines Service and not by end -// users. +// SetOperationStatusRequest: Request to set operation status. Should only be +// used by VMs created by the Pipelines Service and not by end users. type SetOperationStatusRequest struct { // Possible values: // "OK" - Not an error; returned on success HTTP Mapping: 200 OK - // "CANCELLED" - The operation was cancelled, typically by the caller. - // HTTP Mapping: 499 Client Closed Request - // "UNKNOWN" - Unknown error. For example, this error may be returned - // when a `Status` value received from another address space belongs to - // an error space that is not known in this address space. Also errors - // raised by APIs that do not return enough error information may be - // converted to this error. HTTP Mapping: 500 Internal Server Error - // "INVALID_ARGUMENT" - The client specified an invalid argument. Note - // that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` - // indicates arguments that are problematic regardless of the state of - // the system (e.g., a malformed file name). HTTP Mapping: 400 Bad - // Request - // "DEADLINE_EXCEEDED" - The deadline expired before the operation - // could complete. For operations that change the state of the system, - // this error may be returned even if the operation has completed - // successfully. For example, a successful response from a server could - // have been delayed long enough for the deadline to expire. HTTP - // Mapping: 504 Gateway Timeout - // "NOT_FOUND" - Some requested entity (e.g., file or directory) was - // not found. Note to server developers: if a request is denied for an - // entire class of users, such as gradual feature rollout or - // undocumented allowlist, `NOT_FOUND` may be used. If a request is - // denied for some users within a class of users, such as user-based - // access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 - // Not Found - // "ALREADY_EXISTS" - The entity that a client attempted to create - // (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict - // "PERMISSION_DENIED" - The caller does not have permission to - // execute the specified operation. `PERMISSION_DENIED` must not be used - // for rejections caused by exhausting some resource (use - // `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` - // must not be used if the caller can not be identified (use - // `UNAUTHENTICATED` instead for those errors). This error code does not - // imply the request is valid or the requested entity exists or + // "CANCELLED" - The operation was cancelled, typically by the caller. HTTP + // Mapping: 499 Client Closed Request + // "UNKNOWN" - Unknown error. For example, this error may be returned when a + // `Status` value received from another address space belongs to an error space + // that is not known in this address space. Also errors raised by APIs that do + // not return enough error information may be converted to this error. HTTP + // Mapping: 500 Internal Server Error + // "INVALID_ARGUMENT" - The client specified an invalid argument. Note that + // this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates + // arguments that are problematic regardless of the state of the system (e.g., + // a malformed file name). HTTP Mapping: 400 Bad Request + // "DEADLINE_EXCEEDED" - The deadline expired before the operation could + // complete. For operations that change the state of the system, this error may + // be returned even if the operation has completed successfully. For example, a + // successful response from a server could have been delayed long enough for + // the deadline to expire. HTTP Mapping: 504 Gateway Timeout + // "NOT_FOUND" - Some requested entity (e.g., file or directory) was not + // found. Note to server developers: if a request is denied for an entire class + // of users, such as gradual feature rollout or undocumented allowlist, + // `NOT_FOUND` may be used. If a request is denied for some users within a + // class of users, such as user-based access control, `PERMISSION_DENIED` must + // be used. HTTP Mapping: 404 Not Found + // "ALREADY_EXISTS" - The entity that a client attempted to create (e.g., + // file or directory) already exists. HTTP Mapping: 409 Conflict + // "PERMISSION_DENIED" - The caller does not have permission to execute the + // specified operation. `PERMISSION_DENIED` must not be used for rejections + // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for + // those errors). `PERMISSION_DENIED` must not be used if the caller can not be + // identified (use `UNAUTHENTICATED` instead for those errors). This error code + // does not imply the request is valid or the requested entity exists or // satisfies other pre-conditions. HTTP Mapping: 403 Forbidden // "UNAUTHENTICATED" - The request does not have valid authentication // credentials for the operation. HTTP Mapping: 401 Unauthorized // "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a - // per-user quota, or perhaps the entire file system is out of space. - // HTTP Mapping: 429 Too Many Requests - // "FAILED_PRECONDITION" - The operation was rejected because the - // system is not in a state required for the operation's execution. For - // example, the directory to be deleted is non-empty, an rmdir operation - // is applied to a non-directory, etc. Service implementors can use the - // following guidelines to decide between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can - // retry just the failing call. (b) Use `ABORTED` if the client should - // retry at a higher level. For example, when a client-specified - // test-and-set fails, indicating the client should restart a - // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the - // client should not retry until the system state has been explicitly - // fixed. For example, if an "rmdir" fails because the directory is - // non-empty, `FAILED_PRECONDITION` should be returned since the client - // should not retry unless the files are deleted from the directory. - // HTTP Mapping: 400 Bad Request - // "ABORTED" - The operation was aborted, typically due to a - // concurrency issue such as a sequencer check failure or transaction - // abort. See the guidelines above for deciding between - // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: - // 409 Conflict - // "OUT_OF_RANGE" - The operation was attempted past the valid range. - // E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, - // this error indicates a problem that may be fixed if the system state - // changes. For example, a 32-bit file system will generate - // `INVALID_ARGUMENT` if asked to read at an offset that is not in the - // range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to - // read from an offset past the current file size. There is a fair bit - // of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We - // recommend using `OUT_OF_RANGE` (the more specific error) when it - // applies so that callers who are iterating through a space can easily - // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP - // Mapping: 400 Bad Request + // per-user quota, or perhaps the entire file system is out of space. HTTP + // Mapping: 429 Too Many Requests + // "FAILED_PRECONDITION" - The operation was rejected because the system is + // not in a state required for the operation's execution. For example, the + // directory to be deleted is non-empty, an rmdir operation is applied to a + // non-directory, etc. Service implementors can use the following guidelines to + // decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use + // `UNAVAILABLE` if the client can retry just the failing call. (b) Use + // `ABORTED` if the client should retry at a higher level. For example, when a + // client-specified test-and-set fails, indicating the client should restart a + // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the client + // should not retry until the system state has been explicitly fixed. For + // example, if an "rmdir" fails because the directory is non-empty, + // `FAILED_PRECONDITION` should be returned since the client should not retry + // unless the files are deleted from the directory. HTTP Mapping: 400 Bad + // Request + // "ABORTED" - The operation was aborted, typically due to a concurrency + // issue such as a sequencer check failure or transaction abort. See the + // guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and + // `UNAVAILABLE`. HTTP Mapping: 409 Conflict + // "OUT_OF_RANGE" - The operation was attempted past the valid range. E.g., + // seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error + // indicates a problem that may be fixed if the system state changes. For + // example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to + // read at an offset that is not in the range [0,2^32-1], but it will generate + // `OUT_OF_RANGE` if asked to read from an offset past the current file size. + // There is a fair bit of overlap between `FAILED_PRECONDITION` and + // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) + // when it applies so that callers who are iterating through a space can easily + // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: + // 400 Bad Request // "UNIMPLEMENTED" - The operation is not implemented or is not // supported/enabled in this service. HTTP Mapping: 501 Not Implemented - // "INTERNAL" - Internal errors. This means that some invariants - // expected by the underlying system have been broken. This error code - // is reserved for serious errors. HTTP Mapping: 500 Internal Server - // Error - // "UNAVAILABLE" - The service is currently unavailable. This is most - // likely a transient condition, which can be corrected by retrying with - // a backoff. Note that it is not always safe to retry non-idempotent - // operations. See the guidelines above for deciding between - // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: - // 503 Service Unavailable - // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: - // 500 Internal Server Error - ErrorCode string `json:"errorCode,omitempty"` - - ErrorMessage string `json:"errorMessage,omitempty"` - - OperationId string `json:"operationId,omitempty"` - + // "INTERNAL" - Internal errors. This means that some invariants expected by + // the underlying system have been broken. This error code is reserved for + // serious errors. HTTP Mapping: 500 Internal Server Error + // "UNAVAILABLE" - The service is currently unavailable. This is most likely + // a transient condition, which can be corrected by retrying with a backoff. + // Note that it is not always safe to retry non-idempotent operations. See the + // guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and + // `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable + // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: 500 + // Internal Server Error + ErrorCode string `json:"errorCode,omitempty"` + ErrorMessage string `json:"errorMessage,omitempty"` + OperationId string `json:"operationId,omitempty"` TimestampEvents []*TimestampEvent `json:"timestampEvents,omitempty"` - - ValidationToken uint64 `json:"validationToken,omitempty,string"` - + ValidationToken uint64 `json:"validationToken,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ErrorCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ErrorCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ErrorCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetOperationStatusRequest) MarshalJSON() ([]byte, error) { +func (s SetOperationStatusRequest) MarshalJSON() ([]byte, error) { type NoMethod SetOperationStatusRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TimestampEvent: Stores the list of events and times they occured for -// major events in job execution. +// TimestampEvent: Stores the list of events and times they occured for major +// events in job execution. type TimestampEvent struct { // Description: String indicating the type of event Description string `json:"description,omitempty"` - // Timestamp: The time this event occured. Timestamp string `json:"timestamp,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimestampEvent) MarshalJSON() ([]byte, error) { +func (s TimestampEvent) MarshalJSON() ([]byte, error) { type NoMethod TimestampEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UnexpectedExitStatusEvent: An event generated when the execution of a -// container results in a non-zero exit status that was not otherwise -// ignored. Execution will continue, but only actions that are flagged -// as `ALWAYS_RUN` will be executed. Other actions will be skipped. +// container results in a non-zero exit status that was not otherwise ignored. +// Execution will continue, but only actions that are flagged as `ALWAYS_RUN` +// will be executed. Other actions will be skipped. type UnexpectedExitStatusEvent struct { // ActionId: The numeric ID of the action that started the container. ActionId int64 `json:"actionId,omitempty"` - // ExitStatus: The exit status of the container. ExitStatus int64 `json:"exitStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnexpectedExitStatusEvent) MarshalJSON() ([]byte, error) { +func (s UnexpectedExitStatusEvent) MarshalJSON() ([]byte, error) { type NoMethod UnexpectedExitStatusEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkerAssignedEvent: An event generated after a worker VM has been -// assigned to run the pipeline. +// WorkerAssignedEvent: An event generated after a worker VM has been assigned +// to run the pipeline. type WorkerAssignedEvent struct { // Instance: The worker's instance name. Instance string `json:"instance,omitempty"` - // MachineType: The machine type that was assigned for the worker. MachineType string `json:"machineType,omitempty"` - // Zone: The zone the worker is running in. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerAssignedEvent) MarshalJSON() ([]byte, error) { +func (s WorkerAssignedEvent) MarshalJSON() ([]byte, error) { type NoMethod WorkerAssignedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkerReleasedEvent: An event generated when the worker VM that was -// assigned to the pipeline has been released (deleted). +// WorkerReleasedEvent: An event generated when the worker VM that was assigned +// to the pipeline has been released (deleted). type WorkerReleasedEvent struct { // Instance: The worker's instance name. Instance string `json:"instance,omitempty"` - // Zone: The zone the worker was running in. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerReleasedEvent) MarshalJSON() ([]byte, error) { +func (s WorkerReleasedEvent) MarshalJSON() ([]byte, error) { type NoMethod WorkerReleasedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "genomics.operations.cancel": - type OperationsCancelCall struct { s *Service name string @@ -1814,13 +1493,13 @@ type OperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. Clients may use Operations.GetOperation or -// Operations.ListOperations to check whether the cancellation succeeded -// or the operation completed despite cancellation. Authorization -// requires the following Google IAM (https://cloud.google.com/iam) -// permission: * `genomics.operations.cancel` +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. Clients may use Operations.GetOperation or +// Operations.ListOperations to check whether the cancellation succeeded or the +// operation completed despite cancellation. Authorization requires the +// following Google IAM (https://cloud.google.com/iam) permission: * +// `genomics.operations.cancel` // // - name: The name of the operation resource to be cancelled. func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OperationsCancelCall { @@ -1831,23 +1510,21 @@ func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1856,18 +1533,12 @@ func (c *OperationsCancelCall) Header() http.Header { } func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210511") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:cancel") @@ -1880,16 +1551,14 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1897,17 +1566,17 @@ func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1920,39 +1589,7 @@ func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients may use Operations.GetOperation or Operations.ListOperations to check whether the cancellation succeeded or the operation completed despite cancellation. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission: * `genomics.operations.cancel`", - // "flatPath": "v1alpha2/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "genomics.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.operations.get": +} type OperationsGetCall struct { s *Service @@ -1963,11 +1600,10 @@ type OperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. Authorization requires the following -// Google IAM (https://cloud.google.com/iam) permission: * -// `genomics.operations.get` +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. Authorization requires the following Google IAM +// (https://cloud.google.com/iam) permission: * `genomics.operations.get` // // - name: The name of the operation resource. func (r *OperationsService) Get(name string) *OperationsGetCall { @@ -1977,33 +1613,29 @@ func (r *OperationsService) Get(name string) *OperationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2012,12 +1644,7 @@ func (c *OperationsGetCall) Header() http.Header { } func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210511") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2034,16 +1661,14 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2051,17 +1676,17 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2074,36 +1699,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission: * `genomics.operations.get`", - // "flatPath": "v1alpha2/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "genomics.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.operations.list": +} type OperationsListCall struct { s *Service @@ -2114,10 +1710,9 @@ type OperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. Authorization requires the following Google IAM -// (https://cloud.google.com/iam) permission: * -// `genomics.operations.list` +// List: Lists operations that match the specified filter in the request. +// Authorization requires the following Google IAM +// (https://cloud.google.com/iam) permission: * `genomics.operations.list` // // - name: The name of the operation's parent resource. func (r *OperationsService) List(name string) *OperationsListCall { @@ -2128,72 +1723,65 @@ func (r *OperationsService) List(name string) *OperationsListCall { // Filter sets the optional parameter "filter": A string for filtering // Operations. In v2alpha1, the following filter fields are supported: * -// createTime: The time this job was created * events: The set of event -// (names) that have occurred while running the pipeline. The : operator -// can be used to determine if a particular event has occurred. * error: -// If the pipeline is running, this value is NULL. Once the pipeline -// finishes, the value is the standard Google error code. * labels.key -// or labels."key with space" where key is a label key. * done: If the -// pipeline is running, this value is false. Once the pipeline finishes, -// the value is true. In v1 and v1alpha2, the following filter fields -// are supported: * projectId: Required. Corresponds to -// OperationMetadata.projectId. * createTime: The time this job was -// created, in seconds from the epoch -// (http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` -// operators. * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or -// `CANCELED`. Only one status may be specified. * labels.key where key -// is a label key. Examples: * `projectId = my-project AND createTime >= -// 1432140000` * `projectId = my-project AND createTime >= 1432140000 -// AND createTime <= 1432150000 AND status = RUNNING` * `projectId = -// my-project AND labels.color = *` * `projectId = my-project AND -// labels.color = red` +// createTime: The time this job was created * events: The set of event (names) +// that have occurred while running the pipeline. The : operator can be used to +// determine if a particular event has occurred. * error: If the pipeline is +// running, this value is NULL. Once the pipeline finishes, the value is the +// standard Google error code. * labels.key or labels."key with space" where +// key is a label key. * done: If the pipeline is running, this value is false. +// Once the pipeline finishes, the value is true. In v1 and v1alpha2, the +// following filter fields are supported: * projectId: Required. Corresponds to +// OperationMetadata.projectId. * createTime: The time this job was created, in +// seconds from the epoch (http://en.wikipedia.org/wiki/Unix_time). Can use +// `>=` and/or `<=` operators. * status: Can be `RUNNING`, `SUCCESS`, +// `FAILURE`, or `CANCELED`. Only one status may be specified. * labels.key +// where key is a label key. Examples: * `projectId = my-project AND createTime +// >= 1432140000` * `projectId = my-project AND createTime >= 1432140000 AND +// createTime <= 1432150000 AND status = RUNNING` * `projectId = my-project AND +// labels.color = *` * `projectId = my-project AND labels.color = red` func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. The maximum value is 256. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. The maximum value is 256. func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2202,12 +1790,7 @@ func (c *OperationsListCall) Header() http.Header { } func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210511") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2224,16 +1807,15 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2241,17 +1823,17 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2264,49 +1846,6 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission: * `genomics.operations.list`", - // "flatPath": "v1alpha2/operations", - // "httpMethod": "GET", - // "id": "genomics.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "A string for filtering Operations. In v2alpha1, the following filter fields are supported: * createTime: The time this job was created * events: The set of event (names) that have occurred while running the pipeline. The : operator can be used to determine if a particular event has occurred. * error: If the pipeline is running, this value is NULL. Once the pipeline finishes, the value is the standard Google error code. * labels.key or labels.\"key with space\" where key is a label key. * done: If the pipeline is running, this value is false. Once the pipeline finishes, the value is true. In v1 and v1alpha2, the following filter fields are supported: * projectId: Required. Corresponds to OperationMetadata.projectId. * createTime: The time this job was created, in seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `\u003e=` and/or `\u003c=` operators. * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only one status may be specified. * labels.key where key is a label key. Examples: * `projectId = my-project AND createTime \u003e= 1432140000` * `projectId = my-project AND createTime \u003e= 1432140000 AND createTime \u003c= 1432150000 AND status = RUNNING` * `projectId = my-project AND labels.color = *` * `projectId = my-project AND labels.color = red`", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. The maximum value is 256.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - } // Pages invokes f for each page of results. @@ -2314,7 +1853,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // The provided context supersedes any context provided to the Context method. func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2330,8 +1869,6 @@ func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsRe } } -// method id "genomics.pipelines.create": - type PipelinesCreateCall struct { s *Service pipeline *Pipeline @@ -2340,11 +1877,10 @@ type PipelinesCreateCall struct { header_ http.Header } -// Create: Creates a pipeline that can be run later. Create takes a -// Pipeline that has all fields other than `pipelineId` populated, and -// then returns the same pipeline with `pipelineId` populated. This id -// can be used to run the pipeline. Caller must have WRITE permission to -// the project. +// Create: Creates a pipeline that can be run later. Create takes a Pipeline +// that has all fields other than `pipelineId` populated, and then returns the +// same pipeline with `pipelineId` populated. This id can be used to run the +// pipeline. Caller must have WRITE permission to the project. func (r *PipelinesService) Create(pipeline *Pipeline) *PipelinesCreateCall { c := &PipelinesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.pipeline = pipeline @@ -2352,23 +1888,21 @@ func (r *PipelinesService) Create(pipeline *Pipeline) *PipelinesCreateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PipelinesCreateCall) Fields(s ...googleapi.Field) *PipelinesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PipelinesCreateCall) Context(ctx context.Context) *PipelinesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PipelinesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2377,18 +1911,12 @@ func (c *PipelinesCreateCall) Header() http.Header { } func (c *PipelinesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210511") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pipeline) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/pipelines") @@ -2398,16 +1926,14 @@ func (c *PipelinesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.pipelines.create" call. -// Exactly one of *Pipeline or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Pipeline.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Pipeline.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PipelinesCreateCall) Do(opts ...googleapi.CallOption) (*Pipeline, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2415,17 +1941,17 @@ func (c *PipelinesCreateCall) Do(opts ...googleapi.CallOption) (*Pipeline, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Pipeline{ ServerResponse: googleapi.ServerResponse{ @@ -2438,29 +1964,7 @@ func (c *PipelinesCreateCall) Do(opts ...googleapi.CallOption) (*Pipeline, error return nil, err } return ret, nil - // { - // "description": "Creates a pipeline that can be run later. Create takes a Pipeline that has all fields other than `pipelineId` populated, and then returns the same pipeline with `pipelineId` populated. This id can be used to run the pipeline. Caller must have WRITE permission to the project.", - // "flatPath": "v1alpha2/pipelines", - // "httpMethod": "POST", - // "id": "genomics.pipelines.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha2/pipelines", - // "request": { - // "$ref": "Pipeline" - // }, - // "response": { - // "$ref": "Pipeline" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.pipelines.delete": +} type PipelinesDeleteCall struct { s *Service @@ -2470,11 +1974,11 @@ type PipelinesDeleteCall struct { header_ http.Header } -// Delete: Deletes a pipeline based on ID. Caller must have WRITE -// permission to the project. +// Delete: Deletes a pipeline based on ID. Caller must have WRITE permission to +// the project. // -// - pipelineId: Caller must have WRITE access to the project in which -// this pipeline is defined. +// - pipelineId: Caller must have WRITE access to the project in which this +// pipeline is defined. func (r *PipelinesService) Delete(pipelineId string) *PipelinesDeleteCall { c := &PipelinesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.pipelineId = pipelineId @@ -2482,23 +1986,21 @@ func (r *PipelinesService) Delete(pipelineId string) *PipelinesDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PipelinesDeleteCall) Fields(s ...googleapi.Field) *PipelinesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PipelinesDeleteCall) Context(ctx context.Context) *PipelinesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PipelinesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2507,12 +2009,7 @@ func (c *PipelinesDeleteCall) Header() http.Header { } func (c *PipelinesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210511") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2526,16 +2023,14 @@ func (c *PipelinesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "pipelineId": c.pipelineId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.pipelines.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PipelinesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2543,17 +2038,17 @@ func (c *PipelinesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2566,35 +2061,7 @@ func (c *PipelinesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { return nil, err } return ret, nil - // { - // "description": "Deletes a pipeline based on ID. Caller must have WRITE permission to the project.", - // "flatPath": "v1alpha2/pipelines/{pipelineId}", - // "httpMethod": "DELETE", - // "id": "genomics.pipelines.delete", - // "parameterOrder": [ - // "pipelineId" - // ], - // "parameters": { - // "pipelineId": { - // "description": "Caller must have WRITE access to the project in which this pipeline is defined.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/pipelines/{pipelineId}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.pipelines.get": +} type PipelinesGetCall struct { s *Service @@ -2605,11 +2072,11 @@ type PipelinesGetCall struct { header_ http.Header } -// Get: Retrieves a pipeline based on ID. Caller must have READ -// permission to the project. +// Get: Retrieves a pipeline based on ID. Caller must have READ permission to +// the project. // -// - pipelineId: Caller must have READ access to the project in which -// this pipeline is defined. +// - pipelineId: Caller must have READ access to the project in which this +// pipeline is defined. func (r *PipelinesService) Get(pipelineId string) *PipelinesGetCall { c := &PipelinesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.pipelineId = pipelineId @@ -2617,33 +2084,29 @@ func (r *PipelinesService) Get(pipelineId string) *PipelinesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PipelinesGetCall) Fields(s ...googleapi.Field) *PipelinesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PipelinesGetCall) IfNoneMatch(entityTag string) *PipelinesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PipelinesGetCall) Context(ctx context.Context) *PipelinesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PipelinesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2652,12 +2115,7 @@ func (c *PipelinesGetCall) Header() http.Header { } func (c *PipelinesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210511") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2674,16 +2132,14 @@ func (c *PipelinesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "pipelineId": c.pipelineId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.pipelines.get" call. -// Exactly one of *Pipeline or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Pipeline.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Pipeline.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PipelinesGetCall) Do(opts ...googleapi.CallOption) (*Pipeline, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2691,17 +2147,17 @@ func (c *PipelinesGetCall) Do(opts ...googleapi.CallOption) (*Pipeline, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Pipeline{ ServerResponse: googleapi.ServerResponse{ @@ -2714,35 +2170,7 @@ func (c *PipelinesGetCall) Do(opts ...googleapi.CallOption) (*Pipeline, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a pipeline based on ID. Caller must have READ permission to the project.", - // "flatPath": "v1alpha2/pipelines/{pipelineId}", - // "httpMethod": "GET", - // "id": "genomics.pipelines.get", - // "parameterOrder": [ - // "pipelineId" - // ], - // "parameters": { - // "pipelineId": { - // "description": "Caller must have READ access to the project in which this pipeline is defined.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/pipelines/{pipelineId}", - // "response": { - // "$ref": "Pipeline" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.pipelines.getControllerConfig": +} type PipelinesGetControllerConfigCall struct { s *Service @@ -2752,16 +2180,15 @@ type PipelinesGetControllerConfigCall struct { header_ http.Header } -// GetControllerConfig: Gets controller configuration information. -// Should only be called by VMs created by the Pipelines Service and not -// by end users. +// GetControllerConfig: Gets controller configuration information. Should only +// be called by VMs created by the Pipelines Service and not by end users. func (r *PipelinesService) GetControllerConfig() *PipelinesGetControllerConfigCall { c := &PipelinesGetControllerConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// OperationId sets the optional parameter "operationId": The operation -// to retrieve controller configuration for. +// OperationId sets the optional parameter "operationId": The operation to +// retrieve controller configuration for. func (c *PipelinesGetControllerConfigCall) OperationId(operationId string) *PipelinesGetControllerConfigCall { c.urlParams_.Set("operationId", operationId) return c @@ -2774,33 +2201,29 @@ func (c *PipelinesGetControllerConfigCall) ValidationToken(validationToken uint6 } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PipelinesGetControllerConfigCall) Fields(s ...googleapi.Field) *PipelinesGetControllerConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PipelinesGetControllerConfigCall) IfNoneMatch(entityTag string) *PipelinesGetControllerConfigCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PipelinesGetControllerConfigCall) Context(ctx context.Context) *PipelinesGetControllerConfigCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PipelinesGetControllerConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2809,12 +2232,7 @@ func (c *PipelinesGetControllerConfigCall) Header() http.Header { } func (c *PipelinesGetControllerConfigCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210511") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2828,16 +2246,15 @@ func (c *PipelinesGetControllerConfigCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.pipelines.getControllerConfig" call. -// Exactly one of *ControllerConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ControllerConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ControllerConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PipelinesGetControllerConfigCall) Do(opts ...googleapi.CallOption) (*ControllerConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2845,17 +2262,17 @@ func (c *PipelinesGetControllerConfigCall) Do(opts ...googleapi.CallOption) (*Co if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ControllerConfig{ ServerResponse: googleapi.ServerResponse{ @@ -2868,37 +2285,7 @@ func (c *PipelinesGetControllerConfigCall) Do(opts ...googleapi.CallOption) (*Co return nil, err } return ret, nil - // { - // "description": "Gets controller configuration information. Should only be called by VMs created by the Pipelines Service and not by end users.", - // "flatPath": "v1alpha2/pipelines:getControllerConfig", - // "httpMethod": "GET", - // "id": "genomics.pipelines.getControllerConfig", - // "parameterOrder": [], - // "parameters": { - // "operationId": { - // "description": "The operation to retrieve controller configuration for.", - // "location": "query", - // "type": "string" - // }, - // "validationToken": { - // "format": "uint64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/pipelines:getControllerConfig", - // "response": { - // "$ref": "ControllerConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.pipelines.list": +} type PipelinesListCall struct { s *Service @@ -2908,72 +2295,67 @@ type PipelinesListCall struct { header_ http.Header } -// List: Lists pipelines. Caller must have READ permission to the -// project. +// List: Lists pipelines. Caller must have READ permission to the project. func (r *PipelinesService) List() *PipelinesListCall { c := &PipelinesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// NamePrefix sets the optional parameter "namePrefix": Pipelines with -// names that match this prefix should be returned. If unspecified, all -// pipelines in the project, up to `pageSize`, will be returned. +// NamePrefix sets the optional parameter "namePrefix": Pipelines with names +// that match this prefix should be returned. If unspecified, all pipelines in +// the project, up to `pageSize`, will be returned. func (c *PipelinesListCall) NamePrefix(namePrefix string) *PipelinesListCall { c.urlParams_.Set("namePrefix", namePrefix) return c } -// PageSize sets the optional parameter "pageSize": Number of pipelines -// to return at once. Defaults to 256, and max is 2048. +// PageSize sets the optional parameter "pageSize": Number of pipelines to +// return at once. Defaults to 256, and max is 2048. func (c *PipelinesListCall) PageSize(pageSize int64) *PipelinesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token to use to -// indicate where to start getting results. If unspecified, returns the -// first page of results. +// PageToken sets the optional parameter "pageToken": Token to use to indicate +// where to start getting results. If unspecified, returns the first page of +// results. func (c *PipelinesListCall) PageToken(pageToken string) *PipelinesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ProjectId sets the optional parameter "projectId": Required. The name -// of the project to search for pipelines. Caller must have READ access -// to this project. +// ProjectId sets the optional parameter "projectId": Required. The name of the +// project to search for pipelines. Caller must have READ access to this +// project. func (c *PipelinesListCall) ProjectId(projectId string) *PipelinesListCall { c.urlParams_.Set("projectId", projectId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PipelinesListCall) Fields(s ...googleapi.Field) *PipelinesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PipelinesListCall) IfNoneMatch(entityTag string) *PipelinesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PipelinesListCall) Context(ctx context.Context) *PipelinesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PipelinesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2982,12 +2364,7 @@ func (c *PipelinesListCall) Header() http.Header { } func (c *PipelinesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210511") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3001,16 +2378,15 @@ func (c *PipelinesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.pipelines.list" call. -// Exactly one of *ListPipelinesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListPipelinesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListPipelinesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PipelinesListCall) Do(opts ...googleapi.CallOption) (*ListPipelinesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3018,17 +2394,17 @@ func (c *PipelinesListCall) Do(opts ...googleapi.CallOption) (*ListPipelinesResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListPipelinesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3041,45 +2417,6 @@ func (c *PipelinesListCall) Do(opts ...googleapi.CallOption) (*ListPipelinesResp return nil, err } return ret, nil - // { - // "description": "Lists pipelines. Caller must have READ permission to the project.", - // "flatPath": "v1alpha2/pipelines", - // "httpMethod": "GET", - // "id": "genomics.pipelines.list", - // "parameterOrder": [], - // "parameters": { - // "namePrefix": { - // "description": "Pipelines with names that match this prefix should be returned. If unspecified, all pipelines in the project, up to `pageSize`, will be returned.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Number of pipelines to return at once. Defaults to 256, and max is 2048.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token to use to indicate where to start getting results. If unspecified, returns the first page of results.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "Required. The name of the project to search for pipelines. Caller must have READ access to this project.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/pipelines", - // "response": { - // "$ref": "ListPipelinesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - } // Pages invokes f for each page of results. @@ -3087,7 +2424,7 @@ func (c *PipelinesListCall) Do(opts ...googleapi.CallOption) (*ListPipelinesResp // The provided context supersedes any context provided to the Context method. func (c *PipelinesListCall) Pages(ctx context.Context, f func(*ListPipelinesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3103,8 +2440,6 @@ func (c *PipelinesListCall) Pages(ctx context.Context, f func(*ListPipelinesResp } } -// method id "genomics.pipelines.run": - type PipelinesRunCall struct { s *Service runpipelinerequest *RunPipelineRequest @@ -3113,13 +2448,13 @@ type PipelinesRunCall struct { header_ http.Header } -// Run: Runs a pipeline. If `pipelineId` is specified in the request, -// then run a saved pipeline. If `ephemeralPipeline` is specified, then -// run that pipeline once without saving a copy. The caller must have -// READ permission to the project where the pipeline is stored and WRITE -// permission to the project where the pipeline will be run, as VMs will -// be created and storage will be used. If a pipeline operation is still -// running after 6 days, it will be canceled. +// Run: Runs a pipeline. If `pipelineId` is specified in the request, then run +// a saved pipeline. If `ephemeralPipeline` is specified, then run that +// pipeline once without saving a copy. The caller must have READ permission to +// the project where the pipeline is stored and WRITE permission to the project +// where the pipeline will be run, as VMs will be created and storage will be +// used. If a pipeline operation is still running after 6 days, it will be +// canceled. func (r *PipelinesService) Run(runpipelinerequest *RunPipelineRequest) *PipelinesRunCall { c := &PipelinesRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.runpipelinerequest = runpipelinerequest @@ -3127,23 +2462,21 @@ func (r *PipelinesService) Run(runpipelinerequest *RunPipelineRequest) *Pipeline } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PipelinesRunCall) Fields(s ...googleapi.Field) *PipelinesRunCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PipelinesRunCall) Context(ctx context.Context) *PipelinesRunCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PipelinesRunCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3152,18 +2485,12 @@ func (c *PipelinesRunCall) Header() http.Header { } func (c *PipelinesRunCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210511") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.runpipelinerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/pipelines:run") @@ -3173,16 +2500,14 @@ func (c *PipelinesRunCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.pipelines.run" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PipelinesRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3190,17 +2515,17 @@ func (c *PipelinesRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3213,30 +2538,7 @@ func (c *PipelinesRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) return nil, err } return ret, nil - // { - // "description": "Runs a pipeline. If `pipelineId` is specified in the request, then run a saved pipeline. If `ephemeralPipeline` is specified, then run that pipeline once without saving a copy. The caller must have READ permission to the project where the pipeline is stored and WRITE permission to the project where the pipeline will be run, as VMs will be created and storage will be used. If a pipeline operation is still running after 6 days, it will be canceled.", - // "flatPath": "v1alpha2/pipelines:run", - // "httpMethod": "POST", - // "id": "genomics.pipelines.run", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha2/pipelines:run", - // "request": { - // "$ref": "RunPipelineRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.pipelines.setOperationStatus": +} type PipelinesSetOperationStatusCall struct { s *Service @@ -3246,10 +2548,9 @@ type PipelinesSetOperationStatusCall struct { header_ http.Header } -// SetOperationStatus: Sets status of a given operation. Any new -// timestamps (as determined by description) are appended to -// TimestampEvents. Should only be called by VMs created by the -// Pipelines Service and not by end users. +// SetOperationStatus: Sets status of a given operation. Any new timestamps (as +// determined by description) are appended to TimestampEvents. Should only be +// called by VMs created by the Pipelines Service and not by end users. func (r *PipelinesService) SetOperationStatus(setoperationstatusrequest *SetOperationStatusRequest) *PipelinesSetOperationStatusCall { c := &PipelinesSetOperationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.setoperationstatusrequest = setoperationstatusrequest @@ -3257,23 +2558,21 @@ func (r *PipelinesService) SetOperationStatus(setoperationstatusrequest *SetOper } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PipelinesSetOperationStatusCall) Fields(s ...googleapi.Field) *PipelinesSetOperationStatusCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PipelinesSetOperationStatusCall) Context(ctx context.Context) *PipelinesSetOperationStatusCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PipelinesSetOperationStatusCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3282,18 +2581,12 @@ func (c *PipelinesSetOperationStatusCall) Header() http.Header { } func (c *PipelinesSetOperationStatusCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210511") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setoperationstatusrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/pipelines:setOperationStatus") @@ -3303,16 +2596,14 @@ func (c *PipelinesSetOperationStatusCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.pipelines.setOperationStatus" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PipelinesSetOperationStatusCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3320,17 +2611,17 @@ func (c *PipelinesSetOperationStatusCall) Do(opts ...googleapi.CallOption) (*Emp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -3343,24 +2634,4 @@ func (c *PipelinesSetOperationStatusCall) Do(opts ...googleapi.CallOption) (*Emp return nil, err } return ret, nil - // { - // "description": "Sets status of a given operation. Any new timestamps (as determined by description) are appended to TimestampEvents. Should only be called by VMs created by the Pipelines Service and not by end users.", - // "flatPath": "v1alpha2/pipelines:setOperationStatus", - // "httpMethod": "PUT", - // "id": "genomics.pipelines.setOperationStatus", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha2/pipelines:setOperationStatus", - // "request": { - // "$ref": "SetOperationStatusRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - } diff --git a/genomics/v2alpha1/genomics-gen.go b/genomics/v2alpha1/genomics-gen.go index 01dc0eddb35..1ea6861d98f 100644 --- a/genomics/v2alpha1/genomics-gen.go +++ b/genomics/v2alpha1/genomics-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/genomics // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // genomicsService, err := genomics.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // genomicsService, err := genomics.NewService(ctx, option.WithScopes(genomics.GenomicsScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // genomicsService, err := genomics.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // genomicsService, err := genomics.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package genomics // import "google.golang.org/api/genomics/v2alpha1" import ( @@ -81,12 +95,13 @@ const apiId = "genomics:v2alpha1" const apiName = "genomics" const apiVersion = "v2alpha1" const basePath = "https://genomics.googleapis.com/" +const basePathTemplate = "https://genomics.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://genomics.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // View and manage Genomics data @@ -102,7 +117,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -203,857 +220,685 @@ type WorkersService struct { s *Service } -// Accelerator: Carries information about an accelerator that can be -// attached to a VM. +// Accelerator: Carries information about an accelerator that can be attached +// to a VM. type Accelerator struct { // Count: How many accelerators of this type to attach. Count int64 `json:"count,omitempty,string"` - - // Type: The accelerator type string (for example, "nvidia-tesla-k80"). - // Only NVIDIA GPU accelerators are currently supported. If an NVIDIA - // GPU is attached, the required runtime libraries will be made - // available to all containers under `/usr/local/nvidia`. The driver - // version to install must be specified using the NVIDIA driver version - // parameter on the virtual machine specification. Note that attaching a - // GPU increases the worker VM startup time by a few minutes. + // Type: The accelerator type string (for example, "nvidia-tesla-k80"). Only + // NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is + // attached, the required runtime libraries will be made available to all + // containers under `/usr/local/nvidia`. The driver version to install must be + // specified using the NVIDIA driver version parameter on the virtual machine + // specification. Note that attaching a GPU increases the worker VM startup + // time by a few minutes. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Count") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Count") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Count") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Accelerator) MarshalJSON() ([]byte, error) { +func (s Accelerator) MarshalJSON() ([]byte, error) { type NoMethod Accelerator - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Action: Specifies a single action that runs a Docker container. type Action struct { - // Commands: If specified, overrides the `CMD` specified in the - // container. If the container also has an `ENTRYPOINT` the values are - // used as entrypoint arguments. Otherwise, they are used as a command - // and arguments to run inside the container. + // Commands: If specified, overrides the `CMD` specified in the container. If + // the container also has an `ENTRYPOINT` the values are used as entrypoint + // arguments. Otherwise, they are used as a command and arguments to run inside + // the container. Commands []string `json:"commands,omitempty"` - - // Credentials: If the specified image is hosted on a private registry - // other than Google Container Registry, the credentials required to - // pull the image must be specified here as an encrypted secret. The - // secret must decrypt to a JSON-encoded dictionary containing both - // `username` and `password` keys. + // Credentials: If the specified image is hosted on a private registry other + // than Google Container Registry, the credentials required to pull the image + // must be specified here as an encrypted secret. The secret must decrypt to a + // JSON-encoded dictionary containing both `username` and `password` keys. Credentials *Secret `json:"credentials,omitempty"` - - // EncryptedEnvironment: The encrypted environment to pass into the - // container. This environment is merged with values specified in the - // google.genomics.v2alpha1.Pipeline message, overwriting any duplicate - // values. The secret must decrypt to a JSON-encoded dictionary where - // key-value pairs serve as environment variable names and their values. - // The decoded environment variables can overwrite the values specified - // by the `environment` field. + // EncryptedEnvironment: The encrypted environment to pass into the container. + // This environment is merged with values specified in the + // google.genomics.v2alpha1.Pipeline message, overwriting any duplicate values. + // The secret must decrypt to a JSON-encoded dictionary where key-value pairs + // serve as environment variable names and their values. The decoded + // environment variables can overwrite the values specified by the + // `environment` field. EncryptedEnvironment *Secret `json:"encryptedEnvironment,omitempty"` - // Entrypoint: If specified, overrides the `ENTRYPOINT` specified in the // container. Entrypoint string `json:"entrypoint,omitempty"` - - // Environment: The environment to pass into the container. This - // environment is merged with values specified in the - // google.genomics.v2alpha1.Pipeline message, overwriting any duplicate - // values. In addition to the values passed here, a few other values are - // automatically injected into the environment. These cannot be hidden - // or overwritten. `GOOGLE_PIPELINE_FAILED` will be set to "1" if the - // pipeline failed because an action has exited with a non-zero status - // (and did not have the `IGNORE_EXIT_STATUS` flag set). This can be - // used to determine if additional debug or logging actions should - // execute. `GOOGLE_LAST_EXIT_STATUS` will be set to the exit status of - // the last non-background action that executed. This can be used by - // workflow engine authors to determine whether an individual action has - // succeeded or failed. + // Environment: The environment to pass into the container. This environment is + // merged with values specified in the google.genomics.v2alpha1.Pipeline + // message, overwriting any duplicate values. In addition to the values passed + // here, a few other values are automatically injected into the environment. + // These cannot be hidden or overwritten. `GOOGLE_PIPELINE_FAILED` will be set + // to "1" if the pipeline failed because an action has exited with a non-zero + // status (and did not have the `IGNORE_EXIT_STATUS` flag set). This can be + // used to determine if additional debug or logging actions should execute. + // `GOOGLE_LAST_EXIT_STATUS` will be set to the exit status of the last + // non-background action that executed. This can be used by workflow engine + // authors to determine whether an individual action has succeeded or failed. Environment map[string]string `json:"environment,omitempty"` - // Flags: The set of flags to apply to this action. // // Possible values: // "FLAG_UNSPECIFIED" - Unspecified flag. // "IGNORE_EXIT_STATUS" - Normally, a non-zero exit status causes the - // pipeline to fail. This flag allows execution of other actions to - // continue instead. - // "RUN_IN_BACKGROUND" - This flag allows an action to continue - // running in the background while executing subsequent actions. This is - // useful to provide services to other actions (or to provide debugging - // support tools like SSH servers). - // "ALWAYS_RUN" - By default, after an action fails, no further - // actions are run. This flag indicates that this action must be run - // even if the pipeline has already failed. This is useful for actions - // that copy output files off of the VM or for debugging. Note that no - // actions will be run if image prefetching fails. + // pipeline to fail. This flag allows execution of other actions to continue + // instead. + // "RUN_IN_BACKGROUND" - This flag allows an action to continue running in + // the background while executing subsequent actions. This is useful to provide + // services to other actions (or to provide debugging support tools like SSH + // servers). + // "ALWAYS_RUN" - By default, after an action fails, no further actions are + // run. This flag indicates that this action must be run even if the pipeline + // has already failed. This is useful for actions that copy output files off of + // the VM or for debugging. Note that no actions will be run if image + // prefetching fails. // "ENABLE_FUSE" - Enable access to the FUSE device for this action. - // Filesystems can then be mounted into disks shared with other actions. - // The other actions do not need the `ENABLE_FUSE` flag to access the - // mounted filesystem. This has the effect of causing the container to - // be executed with `CAP_SYS_ADMIN` and exposes `/dev/fuse` to the - // container, so use it only for containers you trust. + // Filesystems can then be mounted into disks shared with other actions. The + // other actions do not need the `ENABLE_FUSE` flag to access the mounted + // filesystem. This has the effect of causing the container to be executed with + // `CAP_SYS_ADMIN` and exposes `/dev/fuse` to the container, so use it only for + // containers you trust. // "PUBLISH_EXPOSED_PORTS" - Exposes all ports specified by `EXPOSE` - // statements in the container. To discover the host side port numbers, - // consult the `ACTION_STARTED` event in the operation metadata. - // "DISABLE_IMAGE_PREFETCH" - All container images are typically - // downloaded before any actions are executed. This helps prevent typos - // in URIs or issues like lack of disk space from wasting large amounts - // of compute resources. If set, this flag prevents the worker from - // downloading the image until just before the action is executed. - // "DISABLE_STANDARD_ERROR_CAPTURE" - A small portion of the - // container's standard error stream is typically captured and returned - // inside the `ContainerStoppedEvent`. Setting this flag disables this - // functionality. - // "BLOCK_EXTERNAL_NETWORK" - Prevents the container from accessing - // the external network. + // statements in the container. To discover the host side port numbers, consult + // the `ACTION_STARTED` event in the operation metadata. + // "DISABLE_IMAGE_PREFETCH" - All container images are typically downloaded + // before any actions are executed. This helps prevent typos in URIs or issues + // like lack of disk space from wasting large amounts of compute resources. If + // set, this flag prevents the worker from downloading the image until just + // before the action is executed. + // "DISABLE_STANDARD_ERROR_CAPTURE" - A small portion of the container's + // standard error stream is typically captured and returned inside the + // `ContainerStoppedEvent`. Setting this flag disables this functionality. + // "BLOCK_EXTERNAL_NETWORK" - Prevents the container from accessing the + // external network. Flags []string `json:"flags,omitempty"` - - // ImageUri: Required. The URI to pull the container image from. Note - // that all images referenced by actions in the pipeline are pulled - // before the first action runs. If multiple actions reference the same - // image, it is only pulled once, ensuring that the same image is used - // for all actions in a single pipeline. The image URI can be either a - // complete host and image specification (e.g., - // quay.io/biocontainers/samtools), a library and image name (e.g., - // google/cloud-sdk) or a bare image name ('bash') to pull from the + // ImageUri: Required. The URI to pull the container image from. Note that all + // images referenced by actions in the pipeline are pulled before the first + // action runs. If multiple actions reference the same image, it is only pulled + // once, ensuring that the same image is used for all actions in a single + // pipeline. The image URI can be either a complete host and image + // specification (e.g., quay.io/biocontainers/samtools), a library and image + // name (e.g., google/cloud-sdk) or a bare image name ('bash') to pull from the // default library. No schema is required in any of these cases. If the - // specified image is not public, the service account specified for the - // Virtual Machine must have access to pull the images from GCR, or - // appropriate credentials must be specified in the + // specified image is not public, the service account specified for the Virtual + // Machine must have access to pull the images from GCR, or appropriate + // credentials must be specified in the // google.genomics.v2alpha1.Action.credentials field. ImageUri string `json:"imageUri,omitempty"` - - // Labels: Labels to associate with the action. This field is provided - // to assist workflow engine authors in identifying actions (for - // example, to indicate what sort of action they perform, such as - // localization or debugging). They are returned in the operation - // metadata, but are otherwise ignored. + // Labels: Labels to associate with the action. This field is provided to + // assist workflow engine authors in identifying actions (for example, to + // indicate what sort of action they perform, such as localization or + // debugging). They are returned in the operation metadata, but are otherwise + // ignored. Labels map[string]string `json:"labels,omitempty"` - - // Mounts: A list of mounts to make available to the action. In addition - // to the values specified here, every action has a special virtual disk - // mounted under `/google` that contains log files and other operational - // components. - /google/logs All logs written during the pipeline - // execution. - /google/logs/output The combined standard output and - // standard error of all actions run as part of the pipeline execution. - // - /google/logs/action/*/stdout The complete contents of each - // individual action's standard output. - /google/logs/action/*/stderr - // The complete contents of each individual action's standard error - // output. + // Mounts: A list of mounts to make available to the action. In addition to the + // values specified here, every action has a special virtual disk mounted under + // `/google` that contains log files and other operational components. - + // /google/logs All logs written during the pipeline execution. - + // /google/logs/output The combined standard output and standard error of all + // actions run as part of the pipeline execution. - + // /google/logs/action/*/stdout The complete contents of each individual + // action's standard output. - /google/logs/action/*/stderr The complete + // contents of each individual action's standard error output. Mounts []*Mount `json:"mounts,omitempty"` - - // Name: An optional name for the container. The container hostname will - // be set to this name, making it useful for inter-container - // communication. The name must contain only upper and lowercase - // alphanumeric characters and hyphens and cannot start with a hyphen. + // Name: An optional name for the container. The container hostname will be set + // to this name, making it useful for inter-container communication. The name + // must contain only upper and lowercase alphanumeric characters and hyphens + // and cannot start with a hyphen. Name string `json:"name,omitempty"` - - // PidNamespace: An optional identifier for a PID namespace to run the - // action inside. Multiple actions should use the same string to share a - // namespace. If unspecified, a separate isolated namespace is used. + // PidNamespace: An optional identifier for a PID namespace to run the action + // inside. Multiple actions should use the same string to share a namespace. If + // unspecified, a separate isolated namespace is used. PidNamespace string `json:"pidNamespace,omitempty"` - - // PortMappings: A map of containers to host port mappings for this - // container. If the container already specifies exposed ports, use the - // `PUBLISH_EXPOSED_PORTS` flag instead. The host port number must be - // less than 65536. If it is zero, an unused random port is assigned. To - // determine the resulting port number, consult the - // `ContainerStartedEvent` in the operation metadata. + // PortMappings: A map of containers to host port mappings for this container. + // If the container already specifies exposed ports, use the + // `PUBLISH_EXPOSED_PORTS` flag instead. The host port number must be less than + // 65536. If it is zero, an unused random port is assigned. To determine the + // resulting port number, consult the `ContainerStartedEvent` in the operation + // metadata. PortMappings map[string]int64 `json:"portMappings,omitempty"` - - // Timeout: The maximum amount of time to give the action to complete. - // If the action fails to complete before the timeout, it will be - // terminated and the exit status will be non-zero. The pipeline will - // continue or terminate based on the rules defined by the `ALWAYS_RUN` - // and `IGNORE_EXIT_STATUS` flags. + // Timeout: The maximum amount of time to give the action to complete. If the + // action fails to complete before the timeout, it will be terminated and the + // exit status will be non-zero. The pipeline will continue or terminate based + // on the rules defined by the `ALWAYS_RUN` and `IGNORE_EXIT_STATUS` flags. Timeout string `json:"timeout,omitempty"` - // ForceSendFields is a list of field names (e.g. "Commands") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Commands") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Commands") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Action) MarshalJSON() ([]byte, error) { +func (s Action) MarshalJSON() ([]byte, error) { type NoMethod Action - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. +// CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } // CheckInRequest: The parameters to the CheckIn method. type CheckInRequest struct { - // DeadlineExpired: The deadline has expired and the worker needs more - // time. + // DeadlineExpired: The deadline has expired and the worker needs more time. DeadlineExpired *Empty `json:"deadlineExpired,omitempty"` - // Event: A workflow specific event occurred. Event googleapi.RawMessage `json:"event,omitempty"` - // Events: A list of timestamped events. Events []*TimestampedEvent `json:"events,omitempty"` - // Result: The operation has finished with the given result. Result *Status `json:"result,omitempty"` - // SosReport: An SOS report for an unexpected VM failure. SosReport string `json:"sosReport,omitempty"` - // WorkerStatus: Data about the status of the worker VM. WorkerStatus *WorkerStatus `json:"workerStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeadlineExpired") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeadlineExpired") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DeadlineExpired") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CheckInRequest) MarshalJSON() ([]byte, error) { +func (s CheckInRequest) MarshalJSON() ([]byte, error) { type NoMethod CheckInRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CheckInResponse: The response to the CheckIn method. type CheckInResponse struct { - // Deadline: The deadline by which the worker must request an extension. - // The backend will allow for network transmission time and other - // delays, but the worker must attempt to transmit the extension request - // no later than the deadline. + // Deadline: The deadline by which the worker must request an extension. The + // backend will allow for network transmission time and other delays, but the + // worker must attempt to transmit the extension request no later than the + // deadline. Deadline string `json:"deadline,omitempty"` - // Features: Feature configuration for the operation. Features googleapi.RawMessage `json:"features,omitempty"` - - // Metadata: The metadata that describes the operation assigned to the - // worker. + // Metadata: The metadata that describes the operation assigned to the worker. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Deadline") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Deadline") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Deadline") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CheckInResponse) MarshalJSON() ([]byte, error) { +func (s CheckInResponse) MarshalJSON() ([]byte, error) { type NoMethod CheckInResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContainerKilledEvent: An event generated when a container is forcibly -// terminated by the worker. Currently, this only occurs when the -// container outlives the timeout specified by the user. +// terminated by the worker. Currently, this only occurs when the container +// outlives the timeout specified by the user. type ContainerKilledEvent struct { // ActionId: The numeric ID of the action that started the container. ActionId int64 `json:"actionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerKilledEvent) MarshalJSON() ([]byte, error) { +func (s ContainerKilledEvent) MarshalJSON() ([]byte, error) { type NoMethod ContainerKilledEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContainerStartedEvent: An event generated when a container starts. type ContainerStartedEvent struct { // ActionId: The numeric ID of the action that started this container. ActionId int64 `json:"actionId,omitempty"` - // IpAddress: The public IP address that can be used to connect to the - // container. This field is only populated when at least one port - // mapping is present. If the instance was created with a private - // address, this field will be empty even if port mappings exist. + // container. This field is only populated when at least one port mapping is + // present. If the instance was created with a private address, this field will + // be empty even if port mappings exist. IpAddress string `json:"ipAddress,omitempty"` - // PortMappings: The container-to-host port mappings installed for this // container. This set will contain any ports exposed using the // `PUBLISH_EXPOSED_PORTS` flag as well as any specified in the `Action` // definition. PortMappings map[string]int64 `json:"portMappings,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerStartedEvent) MarshalJSON() ([]byte, error) { +func (s ContainerStartedEvent) MarshalJSON() ([]byte, error) { type NoMethod ContainerStartedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContainerStoppedEvent: An event generated when a container exits. type ContainerStoppedEvent struct { // ActionId: The numeric ID of the action that started this container. ActionId int64 `json:"actionId,omitempty"` - // ExitStatus: The exit status of the container. ExitStatus int64 `json:"exitStatus,omitempty"` - // Stderr: The tail end of any content written to standard error by the - // container. If the content emits large amounts of debugging noise or - // contains sensitive information, you can prevent the content from - // being printed by setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. - // Note that only a small amount of the end of the stream is captured - // here. The entire stream is stored in the `/google/logs` directory - // mounted into each action, and can be copied off the machine as - // described elsewhere. + // container. If the content emits large amounts of debugging noise or contains + // sensitive information, you can prevent the content from being printed by + // setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. Note that only a small + // amount of the end of the stream is captured here. The entire stream is + // stored in the `/google/logs` directory mounted into each action, and can be + // copied off the machine as described elsewhere. Stderr string `json:"stderr,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerStoppedEvent) MarshalJSON() ([]byte, error) { +func (s ContainerStoppedEvent) MarshalJSON() ([]byte, error) { type NoMethod ContainerStoppedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DelayedEvent: An event generated whenever a resource limitation or -// transient error delays execution of a pipeline that was otherwise -// ready to run. +// DelayedEvent: An event generated whenever a resource limitation or transient +// error delays execution of a pipeline that was otherwise ready to run. type DelayedEvent struct { - // Cause: A textual description of the cause of the delay. The string - // can change without notice because it is often generated by another - // service (such as Compute Engine). + // Cause: A textual description of the cause of the delay. The string can + // change without notice because it is often generated by another service (such + // as Compute Engine). Cause string `json:"cause,omitempty"` - - // Metrics: If the delay was caused by a resource shortage, this field - // lists the Compute Engine metrics that are preventing this operation - // from running (for example, `CPUS` or `INSTANCES`). If the particular - // metric is not known, a single `UNKNOWN` metric will be present. + // Metrics: If the delay was caused by a resource shortage, this field lists + // the Compute Engine metrics that are preventing this operation from running + // (for example, `CPUS` or `INSTANCES`). If the particular metric is not known, + // a single `UNKNOWN` metric will be present. Metrics []string `json:"metrics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cause") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cause") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cause") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DelayedEvent) MarshalJSON() ([]byte, error) { +func (s DelayedEvent) MarshalJSON() ([]byte, error) { type NoMethod DelayedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Disk: Carries information about a disk that can be attached to a VM. -// See https://cloud.google.com/compute/docs/disks/performance for more -// information about disk type, size, and performance considerations. -// Specify either `Volume` or `Disk`, but not both. +// Disk: Carries information about a disk that can be attached to a VM. See +// https://cloud.google.com/compute/docs/disks/performance for more information +// about disk type, size, and performance considerations. Specify either +// `Volume` or `Disk`, but not both. type Disk struct { - // Name: A user-supplied name for the disk. Used when mounting the disk - // into actions. The name must contain only upper and lowercase - // alphanumeric characters and hyphens and cannot start with a hyphen. + // Name: A user-supplied name for the disk. Used when mounting the disk into + // actions. The name must contain only upper and lowercase alphanumeric + // characters and hyphens and cannot start with a hyphen. Name string `json:"name,omitempty"` - // SizeGb: The size, in GB, of the disk to attach. If the size is not - // specified, a default is chosen to ensure reasonable I/O performance. - // If the disk type is specified as `local-ssd`, multiple local drives - // are automatically combined to provide the requested size. Note, - // however, that each physical SSD is 375GB in size, and no more than 8 - // drives can be attached to a single instance. + // specified, a default is chosen to ensure reasonable I/O performance. If the + // disk type is specified as `local-ssd`, multiple local drives are + // automatically combined to provide the requested size. Note, however, that + // each physical SSD is 375GB in size, and no more than 8 drives can be + // attached to a single instance. SizeGb int64 `json:"sizeGb,omitempty"` - - // SourceImage: An optional image to put on the disk before attaching it - // to the VM. + // SourceImage: An optional image to put on the disk before attaching it to the + // VM. SourceImage string `json:"sourceImage,omitempty"` - - // Type: The Compute Engine disk type. If unspecified, `pd-standard` is - // used. + // Type: The Compute Engine disk type. If unspecified, `pd-standard` is used. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Disk) MarshalJSON() ([]byte, error) { +func (s Disk) MarshalJSON() ([]byte, error) { type NoMethod Disk - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DiskStatus: The status of a disk on a VM. type DiskStatus struct { // FreeSpaceBytes: Free disk space. FreeSpaceBytes uint64 `json:"freeSpaceBytes,omitempty,string"` - // TotalSpaceBytes: Total disk space. TotalSpaceBytes uint64 `json:"totalSpaceBytes,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "FreeSpaceBytes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FreeSpaceBytes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FreeSpaceBytes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DiskStatus) MarshalJSON() ([]byte, error) { +func (s DiskStatus) MarshalJSON() ([]byte, error) { type NoMethod DiskStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // Event: Carries information about events that occur during pipeline // execution. type Event struct { - // Description: A human-readable description of the event. Note that - // these strings can change at any time without notice. Any application - // logic must use the information in the `details` field. + // Description: A human-readable description of the event. Note that these + // strings can change at any time without notice. Any application logic must + // use the information in the `details` field. Description string `json:"description,omitempty"` - // Details: Machine-readable details about the event. Details googleapi.RawMessage `json:"details,omitempty"` - // Timestamp: The time at which the event occurred. Timestamp string `json:"timestamp,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Event) MarshalJSON() ([]byte, error) { +func (s Event) MarshalJSON() ([]byte, error) { type NoMethod Event - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExistingDisk: Configuration for an existing disk to be attached to -// the VM. +// ExistingDisk: Configuration for an existing disk to be attached to the VM. type ExistingDisk struct { - // Disk: If `disk` contains slashes, the Cloud Life Sciences API assumes - // that it is a complete URL for the disk. If `disk` does not contain - // slashes, the Cloud Life Sciences API assumes that the disk is a zonal - // disk and a URL will be generated of the form `zones//disks/`, where - // `` is the zone in which the instance is allocated. The disk must be - // ext4 formatted. If all `Mount` references to this disk have the - // `read_only` flag set to true, the disk will be attached in - // `read-only` mode and can be shared with other instances. Otherwise, - // the disk will be available for writing but cannot be shared. + // Disk: If `disk` contains slashes, the Cloud Life Sciences API assumes that + // it is a complete URL for the disk. If `disk` does not contain slashes, the + // Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will + // be generated of the form `zones//disks/`, where `` is the zone in which the + // instance is allocated. The disk must be ext4 formatted. If all `Mount` + // references to this disk have the `read_only` flag set to true, the disk will + // be attached in `read-only` mode and can be shared with other instances. + // Otherwise, the disk will be available for writing but cannot be shared. Disk string `json:"disk,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Disk") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Disk") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Disk") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Disk") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExistingDisk) MarshalJSON() ([]byte, error) { +func (s ExistingDisk) MarshalJSON() ([]byte, error) { type NoMethod ExistingDisk - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FailedEvent: An event generated when the execution of a pipeline has -// failed. Note that other events can continue to occur after this -// event. +// FailedEvent: An event generated when the execution of a pipeline has failed. +// Note that other events can continue to occur after this event. type FailedEvent struct { // Cause: The human-readable description of the cause of the failure. Cause string `json:"cause,omitempty"` - - // Code: The Google standard error code that best describes this - // failure. + // Code: The Google standard error code that best describes this failure. // // Possible values: // "OK" - Not an error; returned on success. HTTP Mapping: 200 OK - // "CANCELLED" - The operation was cancelled, typically by the caller. - // HTTP Mapping: 499 Client Closed Request - // "UNKNOWN" - Unknown error. For example, this error may be returned - // when a `Status` value received from another address space belongs to - // an error space that is not known in this address space. Also errors - // raised by APIs that do not return enough error information may be - // converted to this error. HTTP Mapping: 500 Internal Server Error - // "INVALID_ARGUMENT" - The client specified an invalid argument. Note - // that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` - // indicates arguments that are problematic regardless of the state of - // the system (e.g., a malformed file name). HTTP Mapping: 400 Bad - // Request - // "DEADLINE_EXCEEDED" - The deadline expired before the operation - // could complete. For operations that change the state of the system, - // this error may be returned even if the operation has completed - // successfully. For example, a successful response from a server could - // have been delayed long enough for the deadline to expire. HTTP - // Mapping: 504 Gateway Timeout - // "NOT_FOUND" - Some requested entity (e.g., file or directory) was - // not found. Note to server developers: if a request is denied for an - // entire class of users, such as gradual feature rollout or - // undocumented allowlist, `NOT_FOUND` may be used. If a request is - // denied for some users within a class of users, such as user-based - // access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 - // Not Found - // "ALREADY_EXISTS" - The entity that a client attempted to create - // (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict - // "PERMISSION_DENIED" - The caller does not have permission to - // execute the specified operation. `PERMISSION_DENIED` must not be used - // for rejections caused by exhausting some resource (use - // `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` - // must not be used if the caller can not be identified (use - // `UNAUTHENTICATED` instead for those errors). This error code does not - // imply the request is valid or the requested entity exists or + // "CANCELLED" - The operation was cancelled, typically by the caller. HTTP + // Mapping: 499 Client Closed Request + // "UNKNOWN" - Unknown error. For example, this error may be returned when a + // `Status` value received from another address space belongs to an error space + // that is not known in this address space. Also errors raised by APIs that do + // not return enough error information may be converted to this error. HTTP + // Mapping: 500 Internal Server Error + // "INVALID_ARGUMENT" - The client specified an invalid argument. Note that + // this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates + // arguments that are problematic regardless of the state of the system (e.g., + // a malformed file name). HTTP Mapping: 400 Bad Request + // "DEADLINE_EXCEEDED" - The deadline expired before the operation could + // complete. For operations that change the state of the system, this error may + // be returned even if the operation has completed successfully. For example, a + // successful response from a server could have been delayed long enough for + // the deadline to expire. HTTP Mapping: 504 Gateway Timeout + // "NOT_FOUND" - Some requested entity (e.g., file or directory) was not + // found. Note to server developers: if a request is denied for an entire class + // of users, such as gradual feature rollout or undocumented allowlist, + // `NOT_FOUND` may be used. If a request is denied for some users within a + // class of users, such as user-based access control, `PERMISSION_DENIED` must + // be used. HTTP Mapping: 404 Not Found + // "ALREADY_EXISTS" - The entity that a client attempted to create (e.g., + // file or directory) already exists. HTTP Mapping: 409 Conflict + // "PERMISSION_DENIED" - The caller does not have permission to execute the + // specified operation. `PERMISSION_DENIED` must not be used for rejections + // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for + // those errors). `PERMISSION_DENIED` must not be used if the caller can not be + // identified (use `UNAUTHENTICATED` instead for those errors). This error code + // does not imply the request is valid or the requested entity exists or // satisfies other pre-conditions. HTTP Mapping: 403 Forbidden // "UNAUTHENTICATED" - The request does not have valid authentication // credentials for the operation. HTTP Mapping: 401 Unauthorized // "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a - // per-user quota, or perhaps the entire file system is out of space. - // HTTP Mapping: 429 Too Many Requests - // "FAILED_PRECONDITION" - The operation was rejected because the - // system is not in a state required for the operation's execution. For - // example, the directory to be deleted is non-empty, an rmdir operation - // is applied to a non-directory, etc. Service implementors can use the - // following guidelines to decide between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can - // retry just the failing call. (b) Use `ABORTED` if the client should - // retry at a higher level. For example, when a client-specified - // test-and-set fails, indicating the client should restart a - // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the - // client should not retry until the system state has been explicitly - // fixed. For example, if an "rmdir" fails because the directory is - // non-empty, `FAILED_PRECONDITION` should be returned since the client - // should not retry unless the files are deleted from the directory. - // HTTP Mapping: 400 Bad Request - // "ABORTED" - The operation was aborted, typically due to a - // concurrency issue such as a sequencer check failure or transaction - // abort. See the guidelines above for deciding between - // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: - // 409 Conflict - // "OUT_OF_RANGE" - The operation was attempted past the valid range. - // E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, - // this error indicates a problem that may be fixed if the system state - // changes. For example, a 32-bit file system will generate - // `INVALID_ARGUMENT` if asked to read at an offset that is not in the - // range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to - // read from an offset past the current file size. There is a fair bit - // of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We - // recommend using `OUT_OF_RANGE` (the more specific error) when it - // applies so that callers who are iterating through a space can easily - // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP - // Mapping: 400 Bad Request + // per-user quota, or perhaps the entire file system is out of space. HTTP + // Mapping: 429 Too Many Requests + // "FAILED_PRECONDITION" - The operation was rejected because the system is + // not in a state required for the operation's execution. For example, the + // directory to be deleted is non-empty, an rmdir operation is applied to a + // non-directory, etc. Service implementors can use the following guidelines to + // decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use + // `UNAVAILABLE` if the client can retry just the failing call. (b) Use + // `ABORTED` if the client should retry at a higher level. For example, when a + // client-specified test-and-set fails, indicating the client should restart a + // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the client + // should not retry until the system state has been explicitly fixed. For + // example, if an "rmdir" fails because the directory is non-empty, + // `FAILED_PRECONDITION` should be returned since the client should not retry + // unless the files are deleted from the directory. HTTP Mapping: 400 Bad + // Request + // "ABORTED" - The operation was aborted, typically due to a concurrency + // issue such as a sequencer check failure or transaction abort. See the + // guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and + // `UNAVAILABLE`. HTTP Mapping: 409 Conflict + // "OUT_OF_RANGE" - The operation was attempted past the valid range. E.g., + // seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error + // indicates a problem that may be fixed if the system state changes. For + // example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to + // read at an offset that is not in the range [0,2^32-1], but it will generate + // `OUT_OF_RANGE` if asked to read from an offset past the current file size. + // There is a fair bit of overlap between `FAILED_PRECONDITION` and + // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) + // when it applies so that callers who are iterating through a space can easily + // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: + // 400 Bad Request // "UNIMPLEMENTED" - The operation is not implemented or is not // supported/enabled in this service. HTTP Mapping: 501 Not Implemented - // "INTERNAL" - Internal errors. This means that some invariants - // expected by the underlying system have been broken. This error code - // is reserved for serious errors. HTTP Mapping: 500 Internal Server - // Error - // "UNAVAILABLE" - The service is currently unavailable. This is most - // likely a transient condition, which can be corrected by retrying with - // a backoff. Note that it is not always safe to retry non-idempotent - // operations. See the guidelines above for deciding between - // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: - // 503 Service Unavailable - // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: - // 500 Internal Server Error + // "INTERNAL" - Internal errors. This means that some invariants expected by + // the underlying system have been broken. This error code is reserved for + // serious errors. HTTP Mapping: 500 Internal Server Error + // "UNAVAILABLE" - The service is currently unavailable. This is most likely + // a transient condition, which can be corrected by retrying with a backoff. + // Note that it is not always safe to retry non-idempotent operations. See the + // guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and + // `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable + // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: 500 + // Internal Server Error Code string `json:"code,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cause") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cause") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cause") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FailedEvent) MarshalJSON() ([]byte, error) { +func (s FailedEvent) MarshalJSON() ([]byte, error) { type NoMethod FailedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metadata: Carries information about the pipeline execution that is -// returned in the long running operation's metadata field. +// Metadata: Carries information about the pipeline execution that is returned +// in the long running operation's metadata field. type Metadata struct { // CreateTime: The time at which the operation was created by the API. CreateTime string `json:"createTime,omitempty"` - // EndTime: The time at which execution was completed and resources were // cleaned up. EndTime string `json:"endTime,omitempty"` - - // Events: The list of events that have happened so far during the - // execution of this operation. + // Events: The list of events that have happened so far during the execution of + // this operation. Events []*Event `json:"events,omitempty"` - // Labels: The user-defined labels associated with this operation. Labels map[string]string `json:"labels,omitempty"` - // Pipeline: The pipeline this operation represents. Pipeline *Pipeline `json:"pipeline,omitempty"` - - // StartTime: The first time at which resources were allocated to - // execute the pipeline. + // StartTime: The first time at which resources were allocated to execute the + // pipeline. StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metadata) MarshalJSON() ([]byte, error) { +func (s Metadata) MarshalJSON() ([]byte, error) { type NoMethod Metadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Mount: Carries information about a particular disk mount inside a -// container. +// Mount: Carries information about a particular disk mount inside a container. type Mount struct { - // Disk: The name of the disk to mount, as specified in the resources - // section. + // Disk: The name of the disk to mount, as specified in the resources section. Disk string `json:"disk,omitempty"` - // Path: The path to mount the disk inside the container. Path string `json:"path,omitempty"` - - // ReadOnly: If true, the disk is mounted read-only inside the - // container. + // ReadOnly: If true, the disk is mounted read-only inside the container. ReadOnly bool `json:"readOnly,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Disk") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Disk") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Disk") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Disk") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Mount) MarshalJSON() ([]byte, error) { +func (s Mount) MarshalJSON() ([]byte, error) { type NoMethod Mount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NFSMount: Configuration for an `NFSMount` to be attached to the VM. @@ -1061,826 +906,639 @@ type NFSMount struct { // Target: A target NFS mount. The target must be specified as // `address:/mount". Target string `json:"target,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Target") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Target") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Target") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NFSMount) MarshalJSON() ([]byte, error) { +func (s NFSMount) MarshalJSON() ([]byte, error) { type NoMethod NFSMount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Network: VM networking options. type Network struct { - // Name: The network name to attach the VM's network interface to. The - // value will be prefixed with `global/networks/` unless it contains a - // `/`, in which case it is assumed to be a fully specified network - // resource URL. If unspecified, the global default network is used. + // Name: The network name to attach the VM's network interface to. The value + // will be prefixed with `global/networks/` unless it contains a `/`, in which + // case it is assumed to be a fully specified network resource URL. If + // unspecified, the global default network is used. Name string `json:"name,omitempty"` - // Subnetwork: If the specified network is configured for custom subnet - // creation, the name of the subnetwork to attach the instance to must - // be specified here. The value is prefixed with - // `regions/*/subnetworks/` unless it contains a `/`, in which case it - // is assumed to be a fully specified subnetwork resource URL. If the - // `*` character appears in the value, it is replaced with the region - // that the virtual machine has been allocated in. + // creation, the name of the subnetwork to attach the instance to must be + // specified here. The value is prefixed with `regions/*/subnetworks/` unless + // it contains a `/`, in which case it is assumed to be a fully specified + // subnetwork resource URL. If the `*` character appears in the value, it is + // replaced with the region that the virtual machine has been allocated in. Subnetwork string `json:"subnetwork,omitempty"` - - // UsePrivateAddress: If set to true, do not attach a public IP address - // to the VM. Note that without a public IP address, additional - // configuration is required to allow the VM to access Google services. - // See https://cloud.google.com/vpc/docs/configure-private-google-access - // for more information. + // UsePrivateAddress: If set to true, do not attach a public IP address to the + // VM. Note that without a public IP address, additional configuration is + // required to allow the VM to access Google services. See + // https://cloud.google.com/vpc/docs/configure-private-google-access for more + // information. UsePrivateAddress bool `json:"usePrivateAddress,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Network) MarshalJSON() ([]byte, error) { +func (s Network) MarshalJSON() ([]byte, error) { type NoMethod Network - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - - // Metadata: An OperationMetadata or Metadata object. This will always - // be returned with the Operation. + // Metadata: An OperationMetadata or Metadata object. This will always be + // returned with the Operation. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. For example: + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. For example: // `operations/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw` Name string `json:"name,omitempty"` - // Response: An Empty object. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PersistentDisk: Configuration for a persistent disk to be attached to -// the VM. See https://cloud.google.com/compute/docs/disks/performance -// for more information about disk type, size, and performance -// considerations. +// PersistentDisk: Configuration for a persistent disk to be attached to the +// VM. See https://cloud.google.com/compute/docs/disks/performance for more +// information about disk type, size, and performance considerations. type PersistentDisk struct { // SizeGb: The size, in GB, of the disk to attach. If the size is not - // specified, a default is chosen to ensure reasonable I/O performance. - // If the disk type is specified as `local-ssd`, multiple local drives - // are automatically combined to provide the requested size. Note, - // however, that each physical SSD is 375GB in size, and no more than 8 - // drives can be attached to a single instance. + // specified, a default is chosen to ensure reasonable I/O performance. If the + // disk type is specified as `local-ssd`, multiple local drives are + // automatically combined to provide the requested size. Note, however, that + // each physical SSD is 375GB in size, and no more than 8 drives can be + // attached to a single instance. SizeGb int64 `json:"sizeGb,omitempty"` - - // SourceImage: An image to put on the disk before attaching it to the - // VM. + // SourceImage: An image to put on the disk before attaching it to the VM. SourceImage string `json:"sourceImage,omitempty"` - - // Type: The Compute Engine disk type. If unspecified, `pd-standard` is - // used. + // Type: The Compute Engine disk type. If unspecified, `pd-standard` is used. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SizeGb") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "SizeGb") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SizeGb") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersistentDisk) MarshalJSON() ([]byte, error) { +func (s PersistentDisk) MarshalJSON() ([]byte, error) { type NoMethod PersistentDisk - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Pipeline: Specifies a series of actions to execute, expressed as -// Docker containers. +// Pipeline: Specifies a series of actions to execute, expressed as Docker +// containers. type Pipeline struct { - // Actions: The list of actions to execute, in the order they are - // specified. + // Actions: The list of actions to execute, in the order they are specified. Actions []*Action `json:"actions,omitempty"` - - // EncryptedEnvironment: The encrypted environment to pass into every - // action. Each action can also specify its own encrypted environment. - // The secret must decrypt to a JSON-encoded dictionary where key-value - // pairs serve as environment variable names and their values. The - // decoded environment variables can overwrite the values specified by - // the `environment` field. + // EncryptedEnvironment: The encrypted environment to pass into every action. + // Each action can also specify its own encrypted environment. The secret must + // decrypt to a JSON-encoded dictionary where key-value pairs serve as + // environment variable names and their values. The decoded environment + // variables can overwrite the values specified by the `environment` field. EncryptedEnvironment *Secret `json:"encryptedEnvironment,omitempty"` - - // Environment: The environment to pass into every action. Each action - // can also specify additional environment variables but cannot delete - // an entry from this map (though they can overwrite it with a different - // value). + // Environment: The environment to pass into every action. Each action can also + // specify additional environment variables but cannot delete an entry from + // this map (though they can overwrite it with a different value). Environment map[string]string `json:"environment,omitempty"` - // Resources: The resources required for execution. Resources *Resources `json:"resources,omitempty"` - - // Timeout: The maximum amount of time to give the pipeline to complete. - // This includes the time spent waiting for a worker to be allocated. If - // the pipeline fails to complete before the timeout, it will be - // cancelled and the error code will be set to DEADLINE_EXCEEDED. If - // unspecified, it will default to 7 days. + // Timeout: The maximum amount of time to give the pipeline to complete. This + // includes the time spent waiting for a worker to be allocated. If the + // pipeline fails to complete before the timeout, it will be cancelled and the + // error code will be set to DEADLINE_EXCEEDED. If unspecified, it will default + // to 7 days. Timeout string `json:"timeout,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Actions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actions") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Actions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Actions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pipeline) MarshalJSON() ([]byte, error) { +func (s Pipeline) MarshalJSON() ([]byte, error) { type NoMethod Pipeline - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PullStartedEvent: An event generated when the worker starts pulling -// an image. +// PullStartedEvent: An event generated when the worker starts pulling an +// image. type PullStartedEvent struct { // ImageUri: The URI of the image that was pulled. ImageUri string `json:"imageUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ImageUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PullStartedEvent) MarshalJSON() ([]byte, error) { +func (s PullStartedEvent) MarshalJSON() ([]byte, error) { type NoMethod PullStartedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PullStoppedEvent: An event generated when the worker stops pulling an -// image. +// PullStoppedEvent: An event generated when the worker stops pulling an image. type PullStoppedEvent struct { // ImageUri: The URI of the image that was pulled. ImageUri string `json:"imageUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ImageUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PullStoppedEvent) MarshalJSON() ([]byte, error) { +func (s PullStoppedEvent) MarshalJSON() ([]byte, error) { type NoMethod PullStoppedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Resources: The system resources for the pipeline run. At least one -// zone or region must be specified or the pipeline run will fail. +// Resources: The system resources for the pipeline run. At least one zone or +// region must be specified or the pipeline run will fail. type Resources struct { // ProjectId: The project ID to allocate resources in. ProjectId string `json:"projectId,omitempty"` - - // Regions: The list of regions allowed for VM allocation. If set, the - // `zones` field must not be set. + // Regions: The list of regions allowed for VM allocation. If set, the `zones` + // field must not be set. Regions []string `json:"regions,omitempty"` - // VirtualMachine: The virtual machine specification. VirtualMachine *VirtualMachine `json:"virtualMachine,omitempty"` - - // Zones: The list of zones allowed for VM allocation. If set, the - // `regions` field must not be set. + // Zones: The list of zones allowed for VM allocation. If set, the `regions` + // field must not be set. Zones []string `json:"zones,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProjectId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProjectId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Resources) MarshalJSON() ([]byte, error) { +func (s Resources) MarshalJSON() ([]byte, error) { type NoMethod Resources - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RunPipelineRequest: The arguments to the `RunPipeline` method. The -// requesting user must have the `iam.serviceAccounts.actAs` permission -// for the Cloud Genomics service account or the request will fail. +// requesting user must have the `iam.serviceAccounts.actAs` permission for the +// Cloud Genomics service account or the request will fail. type RunPipelineRequest struct { - // Labels: User-defined labels to associate with the returned operation. - // These labels are not propagated to any Google Cloud Platform - // resources used by the operation, and can be modified at any time. To - // associate labels with resources created while executing the - // operation, see the appropriate resource message (for example, - // `VirtualMachine`). + // Labels: User-defined labels to associate with the returned operation. These + // labels are not propagated to any Google Cloud Platform resources used by the + // operation, and can be modified at any time. To associate labels with + // resources created while executing the operation, see the appropriate + // resource message (for example, `VirtualMachine`). Labels map[string]string `json:"labels,omitempty"` - // Pipeline: Required. The description of the pipeline to run. Pipeline *Pipeline `json:"pipeline,omitempty"` - - // PubSubTopic: The name of an existing Pub/Sub topic. The server will - // publish messages to this topic whenever the status of the operation - // changes. The Genomics Service Agent account must have publisher - // permissions to the specified topic or notifications will not be sent. + // PubSubTopic: The name of an existing Pub/Sub topic. The server will publish + // messages to this topic whenever the status of the operation changes. The + // Genomics Service Agent account must have publisher permissions to the + // specified topic or notifications will not be sent. PubSubTopic string `json:"pubSubTopic,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Labels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Labels") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Labels") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RunPipelineRequest) MarshalJSON() ([]byte, error) { +func (s RunPipelineRequest) MarshalJSON() ([]byte, error) { type NoMethod RunPipelineRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RunPipelineResponse: The response to the RunPipeline method, returned -// in the operation's result field on success. +// RunPipelineResponse: The response to the RunPipeline method, returned in the +// operation's result field on success. type RunPipelineResponse struct { } -// Secret: Holds encrypted information that is only decrypted and stored -// in RAM by the worker VM when running the pipeline. +// Secret: Holds encrypted information that is only decrypted and stored in RAM +// by the worker VM when running the pipeline. type Secret struct { - // CipherText: The value of the cipherText response from the `encrypt` - // method. This field is intentionally unaudited. + // CipherText: The value of the cipherText response from the `encrypt` method. + // This field is intentionally unaudited. CipherText string `json:"cipherText,omitempty"` - - // KeyName: The name of the Cloud KMS key that will be used to decrypt - // the secret value. The VM service account must have the required - // permissions and authentication scopes to invoke the `decrypt` method - // on the specified key. + // KeyName: The name of the Cloud KMS key that will be used to decrypt the + // secret value. The VM service account must have the required permissions and + // authentication scopes to invoke the `decrypt` method on the specified key. KeyName string `json:"keyName,omitempty"` - // ForceSendFields is a list of field names (e.g. "CipherText") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CipherText") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CipherText") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Secret) MarshalJSON() ([]byte, error) { +func (s Secret) MarshalJSON() ([]byte, error) { type NoMethod Secret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceAccount: Carries information about a Google Cloud service -// account. +// ServiceAccount: Carries information about a Google Cloud service account. type ServiceAccount struct { - // Email: Email address of the service account. If not specified, the - // default Compute Engine service account for the project will be used. + // Email: Email address of the service account. If not specified, the default + // Compute Engine service account for the project will be used. Email string `json:"email,omitempty"` - - // Scopes: List of scopes to be enabled for this service account on the - // VM, in addition to the cloud-platform API scope that will be added by - // default. + // Scopes: List of scopes to be enabled for this service account on the VM, in + // addition to the cloud-platform API scope that will be added by default. Scopes []string `json:"scopes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ServiceAccount) MarshalJSON() ([]byte, error) { +func (s ServiceAccount) MarshalJSON() ([]byte, error) { type NoMethod ServiceAccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TimestampedEvent: An event that occured in the operation assigned to -// the worker and the time of occurance. +// TimestampedEvent: An event that occured in the operation assigned to the +// worker and the time of occurance. type TimestampedEvent struct { // Data: The event data. Data googleapi.RawMessage `json:"data,omitempty"` - // Timestamp: The time when the event happened. Timestamp string `json:"timestamp,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimestampedEvent) MarshalJSON() ([]byte, error) { +func (s TimestampedEvent) MarshalJSON() ([]byte, error) { type NoMethod TimestampedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UnexpectedExitStatusEvent: An event generated when the execution of a -// container results in a non-zero exit status that was not otherwise -// ignored. Execution will continue, but only actions that are flagged -// as `ALWAYS_RUN` will be executed. Other actions will be skipped. +// container results in a non-zero exit status that was not otherwise ignored. +// Execution will continue, but only actions that are flagged as `ALWAYS_RUN` +// will be executed. Other actions will be skipped. type UnexpectedExitStatusEvent struct { // ActionId: The numeric ID of the action that started the container. ActionId int64 `json:"actionId,omitempty"` - // ExitStatus: The exit status of the container. ExitStatus int64 `json:"exitStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnexpectedExitStatusEvent) MarshalJSON() ([]byte, error) { +func (s UnexpectedExitStatusEvent) MarshalJSON() ([]byte, error) { type NoMethod UnexpectedExitStatusEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VirtualMachine: Carries information about a Compute Engine VM -// resource. +// VirtualMachine: Carries information about a Compute Engine VM resource. type VirtualMachine struct { // Accelerators: The list of accelerators to attach to the VM. Accelerators []*Accelerator `json:"accelerators,omitempty"` - - // BootDiskSizeGb: The size of the boot disk, in GB. The boot disk must - // be large enough to accommodate all of the Docker images from each - // action in the pipeline at the same time. If not specified, a small - // but reasonable default value is used. + // BootDiskSizeGb: The size of the boot disk, in GB. The boot disk must be + // large enough to accommodate all of the Docker images from each action in the + // pipeline at the same time. If not specified, a small but reasonable default + // value is used. BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` - // BootImage: The host operating system image to use. Currently, only // Container-Optimized OS images can be used. The default value is - // `projects/cos-cloud/global/images/family/cos-stable`, which selects - // the latest stable release of Container-Optimized OS. This option is - // provided to allow testing against the beta release of the operating - // system to ensure that the new version does not interact negatively - // with production pipelines. To test a pipeline against the beta - // release of Container-Optimized OS, use the value - // `projects/cos-cloud/global/images/family/cos-beta`. + // `projects/cos-cloud/global/images/family/cos-stable`, which selects the + // latest stable release of Container-Optimized OS. This option is provided to + // allow testing against the beta release of the operating system to ensure + // that the new version does not interact negatively with production pipelines. + // To test a pipeline against the beta release of Container-Optimized OS, use + // the value `projects/cos-cloud/global/images/family/cos-beta`. BootImage string `json:"bootImage,omitempty"` - - // CpuPlatform: The CPU platform to request. An instance based on a - // newer platform can be allocated, but never one with fewer - // capabilities. The value of this parameter must be a valid Compute - // Engine CPU platform name (such as "Intel Skylake"). This parameter is - // only useful for carefully optimized work loads where the CPU platform - // has a significant impact. For more information about the effect of - // this parameter, see + // CpuPlatform: The CPU platform to request. An instance based on a newer + // platform can be allocated, but never one with fewer capabilities. The value + // of this parameter must be a valid Compute Engine CPU platform name (such as + // "Intel Skylake"). This parameter is only useful for carefully optimized work + // loads where the CPU platform has a significant impact. For more information + // about the effect of this parameter, see // https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. CpuPlatform string `json:"cpuPlatform,omitempty"` - - // Disks: The list of disks to create and attach to the VM. Specify - // either the `volumes[]` field or the `disks[]` field, but not both. + // Disks: The list of disks to create and attach to the VM. Specify either the + // `volumes[]` field or the `disks[]` field, but not both. Disks []*Disk `json:"disks,omitempty"` - - // DockerCacheImages: The Compute Engine Disk Images to use as a Docker - // cache. The disks will be mounted into the Docker folder in a way that - // the images present in the cache will not need to be pulled. The - // digests of the cached images must match those of the tags used or the - // latest version will still be pulled. The root directory of the ext4 - // image must contain `image` and `overlay2` directories copied from the - // Docker directory of a VM where the desired Docker images have already - // been pulled. Any images pulled that are not cached will be stored on - // the first cache disk instead of the boot disk. Only a single image is - // supported. + // DockerCacheImages: The Compute Engine Disk Images to use as a Docker cache. + // The disks will be mounted into the Docker folder in a way that the images + // present in the cache will not need to be pulled. The digests of the cached + // images must match those of the tags used or the latest version will still be + // pulled. The root directory of the ext4 image must contain `image` and + // `overlay2` directories copied from the Docker directory of a VM where the + // desired Docker images have already been pulled. Any images pulled that are + // not cached will be stored on the first cache disk instead of the boot disk. + // Only a single image is supported. DockerCacheImages []string `json:"dockerCacheImages,omitempty"` - // EnableStackdriverMonitoring: Whether Stackdriver monitoring should be // enabled on the VM. EnableStackdriverMonitoring bool `json:"enableStackdriverMonitoring,omitempty"` - - // Labels: Optional set of labels to apply to the VM and any attached - // disk resources. These labels must adhere to the name and value - // restrictions - // (https://cloud.google.com/compute/docs/labeling-resources) on VM - // labels imposed by Compute Engine. Labels keys with the prefix - // 'google-' are reserved for use by Google. Labels applied at creation - // time to the VM. Applied on a best-effort basis to attached disk - // resources shortly after VM creation. + // Labels: Optional set of labels to apply to the VM and any attached disk + // resources. These labels must adhere to the name and value restrictions + // (https://cloud.google.com/compute/docs/labeling-resources) on VM labels + // imposed by Compute Engine. Labels keys with the prefix 'google-' are + // reserved for use by Google. Labels applied at creation time to the VM. + // Applied on a best-effort basis to attached disk resources shortly after VM + // creation. Labels map[string]string `json:"labels,omitempty"` - - // MachineType: Required. The machine type of the virtual machine to - // create. Must be the short name of a standard machine type (such as - // "n1-standard-1") or a custom machine type (such as "custom-1-4096", - // where "1" indicates the number of vCPUs and "4096" indicates the - // memory in MB). See Creating an instance with a custom machine type + // MachineType: Required. The machine type of the virtual machine to create. + // Must be the short name of a standard machine type (such as "n1-standard-1") + // or a custom machine type (such as "custom-1-4096", where "1" indicates the + // number of vCPUs and "4096" indicates the memory in MB). See Creating an + // instance with a custom machine type // (https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) // for more specifications on creating a custom machine type. MachineType string `json:"machineType,omitempty"` - // Network: The VM network configuration. Network *Network `json:"network,omitempty"` - - // NvidiaDriverVersion: The NVIDIA driver version to use when attaching - // an NVIDIA GPU accelerator. The version specified here must be - // compatible with the GPU libraries contained in the container being - // executed, and must be one of the drivers hosted in the - // `nvidia-drivers-us-public` bucket on Google Cloud Storage. + // NvidiaDriverVersion: The NVIDIA driver version to use when attaching an + // NVIDIA GPU accelerator. The version specified here must be compatible with + // the GPU libraries contained in the container being executed, and must be one + // of the drivers hosted in the `nvidia-drivers-us-public` bucket on Google + // Cloud Storage. NvidiaDriverVersion string `json:"nvidiaDriverVersion,omitempty"` - // Preemptible: If true, allocate a preemptible VM. Preemptible bool `json:"preemptible,omitempty"` - - // Reservation: If specified, the VM will only be allocated inside the - // matching reservation. It will fail if the VM parameters don't match - // the reservation. + // Reservation: If specified, the VM will only be allocated inside the matching + // reservation. It will fail if the VM parameters don't match the reservation. Reservation string `json:"reservation,omitempty"` - - // ServiceAccount: The service account to install on the VM. This - // account does not need any permissions other than those required by - // the pipeline. + // ServiceAccount: The service account to install on the VM. This account does + // not need any permissions other than those required by the pipeline. ServiceAccount *ServiceAccount `json:"serviceAccount,omitempty"` - - // Volumes: The list of disks and other storage to create or attach to - // the VM. Specify either the `volumes[]` field or the `disks[]` field, - // but not both. + // Volumes: The list of disks and other storage to create or attach to the VM. + // Specify either the `volumes[]` field or the `disks[]` field, but not both. Volumes []*Volume `json:"volumes,omitempty"` - // ForceSendFields is a list of field names (e.g. "Accelerators") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accelerators") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accelerators") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VirtualMachine) MarshalJSON() ([]byte, error) { +func (s VirtualMachine) MarshalJSON() ([]byte, error) { type NoMethod VirtualMachine - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Volume: Carries information about storage that can be attached to a -// VM. Specify either `Volume` or `Disk`, but not both. +// Volume: Carries information about storage that can be attached to a VM. +// Specify either `Volume` or `Disk`, but not both. type Volume struct { // ExistingDisk: Configuration for a existing disk. ExistingDisk *ExistingDisk `json:"existingDisk,omitempty"` - // NfsMount: Configuration for an NFS mount. NfsMount *NFSMount `json:"nfsMount,omitempty"` - // PersistentDisk: Configuration for a persistent disk. PersistentDisk *PersistentDisk `json:"persistentDisk,omitempty"` - - // Volume: A user-supplied name for the volume. Used when mounting the - // volume into `Actions`. The name must contain only upper and lowercase - // alphanumeric characters and hyphens and cannot start with a hyphen. + // Volume: A user-supplied name for the volume. Used when mounting the volume + // into `Actions`. The name must contain only upper and lowercase alphanumeric + // characters and hyphens and cannot start with a hyphen. Volume string `json:"volume,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExistingDisk") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExistingDisk") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExistingDisk") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Volume) MarshalJSON() ([]byte, error) { +func (s Volume) MarshalJSON() ([]byte, error) { type NoMethod Volume - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkerAssignedEvent: An event generated after a worker VM has been -// assigned to run the pipeline. +// WorkerAssignedEvent: An event generated after a worker VM has been assigned +// to run the pipeline. type WorkerAssignedEvent struct { // Instance: The worker's instance name. Instance string `json:"instance,omitempty"` - // MachineType: The machine type that was assigned for the worker. MachineType string `json:"machineType,omitempty"` - // Zone: The zone the worker is running in. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerAssignedEvent) MarshalJSON() ([]byte, error) { +func (s WorkerAssignedEvent) MarshalJSON() ([]byte, error) { type NoMethod WorkerAssignedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WorkerReleasedEvent: An event generated when the worker VM that was -// assigned to the pipeline has been released (deleted). +// WorkerReleasedEvent: An event generated when the worker VM that was assigned +// to the pipeline has been released (deleted). type WorkerReleasedEvent struct { // Instance: The worker's instance name. Instance string `json:"instance,omitempty"` - // Zone: The zone the worker was running in. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerReleasedEvent) MarshalJSON() ([]byte, error) { +func (s WorkerReleasedEvent) MarshalJSON() ([]byte, error) { type NoMethod WorkerReleasedEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WorkerStatus: The status of the worker VM. type WorkerStatus struct { // AttachedDisks: Status of attached disks. AttachedDisks map[string]DiskStatus `json:"attachedDisks,omitempty"` - // BootDisk: Status of the boot disk. BootDisk *DiskStatus `json:"bootDisk,omitempty"` - // FreeRamBytes: Free RAM. FreeRamBytes uint64 `json:"freeRamBytes,omitempty,string"` - // TotalRamBytes: Total RAM. TotalRamBytes uint64 `json:"totalRamBytes,omitempty,string"` - // UptimeSeconds: System uptime. UptimeSeconds int64 `json:"uptimeSeconds,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "AttachedDisks") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttachedDisks") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AttachedDisks") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkerStatus) MarshalJSON() ([]byte, error) { +func (s WorkerStatus) MarshalJSON() ([]byte, error) { type NoMethod WorkerStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "genomics.pipelines.run": - type PipelinesRunCall struct { s *Service runpipelinerequest *RunPipelineRequest @@ -1889,18 +1547,17 @@ type PipelinesRunCall struct { header_ http.Header } -// Run: Runs a pipeline. The returned Operation's metadata field will -// contain a google.genomics.v2alpha1.Metadata object describing the -// status of the pipeline execution. The [response] field will contain a +// Run: Runs a pipeline. The returned Operation's metadata field will contain a +// google.genomics.v2alpha1.Metadata object describing the status of the +// pipeline execution. The [response] field will contain a // google.genomics.v2alpha1.RunPipelineResponse object if the pipeline // completes successfully. **Note:** Before you can use this method, the // Genomics Service Agent must have access to your project. This is done -// automatically when the Cloud Genomics API is first enabled, but if -// you delete this permission, or if you enabled the Cloud Genomics API -// before the v2alpha1 API launch, you must disable and re-enable the -// API to grant the Genomics Service Agent the required permissions. -// Authorization requires the following Google IAM -// (https://cloud.google.com/iam/) permission: * +// automatically when the Cloud Genomics API is first enabled, but if you +// delete this permission, or if you enabled the Cloud Genomics API before the +// v2alpha1 API launch, you must disable and re-enable the API to grant the +// Genomics Service Agent the required permissions. Authorization requires the +// following Google IAM (https://cloud.google.com/iam/) permission: * // `genomics.operations.create` [1]: /genomics/gsa func (r *PipelinesService) Run(runpipelinerequest *RunPipelineRequest) *PipelinesRunCall { c := &PipelinesRunCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1909,23 +1566,21 @@ func (r *PipelinesService) Run(runpipelinerequest *RunPipelineRequest) *Pipeline } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PipelinesRunCall) Fields(s ...googleapi.Field) *PipelinesRunCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PipelinesRunCall) Context(ctx context.Context) *PipelinesRunCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PipelinesRunCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1934,18 +1589,12 @@ func (c *PipelinesRunCall) Header() http.Header { } func (c *PipelinesRunCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.runpipelinerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha1/pipelines:run") @@ -1955,16 +1604,14 @@ func (c *PipelinesRunCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.pipelines.run" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PipelinesRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1995,29 +1642,7 @@ func (c *PipelinesRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) return nil, err } return ret, nil - // { - // "description": "Runs a pipeline. The returned Operation's metadata field will contain a google.genomics.v2alpha1.Metadata object describing the status of the pipeline execution. The [response] field will contain a google.genomics.v2alpha1.RunPipelineResponse object if the pipeline completes successfully. **Note:** Before you can use this method, the Genomics Service Agent must have access to your project. This is done automatically when the Cloud Genomics API is first enabled, but if you delete this permission, or if you enabled the Cloud Genomics API before the v2alpha1 API launch, you must disable and re-enable the API to grant the Genomics Service Agent the required permissions. Authorization requires the following [Google IAM](https://cloud.google.com/iam/) permission: * `genomics.operations.create` [1]: /genomics/gsa", - // "flatPath": "v2alpha1/pipelines:run", - // "httpMethod": "POST", - // "id": "genomics.pipelines.run", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2alpha1/pipelines:run", - // "request": { - // "$ref": "RunPipelineRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.projects.operations.cancel": +} type ProjectsOperationsCancelCall struct { s *Service @@ -2028,13 +1653,13 @@ type ProjectsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. Clients may use Operations.GetOperation or -// Operations.ListOperations to check whether the cancellation succeeded -// or the operation completed despite cancellation. Authorization -// requires the following Google IAM (https://cloud.google.com/iam) -// permission: * `genomics.operations.cancel` +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. Clients may use Operations.GetOperation or +// Operations.ListOperations to check whether the cancellation succeeded or the +// operation completed despite cancellation. Authorization requires the +// following Google IAM (https://cloud.google.com/iam) permission: * +// `genomics.operations.cancel` // // - name: The name of the operation resource to be cancelled. func (r *ProjectsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsOperationsCancelCall { @@ -2045,23 +1670,21 @@ func (r *ProjectsOperationsService) Cancel(name string, canceloperationrequest * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2070,18 +1693,12 @@ func (c *ProjectsOperationsCancelCall) Header() http.Header { } func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha1/{+name}:cancel") @@ -2094,16 +1711,14 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.projects.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2134,39 +1749,7 @@ func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients may use Operations.GetOperation or Operations.ListOperations to check whether the cancellation succeeded or the operation completed despite cancellation. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission: * `genomics.operations.cancel`", - // "flatPath": "v2alpha1/projects/{projectsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "genomics.projects.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2alpha1/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.projects.operations.get": +} type ProjectsOperationsGetCall struct { s *Service @@ -2177,11 +1760,10 @@ type ProjectsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. Authorization requires the following -// Google IAM (https://cloud.google.com/iam) permission: * -// `genomics.operations.get` +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. Authorization requires the following Google IAM +// (https://cloud.google.com/iam) permission: * `genomics.operations.get` // // - name: The name of the operation resource. func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall { @@ -2191,33 +1773,29 @@ func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2226,12 +1804,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { } func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2248,16 +1821,14 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.projects.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2288,36 +1859,7 @@ func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission: * `genomics.operations.get`", - // "flatPath": "v2alpha1/projects/{projectsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "genomics.projects.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2alpha1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.projects.operations.list": +} type ProjectsOperationsListCall struct { s *Service @@ -2328,10 +1870,9 @@ type ProjectsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. Authorization requires the following Google IAM -// (https://cloud.google.com/iam) permission: * -// `genomics.operations.list` +// List: Lists operations that match the specified filter in the request. +// Authorization requires the following Google IAM +// (https://cloud.google.com/iam) permission: * `genomics.operations.list` // // - name: The name of the operation's parent resource. func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall { @@ -2342,65 +1883,60 @@ func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCal // Filter sets the optional parameter "filter": A string for filtering // Operations. In v2alpha1, the following filter fields are supported: * -// createTime: The time this job was created * events: The set of event -// (names) that have occurred while running the pipeline. The : operator -// can be used to determine if a particular event has occurred. * error: -// If the pipeline is running, this value is NULL. Once the pipeline -// finishes, the value is the standard Google error code. * labels.key -// or labels."key with space" where key is a label key. * done: If the -// pipeline is running, this value is false. Once the pipeline finishes, -// the value is true. Examples: * `projectId = my-project AND createTime -// >= 1432140000` * `projectId = my-project AND createTime >= 1432140000 -// AND createTime <= 1432150000 AND status = RUNNING` * `projectId = -// my-project AND labels.color = *` * `projectId = my-project AND -// labels.color = red` +// createTime: The time this job was created * events: The set of event (names) +// that have occurred while running the pipeline. The : operator can be used to +// determine if a particular event has occurred. * error: If the pipeline is +// running, this value is NULL. Once the pipeline finishes, the value is the +// standard Google error code. * labels.key or labels."key with space" where +// key is a label key. * done: If the pipeline is running, this value is false. +// Once the pipeline finishes, the value is true. Examples: * `projectId = +// my-project AND createTime >= 1432140000` * `projectId = my-project AND +// createTime >= 1432140000 AND createTime <= 1432150000 AND status = RUNNING` +// * `projectId = my-project AND labels.color = *` * `projectId = my-project +// AND labels.color = red` func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. The maximum value is 256. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. The maximum value is 256. func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2409,12 +1945,7 @@ func (c *ProjectsOperationsListCall) Header() http.Header { } func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2431,16 +1962,15 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.projects.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2471,49 +2001,6 @@ func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOper return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission: * `genomics.operations.list`", - // "flatPath": "v2alpha1/projects/{projectsId}/operations", - // "httpMethod": "GET", - // "id": "genomics.projects.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "A string for filtering Operations. In v2alpha1, the following filter fields are supported: * createTime: The time this job was created * events: The set of event (names) that have occurred while running the pipeline. The : operator can be used to determine if a particular event has occurred. * error: If the pipeline is running, this value is NULL. Once the pipeline finishes, the value is the standard Google error code. * labels.key or labels.\"key with space\" where key is a label key. * done: If the pipeline is running, this value is false. Once the pipeline finishes, the value is true. Examples: * `projectId = my-project AND createTime \u003e= 1432140000` * `projectId = my-project AND createTime \u003e= 1432140000 AND createTime \u003c= 1432150000 AND status = RUNNING` * `projectId = my-project AND labels.color = *` * `projectId = my-project AND labels.color = red`", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. The maximum value is 256.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2alpha1/{+name}", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - } // Pages invokes f for each page of results. @@ -2521,7 +2008,7 @@ func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOper // The provided context supersedes any context provided to the Context method. func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2537,8 +2024,6 @@ func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*ListOper } } -// method id "genomics.projects.workers.checkIn": - type ProjectsWorkersCheckInCall struct { s *Service id string @@ -2548,8 +2033,8 @@ type ProjectsWorkersCheckInCall struct { header_ http.Header } -// CheckIn: The worker uses this method to retrieve the assigned -// operation and provide periodic status updates. +// CheckIn: The worker uses this method to retrieve the assigned operation and +// provide periodic status updates. // // - id: The VM identity token for authenticating the VM instance. // https://cloud.google.com/compute/docs/instances/verifying-instance-identity. @@ -2561,23 +2046,21 @@ func (r *ProjectsWorkersService) CheckIn(id string, checkinrequest *CheckInReque } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsWorkersCheckInCall) Fields(s ...googleapi.Field) *ProjectsWorkersCheckInCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsWorkersCheckInCall) Context(ctx context.Context) *ProjectsWorkersCheckInCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsWorkersCheckInCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2586,18 +2069,12 @@ func (c *ProjectsWorkersCheckInCall) Header() http.Header { } func (c *ProjectsWorkersCheckInCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.checkinrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha1/{+id}:checkIn") @@ -2610,16 +2087,15 @@ func (c *ProjectsWorkersCheckInCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.projects.workers.checkIn" call. -// Exactly one of *CheckInResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CheckInResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CheckInResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsWorkersCheckInCall) Do(opts ...googleapi.CallOption) (*CheckInResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2650,39 +2126,7 @@ func (c *ProjectsWorkersCheckInCall) Do(opts ...googleapi.CallOption) (*CheckInR return nil, err } return ret, nil - // { - // "description": "The worker uses this method to retrieve the assigned operation and provide periodic status updates.", - // "flatPath": "v2alpha1/projects/{projectsId}/workers/{workersId}:checkIn", - // "httpMethod": "POST", - // "id": "genomics.projects.workers.checkIn", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The VM identity token for authenticating the VM instance. https://cloud.google.com/compute/docs/instances/verifying-instance-identity", - // "location": "path", - // "pattern": "^projects/[^/]+/workers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2alpha1/{+id}:checkIn", - // "request": { - // "$ref": "CheckInRequest" - // }, - // "response": { - // "$ref": "CheckInResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - -} - -// method id "genomics.workers.checkIn": +} type WorkersCheckInCall struct { s *Service @@ -2693,8 +2137,8 @@ type WorkersCheckInCall struct { header_ http.Header } -// CheckIn: The worker uses this method to retrieve the assigned -// operation and provide periodic status updates. +// CheckIn: The worker uses this method to retrieve the assigned operation and +// provide periodic status updates. // // - id: The VM identity token for authenticating the VM instance. // https://cloud.google.com/compute/docs/instances/verifying-instance-identity. @@ -2706,23 +2150,21 @@ func (r *WorkersService) CheckIn(id string, checkinrequest *CheckInRequest) *Wor } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *WorkersCheckInCall) Fields(s ...googleapi.Field) *WorkersCheckInCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *WorkersCheckInCall) Context(ctx context.Context) *WorkersCheckInCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *WorkersCheckInCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2731,18 +2173,12 @@ func (c *WorkersCheckInCall) Header() http.Header { } func (c *WorkersCheckInCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.checkinrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha1/workers/{id}:checkIn") @@ -2755,16 +2191,15 @@ func (c *WorkersCheckInCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "genomics.workers.checkIn" call. -// Exactly one of *CheckInResponse or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CheckInResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CheckInResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *WorkersCheckInCall) Do(opts ...googleapi.CallOption) (*CheckInResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2795,33 +2230,4 @@ func (c *WorkersCheckInCall) Do(opts ...googleapi.CallOption) (*CheckInResponse, return nil, err } return ret, nil - // { - // "description": "The worker uses this method to retrieve the assigned operation and provide periodic status updates.", - // "flatPath": "v2alpha1/workers/{id}:checkIn", - // "httpMethod": "POST", - // "id": "genomics.workers.checkIn", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The VM identity token for authenticating the VM instance. https://cloud.google.com/compute/docs/instances/verifying-instance-identity", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2alpha1/workers/{id}:checkIn", - // "request": { - // "$ref": "CheckInRequest" - // }, - // "response": { - // "$ref": "CheckInResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/genomics" - // ] - // } - } diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go index b66f92cb0ca..43b99f7540c 100644 --- a/gkebackup/v1/gkebackup-gen.go +++ b/gkebackup/v1/gkebackup-gen.go @@ -2791,7 +2791,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.get" call. @@ -2922,7 +2922,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.list" call. @@ -3057,7 +3057,7 @@ func (c *ProjectsLocationsBackupPlansCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.create" call. @@ -3162,7 +3162,7 @@ func (c *ProjectsLocationsBackupPlansDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.delete" call. @@ -3271,7 +3271,7 @@ func (c *ProjectsLocationsBackupPlansGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.get" call. @@ -3398,7 +3398,7 @@ func (c *ProjectsLocationsBackupPlansGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.getIamPolicy" call. @@ -3540,7 +3540,7 @@ func (c *ProjectsLocationsBackupPlansListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.list" call. @@ -3678,7 +3678,7 @@ func (c *ProjectsLocationsBackupPlansPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.patch" call. @@ -3784,7 +3784,7 @@ func (c *ProjectsLocationsBackupPlansSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.setIamPolicy" call. @@ -3892,7 +3892,7 @@ func (c *ProjectsLocationsBackupPlansTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.testIamPermissions" call. @@ -4005,7 +4005,7 @@ func (c *ProjectsLocationsBackupPlansBackupsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.create" call. @@ -4118,7 +4118,7 @@ func (c *ProjectsLocationsBackupPlansBackupsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.delete" call. @@ -4227,7 +4227,7 @@ func (c *ProjectsLocationsBackupPlansBackupsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.get" call. @@ -4336,7 +4336,7 @@ func (c *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall) doReq googleapi.Expand(req.URL, map[string]string{ "backup": c.backup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.getBackupIndexDownloadUrl" call. @@ -4464,7 +4464,7 @@ func (c *ProjectsLocationsBackupPlansBackupsGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.getIamPolicy" call. @@ -4606,7 +4606,7 @@ func (c *ProjectsLocationsBackupPlansBackupsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.list" call. @@ -4742,7 +4742,7 @@ func (c *ProjectsLocationsBackupPlansBackupsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.patch" call. @@ -4848,7 +4848,7 @@ func (c *ProjectsLocationsBackupPlansBackupsSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.setIamPolicy" call. @@ -4956,7 +4956,7 @@ func (c *ProjectsLocationsBackupPlansBackupsTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.testIamPermissions" call. @@ -5065,7 +5065,7 @@ func (c *ProjectsLocationsBackupPlansBackupsVolumeBackupsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.volumeBackups.get" call. @@ -5192,7 +5192,7 @@ func (c *ProjectsLocationsBackupPlansBackupsVolumeBackupsGetIamPolicyCall) doReq googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.volumeBackups.getIamPolicy" call. @@ -5334,7 +5334,7 @@ func (c *ProjectsLocationsBackupPlansBackupsVolumeBackupsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.volumeBackups.list" call. @@ -5461,7 +5461,7 @@ func (c *ProjectsLocationsBackupPlansBackupsVolumeBackupsSetIamPolicyCall) doReq googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.volumeBackups.setIamPolicy" call. @@ -5569,7 +5569,7 @@ func (c *ProjectsLocationsBackupPlansBackupsVolumeBackupsTestIamPermissionsCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.backupPlans.backups.volumeBackups.testIamPermissions" call. @@ -5679,7 +5679,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.operations.cancel" call. @@ -5777,7 +5777,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.operations.delete" call. @@ -5886,7 +5886,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.operations.get" call. @@ -6015,7 +6015,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.operations.list" call. @@ -6150,7 +6150,7 @@ func (c *ProjectsLocationsRestorePlansCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.create" call. @@ -6263,7 +6263,7 @@ func (c *ProjectsLocationsRestorePlansDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.delete" call. @@ -6372,7 +6372,7 @@ func (c *ProjectsLocationsRestorePlansGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.get" call. @@ -6499,7 +6499,7 @@ func (c *ProjectsLocationsRestorePlansGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.getIamPolicy" call. @@ -6641,7 +6641,7 @@ func (c *ProjectsLocationsRestorePlansListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.list" call. @@ -6778,7 +6778,7 @@ func (c *ProjectsLocationsRestorePlansPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.patch" call. @@ -6884,7 +6884,7 @@ func (c *ProjectsLocationsRestorePlansSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.setIamPolicy" call. @@ -6992,7 +6992,7 @@ func (c *ProjectsLocationsRestorePlansTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.testIamPermissions" call. @@ -7106,7 +7106,7 @@ func (c *ProjectsLocationsRestorePlansRestoresCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.create" call. @@ -7219,7 +7219,7 @@ func (c *ProjectsLocationsRestorePlansRestoresDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.delete" call. @@ -7328,7 +7328,7 @@ func (c *ProjectsLocationsRestorePlansRestoresGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.get" call. @@ -7455,7 +7455,7 @@ func (c *ProjectsLocationsRestorePlansRestoresGetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.getIamPolicy" call. @@ -7597,7 +7597,7 @@ func (c *ProjectsLocationsRestorePlansRestoresListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.list" call. @@ -7733,7 +7733,7 @@ func (c *ProjectsLocationsRestorePlansRestoresPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.patch" call. @@ -7839,7 +7839,7 @@ func (c *ProjectsLocationsRestorePlansRestoresSetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.setIamPolicy" call. @@ -7947,7 +7947,7 @@ func (c *ProjectsLocationsRestorePlansRestoresTestIamPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.testIamPermissions" call. @@ -8056,7 +8056,7 @@ func (c *ProjectsLocationsRestorePlansRestoresVolumeRestoresGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.volumeRestores.get" call. @@ -8183,7 +8183,7 @@ func (c *ProjectsLocationsRestorePlansRestoresVolumeRestoresGetIamPolicyCall) do googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.volumeRestores.getIamPolicy" call. @@ -8325,7 +8325,7 @@ func (c *ProjectsLocationsRestorePlansRestoresVolumeRestoresListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.volumeRestores.list" call. @@ -8452,7 +8452,7 @@ func (c *ProjectsLocationsRestorePlansRestoresVolumeRestoresSetIamPolicyCall) do googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.volumeRestores.setIamPolicy" call. @@ -8560,7 +8560,7 @@ func (c *ProjectsLocationsRestorePlansRestoresVolumeRestoresTestIamPermissionsCa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkebackup.projects.locations.restorePlans.restores.volumeRestores.testIamPermissions" call. diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index 897b874221c..652aa8dfa66 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -5832,7 +5832,7 @@ func (c *OrganizationsLocationsFleetsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.organizations.locations.fleets.list" call. @@ -5961,7 +5961,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.get" call. @@ -6092,7 +6092,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.list" call. @@ -6239,7 +6239,7 @@ func (c *ProjectsLocationsFeaturesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.create" call. @@ -6360,7 +6360,7 @@ func (c *ProjectsLocationsFeaturesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.delete" call. @@ -6477,7 +6477,7 @@ func (c *ProjectsLocationsFeaturesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.get" call. @@ -6604,7 +6604,7 @@ func (c *ProjectsLocationsFeaturesGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.getIamPolicy" call. @@ -6756,7 +6756,7 @@ func (c *ProjectsLocationsFeaturesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.list" call. @@ -6903,7 +6903,7 @@ func (c *ProjectsLocationsFeaturesPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.patch" call. @@ -7008,7 +7008,7 @@ func (c *ProjectsLocationsFeaturesSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.setIamPolicy" call. @@ -7116,7 +7116,7 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.testIamPermissions" call. @@ -7219,7 +7219,7 @@ func (c *ProjectsLocationsFleetsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.create" call. @@ -7316,7 +7316,7 @@ func (c *ProjectsLocationsFleetsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.delete" call. @@ -7424,7 +7424,7 @@ func (c *ProjectsLocationsFleetsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.get" call. @@ -7551,7 +7551,7 @@ func (c *ProjectsLocationsFleetsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.list" call. @@ -7683,7 +7683,7 @@ func (c *ProjectsLocationsFleetsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.patch" call. @@ -7815,7 +7815,7 @@ func (c *ProjectsLocationsMembershipsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.create" call. @@ -7938,7 +7938,7 @@ func (c *ProjectsLocationsMembershipsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.delete" call. @@ -8096,7 +8096,7 @@ func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.generateConnectManifest" call. @@ -8205,7 +8205,7 @@ func (c *ProjectsLocationsMembershipsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.get" call. @@ -8332,7 +8332,7 @@ func (c *ProjectsLocationsMembershipsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.getIamPolicy" call. @@ -8477,7 +8477,7 @@ func (c *ProjectsLocationsMembershipsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.list" call. @@ -8624,7 +8624,7 @@ func (c *ProjectsLocationsMembershipsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.patch" call. @@ -8729,7 +8729,7 @@ func (c *ProjectsLocationsMembershipsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.setIamPolicy" call. @@ -8837,7 +8837,7 @@ func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.testIamPermissions" call. @@ -8948,7 +8948,7 @@ func (c *ProjectsLocationsMembershipsBindingsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.create" call. @@ -9044,7 +9044,7 @@ func (c *ProjectsLocationsMembershipsBindingsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.delete" call. @@ -9152,7 +9152,7 @@ func (c *ProjectsLocationsMembershipsBindingsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.get" call. @@ -9285,7 +9285,7 @@ func (c *ProjectsLocationsMembershipsBindingsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.list" call. @@ -9417,7 +9417,7 @@ func (c *ProjectsLocationsMembershipsBindingsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.patch" call. @@ -9531,7 +9531,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.create" call. @@ -9627,7 +9627,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.delete" call. @@ -9742,7 +9742,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleB googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML" call. @@ -9851,7 +9851,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.get" call. @@ -9976,7 +9976,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.list" call. @@ -10110,7 +10110,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.patch" call. @@ -10219,7 +10219,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.cancel" call. @@ -10317,7 +10317,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.delete" call. @@ -10426,7 +10426,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.get" call. @@ -10554,7 +10554,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.list" call. @@ -10685,7 +10685,7 @@ func (c *ProjectsLocationsScopesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.create" call. @@ -10781,7 +10781,7 @@ func (c *ProjectsLocationsScopesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.delete" call. @@ -10889,7 +10889,7 @@ func (c *ProjectsLocationsScopesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.get" call. @@ -11016,7 +11016,7 @@ func (c *ProjectsLocationsScopesGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.getIamPolicy" call. @@ -11140,7 +11140,7 @@ func (c *ProjectsLocationsScopesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.list" call. @@ -11300,7 +11300,7 @@ func (c *ProjectsLocationsScopesListMembershipsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "scopeName": c.scopeName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.listMemberships" call. @@ -11446,7 +11446,7 @@ func (c *ProjectsLocationsScopesListPermittedCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.listPermitted" call. @@ -11577,7 +11577,7 @@ func (c *ProjectsLocationsScopesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.patch" call. @@ -11682,7 +11682,7 @@ func (c *ProjectsLocationsScopesSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.setIamPolicy" call. @@ -11790,7 +11790,7 @@ func (c *ProjectsLocationsScopesTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.testIamPermissions" call. @@ -11904,7 +11904,7 @@ func (c *ProjectsLocationsScopesNamespacesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.create" call. @@ -12000,7 +12000,7 @@ func (c *ProjectsLocationsScopesNamespacesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.delete" call. @@ -12108,7 +12108,7 @@ func (c *ProjectsLocationsScopesNamespacesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.get" call. @@ -12232,7 +12232,7 @@ func (c *ProjectsLocationsScopesNamespacesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.list" call. @@ -12363,7 +12363,7 @@ func (c *ProjectsLocationsScopesNamespacesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.patch" call. @@ -12476,7 +12476,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.create" call. @@ -12572,7 +12572,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.delete" call. @@ -12680,7 +12680,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.get" call. @@ -12805,7 +12805,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.list" call. @@ -12939,7 +12939,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.patch" call. diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 8d8cb2f6cf4..62fca9d6333 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -6630,7 +6630,7 @@ func (c *OrganizationsLocationsFleetsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.organizations.locations.fleets.list" call. @@ -6759,7 +6759,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.get" call. @@ -6890,7 +6890,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.list" call. @@ -7037,7 +7037,7 @@ func (c *ProjectsLocationsFeaturesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.create" call. @@ -7158,7 +7158,7 @@ func (c *ProjectsLocationsFeaturesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.delete" call. @@ -7275,7 +7275,7 @@ func (c *ProjectsLocationsFeaturesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.get" call. @@ -7402,7 +7402,7 @@ func (c *ProjectsLocationsFeaturesGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.getIamPolicy" call. @@ -7554,7 +7554,7 @@ func (c *ProjectsLocationsFeaturesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.list" call. @@ -7701,7 +7701,7 @@ func (c *ProjectsLocationsFeaturesPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.patch" call. @@ -7806,7 +7806,7 @@ func (c *ProjectsLocationsFeaturesSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.setIamPolicy" call. @@ -7914,7 +7914,7 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.testIamPermissions" call. @@ -8017,7 +8017,7 @@ func (c *ProjectsLocationsFleetsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.create" call. @@ -8114,7 +8114,7 @@ func (c *ProjectsLocationsFleetsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.delete" call. @@ -8222,7 +8222,7 @@ func (c *ProjectsLocationsFleetsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.get" call. @@ -8349,7 +8349,7 @@ func (c *ProjectsLocationsFleetsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.list" call. @@ -8481,7 +8481,7 @@ func (c *ProjectsLocationsFleetsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.patch" call. @@ -8613,7 +8613,7 @@ func (c *ProjectsLocationsMembershipsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.create" call. @@ -8736,7 +8736,7 @@ func (c *ProjectsLocationsMembershipsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.delete" call. @@ -8894,7 +8894,7 @@ func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.generateConnectManifest" call. @@ -9028,7 +9028,7 @@ func (c *ProjectsLocationsMembershipsGenerateExclusivityManifestCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.generateExclusivityManifest" call. @@ -9137,7 +9137,7 @@ func (c *ProjectsLocationsMembershipsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.get" call. @@ -9264,7 +9264,7 @@ func (c *ProjectsLocationsMembershipsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.getIamPolicy" call. @@ -9409,7 +9409,7 @@ func (c *ProjectsLocationsMembershipsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.list" call. @@ -9570,7 +9570,7 @@ func (c *ProjectsLocationsMembershipsListAdminCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.listAdmin" call. @@ -9717,7 +9717,7 @@ func (c *ProjectsLocationsMembershipsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.patch" call. @@ -9822,7 +9822,7 @@ func (c *ProjectsLocationsMembershipsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.setIamPolicy" call. @@ -9930,7 +9930,7 @@ func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.testIamPermissions" call. @@ -10036,7 +10036,7 @@ func (c *ProjectsLocationsMembershipsValidateCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.validateCreate" call. @@ -10163,7 +10163,7 @@ func (c *ProjectsLocationsMembershipsValidateExclusivityCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.validateExclusivity" call. @@ -10274,7 +10274,7 @@ func (c *ProjectsLocationsMembershipsBindingsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.create" call. @@ -10370,7 +10370,7 @@ func (c *ProjectsLocationsMembershipsBindingsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.delete" call. @@ -10478,7 +10478,7 @@ func (c *ProjectsLocationsMembershipsBindingsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.get" call. @@ -10611,7 +10611,7 @@ func (c *ProjectsLocationsMembershipsBindingsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.list" call. @@ -10743,7 +10743,7 @@ func (c *ProjectsLocationsMembershipsBindingsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.patch" call. @@ -10857,7 +10857,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.create" call. @@ -10953,7 +10953,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.delete" call. @@ -11068,7 +11068,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleB googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML" call. @@ -11177,7 +11177,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.get" call. @@ -11302,7 +11302,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.list" call. @@ -11436,7 +11436,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.patch" call. @@ -11545,7 +11545,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.cancel" call. @@ -11643,7 +11643,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.delete" call. @@ -11752,7 +11752,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.get" call. @@ -11880,7 +11880,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.list" call. @@ -12011,7 +12011,7 @@ func (c *ProjectsLocationsScopesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.create" call. @@ -12107,7 +12107,7 @@ func (c *ProjectsLocationsScopesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.delete" call. @@ -12215,7 +12215,7 @@ func (c *ProjectsLocationsScopesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.get" call. @@ -12342,7 +12342,7 @@ func (c *ProjectsLocationsScopesGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.getIamPolicy" call. @@ -12466,7 +12466,7 @@ func (c *ProjectsLocationsScopesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.list" call. @@ -12626,7 +12626,7 @@ func (c *ProjectsLocationsScopesListMembershipsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "scopeName": c.scopeName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.listMemberships" call. @@ -12772,7 +12772,7 @@ func (c *ProjectsLocationsScopesListPermittedCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.listPermitted" call. @@ -12903,7 +12903,7 @@ func (c *ProjectsLocationsScopesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.patch" call. @@ -13008,7 +13008,7 @@ func (c *ProjectsLocationsScopesSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.setIamPolicy" call. @@ -13116,7 +13116,7 @@ func (c *ProjectsLocationsScopesTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.testIamPermissions" call. @@ -13230,7 +13230,7 @@ func (c *ProjectsLocationsScopesNamespacesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.create" call. @@ -13326,7 +13326,7 @@ func (c *ProjectsLocationsScopesNamespacesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.delete" call. @@ -13434,7 +13434,7 @@ func (c *ProjectsLocationsScopesNamespacesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.get" call. @@ -13558,7 +13558,7 @@ func (c *ProjectsLocationsScopesNamespacesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.list" call. @@ -13689,7 +13689,7 @@ func (c *ProjectsLocationsScopesNamespacesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.patch" call. @@ -13802,7 +13802,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.create" call. @@ -13898,7 +13898,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.delete" call. @@ -14006,7 +14006,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.get" call. @@ -14131,7 +14131,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.list" call. @@ -14265,7 +14265,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.patch" call. diff --git a/gkehub/v1alpha2/gkehub-gen.go b/gkehub/v1alpha2/gkehub-gen.go index db6580506f0..64d0414e90e 100644 --- a/gkehub/v1alpha2/gkehub-gen.go +++ b/gkehub/v1alpha2/gkehub-gen.go @@ -92,12 +92,11 @@ const apiVersion = "v1alpha2" const basePath = "https://gkehub.googleapis.com/" const basePathTemplate = "https://gkehub.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://gkehub.mtls.googleapis.com/" -const defaultUniverseDomain = "googleapis.com" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -111,7 +110,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) - opts = append(opts, internaloption.WithDefaultUniverseDomain(defaultUniverseDomain)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -224,102 +223,82 @@ type ProjectsLocationsOperationsService struct { s *Service } -// ApplianceCluster: ApplianceCluster contains information specific to -// GDC Edge Appliance Clusters. +// ApplianceCluster: ApplianceCluster contains information specific to GDC Edge +// Appliance Clusters. type ApplianceCluster struct { - // ResourceLink: Immutable. Self-link of the Google Cloud resource for - // the Appliance Cluster. For example: - // //transferappliance.googleapis.com/projects/my-project/locations/us-we - // st1-a/appliances/my-appliance + // ResourceLink: Immutable. Self-link of the Google Cloud resource for the + // Appliance Cluster. For example: + // //transferappliance.googleapis.com/projects/my-project/locations/us-west1-a/a + // ppliances/my-appliance ResourceLink string `json:"resourceLink,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceLink") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceLink") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceLink") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApplianceCluster) MarshalJSON() ([]byte, error) { +func (s ApplianceCluster) MarshalJSON() ([]byte, error) { type NoMethod ApplianceCluster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what -// identities, if any, are exempted from logging. An AuditConfig must -// have one or more AuditLogConfigs. If there are AuditConfigs for both -// `allServices` and a specific service, the union of the two -// AuditConfigs is used for that service: the log_types specified in -// each AuditConfig are enabled, and the exempted_members in each -// AuditLogConfig are exempted. Example Policy with multiple -// AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": -// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { -// "log_type": "ADMIN_READ" } ] }, { "service": -// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": -// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy -// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts -// `jose@example.com` from DATA_READ logging, and `aliya@example.com` -// from DATA_WRITE logging. +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +// and a specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted. Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts `jose@example.com` from DATA_READ logging, and +// `aliya@example.com` from DATA_WRITE logging. type AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit logging. - // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - // `allServices` is a special value that covers all services. + // Service: Specifies a service that will be enabled for audit logging. For + // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` + // is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditConfig) MarshalJSON() ([]byte, error) { +func (s AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditLogConfig: Provides the configuration for logging a type of -// permissions. Example: { "audit_log_configs": [ { "log_type": -// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { -// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and -// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ -// logging. +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. type AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of permission. Follows the same format of - // Binding.members. + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. // // Possible values: @@ -328,453 +307,368 @@ type AuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Authority: Authority encodes how Google will recognize identities -// from this Membership. See the workload identity documentation for -// more details: +// Authority: Authority encodes how Google will recognize identities from this +// Membership. See the workload identity documentation for more details: // https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity type Authority struct { // IdentityProvider: Output only. An identity provider that reflects the // `issuer` in the workload identity pool. IdentityProvider string `json:"identityProvider,omitempty"` - - // Issuer: Optional. A JSON Web Token (JWT) issuer URI. `issuer` must - // start with `https://` and be a valid URL with length <2000 - // characters. If set, then Google will allow valid OIDC tokens from - // this issuer to authenticate within the workload_identity_pool. OIDC - // discovery will be performed on this URI to validate tokens from the - // issuer, unless `oidc_jwks` is set. Clearing `issuer` disables - // Workload Identity. `issuer` cannot be directly modified; it must be - // cleared (and Workload Identity disabled) before using a new issuer - // (and re-enabling Workload Identity). + // Issuer: Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start + // with `https://` and be a valid URL with length <2000 characters. If set, + // then Google will allow valid OIDC tokens from this issuer to authenticate + // within the workload_identity_pool. OIDC discovery will be performed on this + // URI to validate tokens from the issuer, unless `oidc_jwks` is set. Clearing + // `issuer` disables Workload Identity. `issuer` cannot be directly modified; + // it must be cleared (and Workload Identity disabled) before using a new + // issuer (and re-enabling Workload Identity). Issuer string `json:"issuer,omitempty"` - - // OidcJwks: Optional. OIDC verification keys for this Membership in - // JWKS format (RFC 7517). When this field is set, OIDC discovery will - // NOT be performed on `issuer`, and instead OIDC tokens will be - // validated using this field. + // OidcJwks: Optional. OIDC verification keys for this Membership in JWKS + // format (RFC 7517). When this field is set, OIDC discovery will NOT be + // performed on `issuer`, and instead OIDC tokens will be validated using this + // field. OidcJwks string `json:"oidcJwks,omitempty"` - - // WorkloadIdentityPool: Output only. The name of the workload identity - // pool in which `issuer` will be recognized. There is a single Workload - // Identity Pool per Hub that is shared between all Memberships that - // belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload - // pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject - // to change in newer versions of this API. + // WorkloadIdentityPool: Output only. The name of the workload identity pool in + // which `issuer` will be recognized. There is a single Workload Identity Pool + // per Hub that is shared between all Memberships that belong to that Hub. For + // a Hub hosted in {PROJECT_ID}, the workload pool format is + // `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer + // versions of this API. WorkloadIdentityPool string `json:"workloadIdentityPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "IdentityProvider") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IdentityProvider") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IdentityProvider") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Authority) MarshalJSON() ([]byte, error) { +func (s Authority) MarshalJSON() ([]byte, error) { type NoMethod Authority - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the - // current request. If the condition evaluates to `false`, then this - // binding does not apply to the current request. However, a different - // role binding might grant the same role to one or more of the - // principals in this binding. To learn which resources support - // conditions in their IAM policies, see the IAM documentation + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the principals in this binding. To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` - - // Members: Specifies the principals requesting access for a Google - // Cloud resource. `members` can have the following values: * - // `allUsers`: A special identifier that represents anyone who is on the - // internet; with or without a Google account. * - // `allAuthenticatedUsers`: A special identifier that represents anyone - // who is authenticated with a Google account or a service account. Does - // not include identities that come from external identity providers - // (IdPs) through identity federation. * `user:{emailid}`: An email + // Members: Specifies the principals requesting access for a Google Cloud + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. Does not include identities that come from external identity + // providers (IdPs) through identity federation. * `user:{emailid}`: An email // address that represents a specific Google account. For example, - // `alice@example.com` . * `serviceAccount:{emailid}`: An email address - // that represents a Google service account. For example, + // `alice@example.com` . * `serviceAccount:{emailid}`: An email address that + // represents a Google service account. For example, // `my-other-app@appspot.gserviceaccount.com`. * - // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: - // An identifier for a Kubernetes service account + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An + // identifier for a Kubernetes service account // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). - // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. - // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * `domain:{domain}`: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, `google.com` or `example.com`. * - // `principal://iam.googleapis.com/locations/global/workforcePools/{pool_ - // id}/subject/{subject_attribute_value}`: A single identity in a - // workforce identity pool. * - // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po - // ol_id}/group/{group_id}`: All workforce identities in a group. * - // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po - // ol_id}/attribute.{attribute_name}/{attribute_value}`: All workforce - // identities with a specific attribute value. * - // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po - // ol_id}/*`: All identities in a workforce identity pool. * - // `principal://iam.googleapis.com/projects/{project_number}/locations/gl - // obal/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value} - // `: A single identity in a workload identity pool. * - // `principalSet://iam.googleapis.com/projects/{project_number}/locations - // /global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload - // identity pool group. * - // `principalSet://iam.googleapis.com/projects/{project_number}/locations - // /global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{at - // tribute_value}`: All identities in a workload identity pool with a - // certain attribute. * - // `principalSet://iam.googleapis.com/projects/{project_number}/locations - // /global/workloadIdentityPools/{pool_id}/*`: All identities in a - // workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An - // email address (plus unique identifier) representing a user that has - // been recently deleted. For example, - // `alice@example.com?uid=123456789012345678901`. If the user is - // recovered, this value reverts to `user:{emailid}` and the recovered - // user retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus unique identifier) representing a service account that has been + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + // `group:{emailid}`: An email address that represents a Google group. For + // example, `admins@example.com`. * `domain:{domain}`: The G Suite domain + // (primary) that represents all the users of that domain. For example, + // `google.com` or `example.com`. * + // `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub + // ject/{subject_attribute_value}`: A single identity in a workforce identity + // pool. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ + // group/{group_id}`: All workforce identities in a group. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ + // attribute.{attribute_name}/{attribute_value}`: All workforce identities with + // a specific attribute value. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ + // *`: All identities in a workforce identity pool. * + // `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo + // rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + // identity in a workload identity pool. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global + // /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool + // group. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global + // /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value} + // `: All identities in a workload identity pool with a certain attribute. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global + // /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity + // pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a user that has been recently deleted. For + // example, `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered user + // retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a service account that has been recently + // deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the + // service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + // address (plus unique identifier) representing a Google group that has been // recently deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: - // An email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is - // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * - // `deleted:principal://iam.googleapis.com/locations/global/workforcePool - // s/{pool_id}/subject/{subject_attribute_value}`: Deleted single - // identity in a workforce identity pool. For example, - // `deleted:principal://iam.googleapis.com/locations/global/workforcePool - // s/my-pool-id/subject/my-subject-attribute-value`. + // `admins@example.com?uid=123456789012345678901`. If the group is recovered, + // this value reverts to `group:{emailid}` and the recovered group retains the + // role in the binding. * + // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool + // _id}/subject/{subject_attribute_value}`: Deleted single identity in a + // workforce identity pool. For example, + // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po + // ol-id/subject/my-subject-attribute-value`. Members []string `json:"members,omitempty"` - - // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an - // overview of the IAM roles and permissions, see the IAM documentation + // Role: Role that is assigned to the list of `members`, or principals. For + // example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview + // of the IAM roles and permissions, see the IAM documentation // (https://cloud.google.com/iam/docs/roles-overview). For a list of the // available pre-defined roles, see here // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. +// CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } -// ConnectAgentResource: ConnectAgentResource represents a Kubernetes -// resource manifest for Connect Agent deployment. +// ConnectAgentResource: ConnectAgentResource represents a Kubernetes resource +// manifest for Connect Agent deployment. type ConnectAgentResource struct { // Manifest: YAML manifest of the resource. Manifest string `json:"manifest,omitempty"` - // Type: Kubernetes type of the resource. Type *TypeMeta `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Manifest") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Manifest") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Manifest") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConnectAgentResource) MarshalJSON() ([]byte, error) { +func (s ConnectAgentResource) MarshalJSON() ([]byte, error) { type NoMethod ConnectAgentResource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EdgeCluster: EdgeCluster contains information specific to Google Edge // Clusters. type EdgeCluster struct { - // ResourceLink: Immutable. Self-link of the Google Cloud resource for - // the Edge Cluster. For example: - // //edgecontainer.googleapis.com/projects/my-project/locations/us-west1- - // a/clusters/my-cluster + // ResourceLink: Immutable. Self-link of the Google Cloud resource for the Edge + // Cluster. For example: + // //edgecontainer.googleapis.com/projects/my-project/locations/us-west1-a/clust + // ers/my-cluster ResourceLink string `json:"resourceLink,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceLink") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceLink") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceLink") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EdgeCluster) MarshalJSON() ([]byte, error) { +func (s EdgeCluster) MarshalJSON() ([]byte, error) { type NoMethod EdgeCluster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec. Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if // requestor is the document owner" expression: "document.owner == // request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GenerateConnectManifestResponse: GenerateConnectManifestResponse -// contains manifest information for installing/upgrading a Connect -// agent. +// GenerateConnectManifestResponse: GenerateConnectManifestResponse contains +// manifest information for installing/upgrading a Connect agent. type GenerateConnectManifestResponse struct { - // Manifest: The ordered list of Kubernetes resources that need to be - // applied to the cluster for GKE Connect agent installation/upgrade. + // Manifest: The ordered list of Kubernetes resources that need to be applied + // to the cluster for GKE Connect agent installation/upgrade. Manifest []*ConnectAgentResource `json:"manifest,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Manifest") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Manifest") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Manifest") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GenerateConnectManifestResponse) MarshalJSON() ([]byte, error) { +func (s GenerateConnectManifestResponse) MarshalJSON() ([]byte, error) { type NoMethod GenerateConnectManifestResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GkeCluster: GkeCluster contains information specific to GKE clusters. type GkeCluster struct { - // ClusterMissing: Output only. If cluster_missing is set then it - // denotes that the GKE cluster no longer exists in the GKE Control - // Plane. + // ClusterMissing: Output only. If cluster_missing is set then it denotes that + // the GKE cluster no longer exists in the GKE Control Plane. ClusterMissing bool `json:"clusterMissing,omitempty"` - - // ResourceLink: Immutable. Self-link of the Google Cloud resource for - // the GKE cluster. For example: - // //container.googleapis.com/projects/my-project/locations/us-west1-a/cl - // usters/my-cluster Zonal clusters are also supported. + // ResourceLink: Immutable. Self-link of the Google Cloud resource for the GKE + // cluster. For example: + // //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/ + // my-cluster Zonal clusters are also supported. ResourceLink string `json:"resourceLink,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterMissing") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterMissing") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClusterMissing") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GkeCluster) MarshalJSON() ([]byte, error) { +func (s GkeCluster) MarshalJSON() ([]byte, error) { type NoMethod GkeCluster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleRpcStatus: The `Status` type defines a logical error model that -// is suitable for different programming environments, including REST -// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// GoogleRpcStatus: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs and RPC +// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message +// contains three pieces of data: error code, error message, and error details. +// You can find out more about this error model and how to work with it in the +// API Design Guide (https://cloud.google.com/apis/design/errors). type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { +func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleRpcStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InitializeHubRequest: Request message for the InitializeHub method. @@ -783,490 +677,377 @@ type InitializeHubRequest struct { // InitializeHubResponse: Response message for the InitializeHub method. type InitializeHubResponse struct { - // ServiceIdentity: Name of the Hub default service identity, in the - // format: service-@gcp-sa-gkehub.iam.gserviceaccount.com The service - // account has `roles/gkehub.serviceAgent` in the Hub project. + // ServiceIdentity: Name of the Hub default service identity, in the format: + // service-@gcp-sa-gkehub.iam.gserviceaccount.com The service account has + // `roles/gkehub.serviceAgent` in the Hub project. ServiceIdentity string `json:"serviceIdentity,omitempty"` - // WorkloadIdentityPool: The Workload Identity Pool used for Workload - // Identity-enabled clusters registered with this Hub. Format: - // `.hub.id.goog` + // Identity-enabled clusters registered with this Hub. Format: `.hub.id.goog` WorkloadIdentityPool string `json:"workloadIdentityPool,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ServiceIdentity") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ServiceIdentity") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ServiceIdentity") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InitializeHubResponse) MarshalJSON() ([]byte, error) { +func (s InitializeHubResponse) MarshalJSON() ([]byte, error) { type NoMethod InitializeHubResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// KubernetesMetadata: KubernetesMetadata provides informational -// metadata for Memberships that are created from Kubernetes Endpoints -// (currently, these are equivalent to Kubernetes clusters). +// KubernetesMetadata: KubernetesMetadata provides informational metadata for +// Memberships that are created from Kubernetes Endpoints (currently, these are +// equivalent to Kubernetes clusters). type KubernetesMetadata struct { - // KubernetesApiServerVersion: Output only. Kubernetes API server - // version string as reported by '/version'. + // KubernetesApiServerVersion: Output only. Kubernetes API server version + // string as reported by '/version'. KubernetesApiServerVersion string `json:"kubernetesApiServerVersion,omitempty"` - - // MemoryMb: Output only. The total memory capacity as reported by the - // sum of all Kubernetes nodes resources, defined in MB. + // MemoryMb: Output only. The total memory capacity as reported by the sum of + // all Kubernetes nodes resources, defined in MB. MemoryMb int64 `json:"memoryMb,omitempty"` - // NodeCount: Output only. Node count as reported by Kubernetes nodes // resources. NodeCount int64 `json:"nodeCount,omitempty"` - - // NodeProviderId: Output only. Node providerID as reported by the first - // node in the list of nodes on the Kubernetes endpoint. On Kubernetes - // platforms that support zero-node clusters (like GKE-on-GCP), the - // node_count will be zero and the node_provider_id will be empty. + // NodeProviderId: Output only. Node providerID as reported by the first node + // in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms + // that support zero-node clusters (like GKE-on-GCP), the node_count will be + // zero and the node_provider_id will be empty. NodeProviderId string `json:"nodeProviderId,omitempty"` - - // UpdateTime: Output only. The time at which these details were last - // updated. This update_time is different from the Membership-level - // update_time since EndpointDetails are updated internally for API - // consumers. + // UpdateTime: Output only. The time at which these details were last updated. + // This update_time is different from the Membership-level update_time since + // EndpointDetails are updated internally for API consumers. UpdateTime string `json:"updateTime,omitempty"` - // VcpuCount: Output only. vCPU count as reported by Kubernetes nodes // resources. VcpuCount int64 `json:"vcpuCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "KubernetesApiServerVersion") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "KubernetesApiServerVersion") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "KubernetesApiServerVersion") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "KubernetesApiServerVersion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KubernetesMetadata) MarshalJSON() ([]byte, error) { +func (s KubernetesMetadata) MarshalJSON() ([]byte, error) { type NoMethod KubernetesMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// KubernetesResource: KubernetesResource contains the YAML manifests -// and configuration for Membership Kubernetes resources in the cluster. -// After CreateMembership or UpdateMembership, these resources should be -// re-applied in the cluster. +// KubernetesResource: KubernetesResource contains the YAML manifests and +// configuration for Membership Kubernetes resources in the cluster. After +// CreateMembership or UpdateMembership, these resources should be re-applied +// in the cluster. type KubernetesResource struct { - // ConnectResources: Output only. The Kubernetes resources for - // installing the GKE Connect agent. This field is only populated in the - // Membership returned from a successful long-running operation from - // CreateMembership or UpdateMembership. It is not populated during - // normal GetMembership or ListMemberships requests. To get the resource - // manifest after the initial registration, the caller should make a - // UpdateMembership call with an empty field mask. + // ConnectResources: Output only. The Kubernetes resources for installing the + // GKE Connect agent. This field is only populated in the Membership returned + // from a successful long-running operation from CreateMembership or + // UpdateMembership. It is not populated during normal GetMembership or + // ListMemberships requests. To get the resource manifest after the initial + // registration, the caller should make a UpdateMembership call with an empty + // field mask. ConnectResources []*ResourceManifest `json:"connectResources,omitempty"` - - // MembershipCrManifest: Input only. The YAML representation of the - // Membership CR. This field is ignored for GKE clusters where Hub can - // read the CR directly. Callers should provide the CR that is currently - // present in the cluster during Create or Update, or leave this field - // empty if none exists. The CR manifest is used to validate the cluster - // has not been registered with another Membership. + // MembershipCrManifest: Input only. The YAML representation of the Membership + // CR. This field is ignored for GKE clusters where Hub can read the CR + // directly. Callers should provide the CR that is currently present in the + // cluster during Create or Update, or leave this field empty if none exists. + // The CR manifest is used to validate the cluster has not been registered with + // another Membership. MembershipCrManifest string `json:"membershipCrManifest,omitempty"` - - // MembershipResources: Output only. Additional Kubernetes resources - // that need to be applied to the cluster after Membership creation, and - // after every update. This field is only populated in the Membership - // returned from a successful long-running operation from - // CreateMembership or UpdateMembership. It is not populated during - // normal GetMembership or ListMemberships requests. To get the resource - // manifest after the initial registration, the caller should make a - // UpdateMembership call with an empty field mask. + // MembershipResources: Output only. Additional Kubernetes resources that need + // to be applied to the cluster after Membership creation, and after every + // update. This field is only populated in the Membership returned from a + // successful long-running operation from CreateMembership or UpdateMembership. + // It is not populated during normal GetMembership or ListMemberships requests. + // To get the resource manifest after the initial registration, the caller + // should make a UpdateMembership call with an empty field mask. MembershipResources []*ResourceManifest `json:"membershipResources,omitempty"` - - // ResourceOptions: Optional. Options for Kubernetes resource - // generation. + // ResourceOptions: Optional. Options for Kubernetes resource generation. ResourceOptions *ResourceOptions `json:"resourceOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConnectResources") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConnectResources") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConnectResources") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KubernetesResource) MarshalJSON() ([]byte, error) { +func (s KubernetesResource) MarshalJSON() ([]byte, error) { type NoMethod KubernetesResource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. +// ListLocationsResponse: The response message for Locations.ListLocations. type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. + // Locations: A list of locations that matches the specified filter in the + // request. Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListMembershipsResponse: Response message for the -// `GkeHub.ListMemberships` method. +// ListMembershipsResponse: Response message for the `GkeHub.ListMemberships` +// method. type ListMembershipsResponse struct { // NextPageToken: A token to request the next page of resources from the - // `ListMemberships` method. The value of an empty string means that - // there are no more resources to return. + // `ListMemberships` method. The value of an empty string means that there are + // no more resources to return. NextPageToken string `json:"nextPageToken,omitempty"` - // Resources: The list of matching Memberships. Resources []*Membership `json:"resources,omitempty"` - - // Unreachable: List of locations that could not be reached while - // fetching this list. + // Unreachable: List of locations that could not be reached while fetching this + // list. Unreachable []string `json:"unreachable,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListMembershipsResponse) MarshalJSON() ([]byte, error) { +func (s ListMembershipsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListMembershipsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Location: A resource that represents a Google Cloud location. type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". + // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Membership: Membership contains information about a member cluster. type Membership struct { - // Authority: Optional. How to identify workloads from this Membership. - // See the documentation on Workload Identity for more details: + // Authority: Optional. How to identify workloads from this Membership. See the + // documentation on Workload Identity for more details: // https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity Authority *Authority `json:"authority,omitempty"` - // CreateTime: Output only. When the Membership was created. CreateTime string `json:"createTime,omitempty"` - // DeleteTime: Output only. When the Membership was deleted. DeleteTime string `json:"deleteTime,omitempty"` - - // Description: Output only. Description of this membership, limited to - // 63 characters. Must match the regex: `a-zA-Z0-9*` This field is - // present for legacy purposes. + // Description: Output only. Description of this membership, limited to 63 + // characters. Must match the regex: `a-zA-Z0-9*` This field is present for + // legacy purposes. Description string `json:"description,omitempty"` - // Endpoint: Optional. Endpoint information to reach this member. Endpoint *MembershipEndpoint `json:"endpoint,omitempty"` - // ExternalId: Optional. An externally-generated and managed ID for this // Membership. This ID may be modified after creation, but this is not - // recommended. For GKE clusters, external_id is managed by the Hub API - // and updates will be ignored. The ID must match the regex: - // `a-zA-Z0-9*` If this Membership represents a Kubernetes cluster, this - // value should be set to the UID of the `kube-system` namespace object. + // recommended. For GKE clusters, external_id is managed by the Hub API and + // updates will be ignored. The ID must match the regex: `a-zA-Z0-9*` If this + // Membership represents a Kubernetes cluster, this value should be set to the + // UID of the `kube-system` namespace object. ExternalId string `json:"externalId,omitempty"` - - // InfrastructureType: Optional. The infrastructure type this Membership - // is running on. + // InfrastructureType: Optional. The infrastructure type this Membership is + // running on. // // Possible values: // "INFRASTRUCTURE_TYPE_UNSPECIFIED" - No type was specified. Some Hub // functionality may require a type be specified, and will not support // Memberships with this value. - // "ON_PREM" - Private infrastructure that is owned or operated by - // customer. This includes GKE distributions such as GKE-OnPrem and - // GKE-OnBareMetal. + // "ON_PREM" - Private infrastructure that is owned or operated by customer. + // This includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal. // "MULTI_CLOUD" - Public cloud infrastructure. InfrastructureType string `json:"infrastructureType,omitempty"` - // Labels: Optional. Labels for this membership. Labels map[string]string `json:"labels,omitempty"` - - // LastConnectionTime: Output only. For clusters using Connect, the - // timestamp of the most recent connection established with Google - // Cloud. This time is updated every several minutes, not continuously. - // For clusters that do not use GKE Connect, or that have never - // connected successfully, this field will be unset. + // LastConnectionTime: Output only. For clusters using Connect, the timestamp + // of the most recent connection established with Google Cloud. This time is + // updated every several minutes, not continuously. For clusters that do not + // use GKE Connect, or that have never connected successfully, this field will + // be unset. LastConnectionTime string `json:"lastConnectionTime,omitempty"` - - // MonitoringConfig: Optional. The monitoring config information for - // this membership. + // MonitoringConfig: Optional. The monitoring config information for this + // membership. MonitoringConfig *MonitoringConfig `json:"monitoringConfig,omitempty"` - - // Name: Output only. The full, unique name of this Membership resource - // in the format `projects/*/locations/*/memberships/{membership_id}`, - // set during creation. `membership_id` must be a valid RFC 1123 - // compliant DNS label: 1. At most 63 characters in length 2. It must - // consist of lower case alphanumeric characters or `-` 3. It must start - // and end with an alphanumeric character Which can be expressed as the - // regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 - // characters. + // Name: Output only. The full, unique name of this Membership resource in the + // format `projects/*/locations/*/memberships/{membership_id}`, set during + // creation. `membership_id` must be a valid RFC 1123 compliant DNS label: 1. + // At most 63 characters in length 2. It must consist of lower case + // alphanumeric characters or `-` 3. It must start and end with an alphanumeric + // character Which can be expressed as the regex: + // `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters. Name string `json:"name,omitempty"` - // State: Output only. State of the Membership resource. State *MembershipState `json:"state,omitempty"` - - // UniqueId: Output only. Google-generated UUID for this resource. This - // is unique across all Membership resources. If a Membership resource - // is deleted and another resource with the same name is created, it - // gets a different unique_id. + // UniqueId: Output only. Google-generated UUID for this resource. This is + // unique across all Membership resources. If a Membership resource is deleted + // and another resource with the same name is created, it gets a different + // unique_id. UniqueId string `json:"uniqueId,omitempty"` - // UpdateTime: Output only. When the Membership was last updated. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Authority") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Authority") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Authority") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Membership) MarshalJSON() ([]byte, error) { +func (s Membership) MarshalJSON() ([]byte, error) { type NoMethod Membership - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MembershipEndpoint: MembershipEndpoint contains information needed to -// contact a Kubernetes API, endpoint and any additional Kubernetes -// metadata. +// contact a Kubernetes API, endpoint and any additional Kubernetes metadata. type MembershipEndpoint struct { - // ApplianceCluster: Optional. Specific information for a GDC Edge - // Appliance cluster. - ApplianceCluster *ApplianceCluster `json:"applianceCluster,omitempty"` - - // EdgeCluster: Optional. Specific information for a Google Edge + // ApplianceCluster: Optional. Specific information for a GDC Edge Appliance // cluster. + ApplianceCluster *ApplianceCluster `json:"applianceCluster,omitempty"` + // EdgeCluster: Optional. Specific information for a Google Edge cluster. EdgeCluster *EdgeCluster `json:"edgeCluster,omitempty"` - // GkeCluster: Optional. Specific information for a GKE-on-GCP cluster. GkeCluster *GkeCluster `json:"gkeCluster,omitempty"` - // KubernetesMetadata: Output only. Useful Kubernetes-specific metadata. KubernetesMetadata *KubernetesMetadata `json:"kubernetesMetadata,omitempty"` - - // KubernetesResource: Optional. The in-cluster Kubernetes Resources - // that should be applied for a correctly registered cluster, in the - // steady state. These resources: * Ensure that the cluster is - // exclusively registered to one and only one Hub Membership. * - // Propagate Workload Pool Information available in the Membership - // Authority field. * Ensure proper initial configuration of default Hub - // Features. + // KubernetesResource: Optional. The in-cluster Kubernetes Resources that + // should be applied for a correctly registered cluster, in the steady state. + // These resources: * Ensure that the cluster is exclusively registered to one + // and only one Hub Membership. * Propagate Workload Pool Information available + // in the Membership Authority field. * Ensure proper initial configuration of + // default Hub Features. KubernetesResource *KubernetesResource `json:"kubernetesResource,omitempty"` - - // MultiCloudCluster: Optional. Specific information for a GKE - // Multi-Cloud cluster. + // MultiCloudCluster: Optional. Specific information for a GKE Multi-Cloud + // cluster. MultiCloudCluster *MultiCloudCluster `json:"multiCloudCluster,omitempty"` - - // OnPremCluster: Optional. Specific information for a GKE On-Prem - // cluster. An onprem user-cluster who has no resourceLink is not - // allowed to use this field, it should have a nil "type" instead. + // OnPremCluster: Optional. Specific information for a GKE On-Prem cluster. An + // onprem user-cluster who has no resourceLink is not allowed to use this + // field, it should have a nil "type" instead. OnPremCluster *OnPremCluster `json:"onPremCluster,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApplianceCluster") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApplianceCluster") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApplianceCluster") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MembershipEndpoint) MarshalJSON() ([]byte, error) { +func (s MembershipEndpoint) MarshalJSON() ([]byte, error) { type NoMethod MembershipEndpoint - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MembershipState: MembershipState describes the state of a Membership @@ -1280,138 +1061,111 @@ type MembershipState struct { // "READY" - The cluster is registered. // "DELETING" - The cluster is being unregistered. // "UPDATING" - The Membership is being updated. - // "SERVICE_UPDATING" - The Membership is being updated by the Hub - // Service. + // "SERVICE_UPDATING" - The Membership is being updated by the Hub Service. Code string `json:"code,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MembershipState) MarshalJSON() ([]byte, error) { +func (s MembershipState) MarshalJSON() ([]byte, error) { type NoMethod MembershipState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MonitoringConfig: MonitoringConfig informs Fleet-based -// applications/services/UIs how the metrics for the underlying cluster -// is reported to cloud monitoring services. It can be set from empty to -// non-empty, but can't be mutated directly to prevent accidentally -// breaking the constinousty of metrics. +// applications/services/UIs how the metrics for the underlying cluster is +// reported to cloud monitoring services. It can be set from empty to +// non-empty, but can't be mutated directly to prevent accidentally breaking +// the constinousty of metrics. type MonitoringConfig struct { // Cluster: Optional. Cluster name used to report metrics. For Anthos on // VMWare/Baremetal/MultiCloud clusters, it would be in format // {cluster_type}/{cluster_name}, e.g., "awsClusters/cluster_1". Cluster string `json:"cluster,omitempty"` - - // ClusterHash: Optional. For GKE and Multicloud clusters, this is the - // UUID of the cluster resource. For VMWare and Baremetal clusters, this - // is the kube-system UID. + // ClusterHash: Optional. For GKE and Multicloud clusters, this is the UUID of + // the cluster resource. For VMWare and Baremetal clusters, this is the + // kube-system UID. ClusterHash string `json:"clusterHash,omitempty"` - - // KubernetesMetricsPrefix: Optional. Kubernetes system metrics, if - // available, are written to this prefix. This defaults to kubernetes.io - // for GKE, and kubernetes.io/anthos for Anthos eventually. Noted: - // Anthos MultiCloud will have kubernetes.io prefix today but will - // migration to be under kubernetes.io/anthos. + // KubernetesMetricsPrefix: Optional. Kubernetes system metrics, if available, + // are written to this prefix. This defaults to kubernetes.io for GKE, and + // kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud will + // have kubernetes.io prefix today but will migration to be under + // kubernetes.io/anthos. KubernetesMetricsPrefix string `json:"kubernetesMetricsPrefix,omitempty"` - // Location: Optional. Location used to report Metrics Location string `json:"location,omitempty"` - // ProjectId: Optional. Project used to report Metrics ProjectId string `json:"projectId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cluster") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cluster") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cluster") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cluster") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MonitoringConfig) MarshalJSON() ([]byte, error) { +func (s MonitoringConfig) MarshalJSON() ([]byte, error) { type NoMethod MonitoringConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MultiCloudCluster: MultiCloudCluster contains information specific to -// GKE Multi-Cloud clusters. +// MultiCloudCluster: MultiCloudCluster contains information specific to GKE +// Multi-Cloud clusters. type MultiCloudCluster struct { - // ClusterMissing: Output only. If cluster_missing is set then it - // denotes that API(gkemulticloud.googleapis.com) resource for this GKE - // Multi-Cloud cluster no longer exists. + // ClusterMissing: Output only. If cluster_missing is set then it denotes that + // API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster + // no longer exists. ClusterMissing bool `json:"clusterMissing,omitempty"` - - // ResourceLink: Immutable. Self-link of the Google Cloud resource for - // the GKE Multi-Cloud cluster. For example: - // //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1- - // a/awsClusters/my-cluster - // //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1- - // a/azureClusters/my-cluster - // //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1- - // a/attachedClusters/my-cluster + // ResourceLink: Immutable. Self-link of the Google Cloud resource for the GKE + // Multi-Cloud cluster. For example: + // //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsCl + // usters/my-cluster + // //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azure + // Clusters/my-cluster + // //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/attac + // hedClusters/my-cluster ResourceLink string `json:"resourceLink,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterMissing") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterMissing") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClusterMissing") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MultiCloudCluster) MarshalJSON() ([]byte, error) { +func (s MultiCloudCluster) MarshalJSON() ([]byte, error) { type NoMethod MultiCloudCluster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OnPremCluster: OnPremCluster contains information specific to GKE -// On-Prem clusters. +// OnPremCluster: OnPremCluster contains information specific to GKE On-Prem +// clusters. type OnPremCluster struct { // AdminCluster: Immutable. Whether the cluster is an admin cluster. AdminCluster bool `json:"adminCluster,omitempty"` - - // ClusterMissing: Output only. If cluster_missing is set then it - // denotes that API(gkeonprem.googleapis.com) resource for this GKE - // On-Prem cluster no longer exists. + // ClusterMissing: Output only. If cluster_missing is set then it denotes that + // API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no + // longer exists. ClusterMissing bool `json:"clusterMissing,omitempty"` - // ClusterType: Immutable. The on prem cluster's type. // // Possible values: @@ -1421,479 +1175,374 @@ type OnPremCluster struct { // "STANDALONE" - The ClusterType is baremetal standalone cluster. // "USER" - The ClusterType is user cluster. ClusterType string `json:"clusterType,omitempty"` - - // ResourceLink: Immutable. Self-link of the Google Cloud resource for - // the GKE On-Prem cluster. For example: - // //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vm - // wareClusters/my-cluster - // //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/ba - // reMetalClusters/my-cluster + // ResourceLink: Immutable. Self-link of the Google Cloud resource for the GKE + // On-Prem cluster. For example: + // //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClu + // sters/my-cluster + // //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetal + // Clusters/my-cluster ResourceLink string `json:"resourceLink,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdminCluster") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdminCluster") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdminCluster") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OnPremCluster) MarshalJSON() ([]byte, error) { +func (s OnPremCluster) MarshalJSON() ([]byte, error) { type NoMethod OnPremCluster - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal, successful response of the operation. If the - // original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadata: Represents the metadata of the long-running -// operation. +// OperationMetadata: Represents the metadata of the long-running operation. type OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` - - // CancelRequested: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // CancelRequested: Output only. Identifies whether the user has requested + // cancellation of the operation. Operations that have successfully been + // cancelled have Operation.error value with a google.rpc.Status.code of 1, + // corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` - // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - - // StatusDetail: Output only. Human-readable status of the operation, if - // any. + // StatusDetail: Output only. Human-readable status of the operation, if any. StatusDetail string `json:"statusDetail,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Output only. Server-defined resource path for the target of the + // operation. Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { +func (s OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members`, or -// principals, to a single `role`. Principals can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. For some types of -// Google Cloud resources, a `binding` can also specify a `condition`, -// which is a logical expression that allows access to a resource only -// if the expression evaluates to `true`. A condition can add -// constraints based on attributes of the request, the resource, or -// both. To learn which resources support conditions in their IAM -// policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** ``` { "bindings": [ { "role": + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which specifies +// access controls for Google Cloud resources. A `Policy` is a collection of +// `bindings`. A `binding` binds one or more `members`, or principals, to a +// single `role`. Principals can be user accounts, service accounts, Google +// groups, and domains (such as G Suite). A `role` is a named list of +// permissions; each `role` can be an IAM predefined role or a user-created +// custom role. For some types of Google Cloud resources, a `binding` can also +// specify a `condition`, which is a logical expression that allows access to a +// resource only if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or both. To +// learn which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** ``` { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` -// bindings: - members: - user:mike@example.com - -// group:admins@example.com - domain:google.com - -// serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com +// role: roles/resourcemanager.organizationAdmin - members: - // user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// ``` For a description of IAM and its features, see the IAM -// documentation (https://cloud.google.com/iam/docs/). +// condition: title: expirable access description: Does not grant access after +// Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +// etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, +// see the IAM documentation (https://cloud.google.com/iam/docs/). type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - - // Bindings: Associates a list of `members`, or principals, with a - // `role`. Optionally, may specify a `condition` that determines how and - // when the `bindings` are applied. Each of the `bindings` must contain - // at least one principal. The `bindings` in a `Policy` can refer to up - // to 1,500 principals; up to 250 of these principals can be Google - // groups. Each occurrence of a principal counts towards these limits. - // For example, if the `bindings` grant 50 different roles to - // `user:alice@example.com`, and not to any other principal, then you - // can add another 1,450 principals to the `bindings` in the `Policy`. + // Bindings: Associates a list of `members`, or principals, with a `role`. + // Optionally, may specify a `condition` that determines how and when the + // `bindings` are applied. Each of the `bindings` must contain at least one + // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; + // up to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the `bindings` grant + // 50 different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. Bindings []*Binding `json:"bindings,omitempty"` - - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the IAM - // documentation + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResourceManifest: ResourceManifest represents a single Kubernetes -// resource to be applied to the cluster. +// ResourceManifest: ResourceManifest represents a single Kubernetes resource +// to be applied to the cluster. type ResourceManifest struct { // ClusterScoped: Whether the resource provided in the manifest is - // `cluster_scoped`. If unset, the manifest is assumed to be namespace - // scoped. This field is used for REST mapping when applying the - // resource in a cluster. + // `cluster_scoped`. If unset, the manifest is assumed to be namespace scoped. + // This field is used for REST mapping when applying the resource in a cluster. ClusterScoped bool `json:"clusterScoped,omitempty"` - // Manifest: YAML manifest of the resource. Manifest string `json:"manifest,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterScoped") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClusterScoped") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClusterScoped") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResourceManifest) MarshalJSON() ([]byte, error) { +func (s ResourceManifest) MarshalJSON() ([]byte, error) { type NoMethod ResourceManifest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResourceOptions: ResourceOptions represent options for Kubernetes -// resource generation. +// ResourceOptions: ResourceOptions represent options for Kubernetes resource +// generation. type ResourceOptions struct { // ConnectVersion: Optional. The Connect agent version to use for - // connect_resources. Defaults to the latest GKE Connect version. The - // version must be a currently supported version, obsolete versions will - // be rejected. + // connect_resources. Defaults to the latest GKE Connect version. The version + // must be a currently supported version, obsolete versions will be rejected. ConnectVersion string `json:"connectVersion,omitempty"` - - // K8sVersion: Optional. Major version of the Kubernetes cluster. This - // is only used to determine which version to use for the - // CustomResourceDefinition resources, `apiextensions/v1beta1` - // or`apiextensions/v1`. + // K8sVersion: Optional. Major version of the Kubernetes cluster. This is only + // used to determine which version to use for the CustomResourceDefinition + // resources, `apiextensions/v1beta1` or`apiextensions/v1`. K8sVersion string `json:"k8sVersion,omitempty"` - // V1beta1Crd: Optional. Use `apiextensions/v1beta1` instead of - // `apiextensions/v1` for CustomResourceDefinition resources. This - // option should be set for clusters with Kubernetes apiserver versions - // <1.16. + // `apiextensions/v1` for CustomResourceDefinition resources. This option + // should be set for clusters with Kubernetes apiserver versions <1.16. V1beta1Crd bool `json:"v1beta1Crd,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConnectVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConnectVersion") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConnectVersion") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResourceOptions) MarshalJSON() ([]byte, error) { +func (s ResourceOptions) MarshalJSON() ([]byte, error) { type NoMethod ResourceOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Google Cloud services - // (such as Projects) might reject them. + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Google Cloud services (such as Projects) might reject + // them. Policy *Policy `json:"policy,omitempty"` - - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only the fields in the mask will be modified. If no - // mask is provided, the following default mask is used: `paths: - // "bindings, etag" + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only the fields in the mask will be modified. If no mask is + // provided, the following default mask is used: `paths: "bindings, etag" UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. +// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as `*` or `storage.*`) are not - // allowed. For more information see IAM Overview + // Permissions: The set of permissions to check for the `resource`. Permissions + // with wildcards (such as `*` or `storage.*`) are not allowed. For more + // information see IAM Overview // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsResponse: Response message for `TestIamPermissions` // method. type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is allowed. + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TypeMeta: TypeMeta is the type information needed for content -// unmarshalling of Kubernetes resources in the manifest. +// TypeMeta: TypeMeta is the type information needed for content unmarshalling +// of Kubernetes resources in the manifest. type TypeMeta struct { // ApiVersion: APIVersion of the resource (e.g. v1). ApiVersion string `json:"apiVersion,omitempty"` - // Kind: Kind of the resource (e.g. Deployment). Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TypeMeta) MarshalJSON() ([]byte, error) { +func (s TypeMeta) MarshalJSON() ([]byte, error) { type NoMethod TypeMeta - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "gkehub.projects.locations.get": - type ProjectsLocationsGetCall struct { s *Service name string @@ -1913,33 +1562,29 @@ func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1948,12 +1593,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { } func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1970,16 +1610,14 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2010,35 +1648,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, return nil, err } return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "gkehub.projects.locations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the location.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Location" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.list": +} type ProjectsLocationsListCall struct { s *Service @@ -2049,69 +1659,63 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this service. // -// - name: The resource that owns the locations collection, if -// applicable. +// - name: The resource that owns the locations collection, if applicable. func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). +// Filter sets the optional parameter "filter": A filter to narrow down results +// to a preferred subset. The filtering language accepts strings like +// "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. If not set, the service selects a default. func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. +// PageToken sets the optional parameter "pageToken": A page token received +// from the `next_page_token` field in the response. Send that page token to +// receive the subsequent page. func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2120,12 +1724,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { } func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2142,16 +1741,15 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2182,48 +1780,6 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat return nil, err } return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "gkehub.projects.locations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/locations", - // "response": { - // "$ref": "ListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2231,7 +1787,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2247,8 +1803,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -// method id "gkehub.projects.locations.global.memberships.initializeHub": - type ProjectsLocationsGlobalMembershipsInitializeHubCall struct { s *Service project string @@ -2258,13 +1812,13 @@ type ProjectsLocationsGlobalMembershipsInitializeHubCall struct { header_ http.Header } -// InitializeHub: Initializes the Hub in this project, which includes -// creating the default Hub Service Account and the Hub Workload -// Identity Pool. Initialization is optional, and happens automatically -// when the first Membership is created. InitializeHub should be called -// when the first Membership cannot be registered without these -// resources. A common example is granting the Hub Service Account -// access to another project, which requires the account to exist first. +// InitializeHub: Initializes the Hub in this project, which includes creating +// the default Hub Service Account and the Hub Workload Identity Pool. +// Initialization is optional, and happens automatically when the first +// Membership is created. InitializeHub should be called when the first +// Membership cannot be registered without these resources. A common example is +// granting the Hub Service Account access to another project, which requires +// the account to exist first. // // - project: The Hub to initialize, in the format // `projects/*/locations/*/memberships/*`. @@ -2276,23 +1830,21 @@ func (r *ProjectsLocationsGlobalMembershipsService) InitializeHub(project string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGlobalMembershipsInitializeHubCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalMembershipsInitializeHubCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGlobalMembershipsInitializeHubCall) Context(ctx context.Context) *ProjectsLocationsGlobalMembershipsInitializeHubCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGlobalMembershipsInitializeHubCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2301,18 +1853,12 @@ func (c *ProjectsLocationsGlobalMembershipsInitializeHubCall) Header() http.Head } func (c *ProjectsLocationsGlobalMembershipsInitializeHubCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.initializehubrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+project}:initializeHub") @@ -2325,16 +1871,15 @@ func (c *ProjectsLocationsGlobalMembershipsInitializeHubCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.global.memberships.initializeHub" call. -// Exactly one of *InitializeHubResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *InitializeHubResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InitializeHubResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsGlobalMembershipsInitializeHubCall) Do(opts ...googleapi.CallOption) (*InitializeHubResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2365,38 +1910,7 @@ func (c *ProjectsLocationsGlobalMembershipsInitializeHubCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Initializes the Hub in this project, which includes creating the default Hub Service Account and the Hub Workload Identity Pool. Initialization is optional, and happens automatically when the first Membership is created. InitializeHub should be called when the first Membership cannot be registered without these resources. A common example is granting the Hub Service Account access to another project, which requires the account to exist first.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/global/memberships:initializeHub", - // "httpMethod": "POST", - // "id": "gkehub.projects.locations.global.memberships.initializeHub", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "project": { - // "description": "Required. The Hub to initialize, in the format `projects/*/locations/*/memberships/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/global/memberships$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+project}:initializeHub", - // "request": { - // "$ref": "InitializeHubRequest" - // }, - // "response": { - // "$ref": "InitializeHubResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.memberships.create": +} type ProjectsLocationsMembershipsCreateCall struct { s *Service @@ -2407,13 +1921,13 @@ type ProjectsLocationsMembershipsCreateCall struct { header_ http.Header } -// Create: Creates a new Membership. **This is currently only supported -// for GKE clusters on Google Cloud**. To register other clusters, -// follow the instructions at +// Create: Creates a new Membership. **This is currently only supported for GKE +// clusters on Google Cloud**. To register other clusters, follow the +// instructions at // https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. // -// - parent: The parent (project and location) where the Memberships -// will be created. Specified in the format `projects/*/locations/*`. +// - parent: The parent (project and location) where the Memberships will be +// created. Specified in the format `projects/*/locations/*`. func (r *ProjectsLocationsMembershipsService) Create(parent string, membership *Membership) *ProjectsLocationsMembershipsCreateCall { c := &ProjectsLocationsMembershipsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2421,36 +1935,33 @@ func (r *ProjectsLocationsMembershipsService) Create(parent string, membership * return c } -// MembershipId sets the optional parameter "membershipId": Required. -// Client chosen ID for the membership. `membership_id` must be a valid -// RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. -// It must consist of lower case alphanumeric characters or `-` 3. It -// must start and end with an alphanumeric character Which can be -// expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a -// maximum length of 63 characters. +// MembershipId sets the optional parameter "membershipId": Required. Client +// chosen ID for the membership. `membership_id` must be a valid RFC 1123 +// compliant DNS label: 1. At most 63 characters in length 2. It must consist +// of lower case alphanumeric characters or `-` 3. It must start and end with +// an alphanumeric character Which can be expressed as the regex: +// `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters. func (c *ProjectsLocationsMembershipsCreateCall) MembershipId(membershipId string) *ProjectsLocationsMembershipsCreateCall { c.urlParams_.Set("membershipId", membershipId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsMembershipsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsMembershipsCreateCall) Context(ctx context.Context) *ProjectsLocationsMembershipsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsMembershipsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2459,18 +1970,12 @@ func (c *ProjectsLocationsMembershipsCreateCall) Header() http.Header { } func (c *ProjectsLocationsMembershipsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.membership) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/memberships") @@ -2483,16 +1988,14 @@ func (c *ProjectsLocationsMembershipsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsMembershipsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2523,43 +2026,7 @@ func (c *ProjectsLocationsMembershipsCreateCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships", - // "httpMethod": "POST", - // "id": "gkehub.projects.locations.memberships.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "membershipId": { - // "description": "Required. Client chosen ID for the membership. `membership_id` must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent (project and location) where the Memberships will be created. Specified in the format `projects/*/locations/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/memberships", - // "request": { - // "$ref": "Membership" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.memberships.delete": +} type ProjectsLocationsMembershipsDeleteCall struct { s *Service @@ -2569,9 +2036,9 @@ type ProjectsLocationsMembershipsDeleteCall struct { header_ http.Header } -// Delete: Removes a Membership. **This is currently only supported for -// GKE clusters on Google Cloud**. To unregister other clusters, follow -// the instructions at +// Delete: Removes a Membership. **This is currently only supported for GKE +// clusters on Google Cloud**. To unregister other clusters, follow the +// instructions at // https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. // // - name: The Membership resource name in the format @@ -2582,32 +2049,30 @@ func (r *ProjectsLocationsMembershipsService) Delete(name string) *ProjectsLocat return c } -// Force sets the optional parameter "force": If set to true, any -// subresource from this Membership will also be deleted. Otherwise, the -// request will only work if the Membership has no subresource. +// Force sets the optional parameter "force": If set to true, any subresource +// from this Membership will also be deleted. Otherwise, the request will only +// work if the Membership has no subresource. func (c *ProjectsLocationsMembershipsDeleteCall) Force(force bool) *ProjectsLocationsMembershipsDeleteCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsMembershipsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsMembershipsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMembershipsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsMembershipsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2616,12 +2081,7 @@ func (c *ProjectsLocationsMembershipsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsMembershipsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2635,16 +2095,14 @@ func (c *ProjectsLocationsMembershipsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsMembershipsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2675,40 +2133,7 @@ func (c *ProjectsLocationsMembershipsDeleteCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}", - // "httpMethod": "DELETE", - // "id": "gkehub.projects.locations.memberships.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "force": { - // "description": "Optional. If set to true, any subresource from this Membership will also be deleted. Otherwise, the request will only work if the Membership has no subresource.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Required. The Membership resource name in the format `projects/*/locations/*/memberships/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.memberships.generateConnectManifest": +} type ProjectsLocationsMembershipsGenerateConnectManifestCall struct { s *Service @@ -2719,98 +2144,90 @@ type ProjectsLocationsMembershipsGenerateConnectManifestCall struct { header_ http.Header } -// GenerateConnectManifest: Generates the manifest for deployment of the -// GKE connect agent. **This method is used internally by -// Google-provided libraries.** Most clients should not need to call -// this method directly. +// GenerateConnectManifest: Generates the manifest for deployment of the GKE +// connect agent. **This method is used internally by Google-provided +// libraries.** Most clients should not need to call this method directly. // -// - name: The Membership resource name the Agent will associate with, -// in the format `projects/*/locations/*/memberships/*`. +// - name: The Membership resource name the Agent will associate with, in the +// format `projects/*/locations/*/memberships/*`. func (r *ProjectsLocationsMembershipsService) GenerateConnectManifest(name string) *ProjectsLocationsMembershipsGenerateConnectManifestCall { c := &ProjectsLocationsMembershipsGenerateConnectManifestCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// ImagePullSecretContent sets the optional parameter -// "imagePullSecretContent": The image pull secret content for the -// registry, if not public. +// ImagePullSecretContent sets the optional parameter "imagePullSecretContent": +// The image pull secret content for the registry, if not public. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) ImagePullSecretContent(imagePullSecretContent string) *ProjectsLocationsMembershipsGenerateConnectManifestCall { c.urlParams_.Set("imagePullSecretContent", imagePullSecretContent) return c } -// IsUpgrade sets the optional parameter "isUpgrade": If true, generate -// the resources for upgrade only. Some resources generated only for -// installation (e.g. secrets) will be excluded. +// IsUpgrade sets the optional parameter "isUpgrade": If true, generate the +// resources for upgrade only. Some resources generated only for installation +// (e.g. secrets) will be excluded. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) IsUpgrade(isUpgrade bool) *ProjectsLocationsMembershipsGenerateConnectManifestCall { c.urlParams_.Set("isUpgrade", fmt.Sprint(isUpgrade)) return c } -// Namespace sets the optional parameter "namespace": Namespace for GKE -// Connect agent resources. Defaults to `gke-connect`. The Connect Agent -// is authorized automatically when run in the default namespace. -// Otherwise, explicit authorization must be granted with an additional -// IAM binding. +// Namespace sets the optional parameter "namespace": Namespace for GKE Connect +// agent resources. Defaults to `gke-connect`. The Connect Agent is authorized +// automatically when run in the default namespace. Otherwise, explicit +// authorization must be granted with an additional IAM binding. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Namespace(namespace string) *ProjectsLocationsMembershipsGenerateConnectManifestCall { c.urlParams_.Set("namespace", namespace) return c } -// Proxy sets the optional parameter "proxy": URI of a proxy if -// connectivity from the agent to gkeconnect.googleapis.com requires the -// use of a proxy. Format must be in the form -// `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol -// supported by the proxy. This will direct the connect agent's outbound -// traffic through a HTTP(S) proxy. +// Proxy sets the optional parameter "proxy": URI of a proxy if connectivity +// from the agent to gkeconnect.googleapis.com requires the use of a proxy. +// Format must be in the form `http(s)://{proxy_address}`, depending on the +// HTTP/HTTPS protocol supported by the proxy. This will direct the connect +// agent's outbound traffic through a HTTP(S) proxy. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Proxy(proxy string) *ProjectsLocationsMembershipsGenerateConnectManifestCall { c.urlParams_.Set("proxy", proxy) return c } -// Registry sets the optional parameter "registry": The registry to -// fetch the connect agent image from. Defaults to gcr.io/gkeconnect. +// Registry sets the optional parameter "registry": The registry to fetch the +// connect agent image from. Defaults to gcr.io/gkeconnect. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Registry(registry string) *ProjectsLocationsMembershipsGenerateConnectManifestCall { c.urlParams_.Set("registry", registry) return c } -// Version sets the optional parameter "version": The Connect agent -// version to use. Defaults to the most current version. +// Version sets the optional parameter "version": The Connect agent version to +// use. Defaults to the most current version. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Version(version string) *ProjectsLocationsMembershipsGenerateConnectManifestCall { c.urlParams_.Set("version", version) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsGenerateConnectManifestCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsGenerateConnectManifestCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Context(ctx context.Context) *ProjectsLocationsMembershipsGenerateConnectManifestCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2819,12 +2236,7 @@ func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Header() http. } func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2841,16 +2253,15 @@ func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.generateConnectManifest" call. -// Exactly one of *GenerateConnectManifestResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GenerateConnectManifestResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GenerateConnectManifestResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Do(opts ...googleapi.CallOption) (*GenerateConnectManifestResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2881,67 +2292,7 @@ func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Generates the manifest for deployment of the GKE connect agent. **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:generateConnectManifest", - // "httpMethod": "GET", - // "id": "gkehub.projects.locations.memberships.generateConnectManifest", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "imagePullSecretContent": { - // "description": "Optional. The image pull secret content for the registry, if not public.", - // "format": "byte", - // "location": "query", - // "type": "string" - // }, - // "isUpgrade": { - // "description": "Optional. If true, generate the resources for upgrade only. Some resources generated only for installation (e.g. secrets) will be excluded.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Required. The Membership resource name the Agent will associate with, in the format `projects/*/locations/*/memberships/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "namespace": { - // "description": "Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`. The Connect Agent is authorized automatically when run in the default namespace. Otherwise, explicit authorization must be granted with an additional IAM binding.", - // "location": "query", - // "type": "string" - // }, - // "proxy": { - // "description": "Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com requires the use of a proxy. Format must be in the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol supported by the proxy. This will direct the connect agent's outbound traffic through a HTTP(S) proxy.", - // "format": "byte", - // "location": "query", - // "type": "string" - // }, - // "registry": { - // "description": "Optional. The registry to fetch the connect agent image from. Defaults to gcr.io/gkeconnect.", - // "location": "query", - // "type": "string" - // }, - // "version": { - // "description": "Optional. The Connect agent version to use. Defaults to the most current version.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}:generateConnectManifest", - // "response": { - // "$ref": "GenerateConnectManifestResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.memberships.get": +} type ProjectsLocationsMembershipsGetCall struct { s *Service @@ -2963,33 +2314,29 @@ func (r *ProjectsLocationsMembershipsService) Get(name string) *ProjectsLocation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsMembershipsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsMembershipsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsMembershipsGetCall) Context(ctx context.Context) *ProjectsLocationsMembershipsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsMembershipsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2998,12 +2345,7 @@ func (c *ProjectsLocationsMembershipsGetCall) Header() http.Header { } func (c *ProjectsLocationsMembershipsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3020,16 +2362,14 @@ func (c *ProjectsLocationsMembershipsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.get" call. -// Exactly one of *Membership or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Membership.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Membership.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsMembershipsGetCall) Do(opts ...googleapi.CallOption) (*Membership, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3060,35 +2400,7 @@ func (c *ProjectsLocationsMembershipsGetCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Gets the details of a Membership.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}", - // "httpMethod": "GET", - // "id": "gkehub.projects.locations.memberships.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The Membership resource name in the format `projects/*/locations/*/memberships/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Membership" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.memberships.getIamPolicy": +} type ProjectsLocationsMembershipsGetIamPolicyCall struct { s *Service @@ -3099,14 +2411,12 @@ type ProjectsLocationsMembershipsGetIamPolicyCall struct { header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. func (r *ProjectsLocationsMembershipsService) GetIamPolicy(resource string) *ProjectsLocationsMembershipsGetIamPolicyCall { c := &ProjectsLocationsMembershipsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -3114,17 +2424,16 @@ func (r *ProjectsLocationsMembershipsService) GetIamPolicy(resource string) *Pro } // OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). func (c *ProjectsLocationsMembershipsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsMembershipsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -3132,33 +2441,29 @@ func (c *ProjectsLocationsMembershipsGetIamPolicyCall) OptionsRequestedPolicyVer } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsMembershipsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsMembershipsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsMembershipsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMembershipsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsMembershipsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3167,12 +2472,7 @@ func (c *ProjectsLocationsMembershipsGetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsMembershipsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3189,16 +2489,14 @@ func (c *ProjectsLocationsMembershipsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsMembershipsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3229,41 +2527,7 @@ func (c *ProjectsLocationsMembershipsGetIamPolicyCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "gkehub.projects.locations.memberships.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.memberships.list": +} type ProjectsLocationsMembershipsListCall struct { s *Service @@ -3276,8 +2540,8 @@ type ProjectsLocationsMembershipsListCall struct { // List: Lists Memberships in a given project and location. // -// - parent: The parent (project and location) where the Memberships -// will be listed. Specified in the format `projects/*/locations/*`. +// - parent: The parent (project and location) where the Memberships will be +// listed. Specified in the format `projects/*/locations/*`. // `projects/*/locations/-` list memberships in all the regions. func (r *ProjectsLocationsMembershipsService) List(parent string) *ProjectsLocationsMembershipsListCall { c := &ProjectsLocationsMembershipsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -3285,71 +2549,66 @@ func (r *ProjectsLocationsMembershipsService) List(parent string) *ProjectsLocat return c } -// Filter sets the optional parameter "filter": Lists Memberships that -// match the filter expression, following the syntax outlined in -// https://google.aip.dev/160. Examples: - Name is `bar` in project -// `foo-proj` and location `global`: name = -// "projects/foo-proj/locations/global/membership/bar" - Memberships -// that have a label called `foo`: labels.foo:* - Memberships that have -// a label called `foo` whose value is `bar`: labels.foo = bar - -// Memberships in the CREATING state: state = CREATING +// Filter sets the optional parameter "filter": Lists Memberships that match +// the filter expression, following the syntax outlined in +// https://google.aip.dev/160. Examples: - Name is `bar` in project `foo-proj` +// and location `global`: name = +// "projects/foo-proj/locations/global/membership/bar" - Memberships that have +// a label called `foo`: labels.foo:* - Memberships that have a label called +// `foo` whose value is `bar`: labels.foo = bar - Memberships in the CREATING +// state: state = CREATING func (c *ProjectsLocationsMembershipsListCall) Filter(filter string) *ProjectsLocationsMembershipsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": One or more fields to -// compare and use to sort the output. See -// https://google.aip.dev/132#ordering. +// OrderBy sets the optional parameter "orderBy": One or more fields to compare +// and use to sort the output. See https://google.aip.dev/132#ordering. func (c *ProjectsLocationsMembershipsListCall) OrderBy(orderBy string) *ProjectsLocationsMembershipsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": When requesting a -// 'page' of resources, `page_size` specifies number of resources to -// return. If unspecified or set to 0, all resources will be returned. +// PageSize sets the optional parameter "pageSize": When requesting a 'page' of +// resources, `page_size` specifies number of resources to return. If +// unspecified or set to 0, all resources will be returned. func (c *ProjectsLocationsMembershipsListCall) PageSize(pageSize int64) *ProjectsLocationsMembershipsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": Token returned by -// previous call to `ListMemberships` which specifies the position in -// the list from where to continue listing the resources. +// previous call to `ListMemberships` which specifies the position in the list +// from where to continue listing the resources. func (c *ProjectsLocationsMembershipsListCall) PageToken(pageToken string) *ProjectsLocationsMembershipsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsMembershipsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsMembershipsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsMembershipsListCall) Context(ctx context.Context) *ProjectsLocationsMembershipsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsMembershipsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3358,12 +2617,7 @@ func (c *ProjectsLocationsMembershipsListCall) Header() http.Header { } func (c *ProjectsLocationsMembershipsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3380,16 +2634,15 @@ func (c *ProjectsLocationsMembershipsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.list" call. -// Exactly one of *ListMembershipsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListMembershipsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsMembershipsListCall) Do(opts ...googleapi.CallOption) (*ListMembershipsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3420,53 +2673,6 @@ func (c *ProjectsLocationsMembershipsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists Memberships in a given project and location.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships", - // "httpMethod": "GET", - // "id": "gkehub.projects.locations.memberships.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Lists Memberships that match the filter expression, following the syntax outlined in https://google.aip.dev/160. Examples: - Name is `bar` in project `foo-proj` and location `global`: name = \"projects/foo-proj/locations/global/membership/bar\" - Memberships that have a label called `foo`: labels.foo:* - Memberships that have a label called `foo` whose value is `bar`: labels.foo = bar - Memberships in the CREATING state: state = CREATING", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/memberships", - // "response": { - // "$ref": "ListMembershipsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3474,7 +2680,7 @@ func (c *ProjectsLocationsMembershipsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsMembershipsListCall) Pages(ctx context.Context, f func(*ListMembershipsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3490,8 +2696,6 @@ func (c *ProjectsLocationsMembershipsListCall) Pages(ctx context.Context, f func } } -// method id "gkehub.projects.locations.memberships.patch": - type ProjectsLocationsMembershipsPatchCall struct { s *Service name string @@ -3512,31 +2716,29 @@ func (r *ProjectsLocationsMembershipsService) Patch(name string, membership *Mem return c } -// UpdateMask sets the optional parameter "updateMask": Required. Mask -// of fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. Mask of +// fields to update. func (c *ProjectsLocationsMembershipsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMembershipsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsMembershipsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsMembershipsPatchCall) Context(ctx context.Context) *ProjectsLocationsMembershipsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsMembershipsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3545,18 +2747,12 @@ func (c *ProjectsLocationsMembershipsPatchCall) Header() http.Header { } func (c *ProjectsLocationsMembershipsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.membership) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -3569,16 +2765,14 @@ func (c *ProjectsLocationsMembershipsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsMembershipsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3609,44 +2803,7 @@ func (c *ProjectsLocationsMembershipsPatchCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Updates an existing Membership.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}", - // "httpMethod": "PATCH", - // "id": "gkehub.projects.locations.memberships.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The Membership resource name in the format `projects/*/locations/*/memberships/*`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Mask of fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "Membership" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.memberships.setIamPolicy": +} type ProjectsLocationsMembershipsSetIamPolicyCall struct { s *Service @@ -3657,14 +2814,13 @@ type ProjectsLocationsMembershipsSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. func (r *ProjectsLocationsMembershipsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsMembershipsSetIamPolicyCall { c := &ProjectsLocationsMembershipsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -3673,23 +2829,21 @@ func (r *ProjectsLocationsMembershipsService) SetIamPolicy(resource string, seti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsMembershipsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsMembershipsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMembershipsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsMembershipsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3698,18 +2852,12 @@ func (c *ProjectsLocationsMembershipsSetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsMembershipsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy") @@ -3722,16 +2870,14 @@ func (c *ProjectsLocationsMembershipsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsMembershipsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3762,38 +2908,7 @@ func (c *ProjectsLocationsMembershipsSetIamPolicyCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "gkehub.projects.locations.memberships.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.memberships.testIamPermissions": +} type ProjectsLocationsMembershipsTestIamPermissionsCall struct { s *Service @@ -3804,17 +2919,16 @@ type ProjectsLocationsMembershipsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. func (r *ProjectsLocationsMembershipsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsMembershipsTestIamPermissionsCall { c := &ProjectsLocationsMembershipsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -3823,23 +2937,21 @@ func (r *ProjectsLocationsMembershipsService) TestIamPermissions(resource string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsMembershipsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3848,18 +2960,12 @@ func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) Header() http.Heade } func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions") @@ -3872,16 +2978,15 @@ func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3912,38 +3017,7 @@ func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "gkehub.projects.locations.memberships.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.operations.cancel": +} type ProjectsLocationsOperationsCancelCall struct { s *Service @@ -3954,15 +3028,14 @@ type ProjectsLocationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. @@ -3974,23 +3047,21 @@ func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3999,18 +3070,12 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { } func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:cancel") @@ -4023,16 +3088,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4063,38 +3126,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "gkehub.projects.locations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}:cancel", - // "request": { - // "$ref": "CancelOperationRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.operations.delete": +} type ProjectsLocationsOperationsDeleteCall struct { s *Service @@ -4104,10 +3136,10 @@ type ProjectsLocationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { @@ -4117,23 +3149,21 @@ func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4142,12 +3172,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4161,16 +3186,14 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4201,35 +3224,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "gkehub.projects.locations.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.operations.get": +} type ProjectsLocationsOperationsGetCall struct { s *Service @@ -4240,9 +3235,9 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { @@ -4252,33 +3247,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4287,12 +3278,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4309,16 +3295,14 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4349,35 +3333,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "gkehub.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "gkehub.projects.locations.operations.list": +} type ProjectsLocationsOperationsListCall struct { s *Service @@ -4388,9 +3344,8 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -4399,55 +3354,50 @@ func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocation return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4456,12 +3406,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4478,16 +3423,15 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4518,48 +3462,6 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "gkehub.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -4567,7 +3469,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 06f4901b60a..ea947df60a3 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -6050,7 +6050,7 @@ func (c *OrganizationsLocationsFleetsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.organizations.locations.fleets.list" call. @@ -6179,7 +6179,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.get" call. @@ -6310,7 +6310,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.list" call. @@ -6457,7 +6457,7 @@ func (c *ProjectsLocationsFeaturesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.create" call. @@ -6578,7 +6578,7 @@ func (c *ProjectsLocationsFeaturesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.delete" call. @@ -6695,7 +6695,7 @@ func (c *ProjectsLocationsFeaturesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.get" call. @@ -6822,7 +6822,7 @@ func (c *ProjectsLocationsFeaturesGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.getIamPolicy" call. @@ -6974,7 +6974,7 @@ func (c *ProjectsLocationsFeaturesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.list" call. @@ -7121,7 +7121,7 @@ func (c *ProjectsLocationsFeaturesPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.patch" call. @@ -7226,7 +7226,7 @@ func (c *ProjectsLocationsFeaturesSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.setIamPolicy" call. @@ -7334,7 +7334,7 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.features.testIamPermissions" call. @@ -7437,7 +7437,7 @@ func (c *ProjectsLocationsFleetsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.create" call. @@ -7534,7 +7534,7 @@ func (c *ProjectsLocationsFleetsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.delete" call. @@ -7642,7 +7642,7 @@ func (c *ProjectsLocationsFleetsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.get" call. @@ -7769,7 +7769,7 @@ func (c *ProjectsLocationsFleetsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.list" call. @@ -7901,7 +7901,7 @@ func (c *ProjectsLocationsFleetsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.fleets.patch" call. @@ -8033,7 +8033,7 @@ func (c *ProjectsLocationsMembershipsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.create" call. @@ -8156,7 +8156,7 @@ func (c *ProjectsLocationsMembershipsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.delete" call. @@ -8314,7 +8314,7 @@ func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.generateConnectManifest" call. @@ -8423,7 +8423,7 @@ func (c *ProjectsLocationsMembershipsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.get" call. @@ -8550,7 +8550,7 @@ func (c *ProjectsLocationsMembershipsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.getIamPolicy" call. @@ -8695,7 +8695,7 @@ func (c *ProjectsLocationsMembershipsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.list" call. @@ -8842,7 +8842,7 @@ func (c *ProjectsLocationsMembershipsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.patch" call. @@ -8947,7 +8947,7 @@ func (c *ProjectsLocationsMembershipsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.setIamPolicy" call. @@ -9055,7 +9055,7 @@ func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.testIamPermissions" call. @@ -9166,7 +9166,7 @@ func (c *ProjectsLocationsMembershipsBindingsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.create" call. @@ -9262,7 +9262,7 @@ func (c *ProjectsLocationsMembershipsBindingsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.delete" call. @@ -9370,7 +9370,7 @@ func (c *ProjectsLocationsMembershipsBindingsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.get" call. @@ -9503,7 +9503,7 @@ func (c *ProjectsLocationsMembershipsBindingsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.list" call. @@ -9635,7 +9635,7 @@ func (c *ProjectsLocationsMembershipsBindingsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.bindings.patch" call. @@ -9749,7 +9749,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.create" call. @@ -9845,7 +9845,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.delete" call. @@ -9960,7 +9960,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsGenerateMembershipRBACRoleB googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.generateMembershipRBACRoleBindingYAML" call. @@ -10069,7 +10069,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.get" call. @@ -10194,7 +10194,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.list" call. @@ -10328,7 +10328,7 @@ func (c *ProjectsLocationsMembershipsRbacrolebindingsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.rbacrolebindings.patch" call. @@ -10437,7 +10437,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.cancel" call. @@ -10535,7 +10535,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.delete" call. @@ -10644,7 +10644,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.get" call. @@ -10772,7 +10772,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.list" call. @@ -10903,7 +10903,7 @@ func (c *ProjectsLocationsScopesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.create" call. @@ -10999,7 +10999,7 @@ func (c *ProjectsLocationsScopesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.delete" call. @@ -11107,7 +11107,7 @@ func (c *ProjectsLocationsScopesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.get" call. @@ -11234,7 +11234,7 @@ func (c *ProjectsLocationsScopesGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.getIamPolicy" call. @@ -11358,7 +11358,7 @@ func (c *ProjectsLocationsScopesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.list" call. @@ -11518,7 +11518,7 @@ func (c *ProjectsLocationsScopesListMembershipsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "scopeName": c.scopeName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.listMemberships" call. @@ -11664,7 +11664,7 @@ func (c *ProjectsLocationsScopesListPermittedCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.listPermitted" call. @@ -11795,7 +11795,7 @@ func (c *ProjectsLocationsScopesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.patch" call. @@ -11900,7 +11900,7 @@ func (c *ProjectsLocationsScopesSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.setIamPolicy" call. @@ -12008,7 +12008,7 @@ func (c *ProjectsLocationsScopesTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.testIamPermissions" call. @@ -12122,7 +12122,7 @@ func (c *ProjectsLocationsScopesNamespacesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.create" call. @@ -12218,7 +12218,7 @@ func (c *ProjectsLocationsScopesNamespacesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.delete" call. @@ -12326,7 +12326,7 @@ func (c *ProjectsLocationsScopesNamespacesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.get" call. @@ -12450,7 +12450,7 @@ func (c *ProjectsLocationsScopesNamespacesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.list" call. @@ -12581,7 +12581,7 @@ func (c *ProjectsLocationsScopesNamespacesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.namespaces.patch" call. @@ -12694,7 +12694,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.create" call. @@ -12790,7 +12790,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.delete" call. @@ -12898,7 +12898,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.get" call. @@ -13023,7 +13023,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.list" call. @@ -13157,7 +13157,7 @@ func (c *ProjectsLocationsScopesRbacrolebindingsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.scopes.rbacrolebindings.patch" call. diff --git a/gkehub/v1beta1/gkehub-gen.go b/gkehub/v1beta1/gkehub-gen.go index f36521b0c1f..b9e8b0f00ac 100644 --- a/gkehub/v1beta1/gkehub-gen.go +++ b/gkehub/v1beta1/gkehub-gen.go @@ -1612,7 +1612,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.get" call. @@ -1743,7 +1743,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.list" call. @@ -1897,7 +1897,7 @@ func (c *ProjectsLocationsMembershipsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.create" call. @@ -2020,7 +2020,7 @@ func (c *ProjectsLocationsMembershipsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.delete" call. @@ -2186,7 +2186,7 @@ func (c *ProjectsLocationsMembershipsGenerateConnectManifestCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.generateConnectManifest" call. @@ -2320,7 +2320,7 @@ func (c *ProjectsLocationsMembershipsGenerateExclusivityManifestCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.generateExclusivityManifest" call. @@ -2429,7 +2429,7 @@ func (c *ProjectsLocationsMembershipsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.get" call. @@ -2556,7 +2556,7 @@ func (c *ProjectsLocationsMembershipsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.getIamPolicy" call. @@ -2701,7 +2701,7 @@ func (c *ProjectsLocationsMembershipsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.list" call. @@ -2848,7 +2848,7 @@ func (c *ProjectsLocationsMembershipsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.patch" call. @@ -2953,7 +2953,7 @@ func (c *ProjectsLocationsMembershipsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.setIamPolicy" call. @@ -3061,7 +3061,7 @@ func (c *ProjectsLocationsMembershipsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.testIamPermissions" call. @@ -3188,7 +3188,7 @@ func (c *ProjectsLocationsMembershipsValidateExclusivityCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.memberships.validateExclusivity" call. @@ -3298,7 +3298,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.cancel" call. @@ -3396,7 +3396,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.delete" call. @@ -3505,7 +3505,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.get" call. @@ -3633,7 +3633,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.list" call. diff --git a/gkehub/v2/gkehub-gen.go b/gkehub/v2/gkehub-gen.go index 81a76b4eafb..0c22e99a4df 100644 --- a/gkehub/v2/gkehub-gen.go +++ b/gkehub/v2/gkehub-gen.go @@ -442,7 +442,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.get" call. @@ -573,7 +573,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.list" call. @@ -704,7 +704,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.cancel" call. @@ -813,7 +813,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.get" call. @@ -941,7 +941,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.list" call. diff --git a/gkehub/v2alpha/gkehub-gen.go b/gkehub/v2alpha/gkehub-gen.go index 3e8718c7e4b..65231eba3a8 100644 --- a/gkehub/v2alpha/gkehub-gen.go +++ b/gkehub/v2alpha/gkehub-gen.go @@ -442,7 +442,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.get" call. @@ -573,7 +573,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.list" call. @@ -704,7 +704,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.cancel" call. @@ -813,7 +813,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.get" call. @@ -941,7 +941,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.list" call. diff --git a/gkehub/v2beta/gkehub-gen.go b/gkehub/v2beta/gkehub-gen.go index 65b2ca83dc2..e377da58a40 100644 --- a/gkehub/v2beta/gkehub-gen.go +++ b/gkehub/v2beta/gkehub-gen.go @@ -442,7 +442,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.get" call. @@ -573,7 +573,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.list" call. @@ -704,7 +704,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.cancel" call. @@ -813,7 +813,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.get" call. @@ -941,7 +941,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkehub.projects.locations.operations.list" call. diff --git a/gkeonprem/v1/gkeonprem-gen.go b/gkeonprem/v1/gkeonprem-gen.go index 677749cceb4..2b19d9415d2 100644 --- a/gkeonprem/v1/gkeonprem-gen.go +++ b/gkeonprem/v1/gkeonprem-gen.go @@ -5428,7 +5428,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.get" call. @@ -5559,7 +5559,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.list" call. @@ -5712,7 +5712,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.create" call. @@ -5818,7 +5818,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersEnrollCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.enroll" call. @@ -5958,7 +5958,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.get" call. @@ -6086,7 +6086,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.getIamPolicy" call. @@ -6242,7 +6242,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.list" call. @@ -6384,7 +6384,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.patch" call. @@ -6490,7 +6490,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersQueryVersionConfigCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.queryVersionConfig" call. @@ -6596,7 +6596,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.setIamPolicy" call. @@ -6704,7 +6704,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersTestIamPermissionsCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.testIamPermissions" call. @@ -6840,7 +6840,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersUnenrollCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.unenroll" call. @@ -6949,7 +6949,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.operations.get" call. @@ -7077,7 +7077,7 @@ func (c *ProjectsLocationsBareMetalAdminClustersOperationsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalAdminClusters.operations.list" call. @@ -7227,7 +7227,7 @@ func (c *ProjectsLocationsBareMetalClustersCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.create" call. @@ -7366,7 +7366,7 @@ func (c *ProjectsLocationsBareMetalClustersDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.delete" call. @@ -7473,7 +7473,7 @@ func (c *ProjectsLocationsBareMetalClustersEnrollCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.enroll" call. @@ -7613,7 +7613,7 @@ func (c *ProjectsLocationsBareMetalClustersGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.get" call. @@ -7741,7 +7741,7 @@ func (c *ProjectsLocationsBareMetalClustersGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.getIamPolicy" call. @@ -7904,7 +7904,7 @@ func (c *ProjectsLocationsBareMetalClustersListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.list" call. @@ -8055,7 +8055,7 @@ func (c *ProjectsLocationsBareMetalClustersPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.patch" call. @@ -8180,7 +8180,7 @@ func (c *ProjectsLocationsBareMetalClustersQueryVersionConfigCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.queryVersionConfig" call. @@ -8286,7 +8286,7 @@ func (c *ProjectsLocationsBareMetalClustersSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.setIamPolicy" call. @@ -8394,7 +8394,7 @@ func (c *ProjectsLocationsBareMetalClustersTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.testIamPermissions" call. @@ -8527,7 +8527,7 @@ func (c *ProjectsLocationsBareMetalClustersUnenrollCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.unenroll" call. @@ -8648,7 +8648,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsCreateCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.create" call. @@ -8781,7 +8781,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsDeleteCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.delete" call. @@ -8886,7 +8886,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsEnrollCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.enroll" call. @@ -9018,7 +9018,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.get" call. @@ -9146,7 +9146,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsGetIamPolicyCall) d googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.getIamPolicy" call. @@ -9298,7 +9298,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.list" call. @@ -9449,7 +9449,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsPatchCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.patch" call. @@ -9554,7 +9554,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsSetIamPolicyCall) d googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.setIamPolicy" call. @@ -9662,7 +9662,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsTestIamPermissionsC googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.testIamPermissions" call. @@ -9783,7 +9783,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsUnenrollCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.unenroll" call. @@ -9892,7 +9892,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsOperationsGetCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.operations.get" call. @@ -10020,7 +10020,7 @@ func (c *ProjectsLocationsBareMetalClustersBareMetalNodePoolsOperationsListCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.bareMetalNodePools.operations.list" call. @@ -10151,7 +10151,7 @@ func (c *ProjectsLocationsBareMetalClustersOperationsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.operations.get" call. @@ -10279,7 +10279,7 @@ func (c *ProjectsLocationsBareMetalClustersOperationsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.bareMetalClusters.operations.list" call. @@ -10410,7 +10410,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.operations.cancel" call. @@ -10508,7 +10508,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.operations.delete" call. @@ -10617,7 +10617,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.operations.get" call. @@ -10745,7 +10745,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.operations.list" call. @@ -10873,7 +10873,7 @@ func (c *ProjectsLocationsVmwareAdminClustersEnrollCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.enroll" call. @@ -11012,7 +11012,7 @@ func (c *ProjectsLocationsVmwareAdminClustersGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.get" call. @@ -11140,7 +11140,7 @@ func (c *ProjectsLocationsVmwareAdminClustersGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.getIamPolicy" call. @@ -11296,7 +11296,7 @@ func (c *ProjectsLocationsVmwareAdminClustersListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.list" call. @@ -11438,7 +11438,7 @@ func (c *ProjectsLocationsVmwareAdminClustersPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.patch" call. @@ -11543,7 +11543,7 @@ func (c *ProjectsLocationsVmwareAdminClustersSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.setIamPolicy" call. @@ -11651,7 +11651,7 @@ func (c *ProjectsLocationsVmwareAdminClustersTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.testIamPermissions" call. @@ -11775,7 +11775,7 @@ func (c *ProjectsLocationsVmwareAdminClustersUnenrollCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.unenroll" call. @@ -11884,7 +11884,7 @@ func (c *ProjectsLocationsVmwareAdminClustersOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.operations.get" call. @@ -12012,7 +12012,7 @@ func (c *ProjectsLocationsVmwareAdminClustersOperationsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.operations.list" call. @@ -12162,7 +12162,7 @@ func (c *ProjectsLocationsVmwareClustersCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.create" call. @@ -12300,7 +12300,7 @@ func (c *ProjectsLocationsVmwareClustersDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.delete" call. @@ -12407,7 +12407,7 @@ func (c *ProjectsLocationsVmwareClustersEnrollCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.enroll" call. @@ -12546,7 +12546,7 @@ func (c *ProjectsLocationsVmwareClustersGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.get" call. @@ -12673,7 +12673,7 @@ func (c *ProjectsLocationsVmwareClustersGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.getIamPolicy" call. @@ -12836,7 +12836,7 @@ func (c *ProjectsLocationsVmwareClustersListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.list" call. @@ -12978,7 +12978,7 @@ func (c *ProjectsLocationsVmwareClustersPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.patch" call. @@ -13102,7 +13102,7 @@ func (c *ProjectsLocationsVmwareClustersQueryVersionConfigCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.queryVersionConfig" call. @@ -13208,7 +13208,7 @@ func (c *ProjectsLocationsVmwareClustersSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.setIamPolicy" call. @@ -13316,7 +13316,7 @@ func (c *ProjectsLocationsVmwareClustersTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.testIamPermissions" call. @@ -13448,7 +13448,7 @@ func (c *ProjectsLocationsVmwareClustersUnenrollCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.unenroll" call. @@ -13557,7 +13557,7 @@ func (c *ProjectsLocationsVmwareClustersOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.operations.get" call. @@ -13685,7 +13685,7 @@ func (c *ProjectsLocationsVmwareClustersOperationsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.operations.list" call. @@ -13828,7 +13828,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.create" call. @@ -13961,7 +13961,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.delete" call. @@ -14062,7 +14062,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsEnrollCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.enroll" call. @@ -14194,7 +14194,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.get" call. @@ -14321,7 +14321,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsGetIamPolicyCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.getIamPolicy" call. @@ -14471,7 +14471,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.list" call. @@ -14613,7 +14613,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.patch" call. @@ -14718,7 +14718,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsSetIamPolicyCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.setIamPolicy" call. @@ -14826,7 +14826,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsTestIamPermissionsCall) d googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.testIamPermissions" call. @@ -14947,7 +14947,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsUnenrollCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.unenroll" call. @@ -15056,7 +15056,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsOperationsGetCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.operations.get" call. @@ -15184,7 +15184,7 @@ func (c *ProjectsLocationsVmwareClustersVmwareNodePoolsOperationsListCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gkeonprem.projects.locations.vmwareClusters.vmwareNodePools.operations.list" call. diff --git a/gmail/v1/gmail-gen.go b/gmail/v1/gmail-gen.go index 9aa5f632d50..0664ff38f91 100644 --- a/gmail/v1/gmail-gen.go +++ b/gmail/v1/gmail-gen.go @@ -2230,7 +2230,7 @@ func (c *UsersGetProfileCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.getProfile" call. @@ -2326,7 +2326,7 @@ func (c *UsersStopCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.stop" call. @@ -2405,7 +2405,7 @@ func (c *UsersWatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.watch" call. @@ -2557,7 +2557,7 @@ func (c *UsersDraftsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.drafts.create" call. @@ -2675,7 +2675,7 @@ func (c *UsersDraftsDeleteCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.drafts.delete" call. @@ -2789,7 +2789,7 @@ func (c *UsersDraftsGetCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.drafts.get" call. @@ -2927,7 +2927,7 @@ func (c *UsersDraftsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.drafts.list" call. @@ -3102,7 +3102,7 @@ func (c *UsersDraftsSendCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.drafts.send" call. @@ -3275,7 +3275,7 @@ func (c *UsersDraftsUpdateCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.drafts.update" call. @@ -3453,7 +3453,7 @@ func (c *UsersHistoryListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.history.list" call. @@ -3577,7 +3577,7 @@ func (c *UsersLabelsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.labels.create" call. @@ -3678,7 +3678,7 @@ func (c *UsersLabelsDeleteCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.labels.delete" call. @@ -3767,7 +3767,7 @@ func (c *UsersLabelsGetCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.labels.get" call. @@ -3875,7 +3875,7 @@ func (c *UsersLabelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.labels.list" call. @@ -3982,7 +3982,7 @@ func (c *UsersLabelsPatchCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.labels.patch" call. @@ -4088,7 +4088,7 @@ func (c *UsersLabelsUpdateCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.labels.update" call. @@ -4191,7 +4191,7 @@ func (c *UsersMessagesBatchDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.batchDelete" call. @@ -4270,7 +4270,7 @@ func (c *UsersMessagesBatchModifyCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.batchModify" call. @@ -4348,7 +4348,7 @@ func (c *UsersMessagesDeleteCall) doRequest(alt string) (*http.Response, error) "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.delete" call. @@ -4471,7 +4471,7 @@ func (c *UsersMessagesGetCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.get" call. @@ -4667,7 +4667,7 @@ func (c *UsersMessagesImportCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.import" call. @@ -4863,7 +4863,7 @@ func (c *UsersMessagesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.insert" call. @@ -5029,7 +5029,7 @@ func (c *UsersMessagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.list" call. @@ -5157,7 +5157,7 @@ func (c *UsersMessagesModifyCall) doRequest(alt string) (*http.Response, error) "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.modify" call. @@ -5311,7 +5311,7 @@ func (c *UsersMessagesSendCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.send" call. @@ -5428,7 +5428,7 @@ func (c *UsersMessagesTrashCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.trash" call. @@ -5528,7 +5528,7 @@ func (c *UsersMessagesUntrashCall) doRequest(alt string) (*http.Response, error) "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.untrash" call. @@ -5644,7 +5644,7 @@ func (c *UsersMessagesAttachmentsGetCall) doRequest(alt string) (*http.Response, "messageId": c.messageId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.messages.attachments.get" call. @@ -5754,7 +5754,7 @@ func (c *UsersSettingsGetAutoForwardingCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.getAutoForwarding" call. @@ -5862,7 +5862,7 @@ func (c *UsersSettingsGetImapCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.getImap" call. @@ -5970,7 +5970,7 @@ func (c *UsersSettingsGetLanguageCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.getLanguage" call. @@ -6079,7 +6079,7 @@ func (c *UsersSettingsGetPopCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.getPop" call. @@ -6187,7 +6187,7 @@ func (c *UsersSettingsGetVacationCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.getVacation" call. @@ -6293,7 +6293,7 @@ func (c *UsersSettingsUpdateAutoForwardingCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.updateAutoForwarding" call. @@ -6395,7 +6395,7 @@ func (c *UsersSettingsUpdateImapCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.updateImap" call. @@ -6501,7 +6501,7 @@ func (c *UsersSettingsUpdateLanguageCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.updateLanguage" call. @@ -6604,7 +6604,7 @@ func (c *UsersSettingsUpdatePopCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.updatePop" call. @@ -6706,7 +6706,7 @@ func (c *UsersSettingsUpdateVacationCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.updateVacation" call. @@ -6812,7 +6812,7 @@ func (c *UsersSettingsCseIdentitiesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.identities.create" call. @@ -6916,7 +6916,7 @@ func (c *UsersSettingsCseIdentitiesDeleteCall) doRequest(alt string) (*http.Resp "userId": c.userId, "cseEmailAddress": c.cseEmailAddress, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.identities.delete" call. @@ -7006,7 +7006,7 @@ func (c *UsersSettingsCseIdentitiesGetCall) doRequest(alt string) (*http.Respons "userId": c.userId, "cseEmailAddress": c.cseEmailAddress, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.identities.get" call. @@ -7129,7 +7129,7 @@ func (c *UsersSettingsCseIdentitiesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.identities.list" call. @@ -7260,7 +7260,7 @@ func (c *UsersSettingsCseIdentitiesPatchCall) doRequest(alt string) (*http.Respo "userId": c.userId, "emailAddress": c.emailAddress, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.identities.patch" call. @@ -7363,7 +7363,7 @@ func (c *UsersSettingsCseKeypairsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.keypairs.create" call. @@ -7473,7 +7473,7 @@ func (c *UsersSettingsCseKeypairsDisableCall) doRequest(alt string) (*http.Respo "userId": c.userId, "keyPairId": c.keyPairId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.keypairs.disable" call. @@ -7581,7 +7581,7 @@ func (c *UsersSettingsCseKeypairsEnableCall) doRequest(alt string) (*http.Respon "userId": c.userId, "keyPairId": c.keyPairId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.keypairs.enable" call. @@ -7693,7 +7693,7 @@ func (c *UsersSettingsCseKeypairsGetCall) doRequest(alt string) (*http.Response, "userId": c.userId, "keyPairId": c.keyPairId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.keypairs.get" call. @@ -7816,7 +7816,7 @@ func (c *UsersSettingsCseKeypairsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.keypairs.list" call. @@ -7949,7 +7949,7 @@ func (c *UsersSettingsCseKeypairsObliterateCall) doRequest(alt string) (*http.Re "userId": c.userId, "keyPairId": c.keyPairId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.cse.keypairs.obliterate" call. @@ -8038,7 +8038,7 @@ func (c *UsersSettingsDelegatesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.delegates.create" call. @@ -8142,7 +8142,7 @@ func (c *UsersSettingsDelegatesDeleteCall) doRequest(alt string) (*http.Response "userId": c.userId, "delegateEmail": c.delegateEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.delegates.delete" call. @@ -8235,7 +8235,7 @@ func (c *UsersSettingsDelegatesGetCall) doRequest(alt string) (*http.Response, e "userId": c.userId, "delegateEmail": c.delegateEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.delegates.get" call. @@ -8345,7 +8345,7 @@ func (c *UsersSettingsDelegatesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.delegates.list" call. @@ -8449,7 +8449,7 @@ func (c *UsersSettingsFiltersCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.filters.create" call. @@ -8549,7 +8549,7 @@ func (c *UsersSettingsFiltersDeleteCall) doRequest(alt string) (*http.Response, "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.filters.delete" call. @@ -8638,7 +8638,7 @@ func (c *UsersSettingsFiltersGetCall) doRequest(alt string) (*http.Response, err "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.filters.get" call. @@ -8746,7 +8746,7 @@ func (c *UsersSettingsFiltersListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.filters.list" call. @@ -8853,7 +8853,7 @@ func (c *UsersSettingsForwardingAddressesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.forwardingAddresses.create" call. @@ -8956,7 +8956,7 @@ func (c *UsersSettingsForwardingAddressesDeleteCall) doRequest(alt string) (*htt "userId": c.userId, "forwardingEmail": c.forwardingEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.forwardingAddresses.delete" call. @@ -9045,7 +9045,7 @@ func (c *UsersSettingsForwardingAddressesGetCall) doRequest(alt string) (*http.R "userId": c.userId, "forwardingEmail": c.forwardingEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.forwardingAddresses.get" call. @@ -9154,7 +9154,7 @@ func (c *UsersSettingsForwardingAddressesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.forwardingAddresses.list" call. @@ -9265,7 +9265,7 @@ func (c *UsersSettingsSendAsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.create" call. @@ -9367,7 +9367,7 @@ func (c *UsersSettingsSendAsDeleteCall) doRequest(alt string) (*http.Response, e "userId": c.userId, "sendAsEmail": c.sendAsEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.delete" call. @@ -9457,7 +9457,7 @@ func (c *UsersSettingsSendAsGetCall) doRequest(alt string) (*http.Response, erro "userId": c.userId, "sendAsEmail": c.sendAsEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.get" call. @@ -9567,7 +9567,7 @@ func (c *UsersSettingsSendAsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.list" call. @@ -9674,7 +9674,7 @@ func (c *UsersSettingsSendAsPatchCall) doRequest(alt string) (*http.Response, er "userId": c.userId, "sendAsEmail": c.sendAsEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.patch" call. @@ -9783,7 +9783,7 @@ func (c *UsersSettingsSendAsUpdateCall) doRequest(alt string) (*http.Response, e "userId": c.userId, "sendAsEmail": c.sendAsEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.update" call. @@ -9885,7 +9885,7 @@ func (c *UsersSettingsSendAsVerifyCall) doRequest(alt string) (*http.Response, e "userId": c.userId, "sendAsEmail": c.sendAsEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.verify" call. @@ -9967,7 +9967,7 @@ func (c *UsersSettingsSendAsSmimeInfoDeleteCall) doRequest(alt string) (*http.Re "sendAsEmail": c.sendAsEmail, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.smimeInfo.delete" call. @@ -10061,7 +10061,7 @@ func (c *UsersSettingsSendAsSmimeInfoGetCall) doRequest(alt string) (*http.Respo "sendAsEmail": c.sendAsEmail, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.smimeInfo.get" call. @@ -10169,7 +10169,7 @@ func (c *UsersSettingsSendAsSmimeInfoInsertCall) doRequest(alt string) (*http.Re "userId": c.userId, "sendAsEmail": c.sendAsEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.smimeInfo.insert" call. @@ -10282,7 +10282,7 @@ func (c *UsersSettingsSendAsSmimeInfoListCall) doRequest(alt string) (*http.Resp "userId": c.userId, "sendAsEmail": c.sendAsEmail, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.smimeInfo.list" call. @@ -10388,7 +10388,7 @@ func (c *UsersSettingsSendAsSmimeInfoSetDefaultCall) doRequest(alt string) (*htt "sendAsEmail": c.sendAsEmail, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.settings.sendAs.smimeInfo.setDefault" call. @@ -10467,7 +10467,7 @@ func (c *UsersThreadsDeleteCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.threads.delete" call. @@ -10582,7 +10582,7 @@ func (c *UsersThreadsGetCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.threads.get" call. @@ -10728,7 +10728,7 @@ func (c *UsersThreadsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.threads.list" call. @@ -10857,7 +10857,7 @@ func (c *UsersThreadsModifyCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.threads.modify" call. @@ -10958,7 +10958,7 @@ func (c *UsersThreadsTrashCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.threads.trash" call. @@ -11059,7 +11059,7 @@ func (c *UsersThreadsUntrashCall) doRequest(alt string) (*http.Response, error) "userId": c.userId, "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmail.users.threads.untrash" call. diff --git a/gmailpostmastertools/v1/gmailpostmastertools-gen.go b/gmailpostmastertools/v1/gmailpostmastertools-gen.go index 31ca52a1cd3..561ab7530ae 100644 --- a/gmailpostmastertools/v1/gmailpostmastertools-gen.go +++ b/gmailpostmastertools/v1/gmailpostmastertools-gen.go @@ -632,7 +632,7 @@ func (c *DomainsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmailpostmastertools.domains.get" call. @@ -751,7 +751,7 @@ func (c *DomainsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmailpostmastertools.domains.list" call. @@ -883,7 +883,7 @@ func (c *DomainsTrafficStatsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmailpostmastertools.domains.trafficStats.get" call. @@ -1055,7 +1055,7 @@ func (c *DomainsTrafficStatsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmailpostmastertools.domains.trafficStats.list" call. diff --git a/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go b/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go index 497b7ce13c0..66a0ad2e0c8 100644 --- a/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go +++ b/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go @@ -637,7 +637,7 @@ func (c *DomainsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmailpostmastertools.domains.get" call. @@ -756,7 +756,7 @@ func (c *DomainsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmailpostmastertools.domains.list" call. @@ -888,7 +888,7 @@ func (c *DomainsTrafficStatsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmailpostmastertools.domains.trafficStats.get" call. @@ -1060,7 +1060,7 @@ func (c *DomainsTrafficStatsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "gmailpostmastertools.domains.trafficStats.list" call. diff --git a/go.work.sum b/go.work.sum index c2cde28aa9d..c861a88d2d6 100644 --- a/go.work.sum +++ b/go.work.sum @@ -54,6 +54,7 @@ cloud.google.com/go/bigquery v1.59.1/go.mod h1:VP1UJYgevyTwsV7desjzNzDND5p6hZB+Z cloud.google.com/go/bigquery v1.62.0/go.mod h1:5ee+ZkF1x/ntgCsFQJAQTM3QkAZOecfCmvxhkJsWRSA= cloud.google.com/go/bigtable v1.27.2-0.20240730134218-123c88616251/go.mod h1:avmXcmxVbLJAo9moICRYMgDyTTPoV0MA0lHKnyqV4fQ= cloud.google.com/go/bigtable v1.29.0/go.mod h1:5p909nNdWaNUcWs6KGZO8mI5HUovstlmrIi7+eA5PTQ= +cloud.google.com/go/bigtable v1.31.0/go.mod h1:N/mwZO+4TSHOeyiE1JxO+sRPnW4bnR7WLn9AEaiJqew= cloud.google.com/go/billing v1.18.2/go.mod h1:PPIwVsOOQ7xzbADCwNe8nvK776QpfrOAUkvKjCUcpSE= cloud.google.com/go/billing v1.18.9/go.mod h1:bKTnh8MBfCMUT1fzZ936CPN9rZG7ZEiHB2J3SjIjByc= cloud.google.com/go/billing v1.19.0/go.mod h1:bGvChbZguyaWRGmu5pQHfFN1VxTDPFmabnCVA/dNdRM= @@ -169,6 +170,7 @@ cloud.google.com/go/gkebackup v1.6.0/go.mod h1:1rskt7NgawoMDHTdLASX8caXXYG3MvDso cloud.google.com/go/gkeconnect v0.8.5/go.mod h1:LC/rS7+CuJ5fgIbXv8tCD/mdfnlAadTaUufgOkmijuk= cloud.google.com/go/gkeconnect v0.8.11/go.mod h1:ejHv5ehbceIglu1GsMwlH0nZpTftjxEY6DX7tvaM8gA= cloud.google.com/go/gkeconnect v0.10.0/go.mod h1:d8TE+YAlX7mvq8pWy1Q4yOnmxbN0SimmcQdtJwBdUHk= +cloud.google.com/go/gkeconnect v0.11.0/go.mod h1:l3iPZl1OfT+DUQ+QkmH1PC5RTLqxKQSVnboLiQGAcCA= cloud.google.com/go/gkehub v0.14.5/go.mod h1:6bzqxM+a+vEH/h8W8ec4OJl4r36laxTs3A/fMNHJ0wA= cloud.google.com/go/gkehub v0.14.11/go.mod h1:CsmDJ4qbBnSPkoBltEubK6qGOjG0xNfeeT5jI5gCnRQ= cloud.google.com/go/gkehub v0.15.0/go.mod h1:obpeROly2mjxZJbRkFfHEflcH54XhJI+g2QgfHphL0I= @@ -271,6 +273,7 @@ cloud.google.com/go/pubsublite v1.8.2/go.mod h1:4r8GSa9NznExjuLPEJlF1VjOPOpgf3IT cloud.google.com/go/recaptchaenterprise/v2 v2.9.2/go.mod h1:trwwGkfhCmp05Ll5MSJPXY7yvnO0p4v3orGANAFHAuU= cloud.google.com/go/recaptchaenterprise/v2 v2.14.2/go.mod h1:MwPgdgvBkE46aWuuXeBTCB8hQJ88p+CpXInROZYCTkc= cloud.google.com/go/recaptchaenterprise/v2 v2.16.0/go.mod h1:iq7s8lR3dXv4mDXE3/qyPtZEXOK7wHC1r3bX2fQyU9s= +cloud.google.com/go/recaptchaenterprise/v2 v2.17.0/go.mod h1:SS4QDdlmJ3NvbOMCXQxaFhVGRjvNMfoKCoCdxqXadqs= cloud.google.com/go/recommendationengine v0.8.5/go.mod h1:A38rIXHGFvoPvmy6pZLozr0g59NRNREz4cx7F58HAsQ= cloud.google.com/go/recommendationengine v0.8.11/go.mod h1:cEkU4tCXAF88a4boMFZym7U7uyxvVwcQtKzS85IbQio= cloud.google.com/go/recommendationengine v0.9.0/go.mod h1:59ydKXFyXO4Y8S0Bk224sKfj6YvIyzgcpG6w8kXIMm4= diff --git a/google-api-go-generator/gen.go b/google-api-go-generator/gen.go index 1fc1a3f2d9d..9402e3aa9f6 100644 --- a/google-api-go-generator/gen.go +++ b/google-api-go-generator/gen.go @@ -2339,11 +2339,13 @@ func (meth *Method) generateCode() { } if meth.supportsMediaUpload() && meth.api.Name == "storage" { pn("if c.retry != nil {") - pn(" return gensupport.SendRequestWithRetry(c.ctx_, c.s.client, req, c.retry)") + pn(" return gensupport.SendRequestWithRetry(c.ctx_, c.s.client, req, c.retry, false)") pn("}") - pn("return gensupport.SendRequest(c.ctx_, c.s.client, req)") + pn("return gensupport.SendRequest(c.ctx_, c.s.client, req, false)") + } else if meth.supportsMediaDownload() && meth.api.Name == "storage" { + pn("return gensupport.SendRequest(c.ctx_, c.s.client, req, true)") } else { - pn("return gensupport.SendRequest(c.ctx_, c.s.client, req)") + pn("return gensupport.SendRequest(c.ctx_, c.s.client, req, false)") } pn("}") diff --git a/google-api-go-generator/testdata/any.want b/google-api-go-generator/testdata/any.want index 7d623e14e7c..a4dfcaf125b 100644 --- a/google-api-go-generator/testdata/any.want +++ b/google-api-go-generator/testdata/any.want @@ -765,7 +765,7 @@ func (c *ProjectsLogServicesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "projectsId": c.projectsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logServices.list" call. @@ -949,7 +949,7 @@ func (c *ProjectsLogServicesIndexesListCall) doRequest(alt string) (*http.Respon "projectsId": c.projectsId, "logServicesId": c.logServicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logServices.indexes.list" call. @@ -1077,7 +1077,7 @@ func (c *ProjectsLogServicesSinksCreateCall) doRequest(alt string) (*http.Respon "projectsId": c.projectsId, "logServicesId": c.logServicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logServices.sinks.create" call. @@ -1180,7 +1180,7 @@ func (c *ProjectsLogServicesSinksDeleteCall) doRequest(alt string) (*http.Respon "logServicesId": c.logServicesId, "sinksId": c.sinksId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logServices.sinks.delete" call. @@ -1295,7 +1295,7 @@ func (c *ProjectsLogServicesSinksGetCall) doRequest(alt string) (*http.Response, "logServicesId": c.logServicesId, "sinksId": c.sinksId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logServices.sinks.get" call. @@ -1407,7 +1407,7 @@ func (c *ProjectsLogServicesSinksListCall) doRequest(alt string) (*http.Response "projectsId": c.projectsId, "logServicesId": c.logServicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logServices.sinks.list" call. @@ -1517,7 +1517,7 @@ func (c *ProjectsLogServicesSinksUpdateCall) doRequest(alt string) (*http.Respon "logServicesId": c.logServicesId, "sinksId": c.sinksId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logServices.sinks.update" call. @@ -1617,7 +1617,7 @@ func (c *ProjectsLogsDeleteCall) doRequest(alt string) (*http.Response, error) { "projectsId": c.projectsId, "logsId": c.logsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logs.delete" call. @@ -1765,7 +1765,7 @@ func (c *ProjectsLogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "projectsId": c.projectsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logs.list" call. @@ -1899,7 +1899,7 @@ func (c *ProjectsLogsEntriesWriteCall) doRequest(alt string) (*http.Response, er "projectsId": c.projectsId, "logsId": c.logsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logs.entries.write" call. @@ -2005,7 +2005,7 @@ func (c *ProjectsLogsSinksCreateCall) doRequest(alt string) (*http.Response, err "projectsId": c.projectsId, "logsId": c.logsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logs.sinks.create" call. @@ -2108,7 +2108,7 @@ func (c *ProjectsLogsSinksDeleteCall) doRequest(alt string) (*http.Response, err "logsId": c.logsId, "sinksId": c.sinksId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logs.sinks.delete" call. @@ -2223,7 +2223,7 @@ func (c *ProjectsLogsSinksGetCall) doRequest(alt string) (*http.Response, error) "logsId": c.logsId, "sinksId": c.sinksId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logs.sinks.get" call. @@ -2334,7 +2334,7 @@ func (c *ProjectsLogsSinksListCall) doRequest(alt string) (*http.Response, error "projectsId": c.projectsId, "logsId": c.logsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logs.sinks.list" call. @@ -2444,7 +2444,7 @@ func (c *ProjectsLogsSinksUpdateCall) doRequest(alt string) (*http.Response, err "logsId": c.logsId, "sinksId": c.sinksId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logs.sinks.update" call. diff --git a/google-api-go-generator/testdata/blogger-3.want b/google-api-go-generator/testdata/blogger-3.want index 94ab15560ef..97c15ee1109 100644 --- a/google-api-go-generator/testdata/blogger-3.want +++ b/google-api-go-generator/testdata/blogger-3.want @@ -1347,7 +1347,7 @@ func (c *BlogUserInfosGetCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.blogUserInfos.get" call. @@ -1461,7 +1461,7 @@ func (c *BlogsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.blogs.get" call. @@ -1564,7 +1564,7 @@ func (c *BlogsGetByUrlCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.blogs.getByUrl" call. @@ -1691,7 +1691,7 @@ func (c *BlogsListByUserCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.blogs.listByUser" call. @@ -1794,7 +1794,7 @@ func (c *CommentsApproveCall) doRequest(alt string) (*http.Response, error) { "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.approve" call. @@ -1897,7 +1897,7 @@ func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) { "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.delete" call. @@ -1989,7 +1989,7 @@ func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.get" call. @@ -2160,7 +2160,7 @@ func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.list" call. @@ -2324,7 +2324,7 @@ func (c *CommentsListByBlogCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.listByBlog" call. @@ -2448,7 +2448,7 @@ func (c *CommentsMarkAsSpamCall) doRequest(alt string) (*http.Response, error) { "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.markAsSpam" call. @@ -2551,7 +2551,7 @@ func (c *CommentsRemoveContentCall) doRequest(alt string) (*http.Response, error "postId": c.postId, "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.comments.removeContent" call. @@ -2670,7 +2670,7 @@ func (c *PageViewsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pageViews.get" call. @@ -2769,7 +2769,7 @@ func (c *PagesDeleteCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.delete" call. @@ -2869,7 +2869,7 @@ func (c *PagesGetCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.get" call. @@ -2970,7 +2970,7 @@ func (c *PagesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.insert" call. @@ -3109,7 +3109,7 @@ func (c *PagesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.list" call. @@ -3214,7 +3214,7 @@ func (c *PagesPatchCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.patch" call. @@ -3319,7 +3319,7 @@ func (c *PagesUpdateCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "pageId": c.pageId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.pages.update" call. @@ -3442,7 +3442,7 @@ func (c *PostUserInfosGetCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.postUserInfos.get" call. @@ -3631,7 +3631,7 @@ func (c *PostUserInfosListCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.postUserInfos.list" call. @@ -3752,7 +3752,7 @@ func (c *PostsDeleteCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.delete" call. @@ -3859,7 +3859,7 @@ func (c *PostsGetCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.get" call. @@ -3987,7 +3987,7 @@ func (c *PostsGetByPathCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.getByPath" call. @@ -4095,7 +4095,7 @@ func (c *PostsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.insert" call. @@ -4287,7 +4287,7 @@ func (c *PostsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.list" call. @@ -4413,7 +4413,7 @@ func (c *PostsPatchCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.patch" call. @@ -4519,7 +4519,7 @@ func (c *PostsPublishCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.publish" call. @@ -4618,7 +4618,7 @@ func (c *PostsRevertCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.revert" call. @@ -4746,7 +4746,7 @@ func (c *PostsSearchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "blogId": c.blogId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.search" call. @@ -4851,7 +4851,7 @@ func (c *PostsUpdateCall) doRequest(alt string) (*http.Response, error) { "blogId": c.blogId, "postId": c.postId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.posts.update" call. @@ -4958,7 +4958,7 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "blogger.users.get" call. diff --git a/google-api-go-generator/testdata/getwithoutbody.want b/google-api-go-generator/testdata/getwithoutbody.want index c4a0b27fb70..19e93220a99 100644 --- a/google-api-go-generator/testdata/getwithoutbody.want +++ b/google-api-go-generator/testdata/getwithoutbody.want @@ -288,7 +288,7 @@ func (c *MetricDescriptorsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "getwithoutbody.metricDescriptors.list" call. diff --git a/google-api-go-generator/testdata/http-body.want b/google-api-go-generator/testdata/http-body.want index 5e4e1d8a059..5c6f69c59c3 100644 --- a/google-api-go-generator/testdata/http-body.want +++ b/google-api-go-generator/testdata/http-body.want @@ -346,7 +346,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateResourceCall) doRequest(al "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.createResource" call. @@ -443,7 +443,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.read" call. diff --git a/google-api-go-generator/testdata/json-body.want b/google-api-go-generator/testdata/json-body.want index 153a2e0cecd..6462485a169 100644 --- a/google-api-go-generator/testdata/json-body.want +++ b/google-api-go-generator/testdata/json-body.want @@ -2470,7 +2470,7 @@ func (c *ProjectsGetConfigCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.getConfig" call. @@ -2577,7 +2577,7 @@ func (c *ProjectsPredictCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.predict" call. @@ -2687,7 +2687,7 @@ func (c *ProjectsJobsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.cancel" call. @@ -2789,7 +2789,7 @@ func (c *ProjectsJobsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.create" call. @@ -2897,7 +2897,7 @@ func (c *ProjectsJobsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.get" call. @@ -3010,7 +3010,7 @@ func (c *ProjectsJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.getIamPolicy" call. @@ -3159,7 +3159,7 @@ func (c *ProjectsJobsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.list" call. @@ -3315,7 +3315,7 @@ func (c *ProjectsJobsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.patch" call. @@ -3421,7 +3421,7 @@ func (c *ProjectsJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.setIamPolicy" call. @@ -3535,7 +3535,7 @@ func (c *ProjectsJobsTestIamPermissionsCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.testIamPermissions" call. @@ -3645,7 +3645,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.get" call. @@ -3778,7 +3778,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.list" call. @@ -3907,7 +3907,7 @@ func (c *ProjectsModelsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.create" call. @@ -4009,7 +4009,7 @@ func (c *ProjectsModelsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.delete" call. @@ -4120,7 +4120,7 @@ func (c *ProjectsModelsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.get" call. @@ -4233,7 +4233,7 @@ func (c *ProjectsModelsGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.getIamPolicy" call. @@ -4378,7 +4378,7 @@ func (c *ProjectsModelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.list" call. @@ -4530,7 +4530,7 @@ func (c *ProjectsModelsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.patch" call. @@ -4636,7 +4636,7 @@ func (c *ProjectsModelsSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.setIamPolicy" call. @@ -4750,7 +4750,7 @@ func (c *ProjectsModelsTestIamPermissionsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.testIamPermissions" call. @@ -4866,7 +4866,7 @@ func (c *ProjectsModelsVersionsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.create" call. @@ -4971,7 +4971,7 @@ func (c *ProjectsModelsVersionsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.delete" call. @@ -5086,7 +5086,7 @@ func (c *ProjectsModelsVersionsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.get" call. @@ -5229,7 +5229,7 @@ func (c *ProjectsModelsVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.list" call. @@ -5377,7 +5377,7 @@ func (c *ProjectsModelsVersionsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.patch" call. @@ -5492,7 +5492,7 @@ func (c *ProjectsModelsVersionsSetDefaultCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.setDefault" call. @@ -5600,7 +5600,7 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.operations.cancel" call. @@ -5702,7 +5702,7 @@ func (c *ProjectsOperationsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.operations.delete" call. @@ -5814,7 +5814,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.operations.get" call. @@ -5955,7 +5955,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.operations.list" call. diff --git a/google-api-go-generator/testdata/mapofarrayofobjects.want b/google-api-go-generator/testdata/mapofarrayofobjects.want index 9438d2e7fe2..51626c75ff7 100644 --- a/google-api-go-generator/testdata/mapofarrayofobjects.want +++ b/google-api-go-generator/testdata/mapofarrayofobjects.want @@ -239,7 +239,7 @@ func (c *AtlasGetMapCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mapofstrings.getMap" call. diff --git a/google-api-go-generator/testdata/mapofstrings-1.want b/google-api-go-generator/testdata/mapofstrings-1.want index f2173014861..1fa706db854 100644 --- a/google-api-go-generator/testdata/mapofstrings-1.want +++ b/google-api-go-generator/testdata/mapofstrings-1.want @@ -236,7 +236,7 @@ func (c *AtlasGetMapCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mapofstrings.getMap" call. diff --git a/google-api-go-generator/testdata/mapprotostruct.want b/google-api-go-generator/testdata/mapprotostruct.want index 74118a411a2..4638f8bfad9 100644 --- a/google-api-go-generator/testdata/mapprotostruct.want +++ b/google-api-go-generator/testdata/mapprotostruct.want @@ -212,7 +212,7 @@ func (c *AtlasGetMapCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mapprotostruct.getMap" call. diff --git a/google-api-go-generator/testdata/param-rename.want b/google-api-go-generator/testdata/param-rename.want index 745170b91a2..5da8f47470f 100644 --- a/google-api-go-generator/testdata/param-rename.want +++ b/google-api-go-generator/testdata/param-rename.want @@ -227,7 +227,7 @@ func (c *EventsMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "right-string": c.rightString, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "calendar.events.move" call. @@ -331,7 +331,7 @@ func (c *ReportsQueryCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.reports.query" call. diff --git a/google-api-go-generator/testdata/repeated.want b/google-api-go-generator/testdata/repeated.want index a56b2ec3e43..2becca3e704 100644 --- a/google-api-go-generator/testdata/repeated.want +++ b/google-api-go-generator/testdata/repeated.want @@ -261,7 +261,7 @@ func (c *AccountsReportsGenerateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "adsense.accounts.reports.generate" call. diff --git a/google-api-go-generator/testdata/required-query.want b/google-api-go-generator/testdata/required-query.want index 2112fea886e..836ad9b53a6 100644 --- a/google-api-go-generator/testdata/required-query.want +++ b/google-api-go-generator/testdata/required-query.want @@ -235,7 +235,7 @@ func (c *TechsCountCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tshealth.techs.count" call. diff --git a/google-api-go-generator/testdata/resource-named-service.want b/google-api-go-generator/testdata/resource-named-service.want index 6cd5bc0d683..11bcc01fef9 100644 --- a/google-api-go-generator/testdata/resource-named-service.want +++ b/google-api-go-generator/testdata/resource-named-service.want @@ -1825,7 +1825,7 @@ func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.get" call. @@ -1930,7 +1930,7 @@ func (c *AppsRepairCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.repair" call. @@ -2041,7 +2041,7 @@ func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "locationsId": c.locationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.get" call. @@ -2169,7 +2169,7 @@ func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.locations.list" call. @@ -2304,7 +2304,7 @@ func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "operationsId": c.operationsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.get" call. @@ -2434,7 +2434,7 @@ func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.operations.list" call. @@ -2556,7 +2556,7 @@ func (c *AppsServicesDeleteCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.delete" call. @@ -2668,7 +2668,7 @@ func (c *AppsServicesGetCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.get" call. @@ -2790,7 +2790,7 @@ func (c *AppsServicesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "appsId": c.appsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.list" call. @@ -2944,7 +2944,7 @@ func (c *AppsServicesPatchCall) doRequest(alt string) (*http.Response, error) { "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.patch" call. @@ -3050,7 +3050,7 @@ func (c *AppsServicesVersionsCreateCall) doRequest(alt string) (*http.Response, "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.create" call. @@ -3154,7 +3154,7 @@ func (c *AppsServicesVersionsDeleteCall) doRequest(alt string) (*http.Response, "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.delete" call. @@ -3284,7 +3284,7 @@ func (c *AppsServicesVersionsGetCall) doRequest(alt string) (*http.Response, err "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.get" call. @@ -3422,7 +3422,7 @@ func (c *AppsServicesVersionsListCall) doRequest(alt string) (*http.Response, er "appsId": c.appsId, "servicesId": c.servicesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.list" call. @@ -3575,7 +3575,7 @@ func (c *AppsServicesVersionsPatchCall) doRequest(alt string) (*http.Response, e "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.patch" call. @@ -3694,7 +3694,7 @@ func (c *AppsServicesVersionsInstancesDebugCall) doRequest(alt string) (*http.Re "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.debug" call. @@ -3802,7 +3802,7 @@ func (c *AppsServicesVersionsInstancesDeleteCall) doRequest(alt string) (*http.R "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.delete" call. @@ -3922,7 +3922,7 @@ func (c *AppsServicesVersionsInstancesGetCall) doRequest(alt string) (*http.Resp "versionsId": c.versionsId, "instancesId": c.instancesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.get" call. @@ -4052,7 +4052,7 @@ func (c *AppsServicesVersionsInstancesListCall) doRequest(alt string) (*http.Res "servicesId": c.servicesId, "versionsId": c.versionsId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "appengine.apps.services.versions.instances.list" call. diff --git a/groupsmigration/v1/groupsmigration-gen.go b/groupsmigration/v1/groupsmigration-gen.go index c5f01faa8f9..5568c4b27d0 100644 --- a/groupsmigration/v1/groupsmigration-gen.go +++ b/groupsmigration/v1/groupsmigration-gen.go @@ -294,7 +294,7 @@ func (c *ArchiveInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupId": c.groupId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "groupsmigration.archive.insert" call. diff --git a/groupssettings/v1/groupssettings-gen.go b/groupssettings/v1/groupssettings-gen.go index e9c653666fe..30de48fdbde 100644 --- a/groupssettings/v1/groupssettings-gen.go +++ b/groupssettings/v1/groupssettings-gen.go @@ -723,7 +723,7 @@ func (c *GroupsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupUniqueId": c.groupUniqueId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "groupsSettings.groups.get" call. @@ -824,7 +824,7 @@ func (c *GroupsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupUniqueId": c.groupUniqueId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "groupsSettings.groups.patch" call. @@ -925,7 +925,7 @@ func (c *GroupsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "groupUniqueId": c.groupUniqueId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "groupsSettings.groups.update" call. diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index 5ce214504fb..8c60402cd25 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -5866,7 +5866,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.get" call. @@ -5997,7 +5997,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.list" call. @@ -6132,7 +6132,7 @@ func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.create" call. @@ -6242,7 +6242,7 @@ func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "sourceDataset": c.sourceDataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.deidentify" call. @@ -6340,7 +6340,7 @@ func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.delete" call. @@ -6448,7 +6448,7 @@ func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.get" call. @@ -6575,7 +6575,7 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.getIamPolicy" call. @@ -6697,7 +6697,7 @@ func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.list" call. @@ -6829,7 +6829,7 @@ func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.patch" call. @@ -6934,7 +6934,7 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.setIamPolicy" call. @@ -7042,7 +7042,7 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.testIamPermissions" call. @@ -7148,7 +7148,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "consentStore": c.consentStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.checkDataAccess" call. @@ -7260,7 +7260,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.create" call. @@ -7356,7 +7356,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.delete" call. @@ -7461,7 +7461,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) doReque googleapi.Expand(req.URL, map[string]string{ "consentStore": c.consentStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.evaluateUserConsents" call. @@ -7590,7 +7590,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.get" call. @@ -7717,7 +7717,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.getIamPolicy" call. @@ -7847,7 +7847,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.list" call. @@ -7982,7 +7982,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.patch" call. @@ -8109,7 +8109,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) doReques googleapi.Expand(req.URL, map[string]string{ "consentStore": c.consentStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.queryAccessibleData" call. @@ -8214,7 +8214,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.setIamPolicy" call. @@ -8322,7 +8322,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.testIamPermissions" call. @@ -8435,7 +8435,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.create" call. @@ -8535,7 +8535,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.delete" call. @@ -8642,7 +8642,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.get" call. @@ -8773,7 +8773,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) doR googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.list" call. @@ -8910,7 +8910,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.patch" call. @@ -9012,7 +9012,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.create" call. @@ -9111,7 +9111,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.delete" call. @@ -9218,7 +9218,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.get" call. @@ -9372,7 +9372,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.list" call. @@ -9502,7 +9502,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.activate" call. @@ -9603,7 +9603,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.create" call. @@ -9704,7 +9704,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.delete" call. @@ -9805,7 +9805,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.deleteRevision" call. @@ -9918,7 +9918,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.get" call. @@ -10073,7 +10073,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.list" call. @@ -10250,7 +10250,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.listRevisions" call. @@ -10389,7 +10389,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.patch" call. @@ -10497,7 +10497,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.reject" call. @@ -10605,7 +10605,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.revoke" call. @@ -10706,7 +10706,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.archive" call. @@ -10808,7 +10808,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.create" call. @@ -10904,7 +10904,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.delete" call. @@ -11011,7 +11011,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.get" call. @@ -11163,7 +11163,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.list" call. @@ -11298,7 +11298,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.patch" call. @@ -11426,7 +11426,7 @@ func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy" call. @@ -11531,7 +11531,7 @@ func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy" call. @@ -11639,7 +11639,7 @@ func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) do googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions" call. @@ -11749,7 +11749,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.create" call. @@ -11860,7 +11860,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "sourceStore": c.sourceStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.deidentify" call. @@ -11956,7 +11956,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.delete" call. @@ -12064,7 +12064,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.export" call. @@ -12171,7 +12171,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.get" call. @@ -12278,7 +12278,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.getDICOMStoreMetrics" call. @@ -12406,7 +12406,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.getIamPolicy" call. @@ -12514,7 +12514,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.import" call. @@ -12664,7 +12664,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.list" call. @@ -12797,7 +12797,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.patch" call. @@ -12920,7 +12920,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) doRequest(a "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.searchForInstances" call. @@ -13010,7 +13010,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) doRequest(alt "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.searchForSeries" call. @@ -13101,7 +13101,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) doRequest(alt "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.searchForStudies" call. @@ -13183,7 +13183,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.setBlobStorageSettings" call. @@ -13288,7 +13288,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.setIamPolicy" call. @@ -13398,7 +13398,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) doRequest(alt s "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.storeInstances" call. @@ -13475,7 +13475,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.testIamPermissions" call. @@ -13585,7 +13585,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) googleapi.Expand(req.URL, map[string]string{ "study": c.study, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.getStudyMetrics" call. @@ -13698,7 +13698,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.setBlobStorageSettings" call. @@ -13807,7 +13807,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetri googleapi.Expand(req.URL, map[string]string{ "series": c.series, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.getSeriesMetrics" call. @@ -13919,7 +13919,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetSt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.getStorageInfo" call. @@ -14026,7 +14026,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) doRequest(alt st "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.delete" call. @@ -14149,7 +14149,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) doRequ "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.retrieveMetadata" call. @@ -14240,7 +14240,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) doRequest "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.retrieveStudy" call. @@ -14332,7 +14332,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) doRe "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.searchForInstances" call. @@ -14422,7 +14422,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) doReque "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.searchForSeries" call. @@ -14501,7 +14501,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) doReques "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.storeInstances" call. @@ -14579,7 +14579,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) doRequest( "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.delete" call. @@ -14702,7 +14702,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.retrieveMetadata" call. @@ -14793,7 +14793,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) do "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.retrieveSeries" call. @@ -14885,7 +14885,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.searchForInstances" call. @@ -14962,7 +14962,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) d "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.delete" call. @@ -15087,7 +15087,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInsta "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.retrieveInstance" call. @@ -15181,7 +15181,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetad "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.retrieveMetadata" call. @@ -15275,7 +15275,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRende "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.retrieveRendered" call. @@ -15367,7 +15367,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetriev "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.frames.retrieveFrames" call. @@ -15461,7 +15461,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetriev "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.frames.retrieveRendered" call. @@ -15539,7 +15539,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.create" call. @@ -15647,7 +15647,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "sourceStore": c.sourceStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.deidentify" call. @@ -15743,7 +15743,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.delete" call. @@ -15853,7 +15853,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.export" call. @@ -15960,7 +15960,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.get" call. @@ -16067,7 +16067,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.getFHIRStoreMetrics" call. @@ -16195,7 +16195,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.getIamPolicy" call. @@ -16353,7 +16353,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.import" call. @@ -16503,7 +16503,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.list" call. @@ -16637,7 +16637,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.patch" call. @@ -16747,7 +16747,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.rollback" call. @@ -16852,7 +16852,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.setIamPolicy" call. @@ -16960,7 +16960,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.testIamPermissions" call. @@ -17087,7 +17087,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirBinaryCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Binary-create" call. @@ -17171,7 +17171,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirBinaryReadCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Binary-read" call. @@ -17270,7 +17270,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirBinaryUpdateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Binary-update" call. @@ -17354,7 +17354,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirBinaryVreadCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Binary-vread" call. @@ -17509,7 +17509,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything" call. @@ -17578,7 +17578,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge" call. @@ -17711,7 +17711,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) doRequest( "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-validate" call. @@ -17800,7 +17800,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities" call. @@ -17884,7 +17884,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) doRequest "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete" call. @@ -18006,7 +18006,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) doRequest( "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch" call. @@ -18105,7 +18105,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) doRequest "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate" call. @@ -18204,7 +18204,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.create" call. @@ -18278,7 +18278,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.delete" call. @@ -18378,7 +18378,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle" call. @@ -18507,7 +18507,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.history" call. @@ -18587,7 +18587,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.patch" call. @@ -18679,7 +18679,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.read" call. @@ -18816,7 +18816,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.search" call. @@ -18961,7 +18961,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) doRequest(alt st "parent": c.parent, "resourceType": c.resourceType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.search-type" call. @@ -19047,7 +19047,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.update" call. @@ -19134,7 +19134,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.vread" call. @@ -19212,7 +19212,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.create" call. @@ -19308,7 +19308,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.delete" call. @@ -19417,7 +19417,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.export" call. @@ -19524,7 +19524,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.get" call. @@ -19634,7 +19634,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.getHL7v2StoreMetrics" call. @@ -19762,7 +19762,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy" call. @@ -19889,7 +19889,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.import" call. @@ -20039,7 +20039,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.list" call. @@ -20172,7 +20172,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.patch" call. @@ -20282,7 +20282,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresRollbackCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.rollback" call. @@ -20387,7 +20387,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy" call. @@ -20495,7 +20495,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions" call. @@ -20601,7 +20601,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.create" call. @@ -20696,7 +20696,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete" call. @@ -20829,7 +20829,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.get" call. @@ -20938,7 +20938,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest" call. @@ -21144,7 +21144,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.list" call. @@ -21281,7 +21281,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch" call. @@ -21390,7 +21390,7 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.operations.cancel" call. @@ -21499,7 +21499,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.operations.get" call. @@ -21627,7 +21627,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.operations.list" call. @@ -21753,7 +21753,7 @@ func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "nlpService": c.nlpService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.services.nlp.analyzeEntities" call. diff --git a/healthcare/v1alpha/healthcare-gen.go b/healthcare/v1alpha/healthcare-gen.go index 6450005bf48..16b3a5f1e1b 100644 --- a/healthcare/v1alpha/healthcare-gen.go +++ b/healthcare/v1alpha/healthcare-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/healthcare // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // healthcareService, err := healthcare.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // healthcareService, err := healthcare.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // healthcareService, err := healthcare.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package healthcare // import "google.golang.org/api/healthcare/v1alpha" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,11 +83,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "healthcare:v1alpha" const apiName = "healthcare" const apiVersion = "v1alpha" const basePath = "https://healthcare.googleapis.com/" +const basePathTemplate = "https://healthcare.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -82,11 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -205,12 +226,11 @@ type ProjectsLocationsDatasetsOperationsService struct { // identities, if any, are exempted from logging. // An AuditConfig must have one or more AuditLogConfigs. // -// If there are AuditConfigs for both `allServices` and a specific -// service, +// If there are AuditConfigs for both `allServices` and a specific service, // the union of the two AuditConfigs is used for that service: the // log_types -// specified in each AuditConfig are enabled, and the exempted_members -// in each +// specified in each AuditConfig are enabled, and the exempted_members in +// each // AuditLogConfig are exempted. // // Example Policy with multiple AuditConfigs: @@ -257,39 +277,29 @@ type ProjectsLocationsDatasetsOperationsService struct { // and // bar@gmail.com from DATA_WRITE logging. type AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit - // logging. + // Service: Specifies a service that will be enabled for audit logging. // For example, `storage.googleapis.com`, // `cloudsql.googleapis.com`. // `allServices` is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditConfig) MarshalJSON() ([]byte, error) { +func (s AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditLogConfig: Provides the configuration for logging a type of @@ -314,12 +324,11 @@ func (s *AuditConfig) MarshalJSON() ([]byte, error) { // exempting // foo@gmail.com from DATA_READ logging. type AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of // permission. // Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. // // Possible values: @@ -328,29 +337,22 @@ type AuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members` with a `role`. @@ -362,67 +364,51 @@ type Binding struct { // examined // independently. Condition *Expr `json:"condition,omitempty"` - - // Members: Specifies the identities requesting access for a Cloud - // Platform resource. + // Members: Specifies the identities requesting access for a Cloud Platform + // resource. // `members` can have the following values: // // * `allUsers`: A special identifier that represents anyone who is // on the internet; with or without a Google account. // - // * `allAuthenticatedUsers`: A special identifier that represents - // anyone - // who is authenticated with a Google account or a service - // account. + // * `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. // - // * `user:{emailid}`: An email address that represents a specific - // Google + // * `user:{emailid}`: An email address that represents a specific Google // account. For example, `alice@gmail.com` . // // - // * `serviceAccount:{emailid}`: An email address that represents a - // service - // account. For example, - // `my-other-app@appspot.gserviceaccount.com`. + // * `serviceAccount:{emailid}`: An email address that represents a service + // account. For example, `my-other-app@appspot.gserviceaccount.com`. // - // * `group:{emailid}`: An email address that represents a Google - // group. + // * `group:{emailid}`: An email address that represents a Google group. // For example, `admins@example.com`. // // - // * `domain:{domain}`: The G Suite domain (primary) that represents all - // the - // users of that domain. For example, `google.com` or - // `example.com`. + // * `domain:{domain}`: The G Suite domain (primary) that represents all the + // users of that domain. For example, `google.com` or `example.com`. // // Members []string `json:"members,omitempty"` - // Role: Role that is assigned to `members`. // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Expr: Represents an expression text. Example: @@ -431,11 +417,10 @@ func (s *Binding) MarshalJSON() ([]byte, error) { // description: "Determines whether the request has a user account" // expression: "size(request.user) > 0" type Expr struct { - // Description: An optional description of the expression. This is a - // longer text which + // Description: An optional description of the expression. This is a longer + // text which // describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - // Expression: Textual representation of an expression in // Common Expression Language syntax. // @@ -443,246 +428,191 @@ type Expr struct { // which // well-known feature set of CEL is supported. Expression string `json:"expression,omitempty"` - - // Location: An optional string indicating the location of the - // expression for error + // Location: An optional string indicating the location of the expression for + // error // reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - // Title: An optional title for the expression, i.e. a short string // describing // its purpose. This can be used e.g. in UIs which allow to enter // the // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. +// ListLocationsResponse: The response message for Locations.ListLocations. type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. + // Locations: A list of locations that matches the specified filter in the + // request. Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Location: A resource that represents Google Cloud Platform location. type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. + // DisplayName: The friendly name for this location, typically a nearby city + // name. // For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example // // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". + // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given + // Metadata: Service-specific metadata. For example the available capacity at + // the given // location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between // implementations. // For example: "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a +// Operation: This resource represents a long-running operation that is the +// result of a // network API call. type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. - // If `true`, the operation is completed, and either `error` or - // `response` is + // If `true`, the operation is completed, and either `error` or `response` + // is // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. - // It typically - // contains progress information and common metadata such as create - // time. - // Some services might not provide such metadata. Any method that - // returns a + // Metadata: Service-specific metadata associated with the operation. It + // typically + // contains progress information and common metadata such as create time. + // Some services might not provide such metadata. Any method that returns + // a // long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that - // originally returns it. If you use the default HTTP mapping, - // the + // Name: The server-assigned name, which is only unique within the same service + // that + // originally returns it. If you use the default HTTP mapping, the // `name` should have the format of `operations/some/unique/name`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. - // If the original + // Response: The normal response of the operation in case of success. If the + // original // method returns no data on success, such as `Delete`, the response // is // `google.protobuf.Empty`. If the original method is // standard // `Get`/`Create`/`Update`, the response should be the resource. For // other - // methods, the response should have the type `XxxResponse`, where - // `Xxx` - // is the original method name. For example, if the original method - // name - // is `TakeSnapshot()`, the inferred response type - // is + // methods, the response should have the type `XxxResponse`, where `Xxx` + // is the original method name. For example, if the original method name + // is `TakeSnapshot()`, the inferred response type is // `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Policy: Defines an Identity and Access Management (IAM) policy. It is -// used to +// Policy: Defines an Identity and Access Management (IAM) policy. It is used +// to // specify access control policies for Cloud Platform resources. // // A `Policy` consists of a list of `bindings`. A `binding` binds a list @@ -703,9 +633,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) { // "user:mike@example.com", // "group:admins@example.com", // "domain:google.com", -// -// "serviceAccount:my-other-app@appspot.gserviceaccount.com" -// +// "serviceAccount:my-other-app@appspot.gserviceaccount.com" // ] // }, // { @@ -729,28 +657,24 @@ func (s *Operation) MarshalJSON() ([]byte, error) { // role: roles/viewer // // For a description of IAM and its features, see the -// [IAM developer's guide](https://cloud.google.com/iam/docs). +// IAM developer's guide (https://cloud.google.com/iam/docs). type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - // Bindings: Associates a list of `members` to a `role`. // `bindings` with no members will result in an error. Bindings []*Binding `json:"bindings,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to // help - // prevent simultaneous updates of a policy from overwriting each - // other. + // prevent simultaneous updates of a policy from overwriting each other. // It is strongly suggested that systems make use of the `etag` in // the // read-modify-write cycle to perform policy updates in order to avoid // race // conditions: An `etag` is returned in the response to `getIamPolicy`, // and - // systems are expected to put that etag in the request to - // `setIamPolicy` to + // systems are expected to put that etag in the request to `setIamPolicy` + // to // ensure that their change will be applied to the same version of the // policy. // @@ -758,85 +682,69 @@ type Policy struct { // existing // policy is overwritten blindly. Etag string `json:"etag,omitempty"` - // Version: Deprecated. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of // the policy is limited to a few 10s of KB. An empty policy is a - // valid policy but certain Cloud Platform services (such as - // Projects) + // valid policy but certain Cloud Platform services (such as Projects) // might reject them. Policy *Policy `json:"policy,omitempty"` - - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only // the fields in the mask will be modified. If no mask is provided, // the // following default mask is used: // paths: "bindings, etag" // This field is only used by Cloud IAM. UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for -// different programming environments, including REST APIs and RPC APIs. -// It is -// used by [gRPC](https://github.com/grpc). The error model is designed -// to be: +// Status: The `Status` type defines a logical error model that is suitable +// for +// different programming environments, including REST APIs and RPC APIs. It +// is +// used by gRPC (https://github.com/grpc). The error model is designed to +// be: // // - Simple to use and understand for most users // - Flexible enough to meet unexpected needs @@ -853,23 +761,22 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { // helps // developers *understand* and *resolve* the error. If a localized // user-facing -// error message is needed, put the localized message in the error -// details or +// error message is needed, put the localized message in the error details +// or // localize it in the client. The optional error details may contain // arbitrary -// information about the error. There is a predefined set of error -// detail types -// in the package `google.rpc` that can be used for common error -// conditions. +// information about the error. There is a predefined set of error detail +// types +// in the package `google.rpc` that can be used for common error conditions. // // # Language mapping // -// The `Status` message is the logical representation of the error -// model, but it +// The `Status` message is the logical representation of the error model, but +// it // is not necessarily the actual wire format. When the `Status` message // is -// exposed in different client libraries and different wire protocols, -// it can be +// exposed in different client libraries and different wire protocols, it can +// be // mapped differently. For example, it will likely be mapped to some // exceptions // in Java, but more likely mapped to some error codes in C. @@ -879,8 +786,7 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { // The error model and the `Status` message can be used in a variety // of // environments, either with or without APIs, to provide a -// consistent developer experience across different -// environments. +// consistent developer experience across different environments. // // Example uses of this error model include: // @@ -893,147 +799,108 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { // // errors. // -// - Workflow errors. A typical workflow has multiple steps. Each step -// may -// -// have a `Status` message for error reporting. -// -// - Batch operations. If a client uses batch request and batch -// response, the -// -// `Status` message should be used directly inside batch response, -// -// one for -// -// each error sub-response. -// -// - Asynchronous operations. If an API call embeds asynchronous -// operation -// -// results in its response, the status of those operations should +// - Workflow errors. A typical workflow has multiple steps. Each step may +// have a `Status` message for error reporting. // -// be +// - Batch operations. If a client uses batch request and batch response, the +// `Status` message should be used directly inside batch response, one for +// each error sub-response. // -// represented directly using the `Status` message. +// - Asynchronous operations. If an API call embeds asynchronous operation +// results in its response, the status of those operations should be +// represented directly using the `Status` message. // -// - Logging. If some API errors are stored in logs, the message -// `Status` could +// - Logging. If some API errors are stored in logs, the message `Status` +// could // // be used directly after any stripping needed for security/privacy // // reasons. type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of + // Details: A list of messages that carry the error details. There is a common + // set of // message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any + // Message: A developer-facing error message, which should be in English. + // Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. +// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with - // wildcards (such as '*' or 'storage.*') are not allowed. For - // more + // Permissions: The set of permissions to check for the `resource`. Permissions + // with + // wildcards (such as '*' or 'storage.*') are not allowed. For more // information see - // [IAM - // Overview](https://cloud.google.com/iam/docs/overview#permissions). + // IAM Overview (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsResponse: Response message for `TestIamPermissions` // method. type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is // allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "healthcare.projects.locations.get": - type ProjectsLocationsGetCall struct { s *Service name string @@ -1044,6 +911,8 @@ type ProjectsLocationsGetCall struct { } // Get: Gets information about a location. +// +// - name: Resource name for the location. func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1051,33 +920,29 @@ func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1086,12 +951,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { } func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1108,16 +968,14 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1125,17 +983,17 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Location{ ServerResponse: googleapi.ServerResponse{ @@ -1148,35 +1006,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, return nil, err } return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the location.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "Location" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.list": +} type ProjectsLocationsListCall struct { s *Service @@ -1187,63 +1017,59 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this service. +// +// - name: The resource that owns the locations collection, if applicable. func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1252,12 +1078,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { } func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1274,16 +1095,15 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1291,17 +1111,17 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1314,48 +1134,6 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat return nil, err } return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1alpha/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}/locations", - // "response": { - // "$ref": "ListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1363,7 +1141,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1379,8 +1157,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -// method id "healthcare.projects.locations.datasets.getIamPolicy": - type ProjectsLocationsDatasetsGetIamPolicyCall struct { s *Service resource string @@ -1394,6 +1170,10 @@ type ProjectsLocationsDatasetsGetIamPolicyCall struct { // Returns an empty policy if the resource exists and does not have a // policy // set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsGetIamPolicyCall { c := &ProjectsLocationsDatasetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1401,33 +1181,29 @@ func (r *ProjectsLocationsDatasetsService) GetIamPolicy(resource string) *Projec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1436,12 +1212,7 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1458,16 +1229,14 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1475,17 +1244,17 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -1498,35 +1267,7 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.setIamPolicy": +} type ProjectsLocationsDatasetsSetIamPolicyCall struct { s *Service @@ -1537,9 +1278,13 @@ type ProjectsLocationsDatasetsSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any // existing policy. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsSetIamPolicyCall { c := &ProjectsLocationsDatasetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1548,23 +1293,21 @@ func (r *ProjectsLocationsDatasetsService) SetIamPolicy(resource string, setiamp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1573,18 +1316,12 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:setIamPolicy") @@ -1597,16 +1334,14 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1614,17 +1349,17 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -1637,38 +1372,7 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.testIamPermissions": +} type ProjectsLocationsDatasetsTestIamPermissionsCall struct { s *Service @@ -1679,8 +1383,8 @@ type ProjectsLocationsDatasetsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. @@ -1690,6 +1394,10 @@ type ProjectsLocationsDatasetsTestIamPermissionsCall struct { // UIs and command-line tools, not for authorization checking. This // operation // may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsTestIamPermissionsCall { c := &ProjectsLocationsDatasetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1698,23 +1406,21 @@ func (r *ProjectsLocationsDatasetsService) TestIamPermissions(resource string, t } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1723,18 +1429,12 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:testIamPermissions") @@ -1747,16 +1447,15 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1764,17 +1463,17 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.C if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1787,38 +1486,7 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.getIamPolicy": +} type ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall struct { s *Service @@ -1833,6 +1501,10 @@ type ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall struct { // Returns an empty policy if the resource exists and does not have a // policy // set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsDicomStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall { c := &ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1840,33 +1512,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) GetIamPolicy(resource stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1875,12 +1543,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Hea } func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1897,16 +1560,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1914,17 +1575,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -1937,35 +1598,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.setIamPolicy": +} type ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall struct { s *Service @@ -1976,9 +1609,13 @@ type ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any // existing policy. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsDicomStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall { c := &ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -1987,23 +1624,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) SetIamPolicy(resource stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2012,18 +1647,12 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Hea } func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:setIamPolicy") @@ -2036,16 +1665,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2053,17 +1680,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -2076,38 +1703,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.dicomStores.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.testIamPermissions": +} type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct { s *Service @@ -2118,8 +1714,8 @@ type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. @@ -2129,6 +1725,10 @@ type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct { // UIs and command-line tools, not for authorization checking. This // operation // may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsDicomStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall { c := &ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2137,23 +1737,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) TestIamPermissions(resourc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2162,18 +1760,12 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() ht } func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:testIamPermissions") @@ -2186,16 +1778,15 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2203,17 +1794,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ... if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2226,38 +1817,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.dicomStores.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy": +} type ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall struct { s *Service @@ -2272,6 +1832,10 @@ type ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall struct { // Returns an empty policy if the resource exists and does not have a // policy // set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall { c := &ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2279,33 +1843,29 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetIamPolicy(resource stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2314,12 +1874,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Hea } func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2336,16 +1891,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2353,17 +1906,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -2376,35 +1929,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy": +} type ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall struct { s *Service @@ -2415,9 +1940,13 @@ type ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any // existing policy. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsHl7V2StoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall { c := &ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2426,23 +1955,21 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresService) SetIamPolicy(resource stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2451,18 +1978,12 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Hea } func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:setIamPolicy") @@ -2475,16 +1996,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2492,17 +2011,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -2515,38 +2034,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions": +} type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct { s *Service @@ -2557,8 +2045,8 @@ type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. @@ -2568,6 +2056,10 @@ type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct { // UIs and command-line tools, not for authorization checking. This // operation // may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsHl7V2StoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall { c := &ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2576,23 +2068,21 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresService) TestIamPermissions(resourc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2601,18 +2091,12 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() ht } func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:testIamPermissions") @@ -2625,16 +2109,15 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2642,17 +2125,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ... if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2665,38 +2148,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.operations.get": +} type ProjectsLocationsDatasetsOperationsGetCall struct { s *Service @@ -2707,11 +2159,13 @@ type ProjectsLocationsDatasetsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this -// method to poll the operation result at intervals as recommended by -// the API +// Get: Gets the latest state of a long-running operation. Clients can use +// this +// method to poll the operation result at intervals as recommended by the +// API // service. +// +// - name: The name of the operation resource. func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall { c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2719,33 +2173,29 @@ func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsL } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2754,12 +2204,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2776,16 +2221,14 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2793,17 +2236,17 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2816,35 +2259,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.operations.list": +} type ProjectsLocationsDatasetsOperationsListCall struct { s *Service @@ -2855,13 +2270,11 @@ type ProjectsLocationsDatasetsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the -// server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the +// server doesn't support this method, it returns `UNIMPLEMENTED`. // -// NOTE: the `name` binding allows API services to override the -// binding +// NOTE: the `name` binding allows API services to override the binding // to use different resource name schemes, such as `users/*/operations`. // To // override the binding, API services can add a binding such @@ -2869,64 +2282,60 @@ type ProjectsLocationsDatasetsOperationsListCall struct { // "/v1/{name=users/*}/operations" to their service configuration. // For backwards compatibility, the default name includes the // operations -// collection id, however overriding users must ensure the name -// binding +// collection id, however overriding users must ensure the name binding // is the parent resource, without the operations collection id. +// +// - name: The name of the operation's parent resource. func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall { c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2935,12 +2344,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2957,16 +2361,15 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2974,17 +2377,17 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2997,48 +2400,6 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3046,7 +2407,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/healthcare/v1alpha2/healthcare-gen.go b/healthcare/v1alpha2/healthcare-gen.go index 972ab578f2d..a2809a54d5d 100644 --- a/healthcare/v1alpha2/healthcare-gen.go +++ b/healthcare/v1alpha2/healthcare-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/healthcare // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // healthcareService, err := healthcare.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // healthcareService, err := healthcare.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // healthcareService, err := healthcare.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package healthcare // import "google.golang.org/api/healthcare/v1alpha2" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,11 +83,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "healthcare:v1alpha2" const apiName = "healthcare" const apiVersion = "v1alpha2" const basePath = "https://healthcare.googleapis.com/" +const basePathTemplate = "https://healthcare.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -82,11 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -323,86 +344,63 @@ type ProjectsLocationsDatasetsOperationsService struct { type Annotation struct { // AnnotationSource: Details of the source. AnnotationSource *AnnotationSource `json:"annotationSource,omitempty"` - // ImageAnnotation: Annotations for images, e.g., bounding polygons. ImageAnnotation *ImageAnnotation `json:"imageAnnotation,omitempty"` - // Name: Output only. Resource name of the Annotation, of the // form - // `projects/{project_id}/locations/{location_id}/datasets/{dataset_ - // id}/annotationStores/{annotation_store_id}/annotations/{annotation_id} - // `. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotati + // onStores/{annotation_store_id}/annotations/{annotation_id}`. Name string `json:"name,omitempty"` - - // ResourceAnnotation: Annotations for resource, e.g., classification - // tags. + // ResourceAnnotation: Annotations for resource, e.g., classification tags. ResourceAnnotation *ResourceAnnotation `json:"resourceAnnotation,omitempty"` - - // TextAnnotation: Annotations for sensitive texts, e.g., range of such - // texts. + // TextAnnotation: Annotations for sensitive texts, e.g., range of such texts. TextAnnotation *SensitiveTextAnnotation `json:"textAnnotation,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AnnotationSource") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnnotationSource") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AnnotationSource") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Annotation) MarshalJSON() ([]byte, error) { +func (s Annotation) MarshalJSON() ([]byte, error) { type NoMethod Annotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AnnotationSource: AnnotationSource holds the source information of -// the annotation. +// AnnotationSource: AnnotationSource holds the source information of the +// annotation. type AnnotationSource struct { // CloudHealthcareSource: Cloud Healthcare API resource. CloudHealthcareSource *CloudHealthcareSource `json:"cloudHealthcareSource,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CloudHealthcareSource") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CloudHealthcareSource") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudHealthcareSource") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnnotationSource) MarshalJSON() ([]byte, error) { +func (s AnnotationSource) MarshalJSON() ([]byte, error) { type NoMethod AnnotationSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AnnotationStore: An Annotation store that can store annotation -// resources such as +// AnnotationStore: An Annotation store that can store annotation resources +// such as // labels and tags for text, image and audio. type AnnotationStore struct { // Labels: User-supplied key-value pairs used to organize Annotation @@ -414,46 +412,36 @@ type AnnotationStore struct { // following PCRE regular expression: // \p{Ll}\p{Lo}{0,62} // - // Label values are optional, must be between 1 and 63 characters long, - // have - // a UTF-8 encoding of maximum 128 bytes, and must conform to - // the + // Label values are optional, must be between 1 and 63 characters long, have + // a UTF-8 encoding of maximum 128 bytes, and must conform to the // following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} // // No more than 64 labels can be associated with a given store. Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. Resource name of the Annotation store, of the // form - // `projects/{project_id}/locations/{location_id}/datasets/{dataset_ - // id}/annotationStores/{annotation_store_id}`. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotati + // onStores/{annotation_store_id}`. Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Labels") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Labels") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Labels") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnnotationStore) MarshalJSON() ([]byte, error) { +func (s AnnotationStore) MarshalJSON() ([]byte, error) { type NoMethod AnnotationStore - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditConfig: Specifies the audit configuration for a service. @@ -462,12 +450,11 @@ func (s *AnnotationStore) MarshalJSON() ([]byte, error) { // identities, if any, are exempted from logging. // An AuditConfig must have one or more AuditLogConfigs. // -// If there are AuditConfigs for both `allServices` and a specific -// service, +// If there are AuditConfigs for both `allServices` and a specific service, // the union of the two AuditConfigs is used for that service: the // log_types -// specified in each AuditConfig are enabled, and the exempted_members -// in each +// specified in each AuditConfig are enabled, and the exempted_members in +// each // AuditLogConfig are exempted. // // Example Policy with multiple AuditConfigs: @@ -514,39 +501,29 @@ func (s *AnnotationStore) MarshalJSON() ([]byte, error) { // and // aliya@example.com from DATA_WRITE logging. type AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit - // logging. + // Service: Specifies a service that will be enabled for audit logging. // For example, `storage.googleapis.com`, // `cloudsql.googleapis.com`. // `allServices` is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditConfig) MarshalJSON() ([]byte, error) { +func (s AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditLogConfig: Provides the configuration for logging a type of @@ -571,12 +548,11 @@ func (s *AuditConfig) MarshalJSON() ([]byte, error) { // exempting // jose@example.com from DATA_READ logging. type AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of // permission. // Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. // // Possible values: @@ -585,29 +561,22 @@ type AuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members` with a `role`. @@ -619,309 +588,244 @@ type Binding struct { // examined // independently. Condition *Expr `json:"condition,omitempty"` - - // Members: Specifies the identities requesting access for a Cloud - // Platform resource. + // Members: Specifies the identities requesting access for a Cloud Platform + // resource. // `members` can have the following values: // // * `allUsers`: A special identifier that represents anyone who is // on the internet; with or without a Google account. // - // * `allAuthenticatedUsers`: A special identifier that represents - // anyone - // who is authenticated with a Google account or a service - // account. + // * `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. // - // * `user:{emailid}`: An email address that represents a specific - // Google + // * `user:{emailid}`: An email address that represents a specific Google // account. For example, `alice@example.com` . // // - // * `serviceAccount:{emailid}`: An email address that represents a - // service - // account. For example, - // `my-other-app@appspot.gserviceaccount.com`. + // * `serviceAccount:{emailid}`: An email address that represents a service + // account. For example, `my-other-app@appspot.gserviceaccount.com`. // - // * `group:{emailid}`: An email address that represents a Google - // group. + // * `group:{emailid}`: An email address that represents a Google group. // For example, `admins@example.com`. // // - // * `domain:{domain}`: The G Suite domain (primary) that represents all - // the - // users of that domain. For example, `google.com` or - // `example.com`. + // * `domain:{domain}`: The G Suite domain (primary) that represents all the + // users of that domain. For example, `google.com` or `example.com`. // // Members []string `json:"members,omitempty"` - // Role: Role that is assigned to `members`. // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BoundingPoly: A bounding polygon for the detected image annotation. type BoundingPoly struct { - Label string `json:"label,omitempty"` - + Label string `json:"label,omitempty"` Vertices []*Vertex `json:"vertices,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Label") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Label") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Label") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BoundingPoly) MarshalJSON() ([]byte, error) { +func (s BoundingPoly) MarshalJSON() ([]byte, error) { type NoMethod BoundingPoly - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CharacterMaskConfig: Masks a string by replacing its characters with -// a fixed character. +// CharacterMaskConfig: Masks a string by replacing its characters with a fixed +// character. type CharacterMaskConfig struct { - // MaskingCharacter: Character to mask the sensitive values. If not - // supplied, defaults to "*". + // MaskingCharacter: Character to mask the sensitive values. If not supplied, + // defaults to "*". MaskingCharacter string `json:"maskingCharacter,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaskingCharacter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaskingCharacter") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MaskingCharacter") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CharacterMaskConfig) MarshalJSON() ([]byte, error) { +func (s CharacterMaskConfig) MarshalJSON() ([]byte, error) { type NoMethod CharacterMaskConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CloudHealthcareSource: Cloud Healthcare API resource. type CloudHealthcareSource struct { // Name: Full path of a Cloud Healthcare API resource. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CloudHealthcareSource) MarshalJSON() ([]byte, error) { +func (s CloudHealthcareSource) MarshalJSON() ([]byte, error) { type NoMethod CloudHealthcareSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateMessageRequest: Creates a new message. type CreateMessageRequest struct { // Message: HL7v2 message. Message *Message `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Message") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Message") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Message") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Message") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateMessageRequest) MarshalJSON() ([]byte, error) { +func (s CreateMessageRequest) MarshalJSON() ([]byte, error) { type NoMethod CreateMessageRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CryptoHashConfig: Pseudonymization method that generates surrogates -// using cryptographic +// CryptoHashConfig: Pseudonymization method that generates surrogates using +// cryptographic // hashing. Uses SHA-256. // Outputs a base64-encoded representation of the hashed output. // For example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`. type CryptoHashConfig struct { - // CryptoKey: An AES 128/192/256 bit key. Causes the hash to be computed - // based on this - // key. A default key is generated for each Deidentify operation and - // is + // CryptoKey: An AES 128/192/256 bit key. Causes the hash to be computed based + // on this + // key. A default key is generated for each Deidentify operation and is // used when crypto_key is not specified. CryptoKey string `json:"cryptoKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "CryptoKey") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CryptoKey") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CryptoKey") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CryptoHashConfig) MarshalJSON() ([]byte, error) { +func (s CryptoHashConfig) MarshalJSON() ([]byte, error) { type NoMethod CryptoHashConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Dataset: A message representing a health dataset. // -// A health dataset represents a collection of healthcare data -// pertaining to one +// A health dataset represents a collection of healthcare data pertaining to +// one // or more patients. This may include multiple modalities of healthcare // data, // such as electronic medical records or medical imaging data. type Dataset struct { // Name: Output only. Resource name of the dataset, of the // form - // `projects/{project_id}/locations/{location_id}/datasets/{dataset_ - // id}`. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. Name string `json:"name,omitempty"` - - // TimeZone: The default timezone used by this dataset. Must be a either - // a valid IANA + // TimeZone: The default timezone used by this dataset. Must be a either a + // valid IANA // time zone name such as "America/New_York" or empty, which defaults to // UTC. - // This is used for parsing times in resources (e.g., HL7 messages) - // where no + // This is used for parsing times in resources (e.g., HL7 messages) where + // no // explicit timezone is specified. TimeZone string `json:"timeZone,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Dataset) MarshalJSON() ([]byte, error) { +func (s Dataset) MarshalJSON() ([]byte, error) { type NoMethod Dataset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DateShiftConfig: Shifts a date forward or backward in time by a -// random amount that is +// DateShiftConfig: Shifts a date forward or backward in time by a random +// amount that is // consistent for a given patient and crypto key combination. type DateShiftConfig struct { - // CryptoKey: An AES 128/192/256 bit key. Causes the shift to be - // computed based on this + // CryptoKey: An AES 128/192/256 bit key. Causes the shift to be computed based + // on this // key and the patient ID. A default key is generated for // each - // de-identification operation and is used when crypto_key is - // not + // de-identification operation and is used when crypto_key is not // specified. CryptoKey string `json:"cryptoKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "CryptoKey") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CryptoKey") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CryptoKey") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DateShiftConfig) MarshalJSON() ([]byte, error) { +func (s DateShiftConfig) MarshalJSON() ([]byte, error) { type NoMethod DateShiftConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeidentifyConfig: Configures de-id options specific to different -// types of content. +// DeidentifyConfig: Configures de-id options specific to different types of +// content. // Each submessage customizes the handling of // an // https://tools.ietf.org/html/rfc6838 media type or subtype. Configs @@ -930,243 +834,186 @@ func (s *DateShiftConfig) MarshalJSON() ([]byte, error) { type DeidentifyConfig struct { // Dicom: Configures de-id of application/DICOM content. Dicom *DicomConfig `json:"dicom,omitempty"` - // Fhir: Configures de-id of application/FHIR content. Fhir *FhirConfig `json:"fhir,omitempty"` - // Image: Configures the de-identification of image pixels in the // source_dataset. Image *ImageConfig `json:"image,omitempty"` - // Text: Configures the de-identification of text in `source_dataset`. Text *TextConfig `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Dicom") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Dicom") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Dicom") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeidentifyConfig) MarshalJSON() ([]byte, error) { +func (s DeidentifyConfig) MarshalJSON() ([]byte, error) { type NoMethod DeidentifyConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeidentifyDatasetRequest: Redacts identifying information from the -// specified dataset. +// DeidentifyDatasetRequest: Redacts identifying information from the specified +// dataset. type DeidentifyDatasetRequest struct { // Config: Deidentify configuration. Config *DeidentifyConfig `json:"config,omitempty"` - - // DestinationDataset: The name of the dataset resource to create and - // write the redacted data + // DestinationDataset: The name of the dataset resource to create and write the + // redacted data // to // (e.g., - // `projects/{project_id}/locations/{location_id}/datasets/{dat - // aset_id}`). + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`). // // * The destination dataset must not exist. // * The destination dataset must be in the same project as the source - // dataset. De-identifying data across multiple projects is not - // supported. + // dataset. De-identifying data across multiple projects is not supported. DestinationDataset string `json:"destinationDataset,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeidentifyDatasetRequest) MarshalJSON() ([]byte, error) { +func (s DeidentifyDatasetRequest) MarshalJSON() ([]byte, error) { type NoMethod DeidentifyDatasetRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeidentifyErrorDetails: Contains the status of the Deidentify -// operation. +// DeidentifyErrorDetails: Contains the status of the Deidentify operation. type DeidentifyErrorDetails struct { // FailureResourceCount: Number of resources failed to process. FailureResourceCount int64 `json:"failureResourceCount,omitempty,string"` - // FailureStoreCount: Number of stores failed to process. FailureStoreCount int64 `json:"failureStoreCount,omitempty,string"` - // SuccessResourceCount: Number of resources successfully processed. SuccessResourceCount int64 `json:"successResourceCount,omitempty,string"` - // SuccessStoreCount: Number of stores successfully processed. SuccessStoreCount int64 `json:"successStoreCount,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "FailureResourceCount") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FailureResourceCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FailureResourceCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FailureResourceCount") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeidentifyErrorDetails) MarshalJSON() ([]byte, error) { +func (s DeidentifyErrorDetails) MarshalJSON() ([]byte, error) { type NoMethod DeidentifyErrorDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeidentifySummary: Contains a detailed summary of the Deidentify -// operation. +// DeidentifySummary: Contains a detailed summary of the Deidentify operation. type DeidentifySummary struct { // SuccessResourceCount: Number of resources successfully processed. SuccessResourceCount int64 `json:"successResourceCount,omitempty,string"` - // SuccessStoreCount: Number of stores successfully processed. SuccessStoreCount int64 `json:"successStoreCount,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "SuccessResourceCount") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "SuccessResourceCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SuccessResourceCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "SuccessResourceCount") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeidentifySummary) MarshalJSON() ([]byte, error) { +func (s DeidentifySummary) MarshalJSON() ([]byte, error) { type NoMethod DeidentifySummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Detail: Contains multiple sensitive information findings for each -// resource slice. +// Detail: Contains multiple sensitive information findings for each resource +// slice. type Detail struct { Findings []*Finding `json:"findings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Findings") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Findings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Findings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Detail) MarshalJSON() ([]byte, error) { +func (s Detail) MarshalJSON() ([]byte, error) { type NoMethod Detail - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DicomConfig: Specifies the parameters needed for the -// de-identification of DICOM stores. +// DicomConfig: Specifies the parameters needed for the de-identification of +// DICOM stores. type DicomConfig struct { - // FilterProfile: Tag filtering profile that determines the tags to keep - // or remove. + // FilterProfile: Tag filtering profile that determines the tags to keep or + // remove. // // Possible values: - // "TAG_FILTER_PROFILE_UNSPECIFIED" - No tag filtration profile - // provided. Same as KEEP_ALL_PROFILE. - // "MINIMAL_KEEP_LIST_PROFILE" - Keep only tags required to produce - // valid DICOM. - // "ATTRIBUTE_CONFIDENTIALITY_BASIC_PROFILE" - Remove tags based on - // DICOM Standard's Attribute Confidentiality Basic + // "TAG_FILTER_PROFILE_UNSPECIFIED" - No tag filtration profile provided. + // Same as KEEP_ALL_PROFILE. + // "MINIMAL_KEEP_LIST_PROFILE" - Keep only tags required to produce valid + // DICOM. + // "ATTRIBUTE_CONFIDENTIALITY_BASIC_PROFILE" - Remove tags based on DICOM + // Standard's Attribute Confidentiality Basic // Profile (DICOM Standard Edition // 2018e) - // http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/c - // hapter_E.html. + // http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/chapter_E.html. // "KEEP_ALL_PROFILE" - Keep all tags. - // "DEIDENTIFY_TAG_CONTENTS" - Inspects within tag contents and - // replaces sensitive text. The process + // "DEIDENTIFY_TAG_CONTENTS" - Inspects within tag contents and replaces + // sensitive text. The process // can be configured using the TextConfig. - // Applies to all tags with the following Value Representation - // names: + // Applies to all tags with the following Value Representation names: // AE, LO, LT, PN, SH, ST, UC, UT, DA, DT, AS. FilterProfile string `json:"filterProfile,omitempty"` - // KeepList: List of tags to keep. Remove all other tags. KeepList *TagFilterList `json:"keepList,omitempty"` - // RemoveList: List of tags to remove. Keep all other tags. RemoveList *TagFilterList `json:"removeList,omitempty"` - // ForceSendFields is a list of field names (e.g. "FilterProfile") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FilterProfile") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FilterProfile") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DicomConfig) MarshalJSON() ([]byte, error) { +func (s DicomConfig) MarshalJSON() ([]byte, error) { type NoMethod DicomConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DicomStore: Represents a DICOM store. type DicomStore struct { - // Labels: User-supplied key-value pairs used to organize DICOM - // stores. + // Labels: User-supplied key-value pairs used to organize DICOM stores. // // Label keys must be between 1 and 63 characters long, have a UTF-8 // encoding @@ -1174,51 +1021,40 @@ type DicomStore struct { // following PCRE regular expression: // \p{Ll}\p{Lo}{0,62} // - // Label values are optional, must be between 1 and 63 characters long, - // have - // a UTF-8 encoding of maximum 128 bytes, and must conform to - // the + // Label values are optional, must be between 1 and 63 characters long, have + // a UTF-8 encoding of maximum 128 bytes, and must conform to the // following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} // // No more than 64 labels can be associated with a given store. Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. Resource name of the DICOM store, of the // form - // `projects/{project_id}/locations/{location_id}/datasets/{dataset_ - // id}/dicomStores/{dicom_store_id}`. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomSto + // res/{dicom_store_id}`. Name string `json:"name,omitempty"` - // NotificationConfig: Notification destination for new DICOM // instances. // Supplied by the client. NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Labels") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Labels") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Labels") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DicomStore) MarshalJSON() ([]byte, error) { +func (s DicomStore) MarshalJSON() ([]byte, error) { type NoMethod DicomStore - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining @@ -1228,56 +1064,43 @@ func (s *DicomStore) MarshalJSON() ([]byte, error) { // or the response type of an API method. For instance: // // service Foo { -// rpc Bar(google.protobuf.Empty) returns -// -// (google.protobuf.Empty); -// +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); // } // // The JSON representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // ErrorDetail: Structure to describe the error encountered during batch // operation on one -// resource. This is used both for sample errors in operation response, -// and +// resource. This is used both for sample errors in operation response, and // for format of errors in error reports. type ErrorDetail struct { // Error: The status of the error. Error *Status `json:"error,omitempty"` - // Resource: The identifier of the resource. Resource string `json:"resource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Error") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Error") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Error") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ErrorDetail) MarshalJSON() ([]byte, error) { +func (s ErrorDetail) MarshalJSON() ([]byte, error) { type NoMethod ErrorDetail - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExportDicomDataRequest: Exports data from the specified DICOM -// store. +// ExportDicomDataRequest: Exports data from the specified DICOM store. // If a given resource (e.g., a DICOM object with the same SOPInstance // UID) // already exists in the output, it is overwritten with the version @@ -1288,57 +1111,45 @@ func (s *ErrorDetail) MarshalJSON() ([]byte, error) { type ExportDicomDataRequest struct { // BigqueryDestination: The BigQuery output destination. // - // You can only export to a BigQuery dataset that's in the same project - // as + // You can only export to a BigQuery dataset that's in the same project as // the DICOM store you're exporting from. // - // The BigQuery location requires two IAM - // roles: + // The BigQuery location requires two IAM roles: // `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`. BigqueryDestination *GoogleCloudHealthcareV1alpha2DicomBigQueryDestination `json:"bigqueryDestination,omitempty"` - // GcsDestination: The Cloud Storage output destination. // // The Cloud Storage location requires the `roles/storage.objectAdmin` // Cloud // IAM role. GcsDestination *GoogleCloudHealthcareV1alpha2DicomGcsDestination `json:"gcsDestination,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BigqueryDestination") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BigqueryDestination") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BigqueryDestination") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BigqueryDestination") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExportDicomDataRequest) MarshalJSON() ([]byte, error) { +func (s ExportDicomDataRequest) MarshalJSON() ([]byte, error) { type NoMethod ExportDicomDataRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ExportResourcesRequest: Request to export resources. type ExportResourcesRequest struct { // BigqueryDestination: The BigQuery output destination. // - // The BigQuery location requires two IAM - // roles: + // The BigQuery location requires two IAM roles: // `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`. // // The output will be one BigQuery table per resource type. BigqueryDestination *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination `json:"bigqueryDestination,omitempty"` - // GcsDestination: The Cloud Storage output destination. // // The Cloud Storage location requires the `roles/storage.objectAdmin` @@ -1348,33 +1159,25 @@ type ExportResourcesRequest struct { // The exported outputs are // organized by FHIR resource types. The server will create one object // per - // resource type. Each object contains newline delimited JSON, and each - // line + // resource type. Each object contains newline delimited JSON, and each line // is a FHIR resource. GcsDestination *GoogleCloudHealthcareV1alpha2FhirRestGcsDestination `json:"gcsDestination,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BigqueryDestination") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BigqueryDestination") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BigqueryDestination") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BigqueryDestination") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExportResourcesRequest) MarshalJSON() ([]byte, error) { +func (s ExportResourcesRequest) MarshalJSON() ([]byte, error) { type NoMethod ExportResourcesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Expr: Represents an expression text. Example: @@ -1383,11 +1186,10 @@ func (s *ExportResourcesRequest) MarshalJSON() ([]byte, error) { // description: "Determines whether the request has a user account" // expression: "size(request.user) > 0" type Expr struct { - // Description: An optional description of the expression. This is a - // longer text which + // Description: An optional description of the expression. This is a longer + // text which // describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - // Expression: Textual representation of an expression in // Common Expression Language syntax. // @@ -1395,85 +1197,68 @@ type Expr struct { // which // well-known feature set of CEL is supported. Expression string `json:"expression,omitempty"` - - // Location: An optional string indicating the location of the - // expression for error + // Location: An optional string indicating the location of the expression for + // error // reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - // Title: An optional title for the expression, i.e. a short string // describing // its purpose. This can be used e.g. in UIs which allow to enter // the // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FhirConfig: Specifies how to handle the de-identification of a FHIR -// store. +// FhirConfig: Specifies how to handle the de-identification of a FHIR store. type FhirConfig struct { - // FieldMetadataList: Specifies FHIR paths to match and how to transform - // them. Any field that - // is not matched by a FieldMetadata is passed through to the - // output + // FieldMetadataList: Specifies FHIR paths to match and how to transform them. + // Any field that + // is not matched by a FieldMetadata is passed through to the output // dataset unmodified. All extensions are removed in the output. FieldMetadataList []*FieldMetadata `json:"fieldMetadataList,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FieldMetadataList") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FieldMetadataList") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FieldMetadataList") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FieldMetadataList") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FhirConfig) MarshalJSON() ([]byte, error) { +func (s FhirConfig) MarshalJSON() ([]byte, error) { type NoMethod FhirConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FhirStore: Represents a FHIR store. type FhirStore struct { - // DisableReferentialIntegrity: Whether to disable referential integrity - // in this FHIR store. This field is + // DisableReferentialIntegrity: Whether to disable referential integrity in + // this FHIR store. This field is // immutable after FHIR store creation. // The default value is false, meaning that the API will enforce // referential - // integrity and fail the requests that will result in inconsistent - // state in + // integrity and fail the requests that will result in inconsistent state + // in // the FHIR store. // When this field is set to true, the API will skip referential // integrity @@ -1483,54 +1268,45 @@ type FhirStore struct { // references // exist. DisableReferentialIntegrity bool `json:"disableReferentialIntegrity,omitempty"` - - // DisableResourceVersioning: Whether to disable resource versioning for - // this FHIR store. This field can + // DisableResourceVersioning: Whether to disable resource versioning for this + // FHIR store. This field can // not be changed after the creation of FHIR store. // If set to false, which is the default behavior, all write operations // will // cause historical versions to be recorded automatically. The // historical - // versions can be fetched through the history APIs, but cannot be - // updated. + // versions can be fetched through the history APIs, but cannot be updated. // If set to true, no historical versions will be kept. The server will // send // back errors for attempts to read the historical versions. DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"` - - // EnableHistoryImport: Whether to allow the bulk import API to accept - // history bundles and directly + // EnableHistoryImport: Whether to allow the bulk import API to accept history + // bundles and directly // insert historical resource versions into the FHIR store. Importing // resource - // histories creates resource interactions that appear to have occurred - // in the + // histories creates resource interactions that appear to have occurred in + // the // past, which clients may not want to allow. If set to false, history // bundles // within an import will fail with an error. EnableHistoryImport bool `json:"enableHistoryImport,omitempty"` - - // EnableUpdateCreate: Whether this FHIR store has the - // [updateCreate - // capability](https://www.hl7.org/fhir/capabilitystatement - // -definitions.html#CapabilityStatement.rest.resource.updateCreate). - // Thi - // s determines if the client can use an Update operation to create a + // EnableUpdateCreate: Whether this FHIR store has the updateCreate + // capability + // (https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate). + // This determines if the client can use an Update operation to create a // new // resource with a client-specified ID. If false, all IDs are // server-assigned // through the Create operation and attempts to Update a non-existent // resource - // will return errors. Please treat the audit logs with appropriate - // levels of - // care if client-specified resource IDs contain sensitive data such - // as + // will return errors. Please treat the audit logs with appropriate levels + // of + // care if client-specified resource IDs contain sensitive data such as // patient identifiers, those IDs will be part of the FHIR resource // path // recorded in Cloud audit logs and Cloud Pub/Sub notifications. EnableUpdateCreate bool `json:"enableUpdateCreate,omitempty"` - - // Labels: User-supplied key-value pairs used to organize FHIR - // stores. + // Labels: User-supplied key-value pairs used to organize FHIR stores. // // Label keys must be between 1 and 63 characters long, have a UTF-8 // encoding @@ -1538,90 +1314,71 @@ type FhirStore struct { // following PCRE regular expression: // \p{Ll}\p{Lo}{0,62} // - // Label values are optional, must be between 1 and 63 characters long, - // have - // a UTF-8 encoding of maximum 128 bytes, and must conform to - // the + // Label values are optional, must be between 1 and 63 characters long, have + // a UTF-8 encoding of maximum 128 bytes, and must conform to the // following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} // // No more than 64 labels can be associated with a given store. Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. Resource name of the FHIR store, of the // form - // `projects/{project_id}/datasets/{dataset_id}/fhirStores/{fhir_sto - // re_id}`. + // `projects/{project_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`. Name string `json:"name,omitempty"` - - // NotificationConfig: If non-empty, publish all resource modifications - // of this FHIR store to + // NotificationConfig: If non-empty, publish all resource modifications of this + // FHIR store to // this destination. The Cloud Pub/Sub message attributes will contain a // map // with a string describing the action that has triggered the // notification, // e.g. "action":"CreateResource". NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` - - // StreamConfigs: A list of streaming configs that configure the - // destinations of streaming - // export for every resource mutation in this FHIR store. Each store - // is + // StreamConfigs: A list of streaming configs that configure the destinations + // of streaming + // export for every resource mutation in this FHIR store. Each store is // allowed to have up to 10 streaming configs. - // After a new config is added, the next resource mutation will be - // streamed to + // After a new config is added, the next resource mutation will be streamed + // to // the new location in addition to the existing ones. // When a location is removed from the list, the server will simply // stop // streaming to that location. Before adding a new config, you must add // the // required - // [`bigquery.dataEditor`](https://cloud.google.com/bigquery - // /docs/access-control#bigquery.dataEditor) + // `bigquery.dataEditor` + // (https://cloud.google.com/bigquery/docs/access-control#bigquery.dataEditor) // role to your project's **Cloud Healthcare Service Agent** - // [service - // account](https://cloud.google.com/iam/docs/service-accounts). + // service account (https://cloud.google.com/iam/docs/service-accounts). // Some lag (typically on the order of dozens of seconds) is expected // before // the results show up in the streaming destination. StreamConfigs []*StreamConfig `json:"streamConfigs,omitempty"` - // SubscriptionConfig: Configuration of FHIR // Subscription: // https://www.hl7.org/fhir/subscription.html. SubscriptionConfig *SubscriptionConfig `json:"subscriptionConfig,omitempty"` - - // ValidationConfig: Configuration for how incoming FHIR resources will - // be validated against + // ValidationConfig: Configuration for how incoming FHIR resources will be + // validated against // configured profiles. ValidationConfig *ValidationConfig `json:"validationConfig,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "DisableReferentialIntegrity") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "DisableReferentialIntegrity") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DisableReferentialIntegrity") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisableReferentialIntegrity") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FhirStore) MarshalJSON() ([]byte, error) { +func (s FhirStore) MarshalJSON() ([]byte, error) { type NoMethod FhirStore - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FieldMetadata: Specifies FHIR paths to match and how to handle the @@ -1635,84 +1392,64 @@ type FieldMetadata struct { // "TRANSFORM" - Transform the entire field. // "INSPECT_AND_TRANSFORM" - Inspect and transform any found PHI. When // `AnnotationConfig` is - // provided, annotations of PHI are generated, except for Date and - // Datetime. + // provided, annotations of PHI are generated, except for Date and Datetime. // "DO_NOT_TRANSFORM" - Do not transform. Action string `json:"action,omitempty"` - // Paths: List of paths to FHIR fields to redact. Each path is // a - // period-separated list where each component is either a field name - // or + // period-separated list where each component is either a field name or // FHIR type name. For example: Patient, HumanName. - // For "choice" types (those defined in the FHIR spec with the - // form: - // field[x]), use two separate components. For - // example, + // For "choice" types (those defined in the FHIR spec with the form: + // field[x]), use two separate components. For example, // "deceasedAge.unit" is matched by "Deceased.Age.unit". // Supported types are: AdministrativeGenderCode, Code, Date, // DateTime, - // Decimal, HumanName, Id, LanguageCode, Markdown, MimeTypeCode, - // Oid, + // Decimal, HumanName, Id, LanguageCode, Markdown, MimeTypeCode, Oid, // String, Uri, Uuid, Xhtml. Paths []string `json:"paths,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FieldMetadata) MarshalJSON() ([]byte, error) { +func (s FieldMetadata) MarshalJSON() ([]byte, error) { type NoMethod FieldMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Finding struct { // End: Zero-based ending index of the found text, exclusively. End int64 `json:"end,omitempty,string"` - // InfoType: The type of information stored in this text range (e.g. // HumanName, // BirthDate, Address, etc.) InfoType string `json:"infoType,omitempty"` - // Start: Zero-based starting index of the found text, inclusively. Start int64 `json:"start,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "End") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "End") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "End") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "End") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Finding) MarshalJSON() ([]byte, error) { +func (s Finding) MarshalJSON() ([]byte, error) { type NoMethod Finding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetIamPolicyRequest: Request message for `GetIamPolicy` method. @@ -1721,28 +1458,22 @@ type GetIamPolicyRequest struct { // to // `GetIamPolicy`. This field is only used by Cloud IAM. Options *GetPolicyOptions `json:"options,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Options") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Options") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Options") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Options") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s GetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod GetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetPolicyOptions: Encapsulates settings provided to GetIamPolicy. @@ -1750,88 +1481,70 @@ type GetPolicyOptions struct { // RequestedPolicyVersion: Optional. The policy format version to be // returned. // Acceptable values are 0, 1, and 3. - // If the value is 0, or the field is omitted, policy format version 1 - // will be + // If the value is 0, or the field is omitted, policy format version 1 will + // be // returned. RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "RequestedPolicyVersion") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestedPolicyVersion") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "RequestedPolicyVersion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { +func (s GetPolicyOptions) MarshalJSON() ([]byte, error) { type NoMethod GetPolicyOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2DicomBigQueryDestination: The BigQuery -// table where the output should be written. +// GoogleCloudHealthcareV1alpha2DicomBigQueryDestination: The BigQuery table +// where the output should be written. type GoogleCloudHealthcareV1alpha2DicomBigQueryDestination struct { - // Force: If the destination table already exists and this flag is - // `TRUE`, the table - // will be overwritten by the contents of the DICOM store. If the flag - // is not + // Force: If the destination table already exists and this flag is `TRUE`, the + // table + // will be overwritten by the contents of the DICOM store. If the flag is + // not // set and the destination table already exists, the export call returns // an // error. Force bool `json:"force,omitempty"` - // TableUri: BigQuery URI to a table, up to 2000 characters long, in the // format // `bq://projectId.bqDatasetId.tableId` TableUri string `json:"tableUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Force") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Force") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Force") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2DicomBigQueryDestination) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2DicomBigQueryDestination) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2DicomBigQueryDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2DicomGcsDestination: The Cloud Storage -// location where the output should be written, and the -// export +// GoogleCloudHealthcareV1alpha2DicomGcsDestination: The Cloud Storage location +// where the output should be written, and the export // configuration. type GoogleCloudHealthcareV1alpha2DicomGcsDestination struct { // MimeType: MIME types supported by DICOM spec. // Each file will be written in the following // format: - // `.../{study_id}/{series_id}/{instance_id}[/{frame_number}].{ex - // tension}` - // The frame_number component will exist only for multi-frame - // instances. + // `.../{study_id}/{series_id}/{instance_id}[/{frame_number}].{extension}` + // The frame_number component will exist only for multi-frame instances. // // Refer to the DICOM conformance statement for permissible MIME // types: @@ -1842,67 +1555,54 @@ type GoogleCloudHealthcareV1alpha2DicomGcsDestination struct { // image/jpeg -> .jpg // image/png -> .png // - // If unspecified, the instances will be exported in their - // original + // If unspecified, the instances will be exported in their original // DICOM format. MimeType string `json:"mimeType,omitempty"` - // UriPrefix: The Cloud Storage destination to export to. // - // URI for a Cloud Storage directory where result files should be - // written (in + // URI for a Cloud Storage directory where result files should be written + // (in // the format `gs://{bucket-id}/{path/to/destination/dir}`). If there is // no // trailing slash, the service will append one when composing the object // path. - // The user is responsible for creating the Cloud Storage bucket - // referenced in + // The user is responsible for creating the Cloud Storage bucket referenced + // in // `uri_prefix`. UriPrefix string `json:"uriPrefix,omitempty"` - // ForceSendFields is a list of field names (e.g. "MimeType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MimeType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MimeType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2DicomGcsDestination) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2DicomGcsDestination) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2DicomGcsDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2DicomGcsSource: Specifies the -// configuration for importing data from Cloud Storage. +// GoogleCloudHealthcareV1alpha2DicomGcsSource: Specifies the configuration for +// importing data from Cloud Storage. type GoogleCloudHealthcareV1alpha2DicomGcsSource struct { // Uri: Points to a Cloud Storage URI containing file(s) with // content only. The URI must be in the following // format: - // `gs://{bucket_id}/{object_id}`. The URI can include wildcards - // in + // `gs://{bucket_id}/{object_id}`. The URI can include wildcards in // `object_id` and thus identify multiple files. Supported wildcards: // '*' to match 0 or more non-separator characters - // '**' to match 0 or more characters (including separators). Must be - // used at + // '**' to match 0 or more characters (including separators). Must be used at // the end of a path and with no other wildcards in the - // path. Can also be used with a file extension (such as .dcm), - // which - // imports all files with the extension in the specified directory - // and + // path. Can also be used with a file extension (such as .dcm), which + // imports all files with the extension in the specified directory and // its sub-directories. For example, - // `gs://my-bucket/my-directory/**.dcm` imports all files with - // .dcm + // `gs://my-bucket/my-directory/**.dcm` imports all files with .dcm // extensions in `my-directory/` and its sub-directories. // '?' to match 1 character // All other URI formats are invalid. @@ -1910,66 +1610,53 @@ type GoogleCloudHealthcareV1alpha2DicomGcsSource struct { // no // metadata. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2DicomGcsSource) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2DicomGcsSource) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2DicomGcsSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2FhirBigQueryDestination: The -// configuration for exporting to BigQuery. +// GoogleCloudHealthcareV1alpha2FhirBigQueryDestination: The configuration for +// exporting to BigQuery. type GoogleCloudHealthcareV1alpha2FhirBigQueryDestination struct { - // DatasetUri: BigQuery URI to a dataset, up to 2000 characters long, in - // the format + // DatasetUri: BigQuery URI to a dataset, up to 2000 characters long, in the + // format // `bq://projectId.bqDatasetId` DatasetUri string `json:"datasetUri,omitempty"` - // SchemaConfig: The configuration for the exported BigQuery schema. SchemaConfig *SchemaConfig `json:"schemaConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "DatasetUri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DatasetUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DatasetUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2FhirBigQueryDestination) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2FhirBigQueryDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails: -// Response when errors occur while exporting resources. +// GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails: Response +// when errors occur while exporting resources. // This structure is included in the // error details to describe the // detailed outcome. It is only included when the operation finishes @@ -1978,169 +1665,137 @@ func (s *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination) MarshalJSON() ([] type GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails struct { // ErrorCount: The number of resources that had errors. ErrorCount int64 `json:"errorCount,omitempty,string"` - - // FhirStore: The name of the FHIR store where resources have been - // exported, in + // FhirStore: The name of the FHIR store where resources have been exported, in // the // format - // `projects/{project_id}/locations/{location_id}/datasets/{da - // taset_id}/fhirStores/{fhir_store_id}`. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStor + // es/{fhir_store_id}`. FhirStore string `json:"fhirStore,omitempty"` - // ResourceCount: The total number of resources included in the export // operation. This is // the sum of the success and error counts. ResourceCount int64 `json:"resourceCount,omitempty,string"` - // SuccessCount: The number of resources that were exported. SuccessCount int64 `json:"successCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ErrorCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ErrorCount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ErrorCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse: -// Response when all resources export successfully. +// GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse: Response when +// all resources export successfully. // This structure will be included in the // response to describe the detailed -// outcome. It will only be included when the operation finishes -// successfully. +// outcome. It will only be included when the operation finishes successfully. type GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse struct { - // FhirStore: The name of the FHIR store where resources have been - // exported, in + // FhirStore: The name of the FHIR store where resources have been exported, in // the // format - // `projects/{project_id}/locations/{location_id}/datasets/{da - // taset_id}/fhirStores/{fhir_store_id}`. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStor + // es/{fhir_store_id}`. FhirStore string `json:"fhirStore,omitempty"` - - // ResourceCount: The total number of resources exported from the - // requested FHIR store. + // ResourceCount: The total number of resources exported from the requested + // FHIR store. ResourceCount int64 `json:"resourceCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "FhirStore") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FhirStore") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FhirStore") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2FhirRestGcsDestination: The -// configuration for exporting to Cloud Storage. +// GoogleCloudHealthcareV1alpha2FhirRestGcsDestination: The configuration for +// exporting to Cloud Storage. type GoogleCloudHealthcareV1alpha2FhirRestGcsDestination struct { - // UriPrefix: URI for a Cloud Storage directory where result files - // should be written (in + // UriPrefix: URI for a Cloud Storage directory where result files should be + // written (in // the format `gs://{bucket-id}/{path/to/destination/dir}`). If there is // no // trailing slash, the service will append one when composing the object // path. - // The user is responsible for creating the Cloud Storage bucket - // referenced in + // The user is responsible for creating the Cloud Storage bucket referenced + // in // `uri_prefix`. UriPrefix string `json:"uriPrefix,omitempty"` - // ForceSendFields is a list of field names (e.g. "UriPrefix") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "UriPrefix") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "UriPrefix") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsDestination) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2FhirRestGcsDestination) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination: Specifies -// the Cloud Storage destination where errors will be recorded. +// GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination: Specifies the +// Cloud Storage destination where errors will be recorded. type GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination struct { - // UriPrefix: URI for a Cloud Storage directory to which error report - // files should be + // UriPrefix: URI for a Cloud Storage directory to which error report files + // should be // written (in the format `gs://{bucket-id}/{path/to/destination/dir}`). // If - // there is no trailing slash, the service will append one when - // composing the + // there is no trailing slash, the service will append one when composing + // the // object path. The user is responsible for creating the Cloud Storage // bucket // referenced in `uri_prefix`. UriPrefix string `json:"uriPrefix,omitempty"` - // ForceSendFields is a list of field names (e.g. "UriPrefix") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "UriPrefix") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "UriPrefix") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2FhirRestGcsSource: Specifies the -// configuration for importing data from Cloud Storage. +// GoogleCloudHealthcareV1alpha2FhirRestGcsSource: Specifies the configuration +// for importing data from Cloud Storage. type GoogleCloudHealthcareV1alpha2FhirRestGcsSource struct { // Uri: Points to a Cloud Storage URI containing file(s) to import. // - // The URI must be in the following format: - // `gs://{bucket_id}/{object_id}`. + // The URI must be in the following format: `gs://{bucket_id}/{object_id}`. // The URI can include wildcards in `object_id` and thus identify // multiple // files. Supported wildcards: @@ -2151,8 +1806,7 @@ type GoogleCloudHealthcareV1alpha2FhirRestGcsSource struct { // at the end of a path and with no other wildcards in the // path. Can also be used with a file extension (such as .ndjson), // which - // imports all files with the extension in the specified directory - // and + // imports all files with the extension in the specified directory and // its sub-directories. For example, // `gs://my-bucket/my-directory/**.ndjson` // imports all files with `.ndjson` extensions in `my-directory/` and @@ -2164,32 +1818,26 @@ type GoogleCloudHealthcareV1alpha2FhirRestGcsSource struct { // no // metadata. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsSource) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2FhirRestGcsSource) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails: -// Error response of importing resources. +// GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails: Error +// response of importing resources. // This structure will be included in the // error details to describe the // detailed error. It will only be included when the operation finishes @@ -2198,91 +1846,72 @@ func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsSource) MarshalJSON() ([]byte, type GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails struct { // ErrorCount: The number of resources that had errors. ErrorCount int64 `json:"errorCount,omitempty,string"` - - // FhirStore: The name of the FHIR store where resources have been - // imported, in + // FhirStore: The name of the FHIR store where resources have been imported, in // the // format - // `projects/{project_id}/locations/{location_id}/datasets/{da - // taset_id}/fhirStores/{fhir_store_id}`. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStor + // es/{fhir_store_id}`. FhirStore string `json:"fhirStore,omitempty"` - - // InputSize: The total number of resources included in the source data. - // This is the sum + // InputSize: The total number of resources included in the source data. This + // is the sum // of the success and error counts. InputSize int64 `json:"inputSize,omitempty,string"` - // SuccessCount: The number of resources that have been imported. SuccessCount int64 `json:"successCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ErrorCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ErrorCount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ErrorCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse: Final -// response of importing resources. +// GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse: Final response +// of importing resources. // This structure will be included in the // response to describe the detailed -// outcome. It will only be included when the operation finishes -// successfully. +// outcome. It will only be included when the operation finishes successfully. type GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse struct { // FhirStore: The name of the FHIR store where the resources have been // imported, in // the // format - // `projects/{project_id}/locations/{location_id}/datasets/{da - // taset_id}/fhirStores/{fhir_store_id}`. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStor + // es/{fhir_store_id}`. FhirStore string `json:"fhirStore,omitempty"` - // InputSize: The total number of resources included in the source data. InputSize int64 `json:"inputSize,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "FhirStore") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FhirStore") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FhirStore") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Hl7V2Store: Represents an HL7v2 store. type Hl7V2Store struct { - // Labels: User-supplied key-value pairs used to organize HL7v2 - // stores. + // Labels: User-supplied key-value pairs used to organize HL7v2 stores. // // Label keys must be between 1 and 63 characters long, have a UTF-8 // encoding @@ -2290,68 +1919,54 @@ type Hl7V2Store struct { // following PCRE regular expression: // \p{Ll}\p{Lo}{0,62} // - // Label values are optional, must be between 1 and 63 characters long, - // have - // a UTF-8 encoding of maximum 128 bytes, and must conform to - // the + // Label values are optional, must be between 1 and 63 characters long, have + // a UTF-8 encoding of maximum 128 bytes, and must conform to the // following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} // // No more than 64 labels can be associated with a given store. Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. Resource name of the HL7v2 store, of the // form - // `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_s - // tore_id}`. + // `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`. Name string `json:"name,omitempty"` - - // NotificationConfig: The notification destination all messages (both - // Ingest & Create) are - // published on. Only the message name is sent as part of the - // notification. If + // NotificationConfig: The notification destination all messages (both Ingest & + // Create) are + // published on. Only the message name is sent as part of the notification. + // If // this is unset, no notifications will be sent. Supplied by the client. NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` - - // ParserConfig: The configuration for the parser. It determines how the - // server parses the + // ParserConfig: The configuration for the parser. It determines how the server + // parses the // messages. ParserConfig *ParserConfig `json:"parserConfig,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Labels") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Labels") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Labels") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Hl7V2Store) MarshalJSON() ([]byte, error) { +func (s Hl7V2Store) MarshalJSON() ([]byte, error) { type NoMethod Hl7V2Store - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HttpBody: Message that represents an arbitrary HTTP body. It should -// only be used for -// payload formats that can't be represented as JSON, such as raw binary -// or +// HttpBody: Message that represents an arbitrary HTTP body. It should only be +// used for +// payload formats that can't be represented as JSON, such as raw binary or // an HTML page. // -// This message can be used both in streaming and non-streaming API -// methods in +// This message can be used both in streaming and non-streaming API methods +// in // the request as well as the response. // // It can be used as a top-level request field, which is convenient if @@ -2371,10 +1986,7 @@ func (s *Hl7V2Store) MarshalJSON() ([]byte, error) { // } // // service ResourceService { -// rpc GetResource(GetResourceRequest) returns -// -// (google.api.HttpBody); -// +// rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); // rpc UpdateResource(google.api.HttpBody) returns // (google.protobuf.Empty); // } @@ -2392,770 +2004,601 @@ func (s *Hl7V2Store) MarshalJSON() ([]byte, error) { // are // handled, all other features will continue to work unchanged. type HttpBody struct { - // ContentType: The HTTP Content-Type header value specifying the - // content type of the body. + // ContentType: The HTTP Content-Type header value specifying the content type + // of the body. ContentType string `json:"contentType,omitempty"` - // Data: The HTTP request/response body as raw binary. Data string `json:"data,omitempty"` - - // Extensions: Application specific response metadata. Must be set in - // the first response + // Extensions: Application specific response metadata. Must be set in the first + // response // for streaming APIs. Extensions []googleapi.RawMessage `json:"extensions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ContentType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContentType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HttpBody) MarshalJSON() ([]byte, error) { +func (s HttpBody) MarshalJSON() ([]byte, error) { type NoMethod HttpBody - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ImageAnnotation: Image annotation. type ImageAnnotation struct { - // BoundingPolys: The list of polygons outlining the sensitive regions - // in the image. + // BoundingPolys: The list of polygons outlining the sensitive regions in the + // image. BoundingPolys []*BoundingPoly `json:"boundingPolys,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoundingPolys") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BoundingPolys") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BoundingPolys") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ImageAnnotation) MarshalJSON() ([]byte, error) { +func (s ImageAnnotation) MarshalJSON() ([]byte, error) { type NoMethod ImageAnnotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ImageConfig: Specifies how to handle the de-identification of image -// pixels. +// ImageConfig: Specifies how to handle the de-identification of image pixels. type ImageConfig struct { // TextRedactionMode: Determines how to redact text from images. // // Possible values: - // "TEXT_REDACTION_MODE_UNSPECIFIED" - No text redaction specified. - // Same as REDACT_NO_TEXT. + // "TEXT_REDACTION_MODE_UNSPECIFIED" - No text redaction specified. Same as + // REDACT_NO_TEXT. // "REDACT_ALL_TEXT" - Redact all text. // "REDACT_SENSITIVE_TEXT" - Redact sensitive text. // "REDACT_NO_TEXT" - Do not redact text. TextRedactionMode string `json:"textRedactionMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TextRedactionMode") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TextRedactionMode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TextRedactionMode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TextRedactionMode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ImageConfig) MarshalJSON() ([]byte, error) { +func (s ImageConfig) MarshalJSON() ([]byte, error) { type NoMethod ImageConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ImportDicomDataErrorDetails: Returns the errors encountered during -// DICOM store import. +// ImportDicomDataErrorDetails: Returns the errors encountered during DICOM +// store import. type ImportDicomDataErrorDetails struct { // SampleErrors: Deprecated. Use only for debugging purposes. // - // Contains sample errors encountered in imports of individual - // resources + // Contains sample errors encountered in imports of individual resources // (for example, a Cloud Storage object). SampleErrors []*ErrorDetail `json:"sampleErrors,omitempty"` - // ForceSendFields is a list of field names (e.g. "SampleErrors") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SampleErrors") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SampleErrors") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ImportDicomDataErrorDetails) MarshalJSON() ([]byte, error) { +func (s ImportDicomDataErrorDetails) MarshalJSON() ([]byte, error) { type NoMethod ImportDicomDataErrorDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ImportDicomDataRequest: Imports data into the specified DICOM -// store. -// Returns an error if any of the files to import are not DICOM files. -// This +// ImportDicomDataRequest: Imports data into the specified DICOM store. +// Returns an error if any of the files to import are not DICOM files. This // API will accept duplicate DICOM instances, by simply ignoring the // newly // pushed instance (it will not overwrite). type ImportDicomDataRequest struct { - // GcsSource: Cloud Storage source data location and import - // configuration. + // GcsSource: Cloud Storage source data location and import configuration. // - // The Cloud Storage location requires the - // `roles/storage.objectViewer` + // The Cloud Storage location requires the `roles/storage.objectViewer` // Cloud IAM role. GcsSource *GoogleCloudHealthcareV1alpha2DicomGcsSource `json:"gcsSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcsSource") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GcsSource") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GcsSource") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ImportDicomDataRequest) MarshalJSON() ([]byte, error) { +func (s ImportDicomDataRequest) MarshalJSON() ([]byte, error) { type NoMethod ImportDicomDataRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ImportResourcesRequest: Request to import resources. type ImportResourcesRequest struct { - // ContentStructure: The content structure in the source location. If - // not specified, the server + // ContentStructure: The content structure in the source location. If not + // specified, the server // treats the input source files as BUNDLE. // // Possible values: // "CONTENT_STRUCTURE_UNSPECIFIED" - If the content structure is not // specified, the default value `BUNDLE` // will be used. - // "BUNDLE" - The source file contains one or more lines of - // newline-delimited JSON - // (ndjson). Each line is a bundle, which contains one or more - // resources. + // "BUNDLE" - The source file contains one or more lines of newline-delimited + // JSON + // (ndjson). Each line is a bundle, which contains one or more resources. // Set the bundle type to `history` to import resource versions. // "RESOURCE" - The source file contains one or more lines of // newline-delimited JSON // (ndjson). Each line is a single resource. - // "BUNDLE_PRETTY" - The entire file is one JSON bundle. The JSON can + // "BUNDLE_PRETTY" - The entire file is one JSON bundle. The JSON can span + // multiple lines. + // "RESOURCE_PRETTY" - The entire file is one JSON resource. The JSON can // span multiple lines. - // "RESOURCE_PRETTY" - The entire file is one JSON resource. The JSON - // can span multiple lines. ContentStructure string `json:"contentStructure,omitempty"` - - // GcsErrorDestination: The Cloud Storage destination to write the error - // report to. + // GcsErrorDestination: The Cloud Storage destination to write the error report + // to. // // The Cloud Storage location requires the `roles/storage.objectAdmin` // Cloud // IAM role. // - // Note that writing a file to the same destination multiple times - // will + // Note that writing a file to the same destination multiple times will // result in the previous version of the file being overwritten. GcsErrorDestination *GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination `json:"gcsErrorDestination,omitempty"` - - // GcsSource: Cloud Storage source data location and import - // configuration. + // GcsSource: Cloud Storage source data location and import configuration. // - // The Cloud Storage location requires the - // `roles/storage.objectViewer` + // The Cloud Storage location requires the `roles/storage.objectViewer` // Cloud IAM role. // // Each Cloud Storage object should be a text file that contains the // format // specified in ContentStructu. GcsSource *GoogleCloudHealthcareV1alpha2FhirRestGcsSource `json:"gcsSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContentStructure") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentStructure") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentStructure") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ImportResourcesRequest) MarshalJSON() ([]byte, error) { +func (s ImportResourcesRequest) MarshalJSON() ([]byte, error) { type NoMethod ImportResourcesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InfoTypeTransformation: A transformation to apply to text that is -// identified as a specific +// InfoTypeTransformation: A transformation to apply to text that is identified +// as a specific // info_type. type InfoTypeTransformation struct { // CharacterMaskConfig: Config for character mask. CharacterMaskConfig *CharacterMaskConfig `json:"characterMaskConfig,omitempty"` - // CryptoHashConfig: Config for crypto hash. CryptoHashConfig *CryptoHashConfig `json:"cryptoHashConfig,omitempty"` - // DateShiftConfig: Config for date shift. DateShiftConfig *DateShiftConfig `json:"dateShiftConfig,omitempty"` - // InfoTypes: InfoTypes to apply this transformation to. If this is not // specified, the // transformation applies to any info_type. InfoTypes []string `json:"infoTypes,omitempty"` - // RedactConfig: Config for text redaction. RedactConfig *RedactConfig `json:"redactConfig,omitempty"` - // ReplaceWithInfoTypeConfig: Config for replace with InfoType. ReplaceWithInfoTypeConfig *ReplaceWithInfoTypeConfig `json:"replaceWithInfoTypeConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CharacterMaskConfig") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CharacterMaskConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CharacterMaskConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CharacterMaskConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InfoTypeTransformation) MarshalJSON() ([]byte, error) { +func (s InfoTypeTransformation) MarshalJSON() ([]byte, error) { type NoMethod InfoTypeTransformation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IngestMessageRequest: Ingests a message into the specified HL7v2 -// store. +// IngestMessageRequest: Ingests a message into the specified HL7v2 store. type IngestMessageRequest struct { // Message: HL7v2 message to ingest. Message *Message `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Message") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Message") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Message") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Message") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IngestMessageRequest) MarshalJSON() ([]byte, error) { +func (s IngestMessageRequest) MarshalJSON() ([]byte, error) { type NoMethod IngestMessageRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IngestMessageResponse: Acknowledges that a message has been ingested -// into the specified +// IngestMessageResponse: Acknowledges that a message has been ingested into +// the specified // HL7v2 store. type IngestMessageResponse struct { // Hl7Ack: HL7v2 ACK message. Hl7Ack string `json:"hl7Ack,omitempty"` - // Message: Created message resource. Message *Message `json:"message,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Hl7Ack") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hl7Ack") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Hl7Ack") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IngestMessageResponse) MarshalJSON() ([]byte, error) { +func (s IngestMessageResponse) MarshalJSON() ([]byte, error) { type NoMethod IngestMessageResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAnnotationStoresResponse: Lists the Annotation stores // in the given dataset. type ListAnnotationStoresResponse struct { - // AnnotationStores: The returned Annotation stores. Won't be more - // Annotation stores than the + // AnnotationStores: The returned Annotation stores. Won't be more Annotation + // stores than the // value of page_size in the request. AnnotationStores []*AnnotationStore `json:"annotationStores,omitempty"` - - // NextPageToken: Token to retrieve the next page of results or empty if - // there are no more + // NextPageToken: Token to retrieve the next page of results or empty if there + // are no more // results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AnnotationStores") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnnotationStores") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AnnotationStores") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAnnotationStoresResponse) MarshalJSON() ([]byte, error) { +func (s ListAnnotationStoresResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAnnotationStoresResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAnnotationsResponse: Lists the Annotations in the -// specified +// ListAnnotationsResponse: Lists the Annotations in the specified // Annotation store. type ListAnnotationsResponse struct { - // Annotations: The returned Annotations names. Won't be more values - // than the value of + // Annotations: The returned Annotations names. Won't be more values than the + // value of // page_size in the request. Annotations []string `json:"annotations,omitempty"` - - // NextPageToken: Token to retrieve the next page of results or empty if - // there are no more + // NextPageToken: Token to retrieve the next page of results or empty if there + // are no more // results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAnnotationsResponse) MarshalJSON() ([]byte, error) { +func (s ListAnnotationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAnnotationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListDatasetsResponse: Lists the available datasets. type ListDatasetsResponse struct { // Datasets: The first page of datasets. Datasets []*Dataset `json:"datasets,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no // more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Datasets") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Datasets") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Datasets") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListDatasetsResponse) MarshalJSON() ([]byte, error) { +func (s ListDatasetsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListDatasetsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListDicomStoresResponse: Lists the DICOM stores in the given dataset. type ListDicomStoresResponse struct { - // DicomStores: The returned DICOM stores. Won't be more DICOM stores - // than the value of + // DicomStores: The returned DICOM stores. Won't be more DICOM stores than the + // value of // page_size in the request. DicomStores []*DicomStore `json:"dicomStores,omitempty"` - - // NextPageToken: Token to retrieve the next page of results or empty if - // there are no more + // NextPageToken: Token to retrieve the next page of results or empty if there + // are no more // results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DicomStores") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DicomStores") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DicomStores") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListDicomStoresResponse) MarshalJSON() ([]byte, error) { +func (s ListDicomStoresResponse) MarshalJSON() ([]byte, error) { type NoMethod ListDicomStoresResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListFhirStoresResponse: Lists the FHIR stores in the given dataset. type ListFhirStoresResponse struct { - // FhirStores: The returned FHIR stores. Won't be more FHIR stores than - // the value of + // FhirStores: The returned FHIR stores. Won't be more FHIR stores than the + // value of // page_size in the request. FhirStores []*FhirStore `json:"fhirStores,omitempty"` - - // NextPageToken: Token to retrieve the next page of results or empty if - // there are no more + // NextPageToken: Token to retrieve the next page of results or empty if there + // are no more // results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "FhirStores") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FhirStores") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FhirStores") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListFhirStoresResponse) MarshalJSON() ([]byte, error) { +func (s ListFhirStoresResponse) MarshalJSON() ([]byte, error) { type NoMethod ListFhirStoresResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListHl7V2StoresResponse: Lists the HL7v2 stores in the given dataset. type ListHl7V2StoresResponse struct { - // Hl7V2Stores: The returned HL7v2 stores. Won't be more HL7v2 stores - // than the value of + // Hl7V2Stores: The returned HL7v2 stores. Won't be more HL7v2 stores than the + // value of // page_size in the request. Hl7V2Stores []*Hl7V2Store `json:"hl7V2Stores,omitempty"` - - // NextPageToken: Token to retrieve the next page of results or empty if - // there are no more + // NextPageToken: Token to retrieve the next page of results or empty if there + // are no more // results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Hl7V2Stores") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Hl7V2Stores") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Hl7V2Stores") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListHl7V2StoresResponse) MarshalJSON() ([]byte, error) { +func (s ListHl7V2StoresResponse) MarshalJSON() ([]byte, error) { type NoMethod ListHl7V2StoresResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. +// ListLocationsResponse: The response message for Locations.ListLocations. type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. + // Locations: A list of locations that matches the specified filter in the + // request. Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListMessagesResponse: Lists the messages in the specified HL7v2 -// store. +// ListMessagesResponse: Lists the messages in the specified HL7v2 store. type ListMessagesResponse struct { - // Messages: The returned message names. Won't be more values than the - // value of + // Messages: The returned message names. Won't be more values than the value + // of // page_size in the request. Messages []string `json:"messages,omitempty"` - - // NextPageToken: Token to retrieve the next page of results or empty if - // there are no more + // NextPageToken: Token to retrieve the next page of results or empty if there + // are no more // results in the list. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Messages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Messages") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Messages") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListMessagesResponse) MarshalJSON() ([]byte, error) { +func (s ListMessagesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListMessagesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Location: A resource that represents Google Cloud Platform location. type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. + // DisplayName: The friendly name for this location, typically a nearby city + // name. // For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example // // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` - - // LocationId: The canonical id for this location. For example: - // "us-east1". + // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` - - // Metadata: Service-specific metadata. For example the available - // capacity at the given + // Metadata: Service-specific metadata. For example the available capacity at + // the given // location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between // implementations. // For example: "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Message: A complete HL7v2 message. @@ -3163,15 +2606,12 @@ func (s *Location) MarshalJSON() ([]byte, error) { // details // on the standard. type Message struct { - // CreateTime: Output only. The datetime when the message was created. - // Set by the server. + // CreateTime: Output only. The datetime when the message was created. Set by + // the server. CreateTime string `json:"createTime,omitempty"` - // Data: Raw message bytes. Data string `json:"data,omitempty"` - - // Labels: User-supplied key-value pairs used to organize HL7v2 - // stores. + // Labels: User-supplied key-value pairs used to organize HL7v2 stores. // // Label keys must be between 1 and 63 characters long, have a UTF-8 // encoding @@ -3179,87 +2619,67 @@ type Message struct { // following PCRE regular expression: // \p{Ll}\p{Lo}{0,62} // - // Label values are optional, must be between 1 and 63 characters long, - // have - // a UTF-8 encoding of maximum 128 bytes, and must conform to - // the + // Label values are optional, must be between 1 and 63 characters long, have + // a UTF-8 encoding of maximum 128 bytes, and must conform to the // following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} // // No more than 64 labels can be associated with a given store. Labels map[string]string `json:"labels,omitempty"` - - // MessageType: The message type and trigger event for this message. - // MSH-9. + // MessageType: The message type and trigger event for this message. MSH-9. MessageType string `json:"messageType,omitempty"` - // Name: Resource name of the Message, of the // form - // `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_ - // store_id}/messages/{message_id}`. + // `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/me + // ssages/{message_id}`. // Assigned by the server. Name string `json:"name,omitempty"` - // ParsedData: Output only. The parsed version of the raw message data. ParsedData *ParsedData `json:"parsedData,omitempty"` - - // PatientIds: All patient IDs listed in the PID-2, PID-3, and PID-4 - // segments of this + // PatientIds: All patient IDs listed in the PID-2, PID-3, and PID-4 segments + // of this // message. PatientIds []*PatientId `json:"patientIds,omitempty"` - // SendFacility: The hospital that this message came from. MSH-4. SendFacility string `json:"sendFacility,omitempty"` - - // SendTime: The datetime the sending application sent this message. - // MSH-7. + // SendTime: The datetime the sending application sent this message. MSH-7. SendTime string `json:"sendTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Message) MarshalJSON() ([]byte, error) { +func (s Message) MarshalJSON() ([]byte, error) { type NoMethod Message - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NotificationConfig: Specifies where notifications should be sent upon // changes to a data store. type NotificationConfig struct { - // PubsubTopic: The [Cloud - // Pub/Sub](https://cloud.google.com/pubsub/docs/) topic + // PubsubTopic: The Cloud Pub/Sub (https://cloud.google.com/pubsub/docs/) topic // that // notifications of changes are published on. Supplied by the // client. - // PubsubMessage.Data will contain the resource - // name. - // PubsubMessage.MessageId is the ID of this message. It is guaranteed - // to be + // PubsubMessage.Data will contain the resource name. + // PubsubMessage.MessageId is the ID of this message. It is guaranteed to + // be // unique within the topic. // PubsubMessage.PublishTime is the time at which the message was // published. // Notifications are only sent if the topic is - // non-empty. - // [Topic - // names](https://cloud.google.com/pubsub/docs/overview#names) must be + // non-empty. Topic + // names (https://cloud.google.com/pubsub/docs/overview#names) must be // scoped // to a project. cloud-healthcare@system.gserviceaccount.com must // have @@ -3267,244 +2687,187 @@ type NotificationConfig struct { // adequate // permissions will cause the calls that send notifications to fail. PubsubTopic string `json:"pubsubTopic,omitempty"` - // ForceSendFields is a list of field names (e.g. "PubsubTopic") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PubsubTopic") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PubsubTopic") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotificationConfig) MarshalJSON() ([]byte, error) { +func (s NotificationConfig) MarshalJSON() ([]byte, error) { type NoMethod NotificationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a +// Operation: This resource represents a long-running operation that is the +// result of a // network API call. type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. - // If `true`, the operation is completed, and either `error` or - // `response` is + // If `true`, the operation is completed, and either `error` or `response` + // is // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. - // It typically - // contains progress information and common metadata such as create - // time. - // Some services might not provide such metadata. Any method that - // returns a + // Metadata: Service-specific metadata associated with the operation. It + // typically + // contains progress information and common metadata such as create time. + // Some services might not provide such metadata. Any method that returns + // a // long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that - // originally returns it. If you use the default HTTP mapping, - // the - // `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that + // originally returns it. If you use the default HTTP mapping, the + // `name` should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. - // If the original + // Response: The normal response of the operation in case of success. If the + // original // method returns no data on success, such as `Delete`, the response // is // `google.protobuf.Empty`. If the original method is // standard // `Get`/`Create`/`Update`, the response should be the resource. For // other - // methods, the response should have the type `XxxResponse`, where - // `Xxx` - // is the original method name. For example, if the original method - // name - // is `TakeSnapshot()`, the inferred response type - // is + // methods, the response should have the type `XxxResponse`, where `Xxx` + // is the original method name. For example, if the original method name + // is `TakeSnapshot()`, the inferred response type is // `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationMetadata: OperationMetadata provides information about the // operation execution. // Returned in the long-running operation's metadata field. type OperationMetadata struct { - // ApiMethodName: The name of the API method that initiated the - // operation. - ApiMethodName string `json:"apiMethodName,omitempty"` - - Counter *ProgressCounter `json:"counter,omitempty"` - + // ApiMethodName: The name of the API method that initiated the operation. + ApiMethodName string `json:"apiMethodName,omitempty"` + Counter *ProgressCounter `json:"counter,omitempty"` // CreateTime: The time at which the operation was created by the API. CreateTime string `json:"createTime,omitempty"` - // EndTime: The time at which execution was completed. EndTime string `json:"endTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiMethodName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiMethodName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiMethodName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { +func (s OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ParsedData: The content of a HL7v2 message in a structured format. type ParsedData struct { Segments []*Segment `json:"segments,omitempty"` - // ForceSendFields is a list of field names (e.g. "Segments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Segments") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Segments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ParsedData) MarshalJSON() ([]byte, error) { +func (s ParsedData) MarshalJSON() ([]byte, error) { type NoMethod ParsedData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ParserConfig: The configuration for the parser. It determines how the -// server parses the +// ParserConfig: The configuration for the parser. It determines how the server +// parses the // messages. type ParserConfig struct { - // AllowNullHeader: Determines whether messages with no header are - // allowed. + // AllowNullHeader: Determines whether messages with no header are allowed. AllowNullHeader bool `json:"allowNullHeader,omitempty"` - - // SegmentTerminator: Byte(s) to be used as the segment terminator. If - // this is unset, '\r' will - // be used as the segment terminator, matching the HL7 version - // 2 + // SegmentTerminator: Byte(s) to be used as the segment terminator. If this is + // unset, '\r' will + // be used as the segment terminator, matching the HL7 version 2 // specification. SegmentTerminator string `json:"segmentTerminator,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowNullHeader") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowNullHeader") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowNullHeader") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ParserConfig) MarshalJSON() ([]byte, error) { +func (s ParserConfig) MarshalJSON() ([]byte, error) { type NoMethod ParserConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PatientId: A patient identifier and associated type. type PatientId struct { // Type: ID type, e.g. MRN or NHS. Type string `json:"type,omitempty"` - // Value: The patient's unique identifier. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PatientId) MarshalJSON() ([]byte, error) { +func (s PatientId) MarshalJSON() ([]byte, error) { type NoMethod PatientId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Policy: Defines an Identity and Access Management (IAM) policy. It is -// used to +// Policy: Defines an Identity and Access Management (IAM) policy. It is used +// to // specify access control policies for Cloud Platform resources. // // A `Policy` consists of a list of `bindings`. A `binding` binds a list @@ -3525,9 +2888,7 @@ func (s *PatientId) MarshalJSON() ([]byte, error) { // "user:mike@example.com", // "group:admins@example.com", // "domain:google.com", -// -// "serviceAccount:my-other-app@appspot.gserviceaccount.com" -// +// "serviceAccount:my-other-app@appspot.gserviceaccount.com" // ] // }, // { @@ -3551,28 +2912,24 @@ func (s *PatientId) MarshalJSON() ([]byte, error) { // role: roles/viewer // // For a description of IAM and its features, see the -// [IAM developer's guide](https://cloud.google.com/iam/docs). +// IAM developer's guide (https://cloud.google.com/iam/docs). type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - // Bindings: Associates a list of `members` to a `role`. // `bindings` with no members will result in an error. Bindings []*Binding `json:"bindings,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to // help - // prevent simultaneous updates of a policy from overwriting each - // other. + // prevent simultaneous updates of a policy from overwriting each other. // It is strongly suggested that systems make use of the `etag` in // the // read-modify-write cycle to perform policy updates in order to avoid // race // conditions: An `etag` is returned in the response to `getIamPolicy`, // and - // systems are expected to put that etag in the request to - // `setIamPolicy` to + // systems are expected to put that etag in the request to `setIamPolicy` + // to // ensure that their change will be applied to the same version of the // policy. // @@ -3580,35 +2937,27 @@ type Policy struct { // existing // policy is overwritten. Etag string `json:"etag,omitempty"` - // Version: Deprecated. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProgressCounter: ProgressCounter provides counters to describe an @@ -3616,46 +2965,38 @@ func (s *Policy) MarshalJSON() ([]byte, error) { type ProgressCounter struct { // Failure: The number of units that failed in the operation. Failure int64 `json:"failure,omitempty,string"` - // Pending: The number of units that are pending in the operation. Pending int64 `json:"pending,omitempty,string"` - // Success: The number of units that succeeded in the operation. Success int64 `json:"success,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Failure") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Failure") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Failure") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Failure") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProgressCounter) MarshalJSON() ([]byte, error) { +func (s ProgressCounter) MarshalJSON() ([]byte, error) { type NoMethod ProgressCounter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RedactConfig: Defines how to redact sensitive values. Default -// behavior is erase. +// RedactConfig: Defines how to redact sensitive values. Default behavior is +// erase. // For example, "My name is Jake." becomes "My name is ." type RedactConfig struct { } -// ReplaceWithInfoTypeConfig: When using the INSPECT_AND_TRANSFORM -// action, each match is replaced with -// the name of the `info_type`. For example, "My name is Jake" becomes -// "My name +// ReplaceWithInfoTypeConfig: When using the INSPECT_AND_TRANSFORM action, each +// match is replaced with +// the name of the `info_type`. For example, "My name is Jake" becomes "My +// name // is [PERSON_NAME]." The TRANSFORM action is equivalent to redacting. type ReplaceWithInfoTypeConfig struct { } @@ -3663,127 +3004,101 @@ type ReplaceWithInfoTypeConfig struct { // ResourceAnnotation: Resource level annotation. type ResourceAnnotation struct { Label string `json:"label,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Label") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Label") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Label") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResourceAnnotation) MarshalJSON() ([]byte, error) { +func (s ResourceAnnotation) MarshalJSON() ([]byte, error) { type NoMethod ResourceAnnotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SchemaConfig: Configuration for the FHIR BigQuery and Cloud Storage -// schema. Determines +// SchemaConfig: Configuration for the FHIR BigQuery and Cloud Storage schema. +// Determines // how the server generates the schema. type SchemaConfig struct { - // RecursiveStructureDepth: The depth for all recursive structures in - // the output analytics + // RecursiveStructureDepth: The depth for all recursive structures in the + // output analytics // schema. For example, `concept` in the CodeSystem resource is a // recursive // structure; when the depth is 2, the CodeSystem table will have a // column - // called `concept.concept` but not `concept.concept.concept`. If - // not + // called `concept.concept` but not `concept.concept.concept`. If not // specified or set to 0, the server will use the default value 2. RecursiveStructureDepth int64 `json:"recursiveStructureDepth,omitempty,string"` - - // SchemaType: Specifies the output schema type. If unspecified, the - // default is + // SchemaType: Specifies the output schema type. If unspecified, the default + // is // `LOSSLESS`. // // Possible values: - // "SCHEMA_TYPE_UNSPECIFIED" - No schema type specified. Same as - // `LOSSLESS`. - // "LOSSLESS" - A data-driven schema generated from the fields present - // in the FHIR data + // "SCHEMA_TYPE_UNSPECIFIED" - No schema type specified. Same as `LOSSLESS`. + // "LOSSLESS" - A data-driven schema generated from the fields present in the + // FHIR data // being exported, with no additional simplification. // "ANALYTICS" - Analytics schema defined by the FHIR community. // See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md. SchemaType string `json:"schemaType,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "RecursiveStructureDepth") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "RecursiveStructureDepth") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RecursiveStructureDepth") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "RecursiveStructureDepth") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SchemaConfig) MarshalJSON() ([]byte, error) { +func (s SchemaConfig) MarshalJSON() ([]byte, error) { type NoMethod SchemaConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SearchResourcesRequest: Request to search the resources in the -// specified FHIR store. +// SearchResourcesRequest: Request to search the resources in the specified +// FHIR store. type SearchResourcesRequest struct { // ResourceType: The FHIR resource type to search, such as Patient or // Observation. For a - // complete list, see the FHIR Resource - // Index - // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcel - // ist.html), - // [STU3](http://hl7.org/implement/standards/fhir/STU3/resourc - // elist.html)). + // complete list, see the FHIR Resource Index + // (DSTU2 + // (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), + // STU3 (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). ResourceType string `json:"resourceType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SearchResourcesRequest) MarshalJSON() ([]byte, error) { +func (s SearchResourcesRequest) MarshalJSON() ([]byte, error) { type NoMethod SearchResourcesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Segment: A segment in a structured format. type Segment struct { // Fields: A mapping from the positional location to the value. - // The key string uses zero-based indexes separated by dots to - // identify - // Fields, components and sub-components. A bracket notation is also - // used to + // The key string uses zero-based indexes separated by dots to identify + // Fields, components and sub-components. A bracket notation is also used + // to // identify different instances of a repeated field. // Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? // @@ -3796,519 +3111,402 @@ type Segment struct { // repeated, // has the value "baz". Fields map[string]string `json:"fields,omitempty"` - - // SegmentId: A string that indicates the type of segment, e.g., EVN, - // PID. + // SegmentId: A string that indicates the type of segment, e.g., EVN, PID. SegmentId string `json:"segmentId,omitempty"` - - // SetId: Set ID for segments that can be in a set. This can be empty if - // it is + // SetId: Set ID for segments that can be in a set. This can be empty if it + // is // missing or it is not applicable. SetId string `json:"setId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Fields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Fields") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Segment) MarshalJSON() ([]byte, error) { +func (s Segment) MarshalJSON() ([]byte, error) { type NoMethod Segment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SensitiveTextAnnotation: A TextAnnotation specifies a text range that // includes sensitive information. type SensitiveTextAnnotation struct { - // Details: Maps from a resource slice (e.g. FHIR resource field path) - // to a set of + // Details: Maps from a resource slice (e.g. FHIR resource field path) to a set + // of // sensitive text findings. For example, // Appointment.Narrative text1 --> {findings_1, findings_2, findings_3} Details map[string]Detail `json:"details,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SensitiveTextAnnotation) MarshalJSON() ([]byte, error) { +func (s SensitiveTextAnnotation) MarshalJSON() ([]byte, error) { type NoMethod SensitiveTextAnnotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of // the policy is limited to a few 10s of KB. An empty policy is a - // valid policy but certain Cloud Platform services (such as - // Projects) + // valid policy but certain Cloud Platform services (such as Projects) // might reject them. Policy *Policy `json:"policy,omitempty"` - - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only // the fields in the mask will be modified. If no mask is provided, // the // following default mask is used: // paths: "bindings, etag" // This field is only used by Cloud IAM. UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for -// different programming environments, including REST APIs and RPC APIs. -// It is -// used by [gRPC](https://github.com/grpc). Each `Status` message -// contains -// three pieces of data: error code, error message, and error -// details. +// Status: The `Status` type defines a logical error model that is suitable +// for +// different programming environments, including REST APIs and RPC APIs. It +// is +// used by gRPC (https://github.com/grpc). Each `Status` message contains +// three pieces of data: error code, error message, and error details. // -// You can find out more about this error model and how to work with it -// in the -// [API Design Guide](https://cloud.google.com/apis/design/errors). +// You can find out more about this error model and how to work with it in +// the +// API Design Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of + // Details: A list of messages that carry the error details. There is a common + // set of // message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any + // Message: A developer-facing error message, which should be in English. + // Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StreamConfig: This structure contains configuration for streaming -// FHIR export. +// StreamConfig: This structure contains configuration for streaming FHIR +// export. type StreamConfig struct { - // BigqueryDestination: The destination BigQuery structure that contains - // both the dataset + // BigqueryDestination: The destination BigQuery structure that contains both + // the dataset // location and corresponding schema config. // The output will be organized in one table per resource type. - // The server will inspect and potentially create new tables (if - // they + // The server will inspect and potentially create new tables (if they // don't exist) in the given BigQuery dataset. // Results will be appended to the corresponding BigQuery tables. - // The views of the latest snapshot will also be automatically created - // in + // The views of the latest snapshot will also be automatically created in // the dataset. BigqueryDestination *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination `json:"bigqueryDestination,omitempty"` - // ResourceTypes: Supply a FHIR resource type (such as "Patient" or // "Observation"). - // See https://www.hl7.org/fhir/valueset-resource-types.html for a list - // of + // See https://www.hl7.org/fhir/valueset-resource-types.html for a list of // all FHIR resource types. - // The server will treat an empty list as an intent to stream all - // the + // The server will treat an empty list as an intent to stream all the // supported resource types in this FHIR store. ResourceTypes []string `json:"resourceTypes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BigqueryDestination") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BigqueryDestination") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BigqueryDestination") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BigqueryDestination") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StreamConfig) MarshalJSON() ([]byte, error) { +func (s StreamConfig) MarshalJSON() ([]byte, error) { type NoMethod StreamConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SubscriptionConfig: Configuration of FHIR // Subscription: // https://www.hl7.org/fhir/subscription.html. type SubscriptionConfig struct { - // AllowedRestHookEndpoints: REST hook endpoints that are allowed to - // receive subscription notifications. - // The create or update operation on a FHIR Subscription resource will - // fail if - // the FHIR Subscription resource contains a REST hook endpoint that is - // not in + // AllowedRestHookEndpoints: REST hook endpoints that are allowed to receive + // subscription notifications. + // The create or update operation on a FHIR Subscription resource will fail + // if + // the FHIR Subscription resource contains a REST hook endpoint that is not + // in // this list. - // A subscription notification push will fail if the FHIR - // Subscription + // A subscription notification push will fail if the FHIR Subscription // resource contains a REST hook endpoint that is not in this list. - // The REST hook endpoint in a subscription resource will be compared - // with the + // The REST hook endpoint in a subscription resource will be compared with + // the // endpoints in this list by exact matching. - // Users must verify their ownership of the domain of an endpoint - // before + // Users must verify their ownership of the domain of an endpoint before // adding it to this list. To verify domain ownership, go // to // https://search.google.com/search-console/welcome. AllowedRestHookEndpoints []*SubscriptionRestHookEndpoint `json:"allowedRestHookEndpoints,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllowedRestHookEndpoints") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AllowedRestHookEndpoints") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedRestHookEndpoints") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowedRestHookEndpoints") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubscriptionConfig) MarshalJSON() ([]byte, error) { +func (s SubscriptionConfig) MarshalJSON() ([]byte, error) { type NoMethod SubscriptionConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SubscriptionRestHookEndpoint: REST hook endpoint of FHIR -// Subscription. +// SubscriptionRestHookEndpoint: REST hook endpoint of FHIR Subscription. type SubscriptionRestHookEndpoint struct { - // AllowResourcePayload: Whether this endpoint is allowed to receive - // full resource payloads. If set - // to false, the subscription notificiation sending to this endpoint - // with full + // AllowResourcePayload: Whether this endpoint is allowed to receive full + // resource payloads. If set + // to false, the subscription notificiation sending to this endpoint with + // full // resource payload will be blocked. AllowResourcePayload bool `json:"allowResourcePayload,omitempty"` - - // Endpoint: Address of the REST hook endpoint. It must be a valid HTTPS - // URL with TLS + // Endpoint: Address of the REST hook endpoint. It must be a valid HTTPS URL + // with TLS // certificate. Endpoint string `json:"endpoint,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllowResourcePayload") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AllowResourcePayload") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowResourcePayload") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowResourcePayload") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubscriptionRestHookEndpoint) MarshalJSON() ([]byte, error) { +func (s SubscriptionRestHookEndpoint) MarshalJSON() ([]byte, error) { type NoMethod SubscriptionRestHookEndpoint - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TagFilterList: List of tags to filter. type TagFilterList struct { - // Tags: Tags to filter. Tags must be DICOM Data Elements, File - // Meta + // Tags: Tags to filter. Tags must be DICOM Data Elements, File Meta // Elements, or Directory Structuring Elements, as defined // at: - // http://dicom.nema.org/medical/dicom/current/output/html/part06.htm - // l#table_6-1,. + // http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,. // They may be provided by "Keyword" or "Tag". For example, // "PatientID", // "00100010". Tags []string `json:"tags,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Tags") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Tags") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Tags") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Tags") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TagFilterList) MarshalJSON() ([]byte, error) { +func (s TagFilterList) MarshalJSON() ([]byte, error) { type NoMethod TagFilterList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. +// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with - // wildcards (such as '*' or 'storage.*') are not allowed. For - // more + // Permissions: The set of permissions to check for the `resource`. Permissions + // with + // wildcards (such as '*' or 'storage.*') are not allowed. For more // information see - // [IAM - // Overview](https://cloud.google.com/iam/docs/overview#permissions). + // IAM Overview (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsResponse: Response message for `TestIamPermissions` // method. type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is // allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TextConfig struct { // Transformations: The transformations to apply to the detected data. Transformations []*InfoTypeTransformation `json:"transformations,omitempty"` - // ForceSendFields is a list of field names (e.g. "Transformations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Transformations") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Transformations") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TextConfig) MarshalJSON() ([]byte, error) { +func (s TextConfig) MarshalJSON() ([]byte, error) { type NoMethod TextConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ValidationConfig: This structure contains the configuration for FHIR // profiles and validation. type ValidationConfig struct { - // DisableProfileValidation: Whether profile validation should be - // disabled for this FHIR store. Set - // this to true to disable checking incoming resources for - // conformance + // DisableProfileValidation: Whether profile validation should be disabled for + // this FHIR store. Set + // this to true to disable checking incoming resources for conformance // against StructureDefinitions in this FHIR store. DisableProfileValidation bool `json:"disableProfileValidation,omitempty"` - - // EnabledImplementationGuides: A list of ImplementationGuide IDs in - // this FHIR store that will be used to - // configure which profiles are used for validation. For example, to - // enable + // EnabledImplementationGuides: A list of ImplementationGuide IDs in this FHIR + // store that will be used to + // configure which profiles are used for validation. For example, to enable // an implementation guide with ID 1 set `enabled_implementation_guides` // to // `["1"]`. If `enabled_implementation_guides` is empty or omitted // then // incoming resources will only be required to conform to the base // FHIR - // profiles. Otherwise, a resource must conform to at least one - // profile - // listed in the `global` property of one of the - // enabled + // profiles. Otherwise, a resource must conform to at least one profile + // listed in the `global` property of one of the enabled // ImplementationGuides. EnabledImplementationGuides []string `json:"enabledImplementationGuides,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DisableProfileValidation") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DisableProfileValidation") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisableProfileValidation") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DisableProfileValidation") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ValidationConfig) MarshalJSON() ([]byte, error) { +func (s ValidationConfig) MarshalJSON() ([]byte, error) { type NoMethod ValidationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Vertex: A 2D coordinate in an image. The origin is the top-left. type Vertex struct { // X: X coordinate. X float64 `json:"x,omitempty"` - // Y: Y coordinate. Y float64 `json:"y,omitempty"` - - // ForceSendFields is a list of field names (e.g. "X") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "X") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "X") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "X") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Vertex) MarshalJSON() ([]byte, error) { +func (s Vertex) MarshalJSON() ([]byte, error) { type NoMethod Vertex - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Vertex) UnmarshalJSON(data []byte) error { @@ -4327,8 +3525,6 @@ func (s *Vertex) UnmarshalJSON(data []byte) error { return nil } -// method id "healthcare.projects.locations.get": - type ProjectsLocationsGetCall struct { s *Service name string @@ -4339,6 +3535,8 @@ type ProjectsLocationsGetCall struct { } // Get: Gets information about a location. +// +// - name: Resource name for the location. func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4346,33 +3544,29 @@ func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4381,12 +3575,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header { } func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4403,16 +3592,14 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4420,17 +3607,17 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Location{ ServerResponse: googleapi.ServerResponse{ @@ -4443,35 +3630,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, return nil, err } return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the location.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Location" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.list": +} type ProjectsLocationsListCall struct { s *Service @@ -4482,63 +3641,59 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this service. +// +// - name: The resource that owns the locations collection, if applicable. func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4547,12 +3702,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header { } func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4569,16 +3719,15 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4586,17 +3735,17 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4609,48 +3758,6 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat return nil, err } return ret, nil - // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/locations", - // "response": { - // "$ref": "ListLocationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -4658,7 +3765,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4674,8 +3781,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -// method id "healthcare.projects.locations.datasets.create": - type ProjectsLocationsDatasetsCreateCall struct { s *Service parent string @@ -4694,6 +3799,11 @@ type ProjectsLocationsDatasetsCreateCall struct { // A Google Cloud Platform project can contain up to 500 datasets across // all // regions. +// +// - parent: The name of the project in which the dataset should be created +// (e.g., +// +// `projects/{project_id}/locations/{location_id}`). func (r *ProjectsLocationsDatasetsService) Create(parent string, dataset *Dataset) *ProjectsLocationsDatasetsCreateCall { c := &ProjectsLocationsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4701,33 +3811,30 @@ func (r *ProjectsLocationsDatasetsService) Create(parent string, dataset *Datase return c } -// DatasetId sets the optional parameter "datasetId": The ID of the -// dataset that is being created. -// The string must match the following regex: -// `[\p{L}\p{N}_\-\.]{1,256}`. +// DatasetId sets the optional parameter "datasetId": The ID of the dataset +// that is being created. +// The string must match the following regex: `[\p{L}\p{N}_\-\.]{1,256}`. func (c *ProjectsLocationsDatasetsCreateCall) DatasetId(datasetId string) *ProjectsLocationsDatasetsCreateCall { c.urlParams_.Set("datasetId", datasetId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4736,18 +3843,12 @@ func (c *ProjectsLocationsDatasetsCreateCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/datasets") @@ -4760,16 +3861,14 @@ func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4777,17 +3876,17 @@ func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4800,43 +3899,7 @@ func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Creates a new health dataset. Results are returned through the\nOperation interface which returns either an\n`Operation.response` which contains a Dataset or\n`Operation.error`. The metadata\nfield type is OperationMetadata.\nA Google Cloud Platform project can contain up to 500 datasets across all\nregions.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "datasetId": { - // "description": "The ID of the dataset that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The name of the project in which the dataset should be created (e.g.,\n`projects/{project_id}/locations/{location_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/datasets", - // "request": { - // "$ref": "Dataset" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.deidentify": +} type ProjectsLocationsDatasetsDeidentifyCall struct { s *Service @@ -4847,8 +3910,8 @@ type ProjectsLocationsDatasetsDeidentifyCall struct { header_ http.Header } -// Deidentify: Creates a new dataset containing de-identified data from -// the source +// Deidentify: Creates a new dataset containing de-identified data from the +// source // dataset. The metadata field type // is OperationMetadata. // If the request is successful, the @@ -4858,7 +3921,11 @@ type ProjectsLocationsDatasetsDeidentifyCall struct { // details field type is // DeidentifyErrorDetails. // Errors are also logged to Stackdriver -// (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)). +// (see Viewing logs (/healthcare/docs/how-tos/stackdriver-logging)). +// +// - sourceDataset: Source dataset resource name. +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`). func (r *ProjectsLocationsDatasetsService) Deidentify(sourceDataset string, deidentifydatasetrequest *DeidentifyDatasetRequest) *ProjectsLocationsDatasetsDeidentifyCall { c := &ProjectsLocationsDatasetsDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.sourceDataset = sourceDataset @@ -4867,23 +3934,21 @@ func (r *ProjectsLocationsDatasetsService) Deidentify(sourceDataset string, deid } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeidentifyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeidentifyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDeidentifyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4892,18 +3957,12 @@ func (c *ProjectsLocationsDatasetsDeidentifyCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.deidentifydatasetrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+sourceDataset}:deidentify") @@ -4916,16 +3975,14 @@ func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "sourceDataset": c.sourceDataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.deidentify" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDeidentifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4933,17 +3990,17 @@ func (c *ProjectsLocationsDatasetsDeidentifyCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4956,38 +4013,7 @@ func (c *ProjectsLocationsDatasetsDeidentifyCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Creates a new dataset containing de-identified data from the source\ndataset. The metadata field type\nis OperationMetadata.\nIf the request is successful, the\nresponse field type is\nDeidentifySummary.\nIf errors occur,\ndetails field type is\nDeidentifyErrorDetails.\nErrors are also logged to Stackdriver\n(see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)).", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:deidentify", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.deidentify", - // "parameterOrder": [ - // "sourceDataset" - // ], - // "parameters": { - // "sourceDataset": { - // "description": "Source dataset resource name. (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+sourceDataset}:deidentify", - // "request": { - // "$ref": "DeidentifyDatasetRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.delete": +} type ProjectsLocationsDatasetsDeleteCall struct { s *Service @@ -4997,11 +4023,15 @@ type ProjectsLocationsDatasetsDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified health dataset and all data contained -// in the dataset. +// Delete: Deletes the specified health dataset and all data contained in the +// dataset. // Deleting a dataset does not affect the sources from which the dataset // was // imported (if any). +// +// - name: The name of the dataset to delete +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`). func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocationsDatasetsDeleteCall { c := &ProjectsLocationsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5009,23 +4039,21 @@ func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5034,12 +4062,7 @@ func (c *ProjectsLocationsDatasetsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5053,16 +4076,14 @@ func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5070,17 +4091,17 @@ func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -5093,35 +4114,7 @@ func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Deletes the specified health dataset and all data contained in the dataset.\nDeleting a dataset does not affect the sources from which the dataset was\nimported (if any).", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the dataset to delete (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.get": +} type ProjectsLocationsDatasetsGetCall struct { s *Service @@ -5133,6 +4126,10 @@ type ProjectsLocationsDatasetsGetCall struct { } // Get: Gets any metadata associated with a dataset. +// +// - name: The name of the dataset to read +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`). func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDatasetsGetCall { c := &ProjectsLocationsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5140,33 +4137,29 @@ func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5175,12 +4168,7 @@ func (c *ProjectsLocationsDatasetsGetCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5197,16 +4185,14 @@ func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.get" call. -// Exactly one of *Dataset or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Dataset.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Dataset.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Dataset, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5214,17 +4200,17 @@ func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Da if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Dataset{ ServerResponse: googleapi.ServerResponse{ @@ -5237,35 +4223,7 @@ func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Da return nil, err } return ret, nil - // { - // "description": "Gets any metadata associated with a dataset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the dataset to read (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Dataset" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.getIamPolicy": +} type ProjectsLocationsDatasetsGetIamPolicyCall struct { s *Service @@ -5280,6 +4238,10 @@ type ProjectsLocationsDatasetsGetIamPolicyCall struct { // Returns an empty policy if the resource exists and does not have a // policy // set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsGetIamPolicyCall { c := &ProjectsLocationsDatasetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5290,8 +4252,8 @@ func (r *ProjectsLocationsDatasetsService) GetIamPolicy(resource string) *Projec // "options.requestedPolicyVersion": The policy format version to be // returned. // Acceptable values are 0, 1, and 3. -// If the value is 0, or the field is omitted, policy format version 1 -// will be +// If the value is 0, or the field is omitted, policy format version 1 will +// be // returned. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -5299,33 +4261,29 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) OptionsRequestedPolicyVersio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5334,12 +4292,7 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5356,16 +4309,14 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5373,17 +4324,17 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -5396,41 +4347,7 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.\nAcceptable values are 0, 1, and 3.\nIf the value is 0, or the field is omitted, policy format version 1 will be\nreturned.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.list": +} type ProjectsLocationsDatasetsListCall struct { s *Service @@ -5442,55 +4359,56 @@ type ProjectsLocationsDatasetsListCall struct { } // List: Lists the health datasets in the current project. +// +// - parent: The name of the project whose datasets should be listed +// (e.g., +// +// `projects/{project_id}/locations/{location_id}`). func (r *ProjectsLocationsDatasetsService) List(parent string) *ProjectsLocationsDatasetsListCall { c := &ProjectsLocationsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. Capped to 100 if not specified. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. Capped to 100 if not specified. // May not be larger than 1000. func (c *ProjectsLocationsDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from a previous List request, if any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. func (c *ProjectsLocationsDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5499,12 +4417,7 @@ func (c *ProjectsLocationsDatasetsListCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5521,16 +4434,15 @@ func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.list" call. -// Exactly one of *ListDatasetsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListDatasetsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListDatasetsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*ListDatasetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5538,17 +4450,17 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*L if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListDatasetsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5561,43 +4473,6 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*L return nil, err } return ret, nil - // { - // "description": "Lists the health datasets in the current project.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of items to return. Capped to 100 if not specified.\nMay not be larger than 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The name of the project whose datasets should be listed (e.g.,\n`projects/{project_id}/locations/{location_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/datasets", - // "response": { - // "$ref": "ListDatasetsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -5605,7 +4480,7 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*L // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*ListDatasetsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5621,8 +4496,6 @@ func (c *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*L } } -// method id "healthcare.projects.locations.datasets.patch": - type ProjectsLocationsDatasetsPatchCall struct { s *Service name string @@ -5633,6 +4506,10 @@ type ProjectsLocationsDatasetsPatchCall struct { } // Patch: Updates dataset metadata. +// +// - name: Output only. Resource name of the dataset, of the +// form +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. func (r *ProjectsLocationsDatasetsService) Patch(name string, dataset *Dataset) *ProjectsLocationsDatasetsPatchCall { c := &ProjectsLocationsDatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5640,35 +4517,32 @@ func (r *ProjectsLocationsDatasetsService) Patch(name string, dataset *Dataset) return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. For the `FieldMask` +// UpdateMask sets the optional parameter "updateMask": The update mask applies +// to the resource. For the `FieldMask` // definition, // see -// https://developers.google.com/protocol-buffers/docs/re -// ference/google.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask func (c *ProjectsLocationsDatasetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5677,18 +4551,12 @@ func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -5701,16 +4569,14 @@ func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.patch" call. -// Exactly one of *Dataset or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Dataset.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Dataset.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*Dataset, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5718,17 +4584,17 @@ func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Dataset{ ServerResponse: googleapi.ServerResponse{ @@ -5741,44 +4607,7 @@ func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Updates dataset metadata.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", - // "httpMethod": "PATCH", - // "id": "healthcare.projects.locations.datasets.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Resource name of the dataset, of the form\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "Dataset" - // }, - // "response": { - // "$ref": "Dataset" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.setIamPolicy": +} type ProjectsLocationsDatasetsSetIamPolicyCall struct { s *Service @@ -5789,9 +4618,13 @@ type ProjectsLocationsDatasetsSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any // existing policy. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsSetIamPolicyCall { c := &ProjectsLocationsDatasetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5800,23 +4633,21 @@ func (r *ProjectsLocationsDatasetsService) SetIamPolicy(resource string, setiamp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5825,18 +4656,12 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy") @@ -5849,16 +4674,14 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5866,17 +4689,17 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -5889,38 +4712,7 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.testIamPermissions": +} type ProjectsLocationsDatasetsTestIamPermissionsCall struct { s *Service @@ -5931,8 +4723,8 @@ type ProjectsLocationsDatasetsTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. @@ -5942,6 +4734,10 @@ type ProjectsLocationsDatasetsTestIamPermissionsCall struct { // UIs and command-line tools, not for authorization checking. This // operation // may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsTestIamPermissionsCall { c := &ProjectsLocationsDatasetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5950,23 +4746,21 @@ func (r *ProjectsLocationsDatasetsService) TestIamPermissions(resource string, t } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5975,18 +4769,12 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions") @@ -5999,16 +4787,15 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6016,17 +4803,17 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.C if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6039,38 +4826,7 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.create": +} type ProjectsLocationsDatasetsAnnotationStoresCreateCall struct { s *Service @@ -6082,6 +4838,8 @@ type ProjectsLocationsDatasetsAnnotationStoresCreateCall struct { } // Create: Creates a new Annotation store within the parent dataset. +// +// - parent: The name of the dataset this Annotation store belongs to. func (r *ProjectsLocationsDatasetsAnnotationStoresService) Create(parent string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresCreateCall { c := &ProjectsLocationsDatasetsAnnotationStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -6089,33 +4847,30 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresService) Create(parent string, return c } -// AnnotationStoreId sets the optional parameter "annotationStoreId": -// The ID of the Annotation store that is being created. -// The string must match the following regex: -// `[\p{L}\p{N}_\-\.]{1,256}`. +// AnnotationStoreId sets the optional parameter "annotationStoreId": The ID of +// the Annotation store that is being created. +// The string must match the following regex: `[\p{L}\p{N}_\-\.]{1,256}`. func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) AnnotationStoreId(annotationStoreId string) *ProjectsLocationsDatasetsAnnotationStoresCreateCall { c.urlParams_.Set("annotationStoreId", annotationStoreId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6124,18 +4879,12 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Header() http.Head } func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotationStores") @@ -6148,16 +4897,15 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.create" call. -// Exactly one of *AnnotationStore or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AnnotationStore.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AnnotationStore.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6165,17 +4913,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Do(opts ...googlea if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AnnotationStore{ ServerResponse: googleapi.ServerResponse{ @@ -6188,43 +4936,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Creates a new Annotation store within the parent dataset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.annotationStores.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "annotationStoreId": { - // "description": "The ID of the Annotation store that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The name of the dataset this Annotation store belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/annotationStores", - // "request": { - // "$ref": "AnnotationStore" - // }, - // "response": { - // "$ref": "AnnotationStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.delete": +} type ProjectsLocationsDatasetsAnnotationStoresDeleteCall struct { s *Service @@ -6234,9 +4946,11 @@ type ProjectsLocationsDatasetsAnnotationStoresDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified Annotation store and removes all -// annotations that are +// Delete: Deletes the specified Annotation store and removes all annotations +// that are // contained within it. +// +// - name: The resource name of the Annotation store to delete. func (r *ProjectsLocationsDatasetsAnnotationStoresService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall { c := &ProjectsLocationsDatasetsAnnotationStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6244,23 +4958,21 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresService) Delete(name string) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6269,12 +4981,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Header() http.Head } func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -6288,16 +4995,14 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6305,17 +5010,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Do(opts ...googlea if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -6328,35 +5033,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Deletes the specified Annotation store and removes all annotations that are\ncontained within it.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.annotationStores.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the Annotation store to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.get": +} type ProjectsLocationsDatasetsAnnotationStoresGetCall struct { s *Service @@ -6367,9 +5044,11 @@ type ProjectsLocationsDatasetsAnnotationStoresGetCall struct { header_ http.Header } -// Get: Gets the specified Annotation store or returns NOT_FOUND if it -// does not +// Get: Gets the specified Annotation store or returns NOT_FOUND if it does +// not // exist. +// +// - name: The resource name of the Annotation store to get. func (r *ProjectsLocationsDatasetsAnnotationStoresService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresGetCall { c := &ProjectsLocationsDatasetsAnnotationStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6377,33 +5056,29 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresService) Get(name string) *Pro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6412,12 +5087,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Header() http.Header } func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6434,16 +5104,15 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.get" call. -// Exactly one of *AnnotationStore or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AnnotationStore.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AnnotationStore.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6451,17 +5120,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Do(opts ...googleapi. if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AnnotationStore{ ServerResponse: googleapi.ServerResponse{ @@ -6474,35 +5143,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Gets the specified Annotation store or returns NOT_FOUND if it does not\nexist.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.annotationStores.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the Annotation store to get.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "AnnotationStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.getIamPolicy": +} type ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall struct { s *Service @@ -6523,6 +5164,10 @@ type ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall struct { // permission // `healthcare.AnnotationStores.getIamPolicy` on the specified // resource +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsAnnotationStoresService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall { c := &ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -6531,23 +5176,21 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresService) GetIamPolicy(resource } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6556,18 +5199,12 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Header() htt } func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy") @@ -6580,16 +5217,14 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6597,17 +5232,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Do(opts ...g if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -6620,38 +5255,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource. Returns NOT_FOUND error if\nthe resource does not exist. Returns an empty policy if the resource exists\nbut does not have a policy set.\n\nAuthorization requires the Google IAM permission\n`healthcare.AnnotationStores.getIamPolicy` on the specified\nresource", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}:getIamPolicy", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.annotationStores.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:getIamPolicy", - // "request": { - // "$ref": "GetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.list": +} type ProjectsLocationsDatasetsAnnotationStoresListCall struct { s *Service @@ -6662,70 +5266,64 @@ type ProjectsLocationsDatasetsAnnotationStoresListCall struct { header_ http.Header } -// List: Lists the Annotation stores in the given dataset for a source -// store. +// List: Lists the Annotation stores in the given dataset for a source store. +// +// - parent: Name of the dataset. func (r *ProjectsLocationsDatasetsAnnotationStoresService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresListCall { c := &ProjectsLocationsDatasetsAnnotationStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Restricts stores -// returned to those matching a filter. +// Filter sets the optional parameter "filter": Restricts stores returned to +// those matching a filter. // Syntax: -// https://cloud.google.com/appengine/docs/standard/python/search -// /query_strings -// Only filtering on labels is supported, for example -// `labels.key=value`. +// https://cloud.google.com/appengine/docs/standard/python/search/query_strings +// Only filtering on labels is supported, for example `labels.key=value`. func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": Limit on the number -// of Annotation stores to return in a single response. +// PageSize sets the optional parameter "pageSize": Limit on the number of +// Annotation stores to return in a single response. // If zero the default page size of 100 is used. func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from the previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from the previous List request, if any. func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6734,12 +5332,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Header() http.Header } func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6756,16 +5349,15 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.list" call. -// Exactly one of *ListAnnotationStoresResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListAnnotationStoresResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListAnnotationStoresResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationStoresResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6773,17 +5365,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Do(opts ...googleapi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListAnnotationStoresResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6796,48 +5388,6 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Lists the Annotation stores in the given dataset for a source store.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.annotationStores.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Restricts stores returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\nOnly filtering on labels is supported, for example `labels.key=value`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Limit on the number of Annotation stores to return in a single response.\nIf zero the default page size of 100 is used.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from the previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Name of the dataset.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/annotationStores", - // "response": { - // "$ref": "ListAnnotationStoresResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -6845,7 +5395,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Do(opts ...googleapi // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Pages(ctx context.Context, f func(*ListAnnotationStoresResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6861,8 +5411,6 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Pages(ctx context.Co } } -// method id "healthcare.projects.locations.datasets.annotationStores.patch": - type ProjectsLocationsDatasetsAnnotationStoresPatchCall struct { s *Service name string @@ -6873,6 +5421,11 @@ type ProjectsLocationsDatasetsAnnotationStoresPatchCall struct { } // Patch: Updates the specified Annotation store. +// +// - name: Output only. Resource name of the Annotation store, of the +// form +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annota +// tionStores/{annotation_store_id}`. func (r *ProjectsLocationsDatasetsAnnotationStoresService) Patch(name string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresPatchCall { c := &ProjectsLocationsDatasetsAnnotationStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6880,35 +5433,32 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresService) Patch(name string, an return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. For the `FieldMask` +// UpdateMask sets the optional parameter "updateMask": The update mask applies +// to the resource. For the `FieldMask` // definition, // see -// https://developers.google.com/protocol-buffers/docs/re -// ference/google.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6917,18 +5467,12 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Header() http.Heade } func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -6941,16 +5485,15 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.patch" call. -// Exactly one of *AnnotationStore or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AnnotationStore.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AnnotationStore.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6958,17 +5501,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AnnotationStore{ ServerResponse: googleapi.ServerResponse{ @@ -6981,44 +5524,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Updates the specified Annotation store.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}", - // "httpMethod": "PATCH", - // "id": "healthcare.projects.locations.datasets.annotationStores.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Resource name of the Annotation store, of the form\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "AnnotationStore" - // }, - // "response": { - // "$ref": "AnnotationStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.setIamPolicy": +} type ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall struct { s *Service @@ -7038,6 +5544,10 @@ type ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall struct { // permission // `healthcare.annotationStores.setIamPolicy` on the specified // resource +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsAnnotationStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall { c := &ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -7046,23 +5556,21 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresService) SetIamPolicy(resource } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7071,18 +5579,12 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Header() htt } func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy") @@ -7095,16 +5597,14 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7112,17 +5612,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Do(opts ...g if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -7135,38 +5635,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "POLICIES\nSets the access control policy for a resource. Replaces any existing\npolicy.\n\nAuthorization requires the Google IAM permission\n`healthcare.annotationStores.setIamPolicy` on the specified\nresource", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.annotationStores.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.testIamPermissions": +} type ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall struct { s *Service @@ -7177,13 +5646,17 @@ type ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. // // There is no permission required to make this API call. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsAnnotationStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall { c := &ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -7192,23 +5665,21 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresService) TestIamPermissions(re } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7217,18 +5688,12 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Header } func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions") @@ -7241,16 +5706,15 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7258,17 +5722,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Do(opt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7281,38 +5745,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Do(opt return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nThere is no permission required to make this API call.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.annotationStores.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.annotations.create": +} type ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall struct { s *Service @@ -7327,6 +5760,11 @@ type ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall struct { // valid to create Annotation objects for the same source more than once // since // a unique ID is assigned to each record by this service. +// +// - parent: The name of the Annotation store this annotation belongs to. For +// example, +// `projects/my-project/locations/us-central1/datasets/mydataset/annotationSto +// res/myannotationstore`. func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Create(parent string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall { c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -7335,23 +5773,21 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Create(par } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7360,18 +5796,12 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Header( } func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotations") @@ -7384,16 +5814,14 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.create" call. -// Exactly one of *Annotation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Annotation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Annotation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Do(opts ...googleapi.CallOption) (*Annotation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7401,17 +5829,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Do(opts if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Annotation{ ServerResponse: googleapi.ServerResponse{ @@ -7424,38 +5852,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Do(opts return nil, err } return ret, nil - // { - // "description": "Creates a new Annotation record. It is\nvalid to create Annotation objects for the same source more than once since\na unique ID is assigned to each record by this service.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.annotationStores.annotations.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The name of the Annotation store this annotation belongs to. For example,\n`projects/my-project/locations/us-central1/datasets/mydataset/annotationStores/myannotationstore`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/annotations", - // "request": { - // "$ref": "Annotation" - // }, - // "response": { - // "$ref": "Annotation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.annotations.delete": +} type ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall struct { s *Service @@ -7467,6 +5864,8 @@ type ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall struct { // Delete: Deletes an Annotation or returns // NOT_FOUND if it does not exist. +// +// - name: The resource name of the Annotation to delete. func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall { c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7474,23 +5873,21 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Delete(nam } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7499,12 +5896,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Header( } func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -7518,16 +5910,14 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7535,17 +5925,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Do(opts if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -7558,35 +5948,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Do(opts return nil, err } return ret, nil - // { - // "description": "Deletes an Annotation or returns\nNOT_FOUND if it does not exist.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations/{annotationsId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.annotationStores.annotations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the Annotation to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+/annotations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.annotations.get": +} type ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall struct { s *Service @@ -7598,6 +5960,8 @@ type ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall struct { } // Get: Gets an Annotation. +// +// - name: The resource name of the Annotation to retrieve. func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall { c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7605,33 +5969,29 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Get(name s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7640,12 +6000,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Header() h } func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7662,16 +6017,14 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.get" call. -// Exactly one of *Annotation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Annotation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Annotation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Do(opts ...googleapi.CallOption) (*Annotation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7679,17 +6032,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Do(opts .. if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Annotation{ ServerResponse: googleapi.ServerResponse{ @@ -7702,35 +6055,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Do(opts .. return nil, err } return ret, nil - // { - // "description": "Gets an Annotation.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations/{annotationsId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.annotationStores.annotations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the Annotation to retrieve.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+/annotations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Annotation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.annotationStores.annotations.list": +} type ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall struct { s *Service @@ -7744,17 +6069,18 @@ type ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall struct { // List: Lists the Annotations in the given // Annotation store for a source // resource. +// +// - parent: Name of the Annotation store to retrieve Annotations from. func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall { c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Restricts Annotations -// returned to those matching a filter. +// Filter sets the optional parameter "filter": Restricts Annotations returned +// to those matching a filter. // Syntax: -// https://cloud.google.com/appengine/docs/standard/python/search -// /query_strings +// https://cloud.google.com/appengine/docs/standard/python/search/query_strings // Fields/functions available for filtering are: // - source_version func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall { @@ -7762,50 +6088,45 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Filter(fi return c } -// PageSize sets the optional parameter "pageSize": Limit on the number -// of Annotations to return in a single response. +// PageSize sets the optional parameter "pageSize": Limit on the number of +// Annotations to return in a single response. // If zero the default page size of 100 is used. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from the previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from the previous List request, if any. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7814,12 +6135,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Header() } func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7836,16 +6152,15 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.list" call. -// Exactly one of *ListAnnotationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListAnnotationsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7853,17 +6168,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Do(opts . if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListAnnotationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7876,48 +6191,6 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Do(opts . return nil, err } return ret, nil - // { - // "description": "Lists the Annotations in the given\nAnnotation store for a source\nresource.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.annotationStores.annotations.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Restricts Annotations returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\nFields/functions available for filtering are:\n- source_version", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Limit on the number of Annotations to return in a single response.\nIf zero the default page size of 100 is used.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from the previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Name of the Annotation store to retrieve Annotations from.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/annotations", - // "response": { - // "$ref": "ListAnnotationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -7925,7 +6198,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Do(opts . // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Pages(ctx context.Context, f func(*ListAnnotationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -7941,8 +6214,6 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Pages(ctx } } -// method id "healthcare.projects.locations.datasets.annotationStores.annotations.patch": - type ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall struct { s *Service name string @@ -7953,6 +6224,11 @@ type ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall struct { } // Patch: Updates the Annotation. +// +// - name: Output only. Resource name of the Annotation, of the +// form +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annota +// tionStores/{annotation_store_id}/annotations/{annotation_id}`. func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Patch(name string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall { c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7960,35 +6236,32 @@ func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Patch(name return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. For the `FieldMask` +// UpdateMask sets the optional parameter "updateMask": The update mask applies +// to the resource. For the `FieldMask` // definition, // see -// https://developers.google.com/protocol-buffers/docs/re -// ference/google.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7997,18 +6270,12 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Header() } func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -8021,16 +6288,14 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.patch" call. -// Exactly one of *Annotation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Annotation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Annotation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Do(opts ...googleapi.CallOption) (*Annotation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8038,17 +6303,17 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Do(opts if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Annotation{ ServerResponse: googleapi.ServerResponse{ @@ -8061,44 +6326,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Do(opts return nil, err } return ret, nil - // { - // "description": "Updates the Annotation.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations/{annotationsId}", - // "httpMethod": "PATCH", - // "id": "healthcare.projects.locations.datasets.annotationStores.annotations.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Resource name of the Annotation, of the form\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+/annotations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "Annotation" - // }, - // "response": { - // "$ref": "Annotation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.create": +} type ProjectsLocationsDatasetsDicomStoresCreateCall struct { s *Service @@ -8110,6 +6338,8 @@ type ProjectsLocationsDatasetsDicomStoresCreateCall struct { } // Create: Creates a new DICOM store within the parent dataset. +// +// - parent: The name of the dataset this DICOM store belongs to. func (r *ProjectsLocationsDatasetsDicomStoresService) Create(parent string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresCreateCall { c := &ProjectsLocationsDatasetsDicomStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -8117,8 +6347,8 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) Create(parent string, dico return c } -// DicomStoreId sets the optional parameter "dicomStoreId": The ID of -// the DICOM store that is being created. +// DicomStoreId sets the optional parameter "dicomStoreId": The ID of the DICOM +// store that is being created. // Any string value up to 256 characters in length. func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) DicomStoreId(dicomStoreId string) *ProjectsLocationsDatasetsDicomStoresCreateCall { c.urlParams_.Set("dicomStoreId", dicomStoreId) @@ -8126,23 +6356,21 @@ func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) DicomStoreId(dicomStore } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8151,18 +6379,12 @@ func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomStores") @@ -8175,16 +6397,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.create" call. -// Exactly one of *DicomStore or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DicomStore.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DicomStore.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8192,17 +6412,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DicomStore{ ServerResponse: googleapi.ServerResponse{ @@ -8215,43 +6435,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Creates a new DICOM store within the parent dataset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.dicomStores.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "dicomStoreId": { - // "description": "The ID of the DICOM store that is being created.\nAny string value up to 256 characters in length.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The name of the dataset this DICOM store belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomStores", - // "request": { - // "$ref": "DicomStore" - // }, - // "response": { - // "$ref": "DicomStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.delete": +} type ProjectsLocationsDatasetsDicomStoresDeleteCall struct { s *Service @@ -8261,9 +6445,11 @@ type ProjectsLocationsDatasetsDicomStoresDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified DICOM store and removes all images that -// are contained +// Delete: Deletes the specified DICOM store and removes all images that are +// contained // within it. +// +// - name: The resource name of the DICOM store to delete. func (r *ProjectsLocationsDatasetsDicomStoresService) Delete(name string) *ProjectsLocationsDatasetsDicomStoresDeleteCall { c := &ProjectsLocationsDatasetsDicomStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -8271,23 +6457,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) Delete(name string) *Proje } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8296,12 +6480,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -8315,16 +6494,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8332,17 +6509,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -8355,35 +6532,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Deletes the specified DICOM store and removes all images that are contained\nwithin it.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.dicomStores.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the DICOM store to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.export": +} type ProjectsLocationsDatasetsDicomStoresExportCall struct { s *Service @@ -8394,11 +6543,16 @@ type ProjectsLocationsDatasetsDicomStoresExportCall struct { header_ http.Header } -// Export: Exports data to the specified destination by copying it from -// the DICOM +// Export: Exports data to the specified destination by copying it from the +// DICOM // store. // The metadata field type is // OperationMetadata. +// +// - name: The DICOM store resource name from which the data should be exported +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresService) Export(name string, exportdicomdatarequest *ExportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresExportCall { c := &ProjectsLocationsDatasetsDicomStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -8407,23 +6561,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) Export(name string, export } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresExportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresExportCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8432,18 +6584,12 @@ func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportdicomdatarequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:export") @@ -8456,16 +6602,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.export" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8473,17 +6617,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8496,38 +6640,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Exports data to the specified destination by copying it from the DICOM\nstore.\nThe metadata field type is\nOperationMetadata.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:export", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.dicomStores.export", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The DICOM store resource name from which the data should be exported (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}:export", - // "request": { - // "$ref": "ExportDicomDataRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.get": +} type ProjectsLocationsDatasetsDicomStoresGetCall struct { s *Service @@ -8539,6 +6652,8 @@ type ProjectsLocationsDatasetsDicomStoresGetCall struct { } // Get: Gets the specified DICOM store. +// +// - name: The resource name of the DICOM store to get. func (r *ProjectsLocationsDatasetsDicomStoresService) Get(name string) *ProjectsLocationsDatasetsDicomStoresGetCall { c := &ProjectsLocationsDatasetsDicomStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -8546,33 +6661,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) Get(name string) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8581,12 +6692,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8603,16 +6709,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.get" call. -// Exactly one of *DicomStore or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DicomStore.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DicomStore.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8620,17 +6724,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DicomStore{ ServerResponse: googleapi.ServerResponse{ @@ -8643,35 +6747,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Gets the specified DICOM store.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the DICOM store to get.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "DicomStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.getIamPolicy": +} type ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall struct { s *Service @@ -8686,6 +6762,10 @@ type ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall struct { // Returns an empty policy if the resource exists and does not have a // policy // set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsDicomStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall { c := &ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -8696,8 +6776,8 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) GetIamPolicy(resource stri // "options.requestedPolicyVersion": The policy format version to be // returned. // Acceptable values are 0, 1, and 3. -// If the value is 0, or the field is omitted, policy format version 1 -// will be +// If the value is 0, or the field is omitted, policy format version 1 will +// be // returned. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -8705,33 +6785,29 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) OptionsRequestedP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8740,12 +6816,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Hea } func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8762,16 +6833,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8779,17 +6848,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -8802,41 +6871,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.\nAcceptable values are 0, 1, and 3.\nIf the value is 0, or the field is omitted, policy format version 1 will be\nreturned.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.import": +} type ProjectsLocationsDatasetsDicomStoresImportCall struct { s *Service @@ -8847,18 +6882,21 @@ type ProjectsLocationsDatasetsDicomStoresImportCall struct { header_ http.Header } -// Import: Imports data into the DICOM store by copying it from the -// specified source. -// For errors, the Operation will be populated with error details (in -// the form +// Import: Imports data into the DICOM store by copying it from the specified +// source. +// For errors, the Operation will be populated with error details (in the +// form // of ImportDicomDataErrorDetails in error.details), which will // hold -// finer-grained error information. Errors are also logged to -// Stackdriver -// (see [Viewing -// logs](/healthcare/docs/how-tos/stackdriver-logging)). +// finer-grained error information. Errors are also logged to Stackdriver +// (see Viewing logs (/healthcare/docs/how-tos/stackdriver-logging)). // The metadata field type is // OperationMetadata. +// +// - name: The name of the DICOM store resource into which the data is imported +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresService) Import(name string, importdicomdatarequest *ImportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresImportCall { c := &ProjectsLocationsDatasetsDicomStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -8867,23 +6905,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) Import(name string, import } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresImportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresImportCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8892,18 +6928,12 @@ func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.importdicomdatarequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:import") @@ -8916,16 +6946,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.import" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8933,17 +6961,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8956,38 +6984,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Imports data into the DICOM store by copying it from the specified source.\nFor errors, the Operation will be populated with error details (in the form\nof ImportDicomDataErrorDetails in error.details), which will hold\nfiner-grained error information. Errors are also logged to Stackdriver\n(see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)).\nThe metadata field type is\nOperationMetadata.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:import", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.dicomStores.import", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the DICOM store resource into which the data is imported (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}:import", - // "request": { - // "$ref": "ImportDicomDataRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.list": +} type ProjectsLocationsDatasetsDicomStoresListCall struct { s *Service @@ -8999,68 +6996,63 @@ type ProjectsLocationsDatasetsDicomStoresListCall struct { } // List: Lists the DICOM stores in the given dataset. +// +// - parent: Name of the dataset. func (r *ProjectsLocationsDatasetsDicomStoresService) List(parent string) *ProjectsLocationsDatasetsDicomStoresListCall { c := &ProjectsLocationsDatasetsDicomStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Restricts stores -// returned to those matching a filter. +// Filter sets the optional parameter "filter": Restricts stores returned to +// those matching a filter. // Syntax: -// https://cloud.google.com/appengine/docs/standard/python/search -// /query_strings -// Only filtering on labels is supported, for example -// `labels.key=value`. +// https://cloud.google.com/appengine/docs/standard/python/search/query_strings +// Only filtering on labels is supported, for example `labels.key=value`. func (c *ProjectsLocationsDatasetsDicomStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsDicomStoresListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": Limit on the number -// of DICOM stores to return in a single response. +// PageSize sets the optional parameter "pageSize": Limit on the number of +// DICOM stores to return in a single response. // If zero the default page size of 100 is used. func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDicomStoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from the previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from the previous List request, if any. func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDicomStoresListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9069,12 +7061,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresListCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9091,16 +7078,15 @@ func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.list" call. -// Exactly one of *ListDicomStoresResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListDicomStoresResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresListCall) Do(opts ...googleapi.CallOption) (*ListDicomStoresResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9108,17 +7094,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresListCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListDicomStoresResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9131,48 +7117,6 @@ func (c *ProjectsLocationsDatasetsDicomStoresListCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Lists the DICOM stores in the given dataset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Restricts stores returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\nOnly filtering on labels is supported, for example `labels.key=value`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Limit on the number of DICOM stores to return in a single response.\nIf zero the default page size of 100 is used.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from the previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Name of the dataset.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomStores", - // "response": { - // "$ref": "ListDicomStoresResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -9180,7 +7124,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresListCall) Do(opts ...googleapi.Call // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsDatasetsDicomStoresListCall) Pages(ctx context.Context, f func(*ListDicomStoresResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -9196,8 +7140,6 @@ func (c *ProjectsLocationsDatasetsDicomStoresListCall) Pages(ctx context.Context } } -// method id "healthcare.projects.locations.datasets.dicomStores.patch": - type ProjectsLocationsDatasetsDicomStoresPatchCall struct { s *Service name string @@ -9208,6 +7150,11 @@ type ProjectsLocationsDatasetsDicomStoresPatchCall struct { } // Patch: Updates the specified DICOM store. +// +// - name: Output only. Resource name of the DICOM store, of the +// form +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`. func (r *ProjectsLocationsDatasetsDicomStoresService) Patch(name string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresPatchCall { c := &ProjectsLocationsDatasetsDicomStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -9215,35 +7162,32 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) Patch(name string, dicomst return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. For the `FieldMask` +// UpdateMask sets the optional parameter "updateMask": The update mask applies +// to the resource. For the `FieldMask` // definition, // see -// https://developers.google.com/protocol-buffers/docs/re -// ference/google.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsDicomStoresPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9252,18 +7196,12 @@ func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -9276,16 +7214,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.patch" call. -// Exactly one of *DicomStore or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *DicomStore.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DicomStore.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9293,17 +7229,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DicomStore{ ServerResponse: googleapi.ServerResponse{ @@ -9316,44 +7252,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Updates the specified DICOM store.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}", - // "httpMethod": "PATCH", - // "id": "healthcare.projects.locations.datasets.dicomStores.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Resource name of the DICOM store, of the form\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "DicomStore" - // }, - // "response": { - // "$ref": "DicomStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.setIamPolicy": +} type ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall struct { s *Service @@ -9364,9 +7263,13 @@ type ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any // existing policy. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsDicomStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall { c := &ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -9375,23 +7278,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) SetIamPolicy(resource stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9400,18 +7301,12 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Hea } func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy") @@ -9424,16 +7319,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9441,17 +7334,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -9464,38 +7357,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.dicomStores.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.testIamPermissions": +} type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct { s *Service @@ -9506,8 +7368,8 @@ type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. @@ -9517,6 +7379,10 @@ type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct { // UIs and command-line tools, not for authorization checking. This // operation // may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsDicomStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall { c := &ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -9525,23 +7391,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresService) TestIamPermissions(resourc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9550,18 +7414,12 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() ht } func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions") @@ -9574,16 +7432,15 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9591,17 +7448,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ... if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9614,38 +7471,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.dicomStores.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForInstances": +} type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall struct { s *Service @@ -9657,11 +7483,20 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall struct { header_ http.Header } -// SearchForInstances: SearchForInstances returns a list of matching -// instances. +// SearchForInstances: SearchForInstances returns a list of matching instances. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.6. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. +// +// - dicomWebPath: The path of the SearchForInstancesRequest DICOMweb request +// (e.g., +// `instances` or `series/{series_uid}/instances` +// or +// +// `studies/{study_uid}/instances`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -9670,33 +7505,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForInstances } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9705,12 +7536,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Hea } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9728,50 +7554,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) doR "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForInstances" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "SearchForInstances returns a list of matching instances. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/instances", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForInstances", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the SearchForInstancesRequest DICOMweb request (e.g.,\n`instances` or `series/{series_uid}/instances` or\n`studies/{study_uid}/instances`).", - // "location": "path", - // "pattern": "^instances$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForSeries": +} type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall struct { s *Service @@ -9785,8 +7575,16 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall struct { // SearchForSeries: SearchForSeries returns a list of matching series. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.6. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. +// +// - dicomWebPath: The path of the SearchForSeries DICOMweb request(e.g., +// `series` or +// +// `studies/{study_uid}/series`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -9795,33 +7593,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForSeries(pa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9830,12 +7624,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Header } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9853,50 +7642,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) doRequ "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForSeries" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "SearchForSeries returns a list of matching series. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/series", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForSeries", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the SearchForSeries DICOMweb request(e.g., `series` or\n`studies/{study_uid}/series`).", - // "location": "path", - // "pattern": "^series$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForStudies": +} type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall struct { s *Service @@ -9908,11 +7661,16 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall struct { header_ http.Header } -// SearchForStudies: SearchForStudies returns a list of matching -// studies. +// SearchForStudies: SearchForStudies returns a list of matching studies. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.6. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. +// +// - dicomWebPath: The path of the SearchForStudies DICOMweb request (e.g., +// `studies`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForStudies(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -9921,33 +7679,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForStudies(p } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9956,12 +7710,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Heade } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9979,50 +7728,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) doReq "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForStudies" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "SearchForStudies returns a list of matching studies. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForStudies", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the SearchForStudies DICOMweb request (e.g., `studies`).", - // "location": "path", - // "pattern": "^studies$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.storeInstances": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall struct { s *Service @@ -10034,12 +7747,20 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall struct { header_ http.Header } -// StoreInstances: StoreInstances stores DICOM instances associated with -// study instance unique +// StoreInstances: StoreInstances stores DICOM instances associated with study +// instance unique // identifiers (SUID). // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.5. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5. +// +// - dicomWebPath: The path of the StoreInstances DICOMweb request +// (e.g., +// +// `studies/[{study_id}]`). Note that the `study_uid` is optional. +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10049,23 +7770,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) StoreInstances(par } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10074,12 +7793,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Header( } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil body = c.body_ urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}") @@ -10093,53 +7807,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) doReque "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.storeInstances" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "StoreInstances stores DICOM instances associated with study instance unique\nidentifiers (SUID). See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.storeInstances", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the StoreInstances DICOMweb request (e.g.,\n`studies/[{study_id}]`). Note that the `study_uid` is optional.", - // "location": "path", - // "pattern": "^studies$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "request": { - // "$ref": "HttpBody" - // }, - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.delete": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall struct { s *Service @@ -10150,9 +7825,16 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall struct { header_ http.Header } -// Delete: DeleteStudy deletes all instances within the given study. -// Delete requests +// Delete: DeleteStudy deletes all instances within the given study. Delete +// requests // are equivalent to the GET requests specified in the WADO-RS standard. +// +// - dicomWebPath: The path of the DeleteStudy request (e.g., +// `studies/{study_id}`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10161,23 +7843,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) Delete(pare } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10186,12 +7866,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Header() } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -10206,16 +7881,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) doReques "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10223,17 +7896,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Do(opts if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -10246,43 +7919,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Do(opts return nil, err } return ret, nil - // { - // "description": "DeleteStudy deletes all instances within the given study. Delete requests\nare equivalent to the GET requests specified in the WADO-RS standard.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.delete", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the DeleteStudy request (e.g., `studies/{study_id}`).", - // "location": "path", - // "pattern": "^studies/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.metadata": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall struct { s *Service @@ -10294,12 +7931,20 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall struct { header_ http.Header } -// Metadata: RetrieveStudyMetadata returns instance associated with the -// given study +// Metadata: RetrieveStudyMetadata returns instance associated with the given +// study // presented as metadata with the bulk data removed. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.4. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. +// +// - dicomWebPath: The path of the RetrieveStudyMetadata DICOMweb request +// (e.g., +// +// `studies/{study_id}/metadata`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10308,33 +7953,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) Metadata(pa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10343,12 +7984,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Header } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -10366,50 +8002,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) doRequ "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.metadata" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "RetrieveStudyMetadata returns instance associated with the given study\npresented as metadata with the bulk data removed. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/metadata", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.metadata", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the RetrieveStudyMetadata DICOMweb request (e.g.,\n`studies/{study_id}/metadata`).", - // "location": "path", - // "pattern": "^studies/[^/]+/metadata$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.retrieveStudy": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall struct { s *Service @@ -10421,11 +8021,18 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall struct header_ http.Header } -// RetrieveStudy: RetrieveStudy returns all instances within the given -// study. +// RetrieveStudy: RetrieveStudy returns all instances within the given study. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.4. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. +// +// - dicomWebPath: The path of the RetrieveStudy DICOMweb request +// (e.g., +// +// `studies/{study_id}`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) RetrieveStudy(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10434,33 +8041,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) RetrieveStu } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10469,12 +8072,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) H } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -10492,50 +8090,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) d "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.retrieveStudy" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "RetrieveStudy returns all instances within the given study. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.retrieveStudy", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the RetrieveStudy DICOMweb request (e.g.,\n`studies/{study_id}`).", - // "location": "path", - // "pattern": "^studies/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForInstances": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall struct { s *Service @@ -10547,11 +8109,20 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall s header_ http.Header } -// SearchForInstances: SearchForInstances returns a list of matching -// instances. +// SearchForInstances: SearchForInstances returns a list of matching instances. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.6. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. +// +// - dicomWebPath: The path of the SearchForInstancesRequest DICOMweb request +// (e.g., +// `instances` or `series/{series_uid}/instances` +// or +// +// `studies/{study_uid}/instances`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10560,33 +8131,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SearchForIn } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10595,12 +8162,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCa } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -10618,50 +8180,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCa "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForInstances" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "SearchForInstances returns a list of matching instances. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/instances", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForInstances", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the SearchForInstancesRequest DICOMweb request (e.g.,\n`instances` or `series/{series_uid}/instances` or\n`studies/{study_uid}/instances`).", - // "location": "path", - // "pattern": "^studies/[^/]+/instances$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForSeries": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall struct { s *Service @@ -10675,8 +8201,16 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall stru // SearchForSeries: SearchForSeries returns a list of matching series. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.6. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. +// +// - dicomWebPath: The path of the SearchForSeries DICOMweb request(e.g., +// `series` or +// +// `studies/{study_uid}/series`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10685,33 +8219,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SearchForSe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10720,12 +8250,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -10743,50 +8268,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForSeries" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "SearchForSeries returns a list of matching series. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForSeries", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the SearchForSeries DICOMweb request(e.g., `series` or\n`studies/{study_uid}/series`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.storeInstances": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall struct { s *Service @@ -10798,12 +8287,20 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall struc header_ http.Header } -// StoreInstances: StoreInstances stores DICOM instances associated with -// study instance unique +// StoreInstances: StoreInstances stores DICOM instances associated with study +// instance unique // identifiers (SUID). // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.5. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5. +// +// - dicomWebPath: The path of the StoreInstances DICOMweb request +// (e.g., +// +// `studies/[{study_id}]`). Note that the `study_uid` is optional. +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10813,23 +8310,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) StoreInstan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10838,12 +8333,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil body = c.body_ urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}") @@ -10857,53 +8347,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.storeInstances" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "StoreInstances stores DICOM instances associated with study instance unique\nidentifiers (SUID). See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.storeInstances", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the StoreInstances DICOMweb request (e.g.,\n`studies/[{study_id}]`). Note that the `study_uid` is optional.", - // "location": "path", - // "pattern": "^studies/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "request": { - // "$ref": "HttpBody" - // }, - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.delete": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall struct { s *Service @@ -10919,6 +8370,15 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall struct // Delete requests are equivalent to the GET requests specified in the // WADO-RS // standard. +// +// - dicomWebPath: The path of the DeleteSeries request +// (e.g., +// +// `studies/{study_id}/series/{series_id}`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10927,23 +8387,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Delet } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10952,12 +8410,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) He } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -10972,16 +8425,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) do "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10989,17 +8440,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Do if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -11012,43 +8463,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Do return nil, err } return ret, nil - // { - // "description": "DeleteSeries deletes all instances within the given study and series.\nDelete requests are equivalent to the GET requests specified in the WADO-RS\nstandard.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.delete", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the DeleteSeries request (e.g.,\n`studies/{study_id}/series/{series_id}`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.metadata": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall struct { s *Service @@ -11060,12 +8475,20 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall struc header_ http.Header } -// Metadata: RetrieveSeriesMetadata returns instance associated with the -// given study and +// Metadata: RetrieveSeriesMetadata returns instance associated with the given +// study and // series, presented as metadata with the bulk data removed. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.4. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. +// +// - dicomWebPath: The path of the RetrieveSeriesMetadata DICOMweb request +// (e.g., +// +// `studies/{study_id}/series/{series_id}/metadata`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -11074,33 +8497,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Metad } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11109,12 +8528,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11132,50 +8546,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.metadata" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "RetrieveSeriesMetadata returns instance associated with the given study and\nseries, presented as metadata with the bulk data removed. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/metadata", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.metadata", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the RetrieveSeriesMetadata DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/metadata`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series/[^/]+/metadata$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.retrieveSeries": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall struct { s *Service @@ -11187,11 +8565,19 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall header_ http.Header } -// RetrieveSeries: RetrieveSeries returns all instances within the given -// study and series. +// RetrieveSeries: RetrieveSeries returns all instances within the given study +// and series. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.4. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. +// +// - dicomWebPath: The path of the RetrieveSeries DICOMweb request +// (e.g., +// +// `studies/{study_id}/series/{series_id}`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) RetrieveSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -11200,33 +8586,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Retri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11235,12 +8617,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeries } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11258,50 +8635,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeries "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.retrieveSeries" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "RetrieveSeries returns all instances within the given study and series. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.retrieveSeries", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the RetrieveSeries DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.searchForInstances": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall struct { s *Service @@ -11313,11 +8654,20 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstances header_ http.Header } -// SearchForInstances: SearchForInstances returns a list of matching -// instances. +// SearchForInstances: SearchForInstances returns a list of matching instances. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.6. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. +// +// - dicomWebPath: The path of the SearchForInstancesRequest DICOMweb request +// (e.g., +// `instances` or `series/{series_uid}/instances` +// or +// +// `studies/{study_uid}/instances`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -11326,33 +8676,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Searc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11361,12 +8707,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInsta } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11384,50 +8725,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInsta "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.searchForInstances" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "SearchForInstances returns a list of matching instances. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.searchForInstances", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the SearchForInstancesRequest DICOMweb request (e.g.,\n`instances` or `series/{series_uid}/instances` or\n`studies/{study_uid}/instances`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series/[^/]+/instances$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.delete": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall struct { s *Service @@ -11438,11 +8743,20 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCal header_ http.Header } -// Delete: DeleteInstance deletes an instance associated with the given -// study, series, +// Delete: DeleteInstance deletes an instance associated with the given study, +// series, // and SOP Instance UID. Delete requests are equivalent to the GET // requests // specified in the WADO-RS standard. +// +// - dicomWebPath: The path of the DeleteInstance request +// (e.g., +// +// `studies/{study_id}/series/{series_id}/instances/{instance_id}`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -11451,23 +8765,21 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesServi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11476,12 +8788,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDelet } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -11496,16 +8803,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDelet "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11513,17 +8818,17 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDelet if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -11536,43 +8841,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDelet return nil, err } return ret, nil - // { - // "description": "DeleteInstance deletes an instance associated with the given study, series,\nand SOP Instance UID. Delete requests are equivalent to the GET requests\nspecified in the WADO-RS standard.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.delete", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the DeleteInstance request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.metadata": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall struct { s *Service @@ -11584,14 +8853,21 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataC header_ http.Header } -// Metadata: RetrieveInstanceMetadata returns instance associated with -// the given study, +// Metadata: RetrieveInstanceMetadata returns instance associated with the +// given study, // series, and SOP Instance UID presented as metadata with the bulk // data // removed. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.4. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. +// +// - dicomWebPath: The path of the RetrieveInstanceMetadata DICOMweb request +// (e.g., +// `studies/{study_id}/series/{series_id}/instances/{instance_id}/metadata`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -11600,33 +8876,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesServi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11635,12 +8907,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetad } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11658,50 +8925,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetad "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.metadata" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "RetrieveInstanceMetadata returns instance associated with the given study,\nseries, and SOP Instance UID presented as metadata with the bulk data\nremoved. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/metadata", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.metadata", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the RetrieveInstanceMetadata DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/metadata`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/metadata$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.rendered": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall struct { s *Service @@ -11713,12 +8944,19 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedC header_ http.Header } -// Rendered: RetrieveRenderedInstance returns instance associated with -// the given study, +// Rendered: RetrieveRenderedInstance returns instance associated with the +// given study, // series, and SOP Instance UID in an acceptable Rendered Media Type. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.4. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. +// +// - dicomWebPath: The path of the RetrieveRenderedInstance DICOMweb request +// (e.g., +// `studies/{study_id}/series/{series_id}/instances/{instance_id}/rendered`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Rendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -11727,33 +8965,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesServi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11762,12 +8996,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRende } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11785,50 +9014,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRende "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.rendered" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "RetrieveRenderedInstance returns instance associated with the given study,\nseries, and SOP Instance UID in an acceptable Rendered Media Type. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/rendered", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.rendered", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the RetrieveRenderedInstance DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/rendered`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/rendered$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.retrieveInstance": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall struct { s *Service @@ -11840,12 +9033,20 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveI header_ http.Header } -// RetrieveInstance: RetrieveInstance returns instance associated with -// the given study, series, +// RetrieveInstance: RetrieveInstance returns instance associated with the +// given study, series, // and SOP Instance UID. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.4. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. +// +// - dicomWebPath: The path of the RetrieveInstance DICOMweb request +// (e.g., +// +// `studies/{study_id}/series/{series_id}/instances/{instance_id}`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) RetrieveInstance(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -11854,33 +9055,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesServi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11889,12 +9086,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetri } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11912,50 +9104,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetri "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.retrieveInstance" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "RetrieveInstance returns instance associated with the given study, series,\nand SOP Instance UID. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.retrieveInstance", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the RetrieveInstance DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.rendered": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall struct { s *Service @@ -11967,14 +9123,22 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRen header_ http.Header } -// Rendered: RetrieveRenderedFrames returns instances associated with -// the given study, +// Rendered: RetrieveRenderedFrames returns instances associated with the given +// study, // series, SOP Instance UID and frame numbers in an acceptable Rendered // Media // Type. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.4. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. +// +// - dicomWebPath: The path of the RetrieveRenderedFrames DICOMweb request +// (e.g., +// `studies/{study_id}/series/{series_id}/instances/{instance_id}/frames/{fram +// e_list}/rendered`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService) Rendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -11983,33 +9147,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFrame } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12018,12 +9178,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFrame } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12041,50 +9196,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFrame "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.rendered" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "RetrieveRenderedFrames returns instances associated with the given study,\nseries, SOP Instance UID and frame numbers in an acceptable Rendered Media\nType. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/frames/{framesId}/rendered", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.rendered", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the RetrieveRenderedFrames DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/frames/{frame_list}/rendered`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/frames/[^/]+/rendered$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.retrieveFrames": +} type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall struct { s *Service @@ -12096,12 +9215,20 @@ type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRet header_ http.Header } -// RetrieveFrames: RetrieveFrames returns instances associated with the -// given study, series, +// RetrieveFrames: RetrieveFrames returns instances associated with the given +// study, series, // SOP Instance UID and frame numbers. // See -// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm -// l#sect_10.4. +// http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. +// +// - dicomWebPath: The path of the RetrieveFrames DICOMweb request +// (e.g., +// `studies/{study_id}/series/{series_id}/instances/{instance_id}/frames/{fram +// e_list}`). +// - parent: The name of the DICOM store that is being accessed +// (e.g., +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS +// tores/{dicom_store_id}`). func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService) RetrieveFrames(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall { c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -12110,33 +9237,29 @@ func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFrame } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12145,12 +9268,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFrame } func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12168,50 +9286,14 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFrame "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.retrieveFrames" call. func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "RetrieveFrames returns instances associated with the given study, series,\nSOP Instance UID and frame numbers. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/frames/{framesId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.retrieveFrames", - // "parameterOrder": [ - // "parent", - // "dicomWebPath" - // ], - // "parameters": { - // "dicomWebPath": { - // "description": "The path of the RetrieveFrames DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/frames/{frame_list}`).", - // "location": "path", - // "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/frames/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.capabilities": +} type ProjectsLocationsDatasetsFhirStoresCapabilitiesCall struct { s *Service @@ -12222,31 +9304,28 @@ type ProjectsLocationsDatasetsFhirStoresCapabilitiesCall struct { header_ http.Header } -// Capabilities: Gets the FHIR capability +// Capabilities: Gets the FHIR capability statement +// (STU3 +// (http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html)), +// or the conformance // statement -// ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabil -// itystatement.html)), -// or the -// [conformance -// statement](http://hl7.org/implement/standards/fhir/DSTU2/ -// conformance.html) +// (http://hl7.org/implement/standards/fhir/DSTU2/conformance.html) // in the DSTU2 case for the store, which contains a description // of // functionality supported by the server. // -// Implements the FHIR standard capabilities +// Implements the FHIR standard capabilities interaction +// (STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)), +// or the conformance // interaction -// ([STU3](http://hl7.org/implement/standards/fhir/STU3/http. -// html#capabilities)), -// or the -// [conformance -// interaction](http://hl7.org/implement/standards/fhir/DSTU -// 2/http.html#conformance) +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance) // in the DSTU2 case. // -// On success, the response body will contain a JSON-encoded -// representation +// On success, the response body will contain a JSON-encoded representation // of a `CapabilityStatement` resource. +// +// - name: Name of the FHIR store to retrieve the capabilities for. func (r *ProjectsLocationsDatasetsFhirStoresService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall { c := &ProjectsLocationsDatasetsFhirStoresCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -12254,33 +9333,29 @@ func (r *ProjectsLocationsDatasetsFhirStoresService) Capabilities(name string) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12289,12 +9364,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Header() http.Head } func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12311,42 +9381,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.capabilities" call. func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Gets the FHIR capability statement\n([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html)),\nor the [conformance\nstatement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html)\nin the DSTU2 case for the store, which contains a description of\nfunctionality supported by the server.\n\nImplements the FHIR standard capabilities interaction\n([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)),\nor the [conformance\ninteraction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance)\nin the DSTU2 case.\n\nOn success, the response body will contain a JSON-encoded representation\nof a `CapabilityStatement` resource.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/metadata", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.fhirStores.capabilities", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the FHIR store to retrieve the capabilities for.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/metadata", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.create": +} type ProjectsLocationsDatasetsFhirStoresCreateCall struct { s *Service @@ -12358,6 +9400,8 @@ type ProjectsLocationsDatasetsFhirStoresCreateCall struct { } // Create: Creates a new FHIR store within the parent dataset. +// +// - parent: The name of the dataset this FHIR store belongs to. func (r *ProjectsLocationsDatasetsFhirStoresService) Create(parent string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresCreateCall { c := &ProjectsLocationsDatasetsFhirStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -12365,33 +9409,30 @@ func (r *ProjectsLocationsDatasetsFhirStoresService) Create(parent string, fhirs return c } -// FhirStoreId sets the optional parameter "fhirStoreId": The ID of the -// FHIR store that is being created. -// The string must match the following regex: -// `[\p{L}\p{N}_\-\.]{1,256}`. +// FhirStoreId sets the optional parameter "fhirStoreId": The ID of the FHIR +// store that is being created. +// The string must match the following regex: `[\p{L}\p{N}_\-\.]{1,256}`. func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) FhirStoreId(fhirStoreId string) *ProjectsLocationsDatasetsFhirStoresCreateCall { c.urlParams_.Set("fhirStoreId", fhirStoreId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12400,18 +9441,12 @@ func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhirStores") @@ -12424,16 +9459,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.create" call. -// Exactly one of *FhirStore or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *FhirStore.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FhirStore.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12441,17 +9474,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FhirStore{ ServerResponse: googleapi.ServerResponse{ @@ -12464,43 +9497,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Creates a new FHIR store within the parent dataset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.fhirStores.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "fhirStoreId": { - // "description": "The ID of the FHIR store that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The name of the dataset this FHIR store belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/fhirStores", - // "request": { - // "$ref": "FhirStore" - // }, - // "response": { - // "$ref": "FhirStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.delete": +} type ProjectsLocationsDatasetsFhirStoresDeleteCall struct { s *Service @@ -12510,8 +9507,10 @@ type ProjectsLocationsDatasetsFhirStoresDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified FHIR store and removes all resources -// within it. +// Delete: Deletes the specified FHIR store and removes all resources within +// it. +// +// - name: The resource name of the FHIR store to delete. func (r *ProjectsLocationsDatasetsFhirStoresService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresDeleteCall { c := &ProjectsLocationsDatasetsFhirStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -12519,23 +9518,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresService) Delete(name string) *Projec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12544,12 +9541,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -12563,16 +9555,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12580,17 +9570,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -12603,35 +9593,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Deletes the specified FHIR store and removes all resources within it.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.fhirStores.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the FHIR store to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.export": +} type ProjectsLocationsDatasetsFhirStoresExportCall struct { s *Service @@ -12652,16 +9614,21 @@ type ProjectsLocationsDatasetsFhirStoresExportCall struct { // // Immediate fatal errors appear in the // error field, errors are also logged -// to Stackdriver (see -// [Viewing -// logs](/healthcare/docs/how-tos/stackdriver-logging)). -// Otherwi -// se, when the operation finishes, a detailed response of +// to Stackdriver (see Viewing +// logs (/healthcare/docs/how-tos/stackdriver-logging)). +// Otherwise, when the operation finishes, a detailed response of // type // ExportResourcesResponse is returned in the // response field. // The metadata field type for this // operation is OperationMetadata. +// +// - name: The name of the FHIR store to export resource from. The name should +// be in +// the format +// of +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt +// ores/{fhir_store_id}`. func (r *ProjectsLocationsDatasetsFhirStoresService) Export(name string, exportresourcesrequest *ExportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresExportCall { c := &ProjectsLocationsDatasetsFhirStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -12670,23 +9637,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresService) Export(name string, exportr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresExportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresExportCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12695,18 +9660,12 @@ func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportresourcesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:export") @@ -12719,16 +9678,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.export" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12736,17 +9693,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -12759,38 +9716,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Export resources from the FHIR store to the specified destination.\n\nThis method returns an Operation that can\nbe used to track the status of the export by calling\nGetOperation.\n\nImmediate fatal errors appear in the\nerror field, errors are also logged\nto Stackdriver (see [Viewing\nlogs](/healthcare/docs/how-tos/stackdriver-logging)).\nOtherwise, when the operation finishes, a detailed response of type\nExportResourcesResponse is returned in the\nresponse field.\nThe metadata field type for this\noperation is OperationMetadata.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:export", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.fhirStores.export", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the FHIR store to export resource from. The name should be in\nthe format of\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}:export", - // "request": { - // "$ref": "ExportResourcesRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.get": +} type ProjectsLocationsDatasetsFhirStoresGetCall struct { s *Service @@ -12802,6 +9728,8 @@ type ProjectsLocationsDatasetsFhirStoresGetCall struct { } // Get: Gets the configuration of the specified FHIR store. +// +// - name: The resource name of the FHIR store to get. func (r *ProjectsLocationsDatasetsFhirStoresService) Get(name string) *ProjectsLocationsDatasetsFhirStoresGetCall { c := &ProjectsLocationsDatasetsFhirStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -12809,33 +9737,29 @@ func (r *ProjectsLocationsDatasetsFhirStoresService) Get(name string) *ProjectsL } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsFhirStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12844,12 +9768,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12866,16 +9785,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.get" call. -// Exactly one of *FhirStore or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *FhirStore.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FhirStore.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12883,17 +9800,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FhirStore{ ServerResponse: googleapi.ServerResponse{ @@ -12906,35 +9823,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Gets the configuration of the specified FHIR store.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.fhirStores.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the FHIR store to get.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "FhirStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.getIamPolicy": +} type ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall struct { s *Service @@ -12949,6 +9838,10 @@ type ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall struct { // Returns an empty policy if the resource exists and does not have a // policy // set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsFhirStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall { c := &ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -12959,8 +9852,8 @@ func (r *ProjectsLocationsDatasetsFhirStoresService) GetIamPolicy(resource strin // "options.requestedPolicyVersion": The policy format version to be // returned. // Acceptable values are 0, 1, and 3. -// If the value is 0, or the field is omitted, policy format version 1 -// will be +// If the value is 0, or the field is omitted, policy format version 1 will +// be // returned. func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -12968,33 +9861,29 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) OptionsRequestedPo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13003,12 +9892,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Header() http.Head } func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13025,16 +9909,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13042,17 +9924,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Do(opts ...googlea if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -13065,41 +9947,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.fhirStores.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.\nAcceptable values are 0, 1, and 3.\nIf the value is 0, or the field is omitted, policy format version 1 will be\nreturned.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.import": +} type ProjectsLocationsDatasetsFhirStoresImportCall struct { s *Service @@ -13114,18 +9962,16 @@ type ProjectsLocationsDatasetsFhirStoresImportCall struct { // specified // sources. This method is optimized to load large quantities of data // using -// import semantics that ignore some FHIR store configuration options -// and are +// import semantics that ignore some FHIR store configuration options and +// are // not suitable for all use cases. It is primarily intended to load data // into -// an empty FHIR store that is not being used by other clients. In -// cases -// where this method is not appropriate, consider using ExecuteBundle -// to +// an empty FHIR store that is not being used by other clients. In cases +// where this method is not appropriate, consider using ExecuteBundle to // load data. // -// Every resource in the input must contain a client-supplied ID, and -// will be +// Every resource in the input must contain a client-supplied ID, and will +// be // stored using that ID regardless of the // enable_update_create setting on the FHIR // store. @@ -13136,40 +9982,32 @@ type ProjectsLocationsDatasetsFhirStoresImportCall struct { // disable_referential_integrity // setting on the FHIR store. This allows the import of resources // with -// arbitrary interdependencies without considering grouping or ordering, -// but -// if the input data contains invalid references or if some resources -// fail to +// arbitrary interdependencies without considering grouping or ordering, but +// if the input data contains invalid references or if some resources fail +// to // be imported, the FHIR store might be left in a state that // violates // referential integrity. // -// If a resource with the specified ID already exists, the most -// recent +// If a resource with the specified ID already exists, the most recent // version of the resource is overwritten without creating a new // historical // version, regardless of the // disable_resource_versioning -// setting on the FHIR store. If transient failures occur during the -// import, -// it is possible that successfully imported resources will be -// overwritten +// setting on the FHIR store. If transient failures occur during the import, +// it is possible that successfully imported resources will be overwritten // more than once. // // The import operation is idempotent unless the input data contains // multiple -// valid resources with the same ID but different contents. In that -// case, -// after the import completes, the store will contain exactly one -// resource +// valid resources with the same ID but different contents. In that case, +// after the import completes, the store will contain exactly one resource // with that ID but there is no ordering guarantee on which version of // the -// contents it will have. The operation result counters do not -// count -// duplicate IDs as an error and will count one success for each -// resource in -// the input, which might result in a success count larger than the -// number +// contents it will have. The operation result counters do not count +// duplicate IDs as an error and will count one success for each resource +// in +// the input, which might result in a success count larger than the number // of resources in the FHIR store. This often occurs when importing // data // organized in bundles produced by Patient-everything @@ -13183,42 +10021,33 @@ type ProjectsLocationsDatasetsFhirStoresImportCall struct { // // The location and format of the input data is specified by the // parameters -// below. Note that if no format is specified, this method assumes -// the +// below. Note that if no format is specified, this method assumes the // `BUNDLE` format. When using the `BUNDLE` format this method ignores // the -// `Bundle.type` field, except for the special case of `history`, and -// does +// `Bundle.type` field, except for the special case of `history`, and does // not apply any of the bundle processing semantics for batch or // transaction -// bundles. Unlike in ExecuteBundle, transaction bundles are not -// executed +// bundles. Unlike in ExecuteBundle, transaction bundles are not executed // as a single transaction and bundle-internal references are not // rewritten. -// The bundle is treated as a collection of resources to be written -// as -// provided in `Bundle.entry.resource`, ignoring `Bundle.entry.request`. -// As -// an example, this allows the import of `searchset` bundles produced by -// a +// The bundle is treated as a collection of resources to be written as +// provided in `Bundle.entry.resource`, ignoring `Bundle.entry.request`. As +// an example, this allows the import of `searchset` bundles produced by a // FHIR search or // Patient-everything operation. // // If history imports are enabled by setting // enable_history_import in the FHIR // store's configuration, this method can import historical versions -// of a resource by supplying a bundle of type `history` and using -// the +// of a resource by supplying a bundle of type `history` and using the // `BUNDLE` format. The historical versions in the bundle must // have // `lastUpdated` timestamps, and the resulting resource history on the // server -// will appear as if the versions had been created at those timestamps. -// If a -// current or historical version with the supplied resource ID -// already -// exists, the bundle is rejected to avoid creating an inconsistent -// sequence +// will appear as if the versions had been created at those timestamps. If +// a +// current or historical version with the supplied resource ID already +// exists, the bundle is rejected to avoid creating an inconsistent sequence // of resource versions. // // This method returns an Operation that can @@ -13228,15 +10057,20 @@ type ProjectsLocationsDatasetsFhirStoresImportCall struct { // // Immediate fatal errors appear in the // error field, errors are also logged -// to Stackdriver (see -// [Viewing -// logs](/healthcare/docs/how-tos/stackdriver-logging)). Otherwise, when +// to Stackdriver (see Viewing +// logs (/healthcare/docs/how-tos/stackdriver-logging)). Otherwise, when // the -// operation finishes, a detailed response of type -// ImportResourcesResponse +// operation finishes, a detailed response of type ImportResourcesResponse // is returned in the response field. // The metadata field type for this // operation is OperationMetadata. +// +// - name: The name of the FHIR store to import FHIR resources to. The name +// should be +// in the format +// of +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt +// ores/{fhir_store_id}`. func (r *ProjectsLocationsDatasetsFhirStoresService) Import(name string, importresourcesrequest *ImportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresImportCall { c := &ProjectsLocationsDatasetsFhirStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -13245,23 +10079,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresService) Import(name string, importr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresImportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresImportCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13270,18 +10102,12 @@ func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.importresourcesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:import") @@ -13294,16 +10120,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.import" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13311,17 +10135,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -13334,38 +10158,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Import resources to the FHIR store by loading data from the specified\nsources. This method is optimized to load large quantities of data using\nimport semantics that ignore some FHIR store configuration options and are\nnot suitable for all use cases. It is primarily intended to load data into\nan empty FHIR store that is not being used by other clients. In cases\nwhere this method is not appropriate, consider using ExecuteBundle to\nload data.\n\nEvery resource in the input must contain a client-supplied ID, and will be\nstored using that ID regardless of the\nenable_update_create setting on the FHIR\nstore.\n\nThe import process does not enforce referential integrity, regardless of\nthe\ndisable_referential_integrity\nsetting on the FHIR store. This allows the import of resources with\narbitrary interdependencies without considering grouping or ordering, but\nif the input data contains invalid references or if some resources fail to\nbe imported, the FHIR store might be left in a state that violates\nreferential integrity.\n\nIf a resource with the specified ID already exists, the most recent\nversion of the resource is overwritten without creating a new historical\nversion, regardless of the\ndisable_resource_versioning\nsetting on the FHIR store. If transient failures occur during the import,\nit is possible that successfully imported resources will be overwritten\nmore than once.\n\nThe import operation is idempotent unless the input data contains multiple\nvalid resources with the same ID but different contents. In that case,\nafter the import completes, the store will contain exactly one resource\nwith that ID but there is no ordering guarantee on which version of the\ncontents it will have. The operation result counters do not count\nduplicate IDs as an error and will count one success for each resource in\nthe input, which might result in a success count larger than the number\nof resources in the FHIR store. This often occurs when importing data\norganized in bundles produced by Patient-everything\nwhere each bundle contains its own copy of a resource such as Practitioner\nthat might be referred to by many patients.\n\nIf some resources fail to import, for example due to parsing errors,\nsuccessfully imported resources are not rolled back.\n\nThe location and format of the input data is specified by the parameters\nbelow. Note that if no format is specified, this method assumes the\n`BUNDLE` format. When using the `BUNDLE` format this method ignores the\n`Bundle.type` field, except for the special case of `history`, and does\nnot apply any of the bundle processing semantics for batch or transaction\nbundles. Unlike in ExecuteBundle, transaction bundles are not executed\nas a single transaction and bundle-internal references are not rewritten.\nThe bundle is treated as a collection of resources to be written as\nprovided in `Bundle.entry.resource`, ignoring `Bundle.entry.request`. As\nan example, this allows the import of `searchset` bundles produced by a\nFHIR search or\nPatient-everything operation.\n\nIf history imports are enabled by setting\nenable_history_import in the FHIR\nstore's configuration, this method can import historical versions\nof a resource by supplying a bundle of type `history` and using the\n`BUNDLE` format. The historical versions in the bundle must have\n`lastUpdated` timestamps, and the resulting resource history on the server\nwill appear as if the versions had been created at those timestamps. If a\ncurrent or historical version with the supplied resource ID already\nexists, the bundle is rejected to avoid creating an inconsistent sequence\nof resource versions.\n\nThis method returns an Operation that can\nbe used to track the status of the import by calling\nGetOperation.\n\nImmediate fatal errors appear in the\nerror field, errors are also logged\nto Stackdriver (see [Viewing\nlogs](/healthcare/docs/how-tos/stackdriver-logging)). Otherwise, when the\noperation finishes, a detailed response of type ImportResourcesResponse\nis returned in the response field.\nThe metadata field type for this\noperation is OperationMetadata.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:import", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.fhirStores.import", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the FHIR store to import FHIR resources to. The name should be\nin the format of\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}:import", - // "request": { - // "$ref": "ImportResourcesRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.list": +} type ProjectsLocationsDatasetsFhirStoresListCall struct { s *Service @@ -13377,68 +10170,63 @@ type ProjectsLocationsDatasetsFhirStoresListCall struct { } // List: Lists the FHIR stores in the given dataset. +// +// - parent: Name of the dataset. func (r *ProjectsLocationsDatasetsFhirStoresService) List(parent string) *ProjectsLocationsDatasetsFhirStoresListCall { c := &ProjectsLocationsDatasetsFhirStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Restricts stores -// returned to those matching a filter. +// Filter sets the optional parameter "filter": Restricts stores returned to +// those matching a filter. // Syntax: -// https://cloud.google.com/appengine/docs/standard/python/search -// /query_strings -// Only filtering on labels is supported, for example -// `labels.key=value`. +// https://cloud.google.com/appengine/docs/standard/python/search/query_strings +// Only filtering on labels is supported, for example `labels.key=value`. func (c *ProjectsLocationsDatasetsFhirStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsFhirStoresListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": Limit on the number -// of FHIR stores to return in a single response. If zero +// PageSize sets the optional parameter "pageSize": Limit on the number of FHIR +// stores to return in a single response. If zero // the default page size of 100 is used. func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsFhirStoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from the previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from the previous List request, if any. func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsFhirStoresListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsFhirStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13447,12 +10235,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresListCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13469,16 +10252,15 @@ func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.list" call. -// Exactly one of *ListFhirStoresResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListFhirStoresResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListFhirStoresResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsDatasetsFhirStoresListCall) Do(opts ...googleapi.CallOption) (*ListFhirStoresResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13486,17 +10268,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresListCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListFhirStoresResponse{ ServerResponse: googleapi.ServerResponse{ @@ -13509,48 +10291,6 @@ func (c *ProjectsLocationsDatasetsFhirStoresListCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Lists the FHIR stores in the given dataset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.fhirStores.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Restricts stores returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\nOnly filtering on labels is supported, for example `labels.key=value`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Limit on the number of FHIR stores to return in a single response. If zero\nthe default page size of 100 is used.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from the previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Name of the dataset.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/fhirStores", - // "response": { - // "$ref": "ListFhirStoresResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -13558,7 +10298,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresListCall) Do(opts ...googleapi.CallO // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsDatasetsFhirStoresListCall) Pages(ctx context.Context, f func(*ListFhirStoresResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -13574,8 +10314,6 @@ func (c *ProjectsLocationsDatasetsFhirStoresListCall) Pages(ctx context.Context, } } -// method id "healthcare.projects.locations.datasets.fhirStores.patch": - type ProjectsLocationsDatasetsFhirStoresPatchCall struct { s *Service name string @@ -13586,6 +10324,10 @@ type ProjectsLocationsDatasetsFhirStoresPatchCall struct { } // Patch: Updates the configuration of the specified FHIR store. +// +// - name: Output only. Resource name of the FHIR store, of the +// form +// `projects/{project_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`. func (r *ProjectsLocationsDatasetsFhirStoresService) Patch(name string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresPatchCall { c := &ProjectsLocationsDatasetsFhirStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -13593,35 +10335,32 @@ func (r *ProjectsLocationsDatasetsFhirStoresService) Patch(name string, fhirstor return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. For the `FieldMask` +// UpdateMask sets the optional parameter "updateMask": The update mask applies +// to the resource. For the `FieldMask` // definition, // see -// https://developers.google.com/protocol-buffers/docs/re -// ference/google.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsFhirStoresPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13630,18 +10369,12 @@ func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -13654,16 +10387,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.patch" call. -// Exactly one of *FhirStore or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *FhirStore.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FhirStore.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13671,17 +10402,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FhirStore{ ServerResponse: googleapi.ServerResponse{ @@ -13694,44 +10425,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Updates the configuration of the specified FHIR store.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}", - // "httpMethod": "PATCH", - // "id": "healthcare.projects.locations.datasets.fhirStores.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Resource name of the FHIR store, of the form\n`projects/{project_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "FhirStore" - // }, - // "response": { - // "$ref": "FhirStore" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.setIamPolicy": +} type ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall struct { s *Service @@ -13742,9 +10436,13 @@ type ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any // existing policy. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsFhirStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall { c := &ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -13753,23 +10451,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresService) SetIamPolicy(resource strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13778,18 +10474,12 @@ func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Header() http.Head } func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy") @@ -13802,16 +10492,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13819,17 +10507,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Do(opts ...googlea if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -13842,38 +10530,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.fhirStores.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.testIamPermissions": +} type ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall struct { s *Service @@ -13884,8 +10541,8 @@ type ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. @@ -13895,6 +10552,10 @@ type ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall struct { // UIs and command-line tools, not for authorization checking. This // operation // may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsFhirStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall { c := &ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -13903,23 +10564,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresService) TestIamPermissions(resource } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13928,18 +10587,12 @@ func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Header() htt } func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions") @@ -13952,16 +10605,15 @@ func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13969,17 +10621,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Do(opts ...g if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -13992,38 +10644,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.fhirStores.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn": +} type ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall struct { s *Service @@ -14034,30 +10655,27 @@ type ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall struct { header_ http.Header } -// ObservationLastn: Retrieves the N most recent `Observation` resources -// for a subject matching +// ObservationLastn: Retrieves the N most recent `Observation` resources for a +// subject matching // search criteria specified as query parameters, grouped // by // `Observation.code`, sorted from most recent to oldest. // -// Implements the FHIR extended operation -// Observation-lastn -// ([STU3](http://hl7.org/implement/standards/fhir/STU3 -// /observation-operations.html#lastn)). +// Implements the FHIR extended operation Observation-lastn +// (STU3 +// (http://hl7.org/implement/standards/fhir/STU3/observation-operations.html#lastn)). // // DSTU2 doesn't define the Observation-lastn method, but the server // supports // it the same way it supports STU3. // -// Search terms are provided as query parameters following the same -// pattern as +// Search terms are provided as query parameters following the same pattern +// as // the search method. This operation accepts an additional -// query parameter `max`, which specifies N, the maximum number -// of +// query parameter `max`, which specifies N, the maximum number of // Observations to return from each group, with a default of 1. // -// On success, the response body will contain a JSON-encoded -// representation +// On success, the response body will contain a JSON-encoded representation // of a `Bundle` resource of type `searchset`, containing the results of // the // operation. @@ -14068,6 +10686,8 @@ type ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall struct { // request cannot be mapped to a valid API method on a FHIR store, a // generic // GCP error might be returned instead. +// +// - parent: Name of the FHIR store to retrieve resources from. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ObservationLastn(parent string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall { c := &ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -14075,33 +10695,29 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ObservationLastn(parent } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14110,12 +10726,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Header() h } func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14132,42 +10743,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Retrieves the N most recent `Observation` resources for a subject matching\nsearch criteria specified as query parameters, grouped by\n`Observation.code`, sorted from most recent to oldest.\n\nImplements the FHIR extended operation Observation-lastn\n([STU3](http://hl7.org/implement/standards/fhir/STU3/observation-operations.html#lastn)).\n\nDSTU2 doesn't define the Observation-lastn method, but the server supports\nit the same way it supports STU3.\n\nSearch terms are provided as query parameters following the same pattern as\nthe search method. This operation accepts an additional\nquery parameter `max`, which specifies N, the maximum number of\nObservations to return from each group, with a default of 1.\n\nOn success, the response body will contain a JSON-encoded representation\nof a `Bundle` resource of type `searchset`, containing the results of the\noperation.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Observation/$lastn", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Name of the FHIR store to retrieve resources from.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/fhir/Observation/$lastn", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything": +} type ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall struct { s *Service @@ -14178,19 +10761,17 @@ type ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall struct { header_ http.Header } -// PatientEverything: Retrieves all the resources directly referenced by -// a patient, as well as +// PatientEverything: Retrieves all the resources directly referenced by a +// patient, as well as // all of the resources in the patient compartment. // -// Implements the FHIR extended operation -// Patient-everything -// ([DSTU2](http://hl7.org/implement/standards/fhir/DS -// TU2/patient-operations.html#everything), -// [STU3](http://hl7.org/impleme -// nt/standards/fhir/STU3/patient-operations.html#everything)). +// Implements the FHIR extended operation Patient-everything +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/patient-operations.html#everything), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/patient-operations.html#everything)). // -// On success, the response body will contain a JSON-encoded -// representation +// On success, the response body will contain a JSON-encoded representation // of a `Bundle` resource of type `searchset`, containing the results of // the // operation. @@ -14201,35 +10782,35 @@ type ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall struct { // request cannot be mapped to a valid API method on a FHIR store, a // generic // GCP error might be returned instead. +// +// - name: Name of the `Patient` resource for which the information is +// required. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) PatientEverything(name string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall { c := &ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Count sets the optional parameter "_count": Maximum number of -// resources in a page. Defaults to 100. +// Count sets the optional parameter "_count": Maximum number of resources in a +// page. Defaults to 100. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall { c.urlParams_.Set("_count", fmt.Sprint(Count)) return c } -// End sets the optional parameter "end": The response includes records -// prior to the end date. If no end date is +// End sets the optional parameter "end": The response includes records prior +// to the end date. If no end date is // provided, all records subsequent to the start date are in scope. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) End(end string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall { c.urlParams_.Set("end", end) return c } -// PageToken sets the optional parameter "pageToken": Used to retrieve -// the next or previous page of results -// when using pagination. Value should be set to the value of page_token -// set -// in next or previous page links' url. Next and previous page are -// returned -// in the response bundle's links field, where `link.relation` is -// "previous" +// PageToken sets the optional parameter "pageToken": Used to retrieve the next +// or previous page of results +// when using pagination. Value should be set to the value of page_token set +// in next or previous page links' url. Next and previous page are returned +// in the response bundle's links field, where `link.relation` is "previous" // or "next". // // Omit `page_token` if no previous request has been made. @@ -14238,8 +10819,8 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) PageToken return c } -// Start sets the optional parameter "start": The response includes -// records subsequent to the start date. If no start +// Start sets the optional parameter "start": The response includes records +// subsequent to the start date. If no start // date is provided, all records prior to the end date are in scope. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Start(start string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall { c.urlParams_.Set("start", start) @@ -14247,33 +10828,29 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Start(sta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14282,12 +10859,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Header() } func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14304,63 +10876,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Retrieves all the resources directly referenced by a patient, as well as\nall of the resources in the patient compartment.\n\nImplements the FHIR extended operation Patient-everything\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/patient-operations.html#everything),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/patient-operations.html#everything)).\n\nOn success, the response body will contain a JSON-encoded representation\nof a `Bundle` resource of type `searchset`, containing the results of the\noperation.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Patient/{PatientId}/$everything", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "_count": { - // "description": "Maximum number of resources in a page. Defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "end": { - // "description": "The response includes records prior to the end date. If no end date is\nprovided, all records subsequent to the start date are in scope.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Name of the `Patient` resource for which the information is required.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/Patient/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageToken": { - // "description": "Used to retrieve the next or previous page of results\nwhen using pagination. Value should be set to the value of page_token set\nin next or previous page links' url. Next and previous page are returned\nin the response bundle's links field, where `link.relation` is \"previous\"\nor \"next\".\n\nOmit `page_token` if no previous request has been made.", - // "location": "query", - // "type": "string" - // }, - // "start": { - // "description": "The response includes records subsequent to the start date. If no start\ndate is provided, all records prior to the end date are in scope.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/$everything", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge": +} type ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall struct { s *Service @@ -14370,13 +10893,15 @@ type ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall struct { header_ http.Header } -// ResourcePurge: Deletes all the historical versions of a resource -// (excluding the current +// ResourcePurge: Deletes all the historical versions of a resource (excluding +// the current // version) from the FHIR store. To remove all versions of a resource, // first // delete the current version and then call this method. // // This is not a FHIR standard operation. +// +// - name: The name of the resource to purge. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourcePurge(name string) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall { c := &ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -14384,23 +10909,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourcePurge(name stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14409,12 +10932,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Header() http } func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -14428,16 +10946,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14445,17 +10961,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Do(opts ...go if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -14468,35 +10984,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Deletes all the historical versions of a resource (excluding the current\nversion) from the FHIR store. To remove all versions of a resource, first\ndelete the current version and then call this method.\n\nThis is not a FHIR standard operation.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/$purge", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the resource to purge.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/$purge", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities": +} type ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall struct { s *Service @@ -14507,31 +10995,28 @@ type ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall struct { header_ http.Header } -// Capabilities: Gets the FHIR capability +// Capabilities: Gets the FHIR capability statement +// (STU3 +// (http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html)), +// or the conformance // statement -// ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabil -// itystatement.html)), -// or the -// [conformance -// statement](http://hl7.org/implement/standards/fhir/DSTU2/ -// conformance.html) +// (http://hl7.org/implement/standards/fhir/DSTU2/conformance.html) // in the DSTU2 case for the store, which contains a description // of // functionality supported by the server. // -// Implements the FHIR standard capabilities +// Implements the FHIR standard capabilities interaction +// (STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)), +// or the conformance // interaction -// ([STU3](http://hl7.org/implement/standards/fhir/STU3/http. -// html#capabilities)), -// or the -// [conformance -// interaction](http://hl7.org/implement/standards/fhir/DSTU -// 2/http.html#conformance) +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance) // in the DSTU2 case. // -// On success, the response body will contain a JSON-encoded -// representation +// On success, the response body will contain a JSON-encoded representation // of a `CapabilityStatement` resource. +// +// - name: Name of the FHIR store to retrieve the capabilities for. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall { c := &ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -14539,33 +11024,29 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Capabilities(name strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14574,12 +11055,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Header() http. } func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14596,42 +11072,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Gets the FHIR capability statement\n([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html)),\nor the [conformance\nstatement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html)\nin the DSTU2 case for the store, which contains a description of\nfunctionality supported by the server.\n\nImplements the FHIR standard capabilities interaction\n([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)),\nor the [conformance\ninteraction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance)\nin the DSTU2 case.\n\nOn success, the response body will contain a JSON-encoded representation\nof a `CapabilityStatement` resource.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/metadata", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the FHIR store to retrieve the capabilities for.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/fhir/metadata", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete": +} type ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall struct { s *Service @@ -14645,16 +11093,15 @@ type ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall struct { // ConditionalDelete: Deletes FHIR resources that match a search // query. // -// Implements the FHIR standard conditional delete -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#2.1.0.12.1), -// [STU3](http://hl7.org/implement/standards/fhir/STU -// 3/http.html#2.21.0.13.1)). +// Implements the FHIR standard conditional delete interaction +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1)). // If multiple resources match, all of them will be deleted. // -// Search terms are provided as query parameters following the same -// pattern as +// Search terms are provided as query parameters following the same pattern +// as // the search method. // // Note: Unless resource versioning is disabled by setting @@ -14665,6 +11112,14 @@ type ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall struct { // repository that can still be retrieved through vread // and related methods, unless they are removed by the // purge method. +// +// - parent: The name of the FHIR store this resource belongs to. +// - type: The FHIR resource type to delete, such as Patient or Observation. +// For a +// complete list, see the FHIR Resource Index +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), +// STU3 (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalDelete(parent string, type_ string) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall { c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -14673,23 +11128,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalDelete(paren } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14698,12 +11151,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Header() } func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -14718,16 +11166,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) doRequest "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14735,17 +11181,17 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Do(opts . if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -14758,43 +11204,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Do(opts . return nil, err } return ret, nil - // { - // "description": "Deletes FHIR resources that match a search query.\n\nImplements the FHIR standard conditional delete interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1)).\nIf multiple resources match, all of them will be deleted.\n\nSearch terms are provided as query parameters following the same pattern as\nthe search method.\n\nNote: Unless resource versioning is disabled by setting the\ndisable_resource_versioning flag\non the FHIR store, the deleted resources will be moved to a history\nrepository that can still be retrieved through vread\nand related methods, unless they are removed by the\npurge method.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete", - // "parameterOrder": [ - // "parent", - // "type" - // ], - // "parameters": { - // "parent": { - // "description": "The name of the FHIR store this resource belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "The FHIR resource type to delete, such as Patient or Observation. For a\ncomplete list, see the FHIR Resource Index\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/fhir/{+type}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch": +} type ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall struct { s *Service @@ -14810,34 +11220,28 @@ type ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall struct { // specified in the query // parameters, updates part of that resource by applying the // operations -// specified in a [JSON Patch](http://jsonpatch.com/) -// document. +// specified in a JSON Patch (http://jsonpatch.com/) document. // -// Implements the FHIR standard conditional patch -// interaction -// ([STU3](http://hl7.org/implement/standards/fhir/STU3/http. -// html#patch)). +// Implements the FHIR standard conditional patch interaction +// (STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#patch)). // -// DSTU2 doesn't define a conditional patch method, but the server -// supports it +// DSTU2 doesn't define a conditional patch method, but the server supports +// it // in the same way it supports STU3. // -// Search terms are provided as query parameters following the same -// pattern as +// Search terms are provided as query parameters following the same pattern +// as // the search method. // -// If the search criteria identify more than one match, the request -// will +// If the search criteria identify more than one match, the request will // return a `412 Precondition Failed` error. // -// The request body must contain a JSON Patch document, and the -// request +// The request body must contain a JSON Patch document, and the request // headers must contain `Content-Type: application/json-patch+json`. // -// On success, the response body will contain a JSON-encoded -// representation -// of the updated resource, including the server-assigned version -// ID. +// On success, the response body will contain a JSON-encoded representation +// of the updated resource, including the server-assigned version ID. // Errors generated by the FHIR store will contain a // JSON-encoded // `OperationOutcome` resource describing the reason for the error. If @@ -14845,6 +11249,14 @@ type ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall struct { // request cannot be mapped to a valid API method on a FHIR store, a // generic // GCP error might be returned instead. +// +// - parent: The name of the FHIR store this resource belongs to. +// - type: The FHIR resource type to update, such as Patient or Observation. +// For a +// complete list, see the FHIR Resource Index +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), +// STU3 (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalPatch(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall { c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -14854,23 +11266,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalPatch(parent } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14879,12 +11289,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Header() h } func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil body = c.body_ urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}") @@ -14898,53 +11303,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) doRequest( "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "If a resource is found based on the search criteria specified in the query\nparameters, updates part of that resource by applying the operations\nspecified in a [JSON Patch](http://jsonpatch.com/) document.\n\nImplements the FHIR standard conditional patch interaction\n([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)).\n\nDSTU2 doesn't define a conditional patch method, but the server supports it\nin the same way it supports STU3.\n\nSearch terms are provided as query parameters following the same pattern as\nthe search method.\n\nIf the search criteria identify more than one match, the request will\nreturn a `412 Precondition Failed` error.\n\nThe request body must contain a JSON Patch document, and the request\nheaders must contain `Content-Type: application/json-patch+json`.\n\nOn success, the response body will contain a JSON-encoded representation\nof the updated resource, including the server-assigned version ID.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}", - // "httpMethod": "PATCH", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch", - // "parameterOrder": [ - // "parent", - // "type" - // ], - // "parameters": { - // "parent": { - // "description": "The name of the FHIR store this resource belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "The FHIR resource type to update, such as Patient or Observation. For a\ncomplete list, see the FHIR Resource Index\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/fhir/{+type}", - // "request": { - // "$ref": "HttpBody" - // }, - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate": +} type ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall struct { s *Service @@ -14956,30 +11322,27 @@ type ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall struct { header_ http.Header } -// ConditionalUpdate: If a resource is found based on the search -// criteria specified in the query +// ConditionalUpdate: If a resource is found based on the search criteria +// specified in the query // parameters, updates the entire contents of that resource. // -// Implements the FHIR standard conditional update -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#2.1.0.10.2), -// [STU3](http://hl7.org/implement/standards/fhir/STU -// 3/http.html#cond-update)). +// Implements the FHIR standard conditional update interaction +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#cond-update)). // -// Search terms are provided as query parameters following the same -// pattern as +// Search terms are provided as query parameters following the same pattern +// as // the search method. // -// If the search criteria identify more than one match, the request -// will +// If the search criteria identify more than one match, the request will // return a `412 Precondition Failed` error. -// If the search criteria identify zero matches, and the supplied -// resource +// If the search criteria identify zero matches, and the supplied resource // body contains an `id`, and the FHIR store has // enable_update_create set, creates the -// resource with the client-specified ID. If the search criteria -// identify zero +// resource with the client-specified ID. If the search criteria identify +// zero // matches, and the supplied resource body does not contain an `id`, // the // resource will be created with a server-assigned ID as per the @@ -14989,10 +11352,8 @@ type ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall struct { // request // headers must contain `Content-Type: application/fhir+json`. // -// On success, the response body will contain a JSON-encoded -// representation -// of the updated resource, including the server-assigned version -// ID. +// On success, the response body will contain a JSON-encoded representation +// of the updated resource, including the server-assigned version ID. // Errors generated by the FHIR store will contain a // JSON-encoded // `OperationOutcome` resource describing the reason for the error. If @@ -15000,6 +11361,16 @@ type ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall struct { // request cannot be mapped to a valid API method on a FHIR store, a // generic // GCP error might be returned instead. +// +// - parent: The name of the FHIR store this resource belongs to. +// - type: The FHIR resource type to update, such as Patient or Observation. +// For a +// complete list, see the FHIR Resource Index +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). +// Must match the resource type in the provided content. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalUpdate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall { c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -15009,23 +11380,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalUpdate(paren } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15034,12 +11403,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Header() } func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil body = c.body_ urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}") @@ -15053,53 +11417,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) doRequest "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "If a resource is found based on the search criteria specified in the query\nparameters, updates the entire contents of that resource.\n\nImplements the FHIR standard conditional update interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cond-update)).\n\nSearch terms are provided as query parameters following the same pattern as\nthe search method.\n\nIf the search criteria identify more than one match, the request will\nreturn a `412 Precondition Failed` error.\nIf the search criteria identify zero matches, and the supplied resource\nbody contains an `id`, and the FHIR store has\nenable_update_create set, creates the\nresource with the client-specified ID. If the search criteria identify zero\nmatches, and the supplied resource body does not contain an `id`, the\nresource will be created with a server-assigned ID as per the\ncreate method.\n\nThe request body must contain a JSON-encoded FHIR resource, and the request\nheaders must contain `Content-Type: application/fhir+json`.\n\nOn success, the response body will contain a JSON-encoded representation\nof the updated resource, including the server-assigned version ID.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}", - // "httpMethod": "PUT", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate", - // "parameterOrder": [ - // "parent", - // "type" - // ], - // "parameters": { - // "parent": { - // "description": "The name of the FHIR store this resource belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "The FHIR resource type to update, such as Patient or Observation. For a\ncomplete list, see the FHIR Resource Index\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).\nMust match the resource type in the provided content.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/fhir/{+type}", - // "request": { - // "$ref": "HttpBody" - // }, - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.create": +} type ProjectsLocationsDatasetsFhirStoresFhirCreateCall struct { s *Service @@ -15113,21 +11438,17 @@ type ProjectsLocationsDatasetsFhirStoresFhirCreateCall struct { // Create: Creates a FHIR resource. // -// Implements the FHIR standard create -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#create), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/ht -// tp.html#create)), -// which creates a new resource with a server-assigned resource -// ID. -// -// Also supports the FHIR standard conditional create -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#ccreate), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/h -// ttp.html#ccreate)), +// Implements the FHIR standard create interaction +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#create), +// STU3 (http://hl7.org/implement/standards/fhir/STU3/http.html#create)), +// which creates a new resource with a server-assigned resource ID. +// +// Also supports the FHIR standard conditional create interaction +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate)), // specified by supplying an `If-None-Exist` header containing a FHIR // search // query. If no resources match this search query, the server processes @@ -15138,8 +11459,7 @@ type ProjectsLocationsDatasetsFhirStoresFhirCreateCall struct { // request // headers must contain `Content-Type: application/fhir+json`. // -// On success, the response body will contain a JSON-encoded -// representation +// On success, the response body will contain a JSON-encoded representation // of the resource as it was created on the server, including // the // server-assigned resource ID and version ID. @@ -15150,6 +11470,16 @@ type ProjectsLocationsDatasetsFhirStoresFhirCreateCall struct { // request cannot be mapped to a valid API method on a FHIR store, a // generic // GCP error might be returned instead. +// +// - parent: The name of the FHIR store this resource belongs to. +// - type: The FHIR resource type to create, such as Patient or Observation. +// For a +// complete list, see the FHIR Resource Index +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). +// Must match the resource type in the provided content. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Create(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall { c := &ProjectsLocationsDatasetsFhirStoresFhirCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -15159,23 +11489,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Create(parent string, t } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15184,12 +11512,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Header() http.Header } func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil body = c.body_ urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}") @@ -15203,53 +11526,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.create" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Creates a FHIR resource.\n\nImplements the FHIR standard create interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#create),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#create)),\nwhich creates a new resource with a server-assigned resource ID.\n\nAlso supports the FHIR standard conditional create interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate)),\nspecified by supplying an `If-None-Exist` header containing a FHIR search\nquery. If no resources match this search query, the server processes the\ncreate operation as normal.\n\nThe request body must contain a JSON-encoded FHIR resource, and the request\nheaders must contain `Content-Type: application/fhir+json`.\n\nOn success, the response body will contain a JSON-encoded representation\nof the resource as it was created on the server, including the\nserver-assigned resource ID and version ID.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.create", - // "parameterOrder": [ - // "parent", - // "type" - // ], - // "parameters": { - // "parent": { - // "description": "The name of the FHIR store this resource belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "type": { - // "description": "The FHIR resource type to create, such as Patient or Observation. For a\ncomplete list, see the FHIR Resource Index\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).\nMust match the resource type in the provided content.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/fhir/{+type}", - // "request": { - // "$ref": "HttpBody" - // }, - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.delete": +} type ProjectsLocationsDatasetsFhirStoresFhirDeleteCall struct { s *Service @@ -15261,12 +11545,11 @@ type ProjectsLocationsDatasetsFhirStoresFhirDeleteCall struct { // Delete: Deletes a FHIR resource. // -// Implements the FHIR standard delete -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#delete), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/ht -// tp.html#delete)). +// Implements the FHIR standard delete interaction +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#delete), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#delete)). // // Note: Unless resource versioning is disabled by setting // the @@ -15276,6 +11559,8 @@ type ProjectsLocationsDatasetsFhirStoresFhirDeleteCall struct { // repository that can still be retrieved through vread // and related methods, unless they are removed by the // purge method. +// +// - name: The name of the resource to delete. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall { c := &ProjectsLocationsDatasetsFhirStoresFhirDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -15283,23 +11568,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Delete(name string) *Pr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15308,12 +11591,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Header() http.Header } func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -15327,42 +11605,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.delete" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Deletes a FHIR resource.\n\nImplements the FHIR standard delete interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#delete),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#delete)).\n\nNote: Unless resource versioning is disabled by setting the\ndisable_resource_versioning flag\non the FHIR store, the deleted resources will be moved to a history\nrepository that can still be retrieved through vread\nand related methods, unless they are removed by the\npurge method.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the resource to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle": +} type ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall struct { s *Service @@ -15373,37 +11623,30 @@ type ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall struct { header_ http.Header } -// ExecuteBundle: Executes all the requests in the given -// Bundle. +// ExecuteBundle: Executes all the requests in the given Bundle. // -// Implements the FHIR standard batch/transaction -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#transaction), -// [STU3](http://hl7.org/implement/standards/fhir/ST -// U3/http.html#transaction)). +// Implements the FHIR standard batch/transaction interaction +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#transaction)). // // Supports all interactions within a bundle, except search. This // method -// accepts Bundles of type `batch` and `transaction`, processing -// them -// according to the batch processing -// rules -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html -// #2.1.0.16.1), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/http -// .html#2.21.0.17.1)) -// and transaction processing -// rules -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html -// #2.1.0.16.2), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/http -// .html#2.21.0.17.2)). -// -// The request body must contain a JSON-encoded FHIR `Bundle` resource, -// and -// the request headers must contain `Content-Type: -// application/fhir+json`. +// accepts Bundles of type `batch` and `transaction`, processing them +// according to the batch processing rules +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1)) +// and transaction processing rules +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2)). +// +// The request body must contain a JSON-encoded FHIR `Bundle` resource, and +// the request headers must contain `Content-Type: application/fhir+json`. // // For a batch bundle or a successful transaction the response body // will @@ -15411,15 +11654,15 @@ type ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall struct { // type // `batch-response` or `transaction-response` containing one entry for // each -// entry in the request, with the outcome of processing the entry. In -// the -// case of an error for a transaction bundle, the response body will -// contain +// entry in the request, with the outcome of processing the entry. In the +// case of an error for a transaction bundle, the response body will contain // a JSON-encoded `OperationOutcome` resource describing the reason for // the // error. If the request cannot be mapped to a valid API method on a // FHIR // store, a generic GCP error might be returned instead. +// +// - parent: Name of the FHIR store in which this bundle will be executed. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ExecuteBundle(parent string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall { c := &ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -15428,23 +11671,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ExecuteBundle(parent st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15453,12 +11694,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Header() http } func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil body = c.body_ urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir") @@ -15471,45 +11707,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Executes all the requests in the given Bundle.\n\nImplements the FHIR standard batch/transaction interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#transaction)).\n\nSupports all interactions within a bundle, except search. This method\naccepts Bundles of type `batch` and `transaction`, processing them\naccording to the batch processing rules\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1))\nand transaction processing rules\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2)).\n\nThe request body must contain a JSON-encoded FHIR `Bundle` resource, and\nthe request headers must contain `Content-Type: application/fhir+json`.\n\nFor a batch bundle or a successful transaction the response body will\ncontain a JSON-encoded representation of a `Bundle` resource of type\n`batch-response` or `transaction-response` containing one entry for each\nentry in the request, with the outcome of processing the entry. In the\ncase of an error for a transaction bundle, the response body will contain\na JSON-encoded `OperationOutcome` resource describing the reason for the\nerror. If the request cannot be mapped to a valid API method on a FHIR\nstore, a generic GCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Name of the FHIR store in which this bundle will be executed.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/fhir", - // "request": { - // "$ref": "HttpBody" - // }, - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.history": +} type ProjectsLocationsDatasetsFhirStoresFhirHistoryCall struct { s *Service @@ -15520,19 +11725,17 @@ type ProjectsLocationsDatasetsFhirStoresFhirHistoryCall struct { header_ http.Header } -// History: Lists all the versions of a resource (including the current -// version and +// History: Lists all the versions of a resource (including the current version +// and // deleted versions) from the FHIR store. // // Implements the per-resource form of the FHIR standard history // interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#history), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/h -// ttp.html#history)). +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#history), +// STU3 (http://hl7.org/implement/standards/fhir/STU3/http.html#history)). // -// On success, the response body will contain a JSON-encoded -// representation +// On success, the response body will contain a JSON-encoded representation // of a `Bundle` resource of type `history`, containing the version // history // sorted from most recent to oldest versions. @@ -15543,16 +11746,18 @@ type ProjectsLocationsDatasetsFhirStoresFhirHistoryCall struct { // request cannot be mapped to a valid API method on a FHIR store, a // generic // GCP error might be returned instead. +// +// - name: The name of the resource to retrieve. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) History(name string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall { c := &ProjectsLocationsDatasetsFhirStoresFhirHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// At sets the optional parameter "at": Only include resource versions -// that were current at some point during the -// time period specified in the date time value. The date parameter -// format is +// At sets the optional parameter "at": Only include resource versions that +// were current at some point during the +// time period specified in the date time value. The date parameter format +// is // yyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm] // // Clients may specify any of the following: @@ -15566,8 +11771,8 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) At(at string) *Proj return c } -// Count sets the optional parameter "count": The maximum number of -// search results on a page. Defaults to 1000. +// Count sets the optional parameter "count": The maximum number of search +// results on a page. Defaults to 1000. func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Count(count int64) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall { c.urlParams_.Set("count", fmt.Sprint(count)) return c @@ -15587,14 +11792,13 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Page(page string) * return c } -// Since sets the optional parameter "since": Only include resource -// versions that were created at or after the given +// Since sets the optional parameter "since": Only include resource versions +// that were created at or after the given // instant in time. The instant in time uses the // format -// YYYY-MM-DDThh:mm:ss.sss+zz:zz (for example -// 2015-02-07T13:28:17.239+02:00 or -// 2017-01-01T00:00:00Z). The time must be specified to the second -// and +// YYYY-MM-DDThh:mm:ss.sss+zz:zz (for example 2015-02-07T13:28:17.239+02:00 +// or +// 2017-01-01T00:00:00Z). The time must be specified to the second and // include a time zone. func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Since(since string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall { c.urlParams_.Set("since", since) @@ -15602,33 +11806,29 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Since(since string) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15637,12 +11837,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Header() http.Heade } func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15659,63 +11854,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.history" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Lists all the versions of a resource (including the current version and\ndeleted versions) from the FHIR store.\n\nImplements the per-resource form of the FHIR standard history interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#history),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#history)).\n\nOn success, the response body will contain a JSON-encoded representation\nof a `Bundle` resource of type `history`, containing the version history\nsorted from most recent to oldest versions.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/_history", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.history", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "at": { - // "description": "Only include resource versions that were current at some point during the\ntime period specified in the date time value. The date parameter format is\nyyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm]\n\nClients may specify any of the following:\n\n* An entire year: `_at=2019`\n* An entire month: `_at=2019-01`\n* A specific day: `_at=2019-01-20`\n* A specific second: `_at=2018-12-31T23:59:58Z`", - // "location": "query", - // "type": "string" - // }, - // "count": { - // "description": "The maximum number of search results on a page. Defaults to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "name": { - // "description": "The name of the resource to retrieve.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "page": { - // "description": "Used to retrieve the first, previous, next, or last page of resource\nversions when using pagination. Value should be set to the value of the\n`link.url` field returned in the response to the previous request, where\n`link.relation` is \"first\", \"previous\", \"next\" or \"last\".\n\nOmit `page` if no previous request has been made.", - // "location": "query", - // "type": "string" - // }, - // "since": { - // "description": "Only include resource versions that were created at or after the given\ninstant in time. The instant in time uses the format\nYYYY-MM-DDThh:mm:ss.sss+zz:zz (for example 2015-02-07T13:28:17.239+02:00 or\n2017-01-01T00:00:00Z). The time must be specified to the second and\ninclude a time zone.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/_history", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.patch": +} type ProjectsLocationsDatasetsFhirStoresFhirPatchCall struct { s *Service @@ -15726,27 +11872,23 @@ type ProjectsLocationsDatasetsFhirStoresFhirPatchCall struct { header_ http.Header } -// Patch: Updates part of an existing resource by applying the -// operations specified -// in a [JSON Patch](http://jsonpatch.com/) document. +// Patch: Updates part of an existing resource by applying the operations +// specified +// in a JSON Patch (http://jsonpatch.com/) document. // -// Implements the FHIR standard patch -// interaction -// ([STU3](http://hl7.org/implement/standards/fhir/STU3/http. -// html#patch)). +// Implements the FHIR standard patch interaction +// (STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#patch)). // -// DSTU2 doesn't define a patch method, but the server supports it in -// the same +// DSTU2 doesn't define a patch method, but the server supports it in the +// same // way it supports STU3. // -// The request body must contain a JSON Patch document, and the -// request +// The request body must contain a JSON Patch document, and the request // headers must contain `Content-Type: application/json-patch+json`. // -// On success, the response body will contain a JSON-encoded -// representation -// of the updated resource, including the server-assigned version -// ID. +// On success, the response body will contain a JSON-encoded representation +// of the updated resource, including the server-assigned version ID. // Errors generated by the FHIR store will contain a // JSON-encoded // `OperationOutcome` resource describing the reason for the error. If @@ -15754,6 +11896,8 @@ type ProjectsLocationsDatasetsFhirStoresFhirPatchCall struct { // request cannot be mapped to a valid API method on a FHIR store, a // generic // GCP error might be returned instead. +// +// - name: The name of the resource to update. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Patch(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall { c := &ProjectsLocationsDatasetsFhirStoresFhirPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -15762,23 +11906,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Patch(name string, body } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15787,12 +11929,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Header() http.Header } func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil body = c.body_ urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -15805,45 +11942,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.patch" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Updates part of an existing resource by applying the operations specified\nin a [JSON Patch](http://jsonpatch.com/) document.\n\nImplements the FHIR standard patch interaction\n([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)).\n\nDSTU2 doesn't define a patch method, but the server supports it in the same\nway it supports STU3.\n\nThe request body must contain a JSON Patch document, and the request\nheaders must contain `Content-Type: application/json-patch+json`.\n\nOn success, the response body will contain a JSON-encoded representation\nof the updated resource, including the server-assigned version ID.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}", - // "httpMethod": "PATCH", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the resource to update.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "HttpBody" - // }, - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.read": +} type ProjectsLocationsDatasetsFhirStoresFhirReadCall struct { s *Service @@ -15856,25 +11962,19 @@ type ProjectsLocationsDatasetsFhirStoresFhirReadCall struct { // Read: Gets the contents of a FHIR resource. // -// Implements the FHIR standard read -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#read), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/http -// .html#read)). +// Implements the FHIR standard read interaction +// (DSTU2 (http://hl7.org/implement/standards/fhir/DSTU2/http.html#read), +// STU3 (http://hl7.org/implement/standards/fhir/STU3/http.html#read)). // -// Also supports the FHIR standard conditional read -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#cread), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/htt -// p.html#cread)) +// Also supports the FHIR standard conditional read interaction +// (DSTU2 (http://hl7.org/implement/standards/fhir/DSTU2/http.html#cread), +// STU3 +// (http://hl7.org/implement/standards/fhir/STU3/http.html#cread)) // specified by supplying an `If-Modified-Since` header with a date/time // value // or an `If-None-Match` header with an ETag value. // -// On success, the response body will contain a JSON-encoded -// representation +// On success, the response body will contain a JSON-encoded representation // of the resource. // Errors generated by the FHIR store will contain a // JSON-encoded @@ -15883,6 +11983,8 @@ type ProjectsLocationsDatasetsFhirStoresFhirReadCall struct { // request cannot be mapped to a valid API method on a FHIR store, a // generic // GCP error might be returned instead. +// +// - name: The name of the resource to retrieve. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Read(name string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall { c := &ProjectsLocationsDatasetsFhirStoresFhirReadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -15890,33 +11992,29 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Read(name string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirReadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirReadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15925,12 +12023,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15947,42 +12040,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.read" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Gets the contents of a FHIR resource.\n\nImplements the FHIR standard read interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#read),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#read)).\n\nAlso supports the FHIR standard conditional read interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#cread),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cread))\nspecified by supplying an `If-Modified-Since` header with a date/time value\nor an `If-None-Match` header with an ETag value.\n\nOn success, the response body will contain a JSON-encoded representation\nof the resource.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.read", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the resource to retrieve.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.search": +} type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct { s *Service @@ -15997,18 +12062,13 @@ type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct { // criteria // specified as query parameters. // -// Implements the FHIR standard search -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#search), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/ht -// tp.html#search)) -// using the search semantics described in the FHIR Search -// specification -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/s -// earch.html), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/searc -// h.html)). +// Implements the FHIR standard search interaction +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), +// STU3 (http://hl7.org/implement/standards/fhir/STU3/http.html#search)) +// using the search semantics described in the FHIR Search specification +// (DSTU2 (http://hl7.org/implement/standards/fhir/DSTU2/search.html), +// STU3 (http://hl7.org/implement/standards/fhir/STU3/search.html)). // // Supports three methods of search defined by the specification: // @@ -16016,17 +12076,14 @@ type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct { // * `GET [base]/[type]?[parameters]` to search resources of a // specified // type. -// * `POST [base]/[type]/_search?[parameters]` as an alternate form -// having +// * `POST [base]/[type]/_search?[parameters]` as an alternate form having // the same semantics as the `GET` method. // // The `GET` methods do not support compartment searches. The `POST` // method -// does not support `application/x-www-form-urlencoded` search -// parameters. +// does not support `application/x-www-form-urlencoded` search parameters. // -// On success, the response body will contain a JSON-encoded -// representation +// On success, the response body will contain a JSON-encoded representation // of a `Bundle` resource of type `searchset`, containing the results of // the // search. @@ -16040,13 +12097,12 @@ type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct { // // The server's capability statement, retrieved through // capabilities, indicates what search parameters -// are supported on each FHIR resource. A list of all search -// parameters +// are supported on each FHIR resource. A list of all search parameters // defined by the specification can be found in the FHIR Search // Parameter // Registry -// ([STU3](http://hl7.org/implement/standards/fhir/STU -// 3/searchparameter-registry.html)). +// (STU3 +// (http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html)). // FHIR search parameters for DSTU2 can be found on each resource's // definition // page. @@ -16058,15 +12114,12 @@ type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct { // // Supported search result parameters: `_sort`, `_count`, // `_include`, -// `_revinclude`, `_summary=text`, `_summary=data`, and -// `_elements`. +// `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. // -// The maximum number of search results returned defaults to 100, which -// can -// be overridden by the `_count` parameter up to a maximum limit of -// 1000. If -// there are additional results, the returned `Bundle` will -// contain +// The maximum number of search results returned defaults to 100, which can +// be overridden by the `_count` parameter up to a maximum limit of 1000. +// If +// there are additional results, the returned `Bundle` will contain // pagination links. // // Resources with a total size larger than 5MB or a field count larger @@ -16080,6 +12133,8 @@ type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct { // delay between the time a resource is created or changes and when the // change // is reflected in search results. +// +// - parent: Name of the FHIR store to retrieve resources from. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Search(parent string, searchresourcesrequest *SearchResourcesRequest) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall { c := &ProjectsLocationsDatasetsFhirStoresFhirSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -16088,23 +12143,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Search(parent string, s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16113,18 +12166,12 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Header() http.Header } func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchresourcesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/_search") @@ -16137,45 +12184,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.search" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Searches for resources in the given FHIR store according to criteria\nspecified as query parameters.\n\nImplements the FHIR standard search interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search))\nusing the search semantics described in the FHIR Search specification\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/search.html)).\n\nSupports three methods of search defined by the specification:\n\n* `GET [base]?[parameters]` to search across all resources.\n* `GET [base]/[type]?[parameters]` to search resources of a specified\ntype.\n* `POST [base]/[type]/_search?[parameters]` as an alternate form having\nthe same semantics as the `GET` method.\n\nThe `GET` methods do not support compartment searches. The `POST` method\ndoes not support `application/x-www-form-urlencoded` search parameters.\n\nOn success, the response body will contain a JSON-encoded representation\nof a `Bundle` resource of type `searchset`, containing the results of the\nsearch.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.\n\nThe server's capability statement, retrieved through\ncapabilities, indicates what search parameters\nare supported on each FHIR resource. A list of all search parameters\ndefined by the specification can be found in the FHIR Search Parameter\nRegistry\n([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html)).\nFHIR search parameters for DSTU2 can be found on each resource's definition\npage.\n\nSupported search modifiers: `:missing`, `:exact`, `:contains`, `:text`,\n`:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `:recurse`.\n\nSupported search result parameters: `_sort`, `_count`, `_include`,\n`_revinclude`, `_summary=text`, `_summary=data`, and `_elements`.\n\nThe maximum number of search results returned defaults to 100, which can\nbe overridden by the `_count` parameter up to a maximum limit of 1000. If\nthere are additional results, the returned `Bundle` will contain\npagination links.\n\nResources with a total size larger than 5MB or a field count larger than\n50,000 might not be fully searchable as the server might trim its generated\nsearch index in those cases.\n\nNote: FHIR resources are indexed asynchronously, so there might be a slight\ndelay between the time a resource is created or changes and when the change\nis reflected in search results.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/_search", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Name of the FHIR store to retrieve resources from.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/fhir/_search", - // "request": { - // "$ref": "SearchResourcesRequest" - // }, - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.update": +} type ProjectsLocationsDatasetsFhirStoresFhirUpdateCall struct { s *Service @@ -16188,12 +12204,10 @@ type ProjectsLocationsDatasetsFhirStoresFhirUpdateCall struct { // Update: Updates the entire contents of a resource. // -// Implements the FHIR standard update -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#update), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/ht -// tp.html#update)). +// Implements the FHIR standard update interaction +// (DSTU2 +// (http://hl7.org/implement/standards/fhir/DSTU2/http.html#update), +// STU3 (http://hl7.org/implement/standards/fhir/STU3/http.html#update)). // // If the specified resource does // not exist and the FHIR store has @@ -16204,14 +12218,11 @@ type ProjectsLocationsDatasetsFhirStoresFhirUpdateCall struct { // request // headers must contain `Content-Type: application/fhir+json`. The // resource -// must contain an `id` element having an identical value to the ID in -// the +// must contain an `id` element having an identical value to the ID in the // REST path of the request. // -// On success, the response body will contain a JSON-encoded -// representation -// of the updated resource, including the server-assigned version -// ID. +// On success, the response body will contain a JSON-encoded representation +// of the updated resource, including the server-assigned version ID. // Errors generated by the FHIR store will contain a // JSON-encoded // `OperationOutcome` resource describing the reason for the error. If @@ -16219,6 +12230,8 @@ type ProjectsLocationsDatasetsFhirStoresFhirUpdateCall struct { // request cannot be mapped to a valid API method on a FHIR store, a // generic // GCP error might be returned instead. +// +// - name: The name of the resource to update. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Update(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall { c := &ProjectsLocationsDatasetsFhirStoresFhirUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16227,23 +12240,21 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Update(name string, bod } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16252,12 +12263,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Header() http.Header } func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil body = c.body_ urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -16270,45 +12276,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.update" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Updates the entire contents of a resource.\n\nImplements the FHIR standard update interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#update),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#update)).\n\nIf the specified resource does\nnot exist and the FHIR store has\nenable_update_create set, creates the\nresource with the client-specified ID.\n\nThe request body must contain a JSON-encoded FHIR resource, and the request\nheaders must contain `Content-Type: application/fhir+json`. The resource\nmust contain an `id` element having an identical value to the ID in the\nREST path of the request.\n\nOn success, the response body will contain a JSON-encoded representation\nof the updated resource, including the server-assigned version ID.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}", - // "httpMethod": "PUT", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.update", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the resource to update.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "HttpBody" - // }, - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.fhirStores.fhir.vread": +} type ProjectsLocationsDatasetsFhirStoresFhirVreadCall struct { s *Service @@ -16319,19 +12294,15 @@ type ProjectsLocationsDatasetsFhirStoresFhirVreadCall struct { header_ http.Header } -// Vread: Gets the contents of a version (current or historical) of a -// FHIR resource +// Vread: Gets the contents of a version (current or historical) of a FHIR +// resource // by version ID. // -// Implements the FHIR standard vread -// interaction -// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt -// p.html#vread), -// [STU3](http://hl7.org/implement/standards/fhir/STU3/htt -// p.html#vread). +// Implements the FHIR standard vread interaction +// (DSTU2 (http://hl7.org/implement/standards/fhir/DSTU2/http.html#vread), +// STU3 (http://hl7.org/implement/standards/fhir/STU3/http.html#vread). // -// On success, the response body will contain a JSON-encoded -// representation +// On success, the response body will contain a JSON-encoded representation // of the resource. // Errors generated by the FHIR store will contain a // JSON-encoded @@ -16340,6 +12311,8 @@ type ProjectsLocationsDatasetsFhirStoresFhirVreadCall struct { // request cannot be mapped to a valid API method on a FHIR store, a // generic // GCP error might be returned instead. +// +// - name: The name of the resource version to retrieve. func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Vread(name string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall { c := &ProjectsLocationsDatasetsFhirStoresFhirVreadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16347,33 +12320,29 @@ func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Vread(name string) *Pro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16382,12 +12351,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Header() http.Header } func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16404,42 +12368,14 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.vread" call. func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") - // { - // "description": "Gets the contents of a version (current or historical) of a FHIR resource\nby version ID.\n\nImplements the FHIR standard vread interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#vread),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#vread).\n\nOn success, the response body will contain a JSON-encoded representation\nof the resource.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/_history/{_historyId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.vread", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the resource version to retrieve.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+/_history/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.create": +} type ProjectsLocationsDatasetsHl7V2StoresCreateCall struct { s *Service @@ -16451,6 +12387,8 @@ type ProjectsLocationsDatasetsHl7V2StoresCreateCall struct { } // Create: Creates a new HL7v2 store within the parent dataset. +// +// - parent: The name of the dataset this HL7v2 store belongs to. func (r *ProjectsLocationsDatasetsHl7V2StoresService) Create(parent string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresCreateCall { c := &ProjectsLocationsDatasetsHl7V2StoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -16458,33 +12396,30 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresService) Create(parent string, hl7v return c } -// Hl7V2StoreId sets the optional parameter "hl7V2StoreId": The ID of -// the HL7v2 store that is being created. -// The string must match the following regex: -// `[\p{L}\p{N}_\-\.]{1,256}`. +// Hl7V2StoreId sets the optional parameter "hl7V2StoreId": The ID of the HL7v2 +// store that is being created. +// The string must match the following regex: `[\p{L}\p{N}_\-\.]{1,256}`. func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Hl7V2StoreId(hl7V2StoreId string) *ProjectsLocationsDatasetsHl7V2StoresCreateCall { c.urlParams_.Set("hl7V2StoreId", hl7V2StoreId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16493,18 +12428,12 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/hl7V2Stores") @@ -16517,16 +12446,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.create" call. -// Exactly one of *Hl7V2Store or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Hl7V2Store.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Hl7V2Store.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16534,17 +12461,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Hl7V2Store{ ServerResponse: googleapi.ServerResponse{ @@ -16557,43 +12484,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Creates a new HL7v2 store within the parent dataset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "hl7V2StoreId": { - // "description": "The ID of the HL7v2 store that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The name of the dataset this HL7v2 store belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/hl7V2Stores", - // "request": { - // "$ref": "Hl7V2Store" - // }, - // "response": { - // "$ref": "Hl7V2Store" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.delete": +} type ProjectsLocationsDatasetsHl7V2StoresDeleteCall struct { s *Service @@ -16603,9 +12494,11 @@ type ProjectsLocationsDatasetsHl7V2StoresDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified HL7v2 store and removes all messages -// that are +// Delete: Deletes the specified HL7v2 store and removes all messages that +// are // contained within it. +// +// - name: The resource name of the HL7v2 store to delete. func (r *ProjectsLocationsDatasetsHl7V2StoresService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall { c := &ProjectsLocationsDatasetsHl7V2StoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16613,23 +12506,21 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresService) Delete(name string) *Proje } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16638,12 +12529,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -16657,16 +12543,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16674,17 +12558,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Do(opts ...googleapi.Ca if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -16697,35 +12581,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Deletes the specified HL7v2 store and removes all messages that are\ncontained within it.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the HL7v2 store to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.get": +} type ProjectsLocationsDatasetsHl7V2StoresGetCall struct { s *Service @@ -16737,6 +12593,8 @@ type ProjectsLocationsDatasetsHl7V2StoresGetCall struct { } // Get: Gets the specified HL7v2 store. +// +// - name: The resource name of the HL7v2 store to get. func (r *ProjectsLocationsDatasetsHl7V2StoresService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresGetCall { c := &ProjectsLocationsDatasetsHl7V2StoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16744,33 +12602,29 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresService) Get(name string) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16779,12 +12633,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16801,16 +12650,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.get" call. -// Exactly one of *Hl7V2Store or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Hl7V2Store.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Hl7V2Store.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16818,17 +12665,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Hl7V2Store{ ServerResponse: googleapi.ServerResponse{ @@ -16841,35 +12688,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Gets the specified HL7v2 store.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the HL7v2 store to get.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Hl7V2Store" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy": +} type ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall struct { s *Service @@ -16884,6 +12703,10 @@ type ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall struct { // Returns an empty policy if the resource exists and does not have a // policy // set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall { c := &ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -16894,8 +12717,8 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetIamPolicy(resource stri // "options.requestedPolicyVersion": The policy format version to be // returned. // Acceptable values are 0, 1, and 3. -// If the value is 0, or the field is omitted, policy format version 1 -// will be +// If the value is 0, or the field is omitted, policy format version 1 will +// be // returned. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall { c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) @@ -16903,33 +12726,29 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) OptionsRequestedP } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16938,12 +12757,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Hea } func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16960,16 +12774,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16977,17 +12789,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -17000,41 +12812,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:getIamPolicy", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.\nAcceptable values are 0, 1, and 3.\nIf the value is 0, or the field is omitted, policy format version 1 will be\nreturned.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:getIamPolicy", - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.list": +} type ProjectsLocationsDatasetsHl7V2StoresListCall struct { s *Service @@ -17046,68 +12824,63 @@ type ProjectsLocationsDatasetsHl7V2StoresListCall struct { } // List: Lists the HL7v2 stores in the given dataset. +// +// - parent: Name of the dataset. func (r *ProjectsLocationsDatasetsHl7V2StoresService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresListCall { c := &ProjectsLocationsDatasetsHl7V2StoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Restricts stores -// returned to those matching a filter. +// Filter sets the optional parameter "filter": Restricts stores returned to +// those matching a filter. // Syntax: -// https://cloud.google.com/appengine/docs/standard/python/search -// /query_strings -// Only filtering on labels is supported, for example -// `labels.key=value`. +// https://cloud.google.com/appengine/docs/standard/python/search/query_strings +// Only filtering on labels is supported, for example `labels.key=value`. func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": Limit on the number -// of HL7v2 stores to return in a single response. +// PageSize sets the optional parameter "pageSize": Limit on the number of +// HL7v2 stores to return in a single response. // If zero the default page size of 100 is used. func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from the previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from the previous List request, if any. func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17116,12 +12889,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17138,16 +12906,15 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.list" call. -// Exactly one of *ListHl7V2StoresResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListHl7V2StoresResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Do(opts ...googleapi.CallOption) (*ListHl7V2StoresResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17155,17 +12922,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListHl7V2StoresResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17178,48 +12945,6 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Lists the HL7v2 stores in the given dataset.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Restricts stores returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\nOnly filtering on labels is supported, for example `labels.key=value`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Limit on the number of HL7v2 stores to return in a single response.\nIf zero the default page size of 100 is used.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from the previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Name of the dataset.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/hl7V2Stores", - // "response": { - // "$ref": "ListHl7V2StoresResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -17227,7 +12952,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Do(opts ...googleapi.Call // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Pages(ctx context.Context, f func(*ListHl7V2StoresResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17243,8 +12968,6 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Pages(ctx context.Context } } -// method id "healthcare.projects.locations.datasets.hl7V2Stores.patch": - type ProjectsLocationsDatasetsHl7V2StoresPatchCall struct { s *Service name string @@ -17255,6 +12978,10 @@ type ProjectsLocationsDatasetsHl7V2StoresPatchCall struct { } // Patch: Updates the HL7v2 store. +// +// - name: Output only. Resource name of the HL7v2 store, of the +// form +// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`. func (r *ProjectsLocationsDatasetsHl7V2StoresService) Patch(name string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresPatchCall { c := &ProjectsLocationsDatasetsHl7V2StoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -17262,35 +12989,32 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresService) Patch(name string, hl7v2st return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. For the `FieldMask` +// UpdateMask sets the optional parameter "updateMask": The update mask applies +// to the resource. For the `FieldMask` // definition, // see -// https://developers.google.com/protocol-buffers/docs/re -// ference/google.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17299,18 +13023,12 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -17323,16 +13041,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.patch" call. -// Exactly one of *Hl7V2Store or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Hl7V2Store.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Hl7V2Store.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17340,17 +13056,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Do(opts ...googleapi.Cal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Hl7V2Store{ ServerResponse: googleapi.ServerResponse{ @@ -17363,44 +13079,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Updates the HL7v2 store.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}", - // "httpMethod": "PATCH", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Resource name of the HL7v2 store, of the form\n`projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "Hl7V2Store" - // }, - // "response": { - // "$ref": "Hl7V2Store" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy": +} type ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall struct { s *Service @@ -17411,9 +13090,13 @@ type ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any // existing policy. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsHl7V2StoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall { c := &ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -17422,23 +13105,21 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresService) SetIamPolicy(resource stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17447,18 +13128,12 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Hea } func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy") @@ -17471,16 +13146,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17488,17 +13161,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -17511,38 +13184,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions": +} type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct { s *Service @@ -17553,8 +13195,8 @@ type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. @@ -17564,6 +13206,10 @@ type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct { // UIs and command-line tools, not for authorization checking. This // operation // may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *ProjectsLocationsDatasetsHl7V2StoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall { c := &ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -17572,23 +13218,21 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresService) TestIamPermissions(resourc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17597,18 +13241,12 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() ht } func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions") @@ -17621,16 +13259,15 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17638,17 +13275,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ... if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -17661,38 +13298,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.create": +} type ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall struct { s *Service @@ -17703,17 +13309,19 @@ type ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall struct { header_ http.Header } -// Create: Creates a message and sends a notification to the Cloud -// Pub/Sub topic. If -// configured, the MLLP adapter listens to messages created by this -// method and +// Create: Creates a message and sends a notification to the Cloud Pub/Sub +// topic. If +// configured, the MLLP adapter listens to messages created by this method +// and // sends those back to the hospital. A successful response indicates // the -// message has been persisted to storage and a Cloud Pub/Sub -// notification has +// message has been persisted to storage and a Cloud Pub/Sub notification +// has // been sent. Sending to the hospital by the MLLP adapter // happens // asynchronously. +// +// - parent: The name of the dataset this message belongs to. func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Create(parent string, createmessagerequest *CreateMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall { c := &ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -17722,23 +13330,21 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Create(parent stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17747,18 +13353,12 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Header() http.H } func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.createmessagerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages") @@ -17771,16 +13371,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.create" call. -// Exactly one of *Message or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Message.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Message.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17788,17 +13386,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Do(opts ...goog if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Message{ ServerResponse: googleapi.ServerResponse{ @@ -17811,38 +13409,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Creates a message and sends a notification to the Cloud Pub/Sub topic. If\nconfigured, the MLLP adapter listens to messages created by this method and\nsends those back to the hospital. A successful response indicates the\nmessage has been persisted to storage and a Cloud Pub/Sub notification has\nbeen sent. Sending to the hospital by the MLLP adapter happens\nasynchronously.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The name of the dataset this message belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/messages", - // "request": { - // "$ref": "CreateMessageRequest" - // }, - // "response": { - // "$ref": "Message" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete": +} type ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall struct { s *Service @@ -17853,6 +13420,8 @@ type ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall struct { } // Delete: Deletes an HL7v2 message. +// +// - name: The resource name of the HL7v2 message to delete. func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall { c := &ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -17860,23 +13429,21 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Delete(name string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17885,12 +13452,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Header() http.H } func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17904,16 +13466,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17921,17 +13481,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Do(opts ...goog if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -17944,35 +13504,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Deletes an HL7v2 message.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages/{messagesId}", - // "httpMethod": "DELETE", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the HL7v2 message to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.get": +} type ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall struct { s *Service @@ -17984,6 +13516,8 @@ type ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall struct { } // Get: Gets an HL7v2 message. +// +// - name: The resource name of the HL7v2 message to retrieve. func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall { c := &ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -18006,33 +13540,29 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) View(view string) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18041,12 +13571,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Header() http.Head } func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18063,16 +13588,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.get" call. -// Exactly one of *Message or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Message.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Message.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18080,17 +13603,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Do(opts ...googlea if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Message{ ServerResponse: googleapi.ServerResponse{ @@ -18103,46 +13626,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Gets an HL7v2 message.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages/{messagesId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the HL7v2 message to retrieve.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "view": { - // "description": "Specifies which parts of the Message resource should be returned\nin the response.", - // "enum": [ - // "MESSAGE_VIEW_UNSPECIFIED", - // "RAW_ONLY", - // "PARSED_ONLY", - // "FULL" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Message" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest": +} type ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall struct { s *Service @@ -18155,13 +13639,14 @@ type ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall struct { // Ingest: Ingests a new HL7v2 message from the hospital and sends a // notification to -// the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the -// message was -// successfully stored. Otherwise an error is returned. If an -// identical +// the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message +// was +// successfully stored. Otherwise an error is returned. If an identical // HL7v2 message is created twice only one resource is created on the // server // and no error is reported. +// +// - parent: The name of the HL7v2 store this message belongs to. func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Ingest(parent string, ingestmessagerequest *IngestMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall { c := &ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -18170,23 +13655,21 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Ingest(parent stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18195,18 +13678,12 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Header() http.H } func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.ingestmessagerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages:ingest") @@ -18219,16 +13696,15 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest" call. -// Exactly one of *IngestMessageResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *IngestMessageResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *IngestMessageResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Do(opts ...googleapi.CallOption) (*IngestMessageResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18236,17 +13712,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Do(opts ...goog if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &IngestMessageResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18259,38 +13735,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Ingests a new HL7v2 message from the hospital and sends a notification to\nthe Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message was\nsuccessfully stored. Otherwise an error is returned. If an identical\nHL7v2 message is created twice only one resource is created on the server\nand no error is reported.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages:ingest", - // "httpMethod": "POST", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The name of the HL7v2 store this message belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/messages:ingest", - // "request": { - // "$ref": "IngestMessageRequest" - // }, - // "response": { - // "$ref": "IngestMessageResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.list": +} type ProjectsLocationsDatasetsHl7V2StoresMessagesListCall struct { s *Service @@ -18301,37 +13746,35 @@ type ProjectsLocationsDatasetsHl7V2StoresMessagesListCall struct { header_ http.Header } -// List: Lists all the messages in the given HL7v2 store with support -// for filtering. +// List: Lists all the messages in the given HL7v2 store with support for +// filtering. // // Note: HL7v2 messages are indexed asynchronously, so there might be a // slight -// delay between the time a message is created and when it can be -// found +// delay between the time a message is created and when it can be found // through a filter. +// +// - parent: Name of the HL7v2 store to retrieve messages from. func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall { c := &ProjectsLocationsDatasetsHl7V2StoresMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Restricts messages -// returned to those matching a filter. +// Filter sets the optional parameter "filter": Restricts messages returned to +// those matching a filter. // Syntax: -// https://cloud.google.com/appengine/docs/standard/python/search -// /query_strings +// https://cloud.google.com/appengine/docs/standard/python/search/query_strings // // Fields/functions available for filtering are: // // * `message_type`, from the MSH-9 segment; for example // `NOT message_type = "ADT" -// * `send_date` or `sendDate`, the YYYY-MM-DD date the message was -// sent in -// the dataset's time_zone, from the MSH-7 segment; for -// example +// * `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent +// in +// the dataset's time_zone, from the MSH-7 segment; for example // `send_date < "2017-01-02" -// * `send_time`, the timestamp when the message was sent, using -// the +// * `send_time`, the timestamp when the message was sent, using the // RFC3339 time format for comparisons, from the MSH-7 segment; for // example // `send_time < "2017-01-02T00:00:00-05:00" @@ -18358,8 +13801,7 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) List(parent string // // Limitations on conjunctions: // -// * Negation on the patient ID function or the labels field is -// not +// * Negation on the patient ID function or the labels field is not // supported, for example these queries are invalid: // `NOT PatientId("123456", "MRN")`, `NOT labels."tag1":*`, // `NOT labels."tag2"="val2". @@ -18367,10 +13809,8 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) List(parent string // for // example this query is invalid: // `PatientId("123456", "MRN") AND PatientId("456789", "MRN")`. -// * Conjunction of multiple labels fields is also not supported, -// for -// example this query is invalid: `labels."tag1":* AND -// labels."tag2"="val2". +// * Conjunction of multiple labels fields is also not supported, for +// example this query is invalid: `labels."tag1":* AND labels."tag2"="val2". // * Conjunction of one patient ID function, one labels field and // conditions // on other fields is supported, for example this query is @@ -18386,13 +13826,12 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Filter(filter str return c } -// OrderBy sets the optional parameter "orderBy": Orders messages -// returned by the specified order_by clause. +// OrderBy sets the optional parameter "orderBy": Orders messages returned by +// the specified order_by clause. // Syntax: // https://cloud.google.com/apis/design/design_patterns#sorting_order // -// Fi -// elds available for ordering are: +// Fields available for ordering are: // // * `send_time` func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall { @@ -18400,50 +13839,45 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) OrderBy(orderBy s return c } -// PageSize sets the optional parameter "pageSize": Limit on the number -// of messages to return in a single response. +// PageSize sets the optional parameter "pageSize": Limit on the number of +// messages to return in a single response. // If zero the default page size of 100 is used. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// next_page_token value returned from the previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from the previous List request, if any. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18452,12 +13886,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Header() http.Hea } func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18474,16 +13903,15 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.list" call. -// Exactly one of *ListMessagesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListMessagesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListMessagesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessagesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18491,17 +13919,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListMessagesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -18514,53 +13942,6 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Lists all the messages in the given HL7v2 store with support for filtering.\n\nNote: HL7v2 messages are indexed asynchronously, so there might be a slight\ndelay between the time a message is created and when it can be found\nthrough a filter.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Restricts messages returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\n\nFields/functions available for filtering are:\n\n* `message_type`, from the MSH-9 segment; for example\n`NOT message_type = \"ADT\"`\n* `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in\nthe dataset's time_zone, from the MSH-7 segment; for example\n`send_date \u003c \"2017-01-02\"`\n* `send_time`, the timestamp when the message was sent, using the\nRFC3339 time format for comparisons, from the MSH-7 segment; for example\n`send_time \u003c \"2017-01-02T00:00:00-05:00\"`\n* `send_facility`, the care center that the message came from, from the\nMSH-4 segment; for example `send_facility = \"ABC\"`\n* `HL7RegExp(expr)`, which does regular expression matching of `expr`\nagainst the message payload using re2 (http://code.google.com/p/re2/)\nsyntax; for example `HL7RegExp(\"^.*\\|.*\\|EMERG\")`\n* `PatientId(value, type)`, which matches if the message lists a patient\nhaving an ID of the given value and type in the PID-2, PID-3, or PID-4\nsegments; for example `PatientId(\"123456\", \"MRN\")`\n* `labels.x`, a string value of the label with key `x` as set using the\nMessage.labels\nmap, for example `labels.\"priority\"=\"high\"`. The operator `:*` can be used\nto assert the existence of a label, for example `labels.\"priority\":*`.\n\nLimitations on conjunctions:\n\n* Negation on the patient ID function or the labels field is not\nsupported, for example these queries are invalid:\n`NOT PatientId(\"123456\", \"MRN\")`, `NOT labels.\"tag1\":*`,\n`NOT labels.\"tag2\"=\"val2\"`.\n* Conjunction of multiple patient ID functions is not supported, for\nexample this query is invalid:\n`PatientId(\"123456\", \"MRN\") AND PatientId(\"456789\", \"MRN\")`.\n* Conjunction of multiple labels fields is also not supported, for\nexample this query is invalid: `labels.\"tag1\":* AND labels.\"tag2\"=\"val2\"`.\n* Conjunction of one patient ID function, one labels field and conditions\non other fields is supported, for example this query is valid:\n`PatientId(\"123456\", \"MRN\") AND labels.\"tag1\":* AND message_type = \"ADT\"`.\n\nThe HasLabel(x) and Label(x) syntax from previous API versions are\ndeprecated; replaced by the `labels.x` syntax.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Orders messages returned by the specified order_by clause.\nSyntax: https://cloud.google.com/apis/design/design_patterns#sorting_order\n\nFields available for ordering are:\n\n* `send_time`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Limit on the number of messages to return in a single response.\nIf zero the default page size of 100 is used.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The next_page_token value returned from the previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Name of the HL7v2 store to retrieve messages from.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+parent}/messages", - // "response": { - // "$ref": "ListMessagesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -18568,7 +13949,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Do(opts ...google // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Pages(ctx context.Context, f func(*ListMessagesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18584,8 +13965,6 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Pages(ctx context } } -// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch": - type ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall struct { s *Service name string @@ -18596,6 +13975,13 @@ type ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall struct { } // Patch: Update the message. +// +// - name: Resource name of the Message, of the +// form +// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/ +// messages/{message_id}`. +// +// Assigned by the server. func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Patch(name string, message *Message) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall { c := &ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -18603,12 +13989,11 @@ func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Patch(name string, return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. For the `FieldMask` +// UpdateMask sets the optional parameter "updateMask": The update mask applies +// to the resource. For the `FieldMask` // definition, // see -// https://developers.google.com/protocol-buffers/docs/re -// ference/google.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask // Only the `labels` field is allowed to be updated. // The labels in the request will be merged with the existing set of // labels. @@ -18619,23 +14004,21 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) UpdateMask(updat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18644,18 +14027,12 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Header() http.He } func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.message) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}") @@ -18668,16 +14045,14 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch" call. -// Exactly one of *Message or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Message.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Message.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18685,17 +14060,17 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Do(opts ...googl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Message{ ServerResponse: googleapi.ServerResponse{ @@ -18708,44 +14083,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Update the message.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages/{messagesId}", - // "httpMethod": "PATCH", - // "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the Message, of the form\n`projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`.\nAssigned by the server.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask\nOnly the `labels` field is allowed to be updated.\nThe labels in the request will be merged with the existing set of labels.\nExisting labels with the same keys will be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "request": { - // "$ref": "Message" - // }, - // "response": { - // "$ref": "Message" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.operations.get": +} type ProjectsLocationsDatasetsOperationsGetCall struct { s *Service @@ -18756,11 +14094,13 @@ type ProjectsLocationsDatasetsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this -// method to poll the operation result at intervals as recommended by -// the API +// Get: Gets the latest state of a long-running operation. Clients can use +// this +// method to poll the operation result at intervals as recommended by the +// API // service. +// +// - name: The name of the operation resource. func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall { c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -18768,33 +14108,29 @@ func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsL } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18803,12 +14139,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18825,16 +14156,14 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18842,17 +14171,17 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -18865,35 +14194,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "healthcare.projects.locations.datasets.operations.list": +} type ProjectsLocationsDatasetsOperationsListCall struct { s *Service @@ -18904,13 +14205,11 @@ type ProjectsLocationsDatasetsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the -// server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the +// server doesn't support this method, it returns `UNIMPLEMENTED`. // -// NOTE: the `name` binding allows API services to override the -// binding +// NOTE: the `name` binding allows API services to override the binding // to use different resource name schemes, such as `users/*/operations`. // To // override the binding, API services can add a binding such @@ -18918,64 +14217,60 @@ type ProjectsLocationsDatasetsOperationsListCall struct { // "/v1/{name=users/*}/operations" to their service configuration. // For backwards compatibility, the default name includes the // operations -// collection id, however overriding users must ensure the name -// binding +// collection id, however overriding users must ensure the name binding // is the parent resource, without the operations collection id. +// +// - name: The name of the operation's parent resource. func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall { c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18984,12 +14279,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19006,16 +14296,15 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19023,17 +14312,17 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -19046,48 +14335,6 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", - // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations", - // "httpMethod": "GET", - // "id": "healthcare.projects.locations.datasets.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha2/{+name}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -19095,7 +14342,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index e9a56651d25..60e97e9f1b8 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -7894,7 +7894,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.get" call. @@ -8025,7 +8025,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.list" call. @@ -8160,7 +8160,7 @@ func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.create" call. @@ -8270,7 +8270,7 @@ func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "sourceDataset": c.sourceDataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.deidentify" call. @@ -8368,7 +8368,7 @@ func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.delete" call. @@ -8476,7 +8476,7 @@ func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.get" call. @@ -8603,7 +8603,7 @@ func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.getIamPolicy" call. @@ -8725,7 +8725,7 @@ func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.list" call. @@ -8857,7 +8857,7 @@ func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.patch" call. @@ -8962,7 +8962,7 @@ func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.setIamPolicy" call. @@ -9070,7 +9070,7 @@ func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.testIamPermissions" call. @@ -9180,7 +9180,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.create" call. @@ -9277,7 +9277,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.delete" call. @@ -9386,7 +9386,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.evaluate" call. @@ -9495,7 +9495,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.export" call. @@ -9603,7 +9603,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.get" call. @@ -9731,7 +9731,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.getIamPolicy" call. @@ -9841,7 +9841,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.import" call. @@ -9991,7 +9991,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.list" call. @@ -10124,7 +10124,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.patch" call. @@ -10230,7 +10230,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.setIamPolicy" call. @@ -10338,7 +10338,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.testIamPermissions" call. @@ -10445,7 +10445,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.create" call. @@ -10540,7 +10540,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.delete" call. @@ -10647,7 +10647,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.get" call. @@ -10800,7 +10800,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.list" call. @@ -10933,7 +10933,7 @@ func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.patch" call. @@ -11038,7 +11038,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "consentStore": c.consentStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.checkDataAccess" call. @@ -11150,7 +11150,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.create" call. @@ -11246,7 +11246,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.delete" call. @@ -11351,7 +11351,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) doReque googleapi.Expand(req.URL, map[string]string{ "consentStore": c.consentStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.evaluateUserConsents" call. @@ -11480,7 +11480,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.get" call. @@ -11607,7 +11607,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.getIamPolicy" call. @@ -11758,7 +11758,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.list" call. @@ -11893,7 +11893,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.patch" call. @@ -12020,7 +12020,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) doReques googleapi.Expand(req.URL, map[string]string{ "consentStore": c.consentStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.queryAccessibleData" call. @@ -12125,7 +12125,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.setIamPolicy" call. @@ -12233,7 +12233,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.testIamPermissions" call. @@ -12346,7 +12346,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.create" call. @@ -12446,7 +12446,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.delete" call. @@ -12553,7 +12553,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.get" call. @@ -12705,7 +12705,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) doR googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.list" call. @@ -12842,7 +12842,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.patch" call. @@ -12944,7 +12944,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.create" call. @@ -13043,7 +13043,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.delete" call. @@ -13150,7 +13150,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.get" call. @@ -13304,7 +13304,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.list" call. @@ -13434,7 +13434,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.activate" call. @@ -13535,7 +13535,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.create" call. @@ -13636,7 +13636,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.delete" call. @@ -13737,7 +13737,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.deleteRevision" call. @@ -13850,7 +13850,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.get" call. @@ -14005,7 +14005,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.list" call. @@ -14182,7 +14182,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.listRevisions" call. @@ -14321,7 +14321,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.patch" call. @@ -14429,7 +14429,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.reject" call. @@ -14537,7 +14537,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.revoke" call. @@ -14638,7 +14638,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.archive" call. @@ -14740,7 +14740,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.create" call. @@ -14836,7 +14836,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.delete" call. @@ -14943,7 +14943,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.get" call. @@ -15095,7 +15095,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.list" call. @@ -15230,7 +15230,7 @@ func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.patch" call. @@ -15358,7 +15358,7 @@ func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy" call. @@ -15463,7 +15463,7 @@ func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy" call. @@ -15571,7 +15571,7 @@ func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) do googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions" call. @@ -15681,7 +15681,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.create" call. @@ -15792,7 +15792,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "sourceStore": c.sourceStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.deidentify" call. @@ -15888,7 +15888,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.delete" call. @@ -15996,7 +15996,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.export" call. @@ -16103,7 +16103,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.get" call. @@ -16210,7 +16210,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.getDICOMStoreMetrics" call. @@ -16338,7 +16338,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.getIamPolicy" call. @@ -16446,7 +16446,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.import" call. @@ -16596,7 +16596,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.list" call. @@ -16729,7 +16729,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.patch" call. @@ -16852,7 +16852,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) doRequest(a "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.searchForInstances" call. @@ -16942,7 +16942,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) doRequest(alt "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.searchForSeries" call. @@ -17033,7 +17033,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) doRequest(alt "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.searchForStudies" call. @@ -17115,7 +17115,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.setBlobStorageSettings" call. @@ -17220,7 +17220,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.setIamPolicy" call. @@ -17330,7 +17330,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) doRequest(alt s "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.storeInstances" call. @@ -17407,7 +17407,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.testIamPermissions" call. @@ -17517,7 +17517,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) googleapi.Expand(req.URL, map[string]string{ "study": c.study, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.getStudyMetrics" call. @@ -17630,7 +17630,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.setBlobStorageSettings" call. @@ -17739,7 +17739,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetri googleapi.Expand(req.URL, map[string]string{ "series": c.series, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.getSeriesMetrics" call. @@ -17851,7 +17851,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetSt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.getStorageInfo" call. @@ -17957,7 +17957,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) doRequest(alt st "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.delete" call. @@ -18080,7 +18080,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) doRequ "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.retrieveMetadata" call. @@ -18171,7 +18171,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) doRequest "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.retrieveStudy" call. @@ -18263,7 +18263,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) doRe "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.searchForInstances" call. @@ -18353,7 +18353,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) doReque "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.searchForSeries" call. @@ -18432,7 +18432,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) doReques "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.storeInstances" call. @@ -18509,7 +18509,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) doRequest( "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.delete" call. @@ -18632,7 +18632,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.retrieveMetadata" call. @@ -18723,7 +18723,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) do "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.retrieveSeries" call. @@ -18815,7 +18815,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.searchForInstances" call. @@ -18892,7 +18892,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) d "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.delete" call. @@ -19017,7 +19017,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInsta "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.retrieveInstance" call. @@ -19111,7 +19111,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetad "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.retrieveMetadata" call. @@ -19205,7 +19205,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRende "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.retrieveRendered" call. @@ -19298,7 +19298,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetri "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.bulkdata.retrieveBulkdata" call. @@ -19390,7 +19390,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetriev "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.frames.retrieveFrames" call. @@ -19484,7 +19484,7 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetriev "parent": c.parent, "dicomWebPath": c.dicomWebPath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.frames.retrieveRendered" call. @@ -19571,7 +19571,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.applyAdminConsents" call. @@ -19686,7 +19686,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.applyConsents" call. @@ -19795,7 +19795,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.configureSearch" call. @@ -19904,7 +19904,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.create" call. @@ -20013,7 +20013,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "sourceStore": c.sourceStore, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.deidentify" call. @@ -20109,7 +20109,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.delete" call. @@ -20226,7 +20226,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.explainDataAccess" call. @@ -20337,7 +20337,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.export" call. @@ -20449,7 +20449,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.exportHistory" call. @@ -20556,7 +20556,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.get" call. @@ -20663,7 +20663,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.getFHIRStoreMetrics" call. @@ -20791,7 +20791,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.getIamPolicy" call. @@ -20949,7 +20949,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.import" call. @@ -21062,7 +21062,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.importHistory" call. @@ -21212,7 +21212,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.list" call. @@ -21346,7 +21346,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.patch" call. @@ -21456,7 +21456,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.rollback" call. @@ -21561,7 +21561,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.setIamPolicy" call. @@ -21669,7 +21669,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.testIamPermissions" call. @@ -21796,7 +21796,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirBinaryCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Binary-create" call. @@ -21880,7 +21880,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirBinaryReadCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Binary-read" call. @@ -21979,7 +21979,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirBinaryUpdateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Binary-update" call. @@ -22063,7 +22063,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirBinaryVreadCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Binary-vread" call. @@ -22193,7 +22193,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.ConceptMap-search-translate" call. @@ -22302,7 +22302,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.ConceptMap-translate" call. @@ -22384,7 +22384,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Consent-enforcement-status" call. @@ -22524,7 +22524,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirEncounterEverythingCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Encounter-everything" call. @@ -22624,7 +22624,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn" call. @@ -22725,7 +22725,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-consent-enforcement-status" call. @@ -22880,7 +22880,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything" call. @@ -23009,7 +23009,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-incoming-references" call. @@ -23078,7 +23078,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge" call. @@ -23211,7 +23211,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) doRequest( "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-validate" call. @@ -23300,7 +23300,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities" call. @@ -23393,7 +23393,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) doRequest "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete" call. @@ -23518,7 +23518,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) doRequest( "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch" call. @@ -23621,7 +23621,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) doRequest "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate" call. @@ -23716,7 +23716,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string "parent": c.parent, "type": c.type_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.create" call. @@ -23790,7 +23790,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.delete" call. @@ -23892,7 +23892,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle" call. @@ -24021,7 +24021,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.history" call. @@ -24101,7 +24101,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.patch" call. @@ -24193,7 +24193,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.read" call. @@ -24330,7 +24330,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.search" call. @@ -24475,7 +24475,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) doRequest(alt st "parent": c.parent, "resourceType": c.resourceType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.search-type" call. @@ -24561,7 +24561,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.update" call. @@ -24648,7 +24648,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.vread" call. @@ -24726,7 +24726,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.create" call. @@ -24822,7 +24822,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.delete" call. @@ -24931,7 +24931,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.export" call. @@ -25038,7 +25038,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.get" call. @@ -25148,7 +25148,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.getHL7v2StoreMetrics" call. @@ -25276,7 +25276,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy" call. @@ -25403,7 +25403,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.import" call. @@ -25553,7 +25553,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.list" call. @@ -25686,7 +25686,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.patch" call. @@ -25796,7 +25796,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresRollbackCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.rollback" call. @@ -25901,7 +25901,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy" call. @@ -26009,7 +26009,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions" call. @@ -26156,7 +26156,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.batchGet" call. @@ -26262,7 +26262,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.create" call. @@ -26357,7 +26357,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete" call. @@ -26493,7 +26493,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.get" call. @@ -26602,7 +26602,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest" call. @@ -26811,7 +26811,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.list" call. @@ -26948,7 +26948,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch" call. @@ -27057,7 +27057,7 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.operations.cancel" call. @@ -27166,7 +27166,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.operations.get" call. @@ -27294,7 +27294,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.datasets.operations.list" call. @@ -27421,7 +27421,7 @@ func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "nlpService": c.nlpService, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "healthcare.projects.locations.services.nlp.analyzeEntities" call. diff --git a/homegraph/v1/homegraph-gen.go b/homegraph/v1/homegraph-gen.go index 140ff669b6e..3a02fc9b343 100644 --- a/homegraph/v1/homegraph-gen.go +++ b/homegraph/v1/homegraph-gen.go @@ -783,7 +783,7 @@ func (c *AgentUsersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "agentUserId": c.agentUserId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "homegraph.agentUsers.delete" call. @@ -880,7 +880,7 @@ func (c *DevicesQueryCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "homegraph.devices.query" call. @@ -986,7 +986,7 @@ func (c *DevicesReportStateAndNotificationCall) doRequest(alt string) (*http.Res return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "homegraph.devices.reportStateAndNotification" call. @@ -1086,7 +1086,7 @@ func (c *DevicesRequestSyncCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "homegraph.devices.requestSync" call. @@ -1184,7 +1184,7 @@ func (c *DevicesSyncCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "homegraph.devices.sync" call. diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index dc431241388..5f41f55c9b9 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -3733,7 +3733,7 @@ func (c *IamPoliciesLintPolicyCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.iamPolicies.lintPolicy" call. @@ -3831,7 +3831,7 @@ func (c *IamPoliciesQueryAuditableServicesCall) doRequest(alt string) (*http.Res return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.iamPolicies.queryAuditableServices" call. @@ -3945,7 +3945,7 @@ func (c *LocationsWorkforcePoolsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.create" call. @@ -4048,7 +4048,7 @@ func (c *LocationsWorkforcePoolsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.delete" call. @@ -4156,7 +4156,7 @@ func (c *LocationsWorkforcePoolsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.get" call. @@ -4259,7 +4259,7 @@ func (c *LocationsWorkforcePoolsGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.getIamPolicy" call. @@ -4397,7 +4397,7 @@ func (c *LocationsWorkforcePoolsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.list" call. @@ -4528,7 +4528,7 @@ func (c *LocationsWorkforcePoolsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.patch" call. @@ -4631,7 +4631,7 @@ func (c *LocationsWorkforcePoolsSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.setIamPolicy" call. @@ -4737,7 +4737,7 @@ func (c *LocationsWorkforcePoolsTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.testIamPermissions" call. @@ -4841,7 +4841,7 @@ func (c *LocationsWorkforcePoolsUndeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.undelete" call. @@ -4950,7 +4950,7 @@ func (c *LocationsWorkforcePoolsOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.operations.get" call. @@ -5063,7 +5063,7 @@ func (c *LocationsWorkforcePoolsProvidersCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.create" call. @@ -5164,7 +5164,7 @@ func (c *LocationsWorkforcePoolsProvidersDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.delete" call. @@ -5273,7 +5273,7 @@ func (c *LocationsWorkforcePoolsProvidersGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.get" call. @@ -5406,7 +5406,7 @@ func (c *LocationsWorkforcePoolsProvidersListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.list" call. @@ -5538,7 +5538,7 @@ func (c *LocationsWorkforcePoolsProvidersPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.patch" call. @@ -5642,7 +5642,7 @@ func (c *LocationsWorkforcePoolsProvidersUndeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.undelete" call. @@ -5752,7 +5752,7 @@ func (c *LocationsWorkforcePoolsProvidersKeysCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.keys.create" call. @@ -5848,7 +5848,7 @@ func (c *LocationsWorkforcePoolsProvidersKeysDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.keys.delete" call. @@ -5955,7 +5955,7 @@ func (c *LocationsWorkforcePoolsProvidersKeysGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.keys.get" call. @@ -6090,7 +6090,7 @@ func (c *LocationsWorkforcePoolsProvidersKeysListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.keys.list" call. @@ -6214,7 +6214,7 @@ func (c *LocationsWorkforcePoolsProvidersKeysUndeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.keys.undelete" call. @@ -6323,7 +6323,7 @@ func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.keys.operations.get" call. @@ -6432,7 +6432,7 @@ func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.providers.operations.get" call. @@ -6544,7 +6544,7 @@ func (c *LocationsWorkforcePoolsSubjectsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.subjects.delete" call. @@ -6651,7 +6651,7 @@ func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.subjects.undelete" call. @@ -6760,7 +6760,7 @@ func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.locations.workforcePools.subjects.operations.get" call. @@ -6880,7 +6880,7 @@ func (c *OrganizationsRolesCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.organizations.roles.create" call. @@ -7013,7 +7013,7 @@ func (c *OrganizationsRolesDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.organizations.roles.delete" call. @@ -7146,7 +7146,7 @@ func (c *OrganizationsRolesGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.organizations.roles.get" call. @@ -7319,7 +7319,7 @@ func (c *OrganizationsRolesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.organizations.roles.list" call. @@ -7470,7 +7470,7 @@ func (c *OrganizationsRolesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.organizations.roles.patch" call. @@ -7592,7 +7592,7 @@ func (c *OrganizationsRolesUndeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.organizations.roles.undelete" call. @@ -7688,7 +7688,7 @@ func (c *PermissionsQueryTestablePermissionsCall) doRequest(alt string) (*http.R return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.permissions.queryTestablePermissions" call. @@ -7824,7 +7824,7 @@ func (c *ProjectsLocationsOauthClientsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.create" call. @@ -7927,7 +7927,7 @@ func (c *ProjectsLocationsOauthClientsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.delete" call. @@ -8035,7 +8035,7 @@ func (c *ProjectsLocationsOauthClientsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.get" call. @@ -8166,7 +8166,7 @@ func (c *ProjectsLocationsOauthClientsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.list" call. @@ -8298,7 +8298,7 @@ func (c *ProjectsLocationsOauthClientsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.patch" call. @@ -8401,7 +8401,7 @@ func (c *ProjectsLocationsOauthClientsUndeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.undelete" call. @@ -8513,7 +8513,7 @@ func (c *ProjectsLocationsOauthClientsCredentialsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.credentials.create" call. @@ -8612,7 +8612,7 @@ func (c *ProjectsLocationsOauthClientsCredentialsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.credentials.delete" call. @@ -8721,7 +8721,7 @@ func (c *ProjectsLocationsOauthClientsCredentialsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.credentials.get" call. @@ -8829,7 +8829,7 @@ func (c *ProjectsLocationsOauthClientsCredentialsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.credentials.list" call. @@ -8940,7 +8940,7 @@ func (c *ProjectsLocationsOauthClientsCredentialsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.oauthClients.credentials.patch" call. @@ -9054,7 +9054,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.create" call. @@ -9156,7 +9156,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.delete" call. @@ -9263,7 +9263,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.get" call. @@ -9395,7 +9395,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.list" call. @@ -9525,7 +9525,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.patch" call. @@ -9627,7 +9627,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.undelete" call. @@ -9736,7 +9736,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsNamespacesManagedIdentitiesOperat googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.namespaces.managedIdentities.operations.get" call. @@ -9845,7 +9845,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsNamespacesManagedIdentitiesWorklo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.namespaces.managedIdentities.workloadSources.operations.get" call. @@ -9954,7 +9954,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsNamespacesOperationsGetCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.namespaces.operations.get" call. @@ -10063,7 +10063,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.operations.get" call. @@ -10176,7 +10176,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.create" call. @@ -10275,7 +10275,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.delete" call. @@ -10382,7 +10382,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.get" call. @@ -10515,7 +10515,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.list" call. @@ -10645,7 +10645,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.patch" call. @@ -10747,7 +10747,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.undelete" call. @@ -10858,7 +10858,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.create" call. @@ -10954,7 +10954,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.delete" call. @@ -11061,7 +11061,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.get" call. @@ -11193,7 +11193,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.list" call. @@ -11317,7 +11317,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.undelete" call. @@ -11426,7 +11426,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysOperationsGetCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.operations.get" call. @@ -11535,7 +11535,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersOperationsGetCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.locations.workloadIdentityPools.providers.operations.get" call. @@ -11655,7 +11655,7 @@ func (c *ProjectsRolesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.roles.create" call. @@ -11788,7 +11788,7 @@ func (c *ProjectsRolesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.roles.delete" call. @@ -11921,7 +11921,7 @@ func (c *ProjectsRolesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.roles.get" call. @@ -12094,7 +12094,7 @@ func (c *ProjectsRolesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.roles.list" call. @@ -12245,7 +12245,7 @@ func (c *ProjectsRolesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.roles.patch" call. @@ -12367,7 +12367,7 @@ func (c *ProjectsRolesUndeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.roles.undelete" call. @@ -12469,7 +12469,7 @@ func (c *ProjectsServiceAccountsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.create" call. @@ -12584,7 +12584,7 @@ func (c *ProjectsServiceAccountsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.delete" call. @@ -12705,7 +12705,7 @@ func (c *ProjectsServiceAccountsDisableCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.disable" call. @@ -12820,7 +12820,7 @@ func (c *ProjectsServiceAccountsEnableCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.enable" call. @@ -12937,7 +12937,7 @@ func (c *ProjectsServiceAccountsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.get" call. @@ -13059,7 +13059,7 @@ func (c *ProjectsServiceAccountsGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.getIamPolicy" call. @@ -13184,7 +13184,7 @@ func (c *ProjectsServiceAccountsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.list" call. @@ -13317,7 +13317,7 @@ func (c *ProjectsServiceAccountsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.patch" call. @@ -13432,7 +13432,7 @@ func (c *ProjectsServiceAccountsSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.setIamPolicy" call. @@ -13551,7 +13551,7 @@ func (c *ProjectsServiceAccountsSignBlobCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.signBlob" call. @@ -13671,7 +13671,7 @@ func (c *ProjectsServiceAccountsSignJwtCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.signJwt" call. @@ -13777,7 +13777,7 @@ func (c *ProjectsServiceAccountsTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.testIamPermissions" call. @@ -13893,7 +13893,7 @@ func (c *ProjectsServiceAccountsUndeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.undelete" call. @@ -14007,7 +14007,7 @@ func (c *ProjectsServiceAccountsUpdateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.update" call. @@ -14118,7 +14118,7 @@ func (c *ProjectsServiceAccountsKeysCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.keys.create" call. @@ -14228,7 +14228,7 @@ func (c *ProjectsServiceAccountsKeysDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.keys.delete" call. @@ -14342,7 +14342,7 @@ func (c *ProjectsServiceAccountsKeysDisableCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.keys.disable" call. @@ -14455,7 +14455,7 @@ func (c *ProjectsServiceAccountsKeysEnableCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.keys.enable" call. @@ -14588,7 +14588,7 @@ func (c *ProjectsServiceAccountsKeysGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.keys.get" call. @@ -14723,7 +14723,7 @@ func (c *ProjectsServiceAccountsKeysListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.keys.list" call. @@ -14838,7 +14838,7 @@ func (c *ProjectsServiceAccountsKeysUploadCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.projects.serviceAccounts.keys.upload" call. @@ -14972,7 +14972,7 @@ func (c *RolesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.roles.get" call. @@ -15142,7 +15142,7 @@ func (c *RolesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.roles.list" call. @@ -15260,7 +15260,7 @@ func (c *RolesQueryGrantableRolesCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.roles.queryGrantableRoles" call. diff --git a/iam/v2/iam-gen.go b/iam/v2/iam-gen.go index 68433e6b73d..dc2d4efdb54 100644 --- a/iam/v2/iam-gen.go +++ b/iam/v2/iam-gen.go @@ -991,7 +991,7 @@ func (c *PoliciesCreatePolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.createPolicy" call. @@ -1103,7 +1103,7 @@ func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.delete" call. @@ -1218,7 +1218,7 @@ func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.get" call. @@ -1350,7 +1350,7 @@ func (c *PoliciesListPoliciesCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.listPolicies" call. @@ -1486,7 +1486,7 @@ func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.update" call. @@ -1596,7 +1596,7 @@ func (c *PoliciesOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.operations.get" call. diff --git a/iam/v2beta/iam-gen.go b/iam/v2beta/iam-gen.go index 3c808a0a9a8..40467f0bbc0 100644 --- a/iam/v2beta/iam-gen.go +++ b/iam/v2beta/iam-gen.go @@ -991,7 +991,7 @@ func (c *PoliciesCreatePolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.createPolicy" call. @@ -1103,7 +1103,7 @@ func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.delete" call. @@ -1218,7 +1218,7 @@ func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.get" call. @@ -1350,7 +1350,7 @@ func (c *PoliciesListPoliciesCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.listPolicies" call. @@ -1486,7 +1486,7 @@ func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.update" call. @@ -1596,7 +1596,7 @@ func (c *PoliciesOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iam.policies.operations.get" call. diff --git a/iamcredentials/v1/iamcredentials-gen.go b/iamcredentials/v1/iamcredentials-gen.go index f0c69484583..9b151c73279 100644 --- a/iamcredentials/v1/iamcredentials-gen.go +++ b/iamcredentials/v1/iamcredentials-gen.go @@ -511,7 +511,7 @@ func (c *ProjectsServiceAccountsGenerateAccessTokenCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iamcredentials.projects.serviceAccounts.generateAccessToken" call. @@ -616,7 +616,7 @@ func (c *ProjectsServiceAccountsGenerateIdTokenCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iamcredentials.projects.serviceAccounts.generateIdToken" call. @@ -721,7 +721,7 @@ func (c *ProjectsServiceAccountsSignBlobCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iamcredentials.projects.serviceAccounts.signBlob" call. @@ -826,7 +826,7 @@ func (c *ProjectsServiceAccountsSignJwtCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iamcredentials.projects.serviceAccounts.signJwt" call. diff --git a/iap/v1/iap-gen.go b/iap/v1/iap-gen.go index 3e69aca1685..33379530ac8 100644 --- a/iap/v1/iap-gen.go +++ b/iap/v1/iap-gen.go @@ -1578,7 +1578,7 @@ func (c *ProjectsBrandsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.brands.create" call. @@ -1686,7 +1686,7 @@ func (c *ProjectsBrandsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.brands.get" call. @@ -1794,7 +1794,7 @@ func (c *ProjectsBrandsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.brands.list" call. @@ -1900,7 +1900,7 @@ func (c *ProjectsBrandsIdentityAwareProxyClientsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.brands.identityAwareProxyClients.create" call. @@ -2002,7 +2002,7 @@ func (c *ProjectsBrandsIdentityAwareProxyClientsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.brands.identityAwareProxyClients.delete" call. @@ -2113,7 +2113,7 @@ func (c *ProjectsBrandsIdentityAwareProxyClientsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.brands.identityAwareProxyClients.get" call. @@ -2241,7 +2241,7 @@ func (c *ProjectsBrandsIdentityAwareProxyClientsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.brands.identityAwareProxyClients.list" call. @@ -2369,7 +2369,7 @@ func (c *ProjectsBrandsIdentityAwareProxyClientsResetSecretCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.brands.identityAwareProxyClients.resetSecret" call. @@ -2481,7 +2481,7 @@ func (c *ProjectsIapTunnelLocationsDestGroupsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.iap_tunnel.locations.destGroups.create" call. @@ -2579,7 +2579,7 @@ func (c *ProjectsIapTunnelLocationsDestGroupsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.iap_tunnel.locations.destGroups.delete" call. @@ -2688,7 +2688,7 @@ func (c *ProjectsIapTunnelLocationsDestGroupsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.iap_tunnel.locations.destGroups.get" call. @@ -2818,7 +2818,7 @@ func (c *ProjectsIapTunnelLocationsDestGroupsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.iap_tunnel.locations.destGroups.list" call. @@ -2952,7 +2952,7 @@ func (c *ProjectsIapTunnelLocationsDestGroupsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.projects.iap_tunnel.locations.destGroups.patch" call. @@ -3059,7 +3059,7 @@ func (c *V1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.getIamPolicy" call. @@ -3168,7 +3168,7 @@ func (c *V1GetIapSettingsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.getIapSettings" call. @@ -3274,7 +3274,7 @@ func (c *V1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.setIamPolicy" call. @@ -3381,7 +3381,7 @@ func (c *V1TestIamPermissionsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.testIamPermissions" call. @@ -3495,7 +3495,7 @@ func (c *V1UpdateIapSettingsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.updateIapSettings" call. @@ -3600,7 +3600,7 @@ func (c *V1ValidateAttributeExpressionCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.validateAttributeExpression" call. diff --git a/iap/v1beta1/iap-gen.go b/iap/v1beta1/iap-gen.go index b43886d468e..7809c5ab60b 100644 --- a/iap/v1beta1/iap-gen.go +++ b/iap/v1beta1/iap-gen.go @@ -598,7 +598,7 @@ func (c *V1beta1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.getIamPolicy" call. @@ -704,7 +704,7 @@ func (c *V1beta1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.setIamPolicy" call. @@ -813,7 +813,7 @@ func (c *V1beta1TestIamPermissionsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "iap.testIamPermissions" call. diff --git a/ideahub/v1alpha/ideahub-gen.go b/ideahub/v1alpha/ideahub-gen.go index 5f2720fb673..88688f2406f 100644 --- a/ideahub/v1alpha/ideahub-gen.go +++ b/ideahub/v1alpha/ideahub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://console.cloud.google.com/apis/library/ideahub.googleapis.com // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // ideahubService, err := ideahub.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // ideahubService, err := ideahub.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // ideahubService, err := ideahub.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package ideahub // import "google.golang.org/api/ideahub/v1alpha" import ( @@ -71,17 +84,21 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "ideahub:v1alpha" const apiName = "ideahub" const apiVersion = "v1alpha" const basePath = "https://ideahub.googleapis.com/" +const basePathTemplate = "https://ideahub.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://ideahub.mtls.googleapis.com/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -218,326 +235,251 @@ type PlatformsPropertiesTopicStatesService struct { s *Service } -// GoogleSearchIdeahubV1alphaAvailableLocale: Represents locales that -// are available for a web property. +// GoogleSearchIdeahubV1alphaAvailableLocale: Represents locales that are +// available for a web property. type GoogleSearchIdeahubV1alphaAvailableLocale struct { // Locale: A string in BCP 47 format, without a resource prefix. Locale string `json:"locale,omitempty"` - - // Name: A string in BCP 47 format, prefixed with the platform and - // property name, and "locales/". Format: + // Name: A string in BCP 47 format, prefixed with the platform and property + // name, and "locales/". Format: // platforms/{platform}/properties/{property}/locales/{locale} Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Locale") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Locale") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locale") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1alphaAvailableLocale) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1alphaAvailableLocale) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1alphaAvailableLocale - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleSearchIdeahubV1alphaIdea: A single Idea that we want to show -// the end user. +// GoogleSearchIdeahubV1alphaIdea: A single Idea that we want to show the end +// user. type GoogleSearchIdeahubV1alphaIdea struct { // Name: Unique identifier for the idea. Format: ideas/{ideaId} Name string `json:"name,omitempty"` - // Text: The idea’s text. Text string `json:"text,omitempty"` - // Topics: The Topics that match the idea. Topics []*GoogleSearchIdeahubV1alphaTopic `json:"topics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1alphaIdea) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1alphaIdea) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1alphaIdea - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleSearchIdeahubV1alphaIdeaActivity: An idea activity entry. type GoogleSearchIdeahubV1alphaIdeaActivity struct { // Ideas: The Idea IDs for this entry. If empty, topics should be set. Ideas []string `json:"ideas,omitempty"` - - // Name: Unique identifier for the idea activity. The name is ignored - // when creating an idea activity. Format: - // platforms/{platform}/properties/{property}/ideaActivities/{idea_activi - // ty} + // Name: Unique identifier for the idea activity. The name is ignored when + // creating an idea activity. Format: + // platforms/{platform}/properties/{property}/ideaActivities/{idea_activity} Name string `json:"name,omitempty"` - // Topics: The Topic IDs for this entry. If empty, ideas should be set. Topics []string `json:"topics,omitempty"` - // Type: The type of activity performed. // // Possible values: // "TYPE_UNSPECIFIED" - An unspecified, unknown type of idea activity. - // "POST_DRAFTED" - An idea activity type indicating a post has been - // drafted. + // "POST_DRAFTED" - An idea activity type indicating a post has been drafted. // "POST_PUBLISHED" - An idea activity type indicating a post has been // published. - // "POST_DELETED" - An idea activity type indicating a post has been - // deleted. - // "POST_UNPUBLISHED" - An idea activity type indicating a post has - // been unpublished. + // "POST_DELETED" - An idea activity type indicating a post has been deleted. + // "POST_UNPUBLISHED" - An idea activity type indicating a post has been + // unpublished. Type string `json:"type,omitempty"` - // Uri: The uri the activity relates to. Uri string `json:"uri,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Ideas") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ideas") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Ideas") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1alphaIdeaActivity) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1alphaIdeaActivity) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1alphaIdeaActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleSearchIdeahubV1alphaIdeaState: Represents idea state specific -// to a web property. +// GoogleSearchIdeahubV1alphaIdeaState: Represents idea state specific to a web +// property. type GoogleSearchIdeahubV1alphaIdeaState struct { // Dismissed: Whether the idea is dismissed. Dismissed bool `json:"dismissed,omitempty"` - // Name: Unique identifier for the idea state. Format: // platforms/{platform}/properties/{property}/ideaStates/{idea_state} Name string `json:"name,omitempty"` - // Saved: Whether the idea is saved. Saved bool `json:"saved,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Dismissed") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dismissed") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dismissed") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1alphaIdeaState) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1alphaIdeaState) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1alphaIdeaState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleSearchIdeahubV1alphaListAvailableLocalesResponse: Response for -// whether ideas are available for a given web property on a platform, -// for the currently logged-in user. +// GoogleSearchIdeahubV1alphaListAvailableLocalesResponse: Response for whether +// ideas are available for a given web property on a platform, for the +// currently logged-in user. type GoogleSearchIdeahubV1alphaListAvailableLocalesResponse struct { // AvailableLocales: Locales for which ideas are available for the given // Creator. AvailableLocales []*GoogleSearchIdeahubV1alphaAvailableLocale `json:"availableLocales,omitempty"` - - // NextPageToken: A token that can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AvailableLocales") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AvailableLocales") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AvailableLocales") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1alphaListAvailableLocalesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1alphaListAvailableLocalesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1alphaListAvailableLocalesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleSearchIdeahubV1alphaListIdeasResponse struct { // Ideas: Results for the ListIdeasRequest. Ideas []*GoogleSearchIdeahubV1alphaIdea `json:"ideas,omitempty"` - // NextPageToken: Used to fetch the next page in a subsequent request. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Ideas") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ideas") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Ideas") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1alphaListIdeasResponse) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1alphaListIdeasResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1alphaListIdeasResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleSearchIdeahubV1alphaTopic: Represents a Topic umbrella for a -// list of questions that a Creator may want to respond to. +// GoogleSearchIdeahubV1alphaTopic: Represents a Topic umbrella for a list of +// questions that a Creator may want to respond to. type GoogleSearchIdeahubV1alphaTopic struct { - // DisplayName: String displayed to the creator indicating the name of - // the Topic. + // DisplayName: String displayed to the creator indicating the name of the + // Topic. DisplayName string `json:"displayName,omitempty"` - // Mid: The mID of the topic. Mid string `json:"mid,omitempty"` - // Name: Unique identifier for the topic. Format: topics/{topic} Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1alphaTopic) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1alphaTopic) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1alphaTopic - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleSearchIdeahubV1alphaTopicState: Represents topic state specific -// to a web property. +// GoogleSearchIdeahubV1alphaTopicState: Represents topic state specific to a +// web property. type GoogleSearchIdeahubV1alphaTopicState struct { // Dismissed: Whether the topic is dismissed. Dismissed bool `json:"dismissed,omitempty"` - // Name: Unique identifier for the topic state. Format: // platforms/{platform}/properties/{property}/topicStates/{topic_state} Name string `json:"name,omitempty"` - // Saved: Whether the topic is saved. Saved bool `json:"saved,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Dismissed") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dismissed") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dismissed") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1alphaTopicState) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1alphaTopicState) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1alphaTopicState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "ideahub.ideas.list": - type IdeasListCall struct { s *Service urlParams_ gensupport.URLParams @@ -552,46 +494,45 @@ func (r *IdeasService) List() *IdeasListCall { return c } -// Filter sets the optional parameter "filter": Allows filtering. -// Supported syntax: * Filter expressions are made up of one or more -// restrictions. * Restrictions are implicitly combined, as if the `AND` -// operator was always used. The `OR` operator is currently unsupported. -// * Supported functions: - `saved(bool)`: If set to true, fetches only -// saved ideas. If set to false, fetches all except saved ideas. Can't -// be simultaneously used with `dismissed(bool)`. - `dismissed(bool)`: -// If set to true, fetches only dismissed ideas. Can't be simultaneously -// used with `saved(bool)`. The `false` value is currently unsupported. -// Examples: * `saved(true)` * `saved(false)` * `dismissed(true)` The -// length of this field should be no more than 500 characters. +// Filter sets the optional parameter "filter": Allows filtering. Supported +// syntax: * Filter expressions are made up of one or more restrictions. * +// Restrictions are implicitly combined, as if the `AND` operator was always +// used. The `OR` operator is currently unsupported. * Supported functions: - +// `saved(bool)`: If set to true, fetches only saved ideas. If set to false, +// fetches all except saved ideas. Can't be simultaneously used with +// `dismissed(bool)`. - `dismissed(bool)`: If set to true, fetches only +// dismissed ideas. Can't be simultaneously used with `saved(bool)`. The +// `false` value is currently unsupported. Examples: * `saved(true)` * +// `saved(false)` * `dismissed(true)` The length of this field should be no +// more than 500 characters. func (c *IdeasListCall) Filter(filter string) *IdeasListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Order semantics -// described below. +// OrderBy sets the optional parameter "orderBy": Order semantics described +// below. func (c *IdeasListCall) OrderBy(orderBy string) *IdeasListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of ideas per page. If unspecified, at most 10 ideas will be returned. -// The maximum value is 2000; values above 2000 will be coerced to 2000. +// PageSize sets the optional parameter "pageSize": The maximum number of ideas +// per page. If unspecified, at most 10 ideas will be returned. The maximum +// value is 2000; values above 2000 will be coerced to 2000. func (c *IdeasListCall) PageSize(pageSize int64) *IdeasListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Used to fetch next -// page. +// PageToken sets the optional parameter "pageToken": Used to fetch next page. func (c *IdeasListCall) PageToken(pageToken string) *IdeasListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Parent sets the optional parameter "parent": If defined, specifies -// the creator for which to filter by. Format: +// Parent sets the optional parameter "parent": If defined, specifies the +// creator for which to filter by. Format: // publishers/{publisher}/properties/{property} func (c *IdeasListCall) Parent(parent string) *IdeasListCall { c.urlParams_.Set("parent", parent) @@ -599,33 +540,29 @@ func (c *IdeasListCall) Parent(parent string) *IdeasListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *IdeasListCall) Fields(s ...googleapi.Field) *IdeasListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *IdeasListCall) IfNoneMatch(entityTag string) *IdeasListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *IdeasListCall) Context(ctx context.Context) *IdeasListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *IdeasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -634,12 +571,7 @@ func (c *IdeasListCall) Header() http.Header { } func (c *IdeasListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -653,18 +585,15 @@ func (c *IdeasListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.ideas.list" call. -// Exactly one of *GoogleSearchIdeahubV1alphaListIdeasResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleSearchIdeahubV1alphaListIdeasResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleSearchIdeahubV1alphaListIdeasResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *IdeasListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1alphaListIdeasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -695,46 +624,6 @@ func (c *IdeasListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1 return nil, err } return ret, nil - // { - // "description": "List ideas for a given Creator and filter and sort options.", - // "flatPath": "v1alpha/ideas", - // "httpMethod": "GET", - // "id": "ideahub.ideas.list", - // "parameterOrder": [], - // "parameters": { - // "filter": { - // "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions are implicitly combined, as if the `AND` operator was always used. The `OR` operator is currently unsupported. * Supported functions: - `saved(bool)`: If set to true, fetches only saved ideas. If set to false, fetches all except saved ideas. Can't be simultaneously used with `dismissed(bool)`. - `dismissed(bool)`: If set to true, fetches only dismissed ideas. Can't be simultaneously used with `saved(bool)`. The `false` value is currently unsupported. Examples: * `saved(true)` * `saved(false)` * `dismissed(true)` The length of this field should be no more than 500 characters.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Order semantics described below.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of ideas per page. If unspecified, at most 10 ideas will be returned. The maximum value is 2000; values above 2000 will be coerced to 2000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Used to fetch next page.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "If defined, specifies the creator for which to filter by. Format: publishers/{publisher}/properties/{property}", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/ideas", - // "response": { - // "$ref": "GoogleSearchIdeahubV1alphaListIdeasResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -742,7 +631,7 @@ func (c *IdeasListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1 // The provided context supersedes any context provided to the Context method. func (c *IdeasListCall) Pages(ctx context.Context, f func(*GoogleSearchIdeahubV1alphaListIdeasResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -758,8 +647,6 @@ func (c *IdeasListCall) Pages(ctx context.Context, f func(*GoogleSearchIdeahubV1 } } -// method id "ideahub.platforms.properties.ideaActivities.create": - type PlatformsPropertiesIdeaActivitiesCreateCall struct { s *Service parent string @@ -771,8 +658,8 @@ type PlatformsPropertiesIdeaActivitiesCreateCall struct { // Create: Creates an idea activity entry. // -// - parent: The parent resource where this idea activity will be -// created. Format: platforms/{platform}/property/{property}. +// - parent: The parent resource where this idea activity will be created. +// Format: platforms/{platform}/property/{property}. func (r *PlatformsPropertiesIdeaActivitiesService) Create(parent string, googlesearchideahubv1alphaideaactivity *GoogleSearchIdeahubV1alphaIdeaActivity) *PlatformsPropertiesIdeaActivitiesCreateCall { c := &PlatformsPropertiesIdeaActivitiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -781,23 +668,21 @@ func (r *PlatformsPropertiesIdeaActivitiesService) Create(parent string, googles } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeaActivitiesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Context(ctx context.Context) *PlatformsPropertiesIdeaActivitiesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -806,18 +691,12 @@ func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Header() http.Header { } func (c *PlatformsPropertiesIdeaActivitiesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlesearchideahubv1alphaideaactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/ideaActivities") @@ -830,17 +709,15 @@ func (c *PlatformsPropertiesIdeaActivitiesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.platforms.properties.ideaActivities.create" call. -// Exactly one of *GoogleSearchIdeahubV1alphaIdeaActivity or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleSearchIdeahubV1alphaIdeaActivity.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleSearchIdeahubV1alphaIdeaActivity.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1alphaIdeaActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -871,35 +748,7 @@ func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Creates an idea activity entry.", - // "flatPath": "v1alpha/platforms/{platformsId}/properties/{propertiesId}/ideaActivities", - // "httpMethod": "POST", - // "id": "ideahub.platforms.properties.ideaActivities.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent resource where this idea activity will be created. Format: platforms/{platform}/property/{property}", - // "location": "path", - // "pattern": "^platforms/[^/]+/properties/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/ideaActivities", - // "request": { - // "$ref": "GoogleSearchIdeahubV1alphaIdeaActivity" - // }, - // "response": { - // "$ref": "GoogleSearchIdeahubV1alphaIdeaActivity" - // } - // } - -} - -// method id "ideahub.platforms.properties.ideaStates.patch": +} type PlatformsPropertiesIdeaStatesPatchCall struct { s *Service @@ -921,31 +770,29 @@ func (r *PlatformsPropertiesIdeaStatesService) Patch(nameid string, googlesearch return c } -// UpdateMask sets the optional parameter "updateMask": The list of -// fields to be updated. +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. func (c *PlatformsPropertiesIdeaStatesPatchCall) UpdateMask(updateMask string) *PlatformsPropertiesIdeaStatesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformsPropertiesIdeaStatesPatchCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeaStatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformsPropertiesIdeaStatesPatchCall) Context(ctx context.Context) *PlatformsPropertiesIdeaStatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformsPropertiesIdeaStatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -954,18 +801,12 @@ func (c *PlatformsPropertiesIdeaStatesPatchCall) Header() http.Header { } func (c *PlatformsPropertiesIdeaStatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlesearchideahubv1alphaideastate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -978,17 +819,15 @@ func (c *PlatformsPropertiesIdeaStatesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.platforms.properties.ideaStates.patch" call. -// Exactly one of *GoogleSearchIdeahubV1alphaIdeaState or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleSearchIdeahubV1alphaIdeaState.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleSearchIdeahubV1alphaIdeaState.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformsPropertiesIdeaStatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1alphaIdeaState, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1019,41 +858,7 @@ func (c *PlatformsPropertiesIdeaStatesPatchCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Update an idea state resource.", - // "flatPath": "v1alpha/platforms/{platformsId}/properties/{propertiesId}/ideaStates/{ideaStatesId}", - // "httpMethod": "PATCH", - // "id": "ideahub.platforms.properties.ideaStates.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Unique identifier for the idea state. Format: platforms/{platform}/properties/{property}/ideaStates/{idea_state}", - // "location": "path", - // "pattern": "^platforms/[^/]+/properties/[^/]+/ideaStates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The list of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleSearchIdeahubV1alphaIdeaState" - // }, - // "response": { - // "$ref": "GoogleSearchIdeahubV1alphaIdeaState" - // } - // } - -} - -// method id "ideahub.platforms.properties.ideas.list": +} type PlatformsPropertiesIdeasListCall struct { s *Service @@ -1066,80 +871,75 @@ type PlatformsPropertiesIdeasListCall struct { // List: List ideas for a given Creator and filter and sort options. // -// - parent: If defined, specifies the creator for which to filter by. -// Format: publishers/{publisher}/properties/{property}. +// - parent: If defined, specifies the creator for which to filter by. Format: +// publishers/{publisher}/properties/{property}. func (r *PlatformsPropertiesIdeasService) List(parent string) *PlatformsPropertiesIdeasListCall { c := &PlatformsPropertiesIdeasListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Allows filtering. -// Supported syntax: * Filter expressions are made up of one or more -// restrictions. * Restrictions are implicitly combined, as if the `AND` -// operator was always used. The `OR` operator is currently unsupported. -// * Supported functions: - `saved(bool)`: If set to true, fetches only -// saved ideas. If set to false, fetches all except saved ideas. Can't -// be simultaneously used with `dismissed(bool)`. - `dismissed(bool)`: -// If set to true, fetches only dismissed ideas. Can't be simultaneously -// used with `saved(bool)`. The `false` value is currently unsupported. -// Examples: * `saved(true)` * `saved(false)` * `dismissed(true)` The -// length of this field should be no more than 500 characters. +// Filter sets the optional parameter "filter": Allows filtering. Supported +// syntax: * Filter expressions are made up of one or more restrictions. * +// Restrictions are implicitly combined, as if the `AND` operator was always +// used. The `OR` operator is currently unsupported. * Supported functions: - +// `saved(bool)`: If set to true, fetches only saved ideas. If set to false, +// fetches all except saved ideas. Can't be simultaneously used with +// `dismissed(bool)`. - `dismissed(bool)`: If set to true, fetches only +// dismissed ideas. Can't be simultaneously used with `saved(bool)`. The +// `false` value is currently unsupported. Examples: * `saved(true)` * +// `saved(false)` * `dismissed(true)` The length of this field should be no +// more than 500 characters. func (c *PlatformsPropertiesIdeasListCall) Filter(filter string) *PlatformsPropertiesIdeasListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Order semantics -// described below. +// OrderBy sets the optional parameter "orderBy": Order semantics described +// below. func (c *PlatformsPropertiesIdeasListCall) OrderBy(orderBy string) *PlatformsPropertiesIdeasListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of ideas per page. If unspecified, at most 10 ideas will be returned. -// The maximum value is 2000; values above 2000 will be coerced to 2000. +// PageSize sets the optional parameter "pageSize": The maximum number of ideas +// per page. If unspecified, at most 10 ideas will be returned. The maximum +// value is 2000; values above 2000 will be coerced to 2000. func (c *PlatformsPropertiesIdeasListCall) PageSize(pageSize int64) *PlatformsPropertiesIdeasListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Used to fetch next -// page. +// PageToken sets the optional parameter "pageToken": Used to fetch next page. func (c *PlatformsPropertiesIdeasListCall) PageToken(pageToken string) *PlatformsPropertiesIdeasListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformsPropertiesIdeasListCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeasListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformsPropertiesIdeasListCall) IfNoneMatch(entityTag string) *PlatformsPropertiesIdeasListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformsPropertiesIdeasListCall) Context(ctx context.Context) *PlatformsPropertiesIdeasListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformsPropertiesIdeasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1148,12 +948,7 @@ func (c *PlatformsPropertiesIdeasListCall) Header() http.Header { } func (c *PlatformsPropertiesIdeasListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1170,18 +965,15 @@ func (c *PlatformsPropertiesIdeasListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.platforms.properties.ideas.list" call. -// Exactly one of *GoogleSearchIdeahubV1alphaListIdeasResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleSearchIdeahubV1alphaListIdeasResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleSearchIdeahubV1alphaListIdeasResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformsPropertiesIdeasListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1alphaListIdeasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1212,50 +1004,6 @@ func (c *PlatformsPropertiesIdeasListCall) Do(opts ...googleapi.CallOption) (*Go return nil, err } return ret, nil - // { - // "description": "List ideas for a given Creator and filter and sort options.", - // "flatPath": "v1alpha/platforms/{platformsId}/properties/{propertiesId}/ideas", - // "httpMethod": "GET", - // "id": "ideahub.platforms.properties.ideas.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions are implicitly combined, as if the `AND` operator was always used. The `OR` operator is currently unsupported. * Supported functions: - `saved(bool)`: If set to true, fetches only saved ideas. If set to false, fetches all except saved ideas. Can't be simultaneously used with `dismissed(bool)`. - `dismissed(bool)`: If set to true, fetches only dismissed ideas. Can't be simultaneously used with `saved(bool)`. The `false` value is currently unsupported. Examples: * `saved(true)` * `saved(false)` * `dismissed(true)` The length of this field should be no more than 500 characters.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Order semantics described below.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of ideas per page. If unspecified, at most 10 ideas will be returned. The maximum value is 2000; values above 2000 will be coerced to 2000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Used to fetch next page.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "If defined, specifies the creator for which to filter by. Format: publishers/{publisher}/properties/{property}", - // "location": "path", - // "pattern": "^platforms/[^/]+/properties/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/ideas", - // "response": { - // "$ref": "GoogleSearchIdeahubV1alphaListIdeasResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -1263,7 +1011,7 @@ func (c *PlatformsPropertiesIdeasListCall) Do(opts ...googleapi.CallOption) (*Go // The provided context supersedes any context provided to the Context method. func (c *PlatformsPropertiesIdeasListCall) Pages(ctx context.Context, f func(*GoogleSearchIdeahubV1alphaListIdeasResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1279,8 +1027,6 @@ func (c *PlatformsPropertiesIdeasListCall) Pages(ctx context.Context, f func(*Go } } -// method id "ideahub.platforms.properties.locales.list": - type PlatformsPropertiesLocalesListCall struct { s *Service parent string @@ -1290,8 +1036,7 @@ type PlatformsPropertiesLocalesListCall struct { header_ http.Header } -// List: Returns which locales ideas are available in for a given -// Creator. +// List: Returns which locales ideas are available in for a given Creator. // // - parent: The web property to check idea availability for Format: // platforms/{platform}/property/{property}. @@ -1301,53 +1046,48 @@ func (r *PlatformsPropertiesLocalesService) List(parent string) *PlatformsProper return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of locales to return. The service may return fewer than this value. -// If unspecified, at most 100 locales will be returned. The maximum -// value is 100; values above 100 will be coerced to 100. +// PageSize sets the optional parameter "pageSize": The maximum number of +// locales to return. The service may return fewer than this value. If +// unspecified, at most 100 locales will be returned. The maximum value is 100; +// values above 100 will be coerced to 100. func (c *PlatformsPropertiesLocalesListCall) PageSize(pageSize int64) *PlatformsPropertiesLocalesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListAvailableLocales` call. Provide this to -// retrieve the subsequent page. When paginating, all other parameters -// provided to `ListAvailableLocales` must match the call that provided -// the page token. +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListAvailableLocales` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListAvailableLocales` must match the call that provided the page token. func (c *PlatformsPropertiesLocalesListCall) PageToken(pageToken string) *PlatformsPropertiesLocalesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformsPropertiesLocalesListCall) Fields(s ...googleapi.Field) *PlatformsPropertiesLocalesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformsPropertiesLocalesListCall) IfNoneMatch(entityTag string) *PlatformsPropertiesLocalesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformsPropertiesLocalesListCall) Context(ctx context.Context) *PlatformsPropertiesLocalesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformsPropertiesLocalesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1356,12 +1096,7 @@ func (c *PlatformsPropertiesLocalesListCall) Header() http.Header { } func (c *PlatformsPropertiesLocalesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1378,19 +1113,17 @@ func (c *PlatformsPropertiesLocalesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.platforms.properties.locales.list" call. -// Exactly one of -// *GoogleSearchIdeahubV1alphaListAvailableLocalesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleSearchIdeahubV1alphaListAvailableLocalesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleSearchIdeahubV1alphaListAvailableLocalesResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformsPropertiesLocalesListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1alphaListAvailableLocalesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1421,40 +1154,6 @@ func (c *PlatformsPropertiesLocalesListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Returns which locales ideas are available in for a given Creator.", - // "flatPath": "v1alpha/platforms/{platformsId}/properties/{propertiesId}/locales", - // "httpMethod": "GET", - // "id": "ideahub.platforms.properties.locales.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of locales to return. The service may return fewer than this value. If unspecified, at most 100 locales will be returned. The maximum value is 100; values above 100 will be coerced to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListAvailableLocales` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAvailableLocales` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The web property to check idea availability for Format: platforms/{platform}/property/{property}", - // "location": "path", - // "pattern": "^platforms/[^/]+/properties/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/locales", - // "response": { - // "$ref": "GoogleSearchIdeahubV1alphaListAvailableLocalesResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -1462,7 +1161,7 @@ func (c *PlatformsPropertiesLocalesListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *PlatformsPropertiesLocalesListCall) Pages(ctx context.Context, f func(*GoogleSearchIdeahubV1alphaListAvailableLocalesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1478,8 +1177,6 @@ func (c *PlatformsPropertiesLocalesListCall) Pages(ctx context.Context, f func(* } } -// method id "ideahub.platforms.properties.topicStates.patch": - type PlatformsPropertiesTopicStatesPatchCall struct { s *Service nameid string @@ -1500,31 +1197,29 @@ func (r *PlatformsPropertiesTopicStatesService) Patch(nameid string, googlesearc return c } -// UpdateMask sets the optional parameter "updateMask": The list of -// fields to be updated. +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. func (c *PlatformsPropertiesTopicStatesPatchCall) UpdateMask(updateMask string) *PlatformsPropertiesTopicStatesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformsPropertiesTopicStatesPatchCall) Fields(s ...googleapi.Field) *PlatformsPropertiesTopicStatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformsPropertiesTopicStatesPatchCall) Context(ctx context.Context) *PlatformsPropertiesTopicStatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformsPropertiesTopicStatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1533,18 +1228,12 @@ func (c *PlatformsPropertiesTopicStatesPatchCall) Header() http.Header { } func (c *PlatformsPropertiesTopicStatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlesearchideahubv1alphatopicstate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -1557,17 +1246,15 @@ func (c *PlatformsPropertiesTopicStatesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.platforms.properties.topicStates.patch" call. -// Exactly one of *GoogleSearchIdeahubV1alphaTopicState or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleSearchIdeahubV1alphaTopicState.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleSearchIdeahubV1alphaTopicState.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformsPropertiesTopicStatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1alphaTopicState, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1598,36 +1285,4 @@ func (c *PlatformsPropertiesTopicStatesPatchCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Update a topic state resource.", - // "flatPath": "v1alpha/platforms/{platformsId}/properties/{propertiesId}/topicStates/{topicStatesId}", - // "httpMethod": "PATCH", - // "id": "ideahub.platforms.properties.topicStates.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Unique identifier for the topic state. Format: platforms/{platform}/properties/{property}/topicStates/{topic_state}", - // "location": "path", - // "pattern": "^platforms/[^/]+/properties/[^/]+/topicStates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The list of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleSearchIdeahubV1alphaTopicState" - // }, - // "response": { - // "$ref": "GoogleSearchIdeahubV1alphaTopicState" - // } - // } - } diff --git a/ideahub/v1beta/ideahub-gen.go b/ideahub/v1beta/ideahub-gen.go index 83587bc924c..bea53a4faa9 100644 --- a/ideahub/v1beta/ideahub-gen.go +++ b/ideahub/v1beta/ideahub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://console.cloud.google.com/apis/library/ideahub.googleapis.com // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // ideahubService, err := ideahub.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // ideahubService, err := ideahub.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // ideahubService, err := ideahub.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package ideahub // import "google.golang.org/api/ideahub/v1beta" import ( @@ -71,17 +84,21 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "ideahub:v1beta" const apiName = "ideahub" const apiVersion = "v1beta" const basePath = "https://ideahub.googleapis.com/" +const basePathTemplate = "https://ideahub.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://ideahub.mtls.googleapis.com/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -211,321 +228,246 @@ type PlatformsPropertiesTopicStatesService struct { type GoogleSearchIdeahubV1betaAvailableLocale struct { // Locale: A string in BCP 47 format, without a resource prefix. Locale string `json:"locale,omitempty"` - - // Name: A string in BCP 47 format, prefixed with the platform and - // property name, and "locales/". Format: + // Name: A string in BCP 47 format, prefixed with the platform and property + // name, and "locales/". Format: // platforms/{platform}/properties/{property}/locales/{locale} Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Locale") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Locale") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locale") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1betaAvailableLocale) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1betaAvailableLocale) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1betaAvailableLocale - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleSearchIdeahubV1betaIdea: A single Idea that we want to show the -// end user. +// GoogleSearchIdeahubV1betaIdea: A single Idea that we want to show the end +// user. type GoogleSearchIdeahubV1betaIdea struct { // Name: Unique identifier for the idea. Format: ideas/{ideaId} Name string `json:"name,omitempty"` - // Text: The idea’s text. Text string `json:"text,omitempty"` - // Topics: The Topics that match the idea. Topics []*GoogleSearchIdeahubV1betaTopic `json:"topics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1betaIdea) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1betaIdea) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1betaIdea - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleSearchIdeahubV1betaIdeaActivity: An idea activity entry. type GoogleSearchIdeahubV1betaIdeaActivity struct { // Ideas: The Idea IDs for this entry. If empty, topics should be set. Ideas []string `json:"ideas,omitempty"` - - // Name: Unique identifier for the idea activity. The name is ignored - // when creating an idea activity. Format: - // platforms/{platform}/properties/{property}/ideaActivities/{idea_activi - // ty} + // Name: Unique identifier for the idea activity. The name is ignored when + // creating an idea activity. Format: + // platforms/{platform}/properties/{property}/ideaActivities/{idea_activity} Name string `json:"name,omitempty"` - // Topics: The Topic IDs for this entry. If empty, ideas should be set. Topics []string `json:"topics,omitempty"` - // Type: The type of activity performed. // // Possible values: // "TYPE_UNSPECIFIED" - An unspecified, unknown type of idea activity. - // "POST_DRAFTED" - An idea activity type indicating a post has been - // drafted. + // "POST_DRAFTED" - An idea activity type indicating a post has been drafted. // "POST_PUBLISHED" - An idea activity type indicating a post has been // published. - // "POST_DELETED" - An idea activity type indicating a post has been - // deleted. - // "POST_UNPUBLISHED" - An idea activity type indicating a post has - // been unpublished. + // "POST_DELETED" - An idea activity type indicating a post has been deleted. + // "POST_UNPUBLISHED" - An idea activity type indicating a post has been + // unpublished. Type string `json:"type,omitempty"` - // Uri: The uri the activity relates to. Uri string `json:"uri,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Ideas") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ideas") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Ideas") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1betaIdeaActivity) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1betaIdeaActivity) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1betaIdeaActivity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleSearchIdeahubV1betaIdeaState: Represents idea state specific to -// a web property. +// GoogleSearchIdeahubV1betaIdeaState: Represents idea state specific to a web +// property. type GoogleSearchIdeahubV1betaIdeaState struct { // Dismissed: Whether the idea is dismissed. Dismissed bool `json:"dismissed,omitempty"` - // Name: Unique identifier for the idea state. Format: // platforms/{platform}/properties/{property}/ideaStates/{idea_state} Name string `json:"name,omitempty"` - // Saved: Whether the idea is saved. Saved bool `json:"saved,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Dismissed") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dismissed") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dismissed") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1betaIdeaState) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1betaIdeaState) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1betaIdeaState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleSearchIdeahubV1betaListAvailableLocalesResponse: Response for -// whether ideas are available for a given web property on a platform, -// for the currently logged-in user. +// GoogleSearchIdeahubV1betaListAvailableLocalesResponse: Response for whether +// ideas are available for a given web property on a platform, for the +// currently logged-in user. type GoogleSearchIdeahubV1betaListAvailableLocalesResponse struct { // AvailableLocales: Locales for which ideas are available for the given // Creator. AvailableLocales []*GoogleSearchIdeahubV1betaAvailableLocale `json:"availableLocales,omitempty"` - - // NextPageToken: A token that can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AvailableLocales") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AvailableLocales") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AvailableLocales") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1betaListAvailableLocalesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1betaListAvailableLocalesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1betaListAvailableLocalesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleSearchIdeahubV1betaListIdeasResponse struct { // Ideas: Results for the ListIdeasRequest. Ideas []*GoogleSearchIdeahubV1betaIdea `json:"ideas,omitempty"` - // NextPageToken: Used to fetch the next page in a subsequent request. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Ideas") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ideas") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Ideas") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1betaListIdeasResponse) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1betaListIdeasResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1betaListIdeasResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleSearchIdeahubV1betaTopic: Represents a Topic umbrella for a -// list of questions that a Creator may want to respond to. +// GoogleSearchIdeahubV1betaTopic: Represents a Topic umbrella for a list of +// questions that a Creator may want to respond to. type GoogleSearchIdeahubV1betaTopic struct { - // DisplayName: String displayed to the creator indicating the name of - // the Topic. + // DisplayName: String displayed to the creator indicating the name of the + // Topic. DisplayName string `json:"displayName,omitempty"` - // Mid: The mID of the topic. Mid string `json:"mid,omitempty"` - // Name: Unique identifier for the topic. Format: topics/{topic} Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1betaTopic) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1betaTopic) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1betaTopic - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleSearchIdeahubV1betaTopicState: Represents topic state specific -// to a web property. +// GoogleSearchIdeahubV1betaTopicState: Represents topic state specific to a +// web property. type GoogleSearchIdeahubV1betaTopicState struct { // Dismissed: Whether the topic is dismissed. Dismissed bool `json:"dismissed,omitempty"` - // Name: Unique identifier for the topic state. Format: // platforms/{platform}/properties/{property}/topicStates/{topic_state} Name string `json:"name,omitempty"` - // Saved: Whether the topic is saved. Saved bool `json:"saved,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Dismissed") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dismissed") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dismissed") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleSearchIdeahubV1betaTopicState) MarshalJSON() ([]byte, error) { +func (s GoogleSearchIdeahubV1betaTopicState) MarshalJSON() ([]byte, error) { type NoMethod GoogleSearchIdeahubV1betaTopicState - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "ideahub.platforms.properties.ideaActivities.create": - type PlatformsPropertiesIdeaActivitiesCreateCall struct { s *Service parent string @@ -537,8 +479,8 @@ type PlatformsPropertiesIdeaActivitiesCreateCall struct { // Create: Creates an idea activity entry. // -// - parent: The parent resource where this idea activity will be -// created. Format: platforms/{platform}/property/{property}. +// - parent: The parent resource where this idea activity will be created. +// Format: platforms/{platform}/property/{property}. func (r *PlatformsPropertiesIdeaActivitiesService) Create(parent string, googlesearchideahubv1betaideaactivity *GoogleSearchIdeahubV1betaIdeaActivity) *PlatformsPropertiesIdeaActivitiesCreateCall { c := &PlatformsPropertiesIdeaActivitiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -547,23 +489,21 @@ func (r *PlatformsPropertiesIdeaActivitiesService) Create(parent string, googles } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeaActivitiesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Context(ctx context.Context) *PlatformsPropertiesIdeaActivitiesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -572,18 +512,12 @@ func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Header() http.Header { } func (c *PlatformsPropertiesIdeaActivitiesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlesearchideahubv1betaideaactivity) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/ideaActivities") @@ -596,17 +530,15 @@ func (c *PlatformsPropertiesIdeaActivitiesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.platforms.properties.ideaActivities.create" call. -// Exactly one of *GoogleSearchIdeahubV1betaIdeaActivity or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either +// Any non-2xx status code is an error. Response headers are in either // *GoogleSearchIdeahubV1betaIdeaActivity.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaIdeaActivity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -637,35 +569,7 @@ func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Creates an idea activity entry.", - // "flatPath": "v1beta/platforms/{platformsId}/properties/{propertiesId}/ideaActivities", - // "httpMethod": "POST", - // "id": "ideahub.platforms.properties.ideaActivities.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent resource where this idea activity will be created. Format: platforms/{platform}/property/{property}", - // "location": "path", - // "pattern": "^platforms/[^/]+/properties/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+parent}/ideaActivities", - // "request": { - // "$ref": "GoogleSearchIdeahubV1betaIdeaActivity" - // }, - // "response": { - // "$ref": "GoogleSearchIdeahubV1betaIdeaActivity" - // } - // } - -} - -// method id "ideahub.platforms.properties.ideaStates.patch": +} type PlatformsPropertiesIdeaStatesPatchCall struct { s *Service @@ -687,31 +591,29 @@ func (r *PlatformsPropertiesIdeaStatesService) Patch(nameid string, googlesearch return c } -// UpdateMask sets the optional parameter "updateMask": The list of -// fields to be updated. +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. func (c *PlatformsPropertiesIdeaStatesPatchCall) UpdateMask(updateMask string) *PlatformsPropertiesIdeaStatesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformsPropertiesIdeaStatesPatchCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeaStatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformsPropertiesIdeaStatesPatchCall) Context(ctx context.Context) *PlatformsPropertiesIdeaStatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformsPropertiesIdeaStatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -720,18 +622,12 @@ func (c *PlatformsPropertiesIdeaStatesPatchCall) Header() http.Header { } func (c *PlatformsPropertiesIdeaStatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlesearchideahubv1betaideastate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") @@ -744,17 +640,15 @@ func (c *PlatformsPropertiesIdeaStatesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.platforms.properties.ideaStates.patch" call. -// Exactly one of *GoogleSearchIdeahubV1betaIdeaState or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleSearchIdeahubV1betaIdeaState.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleSearchIdeahubV1betaIdeaState.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformsPropertiesIdeaStatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaIdeaState, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -785,41 +679,7 @@ func (c *PlatformsPropertiesIdeaStatesPatchCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Update an idea state resource.", - // "flatPath": "v1beta/platforms/{platformsId}/properties/{propertiesId}/ideaStates/{ideaStatesId}", - // "httpMethod": "PATCH", - // "id": "ideahub.platforms.properties.ideaStates.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Unique identifier for the idea state. Format: platforms/{platform}/properties/{property}/ideaStates/{idea_state}", - // "location": "path", - // "pattern": "^platforms/[^/]+/properties/[^/]+/ideaStates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The list of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "request": { - // "$ref": "GoogleSearchIdeahubV1betaIdeaState" - // }, - // "response": { - // "$ref": "GoogleSearchIdeahubV1betaIdeaState" - // } - // } - -} - -// method id "ideahub.platforms.properties.ideas.list": +} type PlatformsPropertiesIdeasListCall struct { s *Service @@ -832,80 +692,75 @@ type PlatformsPropertiesIdeasListCall struct { // List: List ideas for a given Creator and filter and sort options. // -// - parent: If defined, specifies the creator for which to filter by. -// Format: publishers/{publisher}/properties/{property}. +// - parent: If defined, specifies the creator for which to filter by. Format: +// publishers/{publisher}/properties/{property}. func (r *PlatformsPropertiesIdeasService) List(parent string) *PlatformsPropertiesIdeasListCall { c := &PlatformsPropertiesIdeasListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Allows filtering. -// Supported syntax: * Filter expressions are made up of one or more -// restrictions. * Restrictions are implicitly combined, as if the `AND` -// operator was always used. The `OR` operator is currently unsupported. -// * Supported functions: - `saved(bool)`: If set to true, fetches only -// saved ideas. If set to false, fetches all except saved ideas. Can't -// be simultaneously used with `dismissed(bool)`. - `dismissed(bool)`: -// If set to true, fetches only dismissed ideas. Can't be simultaneously -// used with `saved(bool)`. The `false` value is currently unsupported. -// Examples: * `saved(true)` * `saved(false)` * `dismissed(true)` The -// length of this field should be no more than 500 characters. +// Filter sets the optional parameter "filter": Allows filtering. Supported +// syntax: * Filter expressions are made up of one or more restrictions. * +// Restrictions are implicitly combined, as if the `AND` operator was always +// used. The `OR` operator is currently unsupported. * Supported functions: - +// `saved(bool)`: If set to true, fetches only saved ideas. If set to false, +// fetches all except saved ideas. Can't be simultaneously used with +// `dismissed(bool)`. - `dismissed(bool)`: If set to true, fetches only +// dismissed ideas. Can't be simultaneously used with `saved(bool)`. The +// `false` value is currently unsupported. Examples: * `saved(true)` * +// `saved(false)` * `dismissed(true)` The length of this field should be no +// more than 500 characters. func (c *PlatformsPropertiesIdeasListCall) Filter(filter string) *PlatformsPropertiesIdeasListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Order semantics -// described below. +// OrderBy sets the optional parameter "orderBy": Order semantics described +// below. func (c *PlatformsPropertiesIdeasListCall) OrderBy(orderBy string) *PlatformsPropertiesIdeasListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of ideas per page. If unspecified, at most 10 ideas will be returned. -// The maximum value is 2000; values above 2000 will be coerced to 2000. +// PageSize sets the optional parameter "pageSize": The maximum number of ideas +// per page. If unspecified, at most 10 ideas will be returned. The maximum +// value is 2000; values above 2000 will be coerced to 2000. func (c *PlatformsPropertiesIdeasListCall) PageSize(pageSize int64) *PlatformsPropertiesIdeasListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Used to fetch next -// page. +// PageToken sets the optional parameter "pageToken": Used to fetch next page. func (c *PlatformsPropertiesIdeasListCall) PageToken(pageToken string) *PlatformsPropertiesIdeasListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformsPropertiesIdeasListCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeasListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformsPropertiesIdeasListCall) IfNoneMatch(entityTag string) *PlatformsPropertiesIdeasListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformsPropertiesIdeasListCall) Context(ctx context.Context) *PlatformsPropertiesIdeasListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformsPropertiesIdeasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -914,12 +769,7 @@ func (c *PlatformsPropertiesIdeasListCall) Header() http.Header { } func (c *PlatformsPropertiesIdeasListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -936,18 +786,15 @@ func (c *PlatformsPropertiesIdeasListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.platforms.properties.ideas.list" call. -// Exactly one of *GoogleSearchIdeahubV1betaListIdeasResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleSearchIdeahubV1betaListIdeasResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleSearchIdeahubV1betaListIdeasResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformsPropertiesIdeasListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaListIdeasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -978,50 +825,6 @@ func (c *PlatformsPropertiesIdeasListCall) Do(opts ...googleapi.CallOption) (*Go return nil, err } return ret, nil - // { - // "description": "List ideas for a given Creator and filter and sort options.", - // "flatPath": "v1beta/platforms/{platformsId}/properties/{propertiesId}/ideas", - // "httpMethod": "GET", - // "id": "ideahub.platforms.properties.ideas.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions are implicitly combined, as if the `AND` operator was always used. The `OR` operator is currently unsupported. * Supported functions: - `saved(bool)`: If set to true, fetches only saved ideas. If set to false, fetches all except saved ideas. Can't be simultaneously used with `dismissed(bool)`. - `dismissed(bool)`: If set to true, fetches only dismissed ideas. Can't be simultaneously used with `saved(bool)`. The `false` value is currently unsupported. Examples: * `saved(true)` * `saved(false)` * `dismissed(true)` The length of this field should be no more than 500 characters.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Order semantics described below.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of ideas per page. If unspecified, at most 10 ideas will be returned. The maximum value is 2000; values above 2000 will be coerced to 2000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Used to fetch next page.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. If defined, specifies the creator for which to filter by. Format: publishers/{publisher}/properties/{property}", - // "location": "path", - // "pattern": "^platforms/[^/]+/properties/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+parent}/ideas", - // "response": { - // "$ref": "GoogleSearchIdeahubV1betaListIdeasResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -1029,7 +832,7 @@ func (c *PlatformsPropertiesIdeasListCall) Do(opts ...googleapi.CallOption) (*Go // The provided context supersedes any context provided to the Context method. func (c *PlatformsPropertiesIdeasListCall) Pages(ctx context.Context, f func(*GoogleSearchIdeahubV1betaListIdeasResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1045,8 +848,6 @@ func (c *PlatformsPropertiesIdeasListCall) Pages(ctx context.Context, f func(*Go } } -// method id "ideahub.platforms.properties.locales.list": - type PlatformsPropertiesLocalesListCall struct { s *Service parent string @@ -1056,8 +857,7 @@ type PlatformsPropertiesLocalesListCall struct { header_ http.Header } -// List: Returns which locales ideas are available in for a given -// Creator. +// List: Returns which locales ideas are available in for a given Creator. // // - parent: The web property to check idea availability for Format: // platforms/{platform}/property/{property}. @@ -1067,53 +867,48 @@ func (r *PlatformsPropertiesLocalesService) List(parent string) *PlatformsProper return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of locales to return. The service may return fewer than this value. -// If unspecified, at most 100 locales will be returned. The maximum -// value is 100; values above 100 will be coerced to 100. +// PageSize sets the optional parameter "pageSize": The maximum number of +// locales to return. The service may return fewer than this value. If +// unspecified, at most 100 locales will be returned. The maximum value is 100; +// values above 100 will be coerced to 100. func (c *PlatformsPropertiesLocalesListCall) PageSize(pageSize int64) *PlatformsPropertiesLocalesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListAvailableLocales` call. Provide this to -// retrieve the subsequent page. When paginating, all other parameters -// provided to `ListAvailableLocales` must match the call that provided -// the page token. +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListAvailableLocales` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListAvailableLocales` must match the call that provided the page token. func (c *PlatformsPropertiesLocalesListCall) PageToken(pageToken string) *PlatformsPropertiesLocalesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformsPropertiesLocalesListCall) Fields(s ...googleapi.Field) *PlatformsPropertiesLocalesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PlatformsPropertiesLocalesListCall) IfNoneMatch(entityTag string) *PlatformsPropertiesLocalesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformsPropertiesLocalesListCall) Context(ctx context.Context) *PlatformsPropertiesLocalesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformsPropertiesLocalesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1122,12 +917,7 @@ func (c *PlatformsPropertiesLocalesListCall) Header() http.Header { } func (c *PlatformsPropertiesLocalesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1144,18 +934,15 @@ func (c *PlatformsPropertiesLocalesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.platforms.properties.locales.list" call. -// Exactly one of *GoogleSearchIdeahubV1betaListAvailableLocalesResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleSearchIdeahubV1betaListAvailableLocalesResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleSearchIdeahubV1betaListAvailableLocalesResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformsPropertiesLocalesListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaListAvailableLocalesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1186,40 +973,6 @@ func (c *PlatformsPropertiesLocalesListCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Returns which locales ideas are available in for a given Creator.", - // "flatPath": "v1beta/platforms/{platformsId}/properties/{propertiesId}/locales", - // "httpMethod": "GET", - // "id": "ideahub.platforms.properties.locales.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of locales to return. The service may return fewer than this value. If unspecified, at most 100 locales will be returned. The maximum value is 100; values above 100 will be coerced to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListAvailableLocales` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAvailableLocales` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The web property to check idea availability for Format: platforms/{platform}/property/{property}", - // "location": "path", - // "pattern": "^platforms/[^/]+/properties/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/{+parent}/locales", - // "response": { - // "$ref": "GoogleSearchIdeahubV1betaListAvailableLocalesResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -1227,7 +980,7 @@ func (c *PlatformsPropertiesLocalesListCall) Do(opts ...googleapi.CallOption) (* // The provided context supersedes any context provided to the Context method. func (c *PlatformsPropertiesLocalesListCall) Pages(ctx context.Context, f func(*GoogleSearchIdeahubV1betaListAvailableLocalesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1243,8 +996,6 @@ func (c *PlatformsPropertiesLocalesListCall) Pages(ctx context.Context, f func(* } } -// method id "ideahub.platforms.properties.topicStates.patch": - type PlatformsPropertiesTopicStatesPatchCall struct { s *Service nameid string @@ -1265,31 +1016,29 @@ func (r *PlatformsPropertiesTopicStatesService) Patch(nameid string, googlesearc return c } -// UpdateMask sets the optional parameter "updateMask": The list of -// fields to be updated. +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. func (c *PlatformsPropertiesTopicStatesPatchCall) UpdateMask(updateMask string) *PlatformsPropertiesTopicStatesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PlatformsPropertiesTopicStatesPatchCall) Fields(s ...googleapi.Field) *PlatformsPropertiesTopicStatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PlatformsPropertiesTopicStatesPatchCall) Context(ctx context.Context) *PlatformsPropertiesTopicStatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PlatformsPropertiesTopicStatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1298,18 +1047,12 @@ func (c *PlatformsPropertiesTopicStatesPatchCall) Header() http.Header { } func (c *PlatformsPropertiesTopicStatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlesearchideahubv1betatopicstate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") @@ -1322,17 +1065,15 @@ func (c *PlatformsPropertiesTopicStatesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ideahub.platforms.properties.topicStates.patch" call. -// Exactly one of *GoogleSearchIdeahubV1betaTopicState or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleSearchIdeahubV1betaTopicState.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleSearchIdeahubV1betaTopicState.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PlatformsPropertiesTopicStatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaTopicState, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1363,36 +1104,4 @@ func (c *PlatformsPropertiesTopicStatesPatchCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Update a topic state resource.", - // "flatPath": "v1beta/platforms/{platformsId}/properties/{propertiesId}/topicStates/{topicStatesId}", - // "httpMethod": "PATCH", - // "id": "ideahub.platforms.properties.topicStates.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Unique identifier for the topic state. Format: platforms/{platform}/properties/{property}/topicStates/{topic_state}", - // "location": "path", - // "pattern": "^platforms/[^/]+/properties/[^/]+/topicStates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The list of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta/{+name}", - // "request": { - // "$ref": "GoogleSearchIdeahubV1betaTopicState" - // }, - // "response": { - // "$ref": "GoogleSearchIdeahubV1betaTopicState" - // } - // } - } diff --git a/identitytoolkit/v1/identitytoolkit-gen.go b/identitytoolkit/v1/identitytoolkit-gen.go index 26167164e79..ddb0f80286d 100644 --- a/identitytoolkit/v1/identitytoolkit-gen.go +++ b/identitytoolkit/v1/identitytoolkit-gen.go @@ -3127,7 +3127,7 @@ func (c *AccountsCreateAuthUriCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.createAuthUri" call. @@ -3222,7 +3222,7 @@ func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.delete" call. @@ -3317,7 +3317,7 @@ func (c *AccountsIssueSamlResponseCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.issueSamlResponse" call. @@ -3415,7 +3415,7 @@ func (c *AccountsLookupCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.lookup" call. @@ -3513,7 +3513,7 @@ func (c *AccountsResetPasswordCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.resetPassword" call. @@ -3610,7 +3610,7 @@ func (c *AccountsSendOobCodeCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.sendOobCode" call. @@ -3710,7 +3710,7 @@ func (c *AccountsSendVerificationCodeCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.sendVerificationCode" call. @@ -3809,7 +3809,7 @@ func (c *AccountsSignInWithCustomTokenCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.signInWithCustomToken" call. @@ -3909,7 +3909,7 @@ func (c *AccountsSignInWithEmailLinkCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.signInWithEmailLink" call. @@ -4019,7 +4019,7 @@ func (c *AccountsSignInWithGameCenterCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.signInWithGameCenter" call. @@ -4125,7 +4125,7 @@ func (c *AccountsSignInWithIdpCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.signInWithIdp" call. @@ -4224,7 +4224,7 @@ func (c *AccountsSignInWithPasswordCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.signInWithPassword" call. @@ -4328,7 +4328,7 @@ func (c *AccountsSignInWithPhoneNumberCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.signInWithPhoneNumber" call. @@ -4429,7 +4429,7 @@ func (c *AccountsSignUpCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.signUp" call. @@ -4526,7 +4526,7 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.update" call. @@ -4628,7 +4628,7 @@ func (c *AccountsVerifyIosClientCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.verifyIosClient" call. @@ -4741,7 +4741,7 @@ func (c *ProjectsAccountsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.accounts" call. @@ -4845,7 +4845,7 @@ func (c *ProjectsCreateSessionCookieCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.createSessionCookie" call. @@ -4948,7 +4948,7 @@ func (c *ProjectsQueryAccountsCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.queryAccounts" call. @@ -5055,7 +5055,7 @@ func (c *ProjectsAccountsBatchCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.accounts.batchCreate" call. @@ -5163,7 +5163,7 @@ func (c *ProjectsAccountsBatchDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.accounts.batchDelete" call. @@ -5308,7 +5308,7 @@ func (c *ProjectsAccountsBatchGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.accounts.batchGet" call. @@ -5433,7 +5433,7 @@ func (c *ProjectsAccountsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.accounts.delete" call. @@ -5542,7 +5542,7 @@ func (c *ProjectsAccountsLookupCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.accounts.lookup" call. @@ -5645,7 +5645,7 @@ func (c *ProjectsAccountsQueryCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.accounts.query" call. @@ -5752,7 +5752,7 @@ func (c *ProjectsAccountsSendOobCodeCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.accounts.sendOobCode" call. @@ -5860,7 +5860,7 @@ func (c *ProjectsAccountsUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "targetProjectId": c.targetProjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.accounts.update" call. @@ -5979,7 +5979,7 @@ func (c *ProjectsTenantsAccountsCall) doRequest(alt string) (*http.Response, err "targetProjectId": c.targetProjectId, "tenantId": c.tenantId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.accounts" call. @@ -6088,7 +6088,7 @@ func (c *ProjectsTenantsCreateSessionCookieCall) doRequest(alt string) (*http.Re "targetProjectId": c.targetProjectId, "tenantId": c.tenantId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.createSessionCookie" call. @@ -6199,7 +6199,7 @@ func (c *ProjectsTenantsAccountsBatchCreateCall) doRequest(alt string) (*http.Re "targetProjectId": c.targetProjectId, "tenantId": c.tenantId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.accounts.batchCreate" call. @@ -6313,7 +6313,7 @@ func (c *ProjectsTenantsAccountsBatchDeleteCall) doRequest(alt string) (*http.Re "targetProjectId": c.targetProjectId, "tenantId": c.tenantId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.accounts.batchDelete" call. @@ -6455,7 +6455,7 @@ func (c *ProjectsTenantsAccountsBatchGetCall) doRequest(alt string) (*http.Respo "targetProjectId": c.targetProjectId, "tenantId": c.tenantId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.accounts.batchGet" call. @@ -6587,7 +6587,7 @@ func (c *ProjectsTenantsAccountsDeleteCall) doRequest(alt string) (*http.Respons "targetProjectId": c.targetProjectId, "tenantId": c.tenantId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.accounts.delete" call. @@ -6701,7 +6701,7 @@ func (c *ProjectsTenantsAccountsLookupCall) doRequest(alt string) (*http.Respons "targetProjectId": c.targetProjectId, "tenantId": c.tenantId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.accounts.lookup" call. @@ -6808,7 +6808,7 @@ func (c *ProjectsTenantsAccountsQueryCall) doRequest(alt string) (*http.Response "targetProjectId": c.targetProjectId, "tenantId": c.tenantId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.accounts.query" call. @@ -6920,7 +6920,7 @@ func (c *ProjectsTenantsAccountsSendOobCodeCall) doRequest(alt string) (*http.Re "targetProjectId": c.targetProjectId, "tenantId": c.tenantId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.accounts.sendOobCode" call. @@ -7034,7 +7034,7 @@ func (c *ProjectsTenantsAccountsUpdateCall) doRequest(alt string) (*http.Respons "targetProjectId": c.targetProjectId, "tenantId": c.tenantId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.accounts.update" call. @@ -7204,7 +7204,7 @@ func (c *V1GetProjectsCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.getProjects" call. @@ -7307,7 +7307,7 @@ func (c *V1GetPublicKeysCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.getPublicKeys" call. @@ -7385,7 +7385,7 @@ func (c *V1GetRecaptchaParamsCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.getRecaptchaParams" call. @@ -7488,7 +7488,7 @@ func (c *V1GetSessionCookiePublicKeysCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.getSessionCookiePublicKeys" call. diff --git a/identitytoolkit/v2/identitytoolkit-gen.go b/identitytoolkit/v2/identitytoolkit-gen.go index f551fecdbf3..e55c9dc15a2 100644 --- a/identitytoolkit/v2/identitytoolkit-gen.go +++ b/identitytoolkit/v2/identitytoolkit-gen.go @@ -3422,7 +3422,7 @@ func (c *AccountsRevokeTokenCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.revokeToken" call. @@ -3517,7 +3517,7 @@ func (c *AccountsMfaEnrollmentFinalizeCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.mfaEnrollment.finalize" call. @@ -3613,7 +3613,7 @@ func (c *AccountsMfaEnrollmentStartCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.mfaEnrollment.start" call. @@ -3711,7 +3711,7 @@ func (c *AccountsMfaEnrollmentWithdrawCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.mfaEnrollment.withdraw" call. @@ -3806,7 +3806,7 @@ func (c *AccountsMfaSignInFinalizeCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.mfaSignIn.finalize" call. @@ -3901,7 +3901,7 @@ func (c *AccountsMfaSignInStartCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.accounts.mfaSignIn.start" call. @@ -4016,7 +4016,7 @@ func (c *DefaultSupportedIdpsListCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.defaultSupportedIdps.list" call. @@ -4146,7 +4146,7 @@ func (c *ProjectsGetConfigCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.getConfig" call. @@ -4258,7 +4258,7 @@ func (c *ProjectsUpdateConfigCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.updateConfig" call. @@ -4370,7 +4370,7 @@ func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.create" call. @@ -4468,7 +4468,7 @@ func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.delete" call. @@ -4578,7 +4578,7 @@ func (c *ProjectsDefaultSupportedIdpConfigsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.get" call. @@ -4702,7 +4702,7 @@ func (c *ProjectsDefaultSupportedIdpConfigsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.list" call. @@ -4835,7 +4835,7 @@ func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.patch" call. @@ -4942,7 +4942,7 @@ func (c *ProjectsIdentityPlatformInitializeAuthCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.identityPlatform.initializeAuth" call. @@ -5053,7 +5053,7 @@ func (c *ProjectsInboundSamlConfigsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.inboundSamlConfigs.create" call. @@ -5151,7 +5151,7 @@ func (c *ProjectsInboundSamlConfigsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.inboundSamlConfigs.delete" call. @@ -5260,7 +5260,7 @@ func (c *ProjectsInboundSamlConfigsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.inboundSamlConfigs.get" call. @@ -5383,7 +5383,7 @@ func (c *ProjectsInboundSamlConfigsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.inboundSamlConfigs.list" call. @@ -5517,7 +5517,7 @@ func (c *ProjectsInboundSamlConfigsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.inboundSamlConfigs.patch" call. @@ -5627,7 +5627,7 @@ func (c *ProjectsOauthIdpConfigsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.oauthIdpConfigs.create" call. @@ -5724,7 +5724,7 @@ func (c *ProjectsOauthIdpConfigsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.oauthIdpConfigs.delete" call. @@ -5833,7 +5833,7 @@ func (c *ProjectsOauthIdpConfigsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.oauthIdpConfigs.get" call. @@ -5956,7 +5956,7 @@ func (c *ProjectsOauthIdpConfigsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.oauthIdpConfigs.list" call. @@ -6090,7 +6090,7 @@ func (c *ProjectsOauthIdpConfigsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.oauthIdpConfigs.patch" call. @@ -6193,7 +6193,7 @@ func (c *ProjectsTenantsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.create" call. @@ -6289,7 +6289,7 @@ func (c *ProjectsTenantsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.delete" call. @@ -6397,7 +6397,7 @@ func (c *ProjectsTenantsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.get" call. @@ -6504,7 +6504,7 @@ func (c *ProjectsTenantsGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.getIamPolicy" call. @@ -6628,7 +6628,7 @@ func (c *ProjectsTenantsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.list" call. @@ -6761,7 +6761,7 @@ func (c *ProjectsTenantsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.patch" call. @@ -6867,7 +6867,7 @@ func (c *ProjectsTenantsSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.setIamPolicy" call. @@ -6974,7 +6974,7 @@ func (c *ProjectsTenantsTestIamPermissionsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.testIamPermissions" call. @@ -7086,7 +7086,7 @@ func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.create" call. @@ -7184,7 +7184,7 @@ func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.delete" call. @@ -7294,7 +7294,7 @@ func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.get" call. @@ -7418,7 +7418,7 @@ func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.list" call. @@ -7551,7 +7551,7 @@ func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.patch" call. @@ -7662,7 +7662,7 @@ func (c *ProjectsTenantsInboundSamlConfigsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.inboundSamlConfigs.create" call. @@ -7760,7 +7760,7 @@ func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.inboundSamlConfigs.delete" call. @@ -7869,7 +7869,7 @@ func (c *ProjectsTenantsInboundSamlConfigsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.inboundSamlConfigs.get" call. @@ -7992,7 +7992,7 @@ func (c *ProjectsTenantsInboundSamlConfigsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.inboundSamlConfigs.list" call. @@ -8126,7 +8126,7 @@ func (c *ProjectsTenantsInboundSamlConfigsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.inboundSamlConfigs.patch" call. @@ -8236,7 +8236,7 @@ func (c *ProjectsTenantsOauthIdpConfigsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.oauthIdpConfigs.create" call. @@ -8333,7 +8333,7 @@ func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.oauthIdpConfigs.delete" call. @@ -8442,7 +8442,7 @@ func (c *ProjectsTenantsOauthIdpConfigsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.oauthIdpConfigs.get" call. @@ -8565,7 +8565,7 @@ func (c *ProjectsTenantsOauthIdpConfigsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.oauthIdpConfigs.list" call. @@ -8699,7 +8699,7 @@ func (c *ProjectsTenantsOauthIdpConfigsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.projects.tenants.oauthIdpConfigs.patch" call. @@ -8806,7 +8806,7 @@ func (c *V2GetPasswordPolicyCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.getPasswordPolicy" call. @@ -8939,7 +8939,7 @@ func (c *V2GetRecaptchaConfigCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.getRecaptchaConfig" call. diff --git a/identitytoolkit/v3/identitytoolkit-gen.go b/identitytoolkit/v3/identitytoolkit-gen.go index a71e5947be0..48f9e4937a6 100644 --- a/identitytoolkit/v3/identitytoolkit-gen.go +++ b/identitytoolkit/v3/identitytoolkit-gen.go @@ -1890,7 +1890,7 @@ func (c *RelyingpartyCreateAuthUriCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.createAuthUri" call. @@ -1985,7 +1985,7 @@ func (c *RelyingpartyDeleteAccountCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.deleteAccount" call. @@ -2080,7 +2080,7 @@ func (c *RelyingpartyDownloadAccountCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.downloadAccount" call. @@ -2196,7 +2196,7 @@ func (c *RelyingpartyEmailLinkSigninCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.emailLinkSignin" call. @@ -2291,7 +2291,7 @@ func (c *RelyingpartyGetAccountInfoCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.getAccountInfo" call. @@ -2386,7 +2386,7 @@ func (c *RelyingpartyGetOobConfirmationCodeCall) doRequest(alt string) (*http.Re return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.getOobConfirmationCode" call. @@ -2501,7 +2501,7 @@ func (c *RelyingpartyGetProjectConfigCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.getProjectConfig" call. @@ -2602,7 +2602,7 @@ func (c *RelyingpartyGetPublicKeysCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.getPublicKeys" call. @@ -2684,7 +2684,7 @@ func (c *RelyingpartyGetRecaptchaParamCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.getRecaptchaParam" call. @@ -2779,7 +2779,7 @@ func (c *RelyingpartyResetPasswordCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.resetPassword" call. @@ -2874,7 +2874,7 @@ func (c *RelyingpartySendVerificationCodeCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.sendVerificationCode" call. @@ -2969,7 +2969,7 @@ func (c *RelyingpartySetAccountInfoCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.setAccountInfo" call. @@ -3064,7 +3064,7 @@ func (c *RelyingpartySetProjectConfigCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.setProjectConfig" call. @@ -3159,7 +3159,7 @@ func (c *RelyingpartySignOutUserCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.signOutUser" call. @@ -3254,7 +3254,7 @@ func (c *RelyingpartySignupNewUserCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.signupNewUser" call. @@ -3349,7 +3349,7 @@ func (c *RelyingpartyUploadAccountCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.uploadAccount" call. @@ -3444,7 +3444,7 @@ func (c *RelyingpartyVerifyAssertionCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.verifyAssertion" call. @@ -3539,7 +3539,7 @@ func (c *RelyingpartyVerifyCustomTokenCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.verifyCustomToken" call. @@ -3634,7 +3634,7 @@ func (c *RelyingpartyVerifyPasswordCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.verifyPassword" call. @@ -3730,7 +3730,7 @@ func (c *RelyingpartyVerifyPhoneNumberCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "identitytoolkit.relyingparty.verifyPhoneNumber" call. diff --git a/ids/v1/ids-gen.go b/ids/v1/ids-gen.go index 2ff3e90f554..d8288681688 100644 --- a/ids/v1/ids-gen.go +++ b/ids/v1/ids-gen.go @@ -987,7 +987,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.get" call. @@ -1118,7 +1118,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.list" call. @@ -1267,7 +1267,7 @@ func (c *ProjectsLocationsEndpointsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.endpoints.create" call. @@ -1378,7 +1378,7 @@ func (c *ProjectsLocationsEndpointsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.endpoints.delete" call. @@ -1486,7 +1486,7 @@ func (c *ProjectsLocationsEndpointsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.endpoints.get" call. @@ -1613,7 +1613,7 @@ func (c *ProjectsLocationsEndpointsGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.endpoints.getIamPolicy" call. @@ -1750,7 +1750,7 @@ func (c *ProjectsLocationsEndpointsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.endpoints.list" call. @@ -1899,7 +1899,7 @@ func (c *ProjectsLocationsEndpointsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.endpoints.patch" call. @@ -2004,7 +2004,7 @@ func (c *ProjectsLocationsEndpointsSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.endpoints.setIamPolicy" call. @@ -2112,7 +2112,7 @@ func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.endpoints.testIamPermissions" call. @@ -2222,7 +2222,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.operations.cancel" call. @@ -2320,7 +2320,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.operations.delete" call. @@ -2429,7 +2429,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.operations.get" call. @@ -2557,7 +2557,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ids.projects.locations.operations.list" call. diff --git a/indexing/v3/indexing-gen.go b/indexing/v3/indexing-gen.go index 66a024daff0..ac2e74f8908 100644 --- a/indexing/v3/indexing-gen.go +++ b/indexing/v3/indexing-gen.go @@ -321,7 +321,7 @@ func (c *UrlNotificationsGetMetadataCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "indexing.urlNotifications.getMetadata" call. @@ -416,7 +416,7 @@ func (c *UrlNotificationsPublishCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "indexing.urlNotifications.publish" call. diff --git a/integrations/v1/integrations-gen.go b/integrations/v1/integrations-gen.go index b2be2a684ae..354cf451e15 100644 --- a/integrations/v1/integrations-gen.go +++ b/integrations/v1/integrations-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/application-integration // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // integrationsService, err := integrations.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // integrationsService, err := integrations.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // integrationsService, err := integrations.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package integrations // import "google.golang.org/api/integrations/v1" import ( @@ -71,17 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "integrations:v1" const apiName = "integrations" const apiVersion = "v1" const basePath = "https://integrations.googleapis.com/" +const basePathTemplate = "https://integrations.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://integrations.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -93,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -494,8 +511,8 @@ type ProjectsLocationsSfdcInstancesSfdcChannelsService struct { s *Service } -// CrmlogErrorCode: Registered ids for errors, as "oneof" enums. Each -// task or logical grouping of tasks may share the same enum. +// CrmlogErrorCode: Registered ids for errors, as "oneof" enums. Each task or +// logical grouping of tasks may share the same enum. type CrmlogErrorCode struct { // Possible values: // "COMMON_ERROR_CODE_UNSPECIFIED" @@ -553,144 +570,113 @@ type CrmlogErrorCode struct { // "WRONG_TENANT" // "INFORMATICA_BACKEND_UNAVAILABLE" // "RPC_PERMISSION_DENIED" - // "SYNC_EVENTBUS_EXECUTION_TIMEOUT" - SYNC_EVENTBUS_EXECUTION_TIMEOUT - // is for eventbus internal use only. - // "ASYNC_EVENTBUS_EXECUTION_TIMEOUT" - - // ASYNC_EVENTBUS_EXECUTION_TIMEOUT is for eventbus internal use only. - // This error will be counted as server availability error. + // "SYNC_EVENTBUS_EXECUTION_TIMEOUT" - SYNC_EVENTBUS_EXECUTION_TIMEOUT is for + // eventbus internal use only. + // "ASYNC_EVENTBUS_EXECUTION_TIMEOUT" - ASYNC_EVENTBUS_EXECUTION_TIMEOUT is + // for eventbus internal use only. This error will be counted as server + // availability error. // "NOT_SUPPORTED_DATA_TYPE" // "UNSANITIZED_USER_INPUT" // "TRANSFORM_EXPRESSION_EVALUATION_ERROR" // "HTTP_EXCEPTION" // "EXECUTION_CANCELLED" CommonErrorCode string `json:"commonErrorCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommonErrorCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommonErrorCode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CommonErrorCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CrmlogErrorCode) MarshalJSON() ([]byte, error) { +func (s CrmlogErrorCode) MarshalJSON() ([]byte, error) { type NoMethod CrmlogErrorCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam struct { - // AllowedCredentialTypes: Defines the credential types to be supported - // as Task may restrict specific types to use, e.g. Cloud SQL Task will - // use username/password type only. + // AllowedCredentialTypes: Defines the credential types to be supported as Task + // may restrict specific types to use, e.g. Cloud SQL Task will use + // username/password type only. // // Possible values: // "CREDENTIAL_TYPE_UNSPECIFIED" // "USERNAME_AND_PASSWORD" - Regular username/password pair. // "API_KEY" - API key. - // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant - // Type. + // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant Type. // "OAUTH2_IMPLICIT" - OAuth 2.0 Implicit Grant Type. - // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant - // Type. - // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner - // Credentials Grant Type. + // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant Type. + // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner Credentials + // Grant Type. // "JWT" - JWT Token. // "AUTH_TOKEN" - Auth Token, e.g. bearer token. - // "SERVICE_ACCOUNT" - Service Account which can be used to generate - // token for authentication. + // "SERVICE_ACCOUNT" - Service Account which can be used to generate token + // for authentication. // "CLIENT_CERTIFICATE_ONLY" - Client Certificate only. // "OIDC_TOKEN" - Google OIDC ID Token - AllowedCredentialTypes []string `json:"allowedCredentialTypes,omitempty"` - - AllowedServiceAccountInContext bool `json:"allowedServiceAccountInContext,omitempty"` - + AllowedCredentialTypes []string `json:"allowedCredentialTypes,omitempty"` + AllowedServiceAccountInContext bool `json:"allowedServiceAccountInContext,omitempty"` // AuthConfigId: UUID of the AuthConfig. AuthConfigId string `json:"authConfigId,omitempty"` - // Scope: A space-delimited list of requested scope permissions. - Scope string `json:"scope,omitempty"` - - UseServiceAccountInContext bool `json:"useServiceAccountInContext,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllowedCredentialTypes") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + Scope string `json:"scope,omitempty"` + UseServiceAccountInContext bool `json:"useServiceAccountInContext,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllowedCredentialTypes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedCredentialTypes") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowedCredentialTypes") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoAddress: Email address along with optional -// name and tokens. These tokens will be substituted for the variables -// in the form of [{var_name}], where var_name could be any string of no -// more than 32 bytes. +// EnterpriseCrmEventbusProtoAddress: Email address along with optional name +// and tokens. These tokens will be substituted for the variables in the form +// of [{var_name}], where var_name could be any string of no more than 32 +// bytes. type EnterpriseCrmEventbusProtoAddress struct { // Email: Required. - Email string `json:"email,omitempty"` - - Name string `json:"name,omitempty"` - + Email string `json:"email,omitempty"` + Name string `json:"name,omitempty"` Tokens []*EnterpriseCrmEventbusProtoToken `json:"tokens,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoAddress) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoAddress) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoAttributes: Attributes are additional -// options that can be associated with each event property. For more -// information, see -// go/integration-platform/event_bus/attributes_registry.md. Next -// available: 8 +// EnterpriseCrmEventbusProtoAttributes: Attributes are additional options that +// can be associated with each event property. For more information, see +// go/integration-platform/event_bus/attributes_registry.md. Next available: 8 type EnterpriseCrmEventbusProtoAttributes struct { - // DataType: Things like URL, Email, Currency, Timestamp (rather than - // string, int64...) + // DataType: Things like URL, Email, Currency, Timestamp (rather than string, + // int64...) // // Possible values: // "DATA_TYPE_UNSPECIFIED" @@ -698,134 +684,106 @@ type EnterpriseCrmEventbusProtoAttributes struct { // "URL" // "CURRENCY" // "TIMESTAMP" - // "DOMAIN_NAME" - Domain is a web url string with one top-level - // private domain and a suffix (for example: google.com, walmart.com) + // "DOMAIN_NAME" - Domain is a web url string with one top-level private + // domain and a suffix (for example: google.com, walmart.com) DataType string `json:"dataType,omitempty"` - // DefaultValue: Used to define defaults. DefaultValue *EnterpriseCrmEventbusProtoValueType `json:"defaultValue,omitempty"` - - // IsRequired: Required for event execution. The validation will be done - // by the event bus when the event is triggered. + // IsRequired: Required for event execution. The validation will be done by the + // event bus when the event is triggered. IsRequired bool `json:"isRequired,omitempty"` - - // IsSearchable: Used to indicate if a ParameterEntry should be - // converted to ParamIndexes for ST-Spanner full-text search. - // DEPRECATED: use searchable. + // IsSearchable: Used to indicate if a ParameterEntry should be converted to + // ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. IsSearchable bool `json:"isSearchable,omitempty"` - - // LogSettings: See go/integration-platform/analytics/logging_task.md - // for details. + // LogSettings: See go/integration-platform/analytics/logging_task.md for + // details. LogSettings *EnterpriseCrmEventbusProtoLogSettings `json:"logSettings,omitempty"` - // Possible values: // "UNSPECIFIED" - // "YES" - If yes, the parameter key and value will be full-text - // indexed. In a proto, this value will propagate to all children whose - // searchable is unspecified. - // "NO" - If no, the parameter key and value will not be full-text - // indexed. In a proto, this value will propagate to all children whose - // searchable is unspecified. + // "YES" - If yes, the parameter key and value will be full-text indexed. In + // a proto, this value will propagate to all children whose searchable is + // unspecified. + // "NO" - If no, the parameter key and value will not be full-text indexed. + // In a proto, this value will propagate to all children whose searchable is + // unspecified. Searchable string `json:"searchable,omitempty"` - - // TaskVisibility: List of tasks that can view this property, if empty - // then all. + // TaskVisibility: List of tasks that can view this property, if empty then + // all. TaskVisibility []string `json:"taskVisibility,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoAttributes) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoAttributes) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoAttributes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList: List of error -// enums for alerts. +// EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList: List of error enums +// for alerts. type EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList struct { EnumStrings []string `json:"enumStrings,omitempty"` - // Possible values: // "DEFAULT_INCLUSIVE" // "EXCLUSIVE" FilterType string `json:"filterType,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnumStrings") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnumStrings") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EnumStrings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue: The -// threshold value of the metric, above or below which the alert should -// be triggered. See EventAlertConfig or TaskAlertConfig for the -// different alert metric types in each case. For the *RATE metrics, one -// or both of these fields may be set. Zero is the default value and can -// be left at that. For *PERCENTILE_DURATION metrics, one or both of -// these fields may be set, and also, the duration threshold value -// should be specified in the threshold_duration_ms member below. For -// *AVERAGE_DURATION metrics, these fields should not be set at all. A -// different member, threshold_duration_ms, must be set in the + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue: The threshold value +// of the metric, above or below which the alert should be triggered. See +// EventAlertConfig or TaskAlertConfig for the different alert metric types in +// each case. For the *RATE metrics, one or both of these fields may be set. +// Zero is the default value and can be left at that. For *PERCENTILE_DURATION +// metrics, one or both of these fields may be set, and also, the duration +// threshold value should be specified in the threshold_duration_ms member +// below. For *AVERAGE_DURATION metrics, these fields should not be set at all. +// A different member, threshold_duration_ms, must be set in the // EventAlertConfig or the TaskAlertConfig. See // go/eventbus-alert-config-examples type EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue struct { - Absolute int64 `json:"absolute,omitempty,string"` - + Absolute int64 `json:"absolute,omitempty,string"` Percentage int64 `json:"percentage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Absolute") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Absolute") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Absolute") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBaseFunction struct { @@ -840,62 +798,48 @@ type EnterpriseCrmEventbusProtoBaseFunction struct { // "GET_UUID" // "GET_PROJECT_ID" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBaseFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBaseFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBaseFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBaseValue struct { - // BaseFunction: Start with a function that does not build on existing - // values. Eg. CurrentTime, Min, Max, Exists, etc. + // BaseFunction: Start with a function that does not build on existing values. + // Eg. CurrentTime, Min, Max, Exists, etc. BaseFunction *EnterpriseCrmEventbusProtoFunction `json:"baseFunction,omitempty"` - // LiteralValue: Start with a literal value. LiteralValue *EnterpriseCrmEventbusProtoParameterValueType `json:"literalValue,omitempty"` - // ReferenceValue: Start with a reference value to dereference. ReferenceValue string `json:"referenceValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "BaseFunction") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BaseFunction") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BaseFunction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBaseValue) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBaseValue) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBaseValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBooleanArrayFunction struct { @@ -914,28 +858,22 @@ type EnterpriseCrmEventbusProtoBooleanArrayFunction struct { // "FOR_EACH" // "FILTER" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBooleanArrayFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBooleanArrayFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBooleanArrayFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBooleanFunction struct { @@ -952,134 +890,102 @@ type EnterpriseCrmEventbusProtoBooleanFunction struct { // "TO_STRING" // "EQUALS" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBooleanFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBooleanFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBooleanFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBooleanParameterArray struct { BooleanValues []bool `json:"booleanValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "BooleanValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBooleanParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBooleanParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBooleanParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBuganizerNotification struct { // AssigneeEmailAddress: Whom to assign the new bug. Optional. AssigneeEmailAddress string `json:"assigneeEmailAddress,omitempty"` - - // ComponentId: ID of the buganizer component within which to create a - // new issue. Required. + // ComponentId: ID of the buganizer component within which to create a new + // issue. Required. ComponentId int64 `json:"componentId,omitempty,string"` - // TemplateId: ID of the buganizer template to use. Optional. TemplateId int64 `json:"templateId,omitempty,string"` - // Title: Title of the issue to be created. Required. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AssigneeEmailAddress") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AssigneeEmailAddress") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssigneeEmailAddress") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssigneeEmailAddress") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBuganizerNotification) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBuganizerNotification) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBuganizerNotification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoCloudSchedulerConfig: Cloud Scheduler -// Trigger configuration +// EnterpriseCrmEventbusProtoCloudSchedulerConfig: Cloud Scheduler Trigger +// configuration type EnterpriseCrmEventbusProtoCloudSchedulerConfig struct { // CronTab: Required. The cron tab of cloud scheduler trigger. CronTab string `json:"cronTab,omitempty"` - // ErrorMessage: Optional. When the job was deleted from Pantheon UI, // error_message will be populated when Get/List integrations ErrorMessage string `json:"errorMessage,omitempty"` - - // Location: Required. The location where associated cloud scheduler job - // will be created + // Location: Required. The location where associated cloud scheduler job will + // be created Location string `json:"location,omitempty"` - - // ServiceAccountEmail: Required. Service account used by Cloud - // Scheduler to trigger the integration at scheduled time + // ServiceAccountEmail: Required. Service account used by Cloud Scheduler to + // trigger the integration at scheduled time ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CronTab") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CronTab") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CronTab") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CronTab") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCloudSchedulerConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCloudSchedulerConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCloudSchedulerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmEventbusProtoCombinedCondition: This message recursively @@ -1087,41 +993,33 @@ func (s *EnterpriseCrmEventbusProtoCloudSchedulerConfig) MarshalJSON() ([]byte, type EnterpriseCrmEventbusProtoCombinedCondition struct { // Conditions: A set of individual constituent conditions. Conditions []*EnterpriseCrmEventbusProtoCondition `json:"conditions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conditions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conditions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conditions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCombinedCondition) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCombinedCondition) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCombinedCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoCondition: Condition that uses `operator` -// to evaluate the key against the value. +// EnterpriseCrmEventbusProtoCondition: Condition that uses `operator` to +// evaluate the key against the value. type EnterpriseCrmEventbusProtoCondition struct { - // EventPropertyKey: Key that's evaluated against the `value`. Please - // note the data type of the runtime value associated with the key - // should match the data type of `value`, else an - // IllegalArgumentException is thrown. + // EventPropertyKey: Key that's evaluated against the `value`. Please note the + // data type of the runtime value associated with the key should match the data + // type of `value`, else an IllegalArgumentException is thrown. EventPropertyKey string `json:"eventPropertyKey,omitempty"` - - // Operator: Operator used to evaluate the condition. Please note that - // an operator with an inappropriate key/value operand will result in + // Operator: Operator used to evaluate the condition. Please note that an + // operator with an inappropriate key/value operand will result in // IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. // // Possible values: @@ -1135,114 +1033,87 @@ type EnterpriseCrmEventbusProtoCondition struct { // "IS_EMPTY" // "IS_NOT_EMPTY" Operator string `json:"operator,omitempty"` - // Value: Value that's checked for the key. Value *EnterpriseCrmEventbusProtoValueType `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventPropertyKey") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventPropertyKey") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventPropertyKey") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCondition) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCondition) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoConditionResult: Contains the combined -// condition calculation results. +// EnterpriseCrmEventbusProtoConditionResult: Contains the combined condition +// calculation results. type EnterpriseCrmEventbusProtoConditionResult struct { // CurrentTaskNumber: the current task number. CurrentTaskNumber string `json:"currentTaskNumber,omitempty"` - // NextTaskNumber: the next task number. NextTaskNumber string `json:"nextTaskNumber,omitempty"` - - // Result: the result comes out after evaluate the combined condition. - // True if there's no combined condition specified. + // Result: the result comes out after evaluate the combined condition. True if + // there's no combined condition specified. Result bool `json:"result,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CurrentTaskNumber") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CurrentTaskNumber") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrentTaskNumber") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CurrentTaskNumber") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoConditionResult) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoConditionResult) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoConditionResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoConnectorsConnection struct { // ConnectionName: Connection name Format: // projects/{project}/locations/{location}/connections/{connection} ConnectionName string `json:"connectionName,omitempty"` - // ConnectorVersion: Connector version Format: - // projects/{project}/locations/{location}/providers/{provider}/connector - // s/{connector}/versions/{version} + // projects/{project}/locations/{location}/providers/{provider}/connectors/{conn + // ector}/versions/{version} ConnectorVersion string `json:"connectorVersion,omitempty"` - // ServiceName: Service name Format: - // projects/{project}/locations/{location}/namespaces/{namespace}/service - // s/{service} + // projects/{project}/locations/{location}/namespaces/{namespace}/services/{serv + // ice} ServiceName string `json:"serviceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConnectionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConnectionName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConnectionName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoConnectorsConnection) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoConnectorsConnection) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoConnectorsConnection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig struct { // Connection: User-selected connection. Connection *EnterpriseCrmEventbusProtoConnectorsConnection `json:"connection,omitempty"` - // Operation: Operation to perform using the configured connection. // // Possible values: @@ -1254,118 +1125,107 @@ type EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig struct { // "UPDATE_ENTITY" // "DELETE_ENTITY" Operation string `json:"operation,omitempty"` - // ForceSendFields is a list of field names (e.g. "Connection") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Connection") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Connection") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoCoordinate: Represents two-dimensional -// positions. +// EnterpriseCrmEventbusProtoCoordinate: Represents two-dimensional positions. type EnterpriseCrmEventbusProtoCoordinate struct { X int64 `json:"x,omitempty"` - Y int64 `json:"y,omitempty"` - - // ForceSendFields is a list of field names (e.g. "X") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "X") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "X") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "X") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCoordinate) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCoordinate) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCoordinate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoCustomSuspensionRequest struct { - // PostToQueueWithTriggerIdRequest: Request to fire an event containing - // the SuspensionInfo message. + // PostToQueueWithTriggerIdRequest: Request to fire an event containing the + // SuspensionInfo message. PostToQueueWithTriggerIdRequest *GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest `json:"postToQueueWithTriggerIdRequest,omitempty"` - - // SuspensionInfoEventParameterKey: In the fired event, set the - // SuspensionInfo message as the value for this key. + // SuspensionInfoEventParameterKey: In the fired event, set the SuspensionInfo + // message as the value for this key. SuspensionInfoEventParameterKey string `json:"suspensionInfoEventParameterKey,omitempty"` - // ForceSendFields is a list of field names (e.g. // "PostToQueueWithTriggerIdRequest") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "PostToQueueWithTriggerIdRequest") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "PostToQueueWithTriggerIdRequest") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCustomSuspensionRequest) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCustomSuspensionRequest) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCustomSuspensionRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoDoubleArray struct { Values []float64 `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoDoubleArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoDoubleArray) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoDoubleArray + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *EnterpriseCrmEventbusProtoDoubleArray) UnmarshalJSON(data []byte) error { type NoMethod EnterpriseCrmEventbusProtoDoubleArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + var s1 struct { + Values []gensupport.JSONFloat64 `json:"values"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Values = make([]float64, len(s1.Values)) + for i := range s1.Values { + s.Values[i] = float64(s1.Values[i]) + } + return nil } type EnterpriseCrmEventbusProtoDoubleArrayFunction struct { @@ -1388,28 +1248,22 @@ type EnterpriseCrmEventbusProtoDoubleArrayFunction struct { // "FOR_EACH" // "FILTER" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoDoubleArrayFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoDoubleArrayFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoDoubleArrayFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoDoubleFunction struct { @@ -1432,67 +1286,70 @@ type EnterpriseCrmEventbusProtoDoubleFunction struct { // "LESS_THAN_EQUALS" // "MOD" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoDoubleFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoDoubleFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoDoubleFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoDoubleParameterArray struct { DoubleValues []float64 `json:"doubleValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "DoubleValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoubleValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DoubleValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoDoubleParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoDoubleParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoDoubleParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *EnterpriseCrmEventbusProtoDoubleParameterArray) UnmarshalJSON(data []byte) error { + type NoMethod EnterpriseCrmEventbusProtoDoubleParameterArray + var s1 struct { + DoubleValues []gensupport.JSONFloat64 `json:"doubleValues"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValues = make([]float64, len(s1.DoubleValues)) + for i := range s1.DoubleValues { + s.DoubleValues[i] = float64(s1.DoubleValues[i]) + } + return nil } -// EnterpriseCrmEventbusProtoErrorDetail: An error, warning, or -// information message associated with a workflow. +// EnterpriseCrmEventbusProtoErrorDetail: An error, warning, or information +// message associated with a workflow. type EnterpriseCrmEventbusProtoErrorDetail struct { - // ErrorCode: The associated error-code, which can be a common or - // internal code. + // ErrorCode: The associated error-code, which can be a common or internal + // code. ErrorCode *CrmlogErrorCode `json:"errorCode,omitempty"` - - // ErrorMessage: The full text of the error message, including any - // parameters that were thrown along with the exception. + // ErrorMessage: The full text of the error message, including any parameters + // that were thrown along with the exception. ErrorMessage string `json:"errorMessage,omitempty"` - // Severity: The severity of the error: ERROR|WARN|INFO. // // Possible values: @@ -1501,487 +1358,378 @@ type EnterpriseCrmEventbusProtoErrorDetail struct { // "WARN" // "INFO" Severity string `json:"severity,omitempty"` - - // TaskNumber: The task try-number, in which, the error occurred. If - // zero, the error happened at the event level. + // TaskNumber: The task try-number, in which, the error occurred. If zero, the + // error happened at the event level. TaskNumber int64 `json:"taskNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ErrorCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ErrorCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoErrorDetail) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoErrorDetail) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoErrorDetail - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoEventBusProperties: LINT.IfChange This -// message is used for storing key value pair properties for each Event -// / Task in the EventBus. Please see -// go/cloud-crm-eng/platform/event_bus.md for more details. +// EnterpriseCrmEventbusProtoEventBusProperties: LINT.IfChange This message is +// used for storing key value pair properties for each Event / Task in the +// EventBus. Please see go/cloud-crm-eng/platform/event_bus.md for more +// details. type EnterpriseCrmEventbusProtoEventBusProperties struct { // Properties: An unordered list of property entries. Properties []*EnterpriseCrmEventbusProtoPropertyEntry `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "Properties") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Properties") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Properties") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventBusProperties) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventBusProperties) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventBusProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoEventExecutionDetails: Contains the details -// of the execution info of this event: this includes the tasks -// execution details plus the event execution statistics. Next available -// id: 10 +// EnterpriseCrmEventbusProtoEventExecutionDetails: Contains the details of the +// execution info of this event: this includes the tasks execution details plus +// the event execution statistics. Next available id: 10 type EnterpriseCrmEventbusProtoEventExecutionDetails struct { - EventAttemptStats []*EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats `json:"eventAttemptStats,omitempty"` - - EventExecutionSnapshot []*EnterpriseCrmEventbusProtoEventExecutionSnapshot `json:"eventExecutionSnapshot,omitempty"` - + EventAttemptStats []*EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats `json:"eventAttemptStats,omitempty"` + EventExecutionSnapshot []*EnterpriseCrmEventbusProtoEventExecutionSnapshot `json:"eventExecutionSnapshot,omitempty"` // Possible values: // "UNSPECIFIED" - // "ON_HOLD" - Event is received and waiting for the execution. This - // happens when firing the event via "postToQueue" or "schedule". + // "ON_HOLD" - Event is received and waiting for the execution. This happens + // when firing the event via "postToQueue" or "schedule". // "IN_PROCESS" - Event is under processing. - // "SUCCEEDED" - Event execution successfully finished. There's no - // more change after this state. - // "FAILED" - Event execution failed. There's no more change after - // this state. - // "CANCELED" - Event execution canceled by user. There's no more + // "SUCCEEDED" - Event execution successfully finished. There's no more // change after this state. + // "FAILED" - Event execution failed. There's no more change after this + // state. + // "CANCELED" - Event execution canceled by user. There's no more change + // after this state. // "RETRY_ON_HOLD" - Event execution failed and waiting for retry. // "SUSPENDED" - Event execution suspended and waiting for manual // intervention. EventExecutionState string `json:"eventExecutionState,omitempty"` - - // EventRetriesFromBeginningCount: Indicates the number of times the - // execution has restarted from the beginning. + // EventRetriesFromBeginningCount: Indicates the number of times the execution + // has restarted from the beginning. EventRetriesFromBeginningCount int64 `json:"eventRetriesFromBeginningCount,omitempty"` - // LogFilePath: The log file path (aka. cns address) for this event. LogFilePath string `json:"logFilePath,omitempty"` - - // NetworkAddress: The network address (aka. bns address) that indicates - // where the event executor is running. + // NetworkAddress: The network address (aka. bns address) that indicates where + // the event executor is running. NetworkAddress string `json:"networkAddress,omitempty"` - - // NextExecutionTime: Next scheduled execution time in case the - // execution status was RETRY_ON_HOLD. + // NextExecutionTime: Next scheduled execution time in case the execution + // status was RETRY_ON_HOLD. NextExecutionTime int64 `json:"nextExecutionTime,omitempty,string"` - - // RyeLockUnheldCount: Used internally and shouldn't be exposed to - // users. A counter for the cron job to record how many times this event - // is in in_process state but don't have a lock consecutively/ + // RyeLockUnheldCount: Used internally and shouldn't be exposed to users. A + // counter for the cron job to record how many times this event is in + // in_process state but don't have a lock consecutively/ RyeLockUnheldCount int64 `json:"ryeLockUnheldCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EventAttemptStats") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EventAttemptStats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventAttemptStats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventAttemptStats") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventExecutionDetails) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventExecutionDetails) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventExecutionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats struct { // EndTime: The end time of the event execution for current attempt. EndTime int64 `json:"endTime,omitempty,string"` - - // StartTime: The start time of the event execution for current attempt. - // This could be in the future if it's been scheduled. + // StartTime: The start time of the event execution for current attempt. This + // could be in the future if it's been scheduled. StartTime int64 `json:"startTime,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoEventExecutionSnapshot: Contains the -// snapshot of the event execution for a given checkpoint. Next -// available id: 13 +// EnterpriseCrmEventbusProtoEventExecutionSnapshot: Contains the snapshot of +// the event execution for a given checkpoint. Next available id: 13 type EnterpriseCrmEventbusProtoEventExecutionSnapshot struct { // CheckpointTaskNumber: Indicates "right after which checkpoint task's // execution" this snapshot is taken. CheckpointTaskNumber string `json:"checkpointTaskNumber,omitempty"` - - // ConditionResults: All of the computed conditions that been - // calculated. + // ConditionResults: All of the computed conditions that been calculated. ConditionResults []*EnterpriseCrmEventbusProtoConditionResult `json:"conditionResults,omitempty"` - - // DiffParams: The parameters in Event object that differs from last - // snapshot. + // DiffParams: The parameters in Event object that differs from last snapshot. DiffParams *EnterpriseCrmEventbusProtoEventParameters `json:"diffParams,omitempty"` - - // EventExecutionInfoId: Points to the event execution info this - // snapshot belongs to. + // EventExecutionInfoId: Points to the event execution info this snapshot + // belongs to. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - // EventExecutionSnapshotId: Auto-generated. Used as primary key for // EventExecutionSnapshots table. - EventExecutionSnapshotId string `json:"eventExecutionSnapshotId,omitempty"` - + EventExecutionSnapshotId string `json:"eventExecutionSnapshotId,omitempty"` EventExecutionSnapshotMetadata *EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata `json:"eventExecutionSnapshotMetadata,omitempty"` - // EventParams: The parameters in Event object. EventParams *EnterpriseCrmEventbusProtoEventParameters `json:"eventParams,omitempty"` - - // ExceedMaxSize: indicate whether snapshot exceeded maximum size before - // clean up + // ExceedMaxSize: indicate whether snapshot exceeded maximum size before clean + // up ExceedMaxSize bool `json:"exceedMaxSize,omitempty"` - // SnapshotTime: Indicates when this snapshot is taken. SnapshotTime int64 `json:"snapshotTime,omitempty,string"` - - // TaskExecutionDetails: All of the task execution details at the given - // point of time. + // TaskExecutionDetails: All of the task execution details at the given point + // of time. TaskExecutionDetails []*EnterpriseCrmEventbusProtoTaskExecutionDetails `json:"taskExecutionDetails,omitempty"` - - // TaskName: The task name associated with this snapshot. Could be - // empty. + // TaskName: The task name associated with this snapshot. Could be empty. TaskName string `json:"taskName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CheckpointTaskNumber") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CheckpointTaskNumber") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventExecutionSnapshot) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventExecutionSnapshot) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventExecutionSnapshot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata struct { // EventAttemptNum: the event attempt number this snapshot belongs to. EventAttemptNum int64 `json:"eventAttemptNum,omitempty"` - - // TaskAttemptNum: the task attempt number this snapshot belongs to. - // Could be empty. - TaskAttemptNum int64 `json:"taskAttemptNum,omitempty"` - - // TaskName: the task name associated with this snapshot. Could be + // TaskAttemptNum: the task attempt number this snapshot belongs to. Could be // empty. + TaskAttemptNum int64 `json:"taskAttemptNum,omitempty"` + // TaskName: the task name associated with this snapshot. Could be empty. TaskName string `json:"taskName,omitempty"` - - // TaskNumber: The task number associated with this snapshot. Could be - // empty. + // TaskNumber: The task number associated with this snapshot. Could be empty. TaskNumber string `json:"taskNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventAttemptNum") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventAttemptNum") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventAttemptNum") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoEventParameters: LINT.IfChange This message -// is used for processing and persisting (when applicable) key value -// pair parameters for each event in the event bus. Please see +// EnterpriseCrmEventbusProtoEventParameters: LINT.IfChange This message is +// used for processing and persisting (when applicable) key value pair +// parameters for each event in the event bus. Please see // go/integration-platform/event_bus.md for more details. Next id: 4 type EnterpriseCrmEventbusProtoEventParameters struct { - // Parameters: Parameters are a part of Event and can be used to - // communicate between different tasks that are part of the same - // integration execution. + // Parameters: Parameters are a part of Event and can be used to communicate + // between different tasks that are part of the same integration execution. Parameters []*EnterpriseCrmEventbusProtoParameterEntry `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventParameters) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventParameters) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventParameters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoExecutionTraceInfo: Message that helps -// aggregate all sub-executions triggered by one execution and keeps -// track of child-parent relationships. +// EnterpriseCrmEventbusProtoExecutionTraceInfo: Message that helps aggregate +// all sub-executions triggered by one execution and keeps track of +// child-parent relationships. type EnterpriseCrmEventbusProtoExecutionTraceInfo struct { - // ParentEventExecutionInfoId: Parent event execution info id that - // triggers the current execution through SubWorkflowExecutorTask. + // ParentEventExecutionInfoId: Parent event execution info id that triggers the + // current execution through SubWorkflowExecutorTask. ParentEventExecutionInfoId string `json:"parentEventExecutionInfoId,omitempty"` - // TraceId: Used to aggregate ExecutionTraceInfo. TraceId string `json:"traceId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ParentEventExecutionInfoId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ParentEventExecutionInfoId") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ParentEventExecutionInfoId") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ParentEventExecutionInfoId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoExecutionTraceInfo) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoExecutionTraceInfo) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoExecutionTraceInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoExternalTraffic: Represents external -// traffic type and id. +// EnterpriseCrmEventbusProtoExternalTraffic: Represents external traffic type +// and id. type EnterpriseCrmEventbusProtoExternalTraffic struct { // GcpProjectId: User’s GCP project id the traffic is referring to. GcpProjectId string `json:"gcpProjectId,omitempty"` - - // GcpProjectNumber: User’s GCP project number the traffic is - // referring to. + // GcpProjectNumber: User’s GCP project number the traffic is referring to. GcpProjectNumber string `json:"gcpProjectNumber,omitempty"` - // Location: Location for the user's request. Location string `json:"location,omitempty"` - // Source: - // LINT.ThenChange(//depot/google3/enterprise/crm/eventbus/proto/product. - // proto:product, - // //depot/google3/java/com/google/enterprise/crm/integrationplatform/api - // /utils/ConverterUtils.java:source_to_product) + // LINT.ThenChange(//depot/google3/enterprise/crm/eventbus/proto/product.proto:p + // roduct, + // //depot/google3/java/com/google/enterprise/crm/integrationplatform/api/utils/ + // ConverterUtils.java:source_to_product) // // Possible values: // "SOURCE_UNSPECIFIED" // "APIGEE" // "SECURITY" Source string `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcpProjectId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GcpProjectId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GcpProjectId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoExternalTraffic) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoExternalTraffic) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoExternalTraffic - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoFailurePolicy: Policy that defines the task -// retry logic and failure type. If no FailurePolicy is defined for a -// task, all its dependent tasks will not be executed (i.e, a -// `retry_strategy` of NONE will be applied). +// EnterpriseCrmEventbusProtoFailurePolicy: Policy that defines the task retry +// logic and failure type. If no FailurePolicy is defined for a task, all its +// dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will +// be applied). type EnterpriseCrmEventbusProtoFailurePolicy struct { // IntervalInSeconds: Required if retry_strategy is FIXED_INTERVAL or // LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the // initial interval for backoff. IntervalInSeconds int64 `json:"intervalInSeconds,omitempty,string"` - // MaxNumRetries: Required if retry_strategy is FIXED_INTERVAL or - // LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the - // number of times the task will be retried if failed. + // LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number + // of times the task will be retried if failed. MaxNumRetries int64 `json:"maxNumRetries,omitempty"` - // RetryStrategy: Defines what happens to the task upon failure. // // Possible values: // "UNSPECIFIED" - // "IGNORE" - Ignores the failure of this task. The rest of the - // workflow will be executed Assuming this task succeeded. - // "NONE" - Causes a permanent failure of the task. However, if the - // last task(s) of event was successfully completed despite the failure - // of this task, it has no impact on the workflow. - // "FATAL" - Causes a permanent failure of the event. It is different - // from NONE because this will mark the event as FAILED by shutting down - // the event execution. - // "FIXED_INTERVAL" - The task will be retried from the failed task - // onwards after a fixed delay. A max-retry count is required to be - // specified with this strategy. A jitter is added to each exponential - // interval so that concurrently failing tasks of the same type do not - // end up retrying after the exact same exponential interval. - // Max_num_retries and interval_in_seconds must be specified. - // "LINEAR_BACKOFF" - The task will be retried from the failed task - // onwards after a fixed delay that linearly increases with each retry - // attempt. A jitter is added to each exponential interval so that - // concurrently failing tasks of the same type do not end up retrying - // after the exact same exponential interval. A max-retry count is - // required to be specified with this strategy. Max_num_retries and - // interval_in_seconds must be specified. - // "EXPONENTIAL_BACKOFF" - The task will be retried after an - // exponentially increasing period of time with each failure. A jitter - // is added to each exponential interval so that concurrently failing + // "IGNORE" - Ignores the failure of this task. The rest of the workflow will + // be executed Assuming this task succeeded. + // "NONE" - Causes a permanent failure of the task. However, if the last + // task(s) of event was successfully completed despite the failure of this + // task, it has no impact on the workflow. + // "FATAL" - Causes a permanent failure of the event. It is different from + // NONE because this will mark the event as FAILED by shutting down the event + // execution. + // "FIXED_INTERVAL" - The task will be retried from the failed task onwards + // after a fixed delay. A max-retry count is required to be specified with this + // strategy. A jitter is added to each exponential interval so that + // concurrently failing tasks of the same type do not end up retrying after the + // exact same exponential interval. Max_num_retries and interval_in_seconds + // must be specified. + // "LINEAR_BACKOFF" - The task will be retried from the failed task onwards + // after a fixed delay that linearly increases with each retry attempt. A + // jitter is added to each exponential interval so that concurrently failing // tasks of the same type do not end up retrying after the exact same - // exponential interval. A max-retry count is required to be specified - // with this strategy. `max_num_retries` and `interval_in_seconds` must - // be specified. - // "RESTART_WORKFLOW_WITH_BACKOFF" - The entire workflow will be - // restarted with the initial parameters that were set when the event - // was fired. A max-retry count is required to be specified with this - // strategy. `max_num_retries` and `interval_in_seconds` must be - // specified. + // exponential interval. A max-retry count is required to be specified with + // this strategy. Max_num_retries and interval_in_seconds must be specified. + // "EXPONENTIAL_BACKOFF" - The task will be retried after an exponentially + // increasing period of time with each failure. A jitter is added to each + // exponential interval so that concurrently failing tasks of the same type do + // not end up retrying after the exact same exponential interval. A max-retry + // count is required to be specified with this strategy. `max_num_retries` and + // `interval_in_seconds` must be specified. + // "RESTART_WORKFLOW_WITH_BACKOFF" - The entire workflow will be restarted + // with the initial parameters that were set when the event was fired. A + // max-retry count is required to be specified with this strategy. + // `max_num_retries` and `interval_in_seconds` must be specified. RetryStrategy string `json:"retryStrategy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IntervalInSeconds") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IntervalInSeconds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntervalInSeconds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IntervalInSeconds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoFailurePolicy) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoFailurePolicy) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoFailurePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoField: Information about the value and type -// of the field. Next Id: 8 +// EnterpriseCrmEventbusProtoField: Information about the value and type of the +// field. Next Id: 8 type EnterpriseCrmEventbusProtoField struct { - // Cardinality: By default, if the cardinality is unspecified the field - // is considered required while mapping. + // Cardinality: By default, if the cardinality is unspecified the field is + // considered required while mapping. // // Possible values: // "UNSPECIFIED" - For fields with unspecified cardinality. - // "OPTIONAL" - If field cardinality is set to optional, ignore errors - // if input field value is null or the reference_key is not found. + // "OPTIONAL" - If field cardinality is set to optional, ignore errors if + // input field value is null or the reference_key is not found. Cardinality string `json:"cardinality,omitempty"` - - // DefaultValue: This holds the default values for the fields. This - // value is supplied by user so may or may not contain PII or SPII data. - // This field will be scrubbed using DatapolScrubber#maybeScrub() with + // DefaultValue: This holds the default values for the fields. This value is + // supplied by user so may or may not contain PII or SPII data. This field will + // be scrubbed using DatapolScrubber#maybeScrub() with // go/proto-sanitizer#level3 DefaultValue *EnterpriseCrmEventbusProtoParameterValueType `json:"defaultValue,omitempty"` - // FieldType: Specifies the data type of the field. // // Possible values: @@ -1999,199 +1747,151 @@ type EnterpriseCrmEventbusProtoField struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" FieldType string `json:"fieldType,omitempty"` - // ProtoDefPath: Optional. The fully qualified proto name (e.g. // enterprise.crm.storage.Account). Required for output field of type - // PROTO_VALUE or PROTO_ARRAY. For e.g., if input field_type is BYTES - // and output field_type is PROTO_VALUE, then fully qualified proto type - // url should be provided to parse the input bytes. If field_type is - // *_ARRAY, then all the converted protos are of the same type. + // PROTO_VALUE or PROTO_ARRAY. For e.g., if input field_type is BYTES and + // output field_type is PROTO_VALUE, then fully qualified proto type url should + // be provided to parse the input bytes. If field_type is *_ARRAY, then all the + // converted protos are of the same type. ProtoDefPath string `json:"protoDefPath,omitempty"` - // ReferenceKey: This holds the reference key of the workflow or task - // parameter. 1. Any workflow parameter, for e.g. $workflowParam1$. 2. - // Any task input or output parameter, for e.g. $task1_param1$. 3. Any - // workflow or task parameters with subfield references, for e.g., - // $task1_param1.employee.id$ + // parameter. 1. Any workflow parameter, for e.g. $workflowParam1$. 2. Any task + // input or output parameter, for e.g. $task1_param1$. 3. Any workflow or task + // parameters with subfield references, for e.g., $task1_param1.employee.id$ ReferenceKey string `json:"referenceKey,omitempty"` - - // TransformExpression: This is the transform expression to fetch the - // input field value. for e.g. $param1$.CONCAT('test'). See - // go/transform-functions-design for more details. Keep points - 1. Only - // input field can have a transform expression. 2. If a transform - // expression is provided, reference_key will be ignored. 3. If no value - // is returned after evaluation of transform expression, default_value - // can be mapped if provided. 4. The field_type should be the type of - // the final object returned after the transform expression is - // evaluated. Scrubs the transform expression before logging as value - // provided by user so may or may not contain PII or SPII data. + // TransformExpression: This is the transform expression to fetch the input + // field value. for e.g. $param1$.CONCAT('test'). See + // go/transform-functions-design for more details. Keep points - 1. Only input + // field can have a transform expression. 2. If a transform expression is + // provided, reference_key will be ignored. 3. If no value is returned after + // evaluation of transform expression, default_value can be mapped if provided. + // 4. The field_type should be the type of the final object returned after the + // transform expression is evaluated. Scrubs the transform expression before + // logging as value provided by user so may or may not contain PII or SPII + // data. TransformExpression *EnterpriseCrmEventbusProtoTransformExpression `json:"transformExpression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Cardinality") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cardinality") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cardinality") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoField) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoField) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoFieldMappingConfig: Field Mapping Config to -// map multiple output fields values from input fields values. Next id: -// 2 +// EnterpriseCrmEventbusProtoFieldMappingConfig: Field Mapping Config to map +// multiple output fields values from input fields values. Next id: 2 type EnterpriseCrmEventbusProtoFieldMappingConfig struct { MappedFields []*EnterpriseCrmEventbusProtoMappedField `json:"mappedFields,omitempty"` - // ForceSendFields is a list of field names (e.g. "MappedFields") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MappedFields") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MappedFields") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoFieldMappingConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoFieldMappingConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoFieldMappingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoFunction struct { // FunctionType: The name of the function to perform. FunctionType *EnterpriseCrmEventbusProtoFunctionType `json:"functionType,omitempty"` - // Parameters: List of parameters required for the transformation. Parameters []*EnterpriseCrmEventbusProtoTransformExpression `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoFunctionType struct { // BaseFunction: LINT.IfChange - BaseFunction *EnterpriseCrmEventbusProtoBaseFunction `json:"baseFunction,omitempty"` - + BaseFunction *EnterpriseCrmEventbusProtoBaseFunction `json:"baseFunction,omitempty"` BooleanArrayFunction *EnterpriseCrmEventbusProtoBooleanArrayFunction `json:"booleanArrayFunction,omitempty"` - - BooleanFunction *EnterpriseCrmEventbusProtoBooleanFunction `json:"booleanFunction,omitempty"` - - DoubleArrayFunction *EnterpriseCrmEventbusProtoDoubleArrayFunction `json:"doubleArrayFunction,omitempty"` - - DoubleFunction *EnterpriseCrmEventbusProtoDoubleFunction `json:"doubleFunction,omitempty"` - - IntArrayFunction *EnterpriseCrmEventbusProtoIntArrayFunction `json:"intArrayFunction,omitempty"` - - IntFunction *EnterpriseCrmEventbusProtoIntFunction `json:"intFunction,omitempty"` - + BooleanFunction *EnterpriseCrmEventbusProtoBooleanFunction `json:"booleanFunction,omitempty"` + DoubleArrayFunction *EnterpriseCrmEventbusProtoDoubleArrayFunction `json:"doubleArrayFunction,omitempty"` + DoubleFunction *EnterpriseCrmEventbusProtoDoubleFunction `json:"doubleFunction,omitempty"` + IntArrayFunction *EnterpriseCrmEventbusProtoIntArrayFunction `json:"intArrayFunction,omitempty"` + IntFunction *EnterpriseCrmEventbusProtoIntFunction `json:"intFunction,omitempty"` // JsonFunction: - // LINT.ThenChange(//depot/google3/alkali/apps/integrationplatform/client - // /workflow_editor/utils/transform_function.ts) - JsonFunction *EnterpriseCrmEventbusProtoJsonFunction `json:"jsonFunction,omitempty"` - - ProtoArrayFunction *EnterpriseCrmEventbusProtoProtoArrayFunction `json:"protoArrayFunction,omitempty"` - - ProtoFunction *EnterpriseCrmEventbusProtoProtoFunction `json:"protoFunction,omitempty"` - + // LINT.ThenChange(//depot/google3/alkali/apps/integrationplatform/client/workfl + // ow_editor/utils/transform_function.ts) + JsonFunction *EnterpriseCrmEventbusProtoJsonFunction `json:"jsonFunction,omitempty"` + ProtoArrayFunction *EnterpriseCrmEventbusProtoProtoArrayFunction `json:"protoArrayFunction,omitempty"` + ProtoFunction *EnterpriseCrmEventbusProtoProtoFunction `json:"protoFunction,omitempty"` StringArrayFunction *EnterpriseCrmEventbusProtoStringArrayFunction `json:"stringArrayFunction,omitempty"` - - StringFunction *EnterpriseCrmEventbusProtoStringFunction `json:"stringFunction,omitempty"` - + StringFunction *EnterpriseCrmEventbusProtoStringFunction `json:"stringFunction,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseFunction") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BaseFunction") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BaseFunction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoFunctionType) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoFunctionType) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoFunctionType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoIntArray struct { Values googleapi.Int64s `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoIntArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoIntArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoIntArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoIntArrayFunction struct { @@ -2214,28 +1914,22 @@ type EnterpriseCrmEventbusProtoIntArrayFunction struct { // "FOR_EACH" // "FILTER" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoIntArrayFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoIntArrayFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoIntArrayFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoIntFunction struct { @@ -2257,54 +1951,42 @@ type EnterpriseCrmEventbusProtoIntFunction struct { // "MOD" // "EPOCH_TO_HUMAN_READABLE_TIME" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoIntFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoIntFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoIntFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoIntParameterArray struct { IntValues googleapi.Int64s `json:"intValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntValues") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IntValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoIntParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoIntParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoIntParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoJsonFunction struct { @@ -2334,102 +2016,81 @@ type EnterpriseCrmEventbusProtoJsonFunction struct { // "FOR_EACH" // "FILTER_ELEMENTS" - next id: 24 FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoJsonFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoJsonFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoJsonFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoLogSettings: The LogSettings define the -// logging attributes for an event property. These attributes are used -// to map the property to the parameter in the log proto. Also used to -// define scrubbing/truncation behavior and PII information. See +// EnterpriseCrmEventbusProtoLogSettings: The LogSettings define the logging +// attributes for an event property. These attributes are used to map the +// property to the parameter in the log proto. Also used to define +// scrubbing/truncation behavior and PII information. See // go/integration-platform/analytics/logging_task.md for details. type EnterpriseCrmEventbusProtoLogSettings struct { - // LogFieldName: The name of corresponding logging field of the event - // property. If omitted, assumes the same name as the event property - // key. + // LogFieldName: The name of corresponding logging field of the event property. + // If omitted, assumes the same name as the event property key. LogFieldName string `json:"logFieldName,omitempty"` - - // SanitizeOptions: Contains the scrubbing options, such as whether to - // scrub, obfuscate, etc. + // SanitizeOptions: Contains the scrubbing options, such as whether to scrub, + // obfuscate, etc. SanitizeOptions *EnterpriseCrmLoggingGwsSanitizeOptions `json:"sanitizeOptions,omitempty"` - // Possible values: // "SEED_PERIOD_UNSPECIFIED" // "DAY" - Sanitized values remain constant for the day of the event. - // "WEEK" - Sanitized values remain constant for the week of the - // event; may cross month boundaries. - // "MONTH" - Sanitized values remain constant for the month of the - // event. + // "WEEK" - Sanitized values remain constant for the week of the event; may + // cross month boundaries. + // "MONTH" - Sanitized values remain constant for the month of the event. SeedPeriod string `json:"seedPeriod,omitempty"` - // Possible values: // "SEED_SCOPE_UNSPECIFIED" // "EVENT_NAME" - Hash computations include the event name. // "TIME_PERIOD" - Hash computations include a time period. // "PARAM_NAME" - Hash computations include the param name. SeedScope string `json:"seedScope,omitempty"` - - // ShorteningLimits: Contains the field limits for shortening, such as - // max string length and max array length. + // ShorteningLimits: Contains the field limits for shortening, such as max + // string length and max array length. ShorteningLimits *EnterpriseCrmLoggingGwsFieldLimits `json:"shorteningLimits,omitempty"` - // ForceSendFields is a list of field names (e.g. "LogFieldName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogFieldName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LogFieldName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoLogSettings) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoLogSettings) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoLogSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoLoopMetadata struct { // CurrentIterationCount: Starting from 1, not 0. CurrentIterationCount int64 `json:"currentIterationCount,omitempty,string"` - - // CurrentIterationDetail: Needs to be set by the loop impl class before - // each iteration. The abstract loop class will append the request and - // response to it. Eg. The foreach Loop will clean up and set it as the - // current iteration element at the start of each loop. The post request - // and response will be appended to the value once they are available. + // CurrentIterationDetail: Needs to be set by the loop impl class before each + // iteration. The abstract loop class will append the request and response to + // it. Eg. The foreach Loop will clean up and set it as the current iteration + // element at the start of each loop. The post request and response will be + // appended to the value once they are available. CurrentIterationDetail string `json:"currentIterationDetail,omitempty"` - // ErrorMsg: Add the error message when loops fail. ErrorMsg string `json:"errorMsg,omitempty"` - // FailureLocation: Indicates where in the loop logic did it error out. // // Possible values: @@ -2437,395 +2098,301 @@ type EnterpriseCrmEventbusProtoLoopMetadata struct { // "SUBWORKFLOW" - Subworkflow failed while firing/running. // "PARAM_OVERRIDING" - Param overrides failed. // "PARAM_AGGREGATING" - Param aggregation failed. - // "SETTING_ITERATION_ELEMENT" - Setting for loop current element - // failed. + // "SETTING_ITERATION_ELEMENT" - Setting for loop current element failed. // "GETTING_LIST_TO_ITERATE" - Getting the list to iterate. // "CONDITION_EVALUATION" - Evaluating the while loop condition. // "BUILDING_REQUEST" - Building the iteration request FailureLocation string `json:"failureLocation,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CurrentIterationCount") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CurrentIterationCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CurrentIterationCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoLoopMetadata) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoLoopMetadata) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoLoopMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoMappedField: Mapped field is a pair of -// input field and output field. Next Id: 3 +// EnterpriseCrmEventbusProtoMappedField: Mapped field is a pair of input field +// and output field. Next Id: 3 type EnterpriseCrmEventbusProtoMappedField struct { // InputField: The input field being mapped from. InputField *EnterpriseCrmEventbusProtoField `json:"inputField,omitempty"` - // OutputField: The output field being mapped to. OutputField *EnterpriseCrmEventbusProtoField `json:"outputField,omitempty"` - // ForceSendFields is a list of field names (e.g. "InputField") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InputField") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InputField") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoMappedField) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoMappedField) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoMappedField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoNextTask: The task that is next in line to -// be executed, if the condition specified evaluated to true. +// EnterpriseCrmEventbusProtoNextTask: The task that is next in line to be +// executed, if the condition specified evaluated to true. type EnterpriseCrmEventbusProtoNextTask struct { - // CombinedConditions: Combined condition for this task to become an - // eligible next task. Each of these combined_conditions are joined with - // logical OR. DEPRECATED: use `condition` + // CombinedConditions: Combined condition for this task to become an eligible + // next task. Each of these combined_conditions are joined with logical OR. + // DEPRECATED: use `condition` CombinedConditions []*EnterpriseCrmEventbusProtoCombinedCondition `json:"combinedConditions,omitempty"` - - // Condition: Standard filter expression for this task to become an - // eligible next task. + // Condition: Standard filter expression for this task to become an eligible + // next task. Condition string `json:"condition,omitempty"` - // Description: User-provided description intended to give more business // context about the next task edge or condition. Description string `json:"description,omitempty"` - // Label: User-provided label that is attached to this edge in the UI. Label string `json:"label,omitempty"` - // TaskConfigId: ID of the next task. TaskConfigId string `json:"taskConfigId,omitempty"` - // TaskNumber: Task number of the next task. TaskNumber string `json:"taskNumber,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CombinedConditions") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CombinedConditions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CombinedConditions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CombinedConditions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoNextTask) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoNextTask) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoNextTask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoNextTeardownTask: The teardown task that is -// next in line to be executed. We support only sequential execution of -// teardown tasks (i.e. no branching). +// EnterpriseCrmEventbusProtoNextTeardownTask: The teardown task that is next +// in line to be executed. We support only sequential execution of teardown +// tasks (i.e. no branching). type EnterpriseCrmEventbusProtoNextTeardownTask struct { // Name: Required. Name of the next teardown task. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoNextTeardownTask) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoNextTeardownTask) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoNextTeardownTask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoNodeIdentifier: Represents a node -// identifier (type + id). Next highest id: 3 +// EnterpriseCrmEventbusProtoNodeIdentifier: Represents a node identifier (type +// + id). Next highest id: 3 type EnterpriseCrmEventbusProtoNodeIdentifier struct { // ElementIdentifier: Configuration of the edge. ElementIdentifier string `json:"elementIdentifier,omitempty"` - - // ElementType: Destination node where the edge ends. It can only be a - // task config. + // ElementType: Destination node where the edge ends. It can only be a task + // config. // // Possible values: // "UNKNOWN_TYPE" // "TASK_CONFIG" // "TRIGGER_CONFIG" ElementType string `json:"elementType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ElementIdentifier") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ElementIdentifier") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ElementIdentifier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ElementIdentifier") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoNodeIdentifier) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoNodeIdentifier) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoNodeIdentifier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoNotification struct { BuganizerNotification *EnterpriseCrmEventbusProtoBuganizerNotification `json:"buganizerNotification,omitempty"` - - EmailAddress *EnterpriseCrmEventbusProtoAddress `json:"emailAddress,omitempty"` - - EscalatorQueue string `json:"escalatorQueue,omitempty"` - - PubsubTopic string `json:"pubsubTopic,omitempty"` - - // Request: If the out-of-the-box email/pubsub notifications are not - // suitable and custom logic is required, fire a workflow containing all - // info needed to notify users to resume execution. + EmailAddress *EnterpriseCrmEventbusProtoAddress `json:"emailAddress,omitempty"` + EscalatorQueue string `json:"escalatorQueue,omitempty"` + PubsubTopic string `json:"pubsubTopic,omitempty"` + // Request: If the out-of-the-box email/pubsub notifications are not suitable + // and custom logic is required, fire a workflow containing all info needed to + // notify users to resume execution. Request *EnterpriseCrmEventbusProtoCustomSuspensionRequest `json:"request,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BuganizerNotification") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BuganizerNotification") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BuganizerNotification") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoNotification) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoNotification) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoNotification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoParamSpecEntryConfig struct { - // DescriptivePhrase: A short phrase to describe what this parameter - // contains. + // DescriptivePhrase: A short phrase to describe what this parameter contains. DescriptivePhrase string `json:"descriptivePhrase,omitempty"` - - // HelpText: Detailed help text for this parameter containing - // information not provided elsewhere. For example, instructions on how - // to migrate from a deprecated parameter. + // HelpText: Detailed help text for this parameter containing information not + // provided elsewhere. For example, instructions on how to migrate from a + // deprecated parameter. HelpText string `json:"helpText,omitempty"` - // HideDefaultValue: Whether the default value is hidden in the UI. HideDefaultValue bool `json:"hideDefaultValue,omitempty"` - // Possible values: - // "DEFAULT" - A single-line input for strings, a numeric input box - // for numbers, or a checkbox for booleans. - // "STRING_MULTI_LINE" - A multi-line input box for longer - // strings/string templates. - // "NUMBER_SLIDER" - A slider to select a numerical value. The default - // range is [0, 100]. + // "DEFAULT" - A single-line input for strings, a numeric input box for + // numbers, or a checkbox for booleans. + // "STRING_MULTI_LINE" - A multi-line input box for longer strings/string + // templates. + // "NUMBER_SLIDER" - A slider to select a numerical value. The default range + // is [0, 100]. // "BOOLEAN_TOGGLE" - A toggle button for boolean parameters. InputDisplayOption string `json:"inputDisplayOption,omitempty"` - // IsHidden: Whether this field is hidden in the UI. IsHidden bool `json:"isHidden,omitempty"` - // Label: A user-friendly label for the parameter. Label string `json:"label,omitempty"` - // Possible values: // "DEFAULT_NOT_PARAMETER_NAME" - This field is not a parameter name. // "IS_PARAMETER_NAME" - If this field is a string and this option is - // selected, the field will be interpreted as a parameter name. Users - // will be able to choose a variable using the autocomplete, but the - // name will be stored as a literal string. - // "KEY_IS_PARAMETER_NAME" - If this field is a ParameterMap and this - // option is selected, the map's keys will be interpreted as parameter - // names. Ignored if this field is not a ParameterMap. - // "VALUE_IS_PARAMETER_NAME" - If this field is a ParameterMap and - // this option is selected, the map's values will be interpreted as - // parameter names. Ignored if this field is not a ParameterMap. + // selected, the field will be interpreted as a parameter name. Users will be + // able to choose a variable using the autocomplete, but the name will be + // stored as a literal string. + // "KEY_IS_PARAMETER_NAME" - If this field is a ParameterMap and this option + // is selected, the map's keys will be interpreted as parameter names. Ignored + // if this field is not a ParameterMap. + // "VALUE_IS_PARAMETER_NAME" - If this field is a ParameterMap and this + // option is selected, the map's values will be interpreted as parameter names. + // Ignored if this field is not a ParameterMap. ParameterNameOption string `json:"parameterNameOption,omitempty"` - // SubSectionLabel: A user-friendly label for subSection under which the // parameter will be displayed. SubSectionLabel string `json:"subSectionLabel,omitempty"` - - // UiPlaceholderText: Placeholder text which will appear in the UI input - // form for this parameter. + // UiPlaceholderText: Placeholder text which will appear in the UI input form + // for this parameter. UiPlaceholderText string `json:"uiPlaceholderText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DescriptivePhrase") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DescriptivePhrase") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DescriptivePhrase") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DescriptivePhrase") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition struct { - // FullName: The fully-qualified proto name. This message, for example, - // would be - // "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". + // FullName: The fully-qualified proto name. This message, for example, would + // be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". FullName string `json:"fullName,omitempty"` - - // Path: Path to the proto file that contains the message type's - // definition. + // Path: Path to the proto file that contains the message type's definition. Path string `json:"path,omitempty"` - // ForceSendFields is a list of field names (e.g. "FullName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FullName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FullName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoParamSpecEntryValidationRule struct { DoubleRange *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange `json:"doubleRange,omitempty"` - - IntRange *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange `json:"intRange,omitempty"` - + IntRange *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange `json:"intRange,omitempty"` StringRegex *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex `json:"stringRegex,omitempty"` - // ForceSendFields is a list of field names (e.g. "DoubleRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoubleRange") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DoubleRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRule) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryValidationRule) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange: -// Range used to validate doubles and floats. +// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange: Range +// used to validate doubles and floats. type EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange struct { // Max: The inclusive maximum of the acceptable range. Max float64 `json:"max,omitempty"` - // Min: The inclusive minimum of the acceptable range. Min float64 `json:"min,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Max") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Max") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Max") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Max") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange) UnmarshalJSON(data []byte) error { @@ -2844,114 +2411,91 @@ func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange) Unma return nil } -// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange: Range -// used to validate longs and ints. +// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange: Range used +// to validate longs and ints. type EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange struct { // Max: The inclusive maximum of the acceptable range. Max int64 `json:"max,omitempty,string"` - // Min: The inclusive minimum of the acceptable range. Min int64 `json:"min,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Max") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Max") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Max") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Max") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex: -// Rule used to validate strings. +// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex: Rule used +// to validate strings. type EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex struct { // Exclusive: Whether the regex matcher is applied exclusively (if true, // matching values will be rejected). Exclusive bool `json:"exclusive,omitempty"` - // Regex: The regex applied to the input value(s). Regex string `json:"regex,omitempty"` - // ForceSendFields is a list of field names (e.g. "Exclusive") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Exclusive") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Exclusive") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmEventbusProtoParameterEntry: Key-value pair of EventBus // parameters. type EnterpriseCrmEventbusProtoParameterEntry struct { - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given fired event. These parameters must be - // predefined in the integration definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given fired event. These parameters must be predefined in + // the integration definition. Key string `json:"key,omitempty"` - - // Value: Values for the defined keys. Each value can either be string, - // int, double or any proto message. + // Value: Values for the defined keys. Each value can either be string, int, + // double or any proto message. Value *EnterpriseCrmEventbusProtoParameterValueType `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParameterEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParameterEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParameterEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParameterMap: A generic multi-map that -// holds key value pairs. They keys and values can be of any type, -// unless specified. +// EnterpriseCrmEventbusProtoParameterMap: A generic multi-map that holds key +// value pairs. They keys and values can be of any type, unless specified. type EnterpriseCrmEventbusProtoParameterMap struct { Entries []*EnterpriseCrmEventbusProtoParameterMapEntry `json:"entries,omitempty"` - - // KeyType: Option to specify key value type for all entries of the map. - // If provided then field types for all entries must conform to this. + // KeyType: Option to specify key value type for all entries of the map. If + // provided then field types for all entries must conform to this. // // Possible values: // "DATA_TYPE_UNSPECIFIED" @@ -2968,14 +2512,12 @@ type EnterpriseCrmEventbusProtoParameterMap struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" KeyType string `json:"keyType,omitempty"` - // Possible values: // "DATA_TYPE_UNSPECIFIED" // "STRING_VALUE" @@ -2991,145 +2533,108 @@ type EnterpriseCrmEventbusProtoParameterMap struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" ValueType string `json:"valueType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParameterMap) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParameterMap) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParameterMap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParameterMapEntry: Entry is a pair of key -// and value. +// EnterpriseCrmEventbusProtoParameterMapEntry: Entry is a pair of key and +// value. type EnterpriseCrmEventbusProtoParameterMapEntry struct { - Key *EnterpriseCrmEventbusProtoParameterMapField `json:"key,omitempty"` - + Key *EnterpriseCrmEventbusProtoParameterMapField `json:"key,omitempty"` Value *EnterpriseCrmEventbusProtoParameterMapField `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParameterMapEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParameterMapEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParameterMapEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParameterMapField: Field represents either -// the key or value in an entry. +// EnterpriseCrmEventbusProtoParameterMapField: Field represents either the key +// or value in an entry. type EnterpriseCrmEventbusProtoParameterMapField struct { // LiteralValue: Passing a literal value. LiteralValue *EnterpriseCrmEventbusProtoParameterValueType `json:"literalValue,omitempty"` - // ReferenceKey: Referencing one of the WF variables. ReferenceKey string `json:"referenceKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "LiteralValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LiteralValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LiteralValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParameterMapField) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParameterMapField) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParameterMapField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParameterValueType: LINT.IfChange To -// support various types of parameter values. Next available id: 14 +// EnterpriseCrmEventbusProtoParameterValueType: LINT.IfChange To support +// various types of parameter values. Next available id: 14 type EnterpriseCrmEventbusProtoParameterValueType struct { - BooleanArray *EnterpriseCrmEventbusProtoBooleanParameterArray `json:"booleanArray,omitempty"` - - BooleanValue bool `json:"booleanValue,omitempty"` - - DoubleArray *EnterpriseCrmEventbusProtoDoubleParameterArray `json:"doubleArray,omitempty"` - - DoubleValue float64 `json:"doubleValue,omitempty"` - - IntArray *EnterpriseCrmEventbusProtoIntParameterArray `json:"intArray,omitempty"` - - IntValue int64 `json:"intValue,omitempty,string"` - - ProtoArray *EnterpriseCrmEventbusProtoProtoParameterArray `json:"protoArray,omitempty"` - - ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` - + BooleanArray *EnterpriseCrmEventbusProtoBooleanParameterArray `json:"booleanArray,omitempty"` + BooleanValue bool `json:"booleanValue,omitempty"` + DoubleArray *EnterpriseCrmEventbusProtoDoubleParameterArray `json:"doubleArray,omitempty"` + DoubleValue float64 `json:"doubleValue,omitempty"` + IntArray *EnterpriseCrmEventbusProtoIntParameterArray `json:"intArray,omitempty"` + IntValue int64 `json:"intValue,omitempty,string"` + ProtoArray *EnterpriseCrmEventbusProtoProtoParameterArray `json:"protoArray,omitempty"` + ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` SerializedObjectValue *EnterpriseCrmEventbusProtoSerializedObjectParameter `json:"serializedObjectValue,omitempty"` - - StringArray *EnterpriseCrmEventbusProtoStringParameterArray `json:"stringArray,omitempty"` - - StringValue string `json:"stringValue,omitempty"` - + StringArray *EnterpriseCrmEventbusProtoStringParameterArray `json:"stringArray,omitempty"` + StringValue string `json:"stringValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BooleanArray") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanArray") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanArray") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParameterValueType) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParameterValueType) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParameterValueType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmEventbusProtoParameterValueType) UnmarshalJSON(data []byte) error { @@ -3149,37 +2654,29 @@ func (s *EnterpriseCrmEventbusProtoParameterValueType) UnmarshalJSON(data []byte // EnterpriseCrmEventbusProtoPropertyEntry: Key-value pair of EventBus // property. type EnterpriseCrmEventbusProtoPropertyEntry struct { - // Key: Key is used to retrieve the corresponding property value. This - // should be unique for a given fired event. The Tasks should be aware - // of the keys used while firing the events for them to be able to - // retrieve the values. + // Key: Key is used to retrieve the corresponding property value. This should + // be unique for a given fired event. The Tasks should be aware of the keys + // used while firing the events for them to be able to retrieve the values. Key string `json:"key,omitempty"` - - // Value: Values for the defined keys. Each value can either be string, - // int, double or any proto message. + // Value: Values for the defined keys. Each value can either be string, int, + // double or any proto message. Value *EnterpriseCrmEventbusProtoValueType `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoPropertyEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoPropertyEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoPropertyEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoProtoArrayFunction struct { @@ -3198,28 +2695,22 @@ type EnterpriseCrmEventbusProtoProtoArrayFunction struct { // "FOR_EACH" // "FILTER" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoProtoArrayFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoProtoArrayFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoProtoArrayFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoProtoFunction struct { @@ -3240,151 +2731,115 @@ type EnterpriseCrmEventbusProtoProtoFunction struct { // "GET_BYTES_SUBFIELD_AS_PROTO" // "EQUALS" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoProtoFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoProtoFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoProtoFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoProtoParameterArray struct { ProtoValues []googleapi.RawMessage `json:"protoValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProtoValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProtoValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProtoValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoProtoParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoProtoParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoProtoParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoScatterResponse struct { // ErrorMsg: The error message of the failure if applicable. ErrorMsg string `json:"errorMsg,omitempty"` - - // ExecutionIds: The execution ids of each Subworkflow fired by this - // scatter. + // ExecutionIds: The execution ids of each Subworkflow fired by this scatter. ExecutionIds []string `json:"executionIds,omitempty"` - - // IsSuccessful: If execution is sync, this is true if the execution - // passed and false if it failed. If the execution is async, this is - // true if the WF was fired off successfully, and false if it failed to - // execute. The success or failure of the subworkflows executed are not - // captured. + // IsSuccessful: If execution is sync, this is true if the execution passed and + // false if it failed. If the execution is async, this is true if the WF was + // fired off successfully, and false if it failed to execute. The success or + // failure of the subworkflows executed are not captured. IsSuccessful bool `json:"isSuccessful,omitempty"` - - // ResponseParams: A list of all the response parameters in the - // aggregtorMap stored with the remapped key. + // ResponseParams: A list of all the response parameters in the aggregtorMap + // stored with the remapped key. ResponseParams []*EnterpriseCrmEventbusProtoParameterEntry `json:"responseParams,omitempty"` - // ScatterElement: The element that was scattered for this execution. ScatterElement *EnterpriseCrmEventbusProtoParameterValueType `json:"scatterElement,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorMsg") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ErrorMsg") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ErrorMsg") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoScatterResponse) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoScatterResponse) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoScatterResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSerializedObjectParameter struct { ObjectValue string `json:"objectValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "ObjectValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ObjectValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ObjectValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSerializedObjectParameter) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSerializedObjectParameter) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSerializedObjectParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoStringArray struct { Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoStringArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoStringArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoStringArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoStringArrayFunction struct { @@ -3403,28 +2858,22 @@ type EnterpriseCrmEventbusProtoStringArrayFunction struct { // "FOR_EACH" // "FILTER" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoStringArrayFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoStringArrayFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoStringArrayFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoStringFunction struct { @@ -3447,251 +2896,193 @@ type EnterpriseCrmEventbusProtoStringFunction struct { // "SUBSTRING" // "RESOLVE_TEMPLATE" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoStringFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoStringFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoStringFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoStringParameterArray struct { StringValues []string `json:"stringValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "StringValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StringValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StringValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoStringParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoStringParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoStringParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoSuccessPolicy: Policy that dictates the -// behavior for the task after it completes successfully. +// EnterpriseCrmEventbusProtoSuccessPolicy: Policy that dictates the behavior +// for the task after it completes successfully. type EnterpriseCrmEventbusProtoSuccessPolicy struct { - // FinalState: State to which the execution snapshot status will be set - // if the task succeeds. + // FinalState: State to which the execution snapshot status will be set if the + // task succeeds. // // Possible values: // "UNSPECIFIED" - // "SUCCEEDED" - The default behavior, where successful tasks will be - // marked as SUCCEEDED. + // "SUCCEEDED" - The default behavior, where successful tasks will be marked + // as SUCCEEDED. // "SUSPENDED" - Sets the state to SUSPENDED after executing. This is - // required for SuspensionTask; event execution will continue once the - // user calls ResolveSuspensions with the event_execution_info_id and - // the task number. + // required for SuspensionTask; event execution will continue once the user + // calls ResolveSuspensions with the event_execution_info_id and the task + // number. FinalState string `json:"finalState,omitempty"` - // ForceSendFields is a list of field names (e.g. "FinalState") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FinalState") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FinalState") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuccessPolicy) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuccessPolicy) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuccessPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmEventbusProtoSuspensionAuthPermissions: LINT.IfChange type EnterpriseCrmEventbusProtoSuspensionAuthPermissions struct { - // GaiaIdentity: Represents a Gaia identity for a person or service - // account. + // GaiaIdentity: Represents a Gaia identity for a person or service account. GaiaIdentity *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity `json:"gaiaIdentity,omitempty"` - - GoogleGroup *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity `json:"googleGroup,omitempty"` - - LoasRole string `json:"loasRole,omitempty"` - - MdbGroup string `json:"mdbGroup,omitempty"` - + GoogleGroup *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity `json:"googleGroup,omitempty"` + LoasRole string `json:"loasRole,omitempty"` + MdbGroup string `json:"mdbGroup,omitempty"` // ForceSendFields is a list of field names (e.g. "GaiaIdentity") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GaiaIdentity") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GaiaIdentity") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionAuthPermissions) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionAuthPermissions) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionAuthPermissions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity struct { EmailAddress string `json:"emailAddress,omitempty"` - - GaiaId int64 `json:"gaiaId,omitempty,string"` - + GaiaId int64 `json:"gaiaId,omitempty,string"` // ForceSendFields is a list of field names (e.g. "EmailAddress") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EmailAddress") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EmailAddress") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSuspensionConfig struct { - // CustomMessage: Optional information to provide recipients of the - // suspension in addition to the resolution URL, typically containing - // relevant parameter values from the originating workflow. - CustomMessage string `json:"customMessage,omitempty"` - + // CustomMessage: Optional information to provide recipients of the suspension + // in addition to the resolution URL, typically containing relevant parameter + // values from the originating workflow. + CustomMessage string `json:"customMessage,omitempty"` Notifications []*EnterpriseCrmEventbusProtoNotification `json:"notifications,omitempty"` - - // SuspensionExpiration: Indicates the next steps when no external - // actions happen on the suspension. + // SuspensionExpiration: Indicates the next steps when no external actions + // happen on the suspension. SuspensionExpiration *EnterpriseCrmEventbusProtoSuspensionExpiration `json:"suspensionExpiration,omitempty"` - // WhoMayResolve: Identities able to resolve this suspension. WhoMayResolve []*EnterpriseCrmEventbusProtoSuspensionAuthPermissions `json:"whoMayResolve,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomMessage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomMessage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomMessage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSuspensionExpiration struct { - // ExpireAfterMs: Milliseconds after which the suspension expires, if no - // action taken. + // ExpireAfterMs: Milliseconds after which the suspension expires, if no action + // taken. ExpireAfterMs int64 `json:"expireAfterMs,omitempty"` - - // LiftWhenExpired: Whether the suspension will be REJECTED or LIFTED - // upon expiration. REJECTED is the default behavior. + // LiftWhenExpired: Whether the suspension will be REJECTED or LIFTED upon + // expiration. REJECTED is the default behavior. LiftWhenExpired bool `json:"liftWhenExpired,omitempty"` - - // RemindAfterMs: Milliseconds after which the previous suspension - // action reminder, if any, is sent using the selected notification - // option, for a suspension which is still PENDING_UNSPECIFIED. + // RemindAfterMs: Milliseconds after which the previous suspension action + // reminder, if any, is sent using the selected notification option, for a + // suspension which is still PENDING_UNSPECIFIED. RemindAfterMs int64 `json:"remindAfterMs,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpireAfterMs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpireAfterMs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExpireAfterMs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionExpiration) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionExpiration) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionExpiration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSuspensionResolutionInfo struct { Audit *EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit `json:"audit,omitempty"` - // CreatedTimestamp: Auto-generated. CreatedTimestamp string `json:"createdTimestamp,omitempty"` - // EventExecutionInfoId: Required. ID of the associated execution. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - - // ExternalTraffic: The origin of the suspension for periodic - // notifications. + // ExternalTraffic: The origin of the suspension for periodic notifications. ExternalTraffic *EnterpriseCrmEventbusProtoExternalTraffic `json:"externalTraffic,omitempty"` - // LastModifiedTimestamp: Auto-generated. LastModifiedTimestamp string `json:"lastModifiedTimestamp,omitempty"` - - // Product: Which Google product the suspension belongs to. If not set, - // the suspension belongs to Integration Platform by default. + // Product: Which Google product the suspension belongs to. If not set, the + // suspension belongs to Integration Platform by default. // // Possible values: // "UNSPECIFIED_PRODUCT" @@ -3699,282 +3090,222 @@ type EnterpriseCrmEventbusProtoSuspensionResolutionInfo struct { // "APIGEE" // "SECURITY" Product string `json:"product,omitempty"` - // Possible values: // "PENDING_UNSPECIFIED" // "REJECTED" // "LIFTED" - Status string `json:"status,omitempty"` - + Status string `json:"status,omitempty"` SuspensionConfig *EnterpriseCrmEventbusProtoSuspensionConfig `json:"suspensionConfig,omitempty"` - // SuspensionId: Primary key for the SuspensionResolutionInfoTable. SuspensionId string `json:"suspensionId,omitempty"` - // TaskNumber: Required. Task number of the associated SuspensionTask. TaskNumber string `json:"taskNumber,omitempty"` - // WorkflowName: Required. The name of the originating workflow. WorkflowName string `json:"workflowName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Audit") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Audit") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Audit") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionResolutionInfo) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionResolutionInfo) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionResolutionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit struct { - ResolvedBy string `json:"resolvedBy,omitempty"` - + ResolvedBy string `json:"resolvedBy,omitempty"` ResolvedByCpi string `json:"resolvedByCpi,omitempty"` - - Timestamp string `json:"timestamp,omitempty"` - + Timestamp string `json:"timestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "ResolvedBy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResolvedBy") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResolvedBy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskAlertConfig: Message to be used to -// configure alerting in the {@code TaskConfig} protos for tasks in an -// event. See go/eventbus-alert-config-examples for examples of the -// different alerts that can be configured. +// EnterpriseCrmEventbusProtoTaskAlertConfig: Message to be used to configure +// alerting in the {@code TaskConfig} protos for tasks in an event. See +// go/eventbus-alert-config-examples for examples of the different alerts that +// can be configured. type EnterpriseCrmEventbusProtoTaskAlertConfig struct { // AggregationPeriod: The period over which the metric value should be - // aggregated and evaluated. Format is , where integer should be a - // positive integer and unit should be one of (s,m,h,d,w) meaning - // (second, minute, hour, day, week). + // aggregated and evaluated. Format is , where integer should be a positive + // integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, + // day, week). AggregationPeriod string `json:"aggregationPeriod,omitempty"` - - // AlertDisabled: Set to false by default. When set to true, the metrics - // are not aggregated or pushed to Monarch for this workflow alert. + // AlertDisabled: Set to false by default. When set to true, the metrics are + // not aggregated or pushed to Monarch for this workflow alert. AlertDisabled bool `json:"alertDisabled,omitempty"` - - // AlertName: A name to identify this alert. This will be displayed in - // the alert subject. If set, this name should be unique in within the - // scope of the containing workflow. + // AlertName: A name to identify this alert. This will be displayed in the + // alert subject. If set, this name should be unique in within the scope of the + // containing workflow. AlertName string `json:"alertName,omitempty"` - - // ClientId: Client associated with this alert configuration. Must be a - // client enabled in one of the containing workflow's triggers. + // ClientId: Client associated with this alert configuration. Must be a client + // enabled in one of the containing workflow's triggers. ClientId string `json:"clientId,omitempty"` - - // DurationThresholdMs: Should be specified only for - // TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This - // member should be used to specify what duration value the metrics - // should exceed for the alert to trigger. - DurationThresholdMs int64 `json:"durationThresholdMs,omitempty,string"` - - ErrorEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"errorEnumList,omitempty"` - + // DurationThresholdMs: Should be specified only for TASK_AVERAGE_DURATION and + // TASK_PERCENTILE_DURATION metrics. This member should be used to specify what + // duration value the metrics should exceed for the alert to trigger. + DurationThresholdMs int64 `json:"durationThresholdMs,omitempty,string"` + ErrorEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"errorEnumList,omitempty"` // Possible values: - // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should - // always be set to one of the other non-default values, otherwise it - // will result in an INVALID_ARGUMENT error. - // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors - // (potentially for a specific set of enum values) for the enclosing - // TaskConfig. + // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should always + // be set to one of the other non-default values, otherwise it will result in + // an INVALID_ARGUMENT error. + // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors (potentially + // for a specific set of enum values) for the enclosing TaskConfig. // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings // (potentially for a specific set of enum values) for the enclosing // TaskConfig. Warnings use the same enum values as errors. // "TASK_RATE" - Specifies alerting on the number of instances for the // enclosing TaskConfig executed in the given aggregation_period. - // "TASK_AVERAGE_DURATION" - Specifies alerting on the average - // duration of execution for the enclosing task. - // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration of - // a particular percentile of task executions. E.g. If 10% or more of - // the task executions have durations above 5 seconds, alert. + // "TASK_AVERAGE_DURATION" - Specifies alerting on the average duration of + // execution for the enclosing task. + // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration of a + // particular percentile of task executions. E.g. If 10% or more of the task + // executions have durations above 5 seconds, alert. MetricType string `json:"metricType,omitempty"` - - // NumAggregationPeriods: For how many contiguous aggregation periods - // should the expected min or max be violated for the alert to be fired. + // NumAggregationPeriods: For how many contiguous aggregation periods should + // the expected min or max be violated for the alert to be fired. NumAggregationPeriods int64 `json:"numAggregationPeriods,omitempty"` - // OnlyFinalAttempt: Only count final task attempts, not retries. OnlyFinalAttempt bool `json:"onlyFinalAttempt,omitempty"` - - // PlaybookUrl: Link to a playbook for resolving the issue that - // triggered this alert. + // PlaybookUrl: Link to a playbook for resolving the issue that triggered this + // alert. PlaybookUrl string `json:"playbookUrl,omitempty"` - - // ThresholdType: The threshold type for which this alert is being - // configured. If value falls below expected_min or exceeds - // expected_max, an alert will be fired. + // ThresholdType: The threshold type for which this alert is being configured. + // If value falls below expected_min or exceeds expected_max, an alert will be + // fired. // // Possible values: // "UNSPECIFIED_THRESHOLD_TYPE" - // "EXPECTED_MIN" - Note that this field will only trigger alerts if - // the workflow specifying it runs at least once in 24 hours (which is - // our in-memory retention period for monarch streams). Also note that - // `aggregation_period` for this alert configuration must be less than - // 24 hours. + // "EXPECTED_MIN" - Note that this field will only trigger alerts if the + // workflow specifying it runs at least once in 24 hours (which is our + // in-memory retention period for monarch streams). Also note that + // `aggregation_period` for this alert configuration must be less than 24 + // hours. // "EXPECTED_MAX" ThresholdType string `json:"thresholdType,omitempty"` - - // ThresholdValue: The metric value, above or below which the alert - // should be triggered. - ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` - - WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AggregationPeriod") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ThresholdValue: The metric value, above or below which the alert should be + // triggered. + ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` + WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` + // ForceSendFields is a list of field names (e.g. "AggregationPeriod") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregationPeriod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AggregationPeriod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskAlertConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskAlertConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskAlertConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskExecutionDetails: Contains the details -// of the execution of this task. Next available id: 11 +// EnterpriseCrmEventbusProtoTaskExecutionDetails: Contains the details of the +// execution of this task. Next available id: 11 type EnterpriseCrmEventbusProtoTaskExecutionDetails struct { TaskAttemptStats []*EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats `json:"taskAttemptStats,omitempty"` - // Possible values: // "UNSPECIFIED" - // "PENDING_EXECUTION" - Task is waiting for its precondition tasks to - // finish to start the execution. + // "PENDING_EXECUTION" - Task is waiting for its precondition tasks to finish + // to start the execution. // "IN_PROCESS" - Task is under processing. - // "SUCCEED" - Task execution successfully finished. There's no more - // change after this state. - // "FAILED" - Task execution failed. There's no more change after this - // state. - // "FATAL" - Task execution failed and cause the whole event execution - // to fail immediately. There's no more change after this state. + // "SUCCEED" - Task execution successfully finished. There's no more change + // after this state. + // "FAILED" - Task execution failed. There's no more change after this state. + // "FATAL" - Task execution failed and cause the whole event execution to + // fail immediately. There's no more change after this state. // "RETRY_ON_HOLD" - Task execution failed and waiting for retry. - // "SKIPPED" - Task execution skipped. This happens when its - // precondition wasn't met, or the event execution been canceled before - // reach to the task. There's no more changes after this state. - // "CANCELED" - Task execution canceled when in progress. This happens - // when event execution been canceled or any other task fall in fatal - // state. - // "PENDING_ROLLBACK" - Task is waiting for its dependency tasks' - // rollback to finish to start its rollback. + // "SKIPPED" - Task execution skipped. This happens when its precondition + // wasn't met, or the event execution been canceled before reach to the task. + // There's no more changes after this state. + // "CANCELED" - Task execution canceled when in progress. This happens when + // event execution been canceled or any other task fall in fatal state. + // "PENDING_ROLLBACK" - Task is waiting for its dependency tasks' rollback to + // finish to start its rollback. // "ROLLBACK_IN_PROCESS" - Task is rolling back. // "ROLLEDBACK" - Task is rolled back. This is the state we will set // regardless of rollback succeeding or failing. - // "SUSPENDED" - Task is a SuspensionTask which has executed once, - // creating a pending suspension. + // "SUSPENDED" - Task is a SuspensionTask which has executed once, creating a + // pending suspension. TaskExecutionState string `json:"taskExecutionState,omitempty"` - // TaskNumber: Pointer to the task config it used for execution. TaskNumber string `json:"taskNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "TaskAttemptStats") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaskAttemptStats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TaskAttemptStats") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskExecutionDetails) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskExecutionDetails) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskExecutionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats struct { // EndTime: The end time of the task execution for current attempt. EndTime int64 `json:"endTime,omitempty,string"` - - // StartTime: The start time of the task execution for current attempt. - // This could be in the future if it's been scheduled. + // StartTime: The start time of the task execution for current attempt. This + // could be in the future if it's been scheduled. StartTime int64 `json:"startTime,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskMetadata: TaskMetadata are attributes -// that are associated to every common Task we have. Next available: 26 +// EnterpriseCrmEventbusProtoTaskMetadata: TaskMetadata are attributes that are +// associated to every common Task we have. Next available: 26 type EnterpriseCrmEventbusProtoTaskMetadata struct { - // ActiveTaskName: The new task name to replace the current task if it - // is deprecated. Otherwise, it is the same as the current task name. - ActiveTaskName string `json:"activeTaskName,omitempty"` - - Admins []*EnterpriseCrmEventbusProtoTaskMetadataAdmin `json:"admins,omitempty"` - + // ActiveTaskName: The new task name to replace the current task if it is + // deprecated. Otherwise, it is the same as the current task name. + ActiveTaskName string `json:"activeTaskName,omitempty"` + Admins []*EnterpriseCrmEventbusProtoTaskMetadataAdmin `json:"admins,omitempty"` // Possible values: // "UNSPECIFIED_CATEGORY" // "CUSTOM" @@ -3982,109 +3313,86 @@ type EnterpriseCrmEventbusProtoTaskMetadata struct { // "DATA_MANIPULATION" // "SCRIPTING" // "CONNECTOR" - // "HIDDEN" - Internal IP tasks that should not be available in the - // UI. - // "CLOUD_SYSTEMS" - Tasks that are relevant to cloud systems teams - // and typically - // "CUSTOM_TASK_TEMPLATE" - include connecting to Vector salesforce, - // CRM Hub Spanner etc. Task entities that derive from a custom task - // template. + // "HIDDEN" - Internal IP tasks that should not be available in the UI. + // "CLOUD_SYSTEMS" - Tasks that are relevant to cloud systems teams and + // typically + // "CUSTOM_TASK_TEMPLATE" - include connecting to Vector salesforce, CRM Hub + // Spanner etc. Task entities that derive from a custom task template. Category string `json:"category,omitempty"` - // CodeSearchLink: The Code Search link to the Task Java file. CodeSearchLink string `json:"codeSearchLink,omitempty"` - - // DefaultJsonValidationOption: Controls whether JSON workflow - // parameters are validated against provided schemas before and/or after - // this task's execution. + // DefaultJsonValidationOption: Controls whether JSON workflow parameters are + // validated against provided schemas before and/or after this task's + // execution. // // Possible values: - // "UNSPECIFIED_JSON_VALIDATION_OPTION" - As per the default behavior, - // no validation will be run. Will not override any option set in a - // Task. + // "UNSPECIFIED_JSON_VALIDATION_OPTION" - As per the default behavior, no + // validation will be run. Will not override any option set in a Task. // "SKIP" - Do not run any validation against JSON schemas. - // "PRE_EXECUTION" - Validate all potential input JSON parameters - // against schemas specified in WorkflowParameters. - // "POST_EXECUTION" - Validate all potential output JSON parameters - // against schemas specified in WorkflowParameters. - // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and - // POST_EXECUTION validations. + // "PRE_EXECUTION" - Validate all potential input JSON parameters against + // schemas specified in WorkflowParameters. + // "POST_EXECUTION" - Validate all potential output JSON parameters against + // schemas specified in WorkflowParameters. + // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and POST_EXECUTION + // validations. DefaultJsonValidationOption string `json:"defaultJsonValidationOption,omitempty"` - - // DefaultSpec: Contains the initial configuration of the task with - // default values set. For now, The string should be compatible to an - // ASCII-proto format. + // DefaultSpec: Contains the initial configuration of the task with default + // values set. For now, The string should be compatible to an ASCII-proto + // format. DefaultSpec string `json:"defaultSpec,omitempty"` - - // Description: In a few sentences, describe the purpose and usage of - // the task. + // Description: In a few sentences, describe the purpose and usage of the task. Description string `json:"description,omitempty"` - - // DescriptiveName: The string name to show on the task list on the - // Workflow editor screen. This should be a very short, one to two words - // name for the task. (e.g. "Send Mail") + // DescriptiveName: The string name to show on the task list on the Workflow + // editor screen. This should be a very short, one to two words name for the + // task. (e.g. "Send Mail") DescriptiveName string `json:"descriptiveName,omitempty"` - - // DocMarkdown: Snippet of markdown documentation to embed in the RHP - // for this task. + // DocMarkdown: Snippet of markdown documentation to embed in the RHP for this + // task. DocMarkdown string `json:"docMarkdown,omitempty"` - // Possible values: // "UNSPECIFIED_EXTERNAL_CATEGORY" // "CORE" // "CONNECTORS" ExternalCategory string `json:"externalCategory,omitempty"` - - // ExternalCategorySequence: Sequence with which the task in specific - // category to be displayed in task discovery panel for external users. + // ExternalCategorySequence: Sequence with which the task in specific category + // to be displayed in task discovery panel for external users. ExternalCategorySequence int64 `json:"externalCategorySequence,omitempty"` - - // ExternalDocHtml: External-facing documention embedded in the RHP for - // this task. + // ExternalDocHtml: External-facing documention embedded in the RHP for this + // task. ExternalDocHtml string `json:"externalDocHtml,omitempty"` - - // ExternalDocLink: Doc link for external-facing documentation (separate - // from g3doc). + // ExternalDocLink: Doc link for external-facing documentation (separate from + // g3doc). ExternalDocLink string `json:"externalDocLink,omitempty"` - // ExternalDocMarkdown: DEPRECATED: Use external_doc_html. ExternalDocMarkdown string `json:"externalDocMarkdown,omitempty"` - // G3DocLink: URL to the associated G3 Doc for the task if available G3DocLink string `json:"g3DocLink,omitempty"` - - // IconLink: URL to gstatic image icon for this task. This icon shows up - // on the task list panel along with the task name in the Workflow - // Editor screen. Use the 24p, 2x, gray color icon image format. See - // go/icons. + // IconLink: URL to gstatic image icon for this task. This icon shows up on the + // task list panel along with the task name in the Workflow Editor screen. Use + // the 24p, 2x, gray color icon image format. See go/icons. IconLink string `json:"iconLink,omitempty"` - - // IsDeprecated: The deprecation status of the current task. Default - // value is false; + // IsDeprecated: The deprecation status of the current task. Default value is + // false; IsDeprecated bool `json:"isDeprecated,omitempty"` - - // Name: The actual class name or the annotated name of the task. Task - // Author should initialize this field with value from the getName() - // method of the Task class. + // Name: The actual class name or the annotated name of the task. Task Author + // should initialize this field with value from the getName() method of the + // Task class. Name string `json:"name,omitempty"` - - // StandaloneExternalDocHtml: External-facing documention for standalone - // IP in pantheon embedded in the RHP for this task. Non null only if - // different from external_doc_html + // StandaloneExternalDocHtml: External-facing documention for standalone IP in + // pantheon embedded in the RHP for this task. Non null only if different from + // external_doc_html StandaloneExternalDocHtml string `json:"standaloneExternalDocHtml,omitempty"` - - // Status: Allows author to indicate if the task is ready to use or not. - // If not set, then it will default to INACTIVE. + // Status: Allows author to indicate if the task is ready to use or not. If not + // set, then it will default to INACTIVE. // // Possible values: - // "UNSPECIFIED_STATUS" - Default value. Actual Task Status should - // always be set to either INACTIVE or ACTIVE. If none is specified at - // runtime, it will be set to INACTIVE. - // "DEFAULT_INACTIVE" - Still in-progress or incomplete, and not - // intended for use. + // "UNSPECIFIED_STATUS" - Default value. Actual Task Status should always be + // set to either INACTIVE or ACTIVE. If none is specified at runtime, it will + // be set to INACTIVE. + // "DEFAULT_INACTIVE" - Still in-progress or incomplete, and not intended for + // use. // "ACTIVE" - Available for use. Status string `json:"status,omitempty"` - // Possible values: // "UNSPECIFIED_SYSTEM" // "GENERIC" @@ -4098,372 +3406,282 @@ type EnterpriseCrmEventbusProtoTaskMetadata struct { // "SPANNER" // "DATA_BRIDGE" System string `json:"system,omitempty"` - - // Tags: A set of tags that pertain to a particular task. This can be - // used to improve the searchability of tasks with several names ("REST - // Caller" vs. "Call REST Endpoint") or to help users find tasks based - // on related words. + // Tags: A set of tags that pertain to a particular task. This can be used to + // improve the searchability of tasks with several names ("REST Caller" vs. + // "Call REST Endpoint") or to help users find tasks based on related words. Tags []string `json:"tags,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveTaskName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveTaskName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveTaskName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskMetadata) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskMetadata) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskMetadataAdmin: Admins are owners of a -// Task, and have all permissions on a particular task identified by the -// task name. By default, Eventbus periodically scans all task metadata -// and syncs (adds) any new admins defined here to Zanzibar. +// EnterpriseCrmEventbusProtoTaskMetadataAdmin: Admins are owners of a Task, +// and have all permissions on a particular task identified by the task name. +// By default, Eventbus periodically scans all task metadata and syncs (adds) +// any new admins defined here to Zanzibar. type EnterpriseCrmEventbusProtoTaskMetadataAdmin struct { GoogleGroupEmail string `json:"googleGroupEmail,omitempty"` - - UserEmail string `json:"userEmail,omitempty"` - + UserEmail string `json:"userEmail,omitempty"` // ForceSendFields is a list of field names (e.g. "GoogleGroupEmail") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GoogleGroupEmail") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GoogleGroupEmail") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskMetadataAdmin) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskMetadataAdmin) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskMetadataAdmin - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskUiConfig: Task authors would use this -// type to configure the UI for a particular task by specifying what UI -// config modules should be included to compose the UI. Learn more about -// config module framework: -// go/integration-platform-config-module-framework +// EnterpriseCrmEventbusProtoTaskUiConfig: Task authors would use this type to +// configure the UI for a particular task by specifying what UI config modules +// should be included to compose the UI. Learn more about config module +// framework: go/integration-platform-config-module-framework type EnterpriseCrmEventbusProtoTaskUiConfig struct { // TaskUiModuleConfigs: Configurations of included config modules. TaskUiModuleConfigs []*EnterpriseCrmEventbusProtoTaskUiModuleConfig `json:"taskUiModuleConfigs,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TaskUiModuleConfigs") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TaskUiModuleConfigs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaskUiModuleConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TaskUiModuleConfigs") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskUiConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskUiConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskUiConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskUiModuleConfig: Task author would use -// this type to configure a config module. +// EnterpriseCrmEventbusProtoTaskUiModuleConfig: Task author would use this +// type to configure a config module. type EnterpriseCrmEventbusProtoTaskUiModuleConfig struct { // ModuleId: ID of the config module. // // Possible values: // "UNSPECIFIED_TASK_MODULE" - Default // "LABEL" - Supports editing label of a task config. - // "ERROR_HANDLING" - Supports editing error handling settings such as - // retry strategy. - // "TASK_PARAM_TABLE" - Supports adding, removing and editing task - // parameter values in a table with little assistance or restriction. - // "TASK_PARAM_FORM" - Supports editing values of declared input - // parameters of a task. Think of it as a "strongly typed" upgrade to - // the TASK_PARAM_TABLE. + // "ERROR_HANDLING" - Supports editing error handling settings such as retry + // strategy. + // "TASK_PARAM_TABLE" - Supports adding, removing and editing task parameter + // values in a table with little assistance or restriction. + // "TASK_PARAM_FORM" - Supports editing values of declared input parameters + // of a task. Think of it as a "strongly typed" upgrade to the + // TASK_PARAM_TABLE. // "PRECONDITION" - Supports editing preconditions of a task config. - // "SCRIPT_EDITOR" - Supports adding, editing, and deleting the - // scripts associated with a script task, as well as modifying the - // input/output parameters. - // "RPC" - Supports editing task parameters associated with an - // RPC/stubby task. + // "SCRIPT_EDITOR" - Supports adding, editing, and deleting the scripts + // associated with a script task, as well as modifying the input/output + // parameters. + // "RPC" - Supports editing task parameters associated with an RPC/stubby + // task. // "TASK_SUMMARY" - Contains readonly task information, including // input/output type info. // "SUSPENSION" - Configures a SuspensionTask. // "RPC_TYPED" - Configures a GenericStubbyTypedTask. // "SUB_WORKFLOW" - Configures a SubWorkflowExecutorTask. // "APPS_SCRIPT_NAVIGATOR" - Supports navigating to Apps Script editor - // "SUB_WORKFLOW_FOR_EACH_LOOP" - Configures a - // SubWorkflowForEachLoopTask. + // "SUB_WORKFLOW_FOR_EACH_LOOP" - Configures a SubWorkflowForEachLoopTask. // "FIELD_MAPPING" - Configures a FieldMappingTask. // "README" - Contains embedded in-product documentation for a task. // "REST_CALLER" - UI widget for the rest caller task. - // "SUB_WORKFLOW_SCATTER_GATHER" - Configures a - // SubWorkflowScatterGatherTask. + // "SUB_WORKFLOW_SCATTER_GATHER" - Configures a SubWorkflowScatterGatherTask. // "CLOUD_SQL" - Configures a CloudSql Task. // "GENERIC_CONNECTOR_TASK" - Configure a GenericConnectorTask. ModuleId string `json:"moduleId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ModuleId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ModuleId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ModuleId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskUiModuleConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskUiModuleConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskUiModuleConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoTeardown struct { // TeardownTaskConfigs: Required. TeardownTaskConfigs []*EnterpriseCrmEventbusProtoTeardownTaskConfig `json:"teardownTaskConfigs,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TeardownTaskConfigs") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TeardownTaskConfigs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TeardownTaskConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TeardownTaskConfigs") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTeardown) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTeardown) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTeardown - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoTeardownTaskConfig struct { // CreatorEmail: The creator's email address. CreatorEmail string `json:"creatorEmail,omitempty"` - - // Name: Required. Unique identifier of the teardown task within this - // Config. We use this field as the identifier to find next teardown - // tasks. - Name string `json:"name,omitempty"` - + // Name: Required. Unique identifier of the teardown task within this Config. + // We use this field as the identifier to find next teardown tasks. + Name string `json:"name,omitempty"` NextTeardownTask *EnterpriseCrmEventbusProtoNextTeardownTask `json:"nextTeardownTask,omitempty"` - // Parameters: The parameters the user can pass to this task. - Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` - + Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` Properties *EnterpriseCrmEventbusProtoEventBusProperties `json:"properties,omitempty"` - - // TeardownTaskImplementationClassName: Required. Implementation class - // name. + // TeardownTaskImplementationClassName: Required. Implementation class name. TeardownTaskImplementationClassName string `json:"teardownTaskImplementationClassName,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreatorEmail") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreatorEmail") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreatorEmail") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTeardownTaskConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTeardownTaskConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTeardownTaskConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoToken struct { - Name string `json:"name,omitempty"` - + Name string `json:"name,omitempty"` Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoToken) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoToken) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoTransformExpression struct { // InitialValue: Initial value upon which to perform transformations. InitialValue *EnterpriseCrmEventbusProtoBaseValue `json:"initialValue,omitempty"` - // TransformationFunctions: Transformations to be applied sequentially. TransformationFunctions []*EnterpriseCrmEventbusProtoFunction `json:"transformationFunctions,omitempty"` - // ForceSendFields is a list of field names (e.g. "InitialValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InitialValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InitialValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTransformExpression) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTransformExpression) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTransformExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoTriggerCriteria struct { - // Condition: Required. Standard filter expression, when true the - // workflow will be executed. If there's no - // trigger_criteria_task_implementation_class_name specified, the - // condition will be validated directly. + // Condition: Required. Standard filter expression, when true the workflow will + // be executed. If there's no trigger_criteria_task_implementation_class_name + // specified, the condition will be validated directly. Condition string `json:"condition,omitempty"` - - // Parameters: Optional. To be used in TaskConfig for the implementation - // class. + // Parameters: Optional. To be used in TaskConfig for the implementation class. Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` - - // TriggerCriteriaTaskImplementationClassName: Optional. Implementation - // class name. The class should implement the “TypedTask” interface. + // TriggerCriteriaTaskImplementationClassName: Optional. Implementation class + // name. The class should implement the “TypedTask” interface. TriggerCriteriaTaskImplementationClassName string `json:"triggerCriteriaTaskImplementationClassName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTriggerCriteria) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTriggerCriteria) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTriggerCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmEventbusProtoValueType: Used for define type for values. -// Currently supported value types include int, string, double, array, -// and any proto message. +// Currently supported value types include int, string, double, array, and any +// proto message. type EnterpriseCrmEventbusProtoValueType struct { - BooleanValue bool `json:"booleanValue,omitempty"` - - DoubleArray *EnterpriseCrmEventbusProtoDoubleArray `json:"doubleArray,omitempty"` - - DoubleValue float64 `json:"doubleValue,omitempty"` - - IntArray *EnterpriseCrmEventbusProtoIntArray `json:"intArray,omitempty"` - - IntValue int64 `json:"intValue,omitempty,string"` - - ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` - - StringArray *EnterpriseCrmEventbusProtoStringArray `json:"stringArray,omitempty"` - - StringValue string `json:"stringValue,omitempty"` - + BooleanValue bool `json:"booleanValue,omitempty"` + DoubleArray *EnterpriseCrmEventbusProtoDoubleArray `json:"doubleArray,omitempty"` + DoubleValue float64 `json:"doubleValue,omitempty"` + IntArray *EnterpriseCrmEventbusProtoIntArray `json:"intArray,omitempty"` + IntValue int64 `json:"intValue,omitempty,string"` + ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` + StringArray *EnterpriseCrmEventbusProtoStringArray `json:"stringArray,omitempty"` + StringValue string `json:"stringValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BooleanValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoValueType) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoValueType) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoValueType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmEventbusProtoValueType) UnmarshalJSON(data []byte) error { @@ -4481,120 +3699,97 @@ func (s *EnterpriseCrmEventbusProtoValueType) UnmarshalJSON(data []byte) error { } // EnterpriseCrmEventbusProtoWorkflowAlertConfig: Message to be used to -// configure custom alerting in the {@code EventConfig} protos for an -// event. See go/eventbus-alert-config-examples for examples of the -// different alerts that can be configured. +// configure custom alerting in the {@code EventConfig} protos for an event. +// See go/eventbus-alert-config-examples for examples of the different alerts +// that can be configured. type EnterpriseCrmEventbusProtoWorkflowAlertConfig struct { - // AggregationPeriod: For an EXPECTED_MIN threshold, this - // aggregation_period must be lesser than 24 hours. + // AggregationPeriod: For an EXPECTED_MIN threshold, this aggregation_period + // must be lesser than 24 hours. AggregationPeriod string `json:"aggregationPeriod,omitempty"` - - // AlertDisabled: Set to false by default. When set to true, the metrics - // are not aggregated or pushed to Monarch for this workflow alert. + // AlertDisabled: Set to false by default. When set to true, the metrics are + // not aggregated or pushed to Monarch for this workflow alert. AlertDisabled bool `json:"alertDisabled,omitempty"` - - // AlertName: A name to identify this alert. This will be displayed in - // the alert subject. If set, this name should be unique within the - // scope of the workflow. + // AlertName: A name to identify this alert. This will be displayed in the + // alert subject. If set, this name should be unique within the scope of the + // workflow. AlertName string `json:"alertName,omitempty"` - // ClientId: Client associated with this alert configuration. ClientId string `json:"clientId,omitempty"` - - // DurationThresholdMs: Should be specified only for *AVERAGE_DURATION - // and *PERCENTILE_DURATION metrics. This member should be used to - // specify what duration value the metrics should exceed for the alert - // to trigger. - DurationThresholdMs int64 `json:"durationThresholdMs,omitempty,string"` - - ErrorEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"errorEnumList,omitempty"` - + // DurationThresholdMs: Should be specified only for *AVERAGE_DURATION and + // *PERCENTILE_DURATION metrics. This member should be used to specify what + // duration value the metrics should exceed for the alert to trigger. + DurationThresholdMs int64 `json:"durationThresholdMs,omitempty,string"` + ErrorEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"errorEnumList,omitempty"` // Possible values: - // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should - // always be set to one of the other non-default values, otherwise it - // will result in an INVALID_ARGUMENT error. - // "EVENT_ERROR_RATE" - Specifies alerting on the rate of errors for - // the enclosing workflow. - // "EVENT_WARNING_RATE" - Specifies alerting on the rate of warnings - // for the enclosing workflow. Warnings use the same enum values as - // errors. - // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors for - // any task in the enclosing workflow. - // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings - // for any task in the enclosing workflow. - // "TASK_RATE" - Specifies alerting on the rate of executions over all - // tasks in the enclosing workflow. - // "EVENT_RATE" - Specifies alerting on the number of events executed - // in the given aggregation_period. - // "EVENT_AVERAGE_DURATION" - Specifies alerting on the average - // duration of executions for this workflow. - // "EVENT_PERCENTILE_DURATION" - Specifies alerting on the duration - // value of a particular percentile of workflow executions. E.g. If 10% - // or more of the workflow executions have durations above 5 seconds, - // alert. - // "TASK_AVERAGE_DURATION" - Specifies alerting on the average - // duration of any task in the enclosing workflow, - // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration - // value of a particular percentile of any task executions within the - // enclosing workflow. E.g. If 10% or more of the task executions in the - // workflow have durations above 5 seconds, alert. + // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should always + // be set to one of the other non-default values, otherwise it will result in + // an INVALID_ARGUMENT error. + // "EVENT_ERROR_RATE" - Specifies alerting on the rate of errors for the + // enclosing workflow. + // "EVENT_WARNING_RATE" - Specifies alerting on the rate of warnings for the + // enclosing workflow. Warnings use the same enum values as errors. + // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors for any task + // in the enclosing workflow. + // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings for any + // task in the enclosing workflow. + // "TASK_RATE" - Specifies alerting on the rate of executions over all tasks + // in the enclosing workflow. + // "EVENT_RATE" - Specifies alerting on the number of events executed in the + // given aggregation_period. + // "EVENT_AVERAGE_DURATION" - Specifies alerting on the average duration of + // executions for this workflow. + // "EVENT_PERCENTILE_DURATION" - Specifies alerting on the duration value of + // a particular percentile of workflow executions. E.g. If 10% or more of the + // workflow executions have durations above 5 seconds, alert. + // "TASK_AVERAGE_DURATION" - Specifies alerting on the average duration of + // any task in the enclosing workflow, + // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration value of a + // particular percentile of any task executions within the enclosing workflow. + // E.g. If 10% or more of the task executions in the workflow have durations + // above 5 seconds, alert. MetricType string `json:"metricType,omitempty"` - - // NumAggregationPeriods: For how many contiguous aggregation periods - // should the expected min or max be violated for the alert to be fired. + // NumAggregationPeriods: For how many contiguous aggregation periods should + // the expected min or max be violated for the alert to be fired. NumAggregationPeriods int64 `json:"numAggregationPeriods,omitempty"` - - // OnlyFinalAttempt: For either events or tasks, depending on the type - // of alert, count only final attempts, not retries. + // OnlyFinalAttempt: For either events or tasks, depending on the type of + // alert, count only final attempts, not retries. OnlyFinalAttempt bool `json:"onlyFinalAttempt,omitempty"` - - // PlaybookUrl: Link to a playbook for resolving the issue that - // triggered this alert. + // PlaybookUrl: Link to a playbook for resolving the issue that triggered this + // alert. PlaybookUrl string `json:"playbookUrl,omitempty"` - // ThresholdType: The threshold type, whether lower(expected_min) or - // upper(expected_max), for which this alert is being configured. If - // value falls below expected_min or exceeds expected_max, an alert will - // be fired. + // upper(expected_max), for which this alert is being configured. If value + // falls below expected_min or exceeds expected_max, an alert will be fired. // // Possible values: // "UNSPECIFIED_THRESHOLD_TYPE" - // "EXPECTED_MIN" - Note that this field will only trigger alerts if - // the workflow specifying it runs at least once in 24 hours (which is - // our in-memory retention period for monarch streams). Also note that - // `aggregation_period` for this alert configuration must be less than - // 24 hours. + // "EXPECTED_MIN" - Note that this field will only trigger alerts if the + // workflow specifying it runs at least once in 24 hours (which is our + // in-memory retention period for monarch streams). Also note that + // `aggregation_period` for this alert configuration must be less than 24 + // hours. // "EXPECTED_MAX" ThresholdType string `json:"thresholdType,omitempty"` - - // ThresholdValue: The metric value, above or below which the alert - // should be triggered. See go/eventbus-alert-config-examples. - ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` - - WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AggregationPeriod") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ThresholdValue: The metric value, above or below which the alert should be + // triggered. See go/eventbus-alert-config-examples. + ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` + WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` + // ForceSendFields is a list of field names (e.g. "AggregationPeriod") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregationPeriod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AggregationPeriod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoWorkflowAlertConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoWorkflowAlertConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoWorkflowAlertConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmEventbusStats: Stats for the requested dimensions: QPS, @@ -4602,40 +3797,30 @@ func (s *EnterpriseCrmEventbusProtoWorkflowAlertConfig) MarshalJSON() ([]byte, e type EnterpriseCrmEventbusStats struct { // Dimensions: Dimensions that these stats have been aggregated on. Dimensions *EnterpriseCrmEventbusStatsDimensions `json:"dimensions,omitempty"` - // DurationInSeconds: Average duration in seconds. DurationInSeconds float64 `json:"durationInSeconds,omitempty"` - // ErrorRate: Average error rate. ErrorRate float64 `json:"errorRate,omitempty"` - // Qps: Queries per second. Qps float64 `json:"qps,omitempty"` - // WarningRate: Average warning rate. WarningRate float64 `json:"warningRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimensions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimensions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimensions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusStats) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusStats) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmEventbusStats) UnmarshalJSON(data []byte) error { @@ -4660,17 +3845,13 @@ func (s *EnterpriseCrmEventbusStats) UnmarshalJSON(data []byte) error { type EnterpriseCrmEventbusStatsDimensions struct { ClientId string `json:"clientId,omitempty"` - - // EnumFilterType: Whether to include or exclude the enums matching the - // regex. + // EnumFilterType: Whether to include or exclude the enums matching the regex. // // Possible values: // "DEFAULT_INCLUSIVE" // "EXCLUSIVE" - EnumFilterType string `json:"enumFilterType,omitempty"` - + EnumFilterType string `json:"enumFilterType,omitempty"` ErrorEnumString string `json:"errorEnumString,omitempty"` - // Possible values: // "UNSPECIFIED" // "FINAL" - Task has completed successfully or has depleted all retry @@ -4678,200 +3859,169 @@ type EnterpriseCrmEventbusStatsDimensions struct { // "RETRYABLE" - Task has failed but may be retried. // "CANCELED" - Task has been deliberately canceled. RetryAttempt string `json:"retryAttempt,omitempty"` - - TaskName string `json:"taskName,omitempty"` - - TaskNumber string `json:"taskNumber,omitempty"` - - // TriggerId: Stats have been or will be aggregated on set fields for - // any semantically-meaningful combination. - TriggerId string `json:"triggerId,omitempty"` - + TaskName string `json:"taskName,omitempty"` + TaskNumber string `json:"taskNumber,omitempty"` + // TriggerId: Stats have been or will be aggregated on set fields for any + // semantically-meaningful combination. + TriggerId string `json:"triggerId,omitempty"` WarningEnumString string `json:"warningEnumString,omitempty"` - - WorkflowId string `json:"workflowId,omitempty"` - - WorkflowName string `json:"workflowName,omitempty"` - + WorkflowId string `json:"workflowId,omitempty"` + WorkflowName string `json:"workflowName,omitempty"` // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusStatsDimensions) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusStatsDimensions) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusStatsDimensions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray struct { BooleanValues []bool `json:"booleanValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "BooleanValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray struct { DoubleValues []float64 `json:"doubleValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "DoubleValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoubleValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DoubleValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails: Contains -// the details of the execution info of this event: this includes the -// tasks execution details plus the event execution statistics. Next -// available id: 10 +func (s *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray) UnmarshalJSON(data []byte) error { + type NoMethod EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray + var s1 struct { + DoubleValues []gensupport.JSONFloat64 `json:"doubleValues"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValues = make([]float64, len(s1.DoubleValues)) + for i := range s1.DoubleValues { + s.DoubleValues[i] = float64(s1.DoubleValues[i]) + } + return nil +} + +// EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails: Contains the +// details of the execution info of this event: this includes the tasks +// execution details plus the event execution statistics. Next available id: 10 type EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails struct { EventAttemptStats []*EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats `json:"eventAttemptStats,omitempty"` - - // EventExecutionSnapshot: After snapshot migration, this field will no - // longer be populated, but old execution snapshots will still be - // accessible. + // EventExecutionSnapshot: After snapshot migration, this field will no longer + // be populated, but old execution snapshots will still be accessible. EventExecutionSnapshot []*EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot `json:"eventExecutionSnapshot,omitempty"` - // EventExecutionState: The execution state of this event. // // Possible values: // "UNSPECIFIED" - // "ON_HOLD" - Event is received and waiting for the execution. This - // happens when firing the event via "postToQueue" or "schedule". + // "ON_HOLD" - Event is received and waiting for the execution. This happens + // when firing the event via "postToQueue" or "schedule". // "IN_PROCESS" - Event is under processing. - // "SUCCEEDED" - Event execution successfully finished. There's no - // more change after this state. - // "FAILED" - Event execution failed. There's no more change after - // this state. - // "CANCELED" - Event execution canceled by user. There's no more + // "SUCCEEDED" - Event execution successfully finished. There's no more // change after this state. + // "FAILED" - Event execution failed. There's no more change after this + // state. + // "CANCELED" - Event execution canceled by user. There's no more change + // after this state. // "RETRY_ON_HOLD" - Event execution failed and waiting for retry. // "SUSPENDED" - Event execution suspended and waiting for manual // intervention. EventExecutionState string `json:"eventExecutionState,omitempty"` - - // EventRetriesFromBeginningCount: Indicates the number of times the - // execution has restarted from the beginning. + // EventRetriesFromBeginningCount: Indicates the number of times the execution + // has restarted from the beginning. EventRetriesFromBeginningCount int64 `json:"eventRetriesFromBeginningCount,omitempty"` - // LogFilePath: The log file path (aka. cns address) for this event. LogFilePath string `json:"logFilePath,omitempty"` - - // NetworkAddress: The network address (aka. bns address) that indicates - // where the event executor is running. + // NetworkAddress: The network address (aka. bns address) that indicates where + // the event executor is running. NetworkAddress string `json:"networkAddress,omitempty"` - - // NextExecutionTime: Next scheduled execution time in case the - // execution status was RETRY_ON_HOLD. + // NextExecutionTime: Next scheduled execution time in case the execution + // status was RETRY_ON_HOLD. NextExecutionTime int64 `json:"nextExecutionTime,omitempty,string"` - - // RyeLockUnheldCount: Used internally and shouldn't be exposed to - // users. A counter for the cron job to record how many times this event - // is in in_process state but don't have a lock consecutively/ + // RyeLockUnheldCount: Used internally and shouldn't be exposed to users. A + // counter for the cron job to record how many times this event is in + // in_process state but don't have a lock consecutively/ RyeLockUnheldCount int64 `json:"ryeLockUnheldCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EventAttemptStats") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EventAttemptStats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventAttemptStats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventAttemptStats") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo: Contains all -// the execution details for a workflow instance. Next available id: 24 +// EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo: Contains all the +// execution details for a workflow instance. Next available id: 24 type EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo struct { // ClientId: The event data user sends as request. ClientId string `json:"clientId,omitempty"` - // CreateTime: Auto-generated. CreateTime int64 `json:"createTime,omitempty,string"` - // ErrorCode: Final error-code if event failed. ErrorCode *CrmlogErrorCode `json:"errorCode,omitempty"` - // Errors: Errors, warnings, and informationals associated with the - // workflow/task. The order in which the errors were added by the - // workflow/task is maintained. + // workflow/task. The order in which the errors were added by the workflow/task + // is maintained. Errors []*EnterpriseCrmEventbusProtoErrorDetail `json:"errors,omitempty"` - // EventExecutionDetails: The execution info about this event. EventExecutionDetails *EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails `json:"eventExecutionDetails,omitempty"` - // EventExecutionInfoId: Auto-generated primary key. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - // ExecutionTraceInfo: Execution trace info to aggregate parent-child // executions. ExecutionTraceInfo *EnterpriseCrmEventbusProtoExecutionTraceInfo `json:"executionTraceInfo,omitempty"` - // LastModifiedTime: Auto-generated. LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"` - // PostMethod: The ways user posts this event. // // Possible values: @@ -4882,9 +4032,8 @@ type EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo struct { // "POST_BY_EVENT_CONFIG_ID" // "POST_WITH_EVENT_DETAILS" PostMethod string `json:"postMethod,omitempty"` - - // Product: Which Google product the execution_info belongs to. If not - // set, the execution_info belongs to Integration Platform by default. + // Product: Which Google product the execution_info belongs to. If not set, the + // execution_info belongs to Integration Platform by default. // // Possible values: // "UNSPECIFIED_PRODUCT" @@ -4892,201 +4041,148 @@ type EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo struct { // "APIGEE" // "SECURITY" Product string `json:"product,omitempty"` - // RequestId: Optional. This is used to de-dup incoming request. RequestId string `json:"requestId,omitempty"` - // RequestParams: Event parameters come in as part of the request. RequestParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"requestParams,omitempty"` - // ResponseParams: Event parameters come out as part of the response. ResponseParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"responseParams,omitempty"` - // SnapshotNumber: Workflow snapshot number. SnapshotNumber int64 `json:"snapshotNumber,omitempty,string"` - // Tenant: Tenant this event is created. Used to reschedule the event to // correct tenant. Tenant string `json:"tenant,omitempty"` - - // TriggerId: The trigger id of the workflow trigger config. If both - // trigger_id and client_id is present, the workflow is executed from - // the start tasks provided by the matching trigger config otherwise it - // is executed from the default start tasks. + // TriggerId: The trigger id of the workflow trigger config. If both trigger_id + // and client_id is present, the workflow is executed from the start tasks + // provided by the matching trigger config otherwise it is executed from the + // default start tasks. TriggerId string `json:"triggerId,omitempty"` - // WorkflowId: Required. Pointer to the workflow it is executing. WorkflowId string `json:"workflowId,omitempty"` - // WorkflowName: Name of the workflow. WorkflowName string `json:"workflowName,omitempty"` - - // WorkflowRetryBackoffIntervalSeconds: Time interval in seconds to - // schedule retry of workflow in manifold when workflow is already - // running + // WorkflowRetryBackoffIntervalSeconds: Time interval in seconds to schedule + // retry of workflow in manifold when workflow is already running WorkflowRetryBackoffIntervalSeconds int64 `json:"workflowRetryBackoffIntervalSeconds,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot struct { // CheckpointTaskNumber: Indicates "right after which checkpoint task's // execution" this snapshot is taken. CheckpointTaskNumber string `json:"checkpointTaskNumber,omitempty"` - - // ConditionResults: All of the computed conditions that been - // calculated. + // ConditionResults: All of the computed conditions that been calculated. ConditionResults []*EnterpriseCrmEventbusProtoConditionResult `json:"conditionResults,omitempty"` - - // DiffParams: The parameters in Event object that differs from last - // snapshot. + // DiffParams: The parameters in Event object that differs from last snapshot. DiffParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"diffParams,omitempty"` - - // EventExecutionInfoId: Points to the event execution info this - // snapshot belongs to. + // EventExecutionInfoId: Points to the event execution info this snapshot + // belongs to. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - // EventExecutionSnapshotId: Auto-generated. Used as primary key for // EventExecutionSnapshots table. - EventExecutionSnapshotId string `json:"eventExecutionSnapshotId,omitempty"` - + EventExecutionSnapshotId string `json:"eventExecutionSnapshotId,omitempty"` EventExecutionSnapshotMetadata *EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata `json:"eventExecutionSnapshotMetadata,omitempty"` - // EventParams: The parameters in Event object. EventParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"eventParams,omitempty"` - // SnapshotTime: Indicates when this snapshot is taken. SnapshotTime int64 `json:"snapshotTime,omitempty,string"` - - // TaskExecutionDetails: All of the task execution details at the given - // point of time. + // TaskExecutionDetails: All of the task execution details at the given point + // of time. TaskExecutionDetails []*EnterpriseCrmEventbusProtoTaskExecutionDetails `json:"taskExecutionDetails,omitempty"` - - // TaskName: The task name associated with this snapshot. Could be - // empty. + // TaskName: The task name associated with this snapshot. Could be empty. TaskName string `json:"taskName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CheckpointTaskNumber") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CheckpointTaskNumber") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoEventParameters: LINT.IfChange -// This message is used for processing and persisting (when applicable) -// key value pair parameters for each event in the event bus. Please see +// EnterpriseCrmFrontendsEventbusProtoEventParameters: LINT.IfChange This +// message is used for processing and persisting (when applicable) key value +// pair parameters for each event in the event bus. Please see // go/integration-platform/event_bus.md for more details. Next id: 4 type EnterpriseCrmFrontendsEventbusProtoEventParameters struct { - // Parameters: Parameters are a part of Event and can be used to - // communicate between different tasks that are part of the same - // workflow execution. + // Parameters: Parameters are a part of Event and can be used to communicate + // between different tasks that are part of the same workflow execution. Parameters []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoEventParameters) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoEventParameters) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoEventParameters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoIntParameterArray struct { IntValues googleapi.Int64s `json:"intValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntValues") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IntValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoIntParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoIntParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoIntParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmFrontendsEventbusProtoParamSpecEntry: Key-value pair of // EventBus task parameters. Next id: 13 type EnterpriseCrmFrontendsEventbusProtoParamSpecEntry struct { // ClassName: The FQCN of the Java object this represents. A string, for - // example, would be "java.lang.String". If this is "java.lang.Object", - // the parameter can be of any type. + // example, would be "java.lang.String". If this is "java.lang.Object", the + // parameter can be of any type. ClassName string `json:"className,omitempty"` - - // CollectionElementClassName: If it is a collection of objects, this - // would be the FCQN of every individual element in the collection. If - // this is "java.lang.Object", the parameter is a collection of any - // type. + // CollectionElementClassName: If it is a collection of objects, this would be + // the FCQN of every individual element in the collection. If this is + // "java.lang.Object", the parameter is a collection of any type. CollectionElementClassName string `json:"collectionElementClassName,omitempty"` - // Config: Optional fields, such as help text and other useful info. Config *EnterpriseCrmEventbusProtoParamSpecEntryConfig `json:"config,omitempty"` - // DataType: The data type of the parameter. // // Possible values: @@ -5104,92 +4200,69 @@ type EnterpriseCrmFrontendsEventbusProtoParamSpecEntry struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" DataType string `json:"dataType,omitempty"` - - // DefaultValue: Default values for the defined keys. Each value can - // either be string, int, double or any proto message or a serialized - // object. + // DefaultValue: Default values for the defined keys. Each value can either be + // string, int, double or any proto message or a serialized object. DefaultValue *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"defaultValue,omitempty"` - - // IsDeprecated: If set, this entry is deprecated, so further use of - // this parameter should be prohibited. + // IsDeprecated: If set, this entry is deprecated, so further use of this + // parameter should be prohibited. IsDeprecated bool `json:"isDeprecated,omitempty"` - - IsOutput bool `json:"isOutput,omitempty"` - + IsOutput bool `json:"isOutput,omitempty"` // JsonSchema: If the data_type is JSON_VALUE, then this will define its // schema. JsonSchema string `json:"jsonSchema,omitempty"` - - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given task. These parameters must be - // predefined in the workflow definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given task. These parameters must be predefined in the + // workflow definition. Key string `json:"key,omitempty"` - // ProtoDef: Populated if this represents a proto or proto array. ProtoDef *EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition `json:"protoDef,omitempty"` - - // Required: If set, the user must provide an input value for this - // parameter. + // Required: If set, the user must provide an input value for this parameter. Required bool `json:"required,omitempty"` - // ValidationRule: Rule used to validate inputs (individual values and // collection elements) for this parameter. ValidationRule *EnterpriseCrmEventbusProtoParamSpecEntryValidationRule `json:"validationRule,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClassName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClassName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClassName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParamSpecEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParamSpecEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParamSpecEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage struct { Parameters []*EnterpriseCrmFrontendsEventbusProtoParamSpecEntry `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmFrontendsEventbusProtoParameterEntry: Key-value pair of @@ -5212,54 +4285,44 @@ type EnterpriseCrmFrontendsEventbusProtoParameterEntry struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" DataType string `json:"dataType,omitempty"` - - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given fired event. These parameters must be - // predefined in the workflow definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given fired event. These parameters must be predefined in + // the workflow definition. Key string `json:"key,omitempty"` - - // Value: Values for the defined keys. Each value can either be string, - // int, double or any proto message. + // Value: Values for the defined keys. Each value can either be string, int, + // double or any proto message. Value *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParameterEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParameterEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoParameterMap: A generic multi-map -// that holds key value pairs. They keys and values can be of any type, -// unless specified. +// EnterpriseCrmFrontendsEventbusProtoParameterMap: A generic multi-map that +// holds key value pairs. They keys and values can be of any type, unless +// specified. type EnterpriseCrmFrontendsEventbusProtoParameterMap struct { Entries []*EnterpriseCrmFrontendsEventbusProtoParameterMapEntry `json:"entries,omitempty"` - - // KeyType: Option to specify key value type for all entries of the map. - // If provided then field types for all entries must conform to this. + // KeyType: Option to specify key value type for all entries of the map. If + // provided then field types for all entries must conform to this. // // Possible values: // "DATA_TYPE_UNSPECIFIED" @@ -5276,14 +4339,12 @@ type EnterpriseCrmFrontendsEventbusProtoParameterMap struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" KeyType string `json:"keyType,omitempty"` - // Possible values: // "DATA_TYPE_UNSPECIFIED" // "STRING_VALUE" @@ -5299,147 +4360,109 @@ type EnterpriseCrmFrontendsEventbusProtoParameterMap struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" ValueType string `json:"valueType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParameterMap) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParameterMap) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterMap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoParameterMapEntry: Entry is a pair -// of key and value. +// EnterpriseCrmFrontendsEventbusProtoParameterMapEntry: Entry is a pair of key +// and value. type EnterpriseCrmFrontendsEventbusProtoParameterMapEntry struct { - Key *EnterpriseCrmFrontendsEventbusProtoParameterMapField `json:"key,omitempty"` - + Key *EnterpriseCrmFrontendsEventbusProtoParameterMapField `json:"key,omitempty"` Value *EnterpriseCrmFrontendsEventbusProtoParameterMapField `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParameterMapEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParameterMapEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterMapEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoParameterMapField: Field -// represents either the key or value in an entry. +// EnterpriseCrmFrontendsEventbusProtoParameterMapField: Field represents +// either the key or value in an entry. type EnterpriseCrmFrontendsEventbusProtoParameterMapField struct { // LiteralValue: Passing a literal value. LiteralValue *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"literalValue,omitempty"` - // ReferenceKey: Referencing one of the WF variables. ReferenceKey string `json:"referenceKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "LiteralValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LiteralValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LiteralValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParameterMapField) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParameterMapField) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterMapField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoParameterValueType: To support -// various types of parameter values. Next available id: 14 +// EnterpriseCrmFrontendsEventbusProtoParameterValueType: To support various +// types of parameter values. Next available id: 14 type EnterpriseCrmFrontendsEventbusProtoParameterValueType struct { - BooleanArray *EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray `json:"booleanArray,omitempty"` - - BooleanValue bool `json:"booleanValue,omitempty"` - - DoubleArray *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray `json:"doubleArray,omitempty"` - - DoubleValue float64 `json:"doubleValue,omitempty"` - - IntArray *EnterpriseCrmFrontendsEventbusProtoIntParameterArray `json:"intArray,omitempty"` - - IntValue int64 `json:"intValue,omitempty,string"` - - JsonValue string `json:"jsonValue,omitempty"` - - ProtoArray *EnterpriseCrmFrontendsEventbusProtoProtoParameterArray `json:"protoArray,omitempty"` - - ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` - + BooleanArray *EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray `json:"booleanArray,omitempty"` + BooleanValue bool `json:"booleanValue,omitempty"` + DoubleArray *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray `json:"doubleArray,omitempty"` + DoubleValue float64 `json:"doubleValue,omitempty"` + IntArray *EnterpriseCrmFrontendsEventbusProtoIntParameterArray `json:"intArray,omitempty"` + IntValue int64 `json:"intValue,omitempty,string"` + JsonValue string `json:"jsonValue,omitempty"` + ProtoArray *EnterpriseCrmFrontendsEventbusProtoProtoParameterArray `json:"protoArray,omitempty"` + ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` SerializedObjectValue *EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter `json:"serializedObjectValue,omitempty"` - - StringArray *EnterpriseCrmFrontendsEventbusProtoStringParameterArray `json:"stringArray,omitempty"` - - StringValue string `json:"stringValue,omitempty"` - + StringArray *EnterpriseCrmFrontendsEventbusProtoStringParameterArray `json:"stringArray,omitempty"` + StringValue string `json:"stringValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BooleanArray") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanArray") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanArray") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParameterValueType) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParameterValueType) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterValueType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmFrontendsEventbusProtoParameterValueType) UnmarshalJSON(data []byte) error { @@ -5458,431 +4481,337 @@ func (s *EnterpriseCrmFrontendsEventbusProtoParameterValueType) UnmarshalJSON(da type EnterpriseCrmFrontendsEventbusProtoProtoParameterArray struct { ProtoValues []googleapi.RawMessage `json:"protoValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProtoValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProtoValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProtoValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoProtoParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoProtoParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoProtoParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoRollbackStrategy: Next available -// id: 4 +// EnterpriseCrmFrontendsEventbusProtoRollbackStrategy: Next available id: 4 type EnterpriseCrmFrontendsEventbusProtoRollbackStrategy struct { - // Parameters: Optional. The customized parameters the user can pass to - // this task. + // Parameters: Optional. The customized parameters the user can pass to this + // task. Parameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"parameters,omitempty"` - - // RollbackTaskImplementationClassName: Required. This is the name of - // the task that needs to be executed upon rollback of this task. + // RollbackTaskImplementationClassName: Required. This is the name of the task + // that needs to be executed upon rollback of this task. RollbackTaskImplementationClassName string `json:"rollbackTaskImplementationClassName,omitempty"` - - // TaskNumbersToRollback: Required. These are the tasks numbers of the - // tasks whose - // `rollback_strategy.rollback_task_implementation_class_name` needs to + // TaskNumbersToRollback: Required. These are the tasks numbers of the tasks + // whose `rollback_strategy.rollback_task_implementation_class_name` needs to // be executed upon failure of this task. TaskNumbersToRollback []string `json:"taskNumbersToRollback,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoRollbackStrategy) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoRollbackStrategy) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoRollbackStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter struct { ObjectValue string `json:"objectValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "ObjectValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ObjectValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ObjectValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoStringParameterArray struct { StringValues []string `json:"stringValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "StringValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StringValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StringValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoStringParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoStringParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoStringParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmFrontendsEventbusProtoTaskConfig: The task configuration -// details. This is not the implementation of Task. There might be -// multiple TaskConfigs for the same Task. Next available id: 27 +// details. This is not the implementation of Task. There might be multiple +// TaskConfigs for the same Task. Next available id: 27 type EnterpriseCrmFrontendsEventbusProtoTaskConfig struct { - // AlertConfigs: Alert configurations on error rate, warning rate, - // number of runs, durations, etc. + // AlertConfigs: Alert configurations on error rate, warning rate, number of + // runs, durations, etc. AlertConfigs []*EnterpriseCrmEventbusProtoTaskAlertConfig `json:"alertConfigs,omitempty"` - // CreateTime: Auto-generated. CreateTime string `json:"createTime,omitempty"` - - // CreatorEmail: The creator's email address. Auto-generated from the - // user's email. + // CreatorEmail: The creator's email address. Auto-generated from the user's + // email. CreatorEmail string `json:"creatorEmail,omitempty"` - // Description: User-provided description intended to give more business // context about the task. Description string `json:"description,omitempty"` - - // DisableStrictTypeValidation: If this config contains a TypedTask, - // allow validation to succeed if an input is read from the output of - // another TypedTask whose output type is declared as a superclass of - // the requested input type. For instance, if the previous task declares - // an output of type Message, any task with this flag enabled will pass - // validation when attempting to read any proto Message type from the - // resultant Event parameter. + // DisableStrictTypeValidation: If this config contains a TypedTask, allow + // validation to succeed if an input is read from the output of another + // TypedTask whose output type is declared as a superclass of the requested + // input type. For instance, if the previous task declares an output of type + // Message, any task with this flag enabled will pass validation when + // attempting to read any proto Message type from the resultant Event + // parameter. DisableStrictTypeValidation bool `json:"disableStrictTypeValidation,omitempty"` - - // FailurePolicy: Optional. Determines the number of times the task will - // be retried on failure and with what retry strategy. This is - // applicable for asynchronous calls to Eventbus alone (Post To Queue, - // Schedule etc.). + // FailurePolicy: Optional. Determines the number of times the task will be + // retried on failure and with what retry strategy. This is applicable for + // asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). FailurePolicy *EnterpriseCrmEventbusProtoFailurePolicy `json:"failurePolicy,omitempty"` - // IncomingEdgeCount: The number of edges leading into this TaskConfig. IncomingEdgeCount int64 `json:"incomingEdgeCount,omitempty"` - - // JsonValidationOption: If set, overrides the option configured in the - // Task implementation class. + // JsonValidationOption: If set, overrides the option configured in the Task + // implementation class. // // Possible values: - // "UNSPECIFIED_JSON_VALIDATION_OPTION" - As per the default behavior, - // no validation will be run. Will not override any option set in a - // Task. + // "UNSPECIFIED_JSON_VALIDATION_OPTION" - As per the default behavior, no + // validation will be run. Will not override any option set in a Task. // "SKIP" - Do not run any validation against JSON schemas. - // "PRE_EXECUTION" - Validate all potential input JSON parameters - // against schemas specified in WorkflowParameters. - // "POST_EXECUTION" - Validate all potential output JSON parameters - // against schemas specified in WorkflowParameters. - // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and - // POST_EXECUTION validations. + // "PRE_EXECUTION" - Validate all potential input JSON parameters against + // schemas specified in WorkflowParameters. + // "POST_EXECUTION" - Validate all potential output JSON parameters against + // schemas specified in WorkflowParameters. + // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and POST_EXECUTION + // validations. JsonValidationOption string `json:"jsonValidationOption,omitempty"` - - // Label: User-provided label that is attached to this TaskConfig in the - // UI. + // Label: User-provided label that is attached to this TaskConfig in the UI. Label string `json:"label,omitempty"` - // LastModifiedTime: Auto-generated. LastModifiedTime string `json:"lastModifiedTime,omitempty"` - - // NextTasks: The set of tasks that are next in line to be executed as - // per the execution graph defined for the parent event, specified by + // NextTasks: The set of tasks that are next in line to be executed as per the + // execution graph defined for the parent event, specified by // `event_config_id`. Each of these next tasks are executed only if the // condition associated with them evaluates to true. NextTasks []*EnterpriseCrmEventbusProtoNextTask `json:"nextTasks,omitempty"` - - // NextTasksExecutionPolicy: The policy dictating the execution of the - // next set of tasks for the current task. + // NextTasksExecutionPolicy: The policy dictating the execution of the next set + // of tasks for the current task. // // Possible values: // "UNSPECIFIED" - Default - // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their - // associated condition. - // "RUN_FIRST_MATCH" - Execute the first task that satisfies the - // associated condition. + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their associated + // condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the associated + // condition. NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` - // Parameters: The customized parameters the user can pass to this task. Parameters map[string]EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameters,omitempty"` - - // Position: Optional. Informs the front-end application where to draw - // this task config on the UI. + // Position: Optional. Informs the front-end application where to draw this + // task config on the UI. Position *EnterpriseCrmEventbusProtoCoordinate `json:"position,omitempty"` - // Precondition: Optional. Standard filter expression evaluated before - // execution. Independent of other conditions and tasks. Can be used to - // enable rollout. e.g. "rollout(5)" will only allow 5% of incoming - // traffic to task. + // execution. Independent of other conditions and tasks. Can be used to enable + // rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. Precondition string `json:"precondition,omitempty"` - // PreconditionLabel: Optional. User-provided label that is attached to // precondition in the UI. PreconditionLabel string `json:"preconditionLabel,omitempty"` - - // RollbackStrategy: Optional. Contains information about what needs to - // be done upon failure (either a permanent error or after it has been - // retried too many times). + // RollbackStrategy: Optional. Contains information about what needs to be done + // upon failure (either a permanent error or after it has been retried too many + // times). RollbackStrategy *EnterpriseCrmFrontendsEventbusProtoRollbackStrategy `json:"rollbackStrategy,omitempty"` - // SuccessPolicy: Determines what action to take upon successful task // completion. SuccessPolicy *EnterpriseCrmEventbusProtoSuccessPolicy `json:"successPolicy,omitempty"` - - // SynchronousCallFailurePolicy: Optional. Determines the number of - // times the task will be retried on failure and with what retry - // strategy. This is applicable for synchronous calls to Eventbus alone - // (Post). + // SynchronousCallFailurePolicy: Optional. Determines the number of times the + // task will be retried on failure and with what retry strategy. This is + // applicable for synchronous calls to Eventbus alone (Post). SynchronousCallFailurePolicy *EnterpriseCrmEventbusProtoFailurePolicy `json:"synchronousCallFailurePolicy,omitempty"` - - // TaskEntity: Copy of the task entity that this task config is an - // instance of. + // TaskEntity: Copy of the task entity that this task config is an instance of. TaskEntity *EnterpriseCrmFrontendsEventbusProtoTaskEntity `json:"taskEntity,omitempty"` - - // TaskExecutionStrategy: The policy dictating the execution strategy of - // this task. + // TaskExecutionStrategy: The policy dictating the execution strategy of this + // task. // // Possible values: // "WHEN_ALL_SUCCEED" - Wait until all of its previous tasks finished - // execution, then verify at least one of the edge conditions is met, - // and execute if possible. This should be considered as - // WHEN_ALL_TASKS_SUCCEED. - // "WHEN_ANY_SUCCEED" - Start execution as long as any of its previous - // tasks finished execution and the corresponding edge condition is met - // (since we will execute if only that succeeding edge condition is - // met). - // "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" - Wait until all of its - // previous tasks finished execution, then verify the all edge - // conditions are met and execute if possible. + // execution, then verify at least one of the edge conditions is met, and + // execute if possible. This should be considered as WHEN_ALL_TASKS_SUCCEED. + // "WHEN_ANY_SUCCEED" - Start execution as long as any of its previous tasks + // finished execution and the corresponding edge condition is met (since we + // will execute if only that succeeding edge condition is met). + // "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" - Wait until all of its previous + // tasks finished execution, then verify the all edge conditions are met and + // execute if possible. TaskExecutionStrategy string `json:"taskExecutionStrategy,omitempty"` - // TaskName: The name for the task. TaskName string `json:"taskName,omitempty"` - - // TaskNumber: REQUIRED: the identifier of this task within its parent - // event config, specified by the client. This should be unique among - // all the tasks belong to the same event config. We use this field as - // the identifier to find next tasks (via field - // `next_tasks.task_number`). + // TaskNumber: REQUIRED: the identifier of this task within its parent event + // config, specified by the client. This should be unique among all the tasks + // belong to the same event config. We use this field as the identifier to find + // next tasks (via field `next_tasks.task_number`). TaskNumber string `json:"taskNumber,omitempty"` - - // TaskSpec: A string template that allows user to configure task - // parameters (with either literal default values or tokens which will - // be resolved at execution time) for the task. It will eventually - // replace the old "parameters" field. Please refer to - // go/eventbus-task-spec-example for detailed usage example. + // TaskSpec: A string template that allows user to configure task parameters + // (with either literal default values or tokens which will be resolved at + // execution time) for the task. It will eventually replace the old + // "parameters" field. Please refer to go/eventbus-task-spec-example for + // detailed usage example. TaskSpec string `json:"taskSpec,omitempty"` - - // TaskTemplateName: Used to define task-template name if task is of - // type task-template + // TaskTemplateName: Used to define task-template name if task is of type + // task-template TaskTemplateName string `json:"taskTemplateName,omitempty"` - // TaskType: Defines the type of the task // // Possible values: // "TASK" - Normal IP task // "ASIS_TEMPLATE" - Task is of As-Is Template type - // "IO_TEMPLATE" - Task is of I/O template type with a different - // underlying task + // "IO_TEMPLATE" - Task is of I/O template type with a different underlying + // task TaskType string `json:"taskType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AlertConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AlertConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlertConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoTaskConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoTaskConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoTaskConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoTaskEntity: Contains a task's -// metadata and associated information. Next available id: 7 +// EnterpriseCrmFrontendsEventbusProtoTaskEntity: Contains a task's metadata +// and associated information. Next available id: 7 type EnterpriseCrmFrontendsEventbusProtoTaskEntity struct { // DisabledForVpcSc: True if the task has conflict with vpcsc DisabledForVpcSc bool `json:"disabledForVpcSc,omitempty"` - // Metadata: Metadata inclueds the task name, author and so on. Metadata *EnterpriseCrmEventbusProtoTaskMetadata `json:"metadata,omitempty"` - - // ParamSpecs: Declarations for inputs/outputs for a TypedTask. This is - // also associated with the METADATA mask. + // ParamSpecs: Declarations for inputs/outputs for a TypedTask. This is also + // associated with the METADATA mask. ParamSpecs *EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage `json:"paramSpecs,omitempty"` - // Stats: Deprecated - statistics from the Monarch query. Stats *EnterpriseCrmEventbusStats `json:"stats,omitempty"` - // TaskType: Defines the type of the task // // Possible values: // "TASK" - Normal IP task // "ASIS_TEMPLATE" - Task is of As-Is Template type - // "IO_TEMPLATE" - Task is of I/O template type with a different - // underlying task + // "IO_TEMPLATE" - Task is of I/O template type with a different underlying + // task TaskType string `json:"taskType,omitempty"` - - // UiConfig: UI configuration for this task Also associated with the - // METADATA mask. + // UiConfig: UI configuration for this task Also associated with the METADATA + // mask. UiConfig *EnterpriseCrmEventbusProtoTaskUiConfig `json:"uiConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisabledForVpcSc") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisabledForVpcSc") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DisabledForVpcSc") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoTaskEntity) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoTaskEntity) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoTaskEntity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoTriggerConfig: Configuration -// detail of a trigger. Next available id: 17 +// EnterpriseCrmFrontendsEventbusProtoTriggerConfig: Configuration detail of a +// trigger. Next available id: 17 type EnterpriseCrmFrontendsEventbusProtoTriggerConfig struct { - // AlertConfig: An alert threshold configuration for the [trigger + - // client + workflow] tuple. If these values are not specified in the - // trigger config, default values will be populated by the system. Note - // that there must be exactly one alert threshold configured per [client - // + trigger + workflow] when published. - AlertConfig []*EnterpriseCrmEventbusProtoWorkflowAlertConfig `json:"alertConfig,omitempty"` - - CloudSchedulerConfig *EnterpriseCrmEventbusProtoCloudSchedulerConfig `json:"cloudSchedulerConfig,omitempty"` - + // AlertConfig: An alert threshold configuration for the [trigger + client + + // workflow] tuple. If these values are not specified in the trigger config, + // default values will be populated by the system. Note that there must be + // exactly one alert threshold configured per [client + trigger + workflow] + // when published. + AlertConfig []*EnterpriseCrmEventbusProtoWorkflowAlertConfig `json:"alertConfig,omitempty"` + CloudSchedulerConfig *EnterpriseCrmEventbusProtoCloudSchedulerConfig `json:"cloudSchedulerConfig,omitempty"` // Description: User-provided description intended to give more business // context about the task. Description string `json:"description,omitempty"` - // EnabledClients: Required. The list of client ids which are enabled to - // execute the workflow using this trigger. In other words, these - // clients have the workflow execution privledges for this trigger. For - // API trigger, the client id in the incoming request is validated - // against the list of enabled clients. For non-API triggers, one - // workflow execution is triggered on behalf of each enabled client. + // execute the workflow using this trigger. In other words, these clients have + // the workflow execution privledges for this trigger. For API trigger, the + // client id in the incoming request is validated against the list of enabled + // clients. For non-API triggers, one workflow execution is triggered on behalf + // of each enabled client. EnabledClients []string `json:"enabledClients,omitempty"` - // Label: The user created label for a particular trigger. Label string `json:"label,omitempty"` - // NextTasksExecutionPolicy: Dictates how next tasks will be executed. // // Possible values: // "UNSPECIFIED" - Default - // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their - // associated condition. - // "RUN_FIRST_MATCH" - Execute the first task that satisfies the - // associated condition. + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their associated + // condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the associated + // condition. NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` - - // PauseWorkflowExecutions: Optional. If set to true, any upcoming - // requests for this trigger config will be paused and the executions - // will be resumed later when the flag is reset. The workflow to which - // this trigger config belongs has to be in ACTIVE status for the - // executions to be paused or resumed. + // PauseWorkflowExecutions: Optional. If set to true, any upcoming requests for + // this trigger config will be paused and the executions will be resumed later + // when the flag is reset. The workflow to which this trigger config belongs + // has to be in ACTIVE status for the executions to be paused or resumed. PauseWorkflowExecutions bool `json:"pauseWorkflowExecutions,omitempty"` - - // Position: Optional. Informs the front-end application where to draw - // this trigger config on the UI. + // Position: Optional. Informs the front-end application where to draw this + // trigger config on the UI. Position *EnterpriseCrmEventbusProtoCoordinate `json:"position,omitempty"` - - // Properties: Configurable properties of the trigger, not to be - // confused with workflow parameters. E.g. "name" is a property for API - // triggers and "subscription" is a property for Cloud Pubsub triggers. + // Properties: Configurable properties of the trigger, not to be confused with + // workflow parameters. E.g. "name" is a property for API triggers and + // "subscription" is a property for Cloud Pubsub triggers. Properties map[string]string `json:"properties,omitempty"` - // StartTasks: Set of tasks numbers from where the workflow execution is - // started by this trigger. If this is empty, then workflow is executed - // with default start tasks. In the list of start tasks, none of two - // tasks can have direct ancestor-descendant relationships (i.e. in a - // same workflow execution graph). + // started by this trigger. If this is empty, then workflow is executed with + // default start tasks. In the list of start tasks, none of two tasks can have + // direct ancestor-descendant relationships (i.e. in a same workflow execution + // graph). StartTasks []*EnterpriseCrmEventbusProtoNextTask `json:"startTasks,omitempty"` - - // TriggerCriteria: Optional. When set, Eventbus will run the task - // specified in the trigger_criteria and validate the result using the - // trigger_criteria.condition, and only execute the workflow when result - // is true. + // TriggerCriteria: Optional. When set, Eventbus will run the task specified in + // the trigger_criteria and validate the result using the + // trigger_criteria.condition, and only execute the workflow when result is + // true. TriggerCriteria *EnterpriseCrmEventbusProtoTriggerCriteria `json:"triggerCriteria,omitempty"` - // TriggerId: The backend trigger ID. TriggerId string `json:"triggerId,omitempty"` - - // TriggerNumber: Required. A number to uniquely identify each trigger - // config within the workflow on UI. + // TriggerNumber: Required. A number to uniquely identify each trigger config + // within the workflow on UI. TriggerNumber string `json:"triggerNumber,omitempty"` - // Possible values: // "UNKNOWN" // "CLOUD_PUBSUB" @@ -5898,38 +4827,30 @@ type EnterpriseCrmFrontendsEventbusProtoTriggerConfig struct { // "SFDC_PLATFORM_EVENTS_CHANNEL" // "CLOUD_SCHEDULER" TriggerType string `json:"triggerType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AlertConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AlertConfig") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlertConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoTriggerConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoTriggerConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoTriggerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry struct { // Attributes: Metadata information about the parameters. Attributes *EnterpriseCrmEventbusProtoAttributes `json:"attributes,omitempty"` - - // Children: Child parameters nested within this parameter. This field - // only applies to protobuf parameters + // Children: Child parameters nested within this parameter. This field only + // applies to protobuf parameters Children []*EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry `json:"children,omitempty"` - // DataType: The data type of the parameter. // // Possible values: @@ -5947,217 +4868,177 @@ type EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" DataType string `json:"dataType,omitempty"` - - // DefaultValue: Default values for the defined keys. Each value can - // either be string, int, double or any proto message or a serialized - // object. + // DefaultValue: Default values for the defined keys. Each value can either be + // string, int, double or any proto message or a serialized object. DefaultValue *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"defaultValue,omitempty"` - // InOutType: Specifies the input/output type for the parameter. // // Possible values: // "IN_OUT_TYPE_UNSPECIFIED" - // "IN" - Input parameters for the workflow. EventBus validates that - // these parameters exist in the workflows before execution. - // "OUT" - Output Parameters for the workflow. EventBus will only - // return the workflow parameters tagged with OUT in the response back. - // "IN_OUT" - Input or Output Parameters. These can be used as both - // input and output. EventBus will validate for the existence of these - // parameters before execution and will also return this parameter back - // in the response. + // "IN" - Input parameters for the workflow. EventBus validates that these + // parameters exist in the workflows before execution. + // "OUT" - Output Parameters for the workflow. EventBus will only return the + // workflow parameters tagged with OUT in the response back. + // "IN_OUT" - Input or Output Parameters. These can be used as both input and + // output. EventBus will validate for the existence of these parameters before + // execution and will also return this parameter back in the response. InOutType string `json:"inOutType,omitempty"` - // IsTransient: Whether this parameter is a transient parameter. // go/ip-transient-parameters IsTransient bool `json:"isTransient,omitempty"` - - // JsonSchema: This schema will be used to validate runtime JSON-typed - // values of this parameter. + // JsonSchema: This schema will be used to validate runtime JSON-typed values + // of this parameter. JsonSchema string `json:"jsonSchema,omitempty"` - - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given fired event. These parameters must be - // predefined in the workflow definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given fired event. These parameters must be predefined in + // the workflow definition. Key string `json:"key,omitempty"` - // Name: The name (without prefix) to be displayed in the UI for this - // parameter. E.g. if the key is "foo.bar.myName", then the name would - // be "myName". + // parameter. E.g. if the key is "foo.bar.myName", then the name would be + // "myName". Name string `json:"name,omitempty"` - - // ProducedBy: The identifier of the node (TaskConfig/TriggerConfig) - // this parameter was produced by, if it is a transient param or a copy - // of an input param. + // ProducedBy: The identifier of the node (TaskConfig/TriggerConfig) this + // parameter was produced by, if it is a transient param or a copy of an input + // param. ProducedBy *EnterpriseCrmEventbusProtoNodeIdentifier `json:"producedBy,omitempty"` - - Producer string `json:"producer,omitempty"` - - // ProtoDefName: The name of the protobuf type if the parameter has a - // protobuf data type. + Producer string `json:"producer,omitempty"` + // ProtoDefName: The name of the protobuf type if the parameter has a protobuf + // data type. ProtoDefName string `json:"protoDefName,omitempty"` - - // ProtoDefPath: If the data type is of type proto or proto array, this - // field needs to be populated with the fully qualified proto name. This - // message, for example, would be + // ProtoDefPath: If the data type is of type proto or proto array, this field + // needs to be populated with the fully qualified proto name. This message, for + // example, would be // "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". ProtoDefPath string `json:"protoDefPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "Attributes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attributes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attributes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnterpriseCrmFrontendsEventbusProtoWorkflowParameters: LINT.IfChange -// This is the frontend version of WorkflowParameters. It's exactly like -// the backend version except that instead of flattening protobuf -// parameters and treating every field and subfield of a protobuf -// parameter as a separate parameter, the fields/subfields of a protobuf -// parameter will be nested as "children" (see 'children' field below) -// parameters of the parent parameter. Please refer to -// enterprise/crm/eventbus/proto/workflow_parameters.proto for more + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoWorkflowParameters: LINT.IfChange This is +// the frontend version of WorkflowParameters. It's exactly like the backend +// version except that instead of flattening protobuf parameters and treating +// every field and subfield of a protobuf parameter as a separate parameter, +// the fields/subfields of a protobuf parameter will be nested as "children" +// (see 'children' field below) parameters of the parent parameter. Please +// refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more // information about WorkflowParameters. type EnterpriseCrmFrontendsEventbusProtoWorkflowParameters struct { - // Parameters: Parameters are a part of Event and can be used to - // communiticate between different tasks that are part of the same - // workflow execution. + // Parameters: Parameters are a part of Event and can be used to communiticate + // between different tasks that are part of the same workflow execution. Parameters []*EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoWorkflowParameters) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoWorkflowParameters) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoWorkflowParameters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmLoggingGwsFieldLimits: Describes string and array limits -// when writing to logs. When a limit is exceeded the *shortener_type* -// describes how to shorten the field. next_id: 6 +// EnterpriseCrmLoggingGwsFieldLimits: Describes string and array limits when +// writing to logs. When a limit is exceeded the *shortener_type* describes how +// to shorten the field. next_id: 6 type EnterpriseCrmLoggingGwsFieldLimits struct { // Possible values: // "LOG_ACTION_UNSPECIFIED" // "DONT_LOG" // "LOG" LogAction string `json:"logAction,omitempty"` - // LogType: To which type(s) of logs the limits apply. // // Possible values: // "LOG_TYPE_UNSPECIFIED" // "GWS" - Limits apply when log detail records are written to GWS. - // "GTS" - Limits apply when log detail records are written to GTS - // (e.g., RecordIO files). + // "GTS" - Limits apply when log detail records are written to GTS (e.g., + // RecordIO files). // "ALL" - Limits apply to *all* output log types. LogType []string `json:"logType,omitempty"` - - // MaxArraySize: maximum array size. If the array exceds this size, the - // field (list) is truncated. + // MaxArraySize: maximum array size. If the array exceds this size, the field + // (list) is truncated. MaxArraySize int64 `json:"maxArraySize,omitempty"` - - // MaxStringLength: maximum string length. If the field exceeds this - // amount the field is shortened. + // MaxStringLength: maximum string length. If the field exceeds this amount the + // field is shortened. MaxStringLength int64 `json:"maxStringLength,omitempty"` - // Possible values: // "SHORTENER_TYPE_UNSPECIFIED" // "SHORTEN" - String is shortened to max_string_length. // "HASH" - String is replaced by its hex-string hash. // "SHORTEN_WITH_HASH" - String is replaced by a combination of string // shortening and a hex-string hash. - // "SHORTEN_EMAIL" - String shortening for email addresses. Shortening - // may be done on the user and/or domain portion of the email address. - // "SHORTEN_EMAIL_WITH_HASH" - String is replaced by a combination of - // string shortening and a hex-string hash for an email address. - // "SHORTEN_DOMAIN" - Shortens a domain name (e.g., as part of an - // email address or URL). + // "SHORTEN_EMAIL" - String shortening for email addresses. Shortening may be + // done on the user and/or domain portion of the email address. + // "SHORTEN_EMAIL_WITH_HASH" - String is replaced by a combination of string + // shortening and a hex-string hash for an email address. + // "SHORTEN_DOMAIN" - Shortens a domain name (e.g., as part of an email + // address or URL). ShortenerType string `json:"shortenerType,omitempty"` - // ForceSendFields is a list of field names (e.g. "LogAction") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogAction") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LogAction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmLoggingGwsFieldLimits) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmLoggingGwsFieldLimits) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmLoggingGwsFieldLimits - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmLoggingGwsSanitizeOptions: Identifies whether a field -// contains, or may contain, PII or sensitive data, and how to sanitize -// the field if it does. If a field's privacy type cannot be determined -// then it is sanitized (e.g., scrubbed). The specific sanitizer -// implementation is determined by run-time configuration and -// environment options (e.g., prod vs. qa). next_id: 5 +// EnterpriseCrmLoggingGwsSanitizeOptions: Identifies whether a field contains, +// or may contain, PII or sensitive data, and how to sanitize the field if it +// does. If a field's privacy type cannot be determined then it is sanitized +// (e.g., scrubbed). The specific sanitizer implementation is determined by +// run-time configuration and environment options (e.g., prod vs. qa). next_id: +// 5 type EnterpriseCrmLoggingGwsSanitizeOptions struct { - // IsAlreadySanitized: If true, the value has already been sanitized and - // needs no further sanitization. For instance, a D3 customer id is - // already an obfuscated entity and *might not* need further - // sanitization. + // IsAlreadySanitized: If true, the value has already been sanitized and needs + // no further sanitization. For instance, a D3 customer id is already an + // obfuscated entity and *might not* need further sanitization. IsAlreadySanitized bool `json:"isAlreadySanitized,omitempty"` - // LogType: To which type(s) of logs the sanitize options apply. // // Possible values: // "LOG_TYPE_UNSPECIFIED" // "GWS" - Limits apply when log detail records are written to GWS. - // "GTS" - Limits apply when log detail records are written to GTS - // (e.g., RecordIO files). + // "GTS" - Limits apply when log detail records are written to GTS (e.g., + // RecordIO files). // "ALL" - Limits apply to *all* output log types. LogType []string `json:"logType,omitempty"` - // Possible values: // "PRIVACY_TYPE_UNSPECIFIED" // "NOT_PII" - Field does *NOT* contain PII or sensitive data. @@ -6165,45 +5046,36 @@ type EnterpriseCrmLoggingGwsSanitizeOptions struct { // "SPII" - Field contains Sensitive PII. // "UNSURE" - Unsure if field contains PII. Privacy string `json:"privacy,omitempty"` - // Possible values: // "SANITIZE_TYPE_UNSPECIFIED" // "SCRUB" - Replace value with a scrubbed value (usu. a constant). // "ANONYMIZE" - Transform a value so that it cannot be tracked across - // events. However, a given value, is transformed to the same value - // *within* an event. E.g., "foo.com" is transformed to "0xabcdef" for - // event 1001, and to "0xfedcba" for event 1002. - // "ANONYMIZE_LIMITED_REPEATABLE" - Transform values as with - // ANONYMIZER, but the same transformation is repeated for a limited - // time (e.g., 1 day). - // "OBFUSCATE" - The value is transformed using a well-defined - // obfuscator (e.g., D3_CUSTOMER_ID). + // events. However, a given value, is transformed to the same value *within* an + // event. E.g., "foo.com" is transformed to "0xabcdef" for event 1001, and to + // "0xfedcba" for event 1002. + // "ANONYMIZE_LIMITED_REPEATABLE" - Transform values as with ANONYMIZER, but + // the same transformation is repeated for a limited time (e.g., 1 day). + // "OBFUSCATE" - The value is transformed using a well-defined obfuscator + // (e.g., D3_CUSTOMER_ID). // "ENCRYPT" - The value is encrypted. // "DO_NOT_SANITIZE" - No sanitization is required. SanitizeType string `json:"sanitizeType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IsAlreadySanitized") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IsAlreadySanitized") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IsAlreadySanitized") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IsAlreadySanitized") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmLoggingGwsSanitizeOptions) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmLoggingGwsSanitizeOptions) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmLoggingGwsSanitizeOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudConnectorsV1AuthConfig: AuthConfig defines details of a @@ -6211,7 +5083,6 @@ func (s *EnterpriseCrmLoggingGwsSanitizeOptions) MarshalJSON() ([]byte, error) { type GoogleCloudConnectorsV1AuthConfig struct { // AdditionalVariables: List containing additional auth configs. AdditionalVariables []*GoogleCloudConnectorsV1ConfigVariable `json:"additionalVariables,omitempty"` - // AuthType: The type of authentication configured. // // Possible values: @@ -6224,186 +5095,143 @@ type GoogleCloudConnectorsV1AuthConfig struct { // "SSH_PUBLIC_KEY" - SSH Public Key Authentication // "OAUTH2_AUTH_CODE_FLOW" - Oauth 2.0 Authorization Code Flow AuthType string `json:"authType,omitempty"` - // Oauth2ClientCredentials: Oauth2ClientCredentials. Oauth2ClientCredentials *GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials `json:"oauth2ClientCredentials,omitempty"` - // Oauth2JwtBearer: Oauth2JwtBearer. Oauth2JwtBearer *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer `json:"oauth2JwtBearer,omitempty"` - // SshPublicKey: SSH Public Key. SshPublicKey *GoogleCloudConnectorsV1AuthConfigSshPublicKey `json:"sshPublicKey,omitempty"` - // UserPassword: UserPassword. UserPassword *GoogleCloudConnectorsV1AuthConfigUserPassword `json:"userPassword,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalVariables") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalVariables") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalVariables") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials: Parameters -// to support Oauth 2.0 Client Credentials Grant Authentication. See +// GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials: Parameters to +// support Oauth 2.0 Client Credentials Grant Authentication. See // https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. type GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials struct { // ClientId: The client identifier. ClientId string `json:"clientId,omitempty"` - // ClientSecret: Secret version reference containing the client secret. ClientSecret *GoogleCloudConnectorsV1Secret `json:"clientSecret,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer: Parameters to -// support JSON Web Token (JWT) Profile for Oauth 2.0 Authorization -// Grant based authentication. See https://tools.ietf.org/html/rfc7523 -// for more details. +// GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer: Parameters to support JSON +// Web Token (JWT) Profile for Oauth 2.0 Authorization Grant based +// authentication. See https://tools.ietf.org/html/rfc7523 for more details. type GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer struct { - // ClientKey: Secret version reference containing a PKCS#8 PEM-encoded - // private key associated with the Client Certificate. This private key - // will be used to sign JWTs used for the jwt-bearer authorization - // grant. Specified in the form as: `projects/*/secrets/*/versions/*`. + // ClientKey: Secret version reference containing a PKCS#8 PEM-encoded private + // key associated with the Client Certificate. This private key will be used to + // sign JWTs used for the jwt-bearer authorization grant. Specified in the form + // as: `projects/*/secrets/*/versions/*`. ClientKey *GoogleCloudConnectorsV1Secret `json:"clientKey,omitempty"` - // JwtClaims: JwtClaims providers fields to generate the token. JwtClaims *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims `json:"jwtClaims,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientKey") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientKey") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientKey") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims: JWT claims -// used for the jwt-bearer authorization grant. +// GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims: JWT claims used +// for the jwt-bearer authorization grant. type GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims struct { // Audience: Value for the "aud" claim. Audience string `json:"audience,omitempty"` - // Issuer: Value for the "iss" claim. Issuer string `json:"issuer,omitempty"` - // Subject: Value for the "sub" claim. Subject string `json:"subject,omitempty"` - // ForceSendFields is a list of field names (e.g. "Audience") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audience") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audience") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1AuthConfigSshPublicKey: Parameters to support -// Ssh public key Authentication. +// GoogleCloudConnectorsV1AuthConfigSshPublicKey: Parameters to support Ssh +// public key Authentication. type GoogleCloudConnectorsV1AuthConfigSshPublicKey struct { // CertType: Format of SSH Client cert. CertType string `json:"certType,omitempty"` - - // SshClientCert: SSH Client Cert. It should contain both public and - // private key. + // SshClientCert: SSH Client Cert. It should contain both public and private + // key. SshClientCert *GoogleCloudConnectorsV1Secret `json:"sshClientCert,omitempty"` - - // SshClientCertPass: Password (passphrase) for ssh client certificate - // if it has one. + // SshClientCertPass: Password (passphrase) for ssh client certificate if it + // has one. SshClientCertPass *GoogleCloudConnectorsV1Secret `json:"sshClientCertPass,omitempty"` - // Username: The user account used to authenticate. Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "CertType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CertType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CertType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigSshPublicKey) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigSshPublicKey) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigSshPublicKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudConnectorsV1AuthConfigUserPassword: Parameters to support @@ -6411,31 +5239,24 @@ func (s *GoogleCloudConnectorsV1AuthConfigSshPublicKey) MarshalJSON() ([]byte, e type GoogleCloudConnectorsV1AuthConfigUserPassword struct { // Password: Secret version reference containing the password. Password *GoogleCloudConnectorsV1Secret `json:"password,omitempty"` - // Username: Username. Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "Password") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Password") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Password") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigUserPassword) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigUserPassword) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigUserPassword - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudConnectorsV1ConfigVariable: ConfigVariable represents a @@ -6443,144 +5264,109 @@ func (s *GoogleCloudConnectorsV1AuthConfigUserPassword) MarshalJSON() ([]byte, e type GoogleCloudConnectorsV1ConfigVariable struct { // BoolValue: Value is a bool. BoolValue bool `json:"boolValue,omitempty"` - // IntValue: Value is an integer IntValue int64 `json:"intValue,omitempty,string"` - // Key: Key of the config variable. Key string `json:"key,omitempty"` - // SecretValue: Value is a secret. SecretValue *GoogleCloudConnectorsV1Secret `json:"secretValue,omitempty"` - // StringValue: Value is a string. StringValue string `json:"stringValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoolValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BoolValue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BoolValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1ConfigVariable) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1ConfigVariable) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1ConfigVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1Connection: Connection represents an instance -// of connector. +// GoogleCloudConnectorsV1Connection: Connection represents an instance of +// connector. type GoogleCloudConnectorsV1Connection struct { // AuthConfig: Optional. Configuration for establishing the connection's // authentication with an external system. AuthConfig *GoogleCloudConnectorsV1AuthConfig `json:"authConfig,omitempty"` - - // ConfigVariables: Optional. Configuration for configuring the - // connection with an external system. + // ConfigVariables: Optional. Configuration for configuring the connection with + // an external system. ConfigVariables []*GoogleCloudConnectorsV1ConfigVariable `json:"configVariables,omitempty"` - - // ConnectorVersion: Required. Connector version on which the connection - // is created. The format is: - // projects/*/locations/*/providers/*/connectors/*/versions/* Only - // global location is supported for ConnectorVersion resource. + // ConnectorVersion: Required. Connector version on which the connection is + // created. The format is: + // projects/*/locations/*/providers/*/connectors/*/versions/* Only global + // location is supported for ConnectorVersion resource. ConnectorVersion string `json:"connectorVersion,omitempty"` - // CreateTime: Output only. Created time. CreateTime string `json:"createTime,omitempty"` - // Description: Optional. Description of the resource. Description string `json:"description,omitempty"` - - // DestinationConfigs: Optional. Configuration of the Connector's - // destination. Only accepted for Connectors that accepts user defined - // destination(s). + // DestinationConfigs: Optional. Configuration of the Connector's destination. + // Only accepted for Connectors that accepts user defined destination(s). DestinationConfigs []*GoogleCloudConnectorsV1DestinationConfig `json:"destinationConfigs,omitempty"` - - // EnvoyImageLocation: Output only. GCR location where the envoy image - // is stored. formatted like: gcr.io/{bucketName}/{imageName} - EnvoyImageLocation string `json:"envoyImageLocation,omitempty"` - - // ImageLocation: Output only. GCR location where the runtime image is + // EnvoyImageLocation: Output only. GCR location where the envoy image is // stored. formatted like: gcr.io/{bucketName}/{imageName} + EnvoyImageLocation string `json:"envoyImageLocation,omitempty"` + // ImageLocation: Output only. GCR location where the runtime image is stored. + // formatted like: gcr.io/{bucketName}/{imageName} ImageLocation string `json:"imageLocation,omitempty"` - - // Labels: Optional. Resource labels to represent user-provided - // metadata. Refer to cloud documentation on labels for more details. + // Labels: Optional. Resource labels to represent user-provided metadata. Refer + // to cloud documentation on labels for more details. // https://cloud.google.com/compute/docs/labeling-resources Labels map[string]string `json:"labels,omitempty"` - // LockConfig: Optional. Configuration that indicates whether or not the // Connection can be edited. LockConfig *GoogleCloudConnectorsV1LockConfig `json:"lockConfig,omitempty"` - // Name: Output only. Resource name of the Connection. Format: // projects/{project}/locations/{location}/connections/{connection} Name string `json:"name,omitempty"` - // NodeConfig: Optional. Node configuration for the connection. NodeConfig *GoogleCloudConnectorsV1NodeConfig `json:"nodeConfig,omitempty"` - - // ServiceAccount: Optional. Service account needed for runtime plane to - // access GCP resources. + // ServiceAccount: Optional. Service account needed for runtime plane to access + // GCP resources. ServiceAccount string `json:"serviceAccount,omitempty"` - - // ServiceDirectory: Output only. The name of the Service Directory - // service name. Used for Private Harpoon to resolve the ILB address. - // e.g. - // "projects/cloud-connectors-e2e-testing/locations/us-central1/namespace - // s/istio-system/services/istio-ingressgateway-connectors" + // ServiceDirectory: Output only. The name of the Service Directory service + // name. Used for Private Harpoon to resolve the ILB address. e.g. + // "projects/cloud-connectors-e2e-testing/locations/us-central1/namespaces/istio + // -system/services/istio-ingressgateway-connectors" ServiceDirectory string `json:"serviceDirectory,omitempty"` - // Status: Output only. Current status of the connection. Status *GoogleCloudConnectorsV1ConnectionStatus `json:"status,omitempty"` - // Suspended: Optional. Suspended indicates if a user has suspended a // connection or not. Suspended bool `json:"suspended,omitempty"` - // UpdateTime: Output only. Updated time. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthConfig") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1Connection) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1Connection) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1Connection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1ConnectionStatus: ConnectionStatus indicates -// the state of the connection. +// GoogleCloudConnectorsV1ConnectionStatus: ConnectionStatus indicates the +// state of the connection. type GoogleCloudConnectorsV1ConnectionStatus struct { // Description: Description. Description string `json:"description,omitempty"` - // State: State. // // Possible values: @@ -6592,240 +5378,187 @@ type GoogleCloudConnectorsV1ConnectionStatus struct { // "UPDATING" - Connection is being updated. // "ERROR" - Connection is not running due to an error. State string `json:"state,omitempty"` - // Status: Status provides detailed information for the state. Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1ConnectionStatus) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1ConnectionStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1ConnectionStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleCloudConnectorsV1Destination struct { // Host: For publicly routable host. Host string `json:"host,omitempty"` - // Port: The port is the target port number that is accepted by the // destination. Port int64 `json:"port,omitempty"` - // ServiceAttachment: PSC service attachments. Format: // projects/*/regions/*/serviceAttachments/* ServiceAttachment string `json:"serviceAttachment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Host") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Host") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Host") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Host") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1Destination) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1Destination) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1Destination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1DestinationConfig: Define the Connectors -// target endpoint. +// GoogleCloudConnectorsV1DestinationConfig: Define the Connectors target +// endpoint. type GoogleCloudConnectorsV1DestinationConfig struct { // Destinations: The destinations for the key. Destinations []*GoogleCloudConnectorsV1Destination `json:"destinations,omitempty"` - // Key: The key is the destination identifier that is supported by the // Connector. Key string `json:"key,omitempty"` - // ForceSendFields is a list of field names (e.g. "Destinations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Destinations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Destinations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1DestinationConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1DestinationConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1DestinationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1LockConfig: Determines whether or no a -// connection is locked. If locked, a reason must be specified. +// GoogleCloudConnectorsV1LockConfig: Determines whether or no a connection is +// locked. If locked, a reason must be specified. type GoogleCloudConnectorsV1LockConfig struct { // Locked: Indicates whether or not the connection is locked. Locked bool `json:"locked,omitempty"` - // Reason: Describes why a connection is locked. Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Locked") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Locked") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locked") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1LockConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1LockConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1LockConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1NodeConfig: Node configuration for the -// connection. +// GoogleCloudConnectorsV1NodeConfig: Node configuration for the connection. type GoogleCloudConnectorsV1NodeConfig struct { // MaxNodeCount: Maximum number of nodes in the runtime nodes. MaxNodeCount int64 `json:"maxNodeCount,omitempty"` - // MinNodeCount: Minimum number of nodes in the runtime nodes. MinNodeCount int64 `json:"minNodeCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxNodeCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxNodeCount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxNodeCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1NodeConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1NodeConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1NodeConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1Secret: Secret provides a reference to entries -// in Secret Manager. +// GoogleCloudConnectorsV1Secret: Secret provides a reference to entries in +// Secret Manager. type GoogleCloudConnectorsV1Secret struct { - // SecretVersion: The resource name of the secret version in the format, - // format as: `projects/*/secrets/*/versions/*`. + // SecretVersion: The resource name of the secret version in the format, format + // as: `projects/*/secrets/*/versions/*`. SecretVersion string `json:"secretVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "SecretVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SecretVersion") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SecretVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1Secret) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1Secret) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1Secret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaAccessToken: The access token -// represents the authorization of a specific application to access -// specific parts of a user’s data. +// GoogleCloudIntegrationsV1alphaAccessToken: The access token represents the +// authorization of a specific application to access specific parts of a +// user’s data. type GoogleCloudIntegrationsV1alphaAccessToken struct { - // AccessToken: The access token encapsulating the security identity of - // a process or thread. + // AccessToken: The access token encapsulating the security identity of a + // process or thread. AccessToken string `json:"accessToken,omitempty"` - - // AccessTokenExpireTime: Required. The approximate time until the - // access token retrieved is valid. + // AccessTokenExpireTime: Required. The approximate time until the access token + // retrieved is valid. AccessTokenExpireTime string `json:"accessTokenExpireTime,omitempty"` - - // RefreshToken: If the access token will expire, use the refresh token - // to obtain another access token. + // RefreshToken: If the access token will expire, use the refresh token to + // obtain another access token. RefreshToken string `json:"refreshToken,omitempty"` - // RefreshTokenExpireTime: The approximate time until the refresh token // retrieved is valid. RefreshTokenExpireTime string `json:"refreshTokenExpireTime,omitempty"` - // TokenType: Only support "bearer" token in v1 as bearer token is the // predominant type used with OAuth 2.0. TokenType string `json:"tokenType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaAccessToken) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaAccessToken) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaAccessToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaArchiveBundleRequest: Request for @@ -6836,21 +5569,19 @@ type GoogleCloudIntegrationsV1alphaArchiveBundleRequest struct { // GoogleCloudIntegrationsV1alphaArchiveBundleResponse: Response for // ArchiveBundle. type GoogleCloudIntegrationsV1alphaArchiveBundleResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest: -// Request for ArchiveIntegrationVersion. +// GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest: Request for +// ArchiveIntegrationVersion. type GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest struct { } -// GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse: -// Response for ArchiveIntegrationVersion. +// GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse: Response +// for ArchiveIntegrationVersion. type GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } @@ -6859,124 +5590,97 @@ type GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse struct { type GoogleCloudIntegrationsV1alphaAttemptStats struct { // EndTime: The end time of the event execution for current attempt. EndTime string `json:"endTime,omitempty"` - - // StartTime: The start time of the event execution for current attempt. - // This could be in the future if it's been scheduled. + // StartTime: The start time of the event execution for current attempt. This + // could be in the future if it's been scheduled. StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaAttemptStats) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaAttemptStats) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaAttemptStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaAuthConfig: The AuthConfig resource use -// to hold channels and connection config data. +// GoogleCloudIntegrationsV1alphaAuthConfig: The AuthConfig resource use to +// hold channels and connection config data. type GoogleCloudIntegrationsV1alphaAuthConfig struct { // CertificateId: Certificate id for client certificate CertificateId string `json:"certificateId,omitempty"` - - // CreateTime: Output only. The timestamp when the auth config is - // created. + // CreateTime: Output only. The timestamp when the auth config is created. CreateTime string `json:"createTime,omitempty"` - - // CreatorEmail: The creator's email address. Generated based on the End - // User Credentials/LOAS role of the user making the call. + // CreatorEmail: The creator's email address. Generated based on the End User + // Credentials/LOAS role of the user making the call. CreatorEmail string `json:"creatorEmail,omitempty"` - // CredentialType: Credential type of the encrypted credential. // // Possible values: // "CREDENTIAL_TYPE_UNSPECIFIED" - Unspecified credential type // "USERNAME_AND_PASSWORD" - Regular username/password pair. // "API_KEY" - API key. - // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant - // Type. + // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant Type. // "OAUTH2_IMPLICIT" - OAuth 2.0 Implicit Grant Type. - // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant - // Type. - // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner - // Credentials Grant Type. + // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant Type. + // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner Credentials + // Grant Type. // "JWT" - JWT Token. // "AUTH_TOKEN" - Auth Token, e.g. bearer token. - // "SERVICE_ACCOUNT" - Service Account which can be used to generate - // token for authentication. + // "SERVICE_ACCOUNT" - Service Account which can be used to generate token + // for authentication. // "CLIENT_CERTIFICATE_ONLY" - Client Certificate only. // "OIDC_TOKEN" - Google OIDC ID Token CredentialType string `json:"credentialType,omitempty"` - // DecryptedCredential: Raw auth credentials. DecryptedCredential *GoogleCloudIntegrationsV1alphaCredential `json:"decryptedCredential,omitempty"` - // Description: A description of the auth config. Description string `json:"description,omitempty"` - // DisplayName: The name of the auth config. DisplayName string `json:"displayName,omitempty"` - // EncryptedCredential: Auth credential encrypted by Cloud KMS. Can be // decrypted as Credential with proper KMS key. EncryptedCredential string `json:"encryptedCredential,omitempty"` - - // ExpiryNotificationDuration: User can define the time to receive - // notification after which the auth config becomes invalid. Support up - // to 30 days. Support granularity in hours. + // ExpiryNotificationDuration: User can define the time to receive notification + // after which the auth config becomes invalid. Support up to 30 days. Support + // granularity in hours. ExpiryNotificationDuration []string `json:"expiryNotificationDuration,omitempty"` - - // LastModifierEmail: The last modifier's email address. Generated based - // on the End User Credentials/LOAS role of the user making the call. + // LastModifierEmail: The last modifier's email address. Generated based on the + // End User Credentials/LOAS role of the user making the call. LastModifierEmail string `json:"lastModifierEmail,omitempty"` - // Name: Resource name of the SFDC instance // projects/{project}/locations/{location}/authConfigs/{authConfig}. Name string `json:"name,omitempty"` - - // OverrideValidTime: User provided expiry time to override. For the - // example of Salesforce, username/password credentials can be valid for - // 6 months depending on the instance settings. + // OverrideValidTime: User provided expiry time to override. For the example of + // Salesforce, username/password credentials can be valid for 6 months + // depending on the instance settings. OverrideValidTime string `json:"overrideValidTime,omitempty"` - // Reason: The reason / details of the current status. Reason string `json:"reason,omitempty"` - // State: The status of the auth config. // // Possible values: // "STATE_UNSPECIFIED" - Status not specified. // "VALID" - Valid Auth config. - // "INVALID" - General invalidity, if it doesn't fits in the detailed - // issue below. + // "INVALID" - General invalidity, if it doesn't fits in the detailed issue + // below. // "SOFT_DELETED" - Auth config soft deleted. // "EXPIRED" - Auth config expired. // "UNAUTHORIZED" - Auth config unauthorized. // "UNSUPPORTED" - Auth config not supported. State string `json:"state,omitempty"` - - // UpdateTime: Output only. The timestamp when the auth config is - // modified. + // UpdateTime: Output only. The timestamp when the auth config is modified. UpdateTime string `json:"updateTime,omitempty"` - - // ValidTime: The time until the auth config is valid. Empty or max - // value is considered the auth config won't expire. + // ValidTime: The time until the auth config is valid. Empty or max value is + // considered the auth config won't expire. ValidTime string `json:"validTime,omitempty"` - // Visibility: The visibility of the auth config. // // Possible values: @@ -6985,97 +5689,76 @@ type GoogleCloudIntegrationsV1alphaAuthConfig struct { // "CLIENT_VISIBLE" - Profile visible within the client. Visibility string `json:"visibility,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CertificateId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CertificateId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CertificateId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaAuthConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaAuthConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaAuthConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaAuthToken: The credentials to -// authenticate a user agent with a server that is put in HTTP -// Authorization request header. +// GoogleCloudIntegrationsV1alphaAuthToken: The credentials to authenticate a +// user agent with a server that is put in HTTP Authorization request header. type GoogleCloudIntegrationsV1alphaAuthToken struct { // Token: The token for the auth type. Token string `json:"token,omitempty"` - // Type: Authentication type, e.g. "Basic", "Bearer", etc. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Token") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Token") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Token") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaAuthToken) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaAuthToken) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaAuthToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaBooleanParameterArray: This message -// only contains a field of boolean array. +// GoogleCloudIntegrationsV1alphaBooleanParameterArray: This message only +// contains a field of boolean array. type GoogleCloudIntegrationsV1alphaBooleanParameterArray struct { // BooleanValues: Boolean array. BooleanValues []bool `json:"booleanValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "BooleanValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaBooleanParameterArray) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaBooleanParameterArray) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaBooleanParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCancelExecutionRequest: Request for -// cancelling an execution. +// GoogleCloudIntegrationsV1alphaCancelExecutionRequest: Request for cancelling +// an execution. type GoogleCloudIntegrationsV1alphaCancelExecutionRequest struct { } @@ -7085,31 +5768,24 @@ type GoogleCloudIntegrationsV1alphaCancelExecutionResponse struct { // IsCanceled: True if cancellation performed successfully IsCanceled bool `json:"isCanceled,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "IsCanceled") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IsCanceled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IsCanceled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCancelExecutionResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCancelExecutionResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCancelExecutionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaCertificate: The certificate definition @@ -7121,70 +5797,53 @@ type GoogleCloudIntegrationsV1alphaCertificate struct { // "ACTIVE" - Certificate in active state will be able to use // "EXPIRED" - Certificate in expired state needs to be updated CertificateStatus string `json:"certificateStatus,omitempty"` - - // CredentialId: Immutable. Credential id that will be used to register - // with trawler INTERNAL_ONLY + // CredentialId: Immutable. Credential id that will be used to register with + // trawler INTERNAL_ONLY CredentialId string `json:"credentialId,omitempty"` - // Description: Description of the certificate Description string `json:"description,omitempty"` - // DisplayName: Name of the certificate DisplayName string `json:"displayName,omitempty"` - // Name: Output only. Auto generated primary key Name string `json:"name,omitempty"` - - // RawCertificate: Input only. Raw client certificate which would be - // registered with trawler + // RawCertificate: Input only. Raw client certificate which would be registered + // with trawler RawCertificate *GoogleCloudIntegrationsV1alphaClientCertificate `json:"rawCertificate,omitempty"` - - // RequestorId: Immutable. Requestor ID to be used to register - // certificate with trawler + // RequestorId: Immutable. Requestor ID to be used to register certificate with + // trawler RequestorId string `json:"requestorId,omitempty"` - - // ValidEndTime: Output only. The timestamp after which certificate will - // expire + // ValidEndTime: Output only. The timestamp after which certificate will expire ValidEndTime string `json:"validEndTime,omitempty"` - - // ValidStartTime: Output only. The timestamp after which certificate - // will be valid + // ValidStartTime: Output only. The timestamp after which certificate will be + // valid ValidStartTime string `json:"validStartTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CertificateStatus") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CertificateStatus") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CertificateStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CertificateStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCertificate) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCertificate) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCertificate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaClientCertificate: Contains client -// certificate information +// GoogleCloudIntegrationsV1alphaClientCertificate: Contains client certificate +// information type GoogleCloudIntegrationsV1alphaClientCertificate struct { - // EncryptedPrivateKey: The ssl certificate encoded in PEM format. This - // string must include the begin header and end footer lines. For - // example, -----BEGIN CERTIFICATE----- + // EncryptedPrivateKey: The ssl certificate encoded in PEM format. This string + // must include the begin header and end footer lines. For example, -----BEGIN + // CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -7199,15 +5858,13 @@ type GoogleCloudIntegrationsV1alphaClientCertificate struct { // 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H // wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- EncryptedPrivateKey string `json:"encryptedPrivateKey,omitempty"` - // Passphrase: 'passphrase' should be left unset if private key is not - // encrypted. Note that 'passphrase' is not the password for web server, - // but an extra layer of security to protected private key. + // encrypted. Note that 'passphrase' is not the password for web server, but an + // extra layer of security to protected private key. Passphrase string `json:"passphrase,omitempty"` - - // SslCertificate: The ssl certificate encoded in PEM format. This - // string must include the begin header and end footer lines. For - // example, -----BEGIN CERTIFICATE----- + // SslCertificate: The ssl certificate encoded in PEM format. This string must + // include the begin header and end footer lines. For example, -----BEGIN + // CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -7222,404 +5879,312 @@ type GoogleCloudIntegrationsV1alphaClientCertificate struct { // 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H // wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- SslCertificate string `json:"sslCertificate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EncryptedPrivateKey") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EncryptedPrivateKey") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptedPrivateKey") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptedPrivateKey") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaClientCertificate) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaClientCertificate) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaClientCertificate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaClientConfig: The configuration -// information for the Client +// GoogleCloudIntegrationsV1alphaClientConfig: The configuration information +// for the Client type GoogleCloudIntegrationsV1alphaClientConfig struct { // BillingType: Indicates the billing type of the client // // Possible values: // "BILLING_TYPE_UNSPECIFIED" - Unspecified billing type - // "BILLING_TYPE_APIGEE_TRIALS" - A trial org provisioned through - // Apigee Provisioning Wizard - // "BILLING_TYPE_APIGEE_SUBSCRIPTION" - Subscription based users of - // Apigee + // "BILLING_TYPE_APIGEE_TRIALS" - A trial org provisioned through Apigee + // Provisioning Wizard + // "BILLING_TYPE_APIGEE_SUBSCRIPTION" - Subscription based users of Apigee // "BILLING_TYPE_PAYG" - Consumption based users of IP BillingType string `json:"billingType,omitempty"` - // ClientState: Indicates the activity state the client // // Possible values: // "CLIENT_STATE_UNSPECIFIED" - The client state is unspecified - // "CLIENT_STATE_ACTIVE" - The client is active and able to make calls - // to the IP APIs - // "CLIENT_STATE_DISABLED" - The client is disabled and will soon be - // deleted + // "CLIENT_STATE_ACTIVE" - The client is active and able to make calls to the + // IP APIs + // "CLIENT_STATE_DISABLED" - The client is disabled and will soon be deleted ClientState string `json:"clientState,omitempty"` - // CloudKmsConfig: Cloud KMS config for Auth Module to encrypt/decrypt // credentials. CloudKmsConfig *GoogleCloudIntegrationsV1alphaCloudKmsConfig `json:"cloudKmsConfig,omitempty"` - - // CloudLoggingConfig: Determines the cloud logging configuration for - // the project + // CloudLoggingConfig: Determines the cloud logging configuration for the + // project CloudLoggingConfig *GoogleCloudIntegrationsV1alphaCloudLoggingConfig `json:"cloudLoggingConfig,omitempty"` - // CreateTime: The timestamp when the client was first created. CreateTime string `json:"createTime,omitempty"` - // Description: Description of what the client is used for Description string `json:"description,omitempty"` - // Id: Globally unique ID (project_id + region) Id string `json:"id,omitempty"` - // P4ServiceAccount: The P4SA account associated with this client P4ServiceAccount string `json:"p4ServiceAccount,omitempty"` - // ProjectId: The GCP project id of the client associated with ProjectId string `json:"projectId,omitempty"` - // Region: The region the client is linked to. Region string `json:"region,omitempty"` - // ForceSendFields is a list of field names (e.g. "BillingType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BillingType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BillingType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaClientConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaClientConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaClientConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCloudKmsConfig: Configuration -// information for Client's Cloud KMS information +// GoogleCloudIntegrationsV1alphaCloudKmsConfig: Configuration information for +// Client's Cloud KMS information type GoogleCloudIntegrationsV1alphaCloudKmsConfig struct { - // Key: Required. A Cloud KMS key is a named object containing one or - // more key versions, along with metadata for the key. A key exists on - // exactly one key ring tied to a specific location. + // Key: Required. A Cloud KMS key is a named object containing one or more key + // versions, along with metadata for the key. A key exists on exactly one key + // ring tied to a specific location. Key string `json:"key,omitempty"` - - // KeyVersion: Optional. Each version of a key contains key material - // used for encryption or signing. A key's version is represented by an - // integer, starting at 1. To decrypt data or verify a signature, you - // must use the same key version that was used to encrypt or sign the - // data. + // KeyVersion: Optional. Each version of a key contains key material used for + // encryption or signing. A key's version is represented by an integer, + // starting at 1. To decrypt data or verify a signature, you must use the same + // key version that was used to encrypt or sign the data. KeyVersion string `json:"keyVersion,omitempty"` - - // KmsLocation: Required. Location name of the key ring, e.g. - // "us-west1". + // KmsLocation: Required. Location name of the key ring, e.g. "us-west1". KmsLocation string `json:"kmsLocation,omitempty"` - - // KmsRing: Required. A key ring organizes keys in a specific Google - // Cloud location and allows you to manage access control on groups of - // keys. A key ring's name does not need to be unique across a Google - // Cloud project, but must be unique within a given location. + // KmsRing: Required. A key ring organizes keys in a specific Google Cloud + // location and allows you to manage access control on groups of keys. A key + // ring's name does not need to be unique across a Google Cloud project, but + // must be unique within a given location. KmsRing string `json:"kmsRing,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCloudKmsConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCloudKmsConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCloudKmsConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCloudLoggingConfig: Config info for -// Cloud Logging +// GoogleCloudIntegrationsV1alphaCloudLoggingConfig: Config info for Cloud +// Logging type GoogleCloudIntegrationsV1alphaCloudLoggingConfig struct { // Bucket: Cloud bucket name for the project. Bucket string `json:"bucket,omitempty"` - - // EnableCloudLogging: This field determines whether the logs should be - // sent to cloud logging api + // EnableCloudLogging: This field determines whether the logs should be sent to + // cloud logging api EnableCloudLogging bool `json:"enableCloudLogging,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCloudLoggingConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCloudLoggingConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCloudLoggingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCloudSchedulerConfig: Cloud Scheduler -// Trigger configuration +// GoogleCloudIntegrationsV1alphaCloudSchedulerConfig: Cloud Scheduler Trigger +// configuration type GoogleCloudIntegrationsV1alphaCloudSchedulerConfig struct { // CronTab: Required. The cron tab of cloud scheduler trigger. CronTab string `json:"cronTab,omitempty"` - // ErrorMessage: Optional. When the job was deleted from Pantheon UI, // error_message will be populated when Get/List integrations ErrorMessage string `json:"errorMessage,omitempty"` - - // Location: Required. The location where associated cloud scheduler job - // will be created + // Location: Required. The location where associated cloud scheduler job will + // be created Location string `json:"location,omitempty"` - - // ServiceAccountEmail: Required. Service account used by Cloud - // Scheduler to trigger the integration at scheduled time + // ServiceAccountEmail: Required. Service account used by Cloud Scheduler to + // trigger the integration at scheduled time ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CronTab") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CronTab") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CronTab") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CronTab") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCloudSchedulerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata: Metadata of -// runtime connection schema. +// GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata: Metadata of runtime +// connection schema. type GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata struct { // Actions: List of actions. Actions []string `json:"actions,omitempty"` - // Entities: List of entity names. Entities []string `json:"entities,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Actions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actions") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Actions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Actions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest: Request -// for CreateAppsScriptProject rpc call. +// GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest: Request for +// CreateAppsScriptProject rpc call. type GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest struct { // AppsScriptProject: The name of the Apps Script project to be created. AppsScriptProject string `json:"appsScriptProject,omitempty"` - // AuthConfigId: The auth config id necessary to fetch the necessary // credentials to create the project for external clients AuthConfigId string `json:"authConfigId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppsScriptProject") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AppsScriptProject") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AppsScriptProject") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AppsScriptProject") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse: -// Response for CreateAppsScriptProject rpc call. +// GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse: Response for +// CreateAppsScriptProject rpc call. type GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse struct { // ProjectId: The created AppsScriptProject ID. ProjectId string `json:"projectId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ProjectId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProjectId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProjectId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCreateBundleRequest: PROTECT WITH A -// VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. -// Request to create a new Bundle. +// GoogleCloudIntegrationsV1alphaCreateBundleRequest: PROTECT WITH A VISIBILITY +// LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Request to create a +// new Bundle. type GoogleCloudIntegrationsV1alphaCreateBundleRequest struct { // BundleId: Required. name of the bundle that will be created BundleId string `json:"bundleId,omitempty"` - - // Integrations: A list of integrations that can be executed by the - // bundle + // Integrations: A list of integrations that can be executed by the bundle Integrations []string `json:"integrations,omitempty"` - - // SecondaryCustomerOrgId: Optional. The prefix for the SA, it should be - // in the format "o". This is an optional field, and if empty service - // account will be created per project, where we are creating bundle. - // This should only be used as the org ID for which we want to run the - // integrations in the bundle. + // SecondaryCustomerOrgId: Optional. The prefix for the SA, it should be in the + // format "o". This is an optional field, and if empty service account will be + // created per project, where we are creating bundle. This should only be used + // as the org ID for which we want to run the integrations in the bundle. SecondaryCustomerOrgId string `json:"secondaryCustomerOrgId,omitempty"` - // ForceSendFields is a list of field names (e.g. "BundleId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BundleId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BundleId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCreateBundleRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCreateBundleRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCreateBundleRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCreateBundleResponse: Response for -// create bundle. +// GoogleCloudIntegrationsV1alphaCreateBundleResponse: Response for create +// bundle. type GoogleCloudIntegrationsV1alphaCreateBundleResponse struct { // Config: It contains the bundle data Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` - // TriggerId: trigger_id of the bundle task TriggerId string `json:"triggerId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCreateBundleResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCreateBundleResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCreateBundleResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest: Request for @@ -7627,159 +6192,127 @@ func (s *GoogleCloudIntegrationsV1alphaCreateBundleResponse) MarshalJSON() ([]by type GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest struct { // FunctionName: The function name of CF to be created FunctionName string `json:"functionName,omitempty"` - // FunctionRegion: The function region of CF to be created FunctionRegion string `json:"functionRegion,omitempty"` - - // ProjectId: Indicates the id of the GCP project that the function will - // be created in. + // ProjectId: Indicates the id of the GCP project that the function will be + // created in. ProjectId string `json:"projectId,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse: Response -// for Creating Cloud Function rpc call. +// GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse: Response for +// Creating Cloud Function rpc call. type GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse struct { // TriggerUrl: The trigger url that will be returned TriggerUrl string `json:"triggerUrl,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "TriggerUrl") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TriggerUrl") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "TriggerUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCredential: Defines parameters for a -// single, canonical credential. +// GoogleCloudIntegrationsV1alphaCredential: Defines parameters for a single, +// canonical credential. type GoogleCloudIntegrationsV1alphaCredential struct { // AuthToken: Auth token credential AuthToken *GoogleCloudIntegrationsV1alphaAuthToken `json:"authToken,omitempty"` - // CredentialType: Credential type associated with auth config. // // Possible values: // "CREDENTIAL_TYPE_UNSPECIFIED" - Unspecified credential type // "USERNAME_AND_PASSWORD" - Regular username/password pair. // "API_KEY" - API key. - // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant - // Type. + // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant Type. // "OAUTH2_IMPLICIT" - OAuth 2.0 Implicit Grant Type. - // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant - // Type. - // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner - // Credentials Grant Type. + // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant Type. + // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner Credentials + // Grant Type. // "JWT" - JWT Token. // "AUTH_TOKEN" - Auth Token, e.g. bearer token. - // "SERVICE_ACCOUNT" - Service Account which can be used to generate - // token for authentication. + // "SERVICE_ACCOUNT" - Service Account which can be used to generate token + // for authentication. // "CLIENT_CERTIFICATE_ONLY" - Client Certificate only. // "OIDC_TOKEN" - Google OIDC ID Token CredentialType string `json:"credentialType,omitempty"` - // Jwt: JWT credential Jwt *GoogleCloudIntegrationsV1alphaJwt `json:"jwt,omitempty"` - - // Oauth2AuthorizationCode: The api_key and oauth2_implicit are not - // covered in v1 and will be picked up once v1 is implemented. ApiKey - // api_key = 3; OAuth2 authorization code credential + // Oauth2AuthorizationCode: The api_key and oauth2_implicit are not covered in + // v1 and will be picked up once v1 is implemented. ApiKey api_key = 3; OAuth2 + // authorization code credential Oauth2AuthorizationCode *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode `json:"oauth2AuthorizationCode,omitempty"` - - // Oauth2ClientCredentials: OAuth2Implicit oauth2_implicit = 5; OAuth2 - // client credentials + // Oauth2ClientCredentials: OAuth2Implicit oauth2_implicit = 5; OAuth2 client + // credentials Oauth2ClientCredentials *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials `json:"oauth2ClientCredentials,omitempty"` - // Oauth2ResourceOwnerCredentials: OAuth2 resource owner credentials Oauth2ResourceOwnerCredentials *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials `json:"oauth2ResourceOwnerCredentials,omitempty"` - // OidcToken: Google OIDC ID Token OidcToken *GoogleCloudIntegrationsV1alphaOidcToken `json:"oidcToken,omitempty"` - // ServiceAccountCredentials: Service account credential ServiceAccountCredentials *GoogleCloudIntegrationsV1alphaServiceAccountCredentials `json:"serviceAccountCredentials,omitempty"` - // UsernameAndPassword: Username and password credential UsernameAndPassword *GoogleCloudIntegrationsV1alphaUsernameAndPassword `json:"usernameAndPassword,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthToken") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCredential) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCredential) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCredential - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest: -// Request for DeactivateIntegrationVersion. +// GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest: Request +// for DeactivateIntegrationVersion. type GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest struct { } -// GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse: -// Response for DeactivateIntegrationVersion. +// GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse: Response +// for DeactivateIntegrationVersion. type GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// GoogleCloudIntegrationsV1alphaDeprovisionClientRequest: Request for -// the Deprovision rpc +// GoogleCloudIntegrationsV1alphaDeprovisionClientRequest: Request for the +// Deprovision rpc type GoogleCloudIntegrationsV1alphaDeprovisionClientRequest struct { } @@ -7788,28 +6321,39 @@ type GoogleCloudIntegrationsV1alphaDeprovisionClientRequest struct { type GoogleCloudIntegrationsV1alphaDoubleParameterArray struct { // DoubleValues: Double number array. DoubleValues []float64 `json:"doubleValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "DoubleValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoubleValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DoubleValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaDoubleParameterArray) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaDoubleParameterArray) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaDoubleParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudIntegrationsV1alphaDoubleParameterArray) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudIntegrationsV1alphaDoubleParameterArray + var s1 struct { + DoubleValues []gensupport.JSONFloat64 `json:"doubleValues"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValues = make([]float64, len(s1.DoubleValues)) + for i := range s1.DoubleValues { + s.DoubleValues[i] = float64(s1.DoubleValues[i]) + } + return nil } // GoogleCloudIntegrationsV1alphaDownloadExecutionResponse: Response for @@ -7818,267 +6362,204 @@ type GoogleCloudIntegrationsV1alphaDownloadExecutionResponse struct { // Content: The content of downloaded execution. Content string `json:"content,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaDownloadExecutionResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaDownloadExecutionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse: -// Response for DownloadIntegrationVersion. +// GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse: Response +// for DownloadIntegrationVersion. type GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse struct { // Content: String representation of the integration version. Content string `json:"content,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsRespons -// e: Response containing all provisioned regions for Connector -// Platform. +// GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse: +// Response containing all provisioned regions for Connector Platform. type GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse struct { // Regions: All regions where Connector Platform is provisioned. Regions []string `json:"regions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Regions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Regions") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Regions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Regions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaEventParameter: This message is used -// for processing and persisting (when applicable) key value pair -// parameters for each event in the event bus. +// GoogleCloudIntegrationsV1alphaEventParameter: This message is used for +// processing and persisting (when applicable) key value pair parameters for +// each event in the event bus. type GoogleCloudIntegrationsV1alphaEventParameter struct { - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given fired event. These parameters must be - // predefined in the integration definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given fired event. These parameters must be predefined in + // the integration definition. Key string `json:"key,omitempty"` - - // Value: Values for the defined keys. Each value can either be string, - // int, double or any proto message. + // Value: Values for the defined keys. Each value can either be string, int, + // double or any proto message. Value *GoogleCloudIntegrationsV1alphaValueType `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaEventParameter) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaEventParameter) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaEventParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest: The request -// for executing an integration. +// GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest: The request for +// executing an integration. type GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest struct { - // DoNotPropagateError: Optional. Flag to determine how to should - // propagate errors. If this flag is set to be true, it will not throw - // an exception. Instead, it will return a {@link - // ExecuteIntegrationsResponse} with an execution id and error messages - // as PostWithTriggerIdExecutionException in {@link EventParameters}. - // The flag is set to be false by default. + // DoNotPropagateError: Optional. Flag to determine how to should propagate + // errors. If this flag is set to be true, it will not throw an exception. + // Instead, it will return a {@link ExecuteIntegrationsResponse} with an + // execution id and error messages as PostWithTriggerIdExecutionException in + // {@link EventParameters}. The flag is set to be false by default. DoNotPropagateError bool `json:"doNotPropagateError,omitempty"` - // ExecutionId: Optional. The id of the ON_HOLD execution to be resumed. ExecutionId string `json:"executionId,omitempty"` - - // InputParameters: Optional. Input parameters used by integration - // execution. + // InputParameters: Optional. Input parameters used by integration execution. InputParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"inputParameters,omitempty"` - - // ParameterEntries: Optional. Parameters are a part of Event and can be - // used to communicate between different tasks that are part of the same - // integration execution. + // ParameterEntries: Optional. Parameters are a part of Event and can be used + // to communicate between different tasks that are part of the same integration + // execution. ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` - - // Parameters: Optional. Passed in as parameters to each integration - // execution. Redacted + // Parameters: Optional. Passed in as parameters to each integration execution. + // Redacted Parameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"parameters,omitempty"` - // RequestId: Optional. This is used to de-dup incoming request: if the - // duplicate request was detected, the response from the previous - // execution is returned. + // duplicate request was detected, the response from the previous execution is + // returned. RequestId string `json:"requestId,omitempty"` - - // TriggerId: Required. Matched against all {@link TriggerConfig}s - // across all integrations. i.e. - // TriggerConfig.trigger_id.equals(trigger_id). The trigger_id is in the - // format of `api_trigger/TRIGGER_NAME`. + // TriggerId: Required. Matched against all {@link TriggerConfig}s across all + // integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id). The + // trigger_id is in the format of `api_trigger/TRIGGER_NAME`. TriggerId string `json:"triggerId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DoNotPropagateError") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DoNotPropagateError") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoNotPropagateError") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DoNotPropagateError") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse: The -// response for executing an integration. +// GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse: The response for +// executing an integration. type GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse struct { // EventParameters: Details for the integration that were executed. EventParameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"eventParameters,omitempty"` - - // ExecutionFailed: Is true if any execution in the integration failed. - // False otherwise. + // ExecutionFailed: Is true if any execution in the integration failed. False + // otherwise. ExecutionFailed bool `json:"executionFailed,omitempty"` - // ExecutionId: The id of the execution corresponding to this run of // integration. ExecutionId string `json:"executionId,omitempty"` - - // OutputParameters: OUTPUT parameters in format of Map. Where Key is - // the name of the parameter. Note: Name of the system generated - // parameters are wrapped by backtick(`) to distinguish them from the - // user defined parameters. + // OutputParameters: OUTPUT parameters in format of Map. Where Key is the name + // of the parameter. Note: Name of the system generated parameters are wrapped + // by backtick(`) to distinguish them from the user defined parameters. OutputParameters googleapi.RawMessage `json:"outputParameters,omitempty"` - // ParameterEntries: Parameters are a part of Event and can be used to - // communicate between different tasks that are part of the same - // integration execution. + // communicate between different tasks that are part of the same integration + // execution. ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EventParameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventParameters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventParameters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecution: The Execution resource -// contains detailed information of an individual integration execution. +// GoogleCloudIntegrationsV1alphaExecution: The Execution resource contains +// detailed information of an individual integration execution. type GoogleCloudIntegrationsV1alphaExecution struct { // CreateTime: Output only. Created time of the execution. CreateTime string `json:"createTime,omitempty"` - - // DirectSubExecutions: Direct sub executions of the following - // Execution. + // DirectSubExecutions: Direct sub executions of the following Execution. DirectSubExecutions []*GoogleCloudIntegrationsV1alphaExecution `json:"directSubExecutions,omitempty"` - // EventExecutionDetails: The execution info about this event. EventExecutionDetails *EnterpriseCrmEventbusProtoEventExecutionDetails `json:"eventExecutionDetails,omitempty"` - // ExecutionDetails: Detailed info of this execution. ExecutionDetails *GoogleCloudIntegrationsV1alphaExecutionDetails `json:"executionDetails,omitempty"` - // ExecutionMethod: The ways user posts this event. // // Possible values: @@ -8087,662 +6568,520 @@ type GoogleCloudIntegrationsV1alphaExecution struct { // "POST_TO_QUEUE" - Async post. // "SCHEDULE" - Async post with schedule time. ExecutionMethod string `json:"executionMethod,omitempty"` - // Name: Auto-generated primary key. Name string `json:"name,omitempty"` - // RequestParameters: Event parameters come in as part of the request. RequestParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"requestParameters,omitempty"` - // RequestParams: Event parameters come in as part of the request. RequestParams []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"requestParams,omitempty"` - - // ResponseParameters: Event parameters returned as part of the - // response. + // ResponseParameters: Event parameters returned as part of the response. ResponseParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"responseParameters,omitempty"` - // ResponseParams: Event parameters come out as part of the response. ResponseParams []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"responseParams,omitempty"` - // TriggerId: The trigger id of the integration trigger config. If both - // trigger_id and client_id is present, the integration is executed from - // the start tasks provided by the matching trigger config otherwise it - // is executed from the default start tasks. + // trigger_id and client_id is present, the integration is executed from the + // start tasks provided by the matching trigger config otherwise it is executed + // from the default start tasks. TriggerId string `json:"triggerId,omitempty"` - // UpdateTime: Output only. Last modified time of the execution. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecution) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecution) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecution - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecutionDetails: Contains the details -// of the execution info: this includes the tasks execution details plus -// the event execution statistics. +// GoogleCloudIntegrationsV1alphaExecutionDetails: Contains the details of the +// execution info: this includes the tasks execution details plus the event +// execution statistics. type GoogleCloudIntegrationsV1alphaExecutionDetails struct { // AttemptStats: List of Start and end time of the execution attempts. AttemptStats []*GoogleCloudIntegrationsV1alphaAttemptStats `json:"attemptStats,omitempty"` - // ExecutionSnapshots: List of snapshots taken during the execution. ExecutionSnapshots []*GoogleCloudIntegrationsV1alphaExecutionSnapshot `json:"executionSnapshots,omitempty"` - // State: Status of the execution. // // Possible values: // "STATE_UNSPECIFIED" - Default. // "PENDING" - Execution is scheduled and awaiting to be triggered. // "PROCESSING" - Execution is processing. - // "SUCCEEDED" - Execution successfully finished. There's no more - // change after this state. - // "FAILED" - Execution failed. There's no more change after this - // state. - // "CANCELLED" - Execution canceled by user. There's no more change + // "SUCCEEDED" - Execution successfully finished. There's no more change // after this state. + // "FAILED" - Execution failed. There's no more change after this state. + // "CANCELLED" - Execution canceled by user. There's no more change after + // this state. // "RETRY_ON_HOLD" - Execution failed and waiting for retry. - // "SUSPENDED" - Execution suspended and waiting for manual - // intervention. + // "SUSPENDED" - Execution suspended and waiting for manual intervention. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "AttemptStats") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttemptStats") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AttemptStats") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecutionDetails) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecutionDetails) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecutionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecutionSnapshot: Contains the -// snapshot of the execution for a given checkpoint. +// GoogleCloudIntegrationsV1alphaExecutionSnapshot: Contains the snapshot of +// the execution for a given checkpoint. type GoogleCloudIntegrationsV1alphaExecutionSnapshot struct { - // CheckpointTaskNumber: Indicates "after which checkpoint task's - // execution" this snapshot is taken. + // CheckpointTaskNumber: Indicates "after which checkpoint task's execution" + // this snapshot is taken. CheckpointTaskNumber string `json:"checkpointTaskNumber,omitempty"` - // ExecutionSnapshotMetadata: Metadata of the execution snapshot. ExecutionSnapshotMetadata *GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata `json:"executionSnapshotMetadata,omitempty"` - // Params: Parameters used during the execution. Params map[string]GoogleCloudIntegrationsV1alphaValueType `json:"params,omitempty"` - - // TaskExecutionDetails: All of the task execution details at the given - // point of time. + // TaskExecutionDetails: All of the task execution details at the given point + // of time. TaskExecutionDetails []*GoogleCloudIntegrationsV1alphaTaskExecutionDetails `json:"taskExecutionDetails,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CheckpointTaskNumber") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CheckpointTaskNumber") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecutionSnapshot) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecutionSnapshot) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecutionSnapshot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetada -// ta: Metadata of the execution snapshot. +// GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata: +// Metadata of the execution snapshot. type GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata struct { - // ExecutionAttempt: the execution attempt number this snapshot belongs - // to. + // ExecutionAttempt: the execution attempt number this snapshot belongs to. ExecutionAttempt int64 `json:"executionAttempt,omitempty"` - // Task: the task name associated with this snapshot. Task string `json:"task,omitempty"` - // TaskAttempt: the task attempt number this snapshot belongs to. TaskAttempt int64 `json:"taskAttempt,omitempty"` - // TaskNumber: The task number associated with this snapshot. TaskNumber string `json:"taskNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExecutionAttempt") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionAttempt") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionAttempt") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaFailurePolicy: Policy that defines the -// task retry logic and failure type. If no FailurePolicy is defined for -// a task, all its dependent tasks will not be executed (i.e, a -// `retry_strategy` of NONE will be applied). +// GoogleCloudIntegrationsV1alphaFailurePolicy: Policy that defines the task +// retry logic and failure type. If no FailurePolicy is defined for a task, all +// its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE +// will be applied). type GoogleCloudIntegrationsV1alphaFailurePolicy struct { // IntervalTime: Required if retry_strategy is FIXED_INTERVAL or - // LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines - // the initial interval in seconds for backoff. + // LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the + // initial interval in seconds for backoff. IntervalTime string `json:"intervalTime,omitempty"` - // MaxRetries: Required if retry_strategy is FIXED_INTERVAL or - // LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines - // the number of times the task will be retried if failed. + // LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the + // number of times the task will be retried if failed. MaxRetries int64 `json:"maxRetries,omitempty"` - // RetryStrategy: Defines what happens to the task upon failure. // // Possible values: // "RETRY_STRATEGY_UNSPECIFIED" - UNSPECIFIED. - // "IGNORE" - Ignores the failure of this task. The rest of the - // integration will be executed Assuming this task succeeded. - // "NONE" - Causes a permanent failure of the task. However, if the - // last task(s) of event was successfully completed despite the failure - // of this task, it has no impact on the integration. - // "FATAL" - Causes a permanent failure of the event. It is different - // from NONE because this will mark the event as FAILED by shutting down - // the event execution. - // "FIXED_INTERVAL" - The task will be retried from the failed task - // onwards after a fixed delay. A max-retry count is required to be - // specified with this strategy. A jitter is added to each exponential - // interval so that concurrently failing tasks of the same type do not - // end up retrying after the exact same exponential interval. - // max_retries and interval_in_seconds must be specified. - // "LINEAR_BACKOFF" - The task will be retried from the failed task - // onwards after a fixed delay that linearly increases with each retry - // attempt. A jitter is added to each exponential interval so that - // concurrently failing tasks of the same type do not end up retrying - // after the exact same exponential interval. A max-retry count is - // required to be specified with this strategy. max_retries and - // interval_in_seconds must be specified. - // "EXPONENTIAL_BACKOFF" - The task will be retried after an - // exponentially increasing period of time with each failure. A jitter - // is added to each exponential interval so that concurrently failing - // tasks of the same type do not end up retrying after the exact same - // exponential interval. A max-retry count is required to be specified - // with this strategy. `max_retries` and `interval_in_seconds` must be + // "IGNORE" - Ignores the failure of this task. The rest of the integration + // will be executed Assuming this task succeeded. + // "NONE" - Causes a permanent failure of the task. However, if the last + // task(s) of event was successfully completed despite the failure of this + // task, it has no impact on the integration. + // "FATAL" - Causes a permanent failure of the event. It is different from + // NONE because this will mark the event as FAILED by shutting down the event + // execution. + // "FIXED_INTERVAL" - The task will be retried from the failed task onwards + // after a fixed delay. A max-retry count is required to be specified with this + // strategy. A jitter is added to each exponential interval so that + // concurrently failing tasks of the same type do not end up retrying after the + // exact same exponential interval. max_retries and interval_in_seconds must be // specified. + // "LINEAR_BACKOFF" - The task will be retried from the failed task onwards + // after a fixed delay that linearly increases with each retry attempt. A + // jitter is added to each exponential interval so that concurrently failing + // tasks of the same type do not end up retrying after the exact same + // exponential interval. A max-retry count is required to be specified with + // this strategy. max_retries and interval_in_seconds must be specified. + // "EXPONENTIAL_BACKOFF" - The task will be retried after an exponentially + // increasing period of time with each failure. A jitter is added to each + // exponential interval so that concurrently failing tasks of the same type do + // not end up retrying after the exact same exponential interval. A max-retry + // count is required to be specified with this strategy. `max_retries` and + // `interval_in_seconds` must be specified. // "RESTART_INTEGRATION_WITH_BACKOFF" - The entire integration will be - // restarted with the initial parameters that were set when the event - // was fired. A max-retry count is required to be specified with this - // strategy. `max_retries` and `interval_in_seconds` must be specified. + // restarted with the initial parameters that were set when the event was + // fired. A max-retry count is required to be specified with this strategy. + // `max_retries` and `interval_in_seconds` must be specified. RetryStrategy string `json:"retryStrategy,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntervalTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntervalTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IntervalTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaFailurePolicy) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaFailurePolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaFailurePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaGenerateTokenResponse: Returns success -// or error message +// GoogleCloudIntegrationsV1alphaGenerateTokenResponse: Returns success or +// error message type GoogleCloudIntegrationsV1alphaGenerateTokenResponse struct { - // Message: The message that notifies the user if the request succeeded - // or not. + // Message: The message that notifies the user if the request succeeded or not. Message string `json:"message,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Message") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Message") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Message") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Message") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaGenerateTokenResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaGenerateTokenResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaGenerateTokenResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaGetBundleResponse: Response for -// GetBundle. +// GoogleCloudIntegrationsV1alphaGetBundleResponse: Response for GetBundle. type GoogleCloudIntegrationsV1alphaGetBundleResponse struct { // Config: It contains the bundle data Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaGetBundleResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaGetBundleResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaGetBundleResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaGetClientMetadataResponse: Response for -// the GetClientMetadata rpc +// GoogleCloudIntegrationsV1alphaGetClientMetadataResponse: Response for the +// GetClientMetadata rpc type GoogleCloudIntegrationsV1alphaGetClientMetadataResponse struct { - // Properties: Required. Required: The client configuration that was - // requested + // Properties: Required. Required: The client configuration that was requested Properties *GoogleCloudIntegrationsV1alphaProjectProperties `json:"properties,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Properties") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Properties") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Properties") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaGetClientMetadataResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaGetClientMetadataResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaGetClientMetadataResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaGetClientResponse: Response for the -// GetClient rpc +// GoogleCloudIntegrationsV1alphaGetClientResponse: Response for the GetClient +// rpc type GoogleCloudIntegrationsV1alphaGetClientResponse struct { - // Client: Required. Required: The client configuration that was - // requested + // Client: Required. Required: The client configuration that was requested Client *GoogleCloudIntegrationsV1alphaClientConfig `json:"client,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Client") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Client") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Client") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaGetClientResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaGetClientResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaGetClientResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntParameterArray: This message only -// contains a field of integer array. +// GoogleCloudIntegrationsV1alphaIntParameterArray: This message only contains +// a field of integer array. type GoogleCloudIntegrationsV1alphaIntParameterArray struct { // IntValues: Integer array. IntValues googleapi.Int64s `json:"intValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntValues") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IntValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntParameterArray) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntParameterArray) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntegration: The integration -// definition. +// GoogleCloudIntegrationsV1alphaIntegration: The integration definition. type GoogleCloudIntegrationsV1alphaIntegration struct { // Active: Required. If any integration version is published. Active bool `json:"active,omitempty"` - // Description: Optional. Description string `json:"description,omitempty"` - // Name: Required. The resource name of the integration. Name string `json:"name,omitempty"` - // UpdateTime: Output only. Auto-generated. UpdateTime string `json:"updateTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegration) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegration) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfig: Message to be -// used to configure custom alerting in the {@code EventConfig} protos -// for an event. +// GoogleCloudIntegrationsV1alphaIntegrationAlertConfig: Message to be used to +// configure custom alerting in the {@code EventConfig} protos for an event. type GoogleCloudIntegrationsV1alphaIntegrationAlertConfig struct { // AggregationPeriod: The period over which the metric value should be - // aggregated and evaluated. Format is , where integer should be a - // positive integer and unit should be one of (s,m,h,d,w) meaning - // (second, minute, hour, day, week). For an EXPECTED_MIN threshold, - // this aggregation_period must be lesser than 24 hours. + // aggregated and evaluated. Format is , where integer should be a positive + // integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, + // day, week). For an EXPECTED_MIN threshold, this aggregation_period must be + // lesser than 24 hours. AggregationPeriod string `json:"aggregationPeriod,omitempty"` - - // AlertThreshold: For how many contiguous aggregation periods should - // the expected min or max be violated for the alert to be fired. + // AlertThreshold: For how many contiguous aggregation periods should the + // expected min or max be violated for the alert to be fired. AlertThreshold int64 `json:"alertThreshold,omitempty"` - - // DisableAlert: Set to false by default. When set to true, the metrics - // are not aggregated or pushed to Monarch for this integration alert. + // DisableAlert: Set to false by default. When set to true, the metrics are not + // aggregated or pushed to Monarch for this integration alert. DisableAlert bool `json:"disableAlert,omitempty"` - - // DisplayName: Name of the alert. This will be displayed in the alert - // subject. If set, this name should be unique within the scope of the - // integration. + // DisplayName: Name of the alert. This will be displayed in the alert subject. + // If set, this name should be unique within the scope of the integration. DisplayName string `json:"displayName,omitempty"` - // DurationThreshold: Should be specified only for *AVERAGE_DURATION and - // *PERCENTILE_DURATION metrics. This member should be used to specify - // what duration value the metrics should exceed for the alert to - // trigger. + // *PERCENTILE_DURATION metrics. This member should be used to specify what + // duration value the metrics should exceed for the alert to trigger. DurationThreshold string `json:"durationThreshold,omitempty"` - // MetricType: The type of metric. // // Possible values: - // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should - // always be set to one of the other non-default values, otherwise it - // will result in an INVALID_ARGUMENT error. - // "EVENT_ERROR_RATE" - Specifies alerting on the rate of errors for - // the enclosing integration. - // "EVENT_WARNING_RATE" - Specifies alerting on the rate of warnings - // for the enclosing integration. Warnings use the same enum values as - // errors. - // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors for - // any task in the enclosing integration. - // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings - // for any task in the enclosing integration. - // "TASK_RATE" - Specifies alerting on the rate of executions over all - // tasks in the enclosing integration. - // "EVENT_RATE" - Specifies alerting on the number of events executed - // in the given aggregation_period. - // "EVENT_AVERAGE_DURATION" - Specifies alerting on the average - // duration of executions for this integration. - // "EVENT_PERCENTILE_DURATION" - Specifies alerting on the duration - // value of a particular percentile of integration executions. E.g. If - // 10% or more of the integration executions have durations above 5 - // seconds, alert. - // "TASK_AVERAGE_DURATION" - Specifies alerting on the average - // duration of any task in the enclosing integration, - // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration - // value of a particular percentile of any task executions within the - // enclosing integration. E.g. If 10% or more of the task executions in - // the integration have durations above 5 seconds, alert. + // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should always + // be set to one of the other non-default values, otherwise it will result in + // an INVALID_ARGUMENT error. + // "EVENT_ERROR_RATE" - Specifies alerting on the rate of errors for the + // enclosing integration. + // "EVENT_WARNING_RATE" - Specifies alerting on the rate of warnings for the + // enclosing integration. Warnings use the same enum values as errors. + // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors for any task + // in the enclosing integration. + // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings for any + // task in the enclosing integration. + // "TASK_RATE" - Specifies alerting on the rate of executions over all tasks + // in the enclosing integration. + // "EVENT_RATE" - Specifies alerting on the number of events executed in the + // given aggregation_period. + // "EVENT_AVERAGE_DURATION" - Specifies alerting on the average duration of + // executions for this integration. + // "EVENT_PERCENTILE_DURATION" - Specifies alerting on the duration value of + // a particular percentile of integration executions. E.g. If 10% or more of + // the integration executions have durations above 5 seconds, alert. + // "TASK_AVERAGE_DURATION" - Specifies alerting on the average duration of + // any task in the enclosing integration, + // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration value of a + // particular percentile of any task executions within the enclosing + // integration. E.g. If 10% or more of the task executions in the integration + // have durations above 5 seconds, alert. MetricType string `json:"metricType,omitempty"` - - // OnlyFinalAttempt: For either events or tasks, depending on the type - // of alert, count only final attempts, not retries. + // OnlyFinalAttempt: For either events or tasks, depending on the type of + // alert, count only final attempts, not retries. OnlyFinalAttempt bool `json:"onlyFinalAttempt,omitempty"` - // ThresholdType: The threshold type, whether lower(expected_min) or - // upper(expected_max), for which this alert is being configured. If - // value falls below expected_min or exceeds expected_max, an alert will - // be fired. + // upper(expected_max), for which this alert is being configured. If value + // falls below expected_min or exceeds expected_max, an alert will be fired. // // Possible values: // "THRESHOLD_TYPE_UNSPECIFIED" - Default. - // "EXPECTED_MIN" - Note that this field will only trigger alerts if - // the integration specifying it runs at least once in 24 hours (which - // is our in-memory retention period for monarch streams). Also note - // that `aggregation_period` for this alert configuration must be less - // than 24 hours. Min value threshold. + // "EXPECTED_MIN" - Note that this field will only trigger alerts if the + // integration specifying it runs at least once in 24 hours (which is our + // in-memory retention period for monarch streams). Also note that + // `aggregation_period` for this alert configuration must be less than 24 + // hours. Min value threshold. // "EXPECTED_MAX" - Max value threshold. ThresholdType string `json:"thresholdType,omitempty"` - - // ThresholdValue: The metric value, above or below which the alert - // should be triggered. + // ThresholdValue: The metric value, above or below which the alert should be + // triggered. ThresholdValue *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue `json:"thresholdValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AggregationPeriod") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AggregationPeriod") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregationPeriod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AggregationPeriod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegrationAlertConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue: -// The threshold value of the metric, above or below which the alert -// should be triggered. See EventAlertConfig or TaskAlertConfig for the -// different alert metric types in each case. For the *RATE metrics, one -// or both of these fields may be set. Zero is the default value and can -// be left at that. For *PERCENTILE_DURATION metrics, one or both of -// these fields may be set, and also, the duration threshold value -// should be specified in the threshold_duration_ms member below. For -// *AVERAGE_DURATION metrics, these fields should not be set at all. A -// different member, threshold_duration_ms, must be set in the -// EventAlertConfig or the TaskAlertConfig. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue: The +// threshold value of the metric, above or below which the alert should be +// triggered. See EventAlertConfig or TaskAlertConfig for the different alert +// metric types in each case. For the *RATE metrics, one or both of these +// fields may be set. Zero is the default value and can be left at that. For +// *PERCENTILE_DURATION metrics, one or both of these fields may be set, and +// also, the duration threshold value should be specified in the +// threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these +// fields should not be set at all. A different member, threshold_duration_ms, +// must be set in the EventAlertConfig or the TaskAlertConfig. type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue struct { // Absolute: Absolute value threshold. Absolute int64 `json:"absolute,omitempty,string"` - // Percentage: Percentage threshold. Percentage int64 `json:"percentage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Absolute") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Absolute") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Absolute") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntegrationBundleConfig: This proto -// holds the core runner data in the bundle task. It is not expected to -// be directly edited by the user. Instead, a default value will be -// provided at the task creation time. +// GoogleCloudIntegrationsV1alphaIntegrationBundleConfig: This proto holds the +// core runner data in the bundle task. It is not expected to be directly +// edited by the user. Instead, a default value will be provided at the task +// creation time. type GoogleCloudIntegrationsV1alphaIntegrationBundleConfig struct { - // Integrations: A bundle of integrations that can be executed by the - // task at runtime. + // Integrations: A bundle of integrations that can be executed by the task at + // runtime. Integrations []string `json:"integrations,omitempty"` - - // ServiceAccount: Output only. The service account created and owned by - // IP and added to the customers GCP project. + // ServiceAccount: Output only. The service account created and owned by IP and + // added to the customers GCP project. ServiceAccount string `json:"serviceAccount,omitempty"` - // ForceSendFields is a list of field names (e.g. "Integrations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Integrations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Integrations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegrationBundleConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegrationBundleConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntegrationParameter: Integration -// Parameter is defined in the integration config and are used to -// provide information about data types of the expected parameters and -// provide any default values if needed. They can also be used to add -// custom attributes. These are static in nature and should not be used -// for dynamic event definition. +// GoogleCloudIntegrationsV1alphaIntegrationParameter: Integration Parameter is +// defined in the integration config and are used to provide information about +// data types of the expected parameters and provide any default values if +// needed. They can also be used to add custom attributes. These are static in +// nature and should not be used for dynamic event definition. type GoogleCloudIntegrationsV1alphaIntegrationParameter struct { // DataType: Type of the parameter. // @@ -8760,149 +7099,117 @@ type GoogleCloudIntegrationsV1alphaIntegrationParameter struct { // "PROTO_VALUE" - Proto Value (Internal use only). // "PROTO_ARRAY" - Proto Array (Internal use only). DataType string `json:"dataType,omitempty"` - - // DefaultValue: Default values for the defined keys. Each value can - // either be string, int, double or any proto message or a serialized - // object. + // DefaultValue: Default values for the defined keys. Each value can either be + // string, int, double or any proto message or a serialized object. DefaultValue *GoogleCloudIntegrationsV1alphaValueType `json:"defaultValue,omitempty"` - - // DisplayName: The name (without prefix) to be displayed in the UI for - // this parameter. E.g. if the key is "foo.bar.myName", then the name - // would be "myName". + // DisplayName: The name (without prefix) to be displayed in the UI for this + // parameter. E.g. if the key is "foo.bar.myName", then the name would be + // "myName". DisplayName string `json:"displayName,omitempty"` - // InputOutputType: Specifies the input/output type for the parameter. // // Possible values: // "IN_OUT_TYPE_UNSPECIFIED" - Default. - // "IN" - Input parameters for the integration. EventBus validates - // that these parameters exist in the integrations before execution. - // "OUT" - Output Parameters for the integration. EventBus will only - // return the integration parameters tagged with OUT in the response - // back. - // "IN_OUT" - Input and Output Parameters. These can be used as both - // input and output. EventBus will validate for the existence of these - // parameters before execution and will also return this parameter back - // in the response. + // "IN" - Input parameters for the integration. EventBus validates that these + // parameters exist in the integrations before execution. + // "OUT" - Output Parameters for the integration. EventBus will only return + // the integration parameters tagged with OUT in the response back. + // "IN_OUT" - Input and Output Parameters. These can be used as both input + // and output. EventBus will validate for the existence of these parameters + // before execution and will also return this parameter back in the response. InputOutputType string `json:"inputOutputType,omitempty"` - // IsTransient: Whether this parameter is a transient parameter. IsTransient bool `json:"isTransient,omitempty"` - - // JsonSchema: This schema will be used to validate runtime JSON-typed - // values of this parameter. + // JsonSchema: This schema will be used to validate runtime JSON-typed values + // of this parameter. JsonSchema string `json:"jsonSchema,omitempty"` - - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given fired event. These parameters must be - // predefined in the integration definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given fired event. These parameters must be predefined in + // the integration definition. Key string `json:"key,omitempty"` - // Producer: The identifier of the node (TaskConfig/TriggerConfig) this - // parameter was produced by, if it is a transient param or a copy of an - // input param. + // parameter was produced by, if it is a transient param or a copy of an input + // param. Producer string `json:"producer,omitempty"` - // Searchable: Searchable in the execution log or not. Searchable bool `json:"searchable,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegrationParameter) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegrationParameter) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegrationParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntegrationVersion: The integration -// version definition. +// GoogleCloudIntegrationsV1alphaIntegrationVersion: The integration version +// definition. type GoogleCloudIntegrationsV1alphaIntegrationVersion struct { // CreateTime: Output only. Auto-generated. CreateTime string `json:"createTime,omitempty"` - - // DatabasePersistencePolicy: Optional. Flag to disable database - // persistence for execution data, including event execution info, - // execution export info, execution metadata index and execution param - // index. + // DatabasePersistencePolicy: Optional. Flag to disable database persistence + // for execution data, including event execution info, execution export info, + // execution metadata index and execution param index. // // Possible values: - // "DATABASE_PERSISTENCE_POLICY_UNSPECIFIED" - Enables persistence for - // all execution data. - // "DATABASE_PERSISTENCE_DISABLED" - Disables persistence for all + // "DATABASE_PERSISTENCE_POLICY_UNSPECIFIED" - Enables persistence for all // execution data. + // "DATABASE_PERSISTENCE_DISABLED" - Disables persistence for all execution + // data. DatabasePersistencePolicy string `json:"databasePersistencePolicy,omitempty"` - // Description: Optional. The integration description. Description string `json:"description,omitempty"` - - // IntegrationParameters: Optional. Parameters that are expected to be - // passed to the integration when an event is triggered. This consists - // of all the parameters that are expected in the integration execution. - // This gives the user the ability to provide default values, add - // information like PII and also provide data types of each parameter. + // IntegrationParameters: Optional. Parameters that are expected to be passed + // to the integration when an event is triggered. This consists of all the + // parameters that are expected in the integration execution. This gives the + // user the ability to provide default values, add information like PII and + // also provide data types of each parameter. IntegrationParameters []*GoogleCloudIntegrationsV1alphaIntegrationParameter `json:"integrationParameters,omitempty"` - - // IntegrationParametersInternal: Optional. Parameters that are expected - // to be passed to the integration when an event is triggered. This - // consists of all the parameters that are expected in the integration - // execution. This gives the user the ability to provide default values, - // add information like PII and also provide data types of each - // parameter. + // IntegrationParametersInternal: Optional. Parameters that are expected to be + // passed to the integration when an event is triggered. This consists of all + // the parameters that are expected in the integration execution. This gives + // the user the ability to provide default values, add information like PII and + // also provide data types of each parameter. IntegrationParametersInternal *EnterpriseCrmFrontendsEventbusProtoWorkflowParameters `json:"integrationParametersInternal,omitempty"` - - // LastModifierEmail: Optional. The last modifier's email address. - // Generated based on the End User Credentials/LOAS role of the user - // making the call. + // LastModifierEmail: Optional. The last modifier's email address. Generated + // based on the End User Credentials/LOAS role of the user making the call. LastModifierEmail string `json:"lastModifierEmail,omitempty"` - - // LockHolder: Optional. The edit lock holder's email address. Generated - // based on the End User Credentials/LOAS role of the user making the - // call. + // LockHolder: Optional. The edit lock holder's email address. Generated based + // on the End User Credentials/LOAS role of the user making the call. LockHolder string `json:"lockHolder,omitempty"` - // Name: Output only. Auto-generated primary key. Name string `json:"name,omitempty"` - - // Origin: Optional. The origin that indicates where this integration is - // coming from. + // Origin: Optional. The origin that indicates where this integration is coming + // from. // // Possible values: // "UNSPECIFIED" // "UI" - Workflow is being created via event bus UI. - // "PIPER_V2" - User checked in this workflow in Piper as v2 textproto - // format and we synced it into spanner. - // "PIPER_V3" - User checked in this workflow in piper as v3 textproto - // format and we synced it into spanner. - // "APPLICATION_IP_PROVISIONING" - Workflow is being created via - // Standalone IP Provisioning + // "PIPER_V2" - User checked in this workflow in Piper as v2 textproto format + // and we synced it into spanner. + // "PIPER_V3" - User checked in this workflow in piper as v3 textproto format + // and we synced it into spanner. + // "APPLICATION_IP_PROVISIONING" - Workflow is being created via Standalone + // IP Provisioning Origin string `json:"origin,omitempty"` - - // ParentTemplateId: Optional. The id of the template which was used to - // create this integration_version. + // ParentTemplateId: Optional. The id of the template which was used to create + // this integration_version. ParentTemplateId string `json:"parentTemplateId,omitempty"` - - // SnapshotNumber: Optional. An increasing sequence that is set when a - // new snapshot is created. The last created snapshot can be identified - // by [workflow_name, org_id latest(snapshot_number)]. However, last - // created snapshot need not be same as the HEAD. So users should always - // use "HEAD" tag to identify the head. + // SnapshotNumber: Optional. An increasing sequence that is set when a new + // snapshot is created. The last created snapshot can be identified by + // [workflow_name, org_id latest(snapshot_number)]. However, last created + // snapshot need not be same as the HEAD. So users should always use "HEAD" tag + // to identify the head. SnapshotNumber int64 `json:"snapshotNumber,omitempty,string"` - // State: Output only. User should not set it as an input. // // Possible values: @@ -8912,9 +7219,8 @@ type GoogleCloudIntegrationsV1alphaIntegrationVersion struct { // "ARCHIVED" - Archived. // "SNAPSHOT" - Snapshot. State string `json:"state,omitempty"` - - // Status: Output only. Generated by eventbus. User should not set it as - // an input. + // Status: Output only. Generated by eventbus. User should not set it as an + // input. // // Possible values: // "UNKNOWN" @@ -8923,469 +7229,356 @@ type GoogleCloudIntegrationsV1alphaIntegrationVersion struct { // "ARCHIVED" // "SNAPSHOT" Status string `json:"status,omitempty"` - // TaskConfigs: Optional. Task configuration for the integration. It's - // optional, but the integration doesn't do anything without - // task_configs. + // optional, but the integration doesn't do anything without task_configs. TaskConfigs []*GoogleCloudIntegrationsV1alphaTaskConfig `json:"taskConfigs,omitempty"` - - // TaskConfigsInternal: Optional. Task configuration for the - // integration. It's optional, but the integration doesn't do anything - // without task_configs. + // TaskConfigsInternal: Optional. Task configuration for the integration. It's + // optional, but the integration doesn't do anything without task_configs. TaskConfigsInternal []*EnterpriseCrmFrontendsEventbusProtoTaskConfig `json:"taskConfigsInternal,omitempty"` - - // Teardown: Optional. Contains a graph of tasks that will be executed - // before putting the event in a terminal state - // (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar - // to "finally" in code. + // Teardown: Optional. Contains a graph of tasks that will be executed before + // putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless + // of success or failure, similar to "finally" in code. Teardown *EnterpriseCrmEventbusProtoTeardown `json:"teardown,omitempty"` - // TriggerConfigs: Optional. Trigger configurations. TriggerConfigs []*GoogleCloudIntegrationsV1alphaTriggerConfig `json:"triggerConfigs,omitempty"` - // TriggerConfigsInternal: Optional. Trigger configurations. TriggerConfigsInternal []*EnterpriseCrmFrontendsEventbusProtoTriggerConfig `json:"triggerConfigsInternal,omitempty"` - // UpdateTime: Output only. Auto-generated. UpdateTime string `json:"updateTime,omitempty"` - - // UserLabel: Optional. A user-defined label that annotates an - // integration version. Typically, this is only set when the integration - // version is created. + // UserLabel: Optional. A user-defined label that annotates an integration + // version. Typically, this is only set when the integration version is + // created. UserLabel string `json:"userLabel,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegrationVersion) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegrationVersion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegrationVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaJwt: Represents JSON web token(JWT), -// which is a compact, URL-safe means of representing claims to be -// transferred between two parties, enabling the claims to be digitally -// signed or integrity protected. +// GoogleCloudIntegrationsV1alphaJwt: Represents JSON web token(JWT), which is +// a compact, URL-safe means of representing claims to be transferred between +// two parties, enabling the claims to be digitally signed or integrity +// protected. type GoogleCloudIntegrationsV1alphaJwt struct { // Jwt: The token calculated by the header, payload and signature. Jwt string `json:"jwt,omitempty"` - - // JwtHeader: Identifies which algorithm is used to generate the - // signature. + // JwtHeader: Identifies which algorithm is used to generate the signature. JwtHeader string `json:"jwtHeader,omitempty"` - - // JwtPayload: Contains a set of claims. The JWT specification defines - // seven Registered Claim Names which are the standard fields commonly - // included in tokens. Custom claims are usually also included, - // depending on the purpose of the token. + // JwtPayload: Contains a set of claims. The JWT specification defines seven + // Registered Claim Names which are the standard fields commonly included in + // tokens. Custom claims are usually also included, depending on the purpose of + // the token. JwtPayload string `json:"jwtPayload,omitempty"` - // Secret: User's pre-shared secret to sign the token. Secret string `json:"secret,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Jwt") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Jwt") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Jwt") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Jwt") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaJwt) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaJwt) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaJwt - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaLiftSuspensionRequest: Request for lift // Suspension type GoogleCloudIntegrationsV1alphaLiftSuspensionRequest struct { - // SuspensionResult: User passed in suspension result and will be used - // to control workflow execution branching behavior by setting up - // corresponnding edge condition with suspension result. For example, if - // you want to lift the suspension, you can pass "Approved", or if you - // want to reject the suspension and terminate workfloe execution, you - // can pass "Rejected" and terminate the workflow execution with - // configuring the edge condition. + // SuspensionResult: User passed in suspension result and will be used to + // control workflow execution branching behavior by setting up corresponnding + // edge condition with suspension result. For example, if you want to lift the + // suspension, you can pass "Approved", or if you want to reject the suspension + // and terminate workfloe execution, you can pass "Rejected" and terminate the + // workflow execution with configuring the edge condition. SuspensionResult string `json:"suspensionResult,omitempty"` - // ForceSendFields is a list of field names (e.g. "SuspensionResult") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SuspensionResult") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "SuspensionResult") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaLiftSuspensionRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaLiftSuspensionResponse: Response of -// lift Suspense +// GoogleCloudIntegrationsV1alphaLiftSuspensionResponse: Response of lift +// Suspense type GoogleCloudIntegrationsV1alphaLiftSuspensionResponse struct { // EventExecutionInfoId: Execution Id that will be returned EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "EventExecutionInfoId") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "EventExecutionInfoId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventExecutionInfoId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventExecutionInfoId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaLiftSuspensionResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaLiftSuspensionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest: Request -// for LinkAppsScriptProject rpc call. +// GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest: Request for +// LinkAppsScriptProject rpc call. type GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest struct { // ScriptId: The id of the Apps Script project to be linked. ScriptId string `json:"scriptId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ScriptId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ScriptId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ScriptId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse: Response -// for LinkAppsScriptProject rpc call. +// GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse: Response for +// LinkAppsScriptProject rpc call. type GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse struct { // ScriptId: The id of the linked Apps Script project. ScriptId string `json:"scriptId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ScriptId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ScriptId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ScriptId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListAuthConfigsResponse: Response to -// list AuthConfigs. +// GoogleCloudIntegrationsV1alphaListAuthConfigsResponse: Response to list +// AuthConfigs. type GoogleCloudIntegrationsV1alphaListAuthConfigsResponse struct { // AuthConfigs: The list of AuthConfigs retrieved. AuthConfigs []*GoogleCloudIntegrationsV1alphaAuthConfig `json:"authConfigs,omitempty"` - // NextPageToken: The token used to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuthConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListAuthConfigsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListCertificatesResponse: Response to -// list Certificates. +// GoogleCloudIntegrationsV1alphaListCertificatesResponse: Response to list +// Certificates. type GoogleCloudIntegrationsV1alphaListCertificatesResponse struct { // Certificates: The list of Certificates retrieved. Certificates []*GoogleCloudIntegrationsV1alphaCertificate `json:"certificates,omitempty"` - // NextPageToken: The token used to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Certificates") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Certificates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Certificates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListCertificatesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListCertificatesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListCertificatesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListConnectionsResponse: Response -// containing Connections listed by region. +// GoogleCloudIntegrationsV1alphaListConnectionsResponse: Response containing +// Connections listed by region. type GoogleCloudIntegrationsV1alphaListConnectionsResponse struct { // Connections: Connections. Connections []*GoogleCloudConnectorsV1Connection `json:"connections,omitempty"` - // NextPageToken: Next page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Connections") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Connections") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Connections") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListConnectionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListConnectionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListConnectionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse: -// Response for listing the integration execution snapshot. +// GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse: Response for +// listing the integration execution snapshot. type GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse struct { - // ExecutionSnapshots: Required. The detailed information for the - // execution snapshot. + // ExecutionSnapshots: Required. The detailed information for the execution + // snapshot. ExecutionSnapshots []*EnterpriseCrmEventbusProtoEventExecutionSnapshot `json:"executionSnapshots,omitempty"` - // NextPageToken: The token returned in the previous response. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ExecutionSnapshots") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ExecutionSnapshots") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionSnapshots") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionSnapshots") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListExecutionsResponse: Response for -// listing the integration execution data. +// GoogleCloudIntegrationsV1alphaListExecutionsResponse: Response for listing +// the integration execution data. type GoogleCloudIntegrationsV1alphaListExecutionsResponse struct { - // ExecutionInfos: Required. The detailed information of requested - // executions. + // ExecutionInfos: Required. The detailed information of requested executions. ExecutionInfos []*EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo `json:"executionInfos,omitempty"` - // Executions: The detailed information of requested executions Executions []*GoogleCloudIntegrationsV1alphaExecution `json:"executions,omitempty"` - // NextPageToken: The token used to retrieve the next page results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionInfos") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionInfos") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionInfos") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListExecutionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListExecutionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListExecutionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse: -// Response for ListIntegrationVersions. +// GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse: Response for +// ListIntegrationVersions. type GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse struct { // IntegrationVersions: The integrations which match the request. IntegrationVersions []*GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersions,omitempty"` - - // NextPageToken: A token, which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` - - // NoPermission: Whether the user has no permission on the version or - // not. + // NoPermission: Whether the user has no permission on the version or not. NoPermission bool `json:"noPermission,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "IntegrationVersions") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IntegrationVersions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntegrationVersions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IntegrationVersions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaListIntegrationsResponse: Response for @@ -9393,179 +7586,139 @@ func (s *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) MarshalJ type GoogleCloudIntegrationsV1alphaListIntegrationsResponse struct { // Integrations: The integrations which match the request. Integrations []*GoogleCloudIntegrationsV1alphaIntegration `json:"integrations,omitempty"` - // NextPageToken: The next page token for the response. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Integrations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Integrations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Integrations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListIntegrationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListIntegrationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListIntegrationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse: -// Response for listing RuntimeActionSchemas for a specific Connection. +// GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse: Response for +// listing RuntimeActionSchemas for a specific Connection. type GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse struct { // NextPageToken: Next page token. NextPageToken string `json:"nextPageToken,omitempty"` - // RuntimeActionSchemas: Runtime action schemas. RuntimeActionSchemas []*GoogleCloudIntegrationsV1alphaRuntimeActionSchema `json:"runtimeActionSchemas,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse: -// Response for listing RuntimeEntitySchemas for a specific Connection. +// GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse: Response for +// listing RuntimeEntitySchemas for a specific Connection. type GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse struct { // NextPageToken: Next page token. NextPageToken string `json:"nextPageToken,omitempty"` - // RuntimeEntitySchemas: Runtime entity schemas. RuntimeEntitySchemas []*GoogleCloudIntegrationsV1alphaRuntimeEntitySchema `json:"runtimeEntitySchemas,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse: Response to -// list SfdcChannels. +// GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse: Response to list +// SfdcChannels. type GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse struct { // NextPageToken: The token used to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // SfdcChannels: The list of SfdcChannels retrieved. SfdcChannels []*GoogleCloudIntegrationsV1alphaSfdcChannel `json:"sfdcChannels,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse: Response to -// list SfdcInstances. +// GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse: Response to list +// SfdcInstances. type GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse struct { // NextPageToken: The token used to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // SfdcInstances: The list of SfdcInstances retrieved. SfdcInstances []*GoogleCloudIntegrationsV1alphaSfdcInstance `json:"sfdcInstances,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaListSuspensionsResponse: Response for @@ -9573,149 +7726,112 @@ func (s *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) MarshalJSON() type GoogleCloudIntegrationsV1alphaListSuspensionsResponse struct { // NextPageToken: Token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - - // Suspensions: The suspensions for the relevant execution which the - // caller has permissions to view and resolve. + // Suspensions: The suspensions for the relevant execution which the caller has + // permissions to view and resolve. Suspensions []*GoogleCloudIntegrationsV1alphaSuspension `json:"suspensions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListSuspensionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListSuspensionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListSuspensionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse: This is a UI -// only method and will be moved away. Response for ListTaskEntities. +// GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse: This is a UI only +// method and will be moved away. Response for ListTaskEntities. type GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse struct { // TaskEntities: The list of the tasks. TaskEntities []*EnterpriseCrmFrontendsEventbusProtoTaskEntity `json:"taskEntities,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "TaskEntities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaskEntities") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "TaskEntities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaNextTask: The task that is next in line -// to be executed, if the condition specified evaluated to true. +// GoogleCloudIntegrationsV1alphaNextTask: The task that is next in line to be +// executed, if the condition specified evaluated to true. type GoogleCloudIntegrationsV1alphaNextTask struct { - // Condition: Standard filter expression for this task to become an - // eligible next task. + // Condition: Standard filter expression for this task to become an eligible + // next task. Condition string `json:"condition,omitempty"` - - // Description: User-provided description intended to give additional - // business context about the task. + // Description: User-provided description intended to give additional business + // context about the task. Description string `json:"description,omitempty"` - - // DisplayName: User-provided label that is attached to this edge in the - // UI. + // DisplayName: User-provided label that is attached to this edge in the UI. DisplayName string `json:"displayName,omitempty"` - // TaskConfigId: ID of the next task. TaskConfigId string `json:"taskConfigId,omitempty"` - // TaskId: Task number of the next task. TaskId string `json:"taskId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaNextTask) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaNextTask) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaNextTask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode: The OAuth Type -// where the client sends request with the client id and requested -// scopes to auth endpoint. User sees a consent screen and auth code is -// received at specified redirect url afterwards. The auth code is then -// combined with the client id and secret and sent to the token endpoint -// in exchange for the access and refresh token. The refresh token can -// be used to fetch new access tokens. +// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode: The OAuth Type where +// the client sends request with the client id and requested scopes to auth +// endpoint. User sees a consent screen and auth code is received at specified +// redirect url afterwards. The auth code is then combined with the client id +// and secret and sent to the token endpoint in exchange for the access and +// refresh token. The refresh token can be used to fetch new access tokens. type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode struct { // AccessToken: The access token received from the token endpoint. AccessToken *GoogleCloudIntegrationsV1alphaAccessToken `json:"accessToken,omitempty"` - - // ApplyReauthPolicy: Indicates if the user has opted in Google Reauth - // Policy. If opted in, the refresh token will be valid for 20 hours, - // after which time users must re-authenticate in order to obtain a new - // one. + // ApplyReauthPolicy: Indicates if the user has opted in Google Reauth Policy. + // If opted in, the refresh token will be valid for 20 hours, after which time + // users must re-authenticate in order to obtain a new one. ApplyReauthPolicy bool `json:"applyReauthPolicy,omitempty"` - - // AuthCode: The Auth Code that is used to initially retrieve the access - // token. + // AuthCode: The Auth Code that is used to initially retrieve the access token. AuthCode string `json:"authCode,omitempty"` - // AuthEndpoint: The auth url endpoint to send the auth code request to. AuthEndpoint string `json:"authEndpoint,omitempty"` - - // AuthParams: The auth parameters sent along with the auth code - // request. + // AuthParams: The auth parameters sent along with the auth code request. AuthParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"authParams,omitempty"` - // ClientId: The client's id. ClientId string `json:"clientId,omitempty"` - // ClientSecret: The client's secret. ClientSecret string `json:"clientSecret,omitempty"` - // RequestType: Represent how to pass parameters to fetch access token // // Possible values: @@ -9723,57 +7839,44 @@ type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode struct { // "REQUEST_BODY" - To pass all the parameters in post body. // "QUERY_PARAMETERS" - To pass all the parameters as a part of query // parameter. - // "ENCODED_HEADER" - To pass client id and client secret as base 64 - // encoding of client_id:client_password and rest parameters in post - // body. + // "ENCODED_HEADER" - To pass client id and client secret as base 64 encoding + // of client_id:client_password and rest parameters in post body. RequestType string `json:"requestType,omitempty"` - // Scope: A space-delimited list of requested scope permissions. Scope string `json:"scope,omitempty"` - // TokenEndpoint: The token url endpoint to send the token request to. TokenEndpoint string `json:"tokenEndpoint,omitempty"` - // TokenParams: The token parameters sent along with the token request. TokenParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"tokenParams,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials: For client // credentials grant, the client sends a POST request with grant_type as -// 'client_credentials' to the authorization server. The authorization -// server will respond with a JSON object containing the access token. +// 'client_credentials' to the authorization server. The authorization server +// will respond with a JSON object containing the access token. type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials struct { // AccessToken: Access token fetched from the authorization server. AccessToken *GoogleCloudIntegrationsV1alphaAccessToken `json:"accessToken,omitempty"` - // ClientId: The client's ID. ClientId string `json:"clientId,omitempty"` - // ClientSecret: The client's secret. ClientSecret string `json:"clientSecret,omitempty"` - // RequestType: Represent how to pass parameters to fetch access token // // Possible values: @@ -9781,63 +7884,48 @@ type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials struct { // "REQUEST_BODY" - To pass all the parameters in post body. // "QUERY_PARAMETERS" - To pass all the parameters as a part of query // parameter. - // "ENCODED_HEADER" - To pass client id and client secret as base 64 - // encoding of client_id:client_password and rest parameters in post - // body. + // "ENCODED_HEADER" - To pass client id and client secret as base 64 encoding + // of client_id:client_password and rest parameters in post body. RequestType string `json:"requestType,omitempty"` - // Scope: A space-delimited list of requested scope permissions. Scope string `json:"scope,omitempty"` - - // TokenEndpoint: The token endpoint is used by the client to obtain an - // access token by presenting its authorization grant or refresh token. + // TokenEndpoint: The token endpoint is used by the client to obtain an access + // token by presenting its authorization grant or refresh token. TokenEndpoint string `json:"tokenEndpoint,omitempty"` - // TokenParams: Token parameters for the auth request. TokenParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"tokenParams,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials: For -// resource owner credentials grant, the client will ask the user for -// their authorization credentials (ususally a username and password) -// and send a POST request to the authorization server. The -// authorization server will respond with a JSON object containing the -// access token. +// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials: For resource +// owner credentials grant, the client will ask the user for their +// authorization credentials (ususally a username and password) and send a POST +// request to the authorization server. The authorization server will respond +// with a JSON object containing the access token. type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials struct { // AccessToken: Access token fetched from the authorization server. AccessToken *GoogleCloudIntegrationsV1alphaAccessToken `json:"accessToken,omitempty"` - // ClientId: The client's ID. ClientId string `json:"clientId,omitempty"` - // ClientSecret: The client's secret. ClientSecret string `json:"clientSecret,omitempty"` - // Password: The user's password. Password string `json:"password,omitempty"` - // RequestType: Represent how to pass parameters to fetch access token // // Possible values: @@ -9845,97 +7933,73 @@ type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials struct { // "REQUEST_BODY" - To pass all the parameters in post body. // "QUERY_PARAMETERS" - To pass all the parameters as a part of query // parameter. - // "ENCODED_HEADER" - To pass client id and client secret as base 64 - // encoding of client_id:client_password and rest parameters in post - // body. + // "ENCODED_HEADER" - To pass client id and client secret as base 64 encoding + // of client_id:client_password and rest parameters in post body. RequestType string `json:"requestType,omitempty"` - // Scope: A space-delimited list of requested scope permissions. Scope string `json:"scope,omitempty"` - - // TokenEndpoint: The token endpoint is used by the client to obtain an - // access token by presenting its authorization grant or refresh token. + // TokenEndpoint: The token endpoint is used by the client to obtain an access + // token by presenting its authorization grant or refresh token. TokenEndpoint string `json:"tokenEndpoint,omitempty"` - // TokenParams: Token parameters for the auth request. TokenParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"tokenParams,omitempty"` - // Username: The user's username. Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaOidcToken: OIDC Token type GoogleCloudIntegrationsV1alphaOidcToken struct { - // Audience: Audience to be used when generating OIDC token. The - // audience claim identifies the recipients that the JWT is intended - // for. + // Audience: Audience to be used when generating OIDC token. The audience claim + // identifies the recipients that the JWT is intended for. Audience string `json:"audience,omitempty"` - - // ServiceAccountEmail: The service account email to be used as the - // identity for the token. + // ServiceAccountEmail: The service account email to be used as the identity + // for the token. ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` - // Token: ID token obtained for the service account Token string `json:"token,omitempty"` - - // TokenExpireTime: The approximate time until the token retrieved is - // valid. + // TokenExpireTime: The approximate time until the token retrieved is valid. TokenExpireTime string `json:"tokenExpireTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Audience") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audience") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audience") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaOidcToken) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaOidcToken) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaOidcToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaParameterMap: A generic multi-map that -// holds key value pairs. They keys and values can be of any type, -// unless specified. +// GoogleCloudIntegrationsV1alphaParameterMap: A generic multi-map that holds +// key value pairs. They keys and values can be of any type, unless specified. type GoogleCloudIntegrationsV1alphaParameterMap struct { // Entries: A list of parameter map entries. Entries []*GoogleCloudIntegrationsV1alphaParameterMapEntry `json:"entries,omitempty"` - - // KeyType: Option to specify key type for all entries of the map. If - // provided then field types for all entries must conform to this. + // KeyType: Option to specify key type for all entries of the map. If provided + // then field types for all entries must conform to this. // // Possible values: // "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED" - Unspecified. @@ -9951,9 +8015,8 @@ type GoogleCloudIntegrationsV1alphaParameterMap struct { // "PROTO_VALUE" - Proto Value (Internal use only). // "PROTO_ARRAY" - Proto Array (Internal use only). KeyType string `json:"keyType,omitempty"` - - // ValueType: Option to specify value type for all entries of the map. - // If provided then field types for all entries must conform to this. + // ValueType: Option to specify value type for all entries of the map. If + // provided then field types for all entries must conform to this. // // Possible values: // "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED" - Unspecified. @@ -9969,543 +8032,418 @@ type GoogleCloudIntegrationsV1alphaParameterMap struct { // "PROTO_VALUE" - Proto Value (Internal use only). // "PROTO_ARRAY" - Proto Array (Internal use only). ValueType string `json:"valueType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaParameterMap) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaParameterMap) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaParameterMap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaParameterMapEntry: Entry is a pair of -// key and value. +// GoogleCloudIntegrationsV1alphaParameterMapEntry: Entry is a pair of key and +// value. type GoogleCloudIntegrationsV1alphaParameterMapEntry struct { // Key: Key of the map entry. Key *GoogleCloudIntegrationsV1alphaParameterMapField `json:"key,omitempty"` - // Value: Value of the map entry. Value *GoogleCloudIntegrationsV1alphaParameterMapField `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaParameterMapEntry) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaParameterMapEntry) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaParameterMapEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaParameterMapField: Field represents -// either the key or value in an entry. +// GoogleCloudIntegrationsV1alphaParameterMapField: Field represents either the +// key or value in an entry. type GoogleCloudIntegrationsV1alphaParameterMapField struct { // LiteralValue: Passing a literal value. LiteralValue *GoogleCloudIntegrationsV1alphaValueType `json:"literalValue,omitempty"` - // ReferenceKey: Referencing one of the Integration variables. ReferenceKey string `json:"referenceKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "LiteralValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LiteralValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LiteralValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaParameterMapField) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaParameterMapField) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaParameterMapField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaProjectProperties: Metadata information -// for the given project +// GoogleCloudIntegrationsV1alphaProjectProperties: Metadata information for +// the given project type GoogleCloudIntegrationsV1alphaProjectProperties struct { - // IpEnablementState: An enum value of what the enablement state is for - // the given project + // IpEnablementState: An enum value of what the enablement state is for the + // given project // // Possible values: // "IP_ENABLEMENT_STATE_UNSPECIFIED" - The client enablement status is // unspecified - // "IP_ENABLEMENT_STATE_STANDALONE" - The client is enabled on - // Standalone IP + // "IP_ENABLEMENT_STATE_STANDALONE" - The client is enabled on Standalone IP // "IP_ENABLEMENT_STATE_APIGEE" - The client is enabled on Apigee - // "IP_ENABLEMENT_STATE_APIGEE_ENTITLED" - The client is entitled for - // Apigee but not enabled + // "IP_ENABLEMENT_STATE_APIGEE_ENTITLED" - The client is entitled for Apigee + // but not enabled IpEnablementState string `json:"ipEnablementState,omitempty"` - - // ProvisionedRegions: A list of provisioned regions on the current - // project + // ProvisionedRegions: A list of provisioned regions on the current project ProvisionedRegions []string `json:"provisionedRegions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IpEnablementState") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IpEnablementState") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IpEnablementState") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IpEnablementState") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaProjectProperties) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaProjectProperties) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaProjectProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaProvisionClientRequest: Request for the // Provision rpc type GoogleCloudIntegrationsV1alphaProvisionClientRequest struct { - // CloudKmsConfig: Required. Required: Cloud KMS config for AuthModule - // to encrypt/decrypt credentials. + // CloudKmsConfig: Required. Required: Cloud KMS config for AuthModule to + // encrypt/decrypt credentials. CloudKmsConfig *GoogleCloudIntegrationsV1alphaCloudKmsConfig `json:"cloudKmsConfig,omitempty"` - - // CreateSampleWorkflows: Optional. Indicates if sample workflow should - // be created along with provisioning + // CreateSampleWorkflows: Optional. Indicates if sample workflow should be + // created along with provisioning CreateSampleWorkflows bool `json:"createSampleWorkflows,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudKmsConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudKmsConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CloudKmsConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaProvisionClientRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaProvisionClientRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaProvisionClientRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest: -// Request for PublishIntegrationVersion. +// GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest: Request for +// PublishIntegrationVersion. type GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest struct { } -// GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse: -// Response for PublishIntegrationVersion. +// GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse: Response +// for PublishIntegrationVersion. type GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // GoogleCloudIntegrationsV1alphaResolveSuspensionRequest: Request for // [Suspensions.ResolveSuspensions]. type GoogleCloudIntegrationsV1alphaResolveSuspensionRequest struct { - // Suspension: Suspension, containing the event_execution_info_id, - // task_id, and state to set on the corresponding suspension record. + // Suspension: Suspension, containing the event_execution_info_id, task_id, and + // state to set on the corresponding suspension record. Suspension *GoogleCloudIntegrationsV1alphaSuspension `json:"suspension,omitempty"` - // ForceSendFields is a list of field names (e.g. "Suspension") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Suspension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Suspension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaResolveSuspensionRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaResolveSuspensionResponse: Response for // Suspensions.ResolveSuspensions. type GoogleCloudIntegrationsV1alphaResolveSuspensionResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// GoogleCloudIntegrationsV1alphaRuntimeActionSchema: Metadata of an -// action, including schemas for its inputs and outputs. +// GoogleCloudIntegrationsV1alphaRuntimeActionSchema: Metadata of an action, +// including schemas for its inputs and outputs. type GoogleCloudIntegrationsV1alphaRuntimeActionSchema struct { // Action: Name of the action. Action string `json:"action,omitempty"` - // InputSchema: Input parameter schema for the action. InputSchema string `json:"inputSchema,omitempty"` - // OutputSchema: Output parameter schema for the action. OutputSchema string `json:"outputSchema,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaRuntimeActionSchema) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaRuntimeActionSchema) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaRuntimeActionSchema - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaRuntimeEntitySchema: Metadata of an -// entity, including a schema for its properties. +// GoogleCloudIntegrationsV1alphaRuntimeEntitySchema: Metadata of an entity, +// including a schema for its properties. type GoogleCloudIntegrationsV1alphaRuntimeEntitySchema struct { - // ArrayFieldSchema: The above schema, but for an array of the - // associated entity. + // ArrayFieldSchema: The above schema, but for an array of the associated + // entity. ArrayFieldSchema string `json:"arrayFieldSchema,omitempty"` - // Entity: Name of the entity. Entity string `json:"entity,omitempty"` - // FieldSchema: List of fields in the entity. FieldSchema string `json:"fieldSchema,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArrayFieldSchema") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArrayFieldSchema") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ArrayFieldSchema") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaRuntimeEntitySchema) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaRuntimeEntitySchema) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaRuntimeEntitySchema - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest: The -// request for scheduling an integration. +// GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest: The request for +// scheduling an integration. type GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest struct { - // InputParameters: Optional. Input parameters used by integration - // execution. + // InputParameters: Optional. Input parameters used by integration execution. InputParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"inputParameters,omitempty"` - // ParameterEntries: Parameters are a part of Event and can be used to - // communicate between different tasks that are part of the same - // integration execution. + // communicate between different tasks that are part of the same integration + // execution. ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` - // Parameters: Passed in as parameters to each integration execution. Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` - - // RequestId: This is used to de-dup incoming request: if the duplicate - // request was detected, the response from the previous execution is - // returned. + // RequestId: This is used to de-dup incoming request: if the duplicate request + // was detected, the response from the previous execution is returned. RequestId string `json:"requestId,omitempty"` - - // ScheduleTime: The time that the integration should be executed. If - // the time is less or equal to the current time, the integration is - // executed immediately. + // ScheduleTime: The time that the integration should be executed. If the time + // is less or equal to the current time, the integration is executed + // immediately. ScheduleTime string `json:"scheduleTime,omitempty"` - // TriggerId: Matched against all {@link TriggerConfig}s across all // integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id) TriggerId string `json:"triggerId,omitempty"` - // ForceSendFields is a list of field names (e.g. "InputParameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InputParameters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InputParameters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse: The -// response for executing an integration. +// GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse: The response for +// executing an integration. type GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse struct { - // ExecutionInfoIds: The execution info id for the executed - // integrations. + // ExecutionInfoIds: The execution info id for the executed integrations. ExecutionInfoIds []string `json:"executionInfoIds,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionInfoIds") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionInfoIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionInfoIds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaServiceAccountCredentials: Represents -// the service account which can be used to generate access token for +// GoogleCloudIntegrationsV1alphaServiceAccountCredentials: Represents the +// service account which can be used to generate access token for // authenticating the service call. type GoogleCloudIntegrationsV1alphaServiceAccountCredentials struct { // Scope: A space-delimited list of requested scope permissions. Scope string `json:"scope,omitempty"` - - // ServiceAccount: Name of the service account that has the permission - // to make the request. + // ServiceAccount: Name of the service account that has the permission to make + // the request. ServiceAccount string `json:"serviceAccount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Scope") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Scope") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Scope") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaServiceAccountCredentials) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaServiceAccountCredentials) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaServiceAccountCredentials - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaSfdcChannel: The SfdcChannel that -// points to a CDC or Platform Event Channel. +// GoogleCloudIntegrationsV1alphaSfdcChannel: The SfdcChannel that points to a +// CDC or Platform Event Channel. type GoogleCloudIntegrationsV1alphaSfdcChannel struct { - // ChannelTopic: The Channel topic defined by salesforce once an channel - // is opened + // ChannelTopic: The Channel topic defined by salesforce once an channel is + // opened ChannelTopic string `json:"channelTopic,omitempty"` - // CreateTime: Output only. Time when the channel is created CreateTime string `json:"createTime,omitempty"` - - // DeleteTime: Output only. Time when the channel was deleted. Empty if - // not deleted. + // DeleteTime: Output only. Time when the channel was deleted. Empty if not + // deleted. DeleteTime string `json:"deleteTime,omitempty"` - // Description: The description for this channel Description string `json:"description,omitempty"` - - // DisplayName: Client level unique name/alias to easily reference a - // channel. + // DisplayName: Client level unique name/alias to easily reference a channel. DisplayName string `json:"displayName,omitempty"` - - // IsActive: Indicated if a channel has any active integrations - // referencing it. Set to false when the channel is created, and set to - // true if there is any integration published with the channel - // configured in it. + // IsActive: Indicated if a channel has any active integrations referencing it. + // Set to false when the channel is created, and set to true if there is any + // integration published with the channel configured in it. IsActive bool `json:"isActive,omitempty"` - // LastReplayId: Last sfdc messsage replay id for channel LastReplayId string `json:"lastReplayId,omitempty"` - // Name: Resource name of the SFDC channel - // projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/ - // sfdcChannels/{sfdc_channel}. + // projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcCha + // nnels/{sfdc_channel}. Name string `json:"name,omitempty"` - // UpdateTime: Output only. Time when the channel was last updated UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ChannelTopic") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelTopic") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelTopic") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSfdcChannel) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSfdcChannel) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSfdcChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaSfdcInstance: The SfdcInstance resource -// use to hold channels and connection config data. +// GoogleCloudIntegrationsV1alphaSfdcInstance: The SfdcInstance resource use to +// hold channels and connection config data. type GoogleCloudIntegrationsV1alphaSfdcInstance struct { - // AuthConfigId: A list of AuthConfigs that can be tried to open the - // channel to SFDC + // AuthConfigId: A list of AuthConfigs that can be tried to open the channel to + // SFDC AuthConfigId []string `json:"authConfigId,omitempty"` - // CreateTime: Output only. Time when the instance is created CreateTime string `json:"createTime,omitempty"` - - // DeleteTime: Output only. Time when the instance was deleted. Empty if - // not deleted. + // DeleteTime: Output only. Time when the instance was deleted. Empty if not + // deleted. DeleteTime string `json:"deleteTime,omitempty"` - // Description: A description of the sfdc instance. Description string `json:"description,omitempty"` - // DisplayName: User selected unique name/alias to easily reference an // instance. DisplayName string `json:"displayName,omitempty"` - // Name: Resource name of the SFDC instance // projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}. Name string `json:"name,omitempty"` - - // ServiceAuthority: URL used for API calls after authentication (the - // login authority is configured within the referenced AuthConfig). + // ServiceAuthority: URL used for API calls after authentication (the login + // authority is configured within the referenced AuthConfig). ServiceAuthority string `json:"serviceAuthority,omitempty"` - // SfdcOrgId: The SFDC Org Id. This is defined in salesforce. SfdcOrgId string `json:"sfdcOrgId,omitempty"` - // UpdateTime: Output only. Time when the instance was last updated UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuthConfigId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthConfigId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthConfigId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSfdcInstance) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSfdcInstance) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSfdcInstance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaStringParameterArray: This message only @@ -10513,96 +8451,77 @@ func (s *GoogleCloudIntegrationsV1alphaSfdcInstance) MarshalJSON() ([]byte, erro type GoogleCloudIntegrationsV1alphaStringParameterArray struct { // StringValues: String array. StringValues []string `json:"stringValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "StringValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StringValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StringValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaStringParameterArray) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaStringParameterArray) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaStringParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaSuccessPolicy: Policy that dictates the // behavior for the task after it completes successfully. type GoogleCloudIntegrationsV1alphaSuccessPolicy struct { - // FinalState: State to which the execution snapshot status will be set - // if the task succeeds. + // FinalState: State to which the execution snapshot status will be set if the + // task succeeds. // // Possible values: // "FINAL_STATE_UNSPECIFIED" - UNSPECIFIED. - // "SUCCEEDED" - The default behavior, where successful tasks will be - // marked as SUCCEEDED. + // "SUCCEEDED" - The default behavior, where successful tasks will be marked + // as SUCCEEDED. // "SUSPENDED" - Sets the state to SUSPENDED after executing. This is - // required for SuspensionTask; event execution will continue once the - // user calls ResolveSuspensions with the event_execution_info_id and - // the task number. + // required for SuspensionTask; event execution will continue once the user + // calls ResolveSuspensions with the event_execution_info_id and the task + // number. FinalState string `json:"finalState,omitempty"` - // ForceSendFields is a list of field names (e.g. "FinalState") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FinalState") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FinalState") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSuccessPolicy) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSuccessPolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSuccessPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaSuspension: A record representing a // suspension. type GoogleCloudIntegrationsV1alphaSuspension struct { - // ApprovalConfig: Controls the notifications and approval permissions - // for this suspension. + // ApprovalConfig: Controls the notifications and approval permissions for this + // suspension. ApprovalConfig *GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig `json:"approvalConfig,omitempty"` - // Audit: Metadata pertaining to the resolution of this suspension. Audit *GoogleCloudIntegrationsV1alphaSuspensionAudit `json:"audit,omitempty"` - // CreateTime: Output only. Auto-generated. CreateTime string `json:"createTime,omitempty"` - // EventExecutionInfoId: Required. ID of the associated execution. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - // Integration: Required. The name of the originating integration. Integration string `json:"integration,omitempty"` - // LastModifyTime: Output only. Auto-generated. LastModifyTime string `json:"lastModifyTime,omitempty"` - // Name: Resource name for suspensions suspension/{suspension_id} Name string `json:"name,omitempty"` - - // State: Required. State of this suspension, indicating what action a - // resolver has taken. + // State: Required. State of this suspension, indicating what action a resolver + // has taken. // // Possible values: // "RESOLUTION_STATE_UNSPECIFIED" - Unset state. @@ -10610,143 +8529,111 @@ type GoogleCloudIntegrationsV1alphaSuspension struct { // "REJECTED" - The resolver has rejected the suspension. // "LIFTED" - The resolver has lifted the suspension. State string `json:"state,omitempty"` - - // SuspensionConfig: Controls the notifications and resolver permissions - // for this suspension. + // SuspensionConfig: Controls the notifications and resolver permissions for + // this suspension. SuspensionConfig *EnterpriseCrmEventbusProtoSuspensionConfig `json:"suspensionConfig,omitempty"` - // TaskId: Required. Task id of the associated SuspensionTask. TaskId string `json:"taskId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApprovalConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApprovalConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSuspension) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSuspension) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSuspension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig: -// Configurations for approving the Suspension. +// GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig: Configurations for +// approving the Suspension. type GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig struct { // CustomMessage: Information to provide for recipients. CustomMessage string `json:"customMessage,omitempty"` - // EmailAddresses: Email addresses to send approval request to. EmailAddresses []string `json:"emailAddresses,omitempty"` - - // Expiration: Indicates the next steps when no external actions happen - // on the suspension. + // Expiration: Indicates the next steps when no external actions happen on the + // suspension. Expiration *GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration `json:"expiration,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomMessage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomMessage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomMessage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration: -// Expiration configs for the approval request. +// GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration: Expiration +// configs for the approval request. type GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration struct { - // ExpireTime: Output only. Time after which the suspension expires, if - // no action taken. + // ExpireTime: Output only. Time after which the suspension expires, if no + // action taken. ExpireTime string `json:"expireTime,omitempty"` - - // LiftWhenExpired: Whether the suspension will be REJECTED or LIFTED - // upon expiration. REJECTED is the default behavior. + // LiftWhenExpired: Whether the suspension will be REJECTED or LIFTED upon + // expiration. REJECTED is the default behavior. LiftWhenExpired bool `json:"liftWhenExpired,omitempty"` - - // RemindTime: Time after the previous suspension action reminder, if - // any, is sent using the selected notification option, for a suspension - // which is still PENDING_UNSPECIFIED. + // RemindTime: Time after the previous suspension action reminder, if any, is + // sent using the selected notification option, for a suspension which is still + // PENDING_UNSPECIFIED. RemindTime string `json:"remindTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpireTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpireTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExpireTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaSuspensionAudit: Contains when and by -// whom the suspension was resolved. +// GoogleCloudIntegrationsV1alphaSuspensionAudit: Contains when and by whom the +// suspension was resolved. type GoogleCloudIntegrationsV1alphaSuspensionAudit struct { // ResolveTime: Time at which this suspension was resolved. ResolveTime string `json:"resolveTime,omitempty"` - // Resolver: Email address of the person who resolved this suspension. Resolver string `json:"resolver,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResolveTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResolveTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResolveTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSuspensionAudit) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSuspensionAudit) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSuspensionAudit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest: Request for @@ -10757,382 +8644,301 @@ type GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest struct { // GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse: Response for // TakeoverEditLock. type GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse struct { - // IntegrationVersion: Version after the lock is acquired by the new - // user. + // IntegrationVersion: Version after the lock is acquired by the new user. IntegrationVersion *GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersion,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "IntegrationVersion") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IntegrationVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntegrationVersion") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IntegrationVersion") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaTaskConfig: The task configuration -// details. This is not the implementation of Task. There might be -// multiple TaskConfigs for the same Task. +// GoogleCloudIntegrationsV1alphaTaskConfig: The task configuration details. +// This is not the implementation of Task. There might be multiple TaskConfigs +// for the same Task. type GoogleCloudIntegrationsV1alphaTaskConfig struct { - // Description: Optional. User-provided description intended to give - // additional business context about the task. + // Description: Optional. User-provided description intended to give additional + // business context about the task. Description string `json:"description,omitempty"` - // DisplayName: Optional. User-provided label that is attached to this // TaskConfig in the UI. DisplayName string `json:"displayName,omitempty"` - - // FailurePolicy: Optional. Determines the number of times the task will - // be retried on failure and with what retry strategy. This is - // applicable for asynchronous calls to Eventbus alone (Post To Queue, - // Schedule etc.). + // FailurePolicy: Optional. Determines the number of times the task will be + // retried on failure and with what retry strategy. This is applicable for + // asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). FailurePolicy *GoogleCloudIntegrationsV1alphaFailurePolicy `json:"failurePolicy,omitempty"` - - // JsonValidationOption: Optional. If set, overrides the option - // configured in the Task implementation class. + // JsonValidationOption: Optional. If set, overrides the option configured in + // the Task implementation class. // // Possible values: - // "JSON_VALIDATION_OPTION_UNSPECIFIED" - As per the default behavior, - // no validation will be run. Will not override any option set in a - // Task. + // "JSON_VALIDATION_OPTION_UNSPECIFIED" - As per the default behavior, no + // validation will be run. Will not override any option set in a Task. // "SKIP" - Do not run any validation against JSON schemas. - // "PRE_EXECUTION" - Validate all potential input JSON parameters - // against schemas specified in IntegrationParameter. - // "POST_EXECUTION" - Validate all potential output JSON parameters - // against schemas specified in IntegrationParameter. - // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and - // POST_EXECUTION validations. + // "PRE_EXECUTION" - Validate all potential input JSON parameters against + // schemas specified in IntegrationParameter. + // "POST_EXECUTION" - Validate all potential output JSON parameters against + // schemas specified in IntegrationParameter. + // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and POST_EXECUTION + // validations. JsonValidationOption string `json:"jsonValidationOption,omitempty"` - - // NextTasks: Optional. The set of tasks that are next in line to be - // executed as per the execution graph defined for the parent event, - // specified by `event_config_id`. Each of these next tasks are executed - // only if the condition associated with them evaluates to true. + // NextTasks: Optional. The set of tasks that are next in line to be executed + // as per the execution graph defined for the parent event, specified by + // `event_config_id`. Each of these next tasks are executed only if the + // condition associated with them evaluates to true. NextTasks []*GoogleCloudIntegrationsV1alphaNextTask `json:"nextTasks,omitempty"` - - // NextTasksExecutionPolicy: Optional. The policy dictating the - // execution of the next set of tasks for the current task. + // NextTasksExecutionPolicy: Optional. The policy dictating the execution of + // the next set of tasks for the current task. // // Possible values: // "NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED" - Default. - // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their - // associated condition. - // "RUN_FIRST_MATCH" - Execute the first task that satisfies the - // associated condition. + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their associated + // condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the associated + // condition. NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` - - // Parameters: Optional. The customized parameters the user can pass to - // this task. + // Parameters: Optional. The customized parameters the user can pass to this + // task. Parameters map[string]GoogleCloudIntegrationsV1alphaEventParameter `json:"parameters,omitempty"` - - // SuccessPolicy: Optional. Determines what action to take upon - // successful task completion. + // SuccessPolicy: Optional. Determines what action to take upon successful task + // completion. SuccessPolicy *GoogleCloudIntegrationsV1alphaSuccessPolicy `json:"successPolicy,omitempty"` - - // SynchronousCallFailurePolicy: Optional. Determines the number of - // times the task will be retried on failure and with what retry - // strategy. This is applicable for synchronous calls to Eventbus alone - // (Post). + // SynchronousCallFailurePolicy: Optional. Determines the number of times the + // task will be retried on failure and with what retry strategy. This is + // applicable for synchronous calls to Eventbus alone (Post). SynchronousCallFailurePolicy *GoogleCloudIntegrationsV1alphaFailurePolicy `json:"synchronousCallFailurePolicy,omitempty"` - // Task: Optional. The name for the task. Task string `json:"task,omitempty"` - - // TaskExecutionStrategy: Optional. The policy dictating the execution - // strategy of this task. + // TaskExecutionStrategy: Optional. The policy dictating the execution strategy + // of this task. // // Possible values: - // "TASK_EXECUTION_STRATEGY_UNSPECIFIED" - Default. If the strategy is - // not set explicitly, it will default to `WHEN_ALL_SUCCEED`. + // "TASK_EXECUTION_STRATEGY_UNSPECIFIED" - Default. If the strategy is not + // set explicitly, it will default to `WHEN_ALL_SUCCEED`. // "WHEN_ALL_SUCCEED" - Wait until all of its previous tasks finished - // execution, then verify at least one of the edge conditions is met, - // and execute if possible. This should be considered as - // WHEN_ALL_TASKS_SUCCEED. - // "WHEN_ANY_SUCCEED" - Start execution as long as any of its previous - // tasks finished execution and the corresponding edge condition is met - // (since we will execute if only that succeeding edge condition is - // met). - // "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" - Wait until all of its - // previous tasks finished execution, then verify the all edge - // conditions are met and execute if possible. + // execution, then verify at least one of the edge conditions is met, and + // execute if possible. This should be considered as WHEN_ALL_TASKS_SUCCEED. + // "WHEN_ANY_SUCCEED" - Start execution as long as any of its previous tasks + // finished execution and the corresponding edge condition is met (since we + // will execute if only that succeeding edge condition is met). + // "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" - Wait until all of its previous + // tasks finished execution, then verify the all edge conditions are met and + // execute if possible. TaskExecutionStrategy string `json:"taskExecutionStrategy,omitempty"` - // TaskId: Required. The identifier of this task within its parent event - // config, specified by the client. This should be unique among all the - // tasks belong to the same event config. We use this field as the - // identifier to find next tasks (via field `next_tasks.task_id`). + // config, specified by the client. This should be unique among all the tasks + // belong to the same event config. We use this field as the identifier to find + // next tasks (via field `next_tasks.task_id`). TaskId string `json:"taskId,omitempty"` - - // TaskTemplate: Optional. Used to define task-template name if task is - // of type task-template + // TaskTemplate: Optional. Used to define task-template name if task is of type + // task-template TaskTemplate string `json:"taskTemplate,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaTaskConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaTaskConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaTaskConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaTaskExecutionDetails: Contains the -// details of the execution of this task. +// GoogleCloudIntegrationsV1alphaTaskExecutionDetails: Contains the details of +// the execution of this task. type GoogleCloudIntegrationsV1alphaTaskExecutionDetails struct { // TaskAttemptStats: Status for the current task execution attempt. TaskAttemptStats []*GoogleCloudIntegrationsV1alphaAttemptStats `json:"taskAttemptStats,omitempty"` - // TaskExecutionState: The execution state of this task. // // Possible values: // "TASK_EXECUTION_STATE_UNSPECIFIED" - Default value. - // "PENDING_EXECUTION" - Task is waiting for its precondition tasks to - // finish to start the execution. + // "PENDING_EXECUTION" - Task is waiting for its precondition tasks to finish + // to start the execution. // "IN_PROCESS" - Task is under processing. - // "SUCCEED" - Task execution successfully finished. There's no more - // change after this state. - // "FAILED" - Task execution failed. There's no more change after this - // state. - // "FATAL" - Task execution failed and cause the whole event execution - // to fail immediately. There's no more change after this state. + // "SUCCEED" - Task execution successfully finished. There's no more change + // after this state. + // "FAILED" - Task execution failed. There's no more change after this state. + // "FATAL" - Task execution failed and cause the whole event execution to + // fail immediately. There's no more change after this state. // "RETRY_ON_HOLD" - Task execution failed and waiting for retry. - // "SKIPPED" - Task execution skipped. This happens when its - // precondition wasn't met, or the event execution been canceled before - // reach to the task. There's no more changes after this state. - // "CANCELLED" - Task execution canceled when in progress. This - // happens when event execution been canceled or any other task fall in - // fatal state. - // "PENDING_ROLLBACK" - Task is waiting for its dependency tasks' - // rollback to finish to start its rollback. + // "SKIPPED" - Task execution skipped. This happens when its precondition + // wasn't met, or the event execution been canceled before reach to the task. + // There's no more changes after this state. + // "CANCELLED" - Task execution canceled when in progress. This happens when + // event execution been canceled or any other task fall in fatal state. + // "PENDING_ROLLBACK" - Task is waiting for its dependency tasks' rollback to + // finish to start its rollback. // "ROLLBACK_IN_PROCESS" - Task is rolling back. // "ROLLEDBACK" - Task is rolled back. This is the state we will set // regardless of rollback succeeding or failing. - // "SUSPENDED" - Task is a SuspensionTask which has executed once, - // creating a pending suspension. + // "SUSPENDED" - Task is a SuspensionTask which has executed once, creating a + // pending suspension. TaskExecutionState string `json:"taskExecutionState,omitempty"` - // TaskNumber: Pointer to the task config it used for execution. TaskNumber string `json:"taskNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "TaskAttemptStats") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaskAttemptStats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TaskAttemptStats") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaTaskExecutionDetails) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaTaskExecutionDetails) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaTaskExecutionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaTestIntegrationsRequest: The request -// for testing an integration. +// GoogleCloudIntegrationsV1alphaTestIntegrationsRequest: The request for +// testing an integration. type GoogleCloudIntegrationsV1alphaTestIntegrationsRequest struct { - // ClientId: Required. This is used to identify the client on whose - // behalf the event will be executed. + // ClientId: Required. This is used to identify the client on whose behalf the + // event will be executed. ClientId string `json:"clientId,omitempty"` - // DeadlineSecondsTime: Optional. custom deadline of the rpc DeadlineSecondsTime string `json:"deadlineSecondsTime,omitempty"` - // InputParameters: Optional. Input parameters used during integration // execution. InputParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"inputParameters,omitempty"` - - // IntegrationVersion: Required. integration config to execute the - // workflow + // IntegrationVersion: Required. integration config to execute the workflow IntegrationVersion *GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersion,omitempty"` - - // Parameters: Optional. Passed in as parameters to each integration - // execution. + // Parameters: Optional. Passed in as parameters to each integration execution. Parameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"parameters,omitempty"` - - // TestMode: Optional. Can be specified in the event request, otherwise - // false (default). If true, enables tasks with condition "test_mode = - // true". If false, disables tasks with condition "test_mode = true" if - // global test mode (set by platform) is also false {@link - // EventBusConfig}. + // TestMode: Optional. Can be specified in the event request, otherwise false + // (default). If true, enables tasks with condition "test_mode = true". If + // false, disables tasks with condition "test_mode = true" if global test mode + // (set by platform) is also false {@link EventBusConfig}. TestMode bool `json:"testMode,omitempty"` - - // TriggerId: Required. The trigger id of the integration trigger - // config. If both trigger_id and client_id is present, the integration - // is executed from the start tasks provided by the matching trigger - // config otherwise it is executed from the default start tasks. + // TriggerId: Required. The trigger id of the integration trigger config. If + // both trigger_id and client_id is present, the integration is executed from + // the start tasks provided by the matching trigger config otherwise it is + // executed from the default start tasks. TriggerId string `json:"triggerId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaTestIntegrationsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaTestIntegrationsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaTestIntegrationsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaTestIntegrationsResponse: The response -// for testing an integration. +// GoogleCloudIntegrationsV1alphaTestIntegrationsResponse: The response for +// testing an integration. type GoogleCloudIntegrationsV1alphaTestIntegrationsResponse struct { // EventParameters: Details for the integration that were executed. EventParameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"eventParameters,omitempty"` - - // ExecutionFailed: Is true if any execution in the integration failed. - // False otherwise. + // ExecutionFailed: Is true if any execution in the integration failed. False + // otherwise. ExecutionFailed bool `json:"executionFailed,omitempty"` - // ExecutionId: The id of the execution corresponding to this run of // integration. ExecutionId string `json:"executionId,omitempty"` - // ParameterEntries: Parameters are a part of Event and can be used to - // communicate between different tasks that are part of the same - // integration execution. + // communicate between different tasks that are part of the same integration + // execution. ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` - - // Parameters: Optional. Parameters are a part of Event and can be used - // to communicate between different tasks that are part of the same - // integration execution. + // Parameters: Optional. Parameters are a part of Event and can be used to + // communicate between different tasks that are part of the same integration + // execution. Parameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"parameters,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EventParameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventParameters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventParameters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaTestIntegrationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaTestIntegrationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaTriggerConfig: Configuration detail of -// a trigger. +// GoogleCloudIntegrationsV1alphaTriggerConfig: Configuration detail of a +// trigger. type GoogleCloudIntegrationsV1alphaTriggerConfig struct { - // AlertConfig: Optional. An alert threshold configuration for the - // [trigger + client + integration] tuple. If these values are not - // specified in the trigger config, default values will be populated by - // the system. Note that there must be exactly one alert threshold - // configured per [client + trigger + integration] when published. + // AlertConfig: Optional. An alert threshold configuration for the [trigger + + // client + integration] tuple. If these values are not specified in the + // trigger config, default values will be populated by the system. Note that + // there must be exactly one alert threshold configured per [client + trigger + + // integration] when published. AlertConfig []*GoogleCloudIntegrationsV1alphaIntegrationAlertConfig `json:"alertConfig,omitempty"` - - // CloudSchedulerConfig: Optional. Cloud Scheduler Trigger related - // metadata + // CloudSchedulerConfig: Optional. Cloud Scheduler Trigger related metadata CloudSchedulerConfig *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig `json:"cloudSchedulerConfig,omitempty"` - - // Description: Optional. User-provided description intended to give - // additional business context about the task. + // Description: Optional. User-provided description intended to give additional + // business context about the task. Description string `json:"description,omitempty"` - // Label: Optional. The user created label for a particular trigger. Label string `json:"label,omitempty"` - // NextTasksExecutionPolicy: Optional. Dictates how next tasks will be // executed. // // Possible values: // "NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED" - Default. - // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their - // associated condition. - // "RUN_FIRST_MATCH" - Execute the first task that satisfies the - // associated condition. + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their associated + // condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the associated + // condition. NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` - - // Properties: Optional. Configurable properties of the trigger, not to - // be confused with integration parameters. E.g. "name" is a property - // for API triggers and "subscription" is a property for Pub/sub - // triggers. + // Properties: Optional. Configurable properties of the trigger, not to be + // confused with integration parameters. E.g. "name" is a property for API + // triggers and "subscription" is a property for Pub/sub triggers. Properties map[string]string `json:"properties,omitempty"` - // StartTasks: Optional. Set of tasks numbers from where the integration - // execution is started by this trigger. If this is empty, then - // integration is executed with default start tasks. In the list of - // start tasks, none of two tasks can have direct ancestor-descendant - // relationships (i.e. in a same integration execution graph). + // execution is started by this trigger. If this is empty, then integration is + // executed with default start tasks. In the list of start tasks, none of two + // tasks can have direct ancestor-descendant relationships (i.e. in a same + // integration execution graph). StartTasks []*GoogleCloudIntegrationsV1alphaNextTask `json:"startTasks,omitempty"` - // TriggerId: Optional. The backend trigger ID. TriggerId string `json:"triggerId,omitempty"` - - // TriggerNumber: Required. A number to uniquely identify each trigger - // config within the integration on UI. + // TriggerNumber: Required. A number to uniquely identify each trigger config + // within the integration on UI. TriggerNumber string `json:"triggerNumber,omitempty"` - // TriggerType: Optional. Type of trigger // // Possible values: @@ -11144,103 +8950,83 @@ type GoogleCloudIntegrationsV1alphaTriggerConfig struct { // "SFDC_CDC_CHANNEL" - SFDC Channel Trigger for CDC. // "CLOUD_SCHEDULER" - Trigger by Cloud Scheduler job. TriggerType string `json:"triggerType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AlertConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AlertConfig") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlertConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaTriggerConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaTriggerConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaTriggerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest: -// Request for UnpublishIntegrationVersion. +// GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest: Request +// for UnpublishIntegrationVersion. type GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest struct { } -// GoogleCloudIntegrationsV1alphaUpdateBundleRequest: THIS METHOD WILL -// BE MOVED TO A SEPARATE SERVICE. Request message for Bundle update +// GoogleCloudIntegrationsV1alphaUpdateBundleRequest: THIS METHOD WILL BE MOVED +// TO A SEPARATE SERVICE. Request message for Bundle update type GoogleCloudIntegrationsV1alphaUpdateBundleRequest struct { // Config: It contains the updated bundle data Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaUpdateBundleRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaUpdateBundleRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaUpdateBundleRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaUpdateBundleResponse: Response message -// for Bundle update +// GoogleCloudIntegrationsV1alphaUpdateBundleResponse: Response message for +// Bundle update type GoogleCloudIntegrationsV1alphaUpdateBundleResponse struct { // Config: Contains updated bundle config Config *GoogleCloudIntegrationsV1alphaIntegrationBundleConfig `json:"config,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaUpdateBundleResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaUpdateBundleResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaUpdateBundleResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest: -// Request for UploadIntegrationVersion. +// GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest: Request for +// UploadIntegrationVersion. type GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest struct { // Content: The textproto of the integration_version. Content string `json:"content,omitempty"` - // FileFormat: File format for upload request. // // Possible values: @@ -11248,106 +9034,84 @@ type GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest struct { // "JSON" - JSON File Format // "YAML" - YAML File Format FileFormat string `json:"fileFormat,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse: -// Response for UploadIntegrationVersion. +// GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse: Response for +// UploadIntegrationVersion. type GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse struct { // IntegrationVersion: The uploaded integration. IntegrationVersion *GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersion,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "IntegrationVersion") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IntegrationVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntegrationVersion") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IntegrationVersion") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaUsernameAndPassword: Username and -// password pair. +// GoogleCloudIntegrationsV1alphaUsernameAndPassword: Username and password +// pair. type GoogleCloudIntegrationsV1alphaUsernameAndPassword struct { // Password: Password to be used Password string `json:"password,omitempty"` - // Username: Username to be used Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "Password") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Password") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Password") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaUsernameAndPassword) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaUsernameAndPassword) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaUsernameAndPassword - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest: -// Request for ValidateIntegrationVersion. +// GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest: Request for +// ValidateIntegrationVersion. type GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest struct { } -// GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse: -// Response for ValidateIntegrationVersion. +// GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse: Response +// for ValidateIntegrationVersion. type GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } @@ -11355,52 +9119,38 @@ type GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse struct { type GoogleCloudIntegrationsV1alphaValueType struct { // BooleanArray: Boolean Array. BooleanArray *GoogleCloudIntegrationsV1alphaBooleanParameterArray `json:"booleanArray,omitempty"` - // BooleanValue: Boolean. BooleanValue bool `json:"booleanValue,omitempty"` - // DoubleArray: Double Number Array. DoubleArray *GoogleCloudIntegrationsV1alphaDoubleParameterArray `json:"doubleArray,omitempty"` - // DoubleValue: Double Number. DoubleValue float64 `json:"doubleValue,omitempty"` - // IntArray: Integer Array. IntArray *GoogleCloudIntegrationsV1alphaIntParameterArray `json:"intArray,omitempty"` - // IntValue: Integer. IntValue int64 `json:"intValue,omitempty,string"` - // JsonValue: Json. JsonValue string `json:"jsonValue,omitempty"` - // StringArray: String Array. StringArray *GoogleCloudIntegrationsV1alphaStringParameterArray `json:"stringArray,omitempty"` - // StringValue: String. StringValue string `json:"stringValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "BooleanArray") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanArray") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanArray") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaValueType) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaValueType) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaValueType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleCloudIntegrationsV1alphaValueType) UnmarshalJSON(data []byte) error { @@ -11417,113 +9167,90 @@ func (s *GoogleCloudIntegrationsV1alphaValueType) UnmarshalJSON(data []byte) err return nil } -// GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest: Use -// this request to post all workflows associated with a given trigger -// id. Next available id: 10 +// GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest: Use this +// request to post all workflows associated with a given trigger id. Next +// available id: 10 type GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest struct { - // ClientId: Optional. If the client id is provided, then the - // combination of trigger id and client id is matched across all the - // workflows. If the client id is not provided, then workflows with - // matching trigger id are executed for each client id in the {@link - // TriggerConfig}. For Api Trigger, the client id is required and will - // be validated against the allowed clients. + // ClientId: Optional. If the client id is provided, then the combination of + // trigger id and client id is matched across all the workflows. If the client + // id is not provided, then workflows with matching trigger id are executed for + // each client id in the {@link TriggerConfig}. For Api Trigger, the client id + // is required and will be validated against the allowed clients. ClientId string `json:"clientId,omitempty"` - - // IgnoreErrorIfNoActiveWorkflow: Optional. Flag to determine whether - // clients would suppress a warning when no ACTIVE workflows are not - // found. If this flag is set to be true, an error will not be thrown if - // the requested trigger_id or client_id is not found in any ACTIVE - // workflow. Otherwise, the error is always thrown. The flag is set to - // be false by default. + // IgnoreErrorIfNoActiveWorkflow: Optional. Flag to determine whether clients + // would suppress a warning when no ACTIVE workflows are not found. If this + // flag is set to be true, an error will not be thrown if the requested + // trigger_id or client_id is not found in any ACTIVE workflow. Otherwise, the + // error is always thrown. The flag is set to be false by default. IgnoreErrorIfNoActiveWorkflow bool `json:"ignoreErrorIfNoActiveWorkflow,omitempty"` - - // Parameters: Passed in as parameters to each workflow execution. - // Optional. + // Parameters: Passed in as parameters to each workflow execution. Optional. Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` - - // Priority: The request priority this request should be processed at. - // For internal users: + // Priority: The request priority this request should be processed at. For + // internal users: // // Possible values: // "UNSPCIFIED" - Unspecified - // "SHEDDABLE" - Frequent partial and occasional full unavailability - // is expected and not pageable. * Requests to this band will be shed - // before all other requests. * This is the default for async calls sent - // from batch jobs. + // "SHEDDABLE" - Frequent partial and occasional full unavailability is + // expected and not pageable. * Requests to this band will be shed before all + // other requests. * This is the default for async calls sent from batch jobs. // "SHEDDABLE_PLUS" - Partial unavailability is expected and is not // necessarily pageable. * Requests to this band will be shed before any - // critical traffic. * This is the default for async calls sent from - // production jobs. - // "CRITICAL" - Any outage is a pageable event. * During a production - // outage requests in this band will only be shed before CRITICAL_PLUS. - // * This is the default for sync calls sent from production jobs. - // "CRITICAL_PLUS" - Any outage is a pageable event. * The guideline - // is for < 10% of requests to a service to be in this band. * During a - // production outage requests in this band will be prioritized above all - // others. * Opt-in to CRITICAL_PLUS when your workflow triggers by - // human. + // critical traffic. * This is the default for async calls sent from production + // jobs. + // "CRITICAL" - Any outage is a pageable event. * During a production outage + // requests in this band will only be shed before CRITICAL_PLUS. * This is the + // default for sync calls sent from production jobs. + // "CRITICAL_PLUS" - Any outage is a pageable event. * The guideline is for < + // 10% of requests to a service to be in this band. * During a production + // outage requests in this band will be prioritized above all others. * Opt-in + // to CRITICAL_PLUS when your workflow triggers by human. Priority string `json:"priority,omitempty"` - // RequestId: Optional. This is used to de-dup incoming request: if the - // duplicate request was detected, the response from the previous - // execution is returned. Must have no more than 36 characters and - // contain only alphanumeric characters and hyphens. + // duplicate request was detected, the response from the previous execution is + // returned. Must have no more than 36 characters and contain only alphanumeric + // characters and hyphens. RequestId string `json:"requestId,omitempty"` - - // ScheduledTime: Optional. Time in milliseconds since epoch when the - // given event would be scheduled. + // ScheduledTime: Optional. Time in milliseconds since epoch when the given + // event would be scheduled. ScheduledTime int64 `json:"scheduledTime,omitempty,string"` - // TestMode: Optional. Sets test mode in {@link // enterprise/crm/eventbus/event_message.proto}. TestMode bool `json:"testMode,omitempty"` - - // TriggerId: Matched against all {@link TriggerConfig}s across all - // workflows. i.e. TriggerConfig.trigger_id.equals(trigger_id) Required. + // TriggerId: Matched against all {@link TriggerConfig}s across all workflows. + // i.e. TriggerConfig.trigger_id.equals(trigger_id) Required. TriggerId string `json:"triggerId,omitempty"` - - // WorkflowName: Optional. If provided, the workflow_name is used to - // filter all the matched workflows having same trigger_id+client_id. A - // combination of trigger_id, client_id and workflow_name identifies a - // unique workflow. + // WorkflowName: Optional. If provided, the workflow_name is used to filter all + // the matched workflows having same trigger_id+client_id. A combination of + // trigger_id, client_id and workflow_name identifies a unique workflow. WorkflowName string `json:"workflowName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest) MarshalJSON() ([]byte, error) { +func (s GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleProtobufEmpty: A generic empty message that you can re-use to -// avoid defining duplicated empty messages in your APIs. A typical -// example is to use it as the request or the response type of an API -// method. For instance: service Foo { rpc Bar(google.protobuf.Empty) -// returns (google.protobuf.Empty); } +// GoogleProtobufEmpty: A generic empty message that you can re-use to avoid +// defining duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For instance: +// service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } type GoogleProtobufEmpty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// method id "integrations.callback.generateToken": - type CallbackGenerateTokenCall struct { s *Service urlParams_ gensupport.URLParams @@ -11532,31 +9259,29 @@ type CallbackGenerateTokenCall struct { header_ http.Header } -// GenerateToken: Receives the auth code and auth config id to combine -// that with the client id and secret to retrieve access tokens from the -// token endpoint. Returns either a success or error message when it's -// done. +// GenerateToken: Receives the auth code and auth config id to combine that +// with the client id and secret to retrieve access tokens from the token +// endpoint. Returns either a success or error message when it's done. func (r *CallbackService) GenerateToken() *CallbackGenerateTokenCall { c := &CallbackGenerateTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// Code sets the optional parameter "code": The auth code for the given -// request +// Code sets the optional parameter "code": The auth code for the given request func (c *CallbackGenerateTokenCall) Code(code string) *CallbackGenerateTokenCall { c.urlParams_.Set("code", code) return c } -// GcpProjectId sets the optional parameter "gcpProjectId": The gcp -// project id of the request +// GcpProjectId sets the optional parameter "gcpProjectId": The gcp project id +// of the request func (c *CallbackGenerateTokenCall) GcpProjectId(gcpProjectId string) *CallbackGenerateTokenCall { c.urlParams_.Set("gcpProjectId", gcpProjectId) return c } -// Product sets the optional parameter "product": Which product sends -// the request +// Product sets the optional parameter "product": Which product sends the +// request // // Possible values: // @@ -11569,48 +9294,44 @@ func (c *CallbackGenerateTokenCall) Product(product string) *CallbackGenerateTok return c } -// RedirectUri sets the optional parameter "redirectUri": Redirect uri -// of the auth code request +// RedirectUri sets the optional parameter "redirectUri": Redirect uri of the +// auth code request func (c *CallbackGenerateTokenCall) RedirectUri(redirectUri string) *CallbackGenerateTokenCall { c.urlParams_.Set("redirectUri", redirectUri) return c } -// State sets the optional parameter "state": The auth config id for the -// given request +// State sets the optional parameter "state": The auth config id for the given +// request func (c *CallbackGenerateTokenCall) State(state string) *CallbackGenerateTokenCall { c.urlParams_.Set("state", state) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CallbackGenerateTokenCall) Fields(s ...googleapi.Field) *CallbackGenerateTokenCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CallbackGenerateTokenCall) IfNoneMatch(entityTag string) *CallbackGenerateTokenCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CallbackGenerateTokenCall) Context(ctx context.Context) *CallbackGenerateTokenCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CallbackGenerateTokenCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11619,12 +9340,7 @@ func (c *CallbackGenerateTokenCall) Header() http.Header { } func (c *CallbackGenerateTokenCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11638,18 +9354,15 @@ func (c *CallbackGenerateTokenCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.callback.generateToken" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaGenerateTokenResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaGenerateTokenResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaGenerateTokenResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CallbackGenerateTokenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaGenerateTokenResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11680,63 +9393,7 @@ func (c *CallbackGenerateTokenCall) Do(opts ...googleapi.CallOption) (*GoogleClo return nil, err } return ret, nil - // { - // "description": "Receives the auth code and auth config id to combine that with the client id and secret to retrieve access tokens from the token endpoint. Returns either a success or error message when it's done.", - // "flatPath": "v1/callback:generateToken", - // "httpMethod": "GET", - // "id": "integrations.callback.generateToken", - // "parameterOrder": [], - // "parameters": { - // "code": { - // "description": "The auth code for the given request", - // "location": "query", - // "type": "string" - // }, - // "gcpProjectId": { - // "description": "The gcp project id of the request", - // "location": "query", - // "type": "string" - // }, - // "product": { - // "description": "Which product sends the request", - // "enum": [ - // "UNSPECIFIED_PRODUCT", - // "IP", - // "APIGEE", - // "SECURITY" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "redirectUri": { - // "description": "Redirect uri of the auth code request", - // "location": "query", - // "type": "string" - // }, - // "state": { - // "description": "The auth config id for the given request", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/callback:generateToken", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaGenerateTokenResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.connectorPlatformRegions.enumerate": +} type ConnectorPlatformRegionsEnumerateCall struct { s *Service @@ -11754,33 +9411,29 @@ func (r *ConnectorPlatformRegionsService) Enumerate() *ConnectorPlatformRegionsE } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectorPlatformRegionsEnumerateCall) Fields(s ...googleapi.Field) *ConnectorPlatformRegionsEnumerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectorPlatformRegionsEnumerateCall) IfNoneMatch(entityTag string) *ConnectorPlatformRegionsEnumerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectorPlatformRegionsEnumerateCall) Context(ctx context.Context) *ConnectorPlatformRegionsEnumerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectorPlatformRegionsEnumerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11789,12 +9442,7 @@ func (c *ConnectorPlatformRegionsEnumerateCall) Header() http.Header { } func (c *ConnectorPlatformRegionsEnumerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11808,19 +9456,15 @@ func (c *ConnectorPlatformRegionsEnumerateCall) doRequest(alt string) (*http.Res return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.connectorPlatformRegions.enumerate" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsRespon -// se or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsRespon -// se.ServerResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse.Serv +// erResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ConnectorPlatformRegionsEnumerateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11851,25 +9495,7 @@ func (c *ConnectorPlatformRegionsEnumerateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Enumerates the regions for which Connector Platform is provisioned.", - // "flatPath": "v1/connectorPlatformRegions:enumerate", - // "httpMethod": "GET", - // "id": "integrations.connectorPlatformRegions.enumerate", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1/connectorPlatformRegions:enumerate", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.getClientmetadata": +} type ProjectsGetClientmetadataCall struct { s *Service @@ -11890,33 +9516,29 @@ func (r *ProjectsService) GetClientmetadata(parent string) *ProjectsGetClientmet } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsGetClientmetadataCall) Fields(s ...googleapi.Field) *ProjectsGetClientmetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsGetClientmetadataCall) IfNoneMatch(entityTag string) *ProjectsGetClientmetadataCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsGetClientmetadataCall) Context(ctx context.Context) *ProjectsGetClientmetadataCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsGetClientmetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11925,12 +9547,7 @@ func (c *ProjectsGetClientmetadataCall) Header() http.Header { } func (c *ProjectsGetClientmetadataCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11947,19 +9564,15 @@ func (c *ProjectsGetClientmetadataCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.getClientmetadata" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaGetClientMetadataResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaGetClientMetadataResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaGetClientMetadataResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsGetClientmetadataCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaGetClientMetadataResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11990,35 +9603,7 @@ func (c *ProjectsGetClientmetadataCall) Do(opts ...googleapi.CallOption) (*Googl return nil, err } return ret, nil - // { - // "description": "Gets the metadata info for the requested client", - // "flatPath": "v1/projects/{projectsId}/clientmetadata", - // "httpMethod": "GET", - // "id": "integrations.projects.getClientmetadata", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Required: The ID of the GCP Project to be provisioned.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/clientmetadata", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaGetClientMetadataResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.getClients": +} type ProjectsLocationsGetClientsCall struct { s *Service @@ -12029,8 +9614,8 @@ type ProjectsLocationsGetClientsCall struct { header_ http.Header } -// GetClients: Gets the client configuration for the given project and -// location resource name +// GetClients: Gets the client configuration for the given project and location +// resource name // // - parent: Required: The ID of the GCP Project to be provisioned. func (r *ProjectsLocationsService) GetClients(parent string) *ProjectsLocationsGetClientsCall { @@ -12040,33 +9625,29 @@ func (r *ProjectsLocationsService) GetClients(parent string) *ProjectsLocationsG } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsGetClientsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetClientsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsGetClientsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetClientsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsGetClientsCall) Context(ctx context.Context) *ProjectsLocationsGetClientsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsGetClientsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12075,12 +9656,7 @@ func (c *ProjectsLocationsGetClientsCall) Header() http.Header { } func (c *ProjectsLocationsGetClientsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12097,20 +9673,15 @@ func (c *ProjectsLocationsGetClientsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } -// Do executes the "integrations.projects.locations.getClients" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaGetClientResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaGetClientResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Do executes the "integrations.projects.locations.getClients" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaGetClientResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsGetClientsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaGetClientResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12141,35 +9712,7 @@ func (c *ProjectsLocationsGetClientsCall) Do(opts ...googleapi.CallOption) (*Goo return nil, err } return ret, nil - // { - // "description": "Gets the client configuration for the given project and location resource name", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clients", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.getClients", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Required: The ID of the GCP Project to be provisioned.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/clients", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaGetClientResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.listTaskEntities": +} type ProjectsLocationsListTaskEntitiesCall struct { s *Service @@ -12180,11 +9723,11 @@ type ProjectsLocationsListTaskEntitiesCall struct { header_ http.Header } -// ListTaskEntities: This is a UI only method and will be moved away. -// Returns a list of common tasks. +// ListTaskEntities: This is a UI only method and will be moved away. Returns a +// list of common tasks. // -// - parent: The location resource of the request. This is not going to -// be used but preserve the field for future. +// - parent: The location resource of the request. This is not going to be used +// but preserve the field for future. func (r *ProjectsLocationsService) ListTaskEntities(parent string) *ProjectsLocationsListTaskEntitiesCall { c := &ProjectsLocationsListTaskEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -12192,33 +9735,29 @@ func (r *ProjectsLocationsService) ListTaskEntities(parent string) *ProjectsLoca } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsListTaskEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsListTaskEntitiesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsListTaskEntitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsListTaskEntitiesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsListTaskEntitiesCall) Context(ctx context.Context) *ProjectsLocationsListTaskEntitiesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsListTaskEntitiesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12227,12 +9766,7 @@ func (c *ProjectsLocationsListTaskEntitiesCall) Header() http.Header { } func (c *ProjectsLocationsListTaskEntitiesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12249,19 +9783,17 @@ func (c *ProjectsLocationsListTaskEntitiesCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.listTaskEntities" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsListTaskEntitiesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12292,35 +9824,7 @@ func (c *ProjectsLocationsListTaskEntitiesCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:listTaskEntities", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.listTaskEntities", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The location resource of the request. This is not going to be used but preserve the field for future.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:listTaskEntities", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.appsScriptProjects.create": +} type ProjectsLocationsAppsScriptProjectsCreateCall struct { s *Service @@ -12342,23 +9846,21 @@ func (r *ProjectsLocationsAppsScriptProjectsService) Create(parent string, googl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsScriptProjectsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsScriptProjectsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12367,18 +9869,12 @@ func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Header() http.Header { } func (c *ProjectsLocationsAppsScriptProjectsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacreateappsscriptprojectrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appsScriptProjects") @@ -12391,19 +9887,15 @@ func (c *ProjectsLocationsAppsScriptProjectsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.appsScriptProjects.create" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse.ServerR -// esponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12434,38 +9926,7 @@ func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Creates an Apps Script project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/appsScriptProjects", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.appsScriptProjects.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The project that the executed integration belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/appsScriptProjects", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.appsScriptProjects.link": +} type ProjectsLocationsAppsScriptProjectsLinkCall struct { s *Service @@ -12487,23 +9948,21 @@ func (r *ProjectsLocationsAppsScriptProjectsService) Link(parent string, googlec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsScriptProjectsLinkCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Context(ctx context.Context) *ProjectsLocationsAppsScriptProjectsLinkCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12512,18 +9971,12 @@ func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Header() http.Header { } func (c *ProjectsLocationsAppsScriptProjectsLinkCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphalinkappsscriptprojectrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appsScriptProjects:link") @@ -12536,19 +9989,15 @@ func (c *ProjectsLocationsAppsScriptProjectsLinkCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.appsScriptProjects.link" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse.ServerRes -// ponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse.ServerResponse.H +// eader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12579,38 +10028,7 @@ func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Links a existing Apps Script project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/appsScriptProjects:link", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.appsScriptProjects.link", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The project that the executed integration belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/appsScriptProjects:link", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.authConfigs.create": +} type ProjectsLocationsAuthConfigsCreateCall struct { s *Service @@ -12621,11 +10039,10 @@ type ProjectsLocationsAuthConfigsCreateCall struct { header_ http.Header } -// Create: Creates an auth config record. Fetch corresponding -// credentials for specific auth types, e.g. access token for OAuth 2.0, -// JWT token for JWT. Encrypt the auth config with Cloud KMS and store -// the encrypted credentials in Spanner. Returns the encrypted auth -// config. +// Create: Creates an auth config record. Fetch corresponding credentials for +// specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. +// Encrypt the auth config with Cloud KMS and store the encrypted credentials +// in Spanner. Returns the encrypted auth config. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsAuthConfigsService) Create(parent string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsAuthConfigsCreateCall { @@ -12636,9 +10053,9 @@ func (r *ProjectsLocationsAuthConfigsService) Create(parent string, googlecloudi } // ClientCertificateEncryptedPrivateKey sets the optional parameter -// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded -// in PEM format. This string must include the begin header and end -// footer lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -12658,19 +10075,18 @@ func (c *ProjectsLocationsAuthConfigsCreateCall) ClientCertificateEncryptedPriva } // ClientCertificatePassphrase sets the optional parameter -// "clientCertificate.passphrase": 'passphrase' should be left unset if -// private key is not encrypted. Note that 'passphrase' is not the -// password for web server, but an extra layer of security to protected -// private key. +// "clientCertificate.passphrase": 'passphrase' should be left unset if private +// key is not encrypted. Note that 'passphrase' is not the password for web +// server, but an extra layer of security to protected private key. func (c *ProjectsLocationsAuthConfigsCreateCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsAuthConfigsCreateCall { c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) return c } // ClientCertificateSslCertificate sets the optional parameter -// "clientCertificate.sslCertificate": The ssl certificate encoded in -// PEM format. This string must include the begin header and end footer -// lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.sslCertificate": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -12690,23 +10106,21 @@ func (c *ProjectsLocationsAuthConfigsCreateCall) ClientCertificateSslCertificate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAuthConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAuthConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAuthConfigsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12715,18 +10129,12 @@ func (c *ProjectsLocationsAuthConfigsCreateCall) Header() http.Header { } func (c *ProjectsLocationsAuthConfigsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authConfigs") @@ -12739,18 +10147,15 @@ func (c *ProjectsLocationsAuthConfigsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.authConfigs.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsAuthConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12781,53 +10186,7 @@ func (c *ProjectsLocationsAuthConfigsCreateCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.authConfigs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "clientCertificate.encryptedPrivateKey": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.passphrase": { - // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.sslCertificate": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/authConfigs", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.authConfigs.delete": +} type ProjectsLocationsAuthConfigsDeleteCall struct { s *Service @@ -12847,23 +10206,21 @@ func (r *ProjectsLocationsAuthConfigsService) Delete(name string) *ProjectsLocat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAuthConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAuthConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAuthConfigsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12872,12 +10229,7 @@ func (c *ProjectsLocationsAuthConfigsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsAuthConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -12891,16 +10243,15 @@ func (c *ProjectsLocationsAuthConfigsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.authConfigs.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsAuthConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12931,35 +10282,7 @@ func (c *ProjectsLocationsAuthConfigsDeleteCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Deletes an auth config.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.authConfigs.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the AuthConfig.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.authConfigs.get": +} type ProjectsLocationsAuthConfigsGetCall struct { s *Service @@ -12971,8 +10294,7 @@ type ProjectsLocationsAuthConfigsGetCall struct { } // Get: Gets a complete auth config. If the auth config doesn't exist, -// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth -// config. +// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config. // // - name: The name that is associated with the AuthConfig. func (r *ProjectsLocationsAuthConfigsService) Get(name string) *ProjectsLocationsAuthConfigsGetCall { @@ -12982,33 +10304,29 @@ func (r *ProjectsLocationsAuthConfigsService) Get(name string) *ProjectsLocation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAuthConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsAuthConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthConfigsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAuthConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAuthConfigsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13017,12 +10335,7 @@ func (c *ProjectsLocationsAuthConfigsGetCall) Header() http.Header { } func (c *ProjectsLocationsAuthConfigsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13039,18 +10352,15 @@ func (c *ProjectsLocationsAuthConfigsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.authConfigs.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsAuthConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13081,35 +10391,7 @@ func (c *ProjectsLocationsAuthConfigsGetCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.authConfigs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the AuthConfig.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.authConfigs.list": +} type ProjectsLocationsAuthConfigsListCall struct { s *Service @@ -13120,8 +10402,8 @@ type ProjectsLocationsAuthConfigsListCall struct { header_ http.Header } -// List: Lists all auth configs that match the filter. Restrict to auth -// configs belong to the current client only. +// List: Lists all auth configs that match the filter. Restrict to auth configs +// belong to the current client only. // // - parent: The client, which owns this collection of AuthConfigs. func (r *ProjectsLocationsAuthConfigsService) List(parent string) *ProjectsLocationsAuthConfigsListCall { @@ -13130,64 +10412,58 @@ func (r *ProjectsLocationsAuthConfigsService) List(parent string) *ProjectsLocat return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. func (c *ProjectsLocationsAuthConfigsListCall) Filter(filter string) *ProjectsLocationsAuthConfigsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsAuthConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthConfigsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsAuthConfigsListCall) PageToken(pageToken string) *ProjectsLocationsAuthConfigsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the AuthConfig's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the AuthConfig's response. func (c *ProjectsLocationsAuthConfigsListCall) ReadMask(readMask string) *ProjectsLocationsAuthConfigsListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAuthConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsAuthConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthConfigsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAuthConfigsListCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAuthConfigsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13196,12 +10472,7 @@ func (c *ProjectsLocationsAuthConfigsListCall) Header() http.Header { } func (c *ProjectsLocationsAuthConfigsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13218,18 +10489,15 @@ func (c *ProjectsLocationsAuthConfigsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.authConfigs.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsAuthConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13260,54 +10528,6 @@ func (c *ProjectsLocationsAuthConfigsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.authConfigs.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of AuthConfigs.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the AuthConfig's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/authConfigs", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -13315,7 +10535,7 @@ func (c *ProjectsLocationsAuthConfigsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsAuthConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -13331,8 +10551,6 @@ func (c *ProjectsLocationsAuthConfigsListCall) Pages(ctx context.Context, f func } } -// method id "integrations.projects.locations.authConfigs.patch": - type ProjectsLocationsAuthConfigsPatchCall struct { s *Service name string @@ -13342,11 +10560,11 @@ type ProjectsLocationsAuthConfigsPatchCall struct { header_ http.Header } -// Patch: Updates an auth config. If credential is updated, fetch the -// encrypted auth config from Spanner, decrypt with Cloud KMS key, -// update the credential fields, re-encrypt with Cloud KMS key and -// update the Spanner record. For other fields, directly update the -// Spanner record. Returns the encrypted auth config. +// Patch: Updates an auth config. If credential is updated, fetch the encrypted +// auth config from Spanner, decrypt with Cloud KMS key, update the credential +// fields, re-encrypt with Cloud KMS key and update the Spanner record. For +// other fields, directly update the Spanner record. Returns the encrypted auth +// config. // // - name: Resource name of the SFDC instance // projects/{project}/locations/{location}/authConfigs/{authConfig}. @@ -13358,9 +10576,9 @@ func (r *ProjectsLocationsAuthConfigsService) Patch(name string, googlecloudinte } // ClientCertificateEncryptedPrivateKey sets the optional parameter -// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded -// in PEM format. This string must include the begin header and end -// footer lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -13380,19 +10598,18 @@ func (c *ProjectsLocationsAuthConfigsPatchCall) ClientCertificateEncryptedPrivat } // ClientCertificatePassphrase sets the optional parameter -// "clientCertificate.passphrase": 'passphrase' should be left unset if -// private key is not encrypted. Note that 'passphrase' is not the -// password for web server, but an extra layer of security to protected -// private key. +// "clientCertificate.passphrase": 'passphrase' should be left unset if private +// key is not encrypted. Note that 'passphrase' is not the password for web +// server, but an extra layer of security to protected private key. func (c *ProjectsLocationsAuthConfigsPatchCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsAuthConfigsPatchCall { c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) return c } // ClientCertificateSslCertificate sets the optional parameter -// "clientCertificate.sslCertificate": The ssl certificate encoded in -// PEM format. This string must include the begin header and end footer -// lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.sslCertificate": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -13411,32 +10628,30 @@ func (c *ProjectsLocationsAuthConfigsPatchCall) ClientCertificateSslCertificate( return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above AuthConfig that have been modified -// and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above AuthConfig that have been modified and need to be +// updated. func (c *ProjectsLocationsAuthConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthConfigsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAuthConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAuthConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAuthConfigsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13445,18 +10660,12 @@ func (c *ProjectsLocationsAuthConfigsPatchCall) Header() http.Header { } func (c *ProjectsLocationsAuthConfigsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -13469,18 +10678,15 @@ func (c *ProjectsLocationsAuthConfigsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.authConfigs.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsAuthConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13511,59 +10717,7 @@ func (c *ProjectsLocationsAuthConfigsPatchCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.authConfigs.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "clientCertificate.encryptedPrivateKey": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.passphrase": { - // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.sslCertificate": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.certificates.create": +} type ProjectsLocationsCertificatesCreateCall struct { s *Service @@ -13574,9 +10728,9 @@ type ProjectsLocationsCertificatesCreateCall struct { header_ http.Header } -// Create: Creates a new certificate. The certificate will be registered -// to the trawler service and will be encrypted using cloud KMS and -// stored in Spanner Returns the certificate. +// Create: Creates a new certificate. The certificate will be registered to the +// trawler service and will be encrypted using cloud KMS and stored in Spanner +// Returns the certificate. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsCertificatesService) Create(parent string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsCertificatesCreateCall { @@ -13587,23 +10741,21 @@ func (r *ProjectsLocationsCertificatesService) Create(parent string, googlecloud } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsCertificatesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCertificatesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13612,18 +10764,12 @@ func (c *ProjectsLocationsCertificatesCreateCall) Header() http.Header { } func (c *ProjectsLocationsCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/certificates") @@ -13636,18 +10782,15 @@ func (c *ProjectsLocationsCertificatesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.certificates.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13678,38 +10821,7 @@ func (c *ProjectsLocationsCertificatesCreateCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.certificates.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/certificates", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.certificates.delete": +} type ProjectsLocationsCertificatesDeleteCall struct { s *Service @@ -13729,23 +10841,21 @@ func (r *ProjectsLocationsCertificatesService) Delete(name string) *ProjectsLoca } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCertificatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCertificatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCertificatesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCertificatesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13754,12 +10864,7 @@ func (c *ProjectsLocationsCertificatesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -13773,16 +10878,15 @@ func (c *ProjectsLocationsCertificatesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.certificates.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13813,35 +10917,7 @@ func (c *ProjectsLocationsCertificatesDeleteCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Delete a certificate", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates/{certificatesId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.certificates.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the Certificate.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.certificates.get": +} type ProjectsLocationsCertificatesGetCall struct { s *Service @@ -13863,33 +10939,29 @@ func (r *ProjectsLocationsCertificatesService) Get(name string) *ProjectsLocatio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCertificatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13898,12 +10970,7 @@ func (c *ProjectsLocationsCertificatesGetCall) Header() http.Header { } func (c *ProjectsLocationsCertificatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13920,18 +10987,15 @@ func (c *ProjectsLocationsCertificatesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.certificates.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsCertificatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13962,35 +11026,7 @@ func (c *ProjectsLocationsCertificatesGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Get a certificates in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates/{certificatesId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.certificates.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.certificates.list": +} type ProjectsLocationsCertificatesListCall struct { s *Service @@ -14011,64 +11047,58 @@ func (r *ProjectsLocationsCertificatesService) List(parent string) *ProjectsLoca return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. func (c *ProjectsLocationsCertificatesListCall) Filter(filter string) *ProjectsLocationsCertificatesListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsCertificatesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsCertificatesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the Certificate's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the Certificate's response. func (c *ProjectsLocationsCertificatesListCall) ReadMask(readMask string) *ProjectsLocationsCertificatesListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsCertificatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCertificatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14077,12 +11107,7 @@ func (c *ProjectsLocationsCertificatesListCall) Header() http.Header { } func (c *ProjectsLocationsCertificatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14099,19 +11124,17 @@ func (c *ProjectsLocationsCertificatesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.certificates.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListCertificatesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListCertificatesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListCertificatesResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsCertificatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListCertificatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14142,54 +11165,6 @@ func (c *ProjectsLocationsCertificatesListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "List all the certificates that match the filter. Restrict to certificate of current client only.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.certificates.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of Certificates.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the Certificate's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/certificates", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListCertificatesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -14197,7 +11172,7 @@ func (c *ProjectsLocationsCertificatesListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsCertificatesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListCertificatesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -14213,8 +11188,6 @@ func (c *ProjectsLocationsCertificatesListCall) Pages(ctx context.Context, f fun } } -// method id "integrations.projects.locations.certificates.patch": - type ProjectsLocationsCertificatesPatchCall struct { s *Service name string @@ -14224,10 +11197,10 @@ type ProjectsLocationsCertificatesPatchCall struct { header_ http.Header } -// Patch: Updates the certificate by id. If new certificate file is -// updated, it will register with the trawler service, re-encrypt with -// cloud KMS and update the Spanner record. Other fields will directly -// update the Spanner record. Returns the Certificate. +// Patch: Updates the certificate by id. If new certificate file is updated, it +// will register with the trawler service, re-encrypt with cloud KMS and update +// the Spanner record. Other fields will directly update the Spanner record. +// Returns the Certificate. // // - name: Output only. Auto generated primary key. func (r *ProjectsLocationsCertificatesService) Patch(name string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsCertificatesPatchCall { @@ -14237,32 +11210,30 @@ func (r *ProjectsLocationsCertificatesService) Patch(name string, googlecloudint return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above Certificate that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above Certificate that have been modified and need to be +// updated. func (c *ProjectsLocationsCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificatesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCertificatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14271,18 +11242,12 @@ func (c *ProjectsLocationsCertificatesPatchCall) Header() http.Header { } func (c *ProjectsLocationsCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -14295,18 +11260,15 @@ func (c *ProjectsLocationsCertificatesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.certificates.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14337,44 +11299,7 @@ func (c *ProjectsLocationsCertificatesPatchCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/certificates/{certificatesId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.certificates.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Auto generated primary key", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above Certificate that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.clients.deprovision": +} type ProjectsLocationsClientsDeprovisionCall struct { s *Service @@ -14385,9 +11310,8 @@ type ProjectsLocationsClientsDeprovisionCall struct { header_ http.Header } -// Deprovision: Perform the deprovisioning steps to disable a user GCP -// project to use IP and purge all related data in a wipeout-compliant -// way. +// Deprovision: Perform the deprovisioning steps to disable a user GCP project +// to use IP and purge all related data in a wipeout-compliant way. // // - parent: Required: The ID of the GCP Project to be deprovisioned. func (r *ProjectsLocationsClientsService) Deprovision(parent string, googlecloudintegrationsv1alphadeprovisionclientrequest *GoogleCloudIntegrationsV1alphaDeprovisionClientRequest) *ProjectsLocationsClientsDeprovisionCall { @@ -14398,23 +11322,21 @@ func (r *ProjectsLocationsClientsService) Deprovision(parent string, googlecloud } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsClientsDeprovisionCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientsDeprovisionCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsClientsDeprovisionCall) Context(ctx context.Context) *ProjectsLocationsClientsDeprovisionCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsClientsDeprovisionCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14423,18 +11345,12 @@ func (c *ProjectsLocationsClientsDeprovisionCall) Header() http.Header { } func (c *ProjectsLocationsClientsDeprovisionCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphadeprovisionclientrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clients:deprovision") @@ -14447,16 +11363,15 @@ func (c *ProjectsLocationsClientsDeprovisionCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.clients.deprovision" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsClientsDeprovisionCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14487,38 +11402,7 @@ func (c *ProjectsLocationsClientsDeprovisionCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Perform the deprovisioning steps to disable a user GCP project to use IP and purge all related data in a wipeout-compliant way.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clients:deprovision", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.clients.deprovision", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Required: The ID of the GCP Project to be deprovisioned.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/clients:deprovision", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaDeprovisionClientRequest" - // }, - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.clients.provision": +} type ProjectsLocationsClientsProvisionCall struct { s *Service @@ -14529,9 +11413,9 @@ type ProjectsLocationsClientsProvisionCall struct { header_ http.Header } -// Provision: Perform the provisioning steps to enable a user GCP -// project to use IP. If GCP project already registered on IP end via -// Apigee Integration, provisioning will fail. +// Provision: Perform the provisioning steps to enable a user GCP project to +// use IP. If GCP project already registered on IP end via Apigee Integration, +// provisioning will fail. // // - parent: Required: The ID of the GCP Project to be provisioned. func (r *ProjectsLocationsClientsService) Provision(parent string, googlecloudintegrationsv1alphaprovisionclientrequest *GoogleCloudIntegrationsV1alphaProvisionClientRequest) *ProjectsLocationsClientsProvisionCall { @@ -14542,23 +11426,21 @@ func (r *ProjectsLocationsClientsService) Provision(parent string, googlecloudin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsClientsProvisionCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientsProvisionCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsClientsProvisionCall) Context(ctx context.Context) *ProjectsLocationsClientsProvisionCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsClientsProvisionCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14567,18 +11449,12 @@ func (c *ProjectsLocationsClientsProvisionCall) Header() http.Header { } func (c *ProjectsLocationsClientsProvisionCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaprovisionclientrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clients:provision") @@ -14591,16 +11467,15 @@ func (c *ProjectsLocationsClientsProvisionCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.clients.provision" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsClientsProvisionCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14631,38 +11506,7 @@ func (c *ProjectsLocationsClientsProvisionCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Perform the provisioning steps to enable a user GCP project to use IP. If GCP project already registered on IP end via Apigee Integration, provisioning will fail.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clients:provision", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.clients.provision", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Required: The ID of the GCP Project to be provisioned.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/clients:provision", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaProvisionClientRequest" - // }, - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.cloudFunctions.create": +} type ProjectsLocationsCloudFunctionsCreateCall struct { s *Service @@ -14684,23 +11528,21 @@ func (r *ProjectsLocationsCloudFunctionsService) Create(parent string, googleclo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCloudFunctionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudFunctionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCloudFunctionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCloudFunctionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCloudFunctionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14709,18 +11551,12 @@ func (c *ProjectsLocationsCloudFunctionsCreateCall) Header() http.Header { } func (c *ProjectsLocationsCloudFunctionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacreatecloudfunctionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudFunctions") @@ -14733,19 +11569,15 @@ func (c *ProjectsLocationsCloudFunctionsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.cloudFunctions.create" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse.ServerRespo -// nse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse.ServerResponse.Hea +// der or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsCloudFunctionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14776,38 +11608,7 @@ func (c *ProjectsLocationsCloudFunctionsCreateCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Creates an cloud function project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudFunctions", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.cloudFunctions.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The project that the executed integration belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/cloudFunctions", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.connections.getConnectionSchemaMetadata": +} type ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall struct { s *Service @@ -14822,8 +11623,8 @@ type ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall struct { // associated with a Connection. // // - name: ConnectionSchemaMetadata name. Format: -// projects/{project}/locations/{location}/connections/{connection}/con -// nectionSchemaMetadata. +// projects/{project}/locations/{location}/connections/{connection}/connection +// SchemaMetadata. func (r *ProjectsLocationsConnectionsService) GetConnectionSchemaMetadata(name string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { c := &ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -14831,33 +11632,29 @@ func (r *ProjectsLocationsConnectionsService) GetConnectionSchemaMetadata(name s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14866,12 +11663,7 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Header() h } func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14888,19 +11680,17 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.connections.getConnectionSchemaMetadata" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14931,35 +11721,7 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Do(opts .. return nil, err } return ret, nil - // { - // "description": "Lists the available entities and actions associated with a Connection.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.connections.getConnectionSchemaMetadata", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. ConnectionSchemaMetadata name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/connectionSchemaMetadata$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.connections.list": +} type ProjectsLocationsConnectionsListCall struct { s *Service @@ -15005,33 +11767,29 @@ func (c *ProjectsLocationsConnectionsListCall) PageToken(pageToken string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsConnectionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15040,12 +11798,7 @@ func (c *ProjectsLocationsConnectionsListCall) Header() http.Header { } func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15062,18 +11815,15 @@ func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.connections.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListConnectionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListConnectionsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListConnectionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListConnectionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15104,53 +11854,6 @@ func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists Connections in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.connections.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Order by parameters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Parent resource of the Connection, of the form: `projects/*/locations/*`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/connections", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListConnectionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -15158,7 +11861,7 @@ func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListConnectionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15174,8 +11877,6 @@ func (c *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func } } -// method id "integrations.projects.locations.connections.runtimeActionSchemas.list": - type ProjectsLocationsConnectionsRuntimeActionSchemasListCall struct { s *Service parent string @@ -15185,8 +11886,8 @@ type ProjectsLocationsConnectionsRuntimeActionSchemasListCall struct { header_ http.Header } -// List: Lists the JSON schemas for the inputs and outputs of actions, -// filtered by action name. +// List: Lists the JSON schemas for the inputs and outputs of actions, filtered +// by action name. // // - parent: Parent resource of RuntimeActionSchema. Format: // projects/{project}/locations/{location}/connections/{connection}. @@ -15196,8 +11897,8 @@ func (r *ProjectsLocationsConnectionsRuntimeActionSchemasService) List(parent st return c } -// Filter sets the optional parameter "filter": Filter. Only the action -// field with literal equality operator is supported. +// Filter sets the optional parameter "filter": Filter. Only the action field +// with literal equality operator is supported. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Filter(filter string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { c.urlParams_.Set("filter", filter) return c @@ -15216,33 +11917,29 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) PageToken(pag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15251,12 +11948,7 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Header() http } func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15273,19 +11965,15 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.connections.runtimeActionSchemas.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15316,48 +12004,6 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Lists the JSON schemas for the inputs and outputs of actions, filtered by action name.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/runtimeActionSchemas", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.connections.runtimeActionSchemas.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter. Only the action field with literal equality operator is supported.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Parent resource of RuntimeActionSchema. Format: projects/{project}/locations/{location}/connections/{connection}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/runtimeActionSchemas", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -15365,7 +12011,7 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Do(opts ...go // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15381,8 +12027,6 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Pages(ctx con } } -// method id "integrations.projects.locations.connections.runtimeEntitySchemas.list": - type ProjectsLocationsConnectionsRuntimeEntitySchemasListCall struct { s *Service parent string @@ -15403,8 +12047,8 @@ func (r *ProjectsLocationsConnectionsRuntimeEntitySchemasService) List(parent st return c } -// Filter sets the optional parameter "filter": Filter. Only the entity -// field with literal equality operator is supported. +// Filter sets the optional parameter "filter": Filter. Only the entity field +// with literal equality operator is supported. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Filter(filter string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { c.urlParams_.Set("filter", filter) return c @@ -15423,33 +12067,29 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) PageToken(pag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15458,12 +12098,7 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Header() http } func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15480,19 +12115,15 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.connections.runtimeEntitySchemas.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15523,48 +12154,6 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Lists the JSON schemas for the properties of runtime entities, filtered by entity name.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/runtimeEntitySchemas", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.connections.runtimeEntitySchemas.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter. Only the entity field with literal equality operator is supported.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Parent resource of RuntimeEntitySchema. Format: projects/{project}/locations/{location}/connections/{connection}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/runtimeEntitySchemas", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -15572,7 +12161,7 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Do(opts ...go // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15588,8 +12177,6 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Pages(ctx con } } -// method id "integrations.projects.locations.integrations.delete": - type ProjectsLocationsIntegrationsDeleteCall struct { s *Service name string @@ -15608,23 +12195,21 @@ func (r *ProjectsLocationsIntegrationsService) Delete(name string) *ProjectsLoca } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15633,12 +12218,7 @@ func (c *ProjectsLocationsIntegrationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -15652,16 +12232,15 @@ func (c *ProjectsLocationsIntegrationsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsIntegrationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15692,35 +12271,7 @@ func (c *ProjectsLocationsIntegrationsDeleteCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Delete the selected integration and all versions inside", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.integrations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The location resource of the request.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.execute": +} type ProjectsLocationsIntegrationsExecuteCall struct { s *Service @@ -15731,13 +12282,13 @@ type ProjectsLocationsIntegrationsExecuteCall struct { header_ http.Header } -// Execute: Executes integrations synchronously by passing the trigger -// id in the request body. The request is not returned until the -// requested executions are either fulfilled or experienced an error. If -// the integration name is not specified (passing `-`), all of the -// associated integration under the given trigger_id will be executed. -// Otherwise only the specified integration for the given `trigger_id` -// is executed. This is helpful for execution the integration from UI. +// Execute: Executes integrations synchronously by passing the trigger id in +// the request body. The request is not returned until the requested executions +// are either fulfilled or experienced an error. If the integration name is not +// specified (passing `-`), all of the associated integration under the given +// trigger_id will be executed. Otherwise only the specified integration for +// the given `trigger_id` is executed. This is helpful for execution the +// integration from UI. // // - name: The integration resource name. func (r *ProjectsLocationsIntegrationsService) Execute(name string, googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) *ProjectsLocationsIntegrationsExecuteCall { @@ -15748,23 +12299,21 @@ func (r *ProjectsLocationsIntegrationsService) Execute(name string, googlecloudi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecuteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecuteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecuteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecuteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15773,18 +12322,12 @@ func (c *ProjectsLocationsIntegrationsExecuteCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsExecuteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaexecuteintegrationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:execute") @@ -15797,19 +12340,15 @@ func (c *ProjectsLocationsIntegrationsExecuteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.execute" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerRespo -// nse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerResponse.Hea +// der or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15840,38 +12379,7 @@ func (c *ProjectsLocationsIntegrationsExecuteCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:execute", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.execute", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The integration resource name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:execute", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.list": +} type ProjectsLocationsIntegrationsListCall struct { s *Service @@ -15884,8 +12392,8 @@ type ProjectsLocationsIntegrationsListCall struct { // List: Returns the list of all integrations in the specified project. // -// - parent: Project and location from which the integrations should be -// listed. Format: projects/{project}. +// - parent: Project and location from which the integrations should be listed. +// Format: projects/{project}. func (r *ProjectsLocationsIntegrationsService) List(parent string) *ProjectsLocationsIntegrationsListCall { c := &ProjectsLocationsIntegrationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -15893,69 +12401,65 @@ func (r *ProjectsLocationsIntegrationsService) List(parent string) *ProjectsLoca } // Filter sets the optional parameter "filter": Filter on fields of -// IntegrationVersion. Fields can be compared with literal values by use -// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), -// >=" (greater than or equal to), "<=" (less than or equal to), and -// "!=" (inequality) operators. Negation, conjunction, and disjunction -// are written using NOT, AND, and OR keywords. For example, -// organization_id=\"1\" AND state=ACTIVE AND description:"test". -// Filtering cannot be performed on repeated fields like `task_config`. +// IntegrationVersion. Fields can be compared with literal values by use of ":" +// (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater +// than or equal to), "<=" (less than or equal to), and "!=" (inequality) +// operators. Negation, conjunction, and disjunction are written using NOT, +// AND, and OR keywords. For example, organization_id=\"1\" AND state=ACTIVE +// AND description:"test". Filtering cannot be performed on repeated fields +// like `task_config`. func (c *ProjectsLocationsIntegrationsListCall) Filter(filter string) *ProjectsLocationsIntegrationsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Supported sort keys are: -// Descending sort order by "last_modified_time", "created_time", -// "snapshot_number". Ascending sort order by the integration name. +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Supported sort keys are: Descending sort order +// by "last_modified_time", "created_time", "snapshot_number". Ascending sort +// order by the integration name. func (c *ProjectsLocationsIntegrationsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The page size for -// the resquest. +// PageSize sets the optional parameter "pageSize": The page size for the +// resquest. func (c *ProjectsLocationsIntegrationsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token for -// the resquest. +// PageToken sets the optional parameter "pageToken": The page token for the +// resquest. func (c *ProjectsLocationsIntegrationsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15964,12 +12468,7 @@ func (c *ProjectsLocationsIntegrationsListCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15986,19 +12485,17 @@ func (c *ProjectsLocationsIntegrationsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16029,53 +12526,6 @@ func (c *ProjectsLocationsIntegrationsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Returns the list of all integrations in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "The results would be returned in order you specified here. Supported sort keys are: Descending sort order by \"last_modified_time\", \"created_time\", \"snapshot_number\". Ascending sort order by the integration name.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The page size for the resquest.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The page token for the resquest.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Project and location from which the integrations should be listed. Format: projects/{project}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/integrations", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -16083,7 +12533,7 @@ func (c *ProjectsLocationsIntegrationsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsIntegrationsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -16099,8 +12549,6 @@ func (c *ProjectsLocationsIntegrationsListCall) Pages(ctx context.Context, f fun } } -// method id "integrations.projects.locations.integrations.schedule": - type ProjectsLocationsIntegrationsScheduleCall struct { s *Service name string @@ -16110,8 +12558,8 @@ type ProjectsLocationsIntegrationsScheduleCall struct { header_ http.Header } -// Schedule: Schedules an integration for execution by passing the -// trigger id and the scheduled time in the request body. +// Schedule: Schedules an integration for execution by passing the trigger id +// and the scheduled time in the request body. // // - name: The integration resource name. func (r *ProjectsLocationsIntegrationsService) Schedule(name string, googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) *ProjectsLocationsIntegrationsScheduleCall { @@ -16122,23 +12570,21 @@ func (r *ProjectsLocationsIntegrationsService) Schedule(name string, googlecloud } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsScheduleCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsScheduleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsScheduleCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsScheduleCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsScheduleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16147,18 +12593,12 @@ func (c *ProjectsLocationsIntegrationsScheduleCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsScheduleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphascheduleintegrationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:schedule") @@ -16171,19 +12611,15 @@ func (c *ProjectsLocationsIntegrationsScheduleCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.schedule" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResp -// onse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsScheduleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16214,38 +12650,7 @@ func (c *ProjectsLocationsIntegrationsScheduleCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:schedule", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.schedule", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The integration resource name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:schedule", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.test": +} type ProjectsLocationsIntegrationsTestCall struct { s *Service @@ -16267,23 +12672,21 @@ func (r *ProjectsLocationsIntegrationsService) Test(name string, googlecloudinte } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsTestCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsTestCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsTestCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsTestCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsTestCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16292,18 +12695,12 @@ func (c *ProjectsLocationsIntegrationsTestCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsTestCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphatestintegrationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:test") @@ -16316,19 +12713,17 @@ func (c *ProjectsLocationsIntegrationsTestCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.test" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaTestIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16359,38 +12754,7 @@ func (c *ProjectsLocationsIntegrationsTestCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Execute the integration in draft state", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:test", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.test", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Auto-generated primary key.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:test", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.executions.download": +} type ProjectsLocationsIntegrationsExecutionsDownloadCall struct { s *Service @@ -16404,8 +12768,8 @@ type ProjectsLocationsIntegrationsExecutionsDownloadCall struct { // Download: Download the execution. // // - name: The execution resource name. Format: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_id}/executions/{execution_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_id}/executions/{execution_id}. func (r *ProjectsLocationsIntegrationsExecutionsService) Download(name string) *ProjectsLocationsIntegrationsExecutionsDownloadCall { c := &ProjectsLocationsIntegrationsExecutionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16413,33 +12777,29 @@ func (r *ProjectsLocationsIntegrationsExecutionsService) Download(name string) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16448,12 +12808,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) Header() http.Head } func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16470,19 +12825,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executions.download" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadExecutionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16513,35 +12864,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsDownloadCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Download the execution.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}:download", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.executions.download", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:download", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaDownloadExecutionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.executions.get": +} type ProjectsLocationsIntegrationsExecutionsGetCall struct { s *Service @@ -16555,8 +12878,8 @@ type ProjectsLocationsIntegrationsExecutionsGetCall struct { // Get: Get an execution in the specified project. // // - name: The execution resource name. Format: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_id}/executions/{execution_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_id}/executions/{execution_id}. func (r *ProjectsLocationsIntegrationsExecutionsService) Get(name string) *ProjectsLocationsIntegrationsExecutionsGetCall { c := &ProjectsLocationsIntegrationsExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16564,33 +12887,29 @@ func (r *ProjectsLocationsIntegrationsExecutionsService) Get(name string) *Proje } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16599,12 +12918,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsGetCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsExecutionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16621,17 +12935,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executions.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaExecution or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaExecution.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaExecution.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecution, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16662,35 +12974,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsGetCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Get an execution in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.executions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecution" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.executions.list": +} type ProjectsLocationsIntegrationsExecutionsListCall struct { s *Service @@ -16701,10 +12985,10 @@ type ProjectsLocationsIntegrationsExecutionsListCall struct { header_ http.Header } -// List: Lists the results of all the integration executions. The -// response includes the same information as the execution log -// (https://cloud.google.com/application-integration/docs/viewing-logs) -// in the Integration UI. +// List: Lists the results of all the integration executions. The response +// includes the same information as the execution log +// (https://cloud.google.com/application-integration/docs/viewing-logs) in the +// Integration UI. // // - parent: The parent resource name of the integration execution. func (r *ProjectsLocationsIntegrationsExecutionsService) List(parent string) *ProjectsLocationsIntegrationsExecutionsListCall { @@ -16713,13 +12997,13 @@ func (r *ProjectsLocationsIntegrationsExecutionsService) List(parent string) *Pr return c } -// Filter sets the optional parameter "filter": Standard filter field, -// we support filtering on all fields in EventExecutionParamIndexes -// table. All fields support for EQUALS, in additional: CreateTimestamp -// support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, -// ParameterType support for HAS For example: "parameter_value" HAS -// \"parameter1\" Also supports operators like AND, OR, NOT For example, -// trigger_id=\"id1\" AND event_execution_state=\"FAILED\" +// Filter sets the optional parameter "filter": Standard filter field, we +// support filtering on all fields in EventExecutionParamIndexes table. All +// fields support for EQUALS, in additional: CreateTimestamp support for +// LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support +// for HAS For example: "parameter_value" HAS \"parameter1\" Also supports +// operators like AND, OR, NOT For example, trigger_id=\"id1\" AND +// event_execution_state=\"FAILED\" func (c *ProjectsLocationsIntegrationsExecutionsListCall) Filter(filter string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filter", filter) return c @@ -16732,8 +13016,8 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsCustomFilt return c } -// FilterParamsEndTime sets the optional parameter -// "filterParams.endTime": End timestamp. +// FilterParamsEndTime sets the optional parameter "filterParams.endTime": End +// timestamp. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsEndTime(filterParamsEndTime int64) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.endTime", fmt.Sprint(filterParamsEndTime)) return c @@ -16754,24 +13038,22 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsExecutionI } // FilterParamsParameterKey sets the optional parameter -// "filterParams.parameterKey": Param key. DEPRECATED. User -// parameter_pair_key instead. +// "filterParams.parameterKey": Param key. DEPRECATED. User parameter_pair_key +// instead. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterKey(filterParamsParameterKey string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterKey", filterParamsParameterKey) return c } // FilterParamsParameterPairKey sets the optional parameter -// "filterParams.parameterPairKey": Param key in the key value pair -// filter. +// "filterParams.parameterPairKey": Param key in the key value pair filter. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterPairKey(filterParamsParameterPairKey string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterPairKey", filterParamsParameterPairKey) return c } // FilterParamsParameterPairValue sets the optional parameter -// "filterParams.parameterPairValue": Param value in the key value pair -// filter. +// "filterParams.parameterPairValue": Param value in the key value pair filter. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterPairValue(filterParamsParameterPairValue string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterPairValue", filterParamsParameterPairValue) return c @@ -16792,8 +13074,8 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterV return c } -// FilterParamsStartTime sets the optional parameter -// "filterParams.startTime": Start timestamp. +// FilterParamsStartTime sets the optional parameter "filterParams.startTime": +// Start timestamp. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsStartTime(filterParamsStartTime int64) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.startTime", fmt.Sprint(filterParamsStartTime)) return c @@ -16813,84 +13095,79 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsWorkflowNa return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Currently supporting -// "last_modified_time" and "create_time". +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Currently supporting "last_modified_time" and +// "create_time". func (c *ProjectsLocationsIntegrationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. func (c *ProjectsLocationsIntegrationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsIntegrationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": View mask for the -// response data. If set, only the field specified will be returned as -// part of the result. If not set, all fields in event execution info -// will be filled and returned. +// ReadMask sets the optional parameter "readMask": View mask for the response +// data. If set, only the field specified will be returned as part of the +// result. If not set, all fields in event execution info will be filled and +// returned. func (c *ProjectsLocationsIntegrationsExecutionsListCall) ReadMask(readMask string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("readMask", readMask) return c } -// RefreshAcl sets the optional parameter "refreshAcl": If true, the -// service will use the most recent acl information to list event -// execution infos and renew the acl cache. Note that fetching the most -// recent acl is synchronous, so it will increase RPC call latency. +// RefreshAcl sets the optional parameter "refreshAcl": If true, the service +// will use the most recent acl information to list event execution infos and +// renew the acl cache. Note that fetching the most recent acl is synchronous, +// so it will increase RPC call latency. func (c *ProjectsLocationsIntegrationsExecutionsListCall) RefreshAcl(refreshAcl bool) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("refreshAcl", fmt.Sprint(refreshAcl)) return c } -// TruncateParams sets the optional parameter "truncateParams": If true, -// the service will truncate the params to only keep the first 1000 -// characters of string params and empty the executions in order to make -// response smaller. Only works for UI and when the params fields are -// not filtered out. +// TruncateParams sets the optional parameter "truncateParams": If true, the +// service will truncate the params to only keep the first 1000 characters of +// string params and empty the executions in order to make response smaller. +// Only works for UI and when the params fields are not filtered out. func (c *ProjectsLocationsIntegrationsExecutionsListCall) TruncateParams(truncateParams bool) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("truncateParams", fmt.Sprint(truncateParams)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16899,12 +13176,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsExecutionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16921,18 +13193,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executions.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListExecutionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16963,133 +13232,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.executions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", - // "location": "query", - // "type": "string" - // }, - // "filterParams.customFilter": { - // "description": "Optional user-provided custom filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.endTime": { - // "description": "End timestamp.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filterParams.eventStatuses": { - // "description": "List of possible event statuses.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "filterParams.executionId": { - // "description": "Execution id.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterKey": { - // "description": "Param key. DEPRECATED. User parameter_pair_key instead.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterPairKey": { - // "description": "Param key in the key value pair filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterPairValue": { - // "description": "Param value in the key value pair filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterType": { - // "description": "Param type.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterValue": { - // "description": "Param value. DEPRECATED. User parameter_pair_value instead.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.startTime": { - // "description": "Start timestamp.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filterParams.taskStatuses": { - // "description": "List of possible task statuses.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "filterParams.workflowName": { - // "description": "Workflow name.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. The results would be returned in order you specified here. Currently supporting \"last_modified_time\" and \"create_time\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The size of entries in the response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource name of the integration execution.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "refreshAcl": { - // "description": "Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency.", - // "location": "query", - // "type": "boolean" - // }, - // "truncateParams": { - // "description": "Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1/{+parent}/executions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -17097,7 +13239,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) Do(opts ...googleapi.C // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsIntegrationsExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17113,8 +13255,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) Pages(ctx context.Cont } } -// method id "integrations.projects.locations.integrations.executions.suspensions.lift": - type ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall struct { s *Service name string @@ -17124,14 +13264,13 @@ type ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall struct { header_ http.Header } -// Lift: * Lifts suspension for advanced suspension task. Fetch -// corresponding suspension with provided suspension Id, resolve -// suspension, and set up suspension result for the Suspension Task. +// Lift: * Lifts suspension for advanced suspension task. Fetch corresponding +// suspension with provided suspension Id, resolve suspension, and set up +// suspension result for the Suspension Task. // // - name: The resource that the suspension belongs to. -// "projects/{project}/locations/{location}/products/{product}/integrat -// ions/{integration}/executions/{execution}/suspensions/{suspenion}" -// format. +// "projects/{project}/locations/{location}/products/{product}/integrations/{i +// ntegration}/executions/{execution}/suspensions/{suspenion}" format. func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) Lift(name string, googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall { c := &ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -17140,23 +13279,21 @@ func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) Lift(name st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17165,18 +13302,12 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Header() ht } func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaliftsuspensionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:lift") @@ -17189,18 +13320,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executions.suspensions.lift" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLiftSuspensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17231,38 +13359,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "* Lifts suspension for advanced suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:lift", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.executions.suspensions.lift", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource that the suspension belongs to. \"projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:lift", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.executions.suspensions.list": +} type ProjectsLocationsIntegrationsExecutionsSuspensionsListCall struct { s *Service @@ -17273,13 +13370,13 @@ type ProjectsLocationsIntegrationsExecutionsSuspensionsListCall struct { header_ http.Header } -// List: * Lists suspensions associated with a specific execution. Only -// those with permissions to resolve the relevant suspensions will be -// able to view them. +// List: * Lists suspensions associated with a specific execution. Only those +// with permissions to resolve the relevant suspensions will be able to view +// them. // // - parent: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_name}/executions/{execution_name}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_name}/executions/{execution_name}. func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) List(parent string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c := &ProjectsLocationsIntegrationsExecutionsSuspensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -17292,55 +13389,50 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Filter(filt return c } -// OrderBy sets the optional parameter "orderBy": Field name to order -// by. +// OrderBy sets the optional parameter "orderBy": Field name to order by. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// entries in the response. +// PageSize sets the optional parameter "pageSize": Maximum number of entries +// in the response. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token to retrieve -// a specific page. +// PageToken sets the optional parameter "pageToken": Token to retrieve a +// specific page. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17349,12 +13441,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Header() ht } func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17371,18 +13458,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executions.suspensions.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListSuspensionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSuspensionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17413,53 +13497,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.executions.suspensions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Standard filter field.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field name to order by.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum number of entries in the response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token to retrieve a specific page.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/suspensions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -17467,7 +13504,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Do(opts ... // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSuspensionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17483,8 +13520,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Pages(ctx c } } -// method id "integrations.projects.locations.integrations.executions.suspensions.resolve": - type ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall struct { s *Service name string @@ -17496,13 +13531,12 @@ type ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall struct { // Resolve: * Resolves (lifts/rejects) any number of suspensions. If the // integration is already running, only the status of the suspension is -// updated. Otherwise, the suspended integration will begin execution -// again. +// updated. Otherwise, the suspended integration will begin execution again. // // - name: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_name}/executions/{execution_name}/suspension -// s/{suspension_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_name}/executions/{execution_name}/suspensions/{suspension_ +// id}. func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) Resolve(name string, googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall { c := &ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -17511,23 +13545,21 @@ func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) Resolve(name } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17536,18 +13568,12 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Header() } func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alpharesolvesuspensionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:resolve") @@ -17560,19 +13586,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executions.suspensions.resolve" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaResolveSuspensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17603,38 +13625,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Do(opts return nil, err } return ret, nil - // { - // "description": "* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:resolve", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.executions.suspensions.resolve", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:resolve", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.executionsnapshots.list": +} type ProjectsLocationsIntegrationsExecutionsnapshotsListCall struct { s *Service @@ -17645,8 +13636,8 @@ type ProjectsLocationsIntegrationsExecutionsnapshotsListCall struct { header_ http.Header } -// List: Lists the snapshots of a given integration executions. This RPC -// is not being used. +// List: Lists the snapshots of a given integration executions. This RPC is not +// being used. // // - parent: The parent resource name of the integration execution. func (r *ProjectsLocationsIntegrationsExecutionsnapshotsService) List(parent string) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { @@ -17655,15 +13646,15 @@ func (r *ProjectsLocationsIntegrationsExecutionsnapshotsService) List(parent str return c } -// Filter sets the optional parameter "filter": Currently supports -// filter by `execution_info_id` or `execution_snapshot_id`. +// Filter sets the optional parameter "filter": Currently supports filter by +// `execution_info_id` or `execution_snapshot_id`. func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Filter(filter string) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": Number of entries to -// be returned in a page. +// PageSize sets the optional parameter "pageSize": Number of entries to be +// returned in a page. func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -17676,43 +13667,39 @@ func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) PageToken(page return c } -// ReadMask sets the optional parameter "readMask": View mask for the -// response data. If set, only the field specified will be returned as -// part of the result. If not set, all fields in event execution -// snapshot will be filled and returned. +// ReadMask sets the optional parameter "readMask": View mask for the response +// data. If set, only the field specified will be returned as part of the +// result. If not set, all fields in event execution snapshot will be filled +// and returned. func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) ReadMask(readMask string) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsnapshotsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17721,12 +13708,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Header() http. } func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17743,19 +13725,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executionsnapshots.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse.ServerRe -// sponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse.ServerResponse. +// Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17786,54 +13764,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Lists the snapshots of a given integration executions. This RPC is not being used.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executionsnapshots", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.executionsnapshots.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Currently supports filter by `execution_info_id` or `execution_snapshot_id`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Number of entries to be returned in a page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token used to retrieve the next page results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource name of the integration execution.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution snapshot will be filled and returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/executionsnapshots", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -17841,7 +13771,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Do(opts ...goo // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -17857,8 +13787,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsnapshotsListCall) Pages(ctx cont } } -// method id "integrations.projects.locations.integrations.versions.archive": - type ProjectsLocationsIntegrationsVersionsArchiveCall struct { s *Service name string @@ -17868,20 +13796,19 @@ type ProjectsLocationsIntegrationsVersionsArchiveCall struct { header_ http.Header } -// Archive: Soft-deletes the integration. Changes the status of the -// integration to ARCHIVED. If the integration being ARCHIVED is tagged -// as "HEAD", the tag is removed from this snapshot and set to the -// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, -// DUE_FOR_DELETION tags are removed too. This RPC throws an exception -// if the version being archived is DRAFT, and if the `locked_by` user -// is not the same as the user performing the Archive. Audit fields -// updated include last_modified_timestamp, last_modified_by. Any -// existing lock is released when Archiving a integration. Currently, -// there is no unarchive mechanism. +// Archive: Soft-deletes the integration. Changes the status of the integration +// to ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag +// is removed from this snapshot and set to the previous non-ARCHIVED snapshot. +// The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC +// throws an exception if the version being archived is DRAFT, and if the +// `locked_by` user is not the same as the user performing the Archive. Audit +// fields updated include last_modified_timestamp, last_modified_by. Any +// existing lock is released when Archiving a integration. Currently, there is +// no unarchive mechanism. // // - name: The version to archive. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Archive(name string, googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsArchiveCall { c := &ProjectsLocationsIntegrationsVersionsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -17890,23 +13817,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Archive(name string, goog } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsArchiveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsArchiveCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17915,18 +13840,12 @@ func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Header() http.Header } func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaarchiveintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:archive") @@ -17939,19 +13858,15 @@ func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.archive" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17982,38 +13897,7 @@ func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being archived is DRAFT, and if the `locked_by` user is not the same as the user performing the Archive. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Archiving a integration. Currently, there is no unarchive mechanism.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:archive", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.archive", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:archive", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.create": +} type ProjectsLocationsIntegrationsVersionsCreateCall struct { s *Service @@ -18024,11 +13908,9 @@ type ProjectsLocationsIntegrationsVersionsCreateCall struct { header_ http.Header } -// Create: Create a integration with a draft version in the specified -// project. +// Create: Create a integration with a draft version in the specified project. // -// - parent: The parent resource where this version will be created. -// Format: +// - parent: The parent resource where this version will be created. Format: // projects/{project}/locations/{location}/integrations/{integration}. func (r *ProjectsLocationsIntegrationsVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsIntegrationsVersionsCreateCall { c := &ProjectsLocationsIntegrationsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -18037,35 +13919,32 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Create(parent string, goo return c } -// NewIntegration sets the optional parameter "newIntegration": Set this -// flag to true, if draft version is to be created for a brand new -// integration. False, if the request is for an existing integration. -// For backward compatibility reasons, even if this flag is set to -// `false` and no existing integration is found, a new draft integration -// will still be created. +// NewIntegration sets the optional parameter "newIntegration": Set this flag +// to true, if draft version is to be created for a brand new integration. +// False, if the request is for an existing integration. For backward +// compatibility reasons, even if this flag is set to `false` and no existing +// integration is found, a new draft integration will still be created. func (c *ProjectsLocationsIntegrationsVersionsCreateCall) NewIntegration(newIntegration bool) *ProjectsLocationsIntegrationsVersionsCreateCall { c.urlParams_.Set("newIntegration", fmt.Sprint(newIntegration)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18074,18 +13953,12 @@ func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions") @@ -18098,18 +13971,15 @@ func (c *ProjectsLocationsIntegrationsVersionsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18140,43 +14010,7 @@ func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Create a integration with a draft version in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "newIntegration": { - // "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created.", - // "location": "query", - // "type": "boolean" - // }, - // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/versions", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.deactivate": +} type ProjectsLocationsIntegrationsVersionsDeactivateCall struct { s *Service @@ -18187,15 +14021,15 @@ type ProjectsLocationsIntegrationsVersionsDeactivateCall struct { header_ http.Header } -// Deactivate: Sets the status of the ACTIVE integration to SNAPSHOT -// with a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" -// and "PUBLISH_REQUESTED" tags do not change. This RPC throws an -// exception if the version being snapshot is not ACTIVE. Audit fields -// added include action, action_by, action_timestamp. +// Deactivate: Sets the status of the ACTIVE integration to SNAPSHOT with a new +// tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and +// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception if the +// version being snapshot is not ACTIVE. Audit fields added include action, +// action_by, action_timestamp. // // - name: The version to deactivate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Deactivate(name string, googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsDeactivateCall { c := &ProjectsLocationsIntegrationsVersionsDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -18204,23 +14038,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Deactivate(name string, g } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDeactivateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDeactivateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18229,18 +14061,12 @@ func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Header() http.Head } func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphadeactivateintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:deactivate") @@ -18253,19 +14079,15 @@ func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.deactivate" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse.Se -// rverResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse.ServerRes +// ponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18296,38 +14118,7 @@ func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:deactivate", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.deactivate", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:deactivate", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.delete": +} type ProjectsLocationsIntegrationsVersionsDeleteCall struct { s *Service @@ -18337,20 +14128,19 @@ type ProjectsLocationsIntegrationsVersionsDeleteCall struct { header_ http.Header } -// Delete: Soft-deletes the integration. Changes the status of the -// integration to ARCHIVED. If the integration being ARCHIVED is tagged -// as "HEAD", the tag is removed from this snapshot and set to the -// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, -// DUE_FOR_DELETION tags are removed too. This RPC throws an exception -// if the version being deleted is DRAFT, and if the `locked_by` user is -// not the same as the user performing the Delete. Audit fields updated -// include last_modified_timestamp, last_modified_by. Any existing lock -// is released when Deleting a integration. Currently, there is no -// undelete mechanism. +// Delete: Soft-deletes the integration. Changes the status of the integration +// to ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag +// is removed from this snapshot and set to the previous non-ARCHIVED snapshot. +// The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC +// throws an exception if the version being deleted is DRAFT, and if the +// `locked_by` user is not the same as the user performing the Delete. Audit +// fields updated include last_modified_timestamp, last_modified_by. Any +// existing lock is released when Deleting a integration. Currently, there is +// no undelete mechanism. // // - name: The version to delete. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Delete(name string) *ProjectsLocationsIntegrationsVersionsDeleteCall { c := &ProjectsLocationsIntegrationsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -18358,23 +14148,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Delete(name string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18383,12 +14171,7 @@ func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -18402,16 +14185,15 @@ func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18442,35 +14224,7 @@ func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.integrations.versions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.download": +} type ProjectsLocationsIntegrationsVersionsDownloadCall struct { s *Service @@ -18481,13 +14235,12 @@ type ProjectsLocationsIntegrationsVersionsDownloadCall struct { header_ http.Header } -// Download: Downloads an integration. Retrieves the -// `IntegrationVersion` for a given `integration_id` and returns the -// response as a string. +// Download: Downloads an integration. Retrieves the `IntegrationVersion` for a +// given `integration_id` and returns the response as a string. // // - name: The version to download. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Download(name string) *ProjectsLocationsIntegrationsVersionsDownloadCall { c := &ProjectsLocationsIntegrationsVersionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -18508,33 +14261,29 @@ func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) FileFormat(fileForma } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18543,12 +14292,7 @@ func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Header() http.Header } func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18565,19 +14309,15 @@ func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.download" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.ServerRespo +// nse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18608,50 +14348,7 @@ func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:download", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.versions.download", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "fileFormat": { - // "description": "File format for download request.", - // "enum": [ - // "FILE_FORMAT_UNSPECIFIED", - // "JSON", - // "YAML" - // ], - // "enumDescriptions": [ - // "Unspecified file format", - // "JSON File Format", - // "YAML File Format" - // ], - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:download", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.get": +} type ProjectsLocationsIntegrationsVersionsGetCall struct { s *Service @@ -18665,8 +14362,8 @@ type ProjectsLocationsIntegrationsVersionsGetCall struct { // Get: Get a integration in the specified project. // // - name: The version to retrieve. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Get(name string) *ProjectsLocationsIntegrationsVersionsGetCall { c := &ProjectsLocationsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -18674,33 +14371,29 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Get(name string) *Project } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18709,12 +14402,7 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18731,18 +14419,15 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18773,35 +14458,7 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Get a integration in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.versions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.list": +} type ProjectsLocationsIntegrationsVersionsListCall struct { s *Service @@ -18812,101 +14469,93 @@ type ProjectsLocationsIntegrationsVersionsListCall struct { header_ http.Header } -// List: Returns the list of all integration versions in the specified -// project. +// List: Returns the list of all integration versions in the specified project. // -// - parent: The parent resource where this version will be created. -// Format: +// - parent: The parent resource where this version will be created. Format: // projects/{project}/locations/{location}/integrations/{integration} -// Specifically, when parent equals: 1. -// projects//locations//integrations/, Meaning: "List versions (with -// filter) for a particular integration". 2. -// projects//locations//integrations/- Meaning: "List versions (with -// filter) for a client within a particular region". 3. -// projects//locations/-/integrations/- Meaning: "List versions (with -// filter) for a client". +// Specifically, when parent equals: 1. projects//locations//integrations/, +// Meaning: "List versions (with filter) for a particular integration". 2. +// projects//locations//integrations/- Meaning: "List versions (with filter) +// for a client within a particular region". 3. +// projects//locations/-/integrations/- Meaning: "List versions (with filter) +// for a client". func (r *ProjectsLocationsIntegrationsVersionsService) List(parent string) *ProjectsLocationsIntegrationsVersionsListCall { c := &ProjectsLocationsIntegrationsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// FieldMask sets the optional parameter "fieldMask": The field mask -// which specifies the particular data to be returned. +// FieldMask sets the optional parameter "fieldMask": The field mask which +// specifies the particular data to be returned. func (c *ProjectsLocationsIntegrationsVersionsListCall) FieldMask(fieldMask string) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("fieldMask", fieldMask) return c } // Filter sets the optional parameter "filter": Filter on fields of -// IntegrationVersion. Fields can be compared with literal values by use -// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), -// >=" (greater than or equal to), "<=" (less than or equal to), and -// "!=" (inequality) operators. Negation, conjunction, and disjunction -// are written using NOT, AND, and OR keywords. For example, -// organization_id=\"1\" AND state=ACTIVE AND description:"test". -// Filtering cannot be performed on repeated fields like `task_config`. +// IntegrationVersion. Fields can be compared with literal values by use of ":" +// (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater +// than or equal to), "<=" (less than or equal to), and "!=" (inequality) +// operators. Negation, conjunction, and disjunction are written using NOT, +// AND, and OR keywords. For example, organization_id=\"1\" AND state=ACTIVE +// AND description:"test". Filtering cannot be performed on repeated fields +// like `task_config`. func (c *ProjectsLocationsIntegrationsVersionsListCall) Filter(filter string) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Currently supported sort keys -// are: Descending sort order for "last_modified_time", "created_time", -// "snapshot_number" Ascending sort order for "name". +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Currently supported sort keys are: Descending +// sort order for "last_modified_time", "created_time", "snapshot_number" +// Ascending sort order for "name". func (c *ProjectsLocationsIntegrationsVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of versions to return. The service may return fewer than this value. -// If unspecified, at most 50 versions will be returned. The maximum -// value is 1000; values above 1000 will be coerced to 1000. +// PageSize sets the optional parameter "pageSize": The maximum number of +// versions to return. The service may return fewer than this value. If +// unspecified, at most 50 versions will be returned. The maximum value is +// 1000; values above 1000 will be coerced to 1000. func (c *ProjectsLocationsIntegrationsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListIntegrationVersions` call. Provide this -// to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListIntegrationVersions` must match the call -// that provided the page token. +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListIntegrationVersions` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListIntegrationVersions` must match the call that provided the page token. func (c *ProjectsLocationsIntegrationsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18915,12 +14564,7 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18937,19 +14581,15 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerR -// esponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18980,59 +14620,6 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Returns the list of all integration versions in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.versions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "fieldMask": { - // "description": "The field mask which specifies the particular data to be returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for \"last_modified_time\", \"created_time\", \"snapshot_number\" Ascending sort order for \"name\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/versions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -19040,7 +14627,7 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.Cal // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsIntegrationsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -19056,8 +14643,6 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Pages(ctx context.Contex } } -// method id "integrations.projects.locations.integrations.versions.patch": - type ProjectsLocationsIntegrationsVersionsPatchCall struct { s *Service name string @@ -19067,8 +14652,7 @@ type ProjectsLocationsIntegrationsVersionsPatchCall struct { header_ http.Header } -// Patch: Update a integration with a draft version in the specified -// project. +// Patch: Update a integration with a draft version in the specified project. // // - name: Output only. Auto-generated primary key. func (r *ProjectsLocationsIntegrationsVersionsService) Patch(name string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsIntegrationsVersionsPatchCall { @@ -19078,32 +14662,30 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Patch(name string, google return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above integration that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above integration that have been modified and need to be +// updated. func (c *ProjectsLocationsIntegrationsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIntegrationsVersionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19112,18 +14694,12 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -19136,18 +14712,15 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19178,44 +14751,7 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Update a integration with a draft version in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.integrations.versions.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Auto-generated primary key.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above integration that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.publish": +} type ProjectsLocationsIntegrationsVersionsPublishCall struct { s *Service @@ -19226,17 +14762,16 @@ type ProjectsLocationsIntegrationsVersionsPublishCall struct { header_ http.Header } -// Publish: This RPC throws an exception if the integration is in -// ARCHIVED or ACTIVE state. This RPC throws an exception if the version -// being published is DRAFT, and if the `locked_by` user is not the same -// as the user performing the Publish. Audit fields updated include -// last_published_timestamp, last_published_by, last_modified_timestamp, -// last_modified_by. Any existing lock is on this integration is -// released. +// Publish: This RPC throws an exception if the integration is in ARCHIVED or +// ACTIVE state. This RPC throws an exception if the version being published is +// DRAFT, and if the `locked_by` user is not the same as the user performing +// the Publish. Audit fields updated include last_published_timestamp, +// last_published_by, last_modified_timestamp, last_modified_by. Any existing +// lock is on this integration is released. // // - name: The version to publish. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Publish(name string, googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsPublishCall { c := &ProjectsLocationsIntegrationsVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -19245,23 +14780,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Publish(name string, goog } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsPublishCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsPublishCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19270,18 +14803,12 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Header() http.Header } func (c *ProjectsLocationsIntegrationsVersionsPublishCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphapublishintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:publish") @@ -19294,19 +14821,15 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.publish" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19337,38 +14860,7 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:publish", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.publish", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:publish", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.unpublish": +} type ProjectsLocationsIntegrationsVersionsUnpublishCall struct { s *Service @@ -19379,15 +14871,15 @@ type ProjectsLocationsIntegrationsVersionsUnpublishCall struct { header_ http.Header } -// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with -// a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and -// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception -// if the version being snapshot is not ACTIVE. Audit fields added -// include action, action_by, action_timestamp. +// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with a new +// tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and +// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception if the +// version being snapshot is not ACTIVE. Audit fields added include action, +// action_by, action_timestamp. // // - name: The version to deactivate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Unpublish(name string, googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsUnpublishCall { c := &ProjectsLocationsIntegrationsVersionsUnpublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -19396,23 +14888,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Unpublish(name string, go } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsUnpublishCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsUnpublishCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19421,18 +14911,12 @@ func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Header() http.Heade } func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:unpublish") @@ -19445,16 +14929,15 @@ func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.unpublish" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19485,38 +14968,7 @@ func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.unpublish", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:unpublish", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.upload": +} type ProjectsLocationsIntegrationsVersionsUploadCall struct { s *Service @@ -19527,11 +14979,10 @@ type ProjectsLocationsIntegrationsVersionsUploadCall struct { header_ http.Header } -// Upload: Uploads an integration. The content can be a previously -// downloaded integration. Performs the same function as -// CreateDraftIntegrationVersion, but accepts input in a string format, -// which holds the complete representation of the IntegrationVersion -// content. +// Upload: Uploads an integration. The content can be a previously downloaded +// integration. Performs the same function as CreateDraftIntegrationVersion, +// but accepts input in a string format, which holds the complete +// representation of the IntegrationVersion content. // // - parent: The version to upload. Format: // projects/{project}/locations/{location}/integrations/{integration}. @@ -19543,23 +14994,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Upload(parent string, goo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsUploadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19568,18 +15017,12 @@ func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphauploadintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions:upload") @@ -19592,19 +15035,15 @@ func (c *ProjectsLocationsIntegrationsVersionsUploadCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.upload" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19635,38 +15074,7 @@ func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions:upload", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.upload", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/versions:upload", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.validate": +} type ProjectsLocationsIntegrationsVersionsValidateCall struct { s *Service @@ -19678,13 +15086,12 @@ type ProjectsLocationsIntegrationsVersionsValidateCall struct { } // Validate: Validates the given integration. If the id doesn't exist, a -// NotFoundException is thrown. If validation fails a -// CanonicalCodeException is thrown. If there was no failure an empty -// response is returned. +// NotFoundException is thrown. If validation fails a CanonicalCodeException is +// thrown. If there was no failure an empty response is returned. // // - name: The version to validate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Validate(name string, googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsValidateCall { c := &ProjectsLocationsIntegrationsVersionsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -19693,23 +15100,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Validate(name string, goo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsValidateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsValidateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19718,18 +15123,12 @@ func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Header() http.Header } func (c *ProjectsLocationsIntegrationsVersionsValidateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphavalidateintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:validate") @@ -19742,19 +15141,15 @@ func (c *ProjectsLocationsIntegrationsVersionsValidateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.validate" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse.ServerRespo +// nse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19785,38 +15180,7 @@ func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:validate", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.validate", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:validate", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.createBundle": +} type ProjectsLocationsProductsCreateBundleCall struct { s *Service @@ -19827,8 +15191,8 @@ type ProjectsLocationsProductsCreateBundleCall struct { header_ http.Header } -// CreateBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE -// MOVED TO A SEPARATE SERVICE. Create a bundle. +// CreateBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO +// A SEPARATE SERVICE. Create a bundle. // // - parent: The location resource of the request. func (r *ProjectsLocationsProductsService) CreateBundle(parent string, googlecloudintegrationsv1alphacreatebundlerequest *GoogleCloudIntegrationsV1alphaCreateBundleRequest) *ProjectsLocationsProductsCreateBundleCall { @@ -19839,23 +15203,21 @@ func (r *ProjectsLocationsProductsService) CreateBundle(parent string, googleclo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCreateBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCreateBundleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCreateBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsCreateBundleCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCreateBundleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19864,18 +15226,12 @@ func (c *ProjectsLocationsProductsCreateBundleCall) Header() http.Header { } func (c *ProjectsLocationsProductsCreateBundleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacreatebundlerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:createBundle") @@ -19888,18 +15244,15 @@ func (c *ProjectsLocationsProductsCreateBundleCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.createBundle" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCreateBundleResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCreateBundleResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCreateBundleResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsCreateBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCreateBundleResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19930,38 +15283,7 @@ func (c *ProjectsLocationsProductsCreateBundleCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Create a bundle.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}:createBundle", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.createBundle", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The location resource of the request.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:createBundle", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateBundleRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateBundleResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.listTaskEntities": +} type ProjectsLocationsProductsListTaskEntitiesCall struct { s *Service @@ -19972,11 +15294,11 @@ type ProjectsLocationsProductsListTaskEntitiesCall struct { header_ http.Header } -// ListTaskEntities: This is a UI only method and will be moved away. -// Returns a list of common tasks. +// ListTaskEntities: This is a UI only method and will be moved away. Returns a +// list of common tasks. // -// - parent: The location resource of the request. This is not going to -// be used but preserve the field for future. +// - parent: The location resource of the request. This is not going to be used +// but preserve the field for future. func (r *ProjectsLocationsProductsService) ListTaskEntities(parent string) *ProjectsLocationsProductsListTaskEntitiesCall { c := &ProjectsLocationsProductsListTaskEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -19984,33 +15306,29 @@ func (r *ProjectsLocationsProductsService) ListTaskEntities(parent string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsListTaskEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsListTaskEntitiesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsListTaskEntitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsListTaskEntitiesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsListTaskEntitiesCall) Context(ctx context.Context) *ProjectsLocationsProductsListTaskEntitiesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsListTaskEntitiesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20019,12 +15337,7 @@ func (c *ProjectsLocationsProductsListTaskEntitiesCall) Header() http.Header { } func (c *ProjectsLocationsProductsListTaskEntitiesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20041,19 +15354,17 @@ func (c *ProjectsLocationsProductsListTaskEntitiesCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.listTaskEntities" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsListTaskEntitiesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20084,35 +15395,7 @@ func (c *ProjectsLocationsProductsListTaskEntitiesCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "This is a UI only method and will be moved away. Returns a list of common tasks.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}:listTaskEntities", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.listTaskEntities", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The location resource of the request. This is not going to be used but preserve the field for future.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}:listTaskEntities", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.authConfigs.create": +} type ProjectsLocationsProductsAuthConfigsCreateCall struct { s *Service @@ -20123,11 +15406,10 @@ type ProjectsLocationsProductsAuthConfigsCreateCall struct { header_ http.Header } -// Create: Creates an auth config record. Fetch corresponding -// credentials for specific auth types, e.g. access token for OAuth 2.0, -// JWT token for JWT. Encrypt the auth config with Cloud KMS and store -// the encrypted credentials in Spanner. Returns the encrypted auth -// config. +// Create: Creates an auth config record. Fetch corresponding credentials for +// specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. +// Encrypt the auth config with Cloud KMS and store the encrypted credentials +// in Spanner. Returns the encrypted auth config. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsProductsAuthConfigsService) Create(parent string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsProductsAuthConfigsCreateCall { @@ -20138,9 +15420,9 @@ func (r *ProjectsLocationsProductsAuthConfigsService) Create(parent string, goog } // ClientCertificateEncryptedPrivateKey sets the optional parameter -// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded -// in PEM format. This string must include the begin header and end -// footer lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -20160,19 +15442,18 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificateEncryp } // ClientCertificatePassphrase sets the optional parameter -// "clientCertificate.passphrase": 'passphrase' should be left unset if -// private key is not encrypted. Note that 'passphrase' is not the -// password for web server, but an extra layer of security to protected -// private key. +// "clientCertificate.passphrase": 'passphrase' should be left unset if private +// key is not encrypted. Note that 'passphrase' is not the password for web +// server, but an extra layer of security to protected private key. func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsProductsAuthConfigsCreateCall { c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) return c } // ClientCertificateSslCertificate sets the optional parameter -// "clientCertificate.sslCertificate": The ssl certificate encoded in -// PEM format. This string must include the begin header and end footer -// lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.sslCertificate": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -20192,23 +15473,21 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificateSslCer } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20217,18 +15496,12 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Header() http.Header { } func (c *ProjectsLocationsProductsAuthConfigsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authConfigs") @@ -20241,18 +15514,15 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.authConfigs.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20283,53 +15553,7 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.authConfigs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "clientCertificate.encryptedPrivateKey": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.passphrase": { - // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.sslCertificate": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/authConfigs", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.authConfigs.delete": +} type ProjectsLocationsProductsAuthConfigsDeleteCall struct { s *Service @@ -20349,23 +15573,21 @@ func (r *ProjectsLocationsProductsAuthConfigsService) Delete(name string) *Proje } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20374,12 +15596,7 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -20393,16 +15610,15 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.authConfigs.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20433,35 +15649,7 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Deletes an auth config.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.authConfigs.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the AuthConfig.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.authConfigs.get": +} type ProjectsLocationsProductsAuthConfigsGetCall struct { s *Service @@ -20473,8 +15661,7 @@ type ProjectsLocationsProductsAuthConfigsGetCall struct { } // Get: Gets a complete auth config. If the auth config doesn't exist, -// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth -// config. +// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config. // // - name: The name that is associated with the AuthConfig. func (r *ProjectsLocationsProductsAuthConfigsService) Get(name string) *ProjectsLocationsProductsAuthConfigsGetCall { @@ -20484,33 +15671,29 @@ func (r *ProjectsLocationsProductsAuthConfigsService) Get(name string) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsAuthConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsAuthConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsAuthConfigsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsAuthConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsAuthConfigsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20519,12 +15702,7 @@ func (c *ProjectsLocationsProductsAuthConfigsGetCall) Header() http.Header { } func (c *ProjectsLocationsProductsAuthConfigsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20541,18 +15719,15 @@ func (c *ProjectsLocationsProductsAuthConfigsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.authConfigs.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsAuthConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20583,35 +15758,7 @@ func (c *ProjectsLocationsProductsAuthConfigsGetCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.authConfigs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the AuthConfig.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.authConfigs.list": +} type ProjectsLocationsProductsAuthConfigsListCall struct { s *Service @@ -20622,8 +15769,8 @@ type ProjectsLocationsProductsAuthConfigsListCall struct { header_ http.Header } -// List: Lists all auth configs that match the filter. Restrict to auth -// configs belong to the current client only. +// List: Lists all auth configs that match the filter. Restrict to auth configs +// belong to the current client only. // // - parent: The client, which owns this collection of AuthConfigs. func (r *ProjectsLocationsProductsAuthConfigsService) List(parent string) *ProjectsLocationsProductsAuthConfigsListCall { @@ -20632,64 +15779,58 @@ func (r *ProjectsLocationsProductsAuthConfigsService) List(parent string) *Proje return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. func (c *ProjectsLocationsProductsAuthConfigsListCall) Filter(filter string) *ProjectsLocationsProductsAuthConfigsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsProductsAuthConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsAuthConfigsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsProductsAuthConfigsListCall) PageToken(pageToken string) *ProjectsLocationsProductsAuthConfigsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the AuthConfig's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the AuthConfig's response. func (c *ProjectsLocationsProductsAuthConfigsListCall) ReadMask(readMask string) *ProjectsLocationsProductsAuthConfigsListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsAuthConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsAuthConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsAuthConfigsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsAuthConfigsListCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsAuthConfigsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20698,12 +15839,7 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Header() http.Header { } func (c *ProjectsLocationsProductsAuthConfigsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20720,18 +15856,15 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.authConfigs.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20762,54 +15895,6 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.authConfigs.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of AuthConfigs.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the AuthConfig's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/authConfigs", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -20817,7 +15902,7 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.Call // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsAuthConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20833,8 +15918,6 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Pages(ctx context.Context } } -// method id "integrations.projects.locations.products.authConfigs.patch": - type ProjectsLocationsProductsAuthConfigsPatchCall struct { s *Service name string @@ -20844,11 +15927,11 @@ type ProjectsLocationsProductsAuthConfigsPatchCall struct { header_ http.Header } -// Patch: Updates an auth config. If credential is updated, fetch the -// encrypted auth config from Spanner, decrypt with Cloud KMS key, -// update the credential fields, re-encrypt with Cloud KMS key and -// update the Spanner record. For other fields, directly update the -// Spanner record. Returns the encrypted auth config. +// Patch: Updates an auth config. If credential is updated, fetch the encrypted +// auth config from Spanner, decrypt with Cloud KMS key, update the credential +// fields, re-encrypt with Cloud KMS key and update the Spanner record. For +// other fields, directly update the Spanner record. Returns the encrypted auth +// config. // // - name: Resource name of the SFDC instance // projects/{project}/locations/{location}/authConfigs/{authConfig}. @@ -20860,9 +15943,9 @@ func (r *ProjectsLocationsProductsAuthConfigsService) Patch(name string, googlec } // ClientCertificateEncryptedPrivateKey sets the optional parameter -// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded -// in PEM format. This string must include the begin header and end -// footer lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -20882,19 +15965,18 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificateEncrypt } // ClientCertificatePassphrase sets the optional parameter -// "clientCertificate.passphrase": 'passphrase' should be left unset if -// private key is not encrypted. Note that 'passphrase' is not the -// password for web server, but an extra layer of security to protected -// private key. +// "clientCertificate.passphrase": 'passphrase' should be left unset if private +// key is not encrypted. Note that 'passphrase' is not the password for web +// server, but an extra layer of security to protected private key. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsProductsAuthConfigsPatchCall { c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) return c } // ClientCertificateSslCertificate sets the optional parameter -// "clientCertificate.sslCertificate": The ssl certificate encoded in -// PEM format. This string must include the begin header and end footer -// lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.sslCertificate": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -20913,32 +15995,30 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificateSslCert return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above AuthConfig that have been modified -// and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above AuthConfig that have been modified and need to be +// updated. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsAuthConfigsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20947,18 +16027,12 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Header() http.Header { } func (c *ProjectsLocationsProductsAuthConfigsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -20971,18 +16045,15 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.authConfigs.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21013,59 +16084,7 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.authConfigs.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "clientCertificate.encryptedPrivateKey": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.passphrase": { - // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.sslCertificate": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.certificates.create": +} type ProjectsLocationsProductsCertificatesCreateCall struct { s *Service @@ -21076,9 +16095,9 @@ type ProjectsLocationsProductsCertificatesCreateCall struct { header_ http.Header } -// Create: Creates a new certificate. The certificate will be registered -// to the trawler service and will be encrypted using cloud KMS and -// stored in Spanner Returns the certificate. +// Create: Creates a new certificate. The certificate will be registered to the +// trawler service and will be encrypted using cloud KMS and stored in Spanner +// Returns the certificate. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsProductsCertificatesService) Create(parent string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsProductsCertificatesCreateCall { @@ -21089,23 +16108,21 @@ func (r *ProjectsLocationsProductsCertificatesService) Create(parent string, goo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCertificatesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21114,18 +16131,12 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) Header() http.Header { } func (c *ProjectsLocationsProductsCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/certificates") @@ -21138,18 +16149,15 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.certificates.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21180,38 +16188,7 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.certificates.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/certificates", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.certificates.delete": +} type ProjectsLocationsProductsCertificatesDeleteCall struct { s *Service @@ -21231,23 +16208,21 @@ func (r *ProjectsLocationsProductsCertificatesService) Delete(name string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCertificatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCertificatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCertificatesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21256,12 +16231,7 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsProductsCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -21275,16 +16245,15 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.certificates.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21315,35 +16284,7 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Delete a certificate", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.certificates.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the Certificate.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.certificates.get": +} type ProjectsLocationsProductsCertificatesGetCall struct { s *Service @@ -21365,33 +16306,29 @@ func (r *ProjectsLocationsProductsCertificatesService) Get(name string) *Project } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsCertificatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCertificatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21400,12 +16337,7 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) Header() http.Header { } func (c *ProjectsLocationsProductsCertificatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21422,18 +16354,15 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.certificates.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsCertificatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21464,35 +16393,7 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Get a certificates in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.certificates.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.certificates.list": +} type ProjectsLocationsProductsCertificatesListCall struct { s *Service @@ -21513,64 +16414,58 @@ func (r *ProjectsLocationsProductsCertificatesService) List(parent string) *Proj return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. func (c *ProjectsLocationsProductsCertificatesListCall) Filter(filter string) *ProjectsLocationsProductsCertificatesListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsProductsCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsProductsCertificatesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsProductsCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsProductsCertificatesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the Certificate's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the Certificate's response. func (c *ProjectsLocationsProductsCertificatesListCall) ReadMask(readMask string) *ProjectsLocationsProductsCertificatesListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsCertificatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCertificatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21579,12 +16474,7 @@ func (c *ProjectsLocationsProductsCertificatesListCall) Header() http.Header { } func (c *ProjectsLocationsProductsCertificatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21601,19 +16491,17 @@ func (c *ProjectsLocationsProductsCertificatesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.certificates.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListCertificatesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListCertificatesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListCertificatesResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsCertificatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListCertificatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21644,54 +16532,6 @@ func (c *ProjectsLocationsProductsCertificatesListCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "List all the certificates that match the filter. Restrict to certificate of current client only.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.certificates.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of Certificates.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the Certificate's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/certificates", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListCertificatesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -21699,7 +16539,7 @@ func (c *ProjectsLocationsProductsCertificatesListCall) Do(opts ...googleapi.Cal // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsCertificatesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListCertificatesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21715,8 +16555,6 @@ func (c *ProjectsLocationsProductsCertificatesListCall) Pages(ctx context.Contex } } -// method id "integrations.projects.locations.products.certificates.patch": - type ProjectsLocationsProductsCertificatesPatchCall struct { s *Service name string @@ -21726,10 +16564,10 @@ type ProjectsLocationsProductsCertificatesPatchCall struct { header_ http.Header } -// Patch: Updates the certificate by id. If new certificate file is -// updated, it will register with the trawler service, re-encrypt with -// cloud KMS and update the Spanner record. Other fields will directly -// update the Spanner record. Returns the Certificate. +// Patch: Updates the certificate by id. If new certificate file is updated, it +// will register with the trawler service, re-encrypt with cloud KMS and update +// the Spanner record. Other fields will directly update the Spanner record. +// Returns the Certificate. // // - name: Output only. Auto generated primary key. func (r *ProjectsLocationsProductsCertificatesService) Patch(name string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsProductsCertificatesPatchCall { @@ -21739,32 +16577,30 @@ func (r *ProjectsLocationsProductsCertificatesService) Patch(name string, google return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above Certificate that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above Certificate that have been modified and need to be +// updated. func (c *ProjectsLocationsProductsCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsCertificatesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCertificatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21773,18 +16609,12 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) Header() http.Header { } func (c *ProjectsLocationsProductsCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -21797,18 +16627,15 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.certificates.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21839,44 +16666,7 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.certificates.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Auto generated primary key", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above Certificate that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.cloudFunctions.create": +} type ProjectsLocationsProductsCloudFunctionsCreateCall struct { s *Service @@ -21898,23 +16688,21 @@ func (r *ProjectsLocationsProductsCloudFunctionsService) Create(parent string, g } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCloudFunctionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsCloudFunctionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21923,18 +16711,12 @@ func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) Header() http.Header } func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacreatecloudfunctionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudFunctions") @@ -21947,19 +16729,15 @@ func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.cloudFunctions.create" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse.ServerRespo -// nse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse.ServerResponse.Hea +// der or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21990,38 +16768,7 @@ func (c *ProjectsLocationsProductsCloudFunctionsCreateCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Creates an cloud function project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/cloudFunctions", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.cloudFunctions.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The project that the executed integration belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/cloudFunctions", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.archiveBundle": +} type ProjectsLocationsProductsIntegrationsArchiveBundleCall struct { s *Service @@ -22032,8 +16779,8 @@ type ProjectsLocationsProductsIntegrationsArchiveBundleCall struct { header_ http.Header } -// ArchiveBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE -// MOVED TO A SEPARATE SERVICE. Soft-deletes the bundle. +// ArchiveBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO +// A SEPARATE SERVICE. Soft-deletes the bundle. // // - name: The bundle to archive. Format: // projects/{project}/locations/{location}/integrations/{integration}. @@ -22045,23 +16792,21 @@ func (r *ProjectsLocationsProductsIntegrationsService) ArchiveBundle(name string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsArchiveBundleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsArchiveBundleCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22070,18 +16815,12 @@ func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Header() http.H } func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaarchivebundlerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:archiveBundle") @@ -22094,18 +16833,15 @@ func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.archiveBundle" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaArchiveBundleResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaArchiveBundleResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaArchiveBundleResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaArchiveBundleResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22136,38 +16872,7 @@ func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Soft-deletes the bundle.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:archiveBundle", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.archiveBundle", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The bundle to archive. Format: projects/{project}/locations/{location}/integrations/{integration}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:archiveBundle", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveBundleRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveBundleResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.execute": +} type ProjectsLocationsProductsIntegrationsExecuteCall struct { s *Service @@ -22178,13 +16883,13 @@ type ProjectsLocationsProductsIntegrationsExecuteCall struct { header_ http.Header } -// Execute: Executes integrations synchronously by passing the trigger -// id in the request body. The request is not returned until the -// requested executions are either fulfilled or experienced an error. If -// the integration name is not specified (passing `-`), all of the -// associated integration under the given trigger_id will be executed. -// Otherwise only the specified integration for the given `trigger_id` -// is executed. This is helpful for execution the integration from UI. +// Execute: Executes integrations synchronously by passing the trigger id in +// the request body. The request is not returned until the requested executions +// are either fulfilled or experienced an error. If the integration name is not +// specified (passing `-`), all of the associated integration under the given +// trigger_id will be executed. Otherwise only the specified integration for +// the given `trigger_id` is executed. This is helpful for execution the +// integration from UI. // // - name: The integration resource name. func (r *ProjectsLocationsProductsIntegrationsService) Execute(name string, googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) *ProjectsLocationsProductsIntegrationsExecuteCall { @@ -22195,23 +16900,21 @@ func (r *ProjectsLocationsProductsIntegrationsService) Execute(name string, goog } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecuteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecuteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22220,18 +16923,12 @@ func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Header() http.Header } func (c *ProjectsLocationsProductsIntegrationsExecuteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaexecuteintegrationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:execute") @@ -22244,19 +16941,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecuteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.execute" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerRespo -// nse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerResponse.Hea +// der or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22287,38 +16980,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:execute", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.execute", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The integration resource name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:execute", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.list": +} type ProjectsLocationsProductsIntegrationsListCall struct { s *Service @@ -22331,8 +16993,8 @@ type ProjectsLocationsProductsIntegrationsListCall struct { // List: Returns the list of all integrations in the specified project. // -// - parent: Project and location from which the integrations should be -// listed. Format: projects/{project}. +// - parent: Project and location from which the integrations should be listed. +// Format: projects/{project}. func (r *ProjectsLocationsProductsIntegrationsService) List(parent string) *ProjectsLocationsProductsIntegrationsListCall { c := &ProjectsLocationsProductsIntegrationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -22340,69 +17002,65 @@ func (r *ProjectsLocationsProductsIntegrationsService) List(parent string) *Proj } // Filter sets the optional parameter "filter": Filter on fields of -// IntegrationVersion. Fields can be compared with literal values by use -// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), -// >=" (greater than or equal to), "<=" (less than or equal to), and -// "!=" (inequality) operators. Negation, conjunction, and disjunction -// are written using NOT, AND, and OR keywords. For example, -// organization_id=\"1\" AND state=ACTIVE AND description:"test". -// Filtering cannot be performed on repeated fields like `task_config`. +// IntegrationVersion. Fields can be compared with literal values by use of ":" +// (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater +// than or equal to), "<=" (less than or equal to), and "!=" (inequality) +// operators. Negation, conjunction, and disjunction are written using NOT, +// AND, and OR keywords. For example, organization_id=\"1\" AND state=ACTIVE +// AND description:"test". Filtering cannot be performed on repeated fields +// like `task_config`. func (c *ProjectsLocationsProductsIntegrationsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Supported sort keys are: -// Descending sort order by "last_modified_time", "created_time", -// "snapshot_number". Ascending sort order by the integration name. +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Supported sort keys are: Descending sort order +// by "last_modified_time", "created_time", "snapshot_number". Ascending sort +// order by the integration name. func (c *ProjectsLocationsProductsIntegrationsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The page size for -// the resquest. +// PageSize sets the optional parameter "pageSize": The page size for the +// resquest. func (c *ProjectsLocationsProductsIntegrationsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token for -// the resquest. +// PageToken sets the optional parameter "pageToken": The page token for the +// resquest. func (c *ProjectsLocationsProductsIntegrationsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22411,12 +17069,7 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) Header() http.Header { } func (c *ProjectsLocationsProductsIntegrationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22433,19 +17086,17 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22476,53 +17127,6 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Returns the list of all integrations in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "The results would be returned in order you specified here. Supported sort keys are: Descending sort order by \"last_modified_time\", \"created_time\", \"snapshot_number\". Ascending sort order by the integration name.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The page size for the resquest.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The page token for the resquest.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Project and location from which the integrations should be listed. Format: projects/{project}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/integrations", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -22530,7 +17134,7 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) Do(opts ...googleapi.Cal // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsIntegrationsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -22546,8 +17150,6 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) Pages(ctx context.Contex } } -// method id "integrations.projects.locations.products.integrations.schedule": - type ProjectsLocationsProductsIntegrationsScheduleCall struct { s *Service name string @@ -22557,8 +17159,8 @@ type ProjectsLocationsProductsIntegrationsScheduleCall struct { header_ http.Header } -// Schedule: Schedules an integration for execution by passing the -// trigger id and the scheduled time in the request body. +// Schedule: Schedules an integration for execution by passing the trigger id +// and the scheduled time in the request body. // // - name: The integration resource name. func (r *ProjectsLocationsProductsIntegrationsService) Schedule(name string, googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) *ProjectsLocationsProductsIntegrationsScheduleCall { @@ -22569,23 +17171,21 @@ func (r *ProjectsLocationsProductsIntegrationsService) Schedule(name string, goo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsScheduleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsScheduleCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22594,18 +17194,12 @@ func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Header() http.Header } func (c *ProjectsLocationsProductsIntegrationsScheduleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphascheduleintegrationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:schedule") @@ -22618,19 +17212,15 @@ func (c *ProjectsLocationsProductsIntegrationsScheduleCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.schedule" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResp -// onse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22661,38 +17251,7 @@ func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:schedule", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.schedule", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The integration resource name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:schedule", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.test": +} type ProjectsLocationsProductsIntegrationsTestCall struct { s *Service @@ -22714,23 +17273,21 @@ func (r *ProjectsLocationsProductsIntegrationsService) Test(name string, googlec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsTestCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsTestCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsTestCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsTestCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsTestCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22739,18 +17296,12 @@ func (c *ProjectsLocationsProductsIntegrationsTestCall) Header() http.Header { } func (c *ProjectsLocationsProductsIntegrationsTestCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphatestintegrationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:test") @@ -22763,19 +17314,17 @@ func (c *ProjectsLocationsProductsIntegrationsTestCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.test" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaTestIntegrationsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaTestIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22806,38 +17355,7 @@ func (c *ProjectsLocationsProductsIntegrationsTestCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Execute the integration in draft state", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:test", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.test", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Auto-generated primary key.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:test", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaTestIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.cancel": +} type ProjectsLocationsProductsIntegrationsExecutionsCancelCall struct { s *Service @@ -22851,8 +17369,8 @@ type ProjectsLocationsProductsIntegrationsExecutionsCancelCall struct { // Cancel: Cancellation of an execution // // - name: The execution resource name. Format: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_id}/executions/{execution_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_id}/executions/{execution_id}. func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Cancel(name string, googlecloudintegrationsv1alphacancelexecutionrequest *GoogleCloudIntegrationsV1alphaCancelExecutionRequest) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { c := &ProjectsLocationsProductsIntegrationsExecutionsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -22861,23 +17379,21 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Cancel(name str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22886,18 +17402,12 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Header() htt } func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacancelexecutionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") @@ -22910,18 +17420,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.cancel" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCancelExecutionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaCancelExecutionResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCancelExecutionResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCancelExecutionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22952,38 +17459,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Cancellation of an execution", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}:cancel", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.executions.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:cancel", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.download": +} type ProjectsLocationsProductsIntegrationsExecutionsDownloadCall struct { s *Service @@ -22997,8 +17473,8 @@ type ProjectsLocationsProductsIntegrationsExecutionsDownloadCall struct { // Download: Download the execution. // // - name: The execution resource name. Format: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_id}/executions/{execution_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_id}/executions/{execution_id}. func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Download(name string) *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall { c := &ProjectsLocationsProductsIntegrationsExecutionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -23006,33 +17482,29 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Download(name s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23041,12 +17513,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) Header() h } func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23063,19 +17530,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.download" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadExecutionResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadExecutionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23106,35 +17569,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsDownloadCall) Do(opts .. return nil, err } return ret, nil - // { - // "description": "Download the execution.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}:download", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executions.download", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:download", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaDownloadExecutionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.get": +} type ProjectsLocationsProductsIntegrationsExecutionsGetCall struct { s *Service @@ -23148,8 +17583,8 @@ type ProjectsLocationsProductsIntegrationsExecutionsGetCall struct { // Get: Get an execution in the specified project. // // - name: The execution resource name. Format: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_id}/executions/{execution_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_id}/executions/{execution_id}. func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Get(name string) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { c := &ProjectsLocationsProductsIntegrationsExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -23157,33 +17592,29 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Get(name string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23192,12 +17623,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Header() http.H } func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23214,17 +17640,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaExecution or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaExecution.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaExecution.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecution, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23255,35 +17679,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Get an execution in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecution" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.list": +} type ProjectsLocationsProductsIntegrationsExecutionsListCall struct { s *Service @@ -23294,10 +17690,10 @@ type ProjectsLocationsProductsIntegrationsExecutionsListCall struct { header_ http.Header } -// List: Lists the results of all the integration executions. The -// response includes the same information as the execution log -// (https://cloud.google.com/application-integration/docs/viewing-logs) -// in the Integration UI. +// List: Lists the results of all the integration executions. The response +// includes the same information as the execution log +// (https://cloud.google.com/application-integration/docs/viewing-logs) in the +// Integration UI. // // - parent: The parent resource name of the integration execution. func (r *ProjectsLocationsProductsIntegrationsExecutionsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { @@ -23306,13 +17702,13 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsService) List(parent str return c } -// Filter sets the optional parameter "filter": Standard filter field, -// we support filtering on all fields in EventExecutionParamIndexes -// table. All fields support for EQUALS, in additional: CreateTimestamp -// support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, -// ParameterType support for HAS For example: "parameter_value" HAS -// \"parameter1\" Also supports operators like AND, OR, NOT For example, -// trigger_id=\"id1\" AND event_execution_state=\"FAILED\" +// Filter sets the optional parameter "filter": Standard filter field, we +// support filtering on all fields in EventExecutionParamIndexes table. All +// fields support for EQUALS, in additional: CreateTimestamp support for +// LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support +// for HAS For example: "parameter_value" HAS \"parameter1\" Also supports +// operators like AND, OR, NOT For example, trigger_id=\"id1\" AND +// event_execution_state=\"FAILED\" func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filter", filter) return c @@ -23325,8 +17721,8 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsCu return c } -// FilterParamsEndTime sets the optional parameter -// "filterParams.endTime": End timestamp. +// FilterParamsEndTime sets the optional parameter "filterParams.endTime": End +// timestamp. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsEndTime(filterParamsEndTime int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.endTime", fmt.Sprint(filterParamsEndTime)) return c @@ -23347,24 +17743,22 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsEx } // FilterParamsParameterKey sets the optional parameter -// "filterParams.parameterKey": Param key. DEPRECATED. User -// parameter_pair_key instead. +// "filterParams.parameterKey": Param key. DEPRECATED. User parameter_pair_key +// instead. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterKey(filterParamsParameterKey string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterKey", filterParamsParameterKey) return c } // FilterParamsParameterPairKey sets the optional parameter -// "filterParams.parameterPairKey": Param key in the key value pair -// filter. +// "filterParams.parameterPairKey": Param key in the key value pair filter. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterPairKey(filterParamsParameterPairKey string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterPairKey", filterParamsParameterPairKey) return c } // FilterParamsParameterPairValue sets the optional parameter -// "filterParams.parameterPairValue": Param value in the key value pair -// filter. +// "filterParams.parameterPairValue": Param value in the key value pair filter. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterPairValue(filterParamsParameterPairValue string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterPairValue", filterParamsParameterPairValue) return c @@ -23385,8 +17779,8 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsPa return c } -// FilterParamsStartTime sets the optional parameter -// "filterParams.startTime": Start timestamp. +// FilterParamsStartTime sets the optional parameter "filterParams.startTime": +// Start timestamp. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsStartTime(filterParamsStartTime int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.startTime", fmt.Sprint(filterParamsStartTime)) return c @@ -23406,84 +17800,79 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsWo return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Currently supporting -// "last_modified_time" and "create_time". +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Currently supporting "last_modified_time" and +// "create_time". func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": View mask for the -// response data. If set, only the field specified will be returned as -// part of the result. If not set, all fields in event execution info -// will be filled and returned. +// ReadMask sets the optional parameter "readMask": View mask for the response +// data. If set, only the field specified will be returned as part of the +// result. If not set, all fields in event execution info will be filled and +// returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) ReadMask(readMask string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("readMask", readMask) return c } -// RefreshAcl sets the optional parameter "refreshAcl": If true, the -// service will use the most recent acl information to list event -// execution infos and renew the acl cache. Note that fetching the most -// recent acl is synchronous, so it will increase RPC call latency. +// RefreshAcl sets the optional parameter "refreshAcl": If true, the service +// will use the most recent acl information to list event execution infos and +// renew the acl cache. Note that fetching the most recent acl is synchronous, +// so it will increase RPC call latency. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) RefreshAcl(refreshAcl bool) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("refreshAcl", fmt.Sprint(refreshAcl)) return c } -// TruncateParams sets the optional parameter "truncateParams": If true, -// the service will truncate the params to only keep the first 1000 -// characters of string params and empty the executions in order to make -// response smaller. Only works for UI and when the params fields are -// not filtered out. +// TruncateParams sets the optional parameter "truncateParams": If true, the +// service will truncate the params to only keep the first 1000 characters of +// string params and empty the executions in order to make response smaller. +// Only works for UI and when the params fields are not filtered out. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) TruncateParams(truncateParams bool) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("truncateParams", fmt.Sprint(truncateParams)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23492,12 +17881,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Header() http. } func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23514,18 +17898,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListExecutionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23556,133 +17937,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", - // "location": "query", - // "type": "string" - // }, - // "filterParams.customFilter": { - // "description": "Optional user-provided custom filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.endTime": { - // "description": "End timestamp.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filterParams.eventStatuses": { - // "description": "List of possible event statuses.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "filterParams.executionId": { - // "description": "Execution id.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterKey": { - // "description": "Param key. DEPRECATED. User parameter_pair_key instead.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterPairKey": { - // "description": "Param key in the key value pair filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterPairValue": { - // "description": "Param value in the key value pair filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterType": { - // "description": "Param type.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterValue": { - // "description": "Param value. DEPRECATED. User parameter_pair_value instead.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.startTime": { - // "description": "Start timestamp.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filterParams.taskStatuses": { - // "description": "List of possible task statuses.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "filterParams.workflowName": { - // "description": "Workflow name.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. The results would be returned in order you specified here. Currently supporting \"last_modified_time\" and \"create_time\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The size of entries in the response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource name of the integration execution.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "refreshAcl": { - // "description": "Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency.", - // "location": "query", - // "type": "boolean" - // }, - // "truncateParams": { - // "description": "Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1/{+parent}/executions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -23690,7 +17944,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...goo // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -23706,8 +17960,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Pages(ctx cont } } -// method id "integrations.projects.locations.products.integrations.executions.suspensions.lift": - type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall struct { s *Service name string @@ -23717,14 +17969,13 @@ type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall struct { header_ http.Header } -// Lift: * Lifts suspension for advanced suspension task. Fetch -// corresponding suspension with provided suspension Id, resolve -// suspension, and set up suspension result for the Suspension Task. +// Lift: * Lifts suspension for advanced suspension task. Fetch corresponding +// suspension with provided suspension Id, resolve suspension, and set up +// suspension result for the Suspension Task. // // - name: The resource that the suspension belongs to. -// "projects/{project}/locations/{location}/products/{product}/integrat -// ions/{integration}/executions/{execution}/suspensions/{suspenion}" -// format. +// "projects/{project}/locations/{location}/products/{product}/integrations/{i +// ntegration}/executions/{execution}/suspensions/{suspenion}" format. func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Lift(name string, googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -23733,23 +17984,21 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Lift } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23758,18 +18007,12 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Hea } func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaliftsuspensionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:lift") @@ -23782,18 +18025,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.lift" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLiftSuspensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23824,38 +18064,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Do( return nil, err } return ret, nil - // { - // "description": "* Lifts suspension for advanced suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:lift", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.executions.suspensions.lift", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource that the suspension belongs to. \"projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:lift", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.suspensions.list": +} type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall struct { s *Service @@ -23866,13 +18075,13 @@ type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall struct { header_ http.Header } -// List: * Lists suspensions associated with a specific execution. Only -// those with permissions to resolve the relevant suspensions will be -// able to view them. +// List: * Lists suspensions associated with a specific execution. Only those +// with permissions to resolve the relevant suspensions will be able to view +// them. // // - parent: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_name}/executions/{execution_name}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_name}/executions/{execution_name}. func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -23885,55 +18094,50 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Fil return c } -// OrderBy sets the optional parameter "orderBy": Field name to order -// by. +// OrderBy sets the optional parameter "orderBy": Field name to order by. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// entries in the response. +// PageSize sets the optional parameter "pageSize": Maximum number of entries +// in the response. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token to retrieve -// a specific page. +// PageToken sets the optional parameter "pageToken": Token to retrieve a +// specific page. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23942,12 +18146,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Hea } func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23964,18 +18163,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) doR googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListSuspensionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSuspensionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24006,53 +18202,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do( return nil, err } return ret, nil - // { - // "description": "* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executions.suspensions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Standard filter field.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field name to order by.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum number of entries in the response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token to retrieve a specific page.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/suspensions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -24060,7 +18209,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSuspensionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -24076,8 +18225,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Pag } } -// method id "integrations.projects.locations.products.integrations.executions.suspensions.resolve": - type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall struct { s *Service name string @@ -24089,13 +18236,12 @@ type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall struc // Resolve: * Resolves (lifts/rejects) any number of suspensions. If the // integration is already running, only the status of the suspension is -// updated. Otherwise, the suspended integration will begin execution -// again. +// updated. Otherwise, the suspended integration will begin execution again. // // - name: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_name}/executions/{execution_name}/suspension -// s/{suspension_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_name}/executions/{execution_name}/suspensions/{suspension_ +// id}. func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Resolve(name string, googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -24104,23 +18250,21 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Reso } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24129,18 +18273,12 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) } func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alpharesolvesuspensionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:resolve") @@ -24153,19 +18291,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.resolve" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaResolveSuspensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24196,38 +18330,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) return nil, err } return ret, nil - // { - // "description": "* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:resolve", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.executions.suspensions.resolve", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:resolve", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executionsnapshots.list": +} type ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall struct { s *Service @@ -24238,8 +18341,8 @@ type ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall struct { header_ http.Header } -// List: Lists the snapshots of a given integration executions. This RPC -// is not being used. +// List: Lists the snapshots of a given integration executions. This RPC is not +// being used. // // - parent: The parent resource name of the integration execution. func (r *ProjectsLocationsProductsIntegrationsExecutionsnapshotsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { @@ -24248,15 +18351,15 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsnapshotsService) List(pa return c } -// Filter sets the optional parameter "filter": Currently supports -// filter by `execution_info_id` or `execution_snapshot_id`. +// Filter sets the optional parameter "filter": Currently supports filter by +// `execution_info_id` or `execution_snapshot_id`. func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": Number of entries to -// be returned in a page. +// PageSize sets the optional parameter "pageSize": Number of entries to be +// returned in a page. func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -24269,43 +18372,39 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) PageTo return c } -// ReadMask sets the optional parameter "readMask": View mask for the -// response data. If set, only the field specified will be returned as -// part of the result. If not set, all fields in event execution -// snapshot will be filled and returned. +// ReadMask sets the optional parameter "readMask": View mask for the response +// data. If set, only the field specified will be returned as part of the +// result. If not set, all fields in event execution snapshot will be filled +// and returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) ReadMask(readMask string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24314,12 +18413,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Header } func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24336,19 +18430,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executionsnapshots.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse.ServerRe -// sponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse.ServerResponse. +// Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24379,54 +18469,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Do(opt return nil, err } return ret, nil - // { - // "description": "Lists the snapshots of a given integration executions. This RPC is not being used.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executionsnapshots", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executionsnapshots.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Currently supports filter by `execution_info_id` or `execution_snapshot_id`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Number of entries to be returned in a page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token used to retrieve the next page results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource name of the integration execution.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution snapshot will be filled and returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/executionsnapshots", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -24434,7 +18476,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Do(opt // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -24450,8 +18492,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsnapshotsListCall) Pages( } } -// method id "integrations.projects.locations.products.integrations.versions.archive": - type ProjectsLocationsProductsIntegrationsVersionsArchiveCall struct { s *Service name string @@ -24461,20 +18501,19 @@ type ProjectsLocationsProductsIntegrationsVersionsArchiveCall struct { header_ http.Header } -// Archive: Soft-deletes the integration. Changes the status of the -// integration to ARCHIVED. If the integration being ARCHIVED is tagged -// as "HEAD", the tag is removed from this snapshot and set to the -// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, -// DUE_FOR_DELETION tags are removed too. This RPC throws an exception -// if the version being archived is DRAFT, and if the `locked_by` user -// is not the same as the user performing the Archive. Audit fields -// updated include last_modified_timestamp, last_modified_by. Any -// existing lock is released when Archiving a integration. Currently, -// there is no unarchive mechanism. +// Archive: Soft-deletes the integration. Changes the status of the integration +// to ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag +// is removed from this snapshot and set to the previous non-ARCHIVED snapshot. +// The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC +// throws an exception if the version being archived is DRAFT, and if the +// `locked_by` user is not the same as the user performing the Archive. Audit +// fields updated include last_modified_timestamp, last_modified_by. Any +// existing lock is released when Archiving a integration. Currently, there is +// no unarchive mechanism. // // - name: The version to archive. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Archive(name string, googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsArchiveCall { c := &ProjectsLocationsProductsIntegrationsVersionsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -24483,23 +18522,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Archive(name stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsArchiveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsArchiveCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24508,18 +18545,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Header() http } func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaarchiveintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:archive") @@ -24532,19 +18563,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.archive" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24575,38 +18602,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being archived is DRAFT, and if the `locked_by` user is not the same as the user performing the Archive. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Archiving a integration. Currently, there is no unarchive mechanism.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:archive", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.archive", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:archive", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.create": +} type ProjectsLocationsProductsIntegrationsVersionsCreateCall struct { s *Service @@ -24617,11 +18613,9 @@ type ProjectsLocationsProductsIntegrationsVersionsCreateCall struct { header_ http.Header } -// Create: Create a integration with a draft version in the specified -// project. +// Create: Create a integration with a draft version in the specified project. // -// - parent: The parent resource where this version will be created. -// Format: +// - parent: The parent resource where this version will be created. Format: // projects/{project}/locations/{location}/integrations/{integration}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c := &ProjectsLocationsProductsIntegrationsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -24630,35 +18624,32 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Create(parent str return c } -// NewIntegration sets the optional parameter "newIntegration": Set this -// flag to true, if draft version is to be created for a brand new -// integration. False, if the request is for an existing integration. -// For backward compatibility reasons, even if this flag is set to -// `false` and no existing integration is found, a new draft integration -// will still be created. +// NewIntegration sets the optional parameter "newIntegration": Set this flag +// to true, if draft version is to be created for a brand new integration. +// False, if the request is for an existing integration. For backward +// compatibility reasons, even if this flag is set to `false` and no existing +// integration is found, a new draft integration will still be created. func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) NewIntegration(newIntegration bool) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c.urlParams_.Set("newIntegration", fmt.Sprint(newIntegration)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24667,18 +18658,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Header() http. } func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions") @@ -24691,18 +18676,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24733,43 +18715,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Create a integration with a draft version in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "newIntegration": { - // "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created.", - // "location": "query", - // "type": "boolean" - // }, - // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/versions", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.deactivate": +} type ProjectsLocationsProductsIntegrationsVersionsDeactivateCall struct { s *Service @@ -24780,15 +18726,15 @@ type ProjectsLocationsProductsIntegrationsVersionsDeactivateCall struct { header_ http.Header } -// Deactivate: Sets the status of the ACTIVE integration to SNAPSHOT -// with a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" -// and "PUBLISH_REQUESTED" tags do not change. This RPC throws an -// exception if the version being snapshot is not ACTIVE. Audit fields -// added include action, action_by, action_timestamp. +// Deactivate: Sets the status of the ACTIVE integration to SNAPSHOT with a new +// tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and +// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception if the +// version being snapshot is not ACTIVE. Audit fields added include action, +// action_by, action_timestamp. // // - name: The version to deactivate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Deactivate(name string, googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall { c := &ProjectsLocationsProductsIntegrationsVersionsDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -24797,23 +18743,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Deactivate(name s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24822,18 +18766,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Header() h } func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphadeactivateintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:deactivate") @@ -24846,19 +18784,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.deactivate" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse.Se -// rverResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse.ServerRes +// ponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24889,38 +18823,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Do(opts .. return nil, err } return ret, nil - // { - // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:deactivate", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.deactivate", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:deactivate", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.delete": +} type ProjectsLocationsProductsIntegrationsVersionsDeleteCall struct { s *Service @@ -24930,20 +18833,19 @@ type ProjectsLocationsProductsIntegrationsVersionsDeleteCall struct { header_ http.Header } -// Delete: Soft-deletes the integration. Changes the status of the -// integration to ARCHIVED. If the integration being ARCHIVED is tagged -// as "HEAD", the tag is removed from this snapshot and set to the -// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, -// DUE_FOR_DELETION tags are removed too. This RPC throws an exception -// if the version being deleted is DRAFT, and if the `locked_by` user is -// not the same as the user performing the Delete. Audit fields updated -// include last_modified_timestamp, last_modified_by. Any existing lock -// is released when Deleting a integration. Currently, there is no -// undelete mechanism. +// Delete: Soft-deletes the integration. Changes the status of the integration +// to ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag +// is removed from this snapshot and set to the previous non-ARCHIVED snapshot. +// The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC +// throws an exception if the version being deleted is DRAFT, and if the +// `locked_by` user is not the same as the user performing the Delete. Audit +// fields updated include last_modified_timestamp, last_modified_by. Any +// existing lock is released when Deleting a integration. Currently, there is +// no undelete mechanism. // // - name: The version to delete. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Delete(name string) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { c := &ProjectsLocationsProductsIntegrationsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -24951,23 +18853,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Delete(name strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24976,12 +18876,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Header() http. } func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -24995,16 +18890,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25035,35 +18929,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.integrations.versions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.download": +} type ProjectsLocationsProductsIntegrationsVersionsDownloadCall struct { s *Service @@ -25074,13 +18940,12 @@ type ProjectsLocationsProductsIntegrationsVersionsDownloadCall struct { header_ http.Header } -// Download: Downloads an integration. Retrieves the -// `IntegrationVersion` for a given `integration_id` and returns the -// response as a string. +// Download: Downloads an integration. Retrieves the `IntegrationVersion` for a +// given `integration_id` and returns the response as a string. // // - name: The version to download. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Download(name string) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { c := &ProjectsLocationsProductsIntegrationsVersionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -25101,33 +18966,29 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) FileFormat(f } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25136,12 +18997,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Header() htt } func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25158,19 +19014,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.download" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.ServerRespo +// nse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25201,50 +19053,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:download", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.versions.download", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "fileFormat": { - // "description": "File format for download request.", - // "enum": [ - // "FILE_FORMAT_UNSPECIFIED", - // "JSON", - // "YAML" - // ], - // "enumDescriptions": [ - // "Unspecified file format", - // "JSON File Format", - // "YAML File Format" - // ], - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:download", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.get": +} type ProjectsLocationsProductsIntegrationsVersionsGetCall struct { s *Service @@ -25258,8 +19067,8 @@ type ProjectsLocationsProductsIntegrationsVersionsGetCall struct { // Get: Get a integration in the specified project. // // - name: The version to retrieve. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Get(name string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c := &ProjectsLocationsProductsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -25267,33 +19076,29 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Get(name string) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25302,12 +19107,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Header() http.Hea } func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25324,18 +19124,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25366,35 +19163,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Get a integration in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.versions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.getBundle": +} type ProjectsLocationsProductsIntegrationsVersionsGetBundleCall struct { s *Service @@ -25405,8 +19174,8 @@ type ProjectsLocationsProductsIntegrationsVersionsGetBundleCall struct { header_ http.Header } -// GetBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED -// TO A SEPARATE SERVICE. RPC to get details of the Bundle +// GetBundle: PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A +// SEPARATE SERVICE. RPC to get details of the Bundle // // - name: The bundle name. func (r *ProjectsLocationsProductsIntegrationsVersionsService) GetBundle(name string) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { @@ -25416,33 +19185,29 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) GetBundle(name st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25451,12 +19216,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Header() ht } func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25473,20 +19233,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.getBundle" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaGetBundleResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaGetBundleResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaGetBundleResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaGetBundleResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25517,35 +19272,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetBundleCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "PROTECT WITH A VISIBILITY LABEL. THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to get details of the Bundle", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:getBundle", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.versions.getBundle", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The bundle name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:getBundle", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaGetBundleResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.list": +} type ProjectsLocationsProductsIntegrationsVersionsListCall struct { s *Service @@ -25556,101 +19283,93 @@ type ProjectsLocationsProductsIntegrationsVersionsListCall struct { header_ http.Header } -// List: Returns the list of all integration versions in the specified -// project. +// List: Returns the list of all integration versions in the specified project. // -// - parent: The parent resource where this version will be created. -// Format: +// - parent: The parent resource where this version will be created. Format: // projects/{project}/locations/{location}/integrations/{integration} -// Specifically, when parent equals: 1. -// projects//locations//integrations/, Meaning: "List versions (with -// filter) for a particular integration". 2. -// projects//locations//integrations/- Meaning: "List versions (with -// filter) for a client within a particular region". 3. -// projects//locations/-/integrations/- Meaning: "List versions (with -// filter) for a client". +// Specifically, when parent equals: 1. projects//locations//integrations/, +// Meaning: "List versions (with filter) for a particular integration". 2. +// projects//locations//integrations/- Meaning: "List versions (with filter) +// for a client within a particular region". 3. +// projects//locations/-/integrations/- Meaning: "List versions (with filter) +// for a client". func (r *ProjectsLocationsProductsIntegrationsVersionsService) List(parent string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c := &ProjectsLocationsProductsIntegrationsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// FieldMask sets the optional parameter "fieldMask": The field mask -// which specifies the particular data to be returned. +// FieldMask sets the optional parameter "fieldMask": The field mask which +// specifies the particular data to be returned. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) FieldMask(fieldMask string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("fieldMask", fieldMask) return c } // Filter sets the optional parameter "filter": Filter on fields of -// IntegrationVersion. Fields can be compared with literal values by use -// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), -// >=" (greater than or equal to), "<=" (less than or equal to), and -// "!=" (inequality) operators. Negation, conjunction, and disjunction -// are written using NOT, AND, and OR keywords. For example, -// organization_id=\"1\" AND state=ACTIVE AND description:"test". -// Filtering cannot be performed on repeated fields like `task_config`. +// IntegrationVersion. Fields can be compared with literal values by use of ":" +// (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater +// than or equal to), "<=" (less than or equal to), and "!=" (inequality) +// operators. Negation, conjunction, and disjunction are written using NOT, +// AND, and OR keywords. For example, organization_id=\"1\" AND state=ACTIVE +// AND description:"test". Filtering cannot be performed on repeated fields +// like `task_config`. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Currently supported sort keys -// are: Descending sort order for "last_modified_time", "created_time", -// "snapshot_number" Ascending sort order for "name". +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Currently supported sort keys are: Descending +// sort order for "last_modified_time", "created_time", "snapshot_number" +// Ascending sort order for "name". func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of versions to return. The service may return fewer than this value. -// If unspecified, at most 50 versions will be returned. The maximum -// value is 1000; values above 1000 will be coerced to 1000. +// PageSize sets the optional parameter "pageSize": The maximum number of +// versions to return. The service may return fewer than this value. If +// unspecified, at most 50 versions will be returned. The maximum value is +// 1000; values above 1000 will be coerced to 1000. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListIntegrationVersions` call. Provide this -// to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListIntegrationVersions` must match the call -// that provided the page token. +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListIntegrationVersions` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListIntegrationVersions` must match the call that provided the page token. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25659,12 +19378,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Header() http.He } func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25681,19 +19395,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerR -// esponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25724,59 +19434,6 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Returns the list of all integration versions in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.versions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "fieldMask": { - // "description": "The field mask which specifies the particular data to be returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for \"last_modified_time\", \"created_time\", \"snapshot_number\" Ascending sort order for \"name\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/versions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -25784,7 +19441,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Do(opts ...googl // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -25800,8 +19457,6 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Pages(ctx contex } } -// method id "integrations.projects.locations.products.integrations.versions.patch": - type ProjectsLocationsProductsIntegrationsVersionsPatchCall struct { s *Service name string @@ -25811,8 +19466,7 @@ type ProjectsLocationsProductsIntegrationsVersionsPatchCall struct { header_ http.Header } -// Patch: Update a integration with a draft version in the specified -// project. +// Patch: Update a integration with a draft version in the specified project. // // - name: Output only. Auto-generated primary key. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Patch(name string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { @@ -25822,32 +19476,30 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Patch(name string return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above integration that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above integration that have been modified and need to be +// updated. func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25856,18 +19508,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Header() http.H } func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -25880,18 +19526,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25922,44 +19565,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Update a integration with a draft version in the specified project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.integrations.versions.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Auto-generated primary key.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above integration that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.publish": +} type ProjectsLocationsProductsIntegrationsVersionsPublishCall struct { s *Service @@ -25970,17 +19576,16 @@ type ProjectsLocationsProductsIntegrationsVersionsPublishCall struct { header_ http.Header } -// Publish: This RPC throws an exception if the integration is in -// ARCHIVED or ACTIVE state. This RPC throws an exception if the version -// being published is DRAFT, and if the `locked_by` user is not the same -// as the user performing the Publish. Audit fields updated include -// last_published_timestamp, last_published_by, last_modified_timestamp, -// last_modified_by. Any existing lock is on this integration is -// released. +// Publish: This RPC throws an exception if the integration is in ARCHIVED or +// ACTIVE state. This RPC throws an exception if the version being published is +// DRAFT, and if the `locked_by` user is not the same as the user performing +// the Publish. Audit fields updated include last_published_timestamp, +// last_published_by, last_modified_timestamp, last_modified_by. Any existing +// lock is on this integration is released. // // - name: The version to publish. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Publish(name string, googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsPublishCall { c := &ProjectsLocationsProductsIntegrationsVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -25989,23 +19594,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Publish(name stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsPublishCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsPublishCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26014,18 +19617,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Header() http } func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphapublishintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:publish") @@ -26038,19 +19635,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.publish" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26081,38 +19674,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:publish", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.publish", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:publish", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.takeoverEditLock": +} type ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall struct { s *Service @@ -26123,22 +19685,21 @@ type ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall struct { header_ http.Header } -// TakeoverEditLock: Clears the `locked_by` and `locked_at_timestamp`in -// the DRAFT version of this integration. It then performs the same -// action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT -// version of the integration as a SNAPSHOT and then creates a new DRAFT -// version with the `locked_by` set to the `user_taking_over` and the -// `locked_at_timestamp` set to the current timestamp). Both the -// `locked_by` and `user_taking_over` are notified via email about the -// takeover. This RPC throws an exception if the integration is not in -// DRAFT status or if the `locked_by` and `locked_at_timestamp` fields -// are not set.The TakeoverEdit lock is treated the same as an edit of -// the integration, and hence shares ACLs with edit. Audit fields -// updated include last_modified_timestamp, last_modified_by. +// TakeoverEditLock: Clears the `locked_by` and `locked_at_timestamp`in the +// DRAFT version of this integration. It then performs the same action as the +// CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the +// integration as a SNAPSHOT and then creates a new DRAFT version with the +// `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set +// to the current timestamp). Both the `locked_by` and `user_taking_over` are +// notified via email about the takeover. This RPC throws an exception if the +// integration is not in DRAFT status or if the `locked_by` and +// `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated +// the same as an edit of the integration, and hence shares ACLs with edit. +// Audit fields updated include last_modified_timestamp, last_modified_by. // // - integrationVersion: The version to take over edit lock. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) TakeoverEditLock(integrationVersion string, googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest) *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall { c := &ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.integrationVersion = integrationVersion @@ -26147,23 +19708,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) TakeoverEditLock( } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26172,18 +19731,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Head } func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphatakeovereditlockrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+integrationVersion}:takeoverEditLock") @@ -26196,19 +19749,17 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) doRe googleapi.Expand(req.URL, map[string]string{ "integrationVersion": c.integrationVersion, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.takeoverEditLock" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26239,38 +19790,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Do(o return nil, err } return ret, nil - // { - // "description": "Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this integration. It then performs the same action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the integration as a SNAPSHOT and then creates a new DRAFT version with the `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to the current timestamp). Both the `locked_by` and `user_taking_over` are notified via email about the takeover. This RPC throws an exception if the integration is not in DRAFT status or if the `locked_by` and `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the same as an edit of the integration, and hence shares ACLs with edit. Audit fields updated include last_modified_timestamp, last_modified_by.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:takeoverEditLock", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.takeoverEditLock", - // "parameterOrder": [ - // "integrationVersion" - // ], - // "parameters": { - // "integrationVersion": { - // "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+integrationVersion}:takeoverEditLock", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.unpublish": +} type ProjectsLocationsProductsIntegrationsVersionsUnpublishCall struct { s *Service @@ -26281,15 +19801,15 @@ type ProjectsLocationsProductsIntegrationsVersionsUnpublishCall struct { header_ http.Header } -// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with -// a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and -// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception -// if the version being snapshot is not ACTIVE. Audit fields added -// include action, action_by, action_timestamp. +// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with a new +// tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and +// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception if the +// version being snapshot is not ACTIVE. Audit fields added include action, +// action_by, action_timestamp. // // - name: The version to deactivate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Unpublish(name string, googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { c := &ProjectsLocationsProductsIntegrationsVersionsUnpublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -26298,23 +19818,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Unpublish(name st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26323,18 +19841,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Header() ht } func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:unpublish") @@ -26347,16 +19859,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.unpublish" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26387,38 +19898,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.unpublish", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:unpublish", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.updateBundle": +} type ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall struct { s *Service @@ -26429,8 +19909,8 @@ type ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall struct { header_ http.Header } -// UpdateBundle: THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to -// update the Bundle +// UpdateBundle: THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to update +// the Bundle // // - name: Bundle name. func (r *ProjectsLocationsProductsIntegrationsVersionsService) UpdateBundle(name string, googlecloudintegrationsv1alphaupdatebundlerequest *GoogleCloudIntegrationsV1alphaUpdateBundleRequest) *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall { @@ -26441,23 +19921,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) UpdateBundle(name } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26466,18 +19944,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Header() } func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaupdatebundlerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:updateBundle") @@ -26490,18 +19962,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.updateBundle" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaUpdateBundleResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaUpdateBundleResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaUpdateBundleResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaUpdateBundleResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26532,38 +20001,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall) Do(opts return nil, err } return ret, nil - // { - // "description": "THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to update the Bundle", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:updateBundle", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.integrations.versions.updateBundle", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Bundle name", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:updateBundle", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaUpdateBundleRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaUpdateBundleResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.upload": +} type ProjectsLocationsProductsIntegrationsVersionsUploadCall struct { s *Service @@ -26574,11 +20012,10 @@ type ProjectsLocationsProductsIntegrationsVersionsUploadCall struct { header_ http.Header } -// Upload: Uploads an integration. The content can be a previously -// downloaded integration. Performs the same function as -// CreateDraftIntegrationVersion, but accepts input in a string format, -// which holds the complete representation of the IntegrationVersion -// content. +// Upload: Uploads an integration. The content can be a previously downloaded +// integration. Performs the same function as CreateDraftIntegrationVersion, +// but accepts input in a string format, which holds the complete +// representation of the IntegrationVersion content. // // - parent: The version to upload. Format: // projects/{project}/locations/{location}/integrations/{integration}. @@ -26590,23 +20027,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Upload(parent str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsUploadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26615,18 +20050,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Header() http. } func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphauploadintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions:upload") @@ -26639,19 +20068,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.upload" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26682,38 +20107,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions:upload", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.upload", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/versions:upload", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.validate": +} type ProjectsLocationsProductsIntegrationsVersionsValidateCall struct { s *Service @@ -26725,13 +20119,12 @@ type ProjectsLocationsProductsIntegrationsVersionsValidateCall struct { } // Validate: Validates the given integration. If the id doesn't exist, a -// NotFoundException is thrown. If validation fails a -// CanonicalCodeException is thrown. If there was no failure an empty -// response is returned. +// NotFoundException is thrown. If validation fails a CanonicalCodeException is +// thrown. If there was no failure an empty response is returned. // // - name: The version to validate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Validate(name string, googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsValidateCall { c := &ProjectsLocationsProductsIntegrationsVersionsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -26740,23 +20133,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Validate(name str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsValidateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsValidateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26765,18 +20156,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Header() htt } func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphavalidateintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:validate") @@ -26789,19 +20174,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.validate" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse.ServerRespo +// nse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26832,38 +20213,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:validate", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.validate", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:validate", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaValidateIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.create": +} type ProjectsLocationsProductsSfdcInstancesCreateCall struct { s *Service @@ -26874,8 +20224,8 @@ type ProjectsLocationsProductsSfdcInstancesCreateCall struct { header_ http.Header } -// Create: Creates an sfdc instance record. Store the sfdc instance in -// Spanner. Returns the sfdc instance. +// Create: Creates an sfdc instance record. Store the sfdc instance in Spanner. +// Returns the sfdc instance. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsProductsSfdcInstancesService) Create(parent string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsProductsSfdcInstancesCreateCall { @@ -26886,23 +20236,21 @@ func (r *ProjectsLocationsProductsSfdcInstancesService) Create(parent string, go } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26911,18 +20259,12 @@ func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Header() http.Header } func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcInstances") @@ -26935,18 +20277,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26977,38 +20316,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.sfdcInstances.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/sfdcInstances", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.delete": +} type ProjectsLocationsProductsSfdcInstancesDeleteCall struct { s *Service @@ -27028,23 +20336,21 @@ func (r *ProjectsLocationsProductsSfdcInstancesService) Delete(name string) *Pro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27053,12 +20359,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Header() http.Header } func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -27072,16 +20373,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27112,35 +20412,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Deletes an sfdc instance.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.sfdcInstances.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcInstance.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.get": +} type ProjectsLocationsProductsSfdcInstancesGetCall struct { s *Service @@ -27151,8 +20423,8 @@ type ProjectsLocationsProductsSfdcInstancesGetCall struct { header_ http.Header } -// Get: Gets an sfdc instance. If the instance doesn't exist, -// Code.NOT_FOUND exception will be thrown. +// Get: Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND +// exception will be thrown. // // - name: The name that is associated with the SfdcInstance. func (r *ProjectsLocationsProductsSfdcInstancesService) Get(name string) *ProjectsLocationsProductsSfdcInstancesGetCall { @@ -27162,33 +20434,29 @@ func (r *ProjectsLocationsProductsSfdcInstancesService) Get(name string) *Projec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsSfdcInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27197,12 +20465,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Header() http.Header { } func (c *ProjectsLocationsProductsSfdcInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27219,18 +20482,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27261,35 +20521,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.sfdcInstances.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcInstance.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.list": +} type ProjectsLocationsProductsSfdcInstancesListCall struct { s *Service @@ -27300,8 +20532,8 @@ type ProjectsLocationsProductsSfdcInstancesListCall struct { header_ http.Header } -// List: Lists all sfdc instances that match the filter. Restrict to -// sfdc instances belonging to the current client only. +// List: Lists all sfdc instances that match the filter. Restrict to sfdc +// instances belonging to the current client only. // // - parent: The client, which owns this collection of SfdcInstances. func (r *ProjectsLocationsProductsSfdcInstancesService) List(parent string) *ProjectsLocationsProductsSfdcInstancesListCall { @@ -27310,64 +20542,58 @@ func (r *ProjectsLocationsProductsSfdcInstancesService) List(parent string) *Pro return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Filter(filter string) *ProjectsLocationsProductsSfdcInstancesListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsProductsSfdcInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsProductsSfdcInstancesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsProductsSfdcInstancesListCall) PageToken(pageToken string) *ProjectsLocationsProductsSfdcInstancesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the SfdcInstance's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the SfdcInstance's response. func (c *ProjectsLocationsProductsSfdcInstancesListCall) ReadMask(readMask string) *ProjectsLocationsProductsSfdcInstancesListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsSfdcInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27376,12 +20602,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesListCall) Header() http.Header { } func (c *ProjectsLocationsProductsSfdcInstancesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -27398,19 +20619,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27441,54 +20658,6 @@ func (c *ProjectsLocationsProductsSfdcInstancesListCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.sfdcInstances.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of SfdcInstances.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the SfdcInstance's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/sfdcInstances", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -27496,7 +20665,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesListCall) Do(opts ...googleapi.Ca // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -27512,8 +20681,6 @@ func (c *ProjectsLocationsProductsSfdcInstancesListCall) Pages(ctx context.Conte } } -// method id "integrations.projects.locations.products.sfdcInstances.patch": - type ProjectsLocationsProductsSfdcInstancesPatchCall struct { s *Service name string @@ -27523,12 +20690,11 @@ type ProjectsLocationsProductsSfdcInstancesPatchCall struct { header_ http.Header } -// Patch: Updates an sfdc instance. Updates the sfdc instance in -// spanner. Returns the sfdc instance. +// Patch: Updates an sfdc instance. Updates the sfdc instance in spanner. +// Returns the sfdc instance. // // - name: Resource name of the SFDC instance -// projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance} -// . +// projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}. func (r *ProjectsLocationsProductsSfdcInstancesService) Patch(name string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsProductsSfdcInstancesPatchCall { c := &ProjectsLocationsProductsSfdcInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -27536,32 +20702,30 @@ func (r *ProjectsLocationsProductsSfdcInstancesService) Patch(name string, googl return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above SfdcInstance that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above SfdcInstance that have been modified and need to be +// updated. func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsSfdcInstancesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27570,18 +20734,12 @@ func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Header() http.Header { } func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -27594,18 +20752,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27636,44 +20791,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.sfdcInstances.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above SfdcInstance that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.create": +} type ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall struct { s *Service @@ -27684,8 +20802,8 @@ type ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall struct { header_ http.Header } -// Create: Creates an sfdc channel record. Store the sfdc channel in -// Spanner. Returns the sfdc channel. +// Create: Creates an sfdc channel record. Store the sfdc channel in Spanner. +// Returns the sfdc channel. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Create(parent string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall { @@ -27696,23 +20814,21 @@ func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Create(paren } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27721,18 +20837,12 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Header() } func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcChannels") @@ -27745,18 +20855,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27787,38 +20894,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Do(opts . return nil, err } return ret, nil - // { - // "description": "Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/sfdcChannels", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.delete": +} type ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall struct { s *Service @@ -27838,23 +20914,21 @@ func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Delete(name } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -27863,12 +20937,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Header() } func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -27882,16 +20951,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -27922,35 +20990,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Do(opts . return nil, err } return ret, nil - // { - // "description": "Deletes an sfdc channel.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcChannel.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.get": +} type ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall struct { s *Service @@ -27961,8 +21001,8 @@ type ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall struct { header_ http.Header } -// Get: Gets an sfdc channel. If the channel doesn't exist, -// Code.NOT_FOUND exception will be thrown. +// Get: Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND +// exception will be thrown. // // - name: The name that is associated with the SfdcChannel. func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Get(name string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { @@ -27972,33 +21012,29 @@ func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Get(name str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28007,12 +21043,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Header() htt } func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28029,18 +21060,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28071,35 +21099,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcChannel.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.list": +} type ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall struct { s *Service @@ -28120,64 +21120,58 @@ func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) List(parent return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Filter(filter string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) PageToken(pageToken string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the SfdcChannel's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the SfdcChannel's response. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) ReadMask(readMask string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28186,12 +21180,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Header() ht } func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28208,19 +21197,17 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28251,54 +21238,6 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Lists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of SfdcChannels.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the SfdcChannel's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/sfdcChannels", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -28306,7 +21245,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Do(opts ... // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -28322,8 +21261,6 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Pages(ctx c } } -// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.patch": - type ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall struct { s *Service name string @@ -28333,12 +21270,12 @@ type ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall struct { header_ http.Header } -// Patch: Updates an sfdc channel. Updates the sfdc channel in spanner. -// Returns the sfdc channel. +// Patch: Updates an sfdc channel. Updates the sfdc channel in spanner. Returns +// the sfdc channel. // // - name: Resource name of the SFDC channel -// projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance -// }/sfdcChannels/{sfdc_channel}. +// projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcC +// hannels/{sfdc_channel}. func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Patch(name string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { c := &ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -28346,32 +21283,30 @@ func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Patch(name s return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above SfdcChannel that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above SfdcChannel that have been modified and need to be +// updated. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28380,18 +21315,12 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Header() h } func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -28404,18 +21333,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28446,44 +21372,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Do(opts .. return nil, err } return ret, nil - // { - // "description": "Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above SfdcChannel that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.create": +} type ProjectsLocationsSfdcInstancesCreateCall struct { s *Service @@ -28494,8 +21383,8 @@ type ProjectsLocationsSfdcInstancesCreateCall struct { header_ http.Header } -// Create: Creates an sfdc instance record. Store the sfdc instance in -// Spanner. Returns the sfdc instance. +// Create: Creates an sfdc instance record. Store the sfdc instance in Spanner. +// Returns the sfdc instance. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsSfdcInstancesService) Create(parent string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsSfdcInstancesCreateCall { @@ -28506,23 +21395,21 @@ func (r *ProjectsLocationsSfdcInstancesService) Create(parent string, googleclou } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28531,18 +21418,12 @@ func (c *ProjectsLocationsSfdcInstancesCreateCall) Header() http.Header { } func (c *ProjectsLocationsSfdcInstancesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcInstances") @@ -28555,18 +21436,15 @@ func (c *ProjectsLocationsSfdcInstancesCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28597,38 +21475,7 @@ func (c *ProjectsLocationsSfdcInstancesCreateCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.sfdcInstances.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/sfdcInstances", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.delete": +} type ProjectsLocationsSfdcInstancesDeleteCall struct { s *Service @@ -28648,23 +21495,21 @@ func (r *ProjectsLocationsSfdcInstancesService) Delete(name string) *ProjectsLoc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28673,12 +21518,7 @@ func (c *ProjectsLocationsSfdcInstancesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsSfdcInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -28692,16 +21532,15 @@ func (c *ProjectsLocationsSfdcInstancesDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsSfdcInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28732,35 +21571,7 @@ func (c *ProjectsLocationsSfdcInstancesDeleteCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Deletes an sfdc instance.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.sfdcInstances.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcInstance.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.get": +} type ProjectsLocationsSfdcInstancesGetCall struct { s *Service @@ -28771,8 +21582,8 @@ type ProjectsLocationsSfdcInstancesGetCall struct { header_ http.Header } -// Get: Gets an sfdc instance. If the instance doesn't exist, -// Code.NOT_FOUND exception will be thrown. +// Get: Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND +// exception will be thrown. // // - name: The name that is associated with the SfdcInstance. func (r *ProjectsLocationsSfdcInstancesService) Get(name string) *ProjectsLocationsSfdcInstancesGetCall { @@ -28782,33 +21593,29 @@ func (r *ProjectsLocationsSfdcInstancesService) Get(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsSfdcInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28817,12 +21624,7 @@ func (c *ProjectsLocationsSfdcInstancesGetCall) Header() http.Header { } func (c *ProjectsLocationsSfdcInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -28839,18 +21641,15 @@ func (c *ProjectsLocationsSfdcInstancesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -28881,35 +21680,7 @@ func (c *ProjectsLocationsSfdcInstancesGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.sfdcInstances.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcInstance.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.list": +} type ProjectsLocationsSfdcInstancesListCall struct { s *Service @@ -28920,8 +21691,8 @@ type ProjectsLocationsSfdcInstancesListCall struct { header_ http.Header } -// List: Lists all sfdc instances that match the filter. Restrict to -// sfdc instances belonging to the current client only. +// List: Lists all sfdc instances that match the filter. Restrict to sfdc +// instances belonging to the current client only. // // - parent: The client, which owns this collection of SfdcInstances. func (r *ProjectsLocationsSfdcInstancesService) List(parent string) *ProjectsLocationsSfdcInstancesListCall { @@ -28930,64 +21701,58 @@ func (r *ProjectsLocationsSfdcInstancesService) List(parent string) *ProjectsLoc return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. func (c *ProjectsLocationsSfdcInstancesListCall) Filter(filter string) *ProjectsLocationsSfdcInstancesListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsSfdcInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsSfdcInstancesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsSfdcInstancesListCall) PageToken(pageToken string) *ProjectsLocationsSfdcInstancesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the SfdcInstance's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the SfdcInstance's response. func (c *ProjectsLocationsSfdcInstancesListCall) ReadMask(readMask string) *ProjectsLocationsSfdcInstancesListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsSfdcInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesListCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -28996,12 +21761,7 @@ func (c *ProjectsLocationsSfdcInstancesListCall) Header() http.Header { } func (c *ProjectsLocationsSfdcInstancesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29018,19 +21778,15 @@ func (c *ProjectsLocationsSfdcInstancesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29061,54 +21817,6 @@ func (c *ProjectsLocationsSfdcInstancesListCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.sfdcInstances.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of SfdcInstances.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the SfdcInstance's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/sfdcInstances", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -29116,7 +21824,7 @@ func (c *ProjectsLocationsSfdcInstancesListCall) Do(opts ...googleapi.CallOption // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsSfdcInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -29132,8 +21840,6 @@ func (c *ProjectsLocationsSfdcInstancesListCall) Pages(ctx context.Context, f fu } } -// method id "integrations.projects.locations.sfdcInstances.patch": - type ProjectsLocationsSfdcInstancesPatchCall struct { s *Service name string @@ -29143,12 +21849,11 @@ type ProjectsLocationsSfdcInstancesPatchCall struct { header_ http.Header } -// Patch: Updates an sfdc instance. Updates the sfdc instance in -// spanner. Returns the sfdc instance. +// Patch: Updates an sfdc instance. Updates the sfdc instance in spanner. +// Returns the sfdc instance. // // - name: Resource name of the SFDC instance -// projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance} -// . +// projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}. func (r *ProjectsLocationsSfdcInstancesService) Patch(name string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsSfdcInstancesPatchCall { c := &ProjectsLocationsSfdcInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -29156,32 +21861,30 @@ func (r *ProjectsLocationsSfdcInstancesService) Patch(name string, googlecloudin return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above SfdcInstance that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above SfdcInstance that have been modified and need to be +// updated. func (c *ProjectsLocationsSfdcInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSfdcInstancesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29190,18 +21893,12 @@ func (c *ProjectsLocationsSfdcInstancesPatchCall) Header() http.Header { } func (c *ProjectsLocationsSfdcInstancesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -29214,18 +21911,15 @@ func (c *ProjectsLocationsSfdcInstancesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29256,44 +21950,7 @@ func (c *ProjectsLocationsSfdcInstancesPatchCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.sfdcInstances.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above SfdcInstance that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.create": +} type ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall struct { s *Service @@ -29304,8 +21961,8 @@ type ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall struct { header_ http.Header } -// Create: Creates an sfdc channel record. Store the sfdc channel in -// Spanner. Returns the sfdc channel. +// Create: Creates an sfdc channel record. Store the sfdc channel in Spanner. +// Returns the sfdc channel. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Create(parent string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall { @@ -29316,23 +21973,21 @@ func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Create(parent string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29341,18 +21996,12 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Header() http.Hea } func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sfdcChannels") @@ -29365,18 +22014,15 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29407,38 +22053,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/sfdcChannels", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.delete": +} type ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall struct { s *Service @@ -29458,23 +22073,21 @@ func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Delete(name string) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29483,12 +22096,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Header() http.Hea } func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -29502,16 +22110,15 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29542,35 +22149,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Deletes an sfdc channel.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcChannel.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.get": +} type ProjectsLocationsSfdcInstancesSfdcChannelsGetCall struct { s *Service @@ -29581,8 +22160,8 @@ type ProjectsLocationsSfdcInstancesSfdcChannelsGetCall struct { header_ http.Header } -// Get: Gets an sfdc channel. If the channel doesn't exist, -// Code.NOT_FOUND exception will be thrown. +// Get: Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND +// exception will be thrown. // // - name: The name that is associated with the SfdcChannel. func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Get(name string) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { @@ -29592,33 +22171,29 @@ func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Get(name string) *Pr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29627,12 +22202,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Header() http.Header } func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29649,18 +22219,15 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29691,35 +22258,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcChannel.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.list": +} type ProjectsLocationsSfdcInstancesSfdcChannelsListCall struct { s *Service @@ -29740,64 +22279,58 @@ func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) List(parent string) return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Filter(filter string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) PageSize(pageSize int64) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) PageToken(pageToken string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the SfdcChannel's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the SfdcChannel's response. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) ReadMask(readMask string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -29806,12 +22339,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Header() http.Heade } func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -29828,19 +22356,17 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -29871,54 +22397,6 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Lists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of SfdcChannels.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the SfdcChannel's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/sfdcChannels", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -29926,7 +22404,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Do(opts ...googleap // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -29942,8 +22420,6 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Pages(ctx context.C } } -// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.patch": - type ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall struct { s *Service name string @@ -29953,12 +22429,12 @@ type ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall struct { header_ http.Header } -// Patch: Updates an sfdc channel. Updates the sfdc channel in spanner. -// Returns the sfdc channel. +// Patch: Updates an sfdc channel. Updates the sfdc channel in spanner. Returns +// the sfdc channel. // // - name: Resource name of the SFDC channel -// projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance -// }/sfdcChannels/{sfdc_channel}. +// projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcC +// hannels/{sfdc_channel}. func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Patch(name string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { c := &ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -29966,32 +22442,30 @@ func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Patch(name string, g return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above SfdcChannel that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above SfdcChannel that have been modified and need to be +// updated. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -30000,18 +22474,12 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Header() http.Head } func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -30024,18 +22492,15 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -30066,39 +22531,4 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above SfdcChannel that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index 19da330c434..c5d5fbf3a53 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/application-integration // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // integrationsService, err := integrations.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // integrationsService, err := integrations.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // integrationsService, err := integrations.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package integrations // import "google.golang.org/api/integrations/v1alpha" import ( @@ -77,12 +90,13 @@ const apiId = "integrations:v1alpha" const apiName = "integrations" const apiVersion = "v1alpha" const basePath = "https://integrations.googleapis.com/" +const basePathTemplate = "https://integrations.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://integrations.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -94,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -459,8 +475,8 @@ type ProjectsLocationsSfdcInstancesSfdcChannelsService struct { s *Service } -// CrmlogErrorCode: Registered ids for errors, as "oneof" enums. Each -// task or logical grouping of tasks may share the same enum. +// CrmlogErrorCode: Registered ids for errors, as "oneof" enums. Each task or +// logical grouping of tasks may share the same enum. type CrmlogErrorCode struct { // Possible values: // "COMMON_ERROR_CODE_UNSPECIFIED" @@ -518,142 +534,112 @@ type CrmlogErrorCode struct { // "WRONG_TENANT" // "INFORMATICA_BACKEND_UNAVAILABLE" // "RPC_PERMISSION_DENIED" - // "SYNC_EVENTBUS_EXECUTION_TIMEOUT" - SYNC_EVENTBUS_EXECUTION_TIMEOUT - // is for eventbus internal use only. - // "ASYNC_EVENTBUS_EXECUTION_TIMEOUT" - - // ASYNC_EVENTBUS_EXECUTION_TIMEOUT is for eventbus internal use only. - // This error will be counted as server availability error. + // "SYNC_EVENTBUS_EXECUTION_TIMEOUT" - SYNC_EVENTBUS_EXECUTION_TIMEOUT is for + // eventbus internal use only. + // "ASYNC_EVENTBUS_EXECUTION_TIMEOUT" - ASYNC_EVENTBUS_EXECUTION_TIMEOUT is + // for eventbus internal use only. This error will be counted as server + // availability error. // "NOT_SUPPORTED_DATA_TYPE" // "UNSANITIZED_USER_INPUT" // "TRANSFORM_EXPRESSION_EVALUATION_ERROR" // "HTTP_EXCEPTION" // "EXECUTION_CANCELLED" CommonErrorCode string `json:"commonErrorCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommonErrorCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommonErrorCode") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CommonErrorCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CrmlogErrorCode) MarshalJSON() ([]byte, error) { +func (s CrmlogErrorCode) MarshalJSON() ([]byte, error) { type NoMethod CrmlogErrorCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam struct { - // AllowedCredentialTypes: Defines the credential types to be supported - // as Task may restrict specific types to use, e.g. Cloud SQL Task will - // use username/password type only. + // AllowedCredentialTypes: Defines the credential types to be supported as Task + // may restrict specific types to use, e.g. Cloud SQL Task will use + // username/password type only. // // Possible values: // "CREDENTIAL_TYPE_UNSPECIFIED" // "USERNAME_AND_PASSWORD" - Regular username/password pair. // "API_KEY" - API key. - // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant - // Type. + // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant Type. // "OAUTH2_IMPLICIT" - OAuth 2.0 Implicit Grant Type. - // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant - // Type. - // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner - // Credentials Grant Type. + // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant Type. + // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner Credentials + // Grant Type. // "JWT" - JWT Token. // "AUTH_TOKEN" - Auth Token, e.g. bearer token. - // "SERVICE_ACCOUNT" - Service Account which can be used to generate - // token for authentication. + // "SERVICE_ACCOUNT" - Service Account which can be used to generate token + // for authentication. // "CLIENT_CERTIFICATE_ONLY" - Client Certificate only. // "OIDC_TOKEN" - Google OIDC ID Token - AllowedCredentialTypes []string `json:"allowedCredentialTypes,omitempty"` - - AllowedServiceAccountInContext bool `json:"allowedServiceAccountInContext,omitempty"` - + AllowedCredentialTypes []string `json:"allowedCredentialTypes,omitempty"` + AllowedServiceAccountInContext bool `json:"allowedServiceAccountInContext,omitempty"` // AuthConfigId: UUID of the AuthConfig. AuthConfigId string `json:"authConfigId,omitempty"` - // Scope: A space-delimited list of requested scope permissions. - Scope string `json:"scope,omitempty"` - - UseServiceAccountInContext bool `json:"useServiceAccountInContext,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllowedCredentialTypes") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + Scope string `json:"scope,omitempty"` + UseServiceAccountInContext bool `json:"useServiceAccountInContext,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllowedCredentialTypes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedCredentialTypes") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowedCredentialTypes") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoAddress: Email address along with optional -// name and tokens. These tokens will be substituted for the variables -// in the form of [{var_name}], where var_name could be any string of no -// more than 32 bytes. +// EnterpriseCrmEventbusProtoAddress: Email address along with optional name +// and tokens. These tokens will be substituted for the variables in the form +// of [{var_name}], where var_name could be any string of no more than 32 +// bytes. type EnterpriseCrmEventbusProtoAddress struct { // Email: Required. - Email string `json:"email,omitempty"` - - Name string `json:"name,omitempty"` - + Email string `json:"email,omitempty"` + Name string `json:"name,omitempty"` Tokens []*EnterpriseCrmEventbusProtoToken `json:"tokens,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoAddress) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoAddress) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoAttributes: Attributes are additional -// options that can be associated with each event property. For more -// information, see +// EnterpriseCrmEventbusProtoAttributes: Attributes are additional options that +// can be associated with each event property. For more information, see type EnterpriseCrmEventbusProtoAttributes struct { - // DataType: Things like URL, Email, Currency, Timestamp (rather than - // string, int64...) + // DataType: Things like URL, Email, Currency, Timestamp (rather than string, + // int64...) // // Possible values: // "DATA_TYPE_UNSPECIFIED" @@ -661,132 +647,104 @@ type EnterpriseCrmEventbusProtoAttributes struct { // "URL" // "CURRENCY" // "TIMESTAMP" - // "DOMAIN_NAME" - Domain is a web url string with one top-level - // private domain and a suffix (for example: google.com, walmart.com) + // "DOMAIN_NAME" - Domain is a web url string with one top-level private + // domain and a suffix (for example: google.com, walmart.com) DataType string `json:"dataType,omitempty"` - // DefaultValue: Used to define defaults. DefaultValue *EnterpriseCrmEventbusProtoValueType `json:"defaultValue,omitempty"` - - // IsRequired: Required for event execution. The validation will be done - // by the event bus when the event is triggered. + // IsRequired: Required for event execution. The validation will be done by the + // event bus when the event is triggered. IsRequired bool `json:"isRequired,omitempty"` - - // IsSearchable: Used to indicate if a ParameterEntry should be - // converted to ParamIndexes for ST-Spanner full-text search. - // DEPRECATED: use searchable. + // IsSearchable: Used to indicate if a ParameterEntry should be converted to + // ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. IsSearchable bool `json:"isSearchable,omitempty"` - // LogSettings: See LogSettings *EnterpriseCrmEventbusProtoLogSettings `json:"logSettings,omitempty"` - // Possible values: // "UNSPECIFIED" - // "YES" - If yes, the parameter key and value will be full-text - // indexed. In a proto, this value will propagate to all children whose - // searchable is unspecified. - // "NO" - If no, the parameter key and value will not be full-text - // indexed. In a proto, this value will propagate to all children whose - // searchable is unspecified. + // "YES" - If yes, the parameter key and value will be full-text indexed. In + // a proto, this value will propagate to all children whose searchable is + // unspecified. + // "NO" - If no, the parameter key and value will not be full-text indexed. + // In a proto, this value will propagate to all children whose searchable is + // unspecified. Searchable string `json:"searchable,omitempty"` - - // TaskVisibility: List of tasks that can view this property, if empty - // then all. + // TaskVisibility: List of tasks that can view this property, if empty then + // all. TaskVisibility []string `json:"taskVisibility,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoAttributes) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoAttributes) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoAttributes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList: List of error -// enums for alerts. +// EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList: List of error enums +// for alerts. type EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList struct { EnumStrings []string `json:"enumStrings,omitempty"` - // Possible values: // "DEFAULT_INCLUSIVE" // "EXCLUSIVE" FilterType string `json:"filterType,omitempty"` - // ForceSendFields is a list of field names (e.g. "EnumStrings") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EnumStrings") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EnumStrings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue: The -// threshold value of the metric, above or below which the alert should -// be triggered. See EventAlertConfig or TaskAlertConfig for the -// different alert metric types in each case. For the *RATE metrics, one -// or both of these fields may be set. Zero is the default value and can -// be left at that. For *PERCENTILE_DURATION metrics, one or both of -// these fields may be set, and also, the duration threshold value -// should be specified in the threshold_duration_ms member below. For -// *AVERAGE_DURATION metrics, these fields should not be set at all. A -// different member, threshold_duration_ms, must be set in the + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue: The threshold value +// of the metric, above or below which the alert should be triggered. See +// EventAlertConfig or TaskAlertConfig for the different alert metric types in +// each case. For the *RATE metrics, one or both of these fields may be set. +// Zero is the default value and can be left at that. For *PERCENTILE_DURATION +// metrics, one or both of these fields may be set, and also, the duration +// threshold value should be specified in the threshold_duration_ms member +// below. For *AVERAGE_DURATION metrics, these fields should not be set at all. +// A different member, threshold_duration_ms, must be set in the // EventAlertConfig or the TaskAlertConfig. type EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue struct { - Absolute int64 `json:"absolute,omitempty,string"` - + Absolute int64 `json:"absolute,omitempty,string"` Percentage int64 `json:"percentage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Absolute") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Absolute") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Absolute") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBaseFunction struct { @@ -801,62 +759,48 @@ type EnterpriseCrmEventbusProtoBaseFunction struct { // "GET_UUID" // "GET_PROJECT_ID" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBaseFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBaseFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBaseFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBaseValue struct { - // BaseFunction: Start with a function that does not build on existing - // values. Eg. CurrentTime, Min, Max, Exists, etc. + // BaseFunction: Start with a function that does not build on existing values. + // Eg. CurrentTime, Min, Max, Exists, etc. BaseFunction *EnterpriseCrmEventbusProtoFunction `json:"baseFunction,omitempty"` - // LiteralValue: Start with a literal value. LiteralValue *EnterpriseCrmEventbusProtoParameterValueType `json:"literalValue,omitempty"` - // ReferenceValue: Start with a reference value to dereference. ReferenceValue string `json:"referenceValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "BaseFunction") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BaseFunction") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BaseFunction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBaseValue) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBaseValue) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBaseValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBooleanArrayFunction struct { @@ -875,28 +819,22 @@ type EnterpriseCrmEventbusProtoBooleanArrayFunction struct { // "FOR_EACH" // "FILTER" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBooleanArrayFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBooleanArrayFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBooleanArrayFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBooleanFunction struct { @@ -913,189 +851,145 @@ type EnterpriseCrmEventbusProtoBooleanFunction struct { // "TO_STRING" // "EQUALS" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBooleanFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBooleanFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBooleanFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBooleanParameterArray struct { BooleanValues []bool `json:"booleanValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "BooleanValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBooleanParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBooleanParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBooleanParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoBuganizerNotification struct { // AssigneeEmailAddress: Whom to assign the new bug. Optional. AssigneeEmailAddress string `json:"assigneeEmailAddress,omitempty"` - - // ComponentId: ID of the buganizer component within which to create a - // new issue. Required. + // ComponentId: ID of the buganizer component within which to create a new + // issue. Required. ComponentId int64 `json:"componentId,omitempty,string"` - // TemplateId: ID of the buganizer template to use. Optional. TemplateId int64 `json:"templateId,omitempty,string"` - // Title: Title of the issue to be created. Required. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AssigneeEmailAddress") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AssigneeEmailAddress") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssigneeEmailAddress") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssigneeEmailAddress") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoBuganizerNotification) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoBuganizerNotification) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoBuganizerNotification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoCloudKmsConfig struct { - // GcpProjectId: Optional. The id of GCP project where the KMS key is - // stored. If not provided, assume the key is stored in the same GCP - // project defined in Client (tag 14). + // GcpProjectId: Optional. The id of GCP project where the KMS key is stored. + // If not provided, assume the key is stored in the same GCP project defined in + // Client (tag 14). GcpProjectId string `json:"gcpProjectId,omitempty"` - // KeyName: A Cloud KMS key is a named object containing one or more key - // versions, along with metadata for the key. A key exists on exactly - // one key ring tied to a specific location. + // versions, along with metadata for the key. A key exists on exactly one key + // ring tied to a specific location. KeyName string `json:"keyName,omitempty"` - - // KeyRingName: A key ring organizes keys in a specific Google Cloud - // location and allows you to manage access control on groups of keys. A - // key ring's name does not need to be unique across a Google Cloud - // project, but must be unique within a given location. + // KeyRingName: A key ring organizes keys in a specific Google Cloud location + // and allows you to manage access control on groups of keys. A key ring's name + // does not need to be unique across a Google Cloud project, but must be unique + // within a given location. KeyRingName string `json:"keyRingName,omitempty"` - - // KeyVersionName: Optional. Each version of a key contains key material - // used for encryption or signing. A key's version is represented by an - // integer, starting at 1. To decrypt data or verify a signature, you - // must use the same key version that was used to encrypt or sign the - // data. + // KeyVersionName: Optional. Each version of a key contains key material used + // for encryption or signing. A key's version is represented by an integer, + // starting at 1. To decrypt data or verify a signature, you must use the same + // key version that was used to encrypt or sign the data. KeyVersionName string `json:"keyVersionName,omitempty"` - // LocationName: Location name of the key ring, e.g. "us-west1". LocationName string `json:"locationName,omitempty"` - - // ServiceAccount: Optional. The service account used for authentication - // of this KMS key. If this is not provided, the service account in + // ServiceAccount: Optional. The service account used for authentication of + // this KMS key. If this is not provided, the service account in // Client.clientSource will be used. ServiceAccount string `json:"serviceAccount,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcpProjectId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GcpProjectId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GcpProjectId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCloudKmsConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCloudKmsConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCloudKmsConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoCloudSchedulerConfig: Cloud Scheduler -// Trigger configuration +// EnterpriseCrmEventbusProtoCloudSchedulerConfig: Cloud Scheduler Trigger +// configuration type EnterpriseCrmEventbusProtoCloudSchedulerConfig struct { // CronTab: Required. The cron tab of cloud scheduler trigger. CronTab string `json:"cronTab,omitempty"` - // ErrorMessage: Optional. When the job was deleted from Pantheon UI, // error_message will be populated when Get/List integrations ErrorMessage string `json:"errorMessage,omitempty"` - - // Location: Required. The location where associated cloud scheduler job - // will be created + // Location: Required. The location where associated cloud scheduler job will + // be created Location string `json:"location,omitempty"` - - // ServiceAccountEmail: Required. Service account used by Cloud - // Scheduler to trigger the integration at scheduled time + // ServiceAccountEmail: Required. Service account used by Cloud Scheduler to + // trigger the integration at scheduled time ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CronTab") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CronTab") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CronTab") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CronTab") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCloudSchedulerConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCloudSchedulerConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCloudSchedulerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmEventbusProtoCombinedCondition: This message recursively @@ -1103,41 +997,33 @@ func (s *EnterpriseCrmEventbusProtoCloudSchedulerConfig) MarshalJSON() ([]byte, type EnterpriseCrmEventbusProtoCombinedCondition struct { // Conditions: A set of individual constituent conditions. Conditions []*EnterpriseCrmEventbusProtoCondition `json:"conditions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conditions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Conditions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Conditions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCombinedCondition) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCombinedCondition) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCombinedCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoCondition: Condition that uses `operator` -// to evaluate the key against the value. +// EnterpriseCrmEventbusProtoCondition: Condition that uses `operator` to +// evaluate the key against the value. type EnterpriseCrmEventbusProtoCondition struct { - // EventPropertyKey: Key that's evaluated against the `value`. Please - // note the data type of the runtime value associated with the key - // should match the data type of `value`, else an - // IllegalArgumentException is thrown. + // EventPropertyKey: Key that's evaluated against the `value`. Please note the + // data type of the runtime value associated with the key should match the data + // type of `value`, else an IllegalArgumentException is thrown. EventPropertyKey string `json:"eventPropertyKey,omitempty"` - - // Operator: Operator used to evaluate the condition. Please note that - // an operator with an inappropriate key/value operand will result in + // Operator: Operator used to evaluate the condition. Please note that an + // operator with an inappropriate key/value operand will result in // IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. // // Possible values: @@ -1151,114 +1037,87 @@ type EnterpriseCrmEventbusProtoCondition struct { // "IS_EMPTY" // "IS_NOT_EMPTY" Operator string `json:"operator,omitempty"` - // Value: Value that's checked for the key. Value *EnterpriseCrmEventbusProtoValueType `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventPropertyKey") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventPropertyKey") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventPropertyKey") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCondition) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCondition) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoConditionResult: Contains the combined -// condition calculation results. +// EnterpriseCrmEventbusProtoConditionResult: Contains the combined condition +// calculation results. type EnterpriseCrmEventbusProtoConditionResult struct { // CurrentTaskNumber: the current task number. CurrentTaskNumber string `json:"currentTaskNumber,omitempty"` - // NextTaskNumber: the next task number. NextTaskNumber string `json:"nextTaskNumber,omitempty"` - - // Result: the result comes out after evaluate the combined condition. - // True if there's no combined condition specified. + // Result: the result comes out after evaluate the combined condition. True if + // there's no combined condition specified. Result bool `json:"result,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CurrentTaskNumber") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CurrentTaskNumber") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrentTaskNumber") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CurrentTaskNumber") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoConditionResult) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoConditionResult) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoConditionResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoConnectorsConnection struct { // ConnectionName: Connection name Format: // projects/{project}/locations/{location}/connections/{connection} ConnectionName string `json:"connectionName,omitempty"` - // ConnectorVersion: Connector version Format: - // projects/{project}/locations/{location}/providers/{provider}/connector - // s/{connector}/versions/{version} + // projects/{project}/locations/{location}/providers/{provider}/connectors/{conn + // ector}/versions/{version} ConnectorVersion string `json:"connectorVersion,omitempty"` - // ServiceName: Service name Format: - // projects/{project}/locations/{location}/namespaces/{namespace}/service - // s/{service} + // projects/{project}/locations/{location}/namespaces/{namespace}/services/{serv + // ice} ServiceName string `json:"serviceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConnectionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConnectionName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConnectionName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoConnectorsConnection) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoConnectorsConnection) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoConnectorsConnection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig struct { // Connection: User-selected connection. Connection *EnterpriseCrmEventbusProtoConnectorsConnection `json:"connection,omitempty"` - // Operation: Operation to perform using the configured connection. // // Possible values: @@ -1270,118 +1129,90 @@ type EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig struct { // "UPDATE_ENTITY" // "DELETE_ENTITY" Operation string `json:"operation,omitempty"` - // ForceSendFields is a list of field names (e.g. "Connection") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Connection") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Connection") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoCoordinate: Represents two-dimensional -// positions. +// EnterpriseCrmEventbusProtoCoordinate: Represents two-dimensional positions. type EnterpriseCrmEventbusProtoCoordinate struct { X int64 `json:"x,omitempty"` - Y int64 `json:"y,omitempty"` - - // ForceSendFields is a list of field names (e.g. "X") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "X") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "X") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "X") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCoordinate) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCoordinate) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCoordinate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoCustomSuspensionRequest struct { - // PostToQueueWithTriggerIdRequest: Request to fire an event containing - // the SuspensionInfo message. + // PostToQueueWithTriggerIdRequest: Request to fire an event containing the + // SuspensionInfo message. PostToQueueWithTriggerIdRequest *GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest `json:"postToQueueWithTriggerIdRequest,omitempty"` - - // SuspensionInfoEventParameterKey: In the fired event, set the - // SuspensionInfo message as the value for this key. + // SuspensionInfoEventParameterKey: In the fired event, set the SuspensionInfo + // message as the value for this key. SuspensionInfoEventParameterKey string `json:"suspensionInfoEventParameterKey,omitempty"` - // ForceSendFields is a list of field names (e.g. // "PostToQueueWithTriggerIdRequest") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "PostToQueueWithTriggerIdRequest") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "PostToQueueWithTriggerIdRequest") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoCustomSuspensionRequest) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoCustomSuspensionRequest) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoCustomSuspensionRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoDoubleArray struct { Values []float64 `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoDoubleArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoDoubleArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoDoubleArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmEventbusProtoDoubleArray) UnmarshalJSON(data []byte) error { @@ -1421,28 +1252,22 @@ type EnterpriseCrmEventbusProtoDoubleArrayFunction struct { // "FOR_EACH" // "FILTER" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoDoubleArrayFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoDoubleArrayFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoDoubleArrayFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoDoubleFunction struct { @@ -1465,54 +1290,42 @@ type EnterpriseCrmEventbusProtoDoubleFunction struct { // "LESS_THAN_EQUALS" // "MOD" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoDoubleFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoDoubleFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoDoubleFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoDoubleParameterArray struct { DoubleValues []float64 `json:"doubleValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "DoubleValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoubleValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DoubleValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoDoubleParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoDoubleParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoDoubleParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmEventbusProtoDoubleParameterArray) UnmarshalJSON(data []byte) error { @@ -1532,17 +1345,15 @@ func (s *EnterpriseCrmEventbusProtoDoubleParameterArray) UnmarshalJSON(data []by return nil } -// EnterpriseCrmEventbusProtoErrorDetail: An error, warning, or -// information message associated with a workflow. +// EnterpriseCrmEventbusProtoErrorDetail: An error, warning, or information +// message associated with a workflow. type EnterpriseCrmEventbusProtoErrorDetail struct { - // ErrorCode: The associated error-code, which can be a common or - // internal code. + // ErrorCode: The associated error-code, which can be a common or internal + // code. ErrorCode *CrmlogErrorCode `json:"errorCode,omitempty"` - - // ErrorMessage: The full text of the error message, including any - // parameters that were thrown along with the exception. + // ErrorMessage: The full text of the error message, including any parameters + // that were thrown along with the exception. ErrorMessage string `json:"errorMessage,omitempty"` - // Severity: The severity of the error: ERROR|WARN|INFO. // // Possible values: @@ -1551,487 +1362,376 @@ type EnterpriseCrmEventbusProtoErrorDetail struct { // "WARN" // "INFO" Severity string `json:"severity,omitempty"` - - // TaskNumber: The task try-number, in which, the error occurred. If - // zero, the error happened at the event level. + // TaskNumber: The task try-number, in which, the error occurred. If zero, the + // error happened at the event level. TaskNumber int64 `json:"taskNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ErrorCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ErrorCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoErrorDetail) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoErrorDetail) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoErrorDetail - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoEventBusProperties: LINT.IfChange This -// message is used for storing key value pair properties for each Event -// / Task in the EventBus. +// EnterpriseCrmEventbusProtoEventBusProperties: LINT.IfChange This message is +// used for storing key value pair properties for each Event / Task in the +// EventBus. type EnterpriseCrmEventbusProtoEventBusProperties struct { // Properties: An unordered list of property entries. Properties []*EnterpriseCrmEventbusProtoPropertyEntry `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "Properties") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Properties") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Properties") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventBusProperties) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventBusProperties) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventBusProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoEventExecutionDetails: Contains the details -// of the execution info of this event: this includes the tasks -// execution details plus the event execution statistics. Next available -// id: 10 +// EnterpriseCrmEventbusProtoEventExecutionDetails: Contains the details of the +// execution info of this event: this includes the tasks execution details plus +// the event execution statistics. Next available id: 10 type EnterpriseCrmEventbusProtoEventExecutionDetails struct { - EventAttemptStats []*EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats `json:"eventAttemptStats,omitempty"` - - EventExecutionSnapshot []*EnterpriseCrmEventbusProtoEventExecutionSnapshot `json:"eventExecutionSnapshot,omitempty"` - + EventAttemptStats []*EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats `json:"eventAttemptStats,omitempty"` + EventExecutionSnapshot []*EnterpriseCrmEventbusProtoEventExecutionSnapshot `json:"eventExecutionSnapshot,omitempty"` // Possible values: // "UNSPECIFIED" - // "ON_HOLD" - Event is received and waiting for the execution. This - // happens when firing the event via "postToQueue" or "schedule". + // "ON_HOLD" - Event is received and waiting for the execution. This happens + // when firing the event via "postToQueue" or "schedule". // "IN_PROCESS" - Event is under processing. - // "SUCCEEDED" - Event execution successfully finished. There's no - // more change after this state. - // "FAILED" - Event execution failed. There's no more change after - // this state. - // "CANCELED" - Event execution canceled by user. There's no more + // "SUCCEEDED" - Event execution successfully finished. There's no more // change after this state. + // "FAILED" - Event execution failed. There's no more change after this + // state. + // "CANCELED" - Event execution canceled by user. There's no more change + // after this state. // "RETRY_ON_HOLD" - Event execution failed and waiting for retry. // "SUSPENDED" - Event execution suspended and waiting for manual // intervention. EventExecutionState string `json:"eventExecutionState,omitempty"` - - // EventRetriesFromBeginningCount: Indicates the number of times the - // execution has restarted from the beginning. + // EventRetriesFromBeginningCount: Indicates the number of times the execution + // has restarted from the beginning. EventRetriesFromBeginningCount int64 `json:"eventRetriesFromBeginningCount,omitempty"` - // LogFilePath: The log file path (aka. cns address) for this event. LogFilePath string `json:"logFilePath,omitempty"` - - // NetworkAddress: The network address (aka. bns address) that indicates - // where the event executor is running. + // NetworkAddress: The network address (aka. bns address) that indicates where + // the event executor is running. NetworkAddress string `json:"networkAddress,omitempty"` - - // NextExecutionTime: Next scheduled execution time in case the - // execution status was RETRY_ON_HOLD. + // NextExecutionTime: Next scheduled execution time in case the execution + // status was RETRY_ON_HOLD. NextExecutionTime int64 `json:"nextExecutionTime,omitempty,string"` - - // RyeLockUnheldCount: Used internally and shouldn't be exposed to - // users. A counter for the cron job to record how many times this event - // is in in_process state but don't have a lock consecutively/ + // RyeLockUnheldCount: Used internally and shouldn't be exposed to users. A + // counter for the cron job to record how many times this event is in + // in_process state but don't have a lock consecutively/ RyeLockUnheldCount int64 `json:"ryeLockUnheldCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EventAttemptStats") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EventAttemptStats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventAttemptStats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventAttemptStats") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventExecutionDetails) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventExecutionDetails) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventExecutionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats struct { // EndTime: The end time of the event execution for current attempt. EndTime int64 `json:"endTime,omitempty,string"` - - // StartTime: The start time of the event execution for current attempt. - // This could be in the future if it's been scheduled. + // StartTime: The start time of the event execution for current attempt. This + // could be in the future if it's been scheduled. StartTime int64 `json:"startTime,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoEventExecutionSnapshot: Contains the -// snapshot of the event execution for a given checkpoint. Next -// available id: 13 +// EnterpriseCrmEventbusProtoEventExecutionSnapshot: Contains the snapshot of +// the event execution for a given checkpoint. Next available id: 13 type EnterpriseCrmEventbusProtoEventExecutionSnapshot struct { // CheckpointTaskNumber: Indicates "right after which checkpoint task's // execution" this snapshot is taken. CheckpointTaskNumber string `json:"checkpointTaskNumber,omitempty"` - - // ConditionResults: All of the computed conditions that been - // calculated. + // ConditionResults: All of the computed conditions that been calculated. ConditionResults []*EnterpriseCrmEventbusProtoConditionResult `json:"conditionResults,omitempty"` - - // DiffParams: The parameters in Event object that differs from last - // snapshot. + // DiffParams: The parameters in Event object that differs from last snapshot. DiffParams *EnterpriseCrmEventbusProtoEventParameters `json:"diffParams,omitempty"` - - // EventExecutionInfoId: Points to the event execution info this - // snapshot belongs to. + // EventExecutionInfoId: Points to the event execution info this snapshot + // belongs to. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - // EventExecutionSnapshotId: Auto-generated. Used as primary key for // EventExecutionSnapshots table. - EventExecutionSnapshotId string `json:"eventExecutionSnapshotId,omitempty"` - + EventExecutionSnapshotId string `json:"eventExecutionSnapshotId,omitempty"` EventExecutionSnapshotMetadata *EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata `json:"eventExecutionSnapshotMetadata,omitempty"` - // EventParams: The parameters in Event object. EventParams *EnterpriseCrmEventbusProtoEventParameters `json:"eventParams,omitempty"` - - // ExceedMaxSize: indicate whether snapshot exceeded maximum size before - // clean up + // ExceedMaxSize: indicate whether snapshot exceeded maximum size before clean + // up ExceedMaxSize bool `json:"exceedMaxSize,omitempty"` - // SnapshotTime: Indicates when this snapshot is taken. SnapshotTime int64 `json:"snapshotTime,omitempty,string"` - - // TaskExecutionDetails: All of the task execution details at the given - // point of time. + // TaskExecutionDetails: All of the task execution details at the given point + // of time. TaskExecutionDetails []*EnterpriseCrmEventbusProtoTaskExecutionDetails `json:"taskExecutionDetails,omitempty"` - - // TaskName: The task name associated with this snapshot. Could be - // empty. + // TaskName: The task name associated with this snapshot. Could be empty. TaskName string `json:"taskName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CheckpointTaskNumber") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CheckpointTaskNumber") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventExecutionSnapshot) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventExecutionSnapshot) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventExecutionSnapshot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata struct { // EventAttemptNum: the event attempt number this snapshot belongs to. EventAttemptNum int64 `json:"eventAttemptNum,omitempty"` - - // TaskAttemptNum: the task attempt number this snapshot belongs to. - // Could be empty. - TaskAttemptNum int64 `json:"taskAttemptNum,omitempty"` - - // TaskLabel: the task label associated with this snapshot. Could be + // TaskAttemptNum: the task attempt number this snapshot belongs to. Could be // empty. + TaskAttemptNum int64 `json:"taskAttemptNum,omitempty"` + // TaskLabel: the task label associated with this snapshot. Could be empty. TaskLabel string `json:"taskLabel,omitempty"` - - // TaskName: the task name associated with this snapshot. Could be - // empty. + // TaskName: the task name associated with this snapshot. Could be empty. TaskName string `json:"taskName,omitempty"` - - // TaskNumber: The task number associated with this snapshot. Could be - // empty. + // TaskNumber: The task number associated with this snapshot. Could be empty. TaskNumber string `json:"taskNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventAttemptNum") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventAttemptNum") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventAttemptNum") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoEventParameters: LINT.IfChange This message -// is used for processing and persisting (when applicable) key value -// pair parameters for each event in the event bus. Please see +// EnterpriseCrmEventbusProtoEventParameters: LINT.IfChange This message is +// used for processing and persisting (when applicable) key value pair +// parameters for each event in the event bus. Please see type EnterpriseCrmEventbusProtoEventParameters struct { - // Parameters: Parameters are a part of Event and can be used to - // communicate between different tasks that are part of the same - // integration execution. + // Parameters: Parameters are a part of Event and can be used to communicate + // between different tasks that are part of the same integration execution. Parameters []*EnterpriseCrmEventbusProtoParameterEntry `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoEventParameters) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoEventParameters) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoEventParameters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoExecutionTraceInfo: Message that helps -// aggregate all sub-executions triggered by one execution and keeps -// track of child-parent relationships. +// EnterpriseCrmEventbusProtoExecutionTraceInfo: Message that helps aggregate +// all sub-executions triggered by one execution and keeps track of +// child-parent relationships. type EnterpriseCrmEventbusProtoExecutionTraceInfo struct { - // ParentEventExecutionInfoId: Parent event execution info id that - // triggers the current execution through SubWorkflowExecutorTask. + // ParentEventExecutionInfoId: Parent event execution info id that triggers the + // current execution through SubWorkflowExecutorTask. ParentEventExecutionInfoId string `json:"parentEventExecutionInfoId,omitempty"` - // TraceId: Used to aggregate ExecutionTraceInfo. TraceId string `json:"traceId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ParentEventExecutionInfoId") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ParentEventExecutionInfoId") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ParentEventExecutionInfoId") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ParentEventExecutionInfoId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoExecutionTraceInfo) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoExecutionTraceInfo) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoExecutionTraceInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoExternalTraffic: Represents external -// traffic type and id. +// EnterpriseCrmEventbusProtoExternalTraffic: Represents external traffic type +// and id. type EnterpriseCrmEventbusProtoExternalTraffic struct { // GcpProjectId: User’s GCP project id the traffic is referring to. GcpProjectId string `json:"gcpProjectId,omitempty"` - - // GcpProjectNumber: User’s GCP project number the traffic is - // referring to. + // GcpProjectNumber: User’s GCP project number the traffic is referring to. GcpProjectNumber string `json:"gcpProjectNumber,omitempty"` - // Location: Location for the user's request. Location string `json:"location,omitempty"` - // Source: - // LINT.ThenChange(//depot/google3/enterprise/crm/eventbus/proto/product. - // proto:product, - // //depot/google3/java/com/google/enterprise/crm/integrationplatform/api - // /utils/ConverterUtils.java:source_to_product) + // LINT.ThenChange(//depot/google3/enterprise/crm/eventbus/proto/product.proto:p + // roduct, + // //depot/google3/java/com/google/enterprise/crm/integrationplatform/api/utils/ + // ConverterUtils.java:source_to_product) // // Possible values: // "SOURCE_UNSPECIFIED" // "APIGEE" // "SECURITY" Source string `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcpProjectId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GcpProjectId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GcpProjectId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoExternalTraffic) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoExternalTraffic) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoExternalTraffic - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoFailurePolicy: Policy that defines the task -// retry logic and failure type. If no FailurePolicy is defined for a -// task, all its dependent tasks will not be executed (i.e, a -// `retry_strategy` of NONE will be applied). +// EnterpriseCrmEventbusProtoFailurePolicy: Policy that defines the task retry +// logic and failure type. If no FailurePolicy is defined for a task, all its +// dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will +// be applied). type EnterpriseCrmEventbusProtoFailurePolicy struct { // IntervalInSeconds: Required if retry_strategy is FIXED_INTERVAL or // LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the // initial interval for backoff. IntervalInSeconds int64 `json:"intervalInSeconds,omitempty,string"` - // MaxNumRetries: Required if retry_strategy is FIXED_INTERVAL or - // LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the - // number of times the task will be retried if failed. + // LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number + // of times the task will be retried if failed. MaxNumRetries int64 `json:"maxNumRetries,omitempty"` - // RetryStrategy: Defines what happens to the task upon failure. // // Possible values: // "UNSPECIFIED" - // "IGNORE" - Ignores the failure of this task. The rest of the - // workflow will be executed Assuming this task succeeded. - // "NONE" - Causes a permanent failure of the task. However, if the - // last task(s) of event was successfully completed despite the failure - // of this task, it has no impact on the workflow. - // "FATAL" - Causes a permanent failure of the event. It is different - // from NONE because this will mark the event as FAILED by shutting down - // the event execution. - // "FIXED_INTERVAL" - The task will be retried from the failed task - // onwards after a fixed delay. A max-retry count is required to be - // specified with this strategy. A jitter is added to each exponential - // interval so that concurrently failing tasks of the same type do not - // end up retrying after the exact same exponential interval. - // Max_num_retries and interval_in_seconds must be specified. - // "LINEAR_BACKOFF" - The task will be retried from the failed task - // onwards after a fixed delay that linearly increases with each retry - // attempt. A jitter is added to each exponential interval so that - // concurrently failing tasks of the same type do not end up retrying - // after the exact same exponential interval. A max-retry count is - // required to be specified with this strategy. Max_num_retries and - // interval_in_seconds must be specified. - // "EXPONENTIAL_BACKOFF" - The task will be retried after an - // exponentially increasing period of time with each failure. A jitter - // is added to each exponential interval so that concurrently failing + // "IGNORE" - Ignores the failure of this task. The rest of the workflow will + // be executed Assuming this task succeeded. + // "NONE" - Causes a permanent failure of the task. However, if the last + // task(s) of event was successfully completed despite the failure of this + // task, it has no impact on the workflow. + // "FATAL" - Causes a permanent failure of the event. It is different from + // NONE because this will mark the event as FAILED by shutting down the event + // execution. + // "FIXED_INTERVAL" - The task will be retried from the failed task onwards + // after a fixed delay. A max-retry count is required to be specified with this + // strategy. A jitter is added to each exponential interval so that + // concurrently failing tasks of the same type do not end up retrying after the + // exact same exponential interval. Max_num_retries and interval_in_seconds + // must be specified. + // "LINEAR_BACKOFF" - The task will be retried from the failed task onwards + // after a fixed delay that linearly increases with each retry attempt. A + // jitter is added to each exponential interval so that concurrently failing // tasks of the same type do not end up retrying after the exact same - // exponential interval. A max-retry count is required to be specified - // with this strategy. `max_num_retries` and `interval_in_seconds` must - // be specified. - // "RESTART_WORKFLOW_WITH_BACKOFF" - The entire workflow will be - // restarted with the initial parameters that were set when the event - // was fired. A max-retry count is required to be specified with this - // strategy. `max_num_retries` and `interval_in_seconds` must be - // specified. + // exponential interval. A max-retry count is required to be specified with + // this strategy. Max_num_retries and interval_in_seconds must be specified. + // "EXPONENTIAL_BACKOFF" - The task will be retried after an exponentially + // increasing period of time with each failure. A jitter is added to each + // exponential interval so that concurrently failing tasks of the same type do + // not end up retrying after the exact same exponential interval. A max-retry + // count is required to be specified with this strategy. `max_num_retries` and + // `interval_in_seconds` must be specified. + // "RESTART_WORKFLOW_WITH_BACKOFF" - The entire workflow will be restarted + // with the initial parameters that were set when the event was fired. A + // max-retry count is required to be specified with this strategy. + // `max_num_retries` and `interval_in_seconds` must be specified. RetryStrategy string `json:"retryStrategy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IntervalInSeconds") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IntervalInSeconds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntervalInSeconds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IntervalInSeconds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoFailurePolicy) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoFailurePolicy) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoFailurePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoField: Information about the value and type -// of the field. +// EnterpriseCrmEventbusProtoField: Information about the value and type of the +// field. type EnterpriseCrmEventbusProtoField struct { - // Cardinality: By default, if the cardinality is unspecified the field - // is considered required while mapping. + // Cardinality: By default, if the cardinality is unspecified the field is + // considered required while mapping. // // Possible values: // "UNSPECIFIED" - For fields with unspecified cardinality. - // "OPTIONAL" - If field cardinality is set to optional, ignore errors - // if input field value is null or the reference_key is not found. + // "OPTIONAL" - If field cardinality is set to optional, ignore errors if + // input field value is null or the reference_key is not found. Cardinality string `json:"cardinality,omitempty"` - - // DefaultValue: This holds the default values for the fields. This - // value is supplied by user so may or may not contain PII or SPII data. + // DefaultValue: This holds the default values for the fields. This value is + // supplied by user so may or may not contain PII or SPII data. DefaultValue *EnterpriseCrmEventbusProtoParameterValueType `json:"defaultValue,omitempty"` - // FieldType: Specifies the data type of the field. // // Possible values: @@ -2049,197 +1749,150 @@ type EnterpriseCrmEventbusProtoField struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" FieldType string `json:"fieldType,omitempty"` - // ProtoDefPath: Optional. The fully qualified proto name (e.g. // enterprise.crm.storage.Account). Required for output field of type - // PROTO_VALUE or PROTO_ARRAY. For e.g., if input field_type is BYTES - // and output field_type is PROTO_VALUE, then fully qualified proto type - // url should be provided to parse the input bytes. If field_type is - // *_ARRAY, then all the converted protos are of the same type. + // PROTO_VALUE or PROTO_ARRAY. For e.g., if input field_type is BYTES and + // output field_type is PROTO_VALUE, then fully qualified proto type url should + // be provided to parse the input bytes. If field_type is *_ARRAY, then all the + // converted protos are of the same type. ProtoDefPath string `json:"protoDefPath,omitempty"` - // ReferenceKey: This holds the reference key of the workflow or task - // parameter. 1. Any workflow parameter, for e.g. $workflowParam1$. 2. - // Any task input or output parameter, for e.g. $task1_param1$. 3. Any - // workflow or task parameters with subfield references, for e.g., - // $task1_param1.employee.id$ + // parameter. 1. Any workflow parameter, for e.g. $workflowParam1$. 2. Any task + // input or output parameter, for e.g. $task1_param1$. 3. Any workflow or task + // parameters with subfield references, for e.g., $task1_param1.employee.id$ ReferenceKey string `json:"referenceKey,omitempty"` - - // TransformExpression: This is the transform expression to fetch the - // input field value. for e.g. $param1$.CONCAT('test'). Keep points - 1. - // Only input field can have a transform expression. 2. If a transform - // expression is provided, reference_key will be ignored. 3. If no value - // is returned after evaluation of transform expression, default_value - // can be mapped if provided. 4. The field_type should be the type of - // the final object returned after the transform expression is - // evaluated. Scrubs the transform expression before logging as value - // provided by user so may or may not contain PII or SPII data. + // TransformExpression: This is the transform expression to fetch the input + // field value. for e.g. $param1$.CONCAT('test'). Keep points - 1. Only input + // field can have a transform expression. 2. If a transform expression is + // provided, reference_key will be ignored. 3. If no value is returned after + // evaluation of transform expression, default_value can be mapped if provided. + // 4. The field_type should be the type of the final object returned after the + // transform expression is evaluated. Scrubs the transform expression before + // logging as value provided by user so may or may not contain PII or SPII + // data. TransformExpression *EnterpriseCrmEventbusProtoTransformExpression `json:"transformExpression,omitempty"` - // ForceSendFields is a list of field names (e.g. "Cardinality") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cardinality") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cardinality") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoField) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoField) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoFieldMappingConfig: Field Mapping Config to -// map multiple output fields values from input fields values. +// EnterpriseCrmEventbusProtoFieldMappingConfig: Field Mapping Config to map +// multiple output fields values from input fields values. type EnterpriseCrmEventbusProtoFieldMappingConfig struct { MappedFields []*EnterpriseCrmEventbusProtoMappedField `json:"mappedFields,omitempty"` - // ForceSendFields is a list of field names (e.g. "MappedFields") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MappedFields") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MappedFields") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoFieldMappingConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoFieldMappingConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoFieldMappingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoFunction struct { // FunctionType: The name of the function to perform. FunctionType *EnterpriseCrmEventbusProtoFunctionType `json:"functionType,omitempty"` - // Parameters: List of parameters required for the transformation. Parameters []*EnterpriseCrmEventbusProtoTransformExpression `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoFunctionType struct { // BaseFunction: LINT.IfChange - BaseFunction *EnterpriseCrmEventbusProtoBaseFunction `json:"baseFunction,omitempty"` - + BaseFunction *EnterpriseCrmEventbusProtoBaseFunction `json:"baseFunction,omitempty"` BooleanArrayFunction *EnterpriseCrmEventbusProtoBooleanArrayFunction `json:"booleanArrayFunction,omitempty"` - - BooleanFunction *EnterpriseCrmEventbusProtoBooleanFunction `json:"booleanFunction,omitempty"` - - DoubleArrayFunction *EnterpriseCrmEventbusProtoDoubleArrayFunction `json:"doubleArrayFunction,omitempty"` - - DoubleFunction *EnterpriseCrmEventbusProtoDoubleFunction `json:"doubleFunction,omitempty"` - - IntArrayFunction *EnterpriseCrmEventbusProtoIntArrayFunction `json:"intArrayFunction,omitempty"` - - IntFunction *EnterpriseCrmEventbusProtoIntFunction `json:"intFunction,omitempty"` - + BooleanFunction *EnterpriseCrmEventbusProtoBooleanFunction `json:"booleanFunction,omitempty"` + DoubleArrayFunction *EnterpriseCrmEventbusProtoDoubleArrayFunction `json:"doubleArrayFunction,omitempty"` + DoubleFunction *EnterpriseCrmEventbusProtoDoubleFunction `json:"doubleFunction,omitempty"` + IntArrayFunction *EnterpriseCrmEventbusProtoIntArrayFunction `json:"intArrayFunction,omitempty"` + IntFunction *EnterpriseCrmEventbusProtoIntFunction `json:"intFunction,omitempty"` // JsonFunction: - // LINT.ThenChange(//depot/google3/alkali/apps/integrationplatform/client - // /workflow_editor/utils/transform_function.ts) - JsonFunction *EnterpriseCrmEventbusProtoJsonFunction `json:"jsonFunction,omitempty"` - - ProtoArrayFunction *EnterpriseCrmEventbusProtoProtoArrayFunction `json:"protoArrayFunction,omitempty"` - - ProtoFunction *EnterpriseCrmEventbusProtoProtoFunction `json:"protoFunction,omitempty"` - + // LINT.ThenChange(//depot/google3/alkali/apps/integrationplatform/client/workfl + // ow_editor/utils/transform_function.ts) + JsonFunction *EnterpriseCrmEventbusProtoJsonFunction `json:"jsonFunction,omitempty"` + ProtoArrayFunction *EnterpriseCrmEventbusProtoProtoArrayFunction `json:"protoArrayFunction,omitempty"` + ProtoFunction *EnterpriseCrmEventbusProtoProtoFunction `json:"protoFunction,omitempty"` StringArrayFunction *EnterpriseCrmEventbusProtoStringArrayFunction `json:"stringArrayFunction,omitempty"` - - StringFunction *EnterpriseCrmEventbusProtoStringFunction `json:"stringFunction,omitempty"` - + StringFunction *EnterpriseCrmEventbusProtoStringFunction `json:"stringFunction,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseFunction") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BaseFunction") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BaseFunction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoFunctionType) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoFunctionType) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoFunctionType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoIntArray struct { Values googleapi.Int64s `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoIntArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoIntArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoIntArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoIntArrayFunction struct { @@ -2262,28 +1915,22 @@ type EnterpriseCrmEventbusProtoIntArrayFunction struct { // "FOR_EACH" // "FILTER" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoIntArrayFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoIntArrayFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoIntArrayFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoIntFunction struct { @@ -2305,54 +1952,42 @@ type EnterpriseCrmEventbusProtoIntFunction struct { // "MOD" // "EPOCH_TO_HUMAN_READABLE_TIME" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoIntFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoIntFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoIntFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoIntParameterArray struct { IntValues googleapi.Int64s `json:"intValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntValues") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IntValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoIntParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoIntParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoIntParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoJsonFunction struct { @@ -2382,101 +2017,80 @@ type EnterpriseCrmEventbusProtoJsonFunction struct { // "FOR_EACH" // "FILTER_ELEMENTS" - next id: 24 FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoJsonFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoJsonFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoJsonFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoLogSettings: The LogSettings define the -// logging attributes for an event property. These attributes are used -// to map the property to the parameter in the log proto. Also used to -// define scrubbing/truncation behavior and PII information. +// EnterpriseCrmEventbusProtoLogSettings: The LogSettings define the logging +// attributes for an event property. These attributes are used to map the +// property to the parameter in the log proto. Also used to define +// scrubbing/truncation behavior and PII information. type EnterpriseCrmEventbusProtoLogSettings struct { - // LogFieldName: The name of corresponding logging field of the event - // property. If omitted, assumes the same name as the event property - // key. + // LogFieldName: The name of corresponding logging field of the event property. + // If omitted, assumes the same name as the event property key. LogFieldName string `json:"logFieldName,omitempty"` - - // SanitizeOptions: Contains the scrubbing options, such as whether to - // scrub, obfuscate, etc. + // SanitizeOptions: Contains the scrubbing options, such as whether to scrub, + // obfuscate, etc. SanitizeOptions *EnterpriseCrmLoggingGwsSanitizeOptions `json:"sanitizeOptions,omitempty"` - // Possible values: // "SEED_PERIOD_UNSPECIFIED" // "DAY" - Sanitized values remain constant for the day of the event. - // "WEEK" - Sanitized values remain constant for the week of the - // event; may cross month boundaries. - // "MONTH" - Sanitized values remain constant for the month of the - // event. + // "WEEK" - Sanitized values remain constant for the week of the event; may + // cross month boundaries. + // "MONTH" - Sanitized values remain constant for the month of the event. SeedPeriod string `json:"seedPeriod,omitempty"` - // Possible values: // "SEED_SCOPE_UNSPECIFIED" // "EVENT_NAME" - Hash computations include the event name. // "TIME_PERIOD" - Hash computations include a time period. // "PARAM_NAME" - Hash computations include the param name. SeedScope string `json:"seedScope,omitempty"` - - // ShorteningLimits: Contains the field limits for shortening, such as - // max string length and max array length. + // ShorteningLimits: Contains the field limits for shortening, such as max + // string length and max array length. ShorteningLimits *EnterpriseCrmLoggingGwsFieldLimits `json:"shorteningLimits,omitempty"` - // ForceSendFields is a list of field names (e.g. "LogFieldName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogFieldName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LogFieldName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoLogSettings) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoLogSettings) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoLogSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoLoopMetadata struct { // CurrentIterationCount: Starting from 1, not 0. CurrentIterationCount int64 `json:"currentIterationCount,omitempty,string"` - - // CurrentIterationDetail: Needs to be set by the loop impl class before - // each iteration. The abstract loop class will append the request and - // response to it. Eg. The foreach Loop will clean up and set it as the - // current iteration element at the start of each loop. The post request - // and response will be appended to the value once they are available. + // CurrentIterationDetail: Needs to be set by the loop impl class before each + // iteration. The abstract loop class will append the request and response to + // it. Eg. The foreach Loop will clean up and set it as the current iteration + // element at the start of each loop. The post request and response will be + // appended to the value once they are available. CurrentIterationDetail string `json:"currentIterationDetail,omitempty"` - // ErrorMsg: Add the error message when loops fail. ErrorMsg string `json:"errorMsg,omitempty"` - // FailureLocation: Indicates where in the loop logic did it error out. // // Possible values: @@ -2484,395 +2098,301 @@ type EnterpriseCrmEventbusProtoLoopMetadata struct { // "SUBWORKFLOW" - Subworkflow failed while firing/running. // "PARAM_OVERRIDING" - Param overrides failed. // "PARAM_AGGREGATING" - Param aggregation failed. - // "SETTING_ITERATION_ELEMENT" - Setting for loop current element - // failed. + // "SETTING_ITERATION_ELEMENT" - Setting for loop current element failed. // "GETTING_LIST_TO_ITERATE" - Getting the list to iterate. // "CONDITION_EVALUATION" - Evaluating the while loop condition. // "BUILDING_REQUEST" - Building the iteration request FailureLocation string `json:"failureLocation,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CurrentIterationCount") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CurrentIterationCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CurrentIterationCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoLoopMetadata) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoLoopMetadata) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoLoopMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoMappedField: Mapped field is a pair of -// input field and output field. +// EnterpriseCrmEventbusProtoMappedField: Mapped field is a pair of input field +// and output field. type EnterpriseCrmEventbusProtoMappedField struct { // InputField: The input field being mapped from. InputField *EnterpriseCrmEventbusProtoField `json:"inputField,omitempty"` - // OutputField: The output field being mapped to. OutputField *EnterpriseCrmEventbusProtoField `json:"outputField,omitempty"` - // ForceSendFields is a list of field names (e.g. "InputField") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InputField") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InputField") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoMappedField) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoMappedField) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoMappedField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoNextTask: The task that is next in line to -// be executed, if the condition specified evaluated to true. +// EnterpriseCrmEventbusProtoNextTask: The task that is next in line to be +// executed, if the condition specified evaluated to true. type EnterpriseCrmEventbusProtoNextTask struct { - // CombinedConditions: Combined condition for this task to become an - // eligible next task. Each of these combined_conditions are joined with - // logical OR. DEPRECATED: use `condition` + // CombinedConditions: Combined condition for this task to become an eligible + // next task. Each of these combined_conditions are joined with logical OR. + // DEPRECATED: use `condition` CombinedConditions []*EnterpriseCrmEventbusProtoCombinedCondition `json:"combinedConditions,omitempty"` - - // Condition: Standard filter expression for this task to become an - // eligible next task. + // Condition: Standard filter expression for this task to become an eligible + // next task. Condition string `json:"condition,omitempty"` - // Description: User-provided description intended to give more business // context about the next task edge or condition. Description string `json:"description,omitempty"` - // Label: User-provided label that is attached to this edge in the UI. Label string `json:"label,omitempty"` - // TaskConfigId: ID of the next task. TaskConfigId string `json:"taskConfigId,omitempty"` - // TaskNumber: Task number of the next task. TaskNumber string `json:"taskNumber,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CombinedConditions") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CombinedConditions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CombinedConditions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CombinedConditions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoNextTask) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoNextTask) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoNextTask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoNextTeardownTask: The teardown task that is -// next in line to be executed. We support only sequential execution of -// teardown tasks (i.e. no branching). +// EnterpriseCrmEventbusProtoNextTeardownTask: The teardown task that is next +// in line to be executed. We support only sequential execution of teardown +// tasks (i.e. no branching). type EnterpriseCrmEventbusProtoNextTeardownTask struct { // Name: Required. Name of the next teardown task. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoNextTeardownTask) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoNextTeardownTask) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoNextTeardownTask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoNodeIdentifier: Represents a node -// identifier (type + id). Next highest id: 3 +// EnterpriseCrmEventbusProtoNodeIdentifier: Represents a node identifier (type +// + id). Next highest id: 3 type EnterpriseCrmEventbusProtoNodeIdentifier struct { // ElementIdentifier: Configuration of the edge. ElementIdentifier string `json:"elementIdentifier,omitempty"` - - // ElementType: Destination node where the edge ends. It can only be a - // task config. + // ElementType: Destination node where the edge ends. It can only be a task + // config. // // Possible values: // "UNKNOWN_TYPE" // "TASK_CONFIG" // "TRIGGER_CONFIG" ElementType string `json:"elementType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ElementIdentifier") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ElementIdentifier") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ElementIdentifier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ElementIdentifier") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoNodeIdentifier) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoNodeIdentifier) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoNodeIdentifier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoNotification struct { BuganizerNotification *EnterpriseCrmEventbusProtoBuganizerNotification `json:"buganizerNotification,omitempty"` - - EmailAddress *EnterpriseCrmEventbusProtoAddress `json:"emailAddress,omitempty"` - - EscalatorQueue string `json:"escalatorQueue,omitempty"` - - PubsubTopic string `json:"pubsubTopic,omitempty"` - - // Request: If the out-of-the-box email/pubsub notifications are not - // suitable and custom logic is required, fire a workflow containing all - // info needed to notify users to resume execution. + EmailAddress *EnterpriseCrmEventbusProtoAddress `json:"emailAddress,omitempty"` + EscalatorQueue string `json:"escalatorQueue,omitempty"` + PubsubTopic string `json:"pubsubTopic,omitempty"` + // Request: If the out-of-the-box email/pubsub notifications are not suitable + // and custom logic is required, fire a workflow containing all info needed to + // notify users to resume execution. Request *EnterpriseCrmEventbusProtoCustomSuspensionRequest `json:"request,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "BuganizerNotification") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BuganizerNotification") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BuganizerNotification") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoNotification) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoNotification) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoNotification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoParamSpecEntryConfig struct { - // DescriptivePhrase: A short phrase to describe what this parameter - // contains. + // DescriptivePhrase: A short phrase to describe what this parameter contains. DescriptivePhrase string `json:"descriptivePhrase,omitempty"` - - // HelpText: Detailed help text for this parameter containing - // information not provided elsewhere. For example, instructions on how - // to migrate from a deprecated parameter. + // HelpText: Detailed help text for this parameter containing information not + // provided elsewhere. For example, instructions on how to migrate from a + // deprecated parameter. HelpText string `json:"helpText,omitempty"` - // HideDefaultValue: Whether the default value is hidden in the UI. HideDefaultValue bool `json:"hideDefaultValue,omitempty"` - // Possible values: - // "DEFAULT" - A single-line input for strings, a numeric input box - // for numbers, or a checkbox for booleans. - // "STRING_MULTI_LINE" - A multi-line input box for longer - // strings/string templates. - // "NUMBER_SLIDER" - A slider to select a numerical value. The default - // range is [0, 100]. + // "DEFAULT" - A single-line input for strings, a numeric input box for + // numbers, or a checkbox for booleans. + // "STRING_MULTI_LINE" - A multi-line input box for longer strings/string + // templates. + // "NUMBER_SLIDER" - A slider to select a numerical value. The default range + // is [0, 100]. // "BOOLEAN_TOGGLE" - A toggle button for boolean parameters. InputDisplayOption string `json:"inputDisplayOption,omitempty"` - // IsHidden: Whether this field is hidden in the UI. IsHidden bool `json:"isHidden,omitempty"` - // Label: A user-friendly label for the parameter. Label string `json:"label,omitempty"` - // Possible values: // "DEFAULT_NOT_PARAMETER_NAME" - This field is not a parameter name. // "IS_PARAMETER_NAME" - If this field is a string and this option is - // selected, the field will be interpreted as a parameter name. Users - // will be able to choose a variable using the autocomplete, but the - // name will be stored as a literal string. - // "KEY_IS_PARAMETER_NAME" - If this field is a ParameterMap and this - // option is selected, the map's keys will be interpreted as parameter - // names. Ignored if this field is not a ParameterMap. - // "VALUE_IS_PARAMETER_NAME" - If this field is a ParameterMap and - // this option is selected, the map's values will be interpreted as - // parameter names. Ignored if this field is not a ParameterMap. + // selected, the field will be interpreted as a parameter name. Users will be + // able to choose a variable using the autocomplete, but the name will be + // stored as a literal string. + // "KEY_IS_PARAMETER_NAME" - If this field is a ParameterMap and this option + // is selected, the map's keys will be interpreted as parameter names. Ignored + // if this field is not a ParameterMap. + // "VALUE_IS_PARAMETER_NAME" - If this field is a ParameterMap and this + // option is selected, the map's values will be interpreted as parameter names. + // Ignored if this field is not a ParameterMap. ParameterNameOption string `json:"parameterNameOption,omitempty"` - // SubSectionLabel: A user-friendly label for subSection under which the // parameter will be displayed. SubSectionLabel string `json:"subSectionLabel,omitempty"` - - // UiPlaceholderText: Placeholder text which will appear in the UI input - // form for this parameter. + // UiPlaceholderText: Placeholder text which will appear in the UI input form + // for this parameter. UiPlaceholderText string `json:"uiPlaceholderText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DescriptivePhrase") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DescriptivePhrase") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DescriptivePhrase") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DescriptivePhrase") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition struct { - // FullName: The fully-qualified proto name. This message, for example, - // would be - // "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". + // FullName: The fully-qualified proto name. This message, for example, would + // be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". FullName string `json:"fullName,omitempty"` - - // Path: Path to the proto file that contains the message type's - // definition. + // Path: Path to the proto file that contains the message type's definition. Path string `json:"path,omitempty"` - // ForceSendFields is a list of field names (e.g. "FullName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FullName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FullName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoParamSpecEntryValidationRule struct { DoubleRange *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange `json:"doubleRange,omitempty"` - - IntRange *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange `json:"intRange,omitempty"` - + IntRange *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange `json:"intRange,omitempty"` StringRegex *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex `json:"stringRegex,omitempty"` - // ForceSendFields is a list of field names (e.g. "DoubleRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoubleRange") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DoubleRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRule) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryValidationRule) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange: -// Range used to validate doubles and floats. +// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange: Range +// used to validate doubles and floats. type EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange struct { // Max: The inclusive maximum of the acceptable range. Max float64 `json:"max,omitempty"` - // Min: The inclusive minimum of the acceptable range. Min float64 `json:"min,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Max") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Max") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Max") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Max") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange) UnmarshalJSON(data []byte) error { @@ -2891,114 +2411,91 @@ func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange) Unma return nil } -// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange: Range -// used to validate longs and ints. +// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange: Range used +// to validate longs and ints. type EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange struct { // Max: The inclusive maximum of the acceptable range. Max int64 `json:"max,omitempty,string"` - // Min: The inclusive minimum of the acceptable range. Min int64 `json:"min,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Max") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Max") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Max") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Max") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex: -// Rule used to validate strings. +// EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex: Rule used +// to validate strings. type EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex struct { // Exclusive: Whether the regex matcher is applied exclusively (if true, // matching values will be rejected). Exclusive bool `json:"exclusive,omitempty"` - // Regex: The regex applied to the input value(s). Regex string `json:"regex,omitempty"` - // ForceSendFields is a list of field names (e.g. "Exclusive") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Exclusive") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Exclusive") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmEventbusProtoParameterEntry: Key-value pair of EventBus // parameters. type EnterpriseCrmEventbusProtoParameterEntry struct { - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given fired event. These parameters must be - // predefined in the integration definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given fired event. These parameters must be predefined in + // the integration definition. Key string `json:"key,omitempty"` - - // Value: Values for the defined keys. Each value can either be string, - // int, double or any proto message. + // Value: Values for the defined keys. Each value can either be string, int, + // double or any proto message. Value *EnterpriseCrmEventbusProtoParameterValueType `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParameterEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParameterEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParameterEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParameterMap: A generic multi-map that -// holds key value pairs. They keys and values can be of any type, -// unless specified. +// EnterpriseCrmEventbusProtoParameterMap: A generic multi-map that holds key +// value pairs. They keys and values can be of any type, unless specified. type EnterpriseCrmEventbusProtoParameterMap struct { Entries []*EnterpriseCrmEventbusProtoParameterMapEntry `json:"entries,omitempty"` - - // KeyType: Option to specify key value type for all entries of the map. - // If provided then field types for all entries must conform to this. + // KeyType: Option to specify key value type for all entries of the map. If + // provided then field types for all entries must conform to this. // // Possible values: // "DATA_TYPE_UNSPECIFIED" @@ -3015,14 +2512,12 @@ type EnterpriseCrmEventbusProtoParameterMap struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" KeyType string `json:"keyType,omitempty"` - // Possible values: // "DATA_TYPE_UNSPECIFIED" // "STRING_VALUE" @@ -3038,145 +2533,108 @@ type EnterpriseCrmEventbusProtoParameterMap struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" ValueType string `json:"valueType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParameterMap) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParameterMap) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParameterMap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParameterMapEntry: Entry is a pair of key -// and value. +// EnterpriseCrmEventbusProtoParameterMapEntry: Entry is a pair of key and +// value. type EnterpriseCrmEventbusProtoParameterMapEntry struct { - Key *EnterpriseCrmEventbusProtoParameterMapField `json:"key,omitempty"` - + Key *EnterpriseCrmEventbusProtoParameterMapField `json:"key,omitempty"` Value *EnterpriseCrmEventbusProtoParameterMapField `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParameterMapEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParameterMapEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParameterMapEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParameterMapField: Field represents either -// the key or value in an entry. +// EnterpriseCrmEventbusProtoParameterMapField: Field represents either the key +// or value in an entry. type EnterpriseCrmEventbusProtoParameterMapField struct { // LiteralValue: Passing a literal value. LiteralValue *EnterpriseCrmEventbusProtoParameterValueType `json:"literalValue,omitempty"` - // ReferenceKey: Referencing one of the WF variables. ReferenceKey string `json:"referenceKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "LiteralValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LiteralValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LiteralValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParameterMapField) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParameterMapField) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParameterMapField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoParameterValueType: LINT.IfChange To -// support various types of parameter values. Next available id: 14 +// EnterpriseCrmEventbusProtoParameterValueType: LINT.IfChange To support +// various types of parameter values. Next available id: 14 type EnterpriseCrmEventbusProtoParameterValueType struct { - BooleanArray *EnterpriseCrmEventbusProtoBooleanParameterArray `json:"booleanArray,omitempty"` - - BooleanValue bool `json:"booleanValue,omitempty"` - - DoubleArray *EnterpriseCrmEventbusProtoDoubleParameterArray `json:"doubleArray,omitempty"` - - DoubleValue float64 `json:"doubleValue,omitempty"` - - IntArray *EnterpriseCrmEventbusProtoIntParameterArray `json:"intArray,omitempty"` - - IntValue int64 `json:"intValue,omitempty,string"` - - ProtoArray *EnterpriseCrmEventbusProtoProtoParameterArray `json:"protoArray,omitempty"` - - ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` - + BooleanArray *EnterpriseCrmEventbusProtoBooleanParameterArray `json:"booleanArray,omitempty"` + BooleanValue bool `json:"booleanValue,omitempty"` + DoubleArray *EnterpriseCrmEventbusProtoDoubleParameterArray `json:"doubleArray,omitempty"` + DoubleValue float64 `json:"doubleValue,omitempty"` + IntArray *EnterpriseCrmEventbusProtoIntParameterArray `json:"intArray,omitempty"` + IntValue int64 `json:"intValue,omitempty,string"` + ProtoArray *EnterpriseCrmEventbusProtoProtoParameterArray `json:"protoArray,omitempty"` + ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` SerializedObjectValue *EnterpriseCrmEventbusProtoSerializedObjectParameter `json:"serializedObjectValue,omitempty"` - - StringArray *EnterpriseCrmEventbusProtoStringParameterArray `json:"stringArray,omitempty"` - - StringValue string `json:"stringValue,omitempty"` - + StringArray *EnterpriseCrmEventbusProtoStringParameterArray `json:"stringArray,omitempty"` + StringValue string `json:"stringValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BooleanArray") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanArray") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanArray") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoParameterValueType) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoParameterValueType) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoParameterValueType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmEventbusProtoParameterValueType) UnmarshalJSON(data []byte) error { @@ -3196,37 +2654,29 @@ func (s *EnterpriseCrmEventbusProtoParameterValueType) UnmarshalJSON(data []byte // EnterpriseCrmEventbusProtoPropertyEntry: Key-value pair of EventBus // property. type EnterpriseCrmEventbusProtoPropertyEntry struct { - // Key: Key is used to retrieve the corresponding property value. This - // should be unique for a given fired event. The Tasks should be aware - // of the keys used while firing the events for them to be able to - // retrieve the values. + // Key: Key is used to retrieve the corresponding property value. This should + // be unique for a given fired event. The Tasks should be aware of the keys + // used while firing the events for them to be able to retrieve the values. Key string `json:"key,omitempty"` - - // Value: Values for the defined keys. Each value can either be string, - // int, double or any proto message. + // Value: Values for the defined keys. Each value can either be string, int, + // double or any proto message. Value *EnterpriseCrmEventbusProtoValueType `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoPropertyEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoPropertyEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoPropertyEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoProtoArrayFunction struct { @@ -3245,28 +2695,22 @@ type EnterpriseCrmEventbusProtoProtoArrayFunction struct { // "FOR_EACH" // "FILTER" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoProtoArrayFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoProtoArrayFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoProtoArrayFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoProtoFunction struct { @@ -3287,151 +2731,115 @@ type EnterpriseCrmEventbusProtoProtoFunction struct { // "GET_BYTES_SUBFIELD_AS_PROTO" // "EQUALS" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoProtoFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoProtoFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoProtoFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoProtoParameterArray struct { ProtoValues []googleapi.RawMessage `json:"protoValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProtoValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProtoValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProtoValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoProtoParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoProtoParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoProtoParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoScatterResponse struct { // ErrorMsg: The error message of the failure if applicable. ErrorMsg string `json:"errorMsg,omitempty"` - - // ExecutionIds: The execution ids of each Subworkflow fired by this - // scatter. + // ExecutionIds: The execution ids of each Subworkflow fired by this scatter. ExecutionIds []string `json:"executionIds,omitempty"` - - // IsSuccessful: If execution is sync, this is true if the execution - // passed and false if it failed. If the execution is async, this is - // true if the WF was fired off successfully, and false if it failed to - // execute. The success or failure of the subworkflows executed are not - // captured. + // IsSuccessful: If execution is sync, this is true if the execution passed and + // false if it failed. If the execution is async, this is true if the WF was + // fired off successfully, and false if it failed to execute. The success or + // failure of the subworkflows executed are not captured. IsSuccessful bool `json:"isSuccessful,omitempty"` - - // ResponseParams: A list of all the response parameters in the - // aggregtorMap stored with the remapped key. + // ResponseParams: A list of all the response parameters in the aggregtorMap + // stored with the remapped key. ResponseParams []*EnterpriseCrmEventbusProtoParameterEntry `json:"responseParams,omitempty"` - // ScatterElement: The element that was scattered for this execution. ScatterElement *EnterpriseCrmEventbusProtoParameterValueType `json:"scatterElement,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorMsg") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ErrorMsg") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ErrorMsg") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoScatterResponse) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoScatterResponse) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoScatterResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSerializedObjectParameter struct { ObjectValue string `json:"objectValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "ObjectValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ObjectValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ObjectValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSerializedObjectParameter) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSerializedObjectParameter) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSerializedObjectParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoStringArray struct { Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoStringArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoStringArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoStringArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoStringArrayFunction struct { @@ -3450,28 +2858,22 @@ type EnterpriseCrmEventbusProtoStringArrayFunction struct { // "FOR_EACH" // "FILTER" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoStringArrayFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoStringArrayFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoStringArrayFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoStringFunction struct { @@ -3495,260 +2897,199 @@ type EnterpriseCrmEventbusProtoStringFunction struct { // "RESOLVE_TEMPLATE" // "DECODE_BASE64_STRING" FunctionName string `json:"functionName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FunctionName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FunctionName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FunctionName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoStringFunction) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoStringFunction) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoStringFunction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoStringParameterArray struct { StringValues []string `json:"stringValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "StringValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StringValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StringValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoStringParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoStringParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoStringParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoSuccessPolicy: Policy that dictates the -// behavior for the task after it completes successfully. +// EnterpriseCrmEventbusProtoSuccessPolicy: Policy that dictates the behavior +// for the task after it completes successfully. type EnterpriseCrmEventbusProtoSuccessPolicy struct { - // FinalState: State to which the execution snapshot status will be set - // if the task succeeds. + // FinalState: State to which the execution snapshot status will be set if the + // task succeeds. // // Possible values: // "UNSPECIFIED" - // "SUCCEEDED" - The default behavior, where successful tasks will be - // marked as SUCCEEDED. + // "SUCCEEDED" - The default behavior, where successful tasks will be marked + // as SUCCEEDED. // "SUSPENDED" - Sets the state to SUSPENDED after executing. This is - // required for SuspensionTask; event execution will continue once the - // user calls ResolveSuspensions with the event_execution_info_id and - // the task number. + // required for SuspensionTask; event execution will continue once the user + // calls ResolveSuspensions with the event_execution_info_id and the task + // number. FinalState string `json:"finalState,omitempty"` - // ForceSendFields is a list of field names (e.g. "FinalState") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FinalState") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FinalState") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuccessPolicy) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuccessPolicy) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuccessPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmEventbusProtoSuspensionAuthPermissions: LINT.IfChange type EnterpriseCrmEventbusProtoSuspensionAuthPermissions struct { - // GaiaIdentity: Represents a Gaia identity for a person or service - // account. + // GaiaIdentity: Represents a Gaia identity for a person or service account. GaiaIdentity *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity `json:"gaiaIdentity,omitempty"` - - GoogleGroup *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity `json:"googleGroup,omitempty"` - - LoasRole string `json:"loasRole,omitempty"` - - MdbGroup string `json:"mdbGroup,omitempty"` - + GoogleGroup *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity `json:"googleGroup,omitempty"` + LoasRole string `json:"loasRole,omitempty"` + MdbGroup string `json:"mdbGroup,omitempty"` // ForceSendFields is a list of field names (e.g. "GaiaIdentity") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GaiaIdentity") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GaiaIdentity") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionAuthPermissions) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionAuthPermissions) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionAuthPermissions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity struct { EmailAddress string `json:"emailAddress,omitempty"` - - GaiaId int64 `json:"gaiaId,omitempty,string"` - + GaiaId int64 `json:"gaiaId,omitempty,string"` // ForceSendFields is a list of field names (e.g. "EmailAddress") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EmailAddress") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EmailAddress") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSuspensionConfig struct { - // CustomMessage: Optional information to provide recipients of the - // suspension in addition to the resolution URL, typically containing - // relevant parameter values from the originating workflow. - CustomMessage string `json:"customMessage,omitempty"` - + // CustomMessage: Optional information to provide recipients of the suspension + // in addition to the resolution URL, typically containing relevant parameter + // values from the originating workflow. + CustomMessage string `json:"customMessage,omitempty"` Notifications []*EnterpriseCrmEventbusProtoNotification `json:"notifications,omitempty"` - - // SuspensionExpiration: Indicates the next steps when no external - // actions happen on the suspension. + // SuspensionExpiration: Indicates the next steps when no external actions + // happen on the suspension. SuspensionExpiration *EnterpriseCrmEventbusProtoSuspensionExpiration `json:"suspensionExpiration,omitempty"` - // WhoMayResolve: Identities able to resolve this suspension. WhoMayResolve []*EnterpriseCrmEventbusProtoSuspensionAuthPermissions `json:"whoMayResolve,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomMessage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomMessage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomMessage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSuspensionExpiration struct { - // ExpireAfterMs: Milliseconds after which the suspension expires, if no - // action taken. + // ExpireAfterMs: Milliseconds after which the suspension expires, if no action + // taken. ExpireAfterMs int64 `json:"expireAfterMs,omitempty"` - - // LiftWhenExpired: Whether the suspension will be REJECTED or LIFTED - // upon expiration. REJECTED is the default behavior. + // LiftWhenExpired: Whether the suspension will be REJECTED or LIFTED upon + // expiration. REJECTED is the default behavior. LiftWhenExpired bool `json:"liftWhenExpired,omitempty"` - - // RemindAfterMs: Milliseconds after which the previous suspension - // action reminder, if any, is sent using the selected notification - // option, for a suspension which is still PENDING_UNSPECIFIED. + // RemindAfterMs: Milliseconds after which the previous suspension action + // reminder, if any, is sent using the selected notification option, for a + // suspension which is still PENDING_UNSPECIFIED. RemindAfterMs int64 `json:"remindAfterMs,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpireAfterMs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpireAfterMs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExpireAfterMs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionExpiration) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionExpiration) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionExpiration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSuspensionResolutionInfo struct { Audit *EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit `json:"audit,omitempty"` - // ClientId: The event data user sends as request. ClientId string `json:"clientId,omitempty"` - // CloudKmsConfig: KMS info, used by cmek/gmek integration CloudKmsConfig *EnterpriseCrmEventbusProtoCloudKmsConfig `json:"cloudKmsConfig,omitempty"` - // CreatedTimestamp: Auto-generated. CreatedTimestamp string `json:"createdTimestamp,omitempty"` - // EncryptedSuspensionResolutionInfo: Encrypted SuspensionResolutionInfo EncryptedSuspensionResolutionInfo string `json:"encryptedSuspensionResolutionInfo,omitempty"` - // EventExecutionInfoId: Required. ID of the associated execution. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - - // ExternalTraffic: The origin of the suspension for periodic - // notifications. + // ExternalTraffic: The origin of the suspension for periodic notifications. ExternalTraffic *EnterpriseCrmEventbusProtoExternalTraffic `json:"externalTraffic,omitempty"` - // LastModifiedTimestamp: Auto-generated. LastModifiedTimestamp string `json:"lastModifiedTimestamp,omitempty"` - - // Product: Which Google product the suspension belongs to. If not set, - // the suspension belongs to Integration Platform by default. + // Product: Which Google product the suspension belongs to. If not set, the + // suspension belongs to Integration Platform by default. // // Possible values: // "UNSPECIFIED_PRODUCT" @@ -3756,285 +3097,223 @@ type EnterpriseCrmEventbusProtoSuspensionResolutionInfo struct { // "APIGEE" // "SECURITY" Product string `json:"product,omitempty"` - // Possible values: // "PENDING_UNSPECIFIED" // "REJECTED" // "LIFTED" // "CANCELED" - Status string `json:"status,omitempty"` - + Status string `json:"status,omitempty"` SuspensionConfig *EnterpriseCrmEventbusProtoSuspensionConfig `json:"suspensionConfig,omitempty"` - // SuspensionId: Primary key for the SuspensionResolutionInfoTable. SuspensionId string `json:"suspensionId,omitempty"` - // TaskNumber: Required. Task number of the associated SuspensionTask. TaskNumber string `json:"taskNumber,omitempty"` - // WorkflowName: Required. The name of the originating workflow. WorkflowName string `json:"workflowName,omitempty"` - // WrappedDek: Wrapped dek WrappedDek string `json:"wrappedDek,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Audit") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Audit") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Audit") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionResolutionInfo) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionResolutionInfo) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionResolutionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit struct { - ResolvedBy string `json:"resolvedBy,omitempty"` - + ResolvedBy string `json:"resolvedBy,omitempty"` ResolvedByCpi string `json:"resolvedByCpi,omitempty"` - - Timestamp string `json:"timestamp,omitempty"` - + Timestamp string `json:"timestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "ResolvedBy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResolvedBy") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResolvedBy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskAlertConfig: Message to be used to -// configure alerting in the {@code TaskConfig} protos for tasks in an -// event. +// EnterpriseCrmEventbusProtoTaskAlertConfig: Message to be used to configure +// alerting in the {@code TaskConfig} protos for tasks in an event. type EnterpriseCrmEventbusProtoTaskAlertConfig struct { // AggregationPeriod: The period over which the metric value should be - // aggregated and evaluated. Format is , where integer should be a - // positive integer and unit should be one of (s,m,h,d,w) meaning - // (second, minute, hour, day, week). + // aggregated and evaluated. Format is , where integer should be a positive + // integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, + // day, week). AggregationPeriod string `json:"aggregationPeriod,omitempty"` - - // AlertDisabled: Set to false by default. When set to true, the metrics - // are not aggregated or pushed to Monarch for this workflow alert. + // AlertDisabled: Set to false by default. When set to true, the metrics are + // not aggregated or pushed to Monarch for this workflow alert. AlertDisabled bool `json:"alertDisabled,omitempty"` - - // AlertName: A name to identify this alert. This will be displayed in - // the alert subject. If set, this name should be unique in within the - // scope of the containing workflow. + // AlertName: A name to identify this alert. This will be displayed in the + // alert subject. If set, this name should be unique in within the scope of the + // containing workflow. AlertName string `json:"alertName,omitempty"` - - // ClientId: Client associated with this alert configuration. Must be a - // client enabled in one of the containing workflow's triggers. + // ClientId: Client associated with this alert configuration. Must be a client + // enabled in one of the containing workflow's triggers. ClientId string `json:"clientId,omitempty"` - - // DurationThresholdMs: Should be specified only for - // TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This - // member should be used to specify what duration value the metrics - // should exceed for the alert to trigger. - DurationThresholdMs int64 `json:"durationThresholdMs,omitempty,string"` - - ErrorEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"errorEnumList,omitempty"` - + // DurationThresholdMs: Should be specified only for TASK_AVERAGE_DURATION and + // TASK_PERCENTILE_DURATION metrics. This member should be used to specify what + // duration value the metrics should exceed for the alert to trigger. + DurationThresholdMs int64 `json:"durationThresholdMs,omitempty,string"` + ErrorEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"errorEnumList,omitempty"` // Possible values: - // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should - // always be set to one of the other non-default values, otherwise it - // will result in an INVALID_ARGUMENT error. - // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors - // (potentially for a specific set of enum values) for the enclosing - // TaskConfig. + // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should always + // be set to one of the other non-default values, otherwise it will result in + // an INVALID_ARGUMENT error. + // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors (potentially + // for a specific set of enum values) for the enclosing TaskConfig. // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings // (potentially for a specific set of enum values) for the enclosing // TaskConfig. Warnings use the same enum values as errors. // "TASK_RATE" - Specifies alerting on the number of instances for the // enclosing TaskConfig executed in the given aggregation_period. - // "TASK_AVERAGE_DURATION" - Specifies alerting on the average - // duration of execution for the enclosing task. - // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration of - // a particular percentile of task executions. E.g. If 10% or more of - // the task executions have durations above 5 seconds, alert. + // "TASK_AVERAGE_DURATION" - Specifies alerting on the average duration of + // execution for the enclosing task. + // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration of a + // particular percentile of task executions. E.g. If 10% or more of the task + // executions have durations above 5 seconds, alert. MetricType string `json:"metricType,omitempty"` - - // NumAggregationPeriods: For how many contiguous aggregation periods - // should the expected min or max be violated for the alert to be fired. + // NumAggregationPeriods: For how many contiguous aggregation periods should + // the expected min or max be violated for the alert to be fired. NumAggregationPeriods int64 `json:"numAggregationPeriods,omitempty"` - // OnlyFinalAttempt: Only count final task attempts, not retries. OnlyFinalAttempt bool `json:"onlyFinalAttempt,omitempty"` - - // PlaybookUrl: Link to a playbook for resolving the issue that - // triggered this alert. + // PlaybookUrl: Link to a playbook for resolving the issue that triggered this + // alert. PlaybookUrl string `json:"playbookUrl,omitempty"` - - // ThresholdType: The threshold type for which this alert is being - // configured. If value falls below expected_min or exceeds - // expected_max, an alert will be fired. + // ThresholdType: The threshold type for which this alert is being configured. + // If value falls below expected_min or exceeds expected_max, an alert will be + // fired. // // Possible values: // "UNSPECIFIED_THRESHOLD_TYPE" - // "EXPECTED_MIN" - Note that this field will only trigger alerts if - // the workflow specifying it runs at least once in 24 hours (which is - // our in-memory retention period for monarch streams). Also note that - // `aggregation_period` for this alert configuration must be less than - // 24 hours. + // "EXPECTED_MIN" - Note that this field will only trigger alerts if the + // workflow specifying it runs at least once in 24 hours (which is our + // in-memory retention period for monarch streams). Also note that + // `aggregation_period` for this alert configuration must be less than 24 + // hours. // "EXPECTED_MAX" ThresholdType string `json:"thresholdType,omitempty"` - - // ThresholdValue: The metric value, above or below which the alert - // should be triggered. - ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` - - WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AggregationPeriod") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ThresholdValue: The metric value, above or below which the alert should be + // triggered. + ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` + WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` + // ForceSendFields is a list of field names (e.g. "AggregationPeriod") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregationPeriod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AggregationPeriod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskAlertConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskAlertConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskAlertConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskExecutionDetails: Contains the details -// of the execution of this task. Next available id: 11 +// EnterpriseCrmEventbusProtoTaskExecutionDetails: Contains the details of the +// execution of this task. Next available id: 11 type EnterpriseCrmEventbusProtoTaskExecutionDetails struct { TaskAttemptStats []*EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats `json:"taskAttemptStats,omitempty"` - // Possible values: // "UNSPECIFIED" - // "PENDING_EXECUTION" - Task is waiting for its precondition tasks to - // finish to start the execution. + // "PENDING_EXECUTION" - Task is waiting for its precondition tasks to finish + // to start the execution. // "IN_PROCESS" - Task is under processing. - // "SUCCEED" - Task execution successfully finished. There's no more - // change after this state. - // "FAILED" - Task execution failed. There's no more change after this - // state. - // "FATAL" - Task execution failed and cause the whole event execution - // to fail immediately. There's no more change after this state. + // "SUCCEED" - Task execution successfully finished. There's no more change + // after this state. + // "FAILED" - Task execution failed. There's no more change after this state. + // "FATAL" - Task execution failed and cause the whole event execution to + // fail immediately. There's no more change after this state. // "RETRY_ON_HOLD" - Task execution failed and waiting for retry. - // "SKIPPED" - Task execution skipped. This happens when its - // precondition wasn't met, or the event execution been canceled before - // reach to the task. There's no more changes after this state. - // "CANCELED" - Task execution canceled when in progress. This happens - // when event execution been canceled or any other task fall in fatal - // state. - // "PENDING_ROLLBACK" - Task is waiting for its dependency tasks' - // rollback to finish to start its rollback. + // "SKIPPED" - Task execution skipped. This happens when its precondition + // wasn't met, or the event execution been canceled before reach to the task. + // There's no more changes after this state. + // "CANCELED" - Task execution canceled when in progress. This happens when + // event execution been canceled or any other task fall in fatal state. + // "PENDING_ROLLBACK" - Task is waiting for its dependency tasks' rollback to + // finish to start its rollback. // "ROLLBACK_IN_PROCESS" - Task is rolling back. // "ROLLEDBACK" - Task is rolled back. This is the state we will set // regardless of rollback succeeding or failing. - // "SUSPENDED" - Task is a SuspensionTask which has executed once, - // creating a pending suspension. + // "SUSPENDED" - Task is a SuspensionTask which has executed once, creating a + // pending suspension. TaskExecutionState string `json:"taskExecutionState,omitempty"` - // TaskNumber: Pointer to the task config it used for execution. TaskNumber string `json:"taskNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "TaskAttemptStats") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaskAttemptStats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TaskAttemptStats") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskExecutionDetails) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskExecutionDetails) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskExecutionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats struct { // EndTime: The end time of the task execution for current attempt. EndTime int64 `json:"endTime,omitempty,string"` - - // StartTime: The start time of the task execution for current attempt. - // This could be in the future if it's been scheduled. + // StartTime: The start time of the task execution for current attempt. This + // could be in the future if it's been scheduled. StartTime int64 `json:"startTime,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskMetadata: TaskMetadata are attributes -// that are associated to every common Task we have. +// EnterpriseCrmEventbusProtoTaskMetadata: TaskMetadata are attributes that are +// associated to every common Task we have. type EnterpriseCrmEventbusProtoTaskMetadata struct { - // ActiveTaskName: The new task name to replace the current task if it - // is deprecated. Otherwise, it is the same as the current task name. - ActiveTaskName string `json:"activeTaskName,omitempty"` - - Admins []*EnterpriseCrmEventbusProtoTaskMetadataAdmin `json:"admins,omitempty"` - + // ActiveTaskName: The new task name to replace the current task if it is + // deprecated. Otherwise, it is the same as the current task name. + ActiveTaskName string `json:"activeTaskName,omitempty"` + Admins []*EnterpriseCrmEventbusProtoTaskMetadataAdmin `json:"admins,omitempty"` // Possible values: // "UNSPECIFIED_CATEGORY" // "CUSTOM" @@ -4042,125 +3321,102 @@ type EnterpriseCrmEventbusProtoTaskMetadata struct { // "DATA_MANIPULATION" // "SCRIPTING" // "CONNECTOR" - // "HIDDEN" - Internal IP tasks that should not be available in the - // UI. - // "CLOUD_SYSTEMS" - Tasks that are relevant to cloud systems teams - // and typically - // "CUSTOM_TASK_TEMPLATE" - include connecting to Vector salesforce, - // CRM Hub Spanner etc. Task entities that derive from a custom task - // template. + // "HIDDEN" - Internal IP tasks that should not be available in the UI. + // "CLOUD_SYSTEMS" - Tasks that are relevant to cloud systems teams and + // typically + // "CUSTOM_TASK_TEMPLATE" - include connecting to Vector salesforce, CRM Hub + // Spanner etc. Task entities that derive from a custom task template. // "TASK_RECOMMENDATIONS" - Category to show task recommendations Category string `json:"category,omitempty"` - // CodeSearchLink: The Code Search link to the Task Java file. CodeSearchLink string `json:"codeSearchLink,omitempty"` - - // DefaultJsonValidationOption: Controls whether JSON workflow - // parameters are validated against provided schemas before and/or after - // this task's execution. + // DefaultJsonValidationOption: Controls whether JSON workflow parameters are + // validated against provided schemas before and/or after this task's + // execution. // // Possible values: - // "UNSPECIFIED_JSON_VALIDATION_OPTION" - As per the default behavior, - // no validation will be run. Will not override any option set in a - // Task. + // "UNSPECIFIED_JSON_VALIDATION_OPTION" - As per the default behavior, no + // validation will be run. Will not override any option set in a Task. // "SKIP" - Do not run any validation against JSON schemas. - // "PRE_EXECUTION" - Validate all potential input JSON parameters - // against schemas specified in WorkflowParameters. - // "POST_EXECUTION" - Validate all potential output JSON parameters - // against schemas specified in WorkflowParameters. - // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and - // POST_EXECUTION validations. + // "PRE_EXECUTION" - Validate all potential input JSON parameters against + // schemas specified in WorkflowParameters. + // "POST_EXECUTION" - Validate all potential output JSON parameters against + // schemas specified in WorkflowParameters. + // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and POST_EXECUTION + // validations. DefaultJsonValidationOption string `json:"defaultJsonValidationOption,omitempty"` - - // DefaultSpec: Contains the initial configuration of the task with - // default values set. For now, The string should be compatible to an - // ASCII-proto format. + // DefaultSpec: Contains the initial configuration of the task with default + // values set. For now, The string should be compatible to an ASCII-proto + // format. DefaultSpec string `json:"defaultSpec,omitempty"` - - // Description: In a few sentences, describe the purpose and usage of - // the task. + // Description: In a few sentences, describe the purpose and usage of the task. Description string `json:"description,omitempty"` - - // DescriptiveName: The string name to show on the task list on the - // Workflow editor screen. This should be a very short, one to two words - // name for the task. (e.g. "Send Mail") + // DescriptiveName: The string name to show on the task list on the Workflow + // editor screen. This should be a very short, one to two words name for the + // task. (e.g. "Send Mail") DescriptiveName string `json:"descriptiveName,omitempty"` - - // DocMarkdown: Snippet of markdown documentation to embed in the RHP - // for this task. + // DocMarkdown: Snippet of markdown documentation to embed in the RHP for this + // task. DocMarkdown string `json:"docMarkdown,omitempty"` - // Possible values: // "UNSPECIFIED_EXTERNAL_CATEGORY" // "CORE" // "CONNECTORS" // "EXTERNAL_HTTP" - HTTP tasks, e.g. rest api call task - // "EXTERNAL_INTEGRATION_SERVICES" - Integration services, e.g. - // connector task + // "EXTERNAL_INTEGRATION_SERVICES" - Integration services, e.g. connector + // task // "EXTERNAL_CUSTOMER_ACTIONS" - Customer ations, e.g. email task // "EXTERNAL_FLOW_CONTROL" - Flow control, e.g. while loop task // "EXTERNAL_WORKSPACE" - Workspace tasks, e.g. list drive task // "EXTERNAL_SECURITY" - Security, e.g. kms related tasks - // "EXTERNAL_DATABASES" - Database operation tasks, e.g. read - // firestore info tasks - // "EXTERNAL_ANALYTICS" - Analytics tasks, e.g. dataflow creattion + // "EXTERNAL_DATABASES" - Database operation tasks, e.g. read firestore info // tasks + // "EXTERNAL_ANALYTICS" - Analytics tasks, e.g. dataflow creattion tasks // "EXTERNAL_BYOC" - BYOC tasks // "EXTERNAL_BYOT" - BYOT tasks // "EXTERNAL_ARTIFICIAL_INTELIGENCE" - AI related tasks. - // "EXTERNAL_DATA_MANIPULATION" - Data manipulation related tasks, - // e.g. data mapping task + // "EXTERNAL_DATA_MANIPULATION" - Data manipulation related tasks, e.g. data + // mapping task ExternalCategory string `json:"externalCategory,omitempty"` - - // ExternalCategorySequence: Sequence with which the task in specific - // category to be displayed in task discovery panel for external users. + // ExternalCategorySequence: Sequence with which the task in specific category + // to be displayed in task discovery panel for external users. ExternalCategorySequence int64 `json:"externalCategorySequence,omitempty"` - - // ExternalDocHtml: External-facing documention embedded in the RHP for - // this task. + // ExternalDocHtml: External-facing documention embedded in the RHP for this + // task. ExternalDocHtml string `json:"externalDocHtml,omitempty"` - - // ExternalDocLink: Doc link for external-facing documentation (separate - // from g3doc). + // ExternalDocLink: Doc link for external-facing documentation (separate from + // g3doc). ExternalDocLink string `json:"externalDocLink,omitempty"` - // ExternalDocMarkdown: DEPRECATED: Use external_doc_html. ExternalDocMarkdown string `json:"externalDocMarkdown,omitempty"` - // G3DocLink: URL to the associated G3 Doc for the task if available G3DocLink string `json:"g3DocLink,omitempty"` - - // IconLink: URL to gstatic image icon for this task. This icon shows up - // on the task list panel along with the task name in the Workflow - // Editor screen. Use the 24p, 2x, gray color icon image format. + // IconLink: URL to gstatic image icon for this task. This icon shows up on the + // task list panel along with the task name in the Workflow Editor screen. Use + // the 24p, 2x, gray color icon image format. IconLink string `json:"iconLink,omitempty"` - - // IsDeprecated: The deprecation status of the current task. Default - // value is false; + // IsDeprecated: The deprecation status of the current task. Default value is + // false; IsDeprecated bool `json:"isDeprecated,omitempty"` - - // Name: The actual class name or the annotated name of the task. Task - // Author should initialize this field with value from the getName() - // method of the Task class. + // Name: The actual class name or the annotated name of the task. Task Author + // should initialize this field with value from the getName() method of the + // Task class. Name string `json:"name,omitempty"` - - // StandaloneExternalDocHtml: External-facing documention for standalone - // IP in pantheon embedded in the RHP for this task. Non null only if - // different from external_doc_html + // StandaloneExternalDocHtml: External-facing documention for standalone IP in + // pantheon embedded in the RHP for this task. Non null only if different from + // external_doc_html StandaloneExternalDocHtml string `json:"standaloneExternalDocHtml,omitempty"` - - // Status: Allows author to indicate if the task is ready to use or not. - // If not set, then it will default to INACTIVE. + // Status: Allows author to indicate if the task is ready to use or not. If not + // set, then it will default to INACTIVE. // // Possible values: - // "UNSPECIFIED_STATUS" - Default value. Actual Task Status should - // always be set to either INACTIVE or ACTIVE. If none is specified at - // runtime, it will be set to INACTIVE. - // "DEFAULT_INACTIVE" - Still in-progress or incomplete, and not - // intended for use. + // "UNSPECIFIED_STATUS" - Default value. Actual Task Status should always be + // set to either INACTIVE or ACTIVE. If none is specified at runtime, it will + // be set to INACTIVE. + // "DEFAULT_INACTIVE" - Still in-progress or incomplete, and not intended for + // use. // "ACTIVE" - Available for use. Status string `json:"status,omitempty"` - // Possible values: // "UNSPECIFIED_SYSTEM" // "GENERIC" @@ -4174,371 +3430,282 @@ type EnterpriseCrmEventbusProtoTaskMetadata struct { // "SPANNER" // "DATA_BRIDGE" System string `json:"system,omitempty"` - - // Tags: A set of tags that pertain to a particular task. This can be - // used to improve the searchability of tasks with several names ("REST - // Caller" vs. "Call REST Endpoint") or to help users find tasks based - // on related words. + // Tags: A set of tags that pertain to a particular task. This can be used to + // improve the searchability of tasks with several names ("REST Caller" vs. + // "Call REST Endpoint") or to help users find tasks based on related words. Tags []string `json:"tags,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActiveTaskName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveTaskName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActiveTaskName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskMetadata) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskMetadata) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskMetadataAdmin: Admins are owners of a -// Task, and have all permissions on a particular task identified by the -// task name. By default, Eventbus periodically scans all task metadata -// and syncs (adds) any new admins defined here to Zanzibar. +// EnterpriseCrmEventbusProtoTaskMetadataAdmin: Admins are owners of a Task, +// and have all permissions on a particular task identified by the task name. +// By default, Eventbus periodically scans all task metadata and syncs (adds) +// any new admins defined here to Zanzibar. type EnterpriseCrmEventbusProtoTaskMetadataAdmin struct { GoogleGroupEmail string `json:"googleGroupEmail,omitempty"` - - UserEmail string `json:"userEmail,omitempty"` - + UserEmail string `json:"userEmail,omitempty"` // ForceSendFields is a list of field names (e.g. "GoogleGroupEmail") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GoogleGroupEmail") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GoogleGroupEmail") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskMetadataAdmin) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskMetadataAdmin) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskMetadataAdmin - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskUiConfig: Task authors would use this -// type to configure the UI for a particular task by specifying what UI -// config modules should be included to compose the UI. Learn more about -// config module framework: +// EnterpriseCrmEventbusProtoTaskUiConfig: Task authors would use this type to +// configure the UI for a particular task by specifying what UI config modules +// should be included to compose the UI. Learn more about config module +// framework: type EnterpriseCrmEventbusProtoTaskUiConfig struct { // TaskUiModuleConfigs: Configurations of included config modules. TaskUiModuleConfigs []*EnterpriseCrmEventbusProtoTaskUiModuleConfig `json:"taskUiModuleConfigs,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TaskUiModuleConfigs") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TaskUiModuleConfigs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaskUiModuleConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TaskUiModuleConfigs") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskUiConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskUiConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskUiConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmEventbusProtoTaskUiModuleConfig: Task author would use -// this type to configure a config module. +// EnterpriseCrmEventbusProtoTaskUiModuleConfig: Task author would use this +// type to configure a config module. type EnterpriseCrmEventbusProtoTaskUiModuleConfig struct { // ModuleId: ID of the config module. // // Possible values: // "UNSPECIFIED_TASK_MODULE" - Default // "LABEL" - Supports editing label of a task config. - // "ERROR_HANDLING" - Supports editing error handling settings such as - // retry strategy. - // "TASK_PARAM_TABLE" - Supports adding, removing and editing task - // parameter values in a table with little assistance or restriction. - // "TASK_PARAM_FORM" - Supports editing values of declared input - // parameters of a task. Think of it as a "strongly typed" upgrade to - // the TASK_PARAM_TABLE. + // "ERROR_HANDLING" - Supports editing error handling settings such as retry + // strategy. + // "TASK_PARAM_TABLE" - Supports adding, removing and editing task parameter + // values in a table with little assistance or restriction. + // "TASK_PARAM_FORM" - Supports editing values of declared input parameters + // of a task. Think of it as a "strongly typed" upgrade to the + // TASK_PARAM_TABLE. // "PRECONDITION" - Supports editing preconditions of a task config. - // "SCRIPT_EDITOR" - Supports adding, editing, and deleting the - // scripts associated with a script task, as well as modifying the - // input/output parameters. - // "RPC" - Supports editing task parameters associated with an - // RPC/stubby task. + // "SCRIPT_EDITOR" - Supports adding, editing, and deleting the scripts + // associated with a script task, as well as modifying the input/output + // parameters. + // "RPC" - Supports editing task parameters associated with an RPC/stubby + // task. // "TASK_SUMMARY" - Contains readonly task information, including // input/output type info. // "SUSPENSION" - Configures a SuspensionTask. // "RPC_TYPED" - Configures a GenericStubbyTypedTask. // "SUB_WORKFLOW" - Configures a SubWorkflowExecutorTask. // "APPS_SCRIPT_NAVIGATOR" - Supports navigating to Apps Script editor - // "SUB_WORKFLOW_FOR_EACH_LOOP" - Configures a - // SubWorkflowForEachLoopTask. + // "SUB_WORKFLOW_FOR_EACH_LOOP" - Configures a SubWorkflowForEachLoopTask. // "FIELD_MAPPING" - Configures a FieldMappingTask. // "README" - Contains embedded in-product documentation for a task. // "REST_CALLER" - UI widget for the rest caller task. - // "SUB_WORKFLOW_SCATTER_GATHER" - Configures a - // SubWorkflowScatterGatherTask. + // "SUB_WORKFLOW_SCATTER_GATHER" - Configures a SubWorkflowScatterGatherTask. // "CLOUD_SQL" - Configures a CloudSql Task. // "GENERIC_CONNECTOR_TASK" - Configure a GenericConnectorTask. ModuleId string `json:"moduleId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ModuleId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ModuleId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ModuleId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTaskUiModuleConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTaskUiModuleConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTaskUiModuleConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoTeardown struct { // TeardownTaskConfigs: Required. TeardownTaskConfigs []*EnterpriseCrmEventbusProtoTeardownTaskConfig `json:"teardownTaskConfigs,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TeardownTaskConfigs") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TeardownTaskConfigs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TeardownTaskConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TeardownTaskConfigs") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTeardown) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTeardown) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTeardown - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoTeardownTaskConfig struct { // CreatorEmail: The creator's email address. CreatorEmail string `json:"creatorEmail,omitempty"` - - // Name: Required. Unique identifier of the teardown task within this - // Config. We use this field as the identifier to find next teardown - // tasks. - Name string `json:"name,omitempty"` - + // Name: Required. Unique identifier of the teardown task within this Config. + // We use this field as the identifier to find next teardown tasks. + Name string `json:"name,omitempty"` NextTeardownTask *EnterpriseCrmEventbusProtoNextTeardownTask `json:"nextTeardownTask,omitempty"` - // Parameters: The parameters the user can pass to this task. - Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` - + Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` Properties *EnterpriseCrmEventbusProtoEventBusProperties `json:"properties,omitempty"` - - // TeardownTaskImplementationClassName: Required. Implementation class - // name. + // TeardownTaskImplementationClassName: Required. Implementation class name. TeardownTaskImplementationClassName string `json:"teardownTaskImplementationClassName,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreatorEmail") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreatorEmail") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreatorEmail") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTeardownTaskConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTeardownTaskConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTeardownTaskConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoToken struct { - Name string `json:"name,omitempty"` - + Name string `json:"name,omitempty"` Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoToken) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoToken) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoTransformExpression struct { // InitialValue: Initial value upon which to perform transformations. InitialValue *EnterpriseCrmEventbusProtoBaseValue `json:"initialValue,omitempty"` - // TransformationFunctions: Transformations to be applied sequentially. TransformationFunctions []*EnterpriseCrmEventbusProtoFunction `json:"transformationFunctions,omitempty"` - // ForceSendFields is a list of field names (e.g. "InitialValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InitialValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InitialValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTransformExpression) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTransformExpression) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTransformExpression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmEventbusProtoTriggerCriteria struct { - // Condition: Required. Standard filter expression, when true the - // workflow will be executed. If there's no - // trigger_criteria_task_implementation_class_name specified, the - // condition will be validated directly. + // Condition: Required. Standard filter expression, when true the workflow will + // be executed. If there's no trigger_criteria_task_implementation_class_name + // specified, the condition will be validated directly. Condition string `json:"condition,omitempty"` - - // Parameters: Optional. To be used in TaskConfig for the implementation - // class. + // Parameters: Optional. To be used in TaskConfig for the implementation class. Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` - - // TriggerCriteriaTaskImplementationClassName: Optional. Implementation - // class name. The class should implement the “TypedTask” interface. + // TriggerCriteriaTaskImplementationClassName: Optional. Implementation class + // name. The class should implement the “TypedTask” interface. TriggerCriteriaTaskImplementationClassName string `json:"triggerCriteriaTaskImplementationClassName,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoTriggerCriteria) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoTriggerCriteria) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoTriggerCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmEventbusProtoValueType: Used for define type for values. -// Currently supported value types include int, string, double, array, -// and any proto message. +// Currently supported value types include int, string, double, array, and any +// proto message. type EnterpriseCrmEventbusProtoValueType struct { - BooleanValue bool `json:"booleanValue,omitempty"` - - DoubleArray *EnterpriseCrmEventbusProtoDoubleArray `json:"doubleArray,omitempty"` - - DoubleValue float64 `json:"doubleValue,omitempty"` - - IntArray *EnterpriseCrmEventbusProtoIntArray `json:"intArray,omitempty"` - - IntValue int64 `json:"intValue,omitempty,string"` - - ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` - - StringArray *EnterpriseCrmEventbusProtoStringArray `json:"stringArray,omitempty"` - - StringValue string `json:"stringValue,omitempty"` - + BooleanValue bool `json:"booleanValue,omitempty"` + DoubleArray *EnterpriseCrmEventbusProtoDoubleArray `json:"doubleArray,omitempty"` + DoubleValue float64 `json:"doubleValue,omitempty"` + IntArray *EnterpriseCrmEventbusProtoIntArray `json:"intArray,omitempty"` + IntValue int64 `json:"intValue,omitempty,string"` + ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` + StringArray *EnterpriseCrmEventbusProtoStringArray `json:"stringArray,omitempty"` + StringValue string `json:"stringValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BooleanValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoValueType) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoValueType) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoValueType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmEventbusProtoValueType) UnmarshalJSON(data []byte) error { @@ -4556,119 +3723,95 @@ func (s *EnterpriseCrmEventbusProtoValueType) UnmarshalJSON(data []byte) error { } // EnterpriseCrmEventbusProtoWorkflowAlertConfig: Message to be used to -// configure custom alerting in the {@code EventConfig} protos for an -// event. +// configure custom alerting in the {@code EventConfig} protos for an event. type EnterpriseCrmEventbusProtoWorkflowAlertConfig struct { - // AggregationPeriod: For an EXPECTED_MIN threshold, this - // aggregation_period must be lesser than 24 hours. + // AggregationPeriod: For an EXPECTED_MIN threshold, this aggregation_period + // must be lesser than 24 hours. AggregationPeriod string `json:"aggregationPeriod,omitempty"` - - // AlertDisabled: Set to false by default. When set to true, the metrics - // are not aggregated or pushed to Monarch for this workflow alert. + // AlertDisabled: Set to false by default. When set to true, the metrics are + // not aggregated or pushed to Monarch for this workflow alert. AlertDisabled bool `json:"alertDisabled,omitempty"` - - // AlertName: A name to identify this alert. This will be displayed in - // the alert subject. If set, this name should be unique within the - // scope of the workflow. + // AlertName: A name to identify this alert. This will be displayed in the + // alert subject. If set, this name should be unique within the scope of the + // workflow. AlertName string `json:"alertName,omitempty"` - // ClientId: Client associated with this alert configuration. ClientId string `json:"clientId,omitempty"` - - // DurationThresholdMs: Should be specified only for *AVERAGE_DURATION - // and *PERCENTILE_DURATION metrics. This member should be used to - // specify what duration value the metrics should exceed for the alert - // to trigger. - DurationThresholdMs int64 `json:"durationThresholdMs,omitempty,string"` - - ErrorEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"errorEnumList,omitempty"` - + // DurationThresholdMs: Should be specified only for *AVERAGE_DURATION and + // *PERCENTILE_DURATION metrics. This member should be used to specify what + // duration value the metrics should exceed for the alert to trigger. + DurationThresholdMs int64 `json:"durationThresholdMs,omitempty,string"` + ErrorEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"errorEnumList,omitempty"` // Possible values: - // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should - // always be set to one of the other non-default values, otherwise it - // will result in an INVALID_ARGUMENT error. - // "EVENT_ERROR_RATE" - Specifies alerting on the rate of errors for - // the enclosing workflow. - // "EVENT_WARNING_RATE" - Specifies alerting on the rate of warnings - // for the enclosing workflow. Warnings use the same enum values as - // errors. - // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors for - // any task in the enclosing workflow. - // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings - // for any task in the enclosing workflow. - // "TASK_RATE" - Specifies alerting on the rate of executions over all - // tasks in the enclosing workflow. - // "EVENT_RATE" - Specifies alerting on the number of events executed - // in the given aggregation_period. - // "EVENT_AVERAGE_DURATION" - Specifies alerting on the average - // duration of executions for this workflow. - // "EVENT_PERCENTILE_DURATION" - Specifies alerting on the duration - // value of a particular percentile of workflow executions. E.g. If 10% - // or more of the workflow executions have durations above 5 seconds, - // alert. - // "TASK_AVERAGE_DURATION" - Specifies alerting on the average - // duration of any task in the enclosing workflow, - // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration - // value of a particular percentile of any task executions within the - // enclosing workflow. E.g. If 10% or more of the task executions in the - // workflow have durations above 5 seconds, alert. + // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should always + // be set to one of the other non-default values, otherwise it will result in + // an INVALID_ARGUMENT error. + // "EVENT_ERROR_RATE" - Specifies alerting on the rate of errors for the + // enclosing workflow. + // "EVENT_WARNING_RATE" - Specifies alerting on the rate of warnings for the + // enclosing workflow. Warnings use the same enum values as errors. + // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors for any task + // in the enclosing workflow. + // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings for any + // task in the enclosing workflow. + // "TASK_RATE" - Specifies alerting on the rate of executions over all tasks + // in the enclosing workflow. + // "EVENT_RATE" - Specifies alerting on the number of events executed in the + // given aggregation_period. + // "EVENT_AVERAGE_DURATION" - Specifies alerting on the average duration of + // executions for this workflow. + // "EVENT_PERCENTILE_DURATION" - Specifies alerting on the duration value of + // a particular percentile of workflow executions. E.g. If 10% or more of the + // workflow executions have durations above 5 seconds, alert. + // "TASK_AVERAGE_DURATION" - Specifies alerting on the average duration of + // any task in the enclosing workflow, + // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration value of a + // particular percentile of any task executions within the enclosing workflow. + // E.g. If 10% or more of the task executions in the workflow have durations + // above 5 seconds, alert. MetricType string `json:"metricType,omitempty"` - - // NumAggregationPeriods: For how many contiguous aggregation periods - // should the expected min or max be violated for the alert to be fired. + // NumAggregationPeriods: For how many contiguous aggregation periods should + // the expected min or max be violated for the alert to be fired. NumAggregationPeriods int64 `json:"numAggregationPeriods,omitempty"` - - // OnlyFinalAttempt: For either events or tasks, depending on the type - // of alert, count only final attempts, not retries. + // OnlyFinalAttempt: For either events or tasks, depending on the type of + // alert, count only final attempts, not retries. OnlyFinalAttempt bool `json:"onlyFinalAttempt,omitempty"` - - // PlaybookUrl: Link to a playbook for resolving the issue that - // triggered this alert. + // PlaybookUrl: Link to a playbook for resolving the issue that triggered this + // alert. PlaybookUrl string `json:"playbookUrl,omitempty"` - // ThresholdType: The threshold type, whether lower(expected_min) or - // upper(expected_max), for which this alert is being configured. If - // value falls below expected_min or exceeds expected_max, an alert will - // be fired. + // upper(expected_max), for which this alert is being configured. If value + // falls below expected_min or exceeds expected_max, an alert will be fired. // // Possible values: // "UNSPECIFIED_THRESHOLD_TYPE" - // "EXPECTED_MIN" - Note that this field will only trigger alerts if - // the workflow specifying it runs at least once in 24 hours (which is - // our in-memory retention period for monarch streams). Also note that - // `aggregation_period` for this alert configuration must be less than - // 24 hours. + // "EXPECTED_MIN" - Note that this field will only trigger alerts if the + // workflow specifying it runs at least once in 24 hours (which is our + // in-memory retention period for monarch streams). Also note that + // `aggregation_period` for this alert configuration must be less than 24 + // hours. // "EXPECTED_MAX" ThresholdType string `json:"thresholdType,omitempty"` - - // ThresholdValue: The metric value, above or below which the alert - // should be triggered. - ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` - - WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AggregationPeriod") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ThresholdValue: The metric value, above or below which the alert should be + // triggered. + ThresholdValue *EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue `json:"thresholdValue,omitempty"` + WarningEnumList *EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList `json:"warningEnumList,omitempty"` + // ForceSendFields is a list of field names (e.g. "AggregationPeriod") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregationPeriod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AggregationPeriod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusProtoWorkflowAlertConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusProtoWorkflowAlertConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusProtoWorkflowAlertConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmEventbusStats: Stats for the requested dimensions: QPS, @@ -4676,40 +3819,30 @@ func (s *EnterpriseCrmEventbusProtoWorkflowAlertConfig) MarshalJSON() ([]byte, e type EnterpriseCrmEventbusStats struct { // Dimensions: Dimensions that these stats have been aggregated on. Dimensions *EnterpriseCrmEventbusStatsDimensions `json:"dimensions,omitempty"` - // DurationInSeconds: Average duration in seconds. DurationInSeconds float64 `json:"durationInSeconds,omitempty"` - // ErrorRate: Average error rate. ErrorRate float64 `json:"errorRate,omitempty"` - // Qps: Queries per second. Qps float64 `json:"qps,omitempty"` - // WarningRate: Average warning rate. WarningRate float64 `json:"warningRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimensions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimensions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimensions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusStats) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusStats) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmEventbusStats) UnmarshalJSON(data []byte) error { @@ -4734,17 +3867,13 @@ func (s *EnterpriseCrmEventbusStats) UnmarshalJSON(data []byte) error { type EnterpriseCrmEventbusStatsDimensions struct { ClientId string `json:"clientId,omitempty"` - - // EnumFilterType: Whether to include or exclude the enums matching the - // regex. + // EnumFilterType: Whether to include or exclude the enums matching the regex. // // Possible values: // "DEFAULT_INCLUSIVE" // "EXCLUSIVE" - EnumFilterType string `json:"enumFilterType,omitempty"` - + EnumFilterType string `json:"enumFilterType,omitempty"` ErrorEnumString string `json:"errorEnumString,omitempty"` - // Possible values: // "UNSPECIFIED" // "FINAL" - Task has completed successfully or has depleted all retry @@ -4752,94 +3881,70 @@ type EnterpriseCrmEventbusStatsDimensions struct { // "RETRYABLE" - Task has failed but may be retried. // "CANCELED" - Task has been deliberately canceled. RetryAttempt string `json:"retryAttempt,omitempty"` - - TaskName string `json:"taskName,omitempty"` - - TaskNumber string `json:"taskNumber,omitempty"` - - // TriggerId: Stats have been or will be aggregated on set fields for - // any semantically-meaningful combination. - TriggerId string `json:"triggerId,omitempty"` - + TaskName string `json:"taskName,omitempty"` + TaskNumber string `json:"taskNumber,omitempty"` + // TriggerId: Stats have been or will be aggregated on set fields for any + // semantically-meaningful combination. + TriggerId string `json:"triggerId,omitempty"` WarningEnumString string `json:"warningEnumString,omitempty"` - - WorkflowId string `json:"workflowId,omitempty"` - - WorkflowName string `json:"workflowName,omitempty"` - + WorkflowId string `json:"workflowId,omitempty"` + WorkflowName string `json:"workflowName,omitempty"` // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmEventbusStatsDimensions) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmEventbusStatsDimensions) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmEventbusStatsDimensions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray struct { BooleanValues []bool `json:"booleanValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "BooleanValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray struct { DoubleValues []float64 `json:"doubleValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "DoubleValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoubleValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DoubleValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray) UnmarshalJSON(data []byte) error { @@ -4859,110 +3964,86 @@ func (s *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray) UnmarshalJSON( return nil } -// EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails: Contains -// the details of the execution info of this event: this includes the -// tasks execution details plus the event execution statistics. Next -// available id: 10 +// EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails: Contains the +// details of the execution info of this event: this includes the tasks +// execution details plus the event execution statistics. Next available id: 10 type EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails struct { EventAttemptStats []*EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats `json:"eventAttemptStats,omitempty"` - - // EventExecutionSnapshot: After snapshot migration, this field will no - // longer be populated, but old execution snapshots will still be - // accessible. + // EventExecutionSnapshot: After snapshot migration, this field will no longer + // be populated, but old execution snapshots will still be accessible. EventExecutionSnapshot []*EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot `json:"eventExecutionSnapshot,omitempty"` - // EventExecutionState: The execution state of this event. // // Possible values: // "UNSPECIFIED" - // "ON_HOLD" - Event is received and waiting for the execution. This - // happens when firing the event via "postToQueue" or "schedule". + // "ON_HOLD" - Event is received and waiting for the execution. This happens + // when firing the event via "postToQueue" or "schedule". // "IN_PROCESS" - Event is under processing. - // "SUCCEEDED" - Event execution successfully finished. There's no - // more change after this state. - // "FAILED" - Event execution failed. There's no more change after - // this state. - // "CANCELED" - Event execution canceled by user. There's no more + // "SUCCEEDED" - Event execution successfully finished. There's no more // change after this state. + // "FAILED" - Event execution failed. There's no more change after this + // state. + // "CANCELED" - Event execution canceled by user. There's no more change + // after this state. // "RETRY_ON_HOLD" - Event execution failed and waiting for retry. // "SUSPENDED" - Event execution suspended and waiting for manual // intervention. EventExecutionState string `json:"eventExecutionState,omitempty"` - - // EventRetriesFromBeginningCount: Indicates the number of times the - // execution has restarted from the beginning. + // EventRetriesFromBeginningCount: Indicates the number of times the execution + // has restarted from the beginning. EventRetriesFromBeginningCount int64 `json:"eventRetriesFromBeginningCount,omitempty"` - // LogFilePath: The log file path (aka. cns address) for this event. LogFilePath string `json:"logFilePath,omitempty"` - - // NetworkAddress: The network address (aka. bns address) that indicates - // where the event executor is running. + // NetworkAddress: The network address (aka. bns address) that indicates where + // the event executor is running. NetworkAddress string `json:"networkAddress,omitempty"` - - // NextExecutionTime: Next scheduled execution time in case the - // execution status was RETRY_ON_HOLD. + // NextExecutionTime: Next scheduled execution time in case the execution + // status was RETRY_ON_HOLD. NextExecutionTime int64 `json:"nextExecutionTime,omitempty,string"` - - // RyeLockUnheldCount: Used internally and shouldn't be exposed to - // users. A counter for the cron job to record how many times this event - // is in in_process state but don't have a lock consecutively/ + // RyeLockUnheldCount: Used internally and shouldn't be exposed to users. A + // counter for the cron job to record how many times this event is in + // in_process state but don't have a lock consecutively/ RyeLockUnheldCount int64 `json:"ryeLockUnheldCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EventAttemptStats") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EventAttemptStats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventAttemptStats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventAttemptStats") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo: Contains all -// the execution details for a workflow instance. Next available id: 24 +// EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo: Contains all the +// execution details for a workflow instance. Next available id: 24 type EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo struct { // ClientId: The event data user sends as request. ClientId string `json:"clientId,omitempty"` - // CreateTime: Auto-generated. CreateTime int64 `json:"createTime,omitempty,string"` - // ErrorCode: Final error-code if event failed. ErrorCode *CrmlogErrorCode `json:"errorCode,omitempty"` - // Errors: Errors, warnings, and informationals associated with the - // workflow/task. The order in which the errors were added by the - // workflow/task is maintained. + // workflow/task. The order in which the errors were added by the workflow/task + // is maintained. Errors []*EnterpriseCrmEventbusProtoErrorDetail `json:"errors,omitempty"` - // EventExecutionDetails: The execution info about this event. EventExecutionDetails *EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails `json:"eventExecutionDetails,omitempty"` - // EventExecutionInfoId: Auto-generated primary key. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - // ExecutionTraceInfo: Execution trace info to aggregate parent-child // executions. ExecutionTraceInfo *EnterpriseCrmEventbusProtoExecutionTraceInfo `json:"executionTraceInfo,omitempty"` - // LastModifiedTime: Auto-generated. LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"` - // PostMethod: The ways user posts this event. // // Possible values: @@ -4973,9 +4054,8 @@ type EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo struct { // "POST_BY_EVENT_CONFIG_ID" // "POST_WITH_EVENT_DETAILS" PostMethod string `json:"postMethod,omitempty"` - - // Product: Which Google product the execution_info belongs to. If not - // set, the execution_info belongs to Integration Platform by default. + // Product: Which Google product the execution_info belongs to. If not set, the + // execution_info belongs to Integration Platform by default. // // Possible values: // "UNSPECIFIED_PRODUCT" @@ -4983,200 +4063,147 @@ type EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo struct { // "APIGEE" // "SECURITY" Product string `json:"product,omitempty"` - // RequestId: Optional. This is used to de-dup incoming request. RequestId string `json:"requestId,omitempty"` - // RequestParams: Event parameters come in as part of the request. RequestParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"requestParams,omitempty"` - // ResponseParams: Event parameters come out as part of the response. ResponseParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"responseParams,omitempty"` - // SnapshotNumber: Workflow snapshot number. SnapshotNumber int64 `json:"snapshotNumber,omitempty,string"` - // Tenant: Tenant this event is created. Used to reschedule the event to // correct tenant. Tenant string `json:"tenant,omitempty"` - - // TriggerId: The trigger id of the workflow trigger config. If both - // trigger_id and client_id is present, the workflow is executed from - // the start tasks provided by the matching trigger config otherwise it - // is executed from the default start tasks. + // TriggerId: The trigger id of the workflow trigger config. If both trigger_id + // and client_id is present, the workflow is executed from the start tasks + // provided by the matching trigger config otherwise it is executed from the + // default start tasks. TriggerId string `json:"triggerId,omitempty"` - // WorkflowId: Required. Pointer to the workflow it is executing. WorkflowId string `json:"workflowId,omitempty"` - // WorkflowName: Name of the workflow. WorkflowName string `json:"workflowName,omitempty"` - - // WorkflowRetryBackoffIntervalSeconds: Time interval in seconds to - // schedule retry of workflow in manifold when workflow is already - // running + // WorkflowRetryBackoffIntervalSeconds: Time interval in seconds to schedule + // retry of workflow in manifold when workflow is already running WorkflowRetryBackoffIntervalSeconds int64 `json:"workflowRetryBackoffIntervalSeconds,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot struct { // CheckpointTaskNumber: Indicates "right after which checkpoint task's // execution" this snapshot is taken. CheckpointTaskNumber string `json:"checkpointTaskNumber,omitempty"` - - // ConditionResults: All of the computed conditions that been - // calculated. + // ConditionResults: All of the computed conditions that been calculated. ConditionResults []*EnterpriseCrmEventbusProtoConditionResult `json:"conditionResults,omitempty"` - - // DiffParams: The parameters in Event object that differs from last - // snapshot. + // DiffParams: The parameters in Event object that differs from last snapshot. DiffParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"diffParams,omitempty"` - - // EventExecutionInfoId: Points to the event execution info this - // snapshot belongs to. + // EventExecutionInfoId: Points to the event execution info this snapshot + // belongs to. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - // EventExecutionSnapshotId: Auto-generated. Used as primary key for // EventExecutionSnapshots table. - EventExecutionSnapshotId string `json:"eventExecutionSnapshotId,omitempty"` - + EventExecutionSnapshotId string `json:"eventExecutionSnapshotId,omitempty"` EventExecutionSnapshotMetadata *EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata `json:"eventExecutionSnapshotMetadata,omitempty"` - // EventParams: The parameters in Event object. EventParams *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"eventParams,omitempty"` - // SnapshotTime: Indicates when this snapshot is taken. SnapshotTime int64 `json:"snapshotTime,omitempty,string"` - - // TaskExecutionDetails: All of the task execution details at the given - // point of time. + // TaskExecutionDetails: All of the task execution details at the given point + // of time. TaskExecutionDetails []*EnterpriseCrmEventbusProtoTaskExecutionDetails `json:"taskExecutionDetails,omitempty"` - - // TaskName: The task name associated with this snapshot. Could be - // empty. + // TaskName: The task name associated with this snapshot. Could be empty. TaskName string `json:"taskName,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CheckpointTaskNumber") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CheckpointTaskNumber") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoEventParameters: LINT.IfChange -// This message is used for processing and persisting (when applicable) -// key value pair parameters for each event in the event bus. Please see +// EnterpriseCrmFrontendsEventbusProtoEventParameters: LINT.IfChange This +// message is used for processing and persisting (when applicable) key value +// pair parameters for each event in the event bus. Please see type EnterpriseCrmFrontendsEventbusProtoEventParameters struct { - // Parameters: Parameters are a part of Event and can be used to - // communicate between different tasks that are part of the same - // workflow execution. + // Parameters: Parameters are a part of Event and can be used to communicate + // between different tasks that are part of the same workflow execution. Parameters []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoEventParameters) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoEventParameters) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoEventParameters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoIntParameterArray struct { IntValues googleapi.Int64s `json:"intValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntValues") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IntValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoIntParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoIntParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoIntParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmFrontendsEventbusProtoParamSpecEntry: Key-value pair of // EventBus task parameters. Next id: 13 type EnterpriseCrmFrontendsEventbusProtoParamSpecEntry struct { // ClassName: The FQCN of the Java object this represents. A string, for - // example, would be "java.lang.String". If this is "java.lang.Object", - // the parameter can be of any type. + // example, would be "java.lang.String". If this is "java.lang.Object", the + // parameter can be of any type. ClassName string `json:"className,omitempty"` - - // CollectionElementClassName: If it is a collection of objects, this - // would be the FCQN of every individual element in the collection. If - // this is "java.lang.Object", the parameter is a collection of any - // type. + // CollectionElementClassName: If it is a collection of objects, this would be + // the FCQN of every individual element in the collection. If this is + // "java.lang.Object", the parameter is a collection of any type. CollectionElementClassName string `json:"collectionElementClassName,omitempty"` - // Config: Optional fields, such as help text and other useful info. Config *EnterpriseCrmEventbusProtoParamSpecEntryConfig `json:"config,omitempty"` - // DataType: The data type of the parameter. // // Possible values: @@ -5194,92 +4221,69 @@ type EnterpriseCrmFrontendsEventbusProtoParamSpecEntry struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" DataType string `json:"dataType,omitempty"` - - // DefaultValue: Default values for the defined keys. Each value can - // either be string, int, double or any proto message or a serialized - // object. + // DefaultValue: Default values for the defined keys. Each value can either be + // string, int, double or any proto message or a serialized object. DefaultValue *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"defaultValue,omitempty"` - - // IsDeprecated: If set, this entry is deprecated, so further use of - // this parameter should be prohibited. + // IsDeprecated: If set, this entry is deprecated, so further use of this + // parameter should be prohibited. IsDeprecated bool `json:"isDeprecated,omitempty"` - - IsOutput bool `json:"isOutput,omitempty"` - + IsOutput bool `json:"isOutput,omitempty"` // JsonSchema: If the data_type is JSON_VALUE, then this will define its // schema. JsonSchema string `json:"jsonSchema,omitempty"` - - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given task. These parameters must be - // predefined in the workflow definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given task. These parameters must be predefined in the + // workflow definition. Key string `json:"key,omitempty"` - // ProtoDef: Populated if this represents a proto or proto array. ProtoDef *EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition `json:"protoDef,omitempty"` - - // Required: If set, the user must provide an input value for this - // parameter. + // Required: If set, the user must provide an input value for this parameter. Required bool `json:"required,omitempty"` - // ValidationRule: Rule used to validate inputs (individual values and // collection elements) for this parameter. ValidationRule *EnterpriseCrmEventbusProtoParamSpecEntryValidationRule `json:"validationRule,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClassName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClassName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClassName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParamSpecEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParamSpecEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParamSpecEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage struct { Parameters []*EnterpriseCrmFrontendsEventbusProtoParamSpecEntry `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmFrontendsEventbusProtoParameterEntry: Key-value pair of @@ -5302,54 +4306,44 @@ type EnterpriseCrmFrontendsEventbusProtoParameterEntry struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" DataType string `json:"dataType,omitempty"` - - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given fired event. These parameters must be - // predefined in the workflow definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given fired event. These parameters must be predefined in + // the workflow definition. Key string `json:"key,omitempty"` - - // Value: Values for the defined keys. Each value can either be string, - // int, double or any proto message. + // Value: Values for the defined keys. Each value can either be string, int, + // double or any proto message. Value *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParameterEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParameterEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoParameterMap: A generic multi-map -// that holds key value pairs. They keys and values can be of any type, -// unless specified. +// EnterpriseCrmFrontendsEventbusProtoParameterMap: A generic multi-map that +// holds key value pairs. They keys and values can be of any type, unless +// specified. type EnterpriseCrmFrontendsEventbusProtoParameterMap struct { Entries []*EnterpriseCrmFrontendsEventbusProtoParameterMapEntry `json:"entries,omitempty"` - - // KeyType: Option to specify key value type for all entries of the map. - // If provided then field types for all entries must conform to this. + // KeyType: Option to specify key value type for all entries of the map. If + // provided then field types for all entries must conform to this. // // Possible values: // "DATA_TYPE_UNSPECIFIED" @@ -5366,14 +4360,12 @@ type EnterpriseCrmFrontendsEventbusProtoParameterMap struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" KeyType string `json:"keyType,omitempty"` - // Possible values: // "DATA_TYPE_UNSPECIFIED" // "STRING_VALUE" @@ -5389,147 +4381,109 @@ type EnterpriseCrmFrontendsEventbusProtoParameterMap struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" ValueType string `json:"valueType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParameterMap) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParameterMap) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterMap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoParameterMapEntry: Entry is a pair -// of key and value. +// EnterpriseCrmFrontendsEventbusProtoParameterMapEntry: Entry is a pair of key +// and value. type EnterpriseCrmFrontendsEventbusProtoParameterMapEntry struct { - Key *EnterpriseCrmFrontendsEventbusProtoParameterMapField `json:"key,omitempty"` - + Key *EnterpriseCrmFrontendsEventbusProtoParameterMapField `json:"key,omitempty"` Value *EnterpriseCrmFrontendsEventbusProtoParameterMapField `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParameterMapEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParameterMapEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterMapEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoParameterMapField: Field -// represents either the key or value in an entry. +// EnterpriseCrmFrontendsEventbusProtoParameterMapField: Field represents +// either the key or value in an entry. type EnterpriseCrmFrontendsEventbusProtoParameterMapField struct { // LiteralValue: Passing a literal value. LiteralValue *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"literalValue,omitempty"` - // ReferenceKey: Referencing one of the WF variables. ReferenceKey string `json:"referenceKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "LiteralValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LiteralValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LiteralValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParameterMapField) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParameterMapField) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterMapField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoParameterValueType: To support -// various types of parameter values. Next available id: 14 +// EnterpriseCrmFrontendsEventbusProtoParameterValueType: To support various +// types of parameter values. Next available id: 14 type EnterpriseCrmFrontendsEventbusProtoParameterValueType struct { - BooleanArray *EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray `json:"booleanArray,omitempty"` - - BooleanValue bool `json:"booleanValue,omitempty"` - - DoubleArray *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray `json:"doubleArray,omitempty"` - - DoubleValue float64 `json:"doubleValue,omitempty"` - - IntArray *EnterpriseCrmFrontendsEventbusProtoIntParameterArray `json:"intArray,omitempty"` - - IntValue int64 `json:"intValue,omitempty,string"` - - JsonValue string `json:"jsonValue,omitempty"` - - ProtoArray *EnterpriseCrmFrontendsEventbusProtoProtoParameterArray `json:"protoArray,omitempty"` - - ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` - + BooleanArray *EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray `json:"booleanArray,omitempty"` + BooleanValue bool `json:"booleanValue,omitempty"` + DoubleArray *EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray `json:"doubleArray,omitempty"` + DoubleValue float64 `json:"doubleValue,omitempty"` + IntArray *EnterpriseCrmFrontendsEventbusProtoIntParameterArray `json:"intArray,omitempty"` + IntValue int64 `json:"intValue,omitempty,string"` + JsonValue string `json:"jsonValue,omitempty"` + ProtoArray *EnterpriseCrmFrontendsEventbusProtoProtoParameterArray `json:"protoArray,omitempty"` + ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` SerializedObjectValue *EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter `json:"serializedObjectValue,omitempty"` - - StringArray *EnterpriseCrmFrontendsEventbusProtoStringParameterArray `json:"stringArray,omitempty"` - - StringValue string `json:"stringValue,omitempty"` - + StringArray *EnterpriseCrmFrontendsEventbusProtoStringParameterArray `json:"stringArray,omitempty"` + StringValue string `json:"stringValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BooleanArray") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanArray") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanArray") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoParameterValueType) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoParameterValueType) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoParameterValueType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *EnterpriseCrmFrontendsEventbusProtoParameterValueType) UnmarshalJSON(data []byte) error { @@ -5548,445 +4502,348 @@ func (s *EnterpriseCrmFrontendsEventbusProtoParameterValueType) UnmarshalJSON(da type EnterpriseCrmFrontendsEventbusProtoProtoParameterArray struct { ProtoValues []googleapi.RawMessage `json:"protoValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProtoValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProtoValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProtoValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoProtoParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoProtoParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoProtoParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoRollbackStrategy: Next available -// id: 4 +// EnterpriseCrmFrontendsEventbusProtoRollbackStrategy: Next available id: 4 type EnterpriseCrmFrontendsEventbusProtoRollbackStrategy struct { - // Parameters: Optional. The customized parameters the user can pass to - // this task. + // Parameters: Optional. The customized parameters the user can pass to this + // task. Parameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"parameters,omitempty"` - - // RollbackTaskImplementationClassName: Required. This is the name of - // the task that needs to be executed upon rollback of this task. + // RollbackTaskImplementationClassName: Required. This is the name of the task + // that needs to be executed upon rollback of this task. RollbackTaskImplementationClassName string `json:"rollbackTaskImplementationClassName,omitempty"` - - // TaskNumbersToRollback: Required. These are the tasks numbers of the - // tasks whose - // `rollback_strategy.rollback_task_implementation_class_name` needs to + // TaskNumbersToRollback: Required. These are the tasks numbers of the tasks + // whose `rollback_strategy.rollback_task_implementation_class_name` needs to // be executed upon failure of this task. TaskNumbersToRollback []string `json:"taskNumbersToRollback,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoRollbackStrategy) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoRollbackStrategy) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoRollbackStrategy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter struct { ObjectValue string `json:"objectValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "ObjectValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ObjectValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ObjectValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoStringParameterArray struct { StringValues []string `json:"stringValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "StringValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StringValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StringValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoStringParameterArray) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoStringParameterArray) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoStringParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnterpriseCrmFrontendsEventbusProtoTaskConfig: The task configuration -// details. This is not the implementation of Task. There might be -// multiple TaskConfigs for the same Task. +// details. This is not the implementation of Task. There might be multiple +// TaskConfigs for the same Task. type EnterpriseCrmFrontendsEventbusProtoTaskConfig struct { - // AlertConfigs: Alert configurations on error rate, warning rate, - // number of runs, durations, etc. + // AlertConfigs: Alert configurations on error rate, warning rate, number of + // runs, durations, etc. AlertConfigs []*EnterpriseCrmEventbusProtoTaskAlertConfig `json:"alertConfigs,omitempty"` - // CreateTime: Auto-generated. CreateTime string `json:"createTime,omitempty"` - - // CreatorEmail: The creator's email address. Auto-generated from the - // user's email. + // CreatorEmail: The creator's email address. Auto-generated from the user's + // email. CreatorEmail string `json:"creatorEmail,omitempty"` - // Description: User-provided description intended to give more business // context about the task. Description string `json:"description,omitempty"` - - // DisableStrictTypeValidation: If this config contains a TypedTask, - // allow validation to succeed if an input is read from the output of - // another TypedTask whose output type is declared as a superclass of - // the requested input type. For instance, if the previous task declares - // an output of type Message, any task with this flag enabled will pass - // validation when attempting to read any proto Message type from the - // resultant Event parameter. + // DisableStrictTypeValidation: If this config contains a TypedTask, allow + // validation to succeed if an input is read from the output of another + // TypedTask whose output type is declared as a superclass of the requested + // input type. For instance, if the previous task declares an output of type + // Message, any task with this flag enabled will pass validation when + // attempting to read any proto Message type from the resultant Event + // parameter. DisableStrictTypeValidation bool `json:"disableStrictTypeValidation,omitempty"` - - // ErrorCatcherId: Optional Error catcher id of the error catch flow - // which will be executed when execution error happens in the task + // ErrorCatcherId: Optional Error catcher id of the error catch flow which will + // be executed when execution error happens in the task ErrorCatcherId string `json:"errorCatcherId,omitempty"` - // Possible values: - // "EXTERNAL_TASK_TYPE_UNSPECIFIED" - Default value. External task - // type is not specified + // "EXTERNAL_TASK_TYPE_UNSPECIFIED" - Default value. External task type is + // not specified // "NORMAL_TASK" - Tasks belongs to the normal task flows // "ERROR_TASK" - Task belongs to the error catch task flows ExternalTaskType string `json:"externalTaskType,omitempty"` - - // FailurePolicy: Optional. Determines the number of times the task will - // be retried on failure and with what retry strategy. This is - // applicable for asynchronous calls to Eventbus alone (Post To Queue, - // Schedule etc.). + // FailurePolicy: Optional. Determines the number of times the task will be + // retried on failure and with what retry strategy. This is applicable for + // asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). FailurePolicy *EnterpriseCrmEventbusProtoFailurePolicy `json:"failurePolicy,omitempty"` - // IncomingEdgeCount: The number of edges leading into this TaskConfig. IncomingEdgeCount int64 `json:"incomingEdgeCount,omitempty"` - - // JsonValidationOption: If set, overrides the option configured in the - // Task implementation class. + // JsonValidationOption: If set, overrides the option configured in the Task + // implementation class. // // Possible values: - // "UNSPECIFIED_JSON_VALIDATION_OPTION" - As per the default behavior, - // no validation will be run. Will not override any option set in a - // Task. + // "UNSPECIFIED_JSON_VALIDATION_OPTION" - As per the default behavior, no + // validation will be run. Will not override any option set in a Task. // "SKIP" - Do not run any validation against JSON schemas. - // "PRE_EXECUTION" - Validate all potential input JSON parameters - // against schemas specified in WorkflowParameters. - // "POST_EXECUTION" - Validate all potential output JSON parameters - // against schemas specified in WorkflowParameters. - // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and - // POST_EXECUTION validations. + // "PRE_EXECUTION" - Validate all potential input JSON parameters against + // schemas specified in WorkflowParameters. + // "POST_EXECUTION" - Validate all potential output JSON parameters against + // schemas specified in WorkflowParameters. + // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and POST_EXECUTION + // validations. JsonValidationOption string `json:"jsonValidationOption,omitempty"` - - // Label: User-provided label that is attached to this TaskConfig in the - // UI. + // Label: User-provided label that is attached to this TaskConfig in the UI. Label string `json:"label,omitempty"` - // LastModifiedTime: Auto-generated. LastModifiedTime string `json:"lastModifiedTime,omitempty"` - - // NextTasks: The set of tasks that are next in line to be executed as - // per the execution graph defined for the parent event, specified by + // NextTasks: The set of tasks that are next in line to be executed as per the + // execution graph defined for the parent event, specified by // `event_config_id`. Each of these next tasks are executed only if the // condition associated with them evaluates to true. NextTasks []*EnterpriseCrmEventbusProtoNextTask `json:"nextTasks,omitempty"` - - // NextTasksExecutionPolicy: The policy dictating the execution of the - // next set of tasks for the current task. + // NextTasksExecutionPolicy: The policy dictating the execution of the next set + // of tasks for the current task. // // Possible values: // "UNSPECIFIED" - Default - // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their - // associated condition. - // "RUN_FIRST_MATCH" - Execute the first task that satisfies the - // associated condition. + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their associated + // condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the associated + // condition. NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` - // Parameters: The customized parameters the user can pass to this task. Parameters map[string]EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameters,omitempty"` - - // Position: Optional. Informs the front-end application where to draw - // this task config on the UI. + // Position: Optional. Informs the front-end application where to draw this + // task config on the UI. Position *EnterpriseCrmEventbusProtoCoordinate `json:"position,omitempty"` - // Precondition: Optional. Standard filter expression evaluated before - // execution. Independent of other conditions and tasks. Can be used to - // enable rollout. e.g. "rollout(5)" will only allow 5% of incoming - // traffic to task. + // execution. Independent of other conditions and tasks. Can be used to enable + // rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. Precondition string `json:"precondition,omitempty"` - // PreconditionLabel: Optional. User-provided label that is attached to // precondition in the UI. PreconditionLabel string `json:"preconditionLabel,omitempty"` - - // RollbackStrategy: Optional. Contains information about what needs to - // be done upon failure (either a permanent error or after it has been - // retried too many times). + // RollbackStrategy: Optional. Contains information about what needs to be done + // upon failure (either a permanent error or after it has been retried too many + // times). RollbackStrategy *EnterpriseCrmFrontendsEventbusProtoRollbackStrategy `json:"rollbackStrategy,omitempty"` - // SuccessPolicy: Determines what action to take upon successful task // completion. SuccessPolicy *EnterpriseCrmEventbusProtoSuccessPolicy `json:"successPolicy,omitempty"` - - // SynchronousCallFailurePolicy: Optional. Determines the number of - // times the task will be retried on failure and with what retry - // strategy. This is applicable for synchronous calls to Eventbus alone - // (Post). + // SynchronousCallFailurePolicy: Optional. Determines the number of times the + // task will be retried on failure and with what retry strategy. This is + // applicable for synchronous calls to Eventbus alone (Post). SynchronousCallFailurePolicy *EnterpriseCrmEventbusProtoFailurePolicy `json:"synchronousCallFailurePolicy,omitempty"` - - // TaskEntity: Copy of the task entity that this task config is an - // instance of. + // TaskEntity: Copy of the task entity that this task config is an instance of. TaskEntity *EnterpriseCrmFrontendsEventbusProtoTaskEntity `json:"taskEntity,omitempty"` - - // TaskExecutionStrategy: The policy dictating the execution strategy of - // this task. + // TaskExecutionStrategy: The policy dictating the execution strategy of this + // task. // // Possible values: // "WHEN_ALL_SUCCEED" - Wait until all of its previous tasks finished - // execution, then verify at least one of the edge conditions is met, - // and execute if possible. This should be considered as - // WHEN_ALL_TASKS_SUCCEED. - // "WHEN_ANY_SUCCEED" - Start execution as long as any of its previous - // tasks finished execution and the corresponding edge condition is met - // (since we will execute if only that succeeding edge condition is - // met). - // "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" - Wait until all of its - // previous tasks finished execution, then verify the all edge - // conditions are met and execute if possible. + // execution, then verify at least one of the edge conditions is met, and + // execute if possible. This should be considered as WHEN_ALL_TASKS_SUCCEED. + // "WHEN_ANY_SUCCEED" - Start execution as long as any of its previous tasks + // finished execution and the corresponding edge condition is met (since we + // will execute if only that succeeding edge condition is met). + // "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" - Wait until all of its previous + // tasks finished execution, then verify the all edge conditions are met and + // execute if possible. TaskExecutionStrategy string `json:"taskExecutionStrategy,omitempty"` - // TaskName: The name for the task. TaskName string `json:"taskName,omitempty"` - - // TaskNumber: REQUIRED: the identifier of this task within its parent - // event config, specified by the client. This should be unique among - // all the tasks belong to the same event config. We use this field as - // the identifier to find next tasks (via field - // `next_tasks.task_number`). + // TaskNumber: REQUIRED: the identifier of this task within its parent event + // config, specified by the client. This should be unique among all the tasks + // belong to the same event config. We use this field as the identifier to find + // next tasks (via field `next_tasks.task_number`). TaskNumber string `json:"taskNumber,omitempty"` - - // TaskSpec: A string template that allows user to configure task - // parameters (with either literal default values or tokens which will - // be resolved at execution time) for the task. It will eventually - // replace the old "parameters" field. + // TaskSpec: A string template that allows user to configure task parameters + // (with either literal default values or tokens which will be resolved at + // execution time) for the task. It will eventually replace the old + // "parameters" field. TaskSpec string `json:"taskSpec,omitempty"` - - // TaskTemplateName: Used to define task-template name if task is of - // type task-template + // TaskTemplateName: Used to define task-template name if task is of type + // task-template TaskTemplateName string `json:"taskTemplateName,omitempty"` - // TaskType: Defines the type of the task // // Possible values: // "TASK" - Normal IP task // "ASIS_TEMPLATE" - Task is of As-Is Template type - // "IO_TEMPLATE" - Task is of I/O template type with a different - // underlying task + // "IO_TEMPLATE" - Task is of I/O template type with a different underlying + // task TaskType string `json:"taskType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AlertConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AlertConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlertConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoTaskConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoTaskConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoTaskConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoTaskEntity: Contains a task's -// metadata and associated information. Next available id: 7 +// EnterpriseCrmFrontendsEventbusProtoTaskEntity: Contains a task's metadata +// and associated information. Next available id: 7 type EnterpriseCrmFrontendsEventbusProtoTaskEntity struct { // DisabledForVpcSc: True if the task has conflict with vpcsc DisabledForVpcSc bool `json:"disabledForVpcSc,omitempty"` - // Metadata: Metadata inclueds the task name, author and so on. Metadata *EnterpriseCrmEventbusProtoTaskMetadata `json:"metadata,omitempty"` - - // ParamSpecs: Declarations for inputs/outputs for a TypedTask. This is - // also associated with the METADATA mask. + // ParamSpecs: Declarations for inputs/outputs for a TypedTask. This is also + // associated with the METADATA mask. ParamSpecs *EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage `json:"paramSpecs,omitempty"` - // Stats: Deprecated - statistics from the Monarch query. Stats *EnterpriseCrmEventbusStats `json:"stats,omitempty"` - // TaskType: Defines the type of the task // // Possible values: // "TASK" - Normal IP task // "ASIS_TEMPLATE" - Task is of As-Is Template type - // "IO_TEMPLATE" - Task is of I/O template type with a different - // underlying task + // "IO_TEMPLATE" - Task is of I/O template type with a different underlying + // task TaskType string `json:"taskType,omitempty"` - - // UiConfig: UI configuration for this task Also associated with the - // METADATA mask. + // UiConfig: UI configuration for this task Also associated with the METADATA + // mask. UiConfig *EnterpriseCrmEventbusProtoTaskUiConfig `json:"uiConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisabledForVpcSc") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisabledForVpcSc") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DisabledForVpcSc") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoTaskEntity) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoTaskEntity) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoTaskEntity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmFrontendsEventbusProtoTriggerConfig: Configuration -// detail of a trigger. Next available id: 19 +// EnterpriseCrmFrontendsEventbusProtoTriggerConfig: Configuration detail of a +// trigger. Next available id: 19 type EnterpriseCrmFrontendsEventbusProtoTriggerConfig struct { - // AlertConfig: An alert threshold configuration for the [trigger + - // client + workflow] tuple. If these values are not specified in the - // trigger config, default values will be populated by the system. Note - // that there must be exactly one alert threshold configured per [client - // + trigger + workflow] when published. - AlertConfig []*EnterpriseCrmEventbusProtoWorkflowAlertConfig `json:"alertConfig,omitempty"` - - CloudSchedulerConfig *EnterpriseCrmEventbusProtoCloudSchedulerConfig `json:"cloudSchedulerConfig,omitempty"` - + // AlertConfig: An alert threshold configuration for the [trigger + client + + // workflow] tuple. If these values are not specified in the trigger config, + // default values will be populated by the system. Note that there must be + // exactly one alert threshold configured per [client + trigger + workflow] + // when published. + AlertConfig []*EnterpriseCrmEventbusProtoWorkflowAlertConfig `json:"alertConfig,omitempty"` + CloudSchedulerConfig *EnterpriseCrmEventbusProtoCloudSchedulerConfig `json:"cloudSchedulerConfig,omitempty"` // Description: User-provided description intended to give more business // context about the task. Description string `json:"description,omitempty"` - // EnabledClients: Required. The list of client ids which are enabled to - // execute the workflow using this trigger. In other words, these - // clients have the workflow execution privledges for this trigger. For - // API trigger, the client id in the incoming request is validated - // against the list of enabled clients. For non-API triggers, one - // workflow execution is triggered on behalf of each enabled client. + // execute the workflow using this trigger. In other words, these clients have + // the workflow execution privledges for this trigger. For API trigger, the + // client id in the incoming request is validated against the list of enabled + // clients. For non-API triggers, one workflow execution is triggered on behalf + // of each enabled client. EnabledClients []string `json:"enabledClients,omitempty"` - - // ErrorCatcherId: Optional Error catcher id of the error catch flow - // which will be executed when execution error happens in the task + // ErrorCatcherId: Optional Error catcher id of the error catch flow which will + // be executed when execution error happens in the task ErrorCatcherId string `json:"errorCatcherId,omitempty"` - // Label: The user created label for a particular trigger. Label string `json:"label,omitempty"` - // NextTasksExecutionPolicy: Dictates how next tasks will be executed. // // Possible values: // "UNSPECIFIED" - Default - // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their - // associated condition. - // "RUN_FIRST_MATCH" - Execute the first task that satisfies the - // associated condition. + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their associated + // condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the associated + // condition. NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` - - // PauseWorkflowExecutions: Optional. If set to true, any upcoming - // requests for this trigger config will be paused and the executions - // will be resumed later when the flag is reset. The workflow to which - // this trigger config belongs has to be in ACTIVE status for the - // executions to be paused or resumed. + // PauseWorkflowExecutions: Optional. If set to true, any upcoming requests for + // this trigger config will be paused and the executions will be resumed later + // when the flag is reset. The workflow to which this trigger config belongs + // has to be in ACTIVE status for the executions to be paused or resumed. PauseWorkflowExecutions bool `json:"pauseWorkflowExecutions,omitempty"` - - // Position: Optional. Informs the front-end application where to draw - // this trigger config on the UI. + // Position: Optional. Informs the front-end application where to draw this + // trigger config on the UI. Position *EnterpriseCrmEventbusProtoCoordinate `json:"position,omitempty"` - - // Properties: Configurable properties of the trigger, not to be - // confused with workflow parameters. E.g. "name" is a property for API - // triggers and "subscription" is a property for Cloud Pubsub triggers. + // Properties: Configurable properties of the trigger, not to be confused with + // workflow parameters. E.g. "name" is a property for API triggers and + // "subscription" is a property for Cloud Pubsub triggers. Properties map[string]string `json:"properties,omitempty"` - // StartTasks: Set of tasks numbers from where the workflow execution is - // started by this trigger. If this is empty, then workflow is executed - // with default start tasks. In the list of start tasks, none of two - // tasks can have direct ancestor-descendant relationships (i.e. in a - // same workflow execution graph). + // started by this trigger. If this is empty, then workflow is executed with + // default start tasks. In the list of start tasks, none of two tasks can have + // direct ancestor-descendant relationships (i.e. in a same workflow execution + // graph). StartTasks []*EnterpriseCrmEventbusProtoNextTask `json:"startTasks,omitempty"` - - // TriggerCriteria: Optional. When set, Eventbus will run the task - // specified in the trigger_criteria and validate the result using the - // trigger_criteria.condition, and only execute the workflow when result - // is true. + // TriggerCriteria: Optional. When set, Eventbus will run the task specified in + // the trigger_criteria and validate the result using the + // trigger_criteria.condition, and only execute the workflow when result is + // true. TriggerCriteria *EnterpriseCrmEventbusProtoTriggerCriteria `json:"triggerCriteria,omitempty"` - // TriggerId: The backend trigger ID. TriggerId string `json:"triggerId,omitempty"` - - // TriggerNumber: Required. A number to uniquely identify each trigger - // config within the workflow on UI. + // TriggerNumber: Required. A number to uniquely identify each trigger config + // within the workflow on UI. TriggerNumber string `json:"triggerNumber,omitempty"` - // Possible values: // "UNKNOWN" // "CLOUD_PUBSUB" @@ -6003,38 +4860,30 @@ type EnterpriseCrmFrontendsEventbusProtoTriggerConfig struct { // "CLOUD_SCHEDULER" // "INTEGRATION_CONNECTOR_TRIGGER" TriggerType string `json:"triggerType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AlertConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AlertConfig") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlertConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoTriggerConfig) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoTriggerConfig) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoTriggerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry struct { // Attributes: Metadata information about the parameters. Attributes *EnterpriseCrmEventbusProtoAttributes `json:"attributes,omitempty"` - - // Children: Child parameters nested within this parameter. This field - // only applies to protobuf parameters + // Children: Child parameters nested within this parameter. This field only + // applies to protobuf parameters Children []*EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry `json:"children,omitempty"` - // DataType: The data type of the parameter. // // Possible values: @@ -6052,216 +4901,176 @@ type EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry struct { // "PROTO_ENUM" // "BOOLEAN_ARRAY" // "PROTO_ENUM_ARRAY" - // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for - // top-level params. They're only meant to support protobufs with BYTES - // (sub)fields. + // "BYTES" - BYTES and BYTES_ARRAY data types are not allowed for top-level + // params. They're only meant to support protobufs with BYTES (sub)fields. // "BYTES_ARRAY" // "NON_SERIALIZABLE_OBJECT" // "JSON_VALUE" DataType string `json:"dataType,omitempty"` - - // DefaultValue: Default values for the defined keys. Each value can - // either be string, int, double or any proto message or a serialized - // object. + // DefaultValue: Default values for the defined keys. Each value can either be + // string, int, double or any proto message or a serialized object. DefaultValue *EnterpriseCrmFrontendsEventbusProtoParameterValueType `json:"defaultValue,omitempty"` - // InOutType: Specifies the input/output type for the parameter. // // Possible values: // "IN_OUT_TYPE_UNSPECIFIED" - // "IN" - Input parameters for the workflow. EventBus validates that - // these parameters exist in the workflows before execution. - // "OUT" - Output Parameters for the workflow. EventBus will only - // return the workflow parameters tagged with OUT in the response back. - // "IN_OUT" - Input or Output Parameters. These can be used as both - // input and output. EventBus will validate for the existence of these - // parameters before execution and will also return this parameter back - // in the response. + // "IN" - Input parameters for the workflow. EventBus validates that these + // parameters exist in the workflows before execution. + // "OUT" - Output Parameters for the workflow. EventBus will only return the + // workflow parameters tagged with OUT in the response back. + // "IN_OUT" - Input or Output Parameters. These can be used as both input and + // output. EventBus will validate for the existence of these parameters before + // execution and will also return this parameter back in the response. InOutType string `json:"inOutType,omitempty"` - // IsTransient: Whether this parameter is a transient parameter. IsTransient bool `json:"isTransient,omitempty"` - - // JsonSchema: This schema will be used to validate runtime JSON-typed - // values of this parameter. + // JsonSchema: This schema will be used to validate runtime JSON-typed values + // of this parameter. JsonSchema string `json:"jsonSchema,omitempty"` - - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given fired event. These parameters must be - // predefined in the workflow definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given fired event. These parameters must be predefined in + // the workflow definition. Key string `json:"key,omitempty"` - // Name: The name (without prefix) to be displayed in the UI for this - // parameter. E.g. if the key is "foo.bar.myName", then the name would - // be "myName". + // parameter. E.g. if the key is "foo.bar.myName", then the name would be + // "myName". Name string `json:"name,omitempty"` - - // ProducedBy: The identifier of the node (TaskConfig/TriggerConfig) - // this parameter was produced by, if it is a transient param or a copy - // of an input param. + // ProducedBy: The identifier of the node (TaskConfig/TriggerConfig) this + // parameter was produced by, if it is a transient param or a copy of an input + // param. ProducedBy *EnterpriseCrmEventbusProtoNodeIdentifier `json:"producedBy,omitempty"` - - Producer string `json:"producer,omitempty"` - - // ProtoDefName: The name of the protobuf type if the parameter has a - // protobuf data type. + Producer string `json:"producer,omitempty"` + // ProtoDefName: The name of the protobuf type if the parameter has a protobuf + // data type. ProtoDefName string `json:"protoDefName,omitempty"` - - // ProtoDefPath: If the data type is of type proto or proto array, this - // field needs to be populated with the fully qualified proto name. This - // message, for example, would be + // ProtoDefPath: If the data type is of type proto or proto array, this field + // needs to be populated with the fully qualified proto name. This message, for + // example, would be // "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". ProtoDefPath string `json:"protoDefPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "Attributes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attributes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attributes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnterpriseCrmFrontendsEventbusProtoWorkflowParameters: LINT.IfChange -// This is the frontend version of WorkflowParameters. It's exactly like -// the backend version except that instead of flattening protobuf -// parameters and treating every field and subfield of a protobuf -// parameter as a separate parameter, the fields/subfields of a protobuf -// parameter will be nested as "children" (see 'children' field below) -// parameters of the parent parameter. Please refer to -// enterprise/crm/eventbus/proto/workflow_parameters.proto for more + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// EnterpriseCrmFrontendsEventbusProtoWorkflowParameters: LINT.IfChange This is +// the frontend version of WorkflowParameters. It's exactly like the backend +// version except that instead of flattening protobuf parameters and treating +// every field and subfield of a protobuf parameter as a separate parameter, +// the fields/subfields of a protobuf parameter will be nested as "children" +// (see 'children' field below) parameters of the parent parameter. Please +// refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more // information about WorkflowParameters. type EnterpriseCrmFrontendsEventbusProtoWorkflowParameters struct { - // Parameters: Parameters are a part of Event and can be used to - // communiticate between different tasks that are part of the same - // workflow execution. + // Parameters: Parameters are a part of Event and can be used to communiticate + // between different tasks that are part of the same workflow execution. Parameters []*EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry `json:"parameters,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmFrontendsEventbusProtoWorkflowParameters) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmFrontendsEventbusProtoWorkflowParameters) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmFrontendsEventbusProtoWorkflowParameters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmLoggingGwsFieldLimits: Describes string and array limits -// when writing to logs. When a limit is exceeded the *shortener_type* -// describes how to shorten the field. next_id: 6 +// EnterpriseCrmLoggingGwsFieldLimits: Describes string and array limits when +// writing to logs. When a limit is exceeded the *shortener_type* describes how +// to shorten the field. next_id: 6 type EnterpriseCrmLoggingGwsFieldLimits struct { // Possible values: // "LOG_ACTION_UNSPECIFIED" // "DONT_LOG" // "LOG" LogAction string `json:"logAction,omitempty"` - // LogType: To which type(s) of logs the limits apply. // // Possible values: // "LOG_TYPE_UNSPECIFIED" // "GWS" - Limits apply when log detail records are written to GWS. - // "GTS" - Limits apply when log detail records are written to GTS - // (e.g., RecordIO files). + // "GTS" - Limits apply when log detail records are written to GTS (e.g., + // RecordIO files). // "ALL" - Limits apply to *all* output log types. LogType []string `json:"logType,omitempty"` - - // MaxArraySize: maximum array size. If the array exceds this size, the - // field (list) is truncated. + // MaxArraySize: maximum array size. If the array exceds this size, the field + // (list) is truncated. MaxArraySize int64 `json:"maxArraySize,omitempty"` - - // MaxStringLength: maximum string length. If the field exceeds this - // amount the field is shortened. + // MaxStringLength: maximum string length. If the field exceeds this amount the + // field is shortened. MaxStringLength int64 `json:"maxStringLength,omitempty"` - // Possible values: // "SHORTENER_TYPE_UNSPECIFIED" // "SHORTEN" - String is shortened to max_string_length. // "HASH" - String is replaced by its hex-string hash. // "SHORTEN_WITH_HASH" - String is replaced by a combination of string // shortening and a hex-string hash. - // "SHORTEN_EMAIL" - String shortening for email addresses. Shortening - // may be done on the user and/or domain portion of the email address. - // "SHORTEN_EMAIL_WITH_HASH" - String is replaced by a combination of - // string shortening and a hex-string hash for an email address. - // "SHORTEN_DOMAIN" - Shortens a domain name (e.g., as part of an - // email address or URL). + // "SHORTEN_EMAIL" - String shortening for email addresses. Shortening may be + // done on the user and/or domain portion of the email address. + // "SHORTEN_EMAIL_WITH_HASH" - String is replaced by a combination of string + // shortening and a hex-string hash for an email address. + // "SHORTEN_DOMAIN" - Shortens a domain name (e.g., as part of an email + // address or URL). ShortenerType string `json:"shortenerType,omitempty"` - // ForceSendFields is a list of field names (e.g. "LogAction") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogAction") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LogAction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmLoggingGwsFieldLimits) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmLoggingGwsFieldLimits) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmLoggingGwsFieldLimits - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnterpriseCrmLoggingGwsSanitizeOptions: Identifies whether a field -// contains, or may contain, PII or sensitive data, and how to sanitize -// the field if it does. If a field's privacy type cannot be determined -// then it is sanitized (e.g., scrubbed). The specific sanitizer -// implementation is determined by run-time configuration and -// environment options (e.g., prod vs. qa). next_id: 5 +// EnterpriseCrmLoggingGwsSanitizeOptions: Identifies whether a field contains, +// or may contain, PII or sensitive data, and how to sanitize the field if it +// does. If a field's privacy type cannot be determined then it is sanitized +// (e.g., scrubbed). The specific sanitizer implementation is determined by +// run-time configuration and environment options (e.g., prod vs. qa). next_id: +// 5 type EnterpriseCrmLoggingGwsSanitizeOptions struct { - // IsAlreadySanitized: If true, the value has already been sanitized and - // needs no further sanitization. For instance, a D3 customer id is - // already an obfuscated entity and *might not* need further - // sanitization. + // IsAlreadySanitized: If true, the value has already been sanitized and needs + // no further sanitization. For instance, a D3 customer id is already an + // obfuscated entity and *might not* need further sanitization. IsAlreadySanitized bool `json:"isAlreadySanitized,omitempty"` - // LogType: To which type(s) of logs the sanitize options apply. // // Possible values: // "LOG_TYPE_UNSPECIFIED" // "GWS" - Limits apply when log detail records are written to GWS. - // "GTS" - Limits apply when log detail records are written to GTS - // (e.g., RecordIO files). + // "GTS" - Limits apply when log detail records are written to GTS (e.g., + // RecordIO files). // "ALL" - Limits apply to *all* output log types. LogType []string `json:"logType,omitempty"` - // Possible values: // "PRIVACY_TYPE_UNSPECIFIED" // "NOT_PII" - Field does *NOT* contain PII or sensitive data. @@ -6269,45 +5078,36 @@ type EnterpriseCrmLoggingGwsSanitizeOptions struct { // "SPII" - Field contains Sensitive PII. // "UNSURE" - Unsure if field contains PII. Privacy string `json:"privacy,omitempty"` - // Possible values: // "SANITIZE_TYPE_UNSPECIFIED" // "SCRUB" - Replace value with a scrubbed value (usu. a constant). // "ANONYMIZE" - Transform a value so that it cannot be tracked across - // events. However, a given value, is transformed to the same value - // *within* an event. E.g., "foo.com" is transformed to "0xabcdef" for - // event 1001, and to "0xfedcba" for event 1002. - // "ANONYMIZE_LIMITED_REPEATABLE" - Transform values as with - // ANONYMIZER, but the same transformation is repeated for a limited - // time (e.g., 1 day). - // "OBFUSCATE" - The value is transformed using a well-defined - // obfuscator (e.g., D3_CUSTOMER_ID). + // events. However, a given value, is transformed to the same value *within* an + // event. E.g., "foo.com" is transformed to "0xabcdef" for event 1001, and to + // "0xfedcba" for event 1002. + // "ANONYMIZE_LIMITED_REPEATABLE" - Transform values as with ANONYMIZER, but + // the same transformation is repeated for a limited time (e.g., 1 day). + // "OBFUSCATE" - The value is transformed using a well-defined obfuscator + // (e.g., D3_CUSTOMER_ID). // "ENCRYPT" - The value is encrypted. // "DO_NOT_SANITIZE" - No sanitization is required. SanitizeType string `json:"sanitizeType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IsAlreadySanitized") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IsAlreadySanitized") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IsAlreadySanitized") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IsAlreadySanitized") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnterpriseCrmLoggingGwsSanitizeOptions) MarshalJSON() ([]byte, error) { +func (s EnterpriseCrmLoggingGwsSanitizeOptions) MarshalJSON() ([]byte, error) { type NoMethod EnterpriseCrmLoggingGwsSanitizeOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudConnectorsV1AuthConfig: AuthConfig defines details of a @@ -6315,10 +5115,8 @@ func (s *EnterpriseCrmLoggingGwsSanitizeOptions) MarshalJSON() ([]byte, error) { type GoogleCloudConnectorsV1AuthConfig struct { // AdditionalVariables: List containing additional auth configs. AdditionalVariables []*GoogleCloudConnectorsV1ConfigVariable `json:"additionalVariables,omitempty"` - // AuthKey: Identifier key for auth config AuthKey string `json:"authKey,omitempty"` - // AuthType: The type of authentication configured. // // Possible values: @@ -6331,245 +5129,185 @@ type GoogleCloudConnectorsV1AuthConfig struct { // "SSH_PUBLIC_KEY" - SSH Public Key Authentication // "OAUTH2_AUTH_CODE_FLOW" - Oauth 2.0 Authorization Code Flow AuthType string `json:"authType,omitempty"` - // Oauth2AuthCodeFlow: Oauth2AuthCodeFlow. Oauth2AuthCodeFlow *GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow `json:"oauth2AuthCodeFlow,omitempty"` - // Oauth2ClientCredentials: Oauth2ClientCredentials. Oauth2ClientCredentials *GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials `json:"oauth2ClientCredentials,omitempty"` - // Oauth2JwtBearer: Oauth2JwtBearer. Oauth2JwtBearer *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer `json:"oauth2JwtBearer,omitempty"` - // SshPublicKey: SSH Public Key. SshPublicKey *GoogleCloudConnectorsV1AuthConfigSshPublicKey `json:"sshPublicKey,omitempty"` - // UserPassword: UserPassword. UserPassword *GoogleCloudConnectorsV1AuthConfigUserPassword `json:"userPassword,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalVariables") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalVariables") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalVariables") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow: Parameters to -// support Oauth 2.0 Auth Code Grant Authentication. See -// https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more -// details. +// GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow: Parameters to support +// Oauth 2.0 Auth Code Grant Authentication. See +// https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details. type GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow struct { - // AuthCode: Authorization code to be exchanged for access and refresh - // tokens. + // AuthCode: Authorization code to be exchanged for access and refresh tokens. AuthCode string `json:"authCode,omitempty"` - // AuthUri: Auth URL for Authorization Code Flow AuthUri string `json:"authUri,omitempty"` - // ClientId: Client ID for user-provided OAuth app. ClientId string `json:"clientId,omitempty"` - // ClientSecret: Client secret for user-provided OAuth app. ClientSecret *GoogleCloudConnectorsV1Secret `json:"clientSecret,omitempty"` - - // EnablePkce: Whether to enable PKCE when the user performs the auth - // code flow. + // EnablePkce: Whether to enable PKCE when the user performs the auth code + // flow. EnablePkce bool `json:"enablePkce,omitempty"` - // PkceVerifier: PKCE verifier to be used during the auth code exchange. PkceVerifier string `json:"pkceVerifier,omitempty"` - - // RedirectUri: Redirect URI to be provided during the auth code - // exchange. + // RedirectUri: Redirect URI to be provided during the auth code exchange. RedirectUri string `json:"redirectUri,omitempty"` - - // Scopes: Scopes the connection will request when the user performs the - // auth code flow. + // Scopes: Scopes the connection will request when the user performs the auth + // code flow. Scopes []string `json:"scopes,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials: Parameters -// to support Oauth 2.0 Client Credentials Grant Authentication. See +// GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials: Parameters to +// support Oauth 2.0 Client Credentials Grant Authentication. See // https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. type GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials struct { // ClientId: The client identifier. ClientId string `json:"clientId,omitempty"` - // ClientSecret: Secret version reference containing the client secret. ClientSecret *GoogleCloudConnectorsV1Secret `json:"clientSecret,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer: Parameters to -// support JSON Web Token (JWT) Profile for Oauth 2.0 Authorization -// Grant based authentication. See https://tools.ietf.org/html/rfc7523 -// for more details. +// GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer: Parameters to support JSON +// Web Token (JWT) Profile for Oauth 2.0 Authorization Grant based +// authentication. See https://tools.ietf.org/html/rfc7523 for more details. type GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer struct { - // ClientKey: Secret version reference containing a PKCS#8 PEM-encoded - // private key associated with the Client Certificate. This private key - // will be used to sign JWTs used for the jwt-bearer authorization - // grant. Specified in the form as: `projects/*/secrets/*/versions/*`. + // ClientKey: Secret version reference containing a PKCS#8 PEM-encoded private + // key associated with the Client Certificate. This private key will be used to + // sign JWTs used for the jwt-bearer authorization grant. Specified in the form + // as: `projects/*/secrets/*/versions/*`. ClientKey *GoogleCloudConnectorsV1Secret `json:"clientKey,omitempty"` - // JwtClaims: JwtClaims providers fields to generate the token. JwtClaims *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims `json:"jwtClaims,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientKey") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientKey") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientKey") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims: JWT claims -// used for the jwt-bearer authorization grant. +// GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims: JWT claims used +// for the jwt-bearer authorization grant. type GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims struct { // Audience: Value for the "aud" claim. Audience string `json:"audience,omitempty"` - // Issuer: Value for the "iss" claim. Issuer string `json:"issuer,omitempty"` - // Subject: Value for the "sub" claim. Subject string `json:"subject,omitempty"` - // ForceSendFields is a list of field names (e.g. "Audience") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audience") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audience") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1AuthConfigSshPublicKey: Parameters to support -// Ssh public key Authentication. +// GoogleCloudConnectorsV1AuthConfigSshPublicKey: Parameters to support Ssh +// public key Authentication. type GoogleCloudConnectorsV1AuthConfigSshPublicKey struct { // CertType: Format of SSH Client cert. CertType string `json:"certType,omitempty"` - - // SshClientCert: SSH Client Cert. It should contain both public and - // private key. + // SshClientCert: SSH Client Cert. It should contain both public and private + // key. SshClientCert *GoogleCloudConnectorsV1Secret `json:"sshClientCert,omitempty"` - - // SshClientCertPass: Password (passphrase) for ssh client certificate - // if it has one. + // SshClientCertPass: Password (passphrase) for ssh client certificate if it + // has one. SshClientCertPass *GoogleCloudConnectorsV1Secret `json:"sshClientCertPass,omitempty"` - // Username: The user account used to authenticate. Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "CertType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CertType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CertType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigSshPublicKey) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigSshPublicKey) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigSshPublicKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudConnectorsV1AuthConfigUserPassword: Parameters to support @@ -6577,31 +5315,24 @@ func (s *GoogleCloudConnectorsV1AuthConfigSshPublicKey) MarshalJSON() ([]byte, e type GoogleCloudConnectorsV1AuthConfigUserPassword struct { // Password: Secret version reference containing the password. Password *GoogleCloudConnectorsV1Secret `json:"password,omitempty"` - // Username: Username. Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "Password") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Password") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Password") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1AuthConfigUserPassword) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1AuthConfigUserPassword) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1AuthConfigUserPassword - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudConnectorsV1ConfigVariable: ConfigVariable represents a @@ -6609,66 +5340,51 @@ func (s *GoogleCloudConnectorsV1AuthConfigUserPassword) MarshalJSON() ([]byte, e type GoogleCloudConnectorsV1ConfigVariable struct { // BoolValue: Value is a bool. BoolValue bool `json:"boolValue,omitempty"` - // IntValue: Value is an integer IntValue int64 `json:"intValue,omitempty,string"` - // Key: Key of the config variable. Key string `json:"key,omitempty"` - // KeyValue: Value is a Encryption Key. KeyValue *GoogleCloudConnectorsV1EncryptionKey `json:"keyValue,omitempty"` - // SecretValue: Value is a secret. SecretValue *GoogleCloudConnectorsV1Secret `json:"secretValue,omitempty"` - // StringValue: Value is a string. StringValue string `json:"stringValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoolValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BoolValue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BoolValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1ConfigVariable) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1ConfigVariable) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1ConfigVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1Connection: Connection represents an instance -// of connector. +// GoogleCloudConnectorsV1Connection: Connection represents an instance of +// connector. type GoogleCloudConnectorsV1Connection struct { // AuthConfig: Optional. Configuration for establishing the connection's // authentication with an external system. AuthConfig *GoogleCloudConnectorsV1AuthConfig `json:"authConfig,omitempty"` - - // ConfigVariables: Optional. Configuration for configuring the - // connection with an external system. + // ConfigVariables: Optional. Configuration for configuring the connection with + // an external system. ConfigVariables []*GoogleCloudConnectorsV1ConfigVariable `json:"configVariables,omitempty"` - - // ConnectionRevision: Output only. Connection revision. This field is - // only updated when the connection is created or updated by User. + // ConnectionRevision: Output only. Connection revision. This field is only + // updated when the connection is created or updated by User. ConnectionRevision int64 `json:"connectionRevision,omitempty,string"` - - // ConnectorVersion: Required. Connector version on which the connection - // is created. The format is: - // projects/*/locations/*/providers/*/connectors/*/versions/* Only - // global location is supported for ConnectorVersion resource. + // ConnectorVersion: Required. Connector version on which the connection is + // created. The format is: + // projects/*/locations/*/providers/*/connectors/*/versions/* Only global + // location is supported for ConnectorVersion resource. ConnectorVersion string `json:"connectorVersion,omitempty"` - // ConnectorVersionLaunchStage: Output only. Flag to mark the version // indicating the launch stage. // @@ -6679,62 +5395,45 @@ type GoogleCloudConnectorsV1Connection struct { // "DEPRECATED" - DEPRECATED. // "PRIVATE_PREVIEW" - PRIVATE_PREVIEW. ConnectorVersionLaunchStage string `json:"connectorVersionLaunchStage,omitempty"` - // CreateTime: Output only. Created time. CreateTime string `json:"createTime,omitempty"` - // Description: Optional. Description of the resource. Description string `json:"description,omitempty"` - - // DestinationConfigs: Optional. Configuration of the Connector's - // destination. Only accepted for Connectors that accepts user defined - // destination(s). + // DestinationConfigs: Optional. Configuration of the Connector's destination. + // Only accepted for Connectors that accepts user defined destination(s). DestinationConfigs []*GoogleCloudConnectorsV1DestinationConfig `json:"destinationConfigs,omitempty"` - - // EnvoyImageLocation: Output only. GCR location where the envoy image - // is stored. formatted like: gcr.io/{bucketName}/{imageName} - EnvoyImageLocation string `json:"envoyImageLocation,omitempty"` - - // ImageLocation: Output only. GCR location where the runtime image is + // EnvoyImageLocation: Output only. GCR location where the envoy image is // stored. formatted like: gcr.io/{bucketName}/{imageName} + EnvoyImageLocation string `json:"envoyImageLocation,omitempty"` + // ImageLocation: Output only. GCR location where the runtime image is stored. + // formatted like: gcr.io/{bucketName}/{imageName} ImageLocation string `json:"imageLocation,omitempty"` - - // Labels: Optional. Resource labels to represent user-provided - // metadata. Refer to cloud documentation on labels for more details. + // Labels: Optional. Resource labels to represent user-provided metadata. Refer + // to cloud documentation on labels for more details. // https://cloud.google.com/compute/docs/labeling-resources Labels map[string]string `json:"labels,omitempty"` - // LockConfig: Optional. Configuration that indicates whether or not the // Connection can be edited. LockConfig *GoogleCloudConnectorsV1LockConfig `json:"lockConfig,omitempty"` - // LogConfig: Optional. Log configuration for the connection. LogConfig *GoogleCloudConnectorsV1LogConfig `json:"logConfig,omitempty"` - // Name: Output only. Resource name of the Connection. Format: // projects/{project}/locations/{location}/connections/{connection} Name string `json:"name,omitempty"` - // NodeConfig: Optional. Node configuration for the connection. NodeConfig *GoogleCloudConnectorsV1NodeConfig `json:"nodeConfig,omitempty"` - - // ServiceAccount: Optional. Service account needed for runtime plane to - // access GCP resources. + // ServiceAccount: Optional. Service account needed for runtime plane to access + // GCP resources. ServiceAccount string `json:"serviceAccount,omitempty"` - - // ServiceDirectory: Output only. The name of the Service Directory - // service name. Used for Private Harpoon to resolve the ILB address. - // e.g. - // "projects/cloud-connectors-e2e-testing/locations/us-central1/namespace - // s/istio-system/services/istio-ingressgateway-connectors" + // ServiceDirectory: Output only. The name of the Service Directory service + // name. Used for Private Harpoon to resolve the ILB address. e.g. + // "projects/cloud-connectors-e2e-testing/locations/us-central1/namespaces/istio + // -system/services/istio-ingressgateway-connectors" ServiceDirectory string `json:"serviceDirectory,omitempty"` - // SslConfig: Optional. Ssl config of a connection SslConfig *GoogleCloudConnectorsV1SslConfig `json:"sslConfig,omitempty"` - // Status: Output only. Current status of the connection. Status *GoogleCloudConnectorsV1ConnectionStatus `json:"status,omitempty"` - // SubscriptionType: Output only. This subscription type enum states the // subscription type of the project. // @@ -6743,43 +5442,34 @@ type GoogleCloudConnectorsV1Connection struct { // "PAY_G" - PayG subscription. // "PAID" - Paid Subscription. SubscriptionType string `json:"subscriptionType,omitempty"` - // Suspended: Optional. Suspended indicates if a user has suspended a // connection or not. Suspended bool `json:"suspended,omitempty"` - // UpdateTime: Output only. Updated time. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthConfig") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1Connection) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1Connection) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1Connection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1ConnectionStatus: ConnectionStatus indicates -// the state of the connection. +// GoogleCloudConnectorsV1ConnectionStatus: ConnectionStatus indicates the +// state of the connection. type GoogleCloudConnectorsV1ConnectionStatus struct { // Description: Description. Description string `json:"description,omitempty"` - // State: State. // // Possible values: @@ -6793,109 +5483,86 @@ type GoogleCloudConnectorsV1ConnectionStatus struct { // "AUTHORIZATION_REQUIRED" - Connection is not running because the // authorization configuration is not complete. State string `json:"state,omitempty"` - // Status: Status provides detailed information for the state. Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1ConnectionStatus) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1ConnectionStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1ConnectionStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleCloudConnectorsV1Destination struct { // Host: For publicly routable host. Host string `json:"host,omitempty"` - // Port: The port is the target port number that is accepted by the // destination. Port int64 `json:"port,omitempty"` - // ServiceAttachment: PSC service attachments. Format: // projects/*/regions/*/serviceAttachments/* ServiceAttachment string `json:"serviceAttachment,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Host") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Host") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Host") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Host") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1Destination) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1Destination) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1Destination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1DestinationConfig: Define the Connectors -// target endpoint. +// GoogleCloudConnectorsV1DestinationConfig: Define the Connectors target +// endpoint. type GoogleCloudConnectorsV1DestinationConfig struct { // Destinations: The destinations for the key. Destinations []*GoogleCloudConnectorsV1Destination `json:"destinations,omitempty"` - // Key: The key is the destination identifier that is supported by the // Connector. Key string `json:"key,omitempty"` - // ForceSendFields is a list of field names (e.g. "Destinations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Destinations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Destinations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1DestinationConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1DestinationConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1DestinationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudConnectorsV1EncryptionKey: Encryption Key value. type GoogleCloudConnectorsV1EncryptionKey struct { - // KmsKeyName: The [KMS key name] with which the content of the - // Operation is encrypted. The expected format: - // `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty - // string if google managed. + // KmsKeyName: The [KMS key name] with which the content of the Operation is + // encrypted. The expected format: + // `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if + // google managed. KmsKeyName string `json:"kmsKeyName,omitempty"` - // Type: Type. // // Possible values: @@ -6903,187 +5570,146 @@ type GoogleCloudConnectorsV1EncryptionKey struct { // "GOOGLE_MANAGED" - Google Managed. // "CUSTOMER_MANAGED" - Customer Managed. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "KmsKeyName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "KmsKeyName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "KmsKeyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1EncryptionKey) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1EncryptionKey) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1EncryptionKey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1LockConfig: Determines whether or no a -// connection is locked. If locked, a reason must be specified. +// GoogleCloudConnectorsV1LockConfig: Determines whether or no a connection is +// locked. If locked, a reason must be specified. type GoogleCloudConnectorsV1LockConfig struct { // Locked: Indicates whether or not the connection is locked. Locked bool `json:"locked,omitempty"` - // Reason: Describes why a connection is locked. Reason string `json:"reason,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Locked") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Locked") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locked") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1LockConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1LockConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1LockConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1LogConfig: Log configuration for the -// connection. +// GoogleCloudConnectorsV1LogConfig: Log configuration for the connection. type GoogleCloudConnectorsV1LogConfig struct { // Enabled: Enabled represents whether logging is enabled or not for a // connection. Enabled bool `json:"enabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1LogConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1LogConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1LogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1NodeConfig: Node configuration for the -// connection. +// GoogleCloudConnectorsV1NodeConfig: Node configuration for the connection. type GoogleCloudConnectorsV1NodeConfig struct { // MaxNodeCount: Maximum number of nodes in the runtime nodes. MaxNodeCount int64 `json:"maxNodeCount,omitempty"` - // MinNodeCount: Minimum number of nodes in the runtime nodes. MinNodeCount int64 `json:"minNodeCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxNodeCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxNodeCount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxNodeCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1NodeConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1NodeConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1NodeConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudConnectorsV1Secret: Secret provides a reference to entries -// in Secret Manager. +// GoogleCloudConnectorsV1Secret: Secret provides a reference to entries in +// Secret Manager. type GoogleCloudConnectorsV1Secret struct { - // SecretVersion: The resource name of the secret version in the format, - // format as: `projects/*/secrets/*/versions/*`. + // SecretVersion: The resource name of the secret version in the format, format + // as: `projects/*/secrets/*/versions/*`. SecretVersion string `json:"secretVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "SecretVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SecretVersion") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SecretVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1Secret) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1Secret) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1Secret - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudConnectorsV1SslConfig: SSL Configuration of a connection type GoogleCloudConnectorsV1SslConfig struct { // AdditionalVariables: Additional SSL related field values AdditionalVariables []*GoogleCloudConnectorsV1ConfigVariable `json:"additionalVariables,omitempty"` - // ClientCertType: Type of Client Cert (PEM/JKS/.. etc.) // // Possible values: // "CERT_TYPE_UNSPECIFIED" - Cert type unspecified. // "PEM" - Privacy Enhanced Mail (PEM) Type ClientCertType string `json:"clientCertType,omitempty"` - // ClientCertificate: Client Certificate ClientCertificate *GoogleCloudConnectorsV1Secret `json:"clientCertificate,omitempty"` - // ClientPrivateKey: Client Private Key ClientPrivateKey *GoogleCloudConnectorsV1Secret `json:"clientPrivateKey,omitempty"` - - // ClientPrivateKeyPass: Secret containing the passphrase protecting the - // Client Private Key + // ClientPrivateKeyPass: Secret containing the passphrase protecting the Client + // Private Key ClientPrivateKeyPass *GoogleCloudConnectorsV1Secret `json:"clientPrivateKeyPass,omitempty"` - - // PrivateServerCertificate: Private Server Certificate. Needs to be - // specified if trust model is `PRIVATE`. + // PrivateServerCertificate: Private Server Certificate. Needs to be specified + // if trust model is `PRIVATE`. PrivateServerCertificate *GoogleCloudConnectorsV1Secret `json:"privateServerCertificate,omitempty"` - // ServerCertType: Type of Server Cert (PEM/JKS/.. etc.) // // Possible values: // "CERT_TYPE_UNSPECIFIED" - Cert type unspecified. // "PEM" - Privacy Enhanced Mail (PEM) Type ServerCertType string `json:"serverCertType,omitempty"` - // TrustModel: Trust Model of the SSL connection // // Possible values: @@ -7091,7 +5717,6 @@ type GoogleCloudConnectorsV1SslConfig struct { // "PRIVATE" - Private Trust Model. Takes custom/private trust store. // "INSECURE" - Insecure Trust Model. Accept all certificates. TrustModel string `json:"trustModel,omitempty"` - // Type: Controls the ssl type for the given connector version. // // Possible values: @@ -7099,79 +5724,61 @@ type GoogleCloudConnectorsV1SslConfig struct { // "TLS" - TLS Handshake // "MTLS" - mutual TLS (MTLS) Handshake Type string `json:"type,omitempty"` - // UseSsl: Bool for enabling SSL UseSsl bool `json:"useSsl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalVariables") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalVariables") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalVariables") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudConnectorsV1SslConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudConnectorsV1SslConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudConnectorsV1SslConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaAccessToken: The access token -// represents the authorization of a specific application to access -// specific parts of a user’s data. +// GoogleCloudIntegrationsV1alphaAccessToken: The access token represents the +// authorization of a specific application to access specific parts of a +// user’s data. type GoogleCloudIntegrationsV1alphaAccessToken struct { - // AccessToken: The access token encapsulating the security identity of - // a process or thread. + // AccessToken: The access token encapsulating the security identity of a + // process or thread. AccessToken string `json:"accessToken,omitempty"` - - // AccessTokenExpireTime: Required. The approximate time until the - // access token retrieved is valid. + // AccessTokenExpireTime: Required. The approximate time until the access token + // retrieved is valid. AccessTokenExpireTime string `json:"accessTokenExpireTime,omitempty"` - - // RefreshToken: If the access token will expire, use the refresh token - // to obtain another access token. + // RefreshToken: If the access token will expire, use the refresh token to + // obtain another access token. RefreshToken string `json:"refreshToken,omitempty"` - // RefreshTokenExpireTime: The approximate time until the refresh token // retrieved is valid. RefreshTokenExpireTime string `json:"refreshTokenExpireTime,omitempty"` - // TokenType: Only support "bearer" token in v1 as bearer token is the // predominant type used with OAuth 2.0. TokenType string `json:"tokenType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaAccessToken) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaAccessToken) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaAccessToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaAttemptStats: Status for the execution @@ -7179,124 +5786,97 @@ func (s *GoogleCloudIntegrationsV1alphaAccessToken) MarshalJSON() ([]byte, error type GoogleCloudIntegrationsV1alphaAttemptStats struct { // EndTime: The end time of the event execution for current attempt. EndTime string `json:"endTime,omitempty"` - - // StartTime: The start time of the event execution for current attempt. - // This could be in the future if it's been scheduled. + // StartTime: The start time of the event execution for current attempt. This + // could be in the future if it's been scheduled. StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaAttemptStats) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaAttemptStats) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaAttemptStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaAuthConfig: The AuthConfig resource use -// to hold channels and connection config data. +// GoogleCloudIntegrationsV1alphaAuthConfig: The AuthConfig resource use to +// hold channels and connection config data. type GoogleCloudIntegrationsV1alphaAuthConfig struct { // CertificateId: Certificate id for client certificate CertificateId string `json:"certificateId,omitempty"` - - // CreateTime: Output only. The timestamp when the auth config is - // created. + // CreateTime: Output only. The timestamp when the auth config is created. CreateTime string `json:"createTime,omitempty"` - - // CreatorEmail: The creator's email address. Generated based on the End - // User Credentials/LOAS role of the user making the call. + // CreatorEmail: The creator's email address. Generated based on the End User + // Credentials/LOAS role of the user making the call. CreatorEmail string `json:"creatorEmail,omitempty"` - // CredentialType: Credential type of the encrypted credential. // // Possible values: // "CREDENTIAL_TYPE_UNSPECIFIED" - Unspecified credential type // "USERNAME_AND_PASSWORD" - Regular username/password pair. // "API_KEY" - API key. - // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant - // Type. + // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant Type. // "OAUTH2_IMPLICIT" - OAuth 2.0 Implicit Grant Type. - // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant - // Type. - // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner - // Credentials Grant Type. + // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant Type. + // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner Credentials + // Grant Type. // "JWT" - JWT Token. // "AUTH_TOKEN" - Auth Token, e.g. bearer token. - // "SERVICE_ACCOUNT" - Service Account which can be used to generate - // token for authentication. + // "SERVICE_ACCOUNT" - Service Account which can be used to generate token + // for authentication. // "CLIENT_CERTIFICATE_ONLY" - Client Certificate only. // "OIDC_TOKEN" - Google OIDC ID Token CredentialType string `json:"credentialType,omitempty"` - // DecryptedCredential: Raw auth credentials. DecryptedCredential *GoogleCloudIntegrationsV1alphaCredential `json:"decryptedCredential,omitempty"` - // Description: A description of the auth config. Description string `json:"description,omitempty"` - // DisplayName: The name of the auth config. DisplayName string `json:"displayName,omitempty"` - // EncryptedCredential: Auth credential encrypted by Cloud KMS. Can be // decrypted as Credential with proper KMS key. EncryptedCredential string `json:"encryptedCredential,omitempty"` - - // ExpiryNotificationDuration: User can define the time to receive - // notification after which the auth config becomes invalid. Support up - // to 30 days. Support granularity in hours. + // ExpiryNotificationDuration: User can define the time to receive notification + // after which the auth config becomes invalid. Support up to 30 days. Support + // granularity in hours. ExpiryNotificationDuration []string `json:"expiryNotificationDuration,omitempty"` - - // LastModifierEmail: The last modifier's email address. Generated based - // on the End User Credentials/LOAS role of the user making the call. + // LastModifierEmail: The last modifier's email address. Generated based on the + // End User Credentials/LOAS role of the user making the call. LastModifierEmail string `json:"lastModifierEmail,omitempty"` - // Name: Resource name of the SFDC instance // projects/{project}/locations/{location}/authConfigs/{authConfig}. Name string `json:"name,omitempty"` - - // OverrideValidTime: User provided expiry time to override. For the - // example of Salesforce, username/password credentials can be valid for - // 6 months depending on the instance settings. + // OverrideValidTime: User provided expiry time to override. For the example of + // Salesforce, username/password credentials can be valid for 6 months + // depending on the instance settings. OverrideValidTime string `json:"overrideValidTime,omitempty"` - // Reason: The reason / details of the current status. Reason string `json:"reason,omitempty"` - // State: The status of the auth config. // // Possible values: // "STATE_UNSPECIFIED" - Status not specified. // "VALID" - Valid Auth config. - // "INVALID" - General invalidity, if it doesn't fits in the detailed - // issue below. + // "INVALID" - General invalidity, if it doesn't fits in the detailed issue + // below. // "SOFT_DELETED" - Auth config soft deleted. // "EXPIRED" - Auth config expired. // "UNAUTHORIZED" - Auth config unauthorized. // "UNSUPPORTED" - Auth config not supported. State string `json:"state,omitempty"` - - // UpdateTime: Output only. The timestamp when the auth config is - // modified. + // UpdateTime: Output only. The timestamp when the auth config is modified. UpdateTime string `json:"updateTime,omitempty"` - - // ValidTime: The time until the auth config is valid. Empty or max - // value is considered the auth config won't expire. + // ValidTime: The time until the auth config is valid. Empty or max value is + // considered the auth config won't expire. ValidTime string `json:"validTime,omitempty"` - // Visibility: The visibility of the auth config. // // Possible values: @@ -7305,97 +5885,76 @@ type GoogleCloudIntegrationsV1alphaAuthConfig struct { // "CLIENT_VISIBLE" - Profile visible within the client. Visibility string `json:"visibility,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CertificateId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CertificateId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CertificateId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaAuthConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaAuthConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaAuthConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaAuthToken: The credentials to -// authenticate a user agent with a server that is put in HTTP -// Authorization request header. +// GoogleCloudIntegrationsV1alphaAuthToken: The credentials to authenticate a +// user agent with a server that is put in HTTP Authorization request header. type GoogleCloudIntegrationsV1alphaAuthToken struct { // Token: The token for the auth type. Token string `json:"token,omitempty"` - // Type: Authentication type, e.g. "Basic", "Bearer", etc. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Token") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Token") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Token") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaAuthToken) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaAuthToken) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaAuthToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaBooleanParameterArray: This message -// only contains a field of boolean array. +// GoogleCloudIntegrationsV1alphaBooleanParameterArray: This message only +// contains a field of boolean array. type GoogleCloudIntegrationsV1alphaBooleanParameterArray struct { // BooleanValues: Boolean array. BooleanValues []bool `json:"booleanValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "BooleanValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaBooleanParameterArray) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaBooleanParameterArray) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaBooleanParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCancelExecutionRequest: Request for -// cancelling an execution. +// GoogleCloudIntegrationsV1alphaCancelExecutionRequest: Request for cancelling +// an execution. type GoogleCloudIntegrationsV1alphaCancelExecutionRequest struct { } @@ -7405,31 +5964,24 @@ type GoogleCloudIntegrationsV1alphaCancelExecutionResponse struct { // IsCanceled: True if cancellation performed successfully IsCanceled bool `json:"isCanceled,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "IsCanceled") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IsCanceled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IsCanceled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCancelExecutionResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCancelExecutionResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCancelExecutionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaCertificate: The certificate definition @@ -7441,70 +5993,53 @@ type GoogleCloudIntegrationsV1alphaCertificate struct { // "ACTIVE" - Certificate in active state will be able to use // "EXPIRED" - Certificate in expired state needs to be updated CertificateStatus string `json:"certificateStatus,omitempty"` - - // CredentialId: Immutable. Credential id that will be used to register - // with trawler INTERNAL_ONLY + // CredentialId: Immutable. Credential id that will be used to register with + // trawler INTERNAL_ONLY CredentialId string `json:"credentialId,omitempty"` - // Description: Description of the certificate Description string `json:"description,omitempty"` - // DisplayName: Name of the certificate DisplayName string `json:"displayName,omitempty"` - // Name: Output only. Auto generated primary key Name string `json:"name,omitempty"` - - // RawCertificate: Input only. Raw client certificate which would be - // registered with trawler + // RawCertificate: Input only. Raw client certificate which would be registered + // with trawler RawCertificate *GoogleCloudIntegrationsV1alphaClientCertificate `json:"rawCertificate,omitempty"` - - // RequestorId: Immutable. Requestor ID to be used to register - // certificate with trawler + // RequestorId: Immutable. Requestor ID to be used to register certificate with + // trawler RequestorId string `json:"requestorId,omitempty"` - - // ValidEndTime: Output only. The timestamp after which certificate will - // expire + // ValidEndTime: Output only. The timestamp after which certificate will expire ValidEndTime string `json:"validEndTime,omitempty"` - - // ValidStartTime: Output only. The timestamp after which certificate - // will be valid + // ValidStartTime: Output only. The timestamp after which certificate will be + // valid ValidStartTime string `json:"validStartTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CertificateStatus") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CertificateStatus") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CertificateStatus") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CertificateStatus") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCertificate) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCertificate) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCertificate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaClientCertificate: Contains client -// certificate information +// GoogleCloudIntegrationsV1alphaClientCertificate: Contains client certificate +// information type GoogleCloudIntegrationsV1alphaClientCertificate struct { - // EncryptedPrivateKey: The ssl certificate encoded in PEM format. This - // string must include the begin header and end footer lines. For - // example, -----BEGIN CERTIFICATE----- + // EncryptedPrivateKey: The ssl certificate encoded in PEM format. This string + // must include the begin header and end footer lines. For example, -----BEGIN + // CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -7519,15 +6054,13 @@ type GoogleCloudIntegrationsV1alphaClientCertificate struct { // 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H // wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- EncryptedPrivateKey string `json:"encryptedPrivateKey,omitempty"` - // Passphrase: 'passphrase' should be left unset if private key is not - // encrypted. Note that 'passphrase' is not the password for web server, - // but an extra layer of security to protected private key. + // encrypted. Note that 'passphrase' is not the password for web server, but an + // extra layer of security to protected private key. Passphrase string `json:"passphrase,omitempty"` - - // SslCertificate: The ssl certificate encoded in PEM format. This - // string must include the begin header and end footer lines. For - // example, -----BEGIN CERTIFICATE----- + // SslCertificate: The ssl certificate encoded in PEM format. This string must + // include the begin header and end footer lines. For example, -----BEGIN + // CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -7542,106 +6075,82 @@ type GoogleCloudIntegrationsV1alphaClientCertificate struct { // 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H // wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- SslCertificate string `json:"sslCertificate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EncryptedPrivateKey") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EncryptedPrivateKey") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptedPrivateKey") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptedPrivateKey") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaClientCertificate) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaClientCertificate) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaClientCertificate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCloudSchedulerConfig: Cloud Scheduler -// Trigger configuration +// GoogleCloudIntegrationsV1alphaCloudSchedulerConfig: Cloud Scheduler Trigger +// configuration type GoogleCloudIntegrationsV1alphaCloudSchedulerConfig struct { // CronTab: Required. The cron tab of cloud scheduler trigger. CronTab string `json:"cronTab,omitempty"` - // ErrorMessage: Optional. When the job was deleted from Pantheon UI, // error_message will be populated when Get/List integrations ErrorMessage string `json:"errorMessage,omitempty"` - - // Location: Required. The location where associated cloud scheduler job - // will be created + // Location: Required. The location where associated cloud scheduler job will + // be created Location string `json:"location,omitempty"` - - // ServiceAccountEmail: Required. Service account used by Cloud - // Scheduler to trigger the integration at scheduled time + // ServiceAccountEmail: Required. Service account used by Cloud Scheduler to + // trigger the integration at scheduled time ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CronTab") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CronTab") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CronTab") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CronTab") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCloudSchedulerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata: Metadata of -// runtime connection schema. +// GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata: Metadata of runtime +// connection schema. type GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata struct { // Actions: List of actions. Actions []string `json:"actions,omitempty"` - // Entities: List of entity names. Entities []string `json:"entities,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Actions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actions") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Actions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Actions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaCoordinate: Configuration detail of @@ -7649,172 +6158,134 @@ func (s *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata) MarshalJSON() ( type GoogleCloudIntegrationsV1alphaCoordinate struct { // X: Required. X axis of the coordinate X int64 `json:"x,omitempty"` - // Y: Required. Y axis of the coordinate Y int64 `json:"y,omitempty"` - - // ForceSendFields is a list of field names (e.g. "X") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "X") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "X") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "X") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCoordinate) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCoordinate) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCoordinate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest: Request -// for CreateAppsScriptProject rpc call. +// GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest: Request for +// CreateAppsScriptProject rpc call. type GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest struct { // AppsScriptProject: The name of the Apps Script project to be created. AppsScriptProject string `json:"appsScriptProject,omitempty"` - // AuthConfigId: The auth config id necessary to fetch the necessary // credentials to create the project for external clients AuthConfigId string `json:"authConfigId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppsScriptProject") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AppsScriptProject") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AppsScriptProject") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AppsScriptProject") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse: -// Response for CreateAppsScriptProject rpc call. +// GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse: Response for +// CreateAppsScriptProject rpc call. type GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse struct { // ProjectId: The created AppsScriptProject ID. ProjectId string `json:"projectId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ProjectId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProjectId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProjectId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaCredential: Defines parameters for a -// single, canonical credential. +// GoogleCloudIntegrationsV1alphaCredential: Defines parameters for a single, +// canonical credential. type GoogleCloudIntegrationsV1alphaCredential struct { // AuthToken: Auth token credential AuthToken *GoogleCloudIntegrationsV1alphaAuthToken `json:"authToken,omitempty"` - // CredentialType: Credential type associated with auth config. // // Possible values: // "CREDENTIAL_TYPE_UNSPECIFIED" - Unspecified credential type // "USERNAME_AND_PASSWORD" - Regular username/password pair. // "API_KEY" - API key. - // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant - // Type. + // "OAUTH2_AUTHORIZATION_CODE" - OAuth 2.0 Authorization Code Grant Type. // "OAUTH2_IMPLICIT" - OAuth 2.0 Implicit Grant Type. - // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant - // Type. - // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner - // Credentials Grant Type. + // "OAUTH2_CLIENT_CREDENTIALS" - OAuth 2.0 Client Credentials Grant Type. + // "OAUTH2_RESOURCE_OWNER_CREDENTIALS" - OAuth 2.0 Resource Owner Credentials + // Grant Type. // "JWT" - JWT Token. // "AUTH_TOKEN" - Auth Token, e.g. bearer token. - // "SERVICE_ACCOUNT" - Service Account which can be used to generate - // token for authentication. + // "SERVICE_ACCOUNT" - Service Account which can be used to generate token + // for authentication. // "CLIENT_CERTIFICATE_ONLY" - Client Certificate only. // "OIDC_TOKEN" - Google OIDC ID Token CredentialType string `json:"credentialType,omitempty"` - // Jwt: JWT credential Jwt *GoogleCloudIntegrationsV1alphaJwt `json:"jwt,omitempty"` - - // Oauth2AuthorizationCode: The api_key and oauth2_implicit are not - // covered in v1 and will be picked up once v1 is implemented. ApiKey - // api_key = 3; OAuth2 authorization code credential + // Oauth2AuthorizationCode: The api_key and oauth2_implicit are not covered in + // v1 and will be picked up once v1 is implemented. ApiKey api_key = 3; OAuth2 + // authorization code credential Oauth2AuthorizationCode *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode `json:"oauth2AuthorizationCode,omitempty"` - - // Oauth2ClientCredentials: OAuth2Implicit oauth2_implicit = 5; OAuth2 - // client credentials + // Oauth2ClientCredentials: OAuth2Implicit oauth2_implicit = 5; OAuth2 client + // credentials Oauth2ClientCredentials *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials `json:"oauth2ClientCredentials,omitempty"` - // Oauth2ResourceOwnerCredentials: OAuth2 resource owner credentials Oauth2ResourceOwnerCredentials *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials `json:"oauth2ResourceOwnerCredentials,omitempty"` - // OidcToken: Google OIDC ID Token OidcToken *GoogleCloudIntegrationsV1alphaOidcToken `json:"oidcToken,omitempty"` - // ServiceAccountCredentials: Service account credential ServiceAccountCredentials *GoogleCloudIntegrationsV1alphaServiceAccountCredentials `json:"serviceAccountCredentials,omitempty"` - // UsernameAndPassword: Username and password credential UsernameAndPassword *GoogleCloudIntegrationsV1alphaUsernameAndPassword `json:"usernameAndPassword,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthToken") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaCredential) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaCredential) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaCredential - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaDoubleParameterArray: This message only @@ -7822,28 +6293,22 @@ func (s *GoogleCloudIntegrationsV1alphaCredential) MarshalJSON() ([]byte, error) type GoogleCloudIntegrationsV1alphaDoubleParameterArray struct { // DoubleValues: Double number array. DoubleValues []float64 `json:"doubleValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "DoubleValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoubleValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DoubleValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaDoubleParameterArray) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaDoubleParameterArray) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaDoubleParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleCloudIntegrationsV1alphaDoubleParameterArray) UnmarshalJSON(data []byte) error { @@ -7863,189 +6328,150 @@ func (s *GoogleCloudIntegrationsV1alphaDoubleParameterArray) UnmarshalJSON(data return nil } -// GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse: -// Response for DownloadIntegrationVersion. +// GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse: Response +// for DownloadIntegrationVersion. type GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse struct { // Content: String representation of the integration version. Content string `json:"content,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsRespons -// e: Response containing all provisioned regions for Connector -// Platform. +// GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse: +// Response containing all provisioned regions for Connector Platform. type GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse struct { // Regions: All regions where Connector Platform is provisioned. Regions []string `json:"regions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Regions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Regions") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Regions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Regions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaErrorCatcherConfig: Configuration -// detail of a error catch task +// GoogleCloudIntegrationsV1alphaErrorCatcherConfig: Configuration detail of a +// error catch task type GoogleCloudIntegrationsV1alphaErrorCatcherConfig struct { - // Description: Optional. User-provided description intended to give - // more business context about the error catcher config. + // Description: Optional. User-provided description intended to give more + // business context about the error catcher config. Description string `json:"description,omitempty"` - - // ErrorCatcherId: Required. An error catcher id is string - // representation for the error catcher config. Within a workflow, - // error_catcher_id uniquely identifies an error catcher config among - // all error catcher configs for the workflow + // ErrorCatcherId: Required. An error catcher id is string representation for + // the error catcher config. Within a workflow, error_catcher_id uniquely + // identifies an error catcher config among all error catcher configs for the + // workflow ErrorCatcherId string `json:"errorCatcherId,omitempty"` - - // ErrorCatcherNumber: Required. A number to uniquely identify each - // error catcher config within the workflow on UI. + // ErrorCatcherNumber: Required. A number to uniquely identify each error + // catcher config within the workflow on UI. ErrorCatcherNumber string `json:"errorCatcherNumber,omitempty"` - - // Label: Optional. The user created label for a particular error - // catcher. Optional. + // Label: Optional. The user created label for a particular error catcher. + // Optional. Label string `json:"label,omitempty"` - - // Position: Optional. Informs the front-end application where to draw - // this error catcher config on the UI. + // Position: Optional. Informs the front-end application where to draw this + // error catcher config on the UI. Position *GoogleCloudIntegrationsV1alphaCoordinate `json:"position,omitempty"` - - // StartErrorTasks: Required. The set of start tasks that are to be - // executed for the error catch flow + // StartErrorTasks: Required. The set of start tasks that are to be executed + // for the error catch flow StartErrorTasks []*GoogleCloudIntegrationsV1alphaNextTask `json:"startErrorTasks,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaErrorCatcherConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaErrorCatcherConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaErrorCatcherConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaEventParameter: This message is used -// for processing and persisting (when applicable) key value pair -// parameters for each event in the event bus. +// GoogleCloudIntegrationsV1alphaEventParameter: This message is used for +// processing and persisting (when applicable) key value pair parameters for +// each event in the event bus. type GoogleCloudIntegrationsV1alphaEventParameter struct { - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given fired event. These parameters must be - // predefined in the integration definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given fired event. These parameters must be predefined in + // the integration definition. Key string `json:"key,omitempty"` - - // Value: Values for the defined keys. Each value can either be string, - // int, double or any proto message. + // Value: Values for the defined keys. Each value can either be string, int, + // double or any proto message. Value *GoogleCloudIntegrationsV1alphaValueType `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaEventParameter) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaEventParameter) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaEventParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecuteEventRequest: Request for -// triggering an integration using event triggers. +// GoogleCloudIntegrationsV1alphaExecuteEventRequest: Request for triggering an +// integration using event triggers. type GoogleCloudIntegrationsV1alphaExecuteEventRequest struct { - // CloudEvent: Required. Details about the trigger which is to be - // executed and values for input variable to the integration. + // CloudEvent: Required. Details about the trigger which is to be executed and + // values for input variable to the integration. CloudEvent *IoCloudeventsV1CloudEvent `json:"cloudEvent,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudEvent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloudEvent") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudEvent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecuteEventRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecuteEventRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecuteEventRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaExecuteEventResponse: The response for @@ -8055,164 +6481,123 @@ type GoogleCloudIntegrationsV1alphaExecuteEventResponse struct { // integration. ExecutionId string `json:"executionId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExecutionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecuteEventResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecuteEventResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecuteEventResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest: The request -// for executing an integration. +// GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest: The request for +// executing an integration. type GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest struct { - // DoNotPropagateError: Optional. Flag to determine how to should - // propagate errors. If this flag is set to be true, it will not throw - // an exception. Instead, it will return a {@link - // ExecuteIntegrationsResponse} with an execution id and error messages - // as PostWithTriggerIdExecutionException in {@link EventParameters}. - // The flag is set to be false by default. + // DoNotPropagateError: Optional. Flag to determine how to should propagate + // errors. If this flag is set to be true, it will not throw an exception. + // Instead, it will return a {@link ExecuteIntegrationsResponse} with an + // execution id and error messages as PostWithTriggerIdExecutionException in + // {@link EventParameters}. The flag is set to be false by default. DoNotPropagateError bool `json:"doNotPropagateError,omitempty"` - // ExecutionId: Optional. The id of the ON_HOLD execution to be resumed. ExecutionId string `json:"executionId,omitempty"` - - // InputParameters: Optional. Input parameters used by integration - // execution. + // InputParameters: Optional. Input parameters used by integration execution. InputParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"inputParameters,omitempty"` - - // ParameterEntries: Optional. Parameters are a part of Event and can be - // used to communicate between different tasks that are part of the same - // integration execution. + // ParameterEntries: Optional. Parameters are a part of Event and can be used + // to communicate between different tasks that are part of the same integration + // execution. ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` - - // Parameters: Optional. Passed in as parameters to each integration - // execution. Redacted + // Parameters: Optional. Passed in as parameters to each integration execution. + // Redacted Parameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"parameters,omitempty"` - // RequestId: Optional. This is used to de-dup incoming request: if the - // duplicate request was detected, the response from the previous - // execution is returned. + // duplicate request was detected, the response from the previous execution is + // returned. RequestId string `json:"requestId,omitempty"` - - // TriggerId: Required. Matched against all {@link TriggerConfig}s - // across all integrations. i.e. - // TriggerConfig.trigger_id.equals(trigger_id). The trigger_id is in the - // format of `api_trigger/TRIGGER_NAME`. + // TriggerId: Required. Matched against all {@link TriggerConfig}s across all + // integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id). The + // trigger_id is in the format of `api_trigger/TRIGGER_NAME`. TriggerId string `json:"triggerId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DoNotPropagateError") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DoNotPropagateError") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DoNotPropagateError") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DoNotPropagateError") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse: The -// response for executing an integration. +// GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse: The response for +// executing an integration. type GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse struct { // EventParameters: Details for the integration that were executed. EventParameters *EnterpriseCrmFrontendsEventbusProtoEventParameters `json:"eventParameters,omitempty"` - - // ExecutionFailed: Is true if any execution in the integration failed. - // False otherwise. + // ExecutionFailed: Is true if any execution in the integration failed. False + // otherwise. ExecutionFailed bool `json:"executionFailed,omitempty"` - // ExecutionId: The id of the execution corresponding to this run of // integration. ExecutionId string `json:"executionId,omitempty"` - - // OutputParameters: OUTPUT parameters in format of Map. Where Key is - // the name of the parameter. Note: Name of the system generated - // parameters are wrapped by backtick(`) to distinguish them from the - // user defined parameters. + // OutputParameters: OUTPUT parameters in format of Map. Where Key is the name + // of the parameter. Note: Name of the system generated parameters are wrapped + // by backtick(`) to distinguish them from the user defined parameters. OutputParameters googleapi.RawMessage `json:"outputParameters,omitempty"` - // ParameterEntries: Parameters are a part of Event and can be used to - // communicate between different tasks that are part of the same - // integration execution. + // communicate between different tasks that are part of the same integration + // execution. ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EventParameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventParameters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventParameters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecution: The Execution resource -// contains detailed information of an individual integration execution. +// GoogleCloudIntegrationsV1alphaExecution: The Execution resource contains +// detailed information of an individual integration execution. type GoogleCloudIntegrationsV1alphaExecution struct { // CreateTime: Output only. Created time of the execution. CreateTime string `json:"createTime,omitempty"` - - // DirectSubExecutions: Direct sub executions of the following - // Execution. + // DirectSubExecutions: Direct sub executions of the following Execution. DirectSubExecutions []*GoogleCloudIntegrationsV1alphaExecution `json:"directSubExecutions,omitempty"` - // EventExecutionDetails: The execution info about this event. EventExecutionDetails *EnterpriseCrmEventbusProtoEventExecutionDetails `json:"eventExecutionDetails,omitempty"` - // ExecutionDetails: Detailed info of this execution. ExecutionDetails *GoogleCloudIntegrationsV1alphaExecutionDetails `json:"executionDetails,omitempty"` - // ExecutionMethod: The ways user posts this event. // // Possible values: @@ -8221,529 +6606,416 @@ type GoogleCloudIntegrationsV1alphaExecution struct { // "POST_TO_QUEUE" - Async post. // "SCHEDULE" - Async post with schedule time. ExecutionMethod string `json:"executionMethod,omitempty"` - // Name: Auto-generated primary key. Name string `json:"name,omitempty"` - // RequestParameters: Event parameters come in as part of the request. RequestParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"requestParameters,omitempty"` - // RequestParams: Event parameters come in as part of the request. RequestParams []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"requestParams,omitempty"` - - // ResponseParameters: Event parameters returned as part of the - // response. + // ResponseParameters: Event parameters returned as part of the response. ResponseParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"responseParameters,omitempty"` - // ResponseParams: Event parameters come out as part of the response. ResponseParams []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"responseParams,omitempty"` - // TriggerId: The trigger id of the integration trigger config. If both - // trigger_id and client_id is present, the integration is executed from - // the start tasks provided by the matching trigger config otherwise it - // is executed from the default start tasks. + // trigger_id and client_id is present, the integration is executed from the + // start tasks provided by the matching trigger config otherwise it is executed + // from the default start tasks. TriggerId string `json:"triggerId,omitempty"` - // UpdateTime: Output only. Last modified time of the execution. UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecution) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecution) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecution - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecutionDetails: Contains the details -// of the execution info: this includes the tasks execution details plus -// the event execution statistics. +// GoogleCloudIntegrationsV1alphaExecutionDetails: Contains the details of the +// execution info: this includes the tasks execution details plus the event +// execution statistics. type GoogleCloudIntegrationsV1alphaExecutionDetails struct { // AttemptStats: List of Start and end time of the execution attempts. AttemptStats []*GoogleCloudIntegrationsV1alphaAttemptStats `json:"attemptStats,omitempty"` - // ExecutionSnapshots: List of snapshots taken during the execution. ExecutionSnapshots []*GoogleCloudIntegrationsV1alphaExecutionSnapshot `json:"executionSnapshots,omitempty"` - // State: Status of the execution. // // Possible values: // "STATE_UNSPECIFIED" - Default. // "PENDING" - Execution is scheduled and awaiting to be triggered. // "PROCESSING" - Execution is processing. - // "SUCCEEDED" - Execution successfully finished. There's no more - // change after this state. - // "FAILED" - Execution failed. There's no more change after this - // state. - // "CANCELLED" - Execution canceled by user. There's no more change + // "SUCCEEDED" - Execution successfully finished. There's no more change // after this state. + // "FAILED" - Execution failed. There's no more change after this state. + // "CANCELLED" - Execution canceled by user. There's no more change after + // this state. // "RETRY_ON_HOLD" - Execution failed and waiting for retry. - // "SUSPENDED" - Execution suspended and waiting for manual - // intervention. + // "SUSPENDED" - Execution suspended and waiting for manual intervention. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "AttemptStats") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttemptStats") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AttemptStats") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecutionDetails) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecutionDetails) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecutionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecutionSnapshot: Contains the -// snapshot of the execution for a given checkpoint. +// GoogleCloudIntegrationsV1alphaExecutionSnapshot: Contains the snapshot of +// the execution for a given checkpoint. type GoogleCloudIntegrationsV1alphaExecutionSnapshot struct { - // CheckpointTaskNumber: Indicates "after which checkpoint task's - // execution" this snapshot is taken. + // CheckpointTaskNumber: Indicates "after which checkpoint task's execution" + // this snapshot is taken. CheckpointTaskNumber string `json:"checkpointTaskNumber,omitempty"` - // ExecutionSnapshotMetadata: Metadata of the execution snapshot. ExecutionSnapshotMetadata *GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata `json:"executionSnapshotMetadata,omitempty"` - // Params: Parameters used during the execution. Params map[string]GoogleCloudIntegrationsV1alphaValueType `json:"params,omitempty"` - - // TaskExecutionDetails: All of the task execution details at the given - // point of time. + // TaskExecutionDetails: All of the task execution details at the given point + // of time. TaskExecutionDetails []*GoogleCloudIntegrationsV1alphaTaskExecutionDetails `json:"taskExecutionDetails,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CheckpointTaskNumber") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CheckpointTaskNumber") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CheckpointTaskNumber") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecutionSnapshot) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecutionSnapshot) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecutionSnapshot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetada -// ta: Metadata of the execution snapshot. +// GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata: +// Metadata of the execution snapshot. type GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata struct { - // ExecutionAttempt: the execution attempt number this snapshot belongs - // to. + // ExecutionAttempt: the execution attempt number this snapshot belongs to. ExecutionAttempt int64 `json:"executionAttempt,omitempty"` - // Task: the task name associated with this snapshot. Task string `json:"task,omitempty"` - // TaskAttempt: the task attempt number this snapshot belongs to. TaskAttempt int64 `json:"taskAttempt,omitempty"` - - // TaskLabel: the task label associated with this snapshot. Could be - // empty. + // TaskLabel: the task label associated with this snapshot. Could be empty. TaskLabel string `json:"taskLabel,omitempty"` - // TaskNumber: The task number associated with this snapshot. TaskNumber string `json:"taskNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExecutionAttempt") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionAttempt") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionAttempt") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaFailurePolicy: Policy that defines the -// task retry logic and failure type. If no FailurePolicy is defined for -// a task, all its dependent tasks will not be executed (i.e, a -// `retry_strategy` of NONE will be applied). +// GoogleCloudIntegrationsV1alphaFailurePolicy: Policy that defines the task +// retry logic and failure type. If no FailurePolicy is defined for a task, all +// its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE +// will be applied). type GoogleCloudIntegrationsV1alphaFailurePolicy struct { // IntervalTime: Required if retry_strategy is FIXED_INTERVAL or - // LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines - // the initial interval in seconds for backoff. + // LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the + // initial interval in seconds for backoff. IntervalTime string `json:"intervalTime,omitempty"` - // MaxRetries: Required if retry_strategy is FIXED_INTERVAL or - // LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines - // the number of times the task will be retried if failed. + // LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the + // number of times the task will be retried if failed. MaxRetries int64 `json:"maxRetries,omitempty"` - // RetryStrategy: Defines what happens to the task upon failure. // // Possible values: // "RETRY_STRATEGY_UNSPECIFIED" - UNSPECIFIED. - // "IGNORE" - Ignores the failure of this task. The rest of the - // integration will be executed Assuming this task succeeded. - // "NONE" - Causes a permanent failure of the task. However, if the - // last task(s) of event was successfully completed despite the failure - // of this task, it has no impact on the integration. - // "FATAL" - Causes a permanent failure of the event. It is different - // from NONE because this will mark the event as FAILED by shutting down - // the event execution. - // "FIXED_INTERVAL" - The task will be retried from the failed task - // onwards after a fixed delay. A max-retry count is required to be - // specified with this strategy. A jitter is added to each exponential - // interval so that concurrently failing tasks of the same type do not - // end up retrying after the exact same exponential interval. - // max_retries and interval_in_seconds must be specified. - // "LINEAR_BACKOFF" - The task will be retried from the failed task - // onwards after a fixed delay that linearly increases with each retry - // attempt. A jitter is added to each exponential interval so that - // concurrently failing tasks of the same type do not end up retrying - // after the exact same exponential interval. A max-retry count is - // required to be specified with this strategy. max_retries and - // interval_in_seconds must be specified. - // "EXPONENTIAL_BACKOFF" - The task will be retried after an - // exponentially increasing period of time with each failure. A jitter - // is added to each exponential interval so that concurrently failing - // tasks of the same type do not end up retrying after the exact same - // exponential interval. A max-retry count is required to be specified - // with this strategy. `max_retries` and `interval_in_seconds` must be + // "IGNORE" - Ignores the failure of this task. The rest of the integration + // will be executed Assuming this task succeeded. + // "NONE" - Causes a permanent failure of the task. However, if the last + // task(s) of event was successfully completed despite the failure of this + // task, it has no impact on the integration. + // "FATAL" - Causes a permanent failure of the event. It is different from + // NONE because this will mark the event as FAILED by shutting down the event + // execution. + // "FIXED_INTERVAL" - The task will be retried from the failed task onwards + // after a fixed delay. A max-retry count is required to be specified with this + // strategy. A jitter is added to each exponential interval so that + // concurrently failing tasks of the same type do not end up retrying after the + // exact same exponential interval. max_retries and interval_in_seconds must be // specified. + // "LINEAR_BACKOFF" - The task will be retried from the failed task onwards + // after a fixed delay that linearly increases with each retry attempt. A + // jitter is added to each exponential interval so that concurrently failing + // tasks of the same type do not end up retrying after the exact same + // exponential interval. A max-retry count is required to be specified with + // this strategy. max_retries and interval_in_seconds must be specified. + // "EXPONENTIAL_BACKOFF" - The task will be retried after an exponentially + // increasing period of time with each failure. A jitter is added to each + // exponential interval so that concurrently failing tasks of the same type do + // not end up retrying after the exact same exponential interval. A max-retry + // count is required to be specified with this strategy. `max_retries` and + // `interval_in_seconds` must be specified. // "RESTART_INTEGRATION_WITH_BACKOFF" - The entire integration will be - // restarted with the initial parameters that were set when the event - // was fired. A max-retry count is required to be specified with this - // strategy. `max_retries` and `interval_in_seconds` must be specified. + // restarted with the initial parameters that were set when the event was + // fired. A max-retry count is required to be specified with this strategy. + // `max_retries` and `interval_in_seconds` must be specified. RetryStrategy string `json:"retryStrategy,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntervalTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntervalTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IntervalTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaFailurePolicy) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaFailurePolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaFailurePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaGenerateTokenResponse: Returns success -// or error message +// GoogleCloudIntegrationsV1alphaGenerateTokenResponse: Returns success or +// error message type GoogleCloudIntegrationsV1alphaGenerateTokenResponse struct { - // Message: The message that notifies the user if the request succeeded - // or not. + // Message: The message that notifies the user if the request succeeded or not. Message string `json:"message,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Message") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Message") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Message") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Message") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaGenerateTokenResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaGenerateTokenResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaGenerateTokenResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntParameterArray: This message only -// contains a field of integer array. +// GoogleCloudIntegrationsV1alphaIntParameterArray: This message only contains +// a field of integer array. type GoogleCloudIntegrationsV1alphaIntParameterArray struct { // IntValues: Integer array. IntValues googleapi.Int64s `json:"intValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntValues") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IntValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntParameterArray) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntParameterArray) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntegration: The integration -// definition. +// GoogleCloudIntegrationsV1alphaIntegration: The integration definition. type GoogleCloudIntegrationsV1alphaIntegration struct { // Active: Required. If any integration version is published. Active bool `json:"active,omitempty"` - // Description: Optional. Description string `json:"description,omitempty"` - // Name: Required. The resource name of the integration. Name string `json:"name,omitempty"` - // UpdateTime: Output only. Auto-generated. UpdateTime string `json:"updateTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegration) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegration) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfig: Message to be -// used to configure custom alerting in the {@code EventConfig} protos -// for an event. +// GoogleCloudIntegrationsV1alphaIntegrationAlertConfig: Message to be used to +// configure custom alerting in the {@code EventConfig} protos for an event. type GoogleCloudIntegrationsV1alphaIntegrationAlertConfig struct { // AggregationPeriod: The period over which the metric value should be - // aggregated and evaluated. Format is , where integer should be a - // positive integer and unit should be one of (s,m,h,d,w) meaning - // (second, minute, hour, day, week). For an EXPECTED_MIN threshold, - // this aggregation_period must be lesser than 24 hours. + // aggregated and evaluated. Format is , where integer should be a positive + // integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, + // day, week). For an EXPECTED_MIN threshold, this aggregation_period must be + // lesser than 24 hours. AggregationPeriod string `json:"aggregationPeriod,omitempty"` - - // AlertThreshold: For how many contiguous aggregation periods should - // the expected min or max be violated for the alert to be fired. + // AlertThreshold: For how many contiguous aggregation periods should the + // expected min or max be violated for the alert to be fired. AlertThreshold int64 `json:"alertThreshold,omitempty"` - - // DisableAlert: Set to false by default. When set to true, the metrics - // are not aggregated or pushed to Monarch for this integration alert. + // DisableAlert: Set to false by default. When set to true, the metrics are not + // aggregated or pushed to Monarch for this integration alert. DisableAlert bool `json:"disableAlert,omitempty"` - - // DisplayName: Name of the alert. This will be displayed in the alert - // subject. If set, this name should be unique within the scope of the - // integration. + // DisplayName: Name of the alert. This will be displayed in the alert subject. + // If set, this name should be unique within the scope of the integration. DisplayName string `json:"displayName,omitempty"` - // DurationThreshold: Should be specified only for *AVERAGE_DURATION and - // *PERCENTILE_DURATION metrics. This member should be used to specify - // what duration value the metrics should exceed for the alert to - // trigger. + // *PERCENTILE_DURATION metrics. This member should be used to specify what + // duration value the metrics should exceed for the alert to trigger. DurationThreshold string `json:"durationThreshold,omitempty"` - // MetricType: The type of metric. // // Possible values: - // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should - // always be set to one of the other non-default values, otherwise it - // will result in an INVALID_ARGUMENT error. - // "EVENT_ERROR_RATE" - Specifies alerting on the rate of errors for - // the enclosing integration. - // "EVENT_WARNING_RATE" - Specifies alerting on the rate of warnings - // for the enclosing integration. Warnings use the same enum values as - // errors. - // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors for - // any task in the enclosing integration. - // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings - // for any task in the enclosing integration. - // "TASK_RATE" - Specifies alerting on the rate of executions over all - // tasks in the enclosing integration. - // "EVENT_RATE" - Specifies alerting on the number of events executed - // in the given aggregation_period. - // "EVENT_AVERAGE_DURATION" - Specifies alerting on the average - // duration of executions for this integration. - // "EVENT_PERCENTILE_DURATION" - Specifies alerting on the duration - // value of a particular percentile of integration executions. E.g. If - // 10% or more of the integration executions have durations above 5 - // seconds, alert. - // "TASK_AVERAGE_DURATION" - Specifies alerting on the average - // duration of any task in the enclosing integration, - // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration - // value of a particular percentile of any task executions within the - // enclosing integration. E.g. If 10% or more of the task executions in - // the integration have durations above 5 seconds, alert. + // "METRIC_TYPE_UNSPECIFIED" - The default value. Metric type should always + // be set to one of the other non-default values, otherwise it will result in + // an INVALID_ARGUMENT error. + // "EVENT_ERROR_RATE" - Specifies alerting on the rate of errors for the + // enclosing integration. + // "EVENT_WARNING_RATE" - Specifies alerting on the rate of warnings for the + // enclosing integration. Warnings use the same enum values as errors. + // "TASK_ERROR_RATE" - Specifies alerting on the rate of errors for any task + // in the enclosing integration. + // "TASK_WARNING_RATE" - Specifies alerting on the rate of warnings for any + // task in the enclosing integration. + // "TASK_RATE" - Specifies alerting on the rate of executions over all tasks + // in the enclosing integration. + // "EVENT_RATE" - Specifies alerting on the number of events executed in the + // given aggregation_period. + // "EVENT_AVERAGE_DURATION" - Specifies alerting on the average duration of + // executions for this integration. + // "EVENT_PERCENTILE_DURATION" - Specifies alerting on the duration value of + // a particular percentile of integration executions. E.g. If 10% or more of + // the integration executions have durations above 5 seconds, alert. + // "TASK_AVERAGE_DURATION" - Specifies alerting on the average duration of + // any task in the enclosing integration, + // "TASK_PERCENTILE_DURATION" - Specifies alerting on the duration value of a + // particular percentile of any task executions within the enclosing + // integration. E.g. If 10% or more of the task executions in the integration + // have durations above 5 seconds, alert. MetricType string `json:"metricType,omitempty"` - - // OnlyFinalAttempt: For either events or tasks, depending on the type - // of alert, count only final attempts, not retries. + // OnlyFinalAttempt: For either events or tasks, depending on the type of + // alert, count only final attempts, not retries. OnlyFinalAttempt bool `json:"onlyFinalAttempt,omitempty"` - // ThresholdType: The threshold type, whether lower(expected_min) or - // upper(expected_max), for which this alert is being configured. If - // value falls below expected_min or exceeds expected_max, an alert will - // be fired. + // upper(expected_max), for which this alert is being configured. If value + // falls below expected_min or exceeds expected_max, an alert will be fired. // // Possible values: // "THRESHOLD_TYPE_UNSPECIFIED" - Default. - // "EXPECTED_MIN" - Note that this field will only trigger alerts if - // the integration specifying it runs at least once in 24 hours (which - // is our in-memory retention period for monarch streams). Also note - // that `aggregation_period` for this alert configuration must be less - // than 24 hours. Min value threshold. + // "EXPECTED_MIN" - Note that this field will only trigger alerts if the + // integration specifying it runs at least once in 24 hours (which is our + // in-memory retention period for monarch streams). Also note that + // `aggregation_period` for this alert configuration must be less than 24 + // hours. Min value threshold. // "EXPECTED_MAX" - Max value threshold. ThresholdType string `json:"thresholdType,omitempty"` - - // ThresholdValue: The metric value, above or below which the alert - // should be triggered. + // ThresholdValue: The metric value, above or below which the alert should be + // triggered. ThresholdValue *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue `json:"thresholdValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AggregationPeriod") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AggregationPeriod") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregationPeriod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AggregationPeriod") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegrationAlertConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue: -// The threshold value of the metric, above or below which the alert -// should be triggered. See EventAlertConfig or TaskAlertConfig for the -// different alert metric types in each case. For the *RATE metrics, one -// or both of these fields may be set. Zero is the default value and can -// be left at that. For *PERCENTILE_DURATION metrics, one or both of -// these fields may be set, and also, the duration threshold value -// should be specified in the threshold_duration_ms member below. For -// *AVERAGE_DURATION metrics, these fields should not be set at all. A -// different member, threshold_duration_ms, must be set in the -// EventAlertConfig or the TaskAlertConfig. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue: The +// threshold value of the metric, above or below which the alert should be +// triggered. See EventAlertConfig or TaskAlertConfig for the different alert +// metric types in each case. For the *RATE metrics, one or both of these +// fields may be set. Zero is the default value and can be left at that. For +// *PERCENTILE_DURATION metrics, one or both of these fields may be set, and +// also, the duration threshold value should be specified in the +// threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these +// fields should not be set at all. A different member, threshold_duration_ms, +// must be set in the EventAlertConfig or the TaskAlertConfig. type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue struct { // Absolute: Absolute value threshold. Absolute int64 `json:"absolute,omitempty,string"` - // Percentage: Percentage threshold. Percentage int64 `json:"percentage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Absolute") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Absolute") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Absolute") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntegrationParameter: Integration -// Parameter is defined in the integration config and are used to -// provide information about data types of the expected parameters and -// provide any default values if needed. They can also be used to add -// custom attributes. These are static in nature and should not be used -// for dynamic event definition. +// GoogleCloudIntegrationsV1alphaIntegrationParameter: Integration Parameter is +// defined in the integration config and are used to provide information about +// data types of the expected parameters and provide any default values if +// needed. They can also be used to add custom attributes. These are static in +// nature and should not be used for dynamic event definition. type GoogleCloudIntegrationsV1alphaIntegrationParameter struct { // DataType: Type of the parameter. // @@ -8761,125 +7033,97 @@ type GoogleCloudIntegrationsV1alphaIntegrationParameter struct { // "PROTO_VALUE" - Proto Value (Internal use only). // "PROTO_ARRAY" - Proto Array (Internal use only). DataType string `json:"dataType,omitempty"` - - // DefaultValue: Default values for the defined keys. Each value can - // either be string, int, double or any proto message or a serialized - // object. + // DefaultValue: Default values for the defined keys. Each value can either be + // string, int, double or any proto message or a serialized object. DefaultValue *GoogleCloudIntegrationsV1alphaValueType `json:"defaultValue,omitempty"` - - // DisplayName: The name (without prefix) to be displayed in the UI for - // this parameter. E.g. if the key is "foo.bar.myName", then the name - // would be "myName". + // DisplayName: The name (without prefix) to be displayed in the UI for this + // parameter. E.g. if the key is "foo.bar.myName", then the name would be + // "myName". DisplayName string `json:"displayName,omitempty"` - // InputOutputType: Specifies the input/output type for the parameter. // // Possible values: // "IN_OUT_TYPE_UNSPECIFIED" - Default. - // "IN" - Input parameters for the integration. EventBus validates - // that these parameters exist in the integrations before execution. - // "OUT" - Output Parameters for the integration. EventBus will only - // return the integration parameters tagged with OUT in the response - // back. - // "IN_OUT" - Input and Output Parameters. These can be used as both - // input and output. EventBus will validate for the existence of these - // parameters before execution and will also return this parameter back - // in the response. + // "IN" - Input parameters for the integration. EventBus validates that these + // parameters exist in the integrations before execution. + // "OUT" - Output Parameters for the integration. EventBus will only return + // the integration parameters tagged with OUT in the response back. + // "IN_OUT" - Input and Output Parameters. These can be used as both input + // and output. EventBus will validate for the existence of these parameters + // before execution and will also return this parameter back in the response. InputOutputType string `json:"inputOutputType,omitempty"` - // IsTransient: Whether this parameter is a transient parameter. IsTransient bool `json:"isTransient,omitempty"` - - // JsonSchema: This schema will be used to validate runtime JSON-typed - // values of this parameter. + // JsonSchema: This schema will be used to validate runtime JSON-typed values + // of this parameter. JsonSchema string `json:"jsonSchema,omitempty"` - - // Key: Key is used to retrieve the corresponding parameter value. This - // should be unique for a given fired event. These parameters must be - // predefined in the integration definition. + // Key: Key is used to retrieve the corresponding parameter value. This should + // be unique for a given fired event. These parameters must be predefined in + // the integration definition. Key string `json:"key,omitempty"` - // Producer: The identifier of the node (TaskConfig/TriggerConfig) this - // parameter was produced by, if it is a transient param or a copy of an - // input param. + // parameter was produced by, if it is a transient param or a copy of an input + // param. Producer string `json:"producer,omitempty"` - // Searchable: Searchable in the execution log or not. Searchable bool `json:"searchable,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DataType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DataType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegrationParameter) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegrationParameter) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegrationParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion: // IntegrationTemplateVersion definition. An IntegrationTemplateVersion -// provides configurations required to construct an IntegrationVersion. -// It cannot be executed directly like an Integration. Users can create -// IntegrationTemplateVersions using Integrations. These Templates can -// be shared by users across GCP projects. +// provides configurations required to construct an IntegrationVersion. It +// cannot be executed directly like an Integration. Users can create +// IntegrationTemplateVersions using Integrations. These Templates can be +// shared by users across GCP projects. type GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion struct { // CreateTime: Output only. Auto-generated. CreateTime string `json:"createTime,omitempty"` - - // DatabasePersistencePolicy: Optional. Flag to disable database - // persistence for execution data, including event execution info, - // execution export info, execution metadata index and execution param - // index. + // DatabasePersistencePolicy: Optional. Flag to disable database persistence + // for execution data, including event execution info, execution export info, + // execution metadata index and execution param index. // // Possible values: - // "DATABASE_PERSISTENCE_POLICY_UNSPECIFIED" - Enables persistence for - // all execution data. - // "DATABASE_PERSISTENCE_DISABLED" - Disables persistence for all + // "DATABASE_PERSISTENCE_POLICY_UNSPECIFIED" - Enables persistence for all // execution data. + // "DATABASE_PERSISTENCE_DISABLED" - Disables persistence for all execution + // data. DatabasePersistencePolicy string `json:"databasePersistencePolicy,omitempty"` - - // Description: Optional. The templateversion description. Permitted - // format is alphanumeric with underscores and no spaces. + // Description: Optional. The templateversion description. Permitted format is + // alphanumeric with underscores and no spaces. Description string `json:"description,omitempty"` - // ErrorCatcherConfigs: Optional. Error Catch Task configuration for the // IntegrationTemplateVersion. It's optional. ErrorCatcherConfigs []*GoogleCloudIntegrationsV1alphaErrorCatcherConfig `json:"errorCatcherConfigs,omitempty"` - - // LastModifierEmail: Optional. The last modifier's email address. - // Generated based on the End User Credentials/LOAS role of the user - // making the call. + // LastModifierEmail: Optional. The last modifier's email address. Generated + // based on the End User Credentials/LOAS role of the user making the call. LastModifierEmail string `json:"lastModifierEmail,omitempty"` - // Name: Output only. Auto-generated primary key. Format: - // projects/{project}/locations/{location}/products/{product}/integration - // templates/{integrationtemplate}/versions/{version} + // projects/{project}/locations/{location}/products/{product}/integrationtemplat + // es/{integrationtemplate}/versions/{version} Name string `json:"name,omitempty"` - - // ParentIntegrationVersionId: Optional. ID of the IntegrationVersion - // that was used to create this IntegrationTemplateVersion + // ParentIntegrationVersionId: Optional. ID of the IntegrationVersion that was + // used to create this IntegrationTemplateVersion ParentIntegrationVersionId string `json:"parentIntegrationVersionId,omitempty"` - - // SnapshotNumber: Output only. An increasing sequence that is set when - // a new snapshot is created. + // SnapshotNumber: Output only. An increasing sequence that is set when a new + // snapshot is created. SnapshotNumber int64 `json:"snapshotNumber,omitempty,string"` - - // Status: Optional. Generated by eventbus. User should not set it as an - // input. + // Status: Optional. Generated by eventbus. User should not set it as an input. // // Possible values: // "UNKNOWN" @@ -8888,148 +7132,115 @@ type GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion struct { // "ARCHIVED" // "SNAPSHOT" Status string `json:"status,omitempty"` - // TaskConfigs: Optional. Task configuration for the // IntegrationTemplateVersion. It's optional, but the // IntegrationTemplateVersion doesn't do anything without task_configs. TaskConfigs []*EnterpriseCrmFrontendsEventbusProtoTaskConfig `json:"taskConfigs,omitempty"` - - // Teardown: Optional. Contains a graph of tasks that will be executed - // before putting the event in a terminal state - // (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar - // to "finally" in code. + // Teardown: Optional. Contains a graph of tasks that will be executed before + // putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless + // of success or failure, similar to "finally" in code. Teardown *EnterpriseCrmEventbusProtoTeardown `json:"teardown,omitempty"` - - // TemplateParameters: Optional. Parameters that are expected to be - // passed to the IntegrationTemplateVersion when an event is triggered. - // This consists of all the parameters that are expected in the - // IntegrationTemplateVersion execution. This gives the user the ability - // to provide default values, add information like PII and also provide - // data types of each parameter. + // TemplateParameters: Optional. Parameters that are expected to be passed to + // the IntegrationTemplateVersion when an event is triggered. This consists of + // all the parameters that are expected in the IntegrationTemplateVersion + // execution. This gives the user the ability to provide default values, add + // information like PII and also provide data types of each parameter. TemplateParameters *EnterpriseCrmFrontendsEventbusProtoWorkflowParameters `json:"templateParameters,omitempty"` - // TriggerConfigs: Optional. Trigger configurations. TriggerConfigs []*EnterpriseCrmFrontendsEventbusProtoTriggerConfig `json:"triggerConfigs,omitempty"` - // UpdateTime: Output only. Auto-generated. UpdateTime string `json:"updateTime,omitempty"` - - // UserLabel: Optional. A user-defined label that annotates an - // integration version. Typically, this is only set when the integration - // version is created. + // UserLabel: Optional. A user-defined label that annotates an integration + // version. Typically, this is only set when the integration version is + // created. UserLabel string `json:"userLabel,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaIntegrationVersion: The integration -// version definition. +// GoogleCloudIntegrationsV1alphaIntegrationVersion: The integration version +// definition. type GoogleCloudIntegrationsV1alphaIntegrationVersion struct { // CreateTime: Output only. Auto-generated. CreateTime string `json:"createTime,omitempty"` - - // DatabasePersistencePolicy: Optional. Flag to disable database - // persistence for execution data, including event execution info, - // execution export info, execution metadata index and execution param - // index. + // DatabasePersistencePolicy: Optional. Flag to disable database persistence + // for execution data, including event execution info, execution export info, + // execution metadata index and execution param index. // // Possible values: - // "DATABASE_PERSISTENCE_POLICY_UNSPECIFIED" - Enables persistence for - // all execution data. - // "DATABASE_PERSISTENCE_DISABLED" - Disables persistence for all + // "DATABASE_PERSISTENCE_POLICY_UNSPECIFIED" - Enables persistence for all // execution data. + // "DATABASE_PERSISTENCE_DISABLED" - Disables persistence for all execution + // data. DatabasePersistencePolicy string `json:"databasePersistencePolicy,omitempty"` - // Description: Optional. The integration description. Description string `json:"description,omitempty"` - // ErrorCatcherConfigs: Optional. Error Catch Task configuration for the // integration. It's optional. ErrorCatcherConfigs []*GoogleCloudIntegrationsV1alphaErrorCatcherConfig `json:"errorCatcherConfigs,omitempty"` - - // IntegrationParameters: Optional. Parameters that are expected to be - // passed to the integration when an event is triggered. This consists - // of all the parameters that are expected in the integration execution. - // This gives the user the ability to provide default values, add - // information like PII and also provide data types of each parameter. + // IntegrationParameters: Optional. Parameters that are expected to be passed + // to the integration when an event is triggered. This consists of all the + // parameters that are expected in the integration execution. This gives the + // user the ability to provide default values, add information like PII and + // also provide data types of each parameter. IntegrationParameters []*GoogleCloudIntegrationsV1alphaIntegrationParameter `json:"integrationParameters,omitempty"` - - // IntegrationParametersInternal: Optional. Parameters that are expected - // to be passed to the integration when an event is triggered. This - // consists of all the parameters that are expected in the integration - // execution. This gives the user the ability to provide default values, - // add information like PII and also provide data types of each - // parameter. + // IntegrationParametersInternal: Optional. Parameters that are expected to be + // passed to the integration when an event is triggered. This consists of all + // the parameters that are expected in the integration execution. This gives + // the user the ability to provide default values, add information like PII and + // also provide data types of each parameter. IntegrationParametersInternal *EnterpriseCrmFrontendsEventbusProtoWorkflowParameters `json:"integrationParametersInternal,omitempty"` - - // LastModifierEmail: Optional. The last modifier's email address. - // Generated based on the End User Credentials/LOAS role of the user - // making the call. + // LastModifierEmail: Optional. The last modifier's email address. Generated + // based on the End User Credentials/LOAS role of the user making the call. LastModifierEmail string `json:"lastModifierEmail,omitempty"` - - // LockHolder: Optional. The edit lock holder's email address. Generated - // based on the End User Credentials/LOAS role of the user making the - // call. + // LockHolder: Optional. The edit lock holder's email address. Generated based + // on the End User Credentials/LOAS role of the user making the call. LockHolder string `json:"lockHolder,omitempty"` - // Name: Output only. Auto-generated primary key. Name string `json:"name,omitempty"` - - // Origin: Optional. The origin that indicates where this integration is - // coming from. + // Origin: Optional. The origin that indicates where this integration is coming + // from. // // Possible values: // "UNSPECIFIED" // "UI" - Workflow is being created via event bus UI. - // "PIPER_V2" - User checked in this workflow in Piper as v2 textproto - // format and we synced it into spanner. - // "PIPER_V3" - User checked in this workflow in piper as v3 textproto - // format and we synced it into spanner. - // "APPLICATION_IP_PROVISIONING" - Workflow is being created via - // Standalone IP Provisioning + // "PIPER_V2" - User checked in this workflow in Piper as v2 textproto format + // and we synced it into spanner. + // "PIPER_V3" - User checked in this workflow in piper as v3 textproto format + // and we synced it into spanner. + // "APPLICATION_IP_PROVISIONING" - Workflow is being created via Standalone + // IP Provisioning Origin string `json:"origin,omitempty"` - - // ParentTemplateId: Optional. The id of the template which was used to - // create this integration_version. + // ParentTemplateId: Optional. The id of the template which was used to create + // this integration_version. ParentTemplateId string `json:"parentTemplateId,omitempty"` - - // RunAsServiceAccount: Optional. The run-as service account email, if - // set and auth config is not configured, that will be used to generate - // auth token to be used in Connector task, Rest caller task and Cloud - // function task. + // RunAsServiceAccount: Optional. The run-as service account email, if set and + // auth config is not configured, that will be used to generate auth token to + // be used in Connector task, Rest caller task and Cloud function task. RunAsServiceAccount string `json:"runAsServiceAccount,omitempty"` - - // SnapshotNumber: Optional. An increasing sequence that is set when a - // new snapshot is created. The last created snapshot can be identified - // by [workflow_name, org_id latest(snapshot_number)]. However, last - // created snapshot need not be same as the HEAD. So users should always - // use "HEAD" tag to identify the head. + // SnapshotNumber: Optional. An increasing sequence that is set when a new + // snapshot is created. The last created snapshot can be identified by + // [workflow_name, org_id latest(snapshot_number)]. However, last created + // snapshot need not be same as the HEAD. So users should always use "HEAD" tag + // to identify the head. SnapshotNumber int64 `json:"snapshotNumber,omitempty,string"` - // State: Output only. User should not set it as an input. // // Possible values: @@ -9039,9 +7250,8 @@ type GoogleCloudIntegrationsV1alphaIntegrationVersion struct { // "ARCHIVED" - Archived. // "SNAPSHOT" - Snapshot. State string `json:"state,omitempty"` - - // Status: Output only. Generated by eventbus. User should not set it as - // an input. + // Status: Output only. Generated by eventbus. User should not set it as an + // input. // // Possible values: // "UNKNOWN" @@ -9050,475 +7260,357 @@ type GoogleCloudIntegrationsV1alphaIntegrationVersion struct { // "ARCHIVED" // "SNAPSHOT" Status string `json:"status,omitempty"` - // TaskConfigs: Optional. Task configuration for the integration. It's - // optional, but the integration doesn't do anything without - // task_configs. + // optional, but the integration doesn't do anything without task_configs. TaskConfigs []*GoogleCloudIntegrationsV1alphaTaskConfig `json:"taskConfigs,omitempty"` - - // TaskConfigsInternal: Optional. Task configuration for the - // integration. It's optional, but the integration doesn't do anything - // without task_configs. + // TaskConfigsInternal: Optional. Task configuration for the integration. It's + // optional, but the integration doesn't do anything without task_configs. TaskConfigsInternal []*EnterpriseCrmFrontendsEventbusProtoTaskConfig `json:"taskConfigsInternal,omitempty"` - - // Teardown: Optional. Contains a graph of tasks that will be executed - // before putting the event in a terminal state - // (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar - // to "finally" in code. + // Teardown: Optional. Contains a graph of tasks that will be executed before + // putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless + // of success or failure, similar to "finally" in code. Teardown *EnterpriseCrmEventbusProtoTeardown `json:"teardown,omitempty"` - // TriggerConfigs: Optional. Trigger configurations. TriggerConfigs []*GoogleCloudIntegrationsV1alphaTriggerConfig `json:"triggerConfigs,omitempty"` - // TriggerConfigsInternal: Optional. Trigger configurations. TriggerConfigsInternal []*EnterpriseCrmFrontendsEventbusProtoTriggerConfig `json:"triggerConfigsInternal,omitempty"` - // UpdateTime: Output only. Auto-generated. UpdateTime string `json:"updateTime,omitempty"` - - // UserLabel: Optional. A user-defined label that annotates an - // integration version. Typically, this is only set when the integration - // version is created. + // UserLabel: Optional. A user-defined label that annotates an integration + // version. Typically, this is only set when the integration version is + // created. UserLabel string `json:"userLabel,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaIntegrationVersion) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaIntegrationVersion) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaIntegrationVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaJwt: Represents JSON web token(JWT), -// which is a compact, URL-safe means of representing claims to be -// transferred between two parties, enabling the claims to be digitally -// signed or integrity protected. +// GoogleCloudIntegrationsV1alphaJwt: Represents JSON web token(JWT), which is +// a compact, URL-safe means of representing claims to be transferred between +// two parties, enabling the claims to be digitally signed or integrity +// protected. type GoogleCloudIntegrationsV1alphaJwt struct { // Jwt: The token calculated by the header, payload and signature. Jwt string `json:"jwt,omitempty"` - - // JwtHeader: Identifies which algorithm is used to generate the - // signature. + // JwtHeader: Identifies which algorithm is used to generate the signature. JwtHeader string `json:"jwtHeader,omitempty"` - - // JwtPayload: Contains a set of claims. The JWT specification defines - // seven Registered Claim Names which are the standard fields commonly - // included in tokens. Custom claims are usually also included, - // depending on the purpose of the token. + // JwtPayload: Contains a set of claims. The JWT specification defines seven + // Registered Claim Names which are the standard fields commonly included in + // tokens. Custom claims are usually also included, depending on the purpose of + // the token. JwtPayload string `json:"jwtPayload,omitempty"` - // Secret: User's pre-shared secret to sign the token. Secret string `json:"secret,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Jwt") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Jwt") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Jwt") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Jwt") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaJwt) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaJwt) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaJwt - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaLiftSuspensionRequest: Request for lift // Suspension type GoogleCloudIntegrationsV1alphaLiftSuspensionRequest struct { - // SuspensionResult: User passed in suspension result and will be used - // to control workflow execution branching behavior by setting up - // corresponnding edge condition with suspension result. For example, if - // you want to lift the suspension, you can pass "Approved", or if you - // want to reject the suspension and terminate workfloe execution, you - // can pass "Rejected" and terminate the workflow execution with - // configuring the edge condition. + // SuspensionResult: User passed in suspension result and will be used to + // control workflow execution branching behavior by setting up corresponnding + // edge condition with suspension result. For example, if you want to lift the + // suspension, you can pass "Approved", or if you want to reject the suspension + // and terminate workfloe execution, you can pass "Rejected" and terminate the + // workflow execution with configuring the edge condition. SuspensionResult string `json:"suspensionResult,omitempty"` - // ForceSendFields is a list of field names (e.g. "SuspensionResult") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SuspensionResult") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "SuspensionResult") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaLiftSuspensionRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaLiftSuspensionResponse: Response of -// lift Suspense +// GoogleCloudIntegrationsV1alphaLiftSuspensionResponse: Response of lift +// Suspense type GoogleCloudIntegrationsV1alphaLiftSuspensionResponse struct { // EventExecutionInfoId: Execution Id that will be returned EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "EventExecutionInfoId") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "EventExecutionInfoId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventExecutionInfoId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EventExecutionInfoId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaLiftSuspensionResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaLiftSuspensionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest: Request -// for LinkAppsScriptProject rpc call. +// GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest: Request for +// LinkAppsScriptProject rpc call. type GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest struct { // ScriptId: The id of the Apps Script project to be linked. ScriptId string `json:"scriptId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ScriptId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ScriptId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ScriptId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse: Response -// for LinkAppsScriptProject rpc call. +// GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse: Response for +// LinkAppsScriptProject rpc call. type GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse struct { // ScriptId: The id of the linked Apps Script project. ScriptId string `json:"scriptId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ScriptId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ScriptId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ScriptId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListAuthConfigsResponse: Response to -// list AuthConfigs. +// GoogleCloudIntegrationsV1alphaListAuthConfigsResponse: Response to list +// AuthConfigs. type GoogleCloudIntegrationsV1alphaListAuthConfigsResponse struct { // AuthConfigs: The list of AuthConfigs retrieved. AuthConfigs []*GoogleCloudIntegrationsV1alphaAuthConfig `json:"authConfigs,omitempty"` - // NextPageToken: The token used to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuthConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListAuthConfigsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListCertificatesResponse: Response to -// list Certificates. +// GoogleCloudIntegrationsV1alphaListCertificatesResponse: Response to list +// Certificates. type GoogleCloudIntegrationsV1alphaListCertificatesResponse struct { // Certificates: The list of Certificates retrieved. Certificates []*GoogleCloudIntegrationsV1alphaCertificate `json:"certificates,omitempty"` - // NextPageToken: The token used to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Certificates") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Certificates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Certificates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListCertificatesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListCertificatesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListCertificatesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListConnectionsResponse: Response -// containing Connections listed by region. +// GoogleCloudIntegrationsV1alphaListConnectionsResponse: Response containing +// Connections listed by region. type GoogleCloudIntegrationsV1alphaListConnectionsResponse struct { // Connections: Connections. Connections []*GoogleCloudConnectorsV1Connection `json:"connections,omitempty"` - // NextPageToken: Next page token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Connections") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Connections") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Connections") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListConnectionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListConnectionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListConnectionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListExecutionsResponse: Response for -// listing the integration execution data. +// GoogleCloudIntegrationsV1alphaListExecutionsResponse: Response for listing +// the integration execution data. type GoogleCloudIntegrationsV1alphaListExecutionsResponse struct { - // ExecutionInfos: Required. The detailed information of requested - // executions. + // ExecutionInfos: Required. The detailed information of requested executions. ExecutionInfos []*EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo `json:"executionInfos,omitempty"` - // Executions: The detailed information of requested executions Executions []*GoogleCloudIntegrationsV1alphaExecution `json:"executions,omitempty"` - // NextPageToken: The token used to retrieve the next page results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionInfos") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionInfos") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionInfos") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListExecutionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListExecutionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListExecutionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse: -// -// Response for -// -// IntegrationTemplateVersions.ListIntegrationTemplateVersions. +// Response for IntegrationTemplateVersions.ListIntegrationTemplateVersions. type GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse struct { - // IntegrationTemplateVersions: The IntegrationTemplateVersions which - // match the request. + // IntegrationTemplateVersions: The IntegrationTemplateVersions which match the + // request. IntegrationTemplateVersions []*GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion `json:"integrationTemplateVersions,omitempty"` - - // NextPageToken: A token, which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "IntegrationTemplateVersions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // "IntegrationTemplateVersions") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "IntegrationTemplateVersions") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "IntegrationTemplateVersions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse: -// Response for ListIntegrationVersions. +// GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse: Response for +// ListIntegrationVersions. type GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse struct { // IntegrationVersions: The integrations which match the request. IntegrationVersions []*GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersions,omitempty"` - - // NextPageToken: A token, which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` - - // NoPermission: Whether the user has no permission on the version or - // not. + // NoPermission: Whether the user has no permission on the version or not. NoPermission bool `json:"noPermission,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "IntegrationVersions") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IntegrationVersions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntegrationVersions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IntegrationVersions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaListIntegrationsResponse: Response for @@ -9526,179 +7618,139 @@ func (s *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) MarshalJ type GoogleCloudIntegrationsV1alphaListIntegrationsResponse struct { // Integrations: The integrations which match the request. Integrations []*GoogleCloudIntegrationsV1alphaIntegration `json:"integrations,omitempty"` - // NextPageToken: The next page token for the response. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Integrations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Integrations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Integrations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListIntegrationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListIntegrationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListIntegrationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse: -// Response for listing RuntimeActionSchemas for a specific Connection. +// GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse: Response for +// listing RuntimeActionSchemas for a specific Connection. type GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse struct { // NextPageToken: Next page token. NextPageToken string `json:"nextPageToken,omitempty"` - // RuntimeActionSchemas: Runtime action schemas. RuntimeActionSchemas []*GoogleCloudIntegrationsV1alphaRuntimeActionSchema `json:"runtimeActionSchemas,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse: -// Response for listing RuntimeEntitySchemas for a specific Connection. +// GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse: Response for +// listing RuntimeEntitySchemas for a specific Connection. type GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse struct { // NextPageToken: Next page token. NextPageToken string `json:"nextPageToken,omitempty"` - // RuntimeEntitySchemas: Runtime entity schemas. RuntimeEntitySchemas []*GoogleCloudIntegrationsV1alphaRuntimeEntitySchema `json:"runtimeEntitySchemas,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse: Response to -// list SfdcChannels. +// GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse: Response to list +// SfdcChannels. type GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse struct { // NextPageToken: The token used to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // SfdcChannels: The list of SfdcChannels retrieved. SfdcChannels []*GoogleCloudIntegrationsV1alphaSfdcChannel `json:"sfdcChannels,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse: Response to -// list SfdcInstances. +// GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse: Response to list +// SfdcInstances. type GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse struct { // NextPageToken: The token used to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // SfdcInstances: The list of SfdcInstances retrieved. SfdcInstances []*GoogleCloudIntegrationsV1alphaSfdcInstance `json:"sfdcInstances,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaListSuspensionsResponse: Response for @@ -9706,116 +7758,86 @@ func (s *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) MarshalJSON() type GoogleCloudIntegrationsV1alphaListSuspensionsResponse struct { // NextPageToken: Token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - - // Suspensions: The suspensions for the relevant execution which the - // caller has permissions to view and resolve. + // Suspensions: The suspensions for the relevant execution which the caller has + // permissions to view and resolve. Suspensions []*GoogleCloudIntegrationsV1alphaSuspension `json:"suspensions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaListSuspensionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaListSuspensionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaListSuspensionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaNextTask: The task that is next in line -// to be executed, if the condition specified evaluated to true. +// GoogleCloudIntegrationsV1alphaNextTask: The task that is next in line to be +// executed, if the condition specified evaluated to true. type GoogleCloudIntegrationsV1alphaNextTask struct { - // Condition: Standard filter expression for this task to become an - // eligible next task. + // Condition: Standard filter expression for this task to become an eligible + // next task. Condition string `json:"condition,omitempty"` - - // Description: User-provided description intended to give additional - // business context about the task. + // Description: User-provided description intended to give additional business + // context about the task. Description string `json:"description,omitempty"` - - // DisplayName: User-provided label that is attached to this edge in the - // UI. + // DisplayName: User-provided label that is attached to this edge in the UI. DisplayName string `json:"displayName,omitempty"` - // TaskConfigId: ID of the next task. TaskConfigId string `json:"taskConfigId,omitempty"` - // TaskId: Task number of the next task. TaskId string `json:"taskId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaNextTask) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaNextTask) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaNextTask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode: The OAuth Type -// where the client sends request with the client id and requested -// scopes to auth endpoint. User sees a consent screen and auth code is -// received at specified redirect url afterwards. The auth code is then -// combined with the client id and secret and sent to the token endpoint -// in exchange for the access and refresh token. The refresh token can -// be used to fetch new access tokens. +// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode: The OAuth Type where +// the client sends request with the client id and requested scopes to auth +// endpoint. User sees a consent screen and auth code is received at specified +// redirect url afterwards. The auth code is then combined with the client id +// and secret and sent to the token endpoint in exchange for the access and +// refresh token. The refresh token can be used to fetch new access tokens. type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode struct { // AccessToken: The access token received from the token endpoint. AccessToken *GoogleCloudIntegrationsV1alphaAccessToken `json:"accessToken,omitempty"` - - // ApplyReauthPolicy: Indicates if the user has opted in Google Reauth - // Policy. If opted in, the refresh token will be valid for 20 hours, - // after which time users must re-authenticate in order to obtain a new - // one. + // ApplyReauthPolicy: Indicates if the user has opted in Google Reauth Policy. + // If opted in, the refresh token will be valid for 20 hours, after which time + // users must re-authenticate in order to obtain a new one. ApplyReauthPolicy bool `json:"applyReauthPolicy,omitempty"` - - // AuthCode: The Auth Code that is used to initially retrieve the access - // token. + // AuthCode: The Auth Code that is used to initially retrieve the access token. AuthCode string `json:"authCode,omitempty"` - // AuthEndpoint: The auth url endpoint to send the auth code request to. AuthEndpoint string `json:"authEndpoint,omitempty"` - - // AuthParams: The auth parameters sent along with the auth code - // request. + // AuthParams: The auth parameters sent along with the auth code request. AuthParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"authParams,omitempty"` - // ClientId: The client's id. ClientId string `json:"clientId,omitempty"` - // ClientSecret: The client's secret. ClientSecret string `json:"clientSecret,omitempty"` - // RequestType: Represent how to pass parameters to fetch access token // // Possible values: @@ -9823,57 +7845,44 @@ type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode struct { // "REQUEST_BODY" - To pass all the parameters in post body. // "QUERY_PARAMETERS" - To pass all the parameters as a part of query // parameter. - // "ENCODED_HEADER" - To pass client id and client secret as base 64 - // encoding of client_id:client_password and rest parameters in post - // body. + // "ENCODED_HEADER" - To pass client id and client secret as base 64 encoding + // of client_id:client_password and rest parameters in post body. RequestType string `json:"requestType,omitempty"` - // Scope: A space-delimited list of requested scope permissions. Scope string `json:"scope,omitempty"` - // TokenEndpoint: The token url endpoint to send the token request to. TokenEndpoint string `json:"tokenEndpoint,omitempty"` - // TokenParams: The token parameters sent along with the token request. TokenParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"tokenParams,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials: For client // credentials grant, the client sends a POST request with grant_type as -// 'client_credentials' to the authorization server. The authorization -// server will respond with a JSON object containing the access token. +// 'client_credentials' to the authorization server. The authorization server +// will respond with a JSON object containing the access token. type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials struct { // AccessToken: Access token fetched from the authorization server. AccessToken *GoogleCloudIntegrationsV1alphaAccessToken `json:"accessToken,omitempty"` - // ClientId: The client's ID. ClientId string `json:"clientId,omitempty"` - // ClientSecret: The client's secret. ClientSecret string `json:"clientSecret,omitempty"` - // RequestType: Represent how to pass parameters to fetch access token // // Possible values: @@ -9881,63 +7890,48 @@ type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials struct { // "REQUEST_BODY" - To pass all the parameters in post body. // "QUERY_PARAMETERS" - To pass all the parameters as a part of query // parameter. - // "ENCODED_HEADER" - To pass client id and client secret as base 64 - // encoding of client_id:client_password and rest parameters in post - // body. + // "ENCODED_HEADER" - To pass client id and client secret as base 64 encoding + // of client_id:client_password and rest parameters in post body. RequestType string `json:"requestType,omitempty"` - // Scope: A space-delimited list of requested scope permissions. Scope string `json:"scope,omitempty"` - - // TokenEndpoint: The token endpoint is used by the client to obtain an - // access token by presenting its authorization grant or refresh token. + // TokenEndpoint: The token endpoint is used by the client to obtain an access + // token by presenting its authorization grant or refresh token. TokenEndpoint string `json:"tokenEndpoint,omitempty"` - // TokenParams: Token parameters for the auth request. TokenParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"tokenParams,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials: For -// resource owner credentials grant, the client will ask the user for -// their authorization credentials (ususally a username and password) -// and send a POST request to the authorization server. The -// authorization server will respond with a JSON object containing the -// access token. +// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials: For resource +// owner credentials grant, the client will ask the user for their +// authorization credentials (ususally a username and password) and send a POST +// request to the authorization server. The authorization server will respond +// with a JSON object containing the access token. type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials struct { // AccessToken: Access token fetched from the authorization server. AccessToken *GoogleCloudIntegrationsV1alphaAccessToken `json:"accessToken,omitempty"` - // ClientId: The client's ID. ClientId string `json:"clientId,omitempty"` - // ClientSecret: The client's secret. ClientSecret string `json:"clientSecret,omitempty"` - // Password: The user's password. Password string `json:"password,omitempty"` - // RequestType: Represent how to pass parameters to fetch access token // // Possible values: @@ -9945,97 +7939,73 @@ type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials struct { // "REQUEST_BODY" - To pass all the parameters in post body. // "QUERY_PARAMETERS" - To pass all the parameters as a part of query // parameter. - // "ENCODED_HEADER" - To pass client id and client secret as base 64 - // encoding of client_id:client_password and rest parameters in post - // body. + // "ENCODED_HEADER" - To pass client id and client secret as base 64 encoding + // of client_id:client_password and rest parameters in post body. RequestType string `json:"requestType,omitempty"` - // Scope: A space-delimited list of requested scope permissions. Scope string `json:"scope,omitempty"` - - // TokenEndpoint: The token endpoint is used by the client to obtain an - // access token by presenting its authorization grant or refresh token. + // TokenEndpoint: The token endpoint is used by the client to obtain an access + // token by presenting its authorization grant or refresh token. TokenEndpoint string `json:"tokenEndpoint,omitempty"` - // TokenParams: Token parameters for the auth request. TokenParams *GoogleCloudIntegrationsV1alphaParameterMap `json:"tokenParams,omitempty"` - // Username: The user's username. Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaOidcToken: OIDC Token type GoogleCloudIntegrationsV1alphaOidcToken struct { - // Audience: Audience to be used when generating OIDC token. The - // audience claim identifies the recipients that the JWT is intended - // for. + // Audience: Audience to be used when generating OIDC token. The audience claim + // identifies the recipients that the JWT is intended for. Audience string `json:"audience,omitempty"` - - // ServiceAccountEmail: The service account email to be used as the - // identity for the token. + // ServiceAccountEmail: The service account email to be used as the identity + // for the token. ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` - // Token: ID token obtained for the service account Token string `json:"token,omitempty"` - - // TokenExpireTime: The approximate time until the token retrieved is - // valid. + // TokenExpireTime: The approximate time until the token retrieved is valid. TokenExpireTime string `json:"tokenExpireTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Audience") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audience") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audience") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaOidcToken) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaOidcToken) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaOidcToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaParameterMap: A generic multi-map that -// holds key value pairs. They keys and values can be of any type, -// unless specified. +// GoogleCloudIntegrationsV1alphaParameterMap: A generic multi-map that holds +// key value pairs. They keys and values can be of any type, unless specified. type GoogleCloudIntegrationsV1alphaParameterMap struct { // Entries: A list of parameter map entries. Entries []*GoogleCloudIntegrationsV1alphaParameterMapEntry `json:"entries,omitempty"` - - // KeyType: Option to specify key type for all entries of the map. If - // provided then field types for all entries must conform to this. + // KeyType: Option to specify key type for all entries of the map. If provided + // then field types for all entries must conform to this. // // Possible values: // "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED" - Unspecified. @@ -10051,9 +8021,8 @@ type GoogleCloudIntegrationsV1alphaParameterMap struct { // "PROTO_VALUE" - Proto Value (Internal use only). // "PROTO_ARRAY" - Proto Array (Internal use only). KeyType string `json:"keyType,omitempty"` - - // ValueType: Option to specify value type for all entries of the map. - // If provided then field types for all entries must conform to this. + // ValueType: Option to specify value type for all entries of the map. If + // provided then field types for all entries must conform to this. // // Possible values: // "INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED" - Unspecified. @@ -10069,465 +8038,357 @@ type GoogleCloudIntegrationsV1alphaParameterMap struct { // "PROTO_VALUE" - Proto Value (Internal use only). // "PROTO_ARRAY" - Proto Array (Internal use only). ValueType string `json:"valueType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaParameterMap) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaParameterMap) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaParameterMap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaParameterMapEntry: Entry is a pair of -// key and value. +// GoogleCloudIntegrationsV1alphaParameterMapEntry: Entry is a pair of key and +// value. type GoogleCloudIntegrationsV1alphaParameterMapEntry struct { // Key: Key of the map entry. Key *GoogleCloudIntegrationsV1alphaParameterMapField `json:"key,omitempty"` - // Value: Value of the map entry. Value *GoogleCloudIntegrationsV1alphaParameterMapField `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaParameterMapEntry) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaParameterMapEntry) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaParameterMapEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaParameterMapField: Field represents -// either the key or value in an entry. +// GoogleCloudIntegrationsV1alphaParameterMapField: Field represents either the +// key or value in an entry. type GoogleCloudIntegrationsV1alphaParameterMapField struct { // LiteralValue: Passing a literal value. LiteralValue *GoogleCloudIntegrationsV1alphaValueType `json:"literalValue,omitempty"` - // ReferenceKey: Referencing one of the Integration variables. ReferenceKey string `json:"referenceKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "LiteralValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LiteralValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LiteralValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaParameterMapField) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaParameterMapField) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaParameterMapField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest: -// Request for PublishIntegrationVersion. +// GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest: Request for +// PublishIntegrationVersion. type GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest struct { } -// GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse: -// Response for PublishIntegrationVersion. +// GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse: Response +// for PublishIntegrationVersion. type GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // GoogleCloudIntegrationsV1alphaResolveSuspensionRequest: Request for // [Suspensions.ResolveSuspensions]. type GoogleCloudIntegrationsV1alphaResolveSuspensionRequest struct { - // Suspension: Suspension, containing the event_execution_info_id, - // task_id, and state to set on the corresponding suspension record. + // Suspension: Suspension, containing the event_execution_info_id, task_id, and + // state to set on the corresponding suspension record. Suspension *GoogleCloudIntegrationsV1alphaSuspension `json:"suspension,omitempty"` - // ForceSendFields is a list of field names (e.g. "Suspension") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Suspension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Suspension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaResolveSuspensionRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaResolveSuspensionResponse: Response for // Suspensions.ResolveSuspensions. type GoogleCloudIntegrationsV1alphaResolveSuspensionResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// GoogleCloudIntegrationsV1alphaRuntimeActionSchema: Metadata of an -// action, including schemas for its inputs and outputs. +// GoogleCloudIntegrationsV1alphaRuntimeActionSchema: Metadata of an action, +// including schemas for its inputs and outputs. type GoogleCloudIntegrationsV1alphaRuntimeActionSchema struct { // Action: Name of the action. Action string `json:"action,omitempty"` - // InputSchema: Input parameter schema for the action. InputSchema string `json:"inputSchema,omitempty"` - // OutputSchema: Output parameter schema for the action. OutputSchema string `json:"outputSchema,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaRuntimeActionSchema) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaRuntimeActionSchema) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaRuntimeActionSchema - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaRuntimeEntitySchema: Metadata of an -// entity, including a schema for its properties. +// GoogleCloudIntegrationsV1alphaRuntimeEntitySchema: Metadata of an entity, +// including a schema for its properties. type GoogleCloudIntegrationsV1alphaRuntimeEntitySchema struct { - // ArrayFieldSchema: The above schema, but for an array of the - // associated entity. + // ArrayFieldSchema: The above schema, but for an array of the associated + // entity. ArrayFieldSchema string `json:"arrayFieldSchema,omitempty"` - // Entity: Name of the entity. Entity string `json:"entity,omitempty"` - // FieldSchema: List of fields in the entity. FieldSchema string `json:"fieldSchema,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArrayFieldSchema") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArrayFieldSchema") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ArrayFieldSchema") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaRuntimeEntitySchema) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaRuntimeEntitySchema) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaRuntimeEntitySchema - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest: The -// request for scheduling an integration. +// GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest: The request for +// scheduling an integration. type GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest struct { - // InputParameters: Optional. Input parameters used by integration - // execution. + // InputParameters: Optional. Input parameters used by integration execution. InputParameters map[string]GoogleCloudIntegrationsV1alphaValueType `json:"inputParameters,omitempty"` - // ParameterEntries: Parameters are a part of Event and can be used to - // communicate between different tasks that are part of the same - // integration execution. + // communicate between different tasks that are part of the same integration + // execution. ParameterEntries []*EnterpriseCrmFrontendsEventbusProtoParameterEntry `json:"parameterEntries,omitempty"` - // Parameters: Passed in as parameters to each integration execution. Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` - - // RequestId: This is used to de-dup incoming request: if the duplicate - // request was detected, the response from the previous execution is - // returned. + // RequestId: This is used to de-dup incoming request: if the duplicate request + // was detected, the response from the previous execution is returned. RequestId string `json:"requestId,omitempty"` - - // ScheduleTime: The time that the integration should be executed. If - // the time is less or equal to the current time, the integration is - // executed immediately. + // ScheduleTime: The time that the integration should be executed. If the time + // is less or equal to the current time, the integration is executed + // immediately. ScheduleTime string `json:"scheduleTime,omitempty"` - - // TriggerId: Required. Matched against all {@link TriggerConfig}s - // across all integrations. i.e. - // TriggerConfig.trigger_id.equals(trigger_id) + // TriggerId: Required. Matched against all {@link TriggerConfig}s across all + // integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id) TriggerId string `json:"triggerId,omitempty"` - // ForceSendFields is a list of field names (e.g. "InputParameters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InputParameters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "InputParameters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse: The -// response for executing an integration. +// GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse: The response for +// executing an integration. type GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse struct { - // ExecutionInfoIds: The execution info id for the executed - // integrations. + // ExecutionInfoIds: The execution info id for the executed integrations. ExecutionInfoIds []string `json:"executionInfoIds,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ExecutionInfoIds") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionInfoIds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionInfoIds") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaServiceAccountCredentials: Represents -// the service account which can be used to generate access token for +// GoogleCloudIntegrationsV1alphaServiceAccountCredentials: Represents the +// service account which can be used to generate access token for // authenticating the service call. type GoogleCloudIntegrationsV1alphaServiceAccountCredentials struct { // Scope: A space-delimited list of requested scope permissions. Scope string `json:"scope,omitempty"` - - // ServiceAccount: Name of the service account that has the permission - // to make the request. + // ServiceAccount: Name of the service account that has the permission to make + // the request. ServiceAccount string `json:"serviceAccount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Scope") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Scope") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Scope") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaServiceAccountCredentials) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaServiceAccountCredentials) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaServiceAccountCredentials - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaSfdcChannel: The SfdcChannel that -// points to a CDC or Platform Event Channel. +// GoogleCloudIntegrationsV1alphaSfdcChannel: The SfdcChannel that points to a +// CDC or Platform Event Channel. type GoogleCloudIntegrationsV1alphaSfdcChannel struct { - // ChannelTopic: The Channel topic defined by salesforce once an channel - // is opened + // ChannelTopic: The Channel topic defined by salesforce once an channel is + // opened ChannelTopic string `json:"channelTopic,omitempty"` - // CreateTime: Output only. Time when the channel is created CreateTime string `json:"createTime,omitempty"` - - // DeleteTime: Output only. Time when the channel was deleted. Empty if - // not deleted. + // DeleteTime: Output only. Time when the channel was deleted. Empty if not + // deleted. DeleteTime string `json:"deleteTime,omitempty"` - // Description: The description for this channel Description string `json:"description,omitempty"` - - // DisplayName: Client level unique name/alias to easily reference a - // channel. + // DisplayName: Client level unique name/alias to easily reference a channel. DisplayName string `json:"displayName,omitempty"` - - // IsActive: Indicated if a channel has any active integrations - // referencing it. Set to false when the channel is created, and set to - // true if there is any integration published with the channel - // configured in it. + // IsActive: Indicated if a channel has any active integrations referencing it. + // Set to false when the channel is created, and set to true if there is any + // integration published with the channel configured in it. IsActive bool `json:"isActive,omitempty"` - // LastReplayId: Last sfdc messsage replay id for channel LastReplayId string `json:"lastReplayId,omitempty"` - // Name: Resource name of the SFDC channel - // projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/ - // sfdcChannels/{sfdc_channel}. + // projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcCha + // nnels/{sfdc_channel}. Name string `json:"name,omitempty"` - // UpdateTime: Output only. Time when the channel was last updated UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ChannelTopic") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelTopic") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelTopic") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSfdcChannel) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSfdcChannel) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSfdcChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaSfdcInstance: The SfdcInstance resource -// use to hold channels and connection config data. +// GoogleCloudIntegrationsV1alphaSfdcInstance: The SfdcInstance resource use to +// hold channels and connection config data. type GoogleCloudIntegrationsV1alphaSfdcInstance struct { - // AuthConfigId: A list of AuthConfigs that can be tried to open the - // channel to SFDC + // AuthConfigId: A list of AuthConfigs that can be tried to open the channel to + // SFDC AuthConfigId []string `json:"authConfigId,omitempty"` - // CreateTime: Output only. Time when the instance is created CreateTime string `json:"createTime,omitempty"` - - // DeleteTime: Output only. Time when the instance was deleted. Empty if - // not deleted. + // DeleteTime: Output only. Time when the instance was deleted. Empty if not + // deleted. DeleteTime string `json:"deleteTime,omitempty"` - // Description: A description of the sfdc instance. Description string `json:"description,omitempty"` - // DisplayName: User selected unique name/alias to easily reference an // instance. DisplayName string `json:"displayName,omitempty"` - // Name: Resource name of the SFDC instance // projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}. Name string `json:"name,omitempty"` - - // ServiceAuthority: URL used for API calls after authentication (the - // login authority is configured within the referenced AuthConfig). + // ServiceAuthority: URL used for API calls after authentication (the login + // authority is configured within the referenced AuthConfig). ServiceAuthority string `json:"serviceAuthority,omitempty"` - // SfdcOrgId: The SFDC Org Id. This is defined in salesforce. SfdcOrgId string `json:"sfdcOrgId,omitempty"` - // UpdateTime: Output only. Time when the instance was last updated UpdateTime string `json:"updateTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuthConfigId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthConfigId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthConfigId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSfdcInstance) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSfdcInstance) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSfdcInstance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaStringParameterArray: This message only @@ -10535,96 +8396,77 @@ func (s *GoogleCloudIntegrationsV1alphaSfdcInstance) MarshalJSON() ([]byte, erro type GoogleCloudIntegrationsV1alphaStringParameterArray struct { // StringValues: String array. StringValues []string `json:"stringValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "StringValues") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StringValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StringValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaStringParameterArray) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaStringParameterArray) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaStringParameterArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaSuccessPolicy: Policy that dictates the // behavior for the task after it completes successfully. type GoogleCloudIntegrationsV1alphaSuccessPolicy struct { - // FinalState: State to which the execution snapshot status will be set - // if the task succeeds. + // FinalState: State to which the execution snapshot status will be set if the + // task succeeds. // // Possible values: // "FINAL_STATE_UNSPECIFIED" - UNSPECIFIED. - // "SUCCEEDED" - The default behavior, where successful tasks will be - // marked as SUCCEEDED. + // "SUCCEEDED" - The default behavior, where successful tasks will be marked + // as SUCCEEDED. // "SUSPENDED" - Sets the state to SUSPENDED after executing. This is - // required for SuspensionTask; event execution will continue once the - // user calls ResolveSuspensions with the event_execution_info_id and - // the task number. + // required for SuspensionTask; event execution will continue once the user + // calls ResolveSuspensions with the event_execution_info_id and the task + // number. FinalState string `json:"finalState,omitempty"` - // ForceSendFields is a list of field names (e.g. "FinalState") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FinalState") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FinalState") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSuccessPolicy) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSuccessPolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSuccessPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaSuspension: A record representing a // suspension. type GoogleCloudIntegrationsV1alphaSuspension struct { - // ApprovalConfig: Controls the notifications and approval permissions - // for this suspension. + // ApprovalConfig: Controls the notifications and approval permissions for this + // suspension. ApprovalConfig *GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig `json:"approvalConfig,omitempty"` - // Audit: Metadata pertaining to the resolution of this suspension. Audit *GoogleCloudIntegrationsV1alphaSuspensionAudit `json:"audit,omitempty"` - // CreateTime: Output only. Auto-generated. CreateTime string `json:"createTime,omitempty"` - // EventExecutionInfoId: Required. ID of the associated execution. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` - // Integration: Required. The name of the originating integration. Integration string `json:"integration,omitempty"` - // LastModifyTime: Output only. Auto-generated. LastModifyTime string `json:"lastModifyTime,omitempty"` - // Name: Resource name for suspensions suspension/{suspension_id} Name string `json:"name,omitempty"` - - // State: Required. State of this suspension, indicating what action a - // resolver has taken. + // State: Required. State of this suspension, indicating what action a resolver + // has taken. // // Possible values: // "RESOLUTION_STATE_UNSPECIFIED" - Unset state. @@ -10632,143 +8474,111 @@ type GoogleCloudIntegrationsV1alphaSuspension struct { // "REJECTED" - The resolver has rejected the suspension. // "LIFTED" - The resolver has lifted the suspension. State string `json:"state,omitempty"` - - // SuspensionConfig: Controls the notifications and resolver permissions - // for this suspension. + // SuspensionConfig: Controls the notifications and resolver permissions for + // this suspension. SuspensionConfig *EnterpriseCrmEventbusProtoSuspensionConfig `json:"suspensionConfig,omitempty"` - // TaskId: Required. Task id of the associated SuspensionTask. TaskId string `json:"taskId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApprovalConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovalConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApprovalConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSuspension) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSuspension) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSuspension - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig: -// Configurations for approving the Suspension. +// GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig: Configurations for +// approving the Suspension. type GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig struct { // CustomMessage: Information to provide for recipients. CustomMessage string `json:"customMessage,omitempty"` - // EmailAddresses: Email addresses to send approval request to. EmailAddresses []string `json:"emailAddresses,omitempty"` - - // Expiration: Indicates the next steps when no external actions happen - // on the suspension. + // Expiration: Indicates the next steps when no external actions happen on the + // suspension. Expiration *GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration `json:"expiration,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomMessage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomMessage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomMessage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration: -// Expiration configs for the approval request. +// GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration: Expiration +// configs for the approval request. type GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration struct { - // ExpireTime: Output only. Time after which the suspension expires, if - // no action taken. + // ExpireTime: Output only. Time after which the suspension expires, if no + // action taken. ExpireTime string `json:"expireTime,omitempty"` - - // LiftWhenExpired: Whether the suspension will be REJECTED or LIFTED - // upon expiration. REJECTED is the default behavior. + // LiftWhenExpired: Whether the suspension will be REJECTED or LIFTED upon + // expiration. REJECTED is the default behavior. LiftWhenExpired bool `json:"liftWhenExpired,omitempty"` - - // RemindTime: Time after the previous suspension action reminder, if - // any, is sent using the selected notification option, for a suspension - // which is still PENDING_UNSPECIFIED. + // RemindTime: Time after the previous suspension action reminder, if any, is + // sent using the selected notification option, for a suspension which is still + // PENDING_UNSPECIFIED. RemindTime string `json:"remindTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpireTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpireTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExpireTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaSuspensionAudit: Contains when and by -// whom the suspension was resolved. +// GoogleCloudIntegrationsV1alphaSuspensionAudit: Contains when and by whom the +// suspension was resolved. type GoogleCloudIntegrationsV1alphaSuspensionAudit struct { // ResolveTime: Time at which this suspension was resolved. ResolveTime string `json:"resolveTime,omitempty"` - // Resolver: Email address of the person who resolved this suspension. Resolver string `json:"resolver,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResolveTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResolveTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResolveTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaSuspensionAudit) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaSuspensionAudit) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaSuspensionAudit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest: Request for @@ -10779,299 +8589,238 @@ type GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest struct { // GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse: Response for // TakeoverEditLock. type GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse struct { - // IntegrationVersion: Version after the lock is acquired by the new - // user. + // IntegrationVersion: Version after the lock is acquired by the new user. IntegrationVersion *GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersion,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "IntegrationVersion") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IntegrationVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntegrationVersion") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IntegrationVersion") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaTaskConfig: The task configuration -// details. This is not the implementation of Task. There might be -// multiple TaskConfigs for the same Task. +// GoogleCloudIntegrationsV1alphaTaskConfig: The task configuration details. +// This is not the implementation of Task. There might be multiple TaskConfigs +// for the same Task. type GoogleCloudIntegrationsV1alphaTaskConfig struct { - // Description: Optional. User-provided description intended to give - // additional business context about the task. + // Description: Optional. User-provided description intended to give additional + // business context about the task. Description string `json:"description,omitempty"` - // DisplayName: Optional. User-provided label that is attached to this // TaskConfig in the UI. DisplayName string `json:"displayName,omitempty"` - - // ErrorCatcherId: Optional. Optional Error catcher id of the error - // catch flow which will be executed when execution error happens in the - // task + // ErrorCatcherId: Optional. Optional Error catcher id of the error catch flow + // which will be executed when execution error happens in the task ErrorCatcherId string `json:"errorCatcherId,omitempty"` - // ExternalTaskType: Optional. External task type of the task // // Possible values: - // "EXTERNAL_TASK_TYPE_UNSPECIFIED" - Default value. External task - // type is not specified + // "EXTERNAL_TASK_TYPE_UNSPECIFIED" - Default value. External task type is + // not specified // "NORMAL_TASK" - Tasks belongs to the normal task flows // "ERROR_TASK" - Task belongs to the error catch task flows ExternalTaskType string `json:"externalTaskType,omitempty"` - - // FailurePolicy: Optional. Determines the number of times the task will - // be retried on failure and with what retry strategy. This is - // applicable for asynchronous calls to Eventbus alone (Post To Queue, - // Schedule etc.). + // FailurePolicy: Optional. Determines the number of times the task will be + // retried on failure and with what retry strategy. This is applicable for + // asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). FailurePolicy *GoogleCloudIntegrationsV1alphaFailurePolicy `json:"failurePolicy,omitempty"` - - // JsonValidationOption: Optional. If set, overrides the option - // configured in the Task implementation class. + // JsonValidationOption: Optional. If set, overrides the option configured in + // the Task implementation class. // // Possible values: - // "JSON_VALIDATION_OPTION_UNSPECIFIED" - As per the default behavior, - // no validation will be run. Will not override any option set in a - // Task. + // "JSON_VALIDATION_OPTION_UNSPECIFIED" - As per the default behavior, no + // validation will be run. Will not override any option set in a Task. // "SKIP" - Do not run any validation against JSON schemas. - // "PRE_EXECUTION" - Validate all potential input JSON parameters - // against schemas specified in IntegrationParameter. - // "POST_EXECUTION" - Validate all potential output JSON parameters - // against schemas specified in IntegrationParameter. - // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and - // POST_EXECUTION validations. + // "PRE_EXECUTION" - Validate all potential input JSON parameters against + // schemas specified in IntegrationParameter. + // "POST_EXECUTION" - Validate all potential output JSON parameters against + // schemas specified in IntegrationParameter. + // "PRE_POST_EXECUTION" - Perform both PRE_EXECUTION and POST_EXECUTION + // validations. JsonValidationOption string `json:"jsonValidationOption,omitempty"` - - // NextTasks: Optional. The set of tasks that are next in line to be - // executed as per the execution graph defined for the parent event, - // specified by `event_config_id`. Each of these next tasks are executed - // only if the condition associated with them evaluates to true. + // NextTasks: Optional. The set of tasks that are next in line to be executed + // as per the execution graph defined for the parent event, specified by + // `event_config_id`. Each of these next tasks are executed only if the + // condition associated with them evaluates to true. NextTasks []*GoogleCloudIntegrationsV1alphaNextTask `json:"nextTasks,omitempty"` - - // NextTasksExecutionPolicy: Optional. The policy dictating the - // execution of the next set of tasks for the current task. + // NextTasksExecutionPolicy: Optional. The policy dictating the execution of + // the next set of tasks for the current task. // // Possible values: // "NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED" - Default. - // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their - // associated condition. - // "RUN_FIRST_MATCH" - Execute the first task that satisfies the - // associated condition. + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their associated + // condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the associated + // condition. NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` - - // Parameters: Optional. The customized parameters the user can pass to - // this task. + // Parameters: Optional. The customized parameters the user can pass to this + // task. Parameters map[string]GoogleCloudIntegrationsV1alphaEventParameter `json:"parameters,omitempty"` - - // Position: Optional. Informs the front-end application where to draw - // this error catcher config on the UI. + // Position: Optional. Informs the front-end application where to draw this + // error catcher config on the UI. Position *GoogleCloudIntegrationsV1alphaCoordinate `json:"position,omitempty"` - - // SuccessPolicy: Optional. Determines what action to take upon - // successful task completion. + // SuccessPolicy: Optional. Determines what action to take upon successful task + // completion. SuccessPolicy *GoogleCloudIntegrationsV1alphaSuccessPolicy `json:"successPolicy,omitempty"` - - // SynchronousCallFailurePolicy: Optional. Determines the number of - // times the task will be retried on failure and with what retry - // strategy. This is applicable for synchronous calls to Eventbus alone - // (Post). + // SynchronousCallFailurePolicy: Optional. Determines the number of times the + // task will be retried on failure and with what retry strategy. This is + // applicable for synchronous calls to Eventbus alone (Post). SynchronousCallFailurePolicy *GoogleCloudIntegrationsV1alphaFailurePolicy `json:"synchronousCallFailurePolicy,omitempty"` - // Task: Optional. The name for the task. Task string `json:"task,omitempty"` - - // TaskExecutionStrategy: Optional. The policy dictating the execution - // strategy of this task. + // TaskExecutionStrategy: Optional. The policy dictating the execution strategy + // of this task. // // Possible values: - // "TASK_EXECUTION_STRATEGY_UNSPECIFIED" - Default. If the strategy is - // not set explicitly, it will default to `WHEN_ALL_SUCCEED`. + // "TASK_EXECUTION_STRATEGY_UNSPECIFIED" - Default. If the strategy is not + // set explicitly, it will default to `WHEN_ALL_SUCCEED`. // "WHEN_ALL_SUCCEED" - Wait until all of its previous tasks finished - // execution, then verify at least one of the edge conditions is met, - // and execute if possible. This should be considered as - // WHEN_ALL_TASKS_SUCCEED. - // "WHEN_ANY_SUCCEED" - Start execution as long as any of its previous - // tasks finished execution and the corresponding edge condition is met - // (since we will execute if only that succeeding edge condition is - // met). - // "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" - Wait until all of its - // previous tasks finished execution, then verify the all edge - // conditions are met and execute if possible. + // execution, then verify at least one of the edge conditions is met, and + // execute if possible. This should be considered as WHEN_ALL_TASKS_SUCCEED. + // "WHEN_ANY_SUCCEED" - Start execution as long as any of its previous tasks + // finished execution and the corresponding edge condition is met (since we + // will execute if only that succeeding edge condition is met). + // "WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED" - Wait until all of its previous + // tasks finished execution, then verify the all edge conditions are met and + // execute if possible. TaskExecutionStrategy string `json:"taskExecutionStrategy,omitempty"` - // TaskId: Required. The identifier of this task within its parent event - // config, specified by the client. This should be unique among all the - // tasks belong to the same event config. We use this field as the - // identifier to find next tasks (via field `next_tasks.task_id`). + // config, specified by the client. This should be unique among all the tasks + // belong to the same event config. We use this field as the identifier to find + // next tasks (via field `next_tasks.task_id`). TaskId string `json:"taskId,omitempty"` - - // TaskTemplate: Optional. Used to define task-template name if task is - // of type task-template + // TaskTemplate: Optional. Used to define task-template name if task is of type + // task-template TaskTemplate string `json:"taskTemplate,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaTaskConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaTaskConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaTaskConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaTaskExecutionDetails: Contains the -// details of the execution of this task. +// GoogleCloudIntegrationsV1alphaTaskExecutionDetails: Contains the details of +// the execution of this task. type GoogleCloudIntegrationsV1alphaTaskExecutionDetails struct { // TaskAttemptStats: Status for the current task execution attempt. TaskAttemptStats []*GoogleCloudIntegrationsV1alphaAttemptStats `json:"taskAttemptStats,omitempty"` - // TaskExecutionState: The execution state of this task. // // Possible values: // "TASK_EXECUTION_STATE_UNSPECIFIED" - Default value. - // "PENDING_EXECUTION" - Task is waiting for its precondition tasks to - // finish to start the execution. + // "PENDING_EXECUTION" - Task is waiting for its precondition tasks to finish + // to start the execution. // "IN_PROCESS" - Task is under processing. - // "SUCCEED" - Task execution successfully finished. There's no more - // change after this state. - // "FAILED" - Task execution failed. There's no more change after this - // state. - // "FATAL" - Task execution failed and cause the whole event execution - // to fail immediately. There's no more change after this state. + // "SUCCEED" - Task execution successfully finished. There's no more change + // after this state. + // "FAILED" - Task execution failed. There's no more change after this state. + // "FATAL" - Task execution failed and cause the whole event execution to + // fail immediately. There's no more change after this state. // "RETRY_ON_HOLD" - Task execution failed and waiting for retry. - // "SKIPPED" - Task execution skipped. This happens when its - // precondition wasn't met, or the event execution been canceled before - // reach to the task. There's no more changes after this state. - // "CANCELLED" - Task execution canceled when in progress. This - // happens when event execution been canceled or any other task fall in - // fatal state. - // "PENDING_ROLLBACK" - Task is waiting for its dependency tasks' - // rollback to finish to start its rollback. + // "SKIPPED" - Task execution skipped. This happens when its precondition + // wasn't met, or the event execution been canceled before reach to the task. + // There's no more changes after this state. + // "CANCELLED" - Task execution canceled when in progress. This happens when + // event execution been canceled or any other task fall in fatal state. + // "PENDING_ROLLBACK" - Task is waiting for its dependency tasks' rollback to + // finish to start its rollback. // "ROLLBACK_IN_PROCESS" - Task is rolling back. // "ROLLEDBACK" - Task is rolled back. This is the state we will set // regardless of rollback succeeding or failing. - // "SUSPENDED" - Task is a SuspensionTask which has executed once, - // creating a pending suspension. + // "SUSPENDED" - Task is a SuspensionTask which has executed once, creating a + // pending suspension. TaskExecutionState string `json:"taskExecutionState,omitempty"` - // TaskNumber: Pointer to the task config it used for execution. TaskNumber string `json:"taskNumber,omitempty"` - // ForceSendFields is a list of field names (e.g. "TaskAttemptStats") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaskAttemptStats") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TaskAttemptStats") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaTaskExecutionDetails) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaTaskExecutionDetails) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaTaskExecutionDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaTriggerConfig: Configuration detail of -// a trigger. +// GoogleCloudIntegrationsV1alphaTriggerConfig: Configuration detail of a +// trigger. type GoogleCloudIntegrationsV1alphaTriggerConfig struct { - // AlertConfig: Optional. An alert threshold configuration for the - // [trigger + client + integration] tuple. If these values are not - // specified in the trigger config, default values will be populated by - // the system. Note that there must be exactly one alert threshold - // configured per [client + trigger + integration] when published. + // AlertConfig: Optional. An alert threshold configuration for the [trigger + + // client + integration] tuple. If these values are not specified in the + // trigger config, default values will be populated by the system. Note that + // there must be exactly one alert threshold configured per [client + trigger + + // integration] when published. AlertConfig []*GoogleCloudIntegrationsV1alphaIntegrationAlertConfig `json:"alertConfig,omitempty"` - - // CloudSchedulerConfig: Optional. Cloud Scheduler Trigger related - // metadata + // CloudSchedulerConfig: Optional. Cloud Scheduler Trigger related metadata CloudSchedulerConfig *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig `json:"cloudSchedulerConfig,omitempty"` - - // Description: Optional. User-provided description intended to give - // additional business context about the task. + // Description: Optional. User-provided description intended to give additional + // business context about the task. Description string `json:"description,omitempty"` - - // ErrorCatcherId: Optional. Optional Error catcher id of the error - // catch flow which will be executed when execution error happens in the - // task + // ErrorCatcherId: Optional. Optional Error catcher id of the error catch flow + // which will be executed when execution error happens in the task ErrorCatcherId string `json:"errorCatcherId,omitempty"` - // Label: Optional. The user created label for a particular trigger. Label string `json:"label,omitempty"` - // NextTasksExecutionPolicy: Optional. Dictates how next tasks will be // executed. // // Possible values: // "NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED" - Default. - // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their - // associated condition. - // "RUN_FIRST_MATCH" - Execute the first task that satisfies the - // associated condition. + // "RUN_ALL_MATCH" - Execute all the tasks that satisfy their associated + // condition. + // "RUN_FIRST_MATCH" - Execute the first task that satisfies the associated + // condition. NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` - - // Position: Optional. Informs the front-end application where to draw - // this error catcher config on the UI. + // Position: Optional. Informs the front-end application where to draw this + // error catcher config on the UI. Position *GoogleCloudIntegrationsV1alphaCoordinate `json:"position,omitempty"` - - // Properties: Optional. Configurable properties of the trigger, not to - // be confused with integration parameters. E.g. "name" is a property - // for API triggers and "subscription" is a property for Pub/sub - // triggers. + // Properties: Optional. Configurable properties of the trigger, not to be + // confused with integration parameters. E.g. "name" is a property for API + // triggers and "subscription" is a property for Pub/sub triggers. Properties map[string]string `json:"properties,omitempty"` - // StartTasks: Optional. Set of tasks numbers from where the integration - // execution is started by this trigger. If this is empty, then - // integration is executed with default start tasks. In the list of - // start tasks, none of two tasks can have direct ancestor-descendant - // relationships (i.e. in a same integration execution graph). + // execution is started by this trigger. If this is empty, then integration is + // executed with default start tasks. In the list of start tasks, none of two + // tasks can have direct ancestor-descendant relationships (i.e. in a same + // integration execution graph). StartTasks []*GoogleCloudIntegrationsV1alphaNextTask `json:"startTasks,omitempty"` - // TriggerId: Optional. The backend trigger ID. TriggerId string `json:"triggerId,omitempty"` - - // TriggerNumber: Required. A number to uniquely identify each trigger - // config within the integration on UI. + // TriggerNumber: Required. A number to uniquely identify each trigger config + // within the integration on UI. TriggerNumber string `json:"triggerNumber,omitempty"` - // TriggerType: Optional. Type of trigger // // Possible values: @@ -11084,41 +8833,34 @@ type GoogleCloudIntegrationsV1alphaTriggerConfig struct { // "CLOUD_SCHEDULER" - Trigger by Cloud Scheduler job. // "INTEGRATION_CONNECTOR_TRIGGER" - Trigger by Connector Event TriggerType string `json:"triggerType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AlertConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AlertConfig") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlertConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaTriggerConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaTriggerConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaTriggerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest: -// Request for UnpublishIntegrationVersion. +// GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest: Request +// for UnpublishIntegrationVersion. type GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest struct { } -// GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest: -// Request for UploadIntegrationVersion. +// GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest: Request for +// UploadIntegrationVersion. type GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest struct { // Content: The textproto of the integration_version. Content string `json:"content,omitempty"` - // FileFormat: File format for upload request. // // Possible values: @@ -11126,146 +8868,111 @@ type GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest struct { // "JSON" - JSON File Format // "YAML" - YAML File Format FileFormat string `json:"fileFormat,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse: -// Response for UploadIntegrationVersion. +// GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse: Response for +// UploadIntegrationVersion. type GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse struct { // IntegrationVersion: The uploaded integration. IntegrationVersion *GoogleCloudIntegrationsV1alphaIntegrationVersion `json:"integrationVersion,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "IntegrationVersion") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IntegrationVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IntegrationVersion") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IntegrationVersion") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudIntegrationsV1alphaUsernameAndPassword: Username and -// password pair. +// GoogleCloudIntegrationsV1alphaUsernameAndPassword: Username and password +// pair. type GoogleCloudIntegrationsV1alphaUsernameAndPassword struct { // Password: Password to be used Password string `json:"password,omitempty"` - // Username: Username to be used Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "Password") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Password") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Password") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaUsernameAndPassword) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaUsernameAndPassword) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaUsernameAndPassword - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudIntegrationsV1alphaValueType: The type of the parameter. type GoogleCloudIntegrationsV1alphaValueType struct { // BooleanArray: Boolean Array. BooleanArray *GoogleCloudIntegrationsV1alphaBooleanParameterArray `json:"booleanArray,omitempty"` - // BooleanValue: Boolean. BooleanValue bool `json:"booleanValue,omitempty"` - // DoubleArray: Double Number Array. DoubleArray *GoogleCloudIntegrationsV1alphaDoubleParameterArray `json:"doubleArray,omitempty"` - // DoubleValue: Double Number. DoubleValue float64 `json:"doubleValue,omitempty"` - // IntArray: Integer Array. IntArray *GoogleCloudIntegrationsV1alphaIntParameterArray `json:"intArray,omitempty"` - // IntValue: Integer. IntValue int64 `json:"intValue,omitempty,string"` - // JsonValue: Json. JsonValue string `json:"jsonValue,omitempty"` - // StringArray: String Array. StringArray *GoogleCloudIntegrationsV1alphaStringParameterArray `json:"stringArray,omitempty"` - // StringValue: String. StringValue string `json:"stringValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "BooleanArray") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanArray") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BooleanArray") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaValueType) MarshalJSON() ([]byte, error) { +func (s GoogleCloudIntegrationsV1alphaValueType) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudIntegrationsV1alphaValueType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleCloudIntegrationsV1alphaValueType) UnmarshalJSON(data []byte) error { @@ -11282,113 +8989,91 @@ func (s *GoogleCloudIntegrationsV1alphaValueType) UnmarshalJSON(data []byte) err return nil } -// GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest: Use -// this request to post all workflows associated with a given trigger -// id. Next available id: 11 +// GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest: Use this +// request to post all workflows associated with a given trigger id. Next +// available id: 11 type GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest struct { - // ClientId: Optional. If the client id is provided, then the - // combination of trigger id and client id is matched across all the - // workflows. If the client id is not provided, then workflows with - // matching trigger id are executed for each client id in the {@link - // TriggerConfig}. For Api Trigger, the client id is required and will - // be validated against the allowed clients. + // ClientId: Optional. If the client id is provided, then the combination of + // trigger id and client id is matched across all the workflows. If the client + // id is not provided, then workflows with matching trigger id are executed for + // each client id in the {@link TriggerConfig}. For Api Trigger, the client id + // is required and will be validated against the allowed clients. ClientId string `json:"clientId,omitempty"` - - // IgnoreErrorIfNoActiveWorkflow: Optional. Flag to determine whether - // clients would suppress a warning when no ACTIVE workflows are not - // found. If this flag is set to be true, an error will not be thrown if - // the requested trigger_id or client_id is not found in any ACTIVE - // workflow. Otherwise, the error is always thrown. The flag is set to - // be false by default. + // IgnoreErrorIfNoActiveWorkflow: Optional. Flag to determine whether clients + // would suppress a warning when no ACTIVE workflows are not found. If this + // flag is set to be true, an error will not be thrown if the requested + // trigger_id or client_id is not found in any ACTIVE workflow. Otherwise, the + // error is always thrown. The flag is set to be false by default. IgnoreErrorIfNoActiveWorkflow bool `json:"ignoreErrorIfNoActiveWorkflow,omitempty"` - - // Parameters: Passed in as parameters to each workflow execution. - // Optional. + // Parameters: Passed in as parameters to each workflow execution. Optional. Parameters *EnterpriseCrmEventbusProtoEventParameters `json:"parameters,omitempty"` - - // Priority: The request priority this request should be processed at. - // For internal users: + // Priority: The request priority this request should be processed at. For + // internal users: // // Possible values: // "UNSPCIFIED" - Unspecified - // "SHEDDABLE" - Frequent partial and occasional full unavailability - // is expected and not pageable. * Requests to this band will be shed - // before all other requests. * This is the default for async calls sent - // from batch jobs. + // "SHEDDABLE" - Frequent partial and occasional full unavailability is + // expected and not pageable. * Requests to this band will be shed before all + // other requests. * This is the default for async calls sent from batch jobs. // "SHEDDABLE_PLUS" - Partial unavailability is expected and is not // necessarily pageable. * Requests to this band will be shed before any - // critical traffic. * This is the default for async calls sent from - // production jobs. - // "CRITICAL" - Any outage is a pageable event. * During a production - // outage requests in this band will only be shed before CRITICAL_PLUS. - // * This is the default for sync calls sent from production jobs. - // "CRITICAL_PLUS" - Any outage is a pageable event. * The guideline - // is for < 10% of requests to a service to be in this band. * During a - // production outage requests in this band will be prioritized above all - // others. * Opt-in to CRITICAL_PLUS when your workflow triggers by - // human. + // critical traffic. * This is the default for async calls sent from production + // jobs. + // "CRITICAL" - Any outage is a pageable event. * During a production outage + // requests in this band will only be shed before CRITICAL_PLUS. * This is the + // default for sync calls sent from production jobs. + // "CRITICAL_PLUS" - Any outage is a pageable event. * The guideline is for < + // 10% of requests to a service to be in this band. * During a production + // outage requests in this band will be prioritized above all others. * Opt-in + // to CRITICAL_PLUS when your workflow triggers by human. Priority string `json:"priority,omitempty"` - // RequestId: Optional. This is used to de-dup incoming request: if the - // duplicate request was detected, the response from the previous - // execution is returned. Must have no more than 36 characters and - // contain only alphanumeric characters and hyphens. + // duplicate request was detected, the response from the previous execution is + // returned. Must have no more than 36 characters and contain only alphanumeric + // characters and hyphens. RequestId string `json:"requestId,omitempty"` - - // ResourceName: This field is only required when using Admin Access. - // The resource name of target, or the parent resource name. For - // example: "projects/*/locations/*/integrations/*" + // ResourceName: This field is only required when using Admin Access. The + // resource name of target, or the parent resource name. For example: + // "projects/*/locations/*/integrations/*" ResourceName string `json:"resourceName,omitempty"` - - // ScheduledTime: Optional. Time in milliseconds since epoch when the - // given event would be scheduled. + // ScheduledTime: Optional. Time in milliseconds since epoch when the given + // event would be scheduled. ScheduledTime int64 `json:"scheduledTime,omitempty,string"` - // TestMode: Optional. Sets test mode in {@link // enterprise/crm/eventbus/event_message.proto}. TestMode bool `json:"testMode,omitempty"` - - // TriggerId: Matched against all {@link TriggerConfig}s across all - // workflows. i.e. TriggerConfig.trigger_id.equals(trigger_id) Required. + // TriggerId: Matched against all {@link TriggerConfig}s across all workflows. + // i.e. TriggerConfig.trigger_id.equals(trigger_id) Required. TriggerId string `json:"triggerId,omitempty"` - - // WorkflowName: Optional. If provided, the workflow_name is used to - // filter all the matched workflows having same trigger_id+client_id. A - // combination of trigger_id, client_id and workflow_name identifies a - // unique workflow. + // WorkflowName: Optional. If provided, the workflow_name is used to filter all + // the matched workflows having same trigger_id+client_id. A combination of + // trigger_id, client_id and workflow_name identifies a unique workflow. WorkflowName string `json:"workflowName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest) MarshalJSON() ([]byte, error) { +func (s GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleProtobufEmpty: A generic empty message that you can re-use to -// avoid defining duplicated empty messages in your APIs. A typical -// example is to use it as the request or the response type of an API -// method. For instance: service Foo { rpc Bar(google.protobuf.Empty) -// returns (google.protobuf.Empty); } +// GoogleProtobufEmpty: A generic empty message that you can re-use to avoid +// defining duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For instance: +// service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } type GoogleProtobufEmpty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } @@ -11396,86 +9081,59 @@ type GoogleProtobufEmpty struct { type IoCloudeventsV1CloudEvent struct { // Attributes: Optional & Extension Attributes Attributes map[string]IoCloudeventsV1CloudEventCloudEventAttributeValue `json:"attributes,omitempty"` - - BinaryData string `json:"binaryData,omitempty"` - + BinaryData string `json:"binaryData,omitempty"` // Id: Required Attributes - Id string `json:"id,omitempty"` - + Id string `json:"id,omitempty"` ProtoData googleapi.RawMessage `json:"protoData,omitempty"` - // Source: URI-reference - Source string `json:"source,omitempty"` - + Source string `json:"source,omitempty"` SpecVersion string `json:"specVersion,omitempty"` - - TextData string `json:"textData,omitempty"` - - Type string `json:"type,omitempty"` - + TextData string `json:"textData,omitempty"` + Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Attributes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attributes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attributes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IoCloudeventsV1CloudEvent) MarshalJSON() ([]byte, error) { +func (s IoCloudeventsV1CloudEvent) MarshalJSON() ([]byte, error) { type NoMethod IoCloudeventsV1CloudEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type IoCloudeventsV1CloudEventCloudEventAttributeValue struct { - CeBoolean bool `json:"ceBoolean,omitempty"` - - CeBytes string `json:"ceBytes,omitempty"` - - CeInteger int64 `json:"ceInteger,omitempty"` - - CeString string `json:"ceString,omitempty"` - + CeBoolean bool `json:"ceBoolean,omitempty"` + CeBytes string `json:"ceBytes,omitempty"` + CeInteger int64 `json:"ceInteger,omitempty"` + CeString string `json:"ceString,omitempty"` CeTimestamp string `json:"ceTimestamp,omitempty"` - - CeUri string `json:"ceUri,omitempty"` - - CeUriRef string `json:"ceUriRef,omitempty"` - + CeUri string `json:"ceUri,omitempty"` + CeUriRef string `json:"ceUriRef,omitempty"` // ForceSendFields is a list of field names (e.g. "CeBoolean") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CeBoolean") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CeBoolean") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IoCloudeventsV1CloudEventCloudEventAttributeValue) MarshalJSON() ([]byte, error) { +func (s IoCloudeventsV1CloudEventCloudEventAttributeValue) MarshalJSON() ([]byte, error) { type NoMethod IoCloudeventsV1CloudEventCloudEventAttributeValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "integrations.callback.generateToken": - type CallbackGenerateTokenCall struct { s *Service urlParams_ gensupport.URLParams @@ -11484,31 +9142,29 @@ type CallbackGenerateTokenCall struct { header_ http.Header } -// GenerateToken: Receives the auth code and auth config id to combine -// that with the client id and secret to retrieve access tokens from the -// token endpoint. Returns either a success or error message when it's -// done. +// GenerateToken: Receives the auth code and auth config id to combine that +// with the client id and secret to retrieve access tokens from the token +// endpoint. Returns either a success or error message when it's done. func (r *CallbackService) GenerateToken() *CallbackGenerateTokenCall { c := &CallbackGenerateTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// Code sets the optional parameter "code": The auth code for the given -// request +// Code sets the optional parameter "code": The auth code for the given request func (c *CallbackGenerateTokenCall) Code(code string) *CallbackGenerateTokenCall { c.urlParams_.Set("code", code) return c } -// GcpProjectId sets the optional parameter "gcpProjectId": The gcp -// project id of the request +// GcpProjectId sets the optional parameter "gcpProjectId": The gcp project id +// of the request func (c *CallbackGenerateTokenCall) GcpProjectId(gcpProjectId string) *CallbackGenerateTokenCall { c.urlParams_.Set("gcpProjectId", gcpProjectId) return c } -// Product sets the optional parameter "product": Which product sends -// the request +// Product sets the optional parameter "product": Which product sends the +// request // // Possible values: // @@ -11521,48 +9177,44 @@ func (c *CallbackGenerateTokenCall) Product(product string) *CallbackGenerateTok return c } -// RedirectUri sets the optional parameter "redirectUri": Redirect uri -// of the auth code request +// RedirectUri sets the optional parameter "redirectUri": Redirect uri of the +// auth code request func (c *CallbackGenerateTokenCall) RedirectUri(redirectUri string) *CallbackGenerateTokenCall { c.urlParams_.Set("redirectUri", redirectUri) return c } -// State sets the optional parameter "state": The auth config id for the -// given request +// State sets the optional parameter "state": The auth config id for the given +// request func (c *CallbackGenerateTokenCall) State(state string) *CallbackGenerateTokenCall { c.urlParams_.Set("state", state) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CallbackGenerateTokenCall) Fields(s ...googleapi.Field) *CallbackGenerateTokenCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CallbackGenerateTokenCall) IfNoneMatch(entityTag string) *CallbackGenerateTokenCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CallbackGenerateTokenCall) Context(ctx context.Context) *CallbackGenerateTokenCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CallbackGenerateTokenCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11571,12 +9223,7 @@ func (c *CallbackGenerateTokenCall) Header() http.Header { } func (c *CallbackGenerateTokenCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11590,18 +9237,15 @@ func (c *CallbackGenerateTokenCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } - -// Do executes the "integrations.callback.generateToken" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaGenerateTokenResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaGenerateTokenResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. + +// Do executes the "integrations.callback.generateToken" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaGenerateTokenResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CallbackGenerateTokenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaGenerateTokenResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11632,63 +9276,7 @@ func (c *CallbackGenerateTokenCall) Do(opts ...googleapi.CallOption) (*GoogleClo return nil, err } return ret, nil - // { - // "description": "Receives the auth code and auth config id to combine that with the client id and secret to retrieve access tokens from the token endpoint. Returns either a success or error message when it's done.", - // "flatPath": "v1alpha/callback:generateToken", - // "httpMethod": "GET", - // "id": "integrations.callback.generateToken", - // "parameterOrder": [], - // "parameters": { - // "code": { - // "description": "The auth code for the given request", - // "location": "query", - // "type": "string" - // }, - // "gcpProjectId": { - // "description": "The gcp project id of the request", - // "location": "query", - // "type": "string" - // }, - // "product": { - // "description": "Which product sends the request", - // "enum": [ - // "UNSPECIFIED_PRODUCT", - // "IP", - // "APIGEE", - // "SECURITY" - // ], - // "enumDescriptions": [ - // "", - // "", - // "", - // "" - // ], - // "location": "query", - // "type": "string" - // }, - // "redirectUri": { - // "description": "Redirect uri of the auth code request", - // "location": "query", - // "type": "string" - // }, - // "state": { - // "description": "The auth config id for the given request", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/callback:generateToken", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaGenerateTokenResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.connectorPlatformRegions.enumerate": +} type ConnectorPlatformRegionsEnumerateCall struct { s *Service @@ -11706,33 +9294,29 @@ func (r *ConnectorPlatformRegionsService) Enumerate() *ConnectorPlatformRegionsE } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ConnectorPlatformRegionsEnumerateCall) Fields(s ...googleapi.Field) *ConnectorPlatformRegionsEnumerateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ConnectorPlatformRegionsEnumerateCall) IfNoneMatch(entityTag string) *ConnectorPlatformRegionsEnumerateCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ConnectorPlatformRegionsEnumerateCall) Context(ctx context.Context) *ConnectorPlatformRegionsEnumerateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ConnectorPlatformRegionsEnumerateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11741,12 +9325,7 @@ func (c *ConnectorPlatformRegionsEnumerateCall) Header() http.Header { } func (c *ConnectorPlatformRegionsEnumerateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -11760,19 +9339,15 @@ func (c *ConnectorPlatformRegionsEnumerateCall) doRequest(alt string) (*http.Res return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.connectorPlatformRegions.enumerate" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsRespon -// se or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsRespon -// se.ServerResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse.Serv +// erResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ConnectorPlatformRegionsEnumerateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11803,25 +9378,7 @@ func (c *ConnectorPlatformRegionsEnumerateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Enumerates the regions for which Connector Platform is provisioned.", - // "flatPath": "v1alpha/connectorPlatformRegions:enumerate", - // "httpMethod": "GET", - // "id": "integrations.connectorPlatformRegions.enumerate", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1alpha/connectorPlatformRegions:enumerate", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.appsScriptProjects.create": +} type ProjectsLocationsAppsScriptProjectsCreateCall struct { s *Service @@ -11843,23 +9400,21 @@ func (r *ProjectsLocationsAppsScriptProjectsService) Create(parent string, googl } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsScriptProjectsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Context(ctx context.Context) *ProjectsLocationsAppsScriptProjectsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11868,18 +9423,12 @@ func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Header() http.Header { } func (c *ProjectsLocationsAppsScriptProjectsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacreateappsscriptprojectrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appsScriptProjects") @@ -11892,19 +9441,15 @@ func (c *ProjectsLocationsAppsScriptProjectsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.appsScriptProjects.create" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse.ServerR -// esponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11935,38 +9480,7 @@ func (c *ProjectsLocationsAppsScriptProjectsCreateCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Creates an Apps Script project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appsScriptProjects", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.appsScriptProjects.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The project that the executed integration belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/appsScriptProjects", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.appsScriptProjects.link": +} type ProjectsLocationsAppsScriptProjectsLinkCall struct { s *Service @@ -11988,23 +9502,21 @@ func (r *ProjectsLocationsAppsScriptProjectsService) Link(parent string, googlec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsScriptProjectsLinkCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Context(ctx context.Context) *ProjectsLocationsAppsScriptProjectsLinkCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12013,18 +9525,12 @@ func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Header() http.Header { } func (c *ProjectsLocationsAppsScriptProjectsLinkCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphalinkappsscriptprojectrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/appsScriptProjects:link") @@ -12037,19 +9543,15 @@ func (c *ProjectsLocationsAppsScriptProjectsLinkCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.appsScriptProjects.link" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse.ServerRes -// ponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse.ServerResponse.H +// eader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12080,38 +9582,7 @@ func (c *ProjectsLocationsAppsScriptProjectsLinkCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Links a existing Apps Script project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/appsScriptProjects:link", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.appsScriptProjects.link", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The project that the executed integration belongs to.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/appsScriptProjects:link", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.authConfigs.create": +} type ProjectsLocationsAuthConfigsCreateCall struct { s *Service @@ -12122,11 +9593,10 @@ type ProjectsLocationsAuthConfigsCreateCall struct { header_ http.Header } -// Create: Creates an auth config record. Fetch corresponding -// credentials for specific auth types, e.g. access token for OAuth 2.0, -// JWT token for JWT. Encrypt the auth config with Cloud KMS and store -// the encrypted credentials in Spanner. Returns the encrypted auth -// config. +// Create: Creates an auth config record. Fetch corresponding credentials for +// specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. +// Encrypt the auth config with Cloud KMS and store the encrypted credentials +// in Spanner. Returns the encrypted auth config. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsAuthConfigsService) Create(parent string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsAuthConfigsCreateCall { @@ -12137,9 +9607,9 @@ func (r *ProjectsLocationsAuthConfigsService) Create(parent string, googlecloudi } // ClientCertificateEncryptedPrivateKey sets the optional parameter -// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded -// in PEM format. This string must include the begin header and end -// footer lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -12159,19 +9629,18 @@ func (c *ProjectsLocationsAuthConfigsCreateCall) ClientCertificateEncryptedPriva } // ClientCertificatePassphrase sets the optional parameter -// "clientCertificate.passphrase": 'passphrase' should be left unset if -// private key is not encrypted. Note that 'passphrase' is not the -// password for web server, but an extra layer of security to protected -// private key. +// "clientCertificate.passphrase": 'passphrase' should be left unset if private +// key is not encrypted. Note that 'passphrase' is not the password for web +// server, but an extra layer of security to protected private key. func (c *ProjectsLocationsAuthConfigsCreateCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsAuthConfigsCreateCall { c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) return c } // ClientCertificateSslCertificate sets the optional parameter -// "clientCertificate.sslCertificate": The ssl certificate encoded in -// PEM format. This string must include the begin header and end footer -// lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.sslCertificate": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -12191,23 +9660,21 @@ func (c *ProjectsLocationsAuthConfigsCreateCall) ClientCertificateSslCertificate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAuthConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAuthConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAuthConfigsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12216,18 +9683,12 @@ func (c *ProjectsLocationsAuthConfigsCreateCall) Header() http.Header { } func (c *ProjectsLocationsAuthConfigsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/authConfigs") @@ -12240,18 +9701,15 @@ func (c *ProjectsLocationsAuthConfigsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.authConfigs.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsAuthConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12282,53 +9740,7 @@ func (c *ProjectsLocationsAuthConfigsCreateCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authConfigs", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.authConfigs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "clientCertificate.encryptedPrivateKey": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.passphrase": { - // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.sslCertificate": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/authConfigs", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.authConfigs.delete": +} type ProjectsLocationsAuthConfigsDeleteCall struct { s *Service @@ -12348,23 +9760,21 @@ func (r *ProjectsLocationsAuthConfigsService) Delete(name string) *ProjectsLocat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAuthConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAuthConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAuthConfigsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12373,12 +9783,7 @@ func (c *ProjectsLocationsAuthConfigsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsAuthConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -12392,16 +9797,15 @@ func (c *ProjectsLocationsAuthConfigsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.authConfigs.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsAuthConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12432,35 +9836,7 @@ func (c *ProjectsLocationsAuthConfigsDeleteCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Deletes an auth config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.authConfigs.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the AuthConfig.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.authConfigs.get": +} type ProjectsLocationsAuthConfigsGetCall struct { s *Service @@ -12472,8 +9848,7 @@ type ProjectsLocationsAuthConfigsGetCall struct { } // Get: Gets a complete auth config. If the auth config doesn't exist, -// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth -// config. +// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config. // // - name: The name that is associated with the AuthConfig. func (r *ProjectsLocationsAuthConfigsService) Get(name string) *ProjectsLocationsAuthConfigsGetCall { @@ -12483,33 +9858,29 @@ func (r *ProjectsLocationsAuthConfigsService) Get(name string) *ProjectsLocation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAuthConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsAuthConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthConfigsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAuthConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAuthConfigsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12518,12 +9889,7 @@ func (c *ProjectsLocationsAuthConfigsGetCall) Header() http.Header { } func (c *ProjectsLocationsAuthConfigsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12540,18 +9906,15 @@ func (c *ProjectsLocationsAuthConfigsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.authConfigs.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsAuthConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12582,35 +9945,7 @@ func (c *ProjectsLocationsAuthConfigsGetCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.authConfigs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the AuthConfig.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.authConfigs.list": +} type ProjectsLocationsAuthConfigsListCall struct { s *Service @@ -12621,8 +9956,8 @@ type ProjectsLocationsAuthConfigsListCall struct { header_ http.Header } -// List: Lists all auth configs that match the filter. Restrict to auth -// configs belong to the current client only. +// List: Lists all auth configs that match the filter. Restrict to auth configs +// belong to the current client only. // // - parent: The client, which owns this collection of AuthConfigs. func (r *ProjectsLocationsAuthConfigsService) List(parent string) *ProjectsLocationsAuthConfigsListCall { @@ -12631,64 +9966,58 @@ func (r *ProjectsLocationsAuthConfigsService) List(parent string) *ProjectsLocat return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/list-filters. func (c *ProjectsLocationsAuthConfigsListCall) Filter(filter string) *ProjectsLocationsAuthConfigsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsAuthConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthConfigsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsAuthConfigsListCall) PageToken(pageToken string) *ProjectsLocationsAuthConfigsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the AuthConfig's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the AuthConfig's response. func (c *ProjectsLocationsAuthConfigsListCall) ReadMask(readMask string) *ProjectsLocationsAuthConfigsListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAuthConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsAuthConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthConfigsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAuthConfigsListCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAuthConfigsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12697,12 +10026,7 @@ func (c *ProjectsLocationsAuthConfigsListCall) Header() http.Header { } func (c *ProjectsLocationsAuthConfigsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -12719,18 +10043,15 @@ func (c *ProjectsLocationsAuthConfigsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.authConfigs.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsAuthConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -12761,54 +10082,6 @@ func (c *ProjectsLocationsAuthConfigsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authConfigs", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.authConfigs.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of AuthConfigs.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the AuthConfig's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/authConfigs", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -12816,7 +10089,7 @@ func (c *ProjectsLocationsAuthConfigsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsAuthConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -12832,8 +10105,6 @@ func (c *ProjectsLocationsAuthConfigsListCall) Pages(ctx context.Context, f func } } -// method id "integrations.projects.locations.authConfigs.patch": - type ProjectsLocationsAuthConfigsPatchCall struct { s *Service name string @@ -12843,11 +10114,11 @@ type ProjectsLocationsAuthConfigsPatchCall struct { header_ http.Header } -// Patch: Updates an auth config. If credential is updated, fetch the -// encrypted auth config from Spanner, decrypt with Cloud KMS key, -// update the credential fields, re-encrypt with Cloud KMS key and -// update the Spanner record. For other fields, directly update the -// Spanner record. Returns the encrypted auth config. +// Patch: Updates an auth config. If credential is updated, fetch the encrypted +// auth config from Spanner, decrypt with Cloud KMS key, update the credential +// fields, re-encrypt with Cloud KMS key and update the Spanner record. For +// other fields, directly update the Spanner record. Returns the encrypted auth +// config. // // - name: Resource name of the SFDC instance // projects/{project}/locations/{location}/authConfigs/{authConfig}. @@ -12859,9 +10130,9 @@ func (r *ProjectsLocationsAuthConfigsService) Patch(name string, googlecloudinte } // ClientCertificateEncryptedPrivateKey sets the optional parameter -// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded -// in PEM format. This string must include the begin header and end -// footer lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -12881,19 +10152,18 @@ func (c *ProjectsLocationsAuthConfigsPatchCall) ClientCertificateEncryptedPrivat } // ClientCertificatePassphrase sets the optional parameter -// "clientCertificate.passphrase": 'passphrase' should be left unset if -// private key is not encrypted. Note that 'passphrase' is not the -// password for web server, but an extra layer of security to protected -// private key. +// "clientCertificate.passphrase": 'passphrase' should be left unset if private +// key is not encrypted. Note that 'passphrase' is not the password for web +// server, but an extra layer of security to protected private key. func (c *ProjectsLocationsAuthConfigsPatchCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsAuthConfigsPatchCall { c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) return c } // ClientCertificateSslCertificate sets the optional parameter -// "clientCertificate.sslCertificate": The ssl certificate encoded in -// PEM format. This string must include the begin header and end footer -// lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.sslCertificate": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -12912,32 +10182,30 @@ func (c *ProjectsLocationsAuthConfigsPatchCall) ClientCertificateSslCertificate( return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above AuthConfig that have been modified -// and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above AuthConfig that have been modified and need to be +// updated. func (c *ProjectsLocationsAuthConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthConfigsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsAuthConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthConfigsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsAuthConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthConfigsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsAuthConfigsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -12946,18 +10214,12 @@ func (c *ProjectsLocationsAuthConfigsPatchCall) Header() http.Header { } func (c *ProjectsLocationsAuthConfigsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -12970,18 +10232,15 @@ func (c *ProjectsLocationsAuthConfigsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.authConfigs.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsAuthConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13012,59 +10271,7 @@ func (c *ProjectsLocationsAuthConfigsPatchCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authConfigs/{authConfigsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.authConfigs.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "clientCertificate.encryptedPrivateKey": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.passphrase": { - // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.sslCertificate": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.certificates.get": +} type ProjectsLocationsCertificatesGetCall struct { s *Service @@ -13086,33 +10293,29 @@ func (r *ProjectsLocationsCertificatesService) Get(name string) *ProjectsLocatio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCertificatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13121,12 +10324,7 @@ func (c *ProjectsLocationsCertificatesGetCall) Header() http.Header { } func (c *ProjectsLocationsCertificatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13143,18 +10341,15 @@ func (c *ProjectsLocationsCertificatesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.certificates.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsCertificatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13185,35 +10380,7 @@ func (c *ProjectsLocationsCertificatesGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Get a certificates in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/certificates/{certificatesId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.certificates.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/certificates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.connections.getConnectionSchemaMetadata": +} type ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall struct { s *Service @@ -13228,8 +10395,8 @@ type ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall struct { // associated with a Connection. // // - name: ConnectionSchemaMetadata name. Format: -// projects/{project}/locations/{location}/connections/{connection}/con -// nectionSchemaMetadata. +// projects/{project}/locations/{location}/connections/{connection}/connection +// SchemaMetadata. func (r *ProjectsLocationsConnectionsService) GetConnectionSchemaMetadata(name string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { c := &ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -13237,33 +10404,29 @@ func (r *ProjectsLocationsConnectionsService) GetConnectionSchemaMetadata(name s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13272,12 +10435,7 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Header() h } func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13294,19 +10452,17 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.connections.getConnectionSchemaMetadata" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13337,35 +10493,7 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Do(opts .. return nil, err } return ret, nil - // { - // "description": "Lists the available entities and actions associated with a Connection.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.connections.getConnectionSchemaMetadata", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. ConnectionSchemaMetadata name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/connectionSchemaMetadata$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.connections.list": +} type ProjectsLocationsConnectionsListCall struct { s *Service @@ -13411,33 +10539,29 @@ func (c *ProjectsLocationsConnectionsListCall) PageToken(pageToken string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsConnectionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13446,12 +10570,7 @@ func (c *ProjectsLocationsConnectionsListCall) Header() http.Header { } func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13468,18 +10587,15 @@ func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.connections.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListConnectionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListConnectionsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListConnectionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListConnectionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13510,53 +10626,6 @@ func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists Connections in a given project and location.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/connections", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.connections.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Order by parameters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Parent resource of the Connection, of the form: `projects/*/locations/*`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/connections", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListConnectionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -13564,7 +10633,7 @@ func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListConnectionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -13580,8 +10649,6 @@ func (c *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func } } -// method id "integrations.projects.locations.connections.runtimeActionSchemas.list": - type ProjectsLocationsConnectionsRuntimeActionSchemasListCall struct { s *Service parent string @@ -13591,8 +10658,8 @@ type ProjectsLocationsConnectionsRuntimeActionSchemasListCall struct { header_ http.Header } -// List: Lists the JSON schemas for the inputs and outputs of actions, -// filtered by action name. +// List: Lists the JSON schemas for the inputs and outputs of actions, filtered +// by action name. // // - parent: Parent resource of RuntimeActionSchema. Format: // projects/{project}/locations/{location}/connections/{connection}. @@ -13602,8 +10669,8 @@ func (r *ProjectsLocationsConnectionsRuntimeActionSchemasService) List(parent st return c } -// Filter sets the optional parameter "filter": Filter. Only the action -// field with literal equality operator is supported. +// Filter sets the optional parameter "filter": Filter. Only the action field +// with literal equality operator is supported. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Filter(filter string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { c.urlParams_.Set("filter", filter) return c @@ -13622,33 +10689,29 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) PageToken(pag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13657,12 +10720,7 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Header() http } func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13679,19 +10737,15 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.connections.runtimeActionSchemas.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13722,48 +10776,6 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Lists the JSON schemas for the inputs and outputs of actions, filtered by action name.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/runtimeActionSchemas", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.connections.runtimeActionSchemas.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter. Only the action field with literal equality operator is supported.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Parent resource of RuntimeActionSchema. Format: projects/{project}/locations/{location}/connections/{connection}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/runtimeActionSchemas", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -13771,7 +10783,7 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Do(opts ...go // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -13787,8 +10799,6 @@ func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Pages(ctx con } } -// method id "integrations.projects.locations.connections.runtimeEntitySchemas.list": - type ProjectsLocationsConnectionsRuntimeEntitySchemasListCall struct { s *Service parent string @@ -13809,8 +10819,8 @@ func (r *ProjectsLocationsConnectionsRuntimeEntitySchemasService) List(parent st return c } -// Filter sets the optional parameter "filter": Filter. Only the entity -// field with literal equality operator is supported. +// Filter sets the optional parameter "filter": Filter. Only the entity field +// with literal equality operator is supported. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Filter(filter string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { c.urlParams_.Set("filter", filter) return c @@ -13829,33 +10839,29 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) PageToken(pag } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -13864,12 +10870,7 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Header() http } func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -13886,19 +10887,15 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.connections.runtimeEntitySchemas.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -13929,48 +10926,6 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "Lists the JSON schemas for the properties of runtime entities, filtered by entity name.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/runtimeEntitySchemas", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.connections.runtimeEntitySchemas.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter. Only the entity field with literal equality operator is supported.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Parent resource of RuntimeEntitySchema. Format: projects/{project}/locations/{location}/connections/{connection}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/runtimeEntitySchemas", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -13978,7 +10933,7 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Do(opts ...go // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -13994,8 +10949,6 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Pages(ctx con } } -// method id "integrations.projects.locations.integrations.delete": - type ProjectsLocationsIntegrationsDeleteCall struct { s *Service name string @@ -14014,23 +10967,21 @@ func (r *ProjectsLocationsIntegrationsService) Delete(name string) *ProjectsLoca } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14039,12 +10990,7 @@ func (c *ProjectsLocationsIntegrationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -14058,16 +11004,15 @@ func (c *ProjectsLocationsIntegrationsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsIntegrationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14098,35 +11043,7 @@ func (c *ProjectsLocationsIntegrationsDeleteCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Delete the selected integration and all versions inside", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.integrations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The location resource of the request.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.execute": +} type ProjectsLocationsIntegrationsExecuteCall struct { s *Service @@ -14137,13 +11054,13 @@ type ProjectsLocationsIntegrationsExecuteCall struct { header_ http.Header } -// Execute: Executes integrations synchronously by passing the trigger -// id in the request body. The request is not returned until the -// requested executions are either fulfilled or experienced an error. If -// the integration name is not specified (passing `-`), all of the -// associated integration under the given trigger_id will be executed. -// Otherwise only the specified integration for the given `trigger_id` -// is executed. This is helpful for execution the integration from UI. +// Execute: Executes integrations synchronously by passing the trigger id in +// the request body. The request is not returned until the requested executions +// are either fulfilled or experienced an error. If the integration name is not +// specified (passing `-`), all of the associated integration under the given +// trigger_id will be executed. Otherwise only the specified integration for +// the given `trigger_id` is executed. This is helpful for execution the +// integration from UI. // // - name: The integration resource name. func (r *ProjectsLocationsIntegrationsService) Execute(name string, googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) *ProjectsLocationsIntegrationsExecuteCall { @@ -14154,23 +11071,21 @@ func (r *ProjectsLocationsIntegrationsService) Execute(name string, googlecloudi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecuteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecuteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecuteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecuteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14179,18 +11094,12 @@ func (c *ProjectsLocationsIntegrationsExecuteCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsExecuteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaexecuteintegrationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:execute") @@ -14203,19 +11112,15 @@ func (c *ProjectsLocationsIntegrationsExecuteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.execute" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerRespo -// nse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerResponse.Hea +// der or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14246,38 +11151,7 @@ func (c *ProjectsLocationsIntegrationsExecuteCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:execute", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.execute", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The integration resource name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:execute", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.executeEvent": +} type ProjectsLocationsIntegrationsExecuteEventCall struct { s *Service @@ -14288,13 +11162,13 @@ type ProjectsLocationsIntegrationsExecuteEventCall struct { header_ http.Header } -// ExecuteEvent: Executes an integration on receiving events from -// Integration Connector triggers, Eventarc or CPS Trigger. The details -// about integration are derived from CloudEvent request body. +// ExecuteEvent: Executes an integration on receiving events from Integration +// Connector triggers, Eventarc or CPS Trigger. The details about integration +// are derived from CloudEvent request body. // // - name: The integration resource name. Format: -// projects/{gcp_project_id}/locations/{location}/integrations/{integra -// tion_id}. +// projects/{gcp_project_id}/locations/{location}/integrations/{integration_id +// }. func (r *ProjectsLocationsIntegrationsService) ExecuteEvent(name string, googlecloudintegrationsv1alphaexecuteeventrequest *GoogleCloudIntegrationsV1alphaExecuteEventRequest) *ProjectsLocationsIntegrationsExecuteEventCall { c := &ProjectsLocationsIntegrationsExecuteEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -14303,23 +11177,21 @@ func (r *ProjectsLocationsIntegrationsService) ExecuteEvent(name string, googlec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecuteEventCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecuteEventCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecuteEventCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecuteEventCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecuteEventCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14328,18 +11200,12 @@ func (c *ProjectsLocationsIntegrationsExecuteEventCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsExecuteEventCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaexecuteeventrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:executeEvent") @@ -14352,18 +11218,15 @@ func (c *ProjectsLocationsIntegrationsExecuteEventCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executeEvent" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaExecuteEventResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaExecuteEventResponse.ServerResponse.Hea -// der or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaExecuteEventResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecuteEventCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecuteEventResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14394,38 +11257,7 @@ func (c *ProjectsLocationsIntegrationsExecuteEventCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Executes an integration on receiving events from Integration Connector triggers, Eventarc or CPS Trigger. The details about integration are derived from CloudEvent request body.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:executeEvent", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.executeEvent", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The integration resource name. Format: projects/{gcp_project_id}/locations/{location}/integrations/{integration_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:executeEvent", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteEventRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteEventResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.list": +} type ProjectsLocationsIntegrationsListCall struct { s *Service @@ -14438,8 +11270,8 @@ type ProjectsLocationsIntegrationsListCall struct { // List: Returns the list of all integrations in the specified project. // -// - parent: Project and location from which the integrations should be -// listed. Format: projects/{project}. +// - parent: Project and location from which the integrations should be listed. +// Format: projects/{project}. func (r *ProjectsLocationsIntegrationsService) List(parent string) *ProjectsLocationsIntegrationsListCall { c := &ProjectsLocationsIntegrationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -14447,69 +11279,65 @@ func (r *ProjectsLocationsIntegrationsService) List(parent string) *ProjectsLoca } // Filter sets the optional parameter "filter": Filter on fields of -// IntegrationVersion. Fields can be compared with literal values by use -// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), -// >=" (greater than or equal to), "<=" (less than or equal to), and -// "!=" (inequality) operators. Negation, conjunction, and disjunction -// are written using NOT, AND, and OR keywords. For example, -// organization_id=\"1\" AND state=ACTIVE AND description:"test". -// Filtering cannot be performed on repeated fields like `task_config`. +// IntegrationVersion. Fields can be compared with literal values by use of ":" +// (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater +// than or equal to), "<=" (less than or equal to), and "!=" (inequality) +// operators. Negation, conjunction, and disjunction are written using NOT, +// AND, and OR keywords. For example, organization_id=\"1\" AND state=ACTIVE +// AND description:"test". Filtering cannot be performed on repeated fields +// like `task_config`. func (c *ProjectsLocationsIntegrationsListCall) Filter(filter string) *ProjectsLocationsIntegrationsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Supported sort keys are: -// Descending sort order by "last_modified_time", "created_time", -// "snapshot_number". Ascending sort order by the integration name. +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Supported sort keys are: Descending sort order +// by "last_modified_time", "created_time", "snapshot_number". Ascending sort +// order by the integration name. func (c *ProjectsLocationsIntegrationsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The page size for -// the resquest. +// PageSize sets the optional parameter "pageSize": The page size for the +// resquest. func (c *ProjectsLocationsIntegrationsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token for -// the resquest. +// PageToken sets the optional parameter "pageToken": The page token for the +// resquest. func (c *ProjectsLocationsIntegrationsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14518,12 +11346,7 @@ func (c *ProjectsLocationsIntegrationsListCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -14540,19 +11363,17 @@ func (c *ProjectsLocationsIntegrationsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14583,53 +11404,6 @@ func (c *ProjectsLocationsIntegrationsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Returns the list of all integrations in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "The results would be returned in order you specified here. Supported sort keys are: Descending sort order by \"last_modified_time\", \"created_time\", \"snapshot_number\". Ascending sort order by the integration name.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The page size for the resquest.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The page token for the resquest.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Project and location from which the integrations should be listed. Format: projects/{project}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/integrations", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -14637,7 +11411,7 @@ func (c *ProjectsLocationsIntegrationsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsIntegrationsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -14653,8 +11427,6 @@ func (c *ProjectsLocationsIntegrationsListCall) Pages(ctx context.Context, f fun } } -// method id "integrations.projects.locations.integrations.schedule": - type ProjectsLocationsIntegrationsScheduleCall struct { s *Service name string @@ -14664,8 +11436,8 @@ type ProjectsLocationsIntegrationsScheduleCall struct { header_ http.Header } -// Schedule: Schedules an integration for execution by passing the -// trigger id and the scheduled time in the request body. +// Schedule: Schedules an integration for execution by passing the trigger id +// and the scheduled time in the request body. // // - name: The integration resource name. func (r *ProjectsLocationsIntegrationsService) Schedule(name string, googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) *ProjectsLocationsIntegrationsScheduleCall { @@ -14676,23 +11448,21 @@ func (r *ProjectsLocationsIntegrationsService) Schedule(name string, googlecloud } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsScheduleCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsScheduleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsScheduleCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsScheduleCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsScheduleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -14701,18 +11471,12 @@ func (c *ProjectsLocationsIntegrationsScheduleCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsScheduleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphascheduleintegrationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:schedule") @@ -14725,19 +11489,15 @@ func (c *ProjectsLocationsIntegrationsScheduleCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.schedule" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResp -// onse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsScheduleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -14768,38 +11528,7 @@ func (c *ProjectsLocationsIntegrationsScheduleCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:schedule", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.schedule", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The integration resource name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:schedule", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.executions.list": +} type ProjectsLocationsIntegrationsExecutionsListCall struct { s *Service @@ -14810,10 +11539,10 @@ type ProjectsLocationsIntegrationsExecutionsListCall struct { header_ http.Header } -// List: Lists the results of all the integration executions. The -// response includes the same information as the execution log -// (https://cloud.google.com/application-integration/docs/viewing-logs) -// in the Integration UI. +// List: Lists the results of all the integration executions. The response +// includes the same information as the execution log +// (https://cloud.google.com/application-integration/docs/viewing-logs) in the +// Integration UI. // // - parent: The parent resource name of the integration execution. func (r *ProjectsLocationsIntegrationsExecutionsService) List(parent string) *ProjectsLocationsIntegrationsExecutionsListCall { @@ -14822,17 +11551,16 @@ func (r *ProjectsLocationsIntegrationsExecutionsService) List(parent string) *Pr return c } -// Filter sets the optional parameter "filter": Standard filter field, -// we support filtering on following fields: workflow_name: the name of -// the integration. CreateTimestamp: the execution created time. -// event_execution_state: the state of the executions. execution_id: the -// id of the execution. trigger_id: the id of the trigger. -// parameter_type: the type of the parameters involved in the execution. -// All fields support for EQUALS, in additional: CreateTimestamp support -// for LESS_THAN, GREATER_THAN ParameterType support for HAS For -// example: "parameter_type" HAS \"string\" Also supports operators like -// AND, OR, NOT For example, trigger_id=\"id1\" AND -// workflow_name=\"testWorkflow\" +// Filter sets the optional parameter "filter": Standard filter field, we +// support filtering on following fields: workflow_name: the name of the +// integration. CreateTimestamp: the execution created time. +// event_execution_state: the state of the executions. execution_id: the id of +// the execution. trigger_id: the id of the trigger. parameter_type: the type +// of the parameters involved in the execution. All fields support for EQUALS, +// in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN +// ParameterType support for HAS For example: "parameter_type" HAS \"string\" +// Also supports operators like AND, OR, NOT For example, trigger_id=\"id1\" +// AND workflow_name=\"testWorkflow\" func (c *ProjectsLocationsIntegrationsExecutionsListCall) Filter(filter string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filter", filter) return c @@ -14845,8 +11573,8 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsCustomFilt return c } -// FilterParamsEndTime sets the optional parameter -// "filterParams.endTime": End timestamp. +// FilterParamsEndTime sets the optional parameter "filterParams.endTime": End +// timestamp. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsEndTime(filterParamsEndTime int64) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.endTime", fmt.Sprint(filterParamsEndTime)) return c @@ -14867,24 +11595,22 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsExecutionI } // FilterParamsParameterKey sets the optional parameter -// "filterParams.parameterKey": Param key. DEPRECATED. User -// parameter_pair_key instead. +// "filterParams.parameterKey": Param key. DEPRECATED. User parameter_pair_key +// instead. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterKey(filterParamsParameterKey string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterKey", filterParamsParameterKey) return c } // FilterParamsParameterPairKey sets the optional parameter -// "filterParams.parameterPairKey": Param key in the key value pair -// filter. +// "filterParams.parameterPairKey": Param key in the key value pair filter. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterPairKey(filterParamsParameterPairKey string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterPairKey", filterParamsParameterPairKey) return c } // FilterParamsParameterPairValue sets the optional parameter -// "filterParams.parameterPairValue": Param value in the key value pair -// filter. +// "filterParams.parameterPairValue": Param value in the key value pair filter. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterPairValue(filterParamsParameterPairValue string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterPairValue", filterParamsParameterPairValue) return c @@ -14905,8 +11631,8 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsParameterV return c } -// FilterParamsStartTime sets the optional parameter -// "filterParams.startTime": Start timestamp. +// FilterParamsStartTime sets the optional parameter "filterParams.startTime": +// Start timestamp. func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsStartTime(filterParamsStartTime int64) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.startTime", fmt.Sprint(filterParamsStartTime)) return c @@ -14926,84 +11652,79 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) FilterParamsWorkflowNa return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Currently supporting -// "last_modified_time" and "create_time". +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Currently supporting "last_modified_time" and +// "create_time". func (c *ProjectsLocationsIntegrationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. func (c *ProjectsLocationsIntegrationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsIntegrationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": View mask for the -// response data. If set, only the field specified will be returned as -// part of the result. If not set, all fields in event execution info -// will be filled and returned. +// ReadMask sets the optional parameter "readMask": View mask for the response +// data. If set, only the field specified will be returned as part of the +// result. If not set, all fields in event execution info will be filled and +// returned. func (c *ProjectsLocationsIntegrationsExecutionsListCall) ReadMask(readMask string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("readMask", readMask) return c } -// RefreshAcl sets the optional parameter "refreshAcl": If true, the -// service will use the most recent acl information to list event -// execution infos and renew the acl cache. Note that fetching the most -// recent acl is synchronous, so it will increase RPC call latency. +// RefreshAcl sets the optional parameter "refreshAcl": If true, the service +// will use the most recent acl information to list event execution infos and +// renew the acl cache. Note that fetching the most recent acl is synchronous, +// so it will increase RPC call latency. func (c *ProjectsLocationsIntegrationsExecutionsListCall) RefreshAcl(refreshAcl bool) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("refreshAcl", fmt.Sprint(refreshAcl)) return c } -// TruncateParams sets the optional parameter "truncateParams": If true, -// the service will truncate the params to only keep the first 1000 -// characters of string params and empty the executions in order to make -// response smaller. Only works for UI and when the params fields are -// not filtered out. +// TruncateParams sets the optional parameter "truncateParams": If true, the +// service will truncate the params to only keep the first 1000 characters of +// string params and empty the executions in order to make response smaller. +// Only works for UI and when the params fields are not filtered out. func (c *ProjectsLocationsIntegrationsExecutionsListCall) TruncateParams(truncateParams bool) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("truncateParams", fmt.Sprint(truncateParams)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15012,12 +11733,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsExecutionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15034,18 +11750,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executions.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListExecutionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15076,137 +11789,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.executions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Standard filter field, we support filtering on following fields: workflow_name: the name of the integration. CreateTimestamp: the execution created time. event_execution_state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. parameter_type: the type of the parameters involved in the execution. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterType support for HAS For example: \"parameter_type\" HAS \\\"string\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND workflow_name=\\\"testWorkflow\\\"", - // "location": "query", - // "type": "string" - // }, - // "filterParams.customFilter": { - // "description": "Optional user-provided custom filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.endTime": { - // "description": "End timestamp.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filterParams.eventStatuses": { - // "description": "List of possible event statuses.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "filterParams.executionId": { - // "description": "Execution id.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterKey": { - // "deprecated": true, - // "description": "Param key. DEPRECATED. User parameter_pair_key instead.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterPairKey": { - // "description": "Param key in the key value pair filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterPairValue": { - // "description": "Param value in the key value pair filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterType": { - // "description": "Param type.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterValue": { - // "deprecated": true, - // "description": "Param value. DEPRECATED. User parameter_pair_value instead.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.startTime": { - // "description": "Start timestamp.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filterParams.taskStatuses": { - // "deprecated": true, - // "description": "List of possible task statuses.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "filterParams.workflowName": { - // "description": "Workflow name.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. The results would be returned in order you specified here. Currently supporting \"last_modified_time\" and \"create_time\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The size of entries in the response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource name of the integration execution.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "refreshAcl": { - // "description": "Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency.", - // "location": "query", - // "type": "boolean" - // }, - // "truncateParams": { - // "deprecated": true, - // "description": "Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1alpha/{+parent}/executions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -15214,7 +11796,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) Do(opts ...googleapi.C // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsIntegrationsExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15230,8 +11812,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) Pages(ctx context.Cont } } -// method id "integrations.projects.locations.integrations.executions.suspensions.lift": - type ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall struct { s *Service name string @@ -15241,14 +11821,13 @@ type ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall struct { header_ http.Header } -// Lift: * Lifts suspension for advanced suspension task. Fetch -// corresponding suspension with provided suspension Id, resolve -// suspension, and set up suspension result for the Suspension Task. +// Lift: * Lifts suspension for advanced suspension task. Fetch corresponding +// suspension with provided suspension Id, resolve suspension, and set up +// suspension result for the Suspension Task. // // - name: The resource that the suspension belongs to. -// "projects/{project}/locations/{location}/products/{product}/integrat -// ions/{integration}/executions/{execution}/suspensions/{suspenion}" -// format. +// "projects/{project}/locations/{location}/products/{product}/integrations/{i +// ntegration}/executions/{execution}/suspensions/{suspenion}" format. func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) Lift(name string, googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall { c := &ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -15257,23 +11836,21 @@ func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) Lift(name st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15282,18 +11859,12 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Header() ht } func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaliftsuspensionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:lift") @@ -15306,18 +11877,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executions.suspensions.lift" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLiftSuspensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15348,38 +11916,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsLiftCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "* Lifts suspension for advanced suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:lift", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.executions.suspensions.lift", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource that the suspension belongs to. \"projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:lift", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.executions.suspensions.list": +} type ProjectsLocationsIntegrationsExecutionsSuspensionsListCall struct { s *Service @@ -15390,13 +11927,13 @@ type ProjectsLocationsIntegrationsExecutionsSuspensionsListCall struct { header_ http.Header } -// List: * Lists suspensions associated with a specific execution. Only -// those with permissions to resolve the relevant suspensions will be -// able to view them. +// List: * Lists suspensions associated with a specific execution. Only those +// with permissions to resolve the relevant suspensions will be able to view +// them. // // - parent: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_name}/executions/{execution_name}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_name}/executions/{execution_name}. func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) List(parent string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c := &ProjectsLocationsIntegrationsExecutionsSuspensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -15409,55 +11946,50 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Filter(filt return c } -// OrderBy sets the optional parameter "orderBy": Field name to order -// by. +// OrderBy sets the optional parameter "orderBy": Field name to order by. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// entries in the response. +// PageSize sets the optional parameter "pageSize": Maximum number of entries +// in the response. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token to retrieve -// a specific page. +// PageToken sets the optional parameter "pageToken": Token to retrieve a +// specific page. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15466,12 +11998,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Header() ht } func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -15488,18 +12015,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executions.suspensions.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListSuspensionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSuspensionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15530,53 +12054,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.executions.suspensions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Standard filter field.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field name to order by.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum number of entries in the response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token to retrieve a specific page.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/suspensions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -15584,7 +12061,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Do(opts ... // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSuspensionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -15600,8 +12077,6 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsListCall) Pages(ctx c } } -// method id "integrations.projects.locations.integrations.executions.suspensions.resolve": - type ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall struct { s *Service name string @@ -15613,13 +12088,12 @@ type ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall struct { // Resolve: * Resolves (lifts/rejects) any number of suspensions. If the // integration is already running, only the status of the suspension is -// updated. Otherwise, the suspended integration will begin execution -// again. +// updated. Otherwise, the suspended integration will begin execution again. // // - name: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_name}/executions/{execution_name}/suspension -// s/{suspension_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_name}/executions/{execution_name}/suspensions/{suspension_ +// id}. func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) Resolve(name string, googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall { c := &ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -15628,23 +12102,21 @@ func (r *ProjectsLocationsIntegrationsExecutionsSuspensionsService) Resolve(name } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15653,18 +12125,12 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Header() } func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alpharesolvesuspensionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:resolve") @@ -15677,19 +12143,15 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.executions.suspensions.resolve" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaResolveSuspensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15720,38 +12182,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsSuspensionsResolveCall) Do(opts return nil, err } return ret, nil - // { - // "description": "* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:resolve", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.executions.suspensions.resolve", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:resolve", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.create": +} type ProjectsLocationsIntegrationsVersionsCreateCall struct { s *Service @@ -15762,11 +12193,9 @@ type ProjectsLocationsIntegrationsVersionsCreateCall struct { header_ http.Header } -// Create: Create a integration with a draft version in the specified -// project. +// Create: Create a integration with a draft version in the specified project. // -// - parent: The parent resource where this version will be created. -// Format: +// - parent: The parent resource where this version will be created. Format: // projects/{project}/locations/{location}/integrations/{integration}. func (r *ProjectsLocationsIntegrationsVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsIntegrationsVersionsCreateCall { c := &ProjectsLocationsIntegrationsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -15775,35 +12204,32 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Create(parent string, goo return c } -// NewIntegration sets the optional parameter "newIntegration": Set this -// flag to true, if draft version is to be created for a brand new -// integration. False, if the request is for an existing integration. -// For backward compatibility reasons, even if this flag is set to -// `false` and no existing integration is found, a new draft integration -// will still be created. +// NewIntegration sets the optional parameter "newIntegration": Set this flag +// to true, if draft version is to be created for a brand new integration. +// False, if the request is for an existing integration. For backward +// compatibility reasons, even if this flag is set to `false` and no existing +// integration is found, a new draft integration will still be created. func (c *ProjectsLocationsIntegrationsVersionsCreateCall) NewIntegration(newIntegration bool) *ProjectsLocationsIntegrationsVersionsCreateCall { c.urlParams_.Set("newIntegration", fmt.Sprint(newIntegration)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15812,18 +12238,12 @@ func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/versions") @@ -15836,18 +12256,15 @@ func (c *ProjectsLocationsIntegrationsVersionsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -15878,43 +12295,7 @@ func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Create a integration with a draft version in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "newIntegration": { - // "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created.", - // "location": "query", - // "type": "boolean" - // }, - // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/versions", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.delete": +} type ProjectsLocationsIntegrationsVersionsDeleteCall struct { s *Service @@ -15924,20 +12305,19 @@ type ProjectsLocationsIntegrationsVersionsDeleteCall struct { header_ http.Header } -// Delete: Soft-deletes the integration. Changes the status of the -// integration to ARCHIVED. If the integration being ARCHIVED is tagged -// as "HEAD", the tag is removed from this snapshot and set to the -// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, -// DUE_FOR_DELETION tags are removed too. This RPC throws an exception -// if the version being deleted is DRAFT, and if the `locked_by` user is -// not the same as the user performing the Delete. Audit fields updated -// include last_modified_timestamp, last_modified_by. Any existing lock -// is released when Deleting a integration. Currently, there is no -// undelete mechanism. +// Delete: Soft-deletes the integration. Changes the status of the integration +// to ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag +// is removed from this snapshot and set to the previous non-ARCHIVED snapshot. +// The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC +// throws an exception if the version being deleted is DRAFT, and if the +// `locked_by` user is not the same as the user performing the Delete. Audit +// fields updated include last_modified_timestamp, last_modified_by. Any +// existing lock is released when Deleting a integration. Currently, there is +// no undelete mechanism. // // - name: The version to delete. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Delete(name string) *ProjectsLocationsIntegrationsVersionsDeleteCall { c := &ProjectsLocationsIntegrationsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -15945,23 +12325,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Delete(name string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -15970,12 +12348,7 @@ func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -15989,16 +12362,15 @@ func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16029,35 +12401,7 @@ func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.integrations.versions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.download": +} type ProjectsLocationsIntegrationsVersionsDownloadCall struct { s *Service @@ -16068,13 +12412,12 @@ type ProjectsLocationsIntegrationsVersionsDownloadCall struct { header_ http.Header } -// Download: Downloads an integration. Retrieves the -// `IntegrationVersion` for a given `integration_id` and returns the -// response as a string. +// Download: Downloads an integration. Retrieves the `IntegrationVersion` for a +// given `integration_id` and returns the response as a string. // // - name: The version to download. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Download(name string) *ProjectsLocationsIntegrationsVersionsDownloadCall { c := &ProjectsLocationsIntegrationsVersionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16095,33 +12438,29 @@ func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) FileFormat(fileForma } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16130,12 +12469,7 @@ func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Header() http.Header } func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16152,19 +12486,15 @@ func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.download" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.ServerRespo +// nse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16195,50 +12525,7 @@ func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:download", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.versions.download", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "fileFormat": { - // "description": "File format for download request.", - // "enum": [ - // "FILE_FORMAT_UNSPECIFIED", - // "JSON", - // "YAML" - // ], - // "enumDescriptions": [ - // "Unspecified file format", - // "JSON File Format", - // "YAML File Format" - // ], - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:download", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.get": +} type ProjectsLocationsIntegrationsVersionsGetCall struct { s *Service @@ -16252,8 +12539,8 @@ type ProjectsLocationsIntegrationsVersionsGetCall struct { // Get: Get a integration in the specified project. // // - name: The version to retrieve. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Get(name string) *ProjectsLocationsIntegrationsVersionsGetCall { c := &ProjectsLocationsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16261,33 +12548,29 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Get(name string) *Project } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16296,12 +12579,7 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16318,18 +12596,15 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16360,35 +12635,7 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Get a integration in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.versions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.list": +} type ProjectsLocationsIntegrationsVersionsListCall struct { s *Service @@ -16399,101 +12646,93 @@ type ProjectsLocationsIntegrationsVersionsListCall struct { header_ http.Header } -// List: Returns the list of all integration versions in the specified -// project. +// List: Returns the list of all integration versions in the specified project. // -// - parent: The parent resource where this version will be created. -// Format: +// - parent: The parent resource where this version will be created. Format: // projects/{project}/locations/{location}/integrations/{integration} -// Specifically, when parent equals: 1. -// projects//locations//integrations/, Meaning: "List versions (with -// filter) for a particular integration". 2. -// projects//locations//integrations/- Meaning: "List versions (with -// filter) for a client within a particular region". 3. -// projects//locations/-/integrations/- Meaning: "List versions (with -// filter) for a client". +// Specifically, when parent equals: 1. projects//locations//integrations/, +// Meaning: "List versions (with filter) for a particular integration". 2. +// projects//locations//integrations/- Meaning: "List versions (with filter) +// for a client within a particular region". 3. +// projects//locations/-/integrations/- Meaning: "List versions (with filter) +// for a client". func (r *ProjectsLocationsIntegrationsVersionsService) List(parent string) *ProjectsLocationsIntegrationsVersionsListCall { c := &ProjectsLocationsIntegrationsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// FieldMask sets the optional parameter "fieldMask": The field mask -// which specifies the particular data to be returned. +// FieldMask sets the optional parameter "fieldMask": The field mask which +// specifies the particular data to be returned. func (c *ProjectsLocationsIntegrationsVersionsListCall) FieldMask(fieldMask string) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("fieldMask", fieldMask) return c } // Filter sets the optional parameter "filter": Filter on fields of -// IntegrationVersion. Fields can be compared with literal values by use -// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), -// >=" (greater than or equal to), "<=" (less than or equal to), and -// "!=" (inequality) operators. Negation, conjunction, and disjunction -// are written using NOT, AND, and OR keywords. For example, -// organization_id=\"1\" AND state=ACTIVE AND description:"test". -// Filtering cannot be performed on repeated fields like `task_config`. +// IntegrationVersion. Fields can be compared with literal values by use of ":" +// (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater +// than or equal to), "<=" (less than or equal to), and "!=" (inequality) +// operators. Negation, conjunction, and disjunction are written using NOT, +// AND, and OR keywords. For example, organization_id=\"1\" AND state=ACTIVE +// AND description:"test". Filtering cannot be performed on repeated fields +// like `task_config`. func (c *ProjectsLocationsIntegrationsVersionsListCall) Filter(filter string) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Currently supported sort keys -// are: Descending sort order for "last_modified_time", "created_time", -// "snapshot_number" Ascending sort order for "name". +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Currently supported sort keys are: Descending +// sort order for "last_modified_time", "created_time", "snapshot_number" +// Ascending sort order for "name". func (c *ProjectsLocationsIntegrationsVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of versions to return. The service may return fewer than this value. -// If unspecified, at most 50 versions will be returned. The maximum -// value is 1000; values above 1000 will be coerced to 1000. +// PageSize sets the optional parameter "pageSize": The maximum number of +// versions to return. The service may return fewer than this value. If +// unspecified, at most 50 versions will be returned. The maximum value is +// 1000; values above 1000 will be coerced to 1000. func (c *ProjectsLocationsIntegrationsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListIntegrationVersions` call. Provide this -// to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListIntegrationVersions` must match the call -// that provided the page token. +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListIntegrationVersions` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListIntegrationVersions` must match the call that provided the page token. func (c *ProjectsLocationsIntegrationsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsIntegrationsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16502,12 +12741,7 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -16524,19 +12758,15 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerR -// esponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16567,59 +12797,6 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Returns the list of all integration versions in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.versions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "fieldMask": { - // "description": "The field mask which specifies the particular data to be returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for \"last_modified_time\", \"created_time\", \"snapshot_number\" Ascending sort order for \"name\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/versions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -16627,7 +12804,7 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.Cal // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsIntegrationsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -16643,8 +12820,6 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Pages(ctx context.Contex } } -// method id "integrations.projects.locations.integrations.versions.patch": - type ProjectsLocationsIntegrationsVersionsPatchCall struct { s *Service name string @@ -16654,8 +12829,7 @@ type ProjectsLocationsIntegrationsVersionsPatchCall struct { header_ http.Header } -// Patch: Update a integration with a draft version in the specified -// project. +// Patch: Update a integration with a draft version in the specified project. // // - name: Output only. Auto-generated primary key. func (r *ProjectsLocationsIntegrationsVersionsService) Patch(name string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsIntegrationsVersionsPatchCall { @@ -16665,32 +12839,30 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Patch(name string, google return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above integration that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above integration that have been modified and need to be +// updated. func (c *ProjectsLocationsIntegrationsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIntegrationsVersionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16699,18 +12871,12 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -16723,18 +12889,15 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16765,44 +12928,7 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Update a integration with a draft version in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.integrations.versions.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Auto-generated primary key.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above integration that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.publish": +} type ProjectsLocationsIntegrationsVersionsPublishCall struct { s *Service @@ -16813,17 +12939,16 @@ type ProjectsLocationsIntegrationsVersionsPublishCall struct { header_ http.Header } -// Publish: This RPC throws an exception if the integration is in -// ARCHIVED or ACTIVE state. This RPC throws an exception if the version -// being published is DRAFT, and if the `locked_by` user is not the same -// as the user performing the Publish. Audit fields updated include -// last_published_timestamp, last_published_by, last_modified_timestamp, -// last_modified_by. Any existing lock is on this integration is -// released. +// Publish: This RPC throws an exception if the integration is in ARCHIVED or +// ACTIVE state. This RPC throws an exception if the version being published is +// DRAFT, and if the `locked_by` user is not the same as the user performing +// the Publish. Audit fields updated include last_published_timestamp, +// last_published_by, last_modified_timestamp, last_modified_by. Any existing +// lock is on this integration is released. // // - name: The version to publish. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Publish(name string, googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsPublishCall { c := &ProjectsLocationsIntegrationsVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16832,23 +12957,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Publish(name string, goog } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsPublishCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsPublishCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -16857,18 +12980,12 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Header() http.Header } func (c *ProjectsLocationsIntegrationsVersionsPublishCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphapublishintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:publish") @@ -16881,19 +12998,15 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.publish" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -16924,38 +13037,7 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:publish", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.publish", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:publish", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.takeoverEditLock": +} type ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall struct { s *Service @@ -16966,22 +13048,21 @@ type ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall struct { header_ http.Header } -// TakeoverEditLock: Clears the `locked_by` and `locked_at_timestamp`in -// the DRAFT version of this integration. It then performs the same -// action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT -// version of the integration as a SNAPSHOT and then creates a new DRAFT -// version with the `locked_by` set to the `user_taking_over` and the -// `locked_at_timestamp` set to the current timestamp). Both the -// `locked_by` and `user_taking_over` are notified via email about the -// takeover. This RPC throws an exception if the integration is not in -// DRAFT status or if the `locked_by` and `locked_at_timestamp` fields -// are not set.The TakeoverEdit lock is treated the same as an edit of -// the integration, and hence shares ACLs with edit. Audit fields -// updated include last_modified_timestamp, last_modified_by. +// TakeoverEditLock: Clears the `locked_by` and `locked_at_timestamp`in the +// DRAFT version of this integration. It then performs the same action as the +// CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the +// integration as a SNAPSHOT and then creates a new DRAFT version with the +// `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set +// to the current timestamp). Both the `locked_by` and `user_taking_over` are +// notified via email about the takeover. This RPC throws an exception if the +// integration is not in DRAFT status or if the `locked_by` and +// `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated +// the same as an edit of the integration, and hence shares ACLs with edit. +// Audit fields updated include last_modified_timestamp, last_modified_by. // // - integrationVersion: The version to take over edit lock. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) TakeoverEditLock(integrationVersion string, googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { c := &ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.integrationVersion = integrationVersion @@ -16990,23 +13071,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) TakeoverEditLock(integrat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17015,18 +13094,12 @@ func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Header() htt } func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphatakeovereditlockrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+integrationVersion}:takeoverEditLock") @@ -17039,19 +13112,17 @@ func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "integrationVersion": c.integrationVersion, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.takeoverEditLock" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17082,38 +13153,7 @@ func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this integration. It then performs the same action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the integration as a SNAPSHOT and then creates a new DRAFT version with the `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to the current timestamp). Both the `locked_by` and `user_taking_over` are notified via email about the takeover. This RPC throws an exception if the integration is not in DRAFT status or if the `locked_by` and `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the same as an edit of the integration, and hence shares ACLs with edit. Audit fields updated include last_modified_timestamp, last_modified_by.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:takeoverEditLock", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.takeoverEditLock", - // "parameterOrder": [ - // "integrationVersion" - // ], - // "parameters": { - // "integrationVersion": { - // "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+integrationVersion}:takeoverEditLock", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.unpublish": +} type ProjectsLocationsIntegrationsVersionsUnpublishCall struct { s *Service @@ -17124,15 +13164,15 @@ type ProjectsLocationsIntegrationsVersionsUnpublishCall struct { header_ http.Header } -// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with -// a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and -// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception -// if the version being snapshot is not ACTIVE. Audit fields added -// include action, action_by, action_timestamp. +// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with a new +// tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and +// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception if the +// version being snapshot is not ACTIVE. Audit fields added include action, +// action_by, action_timestamp. // // - name: The version to deactivate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Unpublish(name string, googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsUnpublishCall { c := &ProjectsLocationsIntegrationsVersionsUnpublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -17141,23 +13181,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Unpublish(name string, go } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsUnpublishCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsUnpublishCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17166,18 +13204,12 @@ func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Header() http.Heade } func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:unpublish") @@ -17190,16 +13222,15 @@ func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.unpublish" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17230,38 +13261,7 @@ func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.unpublish", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:unpublish", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.integrations.versions.upload": +} type ProjectsLocationsIntegrationsVersionsUploadCall struct { s *Service @@ -17272,11 +13272,10 @@ type ProjectsLocationsIntegrationsVersionsUploadCall struct { header_ http.Header } -// Upload: Uploads an integration. The content can be a previously -// downloaded integration. Performs the same function as -// CreateDraftIntegrationVersion, but accepts input in a string format, -// which holds the complete representation of the IntegrationVersion -// content. +// Upload: Uploads an integration. The content can be a previously downloaded +// integration. Performs the same function as CreateDraftIntegrationVersion, +// but accepts input in a string format, which holds the complete +// representation of the IntegrationVersion content. // // - parent: The version to upload. Format: // projects/{project}/locations/{location}/integrations/{integration}. @@ -17288,23 +13287,21 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Upload(parent string, goo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsUploadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17313,18 +13310,12 @@ func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Header() http.Header { } func (c *ProjectsLocationsIntegrationsVersionsUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphauploadintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/versions:upload") @@ -17337,19 +13328,15 @@ func (c *ProjectsLocationsIntegrationsVersionsUploadCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.integrations.versions.upload" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17380,38 +13367,7 @@ func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions:upload", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.upload", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/versions:upload", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.authConfigs.create": +} type ProjectsLocationsProductsAuthConfigsCreateCall struct { s *Service @@ -17422,11 +13378,10 @@ type ProjectsLocationsProductsAuthConfigsCreateCall struct { header_ http.Header } -// Create: Creates an auth config record. Fetch corresponding -// credentials for specific auth types, e.g. access token for OAuth 2.0, -// JWT token for JWT. Encrypt the auth config with Cloud KMS and store -// the encrypted credentials in Spanner. Returns the encrypted auth -// config. +// Create: Creates an auth config record. Fetch corresponding credentials for +// specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. +// Encrypt the auth config with Cloud KMS and store the encrypted credentials +// in Spanner. Returns the encrypted auth config. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsProductsAuthConfigsService) Create(parent string, googlecloudintegrationsv1alphaauthconfig *GoogleCloudIntegrationsV1alphaAuthConfig) *ProjectsLocationsProductsAuthConfigsCreateCall { @@ -17437,9 +13392,9 @@ func (r *ProjectsLocationsProductsAuthConfigsService) Create(parent string, goog } // ClientCertificateEncryptedPrivateKey sets the optional parameter -// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded -// in PEM format. This string must include the begin header and end -// footer lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -17459,19 +13414,18 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificateEncryp } // ClientCertificatePassphrase sets the optional parameter -// "clientCertificate.passphrase": 'passphrase' should be left unset if -// private key is not encrypted. Note that 'passphrase' is not the -// password for web server, but an extra layer of security to protected -// private key. +// "clientCertificate.passphrase": 'passphrase' should be left unset if private +// key is not encrypted. Note that 'passphrase' is not the password for web +// server, but an extra layer of security to protected private key. func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsProductsAuthConfigsCreateCall { c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) return c } // ClientCertificateSslCertificate sets the optional parameter -// "clientCertificate.sslCertificate": The ssl certificate encoded in -// PEM format. This string must include the begin header and end footer -// lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.sslCertificate": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -17491,23 +13445,21 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) ClientCertificateSslCer } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17516,18 +13468,12 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Header() http.Header { } func (c *ProjectsLocationsProductsAuthConfigsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/authConfigs") @@ -17540,18 +13486,15 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.authConfigs.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17582,53 +13525,7 @@ func (c *ProjectsLocationsProductsAuthConfigsCreateCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.authConfigs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "clientCertificate.encryptedPrivateKey": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.passphrase": { - // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.sslCertificate": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/authConfigs", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.authConfigs.delete": +} type ProjectsLocationsProductsAuthConfigsDeleteCall struct { s *Service @@ -17648,23 +13545,21 @@ func (r *ProjectsLocationsProductsAuthConfigsService) Delete(name string) *Proje } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17673,12 +13568,7 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -17692,16 +13582,15 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.authConfigs.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17732,35 +13621,7 @@ func (c *ProjectsLocationsProductsAuthConfigsDeleteCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Deletes an auth config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.authConfigs.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the AuthConfig.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.authConfigs.get": +} type ProjectsLocationsProductsAuthConfigsGetCall struct { s *Service @@ -17772,8 +13633,7 @@ type ProjectsLocationsProductsAuthConfigsGetCall struct { } // Get: Gets a complete auth config. If the auth config doesn't exist, -// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth -// config. +// Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config. // // - name: The name that is associated with the AuthConfig. func (r *ProjectsLocationsProductsAuthConfigsService) Get(name string) *ProjectsLocationsProductsAuthConfigsGetCall { @@ -17783,33 +13643,29 @@ func (r *ProjectsLocationsProductsAuthConfigsService) Get(name string) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsAuthConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsAuthConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsAuthConfigsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsAuthConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsAuthConfigsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17818,12 +13674,7 @@ func (c *ProjectsLocationsProductsAuthConfigsGetCall) Header() http.Header { } func (c *ProjectsLocationsProductsAuthConfigsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -17840,18 +13691,15 @@ func (c *ProjectsLocationsProductsAuthConfigsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.authConfigs.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsAuthConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -17882,35 +13730,7 @@ func (c *ProjectsLocationsProductsAuthConfigsGetCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.authConfigs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the AuthConfig.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.authConfigs.list": +} type ProjectsLocationsProductsAuthConfigsListCall struct { s *Service @@ -17921,8 +13741,8 @@ type ProjectsLocationsProductsAuthConfigsListCall struct { header_ http.Header } -// List: Lists all auth configs that match the filter. Restrict to auth -// configs belong to the current client only. +// List: Lists all auth configs that match the filter. Restrict to auth configs +// belong to the current client only. // // - parent: The client, which owns this collection of AuthConfigs. func (r *ProjectsLocationsProductsAuthConfigsService) List(parent string) *ProjectsLocationsProductsAuthConfigsListCall { @@ -17931,64 +13751,58 @@ func (r *ProjectsLocationsProductsAuthConfigsService) List(parent string) *Proje return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/list-filters. func (c *ProjectsLocationsProductsAuthConfigsListCall) Filter(filter string) *ProjectsLocationsProductsAuthConfigsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsProductsAuthConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsAuthConfigsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsProductsAuthConfigsListCall) PageToken(pageToken string) *ProjectsLocationsProductsAuthConfigsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the AuthConfig's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the AuthConfig's response. func (c *ProjectsLocationsProductsAuthConfigsListCall) ReadMask(readMask string) *ProjectsLocationsProductsAuthConfigsListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsAuthConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsAuthConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsAuthConfigsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsAuthConfigsListCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsAuthConfigsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -17997,12 +13811,7 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Header() http.Header { } func (c *ProjectsLocationsProductsAuthConfigsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18019,18 +13828,15 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.authConfigs.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18061,54 +13867,6 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.authConfigs.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of AuthConfigs.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the AuthConfig's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/authConfigs", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListAuthConfigsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -18116,7 +13874,7 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Do(opts ...googleapi.Call // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsAuthConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListAuthConfigsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -18132,8 +13890,6 @@ func (c *ProjectsLocationsProductsAuthConfigsListCall) Pages(ctx context.Context } } -// method id "integrations.projects.locations.products.authConfigs.patch": - type ProjectsLocationsProductsAuthConfigsPatchCall struct { s *Service name string @@ -18143,11 +13899,11 @@ type ProjectsLocationsProductsAuthConfigsPatchCall struct { header_ http.Header } -// Patch: Updates an auth config. If credential is updated, fetch the -// encrypted auth config from Spanner, decrypt with Cloud KMS key, -// update the credential fields, re-encrypt with Cloud KMS key and -// update the Spanner record. For other fields, directly update the -// Spanner record. Returns the encrypted auth config. +// Patch: Updates an auth config. If credential is updated, fetch the encrypted +// auth config from Spanner, decrypt with Cloud KMS key, update the credential +// fields, re-encrypt with Cloud KMS key and update the Spanner record. For +// other fields, directly update the Spanner record. Returns the encrypted auth +// config. // // - name: Resource name of the SFDC instance // projects/{project}/locations/{location}/authConfigs/{authConfig}. @@ -18159,9 +13915,9 @@ func (r *ProjectsLocationsProductsAuthConfigsService) Patch(name string, googlec } // ClientCertificateEncryptedPrivateKey sets the optional parameter -// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded -// in PEM format. This string must include the begin header and end -// footer lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.encryptedPrivateKey": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -18181,19 +13937,18 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificateEncrypt } // ClientCertificatePassphrase sets the optional parameter -// "clientCertificate.passphrase": 'passphrase' should be left unset if -// private key is not encrypted. Note that 'passphrase' is not the -// password for web server, but an extra layer of security to protected -// private key. +// "clientCertificate.passphrase": 'passphrase' should be left unset if private +// key is not encrypted. Note that 'passphrase' is not the password for web +// server, but an extra layer of security to protected private key. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificatePassphrase(clientCertificatePassphrase string) *ProjectsLocationsProductsAuthConfigsPatchCall { c.urlParams_.Set("clientCertificate.passphrase", clientCertificatePassphrase) return c } // ClientCertificateSslCertificate sets the optional parameter -// "clientCertificate.sslCertificate": The ssl certificate encoded in -// PEM format. This string must include the begin header and end footer -// lines. For example, -----BEGIN CERTIFICATE----- +// "clientCertificate.sslCertificate": The ssl certificate encoded in PEM +// format. This string must include the begin header and end footer lines. For +// example, -----BEGIN CERTIFICATE----- // MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV // BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw // MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET @@ -18212,32 +13967,30 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) ClientCertificateSslCert return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above AuthConfig that have been modified -// and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above AuthConfig that have been modified and need to be +// updated. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsAuthConfigsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsAuthConfigsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsAuthConfigsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18246,18 +13999,12 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Header() http.Header { } func (c *ProjectsLocationsProductsAuthConfigsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaauthconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -18270,18 +14017,15 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.authConfigs.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaAuthConfig or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaAuthConfig.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaAuthConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18312,59 +14056,7 @@ func (c *ProjectsLocationsProductsAuthConfigsPatchCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/authConfigs/{authConfigsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.authConfigs.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "clientCertificate.encryptedPrivateKey": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.passphrase": { - // "description": "'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.", - // "location": "query", - // "type": "string" - // }, - // "clientCertificate.sslCertificate": { - // "description": "The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/authConfigs/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaAuthConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.certificates.create": +} type ProjectsLocationsProductsCertificatesCreateCall struct { s *Service @@ -18375,9 +14067,9 @@ type ProjectsLocationsProductsCertificatesCreateCall struct { header_ http.Header } -// Create: Creates a new certificate. The certificate will be registered -// to the trawler service and will be encrypted using cloud KMS and -// stored in Spanner Returns the certificate. +// Create: Creates a new certificate. The certificate will be registered to the +// trawler service and will be encrypted using cloud KMS and stored in Spanner +// Returns the certificate. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsProductsCertificatesService) Create(parent string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsProductsCertificatesCreateCall { @@ -18388,23 +14080,21 @@ func (r *ProjectsLocationsProductsCertificatesService) Create(parent string, goo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCertificatesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18413,18 +14103,12 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) Header() http.Header { } func (c *ProjectsLocationsProductsCertificatesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/certificates") @@ -18437,18 +14121,15 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.certificates.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18479,38 +14160,7 @@ func (c *ProjectsLocationsProductsCertificatesCreateCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.certificates.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/certificates", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.certificates.delete": +} type ProjectsLocationsProductsCertificatesDeleteCall struct { s *Service @@ -18530,23 +14180,21 @@ func (r *ProjectsLocationsProductsCertificatesService) Delete(name string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCertificatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCertificatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCertificatesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18555,12 +14203,7 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsProductsCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -18574,16 +14217,15 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.certificates.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18614,35 +14256,7 @@ func (c *ProjectsLocationsProductsCertificatesDeleteCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Delete a certificate", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.certificates.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the Certificate.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.certificates.get": +} type ProjectsLocationsProductsCertificatesGetCall struct { s *Service @@ -18664,33 +14278,29 @@ func (r *ProjectsLocationsProductsCertificatesService) Get(name string) *Project } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsCertificatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCertificatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18699,12 +14309,7 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) Header() http.Header { } func (c *ProjectsLocationsProductsCertificatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18721,18 +14326,15 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.certificates.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsCertificatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18763,35 +14365,7 @@ func (c *ProjectsLocationsProductsCertificatesGetCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Get a certificates in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.certificates.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.certificates.list": +} type ProjectsLocationsProductsCertificatesListCall struct { s *Service @@ -18812,64 +14386,58 @@ func (r *ProjectsLocationsProductsCertificatesService) List(parent string) *Proj return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/list-filters. func (c *ProjectsLocationsProductsCertificatesListCall) Filter(filter string) *ProjectsLocationsProductsCertificatesListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsProductsCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsProductsCertificatesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsProductsCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsProductsCertificatesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the Certificate's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the Certificate's response. func (c *ProjectsLocationsProductsCertificatesListCall) ReadMask(readMask string) *ProjectsLocationsProductsCertificatesListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsCertificatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCertificatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -18878,12 +14446,7 @@ func (c *ProjectsLocationsProductsCertificatesListCall) Header() http.Header { } func (c *ProjectsLocationsProductsCertificatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -18900,19 +14463,17 @@ func (c *ProjectsLocationsProductsCertificatesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.certificates.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListCertificatesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListCertificatesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListCertificatesResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsCertificatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListCertificatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -18943,54 +14504,6 @@ func (c *ProjectsLocationsProductsCertificatesListCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "List all the certificates that match the filter. Restrict to certificate of current client only.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.certificates.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of Certificates.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the Certificate's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/certificates", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListCertificatesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -18998,7 +14511,7 @@ func (c *ProjectsLocationsProductsCertificatesListCall) Do(opts ...googleapi.Cal // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsCertificatesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListCertificatesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -19014,8 +14527,6 @@ func (c *ProjectsLocationsProductsCertificatesListCall) Pages(ctx context.Contex } } -// method id "integrations.projects.locations.products.certificates.patch": - type ProjectsLocationsProductsCertificatesPatchCall struct { s *Service name string @@ -19025,10 +14536,10 @@ type ProjectsLocationsProductsCertificatesPatchCall struct { header_ http.Header } -// Patch: Updates the certificate by id. If new certificate file is -// updated, it will register with the trawler service, re-encrypt with -// cloud KMS and update the Spanner record. Other fields will directly -// update the Spanner record. Returns the Certificate. +// Patch: Updates the certificate by id. If new certificate file is updated, it +// will register with the trawler service, re-encrypt with cloud KMS and update +// the Spanner record. Other fields will directly update the Spanner record. +// Returns the Certificate. // // - name: Output only. Auto generated primary key. func (r *ProjectsLocationsProductsCertificatesService) Patch(name string, googlecloudintegrationsv1alphacertificate *GoogleCloudIntegrationsV1alphaCertificate) *ProjectsLocationsProductsCertificatesPatchCall { @@ -19038,32 +14549,30 @@ func (r *ProjectsLocationsProductsCertificatesService) Patch(name string, google return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above Certificate that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above Certificate that have been modified and need to be +// updated. func (c *ProjectsLocationsProductsCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsCertificatesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsCertificatesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsCertificatesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsCertificatesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19072,18 +14581,12 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) Header() http.Header { } func (c *ProjectsLocationsProductsCertificatesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacertificate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -19096,18 +14599,15 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.certificates.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCertificate or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCertificate.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCertificate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19138,44 +14638,7 @@ func (c *ProjectsLocationsProductsCertificatesPatchCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/certificates/{certificatesId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.certificates.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Auto generated primary key", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/certificates/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above Certificate that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCertificate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.delete": +} type ProjectsLocationsProductsIntegrationsDeleteCall struct { s *Service @@ -19195,23 +14658,21 @@ func (r *ProjectsLocationsProductsIntegrationsService) Delete(name string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19220,12 +14681,7 @@ func (c *ProjectsLocationsProductsIntegrationsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsProductsIntegrationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -19239,16 +14695,15 @@ func (c *ProjectsLocationsProductsIntegrationsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsIntegrationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19279,35 +14734,7 @@ func (c *ProjectsLocationsProductsIntegrationsDeleteCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Delete the selected integration and all versions inside", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.integrations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The location resource of the request.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.execute": +} type ProjectsLocationsProductsIntegrationsExecuteCall struct { s *Service @@ -19318,13 +14745,13 @@ type ProjectsLocationsProductsIntegrationsExecuteCall struct { header_ http.Header } -// Execute: Executes integrations synchronously by passing the trigger -// id in the request body. The request is not returned until the -// requested executions are either fulfilled or experienced an error. If -// the integration name is not specified (passing `-`), all of the -// associated integration under the given trigger_id will be executed. -// Otherwise only the specified integration for the given `trigger_id` -// is executed. This is helpful for execution the integration from UI. +// Execute: Executes integrations synchronously by passing the trigger id in +// the request body. The request is not returned until the requested executions +// are either fulfilled or experienced an error. If the integration name is not +// specified (passing `-`), all of the associated integration under the given +// trigger_id will be executed. Otherwise only the specified integration for +// the given `trigger_id` is executed. This is helpful for execution the +// integration from UI. // // - name: The integration resource name. func (r *ProjectsLocationsProductsIntegrationsService) Execute(name string, googlecloudintegrationsv1alphaexecuteintegrationsrequest *GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest) *ProjectsLocationsProductsIntegrationsExecuteCall { @@ -19335,23 +14762,21 @@ func (r *ProjectsLocationsProductsIntegrationsService) Execute(name string, goog } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecuteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecuteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19360,18 +14785,12 @@ func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Header() http.Header } func (c *ProjectsLocationsProductsIntegrationsExecuteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaexecuteintegrationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:execute") @@ -19384,19 +14803,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecuteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.execute" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerRespo -// nse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.ServerResponse.Hea +// der or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19427,38 +14842,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecuteCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:execute", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.execute", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The integration resource name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:execute", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.list": +} type ProjectsLocationsProductsIntegrationsListCall struct { s *Service @@ -19471,8 +14855,8 @@ type ProjectsLocationsProductsIntegrationsListCall struct { // List: Returns the list of all integrations in the specified project. // -// - parent: Project and location from which the integrations should be -// listed. Format: projects/{project}. +// - parent: Project and location from which the integrations should be listed. +// Format: projects/{project}. func (r *ProjectsLocationsProductsIntegrationsService) List(parent string) *ProjectsLocationsProductsIntegrationsListCall { c := &ProjectsLocationsProductsIntegrationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -19480,69 +14864,65 @@ func (r *ProjectsLocationsProductsIntegrationsService) List(parent string) *Proj } // Filter sets the optional parameter "filter": Filter on fields of -// IntegrationVersion. Fields can be compared with literal values by use -// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), -// >=" (greater than or equal to), "<=" (less than or equal to), and -// "!=" (inequality) operators. Negation, conjunction, and disjunction -// are written using NOT, AND, and OR keywords. For example, -// organization_id=\"1\" AND state=ACTIVE AND description:"test". -// Filtering cannot be performed on repeated fields like `task_config`. +// IntegrationVersion. Fields can be compared with literal values by use of ":" +// (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater +// than or equal to), "<=" (less than or equal to), and "!=" (inequality) +// operators. Negation, conjunction, and disjunction are written using NOT, +// AND, and OR keywords. For example, organization_id=\"1\" AND state=ACTIVE +// AND description:"test". Filtering cannot be performed on repeated fields +// like `task_config`. func (c *ProjectsLocationsProductsIntegrationsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Supported sort keys are: -// Descending sort order by "last_modified_time", "created_time", -// "snapshot_number". Ascending sort order by the integration name. +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Supported sort keys are: Descending sort order +// by "last_modified_time", "created_time", "snapshot_number". Ascending sort +// order by the integration name. func (c *ProjectsLocationsProductsIntegrationsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The page size for -// the resquest. +// PageSize sets the optional parameter "pageSize": The page size for the +// resquest. func (c *ProjectsLocationsProductsIntegrationsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The page token for -// the resquest. +// PageToken sets the optional parameter "pageToken": The page token for the +// resquest. func (c *ProjectsLocationsProductsIntegrationsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19551,12 +14931,7 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) Header() http.Header { } func (c *ProjectsLocationsProductsIntegrationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -19573,19 +14948,17 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19616,53 +14989,6 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Returns the list of all integrations in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "The results would be returned in order you specified here. Supported sort keys are: Descending sort order by \"last_modified_time\", \"created_time\", \"snapshot_number\". Ascending sort order by the integration name.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The page size for the resquest.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The page token for the resquest.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Project and location from which the integrations should be listed. Format: projects/{project}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/integrations", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -19670,7 +14996,7 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) Do(opts ...googleapi.Cal // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsIntegrationsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -19686,8 +15012,6 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) Pages(ctx context.Contex } } -// method id "integrations.projects.locations.products.integrations.schedule": - type ProjectsLocationsProductsIntegrationsScheduleCall struct { s *Service name string @@ -19697,8 +15021,8 @@ type ProjectsLocationsProductsIntegrationsScheduleCall struct { header_ http.Header } -// Schedule: Schedules an integration for execution by passing the -// trigger id and the scheduled time in the request body. +// Schedule: Schedules an integration for execution by passing the trigger id +// and the scheduled time in the request body. // // - name: The integration resource name. func (r *ProjectsLocationsProductsIntegrationsService) Schedule(name string, googlecloudintegrationsv1alphascheduleintegrationsrequest *GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest) *ProjectsLocationsProductsIntegrationsScheduleCall { @@ -19709,23 +15033,21 @@ func (r *ProjectsLocationsProductsIntegrationsService) Schedule(name string, goo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsScheduleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsScheduleCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19734,18 +15056,12 @@ func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Header() http.Header } func (c *ProjectsLocationsProductsIntegrationsScheduleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphascheduleintegrationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:schedule") @@ -19758,19 +15074,15 @@ func (c *ProjectsLocationsProductsIntegrationsScheduleCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.schedule" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResp -// onse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19801,38 +15113,7 @@ func (c *ProjectsLocationsProductsIntegrationsScheduleCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:schedule", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.schedule", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The integration resource name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:schedule", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.cancel": +} type ProjectsLocationsProductsIntegrationsExecutionsCancelCall struct { s *Service @@ -19846,8 +15127,8 @@ type ProjectsLocationsProductsIntegrationsExecutionsCancelCall struct { // Cancel: Cancellation of an execution // // - name: The execution resource name. Format: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_id}/executions/{execution_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_id}/executions/{execution_id}. func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Cancel(name string, googlecloudintegrationsv1alphacancelexecutionrequest *GoogleCloudIntegrationsV1alphaCancelExecutionRequest) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { c := &ProjectsLocationsProductsIntegrationsExecutionsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -19856,23 +15137,21 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Cancel(name str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -19881,18 +15160,12 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Header() htt } func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphacancelexecutionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel") @@ -19905,18 +15178,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.cancel" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaCancelExecutionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaCancelExecutionResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaCancelExecutionResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaCancelExecutionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -19947,38 +15217,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsCancelCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Cancellation of an execution", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}:cancel", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.executions.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:cancel", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaCancelExecutionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.get": +} type ProjectsLocationsProductsIntegrationsExecutionsGetCall struct { s *Service @@ -19992,8 +15231,8 @@ type ProjectsLocationsProductsIntegrationsExecutionsGetCall struct { // Get: Get an execution in the specified project. // // - name: The execution resource name. Format: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_id}/executions/{execution_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_id}/executions/{execution_id}. func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Get(name string) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { c := &ProjectsLocationsProductsIntegrationsExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -20001,33 +15240,29 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsService) Get(name string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20036,12 +15271,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Header() http.H } func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20058,17 +15288,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaExecution or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaExecution.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaExecution.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaExecution, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20099,35 +15327,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsGetCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Get an execution in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaExecution" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.list": +} type ProjectsLocationsProductsIntegrationsExecutionsListCall struct { s *Service @@ -20138,10 +15338,10 @@ type ProjectsLocationsProductsIntegrationsExecutionsListCall struct { header_ http.Header } -// List: Lists the results of all the integration executions. The -// response includes the same information as the execution log -// (https://cloud.google.com/application-integration/docs/viewing-logs) -// in the Integration UI. +// List: Lists the results of all the integration executions. The response +// includes the same information as the execution log +// (https://cloud.google.com/application-integration/docs/viewing-logs) in the +// Integration UI. // // - parent: The parent resource name of the integration execution. func (r *ProjectsLocationsProductsIntegrationsExecutionsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { @@ -20150,17 +15350,16 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsService) List(parent str return c } -// Filter sets the optional parameter "filter": Standard filter field, -// we support filtering on following fields: workflow_name: the name of -// the integration. CreateTimestamp: the execution created time. -// event_execution_state: the state of the executions. execution_id: the -// id of the execution. trigger_id: the id of the trigger. -// parameter_type: the type of the parameters involved in the execution. -// All fields support for EQUALS, in additional: CreateTimestamp support -// for LESS_THAN, GREATER_THAN ParameterType support for HAS For -// example: "parameter_type" HAS \"string\" Also supports operators like -// AND, OR, NOT For example, trigger_id=\"id1\" AND -// workflow_name=\"testWorkflow\" +// Filter sets the optional parameter "filter": Standard filter field, we +// support filtering on following fields: workflow_name: the name of the +// integration. CreateTimestamp: the execution created time. +// event_execution_state: the state of the executions. execution_id: the id of +// the execution. trigger_id: the id of the trigger. parameter_type: the type +// of the parameters involved in the execution. All fields support for EQUALS, +// in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN +// ParameterType support for HAS For example: "parameter_type" HAS \"string\" +// Also supports operators like AND, OR, NOT For example, trigger_id=\"id1\" +// AND workflow_name=\"testWorkflow\" func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filter", filter) return c @@ -20173,8 +15372,8 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsCu return c } -// FilterParamsEndTime sets the optional parameter -// "filterParams.endTime": End timestamp. +// FilterParamsEndTime sets the optional parameter "filterParams.endTime": End +// timestamp. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsEndTime(filterParamsEndTime int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.endTime", fmt.Sprint(filterParamsEndTime)) return c @@ -20195,24 +15394,22 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsEx } // FilterParamsParameterKey sets the optional parameter -// "filterParams.parameterKey": Param key. DEPRECATED. User -// parameter_pair_key instead. +// "filterParams.parameterKey": Param key. DEPRECATED. User parameter_pair_key +// instead. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterKey(filterParamsParameterKey string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterKey", filterParamsParameterKey) return c } // FilterParamsParameterPairKey sets the optional parameter -// "filterParams.parameterPairKey": Param key in the key value pair -// filter. +// "filterParams.parameterPairKey": Param key in the key value pair filter. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterPairKey(filterParamsParameterPairKey string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterPairKey", filterParamsParameterPairKey) return c } // FilterParamsParameterPairValue sets the optional parameter -// "filterParams.parameterPairValue": Param value in the key value pair -// filter. +// "filterParams.parameterPairValue": Param value in the key value pair filter. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsParameterPairValue(filterParamsParameterPairValue string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.parameterPairValue", filterParamsParameterPairValue) return c @@ -20233,8 +15430,8 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsPa return c } -// FilterParamsStartTime sets the optional parameter -// "filterParams.startTime": Start timestamp. +// FilterParamsStartTime sets the optional parameter "filterParams.startTime": +// Start timestamp. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsStartTime(filterParamsStartTime int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filterParams.startTime", fmt.Sprint(filterParamsStartTime)) return c @@ -20254,84 +15451,79 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) FilterParamsWo return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Currently supporting -// "last_modified_time" and "create_time". +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Currently supporting "last_modified_time" and +// "create_time". func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": View mask for the -// response data. If set, only the field specified will be returned as -// part of the result. If not set, all fields in event execution info -// will be filled and returned. +// ReadMask sets the optional parameter "readMask": View mask for the response +// data. If set, only the field specified will be returned as part of the +// result. If not set, all fields in event execution info will be filled and +// returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) ReadMask(readMask string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("readMask", readMask) return c } -// RefreshAcl sets the optional parameter "refreshAcl": If true, the -// service will use the most recent acl information to list event -// execution infos and renew the acl cache. Note that fetching the most -// recent acl is synchronous, so it will increase RPC call latency. +// RefreshAcl sets the optional parameter "refreshAcl": If true, the service +// will use the most recent acl information to list event execution infos and +// renew the acl cache. Note that fetching the most recent acl is synchronous, +// so it will increase RPC call latency. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) RefreshAcl(refreshAcl bool) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("refreshAcl", fmt.Sprint(refreshAcl)) return c } -// TruncateParams sets the optional parameter "truncateParams": If true, -// the service will truncate the params to only keep the first 1000 -// characters of string params and empty the executions in order to make -// response smaller. Only works for UI and when the params fields are -// not filtered out. +// TruncateParams sets the optional parameter "truncateParams": If true, the +// service will truncate the params to only keep the first 1000 characters of +// string params and empty the executions in order to make response smaller. +// Only works for UI and when the params fields are not filtered out. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) TruncateParams(truncateParams bool) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("truncateParams", fmt.Sprint(truncateParams)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20340,12 +15532,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Header() http. } func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20362,18 +15549,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListExecutionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListExecutionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListExecutionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20404,137 +15588,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Standard filter field, we support filtering on following fields: workflow_name: the name of the integration. CreateTimestamp: the execution created time. event_execution_state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. parameter_type: the type of the parameters involved in the execution. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterType support for HAS For example: \"parameter_type\" HAS \\\"string\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND workflow_name=\\\"testWorkflow\\\"", - // "location": "query", - // "type": "string" - // }, - // "filterParams.customFilter": { - // "description": "Optional user-provided custom filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.endTime": { - // "description": "End timestamp.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filterParams.eventStatuses": { - // "description": "List of possible event statuses.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "filterParams.executionId": { - // "description": "Execution id.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterKey": { - // "deprecated": true, - // "description": "Param key. DEPRECATED. User parameter_pair_key instead.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterPairKey": { - // "description": "Param key in the key value pair filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterPairValue": { - // "description": "Param value in the key value pair filter.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterType": { - // "description": "Param type.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.parameterValue": { - // "deprecated": true, - // "description": "Param value. DEPRECATED. User parameter_pair_value instead.", - // "location": "query", - // "type": "string" - // }, - // "filterParams.startTime": { - // "description": "Start timestamp.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "filterParams.taskStatuses": { - // "deprecated": true, - // "description": "List of possible task statuses.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "filterParams.workflowName": { - // "description": "Workflow name.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. The results would be returned in order you specified here. Currently supporting \"last_modified_time\" and \"create_time\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The size of entries in the response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource name of the integration execution.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "refreshAcl": { - // "description": "Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency.", - // "location": "query", - // "type": "boolean" - // }, - // "truncateParams": { - // "deprecated": true, - // "description": "Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1alpha/{+parent}/executions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListExecutionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -20542,7 +15595,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...goo // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListExecutionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20558,8 +15611,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Pages(ctx cont } } -// method id "integrations.projects.locations.products.integrations.executions.suspensions.lift": - type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall struct { s *Service name string @@ -20569,14 +15620,13 @@ type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall struct { header_ http.Header } -// Lift: * Lifts suspension for advanced suspension task. Fetch -// corresponding suspension with provided suspension Id, resolve -// suspension, and set up suspension result for the Suspension Task. +// Lift: * Lifts suspension for advanced suspension task. Fetch corresponding +// suspension with provided suspension Id, resolve suspension, and set up +// suspension result for the Suspension Task. // // - name: The resource that the suspension belongs to. -// "projects/{project}/locations/{location}/products/{product}/integrat -// ions/{integration}/executions/{execution}/suspensions/{suspenion}" -// format. +// "projects/{project}/locations/{location}/products/{product}/integrations/{i +// ntegration}/executions/{execution}/suspensions/{suspenion}" format. func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Lift(name string, googlecloudintegrationsv1alphaliftsuspensionrequest *GoogleCloudIntegrationsV1alphaLiftSuspensionRequest) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -20585,23 +15635,21 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Lift } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20610,18 +15658,12 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Hea } func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaliftsuspensionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:lift") @@ -20634,18 +15676,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.lift" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaLiftSuspensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20676,38 +15715,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsLiftCall) Do( return nil, err } return ret, nil - // { - // "description": "* Lifts suspension for advanced suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:lift", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.executions.suspensions.lift", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource that the suspension belongs to. \"projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:lift", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaLiftSuspensionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.executions.suspensions.list": +} type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall struct { s *Service @@ -20718,13 +15726,13 @@ type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall struct { header_ http.Header } -// List: * Lists suspensions associated with a specific execution. Only -// those with permissions to resolve the relevant suspensions will be -// able to view them. +// List: * Lists suspensions associated with a specific execution. Only those +// with permissions to resolve the relevant suspensions will be able to view +// them. // // - parent: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_name}/executions/{execution_name}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_name}/executions/{execution_name}. func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) List(parent string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -20737,55 +15745,50 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Fil return c } -// OrderBy sets the optional parameter "orderBy": Field name to order -// by. +// OrderBy sets the optional parameter "orderBy": Field name to order by. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// entries in the response. +// PageSize sets the optional parameter "pageSize": Maximum number of entries +// in the response. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token to retrieve -// a specific page. +// PageToken sets the optional parameter "pageToken": Token to retrieve a +// specific page. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20794,12 +15797,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Hea } func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -20816,18 +15814,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) doR googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.list" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaListSuspensionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSuspensionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSuspensionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -20858,53 +15853,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do( return nil, err } return ret, nil - // { - // "description": "* Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.executions.suspensions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Standard filter field.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field name to order by.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum number of entries in the response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token to retrieve a specific page.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/suspensions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSuspensionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -20912,7 +15860,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Do( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSuspensionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -20928,8 +15876,6 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsListCall) Pag } } -// method id "integrations.projects.locations.products.integrations.executions.suspensions.resolve": - type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall struct { s *Service name string @@ -20941,13 +15887,12 @@ type ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall struc // Resolve: * Resolves (lifts/rejects) any number of suspensions. If the // integration is already running, only the status of the suspension is -// updated. Otherwise, the suspended integration will begin execution -// again. +// updated. Otherwise, the suspended integration will begin execution again. // // - name: -// projects/{gcp_project_id}/locations/{location}/products/{product}/in -// tegrations/{integration_name}/executions/{execution_name}/suspension -// s/{suspension_id}. +// projects/{gcp_project_id}/locations/{location}/products/{product}/integrati +// ons/{integration_name}/executions/{execution_name}/suspensions/{suspension_ +// id}. func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Resolve(name string, googlecloudintegrationsv1alpharesolvesuspensionrequest *GoogleCloudIntegrationsV1alphaResolveSuspensionRequest) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { c := &ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -20956,23 +15901,21 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsService) Reso } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -20981,18 +15924,12 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) } func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alpharesolvesuspensionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:resolve") @@ -21005,19 +15942,15 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.executions.suspensions.resolve" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaResolveSuspensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21048,38 +15981,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsSuspensionsResolveCall) return nil, err } return ret, nil - // { - // "description": "* Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/executions/{executionsId}/suspensions/{suspensionsId}:resolve", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.executions.suspensions.resolve", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/executions/[^/]+/suspensions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:resolve", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaResolveSuspensionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.create": +} type ProjectsLocationsProductsIntegrationsVersionsCreateCall struct { s *Service @@ -21090,11 +15992,9 @@ type ProjectsLocationsProductsIntegrationsVersionsCreateCall struct { header_ http.Header } -// Create: Create a integration with a draft version in the specified -// project. +// Create: Create a integration with a draft version in the specified project. // -// - parent: The parent resource where this version will be created. -// Format: +// - parent: The parent resource where this version will be created. Format: // projects/{project}/locations/{location}/integrations/{integration}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c := &ProjectsLocationsProductsIntegrationsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -21103,35 +16003,32 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Create(parent str return c } -// NewIntegration sets the optional parameter "newIntegration": Set this -// flag to true, if draft version is to be created for a brand new -// integration. False, if the request is for an existing integration. -// For backward compatibility reasons, even if this flag is set to -// `false` and no existing integration is found, a new draft integration -// will still be created. +// NewIntegration sets the optional parameter "newIntegration": Set this flag +// to true, if draft version is to be created for a brand new integration. +// False, if the request is for an existing integration. For backward +// compatibility reasons, even if this flag is set to `false` and no existing +// integration is found, a new draft integration will still be created. func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) NewIntegration(newIntegration bool) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c.urlParams_.Set("newIntegration", fmt.Sprint(newIntegration)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21140,18 +16037,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Header() http. } func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/versions") @@ -21164,18 +16055,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21206,43 +16094,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Create a integration with a draft version in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "newIntegration": { - // "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created.", - // "location": "query", - // "type": "boolean" - // }, - // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/versions", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.delete": +} type ProjectsLocationsProductsIntegrationsVersionsDeleteCall struct { s *Service @@ -21252,20 +16104,19 @@ type ProjectsLocationsProductsIntegrationsVersionsDeleteCall struct { header_ http.Header } -// Delete: Soft-deletes the integration. Changes the status of the -// integration to ARCHIVED. If the integration being ARCHIVED is tagged -// as "HEAD", the tag is removed from this snapshot and set to the -// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, -// DUE_FOR_DELETION tags are removed too. This RPC throws an exception -// if the version being deleted is DRAFT, and if the `locked_by` user is -// not the same as the user performing the Delete. Audit fields updated -// include last_modified_timestamp, last_modified_by. Any existing lock -// is released when Deleting a integration. Currently, there is no -// undelete mechanism. +// Delete: Soft-deletes the integration. Changes the status of the integration +// to ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag +// is removed from this snapshot and set to the previous non-ARCHIVED snapshot. +// The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC +// throws an exception if the version being deleted is DRAFT, and if the +// `locked_by` user is not the same as the user performing the Delete. Audit +// fields updated include last_modified_timestamp, last_modified_by. Any +// existing lock is released when Deleting a integration. Currently, there is +// no undelete mechanism. // // - name: The version to delete. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Delete(name string) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { c := &ProjectsLocationsProductsIntegrationsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -21273,23 +16124,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Delete(name strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21298,12 +16147,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Header() http. } func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -21317,16 +16161,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21357,35 +16200,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.integrations.versions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.download": +} type ProjectsLocationsProductsIntegrationsVersionsDownloadCall struct { s *Service @@ -21396,13 +16211,12 @@ type ProjectsLocationsProductsIntegrationsVersionsDownloadCall struct { header_ http.Header } -// Download: Downloads an integration. Retrieves the -// `IntegrationVersion` for a given `integration_id` and returns the -// response as a string. +// Download: Downloads an integration. Retrieves the `IntegrationVersion` for a +// given `integration_id` and returns the response as a string. // // - name: The version to download. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Download(name string) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { c := &ProjectsLocationsProductsIntegrationsVersionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -21423,33 +16237,29 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) FileFormat(f } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21458,12 +16268,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Header() htt } func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21480,19 +16285,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.download" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.ServerRespo +// nse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21523,50 +16324,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:download", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.versions.download", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "fileFormat": { - // "description": "File format for download request.", - // "enum": [ - // "FILE_FORMAT_UNSPECIFIED", - // "JSON", - // "YAML" - // ], - // "enumDescriptions": [ - // "Unspecified file format", - // "JSON File Format", - // "YAML File Format" - // ], - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:download", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.get": +} type ProjectsLocationsProductsIntegrationsVersionsGetCall struct { s *Service @@ -21580,8 +16338,8 @@ type ProjectsLocationsProductsIntegrationsVersionsGetCall struct { // Get: Get a integration in the specified project. // // - name: The version to retrieve. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Get(name string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c := &ProjectsLocationsProductsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -21589,33 +16347,29 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Get(name string) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21624,12 +16378,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Header() http.Hea } func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21646,18 +16395,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21688,35 +16434,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Get a integration in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.versions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.list": +} type ProjectsLocationsProductsIntegrationsVersionsListCall struct { s *Service @@ -21727,101 +16445,93 @@ type ProjectsLocationsProductsIntegrationsVersionsListCall struct { header_ http.Header } -// List: Returns the list of all integration versions in the specified -// project. +// List: Returns the list of all integration versions in the specified project. // -// - parent: The parent resource where this version will be created. -// Format: +// - parent: The parent resource where this version will be created. Format: // projects/{project}/locations/{location}/integrations/{integration} -// Specifically, when parent equals: 1. -// projects//locations//integrations/, Meaning: "List versions (with -// filter) for a particular integration". 2. -// projects//locations//integrations/- Meaning: "List versions (with -// filter) for a client within a particular region". 3. -// projects//locations/-/integrations/- Meaning: "List versions (with -// filter) for a client". +// Specifically, when parent equals: 1. projects//locations//integrations/, +// Meaning: "List versions (with filter) for a particular integration". 2. +// projects//locations//integrations/- Meaning: "List versions (with filter) +// for a client within a particular region". 3. +// projects//locations/-/integrations/- Meaning: "List versions (with filter) +// for a client". func (r *ProjectsLocationsProductsIntegrationsVersionsService) List(parent string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c := &ProjectsLocationsProductsIntegrationsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// FieldMask sets the optional parameter "fieldMask": The field mask -// which specifies the particular data to be returned. +// FieldMask sets the optional parameter "fieldMask": The field mask which +// specifies the particular data to be returned. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) FieldMask(fieldMask string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("fieldMask", fieldMask) return c } // Filter sets the optional parameter "filter": Filter on fields of -// IntegrationVersion. Fields can be compared with literal values by use -// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), -// >=" (greater than or equal to), "<=" (less than or equal to), and -// "!=" (inequality) operators. Negation, conjunction, and disjunction -// are written using NOT, AND, and OR keywords. For example, -// organization_id=\"1\" AND state=ACTIVE AND description:"test". -// Filtering cannot be performed on repeated fields like `task_config`. +// IntegrationVersion. Fields can be compared with literal values by use of ":" +// (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater +// than or equal to), "<=" (less than or equal to), and "!=" (inequality) +// operators. Negation, conjunction, and disjunction are written using NOT, +// AND, and OR keywords. For example, organization_id=\"1\" AND state=ACTIVE +// AND description:"test". Filtering cannot be performed on repeated fields +// like `task_config`. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Currently supported sort keys -// are: Descending sort order for "last_modified_time", "created_time", -// "snapshot_number" Ascending sort order for "name". +// OrderBy sets the optional parameter "orderBy": The results would be returned +// in order you specified here. Currently supported sort keys are: Descending +// sort order for "last_modified_time", "created_time", "snapshot_number" +// Ascending sort order for "name". func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of versions to return. The service may return fewer than this value. -// If unspecified, at most 50 versions will be returned. The maximum -// value is 1000; values above 1000 will be coerced to 1000. +// PageSize sets the optional parameter "pageSize": The maximum number of +// versions to return. The service may return fewer than this value. If +// unspecified, at most 50 versions will be returned. The maximum value is +// 1000; values above 1000 will be coerced to 1000. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListIntegrationVersions` call. Provide this -// to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListIntegrationVersions` must match the call -// that provided the page token. +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListIntegrationVersions` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListIntegrationVersions` must match the call that provided the page token. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -21830,12 +16540,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Header() http.He } func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -21852,19 +16557,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerR -// esponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -21895,59 +16596,6 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Returns the list of all integration versions in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrations.versions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "fieldMask": { - // "description": "The field mask which specifies the particular data to be returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for \"last_modified_time\", \"created_time\", \"snapshot_number\" Ascending sort order for \"name\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/versions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -21955,7 +16603,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Do(opts ...googl // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -21971,8 +16619,6 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Pages(ctx contex } } -// method id "integrations.projects.locations.products.integrations.versions.patch": - type ProjectsLocationsProductsIntegrationsVersionsPatchCall struct { s *Service name string @@ -21982,8 +16628,7 @@ type ProjectsLocationsProductsIntegrationsVersionsPatchCall struct { header_ http.Header } -// Patch: Update a integration with a draft version in the specified -// project. +// Patch: Update a integration with a draft version in the specified project. // // - name: Output only. Auto-generated primary key. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Patch(name string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { @@ -21993,32 +16638,30 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Patch(name string return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above integration that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above integration that have been modified and need to be +// updated. func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22027,18 +16670,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Header() http.H } func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -22051,18 +16688,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22093,44 +16727,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPatchCall) Do(opts ...goog return nil, err } return ret, nil - // { - // "description": "Update a integration with a draft version in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.integrations.versions.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Auto-generated primary key.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above integration that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.publish": +} type ProjectsLocationsProductsIntegrationsVersionsPublishCall struct { s *Service @@ -22141,17 +16738,16 @@ type ProjectsLocationsProductsIntegrationsVersionsPublishCall struct { header_ http.Header } -// Publish: This RPC throws an exception if the integration is in -// ARCHIVED or ACTIVE state. This RPC throws an exception if the version -// being published is DRAFT, and if the `locked_by` user is not the same -// as the user performing the Publish. Audit fields updated include -// last_published_timestamp, last_published_by, last_modified_timestamp, -// last_modified_by. Any existing lock is on this integration is -// released. +// Publish: This RPC throws an exception if the integration is in ARCHIVED or +// ACTIVE state. This RPC throws an exception if the version being published is +// DRAFT, and if the `locked_by` user is not the same as the user performing +// the Publish. Audit fields updated include last_published_timestamp, +// last_published_by, last_modified_timestamp, last_modified_by. Any existing +// lock is on this integration is released. // // - name: The version to publish. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Publish(name string, googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsPublishCall { c := &ProjectsLocationsProductsIntegrationsVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -22160,23 +16756,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Publish(name stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsPublishCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsPublishCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22185,18 +16779,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Header() http } func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphapublishintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:publish") @@ -22209,19 +16797,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.publish" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22252,38 +16836,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Do(opts ...go return nil, err } return ret, nil - // { - // "description": "This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:publish", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.publish", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:publish", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.takeoverEditLock": +} type ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall struct { s *Service @@ -22294,22 +16847,21 @@ type ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall struct { header_ http.Header } -// TakeoverEditLock: Clears the `locked_by` and `locked_at_timestamp`in -// the DRAFT version of this integration. It then performs the same -// action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT -// version of the integration as a SNAPSHOT and then creates a new DRAFT -// version with the `locked_by` set to the `user_taking_over` and the -// `locked_at_timestamp` set to the current timestamp). Both the -// `locked_by` and `user_taking_over` are notified via email about the -// takeover. This RPC throws an exception if the integration is not in -// DRAFT status or if the `locked_by` and `locked_at_timestamp` fields -// are not set.The TakeoverEdit lock is treated the same as an edit of -// the integration, and hence shares ACLs with edit. Audit fields -// updated include last_modified_timestamp, last_modified_by. +// TakeoverEditLock: Clears the `locked_by` and `locked_at_timestamp`in the +// DRAFT version of this integration. It then performs the same action as the +// CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the +// integration as a SNAPSHOT and then creates a new DRAFT version with the +// `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set +// to the current timestamp). Both the `locked_by` and `user_taking_over` are +// notified via email about the takeover. This RPC throws an exception if the +// integration is not in DRAFT status or if the `locked_by` and +// `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated +// the same as an edit of the integration, and hence shares ACLs with edit. +// Audit fields updated include last_modified_timestamp, last_modified_by. // // - integrationVersion: The version to take over edit lock. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) TakeoverEditLock(integrationVersion string, googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest) *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall { c := &ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.integrationVersion = integrationVersion @@ -22318,23 +16870,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) TakeoverEditLock( } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22343,18 +16893,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Head } func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphatakeovereditlockrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+integrationVersion}:takeoverEditLock") @@ -22367,19 +16911,17 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) doRe googleapi.Expand(req.URL, map[string]string{ "integrationVersion": c.integrationVersion, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.takeoverEditLock" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22410,38 +16952,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Do(o return nil, err } return ret, nil - // { - // "description": "Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this integration. It then performs the same action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the integration as a SNAPSHOT and then creates a new DRAFT version with the `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to the current timestamp). Both the `locked_by` and `user_taking_over` are notified via email about the takeover. This RPC throws an exception if the integration is not in DRAFT status or if the `locked_by` and `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the same as an edit of the integration, and hence shares ACLs with edit. Audit fields updated include last_modified_timestamp, last_modified_by.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:takeoverEditLock", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.takeoverEditLock", - // "parameterOrder": [ - // "integrationVersion" - // ], - // "parameters": { - // "integrationVersion": { - // "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+integrationVersion}:takeoverEditLock", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.unpublish": +} type ProjectsLocationsProductsIntegrationsVersionsUnpublishCall struct { s *Service @@ -22452,15 +16963,15 @@ type ProjectsLocationsProductsIntegrationsVersionsUnpublishCall struct { header_ http.Header } -// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with -// a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and -// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception -// if the version being snapshot is not ACTIVE. Audit fields added -// include action, action_by, action_timestamp. +// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with a new +// tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and +// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception if the +// version being snapshot is not ACTIVE. Audit fields added include action, +// action_by, action_timestamp. // // - name: The version to deactivate. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/versions +// /{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Unpublish(name string, googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { c := &ProjectsLocationsProductsIntegrationsVersionsUnpublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -22469,23 +16980,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Unpublish(name st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22494,18 +17003,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Header() ht } func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:unpublish") @@ -22518,16 +17021,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.unpublish" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22558,38 +17060,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.unpublish", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}:unpublish", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrations.versions.upload": +} type ProjectsLocationsProductsIntegrationsVersionsUploadCall struct { s *Service @@ -22600,11 +17071,10 @@ type ProjectsLocationsProductsIntegrationsVersionsUploadCall struct { header_ http.Header } -// Upload: Uploads an integration. The content can be a previously -// downloaded integration. Performs the same function as -// CreateDraftIntegrationVersion, but accepts input in a string format, -// which holds the complete representation of the IntegrationVersion -// content. +// Upload: Uploads an integration. The content can be a previously downloaded +// integration. Performs the same function as CreateDraftIntegrationVersion, +// but accepts input in a string format, which holds the complete +// representation of the IntegrationVersion content. // // - parent: The version to upload. Format: // projects/{project}/locations/{location}/integrations/{integration}. @@ -22616,23 +17086,21 @@ func (r *ProjectsLocationsProductsIntegrationsVersionsService) Upload(parent str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsUploadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22641,18 +17109,12 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Header() http. } func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphauploadintegrationversionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/versions:upload") @@ -22665,19 +17127,15 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrations.versions.upload" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22708,38 +17166,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions:upload", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.versions.upload", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/versions:upload", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrationtemplates.versions.create": +} type ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall struct { s *Service @@ -22752,10 +17179,10 @@ type ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall struct { // Create: Creates an IntegrationTemplateVersion. // -// - parent: The parent resource where this TemplateVersion will be -// created. Format: -// projects/{project}/location/{location}/product/{product}/integration -// templates/{integrationtemplate}. +// - parent: The parent resource where this TemplateVersion will be created. +// Format: +// projects/{project}/location/{location}/product/{product}/integrationtemplat +// es/{integrationtemplate}. func (r *ProjectsLocationsProductsIntegrationtemplatesVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationtemplateversion *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion) *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall { c := &ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -22764,23 +17191,21 @@ func (r *ProjectsLocationsProductsIntegrationtemplatesVersionsService) Create(pa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22789,18 +17214,12 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) Header } func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationtemplateversion) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/versions") @@ -22813,19 +17232,15 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrationtemplates.versions.create" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.ServerRespon -// se.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.ServerResponse.Head +// er or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -22856,38 +17271,7 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsCreateCall) Do(opt return nil, err } return ret, nil - // { - // "description": "Creates an IntegrationTemplateVersion.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrationtemplates/{integrationtemplatesId}/versions", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrationtemplates.versions.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent resource where this TemplateVersion will be created. Format: projects/{project}/location/{location}/product/{product}/integrationtemplates/{integrationtemplate}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrationtemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/versions", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrationtemplates.versions.get": +} type ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall struct { s *Service @@ -22901,8 +17285,8 @@ type ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall struct { // Get: Returns an IntegrationTemplateVersion in the specified project. // // - name: The TemplateVersion to retrieve. Format: -// projects/{project}/locations/{location}/products/{product}/integrati -// ontemplates/{integrationtemplate}/versions/{version}. +// projects/{project}/locations/{location}/products/{product}/integrationtempl +// ates/{integrationtemplate}/versions/{version}. func (r *ProjectsLocationsProductsIntegrationtemplatesVersionsService) Get(name string) *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall { c := &ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -22910,33 +17294,29 @@ func (r *ProjectsLocationsProductsIntegrationtemplatesVersionsService) Get(name } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -22945,12 +17325,7 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) Header() } func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -22967,19 +17342,15 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrationtemplates.versions.get" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.ServerRespon -// se.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.ServerResponse.Head +// er or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23010,35 +17381,7 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsGetCall) Do(opts . return nil, err } return ret, nil - // { - // "description": "Returns an IntegrationTemplateVersion in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrationtemplates/{integrationtemplatesId}/versions/{versionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrationtemplates.versions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The TemplateVersion to retrieve. Format: projects/{project}/locations/{location}/products/{product}/integrationtemplates/{integrationtemplate}/versions/{version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrationtemplates/[^/]+/versions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.integrationtemplates.versions.list": +} type ProjectsLocationsProductsIntegrationtemplatesVersionsListCall struct { s *Service @@ -23049,73 +17392,68 @@ type ProjectsLocationsProductsIntegrationtemplatesVersionsListCall struct { header_ http.Header } -// List: Returns the list of all IntegrationTemplateVersions in the -// specified project. +// List: Returns the list of all IntegrationTemplateVersions in the specified +// project. // // - parent: Format: -// projects/{project}/location/{location}/product/{product}/integration -// templates/{integrationtemplate}. +// projects/{project}/location/{location}/product/{product}/integrationtemplat +// es/{integrationtemplate}. func (r *ProjectsLocationsProductsIntegrationtemplatesVersionsService) List(parent string) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { c := &ProjectsLocationsProductsIntegrationtemplatesVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Filter syntax: defined -// in the EBNF grammar. +// Filter sets the optional parameter "filter": Filter syntax: defined in the +// EBNF grammar. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of IntegrationTemplateVersions to return. The service may return -// fewer than this value. If unspecified, at most 50 versions will be -// returned. The maximum value is 1000; values above 1000 will be -// coerced to 1000. +// PageSize sets the optional parameter "pageSize": The maximum number of +// IntegrationTemplateVersions to return. The service may return fewer than +// this value. If unspecified, at most 50 versions will be returned. The +// maximum value is 1000; values above 1000 will be coerced to 1000. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListIntegrationTemplateVersions` call. -// Provide this to retrieve the subsequent page. When paginating, all -// other parameters provided to `ListIntegrationTemplateVersions` must -// match the call that provided the page token. +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListIntegrationTemplateVersions` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters provided +// to `ListIntegrationTemplateVersions` must match the call that provided the +// page token. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) PageToken(pageToken string) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23124,12 +17462,7 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Header() } func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23146,21 +17479,15 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.integrationtemplates.versions.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse -// -// or error will be non-nil. Any non-2xx status code is an error. -// -// Response headers are in either -// *GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse -// .ServerResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse.Server +// Response.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23191,48 +17518,6 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Do(opts return nil, err } return ret, nil - // { - // "description": "Returns the list of all IntegrationTemplateVersions in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrationtemplates/{integrationtemplatesId}/versions", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.integrationtemplates.versions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filter syntax: defined in the EBNF grammar.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of IntegrationTemplateVersions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListIntegrationTemplateVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationTemplateVersions` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Format: projects/{project}/location/{location}/product/{product}/integrationtemplates/{integrationtemplate}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrationtemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/versions", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -23240,7 +17525,7 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Do(opts // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -23256,8 +17541,6 @@ func (c *ProjectsLocationsProductsIntegrationtemplatesVersionsListCall) Pages(ct } } -// method id "integrations.projects.locations.products.sfdcInstances.create": - type ProjectsLocationsProductsSfdcInstancesCreateCall struct { s *Service parent string @@ -23267,8 +17550,8 @@ type ProjectsLocationsProductsSfdcInstancesCreateCall struct { header_ http.Header } -// Create: Creates an sfdc instance record. Store the sfdc instance in -// Spanner. Returns the sfdc instance. +// Create: Creates an sfdc instance record. Store the sfdc instance in Spanner. +// Returns the sfdc instance. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsProductsSfdcInstancesService) Create(parent string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsProductsSfdcInstancesCreateCall { @@ -23279,23 +17562,21 @@ func (r *ProjectsLocationsProductsSfdcInstancesService) Create(parent string, go } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23304,18 +17585,12 @@ func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Header() http.Header } func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sfdcInstances") @@ -23328,18 +17603,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23370,38 +17642,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesCreateCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.sfdcInstances.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/sfdcInstances", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.delete": +} type ProjectsLocationsProductsSfdcInstancesDeleteCall struct { s *Service @@ -23421,23 +17662,21 @@ func (r *ProjectsLocationsProductsSfdcInstancesService) Delete(name string) *Pro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23446,12 +17685,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Header() http.Header } func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -23465,16 +17699,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23505,35 +17738,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesDeleteCall) Do(opts ...googleapi. return nil, err } return ret, nil - // { - // "description": "Deletes an sfdc instance.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.sfdcInstances.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcInstance.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.get": +} type ProjectsLocationsProductsSfdcInstancesGetCall struct { s *Service @@ -23544,8 +17749,8 @@ type ProjectsLocationsProductsSfdcInstancesGetCall struct { header_ http.Header } -// Get: Gets an sfdc instance. If the instance doesn't exist, -// Code.NOT_FOUND exception will be thrown. +// Get: Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND +// exception will be thrown. // // - name: The name that is associated with the SfdcInstance. func (r *ProjectsLocationsProductsSfdcInstancesService) Get(name string) *ProjectsLocationsProductsSfdcInstancesGetCall { @@ -23555,33 +17760,29 @@ func (r *ProjectsLocationsProductsSfdcInstancesService) Get(name string) *Projec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsSfdcInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23590,12 +17791,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Header() http.Header { } func (c *ProjectsLocationsProductsSfdcInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23612,18 +17808,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23654,35 +17847,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesGetCall) Do(opts ...googleapi.Cal return nil, err } return ret, nil - // { - // "description": "Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.sfdcInstances.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcInstance.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.list": +} type ProjectsLocationsProductsSfdcInstancesListCall struct { s *Service @@ -23693,8 +17858,8 @@ type ProjectsLocationsProductsSfdcInstancesListCall struct { header_ http.Header } -// List: Lists all sfdc instances that match the filter. Restrict to -// sfdc instances belonging to the current client only. +// List: Lists all sfdc instances that match the filter. Restrict to sfdc +// instances belonging to the current client only. // // - parent: The client, which owns this collection of SfdcInstances. func (r *ProjectsLocationsProductsSfdcInstancesService) List(parent string) *ProjectsLocationsProductsSfdcInstancesListCall { @@ -23703,64 +17868,58 @@ func (r *ProjectsLocationsProductsSfdcInstancesService) List(parent string) *Pro return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/list-filters. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Filter(filter string) *ProjectsLocationsProductsSfdcInstancesListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsProductsSfdcInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsProductsSfdcInstancesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsProductsSfdcInstancesListCall) PageToken(pageToken string) *ProjectsLocationsProductsSfdcInstancesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the SfdcInstance's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the SfdcInstance's response. func (c *ProjectsLocationsProductsSfdcInstancesListCall) ReadMask(readMask string) *ProjectsLocationsProductsSfdcInstancesListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsSfdcInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23769,12 +17928,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesListCall) Header() http.Header { } func (c *ProjectsLocationsProductsSfdcInstancesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -23791,19 +17945,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -23834,54 +17984,6 @@ func (c *ProjectsLocationsProductsSfdcInstancesListCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.sfdcInstances.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of SfdcInstances.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the SfdcInstance's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/sfdcInstances", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -23889,7 +17991,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesListCall) Do(opts ...googleapi.Ca // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsSfdcInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -23905,8 +18007,6 @@ func (c *ProjectsLocationsProductsSfdcInstancesListCall) Pages(ctx context.Conte } } -// method id "integrations.projects.locations.products.sfdcInstances.patch": - type ProjectsLocationsProductsSfdcInstancesPatchCall struct { s *Service name string @@ -23916,12 +18016,11 @@ type ProjectsLocationsProductsSfdcInstancesPatchCall struct { header_ http.Header } -// Patch: Updates an sfdc instance. Updates the sfdc instance in -// spanner. Returns the sfdc instance. +// Patch: Updates an sfdc instance. Updates the sfdc instance in spanner. +// Returns the sfdc instance. // // - name: Resource name of the SFDC instance -// projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance} -// . +// projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}. func (r *ProjectsLocationsProductsSfdcInstancesService) Patch(name string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsProductsSfdcInstancesPatchCall { c := &ProjectsLocationsProductsSfdcInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -23929,32 +18028,30 @@ func (r *ProjectsLocationsProductsSfdcInstancesService) Patch(name string, googl return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above SfdcInstance that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above SfdcInstance that have been modified and need to be +// updated. func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsSfdcInstancesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -23963,18 +18060,12 @@ func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Header() http.Header { } func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -23987,18 +18078,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24029,44 +18117,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesPatchCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.sfdcInstances.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above SfdcInstance that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.create": +} type ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall struct { s *Service @@ -24077,8 +18128,8 @@ type ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall struct { header_ http.Header } -// Create: Creates an sfdc channel record. Store the sfdc channel in -// Spanner. Returns the sfdc channel. +// Create: Creates an sfdc channel record. Store the sfdc channel in Spanner. +// Returns the sfdc channel. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Create(parent string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall { @@ -24089,23 +18140,21 @@ func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Create(paren } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24114,18 +18163,12 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Header() } func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sfdcChannels") @@ -24138,18 +18181,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24180,38 +18220,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsCreateCall) Do(opts . return nil, err } return ret, nil - // { - // "description": "Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/sfdcChannels", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.delete": +} type ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall struct { s *Service @@ -24231,23 +18240,21 @@ func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Delete(name } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24256,12 +18263,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Header() } func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -24275,16 +18277,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24315,35 +18316,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsDeleteCall) Do(opts . return nil, err } return ret, nil - // { - // "description": "Deletes an sfdc channel.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcChannel.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.get": +} type ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall struct { s *Service @@ -24354,8 +18327,8 @@ type ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall struct { header_ http.Header } -// Get: Gets an sfdc channel. If the channel doesn't exist, -// Code.NOT_FOUND exception will be thrown. +// Get: Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND +// exception will be thrown. // // - name: The name that is associated with the SfdcChannel. func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Get(name string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { @@ -24365,33 +18338,29 @@ func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Get(name str } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24400,12 +18369,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Header() htt } func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24422,18 +18386,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24464,35 +18425,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsGetCall) Do(opts ...g return nil, err } return ret, nil - // { - // "description": "Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcChannel.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.list": +} type ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall struct { s *Service @@ -24513,64 +18446,58 @@ func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) List(parent return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/list-filters. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Filter(filter string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) PageSize(pageSize int64) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) PageToken(pageToken string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the SfdcChannel's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the SfdcChannel's response. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) ReadMask(readMask string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24579,12 +18506,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Header() ht } func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -24601,19 +18523,17 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24644,54 +18564,6 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Lists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of SfdcChannels.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the SfdcChannel's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/sfdcChannels", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -24699,7 +18571,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Do(opts ... // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -24715,8 +18587,6 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsListCall) Pages(ctx c } } -// method id "integrations.projects.locations.products.sfdcInstances.sfdcChannels.patch": - type ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall struct { s *Service name string @@ -24726,12 +18596,12 @@ type ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall struct { header_ http.Header } -// Patch: Updates an sfdc channel. Updates the sfdc channel in spanner. -// Returns the sfdc channel. +// Patch: Updates an sfdc channel. Updates the sfdc channel in spanner. Returns +// the sfdc channel. // // - name: Resource name of the SFDC channel -// projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance -// }/sfdcChannels/{sfdc_channel}. +// projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcC +// hannels/{sfdc_channel}. func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Patch(name string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { c := &ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -24739,32 +18609,30 @@ func (r *ProjectsLocationsProductsSfdcInstancesSfdcChannelsService) Patch(name s return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above SfdcChannel that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above SfdcChannel that have been modified and need to be +// updated. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Context(ctx context.Context) *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24773,18 +18641,12 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Header() h } func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -24797,18 +18659,15 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.products.sfdcInstances.sfdcChannels.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24839,44 +18698,7 @@ func (c *ProjectsLocationsProductsSfdcInstancesSfdcChannelsPatchCall) Do(opts .. return nil, err } return ret, nil - // { - // "description": "Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.products.sfdcInstances.sfdcChannels.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above SfdcChannel that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.create": +} type ProjectsLocationsSfdcInstancesCreateCall struct { s *Service @@ -24887,8 +18709,8 @@ type ProjectsLocationsSfdcInstancesCreateCall struct { header_ http.Header } -// Create: Creates an sfdc instance record. Store the sfdc instance in -// Spanner. Returns the sfdc instance. +// Create: Creates an sfdc instance record. Store the sfdc instance in Spanner. +// Returns the sfdc instance. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsSfdcInstancesService) Create(parent string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsSfdcInstancesCreateCall { @@ -24899,23 +18721,21 @@ func (r *ProjectsLocationsSfdcInstancesService) Create(parent string, googleclou } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -24924,18 +18744,12 @@ func (c *ProjectsLocationsSfdcInstancesCreateCall) Header() http.Header { } func (c *ProjectsLocationsSfdcInstancesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sfdcInstances") @@ -24948,18 +18762,15 @@ func (c *ProjectsLocationsSfdcInstancesCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -24990,38 +18801,7 @@ func (c *ProjectsLocationsSfdcInstancesCreateCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/sfdcInstances", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.sfdcInstances.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/sfdcInstances", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.delete": +} type ProjectsLocationsSfdcInstancesDeleteCall struct { s *Service @@ -25041,23 +18821,21 @@ func (r *ProjectsLocationsSfdcInstancesService) Delete(name string) *ProjectsLoc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25066,12 +18844,7 @@ func (c *ProjectsLocationsSfdcInstancesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsSfdcInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -25085,16 +18858,15 @@ func (c *ProjectsLocationsSfdcInstancesDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsSfdcInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25125,35 +18897,7 @@ func (c *ProjectsLocationsSfdcInstancesDeleteCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Deletes an sfdc instance.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.sfdcInstances.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcInstance.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.get": +} type ProjectsLocationsSfdcInstancesGetCall struct { s *Service @@ -25164,8 +18908,8 @@ type ProjectsLocationsSfdcInstancesGetCall struct { header_ http.Header } -// Get: Gets an sfdc instance. If the instance doesn't exist, -// Code.NOT_FOUND exception will be thrown. +// Get: Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND +// exception will be thrown. // // - name: The name that is associated with the SfdcInstance. func (r *ProjectsLocationsSfdcInstancesService) Get(name string) *ProjectsLocationsSfdcInstancesGetCall { @@ -25175,33 +18919,29 @@ func (r *ProjectsLocationsSfdcInstancesService) Get(name string) *ProjectsLocati } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsSfdcInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25210,12 +18950,7 @@ func (c *ProjectsLocationsSfdcInstancesGetCall) Header() http.Header { } func (c *ProjectsLocationsSfdcInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25232,18 +18967,15 @@ func (c *ProjectsLocationsSfdcInstancesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25274,35 +19006,7 @@ func (c *ProjectsLocationsSfdcInstancesGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.sfdcInstances.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcInstance.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.list": +} type ProjectsLocationsSfdcInstancesListCall struct { s *Service @@ -25313,8 +19017,8 @@ type ProjectsLocationsSfdcInstancesListCall struct { header_ http.Header } -// List: Lists all sfdc instances that match the filter. Restrict to -// sfdc instances belonging to the current client only. +// List: Lists all sfdc instances that match the filter. Restrict to sfdc +// instances belonging to the current client only. // // - parent: The client, which owns this collection of SfdcInstances. func (r *ProjectsLocationsSfdcInstancesService) List(parent string) *ProjectsLocationsSfdcInstancesListCall { @@ -25323,64 +19027,58 @@ func (r *ProjectsLocationsSfdcInstancesService) List(parent string) *ProjectsLoc return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/list-filters. func (c *ProjectsLocationsSfdcInstancesListCall) Filter(filter string) *ProjectsLocationsSfdcInstancesListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsSfdcInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsSfdcInstancesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsSfdcInstancesListCall) PageToken(pageToken string) *ProjectsLocationsSfdcInstancesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the SfdcInstance's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the SfdcInstance's response. func (c *ProjectsLocationsSfdcInstancesListCall) ReadMask(readMask string) *ProjectsLocationsSfdcInstancesListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsSfdcInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesListCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25389,12 +19087,7 @@ func (c *ProjectsLocationsSfdcInstancesListCall) Header() http.Header { } func (c *ProjectsLocationsSfdcInstancesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -25411,19 +19104,15 @@ func (c *ProjectsLocationsSfdcInstancesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25454,54 +19143,6 @@ func (c *ProjectsLocationsSfdcInstancesListCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/sfdcInstances", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.sfdcInstances.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of SfdcInstances.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the SfdcInstance's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/sfdcInstances", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -25509,7 +19150,7 @@ func (c *ProjectsLocationsSfdcInstancesListCall) Do(opts ...googleapi.CallOption // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsSfdcInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -25525,8 +19166,6 @@ func (c *ProjectsLocationsSfdcInstancesListCall) Pages(ctx context.Context, f fu } } -// method id "integrations.projects.locations.sfdcInstances.patch": - type ProjectsLocationsSfdcInstancesPatchCall struct { s *Service name string @@ -25536,12 +19175,11 @@ type ProjectsLocationsSfdcInstancesPatchCall struct { header_ http.Header } -// Patch: Updates an sfdc instance. Updates the sfdc instance in -// spanner. Returns the sfdc instance. +// Patch: Updates an sfdc instance. Updates the sfdc instance in spanner. +// Returns the sfdc instance. // // - name: Resource name of the SFDC instance -// projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance} -// . +// projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}. func (r *ProjectsLocationsSfdcInstancesService) Patch(name string, googlecloudintegrationsv1alphasfdcinstance *GoogleCloudIntegrationsV1alphaSfdcInstance) *ProjectsLocationsSfdcInstancesPatchCall { c := &ProjectsLocationsSfdcInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -25549,32 +19187,30 @@ func (r *ProjectsLocationsSfdcInstancesService) Patch(name string, googlecloudin return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above SfdcInstance that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above SfdcInstance that have been modified and need to be +// updated. func (c *ProjectsLocationsSfdcInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSfdcInstancesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesPatchCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25583,18 +19219,12 @@ func (c *ProjectsLocationsSfdcInstancesPatchCall) Header() http.Header { } func (c *ProjectsLocationsSfdcInstancesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -25607,18 +19237,15 @@ func (c *ProjectsLocationsSfdcInstancesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcInstance or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcInstance.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25649,44 +19276,7 @@ func (c *ProjectsLocationsSfdcInstancesPatchCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.sfdcInstances.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above SfdcInstance that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.create": +} type ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall struct { s *Service @@ -25697,8 +19287,8 @@ type ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall struct { header_ http.Header } -// Create: Creates an sfdc channel record. Store the sfdc channel in -// Spanner. Returns the sfdc channel. +// Create: Creates an sfdc channel record. Store the sfdc channel in Spanner. +// Returns the sfdc channel. // // - parent: "projects/{project}/locations/{location}" format. func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Create(parent string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall { @@ -25709,23 +19299,21 @@ func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Create(parent string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25734,18 +19322,12 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Header() http.Hea } func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sfdcChannels") @@ -25758,18 +19340,15 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.create" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25800,38 +19379,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsCreateCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. \"projects/{project}/locations/{location}\" format.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/sfdcChannels", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.delete": +} type ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall struct { s *Service @@ -25851,23 +19399,21 @@ func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Delete(name string) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -25876,12 +19422,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Header() http.Hea } func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -25895,16 +19436,15 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -25935,35 +19475,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsDeleteCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Deletes an sfdc channel.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "DELETE", - // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcChannel.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.get": +} type ProjectsLocationsSfdcInstancesSfdcChannelsGetCall struct { s *Service @@ -25974,8 +19486,8 @@ type ProjectsLocationsSfdcInstancesSfdcChannelsGetCall struct { header_ http.Header } -// Get: Gets an sfdc channel. If the channel doesn't exist, -// Code.NOT_FOUND exception will be thrown. +// Get: Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND +// exception will be thrown. // // - name: The name that is associated with the SfdcChannel. func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Get(name string) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { @@ -25985,33 +19497,29 @@ func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Get(name string) *Pr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26020,12 +19528,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Header() http.Header } func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26042,18 +19545,15 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26084,35 +19584,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsGetCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name that is associated with the SfdcChannel.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.list": +} type ProjectsLocationsSfdcInstancesSfdcChannelsListCall struct { s *Service @@ -26133,64 +19605,58 @@ func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) List(parent string) return c } -// Filter sets the optional parameter "filter": Filtering as supported -// in +// Filter sets the optional parameter "filter": Filtering as supported in // https://developers.google.com/authorized-buyers/apis/guides/list-filters. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Filter(filter string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The size of entries -// in the response. If unspecified, defaults to 100. +// PageSize sets the optional parameter "pageSize": The size of entries in the +// response. If unspecified, defaults to 100. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) PageSize(pageSize int64) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The token returned -// in the previous response. +// PageToken sets the optional parameter "pageToken": The token returned in the +// previous response. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) PageToken(pageToken string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": The mask which -// specifies fields that need to be returned in the SfdcChannel's -// response. +// ReadMask sets the optional parameter "readMask": The mask which specifies +// fields that need to be returned in the SfdcChannel's response. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) ReadMask(readMask string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26199,12 +19665,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Header() http.Heade } func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -26221,19 +19682,17 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26264,54 +19723,6 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Lists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The size of entries in the response. If unspecified, defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The token returned in the previous response.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The client, which owns this collection of SfdcChannels.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "The mask which specifies fields that need to be returned in the SfdcChannel's response.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/sfdcChannels", - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -26319,7 +19730,7 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Do(opts ...googleap // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -26335,8 +19746,6 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsListCall) Pages(ctx context.C } } -// method id "integrations.projects.locations.sfdcInstances.sfdcChannels.patch": - type ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall struct { s *Service name string @@ -26346,12 +19755,12 @@ type ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall struct { header_ http.Header } -// Patch: Updates an sfdc channel. Updates the sfdc channel in spanner. -// Returns the sfdc channel. +// Patch: Updates an sfdc channel. Updates the sfdc channel in spanner. Returns +// the sfdc channel. // // - name: Resource name of the SFDC channel -// projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance -// }/sfdcChannels/{sfdc_channel}. +// projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcC +// hannels/{sfdc_channel}. func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Patch(name string, googlecloudintegrationsv1alphasfdcchannel *GoogleCloudIntegrationsV1alphaSfdcChannel) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { c := &ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -26359,32 +19768,30 @@ func (r *ProjectsLocationsSfdcInstancesSfdcChannelsService) Patch(name string, g return c } -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above SfdcChannel that have been -// modified and need to be updated. +// UpdateMask sets the optional parameter "updateMask": Field mask specifying +// the fields in the above SfdcChannel that have been modified and need to be +// updated. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Context(ctx context.Context) *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -26393,18 +19800,12 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Header() http.Head } func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphasfdcchannel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -26417,18 +19818,15 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "integrations.projects.locations.sfdcInstances.sfdcChannels.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaSfdcChannel or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudIntegrationsV1alphaSfdcChannel.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaSfdcChannel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -26459,39 +19857,4 @@ func (c *ProjectsLocationsSfdcInstancesSfdcChannelsPatchCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/sfdcInstances/{sfdcInstancesId}/sfdcChannels/{sfdcChannelsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.sfdcInstances.sfdcChannels.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sfdcInstances/[^/]+/sfdcChannels/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above SfdcChannel that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaSfdcChannel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/internal/gensupport/resumable.go b/internal/gensupport/resumable.go index f828ddb60e6..63169f33eca 100644 --- a/internal/gensupport/resumable.go +++ b/internal/gensupport/resumable.go @@ -99,7 +99,7 @@ func (rx *ResumableUpload) doUploadRequest(ctx context.Context, data io.Reader, // 308" response header. req.Header.Set("X-GUploader-No-308", "yes") - return SendRequest(ctx, rx.Client, req) + return SendRequest(ctx, rx.Client, req, false) } func statusResumeIncomplete(resp *http.Response) bool { diff --git a/internal/gensupport/send.go b/internal/gensupport/send.go index f6716134ebf..136842bc269 100644 --- a/internal/gensupport/send.go +++ b/internal/gensupport/send.go @@ -43,7 +43,7 @@ func (e wrappedCallErr) Is(target error) bool { // If ctx is non-nil, it calls all hooks, then sends the request with // req.WithContext, then calls any functions returned by the hooks in // reverse order. -func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) { +func SendRequest(ctx context.Context, client *http.Client, req *http.Request, allowZipped bool) (*http.Response, error) { // Add headers set in context metadata. if ctx != nil { headers := callctx.HeadersFromContext(ctx) @@ -72,8 +72,10 @@ func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (* // Disallow Accept-Encoding because it interferes with the automatic gzip handling // done by the default http.Transport. See https://github.com/google/google-api-go-client/issues/219. - if _, ok := req.Header["Accept-Encoding"]; ok { - return nil, errors.New("google api: custom Accept-Encoding headers not allowed") + if !allowZipped { + if _, ok := req.Header["Accept-Encoding"]; ok { + return nil, errors.New("google api: custom Accept-Encoding headers not allowed") + } } if ctx == nil { return client.Do(req) @@ -103,7 +105,7 @@ func send(ctx context.Context, client *http.Client, req *http.Request) (*http.Re // If ctx is non-nil, it calls all hooks, then sends the request with // req.WithContext, then calls any functions returned by the hooks in // reverse order. -func SendRequestWithRetry(ctx context.Context, client *http.Client, req *http.Request, retry *RetryConfig) (*http.Response, error) { +func SendRequestWithRetry(ctx context.Context, client *http.Client, req *http.Request, retry *RetryConfig, allowZipped bool) (*http.Response, error) { // Add headers set in context metadata. if ctx != nil { headers := callctx.HeadersFromContext(ctx) @@ -116,8 +118,10 @@ func SendRequestWithRetry(ctx context.Context, client *http.Client, req *http.Re // Disallow Accept-Encoding because it interferes with the automatic gzip handling // done by the default http.Transport. See https://github.com/google/google-api-go-client/issues/219. - if _, ok := req.Header["Accept-Encoding"]; ok { - return nil, errors.New("google api: custom Accept-Encoding headers not allowed") + if !allowZipped { + if _, ok := req.Header["Accept-Encoding"]; ok { + return nil, errors.New("google api: custom Accept-Encoding headers not allowed") + } } if ctx == nil { return client.Do(req) diff --git a/internal/gensupport/send_test.go b/internal/gensupport/send_test.go index 502ab352ebd..0277892514d 100644 --- a/internal/gensupport/send_test.go +++ b/internal/gensupport/send_test.go @@ -10,6 +10,7 @@ import ( "fmt" "net/http" "regexp" + "strings" "testing" "github.com/google/go-cmp/cmp" @@ -20,20 +21,31 @@ func TestSendRequest(t *testing.T) { // Setting Accept-Encoding should give an error immediately. req, _ := http.NewRequest("GET", "url", nil) req.Header.Set("Accept-Encoding", "") - _, err := SendRequest(context.Background(), nil, req) + _, err := SendRequest(context.Background(), nil, req, false) if err == nil { t.Error("got nil, want error") } + + // Setting Accept-Encoding should not return an error if zipped responses allowed. + _, err = SendRequest(context.Background(), nil, req, true) + if strings.Contains(err.Error(), "custom Accept-Encoding headers not allowed") { + t.Errorf("Accept-Encoding should be allowed, got err: %v", err) + } } func TestSendRequestWithRetry(t *testing.T) { // Setting Accept-Encoding should give an error immediately. req, _ := http.NewRequest("GET", "url", nil) req.Header.Set("Accept-Encoding", "") - _, err := SendRequestWithRetry(context.Background(), nil, req, nil) + _, err := SendRequestWithRetry(context.Background(), nil, req, nil, false) if err == nil { t.Error("got nil, want error") } + // Setting Accept-Encoding should not return an error if zipped responses allowed. + _, err = SendRequest(context.Background(), nil, req, true) + if strings.Contains(err.Error(), "custom Accept-Encoding headers not allowed") { + t.Errorf("Accept-Encoding should be allowed, got err: %v", err) + } } type headerRoundTripper struct { @@ -71,14 +83,14 @@ func TestSendRequestHeader(t *testing.T) { client := http.Client{Transport: transport} req, _ := http.NewRequest("GET", "url", nil) - if _, err := SendRequest(ctx, &client, req); err != nil { + if _, err := SendRequest(ctx, &client, req, false); err != nil { t.Errorf("SendRequest: %v", err) } // SendRequestWithRetry adds retry and idempotency headers transport.wantXgoogAPIRegex = "^gccl-invocation-id/.{36} gccl-attempt-count/[0-9]+ $" req2, _ := http.NewRequest("GET", "url", nil) - if _, err := SendRequestWithRetry(ctx, &client, req2, nil); err != nil { + if _, err := SendRequestWithRetry(ctx, &client, req2, nil, false); err != nil { t.Errorf("SendRequestWithRetry: %v", err) } } @@ -97,14 +109,14 @@ func TestSendRequestXgoogHeaderxxx(t *testing.T) { client := http.Client{Transport: transport} req, _ := http.NewRequest("GET", "url", nil) - if _, err := SendRequest(ctx, &client, req); err != nil { + if _, err := SendRequest(ctx, &client, req, false); err != nil { t.Errorf("SendRequest: %v", err) } // SendRequestWithRetry adds retry and idempotency headers transport.wantXgoogAPIRegex = fmt.Sprintf("^gccl-invocation-id/.{36} gccl-attempt-count/[0-9]+ %s$", transport.wantXgoogAPIRegex[1:len(transport.wantXgoogAPIRegex)-1]) req2, _ := http.NewRequest("GET", "url", nil) - if _, err := SendRequestWithRetry(ctx, &client, req2, nil); err != nil { + if _, err := SendRequestWithRetry(ctx, &client, req2, nil, false); err != nil { t.Errorf("SendRequestWithRetry: %v", err) } } @@ -123,7 +135,7 @@ func TestCanceledContextDoesNotPerformRequest(t *testing.T) { req, _ := http.NewRequest("GET", "url", nil) ctx, cancel := context.WithCancel(context.Background()) cancel() - _, err := SendRequestWithRetry(ctx, &client, req, nil) + _, err := SendRequestWithRetry(ctx, &client, req, nil, false) if !errors.Is(err, context.Canceled) { t.Fatalf("got %v, want %v", err, context.Canceled) } diff --git a/jobs/v2/jobs-gen.go b/jobs/v2/jobs-gen.go index 157df08619e..20d54469ba1 100644 --- a/jobs/v2/jobs-gen.go +++ b/jobs/v2/jobs-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/talent-solution/job-search/docs/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // jobsService, err := jobs.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // jobsService, err := jobs.NewService(ctx, option.WithScopes(jobs.JobsScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // jobsService, err := jobs.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // jobsService, err := jobs.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package jobs // import "google.golang.org/api/jobs/v2" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "jobs:v2" const apiName = "jobs" const apiVersion = "v2" const basePath = "https://jobs.googleapis.com/" +const basePathTemplate = "https://jobs.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://jobs.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -92,14 +109,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/jobs", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -195,60 +214,46 @@ type BatchDeleteJobsRequest struct { // `companyName` (Required) * `requisitionId` (Required) Sample Query: // companyName = "companies/123" AND requisitionId = "req-1" Filter string `json:"filter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchDeleteJobsRequest) MarshalJSON() ([]byte, error) { +func (s BatchDeleteJobsRequest) MarshalJSON() ([]byte, error) { type NoMethod BatchDeleteJobsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BucketRange: Represents starting and ending value of a range in -// double. +// BucketRange: Represents starting and ending value of a range in double. type BucketRange struct { // From: Starting value of the bucket range. From float64 `json:"from,omitempty"` - // To: Ending value of the bucket range. To float64 `json:"to,omitempty"` - - // ForceSendFields is a list of field names (e.g. "From") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "From") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "From") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "From") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketRange) MarshalJSON() ([]byte, error) { +func (s BucketRange) MarshalJSON() ([]byte, error) { type NoMethod BucketRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *BucketRange) UnmarshalJSON(data []byte) error { @@ -271,158 +276,124 @@ func (s *BucketRange) UnmarshalJSON(data []byte) error { type BucketizedCount struct { // Count: Number of jobs whose numeric field value fall into `range`. Count int64 `json:"count,omitempty"` - - // Range: Bucket range on which histogram was performed for the numeric - // field, that is, the count represents number of jobs in this range. + // Range: Bucket range on which histogram was performed for the numeric field, + // that is, the count represents number of jobs in this range. Range *BucketRange `json:"range,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Count") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Count") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Count") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketizedCount) MarshalJSON() ([]byte, error) { +func (s BucketizedCount) MarshalJSON() ([]byte, error) { type NoMethod BucketizedCount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommuteInfo: Output only. Commute details related to this job. type CommuteInfo struct { - // JobLocation: Location used as the destination in the commute - // calculation. + // JobLocation: Location used as the destination in the commute calculation. JobLocation *JobLocation `json:"jobLocation,omitempty"` - - // TravelDuration: The number of seconds required to travel to the job - // location from the query location. A duration of 0 seconds indicates - // that the job is not reachable within the requested duration, but was - // returned as part of an expanded query. + // TravelDuration: The number of seconds required to travel to the job location + // from the query location. A duration of 0 seconds indicates that the job is + // not reachable within the requested duration, but was returned as part of an + // expanded query. TravelDuration string `json:"travelDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobLocation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "JobLocation") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "JobLocation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommuteInfo) MarshalJSON() ([]byte, error) { +func (s CommuteInfo) MarshalJSON() ([]byte, error) { type NoMethod CommuteInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommutePreference: Input only. Parameters needed for commute search. type CommutePreference struct { - // AllowNonStreetLevelAddress: Optional. If `true`, jobs without street - // level addresses may also be returned. For city level addresses, the - // city center is used. For state and coarser level addresses, text - // matching is used. If this field is set to `false` or is not - // specified, only jobs that include street level addresses will be - // returned by commute search. + // AllowNonStreetLevelAddress: Optional. If `true`, jobs without street level + // addresses may also be returned. For city level addresses, the city center is + // used. For state and coarser level addresses, text matching is used. If this + // field is set to `false` or is not specified, only jobs that include street + // level addresses will be returned by commute search. AllowNonStreetLevelAddress bool `json:"allowNonStreetLevelAddress,omitempty"` - - // DepartureHourLocal: Optional. The departure hour to use to calculate - // traffic impact. Accepts an integer between 0 and 23, representing the - // hour in the time zone of the start_location. Must not be present if - // road_traffic is specified. + // DepartureHourLocal: Optional. The departure hour to use to calculate traffic + // impact. Accepts an integer between 0 and 23, representing the hour in the + // time zone of the start_location. Must not be present if road_traffic is + // specified. DepartureHourLocal int64 `json:"departureHourLocal,omitempty"` - - // Method: Required. The method of transportation for which to calculate - // the commute time. + // Method: Required. The method of transportation for which to calculate the + // commute time. // // Possible values: // "COMMUTE_METHOD_UNSPECIFIED" - Commute method is not specified. // "DRIVING" - Commute time is calculated based on driving time. - // "TRANSIT" - Commute time is calculated based on public transit - // including bus, metro, subway, etc. + // "TRANSIT" - Commute time is calculated based on public transit including + // bus, metro, subway, etc. Method string `json:"method,omitempty"` - - // RoadTraffic: Optional. Specifies the traffic density to use when - // calculating commute time. Must not be present if departure_hour_local - // is specified. + // RoadTraffic: Optional. Specifies the traffic density to use when calculating + // commute time. Must not be present if departure_hour_local is specified. // // Possible values: - // "ROAD_TRAFFIC_UNSPECIFIED" - Road traffic situation is not - // specified. - // "TRAFFIC_FREE" - Optimal commute time without considering any - // traffic impact. - // "BUSY_HOUR" - Commute time calculation takes in account the peak - // traffic impact. + // "ROAD_TRAFFIC_UNSPECIFIED" - Road traffic situation is not specified. + // "TRAFFIC_FREE" - Optimal commute time without considering any traffic + // impact. + // "BUSY_HOUR" - Commute time calculation takes in account the peak traffic + // impact. RoadTraffic string `json:"roadTraffic,omitempty"` - - // StartLocation: Required. The latitude and longitude of the location - // from which to calculate the commute time. + // StartLocation: Required. The latitude and longitude of the location from + // which to calculate the commute time. StartLocation *LatLng `json:"startLocation,omitempty"` - // TravelTime: Required. The maximum travel time in seconds. The maximum // allowed value is `3600s` (one hour). Format is `123s`. TravelTime string `json:"travelTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllowNonStreetLevelAddress") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AllowNonStreetLevelAddress") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AllowNonStreetLevelAddress") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AllowNonStreetLevelAddress") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommutePreference) MarshalJSON() ([]byte, error) { +func (s CommutePreference) MarshalJSON() ([]byte, error) { type NoMethod CommutePreference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Company: A Company resource represents a company in the service. A -// company is the entity that owns job listings, that is, the hiring -// entity responsible for employing applicants for the job position. +// Company: A Company resource represents a company in the service. A company +// is the entity that owns job listings, that is, the hiring entity responsible +// for employing applicants for the job position. type Company struct { - // CareerPageLink: Optional. The URL to employer's career site or - // careers page on the employer's web site. + // CareerPageLink: Optional. The URL to employer's career site or careers page + // on the employer's web site. CareerPageLink string `json:"careerPageLink,omitempty"` - - // CompanyInfoSources: Optional. Identifiers external to the application - // that help to further identify the employer. + // CompanyInfoSources: Optional. Identifiers external to the application that + // help to further identify the employer. CompanyInfoSources []*CompanyInfoSource `json:"companyInfoSources,omitempty"` - // CompanySize: Optional. The employer's company size. // // Possible values: - // "COMPANY_SIZE_UNSPECIFIED" - Default value if the size is not - // specified. + // "COMPANY_SIZE_UNSPECIFIED" - Default value if the size is not specified. // "MINI" - The company has less than 50 employees. // "SMALL" - The company has between 50 and 99 employees. // "SMEDIUM" - The company has between 100 and 499 employees. @@ -431,198 +402,156 @@ type Company struct { // "BIGGER" - The company has between 5,000 and 9,999 employees. // "GIANT" - The company has 10,000 or more employees. CompanySize string `json:"companySize,omitempty"` - - // DisableLocationOptimization: Deprecated. Do not use this field. - // Optional. This field is no longer used. Any value set to it is - // ignored. + // DisableLocationOptimization: Deprecated. Do not use this field. Optional. + // This field is no longer used. Any value set to it is ignored. DisableLocationOptimization bool `json:"disableLocationOptimization,omitempty"` - - // DisplayName: Required. The name of the employer to be displayed with - // the job, for example, "Google, LLC.". + // DisplayName: Required. The name of the employer to be displayed with the + // job, for example, "Google, LLC.". DisplayName string `json:"displayName,omitempty"` - // DistributorBillingCompanyId: Optional. The unique company identifier // provided by the client to identify an employer for billing purposes. - // Recommended practice is to use the distributor_company_id. Defaults - // to same value as distributor_company_id when a value is not provided. + // Recommended practice is to use the distributor_company_id. Defaults to same + // value as distributor_company_id when a value is not provided. DistributorBillingCompanyId string `json:"distributorBillingCompanyId,omitempty"` - - // DistributorCompanyId: Required. A client's company identifier, used - // to uniquely identify the company. If an employer has a subsidiary or - // sub-brand, such as "Alphabet" and "Google", which the client wishes - // to use as the company displayed on the job. Best practice is to - // create a distinct company identifier for each distinct brand - // displayed. The maximum number of allowed characters is 255. + // DistributorCompanyId: Required. A client's company identifier, used to + // uniquely identify the company. If an employer has a subsidiary or sub-brand, + // such as "Alphabet" and "Google", which the client wishes to use as the + // company displayed on the job. Best practice is to create a distinct company + // identifier for each distinct brand displayed. The maximum number of allowed + // characters is 255. DistributorCompanyId string `json:"distributorCompanyId,omitempty"` - - // EeoText: Optional. Equal Employment Opportunity legal disclaimer text - // to be associated with all jobs, and typically to be displayed in all - // roles. The maximum number of allowed characters is 500. + // EeoText: Optional. Equal Employment Opportunity legal disclaimer text to be + // associated with all jobs, and typically to be displayed in all roles. The + // maximum number of allowed characters is 500. EeoText string `json:"eeoText,omitempty"` - - // HiringAgency: Optional. Set to true if it is the hiring agency that - // post jobs for other employers. Defaults to false if not provided. + // HiringAgency: Optional. Set to true if it is the hiring agency that post + // jobs for other employers. Defaults to false if not provided. HiringAgency bool `json:"hiringAgency,omitempty"` - - // HqLocation: Optional. The street address of the company's main - // headquarters, which may be different from the job location. The - // service attempts to geolocate the provided address, and populates a - // more specific location wherever possible in - // structured_company_hq_location. + // HqLocation: Optional. The street address of the company's main headquarters, + // which may be different from the job location. The service attempts to + // geolocate the provided address, and populates a more specific location + // wherever possible in structured_company_hq_location. HqLocation string `json:"hqLocation,omitempty"` - // ImageUrl: Optional. A URL that hosts the employer's company logo. If - // provided, the logo image should be squared at 80x80 pixels. The url - // must be a Google Photos or Google Album url. Only images in these - // Google sub-domains are accepted. + // provided, the logo image should be squared at 80x80 pixels. The url must be + // a Google Photos or Google Album url. Only images in these Google sub-domains + // are accepted. ImageUrl string `json:"imageUrl,omitempty"` - - // KeywordSearchableCustomAttributes: Optional. A list of keys of - // filterable Job.custom_attributes, whose corresponding `string_values` - // are used in keyword search. Jobs with `string_values` under these - // specified field keys are returned if any of the values matches the - // search keyword. Custom field values with parenthesis, brackets and - // special symbols might not be properly searchable, and those keyword - // queries need to be surrounded by quotes. + // KeywordSearchableCustomAttributes: Optional. A list of keys of filterable + // Job.custom_attributes, whose corresponding `string_values` are used in + // keyword search. Jobs with `string_values` under these specified field keys + // are returned if any of the values matches the search keyword. Custom field + // values with parenthesis, brackets and special symbols might not be properly + // searchable, and those keyword queries need to be surrounded by quotes. KeywordSearchableCustomAttributes []string `json:"keywordSearchableCustomAttributes,omitempty"` - // KeywordSearchableCustomFields: Deprecated. Use - // keyword_searchable_custom_attributes instead. Optional. A list of - // filterable custom fields that should be used in keyword search. The - // jobs of this company are returned if any of these custom fields - // matches the search keyword. Custom field values with parenthesis, - // brackets and special symbols might not be properly searchable, and - // those keyword queries need to be surrounded by quotes. + // keyword_searchable_custom_attributes instead. Optional. A list of filterable + // custom fields that should be used in keyword search. The jobs of this + // company are returned if any of these custom fields matches the search + // keyword. Custom field values with parenthesis, brackets and special symbols + // might not be properly searchable, and those keyword queries need to be + // surrounded by quotes. KeywordSearchableCustomFields []int64 `json:"keywordSearchableCustomFields,omitempty"` - - // Name: Required during company update. The resource name for a - // company. This is generated by the service when a company is created, - // for example, "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". + // Name: Required during company update. The resource name for a company. This + // is generated by the service when a company is created, for example, + // "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". Name string `json:"name,omitempty"` - - // StructuredCompanyHqLocation: Output only. A structured headquarters - // location of the company, resolved from hq_location if possible. + // StructuredCompanyHqLocation: Output only. A structured headquarters location + // of the company, resolved from hq_location if possible. StructuredCompanyHqLocation *JobLocation `json:"structuredCompanyHqLocation,omitempty"` - // Suspended: Output only. Indicates whether a company is flagged to be - // suspended from public availability by the service when job content - // appears suspicious, abusive, or spammy. + // suspended from public availability by the service when job content appears + // suspicious, abusive, or spammy. Suspended bool `json:"suspended,omitempty"` - - // Title: Deprecated. Use display_name instead. Required. The name of - // the employer to be displayed with the job, for example, "Google, - // LLC.". + // Title: Deprecated. Use display_name instead. Required. The name of the + // employer to be displayed with the job, for example, "Google, LLC.". Title string `json:"title,omitempty"` - - // Website: Optional. The URL representing the company's primary web - // site or home page, such as, "www.google.com". + // Website: Optional. The URL representing the company's primary web site or + // home page, such as, "www.google.com". Website string `json:"website,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CareerPageLink") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CareerPageLink") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CareerPageLink") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Company) MarshalJSON() ([]byte, error) { +func (s Company) MarshalJSON() ([]byte, error) { type NoMethod Company - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompanyInfoSource: A resource that represents an external Google -// identifier for a company, for example, a Google+ business page or a -// Google Maps business page. For unsupported types, use -// `unknown_type_id`. +// CompanyInfoSource: A resource that represents an external Google identifier +// for a company, for example, a Google+ business page or a Google Maps +// business page. For unsupported types, use `unknown_type_id`. type CompanyInfoSource struct { - // FreebaseMid: Optional. The Google's Knowledge Graph value for the - // employer's company. + // FreebaseMid: Optional. The Google's Knowledge Graph value for the employer's + // company. FreebaseMid string `json:"freebaseMid,omitempty"` - // GplusId: Optional. The numeric identifier for the employer's Google+ // business page. GplusId string `json:"gplusId,omitempty"` - - // MapsCid: Optional. The numeric identifier for the employer's - // headquarters on Google Maps, namely, the Google Maps CID (cell id). + // MapsCid: Optional. The numeric identifier for the employer's headquarters on + // Google Maps, namely, the Google Maps CID (cell id). MapsCid string `json:"mapsCid,omitempty"` - - // UnknownTypeId: Optional. A Google identifier that does not match any - // of the other types. + // UnknownTypeId: Optional. A Google identifier that does not match any of the + // other types. UnknownTypeId string `json:"unknownTypeId,omitempty"` - // ForceSendFields is a list of field names (e.g. "FreebaseMid") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FreebaseMid") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FreebaseMid") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanyInfoSource) MarshalJSON() ([]byte, error) { +func (s CompanyInfoSource) MarshalJSON() ([]byte, error) { type NoMethod CompanyInfoSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompensationEntry: A compensation entry that represents one component -// of compensation, such as base pay, bonus, or other compensation type. -// Annualization: One compensation entry can be annualized if - it -// contains valid amount or range. - and its expected_units_per_year is -// set or can be derived. Its annualized range is determined as (amount -// or range) times expected_units_per_year. +// CompensationEntry: A compensation entry that represents one component of +// compensation, such as base pay, bonus, or other compensation type. +// Annualization: One compensation entry can be annualized if - it contains +// valid amount or range. - and its expected_units_per_year is set or can be +// derived. Its annualized range is determined as (amount or range) times +// expected_units_per_year. type CompensationEntry struct { // Amount: Optional. Compensation amount. Amount *Money `json:"amount,omitempty"` - - // Description: Optional. Compensation description. For example, could - // indicate equity terms or provide additional context to an estimated - // bonus. + // Description: Optional. Compensation description. For example, could indicate + // equity terms or provide additional context to an estimated bonus. Description string `json:"description,omitempty"` - - // ExpectedUnitsPerYear: Optional. Expected number of units paid each - // year. If not specified, when Job.employment_types is FULLTIME, a - // default value is inferred based on unit. Default values: - HOURLY: - // 2080 - DAILY: 260 - WEEKLY: 52 - MONTHLY: 12 - ANNUAL: 1 + // ExpectedUnitsPerYear: Optional. Expected number of units paid each year. If + // not specified, when Job.employment_types is FULLTIME, a default value is + // inferred based on unit. Default values: - HOURLY: 2080 - DAILY: 260 - + // WEEKLY: 52 - MONTHLY: 12 - ANNUAL: 1 ExpectedUnitsPerYear float64 `json:"expectedUnitsPerYear,omitempty"` - // Range: Optional. Compensation range. Range *CompensationRange `json:"range,omitempty"` - // Type: Required. Compensation type. // // Possible values: // "COMPENSATION_TYPE_UNSPECIFIED" - Default value. Equivalent to // OTHER_COMPENSATION_TYPE. - // "BASE" - Base compensation: Refers to the fixed amount of money - // paid to an employee by an employer in return for work performed. Base - // compensation does not include benefits, bonuses or any other - // potential compensation from an employer. + // "BASE" - Base compensation: Refers to the fixed amount of money paid to an + // employee by an employer in return for work performed. Base compensation does + // not include benefits, bonuses or any other potential compensation from an + // employer. // "BONUS" - Bonus. // "SIGNING_BONUS" - Signing bonus. // "EQUITY" - Equity. @@ -631,7 +560,6 @@ type CompensationEntry struct { // "TIPS" - Tips. // "OTHER_COMPENSATION_TYPE" - Other compensation type. Type string `json:"type,omitempty"` - // Unit: Optional. Frequency of the specified amount. Default is // CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED. // @@ -646,28 +574,22 @@ type CompensationEntry struct { // "ONE_TIME" - One time. // "OTHER_COMPENSATION_UNIT" - Other compensation units. Unit string `json:"unit,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompensationEntry) MarshalJSON() ([]byte, error) { +func (s CompensationEntry) MarshalJSON() ([]byte, error) { type NoMethod CompensationEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *CompensationEntry) UnmarshalJSON(data []byte) error { @@ -684,41 +606,35 @@ func (s *CompensationEntry) UnmarshalJSON(data []byte) error { return nil } -// CompensationFilter: Input only. Filter on job compensation type and -// amount. +// CompensationFilter: Input only. Filter on job compensation type and amount. type CompensationFilter struct { - // IncludeJobsWithUnspecifiedCompensationRange: Optional. Whether to - // include jobs whose compensation range is unspecified. + // IncludeJobsWithUnspecifiedCompensationRange: Optional. Whether to include + // jobs whose compensation range is unspecified. IncludeJobsWithUnspecifiedCompensationRange bool `json:"includeJobsWithUnspecifiedCompensationRange,omitempty"` - // Range: Optional. Compensation range. Range *CompensationRange `json:"range,omitempty"` - // Type: Required. Type of filter. // // Possible values: - // "FILTER_TYPE_UNSPECIFIED" - Filter type unspecified. Position - // holder, INVALID, should never be used. - // "UNIT_ONLY" - Filter by `base compensation entry's` unit. A job is - // a match if and only if the job contains a base CompensationEntry and - // the base CompensationEntry's unit matches provided units. Populate - // one or more units. See CompensationInfo.CompensationEntry for - // definition of base compensation entry. - // "UNIT_AND_AMOUNT" - Filter by `base compensation entry's` unit and - // amount / range. A job is a match if and only if the job contains a - // base CompensationEntry, and the base entry's unit matches provided + // "FILTER_TYPE_UNSPECIFIED" - Filter type unspecified. Position holder, + // INVALID, should never be used. + // "UNIT_ONLY" - Filter by `base compensation entry's` unit. A job is a match + // if and only if the job contains a base CompensationEntry and the base + // CompensationEntry's unit matches provided units. Populate one or more units. + // See CompensationInfo.CompensationEntry for definition of base compensation + // entry. + // "UNIT_AND_AMOUNT" - Filter by `base compensation entry's` unit and amount + // / range. A job is a match if and only if the job contains a base + // CompensationEntry, and the base entry's unit matches provided // compensation_units and amount or range overlaps with provided - // compensation_range. See CompensationInfo.CompensationEntry for - // definition of base compensation entry. Set exactly one units and - // populate range. - // "ANNUALIZED_BASE_AMOUNT" - Filter by annualized base compensation - // amount and `base compensation entry's` unit. Populate range and zero - // or more units. - // "ANNUALIZED_TOTAL_AMOUNT" - Filter by annualized total compensation - // amount and `base compensation entry's` unit . Populate range and zero - // or more units. + // compensation_range. See CompensationInfo.CompensationEntry for definition of + // base compensation entry. Set exactly one units and populate range. + // "ANNUALIZED_BASE_AMOUNT" - Filter by annualized base compensation amount + // and `base compensation entry's` unit. Populate range and zero or more units. + // "ANNUALIZED_TOTAL_AMOUNT" - Filter by annualized total compensation amount + // and `base compensation entry's` unit . Populate range and zero or more + // units. Type string `json:"type,omitempty"` - // Units: Required. Specify desired `base compensation entry's` // CompensationInfo.CompensationUnit. // @@ -733,283 +649,220 @@ type CompensationFilter struct { // "ONE_TIME" - One time. // "OTHER_COMPENSATION_UNIT" - Other compensation units. Units []string `json:"units,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "IncludeJobsWithUnspecifiedCompensationRange") to unconditionally - // include in API requests. By default, fields with empty values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // "IncludeJobsWithUnspecifiedCompensationRange") to unconditionally include in + // API requests. By default, fields with empty or default values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "IncludeJobsWithUnspecifiedCompensationRange") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // "IncludeJobsWithUnspecifiedCompensationRange") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompensationFilter) MarshalJSON() ([]byte, error) { +func (s CompensationFilter) MarshalJSON() ([]byte, error) { type NoMethod CompensationFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompensationHistogramRequest: Input only. Compensation based -// histogram request. +// CompensationHistogramRequest: Input only. Compensation based histogram +// request. type CompensationHistogramRequest struct { - // BucketingOption: Required. Numeric histogram options, like buckets, - // whether include min or max value. + // BucketingOption: Required. Numeric histogram options, like buckets, whether + // include min or max value. BucketingOption *NumericBucketingOption `json:"bucketingOption,omitempty"` - // Type: Required. Type of the request, representing which field the - // histogramming should be performed over. A single request can only - // specify one histogram of each `CompensationHistogramRequestType`. + // histogramming should be performed over. A single request can only specify + // one histogram of each `CompensationHistogramRequestType`. // // Possible values: // "COMPENSATION_HISTOGRAM_REQUEST_TYPE_UNSPECIFIED" - Default value. // Invalid. - // "BASE" - Histogram by job's base compensation. See - // CompensationEntry for definition of base compensation. - // "ANNUALIZED_BASE" - Histogram by job's annualized base - // compensation. See CompensationEntry for definition of annualized base - // compensation. - // "ANNUALIZED_TOTAL" - Histogram by job's annualized total - // compensation. See CompensationEntry for definition of annualized - // total compensation. + // "BASE" - Histogram by job's base compensation. See CompensationEntry for + // definition of base compensation. + // "ANNUALIZED_BASE" - Histogram by job's annualized base compensation. See + // CompensationEntry for definition of annualized base compensation. + // "ANNUALIZED_TOTAL" - Histogram by job's annualized total compensation. See + // CompensationEntry for definition of annualized total compensation. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "BucketingOption") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BucketingOption") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BucketingOption") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompensationHistogramRequest) MarshalJSON() ([]byte, error) { +func (s CompensationHistogramRequest) MarshalJSON() ([]byte, error) { type NoMethod CompensationHistogramRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompensationHistogramResult: Output only. Compensation based -// histogram result. +// CompensationHistogramResult: Output only. Compensation based histogram +// result. type CompensationHistogramResult struct { // Result: Histogram result. Result *NumericBucketingResult `json:"result,omitempty"` - // Type: Type of the request, corresponding to // CompensationHistogramRequest.type. // // Possible values: // "COMPENSATION_HISTOGRAM_REQUEST_TYPE_UNSPECIFIED" - Default value. // Invalid. - // "BASE" - Histogram by job's base compensation. See - // CompensationEntry for definition of base compensation. - // "ANNUALIZED_BASE" - Histogram by job's annualized base - // compensation. See CompensationEntry for definition of annualized base - // compensation. - // "ANNUALIZED_TOTAL" - Histogram by job's annualized total - // compensation. See CompensationEntry for definition of annualized - // total compensation. + // "BASE" - Histogram by job's base compensation. See CompensationEntry for + // definition of base compensation. + // "ANNUALIZED_BASE" - Histogram by job's annualized base compensation. See + // CompensationEntry for definition of annualized base compensation. + // "ANNUALIZED_TOTAL" - Histogram by job's annualized total compensation. See + // CompensationEntry for definition of annualized total compensation. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Result") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Result") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Result") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompensationHistogramResult) MarshalJSON() ([]byte, error) { +func (s CompensationHistogramResult) MarshalJSON() ([]byte, error) { type NoMethod CompensationHistogramResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompensationInfo: Job compensation details. type CompensationInfo struct { // Amount: Deprecated. Use entries instead. Optional. The amount of - // compensation or pay for the job. As an alternative, - // compensation_amount_min and compensation_amount_max may be used to - // define a range of compensation. + // compensation or pay for the job. As an alternative, compensation_amount_min + // and compensation_amount_max may be used to define a range of compensation. Amount *Money `json:"amount,omitempty"` - - // AnnualizedBaseCompensationRange: Output only. Annualized base - // compensation range. Computed as base compensation entry's - // CompensationEntry.compensation times - // CompensationEntry.expected_units_per_year. See CompensationEntry for + // AnnualizedBaseCompensationRange: Output only. Annualized base compensation + // range. Computed as base compensation entry's CompensationEntry.compensation + // times CompensationEntry.expected_units_per_year. See CompensationEntry for // explanation on compensation annualization. AnnualizedBaseCompensationRange *CompensationRange `json:"annualizedBaseCompensationRange,omitempty"` - - // AnnualizedTotalCompensationRange: Output only. Annualized total - // compensation range. Computed as all compensation entries' - // CompensationEntry.compensation times - // CompensationEntry.expected_units_per_year. See CompensationEntry for + // AnnualizedTotalCompensationRange: Output only. Annualized total compensation + // range. Computed as all compensation entries' CompensationEntry.compensation + // times CompensationEntry.expected_units_per_year. See CompensationEntry for // explanation on compensation annualization. AnnualizedTotalCompensationRange *CompensationRange `json:"annualizedTotalCompensationRange,omitempty"` - - // Entries: Optional. Job compensation information. At most one entry - // can be of type CompensationInfo.CompensationType.BASE, which is - // referred as ** base compensation entry ** for the job. + // Entries: Optional. Job compensation information. At most one entry can be of + // type CompensationInfo.CompensationType.BASE, which is referred as ** base + // compensation entry ** for the job. Entries []*CompensationEntry `json:"entries,omitempty"` - - // Max: Deprecated. Use entries instead. Optional. An upper bound on a - // range for compensation or pay for the job. The currency type is - // specified in compensation_amount. + // Max: Deprecated. Use entries instead. Optional. An upper bound on a range + // for compensation or pay for the job. The currency type is specified in + // compensation_amount. Max *Money `json:"max,omitempty"` - - // Min: Deprecated. Use entries instead. Optional. A lower bound on a - // range for compensation or pay for the job. The currency type is - // specified in compensation_amount. + // Min: Deprecated. Use entries instead. Optional. A lower bound on a range for + // compensation or pay for the job. The currency type is specified in + // compensation_amount. Min *Money `json:"min,omitempty"` - - // Type: Deprecated. Use entries instead. Optional. Type of job - // compensation. + // Type: Deprecated. Use entries instead. Optional. Type of job compensation. // // Possible values: - // "JOB_COMPENSATION_TYPE_UNSPECIFIED" - The default value if the type - // is not specified. - // "HOURLY" - The job compensation is quoted by the number of hours - // worked. + // "JOB_COMPENSATION_TYPE_UNSPECIFIED" - The default value if the type is not + // specified. + // "HOURLY" - The job compensation is quoted by the number of hours worked. // "SALARY" - The job compensation is quoted on an annual basis. - // "PER_PROJECT" - The job compensation is quoted by project - // completion. - // "COMMISSION" - The job compensation is quoted based solely on - // commission. - // "OTHER_TYPE" - The job compensation is not quoted according to the - // listed compensation options. + // "PER_PROJECT" - The job compensation is quoted by project completion. + // "COMMISSION" - The job compensation is quoted based solely on commission. + // "OTHER_TYPE" - The job compensation is not quoted according to the listed + // compensation options. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompensationInfo) MarshalJSON() ([]byte, error) { +func (s CompensationInfo) MarshalJSON() ([]byte, error) { type NoMethod CompensationInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompensationRange: Compensation range. type CompensationRange struct { - // Max: Optional. The maximum amount of compensation. If left empty, the - // value is set to a maximal compensation value and the currency code is - // set to match the currency code of min_compensation. + // Max: Optional. The maximum amount of compensation. If left empty, the value + // is set to a maximal compensation value and the currency code is set to match + // the currency code of min_compensation. Max *Money `json:"max,omitempty"` - - // Min: Optional. The minimum amount of compensation. If left empty, the - // value is set to zero and the currency code is set to match the - // currency code of max_compensation. + // Min: Optional. The minimum amount of compensation. If left empty, the value + // is set to zero and the currency code is set to match the currency code of + // max_compensation. Min *Money `json:"min,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Max") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Max") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Max") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Max") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompensationRange) MarshalJSON() ([]byte, error) { +func (s CompensationRange) MarshalJSON() ([]byte, error) { type NoMethod CompensationRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CompleteQueryResponse: Output only. Response of auto-complete query. type CompleteQueryResponse struct { // CompletionResults: Results of the matching job/company candidates. CompletionResults []*CompletionResult `json:"completionResults,omitempty"` - - // Metadata: Additional information for the API invocation, such as the - // request tracking id. + // Metadata: Additional information for the API invocation, such as the request + // tracking id. Metadata *ResponseMetadata `json:"metadata,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CompletionResults") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompletionResults") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompletionResults") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompletionResults") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompleteQueryResponse) MarshalJSON() ([]byte, error) { +func (s CompleteQueryResponse) MarshalJSON() ([]byte, error) { type NoMethod CompleteQueryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompletionResult: Output only. Resource that represents completion -// results. +// CompletionResult: Output only. Resource that represents completion results. type CompletionResult struct { // ImageUrl: The URL for the company logo if `type=COMPANY_NAME`. ImageUrl string `json:"imageUrl,omitempty"` - // Suggestion: The suggestion for the query. Suggestion string `json:"suggestion,omitempty"` - // Type: The completion topic. // // Possible values: @@ -1018,232 +871,182 @@ type CompletionResult struct { // "COMPANY_NAME" - Only suggest company names. // "COMBINED" - Suggest both job titles and company names. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImageUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageUrl") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ImageUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompletionResult) MarshalJSON() ([]byte, error) { +func (s CompletionResult) MarshalJSON() ([]byte, error) { type NoMethod CompletionResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateJobRequest: Input only. Create job request. type CreateJobRequest struct { - // DisableStreetAddressResolution: Deprecated. Please use - // processing_options. This flag is ignored if processing_options is - // set. Optional. If set to `true`, the service does not attempt to - // resolve a more precise address for the job. + // DisableStreetAddressResolution: Deprecated. Please use processing_options. + // This flag is ignored if processing_options is set. Optional. If set to + // `true`, the service does not attempt to resolve a more precise address for + // the job. DisableStreetAddressResolution bool `json:"disableStreetAddressResolution,omitempty"` - // Job: Required. The Job to be created. Job *Job `json:"job,omitempty"` - // ProcessingOptions: Optional. Options for job processing. ProcessingOptions *JobProcessingOptions `json:"processingOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. // "DisableStreetAddressResolution") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DisableStreetAddressResolution") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisableStreetAddressResolution") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateJobRequest) MarshalJSON() ([]byte, error) { +func (s CreateJobRequest) MarshalJSON() ([]byte, error) { type NoMethod CreateJobRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomAttribute: Custom attribute values that are either filterable -// or non-filterable. +// CustomAttribute: Custom attribute values that are either filterable or +// non-filterable. type CustomAttribute struct { - // Filterable: Optional. If the `filterable` flag is true, custom field - // values are searchable. If false, values are not searchable. Default - // is false. + // Filterable: Optional. If the `filterable` flag is true, custom field values + // are searchable. If false, values are not searchable. Default is false. Filterable bool `json:"filterable,omitempty"` - - // LongValue: Optional but at least one of string_values or long_value - // must be specified. This field is used to perform number range search. - // (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. For - // `long_value`, a value between Long.MIN and Long.MAX is allowed. + // LongValue: Optional but at least one of string_values or long_value must be + // specified. This field is used to perform number range search. (`EQ`, `GT`, + // `GE`, `LE`, `LT`) over filterable `long_value`. For `long_value`, a value + // between Long.MIN and Long.MAX is allowed. LongValue int64 `json:"longValue,omitempty,string"` - - // StringValues: Optional but at least one of string_values or - // long_value must be specified. This field is used to perform a string - // match (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. - // For filterable `string_values`, a maximum total number of 200 values - // is allowed, with each `string_value` has a byte size of no more than - // 255B. For unfilterable `string_values`, the maximum total byte size - // of unfilterable `string_values` is 50KB. Empty strings are not - // allowed. + // StringValues: Optional but at least one of string_values or long_value must + // be specified. This field is used to perform a string match + // (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable + // `string_values`, a maximum total number of 200 values is allowed, with each + // `string_value` has a byte size of no more than 255B. For unfilterable + // `string_values`, the maximum total byte size of unfilterable `string_values` + // is 50KB. Empty strings are not allowed. StringValues *StringValues `json:"stringValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "Filterable") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filterable") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filterable") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomAttribute) MarshalJSON() ([]byte, error) { +func (s CustomAttribute) MarshalJSON() ([]byte, error) { type NoMethod CustomAttribute - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomAttributeHistogramRequest: Custom attributes histogram request. -// An error will be thrown if neither string_value_histogram or +// CustomAttributeHistogramRequest: Custom attributes histogram request. An +// error will be thrown if neither string_value_histogram or // long_value_histogram_bucketing_option has been defined. type CustomAttributeHistogramRequest struct { - // Key: Required. Specifies the custom field key to perform a histogram - // on. If specified without `long_value_histogram_bucketing_option`, - // histogram on string values of the given `key` is triggered, otherwise - // histogram is performed on long values. + // Key: Required. Specifies the custom field key to perform a histogram on. If + // specified without `long_value_histogram_bucketing_option`, histogram on + // string values of the given `key` is triggered, otherwise histogram is + // performed on long values. Key string `json:"key,omitempty"` - - // LongValueHistogramBucketingOption: Optional. Specifies buckets used - // to perform a range histogram on Job's filterable long custom field - // values, or min/max value requirements. + // LongValueHistogramBucketingOption: Optional. Specifies buckets used to + // perform a range histogram on Job's filterable long custom field values, or + // min/max value requirements. LongValueHistogramBucketingOption *NumericBucketingOption `json:"longValueHistogramBucketingOption,omitempty"` - - // StringValueHistogram: Optional. If set to true, the response will - // include the histogram value for each key as a string. + // StringValueHistogram: Optional. If set to true, the response will include + // the histogram value for each key as a string. StringValueHistogram bool `json:"stringValueHistogram,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomAttributeHistogramRequest) MarshalJSON() ([]byte, error) { +func (s CustomAttributeHistogramRequest) MarshalJSON() ([]byte, error) { type NoMethod CustomAttributeHistogramRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomAttributeHistogramResult: Output only. Custom attribute -// histogram result. +// CustomAttributeHistogramResult: Output only. Custom attribute histogram +// result. type CustomAttributeHistogramResult struct { - // Key: Stores the key of custom attribute the histogram is performed - // on. + // Key: Stores the key of custom attribute the histogram is performed on. Key string `json:"key,omitempty"` - - // LongValueHistogramResult: Stores bucketed histogram counting result - // or min/max values for custom attribute long values associated with - // `key`. + // LongValueHistogramResult: Stores bucketed histogram counting result or + // min/max values for custom attribute long values associated with `key`. LongValueHistogramResult *NumericBucketingResult `json:"longValueHistogramResult,omitempty"` - - // StringValueHistogramResult: Stores a map from the values of string - // custom field associated with `key` to the number of jobs with that - // value in this histogram result. + // StringValueHistogramResult: Stores a map from the values of string custom + // field associated with `key` to the number of jobs with that value in this + // histogram result. StringValueHistogramResult map[string]int64 `json:"stringValueHistogramResult,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomAttributeHistogramResult) MarshalJSON() ([]byte, error) { +func (s CustomAttributeHistogramResult) MarshalJSON() ([]byte, error) { type NoMethod CustomAttributeHistogramResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomField: Resource that represents the custom data not captured by -// the standard fields. +// CustomField: Resource that represents the custom data not captured by the +// standard fields. type CustomField struct { // Values: Optional. The values of the custom data. Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomField) MarshalJSON() ([]byte, error) { +func (s CustomField) MarshalJSON() ([]byte, error) { type NoMethod CustomField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomFieldFilter: Input only. Custom field filter of the search. type CustomFieldFilter struct { // Queries: Required. The query strings for the filter. Queries []string `json:"queries,omitempty"` - // Type: Optional. The type of filter. Defaults to FilterType.OR. // // Possible values: @@ -1252,118 +1055,93 @@ type CustomFieldFilter struct { // "AND" - Search for a match with all queries. // "NOT" - Negate the set of filter values for the search. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Queries") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Queries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Queries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Queries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomFieldFilter) MarshalJSON() ([]byte, error) { +func (s CustomFieldFilter) MarshalJSON() ([]byte, error) { type NoMethod CustomFieldFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Date: Represents a whole or partial calendar date, e.g. a birthday. -// The time of day and time zone are either specified elsewhere or are -// not significant. The date is relative to the Proleptic Gregorian -// Calendar. This can represent: * A full date, with non-zero year, -// month and day values * A month and day value, with a zero year, e.g. -// an anniversary * A year on its own, with zero month and day values * -// A year and month value, with a zero day, e.g. a credit card -// expiration date Related types are google.type.TimeOfDay and -// `google.protobuf.Timestamp`. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, e.g. a birthday. The time +// of day and time zone are either specified elsewhere or are not significant. +// The date is relative to the Proleptic Gregorian Calendar. This can +// represent: * A full date, with non-zero year, month and day values * A month +// and day value, with a zero year, e.g. an anniversary * A year on its own, +// with zero month and day values * A year and month value, with a zero day, +// e.g. a credit card expiration date Related types are google.type.TimeOfDay +// and `google.protobuf.Timestamp`. type Date struct { - // Day: Day of month. Must be from 1 to 31 and valid for the year and - // month, or 0 if specifying a year by itself or a year and month where - // the day is not significant. + // Day: Day of month. Must be from 1 to 31 and valid for the year and month, or + // 0 if specifying a year by itself or a year and month where the day is not + // significant. Day int64 `json:"day,omitempty"` - // Month: Month of year. Must be from 1 to 12, or 0 if specifying a year // without a month and day. Month int64 `json:"month,omitempty"` - // Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date // without a year. Year int64 `json:"year,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Day") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Day") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Day") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Day") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Date) MarshalJSON() ([]byte, error) { +func (s Date) MarshalJSON() ([]byte, error) { type NoMethod Date - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeleteJobsByFilterRequest: Deprecated. Use BatchDeleteJobsRequest -// instead. Input only. Delete job by filter request. The job typically -// becomes unsearchable within 10 seconds, but it may take up to 5 -// minutes. +// DeleteJobsByFilterRequest: Deprecated. Use BatchDeleteJobsRequest instead. +// Input only. Delete job by filter request. The job typically becomes +// unsearchable within 10 seconds, but it may take up to 5 minutes. type DeleteJobsByFilterRequest struct { // DisableFastProcess: Optional. If set to true, this call waits for all - // processing steps to complete before the job is cleaned up. Otherwise, - // the call returns while some steps are still taking place - // asynchronously, hence faster. + // processing steps to complete before the job is cleaned up. Otherwise, the + // call returns while some steps are still taking place asynchronously, hence + // faster. DisableFastProcess bool `json:"disableFastProcess,omitempty"` - // Filter: Required. Restrictions on the scope of the delete request. Filter *Filter `json:"filter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisableFastProcess") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DisableFastProcess") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisableFastProcess") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DisableFastProcess") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteJobsByFilterRequest) MarshalJSON() ([]byte, error) { +func (s DeleteJobsByFilterRequest) MarshalJSON() ([]byte, error) { type NoMethod DeleteJobsByFilterRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceInfo: Input only. Device information collected from the job -// seeker, candidate, or other entity conducting the job search. -// Providing this information improves the quality of the search results -// across devices. +// DeviceInfo: Input only. Device information collected from the job seeker, +// candidate, or other entity conducting the job search. Providing this +// information improves the quality of the search results across devices. type DeviceInfo struct { // DeviceType: Optional. Type of the device. // @@ -1371,67 +1149,56 @@ type DeviceInfo struct { // "DEVICE_TYPE_UNSPECIFIED" - The device type isn't specified. // "WEB" - A desktop web browser, such as, Chrome, Firefox, Safari, or // Internet Explorer) - // "MOBILE_WEB" - A mobile device web browser, such as a phone or - // tablet with a Chrome browser. + // "MOBILE_WEB" - A mobile device web browser, such as a phone or tablet with + // a Chrome browser. // "ANDROID" - An Android device native application. // "IOS" - An iOS device native application. - // "BOT" - A bot, as opposed to a device operated by human beings, - // such as a web crawler. + // "BOT" - A bot, as opposed to a device operated by human beings, such as a + // web crawler. // "OTHER" - Other devices types. DeviceType string `json:"deviceType,omitempty"` - - // Id: Optional. A device-specific ID. The ID must be a unique - // identifier that distinguishes the device from other devices. + // Id: Optional. A device-specific ID. The ID must be a unique identifier that + // distinguishes the device from other devices. Id string `json:"id,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceInfo) MarshalJSON() ([]byte, error) { +func (s DeviceInfo) MarshalJSON() ([]byte, error) { type NoMethod DeviceInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON +// representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// ExtendedCompensationFilter: Deprecated. Always use -// CompensationFilter. Input only. Filter on job compensation type and -// amount. +// ExtendedCompensationFilter: Deprecated. Always use CompensationFilter. Input +// only. Filter on job compensation type and amount. type ExtendedCompensationFilter struct { // CompensationRange: Optional. Compensation range. CompensationRange *ExtendedCompensationInfoCompensationRange `json:"compensationRange,omitempty"` - - // CompensationUnits: Required. Specify desired `base compensation - // entry's` ExtendedCompensationInfo.CompensationUnit. + // CompensationUnits: Required. Specify desired `base compensation entry's` + // ExtendedCompensationInfo.CompensationUnit. // // Possible values: - // "EXTENDED_COMPENSATION_UNIT_UNSPECIFIED" - Default value. - // Equivalent to OTHER_COMPENSATION_UNIT. + // "EXTENDED_COMPENSATION_UNIT_UNSPECIFIED" - Default value. Equivalent to + // OTHER_COMPENSATION_UNIT. // "HOURLY" - Hourly. // "DAILY" - Daily. // "WEEKLY" - Weekly @@ -1440,158 +1207,127 @@ type ExtendedCompensationFilter struct { // "ONE_TIME" - One time. // "OTHER_COMPENSATION_UNIT" - Other compensation units. CompensationUnits []string `json:"compensationUnits,omitempty"` - - // Currency: Optional. Specify currency in 3-letter [ISO - // 4217](https://www.iso.org/iso-4217-currency-codes.html) format. If - // unspecified, jobs are returned regardless of currency. + // Currency: Optional. Specify currency in 3-letter ISO 4217 + // (https://www.iso.org/iso-4217-currency-codes.html) format. If unspecified, + // jobs are returned regardless of currency. Currency string `json:"currency,omitempty"` - - // IncludeJobWithUnspecifiedCompensationRange: Optional. Whether to - // include jobs whose compensation range is unspecified. + // IncludeJobWithUnspecifiedCompensationRange: Optional. Whether to include + // jobs whose compensation range is unspecified. IncludeJobWithUnspecifiedCompensationRange bool `json:"includeJobWithUnspecifiedCompensationRange,omitempty"` - // Type: Required. Type of filter. // // Possible values: - // "FILTER_TYPE_UNSPECIFIED" - Filter type unspecified. Position - // holder, INVALID, should never be used. - // "UNIT_ONLY" - Filter by `base compensation entry's` unit. A job is - // a match if and only if the job contains a base CompensationEntry and - // the base CompensationEntry's unit matches provided - // compensation_units. Populate one or more compensation_units. See - // ExtendedCompensationInfo.CompensationEntry for definition of base - // compensation entry. - // "UNIT_AND_AMOUNT" - Filter by `base compensation entry's` unit and - // amount / range. A job is a match if and only if the job contains a - // base CompensationEntry, and the base entry's unit matches provided + // "FILTER_TYPE_UNSPECIFIED" - Filter type unspecified. Position holder, + // INVALID, should never be used. + // "UNIT_ONLY" - Filter by `base compensation entry's` unit. A job is a match + // if and only if the job contains a base CompensationEntry and the base + // CompensationEntry's unit matches provided compensation_units. Populate one + // or more compensation_units. See ExtendedCompensationInfo.CompensationEntry + // for definition of base compensation entry. + // "UNIT_AND_AMOUNT" - Filter by `base compensation entry's` unit and amount + // / range. A job is a match if and only if the job contains a base + // CompensationEntry, and the base entry's unit matches provided // compensation_units and amount or range overlaps with provided - // compensation_range. See ExtendedCompensationInfo.CompensationEntry - // for definition of base compensation entry. Set exactly one - // compensation_units and populate compensation_range. - // "ANNUALIZED_BASE_AMOUNT" - Filter by annualized base compensation - // amount and `base compensation entry's` unit. Populate - // compensation_range and zero or more compensation_units. - // "ANNUALIZED_TOTAL_AMOUNT" - Filter by annualized total compensation - // amount and `base compensation entry's` unit . Populate - // compensation_range and zero or more compensation_units. + // compensation_range. See ExtendedCompensationInfo.CompensationEntry for + // definition of base compensation entry. Set exactly one compensation_units + // and populate compensation_range. + // "ANNUALIZED_BASE_AMOUNT" - Filter by annualized base compensation amount + // and `base compensation entry's` unit. Populate compensation_range and zero + // or more compensation_units. + // "ANNUALIZED_TOTAL_AMOUNT" - Filter by annualized total compensation amount + // and `base compensation entry's` unit . Populate compensation_range and zero + // or more compensation_units. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompensationRange") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompensationRange") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompensationRange") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompensationRange") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExtendedCompensationFilter) MarshalJSON() ([]byte, error) { +func (s ExtendedCompensationFilter) MarshalJSON() ([]byte, error) { type NoMethod ExtendedCompensationFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExtendedCompensationInfo: Deprecated. Use CompensationInfo. Describes -// job compensation. +// ExtendedCompensationInfo: Deprecated. Use CompensationInfo. Describes job +// compensation. type ExtendedCompensationInfo struct { - // AnnualizedBaseCompensationRange: Output only. Annualized base - // compensation range. + // AnnualizedBaseCompensationRange: Output only. Annualized base compensation + // range. AnnualizedBaseCompensationRange *ExtendedCompensationInfoCompensationRange `json:"annualizedBaseCompensationRange,omitempty"` - - // AnnualizedBaseCompensationUnspecified: Output only. Indicates - // annualized base compensation range cannot be derived, due to the - // job's base compensation entry cannot be annualized. See - // CompensationEntry for explanation on annualization and base - // compensation entry. + // AnnualizedBaseCompensationUnspecified: Output only. Indicates annualized + // base compensation range cannot be derived, due to the job's base + // compensation entry cannot be annualized. See CompensationEntry for + // explanation on annualization and base compensation entry. AnnualizedBaseCompensationUnspecified bool `json:"annualizedBaseCompensationUnspecified,omitempty"` - - // AnnualizedTotalCompensationRange: Output only. Annualized total - // compensation range. + // AnnualizedTotalCompensationRange: Output only. Annualized total compensation + // range. AnnualizedTotalCompensationRange *ExtendedCompensationInfoCompensationRange `json:"annualizedTotalCompensationRange,omitempty"` - - // AnnualizedTotalCompensationUnspecified: Output only. Indicates - // annualized total compensation range cannot be derived, due to the - // job's all CompensationEntry cannot be annualized. See - // CompensationEntry for explanation on annualization and base - // compensation entry. + // AnnualizedTotalCompensationUnspecified: Output only. Indicates annualized + // total compensation range cannot be derived, due to the job's all + // CompensationEntry cannot be annualized. See CompensationEntry for + // explanation on annualization and base compensation entry. AnnualizedTotalCompensationUnspecified bool `json:"annualizedTotalCompensationUnspecified,omitempty"` - - // Currency: Optional. A 3-letter [ISO - // 4217](https://www.iso.org/iso-4217-currency-codes.html) currency - // code. + // Currency: Optional. A 3-letter ISO 4217 + // (https://www.iso.org/iso-4217-currency-codes.html) currency code. Currency string `json:"currency,omitempty"` - - // Entries: Optional. Job compensation information. At most one entry - // can be of type ExtendedCompensationInfo.CompensationType.BASE, which - // is referred as ** base compensation entry ** for the job. + // Entries: Optional. Job compensation information. At most one entry can be of + // type ExtendedCompensationInfo.CompensationType.BASE, which is referred as ** + // base compensation entry ** for the job. Entries []*ExtendedCompensationInfoCompensationEntry `json:"entries,omitempty"` - // ForceSendFields is a list of field names (e.g. // "AnnualizedBaseCompensationRange") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AnnualizedBaseCompensationRange") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnnualizedBaseCompensationRange") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExtendedCompensationInfo) MarshalJSON() ([]byte, error) { +func (s ExtendedCompensationInfo) MarshalJSON() ([]byte, error) { type NoMethod ExtendedCompensationInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExtendedCompensationInfoCompensationEntry: Deprecated. See -// CompensationInfo. A compensation entry that represents one component -// of compensation, such as base pay, bonus, or other compensation type. -// Annualization: One compensation entry can be annualized if - it -// contains valid amount or range. - and its expected_units_per_year is -// set or can be derived. Its annualized range is determined as (amount -// or range) times expected_units_per_year. +// ExtendedCompensationInfoCompensationEntry: Deprecated. See CompensationInfo. +// A compensation entry that represents one component of compensation, such as +// base pay, bonus, or other compensation type. Annualization: One compensation +// entry can be annualized if - it contains valid amount or range. - and its +// expected_units_per_year is set or can be derived. Its annualized range is +// determined as (amount or range) times expected_units_per_year. type ExtendedCompensationInfoCompensationEntry struct { // Amount: Optional. Monetary amount. Amount *ExtendedCompensationInfoDecimal `json:"amount,omitempty"` - // Description: Optional. Compensation description. Description string `json:"description,omitempty"` - - // ExpectedUnitsPerYear: Optional. Expected number of units paid each - // year. If not specified, when Job.employment_types is FULLTIME, a - // default value is inferred based on unit. Default values: - HOURLY: - // 2080 - DAILY: 260 - WEEKLY: 52 - MONTHLY: 12 - ANNUAL: 1 + // ExpectedUnitsPerYear: Optional. Expected number of units paid each year. If + // not specified, when Job.employment_types is FULLTIME, a default value is + // inferred based on unit. Default values: - HOURLY: 2080 - DAILY: 260 - + // WEEKLY: 52 - MONTHLY: 12 - ANNUAL: 1 ExpectedUnitsPerYear *ExtendedCompensationInfoDecimal `json:"expectedUnitsPerYear,omitempty"` - // Range: Optional. Compensation range. Range *ExtendedCompensationInfoCompensationRange `json:"range,omitempty"` - // Type: Required. Compensation type. // // Possible values: - // "EXTENDED_COMPENSATION_TYPE_UNSPECIFIED" - Default value. - // Equivalent to OTHER_COMPENSATION_TYPE. - // "BASE" - Base compensation: Refers to the fixed amount of money - // paid to an employee by an employer in return for work performed. Base - // compensation does not include benefits, bonuses or any other - // potential compensation from an employer. + // "EXTENDED_COMPENSATION_TYPE_UNSPECIFIED" - Default value. Equivalent to + // OTHER_COMPENSATION_TYPE. + // "BASE" - Base compensation: Refers to the fixed amount of money paid to an + // employee by an employer in return for work performed. Base compensation does + // not include benefits, bonuses or any other potential compensation from an + // employer. // "BONUS" - Bonus. // "SIGNING_BONUS" - Signing bonus. // "EQUITY" - Equity. @@ -1600,13 +1336,12 @@ type ExtendedCompensationInfoCompensationEntry struct { // "TIPS" - Tips. // "OTHER_COMPENSATION_TYPE" - Other compensation type. Type string `json:"type,omitempty"` - // Unit: Optional. Frequency of the specified amount. Default is // CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED. // // Possible values: - // "EXTENDED_COMPENSATION_UNIT_UNSPECIFIED" - Default value. - // Equivalent to OTHER_COMPENSATION_UNIT. + // "EXTENDED_COMPENSATION_UNIT_UNSPECIFIED" - Default value. Equivalent to + // OTHER_COMPENSATION_UNIT. // "HOURLY" - Hourly. // "DAILY" - Daily. // "WEEKLY" - Weekly @@ -1615,164 +1350,131 @@ type ExtendedCompensationInfoCompensationEntry struct { // "ONE_TIME" - One time. // "OTHER_COMPENSATION_UNIT" - Other compensation units. Unit string `json:"unit,omitempty"` - - // Unspecified: Optional. Indicates compensation amount and range are - // unset. + // Unspecified: Optional. Indicates compensation amount and range are unset. Unspecified bool `json:"unspecified,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExtendedCompensationInfoCompensationEntry) MarshalJSON() ([]byte, error) { +func (s ExtendedCompensationInfoCompensationEntry) MarshalJSON() ([]byte, error) { type NoMethod ExtendedCompensationInfoCompensationEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExtendedCompensationInfoCompensationRange: Deprecated. See -// CompensationInfo. Compensation range. +// ExtendedCompensationInfoCompensationRange: Deprecated. See CompensationInfo. +// Compensation range. type ExtendedCompensationInfoCompensationRange struct { // Max: Required. Maximum value. Max *ExtendedCompensationInfoDecimal `json:"max,omitempty"` - // Min: Required. Minimum value. Min *ExtendedCompensationInfoDecimal `json:"min,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Max") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Max") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Max") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Max") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExtendedCompensationInfoCompensationRange) MarshalJSON() ([]byte, error) { +func (s ExtendedCompensationInfoCompensationRange) MarshalJSON() ([]byte, error) { type NoMethod ExtendedCompensationInfoCompensationRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExtendedCompensationInfoDecimal: Deprecated. See CompensationInfo. -// Decimal number. +// ExtendedCompensationInfoDecimal: Deprecated. See CompensationInfo. Decimal +// number. type ExtendedCompensationInfoDecimal struct { - // Micros: Micro (10^-6) units. The value must be between -999,999 and - // +999,999 inclusive. If `units` is positive, `micros` must be positive - // or zero. If `units` is zero, `micros` can be positive, zero, or - // negative. If `units` is negative, `micros` must be negative or zero. - // For example -1.75 is represented as `units`=-1 and `micros`=-750,000. + // Micros: Micro (10^-6) units. The value must be between -999,999 and +999,999 + // inclusive. If `units` is positive, `micros` must be positive or zero. If + // `units` is zero, `micros` can be positive, zero, or negative. If `units` is + // negative, `micros` must be negative or zero. For example -1.75 is + // represented as `units`=-1 and `micros`=-750,000. Micros int64 `json:"micros,omitempty"` - // Units: Whole units. Units int64 `json:"units,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Micros") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Micros") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Micros") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExtendedCompensationInfoDecimal) MarshalJSON() ([]byte, error) { +func (s ExtendedCompensationInfoDecimal) MarshalJSON() ([]byte, error) { type NoMethod ExtendedCompensationInfoDecimal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Filter: Deprecated. Use BatchDeleteJobsRequest instead. Input only. -// Filter for jobs to be deleted. +// Filter: Deprecated. Use BatchDeleteJobsRequest instead. Input only. Filter +// for jobs to be deleted. type Filter struct { - // RequisitionId: Required. The requisition ID (or posting ID) assigned - // by the client to identify a job. This is intended for client - // identification and tracking of listings. name takes precedence over - // this field The maximum number of allowed characters is 225. + // RequisitionId: Required. The requisition ID (or posting ID) assigned by the + // client to identify a job. This is intended for client identification and + // tracking of listings. name takes precedence over this field The maximum + // number of allowed characters is 225. RequisitionId string `json:"requisitionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "RequisitionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequisitionId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RequisitionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Filter) MarshalJSON() ([]byte, error) { +func (s Filter) MarshalJSON() ([]byte, error) { type NoMethod Filter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GetHistogramRequest: Deprecated. Use -// SearchJobsRequest.histogram_facets instead to make a single call with -// both search and histogram. Input only. A request for the -// `GetHistogram` method. +// GetHistogramRequest: Deprecated. Use SearchJobsRequest.histogram_facets +// instead to make a single call with both search and histogram. Input only. A +// request for the `GetHistogram` method. type GetHistogramRequest struct { - // AllowBroadening: Optional. Controls whether to broaden the search to - // avoid too few results for a given query in instances where a search - // has sparse results. Results from a broadened query is a superset of - // the results from the original query. Defaults to false. + // AllowBroadening: Optional. Controls whether to broaden the search to avoid + // too few results for a given query in instances where a search has sparse + // results. Results from a broadened query is a superset of the results from + // the original query. Defaults to false. AllowBroadening bool `json:"allowBroadening,omitempty"` - - // Filters: Deprecated. Use query instead. Optional. Restrictions on the - // scope of the histogram. + // Filters: Deprecated. Use query instead. Optional. Restrictions on the scope + // of the histogram. Filters *JobFilters `json:"filters,omitempty"` - // Query: Optional. Query used to search against jobs, such as keyword, // location filters, etc. Query *JobQuery `json:"query,omitempty"` - - // RequestMetadata: Meta information, such as `user_id`, collected from - // the job searcher or other entity conducting a job search, is used to - // improve the service's search quality. Users determine identifier - // values, which must be unique and consist. + // RequestMetadata: Meta information, such as `user_id`, collected from the job + // searcher or other entity conducting a job search, is used to improve the + // service's search quality. Users determine identifier values, which must be + // unique and consist. RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"` - - // SearchTypes: Required. A list of facets that specify the histogram - // data to be calculated against and returned. Histogram response times - // can be slow, and counts can be approximations. This call may be - // temporarily or permanently removed prior to the production release of - // Cloud Talent Solution. + // SearchTypes: Required. A list of facets that specify the histogram data to + // be calculated against and returned. Histogram response times can be slow, + // and counts can be approximations. This call may be temporarily or + // permanently removed prior to the production release of Cloud Talent + // Solution. // // Possible values: // "JOB_FIELD_UNSPECIFIED" - The default value if search type is not @@ -1780,8 +1482,8 @@ type GetHistogramRequest struct { // "COMPANY_ID" - Filter by the company id field. // "EMPLOYMENT_TYPE" - Filter by the employment type field, such as // `FULL_TIME` or `PART_TIME`. - // "COMPANY_SIZE" - Filter by the company size type field, such as - // `BIG`, `SMALL` or `BIGGER`. + // "COMPANY_SIZE" - Filter by the company size type field, such as `BIG`, + // `SMALL` or `BIGGER`. // "DATE_PUBLISHED" - Filter by the date published field. Values are // stringified with TimeRange, for example, TimeRange.PAST_MONTH. // "CUSTOM_FIELD_1" - Filter by custom field 1. @@ -1804,345 +1506,274 @@ type GetHistogramRequest struct { // "CUSTOM_FIELD_18" - Filter by custom field 18. // "CUSTOM_FIELD_19" - Filter by custom field 19. // "CUSTOM_FIELD_20" - Filter by custom field 20. - // "EDUCATION_LEVEL" - Filter by the required education level of the - // job. - // "EXPERIENCE_LEVEL" - Filter by the required experience level of the - // job. - // "ADMIN1" - Filter by Admin1, which is a global placeholder for - // referring to state, province, or the particular term a country uses - // to define the geographic structure below the country level. Examples - // include states codes such as "CA", "IL", "NY", and provinces, such as - // "BC". + // "EDUCATION_LEVEL" - Filter by the required education level of the job. + // "EXPERIENCE_LEVEL" - Filter by the required experience level of the job. + // "ADMIN1" - Filter by Admin1, which is a global placeholder for referring + // to state, province, or the particular term a country uses to define the + // geographic structure below the country level. Examples include states codes + // such as "CA", "IL", "NY", and provinces, such as "BC". // "COUNTRY" - Filter by the country code of job, such as US, JP, FR. - // "CITY" - Filter by the "city name", "Admin1 code", for example, - // "Mountain View, CA" or "New York, NY". - // "LOCALE" - Filter by the locale field of a job, such as "en-US", - // "fr-FR". This is the BCP-47 language code, such as "en-US" or - // "sr-Latn". For more information, see [Tags for Identifying + // "CITY" - Filter by the "city name", "Admin1 code", for example, "Mountain + // View, CA" or "New York, NY". + // "LOCALE" - Filter by the locale field of a job, such as "en-US", "fr-FR". + // This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more + // information, see [Tags for Identifying // Languages](https://tools.ietf.org/html/bcp47). - // "LANGUAGE" - Filter by the language code portion of the locale - // field, such as "en" or "fr". + // "LANGUAGE" - Filter by the language code portion of the locale field, such + // as "en" or "fr". // "CATEGORY" - Filter by the Category. - // "CITY_COORDINATE" - Filter by the city center GPS coordinate - // (latitude and longitude), for example, 37.4038522,-122.0987765. Since - // the coordinates of a city center can change, clients may need to - // refresh them periodically. - // "ADMIN1_COUNTRY" - A combination of state or province code with a - // country code. This field differs from `JOB_ADMIN1`, which can be used - // in multiple countries. - // "COMPANY_TITLE" - Deprecated. Use COMPANY_DISPLAY_NAME instead. - // Company display name. + // "CITY_COORDINATE" - Filter by the city center GPS coordinate (latitude and + // longitude), for example, 37.4038522,-122.0987765. Since the coordinates of a + // city center can change, clients may need to refresh them periodically. + // "ADMIN1_COUNTRY" - A combination of state or province code with a country + // code. This field differs from `JOB_ADMIN1`, which can be used in multiple + // countries. + // "COMPANY_TITLE" - Deprecated. Use COMPANY_DISPLAY_NAME instead. Company + // display name. // "COMPANY_DISPLAY_NAME" - Company display name. // "BASE_COMPENSATION_UNIT" - Base compensation unit. SearchTypes []string `json:"searchTypes,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowBroadening") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowBroadening") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowBroadening") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetHistogramRequest) MarshalJSON() ([]byte, error) { +func (s GetHistogramRequest) MarshalJSON() ([]byte, error) { type NoMethod GetHistogramRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GetHistogramResponse: Deprecated. Use -// SearchJobsRequest.histogram_facets instead to make a single call with -// both search and histogram. Output only. The response of the -// GetHistogram method. +// GetHistogramResponse: Deprecated. Use SearchJobsRequest.histogram_facets +// instead to make a single call with both search and histogram. Output only. +// The response of the GetHistogram method. type GetHistogramResponse struct { - // Metadata: Additional information for the API invocation, such as the - // request tracking id. + // Metadata: Additional information for the API invocation, such as the request + // tracking id. Metadata *ResponseMetadata `json:"metadata,omitempty"` - // Results: The Histogram results. Results []*HistogramResult `json:"results,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Metadata") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Metadata") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Metadata") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetHistogramResponse) MarshalJSON() ([]byte, error) { +func (s GetHistogramResponse) MarshalJSON() ([]byte, error) { type NoMethod GetHistogramResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudTalentV4BatchCreateJobsResponse: The result of // JobService.BatchCreateJobs. It's used to replace // google.longrunning.Operation.response in case of success. type GoogleCloudTalentV4BatchCreateJobsResponse struct { - // JobResults: List of job mutation results from a batch create - // operation. It can change until operation status is FINISHED, FAILED - // or CANCELLED. + // JobResults: List of job mutation results from a batch create operation. It + // can change until operation status is FINISHED, FAILED or CANCELLED. JobResults []*GoogleCloudTalentV4JobResult `json:"jobResults,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobResults") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "JobResults") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "JobResults") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4BatchCreateJobsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4BatchCreateJobsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4BatchCreateJobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudTalentV4BatchDeleteJobsResponse: The result of // JobService.BatchDeleteJobs. It's used to replace // google.longrunning.Operation.response in case of success. type GoogleCloudTalentV4BatchDeleteJobsResponse struct { - // JobResults: List of job mutation results from a batch delete - // operation. It can change until operation status is FINISHED, FAILED - // or CANCELLED. + // JobResults: List of job mutation results from a batch delete operation. It + // can change until operation status is FINISHED, FAILED or CANCELLED. JobResults []*GoogleCloudTalentV4JobResult `json:"jobResults,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobResults") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "JobResults") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "JobResults") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4BatchDeleteJobsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4BatchDeleteJobsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4BatchDeleteJobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudTalentV4BatchOperationMetadata: Metadata used for long -// running operations returned by CTS batch APIs. It's used to replace +// GoogleCloudTalentV4BatchOperationMetadata: Metadata used for long running +// operations returned by CTS batch APIs. It's used to replace // google.longrunning.Operation.metadata. type GoogleCloudTalentV4BatchOperationMetadata struct { // CreateTime: The time when the batch operation is created. CreateTime string `json:"createTime,omitempty"` - // EndTime: The time when the batch operation is finished and // google.longrunning.Operation.done is set to `true`. EndTime string `json:"endTime,omitempty"` - // FailureCount: Count of failed item(s) inside an operation. FailureCount int64 `json:"failureCount,omitempty"` - // State: The state of a long running operation. // // Possible values: // "STATE_UNSPECIFIED" - Default value. - // "INITIALIZING" - The batch operation is being prepared for - // processing. + // "INITIALIZING" - The batch operation is being prepared for processing. // "PROCESSING" - The batch operation is actively being processed. - // "SUCCEEDED" - The batch operation is processed, and at least one - // item has been successfully processed. - // "FAILED" - The batch operation is done and no item has been - // successfully processed. - // "CANCELLING" - The batch operation is in the process of cancelling - // after google.longrunning.Operations.CancelOperation is called. + // "SUCCEEDED" - The batch operation is processed, and at least one item has + // been successfully processed. + // "FAILED" - The batch operation is done and no item has been successfully + // processed. + // "CANCELLING" - The batch operation is in the process of cancelling after + // google.longrunning.Operations.CancelOperation is called. // "CANCELLED" - The batch operation is done after - // google.longrunning.Operations.CancelOperation is called. Any items - // processed before cancelling are returned in the response. + // google.longrunning.Operations.CancelOperation is called. Any items processed + // before cancelling are returned in the response. State string `json:"state,omitempty"` - // StateDescription: More detailed information about operation state. StateDescription string `json:"stateDescription,omitempty"` - // SuccessCount: Count of successful item(s) inside an operation. SuccessCount int64 `json:"successCount,omitempty"` - // TotalCount: Count of total item(s) inside an operation. TotalCount int64 `json:"totalCount,omitempty"` - // UpdateTime: The time when the batch operation status is updated. The - // metadata and the update_time is refreshed every minute otherwise - // cached data is returned. + // metadata and the update_time is refreshed every minute otherwise cached data + // is returned. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4BatchOperationMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4BatchOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4BatchOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudTalentV4BatchUpdateJobsResponse: The result of // JobService.BatchUpdateJobs. It's used to replace // google.longrunning.Operation.response in case of success. type GoogleCloudTalentV4BatchUpdateJobsResponse struct { - // JobResults: List of job mutation results from a batch update - // operation. It can change until operation status is FINISHED, FAILED - // or CANCELLED. + // JobResults: List of job mutation results from a batch update operation. It + // can change until operation status is FINISHED, FAILED or CANCELLED. JobResults []*GoogleCloudTalentV4JobResult `json:"jobResults,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobResults") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "JobResults") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "JobResults") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4BatchUpdateJobsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4BatchUpdateJobsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4BatchUpdateJobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudTalentV4CompensationInfo: Job compensation details. type GoogleCloudTalentV4CompensationInfo struct { - // AnnualizedBaseCompensationRange: Output only. Annualized base - // compensation range. Computed as base compensation entry's - // CompensationEntry.amount times + // AnnualizedBaseCompensationRange: Output only. Annualized base compensation + // range. Computed as base compensation entry's CompensationEntry.amount times // CompensationEntry.expected_units_per_year. See CompensationEntry for // explanation on compensation annualization. AnnualizedBaseCompensationRange *GoogleCloudTalentV4CompensationInfoCompensationRange `json:"annualizedBaseCompensationRange,omitempty"` - - // AnnualizedTotalCompensationRange: Output only. Annualized total - // compensation range. Computed as all compensation entries' - // CompensationEntry.amount times + // AnnualizedTotalCompensationRange: Output only. Annualized total compensation + // range. Computed as all compensation entries' CompensationEntry.amount times // CompensationEntry.expected_units_per_year. See CompensationEntry for // explanation on compensation annualization. AnnualizedTotalCompensationRange *GoogleCloudTalentV4CompensationInfoCompensationRange `json:"annualizedTotalCompensationRange,omitempty"` - - // Entries: Job compensation information. At most one entry can be of - // type CompensationInfo.CompensationType.BASE, which is referred as - // **base compensation entry** for the job. + // Entries: Job compensation information. At most one entry can be of type + // CompensationInfo.CompensationType.BASE, which is referred as **base + // compensation entry** for the job. Entries []*GoogleCloudTalentV4CompensationInfoCompensationEntry `json:"entries,omitempty"` - // ForceSendFields is a list of field names (e.g. // "AnnualizedBaseCompensationRange") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AnnualizedBaseCompensationRange") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnnualizedBaseCompensationRange") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4CompensationInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4CompensationInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4CompensationInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudTalentV4CompensationInfoCompensationEntry: A compensation -// entry that represents one component of compensation, such as base -// pay, bonus, or other compensation type. Annualization: One -// compensation entry can be annualized if - it contains valid amount or -// range. - and its expected_units_per_year is set or can be derived. -// Its annualized range is determined as (amount or range) times -// expected_units_per_year. +// GoogleCloudTalentV4CompensationInfoCompensationEntry: A compensation entry +// that represents one component of compensation, such as base pay, bonus, or +// other compensation type. Annualization: One compensation entry can be +// annualized if - it contains valid amount or range. - and its +// expected_units_per_year is set or can be derived. Its annualized range is +// determined as (amount or range) times expected_units_per_year. type GoogleCloudTalentV4CompensationInfoCompensationEntry struct { // Amount: Compensation amount. Amount *Money `json:"amount,omitempty"` - - // Description: Compensation description. For example, could indicate - // equity terms or provide additional context to an estimated bonus. + // Description: Compensation description. For example, could indicate equity + // terms or provide additional context to an estimated bonus. Description string `json:"description,omitempty"` - // ExpectedUnitsPerYear: Expected number of units paid each year. If not // specified, when Job.employment_types is FULLTIME, a default value is // inferred based on unit. Default values: - HOURLY: 2080 - DAILY: 260 - // WEEKLY: 52 - MONTHLY: 12 - ANNUAL: 1 ExpectedUnitsPerYear float64 `json:"expectedUnitsPerYear,omitempty"` - // Range: Compensation range. Range *GoogleCloudTalentV4CompensationInfoCompensationRange `json:"range,omitempty"` - // Type: Compensation type. Default is // CompensationType.COMPENSATION_TYPE_UNSPECIFIED. // // Possible values: // "COMPENSATION_TYPE_UNSPECIFIED" - Default value. - // "BASE" - Base compensation: Refers to the fixed amount of money - // paid to an employee by an employer in return for work performed. Base - // compensation does not include benefits, bonuses or any other - // potential compensation from an employer. + // "BASE" - Base compensation: Refers to the fixed amount of money paid to an + // employee by an employer in return for work performed. Base compensation does + // not include benefits, bonuses or any other potential compensation from an + // employer. // "BONUS" - Bonus. // "SIGNING_BONUS" - Signing bonus. // "EQUITY" - Equity. @@ -2151,7 +1782,6 @@ type GoogleCloudTalentV4CompensationInfoCompensationEntry struct { // "TIPS" - Tips. // "OTHER_COMPENSATION_TYPE" - Other compensation type. Type string `json:"type,omitempty"` - // Unit: Frequency of the specified amount. Default is // CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED. // @@ -2165,28 +1795,22 @@ type GoogleCloudTalentV4CompensationInfoCompensationEntry struct { // "ONE_TIME" - One time. // "OTHER_COMPENSATION_UNIT" - Other compensation units. Unit string `json:"unit,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Amount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Amount") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4CompensationInfoCompensationEntry) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4CompensationInfoCompensationEntry) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4CompensationInfoCompensationEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleCloudTalentV4CompensationInfoCompensationEntry) UnmarshalJSON(data []byte) error { @@ -2203,519 +1827,438 @@ func (s *GoogleCloudTalentV4CompensationInfoCompensationEntry) UnmarshalJSON(dat return nil } -// GoogleCloudTalentV4CompensationInfoCompensationRange: Compensation -// range. +// GoogleCloudTalentV4CompensationInfoCompensationRange: Compensation range. type GoogleCloudTalentV4CompensationInfoCompensationRange struct { - // MaxCompensation: The maximum amount of compensation. If left empty, - // the value is set to a maximal compensation value and the currency - // code is set to match the currency code of min_compensation. + // MaxCompensation: The maximum amount of compensation. If left empty, the + // value is set to a maximal compensation value and the currency code is set to + // match the currency code of min_compensation. MaxCompensation *Money `json:"maxCompensation,omitempty"` - - // MinCompensation: The minimum amount of compensation. If left empty, - // the value is set to zero and the currency code is set to match the - // currency code of max_compensation. + // MinCompensation: The minimum amount of compensation. If left empty, the + // value is set to zero and the currency code is set to match the currency code + // of max_compensation. MinCompensation *Money `json:"minCompensation,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxCompensation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxCompensation") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MaxCompensation") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4CompensationInfoCompensationRange) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4CompensationInfoCompensationRange) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4CompensationInfoCompensationRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudTalentV4CustomAttribute: Custom attribute values that are -// either filterable or non-filterable. +// GoogleCloudTalentV4CustomAttribute: Custom attribute values that are either +// filterable or non-filterable. type GoogleCloudTalentV4CustomAttribute struct { - // Filterable: If the `filterable` flag is true, the custom field values - // may be used for custom attribute filters - // JobQuery.custom_attribute_filter. If false, these values may not be - // used for custom attribute filters. Default is false. + // Filterable: If the `filterable` flag is true, the custom field values may be + // used for custom attribute filters JobQuery.custom_attribute_filter. If + // false, these values may not be used for custom attribute filters. Default is + // false. Filterable bool `json:"filterable,omitempty"` - - // KeywordSearchable: If the `keyword_searchable` flag is true, the - // keywords in custom fields are searchable by keyword match. If false, - // the values are not searchable by keyword match. Default is false. + // KeywordSearchable: If the `keyword_searchable` flag is true, the keywords in + // custom fields are searchable by keyword match. If false, the values are not + // searchable by keyword match. Default is false. KeywordSearchable bool `json:"keywordSearchable,omitempty"` - - // LongValues: Exactly one of string_values or long_values must be - // specified. This field is used to perform number range search. (`EQ`, - // `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. Currently at - // most 1 long_values is supported. + // LongValues: Exactly one of string_values or long_values must be specified. + // This field is used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, + // `LT`) over filterable `long_value`. Currently at most 1 long_values is + // supported. LongValues googleapi.Int64s `json:"longValues,omitempty"` - - // StringValues: Exactly one of string_values or long_values must be - // specified. This field is used to perform a string match - // (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For - // filterable `string_value`s, a maximum total number of 200 values is - // allowed, with each `string_value` has a byte size of no more than - // 500B. For unfilterable `string_values`, the maximum total byte size - // of unfilterable `string_values` is 50KB. Empty string isn't allowed. + // StringValues: Exactly one of string_values or long_values must be specified. + // This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or + // `CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum + // total number of 200 values is allowed, with each `string_value` has a byte + // size of no more than 500B. For unfilterable `string_values`, the maximum + // total byte size of unfilterable `string_values` is 50KB. Empty string isn't + // allowed. StringValues []string `json:"stringValues,omitempty"` - // ForceSendFields is a list of field names (e.g. "Filterable") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filterable") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filterable") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4CustomAttribute) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4CustomAttribute) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4CustomAttribute - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudTalentV4Job: A Job resource represents a job posting (also -// referred to as a "job listing" or "job requisition"). A job belongs -// to a Company, which is the hiring entity responsible for the job. +// referred to as a "job listing" or "job requisition"). A job belongs to a +// Company, which is the hiring entity responsible for the job. type GoogleCloudTalentV4Job struct { - // Addresses: Strongly recommended for the best service experience. - // Location(s) where the employer is looking to hire for this job - // posting. Specifying the full street address(es) of the hiring - // location enables better API results, especially job searches by - // commute time. At most 50 locations are allowed for best search - // performance. If a job has more locations, it is suggested to split it - // into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes - // 'ReqA-1', 'ReqA-2', and so on.) as multiple jobs with the same - // company, language_code and requisition_id are not allowed. If the - // original requisition_id must be preserved, a custom field should be - // used for storage. It is also suggested to group the locations that - // close to each other in the same job for better search experience. The - // maximum number of allowed characters is 500. + // Addresses: Strongly recommended for the best service experience. Location(s) + // where the employer is looking to hire for this job posting. Specifying the + // full street address(es) of the hiring location enables better API results, + // especially job searches by commute time. At most 50 locations are allowed + // for best search performance. If a job has more locations, it is suggested to + // split it into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes + // 'ReqA-1', 'ReqA-2', and so on.) as multiple jobs with the same company, + // language_code and requisition_id are not allowed. If the original + // requisition_id must be preserved, a custom field should be used for storage. + // It is also suggested to group the locations that close to each other in the + // same job for better search experience. The maximum number of allowed + // characters is 500. Addresses []string `json:"addresses,omitempty"` - // ApplicationInfo: Job application information. ApplicationInfo *GoogleCloudTalentV4JobApplicationInfo `json:"applicationInfo,omitempty"` - - // Company: Required. The resource name of the company listing the job. - // The format is - // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". - // For example, "projects/foo/tenants/bar/companies/baz". + // Company: Required. The resource name of the company listing the job. The + // format is + // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". For + // example, "projects/foo/tenants/bar/companies/baz". Company string `json:"company,omitempty"` - - // CompanyDisplayName: Output only. Display name of the company listing - // the job. + // CompanyDisplayName: Output only. Display name of the company listing the + // job. CompanyDisplayName string `json:"companyDisplayName,omitempty"` - - // CompensationInfo: Job compensation information (a.k.a. "pay rate") - // i.e., the compensation that will paid to the employee. + // CompensationInfo: Job compensation information (a.k.a. "pay rate") i.e., the + // compensation that will paid to the employee. CompensationInfo *GoogleCloudTalentV4CompensationInfo `json:"compensationInfo,omitempty"` - - // CustomAttributes: A map of fields to hold both filterable and - // non-filterable custom job attributes that are not covered by the - // provided structured fields. The keys of the map are strings up to 64 - // bytes and must match the pattern: a-zA-Z*. For example, key0LikeThis - // or KEY_1_LIKE_THIS. At most 100 filterable and at most 100 - // unfilterable keys are supported. For filterable `string_values`, - // across all keys at most 200 values are allowed, with each string no - // more than 255 characters. For unfilterable `string_values`, the + // CustomAttributes: A map of fields to hold both filterable and non-filterable + // custom job attributes that are not covered by the provided structured + // fields. The keys of the map are strings up to 64 bytes and must match the + // pattern: a-zA-Z*. For example, key0LikeThis or KEY_1_LIKE_THIS. At most 100 + // filterable and at most 100 unfilterable keys are supported. For filterable + // `string_values`, across all keys at most 200 values are allowed, with each + // string no more than 255 characters. For unfilterable `string_values`, the // maximum total size of `string_values` across all keys is 50KB. CustomAttributes map[string]GoogleCloudTalentV4CustomAttribute `json:"customAttributes,omitempty"` - - // DegreeTypes: The desired education degrees for the job, such as - // Bachelors, Masters. + // DegreeTypes: The desired education degrees for the job, such as Bachelors, + // Masters. // // Possible values: - // "DEGREE_TYPE_UNSPECIFIED" - Default value. Represents no degree, or - // early childhood education. Maps to ISCED code 0. Ex) Kindergarten - // "PRIMARY_EDUCATION" - Primary education which is typically the - // first stage of compulsory education. ISCED code 1. Ex) Elementary - // school - // "LOWER_SECONDARY_EDUCATION" - Lower secondary education; First - // stage of secondary education building on primary education, typically - // with a more subject-oriented curriculum. ISCED code 2. Ex) Middle - // school - // "UPPER_SECONDARY_EDUCATION" - Middle education; Second/final stage - // of secondary education preparing for tertiary education and/or - // providing skills relevant to employment. Usually with an increased - // range of subject options and streams. ISCED code 3. Ex) High school + // "DEGREE_TYPE_UNSPECIFIED" - Default value. Represents no degree, or early + // childhood education. Maps to ISCED code 0. Ex) Kindergarten + // "PRIMARY_EDUCATION" - Primary education which is typically the first stage + // of compulsory education. ISCED code 1. Ex) Elementary school + // "LOWER_SECONDARY_EDUCATION" - Lower secondary education; First stage of + // secondary education building on primary education, typically with a more + // subject-oriented curriculum. ISCED code 2. Ex) Middle school + // "UPPER_SECONDARY_EDUCATION" - Middle education; Second/final stage of + // secondary education preparing for tertiary education and/or providing skills + // relevant to employment. Usually with an increased range of subject options + // and streams. ISCED code 3. Ex) High school // "ADULT_REMEDIAL_EDUCATION" - Adult Remedial Education; Programmes - // providing learning experiences that build on secondary education and - // prepare for labour market entry and/or tertiary education. The - // content is broader than secondary but not as complex as tertiary - // education. ISCED code 4. + // providing learning experiences that build on secondary education and prepare + // for labour market entry and/or tertiary education. The content is broader + // than secondary but not as complex as tertiary education. ISCED code 4. // "ASSOCIATES_OR_EQUIVALENT" - Associate's or equivalent; Short first // tertiary programmes that are typically practically-based, // occupationally-specific and prepare for labour market entry. These - // programmes may also provide a pathway to other tertiary programmes. - // ISCED code 5. - // "BACHELORS_OR_EQUIVALENT" - Bachelor's or equivalent; Programmes - // designed to provide intermediate academic and/or professional - // knowledge, skills and competencies leading to a first tertiary degree - // or equivalent qualification. ISCED code 6. - // "MASTERS_OR_EQUIVALENT" - Master's or equivalent; Programmes - // designed to provide advanced academic and/or professional knowledge, - // skills and competencies leading to a second tertiary degree or - // equivalent qualification. ISCED code 7. - // "DOCTORAL_OR_EQUIVALENT" - Doctoral or equivalent; Programmes - // designed primarily to lead to an advanced research qualification, - // usually concluding with the submission and defense of a substantive - // dissertation of publishable quality based on original research. ISCED - // code 8. + // programmes may also provide a pathway to other tertiary programmes. ISCED + // code 5. + // "BACHELORS_OR_EQUIVALENT" - Bachelor's or equivalent; Programmes designed + // to provide intermediate academic and/or professional knowledge, skills and + // competencies leading to a first tertiary degree or equivalent qualification. + // ISCED code 6. + // "MASTERS_OR_EQUIVALENT" - Master's or equivalent; Programmes designed to + // provide advanced academic and/or professional knowledge, skills and + // competencies leading to a second tertiary degree or equivalent + // qualification. ISCED code 7. + // "DOCTORAL_OR_EQUIVALENT" - Doctoral or equivalent; Programmes designed + // primarily to lead to an advanced research qualification, usually concluding + // with the submission and defense of a substantive dissertation of publishable + // quality based on original research. ISCED code 8. DegreeTypes []string `json:"degreeTypes,omitempty"` - - // Department: The department or functional area within the company with - // the open position. The maximum number of allowed characters is 255. + // Department: The department or functional area within the company with the + // open position. The maximum number of allowed characters is 255. Department string `json:"department,omitempty"` - // DerivedInfo: Output only. Derived details about the job posting. DerivedInfo *GoogleCloudTalentV4JobDerivedInfo `json:"derivedInfo,omitempty"` - - // Description: Required. The description of the job, which typically - // includes a multi-paragraph description of the company and related - // information. Separate fields are provided on the job object for - // responsibilities, qualifications, and other job characteristics. Use - // of these separate job fields is recommended. This field accepts and - // sanitizes HTML input, and also accepts bold, italic, ordered list, - // and unordered list markup tags. The maximum number of allowed - // characters is 100,000. + // Description: Required. The description of the job, which typically includes + // a multi-paragraph description of the company and related information. + // Separate fields are provided on the job object for responsibilities, + // qualifications, and other job characteristics. Use of these separate job + // fields is recommended. This field accepts and sanitizes HTML input, and also + // accepts bold, italic, ordered list, and unordered list markup tags. The + // maximum number of allowed characters is 100,000. Description string `json:"description,omitempty"` - - // EmploymentTypes: The employment type(s) of a job, for example, full - // time or part time. + // EmploymentTypes: The employment type(s) of a job, for example, full time or + // part time. // // Possible values: - // "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment - // type isn't specified. - // "FULL_TIME" - The job requires working a number of hours that - // constitute full time employment, typically 40 or more hours per week. - // "PART_TIME" - The job entails working fewer hours than a full time - // job, typically less than 40 hours a week. + // "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment type + // isn't specified. + // "FULL_TIME" - The job requires working a number of hours that constitute + // full time employment, typically 40 or more hours per week. + // "PART_TIME" - The job entails working fewer hours than a full time job, + // typically less than 40 hours a week. // "CONTRACTOR" - The job is offered as a contracted, as opposed to a // salaried employee, position. - // "CONTRACT_TO_HIRE" - The job is offered as a contracted position - // with the understanding that it's converted into a full-time position - // at the end of the contract. Jobs of this type are also returned by a - // search for EmploymentType.CONTRACTOR jobs. - // "TEMPORARY" - The job is offered as a temporary employment - // opportunity, usually a short-term engagement. - // "INTERN" - The job is a fixed-term opportunity for students or - // entry-level job seekers to obtain on-the-job training, typically - // offered as a summer position. - // "VOLUNTEER" - The is an opportunity for an individual to volunteer, - // where there's no expectation of compensation for the provided - // services. - // "PER_DIEM" - The job requires an employee to work on an as-needed - // basis with a flexible schedule. - // "FLY_IN_FLY_OUT" - The job involves employing people in remote - // areas and flying them temporarily to the work site instead of - // relocating employees and their families permanently. - // "OTHER_EMPLOYMENT_TYPE" - The job does not fit any of the other - // listed types. + // "CONTRACT_TO_HIRE" - The job is offered as a contracted position with the + // understanding that it's converted into a full-time position at the end of + // the contract. Jobs of this type are also returned by a search for + // EmploymentType.CONTRACTOR jobs. + // "TEMPORARY" - The job is offered as a temporary employment opportunity, + // usually a short-term engagement. + // "INTERN" - The job is a fixed-term opportunity for students or entry-level + // job seekers to obtain on-the-job training, typically offered as a summer + // position. + // "VOLUNTEER" - The is an opportunity for an individual to volunteer, where + // there's no expectation of compensation for the provided services. + // "PER_DIEM" - The job requires an employee to work on an as-needed basis + // with a flexible schedule. + // "FLY_IN_FLY_OUT" - The job involves employing people in remote areas and + // flying them temporarily to the work site instead of relocating employees and + // their families permanently. + // "OTHER_EMPLOYMENT_TYPE" - The job does not fit any of the other listed + // types. EmploymentTypes []string `json:"employmentTypes,omitempty"` - - // Incentives: A description of bonus, commission, and other - // compensation incentives associated with the job not including salary - // or pay. The maximum number of allowed characters is 10,000. + // Incentives: A description of bonus, commission, and other compensation + // incentives associated with the job not including salary or pay. The maximum + // number of allowed characters is 10,000. Incentives string `json:"incentives,omitempty"` - // JobBenefits: The benefits included with the job. // // Possible values: - // "JOB_BENEFIT_UNSPECIFIED" - Default value if the type isn't - // specified. - // "CHILD_CARE" - The job includes access to programs that support - // child care, such as daycare. - // "DENTAL" - The job includes dental services covered by a dental - // insurance plan. + // "JOB_BENEFIT_UNSPECIFIED" - Default value if the type isn't specified. + // "CHILD_CARE" - The job includes access to programs that support child + // care, such as daycare. + // "DENTAL" - The job includes dental services covered by a dental insurance + // plan. // "DOMESTIC_PARTNER" - The job offers specific benefits to domestic // partners. // "FLEXIBLE_HOURS" - The job allows for a flexible work schedule. // "MEDICAL" - The job includes health services covered by a medical // insurance plan. - // "LIFE_INSURANCE" - The job includes a life insurance plan provided + // "LIFE_INSURANCE" - The job includes a life insurance plan provided by the + // employer or available for purchase by the employee. + // "PARENTAL_LEAVE" - The job allows for a leave of absence to a parent to + // care for a newborn child. + // "RETIREMENT_PLAN" - The job includes a workplace retirement plan provided // by the employer or available for purchase by the employee. - // "PARENTAL_LEAVE" - The job allows for a leave of absence to a - // parent to care for a newborn child. - // "RETIREMENT_PLAN" - The job includes a workplace retirement plan - // provided by the employer or available for purchase by the employee. // "SICK_DAYS" - The job allows for paid time off due to illness. // "VACATION" - The job includes paid time off for vacation. - // "VISION" - The job includes vision services covered by a vision - // insurance plan. + // "VISION" - The job includes vision services covered by a vision insurance + // plan. JobBenefits []string `json:"jobBenefits,omitempty"` - - // JobEndTime: The end timestamp of the job. Typically this field is - // used for contracting engagements. Invalid timestamps are ignored. + // JobEndTime: The end timestamp of the job. Typically this field is used for + // contracting engagements. Invalid timestamps are ignored. JobEndTime string `json:"jobEndTime,omitempty"` - - // JobLevel: The experience level associated with the job, such as - // "Entry Level". + // JobLevel: The experience level associated with the job, such as "Entry + // Level". // // Possible values: - // "JOB_LEVEL_UNSPECIFIED" - The default value if the level isn't - // specified. - // "ENTRY_LEVEL" - Entry-level individual contributors, typically with - // less than 2 years of experience in a similar role. Includes interns. - // "EXPERIENCED" - Experienced individual contributors, typically with - // 2+ years of experience in a similar role. - // "MANAGER" - Entry- to mid-level managers responsible for managing a - // team of people. - // "DIRECTOR" - Senior-level managers responsible for managing teams - // of managers. + // "JOB_LEVEL_UNSPECIFIED" - The default value if the level isn't specified. + // "ENTRY_LEVEL" - Entry-level individual contributors, typically with less + // than 2 years of experience in a similar role. Includes interns. + // "EXPERIENCED" - Experienced individual contributors, typically with 2+ + // years of experience in a similar role. + // "MANAGER" - Entry- to mid-level managers responsible for managing a team + // of people. + // "DIRECTOR" - Senior-level managers responsible for managing teams of + // managers. // "EXECUTIVE" - Executive-level managers and above, including C-level // positions. JobLevel string `json:"jobLevel,omitempty"` - - // JobStartTime: The start timestamp of the job in UTC time zone. - // Typically this field is used for contracting engagements. Invalid - // timestamps are ignored. + // JobStartTime: The start timestamp of the job in UTC time zone. Typically + // this field is used for contracting engagements. Invalid timestamps are + // ignored. JobStartTime string `json:"jobStartTime,omitempty"` - - // LanguageCode: The language of the posting. This field is distinct - // from any requirements for fluency that are associated with the job. - // Language codes must be in BCP-47 format, such as "en-US" or - // "sr-Latn". For more information, see [Tags for Identifying - // Languages](https://tools.ietf.org/html/bcp47){: class="external" - // target="_blank" }. If this field is unspecified and Job.description - // is present, detected language code based on Job.description is - // assigned, otherwise defaults to 'en_US'. + // LanguageCode: The language of the posting. This field is distinct from any + // requirements for fluency that are associated with the job. Language codes + // must be in BCP-47 format, such as "en-US" or "sr-Latn". For more + // information, see Tags for Identifying Languages + // (https://tools.ietf.org/html/bcp47){: class="external" target="_blank" }. If + // this field is unspecified and Job.description is present, detected language + // code based on Job.description is assigned, otherwise defaults to 'en_US'. LanguageCode string `json:"languageCode,omitempty"` - - // Name: Required during job update. The resource name for the job. This - // is generated by the service when a job is created. The format is - // "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For - // example, "projects/foo/tenants/bar/jobs/baz". Use of this field in - // job queries and API calls is preferred over the use of requisition_id - // since this value is unique. + // Name: Required during job update. The resource name for the job. This is + // generated by the service when a job is created. The format is + // "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, + // "projects/foo/tenants/bar/jobs/baz". Use of this field in job queries and + // API calls is preferred over the use of requisition_id since this value is + // unique. Name string `json:"name,omitempty"` - - // PostingCreateTime: Output only. The timestamp when this job posting - // was created. + // PostingCreateTime: Output only. The timestamp when this job posting was + // created. PostingCreateTime string `json:"postingCreateTime,omitempty"` - - // PostingExpireTime: Strongly recommended for the best service - // experience. The expiration timestamp of the job. After this - // timestamp, the job is marked as expired, and it no longer appears in - // search results. The expired job can't be listed by the ListJobs API, - // but it can be retrieved with the GetJob API or updated with the - // UpdateJob API or deleted with the DeleteJob API. An expired job can - // be updated and opened again by using a future expiration timestamp. - // Updating an expired job fails if there is another existing open job - // with same company, language_code and requisition_id. The expired jobs - // are retained in our system for 90 days. However, the overall expired - // job count cannot exceed 3 times the maximum number of open jobs over - // previous 7 days. If this threshold is exceeded, expired jobs are - // cleaned out in order of earliest expire time. Expired jobs are no - // longer accessible after they are cleaned out. Invalid timestamps are - // ignored, and treated as expire time not provided. If the timestamp is - // before the instant request is made, the job is treated as expired - // immediately on creation. This kind of job can not be updated. And - // when creating a job with past timestamp, the posting_publish_time - // must be set before posting_expire_time. The purpose of this feature - // is to allow other objects, such as Application, to refer a job that - // didn't exist in the system prior to becoming expired. If you want to - // modify a job that was expired on creation, delete it and create a new - // one. If this value isn't provided at the time of job creation or is - // invalid, the job posting expires after 30 days from the job's - // creation time. For example, if the job was created on 2017/01/01 - // 13:00AM UTC with an unspecified expiration date, the job expires - // after 2017/01/31 13:00AM UTC. If this value isn't provided on job - // update, it depends on the field masks set by - // UpdateJobRequest.update_mask. If the field masks include - // job_end_time, or the masks are empty meaning that every field is - // updated, the job posting expires after 30 days from the job's last - // update time. Otherwise the expiration date isn't updated. + // PostingExpireTime: Strongly recommended for the best service experience. The + // expiration timestamp of the job. After this timestamp, the job is marked as + // expired, and it no longer appears in search results. The expired job can't + // be listed by the ListJobs API, but it can be retrieved with the GetJob API + // or updated with the UpdateJob API or deleted with the DeleteJob API. An + // expired job can be updated and opened again by using a future expiration + // timestamp. Updating an expired job fails if there is another existing open + // job with same company, language_code and requisition_id. The expired jobs + // are retained in our system for 90 days. However, the overall expired job + // count cannot exceed 3 times the maximum number of open jobs over previous 7 + // days. If this threshold is exceeded, expired jobs are cleaned out in order + // of earliest expire time. Expired jobs are no longer accessible after they + // are cleaned out. Invalid timestamps are ignored, and treated as expire time + // not provided. If the timestamp is before the instant request is made, the + // job is treated as expired immediately on creation. This kind of job can not + // be updated. And when creating a job with past timestamp, the + // posting_publish_time must be set before posting_expire_time. The purpose of + // this feature is to allow other objects, such as Application, to refer a job + // that didn't exist in the system prior to becoming expired. If you want to + // modify a job that was expired on creation, delete it and create a new one. + // If this value isn't provided at the time of job creation or is invalid, the + // job posting expires after 30 days from the job's creation time. For example, + // if the job was created on 2017/01/01 13:00AM UTC with an unspecified + // expiration date, the job expires after 2017/01/31 13:00AM UTC. If this value + // isn't provided on job update, it depends on the field masks set by + // UpdateJobRequest.update_mask. If the field masks include job_end_time, or + // the masks are empty meaning that every field is updated, the job posting + // expires after 30 days from the job's last update time. Otherwise the + // expiration date isn't updated. PostingExpireTime string `json:"postingExpireTime,omitempty"` - // PostingPublishTime: The timestamp this job posting was most recently - // published. The default value is the time the request arrives at the - // server. Invalid timestamps are ignored. + // published. The default value is the time the request arrives at the server. + // Invalid timestamps are ignored. PostingPublishTime string `json:"postingPublishTime,omitempty"` - // PostingRegion: The job PostingRegion (for example, state, country) // throughout which the job is available. If this field is set, a // LocationFilter in a search query within the job region finds this job - // posting if an exact location match isn't specified. If this field is - // set to PostingRegion.NATION or PostingRegion.ADMINISTRATIVE_AREA, - // setting job Job.addresses to the same location level as this field is - // strongly recommended. + // posting if an exact location match isn't specified. If this field is set to + // PostingRegion.NATION or PostingRegion.ADMINISTRATIVE_AREA, setting job + // Job.addresses to the same location level as this field is strongly + // recommended. // // Possible values: - // "POSTING_REGION_UNSPECIFIED" - If the region is unspecified, the - // job is only returned if it matches the LocationFilter. + // "POSTING_REGION_UNSPECIFIED" - If the region is unspecified, the job is + // only returned if it matches the LocationFilter. // "ADMINISTRATIVE_AREA" - In addition to exact location matching, job - // posting is returned when the LocationFilter in the search query is in - // the same administrative area as the returned job posting. For - // example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's - // returned if LocationFilter has "Mountain View". Administrative area - // refers to top-level administrative subdivision of this country. For - // example, US state, IT region, UK constituent nation and JP - // prefecture. - // "NATION" - In addition to exact location matching, job is returned - // when LocationFilter in search query is in the same country as this - // job. For example, if a `NATION_WIDE` job is posted in "USA", it's - // returned if LocationFilter has 'Mountain View'. - // "TELECOMMUTE" - Job allows employees to work remotely - // (telecommute). If locations are provided with this value, the job is - // considered as having a location, but telecommuting is allowed. + // posting is returned when the LocationFilter in the search query is in the + // same administrative area as the returned job posting. For example, if a + // `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's returned if + // LocationFilter has "Mountain View". Administrative area refers to top-level + // administrative subdivision of this country. For example, US state, IT + // region, UK constituent nation and JP prefecture. + // "NATION" - In addition to exact location matching, job is returned when + // LocationFilter in search query is in the same country as this job. For + // example, if a `NATION_WIDE` job is posted in "USA", it's returned if + // LocationFilter has 'Mountain View'. + // "TELECOMMUTE" - Job allows employees to work remotely (telecommute). If + // locations are provided with this value, the job is considered as having a + // location, but telecommuting is allowed. PostingRegion string `json:"postingRegion,omitempty"` - - // PostingUpdateTime: Output only. The timestamp when this job posting - // was last updated. + // PostingUpdateTime: Output only. The timestamp when this job posting was last + // updated. PostingUpdateTime string `json:"postingUpdateTime,omitempty"` - // ProcessingOptions: Options for job processing. ProcessingOptions *GoogleCloudTalentV4JobProcessingOptions `json:"processingOptions,omitempty"` - - // PromotionValue: A promotion value of the job, as determined by the - // client. The value determines the sort order of the jobs returned when - // searching for jobs using the featured jobs search call, with higher - // promotional values being returned first and ties being resolved by - // relevance sort. Only the jobs with a promotionValue >0 are returned - // in a FEATURED_JOB_SEARCH. Default value is 0, and negative values are - // treated as 0. + // PromotionValue: A promotion value of the job, as determined by the client. + // The value determines the sort order of the jobs returned when searching for + // jobs using the featured jobs search call, with higher promotional values + // being returned first and ties being resolved by relevance sort. Only the + // jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH. Default + // value is 0, and negative values are treated as 0. PromotionValue int64 `json:"promotionValue,omitempty"` - - // Qualifications: A description of the qualifications required to - // perform the job. The use of this field is recommended as an - // alternative to using the more general description field. This field - // accepts and sanitizes HTML input, and also accepts bold, italic, - // ordered list, and unordered list markup tags. The maximum number of - // allowed characters is 10,000. + // Qualifications: A description of the qualifications required to perform the + // job. The use of this field is recommended as an alternative to using the + // more general description field. This field accepts and sanitizes HTML input, + // and also accepts bold, italic, ordered list, and unordered list markup tags. + // The maximum number of allowed characters is 10,000. Qualifications string `json:"qualifications,omitempty"` - - // RequisitionId: Required. The requisition ID, also referred to as the - // posting ID, is assigned by the client to identify a job. This field - // is intended to be used by clients for client identification and - // tracking of postings. A job isn't allowed to be created if there is - // another job with the same company, language_code and requisition_id. - // The maximum number of allowed characters is 255. + // RequisitionId: Required. The requisition ID, also referred to as the posting + // ID, is assigned by the client to identify a job. This field is intended to + // be used by clients for client identification and tracking of postings. A job + // isn't allowed to be created if there is another job with the same company, + // language_code and requisition_id. The maximum number of allowed characters + // is 255. RequisitionId string `json:"requisitionId,omitempty"` - - // Responsibilities: A description of job responsibilities. The use of - // this field is recommended as an alternative to using the more general - // description field. This field accepts and sanitizes HTML input, and - // also accepts bold, italic, ordered list, and unordered list markup - // tags. The maximum number of allowed characters is 10,000. + // Responsibilities: A description of job responsibilities. The use of this + // field is recommended as an alternative to using the more general description + // field. This field accepts and sanitizes HTML input, and also accepts bold, + // italic, ordered list, and unordered list markup tags. The maximum number of + // allowed characters is 10,000. Responsibilities string `json:"responsibilities,omitempty"` - - // Title: Required. The title of the job, such as "Software Engineer" - // The maximum number of allowed characters is 500. + // Title: Required. The title of the job, such as "Software Engineer" The + // maximum number of allowed characters is 500. Title string `json:"title,omitempty"` - - // Visibility: Deprecated. The job is only visible to the owner. The - // visibility of the job. Defaults to Visibility.ACCOUNT_ONLY if not - // specified. + // Visibility: Deprecated. The job is only visible to the owner. The visibility + // of the job. Defaults to Visibility.ACCOUNT_ONLY if not specified. // // Possible values: // "VISIBILITY_UNSPECIFIED" - Default value. - // "ACCOUNT_ONLY" - The resource is only visible to the GCP account - // who owns it. - // "SHARED_WITH_GOOGLE" - The resource is visible to the owner and may - // be visible to other applications and processes at Google. - // "SHARED_WITH_PUBLIC" - The resource is visible to the owner and may - // be visible to all other API clients. + // "ACCOUNT_ONLY" - The resource is only visible to the GCP account who owns + // it. + // "SHARED_WITH_GOOGLE" - The resource is visible to the owner and may be + // visible to other applications and processes at Google. + // "SHARED_WITH_PUBLIC" - The resource is visible to the owner and may be + // visible to all other API clients. Visibility string `json:"visibility,omitempty"` - // ForceSendFields is a list of field names (e.g. "Addresses") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Addresses") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Addresses") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4Job) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4Job) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4Job - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudTalentV4JobApplicationInfo: Application related details of -// a job posting. +// GoogleCloudTalentV4JobApplicationInfo: Application related details of a job +// posting. type GoogleCloudTalentV4JobApplicationInfo struct { - // Emails: Use this field to specify email address(es) to which resumes - // or applications can be sent. The maximum number of allowed characters - // for each entry is 255. + // Emails: Use this field to specify email address(es) to which resumes or + // applications can be sent. The maximum number of allowed characters for each + // entry is 255. Emails []string `json:"emails,omitempty"` - - // Instruction: Use this field to provide instructions, such as "Mail - // your application to ...", that a candidate can follow to apply for - // the job. This field accepts and sanitizes HTML input, and also - // accepts bold, italic, ordered list, and unordered list markup tags. - // The maximum number of allowed characters is 3,000. + // Instruction: Use this field to provide instructions, such as "Mail your + // application to ...", that a candidate can follow to apply for the job. This + // field accepts and sanitizes HTML input, and also accepts bold, italic, + // ordered list, and unordered list markup tags. The maximum number of allowed + // characters is 3,000. Instruction string `json:"instruction,omitempty"` - - // Uris: Use this URI field to direct an applicant to a website, for - // example to link to an online application form. The maximum number of - // allowed characters for each entry is 2,000. + // Uris: Use this URI field to direct an applicant to a website, for example to + // link to an online application form. The maximum number of allowed characters + // for each entry is 2,000. Uris []string `json:"uris,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Emails") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Emails") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Emails") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4JobApplicationInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4JobApplicationInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4JobApplicationInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudTalentV4JobDerivedInfo: Derived details about the job -// posting. +// GoogleCloudTalentV4JobDerivedInfo: Derived details about the job posting. type GoogleCloudTalentV4JobDerivedInfo struct { - // JobCategories: Job categories derived from Job.title and - // Job.description. + // JobCategories: Job categories derived from Job.title and Job.description. // // Possible values: - // "JOB_CATEGORY_UNSPECIFIED" - The default value if the category - // isn't specified. - // "ACCOUNTING_AND_FINANCE" - An accounting and finance job, such as - // an Accountant. - // "ADMINISTRATIVE_AND_OFFICE" - An administrative and office job, - // such as an Administrative Assistant. - // "ADVERTISING_AND_MARKETING" - An advertising and marketing job, - // such as Marketing Manager. + // "JOB_CATEGORY_UNSPECIFIED" - The default value if the category isn't + // specified. + // "ACCOUNTING_AND_FINANCE" - An accounting and finance job, such as an + // Accountant. + // "ADMINISTRATIVE_AND_OFFICE" - An administrative and office job, such as an + // Administrative Assistant. + // "ADVERTISING_AND_MARKETING" - An advertising and marketing job, such as + // Marketing Manager. // "ANIMAL_CARE" - An animal care job, such as Veterinarian. // "ART_FASHION_AND_DESIGN" - An art, fashion, or design job, such as // Designer. @@ -2723,86 +2266,73 @@ type GoogleCloudTalentV4JobDerivedInfo struct { // Operations Manager. // "CLEANING_AND_FACILITIES" - A cleaning and facilities job, such as // Custodial Staff. - // "COMPUTER_AND_IT" - A computer and IT job, such as Systems - // Administrator. + // "COMPUTER_AND_IT" - A computer and IT job, such as Systems Administrator. // "CONSTRUCTION" - A construction job, such as General Laborer. // "CUSTOMER_SERVICE" - A customer service job, such s Cashier. // "EDUCATION" - An education job, such as School Teacher. - // "ENTERTAINMENT_AND_TRAVEL" - An entertainment and travel job, such - // as Flight Attendant. - // "FARMING_AND_OUTDOORS" - A farming or outdoor job, such as Park - // Ranger. + // "ENTERTAINMENT_AND_TRAVEL" - An entertainment and travel job, such as + // Flight Attendant. + // "FARMING_AND_OUTDOORS" - A farming or outdoor job, such as Park Ranger. // "HEALTHCARE" - A healthcare job, such as Registered Nurse. // "HUMAN_RESOURCES" - A human resources job, such as Human Resources // Director. - // "INSTALLATION_MAINTENANCE_AND_REPAIR" - An installation, - // maintenance, or repair job, such as Electrician. + // "INSTALLATION_MAINTENANCE_AND_REPAIR" - An installation, maintenance, or + // repair job, such as Electrician. // "LEGAL" - A legal job, such as Law Clerk. - // "MANAGEMENT" - A management job, often used in conjunction with - // another category, such as Store Manager. - // "MANUFACTURING_AND_WAREHOUSE" - A manufacturing or warehouse job, - // such as Assembly Technician. - // "MEDIA_COMMUNICATIONS_AND_WRITING" - A media, communications, or - // writing job, such as Media Relations. + // "MANAGEMENT" - A management job, often used in conjunction with another + // category, such as Store Manager. + // "MANUFACTURING_AND_WAREHOUSE" - A manufacturing or warehouse job, such as + // Assembly Technician. + // "MEDIA_COMMUNICATIONS_AND_WRITING" - A media, communications, or writing + // job, such as Media Relations. // "OIL_GAS_AND_MINING" - An oil, gas or mining job, such as Offshore // Driller. - // "PERSONAL_CARE_AND_SERVICES" - A personal care and services job, - // such as Hair Stylist. - // "PROTECTIVE_SERVICES" - A protective services job, such as Security - // Guard. + // "PERSONAL_CARE_AND_SERVICES" - A personal care and services job, such as + // Hair Stylist. + // "PROTECTIVE_SERVICES" - A protective services job, such as Security Guard. // "REAL_ESTATE" - A real estate job, such as Buyer's Agent. - // "RESTAURANT_AND_HOSPITALITY" - A restaurant and hospitality job, - // such as Restaurant Server. - // "SALES_AND_RETAIL" - A sales and/or retail job, such Sales - // Associate. - // "SCIENCE_AND_ENGINEERING" - A science and engineering job, such as - // Lab Technician. - // "SOCIAL_SERVICES_AND_NON_PROFIT" - A social services or non-profit - // job, such as Case Worker. - // "SPORTS_FITNESS_AND_RECREATION" - A sports, fitness, or recreation - // job, such as Personal Trainer. - // "TRANSPORTATION_AND_LOGISTICS" - A transportation or logistics job, - // such as Truck Driver. + // "RESTAURANT_AND_HOSPITALITY" - A restaurant and hospitality job, such as + // Restaurant Server. + // "SALES_AND_RETAIL" - A sales and/or retail job, such Sales Associate. + // "SCIENCE_AND_ENGINEERING" - A science and engineering job, such as Lab + // Technician. + // "SOCIAL_SERVICES_AND_NON_PROFIT" - A social services or non-profit job, + // such as Case Worker. + // "SPORTS_FITNESS_AND_RECREATION" - A sports, fitness, or recreation job, + // such as Personal Trainer. + // "TRANSPORTATION_AND_LOGISTICS" - A transportation or logistics job, such + // as Truck Driver. JobCategories []string `json:"jobCategories,omitempty"` - - // Locations: Structured locations of the job, resolved from - // Job.addresses. locations are exactly matched to Job.addresses in the - // same order. + // Locations: Structured locations of the job, resolved from Job.addresses. + // locations are exactly matched to Job.addresses in the same order. Locations []*GoogleCloudTalentV4Location `json:"locations,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobCategories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "JobCategories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "JobCategories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4JobDerivedInfo) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4JobDerivedInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4JobDerivedInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudTalentV4JobProcessingOptions: Options for job processing. type GoogleCloudTalentV4JobProcessingOptions struct { - // DisableStreetAddressResolution: If set to `true`, the service does - // not attempt to resolve a more precise address for the job. + // DisableStreetAddressResolution: If set to `true`, the service does not + // attempt to resolve a more precise address for the job. DisableStreetAddressResolution bool `json:"disableStreetAddressResolution,omitempty"` - - // HtmlSanitization: Option for job HTML content sanitization. Applied - // fields are: * description * applicationInfo.instruction * incentives - // * qualifications * responsibilities HTML tags in these fields may be - // stripped if sanitiazation isn't disabled. Defaults to + // HtmlSanitization: Option for job HTML content sanitization. Applied fields + // are: * description * applicationInfo.instruction * incentives * + // qualifications * responsibilities HTML tags in these fields may be stripped + // if sanitiazation isn't disabled. Defaults to // HtmlSanitization.SIMPLE_FORMATTING_ONLY. // // Possible values: @@ -2811,131 +2341,107 @@ type GoogleCloudTalentV4JobProcessingOptions struct { // "SIMPLE_FORMATTING_ONLY" - Sanitizes HTML input, only accepts bold, // italic, ordered list, and unordered list markup tags. HtmlSanitization string `json:"htmlSanitization,omitempty"` - // ForceSendFields is a list of field names (e.g. // "DisableStreetAddressResolution") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DisableStreetAddressResolution") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisableStreetAddressResolution") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4JobProcessingOptions) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4JobProcessingOptions) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4JobProcessingOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudTalentV4JobResult: Mutation result of a job from a batch // operation. type GoogleCloudTalentV4JobResult struct { - // Job: Here Job only contains basic information including name, - // company, language_code and requisition_id, use getJob method to - // retrieve detailed information of the created/updated job. + // Job: Here Job only contains basic information including name, company, + // language_code and requisition_id, use getJob method to retrieve detailed + // information of the created/updated job. Job *GoogleCloudTalentV4Job `json:"job,omitempty"` - - // Status: The status of the job processed. This field is populated if - // the processing of the job fails. + // Status: The status of the job processed. This field is populated if the + // processing of the job fails. Status *Status `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Job") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Job") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Job") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Job") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4JobResult) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4JobResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4JobResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudTalentV4Location: A resource that represents a location -// with full geographic information. +// GoogleCloudTalentV4Location: A resource that represents a location with full +// geographic information. type GoogleCloudTalentV4Location struct { // LatLng: An object representing a latitude/longitude pair. LatLng *LatLng `json:"latLng,omitempty"` - - // LocationType: The type of a location, which corresponds to the - // address lines field of google.type.PostalAddress. For example, - // "Downtown, Atlanta, GA, USA" has a type of LocationType.NEIGHBORHOOD, - // and "Kansas City, KS, USA" has a type of LocationType.LOCALITY. + // LocationType: The type of a location, which corresponds to the address lines + // field of google.type.PostalAddress. For example, "Downtown, Atlanta, GA, + // USA" has a type of LocationType.NEIGHBORHOOD, and "Kansas City, KS, USA" has + // a type of LocationType.LOCALITY. // // Possible values: - // "LOCATION_TYPE_UNSPECIFIED" - Default value if the type isn't - // specified. + // "LOCATION_TYPE_UNSPECIFIED" - Default value if the type isn't specified. // "COUNTRY" - A country level location. // "ADMINISTRATIVE_AREA" - A state or equivalent level location. // "SUB_ADMINISTRATIVE_AREA" - A county or equivalent level location. // "LOCALITY" - A city or equivalent level location. // "POSTAL_CODE" - A postal code level location. - // "SUB_LOCALITY" - A sublocality is a subdivision of a locality, for - // example a city borough, ward, or arrondissement. Sublocalities are - // usually recognized by a local political authority. For example, - // Manhattan and Brooklyn are recognized as boroughs by the City of New - // York, and are therefore modeled as sublocalities. + // "SUB_LOCALITY" - A sublocality is a subdivision of a locality, for example + // a city borough, ward, or arrondissement. Sublocalities are usually + // recognized by a local political authority. For example, Manhattan and + // Brooklyn are recognized as boroughs by the City of New York, and are + // therefore modeled as sublocalities. // "SUB_LOCALITY_1" - A district or equivalent level location. // "SUB_LOCALITY_2" - A smaller district or equivalent level display. // "NEIGHBORHOOD" - A neighborhood level location. // "STREET_ADDRESS" - A street address level location. LocationType string `json:"locationType,omitempty"` - - // PostalAddress: Postal address of the location that includes human - // readable information, such as postal delivery and payments addresses. - // Given a postal address, a postal service can deliver items to a - // premises, P.O. Box, or other delivery location. + // PostalAddress: Postal address of the location that includes human readable + // information, such as postal delivery and payments addresses. Given a postal + // address, a postal service can deliver items to a premises, P.O. Box, or + // other delivery location. PostalAddress *PostalAddress `json:"postalAddress,omitempty"` - - // RadiusMiles: Radius in miles of the job location. This value is - // derived from the location bounding box in which a circle with the - // specified radius centered from google.type.LatLng covers the area - // associated with the job location. For example, currently, "Mountain - // View, CA, USA" has a radius of 6.17 miles. + // RadiusMiles: Radius in miles of the job location. This value is derived from + // the location bounding box in which a circle with the specified radius + // centered from google.type.LatLng covers the area associated with the job + // location. For example, currently, "Mountain View, CA, USA" has a radius of + // 6.17 miles. RadiusMiles float64 `json:"radiusMiles,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LatLng") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "LatLng") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "LatLng") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudTalentV4Location) MarshalJSON() ([]byte, error) { +func (s GoogleCloudTalentV4Location) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudTalentV4Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleCloudTalentV4Location) UnmarshalJSON(data []byte) error { @@ -2955,19 +2461,17 @@ func (s *GoogleCloudTalentV4Location) UnmarshalJSON(data []byte) error { // HistogramFacets: Input only. Histogram facets to be specified in // SearchJobsRequest. type HistogramFacets struct { - // CompensationHistogramFacets: Optional. Specifies compensation - // field-based histogram requests. Duplicate values of - // CompensationHistogramRequest.type are not allowed. + // CompensationHistogramFacets: Optional. Specifies compensation field-based + // histogram requests. Duplicate values of CompensationHistogramRequest.type + // are not allowed. CompensationHistogramFacets []*CompensationHistogramRequest `json:"compensationHistogramFacets,omitempty"` - - // CustomAttributeHistogramFacets: Optional. Specifies the custom - // attributes histogram requests. Duplicate values of - // CustomAttributeHistogramRequest.key are not allowed. + // CustomAttributeHistogramFacets: Optional. Specifies the custom attributes + // histogram requests. Duplicate values of CustomAttributeHistogramRequest.key + // are not allowed. CustomAttributeHistogramFacets []*CustomAttributeHistogramRequest `json:"customAttributeHistogramFacets,omitempty"` - - // SimpleHistogramFacets: Optional. Specifies the simple type of - // histogram facets, for example, `COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc. - // This field is equivalent to GetHistogramRequest. + // SimpleHistogramFacets: Optional. Specifies the simple type of histogram + // facets, for example, `COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc. This field is + // equivalent to GetHistogramRequest. // // Possible values: // "JOB_FIELD_UNSPECIFIED" - The default value if search type is not @@ -2975,8 +2479,8 @@ type HistogramFacets struct { // "COMPANY_ID" - Filter by the company id field. // "EMPLOYMENT_TYPE" - Filter by the employment type field, such as // `FULL_TIME` or `PART_TIME`. - // "COMPANY_SIZE" - Filter by the company size type field, such as - // `BIG`, `SMALL` or `BIGGER`. + // "COMPANY_SIZE" - Filter by the company size type field, such as `BIG`, + // `SMALL` or `BIGGER`. // "DATE_PUBLISHED" - Filter by the date published field. Values are // stringified with TimeRange, for example, TimeRange.PAST_MONTH. // "CUSTOM_FIELD_1" - Filter by custom field 1. @@ -2999,67 +2503,55 @@ type HistogramFacets struct { // "CUSTOM_FIELD_18" - Filter by custom field 18. // "CUSTOM_FIELD_19" - Filter by custom field 19. // "CUSTOM_FIELD_20" - Filter by custom field 20. - // "EDUCATION_LEVEL" - Filter by the required education level of the - // job. - // "EXPERIENCE_LEVEL" - Filter by the required experience level of the - // job. - // "ADMIN1" - Filter by Admin1, which is a global placeholder for - // referring to state, province, or the particular term a country uses - // to define the geographic structure below the country level. Examples - // include states codes such as "CA", "IL", "NY", and provinces, such as - // "BC". + // "EDUCATION_LEVEL" - Filter by the required education level of the job. + // "EXPERIENCE_LEVEL" - Filter by the required experience level of the job. + // "ADMIN1" - Filter by Admin1, which is a global placeholder for referring + // to state, province, or the particular term a country uses to define the + // geographic structure below the country level. Examples include states codes + // such as "CA", "IL", "NY", and provinces, such as "BC". // "COUNTRY" - Filter by the country code of job, such as US, JP, FR. - // "CITY" - Filter by the "city name", "Admin1 code", for example, - // "Mountain View, CA" or "New York, NY". - // "LOCALE" - Filter by the locale field of a job, such as "en-US", - // "fr-FR". This is the BCP-47 language code, such as "en-US" or - // "sr-Latn". For more information, see [Tags for Identifying + // "CITY" - Filter by the "city name", "Admin1 code", for example, "Mountain + // View, CA" or "New York, NY". + // "LOCALE" - Filter by the locale field of a job, such as "en-US", "fr-FR". + // This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more + // information, see [Tags for Identifying // Languages](https://tools.ietf.org/html/bcp47). - // "LANGUAGE" - Filter by the language code portion of the locale - // field, such as "en" or "fr". + // "LANGUAGE" - Filter by the language code portion of the locale field, such + // as "en" or "fr". // "CATEGORY" - Filter by the Category. - // "CITY_COORDINATE" - Filter by the city center GPS coordinate - // (latitude and longitude), for example, 37.4038522,-122.0987765. Since - // the coordinates of a city center can change, clients may need to - // refresh them periodically. - // "ADMIN1_COUNTRY" - A combination of state or province code with a - // country code. This field differs from `JOB_ADMIN1`, which can be used - // in multiple countries. - // "COMPANY_TITLE" - Deprecated. Use COMPANY_DISPLAY_NAME instead. - // Company display name. + // "CITY_COORDINATE" - Filter by the city center GPS coordinate (latitude and + // longitude), for example, 37.4038522,-122.0987765. Since the coordinates of a + // city center can change, clients may need to refresh them periodically. + // "ADMIN1_COUNTRY" - A combination of state or province code with a country + // code. This field differs from `JOB_ADMIN1`, which can be used in multiple + // countries. + // "COMPANY_TITLE" - Deprecated. Use COMPANY_DISPLAY_NAME instead. Company + // display name. // "COMPANY_DISPLAY_NAME" - Company display name. // "BASE_COMPENSATION_UNIT" - Base compensation unit. SimpleHistogramFacets []string `json:"simpleHistogramFacets,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "CompensationHistogramFacets") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "CompensationHistogramFacets") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CompensationHistogramFacets") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompensationHistogramFacets") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HistogramFacets) MarshalJSON() ([]byte, error) { +func (s HistogramFacets) MarshalJSON() ([]byte, error) { type NoMethod HistogramFacets - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HistogramResult: Output only. Result of a histogram call. The -// response contains the histogram map for the search type specified by -// HistogramResult.field. The response is a map of each filter value to -// the corresponding count of jobs for that filter. +// HistogramResult: Output only. Result of a histogram call. The response +// contains the histogram map for the search type specified by +// HistogramResult.field. The response is a map of each filter value to the +// corresponding count of jobs for that filter. type HistogramResult struct { // SearchType: The Histogram search filters. // @@ -3069,8 +2561,8 @@ type HistogramResult struct { // "COMPANY_ID" - Filter by the company id field. // "EMPLOYMENT_TYPE" - Filter by the employment type field, such as // `FULL_TIME` or `PART_TIME`. - // "COMPANY_SIZE" - Filter by the company size type field, such as - // `BIG`, `SMALL` or `BIGGER`. + // "COMPANY_SIZE" - Filter by the company size type field, such as `BIG`, + // `SMALL` or `BIGGER`. // "DATE_PUBLISHED" - Filter by the date published field. Values are // stringified with TimeRange, for example, TimeRange.PAST_MONTH. // "CUSTOM_FIELD_1" - Filter by custom field 1. @@ -3093,556 +2585,462 @@ type HistogramResult struct { // "CUSTOM_FIELD_18" - Filter by custom field 18. // "CUSTOM_FIELD_19" - Filter by custom field 19. // "CUSTOM_FIELD_20" - Filter by custom field 20. - // "EDUCATION_LEVEL" - Filter by the required education level of the - // job. - // "EXPERIENCE_LEVEL" - Filter by the required experience level of the - // job. - // "ADMIN1" - Filter by Admin1, which is a global placeholder for - // referring to state, province, or the particular term a country uses - // to define the geographic structure below the country level. Examples - // include states codes such as "CA", "IL", "NY", and provinces, such as - // "BC". + // "EDUCATION_LEVEL" - Filter by the required education level of the job. + // "EXPERIENCE_LEVEL" - Filter by the required experience level of the job. + // "ADMIN1" - Filter by Admin1, which is a global placeholder for referring + // to state, province, or the particular term a country uses to define the + // geographic structure below the country level. Examples include states codes + // such as "CA", "IL", "NY", and provinces, such as "BC". // "COUNTRY" - Filter by the country code of job, such as US, JP, FR. - // "CITY" - Filter by the "city name", "Admin1 code", for example, - // "Mountain View, CA" or "New York, NY". - // "LOCALE" - Filter by the locale field of a job, such as "en-US", - // "fr-FR". This is the BCP-47 language code, such as "en-US" or - // "sr-Latn". For more information, see [Tags for Identifying + // "CITY" - Filter by the "city name", "Admin1 code", for example, "Mountain + // View, CA" or "New York, NY". + // "LOCALE" - Filter by the locale field of a job, such as "en-US", "fr-FR". + // This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more + // information, see [Tags for Identifying // Languages](https://tools.ietf.org/html/bcp47). - // "LANGUAGE" - Filter by the language code portion of the locale - // field, such as "en" or "fr". + // "LANGUAGE" - Filter by the language code portion of the locale field, such + // as "en" or "fr". // "CATEGORY" - Filter by the Category. - // "CITY_COORDINATE" - Filter by the city center GPS coordinate - // (latitude and longitude), for example, 37.4038522,-122.0987765. Since - // the coordinates of a city center can change, clients may need to - // refresh them periodically. - // "ADMIN1_COUNTRY" - A combination of state or province code with a - // country code. This field differs from `JOB_ADMIN1`, which can be used - // in multiple countries. - // "COMPANY_TITLE" - Deprecated. Use COMPANY_DISPLAY_NAME instead. - // Company display name. + // "CITY_COORDINATE" - Filter by the city center GPS coordinate (latitude and + // longitude), for example, 37.4038522,-122.0987765. Since the coordinates of a + // city center can change, clients may need to refresh them periodically. + // "ADMIN1_COUNTRY" - A combination of state or province code with a country + // code. This field differs from `JOB_ADMIN1`, which can be used in multiple + // countries. + // "COMPANY_TITLE" - Deprecated. Use COMPANY_DISPLAY_NAME instead. Company + // display name. // "COMPANY_DISPLAY_NAME" - Company display name. // "BASE_COMPENSATION_UNIT" - Base compensation unit. SearchType string `json:"searchType,omitempty"` - - // Values: A map from the values of field to the number of jobs with - // that value in this search result. Key: search type (filter names, - // such as the companyName). Values: the count of jobs that match the - // filter for this search. + // Values: A map from the values of field to the number of jobs with that value + // in this search result. Key: search type (filter names, such as the + // companyName). Values: the count of jobs that match the filter for this + // search. Values map[string]int64 `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "SearchType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SearchType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SearchType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HistogramResult) MarshalJSON() ([]byte, error) { +func (s HistogramResult) MarshalJSON() ([]byte, error) { type NoMethod HistogramResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // HistogramResults: Output only. Histogram results that matches // HistogramFacets specified in SearchJobsRequest. type HistogramResults struct { - // CompensationHistogramResults: Specifies compensation field-based - // histogram results that matches - // HistogramFacets.compensation_histogram_requests. + // CompensationHistogramResults: Specifies compensation field-based histogram + // results that matches HistogramFacets.compensation_histogram_requests. CompensationHistogramResults []*CompensationHistogramResult `json:"compensationHistogramResults,omitempty"` - - // CustomAttributeHistogramResults: Specifies histogram results for - // custom attributes that matches - // HistogramFacets.custom_attribute_histogram_facets. + // CustomAttributeHistogramResults: Specifies histogram results for custom + // attributes that matches HistogramFacets.custom_attribute_histogram_facets. CustomAttributeHistogramResults []*CustomAttributeHistogramResult `json:"customAttributeHistogramResults,omitempty"` - // SimpleHistogramResults: Specifies histogram results that matches // HistogramFacets.simple_histogram_facets. SimpleHistogramResults []*HistogramResult `json:"simpleHistogramResults,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "CompensationHistogramResults") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "CompensationHistogramResults") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CompensationHistogramResults") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "CompensationHistogramResults") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HistogramResults) MarshalJSON() ([]byte, error) { +func (s HistogramResults) MarshalJSON() ([]byte, error) { type NoMethod HistogramResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Job: A Job resource represents a job posting (also referred to as a -// "job listing" or "job requisition"). A job belongs to a Company, -// which is the hiring entity responsible for the job. +// Job: A Job resource represents a job posting (also referred to as a "job +// listing" or "job requisition"). A job belongs to a Company, which is the +// hiring entity responsible for the job. type Job struct { // ApplicationEmailList: Optional but at least one of application_urls, - // application_email_list or application_instruction must be specified. - // Use this field to specify email address(es) to which resumes or - // applications can be sent. The maximum number of allowed characters is - // 255. + // application_email_list or application_instruction must be specified. Use + // this field to specify email address(es) to which resumes or applications can + // be sent. The maximum number of allowed characters is 255. ApplicationEmailList []string `json:"applicationEmailList,omitempty"` - - // ApplicationInstruction: Optional but at least one of - // application_urls, application_email_list or application_instruction - // must be specified. Use this field to provide instructions, such as - // "Mail your application to ...", that a candidate can follow to apply - // for the job. This field accepts and sanitizes HTML input, and also - // accepts bold, italic, ordered list, and unordered list markup tags. - // The maximum number of allowed characters is 3,000. + // ApplicationInstruction: Optional but at least one of application_urls, + // application_email_list or application_instruction must be specified. Use + // this field to provide instructions, such as "Mail your application to ...", + // that a candidate can follow to apply for the job. This field accepts and + // sanitizes HTML input, and also accepts bold, italic, ordered list, and + // unordered list markup tags. The maximum number of allowed characters is + // 3,000. ApplicationInstruction string `json:"applicationInstruction,omitempty"` - // ApplicationUrls: Optional but at least one of application_urls, - // application_email_list or application_instruction must be specified. - // Use this URL field to direct an applicant to a website, for example - // to link to an online application form. The maximum number of allowed - // characters is 2,000. + // application_email_list or application_instruction must be specified. Use + // this URL field to direct an applicant to a website, for example to link to + // an online application form. The maximum number of allowed characters is + // 2,000. ApplicationUrls []string `json:"applicationUrls,omitempty"` - // Benefits: Optional. The benefits included with the job. // // Possible values: // "JOB_BENEFIT_TYPE_UNSPECIFIED" - Default value if the type is not // specified. - // "CHILD_CARE" - The job includes access to programs that support - // child care, such as daycare. - // "DENTAL" - The job includes dental services that are covered by a - // dental insurance plan. + // "CHILD_CARE" - The job includes access to programs that support child + // care, such as daycare. + // "DENTAL" - The job includes dental services that are covered by a dental + // insurance plan. // "DOMESTIC_PARTNER" - The job offers specific benefits to domestic // partners. // "FLEXIBLE_HOURS" - The job allows for a flexible work schedule. - // "MEDICAL" - The job includes health services that are covered by a - // medical insurance plan. - // "LIFE_INSURANCE" - The job includes a life insurance plan provided + // "MEDICAL" - The job includes health services that are covered by a medical + // insurance plan. + // "LIFE_INSURANCE" - The job includes a life insurance plan provided by the + // employer or available for purchase by the employee. + // "PARENTAL_LEAVE" - The job allows for a leave of absence to a parent to + // care for a newborn child. + // "RETIREMENT_PLAN" - The job includes a workplace retirement plan provided // by the employer or available for purchase by the employee. - // "PARENTAL_LEAVE" - The job allows for a leave of absence to a - // parent to care for a newborn child. - // "RETIREMENT_PLAN" - The job includes a workplace retirement plan - // provided by the employer or available for purchase by the employee. // "SICK_DAYS" - The job allows for paid time off due to illness. - // "TELECOMMUTE" - Deprecated. Set Region.TELECOMMUTE instead. The job - // allows telecommuting (working remotely). + // "TELECOMMUTE" - Deprecated. Set Region.TELECOMMUTE instead. The job allows + // telecommuting (working remotely). // "VACATION" - The job includes paid time off for vacation. - // "VISION" - The job includes vision services that are covered by a - // vision insurance plan. + // "VISION" - The job includes vision services that are covered by a vision + // insurance plan. Benefits []string `json:"benefits,omitempty"` - - // CompanyDisplayName: Output only. The name of the company listing the - // job. + // CompanyDisplayName: Output only. The name of the company listing the job. CompanyDisplayName string `json:"companyDisplayName,omitempty"` - - // CompanyName: Optional but one of company_name or - // distributor_company_id must be provided. The resource name of the - // company listing the job, such as /companies/foo. This field takes - // precedence over the distributor-assigned company identifier, - // distributor_company_id. + // CompanyName: Optional but one of company_name or distributor_company_id must + // be provided. The resource name of the company listing the job, such as + // /companies/foo. This field takes precedence over the distributor-assigned + // company identifier, distributor_company_id. CompanyName string `json:"companyName,omitempty"` - - // CompanyTitle: Deprecated. Use company_display_name instead. Output - // only. The name of the company listing the job. + // CompanyTitle: Deprecated. Use company_display_name instead. Output only. The + // name of the company listing the job. CompanyTitle string `json:"companyTitle,omitempty"` - // CompensationInfo: Optional. Job compensation information. CompensationInfo *CompensationInfo `json:"compensationInfo,omitempty"` - // CreateTime: Output only. The timestamp when this job was created. CreateTime string `json:"createTime,omitempty"` - - // CustomAttributes: Optional. A map of fields to hold both filterable - // and non-filterable custom job attributes that are not covered by the - // provided structured fields. This field is a more general combination - // of the deprecated id-based filterable_custom_fields and string-based - // non_filterable_custom_fields. The keys of the map are strings up to - // 64 bytes and must match the pattern: a-zA-Z*. At most 100 filterable - // and at most 100 unfilterable keys are supported. For filterable - // `string_values`, across all keys at most 200 values are allowed, with - // each string no more than 255 characters. For unfilterable - // `string_values`, the maximum total size of `string_values` across all - // keys is 50KB. + // CustomAttributes: Optional. A map of fields to hold both filterable and + // non-filterable custom job attributes that are not covered by the provided + // structured fields. This field is a more general combination of the + // deprecated id-based filterable_custom_fields and string-based + // non_filterable_custom_fields. The keys of the map are strings up to 64 bytes + // and must match the pattern: a-zA-Z*. At most 100 filterable and at most 100 + // unfilterable keys are supported. For filterable `string_values`, across all + // keys at most 200 values are allowed, with each string no more than 255 + // characters. For unfilterable `string_values`, the maximum total size of + // `string_values` across all keys is 50KB. CustomAttributes map[string]CustomAttribute `json:"customAttributes,omitempty"` - - // Department: Optional. The department or functional area within the - // company with the open position. The maximum number of allowed - // characters is 255. + // Department: Optional. The department or functional area within the company + // with the open position. The maximum number of allowed characters is 255. Department string `json:"department,omitempty"` - - // Description: Required. The description of the job, which typically - // includes a multi-paragraph description of the company and related - // information. Separate fields are provided on the job object for - // responsibilities, qualifications, and other job characteristics. Use - // of these separate job fields is recommended. This field accepts and - // sanitizes HTML input, and also accepts bold, italic, ordered list, - // and unordered list markup tags. The maximum number of allowed - // characters is 100,000. + // Description: Required. The description of the job, which typically includes + // a multi-paragraph description of the company and related information. + // Separate fields are provided on the job object for responsibilities, + // qualifications, and other job characteristics. Use of these separate job + // fields is recommended. This field accepts and sanitizes HTML input, and also + // accepts bold, italic, ordered list, and unordered list markup tags. The + // maximum number of allowed characters is 100,000. Description string `json:"description,omitempty"` - // DistributorCompanyId: Optional but one of company_name or - // distributor_company_id must be provided. A unique company identifier - // used by job distributors to identify an employer's company entity. - // company_name takes precedence over this field, and is the recommended - // field to use to identify companies. The maximum number of allowed - // characters is 255. + // distributor_company_id must be provided. A unique company identifier used by + // job distributors to identify an employer's company entity. company_name + // takes precedence over this field, and is the recommended field to use to + // identify companies. The maximum number of allowed characters is 255. DistributorCompanyId string `json:"distributorCompanyId,omitempty"` - - // EducationLevels: Optional. The desired education level for the job, - // such as "Bachelors", "Masters", "Doctorate". + // EducationLevels: Optional. The desired education level for the job, such as + // "Bachelors", "Masters", "Doctorate". // // Possible values: - // "EDUCATION_LEVEL_UNSPECIFIED" - The default value if the level is - // not specified. + // "EDUCATION_LEVEL_UNSPECIFIED" - The default value if the level is not + // specified. // "HIGH_SCHOOL" - A High School diploma is required for the position. // "ASSOCIATE" - An Associate degree is required for the position. // "BACHELORS" - A Bachelors degree is required for the position. // "MASTERS" - A Masters degree is required for the position. // "DOCTORATE" - A Doctorate degree is required for the position. - // "NO_DEGREE_REQUIRED" - No formal education is required for the - // position. + // "NO_DEGREE_REQUIRED" - No formal education is required for the position. EducationLevels []string `json:"educationLevels,omitempty"` - - // EmploymentTypes: Optional. The employment type(s) of a job, for - // example, full time or part time. + // EmploymentTypes: Optional. The employment type(s) of a job, for example, + // full time or part time. // // Possible values: - // "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment - // type is not specified. - // "FULL_TIME" - The job requires working a number of hours that - // constitute full time employment, typically 40 or more hours per week. - // "PART_TIME" - The job entails working fewer hours than a full time - // job, typically less than 40 hours a week. + // "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment type + // is not specified. + // "FULL_TIME" - The job requires working a number of hours that constitute + // full time employment, typically 40 or more hours per week. + // "PART_TIME" - The job entails working fewer hours than a full time job, + // typically less than 40 hours a week. // "CONTRACTOR" - The job is offered as a contracted, as opposed to a // salaried employee, position. - // "TEMPORARY" - The job is offered as a temporary employment - // opportunity, usually a short-term engagement. - // "INTERN" - The job is a fixed-term opportunity for students or - // entry-level job seekers to obtain on-the-job training, typically - // offered as a summer position. - // "VOLUNTEER" - The is an opportunity for an individual to volunteer, - // where there is no expectation of compensation for the provided - // services. - // "PER_DIEM" - The job requires an employee to work on an as-needed - // basis with a flexible schedule. - // "CONTRACT_TO_HIRE" - The job is offered as a contracted position - // with the understanding that it is converted into a full-time position - // at the end of the contract. Jobs of this type are also returned by a - // search for EmploymentType.CONTRACTOR jobs. - // "FLY_IN_FLY_OUT" - The job involves employing people in remote - // areas and flying them temporarily to the work site instead of - // relocating employees and their families permanently. + // "TEMPORARY" - The job is offered as a temporary employment opportunity, + // usually a short-term engagement. + // "INTERN" - The job is a fixed-term opportunity for students or entry-level + // job seekers to obtain on-the-job training, typically offered as a summer + // position. + // "VOLUNTEER" - The is an opportunity for an individual to volunteer, where + // there is no expectation of compensation for the provided services. + // "PER_DIEM" - The job requires an employee to work on an as-needed basis + // with a flexible schedule. + // "CONTRACT_TO_HIRE" - The job is offered as a contracted position with the + // understanding that it is converted into a full-time position at the end of + // the contract. Jobs of this type are also returned by a search for + // EmploymentType.CONTRACTOR jobs. + // "FLY_IN_FLY_OUT" - The job involves employing people in remote areas and + // flying them temporarily to the work site instead of relocating employees and + // their families permanently. // "OTHER" - The job does not fit any of the other listed types. EmploymentTypes []string `json:"employmentTypes,omitempty"` - - // EndDate: Optional. The end date of the job in UTC time zone. - // Typically this field is used for contracting engagements. Dates prior - // to 1970/1/1 and invalid date formats are ignored. + // EndDate: Optional. The end date of the job in UTC time zone. Typically this + // field is used for contracting engagements. Dates prior to 1970/1/1 and + // invalid date formats are ignored. EndDate *Date `json:"endDate,omitempty"` - // ExpireTime: Optional but strongly recommended for the best service - // experience. The expiration timestamp of the job. After this - // timestamp, the job is marked as expired, and it no longer appears in - // search results. The expired job can't be deleted or listed by the - // DeleteJob and ListJobs APIs, but it can be retrieved with the GetJob - // API or updated with the UpdateJob API. An expired job can be updated - // and opened again by using a future expiration timestamp. Updating an - // expired job fails if there is another existing open job with same - // requisition_id, company_name and language_code. The expired jobs are - // retained in our system for 90 days. However, the overall expired job - // count cannot exceed 3 times the maximum of open jobs count over the - // past week, otherwise jobs with earlier expire time are cleaned first. - // Expired jobs are no longer accessible after they are cleaned out. The - // format of this field is RFC 3339 date strings. Example: - // 2000-01-01T00:00:00.999999999Z See - // [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc333 - // 9.txt). A valid date range is between 1970-01-01T00:00:00.0Z and - // 2100-12-31T23:59:59.999Z. Invalid dates are ignored and treated as - // expire time not provided. If this value is not provided at the time - // of job creation or is invalid, the job posting expires after 30 days - // from the job's creation time. For example, if the job was created on - // 2017/01/01 13:00AM UTC with an unspecified expiration date, the job - // expires after 2017/01/31 13:00AM UTC. If this value is not provided - // but expiry_date is, expiry_date is used. If this value is not - // provided on job update, it depends on the field masks set by - // UpdateJobRequest.update_job_fields. If the field masks include - // expiry_time, or the masks are empty meaning that every field is - // updated, the job posting expires after 30 days from the job's last - // update time. Otherwise the expiration date isn't updated. + // experience. The expiration timestamp of the job. After this timestamp, the + // job is marked as expired, and it no longer appears in search results. The + // expired job can't be deleted or listed by the DeleteJob and ListJobs APIs, + // but it can be retrieved with the GetJob API or updated with the UpdateJob + // API. An expired job can be updated and opened again by using a future + // expiration timestamp. Updating an expired job fails if there is another + // existing open job with same requisition_id, company_name and language_code. + // The expired jobs are retained in our system for 90 days. However, the + // overall expired job count cannot exceed 3 times the maximum of open jobs + // count over the past week, otherwise jobs with earlier expire time are + // cleaned first. Expired jobs are no longer accessible after they are cleaned + // out. The format of this field is RFC 3339 date strings. Example: + // 2000-01-01T00:00:00.999999999Z See https://www.ietf.org/rfc/rfc3339.txt + // (https://www.ietf.org/rfc/rfc3339.txt). A valid date range is between + // 1970-01-01T00:00:00.0Z and 2100-12-31T23:59:59.999Z. Invalid dates are + // ignored and treated as expire time not provided. If this value is not + // provided at the time of job creation or is invalid, the job posting expires + // after 30 days from the job's creation time. For example, if the job was + // created on 2017/01/01 13:00AM UTC with an unspecified expiration date, the + // job expires after 2017/01/31 13:00AM UTC. If this value is not provided but + // expiry_date is, expiry_date is used. If this value is not provided on job + // update, it depends on the field masks set by + // UpdateJobRequest.update_job_fields. If the field masks include expiry_time, + // or the masks are empty meaning that every field is updated, the job posting + // expires after 30 days from the job's last update time. Otherwise the + // expiration date isn't updated. ExpireTime string `json:"expireTime,omitempty"` - - // ExpiryDate: Deprecated. Use expire_time instead. Optional but - // strongly recommended to be provided for the best service experience. - // The expiration date of the job in UTC time. After 12 am on this date, - // the job is marked as expired, and it no longer appears in search - // results. The expired job can't be deleted or listed by the DeleteJob - // and ListJobs APIs, but it can be retrieved with the GetJob API or - // updated with the UpdateJob API. An expired job can be updated and - // opened again by using a future expiration date. It can also remain - // expired. Updating an expired job to be open fails if there is another - // existing open job with same requisition_id, company_name and - // language_code. The expired jobs are retained in our system for 90 - // days. However, the overall expired job count cannot exceed 3 times - // the maximum of open jobs count over the past week, otherwise jobs - // with earlier expire time are removed first. Expired jobs are no - // longer accessible after they are cleaned out. A valid date range is - // between 1970/1/1 and 2100/12/31. Invalid dates are ignored and - // treated as expiry date not provided. If this value is not provided on - // job creation or is invalid, the job posting expires after 30 days - // from the job's creation time. For example, if the job was created on - // 2017/01/01 13:00AM UTC with an unspecified expiration date, the job - // expires after 2017/01/31 13:00AM UTC. If this value is not provided - // on job update, it depends on the field masks set by - // UpdateJobRequest.update_job_fields. If the field masks include - // expiry_date, or the masks are empty meaning that every field is - // updated, the job expires after 30 days from the job's last update - // time. Otherwise the expiration date isn't updated. + // ExpiryDate: Deprecated. Use expire_time instead. Optional but strongly + // recommended to be provided for the best service experience. The expiration + // date of the job in UTC time. After 12 am on this date, the job is marked as + // expired, and it no longer appears in search results. The expired job can't + // be deleted or listed by the DeleteJob and ListJobs APIs, but it can be + // retrieved with the GetJob API or updated with the UpdateJob API. An expired + // job can be updated and opened again by using a future expiration date. It + // can also remain expired. Updating an expired job to be open fails if there + // is another existing open job with same requisition_id, company_name and + // language_code. The expired jobs are retained in our system for 90 days. + // However, the overall expired job count cannot exceed 3 times the maximum of + // open jobs count over the past week, otherwise jobs with earlier expire time + // are removed first. Expired jobs are no longer accessible after they are + // cleaned out. A valid date range is between 1970/1/1 and 2100/12/31. Invalid + // dates are ignored and treated as expiry date not provided. If this value is + // not provided on job creation or is invalid, the job posting expires after 30 + // days from the job's creation time. For example, if the job was created on + // 2017/01/01 13:00AM UTC with an unspecified expiration date, the job expires + // after 2017/01/31 13:00AM UTC. If this value is not provided on job update, + // it depends on the field masks set by UpdateJobRequest.update_job_fields. If + // the field masks include expiry_date, or the masks are empty meaning that + // every field is updated, the job expires after 30 days from the job's last + // update time. Otherwise the expiration date isn't updated. ExpiryDate *Date `json:"expiryDate,omitempty"` - // ExtendedCompensationInfo: Deprecated. Always use compensation_info. // Optional. Job compensation information. This field replaces // compensation_info. Only CompensationInfo.entries or - // extended_compensation_info can be set, otherwise an exception is - // thrown. + // extended_compensation_info can be set, otherwise an exception is thrown. ExtendedCompensationInfo *ExtendedCompensationInfo `json:"extendedCompensationInfo,omitempty"` - - // FilterableCustomFields: Deprecated. Use custom_attributes instead. - // Optional. A map of fields to hold filterable custom job attributes - // not captured by the standard fields such as job_title, company_name, - // or level. These custom fields store arbitrary string values, and can - // be used for purposes not covered by the structured fields. For the - // best search experience, use of the structured rather than custom - // fields is recommended. Data stored in these custom fields fields are - // indexed and searched against by keyword searches (see - // SearchJobsRequest.custom_field_filters][]). The map key must be a - // number between 1-20. If an invalid key is provided on job create or - // update, an error is returned. + // FilterableCustomFields: Deprecated. Use custom_attributes instead. Optional. + // A map of fields to hold filterable custom job attributes not captured by the + // standard fields such as job_title, company_name, or level. These custom + // fields store arbitrary string values, and can be used for purposes not + // covered by the structured fields. For the best search experience, use of the + // structured rather than custom fields is recommended. Data stored in these + // custom fields fields are indexed and searched against by keyword searches + // (see SearchJobsRequest.custom_field_filters][]). The map key must be a + // number between 1-20. If an invalid key is provided on job create or update, + // an error is returned. FilterableCustomFields map[string]CustomField `json:"filterableCustomFields,omitempty"` - // Incentives: Optional. A description of bonus, commission, and other - // compensation incentives associated with the job not including salary - // or pay. The maximum number of allowed characters is 10,000. + // compensation incentives associated with the job not including salary or pay. + // The maximum number of allowed characters is 10,000. Incentives string `json:"incentives,omitempty"` - - // JobLocations: Output only. Structured locations of the job, resolved - // from locations. + // JobLocations: Output only. Structured locations of the job, resolved from + // locations. JobLocations []*JobLocation `json:"jobLocations,omitempty"` - - // JobTitle: Required. The title of the job, such as "Software Engineer" - // The maximum number of allowed characters is 500. + // JobTitle: Required. The title of the job, such as "Software Engineer" The + // maximum number of allowed characters is 500. JobTitle string `json:"jobTitle,omitempty"` - - // LanguageCode: Optional. The language of the posting. This field is - // distinct from any requirements for fluency that are associated with - // the job. Language codes must be in BCP-47 format, such as "en-US" or - // "sr-Latn". For more information, see [Tags for Identifying - // Languages](https://tools.ietf.org/html/bcp47){: class="external" - // target="_blank" }. If this field is unspecified and Job.description - // is present, detected language code based on Job.description is - // assigned, otherwise defaults to 'en_US'. + // LanguageCode: Optional. The language of the posting. This field is distinct + // from any requirements for fluency that are associated with the job. Language + // codes must be in BCP-47 format, such as "en-US" or "sr-Latn". For more + // information, see Tags for Identifying Languages + // (https://tools.ietf.org/html/bcp47){: class="external" target="_blank" }. If + // this field is unspecified and Job.description is present, detected language + // code based on Job.description is assigned, otherwise defaults to 'en_US'. LanguageCode string `json:"languageCode,omitempty"` - - // Level: Optional. The experience level associated with the job, such - // as "Entry Level". + // Level: Optional. The experience level associated with the job, such as + // "Entry Level". // // Possible values: - // "JOB_LEVEL_UNSPECIFIED" - The default value if the level is not - // specified. - // "ENTRY_LEVEL" - Entry-level individual contributors, typically with - // less than 2 years of experience in a similar role. Includes interns. - // "EXPERIENCED" - Experienced individual contributors, typically with - // 2+ years of experience in a similar role. - // "MANAGER" - Entry- to mid-level managers responsible for managing a - // team of people. - // "DIRECTOR" - Senior-level managers responsible for managing teams - // of managers. + // "JOB_LEVEL_UNSPECIFIED" - The default value if the level is not specified. + // "ENTRY_LEVEL" - Entry-level individual contributors, typically with less + // than 2 years of experience in a similar role. Includes interns. + // "EXPERIENCED" - Experienced individual contributors, typically with 2+ + // years of experience in a similar role. + // "MANAGER" - Entry- to mid-level managers responsible for managing a team + // of people. + // "DIRECTOR" - Senior-level managers responsible for managing teams of + // managers. // "EXECUTIVE" - Executive-level managers and above, including C-level // positions. Level string `json:"level,omitempty"` - // Locations: Optional but strongly recommended for the best service - // experience. Location(s) where the emploeyer is looking to hire for - // this job posting. Specifying the full street address(es) of the - // hiring location enables better API results, especially job searches - // by commute time. At most 50 locations are allowed for best search - // performance. If a job has more locations, it is suggested to split it - // into multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes - // 'ReqA-1', 'ReqA-2', etc.) as multiple jobs with the same - // requisition_id, company_name and language_code are not allowed. If - // the original requisition_id must be preserved, a custom field should - // be used for storage. It is also suggested to group the locations that + // experience. Location(s) where the emploeyer is looking to hire for this job + // posting. Specifying the full street address(es) of the hiring location + // enables better API results, especially job searches by commute time. At most + // 50 locations are allowed for best search performance. If a job has more + // locations, it is suggested to split it into multiple jobs with unique + // requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple + // jobs with the same requisition_id, company_name and language_code are not + // allowed. If the original requisition_id must be preserved, a custom field + // should be used for storage. It is also suggested to group the locations that // close to each other in the same job for better search experience. The // maximum number of allowed characters is 500. Locations []string `json:"locations,omitempty"` - - // Name: Required during job update. Resource name assigned to a job by - // the API, for example, "/jobs/foo". Use of this field in job queries - // and API calls is preferred over the use of requisition_id since this - // value is unique. + // Name: Required during job update. Resource name assigned to a job by the + // API, for example, "/jobs/foo". Use of this field in job queries and API + // calls is preferred over the use of requisition_id since this value is + // unique. Name string `json:"name,omitempty"` - - // PromotionValue: Optional. A promotion value of the job, as determined - // by the client. The value determines the sort order of the jobs - // returned when searching for jobs using the featured jobs search call, - // with higher promotional values being returned first and ties being - // resolved by relevance sort. Only the jobs with a promotionValue >0 - // are returned in a FEATURED_JOB_SEARCH. Default value is 0, and - // negative values are treated as 0. + // PromotionValue: Optional. A promotion value of the job, as determined by the + // client. The value determines the sort order of the jobs returned when + // searching for jobs using the featured jobs search call, with higher + // promotional values being returned first and ties being resolved by relevance + // sort. Only the jobs with a promotionValue >0 are returned in a + // FEATURED_JOB_SEARCH. Default value is 0, and negative values are treated as + // 0. PromotionValue int64 `json:"promotionValue,omitempty"` - - // PublishDate: Optional. The date this job was most recently published - // in UTC format. The default value is the time the request arrives at - // the server. + // PublishDate: Optional. The date this job was most recently published in UTC + // format. The default value is the time the request arrives at the server. PublishDate *Date `json:"publishDate,omitempty"` - - // Qualifications: Optional. A description of the qualifications - // required to perform the job. The use of this field is recommended as - // an alternative to using the more general description field. This - // field accepts and sanitizes HTML input, and also accepts bold, - // italic, ordered list, and unordered list markup tags. The maximum - // number of allowed characters is 10,000. + // Qualifications: Optional. A description of the qualifications required to + // perform the job. The use of this field is recommended as an alternative to + // using the more general description field. This field accepts and sanitizes + // HTML input, and also accepts bold, italic, ordered list, and unordered list + // markup tags. The maximum number of allowed characters is 10,000. Qualifications string `json:"qualifications,omitempty"` - - // ReferenceUrl: Output only. The URL of a web page that displays job - // details. + // ReferenceUrl: Output only. The URL of a web page that displays job details. ReferenceUrl string `json:"referenceUrl,omitempty"` - - // Region: Optional. The job Region (for example, state, country) - // throughout which the job is available. If this field is set, a - // LocationFilter in a search query within the job region finds this job - // if an exact location match is not specified. If this field is set, - // setting job locations to the same location level as this field is - // strongly recommended. + // Region: Optional. The job Region (for example, state, country) throughout + // which the job is available. If this field is set, a LocationFilter in a + // search query within the job region finds this job if an exact location match + // is not specified. If this field is set, setting job locations to the same + // location level as this field is strongly recommended. // // Possible values: - // "REGION_UNSPECIFIED" - If the region is unspecified, the job is - // only returned if it matches the LocationFilter. - // "STATE_WIDE" - In additiona to exact location matching, job is - // returned when the LocationFilter in search query is in the same state - // as this job. For example, if a `STATE_WIDE` job is posted in "CA, - // USA", it is returned if LocationFilter has "Mountain View". - // "NATION_WIDE" - In addition to exact location matching, job is - // returned when LocationFilter in search query is in the same country - // as this job. For example, if a `NATION_WIDE` job is posted in "USA", - // it is returned if LocationFilter has 'Mountain View'. - // "TELECOMMUTE" - Job allows employees to work remotely - // (telecommute). If locations are provided with this value, the job is - // considered as having a location, but telecommuting is allowed. + // "REGION_UNSPECIFIED" - If the region is unspecified, the job is only + // returned if it matches the LocationFilter. + // "STATE_WIDE" - In additiona to exact location matching, job is returned + // when the LocationFilter in search query is in the same state as this job. + // For example, if a `STATE_WIDE` job is posted in "CA, USA", it is returned if + // LocationFilter has "Mountain View". + // "NATION_WIDE" - In addition to exact location matching, job is returned + // when LocationFilter in search query is in the same country as this job. For + // example, if a `NATION_WIDE` job is posted in "USA", it is returned if + // LocationFilter has 'Mountain View'. + // "TELECOMMUTE" - Job allows employees to work remotely (telecommute). If + // locations are provided with this value, the job is considered as having a + // location, but telecommuting is allowed. Region string `json:"region,omitempty"` - - // RequisitionId: Required. The requisition ID, also referred to as the - // posting ID, assigned by the client to identify a job. This field is - // intended to be used by clients for client identification and tracking - // of listings. A job is not allowed to be created if there is another - // job with the same requisition_id, company_name and language_code. The - // maximum number of allowed characters is 255. + // RequisitionId: Required. The requisition ID, also referred to as the posting + // ID, assigned by the client to identify a job. This field is intended to be + // used by clients for client identification and tracking of listings. A job is + // not allowed to be created if there is another job with the same + // requisition_id, company_name and language_code. The maximum number of + // allowed characters is 255. RequisitionId string `json:"requisitionId,omitempty"` - - // Responsibilities: Optional. A description of job responsibilities. - // The use of this field is recommended as an alternative to using the - // more general description field. This field accepts and sanitizes HTML - // input, and also accepts bold, italic, ordered list, and unordered - // list markup tags. The maximum number of allowed characters is 10,000. + // Responsibilities: Optional. A description of job responsibilities. The use + // of this field is recommended as an alternative to using the more general + // description field. This field accepts and sanitizes HTML input, and also + // accepts bold, italic, ordered list, and unordered list markup tags. The + // maximum number of allowed characters is 10,000. Responsibilities string `json:"responsibilities,omitempty"` - - // StartDate: Optional. The start date of the job in UTC time zone. - // Typically this field is used for contracting engagements. Dates prior - // to 1970/1/1 and invalid date formats are ignored. + // StartDate: Optional. The start date of the job in UTC time zone. Typically + // this field is used for contracting engagements. Dates prior to 1970/1/1 and + // invalid date formats are ignored. StartDate *Date `json:"startDate,omitempty"` - - // UnindexedCustomFields: Deprecated. Use custom_attributes instead. - // Optional. A map of fields to hold non-filterable custom job - // attributes, similar to filterable_custom_fields. These fields are - // distinct in that the data in these fields are not indexed. Therefore, - // the client cannot search against them, nor can the client use them to - // list jobs. The key of the map can be any valid string. + // UnindexedCustomFields: Deprecated. Use custom_attributes instead. Optional. + // A map of fields to hold non-filterable custom job attributes, similar to + // filterable_custom_fields. These fields are distinct in that the data in + // these fields are not indexed. Therefore, the client cannot search against + // them, nor can the client use them to list jobs. The key of the map can be + // any valid string. UnindexedCustomFields map[string]CustomField `json:"unindexedCustomFields,omitempty"` - - // UpdateTime: Output only. The timestamp when this job was last - // updated. + // UpdateTime: Output only. The timestamp when this job was last updated. UpdateTime string `json:"updateTime,omitempty"` - // Visibility: Optional. The visibility of the job. Defaults to - // JobVisibility.PRIVATE if not specified. Currently only - // JobVisibility.PRIVATE is supported. + // JobVisibility.PRIVATE if not specified. Currently only JobVisibility.PRIVATE + // is supported. // // Possible values: // "JOB_VISIBILITY_UNSPECIFIED" - Default value. // "PRIVATE" - The Job is only visible to the owner. - // "GOOGLE" - The Job is visible to the owner and may be visible to - // other applications and processes at Google. Not yet supported. Use - // PRIVATE. - // "PUBLIC" - The Job is visible to the owner and may be visible to - // all other API clients. Not yet supported. Use PRIVATE. + // "GOOGLE" - The Job is visible to the owner and may be visible to other + // applications and processes at Google. Not yet supported. Use PRIVATE. + // "PUBLIC" - The Job is visible to the owner and may be visible to all other + // API clients. Not yet supported. Use PRIVATE. Visibility string `json:"visibility,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "ApplicationEmailList") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ApplicationEmailList") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApplicationEmailList") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApplicationEmailList") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Job) MarshalJSON() ([]byte, error) { +func (s Job) MarshalJSON() ([]byte, error) { type NoMethod Job - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobFilters: Input only. Deprecated. Use JobQuery instead. The filters // required to perform a search query or histogram. type JobFilters struct { - // Categories: Optional. The category filter specifies the categories of - // jobs to search against. See Category for more information. If a value - // is not specified, jobs from any category are searched against. If - // multiple values are specified, jobs from any of the specified - // categories are searched against. + // Categories: Optional. The category filter specifies the categories of jobs + // to search against. See Category for more information. If a value is not + // specified, jobs from any category are searched against. If multiple values + // are specified, jobs from any of the specified categories are searched + // against. // // Possible values: - // "JOB_CATEGORY_UNSPECIFIED" - The default value if the category is - // not specified. - // "ACCOUNTING_AND_FINANCE" - An accounting and finance job, such as - // an Accountant. - // "ADMINISTRATIVE_AND_OFFICE" - And administrative and office job, - // such as an Administrative Assistant. - // "ADVERTISING_AND_MARKETING" - An advertising and marketing job, - // such as Marketing Manager. + // "JOB_CATEGORY_UNSPECIFIED" - The default value if the category is not + // specified. + // "ACCOUNTING_AND_FINANCE" - An accounting and finance job, such as an + // Accountant. + // "ADMINISTRATIVE_AND_OFFICE" - And administrative and office job, such as + // an Administrative Assistant. + // "ADVERTISING_AND_MARKETING" - An advertising and marketing job, such as + // Marketing Manager. // "ANIMAL_CARE" - An animal care job, such as Veterinarian. // "ART_FASHION_AND_DESIGN" - An art, fashion, or design job, such as // Designer. @@ -3650,174 +3048,149 @@ type JobFilters struct { // Operations Manager. // "CLEANING_AND_FACILITIES" - A cleaning and facilities job, such as // Custodial Staff. - // "COMPUTER_AND_IT" - A computer and IT job, such as Systems - // Administrator. + // "COMPUTER_AND_IT" - A computer and IT job, such as Systems Administrator. // "CONSTRUCTION" - A construction job, such as General Laborer. // "CUSTOMER_SERVICE" - A customer service job, such s Cashier. // "EDUCATION" - An education job, such as School Teacher. - // "ENTERTAINMENT_AND_TRAVEL" - An entertainment and travel job, such - // as Flight Attendant. - // "FARMING_AND_OUTDOORS" - A farming or outdoor job, such as Park - // Ranger. + // "ENTERTAINMENT_AND_TRAVEL" - An entertainment and travel job, such as + // Flight Attendant. + // "FARMING_AND_OUTDOORS" - A farming or outdoor job, such as Park Ranger. // "HEALTHCARE" - A healthcare job, such as Registered Nurse. // "HUMAN_RESOURCES" - A human resources job, such as Human Resources // Director. - // "INSTALLATION_MAINTENANCE_AND_REPAIR" - An installation, - // maintenance, or repair job, such as Electrician. + // "INSTALLATION_MAINTENANCE_AND_REPAIR" - An installation, maintenance, or + // repair job, such as Electrician. // "LEGAL" - A legal job, such as Law Clerk. - // "MANAGEMENT" - A management job, often used in conjunction with - // another category, such as Store Manager. - // "MANUFACTURING_AND_WAREHOUSE" - A manufacturing or warehouse job, - // such as Assembly Technician. - // "MEDIA_COMMUNICATIONS_AND_WRITING" - A media, communications, or - // writing job, such as Media Relations. + // "MANAGEMENT" - A management job, often used in conjunction with another + // category, such as Store Manager. + // "MANUFACTURING_AND_WAREHOUSE" - A manufacturing or warehouse job, such as + // Assembly Technician. + // "MEDIA_COMMUNICATIONS_AND_WRITING" - A media, communications, or writing + // job, such as Media Relations. // "OIL_GAS_AND_MINING" - An oil, gas or mining job, such as Offshore // Driller. - // "PERSONAL_CARE_AND_SERVICES" - A personal care and services job, - // such as Hair Stylist. - // "PROTECTIVE_SERVICES" - A protective services job, such as Security - // Guard. + // "PERSONAL_CARE_AND_SERVICES" - A personal care and services job, such as + // Hair Stylist. + // "PROTECTIVE_SERVICES" - A protective services job, such as Security Guard. // "REAL_ESTATE" - A real estate job, such as Buyer's Agent. - // "RESTAURANT_AND_HOSPITALITY" - A restaurant and hospitality job, - // such as Restaurant Server. - // "SALES_AND_RETAIL" - A sales and/or retail job, such Sales - // Associate. - // "SCIENCE_AND_ENGINEERING" - A science and engineering job, such as - // Lab Technician. - // "SOCIAL_SERVICES_AND_NON_PROFIT" - A social services or non-profit - // job, such as Case Worker. - // "SPORTS_FITNESS_AND_RECREATION" - A sports, fitness, or recreation - // job, such as Personal Trainer. - // "TRANSPORTATION_AND_LOGISTICS" - A transportation or logistics job, - // such as Truck Driver. + // "RESTAURANT_AND_HOSPITALITY" - A restaurant and hospitality job, such as + // Restaurant Server. + // "SALES_AND_RETAIL" - A sales and/or retail job, such Sales Associate. + // "SCIENCE_AND_ENGINEERING" - A science and engineering job, such as Lab + // Technician. + // "SOCIAL_SERVICES_AND_NON_PROFIT" - A social services or non-profit job, + // such as Case Worker. + // "SPORTS_FITNESS_AND_RECREATION" - A sports, fitness, or recreation job, + // such as Personal Trainer. + // "TRANSPORTATION_AND_LOGISTICS" - A transportation or logistics job, such + // as Truck Driver. Categories []string `json:"categories,omitempty"` - // CommuteFilter: Optional. Allows filtering jobs by commute time with - // different travel methods (e.g. driving or public transit). Note: this - // only works with COMMUTE MODE. When specified, - // [JobFilters.location_filters] will be ignored. Currently we do not - // support sorting by commute time. + // different travel methods (e.g. driving or public transit). Note: this only + // works with COMMUTE MODE. When specified, [JobFilters.location_filters] will + // be ignored. Currently we do not support sorting by commute time. CommuteFilter *CommutePreference `json:"commuteFilter,omitempty"` - - // CompanyNames: Optional. The company names filter specifies the - // company entities to search against. If a value is not specified, jobs - // are searched for against all companies. If multiple values are - // specified, jobs are searched against the specified companies. At most - // 20 company filters are allowed. + // CompanyNames: Optional. The company names filter specifies the company + // entities to search against. If a value is not specified, jobs are searched + // for against all companies. If multiple values are specified, jobs are + // searched against the specified companies. At most 20 company filters are + // allowed. CompanyNames []string `json:"companyNames,omitempty"` - - // CompanyTitles: Optional. This filter specifies the exact company - // titles of jobs to search against. If a value is not specified, jobs - // within the search results can be associated with any company. If - // multiple values are specified, jobs within the search results may be - // associated with any of the specified companies. At most 20 company - // title filters are allowed. + // CompanyTitles: Optional. This filter specifies the exact company titles of + // jobs to search against. If a value is not specified, jobs within the search + // results can be associated with any company. If multiple values are + // specified, jobs within the search results may be associated with any of the + // specified companies. At most 20 company title filters are allowed. CompanyTitles []string `json:"companyTitles,omitempty"` - // CompensationFilter: Optional. This search filter is applied only to - // Job.compensation_info. For example, if the filter is specified as - // "Hourly job with per-hour compensation > $15", only jobs that meet - // this criteria are searched. If a filter is not defined, all open jobs - // are searched. + // Job.compensation_info. For example, if the filter is specified as "Hourly + // job with per-hour compensation > $15", only jobs that meet this criteria are + // searched. If a filter is not defined, all open jobs are searched. CompensationFilter *CompensationFilter `json:"compensationFilter,omitempty"` - - // CustomAttributeFilter: Optional. This filter specifies a structured - // syntax to match against the Job.custom_attributes that are marked as - // `filterable`. The syntax for this expression is a subset of Google - // SQL syntax. Supported operators are: =, !=, <, <=, >, >= where the - // left of the operator is a custom field key and the right of the - // operator is a number or string (surrounded by quotes) value. - // Supported functions are LOWER() to perform case insensitive match and - // EMPTY() to filter on the existence of a key. Boolean expressions - // (AND/OR/NOT) are supported up to 3 levels of nesting (For example, - // "((A AND B AND C) OR NOT D) AND E"), and there can be a maximum of - // 100 comparisons/functions in the expression. The expression must be < - // 3000 bytes in length. Sample Query: (key1 = "TEST" OR + // CustomAttributeFilter: Optional. This filter specifies a structured syntax + // to match against the Job.custom_attributes that are marked as `filterable`. + // The syntax for this expression is a subset of Google SQL syntax. Supported + // operators are: =, !=, <, <=, >, >= where the left of the operator is a + // custom field key and the right of the operator is a number or string + // (surrounded by quotes) value. Supported functions are LOWER() to perform + // case insensitive match and EMPTY() to filter on the existence of a key. + // Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting + // (For example, "((A AND B AND C) OR NOT D) AND E"), and there can be a + // maximum of 100 comparisons/functions in the expression. The expression must + // be < 3000 bytes in length. Sample Query: (key1 = "TEST" OR // LOWER(key1)="test" OR NOT EMPTY(key1)) AND key2 > 100 CustomAttributeFilter string `json:"customAttributeFilter,omitempty"` - // CustomFieldFilters: Deprecated. Use custom_attribute_filter instead. - // Optional. This filter specifies searching against custom field - // values. See Job.filterable_custom_fields for information. The key - // value specifies a number between 1-20 (the service supports 20 custom - // fields) corresponding to the desired custom field map value. If an - // invalid key is provided or specified together with - // custom_attribute_filter, an error is thrown. + // Optional. This filter specifies searching against custom field values. See + // Job.filterable_custom_fields for information. The key value specifies a + // number between 1-20 (the service supports 20 custom fields) corresponding to + // the desired custom field map value. If an invalid key is provided or + // specified together with custom_attribute_filter, an error is thrown. CustomFieldFilters map[string]CustomFieldFilter `json:"customFieldFilters,omitempty"` - - // DisableSpellCheck: Optional. This flag controls the spell-check - // feature. If false, the service attempts to correct a misspelled - // query, for example, "enginee" is corrected to "engineer". Defaults to - // false: a spell check is performed. + // DisableSpellCheck: Optional. This flag controls the spell-check feature. If + // false, the service attempts to correct a misspelled query, for example, + // "enginee" is corrected to "engineer". Defaults to false: a spell check is + // performed. DisableSpellCheck bool `json:"disableSpellCheck,omitempty"` - // EmploymentTypes: Optional. The employment type filter specifies the - // employment type of jobs to search against, such as - // EmploymentType.FULL_TIME. If a value is not specified, jobs in the - // search results include any employment type. If multiple values are - // specified, jobs in the search results include any of the specified - // employment types. + // employment type of jobs to search against, such as EmploymentType.FULL_TIME. + // If a value is not specified, jobs in the search results include any + // employment type. If multiple values are specified, jobs in the search + // results include any of the specified employment types. // // Possible values: - // "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment - // type is not specified. - // "FULL_TIME" - The job requires working a number of hours that - // constitute full time employment, typically 40 or more hours per week. - // "PART_TIME" - The job entails working fewer hours than a full time - // job, typically less than 40 hours a week. + // "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment type + // is not specified. + // "FULL_TIME" - The job requires working a number of hours that constitute + // full time employment, typically 40 or more hours per week. + // "PART_TIME" - The job entails working fewer hours than a full time job, + // typically less than 40 hours a week. // "CONTRACTOR" - The job is offered as a contracted, as opposed to a // salaried employee, position. - // "TEMPORARY" - The job is offered as a temporary employment - // opportunity, usually a short-term engagement. - // "INTERN" - The job is a fixed-term opportunity for students or - // entry-level job seekers to obtain on-the-job training, typically - // offered as a summer position. - // "VOLUNTEER" - The is an opportunity for an individual to volunteer, - // where there is no expectation of compensation for the provided - // services. - // "PER_DIEM" - The job requires an employee to work on an as-needed - // basis with a flexible schedule. - // "CONTRACT_TO_HIRE" - The job is offered as a contracted position - // with the understanding that it is converted into a full-time position - // at the end of the contract. Jobs of this type are also returned by a - // search for EmploymentType.CONTRACTOR jobs. - // "FLY_IN_FLY_OUT" - The job involves employing people in remote - // areas and flying them temporarily to the work site instead of - // relocating employees and their families permanently. + // "TEMPORARY" - The job is offered as a temporary employment opportunity, + // usually a short-term engagement. + // "INTERN" - The job is a fixed-term opportunity for students or entry-level + // job seekers to obtain on-the-job training, typically offered as a summer + // position. + // "VOLUNTEER" - The is an opportunity for an individual to volunteer, where + // there is no expectation of compensation for the provided services. + // "PER_DIEM" - The job requires an employee to work on an as-needed basis + // with a flexible schedule. + // "CONTRACT_TO_HIRE" - The job is offered as a contracted position with the + // understanding that it is converted into a full-time position at the end of + // the contract. Jobs of this type are also returned by a search for + // EmploymentType.CONTRACTOR jobs. + // "FLY_IN_FLY_OUT" - The job involves employing people in remote areas and + // flying them temporarily to the work site instead of relocating employees and + // their families permanently. // "OTHER" - The job does not fit any of the other listed types. EmploymentTypes []string `json:"employmentTypes,omitempty"` - - // ExtendedCompensationFilter: Deprecated. Always use - // compensation_filter. Optional. This search filter is applied only to - // Job.extended_compensation_info. For example, if the filter is - // specified as "Hourly job with per-hour compensation > $15", only jobs - // that meet these criteria are searched. If a filter is not defined, - // all open jobs are searched. + // ExtendedCompensationFilter: Deprecated. Always use compensation_filter. + // Optional. This search filter is applied only to + // Job.extended_compensation_info. For example, if the filter is specified as + // "Hourly job with per-hour compensation > $15", only jobs that meet these + // criteria are searched. If a filter is not defined, all open jobs are + // searched. ExtendedCompensationFilter *ExtendedCompensationFilter `json:"extendedCompensationFilter,omitempty"` - - // LanguageCodes: Optional. This filter specifies the locale of jobs to - // search against, for example, "en-US". If a value is not specified, - // the search results may contain jobs in any locale. Language codes - // should be in BCP-47 format, for example, "en-US" or "sr-Latn". For - // more information, see [Tags for Identifying - // Languages](https://tools.ietf.org/html/bcp47). At most 10 language - // code filters are allowed. + // LanguageCodes: Optional. This filter specifies the locale of jobs to search + // against, for example, "en-US". If a value is not specified, the search + // results may contain jobs in any locale. Language codes should be in BCP-47 + // format, for example, "en-US" or "sr-Latn". For more information, see Tags + // for Identifying Languages (https://tools.ietf.org/html/bcp47). At most 10 + // language code filters are allowed. LanguageCodes []string `json:"languageCodes,omitempty"` - // LocationFilters: Optional. The location filter specifies geo-regions // containing the jobs to search against. See LocationFilter for more - // information. If a location value is not specified, jobs are retrieved - // from all locations. If multiple values are specified, jobs are - // retrieved from any of the specified locations. If different values - // are specified for the LocationFilter.distance_in_miles parameter, the - // maximum provided distance is used for all locations. At most 5 - // location filters are allowed. + // information. If a location value is not specified, jobs are retrieved from + // all locations. If multiple values are specified, jobs are retrieved from any + // of the specified locations. If different values are specified for the + // LocationFilter.distance_in_miles parameter, the maximum provided distance is + // used for all locations. At most 5 location filters are allowed. LocationFilters []*LocationFilter `json:"locationFilters,omitempty"` - - // PublishDateRange: Optional. Jobs published within a range specified - // by this filter are searched against, for example, - // DateRange.PAST_MONTH. If a value is not specified, all open jobs are - // searched against regardless of the date they were published. + // PublishDateRange: Optional. Jobs published within a range specified by this + // filter are searched against, for example, DateRange.PAST_MONTH. If a value + // is not specified, all open jobs are searched against regardless of the date + // they were published. // // Possible values: // "DATE_RANGE_UNSPECIFIED" - Default value: Filtering on time is not @@ -3828,105 +3201,86 @@ type JobFilters struct { // "PAST_YEAR" - The past year (365 days) // "PAST_3_DAYS" - The past 3 days PublishDateRange string `json:"publishDateRange,omitempty"` - - // Query: Optional. The query filter contains the keywords that match - // against the job title, description, and location fields. The maximum - // query size is 255 bytes/characters. + // Query: Optional. The query filter contains the keywords that match against + // the job title, description, and location fields. The maximum query size is + // 255 bytes/characters. Query string `json:"query,omitempty"` - - // TenantJobOnly: Deprecated. Do not use this field. This flag controls - // whether the job search should be restricted to jobs owned by the - // current user. Defaults to false where all jobs accessible to the user - // are searched against. + // TenantJobOnly: Deprecated. Do not use this field. This flag controls whether + // the job search should be restricted to jobs owned by the current user. + // Defaults to false where all jobs accessible to the user are searched + // against. TenantJobOnly bool `json:"tenantJobOnly,omitempty"` - // ForceSendFields is a list of field names (e.g. "Categories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Categories") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Categories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobFilters) MarshalJSON() ([]byte, error) { +func (s JobFilters) MarshalJSON() ([]byte, error) { type NoMethod JobFilters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JobLocation: Output only. A resource that represents a location with -// full geographic information. +// JobLocation: Output only. A resource that represents a location with full +// geographic information. type JobLocation struct { // LatLng: An object representing a latitude/longitude pair. LatLng *LatLng `json:"latLng,omitempty"` - - // LocationType: The type of a location, which corresponds to the - // address lines field of PostalAddress. For example, "Downtown, - // Atlanta, GA, USA" has a type of LocationType#NEIGHBORHOOD, and - // "Kansas City, KS, USA" has a type of LocationType#LOCALITY. + // LocationType: The type of a location, which corresponds to the address lines + // field of PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type + // of LocationType#NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of + // LocationType#LOCALITY. // // Possible values: - // "LOCATION_TYPE_UNSPECIFIED" - Default value if the type is not - // specified. + // "LOCATION_TYPE_UNSPECIFIED" - Default value if the type is not specified. // "COUNTRY" - A country level location. // "ADMINISTRATIVE_AREA" - A state or equivalent level location. // "SUB_ADMINISTRATIVE_AREA" - A county or equivalent level location. // "LOCALITY" - A city or equivalent level location. // "POSTAL_CODE" - A postal code level location. - // "SUB_LOCALITY" - A sublocality is a subdivision of a locality, for - // example a city borough, ward, or arrondissement. Sublocalities are - // usually recognized by a local political authority. For example, - // Manhattan and Brooklyn are recognized as boroughs by the City of New - // York, and are therefore modeled as sublocalities. + // "SUB_LOCALITY" - A sublocality is a subdivision of a locality, for example + // a city borough, ward, or arrondissement. Sublocalities are usually + // recognized by a local political authority. For example, Manhattan and + // Brooklyn are recognized as boroughs by the City of New York, and are + // therefore modeled as sublocalities. // "SUB_LOCALITY_1" - A district or equivalent level location. // "SUB_LOCALITY_2" - A smaller district or equivalent level display. // "NEIGHBORHOOD" - A neighborhood level location. // "STREET_ADDRESS" - A street address level location. LocationType string `json:"locationType,omitempty"` - - // PostalAddress: Postal address of the location that includes human - // readable information, such as postal delivery and payments addresses. - // Given a postal address, a postal service can deliver items to a - // premises, P.O. Box, or other delivery location. + // PostalAddress: Postal address of the location that includes human readable + // information, such as postal delivery and payments addresses. Given a postal + // address, a postal service can deliver items to a premises, P.O. Box, or + // other delivery location. PostalAddress *PostalAddress `json:"postalAddress,omitempty"` - - // RadiusMeters: Radius in meters of the job location. This value is - // derived from the location bounding box in which a circle with the - // specified radius centered from LatLng coves the area associated with - // the job location. For example, currently, "Mountain View, CA, USA" - // has a radius of 7885.79 meters. + // RadiusMeters: Radius in meters of the job location. This value is derived + // from the location bounding box in which a circle with the specified radius + // centered from LatLng coves the area associated with the job location. For + // example, currently, "Mountain View, CA, USA" has a radius of 7885.79 meters. RadiusMeters float64 `json:"radiusMeters,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LatLng") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "LatLng") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "LatLng") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobLocation) MarshalJSON() ([]byte, error) { +func (s JobLocation) MarshalJSON() ([]byte, error) { type NoMethod JobLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *JobLocation) UnmarshalJSON(data []byte) error { @@ -3945,15 +3299,13 @@ func (s *JobLocation) UnmarshalJSON(data []byte) error { // JobProcessingOptions: Input only. Options for job processing. type JobProcessingOptions struct { - // DisableStreetAddressResolution: Optional. If set to `true`, the - // service does not attempt to resolve a more precise address for the - // job. + // DisableStreetAddressResolution: Optional. If set to `true`, the service does + // not attempt to resolve a more precise address for the job. DisableStreetAddressResolution bool `json:"disableStreetAddressResolution,omitempty"` - // HtmlSanitization: Optional. Option for job HTML content sanitization. - // Applied fields are: * description * applicationInstruction * - // incentives * qualifications * responsibilities HTML tags in these - // fields may be stripped if sanitiazation is not disabled. Defaults to + // Applied fields are: * description * applicationInstruction * incentives * + // qualifications * responsibilities HTML tags in these fields may be stripped + // if sanitiazation is not disabled. Defaults to // HtmlSanitization.SIMPLE_FORMATTING_ONLY. // // Possible values: @@ -3962,50 +3314,43 @@ type JobProcessingOptions struct { // "SIMPLE_FORMATTING_ONLY" - Sanitizes HTML input, only accepts bold, // italic, ordered list, and unordered list markup tags. HtmlSanitization string `json:"htmlSanitization,omitempty"` - // ForceSendFields is a list of field names (e.g. // "DisableStreetAddressResolution") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DisableStreetAddressResolution") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisableStreetAddressResolution") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobProcessingOptions) MarshalJSON() ([]byte, error) { +func (s JobProcessingOptions) MarshalJSON() ([]byte, error) { type NoMethod JobProcessingOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobQuery: Input only. The query required to perform a search query or // histogram. type JobQuery struct { - // Categories: Optional. The category filter specifies the categories of - // jobs to search against. See Category for more information. If a value - // is not specified, jobs from any category are searched against. If - // multiple values are specified, jobs from any of the specified - // categories are searched against. + // Categories: Optional. The category filter specifies the categories of jobs + // to search against. See Category for more information. If a value is not + // specified, jobs from any category are searched against. If multiple values + // are specified, jobs from any of the specified categories are searched + // against. // // Possible values: - // "JOB_CATEGORY_UNSPECIFIED" - The default value if the category is - // not specified. - // "ACCOUNTING_AND_FINANCE" - An accounting and finance job, such as - // an Accountant. - // "ADMINISTRATIVE_AND_OFFICE" - And administrative and office job, - // such as an Administrative Assistant. - // "ADVERTISING_AND_MARKETING" - An advertising and marketing job, - // such as Marketing Manager. + // "JOB_CATEGORY_UNSPECIFIED" - The default value if the category is not + // specified. + // "ACCOUNTING_AND_FINANCE" - An accounting and finance job, such as an + // Accountant. + // "ADMINISTRATIVE_AND_OFFICE" - And administrative and office job, such as + // an Administrative Assistant. + // "ADVERTISING_AND_MARKETING" - An advertising and marketing job, such as + // Marketing Manager. // "ANIMAL_CARE" - An animal care job, such as Veterinarian. // "ART_FASHION_AND_DESIGN" - An art, fashion, or design job, such as // Designer. @@ -4013,158 +3358,137 @@ type JobQuery struct { // Operations Manager. // "CLEANING_AND_FACILITIES" - A cleaning and facilities job, such as // Custodial Staff. - // "COMPUTER_AND_IT" - A computer and IT job, such as Systems - // Administrator. + // "COMPUTER_AND_IT" - A computer and IT job, such as Systems Administrator. // "CONSTRUCTION" - A construction job, such as General Laborer. // "CUSTOMER_SERVICE" - A customer service job, such s Cashier. // "EDUCATION" - An education job, such as School Teacher. - // "ENTERTAINMENT_AND_TRAVEL" - An entertainment and travel job, such - // as Flight Attendant. - // "FARMING_AND_OUTDOORS" - A farming or outdoor job, such as Park - // Ranger. + // "ENTERTAINMENT_AND_TRAVEL" - An entertainment and travel job, such as + // Flight Attendant. + // "FARMING_AND_OUTDOORS" - A farming or outdoor job, such as Park Ranger. // "HEALTHCARE" - A healthcare job, such as Registered Nurse. // "HUMAN_RESOURCES" - A human resources job, such as Human Resources // Director. - // "INSTALLATION_MAINTENANCE_AND_REPAIR" - An installation, - // maintenance, or repair job, such as Electrician. + // "INSTALLATION_MAINTENANCE_AND_REPAIR" - An installation, maintenance, or + // repair job, such as Electrician. // "LEGAL" - A legal job, such as Law Clerk. - // "MANAGEMENT" - A management job, often used in conjunction with - // another category, such as Store Manager. - // "MANUFACTURING_AND_WAREHOUSE" - A manufacturing or warehouse job, - // such as Assembly Technician. - // "MEDIA_COMMUNICATIONS_AND_WRITING" - A media, communications, or - // writing job, such as Media Relations. + // "MANAGEMENT" - A management job, often used in conjunction with another + // category, such as Store Manager. + // "MANUFACTURING_AND_WAREHOUSE" - A manufacturing or warehouse job, such as + // Assembly Technician. + // "MEDIA_COMMUNICATIONS_AND_WRITING" - A media, communications, or writing + // job, such as Media Relations. // "OIL_GAS_AND_MINING" - An oil, gas or mining job, such as Offshore // Driller. - // "PERSONAL_CARE_AND_SERVICES" - A personal care and services job, - // such as Hair Stylist. - // "PROTECTIVE_SERVICES" - A protective services job, such as Security - // Guard. + // "PERSONAL_CARE_AND_SERVICES" - A personal care and services job, such as + // Hair Stylist. + // "PROTECTIVE_SERVICES" - A protective services job, such as Security Guard. // "REAL_ESTATE" - A real estate job, such as Buyer's Agent. - // "RESTAURANT_AND_HOSPITALITY" - A restaurant and hospitality job, - // such as Restaurant Server. - // "SALES_AND_RETAIL" - A sales and/or retail job, such Sales - // Associate. - // "SCIENCE_AND_ENGINEERING" - A science and engineering job, such as - // Lab Technician. - // "SOCIAL_SERVICES_AND_NON_PROFIT" - A social services or non-profit - // job, such as Case Worker. - // "SPORTS_FITNESS_AND_RECREATION" - A sports, fitness, or recreation - // job, such as Personal Trainer. - // "TRANSPORTATION_AND_LOGISTICS" - A transportation or logistics job, - // such as Truck Driver. + // "RESTAURANT_AND_HOSPITALITY" - A restaurant and hospitality job, such as + // Restaurant Server. + // "SALES_AND_RETAIL" - A sales and/or retail job, such Sales Associate. + // "SCIENCE_AND_ENGINEERING" - A science and engineering job, such as Lab + // Technician. + // "SOCIAL_SERVICES_AND_NON_PROFIT" - A social services or non-profit job, + // such as Case Worker. + // "SPORTS_FITNESS_AND_RECREATION" - A sports, fitness, or recreation job, + // such as Personal Trainer. + // "TRANSPORTATION_AND_LOGISTICS" - A transportation or logistics job, such + // as Truck Driver. Categories []string `json:"categories,omitempty"` - // CommuteFilter: Optional. Allows filtering jobs by commute time with - // different travel methods (for example, driving or public transit). - // Note: This only works with COMMUTE MODE. When specified, - // [JobQuery.location_filters] is ignored. Currently we don't support - // sorting by commute time. + // different travel methods (for example, driving or public transit). Note: + // This only works with COMMUTE MODE. When specified, + // [JobQuery.location_filters] is ignored. Currently we don't support sorting + // by commute time. CommuteFilter *CommutePreference `json:"commuteFilter,omitempty"` - - // CompanyDisplayNames: Optional. This filter specifies the exact - // company display name of the jobs to search against. If a value isn't - // specified, jobs within the search results are associated with any - // company. If multiple values are specified, jobs within the search - // results may be associated with any of the specified companies. At - // most 20 company display name filters are allowed. + // CompanyDisplayNames: Optional. This filter specifies the exact company + // display name of the jobs to search against. If a value isn't specified, jobs + // within the search results are associated with any company. If multiple + // values are specified, jobs within the search results may be associated with + // any of the specified companies. At most 20 company display name filters are + // allowed. CompanyDisplayNames []string `json:"companyDisplayNames,omitempty"` - - // CompanyNames: Optional. This filter specifies the company entities to - // search against. If a value isn't specified, jobs are searched for - // against all companies. If multiple values are specified, jobs are - // searched against the companies specified. At most 20 company filters - // are allowed. + // CompanyNames: Optional. This filter specifies the company entities to search + // against. If a value isn't specified, jobs are searched for against all + // companies. If multiple values are specified, jobs are searched against the + // companies specified. At most 20 company filters are allowed. CompanyNames []string `json:"companyNames,omitempty"` - // CompensationFilter: Optional. This search filter is applied only to - // Job.compensation_info. For example, if the filter is specified as - // "Hourly job with per-hour compensation > $15", only jobs meeting - // these criteria are searched. If a filter isn't defined, all open jobs - // are searched. + // Job.compensation_info. For example, if the filter is specified as "Hourly + // job with per-hour compensation > $15", only jobs meeting these criteria are + // searched. If a filter isn't defined, all open jobs are searched. CompensationFilter *CompensationFilter `json:"compensationFilter,omitempty"` - - // CustomAttributeFilter: Optional. This filter specifies a structured - // syntax to match against the Job.custom_attributes marked as - // `filterable`. The syntax for this expression is a subset of Google - // SQL syntax. Supported operators are: =, !=, <, <=, >, >= where the - // left of the operator is a custom field key and the right of the - // operator is a number or string (surrounded by quotes) value. - // Supported functions are LOWER() to perform case insensitive match and - // EMPTY() to filter on the existence of a key. Boolean expressions - // (AND/OR/NOT) are supported up to 3 levels of nesting (for example, - // "((A AND B AND C) OR NOT D) AND E"), a maximum of 50 - // comparisons/functions are allowed in the expression. The expression - // must be < 2000 characters in length. Sample Query: (key1 = "TEST" OR + // CustomAttributeFilter: Optional. This filter specifies a structured syntax + // to match against the Job.custom_attributes marked as `filterable`. The + // syntax for this expression is a subset of Google SQL syntax. Supported + // operators are: =, !=, <, <=, >, >= where the left of the operator is a + // custom field key and the right of the operator is a number or string + // (surrounded by quotes) value. Supported functions are LOWER() to perform + // case insensitive match and EMPTY() to filter on the existence of a key. + // Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting + // (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 50 + // comparisons/functions are allowed in the expression. The expression must be + // < 2000 characters in length. Sample Query: (key1 = "TEST" OR // LOWER(key1)="test" OR NOT EMPTY(key1)) AND key2 > 100 CustomAttributeFilter string `json:"customAttributeFilter,omitempty"` - - // DisableSpellCheck: Optional. This flag controls the spell-check - // feature. If false, the service attempts to correct a misspelled - // query, for example, "enginee" is corrected to "engineer". Defaults to - // false: a spell check is performed. + // DisableSpellCheck: Optional. This flag controls the spell-check feature. If + // false, the service attempts to correct a misspelled query, for example, + // "enginee" is corrected to "engineer". Defaults to false: a spell check is + // performed. DisableSpellCheck bool `json:"disableSpellCheck,omitempty"` - // EmploymentTypes: Optional. The employment type filter specifies the - // employment type of jobs to search against, such as - // EmploymentType.FULL_TIME. If a value is not specified, jobs in the - // search results include any employment type. If multiple values are - // specified, jobs in the search results include any of the specified - // employment types. + // employment type of jobs to search against, such as EmploymentType.FULL_TIME. + // If a value is not specified, jobs in the search results include any + // employment type. If multiple values are specified, jobs in the search + // results include any of the specified employment types. // // Possible values: - // "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment - // type is not specified. - // "FULL_TIME" - The job requires working a number of hours that - // constitute full time employment, typically 40 or more hours per week. - // "PART_TIME" - The job entails working fewer hours than a full time - // job, typically less than 40 hours a week. + // "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment type + // is not specified. + // "FULL_TIME" - The job requires working a number of hours that constitute + // full time employment, typically 40 or more hours per week. + // "PART_TIME" - The job entails working fewer hours than a full time job, + // typically less than 40 hours a week. // "CONTRACTOR" - The job is offered as a contracted, as opposed to a // salaried employee, position. - // "TEMPORARY" - The job is offered as a temporary employment - // opportunity, usually a short-term engagement. - // "INTERN" - The job is a fixed-term opportunity for students or - // entry-level job seekers to obtain on-the-job training, typically - // offered as a summer position. - // "VOLUNTEER" - The is an opportunity for an individual to volunteer, - // where there is no expectation of compensation for the provided - // services. - // "PER_DIEM" - The job requires an employee to work on an as-needed - // basis with a flexible schedule. - // "CONTRACT_TO_HIRE" - The job is offered as a contracted position - // with the understanding that it is converted into a full-time position - // at the end of the contract. Jobs of this type are also returned by a - // search for EmploymentType.CONTRACTOR jobs. - // "FLY_IN_FLY_OUT" - The job involves employing people in remote - // areas and flying them temporarily to the work site instead of - // relocating employees and their families permanently. + // "TEMPORARY" - The job is offered as a temporary employment opportunity, + // usually a short-term engagement. + // "INTERN" - The job is a fixed-term opportunity for students or entry-level + // job seekers to obtain on-the-job training, typically offered as a summer + // position. + // "VOLUNTEER" - The is an opportunity for an individual to volunteer, where + // there is no expectation of compensation for the provided services. + // "PER_DIEM" - The job requires an employee to work on an as-needed basis + // with a flexible schedule. + // "CONTRACT_TO_HIRE" - The job is offered as a contracted position with the + // understanding that it is converted into a full-time position at the end of + // the contract. Jobs of this type are also returned by a search for + // EmploymentType.CONTRACTOR jobs. + // "FLY_IN_FLY_OUT" - The job involves employing people in remote areas and + // flying them temporarily to the work site instead of relocating employees and + // their families permanently. // "OTHER" - The job does not fit any of the other listed types. EmploymentTypes []string `json:"employmentTypes,omitempty"` - - // LanguageCodes: Optional. This filter specifies the locale of jobs to - // search against, for example, "en-US". If a value isn't specified, the - // search results can contain jobs in any locale. Language codes should - // be in BCP-47 format, such as "en-US" or "sr-Latn". For more - // information, see [Tags for Identifying - // Languages](https://tools.ietf.org/html/bcp47). At most 10 language - // code filters are allowed. + // LanguageCodes: Optional. This filter specifies the locale of jobs to search + // against, for example, "en-US". If a value isn't specified, the search + // results can contain jobs in any locale. Language codes should be in BCP-47 + // format, such as "en-US" or "sr-Latn". For more information, see Tags for + // Identifying Languages (https://tools.ietf.org/html/bcp47). At most 10 + // language code filters are allowed. LanguageCodes []string `json:"languageCodes,omitempty"` - // LocationFilters: Optional. The location filter specifies geo-regions // containing the jobs to search against. See LocationFilter for more - // information. If a location value isn't specified, jobs fitting the - // other search criteria are retrieved regardless of where they're - // located. If multiple values are specified, jobs are retrieved from - // any of the specified locations. If different values are specified for - // the LocationFilter.distance_in_miles parameter, the maximum provided - // distance is used for all locations. At most 5 location filters are - // allowed. + // information. If a location value isn't specified, jobs fitting the other + // search criteria are retrieved regardless of where they're located. If + // multiple values are specified, jobs are retrieved from any of the specified + // locations. If different values are specified for the + // LocationFilter.distance_in_miles parameter, the maximum provided distance is + // used for all locations. At most 5 location filters are allowed. LocationFilters []*LocationFilter `json:"locationFilters,omitempty"` - - // PublishDateRange: Optional. Jobs published within a range specified - // by this filter are searched against, for example, - // DateRange.PAST_MONTH. If a value isn't specified, all open jobs are - // searched against regardless of their published date. + // PublishDateRange: Optional. Jobs published within a range specified by this + // filter are searched against, for example, DateRange.PAST_MONTH. If a value + // isn't specified, all open jobs are searched against regardless of their + // published date. // // Possible values: // "DATE_RANGE_UNSPECIFIED" - Default value: Filtering on time is not @@ -4175,69 +3499,53 @@ type JobQuery struct { // "PAST_YEAR" - The past year (365 days) // "PAST_3_DAYS" - The past 3 days PublishDateRange string `json:"publishDateRange,omitempty"` - // Query: Optional. The query string that matches against the job title, - // description, and location fields. The maximum query size is 255 - // bytes. + // description, and location fields. The maximum query size is 255 bytes. Query string `json:"query,omitempty"` - // ForceSendFields is a list of field names (e.g. "Categories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Categories") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Categories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobQuery) MarshalJSON() ([]byte, error) { +func (s JobQuery) MarshalJSON() ([]byte, error) { type NoMethod JobQuery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LatLng: An object representing a latitude/longitude pair. This is -// expressed as a pair of doubles representing degrees latitude and -// degrees longitude. Unless specified otherwise, this must conform to -// the WGS84 standard. Values must be within normalized ranges. +// LatLng: An object representing a latitude/longitude pair. This is expressed +// as a pair of doubles representing degrees latitude and degrees longitude. +// Unless specified otherwise, this must conform to the WGS84 standard. Values +// must be within normalized ranges. type LatLng struct { - // Latitude: The latitude in degrees. It must be in the range [-90.0, - // +90.0]. + // Latitude: The latitude in degrees. It must be in the range [-90.0, +90.0]. Latitude float64 `json:"latitude,omitempty"` - // Longitude: The longitude in degrees. It must be in the range [-180.0, // +180.0]. Longitude float64 `json:"longitude,omitempty"` - // ForceSendFields is a list of field names (e.g. "Latitude") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Latitude") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Latitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LatLng) MarshalJSON() ([]byte, error) { +func (s LatLng) MarshalJSON() ([]byte, error) { type NoMethod LatLng - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *LatLng) UnmarshalJSON(data []byte) error { @@ -4256,194 +3564,150 @@ func (s *LatLng) UnmarshalJSON(data []byte) error { return nil } -// ListCompaniesResponse: Output only. The List companies response -// object. +// ListCompaniesResponse: Output only. The List companies response object. type ListCompaniesResponse struct { // Companies: Companies for the current client. Companies []*Company `json:"companies,omitempty"` - - // Metadata: Additional information for the API invocation, such as the - // request tracking id. + // Metadata: Additional information for the API invocation, such as the request + // tracking id. Metadata *ResponseMetadata `json:"metadata,omitempty"` - // NextPageToken: A token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Companies") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Companies") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Companies") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCompaniesResponse) MarshalJSON() ([]byte, error) { +func (s ListCompaniesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCompaniesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListCompanyJobsResponse: Deprecated. Use ListJobsResponse instead. -// Output only. The List jobs response object. +// ListCompanyJobsResponse: Deprecated. Use ListJobsResponse instead. Output +// only. The List jobs response object. type ListCompanyJobsResponse struct { - // Jobs: The Jobs for a given company. The maximum number of items - // returned is based on the limit field provided in the request. + // Jobs: The Jobs for a given company. The maximum number of items returned is + // based on the limit field provided in the request. Jobs []*Job `json:"jobs,omitempty"` - - // Metadata: Additional information for the API invocation, such as the - // request tracking id. + // Metadata: Additional information for the API invocation, such as the request + // tracking id. Metadata *ResponseMetadata `json:"metadata,omitempty"` - // NextPageToken: A token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // TotalSize: The total number of open jobs. The result will be empty if - // ListCompanyJobsRequest.include_jobs_count is not enabled or if no - // open jobs are available. + // ListCompanyJobsRequest.include_jobs_count is not enabled or if no open jobs + // are available. TotalSize int64 `json:"totalSize,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Jobs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Jobs") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Jobs") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCompanyJobsResponse) MarshalJSON() ([]byte, error) { +func (s ListCompanyJobsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCompanyJobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListJobsResponse: Output only. List jobs response. type ListJobsResponse struct { - // Jobs: The Jobs for a given company. The maximum number of items - // returned is based on the limit field provided in the request. + // Jobs: The Jobs for a given company. The maximum number of items returned is + // based on the limit field provided in the request. Jobs []*Job `json:"jobs,omitempty"` - - // Metadata: Additional information for the API invocation, such as the - // request tracking id. + // Metadata: Additional information for the API invocation, such as the request + // tracking id. Metadata *ResponseMetadata `json:"metadata,omitempty"` - // NextPageToken: A token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Jobs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Jobs") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Jobs") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListJobsResponse) MarshalJSON() ([]byte, error) { +func (s ListJobsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListJobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LocationFilter: Input only. Geographic region of the search. type LocationFilter struct { // DistanceInMiles: Optional. The distance_in_miles is applied when the - // location being searched for is identified as a city or smaller. When - // the location being searched for is a state or larger, this field is - // ignored. + // location being searched for is identified as a city or smaller. When the + // location being searched for is a state or larger, this field is ignored. DistanceInMiles float64 `json:"distanceInMiles,omitempty"` - - // IsTelecommute: Optional. Allows the client to return jobs without a - // set location, specifically, telecommuting jobs (telecomuting is - // considered by the service as a special location. - // Job.allow_telecommute indicates if a job permits telecommuting. If - // this field is true, telecommuting jobs are searched, and name and - // lat_lng are ignored. This filter can be used by itself to search - // exclusively for telecommuting jobs, or it can be combined with - // another location filter to search for a combination of job locations, - // such as "Mountain View" or "telecommuting" jobs. However, when used - // in combination with other location filters, telecommuting jobs can be - // treated as less relevant than other jobs in the search response. + // IsTelecommute: Optional. Allows the client to return jobs without a set + // location, specifically, telecommuting jobs (telecomuting is considered by + // the service as a special location. Job.allow_telecommute indicates if a job + // permits telecommuting. If this field is true, telecommuting jobs are + // searched, and name and lat_lng are ignored. This filter can be used by + // itself to search exclusively for telecommuting jobs, or it can be combined + // with another location filter to search for a combination of job locations, + // such as "Mountain View" or "telecommuting" jobs. However, when used in + // combination with other location filters, telecommuting jobs can be treated + // as less relevant than other jobs in the search response. IsTelecommute bool `json:"isTelecommute,omitempty"` - - // LatLng: Optional. The latitude and longitude of the geographic center - // from which to search. This field is ignored if `location_name` is - // provided. + // LatLng: Optional. The latitude and longitude of the geographic center from + // which to search. This field is ignored if `location_name` is provided. LatLng *LatLng `json:"latLng,omitempty"` - - // Name: Optional. The address name, such as "Mountain View" or "Bay - // Area". + // Name: Optional. The address name, such as "Mountain View" or "Bay Area". Name string `json:"name,omitempty"` - - // RegionCode: Optional. CLDR region code of the country/region of the - // address. This will be used to address ambiguity of the user-input - // location, e.g. "Liverpool" against "Liverpool, NY, US" or "Liverpool, - // UK". Set this field if all the jobs to search against are from a same - // region, or jobs are world-wide but the job seeker is from a specific - // region. See http://cldr.unicode.org/ and - // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. Example: "CH" for - // Switzerland. + // RegionCode: Optional. CLDR region code of the country/region of the address. + // This will be used to address ambiguity of the user-input location, e.g. + // "Liverpool" against "Liverpool, NY, US" or "Liverpool, UK". Set this field + // if all the jobs to search against are from a same region, or jobs are + // world-wide but the job seeker is from a specific region. See + // http://cldr.unicode.org/ and + // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + // for details. Example: "CH" for Switzerland. RegionCode string `json:"regionCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "DistanceInMiles") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DistanceInMiles") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DistanceInMiles") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LocationFilter) MarshalJSON() ([]byte, error) { +func (s LocationFilter) MarshalJSON() ([]byte, error) { type NoMethod LocationFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *LocationFilter) UnmarshalJSON(data []byte) error { @@ -4460,283 +3724,235 @@ func (s *LocationFilter) UnmarshalJSON(data []byte) error { return nil } -// MatchingJob: Output only. Job entry with metadata inside -// SearchJobsResponse. +// MatchingJob: Output only. Job entry with metadata inside SearchJobsResponse. type MatchingJob struct { - // CommuteInfo: Commute information which is generated based on - // specified CommutePreference. + // CommuteInfo: Commute information which is generated based on specified + // CommutePreference. CommuteInfo *CommuteInfo `json:"commuteInfo,omitempty"` - // Job: Job resource that matches the specified SearchJobsRequest. Job *Job `json:"job,omitempty"` - - // JobSummary: A summary of the job with core information that's - // displayed on the search results listing page. + // JobSummary: A summary of the job with core information that's displayed on + // the search results listing page. JobSummary string `json:"jobSummary,omitempty"` - - // JobTitleSnippet: Contains snippets of text from the Job.job_title - // field most closely matching a search query's keywords, if available. - // The matching query keywords are enclosed in HTML bold tags. + // JobTitleSnippet: Contains snippets of text from the Job.job_title field most + // closely matching a search query's keywords, if available. The matching query + // keywords are enclosed in HTML bold tags. JobTitleSnippet string `json:"jobTitleSnippet,omitempty"` - - // SearchTextSnippet: Contains snippets of text from the Job.description - // and similar fields that most closely match a search query's keywords, - // if available. All HTML tags in the original fields are stripped when - // returned in this field, and matching query keywords are enclosed in - // HTML bold tags. + // SearchTextSnippet: Contains snippets of text from the Job.description and + // similar fields that most closely match a search query's keywords, if + // available. All HTML tags in the original fields are stripped when returned + // in this field, and matching query keywords are enclosed in HTML bold tags. SearchTextSnippet string `json:"searchTextSnippet,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommuteInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommuteInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CommuteInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MatchingJob) MarshalJSON() ([]byte, error) { +func (s MatchingJob) MarshalJSON() ([]byte, error) { type NoMethod MatchingJob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MendelDebugInput: Message representing input to a Mendel server for -// debug forcing. See go/mendel-debug-forcing for more details. Next ID: -// 2 +// MendelDebugInput: Message representing input to a Mendel server for debug +// forcing. See go/mendel-debug-forcing for more details. Next ID: 2 type MendelDebugInput struct { // NamespacedDebugInput: When a request spans multiple servers, a - // MendelDebugInput may travel with the request and take effect in all - // the servers. This field is a map of namespaces to - // NamespacedMendelDebugInput protos. In a single server, up to two - // NamespacedMendelDebugInput protos are applied: 1. - // NamespacedMendelDebugInput with the global namespace (key == ""). 2. - // NamespacedMendelDebugInput with the server's namespace. When both + // MendelDebugInput may travel with the request and take effect in all the + // servers. This field is a map of namespaces to NamespacedMendelDebugInput + // protos. In a single server, up to two NamespacedMendelDebugInput protos are + // applied: 1. NamespacedMendelDebugInput with the global namespace (key == + // ""). 2. NamespacedMendelDebugInput with the server's namespace. When both // NamespacedMendelDebugInput protos are present, they are merged. See // go/mendel-debug-forcing for more details. NamespacedDebugInput map[string]NamespacedDebugInput `json:"namespacedDebugInput,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "NamespacedDebugInput") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "NamespacedDebugInput") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NamespacedDebugInput") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NamespacedDebugInput") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MendelDebugInput) MarshalJSON() ([]byte, error) { +func (s MendelDebugInput) MarshalJSON() ([]byte, error) { type NoMethod MendelDebugInput - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Money: Represents an amount of money with its currency type. type Money struct { // CurrencyCode: The 3-letter currency code defined in ISO 4217. CurrencyCode string `json:"currencyCode,omitempty"` - - // Nanos: Number of nano (10^-9) units of the amount. The value must be - // between -999,999,999 and +999,999,999 inclusive. If `units` is - // positive, `nanos` must be positive or zero. If `units` is zero, - // `nanos` can be positive, zero, or negative. If `units` is negative, - // `nanos` must be negative or zero. For example $-1.75 is represented - // as `units`=-1 and `nanos`=-750,000,000. + // Nanos: Number of nano (10^-9) units of the amount. The value must be between + // -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` + // must be positive or zero. If `units` is zero, `nanos` can be positive, zero, + // or negative. If `units` is negative, `nanos` must be negative or zero. For + // example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. Nanos int64 `json:"nanos,omitempty"` - - // Units: The whole units of the amount. For example if `currencyCode` - // is "USD", then 1 unit is one US dollar. + // Units: The whole units of the amount. For example if `currencyCode` is + // "USD", then 1 unit is one US dollar. Units int64 `json:"units,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CurrencyCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrencyCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CurrencyCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Money) MarshalJSON() ([]byte, error) { +func (s Money) MarshalJSON() ([]byte, error) { type NoMethod Money - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NamespacedDebugInput: Next ID: 15 type NamespacedDebugInput struct { - // AbsolutelyForcedExpNames: Set of experiment names to be absolutely - // forced. These experiments will be forced without evaluating the - // conditions. + // AbsolutelyForcedExpNames: Set of experiment names to be absolutely forced. + // These experiments will be forced without evaluating the conditions. AbsolutelyForcedExpNames []string `json:"absolutelyForcedExpNames,omitempty"` - - // AbsolutelyForcedExpTags: Set of experiment tags to be absolutely - // forced. The experiments with these tags will be forced without - // evaluating the conditions. + // AbsolutelyForcedExpTags: Set of experiment tags to be absolutely forced. The + // experiments with these tags will be forced without evaluating the + // conditions. AbsolutelyForcedExpTags []string `json:"absolutelyForcedExpTags,omitempty"` - - // AbsolutelyForcedExps: Set of experiment ids to be absolutely forced. - // These ids will be forced without evaluating the conditions. + // AbsolutelyForcedExps: Set of experiment ids to be absolutely forced. These + // ids will be forced without evaluating the conditions. AbsolutelyForcedExps []int64 `json:"absolutelyForcedExps,omitempty"` - - // ConditionallyForcedExpNames: Set of experiment names to be - // conditionally forced. These experiments will be forced only if their - // conditions and their parent domain's conditions are true. + // ConditionallyForcedExpNames: Set of experiment names to be conditionally + // forced. These experiments will be forced only if their conditions and their + // parent domain's conditions are true. ConditionallyForcedExpNames []string `json:"conditionallyForcedExpNames,omitempty"` - - // ConditionallyForcedExpTags: Set of experiment tags to be - // conditionally forced. The experiments with these tags will be forced - // only if their conditions and their parent domain's conditions are - // true. + // ConditionallyForcedExpTags: Set of experiment tags to be conditionally + // forced. The experiments with these tags will be forced only if their + // conditions and their parent domain's conditions are true. ConditionallyForcedExpTags []string `json:"conditionallyForcedExpTags,omitempty"` - - // ConditionallyForcedExps: Set of experiment ids to be conditionally - // forced. These ids will be forced only if their conditions and their - // parent domain's conditions are true. + // ConditionallyForcedExps: Set of experiment ids to be conditionally forced. + // These ids will be forced only if their conditions and their parent domain's + // conditions are true. ConditionallyForcedExps []int64 `json:"conditionallyForcedExps,omitempty"` - - // DisableAutomaticEnrollmentSelection: If true, disable automatic - // enrollment selection (at all diversion points). Automatic enrollment - // selection means experiment selection process based on the - // experiment's automatic enrollment condition. This does not disable - // selection of forced experiments. + // DisableAutomaticEnrollmentSelection: If true, disable automatic enrollment + // selection (at all diversion points). Automatic enrollment selection means + // experiment selection process based on the experiment's automatic enrollment + // condition. This does not disable selection of forced experiments. DisableAutomaticEnrollmentSelection bool `json:"disableAutomaticEnrollmentSelection,omitempty"` - - // DisableExpNames: Set of experiment names to be disabled. If an - // experiment is disabled, it is never selected nor forced. If an - // aggregate experiment is disabled, its partitions are disabled - // together. If an experiment with an enrollment is disabled, the - // enrollment is disabled together. If a name corresponds to a domain, - // the domain itself and all descendant experiments and domains are - // disabled together. + // DisableExpNames: Set of experiment names to be disabled. If an experiment is + // disabled, it is never selected nor forced. If an aggregate experiment is + // disabled, its partitions are disabled together. If an experiment with an + // enrollment is disabled, the enrollment is disabled together. If a name + // corresponds to a domain, the domain itself and all descendant experiments + // and domains are disabled together. DisableExpNames []string `json:"disableExpNames,omitempty"` - - // DisableExpTags: Set of experiment tags to be disabled. All - // experiments that are tagged with one or more of these tags are - // disabled. If an experiment is disabled, it is never selected nor - // forced. If an aggregate experiment is disabled, its partitions are - // disabled together. If an experiment with an enrollment is disabled, - // the enrollment is disabled together. + // DisableExpTags: Set of experiment tags to be disabled. All experiments that + // are tagged with one or more of these tags are disabled. If an experiment is + // disabled, it is never selected nor forced. If an aggregate experiment is + // disabled, its partitions are disabled together. If an experiment with an + // enrollment is disabled, the enrollment is disabled together. DisableExpTags []string `json:"disableExpTags,omitempty"` - - // DisableExps: Set of experiment ids to be disabled. If an experiment - // is disabled, it is never selected nor forced. If an aggregate - // experiment is disabled, its partitions are disabled together. If an - // experiment with an enrollment is disabled, the enrollment is disabled - // together. If an ID corresponds to a domain, the domain itself and all - // descendant experiments and domains are disabled together. + // DisableExps: Set of experiment ids to be disabled. If an experiment is + // disabled, it is never selected nor forced. If an aggregate experiment is + // disabled, its partitions are disabled together. If an experiment with an + // enrollment is disabled, the enrollment is disabled together. If an ID + // corresponds to a domain, the domain itself and all descendant experiments + // and domains are disabled together. DisableExps []int64 `json:"disableExps,omitempty"` - // DisableManualEnrollmentSelection: If true, disable manual enrollment - // selection (at all diversion points). Manual enrollment selection - // means experiment selection process based on the request's manual - // enrollment states (a.k.a. opt-in experiments). This does not disable - // selection of forced experiments. + // selection (at all diversion points). Manual enrollment selection means + // experiment selection process based on the request's manual enrollment states + // (a.k.a. opt-in experiments). This does not disable selection of forced + // experiments. DisableManualEnrollmentSelection bool `json:"disableManualEnrollmentSelection,omitempty"` - - // DisableOrganicSelection: If true, disable organic experiment - // selection (at all diversion points). Organic selection means - // experiment selection process based on traffic allocation and - // diversion condition evaluation. This does not disable selection of - // forced experiments. This is useful in cases when it is not known - // whether experiment selection behavior is responsible for a error or - // breakage. Disabling organic selection may help to isolate the cause + // DisableOrganicSelection: If true, disable organic experiment selection (at + // all diversion points). Organic selection means experiment selection process + // based on traffic allocation and diversion condition evaluation. This does + // not disable selection of forced experiments. This is useful in cases when it + // is not known whether experiment selection behavior is responsible for a + // error or breakage. Disabling organic selection may help to isolate the cause // of a given problem. DisableOrganicSelection bool `json:"disableOrganicSelection,omitempty"` - - // ForcedFlags: Flags to force in a particular experiment state. Map - // from flag name to flag value. + // ForcedFlags: Flags to force in a particular experiment state. Map from flag + // name to flag value. ForcedFlags map[string]string `json:"forcedFlags,omitempty"` - - // ForcedRollouts: Rollouts to force in a particular experiment state. - // Map from rollout name to rollout value. + // ForcedRollouts: Rollouts to force in a particular experiment state. Map from + // rollout name to rollout value. ForcedRollouts map[string]bool `json:"forcedRollouts,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AbsolutelyForcedExpNames") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AbsolutelyForcedExpNames") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AbsolutelyForcedExpNames") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AbsolutelyForcedExpNames") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NamespacedDebugInput) MarshalJSON() ([]byte, error) { +func (s NamespacedDebugInput) MarshalJSON() ([]byte, error) { type NoMethod NamespacedDebugInput - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NumericBucketingOption: Input only. Use this field to specify -// bucketing option for the histogram search response. +// NumericBucketingOption: Input only. Use this field to specify bucketing +// option for the histogram search response. type NumericBucketingOption struct { - // BucketBounds: Required. Two adjacent values form a histogram bucket. - // Values should be in ascending order. For example, if [5, 10, 15] are - // provided, four buckets are created: (-inf, 5), 5, 10), [10, 15), [15, - // inf). At most 20 [buckets_bound is supported. + // BucketBounds: Required. Two adjacent values form a histogram bucket. Values + // should be in ascending order. For example, if [5, 10, 15] are provided, four + // buckets are created: (-inf, 5), 5, 10), [10, 15), [15, inf). At most 20 + // [buckets_bound is supported. BucketBounds []float64 `json:"bucketBounds,omitempty"` - - // RequiresMinMax: Optional. If set to true, the histogram result - // includes minimum/maximum value of the numeric field. + // RequiresMinMax: Optional. If set to true, the histogram result includes + // minimum/maximum value of the numeric field. RequiresMinMax bool `json:"requiresMinMax,omitempty"` - // ForceSendFields is a list of field names (e.g. "BucketBounds") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BucketBounds") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BucketBounds") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NumericBucketingOption) MarshalJSON() ([]byte, error) { +func (s NumericBucketingOption) MarshalJSON() ([]byte, error) { + type NoMethod NumericBucketingOption + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *NumericBucketingOption) UnmarshalJSON(data []byte) error { type NoMethod NumericBucketingOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + var s1 struct { + BucketBounds []gensupport.JSONFloat64 `json:"bucketBounds"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.BucketBounds = make([]float64, len(s1.BucketBounds)) + for i := range s1.BucketBounds { + s.BucketBounds[i] = float64(s1.BucketBounds[i]) + } + return nil } // NumericBucketingResult: Output only. Custom numeric bucketing result. @@ -4744,38 +3960,28 @@ type NumericBucketingResult struct { // Counts: Count within each bucket. Its size is the length of // NumericBucketingOption.bucket_bounds plus 1. Counts []*BucketizedCount `json:"counts,omitempty"` - - // MaxValue: Stores the maximum value of the numeric field. Will be - // populated only if [NumericBucketingOption.requires_min_max] is set to - // true. + // MaxValue: Stores the maximum value of the numeric field. Will be populated + // only if [NumericBucketingOption.requires_min_max] is set to true. MaxValue float64 `json:"maxValue,omitempty"` - - // MinValue: Stores the minimum value of the numeric field. Will be - // populated only if [NumericBucketingOption.requires_min_max] is set to - // true. + // MinValue: Stores the minimum value of the numeric field. Will be populated + // only if [NumericBucketingOption.requires_min_max] is set to true. MinValue float64 `json:"minValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Counts") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Counts") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Counts") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NumericBucketingResult) MarshalJSON() ([]byte, error) { +func (s NumericBucketingResult) MarshalJSON() ([]byte, error) { type NoMethod NumericBucketingResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *NumericBucketingResult) UnmarshalJSON(data []byte) error { @@ -4794,697 +4000,551 @@ func (s *NumericBucketingResult) UnmarshalJSON(data []byte) error { return nil } -// PostalAddress: Represents a postal address, e.g. for postal delivery -// or payments addresses. Given a postal address, a postal service can -// deliver items to a premise, P.O. Box or similar. It is not intended -// to model geographical locations (roads, towns, mountains). In typical -// usage an address would be created via user input or from importing -// existing data, depending on the type of process. Advice on address -// input / editing: - Use an i18n-ready address widget such as -// https://github.com/google/libaddressinput) - Users should not be -// presented with UI elements for input or editing of fields outside -// countries where that field is used. For more guidance on how to use -// this schema, please see: +// PostalAddress: Represents a postal address, e.g. for postal delivery or +// payments addresses. Given a postal address, a postal service can deliver +// items to a premise, P.O. Box or similar. It is not intended to model +// geographical locations (roads, towns, mountains). In typical usage an +// address would be created via user input or from importing existing data, +// depending on the type of process. Advice on address input / editing: - Use +// an i18n-ready address widget such as +// https://github.com/google/libaddressinput) - Users should not be presented +// with UI elements for input or editing of fields outside countries where that +// field is used. For more guidance on how to use this schema, please see: // https://support.google.com/business/answer/6397478 type PostalAddress struct { - // AddressLines: Unstructured address lines describing the lower levels - // of an address. Because values in address_lines do not have type - // information and may sometimes contain multiple values in a single - // field (e.g. "Austin, TX"), it is important that the line order is - // clear. The order of address lines should be "envelope order" for the - // country/region of the address. In places where this can vary (e.g. - // Japan), address_language is used to make it explicit (e.g. "ja" for - // large-to-small ordering and "ja-Latn" or "en" for small-to-large). - // This way, the most specific line of an address can be selected based - // on the language. The minimum permitted structural representation of - // an address consists of a region_code with all remaining information - // placed in the address_lines. It would be possible to format such an - // address very approximately without geocoding, but no semantic - // reasoning could be made about any of the address components until it - // was at least partially resolved. Creating an address only containing - // a region_code and address_lines, and then geocoding is the - // recommended way to handle completely unstructured addresses (as - // opposed to guessing which parts of the address should be localities - // or administrative areas). + // AddressLines: Unstructured address lines describing the lower levels of an + // address. Because values in address_lines do not have type information and + // may sometimes contain multiple values in a single field (e.g. "Austin, TX"), + // it is important that the line order is clear. The order of address lines + // should be "envelope order" for the country/region of the address. In places + // where this can vary (e.g. Japan), address_language is used to make it + // explicit (e.g. "ja" for large-to-small ordering and "ja-Latn" or "en" for + // small-to-large). This way, the most specific line of an address can be + // selected based on the language. The minimum permitted structural + // representation of an address consists of a region_code with all remaining + // information placed in the address_lines. It would be possible to format such + // an address very approximately without geocoding, but no semantic reasoning + // could be made about any of the address components until it was at least + // partially resolved. Creating an address only containing a region_code and + // address_lines, and then geocoding is the recommended way to handle + // completely unstructured addresses (as opposed to guessing which parts of the + // address should be localities or administrative areas). AddressLines []string `json:"addressLines,omitempty"` - - // AdministrativeArea: Optional. Highest administrative subdivision - // which is used for postal addresses of a country or region. For - // example, this can be a state, a province, an oblast, or a prefecture. - // Specifically, for Spain this is the province and not the autonomous - // community (e.g. "Barcelona" and not "Catalonia"). Many countries - // don't use an administrative area in postal addresses. E.g. in - // Switzerland this should be left unpopulated. + // AdministrativeArea: Optional. Highest administrative subdivision which is + // used for postal addresses of a country or region. For example, this can be a + // state, a province, an oblast, or a prefecture. Specifically, for Spain this + // is the province and not the autonomous community (e.g. "Barcelona" and not + // "Catalonia"). Many countries don't use an administrative area in postal + // addresses. E.g. in Switzerland this should be left unpopulated. AdministrativeArea string `json:"administrativeArea,omitempty"` - - // LanguageCode: Optional. BCP-47 language code of the contents of this - // address (if known). This is often the UI language of the input form - // or is expected to match one of the languages used in the address' - // country/region, or their transliterated equivalents. This can affect - // formatting in certain countries, but is not critical to the - // correctness of the data and will never affect any validation or other - // non-formatting related operations. If this value is not known, it - // should be omitted (rather than specifying a possibly incorrect + // LanguageCode: Optional. BCP-47 language code of the contents of this address + // (if known). This is often the UI language of the input form or is expected + // to match one of the languages used in the address' country/region, or their + // transliterated equivalents. This can affect formatting in certain countries, + // but is not critical to the correctness of the data and will never affect any + // validation or other non-formatting related operations. If this value is not + // known, it should be omitted (rather than specifying a possibly incorrect // default). Examples: "zh-Hant", "ja", "ja-Latn", "en". LanguageCode string `json:"languageCode,omitempty"` - // Locality: Optional. Generally refers to the city/town portion of the - // address. Examples: US city, IT comune, UK post town. In regions of - // the world where localities are not well defined or do not fit into - // this structure well, leave locality empty and use address_lines. + // address. Examples: US city, IT comune, UK post town. In regions of the world + // where localities are not well defined or do not fit into this structure + // well, leave locality empty and use address_lines. Locality string `json:"locality,omitempty"` - // Organization: Optional. The name of the organization at the address. Organization string `json:"organization,omitempty"` - - // PostalCode: Optional. Postal code of the address. Not all countries - // use or require postal codes to be present, but where they are used, - // they may trigger additional validation with other parts of the - // address (e.g. state/zip validation in the U.S.A.). + // PostalCode: Optional. Postal code of the address. Not all countries use or + // require postal codes to be present, but where they are used, they may + // trigger additional validation with other parts of the address (e.g. + // state/zip validation in the U.S.A.). PostalCode string `json:"postalCode,omitempty"` - - // Recipients: Optional. The recipient at the address. This field may, - // under certain circumstances, contain multiline information. For - // example, it might contain "care of" information. + // Recipients: Optional. The recipient at the address. This field may, under + // certain circumstances, contain multiline information. For example, it might + // contain "care of" information. Recipients []string `json:"recipients,omitempty"` - - // RegionCode: Required. CLDR region code of the country/region of the - // address. This is never inferred and it is up to the user to ensure - // the value is correct. See http://cldr.unicode.org/ and - // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. Example: "CH" for - // Switzerland. + // RegionCode: Required. CLDR region code of the country/region of the address. + // This is never inferred and it is up to the user to ensure the value is + // correct. See http://cldr.unicode.org/ and + // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + // for details. Example: "CH" for Switzerland. RegionCode string `json:"regionCode,omitempty"` - - // Revision: The schema revision of the `PostalAddress`. This must be - // set to 0, which is the latest revision. All new revisions **must** be - // backward compatible with old revisions. + // Revision: The schema revision of the `PostalAddress`. This must be set to 0, + // which is the latest revision. All new revisions **must** be backward + // compatible with old revisions. Revision int64 `json:"revision,omitempty"` - - // SortingCode: Optional. Additional, country-specific, sorting code. - // This is not used in most regions. Where it is used, the value is - // either a string like "CEDEX", optionally followed by a number (e.g. - // "CEDEX 7"), or just a number alone, representing the "sector code" - // (Jamaica), "delivery area indicator" (Malawi) or "post office - // indicator" (e.g. Côte d'Ivoire). + // SortingCode: Optional. Additional, country-specific, sorting code. This is + // not used in most regions. Where it is used, the value is either a string + // like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a + // number alone, representing the "sector code" (Jamaica), "delivery area + // indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). SortingCode string `json:"sortingCode,omitempty"` - - // Sublocality: Optional. Sublocality of the address. For example, this - // can be neighborhoods, boroughs, districts. + // Sublocality: Optional. Sublocality of the address. For example, this can be + // neighborhoods, boroughs, districts. Sublocality string `json:"sublocality,omitempty"` - // ForceSendFields is a list of field names (e.g. "AddressLines") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AddressLines") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AddressLines") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PostalAddress) MarshalJSON() ([]byte, error) { +func (s PostalAddress) MarshalJSON() ([]byte, error) { type NoMethod PostalAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RequestMetadata: Input only. Meta information related to the job -// searcher or entity conducting the job search. This information is -// used to improve the performance of the service. +// RequestMetadata: Input only. Meta information related to the job searcher or +// entity conducting the job search. This information is used to improve the +// performance of the service. type RequestMetadata struct { - // DeviceInfo: Optional. The type of device used by the job seeker at - // the time of the call to the service. + // DeviceInfo: Optional. The type of device used by the job seeker at the time + // of the call to the service. DeviceInfo *DeviceInfo `json:"deviceInfo,omitempty"` - - // Domain: Required. The client-defined scope or source of the service - // call, which typically is the domain on which the service has been - // implemented and is currently being run. For example, if the service - // is being run by client *Foo, Inc.*, on job board www.foo.com and - // career site www.bar.com, then this field is set to "foo.com" for use - // on the job board, and "bar.com" for use on the career site. If this - // field is not available for some reason, send "UNKNOWN". Note that any - // improvements to the service model for a particular tenant site rely - // on this field being set correctly to some domain. + // Domain: Required. The client-defined scope or source of the service call, + // which typically is the domain on which the service has been implemented and + // is currently being run. For example, if the service is being run by client + // *Foo, Inc.*, on job board www.foo.com and career site www.bar.com, then this + // field is set to "foo.com" for use on the job board, and "bar.com" for use on + // the career site. If this field is not available for some reason, send + // "UNKNOWN". Note that any improvements to the service model for a particular + // tenant site rely on this field being set correctly to some domain. Domain string `json:"domain,omitempty"` - - // SessionId: Required. A unique session identification string. A - // session is defined as the duration of an end user's interaction with - // the service over a period. Obfuscate this field for privacy concerns - // before providing it to the API. If this field is not available for - // some reason, please send "UNKNOWN". Note that any improvements to the - // service model for a particular tenant site, rely on this field being - // set correctly to some unique session_id. + // SessionId: Required. A unique session identification string. A session is + // defined as the duration of an end user's interaction with the service over a + // period. Obfuscate this field for privacy concerns before providing it to the + // API. If this field is not available for some reason, please send "UNKNOWN". + // Note that any improvements to the service model for a particular tenant + // site, rely on this field being set correctly to some unique session_id. SessionId string `json:"sessionId,omitempty"` - - // UserId: Required. A unique user identification string, as determined - // by the client. The client is responsible for ensuring client-level - // uniqueness of this value in order to have the strongest positive - // impact on search quality. Obfuscate this field for privacy concerns - // before providing it to the service. If this field is not available - // for some reason, please send "UNKNOWN". Note that any improvements to - // the service model for a particular tenant site, rely on this field - // being set correctly to some unique user_id. + // UserId: Required. A unique user identification string, as determined by the + // client. The client is responsible for ensuring client-level uniqueness of + // this value in order to have the strongest positive impact on search quality. + // Obfuscate this field for privacy concerns before providing it to the + // service. If this field is not available for some reason, please send + // "UNKNOWN". Note that any improvements to the service model for a particular + // tenant site, rely on this field being set correctly to some unique user_id. UserId string `json:"userId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RequestMetadata) MarshalJSON() ([]byte, error) { +func (s RequestMetadata) MarshalJSON() ([]byte, error) { type NoMethod RequestMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResponseMetadata: Output only. Additional information returned to -// client, such as debugging information. +// ResponseMetadata: Output only. Additional information returned to client, +// such as debugging information. type ResponseMetadata struct { - // ExperimentIdList: Identifiers for the versions of the search - // algorithm used during this API invocation if multiple algorithms are - // used. The default value is empty. For search response only. + // ExperimentIdList: Identifiers for the versions of the search algorithm used + // during this API invocation if multiple algorithms are used. The default + // value is empty. For search response only. ExperimentIdList []int64 `json:"experimentIdList,omitempty"` - - // Mode: For search response only. Indicates the mode of a performed - // search. + // Mode: For search response only. Indicates the mode of a performed search. // // Possible values: - // "SEARCH_MODE_UNSPECIFIED" - The mode of the search method isn't - // specified. - // "JOB_SEARCH" - The job search doesn't include support for featured - // jobs. - // "FEATURED_JOB_SEARCH" - The job search matches only against - // featured jobs (jobs with a promotionValue > 0). This method doesn't - // return any jobs having a promotionValue <= 0. The search results - // order is determined by the promotionValue (jobs with a higher - // promotionValue are returned higher up in the search results), with - // relevance being used as a tiebreaker. - // "EMAIL_ALERT_SEARCH" - Deprecated. Please use the - // SearchJobsForAlert API. The job search matches against jobs suited to - // email notifications. + // "SEARCH_MODE_UNSPECIFIED" - The mode of the search method isn't specified. + // "JOB_SEARCH" - The job search doesn't include support for featured jobs. + // "FEATURED_JOB_SEARCH" - The job search matches only against featured jobs + // (jobs with a promotionValue > 0). This method doesn't return any jobs having + // a promotionValue <= 0. The search results order is determined by the + // promotionValue (jobs with a higher promotionValue are returned higher up in + // the search results), with relevance being used as a tiebreaker. + // "EMAIL_ALERT_SEARCH" - Deprecated. Please use the SearchJobsForAlert API. + // The job search matches against jobs suited to email notifications. Mode string `json:"mode,omitempty"` - - // RequestId: A unique id associated with this call. This id is logged - // for tracking purposes. + // RequestId: A unique id associated with this call. This id is logged for + // tracking purposes. RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExperimentIdList") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExperimentIdList") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExperimentIdList") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponseMetadata) MarshalJSON() ([]byte, error) { +func (s ResponseMetadata) MarshalJSON() ([]byte, error) { type NoMethod ResponseMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SearchJobsRequest: Input only. The Request body of the `SearchJobs` -// call. +// SearchJobsRequest: Input only. The Request body of the `SearchJobs` call. type SearchJobsRequest struct { // DisableRelevanceThresholding: Optional. Controls whether to disable - // relevance thresholding. Relevance thresholding removes jobs that have - // low relevance in search results, for example, removing "Assistant to - // the CEO" positions from the search results of a search for "CEO". - // Disabling relevance thresholding improves the accuracy of subsequent - // search requests. Defaults to false. + // relevance thresholding. Relevance thresholding removes jobs that have low + // relevance in search results, for example, removing "Assistant to the CEO" + // positions from the search results of a search for "CEO". Disabling relevance + // thresholding improves the accuracy of subsequent search requests. Defaults + // to false. DisableRelevanceThresholding bool `json:"disableRelevanceThresholding,omitempty"` - - // EnableBroadening: Optional. Controls whether to broaden the search - // when it produces sparse results. Broadened queries append results to - // the end of the matching results list. Defaults to false. + // EnableBroadening: Optional. Controls whether to broaden the search when it + // produces sparse results. Broadened queries append results to the end of the + // matching results list. Defaults to false. EnableBroadening bool `json:"enableBroadening,omitempty"` - // EnablePreciseResultSize: Optional. Controls if the search job request - // requires the return of a precise count of the first 300 results. - // Setting this to `true` ensures consistency in the number of results - // per page. Best practice is to set this value to true if a client - // allows users to jump directly to a non-sequential search results - // page. Enabling this flag may adversely impact performance. Defaults - // to false. + // requires the return of a precise count of the first 300 results. Setting + // this to `true` ensures consistency in the number of results per page. Best + // practice is to set this value to true if a client allows users to jump + // directly to a non-sequential search results page. Enabling this flag may + // adversely impact performance. Defaults to false. EnablePreciseResultSize bool `json:"enablePreciseResultSize,omitempty"` - - // Filters: Deprecated. Use query instead. Optional. Restrictions on the - // scope of the search request, such as filtering by location. + // Filters: Deprecated. Use query instead. Optional. Restrictions on the scope + // of the search request, such as filtering by location. Filters *JobFilters `json:"filters,omitempty"` - - // HistogramFacets: Optional. Restrictions on what fields to perform - // histogram on, such as `COMPANY_SIZE` etc. + // HistogramFacets: Optional. Restrictions on what fields to perform histogram + // on, such as `COMPANY_SIZE` etc. HistogramFacets *HistogramFacets `json:"histogramFacets,omitempty"` - - // JobView: Optional. The number of job attributes returned for jobs in - // the search response. Defaults to JobView.SMALL if no value is - // specified. + // JobView: Optional. The number of job attributes returned for jobs in the + // search response. Defaults to JobView.SMALL if no value is specified. // // Possible values: // "JOB_VIEW_UNSPECIFIED" - Default value. - // "SMALL" - A small view of the job, with the following attributes in + // "SMALL" - A small view of the job, with the following attributes in the + // search results: Job.name, Job.requisition_id, Job.job_title, + // Job.company_name, Job.job_locations, Job.description, Job.visibility. Note: + // Job.description is deprecated. It is scheduled to be removed from + // MatchingJob.Job objects in the SearchJobsResponse results on 12/31/2018. + // "MINIMAL" - A minimal view of the job, with the following attributes in // the search results: Job.name, Job.requisition_id, Job.job_title, - // Job.company_name, Job.job_locations, Job.description, Job.visibility. - // Note: Job.description is deprecated. It is scheduled to be removed - // from MatchingJob.Job objects in the SearchJobsResponse results on - // 12/31/2018. - // "MINIMAL" - A minimal view of the job, with the following - // attributes in the search results: Job.name, Job.requisition_id, - // Job.job_title, Job.company_name, Job.job_locations. - // "FULL" - All available attributes are included in the search - // results. Note: [Job.description, Job.responsibilities, - // Job.qualifications and Job.incentives are deprecated. These fields - // are scheduled to be removed from MatchingJob.Job objects in the - // SearchJobsResponse results on 12/31/2018. See the alternative - // MatchingJob.search_text_snippet and MatchingJob.job_summary fields. + // Job.company_name, Job.job_locations. + // "FULL" - All available attributes are included in the search results. + // Note: [Job.description, Job.responsibilities, Job.qualifications and + // Job.incentives are deprecated. These fields are scheduled to be removed from + // MatchingJob.Job objects in the SearchJobsResponse results on 12/31/2018. See + // the alternative MatchingJob.search_text_snippet and MatchingJob.job_summary + // fields. JobView string `json:"jobView,omitempty"` - // Mode: Required. Mode of a search. // // Possible values: - // "SEARCH_MODE_UNSPECIFIED" - The mode of the search method isn't - // specified. - // "JOB_SEARCH" - The job search doesn't include support for featured - // jobs. - // "FEATURED_JOB_SEARCH" - The job search matches only against - // featured jobs (jobs with a promotionValue > 0). This method doesn't - // return any jobs having a promotionValue <= 0. The search results - // order is determined by the promotionValue (jobs with a higher - // promotionValue are returned higher up in the search results), with - // relevance being used as a tiebreaker. - // "EMAIL_ALERT_SEARCH" - Deprecated. Please use the - // SearchJobsForAlert API. The job search matches against jobs suited to - // email notifications. + // "SEARCH_MODE_UNSPECIFIED" - The mode of the search method isn't specified. + // "JOB_SEARCH" - The job search doesn't include support for featured jobs. + // "FEATURED_JOB_SEARCH" - The job search matches only against featured jobs + // (jobs with a promotionValue > 0). This method doesn't return any jobs having + // a promotionValue <= 0. The search results order is determined by the + // promotionValue (jobs with a higher promotionValue are returned higher up in + // the search results), with relevance being used as a tiebreaker. + // "EMAIL_ALERT_SEARCH" - Deprecated. Please use the SearchJobsForAlert API. + // The job search matches against jobs suited to email notifications. Mode string `json:"mode,omitempty"` - - // Offset: Optional. An integer that specifies the current offset (that - // is, starting result location, amongst the jobs deemed by the API as - // relevant) in search results. This field is only considered if - // page_token is unset. For example, 0 means to return results starting - // from the first matching job, and 10 means to return from the 11th - // job. This can be used for pagination, (for example, pageSize = 10 and - // offset = 10 means to return from the second page). + // Offset: Optional. An integer that specifies the current offset (that is, + // starting result location, amongst the jobs deemed by the API as relevant) in + // search results. This field is only considered if page_token is unset. For + // example, 0 means to return results starting from the first matching job, and + // 10 means to return from the 11th job. This can be used for pagination, (for + // example, pageSize = 10 and offset = 10 means to return from the second + // page). Offset int64 `json:"offset,omitempty"` - - // OrderBy: Deprecated. Use sort_by instead. Optional. The criteria - // determining how search results are sorted. Defaults to - // SortBy.RELEVANCE_DESC if no value is specified. + // OrderBy: Deprecated. Use sort_by instead. Optional. The criteria determining + // how search results are sorted. Defaults to SortBy.RELEVANCE_DESC if no value + // is specified. // // Possible values: // "SORT_BY_UNSPECIFIED" - Default value. - // "RELEVANCE_DESC" - By descending relevance, as determined by the - // API algorithms. Relevance thresholding of query results is only - // available for queries if RELEVANCE_DESC sort ordering is specified. + // "RELEVANCE_DESC" - By descending relevance, as determined by the API + // algorithms. Relevance thresholding of query results is only available for + // queries if RELEVANCE_DESC sort ordering is specified. // "PUBLISHED_DATE_DESC" - Sort by published date descending. // "UPDATED_DATE_DESC" - Sort by updated date descending. // "TITLE" - Sort by job title ascending. // "TITLE_DESC" - Sort by job title descending. - // "ANNUALIZED_BASE_COMPENSATION" - Sort by job annualized base - // compensation in ascending order. If job's annualized base - // compensation is unspecified, they are put at the end of search - // result. + // "ANNUALIZED_BASE_COMPENSATION" - Sort by job annualized base compensation + // in ascending order. If job's annualized base compensation is unspecified, + // they are put at the end of search result. // "ANNUALIZED_TOTAL_COMPENSATION" - Sort by job annualized total - // compensation in ascending order. If job's annualized total - // compensation is unspecified, they are put at the end of search - // result. + // compensation in ascending order. If job's annualized total compensation is + // unspecified, they are put at the end of search result. // "ANNUALIZED_BASE_COMPENSATION_DESC" - Sort by job annualized base - // compensation in descending order. If job's annualized base - // compensation is unspecified, they are put at the end of search - // result. + // compensation in descending order. If job's annualized base compensation is + // unspecified, they are put at the end of search result. // "ANNUALIZED_TOTAL_COMPENSATION_DESC" - Sort by job annualized total - // compensation in descending order. If job's annualized total - // compensation is unspecified, they are put at the end of search - // result. + // compensation in descending order. If job's annualized total compensation is + // unspecified, they are put at the end of search result. OrderBy string `json:"orderBy,omitempty"` - - // PageSize: Optional. A limit on the number of jobs returned in the - // search results. Increasing this value above the default value of 10 - // can increase search response time. The value can be between 1 and - // 100. + // PageSize: Optional. A limit on the number of jobs returned in the search + // results. Increasing this value above the default value of 10 can increase + // search response time. The value can be between 1 and 100. PageSize int64 `json:"pageSize,omitempty"` - - // PageToken: Optional. The token specifying the current offset within - // search results. See SearchJobsResponse.next_page_token for an - // explanation of how to obtain the next set of query results. + // PageToken: Optional. The token specifying the current offset within search + // results. See SearchJobsResponse.next_page_token for an explanation of how to + // obtain the next set of query results. PageToken string `json:"pageToken,omitempty"` - // Query: Optional. Query used to search against jobs, such as keyword, // location filters, etc. Query *JobQuery `json:"query,omitempty"` - - // RequestMetadata: Required. The meta information collected about the - // job searcher, used to improve the search quality of the service. The - // identifiers, (such as `user_id`) are provided by users, and must be - // unique and consistent. + // RequestMetadata: Required. The meta information collected about the job + // searcher, used to improve the search quality of the service. The + // identifiers, (such as `user_id`) are provided by users, and must be unique + // and consistent. RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"` - - // SortBy: Optional. The criteria determining how search results are - // sorted. Defaults to SortBy.RELEVANCE_DESC if no value is specified. + // SortBy: Optional. The criteria determining how search results are sorted. + // Defaults to SortBy.RELEVANCE_DESC if no value is specified. // // Possible values: // "SORT_BY_UNSPECIFIED" - Default value. - // "RELEVANCE_DESC" - By descending relevance, as determined by the - // API algorithms. Relevance thresholding of query results is only - // available for queries if RELEVANCE_DESC sort ordering is specified. + // "RELEVANCE_DESC" - By descending relevance, as determined by the API + // algorithms. Relevance thresholding of query results is only available for + // queries if RELEVANCE_DESC sort ordering is specified. // "PUBLISHED_DATE_DESC" - Sort by published date descending. // "UPDATED_DATE_DESC" - Sort by updated date descending. // "TITLE" - Sort by job title ascending. // "TITLE_DESC" - Sort by job title descending. - // "ANNUALIZED_BASE_COMPENSATION" - Sort by job annualized base - // compensation in ascending order. If job's annualized base - // compensation is unspecified, they are put at the end of search - // result. + // "ANNUALIZED_BASE_COMPENSATION" - Sort by job annualized base compensation + // in ascending order. If job's annualized base compensation is unspecified, + // they are put at the end of search result. // "ANNUALIZED_TOTAL_COMPENSATION" - Sort by job annualized total - // compensation in ascending order. If job's annualized total - // compensation is unspecified, they are put at the end of search - // result. + // compensation in ascending order. If job's annualized total compensation is + // unspecified, they are put at the end of search result. // "ANNUALIZED_BASE_COMPENSATION_DESC" - Sort by job annualized base - // compensation in descending order. If job's annualized base - // compensation is unspecified, they are put at the end of search - // result. + // compensation in descending order. If job's annualized base compensation is + // unspecified, they are put at the end of search result. // "ANNUALIZED_TOTAL_COMPENSATION_DESC" - Sort by job annualized total - // compensation in descending order. If job's annualized total - // compensation is unspecified, they are put at the end of search - // result. + // compensation in descending order. If job's annualized total compensation is + // unspecified, they are put at the end of search result. SortBy string `json:"sortBy,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "DisableRelevanceThresholding") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "DisableRelevanceThresholding") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DisableRelevanceThresholding") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisableRelevanceThresholding") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SearchJobsRequest) MarshalJSON() ([]byte, error) { +func (s SearchJobsRequest) MarshalJSON() ([]byte, error) { type NoMethod SearchJobsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SearchJobsResponse: Output only. Response for SearchJob method. type SearchJobsResponse struct { // AppliedCommuteFilter: The commute filter the service applied to the - // specified query. This information is only available when query has a - // valid CommutePreference. + // specified query. This information is only available when query has a valid + // CommutePreference. AppliedCommuteFilter *CommutePreference `json:"appliedCommuteFilter,omitempty"` - - // AppliedJobLocationFilters: The location filters that the service - // applied to the specified query. If any filters are lat-lng based, the + // AppliedJobLocationFilters: The location filters that the service applied to + // the specified query. If any filters are lat-lng based, the // JobLocation.location_type is // JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED. AppliedJobLocationFilters []*JobLocation `json:"appliedJobLocationFilters,omitempty"` - - // EstimatedTotalSize: An estimation of the number of jobs that match - // the specified query. This number is not guaranteed to be accurate. - // For accurate results, seenenable_precise_result_size. + // EstimatedTotalSize: An estimation of the number of jobs that match the + // specified query. This number is not guaranteed to be accurate. For accurate + // results, seenenable_precise_result_size. EstimatedTotalSize int64 `json:"estimatedTotalSize,omitempty,string"` - // HistogramResults: The histogram results that match specified // SearchJobsRequest.HistogramFacets. HistogramResults *HistogramResults `json:"histogramResults,omitempty"` - // JobView: Corresponds to SearchJobsRequest.job_view. // // Possible values: // "JOB_VIEW_UNSPECIFIED" - Default value. - // "SMALL" - A small view of the job, with the following attributes in + // "SMALL" - A small view of the job, with the following attributes in the + // search results: Job.name, Job.requisition_id, Job.job_title, + // Job.company_name, Job.job_locations, Job.description, Job.visibility. Note: + // Job.description is deprecated. It is scheduled to be removed from + // MatchingJob.Job objects in the SearchJobsResponse results on 12/31/2018. + // "MINIMAL" - A minimal view of the job, with the following attributes in // the search results: Job.name, Job.requisition_id, Job.job_title, - // Job.company_name, Job.job_locations, Job.description, Job.visibility. - // Note: Job.description is deprecated. It is scheduled to be removed - // from MatchingJob.Job objects in the SearchJobsResponse results on - // 12/31/2018. - // "MINIMAL" - A minimal view of the job, with the following - // attributes in the search results: Job.name, Job.requisition_id, - // Job.job_title, Job.company_name, Job.job_locations. - // "FULL" - All available attributes are included in the search - // results. Note: [Job.description, Job.responsibilities, - // Job.qualifications and Job.incentives are deprecated. These fields - // are scheduled to be removed from MatchingJob.Job objects in the - // SearchJobsResponse results on 12/31/2018. See the alternative - // MatchingJob.search_text_snippet and MatchingJob.job_summary fields. + // Job.company_name, Job.job_locations. + // "FULL" - All available attributes are included in the search results. + // Note: [Job.description, Job.responsibilities, Job.qualifications and + // Job.incentives are deprecated. These fields are scheduled to be removed from + // MatchingJob.Job objects in the SearchJobsResponse results on 12/31/2018. See + // the alternative MatchingJob.search_text_snippet and MatchingJob.job_summary + // fields. JobView string `json:"jobView,omitempty"` - - // MatchingJobs: The Job entities that match the specified - // SearchJobsRequest. + // MatchingJobs: The Job entities that match the specified SearchJobsRequest. MatchingJobs []*MatchingJob `json:"matchingJobs,omitempty"` - - // Metadata: Additional information for the API invocation, such as the - // request tracking id. + // Metadata: Additional information for the API invocation, such as the request + // tracking id. Metadata *ResponseMetadata `json:"metadata,omitempty"` - - // NextPageToken: The token that specifies the starting position of the - // next page of results. This field is empty if there are no more - // results. + // NextPageToken: The token that specifies the starting position of the next + // page of results. This field is empty if there are no more results. NextPageToken string `json:"nextPageToken,omitempty"` - - // NumJobsFromBroadenedQuery: If query broadening is enabled, we may - // append additional results from the broadened query. This number - // indicates how many of the jobs returned in the jobs field are from - // the broadened query. These results are always at the end of the jobs - // list. In particular, a value of 0 means all the jobs in the jobs list - // are from the original (without broadening) query. If this field is - // non-zero, subsequent requests with offset after this result set - // should contain all broadened results. + // NumJobsFromBroadenedQuery: If query broadening is enabled, we may append + // additional results from the broadened query. This number indicates how many + // of the jobs returned in the jobs field are from the broadened query. These + // results are always at the end of the jobs list. In particular, a value of 0 + // means all the jobs in the jobs list are from the original (without + // broadening) query. If this field is non-zero, subsequent requests with + // offset after this result set should contain all broadened results. NumJobsFromBroadenedQuery int64 `json:"numJobsFromBroadenedQuery,omitempty"` - // SpellResult: The spell checking result, and correction. SpellResult *SpellingCorrection `json:"spellResult,omitempty"` - - // TotalSize: The precise result count, which is available only if the - // client set enable_precise_result_size to `true` or if the response is - // the last page of results. Otherwise, the value will be `-1`. + // TotalSize: The precise result count, which is available only if the client + // set enable_precise_result_size to `true` or if the response is the last page + // of results. Otherwise, the value will be `-1`. TotalSize int64 `json:"totalSize,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AppliedCommuteFilter") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AppliedCommuteFilter") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AppliedCommuteFilter") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AppliedCommuteFilter") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SearchJobsResponse) MarshalJSON() ([]byte, error) { +func (s SearchJobsResponse) MarshalJSON() ([]byte, error) { type NoMethod SearchJobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SpellingCorrection: Output only. Spell check result. type SpellingCorrection struct { // Corrected: Indicates if the query was corrected by the spell checker. Corrected bool `json:"corrected,omitempty"` - - // CorrectedText: Correction output consisting of the corrected keyword - // string. + // CorrectedText: Correction output consisting of the corrected keyword string. CorrectedText string `json:"correctedText,omitempty"` - // ForceSendFields is a list of field names (e.g. "Corrected") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Corrected") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Corrected") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpellingCorrection) MarshalJSON() ([]byte, error) { +func (s SpellingCorrection) MarshalJSON() ([]byte, error) { type NoMethod SpellingCorrection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the [API Design -// Guide](https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StringValues: Represents array of string values. type StringValues struct { // Values: Required. String values. Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Values") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StringValues) MarshalJSON() ([]byte, error) { +func (s StringValues) MarshalJSON() ([]byte, error) { type NoMethod StringValues - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateJobRequest: Input only. Update job request. type UpdateJobRequest struct { - // DisableStreetAddressResolution: Deprecated. Please use - // processing_options. This flag is ignored if processing_options is - // set. Optional. If set to `true`, the service does not attempt resolve - // a more precise address for the job. + // DisableStreetAddressResolution: Deprecated. Please use processing_options. + // This flag is ignored if processing_options is set. Optional. If set to + // `true`, the service does not attempt resolve a more precise address for the + // job. DisableStreetAddressResolution bool `json:"disableStreetAddressResolution,omitempty"` - // Job: Required. The Job to be updated. Job *Job `json:"job,omitempty"` - // ProcessingOptions: Optional. Options for job processing. - // UpdateJobRequest.disable_street_address_resolution is ignored if this - // flag is set. + // UpdateJobRequest.disable_street_address_resolution is ignored if this flag + // is set. ProcessingOptions *JobProcessingOptions `json:"processingOptions,omitempty"` - - // UpdateJobFields: Optional but strongly recommended to be provided for - // the best service experience. If update_job_fields is provided, only - // the specified fields in job are updated. Otherwise all the fields are - // updated. A field mask to restrict the fields that are updated. Valid - // values are: * jobTitle * employmentTypes * description * - // applicationUrls * applicationEmailList * applicationInstruction * - // responsibilities * qualifications * educationLevels * level * - // department * startDate * endDate * compensationInfo * incentives * - // languageCode * benefits * expireTime * customAttributes * visibility - // * publishDate * promotionValue * locations * region * expiryDate - // (deprecated) * filterableCustomFields (deprecated) * + // UpdateJobFields: Optional but strongly recommended to be provided for the + // best service experience. If update_job_fields is provided, only the + // specified fields in job are updated. Otherwise all the fields are updated. A + // field mask to restrict the fields that are updated. Valid values are: * + // jobTitle * employmentTypes * description * applicationUrls * + // applicationEmailList * applicationInstruction * responsibilities * + // qualifications * educationLevels * level * department * startDate * endDate + // * compensationInfo * incentives * languageCode * benefits * expireTime * + // customAttributes * visibility * publishDate * promotionValue * locations * + // region * expiryDate (deprecated) * filterableCustomFields (deprecated) * // unindexedCustomFields (deprecated) UpdateJobFields string `json:"updateJobFields,omitempty"` - // ForceSendFields is a list of field names (e.g. // "DisableStreetAddressResolution") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "DisableStreetAddressResolution") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisableStreetAddressResolution") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpdateJobRequest) MarshalJSON() ([]byte, error) { +func (s UpdateJobRequest) MarshalJSON() ([]byte, error) { type NoMethod UpdateJobRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "jobs.companies.create": - type CompaniesCreateCall struct { s *Service company *Company @@ -5501,23 +4561,21 @@ func (r *CompaniesService) Create(company *Company) *CompaniesCreateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CompaniesCreateCall) Fields(s ...googleapi.Field) *CompaniesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CompaniesCreateCall) Context(ctx context.Context) *CompaniesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CompaniesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5526,18 +4584,12 @@ func (c *CompaniesCreateCall) Header() http.Header { } func (c *CompaniesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.company) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/companies") @@ -5547,16 +4599,14 @@ func (c *CompaniesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.companies.create" call. -// Exactly one of *Company or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Company.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Company.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CompaniesCreateCall) Do(opts ...googleapi.CallOption) (*Company, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5564,17 +4614,17 @@ func (c *CompaniesCreateCall) Do(opts ...googleapi.CallOption) (*Company, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Company{ ServerResponse: googleapi.ServerResponse{ @@ -5587,29 +4637,7 @@ func (c *CompaniesCreateCall) Do(opts ...googleapi.CallOption) (*Company, error) return nil, err } return ret, nil - // { - // "description": "Creates a new company entity.", - // "flatPath": "v2/companies", - // "httpMethod": "POST", - // "id": "jobs.companies.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/companies", - // "request": { - // "$ref": "Company" - // }, - // "response": { - // "$ref": "Company" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.companies.delete": +} type CompaniesDeleteCall struct { s *Service @@ -5620,6 +4648,9 @@ type CompaniesDeleteCall struct { } // Delete: Deletes the specified company. +// +// - name: The resource name of the company to be deleted, such as, +// "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". func (r *CompaniesService) Delete(name string) *CompaniesDeleteCall { c := &CompaniesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5627,23 +4658,21 @@ func (r *CompaniesService) Delete(name string) *CompaniesDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CompaniesDeleteCall) Fields(s ...googleapi.Field) *CompaniesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CompaniesDeleteCall) Context(ctx context.Context) *CompaniesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CompaniesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5652,12 +4681,7 @@ func (c *CompaniesDeleteCall) Header() http.Header { } func (c *CompaniesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5671,16 +4695,14 @@ func (c *CompaniesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.companies.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CompaniesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5688,17 +4710,17 @@ func (c *CompaniesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -5711,36 +4733,7 @@ func (c *CompaniesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { return nil, err } return ret, nil - // { - // "description": "Deletes the specified company.", - // "flatPath": "v2/companies/{companiesId}", - // "httpMethod": "DELETE", - // "id": "jobs.companies.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the company to be deleted, such as, \"companies/0000aaaa-1111-bbbb-2222-cccc3333dddd\".", - // "location": "path", - // "pattern": "^companies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.companies.get": +} type CompaniesGetCall struct { s *Service @@ -5752,6 +4745,9 @@ type CompaniesGetCall struct { } // Get: Retrieves the specified company. +// +// - name: Resource name of the company to retrieve, such as +// "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". func (r *CompaniesService) Get(name string) *CompaniesGetCall { c := &CompaniesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5759,33 +4755,29 @@ func (r *CompaniesService) Get(name string) *CompaniesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CompaniesGetCall) Fields(s ...googleapi.Field) *CompaniesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CompaniesGetCall) IfNoneMatch(entityTag string) *CompaniesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CompaniesGetCall) Context(ctx context.Context) *CompaniesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CompaniesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5794,12 +4786,7 @@ func (c *CompaniesGetCall) Header() http.Header { } func (c *CompaniesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5816,16 +4803,14 @@ func (c *CompaniesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.companies.get" call. -// Exactly one of *Company or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Company.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Company.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CompaniesGetCall) Do(opts ...googleapi.CallOption) (*Company, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5833,17 +4818,17 @@ func (c *CompaniesGetCall) Do(opts ...googleapi.CallOption) (*Company, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Company{ ServerResponse: googleapi.ServerResponse{ @@ -5856,36 +4841,7 @@ func (c *CompaniesGetCall) Do(opts ...googleapi.CallOption) (*Company, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves the specified company.", - // "flatPath": "v2/companies/{companiesId}", - // "httpMethod": "GET", - // "id": "jobs.companies.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Resource name of the company to retrieve, such as \"companies/0000aaaa-1111-bbbb-2222-cccc3333dddd\".", - // "location": "path", - // "pattern": "^companies/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "response": { - // "$ref": "Company" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.companies.list": +} type CompaniesListCall struct { s *Service @@ -5895,65 +4851,60 @@ type CompaniesListCall struct { header_ http.Header } -// List: Lists all companies associated with a Cloud Talent Solution -// account. +// List: Lists all companies associated with a Cloud Talent Solution account. func (r *CompaniesService) List() *CompaniesListCall { c := &CompaniesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// MustHaveOpenJobs sets the optional parameter "mustHaveOpenJobs": Set -// to true if the companies request must have open jobs. Defaults to -// false. If true, at most page_size of companies are fetched, among -// which only those with open jobs are returned. +// MustHaveOpenJobs sets the optional parameter "mustHaveOpenJobs": Set to true +// if the companies request must have open jobs. Defaults to false. If true, at +// most page_size of companies are fetched, among which only those with open +// jobs are returned. func (c *CompaniesListCall) MustHaveOpenJobs(mustHaveOpenJobs bool) *CompaniesListCall { c.urlParams_.Set("mustHaveOpenJobs", fmt.Sprint(mustHaveOpenJobs)) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of companies to be returned, at most 100. Default is 100 if a -// non-positive number is provided. +// PageSize sets the optional parameter "pageSize": The maximum number of +// companies to be returned, at most 100. Default is 100 if a non-positive +// number is provided. func (c *CompaniesListCall) PageSize(pageSize int64) *CompaniesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The starting -// indicator from which to return results. +// PageToken sets the optional parameter "pageToken": The starting indicator +// from which to return results. func (c *CompaniesListCall) PageToken(pageToken string) *CompaniesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CompaniesListCall) Fields(s ...googleapi.Field) *CompaniesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CompaniesListCall) IfNoneMatch(entityTag string) *CompaniesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CompaniesListCall) Context(ctx context.Context) *CompaniesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CompaniesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5962,12 +4913,7 @@ func (c *CompaniesListCall) Header() http.Header { } func (c *CompaniesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5981,16 +4927,15 @@ func (c *CompaniesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.companies.list" call. -// Exactly one of *ListCompaniesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListCompaniesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListCompaniesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5998,17 +4943,17 @@ func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListCompaniesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6021,40 +4966,6 @@ func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResp return nil, err } return ret, nil - // { - // "description": "Lists all companies associated with a Cloud Talent Solution account.", - // "flatPath": "v2/companies", - // "httpMethod": "GET", - // "id": "jobs.companies.list", - // "parameterOrder": [], - // "parameters": { - // "mustHaveOpenJobs": { - // "description": "Optional. Set to true if the companies request must have open jobs. Defaults to false. If true, at most page_size of companies are fetched, among which only those with open jobs are returned.", - // "location": "query", - // "type": "boolean" - // }, - // "pageSize": { - // "description": "Optional. The maximum number of companies to be returned, at most 100. Default is 100 if a non-positive number is provided.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The starting indicator from which to return results.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/companies", - // "response": { - // "$ref": "ListCompaniesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - } // Pages invokes f for each page of results. @@ -6062,7 +4973,7 @@ func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResp // The provided context supersedes any context provided to the Context method. func (c *CompaniesListCall) Pages(ctx context.Context, f func(*ListCompaniesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6078,8 +4989,6 @@ func (c *CompaniesListCall) Pages(ctx context.Context, f func(*ListCompaniesResp } } -// method id "jobs.companies.patch": - type CompaniesPatchCall struct { s *Service name string @@ -6089,9 +4998,13 @@ type CompaniesPatchCall struct { header_ http.Header } -// Patch: Updates the specified company. Company names can't be updated. -// To update a company name, delete the company and all jobs associated -// with it, and only then re-create them. +// Patch: Updates the specified company. Company names can't be updated. To +// update a company name, delete the company and all jobs associated with it, +// and only then re-create them. +// +// - name: Required during company update. The resource name for a company. +// This is generated by the service when a company is created, for example, +// "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". func (r *CompaniesService) Patch(name string, company *Company) *CompaniesPatchCall { c := &CompaniesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6099,15 +5012,14 @@ func (r *CompaniesService) Patch(name string, company *Company) *CompaniesPatchC return c } -// UpdateCompanyFields sets the optional parameter -// "updateCompanyFields": Optional but strongly recommended to be -// provided for the best service experience. If update_company_fields is -// provided, only the specified fields in company are updated. Otherwise -// all the fields are updated. A field mask to specify the company -// fields to update. Valid values are: * displayName * website * -// imageUrl * companySize * distributorBillingCompanyId * -// companyInfoSources * careerPageLink * hiringAgency * hqLocation * -// eeoText * keywordSearchableCustomAttributes * title (deprecated) * +// UpdateCompanyFields sets the optional parameter "updateCompanyFields": +// Optional but strongly recommended to be provided for the best service +// experience. If update_company_fields is provided, only the specified fields +// in company are updated. Otherwise all the fields are updated. A field mask +// to specify the company fields to update. Valid values are: * displayName * +// website * imageUrl * companySize * distributorBillingCompanyId * +// companyInfoSources * careerPageLink * hiringAgency * hqLocation * eeoText * +// keywordSearchableCustomAttributes * title (deprecated) * // keywordSearchableCustomFields (deprecated) func (c *CompaniesPatchCall) UpdateCompanyFields(updateCompanyFields string) *CompaniesPatchCall { c.urlParams_.Set("updateCompanyFields", updateCompanyFields) @@ -6115,23 +5027,21 @@ func (c *CompaniesPatchCall) UpdateCompanyFields(updateCompanyFields string) *Co } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CompaniesPatchCall) Fields(s ...googleapi.Field) *CompaniesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CompaniesPatchCall) Context(ctx context.Context) *CompaniesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CompaniesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6140,18 +5050,12 @@ func (c *CompaniesPatchCall) Header() http.Header { } func (c *CompaniesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.company) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") @@ -6164,16 +5068,14 @@ func (c *CompaniesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.companies.patch" call. -// Exactly one of *Company or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Company.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Company.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CompaniesPatchCall) Do(opts ...googleapi.CallOption) (*Company, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6181,17 +5083,17 @@ func (c *CompaniesPatchCall) Do(opts ...googleapi.CallOption) (*Company, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Company{ ServerResponse: googleapi.ServerResponse{ @@ -6204,45 +5106,7 @@ func (c *CompaniesPatchCall) Do(opts ...googleapi.CallOption) (*Company, error) return nil, err } return ret, nil - // { - // "description": "Updates the specified company. Company names can't be updated. To update a company name, delete the company and all jobs associated with it, and only then re-create them.", - // "flatPath": "v2/companies/{companiesId}", - // "httpMethod": "PATCH", - // "id": "jobs.companies.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required during company update. The resource name for a company. This is generated by the service when a company is created, for example, \"companies/0000aaaa-1111-bbbb-2222-cccc3333dddd\".", - // "location": "path", - // "pattern": "^companies/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateCompanyFields": { - // "description": "Optional but strongly recommended to be provided for the best service experience. If update_company_fields is provided, only the specified fields in company are updated. Otherwise all the fields are updated. A field mask to specify the company fields to update. Valid values are: * displayName * website * imageUrl * companySize * distributorBillingCompanyId * companyInfoSources * careerPageLink * hiringAgency * hqLocation * eeoText * keywordSearchableCustomAttributes * title (deprecated) * keywordSearchableCustomFields (deprecated)", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "request": { - // "$ref": "Company" - // }, - // "response": { - // "$ref": "Company" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.companies.jobs.list": +} type CompaniesJobsListCall struct { s *Service @@ -6253,84 +5117,82 @@ type CompaniesJobsListCall struct { header_ http.Header } -// List: Deprecated. Use ListJobs instead. Lists all jobs associated -// with a company. +// List: Deprecated. Use ListJobs instead. Lists all jobs associated with a +// company. +// +// - companyName: The resource name of the company that owns the jobs to be +// listed, such as, "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". func (r *CompaniesJobsService) List(companyName string) *CompaniesJobsListCall { c := &CompaniesJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.companyName = companyName return c } -// IdsOnly sets the optional parameter "idsOnly": If set to `true`, only -// job ID, job requisition ID and language code will be returned. A -// typical use is to synchronize job repositories. Defaults to false. +// IdsOnly sets the optional parameter "idsOnly": If set to `true`, only job +// ID, job requisition ID and language code will be returned. A typical use is +// to synchronize job repositories. Defaults to false. func (c *CompaniesJobsListCall) IdsOnly(idsOnly bool) *CompaniesJobsListCall { c.urlParams_.Set("idsOnly", fmt.Sprint(idsOnly)) return c } -// IncludeJobsCount sets the optional parameter "includeJobsCount": -// Deprecated. Please DO NOT use this field except for small companies. -// Suggest counting jobs page by page instead. Set to true if the total -// number of open jobs is to be returned. Defaults to false. +// IncludeJobsCount sets the optional parameter "includeJobsCount": Deprecated. +// Please DO NOT use this field except for small companies. Suggest counting +// jobs page by page instead. Set to true if the total number of open jobs is +// to be returned. Defaults to false. func (c *CompaniesJobsListCall) IncludeJobsCount(includeJobsCount bool) *CompaniesJobsListCall { c.urlParams_.Set("includeJobsCount", fmt.Sprint(includeJobsCount)) return c } // JobRequisitionId sets the optional parameter "jobRequisitionId": The -// requisition ID, also known as posting ID, assigned by the company to -// the job. The maximum number of allowable characters is 225. +// requisition ID, also known as posting ID, assigned by the company to the +// job. The maximum number of allowable characters is 225. func (c *CompaniesJobsListCall) JobRequisitionId(jobRequisitionId string) *CompaniesJobsListCall { c.urlParams_.Set("jobRequisitionId", jobRequisitionId) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of jobs to be returned per page of results. If ids_only is set to -// true, the maximum allowed page size is 1000. Otherwise, the maximum -// allowed page size is 100. Default is 100 if empty or a number < 1 is -// specified. +// PageSize sets the optional parameter "pageSize": The maximum number of jobs +// to be returned per page of results. If ids_only is set to true, the maximum +// allowed page size is 1000. Otherwise, the maximum allowed page size is 100. +// Default is 100 if empty or a number < 1 is specified. func (c *CompaniesJobsListCall) PageSize(pageSize int64) *CompaniesJobsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The starting point -// of a query result. +// PageToken sets the optional parameter "pageToken": The starting point of a +// query result. func (c *CompaniesJobsListCall) PageToken(pageToken string) *CompaniesJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CompaniesJobsListCall) Fields(s ...googleapi.Field) *CompaniesJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CompaniesJobsListCall) IfNoneMatch(entityTag string) *CompaniesJobsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CompaniesJobsListCall) Context(ctx context.Context) *CompaniesJobsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CompaniesJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6339,12 +5201,7 @@ func (c *CompaniesJobsListCall) Header() http.Header { } func (c *CompaniesJobsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6361,16 +5218,15 @@ func (c *CompaniesJobsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "companyName": c.companyName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.companies.jobs.list" call. -// Exactly one of *ListCompanyJobsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListCompanyJobsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CompaniesJobsListCall) Do(opts ...googleapi.CallOption) (*ListCompanyJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6378,17 +5234,17 @@ func (c *CompaniesJobsListCall) Do(opts ...googleapi.CallOption) (*ListCompanyJo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListCompanyJobsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6401,59 +5257,6 @@ func (c *CompaniesJobsListCall) Do(opts ...googleapi.CallOption) (*ListCompanyJo return nil, err } return ret, nil - // { - // "description": "Deprecated. Use ListJobs instead. Lists all jobs associated with a company.", - // "flatPath": "v2/companies/{companiesId}/jobs", - // "httpMethod": "GET", - // "id": "jobs.companies.jobs.list", - // "parameterOrder": [ - // "companyName" - // ], - // "parameters": { - // "companyName": { - // "description": "Required. The resource name of the company that owns the jobs to be listed, such as, \"companies/0000aaaa-1111-bbbb-2222-cccc3333dddd\".", - // "location": "path", - // "pattern": "^companies/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "idsOnly": { - // "description": "Optional. If set to `true`, only job ID, job requisition ID and language code will be returned. A typical use is to synchronize job repositories. Defaults to false.", - // "location": "query", - // "type": "boolean" - // }, - // "includeJobsCount": { - // "description": "Deprecated. Please DO NOT use this field except for small companies. Suggest counting jobs page by page instead. Optional. Set to true if the total number of open jobs is to be returned. Defaults to false.", - // "location": "query", - // "type": "boolean" - // }, - // "jobRequisitionId": { - // "description": "Optional. The requisition ID, also known as posting ID, assigned by the company to the job. The maximum number of allowable characters is 225.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The maximum number of jobs to be returned per page of results. If ids_only is set to true, the maximum allowed page size is 1000. Otherwise, the maximum allowed page size is 100. Default is 100 if empty or a number \u003c 1 is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The starting point of a query result.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/{+companyName}/jobs", - // "response": { - // "$ref": "ListCompanyJobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - } // Pages invokes f for each page of results. @@ -6461,7 +5264,7 @@ func (c *CompaniesJobsListCall) Do(opts ...googleapi.CallOption) (*ListCompanyJo // The provided context supersedes any context provided to the Context method. func (c *CompaniesJobsListCall) Pages(ctx context.Context, f func(*ListCompanyJobsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6477,8 +5280,6 @@ func (c *CompaniesJobsListCall) Pages(ctx context.Context, f func(*ListCompanyJo } } -// method id "jobs.jobs.batchDelete": - type JobsBatchDeleteCall struct { s *Service batchdeletejobsrequest *BatchDeleteJobsRequest @@ -6495,23 +5296,21 @@ func (r *JobsService) BatchDelete(batchdeletejobsrequest *BatchDeleteJobsRequest } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *JobsBatchDeleteCall) Fields(s ...googleapi.Field) *JobsBatchDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *JobsBatchDeleteCall) Context(ctx context.Context) *JobsBatchDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *JobsBatchDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6520,18 +5319,12 @@ func (c *JobsBatchDeleteCall) Header() http.Header { } func (c *JobsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchdeletejobsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs:batchDelete") @@ -6541,16 +5334,14 @@ func (c *JobsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.jobs.batchDelete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *JobsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6558,17 +5349,17 @@ func (c *JobsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -6581,29 +5372,7 @@ func (c *JobsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { return nil, err } return ret, nil - // { - // "description": "Deletes a list of Job postings by filter.", - // "flatPath": "v2/jobs:batchDelete", - // "httpMethod": "POST", - // "id": "jobs.jobs.batchDelete", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/jobs:batchDelete", - // "request": { - // "$ref": "BatchDeleteJobsRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.jobs.create": +} type JobsCreateCall struct { s *Service @@ -6613,8 +5382,8 @@ type JobsCreateCall struct { header_ http.Header } -// Create: Creates a new job. Typically, the job becomes searchable -// within 10 seconds, but it may take up to 5 minutes. +// Create: Creates a new job. Typically, the job becomes searchable within 10 +// seconds, but it may take up to 5 minutes. func (r *JobsService) Create(createjobrequest *CreateJobRequest) *JobsCreateCall { c := &JobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.createjobrequest = createjobrequest @@ -6622,23 +5391,21 @@ func (r *JobsService) Create(createjobrequest *CreateJobRequest) *JobsCreateCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *JobsCreateCall) Fields(s ...googleapi.Field) *JobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *JobsCreateCall) Context(ctx context.Context) *JobsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *JobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6647,18 +5414,12 @@ func (c *JobsCreateCall) Header() http.Header { } func (c *JobsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.createjobrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs") @@ -6668,16 +5429,14 @@ func (c *JobsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.jobs.create" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *JobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6685,17 +5444,17 @@ func (c *JobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -6708,29 +5467,7 @@ func (c *JobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error) { return nil, err } return ret, nil - // { - // "description": "Creates a new job. Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.", - // "flatPath": "v2/jobs", - // "httpMethod": "POST", - // "id": "jobs.jobs.create", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/jobs", - // "request": { - // "$ref": "CreateJobRequest" - // }, - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.jobs.delete": +} type JobsDeleteCall struct { s *Service @@ -6740,8 +5477,10 @@ type JobsDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified job. Typically, the job becomes -// unsearchable within 10 seconds, but it may take up to 5 minutes. +// Delete: Deletes the specified job. Typically, the job becomes unsearchable +// within 10 seconds, but it may take up to 5 minutes. +// +// - name: The resource name of the job to be deleted, such as "jobs/11111111". func (r *JobsService) Delete(name string) *JobsDeleteCall { c := &JobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6749,33 +5488,31 @@ func (r *JobsService) Delete(name string) *JobsDeleteCall { } // DisableFastProcess sets the optional parameter "disableFastProcess": -// Deprecated. This field is not working anymore. If set to true, this -// call waits for all processing steps to complete before the job is -// cleaned up. Otherwise, the call returns while some steps are still -// taking place asynchronously, hence faster. +// Deprecated. This field is not working anymore. If set to true, this call +// waits for all processing steps to complete before the job is cleaned up. +// Otherwise, the call returns while some steps are still taking place +// asynchronously, hence faster. func (c *JobsDeleteCall) DisableFastProcess(disableFastProcess bool) *JobsDeleteCall { c.urlParams_.Set("disableFastProcess", fmt.Sprint(disableFastProcess)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *JobsDeleteCall) Fields(s ...googleapi.Field) *JobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *JobsDeleteCall) Context(ctx context.Context) *JobsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *JobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6784,12 +5521,7 @@ func (c *JobsDeleteCall) Header() http.Header { } func (c *JobsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -6803,16 +5535,14 @@ func (c *JobsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.jobs.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *JobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6820,17 +5550,17 @@ func (c *JobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -6843,41 +5573,7 @@ func (c *JobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { return nil, err } return ret, nil - // { - // "description": "Deletes the specified job. Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.", - // "flatPath": "v2/jobs/{jobsId}", - // "httpMethod": "DELETE", - // "id": "jobs.jobs.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "disableFastProcess": { - // "description": "Deprecated. This field is not working anymore. Optional. If set to true, this call waits for all processing steps to complete before the job is cleaned up. Otherwise, the call returns while some steps are still taking place asynchronously, hence faster.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Required. The resource name of the job to be deleted, such as \"jobs/11111111\".", - // "location": "path", - // "pattern": "^jobs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.jobs.deleteByFilter": +} type JobsDeleteByFilterCall struct { s *Service @@ -6888,9 +5584,9 @@ type JobsDeleteByFilterCall struct { } // DeleteByFilter: Deprecated. Use BatchDeleteJobs instead. Deletes the -// specified job by filter. You can specify whether to synchronously -// wait for validation, indexing, and general processing to be completed -// before the response is returned. +// specified job by filter. You can specify whether to synchronously wait for +// validation, indexing, and general processing to be completed before the +// response is returned. func (r *JobsService) DeleteByFilter(deletejobsbyfilterrequest *DeleteJobsByFilterRequest) *JobsDeleteByFilterCall { c := &JobsDeleteByFilterCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.deletejobsbyfilterrequest = deletejobsbyfilterrequest @@ -6898,23 +5594,21 @@ func (r *JobsService) DeleteByFilter(deletejobsbyfilterrequest *DeleteJobsByFilt } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *JobsDeleteByFilterCall) Fields(s ...googleapi.Field) *JobsDeleteByFilterCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *JobsDeleteByFilterCall) Context(ctx context.Context) *JobsDeleteByFilterCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *JobsDeleteByFilterCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6923,18 +5617,12 @@ func (c *JobsDeleteByFilterCall) Header() http.Header { } func (c *JobsDeleteByFilterCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.deletejobsbyfilterrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs:deleteByFilter") @@ -6944,16 +5632,14 @@ func (c *JobsDeleteByFilterCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.jobs.deleteByFilter" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *JobsDeleteByFilterCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6961,17 +5647,17 @@ func (c *JobsDeleteByFilterCall) Do(opts ...googleapi.CallOption) (*Empty, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -6984,29 +5670,7 @@ func (c *JobsDeleteByFilterCall) Do(opts ...googleapi.CallOption) (*Empty, error return nil, err } return ret, nil - // { - // "description": "Deprecated. Use BatchDeleteJobs instead. Deletes the specified job by filter. You can specify whether to synchronously wait for validation, indexing, and general processing to be completed before the response is returned.", - // "flatPath": "v2/jobs:deleteByFilter", - // "httpMethod": "POST", - // "id": "jobs.jobs.deleteByFilter", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/jobs:deleteByFilter", - // "request": { - // "$ref": "DeleteJobsByFilterRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.jobs.get": +} type JobsGetCall struct { s *Service @@ -7017,8 +5681,10 @@ type JobsGetCall struct { header_ http.Header } -// Get: Retrieves the specified job, whose status is OPEN or recently -// EXPIRED within the last 90 days. +// Get: Retrieves the specified job, whose status is OPEN or recently EXPIRED +// within the last 90 days. +// +// - name: The resource name of the job to retrieve, such as "jobs/11111111". func (r *JobsService) Get(name string) *JobsGetCall { c := &JobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7026,33 +5692,29 @@ func (r *JobsService) Get(name string) *JobsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *JobsGetCall) Fields(s ...googleapi.Field) *JobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *JobsGetCall) IfNoneMatch(entityTag string) *JobsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *JobsGetCall) Context(ctx context.Context) *JobsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *JobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7061,12 +5723,7 @@ func (c *JobsGetCall) Header() http.Header { } func (c *JobsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7083,16 +5740,14 @@ func (c *JobsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.jobs.get" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *JobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7100,17 +5755,17 @@ func (c *JobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -7123,36 +5778,7 @@ func (c *JobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.", - // "flatPath": "v2/jobs/{jobsId}", - // "httpMethod": "GET", - // "id": "jobs.jobs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the job to retrieve, such as \"jobs/11111111\".", - // "location": "path", - // "pattern": "^jobs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.jobs.histogram": +} type JobsHistogramCall struct { s *Service @@ -7162,14 +5788,13 @@ type JobsHistogramCall struct { header_ http.Header } -// Histogram: Deprecated. Use SearchJobsRequest.histogram_facets instead -// to make a single call with both search and histogram. Retrieves a -// histogram for the given GetHistogramRequest. This call provides a -// structured count of jobs that match against the search query, grouped -// by specified facets. This call constrains the visibility of jobs -// present in the database, and only counts jobs the caller has -// permission to search against. For example, use this call to generate -// the number of jobs in the U.S. by state. +// Histogram: Deprecated. Use SearchJobsRequest.histogram_facets instead to +// make a single call with both search and histogram. Retrieves a histogram for +// the given GetHistogramRequest. This call provides a structured count of jobs +// that match against the search query, grouped by specified facets. This call +// constrains the visibility of jobs present in the database, and only counts +// jobs the caller has permission to search against. For example, use this call +// to generate the number of jobs in the U.S. by state. func (r *JobsService) Histogram(gethistogramrequest *GetHistogramRequest) *JobsHistogramCall { c := &JobsHistogramCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.gethistogramrequest = gethistogramrequest @@ -7177,23 +5802,21 @@ func (r *JobsService) Histogram(gethistogramrequest *GetHistogramRequest) *JobsH } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *JobsHistogramCall) Fields(s ...googleapi.Field) *JobsHistogramCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *JobsHistogramCall) Context(ctx context.Context) *JobsHistogramCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *JobsHistogramCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7202,18 +5825,12 @@ func (c *JobsHistogramCall) Header() http.Header { } func (c *JobsHistogramCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.gethistogramrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs:histogram") @@ -7223,16 +5840,15 @@ func (c *JobsHistogramCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.jobs.histogram" call. -// Exactly one of *GetHistogramResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GetHistogramResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GetHistogramResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *JobsHistogramCall) Do(opts ...googleapi.CallOption) (*GetHistogramResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7240,17 +5856,17 @@ func (c *JobsHistogramCall) Do(opts ...googleapi.CallOption) (*GetHistogramRespo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GetHistogramResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7263,29 +5879,7 @@ func (c *JobsHistogramCall) Do(opts ...googleapi.CallOption) (*GetHistogramRespo return nil, err } return ret, nil - // { - // "description": "Deprecated. Use SearchJobsRequest.histogram_facets instead to make a single call with both search and histogram. Retrieves a histogram for the given GetHistogramRequest. This call provides a structured count of jobs that match against the search query, grouped by specified facets. This call constrains the visibility of jobs present in the database, and only counts jobs the caller has permission to search against. For example, use this call to generate the number of jobs in the U.S. by state.", - // "flatPath": "v2/jobs:histogram", - // "httpMethod": "POST", - // "id": "jobs.jobs.histogram", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/jobs:histogram", - // "request": { - // "$ref": "GetHistogramRequest" - // }, - // "response": { - // "$ref": "GetHistogramResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.jobs.list": +} type JobsListCall struct { s *Service @@ -7301,71 +5895,64 @@ func (r *JobsService) List() *JobsListCall { return c } -// Filter sets the optional parameter "filter": Required. The filter -// string specifies the jobs to be enumerated. Supported operator: =, -// AND The fields eligible for filtering are: * `companyName` (Required) -// * `requisitionId` (Optional) Sample Query: * companyName = -// "companies/123" * companyName = "companies/123" AND requisitionId = -// "req-1" +// Filter sets the optional parameter "filter": Required. The filter string +// specifies the jobs to be enumerated. Supported operator: =, AND The fields +// eligible for filtering are: * `companyName` (Required) * `requisitionId` +// (Optional) Sample Query: * companyName = "companies/123" * companyName = +// "companies/123" AND requisitionId = "req-1" func (c *JobsListCall) Filter(filter string) *JobsListCall { c.urlParams_.Set("filter", filter) return c } // IdsOnly sets the optional parameter "idsOnly": If set to `true`, only -// Job.name, Job.requisition_id and Job.language_code will be returned. -// A typical use case is to synchronize job repositories. Defaults to -// false. +// Job.name, Job.requisition_id and Job.language_code will be returned. A +// typical use case is to synchronize job repositories. Defaults to false. func (c *JobsListCall) IdsOnly(idsOnly bool) *JobsListCall { c.urlParams_.Set("idsOnly", fmt.Sprint(idsOnly)) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of jobs to be returned per page of results. If ids_only is set to -// true, the maximum allowed page size is 1000. Otherwise, the maximum -// allowed page size is 100. Default is 100 if empty or a number < 1 is -// specified. +// PageSize sets the optional parameter "pageSize": The maximum number of jobs +// to be returned per page of results. If ids_only is set to true, the maximum +// allowed page size is 1000. Otherwise, the maximum allowed page size is 100. +// Default is 100 if empty or a number < 1 is specified. func (c *JobsListCall) PageSize(pageSize int64) *JobsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The starting point -// of a query result. +// PageToken sets the optional parameter "pageToken": The starting point of a +// query result. func (c *JobsListCall) PageToken(pageToken string) *JobsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *JobsListCall) Fields(s ...googleapi.Field) *JobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *JobsListCall) IfNoneMatch(entityTag string) *JobsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *JobsListCall) Context(ctx context.Context) *JobsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *JobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7374,12 +5961,7 @@ func (c *JobsListCall) Header() http.Header { } func (c *JobsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7393,16 +5975,15 @@ func (c *JobsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.jobs.list" call. -// Exactly one of *ListJobsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListJobsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListJobsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *JobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7410,17 +5991,17 @@ func (c *JobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListJobsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7433,45 +6014,6 @@ func (c *JobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, erro return nil, err } return ret, nil - // { - // "description": "Lists jobs by filter.", - // "flatPath": "v2/jobs", - // "httpMethod": "GET", - // "id": "jobs.jobs.list", - // "parameterOrder": [], - // "parameters": { - // "filter": { - // "description": "Required. The filter string specifies the jobs to be enumerated. Supported operator: =, AND The fields eligible for filtering are: * `companyName` (Required) * `requisitionId` (Optional) Sample Query: * companyName = \"companies/123\" * companyName = \"companies/123\" AND requisitionId = \"req-1\"", - // "location": "query", - // "type": "string" - // }, - // "idsOnly": { - // "description": "Optional. If set to `true`, only Job.name, Job.requisition_id and Job.language_code will be returned. A typical use case is to synchronize job repositories. Defaults to false.", - // "location": "query", - // "type": "boolean" - // }, - // "pageSize": { - // "description": "Optional. The maximum number of jobs to be returned per page of results. If ids_only is set to true, the maximum allowed page size is 1000. Otherwise, the maximum allowed page size is 100. Default is 100 if empty or a number \u003c 1 is specified.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The starting point of a query result.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/jobs", - // "response": { - // "$ref": "ListJobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - } // Pages invokes f for each page of results. @@ -7479,7 +6021,7 @@ func (c *JobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, erro // The provided context supersedes any context provided to the Context method. func (c *JobsListCall) Pages(ctx context.Context, f func(*ListJobsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -7495,8 +6037,6 @@ func (c *JobsListCall) Pages(ctx context.Context, f func(*ListJobsResponse) erro } } -// method id "jobs.jobs.patch": - type JobsPatchCall struct { s *Service name string @@ -7506,9 +6046,13 @@ type JobsPatchCall struct { header_ http.Header } -// Patch: Updates specified job. Typically, updated contents become -// visible in search results within 10 seconds, but it may take up to 5 -// minutes. +// Patch: Updates specified job. Typically, updated contents become visible in +// search results within 10 seconds, but it may take up to 5 minutes. +// +// - name: Required during job update. Resource name assigned to a job by the +// API, for example, "/jobs/foo". Use of this field in job queries and API +// calls is preferred over the use of requisition_id since this value is +// unique. func (r *JobsService) Patch(name string, updatejobrequest *UpdateJobRequest) *JobsPatchCall { c := &JobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7517,23 +6061,21 @@ func (r *JobsService) Patch(name string, updatejobrequest *UpdateJobRequest) *Jo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *JobsPatchCall) Fields(s ...googleapi.Field) *JobsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *JobsPatchCall) Context(ctx context.Context) *JobsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *JobsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7542,18 +6084,12 @@ func (c *JobsPatchCall) Header() http.Header { } func (c *JobsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.updatejobrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") @@ -7566,16 +6102,14 @@ func (c *JobsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.jobs.patch" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *JobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7583,17 +6117,17 @@ func (c *JobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -7606,39 +6140,7 @@ func (c *JobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, error) { return nil, err } return ret, nil - // { - // "description": "Updates specified job. Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.", - // "flatPath": "v2/jobs/{jobsId}", - // "httpMethod": "PATCH", - // "id": "jobs.jobs.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required during job update. Resource name assigned to a job by the API, for example, \"/jobs/foo\". Use of this field in job queries and API calls is preferred over the use of requisition_id since this value is unique.", - // "location": "path", - // "pattern": "^jobs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "request": { - // "$ref": "UpdateJobRequest" - // }, - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - -} - -// method id "jobs.jobs.search": +} type JobsSearchCall struct { s *Service @@ -7648,9 +6150,9 @@ type JobsSearchCall struct { header_ http.Header } -// Search: Searches for jobs using the provided SearchJobsRequest. This -// call constrains the visibility of jobs present in the database, and -// only returns jobs that the caller has permission to search against. +// Search: Searches for jobs using the provided SearchJobsRequest. This call +// constrains the visibility of jobs present in the database, and only returns +// jobs that the caller has permission to search against. func (r *JobsService) Search(searchjobsrequest *SearchJobsRequest) *JobsSearchCall { c := &JobsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.searchjobsrequest = searchjobsrequest @@ -7658,23 +6160,21 @@ func (r *JobsService) Search(searchjobsrequest *SearchJobsRequest) *JobsSearchCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *JobsSearchCall) Fields(s ...googleapi.Field) *JobsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *JobsSearchCall) Context(ctx context.Context) *JobsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *JobsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7683,18 +6183,12 @@ func (c *JobsSearchCall) Header() http.Header { } func (c *JobsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchjobsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs:search") @@ -7704,16 +6198,15 @@ func (c *JobsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.jobs.search" call. -// Exactly one of *SearchJobsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SearchJobsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SearchJobsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *JobsSearchCall) Do(opts ...googleapi.CallOption) (*SearchJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7721,17 +6214,17 @@ func (c *JobsSearchCall) Do(opts ...googleapi.CallOption) (*SearchJobsResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SearchJobsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7744,26 +6237,6 @@ func (c *JobsSearchCall) Do(opts ...googleapi.CallOption) (*SearchJobsResponse, return nil, err } return ret, nil - // { - // "description": "Searches for jobs using the provided SearchJobsRequest. This call constrains the visibility of jobs present in the database, and only returns jobs that the caller has permission to search against.", - // "flatPath": "v2/jobs:search", - // "httpMethod": "POST", - // "id": "jobs.jobs.search", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/jobs:search", - // "request": { - // "$ref": "SearchJobsRequest" - // }, - // "response": { - // "$ref": "SearchJobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - } // Pages invokes f for each page of results. @@ -7771,7 +6244,7 @@ func (c *JobsSearchCall) Do(opts ...googleapi.CallOption) (*SearchJobsResponse, // The provided context supersedes any context provided to the Context method. func (c *JobsSearchCall) Pages(ctx context.Context, f func(*SearchJobsResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.searchjobsrequest.PageToken = pt }(c.searchjobsrequest.PageToken) // reset paging to original point + defer func(pt string) { c.searchjobsrequest.PageToken = pt }(c.searchjobsrequest.PageToken) for { x, err := c.Do() if err != nil { @@ -7787,8 +6260,6 @@ func (c *JobsSearchCall) Pages(ctx context.Context, f func(*SearchJobsResponse) } } -// method id "jobs.jobs.searchForAlert": - type JobsSearchForAlertCall struct { s *Service searchjobsrequest *SearchJobsRequest @@ -7797,13 +6268,12 @@ type JobsSearchForAlertCall struct { header_ http.Header } -// SearchForAlert: Searches for jobs using the provided -// SearchJobsRequest. This API call is intended for the use case of -// targeting passive job seekers (for example, job seekers who have -// signed up to receive email alerts about potential job opportunities), -// and has different algorithmic adjustments that are targeted to -// passive job seekers. This call constrains the visibility of jobs -// present in the database, and only returns jobs the caller has +// SearchForAlert: Searches for jobs using the provided SearchJobsRequest. This +// API call is intended for the use case of targeting passive job seekers (for +// example, job seekers who have signed up to receive email alerts about +// potential job opportunities), and has different algorithmic adjustments that +// are targeted to passive job seekers. This call constrains the visibility of +// jobs present in the database, and only returns jobs the caller has // permission to search against. func (r *JobsService) SearchForAlert(searchjobsrequest *SearchJobsRequest) *JobsSearchForAlertCall { c := &JobsSearchForAlertCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -7812,23 +6282,21 @@ func (r *JobsService) SearchForAlert(searchjobsrequest *SearchJobsRequest) *Jobs } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *JobsSearchForAlertCall) Fields(s ...googleapi.Field) *JobsSearchForAlertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *JobsSearchForAlertCall) Context(ctx context.Context) *JobsSearchForAlertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *JobsSearchForAlertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7837,18 +6305,12 @@ func (c *JobsSearchForAlertCall) Header() http.Header { } func (c *JobsSearchForAlertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchjobsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs:searchForAlert") @@ -7858,16 +6320,15 @@ func (c *JobsSearchForAlertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.jobs.searchForAlert" call. -// Exactly one of *SearchJobsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SearchJobsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SearchJobsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *JobsSearchForAlertCall) Do(opts ...googleapi.CallOption) (*SearchJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7875,17 +6336,17 @@ func (c *JobsSearchForAlertCall) Do(opts ...googleapi.CallOption) (*SearchJobsRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SearchJobsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7898,26 +6359,6 @@ func (c *JobsSearchForAlertCall) Do(opts ...googleapi.CallOption) (*SearchJobsRe return nil, err } return ret, nil - // { - // "description": "Searches for jobs using the provided SearchJobsRequest. This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), and has different algorithmic adjustments that are targeted to passive job seekers. This call constrains the visibility of jobs present in the database, and only returns jobs the caller has permission to search against.", - // "flatPath": "v2/jobs:searchForAlert", - // "httpMethod": "POST", - // "id": "jobs.jobs.searchForAlert", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/jobs:searchForAlert", - // "request": { - // "$ref": "SearchJobsRequest" - // }, - // "response": { - // "$ref": "SearchJobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - } // Pages invokes f for each page of results. @@ -7925,7 +6366,7 @@ func (c *JobsSearchForAlertCall) Do(opts ...googleapi.CallOption) (*SearchJobsRe // The provided context supersedes any context provided to the Context method. func (c *JobsSearchForAlertCall) Pages(ctx context.Context, f func(*SearchJobsResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.searchjobsrequest.PageToken = pt }(c.searchjobsrequest.PageToken) // reset paging to original point + defer func(pt string) { c.searchjobsrequest.PageToken = pt }(c.searchjobsrequest.PageToken) for { x, err := c.Do() if err != nil { @@ -7941,8 +6382,6 @@ func (c *JobsSearchForAlertCall) Pages(ctx context.Context, f func(*SearchJobsRe } } -// method id "jobs.complete": - type V2CompleteCall struct { s *Service urlParams_ gensupport.URLParams @@ -7951,9 +6390,8 @@ type V2CompleteCall struct { header_ http.Header } -// Complete: Completes the specified prefix with job keyword -// suggestions. Intended for use by a job search auto-complete search -// box. +// Complete: Completes the specified prefix with job keyword suggestions. +// Intended for use by a job search auto-complete search box. func (r *V2Service) Complete() *V2CompleteCall { c := &V2CompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c @@ -7966,54 +6404,51 @@ func (c *V2CompleteCall) CompanyName(companyName string) *V2CompleteCall { return c } -// LanguageCode sets the optional parameter "languageCode": Required. -// The language of the query. This is the BCP-47 language code, such as -// "en-US" or "sr-Latn". For more information, see [Tags for Identifying -// Languages](https://tools.ietf.org/html/bcp47). For -// CompletionType.JOB_TITLE type, only open jobs with same language_code -// are returned. For CompletionType.COMPANY_NAME type, only companies -// having open jobs with same language_code are returned. For -// CompletionType.COMBINED type, only open jobs with same language_code -// or companies having open jobs with same language_code are returned. +// LanguageCode sets the optional parameter "languageCode": Required. The +// language of the query. This is the BCP-47 language code, such as "en-US" or +// "sr-Latn". For more information, see Tags for Identifying Languages +// (https://tools.ietf.org/html/bcp47). For CompletionType.JOB_TITLE type, only +// open jobs with same language_code are returned. For +// CompletionType.COMPANY_NAME type, only companies having open jobs with same +// language_code are returned. For CompletionType.COMBINED type, only open jobs +// with same language_code or companies having open jobs with same +// language_code are returned. func (c *V2CompleteCall) LanguageCode(languageCode string) *V2CompleteCall { c.urlParams_.Set("languageCode", languageCode) return c } -// PageSize sets the optional parameter "pageSize": Required. Completion -// result count. The maximum allowed page size is 10. +// PageSize sets the optional parameter "pageSize": Required. Completion result +// count. The maximum allowed page size is 10. func (c *V2CompleteCall) PageSize(pageSize int64) *V2CompleteCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// Query sets the optional parameter "query": Required. The query used -// to generate suggestions. +// Query sets the optional parameter "query": Required. The query used to +// generate suggestions. func (c *V2CompleteCall) Query(query string) *V2CompleteCall { c.urlParams_.Set("query", query) return c } -// Scope sets the optional parameter "scope": The scope of the -// completion. The defaults is CompletionScope.PUBLIC. +// Scope sets the optional parameter "scope": The scope of the completion. The +// defaults is CompletionScope.PUBLIC. // // Possible values: // // "COMPLETION_SCOPE_UNSPECIFIED" - Default value. -// "TENANT" - Suggestions are based only on the data provided by the +// "TENANT" - Suggestions are based only on the data provided by the client. +// "PUBLIC" - Suggestions are based on all jobs data in the system that's // -// client. -// -// "PUBLIC" - Suggestions are based on all jobs data in the system -// -// that's visible to the client +// visible to the client func (c *V2CompleteCall) Scope(scope string) *V2CompleteCall { c.urlParams_.Set("scope", scope) return c } -// Type sets the optional parameter "type": The completion topic. The -// default is CompletionType.COMBINED. +// Type sets the optional parameter "type": The completion topic. The default +// is CompletionType.COMBINED. // // Possible values: // @@ -8027,33 +6462,29 @@ func (c *V2CompleteCall) Type(type_ string) *V2CompleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V2CompleteCall) Fields(s ...googleapi.Field) *V2CompleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *V2CompleteCall) IfNoneMatch(entityTag string) *V2CompleteCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V2CompleteCall) Context(ctx context.Context) *V2CompleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V2CompleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8062,12 +6493,7 @@ func (c *V2CompleteCall) Header() http.Header { } func (c *V2CompleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20201123") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8081,16 +6507,15 @@ func (c *V2CompleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.complete" call. -// Exactly one of *CompleteQueryResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CompleteQueryResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CompleteQueryResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *V2CompleteCall) Do(opts ...googleapi.CallOption) (*CompleteQueryResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8098,17 +6523,17 @@ func (c *V2CompleteCall) Do(opts ...googleapi.CallOption) (*CompleteQueryRespons if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CompleteQueryResponse{ ServerResponse: googleapi.ServerResponse{ @@ -8121,75 +6546,4 @@ func (c *V2CompleteCall) Do(opts ...googleapi.CallOption) (*CompleteQueryRespons return nil, err } return ret, nil - // { - // "description": "Completes the specified prefix with job keyword suggestions. Intended for use by a job search auto-complete search box.", - // "flatPath": "v2:complete", - // "httpMethod": "GET", - // "id": "jobs.complete", - // "parameterOrder": [], - // "parameters": { - // "companyName": { - // "description": "Optional. If provided, restricts completion to the specified company.", - // "location": "query", - // "type": "string" - // }, - // "languageCode": { - // "description": "Required. The language of the query. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). For CompletionType.JOB_TITLE type, only open jobs with same language_code are returned. For CompletionType.COMPANY_NAME type, only companies having open jobs with same language_code are returned. For CompletionType.COMBINED type, only open jobs with same language_code or companies having open jobs with same language_code are returned.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Required. Completion result count. The maximum allowed page size is 10.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "query": { - // "description": "Required. The query used to generate suggestions.", - // "location": "query", - // "type": "string" - // }, - // "scope": { - // "description": "Optional. The scope of the completion. The defaults is CompletionScope.PUBLIC.", - // "enum": [ - // "COMPLETION_SCOPE_UNSPECIFIED", - // "TENANT", - // "PUBLIC" - // ], - // "enumDescriptions": [ - // "Default value.", - // "Suggestions are based only on the data provided by the client.", - // "Suggestions are based on all jobs data in the system that's visible to the client" - // ], - // "location": "query", - // "type": "string" - // }, - // "type": { - // "description": "Optional. The completion topic. The default is CompletionType.COMBINED.", - // "enum": [ - // "COMPLETION_TYPE_UNSPECIFIED", - // "JOB_TITLE", - // "COMPANY_NAME", - // "COMBINED" - // ], - // "enumDescriptions": [ - // "Default value.", - // "Only suggest job titles.", - // "Only suggest company names.", - // "Suggest both job titles and company names." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2:complete", - // "response": { - // "$ref": "CompleteQueryResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/jobs" - // ] - // } - } diff --git a/jobs/v3/jobs-gen.go b/jobs/v3/jobs-gen.go index ed287af79aa..360ad8306cd 100644 --- a/jobs/v3/jobs-gen.go +++ b/jobs/v3/jobs-gen.go @@ -3092,7 +3092,7 @@ func (c *ProjectsCompleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.complete" call. @@ -3199,7 +3199,7 @@ func (c *ProjectsClientEventsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.clientEvents.create" call. @@ -3302,7 +3302,7 @@ func (c *ProjectsCompaniesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.companies.create" call. @@ -3400,7 +3400,7 @@ func (c *ProjectsCompaniesDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.companies.delete" call. @@ -3509,7 +3509,7 @@ func (c *ProjectsCompaniesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.companies.get" call. @@ -3642,7 +3642,7 @@ func (c *ProjectsCompaniesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.companies.list" call. @@ -3770,7 +3770,7 @@ func (c *ProjectsCompaniesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.companies.patch" call. @@ -3873,7 +3873,7 @@ func (c *ProjectsJobsBatchDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.batchDelete" call. @@ -3977,7 +3977,7 @@ func (c *ProjectsJobsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.create" call. @@ -4075,7 +4075,7 @@ func (c *ProjectsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.delete" call. @@ -4185,7 +4185,7 @@ func (c *ProjectsJobsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.get" call. @@ -4357,7 +4357,7 @@ func (c *ProjectsJobsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.list" call. @@ -4486,7 +4486,7 @@ func (c *ProjectsJobsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.patch" call. @@ -4590,7 +4590,7 @@ func (c *ProjectsJobsSearchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.search" call. @@ -4720,7 +4720,7 @@ func (c *ProjectsJobsSearchForAlertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.searchForAlert" call. diff --git a/jobs/v3p1beta1/jobs-gen.go b/jobs/v3p1beta1/jobs-gen.go index a6b4b4dfcd3..11ab568ed17 100644 --- a/jobs/v3p1beta1/jobs-gen.go +++ b/jobs/v3p1beta1/jobs-gen.go @@ -3388,7 +3388,7 @@ func (c *ProjectsCompleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.complete" call. @@ -3495,7 +3495,7 @@ func (c *ProjectsClientEventsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.clientEvents.create" call. @@ -3598,7 +3598,7 @@ func (c *ProjectsCompaniesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.companies.create" call. @@ -3696,7 +3696,7 @@ func (c *ProjectsCompaniesDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.companies.delete" call. @@ -3805,7 +3805,7 @@ func (c *ProjectsCompaniesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.companies.get" call. @@ -3938,7 +3938,7 @@ func (c *ProjectsCompaniesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.companies.list" call. @@ -4066,7 +4066,7 @@ func (c *ProjectsCompaniesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.companies.patch" call. @@ -4169,7 +4169,7 @@ func (c *ProjectsJobsBatchDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.batchDelete" call. @@ -4273,7 +4273,7 @@ func (c *ProjectsJobsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.create" call. @@ -4371,7 +4371,7 @@ func (c *ProjectsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.delete" call. @@ -4481,7 +4481,7 @@ func (c *ProjectsJobsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.get" call. @@ -4653,7 +4653,7 @@ func (c *ProjectsJobsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.list" call. @@ -4782,7 +4782,7 @@ func (c *ProjectsJobsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.patch" call. @@ -4886,7 +4886,7 @@ func (c *ProjectsJobsSearchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.search" call. @@ -5016,7 +5016,7 @@ func (c *ProjectsJobsSearchForAlertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.jobs.searchForAlert" call. @@ -5147,7 +5147,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.operations.get" call. diff --git a/jobs/v4/jobs-gen.go b/jobs/v4/jobs-gen.go index 1a7fc151e1a..25c1b1c9ca8 100644 --- a/jobs/v4/jobs-gen.go +++ b/jobs/v4/jobs-gen.go @@ -3036,7 +3036,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.operations.get" call. @@ -3220,7 +3220,7 @@ func (c *ProjectsTenantsCompleteQueryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "tenant": c.tenant, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.completeQuery" call. @@ -3323,7 +3323,7 @@ func (c *ProjectsTenantsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.create" call. @@ -3420,7 +3420,7 @@ func (c *ProjectsTenantsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.delete" call. @@ -3529,7 +3529,7 @@ func (c *ProjectsTenantsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.get" call. @@ -3652,7 +3652,7 @@ func (c *ProjectsTenantsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.list" call. @@ -3788,7 +3788,7 @@ func (c *ProjectsTenantsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.patch" call. @@ -3896,7 +3896,7 @@ func (c *ProjectsTenantsClientEventsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.clientEvents.create" call. @@ -3999,7 +3999,7 @@ func (c *ProjectsTenantsCompaniesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.companies.create" call. @@ -4097,7 +4097,7 @@ func (c *ProjectsTenantsCompaniesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.companies.delete" call. @@ -4206,7 +4206,7 @@ func (c *ProjectsTenantsCompaniesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.companies.get" call. @@ -4339,7 +4339,7 @@ func (c *ProjectsTenantsCompaniesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.companies.list" call. @@ -4475,7 +4475,7 @@ func (c *ProjectsTenantsCompaniesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.companies.patch" call. @@ -4578,7 +4578,7 @@ func (c *ProjectsTenantsJobsBatchCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.jobs.batchCreate" call. @@ -4682,7 +4682,7 @@ func (c *ProjectsTenantsJobsBatchDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.jobs.batchDelete" call. @@ -4785,7 +4785,7 @@ func (c *ProjectsTenantsJobsBatchUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.jobs.batchUpdate" call. @@ -4889,7 +4889,7 @@ func (c *ProjectsTenantsJobsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.jobs.create" call. @@ -4987,7 +4987,7 @@ func (c *ProjectsTenantsJobsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.jobs.delete" call. @@ -5097,7 +5097,7 @@ func (c *ProjectsTenantsJobsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.jobs.get" call. @@ -5269,7 +5269,7 @@ func (c *ProjectsTenantsJobsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.jobs.list" call. @@ -5408,7 +5408,7 @@ func (c *ProjectsTenantsJobsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.jobs.patch" call. @@ -5513,7 +5513,7 @@ func (c *ProjectsTenantsJobsSearchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.jobs.search" call. @@ -5644,7 +5644,7 @@ func (c *ProjectsTenantsJobsSearchForAlertCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "jobs.projects.tenants.jobs.searchForAlert" call. diff --git a/keep/v1/keep-gen.go b/keep/v1/keep-gen.go index ec4001a53d3..031facb68bb 100644 --- a/keep/v1/keep-gen.go +++ b/keep/v1/keep-gen.go @@ -680,7 +680,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -790,7 +790,7 @@ func (c *NotesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "keep.notes.create" call. @@ -887,7 +887,7 @@ func (c *NotesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "keep.notes.delete" call. @@ -994,7 +994,7 @@ func (c *NotesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "keep.notes.get" call. @@ -1125,7 +1125,7 @@ func (c *NotesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "keep.notes.list" call. @@ -1252,7 +1252,7 @@ func (c *NotesPermissionsBatchCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "keep.notes.permissions.batchCreate" call. @@ -1361,7 +1361,7 @@ func (c *NotesPermissionsBatchDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "keep.notes.permissions.batchDelete" call. diff --git a/kgsearch/v1/kgsearch-gen.go b/kgsearch/v1/kgsearch-gen.go index 482ab150476..a96e59065af 100644 --- a/kgsearch/v1/kgsearch-gen.go +++ b/kgsearch/v1/kgsearch-gen.go @@ -291,7 +291,7 @@ func (c *EntitiesSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "kgsearch.entities.search" call. diff --git a/kmsinventory/v1/kmsinventory-gen.go b/kmsinventory/v1/kmsinventory-gen.go index fb9c82de902..6f3cd988e43 100644 --- a/kmsinventory/v1/kmsinventory-gen.go +++ b/kmsinventory/v1/kmsinventory-gen.go @@ -1036,7 +1036,7 @@ func (c *OrganizationsProtectedResourcesSearchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "scope": c.scope, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "kmsinventory.organizations.protectedResources.search" call. @@ -1184,7 +1184,7 @@ func (c *ProjectsCryptoKeysListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "kmsinventory.projects.cryptoKeys.list" call. @@ -1317,7 +1317,7 @@ func (c *ProjectsLocationsKeyRingsCryptoKeysGetProtectedResourcesSummaryCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "kmsinventory.projects.locations.keyRings.cryptoKeys.getProtectedResourcesSummary" call. diff --git a/language/v1/language-api.json b/language/v1/language-api.json index af6bc627dc9..856140cf5a6 100644 --- a/language/v1/language-api.json +++ b/language/v1/language-api.json @@ -246,7 +246,7 @@ } } }, - "revision": "20240220", + "revision": "20240908", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -756,7 +756,10 @@ "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -1042,6 +1045,9 @@ "", "", "", + "", + "", + "", "" ], "type": "string" @@ -1473,7 +1479,10 @@ "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -1759,6 +1768,9 @@ "", "", "", + "", + "", + "", "" ], "type": "string" @@ -2149,7 +2161,10 @@ "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -2435,6 +2450,9 @@ "", "", "", + "", + "", + "", "" ], "type": "string" @@ -3616,6 +3634,7 @@ "NVIDIA_A100_80GB", "NVIDIA_L4", "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", "TPU_V2", "TPU_V3", "TPU_V4_POD", @@ -3632,6 +3651,7 @@ "Nvidia A100 80GB GPU.", "Nvidia L4 GPU.", "Nvidia H100 80Gb GPU.", + "Nvidia H100 80Gb GPU.", "TPU v2 (JellyFish).", "TPU v3 (DragonFish).", "TPU_v4 (PufferFish).", diff --git a/language/v1/language-gen.go b/language/v1/language-gen.go index 54235e22bb6..8790f9c1eef 100644 --- a/language/v1/language-gen.go +++ b/language/v1/language-gen.go @@ -884,7 +884,10 @@ type CpuMetric struct { // "A2_ULTRAGPU_2G" // "A2_ULTRAGPU_4G" // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_2G" + // "A3_HIGHGPU_4G" // "A3_HIGHGPU_8G" + // "A3_MEGAGPU_8G" // "E2_STANDARD_2" // "E2_STANDARD_4" // "E2_STANDARD_8" @@ -1398,7 +1401,10 @@ type GpuMetric struct { // "A2_ULTRAGPU_2G" // "A2_ULTRAGPU_4G" // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_2G" + // "A3_HIGHGPU_4G" // "A3_HIGHGPU_8G" + // "A3_MEGAGPU_8G" // "E2_STANDARD_2" // "E2_STANDARD_4" // "E2_STANDARD_8" @@ -1828,7 +1834,10 @@ type RamMetric struct { // "A2_ULTRAGPU_2G" // "A2_ULTRAGPU_4G" // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_2G" + // "A3_HIGHGPU_4G" // "A3_HIGHGPU_8G" + // "A3_MEGAGPU_8G" // "E2_STANDARD_2" // "E2_STANDARD_4" // "E2_STANDARD_8" @@ -3471,6 +3480,7 @@ type XPSImageModelServingSpecModelThroughputEstimation struct { // "NVIDIA_A100_80GB" - Nvidia A100 80GB GPU. // "NVIDIA_L4" - Nvidia L4 GPU. // "NVIDIA_H100_80GB" - Nvidia H100 80Gb GPU. + // "NVIDIA_H100_MEGA_80GB" - Nvidia H100 80Gb GPU. // "TPU_V2" - TPU v2 (JellyFish). // "TPU_V3" - TPU v3 (DragonFish). // "TPU_V4_POD" - TPU_v4 (PufferFish). @@ -6276,7 +6286,7 @@ func (c *DocumentsAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeEntities" call. @@ -6372,7 +6382,7 @@ func (c *DocumentsAnalyzeEntitySentimentCall) doRequest(alt string) (*http.Respo return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeEntitySentiment" call. @@ -6467,7 +6477,7 @@ func (c *DocumentsAnalyzeSentimentCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeSentiment" call. @@ -6564,7 +6574,7 @@ func (c *DocumentsAnalyzeSyntaxCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeSyntax" call. @@ -6660,7 +6670,7 @@ func (c *DocumentsAnnotateTextCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.annotateText" call. @@ -6755,7 +6765,7 @@ func (c *DocumentsClassifyTextCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.classifyText" call. @@ -6850,7 +6860,7 @@ func (c *DocumentsModerateTextCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.moderateText" call. diff --git a/language/v1beta1/language-gen.go b/language/v1beta1/language-gen.go index 51a2636af33..ac0457255cb 100644 --- a/language/v1beta1/language-gen.go +++ b/language/v1beta1/language-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -10,6 +10,17 @@ // // For product documentation, see: https://cloud.google.com/natural-language/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -19,28 +30,31 @@ // ctx := context.Background() // languageService, err := language.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // languageService, err := language.NewService(ctx, option.WithScopes(language.CloudPlatformScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // languageService, err := language.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // languageService, err := language.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package language // import "google.golang.org/api/language/v1beta1" import ( @@ -77,21 +91,22 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "language:v1beta1" const apiName = "language" const apiVersion = "v1beta1" const basePath = "https://language.googleapis.com/" +const basePathTemplate = "https://language.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://language.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // Apply machine learning models to reveal the structure and meaning of - // text + // Apply machine learning models to reveal the structure and meaning of text CloudLanguageScope = "https://www.googleapis.com/auth/cloud-language" - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -104,7 +119,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -161,89 +178,72 @@ type DocumentsService struct { type AnalyzeEntitiesRequest struct { // Document: Input document. Document *Document `json:"document,omitempty"` - // EncodingType: The encoding type used by the API to calculate offsets. // // Possible values: // "NONE" - If `EncodingType` is not specified, encoding-dependent // information (such as `begin_offset`) will be set at `-1`. // "UTF8" - Encoding-dependent information (such as `begin_offset`) is - // calculated based on the UTF-8 encoding of the input. C++ and Go are - // examples of languages that use this encoding natively. - // "UTF16" - Encoding-dependent information (such as `begin_offset`) - // is calculated based on the UTF-16 encoding of the input. Java and - // Javascript are examples of languages that use this encoding natively. - // "UTF32" - Encoding-dependent information (such as `begin_offset`) - // is calculated based on the UTF-32 encoding of the input. Python is an - // example of a language that uses this encoding natively. + // calculated based on the UTF-8 encoding of the input. C++ and Go are examples + // of languages that use this encoding natively. + // "UTF16" - Encoding-dependent information (such as `begin_offset`) is + // calculated based on the UTF-16 encoding of the input. Java and Javascript + // are examples of languages that use this encoding natively. + // "UTF32" - Encoding-dependent information (such as `begin_offset`) is + // calculated based on the UTF-32 encoding of the input. Python is an example + // of a language that uses this encoding natively. EncodingType string `json:"encodingType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Document") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Document") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Document") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyzeEntitiesRequest) MarshalJSON() ([]byte, error) { +func (s AnalyzeEntitiesRequest) MarshalJSON() ([]byte, error) { type NoMethod AnalyzeEntitiesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnalyzeEntitiesResponse: The entity analysis response message. type AnalyzeEntitiesResponse struct { // Entities: The recognized entities in the input document. Entities []*Entity `json:"entities,omitempty"` - - // Language: The language of the text, which will be the same as the - // language specified in the request or, if not specified, the - // automatically-detected language. See Document.language field for more - // details. + // Language: The language of the text, which will be the same as the language + // specified in the request or, if not specified, the automatically-detected + // language. See Document.language field for more details. Language string `json:"language,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Entities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyzeEntitiesResponse) MarshalJSON() ([]byte, error) { +func (s AnalyzeEntitiesResponse) MarshalJSON() ([]byte, error) { type NoMethod AnalyzeEntitiesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnalyzeSentimentRequest: The sentiment analysis request message. type AnalyzeSentimentRequest struct { // Document: Input document. Document *Document `json:"document,omitempty"` - // EncodingType: The encoding type used by the API to calculate sentence // offsets for the sentence sentiment. // @@ -251,281 +251,223 @@ type AnalyzeSentimentRequest struct { // "NONE" - If `EncodingType` is not specified, encoding-dependent // information (such as `begin_offset`) will be set at `-1`. // "UTF8" - Encoding-dependent information (such as `begin_offset`) is - // calculated based on the UTF-8 encoding of the input. C++ and Go are - // examples of languages that use this encoding natively. - // "UTF16" - Encoding-dependent information (such as `begin_offset`) - // is calculated based on the UTF-16 encoding of the input. Java and - // Javascript are examples of languages that use this encoding natively. - // "UTF32" - Encoding-dependent information (such as `begin_offset`) - // is calculated based on the UTF-32 encoding of the input. Python is an - // example of a language that uses this encoding natively. + // calculated based on the UTF-8 encoding of the input. C++ and Go are examples + // of languages that use this encoding natively. + // "UTF16" - Encoding-dependent information (such as `begin_offset`) is + // calculated based on the UTF-16 encoding of the input. Java and Javascript + // are examples of languages that use this encoding natively. + // "UTF32" - Encoding-dependent information (such as `begin_offset`) is + // calculated based on the UTF-32 encoding of the input. Python is an example + // of a language that uses this encoding natively. EncodingType string `json:"encodingType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Document") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Document") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Document") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyzeSentimentRequest) MarshalJSON() ([]byte, error) { +func (s AnalyzeSentimentRequest) MarshalJSON() ([]byte, error) { type NoMethod AnalyzeSentimentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnalyzeSentimentResponse: The sentiment analysis response message. type AnalyzeSentimentResponse struct { // DocumentSentiment: The overall sentiment of the input document. DocumentSentiment *Sentiment `json:"documentSentiment,omitempty"` - - // Language: The language of the text, which will be the same as the - // language specified in the request or, if not specified, the - // automatically-detected language. See Document.language field for more - // details. + // Language: The language of the text, which will be the same as the language + // specified in the request or, if not specified, the automatically-detected + // language. See Document.language field for more details. Language string `json:"language,omitempty"` - // Sentences: The sentiment for all the sentences in the document. Sentences []*Sentence `json:"sentences,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DocumentSentiment") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DocumentSentiment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DocumentSentiment") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DocumentSentiment") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyzeSentimentResponse) MarshalJSON() ([]byte, error) { +func (s AnalyzeSentimentResponse) MarshalJSON() ([]byte, error) { type NoMethod AnalyzeSentimentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnalyzeSyntaxRequest: The syntax analysis request message. type AnalyzeSyntaxRequest struct { // Document: Input document. Document *Document `json:"document,omitempty"` - // EncodingType: The encoding type used by the API to calculate offsets. // // Possible values: // "NONE" - If `EncodingType` is not specified, encoding-dependent // information (such as `begin_offset`) will be set at `-1`. // "UTF8" - Encoding-dependent information (such as `begin_offset`) is - // calculated based on the UTF-8 encoding of the input. C++ and Go are - // examples of languages that use this encoding natively. - // "UTF16" - Encoding-dependent information (such as `begin_offset`) - // is calculated based on the UTF-16 encoding of the input. Java and - // Javascript are examples of languages that use this encoding natively. - // "UTF32" - Encoding-dependent information (such as `begin_offset`) - // is calculated based on the UTF-32 encoding of the input. Python is an - // example of a language that uses this encoding natively. + // calculated based on the UTF-8 encoding of the input. C++ and Go are examples + // of languages that use this encoding natively. + // "UTF16" - Encoding-dependent information (such as `begin_offset`) is + // calculated based on the UTF-16 encoding of the input. Java and Javascript + // are examples of languages that use this encoding natively. + // "UTF32" - Encoding-dependent information (such as `begin_offset`) is + // calculated based on the UTF-32 encoding of the input. Python is an example + // of a language that uses this encoding natively. EncodingType string `json:"encodingType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Document") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Document") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Document") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyzeSyntaxRequest) MarshalJSON() ([]byte, error) { +func (s AnalyzeSyntaxRequest) MarshalJSON() ([]byte, error) { type NoMethod AnalyzeSyntaxRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnalyzeSyntaxResponse: The syntax analysis response message. type AnalyzeSyntaxResponse struct { - // Language: The language of the text, which will be the same as the - // language specified in the request or, if not specified, the - // automatically-detected language. See Document.language field for more - // details. + // Language: The language of the text, which will be the same as the language + // specified in the request or, if not specified, the automatically-detected + // language. See Document.language field for more details. Language string `json:"language,omitempty"` - // Sentences: Sentences in the input document. Sentences []*Sentence `json:"sentences,omitempty"` - // Tokens: Tokens, along with their syntactic information, in the input // document. Tokens []*Token `json:"tokens,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Language") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Language") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Language") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyzeSyntaxResponse) MarshalJSON() ([]byte, error) { +func (s AnalyzeSyntaxResponse) MarshalJSON() ([]byte, error) { type NoMethod AnalyzeSyntaxResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AnnotateTextRequest: The request message for the text annotation API, -// which can perform multiple analysis types (sentiment, entities, and -// syntax) in one call. +// AnnotateTextRequest: The request message for the text annotation API, which +// can perform multiple analysis types (sentiment, entities, and syntax) in one +// call. type AnnotateTextRequest struct { // Document: Input document. Document *Document `json:"document,omitempty"` - // EncodingType: The encoding type used by the API to calculate offsets. // // Possible values: // "NONE" - If `EncodingType` is not specified, encoding-dependent // information (such as `begin_offset`) will be set at `-1`. // "UTF8" - Encoding-dependent information (such as `begin_offset`) is - // calculated based on the UTF-8 encoding of the input. C++ and Go are - // examples of languages that use this encoding natively. - // "UTF16" - Encoding-dependent information (such as `begin_offset`) - // is calculated based on the UTF-16 encoding of the input. Java and - // Javascript are examples of languages that use this encoding natively. - // "UTF32" - Encoding-dependent information (such as `begin_offset`) - // is calculated based on the UTF-32 encoding of the input. Python is an - // example of a language that uses this encoding natively. + // calculated based on the UTF-8 encoding of the input. C++ and Go are examples + // of languages that use this encoding natively. + // "UTF16" - Encoding-dependent information (such as `begin_offset`) is + // calculated based on the UTF-16 encoding of the input. Java and Javascript + // are examples of languages that use this encoding natively. + // "UTF32" - Encoding-dependent information (such as `begin_offset`) is + // calculated based on the UTF-32 encoding of the input. Python is an example + // of a language that uses this encoding natively. EncodingType string `json:"encodingType,omitempty"` - // Features: The enabled features. Features *Features `json:"features,omitempty"` - // ForceSendFields is a list of field names (e.g. "Document") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Document") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Document") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnnotateTextRequest) MarshalJSON() ([]byte, error) { +func (s AnnotateTextRequest) MarshalJSON() ([]byte, error) { type NoMethod AnnotateTextRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnnotateTextResponse: The text annotations response message. type AnnotateTextResponse struct { - // DocumentSentiment: The overall sentiment for the document. Populated - // if the user enables - // AnnotateTextRequest.Features.extract_document_sentiment. + // DocumentSentiment: The overall sentiment for the document. Populated if the + // user enables AnnotateTextRequest.Features.extract_document_sentiment. DocumentSentiment *Sentiment `json:"documentSentiment,omitempty"` - - // Entities: Entities, along with their semantic information, in the - // input document. Populated if the user enables + // Entities: Entities, along with their semantic information, in the input + // document. Populated if the user enables // AnnotateTextRequest.Features.extract_entities. Entities []*Entity `json:"entities,omitempty"` - - // Language: The language of the text, which will be the same as the - // language specified in the request or, if not specified, the - // automatically-detected language. See Document.language field for more - // details. + // Language: The language of the text, which will be the same as the language + // specified in the request or, if not specified, the automatically-detected + // language. See Document.language field for more details. Language string `json:"language,omitempty"` - - // Sentences: Sentences in the input document. Populated if the user - // enables AnnotateTextRequest.Features.extract_syntax. + // Sentences: Sentences in the input document. Populated if the user enables + // AnnotateTextRequest.Features.extract_syntax. Sentences []*Sentence `json:"sentences,omitempty"` - // Tokens: Tokens, along with their syntactic information, in the input // document. Populated if the user enables // AnnotateTextRequest.Features.extract_syntax. Tokens []*Token `json:"tokens,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "DocumentSentiment") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DocumentSentiment") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DocumentSentiment") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DocumentSentiment") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnnotateTextResponse) MarshalJSON() ([]byte, error) { +func (s AnnotateTextResponse) MarshalJSON() ([]byte, error) { type NoMethod AnnotateTextResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DependencyEdge: Represents dependency parse tree information for a -// token. +// DependencyEdge: Represents dependency parse tree information for a token. type DependencyEdge struct { - // HeadTokenIndex: Represents the head of this token in the dependency - // tree. This is the index of the token which has an arc going to this - // token. The index is the position of the token in the array of tokens - // returned by the API method. If this token is a root token, then the - // `head_token_index` is its own index. + // HeadTokenIndex: Represents the head of this token in the dependency tree. + // This is the index of the token which has an arc going to this token. The + // index is the position of the token in the array of tokens returned by the + // API method. If this token is a root token, then the `head_token_index` is + // its own index. HeadTokenIndex int64 `json:"headTokenIndex,omitempty"` - // Label: The parse label for the token. // // Possible values: @@ -588,8 +530,8 @@ type DependencyEdge struct { // "SUFF" - Suffix // "TMOD" - Temporal modifier // "TOPIC" - Topic marker - // "VMOD" - Clause headed by an infinite form of the verb that - // modifies a noun + // "VMOD" - Clause headed by an infinite form of the verb that modifies a + // noun // "VOCATIVE" - Vocative // "XCOMP" - Open clausal complement // "SUFFIX" - Name suffix @@ -606,8 +548,7 @@ type DependencyEdge struct { // "NOMCSUBJPASS" - Nominalized clausal passive // "NUMC" - Compound of numeric modifier // "COP" - Copula - // "DISLOCATED" - Dislocated relation (for fronted/topicalized - // elements) + // "DISLOCATED" - Dislocated relation (for fronted/topicalized elements) // "ASP" - Aspect marker // "GMOD" - Genitive modifier // "GOBJ" - Genitive object @@ -615,109 +556,85 @@ type DependencyEdge struct { // "MES" - Measure // "NCOMP" - Nominal complement of a noun Label string `json:"label,omitempty"` - // ForceSendFields is a list of field names (e.g. "HeadTokenIndex") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HeadTokenIndex") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "HeadTokenIndex") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DependencyEdge) MarshalJSON() ([]byte, error) { +func (s DependencyEdge) MarshalJSON() ([]byte, error) { type NoMethod DependencyEdge - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Document: Represents the input to API methods. type Document struct { - // Content: The content of the input in string format. Cloud audit - // logging exempt since it is based on user data. + // Content: The content of the input in string format. Cloud audit logging + // exempt since it is based on user data. Content string `json:"content,omitempty"` - // GcsContentUri: The Google Cloud Storage URI where the file content is - // located. This URI must be of the form: gs://bucket_name/object_name. - // For more details, see - // https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud - // Storage object versioning is not supported. + // located. This URI must be of the form: gs://bucket_name/object_name. For + // more details, see https://cloud.google.com/storage/docs/reference-uris. + // NOTE: Cloud Storage object versioning is not supported. GcsContentUri string `json:"gcsContentUri,omitempty"` - - // Language: The language of the document (if not specified, the - // language is automatically detected). Both ISO and BCP-47 language - // codes are accepted. Language Support - // (https://cloud.google.com/natural-language/docs/languages) lists - // currently supported languages for each API method. If the language - // (either specified by the caller or automatically detected) is not - // supported by the called API method, an `INVALID_ARGUMENT` error is - // returned. + // Language: The language of the document (if not specified, the language is + // automatically detected). Both ISO and BCP-47 language codes are accepted. + // Language Support (https://cloud.google.com/natural-language/docs/languages) + // lists currently supported languages for each API method. If the language + // (either specified by the caller or automatically detected) is not supported + // by the called API method, an `INVALID_ARGUMENT` error is returned. Language string `json:"language,omitempty"` - - // Type: Required. If the type is not set or is `TYPE_UNSPECIFIED`, - // returns an `INVALID_ARGUMENT` error. + // Type: Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an + // `INVALID_ARGUMENT` error. // // Possible values: // "TYPE_UNSPECIFIED" - The content type is not specified. // "PLAIN_TEXT" - Plain text // "HTML" - HTML Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Document) MarshalJSON() ([]byte, error) { +func (s Document) MarshalJSON() ([]byte, error) { type NoMethod Document - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Entity: Represents a phrase in the text that is a known entity, such -// as a person, an organization, or location. The API associates -// information, such as salience and mentions, with entities. +// Entity: Represents a phrase in the text that is a known entity, such as a +// person, an organization, or location. The API associates information, such +// as salience and mentions, with entities. type Entity struct { // Mentions: The mentions of this entity in the input document. The API // currently supports proper noun mentions. Mentions []*EntityMention `json:"mentions,omitempty"` - - // Metadata: Metadata associated with the entity. Currently, Wikipedia - // URLs and Knowledge Graph MIDs are provided, if available. The - // associated keys are "wikipedia_url" and "mid", respectively. + // Metadata: Metadata associated with the entity. Currently, Wikipedia URLs and + // Knowledge Graph MIDs are provided, if available. The associated keys are + // "wikipedia_url" and "mid", respectively. Metadata map[string]string `json:"metadata,omitempty"` - // Name: The representative name for the entity. Name string `json:"name,omitempty"` - - // Salience: The salience score associated with the entity in the [0, - // 1.0] range. The salience score for an entity provides information - // about the importance or centrality of that entity to the entire - // document text. Scores closer to 0 are less salient, while scores - // closer to 1.0 are highly salient. + // Salience: The salience score associated with the entity in the [0, 1.0] + // range. The salience score for an entity provides information about the + // importance or centrality of that entity to the entire document text. Scores + // closer to 0 are less salient, while scores closer to 1.0 are highly salient. Salience float64 `json:"salience,omitempty"` - // Type: The entity type. // // Possible values: @@ -730,28 +647,22 @@ type Entity struct { // "CONSUMER_GOOD" - Consumer goods // "OTHER" - Other types Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Mentions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Mentions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Mentions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Entity) MarshalJSON() ([]byte, error) { +func (s Entity) MarshalJSON() ([]byte, error) { type NoMethod Entity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Entity) UnmarshalJSON(data []byte) error { @@ -768,12 +679,11 @@ func (s *Entity) UnmarshalJSON(data []byte) error { return nil } -// EntityMention: Represents a mention for an entity in the text. -// Currently, proper noun mentions are supported. +// EntityMention: Represents a mention for an entity in the text. Currently, +// proper noun mentions are supported. type EntityMention struct { // Text: The mention text. Text *TextSpan `json:"text,omitempty"` - // Type: The type of the entity mention. // // Possible values: @@ -781,66 +691,50 @@ type EntityMention struct { // "PROPER" - Proper name // "COMMON" - Common noun (or noun compound) Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Text") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Text") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Text") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EntityMention) MarshalJSON() ([]byte, error) { +func (s EntityMention) MarshalJSON() ([]byte, error) { type NoMethod EntityMention - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Features: All available features for sentiment, syntax, and semantic -// analysis. Setting each one to true will enable that specific analysis -// for the input. +// analysis. Setting each one to true will enable that specific analysis for +// the input. type Features struct { // ExtractDocumentSentiment: Extract document-level sentiment. ExtractDocumentSentiment bool `json:"extractDocumentSentiment,omitempty"` - // ExtractEntities: Extract entities. ExtractEntities bool `json:"extractEntities,omitempty"` - // ExtractSyntax: Extract syntax information. ExtractSyntax bool `json:"extractSyntax,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ExtractDocumentSentiment") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ExtractDocumentSentiment") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExtractDocumentSentiment") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExtractDocumentSentiment") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Features) MarshalJSON() ([]byte, error) { +func (s Features) MarshalJSON() ([]byte, error) { type NoMethod Features - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PartOfSpeech: Represents part of speech information for a token. @@ -848,18 +742,17 @@ type PartOfSpeech struct { // Aspect: The grammatical aspect. // // Possible values: - // "ASPECT_UNKNOWN" - Aspect is not applicable in the analyzed - // language or is not predicted. + // "ASPECT_UNKNOWN" - Aspect is not applicable in the analyzed language or is + // not predicted. // "PERFECTIVE" - Perfective // "IMPERFECTIVE" - Imperfective // "PROGRESSIVE" - Progressive Aspect string `json:"aspect,omitempty"` - // Case: The grammatical case. // // Possible values: - // "CASE_UNKNOWN" - Case is not applicable in the analyzed language or - // is not predicted. + // "CASE_UNKNOWN" - Case is not applicable in the analyzed language or is not + // predicted. // "ACCUSATIVE" - Accusative // "ADVERBIAL" - Adverbial // "COMPLEMENTIVE" - Complementive @@ -875,12 +768,11 @@ type PartOfSpeech struct { // "RELATIVE_CASE" - Relative // "VOCATIVE" - Vocative Case string `json:"case,omitempty"` - // Form: The grammatical form. // // Possible values: - // "FORM_UNKNOWN" - Form is not applicable in the analyzed language or - // is not predicted. + // "FORM_UNKNOWN" - Form is not applicable in the analyzed language or is not + // predicted. // "ADNOMIAL" - Adnomial // "AUXILIARY" - Auxiliary // "COMPLEMENTIZER" - Complementizer @@ -893,22 +785,20 @@ type PartOfSpeech struct { // "ORDER" - Order form // "SPECIFIC" - Specific form Form string `json:"form,omitempty"` - // Gender: The grammatical gender. // // Possible values: - // "GENDER_UNKNOWN" - Gender is not applicable in the analyzed - // language or is not predicted. + // "GENDER_UNKNOWN" - Gender is not applicable in the analyzed language or is + // not predicted. // "FEMININE" - Feminine // "MASCULINE" - Masculine // "NEUTER" - Neuter Gender string `json:"gender,omitempty"` - // Mood: The grammatical mood. // // Possible values: - // "MOOD_UNKNOWN" - Mood is not applicable in the analyzed language or - // is not predicted. + // "MOOD_UNKNOWN" - Mood is not applicable in the analyzed language or is not + // predicted. // "CONDITIONAL_MOOD" - Conditional // "IMPERATIVE" - Imperative // "INDICATIVE" - Indicative @@ -916,46 +806,41 @@ type PartOfSpeech struct { // "JUSSIVE" - Jussive // "SUBJUNCTIVE" - Subjunctive Mood string `json:"mood,omitempty"` - // Number: The grammatical number. // // Possible values: - // "NUMBER_UNKNOWN" - Number is not applicable in the analyzed - // language or is not predicted. + // "NUMBER_UNKNOWN" - Number is not applicable in the analyzed language or is + // not predicted. // "SINGULAR" - Singular // "PLURAL" - Plural // "DUAL" - Dual Number string `json:"number,omitempty"` - // Person: The grammatical person. // // Possible values: - // "PERSON_UNKNOWN" - Person is not applicable in the analyzed - // language or is not predicted. + // "PERSON_UNKNOWN" - Person is not applicable in the analyzed language or is + // not predicted. // "FIRST" - First // "SECOND" - Second // "THIRD" - Third // "REFLEXIVE_PERSON" - Reflexive Person string `json:"person,omitempty"` - // Proper: The grammatical properness. // // Possible values: - // "PROPER_UNKNOWN" - Proper is not applicable in the analyzed - // language or is not predicted. + // "PROPER_UNKNOWN" - Proper is not applicable in the analyzed language or is + // not predicted. // "PROPER" - Proper // "NOT_PROPER" - Not proper Proper string `json:"proper,omitempty"` - // Reciprocity: The grammatical reciprocity. // // Possible values: - // "RECIPROCITY_UNKNOWN" - Reciprocity is not applicable in the - // analyzed language or is not predicted. + // "RECIPROCITY_UNKNOWN" - Reciprocity is not applicable in the analyzed + // language or is not predicted. // "RECIPROCAL" - Reciprocal // "NON_RECIPROCAL" - Non-reciprocal Reciprocity string `json:"reciprocity,omitempty"` - // Tag: The part of speech tag. // // Possible values: @@ -974,12 +859,11 @@ type PartOfSpeech struct { // "X" - Other: foreign words, typos, abbreviations // "AFFIX" - Affix Tag string `json:"tag,omitempty"` - // Tense: The grammatical tense. // // Possible values: - // "TENSE_UNKNOWN" - Tense is not applicable in the analyzed language - // or is not predicted. + // "TENSE_UNKNOWN" - Tense is not applicable in the analyzed language or is + // not predicted. // "CONDITIONAL_TENSE" - Conditional // "FUTURE" - Future // "PAST" - Past @@ -987,111 +871,89 @@ type PartOfSpeech struct { // "IMPERFECT" - Imperfect // "PLUPERFECT" - Pluperfect Tense string `json:"tense,omitempty"` - // Voice: The grammatical voice. // // Possible values: - // "VOICE_UNKNOWN" - Voice is not applicable in the analyzed language - // or is not predicted. + // "VOICE_UNKNOWN" - Voice is not applicable in the analyzed language or is + // not predicted. // "ACTIVE" - Active // "CAUSATIVE" - Causative // "PASSIVE" - Passive Voice string `json:"voice,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Aspect") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Aspect") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Aspect") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PartOfSpeech) MarshalJSON() ([]byte, error) { +func (s PartOfSpeech) MarshalJSON() ([]byte, error) { type NoMethod PartOfSpeech - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Sentence: Represents a sentence in the input document. type Sentence struct { // Sentiment: For calls to AnalyzeSentiment or if - // AnnotateTextRequest.Features.extract_document_sentiment is set to - // true, this field will contain the sentiment for the sentence. + // AnnotateTextRequest.Features.extract_document_sentiment is set to true, this + // field will contain the sentiment for the sentence. Sentiment *Sentiment `json:"sentiment,omitempty"` - // Text: The sentence text. Text *TextSpan `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Sentiment") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Sentiment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Sentiment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Sentence) MarshalJSON() ([]byte, error) { +func (s Sentence) MarshalJSON() ([]byte, error) { type NoMethod Sentence - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Sentiment: Represents the feeling associated with the entire text or // entities in the text. type Sentiment struct { - // Magnitude: A non-negative number in the [0, +inf) range, which - // represents the absolute magnitude of sentiment regardless of score - // (positive or negative). + // Magnitude: A non-negative number in the [0, +inf) range, which represents + // the absolute magnitude of sentiment regardless of score (positive or + // negative). Magnitude float64 `json:"magnitude,omitempty"` - - // Polarity: DEPRECATED FIELD - This field is being deprecated in favor - // of score. Please refer to our documentation at + // Polarity: DEPRECATED FIELD - This field is being deprecated in favor of + // score. Please refer to our documentation at // https://cloud.google.com/natural-language/docs for more information. Polarity float64 `json:"polarity,omitempty"` - - // Score: Sentiment score between -1.0 (negative sentiment) and 1.0 - // (positive sentiment). + // Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + // sentiment). Score float64 `json:"score,omitempty"` - // ForceSendFields is a list of field names (e.g. "Magnitude") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Magnitude") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Magnitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Sentiment) MarshalJSON() ([]byte, error) { +func (s Sentiment) MarshalJSON() ([]byte, error) { type NoMethod Sentiment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Sentiment) UnmarshalJSON(data []byte) error { @@ -1112,124 +974,95 @@ func (s *Sentiment) UnmarshalJSON(data []byte) error { return nil } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TextSpan: Represents an output piece of text. type TextSpan struct { - // BeginOffset: The API calculates the beginning offset of the content - // in the original document according to the EncodingType specified in - // the API request. + // BeginOffset: The API calculates the beginning offset of the content in the + // original document according to the EncodingType specified in the API + // request. BeginOffset int64 `json:"beginOffset,omitempty"` - // Content: The content of the output text. Content string `json:"content,omitempty"` - // ForceSendFields is a list of field names (e.g. "BeginOffset") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BeginOffset") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BeginOffset") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TextSpan) MarshalJSON() ([]byte, error) { +func (s TextSpan) MarshalJSON() ([]byte, error) { type NoMethod TextSpan - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Token: Represents the smallest syntactic building block of the text. type Token struct { // DependencyEdge: Dependency tree parse for this token. DependencyEdge *DependencyEdge `json:"dependencyEdge,omitempty"` - - // Lemma: Lemma (https://en.wikipedia.org/wiki/Lemma_%28morphology%29) - // of the token. + // Lemma: Lemma (https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the + // token. Lemma string `json:"lemma,omitempty"` - // PartOfSpeech: Parts of speech tag for this token. PartOfSpeech *PartOfSpeech `json:"partOfSpeech,omitempty"` - // Text: The token text. Text *TextSpan `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "DependencyEdge") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DependencyEdge") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DependencyEdge") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Token) MarshalJSON() ([]byte, error) { +func (s Token) MarshalJSON() ([]byte, error) { type NoMethod Token - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "language.documents.analyzeEntities": - type DocumentsAnalyzeEntitiesCall struct { s *Service analyzeentitiesrequest *AnalyzeEntitiesRequest @@ -1238,9 +1071,9 @@ type DocumentsAnalyzeEntitiesCall struct { header_ http.Header } -// AnalyzeEntities: Finds named entities (currently proper names and -// common nouns) in the text along with entity types, salience, mentions -// for each entity, and other properties. +// AnalyzeEntities: Finds named entities (currently proper names and common +// nouns) in the text along with entity types, salience, mentions for each +// entity, and other properties. func (r *DocumentsService) AnalyzeEntities(analyzeentitiesrequest *AnalyzeEntitiesRequest) *DocumentsAnalyzeEntitiesCall { c := &DocumentsAnalyzeEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.analyzeentitiesrequest = analyzeentitiesrequest @@ -1248,23 +1081,21 @@ func (r *DocumentsService) AnalyzeEntities(analyzeentitiesrequest *AnalyzeEntiti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DocumentsAnalyzeEntitiesCall) Fields(s ...googleapi.Field) *DocumentsAnalyzeEntitiesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DocumentsAnalyzeEntitiesCall) Context(ctx context.Context) *DocumentsAnalyzeEntitiesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DocumentsAnalyzeEntitiesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1273,18 +1104,12 @@ func (c *DocumentsAnalyzeEntitiesCall) Header() http.Header { } func (c *DocumentsAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzeentitiesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/documents:analyzeEntities") @@ -1294,16 +1119,15 @@ func (c *DocumentsAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeEntities" call. -// Exactly one of *AnalyzeEntitiesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AnalyzeEntitiesResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DocumentsAnalyzeEntitiesCall) Do(opts ...googleapi.CallOption) (*AnalyzeEntitiesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1334,29 +1158,7 @@ func (c *DocumentsAnalyzeEntitiesCall) Do(opts ...googleapi.CallOption) (*Analyz return nil, err } return ret, nil - // { - // "description": "Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.", - // "flatPath": "v1beta1/documents:analyzeEntities", - // "httpMethod": "POST", - // "id": "language.documents.analyzeEntities", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta1/documents:analyzeEntities", - // "request": { - // "$ref": "AnalyzeEntitiesRequest" - // }, - // "response": { - // "$ref": "AnalyzeEntitiesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-language", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "language.documents.analyzeSentiment": +} type DocumentsAnalyzeSentimentCall struct { s *Service @@ -1374,23 +1176,21 @@ func (r *DocumentsService) AnalyzeSentiment(analyzesentimentrequest *AnalyzeSent } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DocumentsAnalyzeSentimentCall) Fields(s ...googleapi.Field) *DocumentsAnalyzeSentimentCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DocumentsAnalyzeSentimentCall) Context(ctx context.Context) *DocumentsAnalyzeSentimentCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DocumentsAnalyzeSentimentCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1399,18 +1199,12 @@ func (c *DocumentsAnalyzeSentimentCall) Header() http.Header { } func (c *DocumentsAnalyzeSentimentCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzesentimentrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/documents:analyzeSentiment") @@ -1420,16 +1214,15 @@ func (c *DocumentsAnalyzeSentimentCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeSentiment" call. -// Exactly one of *AnalyzeSentimentResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *AnalyzeSentimentResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *DocumentsAnalyzeSentimentCall) Do(opts ...googleapi.CallOption) (*AnalyzeSentimentResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1460,29 +1253,7 @@ func (c *DocumentsAnalyzeSentimentCall) Do(opts ...googleapi.CallOption) (*Analy return nil, err } return ret, nil - // { - // "description": "Analyzes the sentiment of the provided text.", - // "flatPath": "v1beta1/documents:analyzeSentiment", - // "httpMethod": "POST", - // "id": "language.documents.analyzeSentiment", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta1/documents:analyzeSentiment", - // "request": { - // "$ref": "AnalyzeSentimentRequest" - // }, - // "response": { - // "$ref": "AnalyzeSentimentResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-language", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "language.documents.analyzeSyntax": +} type DocumentsAnalyzeSyntaxCall struct { s *Service @@ -1493,8 +1264,8 @@ type DocumentsAnalyzeSyntaxCall struct { } // AnalyzeSyntax: Analyzes the syntax of the text and provides sentence -// boundaries and tokenization along with part of speech tags, -// dependency trees, and other properties. +// boundaries and tokenization along with part of speech tags, dependency +// trees, and other properties. func (r *DocumentsService) AnalyzeSyntax(analyzesyntaxrequest *AnalyzeSyntaxRequest) *DocumentsAnalyzeSyntaxCall { c := &DocumentsAnalyzeSyntaxCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.analyzesyntaxrequest = analyzesyntaxrequest @@ -1502,23 +1273,21 @@ func (r *DocumentsService) AnalyzeSyntax(analyzesyntaxrequest *AnalyzeSyntaxRequ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DocumentsAnalyzeSyntaxCall) Fields(s ...googleapi.Field) *DocumentsAnalyzeSyntaxCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DocumentsAnalyzeSyntaxCall) Context(ctx context.Context) *DocumentsAnalyzeSyntaxCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DocumentsAnalyzeSyntaxCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1527,18 +1296,12 @@ func (c *DocumentsAnalyzeSyntaxCall) Header() http.Header { } func (c *DocumentsAnalyzeSyntaxCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzesyntaxrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/documents:analyzeSyntax") @@ -1548,16 +1311,15 @@ func (c *DocumentsAnalyzeSyntaxCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeSyntax" call. -// Exactly one of *AnalyzeSyntaxResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AnalyzeSyntaxResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AnalyzeSyntaxResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DocumentsAnalyzeSyntaxCall) Do(opts ...googleapi.CallOption) (*AnalyzeSyntaxResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1588,29 +1350,7 @@ func (c *DocumentsAnalyzeSyntaxCall) Do(opts ...googleapi.CallOption) (*AnalyzeS return nil, err } return ret, nil - // { - // "description": "Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.", - // "flatPath": "v1beta1/documents:analyzeSyntax", - // "httpMethod": "POST", - // "id": "language.documents.analyzeSyntax", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta1/documents:analyzeSyntax", - // "request": { - // "$ref": "AnalyzeSyntaxRequest" - // }, - // "response": { - // "$ref": "AnalyzeSyntaxResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-language", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "language.documents.annotateText": +} type DocumentsAnnotateTextCall struct { s *Service @@ -1620,9 +1360,8 @@ type DocumentsAnnotateTextCall struct { header_ http.Header } -// AnnotateText: A convenience method that provides all the features -// that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in -// one call. +// AnnotateText: A convenience method that provides all the features that +// analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call. func (r *DocumentsService) AnnotateText(annotatetextrequest *AnnotateTextRequest) *DocumentsAnnotateTextCall { c := &DocumentsAnnotateTextCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.annotatetextrequest = annotatetextrequest @@ -1630,23 +1369,21 @@ func (r *DocumentsService) AnnotateText(annotatetextrequest *AnnotateTextRequest } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DocumentsAnnotateTextCall) Fields(s ...googleapi.Field) *DocumentsAnnotateTextCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DocumentsAnnotateTextCall) Context(ctx context.Context) *DocumentsAnnotateTextCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DocumentsAnnotateTextCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1655,18 +1392,12 @@ func (c *DocumentsAnnotateTextCall) Header() http.Header { } func (c *DocumentsAnnotateTextCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotatetextrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/documents:annotateText") @@ -1676,16 +1407,15 @@ func (c *DocumentsAnnotateTextCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.annotateText" call. -// Exactly one of *AnnotateTextResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *AnnotateTextResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AnnotateTextResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DocumentsAnnotateTextCall) Do(opts ...googleapi.CallOption) (*AnnotateTextResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1716,24 +1446,4 @@ func (c *DocumentsAnnotateTextCall) Do(opts ...googleapi.CallOption) (*AnnotateT return nil, err } return ret, nil - // { - // "description": "A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.", - // "flatPath": "v1beta1/documents:annotateText", - // "httpMethod": "POST", - // "id": "language.documents.annotateText", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta1/documents:annotateText", - // "request": { - // "$ref": "AnnotateTextRequest" - // }, - // "response": { - // "$ref": "AnnotateTextResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-language", - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/language/v1beta2/language-api.json b/language/v1beta2/language-api.json index 5b25f75d3dd..0893a52271a 100644 --- a/language/v1beta2/language-api.json +++ b/language/v1beta2/language-api.json @@ -246,7 +246,7 @@ } } }, - "revision": "20240220", + "revision": "20240908", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -756,7 +756,10 @@ "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -1042,6 +1045,9 @@ "", "", "", + "", + "", + "", "" ], "type": "string" @@ -1491,7 +1497,10 @@ "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -1777,6 +1786,9 @@ "", "", "", + "", + "", + "", "" ], "type": "string" @@ -2167,7 +2179,10 @@ "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -2453,6 +2468,9 @@ "", "", "", + "", + "", + "", "" ], "type": "string" @@ -3634,6 +3652,7 @@ "NVIDIA_A100_80GB", "NVIDIA_L4", "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", "TPU_V2", "TPU_V3", "TPU_V4_POD", @@ -3650,6 +3669,7 @@ "Nvidia A100 80GB GPU.", "Nvidia L4 GPU.", "Nvidia H100 80Gb GPU.", + "Nvidia H100 80Gb GPU.", "TPU v2 (JellyFish).", "TPU v3 (DragonFish).", "TPU_v4 (PufferFish).", diff --git a/language/v1beta2/language-gen.go b/language/v1beta2/language-gen.go index a19ca9d1286..0656acbca95 100644 --- a/language/v1beta2/language-gen.go +++ b/language/v1beta2/language-gen.go @@ -886,7 +886,10 @@ type CpuMetric struct { // "A2_ULTRAGPU_2G" // "A2_ULTRAGPU_4G" // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_2G" + // "A3_HIGHGPU_4G" // "A3_HIGHGPU_8G" + // "A3_MEGAGPU_8G" // "E2_STANDARD_2" // "E2_STANDARD_4" // "E2_STANDARD_8" @@ -1412,7 +1415,10 @@ type GpuMetric struct { // "A2_ULTRAGPU_2G" // "A2_ULTRAGPU_4G" // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_2G" + // "A3_HIGHGPU_4G" // "A3_HIGHGPU_8G" + // "A3_MEGAGPU_8G" // "E2_STANDARD_2" // "E2_STANDARD_4" // "E2_STANDARD_8" @@ -1840,7 +1846,10 @@ type RamMetric struct { // "A2_ULTRAGPU_2G" // "A2_ULTRAGPU_4G" // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_2G" + // "A3_HIGHGPU_4G" // "A3_HIGHGPU_8G" + // "A3_MEGAGPU_8G" // "E2_STANDARD_2" // "E2_STANDARD_4" // "E2_STANDARD_8" @@ -3483,6 +3492,7 @@ type XPSImageModelServingSpecModelThroughputEstimation struct { // "NVIDIA_A100_80GB" - Nvidia A100 80GB GPU. // "NVIDIA_L4" - Nvidia L4 GPU. // "NVIDIA_H100_80GB" - Nvidia H100 80Gb GPU. + // "NVIDIA_H100_MEGA_80GB" - Nvidia H100 80Gb GPU. // "TPU_V2" - TPU v2 (JellyFish). // "TPU_V3" - TPU v3 (DragonFish). // "TPU_V4_POD" - TPU_v4 (PufferFish). @@ -6288,7 +6298,7 @@ func (c *DocumentsAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeEntities" call. @@ -6384,7 +6394,7 @@ func (c *DocumentsAnalyzeEntitySentimentCall) doRequest(alt string) (*http.Respo return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeEntitySentiment" call. @@ -6479,7 +6489,7 @@ func (c *DocumentsAnalyzeSentimentCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeSentiment" call. @@ -6576,7 +6586,7 @@ func (c *DocumentsAnalyzeSyntaxCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeSyntax" call. @@ -6672,7 +6682,7 @@ func (c *DocumentsAnnotateTextCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.annotateText" call. @@ -6767,7 +6777,7 @@ func (c *DocumentsClassifyTextCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.classifyText" call. @@ -6862,7 +6872,7 @@ func (c *DocumentsModerateTextCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.moderateText" call. diff --git a/language/v2/language-api.json b/language/v2/language-api.json index 9d0f1e14ac7..54d6d811844 100644 --- a/language/v2/language-api.json +++ b/language/v2/language-api.json @@ -208,7 +208,7 @@ } } }, - "revision": "20240713", + "revision": "20240908", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -426,6 +426,11 @@ "name": { "description": "The name of the category representing the document.", "type": "string" + }, + "severity": { + "description": "Optional. The classifier's severity of the category. This is only present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has a severity score.", + "format": "float", + "type": "number" } }, "type": "object" @@ -576,6 +581,8 @@ "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", "A3_MEGAGPU_8G", "E2_STANDARD_2", @@ -864,6 +871,8 @@ "", "", "", + "", + "", "" ], "type": "string" @@ -1109,6 +1118,8 @@ "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", "A3_MEGAGPU_8G", "E2_STANDARD_2", @@ -1397,6 +1408,8 @@ "", "", "", + "", + "", "" ], "type": "string" @@ -1460,6 +1473,20 @@ "document": { "$ref": "Document", "description": "Required. Input document." + }, + "modelVersion": { + "description": "Optional. The model version to use for ModerateText.", + "enum": [ + "MODEL_VERSION_UNSPECIFIED", + "MODEL_VERSION_1", + "MODEL_VERSION_2" + ], + "enumDescriptions": [ + "The default model version.", + "Use the v1 model, this model is used by default when not provided. The v1 model only returns probability (confidence) score for each category.", + "Use the v2 model. The v2 model only returns probability (confidence) score for each category, and returns severity score for a subset of the categories." + ], + "type": "string" } }, "type": "object" @@ -1528,6 +1555,8 @@ "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", "A3_MEGAGPU_8G", "E2_STANDARD_2", @@ -1816,6 +1845,8 @@ "", "", "", + "", + "", "" ], "type": "string" diff --git a/language/v2/language-gen.go b/language/v2/language-gen.go index 39519166f6a..80cb41db7ec 100644 --- a/language/v2/language-gen.go +++ b/language/v2/language-gen.go @@ -445,6 +445,10 @@ type ClassificationCategory struct { Confidence float64 `json:"confidence,omitempty"` // Name: The name of the category representing the document. Name string `json:"name,omitempty"` + // Severity: Optional. The classifier's severity of the category. This is only + // present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, + // and the corresponding category has a severity score. + Severity float64 `json:"severity,omitempty"` // ForceSendFields is a list of field names (e.g. "Confidence") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -467,6 +471,7 @@ func (s *ClassificationCategory) UnmarshalJSON(data []byte) error { type NoMethod ClassificationCategory var s1 struct { Confidence gensupport.JSONFloat64 `json:"confidence"` + Severity gensupport.JSONFloat64 `json:"severity"` *NoMethod } s1.NoMethod = (*NoMethod)(s) @@ -474,6 +479,7 @@ func (s *ClassificationCategory) UnmarshalJSON(data []byte) error { return err } s.Confidence = float64(s1.Confidence) + s.Severity = float64(s1.Severity) return nil } @@ -695,6 +701,8 @@ type CpuMetric struct { // "A2_ULTRAGPU_2G" // "A2_ULTRAGPU_4G" // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_2G" + // "A3_HIGHGPU_4G" // "A3_HIGHGPU_8G" // "A3_MEGAGPU_8G" // "E2_STANDARD_2" @@ -1092,6 +1100,8 @@ type GpuMetric struct { // "A2_ULTRAGPU_2G" // "A2_ULTRAGPU_4G" // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_2G" + // "A3_HIGHGPU_4G" // "A3_HIGHGPU_8G" // "A3_MEGAGPU_8G" // "E2_STANDARD_2" @@ -1278,6 +1288,17 @@ func (s InfraUsage) MarshalJSON() ([]byte, error) { type ModerateTextRequest struct { // Document: Required. Input document. Document *Document `json:"document,omitempty"` + // ModelVersion: Optional. The model version to use for ModerateText. + // + // Possible values: + // "MODEL_VERSION_UNSPECIFIED" - The default model version. + // "MODEL_VERSION_1" - Use the v1 model, this model is used by default when + // not provided. The v1 model only returns probability (confidence) score for + // each category. + // "MODEL_VERSION_2" - Use the v2 model. The v2 model only returns + // probability (confidence) score for each category, and returns severity score + // for a subset of the categories. + ModelVersion string `json:"modelVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "Document") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1369,6 +1390,8 @@ type RamMetric struct { // "A2_ULTRAGPU_2G" // "A2_ULTRAGPU_4G" // "A2_ULTRAGPU_8G" + // "A3_HIGHGPU_2G" + // "A3_HIGHGPU_4G" // "A3_HIGHGPU_8G" // "A3_MEGAGPU_8G" // "E2_STANDARD_2" @@ -5790,7 +5813,7 @@ func (c *DocumentsAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeEntities" call. @@ -5885,7 +5908,7 @@ func (c *DocumentsAnalyzeSentimentCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.analyzeSentiment" call. @@ -5980,7 +6003,7 @@ func (c *DocumentsAnnotateTextCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.annotateText" call. @@ -6075,7 +6098,7 @@ func (c *DocumentsClassifyTextCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.classifyText" call. @@ -6170,7 +6193,7 @@ func (c *DocumentsModerateTextCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.documents.moderateText" call. diff --git a/libraryagent/v1/libraryagent-gen.go b/libraryagent/v1/libraryagent-gen.go index 6767c4e6ded..172d3f3a4e8 100644 --- a/libraryagent/v1/libraryagent-gen.go +++ b/libraryagent/v1/libraryagent-gen.go @@ -364,7 +364,7 @@ func (c *ShelvesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "libraryagent.shelves.get" call. @@ -483,7 +483,7 @@ func (c *ShelvesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "libraryagent.shelves.list" call. @@ -603,7 +603,7 @@ func (c *ShelvesBooksBorrowCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "libraryagent.shelves.books.borrow" call. @@ -711,7 +711,7 @@ func (c *ShelvesBooksGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "libraryagent.shelves.books.get" call. @@ -838,7 +838,7 @@ func (c *ShelvesBooksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "libraryagent.shelves.books.list" call. @@ -957,7 +957,7 @@ func (c *ShelvesBooksReturnCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "libraryagent.shelves.books.return" call. diff --git a/licensing/v1/licensing-gen.go b/licensing/v1/licensing-gen.go index 4cdf29b165c..6858f978d55 100644 --- a/licensing/v1/licensing-gen.go +++ b/licensing/v1/licensing-gen.go @@ -341,7 +341,7 @@ func (c *LicenseAssignmentsDeleteCall) doRequest(alt string) (*http.Response, er "skuId": c.skuId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "licensing.licenseAssignments.delete" call. @@ -462,7 +462,7 @@ func (c *LicenseAssignmentsGetCall) doRequest(alt string) (*http.Response, error "skuId": c.skuId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "licensing.licenseAssignments.get" call. @@ -570,7 +570,7 @@ func (c *LicenseAssignmentsInsertCall) doRequest(alt string) (*http.Response, er "productId": c.productId, "skuId": c.skuId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "licensing.licenseAssignments.insert" call. @@ -701,7 +701,7 @@ func (c *LicenseAssignmentsListForProductCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "productId": c.productId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "licensing.licenseAssignments.listForProduct" call. @@ -859,7 +859,7 @@ func (c *LicenseAssignmentsListForProductAndSkuCall) doRequest(alt string) (*htt "productId": c.productId, "skuId": c.skuId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "licensing.licenseAssignments.listForProductAndSku" call. @@ -997,7 +997,7 @@ func (c *LicenseAssignmentsPatchCall) doRequest(alt string) (*http.Response, err "skuId": c.skuId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "licensing.licenseAssignments.patch" call. @@ -1114,7 +1114,7 @@ func (c *LicenseAssignmentsUpdateCall) doRequest(alt string) (*http.Response, er "skuId": c.skuId, "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "licensing.licenseAssignments.update" call. diff --git a/lifesciences/v2beta/lifesciences-gen.go b/lifesciences/v2beta/lifesciences-gen.go index 903c77f4b20..8c65e43ff1e 100644 --- a/lifesciences/v2beta/lifesciences-gen.go +++ b/lifesciences/v2beta/lifesciences-gen.go @@ -1533,7 +1533,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "lifesciences.projects.locations.get" call. @@ -1664,7 +1664,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "lifesciences.projects.locations.list" call. @@ -1793,7 +1793,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "lifesciences.projects.locations.operations.cancel" call. @@ -1903,7 +1903,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "lifesciences.projects.locations.operations.get" call. @@ -2040,7 +2040,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "lifesciences.projects.locations.operations.list" call. @@ -2174,7 +2174,7 @@ func (c *ProjectsLocationsPipelinesRunCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "lifesciences.projects.locations.pipelines.run" call. diff --git a/localservices/v1/localservices-gen.go b/localservices/v1/localservices-gen.go index 7ed094e52dc..a60a9916e84 100644 --- a/localservices/v1/localservices-gen.go +++ b/localservices/v1/localservices-gen.go @@ -689,7 +689,7 @@ func (c *AccountReportsSearchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "localservices.accountReports.search" call. @@ -887,7 +887,7 @@ func (c *DetailedLeadReportsSearchCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "localservices.detailedLeadReports.search" call. diff --git a/logging/v2/logging-api.json b/logging/v2/logging-api.json index 81851320d02..487b58fbc47 100644 --- a/logging/v2/logging-api.json +++ b/logging/v2/logging-api.json @@ -8922,7 +8922,7 @@ } } }, - "revision": "20240908", + "revision": "20240913", "rootUrl": "https://logging.googleapis.com/", "schemas": { "AuditConfig": { @@ -10003,7 +10003,7 @@ "id": "LogBucket", "properties": { "analyticsEnabled": { - "description": "Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled.", + "description": "Optional. Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled.", "type": "boolean" }, "cmekSettings": { diff --git a/logging/v2/logging-gen.go b/logging/v2/logging-gen.go index ff5c943e258..630e8121e70 100644 --- a/logging/v2/logging-gen.go +++ b/logging/v2/logging-gen.go @@ -2634,8 +2634,8 @@ func (s LocationMetadata) MarshalJSON() ([]byte, error) { // LogBucket: Describes a repository in which log entries are stored. type LogBucket struct { - // AnalyticsEnabled: Whether log analytics is enabled for this bucket.Once - // enabled, log analytics features cannot be disabled. + // AnalyticsEnabled: Optional. Whether log analytics is enabled for this + // bucket.Once enabled, log analytics features cannot be disabled. AnalyticsEnabled bool `json:"analyticsEnabled,omitempty"` // CmekSettings: Optional. The CMEK settings of the log bucket. If present, new // log entries written to this log bucket are encrypted using the CMEK key @@ -4790,7 +4790,7 @@ func (c *BillingAccountsGetCmekSettingsCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.getCmekSettings" call. @@ -4907,7 +4907,7 @@ func (c *BillingAccountsGetSettingsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.getSettings" call. @@ -5013,7 +5013,7 @@ func (c *BillingAccountsExclusionsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.exclusions.create" call. @@ -5113,7 +5113,7 @@ func (c *BillingAccountsExclusionsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.exclusions.delete" call. @@ -5225,7 +5225,7 @@ func (c *BillingAccountsExclusionsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.exclusions.get" call. @@ -5352,7 +5352,7 @@ func (c *BillingAccountsExclusionsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.exclusions.list" call. @@ -5492,7 +5492,7 @@ func (c *BillingAccountsExclusionsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.exclusions.patch" call. @@ -5599,7 +5599,7 @@ func (c *BillingAccountsLocationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.get" call. @@ -5730,7 +5730,7 @@ func (c *BillingAccountsLocationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.list" call. @@ -5865,7 +5865,7 @@ func (c *BillingAccountsLocationsBucketsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.create" call. @@ -5979,7 +5979,7 @@ func (c *BillingAccountsLocationsBucketsCreateAsyncCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.createAsync" call. @@ -6082,7 +6082,7 @@ func (c *BillingAccountsLocationsBucketsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.delete" call. @@ -6195,7 +6195,7 @@ func (c *BillingAccountsLocationsBucketsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.get" call. @@ -6326,7 +6326,7 @@ func (c *BillingAccountsLocationsBucketsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.list" call. @@ -6468,7 +6468,7 @@ func (c *BillingAccountsLocationsBucketsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.patch" call. @@ -6576,7 +6576,7 @@ func (c *BillingAccountsLocationsBucketsUndeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.undelete" call. @@ -6697,7 +6697,7 @@ func (c *BillingAccountsLocationsBucketsUpdateAsyncCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.updateAsync" call. @@ -6813,7 +6813,7 @@ func (c *BillingAccountsLocationsBucketsLinksCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.links.create" call. @@ -6917,7 +6917,7 @@ func (c *BillingAccountsLocationsBucketsLinksDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.links.delete" call. @@ -7032,7 +7032,7 @@ func (c *BillingAccountsLocationsBucketsLinksGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.links.get" call. @@ -7159,7 +7159,7 @@ func (c *BillingAccountsLocationsBucketsLinksListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.links.list" call. @@ -7293,7 +7293,7 @@ func (c *BillingAccountsLocationsBucketsViewsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.views.create" call. @@ -7394,7 +7394,7 @@ func (c *BillingAccountsLocationsBucketsViewsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.views.delete" call. @@ -7505,7 +7505,7 @@ func (c *BillingAccountsLocationsBucketsViewsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.views.get" call. @@ -7631,7 +7631,7 @@ func (c *BillingAccountsLocationsBucketsViewsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.views.list" call. @@ -7773,7 +7773,7 @@ func (c *BillingAccountsLocationsBucketsViewsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.views.patch" call. @@ -7919,7 +7919,7 @@ func (c *BillingAccountsLocationsBucketsViewsLogsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.buckets.views.logs.list" call. @@ -8050,7 +8050,7 @@ func (c *BillingAccountsLocationsOperationsCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.operations.cancel" call. @@ -8159,7 +8159,7 @@ func (c *BillingAccountsLocationsOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.operations.get" call. @@ -8287,7 +8287,7 @@ func (c *BillingAccountsLocationsOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.operations.list" call. @@ -8451,7 +8451,7 @@ func (c *BillingAccountsLocationsRecentQueriesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.recentQueries.list" call. @@ -8592,7 +8592,7 @@ func (c *BillingAccountsLocationsSavedQueriesCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.savedQueries.create" call. @@ -8696,7 +8696,7 @@ func (c *BillingAccountsLocationsSavedQueriesDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.savedQueries.delete" call. @@ -8811,7 +8811,7 @@ func (c *BillingAccountsLocationsSavedQueriesGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.savedQueries.get" call. @@ -8960,7 +8960,7 @@ func (c *BillingAccountsLocationsSavedQueriesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.savedQueries.list" call. @@ -9101,7 +9101,7 @@ func (c *BillingAccountsLocationsSavedQueriesPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.locations.savedQueries.patch" call. @@ -9206,7 +9206,7 @@ func (c *BillingAccountsLogsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "logName": c.logName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.logs.delete" call. @@ -9352,7 +9352,7 @@ func (c *BillingAccountsLogsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.logs.list" call. @@ -9509,7 +9509,7 @@ func (c *BillingAccountsSinksCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.sinks.create" call. @@ -9611,7 +9611,7 @@ func (c *BillingAccountsSinksDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.sinks.delete" call. @@ -9723,7 +9723,7 @@ func (c *BillingAccountsSinksGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.sinks.get" call. @@ -9863,7 +9863,7 @@ func (c *BillingAccountsSinksListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.sinks.list" call. @@ -10036,7 +10036,7 @@ func (c *BillingAccountsSinksPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.sinks.patch" call. @@ -10187,7 +10187,7 @@ func (c *BillingAccountsSinksUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.billingAccounts.sinks.update" call. @@ -10282,7 +10282,7 @@ func (c *EntriesCopyCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.entries.copy" call. @@ -10379,7 +10379,7 @@ func (c *EntriesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.entries.list" call. @@ -10496,7 +10496,7 @@ func (c *EntriesTailCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.entries.tail" call. @@ -10597,7 +10597,7 @@ func (c *EntriesWriteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.entries.write" call. @@ -10704,7 +10704,7 @@ func (c *ExclusionsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.exclusions.create" call. @@ -10804,7 +10804,7 @@ func (c *ExclusionsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.exclusions.delete" call. @@ -10916,7 +10916,7 @@ func (c *ExclusionsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.exclusions.get" call. @@ -11043,7 +11043,7 @@ func (c *ExclusionsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.exclusions.list" call. @@ -11183,7 +11183,7 @@ func (c *ExclusionsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.exclusions.patch" call. @@ -11304,7 +11304,7 @@ func (c *FoldersGetCmekSettingsCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.getCmekSettings" call. @@ -11421,7 +11421,7 @@ func (c *FoldersGetSettingsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.getSettings" call. @@ -11544,7 +11544,7 @@ func (c *FoldersUpdateSettingsCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.updateSettings" call. @@ -11650,7 +11650,7 @@ func (c *FoldersExclusionsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.exclusions.create" call. @@ -11750,7 +11750,7 @@ func (c *FoldersExclusionsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.exclusions.delete" call. @@ -11862,7 +11862,7 @@ func (c *FoldersExclusionsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.exclusions.get" call. @@ -11989,7 +11989,7 @@ func (c *FoldersExclusionsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.exclusions.list" call. @@ -12129,7 +12129,7 @@ func (c *FoldersExclusionsPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.exclusions.patch" call. @@ -12236,7 +12236,7 @@ func (c *FoldersLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.get" call. @@ -12367,7 +12367,7 @@ func (c *FoldersLocationsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.list" call. @@ -12502,7 +12502,7 @@ func (c *FoldersLocationsBucketsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.create" call. @@ -12616,7 +12616,7 @@ func (c *FoldersLocationsBucketsCreateAsyncCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.createAsync" call. @@ -12719,7 +12719,7 @@ func (c *FoldersLocationsBucketsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.delete" call. @@ -12832,7 +12832,7 @@ func (c *FoldersLocationsBucketsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.get" call. @@ -12963,7 +12963,7 @@ func (c *FoldersLocationsBucketsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.list" call. @@ -13105,7 +13105,7 @@ func (c *FoldersLocationsBucketsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.patch" call. @@ -13213,7 +13213,7 @@ func (c *FoldersLocationsBucketsUndeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.undelete" call. @@ -13334,7 +13334,7 @@ func (c *FoldersLocationsBucketsUpdateAsyncCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.updateAsync" call. @@ -13450,7 +13450,7 @@ func (c *FoldersLocationsBucketsLinksCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.links.create" call. @@ -13554,7 +13554,7 @@ func (c *FoldersLocationsBucketsLinksDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.links.delete" call. @@ -13669,7 +13669,7 @@ func (c *FoldersLocationsBucketsLinksGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.links.get" call. @@ -13796,7 +13796,7 @@ func (c *FoldersLocationsBucketsLinksListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.links.list" call. @@ -13930,7 +13930,7 @@ func (c *FoldersLocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.views.create" call. @@ -14031,7 +14031,7 @@ func (c *FoldersLocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.views.delete" call. @@ -14142,7 +14142,7 @@ func (c *FoldersLocationsBucketsViewsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.views.get" call. @@ -14246,7 +14246,7 @@ func (c *FoldersLocationsBucketsViewsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.views.getIamPolicy" call. @@ -14372,7 +14372,7 @@ func (c *FoldersLocationsBucketsViewsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.views.list" call. @@ -14514,7 +14514,7 @@ func (c *FoldersLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.views.patch" call. @@ -14619,7 +14619,7 @@ func (c *FoldersLocationsBucketsViewsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.views.setIamPolicy" call. @@ -14727,7 +14727,7 @@ func (c *FoldersLocationsBucketsViewsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.views.testIamPermissions" call. @@ -14874,7 +14874,7 @@ func (c *FoldersLocationsBucketsViewsLogsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.buckets.views.logs.list" call. @@ -15008,7 +15008,7 @@ func (c *FoldersLocationsLogScopesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.logScopes.create" call. @@ -15105,7 +15105,7 @@ func (c *FoldersLocationsLogScopesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.logScopes.delete" call. @@ -15214,7 +15214,7 @@ func (c *FoldersLocationsLogScopesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.logScopes.get" call. @@ -15340,7 +15340,7 @@ func (c *FoldersLocationsLogScopesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.logScopes.list" call. @@ -15475,7 +15475,7 @@ func (c *FoldersLocationsLogScopesPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.logScopes.patch" call. @@ -15584,7 +15584,7 @@ func (c *FoldersLocationsOperationsCancelCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.operations.cancel" call. @@ -15693,7 +15693,7 @@ func (c *FoldersLocationsOperationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.operations.get" call. @@ -15821,7 +15821,7 @@ func (c *FoldersLocationsOperationsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.operations.list" call. @@ -15985,7 +15985,7 @@ func (c *FoldersLocationsRecentQueriesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.recentQueries.list" call. @@ -16126,7 +16126,7 @@ func (c *FoldersLocationsSavedQueriesCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.savedQueries.create" call. @@ -16230,7 +16230,7 @@ func (c *FoldersLocationsSavedQueriesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.savedQueries.delete" call. @@ -16345,7 +16345,7 @@ func (c *FoldersLocationsSavedQueriesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.savedQueries.get" call. @@ -16494,7 +16494,7 @@ func (c *FoldersLocationsSavedQueriesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.savedQueries.list" call. @@ -16635,7 +16635,7 @@ func (c *FoldersLocationsSavedQueriesPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.locations.savedQueries.patch" call. @@ -16740,7 +16740,7 @@ func (c *FoldersLogsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "logName": c.logName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.logs.delete" call. @@ -16886,7 +16886,7 @@ func (c *FoldersLogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.logs.list" call. @@ -17043,7 +17043,7 @@ func (c *FoldersSinksCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.sinks.create" call. @@ -17145,7 +17145,7 @@ func (c *FoldersSinksDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.sinks.delete" call. @@ -17257,7 +17257,7 @@ func (c *FoldersSinksGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.sinks.get" call. @@ -17397,7 +17397,7 @@ func (c *FoldersSinksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.sinks.list" call. @@ -17570,7 +17570,7 @@ func (c *FoldersSinksPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.sinks.patch" call. @@ -17721,7 +17721,7 @@ func (c *FoldersSinksUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.folders.sinks.update" call. @@ -17828,7 +17828,7 @@ func (c *LocationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.get" call. @@ -17959,7 +17959,7 @@ func (c *LocationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.list" call. @@ -18094,7 +18094,7 @@ func (c *LocationsBucketsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.create" call. @@ -18208,7 +18208,7 @@ func (c *LocationsBucketsCreateAsyncCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.createAsync" call. @@ -18311,7 +18311,7 @@ func (c *LocationsBucketsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.delete" call. @@ -18424,7 +18424,7 @@ func (c *LocationsBucketsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.get" call. @@ -18555,7 +18555,7 @@ func (c *LocationsBucketsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.list" call. @@ -18697,7 +18697,7 @@ func (c *LocationsBucketsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.patch" call. @@ -18805,7 +18805,7 @@ func (c *LocationsBucketsUndeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.undelete" call. @@ -18926,7 +18926,7 @@ func (c *LocationsBucketsUpdateAsyncCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.updateAsync" call. @@ -19042,7 +19042,7 @@ func (c *LocationsBucketsLinksCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.links.create" call. @@ -19146,7 +19146,7 @@ func (c *LocationsBucketsLinksDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.links.delete" call. @@ -19261,7 +19261,7 @@ func (c *LocationsBucketsLinksGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.links.get" call. @@ -19388,7 +19388,7 @@ func (c *LocationsBucketsLinksListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.links.list" call. @@ -19522,7 +19522,7 @@ func (c *LocationsBucketsViewsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.views.create" call. @@ -19623,7 +19623,7 @@ func (c *LocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.views.delete" call. @@ -19734,7 +19734,7 @@ func (c *LocationsBucketsViewsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.views.get" call. @@ -19838,7 +19838,7 @@ func (c *LocationsBucketsViewsGetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.views.getIamPolicy" call. @@ -19964,7 +19964,7 @@ func (c *LocationsBucketsViewsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.views.list" call. @@ -20106,7 +20106,7 @@ func (c *LocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.views.patch" call. @@ -20211,7 +20211,7 @@ func (c *LocationsBucketsViewsSetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.views.setIamPolicy" call. @@ -20319,7 +20319,7 @@ func (c *LocationsBucketsViewsTestIamPermissionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.buckets.views.testIamPermissions" call. @@ -20429,7 +20429,7 @@ func (c *LocationsOperationsCancelCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.operations.cancel" call. @@ -20538,7 +20538,7 @@ func (c *LocationsOperationsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.operations.get" call. @@ -20666,7 +20666,7 @@ func (c *LocationsOperationsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.locations.operations.list" call. @@ -20793,7 +20793,7 @@ func (c *LogsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "logName": c.logName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.logs.delete" call. @@ -20939,7 +20939,7 @@ func (c *LogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.logs.list" call. @@ -21079,7 +21079,7 @@ func (c *MonitoredResourceDescriptorsListCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.monitoredResourceDescriptors.list" call. @@ -21222,7 +21222,7 @@ func (c *OrganizationsGetCmekSettingsCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.getCmekSettings" call. @@ -21339,7 +21339,7 @@ func (c *OrganizationsGetSettingsCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.getSettings" call. @@ -21467,7 +21467,7 @@ func (c *OrganizationsUpdateCmekSettingsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.updateCmekSettings" call. @@ -21590,7 +21590,7 @@ func (c *OrganizationsUpdateSettingsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.updateSettings" call. @@ -21696,7 +21696,7 @@ func (c *OrganizationsExclusionsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.exclusions.create" call. @@ -21796,7 +21796,7 @@ func (c *OrganizationsExclusionsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.exclusions.delete" call. @@ -21908,7 +21908,7 @@ func (c *OrganizationsExclusionsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.exclusions.get" call. @@ -22035,7 +22035,7 @@ func (c *OrganizationsExclusionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.exclusions.list" call. @@ -22175,7 +22175,7 @@ func (c *OrganizationsExclusionsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.exclusions.patch" call. @@ -22282,7 +22282,7 @@ func (c *OrganizationsLocationsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.get" call. @@ -22413,7 +22413,7 @@ func (c *OrganizationsLocationsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.list" call. @@ -22548,7 +22548,7 @@ func (c *OrganizationsLocationsBucketsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.create" call. @@ -22662,7 +22662,7 @@ func (c *OrganizationsLocationsBucketsCreateAsyncCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.createAsync" call. @@ -22765,7 +22765,7 @@ func (c *OrganizationsLocationsBucketsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.delete" call. @@ -22878,7 +22878,7 @@ func (c *OrganizationsLocationsBucketsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.get" call. @@ -23009,7 +23009,7 @@ func (c *OrganizationsLocationsBucketsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.list" call. @@ -23151,7 +23151,7 @@ func (c *OrganizationsLocationsBucketsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.patch" call. @@ -23259,7 +23259,7 @@ func (c *OrganizationsLocationsBucketsUndeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.undelete" call. @@ -23380,7 +23380,7 @@ func (c *OrganizationsLocationsBucketsUpdateAsyncCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.updateAsync" call. @@ -23496,7 +23496,7 @@ func (c *OrganizationsLocationsBucketsLinksCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.links.create" call. @@ -23600,7 +23600,7 @@ func (c *OrganizationsLocationsBucketsLinksDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.links.delete" call. @@ -23715,7 +23715,7 @@ func (c *OrganizationsLocationsBucketsLinksGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.links.get" call. @@ -23842,7 +23842,7 @@ func (c *OrganizationsLocationsBucketsLinksListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.links.list" call. @@ -23976,7 +23976,7 @@ func (c *OrganizationsLocationsBucketsViewsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.views.create" call. @@ -24077,7 +24077,7 @@ func (c *OrganizationsLocationsBucketsViewsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.views.delete" call. @@ -24188,7 +24188,7 @@ func (c *OrganizationsLocationsBucketsViewsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.views.get" call. @@ -24292,7 +24292,7 @@ func (c *OrganizationsLocationsBucketsViewsGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.views.getIamPolicy" call. @@ -24418,7 +24418,7 @@ func (c *OrganizationsLocationsBucketsViewsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.views.list" call. @@ -24560,7 +24560,7 @@ func (c *OrganizationsLocationsBucketsViewsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.views.patch" call. @@ -24665,7 +24665,7 @@ func (c *OrganizationsLocationsBucketsViewsSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.views.setIamPolicy" call. @@ -24773,7 +24773,7 @@ func (c *OrganizationsLocationsBucketsViewsTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.views.testIamPermissions" call. @@ -24920,7 +24920,7 @@ func (c *OrganizationsLocationsBucketsViewsLogsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.buckets.views.logs.list" call. @@ -25054,7 +25054,7 @@ func (c *OrganizationsLocationsLogScopesCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.logScopes.create" call. @@ -25151,7 +25151,7 @@ func (c *OrganizationsLocationsLogScopesDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.logScopes.delete" call. @@ -25260,7 +25260,7 @@ func (c *OrganizationsLocationsLogScopesGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.logScopes.get" call. @@ -25386,7 +25386,7 @@ func (c *OrganizationsLocationsLogScopesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.logScopes.list" call. @@ -25521,7 +25521,7 @@ func (c *OrganizationsLocationsLogScopesPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.logScopes.patch" call. @@ -25630,7 +25630,7 @@ func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.operations.cancel" call. @@ -25739,7 +25739,7 @@ func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.operations.get" call. @@ -25867,7 +25867,7 @@ func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.operations.list" call. @@ -26031,7 +26031,7 @@ func (c *OrganizationsLocationsRecentQueriesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.recentQueries.list" call. @@ -26172,7 +26172,7 @@ func (c *OrganizationsLocationsSavedQueriesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.savedQueries.create" call. @@ -26276,7 +26276,7 @@ func (c *OrganizationsLocationsSavedQueriesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.savedQueries.delete" call. @@ -26391,7 +26391,7 @@ func (c *OrganizationsLocationsSavedQueriesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.savedQueries.get" call. @@ -26540,7 +26540,7 @@ func (c *OrganizationsLocationsSavedQueriesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.savedQueries.list" call. @@ -26681,7 +26681,7 @@ func (c *OrganizationsLocationsSavedQueriesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.locations.savedQueries.patch" call. @@ -26786,7 +26786,7 @@ func (c *OrganizationsLogsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "logName": c.logName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.logs.delete" call. @@ -26932,7 +26932,7 @@ func (c *OrganizationsLogsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.logs.list" call. @@ -27089,7 +27089,7 @@ func (c *OrganizationsSinksCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.sinks.create" call. @@ -27191,7 +27191,7 @@ func (c *OrganizationsSinksDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.sinks.delete" call. @@ -27303,7 +27303,7 @@ func (c *OrganizationsSinksGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.sinks.get" call. @@ -27443,7 +27443,7 @@ func (c *OrganizationsSinksListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.sinks.list" call. @@ -27616,7 +27616,7 @@ func (c *OrganizationsSinksPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.sinks.patch" call. @@ -27767,7 +27767,7 @@ func (c *OrganizationsSinksUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.organizations.sinks.update" call. @@ -27888,7 +27888,7 @@ func (c *ProjectsGetCmekSettingsCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.getCmekSettings" call. @@ -28005,7 +28005,7 @@ func (c *ProjectsGetSettingsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.getSettings" call. @@ -28111,7 +28111,7 @@ func (c *ProjectsExclusionsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.exclusions.create" call. @@ -28211,7 +28211,7 @@ func (c *ProjectsExclusionsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.exclusions.delete" call. @@ -28323,7 +28323,7 @@ func (c *ProjectsExclusionsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.exclusions.get" call. @@ -28450,7 +28450,7 @@ func (c *ProjectsExclusionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.exclusions.list" call. @@ -28590,7 +28590,7 @@ func (c *ProjectsExclusionsPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.exclusions.patch" call. @@ -28697,7 +28697,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.get" call. @@ -28828,7 +28828,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.list" call. @@ -28963,7 +28963,7 @@ func (c *ProjectsLocationsBucketsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.create" call. @@ -29077,7 +29077,7 @@ func (c *ProjectsLocationsBucketsCreateAsyncCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.createAsync" call. @@ -29180,7 +29180,7 @@ func (c *ProjectsLocationsBucketsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.delete" call. @@ -29293,7 +29293,7 @@ func (c *ProjectsLocationsBucketsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.get" call. @@ -29424,7 +29424,7 @@ func (c *ProjectsLocationsBucketsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.list" call. @@ -29566,7 +29566,7 @@ func (c *ProjectsLocationsBucketsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.patch" call. @@ -29674,7 +29674,7 @@ func (c *ProjectsLocationsBucketsUndeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.undelete" call. @@ -29795,7 +29795,7 @@ func (c *ProjectsLocationsBucketsUpdateAsyncCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.updateAsync" call. @@ -29911,7 +29911,7 @@ func (c *ProjectsLocationsBucketsLinksCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.links.create" call. @@ -30015,7 +30015,7 @@ func (c *ProjectsLocationsBucketsLinksDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.links.delete" call. @@ -30130,7 +30130,7 @@ func (c *ProjectsLocationsBucketsLinksGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.links.get" call. @@ -30257,7 +30257,7 @@ func (c *ProjectsLocationsBucketsLinksListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.links.list" call. @@ -30391,7 +30391,7 @@ func (c *ProjectsLocationsBucketsViewsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.views.create" call. @@ -30492,7 +30492,7 @@ func (c *ProjectsLocationsBucketsViewsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.views.delete" call. @@ -30603,7 +30603,7 @@ func (c *ProjectsLocationsBucketsViewsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.views.get" call. @@ -30707,7 +30707,7 @@ func (c *ProjectsLocationsBucketsViewsGetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.views.getIamPolicy" call. @@ -30833,7 +30833,7 @@ func (c *ProjectsLocationsBucketsViewsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.views.list" call. @@ -30975,7 +30975,7 @@ func (c *ProjectsLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.views.patch" call. @@ -31080,7 +31080,7 @@ func (c *ProjectsLocationsBucketsViewsSetIamPolicyCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.views.setIamPolicy" call. @@ -31188,7 +31188,7 @@ func (c *ProjectsLocationsBucketsViewsTestIamPermissionsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.views.testIamPermissions" call. @@ -31335,7 +31335,7 @@ func (c *ProjectsLocationsBucketsViewsLogsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.buckets.views.logs.list" call. @@ -31469,7 +31469,7 @@ func (c *ProjectsLocationsLogScopesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.logScopes.create" call. @@ -31566,7 +31566,7 @@ func (c *ProjectsLocationsLogScopesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.logScopes.delete" call. @@ -31675,7 +31675,7 @@ func (c *ProjectsLocationsLogScopesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.logScopes.get" call. @@ -31801,7 +31801,7 @@ func (c *ProjectsLocationsLogScopesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.logScopes.list" call. @@ -31936,7 +31936,7 @@ func (c *ProjectsLocationsLogScopesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.logScopes.patch" call. @@ -32045,7 +32045,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.operations.cancel" call. @@ -32154,7 +32154,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.operations.get" call. @@ -32282,7 +32282,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.operations.list" call. @@ -32446,7 +32446,7 @@ func (c *ProjectsLocationsRecentQueriesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.recentQueries.list" call. @@ -32587,7 +32587,7 @@ func (c *ProjectsLocationsSavedQueriesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.savedQueries.create" call. @@ -32691,7 +32691,7 @@ func (c *ProjectsLocationsSavedQueriesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.savedQueries.delete" call. @@ -32806,7 +32806,7 @@ func (c *ProjectsLocationsSavedQueriesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.savedQueries.get" call. @@ -32955,7 +32955,7 @@ func (c *ProjectsLocationsSavedQueriesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.savedQueries.list" call. @@ -33096,7 +33096,7 @@ func (c *ProjectsLocationsSavedQueriesPatchCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.locations.savedQueries.patch" call. @@ -33201,7 +33201,7 @@ func (c *ProjectsLogsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "logName": c.logName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logs.delete" call. @@ -33347,7 +33347,7 @@ func (c *ProjectsLogsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.logs.list" call. @@ -33471,7 +33471,7 @@ func (c *ProjectsMetricsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.metrics.create" call. @@ -33567,7 +33567,7 @@ func (c *ProjectsMetricsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "metricName": c.metricName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.metrics.delete" call. @@ -33675,7 +33675,7 @@ func (c *ProjectsMetricsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "metricName": c.metricName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.metrics.get" call. @@ -33801,7 +33801,7 @@ func (c *ProjectsMetricsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.metrics.list" call. @@ -33928,7 +33928,7 @@ func (c *ProjectsMetricsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "metricName": c.metricName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.metrics.update" call. @@ -34063,7 +34063,7 @@ func (c *ProjectsSinksCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.create" call. @@ -34165,7 +34165,7 @@ func (c *ProjectsSinksDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.delete" call. @@ -34277,7 +34277,7 @@ func (c *ProjectsSinksGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.get" call. @@ -34417,7 +34417,7 @@ func (c *ProjectsSinksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.list" call. @@ -34590,7 +34590,7 @@ func (c *ProjectsSinksPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.patch" call. @@ -34741,7 +34741,7 @@ func (c *ProjectsSinksUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.update" call. @@ -34876,7 +34876,7 @@ func (c *SinksCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.sinks.create" call. @@ -34978,7 +34978,7 @@ func (c *SinksDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.sinks.delete" call. @@ -35090,7 +35090,7 @@ func (c *SinksGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.sinks.get" call. @@ -35230,7 +35230,7 @@ func (c *SinksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.sinks.list" call. @@ -35403,7 +35403,7 @@ func (c *SinksUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.sinks.update" call. @@ -35524,7 +35524,7 @@ func (c *V2GetCmekSettingsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.getCmekSettings" call. @@ -35641,7 +35641,7 @@ func (c *V2GetSettingsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.getSettings" call. @@ -35769,7 +35769,7 @@ func (c *V2UpdateCmekSettingsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.updateCmekSettings" call. @@ -35892,7 +35892,7 @@ func (c *V2UpdateSettingsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.updateSettings" call. diff --git a/logging/v2beta1/logging-gen.go b/logging/v2beta1/logging-gen.go index 8480da8f942..3aec73fceab 100644 --- a/logging/v2beta1/logging-gen.go +++ b/logging/v2beta1/logging-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -10,6 +10,17 @@ // // For product documentation, see: https://cloud.google.com/logging/docs/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -19,28 +30,31 @@ // ctx := context.Background() // loggingService, err := logging.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // loggingService, err := logging.NewService(ctx, option.WithScopes(logging.LoggingWriteScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // loggingService, err := logging.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // loggingService, err := logging.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package logging // import "google.golang.org/api/logging/v2beta1" import ( @@ -56,8 +70,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -74,11 +90,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "logging:v2beta1" const apiName = "logging" const apiVersion = "v2beta1" const basePath = "https://logging.googleapis.com/" +const basePathTemplate = "https://logging.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -100,7 +119,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/logging.admin", @@ -109,6 +128,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -209,144 +231,132 @@ type ProjectsSinksService struct { s *Service } -// BucketOptions: BucketOptions describes the bucket boundaries used to -// create a histogram for the distribution. The buckets can be in a -// linear sequence, an exponential sequence, or each bucket can be -// specified explicitly. BucketOptions does not include the number of -// values in each bucket.A bucket has an inclusive lower bound and -// exclusive upper bound for the values that are counted for that -// bucket. The upper bound of a bucket must be strictly greater than the -// lower bound. The sequence of N buckets for a distribution consists of -// an underflow bucket (number 0), zero or more finite buckets (number 1 -// through N - 2) and an overflow bucket (number N - 1). The buckets are -// contiguous: the lower bound of bucket i (i > 0) is the same as the -// upper bound of bucket i - 1. The buckets span the whole range of -// finite values: lower bound of the underflow bucket is -infinity and -// the upper bound of the overflow bucket is +infinity. The finite -// buckets are so-called because both bounds are finite. +// BucketOptions: BucketOptions describes the bucket boundaries used to create +// a histogram for the distribution. The buckets can be in a linear sequence, +// an exponential sequence, or each bucket can be specified explicitly. +// BucketOptions does not include the number of values in each bucket.A bucket +// has an inclusive lower bound and exclusive upper bound for the values that +// are counted for that bucket. The upper bound of a bucket must be strictly +// greater than the lower bound. The sequence of N buckets for a distribution +// consists of an underflow bucket (number 0), zero or more finite buckets +// (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets +// are contiguous: the lower bound of bucket i (i > 0) is the same as the upper +// bound of bucket i - 1. The buckets span the whole range of finite values: +// lower bound of the underflow bucket is -infinity and the upper bound of the +// overflow bucket is +infinity. The finite buckets are so-called because both +// bounds are finite. type BucketOptions struct { // ExplicitBuckets: The explicit buckets. ExplicitBuckets *Explicit `json:"explicitBuckets,omitempty"` - // ExponentialBuckets: The exponential buckets. ExponentialBuckets *Exponential `json:"exponentialBuckets,omitempty"` - // LinearBuckets: The linear bucket. LinearBuckets *Linear `json:"linearBuckets,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExplicitBuckets") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExplicitBuckets") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExplicitBuckets") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketOptions) MarshalJSON() ([]byte, error) { +func (s BucketOptions) MarshalJSON() ([]byte, error) { type NoMethod BucketOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: // // service Foo { -// rpc Bar(google.protobuf.Empty) returns +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); +// } // -// (google.protobuf.Empty); -// } // The JSON representation for Empty is empty JSON object {}. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // Explicit: Specifies a set of buckets with arbitrary widths.There are -// size(bounds) + 1 (= N) buckets. Bucket i has the following -// boundaries:Upper bound (0 <= i < N-1): boundsi Lower bound (1 <= i < -// N); boundsi - 1The bounds field must contain at least one element. If -// bounds has only one element, then there are no finite buckets, and -// that single element is the common boundary of the overflow and -// underflow buckets. +// size(bounds) + 1 (= N) buckets. Bucket i has the following boundaries:Upper +// bound (0 <= i < N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The +// bounds field must contain at least one element. If bounds has only one +// element, then there are no finite buckets, and that single element is the +// common boundary of the overflow and underflow buckets. type Explicit struct { // Bounds: The values must be monotonically increasing. Bounds []float64 `json:"bounds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Bounds") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bounds") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bounds") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Explicit) MarshalJSON() ([]byte, error) { +func (s Explicit) MarshalJSON() ([]byte, error) { type NoMethod Explicit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *Explicit) UnmarshalJSON(data []byte) error { + type NoMethod Explicit + var s1 struct { + Bounds []gensupport.JSONFloat64 `json:"bounds"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Bounds = make([]float64, len(s1.Bounds)) + for i := range s1.Bounds { + s.Bounds[i] = float64(s1.Bounds[i]) + } + return nil } -// Exponential: Specifies an exponential sequence of buckets that have a -// width that is proportional to the value of the lower bound. Each -// bucket represents a constant relative uncertainty on a specific value -// in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket -// i has the following boundaries:Upper bound (0 <= i < N-1): scale * -// (growth_factor ^ i). Lower bound (1 <= i < N): scale * -// (growth_factor ^ (i - 1)). +// Exponential: Specifies an exponential sequence of buckets that have a width +// that is proportional to the value of the lower bound. Each bucket represents +// a constant relative uncertainty on a specific value in the bucket.There are +// num_finite_buckets + 2 (= N) buckets. Bucket i has the following +// boundaries:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower +// bound (1 <= i < N): scale * (growth_factor ^ (i - 1)). type Exponential struct { // GrowthFactor: Must be greater than 1. GrowthFactor float64 `json:"growthFactor,omitempty"` - // NumFiniteBuckets: Must be greater than 0. NumFiniteBuckets int64 `json:"numFiniteBuckets,omitempty"` - // Scale: Must be greater than 0. Scale float64 `json:"scale,omitempty"` - // ForceSendFields is a list of field names (e.g. "GrowthFactor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GrowthFactor") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GrowthFactor") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Exponential) MarshalJSON() ([]byte, error) { +func (s Exponential) MarshalJSON() ([]byte, error) { type NoMethod Exponential - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Exponential) UnmarshalJSON(data []byte) error { @@ -369,102 +379,76 @@ func (s *Exponential) UnmarshalJSON(data []byte) error { // semantics defined by the HTTP specification. Product-specific logging // information MUST be defined in a separate message. type HttpRequest struct { - // CacheFillBytes: The number of HTTP response bytes inserted into - // cache. Set only when a cache fill was attempted. + // CacheFillBytes: The number of HTTP response bytes inserted into cache. Set + // only when a cache fill was attempted. CacheFillBytes int64 `json:"cacheFillBytes,omitempty,string"` - - // CacheHit: Whether or not an entity was served from cache (with or - // without validation). + // CacheHit: Whether or not an entity was served from cache (with or without + // validation). CacheHit bool `json:"cacheHit,omitempty"` - // CacheLookup: Whether or not a cache lookup was attempted. CacheLookup bool `json:"cacheLookup,omitempty"` - - // CacheValidatedWithOriginServer: Whether or not the response was - // validated with the origin server before being served from cache. This - // field is only meaningful if cache_hit is True. + // CacheValidatedWithOriginServer: Whether or not the response was validated + // with the origin server before being served from cache. This field is only + // meaningful if cache_hit is True. CacheValidatedWithOriginServer bool `json:"cacheValidatedWithOriginServer,omitempty"` - - // Latency: The request processing latency on the server, from the time - // the request was received until the response was sent. + // Latency: The request processing latency on the server, from the time the + // request was received until the response was sent. Latency string `json:"latency,omitempty"` - - // Protocol: Protocol used for the request. Examples: "HTTP/1.1", - // "HTTP/2", "websocket" + // Protocol: Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", + // "websocket" Protocol string `json:"protocol,omitempty"` - - // Referer: The referer URL of the request, as defined in HTTP/1.1 - // Header Field Definitions - // (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). + // Referer: The referer URL of the request, as defined in HTTP/1.1 Header Field + // Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). Referer string `json:"referer,omitempty"` - - // RemoteIp: The IP address (IPv4 or IPv6) of the client that issued the - // HTTP request. Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329". + // RemoteIp: The IP address (IPv4 or IPv6) of the client that issued the HTTP + // request. Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329". RemoteIp string `json:"remoteIp,omitempty"` - - // RequestMethod: The request method. Examples: "GET", "HEAD", "PUT", - // "POST". + // RequestMethod: The request method. Examples: "GET", "HEAD", "PUT", "POST". RequestMethod string `json:"requestMethod,omitempty"` - - // RequestSize: The size of the HTTP request message in bytes, including - // the request headers and the request body. + // RequestSize: The size of the HTTP request message in bytes, including the + // request headers and the request body. RequestSize int64 `json:"requestSize,omitempty,string"` - - // RequestUrl: The scheme (http, https), the host name, the path and the - // query portion of the URL that was requested. Example: + // RequestUrl: The scheme (http, https), the host name, the path and the query + // portion of the URL that was requested. Example: // "http://example.com/some/info?color=red". RequestUrl string `json:"requestUrl,omitempty"` - - // ResponseSize: The size of the HTTP response message sent back to the - // client, in bytes, including the response headers and the response - // body. + // ResponseSize: The size of the HTTP response message sent back to the client, + // in bytes, including the response headers and the response body. ResponseSize int64 `json:"responseSize,omitempty,string"` - // ServerIp: The IP address (IPv4 or IPv6) of the origin server that the // request was sent to. ServerIp string `json:"serverIp,omitempty"` - - // Status: The response code indicating the status of response. - // Examples: 200, 404. + // Status: The response code indicating the status of response. Examples: 200, + // 404. Status int64 `json:"status,omitempty"` - // UserAgent: The user agent sent by the client. Example: "Mozilla/4.0 // (compatible; MSIE 6.0; Windows 98; Q312461; .NET // CLR 1.0.3705)". UserAgent string `json:"userAgent,omitempty"` - // ForceSendFields is a list of field names (e.g. "CacheFillBytes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CacheFillBytes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CacheFillBytes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HttpRequest) MarshalJSON() ([]byte, error) { +func (s HttpRequest) MarshalJSON() ([]byte, error) { type NoMethod HttpRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LabelDescriptor: A description of a label. type LabelDescriptor struct { // Description: A human-readable description for the label. Description string `json:"description,omitempty"` - // Key: The label key. Key string `json:"key,omitempty"` - // ValueType: The type of data that can be assigned to the label. // // Possible values: @@ -472,68 +456,53 @@ type LabelDescriptor struct { // "BOOL" - Boolean; true or false. // "INT64" - A 64-bit signed integer. ValueType string `json:"valueType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LabelDescriptor) MarshalJSON() ([]byte, error) { +func (s LabelDescriptor) MarshalJSON() ([]byte, error) { type NoMethod LabelDescriptor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Linear: Specifies a linear sequence of buckets that all have the same -// width (except overflow and underflow). Each bucket represents a -// constant absolute uncertainty on the specific value in the -// bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has -// the following boundaries:Upper bound (0 <= i < N-1): offset + (width -// * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). +// Linear: Specifies a linear sequence of buckets that all have the same width +// (except overflow and underflow). Each bucket represents a constant absolute +// uncertainty on the specific value in the bucket.There are num_finite_buckets +// + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i +// < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * +// (i - 1)). type Linear struct { // NumFiniteBuckets: Must be greater than 0. NumFiniteBuckets int64 `json:"numFiniteBuckets,omitempty"` - // Offset: Lower bound of the first bucket. Offset float64 `json:"offset,omitempty"` - // Width: Must be greater than 0. Width float64 `json:"width,omitempty"` - // ForceSendFields is a list of field names (e.g. "NumFiniteBuckets") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NumFiniteBuckets") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NumFiniteBuckets") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Linear) MarshalJSON() ([]byte, error) { +func (s Linear) MarshalJSON() ([]byte, error) { type NoMethod Linear - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Linear) UnmarshalJSON(data []byte) error { @@ -554,830 +523,661 @@ func (s *Linear) UnmarshalJSON(data []byte) error { // ListLogEntriesRequest: The parameters to ListLogEntries. type ListLogEntriesRequest struct { - // Filter: Optional. A filter that chooses which log entries to return. - // See Advanced Logs Filters. Only log entries that match the filter are - // returned. An empty filter matches all log entries in the resources - // listed in resource_names. Referencing a parent resource that is not - // listed in resource_names will cause the filter to return no results. - // The maximum length of the filter is 20000 characters. + // Filter: Optional. A filter that chooses which log entries to return. See + // Advanced Logs Filters. Only log entries that match the filter are returned. + // An empty filter matches all log entries in the resources listed in + // resource_names. Referencing a parent resource that is not listed in + // resource_names will cause the filter to return no results. The maximum + // length of the filter is 20000 characters. Filter string `json:"filter,omitempty"` - - // OrderBy: Optional. How the results should be sorted. Presently, the - // only permitted values are "timestamp asc" (default) and "timestamp - // desc". The first option returns entries in order of increasing values - // of LogEntry.timestamp (oldest first), and the second option returns - // entries in order of decreasing timestamps (newest first). Entries - // with equal timestamps are returned in order of their insert_id - // values. + // OrderBy: Optional. How the results should be sorted. Presently, the only + // permitted values are "timestamp asc" (default) and "timestamp desc". The + // first option returns entries in order of increasing values of + // LogEntry.timestamp (oldest first), and the second option returns entries in + // order of decreasing timestamps (newest first). Entries with equal timestamps + // are returned in order of their insert_id values. OrderBy string `json:"orderBy,omitempty"` - // PageSize: Optional. The maximum number of results to return from this - // request. Non-positive values are ignored. The presence of - // next_page_token in the response indicates that more results might be - // available. + // request. Non-positive values are ignored. The presence of next_page_token in + // the response indicates that more results might be available. PageSize int64 `json:"pageSize,omitempty"` - - // PageToken: Optional. If present, then retrieve the next batch of - // results from the preceding call to this method. page_token must be - // the value of next_page_token from the previous response. The values - // of other method parameters should be identical to those in the - // previous call. + // PageToken: Optional. If present, then retrieve the next batch of results + // from the preceding call to this method. page_token must be the value of + // next_page_token from the previous response. The values of other method + // parameters should be identical to those in the previous call. PageToken string `json:"pageToken,omitempty"` - - // ProjectIds: Deprecated. Use resource_names instead. One or more - // project identifiers or project numbers from which to retrieve log - // entries. Example: "my-project-1A". + // ProjectIds: Deprecated. Use resource_names instead. One or more project + // identifiers or project numbers from which to retrieve log entries. Example: + // "my-project-1A". ProjectIds []string `json:"projectIds,omitempty"` - - // ResourceNames: Required. Names of one or more parent resources from - // which to retrieve log + // ResourceNames: Required. Names of one or more parent resources from which to + // retrieve log // entries: // "projects/[PROJECT_ID]" // "organizations/[ORGANIZATION_ID]" - // "bi - // llingAccounts/[BILLING_ACCOUNT_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]" // "folders/[FOLDER_ID]" // Projects listed in the project_ids field are added to this list. ResourceNames []string `json:"resourceNames,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLogEntriesRequest) MarshalJSON() ([]byte, error) { +func (s ListLogEntriesRequest) MarshalJSON() ([]byte, error) { type NoMethod ListLogEntriesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListLogEntriesResponse: Result returned from ListLogEntries. type ListLogEntriesResponse struct { - // Entries: A list of log entries. If entries is empty, nextPageToken - // may still be returned, indicating that more entries may exist. See - // nextPageToken for more information. + // Entries: A list of log entries. If entries is empty, nextPageToken may still + // be returned, indicating that more entries may exist. See nextPageToken for + // more information. Entries []*LogEntry `json:"entries,omitempty"` - - // NextPageToken: If there might be more results than those appearing in - // this response, then nextPageToken is included. To get the next set of - // results, call this method again using the value of nextPageToken as - // pageToken.If a value for next_page_token appears and the entries - // field is empty, it means that the search found no log entries so far - // but it did not have time to search all the possible log entries. - // Retry the method with this value for page_token to continue the - // search. Alternatively, consider speeding up the search by changing - // your filter to specify a single log name or resource type, or to - // narrow the time range of the search. + // NextPageToken: If there might be more results than those appearing in this + // response, then nextPageToken is included. To get the next set of results, + // call this method again using the value of nextPageToken as pageToken.If a + // value for next_page_token appears and the entries field is empty, it means + // that the search found no log entries so far but it did not have time to + // search all the possible log entries. Retry the method with this value for + // page_token to continue the search. Alternatively, consider speeding up the + // search by changing your filter to specify a single log name or resource + // type, or to narrow the time range of the search. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Entries") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entries") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Entries") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Entries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLogEntriesResponse) MarshalJSON() ([]byte, error) { +func (s ListLogEntriesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLogEntriesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListLogMetricsResponse: Result returned from ListLogMetrics. type ListLogMetricsResponse struct { // Metrics: A list of logs-based metrics. Metrics []*LogMetric `json:"metrics,omitempty"` - - // NextPageToken: If there might be more results than appear in this - // response, then nextPageToken is included. To get the next set of - // results, call this method again using the value of nextPageToken as - // pageToken. + // NextPageToken: If there might be more results than appear in this response, + // then nextPageToken is included. To get the next set of results, call this + // method again using the value of nextPageToken as pageToken. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Metrics") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Metrics") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Metrics") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLogMetricsResponse) MarshalJSON() ([]byte, error) { +func (s ListLogMetricsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLogMetricsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListMonitoredResourceDescriptorsResponse: Result returned from // ListMonitoredResourceDescriptors. type ListMonitoredResourceDescriptorsResponse struct { - // NextPageToken: If there might be more results than those appearing in - // this response, then nextPageToken is included. To get the next set of - // results, call this method again using the value of nextPageToken as - // pageToken. + // NextPageToken: If there might be more results than those appearing in this + // response, then nextPageToken is included. To get the next set of results, + // call this method again using the value of nextPageToken as pageToken. NextPageToken string `json:"nextPageToken,omitempty"` - // ResourceDescriptors: A list of resource descriptors. ResourceDescriptors []*MonitoredResourceDescriptor `json:"resourceDescriptors,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListMonitoredResourceDescriptorsResponse) MarshalJSON() ([]byte, error) { +func (s ListMonitoredResourceDescriptorsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListMonitoredResourceDescriptorsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListSinksResponse: Result returned from ListSinks. type ListSinksResponse struct { - // NextPageToken: If there might be more results than appear in this - // response, then nextPageToken is included. To get the next set of - // results, call the same method again using the value of nextPageToken - // as pageToken. + // NextPageToken: If there might be more results than appear in this response, + // then nextPageToken is included. To get the next set of results, call the + // same method again using the value of nextPageToken as pageToken. NextPageToken string `json:"nextPageToken,omitempty"` - // Sinks: A list of sinks. Sinks []*LogSink `json:"sinks,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListSinksResponse) MarshalJSON() ([]byte, error) { +func (s ListSinksResponse) MarshalJSON() ([]byte, error) { type NoMethod ListSinksResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LogEntry: An individual entry in a log. type LogEntry struct { - // HttpRequest: Optional. Information about the HTTP request associated - // with this log entry, if applicable. + // HttpRequest: Optional. Information about the HTTP request associated with + // this log entry, if applicable. HttpRequest *HttpRequest `json:"httpRequest,omitempty"` - - // InsertId: Optional. A unique identifier for the log entry. If you - // provide a value, then Logging considers other log entries in the same - // project, with the same timestamp, and with the same insert_id to be - // duplicates which can be removed. If omitted in new log entries, then - // Logging assigns its own unique identifier. The insert_id is also used - // to order log entries that have the same timestamp value. + // InsertId: Optional. A unique identifier for the log entry. If you provide a + // value, then Logging considers other log entries in the same project, with + // the same timestamp, and with the same insert_id to be duplicates which can + // be removed. If omitted in new log entries, then Logging assigns its own + // unique identifier. The insert_id is also used to order log entries that have + // the same timestamp value. InsertId string `json:"insertId,omitempty"` - - // JsonPayload: The log entry payload, represented as a structure that - // is expressed as a JSON object. + // JsonPayload: The log entry payload, represented as a structure that is + // expressed as a JSON object. JsonPayload googleapi.RawMessage `json:"jsonPayload,omitempty"` - - // Labels: Optional. A set of user-defined (key, value) data that - // provides additional information about the log entry. + // Labels: Optional. A set of user-defined (key, value) data that provides + // additional information about the log entry. Labels map[string]string `json:"labels,omitempty"` - - // LogName: Required. The resource name of the log to which this log - // entry + // LogName: Required. The resource name of the log to which this log entry // belongs: // "projects/[PROJECT_ID]/logs/[LOG_ID]" - // "organizations/[ORGANIZ - // ATION_ID]/logs/[LOG_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[L - // OG_ID]" + // "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" // "folders/[FOLDER_ID]/logs/[LOG_ID]" - // A project number may optionally be used in place of PROJECT_ID. The - // project number is translated to its corresponding PROJECT_ID - // internally and the log_name field will contain PROJECT_ID in queries - // and exports.[LOG_ID] must be URL-encoded within log_name. Example: - // "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Fa - // ctivity". [LOG_ID] must be less than 512 characters long and can only - // include the following characters: upper and lower case alphanumeric - // characters, forward-slash, underscore, hyphen, and period.For - // backward compatibility, if log_name begins with a forward-slash, such - // as /projects/..., then the log entry is ingested as usual but the - // forward-slash is removed. Listing the log entry will not show the - // leading slash and filtering for a log name with a leading slash will - // never return any results. + // A project number may optionally be used in place of PROJECT_ID. The project + // number is translated to its corresponding PROJECT_ID internally and the + // log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must + // be URL-encoded within log_name. Example: + // "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity + // ". [LOG_ID] must be less than 512 characters long and can only include the + // following characters: upper and lower case alphanumeric characters, + // forward-slash, underscore, hyphen, and period.For backward compatibility, if + // log_name begins with a forward-slash, such as /projects/..., then the log + // entry is ingested as usual but the forward-slash is removed. Listing the log + // entry will not show the leading slash and filtering for a log name with a + // leading slash will never return any results. LogName string `json:"logName,omitempty"` - - // Metadata: Deprecated. Output only. Additional metadata about the - // monitored resource.Only k8s_container, k8s_pod, and k8s_node - // MonitoredResources have this field populated for GKE versions older - // than 1.12.6. For GKE versions 1.12.6 and above, the metadata field - // has been deprecated. The Kubernetes pod labels that used to be in - // metadata.userLabels will now be present in the labels field with a - // key prefix of k8s-pod/. The Stackdriver system labels that were - // present in the metadata.systemLabels field will no longer be + // Metadata: Deprecated. Output only. Additional metadata about the monitored + // resource.Only k8s_container, k8s_pod, and k8s_node MonitoredResources have + // this field populated for GKE versions older than 1.12.6. For GKE versions + // 1.12.6 and above, the metadata field has been deprecated. The Kubernetes pod + // labels that used to be in metadata.userLabels will now be present in the + // labels field with a key prefix of k8s-pod/. The Stackdriver system labels + // that were present in the metadata.systemLabels field will no longer be // available in the LogEntry. Metadata *MonitoredResourceMetadata `json:"metadata,omitempty"` - - // Operation: Optional. Information about an operation associated with - // the log entry, if applicable. + // Operation: Optional. Information about an operation associated with the log + // entry, if applicable. Operation *LogEntryOperation `json:"operation,omitempty"` - - // ProtoPayload: The log entry payload, represented as a protocol - // buffer. Some Google Cloud Platform services use this field for their - // log entry payloads. + // ProtoPayload: The log entry payload, represented as a protocol buffer. Some + // Google Cloud Platform services use this field for their log entry payloads. ProtoPayload googleapi.RawMessage `json:"protoPayload,omitempty"` - // ReceiveTimestamp: Output only. The time the log entry was received by // Logging. ReceiveTimestamp string `json:"receiveTimestamp,omitempty"` - - // Resource: Required. The primary monitored resource associated with - // this log entry.Example: a log entry that reports a database error - // would be associated with the monitored resource designating the - // particular database that reported the error. + // Resource: Required. The primary monitored resource associated with this log + // entry.Example: a log entry that reports a database error would be associated + // with the monitored resource designating the particular database that + // reported the error. Resource *MonitoredResource `json:"resource,omitempty"` - - // Severity: Optional. The severity of the log entry. The default value - // is LogSeverity.DEFAULT. + // Severity: Optional. The severity of the log entry. The default value is + // LogSeverity.DEFAULT. // // Possible values: // "DEFAULT" - (0) The log entry has no assigned severity level. // "DEBUG" - (100) Debug or trace information. - // "INFO" - (200) Routine information, such as ongoing status or - // performance. - // "NOTICE" - (300) Normal but significant events, such as start up, - // shut down, or a configuration change. + // "INFO" - (200) Routine information, such as ongoing status or performance. + // "NOTICE" - (300) Normal but significant events, such as start up, shut + // down, or a configuration change. // "WARNING" - (400) Warning events might cause problems. // "ERROR" - (500) Error events are likely to cause problems. - // "CRITICAL" - (600) Critical events cause more severe problems or - // outages. + // "CRITICAL" - (600) Critical events cause more severe problems or outages. // "ALERT" - (700) A person must take an action immediately. // "EMERGENCY" - (800) One or more systems are unusable. Severity string `json:"severity,omitempty"` - - // SourceLocation: Optional. Source code location information associated - // with the log entry, if any. + // SourceLocation: Optional. Source code location information associated with + // the log entry, if any. SourceLocation *LogEntrySourceLocation `json:"sourceLocation,omitempty"` - - // SpanId: Optional. The span ID within the trace associated with the - // log entry.For Trace spans, this is the same format that the Trace API - // v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such - // as "000000000000004a". + // SpanId: Optional. The span ID within the trace associated with the log + // entry.For Trace spans, this is the same format that the Trace API v2 uses: a + // 16-character hexadecimal encoding of an 8-byte array, such as + // "000000000000004a". SpanId string `json:"spanId,omitempty"` - - // TextPayload: The log entry payload, represented as a Unicode string - // (UTF-8). + // TextPayload: The log entry payload, represented as a Unicode string (UTF-8). TextPayload string `json:"textPayload,omitempty"` - - // Timestamp: Optional. The time the event described by the log entry - // occurred. This time is used to compute the log entry's age and to - // enforce the logs retention period. If this field is omitted in a new - // log entry, then Logging assigns it the current time. Timestamps have - // nanosecond accuracy, but trailing zeros in the fractional seconds - // might be omitted when the timestamp is displayed.Incoming log entries - // should have timestamps that are no more than the logs retention - // period in the past, and no more than 24 hours in the future. Log - // entries outside those time boundaries will not be available when - // calling entries.list, but those log entries can still be exported - // with LogSinks. + // Timestamp: Optional. The time the event described by the log entry occurred. + // This time is used to compute the log entry's age and to enforce the logs + // retention period. If this field is omitted in a new log entry, then Logging + // assigns it the current time. Timestamps have nanosecond accuracy, but + // trailing zeros in the fractional seconds might be omitted when the timestamp + // is displayed.Incoming log entries should have timestamps that are no more + // than the logs retention period in the past, and no more than 24 hours in the + // future. Log entries outside those time boundaries will not be available when + // calling entries.list, but those log entries can still be exported with + // LogSinks. Timestamp string `json:"timestamp,omitempty"` - - // Trace: Optional. Resource name of the trace associated with the log - // entry, if any. If it contains a relative resource name, the name is - // assumed to be relative to //tracing.googleapis.com. Example: + // Trace: Optional. Resource name of the trace associated with the log entry, + // if any. If it contains a relative resource name, the name is assumed to be + // relative to //tracing.googleapis.com. Example: // projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824 Trace string `json:"trace,omitempty"` - - // TraceSampled: Optional. The sampling decision of the trace associated - // with the log entry.True means that the trace resource name in the - // trace field was sampled for storage in a trace backend. False means - // that the trace was not sampled for storage when this log entry was - // written, or the sampling decision was unknown at the time. A - // non-sampled trace value is still useful as a request correlation - // identifier. The default is False. + // TraceSampled: Optional. The sampling decision of the trace associated with + // the log entry.True means that the trace resource name in the trace field was + // sampled for storage in a trace backend. False means that the trace was not + // sampled for storage when this log entry was written, or the sampling + // decision was unknown at the time. A non-sampled trace value is still useful + // as a request correlation identifier. The default is False. TraceSampled bool `json:"traceSampled,omitempty"` - // ForceSendFields is a list of field names (e.g. "HttpRequest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HttpRequest") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HttpRequest") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogEntry) MarshalJSON() ([]byte, error) { +func (s LogEntry) MarshalJSON() ([]byte, error) { type NoMethod LogEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LogEntryOperation: Additional information about a potentially -// long-running operation with which a log entry is associated. +// LogEntryOperation: Additional information about a potentially long-running +// operation with which a log entry is associated. type LogEntryOperation struct { - // First: Optional. Set this to True if this is the first log entry in - // the operation. + // First: Optional. Set this to True if this is the first log entry in the + // operation. First bool `json:"first,omitempty"` - - // Id: Optional. An arbitrary operation identifier. Log entries with the - // same identifier are assumed to be part of the same operation. + // Id: Optional. An arbitrary operation identifier. Log entries with the same + // identifier are assumed to be part of the same operation. Id string `json:"id,omitempty"` - // Last: Optional. Set this to True if this is the last log entry in the // operation. Last bool `json:"last,omitempty"` - - // Producer: Optional. An arbitrary producer identifier. The combination - // of id and producer must be globally unique. Examples for producer: + // Producer: Optional. An arbitrary producer identifier. The combination of id + // and producer must be globally unique. Examples for producer: // "MyDivision.MyBigCompany.com", "github.com/MyProject/MyApplication". Producer string `json:"producer,omitempty"` - - // ForceSendFields is a list of field names (e.g. "First") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "First") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "First") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogEntryOperation) MarshalJSON() ([]byte, error) { +func (s LogEntryOperation) MarshalJSON() ([]byte, error) { type NoMethod LogEntryOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LogEntrySourceLocation: Additional information about the source code // location that produced the log entry. type LogEntrySourceLocation struct { - // File: Optional. Source file name. Depending on the runtime - // environment, this might be a simple name or a fully-qualified name. + // File: Optional. Source file name. Depending on the runtime environment, this + // might be a simple name or a fully-qualified name. File string `json:"file,omitempty"` - - // Function: Optional. Human-readable name of the function or method - // being invoked, with optional context such as the class or package - // name. This information may be used in contexts such as the logs - // viewer, where a file and line number are less meaningful. The format - // can vary by language. For example: qual.if.ied.Class.method (Java), - // dir/package.func (Go), function (Python). + // Function: Optional. Human-readable name of the function or method being + // invoked, with optional context such as the class or package name. This + // information may be used in contexts such as the logs viewer, where a file + // and line number are less meaningful. The format can vary by language. For + // example: qual.if.ied.Class.method (Java), dir/package.func (Go), function + // (Python). Function string `json:"function,omitempty"` - - // Line: Optional. Line within the source file. 1-based; 0 indicates no - // line number available. + // Line: Optional. Line within the source file. 1-based; 0 indicates no line + // number available. Line int64 `json:"line,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "File") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "File") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "File") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "File") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogEntrySourceLocation) MarshalJSON() ([]byte, error) { +func (s LogEntrySourceLocation) MarshalJSON() ([]byte, error) { type NoMethod LogEntrySourceLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LogLine: Application log line emitted while processing a request. type LogLine struct { // LogMessage: App-provided log message. LogMessage string `json:"logMessage,omitempty"` - // Severity: Severity of this log entry. // // Possible values: // "DEFAULT" - (0) The log entry has no assigned severity level. // "DEBUG" - (100) Debug or trace information. - // "INFO" - (200) Routine information, such as ongoing status or - // performance. - // "NOTICE" - (300) Normal but significant events, such as start up, - // shut down, or a configuration change. + // "INFO" - (200) Routine information, such as ongoing status or performance. + // "NOTICE" - (300) Normal but significant events, such as start up, shut + // down, or a configuration change. // "WARNING" - (400) Warning events might cause problems. // "ERROR" - (500) Error events are likely to cause problems. - // "CRITICAL" - (600) Critical events cause more severe problems or - // outages. + // "CRITICAL" - (600) Critical events cause more severe problems or outages. // "ALERT" - (700) A person must take an action immediately. // "EMERGENCY" - (800) One or more systems are unusable. Severity string `json:"severity,omitempty"` - - // SourceLocation: Where in the source code this log message was - // written. + // SourceLocation: Where in the source code this log message was written. SourceLocation *SourceLocation `json:"sourceLocation,omitempty"` - // Time: Approximate time when this log entry was made. Time string `json:"time,omitempty"` - // ForceSendFields is a list of field names (e.g. "LogMessage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogMessage") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LogMessage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogLine) MarshalJSON() ([]byte, error) { +func (s LogLine) MarshalJSON() ([]byte, error) { type NoMethod LogLine - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LogMetric: Describes a logs-based metric. The value of the metric is -// the number of log entries that match a logs filter in a given time -// interval.Logs-based metric can also be used to extract values from -// logs and create a a distribution of the values. The distribution -// records the statistics of the extracted values along with an optional -// histogram of the values as specified by the bucket options. +// LogMetric: Describes a logs-based metric. The value of the metric is the +// number of log entries that match a logs filter in a given time +// interval.Logs-based metric can also be used to extract values from logs and +// create a a distribution of the values. The distribution records the +// statistics of the extracted values along with an optional histogram of the +// values as specified by the bucket options. type LogMetric struct { - // BucketOptions: Optional. The bucket_options are required when the - // logs-based metric is using a DISTRIBUTION value type and it describes - // the bucket boundaries used to create a histogram of the extracted - // values. + // BucketOptions: Optional. The bucket_options are required when the logs-based + // metric is using a DISTRIBUTION value type and it describes the bucket + // boundaries used to create a histogram of the extracted values. BucketOptions *BucketOptions `json:"bucketOptions,omitempty"` - - // CreateTime: Output only. The creation timestamp of the metric.This - // field may not be present for older metrics. + // CreateTime: Output only. The creation timestamp of the metric.This field may + // not be present for older metrics. CreateTime string `json:"createTime,omitempty"` - // Description: Optional. A description of this metric, which is used in - // documentation. The maximum length of the description is 8000 - // characters. + // documentation. The maximum length of the description is 8000 characters. Description string `json:"description,omitempty"` - // Filter: Required. An advanced logs filter which is used to match log // entries. Example: // "resource.type=gae_app AND severity>=ERROR" // The maximum length of the filter is 20000 characters. Filter string `json:"filter,omitempty"` - - // LabelExtractors: Optional. A map from a label key string to an - // extractor expression which is used to extract data from a log entry - // field and assign as the label value. Each label key specified in the - // LabelDescriptor must have an associated extractor expression in this - // map. The syntax of the extractor expression is the same as for the - // value_extractor field.The extracted value is converted to the type - // defined in the label descriptor. If the either the extraction or the - // type conversion fails, the label will have a default value. The - // default value for a string label is an empty string, for an integer - // label its 0, and for a boolean label its false.Note that there are - // upper bounds on the maximum number of labels and the number of active - // time series that are allowed in a project. + // LabelExtractors: Optional. A map from a label key string to an extractor + // expression which is used to extract data from a log entry field and assign + // as the label value. Each label key specified in the LabelDescriptor must + // have an associated extractor expression in this map. The syntax of the + // extractor expression is the same as for the value_extractor field.The + // extracted value is converted to the type defined in the label descriptor. If + // the either the extraction or the type conversion fails, the label will have + // a default value. The default value for a string label is an empty string, + // for an integer label its 0, and for a boolean label its false.Note that + // there are upper bounds on the maximum number of labels and the number of + // active time series that are allowed in a project. LabelExtractors map[string]string `json:"labelExtractors,omitempty"` - // MetricDescriptor: Optional. The metric descriptor associated with the - // logs-based metric. If unspecified, it uses a default metric - // descriptor with a DELTA metric kind, INT64 value type, with no labels - // and a unit of "1". Such a metric counts the number of log entries - // matching the filter expression.The name, type, and description fields - // in the metric_descriptor are output only, and is constructed using - // the name and description field in the LogMetric.To create a - // logs-based metric that records a distribution of log values, a DELTA - // metric kind with a DISTRIBUTION value type must be used along with a - // value_extractor expression in the LogMetric.Each label in the metric - // descriptor must have a matching label name as the key and an + // logs-based metric. If unspecified, it uses a default metric descriptor with + // a DELTA metric kind, INT64 value type, with no labels and a unit of "1". + // Such a metric counts the number of log entries matching the filter + // expression.The name, type, and description fields in the metric_descriptor + // are output only, and is constructed using the name and description field in + // the LogMetric.To create a logs-based metric that records a distribution of + // log values, a DELTA metric kind with a DISTRIBUTION value type must be used + // along with a value_extractor expression in the LogMetric.Each label in the + // metric descriptor must have a matching label name as the key and an // extractor expression as the value in the label_extractors map.The - // metric_kind and value_type fields in the metric_descriptor cannot be - // updated once initially configured. New labels can be added in the - // metric_descriptor, but existing labels cannot be modified except for - // their description. + // metric_kind and value_type fields in the metric_descriptor cannot be updated + // once initially configured. New labels can be added in the metric_descriptor, + // but existing labels cannot be modified except for their description. MetricDescriptor *MetricDescriptor `json:"metricDescriptor,omitempty"` - // Name: Required. The client-assigned metric identifier. Examples: // "error_count", "nginx/requests".Metric identifiers are limited to 100 - // characters and can include only the following characters: A-Z, a-z, - // 0-9, and the special characters _-.,+!*',()%/. The forward-slash - // character (/) denotes a hierarchy of name pieces, and it cannot be - // the first character of the name.The metric identifier in this field - // must not be URL-encoded - // (https://en.wikipedia.org/wiki/Percent-encoding). However, when the - // metric identifier appears as the [METRIC_ID] part of a metric_name - // API parameter, then the metric identifier must be URL-encoded. - // Example: "projects/my-project/metrics/nginx%2Frequests". + // characters and can include only the following characters: A-Z, a-z, 0-9, and + // the special characters _-.,+!*',()%/. The forward-slash character (/) + // denotes a hierarchy of name pieces, and it cannot be the first character of + // the name.The metric identifier in this field must not be URL-encoded + // (https://en.wikipedia.org/wiki/Percent-encoding). However, when the metric + // identifier appears as the [METRIC_ID] part of a metric_name API parameter, + // then the metric identifier must be URL-encoded. Example: + // "projects/my-project/metrics/nginx%2Frequests". Name string `json:"name,omitempty"` - - // UpdateTime: Output only. The last update timestamp of the metric.This - // field may not be present for older metrics. + // UpdateTime: Output only. The last update timestamp of the metric.This field + // may not be present for older metrics. UpdateTime string `json:"updateTime,omitempty"` - // ValueExtractor: Optional. A value_extractor is required when using a - // distribution logs-based metric to extract the values to record from a - // log entry. Two functions are supported for value extraction: - // EXTRACT(field) or REGEXP_EXTRACT(field, regex). The argument are: 1. - // field: The name of the log entry field from which the value is to be - // extracted. 2. regex: A regular expression using the Google RE2 - // syntax (https://github.com/google/re2/wiki/Syntax) with a single - // capture group to extract data from the specified log entry field. - // The value of the field is converted to a string before applying the - // regex. It is an error to specify a regex that does not include - // exactly one capture group.The result of the extraction must be - // convertible to a double type, as the distribution always records - // double values. If either the extraction or the conversion to double - // fails, then those values are not recorded in the - // distribution.Example: REGEXP_EXTRACT(jsonPayload.request, - // ".*quantity=(\d+).*") + // distribution logs-based metric to extract the values to record from a log + // entry. Two functions are supported for value extraction: EXTRACT(field) or + // REGEXP_EXTRACT(field, regex). The argument are: 1. field: The name of the + // log entry field from which the value is to be extracted. 2. regex: A + // regular expression using the Google RE2 syntax + // (https://github.com/google/re2/wiki/Syntax) with a single capture group to + // extract data from the specified log entry field. The value of the field is + // converted to a string before applying the regex. It is an error to specify + // a regex that does not include exactly one capture group.The result of the + // extraction must be convertible to a double type, as the distribution always + // records double values. If either the extraction or the conversion to double + // fails, then those values are not recorded in the distribution.Example: + // REGEXP_EXTRACT(jsonPayload.request, ".*quantity=(\d+).*") ValueExtractor string `json:"valueExtractor,omitempty"` - - // Version: Deprecated. The API version that created or updated this - // metric. The v2 format is used by default and cannot be changed. + // Version: Deprecated. The API version that created or updated this metric. + // The v2 format is used by default and cannot be changed. // // Possible values: // "V2" - Logging API v2. // "V1" - Logging API v1. Version string `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BucketOptions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BucketOptions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BucketOptions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogMetric) MarshalJSON() ([]byte, error) { +func (s LogMetric) MarshalJSON() ([]byte, error) { type NoMethod LogMetric - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LogSink: Describes a sink used to export log entries to one of the -// following destinations in any project: a Cloud Storage bucket, a -// BigQuery dataset, or a Cloud Pub/Sub topic. A logs filter controls -// which log entries are exported. The sink must be created within a -// project, organization, billing account, or folder. +// LogSink: Describes a sink used to export log entries to one of the following +// destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or +// a Cloud Pub/Sub topic. A logs filter controls which log entries are +// exported. The sink must be created within a project, organization, billing +// account, or folder. type LogSink struct { - // CreateTime: Output only. The creation timestamp of the sink.This - // field may not be present for older sinks. + // CreateTime: Output only. The creation timestamp of the sink.This field may + // not be present for older sinks. CreateTime string `json:"createTime,omitempty"` - // Destination: Required. The export // destination: // "storage.googleapis.com/[GCS_BUCKET]" - // "bigquery.googleapi - // s.com/projects/[PROJECT_ID]/datasets/[DATASET]" - // "pubsub.googleapis.com - // /projects/[PROJECT_ID]/topics/[TOPIC_ID]" + // "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" + // "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" // The sink's writer_identity, set when the sink is created, must have - // permission to write to the destination or else the log entries are - // not exported. For more information, see Exporting Logs with Sinks. + // permission to write to the destination or else the log entries are not + // exported. For more information, see Exporting Logs with Sinks. Destination string `json:"destination,omitempty"` - - // Filter: Optional. An advanced logs filter. The only exported log - // entries are those that are in the resource owning the sink and that - // match the filter. For - // example: + // Filter: Optional. An advanced logs filter. The only exported log entries are + // those that are in the resource owning the sink and that match the filter. + // For example: // logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR // Filter string `json:"filter,omitempty"` - // IncludeChildren: Optional. This field applies only to sinks owned by - // organizations and folders. If the field is false, the default, only - // the logs owned by the sink's parent resource are available for - // export. If the field is true, then logs from all the projects, - // folders, and billing accounts contained in the sink's parent resource - // are also available for export. Whether a particular log entry from - // the children is exported depends on the sink's filter expression. For - // example, if this field is true, then the filter - // resource.type=gce_instance would export all Compute Engine VM - // instance log entries from all projects in the sink's parent. To only - // export entries from certain child projects, filter on the project - // part of the log name: + // organizations and folders. If the field is false, the default, only the logs + // owned by the sink's parent resource are available for export. If the field + // is true, then logs from all the projects, folders, and billing accounts + // contained in the sink's parent resource are also available for export. + // Whether a particular log entry from the children is exported depends on the + // sink's filter expression. For example, if this field is true, then the + // filter resource.type=gce_instance would export all Compute Engine VM + // instance log entries from all projects in the sink's parent. To only export + // entries from certain child projects, filter on the project part of the log + // name: // logName:("projects/test-project1/" OR "projects/test-project2/") // AND // resource.type=gce_instance // IncludeChildren bool `json:"includeChildren,omitempty"` - - // Name: Required. The client-assigned sink identifier, unique within - // the project. Example: "my-syslog-errors-to-pubsub". Sink identifiers - // are limited to 100 characters and can include only the following - // characters: upper and lower-case alphanumeric characters, - // underscores, hyphens, and periods. + // Name: Required. The client-assigned sink identifier, unique within the + // project. Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited + // to 100 characters and can include only the following characters: upper and + // lower-case alphanumeric characters, underscores, hyphens, and periods. Name string `json:"name,omitempty"` - - // OutputVersionFormat: Deprecated. The log entry format to use for this - // sink's exported log entries. The v2 format is used by default and - // cannot be changed. + // OutputVersionFormat: Deprecated. The log entry format to use for this sink's + // exported log entries. The v2 format is used by default and cannot be + // changed. // // Possible values: - // "VERSION_FORMAT_UNSPECIFIED" - An unspecified format version that - // will default to V2. + // "VERSION_FORMAT_UNSPECIFIED" - An unspecified format version that will + // default to V2. // "V2" - LogEntry version 2 format. // "V1" - LogEntry version 1 format. OutputVersionFormat string `json:"outputVersionFormat,omitempty"` - - // UpdateTime: Output only. The last update timestamp of the sink.This - // field may not be present for older sinks. + // UpdateTime: Output only. The last update timestamp of the sink.This field + // may not be present for older sinks. UpdateTime string `json:"updateTime,omitempty"` - - // WriterIdentity: Output only. An IAM identity—a service account - // or group—under which Logging writes the exported log entries to - // the sink's destination. This field is set by sinks.create and - // sinks.update based on the value of unique_writer_identity in those - // methods.Until you grant this identity write-access to the - // destination, log entry exports from this sink will fail. For more - // information, see Granting Access for a Resource. Consult the - // destination service's documentation to determine the appropriate IAM + // WriterIdentity: Output only. An IAM identity—a service account or + // group—under which Logging writes the exported log entries to the + // sink's destination. This field is set by sinks.create and sinks.update based + // on the value of unique_writer_identity in those methods.Until you grant this + // identity write-access to the destination, log entry exports from this sink + // will fail. For more information, see Granting Access for a Resource. Consult + // the destination service's documentation to determine the appropriate IAM // roles to assign to the identity. WriterIdentity string `json:"writerIdentity,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogSink) MarshalJSON() ([]byte, error) { +func (s LogSink) MarshalJSON() ([]byte, error) { type NoMethod LogSink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetricDescriptor: Defines a metric type and its schema. Once a metric -// descriptor is created, deleting or altering it stops data collection -// and makes the metric type's existing data unusable. +// descriptor is created, deleting or altering it stops data collection and +// makes the metric type's existing data unusable. type MetricDescriptor struct { - // Description: A detailed description of the metric, which can be used - // in documentation. + // Description: A detailed description of the metric, which can be used in + // documentation. Description string `json:"description,omitempty"` - - // DisplayName: A concise name for the metric, which can be displayed in - // user interfaces. Use sentence case without an ending period, for - // example "Request count". This field is optional but it is recommended - // to be set for any metrics associated with user-visible concepts, such - // as Quota. + // DisplayName: A concise name for the metric, which can be displayed in user + // interfaces. Use sentence case without an ending period, for example "Request + // count". This field is optional but it is recommended to be set for any + // metrics associated with user-visible concepts, such as Quota. DisplayName string `json:"displayName,omitempty"` - - // Labels: The set of labels that can be used to describe a specific - // instance of this metric type. For example, the - // appengine.googleapis.com/http/server/response_latencies metric type - // has a label for the HTTP response code, response_code, so you can - // look at latencies for successful responses or just for responses that - // failed. + // Labels: The set of labels that can be used to describe a specific instance + // of this metric type. For example, the + // appengine.googleapis.com/http/server/response_latencies metric type has a + // label for the HTTP response code, response_code, so you can look at + // latencies for successful responses or just for responses that failed. Labels []*LabelDescriptor `json:"labels,omitempty"` - - // Metadata: Optional. Metadata which can be used to guide usage of the - // metric. + // Metadata: Optional. Metadata which can be used to guide usage of the metric. Metadata *MetricDescriptorMetadata `json:"metadata,omitempty"` - - // MetricKind: Whether the metric records instantaneous values, changes - // to a value, etc. Some combinations of metric_kind and value_type - // might not be supported. + // MetricKind: Whether the metric records instantaneous values, changes to a + // value, etc. Some combinations of metric_kind and value_type might not be + // supported. // // Possible values: // "METRIC_KIND_UNSPECIFIED" - Do not use this default value. // "GAUGE" - An instantaneous measurement of a value. // "DELTA" - The change in a value during a time interval. // "CUMULATIVE" - A value accumulated over a time interval. Cumulative - // measurements in a time series should have the same start time and - // increasing end times, until an event resets the cumulative value to - // zero and sets a new start time for the following points. + // measurements in a time series should have the same start time and increasing + // end times, until an event resets the cumulative value to zero and sets a new + // start time for the following points. MetricKind string `json:"metricKind,omitempty"` - // Name: The resource name of the metric descriptor. Name string `json:"name,omitempty"` - // Type: The metric type, including its DNS name prefix. The type is not // URL-encoded. All user-defined metric types have the DNS name - // custom.googleapis.com or external.googleapis.com. Metric types should - // use a natural hierarchical grouping. For + // custom.googleapis.com or external.googleapis.com. Metric types should use a + // natural hierarchical grouping. For // example: // "custom.googleapis.com/invoice/paid/amount" - // "external.googlea - // pis.com/prometheus/up" - // "appengine.googleapis.com/http/server/response_ - // latencies" + // "external.googleapis.com/prometheus/up" + // "appengine.googleapis.com/http/server/response_latencies" // Type string `json:"type,omitempty"` - - // Unit: The unit in which the metric value is reported. It is only - // applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The - // supported units are a subset of The Unified Code for Units of Measure + // Unit: The unit in which the metric value is reported. It is only applicable + // if the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are + // a subset of The Unified Code for Units of Measure // (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) // bit bit // By byte @@ -1406,10 +1206,9 @@ type MetricDescriptor struct { // Gi gibi (2**30) // Ti tebi (2**40)GrammarThe grammar also includes these connectors: // / division (as an infix operator, e.g. 1/s). - // . multiplication (as an infix operator, e.g. GBy.d)The grammar for a - // unit is as follows: - // Expression = Component { "." Component } { "/" Component } - // ; + // . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is + // as follows: + // Expression = Component { "." Component } { "/" Component } ; // // Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] // | Annotation @@ -1418,428 +1217,337 @@ type MetricDescriptor struct { // // Annotation = "{" NAME "}" ; // Notes: - // Annotation is just a comment if it follows a UNIT and is equivalent - // to 1 if it is used alone. For examples, {requests}/s == 1/s, - // By{transmitted}/s == By/s. - // NAME is a sequence of non-blank printable ASCII characters not - // containing '{' or '}'. + // Annotation is just a comment if it follows a UNIT and is equivalent to 1 if + // it is used alone. For examples, {requests}/s == 1/s, By{transmitted}/s == + // By/s. + // NAME is a sequence of non-blank printable ASCII characters not containing + // '{' or '}'. // 1 represents dimensionless value 1, such as in 1/s. - // % represents dimensionless value 1/100, and annotates values giving - // a percentage. + // % represents dimensionless value 1/100, and annotates values giving a + // percentage. Unit string `json:"unit,omitempty"` - - // ValueType: Whether the measurement is an integer, a floating-point - // number, etc. Some combinations of metric_kind and value_type might - // not be supported. + // ValueType: Whether the measurement is an integer, a floating-point number, + // etc. Some combinations of metric_kind and value_type might not be supported. // // Possible values: // "VALUE_TYPE_UNSPECIFIED" - Do not use this default value. - // "BOOL" - The value is a boolean. This value type can be used only - // if the metric kind is GAUGE. + // "BOOL" - The value is a boolean. This value type can be used only if the + // metric kind is GAUGE. // "INT64" - The value is a signed 64-bit integer. // "DOUBLE" - The value is a double precision floating point number. - // "STRING" - The value is a text string. This value type can be used - // only if the metric kind is GAUGE. + // "STRING" - The value is a text string. This value type can be used only if + // the metric kind is GAUGE. // "DISTRIBUTION" - The value is a Distribution. // "MONEY" - The value is money. ValueType string `json:"valueType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetricDescriptor) MarshalJSON() ([]byte, error) { +func (s MetricDescriptor) MarshalJSON() ([]byte, error) { type NoMethod MetricDescriptor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MetricDescriptorMetadata: Additional annotations that can be used to -// guide the usage of a metric. +// MetricDescriptorMetadata: Additional annotations that can be used to guide +// the usage of a metric. type MetricDescriptorMetadata struct { - // IngestDelay: The delay of data points caused by ingestion. Data - // points older than this age are guaranteed to be ingested and - // available to be read, excluding data loss due to errors. + // IngestDelay: The delay of data points caused by ingestion. Data points older + // than this age are guaranteed to be ingested and available to be read, + // excluding data loss due to errors. IngestDelay string `json:"ingestDelay,omitempty"` - // LaunchStage: The launch stage of the metric definition. // // Possible values: // "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value. - // "EARLY_ACCESS" - Early Access features are limited to a closed - // group of testers. To use these features, you must sign up in advance - // and sign a Trusted Tester agreement (which includes confidentiality - // provisions). These features may be unstable, changed in - // backward-incompatible ways, and are not guaranteed to be released. - // "ALPHA" - Alpha is a limited availability test for releases before - // they are cleared for widespread use. By Alpha, all significant design - // issues are resolved and we are in the process of verifying - // functionality. Alpha customers need to apply for access, agree to - // applicable terms, and have their projects whitelisted. Alpha releases - // don’t have to be feature complete, no SLAs are provided, and there - // are no technical support obligations, but they will be far enough - // along that customers can actually use them in test environments or - // for limited-use tests -- just like they would in normal production - // cases. - // "BETA" - Beta is the point at which we are ready to open a release - // for any customer to use. There are no SLA or technical support - // obligations in a Beta release. Products will be complete from a - // feature perspective, but may have some open outstanding issues. Beta - // releases are suitable for limited production use cases. - // "GA" - GA features are open to all developers and are considered - // stable and fully qualified for production use. - // "DEPRECATED" - Deprecated features are scheduled to be shut down - // and removed. For more information, see the “Deprecation Policy” - // section of our Terms of Service (https://cloud.google.com/terms/) and - // the Google Cloud Platform Subject to the Deprecation Policy + // "EARLY_ACCESS" - Early Access features are limited to a closed group of + // testers. To use these features, you must sign up in advance and sign a + // Trusted Tester agreement (which includes confidentiality provisions). These + // features may be unstable, changed in backward-incompatible ways, and are not + // guaranteed to be released. + // "ALPHA" - Alpha is a limited availability test for releases before they + // are cleared for widespread use. By Alpha, all significant design issues are + // resolved and we are in the process of verifying functionality. Alpha + // customers need to apply for access, agree to applicable terms, and have + // their projects whitelisted. Alpha releases don’t have to be feature + // complete, no SLAs are provided, and there are no technical support + // obligations, but they will be far enough along that customers can actually + // use them in test environments or for limited-use tests -- just like they + // would in normal production cases. + // "BETA" - Beta is the point at which we are ready to open a release for any + // customer to use. There are no SLA or technical support obligations in a Beta + // release. Products will be complete from a feature perspective, but may have + // some open outstanding issues. Beta releases are suitable for limited + // production use cases. + // "GA" - GA features are open to all developers and are considered stable + // and fully qualified for production use. + // "DEPRECATED" - Deprecated features are scheduled to be shut down and + // removed. For more information, see the “Deprecation Policy” section of + // our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud + // Platform Subject to the Deprecation Policy // (https://cloud.google.com/terms/deprecation) documentation. LaunchStage string `json:"launchStage,omitempty"` - - // SamplePeriod: The sampling period of metric data points. For metrics - // which are written periodically, consecutive data points are stored at - // this time interval, excluding data loss due to errors. Metrics with a - // higher granularity have a smaller sampling period. + // SamplePeriod: The sampling period of metric data points. For metrics which + // are written periodically, consecutive data points are stored at this time + // interval, excluding data loss due to errors. Metrics with a higher + // granularity have a smaller sampling period. SamplePeriod string `json:"samplePeriod,omitempty"` - // ForceSendFields is a list of field names (e.g. "IngestDelay") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IngestDelay") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IngestDelay") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetricDescriptorMetadata) MarshalJSON() ([]byte, error) { +func (s MetricDescriptorMetadata) MarshalJSON() ([]byte, error) { type NoMethod MetricDescriptorMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// MonitoredResource: An object representing a resource that can be used -// for monitoring, logging, billing, or other purposes. Examples include -// virtual machine instances, databases, and storage devices such as -// disks. The type field identifies a MonitoredResourceDescriptor object -// that describes the resource's schema. Information in the labels field -// identifies the actual resource and its attributes according to the -// schema. For example, a particular Compute Engine VM instance could be -// represented by the following object, because the -// MonitoredResourceDescriptor for "gce_instance" has labels -// "instance_id" and "zone": + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// MonitoredResource: An object representing a resource that can be used for +// monitoring, logging, billing, or other purposes. Examples include virtual +// machine instances, databases, and storage devices such as disks. The type +// field identifies a MonitoredResourceDescriptor object that describes the +// resource's schema. Information in the labels field identifies the actual +// resource and its attributes according to the schema. For example, a +// particular Compute Engine VM instance could be represented by the following +// object, because the MonitoredResourceDescriptor for "gce_instance" has +// labels "instance_id" and "zone": // { "type": "gce_instance", // // "labels": { "instance_id": "12345678901234", // "zone": "us-central1-a" }} type MonitoredResource struct { - // Labels: Required. Values for all of the labels listed in the - // associated monitored resource descriptor. For example, Compute Engine - // VM instances use the labels "project_id", "instance_id", and "zone". + // Labels: Required. Values for all of the labels listed in the associated + // monitored resource descriptor. For example, Compute Engine VM instances use + // the labels "project_id", "instance_id", and "zone". Labels map[string]string `json:"labels,omitempty"` - - // Type: Required. The monitored resource type. This field must match - // the type field of a MonitoredResourceDescriptor object. For example, - // the type of a Compute Engine VM instance is gce_instance. + // Type: Required. The monitored resource type. This field must match the type + // field of a MonitoredResourceDescriptor object. For example, the type of a + // Compute Engine VM instance is gce_instance. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Labels") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Labels") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Labels") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MonitoredResource) MarshalJSON() ([]byte, error) { +func (s MonitoredResource) MarshalJSON() ([]byte, error) { type NoMethod MonitoredResource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MonitoredResourceDescriptor: An object that describes the schema of a -// MonitoredResource object using a type name and a set of labels. For -// example, the monitored resource descriptor for Google Compute Engine -// VM instances has a type of "gce_instance" and specifies the use of -// the labels "instance_id" and "zone" to identify particular VM -// instances.Different APIs can support different monitored resource -// types. APIs generally provide a list method that returns the -// monitored resource descriptors used by the API. +// MonitoredResource object using a type name and a set of labels. For example, +// the monitored resource descriptor for Google Compute Engine VM instances has +// a type of "gce_instance" and specifies the use of the labels "instance_id" +// and "zone" to identify particular VM instances.Different APIs can support +// different monitored resource types. APIs generally provide a list method +// that returns the monitored resource descriptors used by the API. type MonitoredResourceDescriptor struct { - // Description: Optional. A detailed description of the monitored - // resource type that might be used in documentation. + // Description: Optional. A detailed description of the monitored resource type + // that might be used in documentation. Description string `json:"description,omitempty"` - - // DisplayName: Optional. A concise name for the monitored resource type - // that might be displayed in user interfaces. It should be a Title - // Cased Noun Phrase, without any article or other determiners. For - // example, "Google Cloud SQL Database". + // DisplayName: Optional. A concise name for the monitored resource type that + // might be displayed in user interfaces. It should be a Title Cased Noun + // Phrase, without any article or other determiners. For example, "Google Cloud + // SQL Database". DisplayName string `json:"displayName,omitempty"` - // Labels: Required. A set of labels used to describe instances of this // monitored resource type. For example, an individual Google Cloud SQL - // database is identified by values for the labels "database_id" and - // "zone". + // database is identified by values for the labels "database_id" and "zone". Labels []*LabelDescriptor `json:"labels,omitempty"` - - // Name: Optional. The resource name of the monitored resource - // descriptor: - // "projects/{project_id}/monitoredResourceDescriptors/{type}" where - // {type} is the value of the type field in this object and {project_id} - // is a project ID that provides API-specific context for accessing the - // type. APIs that do not use project information can use the resource - // name format "monitoredResourceDescriptors/{type}". + // Name: Optional. The resource name of the monitored resource descriptor: + // "projects/{project_id}/monitoredResourceDescriptors/{type}" where {type} is + // the value of the type field in this object and {project_id} is a project ID + // that provides API-specific context for accessing the type. APIs that do not + // use project information can use the resource name format + // "monitoredResourceDescriptors/{type}". Name string `json:"name,omitempty"` - // Type: Required. The monitored resource type. For example, the type - // "cloudsql_database" represents databases in Google Cloud SQL. The - // maximum length of this value is 256 characters. + // "cloudsql_database" represents databases in Google Cloud SQL. The maximum + // length of this value is 256 characters. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MonitoredResourceDescriptor) MarshalJSON() ([]byte, error) { +func (s MonitoredResourceDescriptor) MarshalJSON() ([]byte, error) { type NoMethod MonitoredResourceDescriptor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MonitoredResourceMetadata: Auxiliary metadata for a MonitoredResource -// object. MonitoredResource objects contain the minimum set of -// information to uniquely identify a monitored resource instance. There -// is some other useful auxiliary metadata. Monitoring and Logging use -// an ingestion pipeline to extract metadata for cloud resources of all -// types, and store the metadata in this message. +// object. MonitoredResource objects contain the minimum set of information to +// uniquely identify a monitored resource instance. There is some other useful +// auxiliary metadata. Monitoring and Logging use an ingestion pipeline to +// extract metadata for cloud resources of all types, and store the metadata in +// this message. type MonitoredResourceMetadata struct { - // SystemLabels: Output only. Values for predefined system metadata - // labels. System labels are a kind of metadata extracted by Google, - // including "machine_image", "vpc", "subnet_id", "security_group", - // "name", etc. System label values can be only strings, Boolean values, - // or a list of strings. For example: + // SystemLabels: Output only. Values for predefined system metadata labels. + // System labels are a kind of metadata extracted by Google, including + // "machine_image", "vpc", "subnet_id", "security_group", "name", etc. System + // label values can be only strings, Boolean values, or a list of strings. For + // example: // { "name": "my-test-instance", // "security_group": ["a", "b", "c"], // "spot_instance": false } // SystemLabels googleapi.RawMessage `json:"systemLabels,omitempty"` - // UserLabels: Output only. A map of user-defined metadata labels. UserLabels map[string]string `json:"userLabels,omitempty"` - // ForceSendFields is a list of field names (e.g. "SystemLabels") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SystemLabels") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SystemLabels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MonitoredResourceMetadata) MarshalJSON() ([]byte, error) { +func (s MonitoredResourceMetadata) MarshalJSON() ([]byte, error) { type NoMethod MonitoredResourceMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RequestLog: Complete log information about a single HTTP request to -// an App Engine application. +// RequestLog: Complete log information about a single HTTP request to an App +// Engine application. type RequestLog struct { // AppEngineRelease: App Engine release version. AppEngineRelease string `json:"appEngineRelease,omitempty"` - // AppId: Application that handled this request. AppId string `json:"appId,omitempty"` - // Cost: An indication of the relative cost of serving this request. Cost float64 `json:"cost,omitempty"` - // EndTime: Time when the request finished. EndTime string `json:"endTime,omitempty"` - // Finished: Whether this request is finished or active. Finished bool `json:"finished,omitempty"` - - // First: Whether this is the first RequestLog entry for this request. - // If an active request has several RequestLog entries written to - // Stackdriver Logging, then this field will be set for one of them. + // First: Whether this is the first RequestLog entry for this request. If an + // active request has several RequestLog entries written to Stackdriver + // Logging, then this field will be set for one of them. First bool `json:"first,omitempty"` - // Host: Internet host and port number of the resource being requested. Host string `json:"host,omitempty"` - // HttpVersion: HTTP version of request. Example: "HTTP/1.1". HttpVersion string `json:"httpVersion,omitempty"` - // InstanceId: An identifier for the instance that handled the request. InstanceId string `json:"instanceId,omitempty"` - - // InstanceIndex: If the instance processing this request belongs to a - // manually scaled module, then this is the 0-based index of the - // instance. Otherwise, this value is -1. + // InstanceIndex: If the instance processing this request belongs to a manually + // scaled module, then this is the 0-based index of the instance. Otherwise, + // this value is -1. InstanceIndex int64 `json:"instanceIndex,omitempty"` - // Ip: Origin IP address. Ip string `json:"ip,omitempty"` - // Latency: Latency of the request. Latency string `json:"latency,omitempty"` - - // Line: A list of log lines emitted by the application while serving - // this request. + // Line: A list of log lines emitted by the application while serving this + // request. Line []*LogLine `json:"line,omitempty"` - // MegaCycles: Number of CPU megacycles used to process request. MegaCycles int64 `json:"megaCycles,omitempty,string"` - - // Method: Request method. Example: "GET", "HEAD", "PUT", "POST", - // "DELETE". + // Method: Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE". Method string `json:"method,omitempty"` - // ModuleId: Module of the application that handled this request. ModuleId string `json:"moduleId,omitempty"` - - // Nickname: The logged-in user who made the request.Most likely, this - // is the part of the user's email before the @ sign. The field value is - // the same for different requests from the same user, but different - // users can have similar names. This information is also available to - // the application via the App Engine Users API.This field will be - // populated starting with App Engine 1.9.21. + // Nickname: The logged-in user who made the request.Most likely, this is the + // part of the user's email before the @ sign. The field value is the same for + // different requests from the same user, but different users can have similar + // names. This information is also available to the application via the App + // Engine Users API.This field will be populated starting with App Engine + // 1.9.21. Nickname string `json:"nickname,omitempty"` - // PendingTime: Time this request spent in the pending request queue. PendingTime string `json:"pendingTime,omitempty"` - // Referrer: Referrer URL of request. Referrer string `json:"referrer,omitempty"` - - // RequestId: Globally unique identifier for a request, which is based - // on the request start time. Request IDs for requests which started - // later will compare greater as strings than those for requests which - // started earlier. + // RequestId: Globally unique identifier for a request, which is based on the + // request start time. Request IDs for requests which started later will + // compare greater as strings than those for requests which started earlier. RequestId string `json:"requestId,omitempty"` - - // Resource: Contains the path and query portion of the URL that was - // requested. For example, if the URL was - // "http://example.com/app?name=val", the resource would be - // "/app?name=val". The fragment identifier, which is identified by the - // # character, is not included. + // Resource: Contains the path and query portion of the URL that was requested. + // For example, if the URL was "http://example.com/app?name=val", the resource + // would be "/app?name=val". The fragment identifier, which is identified by + // the # character, is not included. Resource string `json:"resource,omitempty"` - // ResponseSize: Size in bytes sent back to client by request. ResponseSize int64 `json:"responseSize,omitempty,string"` - - // SourceReference: Source code for the application that handled this - // request. There can be more than one source reference per deployed - // application if source code is distributed among multiple - // repositories. + // SourceReference: Source code for the application that handled this request. + // There can be more than one source reference per deployed application if + // source code is distributed among multiple repositories. SourceReference []*SourceReference `json:"sourceReference,omitempty"` - // StartTime: Time when the request started. StartTime string `json:"startTime,omitempty"` - // Status: HTTP response status code. Example: 200, 404. Status int64 `json:"status,omitempty"` - - // TaskName: Task name of the request, in the case of an offline - // request. + // TaskName: Task name of the request, in the case of an offline request. TaskName string `json:"taskName,omitempty"` - - // TaskQueueName: Queue name of the request, in the case of an offline - // request. + // TaskQueueName: Queue name of the request, in the case of an offline request. TaskQueueName string `json:"taskQueueName,omitempty"` - // TraceId: Stackdriver Trace identifier for this request. TraceId string `json:"traceId,omitempty"` - - // TraceSampled: If true, the value in the 'trace_id' field was sampled - // for storage in a trace backend. + // TraceSampled: If true, the value in the 'trace_id' field was sampled for + // storage in a trace backend. TraceSampled bool `json:"traceSampled,omitempty"` - // UrlMapEntry: File or class that handled the request. UrlMapEntry string `json:"urlMapEntry,omitempty"` - // UserAgent: User agent that made the request. UserAgent string `json:"userAgent,omitempty"` - // VersionId: Version of the application that handled this request. VersionId string `json:"versionId,omitempty"` - - // WasLoadingRequest: Whether this was a loading request for the - // instance. + // WasLoadingRequest: Whether this was a loading request for the instance. WasLoadingRequest bool `json:"wasLoadingRequest,omitempty"` - // ForceSendFields is a list of field names (e.g. "AppEngineRelease") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AppEngineRelease") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AppEngineRelease") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RequestLog) MarshalJSON() ([]byte, error) { +func (s RequestLog) MarshalJSON() ([]byte, error) { type NoMethod RequestLog - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *RequestLog) UnmarshalJSON(data []byte) error { @@ -1858,181 +1566,145 @@ func (s *RequestLog) UnmarshalJSON(data []byte) error { // SourceLocation: Specifies a location in a source code file. type SourceLocation struct { - // File: Source file name. Depending on the runtime environment, this - // might be a simple name or a fully-qualified name. + // File: Source file name. Depending on the runtime environment, this might be + // a simple name or a fully-qualified name. File string `json:"file,omitempty"` - - // FunctionName: Human-readable name of the function or method being - // invoked, with optional context such as the class or package name. - // This information is used in contexts such as the logs viewer, where a - // file and line number are less meaningful. The format can vary by - // language. For example: qual.if.ied.Class.method (Java), - // dir/package.func (Go), function (Python). + // FunctionName: Human-readable name of the function or method being invoked, + // with optional context such as the class or package name. This information is + // used in contexts such as the logs viewer, where a file and line number are + // less meaningful. The format can vary by language. For example: + // qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python). FunctionName string `json:"functionName,omitempty"` - // Line: Line within the source file. Line int64 `json:"line,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "File") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "File") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "File") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "File") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceLocation) MarshalJSON() ([]byte, error) { +func (s SourceLocation) MarshalJSON() ([]byte, error) { type NoMethod SourceLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SourceReference: A reference to a particular snapshot of the source -// tree used to build and deploy an application. +// SourceReference: A reference to a particular snapshot of the source tree +// used to build and deploy an application. type SourceReference struct { - // Repository: Optional. A URI string identifying the repository. - // Example: "https://github.com/GoogleCloudPlatform/kubernetes.git" + // Repository: Optional. A URI string identifying the repository. Example: + // "https://github.com/GoogleCloudPlatform/kubernetes.git" Repository string `json:"repository,omitempty"` - // RevisionId: The canonical and persistent identifier of the deployed // revision. Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" RevisionId string `json:"revisionId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Repository") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Repository") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Repository") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceReference) MarshalJSON() ([]byte, error) { +func (s SourceReference) MarshalJSON() ([]byte, error) { type NoMethod SourceReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WriteLogEntriesRequest: The parameters to WriteLogEntries. type WriteLogEntriesRequest struct { - // DryRun: Optional. If true, the request should expect normal response, - // but the entries won't be persisted nor exported. Useful for checking - // whether the logging API endpoints are working properly before sending - // valuable data. + // DryRun: Optional. If true, the request should expect normal response, but + // the entries won't be persisted nor exported. Useful for checking whether the + // logging API endpoints are working properly before sending valuable data. DryRun bool `json:"dryRun,omitempty"` - - // Entries: Required. The log entries to send to Logging. The order of - // log entries in this list does not matter. Values supplied in this - // method's log_name, resource, and labels fields are copied into those - // log entries in this list that do not include values for their - // corresponding fields. For more information, see the LogEntry type.If - // the timestamp or insert_id fields are missing in log entries, then - // this method supplies the current time or a unique identifier, - // respectively. The supplied values are chosen so that, among the log - // entries that did not supply their own values, the entries earlier in - // the list will sort before the entries later in the list. See the - // entries.list method.Log entries with timestamps that are more than - // the logs retention period in the past or more than 24 hours in the - // future will not be available when calling entries.list. However, - // those log entries can still be exported with LogSinks.To improve - // throughput and to avoid exceeding the quota limit for calls to - // entries.write, you should try to include several log entries in this - // list, rather than calling this method for each individual log entry. + // Entries: Required. The log entries to send to Logging. The order of log + // entries in this list does not matter. Values supplied in this method's + // log_name, resource, and labels fields are copied into those log entries in + // this list that do not include values for their corresponding fields. For + // more information, see the LogEntry type.If the timestamp or insert_id fields + // are missing in log entries, then this method supplies the current time or a + // unique identifier, respectively. The supplied values are chosen so that, + // among the log entries that did not supply their own values, the entries + // earlier in the list will sort before the entries later in the list. See the + // entries.list method.Log entries with timestamps that are more than the logs + // retention period in the past or more than 24 hours in the future will not be + // available when calling entries.list. However, those log entries can still be + // exported with LogSinks.To improve throughput and to avoid exceeding the + // quota limit for calls to entries.write, you should try to include several + // log entries in this list, rather than calling this method for each + // individual log entry. Entries []*LogEntry `json:"entries,omitempty"` - - // Labels: Optional. Default labels that are added to the labels field - // of all log entries in entries. If a log entry already has a label - // with the same key as a label in this parameter, then the log entry's - // label is not changed. See LogEntry. + // Labels: Optional. Default labels that are added to the labels field of all + // log entries in entries. If a log entry already has a label with the same key + // as a label in this parameter, then the log entry's label is not changed. See + // LogEntry. Labels map[string]string `json:"labels,omitempty"` - - // LogName: Optional. A default log resource name that is assigned to - // all log entries in entries that do not specify a value for + // LogName: Optional. A default log resource name that is assigned to all log + // entries in entries that do not specify a value for // log_name: // "projects/[PROJECT_ID]/logs/[LOG_ID]" - // "organizations/[ORGANI - // ZATION_ID]/logs/[LOG_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[ - // LOG_ID]" + // "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" // "folders/[FOLDER_ID]/logs/[LOG_ID]" // [LOG_ID] must be URL-encoded. For // example: // "projects/my-project-id/logs/syslog" - // "organizations/123456789 - // 0/logs/cloudresourcemanager.googleapis.com%2Factivity" - // The permission logging.logEntries.create is needed on - // each project, organization, billing account, or folder that is - // receiving new log entries, whether the resource is specified in - // logName or in an individual log entry. + // "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity + // " + // The permission logging.logEntries.create is needed on each + // project, organization, billing account, or folder that is receiving new log + // entries, whether the resource is specified in logName or in an + // individual log entry. LogName string `json:"logName,omitempty"` - - // PartialSuccess: Optional. Whether valid entries should be written - // even if some other entries fail due to INVALID_ARGUMENT or - // PERMISSION_DENIED errors. If any entry is not written, then the - // response status is the error associated with one of the failed - // entries and the response includes error details keyed by the entries' - // zero-based index in the entries.write method. + // PartialSuccess: Optional. Whether valid entries should be written even if + // some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. + // If any entry is not written, then the response status is the error + // associated with one of the failed entries and the response includes error + // details keyed by the entries' zero-based index in the entries.write method. PartialSuccess bool `json:"partialSuccess,omitempty"` - - // Resource: Optional. A default monitored resource object that is - // assigned to all log entries in entries that do not specify a value - // for resource. Example: + // Resource: Optional. A default monitored resource object that is assigned to + // all log entries in entries that do not specify a value for resource. + // Example: // { "type": "gce_instance", // "labels": { - // "zone": "us-central1-a", "instance_id": "00000000000000000000" - // }} + // "zone": "us-central1-a", "instance_id": "00000000000000000000" }} // See LogEntry. Resource *MonitoredResource `json:"resource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DryRun") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DryRun") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DryRun") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WriteLogEntriesRequest) MarshalJSON() ([]byte, error) { +func (s WriteLogEntriesRequest) MarshalJSON() ([]byte, error) { type NoMethod WriteLogEntriesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WriteLogEntriesResponse: Result returned from WriteLogEntries. empty type WriteLogEntriesResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// method id "logging.entries.list": - type EntriesListCall struct { s *Service listlogentriesrequest *ListLogEntriesRequest @@ -2042,8 +1714,8 @@ type EntriesListCall struct { } // List: Lists log entries. Use this method to retrieve log entries that -// originated from a project/folder/organization/billing account. For -// ways to export log entries, see Exporting Logs. +// originated from a project/folder/organization/billing account. For ways to +// export log entries, see Exporting Logs. func (r *EntriesService) List(listlogentriesrequest *ListLogEntriesRequest) *EntriesListCall { c := &EntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.listlogentriesrequest = listlogentriesrequest @@ -2051,23 +1723,21 @@ func (r *EntriesService) List(listlogentriesrequest *ListLogEntriesRequest) *Ent } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EntriesListCall) Fields(s ...googleapi.Field) *EntriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EntriesListCall) Context(ctx context.Context) *EntriesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EntriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2076,18 +1746,12 @@ func (c *EntriesListCall) Header() http.Header { } func (c *EntriesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.listlogentriesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/entries:list") @@ -2097,16 +1761,15 @@ func (c *EntriesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.entries.list" call. -// Exactly one of *ListLogEntriesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLogEntriesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLogEntriesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2114,17 +1777,17 @@ func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesRespo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListLogEntriesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2137,28 +1800,6 @@ func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesRespo return nil, err } return ret, nil - // { - // "description": "Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see Exporting Logs.", - // "flatPath": "v2beta1/entries:list", - // "httpMethod": "POST", - // "id": "logging.entries.list", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2beta1/entries:list", - // "request": { - // "$ref": "ListLogEntriesRequest" - // }, - // "response": { - // "$ref": "ListLogEntriesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" - // ] - // } - } // Pages invokes f for each page of results. @@ -2166,7 +1807,7 @@ func (c *EntriesListCall) Do(opts ...googleapi.CallOption) (*ListLogEntriesRespo // The provided context supersedes any context provided to the Context method. func (c *EntriesListCall) Pages(ctx context.Context, f func(*ListLogEntriesResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.listlogentriesrequest.PageToken = pt }(c.listlogentriesrequest.PageToken) // reset paging to original point + defer func(pt string) { c.listlogentriesrequest.PageToken = pt }(c.listlogentriesrequest.PageToken) for { x, err := c.Do() if err != nil { @@ -2182,8 +1823,6 @@ func (c *EntriesListCall) Pages(ctx context.Context, f func(*ListLogEntriesRespo } } -// method id "logging.entries.write": - type EntriesWriteCall struct { s *Service writelogentriesrequest *WriteLogEntriesRequest @@ -2192,12 +1831,11 @@ type EntriesWriteCall struct { header_ http.Header } -// Write: Writes log entries to Logging. This API method is the only way -// to send log entries to Logging. This method is used, directly or -// indirectly, by the Logging agent (fluentd) and all logging libraries -// configured to use Logging. A single request may contain log entries -// for a maximum of 1000 different resources (projects, organizations, -// billing accounts or folders) +// Write: Writes log entries to Logging. This API method is the only way to +// send log entries to Logging. This method is used, directly or indirectly, by +// the Logging agent (fluentd) and all logging libraries configured to use +// Logging. A single request may contain log entries for a maximum of 1000 +// different resources (projects, organizations, billing accounts or folders) func (r *EntriesService) Write(writelogentriesrequest *WriteLogEntriesRequest) *EntriesWriteCall { c := &EntriesWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.writelogentriesrequest = writelogentriesrequest @@ -2205,23 +1843,21 @@ func (r *EntriesService) Write(writelogentriesrequest *WriteLogEntriesRequest) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *EntriesWriteCall) Fields(s ...googleapi.Field) *EntriesWriteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *EntriesWriteCall) Context(ctx context.Context) *EntriesWriteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *EntriesWriteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2230,18 +1866,12 @@ func (c *EntriesWriteCall) Header() http.Header { } func (c *EntriesWriteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.writelogentriesrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/entries:write") @@ -2251,16 +1881,15 @@ func (c *EntriesWriteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.entries.write" call. -// Exactly one of *WriteLogEntriesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *WriteLogEntriesResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *EntriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteLogEntriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2268,17 +1897,17 @@ func (c *EntriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteLogEntriesRes if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WriteLogEntriesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2291,30 +1920,7 @@ func (c *EntriesWriteCall) Do(opts ...googleapi.CallOption) (*WriteLogEntriesRes return nil, err } return ret, nil - // { - // "description": "Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)", - // "flatPath": "v2beta1/entries:write", - // "httpMethod": "POST", - // "id": "logging.entries.write", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2beta1/entries:write", - // "request": { - // "$ref": "WriteLogEntriesRequest" - // }, - // "response": { - // "$ref": "WriteLogEntriesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.write" - // ] - // } - -} - -// method id "logging.monitoredResourceDescriptors.list": +} type MonitoredResourceDescriptorsListCall struct { s *Service @@ -2324,60 +1930,54 @@ type MonitoredResourceDescriptorsListCall struct { header_ http.Header } -// List: Lists the descriptors for monitored resource types used by -// Logging. +// List: Lists the descriptors for monitored resource types used by Logging. func (r *MonitoredResourceDescriptorsService) List() *MonitoredResourceDescriptorsListCall { c := &MonitoredResourceDescriptorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return from this request. Non-positive values are ignored. The +// presence of nextPageToken in the response indicates that more results might +// be available. func (c *MonitoredResourceDescriptorsListCall) PageSize(pageSize int64) *MonitoredResourceDescriptorsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. +// PageToken sets the optional parameter "pageToken": If present, then retrieve +// the next batch of results from the preceding call to this method. pageToken +// must be the value of nextPageToken from the previous response. The values of +// other method parameters should be identical to those in the previous call. func (c *MonitoredResourceDescriptorsListCall) PageToken(pageToken string) *MonitoredResourceDescriptorsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MonitoredResourceDescriptorsListCall) Fields(s ...googleapi.Field) *MonitoredResourceDescriptorsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MonitoredResourceDescriptorsListCall) IfNoneMatch(entityTag string) *MonitoredResourceDescriptorsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *MonitoredResourceDescriptorsListCall) Context(ctx context.Context) *MonitoredResourceDescriptorsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MonitoredResourceDescriptorsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2386,12 +1986,7 @@ func (c *MonitoredResourceDescriptorsListCall) Header() http.Header { } func (c *MonitoredResourceDescriptorsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2405,18 +2000,15 @@ func (c *MonitoredResourceDescriptorsListCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.monitoredResourceDescriptors.list" call. -// Exactly one of *ListMonitoredResourceDescriptorsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *ListMonitoredResourceDescriptorsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListMonitoredResourceDescriptorsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoredResourceDescriptorsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2424,17 +2016,17 @@ func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListMonitoredResourceDescriptorsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2447,37 +2039,6 @@ func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists the descriptors for monitored resource types used by Logging.", - // "flatPath": "v2beta1/monitoredResourceDescriptors", - // "httpMethod": "GET", - // "id": "logging.monitoredResourceDescriptors.list", - // "parameterOrder": [], - // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2beta1/monitoredResourceDescriptors", - // "response": { - // "$ref": "ListMonitoredResourceDescriptorsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" - // ] - // } - } // Pages invokes f for each page of results. @@ -2485,7 +2046,7 @@ func (c *MonitoredResourceDescriptorsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *MonitoredResourceDescriptorsListCall) Pages(ctx context.Context, f func(*ListMonitoredResourceDescriptorsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2501,8 +2062,6 @@ func (c *MonitoredResourceDescriptorsListCall) Pages(ctx context.Context, f func } } -// method id "logging.projects.metrics.create": - type ProjectsMetricsCreateCall struct { s *Service parent string @@ -2513,6 +2072,12 @@ type ProjectsMetricsCreateCall struct { } // Create: Creates a logs-based metric. +// +// - parent: The resource name of the project in which to create the +// metric: +// "projects/[PROJECT_ID]" +// +// The new metric must be provided in the request. func (r *ProjectsMetricsService) Create(parent string, logmetric *LogMetric) *ProjectsMetricsCreateCall { c := &ProjectsMetricsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2521,23 +2086,21 @@ func (r *ProjectsMetricsService) Create(parent string, logmetric *LogMetric) *Pr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsMetricsCreateCall) Fields(s ...googleapi.Field) *ProjectsMetricsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsMetricsCreateCall) Context(ctx context.Context) *ProjectsMetricsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsMetricsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2546,18 +2109,12 @@ func (c *ProjectsMetricsCreateCall) Header() http.Header { } func (c *ProjectsMetricsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.logmetric) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/metrics") @@ -2570,16 +2127,14 @@ func (c *ProjectsMetricsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.metrics.create" call. -// Exactly one of *LogMetric or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogMetric.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LogMetric.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsMetricsCreateCall) Do(opts ...googleapi.CallOption) (*LogMetric, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2587,17 +2142,17 @@ func (c *ProjectsMetricsCreateCall) Do(opts ...googleapi.CallOption) (*LogMetric if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LogMetric{ ServerResponse: googleapi.ServerResponse{ @@ -2610,40 +2165,7 @@ func (c *ProjectsMetricsCreateCall) Do(opts ...googleapi.CallOption) (*LogMetric return nil, err } return ret, nil - // { - // "description": "Creates a logs-based metric.", - // "flatPath": "v2beta1/projects/{projectsId}/metrics", - // "httpMethod": "POST", - // "id": "logging.projects.metrics.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The resource name of the project in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric must be provided in the request.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta1/{+parent}/metrics", - // "request": { - // "$ref": "LogMetric" - // }, - // "response": { - // "$ref": "LogMetric" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.write" - // ] - // } - -} - -// method id "logging.projects.metrics.delete": +} type ProjectsMetricsDeleteCall struct { s *Service @@ -2654,6 +2176,11 @@ type ProjectsMetricsDeleteCall struct { } // Delete: Deletes a logs-based metric. +// +// - metricName: The resource name of the metric to +// delete: +// +// "projects/[PROJECT_ID]/metrics/[METRIC_ID]". func (r *ProjectsMetricsService) Delete(metricName string) *ProjectsMetricsDeleteCall { c := &ProjectsMetricsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.metricName = metricName @@ -2661,23 +2188,21 @@ func (r *ProjectsMetricsService) Delete(metricName string) *ProjectsMetricsDelet } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsMetricsDeleteCall) Fields(s ...googleapi.Field) *ProjectsMetricsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsMetricsDeleteCall) Context(ctx context.Context) *ProjectsMetricsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsMetricsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2686,12 +2211,7 @@ func (c *ProjectsMetricsDeleteCall) Header() http.Header { } func (c *ProjectsMetricsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2705,16 +2225,14 @@ func (c *ProjectsMetricsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "metricName": c.metricName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.metrics.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsMetricsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2722,17 +2240,17 @@ func (c *ProjectsMetricsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2745,37 +2263,7 @@ func (c *ProjectsMetricsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, er return nil, err } return ret, nil - // { - // "description": "Deletes a logs-based metric.", - // "flatPath": "v2beta1/projects/{projectsId}/metrics/{metricsId}", - // "httpMethod": "DELETE", - // "id": "logging.projects.metrics.delete", - // "parameterOrder": [ - // "metricName" - // ], - // "parameters": { - // "metricName": { - // "description": "The resource name of the metric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", - // "location": "path", - // "pattern": "^projects/[^/]+/metrics/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta1/{+metricName}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.write" - // ] - // } - -} - -// method id "logging.projects.metrics.get": +} type ProjectsMetricsGetCall struct { s *Service @@ -2787,6 +2275,11 @@ type ProjectsMetricsGetCall struct { } // Get: Gets a logs-based metric. +// +// - metricName: The resource name of the desired +// metric: +// +// "projects/[PROJECT_ID]/metrics/[METRIC_ID]". func (r *ProjectsMetricsService) Get(metricName string) *ProjectsMetricsGetCall { c := &ProjectsMetricsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.metricName = metricName @@ -2794,33 +2287,29 @@ func (r *ProjectsMetricsService) Get(metricName string) *ProjectsMetricsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsMetricsGetCall) Fields(s ...googleapi.Field) *ProjectsMetricsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsMetricsGetCall) IfNoneMatch(entityTag string) *ProjectsMetricsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsMetricsGetCall) Context(ctx context.Context) *ProjectsMetricsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsMetricsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2829,12 +2318,7 @@ func (c *ProjectsMetricsGetCall) Header() http.Header { } func (c *ProjectsMetricsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2851,16 +2335,14 @@ func (c *ProjectsMetricsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "metricName": c.metricName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.metrics.get" call. -// Exactly one of *LogMetric or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogMetric.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LogMetric.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsMetricsGetCall) Do(opts ...googleapi.CallOption) (*LogMetric, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2868,17 +2350,17 @@ func (c *ProjectsMetricsGetCall) Do(opts ...googleapi.CallOption) (*LogMetric, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LogMetric{ ServerResponse: googleapi.ServerResponse{ @@ -2891,38 +2373,7 @@ func (c *ProjectsMetricsGetCall) Do(opts ...googleapi.CallOption) (*LogMetric, e return nil, err } return ret, nil - // { - // "description": "Gets a logs-based metric.", - // "flatPath": "v2beta1/projects/{projectsId}/metrics/{metricsId}", - // "httpMethod": "GET", - // "id": "logging.projects.metrics.get", - // "parameterOrder": [ - // "metricName" - // ], - // "parameters": { - // "metricName": { - // "description": "The resource name of the desired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", - // "location": "path", - // "pattern": "^projects/[^/]+/metrics/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta1/{+metricName}", - // "response": { - // "$ref": "LogMetric" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" - // ] - // } - -} - -// method id "logging.projects.metrics.list": +} type ProjectsMetricsListCall struct { s *Service @@ -2934,59 +2385,59 @@ type ProjectsMetricsListCall struct { } // List: Lists logs-based metrics. +// +// - parent: The name of the project containing the +// metrics: +// +// "projects/[PROJECT_ID]". func (r *ProjectsMetricsService) List(parent string) *ProjectsMetricsListCall { c := &ProjectsMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return from this request. Non-positive values are ignored. The +// presence of nextPageToken in the response indicates that more results might +// be available. func (c *ProjectsMetricsListCall) PageSize(pageSize int64) *ProjectsMetricsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. +// PageToken sets the optional parameter "pageToken": If present, then retrieve +// the next batch of results from the preceding call to this method. pageToken +// must be the value of nextPageToken from the previous response. The values of +// other method parameters should be identical to those in the previous call. func (c *ProjectsMetricsListCall) PageToken(pageToken string) *ProjectsMetricsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsMetricsListCall) Fields(s ...googleapi.Field) *ProjectsMetricsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsMetricsListCall) IfNoneMatch(entityTag string) *ProjectsMetricsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsMetricsListCall) Context(ctx context.Context) *ProjectsMetricsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsMetricsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2995,12 +2446,7 @@ func (c *ProjectsMetricsListCall) Header() http.Header { } func (c *ProjectsMetricsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3017,16 +2463,15 @@ func (c *ProjectsMetricsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.metrics.list" call. -// Exactly one of *ListLogMetricsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLogMetricsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLogMetricsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsMetricsListCall) Do(opts ...googleapi.CallOption) (*ListLogMetricsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3034,17 +2479,17 @@ func (c *ProjectsMetricsListCall) Do(opts ...googleapi.CallOption) (*ListLogMetr if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListLogMetricsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3057,46 +2502,6 @@ func (c *ProjectsMetricsListCall) Do(opts ...googleapi.CallOption) (*ListLogMetr return nil, err } return ret, nil - // { - // "description": "Lists logs-based metrics.", - // "flatPath": "v2beta1/projects/{projectsId}/metrics", - // "httpMethod": "GET", - // "id": "logging.projects.metrics.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The name of the project containing the metrics:\n\"projects/[PROJECT_ID]\"\n", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta1/{+parent}/metrics", - // "response": { - // "$ref": "ListLogMetricsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" - // ] - // } - } // Pages invokes f for each page of results. @@ -3104,7 +2509,7 @@ func (c *ProjectsMetricsListCall) Do(opts ...googleapi.CallOption) (*ListLogMetr // The provided context supersedes any context provided to the Context method. func (c *ProjectsMetricsListCall) Pages(ctx context.Context, f func(*ListLogMetricsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3120,8 +2525,6 @@ func (c *ProjectsMetricsListCall) Pages(ctx context.Context, f func(*ListLogMetr } } -// method id "logging.projects.metrics.update": - type ProjectsMetricsUpdateCall struct { s *Service metricName string @@ -3132,6 +2535,13 @@ type ProjectsMetricsUpdateCall struct { } // Update: Creates or updates a logs-based metric. +// +// - metricName: The resource name of the metric to +// update: +// "projects/[PROJECT_ID]/metrics/[METRIC_ID]" +// The updated metric must be provided in the request and it's name field +// must be the same as [METRIC_ID] If the metric does not exist in +// [PROJECT_ID], then a new metric is created. func (r *ProjectsMetricsService) Update(metricName string, logmetric *LogMetric) *ProjectsMetricsUpdateCall { c := &ProjectsMetricsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.metricName = metricName @@ -3140,23 +2550,21 @@ func (r *ProjectsMetricsService) Update(metricName string, logmetric *LogMetric) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsMetricsUpdateCall) Fields(s ...googleapi.Field) *ProjectsMetricsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsMetricsUpdateCall) Context(ctx context.Context) *ProjectsMetricsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsMetricsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3165,18 +2573,12 @@ func (c *ProjectsMetricsUpdateCall) Header() http.Header { } func (c *ProjectsMetricsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.logmetric) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+metricName}") @@ -3189,16 +2591,14 @@ func (c *ProjectsMetricsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "metricName": c.metricName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.metrics.update" call. -// Exactly one of *LogMetric or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *LogMetric.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LogMetric.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsMetricsUpdateCall) Do(opts ...googleapi.CallOption) (*LogMetric, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3206,17 +2606,17 @@ func (c *ProjectsMetricsUpdateCall) Do(opts ...googleapi.CallOption) (*LogMetric if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LogMetric{ ServerResponse: googleapi.ServerResponse{ @@ -3229,40 +2629,7 @@ func (c *ProjectsMetricsUpdateCall) Do(opts ...googleapi.CallOption) (*LogMetric return nil, err } return ret, nil - // { - // "description": "Creates or updates a logs-based metric.", - // "flatPath": "v2beta1/projects/{projectsId}/metrics/{metricsId}", - // "httpMethod": "PUT", - // "id": "logging.projects.metrics.update", - // "parameterOrder": [ - // "metricName" - // ], - // "parameters": { - // "metricName": { - // "description": "The resource name of the metric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.", - // "location": "path", - // "pattern": "^projects/[^/]+/metrics/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta1/{+metricName}", - // "request": { - // "$ref": "LogMetric" - // }, - // "response": { - // "$ref": "LogMetric" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.write" - // ] - // } - -} - -// method id "logging.projects.sinks.create": +} type ProjectsSinksCreateCall struct { s *Service @@ -3273,11 +2640,18 @@ type ProjectsSinksCreateCall struct { header_ http.Header } -// Create: Creates a sink that exports specified log entries to a -// destination. The export of newly-ingested log entries begins -// immediately, unless the sink's writer_identity is not permitted to -// write to the destination. A sink can export log entries only from the -// resource owning the sink. +// Create: Creates a sink that exports specified log entries to a destination. +// The export of newly-ingested log entries begins immediately, unless the +// sink's writer_identity is not permitted to write to the destination. A sink +// can export log entries only from the resource owning the sink. +// +// - parent: The resource in which to create the +// sink: +// "projects/[PROJECT_ID]" +// "organizations/[ORGANIZATION_ID]" +// "billingAccounts/[BILLING_ACCOUNT_ID]" +// "folders/[FOLDER_ID]" +// Examples: "projects/my-logging-project", "organizations/123456789". func (r *ProjectsSinksService) Create(parent string, logsink *LogSink) *ProjectsSinksCreateCall { c := &ProjectsSinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3285,40 +2659,37 @@ func (r *ProjectsSinksService) Create(parent string, logsink *LogSink) *Projects return c } -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": Determines the kind of IAM identity returned -// as writer_identity in the new sink. If this value is omitted or set -// to false, and if the sink's parent is a project, then the value -// returned as writer_identity is the same group or service account used -// by Logging before the addition of writer identities to this API. The -// sink's destination must be in the same project as the sink itself.If -// this field is set to true, or if the sink is owned by a non-project -// resource such as an organization, then the value of writer_identity -// will be a unique service account used only for exports from the new -// sink. For more information, see writer_identity in LogSink. +// UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": +// Determines the kind of IAM identity returned as writer_identity in the new +// sink. If this value is omitted or set to false, and if the sink's parent is +// a project, then the value returned as writer_identity is the same group or +// service account used by Logging before the addition of writer identities to +// this API. The sink's destination must be in the same project as the sink +// itself.If this field is set to true, or if the sink is owned by a +// non-project resource such as an organization, then the value of +// writer_identity will be a unique service account used only for exports from +// the new sink. For more information, see writer_identity in LogSink. func (c *ProjectsSinksCreateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *ProjectsSinksCreateCall { c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsSinksCreateCall) Fields(s ...googleapi.Field) *ProjectsSinksCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsSinksCreateCall) Context(ctx context.Context) *ProjectsSinksCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsSinksCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3327,18 +2698,12 @@ func (c *ProjectsSinksCreateCall) Header() http.Header { } func (c *ProjectsSinksCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/sinks") @@ -3351,16 +2716,14 @@ func (c *ProjectsSinksCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.create" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3368,17 +2731,17 @@ func (c *ProjectsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LogSink{ ServerResponse: googleapi.ServerResponse{ @@ -3391,44 +2754,7 @@ func (c *ProjectsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, er return nil, err } return ret, nil - // { - // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", - // "flatPath": "v2beta1/projects/{projectsId}/sinks", - // "httpMethod": "POST", - // "id": "logging.projects.sinks.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "uniqueWriterIdentity": { - // "description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v2beta1/{+parent}/sinks", - // "request": { - // "$ref": "LogSink" - // }, - // "response": { - // "$ref": "LogSink" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" - // ] - // } - -} - -// method id "logging.projects.sinks.delete": +} type ProjectsSinksDeleteCall struct { s *Service @@ -3438,8 +2764,17 @@ type ProjectsSinksDeleteCall struct { header_ http.Header } -// Delete: Deletes a sink. If the sink has a unique writer_identity, -// then that service account is also deleted. +// Delete: Deletes a sink. If the sink has a unique writer_identity, then that +// service account is also deleted. +// +// - sinkName: The full resource name of the sink to delete, including the +// parent resource and the sink +// identifier: +// "projects/[PROJECT_ID]/sinks/[SINK_ID]" +// "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" +// "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" +// "folders/[FOLDER_ID]/sinks/[SINK_ID]" +// Example: "projects/my-project-id/sinks/my-sink-id". func (r *ProjectsSinksService) Delete(sinkNameid string) *ProjectsSinksDeleteCall { c := &ProjectsSinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.sinkNameid = sinkNameid @@ -3447,23 +2782,21 @@ func (r *ProjectsSinksService) Delete(sinkNameid string) *ProjectsSinksDeleteCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsSinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsSinksDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsSinksDeleteCall) Context(ctx context.Context) *ProjectsSinksDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsSinksDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3472,12 +2805,7 @@ func (c *ProjectsSinksDeleteCall) Header() http.Header { } func (c *ProjectsSinksDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3491,16 +2819,14 @@ func (c *ProjectsSinksDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3508,17 +2834,17 @@ func (c *ProjectsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -3531,36 +2857,7 @@ func (c *ProjectsSinksDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, erro return nil, err } return ret, nil - // { - // "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", - // "flatPath": "v2beta1/projects/{projectsId}/sinks/{sinksId}", - // "httpMethod": "DELETE", - // "id": "logging.projects.sinks.delete", - // "parameterOrder": [ - // "sinkName" - // ], - // "parameters": { - // "sinkName": { - // "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", - // "location": "path", - // "pattern": "^projects/[^/]+/sinks/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta1/{+sinkName}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" - // ] - // } - -} - -// method id "logging.projects.sinks.get": +} type ProjectsSinksGetCall struct { s *Service @@ -3572,6 +2869,14 @@ type ProjectsSinksGetCall struct { } // Get: Gets a sink. +// +// - sinkName: The resource name of the +// sink: +// "projects/[PROJECT_ID]/sinks/[SINK_ID]" +// "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" +// "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" +// "folders/[FOLDER_ID]/sinks/[SINK_ID]" +// Example: "projects/my-project-id/sinks/my-sink-id". func (r *ProjectsSinksService) Get(sinkName string) *ProjectsSinksGetCall { c := &ProjectsSinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.sinkName = sinkName @@ -3579,33 +2884,29 @@ func (r *ProjectsSinksService) Get(sinkName string) *ProjectsSinksGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsSinksGetCall) Fields(s ...googleapi.Field) *ProjectsSinksGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsSinksGetCall) IfNoneMatch(entityTag string) *ProjectsSinksGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsSinksGetCall) Context(ctx context.Context) *ProjectsSinksGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsSinksGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3614,12 +2915,7 @@ func (c *ProjectsSinksGetCall) Header() http.Header { } func (c *ProjectsSinksGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3636,16 +2932,14 @@ func (c *ProjectsSinksGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.get" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3653,17 +2947,17 @@ func (c *ProjectsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LogSink{ ServerResponse: googleapi.ServerResponse{ @@ -3676,38 +2970,7 @@ func (c *ProjectsSinksGetCall) Do(opts ...googleapi.CallOption) (*LogSink, error return nil, err } return ret, nil - // { - // "description": "Gets a sink.", - // "flatPath": "v2beta1/projects/{projectsId}/sinks/{sinksId}", - // "httpMethod": "GET", - // "id": "logging.projects.sinks.get", - // "parameterOrder": [ - // "sinkName" - // ], - // "parameters": { - // "sinkName": { - // "description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", - // "location": "path", - // "pattern": "^projects/[^/]+/sinks/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta1/{+sinkName}", - // "response": { - // "$ref": "LogSink" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" - // ] - // } - -} - -// method id "logging.projects.sinks.list": +} type ProjectsSinksListCall struct { s *Service @@ -3719,59 +2982,62 @@ type ProjectsSinksListCall struct { } // List: Lists sinks. +// +// - parent: The parent resource whose sinks are to be +// listed: +// "projects/[PROJECT_ID]" +// "organizations/[ORGANIZATION_ID]" +// "billingAccounts/[BILLING_ACCOUNT_ID]" +// +// "folders/[FOLDER_ID]". func (r *ProjectsSinksService) List(parent string) *ProjectsSinksListCall { c := &ProjectsSinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return from this request. Non-positive values are -// ignored. The presence of nextPageToken in the response indicates that -// more results might be available. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return from this request. Non-positive values are ignored. The +// presence of nextPageToken in the response indicates that more results might +// be available. func (c *ProjectsSinksListCall) PageSize(pageSize int64) *ProjectsSinksListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": If present, then -// retrieve the next batch of results from the preceding call to this -// method. pageToken must be the value of nextPageToken from the -// previous response. The values of other method parameters should be -// identical to those in the previous call. +// PageToken sets the optional parameter "pageToken": If present, then retrieve +// the next batch of results from the preceding call to this method. pageToken +// must be the value of nextPageToken from the previous response. The values of +// other method parameters should be identical to those in the previous call. func (c *ProjectsSinksListCall) PageToken(pageToken string) *ProjectsSinksListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsSinksListCall) Fields(s ...googleapi.Field) *ProjectsSinksListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsSinksListCall) IfNoneMatch(entityTag string) *ProjectsSinksListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsSinksListCall) Context(ctx context.Context) *ProjectsSinksListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsSinksListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3780,12 +3046,7 @@ func (c *ProjectsSinksListCall) Header() http.Header { } func (c *ProjectsSinksListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3802,16 +3063,15 @@ func (c *ProjectsSinksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.list" call. -// Exactly one of *ListSinksResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListSinksResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListSinksResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3819,17 +3079,17 @@ func (c *ProjectsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListSinksResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3842,46 +3102,6 @@ func (c *ProjectsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResp return nil, err } return ret, nil - // { - // "description": "Lists sinks.", - // "flatPath": "v2beta1/projects/{projectsId}/sinks", - // "httpMethod": "GET", - // "id": "logging.projects.sinks.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta1/{+parent}/sinks", - // "response": { - // "$ref": "ListSinksResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/logging.admin", - // "https://www.googleapis.com/auth/logging.read" - // ] - // } - } // Pages invokes f for each page of results. @@ -3889,7 +3109,7 @@ func (c *ProjectsSinksListCall) Do(opts ...googleapi.CallOption) (*ListSinksResp // The provided context supersedes any context provided to the Context method. func (c *ProjectsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3905,8 +3125,6 @@ func (c *ProjectsSinksListCall) Pages(ctx context.Context, f func(*ListSinksResp } } -// method id "logging.projects.sinks.update": - type ProjectsSinksUpdateCall struct { s *Service sinkNameid string @@ -3916,10 +3134,19 @@ type ProjectsSinksUpdateCall struct { header_ http.Header } -// Update: Updates a sink. This method replaces the following fields in -// the existing sink with values from the new sink: destination, and -// filter.The updated sink might also have a new writer_identity; see -// the unique_writer_identity field. +// Update: Updates a sink. This method replaces the following fields in the +// existing sink with values from the new sink: destination, and filter.The +// updated sink might also have a new writer_identity; see the +// unique_writer_identity field. +// +// - sinkName: The full resource name of the sink to update, including the +// parent resource and the sink +// identifier: +// "projects/[PROJECT_ID]/sinks/[SINK_ID]" +// "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" +// "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" +// "folders/[FOLDER_ID]/sinks/[SINK_ID]" +// Example: "projects/my-project-id/sinks/my-sink-id". func (r *ProjectsSinksService) Update(sinkNameid string, logsink *LogSink) *ProjectsSinksUpdateCall { c := &ProjectsSinksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.sinkNameid = sinkNameid @@ -3927,30 +3154,29 @@ func (r *ProjectsSinksService) Update(sinkNameid string, logsink *LogSink) *Proj return c } -// UniqueWriterIdentity sets the optional parameter -// "uniqueWriterIdentity": See sinks.create for a description of this -// field. When updating a sink, the effect of this field on the value of -// writer_identity in the updated sink depends on both the old and new -// values of this field: -// If the old and new values of this field are both false or both true, -// then there is no change to the sink's writer_identity. -// If the old value is false and the new value is true, then -// writer_identity is changed to a unique service account. -// It is an error if the old value is true and the new value is set to -// false or defaulted to false. +// UniqueWriterIdentity sets the optional parameter "uniqueWriterIdentity": See +// sinks.create for a description of this field. When updating a sink, the +// effect of this field on the value of writer_identity in the updated sink +// depends on both the old and new values of this field: +// If the old and new values of this field are both false or both true, then +// there is no change to the sink's writer_identity. +// If the old value is false and the new value is true, then writer_identity is +// changed to a unique service account. +// It is an error if the old value is true and the new value is set to false or +// defaulted to false. func (c *ProjectsSinksUpdateCall) UniqueWriterIdentity(uniqueWriterIdentity bool) *ProjectsSinksUpdateCall { c.urlParams_.Set("uniqueWriterIdentity", fmt.Sprint(uniqueWriterIdentity)) return c } // UpdateMask sets the optional parameter "updateMask": Field mask that -// specifies the fields in sink that need an update. A sink field will -// be overwritten if, and only if, it is in the update mask. name and -// output only fields cannot be updated.An empty updateMask is -// temporarily treated as using the following mask for backwards -// compatibility purposes: destination,filter,includeChildren At some -// point in the future, behavior will be removed and specifying an empty -// updateMask will be an error.For a detailed FieldMask definition, see +// specifies the fields in sink that need an update. A sink field will be +// overwritten if, and only if, it is in the update mask. name and output only +// fields cannot be updated.An empty updateMask is temporarily treated as using +// the following mask for backwards compatibility purposes: +// destination,filter,includeChildren At some point in the future, behavior +// will be removed and specifying an empty updateMask will be an error.For a +// detailed FieldMask definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: // updateMask=filter. func (c *ProjectsSinksUpdateCall) UpdateMask(updateMask string) *ProjectsSinksUpdateCall { @@ -3959,23 +3185,21 @@ func (c *ProjectsSinksUpdateCall) UpdateMask(updateMask string) *ProjectsSinksUp } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsSinksUpdateCall) Fields(s ...googleapi.Field) *ProjectsSinksUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsSinksUpdateCall) Context(ctx context.Context) *ProjectsSinksUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsSinksUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3984,18 +3208,12 @@ func (c *ProjectsSinksUpdateCall) Header() http.Header { } func (c *ProjectsSinksUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.logsink) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+sinkName}") @@ -4008,16 +3226,14 @@ func (c *ProjectsSinksUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "sinkName": c.sinkNameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "logging.projects.sinks.update" call. -// Exactly one of *LogSink or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *LogSink.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LogSink.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4025,17 +3241,17 @@ func (c *ProjectsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LogSink{ ServerResponse: googleapi.ServerResponse{ @@ -4048,45 +3264,4 @@ func (c *ProjectsSinksUpdateCall) Do(opts ...googleapi.CallOption) (*LogSink, er return nil, err } return ret, nil - // { - // "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writer_identity; see the unique_writer_identity field.", - // "flatPath": "v2beta1/projects/{projectsId}/sinks/{sinksId}", - // "httpMethod": "PUT", - // "id": "logging.projects.sinks.update", - // "parameterOrder": [ - // "sinkName" - // ], - // "parameters": { - // "sinkName": { - // "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", - // "location": "path", - // "pattern": "^projects/[^/]+/sinks/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "uniqueWriterIdentity": { - // "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field:\nIf the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity.\nIf the old value is false and the new value is true, then writer_identity is changed to a unique service account.\nIt is an error if the old value is true and the new value is set to false or defaulted to false.", - // "location": "query", - // "type": "boolean" - // }, - // "updateMask": { - // "description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2beta1/{+sinkName}", - // "request": { - // "$ref": "LogSink" - // }, - // "response": { - // "$ref": "LogSink" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/logging.admin" - // ] - // } - } diff --git a/looker/v1/looker-gen.go b/looker/v1/looker-gen.go index 54b11e895a3..689a779c30f 100644 --- a/looker/v1/looker-gen.go +++ b/looker/v1/looker-gen.go @@ -1561,7 +1561,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.get" call. @@ -1692,7 +1692,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.list" call. @@ -1824,7 +1824,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.create" call. @@ -1927,7 +1927,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.delete" call. @@ -2029,7 +2029,7 @@ func (c *ProjectsLocationsInstancesExportCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.export" call. @@ -2137,7 +2137,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.get" call. @@ -2264,7 +2264,7 @@ func (c *ProjectsLocationsInstancesGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.getIamPolicy" call. @@ -2366,7 +2366,7 @@ func (c *ProjectsLocationsInstancesImportCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.import" call. @@ -2488,7 +2488,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.list" call. @@ -2621,7 +2621,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.patch" call. @@ -2723,7 +2723,7 @@ func (c *ProjectsLocationsInstancesRestartCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.restart" call. @@ -2828,7 +2828,7 @@ func (c *ProjectsLocationsInstancesSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.setIamPolicy" call. @@ -2936,7 +2936,7 @@ func (c *ProjectsLocationsInstancesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.testIamPermissions" call. @@ -3064,7 +3064,7 @@ func (c *ProjectsLocationsInstancesBackupsGetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.backups.getIamPolicy" call. @@ -3169,7 +3169,7 @@ func (c *ProjectsLocationsInstancesBackupsSetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.backups.setIamPolicy" call. @@ -3277,7 +3277,7 @@ func (c *ProjectsLocationsInstancesBackupsTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.instances.backups.testIamPermissions" call. @@ -3387,7 +3387,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.operations.cancel" call. @@ -3485,7 +3485,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.operations.delete" call. @@ -3594,7 +3594,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.operations.get" call. @@ -3722,7 +3722,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "looker.projects.locations.operations.list" call. diff --git a/managedidentities/v1/managedidentities-gen.go b/managedidentities/v1/managedidentities-gen.go index 883a24130c9..69694c85f55 100644 --- a/managedidentities/v1/managedidentities-gen.go +++ b/managedidentities/v1/managedidentities-gen.go @@ -2524,7 +2524,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.get" call. @@ -2655,7 +2655,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.list" call. @@ -2779,7 +2779,7 @@ func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.attachTrust" call. @@ -2882,7 +2882,7 @@ func (c *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.checkMigrationPermission" call. @@ -2998,7 +2998,7 @@ func (c *ProjectsLocationsGlobalDomainsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.create" call. @@ -3094,7 +3094,7 @@ func (c *ProjectsLocationsGlobalDomainsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.delete" call. @@ -3196,7 +3196,7 @@ func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.detachTrust" call. @@ -3298,7 +3298,7 @@ func (c *ProjectsLocationsGlobalDomainsDisableMigrationCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.disableMigration" call. @@ -3401,7 +3401,7 @@ func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.domainJoinMachine" call. @@ -3504,7 +3504,7 @@ func (c *ProjectsLocationsGlobalDomainsEnableMigrationCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.enableMigration" call. @@ -3606,7 +3606,7 @@ func (c *ProjectsLocationsGlobalDomainsExtendSchemaCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.extendSchema" call. @@ -3714,7 +3714,7 @@ func (c *ProjectsLocationsGlobalDomainsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.get" call. @@ -3841,7 +3841,7 @@ func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.getIamPolicy" call. @@ -3949,7 +3949,7 @@ func (c *ProjectsLocationsGlobalDomainsGetLdapssettingsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.getLdapssettings" call. @@ -4090,7 +4090,7 @@ func (c *ProjectsLocationsGlobalDomainsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.list" call. @@ -4223,7 +4223,7 @@ func (c *ProjectsLocationsGlobalDomainsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.patch" call. @@ -4325,7 +4325,7 @@ func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.reconfigureTrust" call. @@ -4427,7 +4427,7 @@ func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.resetAdminPassword" call. @@ -4530,7 +4530,7 @@ func (c *ProjectsLocationsGlobalDomainsRestoreCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.restore" call. @@ -4635,7 +4635,7 @@ func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.setIamPolicy" call. @@ -4743,7 +4743,7 @@ func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.testIamPermissions" call. @@ -4855,7 +4855,7 @@ func (c *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.updateLdapssettings" call. @@ -4958,7 +4958,7 @@ func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.validateTrust" call. @@ -5070,7 +5070,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.create" call. @@ -5167,7 +5167,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.delete" call. @@ -5276,7 +5276,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.get" call. @@ -5403,7 +5403,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.getIamPolicy" call. @@ -5543,7 +5543,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.list" call. @@ -5677,7 +5677,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.patch" call. @@ -5782,7 +5782,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.setIamPolicy" call. @@ -5890,7 +5890,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.testIamPermissions" call. @@ -6000,7 +6000,7 @@ func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.sqlIntegrations.get" call. @@ -6140,7 +6140,7 @@ func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.sqlIntegrations.list" call. @@ -6271,7 +6271,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.cancel" call. @@ -6369,7 +6369,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.delete" call. @@ -6478,7 +6478,7 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.get" call. @@ -6606,7 +6606,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.list" call. @@ -6738,7 +6738,7 @@ func (c *ProjectsLocationsGlobalPeeringsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.create" call. @@ -6834,7 +6834,7 @@ func (c *ProjectsLocationsGlobalPeeringsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.delete" call. @@ -6942,7 +6942,7 @@ func (c *ProjectsLocationsGlobalPeeringsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.get" call. @@ -7069,7 +7069,7 @@ func (c *ProjectsLocationsGlobalPeeringsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.getIamPolicy" call. @@ -7211,7 +7211,7 @@ func (c *ProjectsLocationsGlobalPeeringsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.list" call. @@ -7345,7 +7345,7 @@ func (c *ProjectsLocationsGlobalPeeringsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.patch" call. @@ -7450,7 +7450,7 @@ func (c *ProjectsLocationsGlobalPeeringsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.setIamPolicy" call. @@ -7558,7 +7558,7 @@ func (c *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.testIamPermissions" call. diff --git a/managedidentities/v1alpha1/managedidentities-gen.go b/managedidentities/v1alpha1/managedidentities-gen.go index 5c39e24db2c..0e42b161aa8 100644 --- a/managedidentities/v1alpha1/managedidentities-gen.go +++ b/managedidentities/v1alpha1/managedidentities-gen.go @@ -2522,7 +2522,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.get" call. @@ -2653,7 +2653,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.list" call. @@ -2777,7 +2777,7 @@ func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.attachTrust" call. @@ -2880,7 +2880,7 @@ func (c *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.checkMigrationPermission" call. @@ -2996,7 +2996,7 @@ func (c *ProjectsLocationsGlobalDomainsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.create" call. @@ -3092,7 +3092,7 @@ func (c *ProjectsLocationsGlobalDomainsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.delete" call. @@ -3194,7 +3194,7 @@ func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.detachTrust" call. @@ -3296,7 +3296,7 @@ func (c *ProjectsLocationsGlobalDomainsDisableMigrationCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.disableMigration" call. @@ -3399,7 +3399,7 @@ func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.domainJoinMachine" call. @@ -3502,7 +3502,7 @@ func (c *ProjectsLocationsGlobalDomainsEnableMigrationCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.enableMigration" call. @@ -3604,7 +3604,7 @@ func (c *ProjectsLocationsGlobalDomainsExtendSchemaCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.extendSchema" call. @@ -3712,7 +3712,7 @@ func (c *ProjectsLocationsGlobalDomainsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.get" call. @@ -3839,7 +3839,7 @@ func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.getIamPolicy" call. @@ -3947,7 +3947,7 @@ func (c *ProjectsLocationsGlobalDomainsGetLdapssettingsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.getLdapssettings" call. @@ -4087,7 +4087,7 @@ func (c *ProjectsLocationsGlobalDomainsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.list" call. @@ -4222,7 +4222,7 @@ func (c *ProjectsLocationsGlobalDomainsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.patch" call. @@ -4324,7 +4324,7 @@ func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.reconfigureTrust" call. @@ -4427,7 +4427,7 @@ func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.resetAdminPassword" call. @@ -4530,7 +4530,7 @@ func (c *ProjectsLocationsGlobalDomainsRestoreCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.restore" call. @@ -4635,7 +4635,7 @@ func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.setIamPolicy" call. @@ -4743,7 +4743,7 @@ func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.testIamPermissions" call. @@ -4855,7 +4855,7 @@ func (c *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.updateLdapssettings" call. @@ -4957,7 +4957,7 @@ func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.validateTrust" call. @@ -5069,7 +5069,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.create" call. @@ -5166,7 +5166,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.delete" call. @@ -5275,7 +5275,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.get" call. @@ -5402,7 +5402,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.getIamPolicy" call. @@ -5542,7 +5542,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.list" call. @@ -5675,7 +5675,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.patch" call. @@ -5780,7 +5780,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.setIamPolicy" call. @@ -5888,7 +5888,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.testIamPermissions" call. @@ -5997,7 +5997,7 @@ func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.sqlIntegrations.get" call. @@ -6137,7 +6137,7 @@ func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.sqlIntegrations.list" call. @@ -6268,7 +6268,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.cancel" call. @@ -6366,7 +6366,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.delete" call. @@ -6475,7 +6475,7 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.get" call. @@ -6603,7 +6603,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.list" call. @@ -6734,7 +6734,7 @@ func (c *ProjectsLocationsGlobalPeeringsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.create" call. @@ -6830,7 +6830,7 @@ func (c *ProjectsLocationsGlobalPeeringsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.delete" call. @@ -6938,7 +6938,7 @@ func (c *ProjectsLocationsGlobalPeeringsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.get" call. @@ -7065,7 +7065,7 @@ func (c *ProjectsLocationsGlobalPeeringsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.getIamPolicy" call. @@ -7206,7 +7206,7 @@ func (c *ProjectsLocationsGlobalPeeringsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.list" call. @@ -7340,7 +7340,7 @@ func (c *ProjectsLocationsGlobalPeeringsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.patch" call. @@ -7445,7 +7445,7 @@ func (c *ProjectsLocationsGlobalPeeringsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.setIamPolicy" call. @@ -7553,7 +7553,7 @@ func (c *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.testIamPermissions" call. diff --git a/managedidentities/v1beta1/managedidentities-gen.go b/managedidentities/v1beta1/managedidentities-gen.go index 673e0a57ad4..e91f59a55ad 100644 --- a/managedidentities/v1beta1/managedidentities-gen.go +++ b/managedidentities/v1beta1/managedidentities-gen.go @@ -2533,7 +2533,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.get" call. @@ -2664,7 +2664,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.list" call. @@ -2788,7 +2788,7 @@ func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.attachTrust" call. @@ -2891,7 +2891,7 @@ func (c *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.checkMigrationPermission" call. @@ -3006,7 +3006,7 @@ func (c *ProjectsLocationsGlobalDomainsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.create" call. @@ -3102,7 +3102,7 @@ func (c *ProjectsLocationsGlobalDomainsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.delete" call. @@ -3204,7 +3204,7 @@ func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.detachTrust" call. @@ -3306,7 +3306,7 @@ func (c *ProjectsLocationsGlobalDomainsDisableMigrationCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.disableMigration" call. @@ -3409,7 +3409,7 @@ func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.domainJoinMachine" call. @@ -3512,7 +3512,7 @@ func (c *ProjectsLocationsGlobalDomainsEnableMigrationCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.enableMigration" call. @@ -3614,7 +3614,7 @@ func (c *ProjectsLocationsGlobalDomainsExtendSchemaCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "domain": c.domain, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.extendSchema" call. @@ -3722,7 +3722,7 @@ func (c *ProjectsLocationsGlobalDomainsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.get" call. @@ -3849,7 +3849,7 @@ func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.getIamPolicy" call. @@ -3957,7 +3957,7 @@ func (c *ProjectsLocationsGlobalDomainsGetLdapssettingsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.getLdapssettings" call. @@ -4098,7 +4098,7 @@ func (c *ProjectsLocationsGlobalDomainsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.list" call. @@ -4231,7 +4231,7 @@ func (c *ProjectsLocationsGlobalDomainsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.patch" call. @@ -4333,7 +4333,7 @@ func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.reconfigureTrust" call. @@ -4435,7 +4435,7 @@ func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.resetAdminPassword" call. @@ -4537,7 +4537,7 @@ func (c *ProjectsLocationsGlobalDomainsRestoreCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.restore" call. @@ -4642,7 +4642,7 @@ func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.setIamPolicy" call. @@ -4750,7 +4750,7 @@ func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.testIamPermissions" call. @@ -4862,7 +4862,7 @@ func (c *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.updateLdapssettings" call. @@ -4965,7 +4965,7 @@ func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.validateTrust" call. @@ -5077,7 +5077,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.create" call. @@ -5174,7 +5174,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.delete" call. @@ -5283,7 +5283,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.get" call. @@ -5410,7 +5410,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.getIamPolicy" call. @@ -5550,7 +5550,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.list" call. @@ -5683,7 +5683,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.patch" call. @@ -5788,7 +5788,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.setIamPolicy" call. @@ -5896,7 +5896,7 @@ func (c *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.backups.testIamPermissions" call. @@ -6005,7 +6005,7 @@ func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.sqlIntegrations.get" call. @@ -6145,7 +6145,7 @@ func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.domains.sqlIntegrations.list" call. @@ -6276,7 +6276,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.cancel" call. @@ -6374,7 +6374,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.delete" call. @@ -6483,7 +6483,7 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.get" call. @@ -6611,7 +6611,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.operations.list" call. @@ -6742,7 +6742,7 @@ func (c *ProjectsLocationsGlobalPeeringsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.create" call. @@ -6838,7 +6838,7 @@ func (c *ProjectsLocationsGlobalPeeringsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.delete" call. @@ -6946,7 +6946,7 @@ func (c *ProjectsLocationsGlobalPeeringsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.get" call. @@ -7073,7 +7073,7 @@ func (c *ProjectsLocationsGlobalPeeringsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.getIamPolicy" call. @@ -7214,7 +7214,7 @@ func (c *ProjectsLocationsGlobalPeeringsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.list" call. @@ -7348,7 +7348,7 @@ func (c *ProjectsLocationsGlobalPeeringsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.patch" call. @@ -7453,7 +7453,7 @@ func (c *ProjectsLocationsGlobalPeeringsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.setIamPolicy" call. @@ -7561,7 +7561,7 @@ func (c *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "managedidentities.projects.locations.global.peerings.testIamPermissions" call. diff --git a/manufacturers/v1/manufacturers-gen.go b/manufacturers/v1/manufacturers-gen.go index eb63c667ae5..5e8148d53b2 100644 --- a/manufacturers/v1/manufacturers-gen.go +++ b/manufacturers/v1/manufacturers-gen.go @@ -1205,7 +1205,7 @@ func (c *AccountsLanguagesProductCertificationsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "manufacturers.accounts.languages.productCertifications.delete" call. @@ -1314,7 +1314,7 @@ func (c *AccountsLanguagesProductCertificationsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "manufacturers.accounts.languages.productCertifications.get" call. @@ -1443,7 +1443,7 @@ func (c *AccountsLanguagesProductCertificationsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "manufacturers.accounts.languages.productCertifications.list" call. @@ -1581,7 +1581,7 @@ func (c *AccountsLanguagesProductCertificationsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "manufacturers.accounts.languages.productCertifications.patch" call. @@ -1688,7 +1688,7 @@ func (c *AccountsProductsDeleteCall) doRequest(alt string) (*http.Response, erro "parent": c.parent, "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "manufacturers.accounts.products.delete" call. @@ -1824,7 +1824,7 @@ func (c *AccountsProductsGetCall) doRequest(alt string) (*http.Response, error) "parent": c.parent, "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "manufacturers.accounts.products.get" call. @@ -1960,7 +1960,7 @@ func (c *AccountsProductsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "manufacturers.accounts.products.list" call. @@ -2104,7 +2104,7 @@ func (c *AccountsProductsUpdateCall) doRequest(alt string) (*http.Response, erro "parent": c.parent, "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "manufacturers.accounts.products.update" call. diff --git a/marketingplatformadmin/v1alpha/marketingplatformadmin-gen.go b/marketingplatformadmin/v1alpha/marketingplatformadmin-gen.go index 5bb1151ee9f..4b991b1604b 100644 --- a/marketingplatformadmin/v1alpha/marketingplatformadmin-gen.go +++ b/marketingplatformadmin/v1alpha/marketingplatformadmin-gen.go @@ -404,7 +404,7 @@ func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "marketingplatformadmin.organizations.get" call. @@ -510,7 +510,7 @@ func (c *OrganizationsAnalyticsAccountLinksCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "marketingplatformadmin.organizations.analyticsAccountLinks.create" call. @@ -609,7 +609,7 @@ func (c *OrganizationsAnalyticsAccountLinksDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "marketingplatformadmin.organizations.analyticsAccountLinks.delete" call. @@ -738,7 +738,7 @@ func (c *OrganizationsAnalyticsAccountLinksListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "marketingplatformadmin.organizations.analyticsAccountLinks.list" call. @@ -864,7 +864,7 @@ func (c *OrganizationsAnalyticsAccountLinksSetPropertyServiceLevelCall) doReques googleapi.Expand(req.URL, map[string]string{ "analyticsAccountLink": c.analyticsAccountLink, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "marketingplatformadmin.organizations.analyticsAccountLinks.setPropertyServiceLevel" call. diff --git a/meet/v2/meet-gen.go b/meet/v2/meet-gen.go index 0fec71e193c..4f3e14ef00c 100644 --- a/meet/v2/meet-gen.go +++ b/meet/v2/meet-gen.go @@ -992,7 +992,7 @@ func (c *ConferenceRecordsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.get" call. @@ -1124,7 +1124,7 @@ func (c *ConferenceRecordsListCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.list" call. @@ -1253,7 +1253,7 @@ func (c *ConferenceRecordsParticipantsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.participants.get" call. @@ -1392,7 +1392,7 @@ func (c *ConferenceRecordsParticipantsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.participants.list" call. @@ -1521,7 +1521,7 @@ func (c *ConferenceRecordsParticipantsParticipantSessionsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.participants.participantSessions.get" call. @@ -1662,7 +1662,7 @@ func (c *ConferenceRecordsParticipantsParticipantSessionsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.participants.participantSessions.list" call. @@ -1791,7 +1791,7 @@ func (c *ConferenceRecordsRecordingsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.recordings.get" call. @@ -1915,7 +1915,7 @@ func (c *ConferenceRecordsRecordingsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.recordings.list" call. @@ -2044,7 +2044,7 @@ func (c *ConferenceRecordsTranscriptsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.transcripts.get" call. @@ -2168,7 +2168,7 @@ func (c *ConferenceRecordsTranscriptsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.transcripts.list" call. @@ -2300,7 +2300,7 @@ func (c *ConferenceRecordsTranscriptsEntriesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.transcripts.entries.get" call. @@ -2429,7 +2429,7 @@ func (c *ConferenceRecordsTranscriptsEntriesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.conferenceRecords.transcripts.entries.list" call. @@ -2545,7 +2545,7 @@ func (c *SpacesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.spaces.create" call. @@ -2652,7 +2652,7 @@ func (c *SpacesEndActiveConferenceCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.spaces.endActiveConference" call. @@ -2773,7 +2773,7 @@ func (c *SpacesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.spaces.get" call. @@ -2891,7 +2891,7 @@ func (c *SpacesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "meet.spaces.patch" call. diff --git a/memcache/v1/memcache-gen.go b/memcache/v1/memcache-gen.go index 08bcd84185a..7e0631581cd 100644 --- a/memcache/v1/memcache-gen.go +++ b/memcache/v1/memcache-gen.go @@ -1755,7 +1755,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.get" call. @@ -1886,7 +1886,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.list" call. @@ -2012,7 +2012,7 @@ func (c *ProjectsLocationsInstancesApplyParametersCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.applyParameters" call. @@ -2126,7 +2126,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.create" call. @@ -2223,7 +2223,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.delete" call. @@ -2332,7 +2332,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.get" call. @@ -2473,7 +2473,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.list" call. @@ -2609,7 +2609,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.patch" call. @@ -2712,7 +2712,7 @@ func (c *ProjectsLocationsInstancesRescheduleMaintenanceCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.rescheduleMaintenance" call. @@ -2817,7 +2817,7 @@ func (c *ProjectsLocationsInstancesUpdateParametersCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.updateParameters" call. @@ -2921,7 +2921,7 @@ func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.upgrade" call. @@ -3030,7 +3030,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.operations.cancel" call. @@ -3128,7 +3128,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.operations.delete" call. @@ -3237,7 +3237,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.operations.get" call. @@ -3365,7 +3365,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.operations.list" call. diff --git a/memcache/v1beta2/memcache-gen.go b/memcache/v1beta2/memcache-gen.go index fdb5aca7262..c974ac9e274 100644 --- a/memcache/v1beta2/memcache-gen.go +++ b/memcache/v1beta2/memcache-gen.go @@ -1790,7 +1790,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.get" call. @@ -1921,7 +1921,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.list" call. @@ -2047,7 +2047,7 @@ func (c *ProjectsLocationsInstancesApplyParametersCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.applyParameters" call. @@ -2149,7 +2149,7 @@ func (c *ProjectsLocationsInstancesApplySoftwareUpdateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.applySoftwareUpdate" call. @@ -2263,7 +2263,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.create" call. @@ -2360,7 +2360,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.delete" call. @@ -2469,7 +2469,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.get" call. @@ -2610,7 +2610,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.list" call. @@ -2746,7 +2746,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.patch" call. @@ -2850,7 +2850,7 @@ func (c *ProjectsLocationsInstancesRescheduleMaintenanceCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.rescheduleMaintenance" call. @@ -2955,7 +2955,7 @@ func (c *ProjectsLocationsInstancesUpdateParametersCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.updateParameters" call. @@ -3059,7 +3059,7 @@ func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.instances.upgrade" call. @@ -3168,7 +3168,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.operations.cancel" call. @@ -3266,7 +3266,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.operations.delete" call. @@ -3375,7 +3375,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.operations.get" call. @@ -3503,7 +3503,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "memcache.projects.locations.operations.list" call. diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index fecc7a15292..737e2f9ae4d 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -1417,7 +1417,7 @@ } } }, - "revision": "20240909", + "revision": "20240916", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AcceptTermsOfService": { @@ -1425,7 +1425,7 @@ "id": "AcceptTermsOfService", "properties": { "name": { - "description": "Required. The resource name of the terms of service version.", + "description": "Required. The resource name of the terms of service version in the format `termsOfService/{version}`. To retrieve the latest version, use the [termsOfService.retrieveLatest](/merchant/api/reference/rest/accounts_v1beta/termsOfService/retrieveLatest) method.", "type": "string" }, "regionCode": { @@ -1902,7 +1902,7 @@ "description": "The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed." }, "maxHandlingDays": { - "description": "Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `min_handling_days`.", + "description": "Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `min_handling_days`. 'min_handling_days' and 'max_handling_days' should be either set or not set at the same time.", "format": "int32", "type": "integer" }, @@ -1912,7 +1912,7 @@ "type": "integer" }, "minHandlingDays": { - "description": "Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.", + "description": "Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. 'min_handling_days' and 'max_handling_days' should be either set or not set at the same time.", "format": "int32", "type": "integer" }, diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index 38f722272f7..195c31a3028 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -320,7 +320,11 @@ type TermsOfServiceService struct { // AcceptTermsOfService: Reference to a Terms of Service resource. type AcceptTermsOfService struct { - // Name: Required. The resource name of the terms of service version. + // Name: Required. The resource name of the terms of service version in the + // format `termsOfService/{version}`. To retrieve the latest version, use the + // termsOfService.retrieveLatest + // (/merchant/api/reference/rest/accounts_v1beta/termsOfService/retrieveLatest) + // method. Name string `json:"name,omitempty"` // RegionCode: Required. Region code as defined by CLDR // (https://cldr.unicode.org/). This is either a country when the ToS applies @@ -947,7 +951,8 @@ type DeliveryTime struct { HandlingBusinessDayConfig *BusinessDayConfig `json:"handlingBusinessDayConfig,omitempty"` // MaxHandlingDays: Maximum number of business days spent before an order is // shipped. 0 means same day shipped, 1 means next day shipped. Must be greater - // than or equal to `min_handling_days`. + // than or equal to `min_handling_days`. 'min_handling_days' and + // 'max_handling_days' should be either set or not set at the same time. MaxHandlingDays int64 `json:"maxHandlingDays,omitempty"` // MaxTransitDays: Maximum number of business days that is spent in transit. 0 // means same day delivery, 1 means next day delivery. Must be greater than or @@ -955,6 +960,8 @@ type DeliveryTime struct { MaxTransitDays int64 `json:"maxTransitDays,omitempty"` // MinHandlingDays: Minimum number of business days spent before an order is // shipped. 0 means same day shipped, 1 means next day shipped. + // 'min_handling_days' and 'max_handling_days' should be either set or not set + // at the same time. MinHandlingDays int64 `json:"minHandlingDays,omitempty"` // MinTransitDays: Minimum number of business days that is spent in transit. 0 // means same day delivery, 1 means next day delivery. Either @@ -3118,7 +3125,7 @@ func (c *AccountsCreateAndConfigureCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.createAndConfigure" call. @@ -3215,7 +3222,7 @@ func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.delete" call. @@ -3324,7 +3331,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.get" call. @@ -3455,7 +3462,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.list" call. @@ -3606,7 +3613,7 @@ func (c *AccountsListSubaccountsCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "provider": c.provider, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.listSubaccounts" call. @@ -3738,7 +3745,7 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.patch" call. @@ -3846,7 +3853,7 @@ func (c *AccountsAutofeedSettingsGetAutofeedSettingsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.autofeedSettings.getAutofeedSettings" call. @@ -3956,7 +3963,7 @@ func (c *AccountsAutofeedSettingsUpdateAutofeedSettingsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.autofeedSettings.updateAutofeedSettings" call. @@ -4065,7 +4072,7 @@ func (c *AccountsBusinessIdentityGetBusinessIdentityCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.businessIdentity.getBusinessIdentity" call. @@ -4176,7 +4183,7 @@ func (c *AccountsBusinessIdentityUpdateBusinessIdentityCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.businessIdentity.updateBusinessIdentity" call. @@ -4285,7 +4292,7 @@ func (c *AccountsBusinessInfoGetBusinessInfoCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.businessInfo.getBusinessInfo" call. @@ -4395,7 +4402,7 @@ func (c *AccountsBusinessInfoUpdateBusinessInfoCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.businessInfo.updateBusinessInfo" call. @@ -4505,7 +4512,7 @@ func (c *AccountsEmailPreferencesGetEmailPreferencesCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.emailPreferences.getEmailPreferences" call. @@ -4621,7 +4628,7 @@ func (c *AccountsEmailPreferencesUpdateEmailPreferencesCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.emailPreferences.updateEmailPreferences" call. @@ -4733,7 +4740,7 @@ func (c *AccountsHomepageClaimCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.homepage.claim" call. @@ -4841,7 +4848,7 @@ func (c *AccountsHomepageGetHomepageCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.homepage.getHomepage" call. @@ -4944,7 +4951,7 @@ func (c *AccountsHomepageUnclaimCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.homepage.unclaim" call. @@ -5054,7 +5061,7 @@ func (c *AccountsHomepageUpdateHomepageCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.homepage.updateHomepage" call. @@ -5203,7 +5210,7 @@ func (c *AccountsIssuesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.issues.list" call. @@ -5333,7 +5340,7 @@ func (c *AccountsOnlineReturnPoliciesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.onlineReturnPolicies.get" call. @@ -5464,7 +5471,7 @@ func (c *AccountsOnlineReturnPoliciesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.onlineReturnPolicies.list" call. @@ -5589,7 +5596,7 @@ func (c *AccountsProgramsDisableCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.programs.disable" call. @@ -5692,7 +5699,7 @@ func (c *AccountsProgramsEnableCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.programs.enable" call. @@ -5800,7 +5807,7 @@ func (c *AccountsProgramsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.programs.get" call. @@ -5925,7 +5932,7 @@ func (c *AccountsProgramsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.programs.list" call. @@ -6056,7 +6063,7 @@ func (c *AccountsRegionsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.regions.create" call. @@ -6153,7 +6160,7 @@ func (c *AccountsRegionsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.regions.delete" call. @@ -6261,7 +6268,7 @@ func (c *AccountsRegionsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.regions.get" call. @@ -6386,7 +6393,7 @@ func (c *AccountsRegionsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.regions.list" call. @@ -6519,7 +6526,7 @@ func (c *AccountsRegionsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.regions.patch" call. @@ -6627,7 +6634,7 @@ func (c *AccountsShippingSettingsGetShippingSettingsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.shippingSettings.getShippingSettings" call. @@ -6731,7 +6738,7 @@ func (c *AccountsShippingSettingsInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.shippingSettings.insert" call. @@ -6841,7 +6848,7 @@ func (c *AccountsTermsOfServiceAgreementStatesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.termsOfServiceAgreementStates.get" call. @@ -6951,7 +6958,7 @@ func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.termsOfServiceAgreementStates.retrieveForApplication" call. @@ -7062,7 +7069,7 @@ func (c *AccountsUsersCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.users.create" call. @@ -7161,7 +7168,7 @@ func (c *AccountsUsersDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.users.delete" call. @@ -7271,7 +7278,7 @@ func (c *AccountsUsersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.users.get" call. @@ -7397,7 +7404,7 @@ func (c *AccountsUsersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.users.list" call. @@ -7530,7 +7537,7 @@ func (c *AccountsUsersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.users.patch" call. @@ -7655,7 +7662,7 @@ func (c *TermsOfServiceAcceptCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.termsOfService.accept" call. @@ -7763,7 +7770,7 @@ func (c *TermsOfServiceGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.termsOfService.get" call. @@ -7884,7 +7891,7 @@ func (c *TermsOfServiceRetrieveLatestCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.termsOfService.retrieveLatest" call. diff --git a/merchantapi/conversions_v1beta/merchantapi-gen.go b/merchantapi/conversions_v1beta/merchantapi-gen.go index f3e548ec97d..186a5538a73 100644 --- a/merchantapi/conversions_v1beta/merchantapi-gen.go +++ b/merchantapi/conversions_v1beta/merchantapi-gen.go @@ -582,7 +582,7 @@ func (c *AccountsConversionSourcesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.conversionSources.create" call. @@ -682,7 +682,7 @@ func (c *AccountsConversionSourcesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.conversionSources.delete" call. @@ -790,7 +790,7 @@ func (c *AccountsConversionSourcesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.conversionSources.get" call. @@ -922,7 +922,7 @@ func (c *AccountsConversionSourcesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.conversionSources.list" call. @@ -1060,7 +1060,7 @@ func (c *AccountsConversionSourcesPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.conversionSources.patch" call. @@ -1164,7 +1164,7 @@ func (c *AccountsConversionSourcesUndeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.conversionSources.undelete" call. diff --git a/merchantapi/datasources_v1beta/merchantapi-gen.go b/merchantapi/datasources_v1beta/merchantapi-gen.go index 97ea4ec4996..412fbd76a93 100644 --- a/merchantapi/datasources_v1beta/merchantapi-gen.go +++ b/merchantapi/datasources_v1beta/merchantapi-gen.go @@ -953,7 +953,7 @@ func (c *AccountsDataSourcesCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.dataSources.create" call. @@ -1049,7 +1049,7 @@ func (c *AccountsDataSourcesDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.dataSources.delete" call. @@ -1155,7 +1155,7 @@ func (c *AccountsDataSourcesFetchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.dataSources.fetch" call. @@ -1263,7 +1263,7 @@ func (c *AccountsDataSourcesGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.dataSources.get" call. @@ -1388,7 +1388,7 @@ func (c *AccountsDataSourcesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.dataSources.list" call. @@ -1523,7 +1523,7 @@ func (c *AccountsDataSourcesPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.dataSources.patch" call. @@ -1632,7 +1632,7 @@ func (c *AccountsDataSourcesFileUploadsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.dataSources.fileUploads.get" call. diff --git a/merchantapi/inventories_v1beta/merchantapi-gen.go b/merchantapi/inventories_v1beta/merchantapi-gen.go index 7f23e6f6a34..cc50dbb97d9 100644 --- a/merchantapi/inventories_v1beta/merchantapi-gen.go +++ b/merchantapi/inventories_v1beta/merchantapi-gen.go @@ -651,7 +651,7 @@ func (c *AccountsProductsLocalInventoriesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.products.localInventories.delete" call. @@ -757,7 +757,7 @@ func (c *AccountsProductsLocalInventoriesInsertCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.products.localInventories.insert" call. @@ -890,7 +890,7 @@ func (c *AccountsProductsLocalInventoriesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.products.localInventories.list" call. @@ -1012,7 +1012,7 @@ func (c *AccountsProductsRegionalInventoriesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.products.regionalInventories.delete" call. @@ -1117,7 +1117,7 @@ func (c *AccountsProductsRegionalInventoriesInsertCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.products.regionalInventories.insert" call. @@ -1252,7 +1252,7 @@ func (c *AccountsProductsRegionalInventoriesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.products.regionalInventories.list" call. diff --git a/merchantapi/lfp_v1beta/merchantapi-gen.go b/merchantapi/lfp_v1beta/merchantapi-gen.go index 43eae972589..d4d8f2d04ba 100644 --- a/merchantapi/lfp_v1beta/merchantapi-gen.go +++ b/merchantapi/lfp_v1beta/merchantapi-gen.go @@ -649,7 +649,7 @@ func (c *AccountsLfpInventoriesInsertCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.lfpInventories.insert" call. @@ -750,7 +750,7 @@ func (c *AccountsLfpSalesInsertCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.lfpSales.insert" call. @@ -846,7 +846,7 @@ func (c *AccountsLfpStoresDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.lfpStores.delete" call. @@ -954,7 +954,7 @@ func (c *AccountsLfpStoresGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.lfpStores.get" call. @@ -1056,7 +1056,7 @@ func (c *AccountsLfpStoresInsertCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.lfpStores.insert" call. @@ -1192,7 +1192,7 @@ func (c *AccountsLfpStoresListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.lfpStores.list" call. diff --git a/merchantapi/notifications_v1beta/merchantapi-gen.go b/merchantapi/notifications_v1beta/merchantapi-gen.go index 57a60240890..f64c23e085d 100644 --- a/merchantapi/notifications_v1beta/merchantapi-gen.go +++ b/merchantapi/notifications_v1beta/merchantapi-gen.go @@ -442,7 +442,7 @@ func (c *AccountsNotificationsubscriptionsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.notificationsubscriptions.create" call. @@ -538,7 +538,7 @@ func (c *AccountsNotificationsubscriptionsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.notificationsubscriptions.delete" call. @@ -645,7 +645,7 @@ func (c *AccountsNotificationsubscriptionsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.notificationsubscriptions.get" call. @@ -771,7 +771,7 @@ func (c *AccountsNotificationsubscriptionsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.notificationsubscriptions.list" call. @@ -905,7 +905,7 @@ func (c *AccountsNotificationsubscriptionsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.notificationsubscriptions.patch" call. diff --git a/merchantapi/products_v1beta/merchantapi-api.json b/merchantapi/products_v1beta/merchantapi-api.json index 5a68f170bcc..ddde2611e17 100644 --- a/merchantapi/products_v1beta/merchantapi-api.json +++ b/merchantapi/products_v1beta/merchantapi-api.json @@ -242,7 +242,7 @@ } } }, - "revision": "20240827", + "revision": "20240916", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Attributes": { @@ -415,8 +415,11 @@ "type": "string" }, "gtin": { - "description": "Global Trade Item Number ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the item.", - "type": "string" + "description": "Global Trade Item Numbers ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the item. You can provide up to 10 GTINs.", + "items": { + "type": "string" + }, + "type": "array" }, "identifierExists": { "description": "Set this value to false when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Defaults to true, if not provided.", diff --git a/merchantapi/products_v1beta/merchantapi-gen.go b/merchantapi/products_v1beta/merchantapi-gen.go index 854e2ccc58c..684082ffb28 100644 --- a/merchantapi/products_v1beta/merchantapi-gen.go +++ b/merchantapi/products_v1beta/merchantapi-gen.go @@ -293,9 +293,10 @@ type Attributes struct { // currently no way to get back the auto assigned google product categories // through the API. GoogleProductCategory string `json:"googleProductCategory,omitempty"` - // Gtin: Global Trade Item Number (GTIN - // (https://support.google.com/merchants/answer/188494#gtin)) of the item. - Gtin string `json:"gtin,omitempty"` + // Gtin: Global Trade Item Numbers (GTIN + // (https://support.google.com/merchants/answer/188494#gtin)) of the item. You + // can provide up to 10 GTINs. + Gtin []string `json:"gtin,omitempty"` // IdentifierExists: Set this value to false when the item does not have unique // product identifiers appropriate to its category, such as GTIN, MPN, and // brand. Defaults to true, if not provided. @@ -1831,7 +1832,7 @@ func (c *AccountsProductInputsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.productInputs.delete" call. @@ -1946,7 +1947,7 @@ func (c *AccountsProductInputsInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.productInputs.insert" call. @@ -2056,7 +2057,7 @@ func (c *AccountsProductsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.products.get" call. @@ -2186,7 +2187,7 @@ func (c *AccountsProductsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.products.list" call. diff --git a/merchantapi/promotions_v1beta/merchantapi-gen.go b/merchantapi/promotions_v1beta/merchantapi-gen.go index d15023e82ec..4112e654368 100644 --- a/merchantapi/promotions_v1beta/merchantapi-gen.go +++ b/merchantapi/promotions_v1beta/merchantapi-gen.go @@ -1011,7 +1011,7 @@ func (c *AccountsPromotionsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.promotions.get" call. @@ -1114,7 +1114,7 @@ func (c *AccountsPromotionsInsertCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.promotions.insert" call. @@ -1244,7 +1244,7 @@ func (c *AccountsPromotionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.promotions.list" call. diff --git a/merchantapi/quota_v1beta/merchantapi-gen.go b/merchantapi/quota_v1beta/merchantapi-gen.go index bc70e16beca..0a05866db28 100644 --- a/merchantapi/quota_v1beta/merchantapi-gen.go +++ b/merchantapi/quota_v1beta/merchantapi-gen.go @@ -469,7 +469,7 @@ func (c *AccountsQuotasListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.quotas.list" call. diff --git a/merchantapi/reports_v1beta/merchantapi-gen.go b/merchantapi/reports_v1beta/merchantapi-gen.go index c6694e90e73..8550e9c4109 100644 --- a/merchantapi/reports_v1beta/merchantapi-gen.go +++ b/merchantapi/reports_v1beta/merchantapi-gen.go @@ -1714,7 +1714,7 @@ func (c *AccountsReportsSearchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "merchantapi.accounts.reports.search" call. diff --git a/metastore/v1/metastore-gen.go b/metastore/v1/metastore-gen.go index 88b915477a6..79664cd2905 100644 --- a/metastore/v1/metastore-gen.go +++ b/metastore/v1/metastore-gen.go @@ -2760,7 +2760,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.get" call. @@ -2891,7 +2891,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.list" call. @@ -3040,7 +3040,7 @@ func (c *ProjectsLocationsFederationsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.create" call. @@ -3152,7 +3152,7 @@ func (c *ProjectsLocationsFederationsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.delete" call. @@ -3262,7 +3262,7 @@ func (c *ProjectsLocationsFederationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.get" call. @@ -3389,7 +3389,7 @@ func (c *ProjectsLocationsFederationsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.getIamPolicy" call. @@ -3533,7 +3533,7 @@ func (c *ProjectsLocationsFederationsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.list" call. @@ -3683,7 +3683,7 @@ func (c *ProjectsLocationsFederationsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.patch" call. @@ -3788,7 +3788,7 @@ func (c *ProjectsLocationsFederationsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.setIamPolicy" call. @@ -3896,7 +3896,7 @@ func (c *ProjectsLocationsFederationsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.testIamPermissions" call. @@ -4006,7 +4006,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.cancel" call. @@ -4104,7 +4104,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.delete" call. @@ -4213,7 +4213,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.get" call. @@ -4341,7 +4341,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.list" call. @@ -4469,7 +4469,7 @@ func (c *ProjectsLocationsServicesAlterLocationCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.alterLocation" call. @@ -4572,7 +4572,7 @@ func (c *ProjectsLocationsServicesAlterTablePropertiesCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.alterTableProperties" call. @@ -4675,7 +4675,7 @@ func (c *ProjectsLocationsServicesCancelMigrationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.cancelMigration" call. @@ -4780,7 +4780,7 @@ func (c *ProjectsLocationsServicesCompleteMigrationCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.completeMigration" call. @@ -4907,7 +4907,7 @@ func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.create" call. @@ -5019,7 +5019,7 @@ func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.delete" call. @@ -5122,7 +5122,7 @@ func (c *ProjectsLocationsServicesExportMetadataCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.exportMetadata" call. @@ -5232,7 +5232,7 @@ func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.get" call. @@ -5359,7 +5359,7 @@ func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.getIamPolicy" call. @@ -5504,7 +5504,7 @@ func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.list" call. @@ -5629,7 +5629,7 @@ func (c *ProjectsLocationsServicesMoveTableToDatabaseCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.moveTableToDatabase" call. @@ -5757,7 +5757,7 @@ func (c *ProjectsLocationsServicesPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.patch" call. @@ -5860,7 +5860,7 @@ func (c *ProjectsLocationsServicesQueryMetadataCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.queryMetadata" call. @@ -5963,7 +5963,7 @@ func (c *ProjectsLocationsServicesRestoreCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.restore" call. @@ -6068,7 +6068,7 @@ func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.setIamPolicy" call. @@ -6171,7 +6171,7 @@ func (c *ProjectsLocationsServicesStartMigrationCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.startMigration" call. @@ -6279,7 +6279,7 @@ func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.testIamPermissions" call. @@ -6407,7 +6407,7 @@ func (c *ProjectsLocationsServicesBackupsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.create" call. @@ -6518,7 +6518,7 @@ func (c *ProjectsLocationsServicesBackupsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.delete" call. @@ -6628,7 +6628,7 @@ func (c *ProjectsLocationsServicesBackupsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.get" call. @@ -6755,7 +6755,7 @@ func (c *ProjectsLocationsServicesBackupsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.getIamPolicy" call. @@ -6901,7 +6901,7 @@ func (c *ProjectsLocationsServicesBackupsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.list" call. @@ -7028,7 +7028,7 @@ func (c *ProjectsLocationsServicesBackupsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.setIamPolicy" call. @@ -7155,7 +7155,7 @@ func (c *ProjectsLocationsServicesDatabasesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.getIamPolicy" call. @@ -7260,7 +7260,7 @@ func (c *ProjectsLocationsServicesDatabasesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.setIamPolicy" call. @@ -7387,7 +7387,7 @@ func (c *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.tables.getIamPolicy" call. @@ -7492,7 +7492,7 @@ func (c *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.tables.setIamPolicy" call. @@ -7620,7 +7620,7 @@ func (c *ProjectsLocationsServicesMetadataImportsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.create" call. @@ -7730,7 +7730,7 @@ func (c *ProjectsLocationsServicesMetadataImportsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.get" call. @@ -7876,7 +7876,7 @@ func (c *ProjectsLocationsServicesMetadataImportsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.list" call. @@ -8026,7 +8026,7 @@ func (c *ProjectsLocationsServicesMetadataImportsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.patch" call. @@ -8138,7 +8138,7 @@ func (c *ProjectsLocationsServicesMigrationExecutionsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.migrationExecutions.delete" call. @@ -8248,7 +8248,7 @@ func (c *ProjectsLocationsServicesMigrationExecutionsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.migrationExecutions.get" call. @@ -8395,7 +8395,7 @@ func (c *ProjectsLocationsServicesMigrationExecutionsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.migrationExecutions.list" call. diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index 211fea3bdd1..31a01735bae 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -2999,7 +2999,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.get" call. @@ -3130,7 +3130,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.list" call. @@ -3279,7 +3279,7 @@ func (c *ProjectsLocationsFederationsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.create" call. @@ -3391,7 +3391,7 @@ func (c *ProjectsLocationsFederationsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.delete" call. @@ -3501,7 +3501,7 @@ func (c *ProjectsLocationsFederationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.get" call. @@ -3628,7 +3628,7 @@ func (c *ProjectsLocationsFederationsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.getIamPolicy" call. @@ -3772,7 +3772,7 @@ func (c *ProjectsLocationsFederationsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.list" call. @@ -3922,7 +3922,7 @@ func (c *ProjectsLocationsFederationsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.patch" call. @@ -4027,7 +4027,7 @@ func (c *ProjectsLocationsFederationsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.setIamPolicy" call. @@ -4135,7 +4135,7 @@ func (c *ProjectsLocationsFederationsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.testIamPermissions" call. @@ -4245,7 +4245,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.cancel" call. @@ -4343,7 +4343,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.delete" call. @@ -4452,7 +4452,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.get" call. @@ -4580,7 +4580,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.list" call. @@ -4708,7 +4708,7 @@ func (c *ProjectsLocationsServicesAlterLocationCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.alterLocation" call. @@ -4811,7 +4811,7 @@ func (c *ProjectsLocationsServicesAlterTablePropertiesCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.alterTableProperties" call. @@ -4914,7 +4914,7 @@ func (c *ProjectsLocationsServicesCancelMigrationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.cancelMigration" call. @@ -5019,7 +5019,7 @@ func (c *ProjectsLocationsServicesCompleteMigrationCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.completeMigration" call. @@ -5146,7 +5146,7 @@ func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.create" call. @@ -5258,7 +5258,7 @@ func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.delete" call. @@ -5361,7 +5361,7 @@ func (c *ProjectsLocationsServicesExportMetadataCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.exportMetadata" call. @@ -5471,7 +5471,7 @@ func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.get" call. @@ -5598,7 +5598,7 @@ func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.getIamPolicy" call. @@ -5743,7 +5743,7 @@ func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.list" call. @@ -5868,7 +5868,7 @@ func (c *ProjectsLocationsServicesMoveTableToDatabaseCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.moveTableToDatabase" call. @@ -5996,7 +5996,7 @@ func (c *ProjectsLocationsServicesPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.patch" call. @@ -6099,7 +6099,7 @@ func (c *ProjectsLocationsServicesQueryMetadataCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.queryMetadata" call. @@ -6205,7 +6205,7 @@ func (c *ProjectsLocationsServicesRemoveIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.removeIamPolicy" call. @@ -6309,7 +6309,7 @@ func (c *ProjectsLocationsServicesRestoreCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.restore" call. @@ -6414,7 +6414,7 @@ func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.setIamPolicy" call. @@ -6517,7 +6517,7 @@ func (c *ProjectsLocationsServicesStartMigrationCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.startMigration" call. @@ -6625,7 +6625,7 @@ func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.testIamPermissions" call. @@ -6753,7 +6753,7 @@ func (c *ProjectsLocationsServicesBackupsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.create" call. @@ -6864,7 +6864,7 @@ func (c *ProjectsLocationsServicesBackupsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.delete" call. @@ -6974,7 +6974,7 @@ func (c *ProjectsLocationsServicesBackupsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.get" call. @@ -7101,7 +7101,7 @@ func (c *ProjectsLocationsServicesBackupsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.getIamPolicy" call. @@ -7247,7 +7247,7 @@ func (c *ProjectsLocationsServicesBackupsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.list" call. @@ -7374,7 +7374,7 @@ func (c *ProjectsLocationsServicesBackupsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.setIamPolicy" call. @@ -7482,7 +7482,7 @@ func (c *ProjectsLocationsServicesBackupsTestIamPermissionsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.testIamPermissions" call. @@ -7610,7 +7610,7 @@ func (c *ProjectsLocationsServicesDatabasesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.getIamPolicy" call. @@ -7715,7 +7715,7 @@ func (c *ProjectsLocationsServicesDatabasesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.setIamPolicy" call. @@ -7823,7 +7823,7 @@ func (c *ProjectsLocationsServicesDatabasesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.testIamPermissions" call. @@ -7951,7 +7951,7 @@ func (c *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.tables.getIamPolicy" call. @@ -8056,7 +8056,7 @@ func (c *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.tables.setIamPolicy" call. @@ -8164,7 +8164,7 @@ func (c *ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.tables.testIamPermissions" call. @@ -8293,7 +8293,7 @@ func (c *ProjectsLocationsServicesMetadataImportsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.create" call. @@ -8403,7 +8403,7 @@ func (c *ProjectsLocationsServicesMetadataImportsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.get" call. @@ -8549,7 +8549,7 @@ func (c *ProjectsLocationsServicesMetadataImportsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.list" call. @@ -8699,7 +8699,7 @@ func (c *ProjectsLocationsServicesMetadataImportsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.patch" call. @@ -8811,7 +8811,7 @@ func (c *ProjectsLocationsServicesMigrationExecutionsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.migrationExecutions.delete" call. @@ -8921,7 +8921,7 @@ func (c *ProjectsLocationsServicesMigrationExecutionsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.migrationExecutions.get" call. @@ -9068,7 +9068,7 @@ func (c *ProjectsLocationsServicesMigrationExecutionsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.migrationExecutions.list" call. diff --git a/metastore/v1beta/metastore-gen.go b/metastore/v1beta/metastore-gen.go index 4ad857d7b6f..42fcf81b061 100644 --- a/metastore/v1beta/metastore-gen.go +++ b/metastore/v1beta/metastore-gen.go @@ -2999,7 +2999,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.get" call. @@ -3130,7 +3130,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.list" call. @@ -3279,7 +3279,7 @@ func (c *ProjectsLocationsFederationsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.create" call. @@ -3391,7 +3391,7 @@ func (c *ProjectsLocationsFederationsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.delete" call. @@ -3501,7 +3501,7 @@ func (c *ProjectsLocationsFederationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.get" call. @@ -3628,7 +3628,7 @@ func (c *ProjectsLocationsFederationsGetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.getIamPolicy" call. @@ -3772,7 +3772,7 @@ func (c *ProjectsLocationsFederationsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.list" call. @@ -3922,7 +3922,7 @@ func (c *ProjectsLocationsFederationsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.patch" call. @@ -4027,7 +4027,7 @@ func (c *ProjectsLocationsFederationsSetIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.setIamPolicy" call. @@ -4135,7 +4135,7 @@ func (c *ProjectsLocationsFederationsTestIamPermissionsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.federations.testIamPermissions" call. @@ -4245,7 +4245,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.cancel" call. @@ -4343,7 +4343,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.delete" call. @@ -4452,7 +4452,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.get" call. @@ -4580,7 +4580,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.operations.list" call. @@ -4708,7 +4708,7 @@ func (c *ProjectsLocationsServicesAlterLocationCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.alterLocation" call. @@ -4811,7 +4811,7 @@ func (c *ProjectsLocationsServicesAlterTablePropertiesCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.alterTableProperties" call. @@ -4914,7 +4914,7 @@ func (c *ProjectsLocationsServicesCancelMigrationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.cancelMigration" call. @@ -5019,7 +5019,7 @@ func (c *ProjectsLocationsServicesCompleteMigrationCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.completeMigration" call. @@ -5146,7 +5146,7 @@ func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.create" call. @@ -5258,7 +5258,7 @@ func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.delete" call. @@ -5361,7 +5361,7 @@ func (c *ProjectsLocationsServicesExportMetadataCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.exportMetadata" call. @@ -5471,7 +5471,7 @@ func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.get" call. @@ -5598,7 +5598,7 @@ func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.getIamPolicy" call. @@ -5743,7 +5743,7 @@ func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.list" call. @@ -5868,7 +5868,7 @@ func (c *ProjectsLocationsServicesMoveTableToDatabaseCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.moveTableToDatabase" call. @@ -5996,7 +5996,7 @@ func (c *ProjectsLocationsServicesPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.patch" call. @@ -6099,7 +6099,7 @@ func (c *ProjectsLocationsServicesQueryMetadataCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.queryMetadata" call. @@ -6205,7 +6205,7 @@ func (c *ProjectsLocationsServicesRemoveIamPolicyCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.removeIamPolicy" call. @@ -6309,7 +6309,7 @@ func (c *ProjectsLocationsServicesRestoreCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.restore" call. @@ -6414,7 +6414,7 @@ func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.setIamPolicy" call. @@ -6517,7 +6517,7 @@ func (c *ProjectsLocationsServicesStartMigrationCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "service": c.service, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.startMigration" call. @@ -6625,7 +6625,7 @@ func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.testIamPermissions" call. @@ -6753,7 +6753,7 @@ func (c *ProjectsLocationsServicesBackupsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.create" call. @@ -6864,7 +6864,7 @@ func (c *ProjectsLocationsServicesBackupsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.delete" call. @@ -6974,7 +6974,7 @@ func (c *ProjectsLocationsServicesBackupsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.get" call. @@ -7101,7 +7101,7 @@ func (c *ProjectsLocationsServicesBackupsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.getIamPolicy" call. @@ -7247,7 +7247,7 @@ func (c *ProjectsLocationsServicesBackupsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.list" call. @@ -7374,7 +7374,7 @@ func (c *ProjectsLocationsServicesBackupsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.setIamPolicy" call. @@ -7482,7 +7482,7 @@ func (c *ProjectsLocationsServicesBackupsTestIamPermissionsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.backups.testIamPermissions" call. @@ -7610,7 +7610,7 @@ func (c *ProjectsLocationsServicesDatabasesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.getIamPolicy" call. @@ -7715,7 +7715,7 @@ func (c *ProjectsLocationsServicesDatabasesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.setIamPolicy" call. @@ -7823,7 +7823,7 @@ func (c *ProjectsLocationsServicesDatabasesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.testIamPermissions" call. @@ -7951,7 +7951,7 @@ func (c *ProjectsLocationsServicesDatabasesTablesGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.tables.getIamPolicy" call. @@ -8056,7 +8056,7 @@ func (c *ProjectsLocationsServicesDatabasesTablesSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.tables.setIamPolicy" call. @@ -8164,7 +8164,7 @@ func (c *ProjectsLocationsServicesDatabasesTablesTestIamPermissionsCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.databases.tables.testIamPermissions" call. @@ -8293,7 +8293,7 @@ func (c *ProjectsLocationsServicesMetadataImportsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.create" call. @@ -8403,7 +8403,7 @@ func (c *ProjectsLocationsServicesMetadataImportsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.get" call. @@ -8549,7 +8549,7 @@ func (c *ProjectsLocationsServicesMetadataImportsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.list" call. @@ -8699,7 +8699,7 @@ func (c *ProjectsLocationsServicesMetadataImportsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.metadataImports.patch" call. @@ -8811,7 +8811,7 @@ func (c *ProjectsLocationsServicesMigrationExecutionsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.migrationExecutions.delete" call. @@ -8921,7 +8921,7 @@ func (c *ProjectsLocationsServicesMigrationExecutionsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.migrationExecutions.get" call. @@ -9068,7 +9068,7 @@ func (c *ProjectsLocationsServicesMigrationExecutionsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "metastore.projects.locations.services.migrationExecutions.list" call. diff --git a/migrationcenter/v1/migrationcenter-gen.go b/migrationcenter/v1/migrationcenter-gen.go index ae3992f3ecd..a3c8deefd70 100644 --- a/migrationcenter/v1/migrationcenter-gen.go +++ b/migrationcenter/v1/migrationcenter-gen.go @@ -5103,7 +5103,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.get" call. @@ -5210,7 +5210,7 @@ func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.getSettings" call. @@ -5341,7 +5341,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.list" call. @@ -5490,7 +5490,7 @@ func (c *ProjectsLocationsUpdateSettingsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.updateSettings" call. @@ -5591,7 +5591,7 @@ func (c *ProjectsLocationsAssetsAggregateValuesCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.aggregateValues" call. @@ -5693,7 +5693,7 @@ func (c *ProjectsLocationsAssetsBatchDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.batchDelete" call. @@ -5794,7 +5794,7 @@ func (c *ProjectsLocationsAssetsBatchUpdateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.batchUpdate" call. @@ -5906,7 +5906,7 @@ func (c *ProjectsLocationsAssetsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.delete" call. @@ -6034,7 +6034,7 @@ func (c *ProjectsLocationsAssetsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.get" call. @@ -6190,7 +6190,7 @@ func (c *ProjectsLocationsAssetsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.list" call. @@ -6339,7 +6339,7 @@ func (c *ProjectsLocationsAssetsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.patch" call. @@ -6447,7 +6447,7 @@ func (c *ProjectsLocationsAssetsReportAssetFramesCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.reportAssetFrames" call. @@ -6576,7 +6576,7 @@ func (c *ProjectsLocationsDiscoveryClientsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.create" call. @@ -6687,7 +6687,7 @@ func (c *ProjectsLocationsDiscoveryClientsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.delete" call. @@ -6794,7 +6794,7 @@ func (c *ProjectsLocationsDiscoveryClientsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.get" call. @@ -6932,7 +6932,7 @@ func (c *ProjectsLocationsDiscoveryClientsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.list" call. @@ -7082,7 +7082,7 @@ func (c *ProjectsLocationsDiscoveryClientsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.patch" call. @@ -7184,7 +7184,7 @@ func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.sendHeartbeat" call. @@ -7285,7 +7285,7 @@ func (c *ProjectsLocationsGroupsAddAssetsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "group": c.group, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.addAssets" call. @@ -7412,7 +7412,7 @@ func (c *ProjectsLocationsGroupsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.create" call. @@ -7523,7 +7523,7 @@ func (c *ProjectsLocationsGroupsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.delete" call. @@ -7630,7 +7630,7 @@ func (c *ProjectsLocationsGroupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.get" call. @@ -7765,7 +7765,7 @@ func (c *ProjectsLocationsGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.list" call. @@ -7914,7 +7914,7 @@ func (c *ProjectsLocationsGroupsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.patch" call. @@ -8015,7 +8015,7 @@ func (c *ProjectsLocationsGroupsRemoveAssetsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "group": c.group, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.removeAssets" call. @@ -8139,7 +8139,7 @@ func (c *ProjectsLocationsImportJobsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.create" call. @@ -8258,7 +8258,7 @@ func (c *ProjectsLocationsImportJobsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.delete" call. @@ -8386,7 +8386,7 @@ func (c *ProjectsLocationsImportJobsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.get" call. @@ -8542,7 +8542,7 @@ func (c *ProjectsLocationsImportJobsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.list" call. @@ -8691,7 +8691,7 @@ func (c *ProjectsLocationsImportJobsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.patch" call. @@ -8792,7 +8792,7 @@ func (c *ProjectsLocationsImportJobsRunCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.run" call. @@ -8893,7 +8893,7 @@ func (c *ProjectsLocationsImportJobsValidateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.validate" call. @@ -9017,7 +9017,7 @@ func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.create" call. @@ -9128,7 +9128,7 @@ func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.delete" call. @@ -9235,7 +9235,7 @@ func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.get" call. @@ -9373,7 +9373,7 @@ func (c *ProjectsLocationsImportJobsImportDataFilesListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.list" call. @@ -9504,7 +9504,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.operations.cancel" call. @@ -9602,7 +9602,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.operations.delete" call. @@ -9711,7 +9711,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.operations.get" call. @@ -9839,7 +9839,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.operations.list" call. @@ -9989,7 +9989,7 @@ func (c *ProjectsLocationsPreferenceSetsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.preferenceSets.create" call. @@ -10100,7 +10100,7 @@ func (c *ProjectsLocationsPreferenceSetsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.preferenceSets.delete" call. @@ -10207,7 +10207,7 @@ func (c *ProjectsLocationsPreferenceSetsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.preferenceSets.get" call. @@ -10337,7 +10337,7 @@ func (c *ProjectsLocationsPreferenceSetsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.preferenceSets.list" call. @@ -10486,7 +10486,7 @@ func (c *ProjectsLocationsPreferenceSetsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.preferenceSets.patch" call. @@ -10614,7 +10614,7 @@ func (c *ProjectsLocationsReportConfigsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.create" call. @@ -10733,7 +10733,7 @@ func (c *ProjectsLocationsReportConfigsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.delete" call. @@ -10840,7 +10840,7 @@ func (c *ProjectsLocationsReportConfigsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.get" call. @@ -10975,7 +10975,7 @@ func (c *ProjectsLocationsReportConfigsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.list" call. @@ -11124,7 +11124,7 @@ func (c *ProjectsLocationsReportConfigsReportsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.create" call. @@ -11235,7 +11235,7 @@ func (c *ProjectsLocationsReportConfigsReportsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.delete" call. @@ -11367,7 +11367,7 @@ func (c *ProjectsLocationsReportConfigsReportsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.get" call. @@ -11527,7 +11527,7 @@ func (c *ProjectsLocationsReportConfigsReportsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.list" call. @@ -11676,7 +11676,7 @@ func (c *ProjectsLocationsSourcesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.create" call. @@ -11787,7 +11787,7 @@ func (c *ProjectsLocationsSourcesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.delete" call. @@ -11894,7 +11894,7 @@ func (c *ProjectsLocationsSourcesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.get" call. @@ -12029,7 +12029,7 @@ func (c *ProjectsLocationsSourcesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.list" call. @@ -12178,7 +12178,7 @@ func (c *ProjectsLocationsSourcesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.patch" call. @@ -12306,7 +12306,7 @@ func (c *ProjectsLocationsSourcesErrorFramesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.errorFrames.get" call. @@ -12447,7 +12447,7 @@ func (c *ProjectsLocationsSourcesErrorFramesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.errorFrames.list" call. diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index 05a30a95153..a937ea8955c 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -7586,7 +7586,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.get" call. @@ -7693,7 +7693,7 @@ func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.getSettings" call. @@ -7824,7 +7824,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.list" call. @@ -7973,7 +7973,7 @@ func (c *ProjectsLocationsUpdateSettingsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.updateSettings" call. @@ -8074,7 +8074,7 @@ func (c *ProjectsLocationsAssetsAggregateValuesCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.aggregateValues" call. @@ -8176,7 +8176,7 @@ func (c *ProjectsLocationsAssetsBatchDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.batchDelete" call. @@ -8277,7 +8277,7 @@ func (c *ProjectsLocationsAssetsBatchUpdateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.batchUpdate" call. @@ -8389,7 +8389,7 @@ func (c *ProjectsLocationsAssetsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.delete" call. @@ -8521,7 +8521,7 @@ func (c *ProjectsLocationsAssetsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.get" call. @@ -8689,7 +8689,7 @@ func (c *ProjectsLocationsAssetsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.list" call. @@ -8838,7 +8838,7 @@ func (c *ProjectsLocationsAssetsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.patch" call. @@ -8946,7 +8946,7 @@ func (c *ProjectsLocationsAssetsReportAssetFramesCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assets.reportAssetFrames" call. @@ -9071,7 +9071,7 @@ func (c *ProjectsLocationsAssetsExportJobsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assetsExportJobs.create" call. @@ -9166,7 +9166,7 @@ func (c *ProjectsLocationsAssetsExportJobsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assetsExportJobs.delete" call. @@ -9273,7 +9273,7 @@ func (c *ProjectsLocationsAssetsExportJobsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assetsExportJobs.get" call. @@ -9396,7 +9396,7 @@ func (c *ProjectsLocationsAssetsExportJobsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assetsExportJobs.list" call. @@ -9519,7 +9519,7 @@ func (c *ProjectsLocationsAssetsExportJobsRunCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.assetsExportJobs.run" call. @@ -9647,7 +9647,7 @@ func (c *ProjectsLocationsDiscoveryClientsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.create" call. @@ -9758,7 +9758,7 @@ func (c *ProjectsLocationsDiscoveryClientsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.delete" call. @@ -9865,7 +9865,7 @@ func (c *ProjectsLocationsDiscoveryClientsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.get" call. @@ -10003,7 +10003,7 @@ func (c *ProjectsLocationsDiscoveryClientsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.list" call. @@ -10153,7 +10153,7 @@ func (c *ProjectsLocationsDiscoveryClientsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.patch" call. @@ -10255,7 +10255,7 @@ func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.discoveryClients.sendHeartbeat" call. @@ -10356,7 +10356,7 @@ func (c *ProjectsLocationsGroupsAddAssetsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "group": c.group, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.addAssets" call. @@ -10483,7 +10483,7 @@ func (c *ProjectsLocationsGroupsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.create" call. @@ -10594,7 +10594,7 @@ func (c *ProjectsLocationsGroupsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.delete" call. @@ -10701,7 +10701,7 @@ func (c *ProjectsLocationsGroupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.get" call. @@ -10836,7 +10836,7 @@ func (c *ProjectsLocationsGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.list" call. @@ -10985,7 +10985,7 @@ func (c *ProjectsLocationsGroupsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.patch" call. @@ -11086,7 +11086,7 @@ func (c *ProjectsLocationsGroupsRemoveAssetsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "group": c.group, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.groups.removeAssets" call. @@ -11210,7 +11210,7 @@ func (c *ProjectsLocationsImportJobsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.create" call. @@ -11329,7 +11329,7 @@ func (c *ProjectsLocationsImportJobsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.delete" call. @@ -11457,7 +11457,7 @@ func (c *ProjectsLocationsImportJobsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.get" call. @@ -11613,7 +11613,7 @@ func (c *ProjectsLocationsImportJobsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.list" call. @@ -11762,7 +11762,7 @@ func (c *ProjectsLocationsImportJobsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.patch" call. @@ -11863,7 +11863,7 @@ func (c *ProjectsLocationsImportJobsRunCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.run" call. @@ -11964,7 +11964,7 @@ func (c *ProjectsLocationsImportJobsValidateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.validate" call. @@ -12088,7 +12088,7 @@ func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.create" call. @@ -12199,7 +12199,7 @@ func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.delete" call. @@ -12306,7 +12306,7 @@ func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.get" call. @@ -12444,7 +12444,7 @@ func (c *ProjectsLocationsImportJobsImportDataFilesListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.list" call. @@ -12575,7 +12575,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.operations.cancel" call. @@ -12673,7 +12673,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.operations.delete" call. @@ -12782,7 +12782,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.operations.get" call. @@ -12910,7 +12910,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.operations.list" call. @@ -13055,7 +13055,7 @@ func (c *ProjectsLocationsPreferenceSetsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.preferenceSets.create" call. @@ -13166,7 +13166,7 @@ func (c *ProjectsLocationsPreferenceSetsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.preferenceSets.delete" call. @@ -13273,7 +13273,7 @@ func (c *ProjectsLocationsPreferenceSetsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.preferenceSets.get" call. @@ -13403,7 +13403,7 @@ func (c *ProjectsLocationsPreferenceSetsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.preferenceSets.list" call. @@ -13552,7 +13552,7 @@ func (c *ProjectsLocationsPreferenceSetsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.preferenceSets.patch" call. @@ -13659,7 +13659,7 @@ func (c *ProjectsLocationsRelationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.relations.get" call. @@ -13794,7 +13794,7 @@ func (c *ProjectsLocationsRelationsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.relations.list" call. @@ -13944,7 +13944,7 @@ func (c *ProjectsLocationsReportConfigsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.create" call. @@ -14063,7 +14063,7 @@ func (c *ProjectsLocationsReportConfigsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.delete" call. @@ -14170,7 +14170,7 @@ func (c *ProjectsLocationsReportConfigsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.get" call. @@ -14305,7 +14305,7 @@ func (c *ProjectsLocationsReportConfigsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.list" call. @@ -14454,7 +14454,7 @@ func (c *ProjectsLocationsReportConfigsReportsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.create" call. @@ -14565,7 +14565,7 @@ func (c *ProjectsLocationsReportConfigsReportsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.delete" call. @@ -14697,7 +14697,7 @@ func (c *ProjectsLocationsReportConfigsReportsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.get" call. @@ -14857,7 +14857,7 @@ func (c *ProjectsLocationsReportConfigsReportsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.list" call. @@ -15006,7 +15006,7 @@ func (c *ProjectsLocationsSourcesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.create" call. @@ -15117,7 +15117,7 @@ func (c *ProjectsLocationsSourcesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.delete" call. @@ -15224,7 +15224,7 @@ func (c *ProjectsLocationsSourcesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.get" call. @@ -15359,7 +15359,7 @@ func (c *ProjectsLocationsSourcesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.list" call. @@ -15508,7 +15508,7 @@ func (c *ProjectsLocationsSourcesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.patch" call. @@ -15636,7 +15636,7 @@ func (c *ProjectsLocationsSourcesErrorFramesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.errorFrames.get" call. @@ -15777,7 +15777,7 @@ func (c *ProjectsLocationsSourcesErrorFramesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "migrationcenter.projects.locations.sources.errorFrames.list" call. diff --git a/mirror/v1/mirror-gen.go b/mirror/v1/mirror-gen.go index 4169794b1d8..e37e80b152a 100644 --- a/mirror/v1/mirror-gen.go +++ b/mirror/v1/mirror-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/glass // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // mirrorService, err := mirror.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // mirrorService, err := mirror.NewService(ctx, option.WithScopes(mirror.GlassTimelineScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // mirrorService, err := mirror.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // mirrorService, err := mirror.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package mirror // import "google.golang.org/api/mirror/v1" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "mirror:v1" const apiName = "mirror" const apiVersion = "v1" const basePath = "https://www.googleapis.com/mirror/v1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/mirror/v1/" // OAuth2 scopes used by this API. const ( @@ -91,13 +108,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/glass.location", "https://www.googleapis.com/auth/glass.timeline", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -222,367 +241,280 @@ type TimelineAttachmentsService struct { s *Service } -// Account: Represents an account passed into the Account Manager on -// Glass. +// Account: Represents an account passed into the Account Manager on Glass. type Account struct { AuthTokens []*AuthToken `json:"authTokens,omitempty"` + Features []string `json:"features,omitempty"` + Password string `json:"password,omitempty"` + UserData []*UserData `json:"userData,omitempty"` - Features []string `json:"features,omitempty"` - - Password string `json:"password,omitempty"` - - UserData []*UserData `json:"userData,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuthTokens") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthTokens") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthTokens") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Account) MarshalJSON() ([]byte, error) { +func (s Account) MarshalJSON() ([]byte, error) { type NoMethod Account - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Attachment: Represents media content, such as a photo, that can be -// attached to a timeline item. +// Attachment: Represents media content, such as a photo, that can be attached +// to a timeline item. type Attachment struct { // ContentType: The MIME type of the attachment. ContentType string `json:"contentType,omitempty"` - // ContentUrl: The URL for the content. ContentUrl string `json:"contentUrl,omitempty"` - // Id: The ID of the attachment. Id string `json:"id,omitempty"` - - // IsProcessingContent: Indicates that the contentUrl is not available - // because the attachment content is still being processed. If the - // caller wishes to retrieve the content, it should try again later. + // IsProcessingContent: Indicates that the contentUrl is not available because + // the attachment content is still being processed. If the caller wishes to + // retrieve the content, it should try again later. IsProcessingContent bool `json:"isProcessingContent,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ContentType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContentType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Attachment) MarshalJSON() ([]byte, error) { +func (s Attachment) MarshalJSON() ([]byte, error) { type NoMethod Attachment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AttachmentsListResponse: A list of Attachments. This is the response -// from the server to GET requests on the attachments collection. +// AttachmentsListResponse: A list of Attachments. This is the response from +// the server to GET requests on the attachments collection. type AttachmentsListResponse struct { // Items: The list of attachments. Items []*Attachment `json:"items,omitempty"` - // Kind: The type of resource. This is always mirror#attachmentsList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AttachmentsListResponse) MarshalJSON() ([]byte, error) { +func (s AttachmentsListResponse) MarshalJSON() ([]byte, error) { type NoMethod AttachmentsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AuthToken struct { AuthToken string `json:"authToken,omitempty"` - - Type string `json:"type,omitempty"` - + Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthToken") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuthToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuthToken) MarshalJSON() ([]byte, error) { +func (s AuthToken) MarshalJSON() ([]byte, error) { type NoMethod AuthToken - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Command: A single menu command that is part of a Contact. type Command struct { - // Type: The type of operation this command corresponds to. Allowed - // values are: - // - TAKE_A_NOTE - Shares a timeline item with the transcription of user - // speech from the "Take a note" voice menu command. - // - POST_AN_UPDATE - Shares a timeline item with the transcription of - // user speech from the "Post an update" voice menu command. + // Type: The type of operation this command corresponds to. Allowed values are: + // + // - TAKE_A_NOTE - Shares a timeline item with the transcription of user speech + // from the "Take a note" voice menu command. + // - POST_AN_UPDATE - Shares a timeline item with the transcription of user + // speech from the "Post an update" voice menu command. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Command) MarshalJSON() ([]byte, error) { +func (s Command) MarshalJSON() ([]byte, error) { type NoMethod Command - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Contact: A person or group that can be used as a creator or a -// contact. +// Contact: A person or group that can be used as a creator or a contact. type Contact struct { - // AcceptCommands: A list of voice menu commands that a contact can - // handle. Glass shows up to three contacts for each voice menu command. - // If there are more than that, the three contacts with the highest - // priority are shown for that particular command. + // AcceptCommands: A list of voice menu commands that a contact can handle. + // Glass shows up to three contacts for each voice menu command. If there are + // more than that, the three contacts with the highest priority are shown for + // that particular command. AcceptCommands []*Command `json:"acceptCommands,omitempty"` - - // AcceptTypes: A list of MIME types that a contact supports. The - // contact will be shown to the user if any of its acceptTypes matches - // any of the types of the attachments on the item. If no acceptTypes - // are given, the contact will be shown for all items. + // AcceptTypes: A list of MIME types that a contact supports. The contact will + // be shown to the user if any of its acceptTypes matches any of the types of + // the attachments on the item. If no acceptTypes are given, the contact will + // be shown for all items. AcceptTypes []string `json:"acceptTypes,omitempty"` - // DisplayName: The name to display for this contact. DisplayName string `json:"displayName,omitempty"` - - // Id: An ID for this contact. This is generated by the application and - // is treated as an opaque token. + // Id: An ID for this contact. This is generated by the application and is + // treated as an opaque token. Id string `json:"id,omitempty"` - - // ImageUrls: Set of image URLs to display for a contact. Most contacts - // will have a single image, but a "group" contact may include up to 8 - // image URLs and they will be resized and cropped into a mosaic on the - // client. + // ImageUrls: Set of image URLs to display for a contact. Most contacts will + // have a single image, but a "group" contact may include up to 8 image URLs + // and they will be resized and cropped into a mosaic on the client. ImageUrls []string `json:"imageUrls,omitempty"` - // Kind: The type of resource. This is always mirror#contact. Kind string `json:"kind,omitempty"` - // PhoneNumber: Primary phone number for the contact. This can be a - // fully-qualified number, with country calling code and area code, or a - // local number. + // fully-qualified number, with country calling code and area code, or a local + // number. PhoneNumber string `json:"phoneNumber,omitempty"` - // Priority: Priority for the contact to determine ordering in a list of - // contacts. Contacts with higher priorities will be shown before ones - // with lower priorities. + // contacts. Contacts with higher priorities will be shown before ones with + // lower priorities. Priority int64 `json:"priority,omitempty"` - - // SharingFeatures: A list of sharing features that a contact can - // handle. Allowed values are: + // SharingFeatures: A list of sharing features that a contact can handle. + // Allowed values are: // - ADD_CAPTION SharingFeatures []string `json:"sharingFeatures,omitempty"` - // Source: The ID of the application that created this contact. This is // populated by the API Source string `json:"source,omitempty"` - - // SpeakableName: Name of this contact as it should be pronounced. If - // this contact's name must be spoken as part of a voice disambiguation - // menu, this name is used as the expected pronunciation. This is useful - // for contact names with unpronounceable characters or whose display - // spelling is otherwise not phonetic. + // SpeakableName: Name of this contact as it should be pronounced. If this + // contact's name must be spoken as part of a voice disambiguation menu, this + // name is used as the expected pronunciation. This is useful for contact names + // with unpronounceable characters or whose display spelling is otherwise not + // phonetic. SpeakableName string `json:"speakableName,omitempty"` - - // Type: The type for this contact. This is used for sorting in UIs. - // Allowed values are: + // Type: The type for this contact. This is used for sorting in UIs. Allowed + // values are: // - INDIVIDUAL - Represents a single person. This is the default. // - GROUP - Represents more than a single person. Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AcceptCommands") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AcceptCommands") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AcceptCommands") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Contact) MarshalJSON() ([]byte, error) { +func (s Contact) MarshalJSON() ([]byte, error) { type NoMethod Contact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContactsListResponse: A list of Contacts representing contacts. This -// is the response from the server to GET requests on the contacts -// collection. +// ContactsListResponse: A list of Contacts representing contacts. This is the +// response from the server to GET requests on the contacts collection. type ContactsListResponse struct { // Items: Contact list. Items []*Contact `json:"items,omitempty"` - // Kind: The type of resource. This is always mirror#contacts. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContactsListResponse) MarshalJSON() ([]byte, error) { +func (s ContactsListResponse) MarshalJSON() ([]byte, error) { type NoMethod ContactsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Location: A geographic location that can be associated with a -// timeline item. +// Location: A geographic location that can be associated with a timeline item. type Location struct { // Accuracy: The accuracy of the location fix in meters. Accuracy float64 `json:"accuracy,omitempty"` - // Address: The full address of the location. Address string `json:"address,omitempty"` - - // DisplayName: The name to be displayed. This may be a business name or - // a user-defined place, such as "Home". + // DisplayName: The name to be displayed. This may be a business name or a + // user-defined place, such as "Home". DisplayName string `json:"displayName,omitempty"` - // Id: The ID of the location. Id string `json:"id,omitempty"` - // Kind: The type of resource. This is always mirror#location. Kind string `json:"kind,omitempty"` - // Latitude: The latitude, in degrees. Latitude float64 `json:"latitude,omitempty"` - // Longitude: The longitude, in degrees. Longitude float64 `json:"longitude,omitempty"` - - // Timestamp: The time at which this location was captured, formatted - // according to RFC 3339. + // Timestamp: The time at which this location was captured, formatted according + // to RFC 3339. Timestamp string `json:"timestamp,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Accuracy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accuracy") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accuracy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Location) UnmarshalJSON(data []byte) error { @@ -603,641 +535,510 @@ func (s *Location) UnmarshalJSON(data []byte) error { return nil } -// LocationsListResponse: A list of Locations. This is the response from -// the server to GET requests on the locations collection. +// LocationsListResponse: A list of Locations. This is the response from the +// server to GET requests on the locations collection. type LocationsListResponse struct { // Items: The list of locations. Items []*Location `json:"items,omitempty"` - // Kind: The type of resource. This is always mirror#locationsList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LocationsListResponse) MarshalJSON() ([]byte, error) { +func (s LocationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod LocationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MenuItem: A custom menu item that can be presented to the user by a -// timeline item. +// MenuItem: A custom menu item that can be presented to the user by a timeline +// item. type MenuItem struct { - // Action: Controls the behavior when the user picks the menu option. - // Allowed values are: - // - CUSTOM - Custom action set by the service. When the user selects - // this menuItem, the API triggers a notification to your callbackUrl - // with the userActions.type set to CUSTOM and the userActions.payload - // set to the ID of this menu item. This is the default value. + // Action: Controls the behavior when the user picks the menu option. Allowed + // values are: + // - CUSTOM - Custom action set by the service. When the user selects this + // menuItem, the API triggers a notification to your callbackUrl with the + // userActions.type set to CUSTOM and the userActions.payload set to the ID of + // this menu item. This is the default value. // - Built-in actions: - // - REPLY - Initiate a reply to the timeline item using the voice - // recording UI. The creator attribute must be set in the timeline item - // for this menu to be available. + // - REPLY - Initiate a reply to the timeline item using the voice recording + // UI. The creator attribute must be set in the timeline item for this menu to + // be available. // - REPLY_ALL - Same behavior as REPLY. The original timeline item's // recipients will be added to the reply item. // - DELETE - Delete the timeline item. // - SHARE - Share the timeline item with the available contacts. - // - READ_ALOUD - Read the timeline item's speakableText aloud; if this - // field is not set, read the text field; if none of those fields are - // set, this menu item is ignored. - // - GET_MEDIA_INPUT - Allow users to provide media payloads to - // Glassware from a menu item (currently, only transcribed text from - // voice input is supported). Subscribe to notifications when users - // invoke this menu item to receive the timeline item ID. Retrieve the - // media from the timeline item in the payload property. + // - READ_ALOUD - Read the timeline item's speakableText aloud; if this field + // is not set, read the text field; if none of those fields are set, this menu + // item is ignored. + // - GET_MEDIA_INPUT - Allow users to provide media payloads to Glassware from + // a menu item (currently, only transcribed text from voice input is + // supported). Subscribe to notifications when users invoke this menu item to + // receive the timeline item ID. Retrieve the media from the timeline item in + // the payload property. // - VOICE_CALL - Initiate a phone call using the timeline item's // creator.phoneNumber attribute as recipient. // - NAVIGATE - Navigate to the timeline item's location. // - TOGGLE_PINNED - Toggle the isPinned state of the timeline item. // - OPEN_URI - Open the payload of the menu item in the browser. - // - PLAY_VIDEO - Open the payload of the menu item in the Glass video - // player. - // - SEND_MESSAGE - Initiate sending a message to the timeline item's - // creator: - // - If the creator.phoneNumber is set and Glass is connected to an - // Android phone, the message is an SMS. + // - PLAY_VIDEO - Open the payload of the menu item in the Glass video player. + // + // - SEND_MESSAGE - Initiate sending a message to the timeline item's creator: + // + // - If the creator.phoneNumber is set and Glass is connected to an Android + // phone, the message is an SMS. // - Otherwise, if the creator.email is set, the message is an email. Action string `json:"action,omitempty"` - - // ContextualCommand: The ContextualMenus.Command associated with this - // MenuItem (e.g. READ_ALOUD). The voice label for this command will be - // displayed in the voice menu and the touch label will be displayed in - // the touch menu. Note that the default menu value's display name will - // be overriden if you specify this property. Values that do not - // correspond to a ContextualMenus.Command name will be ignored. + // ContextualCommand: The ContextualMenus.Command associated with this MenuItem + // (e.g. READ_ALOUD). The voice label for this command will be displayed in the + // voice menu and the touch label will be displayed in the touch menu. Note + // that the default menu value's display name will be overriden if you specify + // this property. Values that do not correspond to a ContextualMenus.Command + // name will be ignored. ContextualCommand string `json:"contextual_command,omitempty"` - - // Id: The ID for this menu item. This is generated by the application - // and is treated as an opaque token. + // Id: The ID for this menu item. This is generated by the application and is + // treated as an opaque token. Id string `json:"id,omitempty"` - // Payload: A generic payload whose meaning changes depending on this // MenuItem's action. - // - When the action is OPEN_URI, the payload is the URL of the website - // to view. - // - When the action is PLAY_VIDEO, the payload is the streaming URL of - // the video - // - When the action is GET_MEDIA_INPUT, the payload is the text - // transcription of a user's speech input + // - When the action is OPEN_URI, the payload is the URL of the website to + // view. + // - When the action is PLAY_VIDEO, the payload is the streaming URL of the + // video + // - When the action is GET_MEDIA_INPUT, the payload is the text transcription + // of a user's speech input Payload string `json:"payload,omitempty"` - - // RemoveWhenSelected: If set to true on a CUSTOM menu item, that item - // will be removed from the menu after it is selected. + // RemoveWhenSelected: If set to true on a CUSTOM menu item, that item will be + // removed from the menu after it is selected. RemoveWhenSelected bool `json:"removeWhenSelected,omitempty"` - - // Values: For CUSTOM items, a list of values controlling the appearance - // of the menu item in each of its states. A value for the DEFAULT state - // must be provided. If the PENDING or CONFIRMED states are missing, - // they will not be shown. + // Values: For CUSTOM items, a list of values controlling the appearance of the + // menu item in each of its states. A value for the DEFAULT state must be + // provided. If the PENDING or CONFIRMED states are missing, they will not be + // shown. Values []*MenuValue `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MenuItem) MarshalJSON() ([]byte, error) { +func (s MenuItem) MarshalJSON() ([]byte, error) { type NoMethod MenuItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MenuValue: A single value that is part of a MenuItem. type MenuValue struct { - // DisplayName: The name to display for the menu item. If you specify - // this property for a built-in menu item, the default contextual voice - // command for that menu item is not shown. + // DisplayName: The name to display for the menu item. If you specify this + // property for a built-in menu item, the default contextual voice command for + // that menu item is not shown. DisplayName string `json:"displayName,omitempty"` - // IconUrl: URL of an icon to display with the menu item. IconUrl string `json:"iconUrl,omitempty"` - // State: The state that this value applies to. Allowed values are: // - DEFAULT - Default value shown when displayed in the menuItems list. - // - // - PENDING - Value shown when the menuItem has been selected by the - // user but can still be cancelled. - // - CONFIRMED - Value shown when the menuItem has been selected by the - // user and can no longer be cancelled. + // - PENDING - Value shown when the menuItem has been selected by the user but + // can still be cancelled. + // - CONFIRMED - Value shown when the menuItem has been selected by the user + // and can no longer be cancelled. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MenuValue) MarshalJSON() ([]byte, error) { +func (s MenuValue) MarshalJSON() ([]byte, error) { type NoMethod MenuValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Notification: A notification delivered by the API. type Notification struct { // Collection: The collection that generated the notification. Collection string `json:"collection,omitempty"` - // ItemId: The ID of the item that generated the notification. ItemId string `json:"itemId,omitempty"` - // Operation: The type of operation that generated the notification. Operation string `json:"operation,omitempty"` - // UserActions: A list of actions taken by the user that triggered the // notification. UserActions []*UserAction `json:"userActions,omitempty"` - - // UserToken: The user token provided by the service when it subscribed - // for notifications. + // UserToken: The user token provided by the service when it subscribed for + // notifications. UserToken string `json:"userToken,omitempty"` - // VerifyToken: The secret verify token provided by the service when it // subscribed for notifications. VerifyToken string `json:"verifyToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "Collection") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Collection") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Collection") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Notification) MarshalJSON() ([]byte, error) { +func (s Notification) MarshalJSON() ([]byte, error) { type NoMethod Notification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotificationConfig: Controls how notifications for a timeline item -// are presented to the user. +// NotificationConfig: Controls how notifications for a timeline item are +// presented to the user. type NotificationConfig struct { // DeliveryTime: The time at which the notification should be delivered. DeliveryTime string `json:"deliveryTime,omitempty"` - - // Level: Describes how important the notification is. Allowed values - // are: - // - DEFAULT - Notifications of default importance. A chime will be - // played to alert users. + // Level: Describes how important the notification is. Allowed values are: + // - DEFAULT - Notifications of default importance. A chime will be played to + // alert users. Level string `json:"level,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliveryTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeliveryTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeliveryTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotificationConfig) MarshalJSON() ([]byte, error) { +func (s NotificationConfig) MarshalJSON() ([]byte, error) { type NoMethod NotificationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Setting: A setting for Glass. type Setting struct { // Id: The setting's ID. The following IDs are valid: - // - locale - The key to the user’s language/locale (BCP 47 - // identifier) that Glassware should use to render localized content. - // - // - timezone - The key to the user’s current time zone region as - // defined in the tz database. Example: America/Los_Angeles. + // - locale - The key to the user’s language/locale (BCP 47 identifier) that + // Glassware should use to render localized content. + // - timezone - The key to the user’s current time zone region as defined in + // the tz database. Example: America/Los_Angeles. Id string `json:"id,omitempty"` - // Kind: The type of resource. This is always mirror#setting. Kind string `json:"kind,omitempty"` - // Value: The setting value, as a string. Value string `json:"value,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Setting) MarshalJSON() ([]byte, error) { +func (s Setting) MarshalJSON() ([]byte, error) { type NoMethod Setting - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Subscription: A subscription to events on a collection. type Subscription struct { - // CallbackUrl: The URL where notifications should be delivered (must - // start with https://). + // CallbackUrl: The URL where notifications should be delivered (must start + // with https://). CallbackUrl string `json:"callbackUrl,omitempty"` - // Collection: The collection to subscribe to. Allowed values are: - // - timeline - Changes in the timeline including insertion, deletion, - // and updates. + // - timeline - Changes in the timeline including insertion, deletion, and + // updates. // - locations - Location updates. // - settings - Settings updates. Collection string `json:"collection,omitempty"` - // Id: The ID of the subscription. Id string `json:"id,omitempty"` - // Kind: The type of resource. This is always mirror#subscription. Kind string `json:"kind,omitempty"` - - // Notification: Container object for notifications. This is not - // populated in the Subscription resource. + // Notification: Container object for notifications. This is not populated in + // the Subscription resource. Notification *Notification `json:"notification,omitempty"` - - // Operation: A list of operations that should be subscribed to. An - // empty list indicates that all operations on the collection should be - // subscribed to. Allowed values are: + // Operation: A list of operations that should be subscribed to. An empty list + // indicates that all operations on the collection should be subscribed to. + // Allowed values are: // - UPDATE - The item has been updated. // - INSERT - A new item has been inserted. // - DELETE - The item has been deleted. // - MENU_ACTION - A custom menu item has been triggered by the user. Operation []string `json:"operation,omitempty"` - - // Updated: The time at which this subscription was last modified, - // formatted according to RFC 3339. + // Updated: The time at which this subscription was last modified, formatted + // according to RFC 3339. Updated string `json:"updated,omitempty"` - - // UserToken: An opaque token sent to the subscriber in notifications so - // that it can determine the ID of the user. + // UserToken: An opaque token sent to the subscriber in notifications so that + // it can determine the ID of the user. UserToken string `json:"userToken,omitempty"` - - // VerifyToken: A secret token sent to the subscriber in notifications - // so that it can verify that the notification was generated by Google. + // VerifyToken: A secret token sent to the subscriber in notifications so that + // it can verify that the notification was generated by Google. VerifyToken string `json:"verifyToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CallbackUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CallbackUrl") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CallbackUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Subscription) MarshalJSON() ([]byte, error) { +func (s Subscription) MarshalJSON() ([]byte, error) { type NoMethod Subscription - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SubscriptionsListResponse: A list of Subscriptions. This is the -// response from the server to GET requests on the subscription -// collection. +// SubscriptionsListResponse: A list of Subscriptions. This is the response +// from the server to GET requests on the subscription collection. type SubscriptionsListResponse struct { // Items: The list of subscriptions. Items []*Subscription `json:"items,omitempty"` - // Kind: The type of resource. This is always mirror#subscriptionsList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SubscriptionsListResponse) MarshalJSON() ([]byte, error) { +func (s SubscriptionsListResponse) MarshalJSON() ([]byte, error) { type NoMethod SubscriptionsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TimelineItem: Each item in the user's timeline is represented as a // TimelineItem JSON structure, described below. type TimelineItem struct { - // Attachments: A list of media attachments associated with this item. - // As a convenience, you can refer to attachments in your HTML payloads - // with the attachment or cid scheme. For example: - // - attachment: where - // attachment_index is the 0-based index of this array. - // - cid: where attachment_id is the ID of - // the attachment. + // Attachments: A list of media attachments associated with this item. As a + // convenience, you can refer to attachments in your HTML payloads with the + // attachment or cid scheme. For example: + // - attachment: where attachment_index + // is the 0-based index of this array. + // - cid: where attachment_id is the ID of the + // attachment. Attachments []*Attachment `json:"attachments,omitempty"` - - // BundleId: The bundle ID for this item. Services can specify a - // bundleId to group many items together. They appear under a single - // top-level item on the device. + // BundleId: The bundle ID for this item. Services can specify a bundleId to + // group many items together. They appear under a single top-level item on the + // device. BundleId string `json:"bundleId,omitempty"` - - // CanonicalUrl: A canonical URL pointing to the canonical/high quality - // version of the data represented by the timeline item. + // CanonicalUrl: A canonical URL pointing to the canonical/high quality version + // of the data represented by the timeline item. CanonicalUrl string `json:"canonicalUrl,omitempty"` - - // Created: The time at which this item was created, formatted according - // to RFC 3339. + // Created: The time at which this item was created, formatted according to RFC + // 3339. Created string `json:"created,omitempty"` - // Creator: The user or group that created this item. Creator *Contact `json:"creator,omitempty"` - - // DisplayTime: The time that should be displayed when this item is - // viewed in the timeline, formatted according to RFC 3339. This user's - // timeline is sorted chronologically on display time, so this will also - // determine where the item is displayed in the timeline. If not set by - // the service, the display time defaults to the updated time. + // DisplayTime: The time that should be displayed when this item is viewed in + // the timeline, formatted according to RFC 3339. This user's timeline is + // sorted chronologically on display time, so this will also determine where + // the item is displayed in the timeline. If not set by the service, the + // display time defaults to the updated time. DisplayTime string `json:"displayTime,omitempty"` - // Etag: ETag for this item. Etag string `json:"etag,omitempty"` - - // Html: HTML content for this item. If both text and html are provided - // for an item, the html will be rendered in the timeline. - // Allowed HTML elements - You can use these elements in your timeline - // cards. + // Html: HTML content for this item. If both text and html are provided for an + // item, the html will be rendered in the timeline. + // Allowed HTML elements - You can use these elements in your timeline cards. // // - Headers: h1, h2, h3, h4, h5, h6 // - Images: img // - Lists: li, ol, ul - // - HTML5 semantics: article, aside, details, figure, figcaption, - // footer, header, nav, section, summary, time + // - HTML5 semantics: article, aside, details, figure, figcaption, footer, + // header, nav, section, summary, time // - Structural: blockquote, br, div, hr, p, span - // - Style: b, big, center, em, i, u, s, small, strike, strong, style, - // sub, sup + // - Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup + // // - Tables: table, tbody, td, tfoot, th, thead, tr - // Blocked HTML elements: These elements and their contents are removed - // from HTML payloads. + // Blocked HTML elements: These elements and their contents are removed from + // HTML payloads. // // - Document headers: head, title // - Embeds: audio, embed, object, source, video // - Frames: frame, frameset // - Scripting: applet, script - // Other elements: Any elements that aren't listed are removed, but - // their contents are preserved. + // Other elements: Any elements that aren't listed are removed, but their + // contents are preserved. Html string `json:"html,omitempty"` - - // Id: The ID of the timeline item. This is unique within a user's - // timeline. + // Id: The ID of the timeline item. This is unique within a user's timeline. Id string `json:"id,omitempty"` - - // InReplyTo: If this item was generated as a reply to another item, - // this field will be set to the ID of the item being replied to. This - // can be used to attach a reply to the appropriate conversation or - // post. + // InReplyTo: If this item was generated as a reply to another item, this field + // will be set to the ID of the item being replied to. This can be used to + // attach a reply to the appropriate conversation or post. InReplyTo string `json:"inReplyTo,omitempty"` - // IsBundleCover: Whether this item is a bundle cover. // - // If an item is marked as a bundle cover, it will be the entry point to - // the bundle of items that have the same bundleId as that item. It will - // be shown only on the main timeline — not within the opened - // bundle. + // If an item is marked as a bundle cover, it will be the entry point to the + // bundle of items that have the same bundleId as that item. It will be shown + // only on the main timeline — not within the opened bundle. // // On the main timeline, items that are shown are: // - Items that have isBundleCover set to true - // - Items that do not have a bundleId In a bundle sub-timeline, items - // that are shown are: - // - Items that have the bundleId in question AND isBundleCover set to - // false + // - Items that do not have a bundleId In a bundle sub-timeline, items that + // are shown are: + // - Items that have the bundleId in question AND isBundleCover set to false IsBundleCover bool `json:"isBundleCover,omitempty"` - // IsDeleted: When true, indicates this item is deleted, and only the ID // property is set. IsDeleted bool `json:"isDeleted,omitempty"` - - // IsPinned: When true, indicates this item is pinned, which means it's - // grouped alongside "active" items like navigation and hangouts, on the - // opposite side of the home screen from historical (non-pinned) - // timeline items. You can allow the user to toggle the value of this - // property with the TOGGLE_PINNED built-in menu item. + // IsPinned: When true, indicates this item is pinned, which means it's grouped + // alongside "active" items like navigation and hangouts, on the opposite side + // of the home screen from historical (non-pinned) timeline items. You can + // allow the user to toggle the value of this property with the TOGGLE_PINNED + // built-in menu item. IsPinned bool `json:"isPinned,omitempty"` - // Kind: The type of resource. This is always mirror#timelineItem. Kind string `json:"kind,omitempty"` - // Location: The geographic location associated with this item. Location *Location `json:"location,omitempty"` - - // MenuItems: A list of menu items that will be presented to the user - // when this item is selected in the timeline. + // MenuItems: A list of menu items that will be presented to the user when this + // item is selected in the timeline. MenuItems []*MenuItem `json:"menuItems,omitempty"` - - // Notification: Controls how notifications for this item are presented - // on the device. If this is missing, no notification will be generated. + // Notification: Controls how notifications for this item are presented on the + // device. If this is missing, no notification will be generated. Notification *NotificationConfig `json:"notification,omitempty"` - - // PinScore: For pinned items, this determines the order in which the - // item is displayed in the timeline, with a higher score appearing - // closer to the clock. Note: setting this field is currently not - // supported. + // PinScore: For pinned items, this determines the order in which the item is + // displayed in the timeline, with a higher score appearing closer to the + // clock. Note: setting this field is currently not supported. PinScore int64 `json:"pinScore,omitempty"` - - // Recipients: A list of users or groups that this item has been shared - // with. + // Recipients: A list of users or groups that this item has been shared with. Recipients []*Contact `json:"recipients,omitempty"` - // SelfLink: A URL that can be used to retrieve this item. SelfLink string `json:"selfLink,omitempty"` - - // SourceItemId: Opaque string you can use to map a timeline item to - // data in your own service. + // SourceItemId: Opaque string you can use to map a timeline item to data in + // your own service. SourceItemId string `json:"sourceItemId,omitempty"` - - // SpeakableText: The speakable version of the content of this item. - // Along with the READ_ALOUD menu item, use this field to provide text - // that would be clearer when read aloud, or to provide extended - // information to what is displayed visually on Glass. + // SpeakableText: The speakable version of the content of this item. Along with + // the READ_ALOUD menu item, use this field to provide text that would be + // clearer when read aloud, or to provide extended information to what is + // displayed visually on Glass. // - // Glassware should also specify the speakableType field, which will be - // spoken before this text in cases where the additional context is - // useful, for example when the user requests that the item be read - // aloud following a notification. - SpeakableText string `json:"speakableText,omitempty"` - - // SpeakableType: A speakable description of the type of this item. This - // will be announced to the user prior to reading the content of the - // item in cases where the additional context is useful, for example - // when the user requests that the item be read aloud following a + // Glassware should also specify the speakableType field, which will be spoken + // before this text in cases where the additional context is useful, for + // example when the user requests that the item be read aloud following a // notification. + SpeakableText string `json:"speakableText,omitempty"` + // SpeakableType: A speakable description of the type of this item. This will + // be announced to the user prior to reading the content of the item in cases + // where the additional context is useful, for example when the user requests + // that the item be read aloud following a notification. // - // This should be a short, simple noun phrase such as "Email", "Text - // message", or "Daily Planet News Update". + // This should be a short, simple noun phrase such as "Email", "Text message", + // or "Daily Planet News Update". // - // Glassware are encouraged to populate this field for every timeline - // item, even if the item does not contain speakableText or text so that - // the user can learn the type of the item without looking at the - // screen. + // Glassware are encouraged to populate this field for every timeline item, + // even if the item does not contain speakableText or text so that the user can + // learn the type of the item without looking at the screen. SpeakableType string `json:"speakableType,omitempty"` - // Text: Text content of this item. Text string `json:"text,omitempty"` - // Title: The title of this item. Title string `json:"title,omitempty"` - - // Updated: The time at which this item was last modified, formatted - // according to RFC 3339. + // Updated: The time at which this item was last modified, formatted according + // to RFC 3339. Updated string `json:"updated,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Attachments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attachments") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attachments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimelineItem) MarshalJSON() ([]byte, error) { +func (s TimelineItem) MarshalJSON() ([]byte, error) { type NoMethod TimelineItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TimelineListResponse: A list of timeline items. This is the response -// from the server to GET requests on the timeline collection. +// TimelineListResponse: A list of timeline items. This is the response from +// the server to GET requests on the timeline collection. type TimelineListResponse struct { // Items: Items in the timeline. Items []*TimelineItem `json:"items,omitempty"` - // Kind: The type of resource. This is always mirror#timeline. Kind string `json:"kind,omitempty"` - - // NextPageToken: The next page token. Provide this as the pageToken - // parameter in the request to retrieve the next page of results. + // NextPageToken: The next page token. Provide this as the pageToken parameter + // in the request to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimelineListResponse) MarshalJSON() ([]byte, error) { +func (s TimelineListResponse) MarshalJSON() ([]byte, error) { type NoMethod TimelineListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserAction: Represents an action taken by the user that triggered a @@ -1245,77 +1046,59 @@ func (s *TimelineListResponse) MarshalJSON() ([]byte, error) { type UserAction struct { // Payload: An optional payload for the action. // - // For actions of type CUSTOM, this is the ID of the custom menu item - // that was selected. + // For actions of type CUSTOM, this is the ID of the custom menu item that was + // selected. Payload string `json:"payload,omitempty"` - // Type: The type of action. The value of this can be: // - SHARE - the user shared an item. // - REPLY - the user replied to an item. // - REPLY_ALL - the user replied to all recipients of an item. // - CUSTOM - the user selected a custom menu item on the timeline item. - // // - DELETE - the user deleted the item. // - PIN - the user pinned the item. // - UNPIN - the user unpinned the item. - // - LAUNCH - the user initiated a voice command. In the future, - // additional types may be added. UserActions with unrecognized types - // should be ignored. + // - LAUNCH - the user initiated a voice command. In the future, additional + // types may be added. UserActions with unrecognized types should be ignored. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Payload") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Payload") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Payload") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Payload") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserAction) MarshalJSON() ([]byte, error) { +func (s UserAction) MarshalJSON() ([]byte, error) { type NoMethod UserAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UserData struct { - Key string `json:"key,omitempty"` - + Key string `json:"key,omitempty"` Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserData) MarshalJSON() ([]byte, error) { +func (s UserData) MarshalJSON() ([]byte, error) { type NoMethod UserData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "mirror.accounts.insert": - type AccountsInsertCall struct { s *Service userToken string @@ -1328,6 +1111,11 @@ type AccountsInsertCall struct { } // Insert: Inserts a new account for a user +// +// - accountName: The name of the account to be passed to the Android Account +// Manager. +// - accountType: Account type to be passed to Android Account Manager. +// - userToken: The ID for the user. func (r *AccountsService) Insert(userToken string, accountType string, accountName string, account *Account) *AccountsInsertCall { c := &AccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userToken = userToken @@ -1338,23 +1126,21 @@ func (r *AccountsService) Insert(userToken string, accountType string, accountNa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsInsertCall) Fields(s ...googleapi.Field) *AccountsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsInsertCall) Context(ctx context.Context) *AccountsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1363,18 +1149,12 @@ func (c *AccountsInsertCall) Header() http.Header { } func (c *AccountsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.account) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{userToken}/{accountType}/{accountName}") @@ -1389,16 +1169,14 @@ func (c *AccountsInsertCall) doRequest(alt string) (*http.Response, error) { "accountType": c.accountType, "accountName": c.accountName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.accounts.insert" call. -// Exactly one of *Account or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Account.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Account.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1406,17 +1184,17 @@ func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Account{ ServerResponse: googleapi.ServerResponse{ @@ -1429,47 +1207,7 @@ func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) return nil, err } return ret, nil - // { - // "description": "Inserts a new account for a user", - // "httpMethod": "POST", - // "id": "mirror.accounts.insert", - // "parameterOrder": [ - // "userToken", - // "accountType", - // "accountName" - // ], - // "parameters": { - // "accountName": { - // "description": "The name of the account to be passed to the Android Account Manager.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "accountType": { - // "description": "Account type to be passed to Android Account Manager.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "userToken": { - // "description": "The ID for the user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "accounts/{userToken}/{accountType}/{accountName}", - // "request": { - // "$ref": "Account" - // }, - // "response": { - // "$ref": "Account" - // } - // } - -} - -// method id "mirror.contacts.delete": +} type ContactsDeleteCall struct { s *Service @@ -1480,6 +1218,8 @@ type ContactsDeleteCall struct { } // Delete: Deletes a contact. +// +// - id: The ID of the contact. func (r *ContactsService) Delete(id string) *ContactsDeleteCall { c := &ContactsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -1487,23 +1227,21 @@ func (r *ContactsService) Delete(id string) *ContactsDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContactsDeleteCall) Fields(s ...googleapi.Field) *ContactsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContactsDeleteCall) Context(ctx context.Context) *ContactsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContactsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1512,12 +1250,7 @@ func (c *ContactsDeleteCall) Header() http.Header { } func (c *ContactsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1531,7 +1264,7 @@ func (c *ContactsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.contacts.delete" call. @@ -1543,33 +1276,10 @@ func (c *ContactsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a contact.", - // "httpMethod": "DELETE", - // "id": "mirror.contacts.delete", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the contact.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "contacts/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.contacts.get": +} type ContactsGetCall struct { s *Service @@ -1581,6 +1291,8 @@ type ContactsGetCall struct { } // Get: Gets a single contact by ID. +// +// - id: The ID of the contact. func (r *ContactsService) Get(id string) *ContactsGetCall { c := &ContactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -1588,33 +1300,29 @@ func (r *ContactsService) Get(id string) *ContactsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContactsGetCall) Fields(s ...googleapi.Field) *ContactsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContactsGetCall) IfNoneMatch(entityTag string) *ContactsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContactsGetCall) Context(ctx context.Context) *ContactsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContactsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1623,12 +1331,7 @@ func (c *ContactsGetCall) Header() http.Header { } func (c *ContactsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1645,16 +1348,14 @@ func (c *ContactsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.contacts.get" call. -// Exactly one of *Contact or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Contact.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Contact.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ContactsGetCall) Do(opts ...googleapi.CallOption) (*Contact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1662,17 +1363,17 @@ func (c *ContactsGetCall) Do(opts ...googleapi.CallOption) (*Contact, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Contact{ ServerResponse: googleapi.ServerResponse{ @@ -1685,33 +1386,7 @@ func (c *ContactsGetCall) Do(opts ...googleapi.CallOption) (*Contact, error) { return nil, err } return ret, nil - // { - // "description": "Gets a single contact by ID.", - // "httpMethod": "GET", - // "id": "mirror.contacts.get", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the contact.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "contacts/{id}", - // "response": { - // "$ref": "Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.contacts.insert": +} type ContactsInsertCall struct { s *Service @@ -1729,23 +1404,21 @@ func (r *ContactsService) Insert(contact *Contact) *ContactsInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContactsInsertCall) Fields(s ...googleapi.Field) *ContactsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContactsInsertCall) Context(ctx context.Context) *ContactsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContactsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1754,18 +1427,12 @@ func (c *ContactsInsertCall) Header() http.Header { } func (c *ContactsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contact) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "contacts") @@ -1775,16 +1442,14 @@ func (c *ContactsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.contacts.insert" call. -// Exactly one of *Contact or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Contact.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Contact.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ContactsInsertCall) Do(opts ...googleapi.CallOption) (*Contact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1792,17 +1457,17 @@ func (c *ContactsInsertCall) Do(opts ...googleapi.CallOption) (*Contact, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Contact{ ServerResponse: googleapi.ServerResponse{ @@ -1815,25 +1480,7 @@ func (c *ContactsInsertCall) Do(opts ...googleapi.CallOption) (*Contact, error) return nil, err } return ret, nil - // { - // "description": "Inserts a new contact.", - // "httpMethod": "POST", - // "id": "mirror.contacts.insert", - // "path": "contacts", - // "request": { - // "$ref": "Contact" - // }, - // "response": { - // "$ref": "Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.contacts.list": +} type ContactsListCall struct { s *Service @@ -1850,33 +1497,29 @@ func (r *ContactsService) List() *ContactsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContactsListCall) Fields(s ...googleapi.Field) *ContactsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ContactsListCall) IfNoneMatch(entityTag string) *ContactsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContactsListCall) Context(ctx context.Context) *ContactsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContactsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1885,12 +1528,7 @@ func (c *ContactsListCall) Header() http.Header { } func (c *ContactsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1904,16 +1542,15 @@ func (c *ContactsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.contacts.list" call. -// Exactly one of *ContactsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ContactsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ContactsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ContactsListCall) Do(opts ...googleapi.CallOption) (*ContactsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1921,17 +1558,17 @@ func (c *ContactsListCall) Do(opts ...googleapi.CallOption) (*ContactsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ContactsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1944,23 +1581,8 @@ func (c *ContactsListCall) Do(opts ...googleapi.CallOption) (*ContactsListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of contacts for the authenticated user.", - // "httpMethod": "GET", - // "id": "mirror.contacts.list", - // "path": "contacts", - // "response": { - // "$ref": "ContactsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - } -// method id "mirror.contacts.patch": - type ContactsPatchCall struct { s *Service id string @@ -1970,8 +1592,9 @@ type ContactsPatchCall struct { header_ http.Header } -// Patch: Updates a contact in place. This method supports patch -// semantics. +// Patch: Updates a contact in place. This method supports patch semantics. +// +// - id: The ID of the contact. func (r *ContactsService) Patch(id string, contact *Contact) *ContactsPatchCall { c := &ContactsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -1980,23 +1603,21 @@ func (r *ContactsService) Patch(id string, contact *Contact) *ContactsPatchCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContactsPatchCall) Fields(s ...googleapi.Field) *ContactsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContactsPatchCall) Context(ctx context.Context) *ContactsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContactsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2005,18 +1626,12 @@ func (c *ContactsPatchCall) Header() http.Header { } func (c *ContactsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contact) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "contacts/{id}") @@ -2029,16 +1644,14 @@ func (c *ContactsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.contacts.patch" call. -// Exactly one of *Contact or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Contact.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Contact.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ContactsPatchCall) Do(opts ...googleapi.CallOption) (*Contact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2046,17 +1659,17 @@ func (c *ContactsPatchCall) Do(opts ...googleapi.CallOption) (*Contact, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Contact{ ServerResponse: googleapi.ServerResponse{ @@ -2069,36 +1682,7 @@ func (c *ContactsPatchCall) Do(opts ...googleapi.CallOption) (*Contact, error) { return nil, err } return ret, nil - // { - // "description": "Updates a contact in place. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "mirror.contacts.patch", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the contact.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "contacts/{id}", - // "request": { - // "$ref": "Contact" - // }, - // "response": { - // "$ref": "Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.contacts.update": +} type ContactsUpdateCall struct { s *Service @@ -2110,6 +1694,8 @@ type ContactsUpdateCall struct { } // Update: Updates a contact in place. +// +// - id: The ID of the contact. func (r *ContactsService) Update(id string, contact *Contact) *ContactsUpdateCall { c := &ContactsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -2118,23 +1704,21 @@ func (r *ContactsService) Update(id string, contact *Contact) *ContactsUpdateCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ContactsUpdateCall) Fields(s ...googleapi.Field) *ContactsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ContactsUpdateCall) Context(ctx context.Context) *ContactsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ContactsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2143,18 +1727,12 @@ func (c *ContactsUpdateCall) Header() http.Header { } func (c *ContactsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.contact) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "contacts/{id}") @@ -2167,16 +1745,14 @@ func (c *ContactsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.contacts.update" call. -// Exactly one of *Contact or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Contact.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Contact.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ContactsUpdateCall) Do(opts ...googleapi.CallOption) (*Contact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2184,17 +1760,17 @@ func (c *ContactsUpdateCall) Do(opts ...googleapi.CallOption) (*Contact, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Contact{ ServerResponse: googleapi.ServerResponse{ @@ -2207,36 +1783,7 @@ func (c *ContactsUpdateCall) Do(opts ...googleapi.CallOption) (*Contact, error) return nil, err } return ret, nil - // { - // "description": "Updates a contact in place.", - // "httpMethod": "PUT", - // "id": "mirror.contacts.update", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the contact.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "contacts/{id}", - // "request": { - // "$ref": "Contact" - // }, - // "response": { - // "$ref": "Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.locations.get": +} type LocationsGetCall struct { s *Service @@ -2248,6 +1795,8 @@ type LocationsGetCall struct { } // Get: Gets a single location by ID. +// +// - id: The ID of the location or latest for the last known location. func (r *LocationsService) Get(id string) *LocationsGetCall { c := &LocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -2255,33 +1804,29 @@ func (r *LocationsService) Get(id string) *LocationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LocationsGetCall) Fields(s ...googleapi.Field) *LocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LocationsGetCall) IfNoneMatch(entityTag string) *LocationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LocationsGetCall) Context(ctx context.Context) *LocationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2290,12 +1835,7 @@ func (c *LocationsGetCall) Header() http.Header { } func (c *LocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2312,16 +1852,14 @@ func (c *LocationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *LocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2329,17 +1867,17 @@ func (c *LocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Location{ ServerResponse: googleapi.ServerResponse{ @@ -2352,34 +1890,7 @@ func (c *LocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { return nil, err } return ret, nil - // { - // "description": "Gets a single location by ID.", - // "httpMethod": "GET", - // "id": "mirror.locations.get", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the location or latest for the last known location.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "locations/{id}", - // "response": { - // "$ref": "Location" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.location", - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.locations.list": +} type LocationsListCall struct { s *Service @@ -2396,33 +1907,29 @@ func (r *LocationsService) List() *LocationsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LocationsListCall) Fields(s ...googleapi.Field) *LocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LocationsListCall) IfNoneMatch(entityTag string) *LocationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LocationsListCall) Context(ctx context.Context) *LocationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2431,12 +1938,7 @@ func (c *LocationsListCall) Header() http.Header { } func (c *LocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2450,16 +1952,15 @@ func (c *LocationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.locations.list" call. -// Exactly one of *LocationsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *LocationsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LocationsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *LocationsListCall) Do(opts ...googleapi.CallOption) (*LocationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2467,17 +1968,17 @@ func (c *LocationsListCall) Do(opts ...googleapi.CallOption) (*LocationsListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LocationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2490,24 +1991,8 @@ func (c *LocationsListCall) Do(opts ...googleapi.CallOption) (*LocationsListResp return nil, err } return ret, nil - // { - // "description": "Retrieves a list of locations for the user.", - // "httpMethod": "GET", - // "id": "mirror.locations.list", - // "path": "locations", - // "response": { - // "$ref": "LocationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.location", - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - } -// method id "mirror.settings.get": - type SettingsGetCall struct { s *Service id string @@ -2518,6 +2003,12 @@ type SettingsGetCall struct { } // Get: Gets a single setting by ID. +// +// - id: The ID of the setting. The following IDs are valid: +// - locale - The key to the user’s language/locale (BCP 47 identifier) +// that Glassware should use to render localized content. +// - timezone - The key to the user’s current time zone region as defined +// in the tz database. Example: America/Los_Angeles. func (r *SettingsService) Get(id string) *SettingsGetCall { c := &SettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -2525,33 +2016,29 @@ func (r *SettingsService) Get(id string) *SettingsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SettingsGetCall) Fields(s ...googleapi.Field) *SettingsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SettingsGetCall) IfNoneMatch(entityTag string) *SettingsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SettingsGetCall) Context(ctx context.Context) *SettingsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SettingsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2560,12 +2047,7 @@ func (c *SettingsGetCall) Header() http.Header { } func (c *SettingsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2582,16 +2064,14 @@ func (c *SettingsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.settings.get" call. -// Exactly one of *Setting or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Setting.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Setting.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SettingsGetCall) Do(opts ...googleapi.CallOption) (*Setting, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2599,17 +2079,17 @@ func (c *SettingsGetCall) Do(opts ...googleapi.CallOption) (*Setting, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Setting{ ServerResponse: googleapi.ServerResponse{ @@ -2622,33 +2102,7 @@ func (c *SettingsGetCall) Do(opts ...googleapi.CallOption) (*Setting, error) { return nil, err } return ret, nil - // { - // "description": "Gets a single setting by ID.", - // "httpMethod": "GET", - // "id": "mirror.settings.get", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the setting. The following IDs are valid: \n- locale - The key to the user’s language/locale (BCP 47 identifier) that Glassware should use to render localized content. \n- timezone - The key to the user’s current time zone region as defined in the tz database. Example: America/Los_Angeles.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "settings/{id}", - // "response": { - // "$ref": "Setting" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.subscriptions.delete": +} type SubscriptionsDeleteCall struct { s *Service @@ -2659,6 +2113,8 @@ type SubscriptionsDeleteCall struct { } // Delete: Deletes a subscription. +// +// - id: The ID of the subscription. func (r *SubscriptionsService) Delete(id string) *SubscriptionsDeleteCall { c := &SubscriptionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -2666,23 +2122,21 @@ func (r *SubscriptionsService) Delete(id string) *SubscriptionsDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubscriptionsDeleteCall) Fields(s ...googleapi.Field) *SubscriptionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubscriptionsDeleteCall) Context(ctx context.Context) *SubscriptionsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubscriptionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2691,12 +2145,7 @@ func (c *SubscriptionsDeleteCall) Header() http.Header { } func (c *SubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2710,7 +2159,7 @@ func (c *SubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.subscriptions.delete" call. @@ -2722,33 +2171,10 @@ func (c *SubscriptionsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a subscription.", - // "httpMethod": "DELETE", - // "id": "mirror.subscriptions.delete", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the subscription.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "subscriptions/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.subscriptions.insert": +} type SubscriptionsInsertCall struct { s *Service @@ -2766,23 +2192,21 @@ func (r *SubscriptionsService) Insert(subscription *Subscription) *Subscriptions } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubscriptionsInsertCall) Fields(s ...googleapi.Field) *SubscriptionsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubscriptionsInsertCall) Context(ctx context.Context) *SubscriptionsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubscriptionsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2791,18 +2215,12 @@ func (c *SubscriptionsInsertCall) Header() http.Header { } func (c *SubscriptionsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subscription) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "subscriptions") @@ -2812,16 +2230,14 @@ func (c *SubscriptionsInsertCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.subscriptions.insert" call. -// Exactly one of *Subscription or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subscription.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subscription.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubscriptionsInsertCall) Do(opts ...googleapi.CallOption) (*Subscription, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2829,17 +2245,17 @@ func (c *SubscriptionsInsertCall) Do(opts ...googleapi.CallOption) (*Subscriptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subscription{ ServerResponse: googleapi.ServerResponse{ @@ -2852,25 +2268,7 @@ func (c *SubscriptionsInsertCall) Do(opts ...googleapi.CallOption) (*Subscriptio return nil, err } return ret, nil - // { - // "description": "Creates a new subscription.", - // "httpMethod": "POST", - // "id": "mirror.subscriptions.insert", - // "path": "subscriptions", - // "request": { - // "$ref": "Subscription" - // }, - // "response": { - // "$ref": "Subscription" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.subscriptions.list": +} type SubscriptionsListCall struct { s *Service @@ -2880,41 +2278,37 @@ type SubscriptionsListCall struct { header_ http.Header } -// List: Retrieves a list of subscriptions for the authenticated user -// and service. +// List: Retrieves a list of subscriptions for the authenticated user and +// service. func (r *SubscriptionsService) List() *SubscriptionsListCall { c := &SubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubscriptionsListCall) Fields(s ...googleapi.Field) *SubscriptionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SubscriptionsListCall) IfNoneMatch(entityTag string) *SubscriptionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubscriptionsListCall) Context(ctx context.Context) *SubscriptionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubscriptionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2923,12 +2317,7 @@ func (c *SubscriptionsListCall) Header() http.Header { } func (c *SubscriptionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2942,16 +2331,15 @@ func (c *SubscriptionsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.subscriptions.list" call. -// Exactly one of *SubscriptionsListResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *SubscriptionsListResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *SubscriptionsListResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *SubscriptionsListCall) Do(opts ...googleapi.CallOption) (*SubscriptionsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2959,17 +2347,17 @@ func (c *SubscriptionsListCall) Do(opts ...googleapi.CallOption) (*Subscriptions if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SubscriptionsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2982,23 +2370,8 @@ func (c *SubscriptionsListCall) Do(opts ...googleapi.CallOption) (*Subscriptions return nil, err } return ret, nil - // { - // "description": "Retrieves a list of subscriptions for the authenticated user and service.", - // "httpMethod": "GET", - // "id": "mirror.subscriptions.list", - // "path": "subscriptions", - // "response": { - // "$ref": "SubscriptionsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - } -// method id "mirror.subscriptions.update": - type SubscriptionsUpdateCall struct { s *Service id string @@ -3009,6 +2382,8 @@ type SubscriptionsUpdateCall struct { } // Update: Updates an existing subscription in place. +// +// - id: The ID of the subscription. func (r *SubscriptionsService) Update(id string, subscription *Subscription) *SubscriptionsUpdateCall { c := &SubscriptionsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -3017,23 +2392,21 @@ func (r *SubscriptionsService) Update(id string, subscription *Subscription) *Su } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SubscriptionsUpdateCall) Fields(s ...googleapi.Field) *SubscriptionsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SubscriptionsUpdateCall) Context(ctx context.Context) *SubscriptionsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SubscriptionsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3042,18 +2415,12 @@ func (c *SubscriptionsUpdateCall) Header() http.Header { } func (c *SubscriptionsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.subscription) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "subscriptions/{id}") @@ -3066,16 +2433,14 @@ func (c *SubscriptionsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.subscriptions.update" call. -// Exactly one of *Subscription or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Subscription.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Subscription.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SubscriptionsUpdateCall) Do(opts ...googleapi.CallOption) (*Subscription, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3083,17 +2448,17 @@ func (c *SubscriptionsUpdateCall) Do(opts ...googleapi.CallOption) (*Subscriptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Subscription{ ServerResponse: googleapi.ServerResponse{ @@ -3106,36 +2471,7 @@ func (c *SubscriptionsUpdateCall) Do(opts ...googleapi.CallOption) (*Subscriptio return nil, err } return ret, nil - // { - // "description": "Updates an existing subscription in place.", - // "httpMethod": "PUT", - // "id": "mirror.subscriptions.update", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the subscription.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "subscriptions/{id}", - // "request": { - // "$ref": "Subscription" - // }, - // "response": { - // "$ref": "Subscription" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.timeline.delete": +} type TimelineDeleteCall struct { s *Service @@ -3146,6 +2482,8 @@ type TimelineDeleteCall struct { } // Delete: Deletes a timeline item. +// +// - id: The ID of the timeline item. func (r *TimelineService) Delete(id string) *TimelineDeleteCall { c := &TimelineDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -3153,23 +2491,21 @@ func (r *TimelineService) Delete(id string) *TimelineDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TimelineDeleteCall) Fields(s ...googleapi.Field) *TimelineDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TimelineDeleteCall) Context(ctx context.Context) *TimelineDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TimelineDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3178,12 +2514,7 @@ func (c *TimelineDeleteCall) Header() http.Header { } func (c *TimelineDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3197,7 +2528,7 @@ func (c *TimelineDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.timeline.delete" call. @@ -3209,34 +2540,10 @@ func (c *TimelineDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a timeline item.", - // "httpMethod": "DELETE", - // "id": "mirror.timeline.delete", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the timeline item.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "timeline/{id}", - // "scopes": [ - // "https://www.googleapis.com/auth/glass.location", - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.timeline.get": +} type TimelineGetCall struct { s *Service @@ -3248,6 +2555,8 @@ type TimelineGetCall struct { } // Get: Gets a single timeline item by ID. +// +// - id: The ID of the timeline item. func (r *TimelineService) Get(id string) *TimelineGetCall { c := &TimelineGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -3255,33 +2564,29 @@ func (r *TimelineService) Get(id string) *TimelineGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TimelineGetCall) Fields(s ...googleapi.Field) *TimelineGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TimelineGetCall) IfNoneMatch(entityTag string) *TimelineGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TimelineGetCall) Context(ctx context.Context) *TimelineGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TimelineGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3290,12 +2595,7 @@ func (c *TimelineGetCall) Header() http.Header { } func (c *TimelineGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3312,16 +2612,14 @@ func (c *TimelineGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.timeline.get" call. -// Exactly one of *TimelineItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *TimelineItem.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TimelineItem.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TimelineGetCall) Do(opts ...googleapi.CallOption) (*TimelineItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3329,17 +2627,17 @@ func (c *TimelineGetCall) Do(opts ...googleapi.CallOption) (*TimelineItem, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TimelineItem{ ServerResponse: googleapi.ServerResponse{ @@ -3352,34 +2650,7 @@ func (c *TimelineGetCall) Do(opts ...googleapi.CallOption) (*TimelineItem, error return nil, err } return ret, nil - // { - // "description": "Gets a single timeline item by ID.", - // "httpMethod": "GET", - // "id": "mirror.timeline.get", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the timeline item.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "timeline/{id}", - // "response": { - // "$ref": "TimelineItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.location", - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.timeline.insert": +} type TimelineInsertCall struct { s *Service @@ -3397,54 +2668,51 @@ func (r *TimelineService) Insert(timelineitem *TimelineItem) *TimelineInsertCall return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *TimelineInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *TimelineInsertCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *TimelineInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TimelineInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *TimelineInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TimelineInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TimelineInsertCall) Fields(s ...googleapi.Field) *TimelineInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *TimelineInsertCall) Context(ctx context.Context) *TimelineInsertCall { @@ -3452,8 +2720,8 @@ func (c *TimelineInsertCall) Context(ctx context.Context) *TimelineInsertCall { return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TimelineInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3462,18 +2730,12 @@ func (c *TimelineInsertCall) Header() http.Header { } func (c *TimelineInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.timelineitem) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "timeline") @@ -3494,16 +2756,14 @@ func (c *TimelineInsertCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.timeline.insert" call. -// Exactly one of *TimelineItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *TimelineItem.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TimelineItem.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TimelineInsertCall) Do(opts ...googleapi.CallOption) (*TimelineItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3511,17 +2771,17 @@ func (c *TimelineInsertCall) Do(opts ...googleapi.CallOption) (*TimelineItem, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -3537,7 +2797,7 @@ func (c *TimelineInsertCall) Do(opts ...googleapi.CallOption) (*TimelineItem, er } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &TimelineItem{ @@ -3551,45 +2811,7 @@ func (c *TimelineInsertCall) Do(opts ...googleapi.CallOption) (*TimelineItem, er return nil, err } return ret, nil - // { - // "description": "Inserts a new item into the timeline.", - // "httpMethod": "POST", - // "id": "mirror.timeline.insert", - // "mediaUpload": { - // "accept": [ - // "audio/*", - // "image/*", - // "video/*" - // ], - // "maxSize": "10MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/mirror/v1/timeline" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/mirror/v1/timeline" - // } - // } - // }, - // "path": "timeline", - // "request": { - // "$ref": "TimelineItem" - // }, - // "response": { - // "$ref": "TimelineItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.location", - // "https://www.googleapis.com/auth/glass.timeline" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "mirror.timeline.list": +} type TimelineListCall struct { s *Service @@ -3605,8 +2827,8 @@ func (r *TimelineService) List() *TimelineListCall { return c } -// BundleId sets the optional parameter "bundleId": If provided, only -// items with the given bundleId will be returned. +// BundleId sets the optional parameter "bundleId": If provided, only items +// with the given bundleId will be returned. func (c *TimelineListCall) BundleId(bundleId string) *TimelineListCall { c.urlParams_.Set("bundleId", bundleId) return c @@ -3619,79 +2841,75 @@ func (c *TimelineListCall) IncludeDeleted(includeDeleted bool) *TimelineListCall return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of items to include in the response, used for paging. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// items to include in the response, used for paging. func (c *TimelineListCall) MaxResults(maxResults int64) *TimelineListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderBy sets the optional parameter "orderBy": Controls the order in -// which timeline items are returned. +// OrderBy sets the optional parameter "orderBy": Controls the order in which +// timeline items are returned. // // Possible values: // -// "displayTime" - Results will be ordered by displayTime (default). +// "displayTime" - Results will be ordered by displayTime (default). This is // -// This is the same ordering as is used in the timeline on the device. +// the same ordering as is used in the timeline on the device. // -// "writeTime" - Results will be ordered by the time at which they +// "writeTime" - Results will be ordered by the time at which they were last // -// were last written to the data store. +// written to the data store. func (c *TimelineListCall) OrderBy(orderBy string) *TimelineListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageToken sets the optional parameter "pageToken": Token for the page -// of results to return. +// PageToken sets the optional parameter "pageToken": Token for the page of +// results to return. func (c *TimelineListCall) PageToken(pageToken string) *TimelineListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PinnedOnly sets the optional parameter "pinnedOnly": If true, only -// pinned items will be returned. +// PinnedOnly sets the optional parameter "pinnedOnly": If true, only pinned +// items will be returned. func (c *TimelineListCall) PinnedOnly(pinnedOnly bool) *TimelineListCall { c.urlParams_.Set("pinnedOnly", fmt.Sprint(pinnedOnly)) return c } -// SourceItemId sets the optional parameter "sourceItemId": If provided, -// only items with the given sourceItemId will be returned. +// SourceItemId sets the optional parameter "sourceItemId": If provided, only +// items with the given sourceItemId will be returned. func (c *TimelineListCall) SourceItemId(sourceItemId string) *TimelineListCall { c.urlParams_.Set("sourceItemId", sourceItemId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TimelineListCall) Fields(s ...googleapi.Field) *TimelineListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TimelineListCall) IfNoneMatch(entityTag string) *TimelineListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TimelineListCall) Context(ctx context.Context) *TimelineListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TimelineListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3700,12 +2918,7 @@ func (c *TimelineListCall) Header() http.Header { } func (c *TimelineListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3719,16 +2932,15 @@ func (c *TimelineListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.timeline.list" call. -// Exactly one of *TimelineListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TimelineListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TimelineListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TimelineListCall) Do(opts ...googleapi.CallOption) (*TimelineListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3736,17 +2948,17 @@ func (c *TimelineListCall) Do(opts ...googleapi.CallOption) (*TimelineListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TimelineListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3759,66 +2971,6 @@ func (c *TimelineListCall) Do(opts ...googleapi.CallOption) (*TimelineListRespon return nil, err } return ret, nil - // { - // "description": "Retrieves a list of timeline items for the authenticated user.", - // "httpMethod": "GET", - // "id": "mirror.timeline.list", - // "parameters": { - // "bundleId": { - // "description": "If provided, only items with the given bundleId will be returned.", - // "location": "query", - // "type": "string" - // }, - // "includeDeleted": { - // "description": "If true, tombstone records for deleted items will be returned.", - // "location": "query", - // "type": "boolean" - // }, - // "maxResults": { - // "description": "The maximum number of items to include in the response, used for paging.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "orderBy": { - // "description": "Controls the order in which timeline items are returned.", - // "enum": [ - // "displayTime", - // "writeTime" - // ], - // "enumDescriptions": [ - // "Results will be ordered by displayTime (default). This is the same ordering as is used in the timeline on the device.", - // "Results will be ordered by the time at which they were last written to the data store." - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Token for the page of results to return.", - // "location": "query", - // "type": "string" - // }, - // "pinnedOnly": { - // "description": "If true, only pinned items will be returned.", - // "location": "query", - // "type": "boolean" - // }, - // "sourceItemId": { - // "description": "If provided, only items with the given sourceItemId will be returned.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "timeline", - // "response": { - // "$ref": "TimelineListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.location", - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - } // Pages invokes f for each page of results. @@ -3826,7 +2978,7 @@ func (c *TimelineListCall) Do(opts ...googleapi.CallOption) (*TimelineListRespon // The provided context supersedes any context provided to the Context method. func (c *TimelineListCall) Pages(ctx context.Context, f func(*TimelineListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3842,8 +2994,6 @@ func (c *TimelineListCall) Pages(ctx context.Context, f func(*TimelineListRespon } } -// method id "mirror.timeline.patch": - type TimelinePatchCall struct { s *Service id string @@ -3855,6 +3005,8 @@ type TimelinePatchCall struct { // Patch: Updates a timeline item in place. This method supports patch // semantics. +// +// - id: The ID of the timeline item. func (r *TimelineService) Patch(id string, timelineitem *TimelineItem) *TimelinePatchCall { c := &TimelinePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -3863,23 +3015,21 @@ func (r *TimelineService) Patch(id string, timelineitem *TimelineItem) *Timeline } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TimelinePatchCall) Fields(s ...googleapi.Field) *TimelinePatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TimelinePatchCall) Context(ctx context.Context) *TimelinePatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TimelinePatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3888,18 +3038,12 @@ func (c *TimelinePatchCall) Header() http.Header { } func (c *TimelinePatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.timelineitem) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "timeline/{id}") @@ -3912,16 +3056,14 @@ func (c *TimelinePatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.timeline.patch" call. -// Exactly one of *TimelineItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *TimelineItem.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TimelineItem.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TimelinePatchCall) Do(opts ...googleapi.CallOption) (*TimelineItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3929,17 +3071,17 @@ func (c *TimelinePatchCall) Do(opts ...googleapi.CallOption) (*TimelineItem, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TimelineItem{ ServerResponse: googleapi.ServerResponse{ @@ -3952,37 +3094,7 @@ func (c *TimelinePatchCall) Do(opts ...googleapi.CallOption) (*TimelineItem, err return nil, err } return ret, nil - // { - // "description": "Updates a timeline item in place. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "mirror.timeline.patch", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the timeline item.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "timeline/{id}", - // "request": { - // "$ref": "TimelineItem" - // }, - // "response": { - // "$ref": "TimelineItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.location", - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.timeline.update": +} type TimelineUpdateCall struct { s *Service @@ -3995,6 +3107,8 @@ type TimelineUpdateCall struct { } // Update: Updates a timeline item in place. +// +// - id: The ID of the timeline item. func (r *TimelineService) Update(id string, timelineitem *TimelineItem) *TimelineUpdateCall { c := &TimelineUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.id = id @@ -4002,54 +3116,51 @@ func (r *TimelineService) Update(id string, timelineitem *TimelineItem) *Timelin return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *TimelineUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *TimelineUpdateCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *TimelineUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TimelineUpdateCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *TimelineUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TimelineUpdateCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TimelineUpdateCall) Fields(s ...googleapi.Field) *TimelineUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *TimelineUpdateCall) Context(ctx context.Context) *TimelineUpdateCall { @@ -4057,8 +3168,8 @@ func (c *TimelineUpdateCall) Context(ctx context.Context) *TimelineUpdateCall { return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TimelineUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4067,18 +3178,12 @@ func (c *TimelineUpdateCall) Header() http.Header { } func (c *TimelineUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.timelineitem) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "timeline/{id}") @@ -4102,16 +3207,14 @@ func (c *TimelineUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.timeline.update" call. -// Exactly one of *TimelineItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *TimelineItem.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TimelineItem.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TimelineUpdateCall) Do(opts ...googleapi.CallOption) (*TimelineItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4119,17 +3222,17 @@ func (c *TimelineUpdateCall) Do(opts ...googleapi.CallOption) (*TimelineItem, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -4145,7 +3248,7 @@ func (c *TimelineUpdateCall) Do(opts ...googleapi.CallOption) (*TimelineItem, er } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &TimelineItem{ @@ -4159,56 +3262,7 @@ func (c *TimelineUpdateCall) Do(opts ...googleapi.CallOption) (*TimelineItem, er return nil, err } return ret, nil - // { - // "description": "Updates a timeline item in place.", - // "httpMethod": "PUT", - // "id": "mirror.timeline.update", - // "mediaUpload": { - // "accept": [ - // "audio/*", - // "image/*", - // "video/*" - // ], - // "maxSize": "10MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/mirror/v1/timeline/{id}" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/mirror/v1/timeline/{id}" - // } - // } - // }, - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the timeline item.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "timeline/{id}", - // "request": { - // "$ref": "TimelineItem" - // }, - // "response": { - // "$ref": "TimelineItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.location", - // "https://www.googleapis.com/auth/glass.timeline" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "mirror.timeline.attachments.delete": +} type TimelineAttachmentsDeleteCall struct { s *Service @@ -4220,6 +3274,9 @@ type TimelineAttachmentsDeleteCall struct { } // Delete: Deletes an attachment from a timeline item. +// +// - attachmentId: The ID of the attachment. +// - itemId: The ID of the timeline item the attachment belongs to. func (r *TimelineAttachmentsService) Delete(itemId string, attachmentId string) *TimelineAttachmentsDeleteCall { c := &TimelineAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.itemId = itemId @@ -4228,23 +3285,21 @@ func (r *TimelineAttachmentsService) Delete(itemId string, attachmentId string) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TimelineAttachmentsDeleteCall) Fields(s ...googleapi.Field) *TimelineAttachmentsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TimelineAttachmentsDeleteCall) Context(ctx context.Context) *TimelineAttachmentsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TimelineAttachmentsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4253,12 +3308,7 @@ func (c *TimelineAttachmentsDeleteCall) Header() http.Header { } func (c *TimelineAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4273,7 +3323,7 @@ func (c *TimelineAttachmentsDeleteCall) doRequest(alt string) (*http.Response, e "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.timeline.attachments.delete" call. @@ -4285,40 +3335,10 @@ func (c *TimelineAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an attachment from a timeline item.", - // "httpMethod": "DELETE", - // "id": "mirror.timeline.attachments.delete", - // "parameterOrder": [ - // "itemId", - // "attachmentId" - // ], - // "parameters": { - // "attachmentId": { - // "description": "The ID of the attachment.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "itemId": { - // "description": "The ID of the timeline item the attachment belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "timeline/{itemId}/attachments/{attachmentId}", - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - -} - -// method id "mirror.timeline.attachments.get": +} type TimelineAttachmentsGetCall struct { s *Service @@ -4330,8 +3350,11 @@ type TimelineAttachmentsGetCall struct { header_ http.Header } -// Get: Retrieves an attachment on a timeline item by item ID and -// attachment ID. +// Get: Retrieves an attachment on a timeline item by item ID and attachment +// ID. +// +// - attachmentId: The ID of the attachment. +// - itemId: The ID of the timeline item the attachment belongs to. func (r *TimelineAttachmentsService) Get(itemId string, attachmentId string) *TimelineAttachmentsGetCall { c := &TimelineAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.itemId = itemId @@ -4340,33 +3363,29 @@ func (r *TimelineAttachmentsService) Get(itemId string, attachmentId string) *Ti } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TimelineAttachmentsGetCall) Fields(s ...googleapi.Field) *TimelineAttachmentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TimelineAttachmentsGetCall) IfNoneMatch(entityTag string) *TimelineAttachmentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *TimelineAttachmentsGetCall) Context(ctx context.Context) *TimelineAttachmentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TimelineAttachmentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4375,12 +3394,7 @@ func (c *TimelineAttachmentsGetCall) Header() http.Header { } func (c *TimelineAttachmentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4398,7 +3412,7 @@ func (c *TimelineAttachmentsGetCall) doRequest(alt string) (*http.Response, erro "itemId": c.itemId, "attachmentId": c.attachmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -4410,20 +3424,18 @@ func (c *TimelineAttachmentsGetCall) Download(opts ...googleapi.CallOption) (*ht if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "mirror.timeline.attachments.get" call. -// Exactly one of *Attachment or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Attachment.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Attachment.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TimelineAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*Attachment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4431,17 +3443,17 @@ func (c *TimelineAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*Attachme if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Attachment{ ServerResponse: googleapi.ServerResponse{ @@ -4454,41 +3466,7 @@ func (c *TimelineAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*Attachme return nil, err } return ret, nil - // { - // "description": "Retrieves an attachment on a timeline item by item ID and attachment ID.", - // "httpMethod": "GET", - // "id": "mirror.timeline.attachments.get", - // "parameterOrder": [ - // "itemId", - // "attachmentId" - // ], - // "parameters": { - // "attachmentId": { - // "description": "The ID of the attachment.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "itemId": { - // "description": "The ID of the timeline item the attachment belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "timeline/{itemId}/attachments/{attachmentId}", - // "response": { - // "$ref": "Attachment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "mirror.timeline.attachments.insert": +} type TimelineAttachmentsInsertCall struct { s *Service @@ -4500,60 +3478,59 @@ type TimelineAttachmentsInsertCall struct { } // Insert: Adds a new attachment to a timeline item. +// +// - itemId: The ID of the timeline item the attachment belongs to. func (r *TimelineAttachmentsService) Insert(itemId string) *TimelineAttachmentsInsertCall { c := &TimelineAttachmentsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.itemId = itemId return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *TimelineAttachmentsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *TimelineAttachmentsInsertCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *TimelineAttachmentsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TimelineAttachmentsInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *TimelineAttachmentsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TimelineAttachmentsInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TimelineAttachmentsInsertCall) Fields(s ...googleapi.Field) *TimelineAttachmentsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *TimelineAttachmentsInsertCall) Context(ctx context.Context) *TimelineAttachmentsInsertCall { @@ -4561,8 +3538,8 @@ func (c *TimelineAttachmentsInsertCall) Context(ctx context.Context) *TimelineAt return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TimelineAttachmentsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4571,12 +3548,7 @@ func (c *TimelineAttachmentsInsertCall) Header() http.Header { } func (c *TimelineAttachmentsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4601,16 +3573,14 @@ func (c *TimelineAttachmentsInsertCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.timeline.attachments.insert" call. -// Exactly one of *Attachment or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Attachment.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Attachment.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TimelineAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Attachment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4618,17 +3588,17 @@ func (c *TimelineAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Attac if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -4644,7 +3614,7 @@ func (c *TimelineAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Attac } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &Attachment{ @@ -4658,52 +3628,7 @@ func (c *TimelineAttachmentsInsertCall) Do(opts ...googleapi.CallOption) (*Attac return nil, err } return ret, nil - // { - // "description": "Adds a new attachment to a timeline item.", - // "httpMethod": "POST", - // "id": "mirror.timeline.attachments.insert", - // "mediaUpload": { - // "accept": [ - // "audio/*", - // "image/*", - // "video/*" - // ], - // "maxSize": "10MB", - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/mirror/v1/timeline/{itemId}/attachments" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/mirror/v1/timeline/{itemId}/attachments" - // } - // } - // }, - // "parameterOrder": [ - // "itemId" - // ], - // "parameters": { - // "itemId": { - // "description": "The ID of the timeline item the attachment belongs to.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "timeline/{itemId}/attachments", - // "response": { - // "$ref": "Attachment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "mirror.timeline.attachments.list": +} type TimelineAttachmentsListCall struct { s *Service @@ -4715,6 +3640,8 @@ type TimelineAttachmentsListCall struct { } // List: Returns a list of attachments for a timeline item. +// +// - itemId: The ID of the timeline item whose attachments should be listed. func (r *TimelineAttachmentsService) List(itemId string) *TimelineAttachmentsListCall { c := &TimelineAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.itemId = itemId @@ -4722,33 +3649,29 @@ func (r *TimelineAttachmentsService) List(itemId string) *TimelineAttachmentsLis } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TimelineAttachmentsListCall) Fields(s ...googleapi.Field) *TimelineAttachmentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TimelineAttachmentsListCall) IfNoneMatch(entityTag string) *TimelineAttachmentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TimelineAttachmentsListCall) Context(ctx context.Context) *TimelineAttachmentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TimelineAttachmentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4757,12 +3680,7 @@ func (c *TimelineAttachmentsListCall) Header() http.Header { } func (c *TimelineAttachmentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4779,16 +3697,15 @@ func (c *TimelineAttachmentsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "itemId": c.itemId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mirror.timeline.attachments.list" call. -// Exactly one of *AttachmentsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *AttachmentsListResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *TimelineAttachmentsListCall) Do(opts ...googleapi.CallOption) (*AttachmentsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4796,17 +3713,17 @@ func (c *TimelineAttachmentsListCall) Do(opts ...googleapi.CallOption) (*Attachm if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AttachmentsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4819,28 +3736,4 @@ func (c *TimelineAttachmentsListCall) Do(opts ...googleapi.CallOption) (*Attachm return nil, err } return ret, nil - // { - // "description": "Returns a list of attachments for a timeline item.", - // "httpMethod": "GET", - // "id": "mirror.timeline.attachments.list", - // "parameterOrder": [ - // "itemId" - // ], - // "parameters": { - // "itemId": { - // "description": "The ID of the timeline item whose attachments should be listed.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "timeline/{itemId}/attachments", - // "response": { - // "$ref": "AttachmentsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/glass.timeline" - // ] - // } - } diff --git a/ml/v1/ml-gen.go b/ml/v1/ml-gen.go index 3f2a50b5ab3..9b7ea39a852 100644 --- a/ml/v1/ml-gen.go +++ b/ml/v1/ml-gen.go @@ -4022,7 +4022,7 @@ func (c *ProjectsExplainCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.explain" call. @@ -4133,7 +4133,7 @@ func (c *ProjectsGetConfigCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.getConfig" call. @@ -4234,7 +4234,7 @@ func (c *ProjectsPredictCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.predict" call. @@ -4344,7 +4344,7 @@ func (c *ProjectsJobsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.cancel" call. @@ -4446,7 +4446,7 @@ func (c *ProjectsJobsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.create" call. @@ -4554,7 +4554,7 @@ func (c *ProjectsJobsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.get" call. @@ -4682,7 +4682,7 @@ func (c *ProjectsJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.getIamPolicy" call. @@ -4821,7 +4821,7 @@ func (c *ProjectsJobsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.list" call. @@ -4961,7 +4961,7 @@ func (c *ProjectsJobsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.patch" call. @@ -5067,7 +5067,7 @@ func (c *ProjectsJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.setIamPolicy" call. @@ -5176,7 +5176,7 @@ func (c *ProjectsJobsTestIamPermissionsCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.jobs.testIamPermissions" call. @@ -5285,7 +5285,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.get" call. @@ -5412,7 +5412,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.list" call. @@ -5537,7 +5537,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.operations.cancel" call. @@ -5647,7 +5647,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.operations.get" call. @@ -5758,7 +5758,7 @@ func (c *ProjectsLocationsStudiesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.create" call. @@ -5854,7 +5854,7 @@ func (c *ProjectsLocationsStudiesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.delete" call. @@ -5962,7 +5962,7 @@ func (c *ProjectsLocationsStudiesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.get" call. @@ -6071,7 +6071,7 @@ func (c *ProjectsLocationsStudiesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.list" call. @@ -6174,7 +6174,7 @@ func (c *ProjectsLocationsStudiesTrialsAddMeasurementCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.trials.addMeasurement" call. @@ -6278,7 +6278,7 @@ func (c *ProjectsLocationsStudiesTrialsCheckEarlyStoppingStateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.trials.checkEarlyStoppingState" call. @@ -6380,7 +6380,7 @@ func (c *ProjectsLocationsStudiesTrialsCompleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.trials.complete" call. @@ -6482,7 +6482,7 @@ func (c *ProjectsLocationsStudiesTrialsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.trials.create" call. @@ -6578,7 +6578,7 @@ func (c *ProjectsLocationsStudiesTrialsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.trials.delete" call. @@ -6686,7 +6686,7 @@ func (c *ProjectsLocationsStudiesTrialsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.trials.get" call. @@ -6794,7 +6794,7 @@ func (c *ProjectsLocationsStudiesTrialsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.trials.list" call. @@ -6899,7 +6899,7 @@ func (c *ProjectsLocationsStudiesTrialsListOptimalTrialsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.trials.listOptimalTrials" call. @@ -7001,7 +7001,7 @@ func (c *ProjectsLocationsStudiesTrialsStopCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.trials.stop" call. @@ -7106,7 +7106,7 @@ func (c *ProjectsLocationsStudiesTrialsSuggestCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.locations.studies.trials.suggest" call. @@ -7210,7 +7210,7 @@ func (c *ProjectsModelsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.create" call. @@ -7308,7 +7308,7 @@ func (c *ProjectsModelsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.delete" call. @@ -7418,7 +7418,7 @@ func (c *ProjectsModelsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.get" call. @@ -7546,7 +7546,7 @@ func (c *ProjectsModelsGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.getIamPolicy" call. @@ -7682,7 +7682,7 @@ func (c *ProjectsModelsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.list" call. @@ -7819,7 +7819,7 @@ func (c *ProjectsModelsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.patch" call. @@ -7925,7 +7925,7 @@ func (c *ProjectsModelsSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.setIamPolicy" call. @@ -8034,7 +8034,7 @@ func (c *ProjectsModelsTestIamPermissionsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.testIamPermissions" call. @@ -8141,7 +8141,7 @@ func (c *ProjectsModelsVersionsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.create" call. @@ -8241,7 +8241,7 @@ func (c *ProjectsModelsVersionsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.delete" call. @@ -8351,7 +8351,7 @@ func (c *ProjectsModelsVersionsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.get" call. @@ -8488,7 +8488,7 @@ func (c *ProjectsModelsVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.list" call. @@ -8628,7 +8628,7 @@ func (c *ProjectsModelsVersionsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.patch" call. @@ -8736,7 +8736,7 @@ func (c *ProjectsModelsVersionsSetDefaultCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.models.versions.setDefault" call. @@ -8840,7 +8840,7 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.operations.cancel" call. @@ -8950,7 +8950,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.operations.get" call. @@ -9079,7 +9079,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ml.projects.operations.list" call. diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index 6d63f950e23..32d44cc113b 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -3205,7 +3205,7 @@ func (c *LocationsGlobalMetricsScopesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.locations.global.metricsScopes.get" call. @@ -3316,7 +3316,7 @@ func (c *LocationsGlobalMetricsScopesListMetricsScopesByMonitoredProjectCall) do return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.locations.global.metricsScopes.listMetricsScopesByMonitoredProject" call. @@ -3421,7 +3421,7 @@ func (c *LocationsGlobalMetricsScopesProjectsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.locations.global.metricsScopes.projects.create" call. @@ -3520,7 +3520,7 @@ func (c *LocationsGlobalMetricsScopesProjectsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.locations.global.metricsScopes.projects.delete" call. @@ -3629,7 +3629,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.operations.get" call. @@ -3744,7 +3744,7 @@ func (c *ProjectsDashboardsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.dashboards.create" call. @@ -3843,7 +3843,7 @@ func (c *ProjectsDashboardsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.dashboards.delete" call. @@ -3956,7 +3956,7 @@ func (c *ProjectsDashboardsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.dashboards.get" call. @@ -4084,7 +4084,7 @@ func (c *ProjectsDashboardsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.dashboards.list" call. @@ -4217,7 +4217,7 @@ func (c *ProjectsDashboardsPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.dashboards.patch" call. @@ -4325,7 +4325,7 @@ func (c *ProjectsLocationPrometheusApiV1LabelsCall) doRequest(alt string) (*http "name": c.name, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.location.prometheus.api.v1.labels" call. @@ -4434,7 +4434,7 @@ func (c *ProjectsLocationPrometheusApiV1QueryCall) doRequest(alt string) (*http. "name": c.name, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.location.prometheus.api.v1.query" call. @@ -4543,7 +4543,7 @@ func (c *ProjectsLocationPrometheusApiV1QueryExemplarsCall) doRequest(alt string "name": c.name, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.location.prometheus.api.v1.query_exemplars" call. @@ -4652,7 +4652,7 @@ func (c *ProjectsLocationPrometheusApiV1QueryRangeCall) doRequest(alt string) (* "name": c.name, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.location.prometheus.api.v1.query_range" call. @@ -4761,7 +4761,7 @@ func (c *ProjectsLocationPrometheusApiV1SeriesCall) doRequest(alt string) (*http "name": c.name, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.location.prometheus.api.v1.series" call. @@ -4902,7 +4902,7 @@ func (c *ProjectsLocationPrometheusApiV1LabelValuesCall) doRequest(alt string) ( "location": c.location, "label": c.label, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.location.prometheus.api.v1.label.values" call. @@ -5031,7 +5031,7 @@ func (c *ProjectsLocationPrometheusApiV1MetadataListCall) doRequest(alt string) "name": c.name, "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.location.prometheus.api.v1.metadata.list" call. diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index e2d32dd06c0..4b453e18834 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -6334,7 +6334,7 @@ func (c *FoldersTimeSeriesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.folders.timeSeries.list" call. @@ -7102,7 +7102,7 @@ func (c *OrganizationsTimeSeriesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.organizations.timeSeries.list" call. @@ -7237,7 +7237,7 @@ func (c *ProjectsAlertPoliciesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.alertPolicies.create" call. @@ -7337,7 +7337,7 @@ func (c *ProjectsAlertPoliciesDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.alertPolicies.delete" call. @@ -7445,7 +7445,7 @@ func (c *ProjectsAlertPoliciesGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.alertPolicies.get" call. @@ -7593,7 +7593,7 @@ func (c *ProjectsAlertPoliciesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.alertPolicies.list" call. @@ -7747,7 +7747,7 @@ func (c *ProjectsAlertPoliciesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.alertPolicies.patch" call. @@ -7852,7 +7852,7 @@ func (c *ProjectsCollectdTimeSeriesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.collectdTimeSeries.create" call. @@ -7963,7 +7963,7 @@ func (c *ProjectsGroupsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.groups.create" call. @@ -8068,7 +8068,7 @@ func (c *ProjectsGroupsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.groups.delete" call. @@ -8176,7 +8176,7 @@ func (c *ProjectsGroupsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.groups.get" call. @@ -8331,7 +8331,7 @@ func (c *ProjectsGroupsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.groups.list" call. @@ -8466,7 +8466,7 @@ func (c *ProjectsGroupsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.groups.update" call. @@ -8616,7 +8616,7 @@ func (c *ProjectsGroupsMembersListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.groups.members.list" call. @@ -8745,7 +8745,7 @@ func (c *ProjectsMetricDescriptorsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.metricDescriptors.create" call. @@ -8844,7 +8844,7 @@ func (c *ProjectsMetricDescriptorsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.metricDescriptors.delete" call. @@ -8954,7 +8954,7 @@ func (c *ProjectsMetricDescriptorsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.metricDescriptors.get" call. @@ -9094,7 +9094,7 @@ func (c *ProjectsMetricDescriptorsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.metricDescriptors.list" call. @@ -9225,7 +9225,7 @@ func (c *ProjectsMonitoredResourceDescriptorsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.monitoredResourceDescriptors.get" call. @@ -9362,7 +9362,7 @@ func (c *ProjectsMonitoredResourceDescriptorsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.monitoredResourceDescriptors.list" call. @@ -9494,7 +9494,7 @@ func (c *ProjectsNotificationChannelDescriptorsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.notificationChannelDescriptors.get" call. @@ -9625,7 +9625,7 @@ func (c *ProjectsNotificationChannelDescriptorsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.notificationChannelDescriptors.list" call. @@ -9759,7 +9759,7 @@ func (c *ProjectsNotificationChannelsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.notificationChannels.create" call. @@ -9869,7 +9869,7 @@ func (c *ProjectsNotificationChannelsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.notificationChannels.delete" call. @@ -9981,7 +9981,7 @@ func (c *ProjectsNotificationChannelsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.notificationChannels.get" call. @@ -10102,7 +10102,7 @@ func (c *ProjectsNotificationChannelsGetVerificationCodeCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.notificationChannels.getVerificationCode" call. @@ -10252,7 +10252,7 @@ func (c *ProjectsNotificationChannelsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.notificationChannels.list" call. @@ -10387,7 +10387,7 @@ func (c *ProjectsNotificationChannelsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.notificationChannels.patch" call. @@ -10491,7 +10491,7 @@ func (c *ProjectsNotificationChannelsSendVerificationCodeCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.notificationChannels.sendVerificationCode" call. @@ -10594,7 +10594,7 @@ func (c *ProjectsNotificationChannelsVerifyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.notificationChannels.verify" call. @@ -10700,7 +10700,7 @@ func (c *ProjectsSnoozesCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.snoozes.create" call. @@ -10808,7 +10808,7 @@ func (c *ProjectsSnoozesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.snoozes.get" call. @@ -10945,7 +10945,7 @@ func (c *ProjectsSnoozesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.snoozes.list" call. @@ -11088,7 +11088,7 @@ func (c *ProjectsSnoozesPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.snoozes.patch" call. @@ -11196,7 +11196,7 @@ func (c *ProjectsTimeSeriesCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.timeSeries.create" call. @@ -11305,7 +11305,7 @@ func (c *ProjectsTimeSeriesCreateServiceCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.timeSeries.createService" call. @@ -12051,7 +12051,7 @@ func (c *ProjectsTimeSeriesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.timeSeries.list" call. @@ -12179,7 +12179,7 @@ func (c *ProjectsTimeSeriesQueryCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.timeSeries.query" call. @@ -12304,7 +12304,7 @@ func (c *ProjectsUptimeCheckConfigsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.uptimeCheckConfigs.create" call. @@ -12403,7 +12403,7 @@ func (c *ProjectsUptimeCheckConfigsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.uptimeCheckConfigs.delete" call. @@ -12511,7 +12511,7 @@ func (c *ProjectsUptimeCheckConfigsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.uptimeCheckConfigs.get" call. @@ -12650,7 +12650,7 @@ func (c *ProjectsUptimeCheckConfigsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.uptimeCheckConfigs.list" call. @@ -12791,7 +12791,7 @@ func (c *ProjectsUptimeCheckConfigsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.projects.uptimeCheckConfigs.patch" call. @@ -12903,7 +12903,7 @@ func (c *ServicesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.services.create" call. @@ -12999,7 +12999,7 @@ func (c *ServicesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.services.delete" call. @@ -13107,7 +13107,7 @@ func (c *ServicesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.services.get" call. @@ -13254,7 +13254,7 @@ func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.services.list" call. @@ -13385,7 +13385,7 @@ func (c *ServicesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.services.patch" call. @@ -13496,7 +13496,7 @@ func (c *ServicesServiceLevelObjectivesCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.services.serviceLevelObjectives.create" call. @@ -13594,7 +13594,7 @@ func (c *ServicesServiceLevelObjectivesDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.services.serviceLevelObjectives.delete" call. @@ -13727,7 +13727,7 @@ func (c *ServicesServiceLevelObjectivesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.services.serviceLevelObjectives.get" call. @@ -13885,7 +13885,7 @@ func (c *ServicesServiceLevelObjectivesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.services.serviceLevelObjectives.list" call. @@ -14018,7 +14018,7 @@ func (c *ServicesServiceLevelObjectivesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.services.serviceLevelObjectives.patch" call. @@ -14139,7 +14139,7 @@ func (c *UptimeCheckIpsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "monitoring.uptimeCheckIps.list" call. diff --git a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go index 00cecd6f615..de4e9d819f2 100644 --- a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go +++ b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go @@ -759,7 +759,7 @@ func (c *AccountsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.create" call. @@ -867,7 +867,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.get" call. @@ -1006,7 +1006,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.list" call. @@ -1144,7 +1144,7 @@ func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.patch" call. @@ -1249,7 +1249,7 @@ func (c *AccountsAdminsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.admins.create" call. @@ -1345,7 +1345,7 @@ func (c *AccountsAdminsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.admins.delete" call. @@ -1453,7 +1453,7 @@ func (c *AccountsAdminsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.admins.list" call. @@ -1565,7 +1565,7 @@ func (c *AccountsAdminsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.admins.patch" call. @@ -1667,7 +1667,7 @@ func (c *AccountsInvitationsAcceptCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.invitations.accept" call. @@ -1769,7 +1769,7 @@ func (c *AccountsInvitationsDeclineCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.invitations.decline" call. @@ -1884,7 +1884,7 @@ func (c *AccountsInvitationsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.accounts.invitations.list" call. @@ -1989,7 +1989,7 @@ func (c *LocationsTransferCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.locations.transfer" call. @@ -2094,7 +2094,7 @@ func (c *LocationsAdminsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.locations.admins.create" call. @@ -2189,7 +2189,7 @@ func (c *LocationsAdminsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.locations.admins.delete" call. @@ -2297,7 +2297,7 @@ func (c *LocationsAdminsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.locations.admins.list" call. @@ -2410,7 +2410,7 @@ func (c *LocationsAdminsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessaccountmanagement.locations.admins.patch" call. diff --git a/mybusinessbusinesscalls/v1/mybusinessbusinesscalls-gen.go b/mybusinessbusinesscalls/v1/mybusinessbusinesscalls-gen.go index 5366ebebc44..fa1bc8c6b69 100644 --- a/mybusinessbusinesscalls/v1/mybusinessbusinesscalls-gen.go +++ b/mybusinessbusinesscalls/v1/mybusinessbusinesscalls-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/my-business/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // mybusinessbusinesscallsService, err := mybusinessbusinesscalls.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // mybusinessbusinesscallsService, err := mybusinessbusinesscalls.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // mybusinessbusinesscallsService, err := mybusinessbusinesscalls.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package mybusinessbusinesscalls // import "google.golang.org/api/mybusinessbusinesscalls/v1" import ( @@ -77,12 +90,15 @@ const apiId = "mybusinessbusinesscalls:v1" const apiName = "mybusinessbusinesscalls" const apiVersion = "v1" const basePath = "https://mybusinessbusinesscalls.googleapis.com/" +const basePathTemplate = "https://mybusinessbusinesscalls.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://mybusinessbusinesscalls.mtls.googleapis.com/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -151,45 +167,33 @@ type LocationsBusinesscallsinsightsService struct { type AggregateMetrics struct { // AnsweredCallsCount: Total count of answered calls. AnsweredCallsCount int64 `json:"answeredCallsCount,omitempty"` - // EndDate: End date for this metric. EndDate *Date `json:"endDate,omitempty"` - // HourlyMetrics: A list of metrics by hour of day. HourlyMetrics []*HourlyMetrics `json:"hourlyMetrics,omitempty"` - // MissedCallsCount: Total count of missed calls. MissedCallsCount int64 `json:"missedCallsCount,omitempty"` - - // StartDate: Date for this metric. If metric is monthly, only year and - // month are used. + // StartDate: Date for this metric. If metric is monthly, only year and month + // are used. StartDate *Date `json:"startDate,omitempty"` - // WeekdayMetrics: A list of metrics by day of week. WeekdayMetrics []*WeekDayMetrics `json:"weekdayMetrics,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AnsweredCallsCount") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AnsweredCallsCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnsweredCallsCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AnsweredCallsCount") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AggregateMetrics) MarshalJSON() ([]byte, error) { +func (s AggregateMetrics) MarshalJSON() ([]byte, error) { type NoMethod AggregateMetrics - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BusinessCallsInsights: Insights for calls made to a location. @@ -197,207 +201,163 @@ type BusinessCallsInsights struct { // AggregateMetrics: Metric for the time range based on start_date and // end_date. AggregateMetrics *AggregateMetrics `json:"aggregateMetrics,omitempty"` - // MetricType: The metric for which the value applies. // // Possible values: // "METRIC_TYPE_UNSPECIFIED" - Type of metric is unspecified. - // "AGGREGATE_COUNT" - The metrics provided are counts aggregated over - // the input time_range. + // "AGGREGATE_COUNT" - The metrics provided are counts aggregated over the + // input time_range. MetricType string `json:"metricType,omitempty"` - // Name: Required. The resource name of the calls insights. Format: // locations/{location}/businesscallsinsights Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "AggregateMetrics") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregateMetrics") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AggregateMetrics") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BusinessCallsInsights) MarshalJSON() ([]byte, error) { +func (s BusinessCallsInsights) MarshalJSON() ([]byte, error) { type NoMethod BusinessCallsInsights - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BusinessCallsSettings: Business calls settings for a location. type BusinessCallsSettings struct { - // CallsState: Required. The state of this location's enrollment in - // Business calls. + // CallsState: Required. The state of this location's enrollment in Business + // calls. // // Possible values: // "CALLS_STATE_UNSPECIFIED" - Unspecified. // "ENABLED" - Business calls is enabled for the location. // "DISABLED" - Business calls is disabled for the location. CallsState string `json:"callsState,omitempty"` - - // ConsentTime: Input only. Time when the end user provided consent to - // the API user to enable business calls. + // ConsentTime: Input only. Time when the end user provided consent to the API + // user to enable business calls. ConsentTime string `json:"consentTime,omitempty"` - // Name: Required. The resource name of the calls settings. Format: // locations/{location}/businesscallssettings Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CallsState") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CallsState") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CallsState") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BusinessCallsSettings) MarshalJSON() ([]byte, error) { +func (s BusinessCallsSettings) MarshalJSON() ([]byte, error) { type NoMethod BusinessCallsSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Date: Represents a whole or partial calendar date, such as a -// birthday. The time of day and time zone are either specified -// elsewhere or are insignificant. The date is relative to the Gregorian -// Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values. * A month and day, with a -// zero year (for example, an anniversary). * A year on its own, with a -// zero month and a zero day. * A year and month, with a zero day (for -// example, a credit card expiration date). Related types: * -// google.type.TimeOfDay * google.type.DateTime * + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a birthday. The +// time of day and time zone are either specified elsewhere or are +// insignificant. The date is relative to the Gregorian Calendar. This can +// represent one of the following: * A full date, with non-zero year, month, +// and day values. * A month and day, with a zero year (for example, an +// anniversary). * A year on its own, with a zero month and a zero day. * A +// year and month, with a zero day (for example, a credit card expiration +// date). Related types: * google.type.TimeOfDay * google.type.DateTime * // google.protobuf.Timestamp type Date struct { - // Day: Day of a month. Must be from 1 to 31 and valid for the year and - // month, or 0 to specify a year by itself or a year and month where the - // day isn't significant. + // Day: Day of a month. Must be from 1 to 31 and valid for the year and month, + // or 0 to specify a year by itself or a year and month where the day isn't + // significant. Day int64 `json:"day,omitempty"` - - // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year - // without a month and day. + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without + // a month and day. Month int64 `json:"month,omitempty"` - - // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a - // date without a year. + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date + // without a year. Year int64 `json:"year,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Day") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Day") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Day") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Day") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Date) MarshalJSON() ([]byte, error) { +func (s Date) MarshalJSON() ([]byte, error) { type NoMethod Date - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // HourlyMetrics: Metrics for an hour. type HourlyMetrics struct { // Hour: Hour of the day. Allowed values are 0-23. Hour int64 `json:"hour,omitempty"` - // MissedCallsCount: Total count of missed calls for this hour. MissedCallsCount int64 `json:"missedCallsCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Hour") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hour") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Hour") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Hour") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HourlyMetrics) MarshalJSON() ([]byte, error) { +func (s HourlyMetrics) MarshalJSON() ([]byte, error) { type NoMethod HourlyMetrics - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListBusinessCallsInsightsResponse: Response message for // ListBusinessCallsInsights. type ListBusinessCallsInsightsResponse struct { - // BusinessCallsInsights: A collection of business calls insights for - // the location. + // BusinessCallsInsights: A collection of business calls insights for the + // location. BusinessCallsInsights []*BusinessCallsInsights `json:"businessCallsInsights,omitempty"` - - // NextPageToken: A token, which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. Some of the metric_types (e.g, AGGREGATE_COUNT) returns a - // single page. For these metrics, the next_page_token will be empty. + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. Some of + // the metric_types (e.g, AGGREGATE_COUNT) returns a single page. For these + // metrics, the next_page_token will be empty. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "BusinessCallsInsights") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "BusinessCallsInsights") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BusinessCallsInsights") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListBusinessCallsInsightsResponse) MarshalJSON() ([]byte, error) { +func (s ListBusinessCallsInsightsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListBusinessCallsInsightsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WeekDayMetrics: Metrics for a week day. @@ -414,35 +374,26 @@ type WeekDayMetrics struct { // "SATURDAY" - Saturday // "SUNDAY" - Sunday Day string `json:"day,omitempty"` - // MissedCallsCount: Total count of missed calls for this hour. MissedCallsCount int64 `json:"missedCallsCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Day") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Day") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Day") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Day") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WeekDayMetrics) MarshalJSON() ([]byte, error) { +func (s WeekDayMetrics) MarshalJSON() ([]byte, error) { type NoMethod WeekDayMetrics - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "mybusinessbusinesscalls.locations.getBusinesscallssettings": - type LocationsGetBusinesscallssettingsCall struct { s *Service name string @@ -452,8 +403,8 @@ type LocationsGetBusinesscallssettingsCall struct { header_ http.Header } -// GetBusinesscallssettings: Returns the Business calls settings -// resource for the given location. +// GetBusinesscallssettings: Returns the Business calls settings resource for +// the given location. // // - name: The BusinessCallsSettings to get. The `name` field is used to // identify the business call settings to get. Format: @@ -465,33 +416,29 @@ func (r *LocationsService) GetBusinesscallssettings(name string) *LocationsGetBu } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LocationsGetBusinesscallssettingsCall) Fields(s ...googleapi.Field) *LocationsGetBusinesscallssettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LocationsGetBusinesscallssettingsCall) IfNoneMatch(entityTag string) *LocationsGetBusinesscallssettingsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LocationsGetBusinesscallssettingsCall) Context(ctx context.Context) *LocationsGetBusinesscallssettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LocationsGetBusinesscallssettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -500,12 +447,7 @@ func (c *LocationsGetBusinesscallssettingsCall) Header() http.Header { } func (c *LocationsGetBusinesscallssettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -522,16 +464,15 @@ func (c *LocationsGetBusinesscallssettingsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinesscalls.locations.getBusinesscallssettings" call. -// Exactly one of *BusinessCallsSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BusinessCallsSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BusinessCallsSettings.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *LocationsGetBusinesscallssettingsCall) Do(opts ...googleapi.CallOption) (*BusinessCallsSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -562,32 +503,7 @@ func (c *LocationsGetBusinesscallssettingsCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Returns the Business calls settings resource for the given location.", - // "flatPath": "v1/locations/{locationsId}/businesscallssettings", - // "httpMethod": "GET", - // "id": "mybusinessbusinesscalls.locations.getBusinesscallssettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The BusinessCallsSettings to get. The `name` field is used to identify the business call settings to get. Format: locations/{location_id}/businesscallssettings.", - // "location": "path", - // "pattern": "^locations/[^/]+/businesscallssettings$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "BusinessCallsSettings" - // } - // } - -} - -// method id "mybusinessbusinesscalls.locations.updateBusinesscallssettings": +} type LocationsUpdateBusinesscallssettingsCall struct { s *Service @@ -598,8 +514,8 @@ type LocationsUpdateBusinesscallssettingsCall struct { header_ http.Header } -// UpdateBusinesscallssettings: Updates the Business call settings for -// the specified location. +// UpdateBusinesscallssettings: Updates the Business call settings for the +// specified location. // // - name: The resource name of the calls settings. Format: // locations/{location}/businesscallssettings. @@ -610,31 +526,29 @@ func (r *LocationsService) UpdateBusinesscallssettings(name string, businesscall return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// list of fields to update. +// UpdateMask sets the optional parameter "updateMask": Required. The list of +// fields to update. func (c *LocationsUpdateBusinesscallssettingsCall) UpdateMask(updateMask string) *LocationsUpdateBusinesscallssettingsCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LocationsUpdateBusinesscallssettingsCall) Fields(s ...googleapi.Field) *LocationsUpdateBusinesscallssettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LocationsUpdateBusinesscallssettingsCall) Context(ctx context.Context) *LocationsUpdateBusinesscallssettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LocationsUpdateBusinesscallssettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -643,18 +557,12 @@ func (c *LocationsUpdateBusinesscallssettingsCall) Header() http.Header { } func (c *LocationsUpdateBusinesscallssettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.businesscallssettings) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") @@ -667,16 +575,15 @@ func (c *LocationsUpdateBusinesscallssettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinesscalls.locations.updateBusinesscallssettings" call. -// Exactly one of *BusinessCallsSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BusinessCallsSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BusinessCallsSettings.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *LocationsUpdateBusinesscallssettingsCall) Do(opts ...googleapi.CallOption) (*BusinessCallsSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -707,41 +614,7 @@ func (c *LocationsUpdateBusinesscallssettingsCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Updates the Business call settings for the specified location.", - // "flatPath": "v1/locations/{locationsId}/businesscallssettings", - // "httpMethod": "PATCH", - // "id": "mybusinessbusinesscalls.locations.updateBusinesscallssettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the calls settings. Format: locations/{location}/businesscallssettings", - // "location": "path", - // "pattern": "^locations/[^/]+/businesscallssettings$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The list of fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "BusinessCallsSettings" - // }, - // "response": { - // "$ref": "BusinessCallsSettings" - // } - // } - -} - -// method id "mybusinessbusinesscalls.locations.businesscallsinsights.list": +} type LocationsBusinesscallsinsightsListCall struct { s *Service @@ -762,74 +635,69 @@ func (r *LocationsBusinesscallsinsightsService) List(parent string) *LocationsBu return c } -// Filter sets the optional parameter "filter": A filter constraining -// the calls insights to return. The response includes only entries that -// match the filter. If the MetricType is not provided, AGGREGATE_COUNT -// is returned. If no end_date is provided, the last date for which data -// is available is used. If no start_date is provided, we will default -// to the first date for which data is available, which is currently 6 -// months. If start_date is before the date when data is available, data -// is returned starting from the date when it is available. At this time -// we support following filters. 1. start_date="DATE" where date is in -// YYYY-MM-DD format. 2. end_date="DATE" where date is in YYYY-MM-DD -// format. 3. metric_type=XYZ where XYZ is a valid MetricType. 4. -// Conjunctions(AND) of all of the above. e.g., "start_date=2021-08-01 -// AND end_date=2021-08-10 AND metric_type=AGGREGATE_COUNT" The -// AGGREGATE_COUNT metric_type ignores the DD part of the date. +// Filter sets the optional parameter "filter": A filter constraining the calls +// insights to return. The response includes only entries that match the +// filter. If the MetricType is not provided, AGGREGATE_COUNT is returned. If +// no end_date is provided, the last date for which data is available is used. +// If no start_date is provided, we will default to the first date for which +// data is available, which is currently 6 months. If start_date is before the +// date when data is available, data is returned starting from the date when it +// is available. At this time we support following filters. 1. +// start_date="DATE" where date is in YYYY-MM-DD format. 2. end_date="DATE" +// where date is in YYYY-MM-DD format. 3. metric_type=XYZ where XYZ is a valid +// MetricType. 4. Conjunctions(AND) of all of the above. e.g., +// "start_date=2021-08-01 AND end_date=2021-08-10 AND +// metric_type=AGGREGATE_COUNT" The AGGREGATE_COUNT metric_type ignores the DD +// part of the date. func (c *LocationsBusinesscallsinsightsListCall) Filter(filter string) *LocationsBusinesscallsinsightsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of BusinessCallsInsights to return. If unspecified, at most 20 will -// be returned. Some of the metric_types(e.g, AGGREGATE_COUNT) returns a -// single page. For these metrics, the page_size is ignored. +// PageSize sets the optional parameter "pageSize": The maximum number of +// BusinessCallsInsights to return. If unspecified, at most 20 will be +// returned. Some of the metric_types(e.g, AGGREGATE_COUNT) returns a single +// page. For these metrics, the page_size is ignored. func (c *LocationsBusinesscallsinsightsListCall) PageSize(pageSize int64) *LocationsBusinesscallsinsightsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListBusinessCallsInsights` call. Provide -// this to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListBusinessCallsInsights` must match the -// call that provided the page token. Some of the metric_types (e.g, -// AGGREGATE_COUNT) returns a single page. For these metrics, the -// pake_token is ignored. +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListBusinessCallsInsights` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided to +// `ListBusinessCallsInsights` must match the call that provided the page +// token. Some of the metric_types (e.g, AGGREGATE_COUNT) returns a single +// page. For these metrics, the pake_token is ignored. func (c *LocationsBusinesscallsinsightsListCall) PageToken(pageToken string) *LocationsBusinesscallsinsightsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LocationsBusinesscallsinsightsListCall) Fields(s ...googleapi.Field) *LocationsBusinesscallsinsightsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LocationsBusinesscallsinsightsListCall) IfNoneMatch(entityTag string) *LocationsBusinesscallsinsightsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LocationsBusinesscallsinsightsListCall) Context(ctx context.Context) *LocationsBusinesscallsinsightsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LocationsBusinesscallsinsightsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -838,12 +706,7 @@ func (c *LocationsBusinesscallsinsightsListCall) Header() http.Header { } func (c *LocationsBusinesscallsinsightsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -860,17 +723,15 @@ func (c *LocationsBusinesscallsinsightsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinesscalls.locations.businesscallsinsights.list" call. -// Exactly one of *ListBusinessCallsInsightsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListBusinessCallsInsightsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListBusinessCallsInsightsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *LocationsBusinesscallsinsightsListCall) Do(opts ...googleapi.CallOption) (*ListBusinessCallsInsightsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -901,45 +762,6 @@ func (c *LocationsBusinesscallsinsightsListCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Returns insights for Business calls for a location.", - // "flatPath": "v1/locations/{locationsId}/businesscallsinsights", - // "httpMethod": "GET", - // "id": "mybusinessbusinesscalls.locations.businesscallsinsights.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. A filter constraining the calls insights to return. The response includes only entries that match the filter. If the MetricType is not provided, AGGREGATE_COUNT is returned. If no end_date is provided, the last date for which data is available is used. If no start_date is provided, we will default to the first date for which data is available, which is currently 6 months. If start_date is before the date when data is available, data is returned starting from the date when it is available. At this time we support following filters. 1. start_date=\"DATE\" where date is in YYYY-MM-DD format. 2. end_date=\"DATE\" where date is in YYYY-MM-DD format. 3. metric_type=XYZ where XYZ is a valid MetricType. 4. Conjunctions(AND) of all of the above. e.g., \"start_date=2021-08-01 AND end_date=2021-08-10 AND metric_type=AGGREGATE_COUNT\" The AGGREGATE_COUNT metric_type ignores the DD part of the date.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The maximum number of BusinessCallsInsights to return. If unspecified, at most 20 will be returned. Some of the metric_types(e.g, AGGREGATE_COUNT) returns a single page. For these metrics, the page_size is ignored.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A page token, received from a previous `ListBusinessCallsInsights` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBusinessCallsInsights` must match the call that provided the page token. Some of the metric_types (e.g, AGGREGATE_COUNT) returns a single page. For these metrics, the pake_token is ignored.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent location to fetch calls insights for. Format: locations/{location_id}", - // "location": "path", - // "pattern": "^locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/businesscallsinsights", - // "response": { - // "$ref": "ListBusinessCallsInsightsResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -947,7 +769,7 @@ func (c *LocationsBusinesscallsinsightsListCall) Do(opts ...googleapi.CallOption // The provided context supersedes any context provided to the Context method. func (c *LocationsBusinesscallsinsightsListCall) Pages(ctx context.Context, f func(*ListBusinessCallsInsightsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go index 0f9fd576235..cf72865d671 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go @@ -2005,7 +2005,7 @@ func (c *AccountsLocationsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.accounts.locations.create" call. @@ -2161,7 +2161,7 @@ func (c *AccountsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.accounts.locations.list" call. @@ -2339,7 +2339,7 @@ func (c *AttributesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.attributes.list" call. @@ -2505,7 +2505,7 @@ func (c *CategoriesBatchGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.categories.batchGet" call. @@ -2664,7 +2664,7 @@ func (c *CategoriesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.categories.list" call. @@ -2794,7 +2794,7 @@ func (c *ChainsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.chains.get" call. @@ -2910,7 +2910,7 @@ func (c *ChainsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.chains.search" call. @@ -3006,7 +3006,7 @@ func (c *GoogleLocationsSearchCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.googleLocations.search" call. @@ -3105,7 +3105,7 @@ func (c *LocationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.locations.delete" call. @@ -3219,7 +3219,7 @@ func (c *LocationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.locations.get" call. @@ -3327,7 +3327,7 @@ func (c *LocationsGetAttributesCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.locations.getAttributes" call. @@ -3441,7 +3441,7 @@ func (c *LocationsGetGoogleUpdatedCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.locations.getGoogleUpdated" call. @@ -3560,7 +3560,7 @@ func (c *LocationsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.locations.patch" call. @@ -3677,7 +3677,7 @@ func (c *LocationsUpdateAttributesCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.locations.updateAttributes" call. @@ -3785,7 +3785,7 @@ func (c *LocationsAttributesGetGoogleUpdatedCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessbusinessinformation.locations.attributes.getGoogleUpdated" call. diff --git a/mybusinesslodging/v1/mybusinesslodging-gen.go b/mybusinesslodging/v1/mybusinesslodging-gen.go index a208902369b..f72d5681905 100644 --- a/mybusinesslodging/v1/mybusinesslodging-gen.go +++ b/mybusinesslodging/v1/mybusinesslodging-gen.go @@ -5429,7 +5429,7 @@ func (c *LocationsGetLodgingCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinesslodging.locations.getLodging" call. @@ -5540,7 +5540,7 @@ func (c *LocationsUpdateLodgingCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinesslodging.locations.updateLodging" call. @@ -5656,7 +5656,7 @@ func (c *LocationsLodgingGetGoogleUpdatedCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinesslodging.locations.lodging.getGoogleUpdated" call. diff --git a/mybusinessnotifications/v1/mybusinessnotifications-gen.go b/mybusinessnotifications/v1/mybusinessnotifications-gen.go index 76774fcc258..bc90f6de142 100644 --- a/mybusinessnotifications/v1/mybusinessnotifications-gen.go +++ b/mybusinessnotifications/v1/mybusinessnotifications-gen.go @@ -294,7 +294,7 @@ func (c *AccountsGetNotificationSettingCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessnotifications.accounts.getNotificationSetting" call. @@ -410,7 +410,7 @@ func (c *AccountsUpdateNotificationSettingCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessnotifications.accounts.updateNotificationSetting" call. diff --git a/mybusinessplaceactions/v1/mybusinessplaceactions-gen.go b/mybusinessplaceactions/v1/mybusinessplaceactions-gen.go index 383a0756efb..f6ac4b98ce5 100644 --- a/mybusinessplaceactions/v1/mybusinessplaceactions-gen.go +++ b/mybusinessplaceactions/v1/mybusinessplaceactions-gen.go @@ -421,7 +421,7 @@ func (c *LocationsPlaceActionLinksCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessplaceactions.locations.placeActionLinks.create" call. @@ -518,7 +518,7 @@ func (c *LocationsPlaceActionLinksDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessplaceactions.locations.placeActionLinks.delete" call. @@ -625,7 +625,7 @@ func (c *LocationsPlaceActionLinksGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessplaceactions.locations.placeActionLinks.get" call. @@ -757,7 +757,7 @@ func (c *LocationsPlaceActionLinksListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessplaceactions.locations.placeActionLinks.list" call. @@ -896,7 +896,7 @@ func (c *LocationsPlaceActionLinksPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessplaceactions.locations.placeActionLinks.patch" call. @@ -1034,7 +1034,7 @@ func (c *PlaceActionTypeMetadataListCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessplaceactions.placeActionTypeMetadata.list" call. diff --git a/mybusinessqanda/v1/mybusinessqanda-gen.go b/mybusinessqanda/v1/mybusinessqanda-gen.go index 97d0d8d56c3..93f964e8061 100644 --- a/mybusinessqanda/v1/mybusinessqanda-gen.go +++ b/mybusinessqanda/v1/mybusinessqanda-gen.go @@ -452,7 +452,7 @@ func (c *LocationsQuestionsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessqanda.locations.questions.create" call. @@ -547,7 +547,7 @@ func (c *LocationsQuestionsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessqanda.locations.questions.delete" call. @@ -695,7 +695,7 @@ func (c *LocationsQuestionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessqanda.locations.questions.list" call. @@ -826,7 +826,7 @@ func (c *LocationsQuestionsPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessqanda.locations.questions.patch" call. @@ -921,7 +921,7 @@ func (c *LocationsQuestionsAnswersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessqanda.locations.questions.answers.delete" call. @@ -1051,7 +1051,7 @@ func (c *LocationsQuestionsAnswersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessqanda.locations.questions.answers.list" call. @@ -1175,7 +1175,7 @@ func (c *LocationsQuestionsAnswersUpsertCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessqanda.locations.questions.answers.upsert" call. diff --git a/mybusinessverifications/v1/mybusinessverifications-gen.go b/mybusinessverifications/v1/mybusinessverifications-gen.go index 454c088f1eb..76af509b8b6 100644 --- a/mybusinessverifications/v1/mybusinessverifications-gen.go +++ b/mybusinessverifications/v1/mybusinessverifications-gen.go @@ -867,7 +867,7 @@ func (c *LocationsFetchVerificationOptionsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessverifications.locations.fetchVerificationOptions" call. @@ -975,7 +975,7 @@ func (c *LocationsGetVoiceOfMerchantStateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessverifications.locations.getVoiceOfMerchantState" call. @@ -1077,7 +1077,7 @@ func (c *LocationsVerifyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessverifications.locations.verify" call. @@ -1181,7 +1181,7 @@ func (c *LocationsVerificationsCompleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessverifications.locations.verifications.complete" call. @@ -1305,7 +1305,7 @@ func (c *LocationsVerificationsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "mybusinessverifications.locations.verifications.list" call. diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index 9ae9ae3c544..667ed13c681 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -3493,7 +3493,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.get" call. @@ -3624,7 +3624,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.list" call. @@ -3748,7 +3748,7 @@ func (c *ProjectsLocationsGlobalHubsAcceptSpokeCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.acceptSpoke" call. @@ -3875,7 +3875,7 @@ func (c *ProjectsLocationsGlobalHubsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.create" call. @@ -3988,7 +3988,7 @@ func (c *ProjectsLocationsGlobalHubsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.delete" call. @@ -4096,7 +4096,7 @@ func (c *ProjectsLocationsGlobalHubsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.get" call. @@ -4223,7 +4223,7 @@ func (c *ProjectsLocationsGlobalHubsGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.getIamPolicy" call. @@ -4358,7 +4358,7 @@ func (c *ProjectsLocationsGlobalHubsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.list" call. @@ -4550,7 +4550,7 @@ func (c *ProjectsLocationsGlobalHubsListSpokesCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.listSpokes" call. @@ -4703,7 +4703,7 @@ func (c *ProjectsLocationsGlobalHubsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.patch" call. @@ -4808,7 +4808,7 @@ func (c *ProjectsLocationsGlobalHubsRejectSpokeCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.rejectSpoke" call. @@ -4914,7 +4914,7 @@ func (c *ProjectsLocationsGlobalHubsSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.setIamPolicy" call. @@ -5022,7 +5022,7 @@ func (c *ProjectsLocationsGlobalHubsTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.testIamPermissions" call. @@ -5130,7 +5130,7 @@ func (c *ProjectsLocationsGlobalHubsGroupsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.groups.get" call. @@ -5257,7 +5257,7 @@ func (c *ProjectsLocationsGlobalHubsGroupsGetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.groups.getIamPolicy" call. @@ -5391,7 +5391,7 @@ func (c *ProjectsLocationsGlobalHubsGroupsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.groups.list" call. @@ -5543,7 +5543,7 @@ func (c *ProjectsLocationsGlobalHubsGroupsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.groups.patch" call. @@ -5649,7 +5649,7 @@ func (c *ProjectsLocationsGlobalHubsGroupsSetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.groups.setIamPolicy" call. @@ -5757,7 +5757,7 @@ func (c *ProjectsLocationsGlobalHubsGroupsTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.groups.testIamPermissions" call. @@ -5865,7 +5865,7 @@ func (c *ProjectsLocationsGlobalHubsRouteTablesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.routeTables.get" call. @@ -5999,7 +5999,7 @@ func (c *ProjectsLocationsGlobalHubsRouteTablesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.routeTables.list" call. @@ -6128,7 +6128,7 @@ func (c *ProjectsLocationsGlobalHubsRouteTablesRoutesGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.routeTables.routes.get" call. @@ -6262,7 +6262,7 @@ func (c *ProjectsLocationsGlobalHubsRouteTablesRoutesListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.routeTables.routes.list" call. @@ -6408,7 +6408,7 @@ func (c *ProjectsLocationsGlobalPolicyBasedRoutesCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.policyBasedRoutes.create" call. @@ -6520,7 +6520,7 @@ func (c *ProjectsLocationsGlobalPolicyBasedRoutesDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.policyBasedRoutes.delete" call. @@ -6628,7 +6628,7 @@ func (c *ProjectsLocationsGlobalPolicyBasedRoutesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.policyBasedRoutes.get" call. @@ -6756,7 +6756,7 @@ func (c *ProjectsLocationsGlobalPolicyBasedRoutesGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.policyBasedRoutes.getIamPolicy" call. @@ -6890,7 +6890,7 @@ func (c *ProjectsLocationsGlobalPolicyBasedRoutesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.policyBasedRoutes.list" call. @@ -7017,7 +7017,7 @@ func (c *ProjectsLocationsGlobalPolicyBasedRoutesSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.policyBasedRoutes.setIamPolicy" call. @@ -7125,7 +7125,7 @@ func (c *ProjectsLocationsGlobalPolicyBasedRoutesTestIamPermissionsCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.policyBasedRoutes.testIamPermissions" call. @@ -7251,7 +7251,7 @@ func (c *ProjectsLocationsInternalRangesCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.create" call. @@ -7363,7 +7363,7 @@ func (c *ProjectsLocationsInternalRangesDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.delete" call. @@ -7471,7 +7471,7 @@ func (c *ProjectsLocationsInternalRangesGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.get" call. @@ -7605,7 +7605,7 @@ func (c *ProjectsLocationsInternalRangesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.list" call. @@ -7757,7 +7757,7 @@ func (c *ProjectsLocationsInternalRangesPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.patch" call. @@ -7867,7 +7867,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.operations.cancel" call. @@ -7965,7 +7965,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.operations.delete" call. @@ -8074,7 +8074,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.operations.get" call. @@ -8203,7 +8203,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.operations.list" call. @@ -8349,7 +8349,7 @@ func (c *ProjectsLocationsRegionalEndpointsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.regionalEndpoints.create" call. @@ -8461,7 +8461,7 @@ func (c *ProjectsLocationsRegionalEndpointsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.regionalEndpoints.delete" call. @@ -8571,7 +8571,7 @@ func (c *ProjectsLocationsRegionalEndpointsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.regionalEndpoints.get" call. @@ -8707,7 +8707,7 @@ func (c *ProjectsLocationsRegionalEndpointsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.regionalEndpoints.list" call. @@ -8848,7 +8848,7 @@ func (c *ProjectsLocationsServiceClassesDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceClasses.delete" call. @@ -8956,7 +8956,7 @@ func (c *ProjectsLocationsServiceClassesGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceClasses.get" call. @@ -9083,7 +9083,7 @@ func (c *ProjectsLocationsServiceClassesGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceClasses.getIamPolicy" call. @@ -9217,7 +9217,7 @@ func (c *ProjectsLocationsServiceClassesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceClasses.list" call. @@ -9369,7 +9369,7 @@ func (c *ProjectsLocationsServiceClassesPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceClasses.patch" call. @@ -9475,7 +9475,7 @@ func (c *ProjectsLocationsServiceClassesSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceClasses.setIamPolicy" call. @@ -9583,7 +9583,7 @@ func (c *ProjectsLocationsServiceClassesTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceClasses.testIamPermissions" call. @@ -9712,7 +9712,7 @@ func (c *ProjectsLocationsServiceConnectionMapsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionMaps.create" call. @@ -9832,7 +9832,7 @@ func (c *ProjectsLocationsServiceConnectionMapsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionMaps.delete" call. @@ -9940,7 +9940,7 @@ func (c *ProjectsLocationsServiceConnectionMapsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionMaps.get" call. @@ -10068,7 +10068,7 @@ func (c *ProjectsLocationsServiceConnectionMapsGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionMaps.getIamPolicy" call. @@ -10202,7 +10202,7 @@ func (c *ProjectsLocationsServiceConnectionMapsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionMaps.list" call. @@ -10355,7 +10355,7 @@ func (c *ProjectsLocationsServiceConnectionMapsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionMaps.patch" call. @@ -10461,7 +10461,7 @@ func (c *ProjectsLocationsServiceConnectionMapsSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionMaps.setIamPolicy" call. @@ -10569,7 +10569,7 @@ func (c *ProjectsLocationsServiceConnectionMapsTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionMaps.testIamPermissions" call. @@ -10698,7 +10698,7 @@ func (c *ProjectsLocationsServiceConnectionPoliciesCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionPolicies.create" call. @@ -10818,7 +10818,7 @@ func (c *ProjectsLocationsServiceConnectionPoliciesDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionPolicies.delete" call. @@ -10926,7 +10926,7 @@ func (c *ProjectsLocationsServiceConnectionPoliciesGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionPolicies.get" call. @@ -11054,7 +11054,7 @@ func (c *ProjectsLocationsServiceConnectionPoliciesGetIamPolicyCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionPolicies.getIamPolicy" call. @@ -11188,7 +11188,7 @@ func (c *ProjectsLocationsServiceConnectionPoliciesListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionPolicies.list" call. @@ -11341,7 +11341,7 @@ func (c *ProjectsLocationsServiceConnectionPoliciesPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionPolicies.patch" call. @@ -11447,7 +11447,7 @@ func (c *ProjectsLocationsServiceConnectionPoliciesSetIamPolicyCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionPolicies.setIamPolicy" call. @@ -11555,7 +11555,7 @@ func (c *ProjectsLocationsServiceConnectionPoliciesTestIamPermissionsCall) doReq googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionPolicies.testIamPermissions" call. @@ -11685,7 +11685,7 @@ func (c *ProjectsLocationsServiceConnectionTokensCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionTokens.create" call. @@ -11805,7 +11805,7 @@ func (c *ProjectsLocationsServiceConnectionTokensDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionTokens.delete" call. @@ -11913,7 +11913,7 @@ func (c *ProjectsLocationsServiceConnectionTokensGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionTokens.get" call. @@ -12048,7 +12048,7 @@ func (c *ProjectsLocationsServiceConnectionTokensListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.serviceConnectionTokens.list" call. @@ -12195,7 +12195,7 @@ func (c *ProjectsLocationsSpokesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.create" call. @@ -12308,7 +12308,7 @@ func (c *ProjectsLocationsSpokesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.delete" call. @@ -12416,7 +12416,7 @@ func (c *ProjectsLocationsSpokesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.get" call. @@ -12543,7 +12543,7 @@ func (c *ProjectsLocationsSpokesGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.getIamPolicy" call. @@ -12678,7 +12678,7 @@ func (c *ProjectsLocationsSpokesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.list" call. @@ -12830,7 +12830,7 @@ func (c *ProjectsLocationsSpokesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.patch" call. @@ -12936,7 +12936,7 @@ func (c *ProjectsLocationsSpokesSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.setIamPolicy" call. @@ -13044,7 +13044,7 @@ func (c *ProjectsLocationsSpokesTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.testIamPermissions" call. diff --git a/networkconnectivity/v1alpha1/networkconnectivity-api.json b/networkconnectivity/v1alpha1/networkconnectivity-api.json index 3f963fa79d2..1bdd9a742fa 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-api.json +++ b/networkconnectivity/v1alpha1/networkconnectivity-api.json @@ -1116,7 +1116,7 @@ } } }, - "revision": "20240807", + "revision": "20240911", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AuditConfig": { @@ -1383,7 +1383,7 @@ "type": "string" }, "ipCidrRange": { - "description": "IP range that this internal range defines.", + "description": "IP range that this internal range defines. NOTE: IPv6 ranges are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory, i.e. the address range must be specified explicitly.", "type": "string" }, "labels": { @@ -1439,7 +1439,7 @@ "type": "string" }, "prefixLength": { - "description": "An alternative to ip_cidr_range. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.", + "description": "An alternative to ip_cidr_range. Can be set when trying to create an IPv4 reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as well, and both fields must match. In other words, with IPv6 this field only works as a redundant parameter.", "format": "int32", "type": "integer" }, diff --git a/networkconnectivity/v1alpha1/networkconnectivity-gen.go b/networkconnectivity/v1alpha1/networkconnectivity-gen.go index b6aef193027..b4a052f2845 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-gen.go +++ b/networkconnectivity/v1alpha1/networkconnectivity-gen.go @@ -644,7 +644,10 @@ type InternalRange struct { CreateTime string `json:"createTime,omitempty"` // Description: A description of this resource. Description string `json:"description,omitempty"` - // IpCidrRange: IP range that this internal range defines. + // IpCidrRange: IP range that this internal range defines. NOTE: IPv6 ranges + // are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 + // Ranges this field is compulsory, i.e. the address range must be specified + // explicitly. IpCidrRange string `json:"ipCidrRange,omitempty"` // Labels: User-defined labels. Labels map[string]string `json:"labels,omitempty"` @@ -694,10 +697,12 @@ type InternalRange struct { // re-use this range as long as it is NOT_SHARED from the peer VPC, too. Peering string `json:"peering,omitempty"` // PrefixLength: An alternative to ip_cidr_range. Can be set when trying to - // create a reservation that automatically finds a free range of the given - // size. If both ip_cidr_range and prefix_length are set, there is an error if - // the range sizes do not match. Can also be used during updates to change the - // range size. + // create an IPv4 reservation that automatically finds a free range of the + // given size. If both ip_cidr_range and prefix_length are set, there is an + // error if the range sizes do not match. Can also be used during updates to + // change the range size. NOTE: For IPv6 this field only works if ip_cidr_range + // is set as well, and both fields must match. In other words, with IPv6 this + // field only works as a redundant parameter. PrefixLength int64 `json:"prefixLength,omitempty"` // TargetCidrRange: Optional. Can be set to narrow down or pick a different // address space while searching for a free range. If not set, defaults to the @@ -1305,7 +1310,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.get" call. @@ -1436,7 +1441,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.list" call. @@ -1583,7 +1588,7 @@ func (c *ProjectsLocationsGlobalHubsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.create" call. @@ -1696,7 +1701,7 @@ func (c *ProjectsLocationsGlobalHubsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.delete" call. @@ -1804,7 +1809,7 @@ func (c *ProjectsLocationsGlobalHubsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.get" call. @@ -1931,7 +1936,7 @@ func (c *ProjectsLocationsGlobalHubsGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.getIamPolicy" call. @@ -2066,7 +2071,7 @@ func (c *ProjectsLocationsGlobalHubsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.list" call. @@ -2217,7 +2222,7 @@ func (c *ProjectsLocationsGlobalHubsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.patch" call. @@ -2323,7 +2328,7 @@ func (c *ProjectsLocationsGlobalHubsSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.setIamPolicy" call. @@ -2431,7 +2436,7 @@ func (c *ProjectsLocationsGlobalHubsTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.global.hubs.testIamPermissions" call. @@ -2557,7 +2562,7 @@ func (c *ProjectsLocationsInternalRangesCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.create" call. @@ -2669,7 +2674,7 @@ func (c *ProjectsLocationsInternalRangesDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.delete" call. @@ -2777,7 +2782,7 @@ func (c *ProjectsLocationsInternalRangesGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.get" call. @@ -2904,7 +2909,7 @@ func (c *ProjectsLocationsInternalRangesGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.getIamPolicy" call. @@ -3038,7 +3043,7 @@ func (c *ProjectsLocationsInternalRangesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.list" call. @@ -3190,7 +3195,7 @@ func (c *ProjectsLocationsInternalRangesPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.patch" call. @@ -3296,7 +3301,7 @@ func (c *ProjectsLocationsInternalRangesSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.setIamPolicy" call. @@ -3404,7 +3409,7 @@ func (c *ProjectsLocationsInternalRangesTestIamPermissionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.internalRanges.testIamPermissions" call. @@ -3514,7 +3519,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.operations.cancel" call. @@ -3612,7 +3617,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.operations.delete" call. @@ -3721,7 +3726,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.operations.get" call. @@ -3850,7 +3855,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.operations.list" call. @@ -3997,7 +4002,7 @@ func (c *ProjectsLocationsSpokesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.create" call. @@ -4110,7 +4115,7 @@ func (c *ProjectsLocationsSpokesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.delete" call. @@ -4218,7 +4223,7 @@ func (c *ProjectsLocationsSpokesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.get" call. @@ -4345,7 +4350,7 @@ func (c *ProjectsLocationsSpokesGetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.getIamPolicy" call. @@ -4480,7 +4485,7 @@ func (c *ProjectsLocationsSpokesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.list" call. @@ -4630,7 +4635,7 @@ func (c *ProjectsLocationsSpokesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.patch" call. @@ -4736,7 +4741,7 @@ func (c *ProjectsLocationsSpokesSetIamPolicyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.setIamPolicy" call. @@ -4844,7 +4849,7 @@ func (c *ProjectsLocationsSpokesTestIamPermissionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkconnectivity.projects.locations.spokes.testIamPermissions" call. diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index 16161e8aa71..9cf5fc5078e 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -3052,7 +3052,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.get" call. @@ -3183,7 +3183,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.list" call. @@ -3325,7 +3325,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.create" call. @@ -3421,7 +3421,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.delete" call. @@ -3529,7 +3529,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.get" call. @@ -3657,7 +3657,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.getIamPolicy" call. @@ -3801,7 +3801,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.list" call. @@ -3942,7 +3942,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.patch" call. @@ -4052,7 +4052,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.rerun" call. @@ -4157,7 +4157,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.setIamPolicy" call. @@ -4265,7 +4265,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.testIamPermissions" call. @@ -4375,7 +4375,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.operations.cancel" call. @@ -4473,7 +4473,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.operations.delete" call. @@ -4582,7 +4582,7 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.operations.get" call. @@ -4710,7 +4710,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.operations.list" call. diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 4e8872a22bc..982caa90623 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -3209,7 +3209,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.get" call. @@ -3340,7 +3340,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.list" call. @@ -3482,7 +3482,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.create" call. @@ -3578,7 +3578,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.delete" call. @@ -3686,7 +3686,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.get" call. @@ -3814,7 +3814,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.getIamPolicy" call. @@ -3958,7 +3958,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.list" call. @@ -4099,7 +4099,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.patch" call. @@ -4209,7 +4209,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.rerun" call. @@ -4314,7 +4314,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.setIamPolicy" call. @@ -4422,7 +4422,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.connectivityTests.testIamPermissions" call. @@ -4532,7 +4532,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.operations.cancel" call. @@ -4630,7 +4630,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.operations.delete" call. @@ -4739,7 +4739,7 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.operations.get" call. @@ -4867,7 +4867,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.global.operations.list" call. @@ -5004,7 +5004,7 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.create" call. @@ -5101,7 +5101,7 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.delete" call. @@ -5210,7 +5210,7 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.get" call. @@ -5349,7 +5349,7 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.list" call. @@ -5488,7 +5488,7 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.patch" call. diff --git a/networksecurity/v1/networksecurity-gen.go b/networksecurity/v1/networksecurity-gen.go index b4a0efe6632..2bc272ec062 100644 --- a/networksecurity/v1/networksecurity-gen.go +++ b/networksecurity/v1/networksecurity-gen.go @@ -2744,7 +2744,7 @@ func (c *OrganizationsLocationsAddressGroupsAddItemsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.addItems" call. @@ -2846,7 +2846,7 @@ func (c *OrganizationsLocationsAddressGroupsCloneItemsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.cloneItems" call. @@ -2973,7 +2973,7 @@ func (c *OrganizationsLocationsAddressGroupsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.create" call. @@ -3085,7 +3085,7 @@ func (c *OrganizationsLocationsAddressGroupsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.delete" call. @@ -3193,7 +3193,7 @@ func (c *OrganizationsLocationsAddressGroupsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.get" call. @@ -3317,7 +3317,7 @@ func (c *OrganizationsLocationsAddressGroupsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.list" call. @@ -3464,7 +3464,7 @@ func (c *OrganizationsLocationsAddressGroupsListReferencesCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.listReferences" call. @@ -3615,7 +3615,7 @@ func (c *OrganizationsLocationsAddressGroupsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.patch" call. @@ -3717,7 +3717,7 @@ func (c *OrganizationsLocationsAddressGroupsRemoveItemsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.removeItems" call. @@ -3843,7 +3843,7 @@ func (c *OrganizationsLocationsFirewallEndpointsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.firewallEndpoints.create" call. @@ -3954,7 +3954,7 @@ func (c *OrganizationsLocationsFirewallEndpointsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.firewallEndpoints.delete" call. @@ -4061,7 +4061,7 @@ func (c *OrganizationsLocationsFirewallEndpointsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.firewallEndpoints.get" call. @@ -4197,7 +4197,7 @@ func (c *OrganizationsLocationsFirewallEndpointsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.firewallEndpoints.list" call. @@ -4347,7 +4347,7 @@ func (c *OrganizationsLocationsFirewallEndpointsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.firewallEndpoints.patch" call. @@ -4456,7 +4456,7 @@ func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.operations.cancel" call. @@ -4554,7 +4554,7 @@ func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.operations.delete" call. @@ -4663,7 +4663,7 @@ func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.operations.get" call. @@ -4791,7 +4791,7 @@ func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.operations.list" call. @@ -4926,7 +4926,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfileGroups.create" call. @@ -5030,7 +5030,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfileGroups.delete" call. @@ -5139,7 +5139,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfileGroups.get" call. @@ -5265,7 +5265,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfileGroups.list" call. @@ -5401,7 +5401,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfileGroups.patch" call. @@ -5512,7 +5512,7 @@ func (c *OrganizationsLocationsSecurityProfilesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfiles.create" call. @@ -5616,7 +5616,7 @@ func (c *OrganizationsLocationsSecurityProfilesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfiles.delete" call. @@ -5725,7 +5725,7 @@ func (c *OrganizationsLocationsSecurityProfilesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfiles.get" call. @@ -5851,7 +5851,7 @@ func (c *OrganizationsLocationsSecurityProfilesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfiles.list" call. @@ -5987,7 +5987,7 @@ func (c *OrganizationsLocationsSecurityProfilesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfiles.patch" call. @@ -6094,7 +6094,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.get" call. @@ -6225,7 +6225,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.list" call. @@ -6349,7 +6349,7 @@ func (c *ProjectsLocationsAddressGroupsAddItemsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.addItems" call. @@ -6451,7 +6451,7 @@ func (c *ProjectsLocationsAddressGroupsCloneItemsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.cloneItems" call. @@ -6578,7 +6578,7 @@ func (c *ProjectsLocationsAddressGroupsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.create" call. @@ -6690,7 +6690,7 @@ func (c *ProjectsLocationsAddressGroupsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.delete" call. @@ -6798,7 +6798,7 @@ func (c *ProjectsLocationsAddressGroupsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.get" call. @@ -6925,7 +6925,7 @@ func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.getIamPolicy" call. @@ -7050,7 +7050,7 @@ func (c *ProjectsLocationsAddressGroupsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.list" call. @@ -7197,7 +7197,7 @@ func (c *ProjectsLocationsAddressGroupsListReferencesCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.listReferences" call. @@ -7348,7 +7348,7 @@ func (c *ProjectsLocationsAddressGroupsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.patch" call. @@ -7450,7 +7450,7 @@ func (c *ProjectsLocationsAddressGroupsRemoveItemsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.removeItems" call. @@ -7555,7 +7555,7 @@ func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.setIamPolicy" call. @@ -7664,7 +7664,7 @@ func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.testIamPermissions" call. @@ -7777,7 +7777,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.create" call. @@ -7873,7 +7873,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.delete" call. @@ -7981,7 +7981,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.get" call. @@ -8109,7 +8109,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.getIamPolicy" call. @@ -8235,7 +8235,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.list" call. @@ -8370,7 +8370,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.patch" call. @@ -8475,7 +8475,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.setIamPolicy" call. @@ -8584,7 +8584,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.testIamPermissions" call. @@ -8712,7 +8712,7 @@ func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.getIamPolicy" call. @@ -8818,7 +8818,7 @@ func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.setIamPolicy" call. @@ -8927,7 +8927,7 @@ func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.testIamPermissions" call. @@ -9039,7 +9039,7 @@ func (c *ProjectsLocationsClientTlsPoliciesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.create" call. @@ -9135,7 +9135,7 @@ func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.delete" call. @@ -9243,7 +9243,7 @@ func (c *ProjectsLocationsClientTlsPoliciesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.get" call. @@ -9371,7 +9371,7 @@ func (c *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.getIamPolicy" call. @@ -9496,7 +9496,7 @@ func (c *ProjectsLocationsClientTlsPoliciesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.list" call. @@ -9631,7 +9631,7 @@ func (c *ProjectsLocationsClientTlsPoliciesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.patch" call. @@ -9736,7 +9736,7 @@ func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.setIamPolicy" call. @@ -9845,7 +9845,7 @@ func (c *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.testIamPermissions" call. @@ -9973,7 +9973,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.create" call. @@ -10084,7 +10084,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.delete" call. @@ -10191,7 +10191,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.get" call. @@ -10327,7 +10327,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.list" call. @@ -10477,7 +10477,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.patch" call. @@ -10589,7 +10589,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.create" call. @@ -10685,7 +10685,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.delete" call. @@ -10793,7 +10793,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.get" call. @@ -10919,7 +10919,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.list" call. @@ -11056,7 +11056,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.patch" call. @@ -11167,7 +11167,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.create" call. @@ -11265,7 +11265,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.delete" call. @@ -11373,7 +11373,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.get" call. @@ -11500,7 +11500,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.list" call. @@ -11637,7 +11637,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.patch" call. @@ -11746,7 +11746,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.operations.cancel" call. @@ -11844,7 +11844,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.operations.delete" call. @@ -11953,7 +11953,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.operations.get" call. @@ -12081,7 +12081,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.operations.list" call. @@ -12214,7 +12214,7 @@ func (c *ProjectsLocationsServerTlsPoliciesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.create" call. @@ -12310,7 +12310,7 @@ func (c *ProjectsLocationsServerTlsPoliciesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.delete" call. @@ -12418,7 +12418,7 @@ func (c *ProjectsLocationsServerTlsPoliciesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.get" call. @@ -12546,7 +12546,7 @@ func (c *ProjectsLocationsServerTlsPoliciesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.getIamPolicy" call. @@ -12671,7 +12671,7 @@ func (c *ProjectsLocationsServerTlsPoliciesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.list" call. @@ -12806,7 +12806,7 @@ func (c *ProjectsLocationsServerTlsPoliciesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.patch" call. @@ -12911,7 +12911,7 @@ func (c *ProjectsLocationsServerTlsPoliciesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.setIamPolicy" call. @@ -13020,7 +13020,7 @@ func (c *ProjectsLocationsServerTlsPoliciesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.testIamPermissions" call. @@ -13133,7 +13133,7 @@ func (c *ProjectsLocationsTlsInspectionPoliciesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.create" call. @@ -13238,7 +13238,7 @@ func (c *ProjectsLocationsTlsInspectionPoliciesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.delete" call. @@ -13347,7 +13347,7 @@ func (c *ProjectsLocationsTlsInspectionPoliciesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.get" call. @@ -13473,7 +13473,7 @@ func (c *ProjectsLocationsTlsInspectionPoliciesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.list" call. @@ -13610,7 +13610,7 @@ func (c *ProjectsLocationsTlsInspectionPoliciesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.patch" call. @@ -13721,7 +13721,7 @@ func (c *ProjectsLocationsUrlListsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.urlLists.create" call. @@ -13817,7 +13817,7 @@ func (c *ProjectsLocationsUrlListsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.urlLists.delete" call. @@ -13925,7 +13925,7 @@ func (c *ProjectsLocationsUrlListsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.urlLists.get" call. @@ -14049,7 +14049,7 @@ func (c *ProjectsLocationsUrlListsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.urlLists.list" call. @@ -14184,7 +14184,7 @@ func (c *ProjectsLocationsUrlListsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.urlLists.patch" call. diff --git a/networksecurity/v1beta1/networksecurity-gen.go b/networksecurity/v1beta1/networksecurity-gen.go index 1d18176b2fa..3510946e562 100644 --- a/networksecurity/v1beta1/networksecurity-gen.go +++ b/networksecurity/v1beta1/networksecurity-gen.go @@ -3707,7 +3707,7 @@ func (c *OrganizationsLocationsAddressGroupsAddItemsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.addItems" call. @@ -3809,7 +3809,7 @@ func (c *OrganizationsLocationsAddressGroupsCloneItemsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.cloneItems" call. @@ -3936,7 +3936,7 @@ func (c *OrganizationsLocationsAddressGroupsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.create" call. @@ -4048,7 +4048,7 @@ func (c *OrganizationsLocationsAddressGroupsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.delete" call. @@ -4156,7 +4156,7 @@ func (c *OrganizationsLocationsAddressGroupsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.get" call. @@ -4280,7 +4280,7 @@ func (c *OrganizationsLocationsAddressGroupsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.list" call. @@ -4427,7 +4427,7 @@ func (c *OrganizationsLocationsAddressGroupsListReferencesCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.listReferences" call. @@ -4578,7 +4578,7 @@ func (c *OrganizationsLocationsAddressGroupsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.patch" call. @@ -4680,7 +4680,7 @@ func (c *OrganizationsLocationsAddressGroupsRemoveItemsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.addressGroups.removeItems" call. @@ -4806,7 +4806,7 @@ func (c *OrganizationsLocationsFirewallEndpointsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.firewallEndpoints.create" call. @@ -4917,7 +4917,7 @@ func (c *OrganizationsLocationsFirewallEndpointsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.firewallEndpoints.delete" call. @@ -5024,7 +5024,7 @@ func (c *OrganizationsLocationsFirewallEndpointsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.firewallEndpoints.get" call. @@ -5160,7 +5160,7 @@ func (c *OrganizationsLocationsFirewallEndpointsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.firewallEndpoints.list" call. @@ -5310,7 +5310,7 @@ func (c *OrganizationsLocationsFirewallEndpointsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.firewallEndpoints.patch" call. @@ -5419,7 +5419,7 @@ func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.operations.cancel" call. @@ -5517,7 +5517,7 @@ func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.operations.delete" call. @@ -5626,7 +5626,7 @@ func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.operations.get" call. @@ -5754,7 +5754,7 @@ func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.operations.list" call. @@ -5889,7 +5889,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfileGroups.create" call. @@ -5993,7 +5993,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfileGroups.delete" call. @@ -6102,7 +6102,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfileGroups.get" call. @@ -6228,7 +6228,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfileGroups.list" call. @@ -6364,7 +6364,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfileGroups.patch" call. @@ -6475,7 +6475,7 @@ func (c *OrganizationsLocationsSecurityProfilesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfiles.create" call. @@ -6579,7 +6579,7 @@ func (c *OrganizationsLocationsSecurityProfilesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfiles.delete" call. @@ -6688,7 +6688,7 @@ func (c *OrganizationsLocationsSecurityProfilesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfiles.get" call. @@ -6814,7 +6814,7 @@ func (c *OrganizationsLocationsSecurityProfilesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfiles.list" call. @@ -6950,7 +6950,7 @@ func (c *OrganizationsLocationsSecurityProfilesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.organizations.locations.securityProfiles.patch" call. @@ -7057,7 +7057,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.get" call. @@ -7188,7 +7188,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.list" call. @@ -7312,7 +7312,7 @@ func (c *ProjectsLocationsAddressGroupsAddItemsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.addItems" call. @@ -7414,7 +7414,7 @@ func (c *ProjectsLocationsAddressGroupsCloneItemsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.cloneItems" call. @@ -7541,7 +7541,7 @@ func (c *ProjectsLocationsAddressGroupsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.create" call. @@ -7653,7 +7653,7 @@ func (c *ProjectsLocationsAddressGroupsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.delete" call. @@ -7761,7 +7761,7 @@ func (c *ProjectsLocationsAddressGroupsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.get" call. @@ -7888,7 +7888,7 @@ func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.getIamPolicy" call. @@ -8013,7 +8013,7 @@ func (c *ProjectsLocationsAddressGroupsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.list" call. @@ -8160,7 +8160,7 @@ func (c *ProjectsLocationsAddressGroupsListReferencesCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.listReferences" call. @@ -8311,7 +8311,7 @@ func (c *ProjectsLocationsAddressGroupsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.patch" call. @@ -8413,7 +8413,7 @@ func (c *ProjectsLocationsAddressGroupsRemoveItemsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "addressGroup": c.addressGroup, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.removeItems" call. @@ -8518,7 +8518,7 @@ func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.setIamPolicy" call. @@ -8627,7 +8627,7 @@ func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.addressGroups.testIamPermissions" call. @@ -8740,7 +8740,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.create" call. @@ -8836,7 +8836,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.delete" call. @@ -8944,7 +8944,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.get" call. @@ -9072,7 +9072,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.getIamPolicy" call. @@ -9198,7 +9198,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.list" call. @@ -9333,7 +9333,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.patch" call. @@ -9438,7 +9438,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.setIamPolicy" call. @@ -9547,7 +9547,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authorizationPolicies.testIamPermissions" call. @@ -9673,7 +9673,7 @@ func (c *ProjectsLocationsAuthzPoliciesCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.create" call. @@ -9786,7 +9786,7 @@ func (c *ProjectsLocationsAuthzPoliciesDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.delete" call. @@ -9894,7 +9894,7 @@ func (c *ProjectsLocationsAuthzPoliciesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.get" call. @@ -10021,7 +10021,7 @@ func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.getIamPolicy" call. @@ -10159,7 +10159,7 @@ func (c *ProjectsLocationsAuthzPoliciesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.list" call. @@ -10310,7 +10310,7 @@ func (c *ProjectsLocationsAuthzPoliciesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.patch" call. @@ -10415,7 +10415,7 @@ func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.setIamPolicy" call. @@ -10524,7 +10524,7 @@ func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.authzPolicies.testIamPermissions" call. @@ -10636,7 +10636,7 @@ func (c *ProjectsLocationsClientTlsPoliciesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.create" call. @@ -10732,7 +10732,7 @@ func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.delete" call. @@ -10840,7 +10840,7 @@ func (c *ProjectsLocationsClientTlsPoliciesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.get" call. @@ -10968,7 +10968,7 @@ func (c *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.getIamPolicy" call. @@ -11093,7 +11093,7 @@ func (c *ProjectsLocationsClientTlsPoliciesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.list" call. @@ -11228,7 +11228,7 @@ func (c *ProjectsLocationsClientTlsPoliciesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.patch" call. @@ -11333,7 +11333,7 @@ func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.setIamPolicy" call. @@ -11442,7 +11442,7 @@ func (c *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.clientTlsPolicies.testIamPermissions" call. @@ -11570,7 +11570,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.create" call. @@ -11681,7 +11681,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.delete" call. @@ -11788,7 +11788,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.get" call. @@ -11924,7 +11924,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.list" call. @@ -12074,7 +12074,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.patch" call. @@ -12186,7 +12186,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.create" call. @@ -12282,7 +12282,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.delete" call. @@ -12390,7 +12390,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.get" call. @@ -12516,7 +12516,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.list" call. @@ -12653,7 +12653,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.patch" call. @@ -12764,7 +12764,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.create" call. @@ -12862,7 +12862,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.delete" call. @@ -12970,7 +12970,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.get" call. @@ -13097,7 +13097,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.list" call. @@ -13234,7 +13234,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.patch" call. @@ -13361,7 +13361,7 @@ func (c *ProjectsLocationsMirroringDeploymentGroupsCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringDeploymentGroups.create" call. @@ -13472,7 +13472,7 @@ func (c *ProjectsLocationsMirroringDeploymentGroupsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringDeploymentGroups.delete" call. @@ -13579,7 +13579,7 @@ func (c *ProjectsLocationsMirroringDeploymentGroupsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringDeploymentGroups.get" call. @@ -13715,7 +13715,7 @@ func (c *ProjectsLocationsMirroringDeploymentGroupsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringDeploymentGroups.list" call. @@ -13865,7 +13865,7 @@ func (c *ProjectsLocationsMirroringDeploymentGroupsPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringDeploymentGroups.patch" call. @@ -13991,7 +13991,7 @@ func (c *ProjectsLocationsMirroringDeploymentsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringDeployments.create" call. @@ -14102,7 +14102,7 @@ func (c *ProjectsLocationsMirroringDeploymentsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringDeployments.delete" call. @@ -14209,7 +14209,7 @@ func (c *ProjectsLocationsMirroringDeploymentsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringDeployments.get" call. @@ -14345,7 +14345,7 @@ func (c *ProjectsLocationsMirroringDeploymentsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringDeployments.list" call. @@ -14495,7 +14495,7 @@ func (c *ProjectsLocationsMirroringDeploymentsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringDeployments.patch" call. @@ -14623,7 +14623,7 @@ func (c *ProjectsLocationsMirroringEndpointGroupAssociationsCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringEndpointGroupAssociations.create" call. @@ -14734,7 +14734,7 @@ func (c *ProjectsLocationsMirroringEndpointGroupAssociationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringEndpointGroupAssociations.delete" call. @@ -14841,7 +14841,7 @@ func (c *ProjectsLocationsMirroringEndpointGroupAssociationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringEndpointGroupAssociations.get" call. @@ -14978,7 +14978,7 @@ func (c *ProjectsLocationsMirroringEndpointGroupAssociationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringEndpointGroupAssociations.list" call. @@ -15129,7 +15129,7 @@ func (c *ProjectsLocationsMirroringEndpointGroupAssociationsPatchCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringEndpointGroupAssociations.patch" call. @@ -15256,7 +15256,7 @@ func (c *ProjectsLocationsMirroringEndpointGroupsCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringEndpointGroups.create" call. @@ -15367,7 +15367,7 @@ func (c *ProjectsLocationsMirroringEndpointGroupsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringEndpointGroups.delete" call. @@ -15474,7 +15474,7 @@ func (c *ProjectsLocationsMirroringEndpointGroupsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringEndpointGroups.get" call. @@ -15610,7 +15610,7 @@ func (c *ProjectsLocationsMirroringEndpointGroupsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringEndpointGroups.list" call. @@ -15760,7 +15760,7 @@ func (c *ProjectsLocationsMirroringEndpointGroupsPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.mirroringEndpointGroups.patch" call. @@ -15869,7 +15869,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.operations.cancel" call. @@ -15967,7 +15967,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.operations.delete" call. @@ -16076,7 +16076,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.operations.get" call. @@ -16204,7 +16204,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.operations.list" call. @@ -16337,7 +16337,7 @@ func (c *ProjectsLocationsServerTlsPoliciesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.create" call. @@ -16433,7 +16433,7 @@ func (c *ProjectsLocationsServerTlsPoliciesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.delete" call. @@ -16541,7 +16541,7 @@ func (c *ProjectsLocationsServerTlsPoliciesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.get" call. @@ -16669,7 +16669,7 @@ func (c *ProjectsLocationsServerTlsPoliciesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.getIamPolicy" call. @@ -16794,7 +16794,7 @@ func (c *ProjectsLocationsServerTlsPoliciesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.list" call. @@ -16929,7 +16929,7 @@ func (c *ProjectsLocationsServerTlsPoliciesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.patch" call. @@ -17034,7 +17034,7 @@ func (c *ProjectsLocationsServerTlsPoliciesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.setIamPolicy" call. @@ -17143,7 +17143,7 @@ func (c *ProjectsLocationsServerTlsPoliciesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.serverTlsPolicies.testIamPermissions" call. @@ -17256,7 +17256,7 @@ func (c *ProjectsLocationsTlsInspectionPoliciesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.create" call. @@ -17361,7 +17361,7 @@ func (c *ProjectsLocationsTlsInspectionPoliciesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.delete" call. @@ -17470,7 +17470,7 @@ func (c *ProjectsLocationsTlsInspectionPoliciesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.get" call. @@ -17596,7 +17596,7 @@ func (c *ProjectsLocationsTlsInspectionPoliciesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.list" call. @@ -17733,7 +17733,7 @@ func (c *ProjectsLocationsTlsInspectionPoliciesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.patch" call. @@ -17844,7 +17844,7 @@ func (c *ProjectsLocationsUrlListsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.urlLists.create" call. @@ -17940,7 +17940,7 @@ func (c *ProjectsLocationsUrlListsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.urlLists.delete" call. @@ -18048,7 +18048,7 @@ func (c *ProjectsLocationsUrlListsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.urlLists.get" call. @@ -18172,7 +18172,7 @@ func (c *ProjectsLocationsUrlListsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.urlLists.list" call. @@ -18307,7 +18307,7 @@ func (c *ProjectsLocationsUrlListsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networksecurity.projects.locations.urlLists.patch" call. diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index dc86537ce0c..bcb801fc860 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -3741,7 +3741,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.get" call. @@ -3872,7 +3872,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.list" call. @@ -4021,7 +4021,7 @@ func (c *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.edgeCacheKeysets.getIamPolicy" call. @@ -4126,7 +4126,7 @@ func (c *ProjectsLocationsEdgeCacheKeysetsSetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.edgeCacheKeysets.setIamPolicy" call. @@ -4234,7 +4234,7 @@ func (c *ProjectsLocationsEdgeCacheKeysetsTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.edgeCacheKeysets.testIamPermissions" call. @@ -4362,7 +4362,7 @@ func (c *ProjectsLocationsEdgeCacheOriginsGetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.edgeCacheOrigins.getIamPolicy" call. @@ -4467,7 +4467,7 @@ func (c *ProjectsLocationsEdgeCacheOriginsSetIamPolicyCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.edgeCacheOrigins.setIamPolicy" call. @@ -4575,7 +4575,7 @@ func (c *ProjectsLocationsEdgeCacheOriginsTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.edgeCacheOrigins.testIamPermissions" call. @@ -4703,7 +4703,7 @@ func (c *ProjectsLocationsEdgeCacheServicesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.edgeCacheServices.getIamPolicy" call. @@ -4808,7 +4808,7 @@ func (c *ProjectsLocationsEdgeCacheServicesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.edgeCacheServices.setIamPolicy" call. @@ -4916,7 +4916,7 @@ func (c *ProjectsLocationsEdgeCacheServicesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.edgeCacheServices.testIamPermissions" call. @@ -5026,7 +5026,7 @@ func (c *ProjectsLocationsEndpointPoliciesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.endpointPolicies.create" call. @@ -5122,7 +5122,7 @@ func (c *ProjectsLocationsEndpointPoliciesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.endpointPolicies.delete" call. @@ -5230,7 +5230,7 @@ func (c *ProjectsLocationsEndpointPoliciesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.endpointPolicies.get" call. @@ -5354,7 +5354,7 @@ func (c *ProjectsLocationsEndpointPoliciesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.endpointPolicies.list" call. @@ -5489,7 +5489,7 @@ func (c *ProjectsLocationsEndpointPoliciesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.endpointPolicies.patch" call. @@ -5598,7 +5598,7 @@ func (c *ProjectsLocationsGatewaysCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.gateways.create" call. @@ -5694,7 +5694,7 @@ func (c *ProjectsLocationsGatewaysDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.gateways.delete" call. @@ -5802,7 +5802,7 @@ func (c *ProjectsLocationsGatewaysGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.gateways.get" call. @@ -5926,7 +5926,7 @@ func (c *ProjectsLocationsGatewaysListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.gateways.list" call. @@ -6060,7 +6060,7 @@ func (c *ProjectsLocationsGatewaysPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.gateways.patch" call. @@ -6169,7 +6169,7 @@ func (c *ProjectsLocationsGrpcRoutesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.grpcRoutes.create" call. @@ -6265,7 +6265,7 @@ func (c *ProjectsLocationsGrpcRoutesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.grpcRoutes.delete" call. @@ -6373,7 +6373,7 @@ func (c *ProjectsLocationsGrpcRoutesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.grpcRoutes.get" call. @@ -6497,7 +6497,7 @@ func (c *ProjectsLocationsGrpcRoutesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.grpcRoutes.list" call. @@ -6632,7 +6632,7 @@ func (c *ProjectsLocationsGrpcRoutesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.grpcRoutes.patch" call. @@ -6741,7 +6741,7 @@ func (c *ProjectsLocationsHttpRoutesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.httpRoutes.create" call. @@ -6837,7 +6837,7 @@ func (c *ProjectsLocationsHttpRoutesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.httpRoutes.delete" call. @@ -6945,7 +6945,7 @@ func (c *ProjectsLocationsHttpRoutesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.httpRoutes.get" call. @@ -7069,7 +7069,7 @@ func (c *ProjectsLocationsHttpRoutesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.httpRoutes.list" call. @@ -7204,7 +7204,7 @@ func (c *ProjectsLocationsHttpRoutesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.httpRoutes.patch" call. @@ -7330,7 +7330,7 @@ func (c *ProjectsLocationsLbRouteExtensionsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbRouteExtensions.create" call. @@ -7444,7 +7444,7 @@ func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbRouteExtensions.delete" call. @@ -7554,7 +7554,7 @@ func (c *ProjectsLocationsLbRouteExtensionsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbRouteExtensions.get" call. @@ -7692,7 +7692,7 @@ func (c *ProjectsLocationsLbRouteExtensionsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbRouteExtensions.list" call. @@ -7844,7 +7844,7 @@ func (c *ProjectsLocationsLbRouteExtensionsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbRouteExtensions.patch" call. @@ -7971,7 +7971,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbTrafficExtensions.create" call. @@ -8085,7 +8085,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbTrafficExtensions.delete" call. @@ -8195,7 +8195,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbTrafficExtensions.get" call. @@ -8333,7 +8333,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbTrafficExtensions.list" call. @@ -8486,7 +8486,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbTrafficExtensions.patch" call. @@ -8595,7 +8595,7 @@ func (c *ProjectsLocationsMeshesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.meshes.create" call. @@ -8691,7 +8691,7 @@ func (c *ProjectsLocationsMeshesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.meshes.delete" call. @@ -8799,7 +8799,7 @@ func (c *ProjectsLocationsMeshesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.meshes.get" call. @@ -8922,7 +8922,7 @@ func (c *ProjectsLocationsMeshesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.meshes.list" call. @@ -9056,7 +9056,7 @@ func (c *ProjectsLocationsMeshesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.meshes.patch" call. @@ -9165,7 +9165,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.operations.cancel" call. @@ -9263,7 +9263,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.operations.delete" call. @@ -9372,7 +9372,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.operations.get" call. @@ -9500,7 +9500,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.operations.list" call. @@ -9631,7 +9631,7 @@ func (c *ProjectsLocationsServiceBindingsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceBindings.create" call. @@ -9727,7 +9727,7 @@ func (c *ProjectsLocationsServiceBindingsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceBindings.delete" call. @@ -9835,7 +9835,7 @@ func (c *ProjectsLocationsServiceBindingsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceBindings.get" call. @@ -9959,7 +9959,7 @@ func (c *ProjectsLocationsServiceBindingsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceBindings.list" call. @@ -10093,7 +10093,7 @@ func (c *ProjectsLocationsServiceLbPoliciesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.create" call. @@ -10189,7 +10189,7 @@ func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.delete" call. @@ -10297,7 +10297,7 @@ func (c *ProjectsLocationsServiceLbPoliciesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.get" call. @@ -10425,7 +10425,7 @@ func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.getIamPolicy" call. @@ -10550,7 +10550,7 @@ func (c *ProjectsLocationsServiceLbPoliciesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.list" call. @@ -10686,7 +10686,7 @@ func (c *ProjectsLocationsServiceLbPoliciesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.patch" call. @@ -10791,7 +10791,7 @@ func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.setIamPolicy" call. @@ -10899,7 +10899,7 @@ func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.testIamPermissions" call. @@ -11009,7 +11009,7 @@ func (c *ProjectsLocationsTcpRoutesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tcpRoutes.create" call. @@ -11105,7 +11105,7 @@ func (c *ProjectsLocationsTcpRoutesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tcpRoutes.delete" call. @@ -11213,7 +11213,7 @@ func (c *ProjectsLocationsTcpRoutesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tcpRoutes.get" call. @@ -11337,7 +11337,7 @@ func (c *ProjectsLocationsTcpRoutesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tcpRoutes.list" call. @@ -11471,7 +11471,7 @@ func (c *ProjectsLocationsTcpRoutesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tcpRoutes.patch" call. @@ -11580,7 +11580,7 @@ func (c *ProjectsLocationsTlsRoutesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tlsRoutes.create" call. @@ -11676,7 +11676,7 @@ func (c *ProjectsLocationsTlsRoutesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tlsRoutes.delete" call. @@ -11784,7 +11784,7 @@ func (c *ProjectsLocationsTlsRoutesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tlsRoutes.get" call. @@ -11908,7 +11908,7 @@ func (c *ProjectsLocationsTlsRoutesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tlsRoutes.list" call. @@ -12042,7 +12042,7 @@ func (c *ProjectsLocationsTlsRoutesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tlsRoutes.patch" call. diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index d7cbe33fe10..a73b20684dd 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -3844,7 +3844,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.get" call. @@ -3975,7 +3975,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.list" call. @@ -4123,7 +4123,7 @@ func (c *ProjectsLocationsAuthzExtensionsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.authzExtensions.create" call. @@ -4237,7 +4237,7 @@ func (c *ProjectsLocationsAuthzExtensionsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.authzExtensions.delete" call. @@ -4347,7 +4347,7 @@ func (c *ProjectsLocationsAuthzExtensionsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.authzExtensions.get" call. @@ -4484,7 +4484,7 @@ func (c *ProjectsLocationsAuthzExtensionsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.authzExtensions.list" call. @@ -4636,7 +4636,7 @@ func (c *ProjectsLocationsAuthzExtensionsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.authzExtensions.patch" call. @@ -4745,7 +4745,7 @@ func (c *ProjectsLocationsEndpointPoliciesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.endpointPolicies.create" call. @@ -4841,7 +4841,7 @@ func (c *ProjectsLocationsEndpointPoliciesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.endpointPolicies.delete" call. @@ -4949,7 +4949,7 @@ func (c *ProjectsLocationsEndpointPoliciesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.endpointPolicies.get" call. @@ -5073,7 +5073,7 @@ func (c *ProjectsLocationsEndpointPoliciesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.endpointPolicies.list" call. @@ -5208,7 +5208,7 @@ func (c *ProjectsLocationsEndpointPoliciesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.endpointPolicies.patch" call. @@ -5317,7 +5317,7 @@ func (c *ProjectsLocationsGatewaysCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.gateways.create" call. @@ -5413,7 +5413,7 @@ func (c *ProjectsLocationsGatewaysDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.gateways.delete" call. @@ -5521,7 +5521,7 @@ func (c *ProjectsLocationsGatewaysGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.gateways.get" call. @@ -5645,7 +5645,7 @@ func (c *ProjectsLocationsGatewaysListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.gateways.list" call. @@ -5779,7 +5779,7 @@ func (c *ProjectsLocationsGatewaysPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.gateways.patch" call. @@ -5888,7 +5888,7 @@ func (c *ProjectsLocationsGrpcRoutesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.grpcRoutes.create" call. @@ -5984,7 +5984,7 @@ func (c *ProjectsLocationsGrpcRoutesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.grpcRoutes.delete" call. @@ -6092,7 +6092,7 @@ func (c *ProjectsLocationsGrpcRoutesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.grpcRoutes.get" call. @@ -6216,7 +6216,7 @@ func (c *ProjectsLocationsGrpcRoutesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.grpcRoutes.list" call. @@ -6351,7 +6351,7 @@ func (c *ProjectsLocationsGrpcRoutesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.grpcRoutes.patch" call. @@ -6460,7 +6460,7 @@ func (c *ProjectsLocationsHttpRoutesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.httpRoutes.create" call. @@ -6556,7 +6556,7 @@ func (c *ProjectsLocationsHttpRoutesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.httpRoutes.delete" call. @@ -6664,7 +6664,7 @@ func (c *ProjectsLocationsHttpRoutesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.httpRoutes.get" call. @@ -6788,7 +6788,7 @@ func (c *ProjectsLocationsHttpRoutesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.httpRoutes.list" call. @@ -6923,7 +6923,7 @@ func (c *ProjectsLocationsHttpRoutesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.httpRoutes.patch" call. @@ -7049,7 +7049,7 @@ func (c *ProjectsLocationsLbRouteExtensionsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbRouteExtensions.create" call. @@ -7163,7 +7163,7 @@ func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbRouteExtensions.delete" call. @@ -7273,7 +7273,7 @@ func (c *ProjectsLocationsLbRouteExtensionsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbRouteExtensions.get" call. @@ -7411,7 +7411,7 @@ func (c *ProjectsLocationsLbRouteExtensionsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbRouteExtensions.list" call. @@ -7563,7 +7563,7 @@ func (c *ProjectsLocationsLbRouteExtensionsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbRouteExtensions.patch" call. @@ -7690,7 +7690,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbTrafficExtensions.create" call. @@ -7804,7 +7804,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbTrafficExtensions.delete" call. @@ -7914,7 +7914,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbTrafficExtensions.get" call. @@ -8052,7 +8052,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbTrafficExtensions.list" call. @@ -8205,7 +8205,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.lbTrafficExtensions.patch" call. @@ -8314,7 +8314,7 @@ func (c *ProjectsLocationsMeshesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.meshes.create" call. @@ -8410,7 +8410,7 @@ func (c *ProjectsLocationsMeshesDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.meshes.delete" call. @@ -8518,7 +8518,7 @@ func (c *ProjectsLocationsMeshesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.meshes.get" call. @@ -8641,7 +8641,7 @@ func (c *ProjectsLocationsMeshesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.meshes.list" call. @@ -8775,7 +8775,7 @@ func (c *ProjectsLocationsMeshesPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.meshes.patch" call. @@ -8884,7 +8884,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.operations.cancel" call. @@ -8982,7 +8982,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.operations.delete" call. @@ -9091,7 +9091,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.operations.get" call. @@ -9219,7 +9219,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.operations.list" call. @@ -9350,7 +9350,7 @@ func (c *ProjectsLocationsServiceBindingsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceBindings.create" call. @@ -9446,7 +9446,7 @@ func (c *ProjectsLocationsServiceBindingsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceBindings.delete" call. @@ -9554,7 +9554,7 @@ func (c *ProjectsLocationsServiceBindingsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceBindings.get" call. @@ -9678,7 +9678,7 @@ func (c *ProjectsLocationsServiceBindingsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceBindings.list" call. @@ -9812,7 +9812,7 @@ func (c *ProjectsLocationsServiceLbPoliciesCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.create" call. @@ -9908,7 +9908,7 @@ func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.delete" call. @@ -10016,7 +10016,7 @@ func (c *ProjectsLocationsServiceLbPoliciesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.get" call. @@ -10144,7 +10144,7 @@ func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.getIamPolicy" call. @@ -10269,7 +10269,7 @@ func (c *ProjectsLocationsServiceLbPoliciesListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.list" call. @@ -10405,7 +10405,7 @@ func (c *ProjectsLocationsServiceLbPoliciesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.patch" call. @@ -10510,7 +10510,7 @@ func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.setIamPolicy" call. @@ -10618,7 +10618,7 @@ func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.serviceLbPolicies.testIamPermissions" call. @@ -10728,7 +10728,7 @@ func (c *ProjectsLocationsTcpRoutesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tcpRoutes.create" call. @@ -10824,7 +10824,7 @@ func (c *ProjectsLocationsTcpRoutesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tcpRoutes.delete" call. @@ -10932,7 +10932,7 @@ func (c *ProjectsLocationsTcpRoutesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tcpRoutes.get" call. @@ -11056,7 +11056,7 @@ func (c *ProjectsLocationsTcpRoutesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tcpRoutes.list" call. @@ -11190,7 +11190,7 @@ func (c *ProjectsLocationsTcpRoutesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tcpRoutes.patch" call. @@ -11299,7 +11299,7 @@ func (c *ProjectsLocationsTlsRoutesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tlsRoutes.create" call. @@ -11395,7 +11395,7 @@ func (c *ProjectsLocationsTlsRoutesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tlsRoutes.delete" call. @@ -11503,7 +11503,7 @@ func (c *ProjectsLocationsTlsRoutesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tlsRoutes.get" call. @@ -11627,7 +11627,7 @@ func (c *ProjectsLocationsTlsRoutesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tlsRoutes.list" call. @@ -11761,7 +11761,7 @@ func (c *ProjectsLocationsTlsRoutesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "networkservices.projects.locations.tlsRoutes.patch" call. diff --git a/notebooks/v1/notebooks-gen.go b/notebooks/v1/notebooks-gen.go index 75653bc72a9..477c08a9360 100644 --- a/notebooks/v1/notebooks-gen.go +++ b/notebooks/v1/notebooks-gen.go @@ -3499,7 +3499,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.get" call. @@ -3630,7 +3630,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.list" call. @@ -3763,7 +3763,7 @@ func (c *ProjectsLocationsEnvironmentsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.environments.create" call. @@ -3859,7 +3859,7 @@ func (c *ProjectsLocationsEnvironmentsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.environments.delete" call. @@ -3967,7 +3967,7 @@ func (c *ProjectsLocationsEnvironmentsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.environments.get" call. @@ -4088,7 +4088,7 @@ func (c *ProjectsLocationsEnvironmentsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.environments.list" call. @@ -4218,7 +4218,7 @@ func (c *ProjectsLocationsExecutionsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.executions.create" call. @@ -4314,7 +4314,7 @@ func (c *ProjectsLocationsExecutionsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.executions.delete" call. @@ -4422,7 +4422,7 @@ func (c *ProjectsLocationsExecutionsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.executions.get" call. @@ -4557,7 +4557,7 @@ func (c *ProjectsLocationsExecutionsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.executions.list" call. @@ -4687,7 +4687,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.create" call. @@ -4783,7 +4783,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.delete" call. @@ -4886,7 +4886,7 @@ func (c *ProjectsLocationsInstancesDiagnoseCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.diagnose" call. @@ -4994,7 +4994,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.get" call. @@ -5121,7 +5121,7 @@ func (c *ProjectsLocationsInstancesGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.getIamPolicy" call. @@ -5229,7 +5229,7 @@ func (c *ProjectsLocationsInstancesGetInstanceHealthCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.getInstanceHealth" call. @@ -5354,7 +5354,7 @@ func (c *ProjectsLocationsInstancesIsUpgradeableCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "notebookInstance": c.notebookInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.isUpgradeable" call. @@ -5489,7 +5489,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.list" call. @@ -5613,7 +5613,7 @@ func (c *ProjectsLocationsInstancesMigrateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.migrate" call. @@ -5717,7 +5717,7 @@ func (c *ProjectsLocationsInstancesRegisterCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.register" call. @@ -5821,7 +5821,7 @@ func (c *ProjectsLocationsInstancesReportCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.report" call. @@ -5923,7 +5923,7 @@ func (c *ProjectsLocationsInstancesReportEventCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.reportEvent" call. @@ -6025,7 +6025,7 @@ func (c *ProjectsLocationsInstancesResetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.reset" call. @@ -6127,7 +6127,7 @@ func (c *ProjectsLocationsInstancesRollbackCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.rollback" call. @@ -6229,7 +6229,7 @@ func (c *ProjectsLocationsInstancesSetAcceleratorCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.setAccelerator" call. @@ -6334,7 +6334,7 @@ func (c *ProjectsLocationsInstancesSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.setIamPolicy" call. @@ -6436,7 +6436,7 @@ func (c *ProjectsLocationsInstancesSetLabelsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.setLabels" call. @@ -6538,7 +6538,7 @@ func (c *ProjectsLocationsInstancesSetMachineTypeCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.setMachineType" call. @@ -6640,7 +6640,7 @@ func (c *ProjectsLocationsInstancesStartCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.start" call. @@ -6742,7 +6742,7 @@ func (c *ProjectsLocationsInstancesStopCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.stop" call. @@ -6850,7 +6850,7 @@ func (c *ProjectsLocationsInstancesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.testIamPermissions" call. @@ -6953,7 +6953,7 @@ func (c *ProjectsLocationsInstancesUpdateConfigCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.updateConfig" call. @@ -7055,7 +7055,7 @@ func (c *ProjectsLocationsInstancesUpdateMetadataItemsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.updateMetadataItems" call. @@ -7159,7 +7159,7 @@ func (c *ProjectsLocationsInstancesUpdateShieldedInstanceConfigCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.updateShieldedInstanceConfig" call. @@ -7261,7 +7261,7 @@ func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.upgrade" call. @@ -7364,7 +7364,7 @@ func (c *ProjectsLocationsInstancesUpgradeInternalCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.upgradeInternal" call. @@ -7473,7 +7473,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.operations.cancel" call. @@ -7571,7 +7571,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.operations.delete" call. @@ -7680,7 +7680,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.operations.get" call. @@ -7808,7 +7808,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.operations.list" call. @@ -7944,7 +7944,7 @@ func (c *ProjectsLocationsRuntimesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.create" call. @@ -8046,7 +8046,7 @@ func (c *ProjectsLocationsRuntimesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.delete" call. @@ -8149,7 +8149,7 @@ func (c *ProjectsLocationsRuntimesDiagnoseCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.diagnose" call. @@ -8258,7 +8258,7 @@ func (c *ProjectsLocationsRuntimesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.get" call. @@ -8385,7 +8385,7 @@ func (c *ProjectsLocationsRuntimesGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.getIamPolicy" call. @@ -8519,7 +8519,7 @@ func (c *ProjectsLocationsRuntimesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.list" call. @@ -8643,7 +8643,7 @@ func (c *ProjectsLocationsRuntimesMigrateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.migrate" call. @@ -8767,7 +8767,7 @@ func (c *ProjectsLocationsRuntimesPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.patch" call. @@ -8871,7 +8871,7 @@ func (c *ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.refreshRuntimeTokenInternal" call. @@ -8974,7 +8974,7 @@ func (c *ProjectsLocationsRuntimesReportEventCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.reportEvent" call. @@ -9076,7 +9076,7 @@ func (c *ProjectsLocationsRuntimesResetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.reset" call. @@ -9181,7 +9181,7 @@ func (c *ProjectsLocationsRuntimesSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.setIamPolicy" call. @@ -9286,7 +9286,7 @@ func (c *ProjectsLocationsRuntimesStartCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.start" call. @@ -9391,7 +9391,7 @@ func (c *ProjectsLocationsRuntimesStopCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.stop" call. @@ -9493,7 +9493,7 @@ func (c *ProjectsLocationsRuntimesSwitchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.switch" call. @@ -9601,7 +9601,7 @@ func (c *ProjectsLocationsRuntimesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.testIamPermissions" call. @@ -9704,7 +9704,7 @@ func (c *ProjectsLocationsRuntimesUpgradeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.runtimes.upgrade" call. @@ -9812,7 +9812,7 @@ func (c *ProjectsLocationsSchedulesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.schedules.create" call. @@ -9908,7 +9908,7 @@ func (c *ProjectsLocationsSchedulesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.schedules.delete" call. @@ -10016,7 +10016,7 @@ func (c *ProjectsLocationsSchedulesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.schedules.get" call. @@ -10150,7 +10150,7 @@ func (c *ProjectsLocationsSchedulesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.schedules.list" call. @@ -10274,7 +10274,7 @@ func (c *ProjectsLocationsSchedulesTriggerCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.schedules.trigger" call. diff --git a/notebooks/v2/notebooks-gen.go b/notebooks/v2/notebooks-gen.go index 3b13b939e21..cb5fd3c2ae4 100644 --- a/notebooks/v2/notebooks-gen.go +++ b/notebooks/v2/notebooks-gen.go @@ -1823,7 +1823,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.get" call. @@ -1954,7 +1954,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.list" call. @@ -2084,7 +2084,7 @@ func (c *ProjectsLocationsInstancesCheckUpgradabilityCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "notebookInstance": c.notebookInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.checkUpgradability" call. @@ -2199,7 +2199,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.create" call. @@ -2301,7 +2301,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.delete" call. @@ -2404,7 +2404,7 @@ func (c *ProjectsLocationsInstancesDiagnoseCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.diagnose" call. @@ -2512,7 +2512,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.get" call. @@ -2623,7 +2623,7 @@ func (c *ProjectsLocationsInstancesGetConfigCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.getConfig" call. @@ -2750,7 +2750,7 @@ func (c *ProjectsLocationsInstancesGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.getIamPolicy" call. @@ -2884,7 +2884,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.list" call. @@ -3021,7 +3021,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.patch" call. @@ -3125,7 +3125,7 @@ func (c *ProjectsLocationsInstancesReportInfoSystemCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.reportInfoSystem" call. @@ -3227,7 +3227,7 @@ func (c *ProjectsLocationsInstancesResetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.reset" call. @@ -3329,7 +3329,7 @@ func (c *ProjectsLocationsInstancesResizeDiskCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "notebookInstance": c.notebookInstance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.resizeDisk" call. @@ -3431,7 +3431,7 @@ func (c *ProjectsLocationsInstancesRestoreCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.restore" call. @@ -3533,7 +3533,7 @@ func (c *ProjectsLocationsInstancesRollbackCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.rollback" call. @@ -3638,7 +3638,7 @@ func (c *ProjectsLocationsInstancesSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.setIamPolicy" call. @@ -3740,7 +3740,7 @@ func (c *ProjectsLocationsInstancesStartCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.start" call. @@ -3842,7 +3842,7 @@ func (c *ProjectsLocationsInstancesStopCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.stop" call. @@ -3950,7 +3950,7 @@ func (c *ProjectsLocationsInstancesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.testIamPermissions" call. @@ -4053,7 +4053,7 @@ func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.upgrade" call. @@ -4156,7 +4156,7 @@ func (c *ProjectsLocationsInstancesUpgradeSystemCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.instances.upgradeSystem" call. @@ -4265,7 +4265,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.operations.cancel" call. @@ -4363,7 +4363,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.operations.delete" call. @@ -4472,7 +4472,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.operations.get" call. @@ -4600,7 +4600,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "notebooks.projects.locations.operations.list" call. diff --git a/oauth2/v1/oauth2-gen.go b/oauth2/v1/oauth2-gen.go index fce34b006d6..b3128ab6149 100644 --- a/oauth2/v1/oauth2-gen.go +++ b/oauth2/v1/oauth2-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/accounts/docs/OAuth2 // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // oauth2Service, err := oauth2.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // oauth2Service, err := oauth2.NewService(ctx, option.WithScopes(oauth2.UserinfoProfileScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // oauth2Service, err := oauth2.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // oauth2Service, err := oauth2.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package oauth2 // import "google.golang.org/api/oauth2/v1" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "oauth2:v1" const apiName = "oauth2" const apiVersion = "v1" const basePath = "https://www.googleapis.com/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -88,14 +105,14 @@ const ( // View your email address UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email" - // See your personal info, including any personal info you've made - // publicly available + // See your personal info, including any personal info you've made publicly + // available UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.profile" ) // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/plus.me", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile", @@ -103,6 +120,8 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -180,144 +199,104 @@ type UserinfoV2MeService struct { } type Tokeninfo struct { - // AccessType: The access type granted with this token. It can be - // offline or online. + // AccessType: The access type granted with this token. It can be offline or + // online. AccessType string `json:"access_type,omitempty"` - - // Audience: Who is the intended audience for this token. In general the - // same as issued_to. + // Audience: Who is the intended audience for this token. In general the same + // as issued_to. Audience string `json:"audience,omitempty"` - - // Email: The email address of the user. Present only if the email scope - // is present in the request. + // Email: The email address of the user. Present only if the email scope is + // present in the request. Email string `json:"email,omitempty"` - - // EmailVerified: Boolean flag which is true if the email address is - // verified. Present only if the email scope is present in the request. + // EmailVerified: Boolean flag which is true if the email address is verified. + // Present only if the email scope is present in the request. EmailVerified bool `json:"email_verified,omitempty"` - - // ExpiresIn: The expiry time of the token, as number of seconds left - // until expiry. + // ExpiresIn: The expiry time of the token, as number of seconds left until + // expiry. ExpiresIn int64 `json:"expires_in,omitempty"` - // IssuedAt: The issue time of the token, as number of seconds. IssuedAt int64 `json:"issued_at,omitempty"` - - // IssuedTo: To whom was the token issued to. In general the same as - // audience. + // IssuedTo: To whom was the token issued to. In general the same as audience. IssuedTo string `json:"issued_to,omitempty"` - // Issuer: Who issued the token. Issuer string `json:"issuer,omitempty"` - // Nonce: Nonce of the id token. Nonce string `json:"nonce,omitempty"` - // Scope: The space separated list of scopes granted to this token. Scope string `json:"scope,omitempty"` - // UserId: The obfuscated user id. UserId string `json:"user_id,omitempty"` - - // VerifiedEmail: Boolean flag which is true if the email address is - // verified. Present only if the email scope is present in the request. + // VerifiedEmail: Boolean flag which is true if the email address is verified. + // Present only if the email scope is present in the request. VerifiedEmail bool `json:"verified_email,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AccessType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Tokeninfo) MarshalJSON() ([]byte, error) { +func (s Tokeninfo) MarshalJSON() ([]byte, error) { type NoMethod Tokeninfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Userinfoplus struct { // Email: The user's email address. Email string `json:"email,omitempty"` - // FamilyName: The user's last name. FamilyName string `json:"family_name,omitempty"` - // Gender: The user's gender. Gender string `json:"gender,omitempty"` - // GivenName: The user's first name. GivenName string `json:"given_name,omitempty"` - - // Hd: The hosted domain e.g. example.com if the user is Google apps - // user. + // Hd: The hosted domain e.g. example.com if the user is Google apps user. Hd string `json:"hd,omitempty"` - // Id: The obfuscated ID of the user. Id string `json:"id,omitempty"` - // Link: URL of the profile page. Link string `json:"link,omitempty"` - // Locale: The user's preferred locale. Locale string `json:"locale,omitempty"` - // Name: The user's full name. Name string `json:"name,omitempty"` - // Picture: URL of the user's picture image. Picture string `json:"picture,omitempty"` - - // VerifiedEmail: Boolean flag which is true if the email address is - // verified. Always verified because we only return the user's primary - // email address. + // VerifiedEmail: Boolean flag which is true if the email address is verified. + // Always verified because we only return the user's primary email address. // // Default: true VerifiedEmail *bool `json:"verified_email,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Userinfoplus) MarshalJSON() ([]byte, error) { +func (s Userinfoplus) MarshalJSON() ([]byte, error) { type NoMethod Userinfoplus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "oauth2.tokeninfo": - type TokeninfoCall struct { s *Service urlParams_ gensupport.URLParams @@ -331,8 +310,8 @@ func (s *Service) Tokeninfo() *TokeninfoCall { return c } -// AccessToken sets the optional parameter "access_token": The oauth2 -// access token +// AccessToken sets the optional parameter "access_token": The oauth2 access +// token func (c *TokeninfoCall) AccessToken(accessToken string) *TokeninfoCall { c.urlParams_.Set("access_token", accessToken) return c @@ -345,23 +324,21 @@ func (c *TokeninfoCall) IdToken(idToken string) *TokeninfoCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TokeninfoCall) Fields(s ...googleapi.Field) *TokeninfoCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TokeninfoCall) Context(ctx context.Context) *TokeninfoCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TokeninfoCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -370,12 +347,7 @@ func (c *TokeninfoCall) Header() http.Header { } func (c *TokeninfoCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -386,16 +358,14 @@ func (c *TokeninfoCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oauth2.tokeninfo" call. -// Exactly one of *Tokeninfo or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Tokeninfo.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Tokeninfo.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TokeninfoCall) Do(opts ...googleapi.CallOption) (*Tokeninfo, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -403,17 +373,17 @@ func (c *TokeninfoCall) Do(opts ...googleapi.CallOption) (*Tokeninfo, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Tokeninfo{ ServerResponse: googleapi.ServerResponse{ @@ -426,31 +396,7 @@ func (c *TokeninfoCall) Do(opts ...googleapi.CallOption) (*Tokeninfo, error) { return nil, err } return ret, nil - // { - // "description": "Get token info", - // "httpMethod": "POST", - // "id": "oauth2.tokeninfo", - // "parameters": { - // "access_token": { - // "description": "The oauth2 access token", - // "location": "query", - // "type": "string" - // }, - // "id_token": { - // "description": "The ID token", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "oauth2/v1/tokeninfo", - // "response": { - // "$ref": "Tokeninfo" - // } - // } - -} - -// method id "oauth2.userinfo.get": +} type UserinfoGetCall struct { s *Service @@ -467,33 +413,29 @@ func (r *UserinfoService) Get() *UserinfoGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserinfoGetCall) Fields(s ...googleapi.Field) *UserinfoGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserinfoGetCall) IfNoneMatch(entityTag string) *UserinfoGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserinfoGetCall) Context(ctx context.Context) *UserinfoGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserinfoGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -502,12 +444,7 @@ func (c *UserinfoGetCall) Header() http.Header { } func (c *UserinfoGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -521,16 +458,14 @@ func (c *UserinfoGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oauth2.userinfo.get" call. -// Exactly one of *Userinfoplus or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Userinfoplus.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Userinfoplus.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserinfoGetCall) Do(opts ...googleapi.CallOption) (*Userinfoplus, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -538,17 +473,17 @@ func (c *UserinfoGetCall) Do(opts ...googleapi.CallOption) (*Userinfoplus, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Userinfoplus{ ServerResponse: googleapi.ServerResponse{ @@ -561,25 +496,8 @@ func (c *UserinfoGetCall) Do(opts ...googleapi.CallOption) (*Userinfoplus, error return nil, err } return ret, nil - // { - // "description": "Get user info", - // "httpMethod": "GET", - // "id": "oauth2.userinfo.get", - // "path": "oauth2/v1/userinfo", - // "response": { - // "$ref": "Userinfoplus" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.me", - // "https://www.googleapis.com/auth/userinfo.email", - // "https://www.googleapis.com/auth/userinfo.profile" - // ] - // } - } -// method id "oauth2.userinfo.v2.me.get": - type UserinfoV2MeGetCall struct { s *Service urlParams_ gensupport.URLParams @@ -595,33 +513,29 @@ func (r *UserinfoV2MeService) Get() *UserinfoV2MeGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserinfoV2MeGetCall) Fields(s ...googleapi.Field) *UserinfoV2MeGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserinfoV2MeGetCall) IfNoneMatch(entityTag string) *UserinfoV2MeGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserinfoV2MeGetCall) Context(ctx context.Context) *UserinfoV2MeGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserinfoV2MeGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -630,12 +544,7 @@ func (c *UserinfoV2MeGetCall) Header() http.Header { } func (c *UserinfoV2MeGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -649,16 +558,14 @@ func (c *UserinfoV2MeGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oauth2.userinfo.v2.me.get" call. -// Exactly one of *Userinfoplus or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Userinfoplus.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Userinfoplus.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UserinfoV2MeGetCall) Do(opts ...googleapi.CallOption) (*Userinfoplus, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -666,17 +573,17 @@ func (c *UserinfoV2MeGetCall) Do(opts ...googleapi.CallOption) (*Userinfoplus, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Userinfoplus{ ServerResponse: googleapi.ServerResponse{ @@ -689,19 +596,4 @@ func (c *UserinfoV2MeGetCall) Do(opts ...googleapi.CallOption) (*Userinfoplus, e return nil, err } return ret, nil - // { - // "description": "Get user info", - // "httpMethod": "GET", - // "id": "oauth2.userinfo.v2.me.get", - // "path": "userinfo/v2/me", - // "response": { - // "$ref": "Userinfoplus" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.me", - // "https://www.googleapis.com/auth/userinfo.email", - // "https://www.googleapis.com/auth/userinfo.profile" - // ] - // } - } diff --git a/oauth2/v2/oauth2-gen.go b/oauth2/v2/oauth2-gen.go index 05b769f82ac..59d52bf36b6 100644 --- a/oauth2/v2/oauth2-gen.go +++ b/oauth2/v2/oauth2-gen.go @@ -345,7 +345,7 @@ func (c *TokeninfoCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oauth2.tokeninfo" call. @@ -445,7 +445,7 @@ func (c *UserinfoGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oauth2.userinfo.get" call. @@ -545,7 +545,7 @@ func (c *UserinfoV2MeGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oauth2.userinfo.v2.me.get" call. diff --git a/ondemandscanning/v1/ondemandscanning-gen.go b/ondemandscanning/v1/ondemandscanning-gen.go index e30c80282de..7ed459e2055 100644 --- a/ondemandscanning/v1/ondemandscanning-gen.go +++ b/ondemandscanning/v1/ondemandscanning-gen.go @@ -3386,7 +3386,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.operations.cancel" call. @@ -3484,7 +3484,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.operations.delete" call. @@ -3593,7 +3593,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.operations.get" call. @@ -3721,7 +3721,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.operations.list" call. @@ -3855,7 +3855,7 @@ func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.operations.wait" call. @@ -3957,7 +3957,7 @@ func (c *ProjectsLocationsScansAnalyzePackagesCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.scans.analyzePackages" call. @@ -4079,7 +4079,7 @@ func (c *ProjectsLocationsScansVulnerabilitiesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.scans.vulnerabilities.list" call. diff --git a/ondemandscanning/v1beta1/ondemandscanning-gen.go b/ondemandscanning/v1beta1/ondemandscanning-gen.go index 01bebca4c9b..3320fe7eb71 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-gen.go +++ b/ondemandscanning/v1beta1/ondemandscanning-gen.go @@ -3382,7 +3382,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.operations.cancel" call. @@ -3480,7 +3480,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.operations.delete" call. @@ -3589,7 +3589,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.operations.get" call. @@ -3717,7 +3717,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.operations.list" call. @@ -3851,7 +3851,7 @@ func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.operations.wait" call. @@ -3953,7 +3953,7 @@ func (c *ProjectsLocationsScansAnalyzePackagesCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.scans.analyzePackages" call. @@ -4075,7 +4075,7 @@ func (c *ProjectsLocationsScansVulnerabilitiesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "ondemandscanning.projects.locations.scans.vulnerabilities.list" call. diff --git a/oracledatabase/v1/oracledatabase-api.json b/oracledatabase/v1/oracledatabase-api.json new file mode 100644 index 00000000000..bfc8b5e7c57 --- /dev/null +++ b/oracledatabase/v1/oracledatabase-api.json @@ -0,0 +1,3764 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://oracledatabase.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Oracle Database", + "description": "The Oracle Database@Google Cloud API provides set of APIs to manage Oracle databases such as Exadata and Autonomous Databases.", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/oracle/database/docs", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "oracledatabase:v1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://oracledatabase.mtls.googleapis.com/", + "name": "oracledatabase", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "autonomousDatabaseBackups": { + "methods": { + "list": { + "description": "Lists the long term and automatic backups of an Autonomous Database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autonomousDatabaseBackups", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.autonomousDatabaseBackups.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request. Only the **autonomous_database_id** field is supported in the following format: `autonomous_database_id=\"{autonomous_database_id}\"`. The accepted values must be a valid Autonomous Database ID, limited to the naming restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). The ID must start with a letter, end with a letter or a number, and be a maximum of 63 characters.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 Autonomous DB Backups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for ListAutonomousDatabaseBackups in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/autonomousDatabaseBackups", + "response": { + "$ref": "ListAutonomousDatabaseBackupsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "autonomousDatabaseCharacterSets": { + "methods": { + "list": { + "description": "Lists Autonomous Database Character Sets in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autonomousDatabaseCharacterSets", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.autonomousDatabaseCharacterSets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request. Only the **character_set_type** field is supported in the following format: `character_set_type=\"{characterSetType}\"`. Accepted values include `DATABASE` and `NATIONAL`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 Autonomous DB Character Sets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/autonomousDatabaseCharacterSets", + "response": { + "$ref": "ListAutonomousDatabaseCharacterSetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "autonomousDatabases": { + "methods": { + "create": { + "description": "Creates a new Autonomous Database in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autonomousDatabases", + "httpMethod": "POST", + "id": "oracledatabase.projects.locations.autonomousDatabases.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "autonomousDatabaseId": { + "description": "Required. The ID of the Autonomous Database to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/autonomousDatabases", + "request": { + "$ref": "AutonomousDatabase" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Autonomous Database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autonomousDatabases/{autonomousDatabasesId}", + "httpMethod": "DELETE", + "id": "oracledatabase.projects.locations.autonomousDatabases.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the resource in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateWallet": { + "description": "Generates a wallet for a single Autonomous Database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autonomousDatabases/{autonomousDatabasesId}:generateWallet", + "httpMethod": "POST", + "id": "oracledatabase.projects.locations.autonomousDatabases.generateWallet", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:generateWallet", + "request": { + "$ref": "GenerateAutonomousDatabaseWalletRequest" + }, + "response": { + "$ref": "GenerateAutonomousDatabaseWalletResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the details of a single Autonomous Database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autonomousDatabases/{autonomousDatabasesId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.autonomousDatabases.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "AutonomousDatabase" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the Autonomous Databases in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autonomousDatabases", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.autonomousDatabases.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. An expression for ordering the results of the request.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 Autonomous Database will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/autonomousDatabases", + "response": { + "$ref": "ListAutonomousDatabasesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "restore": { + "description": "Restores a single Autonomous Database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autonomousDatabases/{autonomousDatabasesId}:restore", + "httpMethod": "POST", + "id": "oracledatabase.projects.locations.autonomousDatabases.restore", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:restore", + "request": { + "$ref": "RestoreAutonomousDatabaseRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "autonomousDbVersions": { + "methods": { + "list": { + "description": "Lists all the available Autonomous Database versions for a project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autonomousDbVersions", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.autonomousDbVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 Autonomous DB Versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/autonomousDbVersions", + "response": { + "$ref": "ListAutonomousDbVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "cloudExadataInfrastructures": { + "methods": { + "create": { + "description": "Creates a new Exadata Infrastructure in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudExadataInfrastructures", + "httpMethod": "POST", + "id": "oracledatabase.projects.locations.cloudExadataInfrastructures.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "cloudExadataInfrastructureId": { + "description": "Required. The ID of the Exadata Infrastructure to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/cloudExadataInfrastructures", + "request": { + "$ref": "CloudExadataInfrastructure" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Exadata Infrastructure.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudExadataInfrastructures/{cloudExadataInfrastructuresId}", + "httpMethod": "DELETE", + "id": "oracledatabase.projects.locations.cloudExadataInfrastructures.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, all VM clusters for this Exadata Infrastructure will be deleted. An Exadata Infrastructure can only be deleted once all its VM clusters have been deleted.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single Exadata Infrastructure.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudExadataInfrastructures/{cloudExadataInfrastructuresId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.cloudExadataInfrastructures.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "CloudExadataInfrastructure" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Exadata Infrastructures in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudExadataInfrastructures", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.cloudExadataInfrastructures.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 Exadata infrastructures will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/cloudExadataInfrastructures", + "response": { + "$ref": "ListCloudExadataInfrastructuresResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "dbServers": { + "methods": { + "list": { + "description": "Lists the database servers of an Exadata Infrastructure instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudExadataInfrastructures/{cloudExadataInfrastructuresId}/dbServers", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.cloudExadataInfrastructures.dbServers.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 db servers will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for database server in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/dbServers", + "response": { + "$ref": "ListDbServersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "cloudVmClusters": { + "methods": { + "create": { + "description": "Creates a new VM Cluster in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudVmClusters", + "httpMethod": "POST", + "id": "oracledatabase.projects.locations.cloudVmClusters.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "cloudVmClusterId": { + "description": "Required. The ID of the VM Cluster to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/cloudVmClusters", + "request": { + "$ref": "CloudVmCluster" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single VM Cluster.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudVmClusters/{cloudVmClustersId}", + "httpMethod": "DELETE", + "id": "oracledatabase.projects.locations.cloudVmClusters.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, all child resources for the VM Cluster will be deleted. A VM Cluster can only be deleted once all its child resources have been deleted.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional ID to identify the request. This value is used to identify duplicate requests. If you make a request with the same request ID and the original request is still in progress or completed, the server ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single VM Cluster.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudVmClusters/{cloudVmClustersId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.cloudVmClusters.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "CloudVmCluster" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the VM Clusters in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudVmClusters", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.cloudVmClusters.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The number of VM clusters to return. If unspecified, at most 50 VM clusters will be returned. The maximum value is 1,000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying the page of results the server returns.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/cloudVmClusters", + "response": { + "$ref": "ListCloudVmClustersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "dbNodes": { + "methods": { + "list": { + "description": "Lists the database nodes of a VM Cluster.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cloudVmClusters/{cloudVmClustersId}/dbNodes", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.cloudVmClusters.dbNodes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 db nodes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the node should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/dbNodes", + "response": { + "$ref": "ListDbNodesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "dbSystemShapes": { + "methods": { + "list": { + "description": "Lists the database system shapes available for the project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystemShapes", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.dbSystemShapes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 database system shapes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/dbSystemShapes", + "response": { + "$ref": "ListDbSystemShapesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "entitlements": { + "methods": { + "list": { + "description": "Lists the entitlements in a given project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entitlements", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.entitlements.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 entitlements will be returned. The maximum value is 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for Entitlement in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/entitlements", + "response": { + "$ref": "ListEntitlementsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "giVersions": { + "methods": { + "list": { + "description": "Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/giVersions", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.giVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/giVersions", + "response": { + "$ref": "ListGiVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "oracledatabase.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "oracledatabase.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20240913", + "rootUrl": "https://oracledatabase.googleapis.com/", + "schemas": { + "AllConnectionStrings": { + "description": "A list of all connection strings that can be used to connect to the Autonomous Database.", + "id": "AllConnectionStrings", + "properties": { + "high": { + "description": "Output only. The database service provides the highest level of resources to each SQL statement.", + "readOnly": true, + "type": "string" + }, + "low": { + "description": "Output only. The database service provides the least level of resources to each SQL statement.", + "readOnly": true, + "type": "string" + }, + "medium": { + "description": "Output only. The database service provides a lower level of resources to each SQL statement.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AutonomousDatabase": { + "description": "Details of the Autonomous Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/", + "id": "AutonomousDatabase", + "properties": { + "adminPassword": { + "description": "Optional. The password for the default ADMIN user.", + "type": "string" + }, + "cidr": { + "description": "Required. The subnet CIDR range for the Autonmous Database.", + "type": "string" + }, + "createTime": { + "description": "Output only. The date and time that the Autonomous Database was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "database": { + "description": "Optional. The name of the Autonomous Database. The database name must be unique in the project. The name must begin with a letter and can contain a maximum of 30 alphanumeric characters.", + "type": "string" + }, + "displayName": { + "description": "Optional. The display name for the Autonomous Database. The name does not have to be unique within your project.", + "type": "string" + }, + "entitlementId": { + "description": "Output only. The ID of the subscription entitlement associated with the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels or tags associated with the Autonomous Database.", + "type": "object" + }, + "name": { + "description": "Identifier. The name of the Autonomous Database resource in the following format: projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}", + "type": "string" + }, + "network": { + "description": "Required. The name of the VPC network used by the Autonomous Database. Format: projects/{project}/global/networks/{network}", + "type": "string" + }, + "properties": { + "$ref": "AutonomousDatabaseProperties", + "description": "Optional. The properties of the Autonomous Database." + } + }, + "type": "object" + }, + "AutonomousDatabaseApex": { + "description": "Oracle APEX Application Development. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseApex", + "id": "AutonomousDatabaseApex", + "properties": { + "apexVersion": { + "description": "Output only. The Oracle APEX Application Development version.", + "readOnly": true, + "type": "string" + }, + "ordsVersion": { + "description": "Output only. The Oracle REST Data Services (ORDS) version.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AutonomousDatabaseBackup": { + "description": "Details of the Autonomous Database Backup resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/", + "id": "AutonomousDatabaseBackup", + "properties": { + "autonomousDatabase": { + "description": "Required. The name of the Autonomous Database resource for which the backup is being created. Format: projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}", + "type": "string" + }, + "displayName": { + "description": "Optional. User friendly name for the Backup. The name does not have to be unique.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. labels or tags associated with the resource.", + "type": "object" + }, + "name": { + "description": "Identifier. The name of the Autonomous Database Backup resource with the format: projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup}", + "type": "string" + }, + "properties": { + "$ref": "AutonomousDatabaseBackupProperties", + "description": "Optional. Various properties of the backup." + } + }, + "type": "object" + }, + "AutonomousDatabaseBackupProperties": { + "description": "Properties of the Autonomous Database Backup resource.", + "id": "AutonomousDatabaseBackupProperties", + "properties": { + "availableTillTime": { + "description": "Output only. Timestamp until when the backup will be available.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "compartmentId": { + "description": "Output only. The OCID of the compartment.", + "readOnly": true, + "type": "string" + }, + "databaseSizeTb": { + "description": "Output only. The quantity of data in the database, in terabytes.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "dbVersion": { + "description": "Output only. A valid Oracle Database version for Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The date and time the backup completed.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "isAutomaticBackup": { + "description": "Output only. Indicates if the backup is automatic or user initiated.", + "readOnly": true, + "type": "boolean" + }, + "isLongTermBackup": { + "description": "Output only. Indicates if the backup is long term backup.", + "readOnly": true, + "type": "boolean" + }, + "isRestorable": { + "description": "Output only. Indicates if the backup can be used to restore the Autonomous Database.", + "readOnly": true, + "type": "boolean" + }, + "keyStoreId": { + "description": "Optional. The OCID of the key store of Oracle Vault.", + "type": "string" + }, + "keyStoreWallet": { + "description": "Optional. The wallet name for Oracle Key Vault.", + "type": "string" + }, + "kmsKeyId": { + "description": "Optional. The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.", + "type": "string" + }, + "kmsKeyVersionId": { + "description": "Optional. The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances.", + "type": "string" + }, + "lifecycleDetails": { + "description": "Output only. Additional information about the current lifecycle state.", + "readOnly": true, + "type": "string" + }, + "lifecycleState": { + "description": "Output only. The lifecycle state of the backup.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + "UPDATING" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the resource is in Creating state.", + "Indicates that the resource is in Active state.", + "Indicates that the resource is in Deleting state.", + "Indicates that the resource is in Deleted state.", + "Indicates that the resource is in Failed state.", + "Indicates that the resource is in Updating state." + ], + "readOnly": true, + "type": "string" + }, + "ocid": { + "description": "Output only. OCID of the Autonomous Database backup. https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle", + "readOnly": true, + "type": "string" + }, + "retentionPeriodDays": { + "description": "Optional. Retention period in days for the backup.", + "format": "int32", + "type": "integer" + }, + "sizeTb": { + "description": "Output only. The backup size in terabytes.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "startTime": { + "description": "Output only. The date and time the backup started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "type": { + "description": "Output only. The type of the backup.", + "enum": [ + "TYPE_UNSPECIFIED", + "INCREMENTAL", + "FULL", + "LONG_TERM" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Incremental backups.", + "Full backups.", + "Long term backups." + ], + "readOnly": true, + "type": "string" + }, + "vaultId": { + "description": "Optional. The OCID of the vault.", + "type": "string" + } + }, + "type": "object" + }, + "AutonomousDatabaseCharacterSet": { + "description": "Details of the Autonomous Database character set resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/", + "id": "AutonomousDatabaseCharacterSet", + "properties": { + "characterSet": { + "description": "Output only. The character set name for the Autonomous Database which is the ID in the resource name.", + "readOnly": true, + "type": "string" + }, + "characterSetType": { + "description": "Output only. The character set type for the Autonomous Database.", + "enum": [ + "CHARACTER_SET_TYPE_UNSPECIFIED", + "DATABASE", + "NATIONAL" + ], + "enumDescriptions": [ + "Character set type is not specified.", + "Character set type is set to database.", + "Character set type is set to national." + ], + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the Autonomous Database Character Set resource in the following format: projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set}", + "type": "string" + } + }, + "type": "object" + }, + "AutonomousDatabaseConnectionStrings": { + "description": "The connection string used to connect to the Autonomous Database. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionStrings", + "id": "AutonomousDatabaseConnectionStrings", + "properties": { + "allConnectionStrings": { + "$ref": "AllConnectionStrings", + "description": "Output only. Returns all connection strings that can be used to connect to the Autonomous Database.", + "readOnly": true + }, + "dedicated": { + "description": "Output only. The database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements.", + "readOnly": true, + "type": "string" + }, + "high": { + "description": "Output only. The database service provides the highest level of resources to each SQL statement.", + "readOnly": true, + "type": "string" + }, + "low": { + "description": "Output only. The database service provides the least level of resources to each SQL statement.", + "readOnly": true, + "type": "string" + }, + "medium": { + "description": "Output only. The database service provides a lower level of resources to each SQL statement.", + "readOnly": true, + "type": "string" + }, + "profiles": { + "description": "Output only. A list of connection string profiles to allow clients to group, filter, and select values based on the structured metadata.", + "items": { + "$ref": "DatabaseConnectionStringProfile" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "AutonomousDatabaseConnectionUrls": { + "description": "The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionUrls", + "id": "AutonomousDatabaseConnectionUrls", + "properties": { + "apexUri": { + "description": "Output only. Oracle Application Express (APEX) URL.", + "readOnly": true, + "type": "string" + }, + "databaseTransformsUri": { + "description": "Output only. The URL of the Database Transforms for the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "graphStudioUri": { + "description": "Output only. The URL of the Graph Studio for the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "machineLearningNotebookUri": { + "description": "Output only. The URL of the Oracle Machine Learning (OML) Notebook for the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "machineLearningUserManagementUri": { + "description": "Output only. The URL of Machine Learning user management the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "mongoDbUri": { + "description": "Output only. The URL of the MongoDB API for the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "ordsUri": { + "description": "Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "sqlDevWebUri": { + "description": "Output only. The URL of the Oracle SQL Developer Web for the Autonomous Database.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AutonomousDatabaseProperties": { + "description": "The properties of an Autonomous Database.", + "id": "AutonomousDatabaseProperties", + "properties": { + "actualUsedDataStorageSizeTb": { + "description": "Output only. The amount of storage currently being used for user and system data, in terabytes.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "allocatedStorageSizeTb": { + "description": "Output only. The amount of storage currently allocated for the database tables and billed for, rounded up in terabytes.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "apexDetails": { + "$ref": "AutonomousDatabaseApex", + "description": "Output only. The details for the Oracle APEX Application Development.", + "readOnly": true + }, + "arePrimaryAllowlistedIpsUsed": { + "description": "Output only. This field indicates the status of Data Guard and Access control for the Autonomous Database. The field's value is null if Data Guard is disabled or Access Control is disabled. The field's value is TRUE if both Data Guard and Access Control are enabled, and the Autonomous Database is using primary IP access control list (ACL) for standby. The field's value is FALSE if both Data Guard and Access Control are enabled, and the Autonomous Database is using a different IP access control list (ACL) for standby compared to primary.", + "readOnly": true, + "type": "boolean" + }, + "autonomousContainerDatabaseId": { + "description": "Output only. The Autonomous Container Database OCID.", + "readOnly": true, + "type": "string" + }, + "availableUpgradeVersions": { + "description": "Output only. The list of available Oracle Database upgrade versions for an Autonomous Database.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "backupRetentionPeriodDays": { + "description": "Optional. The retention period for the Autonomous Database. This field is specified in days, can range from 1 day to 60 days, and has a default value of 60 days.", + "format": "int32", + "type": "integer" + }, + "characterSet": { + "description": "Optional. The character set for the Autonomous Database. The default is AL32UTF8.", + "type": "string" + }, + "computeCount": { + "description": "Optional. The number of compute servers for the Autonomous Database.", + "format": "float", + "type": "number" + }, + "connectionStrings": { + "$ref": "AutonomousDatabaseConnectionStrings", + "description": "Output only. The connection strings used to connect to an Autonomous Database.", + "readOnly": true + }, + "connectionUrls": { + "$ref": "AutonomousDatabaseConnectionUrls", + "description": "Output only. The Oracle Connection URLs for an Autonomous Database.", + "readOnly": true + }, + "cpuCoreCount": { + "description": "Optional. The number of CPU cores to be made available to the database.", + "format": "int32", + "type": "integer" + }, + "customerContacts": { + "description": "Optional. The list of customer contacts.", + "items": { + "$ref": "CustomerContact" + }, + "type": "array" + }, + "dataSafeState": { + "description": "Output only. The current state of the Data Safe registration for the Autonomous Database.", + "enum": [ + "DATA_SAFE_STATE_UNSPECIFIED", + "REGISTERING", + "REGISTERED", + "DEREGISTERING", + "NOT_REGISTERED", + "FAILED" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Registering data safe state.", + "Registered data safe state.", + "Deregistering data safe state.", + "Not registered data safe state.", + "Failed data safe state." + ], + "readOnly": true, + "type": "string" + }, + "dataStorageSizeGb": { + "description": "Optional. The size of the data stored in the database, in gigabytes.", + "format": "int32", + "type": "integer" + }, + "dataStorageSizeTb": { + "description": "Optional. The size of the data stored in the database, in terabytes.", + "format": "int32", + "type": "integer" + }, + "databaseManagementState": { + "description": "Output only. The current state of database management for the Autonomous Database.", + "enum": [ + "DATABASE_MANAGEMENT_STATE_UNSPECIFIED", + "ENABLING", + "ENABLED", + "DISABLING", + "NOT_ENABLED", + "FAILED_ENABLING", + "FAILED_DISABLING" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Enabling Database Management state", + "Enabled Database Management state", + "Disabling Database Management state", + "Not Enabled Database Management state", + "Failed enabling Database Management state", + "Failed disabling Database Management state" + ], + "readOnly": true, + "type": "string" + }, + "dbEdition": { + "description": "Optional. The edition of the Autonomous Databases.", + "enum": [ + "DATABASE_EDITION_UNSPECIFIED", + "STANDARD_EDITION", + "ENTERPRISE_EDITION" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Standard Database Edition", + "Enterprise Database Edition" + ], + "type": "string" + }, + "dbVersion": { + "description": "Optional. The Oracle Database version for the Autonomous Database.", + "type": "string" + }, + "dbWorkload": { + "description": "Required. The workload type of the Autonomous Database.", + "enum": [ + "DB_WORKLOAD_UNSPECIFIED", + "OLTP", + "DW", + "AJD", + "APEX" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Autonomous Transaction Processing database.", + "Autonomous Data Warehouse database.", + "Autonomous JSON Database.", + "Autonomous Database with the Oracle APEX Application Development workload type." + ], + "type": "string" + }, + "failedDataRecoveryDuration": { + "description": "Output only. This field indicates the number of seconds of data loss during a Data Guard failover.", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, + "isAutoScalingEnabled": { + "description": "Optional. This field indicates if auto scaling is enabled for the Autonomous Database CPU core count.", + "type": "boolean" + }, + "isLocalDataGuardEnabled": { + "description": "Output only. This field indicates whether the Autonomous Database has local (in-region) Data Guard enabled.", + "readOnly": true, + "type": "boolean" + }, + "isStorageAutoScalingEnabled": { + "description": "Optional. This field indicates if auto scaling is enabled for the Autonomous Database storage.", + "type": "boolean" + }, + "licenseType": { + "description": "Required. The license type used for the Autonomous Database.", + "enum": [ + "LICENSE_TYPE_UNSPECIFIED", + "LICENSE_INCLUDED", + "BRING_YOUR_OWN_LICENSE" + ], + "enumDescriptions": [ + "Unspecified", + "License included part of offer", + "Bring your own license" + ], + "type": "string" + }, + "lifecycleDetails": { + "description": "Output only. The details of the current lifestyle state of the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "localAdgAutoFailoverMaxDataLossLimit": { + "description": "Output only. This field indicates the maximum data loss limit for an Autonomous Database, in seconds.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "localDisasterRecoveryType": { + "description": "Output only. This field indicates the local disaster recovery (DR) type of an Autonomous Database.", + "enum": [ + "LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED", + "ADG", + "BACKUP_BASED" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Autonomous Data Guard recovery.", + "Backup based recovery." + ], + "readOnly": true, + "type": "string" + }, + "localStandbyDb": { + "$ref": "AutonomousDatabaseStandbySummary", + "description": "Output only. The details of the Autonomous Data Guard standby database.", + "readOnly": true + }, + "maintenanceBeginTime": { + "description": "Output only. The date and time when maintenance will begin.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "maintenanceEndTime": { + "description": "Output only. The date and time when maintenance will end.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "maintenanceScheduleType": { + "description": "Optional. The maintenance schedule of the Autonomous Database.", + "enum": [ + "MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED", + "EARLY", + "REGULAR" + ], + "enumDescriptions": [ + "Default unspecified value.", + "An EARLY maintenance schedule patches the database before the the regular scheduled maintenance.", + "A REGULAR maintenance schedule follows the normal maintenance cycle." + ], + "type": "string" + }, + "memoryPerOracleComputeUnitGbs": { + "description": "Output only. The amount of memory enabled per ECPU, in gigabytes.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "memoryTableGbs": { + "description": "Output only. The memory assigned to in-memory tables in an Autonomous Database.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "mtlsConnectionRequired": { + "description": "Optional. This field specifies if the Autonomous Database requires mTLS connections.", + "type": "boolean" + }, + "nCharacterSet": { + "description": "Optional. The national character set for the Autonomous Database. The default is AL16UTF16.", + "type": "string" + }, + "nextLongTermBackupTime": { + "description": "Output only. The long term backup schedule of the Autonomous Database.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "ociUrl": { + "description": "Output only. The Oracle Cloud Infrastructure link for the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "ocid": { + "description": "Output only. OCID of the Autonomous Database. https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle", + "readOnly": true, + "type": "string" + }, + "openMode": { + "description": "Output only. This field indicates the current mode of the Autonomous Database.", + "enum": [ + "OPEN_MODE_UNSPECIFIED", + "READ_ONLY", + "READ_WRITE" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Read Only Mode", + "Read Write Mode" + ], + "readOnly": true, + "type": "string" + }, + "operationsInsightsState": { + "description": "Output only. This field indicates the state of Operations Insights for the Autonomous Database.", + "enum": [ + "OPERATIONS_INSIGHTS_STATE_UNSPECIFIED", + "ENABLING", + "ENABLED", + "DISABLING", + "NOT_ENABLED", + "FAILED_ENABLING", + "FAILED_DISABLING" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Enabling status for operation insights.", + "Enabled status for operation insights.", + "Disabling status for operation insights.", + "Not Enabled status for operation insights.", + "Failed enabling status for operation insights.", + "Failed disabling status for operation insights." + ], + "readOnly": true, + "type": "string" + }, + "peerDbIds": { + "description": "Output only. The list of OCIDs of standby databases located in Autonomous Data Guard remote regions that are associated with the source database.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "permissionLevel": { + "description": "Output only. The permission level of the Autonomous Database.", + "enum": [ + "PERMISSION_LEVEL_UNSPECIFIED", + "RESTRICTED", + "UNRESTRICTED" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Restricted mode allows access only by admin users.", + "Normal access." + ], + "readOnly": true, + "type": "string" + }, + "privateEndpoint": { + "description": "Output only. The private endpoint for the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "privateEndpointIp": { + "description": "Optional. The private endpoint IP address for the Autonomous Database.", + "type": "string" + }, + "privateEndpointLabel": { + "description": "Optional. The private endpoint label for the Autonomous Database.", + "type": "string" + }, + "refreshableMode": { + "description": "Output only. The refresh mode of the cloned Autonomous Database.", + "enum": [ + "REFRESHABLE_MODE_UNSPECIFIED", + "AUTOMATIC", + "MANUAL" + ], + "enumDescriptions": [ + "The default unspecified value.", + "AUTOMATIC indicates that the cloned database is automatically refreshed with data from the source Autonomous Database.", + "MANUAL indicates that the cloned database is manually refreshed with data from the source Autonomous Database." + ], + "readOnly": true, + "type": "string" + }, + "refreshableState": { + "description": "Output only. The refresh State of the clone.", + "enum": [ + "REFRESHABLE_STATE_UNSPECIFIED", + "REFRESHING", + "NOT_REFRESHING" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Refreshing", + "Not refreshed" + ], + "readOnly": true, + "type": "string" + }, + "role": { + "description": "Output only. The Data Guard role of the Autonomous Database.", + "enum": [ + "ROLE_UNSPECIFIED", + "PRIMARY", + "STANDBY", + "DISABLED_STANDBY", + "BACKUP_COPY", + "SNAPSHOT_STANDBY" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Primary role", + "Standby role", + "Disabled standby role", + "Backup copy role", + "Snapshot standby role" + ], + "readOnly": true, + "type": "string" + }, + "scheduledOperationDetails": { + "description": "Output only. The list and details of the scheduled operations of the Autonomous Database.", + "items": { + "$ref": "ScheduledOperationDetails" + }, + "readOnly": true, + "type": "array" + }, + "secretId": { + "description": "Optional. The ID of the Oracle Cloud Infrastructure vault secret.", + "type": "string" + }, + "sqlWebDeveloperUrl": { + "description": "Output only. The SQL Web Developer URL for the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The current lifecycle state of the Autonomous Database.", + "enum": [ + "STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "STOPPING", + "STOPPED", + "STARTING", + "TERMINATING", + "TERMINATED", + "UNAVAILABLE", + "RESTORE_IN_PROGRESS", + "RESTORE_FAILED", + "BACKUP_IN_PROGRESS", + "SCALE_IN_PROGRESS", + "AVAILABLE_NEEDS_ATTENTION", + "UPDATING", + "MAINTENANCE_IN_PROGRESS", + "RESTARTING", + "RECREATING", + "ROLE_CHANGE_IN_PROGRESS", + "UPGRADING", + "INACCESSIBLE", + "STANDBY" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the Autonomous Database is in Provisioning state.", + "Indicates that the Autonomous Database is in Available state.", + "Indicates that the Autonomous Database is in Stopping state.", + "Indicates that the Autonomous Database is in Stopped state.", + "Indicates that the Autonomous Database is in Starting state.", + "Indicates that the Autonomous Database is in Terminating state.", + "Indicates that the Autonomous Database is in Terminated state.", + "Indicates that the Autonomous Database is in Unavailable state.", + "Indicates that the Autonomous Database Restore is in progress.", + "Indicates that the Autonomous Database failed to restore.", + "Indicates that the Autonomous Database backup is in progress.", + "Indicates that the Autonomous Database scale is in progress.", + "Indicates that the Autonomous Database is in Available Needs Attention state.", + "Indicates that the Autonomous Database is in Updating state.", + "Indicates that the Autonomous Database is in Maintenance In Progress state.", + "Indicates that the Autonomous Database is in Restarting state.", + "Indicates that the Autonomous Database is in Recreating state.", + "Indicates that the Autonomous Database is in Role Change In Progress state.", + "Indicates that the Autonomous Database is in Upgrading state.", + "Indicates that the Autonomous Database is in Inaccessible state.", + "Indicates that the Autonomous Database is in Standby state." + ], + "readOnly": true, + "type": "string" + }, + "supportedCloneRegions": { + "description": "Output only. The list of available regions that can be used to create a clone for the Autonomous Database.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "totalAutoBackupStorageSizeGbs": { + "description": "Output only. The storage space used by automatic backups of Autonomous Database, in gigabytes.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "usedDataStorageSizeTbs": { + "description": "Output only. The storage space used by Autonomous Database, in gigabytes.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "vaultId": { + "description": "Optional. The ID of the Oracle Cloud Infrastructure vault.", + "type": "string" + } + }, + "type": "object" + }, + "AutonomousDatabaseStandbySummary": { + "description": "Autonomous Data Guard standby database details. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseStandbySummary", + "id": "AutonomousDatabaseStandbySummary", + "properties": { + "dataGuardRoleChangedTime": { + "description": "Output only. The date and time the Autonomous Data Guard role was switched for the standby Autonomous Database.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "disasterRecoveryRoleChangedTime": { + "description": "Output only. The date and time the Disaster Recovery role was switched for the standby Autonomous Database.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "lagTimeDuration": { + "description": "Output only. The amount of time, in seconds, that the data of the standby database lags in comparison to the data of the primary database.", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, + "lifecycleDetails": { + "description": "Output only. The additional details about the current lifecycle state of the Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The current lifecycle state of the Autonomous Database.", + "enum": [ + "STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "STOPPING", + "STOPPED", + "STARTING", + "TERMINATING", + "TERMINATED", + "UNAVAILABLE", + "RESTORE_IN_PROGRESS", + "RESTORE_FAILED", + "BACKUP_IN_PROGRESS", + "SCALE_IN_PROGRESS", + "AVAILABLE_NEEDS_ATTENTION", + "UPDATING", + "MAINTENANCE_IN_PROGRESS", + "RESTARTING", + "RECREATING", + "ROLE_CHANGE_IN_PROGRESS", + "UPGRADING", + "INACCESSIBLE", + "STANDBY" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the Autonomous Database is in Provisioning state.", + "Indicates that the Autonomous Database is in Available state.", + "Indicates that the Autonomous Database is in Stopping state.", + "Indicates that the Autonomous Database is in Stopped state.", + "Indicates that the Autonomous Database is in Starting state.", + "Indicates that the Autonomous Database is in Terminating state.", + "Indicates that the Autonomous Database is in Terminated state.", + "Indicates that the Autonomous Database is in Unavailable state.", + "Indicates that the Autonomous Database Restore is in progress.", + "Indicates that the Autonomous Database failed to restore.", + "Indicates that the Autonomous Database backup is in progress.", + "Indicates that the Autonomous Database scale is in progress.", + "Indicates that the Autonomous Database is in Available Needs Attention state.", + "Indicates that the Autonomous Database is in Updating state.", + "Indicates that the Autonomous Database is in Maintenance In Progress state.", + "Indicates that the Autonomous Database is in Restarting state.", + "Indicates that the Autonomous Database is in Recreating state.", + "Indicates that the Autonomous Database is in Role Change In Progress state.", + "Indicates that the Autonomous Database is in Upgrading state.", + "Indicates that the Autonomous Database is in Inaccessible state.", + "Indicates that the Autonomous Database is in Standby state." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AutonomousDbVersion": { + "description": "Details of the Autonomous Database version. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary/", + "id": "AutonomousDbVersion", + "properties": { + "dbWorkload": { + "description": "Output only. The Autonomous Database workload type.", + "enum": [ + "DB_WORKLOAD_UNSPECIFIED", + "OLTP", + "DW", + "AJD", + "APEX" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Autonomous Transaction Processing database.", + "Autonomous Data Warehouse database.", + "Autonomous JSON Database.", + "Autonomous Database with the Oracle APEX Application Development workload type." + ], + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the Autonomous Database Version resource with the format: projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version}", + "type": "string" + }, + "version": { + "description": "Output only. An Oracle Database version for Autonomous Database.", + "readOnly": true, + "type": "string" + }, + "workloadUri": { + "description": "Output only. A URL that points to a detailed description of the Autonomous Database version.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "CloudAccountDetails": { + "description": "Details of the OCI Cloud Account.", + "id": "CloudAccountDetails", + "properties": { + "accountCreationUri": { + "description": "Output only. URL to create a new account and link.", + "readOnly": true, + "type": "string" + }, + "cloudAccount": { + "description": "Output only. OCI account name.", + "readOnly": true, + "type": "string" + }, + "cloudAccountHomeRegion": { + "description": "Output only. OCI account home region.", + "readOnly": true, + "type": "string" + }, + "linkExistingAccountUri": { + "description": "Output only. URL to link an existing account.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CloudExadataInfrastructure": { + "description": "Represents CloudExadataInfrastructure resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/", + "id": "CloudExadataInfrastructure", + "properties": { + "createTime": { + "description": "Output only. The date and time that the Exadata Infrastructure was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. User friendly name for this resource.", + "type": "string" + }, + "entitlementId": { + "description": "Output only. Entitlement ID of the private offer against which this infrastructure resource is provisioned.", + "readOnly": true, + "type": "string" + }, + "gcpOracleZone": { + "description": "Optional. GCP location where Oracle Exadata is hosted.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels or tags associated with the resource.", + "type": "object" + }, + "name": { + "description": "Identifier. The name of the Exadata Infrastructure resource with the format: projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}", + "type": "string" + }, + "properties": { + "$ref": "CloudExadataInfrastructureProperties", + "description": "Optional. Various properties of the infra." + } + }, + "type": "object" + }, + "CloudExadataInfrastructureProperties": { + "description": "Various properties of Exadata Infrastructure.", + "id": "CloudExadataInfrastructureProperties", + "properties": { + "activatedStorageCount": { + "description": "Output only. The requested number of additional storage servers activated for the Exadata Infrastructure.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "additionalStorageCount": { + "description": "Output only. The requested number of additional storage servers for the Exadata Infrastructure.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "availableStorageSizeGb": { + "description": "Output only. The available storage can be allocated to the Exadata Infrastructure resource, in gigabytes (GB).", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "computeCount": { + "description": "Optional. The number of compute servers for the Exadata Infrastructure.", + "format": "int32", + "type": "integer" + }, + "cpuCount": { + "description": "Optional. The number of enabled CPU cores.", + "format": "int32", + "type": "integer" + }, + "customerContacts": { + "description": "Optional. The list of customer contacts.", + "items": { + "$ref": "CustomerContact" + }, + "type": "array" + }, + "dataStorageSizeTb": { + "description": "Output only. Size, in terabytes, of the DATA disk group.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "dbNodeStorageSizeGb": { + "description": "Optional. The local node storage allocated in GBs.", + "format": "int32", + "type": "integer" + }, + "dbServerVersion": { + "description": "Output only. The software version of the database servers (dom0) in the Exadata Infrastructure.", + "readOnly": true, + "type": "string" + }, + "maintenanceWindow": { + "$ref": "MaintenanceWindow", + "description": "Optional. Maintenance window for repair." + }, + "maxCpuCount": { + "description": "Output only. The total number of CPU cores available.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "maxDataStorageTb": { + "description": "Output only. The total available DATA disk group size.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "maxDbNodeStorageSizeGb": { + "description": "Output only. The total local node storage available in GBs.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "maxMemoryGb": { + "description": "Output only. The total memory available in GBs.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "memorySizeGb": { + "description": "Optional. The memory allocated in GBs.", + "format": "int32", + "type": "integer" + }, + "monthlyDbServerVersion": { + "description": "Output only. The monthly software version of the database servers (dom0) in the Exadata Infrastructure. Example: 20.1.15", + "readOnly": true, + "type": "string" + }, + "monthlyStorageServerVersion": { + "description": "Output only. The monthly software version of the storage servers (cells) in the Exadata Infrastructure. Example: 20.1.15", + "readOnly": true, + "type": "string" + }, + "nextMaintenanceRunId": { + "description": "Output only. The OCID of the next maintenance run.", + "readOnly": true, + "type": "string" + }, + "nextMaintenanceRunTime": { + "description": "Output only. The time when the next maintenance run will occur.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "nextSecurityMaintenanceRunTime": { + "description": "Output only. The time when the next security maintenance run will occur.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "ociUrl": { + "description": "Output only. Deep link to the OCI console to view this resource.", + "readOnly": true, + "type": "string" + }, + "ocid": { + "description": "Output only. OCID of created infra. https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle", + "readOnly": true, + "type": "string" + }, + "shape": { + "description": "Required. The shape of the Exadata Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance.", + "type": "string" + }, + "state": { + "description": "Output only. The current lifecycle state of the Exadata Infrastructure.", + "enum": [ + "STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + "FAILED", + "MAINTENANCE_IN_PROGRESS" + ], + "enumDescriptions": [ + "Default unspecified value.", + "The Exadata Infrastructure is being provisioned.", + "The Exadata Infrastructure is available for use.", + "The Exadata Infrastructure is being updated.", + "The Exadata Infrastructure is being terminated.", + "The Exadata Infrastructure is terminated.", + "The Exadata Infrastructure is in failed state.", + "The Exadata Infrastructure is in maintenance." + ], + "readOnly": true, + "type": "string" + }, + "storageCount": { + "description": "Optional. The number of Cloud Exadata storage servers for the Exadata Infrastructure.", + "format": "int32", + "type": "integer" + }, + "storageServerVersion": { + "description": "Output only. The software version of the storage servers (cells) in the Exadata Infrastructure.", + "readOnly": true, + "type": "string" + }, + "totalStorageSizeGb": { + "description": "Optional. The total storage allocated to the Exadata Infrastructure resource, in gigabytes (GB).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "CloudVmCluster": { + "description": "Details of the Cloud VM Cluster resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/", + "id": "CloudVmCluster", + "properties": { + "backupSubnetCidr": { + "description": "Required. CIDR range of the backup subnet.", + "type": "string" + }, + "cidr": { + "description": "Required. Network settings. CIDR to use for cluster IP allocation.", + "type": "string" + }, + "createTime": { + "description": "Output only. The date and time that the VM cluster was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. User friendly name for this resource.", + "type": "string" + }, + "exadataInfrastructure": { + "description": "Required. The name of the Exadata Infrastructure resource on which VM cluster resource is created, in the following format: projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}", + "type": "string" + }, + "gcpOracleZone": { + "description": "Output only. GCP location where Oracle Exadata is hosted. It is same as GCP Oracle zone of Exadata infrastructure.", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels or tags associated with the VM Cluster.", + "type": "object" + }, + "name": { + "description": "Identifier. The name of the VM Cluster resource with the format: projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}", + "type": "string" + }, + "network": { + "description": "Required. The name of the VPC network. Format: projects/{project}/global/networks/{network}", + "type": "string" + }, + "properties": { + "$ref": "CloudVmClusterProperties", + "description": "Optional. Various properties of the VM Cluster." + } + }, + "type": "object" + }, + "CloudVmClusterProperties": { + "description": "Various properties and settings associated with Exadata VM cluster.", + "id": "CloudVmClusterProperties", + "properties": { + "clusterName": { + "description": "Optional. OCI Cluster name.", + "type": "string" + }, + "compartmentId": { + "description": "Output only. Compartment ID of cluster.", + "readOnly": true, + "type": "string" + }, + "cpuCoreCount": { + "description": "Required. Number of enabled CPU cores.", + "format": "int32", + "type": "integer" + }, + "dataStorageSizeTb": { + "description": "Optional. The data disk group size to be allocated in TBs.", + "format": "double", + "type": "number" + }, + "dbNodeStorageSizeGb": { + "description": "Optional. Local storage per VM.", + "format": "int32", + "type": "integer" + }, + "dbServerOcids": { + "description": "Optional. OCID of database servers.", + "items": { + "type": "string" + }, + "type": "array" + }, + "diagnosticsDataCollectionOptions": { + "$ref": "DataCollectionOptions", + "description": "Optional. Data collection options for diagnostics." + }, + "diskRedundancy": { + "description": "Optional. The type of redundancy.", + "enum": [ + "DISK_REDUNDANCY_UNSPECIFIED", + "HIGH", + "NORMAL" + ], + "enumDescriptions": [ + "Unspecified.", + "High - 3 way mirror.", + "Normal - 2 way mirror." + ], + "type": "string" + }, + "dnsListenerIp": { + "description": "Output only. DNS listener IP.", + "readOnly": true, + "type": "string" + }, + "domain": { + "description": "Output only. Parent DNS domain where SCAN DNS and hosts names are qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com", + "readOnly": true, + "type": "string" + }, + "giVersion": { + "description": "Optional. Grid Infrastructure Version.", + "type": "string" + }, + "hostname": { + "description": "Output only. host name without domain. format: \"-\" with some suffix. ex: sp2-yi0xq where \"sp2\" is the hostname_prefix.", + "readOnly": true, + "type": "string" + }, + "hostnamePrefix": { + "description": "Optional. Prefix for VM cluster host names.", + "type": "string" + }, + "licenseType": { + "description": "Required. License type of VM Cluster.", + "enum": [ + "LICENSE_TYPE_UNSPECIFIED", + "LICENSE_INCLUDED", + "BRING_YOUR_OWN_LICENSE" + ], + "enumDescriptions": [ + "Unspecified", + "License included part of offer", + "Bring your own license" + ], + "type": "string" + }, + "localBackupEnabled": { + "description": "Optional. Use local backup.", + "type": "boolean" + }, + "memorySizeGb": { + "description": "Optional. Memory allocated in GBs.", + "format": "int32", + "type": "integer" + }, + "nodeCount": { + "description": "Optional. Number of database servers.", + "format": "int32", + "type": "integer" + }, + "ociUrl": { + "description": "Output only. Deep link to the OCI console to view this resource.", + "readOnly": true, + "type": "string" + }, + "ocid": { + "description": "Output only. Oracle Cloud Infrastructure ID of VM Cluster.", + "readOnly": true, + "type": "string" + }, + "ocpuCount": { + "description": "Optional. OCPU count per VM. Minimum is 0.1.", + "format": "float", + "type": "number" + }, + "scanDns": { + "description": "Output only. SCAN DNS name. ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com", + "readOnly": true, + "type": "string" + }, + "scanDnsRecordId": { + "description": "Output only. OCID of scan DNS record.", + "readOnly": true, + "type": "string" + }, + "scanIpIds": { + "description": "Output only. OCIDs of scan IPs.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "scanListenerPortTcp": { + "description": "Output only. SCAN listener port - TCP", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "scanListenerPortTcpSsl": { + "description": "Output only. SCAN listener port - TLS", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "shape": { + "description": "Output only. Shape of VM Cluster.", + "readOnly": true, + "type": "string" + }, + "sparseDiskgroupEnabled": { + "description": "Optional. Use exadata sparse snapshots.", + "type": "boolean" + }, + "sshPublicKeys": { + "description": "Optional. SSH public keys to be stored with cluster.", + "items": { + "type": "string" + }, + "type": "array" + }, + "state": { + "description": "Output only. State of the cluster.", + "enum": [ + "STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + "FAILED", + "MAINTENANCE_IN_PROGRESS" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the resource is in Provisioning state.", + "Indicates that the resource is in Available state.", + "Indicates that the resource is in Updating state.", + "Indicates that the resource is in Terminating state.", + "Indicates that the resource is in Terminated state.", + "Indicates that the resource is in Failed state.", + "Indicates that the resource is in Maintenance In Progress state." + ], + "readOnly": true, + "type": "string" + }, + "storageSizeGb": { + "description": "Output only. The storage allocation for the disk group, in gigabytes (GB).", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "systemVersion": { + "description": "Output only. Operating system version of the image.", + "readOnly": true, + "type": "string" + }, + "timeZone": { + "$ref": "TimeZone", + "description": "Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified." + } + }, + "type": "object" + }, + "CustomerContact": { + "description": "The CustomerContact reference as defined by Oracle. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact", + "id": "CustomerContact", + "properties": { + "email": { + "description": "Required. The email address used by Oracle to send notifications regarding databases and infrastructure.", + "type": "string" + } + }, + "type": "object" + }, + "DataCollectionOptions": { + "description": "Data collection options for diagnostics.", + "id": "DataCollectionOptions", + "properties": { + "diagnosticsEventsEnabled": { + "description": "Optional. Indicates whether diagnostic collection is enabled for the VM cluster", + "type": "boolean" + }, + "healthMonitoringEnabled": { + "description": "Optional. Indicates whether health monitoring is enabled for the VM cluster", + "type": "boolean" + }, + "incidentLogsEnabled": { + "description": "Optional. Indicates whether incident logs and trace collection are enabled for the VM cluster", + "type": "boolean" + } + }, + "type": "object" + }, + "DatabaseConnectionStringProfile": { + "description": "The connection string profile to allow clients to group. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile", + "id": "DatabaseConnectionStringProfile", + "properties": { + "consumerGroup": { + "description": "Output only. The current consumer group being used by the connection.", + "enum": [ + "CONSUMER_GROUP_UNSPECIFIED", + "HIGH", + "MEDIUM", + "LOW", + "TP", + "TPURGENT" + ], + "enumDescriptions": [ + "Default unspecified value.", + "High consumer group.", + "Medium consumer group.", + "Low consumer group.", + "TP consumer group.", + "TPURGENT consumer group." + ], + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Output only. The display name for the database connection.", + "readOnly": true, + "type": "string" + }, + "hostFormat": { + "description": "Output only. The host name format being currently used in connection string.", + "enum": [ + "HOST_FORMAT_UNSPECIFIED", + "FQDN", + "IP" + ], + "enumDescriptions": [ + "Default unspecified value.", + "FQDN", + "IP" + ], + "readOnly": true, + "type": "string" + }, + "isRegional": { + "description": "Output only. This field indicates if the connection string is regional and is only applicable for cross-region Data Guard.", + "readOnly": true, + "type": "boolean" + }, + "protocol": { + "description": "Output only. The protocol being used by the connection.", + "enum": [ + "PROTOCOL_UNSPECIFIED", + "TCP", + "TCPS" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Tcp", + "Tcps" + ], + "readOnly": true, + "type": "string" + }, + "sessionMode": { + "description": "Output only. The current session mode of the connection.", + "enum": [ + "SESSION_MODE_UNSPECIFIED", + "DIRECT", + "INDIRECT" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Direct", + "Indirect" + ], + "readOnly": true, + "type": "string" + }, + "syntaxFormat": { + "description": "Output only. The syntax of the connection string.", + "enum": [ + "SYNTAX_FORMAT_UNSPECIFIED", + "LONG", + "EZCONNECT", + "EZCONNECTPLUS" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Long", + "Ezconnect", + "Ezconnectplus" + ], + "readOnly": true, + "type": "string" + }, + "tlsAuthentication": { + "description": "Output only. This field indicates the TLS authentication type of the connection.", + "enum": [ + "TLS_AUTHENTICATION_UNSPECIFIED", + "SERVER", + "MUTUAL" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Server", + "Mutual" + ], + "readOnly": true, + "type": "string" + }, + "value": { + "description": "Output only. The value of the connection string.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DbNode": { + "description": "Details of the database node resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/", + "id": "DbNode", + "properties": { + "name": { + "description": "Identifier. The name of the database node resource in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}", + "type": "string" + }, + "properties": { + "$ref": "DbNodeProperties", + "description": "Optional. Various properties of the database node." + } + }, + "type": "object" + }, + "DbNodeProperties": { + "description": "Various properties and settings associated with Db node.", + "id": "DbNodeProperties", + "properties": { + "dbNodeStorageSizeGb": { + "description": "Optional. Local storage per database node.", + "format": "int32", + "type": "integer" + }, + "dbServerOcid": { + "description": "Optional. Database server OCID.", + "type": "string" + }, + "hostname": { + "description": "Optional. DNS", + "type": "string" + }, + "memorySizeGb": { + "description": "Memory allocated in GBs.", + "format": "int32", + "type": "integer" + }, + "ocid": { + "description": "Output only. OCID of database node.", + "readOnly": true, + "type": "string" + }, + "ocpuCount": { + "description": "Optional. OCPU count per database node.", + "format": "int32", + "type": "integer" + }, + "state": { + "description": "Output only. State of the database node.", + "enum": [ + "STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "STOPPING", + "STOPPED", + "STARTING", + "TERMINATING", + "TERMINATED", + "FAILED" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the resource is in Provisioning state.", + "Indicates that the resource is in Available state.", + "Indicates that the resource is in Updating state.", + "Indicates that the resource is in Stopping state.", + "Indicates that the resource is in Stopped state.", + "Indicates that the resource is in Starting state.", + "Indicates that the resource is in Terminating state.", + "Indicates that the resource is in Terminated state.", + "Indicates that the resource is in Failed state." + ], + "readOnly": true, + "type": "string" + }, + "totalCpuCoreCount": { + "description": "Total CPU core count of the database node.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DbServer": { + "description": "Details of the database server resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbServer/", + "id": "DbServer", + "properties": { + "displayName": { + "description": "Optional. User friendly name for this resource.", + "type": "string" + }, + "name": { + "description": "Identifier. The name of the database server resource with the format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}", + "type": "string" + }, + "properties": { + "$ref": "DbServerProperties", + "description": "Optional. Various properties of the database server." + } + }, + "type": "object" + }, + "DbServerProperties": { + "description": "Various properties and settings associated with Exadata database server.", + "id": "DbServerProperties", + "properties": { + "dbNodeIds": { + "description": "Output only. OCID of database nodes associated with the database server.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "dbNodeStorageSizeGb": { + "description": "Optional. Local storage per VM.", + "format": "int32", + "type": "integer" + }, + "maxDbNodeStorageSizeGb": { + "description": "Optional. Maximum local storage per VM.", + "format": "int32", + "type": "integer" + }, + "maxMemorySizeGb": { + "description": "Optional. Maximum memory allocated in GBs.", + "format": "int32", + "type": "integer" + }, + "maxOcpuCount": { + "description": "Optional. Maximum OCPU count per database.", + "format": "int32", + "type": "integer" + }, + "memorySizeGb": { + "description": "Optional. Memory allocated in GBs.", + "format": "int32", + "type": "integer" + }, + "ocid": { + "description": "Output only. OCID of database server.", + "readOnly": true, + "type": "string" + }, + "ocpuCount": { + "description": "Optional. OCPU count per database.", + "format": "int32", + "type": "integer" + }, + "state": { + "description": "Output only. State of the database server.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "AVAILABLE", + "UNAVAILABLE", + "DELETING", + "DELETED" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the resource is in Creating state.", + "Indicates that the resource is in Available state.", + "Indicates that the resource is in Unavailable state.", + "Indicates that the resource is in Deleting state.", + "Indicates that the resource is in Deleted state." + ], + "readOnly": true, + "type": "string" + }, + "vmCount": { + "description": "Optional. Vm count per database.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DbSystemShape": { + "description": "Details of the Database System Shapes resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/", + "id": "DbSystemShape", + "properties": { + "availableCoreCountPerNode": { + "description": "Optional. Number of cores per node.", + "format": "int32", + "type": "integer" + }, + "availableDataStorageTb": { + "description": "Optional. Storage per storage server in terabytes.", + "format": "int32", + "type": "integer" + }, + "availableMemoryPerNodeGb": { + "description": "Optional. Memory per database server node in gigabytes.", + "format": "int32", + "type": "integer" + }, + "maxNodeCount": { + "description": "Optional. Maximum number of database servers.", + "format": "int32", + "type": "integer" + }, + "maxStorageCount": { + "description": "Optional. Maximum number of storage servers.", + "format": "int32", + "type": "integer" + }, + "minCoreCountPerNode": { + "description": "Optional. Minimum core count per node.", + "format": "int32", + "type": "integer" + }, + "minDbNodeStoragePerNodeGb": { + "description": "Optional. Minimum node storage per database server in gigabytes.", + "format": "int32", + "type": "integer" + }, + "minMemoryPerNodeGb": { + "description": "Optional. Minimum memory per node in gigabytes.", + "format": "int32", + "type": "integer" + }, + "minNodeCount": { + "description": "Optional. Minimum number of database servers.", + "format": "int32", + "type": "integer" + }, + "minStorageCount": { + "description": "Optional. Minimum number of storage servers.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "Identifier. The name of the Database System Shape resource with the format: projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}", + "type": "string" + }, + "shape": { + "description": "Optional. shape", + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "Entitlement": { + "description": "Details of the Entitlement resource.", + "id": "Entitlement", + "properties": { + "cloudAccountDetails": { + "$ref": "CloudAccountDetails", + "description": "Details of the OCI Cloud Account." + }, + "entitlementId": { + "description": "Output only. Google Cloud Marketplace order ID (aka entitlement ID)", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the Entitlement resource with the format: projects/{project}/locations/{region}/entitlements/{entitlement}", + "type": "string" + }, + "state": { + "description": "Output only. Entitlement State.", + "enum": [ + "STATE_UNSPECIFIED", + "ACCOUNT_NOT_LINKED", + "ACCOUNT_NOT_ACTIVE", + "ACTIVE" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Account not linked.", + "Account is linked but not active.", + "Entitlement and Account are active." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GenerateAutonomousDatabaseWalletRequest": { + "description": "The request for `AutonomousDatabase.GenerateWallet`.", + "id": "GenerateAutonomousDatabaseWalletRequest", + "properties": { + "isRegional": { + "description": "Optional. True when requesting regional connection strings in PDB connect info, applicable to cross-region Data Guard only.", + "type": "boolean" + }, + "password": { + "description": "Required. The password used to encrypt the keys inside the wallet. The password must be a minimum of 8 characters.", + "type": "string" + }, + "type": { + "description": "Optional. The type of wallet generation for the Autonomous Database. The default value is SINGLE.", + "enum": [ + "GENERATE_TYPE_UNSPECIFIED", + "ALL", + "SINGLE" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Used to generate wallet for all databases in the region.", + "Used to generate wallet for a single database." + ], + "type": "string" + } + }, + "type": "object" + }, + "GenerateAutonomousDatabaseWalletResponse": { + "description": "The response for `AutonomousDatabase.GenerateWallet`.", + "id": "GenerateAutonomousDatabaseWalletResponse", + "properties": { + "archiveContent": { + "description": "Output only. The base64 encoded wallet files.", + "format": "byte", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GiVersion": { + "description": "Details of the Oracle Grid Infrastructure (GI) version resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiVersionSummary/", + "id": "GiVersion", + "properties": { + "name": { + "description": "Identifier. The name of the Oracle Grid Infrastructure (GI) version resource with the format: projects/{project}/locations/{region}/giVersions/{gi_versions}", + "type": "string" + }, + "version": { + "description": "Optional. version", + "type": "string" + } + }, + "type": "object" + }, + "ListAutonomousDatabaseBackupsResponse": { + "description": "The response for `AutonomousDatabaseBackup.List`.", + "id": "ListAutonomousDatabaseBackupsResponse", + "properties": { + "autonomousDatabaseBackups": { + "description": "The list of Autonomous Database Backups.", + "items": { + "$ref": "AutonomousDatabaseBackup" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListAutonomousDatabaseCharacterSetsResponse": { + "description": "The response for `AutonomousDatabaseCharacterSet.List`.", + "id": "ListAutonomousDatabaseCharacterSetsResponse", + "properties": { + "autonomousDatabaseCharacterSets": { + "description": "The list of Autonomous Database Character Sets.", + "items": { + "$ref": "AutonomousDatabaseCharacterSet" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListAutonomousDatabasesResponse": { + "description": "The response for `AutonomousDatabase.List`.", + "id": "ListAutonomousDatabasesResponse", + "properties": { + "autonomousDatabases": { + "description": "The list of Autonomous Databases.", + "items": { + "$ref": "AutonomousDatabase" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListAutonomousDbVersionsResponse": { + "description": "The response for `AutonomousDbVersion.List`.", + "id": "ListAutonomousDbVersionsResponse", + "properties": { + "autonomousDbVersions": { + "description": "The list of Autonomous Database versions.", + "items": { + "$ref": "AutonomousDbVersion" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListCloudExadataInfrastructuresResponse": { + "description": "The response for `CloudExadataInfrastructures.list`.", + "id": "ListCloudExadataInfrastructuresResponse", + "properties": { + "cloudExadataInfrastructures": { + "description": "The list of Exadata Infrastructures.", + "items": { + "$ref": "CloudExadataInfrastructure" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token for fetching next page of response.", + "type": "string" + } + }, + "type": "object" + }, + "ListCloudVmClustersResponse": { + "description": "The response for `CloudVmCluster.List`.", + "id": "ListCloudVmClustersResponse", + "properties": { + "cloudVmClusters": { + "description": "The list of VM Clusters.", + "items": { + "$ref": "CloudVmCluster" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to fetch the next page of results.", + "type": "string" + } + }, + "type": "object" + }, + "ListDbNodesResponse": { + "description": "The response for `DbNode.List`.", + "id": "ListDbNodesResponse", + "properties": { + "dbNodes": { + "description": "The list of DB Nodes", + "items": { + "$ref": "DbNode" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the node should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListDbServersResponse": { + "description": "The response for `DbServer.List`.", + "id": "ListDbServersResponse", + "properties": { + "dbServers": { + "description": "The list of database servers.", + "items": { + "$ref": "DbServer" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListDbSystemShapesResponse": { + "description": "The response for `DbSystemShape.List`.", + "id": "ListDbSystemShapesResponse", + "properties": { + "dbSystemShapes": { + "description": "The list of Database System shapes.", + "items": { + "$ref": "DbSystemShape" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListEntitlementsResponse": { + "description": "The response for `Entitlement.List`.", + "id": "ListEntitlementsResponse", + "properties": { + "entitlements": { + "description": "The list of Entitlements", + "items": { + "$ref": "Entitlement" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListGiVersionsResponse": { + "description": "The response for `GiVersion.List`.", + "id": "ListGiVersionsResponse", + "properties": { + "giVersions": { + "description": "The list of Oracle Grid Infrastructure (GI) versions.", + "items": { + "$ref": "GiVersion" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents a Google Cloud location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "LocationMetadata": { + "description": "Metadata for a given Location.", + "id": "LocationMetadata", + "properties": { + "gcpOracleZones": { + "description": "Output only. GCP Oracle zones in a location.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "MaintenanceWindow": { + "description": "Maintenance window as defined by Oracle. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow", + "id": "MaintenanceWindow", + "properties": { + "customActionTimeoutMins": { + "description": "Optional. Determines the amount of time the system will wait before the start of each database server patching operation. Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive).", + "format": "int32", + "type": "integer" + }, + "daysOfWeek": { + "description": "Optional. Days during the week when maintenance should be performed.", + "items": { + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "type": "array" + }, + "hoursOfDay": { + "description": "Optional. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are: 0 - represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - represents time slot 20:00 - 23:59 UTC", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "isCustomActionTimeoutEnabled": { + "description": "Optional. If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.", + "type": "boolean" + }, + "leadTimeWeek": { + "description": "Optional. Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4.", + "format": "int32", + "type": "integer" + }, + "months": { + "description": "Optional. Months during the year when maintenance should be performed.", + "items": { + "enum": [ + "MONTH_UNSPECIFIED", + "JANUARY", + "FEBRUARY", + "MARCH", + "APRIL", + "MAY", + "JUNE", + "JULY", + "AUGUST", + "SEPTEMBER", + "OCTOBER", + "NOVEMBER", + "DECEMBER" + ], + "enumDescriptions": [ + "The unspecified month.", + "The month of January.", + "The month of February.", + "The month of March.", + "The month of April.", + "The month of May.", + "The month of June.", + "The month of July.", + "The month of August.", + "The month of September.", + "The month of October.", + "The month of November.", + "The month of December." + ], + "type": "string" + }, + "type": "array" + }, + "patchingMode": { + "description": "Optional. Cloud CloudExadataInfrastructure node patching method, either \"ROLLING\" or \"NONROLLING\". Default value is ROLLING.", + "enum": [ + "PATCHING_MODE_UNSPECIFIED", + "ROLLING", + "NON_ROLLING" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Updates the Cloud Exadata database server hosts in a rolling fashion.", + "The non-rolling maintenance method first updates your storage servers at the same time, then your database servers at the same time." + ], + "type": "string" + }, + "preference": { + "description": "Optional. The maintenance window scheduling preference.", + "enum": [ + "MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED", + "CUSTOM_PREFERENCE", + "NO_PREFERENCE" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Custom preference.", + "No preference." + ], + "type": "string" + }, + "weeksOfMonth": { + "description": "Optional. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "percentComplete": { + "description": "Output only. An estimated percentage of the operation that has been completed at a given moment of time, between 0 and 100.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. The status of the operation.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "RestoreAutonomousDatabaseRequest": { + "description": "The request for `AutonomousDatabase.Restore`.", + "id": "RestoreAutonomousDatabaseRequest", + "properties": { + "restoreTime": { + "description": "Required. The time and date to restore the database to.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "ScheduledOperationDetails": { + "description": "Details of scheduled operation. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/ScheduledOperationDetails", + "id": "ScheduledOperationDetails", + "properties": { + "dayOfWeek": { + "description": "Output only. Day of week.", + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "readOnly": true, + "type": "string" + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Output only. Auto start time.", + "readOnly": true + }, + "stopTime": { + "$ref": "TimeOfDay", + "description": "Output only. Auto stop time.", + "readOnly": true + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "TimeOfDay": { + "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", + "id": "TimeOfDay", + "properties": { + "hours": { + "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Minutes of hour of day. Must be from 0 to 59.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "TimeZone": { + "description": "Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).", + "id": "TimeZone", + "properties": { + "id": { + "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "type": "string" + }, + "version": { + "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Oracle Database@Google Cloud API", + "version": "v1", + "version_module": true +} \ No newline at end of file diff --git a/oracledatabase/v1/oracledatabase-gen.go b/oracledatabase/v1/oracledatabase-gen.go new file mode 100644 index 00000000000..fc658cd7e3c --- /dev/null +++ b/oracledatabase/v1/oracledatabase-gen.go @@ -0,0 +1,6394 @@ +// Copyright 2024 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package oracledatabase provides access to the Oracle Database@Google Cloud API. +// +// For product documentation, see: https://cloud.google.com/oracle/database/docs +// +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/oracledatabase/v1" +// ... +// ctx := context.Background() +// oracledatabaseService, err := oracledatabase.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: +// +// oracledatabaseService, err := oracledatabase.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// oracledatabaseService, err := oracledatabase.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See [google.golang.org/api/option.ClientOption] for details on options. +package oracledatabase // import "google.golang.org/api/oracledatabase/v1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version + +const apiId = "oracledatabase:v1" +const apiName = "oracledatabase" +const apiVersion = "v1" +const basePath = "https://oracledatabase.googleapis.com/" +const basePathTemplate = "https://oracledatabase.UNIVERSE_DOMAIN/" +const mtlsBasePath = "https://oracledatabase.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.AutonomousDatabaseBackups = NewProjectsLocationsAutonomousDatabaseBackupsService(s) + rs.AutonomousDatabaseCharacterSets = NewProjectsLocationsAutonomousDatabaseCharacterSetsService(s) + rs.AutonomousDatabases = NewProjectsLocationsAutonomousDatabasesService(s) + rs.AutonomousDbVersions = NewProjectsLocationsAutonomousDbVersionsService(s) + rs.CloudExadataInfrastructures = NewProjectsLocationsCloudExadataInfrastructuresService(s) + rs.CloudVmClusters = NewProjectsLocationsCloudVmClustersService(s) + rs.DbSystemShapes = NewProjectsLocationsDbSystemShapesService(s) + rs.Entitlements = NewProjectsLocationsEntitlementsService(s) + rs.GiVersions = NewProjectsLocationsGiVersionsService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + AutonomousDatabaseBackups *ProjectsLocationsAutonomousDatabaseBackupsService + + AutonomousDatabaseCharacterSets *ProjectsLocationsAutonomousDatabaseCharacterSetsService + + AutonomousDatabases *ProjectsLocationsAutonomousDatabasesService + + AutonomousDbVersions *ProjectsLocationsAutonomousDbVersionsService + + CloudExadataInfrastructures *ProjectsLocationsCloudExadataInfrastructuresService + + CloudVmClusters *ProjectsLocationsCloudVmClustersService + + DbSystemShapes *ProjectsLocationsDbSystemShapesService + + Entitlements *ProjectsLocationsEntitlementsService + + GiVersions *ProjectsLocationsGiVersionsService + + Operations *ProjectsLocationsOperationsService +} + +func NewProjectsLocationsAutonomousDatabaseBackupsService(s *Service) *ProjectsLocationsAutonomousDatabaseBackupsService { + rs := &ProjectsLocationsAutonomousDatabaseBackupsService{s: s} + return rs +} + +type ProjectsLocationsAutonomousDatabaseBackupsService struct { + s *Service +} + +func NewProjectsLocationsAutonomousDatabaseCharacterSetsService(s *Service) *ProjectsLocationsAutonomousDatabaseCharacterSetsService { + rs := &ProjectsLocationsAutonomousDatabaseCharacterSetsService{s: s} + return rs +} + +type ProjectsLocationsAutonomousDatabaseCharacterSetsService struct { + s *Service +} + +func NewProjectsLocationsAutonomousDatabasesService(s *Service) *ProjectsLocationsAutonomousDatabasesService { + rs := &ProjectsLocationsAutonomousDatabasesService{s: s} + return rs +} + +type ProjectsLocationsAutonomousDatabasesService struct { + s *Service +} + +func NewProjectsLocationsAutonomousDbVersionsService(s *Service) *ProjectsLocationsAutonomousDbVersionsService { + rs := &ProjectsLocationsAutonomousDbVersionsService{s: s} + return rs +} + +type ProjectsLocationsAutonomousDbVersionsService struct { + s *Service +} + +func NewProjectsLocationsCloudExadataInfrastructuresService(s *Service) *ProjectsLocationsCloudExadataInfrastructuresService { + rs := &ProjectsLocationsCloudExadataInfrastructuresService{s: s} + rs.DbServers = NewProjectsLocationsCloudExadataInfrastructuresDbServersService(s) + return rs +} + +type ProjectsLocationsCloudExadataInfrastructuresService struct { + s *Service + + DbServers *ProjectsLocationsCloudExadataInfrastructuresDbServersService +} + +func NewProjectsLocationsCloudExadataInfrastructuresDbServersService(s *Service) *ProjectsLocationsCloudExadataInfrastructuresDbServersService { + rs := &ProjectsLocationsCloudExadataInfrastructuresDbServersService{s: s} + return rs +} + +type ProjectsLocationsCloudExadataInfrastructuresDbServersService struct { + s *Service +} + +func NewProjectsLocationsCloudVmClustersService(s *Service) *ProjectsLocationsCloudVmClustersService { + rs := &ProjectsLocationsCloudVmClustersService{s: s} + rs.DbNodes = NewProjectsLocationsCloudVmClustersDbNodesService(s) + return rs +} + +type ProjectsLocationsCloudVmClustersService struct { + s *Service + + DbNodes *ProjectsLocationsCloudVmClustersDbNodesService +} + +func NewProjectsLocationsCloudVmClustersDbNodesService(s *Service) *ProjectsLocationsCloudVmClustersDbNodesService { + rs := &ProjectsLocationsCloudVmClustersDbNodesService{s: s} + return rs +} + +type ProjectsLocationsCloudVmClustersDbNodesService struct { + s *Service +} + +func NewProjectsLocationsDbSystemShapesService(s *Service) *ProjectsLocationsDbSystemShapesService { + rs := &ProjectsLocationsDbSystemShapesService{s: s} + return rs +} + +type ProjectsLocationsDbSystemShapesService struct { + s *Service +} + +func NewProjectsLocationsEntitlementsService(s *Service) *ProjectsLocationsEntitlementsService { + rs := &ProjectsLocationsEntitlementsService{s: s} + return rs +} + +type ProjectsLocationsEntitlementsService struct { + s *Service +} + +func NewProjectsLocationsGiVersionsService(s *Service) *ProjectsLocationsGiVersionsService { + rs := &ProjectsLocationsGiVersionsService{s: s} + return rs +} + +type ProjectsLocationsGiVersionsService struct { + s *Service +} + +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + +// AllConnectionStrings: A list of all connection strings that can be used to +// connect to the Autonomous Database. +type AllConnectionStrings struct { + // High: Output only. The database service provides the highest level of + // resources to each SQL statement. + High string `json:"high,omitempty"` + // Low: Output only. The database service provides the least level of resources + // to each SQL statement. + Low string `json:"low,omitempty"` + // Medium: Output only. The database service provides a lower level of + // resources to each SQL statement. + Medium string `json:"medium,omitempty"` + // ForceSendFields is a list of field names (e.g. "High") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "High") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AllConnectionStrings) MarshalJSON() ([]byte, error) { + type NoMethod AllConnectionStrings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AutonomousDatabase: Details of the Autonomous Database resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ +type AutonomousDatabase struct { + // AdminPassword: Optional. The password for the default ADMIN user. + AdminPassword string `json:"adminPassword,omitempty"` + // Cidr: Required. The subnet CIDR range for the Autonmous Database. + Cidr string `json:"cidr,omitempty"` + // CreateTime: Output only. The date and time that the Autonomous Database was + // created. + CreateTime string `json:"createTime,omitempty"` + // Database: Optional. The name of the Autonomous Database. The database name + // must be unique in the project. The name must begin with a letter and can + // contain a maximum of 30 alphanumeric characters. + Database string `json:"database,omitempty"` + // DisplayName: Optional. The display name for the Autonomous Database. The + // name does not have to be unique within your project. + DisplayName string `json:"displayName,omitempty"` + // EntitlementId: Output only. The ID of the subscription entitlement + // associated with the Autonomous Database. + EntitlementId string `json:"entitlementId,omitempty"` + // Labels: Optional. The labels or tags associated with the Autonomous + // Database. + Labels map[string]string `json:"labels,omitempty"` + // Name: Identifier. The name of the Autonomous Database resource in the + // following format: + // projects/{project}/locations/{region}/autonomousDatabases/{autonomous_databas + // e} + Name string `json:"name,omitempty"` + // Network: Required. The name of the VPC network used by the Autonomous + // Database. Format: projects/{project}/global/networks/{network} + Network string `json:"network,omitempty"` + // Properties: Optional. The properties of the Autonomous Database. + Properties *AutonomousDatabaseProperties `json:"properties,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AdminPassword") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdminPassword") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutonomousDatabase) MarshalJSON() ([]byte, error) { + type NoMethod AutonomousDatabase + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AutonomousDatabaseApex: Oracle APEX Application Development. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseApex +type AutonomousDatabaseApex struct { + // ApexVersion: Output only. The Oracle APEX Application Development version. + ApexVersion string `json:"apexVersion,omitempty"` + // OrdsVersion: Output only. The Oracle REST Data Services (ORDS) version. + OrdsVersion string `json:"ordsVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApexVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApexVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutonomousDatabaseApex) MarshalJSON() ([]byte, error) { + type NoMethod AutonomousDatabaseApex + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AutonomousDatabaseBackup: Details of the Autonomous Database Backup +// resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/ +type AutonomousDatabaseBackup struct { + // AutonomousDatabase: Required. The name of the Autonomous Database resource + // for which the backup is being created. Format: + // projects/{project}/locations/{region}/autonomousDatabases/{autonomous_databas + // e} + AutonomousDatabase string `json:"autonomousDatabase,omitempty"` + // DisplayName: Optional. User friendly name for the Backup. The name does not + // have to be unique. + DisplayName string `json:"displayName,omitempty"` + // Labels: Optional. labels or tags associated with the resource. + Labels map[string]string `json:"labels,omitempty"` + // Name: Identifier. The name of the Autonomous Database Backup resource with + // the format: + // projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_d + // atabase_backup} + Name string `json:"name,omitempty"` + // Properties: Optional. Various properties of the backup. + Properties *AutonomousDatabaseBackupProperties `json:"properties,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutonomousDatabase") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutonomousDatabase") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutonomousDatabaseBackup) MarshalJSON() ([]byte, error) { + type NoMethod AutonomousDatabaseBackup + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AutonomousDatabaseBackupProperties: Properties of the Autonomous Database +// Backup resource. +type AutonomousDatabaseBackupProperties struct { + // AvailableTillTime: Output only. Timestamp until when the backup will be + // available. + AvailableTillTime string `json:"availableTillTime,omitempty"` + // CompartmentId: Output only. The OCID of the compartment. + CompartmentId string `json:"compartmentId,omitempty"` + // DatabaseSizeTb: Output only. The quantity of data in the database, in + // terabytes. + DatabaseSizeTb float64 `json:"databaseSizeTb,omitempty"` + // DbVersion: Output only. A valid Oracle Database version for Autonomous + // Database. + DbVersion string `json:"dbVersion,omitempty"` + // EndTime: Output only. The date and time the backup completed. + EndTime string `json:"endTime,omitempty"` + // IsAutomaticBackup: Output only. Indicates if the backup is automatic or user + // initiated. + IsAutomaticBackup bool `json:"isAutomaticBackup,omitempty"` + // IsLongTermBackup: Output only. Indicates if the backup is long term backup. + IsLongTermBackup bool `json:"isLongTermBackup,omitempty"` + // IsRestorable: Output only. Indicates if the backup can be used to restore + // the Autonomous Database. + IsRestorable bool `json:"isRestorable,omitempty"` + // KeyStoreId: Optional. The OCID of the key store of Oracle Vault. + KeyStoreId string `json:"keyStoreId,omitempty"` + // KeyStoreWallet: Optional. The wallet name for Oracle Key Vault. + KeyStoreWallet string `json:"keyStoreWallet,omitempty"` + // KmsKeyId: Optional. The OCID of the key container that is used as the master + // encryption key in database transparent data encryption (TDE) operations. + KmsKeyId string `json:"kmsKeyId,omitempty"` + // KmsKeyVersionId: Optional. The OCID of the key container version that is + // used in database transparent data encryption (TDE) operations KMS Key can + // have multiple key versions. If none is specified, the current key version + // (latest) of the Key Id is used for the operation. Autonomous Database + // Serverless does not use key versions, hence is not applicable for Autonomous + // Database Serverless instances. + KmsKeyVersionId string `json:"kmsKeyVersionId,omitempty"` + // LifecycleDetails: Output only. Additional information about the current + // lifecycle state. + LifecycleDetails string `json:"lifecycleDetails,omitempty"` + // LifecycleState: Output only. The lifecycle state of the backup. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default unspecified value. + // "CREATING" - Indicates that the resource is in Creating state. + // "ACTIVE" - Indicates that the resource is in Active state. + // "DELETING" - Indicates that the resource is in Deleting state. + // "DELETED" - Indicates that the resource is in Deleted state. + // "FAILED" - Indicates that the resource is in Failed state. + // "UPDATING" - Indicates that the resource is in Updating state. + LifecycleState string `json:"lifecycleState,omitempty"` + // Ocid: Output only. OCID of the Autonomous Database backup. + // https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + Ocid string `json:"ocid,omitempty"` + // RetentionPeriodDays: Optional. Retention period in days for the backup. + RetentionPeriodDays int64 `json:"retentionPeriodDays,omitempty"` + // SizeTb: Output only. The backup size in terabytes. + SizeTb float64 `json:"sizeTb,omitempty"` + // StartTime: Output only. The date and time the backup started. + StartTime string `json:"startTime,omitempty"` + // Type: Output only. The type of the backup. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Default unspecified value. + // "INCREMENTAL" - Incremental backups. + // "FULL" - Full backups. + // "LONG_TERM" - Long term backups. + Type string `json:"type,omitempty"` + // VaultId: Optional. The OCID of the vault. + VaultId string `json:"vaultId,omitempty"` + // ForceSendFields is a list of field names (e.g. "AvailableTillTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AvailableTillTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutonomousDatabaseBackupProperties) MarshalJSON() ([]byte, error) { + type NoMethod AutonomousDatabaseBackupProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *AutonomousDatabaseBackupProperties) UnmarshalJSON(data []byte) error { + type NoMethod AutonomousDatabaseBackupProperties + var s1 struct { + DatabaseSizeTb gensupport.JSONFloat64 `json:"databaseSizeTb"` + SizeTb gensupport.JSONFloat64 `json:"sizeTb"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DatabaseSizeTb = float64(s1.DatabaseSizeTb) + s.SizeTb = float64(s1.SizeTb) + return nil +} + +// AutonomousDatabaseCharacterSet: Details of the Autonomous Database character +// set resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/ +type AutonomousDatabaseCharacterSet struct { + // CharacterSet: Output only. The character set name for the Autonomous + // Database which is the ID in the resource name. + CharacterSet string `json:"characterSet,omitempty"` + // CharacterSetType: Output only. The character set type for the Autonomous + // Database. + // + // Possible values: + // "CHARACTER_SET_TYPE_UNSPECIFIED" - Character set type is not specified. + // "DATABASE" - Character set type is set to database. + // "NATIONAL" - Character set type is set to national. + CharacterSetType string `json:"characterSetType,omitempty"` + // Name: Identifier. The name of the Autonomous Database Character Set resource + // in the following format: + // projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autono + // mous_database_character_set} + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "CharacterSet") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CharacterSet") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutonomousDatabaseCharacterSet) MarshalJSON() ([]byte, error) { + type NoMethod AutonomousDatabaseCharacterSet + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AutonomousDatabaseConnectionStrings: The connection string used to connect +// to the Autonomous Database. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionStrings +type AutonomousDatabaseConnectionStrings struct { + // AllConnectionStrings: Output only. Returns all connection strings that can + // be used to connect to the Autonomous Database. + AllConnectionStrings *AllConnectionStrings `json:"allConnectionStrings,omitempty"` + // Dedicated: Output only. The database service provides the least level of + // resources to each SQL statement, but supports the most number of concurrent + // SQL statements. + Dedicated string `json:"dedicated,omitempty"` + // High: Output only. The database service provides the highest level of + // resources to each SQL statement. + High string `json:"high,omitempty"` + // Low: Output only. The database service provides the least level of resources + // to each SQL statement. + Low string `json:"low,omitempty"` + // Medium: Output only. The database service provides a lower level of + // resources to each SQL statement. + Medium string `json:"medium,omitempty"` + // Profiles: Output only. A list of connection string profiles to allow clients + // to group, filter, and select values based on the structured metadata. + Profiles []*DatabaseConnectionStringProfile `json:"profiles,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllConnectionStrings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AllConnectionStrings") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutonomousDatabaseConnectionStrings) MarshalJSON() ([]byte, error) { + type NoMethod AutonomousDatabaseConnectionStrings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AutonomousDatabaseConnectionUrls: The URLs for accessing Oracle Application +// Express (APEX) and SQL Developer Web with a browser from a Compute instance. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionUrls +type AutonomousDatabaseConnectionUrls struct { + // ApexUri: Output only. Oracle Application Express (APEX) URL. + ApexUri string `json:"apexUri,omitempty"` + // DatabaseTransformsUri: Output only. The URL of the Database Transforms for + // the Autonomous Database. + DatabaseTransformsUri string `json:"databaseTransformsUri,omitempty"` + // GraphStudioUri: Output only. The URL of the Graph Studio for the Autonomous + // Database. + GraphStudioUri string `json:"graphStudioUri,omitempty"` + // MachineLearningNotebookUri: Output only. The URL of the Oracle Machine + // Learning (OML) Notebook for the Autonomous Database. + MachineLearningNotebookUri string `json:"machineLearningNotebookUri,omitempty"` + // MachineLearningUserManagementUri: Output only. The URL of Machine Learning + // user management the Autonomous Database. + MachineLearningUserManagementUri string `json:"machineLearningUserManagementUri,omitempty"` + // MongoDbUri: Output only. The URL of the MongoDB API for the Autonomous + // Database. + MongoDbUri string `json:"mongoDbUri,omitempty"` + // OrdsUri: Output only. The Oracle REST Data Services (ORDS) URL of the Web + // Access for the Autonomous Database. + OrdsUri string `json:"ordsUri,omitempty"` + // SqlDevWebUri: Output only. The URL of the Oracle SQL Developer Web for the + // Autonomous Database. + SqlDevWebUri string `json:"sqlDevWebUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApexUri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApexUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutonomousDatabaseConnectionUrls) MarshalJSON() ([]byte, error) { + type NoMethod AutonomousDatabaseConnectionUrls + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AutonomousDatabaseProperties: The properties of an Autonomous Database. +type AutonomousDatabaseProperties struct { + // ActualUsedDataStorageSizeTb: Output only. The amount of storage currently + // being used for user and system data, in terabytes. + ActualUsedDataStorageSizeTb float64 `json:"actualUsedDataStorageSizeTb,omitempty"` + // AllocatedStorageSizeTb: Output only. The amount of storage currently + // allocated for the database tables and billed for, rounded up in terabytes. + AllocatedStorageSizeTb float64 `json:"allocatedStorageSizeTb,omitempty"` + // ApexDetails: Output only. The details for the Oracle APEX Application + // Development. + ApexDetails *AutonomousDatabaseApex `json:"apexDetails,omitempty"` + // ArePrimaryAllowlistedIpsUsed: Output only. This field indicates the status + // of Data Guard and Access control for the Autonomous Database. The field's + // value is null if Data Guard is disabled or Access Control is disabled. The + // field's value is TRUE if both Data Guard and Access Control are enabled, and + // the Autonomous Database is using primary IP access control list (ACL) for + // standby. The field's value is FALSE if both Data Guard and Access Control + // are enabled, and the Autonomous Database is using a different IP access + // control list (ACL) for standby compared to primary. + ArePrimaryAllowlistedIpsUsed bool `json:"arePrimaryAllowlistedIpsUsed,omitempty"` + // AutonomousContainerDatabaseId: Output only. The Autonomous Container + // Database OCID. + AutonomousContainerDatabaseId string `json:"autonomousContainerDatabaseId,omitempty"` + // AvailableUpgradeVersions: Output only. The list of available Oracle Database + // upgrade versions for an Autonomous Database. + AvailableUpgradeVersions []string `json:"availableUpgradeVersions,omitempty"` + // BackupRetentionPeriodDays: Optional. The retention period for the Autonomous + // Database. This field is specified in days, can range from 1 day to 60 days, + // and has a default value of 60 days. + BackupRetentionPeriodDays int64 `json:"backupRetentionPeriodDays,omitempty"` + // CharacterSet: Optional. The character set for the Autonomous Database. The + // default is AL32UTF8. + CharacterSet string `json:"characterSet,omitempty"` + // ComputeCount: Optional. The number of compute servers for the Autonomous + // Database. + ComputeCount float64 `json:"computeCount,omitempty"` + // ConnectionStrings: Output only. The connection strings used to connect to an + // Autonomous Database. + ConnectionStrings *AutonomousDatabaseConnectionStrings `json:"connectionStrings,omitempty"` + // ConnectionUrls: Output only. The Oracle Connection URLs for an Autonomous + // Database. + ConnectionUrls *AutonomousDatabaseConnectionUrls `json:"connectionUrls,omitempty"` + // CpuCoreCount: Optional. The number of CPU cores to be made available to the + // database. + CpuCoreCount int64 `json:"cpuCoreCount,omitempty"` + // CustomerContacts: Optional. The list of customer contacts. + CustomerContacts []*CustomerContact `json:"customerContacts,omitempty"` + // DataSafeState: Output only. The current state of the Data Safe registration + // for the Autonomous Database. + // + // Possible values: + // "DATA_SAFE_STATE_UNSPECIFIED" - Default unspecified value. + // "REGISTERING" - Registering data safe state. + // "REGISTERED" - Registered data safe state. + // "DEREGISTERING" - Deregistering data safe state. + // "NOT_REGISTERED" - Not registered data safe state. + // "FAILED" - Failed data safe state. + DataSafeState string `json:"dataSafeState,omitempty"` + // DataStorageSizeGb: Optional. The size of the data stored in the database, in + // gigabytes. + DataStorageSizeGb int64 `json:"dataStorageSizeGb,omitempty"` + // DataStorageSizeTb: Optional. The size of the data stored in the database, in + // terabytes. + DataStorageSizeTb int64 `json:"dataStorageSizeTb,omitempty"` + // DatabaseManagementState: Output only. The current state of database + // management for the Autonomous Database. + // + // Possible values: + // "DATABASE_MANAGEMENT_STATE_UNSPECIFIED" - Default unspecified value. + // "ENABLING" - Enabling Database Management state + // "ENABLED" - Enabled Database Management state + // "DISABLING" - Disabling Database Management state + // "NOT_ENABLED" - Not Enabled Database Management state + // "FAILED_ENABLING" - Failed enabling Database Management state + // "FAILED_DISABLING" - Failed disabling Database Management state + DatabaseManagementState string `json:"databaseManagementState,omitempty"` + // DbEdition: Optional. The edition of the Autonomous Databases. + // + // Possible values: + // "DATABASE_EDITION_UNSPECIFIED" - Default unspecified value. + // "STANDARD_EDITION" - Standard Database Edition + // "ENTERPRISE_EDITION" - Enterprise Database Edition + DbEdition string `json:"dbEdition,omitempty"` + // DbVersion: Optional. The Oracle Database version for the Autonomous + // Database. + DbVersion string `json:"dbVersion,omitempty"` + // DbWorkload: Required. The workload type of the Autonomous Database. + // + // Possible values: + // "DB_WORKLOAD_UNSPECIFIED" - Default unspecified value. + // "OLTP" - Autonomous Transaction Processing database. + // "DW" - Autonomous Data Warehouse database. + // "AJD" - Autonomous JSON Database. + // "APEX" - Autonomous Database with the Oracle APEX Application Development + // workload type. + DbWorkload string `json:"dbWorkload,omitempty"` + // FailedDataRecoveryDuration: Output only. This field indicates the number of + // seconds of data loss during a Data Guard failover. + FailedDataRecoveryDuration string `json:"failedDataRecoveryDuration,omitempty"` + // IsAutoScalingEnabled: Optional. This field indicates if auto scaling is + // enabled for the Autonomous Database CPU core count. + IsAutoScalingEnabled bool `json:"isAutoScalingEnabled,omitempty"` + // IsLocalDataGuardEnabled: Output only. This field indicates whether the + // Autonomous Database has local (in-region) Data Guard enabled. + IsLocalDataGuardEnabled bool `json:"isLocalDataGuardEnabled,omitempty"` + // IsStorageAutoScalingEnabled: Optional. This field indicates if auto scaling + // is enabled for the Autonomous Database storage. + IsStorageAutoScalingEnabled bool `json:"isStorageAutoScalingEnabled,omitempty"` + // LicenseType: Required. The license type used for the Autonomous Database. + // + // Possible values: + // "LICENSE_TYPE_UNSPECIFIED" - Unspecified + // "LICENSE_INCLUDED" - License included part of offer + // "BRING_YOUR_OWN_LICENSE" - Bring your own license + LicenseType string `json:"licenseType,omitempty"` + // LifecycleDetails: Output only. The details of the current lifestyle state of + // the Autonomous Database. + LifecycleDetails string `json:"lifecycleDetails,omitempty"` + // LocalAdgAutoFailoverMaxDataLossLimit: Output only. This field indicates the + // maximum data loss limit for an Autonomous Database, in seconds. + LocalAdgAutoFailoverMaxDataLossLimit int64 `json:"localAdgAutoFailoverMaxDataLossLimit,omitempty"` + // LocalDisasterRecoveryType: Output only. This field indicates the local + // disaster recovery (DR) type of an Autonomous Database. + // + // Possible values: + // "LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED" - Default unspecified value. + // "ADG" - Autonomous Data Guard recovery. + // "BACKUP_BASED" - Backup based recovery. + LocalDisasterRecoveryType string `json:"localDisasterRecoveryType,omitempty"` + // LocalStandbyDb: Output only. The details of the Autonomous Data Guard + // standby database. + LocalStandbyDb *AutonomousDatabaseStandbySummary `json:"localStandbyDb,omitempty"` + // MaintenanceBeginTime: Output only. The date and time when maintenance will + // begin. + MaintenanceBeginTime string `json:"maintenanceBeginTime,omitempty"` + // MaintenanceEndTime: Output only. The date and time when maintenance will + // end. + MaintenanceEndTime string `json:"maintenanceEndTime,omitempty"` + // MaintenanceScheduleType: Optional. The maintenance schedule of the + // Autonomous Database. + // + // Possible values: + // "MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED" - Default unspecified value. + // "EARLY" - An EARLY maintenance schedule patches the database before the + // the regular scheduled maintenance. + // "REGULAR" - A REGULAR maintenance schedule follows the normal maintenance + // cycle. + MaintenanceScheduleType string `json:"maintenanceScheduleType,omitempty"` + // MemoryPerOracleComputeUnitGbs: Output only. The amount of memory enabled per + // ECPU, in gigabytes. + MemoryPerOracleComputeUnitGbs int64 `json:"memoryPerOracleComputeUnitGbs,omitempty"` + // MemoryTableGbs: Output only. The memory assigned to in-memory tables in an + // Autonomous Database. + MemoryTableGbs int64 `json:"memoryTableGbs,omitempty"` + // MtlsConnectionRequired: Optional. This field specifies if the Autonomous + // Database requires mTLS connections. + MtlsConnectionRequired bool `json:"mtlsConnectionRequired,omitempty"` + // NCharacterSet: Optional. The national character set for the Autonomous + // Database. The default is AL16UTF16. + NCharacterSet string `json:"nCharacterSet,omitempty"` + // NextLongTermBackupTime: Output only. The long term backup schedule of the + // Autonomous Database. + NextLongTermBackupTime string `json:"nextLongTermBackupTime,omitempty"` + // OciUrl: Output only. The Oracle Cloud Infrastructure link for the Autonomous + // Database. + OciUrl string `json:"ociUrl,omitempty"` + // Ocid: Output only. OCID of the Autonomous Database. + // https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + Ocid string `json:"ocid,omitempty"` + // OpenMode: Output only. This field indicates the current mode of the + // Autonomous Database. + // + // Possible values: + // "OPEN_MODE_UNSPECIFIED" - Default unspecified value. + // "READ_ONLY" - Read Only Mode + // "READ_WRITE" - Read Write Mode + OpenMode string `json:"openMode,omitempty"` + // OperationsInsightsState: Output only. This field indicates the state of + // Operations Insights for the Autonomous Database. + // + // Possible values: + // "OPERATIONS_INSIGHTS_STATE_UNSPECIFIED" - Default unspecified value. + // "ENABLING" - Enabling status for operation insights. + // "ENABLED" - Enabled status for operation insights. + // "DISABLING" - Disabling status for operation insights. + // "NOT_ENABLED" - Not Enabled status for operation insights. + // "FAILED_ENABLING" - Failed enabling status for operation insights. + // "FAILED_DISABLING" - Failed disabling status for operation insights. + OperationsInsightsState string `json:"operationsInsightsState,omitempty"` + // PeerDbIds: Output only. The list of OCIDs of standby databases located in + // Autonomous Data Guard remote regions that are associated with the source + // database. + PeerDbIds []string `json:"peerDbIds,omitempty"` + // PermissionLevel: Output only. The permission level of the Autonomous + // Database. + // + // Possible values: + // "PERMISSION_LEVEL_UNSPECIFIED" - Default unspecified value. + // "RESTRICTED" - Restricted mode allows access only by admin users. + // "UNRESTRICTED" - Normal access. + PermissionLevel string `json:"permissionLevel,omitempty"` + // PrivateEndpoint: Output only. The private endpoint for the Autonomous + // Database. + PrivateEndpoint string `json:"privateEndpoint,omitempty"` + // PrivateEndpointIp: Optional. The private endpoint IP address for the + // Autonomous Database. + PrivateEndpointIp string `json:"privateEndpointIp,omitempty"` + // PrivateEndpointLabel: Optional. The private endpoint label for the + // Autonomous Database. + PrivateEndpointLabel string `json:"privateEndpointLabel,omitempty"` + // RefreshableMode: Output only. The refresh mode of the cloned Autonomous + // Database. + // + // Possible values: + // "REFRESHABLE_MODE_UNSPECIFIED" - The default unspecified value. + // "AUTOMATIC" - AUTOMATIC indicates that the cloned database is + // automatically refreshed with data from the source Autonomous Database. + // "MANUAL" - MANUAL indicates that the cloned database is manually refreshed + // with data from the source Autonomous Database. + RefreshableMode string `json:"refreshableMode,omitempty"` + // RefreshableState: Output only. The refresh State of the clone. + // + // Possible values: + // "REFRESHABLE_STATE_UNSPECIFIED" - Default unspecified value. + // "REFRESHING" - Refreshing + // "NOT_REFRESHING" - Not refreshed + RefreshableState string `json:"refreshableState,omitempty"` + // Role: Output only. The Data Guard role of the Autonomous Database. + // + // Possible values: + // "ROLE_UNSPECIFIED" - Default unspecified value. + // "PRIMARY" - Primary role + // "STANDBY" - Standby role + // "DISABLED_STANDBY" - Disabled standby role + // "BACKUP_COPY" - Backup copy role + // "SNAPSHOT_STANDBY" - Snapshot standby role + Role string `json:"role,omitempty"` + // ScheduledOperationDetails: Output only. The list and details of the + // scheduled operations of the Autonomous Database. + ScheduledOperationDetails []*ScheduledOperationDetails `json:"scheduledOperationDetails,omitempty"` + // SecretId: Optional. The ID of the Oracle Cloud Infrastructure vault secret. + SecretId string `json:"secretId,omitempty"` + // SqlWebDeveloperUrl: Output only. The SQL Web Developer URL for the + // Autonomous Database. + SqlWebDeveloperUrl string `json:"sqlWebDeveloperUrl,omitempty"` + // State: Output only. The current lifecycle state of the Autonomous Database. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default unspecified value. + // "PROVISIONING" - Indicates that the Autonomous Database is in Provisioning + // state. + // "AVAILABLE" - Indicates that the Autonomous Database is in Available + // state. + // "STOPPING" - Indicates that the Autonomous Database is in Stopping state. + // "STOPPED" - Indicates that the Autonomous Database is in Stopped state. + // "STARTING" - Indicates that the Autonomous Database is in Starting state. + // "TERMINATING" - Indicates that the Autonomous Database is in Terminating + // state. + // "TERMINATED" - Indicates that the Autonomous Database is in Terminated + // state. + // "UNAVAILABLE" - Indicates that the Autonomous Database is in Unavailable + // state. + // "RESTORE_IN_PROGRESS" - Indicates that the Autonomous Database Restore is + // in progress. + // "RESTORE_FAILED" - Indicates that the Autonomous Database failed to + // restore. + // "BACKUP_IN_PROGRESS" - Indicates that the Autonomous Database backup is in + // progress. + // "SCALE_IN_PROGRESS" - Indicates that the Autonomous Database scale is in + // progress. + // "AVAILABLE_NEEDS_ATTENTION" - Indicates that the Autonomous Database is in + // Available Needs Attention state. + // "UPDATING" - Indicates that the Autonomous Database is in Updating state. + // "MAINTENANCE_IN_PROGRESS" - Indicates that the Autonomous Database is in + // Maintenance In Progress state. + // "RESTARTING" - Indicates that the Autonomous Database is in Restarting + // state. + // "RECREATING" - Indicates that the Autonomous Database is in Recreating + // state. + // "ROLE_CHANGE_IN_PROGRESS" - Indicates that the Autonomous Database is in + // Role Change In Progress state. + // "UPGRADING" - Indicates that the Autonomous Database is in Upgrading + // state. + // "INACCESSIBLE" - Indicates that the Autonomous Database is in Inaccessible + // state. + // "STANDBY" - Indicates that the Autonomous Database is in Standby state. + State string `json:"state,omitempty"` + // SupportedCloneRegions: Output only. The list of available regions that can + // be used to create a clone for the Autonomous Database. + SupportedCloneRegions []string `json:"supportedCloneRegions,omitempty"` + // TotalAutoBackupStorageSizeGbs: Output only. The storage space used by + // automatic backups of Autonomous Database, in gigabytes. + TotalAutoBackupStorageSizeGbs float64 `json:"totalAutoBackupStorageSizeGbs,omitempty"` + // UsedDataStorageSizeTbs: Output only. The storage space used by Autonomous + // Database, in gigabytes. + UsedDataStorageSizeTbs int64 `json:"usedDataStorageSizeTbs,omitempty"` + // VaultId: Optional. The ID of the Oracle Cloud Infrastructure vault. + VaultId string `json:"vaultId,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "ActualUsedDataStorageSizeTb") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ActualUsedDataStorageSizeTb") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutonomousDatabaseProperties) MarshalJSON() ([]byte, error) { + type NoMethod AutonomousDatabaseProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *AutonomousDatabaseProperties) UnmarshalJSON(data []byte) error { + type NoMethod AutonomousDatabaseProperties + var s1 struct { + ActualUsedDataStorageSizeTb gensupport.JSONFloat64 `json:"actualUsedDataStorageSizeTb"` + AllocatedStorageSizeTb gensupport.JSONFloat64 `json:"allocatedStorageSizeTb"` + ComputeCount gensupport.JSONFloat64 `json:"computeCount"` + TotalAutoBackupStorageSizeGbs gensupport.JSONFloat64 `json:"totalAutoBackupStorageSizeGbs"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ActualUsedDataStorageSizeTb = float64(s1.ActualUsedDataStorageSizeTb) + s.AllocatedStorageSizeTb = float64(s1.AllocatedStorageSizeTb) + s.ComputeCount = float64(s1.ComputeCount) + s.TotalAutoBackupStorageSizeGbs = float64(s1.TotalAutoBackupStorageSizeGbs) + return nil +} + +// AutonomousDatabaseStandbySummary: Autonomous Data Guard standby database +// details. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseStandbySummary +type AutonomousDatabaseStandbySummary struct { + // DataGuardRoleChangedTime: Output only. The date and time the Autonomous Data + // Guard role was switched for the standby Autonomous Database. + DataGuardRoleChangedTime string `json:"dataGuardRoleChangedTime,omitempty"` + // DisasterRecoveryRoleChangedTime: Output only. The date and time the Disaster + // Recovery role was switched for the standby Autonomous Database. + DisasterRecoveryRoleChangedTime string `json:"disasterRecoveryRoleChangedTime,omitempty"` + // LagTimeDuration: Output only. The amount of time, in seconds, that the data + // of the standby database lags in comparison to the data of the primary + // database. + LagTimeDuration string `json:"lagTimeDuration,omitempty"` + // LifecycleDetails: Output only. The additional details about the current + // lifecycle state of the Autonomous Database. + LifecycleDetails string `json:"lifecycleDetails,omitempty"` + // State: Output only. The current lifecycle state of the Autonomous Database. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default unspecified value. + // "PROVISIONING" - Indicates that the Autonomous Database is in Provisioning + // state. + // "AVAILABLE" - Indicates that the Autonomous Database is in Available + // state. + // "STOPPING" - Indicates that the Autonomous Database is in Stopping state. + // "STOPPED" - Indicates that the Autonomous Database is in Stopped state. + // "STARTING" - Indicates that the Autonomous Database is in Starting state. + // "TERMINATING" - Indicates that the Autonomous Database is in Terminating + // state. + // "TERMINATED" - Indicates that the Autonomous Database is in Terminated + // state. + // "UNAVAILABLE" - Indicates that the Autonomous Database is in Unavailable + // state. + // "RESTORE_IN_PROGRESS" - Indicates that the Autonomous Database Restore is + // in progress. + // "RESTORE_FAILED" - Indicates that the Autonomous Database failed to + // restore. + // "BACKUP_IN_PROGRESS" - Indicates that the Autonomous Database backup is in + // progress. + // "SCALE_IN_PROGRESS" - Indicates that the Autonomous Database scale is in + // progress. + // "AVAILABLE_NEEDS_ATTENTION" - Indicates that the Autonomous Database is in + // Available Needs Attention state. + // "UPDATING" - Indicates that the Autonomous Database is in Updating state. + // "MAINTENANCE_IN_PROGRESS" - Indicates that the Autonomous Database is in + // Maintenance In Progress state. + // "RESTARTING" - Indicates that the Autonomous Database is in Restarting + // state. + // "RECREATING" - Indicates that the Autonomous Database is in Recreating + // state. + // "ROLE_CHANGE_IN_PROGRESS" - Indicates that the Autonomous Database is in + // Role Change In Progress state. + // "UPGRADING" - Indicates that the Autonomous Database is in Upgrading + // state. + // "INACCESSIBLE" - Indicates that the Autonomous Database is in Inaccessible + // state. + // "STANDBY" - Indicates that the Autonomous Database is in Standby state. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataGuardRoleChangedTime") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataGuardRoleChangedTime") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutonomousDatabaseStandbySummary) MarshalJSON() ([]byte, error) { + type NoMethod AutonomousDatabaseStandbySummary + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AutonomousDbVersion: Details of the Autonomous Database version. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary/ +type AutonomousDbVersion struct { + // DbWorkload: Output only. The Autonomous Database workload type. + // + // Possible values: + // "DB_WORKLOAD_UNSPECIFIED" - Default unspecified value. + // "OLTP" - Autonomous Transaction Processing database. + // "DW" - Autonomous Data Warehouse database. + // "AJD" - Autonomous JSON Database. + // "APEX" - Autonomous Database with the Oracle APEX Application Development + // workload type. + DbWorkload string `json:"dbWorkload,omitempty"` + // Name: Identifier. The name of the Autonomous Database Version resource with + // the format: + // projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_ver + // sion} + Name string `json:"name,omitempty"` + // Version: Output only. An Oracle Database version for Autonomous Database. + Version string `json:"version,omitempty"` + // WorkloadUri: Output only. A URL that points to a detailed description of the + // Autonomous Database version. + WorkloadUri string `json:"workloadUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "DbWorkload") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DbWorkload") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AutonomousDbVersion) MarshalJSON() ([]byte, error) { + type NoMethod AutonomousDbVersion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CancelOperationRequest: The request message for Operations.CancelOperation. +type CancelOperationRequest struct { +} + +// CloudAccountDetails: Details of the OCI Cloud Account. +type CloudAccountDetails struct { + // AccountCreationUri: Output only. URL to create a new account and link. + AccountCreationUri string `json:"accountCreationUri,omitempty"` + // CloudAccount: Output only. OCI account name. + CloudAccount string `json:"cloudAccount,omitempty"` + // CloudAccountHomeRegion: Output only. OCI account home region. + CloudAccountHomeRegion string `json:"cloudAccountHomeRegion,omitempty"` + // LinkExistingAccountUri: Output only. URL to link an existing account. + LinkExistingAccountUri string `json:"linkExistingAccountUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccountCreationUri") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountCreationUri") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudAccountDetails) MarshalJSON() ([]byte, error) { + type NoMethod CloudAccountDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CloudExadataInfrastructure: Represents CloudExadataInfrastructure resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ +type CloudExadataInfrastructure struct { + // CreateTime: Output only. The date and time that the Exadata Infrastructure + // was created. + CreateTime string `json:"createTime,omitempty"` + // DisplayName: Optional. User friendly name for this resource. + DisplayName string `json:"displayName,omitempty"` + // EntitlementId: Output only. Entitlement ID of the private offer against + // which this infrastructure resource is provisioned. + EntitlementId string `json:"entitlementId,omitempty"` + // GcpOracleZone: Optional. GCP location where Oracle Exadata is hosted. + GcpOracleZone string `json:"gcpOracleZone,omitempty"` + // Labels: Optional. Labels or tags associated with the resource. + Labels map[string]string `json:"labels,omitempty"` + // Name: Identifier. The name of the Exadata Infrastructure resource with the + // format: + // projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exad + // ata_infrastructure} + Name string `json:"name,omitempty"` + // Properties: Optional. Various properties of the infra. + Properties *CloudExadataInfrastructureProperties `json:"properties,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudExadataInfrastructure) MarshalJSON() ([]byte, error) { + type NoMethod CloudExadataInfrastructure + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CloudExadataInfrastructureProperties: Various properties of Exadata +// Infrastructure. +type CloudExadataInfrastructureProperties struct { + // ActivatedStorageCount: Output only. The requested number of additional + // storage servers activated for the Exadata Infrastructure. + ActivatedStorageCount int64 `json:"activatedStorageCount,omitempty"` + // AdditionalStorageCount: Output only. The requested number of additional + // storage servers for the Exadata Infrastructure. + AdditionalStorageCount int64 `json:"additionalStorageCount,omitempty"` + // AvailableStorageSizeGb: Output only. The available storage can be allocated + // to the Exadata Infrastructure resource, in gigabytes (GB). + AvailableStorageSizeGb int64 `json:"availableStorageSizeGb,omitempty"` + // ComputeCount: Optional. The number of compute servers for the Exadata + // Infrastructure. + ComputeCount int64 `json:"computeCount,omitempty"` + // CpuCount: Optional. The number of enabled CPU cores. + CpuCount int64 `json:"cpuCount,omitempty"` + // CustomerContacts: Optional. The list of customer contacts. + CustomerContacts []*CustomerContact `json:"customerContacts,omitempty"` + // DataStorageSizeTb: Output only. Size, in terabytes, of the DATA disk group. + DataStorageSizeTb float64 `json:"dataStorageSizeTb,omitempty"` + // DbNodeStorageSizeGb: Optional. The local node storage allocated in GBs. + DbNodeStorageSizeGb int64 `json:"dbNodeStorageSizeGb,omitempty"` + // DbServerVersion: Output only. The software version of the database servers + // (dom0) in the Exadata Infrastructure. + DbServerVersion string `json:"dbServerVersion,omitempty"` + // MaintenanceWindow: Optional. Maintenance window for repair. + MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` + // MaxCpuCount: Output only. The total number of CPU cores available. + MaxCpuCount int64 `json:"maxCpuCount,omitempty"` + // MaxDataStorageTb: Output only. The total available DATA disk group size. + MaxDataStorageTb float64 `json:"maxDataStorageTb,omitempty"` + // MaxDbNodeStorageSizeGb: Output only. The total local node storage available + // in GBs. + MaxDbNodeStorageSizeGb int64 `json:"maxDbNodeStorageSizeGb,omitempty"` + // MaxMemoryGb: Output only. The total memory available in GBs. + MaxMemoryGb int64 `json:"maxMemoryGb,omitempty"` + // MemorySizeGb: Optional. The memory allocated in GBs. + MemorySizeGb int64 `json:"memorySizeGb,omitempty"` + // MonthlyDbServerVersion: Output only. The monthly software version of the + // database servers (dom0) in the Exadata Infrastructure. Example: 20.1.15 + MonthlyDbServerVersion string `json:"monthlyDbServerVersion,omitempty"` + // MonthlyStorageServerVersion: Output only. The monthly software version of + // the storage servers (cells) in the Exadata Infrastructure. Example: 20.1.15 + MonthlyStorageServerVersion string `json:"monthlyStorageServerVersion,omitempty"` + // NextMaintenanceRunId: Output only. The OCID of the next maintenance run. + NextMaintenanceRunId string `json:"nextMaintenanceRunId,omitempty"` + // NextMaintenanceRunTime: Output only. The time when the next maintenance run + // will occur. + NextMaintenanceRunTime string `json:"nextMaintenanceRunTime,omitempty"` + // NextSecurityMaintenanceRunTime: Output only. The time when the next security + // maintenance run will occur. + NextSecurityMaintenanceRunTime string `json:"nextSecurityMaintenanceRunTime,omitempty"` + // OciUrl: Output only. Deep link to the OCI console to view this resource. + OciUrl string `json:"ociUrl,omitempty"` + // Ocid: Output only. OCID of created infra. + // https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + Ocid string `json:"ocid,omitempty"` + // Shape: Required. The shape of the Exadata Infrastructure. The shape + // determines the amount of CPU, storage, and memory resources allocated to the + // instance. + Shape string `json:"shape,omitempty"` + // State: Output only. The current lifecycle state of the Exadata + // Infrastructure. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default unspecified value. + // "PROVISIONING" - The Exadata Infrastructure is being provisioned. + // "AVAILABLE" - The Exadata Infrastructure is available for use. + // "UPDATING" - The Exadata Infrastructure is being updated. + // "TERMINATING" - The Exadata Infrastructure is being terminated. + // "TERMINATED" - The Exadata Infrastructure is terminated. + // "FAILED" - The Exadata Infrastructure is in failed state. + // "MAINTENANCE_IN_PROGRESS" - The Exadata Infrastructure is in maintenance. + State string `json:"state,omitempty"` + // StorageCount: Optional. The number of Cloud Exadata storage servers for the + // Exadata Infrastructure. + StorageCount int64 `json:"storageCount,omitempty"` + // StorageServerVersion: Output only. The software version of the storage + // servers (cells) in the Exadata Infrastructure. + StorageServerVersion string `json:"storageServerVersion,omitempty"` + // TotalStorageSizeGb: Optional. The total storage allocated to the Exadata + // Infrastructure resource, in gigabytes (GB). + TotalStorageSizeGb int64 `json:"totalStorageSizeGb,omitempty"` + // ForceSendFields is a list of field names (e.g. "ActivatedStorageCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ActivatedStorageCount") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudExadataInfrastructureProperties) MarshalJSON() ([]byte, error) { + type NoMethod CloudExadataInfrastructureProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *CloudExadataInfrastructureProperties) UnmarshalJSON(data []byte) error { + type NoMethod CloudExadataInfrastructureProperties + var s1 struct { + DataStorageSizeTb gensupport.JSONFloat64 `json:"dataStorageSizeTb"` + MaxDataStorageTb gensupport.JSONFloat64 `json:"maxDataStorageTb"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DataStorageSizeTb = float64(s1.DataStorageSizeTb) + s.MaxDataStorageTb = float64(s1.MaxDataStorageTb) + return nil +} + +// CloudVmCluster: Details of the Cloud VM Cluster resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/ +type CloudVmCluster struct { + // BackupSubnetCidr: Required. CIDR range of the backup subnet. + BackupSubnetCidr string `json:"backupSubnetCidr,omitempty"` + // Cidr: Required. Network settings. CIDR to use for cluster IP allocation. + Cidr string `json:"cidr,omitempty"` + // CreateTime: Output only. The date and time that the VM cluster was created. + CreateTime string `json:"createTime,omitempty"` + // DisplayName: Optional. User friendly name for this resource. + DisplayName string `json:"displayName,omitempty"` + // ExadataInfrastructure: Required. The name of the Exadata Infrastructure + // resource on which VM cluster resource is created, in the following format: + // projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extra + // data_infrastructure} + ExadataInfrastructure string `json:"exadataInfrastructure,omitempty"` + // GcpOracleZone: Output only. GCP location where Oracle Exadata is hosted. It + // is same as GCP Oracle zone of Exadata infrastructure. + GcpOracleZone string `json:"gcpOracleZone,omitempty"` + // Labels: Optional. Labels or tags associated with the VM Cluster. + Labels map[string]string `json:"labels,omitempty"` + // Name: Identifier. The name of the VM Cluster resource with the format: + // projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster} + Name string `json:"name,omitempty"` + // Network: Required. The name of the VPC network. Format: + // projects/{project}/global/networks/{network} + Network string `json:"network,omitempty"` + // Properties: Optional. Various properties of the VM Cluster. + Properties *CloudVmClusterProperties `json:"properties,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "BackupSubnetCidr") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BackupSubnetCidr") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudVmCluster) MarshalJSON() ([]byte, error) { + type NoMethod CloudVmCluster + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CloudVmClusterProperties: Various properties and settings associated with +// Exadata VM cluster. +type CloudVmClusterProperties struct { + // ClusterName: Optional. OCI Cluster name. + ClusterName string `json:"clusterName,omitempty"` + // CompartmentId: Output only. Compartment ID of cluster. + CompartmentId string `json:"compartmentId,omitempty"` + // CpuCoreCount: Required. Number of enabled CPU cores. + CpuCoreCount int64 `json:"cpuCoreCount,omitempty"` + // DataStorageSizeTb: Optional. The data disk group size to be allocated in + // TBs. + DataStorageSizeTb float64 `json:"dataStorageSizeTb,omitempty"` + // DbNodeStorageSizeGb: Optional. Local storage per VM. + DbNodeStorageSizeGb int64 `json:"dbNodeStorageSizeGb,omitempty"` + // DbServerOcids: Optional. OCID of database servers. + DbServerOcids []string `json:"dbServerOcids,omitempty"` + // DiagnosticsDataCollectionOptions: Optional. Data collection options for + // diagnostics. + DiagnosticsDataCollectionOptions *DataCollectionOptions `json:"diagnosticsDataCollectionOptions,omitempty"` + // DiskRedundancy: Optional. The type of redundancy. + // + // Possible values: + // "DISK_REDUNDANCY_UNSPECIFIED" - Unspecified. + // "HIGH" - High - 3 way mirror. + // "NORMAL" - Normal - 2 way mirror. + DiskRedundancy string `json:"diskRedundancy,omitempty"` + // DnsListenerIp: Output only. DNS listener IP. + DnsListenerIp string `json:"dnsListenerIp,omitempty"` + // Domain: Output only. Parent DNS domain where SCAN DNS and hosts names are + // qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com + Domain string `json:"domain,omitempty"` + // GiVersion: Optional. Grid Infrastructure Version. + GiVersion string `json:"giVersion,omitempty"` + // Hostname: Output only. host name without domain. format: "-" with some + // suffix. ex: sp2-yi0xq where "sp2" is the hostname_prefix. + Hostname string `json:"hostname,omitempty"` + // HostnamePrefix: Optional. Prefix for VM cluster host names. + HostnamePrefix string `json:"hostnamePrefix,omitempty"` + // LicenseType: Required. License type of VM Cluster. + // + // Possible values: + // "LICENSE_TYPE_UNSPECIFIED" - Unspecified + // "LICENSE_INCLUDED" - License included part of offer + // "BRING_YOUR_OWN_LICENSE" - Bring your own license + LicenseType string `json:"licenseType,omitempty"` + // LocalBackupEnabled: Optional. Use local backup. + LocalBackupEnabled bool `json:"localBackupEnabled,omitempty"` + // MemorySizeGb: Optional. Memory allocated in GBs. + MemorySizeGb int64 `json:"memorySizeGb,omitempty"` + // NodeCount: Optional. Number of database servers. + NodeCount int64 `json:"nodeCount,omitempty"` + // OciUrl: Output only. Deep link to the OCI console to view this resource. + OciUrl string `json:"ociUrl,omitempty"` + // Ocid: Output only. Oracle Cloud Infrastructure ID of VM Cluster. + Ocid string `json:"ocid,omitempty"` + // OcpuCount: Optional. OCPU count per VM. Minimum is 0.1. + OcpuCount float64 `json:"ocpuCount,omitempty"` + // ScanDns: Output only. SCAN DNS name. ex: + // sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com + ScanDns string `json:"scanDns,omitempty"` + // ScanDnsRecordId: Output only. OCID of scan DNS record. + ScanDnsRecordId string `json:"scanDnsRecordId,omitempty"` + // ScanIpIds: Output only. OCIDs of scan IPs. + ScanIpIds []string `json:"scanIpIds,omitempty"` + // ScanListenerPortTcp: Output only. SCAN listener port - TCP + ScanListenerPortTcp int64 `json:"scanListenerPortTcp,omitempty"` + // ScanListenerPortTcpSsl: Output only. SCAN listener port - TLS + ScanListenerPortTcpSsl int64 `json:"scanListenerPortTcpSsl,omitempty"` + // Shape: Output only. Shape of VM Cluster. + Shape string `json:"shape,omitempty"` + // SparseDiskgroupEnabled: Optional. Use exadata sparse snapshots. + SparseDiskgroupEnabled bool `json:"sparseDiskgroupEnabled,omitempty"` + // SshPublicKeys: Optional. SSH public keys to be stored with cluster. + SshPublicKeys []string `json:"sshPublicKeys,omitempty"` + // State: Output only. State of the cluster. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default unspecified value. + // "PROVISIONING" - Indicates that the resource is in Provisioning state. + // "AVAILABLE" - Indicates that the resource is in Available state. + // "UPDATING" - Indicates that the resource is in Updating state. + // "TERMINATING" - Indicates that the resource is in Terminating state. + // "TERMINATED" - Indicates that the resource is in Terminated state. + // "FAILED" - Indicates that the resource is in Failed state. + // "MAINTENANCE_IN_PROGRESS" - Indicates that the resource is in Maintenance + // In Progress state. + State string `json:"state,omitempty"` + // StorageSizeGb: Output only. The storage allocation for the disk group, in + // gigabytes (GB). + StorageSizeGb int64 `json:"storageSizeGb,omitempty"` + // SystemVersion: Output only. Operating system version of the image. + SystemVersion string `json:"systemVersion,omitempty"` + // TimeZone: Optional. Time zone of VM Cluster to set. Defaults to UTC if not + // specified. + TimeZone *TimeZone `json:"timeZone,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClusterName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudVmClusterProperties) MarshalJSON() ([]byte, error) { + type NoMethod CloudVmClusterProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *CloudVmClusterProperties) UnmarshalJSON(data []byte) error { + type NoMethod CloudVmClusterProperties + var s1 struct { + DataStorageSizeTb gensupport.JSONFloat64 `json:"dataStorageSizeTb"` + OcpuCount gensupport.JSONFloat64 `json:"ocpuCount"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DataStorageSizeTb = float64(s1.DataStorageSizeTb) + s.OcpuCount = float64(s1.OcpuCount) + return nil +} + +// CustomerContact: The CustomerContact reference as defined by Oracle. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact +type CustomerContact struct { + // Email: Required. The email address used by Oracle to send notifications + // regarding databases and infrastructure. + Email string `json:"email,omitempty"` + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Email") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CustomerContact) MarshalJSON() ([]byte, error) { + type NoMethod CustomerContact + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DataCollectionOptions: Data collection options for diagnostics. +type DataCollectionOptions struct { + // DiagnosticsEventsEnabled: Optional. Indicates whether diagnostic collection + // is enabled for the VM cluster + DiagnosticsEventsEnabled bool `json:"diagnosticsEventsEnabled,omitempty"` + // HealthMonitoringEnabled: Optional. Indicates whether health monitoring is + // enabled for the VM cluster + HealthMonitoringEnabled bool `json:"healthMonitoringEnabled,omitempty"` + // IncidentLogsEnabled: Optional. Indicates whether incident logs and trace + // collection are enabled for the VM cluster + IncidentLogsEnabled bool `json:"incidentLogsEnabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiagnosticsEventsEnabled") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DiagnosticsEventsEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DataCollectionOptions) MarshalJSON() ([]byte, error) { + type NoMethod DataCollectionOptions + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseConnectionStringProfile: The connection string profile to allow +// clients to group. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile +type DatabaseConnectionStringProfile struct { + // ConsumerGroup: Output only. The current consumer group being used by the + // connection. + // + // Possible values: + // "CONSUMER_GROUP_UNSPECIFIED" - Default unspecified value. + // "HIGH" - High consumer group. + // "MEDIUM" - Medium consumer group. + // "LOW" - Low consumer group. + // "TP" - TP consumer group. + // "TPURGENT" - TPURGENT consumer group. + ConsumerGroup string `json:"consumerGroup,omitempty"` + // DisplayName: Output only. The display name for the database connection. + DisplayName string `json:"displayName,omitempty"` + // HostFormat: Output only. The host name format being currently used in + // connection string. + // + // Possible values: + // "HOST_FORMAT_UNSPECIFIED" - Default unspecified value. + // "FQDN" - FQDN + // "IP" - IP + HostFormat string `json:"hostFormat,omitempty"` + // IsRegional: Output only. This field indicates if the connection string is + // regional and is only applicable for cross-region Data Guard. + IsRegional bool `json:"isRegional,omitempty"` + // Protocol: Output only. The protocol being used by the connection. + // + // Possible values: + // "PROTOCOL_UNSPECIFIED" - Default unspecified value. + // "TCP" - Tcp + // "TCPS" - Tcps + Protocol string `json:"protocol,omitempty"` + // SessionMode: Output only. The current session mode of the connection. + // + // Possible values: + // "SESSION_MODE_UNSPECIFIED" - Default unspecified value. + // "DIRECT" - Direct + // "INDIRECT" - Indirect + SessionMode string `json:"sessionMode,omitempty"` + // SyntaxFormat: Output only. The syntax of the connection string. + // + // Possible values: + // "SYNTAX_FORMAT_UNSPECIFIED" - Default unspecified value. + // "LONG" - Long + // "EZCONNECT" - Ezconnect + // "EZCONNECTPLUS" - Ezconnectplus + SyntaxFormat string `json:"syntaxFormat,omitempty"` + // TlsAuthentication: Output only. This field indicates the TLS authentication + // type of the connection. + // + // Possible values: + // "TLS_AUTHENTICATION_UNSPECIFIED" - Default unspecified value. + // "SERVER" - Server + // "MUTUAL" - Mutual + TlsAuthentication string `json:"tlsAuthentication,omitempty"` + // Value: Output only. The value of the connection string. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConsumerGroup") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConsumerGroup") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseConnectionStringProfile) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseConnectionStringProfile + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbNode: Details of the database node resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/ +type DbNode struct { + // Name: Identifier. The name of the database node resource in the following + // format: + // projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/db + // Nodes/{db_node} + Name string `json:"name,omitempty"` + // Properties: Optional. Various properties of the database node. + Properties *DbNodeProperties `json:"properties,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbNode) MarshalJSON() ([]byte, error) { + type NoMethod DbNode + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbNodeProperties: Various properties and settings associated with Db node. +type DbNodeProperties struct { + // DbNodeStorageSizeGb: Optional. Local storage per database node. + DbNodeStorageSizeGb int64 `json:"dbNodeStorageSizeGb,omitempty"` + // DbServerOcid: Optional. Database server OCID. + DbServerOcid string `json:"dbServerOcid,omitempty"` + // Hostname: Optional. DNS + Hostname string `json:"hostname,omitempty"` + // MemorySizeGb: Memory allocated in GBs. + MemorySizeGb int64 `json:"memorySizeGb,omitempty"` + // Ocid: Output only. OCID of database node. + Ocid string `json:"ocid,omitempty"` + // OcpuCount: Optional. OCPU count per database node. + OcpuCount int64 `json:"ocpuCount,omitempty"` + // State: Output only. State of the database node. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default unspecified value. + // "PROVISIONING" - Indicates that the resource is in Provisioning state. + // "AVAILABLE" - Indicates that the resource is in Available state. + // "UPDATING" - Indicates that the resource is in Updating state. + // "STOPPING" - Indicates that the resource is in Stopping state. + // "STOPPED" - Indicates that the resource is in Stopped state. + // "STARTING" - Indicates that the resource is in Starting state. + // "TERMINATING" - Indicates that the resource is in Terminating state. + // "TERMINATED" - Indicates that the resource is in Terminated state. + // "FAILED" - Indicates that the resource is in Failed state. + State string `json:"state,omitempty"` + // TotalCpuCoreCount: Total CPU core count of the database node. + TotalCpuCoreCount int64 `json:"totalCpuCoreCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "DbNodeStorageSizeGb") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DbNodeStorageSizeGb") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbNodeProperties) MarshalJSON() ([]byte, error) { + type NoMethod DbNodeProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbServer: Details of the database server resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbServer/ +type DbServer struct { + // DisplayName: Optional. User friendly name for this resource. + DisplayName string `json:"displayName,omitempty"` + // Name: Identifier. The name of the database server resource with the format: + // projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_ex + // adata_infrastructure}/dbServers/{db_server} + Name string `json:"name,omitempty"` + // Properties: Optional. Various properties of the database server. + Properties *DbServerProperties `json:"properties,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbServer) MarshalJSON() ([]byte, error) { + type NoMethod DbServer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbServerProperties: Various properties and settings associated with Exadata +// database server. +type DbServerProperties struct { + // DbNodeIds: Output only. OCID of database nodes associated with the database + // server. + DbNodeIds []string `json:"dbNodeIds,omitempty"` + // DbNodeStorageSizeGb: Optional. Local storage per VM. + DbNodeStorageSizeGb int64 `json:"dbNodeStorageSizeGb,omitempty"` + // MaxDbNodeStorageSizeGb: Optional. Maximum local storage per VM. + MaxDbNodeStorageSizeGb int64 `json:"maxDbNodeStorageSizeGb,omitempty"` + // MaxMemorySizeGb: Optional. Maximum memory allocated in GBs. + MaxMemorySizeGb int64 `json:"maxMemorySizeGb,omitempty"` + // MaxOcpuCount: Optional. Maximum OCPU count per database. + MaxOcpuCount int64 `json:"maxOcpuCount,omitempty"` + // MemorySizeGb: Optional. Memory allocated in GBs. + MemorySizeGb int64 `json:"memorySizeGb,omitempty"` + // Ocid: Output only. OCID of database server. + Ocid string `json:"ocid,omitempty"` + // OcpuCount: Optional. OCPU count per database. + OcpuCount int64 `json:"ocpuCount,omitempty"` + // State: Output only. State of the database server. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default unspecified value. + // "CREATING" - Indicates that the resource is in Creating state. + // "AVAILABLE" - Indicates that the resource is in Available state. + // "UNAVAILABLE" - Indicates that the resource is in Unavailable state. + // "DELETING" - Indicates that the resource is in Deleting state. + // "DELETED" - Indicates that the resource is in Deleted state. + State string `json:"state,omitempty"` + // VmCount: Optional. Vm count per database. + VmCount int64 `json:"vmCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "DbNodeIds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DbNodeIds") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbServerProperties) MarshalJSON() ([]byte, error) { + type NoMethod DbServerProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbSystemShape: Details of the Database System Shapes resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/ +type DbSystemShape struct { + // AvailableCoreCountPerNode: Optional. Number of cores per node. + AvailableCoreCountPerNode int64 `json:"availableCoreCountPerNode,omitempty"` + // AvailableDataStorageTb: Optional. Storage per storage server in terabytes. + AvailableDataStorageTb int64 `json:"availableDataStorageTb,omitempty"` + // AvailableMemoryPerNodeGb: Optional. Memory per database server node in + // gigabytes. + AvailableMemoryPerNodeGb int64 `json:"availableMemoryPerNodeGb,omitempty"` + // MaxNodeCount: Optional. Maximum number of database servers. + MaxNodeCount int64 `json:"maxNodeCount,omitempty"` + // MaxStorageCount: Optional. Maximum number of storage servers. + MaxStorageCount int64 `json:"maxStorageCount,omitempty"` + // MinCoreCountPerNode: Optional. Minimum core count per node. + MinCoreCountPerNode int64 `json:"minCoreCountPerNode,omitempty"` + // MinDbNodeStoragePerNodeGb: Optional. Minimum node storage per database + // server in gigabytes. + MinDbNodeStoragePerNodeGb int64 `json:"minDbNodeStoragePerNodeGb,omitempty"` + // MinMemoryPerNodeGb: Optional. Minimum memory per node in gigabytes. + MinMemoryPerNodeGb int64 `json:"minMemoryPerNodeGb,omitempty"` + // MinNodeCount: Optional. Minimum number of database servers. + MinNodeCount int64 `json:"minNodeCount,omitempty"` + // MinStorageCount: Optional. Minimum number of storage servers. + MinStorageCount int64 `json:"minStorageCount,omitempty"` + // Name: Identifier. The name of the Database System Shape resource with the + // format: + // projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape} + Name string `json:"name,omitempty"` + // Shape: Optional. shape + Shape string `json:"shape,omitempty"` + // ForceSendFields is a list of field names (e.g. "AvailableCoreCountPerNode") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AvailableCoreCountPerNode") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbSystemShape) MarshalJSON() ([]byte, error) { + type NoMethod DbSystemShape + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` +} + +// Entitlement: Details of the Entitlement resource. +type Entitlement struct { + // CloudAccountDetails: Details of the OCI Cloud Account. + CloudAccountDetails *CloudAccountDetails `json:"cloudAccountDetails,omitempty"` + // EntitlementId: Output only. Google Cloud Marketplace order ID (aka + // entitlement ID) + EntitlementId string `json:"entitlementId,omitempty"` + // Name: Identifier. The name of the Entitlement resource with the format: + // projects/{project}/locations/{region}/entitlements/{entitlement} + Name string `json:"name,omitempty"` + // State: Output only. Entitlement State. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default unspecified value. + // "ACCOUNT_NOT_LINKED" - Account not linked. + // "ACCOUNT_NOT_ACTIVE" - Account is linked but not active. + // "ACTIVE" - Entitlement and Account are active. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "CloudAccountDetails") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudAccountDetails") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Entitlement) MarshalJSON() ([]byte, error) { + type NoMethod Entitlement + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GenerateAutonomousDatabaseWalletRequest: The request for +// `AutonomousDatabase.GenerateWallet`. +type GenerateAutonomousDatabaseWalletRequest struct { + // IsRegional: Optional. True when requesting regional connection strings in + // PDB connect info, applicable to cross-region Data Guard only. + IsRegional bool `json:"isRegional,omitempty"` + // Password: Required. The password used to encrypt the keys inside the wallet. + // The password must be a minimum of 8 characters. + Password string `json:"password,omitempty"` + // Type: Optional. The type of wallet generation for the Autonomous Database. + // The default value is SINGLE. + // + // Possible values: + // "GENERATE_TYPE_UNSPECIFIED" - Default unspecified value. + // "ALL" - Used to generate wallet for all databases in the region. + // "SINGLE" - Used to generate wallet for a single database. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "IsRegional") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IsRegional") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GenerateAutonomousDatabaseWalletRequest) MarshalJSON() ([]byte, error) { + type NoMethod GenerateAutonomousDatabaseWalletRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GenerateAutonomousDatabaseWalletResponse: The response for +// `AutonomousDatabase.GenerateWallet`. +type GenerateAutonomousDatabaseWalletResponse struct { + // ArchiveContent: Output only. The base64 encoded wallet files. + ArchiveContent string `json:"archiveContent,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ArchiveContent") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ArchiveContent") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GenerateAutonomousDatabaseWalletResponse) MarshalJSON() ([]byte, error) { + type NoMethod GenerateAutonomousDatabaseWalletResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GiVersion: Details of the Oracle Grid Infrastructure (GI) version resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiVersionSummary/ +type GiVersion struct { + // Name: Identifier. The name of the Oracle Grid Infrastructure (GI) version + // resource with the format: + // projects/{project}/locations/{region}/giVersions/{gi_versions} + Name string `json:"name,omitempty"` + // Version: Optional. version + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GiVersion) MarshalJSON() ([]byte, error) { + type NoMethod GiVersion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListAutonomousDatabaseBackupsResponse: The response for +// `AutonomousDatabaseBackup.List`. +type ListAutonomousDatabaseBackupsResponse struct { + // AutonomousDatabaseBackups: The list of Autonomous Database Backups. + AutonomousDatabaseBackups []*AutonomousDatabaseBackup `json:"autonomousDatabaseBackups,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AutonomousDatabaseBackups") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutonomousDatabaseBackups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListAutonomousDatabaseBackupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAutonomousDatabaseBackupsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListAutonomousDatabaseCharacterSetsResponse: The response for +// `AutonomousDatabaseCharacterSet.List`. +type ListAutonomousDatabaseCharacterSetsResponse struct { + // AutonomousDatabaseCharacterSets: The list of Autonomous Database Character + // Sets. + AutonomousDatabaseCharacterSets []*AutonomousDatabaseCharacterSet `json:"autonomousDatabaseCharacterSets,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. + // "AutonomousDatabaseCharacterSets") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutonomousDatabaseCharacterSets") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListAutonomousDatabaseCharacterSetsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAutonomousDatabaseCharacterSetsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListAutonomousDatabasesResponse: The response for `AutonomousDatabase.List`. +type ListAutonomousDatabasesResponse struct { + // AutonomousDatabases: The list of Autonomous Databases. + AutonomousDatabases []*AutonomousDatabase `json:"autonomousDatabases,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AutonomousDatabases") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutonomousDatabases") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListAutonomousDatabasesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAutonomousDatabasesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListAutonomousDbVersionsResponse: The response for +// `AutonomousDbVersion.List`. +type ListAutonomousDbVersionsResponse struct { + // AutonomousDbVersions: The list of Autonomous Database versions. + AutonomousDbVersions []*AutonomousDbVersion `json:"autonomousDbVersions,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AutonomousDbVersions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutonomousDbVersions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListAutonomousDbVersionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAutonomousDbVersionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListCloudExadataInfrastructuresResponse: The response for +// `CloudExadataInfrastructures.list`. +type ListCloudExadataInfrastructuresResponse struct { + // CloudExadataInfrastructures: The list of Exadata Infrastructures. + CloudExadataInfrastructures []*CloudExadataInfrastructure `json:"cloudExadataInfrastructures,omitempty"` + // NextPageToken: A token for fetching next page of response. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. + // "CloudExadataInfrastructures") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudExadataInfrastructures") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListCloudExadataInfrastructuresResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCloudExadataInfrastructuresResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListCloudVmClustersResponse: The response for `CloudVmCluster.List`. +type ListCloudVmClustersResponse struct { + // CloudVmClusters: The list of VM Clusters. + CloudVmClusters []*CloudVmCluster `json:"cloudVmClusters,omitempty"` + // NextPageToken: A token to fetch the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CloudVmClusters") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudVmClusters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListCloudVmClustersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCloudVmClustersResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListDbNodesResponse: The response for `DbNode.List`. +type ListDbNodesResponse struct { + // DbNodes: The list of DB Nodes + DbNodes []*DbNode `json:"dbNodes,omitempty"` + // NextPageToken: A token identifying a page of results the node should return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DbNodes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DbNodes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListDbNodesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDbNodesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListDbServersResponse: The response for `DbServer.List`. +type ListDbServersResponse struct { + // DbServers: The list of database servers. + DbServers []*DbServer `json:"dbServers,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DbServers") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DbServers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListDbServersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDbServersResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListDbSystemShapesResponse: The response for `DbSystemShape.List`. +type ListDbSystemShapesResponse struct { + // DbSystemShapes: The list of Database System shapes. + DbSystemShapes []*DbSystemShape `json:"dbSystemShapes,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DbSystemShapes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DbSystemShapes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListDbSystemShapesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDbSystemShapesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListEntitlementsResponse: The response for `Entitlement.List`. +type ListEntitlementsResponse struct { + // Entitlements: The list of Entitlements + Entitlements []*Entitlement `json:"entitlements,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Entitlements") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Entitlements") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListEntitlementsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListEntitlementsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListGiVersionsResponse: The response for `GiVersion.List`. +type ListGiVersionsResponse struct { + // GiVersions: The list of Oracle Grid Infrastructure (GI) versions. + GiVersions []*GiVersion `json:"giVersions,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "GiVersions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GiVersions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListGiVersionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListGiVersionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListLocationsResponse: The response message for Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in the + // request. + Locations []*Location `json:"locations,omitempty"` + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // Operations: A list of operations that matches the specified filter in the + // request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents a Google Cloud location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + // LocationId: The canonical id for this location. For example: "us-east1". + LocationId string `json:"locationId,omitempty"` + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LocationMetadata: Metadata for a given Location. +type LocationMetadata struct { + // GcpOracleZones: Output only. GCP Oracle zones in a location. + GcpOracleZones []string `json:"gcpOracleZones,omitempty"` + // ForceSendFields is a list of field names (e.g. "GcpOracleZones") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GcpOracleZones") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LocationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LocationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// MaintenanceWindow: Maintenance window as defined by Oracle. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow +type MaintenanceWindow struct { + // CustomActionTimeoutMins: Optional. Determines the amount of time the system + // will wait before the start of each database server patching operation. + // Custom action timeout is in minutes and valid value is between 15 to 120 + // (inclusive). + CustomActionTimeoutMins int64 `json:"customActionTimeoutMins,omitempty"` + // DaysOfWeek: Optional. Days during the week when maintenance should be + // performed. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + DaysOfWeek []string `json:"daysOfWeek,omitempty"` + // HoursOfDay: Optional. The window of hours during the day when maintenance + // should be performed. The window is a 4 hour slot. Valid values are: 0 - + // represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59 + // UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot + // 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 - + // represents time slot 20:00 - 23:59 UTC + HoursOfDay []int64 `json:"hoursOfDay,omitempty"` + // IsCustomActionTimeoutEnabled: Optional. If true, enables the configuration + // of a custom action timeout (waiting period) between database server patching + // operations. + IsCustomActionTimeoutEnabled bool `json:"isCustomActionTimeoutEnabled,omitempty"` + // LeadTimeWeek: Optional. Lead time window allows user to set a lead time to + // prepare for a down time. The lead time is in weeks and valid value is + // between 1 to 4. + LeadTimeWeek int64 `json:"leadTimeWeek,omitempty"` + // Months: Optional. Months during the year when maintenance should be + // performed. + // + // Possible values: + // "MONTH_UNSPECIFIED" - The unspecified month. + // "JANUARY" - The month of January. + // "FEBRUARY" - The month of February. + // "MARCH" - The month of March. + // "APRIL" - The month of April. + // "MAY" - The month of May. + // "JUNE" - The month of June. + // "JULY" - The month of July. + // "AUGUST" - The month of August. + // "SEPTEMBER" - The month of September. + // "OCTOBER" - The month of October. + // "NOVEMBER" - The month of November. + // "DECEMBER" - The month of December. + Months []string `json:"months,omitempty"` + // PatchingMode: Optional. Cloud CloudExadataInfrastructure node patching + // method, either "ROLLING" or "NONROLLING". Default value is ROLLING. + // + // Possible values: + // "PATCHING_MODE_UNSPECIFIED" - Default unspecified value. + // "ROLLING" - Updates the Cloud Exadata database server hosts in a rolling + // fashion. + // "NON_ROLLING" - The non-rolling maintenance method first updates your + // storage servers at the same time, then your database servers at the same + // time. + PatchingMode string `json:"patchingMode,omitempty"` + // Preference: Optional. The maintenance window scheduling preference. + // + // Possible values: + // "MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED" - Default unspecified value. + // "CUSTOM_PREFERENCE" - Custom preference. + // "NO_PREFERENCE" - No preference. + Preference string `json:"preference,omitempty"` + // WeeksOfMonth: Optional. Weeks during the month when maintenance should be + // performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, + // and have a duration of 7 days. Weeks start and end based on calendar dates, + // not days of the week. + WeeksOfMonth []int64 `json:"weeksOfMonth,omitempty"` + // ForceSendFields is a list of field names (e.g. "CustomActionTimeoutMins") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CustomActionTimeoutMins") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MaintenanceWindow) MarshalJSON() ([]byte, error) { + type NoMethod MaintenanceWindow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is the +// result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. + Done bool `json:"done,omitempty"` + // Error: The error result of the operation in case of failure or cancellation. + Error *Status `json:"error,omitempty"` + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. + Name string `json:"name,omitempty"` + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// OperationMetadata: Represents the metadata of the long-running operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // PercentComplete: Output only. An estimated percentage of the operation that + // has been completed at a given moment of time, between 0 and 100. + PercentComplete float64 `json:"percentComplete,omitempty"` + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have been cancelled + // successfully have Operation.error value with a google.rpc.Status.code of 1, + // corresponding to `Code.CANCELLED`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + // StatusMessage: Output only. The status of the operation. + StatusMessage string `json:"statusMessage,omitempty"` + // Target: Output only. Server-defined resource path for the target of the + // operation. + Target string `json:"target,omitempty"` + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *OperationMetadata) UnmarshalJSON(data []byte) error { + type NoMethod OperationMetadata + var s1 struct { + PercentComplete gensupport.JSONFloat64 `json:"percentComplete"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.PercentComplete = float64(s1.PercentComplete) + return nil +} + +// RestoreAutonomousDatabaseRequest: The request for +// `AutonomousDatabase.Restore`. +type RestoreAutonomousDatabaseRequest struct { + // RestoreTime: Required. The time and date to restore the database to. + RestoreTime string `json:"restoreTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "RestoreTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RestoreTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RestoreAutonomousDatabaseRequest) MarshalJSON() ([]byte, error) { + type NoMethod RestoreAutonomousDatabaseRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ScheduledOperationDetails: Details of scheduled operation. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/ScheduledOperationDetails +type ScheduledOperationDetails struct { + // DayOfWeek: Output only. Day of week. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + DayOfWeek string `json:"dayOfWeek,omitempty"` + // StartTime: Output only. Auto start time. + StartTime *TimeOfDay `json:"startTime,omitempty"` + // StopTime: Output only. Auto stop time. + StopTime *TimeOfDay `json:"stopTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "DayOfWeek") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DayOfWeek") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ScheduledOperationDetails) MarshalJSON() ([]byte, error) { + type NoMethod ScheduledOperationDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of google.rpc.Code. + Code int64 `json:"code,omitempty"` + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TimeOfDay: Represents a time of day. The date and time zone are either not +// significant or are specified elsewhere. An API may choose to allow leap +// seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. +type TimeOfDay struct { + // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may + // choose to allow the value "24:00:00" for scenarios like business closing + // time. + Hours int64 `json:"hours,omitempty"` + // Minutes: Minutes of hour of day. Must be from 0 to 59. + Minutes int64 `json:"minutes,omitempty"` + // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + // Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An + // API may allow the value 60 if it allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Hours") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TimeOfDay) MarshalJSON() ([]byte, error) { + type NoMethod TimeOfDay + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TimeZone: Represents a time zone from the IANA Time Zone Database +// (https://www.iana.org/time-zones). +type TimeZone struct { + // Id: IANA Time Zone Database time zone, e.g. "America/New_York". + Id string `json:"id,omitempty"` + // Version: Optional. IANA Time Zone Database version number, e.g. "2019a". + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TimeZone) MarshalJSON() ([]byte, error) { + type NoMethod TimeZone + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this service. +// +// - name: The resource that owns the locations collection, if applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down results +// to a preferred subset. The filtering language accepts strings like +// "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from the `next_page_token` field in the response. Send that page token to +// receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAutonomousDatabaseBackupsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the long term and automatic backups of an Autonomous Database. +// +// - parent: The parent value for ListAutonomousDatabaseBackups in the +// following format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsAutonomousDatabaseBackupsService) List(parent string) *ProjectsLocationsAutonomousDatabaseBackupsListCall { + c := &ProjectsLocationsAutonomousDatabaseBackupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. Only the **autonomous_database_id** field is +// supported in the following format: +// `autonomous_database_id="{autonomous_database_id}". The accepted values +// must be a valid Autonomous Database ID, limited to the naming restrictions +// of the ID: ^a-z ([a-z0-9-]{0,61}[a-z0-9])?$). The ID must start with a +// letter, end with a letter or a number, and be a maximum of 63 characters. +func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Filter(filter string) *ProjectsLocationsAutonomousDatabaseBackupsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, at most 50 Autonomous DB Backups will be +// returned. The maximum value is 1000; values above 1000 will be coerced to +// 1000. +func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) PageSize(pageSize int64) *ProjectsLocationsAutonomousDatabaseBackupsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) PageToken(pageToken string) *ProjectsLocationsAutonomousDatabaseBackupsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabaseBackupsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutonomousDatabaseBackupsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabaseBackupsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autonomousDatabaseBackups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.autonomousDatabaseBackups.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAutonomousDatabaseBackupsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Do(opts ...googleapi.CallOption) (*ListAutonomousDatabaseBackupsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListAutonomousDatabaseBackupsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Pages(ctx context.Context, f func(*ListAutonomousDatabaseBackupsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAutonomousDatabaseCharacterSetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Autonomous Database Character Sets in a given project and +// location. +// +// - parent: The parent value for the Autonomous Database in the following +// format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsAutonomousDatabaseCharacterSetsService) List(parent string) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall { + c := &ProjectsLocationsAutonomousDatabaseCharacterSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. Only the **character_set_type** field is supported +// in the following format: `character_set_type="{characterSetType}". Accepted +// values include `DATABASE` and `NATIONAL`. +func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Filter(filter string) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, at most 50 Autonomous DB Character Sets will be +// returned. The maximum value is 1000; values above 1000 will be coerced to +// 1000. +func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) PageSize(pageSize int64) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) PageToken(pageToken string) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autonomousDatabaseCharacterSets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.autonomousDatabaseCharacterSets.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAutonomousDatabaseCharacterSetsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Do(opts ...googleapi.CallOption) (*ListAutonomousDatabaseCharacterSetsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListAutonomousDatabaseCharacterSetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Pages(ctx context.Context, f func(*ListAutonomousDatabaseCharacterSetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAutonomousDatabasesCreateCall struct { + s *Service + parent string + autonomousdatabase *AutonomousDatabase + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Autonomous Database in a given project and location. +// +// - parent: The name of the parent in the following format: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsAutonomousDatabasesService) Create(parent string, autonomousdatabase *AutonomousDatabase) *ProjectsLocationsAutonomousDatabasesCreateCall { + c := &ProjectsLocationsAutonomousDatabasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.autonomousdatabase = autonomousdatabase + return c +} + +// AutonomousDatabaseId sets the optional parameter "autonomousDatabaseId": +// Required. The ID of the Autonomous Database to create. This value is +// restricted to (^a-z ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 +// characters in length. The value must start with a letter and end with a +// letter or a number. +func (c *ProjectsLocationsAutonomousDatabasesCreateCall) AutonomousDatabaseId(autonomousDatabaseId string) *ProjectsLocationsAutonomousDatabasesCreateCall { + c.urlParams_.Set("autonomousDatabaseId", autonomousDatabaseId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional ID to +// identify the request. This value is used to identify duplicate requests. If +// you make a request with the same request ID and the original request is +// still in progress or completed, the server ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAutonomousDatabasesCreateCall) RequestId(requestId string) *ProjectsLocationsAutonomousDatabasesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutonomousDatabasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutonomousDatabasesCreateCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutonomousDatabasesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutonomousDatabasesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.autonomousdatabase) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autonomousDatabases") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.autonomousDatabases.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAutonomousDatabasesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAutonomousDatabasesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Autonomous Database. +// +// - name: The name of the resource in the following format: +// projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat +// abase}. +func (r *ProjectsLocationsAutonomousDatabasesService) Delete(name string) *ProjectsLocationsAutonomousDatabasesDeleteCall { + c := &ProjectsLocationsAutonomousDatabasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": An optional ID to +// identify the request. This value is used to identify duplicate requests. If +// you make a request with the same request ID and the original request is +// still in progress or completed, the server ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) RequestId(requestId string) *ProjectsLocationsAutonomousDatabasesDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.autonomousDatabases.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAutonomousDatabasesGenerateWalletCall struct { + s *Service + name string + generateautonomousdatabasewalletrequest *GenerateAutonomousDatabaseWalletRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateWallet: Generates a wallet for a single Autonomous Database. +// +// - name: The name of the Autonomous Database in the following format: +// projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat +// abase}. +func (r *ProjectsLocationsAutonomousDatabasesService) GenerateWallet(name string, generateautonomousdatabasewalletrequest *GenerateAutonomousDatabaseWalletRequest) *ProjectsLocationsAutonomousDatabasesGenerateWalletCall { + c := &ProjectsLocationsAutonomousDatabasesGenerateWalletCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.generateautonomousdatabasewalletrequest = generateautonomousdatabasewalletrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutonomousDatabasesGenerateWalletCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesGenerateWalletCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutonomousDatabasesGenerateWalletCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesGenerateWalletCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutonomousDatabasesGenerateWalletCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutonomousDatabasesGenerateWalletCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.generateautonomousdatabasewalletrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateWallet") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.autonomousDatabases.generateWallet" call. +// Any non-2xx status code is an error. Response headers are in either +// *GenerateAutonomousDatabaseWalletResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAutonomousDatabasesGenerateWalletCall) Do(opts ...googleapi.CallOption) (*GenerateAutonomousDatabaseWalletResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GenerateAutonomousDatabaseWalletResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAutonomousDatabasesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the details of a single Autonomous Database. +// +// - name: The name of the Autonomous Database in the following format: +// projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat +// abase}. +func (r *ProjectsLocationsAutonomousDatabasesService) Get(name string) *ProjectsLocationsAutonomousDatabasesGetCall { + c := &ProjectsLocationsAutonomousDatabasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutonomousDatabasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAutonomousDatabasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutonomousDatabasesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutonomousDatabasesGetCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutonomousDatabasesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutonomousDatabasesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.autonomousDatabases.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *AutonomousDatabase.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAutonomousDatabasesGetCall) Do(opts ...googleapi.CallOption) (*AutonomousDatabase, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &AutonomousDatabase{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAutonomousDatabasesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the Autonomous Databases in a given project and location. +// +// - parent: The parent value for the Autonomous Database in the following +// format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsAutonomousDatabasesService) List(parent string) *ProjectsLocationsAutonomousDatabasesListCall { + c := &ProjectsLocationsAutonomousDatabasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. +func (c *ProjectsLocationsAutonomousDatabasesListCall) Filter(filter string) *ProjectsLocationsAutonomousDatabasesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": An expression for ordering +// the results of the request. +func (c *ProjectsLocationsAutonomousDatabasesListCall) OrderBy(orderBy string) *ProjectsLocationsAutonomousDatabasesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, at most 50 Autonomous Database will be returned. +// The maximum value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsAutonomousDatabasesListCall) PageSize(pageSize int64) *ProjectsLocationsAutonomousDatabasesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsAutonomousDatabasesListCall) PageToken(pageToken string) *ProjectsLocationsAutonomousDatabasesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutonomousDatabasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAutonomousDatabasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutonomousDatabasesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutonomousDatabasesListCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutonomousDatabasesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutonomousDatabasesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autonomousDatabases") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.autonomousDatabases.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAutonomousDatabasesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAutonomousDatabasesListCall) Do(opts ...googleapi.CallOption) (*ListAutonomousDatabasesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListAutonomousDatabasesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAutonomousDatabasesListCall) Pages(ctx context.Context, f func(*ListAutonomousDatabasesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAutonomousDatabasesRestoreCall struct { + s *Service + name string + restoreautonomousdatabaserequest *RestoreAutonomousDatabaseRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Restore: Restores a single Autonomous Database. +// +// - name: The name of the Autonomous Database in the following format: +// projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat +// abase}. +func (r *ProjectsLocationsAutonomousDatabasesService) Restore(name string, restoreautonomousdatabaserequest *RestoreAutonomousDatabaseRequest) *ProjectsLocationsAutonomousDatabasesRestoreCall { + c := &ProjectsLocationsAutonomousDatabasesRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.restoreautonomousdatabaserequest = restoreautonomousdatabaserequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutonomousDatabasesRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesRestoreCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutonomousDatabasesRestoreCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesRestoreCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutonomousDatabasesRestoreCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutonomousDatabasesRestoreCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.restoreautonomousdatabaserequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:restore") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.autonomousDatabases.restore" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAutonomousDatabasesRestoreCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAutonomousDbVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all the available Autonomous Database versions for a project and +// location. +// +// - parent: The parent value for the Autonomous Database in the following +// format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsAutonomousDbVersionsService) List(parent string) *ProjectsLocationsAutonomousDbVersionsListCall { + c := &ProjectsLocationsAutonomousDbVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, at most 50 Autonomous DB Versions will be +// returned. The maximum value is 1000; values above 1000 will be coerced to +// 1000. +func (c *ProjectsLocationsAutonomousDbVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAutonomousDbVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsAutonomousDbVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAutonomousDbVersionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAutonomousDbVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDbVersionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAutonomousDbVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutonomousDbVersionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAutonomousDbVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDbVersionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAutonomousDbVersionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAutonomousDbVersionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autonomousDbVersions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.autonomousDbVersions.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAutonomousDbVersionsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAutonomousDbVersionsListCall) Do(opts ...googleapi.CallOption) (*ListAutonomousDbVersionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListAutonomousDbVersionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAutonomousDbVersionsListCall) Pages(ctx context.Context, f func(*ListAutonomousDbVersionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsCloudExadataInfrastructuresCreateCall struct { + s *Service + parent string + cloudexadatainfrastructure *CloudExadataInfrastructure + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Exadata Infrastructure in a given project and +// location. +// +// - parent: The parent value for CloudExadataInfrastructure in the following +// format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsCloudExadataInfrastructuresService) Create(parent string, cloudexadatainfrastructure *CloudExadataInfrastructure) *ProjectsLocationsCloudExadataInfrastructuresCreateCall { + c := &ProjectsLocationsCloudExadataInfrastructuresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.cloudexadatainfrastructure = cloudexadatainfrastructure + return c +} + +// CloudExadataInfrastructureId sets the optional parameter +// "cloudExadataInfrastructureId": Required. The ID of the Exadata +// Infrastructure to create. This value is restricted to (^a-z +// ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in +// length. The value must start with a letter and end with a letter or a +// number. +func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) CloudExadataInfrastructureId(cloudExadataInfrastructureId string) *ProjectsLocationsCloudExadataInfrastructuresCreateCall { + c.urlParams_.Set("cloudExadataInfrastructureId", cloudExadataInfrastructureId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional ID to +// identify the request. This value is used to identify duplicate requests. If +// you make a request with the same request ID and the original request is +// still in progress or completed, the server ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) RequestId(requestId string) *ProjectsLocationsCloudExadataInfrastructuresCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudExadataInfrastructuresCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) Context(ctx context.Context) *ProjectsLocationsCloudExadataInfrastructuresCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudexadatainfrastructure) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudExadataInfrastructures") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.cloudExadataInfrastructures.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsCloudExadataInfrastructuresDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Exadata Infrastructure. +// +// - name: The name of the Cloud Exadata Infrastructure in the following +// format: +// projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_ +// exadata_infrastructure}. +func (r *ProjectsLocationsCloudExadataInfrastructuresService) Delete(name string) *ProjectsLocationsCloudExadataInfrastructuresDeleteCall { + c := &ProjectsLocationsCloudExadataInfrastructuresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": If set to true, all VM clusters +// for this Exadata Infrastructure will be deleted. An Exadata Infrastructure +// can only be deleted once all its VM clusters have been deleted. +func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) Force(force bool) *ProjectsLocationsCloudExadataInfrastructuresDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// RequestId sets the optional parameter "requestId": An optional ID to +// identify the request. This value is used to identify duplicate requests. If +// you make a request with the same request ID and the original request is +// still in progress or completed, the server ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) RequestId(requestId string) *ProjectsLocationsCloudExadataInfrastructuresDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudExadataInfrastructuresDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) Context(ctx context.Context) *ProjectsLocationsCloudExadataInfrastructuresDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.cloudExadataInfrastructures.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsCloudExadataInfrastructuresGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single Exadata Infrastructure. +// +// - name: The name of the Cloud Exadata Infrastructure in the following +// format: +// projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_ +// exadata_infrastructure}. +func (r *ProjectsLocationsCloudExadataInfrastructuresService) Get(name string) *ProjectsLocationsCloudExadataInfrastructuresGetCall { + c := &ProjectsLocationsCloudExadataInfrastructuresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudExadataInfrastructuresGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudExadataInfrastructuresGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) Context(ctx context.Context) *ProjectsLocationsCloudExadataInfrastructuresGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.cloudExadataInfrastructures.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *CloudExadataInfrastructure.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) Do(opts ...googleapi.CallOption) (*CloudExadataInfrastructure, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &CloudExadataInfrastructure{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsCloudExadataInfrastructuresListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Exadata Infrastructures in a given project and location. +// +// - parent: The parent value for CloudExadataInfrastructure in the following +// format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsCloudExadataInfrastructuresService) List(parent string) *ProjectsLocationsCloudExadataInfrastructuresListCall { + c := &ProjectsLocationsCloudExadataInfrastructuresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, at most 50 Exadata infrastructures will be +// returned. The maximum value is 1000; values above 1000 will be coerced to +// 1000. +func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) PageSize(pageSize int64) *ProjectsLocationsCloudExadataInfrastructuresListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) PageToken(pageToken string) *ProjectsLocationsCloudExadataInfrastructuresListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudExadataInfrastructuresListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudExadataInfrastructuresListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Context(ctx context.Context) *ProjectsLocationsCloudExadataInfrastructuresListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudExadataInfrastructures") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.cloudExadataInfrastructures.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListCloudExadataInfrastructuresResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Do(opts ...googleapi.CallOption) (*ListCloudExadataInfrastructuresResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListCloudExadataInfrastructuresResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Pages(ctx context.Context, f func(*ListCloudExadataInfrastructuresResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsCloudExadataInfrastructuresDbServersListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the database servers of an Exadata Infrastructure instance. +// +// - parent: The parent value for database server in the following format: +// projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudE +// xadataInfrastructure}. +func (r *ProjectsLocationsCloudExadataInfrastructuresDbServersService) List(parent string) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall { + c := &ProjectsLocationsCloudExadataInfrastructuresDbServersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, a maximum of 50 db servers will be returned. The +// maximum value is 1000; values above 1000 will be reset to 1000. +func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) PageSize(pageSize int64) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) PageToken(pageToken string) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) Context(ctx context.Context) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbServers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.cloudExadataInfrastructures.dbServers.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListDbServersResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) Do(opts ...googleapi.CallOption) (*ListDbServersResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListDbServersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) Pages(ctx context.Context, f func(*ListDbServersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsCloudVmClustersCreateCall struct { + s *Service + parent string + cloudvmcluster *CloudVmCluster + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new VM Cluster in a given project and location. +// +// - parent: The name of the parent in the following format: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsCloudVmClustersService) Create(parent string, cloudvmcluster *CloudVmCluster) *ProjectsLocationsCloudVmClustersCreateCall { + c := &ProjectsLocationsCloudVmClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.cloudvmcluster = cloudvmcluster + return c +} + +// CloudVmClusterId sets the optional parameter "cloudVmClusterId": Required. +// The ID of the VM Cluster to create. This value is restricted to (^a-z +// ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in +// length. The value must start with a letter and end with a letter or a +// number. +func (c *ProjectsLocationsCloudVmClustersCreateCall) CloudVmClusterId(cloudVmClusterId string) *ProjectsLocationsCloudVmClustersCreateCall { + c.urlParams_.Set("cloudVmClusterId", cloudVmClusterId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional ID to +// identify the request. This value is used to identify duplicate requests. If +// you make a request with the same request ID and the original request is +// still in progress or completed, the server ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsCloudVmClustersCreateCall) RequestId(requestId string) *ProjectsLocationsCloudVmClustersCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCloudVmClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudVmClustersCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCloudVmClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsCloudVmClustersCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCloudVmClustersCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudVmClustersCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudvmcluster) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudVmClusters") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.cloudVmClusters.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsCloudVmClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsCloudVmClustersDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single VM Cluster. +// +// - name: The name of the Cloud VM Cluster in the following format: +// projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. +func (r *ProjectsLocationsCloudVmClustersService) Delete(name string) *ProjectsLocationsCloudVmClustersDeleteCall { + c := &ProjectsLocationsCloudVmClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": If set to true, all child +// resources for the VM Cluster will be deleted. A VM Cluster can only be +// deleted once all its child resources have been deleted. +func (c *ProjectsLocationsCloudVmClustersDeleteCall) Force(force bool) *ProjectsLocationsCloudVmClustersDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// RequestId sets the optional parameter "requestId": An optional ID to +// identify the request. This value is used to identify duplicate requests. If +// you make a request with the same request ID and the original request is +// still in progress or completed, the server ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsCloudVmClustersDeleteCall) RequestId(requestId string) *ProjectsLocationsCloudVmClustersDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCloudVmClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudVmClustersDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCloudVmClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsCloudVmClustersDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCloudVmClustersDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudVmClustersDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.cloudVmClusters.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsCloudVmClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsCloudVmClustersGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single VM Cluster. +// +// - name: The name of the Cloud VM Cluster in the following format: +// projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. +func (r *ProjectsLocationsCloudVmClustersService) Get(name string) *ProjectsLocationsCloudVmClustersGetCall { + c := &ProjectsLocationsCloudVmClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCloudVmClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudVmClustersGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsCloudVmClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudVmClustersGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCloudVmClustersGetCall) Context(ctx context.Context) *ProjectsLocationsCloudVmClustersGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCloudVmClustersGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudVmClustersGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.cloudVmClusters.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *CloudVmCluster.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsCloudVmClustersGetCall) Do(opts ...googleapi.CallOption) (*CloudVmCluster, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &CloudVmCluster{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsCloudVmClustersListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the VM Clusters in a given project and location. +// +// - parent: The name of the parent in the following format: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsCloudVmClustersService) List(parent string) *ProjectsLocationsCloudVmClustersListCall { + c := &ProjectsLocationsCloudVmClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. +func (c *ProjectsLocationsCloudVmClustersListCall) Filter(filter string) *ProjectsLocationsCloudVmClustersListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The number of VM clusters +// to return. If unspecified, at most 50 VM clusters will be returned. The +// maximum value is 1,000. +func (c *ProjectsLocationsCloudVmClustersListCall) PageSize(pageSize int64) *ProjectsLocationsCloudVmClustersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying the +// page of results the server returns. +func (c *ProjectsLocationsCloudVmClustersListCall) PageToken(pageToken string) *ProjectsLocationsCloudVmClustersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCloudVmClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudVmClustersListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsCloudVmClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudVmClustersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCloudVmClustersListCall) Context(ctx context.Context) *ProjectsLocationsCloudVmClustersListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCloudVmClustersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudVmClustersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudVmClusters") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.cloudVmClusters.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListCloudVmClustersResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCloudVmClustersListCall) Do(opts ...googleapi.CallOption) (*ListCloudVmClustersResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListCloudVmClustersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsCloudVmClustersListCall) Pages(ctx context.Context, f func(*ListCloudVmClustersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsCloudVmClustersDbNodesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the database nodes of a VM Cluster. +// +// - parent: The parent value for database node in the following format: +// projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. +func (r *ProjectsLocationsCloudVmClustersDbNodesService) List(parent string) *ProjectsLocationsCloudVmClustersDbNodesListCall { + c := &ProjectsLocationsCloudVmClustersDbNodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, at most 50 db nodes will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) PageSize(pageSize int64) *ProjectsLocationsCloudVmClustersDbNodesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the node should return. +func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) PageToken(pageToken string) *ProjectsLocationsCloudVmClustersDbNodesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudVmClustersDbNodesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudVmClustersDbNodesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Context(ctx context.Context) *ProjectsLocationsCloudVmClustersDbNodesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbNodes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.cloudVmClusters.dbNodes.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListDbNodesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Do(opts ...googleapi.CallOption) (*ListDbNodesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListDbNodesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Pages(ctx context.Context, f func(*ListDbNodesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsDbSystemShapesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the database system shapes available for the project and +// location. +// +// - parent: The parent value for Database System Shapes in the following +// format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsDbSystemShapesService) List(parent string) *ProjectsLocationsDbSystemShapesListCall { + c := &ProjectsLocationsDbSystemShapesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, at most 50 database system shapes will be +// returned. The maximum value is 1000; values above 1000 will be coerced to +// 1000. +func (c *ProjectsLocationsDbSystemShapesListCall) PageSize(pageSize int64) *ProjectsLocationsDbSystemShapesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsDbSystemShapesListCall) PageToken(pageToken string) *ProjectsLocationsDbSystemShapesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDbSystemShapesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemShapesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsDbSystemShapesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbSystemShapesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDbSystemShapesListCall) Context(ctx context.Context) *ProjectsLocationsDbSystemShapesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDbSystemShapesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDbSystemShapesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbSystemShapes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.dbSystemShapes.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListDbSystemShapesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsDbSystemShapesListCall) Do(opts ...googleapi.CallOption) (*ListDbSystemShapesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListDbSystemShapesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsDbSystemShapesListCall) Pages(ctx context.Context, f func(*ListDbSystemShapesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsEntitlementsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the entitlements in a given project. +// +// - parent: The parent value for Entitlement in the following format: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsEntitlementsService) List(parent string) *ProjectsLocationsEntitlementsListCall { + c := &ProjectsLocationsEntitlementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, a maximum of 50 entitlements will be returned. +// The maximum value is 1000. +func (c *ProjectsLocationsEntitlementsListCall) PageSize(pageSize int64) *ProjectsLocationsEntitlementsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsEntitlementsListCall) PageToken(pageToken string) *ProjectsLocationsEntitlementsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEntitlementsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntitlementsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsEntitlementsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntitlementsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEntitlementsListCall) Context(ctx context.Context) *ProjectsLocationsEntitlementsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEntitlementsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEntitlementsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entitlements") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.entitlements.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListEntitlementsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsEntitlementsListCall) Do(opts ...googleapi.CallOption) (*ListEntitlementsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListEntitlementsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsEntitlementsListCall) Pages(ctx context.Context, f func(*ListEntitlementsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsGiVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all the valid Oracle Grid Infrastructure (GI) versions for the +// given project and location. +// +// - parent: The parent value for Grid Infrastructure Version in the following +// format: Format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsGiVersionsService) List(parent string) *ProjectsLocationsGiVersionsListCall { + c := &ProjectsLocationsGiVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) +// versions will be returned. The maximum value is 1000; values above 1000 will +// be reset to 1000. +func (c *ProjectsLocationsGiVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsGiVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsGiVersionsListCall) PageToken(pageToken string) *ProjectsLocationsGiVersionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGiVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGiVersionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGiVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGiVersionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGiVersionsListCall) Context(ctx context.Context) *ProjectsLocationsGiVersionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGiVersionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGiVersionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/giVersions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.giVersions.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListGiVersionsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsGiVersionsListCall) Do(opts ...googleapi.CallOption) (*ListGiVersionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListGiVersionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsGiVersionsListCall) Pages(ctx context.Context, f func(*ListGiVersionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) +} + +// Do executes the "oracledatabase.projects.locations.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/orgpolicy/v2/orgpolicy-gen.go b/orgpolicy/v2/orgpolicy-gen.go index 62214d78c19..214ee02b680 100644 --- a/orgpolicy/v2/orgpolicy-gen.go +++ b/orgpolicy/v2/orgpolicy-gen.go @@ -885,7 +885,7 @@ func (c *FoldersConstraintsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.folders.constraints.list" call. @@ -1014,7 +1014,7 @@ func (c *FoldersPoliciesCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.folders.policies.create" call. @@ -1120,7 +1120,7 @@ func (c *FoldersPoliciesDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.folders.policies.delete" call. @@ -1230,7 +1230,7 @@ func (c *FoldersPoliciesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.folders.policies.get" call. @@ -1343,7 +1343,7 @@ func (c *FoldersPoliciesGetEffectivePolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.folders.policies.getEffectivePolicy" call. @@ -1471,7 +1471,7 @@ func (c *FoldersPoliciesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.folders.policies.list" call. @@ -1616,7 +1616,7 @@ func (c *FoldersPoliciesPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.folders.policies.patch" call. @@ -1743,7 +1743,7 @@ func (c *OrganizationsConstraintsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.constraints.list" call. @@ -1869,7 +1869,7 @@ func (c *OrganizationsCustomConstraintsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.customConstraints.create" call. @@ -1967,7 +1967,7 @@ func (c *OrganizationsCustomConstraintsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.customConstraints.delete" call. @@ -2077,7 +2077,7 @@ func (c *OrganizationsCustomConstraintsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.customConstraints.get" call. @@ -2204,7 +2204,7 @@ func (c *OrganizationsCustomConstraintsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.customConstraints.list" call. @@ -2335,7 +2335,7 @@ func (c *OrganizationsCustomConstraintsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.customConstraints.patch" call. @@ -2443,7 +2443,7 @@ func (c *OrganizationsPoliciesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.policies.create" call. @@ -2549,7 +2549,7 @@ func (c *OrganizationsPoliciesDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.policies.delete" call. @@ -2659,7 +2659,7 @@ func (c *OrganizationsPoliciesGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.policies.get" call. @@ -2772,7 +2772,7 @@ func (c *OrganizationsPoliciesGetEffectivePolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.policies.getEffectivePolicy" call. @@ -2900,7 +2900,7 @@ func (c *OrganizationsPoliciesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.policies.list" call. @@ -3045,7 +3045,7 @@ func (c *OrganizationsPoliciesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.organizations.policies.patch" call. @@ -3172,7 +3172,7 @@ func (c *ProjectsConstraintsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.projects.constraints.list" call. @@ -3301,7 +3301,7 @@ func (c *ProjectsPoliciesCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.projects.policies.create" call. @@ -3407,7 +3407,7 @@ func (c *ProjectsPoliciesDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.projects.policies.delete" call. @@ -3517,7 +3517,7 @@ func (c *ProjectsPoliciesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.projects.policies.get" call. @@ -3630,7 +3630,7 @@ func (c *ProjectsPoliciesGetEffectivePolicyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.projects.policies.getEffectivePolicy" call. @@ -3758,7 +3758,7 @@ func (c *ProjectsPoliciesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.projects.policies.list" call. @@ -3903,7 +3903,7 @@ func (c *ProjectsPoliciesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "orgpolicy.projects.policies.patch" call. diff --git a/osconfig/v1/osconfig-gen.go b/osconfig/v1/osconfig-gen.go index 28768a74e56..4f5b4f8d2ba 100644 --- a/osconfig/v1/osconfig-gen.go +++ b/osconfig/v1/osconfig-gen.go @@ -3796,7 +3796,7 @@ func (c *ProjectsLocationsGlobalGetProjectFeatureSettingsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.global.getProjectFeatureSettings" call. @@ -3907,7 +3907,7 @@ func (c *ProjectsLocationsGlobalUpdateProjectFeatureSettingsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.global.updateProjectFeatureSettings" call. @@ -4037,7 +4037,7 @@ func (c *ProjectsLocationsInstancesInventoriesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.inventories.get" call. @@ -4186,7 +4186,7 @@ func (c *ProjectsLocationsInstancesInventoriesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.inventories.list" call. @@ -4321,7 +4321,7 @@ func (c *ProjectsLocationsInstancesOsPolicyAssignmentsReportsGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.osPolicyAssignments.reports.get" call. @@ -4470,7 +4470,7 @@ func (c *ProjectsLocationsInstancesOsPolicyAssignmentsReportsListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.osPolicyAssignments.reports.list" call. @@ -4604,7 +4604,7 @@ func (c *ProjectsLocationsInstancesVulnerabilityReportsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.vulnerabilityReports.get" call. @@ -4747,7 +4747,7 @@ func (c *ProjectsLocationsInstancesVulnerabilityReportsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.vulnerabilityReports.list" call. @@ -4895,7 +4895,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.create" call. @@ -5004,7 +5004,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.delete" call. @@ -5115,7 +5115,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.get" call. @@ -5239,7 +5239,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.list" call. @@ -5384,7 +5384,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsListRevisionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.listRevisions" call. @@ -5538,7 +5538,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.patch" call. @@ -5647,7 +5647,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.operations.cancel" call. @@ -5756,7 +5756,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.operations.get" call. @@ -5868,7 +5868,7 @@ func (c *ProjectsPatchDeploymentsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.create" call. @@ -5965,7 +5965,7 @@ func (c *ProjectsPatchDeploymentsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.delete" call. @@ -6073,7 +6073,7 @@ func (c *ProjectsPatchDeploymentsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.get" call. @@ -6196,7 +6196,7 @@ func (c *ProjectsPatchDeploymentsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.list" call. @@ -6329,7 +6329,7 @@ func (c *ProjectsPatchDeploymentsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.patch" call. @@ -6433,7 +6433,7 @@ func (c *ProjectsPatchDeploymentsPauseCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.pause" call. @@ -6537,7 +6537,7 @@ func (c *ProjectsPatchDeploymentsResumeCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.resume" call. @@ -6640,7 +6640,7 @@ func (c *ProjectsPatchJobsCancelCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchJobs.cancel" call. @@ -6741,7 +6741,7 @@ func (c *ProjectsPatchJobsExecuteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchJobs.execute" call. @@ -6849,7 +6849,7 @@ func (c *ProjectsPatchJobsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchJobs.get" call. @@ -6980,7 +6980,7 @@ func (c *ProjectsPatchJobsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchJobs.list" call. @@ -7133,7 +7133,7 @@ func (c *ProjectsPatchJobsInstanceDetailsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchJobs.instanceDetails.list" call. diff --git a/osconfig/v1alpha/osconfig-gen.go b/osconfig/v1alpha/osconfig-gen.go index dcb77148942..013f2dcc4e2 100644 --- a/osconfig/v1alpha/osconfig-gen.go +++ b/osconfig/v1alpha/osconfig-gen.go @@ -2911,7 +2911,7 @@ func (c *ProjectsLocationsInstanceOSPoliciesCompliancesGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instanceOSPoliciesCompliances.get" call. @@ -3045,7 +3045,7 @@ func (c *ProjectsLocationsInstanceOSPoliciesCompliancesListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instanceOSPoliciesCompliances.list" call. @@ -3196,7 +3196,7 @@ func (c *ProjectsLocationsInstancesInventoriesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.inventories.get" call. @@ -3345,7 +3345,7 @@ func (c *ProjectsLocationsInstancesInventoriesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.inventories.list" call. @@ -3480,7 +3480,7 @@ func (c *ProjectsLocationsInstancesOsPolicyAssignmentsReportsGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.osPolicyAssignments.reports.get" call. @@ -3629,7 +3629,7 @@ func (c *ProjectsLocationsInstancesOsPolicyAssignmentsReportsListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.osPolicyAssignments.reports.list" call. @@ -3763,7 +3763,7 @@ func (c *ProjectsLocationsInstancesVulnerabilityReportsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.vulnerabilityReports.get" call. @@ -3906,7 +3906,7 @@ func (c *ProjectsLocationsInstancesVulnerabilityReportsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.instances.vulnerabilityReports.list" call. @@ -4053,7 +4053,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.create" call. @@ -4162,7 +4162,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.delete" call. @@ -4273,7 +4273,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.get" call. @@ -4397,7 +4397,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.list" call. @@ -4542,7 +4542,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsListRevisionsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.listRevisions" call. @@ -4696,7 +4696,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.patch" call. @@ -4805,7 +4805,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.operations.cancel" call. @@ -4914,7 +4914,7 @@ func (c *ProjectsLocationsOsPolicyAssignmentsOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.locations.osPolicyAssignments.operations.get" call. diff --git a/osconfig/v1beta/osconfig-gen.go b/osconfig/v1beta/osconfig-gen.go index 482533526a0..48827a0c9d4 100644 --- a/osconfig/v1beta/osconfig-gen.go +++ b/osconfig/v1beta/osconfig-gen.go @@ -2504,7 +2504,7 @@ func (c *ProjectsGuestPoliciesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.guestPolicies.create" call. @@ -2600,7 +2600,7 @@ func (c *ProjectsGuestPoliciesDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.guestPolicies.delete" call. @@ -2708,7 +2708,7 @@ func (c *ProjectsGuestPoliciesGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.guestPolicies.get" call. @@ -2831,7 +2831,7 @@ func (c *ProjectsGuestPoliciesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.guestPolicies.list" call. @@ -2963,7 +2963,7 @@ func (c *ProjectsGuestPoliciesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.guestPolicies.patch" call. @@ -3075,7 +3075,7 @@ func (c *ProjectsPatchDeploymentsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.create" call. @@ -3172,7 +3172,7 @@ func (c *ProjectsPatchDeploymentsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.delete" call. @@ -3280,7 +3280,7 @@ func (c *ProjectsPatchDeploymentsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.get" call. @@ -3403,7 +3403,7 @@ func (c *ProjectsPatchDeploymentsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.list" call. @@ -3536,7 +3536,7 @@ func (c *ProjectsPatchDeploymentsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.patch" call. @@ -3640,7 +3640,7 @@ func (c *ProjectsPatchDeploymentsPauseCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.pause" call. @@ -3744,7 +3744,7 @@ func (c *ProjectsPatchDeploymentsResumeCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchDeployments.resume" call. @@ -3847,7 +3847,7 @@ func (c *ProjectsPatchJobsCancelCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchJobs.cancel" call. @@ -3948,7 +3948,7 @@ func (c *ProjectsPatchJobsExecuteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchJobs.execute" call. @@ -4056,7 +4056,7 @@ func (c *ProjectsPatchJobsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchJobs.get" call. @@ -4187,7 +4187,7 @@ func (c *ProjectsPatchJobsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchJobs.list" call. @@ -4340,7 +4340,7 @@ func (c *ProjectsPatchJobsInstanceDetailsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.patchJobs.instanceDetails.list" call. @@ -4465,7 +4465,7 @@ func (c *ProjectsZonesInstancesLookupEffectiveGuestPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "osconfig.projects.zones.instances.lookupEffectiveGuestPolicy" call. diff --git a/oslogin/v1/oslogin-gen.go b/oslogin/v1/oslogin-gen.go index 0f580b42133..6e552b2440f 100644 --- a/oslogin/v1/oslogin-gen.go +++ b/oslogin/v1/oslogin-gen.go @@ -439,7 +439,7 @@ func (c *UsersGetLoginProfileCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.getLoginProfile" call. @@ -557,7 +557,7 @@ func (c *UsersImportSshPublicKeyCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.importSshPublicKey" call. @@ -655,7 +655,7 @@ func (c *UsersProjectsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.projects.delete" call. @@ -756,7 +756,7 @@ func (c *UsersSshPublicKeysCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.create" call. @@ -853,7 +853,7 @@ func (c *UsersSshPublicKeysDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.delete" call. @@ -962,7 +962,7 @@ func (c *UsersSshPublicKeysGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.get" call. @@ -1073,7 +1073,7 @@ func (c *UsersSshPublicKeysPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.patch" call. diff --git a/oslogin/v1alpha/oslogin-gen.go b/oslogin/v1alpha/oslogin-gen.go index aff6e2a2d23..47d8046443f 100644 --- a/oslogin/v1alpha/oslogin-gen.go +++ b/oslogin/v1alpha/oslogin-gen.go @@ -619,7 +619,7 @@ func (c *UsersGetLoginProfileCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.getLoginProfile" call. @@ -753,7 +753,7 @@ func (c *UsersImportSshPublicKeyCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.importSshPublicKey" call. @@ -867,7 +867,7 @@ func (c *UsersProjectsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.projects.delete" call. @@ -969,7 +969,7 @@ func (c *UsersProjectsLocationsSignSshPublicKeyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.projects.locations.signSshPublicKey" call. @@ -1072,7 +1072,7 @@ func (c *UsersProjectsZonesSignSshPublicKeyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.projects.zones.signSshPublicKey" call. @@ -1174,7 +1174,7 @@ func (c *UsersSshPublicKeysCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.create" call. @@ -1271,7 +1271,7 @@ func (c *UsersSshPublicKeysDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.delete" call. @@ -1380,7 +1380,7 @@ func (c *UsersSshPublicKeysGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.get" call. @@ -1491,7 +1491,7 @@ func (c *UsersSshPublicKeysPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.patch" call. diff --git a/oslogin/v1beta/oslogin-gen.go b/oslogin/v1beta/oslogin-gen.go index 4f29e7c0cd4..1e78a580588 100644 --- a/oslogin/v1beta/oslogin-gen.go +++ b/oslogin/v1beta/oslogin-gen.go @@ -603,7 +603,7 @@ func (c *UsersGetLoginProfileCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.getLoginProfile" call. @@ -737,7 +737,7 @@ func (c *UsersImportSshPublicKeyCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.importSshPublicKey" call. @@ -835,7 +835,7 @@ func (c *UsersProjectsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.projects.delete" call. @@ -937,7 +937,7 @@ func (c *UsersProjectsLocationsSignSshPublicKeyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.projects.locations.signSshPublicKey" call. @@ -1040,7 +1040,7 @@ func (c *UsersProjectsZonesSignSshPublicKeyCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.projects.zones.signSshPublicKey" call. @@ -1142,7 +1142,7 @@ func (c *UsersSshPublicKeysCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.create" call. @@ -1239,7 +1239,7 @@ func (c *UsersSshPublicKeysDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.delete" call. @@ -1348,7 +1348,7 @@ func (c *UsersSshPublicKeysGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.get" call. @@ -1459,7 +1459,7 @@ func (c *UsersSshPublicKeysPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "oslogin.users.sshPublicKeys.patch" call. diff --git a/pagespeedonline/v1/pagespeedonline-gen.go b/pagespeedonline/v1/pagespeedonline-gen.go index 8b1314e3102..363a37dcca2 100644 --- a/pagespeedonline/v1/pagespeedonline-gen.go +++ b/pagespeedonline/v1/pagespeedonline-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/speed/docs/insights/v1/getting_started // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // pagespeedonlineService, err := pagespeedonline.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // pagespeedonlineService, err := pagespeedonline.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // pagespeedonlineService, err := pagespeedonline.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package pagespeedonline // import "google.golang.org/api/pagespeedonline/v1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,15 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "pagespeedonline:v1" const apiName = "pagespeedonline" const apiVersion = "v1" const basePath = "https://www.googleapis.com/pagespeedonline/v1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/pagespeedonline/v1/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -134,150 +152,113 @@ type PagespeedapiService struct { type Result struct { // CaptchaResult: The captcha verify result CaptchaResult string `json:"captchaResult,omitempty"` - - // FormattedResults: Localized PageSpeed results. Contains a ruleResults - // entry for each PageSpeed rule instantiated and run by the server. + // FormattedResults: Localized PageSpeed results. Contains a ruleResults entry + // for each PageSpeed rule instantiated and run by the server. FormattedResults *ResultFormattedResults `json:"formattedResults,omitempty"` - - // Id: Canonicalized and final URL for the document, after following - // page redirects (if any). + // Id: Canonicalized and final URL for the document, after following page + // redirects (if any). Id string `json:"id,omitempty"` - - // InvalidRules: List of rules that were specified in the request, but - // which the server did not know how to instantiate. + // InvalidRules: List of rules that were specified in the request, but which + // the server did not know how to instantiate. InvalidRules []string `json:"invalidRules,omitempty"` - // Kind: Kind of result. Kind string `json:"kind,omitempty"` - - // PageStats: Summary statistics for the page, such as number of - // JavaScript bytes, number of HTML bytes, etc. + // PageStats: Summary statistics for the page, such as number of JavaScript + // bytes, number of HTML bytes, etc. PageStats *ResultPageStats `json:"pageStats,omitempty"` - - // ResponseCode: Response code for the document. 200 indicates a normal - // page load. 4xx/5xx indicates an error. + // ResponseCode: Response code for the document. 200 indicates a normal page + // load. 4xx/5xx indicates an error. ResponseCode int64 `json:"responseCode,omitempty"` - - // Score: The PageSpeed Score (0-100), which indicates how much faster a - // page could be. A high score indicates little room for improvement, - // while a lower score indicates more room for improvement. + // Score: The PageSpeed Score (0-100), which indicates how much faster a page + // could be. A high score indicates little room for improvement, while a lower + // score indicates more room for improvement. Score int64 `json:"score,omitempty"` - // Screenshot: Base64-encoded screenshot of the page that was analyzed. Screenshot *ResultScreenshot `json:"screenshot,omitempty"` - // Title: Title of the page, as displayed in the browser's title bar. Title string `json:"title,omitempty"` - // Version: The version of PageSpeed used to generate these results. Version *ResultVersion `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CaptchaResult") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CaptchaResult") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CaptchaResult") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Result) MarshalJSON() ([]byte, error) { +func (s Result) MarshalJSON() ([]byte, error) { type NoMethod Result - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResultFormattedResults: Localized PageSpeed results. Contains a -// ruleResults entry for each PageSpeed rule instantiated and run by the -// server. +// ResultFormattedResults: Localized PageSpeed results. Contains a ruleResults +// entry for each PageSpeed rule instantiated and run by the server. type ResultFormattedResults struct { // Locale: The locale of the formattedResults, e.g. "en_US". Locale string `json:"locale,omitempty"` - - // RuleResults: Dictionary of formatted rule results, with one entry for - // each PageSpeed rule instantiated and run by the server. + // RuleResults: Dictionary of formatted rule results, with one entry for each + // PageSpeed rule instantiated and run by the server. RuleResults map[string]ResultFormattedResultsRuleResults `json:"ruleResults,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Locale") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Locale") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locale") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResults) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResults) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResultFormattedResultsRuleResults: The enum-like identifier for this -// rule. For instance "EnableKeepAlive" or "AvoidCssImport". Not -// localized. +// ResultFormattedResultsRuleResults: The enum-like identifier for this rule. +// For instance "EnableKeepAlive" or "AvoidCssImport". Not localized. type ResultFormattedResultsRuleResults struct { - // LocalizedRuleName: Localized name of the rule, intended for - // presentation to a user. + // LocalizedRuleName: Localized name of the rule, intended for presentation to + // a user. LocalizedRuleName string `json:"localizedRuleName,omitempty"` - - // RuleImpact: The impact (unbounded floating point value) that - // implementing the suggestions for this rule would have on making the - // page faster. Impact is comparable between rules to determine which - // rule's suggestions would have a higher or lower impact on making a - // page faster. For instance, if enabling compression would save 1MB, - // while optimizing images would save 500kB, the enable compression rule - // would have 2x the impact of the image optimization rule, all other - // things being equal. + // RuleImpact: The impact (unbounded floating point value) that implementing + // the suggestions for this rule would have on making the page faster. Impact + // is comparable between rules to determine which rule's suggestions would have + // a higher or lower impact on making a page faster. For instance, if enabling + // compression would save 1MB, while optimizing images would save 500kB, the + // enable compression rule would have 2x the impact of the image optimization + // rule, all other things being equal. RuleImpact float64 `json:"ruleImpact,omitempty"` - - // UrlBlocks: List of blocks of URLs. Each block may contain a heading - // and a list of URLs. Each URL may optionally include additional - // details. + // UrlBlocks: List of blocks of URLs. Each block may contain a heading and a + // list of URLs. Each URL may optionally include additional details. UrlBlocks []*ResultFormattedResultsRuleResultsUrlBlocks `json:"urlBlocks,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LocalizedRuleName") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "LocalizedRuleName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LocalizedRuleName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LocalizedRuleName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResults) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResults) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *ResultFormattedResultsRuleResults) UnmarshalJSON(data []byte) error { @@ -297,410 +278,312 @@ func (s *ResultFormattedResultsRuleResults) UnmarshalJSON(data []byte) error { type ResultFormattedResultsRuleResultsUrlBlocks struct { // Header: Heading to be displayed with the list of URLs. Header *ResultFormattedResultsRuleResultsUrlBlocksHeader `json:"header,omitempty"` - - // Urls: List of entries that provide information about URLs in the url - // block. Optional. + // Urls: List of entries that provide information about URLs in the url block. + // Optional. Urls []*ResultFormattedResultsRuleResultsUrlBlocksUrls `json:"urls,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResultsUrlBlocks) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResultsUrlBlocks) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResultsUrlBlocks - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResultFormattedResultsRuleResultsUrlBlocksHeader: Heading to be -// displayed with the list of URLs. +// ResultFormattedResultsRuleResultsUrlBlocksHeader: Heading to be displayed +// with the list of URLs. type ResultFormattedResultsRuleResultsUrlBlocksHeader struct { // Args: List of arguments for the format string. Args []*ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs `json:"args,omitempty"` - - // Format: A localized format string with $N placeholders, where N is - // the 1-indexed argument number, e.g. 'Minifying the following $1 - // resources would save a total of $2 bytes'. + // Format: A localized format string with $N placeholders, where N is the + // 1-indexed argument number, e.g. 'Minifying the following $1 resources would + // save a total of $2 bytes'. Format string `json:"format,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Args") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Args") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Args") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Args") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResultsUrlBlocksHeader) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResultsUrlBlocksHeader) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResultsUrlBlocksHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs struct { - // Type: Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, - // BYTES, or DURATION. + // Type: Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, or + // DURATION. Type string `json:"type,omitempty"` - // Value: Argument value, as a localized string. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResultsUrlBlocksHeaderArgs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultFormattedResultsRuleResultsUrlBlocksUrls struct { - // Details: List of entries that provide additional details about a - // single URL. Optional. + // Details: List of entries that provide additional details about a single URL. + // Optional. Details []*ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails `json:"details,omitempty"` - - // Result: A format string that gives information about the URL, and a - // list of arguments for that format string. + // Result: A format string that gives information about the URL, and a list of + // arguments for that format string. Result *ResultFormattedResultsRuleResultsUrlBlocksUrlsResult `json:"result,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResultsUrlBlocksUrls) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResultsUrlBlocksUrls) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails struct { // Args: List of arguments for the format string. Args []*ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs `json:"args,omitempty"` - - // Format: A localized format string with $N placeholders, where N is - // the 1-indexed argument number, e.g. 'Unnecessary metadata for this - // resource adds an additional $1 bytes to its download size'. + // Format: A localized format string with $N placeholders, where N is the + // 1-indexed argument number, e.g. 'Unnecessary metadata for this resource adds + // an additional $1 bytes to its download size'. Format string `json:"format,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Args") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Args") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Args") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Args") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs struct { - // Type: Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, - // BYTES, or DURATION. + // Type: Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, or + // DURATION. Type string `json:"type,omitempty"` - // Value: Argument value, as a localized string. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsDetailsArgs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResultFormattedResultsRuleResultsUrlBlocksUrlsResult: A format string -// that gives information about the URL, and a list of arguments for -// that format string. +// ResultFormattedResultsRuleResultsUrlBlocksUrlsResult: A format string that +// gives information about the URL, and a list of arguments for that format +// string. type ResultFormattedResultsRuleResultsUrlBlocksUrlsResult struct { // Args: List of arguments for the format string. Args []*ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs `json:"args,omitempty"` - - // Format: A localized format string with $N placeholders, where N is - // the 1-indexed argument number, e.g. 'Minifying the resource at URL $1 - // can save $2 bytes'. + // Format: A localized format string with $N placeholders, where N is the + // 1-indexed argument number, e.g. 'Minifying the resource at URL $1 can save + // $2 bytes'. Format string `json:"format,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Args") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Args") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Args") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Args") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResultsUrlBlocksUrlsResult) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResultsUrlBlocksUrlsResult) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs struct { - // Type: Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, - // BYTES, or DURATION. + // Type: Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, or + // DURATION. Type string `json:"type,omitempty"` - // Value: Argument value, as a localized string. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrlsResultArgs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ResultPageStats: Summary statistics for the page, such as number of // JavaScript bytes, number of HTML bytes, etc. type ResultPageStats struct { - // CssResponseBytes: Number of uncompressed response bytes for CSS - // resources on the page. - CssResponseBytes int64 `json:"cssResponseBytes,omitempty,string"` - - // FlashResponseBytes: Number of response bytes for flash resources on + // CssResponseBytes: Number of uncompressed response bytes for CSS resources on // the page. + CssResponseBytes int64 `json:"cssResponseBytes,omitempty,string"` + // FlashResponseBytes: Number of response bytes for flash resources on the + // page. FlashResponseBytes int64 `json:"flashResponseBytes,omitempty,string"` - - // HtmlResponseBytes: Number of uncompressed response bytes for the main - // HTML document and all iframes on the page. + // HtmlResponseBytes: Number of uncompressed response bytes for the main HTML + // document and all iframes on the page. HtmlResponseBytes int64 `json:"htmlResponseBytes,omitempty,string"` - - // ImageResponseBytes: Number of response bytes for image resources on - // the page. + // ImageResponseBytes: Number of response bytes for image resources on the + // page. ImageResponseBytes int64 `json:"imageResponseBytes,omitempty,string"` - // JavascriptResponseBytes: Number of uncompressed response bytes for JS // resources on the page. JavascriptResponseBytes int64 `json:"javascriptResponseBytes,omitempty,string"` - // NumberCssResources: Number of CSS resources referenced by the page. NumberCssResources int64 `json:"numberCssResources,omitempty"` - // NumberHosts: Number of unique hosts referenced by the page. NumberHosts int64 `json:"numberHosts,omitempty"` - - // NumberJsResources: Number of JavaScript resources referenced by the - // page. + // NumberJsResources: Number of JavaScript resources referenced by the page. NumberJsResources int64 `json:"numberJsResources,omitempty"` - // NumberResources: Number of HTTP resources loaded by the page. NumberResources int64 `json:"numberResources,omitempty"` - - // NumberStaticResources: Number of static (i.e. cacheable) resources on - // the page. + // NumberStaticResources: Number of static (i.e. cacheable) resources on the + // page. NumberStaticResources int64 `json:"numberStaticResources,omitempty"` - - // OtherResponseBytes: Number of response bytes for other resources on - // the page. + // OtherResponseBytes: Number of response bytes for other resources on the + // page. OtherResponseBytes int64 `json:"otherResponseBytes,omitempty,string"` - - // TextResponseBytes: Number of uncompressed response bytes for text - // resources not covered by other statistics (i.e non-HTML, non-script, - // non-CSS resources) on the page. + // TextResponseBytes: Number of uncompressed response bytes for text resources + // not covered by other statistics (i.e non-HTML, non-script, non-CSS + // resources) on the page. TextResponseBytes int64 `json:"textResponseBytes,omitempty,string"` - // TotalRequestBytes: Total size of all request bytes sent by the page. TotalRequestBytes int64 `json:"totalRequestBytes,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CssResponseBytes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CssResponseBytes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CssResponseBytes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultPageStats) MarshalJSON() ([]byte, error) { +func (s ResultPageStats) MarshalJSON() ([]byte, error) { type NoMethod ResultPageStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResultScreenshot: Base64-encoded screenshot of the page that was -// analyzed. +// ResultScreenshot: Base64-encoded screenshot of the page that was analyzed. type ResultScreenshot struct { // Data: Image data base64 encoded. Data string `json:"data,omitempty"` - // Height: Height of screenshot in pixels. Height int64 `json:"height,omitempty"` - // MimeType: Mime type of image data. E.g. "image/jpeg". MimeType string `json:"mime_type,omitempty"` - // Width: Width of screenshot in pixels. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultScreenshot) MarshalJSON() ([]byte, error) { +func (s ResultScreenshot) MarshalJSON() ([]byte, error) { type NoMethod ResultScreenshot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResultVersion: The version of PageSpeed used to generate these -// results. +// ResultVersion: The version of PageSpeed used to generate these results. type ResultVersion struct { - // Major: The major version number of PageSpeed used to generate these - // results. + // Major: The major version number of PageSpeed used to generate these results. Major int64 `json:"major,omitempty"` - - // Minor: The minor version number of PageSpeed used to generate these - // results. + // Minor: The minor version number of PageSpeed used to generate these results. Minor int64 `json:"minor,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Major") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Major") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Major") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultVersion) MarshalJSON() ([]byte, error) { +func (s ResultVersion) MarshalJSON() ([]byte, error) { type NoMethod ResultVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "pagespeedonline.pagespeedapi.runpagespeed": - type PagespeedapiRunpagespeedCall struct { s *Service urlParams_ gensupport.URLParams @@ -709,9 +592,11 @@ type PagespeedapiRunpagespeedCall struct { header_ http.Header } -// Runpagespeed: Runs PageSpeed analysis on the page at the specified -// URL, and returns a PageSpeed score, a list of suggestions to make -// that page faster, and other information. +// Runpagespeed: Runs PageSpeed analysis on the page at the specified URL, and +// returns a PageSpeed score, a list of suggestions to make that page faster, +// and other information. +// +// - url: The URL to fetch and analyze. func (r *PagespeedapiService) Runpagespeed(url string) *PagespeedapiRunpagespeedCall { c := &PagespeedapiRunpagespeedCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("url", url) @@ -719,36 +604,36 @@ func (r *PagespeedapiService) Runpagespeed(url string) *PagespeedapiRunpagespeed } // FilterThirdPartyResources sets the optional parameter -// "filter_third_party_resources": Indicates if third party resources -// should be filtered out before PageSpeed analysis. +// "filter_third_party_resources": Indicates if third party resources should be +// filtered out before PageSpeed analysis. func (c *PagespeedapiRunpagespeedCall) FilterThirdPartyResources(filterThirdPartyResources bool) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("filter_third_party_resources", fmt.Sprint(filterThirdPartyResources)) return c } -// Locale sets the optional parameter "locale": The locale used to -// localize formatted results +// Locale sets the optional parameter "locale": The locale used to localize +// formatted results func (c *PagespeedapiRunpagespeedCall) Locale(locale string) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("locale", locale) return c } -// Rule sets the optional parameter "rule": A PageSpeed rule to run; if -// none are given, all rules are run +// Rule sets the optional parameter "rule": A PageSpeed rule to run; if none +// are given, all rules are run func (c *PagespeedapiRunpagespeedCall) Rule(rule ...string) *PagespeedapiRunpagespeedCall { c.urlParams_.SetMulti("rule", append([]string{}, rule...)) return c } -// Screenshot sets the optional parameter "screenshot": Indicates if -// binary data containing a screenshot should be included +// Screenshot sets the optional parameter "screenshot": Indicates if binary +// data containing a screenshot should be included func (c *PagespeedapiRunpagespeedCall) Screenshot(screenshot bool) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("screenshot", fmt.Sprint(screenshot)) return c } -// Strategy sets the optional parameter "strategy": The analysis -// strategy to use +// Strategy sets the optional parameter "strategy": The analysis strategy to +// use // // Possible values: // @@ -760,33 +645,29 @@ func (c *PagespeedapiRunpagespeedCall) Strategy(strategy string) *PagespeedapiRu } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PagespeedapiRunpagespeedCall) Fields(s ...googleapi.Field) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PagespeedapiRunpagespeedCall) IfNoneMatch(entityTag string) *PagespeedapiRunpagespeedCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PagespeedapiRunpagespeedCall) Context(ctx context.Context) *PagespeedapiRunpagespeedCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PagespeedapiRunpagespeedCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -795,12 +676,7 @@ func (c *PagespeedapiRunpagespeedCall) Header() http.Header { } func (c *PagespeedapiRunpagespeedCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200512") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -814,16 +690,14 @@ func (c *PagespeedapiRunpagespeedCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pagespeedonline.pagespeedapi.runpagespeed" call. -// Exactly one of *Result or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Result.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Result.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Result, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -831,17 +705,17 @@ func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Result if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Result{ ServerResponse: googleapi.ServerResponse{ @@ -854,64 +728,4 @@ func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Result return nil, err } return ret, nil - // { - // "description": "Runs PageSpeed analysis on the page at the specified URL, and returns a PageSpeed score, a list of suggestions to make that page faster, and other information.", - // "httpMethod": "GET", - // "id": "pagespeedonline.pagespeedapi.runpagespeed", - // "parameterOrder": [ - // "url" - // ], - // "parameters": { - // "filter_third_party_resources": { - // "default": "false", - // "description": "Indicates if third party resources should be filtered out before PageSpeed analysis.", - // "location": "query", - // "type": "boolean" - // }, - // "locale": { - // "description": "The locale used to localize formatted results", - // "location": "query", - // "pattern": "[a-zA-Z]+(_[a-zA-Z]+)?", - // "type": "string" - // }, - // "rule": { - // "description": "A PageSpeed rule to run; if none are given, all rules are run", - // "location": "query", - // "pattern": "[a-zA-Z]+", - // "repeated": true, - // "type": "string" - // }, - // "screenshot": { - // "default": "false", - // "description": "Indicates if binary data containing a screenshot should be included", - // "location": "query", - // "type": "boolean" - // }, - // "strategy": { - // "description": "The analysis strategy to use", - // "enum": [ - // "desktop", - // "mobile" - // ], - // "enumDescriptions": [ - // "Fetch and analyze the URL for desktop browsers", - // "Fetch and analyze the URL for mobile devices" - // ], - // "location": "query", - // "type": "string" - // }, - // "url": { - // "description": "The URL to fetch and analyze", - // "location": "query", - // "pattern": "(?i)http(s)?://.*", - // "required": true, - // "type": "string" - // } - // }, - // "path": "runPagespeed", - // "response": { - // "$ref": "Result" - // } - // } - } diff --git a/pagespeedonline/v2/pagespeedonline-gen.go b/pagespeedonline/v2/pagespeedonline-gen.go index 9333d57b6c8..24629c1a5c9 100644 --- a/pagespeedonline/v2/pagespeedonline-gen.go +++ b/pagespeedonline/v2/pagespeedonline-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/speed/docs/insights/v2/getting-started // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // pagespeedonlineService, err := pagespeedonline.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // pagespeedonlineService, err := pagespeedonline.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // pagespeedonlineService, err := pagespeedonline.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package pagespeedonline // import "google.golang.org/api/pagespeedonline/v2" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,15 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "pagespeedonline:v2" const apiName = "pagespeedonline" const apiVersion = "v2" const basePath = "https://www.googleapis.com/pagespeedonline/v2/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/pagespeedonline/v2/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -134,389 +152,294 @@ type PagespeedapiService struct { type PagespeedApiFormatStringV2 struct { // Args: List of arguments for the format string. Args []*PagespeedApiFormatStringV2Args `json:"args,omitempty"` - - // Format: A localized format string with {{FOO}} placeholders, where - // 'FOO' is the key of the argument whose value should be substituted. - // For HYPERLINK arguments, the format string will instead contain - // {{BEGIN_FOO}} and {{END_FOO}} for the argument with key 'FOO'. + // Format: A localized format string with {{FOO}} placeholders, where 'FOO' is + // the key of the argument whose value should be substituted. For HYPERLINK + // arguments, the format string will instead contain {{BEGIN_FOO}} and + // {{END_FOO}} for the argument with key 'FOO'. Format string `json:"format,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Args") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Args") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Args") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Args") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiFormatStringV2) MarshalJSON() ([]byte, error) { +func (s PagespeedApiFormatStringV2) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiFormatStringV2 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiFormatStringV2Args struct { // Key: The placeholder key for this arg, as a string. Key string `json:"key,omitempty"` - - // Rects: The screen rectangles being referred to, with dimensions - // measured in CSS pixels. This is only ever used for SNAPSHOT_RECT - // arguments. If this is absent for a SNAPSHOT_RECT argument, it means - // that that argument refers to the entire snapshot. + // Rects: The screen rectangles being referred to, with dimensions measured in + // CSS pixels. This is only ever used for SNAPSHOT_RECT arguments. If this is + // absent for a SNAPSHOT_RECT argument, it means that that argument refers to + // the entire snapshot. Rects []*PagespeedApiFormatStringV2ArgsRects `json:"rects,omitempty"` - // SecondaryRects: Secondary screen rectangles being referred to, with - // dimensions measured in CSS pixels. This is only ever used for - // SNAPSHOT_RECT arguments. + // dimensions measured in CSS pixels. This is only ever used for SNAPSHOT_RECT + // arguments. SecondaryRects []*PagespeedApiFormatStringV2ArgsSecondaryRects `json:"secondary_rects,omitempty"` - - // Type: Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, - // BYTES, DURATION, VERBATIM_STRING, PERCENTAGE, HYPERLINK, or - // SNAPSHOT_RECT. + // Type: Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, + // DURATION, VERBATIM_STRING, PERCENTAGE, HYPERLINK, or SNAPSHOT_RECT. Type string `json:"type,omitempty"` - // Value: Argument value, as a localized string. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiFormatStringV2Args) MarshalJSON() ([]byte, error) { +func (s PagespeedApiFormatStringV2Args) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiFormatStringV2Args - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiFormatStringV2ArgsRects struct { // Height: The height of the rect. Height int64 `json:"height,omitempty"` - // Left: The left coordinate of the rect, in page coordinates. Left int64 `json:"left,omitempty"` - // Top: The top coordinate of the rect, in page coordinates. Top int64 `json:"top,omitempty"` - // Width: The width of the rect. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiFormatStringV2ArgsRects) MarshalJSON() ([]byte, error) { +func (s PagespeedApiFormatStringV2ArgsRects) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiFormatStringV2ArgsRects - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiFormatStringV2ArgsSecondaryRects struct { // Height: The height of the rect. Height int64 `json:"height,omitempty"` - // Left: The left coordinate of the rect, in page coordinates. Left int64 `json:"left,omitempty"` - // Top: The top coordinate of the rect, in page coordinates. Top int64 `json:"top,omitempty"` - // Width: The width of the rect. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiFormatStringV2ArgsSecondaryRects) MarshalJSON() ([]byte, error) { +func (s PagespeedApiFormatStringV2ArgsSecondaryRects) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiFormatStringV2ArgsSecondaryRects - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiImageV2 struct { // Data: Image data base64 encoded. Data string `json:"data,omitempty"` - // Height: Height of screenshot in pixels. Height int64 `json:"height,omitempty"` - // Key: Unique string key, if any, identifying this image. Key string `json:"key,omitempty"` - // MimeType: Mime type of image data (e.g. "image/jpeg"). MimeType string `json:"mime_type,omitempty"` - // PageRect: The region of the page that is captured by this image, with // dimensions measured in CSS pixels. PageRect *PagespeedApiImageV2PageRect `json:"page_rect,omitempty"` - // Width: Width of screenshot in pixels. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiImageV2) MarshalJSON() ([]byte, error) { +func (s PagespeedApiImageV2) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiImageV2 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PagespeedApiImageV2PageRect: The region of the page that is captured -// by this image, with dimensions measured in CSS pixels. +// PagespeedApiImageV2PageRect: The region of the page that is captured by this +// image, with dimensions measured in CSS pixels. type PagespeedApiImageV2PageRect struct { // Height: The height of the rect. Height int64 `json:"height,omitempty"` - // Left: The left coordinate of the rect, in page coordinates. Left int64 `json:"left,omitempty"` - // Top: The top coordinate of the rect, in page coordinates. Top int64 `json:"top,omitempty"` - // Width: The width of the rect. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiImageV2PageRect) MarshalJSON() ([]byte, error) { +func (s PagespeedApiImageV2PageRect) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiImageV2PageRect - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Result struct { // CaptchaResult: The captcha verify result CaptchaResult string `json:"captchaResult,omitempty"` - - // FormattedResults: Localized PageSpeed results. Contains a ruleResults - // entry for each PageSpeed rule instantiated and run by the server. + // FormattedResults: Localized PageSpeed results. Contains a ruleResults entry + // for each PageSpeed rule instantiated and run by the server. FormattedResults *ResultFormattedResults `json:"formattedResults,omitempty"` - - // Id: Canonicalized and final URL for the document, after following - // page redirects (if any). + // Id: Canonicalized and final URL for the document, after following page + // redirects (if any). Id string `json:"id,omitempty"` - - // InvalidRules: List of rules that were specified in the request, but - // which the server did not know how to instantiate. + // InvalidRules: List of rules that were specified in the request, but which + // the server did not know how to instantiate. InvalidRules []string `json:"invalidRules,omitempty"` - // Kind: Kind of result. Kind string `json:"kind,omitempty"` - - // PageStats: Summary statistics for the page, such as number of - // JavaScript bytes, number of HTML bytes, etc. + // PageStats: Summary statistics for the page, such as number of JavaScript + // bytes, number of HTML bytes, etc. PageStats *ResultPageStats `json:"pageStats,omitempty"` - - // ResponseCode: Response code for the document. 200 indicates a normal - // page load. 4xx/5xx indicates an error. + // ResponseCode: Response code for the document. 200 indicates a normal page + // load. 4xx/5xx indicates an error. ResponseCode int64 `json:"responseCode,omitempty"` - - // RuleGroups: A map with one entry for each rule group in these - // results. + // RuleGroups: A map with one entry for each rule group in these results. RuleGroups map[string]ResultRuleGroups `json:"ruleGroups,omitempty"` - // Screenshot: Base64-encoded screenshot of the page that was analyzed. Screenshot *PagespeedApiImageV2 `json:"screenshot,omitempty"` - // Title: Title of the page, as displayed in the browser's title bar. Title string `json:"title,omitempty"` - // Version: The version of PageSpeed used to generate these results. Version *ResultVersion `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CaptchaResult") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CaptchaResult") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CaptchaResult") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Result) MarshalJSON() ([]byte, error) { +func (s Result) MarshalJSON() ([]byte, error) { type NoMethod Result - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResultFormattedResults: Localized PageSpeed results. Contains a -// ruleResults entry for each PageSpeed rule instantiated and run by the -// server. +// ResultFormattedResults: Localized PageSpeed results. Contains a ruleResults +// entry for each PageSpeed rule instantiated and run by the server. type ResultFormattedResults struct { // Locale: The locale of the formattedResults, e.g. "en_US". Locale string `json:"locale,omitempty"` - - // RuleResults: Dictionary of formatted rule results, with one entry for - // each PageSpeed rule instantiated and run by the server. + // RuleResults: Dictionary of formatted rule results, with one entry for each + // PageSpeed rule instantiated and run by the server. RuleResults map[string]ResultFormattedResultsRuleResults `json:"ruleResults,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Locale") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Locale") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locale") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResults) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResults) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResultFormattedResultsRuleResults: The enum-like identifier for this -// rule. For instance "EnableKeepAlive" or "AvoidCssImport". Not -// localized. +// ResultFormattedResultsRuleResults: The enum-like identifier for this rule. +// For instance "EnableKeepAlive" or "AvoidCssImport". Not localized. type ResultFormattedResultsRuleResults struct { - // Groups: List of rule groups that this rule belongs to. Each entry in - // the list is one of "SPEED" or "USABILITY". + // Groups: List of rule groups that this rule belongs to. Each entry in the + // list is one of "SPEED" or "USABILITY". Groups []string `json:"groups,omitempty"` - - // LocalizedRuleName: Localized name of the rule, intended for - // presentation to a user. + // LocalizedRuleName: Localized name of the rule, intended for presentation to + // a user. LocalizedRuleName string `json:"localizedRuleName,omitempty"` - - // RuleImpact: The impact (unbounded floating point value) that - // implementing the suggestions for this rule would have on making the - // page faster. Impact is comparable between rules to determine which - // rule's suggestions would have a higher or lower impact on making a - // page faster. For instance, if enabling compression would save 1MB, - // while optimizing images would save 500kB, the enable compression rule - // would have 2x the impact of the image optimization rule, all other - // things being equal. + // RuleImpact: The impact (unbounded floating point value) that implementing + // the suggestions for this rule would have on making the page faster. Impact + // is comparable between rules to determine which rule's suggestions would have + // a higher or lower impact on making a page faster. For instance, if enabling + // compression would save 1MB, while optimizing images would save 500kB, the + // enable compression rule would have 2x the impact of the image optimization + // rule, all other things being equal. RuleImpact float64 `json:"ruleImpact,omitempty"` - - // Summary: A brief summary description for the rule, indicating at a - // high level what should be done to follow the rule and what benefit - // can be gained by doing so. + // Summary: A brief summary description for the rule, indicating at a high + // level what should be done to follow the rule and what benefit can be gained + // by doing so. Summary *PagespeedApiFormatStringV2 `json:"summary,omitempty"` - - // UrlBlocks: List of blocks of URLs. Each block may contain a heading - // and a list of URLs. Each URL may optionally include additional - // details. + // UrlBlocks: List of blocks of URLs. Each block may contain a heading and a + // list of URLs. Each URL may optionally include additional details. UrlBlocks []*ResultFormattedResultsRuleResultsUrlBlocks `json:"urlBlocks,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Groups") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Groups") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Groups") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResults) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResults) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *ResultFormattedResultsRuleResults) UnmarshalJSON(data []byte) error { @@ -536,210 +459,158 @@ func (s *ResultFormattedResultsRuleResults) UnmarshalJSON(data []byte) error { type ResultFormattedResultsRuleResultsUrlBlocks struct { // Header: Heading to be displayed with the list of URLs. Header *PagespeedApiFormatStringV2 `json:"header,omitempty"` - - // Urls: List of entries that provide information about URLs in the url - // block. Optional. + // Urls: List of entries that provide information about URLs in the url block. + // Optional. Urls []*ResultFormattedResultsRuleResultsUrlBlocksUrls `json:"urls,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResultsUrlBlocks) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResultsUrlBlocks) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResultsUrlBlocks - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultFormattedResultsRuleResultsUrlBlocksUrls struct { - // Details: List of entries that provide additional details about a - // single URL. Optional. + // Details: List of entries that provide additional details about a single URL. + // Optional. Details []*PagespeedApiFormatStringV2 `json:"details,omitempty"` - - // Result: A format string that gives information about the URL, and a - // list of arguments for that format string. + // Result: A format string that gives information about the URL, and a list of + // arguments for that format string. Result *PagespeedApiFormatStringV2 `json:"result,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultFormattedResultsRuleResultsUrlBlocksUrls) MarshalJSON() ([]byte, error) { +func (s ResultFormattedResultsRuleResultsUrlBlocksUrls) MarshalJSON() ([]byte, error) { type NoMethod ResultFormattedResultsRuleResultsUrlBlocksUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ResultPageStats: Summary statistics for the page, such as number of // JavaScript bytes, number of HTML bytes, etc. type ResultPageStats struct { - // CssResponseBytes: Number of uncompressed response bytes for CSS - // resources on the page. - CssResponseBytes int64 `json:"cssResponseBytes,omitempty,string"` - - // FlashResponseBytes: Number of response bytes for flash resources on + // CssResponseBytes: Number of uncompressed response bytes for CSS resources on // the page. + CssResponseBytes int64 `json:"cssResponseBytes,omitempty,string"` + // FlashResponseBytes: Number of response bytes for flash resources on the + // page. FlashResponseBytes int64 `json:"flashResponseBytes,omitempty,string"` - - // HtmlResponseBytes: Number of uncompressed response bytes for the main - // HTML document and all iframes on the page. + // HtmlResponseBytes: Number of uncompressed response bytes for the main HTML + // document and all iframes on the page. HtmlResponseBytes int64 `json:"htmlResponseBytes,omitempty,string"` - - // ImageResponseBytes: Number of response bytes for image resources on - // the page. + // ImageResponseBytes: Number of response bytes for image resources on the + // page. ImageResponseBytes int64 `json:"imageResponseBytes,omitempty,string"` - // JavascriptResponseBytes: Number of uncompressed response bytes for JS // resources on the page. JavascriptResponseBytes int64 `json:"javascriptResponseBytes,omitempty,string"` - // NumberCssResources: Number of CSS resources referenced by the page. NumberCssResources int64 `json:"numberCssResources,omitempty"` - // NumberHosts: Number of unique hosts referenced by the page. NumberHosts int64 `json:"numberHosts,omitempty"` - - // NumberJsResources: Number of JavaScript resources referenced by the - // page. + // NumberJsResources: Number of JavaScript resources referenced by the page. NumberJsResources int64 `json:"numberJsResources,omitempty"` - // NumberResources: Number of HTTP resources loaded by the page. NumberResources int64 `json:"numberResources,omitempty"` - - // NumberStaticResources: Number of static (i.e. cacheable) resources on - // the page. + // NumberStaticResources: Number of static (i.e. cacheable) resources on the + // page. NumberStaticResources int64 `json:"numberStaticResources,omitempty"` - - // OtherResponseBytes: Number of response bytes for other resources on - // the page. + // OtherResponseBytes: Number of response bytes for other resources on the + // page. OtherResponseBytes int64 `json:"otherResponseBytes,omitempty,string"` - - // TextResponseBytes: Number of uncompressed response bytes for text - // resources not covered by other statistics (i.e non-HTML, non-script, - // non-CSS resources) on the page. + // TextResponseBytes: Number of uncompressed response bytes for text resources + // not covered by other statistics (i.e non-HTML, non-script, non-CSS + // resources) on the page. TextResponseBytes int64 `json:"textResponseBytes,omitempty,string"` - // TotalRequestBytes: Total size of all request bytes sent by the page. TotalRequestBytes int64 `json:"totalRequestBytes,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CssResponseBytes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CssResponseBytes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CssResponseBytes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultPageStats) MarshalJSON() ([]byte, error) { +func (s ResultPageStats) MarshalJSON() ([]byte, error) { type NoMethod ResultPageStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ResultRuleGroups: The name of this rule group: one of "SPEED" or // "USABILITY". type ResultRuleGroups struct { - // Score: The score (0-100) for this rule group, which indicates how - // much better a page could be in that category (e.g. how much faster, - // or how much more usable). A high score indicates little room for - // improvement, while a lower score indicates more room for improvement. + // Score: The score (0-100) for this rule group, which indicates how much + // better a page could be in that category (e.g. how much faster, or how much + // more usable). A high score indicates little room for improvement, while a + // lower score indicates more room for improvement. Score int64 `json:"score,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Score") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Score") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Score") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultRuleGroups) MarshalJSON() ([]byte, error) { +func (s ResultRuleGroups) MarshalJSON() ([]byte, error) { type NoMethod ResultRuleGroups - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResultVersion: The version of PageSpeed used to generate these -// results. +// ResultVersion: The version of PageSpeed used to generate these results. type ResultVersion struct { - // Major: The major version number of PageSpeed used to generate these - // results. + // Major: The major version number of PageSpeed used to generate these results. Major int64 `json:"major,omitempty"` - - // Minor: The minor version number of PageSpeed used to generate these - // results. + // Minor: The minor version number of PageSpeed used to generate these results. Minor int64 `json:"minor,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Major") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Major") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Major") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultVersion) MarshalJSON() ([]byte, error) { +func (s ResultVersion) MarshalJSON() ([]byte, error) { type NoMethod ResultVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "pagespeedonline.pagespeedapi.runpagespeed": - type PagespeedapiRunpagespeedCall struct { s *Service urlParams_ gensupport.URLParams @@ -748,9 +619,11 @@ type PagespeedapiRunpagespeedCall struct { header_ http.Header } -// Runpagespeed: Runs PageSpeed analysis on the page at the specified -// URL, and returns PageSpeed scores, a list of suggestions to make that -// page faster, and other information. +// Runpagespeed: Runs PageSpeed analysis on the page at the specified URL, and +// returns PageSpeed scores, a list of suggestions to make that page faster, +// and other information. +// +// - url: The URL to fetch and analyze. func (r *PagespeedapiService) Runpagespeed(url string) *PagespeedapiRunpagespeedCall { c := &PagespeedapiRunpagespeedCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("url", url) @@ -758,36 +631,36 @@ func (r *PagespeedapiService) Runpagespeed(url string) *PagespeedapiRunpagespeed } // FilterThirdPartyResources sets the optional parameter -// "filter_third_party_resources": Indicates if third party resources -// should be filtered out before PageSpeed analysis. +// "filter_third_party_resources": Indicates if third party resources should be +// filtered out before PageSpeed analysis. func (c *PagespeedapiRunpagespeedCall) FilterThirdPartyResources(filterThirdPartyResources bool) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("filter_third_party_resources", fmt.Sprint(filterThirdPartyResources)) return c } -// Locale sets the optional parameter "locale": The locale used to -// localize formatted results +// Locale sets the optional parameter "locale": The locale used to localize +// formatted results func (c *PagespeedapiRunpagespeedCall) Locale(locale string) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("locale", locale) return c } -// Rule sets the optional parameter "rule": A PageSpeed rule to run; if -// none are given, all rules are run +// Rule sets the optional parameter "rule": A PageSpeed rule to run; if none +// are given, all rules are run func (c *PagespeedapiRunpagespeedCall) Rule(rule ...string) *PagespeedapiRunpagespeedCall { c.urlParams_.SetMulti("rule", append([]string{}, rule...)) return c } -// Screenshot sets the optional parameter "screenshot": Indicates if -// binary data containing a screenshot should be included +// Screenshot sets the optional parameter "screenshot": Indicates if binary +// data containing a screenshot should be included func (c *PagespeedapiRunpagespeedCall) Screenshot(screenshot bool) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("screenshot", fmt.Sprint(screenshot)) return c } -// Strategy sets the optional parameter "strategy": The analysis -// strategy to use +// Strategy sets the optional parameter "strategy": The analysis strategy to +// use // // Possible values: // @@ -799,33 +672,29 @@ func (c *PagespeedapiRunpagespeedCall) Strategy(strategy string) *PagespeedapiRu } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PagespeedapiRunpagespeedCall) Fields(s ...googleapi.Field) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PagespeedapiRunpagespeedCall) IfNoneMatch(entityTag string) *PagespeedapiRunpagespeedCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PagespeedapiRunpagespeedCall) Context(ctx context.Context) *PagespeedapiRunpagespeedCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PagespeedapiRunpagespeedCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -834,12 +703,7 @@ func (c *PagespeedapiRunpagespeedCall) Header() http.Header { } func (c *PagespeedapiRunpagespeedCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200514") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -853,16 +717,14 @@ func (c *PagespeedapiRunpagespeedCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pagespeedonline.pagespeedapi.runpagespeed" call. -// Exactly one of *Result or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Result.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Result.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Result, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -870,17 +732,17 @@ func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Result if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Result{ ServerResponse: googleapi.ServerResponse{ @@ -893,64 +755,4 @@ func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Result return nil, err } return ret, nil - // { - // "description": "Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information.", - // "httpMethod": "GET", - // "id": "pagespeedonline.pagespeedapi.runpagespeed", - // "parameterOrder": [ - // "url" - // ], - // "parameters": { - // "filter_third_party_resources": { - // "default": "false", - // "description": "Indicates if third party resources should be filtered out before PageSpeed analysis.", - // "location": "query", - // "type": "boolean" - // }, - // "locale": { - // "description": "The locale used to localize formatted results", - // "location": "query", - // "pattern": "[a-zA-Z]+(_[a-zA-Z]+)?", - // "type": "string" - // }, - // "rule": { - // "description": "A PageSpeed rule to run; if none are given, all rules are run", - // "location": "query", - // "pattern": "[a-zA-Z]+", - // "repeated": true, - // "type": "string" - // }, - // "screenshot": { - // "default": "false", - // "description": "Indicates if binary data containing a screenshot should be included", - // "location": "query", - // "type": "boolean" - // }, - // "strategy": { - // "description": "The analysis strategy to use", - // "enum": [ - // "desktop", - // "mobile" - // ], - // "enumDescriptions": [ - // "Fetch and analyze the URL for desktop browsers", - // "Fetch and analyze the URL for mobile devices" - // ], - // "location": "query", - // "type": "string" - // }, - // "url": { - // "description": "The URL to fetch and analyze", - // "location": "query", - // "pattern": "(?i)http(s)?://.*", - // "required": true, - // "type": "string" - // } - // }, - // "path": "runPagespeed", - // "response": { - // "$ref": "Result" - // } - // } - } diff --git a/pagespeedonline/v4/pagespeedonline-gen.go b/pagespeedonline/v4/pagespeedonline-gen.go index 857bb437398..e1fe7882be1 100644 --- a/pagespeedonline/v4/pagespeedonline-gen.go +++ b/pagespeedonline/v4/pagespeedonline-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/speed/docs/insights/v4/getting-started // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // pagespeedonlineService, err := pagespeedonline.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // pagespeedonlineService, err := pagespeedonline.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // pagespeedonlineService, err := pagespeedonline.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package pagespeedonline // import "google.golang.org/api/pagespeedonline/v4" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,15 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "pagespeedonline:v4" const apiName = "pagespeedonline" const apiVersion = "v4" const basePath = "https://www.googleapis.com/pagespeedonline/v4/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/pagespeedonline/v4/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -134,384 +152,288 @@ type PagespeedapiService struct { type PagespeedApiFormatStringV4 struct { // Args: List of arguments for the format string. Args []*PagespeedApiFormatStringV4Args `json:"args,omitempty"` - - // Format: A localized format string with {{FOO}} placeholders, where - // 'FOO' is the key of the argument whose value should be substituted. - // For HYPERLINK arguments, the format string will instead contain - // {{BEGIN_FOO}} and {{END_FOO}} for the argument with key 'FOO'. + // Format: A localized format string with {{FOO}} placeholders, where 'FOO' is + // the key of the argument whose value should be substituted. For HYPERLINK + // arguments, the format string will instead contain {{BEGIN_FOO}} and + // {{END_FOO}} for the argument with key 'FOO'. Format string `json:"format,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Args") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Args") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Args") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Args") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiFormatStringV4) MarshalJSON() ([]byte, error) { +func (s PagespeedApiFormatStringV4) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiFormatStringV4 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiFormatStringV4Args struct { // Key: The placeholder key for this arg, as a string. Key string `json:"key,omitempty"` - - // Rects: The screen rectangles being referred to, with dimensions - // measured in CSS pixels. This is only ever used for SNAPSHOT_RECT - // arguments. If this is absent for a SNAPSHOT_RECT argument, it means - // that that argument refers to the entire snapshot. + // Rects: The screen rectangles being referred to, with dimensions measured in + // CSS pixels. This is only ever used for SNAPSHOT_RECT arguments. If this is + // absent for a SNAPSHOT_RECT argument, it means that that argument refers to + // the entire snapshot. Rects []*PagespeedApiFormatStringV4ArgsRects `json:"rects,omitempty"` - // SecondaryRects: Secondary screen rectangles being referred to, with - // dimensions measured in CSS pixels. This is only ever used for - // SNAPSHOT_RECT arguments. + // dimensions measured in CSS pixels. This is only ever used for SNAPSHOT_RECT + // arguments. SecondaryRects []*PagespeedApiFormatStringV4ArgsSecondaryRects `json:"secondary_rects,omitempty"` - - // Type: Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, - // BYTES, DURATION, VERBATIM_STRING, PERCENTAGE, HYPERLINK, or - // SNAPSHOT_RECT. + // Type: Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, + // DURATION, VERBATIM_STRING, PERCENTAGE, HYPERLINK, or SNAPSHOT_RECT. Type string `json:"type,omitempty"` - // Value: Argument value, as a localized string. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiFormatStringV4Args) MarshalJSON() ([]byte, error) { +func (s PagespeedApiFormatStringV4Args) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiFormatStringV4Args - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiFormatStringV4ArgsRects struct { Height int64 `json:"height,omitempty"` - - Left int64 `json:"left,omitempty"` - - Top int64 `json:"top,omitempty"` - - Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Left int64 `json:"left,omitempty"` + Top int64 `json:"top,omitempty"` + Width int64 `json:"width,omitempty"` + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiFormatStringV4ArgsRects) MarshalJSON() ([]byte, error) { +func (s PagespeedApiFormatStringV4ArgsRects) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiFormatStringV4ArgsRects - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiFormatStringV4ArgsSecondaryRects struct { Height int64 `json:"height,omitempty"` - - Left int64 `json:"left,omitempty"` - - Top int64 `json:"top,omitempty"` - - Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Left int64 `json:"left,omitempty"` + Top int64 `json:"top,omitempty"` + Width int64 `json:"width,omitempty"` + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiFormatStringV4ArgsSecondaryRects) MarshalJSON() ([]byte, error) { +func (s PagespeedApiFormatStringV4ArgsSecondaryRects) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiFormatStringV4ArgsSecondaryRects - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiImageV4 struct { // Data: Image data base64 encoded. Data string `json:"data,omitempty"` - // Height: Height of screenshot in pixels. Height int64 `json:"height,omitempty"` - // Key: Unique string key, if any, identifying this image. Key string `json:"key,omitempty"` - // MimeType: Mime type of image data (e.g. "image/jpeg"). - MimeType string `json:"mime_type,omitempty"` - + MimeType string `json:"mime_type,omitempty"` PageRect *PagespeedApiImageV4PageRect `json:"page_rect,omitempty"` - // Width: Width of screenshot in pixels. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiImageV4) MarshalJSON() ([]byte, error) { +func (s PagespeedApiImageV4) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiImageV4 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiImageV4PageRect struct { Height int64 `json:"height,omitempty"` - - Left int64 `json:"left,omitempty"` - - Top int64 `json:"top,omitempty"` - - Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Left int64 `json:"left,omitempty"` + Top int64 `json:"top,omitempty"` + Width int64 `json:"width,omitempty"` + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiImageV4PageRect) MarshalJSON() ([]byte, error) { +func (s PagespeedApiImageV4PageRect) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiImageV4PageRect - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiPagespeedResponseV4 struct { // CaptchaResult: The captcha verify result CaptchaResult string `json:"captchaResult,omitempty"` - - // FormattedResults: Localized PageSpeed results. Contains a ruleResults - // entry for each PageSpeed rule instantiated and run by the server. + // FormattedResults: Localized PageSpeed results. Contains a ruleResults entry + // for each PageSpeed rule instantiated and run by the server. FormattedResults *PagespeedApiPagespeedResponseV4FormattedResults `json:"formattedResults,omitempty"` - - // Id: Canonicalized and final URL for the document, after following - // page redirects (if any). + // Id: Canonicalized and final URL for the document, after following page + // redirects (if any). Id string `json:"id,omitempty"` - - // InvalidRules: List of rules that were specified in the request, but - // which the server did not know how to instantiate. + // InvalidRules: List of rules that were specified in the request, but which + // the server did not know how to instantiate. InvalidRules []string `json:"invalidRules,omitempty"` - // Kind: Kind of result. Kind string `json:"kind,omitempty"` - // LoadingExperience: Metrics of end users' page loading experience. LoadingExperience *PagespeedApiPagespeedResponseV4LoadingExperience `json:"loadingExperience,omitempty"` - - // PageStats: Summary statistics for the page, such as number of - // JavaScript bytes, number of HTML bytes, etc. + // PageStats: Summary statistics for the page, such as number of JavaScript + // bytes, number of HTML bytes, etc. PageStats *PagespeedApiPagespeedResponseV4PageStats `json:"pageStats,omitempty"` - - // ResponseCode: Response code for the document. 200 indicates a normal - // page load. 4xx/5xx indicates an error. + // ResponseCode: Response code for the document. 200 indicates a normal page + // load. 4xx/5xx indicates an error. ResponseCode int64 `json:"responseCode,omitempty"` - - // RuleGroups: A map with one entry for each rule group in these - // results. + // RuleGroups: A map with one entry for each rule group in these results. RuleGroups map[string]PagespeedApiPagespeedResponseV4RuleGroups `json:"ruleGroups,omitempty"` - // Screenshot: Base64-encoded screenshot of the page that was analyzed. Screenshot *PagespeedApiImageV4 `json:"screenshot,omitempty"` - - // Snapshots: Additional base64-encoded screenshots of the page, in - // various partial render states. + // Snapshots: Additional base64-encoded screenshots of the page, in various + // partial render states. Snapshots []*PagespeedApiImageV4 `json:"snapshots,omitempty"` - // Title: Title of the page, as displayed in the browser's title bar. Title string `json:"title,omitempty"` - // Version: The version of PageSpeed used to generate these results. Version *PagespeedApiPagespeedResponseV4Version `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CaptchaResult") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CaptchaResult") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CaptchaResult") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PagespeedApiPagespeedResponseV4FormattedResults: Localized PageSpeed -// results. Contains a ruleResults entry for each PageSpeed rule -// instantiated and run by the server. +// results. Contains a ruleResults entry for each PageSpeed rule instantiated +// and run by the server. type PagespeedApiPagespeedResponseV4FormattedResults struct { // Locale: The locale of the formattedResults, e.g. "en_US". Locale string `json:"locale,omitempty"` - - // RuleResults: Dictionary of formatted rule results, with one entry for - // each PageSpeed rule instantiated and run by the server. + // RuleResults: Dictionary of formatted rule results, with one entry for each + // PageSpeed rule instantiated and run by the server. RuleResults map[string]PagespeedApiPagespeedResponseV4FormattedResultsRuleResults `json:"ruleResults,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Locale") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Locale") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locale") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4FormattedResults) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4FormattedResults) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4FormattedResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PagespeedApiPagespeedResponseV4FormattedResultsRuleResults: The -// enum-like identifier for this rule. For instance "EnableKeepAlive" or +// PagespeedApiPagespeedResponseV4FormattedResultsRuleResults: The enum-like +// identifier for this rule. For instance "EnableKeepAlive" or // "AvoidCssImport". Not localized. type PagespeedApiPagespeedResponseV4FormattedResultsRuleResults struct { - // Beta: Whether this rule is in 'beta'. Rules in beta are new rules - // that are being tested, which do not impact the overall score. + // Beta: Whether this rule is in 'beta'. Rules in beta are new rules that are + // being tested, which do not impact the overall score. Beta bool `json:"beta,omitempty"` - - // Groups: List of rule groups that this rule belongs to. Each entry in - // the list is one of "SPEED", "USABILITY", or "SECURITY". + // Groups: List of rule groups that this rule belongs to. Each entry in the + // list is one of "SPEED", "USABILITY", or "SECURITY". Groups []string `json:"groups,omitempty"` - - // LocalizedRuleName: Localized name of the rule, intended for - // presentation to a user. + // LocalizedRuleName: Localized name of the rule, intended for presentation to + // a user. LocalizedRuleName string `json:"localizedRuleName,omitempty"` - - // RuleImpact: The impact (unbounded floating point value) that - // implementing the suggestions for this rule would have on making the - // page faster. Impact is comparable between rules to determine which - // rule's suggestions would have a higher or lower impact on making a - // page faster. For instance, if enabling compression would save 1MB, - // while optimizing images would save 500kB, the enable compression rule - // would have 2x the impact of the image optimization rule, all other - // things being equal. + // RuleImpact: The impact (unbounded floating point value) that implementing + // the suggestions for this rule would have on making the page faster. Impact + // is comparable between rules to determine which rule's suggestions would have + // a higher or lower impact on making a page faster. For instance, if enabling + // compression would save 1MB, while optimizing images would save 500kB, the + // enable compression rule would have 2x the impact of the image optimization + // rule, all other things being equal. RuleImpact float64 `json:"ruleImpact,omitempty"` - - // Summary: A brief summary description for the rule, indicating at a - // high level what should be done to follow the rule and what benefit - // can be gained by doing so. + // Summary: A brief summary description for the rule, indicating at a high + // level what should be done to follow the rule and what benefit can be gained + // by doing so. Summary *PagespeedApiFormatStringV4 `json:"summary,omitempty"` - - // UrlBlocks: List of blocks of URLs. Each block may contain a heading - // and a list of URLs. Each URL may optionally include additional - // details. + // UrlBlocks: List of blocks of URLs. Each block may contain a heading and a + // list of URLs. Each URL may optionally include additional details. UrlBlocks []*PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsUrlBlocks `json:"urlBlocks,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Beta") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Beta") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Beta") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Beta") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4FormattedResultsRuleResults) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4FormattedResultsRuleResults) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4FormattedResultsRuleResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PagespeedApiPagespeedResponseV4FormattedResultsRuleResults) UnmarshalJSON(data []byte) error { @@ -531,161 +453,122 @@ func (s *PagespeedApiPagespeedResponseV4FormattedResultsRuleResults) UnmarshalJS type PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsUrlBlocks struct { // Header: Heading to be displayed with the list of URLs. Header *PagespeedApiFormatStringV4 `json:"header,omitempty"` - - // Urls: List of entries that provide information about URLs in the url - // block. Optional. + // Urls: List of entries that provide information about URLs in the url block. + // Optional. Urls []*PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsUrlBlocksUrls `json:"urls,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Header") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsUrlBlocks) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsUrlBlocks) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsUrlBlocks - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsUrlBlocksUrls struct { - // Details: List of entries that provide additional details about a - // single URL. Optional. + // Details: List of entries that provide additional details about a single URL. + // Optional. Details []*PagespeedApiFormatStringV4 `json:"details,omitempty"` - - // Result: A format string that gives information about the URL, and a - // list of arguments for that format string. + // Result: A format string that gives information about the URL, and a list of + // arguments for that format string. Result *PagespeedApiFormatStringV4 `json:"result,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsUrlBlocksUrls) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsUrlBlocksUrls) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsUrlBlocksUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PagespeedApiPagespeedResponseV4LoadingExperience: Metrics of end -// users' page loading experience. +// PagespeedApiPagespeedResponseV4LoadingExperience: Metrics of end users' page +// loading experience. type PagespeedApiPagespeedResponseV4LoadingExperience struct { // Id: The url, pattern or origin which the metrics are on. - Id string `json:"id,omitempty"` - - InitialUrl string `json:"initial_url,omitempty"` - - Metrics map[string]PagespeedApiPagespeedResponseV4LoadingExperienceMetrics `json:"metrics,omitempty"` - - OverallCategory string `json:"overall_category,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Id string `json:"id,omitempty"` + InitialUrl string `json:"initial_url,omitempty"` + Metrics map[string]PagespeedApiPagespeedResponseV4LoadingExperienceMetrics `json:"metrics,omitempty"` + OverallCategory string `json:"overall_category,omitempty"` + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4LoadingExperience) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4LoadingExperience) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4LoadingExperience - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PagespeedApiPagespeedResponseV4LoadingExperienceMetrics: The type of -// the metric. +// PagespeedApiPagespeedResponseV4LoadingExperienceMetrics: The type of the +// metric. type PagespeedApiPagespeedResponseV4LoadingExperienceMetrics struct { - Category string `json:"category,omitempty"` - + Category string `json:"category,omitempty"` Distributions []*PagespeedApiPagespeedResponseV4LoadingExperienceMetricsDistributions `json:"distributions,omitempty"` - - Median int64 `json:"median,omitempty"` - + Median int64 `json:"median,omitempty"` // ForceSendFields is a list of field names (e.g. "Category") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Category") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Category") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4LoadingExperienceMetrics) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4LoadingExperienceMetrics) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4LoadingExperienceMetrics - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PagespeedApiPagespeedResponseV4LoadingExperienceMetricsDistributions struct { - Max int64 `json:"max,omitempty"` - - Min int64 `json:"min,omitempty"` - + Max int64 `json:"max,omitempty"` + Min int64 `json:"min,omitempty"` Proportion float64 `json:"proportion,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Max") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Max") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Max") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Max") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4LoadingExperienceMetricsDistributions) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4LoadingExperienceMetricsDistributions) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4LoadingExperienceMetricsDistributions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PagespeedApiPagespeedResponseV4LoadingExperienceMetricsDistributions) UnmarshalJSON(data []byte) error { @@ -702,179 +585,132 @@ func (s *PagespeedApiPagespeedResponseV4LoadingExperienceMetricsDistributions) U return nil } -// PagespeedApiPagespeedResponseV4PageStats: Summary statistics for the -// page, such as number of JavaScript bytes, number of HTML bytes, etc. +// PagespeedApiPagespeedResponseV4PageStats: Summary statistics for the page, +// such as number of JavaScript bytes, number of HTML bytes, etc. type PagespeedApiPagespeedResponseV4PageStats struct { // Cms: Content management system (CMS) used for the page. Cms string `json:"cms,omitempty"` - - // CssResponseBytes: Number of uncompressed response bytes for CSS - // resources on the page. - CssResponseBytes int64 `json:"cssResponseBytes,omitempty,string"` - - // FlashResponseBytes: Number of response bytes for flash resources on + // CssResponseBytes: Number of uncompressed response bytes for CSS resources on // the page. + CssResponseBytes int64 `json:"cssResponseBytes,omitempty,string"` + // FlashResponseBytes: Number of response bytes for flash resources on the + // page. FlashResponseBytes int64 `json:"flashResponseBytes,omitempty,string"` - - // HtmlResponseBytes: Number of uncompressed response bytes for the main - // HTML document and all iframes on the page. + // HtmlResponseBytes: Number of uncompressed response bytes for the main HTML + // document and all iframes on the page. HtmlResponseBytes int64 `json:"htmlResponseBytes,omitempty,string"` - - // ImageResponseBytes: Number of response bytes for image resources on - // the page. + // ImageResponseBytes: Number of response bytes for image resources on the + // page. ImageResponseBytes int64 `json:"imageResponseBytes,omitempty,string"` - // JavascriptResponseBytes: Number of uncompressed response bytes for JS // resources on the page. JavascriptResponseBytes int64 `json:"javascriptResponseBytes,omitempty,string"` - - // NumRenderBlockingRoundTrips: The needed round trips to load render - // blocking resources + // NumRenderBlockingRoundTrips: The needed round trips to load render blocking + // resources NumRenderBlockingRoundTrips int64 `json:"numRenderBlockingRoundTrips,omitempty"` - // NumTotalRoundTrips: The needed round trips to load the full page NumTotalRoundTrips int64 `json:"numTotalRoundTrips,omitempty"` - // NumberCssResources: Number of CSS resources referenced by the page. NumberCssResources int64 `json:"numberCssResources,omitempty"` - // NumberHosts: Number of unique hosts referenced by the page. NumberHosts int64 `json:"numberHosts,omitempty"` - - // NumberJsResources: Number of JavaScript resources referenced by the - // page. + // NumberJsResources: Number of JavaScript resources referenced by the page. NumberJsResources int64 `json:"numberJsResources,omitempty"` - // NumberResources: Number of HTTP resources loaded by the page. NumberResources int64 `json:"numberResources,omitempty"` - // NumberRobotedResources: Number of roboted resources. NumberRobotedResources int64 `json:"numberRobotedResources,omitempty"` - - // NumberStaticResources: Number of static (i.e. cacheable) resources on - // the page. + // NumberStaticResources: Number of static (i.e. cacheable) resources on the + // page. NumberStaticResources int64 `json:"numberStaticResources,omitempty"` - - // NumberTransientFetchFailureResources: Number of transient-failed - // resources. + // NumberTransientFetchFailureResources: Number of transient-failed resources. NumberTransientFetchFailureResources int64 `json:"numberTransientFetchFailureResources,omitempty"` - - // OtherResponseBytes: Number of response bytes for other resources on - // the page. + // OtherResponseBytes: Number of response bytes for other resources on the + // page. OtherResponseBytes int64 `json:"otherResponseBytes,omitempty,string"` - - // OverTheWireResponseBytes: Number of over-the-wire bytes, uses the - // default gzip compression strategy as an estimation. + // OverTheWireResponseBytes: Number of over-the-wire bytes, uses the default + // gzip compression strategy as an estimation. OverTheWireResponseBytes int64 `json:"overTheWireResponseBytes,omitempty,string"` - // RobotedUrls: List of roboted urls. RobotedUrls []string `json:"robotedUrls,omitempty"` - - // TextResponseBytes: Number of uncompressed response bytes for text - // resources not covered by other statistics (i.e non-HTML, non-script, - // non-CSS resources) on the page. + // TextResponseBytes: Number of uncompressed response bytes for text resources + // not covered by other statistics (i.e non-HTML, non-script, non-CSS + // resources) on the page. TextResponseBytes int64 `json:"textResponseBytes,omitempty,string"` - // TotalRequestBytes: Total size of all request bytes sent by the page. TotalRequestBytes int64 `json:"totalRequestBytes,omitempty,string"` - // TransientFetchFailureUrls: List of transient fetch failure urls. TransientFetchFailureUrls []string `json:"transientFetchFailureUrls,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cms") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cms") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cms") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cms") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4PageStats) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4PageStats) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4PageStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PagespeedApiPagespeedResponseV4RuleGroups: The name of this rule -// group: one of "SPEED", "USABILITY", or "SECURITY". +// PagespeedApiPagespeedResponseV4RuleGroups: The name of this rule group: one +// of "SPEED", "USABILITY", or "SECURITY". type PagespeedApiPagespeedResponseV4RuleGroups struct { Pass bool `json:"pass,omitempty"` - - // Score: The score (0-100) for this rule group, which indicates how - // much better a page could be in that category (e.g. how much faster, - // or how much more usable, or how much more secure). A high score - // indicates little room for improvement, while a lower score indicates - // more room for improvement. + // Score: The score (0-100) for this rule group, which indicates how much + // better a page could be in that category (e.g. how much faster, or how much + // more usable, or how much more secure). A high score indicates little room + // for improvement, while a lower score indicates more room for improvement. Score int64 `json:"score,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Pass") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Pass") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Pass") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Pass") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4RuleGroups) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4RuleGroups) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4RuleGroups - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PagespeedApiPagespeedResponseV4Version: The version of PageSpeed used -// to generate these results. +// PagespeedApiPagespeedResponseV4Version: The version of PageSpeed used to +// generate these results. type PagespeedApiPagespeedResponseV4Version struct { - // Major: The major version number of PageSpeed used to generate these - // results. + // Major: The major version number of PageSpeed used to generate these results. Major int64 `json:"major,omitempty"` - - // Minor: The minor version number of PageSpeed used to generate these - // results. + // Minor: The minor version number of PageSpeed used to generate these results. Minor int64 `json:"minor,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Major") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Major") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Major") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PagespeedApiPagespeedResponseV4Version) MarshalJSON() ([]byte, error) { +func (s PagespeedApiPagespeedResponseV4Version) MarshalJSON() ([]byte, error) { type NoMethod PagespeedApiPagespeedResponseV4Version - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "pagespeedonline.pagespeedapi.runpagespeed": - type PagespeedapiRunpagespeedCall struct { s *Service urlParams_ gensupport.URLParams @@ -883,9 +719,11 @@ type PagespeedapiRunpagespeedCall struct { header_ http.Header } -// Runpagespeed: Runs PageSpeed analysis on the page at the specified -// URL, and returns PageSpeed scores, a list of suggestions to make that -// page faster, and other information. +// Runpagespeed: Runs PageSpeed analysis on the page at the specified URL, and +// returns PageSpeed scores, a list of suggestions to make that page faster, +// and other information. +// +// - url: The URL to fetch and analyze. func (r *PagespeedapiService) Runpagespeed(url string) *PagespeedapiRunpagespeedCall { c := &PagespeedapiRunpagespeedCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("url", url) @@ -893,43 +731,43 @@ func (r *PagespeedapiService) Runpagespeed(url string) *PagespeedapiRunpagespeed } // FilterThirdPartyResources sets the optional parameter -// "filter_third_party_resources": Indicates if third party resources -// should be filtered out before PageSpeed analysis. +// "filter_third_party_resources": Indicates if third party resources should be +// filtered out before PageSpeed analysis. func (c *PagespeedapiRunpagespeedCall) FilterThirdPartyResources(filterThirdPartyResources bool) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("filter_third_party_resources", fmt.Sprint(filterThirdPartyResources)) return c } -// Locale sets the optional parameter "locale": The locale used to -// localize formatted results +// Locale sets the optional parameter "locale": The locale used to localize +// formatted results func (c *PagespeedapiRunpagespeedCall) Locale(locale string) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("locale", locale) return c } -// Rule sets the optional parameter "rule": A PageSpeed rule to run; if -// none are given, all rules are run +// Rule sets the optional parameter "rule": A PageSpeed rule to run; if none +// are given, all rules are run func (c *PagespeedapiRunpagespeedCall) Rule(rule ...string) *PagespeedapiRunpagespeedCall { c.urlParams_.SetMulti("rule", append([]string{}, rule...)) return c } -// Screenshot sets the optional parameter "screenshot": Indicates if -// binary data containing a screenshot should be included +// Screenshot sets the optional parameter "screenshot": Indicates if binary +// data containing a screenshot should be included func (c *PagespeedapiRunpagespeedCall) Screenshot(screenshot bool) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("screenshot", fmt.Sprint(screenshot)) return c } -// Snapshots sets the optional parameter "snapshots": Indicates if -// binary data containing snapshot images should be included +// Snapshots sets the optional parameter "snapshots": Indicates if binary data +// containing snapshot images should be included func (c *PagespeedapiRunpagespeedCall) Snapshots(snapshots bool) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("snapshots", fmt.Sprint(snapshots)) return c } -// Strategy sets the optional parameter "strategy": The analysis -// strategy (desktop or mobile) to use, and desktop is the default +// Strategy sets the optional parameter "strategy": The analysis strategy +// (desktop or mobile) to use, and desktop is the default // // Possible values: // @@ -940,48 +778,44 @@ func (c *PagespeedapiRunpagespeedCall) Strategy(strategy string) *PagespeedapiRu return c } -// UtmCampaign sets the optional parameter "utm_campaign": Campaign name -// for analytics. +// UtmCampaign sets the optional parameter "utm_campaign": Campaign name for +// analytics. func (c *PagespeedapiRunpagespeedCall) UtmCampaign(utmCampaign string) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("utm_campaign", utmCampaign) return c } -// UtmSource sets the optional parameter "utm_source": Campaign source -// for analytics. +// UtmSource sets the optional parameter "utm_source": Campaign source for +// analytics. func (c *PagespeedapiRunpagespeedCall) UtmSource(utmSource string) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("utm_source", utmSource) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PagespeedapiRunpagespeedCall) Fields(s ...googleapi.Field) *PagespeedapiRunpagespeedCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PagespeedapiRunpagespeedCall) IfNoneMatch(entityTag string) *PagespeedapiRunpagespeedCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PagespeedapiRunpagespeedCall) Context(ctx context.Context) *PagespeedapiRunpagespeedCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PagespeedapiRunpagespeedCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -990,12 +824,7 @@ func (c *PagespeedapiRunpagespeedCall) Header() http.Header { } func (c *PagespeedapiRunpagespeedCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200514") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1009,16 +838,15 @@ func (c *PagespeedapiRunpagespeedCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pagespeedonline.pagespeedapi.runpagespeed" call. -// Exactly one of *PagespeedApiPagespeedResponseV4 or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PagespeedApiPagespeedResponseV4.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PagespeedApiPagespeedResponseV4.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*PagespeedApiPagespeedResponseV4, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1026,17 +854,17 @@ func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Pagesp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PagespeedApiPagespeedResponseV4{ ServerResponse: googleapi.ServerResponse{ @@ -1049,80 +877,4 @@ func (c *PagespeedapiRunpagespeedCall) Do(opts ...googleapi.CallOption) (*Pagesp return nil, err } return ret, nil - // { - // "description": "Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information.", - // "httpMethod": "GET", - // "id": "pagespeedonline.pagespeedapi.runpagespeed", - // "parameterOrder": [ - // "url" - // ], - // "parameters": { - // "filter_third_party_resources": { - // "default": "false", - // "description": "Indicates if third party resources should be filtered out before PageSpeed analysis.", - // "location": "query", - // "type": "boolean" - // }, - // "locale": { - // "description": "The locale used to localize formatted results", - // "location": "query", - // "pattern": "[a-zA-Z]+(_[a-zA-Z]+)?", - // "type": "string" - // }, - // "rule": { - // "description": "A PageSpeed rule to run; if none are given, all rules are run", - // "location": "query", - // "pattern": "[a-zA-Z]+", - // "repeated": true, - // "type": "string" - // }, - // "screenshot": { - // "default": "false", - // "description": "Indicates if binary data containing a screenshot should be included", - // "location": "query", - // "type": "boolean" - // }, - // "snapshots": { - // "default": "false", - // "description": "Indicates if binary data containing snapshot images should be included", - // "location": "query", - // "type": "boolean" - // }, - // "strategy": { - // "description": "The analysis strategy (desktop or mobile) to use, and desktop is the default", - // "enum": [ - // "desktop", - // "mobile" - // ], - // "enumDescriptions": [ - // "Fetch and analyze the URL for desktop browsers", - // "Fetch and analyze the URL for mobile devices" - // ], - // "location": "query", - // "type": "string" - // }, - // "url": { - // "description": "The URL to fetch and analyze", - // "location": "query", - // "pattern": "(?i)(site:|origin:)?http(s)?://.*", - // "required": true, - // "type": "string" - // }, - // "utm_campaign": { - // "description": "Campaign name for analytics.", - // "location": "query", - // "type": "string" - // }, - // "utm_source": { - // "description": "Campaign source for analytics.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "runPagespeed", - // "response": { - // "$ref": "PagespeedApiPagespeedResponseV4" - // } - // } - } diff --git a/pagespeedonline/v5/pagespeedonline-gen.go b/pagespeedonline/v5/pagespeedonline-gen.go index 7f33562ce0d..81bee398cea 100644 --- a/pagespeedonline/v5/pagespeedonline-gen.go +++ b/pagespeedonline/v5/pagespeedonline-gen.go @@ -1186,7 +1186,7 @@ func (c *PagespeedapiRunpagespeedCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pagespeedonline.pagespeedapi.runpagespeed" call. diff --git a/partners/v2/partners-gen.go b/partners/v2/partners-gen.go index c54bb725674..eb949f304af 100644 --- a/partners/v2/partners-gen.go +++ b/partners/v2/partners-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/partners/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // partnersService, err := partners.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // partnersService, err := partners.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // partnersService, err := partners.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package partners // import "google.golang.org/api/partners/v2" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,14 +83,20 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "partners:v2" const apiName = "partners" const apiVersion = "v2" const basePath = "https://partners.googleapis.com/" +const basePathTemplate = "https://partners.UNIVERSE_DOMAIN/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -248,37 +269,30 @@ type V2Service struct { s *Service } -// AdWordsManagerAccountInfo: Information about a particular AdWords -// Manager Account. +// AdWordsManagerAccountInfo: Information about a particular AdWords Manager +// Account. // Read more at https://support.google.com/adwords/answer/6139186 type AdWordsManagerAccountInfo struct { // CustomerName: Name of the customer this account represents. CustomerName string `json:"customerName,omitempty"` - // Id: The AdWords Manager Account id. Id int64 `json:"id,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CustomerName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CustomerName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CustomerName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdWordsManagerAccountInfo) MarshalJSON() ([]byte, error) { +func (s AdWordsManagerAccountInfo) MarshalJSON() ([]byte, error) { type NoMethod AdWordsManagerAccountInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Analytics: Analytics data for a `Company` within a single day. @@ -286,113 +300,87 @@ type Analytics struct { // Contacts: Instances of users contacting the `Company` // on the specified date. Contacts *AnalyticsDataPoint `json:"contacts,omitempty"` - // EventDate: Date on which these events occurred. EventDate *Date `json:"eventDate,omitempty"` - // ProfileViews: Instances of users viewing the `Company` profile // on the specified date. ProfileViews *AnalyticsDataPoint `json:"profileViews,omitempty"` - - // SearchViews: Instances of users seeing the `Company` in Google - // Partners Search results + // SearchViews: Instances of users seeing the `Company` in Google Partners + // Search results // on the specified date. SearchViews *AnalyticsDataPoint `json:"searchViews,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contacts") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contacts") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contacts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Analytics) MarshalJSON() ([]byte, error) { +func (s Analytics) MarshalJSON() ([]byte, error) { type NoMethod Analytics - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AnalyticsDataPoint: Details of the analytics events for a `Company` -// within a single day. +// AnalyticsDataPoint: Details of the analytics events for a `Company` within a +// single day. type AnalyticsDataPoint struct { // EventCount: Number of times the type of event occurred. // Meaning depends on context (e.g. profile views, contacts, etc.). EventCount int64 `json:"eventCount,omitempty"` - // EventLocations: Location information of where these events occurred. EventLocations []*LatLng `json:"eventLocations,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventCount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyticsDataPoint) MarshalJSON() ([]byte, error) { +func (s AnalyticsDataPoint) MarshalJSON() ([]byte, error) { type NoMethod AnalyticsDataPoint - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AnalyticsSummary: Analytics aggregated data for a `Company` for a -// given date range. +// AnalyticsSummary: Analytics aggregated data for a `Company` for a given date +// range. type AnalyticsSummary struct { - // ContactsCount: Aggregated number of times users contacted the - // `Company` + // ContactsCount: Aggregated number of times users contacted the `Company` // for given date range. ContactsCount int64 `json:"contactsCount,omitempty"` - - // ProfileViewsCount: Aggregated number of profile views for the - // `Company` for given date range. + // ProfileViewsCount: Aggregated number of profile views for the `Company` for + // given date range. ProfileViewsCount int64 `json:"profileViewsCount,omitempty"` - - // SearchViewsCount: Aggregated number of times users saw the - // `Company` + // SearchViewsCount: Aggregated number of times users saw the `Company` // in Google Partners Search results for given date range. SearchViewsCount int64 `json:"searchViewsCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContactsCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContactsCount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContactsCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyticsSummary) MarshalJSON() ([]byte, error) { +func (s AnalyticsSummary) MarshalJSON() ([]byte, error) { type NoMethod AnalyticsSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AvailableOffer: Available Offers to be distributed. @@ -400,41 +388,32 @@ type AvailableOffer struct { // Available: The number of codes for this offer that are available for // distribution. Available int64 `json:"available,omitempty"` - // CountryOfferInfos: Offer info by country. CountryOfferInfos []*CountryOfferInfo `json:"countryOfferInfos,omitempty"` - // Description: Description of the offer. Description string `json:"description,omitempty"` - // Id: ID of this offer. Id int64 `json:"id,omitempty,string"` - - // MaxAccountAge: The maximum age of an account [in days] to be - // eligible. + // MaxAccountAge: The maximum age of an account [in days] to be eligible. MaxAccountAge int64 `json:"maxAccountAge,omitempty"` - // Name: Name of the offer. Name string `json:"name,omitempty"` - // OfferLevel: Level of this offer. // // Possible values: // "OFFER_LEVEL_UNSPECIFIED" - Unset. - // "OFFER_LEVEL_DENY_PROBLEM" - Users/Agencies that have no offers - // because of a problem. - // "OFFER_LEVEL_DENY_CONTRACT" - Users/Agencies that have no offers - // due to contractural agreements. - // "OFFER_LEVEL_MANUAL" - Users/Agencies that have a - // manually-configured limit. + // "OFFER_LEVEL_DENY_PROBLEM" - Users/Agencies that have no offers because of + // a problem. + // "OFFER_LEVEL_DENY_CONTRACT" - Users/Agencies that have no offers due to + // contractural agreements. + // "OFFER_LEVEL_MANUAL" - Users/Agencies that have a manually-configured + // limit. // "OFFER_LEVEL_LIMIT_0" - Some Agencies don't get any offers. // "OFFER_LEVEL_LIMIT_5" - Basic level gets 5 per month. // "OFFER_LEVEL_LIMIT_15" - Agencies with adequate AHI and spend get // 15/month. - // "OFFER_LEVEL_LIMIT_50" - Badged partners (even in grace) get 50 per - // month. + // "OFFER_LEVEL_LIMIT_50" - Badged partners (even in grace) get 50 per month. OfferLevel string `json:"offerLevel,omitempty"` - // OfferType: Type of offer. // // Possible values: @@ -443,49 +422,37 @@ type AvailableOffer struct { // "OFFER_TYPE_VIDEO" - Youtube video. // "OFFER_TYPE_SPEND_MATCH" - Spend Match up to Y. OfferType string `json:"offerType,omitempty"` - // QualifiedCustomer: Customers who qualify for this offer. QualifiedCustomer []*OfferCustomer `json:"qualifiedCustomer,omitempty"` - - // QualifiedCustomersComplete: Whether or not the list of qualified - // customers is definitely complete. + // QualifiedCustomersComplete: Whether or not the list of qualified customers + // is definitely complete. QualifiedCustomersComplete bool `json:"qualifiedCustomersComplete,omitempty"` - - // ShowSpecialOfferCopy: Should special text be shown on the offers - // page. + // ShowSpecialOfferCopy: Should special text be shown on the offers page. ShowSpecialOfferCopy bool `json:"showSpecialOfferCopy,omitempty"` - // Terms: Terms of the offer. Terms string `json:"terms,omitempty"` - // ForceSendFields is a list of field names (e.g. "Available") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Available") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Available") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AvailableOffer) MarshalJSON() ([]byte, error) { +func (s AvailableOffer) MarshalJSON() ([]byte, error) { type NoMethod AvailableOffer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Certification: A user's information on a specific certification. type Certification struct { // Achieved: Whether this certification has been achieved. Achieved bool `json:"achieved,omitempty"` - // CertificationType: The type of certification, the area of expertise. // // Possible values: @@ -502,46 +469,35 @@ type Certification struct { // "CT_ADWORDS_DISPLAY" - AdWords Display certified. // "CT_MOBILE_SITES" - Mobile Sites certified. CertificationType string `json:"certificationType,omitempty"` - // Expiration: Date this certification is due to expire. Expiration string `json:"expiration,omitempty"` - // LastAchieved: The date the user last achieved certification. LastAchieved string `json:"lastAchieved,omitempty"` - // Warning: Whether this certification is in the state of warning. Warning bool `json:"warning,omitempty"` - // ForceSendFields is a list of field names (e.g. "Achieved") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Achieved") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Achieved") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Certification) MarshalJSON() ([]byte, error) { +func (s Certification) MarshalJSON() ([]byte, error) { type NoMethod Certification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CertificationExamStatus: Status for a Google Partners certification -// exam. +// CertificationExamStatus: Status for a Google Partners certification exam. type CertificationExamStatus struct { - // NumberUsersPass: The number of people who have passed the - // certification exam. + // NumberUsersPass: The number of people who have passed the certification + // exam. NumberUsersPass int64 `json:"numberUsersPass,omitempty"` - // Type: The type of certification exam. // // Possible values: @@ -557,39 +513,30 @@ type CertificationExamStatus struct { // "CET_DIGITAL_SALES" - Digital Sales exam. // "CET_MOBILE_SITES" - Mobile Sites exam. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "NumberUsersPass") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NumberUsersPass") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NumberUsersPass") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CertificationExamStatus) MarshalJSON() ([]byte, error) { +func (s CertificationExamStatus) MarshalJSON() ([]byte, error) { type NoMethod CertificationExamStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CertificationStatus: Google Partners certification status. type CertificationStatus struct { // ExamStatuses: List of certification exam statuses. ExamStatuses []*CertificationExamStatus `json:"examStatuses,omitempty"` - // IsCertified: Whether certification is passing. IsCertified bool `json:"isCertified,omitempty"` - // Type: The type of the certification. // // Possible values: @@ -606,52 +553,42 @@ type CertificationStatus struct { // "CT_ADWORDS_DISPLAY" - AdWords Display certified. // "CT_MOBILE_SITES" - Mobile Sites certified. Type string `json:"type,omitempty"` - // UserCount: Number of people who are certified, UserCount int64 `json:"userCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExamStatuses") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExamStatuses") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExamStatuses") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CertificationStatus) MarshalJSON() ([]byte, error) { +func (s CertificationStatus) MarshalJSON() ([]byte, error) { type NoMethod CertificationStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Company: A company resource in the Google Partners API. Once -// certified, it qualifies +// Company: A company resource in the Google Partners API. Once certified, it +// qualifies // for being searched by advertisers. type Company struct { - // AdditionalWebsites: URL of the company's additional websites used to - // verify the dynamic badges. - // These are stored as full URLs as entered by the user, but only the - // TLD will + // AdditionalWebsites: URL of the company's additional websites used to verify + // the dynamic badges. + // These are stored as full URLs as entered by the user, but only the TLD + // will // be used for the actual verification. AdditionalWebsites []string `json:"additionalWebsites,omitempty"` - - // AutoApprovalEmailDomains: Email domains that allow users with a - // matching email address to get + // AutoApprovalEmailDomains: Email domains that allow users with a matching + // email address to get // auto-approved for associating with this company. AutoApprovalEmailDomains []string `json:"autoApprovalEmailDomains,omitempty"` - // BadgeAuthorityInAwn: Whether the company's badge authority is in AWN BadgeAuthorityInAwn bool `json:"badgeAuthorityInAwn,omitempty"` - // BadgeTier: Partner badge tier // // Possible values: @@ -659,44 +596,36 @@ type Company struct { // "BADGE_TIER_REGULAR" - Agency has regular partner badge. // "BADGE_TIER_PREMIER" - Agency has premier badge. BadgeTier string `json:"badgeTier,omitempty"` - - // CertificationStatuses: The list of Google Partners certification - // statuses for the company. + // CertificationStatuses: The list of Google Partners certification statuses + // for the company. CertificationStatuses []*CertificationStatus `json:"certificationStatuses,omitempty"` - // CompanyTypes: Company type labels listed on the company's profile. // // Possible values: // "COMPANY_TYPE_UNSPECIFIED" - Unchosen. - // "FULL_SERVICE_AGENCY" - Handles all aspects of the advertising - // process. + // "FULL_SERVICE_AGENCY" - Handles all aspects of the advertising process. // "MEDIA_AGENCY" - Focuses solely on an advertiser's media placement. // "CREATIVE_AGENCY" - Plans/executes advertising campaigns. // "CDIGITAL_AGENCY" - Like a // FULL_SERVICE_AGENCY, // but specializing in digital. // "SEM_SEO" - Increases visibility in search engine result pages. - // "PERFORMANCE_MARKETING" - Drives promotional efforts for immediate - // impact. - // "ADVERTISING_TOOL_DEVELOPMENT" - Focuses on bid management, - // conversion, reporting. + // "PERFORMANCE_MARKETING" - Drives promotional efforts for immediate impact. + // "ADVERTISING_TOOL_DEVELOPMENT" - Focuses on bid management, conversion, + // reporting. // "PR" - Establishes favorable relationship with public through // low/no-cost // communications. - // "SELF_MANAGED" - Does not manage other company's accounts, manages - // own marketing programs. - // "RESELLER" - Full-service AdWords account management for local - // businesses. + // "SELF_MANAGED" - Does not manage other company's accounts, manages own + // marketing programs. + // "RESELLER" - Full-service AdWords account management for local businesses. CompanyTypes []string `json:"companyTypes,omitempty"` - - // ConvertedMinMonthlyBudget: The minimum monthly budget that the - // company accepts for partner business, + // ConvertedMinMonthlyBudget: The minimum monthly budget that the company + // accepts for partner business, // converted to the requested currency code. ConvertedMinMonthlyBudget *Money `json:"convertedMinMonthlyBudget,omitempty"` - // Id: The ID of the company. Id string `json:"id,omitempty"` - // Industries: Industries the company can help with. // // Possible values: @@ -712,59 +641,44 @@ type Company struct { // "I_TECHNOLOGY" - The technology industry. // "I_TRAVEL" - The travel industry. Industries []string `json:"industries,omitempty"` - // LocalizedInfos: The list of localized info for the company. LocalizedInfos []*LocalizedCompanyInfo `json:"localizedInfos,omitempty"` - // Locations: The list of all company locations. // If set, must include the // primary_location // in the list. Locations []*Location `json:"locations,omitempty"` - // Name: The name of the company. Name string `json:"name,omitempty"` - - // OriginalMinMonthlyBudget: The unconverted minimum monthly budget that - // the company accepts for partner + // OriginalMinMonthlyBudget: The unconverted minimum monthly budget that the + // company accepts for partner // business. OriginalMinMonthlyBudget *Money `json:"originalMinMonthlyBudget,omitempty"` - - // PrimaryAdwordsManagerAccountId: The Primary AdWords Manager Account - // id. + // PrimaryAdwordsManagerAccountId: The Primary AdWords Manager Account id. PrimaryAdwordsManagerAccountId int64 `json:"primaryAdwordsManagerAccountId,omitempty,string"` - - // PrimaryLanguageCode: The primary language code of the company, as - // defined by + // PrimaryLanguageCode: The primary language code of the company, as defined + // by // BCP 47 // (IETF BCP 47, "Tags for Identifying Languages"). PrimaryLanguageCode string `json:"primaryLanguageCode,omitempty"` - // PrimaryLocation: The primary location of the company. PrimaryLocation *Location `json:"primaryLocation,omitempty"` - - // ProfileStatus: The public viewability status of the company's - // profile. + // ProfileStatus: The public viewability status of the company's profile. // // Possible values: // "COMPANY_PROFILE_STATUS_UNSPECIFIED" - Unchosen. // "HIDDEN" - Company profile does not show up publicly. - // "PUBLISHED" - Company profile can only be viewed by the profile's - // URL + // "PUBLISHED" - Company profile can only be viewed by the profile's URL // and not by Google Partner Search. - // "SEARCHABLE" - Company profile can be viewed by the profile's - // URL + // "SEARCHABLE" - Company profile can be viewed by the profile's URL // and by Google Partner Search. ProfileStatus string `json:"profileStatus,omitempty"` - // PublicProfile: Basic information from the company's public profile. PublicProfile *PublicProfile `json:"publicProfile,omitempty"` - - // Ranks: Information related to the ranking of the company within the - // list of + // Ranks: Information related to the ranking of the company within the list + // of // companies. Ranks []*Rank `json:"ranks,omitempty"` - // Services: Services the company can help with. // // Possible values: @@ -776,49 +690,38 @@ type Company struct { // "S_MOBILE_AND_VIDEO_ADS" - Help with mobile and video ads. // "S_MOBILE_WEBSITE_SERVICES" - Help with mobile websites. Services []string `json:"services,omitempty"` - - // SpecializationStatus: The list of Google Partners specialization - // statuses for the company. + // SpecializationStatus: The list of Google Partners specialization statuses + // for the company. SpecializationStatus []*SpecializationStatus `json:"specializationStatus,omitempty"` - // WebsiteUrl: URL of the company's website. WebsiteUrl string `json:"websiteUrl,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AdditionalWebsites") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalWebsites") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalWebsites") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalWebsites") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Company) MarshalJSON() ([]byte, error) { +func (s Company) MarshalJSON() ([]byte, error) { type NoMethod Company - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CompanyRelation: A CompanyRelation resource representing information -// about a user's +// CompanyRelation: A CompanyRelation resource representing information about a +// user's // affiliation and standing with a company in Partners. type CompanyRelation struct { // Address: The primary address for this company. Address string `json:"address,omitempty"` - // BadgeTier: Whether the company is a Partner. // // Possible values: @@ -826,124 +729,90 @@ type CompanyRelation struct { // "BADGE_TIER_REGULAR" - Agency has regular partner badge. // "BADGE_TIER_PREMIER" - Agency has premier badge. BadgeTier string `json:"badgeTier,omitempty"` - // CompanyAdmin: Indicates if the user is an admin for this company. CompanyAdmin bool `json:"companyAdmin,omitempty"` - - // CompanyId: The ID of the company. There may be no id if this is - // a + // CompanyId: The ID of the company. There may be no id if this is a // pending company.5 CompanyId string `json:"companyId,omitempty"` - - // CreationTime: The timestamp of when affiliation was - // requested. + // CreationTime: The timestamp of when affiliation was requested. // @OutputOnly CreationTime string `json:"creationTime,omitempty"` - // InternalCompanyId: The internal company ID. // Only available for a whitelisted set of api clients. InternalCompanyId string `json:"internalCompanyId,omitempty"` - - // IsPending: The flag that indicates if the company is pending - // verification. + // IsPending: The flag that indicates if the company is pending verification. IsPending bool `json:"isPending,omitempty"` - // LogoUrl: A URL to a profile photo, e.g. a G+ profile photo. LogoUrl string `json:"logoUrl,omitempty"` - - // ManagerAccount: The AdWords manager account # associated this - // company. + // ManagerAccount: The AdWords manager account # associated this company. ManagerAccount int64 `json:"managerAccount,omitempty,string"` - // Name: The name (in the company's primary language) for the company. Name string `json:"name,omitempty"` - // PhoneNumber: The phone number for the company's primary address. PhoneNumber string `json:"phoneNumber,omitempty"` - // PrimaryAddress: The primary location of the company. PrimaryAddress *Location `json:"primaryAddress,omitempty"` - // PrimaryCountryCode: The primary country code of the company. PrimaryCountryCode string `json:"primaryCountryCode,omitempty"` - // PrimaryLanguageCode: The primary language code of the company. PrimaryLanguageCode string `json:"primaryLanguageCode,omitempty"` - - // ResolvedTimestamp: The timestamp when the user was - // approved. + // ResolvedTimestamp: The timestamp when the user was approved. // @OutputOnly ResolvedTimestamp string `json:"resolvedTimestamp,omitempty"` - // Segment: The segment the company is classified as. // // Possible values: // "COMPANY_SEGMENT_UNKNOWN" - Default segment indicates an unknown. - // "COMPANY_SEGMENT_NAL" - Segment representing a selected group of - // Partners - // "COMPANY_SEGMENT_PSP" - Segment representing Premier SMB Partners, - // an AdWords partnership program. - // "COMPANY_SEGMENT_PPSP" - A segment of Premier SMB Partners that - // have relationship with Google. + // "COMPANY_SEGMENT_NAL" - Segment representing a selected group of Partners + // "COMPANY_SEGMENT_PSP" - Segment representing Premier SMB Partners, an + // AdWords partnership program. + // "COMPANY_SEGMENT_PPSP" - A segment of Premier SMB Partners that have + // relationship with Google. Segment []string `json:"segment,omitempty"` - - // SpecializationStatus: The list of Google Partners specialization - // statuses for the company. + // SpecializationStatus: The list of Google Partners specialization statuses + // for the company. SpecializationStatus []*SpecializationStatus `json:"specializationStatus,omitempty"` - // State: The state of relationship, in terms of approvals. // // Possible values: - // "USER_COMPANY_REATION_STATE_NONE_SPECIFIED" - Default unspecified - // value. - // "USER_COMPANY_RELATION_STATE_AWAIT_EMAIL" - User has filled in a - // request to be associated with an company. + // "USER_COMPANY_REATION_STATE_NONE_SPECIFIED" - Default unspecified value. + // "USER_COMPANY_RELATION_STATE_AWAIT_EMAIL" - User has filled in a request + // to be associated with an company. // Now waiting email confirmation. // "USER_COMPANY_RELATION_STATE_AWAIT_ADMIN" - Pending approval from // company. // Email confirmation will not approve this one. // "USER_COMPANY_RELATION_STATE_APPROVED" - Approved by company. State string `json:"state,omitempty"` - // Website: The website URL for this company. Website string `json:"website,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CompanyRelation) MarshalJSON() ([]byte, error) { +func (s CompanyRelation) MarshalJSON() ([]byte, error) { type NoMethod CompanyRelation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CountryOfferInfo: Offer info by country. type CountryOfferInfo struct { // GetYAmount: (localized) Get Y amount for that country's offer. GetYAmount string `json:"getYAmount,omitempty"` - - // OfferCountryCode: Country code for which offer codes may be - // requested. + // OfferCountryCode: Country code for which offer codes may be requested. OfferCountryCode string `json:"offerCountryCode,omitempty"` - // OfferType: Type of offer country is eligible for. // // Possible values: @@ -952,31 +821,24 @@ type CountryOfferInfo struct { // "OFFER_TYPE_VIDEO" - Youtube video. // "OFFER_TYPE_SPEND_MATCH" - Spend Match up to Y. OfferType string `json:"offerType,omitempty"` - // SpendXAmount: (localized) Spend X amount for that country's offer. SpendXAmount string `json:"spendXAmount,omitempty"` - // ForceSendFields is a list of field names (e.g. "GetYAmount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GetYAmount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GetYAmount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CountryOfferInfo) MarshalJSON() ([]byte, error) { +func (s CountryOfferInfo) MarshalJSON() ([]byte, error) { type NoMethod CountryOfferInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateLeadRequest: Request message for CreateLead. @@ -985,36 +847,27 @@ type CreateLeadRequest struct { // `LEAD_TYPE_UNSPECIFIED` // and either `email` or `phone_number` must be provided. Lead *Lead `json:"lead,omitempty"` - // RecaptchaChallenge: reCaptcha challenge - // info. + // href="https://www.google.com/recaptcha/">reCaptcha challenge info. RecaptchaChallenge *RecaptchaChallenge `json:"recaptchaChallenge,omitempty"` - // RequestMetadata: Current request metadata. RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Lead") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Lead") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Lead") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Lead") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateLeadRequest) MarshalJSON() ([]byte, error) { +func (s CreateLeadRequest) MarshalJSON() ([]byte, error) { type NoMethod CreateLeadRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateLeadResponse: Response message for CreateLead. @@ -1022,7 +875,6 @@ type CreateLeadResponse struct { // Lead: Lead that was created depending on the outcome of // reCaptcha validation. Lead *Lead `json:"lead,omitempty"` - // RecaptchaStatus: The outcome of reCaptcha // validation. @@ -1033,125 +885,99 @@ type CreateLeadResponse struct { // "RS_PASSED" - reCaptcha challenge passed. // "RS_FAILED" - reCaptcha challenge failed. RecaptchaStatus string `json:"recaptchaStatus,omitempty"` - // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Lead") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Lead") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Lead") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Lead") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CreateLeadResponse) MarshalJSON() ([]byte, error) { +func (s CreateLeadResponse) MarshalJSON() ([]byte, error) { type NoMethod CreateLeadResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Date: Represents a whole or partial calendar date, e.g. a birthday. -// The time of day -// and time zone are either specified elsewhere or are not significant. -// The date -// is relative to the Proleptic Gregorian Calendar. This can -// represent: +// Date: Represents a whole or partial calendar date, e.g. a birthday. The time +// of day +// and time zone are either specified elsewhere or are not significant. The +// date +// is relative to the Proleptic Gregorian Calendar. This can represent: // // * A full date, with non-zero year, month and day values // * A month and day value, with a zero year, e.g. an anniversary // * A year on its own, with zero month and day values -// * A year and month value, with a zero day, e.g. a credit card -// expiration date +// * A year and month value, with a zero day, e.g. a credit card expiration +// date // -// Related types are google.type.TimeOfDay and -// `google.protobuf.Timestamp`. +// Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. type Date struct { - // Day: Day of month. Must be from 1 to 31 and valid for the year and - // month, or 0 + // Day: Day of month. Must be from 1 to 31 and valid for the year and month, or + // 0 // if specifying a year by itself or a year and month where the day is // not // significant. Day int64 `json:"day,omitempty"` - // Month: Month of year. Must be from 1 to 12, or 0 if specifying a year // without a // month and day. Month int64 `json:"month,omitempty"` - // Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date // without // a year. Year int64 `json:"year,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Day") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Day") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Day") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Day") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Date) MarshalJSON() ([]byte, error) { +func (s Date) MarshalJSON() ([]byte, error) { type NoMethod Date - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DebugInfo: Debug information about this request. type DebugInfo struct { // ServerInfo: Info about the server that serviced this request. ServerInfo string `json:"serverInfo,omitempty"` - // ServerTraceInfo: Server-side debug stack trace. ServerTraceInfo string `json:"serverTraceInfo,omitempty"` - // ServiceUrl: URL of the service that handled this request. ServiceUrl string `json:"serviceUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "ServerInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ServerInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ServerInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DebugInfo) MarshalJSON() ([]byte, error) { +func (s DebugInfo) MarshalJSON() ([]byte, error) { type NoMethod DebugInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining @@ -1161,16 +987,12 @@ func (s *DebugInfo) MarshalJSON() ([]byte, error) { // or the response type of an API method. For instance: // // service Foo { -// rpc Bar(google.protobuf.Empty) returns -// -// (google.protobuf.Empty); -// +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); // } // // The JSON representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } @@ -1218,31 +1040,24 @@ type EventData struct { // "ELEMENT_FOCUS" - Element we wanted user to focus on. // "PROGRESS" - Progress when viewing an item \[0-100\]. Key string `json:"key,omitempty"` - // Values: Data values. Values []string `json:"values,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventData) MarshalJSON() ([]byte, error) { +func (s EventData) MarshalJSON() ([]byte, error) { type NoMethod EventData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ExamStatus: A user's information on a specific exam. @@ -1262,78 +1077,59 @@ type ExamStatus struct { // "CET_DIGITAL_SALES" - Digital Sales exam. // "CET_MOBILE_SITES" - Mobile Sites exam. ExamType string `json:"examType,omitempty"` - // Expiration: Date this exam is due to expire. Expiration string `json:"expiration,omitempty"` - // LastPassed: The date the user last passed this exam. LastPassed string `json:"lastPassed,omitempty"` - // Passed: Whether this exam has been passed and not expired. Passed bool `json:"passed,omitempty"` - // Taken: The date the user last taken this exam. Taken string `json:"taken,omitempty"` - // Warning: Whether this exam is in the state of warning. Warning bool `json:"warning,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExamType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExamType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExamType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExamStatus) MarshalJSON() ([]byte, error) { +func (s ExamStatus) MarshalJSON() ([]byte, error) { type NoMethod ExamStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetCompanyResponse: Response message for GetCompany. type GetCompanyResponse struct { // Company: The company. Company *Company `json:"company,omitempty"` - // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Company") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Company") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Company") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Company") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetCompanyResponse) MarshalJSON() ([]byte, error) { +func (s GetCompanyResponse) MarshalJSON() ([]byte, error) { type NoMethod GetCompanyResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetPartnersStatusResponse: Response message for @@ -1342,64 +1138,46 @@ type GetPartnersStatusResponse struct { // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResponseMetadata") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResponseMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ResponseMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetPartnersStatusResponse) MarshalJSON() ([]byte, error) { +func (s GetPartnersStatusResponse) MarshalJSON() ([]byte, error) { type NoMethod GetPartnersStatusResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HistoricalOffer: Historical information about a Google Partners -// Offer. +// HistoricalOffer: Historical information about a Google Partners Offer. type HistoricalOffer struct { // AdwordsUrl: Client's AdWords page URL. AdwordsUrl string `json:"adwordsUrl,omitempty"` - // ClientEmail: Email address for client. ClientEmail string `json:"clientEmail,omitempty"` - // ClientId: ID of client. ClientId int64 `json:"clientId,omitempty,string"` - // ClientName: Name of the client. ClientName string `json:"clientName,omitempty"` - // CreationTime: Time offer was first created. CreationTime string `json:"creationTime,omitempty"` - // ExpirationTime: Time this offer expires. ExpirationTime string `json:"expirationTime,omitempty"` - // LastModifiedTime: Time last action was taken. LastModifiedTime string `json:"lastModifiedTime,omitempty"` - // OfferCode: Offer code. OfferCode string `json:"offerCode,omitempty"` - // OfferCountryCode: Country Code for the offer country. OfferCountryCode string `json:"offerCountryCode,omitempty"` - // OfferType: Type of offer. // // Possible values: @@ -1408,11 +1186,9 @@ type HistoricalOffer struct { // "OFFER_TYPE_VIDEO" - Youtube video. // "OFFER_TYPE_SPEND_MATCH" - Spend Match up to Y. OfferType string `json:"offerType,omitempty"` - - // SenderName: Name (First + Last) of the partners user to whom the - // incentive is allocated. + // SenderName: Name (First + Last) of the partners user to whom the incentive + // is allocated. SenderName string `json:"senderName,omitempty"` - // Status: Status of the offer. // // Possible values: @@ -1422,69 +1198,54 @@ type HistoricalOffer struct { // "OFFER_STATUS_AWARDED" - Offer awarded. // "OFFER_STATUS_EXPIRED" - Offer expired. Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdwordsUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdwordsUrl") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdwordsUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HistoricalOffer) MarshalJSON() ([]byte, error) { +func (s HistoricalOffer) MarshalJSON() ([]byte, error) { type NoMethod HistoricalOffer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LatLng: An object representing a latitude/longitude pair. This is -// expressed as a pair +// LatLng: An object representing a latitude/longitude pair. This is expressed +// as a pair // of doubles representing degrees latitude and degrees longitude. // Unless // specified otherwise, this must conform to the // WGS84 -// st -// andard. Values must be within normalized ranges. +// standard. Values must be within normalized ranges. type LatLng struct { - // Latitude: The latitude in degrees. It must be in the range [-90.0, - // +90.0]. + // Latitude: The latitude in degrees. It must be in the range [-90.0, +90.0]. Latitude float64 `json:"latitude,omitempty"` - // Longitude: The longitude in degrees. It must be in the range [-180.0, // +180.0]. Longitude float64 `json:"longitude,omitempty"` - // ForceSendFields is a list of field names (e.g. "Latitude") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Latitude") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Latitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LatLng) MarshalJSON() ([]byte, error) { +func (s LatLng) MarshalJSON() ([]byte, error) { type NoMethod LatLng - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *LatLng) UnmarshalJSON(data []byte) error { @@ -1503,61 +1264,46 @@ func (s *LatLng) UnmarshalJSON(data []byte) error { return nil } -// Lead: A lead resource that represents an advertiser contact for a -// `Company`. These -// are usually generated via Google Partner Search (the advertiser -// portal). +// Lead: A lead resource that represents an advertiser contact for a `Company`. +// These +// are usually generated via Google Partner Search (the advertiser portal). type Lead struct { // AdwordsCustomerId: The AdWords Customer ID of the lead. AdwordsCustomerId int64 `json:"adwordsCustomerId,omitempty,string"` - // Comments: Comments lead source gave. Comments string `json:"comments,omitempty"` - // CreateTime: Timestamp of when this lead was created. CreateTime string `json:"createTime,omitempty"` - // Email: Email address of lead source. Email string `json:"email,omitempty"` - // FamilyName: Last name of lead source. FamilyName string `json:"familyName,omitempty"` - // GivenName: First name of lead source. GivenName string `json:"givenName,omitempty"` - - // GpsMotivations: List of reasons for using Google Partner Search and - // creating a lead. + // GpsMotivations: List of reasons for using Google Partner Search and creating + // a lead. // // Possible values: // "GPS_MOTIVATION_UNSPECIFIED" - Unchosen. // "GPSM_HELP_WITH_ADVERTISING" - Advertiser needs help with their // advertising. - // "GPSM_HELP_WITH_WEBSITE" - Advertiser needs help with their - // website. + // "GPSM_HELP_WITH_WEBSITE" - Advertiser needs help with their website. // "GPSM_NO_WEBSITE" - Advertiser does not have a website. GpsMotivations []string `json:"gpsMotivations,omitempty"` - // Id: ID of the lead. Id string `json:"id,omitempty"` - - // LanguageCode: Language code of the lead's language preference, as - // defined by + // LanguageCode: Language code of the lead's language preference, as defined + // by // BCP 47 // (IETF BCP 47, "Tags for Identifying Languages"). LanguageCode string `json:"languageCode,omitempty"` - - // MarketingOptIn: Whether or not the lead signed up for marketing - // emails + // MarketingOptIn: Whether or not the lead signed up for marketing emails MarketingOptIn bool `json:"marketingOptIn,omitempty"` - - // MinMonthlyBudget: The minimum monthly budget lead source is willing - // to spend. + // MinMonthlyBudget: The minimum monthly budget lead source is willing to + // spend. MinMonthlyBudget *Money `json:"minMonthlyBudget,omitempty"` - // PhoneNumber: Phone number of lead source. PhoneNumber string `json:"phoneNumber,omitempty"` - // State: The lead's state in relation to the company. // // Possible values: @@ -1567,43 +1313,33 @@ type Lead struct { // "CLIENT" - Lead has become a client. // "OTHER" - Lead in a state not covered by other options. State string `json:"state,omitempty"` - // Type: Type of lead. // // Possible values: // "LEAD_TYPE_UNSPECIFIED" - Unchosen. // "LT_GPS" - Google Partner Search. Type string `json:"type,omitempty"` - // WebsiteUrl: Website URL of lead source. WebsiteUrl string `json:"websiteUrl,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AdwordsCustomerId") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdwordsCustomerId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdwordsCustomerId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdwordsCustomerId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Lead) MarshalJSON() ([]byte, error) { +func (s Lead) MarshalJSON() ([]byte, error) { type NoMethod Lead - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAnalyticsResponse: Response message for @@ -1613,12 +1349,9 @@ type ListAnalyticsResponse struct { // Sorted in ascending order of // Analytics.event_date. Analytics []*Analytics `json:"analytics,omitempty"` - - // AnalyticsSummary: Aggregated information across the - // response's + // AnalyticsSummary: Aggregated information across the response's // analytics. AnalyticsSummary *AnalyticsSummary `json:"analyticsSummary,omitempty"` - // NextPageToken: A token to retrieve next page of results. // Pass this value in the `ListAnalyticsRequest.page_token` field in // the @@ -1626,35 +1359,27 @@ type ListAnalyticsResponse struct { // ListAnalytics to retrieve the // next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Analytics") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Analytics") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Analytics") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAnalyticsResponse) MarshalJSON() ([]byte, error) { +func (s ListAnalyticsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAnalyticsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListCompaniesResponse: Response message for @@ -1662,7 +1387,6 @@ func (s *ListAnalyticsResponse) MarshalJSON() ([]byte, error) { type ListCompaniesResponse struct { // Companies: The list of companies. Companies []*Company `json:"companies,omitempty"` - // NextPageToken: A token to retrieve next page of results. // Pass this value in the `ListCompaniesRequest.page_token` field in // the @@ -1670,140 +1394,106 @@ type ListCompaniesResponse struct { // ListCompanies to retrieve the // next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Companies") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Companies") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Companies") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCompaniesResponse) MarshalJSON() ([]byte, error) { +func (s ListCompaniesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCompaniesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListLeadsResponse: Response message for ListLeads. type ListLeadsResponse struct { // Leads: The list of leads. Leads []*Lead `json:"leads,omitempty"` - // NextPageToken: A token to retrieve next page of results. - // Pass this value in the `ListLeadsRequest.page_token` field in - // the + // Pass this value in the `ListLeadsRequest.page_token` field in the // subsequent call to // ListLeads to retrieve the // next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // TotalSize: The total count of leads for the given company. TotalSize int64 `json:"totalSize,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Leads") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Leads") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Leads") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLeadsResponse) MarshalJSON() ([]byte, error) { +func (s ListLeadsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListLeadsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListOffersHistoryResponse: Response for ListOfferHistory. type ListOffersHistoryResponse struct { - // CanShowEntireCompany: True if the user has the option to show entire - // company history. + // CanShowEntireCompany: True if the user has the option to show entire company + // history. CanShowEntireCompany bool `json:"canShowEntireCompany,omitempty"` - - // NextPageToken: Supply this token in a ListOffersHistoryRequest to - // retrieve the next page. + // NextPageToken: Supply this token in a ListOffersHistoryRequest to retrieve + // the next page. NextPageToken string `json:"nextPageToken,omitempty"` - // Offers: Historical offers meeting request. Offers []*HistoricalOffer `json:"offers,omitempty"` - // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // ShowingEntireCompany: True if this response is showing entire company // history. ShowingEntireCompany bool `json:"showingEntireCompany,omitempty"` - // TotalResults: Number of results across all pages. TotalResults int64 `json:"totalResults,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "CanShowEntireCompany") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CanShowEntireCompany") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CanShowEntireCompany") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CanShowEntireCompany") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOffersHistoryResponse) MarshalJSON() ([]byte, error) { +func (s ListOffersHistoryResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOffersHistoryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListOffersResponse: Response for ListOffer. type ListOffersResponse struct { // AvailableOffers: Available Offers to be distributed. AvailableOffers []*AvailableOffer `json:"availableOffers,omitempty"` - // NoOfferReason: Reason why no Offers are available. // // Possible values: @@ -1812,36 +1502,27 @@ type ListOffersResponse struct { // "NO_OFFER_REASON_LIMIT_REACHED" - Offer limit has been reached. // "NO_OFFER_REASON_INELIGIBLE" - Ineligible for offers. NoOfferReason string `json:"noOfferReason,omitempty"` - // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AvailableOffers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AvailableOffers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AvailableOffers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOffersResponse) MarshalJSON() ([]byte, error) { +func (s ListOffersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOffersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListUserStatesResponse: Response message for @@ -1849,7 +1530,6 @@ func (s *ListOffersResponse) MarshalJSON() ([]byte, error) { type ListUserStatesResponse struct { // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // UserStates: User's states. // // Possible values: @@ -1859,150 +1539,113 @@ type ListUserStatesResponse struct { // contact a Partner via Google Partner Search. UserStates []string `json:"userStates,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResponseMetadata") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResponseMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ResponseMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListUserStatesResponse) MarshalJSON() ([]byte, error) { +func (s ListUserStatesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListUserStatesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LocalizedCompanyInfo: The localized company information. type LocalizedCompanyInfo struct { // CountryCodes: List of country codes for the localized company info. CountryCodes []string `json:"countryCodes,omitempty"` - // DisplayName: Localized display name. DisplayName string `json:"displayName,omitempty"` - - // LanguageCode: Language code of the localized company info, as defined - // by + // LanguageCode: Language code of the localized company info, as defined by // BCP 47 // (IETF BCP 47, "Tags for Identifying Languages"). LanguageCode string `json:"languageCode,omitempty"` - - // Overview: Localized brief description that the company uses to - // advertise themselves. + // Overview: Localized brief description that the company uses to advertise + // themselves. Overview string `json:"overview,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCodes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CountryCodes") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CountryCodes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LocalizedCompanyInfo) MarshalJSON() ([]byte, error) { +func (s LocalizedCompanyInfo) MarshalJSON() ([]byte, error) { type NoMethod LocalizedCompanyInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Location: A location with address and geographic coordinates. May -// optionally contain a +// Location: A location with address and geographic coordinates. May optionally +// contain a // detailed (multi-field) version of the address. type Location struct { // Address: The single string version of the address. Address string `json:"address,omitempty"` - - // AddressLine: The following address lines represent the most specific - // part of any + // AddressLine: The following address lines represent the most specific part of + // any // address. AddressLine []string `json:"addressLine,omitempty"` - - // AdministrativeArea: Top-level administrative subdivision of this - // country. + // AdministrativeArea: Top-level administrative subdivision of this country. AdministrativeArea string `json:"administrativeArea,omitempty"` - - // DependentLocality: Dependent locality or sublocality. Used for UK - // dependent localities, or + // DependentLocality: Dependent locality or sublocality. Used for UK dependent + // localities, or // neighborhoods or boroughs in other locations. DependentLocality string `json:"dependentLocality,omitempty"` - - // LanguageCode: Language code of the address. Should be in BCP 47 - // format. + // LanguageCode: Language code of the address. Should be in BCP 47 format. LanguageCode string `json:"languageCode,omitempty"` - // LatLng: The latitude and longitude of the location, in degrees. LatLng *LatLng `json:"latLng,omitempty"` - // Locality: Generally refers to the city/town portion of an address. Locality string `json:"locality,omitempty"` - // PostalCode: Values are frequently alphanumeric. PostalCode string `json:"postalCode,omitempty"` - // RegionCode: CLDR (Common Locale Data Repository) region code . RegionCode string `json:"regionCode,omitempty"` - - // SortingCode: Use of this code is very country-specific, but will - // refer to a secondary + // SortingCode: Use of this code is very country-specific, but will refer to a + // secondary // classification code for sorting mail. SortingCode string `json:"sortingCode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { +func (s Location) MarshalJSON() ([]byte, error) { type NoMethod Location - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LogMessageRequest: Request message for // LogClientMessage. type LogMessageRequest struct { - // ClientInfo: Map of client info, such as URL, browser navigator, - // browser platform, etc. + // ClientInfo: Map of client info, such as URL, browser navigator, browser + // platform, etc. ClientInfo map[string]string `json:"clientInfo,omitempty"` - // Details: Details about the client message. Details string `json:"details,omitempty"` - // Level: Message level of client message. // // Possible values: @@ -2012,31 +1655,24 @@ type LogMessageRequest struct { // "ML_WARNING" - Message level for potential problems. // "ML_SEVERE" - Message level for serious failures. Level string `json:"level,omitempty"` - // RequestMetadata: Current request metadata. RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogMessageRequest) MarshalJSON() ([]byte, error) { +func (s LogMessageRequest) MarshalJSON() ([]byte, error) { type NoMethod LogMessageRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LogMessageResponse: Response message for @@ -2045,32 +1681,24 @@ type LogMessageResponse struct { // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResponseMetadata") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResponseMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ResponseMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogMessageResponse) MarshalJSON() ([]byte, error) { +func (s LogMessageResponse) MarshalJSON() ([]byte, error) { type NoMethod LogMessageResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LogUserEventRequest: Request message for @@ -2080,209 +1708,203 @@ type LogUserEventRequest struct { // // Possible values: // "EVENT_ACTION_UNSPECIFIED" - Unchosen. - // "SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM" - Advertiser clicked - // `Find a partner` bottom button. - // "SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP" - Advertiser clicked `Find - // a partner` top button. - // "AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM" - Agency clicked `Join now` - // bottom button. - // "AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP" - Agency clicked `Join now` - // top button. - // "SMB_CANCELED_PARTNER_CONTACT_FORM" - Advertiser canceled partner + // "SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM" - Advertiser clicked `Find a + // partner` bottom button. + // "SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP" - Advertiser clicked `Find a + // partner` top button. + // "AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM" - Agency clicked `Join now` bottom + // button. + // "AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP" - Agency clicked `Join now` top + // button. + // "SMB_CANCELED_PARTNER_CONTACT_FORM" - Advertiser canceled partner contact + // form. + // "SMB_CLICKED_CONTACT_A_PARTNER" - Advertiser started partner contact form. + // "SMB_COMPLETED_PARTNER_CONTACT_FORM" - Advertiser completed partner // contact form. - // "SMB_CLICKED_CONTACT_A_PARTNER" - Advertiser started partner + // "SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM" - Advertiser entered email in // contact form. - // "SMB_COMPLETED_PARTNER_CONTACT_FORM" - Advertiser completed partner + // "SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM" - Advertiser entered name in + // contact form. + // "SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM" - Advertiser entered phone in // contact form. - // "SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM" - Advertiser entered - // email in contact form. - // "SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM" - Advertiser entered - // name in contact form. - // "SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM" - Advertiser entered - // phone in contact form. - // "SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM" - Advertiser failed - // reCaptcha + // "SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM" - Advertiser failed reCaptcha // in contact form. // "PARTNER_VIEWED_BY_SMB" - Company viewed by advertiser. - // "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS" - Advertiser canceled - // partner contact form on Google Partner Search. - // "SMB_CHANGED_A_SEARCH_PARAMETER_TOP" - Advertiser changed a top - // search parameter. + // "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS" - Advertiser canceled partner + // contact form on Google Partner Search. + // "SMB_CHANGED_A_SEARCH_PARAMETER_TOP" - Advertiser changed a top search + // parameter. // "SMB_CLICKED_CONTACT_A_PARTNER_ON_GPS" - Advertiser started partner // contact form on Google Partner Search. - // "SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM" - Advertiser clicked - // `Show more partners` bottom button. - // "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS" - Advertiser completed - // partner contact form on Google Partner Search. - // "SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA" - Advertiser saw - // no partners available with search criteria. - // "SMB_PERFORMED_SEARCH_ON_GPS" - Advertiser performed search on - // Google Partner Search. - // "SMB_VIEWED_A_PARTNER_ON_GPS" - Advertiser viewed a partner on - // Google Partner Search. - // "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" - Advertiser - // canceled partner contact form on profile page. - // "SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE" - Advertiser - // started partner contact form on profile page. + // "SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM" - Advertiser clicked `Show + // more partners` bottom button. + // "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS" - Advertiser completed partner + // contact form on Google Partner Search. + // "SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA" - Advertiser saw no + // partners available with search criteria. + // "SMB_PERFORMED_SEARCH_ON_GPS" - Advertiser performed search on Google + // Partner Search. + // "SMB_VIEWED_A_PARTNER_ON_GPS" - Advertiser viewed a partner on Google + // Partner Search. + // "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" - Advertiser canceled + // partner contact form on profile page. + // "SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE" - Advertiser started + // partner contact form on profile page. // "SMB_CLICKED_PARTNER_WEBSITE" - Advertiser clicked partner website. // "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" - Advertiser // completed contact form on profile page. - // "SMB_VIEWED_A_PARTNER_PROFILE" - Advertiser viewed a partner - // profile. - // "AGENCY_CLICKED_ACCEPT_TOS_BUTTON" - Agency clicked `accept Terms - // Of Service` button. - // "AGENCY_CHANGED_TOS_COUNTRY" - Agency changed Terms Of Service - // country. - // "AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL" - Agency added address + // "SMB_VIEWED_A_PARTNER_PROFILE" - Advertiser viewed a partner profile. + // "AGENCY_CLICKED_ACCEPT_TOS_BUTTON" - Agency clicked `accept Terms Of + // Service` button. + // "AGENCY_CHANGED_TOS_COUNTRY" - Agency changed Terms Of Service country. + // "AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL" - Agency added address in + // profile portal. + // "AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL" - Agency added phone + // number in profile portal. + // "AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION" - Agency changed primary + // account association. + // "AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION" - Agency changed primary + // country association. + // "AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL" - Agency clicked + // `affiliate` button in profile portal. + // "AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL" - Agency clicked + // `give edit access` in profile portal. + // "AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL" - Agency clicked `log out` // in profile portal. - // "AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL" - Agency added - // phone number in profile portal. - // "AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION" - Agency changed - // primary account association. - // "AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION" - Agency changed - // primary country association. - // "AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL" - Agency - // clicked `affiliate` button in profile portal. - // "AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL" - Agency - // clicked `give edit access` in profile portal. - // "AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL" - Agency clicked `log - // out` in profile portal. - // "AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL" - Agency clicked - // profile portal left nav. - // "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE" - - // Agency clicked `save and continue` at bottom of complete profile. + // "AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL" - Agency clicked profile + // portal left nav. + // "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE" - Agency + // clicked `save and continue` at bottom of complete profile. // "AGENCY_CLICKED_UNAFFILIATE_IN_MY_PROFILE_PORTAL" - Agency clicked // `unaffiliate` in profile portal. - // "AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL" - Agency - // filled out company affiliation in profile portal. + // "AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL" - Agency filled + // out company affiliation in profile portal. // "AGENCY_SUCCESSFULLY_CONNECTED_WITH_COMPANY_IN_MY_PROFILE" - Agency // successfully connected with company in profile portal. - // "AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL" - Agency clicked - // create MCC in profile portal. - // "AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" - Agency - // did not have an MCC associated on profile portal. - // "AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" - Agency had an - // MCC associated on profile portal. + // "AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL" - Agency clicked create + // MCC in profile portal. + // "AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" - Agency did not + // have an MCC associated on profile portal. + // "AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" - Agency had an MCC + // associated on profile portal. // "AGENCY_ADDED_JOB_FUNCTION_IN_MY_PROFILE_PORTAL" - Agency added job // function in profile portal. - // "AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN" - Agency looked at job - // function drop-down. + // "AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN" - Agency looked at job function + // drop-down. // "AGENCY_SELECTED_ACCOUNT_MANAGER_AS_JOB_FUNCTION" - Agency selected // `account manage` as job function. // "AGENCY_SELECTED_ACCOUNT_PLANNER_AS_JOB_FUNCTION" - Agency selected // `account planner` as job function. - // "AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION" - Agency selected - // `Analytics` as job function. - // "AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION" - Agency selected - // `creative` as job function. - // "AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION" - Agency selected - // `media buyer` as job function. - // "AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION" - Agency selected - // `media planner` as job function. - // "AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION" - Agency selected `other` + // "AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION" - Agency selected `Analytics` // as job function. + // "AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION" - Agency selected `creative` as + // job function. + // "AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION" - Agency selected `media + // buyer` as job function. + // "AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION" - Agency selected `media + // planner` as job function. + // "AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION" - Agency selected `other` as job + // function. // "AGENCY_SELECTED_PRODUCTION_AS_JOB_FUNCTION" - Agency selected // `production` as job function. - // "AGENCY_SELECTED_SEO_AS_JOB_FUNCTION" - Agency selected `SEO` as - // job function. - // "AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION" - Agency selected - // `sales rep` as job function. - // "AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION" - Agency - // selected `search specialist` as job function. - // "AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL" - Agency added - // channels in profile portal. - // "AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN" - Agency looked at `add - // channel` drop-down. - // "AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL" - Agency selected - // `cross channel` from add channel drop-down. - // "AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL" - Agency selected - // `display` from add channel drop-down. - // "AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL" - Agency selected - // `mobile` from add channel drop-down. - // "AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL" - Agency selected - // `search` from add channel drop-down. - // "AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL" - Agency selected - // `social` from add channel drop-down. - // "AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL" - Agency selected `tools` + // "AGENCY_SELECTED_SEO_AS_JOB_FUNCTION" - Agency selected `SEO` as job + // function. + // "AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION" - Agency selected `sales rep` + // as job function. + // "AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION" - Agency selected + // `search specialist` as job function. + // "AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL" - Agency added channels in + // profile portal. + // "AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN" - Agency looked at `add channel` + // drop-down. + // "AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL" - Agency selected `cross + // channel` from add channel drop-down. + // "AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL" - Agency selected `display` // from add channel drop-down. - // "AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL" - Agency selected - // `YouTube` from add channel drop-down. - // "AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL" - Agency added - // industries in profile portal. + // "AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL" - Agency selected `mobile` from + // add channel drop-down. + // "AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL" - Agency selected `search` from + // add channel drop-down. + // "AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL" - Agency selected `social` from + // add channel drop-down. + // "AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL" - Agency selected `tools` from + // add channel drop-down. + // "AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL" - Agency selected `YouTube` + // from add channel drop-down. + // "AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL" - Agency added industries + // in profile portal. // "AGENCY_CHANGED_ADD_INDUSTRIES_DROP_DOWN" - Agency changed `add // industries` drop-down. - // "AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL" - Agency added markets - // in profile portal. - // "AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN" - Agency changed `add - // markets` drop-down. + // "AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL" - Agency added markets in + // profile portal. + // "AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN" - Agency changed `add markets` + // drop-down. // "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_MYPROFILE" - Agency checked // `recieve mail promotions` in profile portal. - // "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP" - Agency checked - // `recieve mail promotions` in sign-up. - // "AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" - Agency - // selected `opt-in beta tests and market research`. - // "AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL" - Agency - // selected `opt-in beta tests` in profile portal. - // "AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL" - Agency - // selected `opt-in news` in profile portal. - // "AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" - Agency - // selected `opt-in news invitations and promotions`. - // "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL" - - // Agency selected `opt-in performance SUG` in profile portal. - // "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" - Agency selected - // `opt-in performance suggestions`. - // "AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS" - Agency - // selected `opt-in select all email notifications`. + // "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP" - Agency checked `recieve + // mail promotions` in sign-up. + // "AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" - Agency selected + // `opt-in beta tests and market research`. + // "AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL" - Agency selected + // `opt-in beta tests` in profile portal. + // "AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL" - Agency selected + // `opt-in news` in profile portal. + // "AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" - Agency selected + // `opt-in news invitations and promotions`. + // "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL" - Agency + // selected `opt-in performance SUG` in profile portal. + // "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" - Agency selected `opt-in + // performance suggestions`. + // "AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS" - Agency selected + // `opt-in select all email notifications`. // "AGENCY_SELECTED_SELECT_ALL_OPT_INS_IN_MY_PROFILE_PORTAL" - Agency // selected `select all opt-ins` in profile portal. - // "AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY" - Agency - // clicked back button on `connect with company`. - // "AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY" - - // Agency clicked continue to overview on `connect with company`. + // "AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY" - Agency clicked back + // button on `connect with company`. + // "AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY" - Agency + // clicked continue to overview on `connect with company`. // "AGECNY_CLICKED_CREATE_MCC_CONNECT_WITH_COMPANY_NOT_FOUND" - Agency // clicked `create MCC connect with company not found`. - // "AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND" - - // Agency clicked `give edit access connect with company not found`. - // "AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND" - Agency - // clicked `log out connect with company not found`. + // "AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND" - Agency + // clicked `give edit access connect with company not found`. + // "AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND" - Agency clicked + // `log out connect with company not found`. // "AGENCY_CLICKED_SKIP_FOR_NOW_ON_CONNECT_WITH_COMPANY_PAGE" - Agency // clicked `skip for now on connect with company page`. - // "AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY" - - // Agency closed connection to company. - // "AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY" - Agency completed - // field connect with company. - // "AGECNY_FOUND_COMPANY_TO_CONNECT_WITH" - Agency found company to - // connect with. + // "AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY" - Agency + // closed connection to company. + // "AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY" - Agency completed field + // connect with company. + // "AGECNY_FOUND_COMPANY_TO_CONNECT_WITH" - Agency found company to connect + // with. // "AGENCY_SUCCESSFULLY_CREATED_COMPANY" - Agency successfully created // company. - // "AGENCY_ADDED_NEW_COMPANY_LOCATION" - Agency added new company - // location. - // "AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS" - - // Agency clicked community `join now link` in portal notifications. - // "AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS" - - // Agency clicked `connect to company` link in portal notifications. - // "AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" - - // Agency cliecked `get certified` link in portal notifications. - // - // "AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" - // - Agency clicked `get VideoAds certified` link in portal - // notifications. - // "AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS" - Agency - // clicked `link to MCC` link in portal notifications. - // "AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL" - Agency clicked - // `insight content` in portal. - // "AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL" - Agency - // clicked `insights view now pitch decks` in portal. - // "AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL" - Agency clicked - // `insights` left nav in portal. - // "AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT" - Agency clicked `insights - // upload content`. - // "AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED" - Agency clicked - // `insights viewed deprecated`. - // "AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL" - Agency clicked - // `community` left nav in portal. - // "AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL" - Agency - // clicked `join community` button in community portal. + // "AGENCY_ADDED_NEW_COMPANY_LOCATION" - Agency added new company location. + // "AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS" - Agency + // clicked community `join now link` in portal notifications. + // "AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS" - Agency + // clicked `connect to company` link in portal notifications. + // "AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" - Agency + // cliecked `get certified` link in portal notifications. + // "AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" - + // Agency clicked `get VideoAds certified` link in portal notifications. + // "AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS" - Agency clicked + // `link to MCC` link in portal notifications. + // "AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL" - Agency clicked `insight + // content` in portal. + // "AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL" - Agency clicked + // `insights view now pitch decks` in portal. + // "AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL" - Agency clicked `insights` + // left nav in portal. + // "AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT" - Agency clicked `insights upload + // content`. + // "AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED" - Agency clicked `insights + // viewed deprecated`. + // "AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL" - Agency clicked `community` + // left nav in portal. + // "AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL" - Agency clicked + // `join community` button in community portal. // "AGENCY_CLICKED_CERTIFICATIONS_LEFT_NAV_IN_PORTAL" - Agency clicked // `certifications` left nav in portal. // "AGENCY_CLICKED_CERTIFICATIONS_PRODUCT_LEFT_NAV_IN_PORTAL" - Agency @@ -2291,137 +1913,122 @@ type LogUserEventRequest struct { // `partner status` left nav in portal. // "AGENCY_CLICKED_PARTNER_STATUS_PRODUCT_LEFT_NAV_IN_PORTAL" - Agency // clicked `partner status product` left nav in portal. - // "AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL" - Agency clicked - // `offers` left nav in portal. - // "AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE" - Agency clicked `send` - // button on offers page. - // "AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE" - Agency clicked - // `exam details` on certifications AdWords page. - // "AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE" - Agency clicked - // `see exams` certifications main page. - // "AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE" - Agency clicked `take - // exam` on certifications exam page. - // "AGENCY_OPENED_LAST_ADMIN_DIALOG" - Agency opened `last admin` - // dialog. - // "AGENCY_OPENED_DIALOG_WITH_NO_USERS" - Agency opened dialog with no - // users. + // "AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL" - Agency clicked `offers` left + // nav in portal. + // "AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE" - Agency clicked `send` button + // on offers page. + // "AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE" - Agency clicked `exam + // details` on certifications AdWords page. + // "AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE" - Agency clicked `see + // exams` certifications main page. + // "AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE" - Agency clicked `take exam` + // on certifications exam page. + // "AGENCY_OPENED_LAST_ADMIN_DIALOG" - Agency opened `last admin` dialog. + // "AGENCY_OPENED_DIALOG_WITH_NO_USERS" - Agency opened dialog with no users. // "AGENCY_PROMOTED_USER_TO_ADMIN" - Agency promoted user to admin. // "AGENCY_UNAFFILIATED" - Agency unaffiliated. // "AGENCY_CHANGED_ROLES" - Agency changed roles. - // "SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE" - Advertiser clicked - // `company name` link to profile. - // "SMB_VIEWED_ADWORDS_CERTIFICATE" - Advertiser viewed AdWords + // "SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE" - Advertiser clicked `company + // name` link to profile. + // "SMB_VIEWED_ADWORDS_CERTIFICATE" - Advertiser viewed AdWords certificate. + // "SMB_VIEWED_ADWORDS_SEARCH_CERTIFICATE" - Advertiser viewed AdWords Search // certificate. - // "SMB_VIEWED_ADWORDS_SEARCH_CERTIFICATE" - Advertiser viewed AdWords - // Search certificate. - // "SMB_VIEWED_ADWORDS_DISPLAY_CERTIFICATE" - Advertiser viewed - // AdWords Display certificate. - // "SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON" - Advertiser clicked - // AdWords certificate help icon. + // "SMB_VIEWED_ADWORDS_DISPLAY_CERTIFICATE" - Advertiser viewed AdWords + // Display certificate. + // "SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON" - Advertiser clicked AdWords + // certificate help icon. // "SMB_VIEWED_ANALYTICS_CERTIFICATE" - Advertiser viewed Analytics // certificate. - // "SMB_VIEWED_DOUBLECLICK_CERTIFICATE" - Advertiser viewed - // DoubleClick certificate. - // "SMB_VIEWED_MOBILE_SITES_CERTIFICATE" - Advertiser viewed Mobile - // Sites certificate. + // "SMB_VIEWED_DOUBLECLICK_CERTIFICATE" - Advertiser viewed DoubleClick + // certificate. + // "SMB_VIEWED_MOBILE_SITES_CERTIFICATE" - Advertiser viewed Mobile Sites + // certificate. // "SMB_VIEWED_VIDEO_ADS_CERTIFICATE" - Advertiser viewed VideoAds // certificate. // "SMB_VIEWED_SHOPPING_CERTIFICATE" - Advertiser clicked Shopping // certificate help icon. // "SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON" - Advertiser clicked // VideoAds certificate help icon. - // "SMB_VIEWED_DIGITAL_SALES_CERTIFICATE" - Advertiser viewed Digital - // Sales certificate. + // "SMB_VIEWED_DIGITAL_SALES_CERTIFICATE" - Advertiser viewed Digital Sales + // certificate. // "CLICKED_HELP_AT_BOTTOM" - Clicked `help` at bottom. // "CLICKED_HELP_AT_TOP" - Clicked `help` at top. // "CLIENT_ERROR" - Client error occurred. - // "AGENCY_CLICKED_LEFT_NAV_STORIES" - Agency clicked left nav - // `stories`. + // "AGENCY_CLICKED_LEFT_NAV_STORIES" - Agency clicked left nav `stories`. // "CLICKED" - Click occured. - // "SMB_VIEWED_MOBILE_CERTIFICATE" - Advertiser clicked Mobile - // certificate help icon. + // "SMB_VIEWED_MOBILE_CERTIFICATE" - Advertiser clicked Mobile certificate + // help icon. // "AGENCY_FAILED_COMPANY_VERIFICATION" - Agency failed the company // verification. - // "VISITED_LANDING" - User visited the landing portion of Google + // "VISITED_LANDING" - User visited the landing portion of Google Partners. + // "VISITED_GPS" - User visited the Google Partner Search portion of Google + // Partners. + // "VISITED_AGENCY_PORTAL" - User visited the agency portal portion of Google // Partners. - // "VISITED_GPS" - User visited the Google Partner Search portion of - // Google Partners. - // "VISITED_AGENCY_PORTAL" - User visited the agency portal portion of - // Google Partners. // "CANCELLED_INDIVIDUAL_SIGN_UP" - User cancelled signing up. - // "CANCELLED_COMPANY_SIGN_UP" - User cancelled signing up their - // company. - // "AGENCY_CLICKED_SIGN_IN_BUTTON_TOP" - Agency clicked `Sign in` top - // button. - // "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_INCOMPLETE_PROFILE" - - // Agency clicked `save and continue` at bottom of incomplete profile. - // "AGENCY_UNSELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" - Agency - // unselected `opt-in news invitations and promotions`. - // "AGENCY_UNSELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" - Agency - // unselected `opt-in beta tests and market research`. - // "AGENCY_UNSELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" - Agency - // unselected `opt-in performance suggestions`. + // "CANCELLED_COMPANY_SIGN_UP" - User cancelled signing up their company. + // "AGENCY_CLICKED_SIGN_IN_BUTTON_TOP" - Agency clicked `Sign in` top button. + // "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_INCOMPLETE_PROFILE" - Agency + // clicked `save and continue` at bottom of incomplete profile. + // "AGENCY_UNSELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" - Agency unselected + // `opt-in news invitations and promotions`. + // "AGENCY_UNSELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" - Agency unselected + // `opt-in beta tests and market research`. + // "AGENCY_UNSELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" - Agency unselected + // `opt-in performance suggestions`. // "AGENCY_SELECTED_OPT_OUT_UNSELECT_ALL_EMAIL_NOTIFICATIONS" - Agency // selected `opt-out unselect all email notifications`. - // "AGENCY_LINKED_INDIVIDUAL_MCC" - Agency linked their individual - // MCC. - // "AGENCY_SUGGESTED_TO_USER" - Agency was suggested to user for - // affiliation. + // "AGENCY_LINKED_INDIVIDUAL_MCC" - Agency linked their individual MCC. + // "AGENCY_SUGGESTED_TO_USER" - Agency was suggested to user for affiliation. // "AGENCY_IGNORED_SUGGESTED_AGENCIES_AND_SEARCHED" - Agency ignored // suggested agencies and begin searching. - // "AGENCY_PICKED_SUGGESTED_AGENCY" - Agency picked a suggested - // agency. + // "AGENCY_PICKED_SUGGESTED_AGENCY" - Agency picked a suggested agency. // "AGENCY_SEARCHED_FOR_AGENCIES" - Agency searched for agencies. // "AGENCY_PICKED_SEARCHED_AGENCY" - Agency picked a searched agency. - // "AGENCY_DISMISSED_AFFILIATION_WIDGET" - Agency dismissed - // affiliation widget. + // "AGENCY_DISMISSED_AFFILIATION_WIDGET" - Agency dismissed affiliation + // widget. // "AGENCY_CLICKED_INSIGHTS_DOWNLOAD_CONTENT" - Agency clicked on the // download link for downloading content. - // "AGENCY_PROGRESS_INSIGHTS_VIEW_CONTENT" - Agency user is maklingg - // progress viewing a content item. - // "AGENCY_CLICKED_CANCEL_ACCEPT_TOS_BUTTON" - Agency clicked `cancel - // Terms Of Service` button. - // "SMB_ENTERED_WEBSITE_IN_CONTACT_PARTNER_FORM" - Advertiser entered - // website in contact form. - // "AGENCY_SELECTED_OPT_IN_AFA_MIGRATION" - Agency opted in for - // migrating their exams to Academy for Ads. - // "AGENCY_SELECTED_OPT_OUT_AFA_MIGRATION" - Agency opted out for - // migrating their exams to Academy for Ads. + // "AGENCY_PROGRESS_INSIGHTS_VIEW_CONTENT" - Agency user is maklingg progress + // viewing a content item. + // "AGENCY_CLICKED_CANCEL_ACCEPT_TOS_BUTTON" - Agency clicked `cancel Terms + // Of Service` button. + // "SMB_ENTERED_WEBSITE_IN_CONTACT_PARTNER_FORM" - Advertiser entered website + // in contact form. + // "AGENCY_SELECTED_OPT_IN_AFA_MIGRATION" - Agency opted in for migrating + // their exams to Academy for Ads. + // "AGENCY_SELECTED_OPT_OUT_AFA_MIGRATION" - Agency opted out for migrating + // their exams to Academy for Ads. EventAction string `json:"eventAction,omitempty"` - // EventCategory: The category the action belongs to. // // Possible values: // "EVENT_CATEGORY_UNSPECIFIED" - Unchosen. // "GOOGLE_PARTNER_SEARCH" - Google Partner Search category. - // "GOOGLE_PARTNER_SIGNUP_FLOW" - Google Partner sign-up flow - // category. + // "GOOGLE_PARTNER_SIGNUP_FLOW" - Google Partner sign-up flow category. // "GOOGLE_PARTNER_PORTAL" - Google Partner portal category. - // "GOOGLE_PARTNER_PORTAL_MY_PROFILE" - Google Partner portal - // my-profile category. + // "GOOGLE_PARTNER_PORTAL_MY_PROFILE" - Google Partner portal my-profile + // category. // "GOOGLE_PARTNER_PORTAL_CERTIFICATIONS" - Google Partner portal // certifications category. // "GOOGLE_PARTNER_PORTAL_COMMUNITY" - Google Partner portal community // category. // "GOOGLE_PARTNER_PORTAL_INSIGHTS" - Google Partner portal insights // category. - // "GOOGLE_PARTNER_PORTAL_CLIENTS" - Google Partner portal clients - // category. - // "GOOGLE_PARTNER_PUBLIC_USER_PROFILE" - Google Partner portal public - // user profile category. + // "GOOGLE_PARTNER_PORTAL_CLIENTS" - Google Partner portal clients category. + // "GOOGLE_PARTNER_PUBLIC_USER_PROFILE" - Google Partner portal public user + // profile category. // "GOOGLE_PARTNER_PANEL" - Google Partner panel category. - // "GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG" - Google Partner portal - // last admin dialog category. + // "GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG" - Google Partner portal last + // admin dialog category. // "GOOGLE_PARTNER_CLIENT" - Google Partner client category. - // "GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE" - Google Partner portal - // company profile category. + // "GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE" - Google Partner portal company + // profile category. // "EXTERNAL_LINKS" - External links category. // "GOOGLE_PARTNER_LANDING" - Google Partner landing category. EventCategory string `json:"eventCategory,omitempty"` - // EventDatas: List of event data for the event. EventDatas []*EventData `json:"eventDatas,omitempty"` - // EventScope: The scope of the event. // // Possible values: @@ -2430,37 +2037,28 @@ type LogUserEventRequest struct { // "SESSION" - Based on session. // "PAGE" - Based on page visit. EventScope string `json:"eventScope,omitempty"` - // Lead: Advertiser lead information. Lead *Lead `json:"lead,omitempty"` - // RequestMetadata: Current request metadata. RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"` - // Url: The URL where the event occurred. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventAction") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventAction") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventAction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogUserEventRequest) MarshalJSON() ([]byte, error) { +func (s LogUserEventRequest) MarshalJSON() ([]byte, error) { type NoMethod LogUserEventRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LogUserEventResponse: Response message for @@ -2469,99 +2067,74 @@ type LogUserEventResponse struct { // ResponseMetadata: Current response metadata. ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResponseMetadata") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResponseMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ResponseMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogUserEventResponse) MarshalJSON() ([]byte, error) { +func (s LogUserEventResponse) MarshalJSON() ([]byte, error) { type NoMethod LogUserEventResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Money: Represents an amount of money with its currency type. type Money struct { // CurrencyCode: The 3-letter currency code defined in ISO 4217. CurrencyCode string `json:"currencyCode,omitempty"` - // Nanos: Number of nano (10^-9) units of the amount. // The value must be between -999,999,999 and +999,999,999 inclusive. // If `units` is positive, `nanos` must be positive or zero. // If `units` is zero, `nanos` can be positive, zero, or negative. // If `units` is negative, `nanos` must be negative or zero. - // For example $-1.75 is represented as `units`=-1 and - // `nanos`=-750,000,000. + // For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. Nanos int64 `json:"nanos,omitempty"` - // Units: The whole units of the amount. - // For example if `currencyCode` is "USD", then 1 unit is one US - // dollar. + // For example if `currencyCode` is "USD", then 1 unit is one US dollar. Units int64 `json:"units,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CurrencyCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CurrencyCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CurrencyCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Money) MarshalJSON() ([]byte, error) { +func (s Money) MarshalJSON() ([]byte, error) { type NoMethod Money - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OfferCustomer: Customers qualified for an offer. type OfferCustomer struct { // AdwordsUrl: URL to the customer's AdWords page. AdwordsUrl string `json:"adwordsUrl,omitempty"` - // CountryCode: Country code of the customer. CountryCode string `json:"countryCode,omitempty"` - // CreationTime: Time the customer was created. CreationTime string `json:"creationTime,omitempty"` - // EligibilityDaysLeft: Days the customer is still eligible. EligibilityDaysLeft int64 `json:"eligibilityDaysLeft,omitempty"` - // ExternalCid: External CID for the customer. ExternalCid int64 `json:"externalCid,omitempty,string"` - // GetYAmount: Formatted Get Y amount with currency code. GetYAmount string `json:"getYAmount,omitempty"` - // Name: Name of the customer. Name string `json:"name,omitempty"` - // OfferType: Type of the offer // // Possible values: @@ -2570,123 +2143,93 @@ type OfferCustomer struct { // "OFFER_TYPE_VIDEO" - Youtube video. // "OFFER_TYPE_SPEND_MATCH" - Spend Match up to Y. OfferType string `json:"offerType,omitempty"` - // SpendXAmount: Formatted Spend X amount with currency code. SpendXAmount string `json:"spendXAmount,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdwordsUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdwordsUrl") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdwordsUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OfferCustomer) MarshalJSON() ([]byte, error) { +func (s OfferCustomer) MarshalJSON() ([]byte, error) { type NoMethod OfferCustomer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OptIns: A set of opt-ins for a user. type OptIns struct { - // MarketComm: An opt-in about receiving email from Partners marketing - // teams. Includes - // member-only events and special promotional offers for Google - // products. + // MarketComm: An opt-in about receiving email from Partners marketing teams. + // Includes + // member-only events and special promotional offers for Google products. MarketComm bool `json:"marketComm,omitempty"` - - // PerformanceSuggestions: An opt-in about receiving email with - // customized AdWords campaign management + // PerformanceSuggestions: An opt-in about receiving email with customized + // AdWords campaign management // tips. PerformanceSuggestions bool `json:"performanceSuggestions,omitempty"` - - // PhoneContact: An opt-in to allow recieivng phone calls about their - // Partners account. + // PhoneContact: An opt-in to allow recieivng phone calls about their Partners + // account. PhoneContact bool `json:"phoneContact,omitempty"` - - // PhysicalMail: An opt-in to receive special promotional gifts and - // material in the mail. + // PhysicalMail: An opt-in to receive special promotional gifts and material in + // the mail. PhysicalMail bool `json:"physicalMail,omitempty"` - - // SpecialOffers: An opt-in about receiving email regarding new features - // and products. + // SpecialOffers: An opt-in about receiving email regarding new features and + // products. SpecialOffers bool `json:"specialOffers,omitempty"` - // ForceSendFields is a list of field names (e.g. "MarketComm") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MarketComm") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MarketComm") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OptIns) MarshalJSON() ([]byte, error) { +func (s OptIns) MarshalJSON() ([]byte, error) { type NoMethod OptIns - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PublicProfile: Basic information from a public profile. type PublicProfile struct { - // DisplayImageUrl: The URL to the main display image of the public - // profile. Being deprecated. + // DisplayImageUrl: The URL to the main display image of the public profile. + // Being deprecated. DisplayImageUrl string `json:"displayImageUrl,omitempty"` - // DisplayName: The display name of the public profile. DisplayName string `json:"displayName,omitempty"` - - // Id: The ID which can be used to retrieve more details about the - // public profile. - Id string `json:"id,omitempty"` - - // ProfileImage: The URL to the main profile image of the public + // Id: The ID which can be used to retrieve more details about the public // profile. + Id string `json:"id,omitempty"` + // ProfileImage: The URL to the main profile image of the public profile. ProfileImage string `json:"profileImage,omitempty"` - // Url: The URL of the public profile. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayImageUrl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayImageUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DisplayImageUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PublicProfile) MarshalJSON() ([]byte, error) { +func (s PublicProfile) MarshalJSON() ([]byte, error) { type NoMethod PublicProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Rank: Information related to ranking of results. @@ -2697,31 +2240,24 @@ type Rank struct { // "RANK_TYPE_UNSPECIFIED" - Unchosen. // "RT_FINAL_SCORE" - Total final score. Type string `json:"type,omitempty"` - // Value: The numerical value of the rank. Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Rank) MarshalJSON() ([]byte, error) { +func (s Rank) MarshalJSON() ([]byte, error) { type NoMethod Rank - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Rank) UnmarshalJSON(data []byte) error { @@ -2739,106 +2275,82 @@ func (s *Rank) UnmarshalJSON(data []byte) error { } // RecaptchaChallenge: reCaptcha challenge -// info. +// href="https://www.google.com/recaptcha/">reCaptcha challenge info. type RecaptchaChallenge struct { // Id: The ID of the reCaptcha challenge. Id string `json:"id,omitempty"` - // Response: The response to the reCaptcha challenge. Response string `json:"response,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RecaptchaChallenge) MarshalJSON() ([]byte, error) { +func (s RecaptchaChallenge) MarshalJSON() ([]byte, error) { type NoMethod RecaptchaChallenge - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RequestMetadata: Common data that is in each API request. type RequestMetadata struct { // ExperimentIds: Experiment IDs the current request belongs to. ExperimentIds []string `json:"experimentIds,omitempty"` - // Locale: Locale to use for the current request. Locale string `json:"locale,omitempty"` - // PartnersSessionId: Google Partners session ID. PartnersSessionId string `json:"partnersSessionId,omitempty"` - // TrafficSource: Source of traffic for the current request. TrafficSource *TrafficSource `json:"trafficSource,omitempty"` - - // UserOverrides: Values to use instead of the user's respective - // defaults for the current + // UserOverrides: Values to use instead of the user's respective defaults for + // the current // request. These are only honored by whitelisted products. UserOverrides *UserOverrides `json:"userOverrides,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExperimentIds") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExperimentIds") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExperimentIds") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RequestMetadata) MarshalJSON() ([]byte, error) { +func (s RequestMetadata) MarshalJSON() ([]byte, error) { type NoMethod RequestMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ResponseMetadata: Common data that is in each API response. type ResponseMetadata struct { // DebugInfo: Debug information about this request. DebugInfo *DebugInfo `json:"debugInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "DebugInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DebugInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DebugInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResponseMetadata) MarshalJSON() ([]byte, error) { +func (s ResponseMetadata) MarshalJSON() ([]byte, error) { type NoMethod ResponseMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SpecializationStatus: Agency specialization status @@ -2847,17 +2359,12 @@ type SpecializationStatus struct { // // Possible values: // "BADGE_SPECIALIZATION_UNKNOWN" - Unknown specialization - // "BADGE_SPECIALIZATION_ADWORDS_SEARCH" - AdWords Search - // specialization - // "BADGE_SPECIALIZATION_ADWORDS_DISPLAY" - AdWords Display - // specialization - // "BADGE_SPECIALIZATION_ADWORDS_MOBILE" - AdWords Mobile - // specialization + // "BADGE_SPECIALIZATION_ADWORDS_SEARCH" - AdWords Search specialization + // "BADGE_SPECIALIZATION_ADWORDS_DISPLAY" - AdWords Display specialization + // "BADGE_SPECIALIZATION_ADWORDS_MOBILE" - AdWords Mobile specialization // "BADGE_SPECIALIZATION_ADWORDS_VIDEO" - AdWords Video specialization - // "BADGE_SPECIALIZATION_ADWORDS_SHOPPING" - AdWords Shopping - // specialization + // "BADGE_SPECIALIZATION_ADWORDS_SHOPPING" - AdWords Shopping specialization BadgeSpecialization string `json:"badgeSpecialization,omitempty"` - // BadgeSpecializationState: State of agency specialization. // // Possible values: @@ -2866,284 +2373,215 @@ type SpecializationStatus struct { // "BADGE_SPECIALIZATION_STATE_NOT_PASSED" - Specialization not passed // "BADGE_SPECIALIZATION_STATE_IN_GRACE" - Specialization in grace BadgeSpecializationState string `json:"badgeSpecializationState,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BadgeSpecialization") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BadgeSpecialization") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BadgeSpecialization") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BadgeSpecialization") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpecializationStatus) MarshalJSON() ([]byte, error) { +func (s SpecializationStatus) MarshalJSON() ([]byte, error) { type NoMethod SpecializationStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TrafficSource: Source of traffic for the current request. type TrafficSource struct { - // TrafficSourceId: Identifier to indicate where the traffic comes - // from. + // TrafficSourceId: Identifier to indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. TrafficSourceId string `json:"trafficSourceId,omitempty"` - - // TrafficSubId: Second level identifier to indicate where the traffic - // comes from. + // TrafficSubId: Second level identifier to indicate where the traffic comes + // from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. TrafficSubId string `json:"trafficSubId,omitempty"` - // ForceSendFields is a list of field names (e.g. "TrafficSourceId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TrafficSourceId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TrafficSourceId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TrafficSource) MarshalJSON() ([]byte, error) { +func (s TrafficSource) MarshalJSON() ([]byte, error) { type NoMethod TrafficSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // User: A resource representing a user of the Partners platform. type User struct { - // AfaInfoShared: Whether or not the user has opted to share their - // Academy for Ads info with + // AfaInfoShared: Whether or not the user has opted to share their Academy for + // Ads info with // Google Partners. AfaInfoShared bool `json:"afaInfoShared,omitempty"` - // AvailableAdwordsManagerAccounts: This is the list of AdWords Manager // Accounts the user has edit access to. // If the user has edit access to multiple accounts, the user can choose // the - // preferred account and we use this when a personal account is needed. - // Can + // preferred account and we use this when a personal account is needed. Can // be empty meaning the user has access to no accounts. // @OutputOnly AvailableAdwordsManagerAccounts []*AdWordsManagerAccountInfo `json:"availableAdwordsManagerAccounts,omitempty"` - // CertificationStatus: The list of achieved certifications. These are // calculated based on exam // results and other requirements. // @OutputOnly CertificationStatus []*Certification `json:"certificationStatus,omitempty"` - // Company: The company that the user is associated with. // If not present, the user is not associated with any company. Company *CompanyRelation `json:"company,omitempty"` - // CompanyVerificationEmail: The email address used by the user used for // company verification. // @OutputOnly CompanyVerificationEmail string `json:"companyVerificationEmail,omitempty"` - - // ExamStatus: The list of exams the user ever taken. For each type of - // exam, only one + // ExamStatus: The list of exams the user ever taken. For each type of exam, + // only one // entry is listed. ExamStatus []*ExamStatus `json:"examStatus,omitempty"` - // Id: The ID of the user. Id string `json:"id,omitempty"` - // InternalId: The internal user ID. // Only available for a whitelisted set of api clients. InternalId string `json:"internalId,omitempty"` - - // LastAccessTime: The most recent time the user interacted with the - // Partners site. + // LastAccessTime: The most recent time the user interacted with the Partners + // site. // @OutputOnly LastAccessTime string `json:"lastAccessTime,omitempty"` - - // PrimaryEmails: The list of emails the user has access to/can select - // as primary. + // PrimaryEmails: The list of emails the user has access to/can select as + // primary. // @OutputOnly PrimaryEmails []string `json:"primaryEmails,omitempty"` - // Profile: The profile information of a Partners user, contains all the // directly // editable user information. Profile *UserProfile `json:"profile,omitempty"` - - // PublicProfile: Information about a user's external public profile - // outside Google Partners. + // PublicProfile: Information about a user's external public profile outside + // Google Partners. PublicProfile *PublicProfile `json:"publicProfile,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AfaInfoShared") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AfaInfoShared") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AfaInfoShared") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *User) MarshalJSON() ([]byte, error) { +func (s User) MarshalJSON() ([]byte, error) { type NoMethod User - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UserOverrides: Values to use instead of the user's respective -// defaults. These are only +// UserOverrides: Values to use instead of the user's respective defaults. +// These are only // honored by whitelisted products. type UserOverrides struct { - // IpAddress: IP address to use instead of the user's geo-located IP - // address. + // IpAddress: IP address to use instead of the user's geo-located IP address. IpAddress string `json:"ipAddress,omitempty"` - // UserId: Logged-in user ID to impersonate instead of the user's ID. UserId string `json:"userId,omitempty"` - // ForceSendFields is a list of field names (e.g. "IpAddress") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IpAddress") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IpAddress") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserOverrides) MarshalJSON() ([]byte, error) { +func (s UserOverrides) MarshalJSON() ([]byte, error) { type NoMethod UserOverrides - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UserProfile: The profile information of a Partners user. type UserProfile struct { // Address: The user's mailing address, contains multiple fields. Address *Location `json:"address,omitempty"` - - // AdwordsManagerAccount: If the user has edit access to multiple - // accounts, the user can choose the - // preferred account and it is used when a personal account is needed. - // Can + // AdwordsManagerAccount: If the user has edit access to multiple accounts, the + // user can choose the + // preferred account and it is used when a personal account is needed. Can // be empty. AdwordsManagerAccount int64 `json:"adwordsManagerAccount,omitempty,string"` - - // Channels: A list of ids representing which channels the user selected - // they were in. + // Channels: A list of ids representing which channels the user selected they + // were in. Channels []string `json:"channels,omitempty"` - - // EmailAddress: The email address the user has selected on the Partners - // site as primary. + // EmailAddress: The email address the user has selected on the Partners site + // as primary. EmailAddress string `json:"emailAddress,omitempty"` - - // EmailOptIns: The list of opt-ins for the user, related to - // communication preferences. + // EmailOptIns: The list of opt-ins for the user, related to communication + // preferences. EmailOptIns *OptIns `json:"emailOptIns,omitempty"` - // FamilyName: The user's family name. FamilyName string `json:"familyName,omitempty"` - // GivenName: The user's given name. GivenName string `json:"givenName,omitempty"` - - // Industries: A list of ids representing which industries the user - // selected. + // Industries: A list of ids representing which industries the user selected. Industries []string `json:"industries,omitempty"` - // JobFunctions: A list of ids represnting which job categories the user // selected. JobFunctions []string `json:"jobFunctions,omitempty"` - // Languages: The list of languages this user understands. Languages []string `json:"languages,omitempty"` - - // Markets: A list of ids representing which markets the user was - // interested in. + // Markets: A list of ids representing which markets the user was interested + // in. Markets []string `json:"markets,omitempty"` - - // MigrateToAfa: Whether or not to migrate the user's exam data to - // Academy for Ads. + // MigrateToAfa: Whether or not to migrate the user's exam data to Academy for + // Ads. MigrateToAfa bool `json:"migrateToAfa,omitempty"` - // PhoneNumber: The user's phone number. PhoneNumber string `json:"phoneNumber,omitempty"` - - // PrimaryCountryCode: The user's primary country, an ISO 2-character - // code. + // PrimaryCountryCode: The user's primary country, an ISO 2-character code. PrimaryCountryCode string `json:"primaryCountryCode,omitempty"` - - // ProfilePublic: Whether the user's public profile is visible to anyone - // with the URL. + // ProfilePublic: Whether the user's public profile is visible to anyone with + // the URL. ProfilePublic bool `json:"profilePublic,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UserProfile) MarshalJSON() ([]byte, error) { +func (s UserProfile) MarshalJSON() ([]byte, error) { type NoMethod UserProfile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "partners.analytics.list": - type AnalyticsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -3153,21 +2591,18 @@ type AnalyticsListCall struct { } // List: Lists analytics data for a user's associated company. -// Should only be called within the context of an authorized logged in -// user. +// Should only be called within the context of an authorized logged in user. func (r *AnalyticsService) List() *AnalyticsListCall { c := &AnalyticsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Server may return fewer analytics than requested. +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer analytics than requested. // If unspecified or set to 0, default value is 30. -// Specifies the number of days in the date range when querying -// analytics. +// Specifies the number of days in the date range when querying analytics. // The `page_token` represents the end date of the date range -// and the start date is calculated using the `page_size` as the -// number +// and the start date is calculated using the `page_size` as the number // of days BEFORE the end date. // Must be a non-negative integer. func (c *AnalyticsListCall) PageSize(pageSize int64) *AnalyticsListCall { @@ -3175,14 +2610,13 @@ func (c *AnalyticsListCall) PageSize(pageSize int64) *AnalyticsListCall { return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results that the server returns. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results that the server returns. // Typically, this is the value of // `ListAnalyticsResponse.next_page_token` // returned from the previous call to // ListAnalytics. -// Will be a date string in `YYYY-MM-DD` format representing the end -// date +// Will be a date string in `YYYY-MM-DD` format representing the end date // of the date range of results to return. // If unspecified or set to "", default value is the current date. func (c *AnalyticsListCall) PageToken(pageToken string) *AnalyticsListCall { @@ -3191,15 +2625,15 @@ func (c *AnalyticsListCall) PageToken(pageToken string) *AnalyticsListCall { } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *AnalyticsListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *AnalyticsListCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *AnalyticsListCall) RequestMetadataLocale(requestMetadataLocale string) *AnalyticsListCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -3212,9 +2646,9 @@ func (c *AnalyticsListCall) RequestMetadataPartnersSessionId(requestMetadataPart return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -3224,8 +2658,8 @@ func (c *AnalyticsListCall) RequestMetadataTrafficSourceTrafficSourceId(requestM } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -3235,49 +2669,45 @@ func (c *AnalyticsListCall) RequestMetadataTrafficSourceTrafficSubId(requestMeta } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *AnalyticsListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *AnalyticsListCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *AnalyticsListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *AnalyticsListCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AnalyticsListCall) Fields(s ...googleapi.Field) *AnalyticsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AnalyticsListCall) IfNoneMatch(entityTag string) *AnalyticsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AnalyticsListCall) Context(ctx context.Context) *AnalyticsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AnalyticsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3286,12 +2716,7 @@ func (c *AnalyticsListCall) Header() http.Header { } func (c *AnalyticsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3305,16 +2730,15 @@ func (c *AnalyticsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.analytics.list" call. -// Exactly one of *ListAnalyticsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListAnalyticsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListAnalyticsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AnalyticsListCall) Do(opts ...googleapi.CallOption) (*ListAnalyticsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3322,17 +2746,17 @@ func (c *AnalyticsListCall) Do(opts ...googleapi.CallOption) (*ListAnalyticsResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListAnalyticsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3345,67 +2769,6 @@ func (c *AnalyticsListCall) Do(opts ...googleapi.CallOption) (*ListAnalyticsResp return nil, err } return ret, nil - // { - // "description": "Lists analytics data for a user's associated company.\nShould only be called within the context of an authorized logged in user.", - // "flatPath": "v2/analytics", - // "httpMethod": "GET", - // "id": "partners.analytics.list", - // "parameterOrder": [], - // "parameters": { - // "pageSize": { - // "description": "Requested page size. Server may return fewer analytics than requested.\nIf unspecified or set to 0, default value is 30.\nSpecifies the number of days in the date range when querying analytics.\nThe `page_token` represents the end date of the date range\nand the start date is calculated using the `page_size` as the number\nof days BEFORE the end date.\nMust be a non-negative integer.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results that the server returns.\nTypically, this is the value of `ListAnalyticsResponse.next_page_token`\nreturned from the previous call to\nListAnalytics.\nWill be a date string in `YYYY-MM-DD` format representing the end date\nof the date range of results to return.\nIf unspecified or set to \"\", default value is the current date.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/analytics", - // "response": { - // "$ref": "ListAnalyticsResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -3413,7 +2776,7 @@ func (c *AnalyticsListCall) Do(opts ...googleapi.CallOption) (*ListAnalyticsResp // The provided context supersedes any context provided to the Context method. func (c *AnalyticsListCall) Pages(ctx context.Context, f func(*ListAnalyticsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3429,8 +2792,6 @@ func (c *AnalyticsListCall) Pages(ctx context.Context, f func(*ListAnalyticsResp } } -// method id "partners.clientMessages.log": - type ClientMessagesLogCall struct { s *Service logmessagerequest *LogMessageRequest @@ -3449,23 +2810,21 @@ func (r *ClientMessagesService) Log(logmessagerequest *LogMessageRequest) *Clien } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ClientMessagesLogCall) Fields(s ...googleapi.Field) *ClientMessagesLogCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ClientMessagesLogCall) Context(ctx context.Context) *ClientMessagesLogCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ClientMessagesLogCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3474,18 +2833,12 @@ func (c *ClientMessagesLogCall) Header() http.Header { } func (c *ClientMessagesLogCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.logmessagerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/clientMessages:log") @@ -3495,16 +2848,15 @@ func (c *ClientMessagesLogCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.clientMessages.log" call. -// Exactly one of *LogMessageResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *LogMessageResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LogMessageResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ClientMessagesLogCall) Do(opts ...googleapi.CallOption) (*LogMessageResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3512,17 +2864,17 @@ func (c *ClientMessagesLogCall) Do(opts ...googleapi.CallOption) (*LogMessageRes if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LogMessageResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3535,25 +2887,7 @@ func (c *ClientMessagesLogCall) Do(opts ...googleapi.CallOption) (*LogMessageRes return nil, err } return ret, nil - // { - // "description": "Logs a generic message from the client, such as\n`Failed to render component`, `Profile page is running slow`,\n`More than 500 users have accessed this result.`, etc.", - // "flatPath": "v2/clientMessages:log", - // "httpMethod": "POST", - // "id": "partners.clientMessages.log", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/clientMessages:log", - // "request": { - // "$ref": "LogMessageRequest" - // }, - // "response": { - // "$ref": "LogMessageResponse" - // } - // } - -} - -// method id "partners.companies.get": +} type CompaniesGetCall struct { s *Service @@ -3565,6 +2899,8 @@ type CompaniesGetCall struct { } // Get: Gets a company. +// +// - companyId: The ID of the company to retrieve. func (r *CompaniesService) Get(companyId string) *CompaniesGetCall { c := &CompaniesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.companyId = companyId @@ -3580,19 +2916,18 @@ func (c *CompaniesGetCall) Address(address string) *CompaniesGetCall { return c } -// CurrencyCode sets the optional parameter "currencyCode": If the -// company's budget is in a different currency code than this one, -// then +// CurrencyCode sets the optional parameter "currencyCode": If the company's +// budget is in a different currency code than this one, then // the converted budget is converted to this currency code. func (c *CompaniesGetCall) CurrencyCode(currencyCode string) *CompaniesGetCall { c.urlParams_.Set("currencyCode", currencyCode) return c } -// OrderBy sets the optional parameter "orderBy": How to order addresses -// within the returned company. Currently, only -// `address` and `address desc` is supported which will sorted by -// closest to +// OrderBy sets the optional parameter "orderBy": How to order addresses within +// the returned company. Currently, only +// `address` and `address desc` is supported which will sorted by closest +// to // farthest in distance from given address and farthest to closest // distance // from given address respectively. @@ -3602,15 +2937,15 @@ func (c *CompaniesGetCall) OrderBy(orderBy string) *CompaniesGetCall { } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *CompaniesGetCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *CompaniesGetCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *CompaniesGetCall) RequestMetadataLocale(requestMetadataLocale string) *CompaniesGetCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -3623,9 +2958,9 @@ func (c *CompaniesGetCall) RequestMetadataPartnersSessionId(requestMetadataPartn return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -3635,8 +2970,8 @@ func (c *CompaniesGetCall) RequestMetadataTrafficSourceTrafficSourceId(requestMe } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -3646,23 +2981,23 @@ func (c *CompaniesGetCall) RequestMetadataTrafficSourceTrafficSubId(requestMetad } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *CompaniesGetCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *CompaniesGetCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *CompaniesGetCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *CompaniesGetCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } -// View sets the optional parameter "view": The view of `Company` -// resource to be returned. This must not be +// View sets the optional parameter "view": The view of `Company` resource to +// be returned. This must not be // `COMPANY_VIEW_UNSPECIFIED`. // // Possible values: @@ -3675,33 +3010,29 @@ func (c *CompaniesGetCall) View(view string) *CompaniesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CompaniesGetCall) Fields(s ...googleapi.Field) *CompaniesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CompaniesGetCall) IfNoneMatch(entityTag string) *CompaniesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CompaniesGetCall) Context(ctx context.Context) *CompaniesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CompaniesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3710,12 +3041,7 @@ func (c *CompaniesGetCall) Header() http.Header { } func (c *CompaniesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3732,16 +3058,15 @@ func (c *CompaniesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "companyId": c.companyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.companies.get" call. -// Exactly one of *GetCompanyResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GetCompanyResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GetCompanyResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CompaniesGetCall) Do(opts ...googleapi.CallOption) (*GetCompanyResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3749,17 +3074,17 @@ func (c *CompaniesGetCall) Do(opts ...googleapi.CallOption) (*GetCompanyResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GetCompanyResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3772,91 +3097,7 @@ func (c *CompaniesGetCall) Do(opts ...googleapi.CallOption) (*GetCompanyResponse return nil, err } return ret, nil - // { - // "description": "Gets a company.", - // "flatPath": "v2/companies/{companyId}", - // "httpMethod": "GET", - // "id": "partners.companies.get", - // "parameterOrder": [ - // "companyId" - // ], - // "parameters": { - // "address": { - // "description": "The address to use for sorting the company's addresses by proximity.\nIf not given, the geo-located address of the request is used.\nUsed when order_by is set.", - // "location": "query", - // "type": "string" - // }, - // "companyId": { - // "description": "The ID of the company to retrieve.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "currencyCode": { - // "description": "If the company's budget is in a different currency code than this one, then\nthe converted budget is converted to this currency code.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "How to order addresses within the returned company. Currently, only\n`address` and `address desc` is supported which will sorted by closest to\nfarthest in distance from given address and farthest to closest distance\nfrom given address respectively.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // }, - // "view": { - // "description": "The view of `Company` resource to be returned. This must not be\n`COMPANY_VIEW_UNSPECIFIED`.", - // "enum": [ - // "COMPANY_VIEW_UNSPECIFIED", - // "CV_GOOGLE_PARTNER_SEARCH" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/companies/{companyId}", - // "response": { - // "$ref": "GetCompanyResponse" - // } - // } - -} - -// method id "partners.companies.list": +} type CompaniesListCall struct { s *Service @@ -3872,23 +3113,23 @@ func (r *CompaniesService) List() *CompaniesListCall { return c } -// Address sets the optional parameter "address": The address to use -// when searching for companies. +// Address sets the optional parameter "address": The address to use when +// searching for companies. // If not given, the geo-located address of the request is used. func (c *CompaniesListCall) Address(address string) *CompaniesListCall { c.urlParams_.Set("address", address) return c } -// CompanyName sets the optional parameter "companyName": Company name -// to search for. +// CompanyName sets the optional parameter "companyName": Company name to +// search for. func (c *CompaniesListCall) CompanyName(companyName string) *CompaniesListCall { c.urlParams_.Set("companyName", companyName) return c } -// GpsMotivations sets the optional parameter "gpsMotivations": List of -// reasons for using Google Partner Search to get companies. +// GpsMotivations sets the optional parameter "gpsMotivations": List of reasons +// for using Google Partner Search to get companies. // // Possible values: // @@ -3901,8 +3142,8 @@ func (c *CompaniesListCall) GpsMotivations(gpsMotivations ...string) *CompaniesL return c } -// Industries sets the optional parameter "industries": List of -// industries the company can help with. +// Industries sets the optional parameter "industries": List of industries the +// company can help with. // // Possible values: // @@ -3922,9 +3163,8 @@ func (c *CompaniesListCall) Industries(industries ...string) *CompaniesListCall return c } -// LanguageCodes sets the optional parameter "languageCodes": List of -// language codes that company can support. Only primary -// language +// LanguageCodes sets the optional parameter "languageCodes": List of language +// codes that company can support. Only primary language // subtags are accepted as defined by // BCP 47 // (IETF BCP 47, "Tags for Identifying Languages"). @@ -3934,71 +3174,65 @@ func (c *CompaniesListCall) LanguageCodes(languageCodes ...string) *CompaniesLis } // MaxMonthlyBudgetCurrencyCode sets the optional parameter -// "maxMonthlyBudget.currencyCode": The 3-letter currency code defined -// in ISO 4217. +// "maxMonthlyBudget.currencyCode": The 3-letter currency code defined in ISO +// 4217. func (c *CompaniesListCall) MaxMonthlyBudgetCurrencyCode(maxMonthlyBudgetCurrencyCode string) *CompaniesListCall { c.urlParams_.Set("maxMonthlyBudget.currencyCode", maxMonthlyBudgetCurrencyCode) return c } -// MaxMonthlyBudgetNanos sets the optional parameter -// "maxMonthlyBudget.nanos": Number of nano (10^-9) units of the -// amount. +// MaxMonthlyBudgetNanos sets the optional parameter "maxMonthlyBudget.nanos": +// Number of nano (10^-9) units of the amount. // The value must be between -999,999,999 and +999,999,999 inclusive. // If `units` is positive, `nanos` must be positive or zero. // If `units` is zero, `nanos` can be positive, zero, or negative. // If `units` is negative, `nanos` must be negative or zero. -// For example $-1.75 is represented as `units`=-1 and -// `nanos`=-750,000,000. +// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. func (c *CompaniesListCall) MaxMonthlyBudgetNanos(maxMonthlyBudgetNanos int64) *CompaniesListCall { c.urlParams_.Set("maxMonthlyBudget.nanos", fmt.Sprint(maxMonthlyBudgetNanos)) return c } -// MaxMonthlyBudgetUnits sets the optional parameter -// "maxMonthlyBudget.units": The whole units of the amount. -// For example if `currencyCode` is "USD", then 1 unit is one US -// dollar. +// MaxMonthlyBudgetUnits sets the optional parameter "maxMonthlyBudget.units": +// The whole units of the amount. +// For example if `currencyCode` is "USD", then 1 unit is one US dollar. func (c *CompaniesListCall) MaxMonthlyBudgetUnits(maxMonthlyBudgetUnits int64) *CompaniesListCall { c.urlParams_.Set("maxMonthlyBudget.units", fmt.Sprint(maxMonthlyBudgetUnits)) return c } // MinMonthlyBudgetCurrencyCode sets the optional parameter -// "minMonthlyBudget.currencyCode": The 3-letter currency code defined -// in ISO 4217. +// "minMonthlyBudget.currencyCode": The 3-letter currency code defined in ISO +// 4217. func (c *CompaniesListCall) MinMonthlyBudgetCurrencyCode(minMonthlyBudgetCurrencyCode string) *CompaniesListCall { c.urlParams_.Set("minMonthlyBudget.currencyCode", minMonthlyBudgetCurrencyCode) return c } -// MinMonthlyBudgetNanos sets the optional parameter -// "minMonthlyBudget.nanos": Number of nano (10^-9) units of the -// amount. +// MinMonthlyBudgetNanos sets the optional parameter "minMonthlyBudget.nanos": +// Number of nano (10^-9) units of the amount. // The value must be between -999,999,999 and +999,999,999 inclusive. // If `units` is positive, `nanos` must be positive or zero. // If `units` is zero, `nanos` can be positive, zero, or negative. // If `units` is negative, `nanos` must be negative or zero. -// For example $-1.75 is represented as `units`=-1 and -// `nanos`=-750,000,000. +// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. func (c *CompaniesListCall) MinMonthlyBudgetNanos(minMonthlyBudgetNanos int64) *CompaniesListCall { c.urlParams_.Set("minMonthlyBudget.nanos", fmt.Sprint(minMonthlyBudgetNanos)) return c } -// MinMonthlyBudgetUnits sets the optional parameter -// "minMonthlyBudget.units": The whole units of the amount. -// For example if `currencyCode` is "USD", then 1 unit is one US -// dollar. +// MinMonthlyBudgetUnits sets the optional parameter "minMonthlyBudget.units": +// The whole units of the amount. +// For example if `currencyCode` is "USD", then 1 unit is one US dollar. func (c *CompaniesListCall) MinMonthlyBudgetUnits(minMonthlyBudgetUnits int64) *CompaniesListCall { c.urlParams_.Set("minMonthlyBudget.units", fmt.Sprint(minMonthlyBudgetUnits)) return c } -// OrderBy sets the optional parameter "orderBy": How to order addresses -// within the returned companies. Currently, only -// `address` and `address desc` is supported which will sorted by -// closest to +// OrderBy sets the optional parameter "orderBy": How to order addresses within +// the returned companies. Currently, only +// `address` and `address desc` is supported which will sorted by closest +// to // farthest in distance from given address and farthest to closest // distance // from given address respectively. @@ -4007,16 +3241,16 @@ func (c *CompaniesListCall) OrderBy(orderBy string) *CompaniesListCall { return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Server may return fewer companies than requested. +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer companies than requested. // If unspecified, server picks an appropriate default. func (c *CompaniesListCall) PageSize(pageSize int64) *CompaniesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results that the server returns. +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results that the server returns. // Typically, this is the value of // `ListCompaniesResponse.next_page_token` // returned from the previous call to @@ -4027,15 +3261,15 @@ func (c *CompaniesListCall) PageToken(pageToken string) *CompaniesListCall { } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *CompaniesListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *CompaniesListCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *CompaniesListCall) RequestMetadataLocale(requestMetadataLocale string) *CompaniesListCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -4048,9 +3282,9 @@ func (c *CompaniesListCall) RequestMetadataPartnersSessionId(requestMetadataPart return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -4060,8 +3294,8 @@ func (c *CompaniesListCall) RequestMetadataTrafficSourceTrafficSourceId(requestM } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -4071,25 +3305,24 @@ func (c *CompaniesListCall) RequestMetadataTrafficSourceTrafficSubId(requestMeta } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *CompaniesListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *CompaniesListCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *CompaniesListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *CompaniesListCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } -// Services sets the optional parameter "services": List of services -// that the returned agencies should provide. If this is -// not empty, any returned agency must have at least one of these -// services, +// Services sets the optional parameter "services": List of services that the +// returned agencies should provide. If this is +// not empty, any returned agency must have at least one of these services, // or one of the specializations in the "specializations" field. // // Possible values: @@ -4106,9 +3339,8 @@ func (c *CompaniesListCall) Services(services ...string) *CompaniesListCall { return c } -// Specializations sets the optional parameter "specializations": List -// of specializations that the returned agencies should provide. If -// this +// Specializations sets the optional parameter "specializations": List of +// specializations that the returned agencies should provide. If this // is not empty, any returned agency must have at least one of // these // specializations, or one of the services in the "services" field. @@ -4126,8 +3358,8 @@ func (c *CompaniesListCall) Specializations(specializations ...string) *Companie return c } -// View sets the optional parameter "view": The view of the `Company` -// resource to be returned. This must not be +// View sets the optional parameter "view": The view of the `Company` resource +// to be returned. This must not be // `COMPANY_VIEW_UNSPECIFIED`. // // Possible values: @@ -4139,8 +3371,8 @@ func (c *CompaniesListCall) View(view string) *CompaniesListCall { return c } -// WebsiteUrl sets the optional parameter "websiteUrl": Website URL that -// will help to find a better matched company. +// WebsiteUrl sets the optional parameter "websiteUrl": Website URL that will +// help to find a better matched company. // . func (c *CompaniesListCall) WebsiteUrl(websiteUrl string) *CompaniesListCall { c.urlParams_.Set("websiteUrl", websiteUrl) @@ -4148,33 +3380,29 @@ func (c *CompaniesListCall) WebsiteUrl(websiteUrl string) *CompaniesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CompaniesListCall) Fields(s ...googleapi.Field) *CompaniesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CompaniesListCall) IfNoneMatch(entityTag string) *CompaniesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CompaniesListCall) Context(ctx context.Context) *CompaniesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CompaniesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4183,12 +3411,7 @@ func (c *CompaniesListCall) Header() http.Header { } func (c *CompaniesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4202,16 +3425,15 @@ func (c *CompaniesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.companies.list" call. -// Exactly one of *ListCompaniesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListCompaniesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListCompaniesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4219,17 +3441,17 @@ func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListCompaniesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4242,196 +3464,6 @@ func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResp return nil, err } return ret, nil - // { - // "description": "Lists companies.", - // "flatPath": "v2/companies", - // "httpMethod": "GET", - // "id": "partners.companies.list", - // "parameterOrder": [], - // "parameters": { - // "address": { - // "description": "The address to use when searching for companies.\nIf not given, the geo-located address of the request is used.", - // "location": "query", - // "type": "string" - // }, - // "companyName": { - // "description": "Company name to search for.", - // "location": "query", - // "type": "string" - // }, - // "gpsMotivations": { - // "description": "List of reasons for using Google Partner Search to get companies.", - // "enum": [ - // "GPS_MOTIVATION_UNSPECIFIED", - // "GPSM_HELP_WITH_ADVERTISING", - // "GPSM_HELP_WITH_WEBSITE", - // "GPSM_NO_WEBSITE" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "industries": { - // "description": "List of industries the company can help with.", - // "enum": [ - // "INDUSTRY_UNSPECIFIED", - // "I_AUTOMOTIVE", - // "I_BUSINESS_TO_BUSINESS", - // "I_CONSUMER_PACKAGED_GOODS", - // "I_EDUCATION", - // "I_FINANCE", - // "I_HEALTHCARE", - // "I_MEDIA_AND_ENTERTAINMENT", - // "I_RETAIL", - // "I_TECHNOLOGY", - // "I_TRAVEL" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "languageCodes": { - // "description": "List of language codes that company can support. Only primary language\nsubtags are accepted as defined by\n\u003ca href=\"https://tools.ietf.org/html/bcp47\"\u003eBCP 47\u003c/a\u003e\n(IETF BCP 47, \"Tags for Identifying Languages\").", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "maxMonthlyBudget.currencyCode": { - // "description": "The 3-letter currency code defined in ISO 4217.", - // "location": "query", - // "type": "string" - // }, - // "maxMonthlyBudget.nanos": { - // "description": "Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "maxMonthlyBudget.units": { - // "description": "The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "minMonthlyBudget.currencyCode": { - // "description": "The 3-letter currency code defined in ISO 4217.", - // "location": "query", - // "type": "string" - // }, - // "minMonthlyBudget.nanos": { - // "description": "Number of nano (10^-9) units of the amount.\nThe value must be between -999,999,999 and +999,999,999 inclusive.\nIf `units` is positive, `nanos` must be positive or zero.\nIf `units` is zero, `nanos` can be positive, zero, or negative.\nIf `units` is negative, `nanos` must be negative or zero.\nFor example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "minMonthlyBudget.units": { - // "description": "The whole units of the amount.\nFor example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "How to order addresses within the returned companies. Currently, only\n`address` and `address desc` is supported which will sorted by closest to\nfarthest in distance from given address and farthest to closest distance\nfrom given address respectively.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Server may return fewer companies than requested.\nIf unspecified, server picks an appropriate default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results that the server returns.\nTypically, this is the value of `ListCompaniesResponse.next_page_token`\nreturned from the previous call to\nListCompanies.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // }, - // "services": { - // "description": "List of services that the returned agencies should provide. If this is\nnot empty, any returned agency must have at least one of these services,\nor one of the specializations in the \"specializations\" field.", - // "enum": [ - // "SERVICE_UNSPECIFIED", - // "S_ADVANCED_ADWORDS_SUPPORT", - // "S_ADVERTISING_ON_GOOGLE", - // "S_AN_ENHANCED_WEBSITE", - // "S_AN_ONLINE_MARKETING_PLAN", - // "S_MOBILE_AND_VIDEO_ADS", - // "S_MOBILE_WEBSITE_SERVICES" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "specializations": { - // "description": "List of specializations that the returned agencies should provide. If this\nis not empty, any returned agency must have at least one of these\nspecializations, or one of the services in the \"services\" field.", - // "enum": [ - // "BADGE_SPECIALIZATION_UNKNOWN", - // "BADGE_SPECIALIZATION_ADWORDS_SEARCH", - // "BADGE_SPECIALIZATION_ADWORDS_DISPLAY", - // "BADGE_SPECIALIZATION_ADWORDS_MOBILE", - // "BADGE_SPECIALIZATION_ADWORDS_VIDEO", - // "BADGE_SPECIALIZATION_ADWORDS_SHOPPING" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "view": { - // "description": "The view of the `Company` resource to be returned. This must not be\n`COMPANY_VIEW_UNSPECIFIED`.", - // "enum": [ - // "COMPANY_VIEW_UNSPECIFIED", - // "CV_GOOGLE_PARTNER_SEARCH" - // ], - // "location": "query", - // "type": "string" - // }, - // "websiteUrl": { - // "description": "Website URL that will help to find a better matched company.\n.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/companies", - // "response": { - // "$ref": "ListCompaniesResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -4439,7 +3471,7 @@ func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResp // The provided context supersedes any context provided to the Context method. func (c *CompaniesListCall) Pages(ctx context.Context, f func(*ListCompaniesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4455,8 +3487,6 @@ func (c *CompaniesListCall) Pages(ctx context.Context, f func(*ListCompaniesResp } } -// method id "partners.companies.leads.create": - type CompaniesLeadsCreateCall struct { s *Service companyId string @@ -4467,6 +3497,8 @@ type CompaniesLeadsCreateCall struct { } // Create: Creates an advertiser lead for the given company ID. +// +// - companyId: The ID of the company to contact. func (r *CompaniesLeadsService) Create(companyId string, createleadrequest *CreateLeadRequest) *CompaniesLeadsCreateCall { c := &CompaniesLeadsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.companyId = companyId @@ -4475,23 +3507,21 @@ func (r *CompaniesLeadsService) Create(companyId string, createleadrequest *Crea } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CompaniesLeadsCreateCall) Fields(s ...googleapi.Field) *CompaniesLeadsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CompaniesLeadsCreateCall) Context(ctx context.Context) *CompaniesLeadsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CompaniesLeadsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4500,18 +3530,12 @@ func (c *CompaniesLeadsCreateCall) Header() http.Header { } func (c *CompaniesLeadsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.createleadrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/companies/{companyId}/leads") @@ -4524,16 +3548,15 @@ func (c *CompaniesLeadsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "companyId": c.companyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.companies.leads.create" call. -// Exactly one of *CreateLeadResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *CreateLeadResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CreateLeadResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *CompaniesLeadsCreateCall) Do(opts ...googleapi.CallOption) (*CreateLeadResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4541,17 +3564,17 @@ func (c *CompaniesLeadsCreateCall) Do(opts ...googleapi.CallOption) (*CreateLead if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CreateLeadResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4564,34 +3587,7 @@ func (c *CompaniesLeadsCreateCall) Do(opts ...googleapi.CallOption) (*CreateLead return nil, err } return ret, nil - // { - // "description": "Creates an advertiser lead for the given company ID.", - // "flatPath": "v2/companies/{companyId}/leads", - // "httpMethod": "POST", - // "id": "partners.companies.leads.create", - // "parameterOrder": [ - // "companyId" - // ], - // "parameters": { - // "companyId": { - // "description": "The ID of the company to contact.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/companies/{companyId}/leads", - // "request": { - // "$ref": "CreateLeadRequest" - // }, - // "response": { - // "$ref": "CreateLeadResponse" - // } - // } - -} - -// method id "partners.leads.list": +} type LeadsListCall struct { s *Service @@ -4602,8 +3598,7 @@ type LeadsListCall struct { } // List: Lists advertiser leads for a user's associated company. -// Should only be called within the context of an authorized logged in -// user. +// Should only be called within the context of an authorized logged in user. func (r *LeadsService) List() *LeadsListCall { c := &LeadsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c @@ -4617,18 +3612,17 @@ func (c *LeadsListCall) OrderBy(orderBy string) *LeadsListCall { return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Server may return fewer leads than requested. +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer leads than requested. // If unspecified, server picks an appropriate default. func (c *LeadsListCall) PageSize(pageSize int64) *LeadsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results that the server returns. -// Typically, this is the value of -// `ListLeadsResponse.next_page_token` +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results that the server returns. +// Typically, this is the value of `ListLeadsResponse.next_page_token` // returned from the previous call to // ListLeads. func (c *LeadsListCall) PageToken(pageToken string) *LeadsListCall { @@ -4637,15 +3631,15 @@ func (c *LeadsListCall) PageToken(pageToken string) *LeadsListCall { } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *LeadsListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *LeadsListCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *LeadsListCall) RequestMetadataLocale(requestMetadataLocale string) *LeadsListCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -4658,9 +3652,9 @@ func (c *LeadsListCall) RequestMetadataPartnersSessionId(requestMetadataPartners return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -4670,8 +3664,8 @@ func (c *LeadsListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetad } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -4681,49 +3675,45 @@ func (c *LeadsListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadata } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *LeadsListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *LeadsListCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *LeadsListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *LeadsListCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *LeadsListCall) Fields(s ...googleapi.Field) *LeadsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *LeadsListCall) IfNoneMatch(entityTag string) *LeadsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *LeadsListCall) Context(ctx context.Context) *LeadsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *LeadsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4732,12 +3722,7 @@ func (c *LeadsListCall) Header() http.Header { } func (c *LeadsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4751,16 +3736,15 @@ func (c *LeadsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.leads.list" call. -// Exactly one of *ListLeadsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLeadsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListLeadsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *LeadsListCall) Do(opts ...googleapi.CallOption) (*ListLeadsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4768,17 +3752,17 @@ func (c *LeadsListCall) Do(opts ...googleapi.CallOption) (*ListLeadsResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListLeadsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4791,72 +3775,6 @@ func (c *LeadsListCall) Do(opts ...googleapi.CallOption) (*ListLeadsResponse, er return nil, err } return ret, nil - // { - // "description": "Lists advertiser leads for a user's associated company.\nShould only be called within the context of an authorized logged in user.", - // "flatPath": "v2/leads", - // "httpMethod": "GET", - // "id": "partners.leads.list", - // "parameterOrder": [], - // "parameters": { - // "orderBy": { - // "description": "How to order Leads. Currently, only `create_time`\nand `create_time desc` are supported", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Server may return fewer leads than requested.\nIf unspecified, server picks an appropriate default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results that the server returns.\nTypically, this is the value of `ListLeadsResponse.next_page_token`\nreturned from the previous call to\nListLeads.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/leads", - // "response": { - // "$ref": "ListLeadsResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -4864,7 +3782,7 @@ func (c *LeadsListCall) Do(opts ...googleapi.CallOption) (*ListLeadsResponse, er // The provided context supersedes any context provided to the Context method. func (c *LeadsListCall) Pages(ctx context.Context, f func(*ListLeadsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4880,8 +3798,6 @@ func (c *LeadsListCall) Pages(ctx context.Context, f func(*ListLeadsResponse) er } } -// method id "partners.offers.list": - type OffersListCall struct { s *Service urlParams_ gensupport.URLParams @@ -4897,15 +3813,15 @@ func (r *OffersService) List() *OffersListCall { } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *OffersListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *OffersListCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *OffersListCall) RequestMetadataLocale(requestMetadataLocale string) *OffersListCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -4918,9 +3834,9 @@ func (c *OffersListCall) RequestMetadataPartnersSessionId(requestMetadataPartner return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -4930,8 +3846,8 @@ func (c *OffersListCall) RequestMetadataTrafficSourceTrafficSourceId(requestMeta } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -4941,49 +3857,45 @@ func (c *OffersListCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadat } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *OffersListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *OffersListCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *OffersListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *OffersListCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OffersListCall) Fields(s ...googleapi.Field) *OffersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OffersListCall) IfNoneMatch(entityTag string) *OffersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OffersListCall) Context(ctx context.Context) *OffersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OffersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4992,12 +3904,7 @@ func (c *OffersListCall) Header() http.Header { } func (c *OffersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5011,16 +3918,15 @@ func (c *OffersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.offers.list" call. -// Exactly one of *ListOffersResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOffersResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOffersResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OffersListCall) Do(opts ...googleapi.CallOption) (*ListOffersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5028,17 +3934,17 @@ func (c *OffersListCall) Do(opts ...googleapi.CallOption) (*ListOffersResponse, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOffersResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5051,59 +3957,7 @@ func (c *OffersListCall) Do(opts ...googleapi.CallOption) (*ListOffersResponse, return nil, err } return ret, nil - // { - // "description": "Lists the Offers available for the current user", - // "flatPath": "v2/offers", - // "httpMethod": "GET", - // "id": "partners.offers.list", - // "parameterOrder": [], - // "parameters": { - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/offers", - // "response": { - // "$ref": "ListOffersResponse" - // } - // } - -} - -// method id "partners.offers.history.list": +} type OffersHistoryListCall struct { s *Service @@ -5113,25 +3967,24 @@ type OffersHistoryListCall struct { header_ http.Header } -// List: Lists the Historical Offers for the current user (or user's -// entire company) +// List: Lists the Historical Offers for the current user (or user's entire +// company) func (r *OffersHistoryService) List() *OffersHistoryListCall { c := &OffersHistoryListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// EntireCompany sets the optional parameter "entireCompany": if true, -// show history for the entire company. Requires user to be admin. +// EntireCompany sets the optional parameter "entireCompany": if true, show +// history for the entire company. Requires user to be admin. func (c *OffersHistoryListCall) EntireCompany(entireCompany bool) *OffersHistoryListCall { c.urlParams_.Set("entireCompany", fmt.Sprint(entireCompany)) return c } -// OrderBy sets the optional parameter "orderBy": Comma-separated list -// of fields to order by, e.g.: "foo,bar,baz". +// OrderBy sets the optional parameter "orderBy": Comma-separated list of +// fields to order by, e.g.: "foo,bar,baz". // Use "foo desc" to sort descending. -// List of valid field names is: name, offer_code, expiration_time, -// status, +// List of valid field names is: name, offer_code, expiration_time, status, // // last_modified_time, sender_name, creation_time, country_code, // offer_type. @@ -5140,30 +3993,30 @@ func (c *OffersHistoryListCall) OrderBy(orderBy string) *OffersHistoryListCall { return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// rows to return per page. +// PageSize sets the optional parameter "pageSize": Maximum number of rows to +// return per page. func (c *OffersHistoryListCall) PageSize(pageSize int64) *OffersHistoryListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token to retrieve -// a specific page. +// PageToken sets the optional parameter "pageToken": Token to retrieve a +// specific page. func (c *OffersHistoryListCall) PageToken(pageToken string) *OffersHistoryListCall { c.urlParams_.Set("pageToken", pageToken) return c } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *OffersHistoryListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *OffersHistoryListCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *OffersHistoryListCall) RequestMetadataLocale(requestMetadataLocale string) *OffersHistoryListCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -5176,9 +4029,9 @@ func (c *OffersHistoryListCall) RequestMetadataPartnersSessionId(requestMetadata return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -5188,8 +4041,8 @@ func (c *OffersHistoryListCall) RequestMetadataTrafficSourceTrafficSourceId(requ } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -5199,49 +4052,45 @@ func (c *OffersHistoryListCall) RequestMetadataTrafficSourceTrafficSubId(request } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *OffersHistoryListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *OffersHistoryListCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *OffersHistoryListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *OffersHistoryListCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OffersHistoryListCall) Fields(s ...googleapi.Field) *OffersHistoryListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OffersHistoryListCall) IfNoneMatch(entityTag string) *OffersHistoryListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OffersHistoryListCall) Context(ctx context.Context) *OffersHistoryListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OffersHistoryListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5250,12 +4099,7 @@ func (c *OffersHistoryListCall) Header() http.Header { } func (c *OffersHistoryListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5269,16 +4113,15 @@ func (c *OffersHistoryListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.offers.history.list" call. -// Exactly one of *ListOffersHistoryResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ListOffersHistoryResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ListOffersHistoryResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OffersHistoryListCall) Do(opts ...googleapi.CallOption) (*ListOffersHistoryResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5286,17 +4129,17 @@ func (c *OffersHistoryListCall) Do(opts ...googleapi.CallOption) (*ListOffersHis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOffersHistoryResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5309,77 +4152,6 @@ func (c *OffersHistoryListCall) Do(opts ...googleapi.CallOption) (*ListOffersHis return nil, err } return ret, nil - // { - // "description": "Lists the Historical Offers for the current user (or user's entire company)", - // "flatPath": "v2/offers/history", - // "httpMethod": "GET", - // "id": "partners.offers.history.list", - // "parameterOrder": [], - // "parameters": { - // "entireCompany": { - // "description": "if true, show history for the entire company. Requires user to be admin.", - // "location": "query", - // "type": "boolean" - // }, - // "orderBy": { - // "description": "Comma-separated list of fields to order by, e.g.: \"foo,bar,baz\".\nUse \"foo desc\" to sort descending.\nList of valid field names is: name, offer_code, expiration_time, status,\n last_modified_time, sender_name, creation_time, country_code,\n offer_type.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum number of rows to return per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token to retrieve a specific page.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/offers/history", - // "response": { - // "$ref": "ListOffersHistoryResponse" - // } - // } - } // Pages invokes f for each page of results. @@ -5387,7 +4159,7 @@ func (c *OffersHistoryListCall) Do(opts ...googleapi.CallOption) (*ListOffersHis // The provided context supersedes any context provided to the Context method. func (c *OffersHistoryListCall) Pages(ctx context.Context, f func(*ListOffersHistoryResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5403,8 +4175,6 @@ func (c *OffersHistoryListCall) Pages(ctx context.Context, f func(*ListOffersHis } } -// method id "partners.userEvents.log": - type UserEventsLogCall struct { s *Service logusereventrequest *LogUserEventRequest @@ -5421,23 +4191,21 @@ func (r *UserEventsService) Log(logusereventrequest *LogUserEventRequest) *UserE } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserEventsLogCall) Fields(s ...googleapi.Field) *UserEventsLogCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserEventsLogCall) Context(ctx context.Context) *UserEventsLogCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserEventsLogCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5446,18 +4214,12 @@ func (c *UserEventsLogCall) Header() http.Header { } func (c *UserEventsLogCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.logusereventrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/userEvents:log") @@ -5467,16 +4229,15 @@ func (c *UserEventsLogCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.userEvents.log" call. -// Exactly one of *LogUserEventResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *LogUserEventResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *LogUserEventResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserEventsLogCall) Do(opts ...googleapi.CallOption) (*LogUserEventResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5484,17 +4245,17 @@ func (c *UserEventsLogCall) Do(opts ...googleapi.CallOption) (*LogUserEventRespo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &LogUserEventResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5507,25 +4268,7 @@ func (c *UserEventsLogCall) Do(opts ...googleapi.CallOption) (*LogUserEventRespo return nil, err } return ret, nil - // { - // "description": "Logs a user event.", - // "flatPath": "v2/userEvents:log", - // "httpMethod": "POST", - // "id": "partners.userEvents.log", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/userEvents:log", - // "request": { - // "$ref": "LogUserEventRequest" - // }, - // "response": { - // "$ref": "LogUserEventResponse" - // } - // } - -} - -// method id "partners.userStates.list": +} type UserStatesListCall struct { s *Service @@ -5542,15 +4285,15 @@ func (r *UserStatesService) List() *UserStatesListCall { } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *UserStatesListCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UserStatesListCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *UserStatesListCall) RequestMetadataLocale(requestMetadataLocale string) *UserStatesListCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -5563,9 +4306,9 @@ func (c *UserStatesListCall) RequestMetadataPartnersSessionId(requestMetadataPar return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -5575,8 +4318,8 @@ func (c *UserStatesListCall) RequestMetadataTrafficSourceTrafficSourceId(request } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -5586,49 +4329,45 @@ func (c *UserStatesListCall) RequestMetadataTrafficSourceTrafficSubId(requestMet } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *UserStatesListCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *UserStatesListCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *UserStatesListCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *UserStatesListCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UserStatesListCall) Fields(s ...googleapi.Field) *UserStatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UserStatesListCall) IfNoneMatch(entityTag string) *UserStatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UserStatesListCall) Context(ctx context.Context) *UserStatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UserStatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5637,12 +4376,7 @@ func (c *UserStatesListCall) Header() http.Header { } func (c *UserStatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5656,16 +4390,15 @@ func (c *UserStatesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.userStates.list" call. -// Exactly one of *ListUserStatesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListUserStatesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListUserStatesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UserStatesListCall) Do(opts ...googleapi.CallOption) (*ListUserStatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5673,17 +4406,17 @@ func (c *UserStatesListCall) Do(opts ...googleapi.CallOption) (*ListUserStatesRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListUserStatesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5696,59 +4429,7 @@ func (c *UserStatesListCall) Do(opts ...googleapi.CallOption) (*ListUserStatesRe return nil, err } return ret, nil - // { - // "description": "Lists states for current user.", - // "flatPath": "v2/userStates", - // "httpMethod": "GET", - // "id": "partners.userStates.list", - // "parameterOrder": [], - // "parameters": { - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/userStates", - // "response": { - // "$ref": "ListUserStatesResponse" - // } - // } - -} - -// method id "partners.users.createCompanyRelation": +} type UsersCreateCompanyRelationCall struct { s *Service @@ -5759,8 +4440,11 @@ type UsersCreateCompanyRelationCall struct { header_ http.Header } -// CreateCompanyRelation: Creates a user's company relation. Affiliates -// the user to a company. +// CreateCompanyRelation: Creates a user's company relation. Affiliates the +// user to a company. +// +// - userId: The ID of the user. Can be set to me to mean +// the currently authenticated user. func (r *UsersService) CreateCompanyRelation(userId string, companyrelation *CompanyRelation) *UsersCreateCompanyRelationCall { c := &UsersCreateCompanyRelationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -5769,15 +4453,15 @@ func (r *UsersService) CreateCompanyRelation(userId string, companyrelation *Com } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *UsersCreateCompanyRelationCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersCreateCompanyRelationCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *UsersCreateCompanyRelationCall) RequestMetadataLocale(requestMetadataLocale string) *UsersCreateCompanyRelationCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -5790,9 +4474,9 @@ func (c *UsersCreateCompanyRelationCall) RequestMetadataPartnersSessionId(reques return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -5802,8 +4486,8 @@ func (c *UsersCreateCompanyRelationCall) RequestMetadataTrafficSourceTrafficSour } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -5813,39 +4497,37 @@ func (c *UsersCreateCompanyRelationCall) RequestMetadataTrafficSourceTrafficSubI } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *UsersCreateCompanyRelationCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *UsersCreateCompanyRelationCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *UsersCreateCompanyRelationCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *UsersCreateCompanyRelationCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersCreateCompanyRelationCall) Fields(s ...googleapi.Field) *UsersCreateCompanyRelationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersCreateCompanyRelationCall) Context(ctx context.Context) *UsersCreateCompanyRelationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersCreateCompanyRelationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5854,18 +4536,12 @@ func (c *UsersCreateCompanyRelationCall) Header() http.Header { } func (c *UsersCreateCompanyRelationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.companyrelation) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/users/{userId}/companyRelation") @@ -5878,16 +4554,15 @@ func (c *UsersCreateCompanyRelationCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.users.createCompanyRelation" call. -// Exactly one of *CompanyRelation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CompanyRelation.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CompanyRelation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UsersCreateCompanyRelationCall) Do(opts ...googleapi.CallOption) (*CompanyRelation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5895,17 +4570,17 @@ func (c *UsersCreateCompanyRelationCall) Do(opts ...googleapi.CallOption) (*Comp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CompanyRelation{ ServerResponse: googleapi.ServerResponse{ @@ -5918,70 +4593,7 @@ func (c *UsersCreateCompanyRelationCall) Do(opts ...googleapi.CallOption) (*Comp return nil, err } return ret, nil - // { - // "description": "Creates a user's company relation. Affiliates the user to a company.", - // "flatPath": "v2/users/{userId}/companyRelation", - // "httpMethod": "PUT", - // "id": "partners.users.createCompanyRelation", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "description": "The ID of the user. Can be set to \u003ccode\u003eme\u003c/code\u003e to mean\nthe currently authenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/users/{userId}/companyRelation", - // "request": { - // "$ref": "CompanyRelation" - // }, - // "response": { - // "$ref": "CompanyRelation" - // } - // } - -} - -// method id "partners.users.deleteCompanyRelation": +} type UsersDeleteCompanyRelationCall struct { s *Service @@ -5991,8 +4603,11 @@ type UsersDeleteCompanyRelationCall struct { header_ http.Header } -// DeleteCompanyRelation: Deletes a user's company relation. -// Unaffiliaites the user from a company. +// DeleteCompanyRelation: Deletes a user's company relation. Unaffiliaites the +// user from a company. +// +// - userId: The ID of the user. Can be set to me to mean +// the currently authenticated user. func (r *UsersService) DeleteCompanyRelation(userId string) *UsersDeleteCompanyRelationCall { c := &UsersDeleteCompanyRelationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -6000,15 +4615,15 @@ func (r *UsersService) DeleteCompanyRelation(userId string) *UsersDeleteCompanyR } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *UsersDeleteCompanyRelationCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersDeleteCompanyRelationCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *UsersDeleteCompanyRelationCall) RequestMetadataLocale(requestMetadataLocale string) *UsersDeleteCompanyRelationCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -6021,9 +4636,9 @@ func (c *UsersDeleteCompanyRelationCall) RequestMetadataPartnersSessionId(reques return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -6033,8 +4648,8 @@ func (c *UsersDeleteCompanyRelationCall) RequestMetadataTrafficSourceTrafficSour } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -6044,39 +4659,37 @@ func (c *UsersDeleteCompanyRelationCall) RequestMetadataTrafficSourceTrafficSubI } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *UsersDeleteCompanyRelationCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *UsersDeleteCompanyRelationCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *UsersDeleteCompanyRelationCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *UsersDeleteCompanyRelationCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersDeleteCompanyRelationCall) Fields(s ...googleapi.Field) *UsersDeleteCompanyRelationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersDeleteCompanyRelationCall) Context(ctx context.Context) *UsersDeleteCompanyRelationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersDeleteCompanyRelationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6085,12 +4698,7 @@ func (c *UsersDeleteCompanyRelationCall) Header() http.Header { } func (c *UsersDeleteCompanyRelationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -6104,16 +4712,14 @@ func (c *UsersDeleteCompanyRelationCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.users.deleteCompanyRelation" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersDeleteCompanyRelationCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6121,17 +4727,17 @@ func (c *UsersDeleteCompanyRelationCall) Do(opts ...googleapi.CallOption) (*Empt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -6144,67 +4750,7 @@ func (c *UsersDeleteCompanyRelationCall) Do(opts ...googleapi.CallOption) (*Empt return nil, err } return ret, nil - // { - // "description": "Deletes a user's company relation. Unaffiliaites the user from a company.", - // "flatPath": "v2/users/{userId}/companyRelation", - // "httpMethod": "DELETE", - // "id": "partners.users.deleteCompanyRelation", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "description": "The ID of the user. Can be set to \u003ccode\u003eme\u003c/code\u003e to mean\nthe currently authenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/users/{userId}/companyRelation", - // "response": { - // "$ref": "Empty" - // } - // } - -} - -// method id "partners.users.get": +} type UsersGetCall struct { s *Service @@ -6216,6 +4762,11 @@ type UsersGetCall struct { } // Get: Gets a user. +// +// - userId: Identifier of the user. Can be set to me to mean the +// currently +// +// authenticated user. func (r *UsersService) Get(userId string) *UsersGetCall { c := &UsersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -6223,15 +4774,15 @@ func (r *UsersService) Get(userId string) *UsersGetCall { } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *UsersGetCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersGetCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *UsersGetCall) RequestMetadataLocale(requestMetadataLocale string) *UsersGetCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -6244,9 +4795,9 @@ func (c *UsersGetCall) RequestMetadataPartnersSessionId(requestMetadataPartnersS return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -6256,8 +4807,8 @@ func (c *UsersGetCall) RequestMetadataTrafficSourceTrafficSourceId(requestMetada } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -6267,23 +4818,23 @@ func (c *UsersGetCall) RequestMetadataTrafficSourceTrafficSubId(requestMetadataT } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *UsersGetCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *UsersGetCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *UsersGetCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *UsersGetCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } -// UserView sets the optional parameter "userView": Specifies what parts -// of the user information to return. +// UserView sets the optional parameter "userView": Specifies what parts of the +// user information to return. // // Possible values: // @@ -6296,33 +4847,29 @@ func (c *UsersGetCall) UserView(userView string) *UsersGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UsersGetCall) IfNoneMatch(entityTag string) *UsersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersGetCall) Context(ctx context.Context) *UsersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6331,12 +4878,7 @@ func (c *UsersGetCall) Header() http.Header { } func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6353,16 +4895,14 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.users.get" call. -// Exactly one of *User or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *User.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6370,17 +4910,17 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &User{ ServerResponse: googleapi.ServerResponse{ @@ -6393,77 +4933,7 @@ func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) { return nil, err } return ret, nil - // { - // "description": "Gets a user.", - // "flatPath": "v2/users/{userId}", - // "httpMethod": "GET", - // "id": "partners.users.get", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "description": "Identifier of the user. Can be set to \u003ccode\u003eme\u003c/code\u003e to mean the currently\nauthenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "userView": { - // "description": "Specifies what parts of the user information to return.", - // "enum": [ - // "BASIC", - // "PROFILE", - // "PUBLIC_PROFILE" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/users/{userId}", - // "response": { - // "$ref": "User" - // } - // } - -} - -// method id "partners.users.updateProfile": +} type UsersUpdateProfileCall struct { s *Service @@ -6473,8 +4943,8 @@ type UsersUpdateProfileCall struct { header_ http.Header } -// UpdateProfile: Updates a user's profile. A user can only update their -// own profile and +// UpdateProfile: Updates a user's profile. A user can only update their own +// profile and // should only be called within the context of a logged in user. func (r *UsersService) UpdateProfile(userprofile *UserProfile) *UsersUpdateProfileCall { c := &UsersUpdateProfileCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -6483,15 +4953,15 @@ func (r *UsersService) UpdateProfile(userprofile *UserProfile) *UsersUpdateProfi } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *UsersUpdateProfileCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *UsersUpdateProfileCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *UsersUpdateProfileCall) RequestMetadataLocale(requestMetadataLocale string) *UsersUpdateProfileCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -6504,9 +4974,9 @@ func (c *UsersUpdateProfileCall) RequestMetadataPartnersSessionId(requestMetadat return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -6516,8 +4986,8 @@ func (c *UsersUpdateProfileCall) RequestMetadataTrafficSourceTrafficSourceId(req } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -6527,39 +4997,37 @@ func (c *UsersUpdateProfileCall) RequestMetadataTrafficSourceTrafficSubId(reques } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *UsersUpdateProfileCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *UsersUpdateProfileCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *UsersUpdateProfileCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *UsersUpdateProfileCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersUpdateProfileCall) Fields(s ...googleapi.Field) *UsersUpdateProfileCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersUpdateProfileCall) Context(ctx context.Context) *UsersUpdateProfileCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersUpdateProfileCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6568,18 +5036,12 @@ func (c *UsersUpdateProfileCall) Header() http.Header { } func (c *UsersUpdateProfileCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.userprofile) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/users/profile") @@ -6589,16 +5051,14 @@ func (c *UsersUpdateProfileCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.users.updateProfile" call. -// Exactly one of *UserProfile or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UserProfile.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UserProfile.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersUpdateProfileCall) Do(opts ...googleapi.CallOption) (*UserProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6606,17 +5066,17 @@ func (c *UsersUpdateProfileCall) Do(opts ...googleapi.CallOption) (*UserProfile, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UserProfile{ ServerResponse: googleapi.ServerResponse{ @@ -6629,62 +5089,7 @@ func (c *UsersUpdateProfileCall) Do(opts ...googleapi.CallOption) (*UserProfile, return nil, err } return ret, nil - // { - // "description": "Updates a user's profile. A user can only update their own profile and\nshould only be called within the context of a logged in user.", - // "flatPath": "v2/users/profile", - // "httpMethod": "PATCH", - // "id": "partners.users.updateProfile", - // "parameterOrder": [], - // "parameters": { - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/users/profile", - // "request": { - // "$ref": "UserProfile" - // }, - // "response": { - // "$ref": "UserProfile" - // } - // } - -} - -// method id "partners.getPartnersstatus": +} type V2GetPartnersstatusCall struct { s *Service @@ -6696,23 +5101,22 @@ type V2GetPartnersstatusCall struct { // GetPartnersstatus: Gets Partners Status of the logged in user's // agency. -// Should only be called if the logged in user is the admin of the -// agency. +// Should only be called if the logged in user is the admin of the agency. func (r *V2Service) GetPartnersstatus() *V2GetPartnersstatusCall { c := &V2GetPartnersstatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *V2GetPartnersstatusCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *V2GetPartnersstatusCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *V2GetPartnersstatusCall) RequestMetadataLocale(requestMetadataLocale string) *V2GetPartnersstatusCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -6725,9 +5129,9 @@ func (c *V2GetPartnersstatusCall) RequestMetadataPartnersSessionId(requestMetada return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -6737,8 +5141,8 @@ func (c *V2GetPartnersstatusCall) RequestMetadataTrafficSourceTrafficSourceId(re } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -6748,49 +5152,45 @@ func (c *V2GetPartnersstatusCall) RequestMetadataTrafficSourceTrafficSubId(reque } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *V2GetPartnersstatusCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *V2GetPartnersstatusCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *V2GetPartnersstatusCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *V2GetPartnersstatusCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V2GetPartnersstatusCall) Fields(s ...googleapi.Field) *V2GetPartnersstatusCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *V2GetPartnersstatusCall) IfNoneMatch(entityTag string) *V2GetPartnersstatusCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V2GetPartnersstatusCall) Context(ctx context.Context) *V2GetPartnersstatusCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V2GetPartnersstatusCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6799,12 +5199,7 @@ func (c *V2GetPartnersstatusCall) Header() http.Header { } func (c *V2GetPartnersstatusCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6818,16 +5213,15 @@ func (c *V2GetPartnersstatusCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.getPartnersstatus" call. -// Exactly one of *GetPartnersStatusResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GetPartnersStatusResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GetPartnersStatusResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V2GetPartnersstatusCall) Do(opts ...googleapi.CallOption) (*GetPartnersStatusResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6835,17 +5229,17 @@ func (c *V2GetPartnersstatusCall) Do(opts ...googleapi.CallOption) (*GetPartners if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GetPartnersStatusResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6858,59 +5252,7 @@ func (c *V2GetPartnersstatusCall) Do(opts ...googleapi.CallOption) (*GetPartners return nil, err } return ret, nil - // { - // "description": "Gets Partners Status of the logged in user's agency.\nShould only be called if the logged in user is the admin of the agency.", - // "flatPath": "v2/partnersstatus", - // "httpMethod": "GET", - // "id": "partners.getPartnersstatus", - // "parameterOrder": [], - // "parameters": { - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/partnersstatus", - // "response": { - // "$ref": "GetPartnersStatusResponse" - // } - // } - -} - -// method id "partners.updateCompanies": +} type V2UpdateCompaniesCall struct { s *Service @@ -6921,8 +5263,7 @@ type V2UpdateCompaniesCall struct { } // UpdateCompanies: Update company. -// Should only be called within the context of an authorized logged in -// user. +// Should only be called within the context of an authorized logged in user. func (r *V2Service) UpdateCompanies(company *Company) *V2UpdateCompaniesCall { c := &V2UpdateCompaniesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.company = company @@ -6930,15 +5271,15 @@ func (r *V2Service) UpdateCompanies(company *Company) *V2UpdateCompaniesCall { } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *V2UpdateCompaniesCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *V2UpdateCompaniesCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *V2UpdateCompaniesCall) RequestMetadataLocale(requestMetadataLocale string) *V2UpdateCompaniesCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -6951,9 +5292,9 @@ func (c *V2UpdateCompaniesCall) RequestMetadataPartnersSessionId(requestMetadata return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -6963,8 +5304,8 @@ func (c *V2UpdateCompaniesCall) RequestMetadataTrafficSourceTrafficSourceId(requ } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -6974,23 +5315,23 @@ func (c *V2UpdateCompaniesCall) RequestMetadataTrafficSourceTrafficSubId(request } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *V2UpdateCompaniesCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *V2UpdateCompaniesCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *V2UpdateCompaniesCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *V2UpdateCompaniesCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } -// UpdateMask sets the optional parameter "updateMask": Standard field -// mask for the set of fields to be updated. +// UpdateMask sets the optional parameter "updateMask": Standard field mask for +// the set of fields to be updated. // Required with at least 1 value in FieldMask's paths. func (c *V2UpdateCompaniesCall) UpdateMask(updateMask string) *V2UpdateCompaniesCall { c.urlParams_.Set("updateMask", updateMask) @@ -6998,23 +5339,21 @@ func (c *V2UpdateCompaniesCall) UpdateMask(updateMask string) *V2UpdateCompanies } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V2UpdateCompaniesCall) Fields(s ...googleapi.Field) *V2UpdateCompaniesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V2UpdateCompaniesCall) Context(ctx context.Context) *V2UpdateCompaniesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V2UpdateCompaniesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7023,18 +5362,12 @@ func (c *V2UpdateCompaniesCall) Header() http.Header { } func (c *V2UpdateCompaniesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.company) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/companies") @@ -7044,16 +5377,14 @@ func (c *V2UpdateCompaniesCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.updateCompanies" call. -// Exactly one of *Company or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Company.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Company.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *V2UpdateCompaniesCall) Do(opts ...googleapi.CallOption) (*Company, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7061,17 +5392,17 @@ func (c *V2UpdateCompaniesCall) Do(opts ...googleapi.CallOption) (*Company, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Company{ ServerResponse: googleapi.ServerResponse{ @@ -7084,68 +5415,7 @@ func (c *V2UpdateCompaniesCall) Do(opts ...googleapi.CallOption) (*Company, erro return nil, err } return ret, nil - // { - // "description": "Update company.\nShould only be called within the context of an authorized logged in user.", - // "flatPath": "v2/companies", - // "httpMethod": "PATCH", - // "id": "partners.updateCompanies", - // "parameterOrder": [], - // "parameters": { - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Standard field mask for the set of fields to be updated.\nRequired with at least 1 value in FieldMask's paths.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/companies", - // "request": { - // "$ref": "Company" - // }, - // "response": { - // "$ref": "Company" - // } - // } - -} - -// method id "partners.updateLeads": +} type V2UpdateLeadsCall struct { s *Service @@ -7163,15 +5433,15 @@ func (r *V2Service) UpdateLeads(lead *Lead) *V2UpdateLeadsCall { } // RequestMetadataExperimentIds sets the optional parameter -// "requestMetadata.experimentIds": Experiment IDs the current request -// belongs to. +// "requestMetadata.experimentIds": Experiment IDs the current request belongs +// to. func (c *V2UpdateLeadsCall) RequestMetadataExperimentIds(requestMetadataExperimentIds ...string) *V2UpdateLeadsCall { c.urlParams_.SetMulti("requestMetadata.experimentIds", append([]string{}, requestMetadataExperimentIds...)) return c } -// RequestMetadataLocale sets the optional parameter -// "requestMetadata.locale": Locale to use for the current request. +// RequestMetadataLocale sets the optional parameter "requestMetadata.locale": +// Locale to use for the current request. func (c *V2UpdateLeadsCall) RequestMetadataLocale(requestMetadataLocale string) *V2UpdateLeadsCall { c.urlParams_.Set("requestMetadata.locale", requestMetadataLocale) return c @@ -7184,9 +5454,9 @@ func (c *V2UpdateLeadsCall) RequestMetadataPartnersSessionId(requestMetadataPart return c } -// RequestMetadataTrafficSourceTrafficSourceId sets the optional -// parameter "requestMetadata.trafficSource.trafficSourceId": Identifier -// to indicate where the traffic comes from. +// RequestMetadataTrafficSourceTrafficSourceId sets the optional parameter +// "requestMetadata.trafficSource.trafficSourceId": Identifier to indicate +// where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -7196,8 +5466,8 @@ func (c *V2UpdateLeadsCall) RequestMetadataTrafficSourceTrafficSourceId(requestM } // RequestMetadataTrafficSourceTrafficSubId sets the optional parameter -// "requestMetadata.trafficSource.trafficSubId": Second level identifier -// to indicate where the traffic comes from. +// "requestMetadata.trafficSource.trafficSubId": Second level identifier to +// indicate where the traffic comes from. // An identifier has multiple letters created by a team which redirected // the // traffic to us. @@ -7207,23 +5477,23 @@ func (c *V2UpdateLeadsCall) RequestMetadataTrafficSourceTrafficSubId(requestMeta } // RequestMetadataUserOverridesIpAddress sets the optional parameter -// "requestMetadata.userOverrides.ipAddress": IP address to use instead -// of the user's geo-located IP address. +// "requestMetadata.userOverrides.ipAddress": IP address to use instead of the +// user's geo-located IP address. func (c *V2UpdateLeadsCall) RequestMetadataUserOverridesIpAddress(requestMetadataUserOverridesIpAddress string) *V2UpdateLeadsCall { c.urlParams_.Set("requestMetadata.userOverrides.ipAddress", requestMetadataUserOverridesIpAddress) return c } // RequestMetadataUserOverridesUserId sets the optional parameter -// "requestMetadata.userOverrides.userId": Logged-in user ID to -// impersonate instead of the user's ID. +// "requestMetadata.userOverrides.userId": Logged-in user ID to impersonate +// instead of the user's ID. func (c *V2UpdateLeadsCall) RequestMetadataUserOverridesUserId(requestMetadataUserOverridesUserId string) *V2UpdateLeadsCall { c.urlParams_.Set("requestMetadata.userOverrides.userId", requestMetadataUserOverridesUserId) return c } -// UpdateMask sets the optional parameter "updateMask": Standard field -// mask for the set of fields to be updated. +// UpdateMask sets the optional parameter "updateMask": Standard field mask for +// the set of fields to be updated. // Required with at least 1 value in FieldMask's paths. // Only `state` and `adwords_customer_id` are currently supported. func (c *V2UpdateLeadsCall) UpdateMask(updateMask string) *V2UpdateLeadsCall { @@ -7232,23 +5502,21 @@ func (c *V2UpdateLeadsCall) UpdateMask(updateMask string) *V2UpdateLeadsCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V2UpdateLeadsCall) Fields(s ...googleapi.Field) *V2UpdateLeadsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V2UpdateLeadsCall) Context(ctx context.Context) *V2UpdateLeadsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V2UpdateLeadsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7257,18 +5525,12 @@ func (c *V2UpdateLeadsCall) Header() http.Header { } func (c *V2UpdateLeadsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.lead) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/leads") @@ -7278,16 +5540,14 @@ func (c *V2UpdateLeadsCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "partners.updateLeads" call. -// Exactly one of *Lead or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Lead.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *V2UpdateLeadsCall) Do(opts ...googleapi.CallOption) (*Lead, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7295,17 +5555,17 @@ func (c *V2UpdateLeadsCall) Do(opts ...googleapi.CallOption) (*Lead, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Lead{ ServerResponse: googleapi.ServerResponse{ @@ -7318,63 +5578,4 @@ func (c *V2UpdateLeadsCall) Do(opts ...googleapi.CallOption) (*Lead, error) { return nil, err } return ret, nil - // { - // "description": "Updates the specified lead.", - // "flatPath": "v2/leads", - // "httpMethod": "PATCH", - // "id": "partners.updateLeads", - // "parameterOrder": [], - // "parameters": { - // "requestMetadata.experimentIds": { - // "description": "Experiment IDs the current request belongs to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "requestMetadata.locale": { - // "description": "Locale to use for the current request.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.partnersSessionId": { - // "description": "Google Partners session ID.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSourceId": { - // "description": "Identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.trafficSource.trafficSubId": { - // "description": "Second level identifier to indicate where the traffic comes from.\nAn identifier has multiple letters created by a team which redirected the\ntraffic to us.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.ipAddress": { - // "description": "IP address to use instead of the user's geo-located IP address.", - // "location": "query", - // "type": "string" - // }, - // "requestMetadata.userOverrides.userId": { - // "description": "Logged-in user ID to impersonate instead of the user's ID.", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Standard field mask for the set of fields to be updated.\nRequired with at least 1 value in FieldMask's paths.\nOnly `state` and `adwords_customer_id` are currently supported.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/leads", - // "request": { - // "$ref": "Lead" - // }, - // "response": { - // "$ref": "Lead" - // } - // } - } diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index e0ebe1ba5d8..3d232fcb8f3 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -1652,7 +1652,7 @@ func (c *PartnersProductsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "paymentsresellersubscription.partners.products.list" call. @@ -1778,7 +1778,7 @@ func (c *PartnersPromotionsFindEligibleCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "paymentsresellersubscription.partners.promotions.findEligible" call. @@ -1946,7 +1946,7 @@ func (c *PartnersPromotionsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "paymentsresellersubscription.partners.promotions.list" call. @@ -2072,7 +2072,7 @@ func (c *PartnersSubscriptionsCancelCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "paymentsresellersubscription.partners.subscriptions.cancel" call. @@ -2187,7 +2187,7 @@ func (c *PartnersSubscriptionsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "paymentsresellersubscription.partners.subscriptions.create" call. @@ -2294,7 +2294,7 @@ func (c *PartnersSubscriptionsEntitleCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "paymentsresellersubscription.partners.subscriptions.entitle" call. @@ -2400,7 +2400,7 @@ func (c *PartnersSubscriptionsExtendCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "paymentsresellersubscription.partners.subscriptions.extend" call. @@ -2510,7 +2510,7 @@ func (c *PartnersSubscriptionsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "paymentsresellersubscription.partners.subscriptions.get" call. @@ -2627,7 +2627,7 @@ func (c *PartnersSubscriptionsProvisionCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parentid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "paymentsresellersubscription.partners.subscriptions.provision" call. @@ -2735,7 +2735,7 @@ func (c *PartnersSubscriptionsUndoCancelCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "paymentsresellersubscription.partners.subscriptions.undoCancel" call. diff --git a/people/v1/people-gen.go b/people/v1/people-gen.go index 977b4dbf301..48d915d6ae3 100644 --- a/people/v1/people-gen.go +++ b/people/v1/people-gen.go @@ -2784,7 +2784,7 @@ func (c *ContactGroupsBatchGetCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.contactGroups.batchGet" call. @@ -2883,7 +2883,7 @@ func (c *ContactGroupsCreateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.contactGroups.create" call. @@ -2987,7 +2987,7 @@ func (c *ContactGroupsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.contactGroups.delete" call. @@ -3112,7 +3112,7 @@ func (c *ContactGroupsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.contactGroups.get" call. @@ -3247,7 +3247,7 @@ func (c *ContactGroupsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.contactGroups.list" call. @@ -3376,7 +3376,7 @@ func (c *ContactGroupsUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.contactGroups.update" call. @@ -3480,7 +3480,7 @@ func (c *ContactGroupsMembersModifyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.contactGroups.members.modify" call. @@ -3584,7 +3584,7 @@ func (c *OtherContactsCopyOtherContactToMyContactsGroupCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.otherContacts.copyOtherContactToMyContactsGroup" call. @@ -3775,7 +3775,7 @@ func (c *OtherContactsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.otherContacts.list" call. @@ -3928,7 +3928,7 @@ func (c *OtherContactsSearchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.otherContacts.search" call. @@ -4024,7 +4024,7 @@ func (c *PeopleBatchCreateContactsCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.batchCreateContacts" call. @@ -4121,7 +4121,7 @@ func (c *PeopleBatchDeleteContactsCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.batchDeleteContacts" call. @@ -4218,7 +4218,7 @@ func (c *PeopleBatchUpdateContactsCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.batchUpdateContacts" call. @@ -4350,7 +4350,7 @@ func (c *PeopleCreateContactCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.createContact" call. @@ -4447,7 +4447,7 @@ func (c *PeopleDeleteContactCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.deleteContact" call. @@ -4577,7 +4577,7 @@ func (c *PeopleDeleteContactPhotoCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.deleteContactPhoto" call. @@ -4733,7 +4733,7 @@ func (c *PeopleGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.get" call. @@ -4890,7 +4890,7 @@ func (c *PeopleGetBatchGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.getBatchGet" call. @@ -5079,7 +5079,7 @@ func (c *PeopleListDirectoryPeopleCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.listDirectoryPeople" call. @@ -5255,7 +5255,7 @@ func (c *PeopleSearchContactsCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.searchContacts" call. @@ -5425,7 +5425,7 @@ func (c *PeopleSearchDirectoryPeopleCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.searchDirectoryPeople" call. @@ -5609,7 +5609,7 @@ func (c *PeopleUpdateContactCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.updateContact" call. @@ -5711,7 +5711,7 @@ func (c *PeopleUpdateContactPhotoCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.updateContactPhoto" call. @@ -5934,7 +5934,7 @@ func (c *PeopleConnectionsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "people.people.connections.list" call. diff --git a/places/v1/places-api.json b/places/v1/places-api.json index decc339a580..73d9c5463c0 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -276,7 +276,7 @@ } } }, - "revision": "20240825", + "revision": "20240916", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -1494,6 +1494,17 @@ }, "type": "object" }, + "GoogleMapsPlacesV1Polyline": { + "description": "A route polyline. Only supports an [encoded polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm), which can be passed as a string and includes compression with minimal lossiness. This is the Routes API default output.", + "id": "GoogleMapsPlacesV1Polyline", + "properties": { + "encodedPolyline": { + "description": "An [encoded polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm), as returned by the [Routes API by default](https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding). See the [encoder](https://developers.google.com/maps/documentation/utilities/polylineutility) and [decoder](https://developers.google.com/maps/documentation/routes/polylinedecoder) tools.", + "type": "string" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1References": { "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Reference that the generative content is related to.", "id": "GoogleMapsPlacesV1References", @@ -1552,6 +1563,109 @@ }, "type": "object" }, + "GoogleMapsPlacesV1RouteModifiers": { + "description": "Encapsulates a set of optional conditions to satisfy when calculating the routes.", + "id": "GoogleMapsPlacesV1RouteModifiers", + "properties": { + "avoidFerries": { + "description": "Optional. When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.", + "type": "boolean" + }, + "avoidHighways": { + "description": "Optional. When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.", + "type": "boolean" + }, + "avoidIndoor": { + "description": "Optional. When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the `WALK` `TravelMode`.", + "type": "boolean" + }, + "avoidTolls": { + "description": "Optional. When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1RoutingParameters": { + "description": "Parameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results.", + "id": "GoogleMapsPlacesV1RoutingParameters", + "properties": { + "origin": { + "$ref": "GoogleTypeLatLng", + "description": "Optional. An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used." + }, + "routeModifiers": { + "$ref": "GoogleMapsPlacesV1RouteModifiers", + "description": "Optional. The route modifiers." + }, + "routingPreference": { + "description": "Optional. Specifies how to compute the routing summaries. The server attempts to use the selected routing preference to compute the route. The traffic aware routing preference is only available for the `DRIVE` or `TWO_WHEELER` `travelMode`.", + "enum": [ + "ROUTING_PREFERENCE_UNSPECIFIED", + "TRAFFIC_UNAWARE", + "TRAFFIC_AWARE", + "TRAFFIC_AWARE_OPTIMAL" + ], + "enumDescriptions": [ + "No routing preference specified. Default to `TRAFFIC_UNAWARE`.", + "Computes routes without taking live traffic conditions into consideration. Suitable when traffic conditions don't matter or are not applicable. Using this value produces the lowest latency. Note: For `TravelMode` `DRIVE` and `TWO_WHEELER`, the route and duration chosen are based on road network and average time-independent traffic conditions, not current road conditions. Consequently, routes may include roads that are temporarily closed. Results for a given request may vary over time due to changes in the road network, updated average traffic conditions, and the distributed nature of the service. Results may also vary between nearly-equivalent routes at any time or frequency.", + "Calculates routes taking live traffic conditions into consideration. In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to significantly reduce latency.", + "Calculates the routes taking live traffic conditions into consideration, without applying most performance optimizations. Using this value produces the highest latency." + ], + "type": "string" + }, + "travelMode": { + "description": "Optional. The travel mode.", + "enum": [ + "TRAVEL_MODE_UNSPECIFIED", + "DRIVE", + "BICYCLE", + "WALK", + "TWO_WHEELER" + ], + "enumDescriptions": [ + "No travel mode specified. Defaults to `DRIVE`.", + "Travel by passenger car.", + "Travel by bicycle. Not supported with `search_along_route_parameters`.", + "Travel by walking. Not supported with `search_along_route_parameters`.", + "Motorized two wheeled vehicles of all kinds such as scooters and motorcycles. Note that this is distinct from the `BICYCLE` travel mode which covers human-powered transport. Not supported with `search_along_route_parameters`. Only supported in those countries listed at [Countries and regions supported for two-wheeled vehicles](https://developers.google.com/maps/documentation/routes/coverage-two-wheeled)." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1RoutingSummary": { + "description": "The duration and distance from the routing origin to a place in the response, and a second leg from that place to the destination, if requested. **Note:** Adding `routingSummaries` in the field mask without also including either the `routingParameters.origin` parameter or the `searchAlongRouteParameters.polyline.encodedPolyline` parameter in the request causes an error.", + "id": "GoogleMapsPlacesV1RoutingSummary", + "properties": { + "legs": { + "description": "The legs of the trip. When you calculate travel duration and distance from a set origin, `legs` contains a single leg containing the duration and distance from the origin to the destination. When you do a search along route, `legs` contains two legs: one from the origin to place, and one from the place to the destination.", + "items": { + "$ref": "GoogleMapsPlacesV1RoutingSummaryLeg" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1RoutingSummaryLeg": { + "description": "A leg is a single portion of a journey from one location to another.", + "id": "GoogleMapsPlacesV1RoutingSummaryLeg", + "properties": { + "distanceMeters": { + "description": "The distance of this leg of the trip.", + "format": "int32", + "type": "integer" + }, + "duration": { + "description": "The time it takes to complete this leg of the trip.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1SearchNearbyRequest": { "description": "Request proto for Search Nearby. ", "id": "GoogleMapsPlacesV1SearchNearbyRequest", @@ -1614,6 +1728,10 @@ "regionCode": { "description": "The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.", "type": "string" + }, + "routingParameters": { + "$ref": "GoogleMapsPlacesV1RoutingParameters", + "description": "Optional. Parameters that affect the routing to the search results." } }, "type": "object" @@ -1639,6 +1757,13 @@ "$ref": "GoogleMapsPlacesV1Place" }, "type": "array" + }, + "routingSummaries": { + "description": "A list of routing summaries where each entry associates to the corresponding place in the same index in the `places` field. If the routing summary is not available for one of the places, it will contain an empty entry. This list should have as many entries as the list of places if requested.", + "items": { + "$ref": "GoogleMapsPlacesV1RoutingSummary" + }, + "type": "array" } }, "type": "object" @@ -1732,6 +1857,14 @@ "description": "The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.", "type": "string" }, + "routingParameters": { + "$ref": "GoogleMapsPlacesV1RoutingParameters", + "description": "Optional. Additional parameters for routing to results." + }, + "searchAlongRouteParameters": { + "$ref": "GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters", + "description": "Optional. Additional parameters proto for searching along a route." + }, "strictTypeFiltering": { "description": "Used to set strict type filtering for included_type. If set to true, only results of the same type will be returned. Default to false.", "type": "boolean" @@ -1812,6 +1945,17 @@ }, "type": "object" }, + "GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters": { + "description": "Specifies a precalculated polyline from the [Routes API](https://developers.google.com/maps/documentation/routes) defining the route to search. Searching along a route is similar to using the `locationBias` or `locationRestriction` request option to bias the search results. However, while the `locationBias` and `locationRestriction` options let you specify a region to bias the search results, this option lets you bias the results along a trip route. Results are not guaranteed to be along the route provided, but rather are ranked within the search area defined by the polyline and, optionally, by the `locationBias` or `locationRestriction` based on minimal detour times from origin to destination. The results might be along an alternate route, especially if the provided polyline does not define an optimal route from origin to destination.", + "id": "GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters", + "properties": { + "polyline": { + "$ref": "GoogleMapsPlacesV1Polyline", + "description": "Required. The route polyline." + } + }, + "type": "object" + }, "GoogleMapsPlacesV1SearchTextResponse": { "description": "Response proto for SearchText. ", "id": "GoogleMapsPlacesV1SearchTextResponse", @@ -1833,6 +1977,13 @@ "$ref": "GoogleMapsPlacesV1Place" }, "type": "array" + }, + "routingSummaries": { + "description": "A list of routing summaries where each entry associates to the corresponding place in the same index in the `places` field. If the routing summary is not available for one of the places, it will contain an empty entry. This list will have as many entries as the list of places if requested.", + "items": { + "$ref": "GoogleMapsPlacesV1RoutingSummary" + }, + "type": "array" } }, "type": "object" diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index afe219233e1..bb864419f19 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -1777,6 +1777,40 @@ func (s GoogleMapsPlacesV1PlaceSubDestination) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1Polyline: A route polyline. Only supports an encoded +// polyline +// (https://developers.google.com/maps/documentation/utilities/polylinealgorithm), +// which can be passed as a string and includes compression with minimal +// lossiness. This is the Routes API default output. +type GoogleMapsPlacesV1Polyline struct { + // EncodedPolyline: An encoded polyline + // (https://developers.google.com/maps/documentation/utilities/polylinealgorithm), + // as returned by the Routes API by default + // (https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding). + // See the encoder + // (https://developers.google.com/maps/documentation/utilities/polylineutility) + // and decoder + // (https://developers.google.com/maps/documentation/routes/polylinedecoder) + // tools. + EncodedPolyline string `json:"encodedPolyline,omitempty"` + // ForceSendFields is a list of field names (e.g. "EncodedPolyline") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EncodedPolyline") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1Polyline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1Polyline + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1References: Experimental: See // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative // for more details. Reference that the generative content is related to. @@ -1856,6 +1890,168 @@ func (s *GoogleMapsPlacesV1Review) UnmarshalJSON(data []byte) error { return nil } +// GoogleMapsPlacesV1RouteModifiers: Encapsulates a set of optional conditions +// to satisfy when calculating the routes. +type GoogleMapsPlacesV1RouteModifiers struct { + // AvoidFerries: Optional. When set to true, avoids ferries where reasonable, + // giving preference to routes not containing ferries. Applies only to the + // `DRIVE` and `TWO_WHEELER` `TravelMode`. + AvoidFerries bool `json:"avoidFerries,omitempty"` + // AvoidHighways: Optional. When set to true, avoids highways where reasonable, + // giving preference to routes not containing highways. Applies only to the + // `DRIVE` and `TWO_WHEELER` `TravelMode`. + AvoidHighways bool `json:"avoidHighways,omitempty"` + // AvoidIndoor: Optional. When set to true, avoids navigating indoors where + // reasonable, giving preference to routes not containing indoor navigation. + // Applies only to the `WALK` `TravelMode`. + AvoidIndoor bool `json:"avoidIndoor,omitempty"` + // AvoidTolls: Optional. When set to true, avoids toll roads where reasonable, + // giving preference to routes not containing toll roads. Applies only to the + // `DRIVE` and `TWO_WHEELER` `TravelMode`. + AvoidTolls bool `json:"avoidTolls,omitempty"` + // ForceSendFields is a list of field names (e.g. "AvoidFerries") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AvoidFerries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RouteModifiers) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RouteModifiers + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1RoutingParameters: Parameters to configure the routing +// calculations to the places in the response, both along a route (where result +// ranking will be influenced) and for calculating travel times on results. +type GoogleMapsPlacesV1RoutingParameters struct { + // Origin: Optional. An explicit routing origin that overrides the origin + // defined in the polyline. By default, the polyline origin is used. + Origin *GoogleTypeLatLng `json:"origin,omitempty"` + // RouteModifiers: Optional. The route modifiers. + RouteModifiers *GoogleMapsPlacesV1RouteModifiers `json:"routeModifiers,omitempty"` + // RoutingPreference: Optional. Specifies how to compute the routing summaries. + // The server attempts to use the selected routing preference to compute the + // route. The traffic aware routing preference is only available for the + // `DRIVE` or `TWO_WHEELER` `travelMode`. + // + // Possible values: + // "ROUTING_PREFERENCE_UNSPECIFIED" - No routing preference specified. + // Default to `TRAFFIC_UNAWARE`. + // "TRAFFIC_UNAWARE" - Computes routes without taking live traffic conditions + // into consideration. Suitable when traffic conditions don't matter or are not + // applicable. Using this value produces the lowest latency. Note: For + // `TravelMode` `DRIVE` and `TWO_WHEELER`, the route and duration chosen are + // based on road network and average time-independent traffic conditions, not + // current road conditions. Consequently, routes may include roads that are + // temporarily closed. Results for a given request may vary over time due to + // changes in the road network, updated average traffic conditions, and the + // distributed nature of the service. Results may also vary between + // nearly-equivalent routes at any time or frequency. + // "TRAFFIC_AWARE" - Calculates routes taking live traffic conditions into + // consideration. In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations + // are applied to significantly reduce latency. + // "TRAFFIC_AWARE_OPTIMAL" - Calculates the routes taking live traffic + // conditions into consideration, without applying most performance + // optimizations. Using this value produces the highest latency. + RoutingPreference string `json:"routingPreference,omitempty"` + // TravelMode: Optional. The travel mode. + // + // Possible values: + // "TRAVEL_MODE_UNSPECIFIED" - No travel mode specified. Defaults to `DRIVE`. + // "DRIVE" - Travel by passenger car. + // "BICYCLE" - Travel by bicycle. Not supported with + // `search_along_route_parameters`. + // "WALK" - Travel by walking. Not supported with + // `search_along_route_parameters`. + // "TWO_WHEELER" - Motorized two wheeled vehicles of all kinds such as + // scooters and motorcycles. Note that this is distinct from the `BICYCLE` + // travel mode which covers human-powered transport. Not supported with + // `search_along_route_parameters`. Only supported in those countries listed at + // [Countries and regions supported for two-wheeled + // vehicles](https://developers.google.com/maps/documentation/routes/coverage-tw + // o-wheeled). + TravelMode string `json:"travelMode,omitempty"` + // ForceSendFields is a list of field names (e.g. "Origin") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Origin") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RoutingParameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RoutingParameters + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1RoutingSummary: The duration and distance from the routing +// origin to a place in the response, and a second leg from that place to the +// destination, if requested. **Note:** Adding `routingSummaries` in the field +// mask without also including either the `routingParameters.origin` parameter +// or the `searchAlongRouteParameters.polyline.encodedPolyline` parameter in +// the request causes an error. +type GoogleMapsPlacesV1RoutingSummary struct { + // Legs: The legs of the trip. When you calculate travel duration and distance + // from a set origin, `legs` contains a single leg containing the duration and + // distance from the origin to the destination. When you do a search along + // route, `legs` contains two legs: one from the origin to place, and one from + // the place to the destination. + Legs []*GoogleMapsPlacesV1RoutingSummaryLeg `json:"legs,omitempty"` + // ForceSendFields is a list of field names (e.g. "Legs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Legs") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RoutingSummary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RoutingSummary + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1RoutingSummaryLeg: A leg is a single portion of a journey +// from one location to another. +type GoogleMapsPlacesV1RoutingSummaryLeg struct { + // DistanceMeters: The distance of this leg of the trip. + DistanceMeters int64 `json:"distanceMeters,omitempty"` + // Duration: The time it takes to complete this leg of the trip. + Duration string `json:"duration,omitempty"` + // ForceSendFields is a list of field names (e.g. "DistanceMeters") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DistanceMeters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RoutingSummaryLeg) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RoutingSummaryLeg + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1SearchNearbyRequest: Request proto for Search Nearby. type GoogleMapsPlacesV1SearchNearbyRequest struct { // ExcludedPrimaryTypes: Excluded primary Place type (e.g. "restaurant" or @@ -1941,6 +2137,9 @@ type GoogleMapsPlacesV1SearchNearbyRequest struct { // https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. // Note that 3-digit region codes are not currently supported. RegionCode string `json:"regionCode,omitempty"` + // RoutingParameters: Optional. Parameters that affect the routing to the + // search results. + RoutingParameters *GoogleMapsPlacesV1RoutingParameters `json:"routingParameters,omitempty"` // ForceSendFields is a list of field names (e.g. "ExcludedPrimaryTypes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1987,6 +2186,12 @@ type GoogleMapsPlacesV1SearchNearbyResponse struct { // Places: A list of places that meets user's requirements like places types, // number of places and specific location restriction. Places []*GoogleMapsPlacesV1Place `json:"places,omitempty"` + // RoutingSummaries: A list of routing summaries where each entry associates to + // the corresponding place in the same index in the `places` field. If the + // routing summary is not available for one of the places, it will contain an + // empty entry. This list should have as many entries as the list of places if + // requested. + RoutingSummaries []*GoogleMapsPlacesV1RoutingSummary `json:"routingSummaries,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -2094,6 +2299,11 @@ type GoogleMapsPlacesV1SearchTextRequest struct { // https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. // Note that 3-digit region codes are not currently supported. RegionCode string `json:"regionCode,omitempty"` + // RoutingParameters: Optional. Additional parameters for routing to results. + RoutingParameters *GoogleMapsPlacesV1RoutingParameters `json:"routingParameters,omitempty"` + // SearchAlongRouteParameters: Optional. Additional parameters proto for + // searching along a route. + SearchAlongRouteParameters *GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters `json:"searchAlongRouteParameters,omitempty"` // StrictTypeFiltering: Used to set strict type filtering for included_type. If // set to true, only results of the same type will be returned. Default to // false. @@ -2254,6 +2464,40 @@ func (s GoogleMapsPlacesV1SearchTextRequestLocationRestriction) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters: Specifies a +// precalculated polyline from the Routes API +// (https://developers.google.com/maps/documentation/routes) defining the route +// to search. Searching along a route is similar to using the `locationBias` or +// `locationRestriction` request option to bias the search results. However, +// while the `locationBias` and `locationRestriction` options let you specify a +// region to bias the search results, this option lets you bias the results +// along a trip route. Results are not guaranteed to be along the route +// provided, but rather are ranked within the search area defined by the +// polyline and, optionally, by the `locationBias` or `locationRestriction` +// based on minimal detour times from origin to destination. The results might +// be along an alternate route, especially if the provided polyline does not +// define an optimal route from origin to destination. +type GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters struct { + // Polyline: Required. The route polyline. + Polyline *GoogleMapsPlacesV1Polyline `json:"polyline,omitempty"` + // ForceSendFields is a list of field names (e.g. "Polyline") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Polyline") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1SearchTextResponse: Response proto for SearchText. type GoogleMapsPlacesV1SearchTextResponse struct { // ContextualContents: Experimental: See @@ -2271,6 +2515,12 @@ type GoogleMapsPlacesV1SearchTextResponse struct { NextPageToken string `json:"nextPageToken,omitempty"` // Places: A list of places that meet the user's text search criteria. Places []*GoogleMapsPlacesV1Place `json:"places,omitempty"` + // RoutingSummaries: A list of routing summaries where each entry associates to + // the corresponding place in the same index in the `places` field. If the + // routing summary is not available for one of the places, it will contain an + // empty entry. This list will have as many entries as the list of places if + // requested. + RoutingSummaries []*GoogleMapsPlacesV1RoutingSummary `json:"routingSummaries,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -2486,7 +2736,7 @@ func (c *PlacesAutocompleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "places.places.autocomplete" call. @@ -2640,7 +2890,7 @@ func (c *PlacesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "places.places.get" call. @@ -2735,7 +2985,7 @@ func (c *PlacesSearchNearbyCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "places.places.searchNearby" call. @@ -2830,7 +3080,7 @@ func (c *PlacesSearchTextCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "places.places.searchText" call. @@ -3004,7 +3254,7 @@ func (c *PlacesPhotosGetMediaCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "places.places.photos.getMedia" call. diff --git a/playablelocations/v3/playablelocations-gen.go b/playablelocations/v3/playablelocations-gen.go index 68a73d2f245..fc558f106a1 100644 --- a/playablelocations/v3/playablelocations-gen.go +++ b/playablelocations/v3/playablelocations-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/maps/contact-sales/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // playablelocationsService, err := playablelocations.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // playablelocationsService, err := playablelocations.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // playablelocationsService, err := playablelocations.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package playablelocations // import "google.golang.org/api/playablelocations/v3" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,17 +84,21 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "playablelocations:v3" const apiName = "playablelocations" const apiVersion = "v3" const basePath = "https://playablelocations.googleapis.com/" +const basePathTemplate = "https://playablelocations.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://playablelocations.mtls.googleapis.com/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -133,18 +151,16 @@ type V3Service struct { s *Service } -// GoogleMapsPlayablelocationsV3Impression: Encapsulates impression -// event details. +// GoogleMapsPlayablelocationsV3Impression: Encapsulates impression event +// details. type GoogleMapsPlayablelocationsV3Impression struct { - // GameObjectType: An arbitrary, developer-defined type identifier for - // each type of game object used in your game. Since players interact - // with differ types of game objects in different ways, this field - // allows you to segregate impression data by type for analysis. You - // should assign a unique `game_object_type` ID to represent a distinct - // type of game object in your game. For example, 1=monster location, - // 2=powerup location. + // GameObjectType: An arbitrary, developer-defined type identifier for each + // type of game object used in your game. Since players interact with differ + // types of game objects in different ways, this field allows you to segregate + // impression data by type for analysis. You should assign a unique + // `game_object_type` ID to represent a distinct type of game object in your + // game. For example, 1=monster location, 2=powerup location. GameObjectType int64 `json:"gameObjectType,omitempty"` - // ImpressionType: Required. The type of impression event. // // Possible values: @@ -152,366 +168,291 @@ type GoogleMapsPlayablelocationsV3Impression struct { // "PRESENTED" - The playable location was presented to a player. // "INTERACTED" - A player interacted with the playable location. ImpressionType string `json:"impressionType,omitempty"` - // LocationName: Required. The name of the playable location. LocationName string `json:"locationName,omitempty"` - // ForceSendFields is a list of field names (e.g. "GameObjectType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GameObjectType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GameObjectType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3Impression) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3Impression) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3Impression - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleMapsPlayablelocationsV3LogImpressionsRequest: A request for -// logging impressions. +// GoogleMapsPlayablelocationsV3LogImpressionsRequest: A request for logging +// impressions. type GoogleMapsPlayablelocationsV3LogImpressionsRequest struct { - // ClientInfo: Required. Information about the client device. For - // example, device model and operating system. + // ClientInfo: Required. Information about the client device. For example, + // device model and operating system. ClientInfo *GoogleMapsUnityClientInfo `json:"clientInfo,omitempty"` - - // Impressions: Required. Impression event details. The maximum number - // of impression reports that you can log at once is 50. + // Impressions: Required. Impression event details. The maximum number of + // impression reports that you can log at once is 50. Impressions []*GoogleMapsPlayablelocationsV3Impression `json:"impressions,omitempty"` - - // RequestId: Required. A string that uniquely identifies the log - // impressions request. This allows you to detect duplicate requests. We - // recommend that you use UUIDs for this value. The value must not - // exceed 50 characters. You should reuse the `request_id` only when - // retrying a request in case of failure. In this case, the request must - // be identical to the one that failed. + // RequestId: Required. A string that uniquely identifies the log impressions + // request. This allows you to detect duplicate requests. We recommend that you + // use UUIDs for this value. The value must not exceed 50 characters. You + // should reuse the `request_id` only when retrying a request in case of + // failure. In this case, the request must be identical to the one that failed. RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3LogImpressionsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3LogImpressionsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3LogImpressionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleMapsPlayablelocationsV3LogImpressionsResponse: A response for -// the LogImpressions method. This method returns no data upon success. +// GoogleMapsPlayablelocationsV3LogImpressionsResponse: A response for the +// LogImpressions method. This method returns no data upon success. type GoogleMapsPlayablelocationsV3LogImpressionsResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// GoogleMapsPlayablelocationsV3LogPlayerReportsRequest: A request for -// logging your player's bad location reports. +// GoogleMapsPlayablelocationsV3LogPlayerReportsRequest: A request for logging +// your player's bad location reports. type GoogleMapsPlayablelocationsV3LogPlayerReportsRequest struct { - // ClientInfo: Required. Information about the client device (for - // example, device model and operating system). + // ClientInfo: Required. Information about the client device (for example, + // device model and operating system). ClientInfo *GoogleMapsUnityClientInfo `json:"clientInfo,omitempty"` - // PlayerReports: Required. Player reports. The maximum number of player // reports that you can log at once is 50. PlayerReports []*GoogleMapsPlayablelocationsV3PlayerReport `json:"playerReports,omitempty"` - // RequestId: Required. A string that uniquely identifies the log player - // reports request. This allows you to detect duplicate requests. We - // recommend that you use UUIDs for this value. The value must not - // exceed 50 characters. You should reuse the `request_id` only when - // retrying a request in the case of a failure. In that case, the - // request must be identical to the one that failed. + // reports request. This allows you to detect duplicate requests. We recommend + // that you use UUIDs for this value. The value must not exceed 50 characters. + // You should reuse the `request_id` only when retrying a request in the case + // of a failure. In that case, the request must be identical to the one that + // failed. RequestId string `json:"requestId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3LogPlayerReportsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3LogPlayerReportsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3LogPlayerReportsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleMapsPlayablelocationsV3LogPlayerReportsResponse: A response for -// the LogPlayerReports method. This method returns no data upon -// success. +// GoogleMapsPlayablelocationsV3LogPlayerReportsResponse: A response for the +// LogPlayerReports method. This method returns no data upon success. type GoogleMapsPlayablelocationsV3LogPlayerReportsResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// GoogleMapsPlayablelocationsV3PlayerReport: A report submitted by a -// player about a playable location that is considered inappropriate for -// use in the game. +// GoogleMapsPlayablelocationsV3PlayerReport: A report submitted by a player +// about a playable location that is considered inappropriate for use in the +// game. type GoogleMapsPlayablelocationsV3PlayerReport struct { - // LanguageCode: Language code (in BCP-47 format) indicating the - // language of the freeform description provided in `reason_details`. - // Examples are "en", "en-US" or "ja-Latn". For more information, see + // LanguageCode: Language code (in BCP-47 format) indicating the language of + // the freeform description provided in `reason_details`. Examples are "en", + // "en-US" or "ja-Latn". For more information, see // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. LanguageCode string `json:"languageCode,omitempty"` - // LocationName: Required. The name of the playable location. LocationName string `json:"locationName,omitempty"` - - // ReasonDetails: Required. A free-form description detailing why the - // playable location is considered bad. + // ReasonDetails: Required. A free-form description detailing why the playable + // location is considered bad. ReasonDetails string `json:"reasonDetails,omitempty"` - // Reasons: Required. One or more reasons why this playable location is // considered bad. // // Possible values: // "BAD_LOCATION_REASON_UNSPECIFIED" - Unspecified reason. Do not use. // "OTHER" - The reason isn't one of the reasons in this enumeration. - // "NOT_PEDESTRIAN_ACCESSIBLE" - The playable location isn't - // accessible to pedestrians. For example, if it's in the middle of a - // highway. - // "NOT_OPEN_TO_PUBLIC" - The playable location isn't open to the - // public. For example, a private office building. - // "PERMANENTLY_CLOSED" - The playable location is permanently closed. - // For example, when a business has been shut down. + // "NOT_PEDESTRIAN_ACCESSIBLE" - The playable location isn't accessible to + // pedestrians. For example, if it's in the middle of a highway. + // "NOT_OPEN_TO_PUBLIC" - The playable location isn't open to the public. For + // example, a private office building. + // "PERMANENTLY_CLOSED" - The playable location is permanently closed. For + // example, when a business has been shut down. // "TEMPORARILY_INACCESSIBLE" - The playable location is temporarily - // inaccessible. For example, when a business has closed for - // renovations. + // inaccessible. For example, when a business has closed for renovations. Reasons []string `json:"reasons,omitempty"` - // ForceSendFields is a list of field names (e.g. "LanguageCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LanguageCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LanguageCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3PlayerReport) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3PlayerReport) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3PlayerReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleMapsPlayablelocationsV3SampleAreaFilter: Specifies the area to -// search for playable locations. +// GoogleMapsPlayablelocationsV3SampleAreaFilter: Specifies the area to search +// for playable locations. type GoogleMapsPlayablelocationsV3SampleAreaFilter struct { // S2CellId: Required. The S2 cell ID of the area you want. This must be - // between cell level 11 and 14 (inclusive). S2 cells are 64-bit - // integers that identify areas on the Earth. They are hierarchical, and - // can therefore be used for spatial indexing. The S2 geometry library - // is available in a number of languages: * C++ - // (https://github.com/google/s2geometry) * Java + // between cell level 11 and 14 (inclusive). S2 cells are 64-bit integers that + // identify areas on the Earth. They are hierarchical, and can therefore be + // used for spatial indexing. The S2 geometry library is available in a number + // of languages: * C++ (https://github.com/google/s2geometry) * Java // (https://github.com/google/s2-geometry-library-java) * Go // (https://github.com/golang/geo) * Python // (https://github.com/google/s2geometry/tree/master/src/python) S2CellId uint64 `json:"s2CellId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "S2CellId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "S2CellId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "S2CellId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3SampleAreaFilter) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3SampleAreaFilter) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3SampleAreaFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleMapsPlayablelocationsV3SampleCriterion: Encapsulates a filter // criterion for searching for a set of playable locations. type GoogleMapsPlayablelocationsV3SampleCriterion struct { - // FieldsToReturn: Specifies which `PlayableLocation` fields are - // returned. `name` (which is used for logging impressions), - // `center_point` and `place_id` (or `plus_code`) are always returned. - // The following fields are omitted unless you specify them here: * - // snapped_point * types Note: The more fields you include, the more - // expensive in terms of data and associated latency your query will be. + // FieldsToReturn: Specifies which `PlayableLocation` fields are returned. + // `name` (which is used for logging impressions), `center_point` and + // `place_id` (or `plus_code`) are always returned. The following fields are + // omitted unless you specify them here: * snapped_point * types Note: The more + // fields you include, the more expensive in terms of data and associated + // latency your query will be. FieldsToReturn string `json:"fieldsToReturn,omitempty"` - - // Filter: Specifies filtering options, and specifies what will be - // included in the result set. + // Filter: Specifies filtering options, and specifies what will be included in + // the result set. Filter *GoogleMapsPlayablelocationsV3SampleFilter `json:"filter,omitempty"` - - // GameObjectType: Required. An arbitrary, developer-defined identifier - // of the type of game object that the playable location is used for. - // This field allows you to specify criteria per game object type when - // searching for playable locations. You should assign a unique - // `game_object_type` ID across all `request_criteria` to represent a - // distinct type of game object. For example, 1=monster location, - // 2=powerup location. The response contains a map. + // GameObjectType: Required. An arbitrary, developer-defined identifier of the + // type of game object that the playable location is used for. This field + // allows you to specify criteria per game object type when searching for + // playable locations. You should assign a unique `game_object_type` ID across + // all `request_criteria` to represent a distinct type of game object. For + // example, 1=monster location, 2=powerup location. The response contains a + // map. GameObjectType int64 `json:"gameObjectType,omitempty"` - // ForceSendFields is a list of field names (e.g. "FieldsToReturn") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FieldsToReturn") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FieldsToReturn") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3SampleCriterion) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3SampleCriterion) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3SampleCriterion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleMapsPlayablelocationsV3SampleFilter: Specifies the filters to -// use when searching for playable locations. +// GoogleMapsPlayablelocationsV3SampleFilter: Specifies the filters to use when +// searching for playable locations. type GoogleMapsPlayablelocationsV3SampleFilter struct { - // IncludedTypes: Restricts the set of playable locations to just the - // types (/maps/documentation/gaming/tt/types) that you want. + // IncludedTypes: Restricts the set of playable locations to just the types + // (/maps/documentation/gaming/tt/types) that you want. IncludedTypes []string `json:"includedTypes,omitempty"` - - // MaxLocationCount: Specifies the maximum number of playable locations - // to return. This value must not be greater than 1000. The default - // value is 100. Only the top-ranking playable locations are returned. + // MaxLocationCount: Specifies the maximum number of playable locations to + // return. This value must not be greater than 1000. The default value is 100. + // Only the top-ranking playable locations are returned. MaxLocationCount int64 `json:"maxLocationCount,omitempty"` - // Spacing: A set of options that control the spacing between playable // locations. By default the minimum distance between locations is 200m. Spacing *GoogleMapsPlayablelocationsV3SampleSpacingOptions `json:"spacing,omitempty"` - // ForceSendFields is a list of field names (e.g. "IncludedTypes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IncludedTypes") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IncludedTypes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3SampleFilter) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3SampleFilter) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3SampleFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleMapsPlayablelocationsV3SamplePlayableLocation: A geographical -// point suitable for placing game objects in location-based games. +// GoogleMapsPlayablelocationsV3SamplePlayableLocation: A geographical point +// suitable for placing game objects in location-based games. type GoogleMapsPlayablelocationsV3SamplePlayableLocation struct { - // CenterPoint: Required. The latitude and longitude associated with the - // center of the playable location. By default, the set of playable - // locations returned from SamplePlayableLocations use center-point - // coordinates. + // CenterPoint: Required. The latitude and longitude associated with the center + // of the playable location. By default, the set of playable locations returned + // from SamplePlayableLocations use center-point coordinates. CenterPoint *GoogleTypeLatLng `json:"centerPoint,omitempty"` - // Name: Required. The name of this playable location. Name string `json:"name,omitempty"` - // PlaceId: A [place ID] (https://developers.google.com/places/place-id) PlaceId string `json:"placeId,omitempty"` - // PlusCode: A [plus code] (http://openlocationcode.com) PlusCode string `json:"plusCode,omitempty"` - - // SnappedPoint: The playable location's coordinates, snapped to the - // sidewalk of the nearest road, if a nearby road exists. + // SnappedPoint: The playable location's coordinates, snapped to the sidewalk + // of the nearest road, if a nearby road exists. SnappedPoint *GoogleTypeLatLng `json:"snappedPoint,omitempty"` - // Types: A collection of Playable Location Types - // (/maps/documentation/gaming/tt/types) for this playable location. The - // first type in the collection is the primary type. Type information - // might not be available for all playable locations. + // (/maps/documentation/gaming/tt/types) for this playable location. The first + // type in the collection is the primary type. Type information might not be + // available for all playable locations. Types []string `json:"types,omitempty"` - // ForceSendFields is a list of field names (e.g. "CenterPoint") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CenterPoint") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CenterPoint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3SamplePlayableLocation) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3SamplePlayableLocation) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3SamplePlayableLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleMapsPlayablelocationsV3SamplePlayableLocationList: A list of @@ -519,183 +460,147 @@ func (s *GoogleMapsPlayablelocationsV3SamplePlayableLocation) MarshalJSON() ([]b type GoogleMapsPlayablelocationsV3SamplePlayableLocationList struct { // Locations: A list of playable locations for this game object type. Locations []*GoogleMapsPlayablelocationsV3SamplePlayableLocation `json:"locations,omitempty"` - // ForceSendFields is a list of field names (e.g. "Locations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3SamplePlayableLocationList) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3SamplePlayableLocationList) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3SamplePlayableLocationList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest: Life of -// a query: - When a game starts in a new location, your game server -// issues a SamplePlayableLocations request. The request specifies the -// S2 cell, and contains one or more "criteria" for filtering: - -// Criterion 0: i locations for long-lived bases, or level 0 monsters, -// or... - Criterion 1: j locations for short-lived bases, or level 1 -// monsters, ... - Criterion 2: k locations for random objects. - etc -// (up to 5 criterion may be specified). `PlayableLocationList` will -// then contain mutually exclusive lists of `PlayableLocation` objects -// that satisfy each of the criteria. Think of it as a collection of -// real-world locations that you can then associate with your game -// state. Note: These points are impermanent in nature. E.g, parks can -// close, and places can be removed. The response specifies how long you -// can expect the playable locations to last. Once they expire, you -// should query the `samplePlayableLocations` API again to get a fresh -// view of the real world. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest: Life of a +// query: - When a game starts in a new location, your game server issues a +// SamplePlayableLocations request. The request specifies the S2 cell, and +// contains one or more "criteria" for filtering: - Criterion 0: i locations +// for long-lived bases, or level 0 monsters, or... - Criterion 1: j locations +// for short-lived bases, or level 1 monsters, ... - Criterion 2: k locations +// for random objects. - etc (up to 5 criterion may be specified). +// `PlayableLocationList` will then contain mutually exclusive lists of +// `PlayableLocation` objects that satisfy each of the criteria. Think of it as +// a collection of real-world locations that you can then associate with your +// game state. Note: These points are impermanent in nature. E.g, parks can +// close, and places can be removed. The response specifies how long you can +// expect the playable locations to last. Once they expire, you should query +// the `samplePlayableLocations` API again to get a fresh view of the real +// world. type GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest struct { - // AreaFilter: Required. Specifies the area to search within for - // playable locations. + // AreaFilter: Required. Specifies the area to search within for playable + // locations. AreaFilter *GoogleMapsPlayablelocationsV3SampleAreaFilter `json:"areaFilter,omitempty"` - - // Criteria: Required. Specifies one or more (up to 5) criteria for - // filtering the returned playable locations. + // Criteria: Required. Specifies one or more (up to 5) criteria for filtering + // the returned playable locations. Criteria []*GoogleMapsPlayablelocationsV3SampleCriterion `json:"criteria,omitempty"` - // ForceSendFields is a list of field names (e.g. "AreaFilter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AreaFilter") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AreaFilter") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse: -// Response for the SamplePlayableLocations method. +// GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse: Response for +// the SamplePlayableLocations method. type GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse struct { - // LocationsPerGameObjectType: Each PlayableLocation object corresponds - // to a game_object_type specified in the request. + // LocationsPerGameObjectType: Each PlayableLocation object corresponds to a + // game_object_type specified in the request. LocationsPerGameObjectType map[string]GoogleMapsPlayablelocationsV3SamplePlayableLocationList `json:"locationsPerGameObjectType,omitempty"` - // Ttl: Required. Specifies the "time-to-live" for the set of playable - // locations. You can use this value to determine how long to cache the - // set of playable locations. After this length of time, your back-end - // game server should issue a new SamplePlayableLocations request to get - // a fresh set of playable locations (because for example, they might - // have been removed, a park might have closed for the day, a business - // might have closed permanently). + // locations. You can use this value to determine how long to cache the set of + // playable locations. After this length of time, your back-end game server + // should issue a new SamplePlayableLocations request to get a fresh set of + // playable locations (because for example, they might have been removed, a + // park might have closed for the day, a business might have closed + // permanently). Ttl string `json:"ttl,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "LocationsPerGameObjectType") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "LocationsPerGameObjectType") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "LocationsPerGameObjectType") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "LocationsPerGameObjectType") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleMapsPlayablelocationsV3SampleSpacingOptions: A set of options -// that specifies the separation between playable locations. +// GoogleMapsPlayablelocationsV3SampleSpacingOptions: A set of options that +// specifies the separation between playable locations. type GoogleMapsPlayablelocationsV3SampleSpacingOptions struct { - // MinSpacingMeters: Required. The minimum spacing between any two - // playable locations, measured in meters. The minimum value is 30. The - // maximum value is 1000. Inputs will be rounded up to the next 10 meter - // interval. The default value is 200m. Set this field to remove tight - // clusters of playable locations. Note: The spacing is a greedy - // algorithm. It optimizes for selecting the highest ranking locations - // first, not to maximize the number of locations selected. Consider the - // following scenario: * Rank: A: 2, B: 1, C: 3. * Distance: - // A--200m--B--200m--C If spacing=250, it will pick the highest ranked - // location [B], not [A, C]. Note: Spacing works within the game object - // type itself, as well as the previous ones. Suppose three game object - // types, each with the following spacing: * X: 400m, Y: undefined, Z: - // 200m. 1. Add locations for X, within 400m of each other. 2. Add - // locations for Y, without any spacing. 3. Finally, add locations for Z - // within 200m of each other as well X and Y. The distance diagram - // between those locations end up as: * From->To. * X->X: 400m * Y->X, - // Y->Y: unspecified. * Z->X, Z->Y, Z->Z: 200m. + // MinSpacingMeters: Required. The minimum spacing between any two playable + // locations, measured in meters. The minimum value is 30. The maximum value is + // 1000. Inputs will be rounded up to the next 10 meter interval. The default + // value is 200m. Set this field to remove tight clusters of playable + // locations. Note: The spacing is a greedy algorithm. It optimizes for + // selecting the highest ranking locations first, not to maximize the number of + // locations selected. Consider the following scenario: * Rank: A: 2, B: 1, C: + // 3. * Distance: A--200m--B--200m--C If spacing=250, it will pick the highest + // ranked location [B], not [A, C]. Note: Spacing works within the game object + // type itself, as well as the previous ones. Suppose three game object types, + // each with the following spacing: * X: 400m, Y: undefined, Z: 200m. 1. Add + // locations for X, within 400m of each other. 2. Add locations for Y, without + // any spacing. 3. Finally, add locations for Z within 200m of each other as + // well X and Y. The distance diagram between those locations end up as: * + // From->To. * X->X: 400m * Y->X, Y->Y: unspecified. * Z->X, Z->Y, Z->Z: 200m. MinSpacingMeters float64 `json:"minSpacingMeters,omitempty"` - - // PointType: Specifies whether the minimum spacing constraint applies - // to the center-point or to the snapped point of playable locations. - // The default value is `CENTER_POINT`. If a snapped point is not - // available for a playable location, its center-point is used instead. - // Set this to the point type used in your game. + // PointType: Specifies whether the minimum spacing constraint applies to the + // center-point or to the snapped point of playable locations. The default + // value is `CENTER_POINT`. If a snapped point is not available for a playable + // location, its center-point is used instead. Set this to the point type used + // in your game. // // Possible values: - // "POINT_TYPE_UNSPECIFIED" - Unspecified point type. Do not use this - // value. - // "CENTER_POINT" - The geographic coordinates correspond to the - // center of the location. - // "SNAPPED_POINT" - The geographic coordinates correspond to the - // location snapped to the sidewalk of the nearest road (when a nearby - // road exists). + // "POINT_TYPE_UNSPECIFIED" - Unspecified point type. Do not use this value. + // "CENTER_POINT" - The geographic coordinates correspond to the center of + // the location. + // "SNAPPED_POINT" - The geographic coordinates correspond to the location + // snapped to the sidewalk of the nearest road (when a nearby road exists). PointType string `json:"pointType,omitempty"` - // ForceSendFields is a list of field names (e.g. "MinSpacingMeters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MinSpacingMeters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MinSpacingMeters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsPlayablelocationsV3SampleSpacingOptions) MarshalJSON() ([]byte, error) { +func (s GoogleMapsPlayablelocationsV3SampleSpacingOptions) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsPlayablelocationsV3SampleSpacingOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleMapsPlayablelocationsV3SampleSpacingOptions) UnmarshalJSON(data []byte) error { @@ -714,38 +619,29 @@ func (s *GoogleMapsPlayablelocationsV3SampleSpacingOptions) UnmarshalJSON(data [ // GoogleMapsUnityClientInfo: Client information. type GoogleMapsUnityClientInfo struct { - // ApiClient: API client name and version. For example, the SDK calling - // the API. The exact format is up to the client. + // ApiClient: API client name and version. For example, the SDK calling the + // API. The exact format is up to the client. ApiClient string `json:"apiClient,omitempty"` - - // ApplicationId: Application ID, such as the package name on Android - // and the bundle identifier on iOS platforms. + // ApplicationId: Application ID, such as the package name on Android and the + // bundle identifier on iOS platforms. ApplicationId string `json:"applicationId,omitempty"` - - // ApplicationVersion: Application version number, such as "1.2.3". The - // exact format is application-dependent. + // ApplicationVersion: Application version number, such as "1.2.3". The exact + // format is application-dependent. ApplicationVersion string `json:"applicationVersion,omitempty"` - - // DeviceModel: Device model as reported by the device. The exact format - // is platform-dependent. + // DeviceModel: Device model as reported by the device. The exact format is + // platform-dependent. DeviceModel string `json:"deviceModel,omitempty"` - - // LanguageCode: Language code (in BCP-47 format) indicating the UI - // language of the client. Examples are "en", "en-US" or "ja-Latn". For - // more information, see - // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + // LanguageCode: Language code (in BCP-47 format) indicating the UI language of + // the client. Examples are "en", "en-US" or "ja-Latn". For more information, + // see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. LanguageCode string `json:"languageCode,omitempty"` - - // OperatingSystem: Operating system name and version as reported by the - // OS. For example, "Mac OS X 10.10.4". The exact format is - // platform-dependent. + // OperatingSystem: Operating system name and version as reported by the OS. + // For example, "Mac OS X 10.10.4". The exact format is platform-dependent. OperatingSystem string `json:"operatingSystem,omitempty"` - - // OperatingSystemBuild: Build number/version of the operating system. - // e.g., the contents of android.os.Build.ID in Android, or the contents - // of sysctl "kern.osversion" in iOS. + // OperatingSystemBuild: Build number/version of the operating system. e.g., + // the contents of android.os.Build.ID in Android, or the contents of sysctl + // "kern.osversion" in iOS. OperatingSystemBuild string `json:"operatingSystemBuild,omitempty"` - // Platform: Platform where the application is running. // // Possible values: @@ -758,65 +654,50 @@ type GoogleMapsUnityClientInfo struct { // "IOS" - iOS // "WEB_GL" - WebGL. Platform string `json:"platform,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiClient") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiClient") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiClient") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleMapsUnityClientInfo) MarshalJSON() ([]byte, error) { +func (s GoogleMapsUnityClientInfo) MarshalJSON() ([]byte, error) { type NoMethod GoogleMapsUnityClientInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleTypeLatLng: An object that represents a latitude/longitude -// pair. This is expressed as a pair of doubles to represent degrees -// latitude and degrees longitude. Unless specified otherwise, this -// object must conform to the WGS84 standard. Values must be within -// normalized ranges. +// GoogleTypeLatLng: An object that represents a latitude/longitude pair. This +// is expressed as a pair of doubles to represent degrees latitude and degrees +// longitude. Unless specified otherwise, this object must conform to the WGS84 +// standard. Values must be within normalized ranges. type GoogleTypeLatLng struct { - // Latitude: The latitude in degrees. It must be in the range [-90.0, - // +90.0]. + // Latitude: The latitude in degrees. It must be in the range [-90.0, +90.0]. Latitude float64 `json:"latitude,omitempty"` - // Longitude: The longitude in degrees. It must be in the range [-180.0, // +180.0]. Longitude float64 `json:"longitude,omitempty"` - // ForceSendFields is a list of field names (e.g. "Latitude") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Latitude") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Latitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) { +func (s GoogleTypeLatLng) MarshalJSON() ([]byte, error) { type NoMethod GoogleTypeLatLng - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error { @@ -835,8 +716,6 @@ func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error { return nil } -// method id "playablelocations.logImpressions": - type V3LogImpressionsCall struct { s *Service googlemapsplayablelocationsv3logimpressionsrequest *GoogleMapsPlayablelocationsV3LogImpressionsRequest @@ -845,10 +724,10 @@ type V3LogImpressionsCall struct { header_ http.Header } -// LogImpressions: Logs new events when playable locations are -// displayed, and when they are interacted with. Impressions are not -// partially saved; either all impressions are saved and this request -// succeeds, or no impressions are saved, and this request fails. +// LogImpressions: Logs new events when playable locations are displayed, and +// when they are interacted with. Impressions are not partially saved; either +// all impressions are saved and this request succeeds, or no impressions are +// saved, and this request fails. func (r *V3Service) LogImpressions(googlemapsplayablelocationsv3logimpressionsrequest *GoogleMapsPlayablelocationsV3LogImpressionsRequest) *V3LogImpressionsCall { c := &V3LogImpressionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.googlemapsplayablelocationsv3logimpressionsrequest = googlemapsplayablelocationsv3logimpressionsrequest @@ -856,23 +735,21 @@ func (r *V3Service) LogImpressions(googlemapsplayablelocationsv3logimpressionsre } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V3LogImpressionsCall) Fields(s ...googleapi.Field) *V3LogImpressionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V3LogImpressionsCall) Context(ctx context.Context) *V3LogImpressionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V3LogImpressionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -881,18 +758,12 @@ func (c *V3LogImpressionsCall) Header() http.Header { } func (c *V3LogImpressionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210929") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlemapsplayablelocationsv3logimpressionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v3:logImpressions") @@ -902,18 +773,15 @@ func (c *V3LogImpressionsCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playablelocations.logImpressions" call. -// Exactly one of *GoogleMapsPlayablelocationsV3LogImpressionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleMapsPlayablelocationsV3LogImpressionsResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleMapsPlayablelocationsV3LogImpressionsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V3LogImpressionsCall) Do(opts ...googleapi.CallOption) (*GoogleMapsPlayablelocationsV3LogImpressionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -921,17 +789,17 @@ func (c *V3LogImpressionsCall) Do(opts ...googleapi.CallOption) (*GoogleMapsPlay if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleMapsPlayablelocationsV3LogImpressionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -944,26 +812,8 @@ func (c *V3LogImpressionsCall) Do(opts ...googleapi.CallOption) (*GoogleMapsPlay return nil, err } return ret, nil - // { - // "description": "Logs new events when playable locations are displayed, and when they are interacted with. Impressions are not partially saved; either all impressions are saved and this request succeeds, or no impressions are saved, and this request fails.", - // "flatPath": "v3:logImpressions", - // "httpMethod": "POST", - // "id": "playablelocations.logImpressions", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v3:logImpressions", - // "request": { - // "$ref": "GoogleMapsPlayablelocationsV3LogImpressionsRequest" - // }, - // "response": { - // "$ref": "GoogleMapsPlayablelocationsV3LogImpressionsResponse" - // } - // } - } -// method id "playablelocations.logPlayerReports": - type V3LogPlayerReportsCall struct { s *Service googlemapsplayablelocationsv3logplayerreportsrequest *GoogleMapsPlayablelocationsV3LogPlayerReportsRequest @@ -972,10 +822,9 @@ type V3LogPlayerReportsCall struct { header_ http.Header } -// LogPlayerReports: Logs bad playable location reports submitted by -// players. Reports are not partially saved; either all reports are -// saved and this request succeeds, or no reports are saved, and this -// request fails. +// LogPlayerReports: Logs bad playable location reports submitted by players. +// Reports are not partially saved; either all reports are saved and this +// request succeeds, or no reports are saved, and this request fails. func (r *V3Service) LogPlayerReports(googlemapsplayablelocationsv3logplayerreportsrequest *GoogleMapsPlayablelocationsV3LogPlayerReportsRequest) *V3LogPlayerReportsCall { c := &V3LogPlayerReportsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.googlemapsplayablelocationsv3logplayerreportsrequest = googlemapsplayablelocationsv3logplayerreportsrequest @@ -983,23 +832,21 @@ func (r *V3Service) LogPlayerReports(googlemapsplayablelocationsv3logplayerrepor } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V3LogPlayerReportsCall) Fields(s ...googleapi.Field) *V3LogPlayerReportsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V3LogPlayerReportsCall) Context(ctx context.Context) *V3LogPlayerReportsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V3LogPlayerReportsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1008,18 +855,12 @@ func (c *V3LogPlayerReportsCall) Header() http.Header { } func (c *V3LogPlayerReportsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210929") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlemapsplayablelocationsv3logplayerreportsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v3:logPlayerReports") @@ -1029,18 +870,15 @@ func (c *V3LogPlayerReportsCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playablelocations.logPlayerReports" call. -// Exactly one of *GoogleMapsPlayablelocationsV3LogPlayerReportsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleMapsPlayablelocationsV3LogPlayerReportsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleMapsPlayablelocationsV3LogPlayerReportsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V3LogPlayerReportsCall) Do(opts ...googleapi.CallOption) (*GoogleMapsPlayablelocationsV3LogPlayerReportsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1048,17 +886,17 @@ func (c *V3LogPlayerReportsCall) Do(opts ...googleapi.CallOption) (*GoogleMapsPl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleMapsPlayablelocationsV3LogPlayerReportsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1071,26 +909,8 @@ func (c *V3LogPlayerReportsCall) Do(opts ...googleapi.CallOption) (*GoogleMapsPl return nil, err } return ret, nil - // { - // "description": "Logs bad playable location reports submitted by players. Reports are not partially saved; either all reports are saved and this request succeeds, or no reports are saved, and this request fails.", - // "flatPath": "v3:logPlayerReports", - // "httpMethod": "POST", - // "id": "playablelocations.logPlayerReports", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v3:logPlayerReports", - // "request": { - // "$ref": "GoogleMapsPlayablelocationsV3LogPlayerReportsRequest" - // }, - // "response": { - // "$ref": "GoogleMapsPlayablelocationsV3LogPlayerReportsResponse" - // } - // } - } -// method id "playablelocations.samplePlayableLocations": - type V3SamplePlayableLocationsCall struct { s *Service googlemapsplayablelocationsv3sampleplayablelocationsrequest *GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest @@ -1099,10 +919,10 @@ type V3SamplePlayableLocationsCall struct { header_ http.Header } -// SamplePlayableLocations: Returns a set of playable locations that lie -// within a specified area, that satisfy optional filter criteria. Note: -// Identical `SamplePlayableLocations` requests can return different -// results as the state of the world changes over time. +// SamplePlayableLocations: Returns a set of playable locations that lie within +// a specified area, that satisfy optional filter criteria. Note: Identical +// `SamplePlayableLocations` requests can return different results as the state +// of the world changes over time. func (r *V3Service) SamplePlayableLocations(googlemapsplayablelocationsv3sampleplayablelocationsrequest *GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest) *V3SamplePlayableLocationsCall { c := &V3SamplePlayableLocationsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.googlemapsplayablelocationsv3sampleplayablelocationsrequest = googlemapsplayablelocationsv3sampleplayablelocationsrequest @@ -1110,23 +930,21 @@ func (r *V3Service) SamplePlayableLocations(googlemapsplayablelocationsv3samplep } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V3SamplePlayableLocationsCall) Fields(s ...googleapi.Field) *V3SamplePlayableLocationsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V3SamplePlayableLocationsCall) Context(ctx context.Context) *V3SamplePlayableLocationsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V3SamplePlayableLocationsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1135,18 +953,12 @@ func (c *V3SamplePlayableLocationsCall) Header() http.Header { } func (c *V3SamplePlayableLocationsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210929") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlemapsplayablelocationsv3sampleplayablelocationsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v3:samplePlayableLocations") @@ -1156,19 +968,15 @@ func (c *V3SamplePlayableLocationsCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playablelocations.samplePlayableLocations" call. -// Exactly one of -// *GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse.ServerRe -// sponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse.ServerResponse. +// Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *V3SamplePlayableLocationsCall) Do(opts ...googleapi.CallOption) (*GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1176,17 +984,17 @@ func (c *V3SamplePlayableLocationsCall) Do(opts ...googleapi.CallOption) (*Googl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1199,20 +1007,4 @@ func (c *V3SamplePlayableLocationsCall) Do(opts ...googleapi.CallOption) (*Googl return nil, err } return ret, nil - // { - // "description": "Returns a set of playable locations that lie within a specified area, that satisfy optional filter criteria. Note: Identical `SamplePlayableLocations` requests can return different results as the state of the world changes over time.", - // "flatPath": "v3:samplePlayableLocations", - // "httpMethod": "POST", - // "id": "playablelocations.samplePlayableLocations", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v3:samplePlayableLocations", - // "request": { - // "$ref": "GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest" - // }, - // "response": { - // "$ref": "GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse" - // } - // } - } diff --git a/playcustomapp/v1/playcustomapp-gen.go b/playcustomapp/v1/playcustomapp-gen.go index 456a332f4a5..79a13b76e2b 100644 --- a/playcustomapp/v1/playcustomapp-gen.go +++ b/playcustomapp/v1/playcustomapp-gen.go @@ -348,7 +348,7 @@ func (c *AccountsCustomAppsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "account": strconv.FormatInt(c.account, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playcustomapp.accounts.customApps.create" call. diff --git a/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go b/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go index f302aec6c10..0dcc350b3d6 100644 --- a/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go +++ b/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go @@ -2832,7 +2832,7 @@ func (c *AnomaliesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.anomalies.list" call. @@ -2962,7 +2962,7 @@ func (c *AppsFetchReleaseFilterOptionsCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.apps.fetchReleaseFilterOptions" call. @@ -3081,7 +3081,7 @@ func (c *AppsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.apps.search" call. @@ -3210,7 +3210,7 @@ func (c *VitalsAnrrateGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.anrrate.get" call. @@ -3312,7 +3312,7 @@ func (c *VitalsAnrrateQueryCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.anrrate.query" call. @@ -3441,7 +3441,7 @@ func (c *VitalsCrashrateGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.crashrate.get" call. @@ -3545,7 +3545,7 @@ func (c *VitalsCrashrateQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.crashrate.query" call. @@ -3675,7 +3675,7 @@ func (c *VitalsErrorsCountsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.errors.counts.get" call. @@ -3777,7 +3777,7 @@ func (c *VitalsErrorsCountsQueryCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.errors.counts.query" call. @@ -4149,7 +4149,7 @@ func (c *VitalsErrorsIssuesSearchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.errors.issues.search" call. @@ -4505,7 +4505,7 @@ func (c *VitalsErrorsReportsSearchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.errors.reports.search" call. @@ -4634,7 +4634,7 @@ func (c *VitalsExcessivewakeuprateGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.get" call. @@ -4736,7 +4736,7 @@ func (c *VitalsExcessivewakeuprateQueryCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.query" call. @@ -4867,7 +4867,7 @@ func (c *VitalsSlowrenderingrateGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.slowrenderingrate.get" call. @@ -4969,7 +4969,7 @@ func (c *VitalsSlowrenderingrateQueryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.slowrenderingrate.query" call. @@ -5100,7 +5100,7 @@ func (c *VitalsSlowstartrateGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.slowstartrate.get" call. @@ -5202,7 +5202,7 @@ func (c *VitalsSlowstartrateQueryCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.slowstartrate.query" call. @@ -5334,7 +5334,7 @@ func (c *VitalsStuckbackgroundwakelockrateGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.stuckbackgroundwakelockrate.get" call. @@ -5437,7 +5437,7 @@ func (c *VitalsStuckbackgroundwakelockrateQueryCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.stuckbackgroundwakelockrate.query" call. diff --git a/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go b/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go index 164fafe3320..a5965a34e77 100644 --- a/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go +++ b/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go @@ -2832,7 +2832,7 @@ func (c *AnomaliesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.anomalies.list" call. @@ -2962,7 +2962,7 @@ func (c *AppsFetchReleaseFilterOptionsCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.apps.fetchReleaseFilterOptions" call. @@ -3081,7 +3081,7 @@ func (c *AppsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.apps.search" call. @@ -3210,7 +3210,7 @@ func (c *VitalsAnrrateGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.anrrate.get" call. @@ -3312,7 +3312,7 @@ func (c *VitalsAnrrateQueryCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.anrrate.query" call. @@ -3441,7 +3441,7 @@ func (c *VitalsCrashrateGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.crashrate.get" call. @@ -3543,7 +3543,7 @@ func (c *VitalsCrashrateQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.crashrate.query" call. @@ -3673,7 +3673,7 @@ func (c *VitalsErrorsCountsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.errors.counts.get" call. @@ -3777,7 +3777,7 @@ func (c *VitalsErrorsCountsQueryCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.errors.counts.query" call. @@ -4149,7 +4149,7 @@ func (c *VitalsErrorsIssuesSearchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.errors.issues.search" call. @@ -4505,7 +4505,7 @@ func (c *VitalsErrorsReportsSearchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.errors.reports.search" call. @@ -4634,7 +4634,7 @@ func (c *VitalsExcessivewakeuprateGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.get" call. @@ -4736,7 +4736,7 @@ func (c *VitalsExcessivewakeuprateQueryCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.query" call. @@ -4867,7 +4867,7 @@ func (c *VitalsSlowrenderingrateGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.slowrenderingrate.get" call. @@ -4969,7 +4969,7 @@ func (c *VitalsSlowrenderingrateQueryCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.slowrenderingrate.query" call. @@ -5100,7 +5100,7 @@ func (c *VitalsSlowstartrateGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.slowstartrate.get" call. @@ -5202,7 +5202,7 @@ func (c *VitalsSlowstartrateQueryCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.slowstartrate.query" call. @@ -5334,7 +5334,7 @@ func (c *VitalsStuckbackgroundwakelockrateGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.stuckbackgroundwakelockrate.get" call. @@ -5437,7 +5437,7 @@ func (c *VitalsStuckbackgroundwakelockrateQueryCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playdeveloperreporting.vitals.stuckbackgroundwakelockrate.query" call. diff --git a/playgrouping/v1alpha1/playgrouping-gen.go b/playgrouping/v1alpha1/playgrouping-gen.go index 31e3c6d3880..cb0b7e6ca4a 100644 --- a/playgrouping/v1alpha1/playgrouping-gen.go +++ b/playgrouping/v1alpha1/playgrouping-gen.go @@ -350,7 +350,7 @@ func (c *AppsTokensVerifyCall) doRequest(alt string) (*http.Response, error) { "appPackage": c.appPackage, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playgrouping.apps.tokens.verify" call. @@ -459,7 +459,7 @@ func (c *AppsTokensTagsCreateOrUpdateCall) doRequest(alt string) (*http.Response "appPackage": c.appPackage, "token": c.token, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playgrouping.apps.tokens.tags.createOrUpdate" call. diff --git a/playintegrity/v1/playintegrity-gen.go b/playintegrity/v1/playintegrity-gen.go index eba28198029..baec441a2cc 100644 --- a/playintegrity/v1/playintegrity-gen.go +++ b/playintegrity/v1/playintegrity-gen.go @@ -814,7 +814,7 @@ func (c *DeviceRecallWriteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playintegrity.deviceRecall.write" call. @@ -918,7 +918,7 @@ func (c *V1DecodeIntegrityTokenCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "packageName": c.packageName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playintegrity.decodeIntegrityToken" call. diff --git a/playmoviespartner/v1/playmoviespartner-gen.go b/playmoviespartner/v1/playmoviespartner-gen.go index c088ee0afdf..f6015a7fb45 100644 --- a/playmoviespartner/v1/playmoviespartner-gen.go +++ b/playmoviespartner/v1/playmoviespartner-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/playmoviespartner/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // playmoviespartnerService, err := playmoviespartner.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // playmoviespartnerService, err := playmoviespartner.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // playmoviespartnerService, err := playmoviespartner.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package playmoviespartner // import "google.golang.org/api/playmoviespartner/v1" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,11 +83,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "playmoviespartner:v1" const apiName = "playmoviespartner" const apiVersion = "v1" const basePath = "https://playmoviespartner.googleapis.com/" +const basePathTemplate = "https://playmoviespartner.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -82,11 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/playmovies_partner.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -187,8 +208,8 @@ type AccountsStoreInfosCountryService struct { s *Service } -// Avail: An Avail describes the Availability Window of a specific Edit -// in a given +// Avail: An Avail describes the Availability Window of a specific Edit in a +// given // country, which means the period Google is allowed to sell or rent the // Edit. // @@ -203,375 +224,294 @@ type Avail struct { // partner. // Example: "GOOGLER_2006" AltId string `json:"altId,omitempty"` - // AvailId: ID internally generated by Google to uniquely identify an // Avail. // Not part of EMA Specs. AvailId string `json:"availId,omitempty"` - // CaptionExemption: Communicating an exempt category as defined by FCC // regulations. // It is not required for non-US Avails. // Example: "1" CaptionExemption string `json:"captionExemption,omitempty"` - // CaptionIncluded: Communicating if caption file will be delivered. CaptionIncluded bool `json:"captionIncluded,omitempty"` - - // ContentId: Title Identifier. This should be the Title Level - // EIDR. + // ContentId: Title Identifier. This should be the Title Level EIDR. // Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". ContentId string `json:"contentId,omitempty"` - - // DisplayName: The name of the studio that owns the Edit referred in - // the Avail. + // DisplayName: The name of the studio that owns the Edit referred in the + // Avail. // This is the equivalent of `studio_name` in other resources, but it // follows // the EMA nomenclature. // Example: "Google Films". DisplayName string `json:"displayName,omitempty"` - - // EncodeId: Manifestation Identifier. This should be the - // Manifestation + // EncodeId: Manifestation Identifier. This should be the Manifestation // Level EIDR. // Example: "10.2340/1489-49A2-3956-4B2D-FE16-7" EncodeId string `json:"encodeId,omitempty"` - - // End: End of term in YYYY-MM-DD format in the timezone of the - // country + // End: End of term in YYYY-MM-DD format in the timezone of the country // of the Avail. // "Open" if no end date is available. // Example: "2019-02-17" End string `json:"end,omitempty"` - - // EpisodeAltId: Other identifier referring to the episode, as defined - // by partner. + // EpisodeAltId: Other identifier referring to the episode, as defined by + // partner. // Only available on TV avails. // Example: "rs_googlers_s1_3". EpisodeAltId string `json:"episodeAltId,omitempty"` - - // EpisodeNumber: The number assigned to the episode within a - // season. + // EpisodeNumber: The number assigned to the episode within a season. // Only available on TV Avails. // Example: "3". EpisodeNumber string `json:"episodeNumber,omitempty"` - - // EpisodeTitleInternalAlias: OPTIONAL.TV Only. Title used by involved - // parties to refer to this episode. + // EpisodeTitleInternalAlias: OPTIONAL.TV Only. Title used by involved parties + // to refer to this episode. // Only available on TV Avails. // Example: "Coding at Google". EpisodeTitleInternalAlias string `json:"episodeTitleInternalAlias,omitempty"` - - // FormatProfile: Indicates the format profile covered by the - // transaction. + // FormatProfile: Indicates the format profile covered by the transaction. // // Possible values: - // "FORMAT_PROFILE_UNSPECIFIED" - Value could not be determined, - // please contact technical support if + // "FORMAT_PROFILE_UNSPECIFIED" - Value could not be determined, please + // contact technical support if // it should. // "SD" - Standard-definition format. // "HD" - High-definition format. // "UHD" - 4K UHD. FormatProfile string `json:"formatProfile,omitempty"` - // LicenseType: Type of transaction. // // Possible values: - // "LICENSE_TYPE_UNSPECIFIED" - Value could not be determined, please - // contact technical support if + // "LICENSE_TYPE_UNSPECIFIED" - Value could not be determined, please contact + // technical support if // it should. - // "EST" - Electronic Sell Through - purchase policy for unlimited - // viewing. + // "EST" - Electronic Sell Through - purchase policy for unlimited viewing. // "VOD" - Video On Demand - rental policy for temporary viewing. // "SVOD" - Subscription Video On Demand - used for subscription // platforms. // Not supported on Google Play. - // "POEST" - Pre-order Electronic Sell Through - pre-order purchase - // only window. + // "POEST" - Pre-order Electronic Sell Through - pre-order purchase only + // window. LicenseType string `json:"licenseType,omitempty"` - - // PphNames: Name of the post-production houses that manage the - // Avail. + // PphNames: Name of the post-production houses that manage the Avail. // Not part of EMA Specs. PphNames []string `json:"pphNames,omitempty"` - // PriceType: Type of pricing that should be applied to this Avail // based on how the partner classify them. // Example: "Tier", "WSP", "SRP", or "Category". PriceType string `json:"priceType,omitempty"` - // PriceValue: Value to be applied to the pricing type. // Example: "4" or "2.99" PriceValue string `json:"priceValue,omitempty"` - - // ProductId: Edit Identifier. This should be the Edit Level - // EIDR. + // ProductId: Edit Identifier. This should be the Edit Level EIDR. // Example: "10.2340/1489-49A2-3956-4B2D-FE16-6" ProductId string `json:"productId,omitempty"` - // RatingReason: Value representing the rating reason. // Rating reasons should be formatted as per - // [EMA ratings spec](http://www.movielabs.com/md/ratings/) + // EMA ratings spec (http://www.movielabs.com/md/ratings/) // and comma-separated for inclusion of multiple reasons. // Example: "L, S, V" RatingReason string `json:"ratingReason,omitempty"` - // RatingSystem: Rating system applied to the version of title within // territory // of Avail. // Rating systems should be formatted as per - // [EMA ratings spec](http://www.movielabs.com/md/ratings/) + // EMA ratings spec (http://www.movielabs.com/md/ratings/) // Example: "MPAA" RatingSystem string `json:"ratingSystem,omitempty"` - // RatingValue: Value representing the rating. // Ratings should be formatted as per // http://www.movielabs.com/md/ratings/ // Example: "PG" RatingValue string `json:"ratingValue,omitempty"` - // ReleaseDate: Release date of the Title in earliest released // territory. // Typically it is just the year, but it is free-form as per EMA // spec. // Examples: "1979", "Oct 2014" ReleaseDate string `json:"releaseDate,omitempty"` - // SeasonAltId: Other identifier referring to the season, as defined by // partner. // Only available on TV avails. // Example: "rs_googlers_s1". SeasonAltId string `json:"seasonAltId,omitempty"` - // SeasonNumber: The number assigned to the season within a series. // Only available on TV Avails. // Example: "1". SeasonNumber string `json:"seasonNumber,omitempty"` - - // SeasonTitleInternalAlias: Title used by involved parties to refer to - // this season. + // SeasonTitleInternalAlias: Title used by involved parties to refer to this + // season. // Only available on TV Avails. // Example: "Googlers, The". SeasonTitleInternalAlias string `json:"seasonTitleInternalAlias,omitempty"` - // SeriesAltId: Other identifier referring to the series, as defined by // partner. // Only available on TV avails. // Example: "rs_googlers". SeriesAltId string `json:"seriesAltId,omitempty"` - - // SeriesTitleInternalAlias: Title used by involved parties to refer to - // this series. + // SeriesTitleInternalAlias: Title used by involved parties to refer to this + // series. // Only available on TV Avails. // Example: "Googlers, The". SeriesTitleInternalAlias string `json:"seriesTitleInternalAlias,omitempty"` - - // Start: Start of term in YYYY-MM-DD format in the timezone of - // the + // Start: Start of term in YYYY-MM-DD format in the timezone of the // country of the Avail. // Example: "2013-05-14". Start string `json:"start,omitempty"` - // StoreLanguage: Spoken language of the intended audience. // Language shall be encoded in accordance with RFC 5646. // Example: "fr". StoreLanguage string `json:"storeLanguage,omitempty"` - - // SuppressionLiftDate: First date an Edit could be publically announced - // as becoming + // SuppressionLiftDate: First date an Edit could be publically announced as + // becoming // available at a specific future date in territory of Avail. // *Not* the Avail start date or pre-order start date. // Format is YYYY-MM-DD. // Only available for pre-orders. // Example: "2012-12-10" SuppressionLiftDate string `json:"suppressionLiftDate,omitempty"` - - // Territory: ISO 3166-1 alpha-2 country code for the country or - // territory + // Territory: ISO 3166-1 alpha-2 country code for the country or territory // of this Avail. // For Avails, we use Territory in lieu of Country to comply with // EMA specifications. - // But please note that Territory and Country identify the same - // thing. + // But please note that Territory and Country identify the same thing. // Example: "US". Territory string `json:"territory,omitempty"` - // TitleInternalAlias: Title used by involved parties to refer to this // content. // Example: "Googlers, The". // Only available on Movie Avails. TitleInternalAlias string `json:"titleInternalAlias,omitempty"` - - // VideoId: Google-generated ID identifying the video linked to this - // Avail, once + // VideoId: Google-generated ID identifying the video linked to this Avail, + // once // delivered. // Not part of EMA Specs. // Example: 'gtry456_xc' VideoId string `json:"videoId,omitempty"` - // WorkType: Work type as enumerated in EMA. // // Possible values: - // "TITLE_TYPE_UNSPECIFIED" - Value could not be determined, please - // contact technical support if + // "TITLE_TYPE_UNSPECIFIED" - Value could not be determined, please contact + // technical support if // it should. // "MOVIE" - A movie picture. // "SEASON" - A season of a TV show. // "EPISODE" - An episode of a TV show. - // "BUNDLE" - A collection of movies, i.e. "Googlers 1 and Googlers, - // the return" + // "BUNDLE" - A collection of movies, i.e. "Googlers 1 and Googlers, the + // return" WorkType string `json:"workType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AltId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AltId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AltId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Avail) MarshalJSON() ([]byte, error) { +func (s Avail) MarshalJSON() ([]byte, error) { type NoMethod Avail - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAvailsResponse: Response to the 'ListAvails' method. type ListAvailsResponse struct { // Avails: List of Avails that match the request criteria. Avails []*Avail `json:"avails,omitempty"` - // NextPageToken: See _List methods rules_ for info about this field. NextPageToken string `json:"nextPageToken,omitempty"` - - // TotalSize: See _List methods rules_ for more information about this - // field. + // TotalSize: See _List methods rules_ for more information about this field. TotalSize int64 `json:"totalSize,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Avails") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Avails") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Avails") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAvailsResponse) MarshalJSON() ([]byte, error) { +func (s ListAvailsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAvailsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListOrdersResponse: Response to the 'ListOrders' method. type ListOrdersResponse struct { // NextPageToken: See _List methods rules_ for info about this field. NextPageToken string `json:"nextPageToken,omitempty"` - // Orders: List of Orders that match the request criteria. Orders []*Order `json:"orders,omitempty"` - - // TotalSize: See _List methods rules_ for more information about this - // field. + // TotalSize: See _List methods rules_ for more information about this field. TotalSize int64 `json:"totalSize,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOrdersResponse) MarshalJSON() ([]byte, error) { +func (s ListOrdersResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOrdersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListStoreInfosResponse: Response to the 'ListStoreInfos' method. type ListStoreInfosResponse struct { // NextPageToken: See 'List methods rules' for info about this field. NextPageToken string `json:"nextPageToken,omitempty"` - // StoreInfos: List of StoreInfos that match the request criteria. StoreInfos []*StoreInfo `json:"storeInfos,omitempty"` - - // TotalSize: See _List methods rules_ for more information about this - // field. + // TotalSize: See _List methods rules_ for more information about this field. TotalSize int64 `json:"totalSize,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListStoreInfosResponse) MarshalJSON() ([]byte, error) { +func (s ListStoreInfosResponse) MarshalJSON() ([]byte, error) { type NoMethod ListStoreInfosResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Order: An Order tracks the fulfillment of an Edit when delivered -// using the +// Order: An Order tracks the fulfillment of an Edit when delivered using +// the // legacy, non-component-based delivery. // -// Each Order is uniquely identified by an `order_id`, which is -// generated +// Each Order is uniquely identified by an `order_id`, which is generated // by Google. // // Externally, Orders can also be identified by partners using its @@ -580,182 +520,145 @@ func (s *ListStoreInfosResponse) MarshalJSON() ([]byte, error) { type Order struct { // ApprovedTime: Timestamp when the Order was approved. ApprovedTime string `json:"approvedTime,omitempty"` - // ChannelId: YouTube Channel ID that should be used to fulfill the // Order. // Example: "UCRG64darCZhb". ChannelId string `json:"channelId,omitempty"` - // ChannelName: YouTube Channel Name that should be used to fulfill the // Order. // Example: "Google_channel". ChannelName string `json:"channelName,omitempty"` - // Countries: Countries where the Order is available, // using the "ISO 3166-1 alpha-2" format (example: "US"). Countries []string `json:"countries,omitempty"` - // CustomId: ID that can be used to externally identify an Order. // This ID is provided by partners when submitting the Avails. // Example: 'GOOGLER_2006' CustomId string `json:"customId,omitempty"` - // EarliestAvailStartTime: Timestamp of the earliest start date of the // Avails // linked to this Order. EarliestAvailStartTime string `json:"earliestAvailStartTime,omitempty"` - // EpisodeName: Default Episode name, // usually in the language of the country of origin. // Only available for TV Edits // Example: "Googlers, The - Pilot". EpisodeName string `json:"episodeName,omitempty"` - // LegacyPriority: Legacy Order priority, as defined by Google. // Example: 'P0' LegacyPriority string `json:"legacyPriority,omitempty"` - // Name: Default Edit name, // usually in the language of the country of origin. // Example: "Googlers, The". Name string `json:"name,omitempty"` - // NormalizedPriority: A simpler representation of the priority. // // Possible values: - // "NORMALIZED_PRIORITY_UNSPECIFIED" - Value could not be determined, - // please contact technical support if + // "NORMALIZED_PRIORITY_UNSPECIFIED" - Value could not be determined, please + // contact technical support if // it should. - // "LOW_PRIORITY" - A low-priority asset, typically from a library - // movie. - // "HIGH_PRIORITY" - A high-priority asset, typically from a new - // release or box office hit. + // "LOW_PRIORITY" - A low-priority asset, typically from a library movie. + // "HIGH_PRIORITY" - A high-priority asset, typically from a new release or + // box office hit. NormalizedPriority string `json:"normalizedPriority,omitempty"` - // OrderId: ID internally generated by Google to uniquely identify an // Order. // Example: 'abcde12_x' OrderId string `json:"orderId,omitempty"` - // OrderedTime: Timestamp when the Order was created. OrderedTime string `json:"orderedTime,omitempty"` - - // PphName: Name of the post-production house that manages the Edit - // ordered. + // PphName: Name of the post-production house that manages the Edit ordered. PphName string `json:"pphName,omitempty"` - // Priority: Order priority, as defined by Google. // The higher the value, the higher the priority. // Example: 90 Priority float64 `json:"priority,omitempty"` - // ReceivedTime: Timestamp when the Order was fulfilled. ReceivedTime string `json:"receivedTime,omitempty"` - - // RejectionNote: Field explaining why an Order has been - // rejected. + // RejectionNote: Field explaining why an Order has been rejected. // Example: "Trailer audio is 2ch mono, please re-deliver in stereo". RejectionNote string `json:"rejectionNote,omitempty"` - // SeasonName: Default Season name, // usually in the language of the country of origin. // Only available for TV Edits // Example: "Googlers, The - A Brave New World". SeasonName string `json:"seasonName,omitempty"` - // ShowName: Default Show name, // usually in the language of the country of origin. // Only available for TV Edits // Example: "Googlers, The". ShowName string `json:"showName,omitempty"` - // Status: High-level status of the order. // // Possible values: - // "STATUS_UNSPECIFIED" - Value could not be determined, please - // contact technical support if + // "STATUS_UNSPECIFIED" - Value could not be determined, please contact + // technical support if // it should. // "STATUS_APPROVED" - Approved by Google. - // "STATUS_FAILED" - Waiting for partner to re-deliver the asset after - // a rejection by Google. + // "STATUS_FAILED" - Waiting for partner to re-deliver the asset after a + // rejection by Google. // "STATUS_PROCESSING" - Waiting for Google to process the asset. // "STATUS_UNFULFILLED" - Waiting for partner to deliver the asset. - // "STATUS_NOT_AVAILABLE" - Used when Status is not available (i.e: - // Orders for TV Seasons). + // "STATUS_NOT_AVAILABLE" - Used when Status is not available (i.e: Orders + // for TV Seasons). Status string `json:"status,omitempty"` - // StatusDetail: Detailed status of the order // // Possible values: - // "ORDER_STATUS_UNSPECIFIED" - Value could not be determined, please - // contact technical support if + // "ORDER_STATUS_UNSPECIFIED" - Value could not be determined, please contact + // technical support if // it should. - // "ORDER_STATUS_QC_APPROVED" - Approved by Google's Quality Control - // team. - // "ORDER_STATUS_QC_REJECTION" - Rejected by Google's Quality Control - // team, pending partner redelivery. - // "ORDER_STATUS_INTERNAL_FIX" - Internal error while processing the - // Order. - // "ORDER_STATUS_OPEN_ORDER" - Waiting for initial delivery from - // partner. - // "ORDER_STATUS_NOT_AVAILABLE" - Used on Orders that do not have - // Status, like TV Seasons. - // "ORDER_STATUS_AWAITING_REDELIVERY" - Waiting for re-delivery from - // partner. - // "ORDER_STATUS_READY_FOR_QC" - Asset was delivered by partner, but - // is being reviewed by Google's + // "ORDER_STATUS_QC_APPROVED" - Approved by Google's Quality Control team. + // "ORDER_STATUS_QC_REJECTION" - Rejected by Google's Quality Control team, + // pending partner redelivery. + // "ORDER_STATUS_INTERNAL_FIX" - Internal error while processing the Order. + // "ORDER_STATUS_OPEN_ORDER" - Waiting for initial delivery from partner. + // "ORDER_STATUS_NOT_AVAILABLE" - Used on Orders that do not have Status, + // like TV Seasons. + // "ORDER_STATUS_AWAITING_REDELIVERY" - Waiting for re-delivery from partner. + // "ORDER_STATUS_READY_FOR_QC" - Asset was delivered by partner, but is being + // reviewed by Google's // Quality Control team. - // "ORDER_STATUS_FILE_PROCESSING" - Waiting for Google to process the - // asset. + // "ORDER_STATUS_FILE_PROCESSING" - Waiting for Google to process the asset. StatusDetail string `json:"statusDetail,omitempty"` - // StudioName: Name of the studio that owns the Edit ordered. StudioName string `json:"studioName,omitempty"` - // Type: Type of the Edit linked to the Order. // // Possible values: - // "TITLE_TYPE_UNSPECIFIED" - Value could not be determined, please - // contact technical support if + // "TITLE_TYPE_UNSPECIFIED" - Value could not be determined, please contact + // technical support if // it should. // "MOVIE" - A movie picture. // "SEASON" - A season of a TV show. // "EPISODE" - An episode of a TV show. - // "BUNDLE" - A collection of movies, i.e. "Googlers 1 and Googlers, - // the return" + // "BUNDLE" - A collection of movies, i.e. "Googlers 1 and Googlers, the + // return" Type string `json:"type,omitempty"` - - // VideoId: Google-generated ID identifying the video linked to this - // Order, once + // VideoId: Google-generated ID identifying the video linked to this Order, + // once // delivered. // Example: 'gtry456_xc'. VideoId string `json:"videoId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ApprovedTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApprovedTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApprovedTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Order) MarshalJSON() ([]byte, error) { +func (s Order) MarshalJSON() ([]byte, error) { type NoMethod Order - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Order) UnmarshalJSON(data []byte) error { @@ -772,8 +675,8 @@ func (s *Order) UnmarshalJSON(data []byte) error { return nil } -// StoreInfo: Information about a playable sequence (video) associated -// with an Edit +// StoreInfo: Information about a playable sequence (video) associated with an +// Edit // and available at the Google Play Store. // // Internally, each StoreInfo is uniquely identified by a `video_id` @@ -784,156 +687,120 @@ func (s *Order) UnmarshalJSON(data []byte) error { type StoreInfo struct { // AudioTracks: Audio tracks available for this Edit. AudioTracks []string `json:"audioTracks,omitempty"` - // Country: Country where Edit is available in ISO 3166-1 alpha-2 // country // code. // Example: "US". Country string `json:"country,omitempty"` - // EditLevelEidr: Edit-level EIDR ID. // Example: "10.5240/1489-49A2-3956-4B2D-FE16-6". EditLevelEidr string `json:"editLevelEidr,omitempty"` - - // EpisodeNumber: The number assigned to the episode within a - // season. + // EpisodeNumber: The number assigned to the episode within a season. // Only available on TV Edits. // Example: "1". EpisodeNumber string `json:"episodeNumber,omitempty"` - // HasAudio51: Whether the Edit has a 5.1 channel audio track. HasAudio51 bool `json:"hasAudio51,omitempty"` - // HasEstOffer: Whether the Edit has a EST offer. HasEstOffer bool `json:"hasEstOffer,omitempty"` - // HasHdOffer: Whether the Edit has a HD offer. HasHdOffer bool `json:"hasHdOffer,omitempty"` - // HasInfoCards: Whether the Edit has info cards. HasInfoCards bool `json:"hasInfoCards,omitempty"` - // HasSdOffer: Whether the Edit has a SD offer. HasSdOffer bool `json:"hasSdOffer,omitempty"` - // HasVodOffer: Whether the Edit has a VOD offer. HasVodOffer bool `json:"hasVodOffer,omitempty"` - // LiveTime: Timestamp when the Edit went live on the Store. LiveTime string `json:"liveTime,omitempty"` - // Mid: Knowledge Graph ID associated to this Edit, if available. - // This ID links the Edit to its knowledge entity, externally - // accessible + // This ID links the Edit to its knowledge entity, externally accessible // at http://freebase.com. // In the absense of Title EIDR or Edit EIDR, this ID helps link // together // multiple Edits across countries. // Example: '/m/0ffx29' Mid string `json:"mid,omitempty"` - // Name: Default Edit name, usually in the language of the country // of // origin. // Example: "Googlers, The". Name string `json:"name,omitempty"` - // PphNames: Name of the post-production houses that manage the Edit. PphNames []string `json:"pphNames,omitempty"` - // SeasonId: Google-generated ID identifying the season linked to the // Edit. // Only available for TV Edits. // Example: 'ster23ex' SeasonId string `json:"seasonId,omitempty"` - - // SeasonName: Default Season name, usually in the language of the - // country of + // SeasonName: Default Season name, usually in the language of the country + // of // origin. // Only available for TV Edits // Example: "Googlers, The - A Brave New World". SeasonName string `json:"seasonName,omitempty"` - // SeasonNumber: The number assigned to the season within a show. // Only available on TV Edits. // Example: "1". SeasonNumber string `json:"seasonNumber,omitempty"` - - // ShowId: Google-generated ID identifying the show linked to the - // Edit. + // ShowId: Google-generated ID identifying the show linked to the Edit. // Only available for TV Edits. // Example: 'et2hsue_x' ShowId string `json:"showId,omitempty"` - // ShowName: Default Show name, usually in the language of the country // of // origin. // Only available for TV Edits // Example: "Googlers, The". ShowName string `json:"showName,omitempty"` - // StudioName: Name of the studio that owns the Edit ordered. StudioName string `json:"studioName,omitempty"` - // Subtitles: Subtitles available for this Edit. Subtitles []string `json:"subtitles,omitempty"` - // TitleLevelEidr: Title-level EIDR ID. // Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". TitleLevelEidr string `json:"titleLevelEidr,omitempty"` - // TrailerId: Google-generated ID identifying the trailer linked to the // Edit. // Example: 'bhd_4e_cx' TrailerId string `json:"trailerId,omitempty"` - // Type: Edit type, like Movie, Episode or Season. // // Possible values: - // "TITLE_TYPE_UNSPECIFIED" - Value could not be determined, please - // contact technical support if + // "TITLE_TYPE_UNSPECIFIED" - Value could not be determined, please contact + // technical support if // it should. // "MOVIE" - A movie picture. // "SEASON" - A season of a TV show. // "EPISODE" - An episode of a TV show. - // "BUNDLE" - A collection of movies, i.e. "Googlers 1 and Googlers, - // the return" + // "BUNDLE" - A collection of movies, i.e. "Googlers 1 and Googlers, the + // return" Type string `json:"type,omitempty"` - // VideoId: Google-generated ID identifying the video linked to the // Edit. // Example: 'gtry456_xc' VideoId string `json:"videoId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AudioTracks") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudioTracks") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AudioTracks") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StoreInfo) MarshalJSON() ([]byte, error) { +func (s StoreInfo) MarshalJSON() ([]byte, error) { type NoMethod StoreInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "playmoviespartner.accounts.avails.get": - type AccountsAvailsGetCall struct { s *Service accountId string @@ -945,6 +812,10 @@ type AccountsAvailsGetCall struct { } // Get: Get an Avail given its avail group id and avail id. +// +// - accountId: REQUIRED. See _General rules_ for more information about this +// field. +// - availId: REQUIRED. Avail ID. func (r *AccountsAvailsService) Get(accountId string, availId string) *AccountsAvailsGetCall { c := &AccountsAvailsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -953,33 +824,29 @@ func (r *AccountsAvailsService) Get(accountId string, availId string) *AccountsA } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAvailsGetCall) Fields(s ...googleapi.Field) *AccountsAvailsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAvailsGetCall) IfNoneMatch(entityTag string) *AccountsAvailsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAvailsGetCall) Context(ctx context.Context) *AccountsAvailsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAvailsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -988,12 +855,7 @@ func (c *AccountsAvailsGetCall) Header() http.Header { } func (c *AccountsAvailsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1011,16 +873,14 @@ func (c *AccountsAvailsGetCall) doRequest(alt string) (*http.Response, error) { "accountId": c.accountId, "availId": c.availId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playmoviespartner.accounts.avails.get" call. -// Exactly one of *Avail or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Avail.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Avail.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsAvailsGetCall) Do(opts ...googleapi.CallOption) (*Avail, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1028,17 +888,17 @@ func (c *AccountsAvailsGetCall) Do(opts ...googleapi.CallOption) (*Avail, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Avail{ ServerResponse: googleapi.ServerResponse{ @@ -1051,41 +911,7 @@ func (c *AccountsAvailsGetCall) Do(opts ...googleapi.CallOption) (*Avail, error) return nil, err } return ret, nil - // { - // "description": "Get an Avail given its avail group id and avail id.", - // "flatPath": "v1/accounts/{accountId}/avails/{availId}", - // "httpMethod": "GET", - // "id": "playmoviespartner.accounts.avails.get", - // "parameterOrder": [ - // "accountId", - // "availId" - // ], - // "parameters": { - // "accountId": { - // "description": "REQUIRED. See _General rules_ for more information about this field.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "availId": { - // "description": "REQUIRED. Avail ID.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/accounts/{accountId}/avails/{availId}", - // "response": { - // "$ref": "Avail" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/playmovies_partner.readonly" - // ] - // } - -} - -// method id "playmoviespartner.accounts.avails.list": +} type AccountsAvailsListCall struct { s *Service @@ -1100,6 +926,9 @@ type AccountsAvailsListCall struct { // // See _Authentication and Authorization rules_ and // _List methods rules_ for more information about this method. +// +// - accountId: REQUIRED. See _General rules_ for more information about this +// field. func (r *AccountsAvailsService) List(accountId string) *AccountsAvailsListCall { c := &AccountsAvailsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -1108,8 +937,7 @@ func (r *AccountsAvailsService) List(accountId string) *AccountsAvailsListCall { // AltId sets the optional parameter "altId": Filter Avails that match a // case-insensitive, partner-specific custom id. -// NOTE: this field is deprecated and will be removed on V2; -// `alt_ids` +// NOTE: this field is deprecated and will be removed on V2; `alt_ids` // should be used instead. func (c *AccountsAvailsListCall) AltId(altId string) *AccountsAvailsListCall { c.urlParams_.Set("altId", altId) @@ -1123,88 +951,83 @@ func (c *AccountsAvailsListCall) AltIds(altIds ...string) *AccountsAvailsListCal return c } -// PageSize sets the optional parameter "pageSize": See _List methods -// rules_ for info about this field. +// PageSize sets the optional parameter "pageSize": See _List methods rules_ +// for info about this field. func (c *AccountsAvailsListCall) PageSize(pageSize int64) *AccountsAvailsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": See _List methods -// rules_ for info about this field. +// PageToken sets the optional parameter "pageToken": See _List methods rules_ +// for info about this field. func (c *AccountsAvailsListCall) PageToken(pageToken string) *AccountsAvailsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PphNames sets the optional parameter "pphNames": See _List methods -// rules_ for info about this field. +// PphNames sets the optional parameter "pphNames": See _List methods rules_ +// for info about this field. func (c *AccountsAvailsListCall) PphNames(pphNames ...string) *AccountsAvailsListCall { c.urlParams_.SetMulti("pphNames", append([]string{}, pphNames...)) return c } -// StudioNames sets the optional parameter "studioNames": See _List -// methods rules_ for info about this field. +// StudioNames sets the optional parameter "studioNames": See _List methods +// rules_ for info about this field. func (c *AccountsAvailsListCall) StudioNames(studioNames ...string) *AccountsAvailsListCall { c.urlParams_.SetMulti("studioNames", append([]string{}, studioNames...)) return c } -// Territories sets the optional parameter "territories": Filter Avails -// that match (case-insensitive) any of the given country codes, +// Territories sets the optional parameter "territories": Filter Avails that +// match (case-insensitive) any of the given country codes, // using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). func (c *AccountsAvailsListCall) Territories(territories ...string) *AccountsAvailsListCall { c.urlParams_.SetMulti("territories", append([]string{}, territories...)) return c } -// Title sets the optional parameter "title": Filter that matches Avails -// with a `title_internal_alias`, +// Title sets the optional parameter "title": Filter that matches Avails with a +// `title_internal_alias`, // `series_title_internal_alias`, `season_title_internal_alias`, -// or `episode_title_internal_alias` that contains the -// given +// or `episode_title_internal_alias` that contains the given // case-insensitive title. func (c *AccountsAvailsListCall) Title(title string) *AccountsAvailsListCall { c.urlParams_.Set("title", title) return c } -// VideoIds sets the optional parameter "videoIds": Filter Avails that -// match any of the given `video_id`s. +// VideoIds sets the optional parameter "videoIds": Filter Avails that match +// any of the given `video_id`s. func (c *AccountsAvailsListCall) VideoIds(videoIds ...string) *AccountsAvailsListCall { c.urlParams_.SetMulti("videoIds", append([]string{}, videoIds...)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsAvailsListCall) Fields(s ...googleapi.Field) *AccountsAvailsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsAvailsListCall) IfNoneMatch(entityTag string) *AccountsAvailsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsAvailsListCall) Context(ctx context.Context) *AccountsAvailsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsAvailsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1213,12 +1036,7 @@ func (c *AccountsAvailsListCall) Header() http.Header { } func (c *AccountsAvailsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1235,16 +1053,15 @@ func (c *AccountsAvailsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playmoviespartner.accounts.avails.list" call. -// Exactly one of *ListAvailsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListAvailsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListAvailsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsAvailsListCall) Do(opts ...googleapi.CallOption) (*ListAvailsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1252,17 +1069,17 @@ func (c *AccountsAvailsListCall) Do(opts ...googleapi.CallOption) (*ListAvailsRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListAvailsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1275,82 +1092,6 @@ func (c *AccountsAvailsListCall) Do(opts ...googleapi.CallOption) (*ListAvailsRe return nil, err } return ret, nil - // { - // "description": "List Avails owned or managed by the partner.\n\nSee _Authentication and Authorization rules_ and\n_List methods rules_ for more information about this method.", - // "flatPath": "v1/accounts/{accountId}/avails", - // "httpMethod": "GET", - // "id": "playmoviespartner.accounts.avails.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "REQUIRED. See _General rules_ for more information about this field.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "altId": { - // "description": "Filter Avails that match a case-insensitive, partner-specific custom id.\nNOTE: this field is deprecated and will be removed on V2; `alt_ids`\nshould be used instead.", - // "location": "query", - // "type": "string" - // }, - // "altIds": { - // "description": "Filter Avails that match (case-insensitive) any of the given partner-specific custom ids.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "See _List methods rules_ for info about this field.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "See _List methods rules_ for info about this field.", - // "location": "query", - // "type": "string" - // }, - // "pphNames": { - // "description": "See _List methods rules_ for info about this field.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "studioNames": { - // "description": "See _List methods rules_ for info about this field.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "territories": { - // "description": "Filter Avails that match (case-insensitive) any of the given country codes,\nusing the \"ISO 3166-1 alpha-2\" format (examples: \"US\", \"us\", \"Us\").", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "title": { - // "description": "Filter that matches Avails with a `title_internal_alias`,\n`series_title_internal_alias`, `season_title_internal_alias`,\nor `episode_title_internal_alias` that contains the given\ncase-insensitive title.", - // "location": "query", - // "type": "string" - // }, - // "videoIds": { - // "description": "Filter Avails that match any of the given `video_id`s.", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "v1/accounts/{accountId}/avails", - // "response": { - // "$ref": "ListAvailsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/playmovies_partner.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1358,7 +1099,7 @@ func (c *AccountsAvailsListCall) Do(opts ...googleapi.CallOption) (*ListAvailsRe // The provided context supersedes any context provided to the Context method. func (c *AccountsAvailsListCall) Pages(ctx context.Context, f func(*ListAvailsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1374,8 +1115,6 @@ func (c *AccountsAvailsListCall) Pages(ctx context.Context, f func(*ListAvailsRe } } -// method id "playmoviespartner.accounts.orders.get": - type AccountsOrdersGetCall struct { s *Service accountId string @@ -1390,6 +1129,10 @@ type AccountsOrdersGetCall struct { // // See _Authentication and Authorization rules_ and // _Get methods rules_ for more information about this method. +// +// - accountId: REQUIRED. See _General rules_ for more information about this +// field. +// - orderId: REQUIRED. Order ID. func (r *AccountsOrdersService) Get(accountId string, orderId string) *AccountsOrdersGetCall { c := &AccountsOrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -1398,33 +1141,29 @@ func (r *AccountsOrdersService) Get(accountId string, orderId string) *AccountsO } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsOrdersGetCall) Fields(s ...googleapi.Field) *AccountsOrdersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsOrdersGetCall) IfNoneMatch(entityTag string) *AccountsOrdersGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsOrdersGetCall) Context(ctx context.Context) *AccountsOrdersGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsOrdersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1433,12 +1172,7 @@ func (c *AccountsOrdersGetCall) Header() http.Header { } func (c *AccountsOrdersGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1456,16 +1190,14 @@ func (c *AccountsOrdersGetCall) doRequest(alt string) (*http.Response, error) { "accountId": c.accountId, "orderId": c.orderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playmoviespartner.accounts.orders.get" call. -// Exactly one of *Order or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Order.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Order.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsOrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1473,17 +1205,17 @@ func (c *AccountsOrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Order{ ServerResponse: googleapi.ServerResponse{ @@ -1496,41 +1228,7 @@ func (c *AccountsOrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) return nil, err } return ret, nil - // { - // "description": "Get an Order given its id.\n\nSee _Authentication and Authorization rules_ and\n_Get methods rules_ for more information about this method.", - // "flatPath": "v1/accounts/{accountId}/orders/{orderId}", - // "httpMethod": "GET", - // "id": "playmoviespartner.accounts.orders.get", - // "parameterOrder": [ - // "accountId", - // "orderId" - // ], - // "parameters": { - // "accountId": { - // "description": "REQUIRED. See _General rules_ for more information about this field.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "orderId": { - // "description": "REQUIRED. Order ID.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/accounts/{accountId}/orders/{orderId}", - // "response": { - // "$ref": "Order" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/playmovies_partner.readonly" - // ] - // } - -} - -// method id "playmoviespartner.accounts.orders.list": +} type AccountsOrdersListCall struct { s *Service @@ -1545,50 +1243,53 @@ type AccountsOrdersListCall struct { // // See _Authentication and Authorization rules_ and // _List methods rules_ for more information about this method. +// +// - accountId: REQUIRED. See _General rules_ for more information about this +// field. func (r *AccountsOrdersService) List(accountId string) *AccountsOrdersListCall { c := &AccountsOrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId return c } -// CustomId sets the optional parameter "customId": Filter Orders that -// match a case-insensitive, partner-specific custom id. +// CustomId sets the optional parameter "customId": Filter Orders that match a +// case-insensitive, partner-specific custom id. func (c *AccountsOrdersListCall) CustomId(customId string) *AccountsOrdersListCall { c.urlParams_.Set("customId", customId) return c } -// Name sets the optional parameter "name": Filter that matches Orders -// with a `name`, `show`, `season` or `episode` +// Name sets the optional parameter "name": Filter that matches Orders with a +// `name`, `show`, `season` or `episode` // that contains the given case-insensitive name. func (c *AccountsOrdersListCall) Name(name string) *AccountsOrdersListCall { c.urlParams_.Set("name", name) return c } -// PageSize sets the optional parameter "pageSize": See _List methods -// rules_ for info about this field. +// PageSize sets the optional parameter "pageSize": See _List methods rules_ +// for info about this field. func (c *AccountsOrdersListCall) PageSize(pageSize int64) *AccountsOrdersListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": See _List methods -// rules_ for info about this field. +// PageToken sets the optional parameter "pageToken": See _List methods rules_ +// for info about this field. func (c *AccountsOrdersListCall) PageToken(pageToken string) *AccountsOrdersListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PphNames sets the optional parameter "pphNames": See _List methods -// rules_ for info about this field. +// PphNames sets the optional parameter "pphNames": See _List methods rules_ +// for info about this field. func (c *AccountsOrdersListCall) PphNames(pphNames ...string) *AccountsOrdersListCall { c.urlParams_.SetMulti("pphNames", append([]string{}, pphNames...)) return c } -// Status sets the optional parameter "status": Filter Orders that match -// one of the given status. +// Status sets the optional parameter "status": Filter Orders that match one of +// the given status. // // Possible values: // @@ -1603,48 +1304,44 @@ func (c *AccountsOrdersListCall) Status(status ...string) *AccountsOrdersListCal return c } -// StudioNames sets the optional parameter "studioNames": See _List -// methods rules_ for info about this field. +// StudioNames sets the optional parameter "studioNames": See _List methods +// rules_ for info about this field. func (c *AccountsOrdersListCall) StudioNames(studioNames ...string) *AccountsOrdersListCall { c.urlParams_.SetMulti("studioNames", append([]string{}, studioNames...)) return c } -// VideoIds sets the optional parameter "videoIds": Filter Orders that -// match any of the given `video_id`s. +// VideoIds sets the optional parameter "videoIds": Filter Orders that match +// any of the given `video_id`s. func (c *AccountsOrdersListCall) VideoIds(videoIds ...string) *AccountsOrdersListCall { c.urlParams_.SetMulti("videoIds", append([]string{}, videoIds...)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsOrdersListCall) Fields(s ...googleapi.Field) *AccountsOrdersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsOrdersListCall) IfNoneMatch(entityTag string) *AccountsOrdersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsOrdersListCall) Context(ctx context.Context) *AccountsOrdersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsOrdersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1653,12 +1350,7 @@ func (c *AccountsOrdersListCall) Header() http.Header { } func (c *AccountsOrdersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1675,16 +1367,15 @@ func (c *AccountsOrdersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playmoviespartner.accounts.orders.list" call. -// Exactly one of *ListOrdersResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOrdersResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOrdersResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsOrdersListCall) Do(opts ...googleapi.CallOption) (*ListOrdersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1692,17 +1383,17 @@ func (c *AccountsOrdersListCall) Do(opts ...googleapi.CallOption) (*ListOrdersRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOrdersResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1715,84 +1406,6 @@ func (c *AccountsOrdersListCall) Do(opts ...googleapi.CallOption) (*ListOrdersRe return nil, err } return ret, nil - // { - // "description": "List Orders owned or managed by the partner.\n\nSee _Authentication and Authorization rules_ and\n_List methods rules_ for more information about this method.", - // "flatPath": "v1/accounts/{accountId}/orders", - // "httpMethod": "GET", - // "id": "playmoviespartner.accounts.orders.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "REQUIRED. See _General rules_ for more information about this field.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "customId": { - // "description": "Filter Orders that match a case-insensitive, partner-specific custom id.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Filter that matches Orders with a `name`, `show`, `season` or `episode`\nthat contains the given case-insensitive name.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "See _List methods rules_ for info about this field.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "See _List methods rules_ for info about this field.", - // "location": "query", - // "type": "string" - // }, - // "pphNames": { - // "description": "See _List methods rules_ for info about this field.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "status": { - // "description": "Filter Orders that match one of the given status.", - // "enum": [ - // "STATUS_UNSPECIFIED", - // "STATUS_APPROVED", - // "STATUS_FAILED", - // "STATUS_PROCESSING", - // "STATUS_UNFULFILLED", - // "STATUS_NOT_AVAILABLE" - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "studioNames": { - // "description": "See _List methods rules_ for info about this field.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "videoIds": { - // "description": "Filter Orders that match any of the given `video_id`s.", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "v1/accounts/{accountId}/orders", - // "response": { - // "$ref": "ListOrdersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/playmovies_partner.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1800,7 +1413,7 @@ func (c *AccountsOrdersListCall) Do(opts ...googleapi.CallOption) (*ListOrdersRe // The provided context supersedes any context provided to the Context method. func (c *AccountsOrdersListCall) Pages(ctx context.Context, f func(*ListOrdersResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1816,8 +1429,6 @@ func (c *AccountsOrdersListCall) Pages(ctx context.Context, f func(*ListOrdersRe } } -// method id "playmoviespartner.accounts.storeInfos.list": - type AccountsStoreInfosListCall struct { s *Service accountId string @@ -1831,116 +1442,113 @@ type AccountsStoreInfosListCall struct { // // See _Authentication and Authorization rules_ and // _List methods rules_ for more information about this method. +// +// - accountId: REQUIRED. See _General rules_ for more information about this +// field. func (r *AccountsStoreInfosService) List(accountId string) *AccountsStoreInfosListCall { c := &AccountsStoreInfosListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId return c } -// Countries sets the optional parameter "countries": Filter StoreInfos -// that match (case-insensitive) any of the given country -// codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", -// "Us"). +// Countries sets the optional parameter "countries": Filter StoreInfos that +// match (case-insensitive) any of the given country +// codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). func (c *AccountsStoreInfosListCall) Countries(countries ...string) *AccountsStoreInfosListCall { c.urlParams_.SetMulti("countries", append([]string{}, countries...)) return c } -// Mids sets the optional parameter "mids": Filter StoreInfos that match -// any of the given `mid`s. +// Mids sets the optional parameter "mids": Filter StoreInfos that match any of +// the given `mid`s. func (c *AccountsStoreInfosListCall) Mids(mids ...string) *AccountsStoreInfosListCall { c.urlParams_.SetMulti("mids", append([]string{}, mids...)) return c } -// Name sets the optional parameter "name": Filter that matches -// StoreInfos with a `name` or `show_name` +// Name sets the optional parameter "name": Filter that matches StoreInfos with +// a `name` or `show_name` // that contains the given case-insensitive name. func (c *AccountsStoreInfosListCall) Name(name string) *AccountsStoreInfosListCall { c.urlParams_.Set("name", name) return c } -// PageSize sets the optional parameter "pageSize": See _List methods -// rules_ for info about this field. +// PageSize sets the optional parameter "pageSize": See _List methods rules_ +// for info about this field. func (c *AccountsStoreInfosListCall) PageSize(pageSize int64) *AccountsStoreInfosListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": See _List methods -// rules_ for info about this field. +// PageToken sets the optional parameter "pageToken": See _List methods rules_ +// for info about this field. func (c *AccountsStoreInfosListCall) PageToken(pageToken string) *AccountsStoreInfosListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// PphNames sets the optional parameter "pphNames": See _List methods -// rules_ for info about this field. +// PphNames sets the optional parameter "pphNames": See _List methods rules_ +// for info about this field. func (c *AccountsStoreInfosListCall) PphNames(pphNames ...string) *AccountsStoreInfosListCall { c.urlParams_.SetMulti("pphNames", append([]string{}, pphNames...)) return c } -// SeasonIds sets the optional parameter "seasonIds": Filter StoreInfos -// that match any of the given `season_id`s. +// SeasonIds sets the optional parameter "seasonIds": Filter StoreInfos that +// match any of the given `season_id`s. func (c *AccountsStoreInfosListCall) SeasonIds(seasonIds ...string) *AccountsStoreInfosListCall { c.urlParams_.SetMulti("seasonIds", append([]string{}, seasonIds...)) return c } -// StudioNames sets the optional parameter "studioNames": See _List -// methods rules_ for info about this field. +// StudioNames sets the optional parameter "studioNames": See _List methods +// rules_ for info about this field. func (c *AccountsStoreInfosListCall) StudioNames(studioNames ...string) *AccountsStoreInfosListCall { c.urlParams_.SetMulti("studioNames", append([]string{}, studioNames...)) return c } -// VideoId sets the optional parameter "videoId": Filter StoreInfos that -// match a given `video_id`. -// NOTE: this field is deprecated and will be removed on V2; -// `video_ids` +// VideoId sets the optional parameter "videoId": Filter StoreInfos that match +// a given `video_id`. +// NOTE: this field is deprecated and will be removed on V2; `video_ids` // should be used instead. func (c *AccountsStoreInfosListCall) VideoId(videoId string) *AccountsStoreInfosListCall { c.urlParams_.Set("videoId", videoId) return c } -// VideoIds sets the optional parameter "videoIds": Filter StoreInfos -// that match any of the given `video_id`s. +// VideoIds sets the optional parameter "videoIds": Filter StoreInfos that +// match any of the given `video_id`s. func (c *AccountsStoreInfosListCall) VideoIds(videoIds ...string) *AccountsStoreInfosListCall { c.urlParams_.SetMulti("videoIds", append([]string{}, videoIds...)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsStoreInfosListCall) Fields(s ...googleapi.Field) *AccountsStoreInfosListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsStoreInfosListCall) IfNoneMatch(entityTag string) *AccountsStoreInfosListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsStoreInfosListCall) Context(ctx context.Context) *AccountsStoreInfosListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsStoreInfosListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1949,12 +1557,7 @@ func (c *AccountsStoreInfosListCall) Header() http.Header { } func (c *AccountsStoreInfosListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1971,16 +1574,15 @@ func (c *AccountsStoreInfosListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playmoviespartner.accounts.storeInfos.list" call. -// Exactly one of *ListStoreInfosResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListStoreInfosResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListStoreInfosResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *AccountsStoreInfosListCall) Do(opts ...googleapi.CallOption) (*ListStoreInfosResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1988,17 +1590,17 @@ func (c *AccountsStoreInfosListCall) Do(opts ...googleapi.CallOption) (*ListStor if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListStoreInfosResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2011,88 +1613,6 @@ func (c *AccountsStoreInfosListCall) Do(opts ...googleapi.CallOption) (*ListStor return nil, err } return ret, nil - // { - // "description": "List StoreInfos owned or managed by the partner.\n\nSee _Authentication and Authorization rules_ and\n_List methods rules_ for more information about this method.", - // "flatPath": "v1/accounts/{accountId}/storeInfos", - // "httpMethod": "GET", - // "id": "playmoviespartner.accounts.storeInfos.list", - // "parameterOrder": [ - // "accountId" - // ], - // "parameters": { - // "accountId": { - // "description": "REQUIRED. See _General rules_ for more information about this field.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "countries": { - // "description": "Filter StoreInfos that match (case-insensitive) any of the given country\ncodes, using the \"ISO 3166-1 alpha-2\" format (examples: \"US\", \"us\", \"Us\").", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "mids": { - // "description": "Filter StoreInfos that match any of the given `mid`s.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "name": { - // "description": "Filter that matches StoreInfos with a `name` or `show_name`\nthat contains the given case-insensitive name.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "See _List methods rules_ for info about this field.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "See _List methods rules_ for info about this field.", - // "location": "query", - // "type": "string" - // }, - // "pphNames": { - // "description": "See _List methods rules_ for info about this field.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "seasonIds": { - // "description": "Filter StoreInfos that match any of the given `season_id`s.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "studioNames": { - // "description": "See _List methods rules_ for info about this field.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "videoId": { - // "description": "Filter StoreInfos that match a given `video_id`.\nNOTE: this field is deprecated and will be removed on V2; `video_ids`\nshould be used instead.", - // "location": "query", - // "type": "string" - // }, - // "videoIds": { - // "description": "Filter StoreInfos that match any of the given `video_id`s.", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "v1/accounts/{accountId}/storeInfos", - // "response": { - // "$ref": "ListStoreInfosResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/playmovies_partner.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2100,7 +1620,7 @@ func (c *AccountsStoreInfosListCall) Do(opts ...googleapi.CallOption) (*ListStor // The provided context supersedes any context provided to the Context method. func (c *AccountsStoreInfosListCall) Pages(ctx context.Context, f func(*ListStoreInfosResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2116,8 +1636,6 @@ func (c *AccountsStoreInfosListCall) Pages(ctx context.Context, f func(*ListStor } } -// method id "playmoviespartner.accounts.storeInfos.country.get": - type AccountsStoreInfosCountryGetCall struct { s *Service accountId string @@ -2133,6 +1651,11 @@ type AccountsStoreInfosCountryGetCall struct { // // See _Authentication and Authorization rules_ and // _Get methods rules_ for more information about this method. +// +// - accountId: REQUIRED. See _General rules_ for more information about this +// field. +// - country: REQUIRED. Edit country. +// - videoId: REQUIRED. Video ID. func (r *AccountsStoreInfosCountryService) Get(accountId string, videoId string, country string) *AccountsStoreInfosCountryGetCall { c := &AccountsStoreInfosCountryGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.accountId = accountId @@ -2142,33 +1665,29 @@ func (r *AccountsStoreInfosCountryService) Get(accountId string, videoId string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AccountsStoreInfosCountryGetCall) Fields(s ...googleapi.Field) *AccountsStoreInfosCountryGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AccountsStoreInfosCountryGetCall) IfNoneMatch(entityTag string) *AccountsStoreInfosCountryGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AccountsStoreInfosCountryGetCall) Context(ctx context.Context) *AccountsStoreInfosCountryGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AccountsStoreInfosCountryGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2177,12 +1696,7 @@ func (c *AccountsStoreInfosCountryGetCall) Header() http.Header { } func (c *AccountsStoreInfosCountryGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2201,16 +1715,14 @@ func (c *AccountsStoreInfosCountryGetCall) doRequest(alt string) (*http.Response "videoId": c.videoId, "country": c.country, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "playmoviespartner.accounts.storeInfos.country.get" call. -// Exactly one of *StoreInfo or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *StoreInfo.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *StoreInfo.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AccountsStoreInfosCountryGetCall) Do(opts ...googleapi.CallOption) (*StoreInfo, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2218,17 +1730,17 @@ func (c *AccountsStoreInfosCountryGetCall) Do(opts ...googleapi.CallOption) (*St if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &StoreInfo{ ServerResponse: googleapi.ServerResponse{ @@ -2241,43 +1753,4 @@ func (c *AccountsStoreInfosCountryGetCall) Do(opts ...googleapi.CallOption) (*St return nil, err } return ret, nil - // { - // "description": "Get a StoreInfo given its video id and country.\n\nSee _Authentication and Authorization rules_ and\n_Get methods rules_ for more information about this method.", - // "flatPath": "v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}", - // "httpMethod": "GET", - // "id": "playmoviespartner.accounts.storeInfos.country.get", - // "parameterOrder": [ - // "accountId", - // "videoId", - // "country" - // ], - // "parameters": { - // "accountId": { - // "description": "REQUIRED. See _General rules_ for more information about this field.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "country": { - // "description": "REQUIRED. Edit country.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "videoId": { - // "description": "REQUIRED. Video ID.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}", - // "response": { - // "$ref": "StoreInfo" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/playmovies_partner.readonly" - // ] - // } - } diff --git a/plus/v1/plus-gen.go b/plus/v1/plus-gen.go index c74fb85336a..81fbedb97f4 100644 --- a/plus/v1/plus-gen.go +++ b/plus/v1/plus-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/+/api/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // plusService, err := plus.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // plusService, err := plus.NewService(ctx, option.WithScopes(plus.UserinfoProfileScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // plusService, err := plus.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // plusService, err := plus.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package plus // import "google.golang.org/api/plus/v1" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "plus:v1" const apiName = "plus" const apiVersion = "v1" const basePath = "https://www.googleapis.com/plus/v1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/plus/v1/" // OAuth2 scopes used by this API. const ( @@ -91,14 +108,14 @@ const ( // View your email address UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email" - // See your personal info, including any personal info you've made - // publicly available + // See your personal info, including any personal info you've made publicly + // available UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.profile" ) // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/plus.login", "https://www.googleapis.com/auth/plus.me", "https://www.googleapis.com/auth/userinfo.email", @@ -107,6 +124,8 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -186,444 +205,331 @@ type PeopleService struct { type Acl struct { // Description: Description of the access granted, suitable for display. Description string `json:"description,omitempty"` - // Items: The list of access entries. Items []*PlusAclentryResource `json:"items,omitempty"` - - // Kind: Identifies this resource as a collection of access controls. - // Value: "plus#acl". + // Kind: Identifies this resource as a collection of access controls. Value: + // "plus#acl". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Acl) MarshalJSON() ([]byte, error) { +func (s Acl) MarshalJSON() ([]byte, error) { type NoMethod Acl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Activity struct { // Access: Identifies who has access to see this activity. Access *Acl `json:"access,omitempty"` - // Actor: The person who performed this activity. Actor *ActivityActor `json:"actor,omitempty"` - // Address: Street address where this activity occurred. Address string `json:"address,omitempty"` - - // Annotation: Additional content added by the person who shared this - // activity, applicable only when resharing an activity. + // Annotation: Additional content added by the person who shared this activity, + // applicable only when resharing an activity. Annotation string `json:"annotation,omitempty"` - - // CrosspostSource: If this activity is a crosspost from another system, - // this property specifies the ID of the original activity. + // CrosspostSource: If this activity is a crosspost from another system, this + // property specifies the ID of the original activity. CrosspostSource string `json:"crosspostSource,omitempty"` - // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // Geocode: Latitude and longitude where this activity occurred. Format - // is latitude followed by longitude, space separated. + // Geocode: Latitude and longitude where this activity occurred. Format is + // latitude followed by longitude, space separated. Geocode string `json:"geocode,omitempty"` - // Id: The ID of this activity. Id string `json:"id,omitempty"` - - // Kind: Identifies this resource as an activity. Value: - // "plus#activity". + // Kind: Identifies this resource as an activity. Value: "plus#activity". Kind string `json:"kind,omitempty"` - // Location: The location where this activity occurred. Location *Place `json:"location,omitempty"` - // Object: The object of this activity. Object *ActivityObject `json:"object,omitempty"` - // PlaceId: ID of the place where this activity occurred. PlaceId string `json:"placeId,omitempty"` - // PlaceName: Name of the place where this activity occurred. PlaceName string `json:"placeName,omitempty"` - - // Provider: The service provider that initially published this - // activity. + // Provider: The service provider that initially published this activity. Provider *ActivityProvider `json:"provider,omitempty"` - // Published: The time at which this activity was initially published. // Formatted as an RFC 3339 timestamp. Published string `json:"published,omitempty"` - - // Radius: Radius, in meters, of the region where this activity - // occurred, centered at the latitude and longitude identified in - // geocode. + // Radius: Radius, in meters, of the region where this activity occurred, + // centered at the latitude and longitude identified in geocode. Radius string `json:"radius,omitempty"` - // Title: Title of this activity. Title string `json:"title,omitempty"` - - // Updated: The time at which this activity was last updated. Formatted - // as an RFC 3339 timestamp. + // Updated: The time at which this activity was last updated. Formatted as an + // RFC 3339 timestamp. Updated string `json:"updated,omitempty"` - // Url: The link to this activity. Url string `json:"url,omitempty"` - - // Verb: This activity's verb, which indicates the action that was - // performed. Possible values include, but are not limited to, the - // following values: + // Verb: This activity's verb, which indicates the action that was performed. + // Possible values include, but are not limited to, the following values: // - "post" - Publish content to the stream. // - "share" - Reshare an activity. Verb string `json:"verb,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Access") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Access") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Access") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Activity) MarshalJSON() ([]byte, error) { +func (s Activity) MarshalJSON() ([]byte, error) { type NoMethod Activity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityActor: The person who performed this activity. type ActivityActor struct { // ClientSpecificActorInfo: Actor info specific to particular clients. ClientSpecificActorInfo *ActivityActorClientSpecificActorInfo `json:"clientSpecificActorInfo,omitempty"` - // DisplayName: The name of the actor, suitable for display. DisplayName string `json:"displayName,omitempty"` - // Id: The ID of the actor's Person resource. Id string `json:"id,omitempty"` - // Image: The image representation of the actor. Image *ActivityActorImage `json:"image,omitempty"` - // Name: An object representation of the individual components of name. Name *ActivityActorName `json:"name,omitempty"` - // Url: The link to the actor's Google profile. Url string `json:"url,omitempty"` - // Verification: Verification status of actor. Verification *ActivityActorVerification `json:"verification,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClientSpecificActorInfo") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActor) MarshalJSON() ([]byte, error) { +func (s ActivityActor) MarshalJSON() ([]byte, error) { type NoMethod ActivityActor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityActorClientSpecificActorInfo: Actor info specific to -// particular clients. +// ActivityActorClientSpecificActorInfo: Actor info specific to particular +// clients. type ActivityActorClientSpecificActorInfo struct { // YoutubeActorInfo: Actor info specific to YouTube clients. YoutubeActorInfo *ActivityActorClientSpecificActorInfoYoutubeActorInfo `json:"youtubeActorInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "YoutubeActorInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "YoutubeActorInfo") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "YoutubeActorInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { +func (s ActivityActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { type NoMethod ActivityActorClientSpecificActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityActorClientSpecificActorInfoYoutubeActorInfo: Actor info -// specific to YouTube clients. +// ActivityActorClientSpecificActorInfoYoutubeActorInfo: Actor info specific to +// YouTube clients. type ActivityActorClientSpecificActorInfoYoutubeActorInfo struct { // ChannelId: ID of the YouTube channel owned by the Actor. ChannelId string `json:"channelId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { +func (s ActivityActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { type NoMethod ActivityActorClientSpecificActorInfoYoutubeActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityActorImage: The image representation of the actor. type ActivityActorImage struct { - // Url: The URL of the actor's profile photo. To resize the image and - // crop it to a square, append the query string ?sz=x, where x is the - // dimension in pixels of each side. + // Url: The URL of the actor's profile photo. To resize the image and crop it + // to a square, append the query string ?sz=x, where x is the dimension in + // pixels of each side. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActorImage) MarshalJSON() ([]byte, error) { +func (s ActivityActorImage) MarshalJSON() ([]byte, error) { type NoMethod ActivityActorImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityActorName: An object representation of the individual -// components of name. +// ActivityActorName: An object representation of the individual components of +// name. type ActivityActorName struct { // FamilyName: The family name ("last name") of the actor. FamilyName string `json:"familyName,omitempty"` - // GivenName: The given name ("first name") of the actor. GivenName string `json:"givenName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FamilyName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FamilyName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FamilyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActorName) MarshalJSON() ([]byte, error) { +func (s ActivityActorName) MarshalJSON() ([]byte, error) { type NoMethod ActivityActorName - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityActorVerification: Verification status of actor. type ActivityActorVerification struct { // AdHocVerified: Verification for one-time or manual processes. AdHocVerified string `json:"adHocVerified,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdHocVerified") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdHocVerified") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdHocVerified") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActorVerification) MarshalJSON() ([]byte, error) { +func (s ActivityActorVerification) MarshalJSON() ([]byte, error) { type NoMethod ActivityActorVerification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObject: The object of this activity. type ActivityObject struct { - // Actor: If this activity's object is itself another activity, such as - // when a person reshares an activity, this property specifies the - // original activity's actor. + // Actor: If this activity's object is itself another activity, such as when a + // person reshares an activity, this property specifies the original activity's + // actor. Actor *ActivityObjectActor `json:"actor,omitempty"` - // Attachments: The media objects attached to this activity. Attachments []*ActivityObjectAttachments `json:"attachments,omitempty"` - // Content: The HTML-formatted content, which is suitable for display. Content string `json:"content,omitempty"` - - // Id: The ID of the object. When resharing an activity, this is the ID - // of the activity that is being reshared. + // Id: The ID of the object. When resharing an activity, this is the ID of the + // activity that is being reshared. Id string `json:"id,omitempty"` - - // ObjectType: The type of the object. Possible values include, but are - // not limited to, the following values: + // ObjectType: The type of the object. Possible values include, but are not + // limited to, the following values: // - "note" - Textual content. // - "activity" - A Google+ activity. ObjectType string `json:"objectType,omitempty"` - - // OriginalContent: The content (text) as provided by the author, which - // is stored without any HTML formatting. When creating or updating an - // activity, this value must be supplied as plain text in the request. + // OriginalContent: The content (text) as provided by the author, which is + // stored without any HTML formatting. When creating or updating an activity, + // this value must be supplied as plain text in the request. OriginalContent string `json:"originalContent,omitempty"` - // Plusoners: People who +1'd this activity. Plusoners *ActivityObjectPlusoners `json:"plusoners,omitempty"` - // Replies: Comments in reply to this activity. Replies *ActivityObjectReplies `json:"replies,omitempty"` - // Resharers: People who reshared this activity. Resharers *ActivityObjectResharers `json:"resharers,omitempty"` - // Url: The URL that points to the linked resource. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Actor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actor") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObject) MarshalJSON() ([]byte, error) { +func (s ActivityObject) MarshalJSON() ([]byte, error) { type NoMethod ActivityObject - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectActor: If this activity's object is itself another -// activity, such as when a person reshares an activity, this property -// specifies the original activity's actor. +// ActivityObjectActor: If this activity's object is itself another activity, +// such as when a person reshares an activity, this property specifies the +// original activity's actor. type ActivityObjectActor struct { // ClientSpecificActorInfo: Actor info specific to particular clients. ClientSpecificActorInfo *ActivityObjectActorClientSpecificActorInfo `json:"clientSpecificActorInfo,omitempty"` - - // DisplayName: The original actor's name, which is suitable for - // display. + // DisplayName: The original actor's name, which is suitable for display. DisplayName string `json:"displayName,omitempty"` - // Id: ID of the original actor. Id string `json:"id,omitempty"` - // Image: The image representation of the original actor. Image *ActivityObjectActorImage `json:"image,omitempty"` - // Url: A link to the original actor's Google profile. Url string `json:"url,omitempty"` - // Verification: Verification status of actor. Verification *ActivityObjectActorVerification `json:"verification,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClientSpecificActorInfo") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectActor) MarshalJSON() ([]byte, error) { +func (s ActivityObjectActor) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectActor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectActorClientSpecificActorInfo: Actor info specific to @@ -631,207 +537,159 @@ func (s *ActivityObjectActor) MarshalJSON() ([]byte, error) { type ActivityObjectActorClientSpecificActorInfo struct { // YoutubeActorInfo: Actor info specific to YouTube clients. YoutubeActorInfo *ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo `json:"youtubeActorInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "YoutubeActorInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "YoutubeActorInfo") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "YoutubeActorInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { +func (s ActivityObjectActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectActorClientSpecificActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo: Actor -// info specific to YouTube clients. +// ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo: Actor info +// specific to YouTube clients. type ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo struct { // ChannelId: ID of the YouTube channel owned by the Actor. ChannelId string `json:"channelId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { +func (s ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectActorImage: The image representation of the original -// actor. +// ActivityObjectActorImage: The image representation of the original actor. type ActivityObjectActorImage struct { // Url: A URL that points to a thumbnail photo of the original actor. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectActorImage) MarshalJSON() ([]byte, error) { +func (s ActivityObjectActorImage) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectActorImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectActorVerification: Verification status of actor. type ActivityObjectActorVerification struct { // AdHocVerified: Verification for one-time or manual processes. AdHocVerified string `json:"adHocVerified,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdHocVerified") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdHocVerified") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdHocVerified") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectActorVerification) MarshalJSON() ([]byte, error) { +func (s ActivityObjectActorVerification) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectActorVerification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ActivityObjectAttachments struct { - // Content: If the attachment is an article, this property contains a - // snippet of text from the article. It can also include descriptions - // for other types. + // Content: If the attachment is an article, this property contains a snippet + // of text from the article. It can also include descriptions for other types. Content string `json:"content,omitempty"` - - // DisplayName: The title of the attachment, such as a photo caption or - // an article title. + // DisplayName: The title of the attachment, such as a photo caption or an + // article title. DisplayName string `json:"displayName,omitempty"` - // Embed: If the attachment is a video, the embeddable link. Embed *ActivityObjectAttachmentsEmbed `json:"embed,omitempty"` - // FullImage: The full image URL for photo attachments. FullImage *ActivityObjectAttachmentsFullImage `json:"fullImage,omitempty"` - // Id: The ID of the attachment. Id string `json:"id,omitempty"` - // Image: The preview image for photos or videos. Image *ActivityObjectAttachmentsImage `json:"image,omitempty"` - - // ObjectType: The type of media object. Possible values include, but - // are not limited to, the following values: + // ObjectType: The type of media object. Possible values include, but are not + // limited to, the following values: // - "photo" - A photo. // - "album" - A photo album. // - "video" - A video. // - "article" - An article, specified by a link. ObjectType string `json:"objectType,omitempty"` - // Thumbnails: If the attachment is an album, this property is a list of // potential additional thumbnails from the album. Thumbnails []*ActivityObjectAttachmentsThumbnails `json:"thumbnails,omitempty"` - // Url: The link to the attachment, which should be of type text/html. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachments) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachments) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachments - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectAttachmentsEmbed: If the attachment is a video, the -// embeddable link. +// ActivityObjectAttachmentsEmbed: If the attachment is a video, the embeddable +// link. type ActivityObjectAttachmentsEmbed struct { // Type: Media type of the link. Type string `json:"type,omitempty"` - // Url: URL of the link. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsEmbed) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsEmbed) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsEmbed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectAttachmentsFullImage: The full image URL for photo @@ -839,240 +697,181 @@ func (s *ActivityObjectAttachmentsEmbed) MarshalJSON() ([]byte, error) { type ActivityObjectAttachmentsFullImage struct { // Height: The height, in pixels, of the linked resource. Height int64 `json:"height,omitempty"` - // Type: Media type of the link. Type string `json:"type,omitempty"` - // Url: URL of the image. Url string `json:"url,omitempty"` - // Width: The width, in pixels, of the linked resource. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsFullImage) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsFullImage) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsFullImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectAttachmentsImage: The preview image for photos or -// videos. +// ActivityObjectAttachmentsImage: The preview image for photos or videos. type ActivityObjectAttachmentsImage struct { // Height: The height, in pixels, of the linked resource. Height int64 `json:"height,omitempty"` - // Type: Media type of the link. Type string `json:"type,omitempty"` - // Url: Image URL. Url string `json:"url,omitempty"` - // Width: The width, in pixels, of the linked resource. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsImage) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsImage) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ActivityObjectAttachmentsThumbnails struct { // Description: Potential name of the thumbnail. Description string `json:"description,omitempty"` - // Image: Image resource. Image *ActivityObjectAttachmentsThumbnailsImage `json:"image,omitempty"` - // Url: URL of the webpage containing the image. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsThumbnails) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsThumbnails) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsThumbnails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectAttachmentsThumbnailsImage: Image resource. type ActivityObjectAttachmentsThumbnailsImage struct { // Height: The height, in pixels, of the linked resource. Height int64 `json:"height,omitempty"` - // Type: Media type of the link. Type string `json:"type,omitempty"` - // Url: Image url. Url string `json:"url,omitempty"` - // Width: The width, in pixels, of the linked resource. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsThumbnailsImage) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsThumbnailsImage) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsThumbnailsImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectPlusoners: People who +1'd this activity. type ActivityObjectPlusoners struct { - // SelfLink: The URL for the collection of people who +1'd this - // activity. + // SelfLink: The URL for the collection of people who +1'd this activity. SelfLink string `json:"selfLink,omitempty"` - // TotalItems: Total number of people who +1'd this activity. TotalItems int64 `json:"totalItems,omitempty"` - // ForceSendFields is a list of field names (e.g. "SelfLink") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SelfLink") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SelfLink") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectPlusoners) MarshalJSON() ([]byte, error) { +func (s ActivityObjectPlusoners) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectPlusoners - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectReplies: Comments in reply to this activity. type ActivityObjectReplies struct { - // SelfLink: The URL for the collection of comments in reply to this - // activity. + // SelfLink: The URL for the collection of comments in reply to this activity. SelfLink string `json:"selfLink,omitempty"` - // TotalItems: Total number of comments on this activity. TotalItems int64 `json:"totalItems,omitempty"` - // ForceSendFields is a list of field names (e.g. "SelfLink") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SelfLink") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SelfLink") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectReplies) MarshalJSON() ([]byte, error) { +func (s ActivityObjectReplies) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectReplies - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectResharers: People who reshared this activity. type ActivityObjectResharers struct { // SelfLink: The URL for the collection of resharers. SelfLink string `json:"selfLink,omitempty"` - // TotalItems: Total number of people who reshared this activity. TotalItems int64 `json:"totalItems,omitempty"` - // ForceSendFields is a list of field names (e.g. "SelfLink") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SelfLink") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SelfLink") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectResharers) MarshalJSON() ([]byte, error) { +func (s ActivityObjectResharers) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectResharers - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityProvider: The service provider that initially published this @@ -1080,616 +879,468 @@ func (s *ActivityObjectResharers) MarshalJSON() ([]byte, error) { type ActivityProvider struct { // Title: Name of the service provider. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Title") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Title") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Title") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityProvider) MarshalJSON() ([]byte, error) { +func (s ActivityProvider) MarshalJSON() ([]byte, error) { type NoMethod ActivityProvider - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ActivityFeed struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID of this collection of activities. Deprecated. Id string `json:"id,omitempty"` - // Items: The activities in this page of results. Items []*Activity `json:"items,omitempty"` - // Kind: Identifies this resource as a collection of activities. Value: // "plus#activityFeed". Kind string `json:"kind,omitempty"` - // NextLink: Link to the next page of activities. NextLink string `json:"nextLink,omitempty"` - - // NextPageToken: The continuation token, which is used to page through - // large result sets. Provide this value in a subsequent request to - // return the next page of results. + // NextPageToken: The continuation token, which is used to page through large + // result sets. Provide this value in a subsequent request to return the next + // page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: Link to this activity resource. SelfLink string `json:"selfLink,omitempty"` - - // Title: The title of this collection of activities, which is a - // truncated portion of the content. + // Title: The title of this collection of activities, which is a truncated + // portion of the content. Title string `json:"title,omitempty"` - - // Updated: The time at which this collection of activities was last - // updated. Formatted as an RFC 3339 timestamp. + // Updated: The time at which this collection of activities was last updated. + // Formatted as an RFC 3339 timestamp. Updated string `json:"updated,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityFeed) MarshalJSON() ([]byte, error) { +func (s ActivityFeed) MarshalJSON() ([]byte, error) { type NoMethod ActivityFeed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Comment struct { // Actor: The person who posted this comment. Actor *CommentActor `json:"actor,omitempty"` - // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID of this comment. Id string `json:"id,omitempty"` - // InReplyTo: The activity this comment replied to. InReplyTo []*CommentInReplyTo `json:"inReplyTo,omitempty"` - // Kind: Identifies this resource as a comment. Value: "plus#comment". Kind string `json:"kind,omitempty"` - // Object: The object of this comment. Object *CommentObject `json:"object,omitempty"` - // Plusoners: People who +1'd this comment. Plusoners *CommentPlusoners `json:"plusoners,omitempty"` - - // Published: The time at which this comment was initially published. - // Formatted as an RFC 3339 timestamp. + // Published: The time at which this comment was initially published. Formatted + // as an RFC 3339 timestamp. Published string `json:"published,omitempty"` - // SelfLink: Link to this comment resource. SelfLink string `json:"selfLink,omitempty"` - - // Updated: The time at which this comment was last updated. Formatted - // as an RFC 3339 timestamp. + // Updated: The time at which this comment was last updated. Formatted as an + // RFC 3339 timestamp. Updated string `json:"updated,omitempty"` - - // Verb: This comment's verb, indicating what action was performed. - // Possible values are: + // Verb: This comment's verb, indicating what action was performed. Possible + // values are: // - "post" - Publish content to the stream. Verb string `json:"verb,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Actor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actor") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Comment) MarshalJSON() ([]byte, error) { +func (s Comment) MarshalJSON() ([]byte, error) { type NoMethod Comment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommentActor: The person who posted this comment. type CommentActor struct { // ClientSpecificActorInfo: Actor info specific to particular clients. ClientSpecificActorInfo *CommentActorClientSpecificActorInfo `json:"clientSpecificActorInfo,omitempty"` - // DisplayName: The name of this actor, suitable for display. DisplayName string `json:"displayName,omitempty"` - // Id: The ID of the actor. Id string `json:"id,omitempty"` - // Image: The image representation of this actor. Image *CommentActorImage `json:"image,omitempty"` - // Url: A link to the Person resource for this actor. Url string `json:"url,omitempty"` - // Verification: Verification status of actor. Verification *CommentActorVerification `json:"verification,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClientSpecificActorInfo") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentActor) MarshalJSON() ([]byte, error) { +func (s CommentActor) MarshalJSON() ([]byte, error) { type NoMethod CommentActor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CommentActorClientSpecificActorInfo: Actor info specific to -// particular clients. +// CommentActorClientSpecificActorInfo: Actor info specific to particular +// clients. type CommentActorClientSpecificActorInfo struct { // YoutubeActorInfo: Actor info specific to YouTube clients. YoutubeActorInfo *CommentActorClientSpecificActorInfoYoutubeActorInfo `json:"youtubeActorInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "YoutubeActorInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "YoutubeActorInfo") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "YoutubeActorInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { +func (s CommentActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { type NoMethod CommentActorClientSpecificActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CommentActorClientSpecificActorInfoYoutubeActorInfo: Actor info -// specific to YouTube clients. +// CommentActorClientSpecificActorInfoYoutubeActorInfo: Actor info specific to +// YouTube clients. type CommentActorClientSpecificActorInfoYoutubeActorInfo struct { // ChannelId: ID of the YouTube channel owned by the Actor. ChannelId string `json:"channelId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { +func (s CommentActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { type NoMethod CommentActorClientSpecificActorInfoYoutubeActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommentActorImage: The image representation of this actor. type CommentActorImage struct { - // Url: The URL of the actor's profile photo. To resize the image and - // crop it to a square, append the query string ?sz=x, where x is the - // dimension in pixels of each side. + // Url: The URL of the actor's profile photo. To resize the image and crop it + // to a square, append the query string ?sz=x, where x is the dimension in + // pixels of each side. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentActorImage) MarshalJSON() ([]byte, error) { +func (s CommentActorImage) MarshalJSON() ([]byte, error) { type NoMethod CommentActorImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommentActorVerification: Verification status of actor. type CommentActorVerification struct { // AdHocVerified: Verification for one-time or manual processes. AdHocVerified string `json:"adHocVerified,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdHocVerified") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdHocVerified") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdHocVerified") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentActorVerification) MarshalJSON() ([]byte, error) { +func (s CommentActorVerification) MarshalJSON() ([]byte, error) { type NoMethod CommentActorVerification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CommentInReplyTo struct { // Id: The ID of the activity. Id string `json:"id,omitempty"` - // Url: The URL of the activity. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentInReplyTo) MarshalJSON() ([]byte, error) { +func (s CommentInReplyTo) MarshalJSON() ([]byte, error) { type NoMethod CommentInReplyTo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommentObject: The object of this comment. type CommentObject struct { // Content: The HTML-formatted content, suitable for display. Content string `json:"content,omitempty"` - // ObjectType: The object type of this comment. Possible values are: // - "comment" - A comment in reply to an activity. ObjectType string `json:"objectType,omitempty"` - // OriginalContent: The content (text) as provided by the author, stored - // without any HTML formatting. When creating or updating a comment, - // this value must be supplied as plain text in the request. + // without any HTML formatting. When creating or updating a comment, this value + // must be supplied as plain text in the request. OriginalContent string `json:"originalContent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentObject) MarshalJSON() ([]byte, error) { +func (s CommentObject) MarshalJSON() ([]byte, error) { type NoMethod CommentObject - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommentPlusoners: People who +1'd this comment. type CommentPlusoners struct { // TotalItems: Total number of people who +1'd this comment. TotalItems int64 `json:"totalItems,omitempty"` - // ForceSendFields is a list of field names (e.g. "TotalItems") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TotalItems") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "TotalItems") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentPlusoners) MarshalJSON() ([]byte, error) { +func (s CommentPlusoners) MarshalJSON() ([]byte, error) { type NoMethod CommentPlusoners - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CommentFeed struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID of this collection of comments. Id string `json:"id,omitempty"` - // Items: The comments in this page of results. Items []*Comment `json:"items,omitempty"` - // Kind: Identifies this resource as a collection of comments. Value: // "plus#commentFeed". Kind string `json:"kind,omitempty"` - // NextLink: Link to the next page of activities. NextLink string `json:"nextLink,omitempty"` - - // NextPageToken: The continuation token, which is used to page through - // large result sets. Provide this value in a subsequent request to - // return the next page of results. + // NextPageToken: The continuation token, which is used to page through large + // result sets. Provide this value in a subsequent request to return the next + // page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // Title: The title of this collection of comments. Title string `json:"title,omitempty"` - - // Updated: The time at which this collection of comments was last - // updated. Formatted as an RFC 3339 timestamp. + // Updated: The time at which this collection of comments was last updated. + // Formatted as an RFC 3339 timestamp. Updated string `json:"updated,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentFeed) MarshalJSON() ([]byte, error) { +func (s CommentFeed) MarshalJSON() ([]byte, error) { type NoMethod CommentFeed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PeopleFeed struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The people in this page of results. Each item includes the id, - // displayName, image, and url for the person. To retrieve additional - // profile data, see the people.get method. + // displayName, image, and url for the person. To retrieve additional profile + // data, see the people.get method. Items []*Person `json:"items,omitempty"` - // Kind: Identifies this resource as a collection of people. Value: // "plus#peopleFeed". Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, which is used to page through - // large result sets. Provide this value in a subsequent request to - // return the next page of results. + // NextPageToken: The continuation token, which is used to page through large + // result sets. Provide this value in a subsequent request to return the next + // page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: Link to this resource. SelfLink string `json:"selfLink,omitempty"` - // Title: The title of this collection of people. Title string `json:"title,omitempty"` - - // TotalItems: The total number of people available in this list. The - // number of people in a response might be smaller due to paging. This - // might not be set for all collections. + // TotalItems: The total number of people available in this list. The number of + // people in a response might be smaller due to paging. This might not be set + // for all collections. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PeopleFeed) MarshalJSON() ([]byte, error) { +func (s PeopleFeed) MarshalJSON() ([]byte, error) { type NoMethod PeopleFeed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Person struct { // AboutMe: A short biography for this person. AboutMe string `json:"aboutMe,omitempty"` - - // AgeRange: The age range of the person. Valid ranges are 17 or - // younger, 18 to 20, and 21 or older. Age is determined from the user's - // birthday using Western age reckoning. + // AgeRange: The age range of the person. Valid ranges are 17 or younger, 18 to + // 20, and 21 or older. Age is determined from the user's birthday using + // Western age reckoning. AgeRange *PersonAgeRange `json:"ageRange,omitempty"` - // Birthday: The person's date of birth, represented as YYYY-MM-DD. Birthday string `json:"birthday,omitempty"` - // BraggingRights: The "bragging rights" line of this person. BraggingRights string `json:"braggingRights,omitempty"` - - // CircledByCount: For followers who are visible, the number of people - // who have added this person or page to a circle. + // CircledByCount: For followers who are visible, the number of people who have + // added this person or page to a circle. CircledByCount int64 `json:"circledByCount,omitempty"` - // Cover: The cover photo content. Cover *PersonCover `json:"cover,omitempty"` - // CurrentLocation: (this field is not currently used) CurrentLocation string `json:"currentLocation,omitempty"` - // DisplayName: The name of this person, which is suitable for display. DisplayName string `json:"displayName,omitempty"` - - // Domain: The hosted domain name for the user's Google Apps account. - // For instance, example.com. The plus.profile.emails.read or email - // scope is needed to get this domain name. + // Domain: The hosted domain name for the user's Google Apps account. For + // instance, example.com. The plus.profile.emails.read or email scope is needed + // to get this domain name. Domain string `json:"domain,omitempty"` - - // Emails: A list of email addresses that this person has, including - // their Google account email address, and the public verified email - // addresses on their Google+ profile. The plus.profile.emails.read - // scope is needed to retrieve these email addresses, or the email scope - // can be used to retrieve just the Google account email address. + // Emails: A list of email addresses that this person has, including their + // Google account email address, and the public verified email addresses on + // their Google+ profile. The plus.profile.emails.read scope is needed to + // retrieve these email addresses, or the email scope can be used to retrieve + // just the Google account email address. Emails []*PersonEmails `json:"emails,omitempty"` - // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // Gender: The person's gender. Possible values include, but are not - // limited to, the following values: + // Gender: The person's gender. Possible values include, but are not limited + // to, the following values: // - "male" - Male gender. // - "female" - Female gender. // - "other" - Other. Gender string `json:"gender,omitempty"` - // Id: The ID of this person. Id string `json:"id,omitempty"` - // Image: The representation of the person's profile photo. Image *PersonImage `json:"image,omitempty"` - // IsPlusUser: Whether this user has signed up for Google+. IsPlusUser bool `json:"isPlusUser,omitempty"` - // Kind: Identifies this resource as a person. Value: "plus#person". Kind string `json:"kind,omitempty"` - // Language: The user's preferred language for rendering. Language string `json:"language,omitempty"` - - // Name: An object representation of the individual components of a - // person's name. + // Name: An object representation of the individual components of a person's + // name. Name *PersonName `json:"name,omitempty"` - // Nickname: The nickname of this person. Nickname string `json:"nickname,omitempty"` - - // ObjectType: Type of person within Google+. Possible values include, - // but are not limited to, the following values: + // ObjectType: Type of person within Google+. Possible values include, but are + // not limited to, the following values: // - "person" - represents an actual person. // - "page" - represents a page. ObjectType string `json:"objectType,omitempty"` - // Occupation: The occupation of this person. Occupation string `json:"occupation,omitempty"` - - // Organizations: A list of current or past organizations with which - // this person is associated. + // Organizations: A list of current or past organizations with which this + // person is associated. Organizations []*PersonOrganizations `json:"organizations,omitempty"` - // PlacesLived: A list of places where this person has lived. PlacesLived []*PersonPlacesLived `json:"placesLived,omitempty"` - - // PlusOneCount: If a Google+ Page, the number of people who have +1'd - // this page. + // PlusOneCount: If a Google+ Page, the number of people who have +1'd this + // page. PlusOneCount int64 `json:"plusOneCount,omitempty"` - // RelationshipStatus: The person's relationship status. Possible values // include, but are not limited to, the following values: // - "single" - Person is single. @@ -1702,532 +1353,408 @@ type Person struct { // - "in_domestic_partnership" - Person is in a domestic partnership. // - "in_civil_union" - Person is in a civil union. RelationshipStatus string `json:"relationshipStatus,omitempty"` - // Skills: The person's skills. Skills string `json:"skills,omitempty"` - // Tagline: The brief description (tagline) of this person. Tagline string `json:"tagline,omitempty"` - // Url: The URL of this person's profile. Url string `json:"url,omitempty"` - // Urls: A list of URLs for this person. Urls []*PersonUrls `json:"urls,omitempty"` - // Verified: Whether the person or Google+ Page has been verified. Verified bool `json:"verified,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AboutMe") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AboutMe") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AboutMe") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AboutMe") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Person) MarshalJSON() ([]byte, error) { +func (s Person) MarshalJSON() ([]byte, error) { type NoMethod Person - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PersonAgeRange: The age range of the person. Valid ranges are 17 or -// younger, 18 to 20, and 21 or older. Age is determined from the user's -// birthday using Western age reckoning. +// PersonAgeRange: The age range of the person. Valid ranges are 17 or younger, +// 18 to 20, and 21 or older. Age is determined from the user's birthday using +// Western age reckoning. type PersonAgeRange struct { - // Max: The age range's upper bound, if any. Possible values include, - // but are not limited to, the following: + // Max: The age range's upper bound, if any. Possible values include, but are + // not limited to, the following: // - "17" - for age 17 // - "20" - for age 20 Max int64 `json:"max,omitempty"` - - // Min: The age range's lower bound, if any. Possible values include, - // but are not limited to, the following: + // Min: The age range's lower bound, if any. Possible values include, but are + // not limited to, the following: // - "21" - for age 21 // - "18" - for age 18 Min int64 `json:"min,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Max") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Max") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Max") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Max") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonAgeRange) MarshalJSON() ([]byte, error) { +func (s PersonAgeRange) MarshalJSON() ([]byte, error) { type NoMethod PersonAgeRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PersonCover: The cover photo content. type PersonCover struct { // CoverInfo: Extra information about the cover photo. CoverInfo *PersonCoverCoverInfo `json:"coverInfo,omitempty"` - // CoverPhoto: The person's primary cover image. CoverPhoto *PersonCoverCoverPhoto `json:"coverPhoto,omitempty"` - - // Layout: The layout of the cover art. Possible values include, but are - // not limited to, the following values: + // Layout: The layout of the cover art. Possible values include, but are not + // limited to, the following values: // - "banner" - One large image banner. Layout string `json:"layout,omitempty"` - // ForceSendFields is a list of field names (e.g. "CoverInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CoverInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CoverInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonCover) MarshalJSON() ([]byte, error) { +func (s PersonCover) MarshalJSON() ([]byte, error) { type NoMethod PersonCover - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PersonCoverCoverInfo: Extra information about the cover photo. type PersonCoverCoverInfo struct { - // LeftImageOffset: The difference between the left position of the - // cover image and the actual displayed cover image. Only valid for - // banner layout. + // LeftImageOffset: The difference between the left position of the cover image + // and the actual displayed cover image. Only valid for banner layout. LeftImageOffset int64 `json:"leftImageOffset,omitempty"` - - // TopImageOffset: The difference between the top position of the cover - // image and the actual displayed cover image. Only valid for banner - // layout. + // TopImageOffset: The difference between the top position of the cover image + // and the actual displayed cover image. Only valid for banner layout. TopImageOffset int64 `json:"topImageOffset,omitempty"` - // ForceSendFields is a list of field names (e.g. "LeftImageOffset") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LeftImageOffset") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LeftImageOffset") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonCoverCoverInfo) MarshalJSON() ([]byte, error) { +func (s PersonCoverCoverInfo) MarshalJSON() ([]byte, error) { type NoMethod PersonCoverCoverInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PersonCoverCoverPhoto: The person's primary cover image. type PersonCoverCoverPhoto struct { // Height: The height of the image. Height int64 `json:"height,omitempty"` - // Url: The URL of the image. Url string `json:"url,omitempty"` - // Width: The width of the image. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonCoverCoverPhoto) MarshalJSON() ([]byte, error) { +func (s PersonCoverCoverPhoto) MarshalJSON() ([]byte, error) { type NoMethod PersonCoverCoverPhoto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PersonEmails struct { - // Type: The type of address. Possible values include, but are not - // limited to, the following values: + // Type: The type of address. Possible values include, but are not limited to, + // the following values: // - "account" - Google account email address. // - "home" - Home email address. // - "work" - Work email address. // - "other" - Other. Type string `json:"type,omitempty"` - // Value: The email address. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonEmails) MarshalJSON() ([]byte, error) { +func (s PersonEmails) MarshalJSON() ([]byte, error) { type NoMethod PersonEmails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PersonImage: The representation of the person's profile photo. type PersonImage struct { // IsDefault: Whether the person's profile photo is the default one IsDefault bool `json:"isDefault,omitempty"` - - // Url: The URL of the person's profile photo. To resize the image and - // crop it to a square, append the query string ?sz=x, where x is the - // dimension in pixels of each side. + // Url: The URL of the person's profile photo. To resize the image and crop it + // to a square, append the query string ?sz=x, where x is the dimension in + // pixels of each side. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "IsDefault") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IsDefault") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IsDefault") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonImage) MarshalJSON() ([]byte, error) { +func (s PersonImage) MarshalJSON() ([]byte, error) { type NoMethod PersonImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PersonName: An object representation of the individual components of -// a person's name. +// PersonName: An object representation of the individual components of a +// person's name. type PersonName struct { // FamilyName: The family name (last name) of this person. FamilyName string `json:"familyName,omitempty"` - - // Formatted: The full name of this person, including middle names, - // suffixes, etc. + // Formatted: The full name of this person, including middle names, suffixes, + // etc. Formatted string `json:"formatted,omitempty"` - // GivenName: The given name (first name) of this person. GivenName string `json:"givenName,omitempty"` - - // HonorificPrefix: The honorific prefixes (such as "Dr." or "Mrs.") for - // this person. - HonorificPrefix string `json:"honorificPrefix,omitempty"` - - // HonorificSuffix: The honorific suffixes (such as "Jr.") for this + // HonorificPrefix: The honorific prefixes (such as "Dr." or "Mrs.") for this // person. + HonorificPrefix string `json:"honorificPrefix,omitempty"` + // HonorificSuffix: The honorific suffixes (such as "Jr.") for this person. HonorificSuffix string `json:"honorificSuffix,omitempty"` - // MiddleName: The middle name of this person. MiddleName string `json:"middleName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FamilyName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FamilyName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FamilyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonName) MarshalJSON() ([]byte, error) { +func (s PersonName) MarshalJSON() ([]byte, error) { type NoMethod PersonName - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PersonOrganizations struct { // Department: The department within the organization. Deprecated. Department string `json:"department,omitempty"` - - // Description: A short description of the person's role in this - // organization. Deprecated. + // Description: A short description of the person's role in this organization. + // Deprecated. Description string `json:"description,omitempty"` - // EndDate: The date that the person left this organization. EndDate string `json:"endDate,omitempty"` - // Location: The location of this organization. Deprecated. Location string `json:"location,omitempty"` - // Name: The name of the organization. Name string `json:"name,omitempty"` - - // Primary: If "true", indicates this organization is the person's - // primary one, which is typically interpreted as the current one. + // Primary: If "true", indicates this organization is the person's primary one, + // which is typically interpreted as the current one. Primary bool `json:"primary,omitempty"` - // StartDate: The date that the person joined this organization. StartDate string `json:"startDate,omitempty"` - // Title: The person's job title or role within the organization. Title string `json:"title,omitempty"` - - // Type: The type of organization. Possible values include, but are not - // limited to, the following values: + // Type: The type of organization. Possible values include, but are not limited + // to, the following values: // - "work" - Work. // - "school" - School. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Department") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Department") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Department") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonOrganizations) MarshalJSON() ([]byte, error) { +func (s PersonOrganizations) MarshalJSON() ([]byte, error) { type NoMethod PersonOrganizations - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PersonPlacesLived struct { // Primary: If "true", this place of residence is this person's primary // residence. Primary bool `json:"primary,omitempty"` - - // Value: A place where this person has lived. For example: "Seattle, - // WA", "Near Toronto". + // Value: A place where this person has lived. For example: "Seattle, WA", + // "Near Toronto". Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Primary") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Primary") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Primary") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Primary") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonPlacesLived) MarshalJSON() ([]byte, error) { +func (s PersonPlacesLived) MarshalJSON() ([]byte, error) { type NoMethod PersonPlacesLived - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PersonUrls struct { // Label: The label of the URL. Label string `json:"label,omitempty"` - - // Type: The type of URL. Possible values include, but are not limited - // to, the following values: + // Type: The type of URL. Possible values include, but are not limited to, the + // following values: // - "otherProfile" - URL for another profile. - // - "contributor" - URL to a site for which this person is a - // contributor. + // - "contributor" - URL to a site for which this person is a contributor. // - "website" - URL for this Google+ Page's primary website. // - "other" - Other URL. Type string `json:"type,omitempty"` - // Value: The URL value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Label") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Label") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Label") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonUrls) MarshalJSON() ([]byte, error) { +func (s PersonUrls) MarshalJSON() ([]byte, error) { type NoMethod PersonUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Place struct { // Address: The physical address of the place. Address *PlaceAddress `json:"address,omitempty"` - // DisplayName: The display name of the place. DisplayName string `json:"displayName,omitempty"` - // Id: The id of the place. Id string `json:"id,omitempty"` - // Kind: Identifies this resource as a place. Value: "plus#place". Kind string `json:"kind,omitempty"` - // Position: The position of the place. Position *PlacePosition `json:"position,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Place) MarshalJSON() ([]byte, error) { +func (s Place) MarshalJSON() ([]byte, error) { type NoMethod Place - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlaceAddress: The physical address of the place. type PlaceAddress struct { // Formatted: The formatted address for display. Formatted string `json:"formatted,omitempty"` - // ForceSendFields is a list of field names (e.g. "Formatted") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Formatted") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Formatted") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlaceAddress) MarshalJSON() ([]byte, error) { +func (s PlaceAddress) MarshalJSON() ([]byte, error) { type NoMethod PlaceAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacePosition: The position of the place. type PlacePosition struct { // Latitude: The latitude of this position. Latitude float64 `json:"latitude,omitempty"` - // Longitude: The longitude of this position. Longitude float64 `json:"longitude,omitempty"` - // ForceSendFields is a list of field names (e.g. "Latitude") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Latitude") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Latitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacePosition) MarshalJSON() ([]byte, error) { +func (s PlacePosition) MarshalJSON() ([]byte, error) { type NoMethod PlacePosition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PlacePosition) UnmarshalJSON(data []byte) error { @@ -2249,48 +1776,37 @@ func (s *PlacePosition) UnmarshalJSON(data []byte) error { type PlusAclentryResource struct { // DisplayName: A descriptive name for this entry. Suitable for display. DisplayName string `json:"displayName,omitempty"` - - // Id: The ID of the entry. For entries of type "person" or "circle", - // this is the ID of the resource. For other types, this property is not - // set. + // Id: The ID of the entry. For entries of type "person" or "circle", this is + // the ID of the resource. For other types, this property is not set. Id string `json:"id,omitempty"` - - // Type: The type of entry describing to whom access is granted. - // Possible values are: + // Type: The type of entry describing to whom access is granted. Possible + // values are: // - "person" - Access to an individual. // - "circle" - Access to members of a circle. // - "myCircles" - Access to members of all the person's circles. - // - "extendedCircles" - Access to members of all the person's circles, - // plus all of the people in their circles. + // - "extendedCircles" - Access to members of all the person's circles, plus + // all of the people in their circles. // - "domain" - Access to members of the person's Google Apps domain. // - "public" - Access to anyone on the web. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlusAclentryResource) MarshalJSON() ([]byte, error) { +func (s PlusAclentryResource) MarshalJSON() ([]byte, error) { type NoMethod PlusAclentryResource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "plus.activities.get": - type ActivitiesGetCall struct { s *Service activityId string @@ -2300,8 +1816,10 @@ type ActivitiesGetCall struct { header_ http.Header } -// Get: Shut down. See https://developers.google.com/+/api-shutdown for -// more details. +// Get: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - activityId: The ID of the activity to get. func (r *ActivitiesService) Get(activityId string) *ActivitiesGetCall { c := &ActivitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.activityId = activityId @@ -2309,33 +1827,29 @@ func (r *ActivitiesService) Get(activityId string) *ActivitiesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ActivitiesGetCall) Fields(s ...googleapi.Field) *ActivitiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ActivitiesGetCall) IfNoneMatch(entityTag string) *ActivitiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ActivitiesGetCall) Context(ctx context.Context) *ActivitiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ActivitiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2344,12 +1858,7 @@ func (c *ActivitiesGetCall) Header() http.Header { } func (c *ActivitiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200916") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2366,16 +1875,14 @@ func (c *ActivitiesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "activityId": c.activityId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plus.activities.get" call. -// Exactly one of *Activity or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Activity.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Activity.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Activity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2383,17 +1890,17 @@ func (c *ActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Activity, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Activity{ ServerResponse: googleapi.ServerResponse{ @@ -2406,34 +1913,7 @@ func (c *ActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Activity, error) return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plus.activities.get", - // "parameterOrder": [ - // "activityId" - // ], - // "parameters": { - // "activityId": { - // "description": "The ID of the activity to get.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "activities/{activityId}", - // "response": { - // "$ref": "Activity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - -} - -// method id "plus.activities.list": +} type ActivitiesListCall struct { s *Service @@ -2445,8 +1925,12 @@ type ActivitiesListCall struct { header_ http.Header } -// List: Shut down. See https://developers.google.com/+/api-shutdown for -// more details. +// List: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - collection: The collection of activities to list. +// - userId: The ID of the user to get activities for. The special value "me" +// can be used to indicate the authenticated user. func (r *ActivitiesService) List(userId string, collection string) *ActivitiesListCall { c := &ActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -2454,52 +1938,48 @@ func (r *ActivitiesService) List(userId string, collection string) *ActivitiesLi return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of activities to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// activities to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *ActivitiesListCall) MaxResults(maxResults int64) *ActivitiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. func (c *ActivitiesListCall) PageToken(pageToken string) *ActivitiesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ActivitiesListCall) Fields(s ...googleapi.Field) *ActivitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ActivitiesListCall) IfNoneMatch(entityTag string) *ActivitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ActivitiesListCall) Context(ctx context.Context) *ActivitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ActivitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2508,12 +1988,7 @@ func (c *ActivitiesListCall) Header() http.Header { } func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200916") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2531,16 +2006,14 @@ func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plus.activities.list" call. -// Exactly one of *ActivityFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ActivityFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ActivityFeed.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2548,17 +2021,17 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ActivityFeed{ ServerResponse: googleapi.ServerResponse{ @@ -2571,58 +2044,6 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, er return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plus.activities.list", - // "parameterOrder": [ - // "userId", - // "collection" - // ], - // "parameters": { - // "collection": { - // "description": "The collection of activities to list.", - // "enum": [ - // "public" - // ], - // "enumDescriptions": [ - // "All public activities created by the specified user." - // ], - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "20", - // "description": "The maximum number of activities to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "100", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "description": "The ID of the user to get activities for. The special value \"me\" can be used to indicate the authenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "people/{userId}/activities/{collection}", - // "response": { - // "$ref": "ActivityFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - } // Pages invokes f for each page of results. @@ -2630,7 +2051,7 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, er // The provided context supersedes any context provided to the Context method. func (c *ActivitiesListCall) Pages(ctx context.Context, f func(*ActivityFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2646,8 +2067,6 @@ func (c *ActivitiesListCall) Pages(ctx context.Context, f func(*ActivityFeed) er } } -// method id "plus.activities.search": - type ActivitiesSearchCall struct { s *Service urlParams_ gensupport.URLParams @@ -2656,86 +2075,77 @@ type ActivitiesSearchCall struct { header_ http.Header } -// Search: Shut down. See https://developers.google.com/+/api-shutdown -// for more details. +// Search: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - query: Full-text search query string. func (r *ActivitiesService) Search(query string) *ActivitiesSearchCall { c := &ActivitiesSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("query", query) return c } -// Language sets the optional parameter "language": Specify the -// preferred language to search with. See search language codes for -// available values. +// Language sets the optional parameter "language": Specify the preferred +// language to search with. See search language codes for available values. func (c *ActivitiesSearchCall) Language(language string) *ActivitiesSearchCall { c.urlParams_.Set("language", language) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of activities to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// activities to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *ActivitiesSearchCall) MaxResults(maxResults int64) *ActivitiesSearchCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderBy sets the optional parameter "orderBy": Specifies how to order -// search results. +// OrderBy sets the optional parameter "orderBy": Specifies how to order search +// results. // // Possible values: // -// "best" - Sort activities by relevance to the user, most relevant -// -// first. -// -// "recent" (default) - Sort activities by published date, most recent -// -// first. +// "best" - Sort activities by relevance to the user, most relevant first. +// "recent" (default) - Sort activities by published date, most recent first. func (c *ActivitiesSearchCall) OrderBy(orderBy string) *ActivitiesSearchCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. This token can be of any -// length. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. This token can be of any length. func (c *ActivitiesSearchCall) PageToken(pageToken string) *ActivitiesSearchCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ActivitiesSearchCall) Fields(s ...googleapi.Field) *ActivitiesSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ActivitiesSearchCall) IfNoneMatch(entityTag string) *ActivitiesSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ActivitiesSearchCall) Context(ctx context.Context) *ActivitiesSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ActivitiesSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2744,12 +2154,7 @@ func (c *ActivitiesSearchCall) Header() http.Header { } func (c *ActivitiesSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200916") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2763,16 +2168,14 @@ func (c *ActivitiesSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plus.activities.search" call. -// Exactly one of *ActivityFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ActivityFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ActivityFeed.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ActivitiesSearchCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2780,17 +2183,17 @@ func (c *ActivitiesSearchCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ActivityFeed{ ServerResponse: googleapi.ServerResponse{ @@ -2803,65 +2206,6 @@ func (c *ActivitiesSearchCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plus.activities.search", - // "parameterOrder": [ - // "query" - // ], - // "parameters": { - // "language": { - // "default": "en-US", - // "description": "Specify the preferred language to search with. See search language codes for available values.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "10", - // "description": "The maximum number of activities to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "20", - // "minimum": "1", - // "type": "integer" - // }, - // "orderBy": { - // "default": "recent", - // "description": "Specifies how to order search results.", - // "enum": [ - // "best", - // "recent" - // ], - // "enumDescriptions": [ - // "Sort activities by relevance to the user, most relevant first.", - // "Sort activities by published date, most recent first." - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response. This token can be of any length.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "Full-text search query string.", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "activities", - // "response": { - // "$ref": "ActivityFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - } // Pages invokes f for each page of results. @@ -2869,7 +2213,7 @@ func (c *ActivitiesSearchCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, // The provided context supersedes any context provided to the Context method. func (c *ActivitiesSearchCall) Pages(ctx context.Context, f func(*ActivityFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2885,8 +2229,6 @@ func (c *ActivitiesSearchCall) Pages(ctx context.Context, f func(*ActivityFeed) } } -// method id "plus.comments.get": - type CommentsGetCall struct { s *Service commentId string @@ -2896,8 +2238,10 @@ type CommentsGetCall struct { header_ http.Header } -// Get: Shut down. See https://developers.google.com/+/api-shutdown for -// more details. +// Get: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - commentId: The ID of the comment to get. func (r *CommentsService) Get(commentId string) *CommentsGetCall { c := &CommentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.commentId = commentId @@ -2905,33 +2249,29 @@ func (r *CommentsService) Get(commentId string) *CommentsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CommentsGetCall) Fields(s ...googleapi.Field) *CommentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CommentsGetCall) IfNoneMatch(entityTag string) *CommentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CommentsGetCall) Context(ctx context.Context) *CommentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CommentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2940,12 +2280,7 @@ func (c *CommentsGetCall) Header() http.Header { } func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200916") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2962,16 +2297,14 @@ func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plus.comments.get" call. -// Exactly one of *Comment or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Comment.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Comment.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2979,17 +2312,17 @@ func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Comment{ ServerResponse: googleapi.ServerResponse{ @@ -3002,34 +2335,7 @@ func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error) { return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plus.comments.get", - // "parameterOrder": [ - // "commentId" - // ], - // "parameters": { - // "commentId": { - // "description": "The ID of the comment to get.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "comments/{commentId}", - // "response": { - // "$ref": "Comment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - -} - -// method id "plus.comments.list": +} type CommentsListCall struct { s *Service @@ -3040,34 +2346,36 @@ type CommentsListCall struct { header_ http.Header } -// List: Shut down. See https://developers.google.com/+/api-shutdown for -// more details. +// List: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - activityId: The ID of the activity to get comments for. func (r *CommentsService) List(activityId string) *CommentsListCall { c := &CommentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.activityId = activityId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of comments to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// comments to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *CommentsListCall) MaxResults(maxResults int64) *CommentsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. func (c *CommentsListCall) PageToken(pageToken string) *CommentsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// SortOrder sets the optional parameter "sortOrder": The order in which -// to sort the list of comments. +// SortOrder sets the optional parameter "sortOrder": The order in which to +// sort the list of comments. // // Possible values: // @@ -3079,33 +2387,29 @@ func (c *CommentsListCall) SortOrder(sortOrder string) *CommentsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CommentsListCall) Fields(s ...googleapi.Field) *CommentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CommentsListCall) IfNoneMatch(entityTag string) *CommentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CommentsListCall) Context(ctx context.Context) *CommentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CommentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3114,12 +2418,7 @@ func (c *CommentsListCall) Header() http.Header { } func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200916") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3136,16 +2435,14 @@ func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "activityId": c.activityId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plus.comments.list" call. -// Exactly one of *CommentFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CommentFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CommentFeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3153,17 +2450,17 @@ func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentFeed, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CommentFeed{ ServerResponse: googleapi.ServerResponse{ @@ -3176,59 +2473,6 @@ func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentFeed, error return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plus.comments.list", - // "parameterOrder": [ - // "activityId" - // ], - // "parameters": { - // "activityId": { - // "description": "The ID of the activity to get comments for.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "20", - // "description": "The maximum number of comments to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ascending", - // "description": "The order in which to sort the list of comments.", - // "enum": [ - // "ascending", - // "descending" - // ], - // "enumDescriptions": [ - // "Sort oldest comments first.", - // "Sort newest comments first." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "activities/{activityId}/comments", - // "response": { - // "$ref": "CommentFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - } // Pages invokes f for each page of results. @@ -3236,7 +2480,7 @@ func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentFeed, error // The provided context supersedes any context provided to the Context method. func (c *CommentsListCall) Pages(ctx context.Context, f func(*CommentFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3252,8 +2496,6 @@ func (c *CommentsListCall) Pages(ctx context.Context, f func(*CommentFeed) error } } -// method id "plus.people.get": - type PeopleGetCall struct { s *Service userId string @@ -3264,8 +2506,11 @@ type PeopleGetCall struct { } // Get: Get a person's profile. If your app uses scope -// https://www.googleapis.com/auth/plus.login, this method is guaranteed -// to return ageRange and language. +// https://www.googleapis.com/auth/plus.login, this method is guaranteed to +// return ageRange and language. +// +// - userId: The ID of the person to get the profile for. The special value +// "me" can be used to indicate the authenticated user. func (r *PeopleService) Get(userId string) *PeopleGetCall { c := &PeopleGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -3273,33 +2518,29 @@ func (r *PeopleService) Get(userId string) *PeopleGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PeopleGetCall) Fields(s ...googleapi.Field) *PeopleGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PeopleGetCall) IfNoneMatch(entityTag string) *PeopleGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PeopleGetCall) Context(ctx context.Context) *PeopleGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PeopleGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3308,12 +2549,7 @@ func (c *PeopleGetCall) Header() http.Header { } func (c *PeopleGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200916") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3330,16 +2566,14 @@ func (c *PeopleGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plus.people.get" call. -// Exactly one of *Person or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Person.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Person.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PeopleGetCall) Do(opts ...googleapi.CallOption) (*Person, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3347,17 +2581,17 @@ func (c *PeopleGetCall) Do(opts ...googleapi.CallOption) (*Person, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Person{ ServerResponse: googleapi.ServerResponse{ @@ -3370,36 +2604,7 @@ func (c *PeopleGetCall) Do(opts ...googleapi.CallOption) (*Person, error) { return nil, err } return ret, nil - // { - // "description": "Get a person's profile. If your app uses scope https://www.googleapis.com/auth/plus.login, this method is guaranteed to return ageRange and language.", - // "httpMethod": "GET", - // "id": "plus.people.get", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "userId": { - // "description": "The ID of the person to get the profile for. The special value \"me\" can be used to indicate the authenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "people/{userId}", - // "response": { - // "$ref": "Person" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me", - // "https://www.googleapis.com/auth/userinfo.email", - // "https://www.googleapis.com/auth/userinfo.profile" - // ] - // } - -} - -// method id "plus.people.list": +} type PeopleListCall struct { s *Service @@ -3412,6 +2617,10 @@ type PeopleListCall struct { } // List: List all of the people in the specified collection. +// +// - collection: The collection of people to list. +// - userId: Get the collection of people for the person identified. Use "me" +// to indicate the authenticated user. func (r *PeopleService) List(userId string, collection string) *PeopleListCall { c := &PeopleListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -3419,17 +2628,17 @@ func (r *PeopleService) List(userId string, collection string) *PeopleListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of people to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// people to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *PeopleListCall) MaxResults(maxResults int64) *PeopleListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderBy sets the optional parameter "orderBy": The order to return -// people in. +// OrderBy sets the optional parameter "orderBy": The order to return people +// in. // // Possible values: // @@ -3440,43 +2649,39 @@ func (c *PeopleListCall) OrderBy(orderBy string) *PeopleListCall { return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. func (c *PeopleListCall) PageToken(pageToken string) *PeopleListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PeopleListCall) Fields(s ...googleapi.Field) *PeopleListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PeopleListCall) IfNoneMatch(entityTag string) *PeopleListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PeopleListCall) Context(ctx context.Context) *PeopleListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PeopleListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3485,12 +2690,7 @@ func (c *PeopleListCall) Header() http.Header { } func (c *PeopleListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200916") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3508,16 +2708,14 @@ func (c *PeopleListCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plus.people.list" call. -// Exactly one of *PeopleFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PeopleFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PeopleFeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PeopleListCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3525,17 +2723,17 @@ func (c *PeopleListCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PeopleFeed{ ServerResponse: googleapi.ServerResponse{ @@ -3548,73 +2746,6 @@ func (c *PeopleListCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { return nil, err } return ret, nil - // { - // "description": "List all of the people in the specified collection.", - // "httpMethod": "GET", - // "id": "plus.people.list", - // "parameterOrder": [ - // "userId", - // "collection" - // ], - // "parameters": { - // "collection": { - // "description": "The collection of people to list.", - // "enum": [ - // "connected", - // "visible" - // ], - // "enumDescriptions": [ - // "The list of visible people in the authenticated user's circles who also use the requesting app. This list is limited to users who made their app activities visible to the authenticated user.", - // "The list of people who this user has added to one or more circles, limited to the circles visible to the requesting application." - // ], - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "100", - // "description": "The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "100", - // "minimum": "1", - // "type": "integer" - // }, - // "orderBy": { - // "description": "The order to return people in.", - // "enum": [ - // "alphabetical", - // "best" - // ], - // "enumDescriptions": [ - // "Order the people by their display name.", - // "Order people based on the relevence to the viewer." - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "description": "Get the collection of people for the person identified. Use \"me\" to indicate the authenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "people/{userId}/people/{collection}", - // "response": { - // "$ref": "PeopleFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - } // Pages invokes f for each page of results. @@ -3622,7 +2753,7 @@ func (c *PeopleListCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { // The provided context supersedes any context provided to the Context method. func (c *PeopleListCall) Pages(ctx context.Context, f func(*PeopleFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3638,8 +2769,6 @@ func (c *PeopleListCall) Pages(ctx context.Context, f func(*PeopleFeed) error) e } } -// method id "plus.people.listByActivity": - type PeopleListByActivityCall struct { s *Service activityId string @@ -3650,8 +2779,11 @@ type PeopleListByActivityCall struct { header_ http.Header } -// ListByActivity: Shut down. See -// https://developers.google.com/+/api-shutdown for more details. +// ListByActivity: Shut down. See https://developers.google.com/+/api-shutdown +// for more details. +// +// - activityId: The ID of the activity to get the list of people for. +// - collection: The collection of people to list. func (r *PeopleService) ListByActivity(activityId string, collection string) *PeopleListByActivityCall { c := &PeopleListByActivityCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.activityId = activityId @@ -3659,52 +2791,48 @@ func (r *PeopleService) ListByActivity(activityId string, collection string) *Pe return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of people to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// people to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *PeopleListByActivityCall) MaxResults(maxResults int64) *PeopleListByActivityCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. func (c *PeopleListByActivityCall) PageToken(pageToken string) *PeopleListByActivityCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PeopleListByActivityCall) Fields(s ...googleapi.Field) *PeopleListByActivityCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PeopleListByActivityCall) IfNoneMatch(entityTag string) *PeopleListByActivityCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PeopleListByActivityCall) Context(ctx context.Context) *PeopleListByActivityCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PeopleListByActivityCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3713,12 +2841,7 @@ func (c *PeopleListByActivityCall) Header() http.Header { } func (c *PeopleListByActivityCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200916") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3736,16 +2859,14 @@ func (c *PeopleListByActivityCall) doRequest(alt string) (*http.Response, error) "activityId": c.activityId, "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plus.people.listByActivity" call. -// Exactly one of *PeopleFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PeopleFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PeopleFeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PeopleListByActivityCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3753,17 +2874,17 @@ func (c *PeopleListByActivityCall) Do(opts ...googleapi.CallOption) (*PeopleFeed if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PeopleFeed{ ServerResponse: googleapi.ServerResponse{ @@ -3776,60 +2897,6 @@ func (c *PeopleListByActivityCall) Do(opts ...googleapi.CallOption) (*PeopleFeed return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plus.people.listByActivity", - // "parameterOrder": [ - // "activityId", - // "collection" - // ], - // "parameters": { - // "activityId": { - // "description": "The ID of the activity to get the list of people for.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "collection": { - // "description": "The collection of people to list.", - // "enum": [ - // "plusoners", - // "resharers" - // ], - // "enumDescriptions": [ - // "List all people who have +1'd this activity.", - // "List all people who have reshared this activity." - // ], - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "20", - // "description": "The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "100", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "activities/{activityId}/people/{collection}", - // "response": { - // "$ref": "PeopleFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - } // Pages invokes f for each page of results. @@ -3837,7 +2904,7 @@ func (c *PeopleListByActivityCall) Do(opts ...googleapi.CallOption) (*PeopleFeed // The provided context supersedes any context provided to the Context method. func (c *PeopleListByActivityCall) Pages(ctx context.Context, f func(*PeopleFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3853,8 +2920,6 @@ func (c *PeopleListByActivityCall) Pages(ctx context.Context, f func(*PeopleFeed } } -// method id "plus.people.search": - type PeopleSearchCall struct { s *Service urlParams_ gensupport.URLParams @@ -3863,69 +2928,66 @@ type PeopleSearchCall struct { header_ http.Header } -// Search: Shut down. See https://developers.google.com/+/api-shutdown -// for more details. +// Search: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - query: Specify a query string for full text search of public text in all +// profiles. func (r *PeopleService) Search(query string) *PeopleSearchCall { c := &PeopleSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("query", query) return c } -// Language sets the optional parameter "language": Specify the -// preferred language to search with. See search language codes for -// available values. +// Language sets the optional parameter "language": Specify the preferred +// language to search with. See search language codes for available values. func (c *PeopleSearchCall) Language(language string) *PeopleSearchCall { c.urlParams_.Set("language", language) return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of people to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// people to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *PeopleSearchCall) MaxResults(maxResults int64) *PeopleSearchCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. This token can be of any -// length. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. This token can be of any length. func (c *PeopleSearchCall) PageToken(pageToken string) *PeopleSearchCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PeopleSearchCall) Fields(s ...googleapi.Field) *PeopleSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PeopleSearchCall) IfNoneMatch(entityTag string) *PeopleSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PeopleSearchCall) Context(ctx context.Context) *PeopleSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PeopleSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3934,12 +2996,7 @@ func (c *PeopleSearchCall) Header() http.Header { } func (c *PeopleSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200916") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3953,16 +3010,14 @@ func (c *PeopleSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plus.people.search" call. -// Exactly one of *PeopleFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PeopleFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PeopleFeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PeopleSearchCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3970,17 +3025,17 @@ func (c *PeopleSearchCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PeopleFeed{ ServerResponse: googleapi.ServerResponse{ @@ -3993,51 +3048,6 @@ func (c *PeopleSearchCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plus.people.search", - // "parameterOrder": [ - // "query" - // ], - // "parameters": { - // "language": { - // "default": "en-US", - // "description": "Specify the preferred language to search with. See search language codes for available values.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "25", - // "description": "The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "50", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response. This token can be of any length.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "Specify a query string for full text search of public text in all profiles.", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "people", - // "response": { - // "$ref": "PeopleFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - } // Pages invokes f for each page of results. @@ -4045,7 +3055,7 @@ func (c *PeopleSearchCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) // The provided context supersedes any context provided to the Context method. func (c *PeopleSearchCall) Pages(ctx context.Context, f func(*PeopleFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/plusdomains/v1/plusdomains-gen.go b/plusdomains/v1/plusdomains-gen.go index 541e1040a32..b64da5c5376 100644 --- a/plusdomains/v1/plusdomains-gen.go +++ b/plusdomains/v1/plusdomains-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/+/domains/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // plusdomainsService, err := plusdomains.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // plusdomainsService, err := plusdomains.NewService(ctx, option.WithScopes(plusdomains.UserinfoProfileScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // plusdomainsService, err := plusdomains.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // plusdomainsService, err := plusdomains.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package plusdomains // import "google.golang.org/api/plusdomains/v1" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "plusDomains:v1" const apiName = "plusDomains" const apiVersion = "v1" const basePath = "https://www.googleapis.com/plusDomains/v1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/plusDomains/v1/" // OAuth2 scopes used by this API. const ( @@ -101,14 +120,14 @@ const ( // View your email address UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email" - // See your personal info, including any personal info you've made - // publicly available + // See your personal info, including any personal info you've made publicly + // available UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.profile" ) // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/plus.circles.read", "https://www.googleapis.com/auth/plus.login", "https://www.googleapis.com/auth/plus.me", @@ -120,6 +139,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -235,450 +257,335 @@ type PeopleService struct { type Acl struct { // Description: Description of the access granted, suitable for display. Description string `json:"description,omitempty"` - // DomainRestricted: Whether access is restricted to the domain. DomainRestricted bool `json:"domainRestricted,omitempty"` - // Items: The list of access entries. Items []*PlusDomainsAclentryResource `json:"items,omitempty"` - - // Kind: Identifies this resource as a collection of access controls. - // Value: "plus#acl". + // Kind: Identifies this resource as a collection of access controls. Value: + // "plus#acl". Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Acl) MarshalJSON() ([]byte, error) { +func (s Acl) MarshalJSON() ([]byte, error) { type NoMethod Acl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Activity struct { // Access: Identifies who has access to see this activity. Access *Acl `json:"access,omitempty"` - // Actor: The person who performed this activity. Actor *ActivityActor `json:"actor,omitempty"` - // Address: Street address where this activity occurred. Address string `json:"address,omitempty"` - - // Annotation: Additional content added by the person who shared this - // activity, applicable only when resharing an activity. + // Annotation: Additional content added by the person who shared this activity, + // applicable only when resharing an activity. Annotation string `json:"annotation,omitempty"` - - // CrosspostSource: If this activity is a crosspost from another system, - // this property specifies the ID of the original activity. + // CrosspostSource: If this activity is a crosspost from another system, this + // property specifies the ID of the original activity. CrosspostSource string `json:"crosspostSource,omitempty"` - // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // Geocode: Latitude and longitude where this activity occurred. Format - // is latitude followed by longitude, space separated. + // Geocode: Latitude and longitude where this activity occurred. Format is + // latitude followed by longitude, space separated. Geocode string `json:"geocode,omitempty"` - // Id: The ID of this activity. Id string `json:"id,omitempty"` - - // Kind: Identifies this resource as an activity. Value: - // "plus#activity". + // Kind: Identifies this resource as an activity. Value: "plus#activity". Kind string `json:"kind,omitempty"` - // Location: The location where this activity occurred. Location *Place `json:"location,omitempty"` - // Object: The object of this activity. Object *ActivityObject `json:"object,omitempty"` - // PlaceId: ID of the place where this activity occurred. PlaceId string `json:"placeId,omitempty"` - // PlaceName: Name of the place where this activity occurred. PlaceName string `json:"placeName,omitempty"` - - // Provider: The service provider that initially published this - // activity. + // Provider: The service provider that initially published this activity. Provider *ActivityProvider `json:"provider,omitempty"` - // Published: The time at which this activity was initially published. // Formatted as an RFC 3339 timestamp. Published string `json:"published,omitempty"` - - // Radius: Radius, in meters, of the region where this activity - // occurred, centered at the latitude and longitude identified in - // geocode. + // Radius: Radius, in meters, of the region where this activity occurred, + // centered at the latitude and longitude identified in geocode. Radius string `json:"radius,omitempty"` - // Title: Title of this activity. Title string `json:"title,omitempty"` - - // Updated: The time at which this activity was last updated. Formatted - // as an RFC 3339 timestamp. + // Updated: The time at which this activity was last updated. Formatted as an + // RFC 3339 timestamp. Updated string `json:"updated,omitempty"` - // Url: The link to this activity. Url string `json:"url,omitempty"` - - // Verb: This activity's verb, which indicates the action that was - // performed. Possible values include, but are not limited to, the - // following values: + // Verb: This activity's verb, which indicates the action that was performed. + // Possible values include, but are not limited to, the following values: // - "post" - Publish content to the stream. // - "share" - Reshare an activity. Verb string `json:"verb,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Access") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Access") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Access") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Activity) MarshalJSON() ([]byte, error) { +func (s Activity) MarshalJSON() ([]byte, error) { type NoMethod Activity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityActor: The person who performed this activity. type ActivityActor struct { // ClientSpecificActorInfo: Actor info specific to particular clients. ClientSpecificActorInfo *ActivityActorClientSpecificActorInfo `json:"clientSpecificActorInfo,omitempty"` - // DisplayName: The name of the actor, suitable for display. DisplayName string `json:"displayName,omitempty"` - // Id: The ID of the actor's Person resource. Id string `json:"id,omitempty"` - // Image: The image representation of the actor. Image *ActivityActorImage `json:"image,omitempty"` - // Name: An object representation of the individual components of name. Name *ActivityActorName `json:"name,omitempty"` - // Url: The link to the actor's Google profile. Url string `json:"url,omitempty"` - // Verification: Verification status of actor. Verification *ActivityActorVerification `json:"verification,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClientSpecificActorInfo") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActor) MarshalJSON() ([]byte, error) { +func (s ActivityActor) MarshalJSON() ([]byte, error) { type NoMethod ActivityActor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityActorClientSpecificActorInfo: Actor info specific to -// particular clients. +// ActivityActorClientSpecificActorInfo: Actor info specific to particular +// clients. type ActivityActorClientSpecificActorInfo struct { // YoutubeActorInfo: Actor info specific to YouTube clients. YoutubeActorInfo *ActivityActorClientSpecificActorInfoYoutubeActorInfo `json:"youtubeActorInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "YoutubeActorInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "YoutubeActorInfo") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "YoutubeActorInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { +func (s ActivityActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { type NoMethod ActivityActorClientSpecificActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityActorClientSpecificActorInfoYoutubeActorInfo: Actor info -// specific to YouTube clients. +// ActivityActorClientSpecificActorInfoYoutubeActorInfo: Actor info specific to +// YouTube clients. type ActivityActorClientSpecificActorInfoYoutubeActorInfo struct { // ChannelId: ID of the YouTube channel owned by the Actor. ChannelId string `json:"channelId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { +func (s ActivityActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { type NoMethod ActivityActorClientSpecificActorInfoYoutubeActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityActorImage: The image representation of the actor. type ActivityActorImage struct { - // Url: The URL of the actor's profile photo. To resize the image and - // crop it to a square, append the query string ?sz=x, where x is the - // dimension in pixels of each side. + // Url: The URL of the actor's profile photo. To resize the image and crop it + // to a square, append the query string ?sz=x, where x is the dimension in + // pixels of each side. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActorImage) MarshalJSON() ([]byte, error) { +func (s ActivityActorImage) MarshalJSON() ([]byte, error) { type NoMethod ActivityActorImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityActorName: An object representation of the individual -// components of name. +// ActivityActorName: An object representation of the individual components of +// name. type ActivityActorName struct { // FamilyName: The family name ("last name") of the actor. FamilyName string `json:"familyName,omitempty"` - // GivenName: The given name ("first name") of the actor. GivenName string `json:"givenName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FamilyName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FamilyName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FamilyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActorName) MarshalJSON() ([]byte, error) { +func (s ActivityActorName) MarshalJSON() ([]byte, error) { type NoMethod ActivityActorName - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityActorVerification: Verification status of actor. type ActivityActorVerification struct { // AdHocVerified: Verification for one-time or manual processes. AdHocVerified string `json:"adHocVerified,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdHocVerified") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdHocVerified") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdHocVerified") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityActorVerification) MarshalJSON() ([]byte, error) { +func (s ActivityActorVerification) MarshalJSON() ([]byte, error) { type NoMethod ActivityActorVerification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObject: The object of this activity. type ActivityObject struct { - // Actor: If this activity's object is itself another activity, such as - // when a person reshares an activity, this property specifies the - // original activity's actor. + // Actor: If this activity's object is itself another activity, such as when a + // person reshares an activity, this property specifies the original activity's + // actor. Actor *ActivityObjectActor `json:"actor,omitempty"` - // Attachments: The media objects attached to this activity. Attachments []*ActivityObjectAttachments `json:"attachments,omitempty"` - // Content: The HTML-formatted content, which is suitable for display. Content string `json:"content,omitempty"` - - // Id: The ID of the object. When resharing an activity, this is the ID - // of the activity that is being reshared. + // Id: The ID of the object. When resharing an activity, this is the ID of the + // activity that is being reshared. Id string `json:"id,omitempty"` - - // ObjectType: The type of the object. Possible values include, but are - // not limited to, the following values: + // ObjectType: The type of the object. Possible values include, but are not + // limited to, the following values: // - "note" - Textual content. // - "activity" - A Google+ activity. ObjectType string `json:"objectType,omitempty"` - - // OriginalContent: The content (text) as provided by the author, which - // is stored without any HTML formatting. When creating or updating an - // activity, this value must be supplied as plain text in the request. + // OriginalContent: The content (text) as provided by the author, which is + // stored without any HTML formatting. When creating or updating an activity, + // this value must be supplied as plain text in the request. OriginalContent string `json:"originalContent,omitempty"` - // Plusoners: People who +1'd this activity. Plusoners *ActivityObjectPlusoners `json:"plusoners,omitempty"` - // Replies: Comments in reply to this activity. Replies *ActivityObjectReplies `json:"replies,omitempty"` - // Resharers: People who reshared this activity. Resharers *ActivityObjectResharers `json:"resharers,omitempty"` - // StatusForViewer: Status of the activity as seen by the viewer. StatusForViewer *ActivityObjectStatusForViewer `json:"statusForViewer,omitempty"` - // Url: The URL that points to the linked resource. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Actor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actor") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObject) MarshalJSON() ([]byte, error) { +func (s ActivityObject) MarshalJSON() ([]byte, error) { type NoMethod ActivityObject - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectActor: If this activity's object is itself another -// activity, such as when a person reshares an activity, this property -// specifies the original activity's actor. +// ActivityObjectActor: If this activity's object is itself another activity, +// such as when a person reshares an activity, this property specifies the +// original activity's actor. type ActivityObjectActor struct { // ClientSpecificActorInfo: Actor info specific to particular clients. ClientSpecificActorInfo *ActivityObjectActorClientSpecificActorInfo `json:"clientSpecificActorInfo,omitempty"` - - // DisplayName: The original actor's name, which is suitable for - // display. + // DisplayName: The original actor's name, which is suitable for display. DisplayName string `json:"displayName,omitempty"` - // Id: ID of the original actor. Id string `json:"id,omitempty"` - // Image: The image representation of the original actor. Image *ActivityObjectActorImage `json:"image,omitempty"` - // Url: A link to the original actor's Google profile. Url string `json:"url,omitempty"` - // Verification: Verification status of actor. Verification *ActivityObjectActorVerification `json:"verification,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClientSpecificActorInfo") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectActor) MarshalJSON() ([]byte, error) { +func (s ActivityObjectActor) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectActor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectActorClientSpecificActorInfo: Actor info specific to @@ -686,213 +593,164 @@ func (s *ActivityObjectActor) MarshalJSON() ([]byte, error) { type ActivityObjectActorClientSpecificActorInfo struct { // YoutubeActorInfo: Actor info specific to YouTube clients. YoutubeActorInfo *ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo `json:"youtubeActorInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "YoutubeActorInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "YoutubeActorInfo") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "YoutubeActorInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { +func (s ActivityObjectActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectActorClientSpecificActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo: Actor -// info specific to YouTube clients. +// ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo: Actor info +// specific to YouTube clients. type ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo struct { // ChannelId: ID of the YouTube channel owned by the Actor. ChannelId string `json:"channelId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { +func (s ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectActorImage: The image representation of the original -// actor. +// ActivityObjectActorImage: The image representation of the original actor. type ActivityObjectActorImage struct { // Url: A URL that points to a thumbnail photo of the original actor. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectActorImage) MarshalJSON() ([]byte, error) { +func (s ActivityObjectActorImage) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectActorImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectActorVerification: Verification status of actor. type ActivityObjectActorVerification struct { // AdHocVerified: Verification for one-time or manual processes. AdHocVerified string `json:"adHocVerified,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdHocVerified") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdHocVerified") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdHocVerified") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectActorVerification) MarshalJSON() ([]byte, error) { +func (s ActivityObjectActorVerification) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectActorVerification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ActivityObjectAttachments struct { - // Content: If the attachment is an article, this property contains a - // snippet of text from the article. It can also include descriptions - // for other types. + // Content: If the attachment is an article, this property contains a snippet + // of text from the article. It can also include descriptions for other types. Content string `json:"content,omitempty"` - - // DisplayName: The title of the attachment, such as a photo caption or - // an article title. + // DisplayName: The title of the attachment, such as a photo caption or an + // article title. DisplayName string `json:"displayName,omitempty"` - // Embed: If the attachment is a video, the embeddable link. Embed *ActivityObjectAttachmentsEmbed `json:"embed,omitempty"` - // FullImage: The full image URL for photo attachments. FullImage *ActivityObjectAttachmentsFullImage `json:"fullImage,omitempty"` - // Id: The ID of the attachment. Id string `json:"id,omitempty"` - // Image: The preview image for photos or videos. Image *ActivityObjectAttachmentsImage `json:"image,omitempty"` - - // ObjectType: The type of media object. Possible values include, but - // are not limited to, the following values: + // ObjectType: The type of media object. Possible values include, but are not + // limited to, the following values: // - "photo" - A photo. // - "album" - A photo album. // - "video" - A video. // - "article" - An article, specified by a link. ObjectType string `json:"objectType,omitempty"` - - // PreviewThumbnails: When previewing, these are the optional thumbnails - // for the post. When posting an article, choose one by setting the - // attachment.image.url property. If you don't choose one, one will be - // chosen for you. + // PreviewThumbnails: When previewing, these are the optional thumbnails for + // the post. When posting an article, choose one by setting the + // attachment.image.url property. If you don't choose one, one will be chosen + // for you. PreviewThumbnails []*ActivityObjectAttachmentsPreviewThumbnails `json:"previewThumbnails,omitempty"` - // Thumbnails: If the attachment is an album, this property is a list of // potential additional thumbnails from the album. Thumbnails []*ActivityObjectAttachmentsThumbnails `json:"thumbnails,omitempty"` - // Url: The link to the attachment, which should be of type text/html. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachments) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachments) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachments - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectAttachmentsEmbed: If the attachment is a video, the -// embeddable link. +// ActivityObjectAttachmentsEmbed: If the attachment is a video, the embeddable +// link. type ActivityObjectAttachmentsEmbed struct { // Type: Media type of the link. Type string `json:"type,omitempty"` - // Url: URL of the link. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsEmbed) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsEmbed) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsEmbed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectAttachmentsFullImage: The full image URL for photo @@ -900,308 +758,232 @@ func (s *ActivityObjectAttachmentsEmbed) MarshalJSON() ([]byte, error) { type ActivityObjectAttachmentsFullImage struct { // Height: The height, in pixels, of the linked resource. Height int64 `json:"height,omitempty"` - // Type: Media type of the link. Type string `json:"type,omitempty"` - // Url: URL of the image. Url string `json:"url,omitempty"` - // Width: The width, in pixels, of the linked resource. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsFullImage) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsFullImage) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsFullImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectAttachmentsImage: The preview image for photos or -// videos. +// ActivityObjectAttachmentsImage: The preview image for photos or videos. type ActivityObjectAttachmentsImage struct { // Height: The height, in pixels, of the linked resource. Height int64 `json:"height,omitempty"` - // Type: Media type of the link. Type string `json:"type,omitempty"` - // Url: Image URL. Url string `json:"url,omitempty"` - // Width: The width, in pixels, of the linked resource. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsImage) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsImage) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ActivityObjectAttachmentsPreviewThumbnails struct { // Url: URL of the thumbnail image. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsPreviewThumbnails) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsPreviewThumbnails) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsPreviewThumbnails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ActivityObjectAttachmentsThumbnails struct { // Description: Potential name of the thumbnail. Description string `json:"description,omitempty"` - // Image: Image resource. Image *ActivityObjectAttachmentsThumbnailsImage `json:"image,omitempty"` - // Url: URL of the webpage containing the image. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsThumbnails) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsThumbnails) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsThumbnails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectAttachmentsThumbnailsImage: Image resource. type ActivityObjectAttachmentsThumbnailsImage struct { // Height: The height, in pixels, of the linked resource. Height int64 `json:"height,omitempty"` - // Type: Media type of the link. Type string `json:"type,omitempty"` - // Url: Image url. Url string `json:"url,omitempty"` - // Width: The width, in pixels, of the linked resource. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectAttachmentsThumbnailsImage) MarshalJSON() ([]byte, error) { +func (s ActivityObjectAttachmentsThumbnailsImage) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectAttachmentsThumbnailsImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectPlusoners: People who +1'd this activity. type ActivityObjectPlusoners struct { - // SelfLink: The URL for the collection of people who +1'd this - // activity. + // SelfLink: The URL for the collection of people who +1'd this activity. SelfLink string `json:"selfLink,omitempty"` - // TotalItems: Total number of people who +1'd this activity. TotalItems int64 `json:"totalItems,omitempty"` - // ForceSendFields is a list of field names (e.g. "SelfLink") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SelfLink") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SelfLink") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectPlusoners) MarshalJSON() ([]byte, error) { +func (s ActivityObjectPlusoners) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectPlusoners - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectReplies: Comments in reply to this activity. type ActivityObjectReplies struct { - // SelfLink: The URL for the collection of comments in reply to this - // activity. + // SelfLink: The URL for the collection of comments in reply to this activity. SelfLink string `json:"selfLink,omitempty"` - // TotalItems: Total number of comments on this activity. TotalItems int64 `json:"totalItems,omitempty"` - // ForceSendFields is a list of field names (e.g. "SelfLink") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SelfLink") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SelfLink") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectReplies) MarshalJSON() ([]byte, error) { +func (s ActivityObjectReplies) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectReplies - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityObjectResharers: People who reshared this activity. type ActivityObjectResharers struct { // SelfLink: The URL for the collection of resharers. SelfLink string `json:"selfLink,omitempty"` - // TotalItems: Total number of people who reshared this activity. TotalItems int64 `json:"totalItems,omitempty"` - // ForceSendFields is a list of field names (e.g. "SelfLink") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SelfLink") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SelfLink") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectResharers) MarshalJSON() ([]byte, error) { +func (s ActivityObjectResharers) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectResharers - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ActivityObjectStatusForViewer: Status of the activity as seen by the -// viewer. +// ActivityObjectStatusForViewer: Status of the activity as seen by the viewer. type ActivityObjectStatusForViewer struct { // CanComment: Whether the viewer can comment on the activity. CanComment bool `json:"canComment,omitempty"` - // CanPlusone: Whether the viewer can +1 the activity. CanPlusone bool `json:"canPlusone,omitempty"` - // CanUpdate: Whether the viewer can edit or delete the activity. CanUpdate bool `json:"canUpdate,omitempty"` - // IsPlusOned: Whether the viewer has +1'd the activity. IsPlusOned bool `json:"isPlusOned,omitempty"` - // ResharingDisabled: Whether reshares are disabled for the activity. ResharingDisabled bool `json:"resharingDisabled,omitempty"` - // ForceSendFields is a list of field names (e.g. "CanComment") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CanComment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CanComment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityObjectStatusForViewer) MarshalJSON() ([]byte, error) { +func (s ActivityObjectStatusForViewer) MarshalJSON() ([]byte, error) { type NoMethod ActivityObjectStatusForViewer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ActivityProvider: The service provider that initially published this @@ -1209,1020 +991,773 @@ func (s *ActivityObjectStatusForViewer) MarshalJSON() ([]byte, error) { type ActivityProvider struct { // Title: Name of the service provider. Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Title") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Title") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Title") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityProvider) MarshalJSON() ([]byte, error) { +func (s ActivityProvider) MarshalJSON() ([]byte, error) { type NoMethod ActivityProvider - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ActivityFeed struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID of this collection of activities. Deprecated. Id string `json:"id,omitempty"` - // Items: The activities in this page of results. Items []*Activity `json:"items,omitempty"` - // Kind: Identifies this resource as a collection of activities. Value: // "plus#activityFeed". Kind string `json:"kind,omitempty"` - // NextLink: Link to the next page of activities. NextLink string `json:"nextLink,omitempty"` - - // NextPageToken: The continuation token, which is used to page through - // large result sets. Provide this value in a subsequent request to - // return the next page of results. + // NextPageToken: The continuation token, which is used to page through large + // result sets. Provide this value in a subsequent request to return the next + // page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: Link to this activity resource. SelfLink string `json:"selfLink,omitempty"` - - // Title: The title of this collection of activities, which is a - // truncated portion of the content. + // Title: The title of this collection of activities, which is a truncated + // portion of the content. Title string `json:"title,omitempty"` - - // Updated: The time at which this collection of activities was last - // updated. Formatted as an RFC 3339 timestamp. + // Updated: The time at which this collection of activities was last updated. + // Formatted as an RFC 3339 timestamp. Updated string `json:"updated,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ActivityFeed) MarshalJSON() ([]byte, error) { +func (s ActivityFeed) MarshalJSON() ([]byte, error) { type NoMethod ActivityFeed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Audience struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Item: The access control list entry. Item *PlusDomainsAclentryResource `json:"item,omitempty"` - - // Kind: Identifies this resource as an audience. Value: - // "plus#audience". + // Kind: Identifies this resource as an audience. Value: "plus#audience". Kind string `json:"kind,omitempty"` - - // MemberCount: The number of people in this circle. This only applies - // if entity_type is CIRCLE. + // MemberCount: The number of people in this circle. This only applies if + // entity_type is CIRCLE. MemberCount int64 `json:"memberCount,omitempty"` - - // Visibility: The circle members' visibility as chosen by the owner of - // the circle. This only applies for items with "item.type" equals - // "circle". Possible values are: + // Visibility: The circle members' visibility as chosen by the owner of the + // circle. This only applies for items with "item.type" equals "circle". + // Possible values are: // - "public" - Members are visible to the public. // - "limited" - Members are visible to a limited audience. // - "private" - Members are visible to the owner only. Visibility string `json:"visibility,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Audience) MarshalJSON() ([]byte, error) { +func (s Audience) MarshalJSON() ([]byte, error) { type NoMethod Audience - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AudiencesFeed struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The audiences in this result. Items []*Audience `json:"items,omitempty"` - // Kind: Identifies this resource as a collection of audiences. Value: // "plus#audienceFeed". Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, which is used to page through - // large result sets. Provide this value in a subsequent request to - // return the next page of results. + // NextPageToken: The continuation token, which is used to page through large + // result sets. Provide this value in a subsequent request to return the next + // page of results. NextPageToken string `json:"nextPageToken,omitempty"` - - // TotalItems: The total number of ACL entries. The number of entries in - // this response may be smaller due to paging. + // TotalItems: The total number of ACL entries. The number of entries in this + // response may be smaller due to paging. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudiencesFeed) MarshalJSON() ([]byte, error) { +func (s AudiencesFeed) MarshalJSON() ([]byte, error) { type NoMethod AudiencesFeed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Circle struct { // Description: The description of this circle. Description string `json:"description,omitempty"` - // DisplayName: The circle name. DisplayName string `json:"displayName,omitempty"` - // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID of the circle. Id string `json:"id,omitempty"` - // Kind: Identifies this resource as a circle. Value: "plus#circle". Kind string `json:"kind,omitempty"` - // People: The people in this circle. People *CirclePeople `json:"people,omitempty"` - // SelfLink: Link to this circle resource SelfLink string `json:"selfLink,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Circle) MarshalJSON() ([]byte, error) { +func (s Circle) MarshalJSON() ([]byte, error) { type NoMethod Circle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CirclePeople: The people in this circle. type CirclePeople struct { // TotalItems: The total number of people in this circle. TotalItems int64 `json:"totalItems,omitempty"` - // ForceSendFields is a list of field names (e.g. "TotalItems") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TotalItems") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "TotalItems") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CirclePeople) MarshalJSON() ([]byte, error) { +func (s CirclePeople) MarshalJSON() ([]byte, error) { type NoMethod CirclePeople - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CircleFeed struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The circles in this page of results. Items []*Circle `json:"items,omitempty"` - // Kind: Identifies this resource as a collection of circles. Value: // "plus#circleFeed". Kind string `json:"kind,omitempty"` - // NextLink: Link to the next page of circles. NextLink string `json:"nextLink,omitempty"` - - // NextPageToken: The continuation token, which is used to page through - // large result sets. Provide this value in a subsequent request to - // return the next page of results. + // NextPageToken: The continuation token, which is used to page through large + // result sets. Provide this value in a subsequent request to return the next + // page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: Link to this page of circles. SelfLink string `json:"selfLink,omitempty"` - // Title: The title of this list of resources. Title string `json:"title,omitempty"` - - // TotalItems: The total number of circles. The number of circles in - // this response may be smaller due to paging. + // TotalItems: The total number of circles. The number of circles in this + // response may be smaller due to paging. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CircleFeed) MarshalJSON() ([]byte, error) { +func (s CircleFeed) MarshalJSON() ([]byte, error) { type NoMethod CircleFeed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Comment struct { // Actor: The person who posted this comment. Actor *CommentActor `json:"actor,omitempty"` - // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID of this comment. Id string `json:"id,omitempty"` - // InReplyTo: The activity this comment replied to. InReplyTo []*CommentInReplyTo `json:"inReplyTo,omitempty"` - // Kind: Identifies this resource as a comment. Value: "plus#comment". Kind string `json:"kind,omitempty"` - // Object: The object of this comment. Object *CommentObject `json:"object,omitempty"` - // Plusoners: People who +1'd this comment. Plusoners *CommentPlusoners `json:"plusoners,omitempty"` - - // Published: The time at which this comment was initially published. - // Formatted as an RFC 3339 timestamp. + // Published: The time at which this comment was initially published. Formatted + // as an RFC 3339 timestamp. Published string `json:"published,omitempty"` - // SelfLink: Link to this comment resource. SelfLink string `json:"selfLink,omitempty"` - - // Updated: The time at which this comment was last updated. Formatted - // as an RFC 3339 timestamp. + // Updated: The time at which this comment was last updated. Formatted as an + // RFC 3339 timestamp. Updated string `json:"updated,omitempty"` - - // Verb: This comment's verb, indicating what action was performed. - // Possible values are: + // Verb: This comment's verb, indicating what action was performed. Possible + // values are: // - "post" - Publish content to the stream. Verb string `json:"verb,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Actor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actor") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Comment) MarshalJSON() ([]byte, error) { +func (s Comment) MarshalJSON() ([]byte, error) { type NoMethod Comment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommentActor: The person who posted this comment. type CommentActor struct { // ClientSpecificActorInfo: Actor info specific to particular clients. ClientSpecificActorInfo *CommentActorClientSpecificActorInfo `json:"clientSpecificActorInfo,omitempty"` - // DisplayName: The name of this actor, suitable for display. DisplayName string `json:"displayName,omitempty"` - // Id: The ID of the actor. Id string `json:"id,omitempty"` - // Image: The image representation of this actor. Image *CommentActorImage `json:"image,omitempty"` - // Url: A link to the Person resource for this actor. Url string `json:"url,omitempty"` - // Verification: Verification status of actor. Verification *CommentActorVerification `json:"verification,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ClientSpecificActorInfo") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClientSpecificActorInfo") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentActor) MarshalJSON() ([]byte, error) { +func (s CommentActor) MarshalJSON() ([]byte, error) { type NoMethod CommentActor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CommentActorClientSpecificActorInfo: Actor info specific to -// particular clients. +// CommentActorClientSpecificActorInfo: Actor info specific to particular +// clients. type CommentActorClientSpecificActorInfo struct { // YoutubeActorInfo: Actor info specific to YouTube clients. YoutubeActorInfo *CommentActorClientSpecificActorInfoYoutubeActorInfo `json:"youtubeActorInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "YoutubeActorInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "YoutubeActorInfo") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "YoutubeActorInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { +func (s CommentActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) { type NoMethod CommentActorClientSpecificActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CommentActorClientSpecificActorInfoYoutubeActorInfo: Actor info -// specific to YouTube clients. +// CommentActorClientSpecificActorInfoYoutubeActorInfo: Actor info specific to +// YouTube clients. type CommentActorClientSpecificActorInfoYoutubeActorInfo struct { // ChannelId: ID of the YouTube channel owned by the Actor. ChannelId string `json:"channelId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { +func (s CommentActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) { type NoMethod CommentActorClientSpecificActorInfoYoutubeActorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommentActorImage: The image representation of this actor. type CommentActorImage struct { - // Url: The URL of the actor's profile photo. To resize the image and - // crop it to a square, append the query string ?sz=x, where x is the - // dimension in pixels of each side. + // Url: The URL of the actor's profile photo. To resize the image and crop it + // to a square, append the query string ?sz=x, where x is the dimension in + // pixels of each side. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentActorImage) MarshalJSON() ([]byte, error) { +func (s CommentActorImage) MarshalJSON() ([]byte, error) { type NoMethod CommentActorImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommentActorVerification: Verification status of actor. type CommentActorVerification struct { // AdHocVerified: Verification for one-time or manual processes. AdHocVerified string `json:"adHocVerified,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdHocVerified") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdHocVerified") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdHocVerified") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentActorVerification) MarshalJSON() ([]byte, error) { +func (s CommentActorVerification) MarshalJSON() ([]byte, error) { type NoMethod CommentActorVerification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CommentInReplyTo struct { // Id: The ID of the activity. Id string `json:"id,omitempty"` - // Url: The URL of the activity. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentInReplyTo) MarshalJSON() ([]byte, error) { +func (s CommentInReplyTo) MarshalJSON() ([]byte, error) { type NoMethod CommentInReplyTo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommentObject: The object of this comment. type CommentObject struct { // Content: The HTML-formatted content, suitable for display. Content string `json:"content,omitempty"` - // ObjectType: The object type of this comment. Possible values are: // - "comment" - A comment in reply to an activity. ObjectType string `json:"objectType,omitempty"` - // OriginalContent: The content (text) as provided by the author, stored - // without any HTML formatting. When creating or updating a comment, - // this value must be supplied as plain text in the request. + // without any HTML formatting. When creating or updating a comment, this value + // must be supplied as plain text in the request. OriginalContent string `json:"originalContent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentObject) MarshalJSON() ([]byte, error) { +func (s CommentObject) MarshalJSON() ([]byte, error) { type NoMethod CommentObject - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CommentPlusoners: People who +1'd this comment. type CommentPlusoners struct { // TotalItems: Total number of people who +1'd this comment. TotalItems int64 `json:"totalItems,omitempty"` - // ForceSendFields is a list of field names (e.g. "TotalItems") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TotalItems") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "TotalItems") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentPlusoners) MarshalJSON() ([]byte, error) { +func (s CommentPlusoners) MarshalJSON() ([]byte, error) { type NoMethod CommentPlusoners - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CommentFeed struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Id: The ID of this collection of comments. Id string `json:"id,omitempty"` - // Items: The comments in this page of results. Items []*Comment `json:"items,omitempty"` - // Kind: Identifies this resource as a collection of comments. Value: // "plus#commentFeed". Kind string `json:"kind,omitempty"` - // NextLink: Link to the next page of activities. NextLink string `json:"nextLink,omitempty"` - - // NextPageToken: The continuation token, which is used to page through - // large result sets. Provide this value in a subsequent request to - // return the next page of results. + // NextPageToken: The continuation token, which is used to page through large + // result sets. Provide this value in a subsequent request to return the next + // page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // Title: The title of this collection of comments. Title string `json:"title,omitempty"` - - // Updated: The time at which this collection of comments was last - // updated. Formatted as an RFC 3339 timestamp. + // Updated: The time at which this collection of comments was last updated. + // Formatted as an RFC 3339 timestamp. Updated string `json:"updated,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CommentFeed) MarshalJSON() ([]byte, error) { +func (s CommentFeed) MarshalJSON() ([]byte, error) { type NoMethod CommentFeed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Media struct { // Author: The person who uploaded this media. Author *MediaAuthor `json:"author,omitempty"` - // DisplayName: The display name for this media. DisplayName string `json:"displayName,omitempty"` - // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Exif: Exif information of the media item. Exif *MediaExif `json:"exif,omitempty"` - // Height: The height in pixels of the original image. Height int64 `json:"height,omitempty"` - // Id: ID of this media, which is generated by the API. Id string `json:"id,omitempty"` - // Kind: The type of resource. Kind string `json:"kind,omitempty"` - - // MediaCreatedTime: The time at which this media was originally created - // in UTC. Formatted as an RFC 3339 timestamp that matches this example: + // MediaCreatedTime: The time at which this media was originally created in + // UTC. Formatted as an RFC 3339 timestamp that matches this example: // 2010-11-25T14:30:27.655Z MediaCreatedTime string `json:"mediaCreatedTime,omitempty"` - // MediaUrl: The URL of this photo or video's still image. MediaUrl string `json:"mediaUrl,omitempty"` - - // Published: The time at which this media was uploaded. Formatted as an - // RFC 3339 timestamp. + // Published: The time at which this media was uploaded. Formatted as an RFC + // 3339 timestamp. Published string `json:"published,omitempty"` - // SizeBytes: The size in bytes of this video. SizeBytes int64 `json:"sizeBytes,omitempty,string"` - - // Streams: The list of video streams for this video. There might be - // several different streams available for a single video, either Flash - // or MPEG, of various sizes + // Streams: The list of video streams for this video. There might be several + // different streams available for a single video, either Flash or MPEG, of + // various sizes Streams []*Videostream `json:"streams,omitempty"` - // Summary: A description, or caption, for this media. Summary string `json:"summary,omitempty"` - // Updated: The time at which this media was last updated. This includes // changes to media metadata. Formatted as an RFC 3339 timestamp. Updated string `json:"updated,omitempty"` - // Url: The URL for the page that hosts this media. Url string `json:"url,omitempty"` - // VideoDuration: The duration in milliseconds of this video. VideoDuration int64 `json:"videoDuration,omitempty,string"` - // VideoStatus: The encoding status of this video. Possible values are: - // // - "UPLOADING" - Not all the video bytes have been received. // - "PENDING" - Video not yet processed. // - "FAILED" - Video processing failed. // - "READY" - A single video stream is playable. // - "FINAL" - All video streams are playable. VideoStatus string `json:"videoStatus,omitempty"` - // Width: The width in pixels of the original image. Width int64 `json:"width,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Author") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Author") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Author") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Media) MarshalJSON() ([]byte, error) { +func (s Media) MarshalJSON() ([]byte, error) { type NoMethod Media - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MediaAuthor: The person who uploaded this media. type MediaAuthor struct { // DisplayName: The author's name. DisplayName string `json:"displayName,omitempty"` - // Id: ID of the author. Id string `json:"id,omitempty"` - // Image: The author's Google profile image. Image *MediaAuthorImage `json:"image,omitempty"` - // Url: A link to the author's Google profile. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MediaAuthor) MarshalJSON() ([]byte, error) { +func (s MediaAuthor) MarshalJSON() ([]byte, error) { type NoMethod MediaAuthor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MediaAuthorImage: The author's Google profile image. type MediaAuthorImage struct { - // Url: The URL of the author's profile photo. To resize the image and - // crop it to a square, append the query string ?sz=x, where x is the - // dimension in pixels of each side. + // Url: The URL of the author's profile photo. To resize the image and crop it + // to a square, append the query string ?sz=x, where x is the dimension in + // pixels of each side. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Url") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Url") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MediaAuthorImage) MarshalJSON() ([]byte, error) { +func (s MediaAuthorImage) MarshalJSON() ([]byte, error) { type NoMethod MediaAuthorImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MediaExif: Exif information of the media item. type MediaExif struct { - // Time: The time the media was captured. Formatted as an RFC 3339 - // timestamp. + // Time: The time the media was captured. Formatted as an RFC 3339 timestamp. Time string `json:"time,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Time") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Time") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Time") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Time") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MediaExif) MarshalJSON() ([]byte, error) { +func (s MediaExif) MarshalJSON() ([]byte, error) { type NoMethod MediaExif - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PeopleFeed struct { // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - // Items: The people in this page of results. Each item includes the id, - // displayName, image, and url for the person. To retrieve additional - // profile data, see the people.get method. + // displayName, image, and url for the person. To retrieve additional profile + // data, see the people.get method. Items []*Person `json:"items,omitempty"` - // Kind: Identifies this resource as a collection of people. Value: // "plus#peopleFeed". Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, which is used to page through - // large result sets. Provide this value in a subsequent request to - // return the next page of results. + // NextPageToken: The continuation token, which is used to page through large + // result sets. Provide this value in a subsequent request to return the next + // page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: Link to this resource. SelfLink string `json:"selfLink,omitempty"` - // Title: The title of this collection of people. Title string `json:"title,omitempty"` - - // TotalItems: The total number of people available in this list. The - // number of people in a response might be smaller due to paging. This - // might not be set for all collections. + // TotalItems: The total number of people available in this list. The number of + // people in a response might be smaller due to paging. This might not be set + // for all collections. TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PeopleFeed) MarshalJSON() ([]byte, error) { +func (s PeopleFeed) MarshalJSON() ([]byte, error) { type NoMethod PeopleFeed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Person struct { // AboutMe: A short biography for this person. AboutMe string `json:"aboutMe,omitempty"` - // Birthday: The person's date of birth, represented as YYYY-MM-DD. Birthday string `json:"birthday,omitempty"` - // BraggingRights: The "bragging rights" line of this person. BraggingRights string `json:"braggingRights,omitempty"` - - // CircledByCount: For followers who are visible, the number of people - // who have added this person or page to a circle. + // CircledByCount: For followers who are visible, the number of people who have + // added this person or page to a circle. CircledByCount int64 `json:"circledByCount,omitempty"` - // Cover: The cover photo content. Cover *PersonCover `json:"cover,omitempty"` - // CurrentLocation: (this field is not currently used) CurrentLocation string `json:"currentLocation,omitempty"` - // DisplayName: The name of this person, which is suitable for display. DisplayName string `json:"displayName,omitempty"` - - // Domain: The hosted domain name for the user's Google Apps account. - // For instance, example.com. The plus.profile.emails.read or email - // scope is needed to get this domain name. + // Domain: The hosted domain name for the user's Google Apps account. For + // instance, example.com. The plus.profile.emails.read or email scope is needed + // to get this domain name. Domain string `json:"domain,omitempty"` - - // Emails: A list of email addresses that this person has, including - // their Google account email address, and the public verified email - // addresses on their Google+ profile. The plus.profile.emails.read - // scope is needed to retrieve these email addresses, or the email scope - // can be used to retrieve just the Google account email address. + // Emails: A list of email addresses that this person has, including their + // Google account email address, and the public verified email addresses on + // their Google+ profile. The plus.profile.emails.read scope is needed to + // retrieve these email addresses, or the email scope can be used to retrieve + // just the Google account email address. Emails []*PersonEmails `json:"emails,omitempty"` - // Etag: ETag of this response for caching purposes. Etag string `json:"etag,omitempty"` - - // Gender: The person's gender. Possible values include, but are not - // limited to, the following values: + // Gender: The person's gender. Possible values include, but are not limited + // to, the following values: // - "male" - Male gender. // - "female" - Female gender. // - "other" - Other. Gender string `json:"gender,omitempty"` - // Id: The ID of this person. Id string `json:"id,omitempty"` - // Image: The representation of the person's profile photo. Image *PersonImage `json:"image,omitempty"` - // IsPlusUser: Whether this user has signed up for Google+. IsPlusUser bool `json:"isPlusUser,omitempty"` - // Kind: Identifies this resource as a person. Value: "plus#person". Kind string `json:"kind,omitempty"` - - // Name: An object representation of the individual components of a - // person's name. + // Name: An object representation of the individual components of a person's + // name. Name *PersonName `json:"name,omitempty"` - // Nickname: The nickname of this person. Nickname string `json:"nickname,omitempty"` - - // ObjectType: Type of person within Google+. Possible values include, - // but are not limited to, the following values: + // ObjectType: Type of person within Google+. Possible values include, but are + // not limited to, the following values: // - "person" - represents an actual person. // - "page" - represents a page. ObjectType string `json:"objectType,omitempty"` - // Occupation: The occupation of this person. Occupation string `json:"occupation,omitempty"` - - // Organizations: A list of current or past organizations with which - // this person is associated. + // Organizations: A list of current or past organizations with which this + // person is associated. Organizations []*PersonOrganizations `json:"organizations,omitempty"` - // PlacesLived: A list of places where this person has lived. PlacesLived []*PersonPlacesLived `json:"placesLived,omitempty"` - - // PlusOneCount: If a Google+ Page, the number of people who have +1'd - // this page. + // PlusOneCount: If a Google+ Page, the number of people who have +1'd this + // page. PlusOneCount int64 `json:"plusOneCount,omitempty"` - // RelationshipStatus: The person's relationship status. Possible values // include, but are not limited to, the following values: // - "single" - Person is single. @@ -2235,493 +1770,376 @@ type Person struct { // - "in_domestic_partnership" - Person is in a domestic partnership. // - "in_civil_union" - Person is in a civil union. RelationshipStatus string `json:"relationshipStatus,omitempty"` - // Skills: The person's skills. Skills string `json:"skills,omitempty"` - // Tagline: The brief description (tagline) of this person. Tagline string `json:"tagline,omitempty"` - // Url: The URL of this person's profile. Url string `json:"url,omitempty"` - // Urls: A list of URLs for this person. Urls []*PersonUrls `json:"urls,omitempty"` - // Verified: Whether the person or Google+ Page has been verified. Verified bool `json:"verified,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AboutMe") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AboutMe") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AboutMe") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AboutMe") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Person) MarshalJSON() ([]byte, error) { +func (s Person) MarshalJSON() ([]byte, error) { type NoMethod Person - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PersonCover: The cover photo content. type PersonCover struct { // CoverInfo: Extra information about the cover photo. CoverInfo *PersonCoverCoverInfo `json:"coverInfo,omitempty"` - // CoverPhoto: The person's primary cover image. CoverPhoto *PersonCoverCoverPhoto `json:"coverPhoto,omitempty"` - - // Layout: The layout of the cover art. Possible values include, but are - // not limited to, the following values: + // Layout: The layout of the cover art. Possible values include, but are not + // limited to, the following values: // - "banner" - One large image banner. Layout string `json:"layout,omitempty"` - // ForceSendFields is a list of field names (e.g. "CoverInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CoverInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CoverInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonCover) MarshalJSON() ([]byte, error) { +func (s PersonCover) MarshalJSON() ([]byte, error) { type NoMethod PersonCover - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PersonCoverCoverInfo: Extra information about the cover photo. type PersonCoverCoverInfo struct { - // LeftImageOffset: The difference between the left position of the - // cover image and the actual displayed cover image. Only valid for - // banner layout. + // LeftImageOffset: The difference between the left position of the cover image + // and the actual displayed cover image. Only valid for banner layout. LeftImageOffset int64 `json:"leftImageOffset,omitempty"` - - // TopImageOffset: The difference between the top position of the cover - // image and the actual displayed cover image. Only valid for banner - // layout. + // TopImageOffset: The difference between the top position of the cover image + // and the actual displayed cover image. Only valid for banner layout. TopImageOffset int64 `json:"topImageOffset,omitempty"` - // ForceSendFields is a list of field names (e.g. "LeftImageOffset") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LeftImageOffset") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LeftImageOffset") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonCoverCoverInfo) MarshalJSON() ([]byte, error) { +func (s PersonCoverCoverInfo) MarshalJSON() ([]byte, error) { type NoMethod PersonCoverCoverInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PersonCoverCoverPhoto: The person's primary cover image. type PersonCoverCoverPhoto struct { // Height: The height of the image. Height int64 `json:"height,omitempty"` - // Url: The URL of the image. Url string `json:"url,omitempty"` - // Width: The width of the image. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonCoverCoverPhoto) MarshalJSON() ([]byte, error) { +func (s PersonCoverCoverPhoto) MarshalJSON() ([]byte, error) { type NoMethod PersonCoverCoverPhoto - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PersonEmails struct { - // Type: The type of address. Possible values include, but are not - // limited to, the following values: + // Type: The type of address. Possible values include, but are not limited to, + // the following values: // - "account" - Google account email address. // - "home" - Home email address. // - "work" - Work email address. // - "other" - Other. Type string `json:"type,omitempty"` - // Value: The email address. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonEmails) MarshalJSON() ([]byte, error) { +func (s PersonEmails) MarshalJSON() ([]byte, error) { type NoMethod PersonEmails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PersonImage: The representation of the person's profile photo. type PersonImage struct { // IsDefault: Whether the person's profile photo is the default one IsDefault bool `json:"isDefault,omitempty"` - - // Url: The URL of the person's profile photo. To resize the image and - // crop it to a square, append the query string ?sz=x, where x is the - // dimension in pixels of each side. + // Url: The URL of the person's profile photo. To resize the image and crop it + // to a square, append the query string ?sz=x, where x is the dimension in + // pixels of each side. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "IsDefault") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IsDefault") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IsDefault") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonImage) MarshalJSON() ([]byte, error) { +func (s PersonImage) MarshalJSON() ([]byte, error) { type NoMethod PersonImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PersonName: An object representation of the individual components of -// a person's name. +// PersonName: An object representation of the individual components of a +// person's name. type PersonName struct { // FamilyName: The family name (last name) of this person. FamilyName string `json:"familyName,omitempty"` - - // Formatted: The full name of this person, including middle names, - // suffixes, etc. + // Formatted: The full name of this person, including middle names, suffixes, + // etc. Formatted string `json:"formatted,omitempty"` - // GivenName: The given name (first name) of this person. GivenName string `json:"givenName,omitempty"` - - // HonorificPrefix: The honorific prefixes (such as "Dr." or "Mrs.") for - // this person. - HonorificPrefix string `json:"honorificPrefix,omitempty"` - - // HonorificSuffix: The honorific suffixes (such as "Jr.") for this + // HonorificPrefix: The honorific prefixes (such as "Dr." or "Mrs.") for this // person. + HonorificPrefix string `json:"honorificPrefix,omitempty"` + // HonorificSuffix: The honorific suffixes (such as "Jr.") for this person. HonorificSuffix string `json:"honorificSuffix,omitempty"` - // MiddleName: The middle name of this person. MiddleName string `json:"middleName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FamilyName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FamilyName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FamilyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonName) MarshalJSON() ([]byte, error) { +func (s PersonName) MarshalJSON() ([]byte, error) { type NoMethod PersonName - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PersonOrganizations struct { // Department: The department within the organization. Deprecated. Department string `json:"department,omitempty"` - - // Description: A short description of the person's role in this - // organization. Deprecated. + // Description: A short description of the person's role in this organization. + // Deprecated. Description string `json:"description,omitempty"` - // EndDate: The date that the person left this organization. EndDate string `json:"endDate,omitempty"` - // Location: The location of this organization. Deprecated. Location string `json:"location,omitempty"` - // Name: The name of the organization. Name string `json:"name,omitempty"` - - // Primary: If "true", indicates this organization is the person's - // primary one, which is typically interpreted as the current one. + // Primary: If "true", indicates this organization is the person's primary one, + // which is typically interpreted as the current one. Primary bool `json:"primary,omitempty"` - // StartDate: The date that the person joined this organization. StartDate string `json:"startDate,omitempty"` - // Title: The person's job title or role within the organization. Title string `json:"title,omitempty"` - - // Type: The type of organization. Possible values include, but are not - // limited to, the following values: + // Type: The type of organization. Possible values include, but are not limited + // to, the following values: // - "work" - Work. // - "school" - School. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Department") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Department") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Department") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonOrganizations) MarshalJSON() ([]byte, error) { +func (s PersonOrganizations) MarshalJSON() ([]byte, error) { type NoMethod PersonOrganizations - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PersonPlacesLived struct { // Primary: If "true", this place of residence is this person's primary // residence. Primary bool `json:"primary,omitempty"` - - // Value: A place where this person has lived. For example: "Seattle, - // WA", "Near Toronto". + // Value: A place where this person has lived. For example: "Seattle, WA", + // "Near Toronto". Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Primary") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Primary") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Primary") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Primary") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonPlacesLived) MarshalJSON() ([]byte, error) { +func (s PersonPlacesLived) MarshalJSON() ([]byte, error) { type NoMethod PersonPlacesLived - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PersonUrls struct { // Label: The label of the URL. Label string `json:"label,omitempty"` - - // Type: The type of URL. Possible values include, but are not limited - // to, the following values: + // Type: The type of URL. Possible values include, but are not limited to, the + // following values: // - "otherProfile" - URL for another profile. - // - "contributor" - URL to a site for which this person is a - // contributor. + // - "contributor" - URL to a site for which this person is a contributor. // - "website" - URL for this Google+ Page's primary website. // - "other" - Other URL. Type string `json:"type,omitempty"` - // Value: The URL value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Label") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Label") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Label") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PersonUrls) MarshalJSON() ([]byte, error) { +func (s PersonUrls) MarshalJSON() ([]byte, error) { type NoMethod PersonUrls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Place struct { // Address: The physical address of the place. Address *PlaceAddress `json:"address,omitempty"` - // DisplayName: The display name of the place. DisplayName string `json:"displayName,omitempty"` - // Id: The id of the place. Id string `json:"id,omitempty"` - // Kind: Identifies this resource as a place. Value: "plus#place". Kind string `json:"kind,omitempty"` - // Position: The position of the place. Position *PlacePosition `json:"position,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Place) MarshalJSON() ([]byte, error) { +func (s Place) MarshalJSON() ([]byte, error) { type NoMethod Place - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlaceAddress: The physical address of the place. type PlaceAddress struct { // Formatted: The formatted address for display. Formatted string `json:"formatted,omitempty"` - // ForceSendFields is a list of field names (e.g. "Formatted") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Formatted") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Formatted") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlaceAddress) MarshalJSON() ([]byte, error) { +func (s PlaceAddress) MarshalJSON() ([]byte, error) { type NoMethod PlaceAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PlacePosition: The position of the place. type PlacePosition struct { // Latitude: The latitude of this position. Latitude float64 `json:"latitude,omitempty"` - // Longitude: The longitude of this position. Longitude float64 `json:"longitude,omitempty"` - // ForceSendFields is a list of field names (e.g. "Latitude") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Latitude") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Latitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlacePosition) MarshalJSON() ([]byte, error) { +func (s PlacePosition) MarshalJSON() ([]byte, error) { type NoMethod PlacePosition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PlacePosition) UnmarshalJSON(data []byte) error { @@ -2743,84 +2161,64 @@ func (s *PlacePosition) UnmarshalJSON(data []byte) error { type PlusDomainsAclentryResource struct { // DisplayName: A descriptive name for this entry. Suitable for display. DisplayName string `json:"displayName,omitempty"` - - // Id: The ID of the entry. For entries of type "person" or "circle", - // this is the ID of the resource. For other types, this property is not - // set. + // Id: The ID of the entry. For entries of type "person" or "circle", this is + // the ID of the resource. For other types, this property is not set. Id string `json:"id,omitempty"` - - // Type: The type of entry describing to whom access is granted. - // Possible values are: + // Type: The type of entry describing to whom access is granted. Possible + // values are: // - "person" - Access to an individual. // - "circle" - Access to members of a circle. // - "myCircles" - Access to members of all the person's circles. - // - "extendedCircles" - Access to members of all the person's circles, - // plus all of the people in their circles. + // - "extendedCircles" - Access to members of all the person's circles, plus + // all of the people in their circles. // - "domain" - Access to members of the person's Google Apps domain. // - "public" - Access to anyone on the web. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PlusDomainsAclentryResource) MarshalJSON() ([]byte, error) { +func (s PlusDomainsAclentryResource) MarshalJSON() ([]byte, error) { type NoMethod PlusDomainsAclentryResource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Videostream struct { // Height: The height, in pixels, of the video resource. Height int64 `json:"height,omitempty"` - // Type: MIME type of the video stream. Type string `json:"type,omitempty"` - // Url: URL of the video stream. Url string `json:"url,omitempty"` - // Width: The width, in pixels, of the video resource. Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Videostream) MarshalJSON() ([]byte, error) { +func (s Videostream) MarshalJSON() ([]byte, error) { type NoMethod Videostream - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "plusDomains.activities.get": - type ActivitiesGetCall struct { s *Service activityId string @@ -2830,8 +2228,10 @@ type ActivitiesGetCall struct { header_ http.Header } -// Get: Shut down. See https://developers.google.com/+/api-shutdown for -// more details. +// Get: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - activityId: The ID of the activity to get. func (r *ActivitiesService) Get(activityId string) *ActivitiesGetCall { c := &ActivitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.activityId = activityId @@ -2839,33 +2239,29 @@ func (r *ActivitiesService) Get(activityId string) *ActivitiesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ActivitiesGetCall) Fields(s ...googleapi.Field) *ActivitiesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ActivitiesGetCall) IfNoneMatch(entityTag string) *ActivitiesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ActivitiesGetCall) Context(ctx context.Context) *ActivitiesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ActivitiesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2874,12 +2270,7 @@ func (c *ActivitiesGetCall) Header() http.Header { } func (c *ActivitiesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2896,16 +2287,14 @@ func (c *ActivitiesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "activityId": c.activityId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plusDomains.activities.get" call. -// Exactly one of *Activity or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Activity.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Activity.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Activity, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2913,17 +2302,17 @@ func (c *ActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Activity, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Activity{ ServerResponse: googleapi.ServerResponse{ @@ -2936,35 +2325,7 @@ func (c *ActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Activity, error) return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plusDomains.activities.get", - // "parameterOrder": [ - // "activityId" - // ], - // "parameters": { - // "activityId": { - // "description": "The ID of the activity to get.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "activities/{activityId}", - // "response": { - // "$ref": "Activity" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me", - // "https://www.googleapis.com/auth/plus.stream.read" - // ] - // } - -} - -// method id "plusDomains.activities.list": +} type ActivitiesListCall struct { s *Service @@ -2976,8 +2337,12 @@ type ActivitiesListCall struct { header_ http.Header } -// List: Shut down. See https://developers.google.com/+/api-shutdown for -// more details. +// List: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - collection: The collection of activities to list. +// - userId: The ID of the user to get activities for. The special value "me" +// can be used to indicate the authenticated user. func (r *ActivitiesService) List(userId string, collection string) *ActivitiesListCall { c := &ActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -2985,52 +2350,48 @@ func (r *ActivitiesService) List(userId string, collection string) *ActivitiesLi return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of activities to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// activities to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *ActivitiesListCall) MaxResults(maxResults int64) *ActivitiesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. func (c *ActivitiesListCall) PageToken(pageToken string) *ActivitiesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ActivitiesListCall) Fields(s ...googleapi.Field) *ActivitiesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ActivitiesListCall) IfNoneMatch(entityTag string) *ActivitiesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ActivitiesListCall) Context(ctx context.Context) *ActivitiesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ActivitiesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3039,12 +2400,7 @@ func (c *ActivitiesListCall) Header() http.Header { } func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3062,16 +2418,14 @@ func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plusDomains.activities.list" call. -// Exactly one of *ActivityFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ActivityFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ActivityFeed.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3079,17 +2433,17 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ActivityFeed{ ServerResponse: googleapi.ServerResponse{ @@ -3102,59 +2456,6 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, er return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plusDomains.activities.list", - // "parameterOrder": [ - // "userId", - // "collection" - // ], - // "parameters": { - // "collection": { - // "description": "The collection of activities to list.", - // "enum": [ - // "user" - // ], - // "enumDescriptions": [ - // "All activities created by the specified user that the authenticated user is authorized to view." - // ], - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "20", - // "description": "The maximum number of activities to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "100", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "description": "The ID of the user to get activities for. The special value \"me\" can be used to indicate the authenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "people/{userId}/activities/{collection}", - // "response": { - // "$ref": "ActivityFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me", - // "https://www.googleapis.com/auth/plus.stream.read" - // ] - // } - } // Pages invokes f for each page of results. @@ -3162,7 +2463,7 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, er // The provided context supersedes any context provided to the Context method. func (c *ActivitiesListCall) Pages(ctx context.Context, f func(*ActivityFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3178,8 +2479,6 @@ func (c *ActivitiesListCall) Pages(ctx context.Context, f func(*ActivityFeed) er } } -// method id "plusDomains.audiences.list": - type AudiencesListCall struct { s *Service userId string @@ -3189,60 +2488,59 @@ type AudiencesListCall struct { header_ http.Header } -// List: Shut down. See https://developers.google.com/+/api-shutdown for -// more details. +// List: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - userId: The ID of the user to get audiences for. The special value "me" +// can be used to indicate the authenticated user. func (r *AudiencesService) List(userId string) *AudiencesListCall { c := &AudiencesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of circles to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// circles to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *AudiencesListCall) MaxResults(maxResults int64) *AudiencesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. func (c *AudiencesListCall) PageToken(pageToken string) *AudiencesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *AudiencesListCall) Fields(s ...googleapi.Field) *AudiencesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *AudiencesListCall) IfNoneMatch(entityTag string) *AudiencesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *AudiencesListCall) Context(ctx context.Context) *AudiencesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *AudiencesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3251,12 +2549,7 @@ func (c *AudiencesListCall) Header() http.Header { } func (c *AudiencesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3273,16 +2566,14 @@ func (c *AudiencesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plusDomains.audiences.list" call. -// Exactly one of *AudiencesFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *AudiencesFeed.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *AudiencesFeed.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *AudiencesListCall) Do(opts ...googleapi.CallOption) (*AudiencesFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3290,17 +2581,17 @@ func (c *AudiencesListCall) Do(opts ...googleapi.CallOption) (*AudiencesFeed, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &AudiencesFeed{ ServerResponse: googleapi.ServerResponse{ @@ -3313,46 +2604,6 @@ func (c *AudiencesListCall) Do(opts ...googleapi.CallOption) (*AudiencesFeed, er return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plusDomains.audiences.list", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "maxResults": { - // "default": "20", - // "description": "The maximum number of circles to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "100", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "description": "The ID of the user to get audiences for. The special value \"me\" can be used to indicate the authenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "people/{userId}/audiences", - // "response": { - // "$ref": "AudiencesFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.circles.read", - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - } // Pages invokes f for each page of results. @@ -3360,7 +2611,7 @@ func (c *AudiencesListCall) Do(opts ...googleapi.CallOption) (*AudiencesFeed, er // The provided context supersedes any context provided to the Context method. func (c *AudiencesListCall) Pages(ctx context.Context, f func(*AudiencesFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3376,8 +2627,6 @@ func (c *AudiencesListCall) Pages(ctx context.Context, f func(*AudiencesFeed) er } } -// method id "plusDomains.circles.list": - type CirclesListCall struct { s *Service userId string @@ -3387,60 +2636,59 @@ type CirclesListCall struct { header_ http.Header } -// List: Shut down. See https://developers.google.com/+/api-shutdown for -// more details. +// List: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - userId: The ID of the user to get circles for. The special value "me" can +// be used to indicate the authenticated user. func (r *CirclesService) List(userId string) *CirclesListCall { c := &CirclesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of circles to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// circles to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *CirclesListCall) MaxResults(maxResults int64) *CirclesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. func (c *CirclesListCall) PageToken(pageToken string) *CirclesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CirclesListCall) Fields(s ...googleapi.Field) *CirclesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CirclesListCall) IfNoneMatch(entityTag string) *CirclesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CirclesListCall) Context(ctx context.Context) *CirclesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CirclesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3449,12 +2697,7 @@ func (c *CirclesListCall) Header() http.Header { } func (c *CirclesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3471,16 +2714,14 @@ func (c *CirclesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plusDomains.circles.list" call. -// Exactly one of *CircleFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CircleFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CircleFeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CirclesListCall) Do(opts ...googleapi.CallOption) (*CircleFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3488,17 +2729,17 @@ func (c *CirclesListCall) Do(opts ...googleapi.CallOption) (*CircleFeed, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CircleFeed{ ServerResponse: googleapi.ServerResponse{ @@ -3511,46 +2752,6 @@ func (c *CirclesListCall) Do(opts ...googleapi.CallOption) (*CircleFeed, error) return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plusDomains.circles.list", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "maxResults": { - // "default": "20", - // "description": "The maximum number of circles to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "100", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "description": "The ID of the user to get circles for. The special value \"me\" can be used to indicate the authenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "people/{userId}/circles", - // "response": { - // "$ref": "CircleFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.circles.read", - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - } // Pages invokes f for each page of results. @@ -3558,7 +2759,7 @@ func (c *CirclesListCall) Do(opts ...googleapi.CallOption) (*CircleFeed, error) // The provided context supersedes any context provided to the Context method. func (c *CirclesListCall) Pages(ctx context.Context, f func(*CircleFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3574,8 +2775,6 @@ func (c *CirclesListCall) Pages(ctx context.Context, f func(*CircleFeed) error) } } -// method id "plusDomains.comments.get": - type CommentsGetCall struct { s *Service commentId string @@ -3585,8 +2784,10 @@ type CommentsGetCall struct { header_ http.Header } -// Get: Shut down. See https://developers.google.com/+/api-shutdown for -// more details. +// Get: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - commentId: The ID of the comment to get. func (r *CommentsService) Get(commentId string) *CommentsGetCall { c := &CommentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.commentId = commentId @@ -3594,33 +2795,29 @@ func (r *CommentsService) Get(commentId string) *CommentsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CommentsGetCall) Fields(s ...googleapi.Field) *CommentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CommentsGetCall) IfNoneMatch(entityTag string) *CommentsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CommentsGetCall) Context(ctx context.Context) *CommentsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CommentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3629,12 +2826,7 @@ func (c *CommentsGetCall) Header() http.Header { } func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3651,16 +2843,14 @@ func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "commentId": c.commentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plusDomains.comments.get" call. -// Exactly one of *Comment or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Comment.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Comment.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3668,17 +2858,17 @@ func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Comment{ ServerResponse: googleapi.ServerResponse{ @@ -3691,34 +2881,7 @@ func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error) { return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plusDomains.comments.get", - // "parameterOrder": [ - // "commentId" - // ], - // "parameters": { - // "commentId": { - // "description": "The ID of the comment to get.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "comments/{commentId}", - // "response": { - // "$ref": "Comment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.stream.read" - // ] - // } - -} - -// method id "plusDomains.comments.list": +} type CommentsListCall struct { s *Service @@ -3729,34 +2892,36 @@ type CommentsListCall struct { header_ http.Header } -// List: Shut down. See https://developers.google.com/+/api-shutdown for -// more details. +// List: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - activityId: The ID of the activity to get comments for. func (r *CommentsService) List(activityId string) *CommentsListCall { c := &CommentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.activityId = activityId return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of comments to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// comments to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *CommentsListCall) MaxResults(maxResults int64) *CommentsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. func (c *CommentsListCall) PageToken(pageToken string) *CommentsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// SortOrder sets the optional parameter "sortOrder": The order in which -// to sort the list of comments. +// SortOrder sets the optional parameter "sortOrder": The order in which to +// sort the list of comments. // // Possible values: // @@ -3768,33 +2933,29 @@ func (c *CommentsListCall) SortOrder(sortOrder string) *CommentsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CommentsListCall) Fields(s ...googleapi.Field) *CommentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CommentsListCall) IfNoneMatch(entityTag string) *CommentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CommentsListCall) Context(ctx context.Context) *CommentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CommentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3803,12 +2964,7 @@ func (c *CommentsListCall) Header() http.Header { } func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3825,16 +2981,14 @@ func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "activityId": c.activityId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plusDomains.comments.list" call. -// Exactly one of *CommentFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *CommentFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *CommentFeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3842,17 +2996,17 @@ func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentFeed, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CommentFeed{ ServerResponse: googleapi.ServerResponse{ @@ -3865,59 +3019,6 @@ func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentFeed, error return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plusDomains.comments.list", - // "parameterOrder": [ - // "activityId" - // ], - // "parameters": { - // "activityId": { - // "description": "The ID of the activity to get comments for.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "20", - // "description": "The maximum number of comments to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // }, - // "sortOrder": { - // "default": "ascending", - // "description": "The order in which to sort the list of comments.", - // "enum": [ - // "ascending", - // "descending" - // ], - // "enumDescriptions": [ - // "Sort oldest comments first.", - // "Sort newest comments first." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "activities/{activityId}/comments", - // "response": { - // "$ref": "CommentFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.stream.read" - // ] - // } - } // Pages invokes f for each page of results. @@ -3925,7 +3026,7 @@ func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentFeed, error // The provided context supersedes any context provided to the Context method. func (c *CommentsListCall) Pages(ctx context.Context, f func(*CommentFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3941,8 +3042,6 @@ func (c *CommentsListCall) Pages(ctx context.Context, f func(*CommentFeed) error } } -// method id "plusDomains.media.insert": - type MediaInsertCall struct { s *Service userId string @@ -3954,8 +3053,11 @@ type MediaInsertCall struct { header_ http.Header } -// Insert: Shut down. See https://developers.google.com/+/api-shutdown -// for more details. +// Insert: Shut down. See https://developers.google.com/+/api-shutdown for more +// details. +// +// - collection: . +// - userId: The ID of the user to create the activity on behalf of. func (r *MediaService) Insert(userId string, collection string, media *Media) *MediaInsertCall { c := &MediaInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -3964,54 +3066,51 @@ func (r *MediaService) Insert(userId string, collection string, media *Media) *M return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *MediaInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaInsertCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *MediaInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *MediaInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MediaInsertCall) Fields(s ...googleapi.Field) *MediaInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *MediaInsertCall) Context(ctx context.Context) *MediaInsertCall { @@ -4019,8 +3118,8 @@ func (c *MediaInsertCall) Context(ctx context.Context) *MediaInsertCall { return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MediaInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4029,18 +3128,12 @@ func (c *MediaInsertCall) Header() http.Header { } func (c *MediaInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.media) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "people/{userId}/media/{collection}") @@ -4065,16 +3158,14 @@ func (c *MediaInsertCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plusDomains.media.insert" call. -// Exactly one of *Media or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Media.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Media.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *MediaInsertCall) Do(opts ...googleapi.CallOption) (*Media, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4082,17 +3173,17 @@ func (c *MediaInsertCall) Do(opts ...googleapi.CallOption) (*Media, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -4108,7 +3199,7 @@ func (c *MediaInsertCall) Do(opts ...googleapi.CallOption) (*Media, error) { } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &Media{ @@ -4122,67 +3213,7 @@ func (c *MediaInsertCall) Do(opts ...googleapi.CallOption) (*Media, error) { return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "POST", - // "id": "plusDomains.media.insert", - // "mediaUpload": { - // "accept": [ - // "image/*", - // "video/*" - // ], - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/plusDomains/v1/people/{userId}/media/{collection}" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/plusDomains/v1/people/{userId}/media/{collection}" - // } - // } - // }, - // "parameterOrder": [ - // "userId", - // "collection" - // ], - // "parameters": { - // "collection": { - // "enum": [ - // "cloud" - // ], - // "enumDescriptions": [ - // "Upload the media to share on Google+." - // ], - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "userId": { - // "description": "The ID of the user to create the activity on behalf of.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "people/{userId}/media/{collection}", - // "request": { - // "$ref": "Media" - // }, - // "response": { - // "$ref": "Media" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me", - // "https://www.googleapis.com/auth/plus.media.upload" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "plusDomains.people.get": +} type PeopleGetCall struct { s *Service @@ -4194,6 +3225,9 @@ type PeopleGetCall struct { } // Get: Get a person's profile. +// +// - userId: The ID of the person to get the profile for. The special value +// "me" can be used to indicate the authenticated user. func (r *PeopleService) Get(userId string) *PeopleGetCall { c := &PeopleGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -4201,33 +3235,29 @@ func (r *PeopleService) Get(userId string) *PeopleGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PeopleGetCall) Fields(s ...googleapi.Field) *PeopleGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PeopleGetCall) IfNoneMatch(entityTag string) *PeopleGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PeopleGetCall) Context(ctx context.Context) *PeopleGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PeopleGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4236,12 +3266,7 @@ func (c *PeopleGetCall) Header() http.Header { } func (c *PeopleGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4258,16 +3283,14 @@ func (c *PeopleGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "userId": c.userId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plusDomains.people.get" call. -// Exactly one of *Person or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Person.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Person.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PeopleGetCall) Do(opts ...googleapi.CallOption) (*Person, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4275,17 +3298,17 @@ func (c *PeopleGetCall) Do(opts ...googleapi.CallOption) (*Person, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Person{ ServerResponse: googleapi.ServerResponse{ @@ -4298,37 +3321,7 @@ func (c *PeopleGetCall) Do(opts ...googleapi.CallOption) (*Person, error) { return nil, err } return ret, nil - // { - // "description": "Get a person's profile.", - // "httpMethod": "GET", - // "id": "plusDomains.people.get", - // "parameterOrder": [ - // "userId" - // ], - // "parameters": { - // "userId": { - // "description": "The ID of the person to get the profile for. The special value \"me\" can be used to indicate the authenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "people/{userId}", - // "response": { - // "$ref": "Person" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me", - // "https://www.googleapis.com/auth/plus.profiles.read", - // "https://www.googleapis.com/auth/userinfo.email", - // "https://www.googleapis.com/auth/userinfo.profile" - // ] - // } - -} - -// method id "plusDomains.people.list": +} type PeopleListCall struct { s *Service @@ -4341,6 +3334,10 @@ type PeopleListCall struct { } // List: List all of the people in the specified collection. +// +// - collection: The collection of people to list. +// - userId: Get the collection of people for the person identified. Use "me" +// to indicate the authenticated user. func (r *PeopleService) List(userId string, collection string) *PeopleListCall { c := &PeopleListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.userId = userId @@ -4348,17 +3345,17 @@ func (r *PeopleService) List(userId string, collection string) *PeopleListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of people to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// people to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *PeopleListCall) MaxResults(maxResults int64) *PeopleListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// OrderBy sets the optional parameter "orderBy": The order to return -// people in. +// OrderBy sets the optional parameter "orderBy": The order to return people +// in. // // Possible values: // @@ -4369,43 +3366,39 @@ func (c *PeopleListCall) OrderBy(orderBy string) *PeopleListCall { return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. func (c *PeopleListCall) PageToken(pageToken string) *PeopleListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PeopleListCall) Fields(s ...googleapi.Field) *PeopleListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PeopleListCall) IfNoneMatch(entityTag string) *PeopleListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PeopleListCall) Context(ctx context.Context) *PeopleListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PeopleListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4414,12 +3407,7 @@ func (c *PeopleListCall) Header() http.Header { } func (c *PeopleListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4437,16 +3425,14 @@ func (c *PeopleListCall) doRequest(alt string) (*http.Response, error) { "userId": c.userId, "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plusDomains.people.list" call. -// Exactly one of *PeopleFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PeopleFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PeopleFeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PeopleListCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4454,17 +3440,17 @@ func (c *PeopleListCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PeopleFeed{ ServerResponse: googleapi.ServerResponse{ @@ -4477,72 +3463,6 @@ func (c *PeopleListCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { return nil, err } return ret, nil - // { - // "description": "List all of the people in the specified collection.", - // "httpMethod": "GET", - // "id": "plusDomains.people.list", - // "parameterOrder": [ - // "userId", - // "collection" - // ], - // "parameters": { - // "collection": { - // "description": "The collection of people to list.", - // "enum": [ - // "circled" - // ], - // "enumDescriptions": [ - // "The list of people who this user has added to one or more circles." - // ], - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "100", - // "description": "The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "100", - // "minimum": "1", - // "type": "integer" - // }, - // "orderBy": { - // "description": "The order to return people in.", - // "enum": [ - // "alphabetical", - // "best" - // ], - // "enumDescriptions": [ - // "Order the people by their display name.", - // "Order people based on the relevence to the viewer." - // ], - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // }, - // "userId": { - // "description": "Get the collection of people for the person identified. Use \"me\" to indicate the authenticated user.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "people/{userId}/people/{collection}", - // "response": { - // "$ref": "PeopleFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.circles.read", - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.me" - // ] - // } - } // Pages invokes f for each page of results. @@ -4550,7 +3470,7 @@ func (c *PeopleListCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { // The provided context supersedes any context provided to the Context method. func (c *PeopleListCall) Pages(ctx context.Context, f func(*PeopleFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4566,8 +3486,6 @@ func (c *PeopleListCall) Pages(ctx context.Context, f func(*PeopleFeed) error) e } } -// method id "plusDomains.people.listByActivity": - type PeopleListByActivityCall struct { s *Service activityId string @@ -4578,8 +3496,11 @@ type PeopleListByActivityCall struct { header_ http.Header } -// ListByActivity: Shut down. See -// https://developers.google.com/+/api-shutdown for more details. +// ListByActivity: Shut down. See https://developers.google.com/+/api-shutdown +// for more details. +// +// - activityId: The ID of the activity to get the list of people for. +// - collection: The collection of people to list. func (r *PeopleService) ListByActivity(activityId string, collection string) *PeopleListByActivityCall { c := &PeopleListByActivityCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.activityId = activityId @@ -4587,52 +3508,48 @@ func (r *PeopleService) ListByActivity(activityId string, collection string) *Pe return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of people to include in the response, which is used for -// paging. For any response, the actual number returned might be less -// than the specified maxResults. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// people to include in the response, which is used for paging. For any +// response, the actual number returned might be less than the specified +// maxResults. func (c *PeopleListByActivityCall) MaxResults(maxResults int64) *PeopleListByActivityCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": The continuation -// token, which is used to page through large result sets. To get the -// next page of results, set this parameter to the value of -// "nextPageToken" from the previous response. +// PageToken sets the optional parameter "pageToken": The continuation token, +// which is used to page through large result sets. To get the next page of +// results, set this parameter to the value of "nextPageToken" from the +// previous response. func (c *PeopleListByActivityCall) PageToken(pageToken string) *PeopleListByActivityCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PeopleListByActivityCall) Fields(s ...googleapi.Field) *PeopleListByActivityCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PeopleListByActivityCall) IfNoneMatch(entityTag string) *PeopleListByActivityCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PeopleListByActivityCall) Context(ctx context.Context) *PeopleListByActivityCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PeopleListByActivityCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4641,12 +3558,7 @@ func (c *PeopleListByActivityCall) Header() http.Header { } func (c *PeopleListByActivityCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4664,16 +3576,14 @@ func (c *PeopleListByActivityCall) doRequest(alt string) (*http.Response, error) "activityId": c.activityId, "collection": c.collection, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "plusDomains.people.listByActivity" call. -// Exactly one of *PeopleFeed or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *PeopleFeed.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PeopleFeed.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *PeopleListByActivityCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4681,17 +3591,17 @@ func (c *PeopleListByActivityCall) Do(opts ...googleapi.CallOption) (*PeopleFeed if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PeopleFeed{ ServerResponse: googleapi.ServerResponse{ @@ -4704,62 +3614,6 @@ func (c *PeopleListByActivityCall) Do(opts ...googleapi.CallOption) (*PeopleFeed return nil, err } return ret, nil - // { - // "description": "Shut down. See https://developers.google.com/+/api-shutdown for more details.", - // "httpMethod": "GET", - // "id": "plusDomains.people.listByActivity", - // "parameterOrder": [ - // "activityId", - // "collection" - // ], - // "parameters": { - // "activityId": { - // "description": "The ID of the activity to get the list of people for.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "collection": { - // "description": "The collection of people to list.", - // "enum": [ - // "plusoners", - // "resharers", - // "sharedto" - // ], - // "enumDescriptions": [ - // "List all people who have +1'd this activity.", - // "List all people who have reshared this activity.", - // "List all people who this activity was shared to." - // ], - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "default": "20", - // "description": "The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.", - // "format": "uint32", - // "location": "query", - // "maximum": "100", - // "minimum": "1", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "activities/{activityId}/people/{collection}", - // "response": { - // "$ref": "PeopleFeed" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/plus.login", - // "https://www.googleapis.com/auth/plus.stream.read" - // ] - // } - } // Pages invokes f for each page of results. @@ -4767,7 +3621,7 @@ func (c *PeopleListByActivityCall) Do(opts ...googleapi.CallOption) (*PeopleFeed // The provided context supersedes any context provided to the Context method. func (c *PeopleListByActivityCall) Pages(ctx context.Context, f func(*PeopleFeed) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/policyanalyzer/v1/policyanalyzer-gen.go b/policyanalyzer/v1/policyanalyzer-gen.go index bf42d4fff40..c3b16c3c389 100644 --- a/policyanalyzer/v1/policyanalyzer-gen.go +++ b/policyanalyzer/v1/policyanalyzer-gen.go @@ -488,7 +488,7 @@ func (c *FoldersLocationsActivityTypesActivitiesQueryCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policyanalyzer.folders.locations.activityTypes.activities.query" call. @@ -654,7 +654,7 @@ func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policyanalyzer.organizations.locations.activityTypes.activities.query" call. @@ -820,7 +820,7 @@ func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policyanalyzer.projects.locations.activityTypes.activities.query" call. diff --git a/policyanalyzer/v1beta1/policyanalyzer-gen.go b/policyanalyzer/v1beta1/policyanalyzer-gen.go index b323900aa35..45c29315edb 100644 --- a/policyanalyzer/v1beta1/policyanalyzer-gen.go +++ b/policyanalyzer/v1beta1/policyanalyzer-gen.go @@ -481,7 +481,7 @@ func (c *FoldersLocationsActivityTypesActivitiesQueryCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policyanalyzer.folders.locations.activityTypes.activities.query" call. @@ -642,7 +642,7 @@ func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policyanalyzer.organizations.locations.activityTypes.activities.query" call. @@ -803,7 +803,7 @@ func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policyanalyzer.projects.locations.activityTypes.activities.query" call. diff --git a/policysimulator/v1/policysimulator-gen.go b/policysimulator/v1/policysimulator-gen.go index 1912ca60e84..a6cf938f60c 100644 --- a/policysimulator/v1/policysimulator-gen.go +++ b/policysimulator/v1/policysimulator-gen.go @@ -2377,7 +2377,7 @@ func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.orgPolicyViolationsPreviews.operations.get" call. @@ -2481,7 +2481,7 @@ func (c *FoldersLocationsReplaysCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.create" call. @@ -2595,7 +2595,7 @@ func (c *FoldersLocationsReplaysGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.get" call. @@ -2705,7 +2705,7 @@ func (c *FoldersLocationsReplaysOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.operations.get" call. @@ -2834,7 +2834,7 @@ func (c *FoldersLocationsReplaysOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.operations.list" call. @@ -2985,7 +2985,7 @@ func (c *FoldersLocationsReplaysResultsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.results.list" call. @@ -3116,7 +3116,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.operations.get" call. @@ -3245,7 +3245,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.operations.list" call. @@ -3376,7 +3376,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get" call. @@ -3480,7 +3480,7 @@ func (c *OrganizationsLocationsReplaysCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.create" call. @@ -3594,7 +3594,7 @@ func (c *OrganizationsLocationsReplaysGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.get" call. @@ -3704,7 +3704,7 @@ func (c *OrganizationsLocationsReplaysOperationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.operations.get" call. @@ -3833,7 +3833,7 @@ func (c *OrganizationsLocationsReplaysOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.operations.list" call. @@ -3984,7 +3984,7 @@ func (c *OrganizationsLocationsReplaysResultsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.results.list" call. @@ -4115,7 +4115,7 @@ func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.orgPolicyViolationsPreviews.operations.get" call. @@ -4219,7 +4219,7 @@ func (c *ProjectsLocationsReplaysCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.create" call. @@ -4333,7 +4333,7 @@ func (c *ProjectsLocationsReplaysGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.get" call. @@ -4443,7 +4443,7 @@ func (c *ProjectsLocationsReplaysOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.operations.get" call. @@ -4572,7 +4572,7 @@ func (c *ProjectsLocationsReplaysOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.operations.list" call. @@ -4723,7 +4723,7 @@ func (c *ProjectsLocationsReplaysResultsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.results.list" call. diff --git a/policysimulator/v1alpha/policysimulator-gen.go b/policysimulator/v1alpha/policysimulator-gen.go index e7e17a9fd81..2e6b67aded9 100644 --- a/policysimulator/v1alpha/policysimulator-gen.go +++ b/policysimulator/v1alpha/policysimulator-gen.go @@ -2674,7 +2674,7 @@ func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.orgPolicyViolationsPreviews.operations.get" call. @@ -2778,7 +2778,7 @@ func (c *FoldersLocationsReplaysCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.create" call. @@ -2892,7 +2892,7 @@ func (c *FoldersLocationsReplaysGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.get" call. @@ -3024,7 +3024,7 @@ func (c *FoldersLocationsReplaysListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.list" call. @@ -3155,7 +3155,7 @@ func (c *FoldersLocationsReplaysOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.operations.get" call. @@ -3284,7 +3284,7 @@ func (c *FoldersLocationsReplaysOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.operations.list" call. @@ -3435,7 +3435,7 @@ func (c *FoldersLocationsReplaysResultsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.results.list" call. @@ -3566,7 +3566,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.operations.get" call. @@ -3695,7 +3695,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.operations.list" call. @@ -3831,7 +3831,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.create" call. @@ -3938,7 +3938,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsGenerateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.generate" call. @@ -4048,7 +4048,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.get" call. @@ -4178,7 +4178,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.list" call. @@ -4309,7 +4309,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get" call. @@ -4439,7 +4439,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolationsLis googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.orgPolicyViolations.list" call. @@ -4564,7 +4564,7 @@ func (c *OrganizationsLocationsReplaysCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.create" call. @@ -4678,7 +4678,7 @@ func (c *OrganizationsLocationsReplaysGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.get" call. @@ -4810,7 +4810,7 @@ func (c *OrganizationsLocationsReplaysListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.list" call. @@ -4941,7 +4941,7 @@ func (c *OrganizationsLocationsReplaysOperationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.operations.get" call. @@ -5070,7 +5070,7 @@ func (c *OrganizationsLocationsReplaysOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.operations.list" call. @@ -5221,7 +5221,7 @@ func (c *OrganizationsLocationsReplaysResultsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.results.list" call. @@ -5352,7 +5352,7 @@ func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.orgPolicyViolationsPreviews.operations.get" call. @@ -5456,7 +5456,7 @@ func (c *ProjectsLocationsReplaysCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.create" call. @@ -5570,7 +5570,7 @@ func (c *ProjectsLocationsReplaysGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.get" call. @@ -5702,7 +5702,7 @@ func (c *ProjectsLocationsReplaysListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.list" call. @@ -5833,7 +5833,7 @@ func (c *ProjectsLocationsReplaysOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.operations.get" call. @@ -5962,7 +5962,7 @@ func (c *ProjectsLocationsReplaysOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.operations.list" call. @@ -6113,7 +6113,7 @@ func (c *ProjectsLocationsReplaysResultsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.results.list" call. diff --git a/policysimulator/v1beta/policysimulator-gen.go b/policysimulator/v1beta/policysimulator-gen.go index a25e551f19a..84b8839943e 100644 --- a/policysimulator/v1beta/policysimulator-gen.go +++ b/policysimulator/v1beta/policysimulator-gen.go @@ -2674,7 +2674,7 @@ func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.orgPolicyViolationsPreviews.operations.get" call. @@ -2778,7 +2778,7 @@ func (c *FoldersLocationsReplaysCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.create" call. @@ -2892,7 +2892,7 @@ func (c *FoldersLocationsReplaysGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.get" call. @@ -3024,7 +3024,7 @@ func (c *FoldersLocationsReplaysListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.list" call. @@ -3155,7 +3155,7 @@ func (c *FoldersLocationsReplaysOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.operations.get" call. @@ -3284,7 +3284,7 @@ func (c *FoldersLocationsReplaysOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.operations.list" call. @@ -3435,7 +3435,7 @@ func (c *FoldersLocationsReplaysResultsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.results.list" call. @@ -3566,7 +3566,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.operations.get" call. @@ -3695,7 +3695,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.operations.list" call. @@ -3831,7 +3831,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.create" call. @@ -3938,7 +3938,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsGenerateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.generate" call. @@ -4048,7 +4048,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.get" call. @@ -4178,7 +4178,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.list" call. @@ -4309,7 +4309,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get" call. @@ -4439,7 +4439,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOrgPolicyViolationsLis googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.orgPolicyViolations.list" call. @@ -4564,7 +4564,7 @@ func (c *OrganizationsLocationsReplaysCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.create" call. @@ -4678,7 +4678,7 @@ func (c *OrganizationsLocationsReplaysGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.get" call. @@ -4810,7 +4810,7 @@ func (c *OrganizationsLocationsReplaysListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.list" call. @@ -4941,7 +4941,7 @@ func (c *OrganizationsLocationsReplaysOperationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.operations.get" call. @@ -5070,7 +5070,7 @@ func (c *OrganizationsLocationsReplaysOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.operations.list" call. @@ -5221,7 +5221,7 @@ func (c *OrganizationsLocationsReplaysResultsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.results.list" call. @@ -5352,7 +5352,7 @@ func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.orgPolicyViolationsPreviews.operations.get" call. @@ -5456,7 +5456,7 @@ func (c *ProjectsLocationsReplaysCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.create" call. @@ -5570,7 +5570,7 @@ func (c *ProjectsLocationsReplaysGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.get" call. @@ -5702,7 +5702,7 @@ func (c *ProjectsLocationsReplaysListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.list" call. @@ -5833,7 +5833,7 @@ func (c *ProjectsLocationsReplaysOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.operations.get" call. @@ -5962,7 +5962,7 @@ func (c *ProjectsLocationsReplaysOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.operations.list" call. @@ -6113,7 +6113,7 @@ func (c *ProjectsLocationsReplaysResultsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.results.list" call. diff --git a/policysimulator/v1beta1/policysimulator-gen.go b/policysimulator/v1beta1/policysimulator-gen.go index 5af6abea38e..ce31d6bea36 100644 --- a/policysimulator/v1beta1/policysimulator-gen.go +++ b/policysimulator/v1beta1/policysimulator-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/iam/docs/simulating-access // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // policysimulatorService, err := policysimulator.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // policysimulatorService, err := policysimulator.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // policysimulatorService, err := policysimulator.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package policysimulator // import "google.golang.org/api/policysimulator/v1beta1" import ( @@ -71,17 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "policysimulator:v1beta1" const apiName = "policysimulator" const apiVersion = "v1beta1" const basePath = "https://policysimulator.googleapis.com/" +const basePathTemplate = "https://policysimulator.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://policysimulator.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -93,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -362,25 +379,22 @@ type ProjectsLocationsReplaysOperationsService struct { s *Service } -// GoogleCloudPolicysimulatorV1Replay: A resource describing a `Replay`, -// or simulation. +// GoogleCloudPolicysimulatorV1Replay: A resource describing a `Replay`, or +// simulation. type GoogleCloudPolicysimulatorV1Replay struct { // Config: Required. The configuration used for the `Replay`. Config *GoogleCloudPolicysimulatorV1ReplayConfig `json:"config,omitempty"` - // Name: Output only. The resource name of the `Replay`, which has the // following format: - // `{projects|folders|organizations}/{resource-id}/locations/global/repla - // ys/{replay-id}`, where `{resource-id}` is the ID of the project, - // folder, or organization that owns the Replay. Example: - // `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d - // 7d-8e03-479ce1833c36` + // `{projects|folders|organizations}/{resource-id}/locations/global/replays/{rep + // lay-id}`, where `{resource-id}` is the ID of the project, folder, or + // organization that owns the Replay. Example: + // `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03 + // -479ce1833c36` Name string `json:"name,omitempty"` - - // ResultsSummary: Output only. Summary statistics about the replayed - // log entries. + // ResultsSummary: Output only. Summary statistics about the replayed log + // entries. ResultsSummary *GoogleCloudPolicysimulatorV1ReplayResultsSummary `json:"resultsSummary,omitempty"` - // State: Output only. The current state of the `Replay`. // // Possible values: @@ -390,174 +404,138 @@ type GoogleCloudPolicysimulatorV1Replay struct { // "SUCCEEDED" - The `Replay` has successfully completed. // "FAILED" - The `Replay` has finished with an error. State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPolicysimulatorV1Replay) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPolicysimulatorV1Replay) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPolicysimulatorV1Replay - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPolicysimulatorV1ReplayConfig: The configuration used for -// a Replay. +// GoogleCloudPolicysimulatorV1ReplayConfig: The configuration used for a +// Replay. type GoogleCloudPolicysimulatorV1ReplayConfig struct { // LogSource: The logs to use as input for the Replay. // // Possible values: - // "LOG_SOURCE_UNSPECIFIED" - An unspecified log source. If the log - // source is unspecified, the Replay defaults to using - // `RECENT_ACCESSES`. - // "RECENT_ACCESSES" - All access logs from the last 90 days. These - // logs may not include logs from the most recent 7 days. + // "LOG_SOURCE_UNSPECIFIED" - An unspecified log source. If the log source is + // unspecified, the Replay defaults to using `RECENT_ACCESSES`. + // "RECENT_ACCESSES" - All access logs from the last 90 days. These logs may + // not include logs from the most recent 7 days. LogSource string `json:"logSource,omitempty"` - - // PolicyOverlay: A mapping of the resources that you want to simulate - // policies for and the policies that you want to simulate. Keys are the - // full resource names for the resources. For example, - // `//cloudresourcemanager.googleapis.com/projects/my-project`. For - // examples of full resource names for Google Cloud services, see - // https://cloud.google.com/iam/help/troubleshooter/full-resource-names. - // Values are Policy objects representing the policies that you want to - // simulate. Replays automatically take into account any IAM policies - // inherited through the resource hierarchy, and any policies set on - // descendant resources. You do not need to include these policies in - // the policy overlay. + // PolicyOverlay: A mapping of the resources that you want to simulate policies + // for and the policies that you want to simulate. Keys are the full resource + // names for the resources. For example, + // `//cloudresourcemanager.googleapis.com/projects/my-project`. For examples of + // full resource names for Google Cloud services, see + // https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values + // are Policy objects representing the policies that you want to simulate. + // Replays automatically take into account any IAM policies inherited through + // the resource hierarchy, and any policies set on descendant resources. You do + // not need to include these policies in the policy overlay. PolicyOverlay map[string]GoogleIamV1Policy `json:"policyOverlay,omitempty"` - // ForceSendFields is a list of field names (e.g. "LogSource") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogSource") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LogSource") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPolicysimulatorV1ReplayConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPolicysimulatorV1ReplayConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPolicysimulatorV1ReplayConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPolicysimulatorV1ReplayOperationMetadata: Metadata about a -// Replay operation. +// GoogleCloudPolicysimulatorV1ReplayOperationMetadata: Metadata about a Replay +// operation. type GoogleCloudPolicysimulatorV1ReplayOperationMetadata struct { // StartTime: Time when the request was received. StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "StartTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StartTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StartTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPolicysimulatorV1ReplayOperationMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPolicysimulatorV1ReplayOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPolicysimulatorV1ReplayOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPolicysimulatorV1ReplayResultsSummary: Summary statistics -// about the replayed log entries. +// GoogleCloudPolicysimulatorV1ReplayResultsSummary: Summary statistics about +// the replayed log entries. type GoogleCloudPolicysimulatorV1ReplayResultsSummary struct { // DifferenceCount: The number of replayed log entries with a difference // between baseline and simulated policies. DifferenceCount int64 `json:"differenceCount,omitempty"` - // ErrorCount: The number of log entries that could not be replayed. ErrorCount int64 `json:"errorCount,omitempty"` - // LogCount: The total number of log entries replayed. LogCount int64 `json:"logCount,omitempty"` - // NewestDate: The date of the newest log entry replayed. NewestDate *GoogleTypeDate `json:"newestDate,omitempty"` - // OldestDate: The date of the oldest log entry replayed. OldestDate *GoogleTypeDate `json:"oldestDate,omitempty"` - // UnchangedCount: The number of replayed log entries with no difference // between baseline and simulated policies. UnchangedCount int64 `json:"unchangedCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "DifferenceCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DifferenceCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DifferenceCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPolicysimulatorV1ReplayResultsSummary) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPolicysimulatorV1ReplayResultsSummary) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPolicysimulatorV1ReplayResultsSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPolicysimulatorV1beta1Replay: A resource describing a -// `Replay`, or simulation. +// GoogleCloudPolicysimulatorV1beta1Replay: A resource describing a `Replay`, +// or simulation. type GoogleCloudPolicysimulatorV1beta1Replay struct { // Config: Required. The configuration used for the `Replay`. Config *GoogleCloudPolicysimulatorV1beta1ReplayConfig `json:"config,omitempty"` - // Name: Output only. The resource name of the `Replay`, which has the // following format: - // `{projects|folders|organizations}/{resource-id}/locations/global/repla - // ys/{replay-id}`, where `{resource-id}` is the ID of the project, - // folder, or organization that owns the Replay. Example: - // `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d - // 7d-8e03-479ce1833c36` + // `{projects|folders|organizations}/{resource-id}/locations/global/replays/{rep + // lay-id}`, where `{resource-id}` is the ID of the project, folder, or + // organization that owns the Replay. Example: + // `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03 + // -479ce1833c36` Name string `json:"name,omitempty"` - - // ResultsSummary: Output only. Summary statistics about the replayed - // log entries. + // ResultsSummary: Output only. Summary statistics about the replayed log + // entries. ResultsSummary *GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary `json:"resultsSummary,omitempty"` - // State: Output only. The current state of the `Replay`. // // Possible values: @@ -567,219 +545,172 @@ type GoogleCloudPolicysimulatorV1beta1Replay struct { // "SUCCEEDED" - The `Replay` has successfully completed. // "FAILED" - The `Replay` has finished with an error. State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPolicysimulatorV1beta1Replay) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPolicysimulatorV1beta1Replay) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPolicysimulatorV1beta1Replay - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPolicysimulatorV1beta1ReplayConfig: The configuration used -// for a Replay. +// GoogleCloudPolicysimulatorV1beta1ReplayConfig: The configuration used for a +// Replay. type GoogleCloudPolicysimulatorV1beta1ReplayConfig struct { // LogSource: The logs to use as input for the Replay. // // Possible values: - // "LOG_SOURCE_UNSPECIFIED" - An unspecified log source. If the log - // source is unspecified, the Replay defaults to using - // `RECENT_ACCESSES`. - // "RECENT_ACCESSES" - All access logs from the last 90 days. These - // logs may not include logs from the most recent 7 days. + // "LOG_SOURCE_UNSPECIFIED" - An unspecified log source. If the log source is + // unspecified, the Replay defaults to using `RECENT_ACCESSES`. + // "RECENT_ACCESSES" - All access logs from the last 90 days. These logs may + // not include logs from the most recent 7 days. LogSource string `json:"logSource,omitempty"` - - // PolicyOverlay: A mapping of the resources that you want to simulate - // policies for and the policies that you want to simulate. Keys are the - // full resource names for the resources. For example, - // `//cloudresourcemanager.googleapis.com/projects/my-project`. For - // examples of full resource names for Google Cloud services, see - // https://cloud.google.com/iam/help/troubleshooter/full-resource-names. - // Values are Policy objects representing the policies that you want to - // simulate. Replays automatically take into account any IAM policies - // inherited through the resource hierarchy, and any policies set on - // descendant resources. You do not need to include these policies in - // the policy overlay. + // PolicyOverlay: A mapping of the resources that you want to simulate policies + // for and the policies that you want to simulate. Keys are the full resource + // names for the resources. For example, + // `//cloudresourcemanager.googleapis.com/projects/my-project`. For examples of + // full resource names for Google Cloud services, see + // https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values + // are Policy objects representing the policies that you want to simulate. + // Replays automatically take into account any IAM policies inherited through + // the resource hierarchy, and any policies set on descendant resources. You do + // not need to include these policies in the policy overlay. PolicyOverlay map[string]GoogleIamV1Policy `json:"policyOverlay,omitempty"` - // ForceSendFields is a list of field names (e.g. "LogSource") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogSource") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LogSource") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPolicysimulatorV1beta1ReplayConfig) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPolicysimulatorV1beta1ReplayConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPolicysimulatorV1beta1ReplayConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata: Metadata -// about a Replay operation. +// GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata: Metadata about a +// Replay operation. type GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata struct { // StartTime: Time when the request was received. StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "StartTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StartTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StartTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary: Summary -// statistics about the replayed log entries. +// GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary: Summary statistics +// about the replayed log entries. type GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary struct { // DifferenceCount: The number of replayed log entries with a difference // between baseline and simulated policies. DifferenceCount int64 `json:"differenceCount,omitempty"` - // ErrorCount: The number of log entries that could not be replayed. ErrorCount int64 `json:"errorCount,omitempty"` - // LogCount: The total number of log entries replayed. LogCount int64 `json:"logCount,omitempty"` - // NewestDate: The date of the newest log entry replayed. NewestDate *GoogleTypeDate `json:"newestDate,omitempty"` - // OldestDate: The date of the oldest log entry replayed. OldestDate *GoogleTypeDate `json:"oldestDate,omitempty"` - // UnchangedCount: The number of replayed log entries with no difference // between baseline and simulated policies. UnchangedCount int64 `json:"unchangedCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "DifferenceCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DifferenceCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DifferenceCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary) MarshalJSON() ([]byte, error) { +func (s GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleIamV1AuditConfig: Specifies the audit configuration for a -// service. The configuration determines which permission types are -// logged, and what identities, if any, are exempted from logging. An -// AuditConfig must have one or more AuditLogConfigs. If there are -// AuditConfigs for both `allServices` and a specific service, the union -// of the two AuditConfigs is used for that service: the log_types -// specified in each AuditConfig are enabled, and the exempted_members -// in each AuditLogConfig are exempted. Example Policy with multiple -// AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": -// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { -// "log_type": "ADMIN_READ" } ] }, { "service": -// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": -// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy -// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts -// `jose@example.com` from DATA_READ logging, and `aliya@example.com` -// from DATA_WRITE logging. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1AuditConfig: Specifies the audit configuration for a service. The +// configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +// and a specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted. Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts `jose@example.com` from DATA_READ logging, and +// `aliya@example.com` from DATA_WRITE logging. type GoogleIamV1AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit logging. - // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - // `allServices` is a special value that covers all services. + // Service: Specifies a service that will be enabled for audit logging. For + // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` + // is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1AuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1AuditLogConfig: Provides the configuration for logging a -// type of permissions. Example: { "audit_log_configs": [ { "log_type": -// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { -// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and -// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ -// logging. +// GoogleIamV1AuditLogConfig: Provides the configuration for logging a type of +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. type GoogleIamV1AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of permission. Follows the same format of - // Binding.members. + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. // // Possible values: @@ -788,214 +719,179 @@ type GoogleIamV1AuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1AuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1Binding: Associates `members`, or principals, with a -// `role`. +// GoogleIamV1Binding: Associates `members`, or principals, with a `role`. type GoogleIamV1Binding struct { // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the - // current request. If the condition evaluates to `false`, then this - // binding does not apply to the current request. However, a different - // role binding might grant the same role to one or more of the - // principals in this binding. To learn which resources support - // conditions in their IAM policies, see the IAM documentation + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the principals in this binding. To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *GoogleTypeExpr `json:"condition,omitempty"` - - // Members: Specifies the principals requesting access for a Google - // Cloud resource. `members` can have the following values: * - // `allUsers`: A special identifier that represents anyone who is on the - // internet; with or without a Google account. * - // `allAuthenticatedUsers`: A special identifier that represents anyone - // who is authenticated with a Google account or a service account. Does - // not include identities that come from external identity providers - // (IdPs) through identity federation. * `user:{emailid}`: An email + // Members: Specifies the principals requesting access for a Google Cloud + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. Does not include identities that come from external identity + // providers (IdPs) through identity federation. * `user:{emailid}`: An email // address that represents a specific Google account. For example, - // `alice@example.com` . * `serviceAccount:{emailid}`: An email address - // that represents a Google service account. For example, + // `alice@example.com` . * `serviceAccount:{emailid}`: An email address that + // represents a Google service account. For example, // `my-other-app@appspot.gserviceaccount.com`. * - // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: - // An identifier for a Kubernetes service account + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An + // identifier for a Kubernetes service account // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). - // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. - // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * `domain:{domain}`: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, `google.com` or `example.com`. * - // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently - // deleted. For example, `alice@example.com?uid=123456789012345678901`. - // If the user is recovered, this value reverts to `user:{emailid}` and - // the recovered user retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus unique identifier) representing a service account that has been + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + // `group:{emailid}`: An email address that represents a Google group. For + // example, `admins@example.com`. * `domain:{domain}`: The G Suite domain + // (primary) that represents all the users of that domain. For example, + // `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has been + // recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is recovered, + // this value reverts to `user:{emailid}` and the recovered user retains the + // role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a service account that + // has been recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the + // service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + // address (plus unique identifier) representing a Google group that has been // recently deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: - // An email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is - // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. + // `admins@example.com?uid=123456789012345678901`. If the group is recovered, + // this value reverts to `group:{emailid}` and the recovered group retains the + // role in the binding. Members []string `json:"members,omitempty"` - - // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // Role: Role that is assigned to the list of `members`, or principals. For + // example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1Binding) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, -// which specifies access controls for Google Cloud resources. A -// `Policy` is a collection of `bindings`. A `binding` binds one or more -// `members`, or principals, to a single `role`. Principals can be user -// accounts, service accounts, Google groups, and domains (such as G -// Suite). A `role` is a named list of permissions; each `role` can be -// an IAM predefined role or a user-created custom role. For some types -// of Google Cloud resources, a `binding` can also specify a -// `condition`, which is a logical expression that allows access to a -// resource only if the expression evaluates to `true`. A condition can -// add constraints based on attributes of the request, the resource, or -// both. To learn which resources support conditions in their IAM + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members`, or +// principals, to a single `role`. Principals can be user accounts, service +// accounts, Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical expression that +// allows access to a resource only if the expression evaluates to `true`. A +// condition can add constraints based on attributes of the request, the +// resource, or both. To learn which resources support conditions in their IAM // policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type GoogleIamV1Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"` - - // Bindings: Associates a list of `members`, or principals, with a - // `role`. Optionally, may specify a `condition` that determines how and - // when the `bindings` are applied. Each of the `bindings` must contain - // at least one principal. The `bindings` in a `Policy` can refer to up - // to 1,500 principals; up to 250 of these principals can be Google - // groups. Each occurrence of a principal counts towards these limits. - // For example, if the `bindings` grant 50 different roles to - // `user:alice@example.com`, and not to any other principal, then you - // can add another 1,450 principals to the `bindings` in the `Policy`. + // Bindings: Associates a list of `members`, or principals, with a `role`. + // Optionally, may specify a `condition` that determines how and when the + // `bindings` are applied. Each of the `bindings` must contain at least one + // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; + // up to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the `bindings` grant + // 50 different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"` - - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the IAM - // documentation + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1Policy) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningListOperationsResponse: The response message for @@ -1003,253 +899,197 @@ func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) { type GoogleLongrunningListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningOperation: This resource represents a long-running // operation that is the result of a network API call. type GoogleLongrunningOperation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleRpcStatus: The `Status` type defines a logical error model that -// is suitable for different programming environments, including REST -// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// GoogleRpcStatus: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs and RPC +// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message +// contains three pieces of data: error code, error message, and error details. +// You can find out more about this error model and how to work with it in the +// API Design Guide (https://cloud.google.com/apis/design/errors). type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { +func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleRpcStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleTypeDate: Represents a whole or partial calendar date, such as -// a birthday. The time of day and time zone are either specified -// elsewhere or are insignificant. The date is relative to the Gregorian -// Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values. * A month and day, with a -// zero year (for example, an anniversary). * A year on its own, with a -// zero month and a zero day. * A year and month, with a zero day (for -// example, a credit card expiration date). Related types: * -// google.type.TimeOfDay * google.type.DateTime * + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleTypeDate: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified elsewhere or +// are insignificant. The date is relative to the Gregorian Calendar. This can +// represent one of the following: * A full date, with non-zero year, month, +// and day values. * A month and day, with a zero year (for example, an +// anniversary). * A year on its own, with a zero month and a zero day. * A +// year and month, with a zero day (for example, a credit card expiration +// date). Related types: * google.type.TimeOfDay * google.type.DateTime * // google.protobuf.Timestamp type GoogleTypeDate struct { - // Day: Day of a month. Must be from 1 to 31 and valid for the year and - // month, or 0 to specify a year by itself or a year and month where the - // day isn't significant. + // Day: Day of a month. Must be from 1 to 31 and valid for the year and month, + // or 0 to specify a year by itself or a year and month where the day isn't + // significant. Day int64 `json:"day,omitempty"` - - // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year - // without a month and day. + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without + // a month and day. Month int64 `json:"month,omitempty"` - - // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a - // date without a year. + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date + // without a year. Year int64 `json:"year,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Day") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Day") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Day") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Day") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) { +func (s GoogleTypeDate) MarshalJSON() ([]byte, error) { type NoMethod GoogleTypeDate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleTypeExpr: Represents a textual expression in the Common -// Expression Language (CEL) syntax. CEL is a C-like expression -// language. The syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if -// requestor is the document owner" expression: "document.owner == -// request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleTypeExpr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The syntax and +// semantics of CEL are documented at https://github.com/google/cel-spec. +// Example (Comparison): title: "Summary size limit" description: "Determines +// if a summary is less than 100 chars" expression: "document.summary.size() < +// 100" Example (Equality): title: "Requestor is owner" description: +// "Determines if requestor is the document owner" expression: "document.owner +// == request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type GoogleTypeExpr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) { +func (s GoogleTypeExpr) MarshalJSON() ([]byte, error) { type NoMethod GoogleTypeExpr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "policysimulator.folders.locations.orgPolicyViolationsPreviews.operations.get": - type FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall struct { s *Service name string @@ -1259,9 +1099,9 @@ type FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *FoldersLocationsOrgPolicyViolationsPreviewsOperationsService) Get(name string) *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall { @@ -1271,33 +1111,29 @@ func (r *FoldersLocationsOrgPolicyViolationsPreviewsOperationsService) Get(name } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Context(ctx context.Context) *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1306,12 +1142,7 @@ func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Header() } func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1328,16 +1159,15 @@ func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.orgPolicyViolationsPreviews.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1368,35 +1198,7 @@ func (c *FoldersLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Do(opts . return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreviewsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "policysimulator.folders.locations.orgPolicyViolationsPreviews.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "policysimulator.folders.locations.replays.operations.get": +} type FoldersLocationsReplaysOperationsGetCall struct { s *Service @@ -1407,9 +1209,9 @@ type FoldersLocationsReplaysOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *FoldersLocationsReplaysOperationsService) Get(name string) *FoldersLocationsReplaysOperationsGetCall { @@ -1419,33 +1221,29 @@ func (r *FoldersLocationsReplaysOperationsService) Get(name string) *FoldersLoca } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersLocationsReplaysOperationsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsReplaysOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FoldersLocationsReplaysOperationsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsReplaysOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersLocationsReplaysOperationsGetCall) Context(ctx context.Context) *FoldersLocationsReplaysOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersLocationsReplaysOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1454,12 +1252,7 @@ func (c *FoldersLocationsReplaysOperationsGetCall) Header() http.Header { } func (c *FoldersLocationsReplaysOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1476,16 +1269,15 @@ func (c *FoldersLocationsReplaysOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FoldersLocationsReplaysOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1516,35 +1308,7 @@ func (c *FoldersLocationsReplaysOperationsGetCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/replays/{replaysId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "policysimulator.folders.locations.replays.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "policysimulator.folders.locations.replays.operations.list": +} type FoldersLocationsReplaysOperationsListCall struct { s *Service @@ -1555,16 +1319,15 @@ type FoldersLocationsReplaysOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. // // - name: The name of the operation's parent resource. func (r *FoldersLocationsReplaysOperationsService) List(name string) *FoldersLocationsReplaysOperationsListCall { @@ -1573,55 +1336,50 @@ func (r *FoldersLocationsReplaysOperationsService) List(name string) *FoldersLoc return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *FoldersLocationsReplaysOperationsListCall) Filter(filter string) *FoldersLocationsReplaysOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *FoldersLocationsReplaysOperationsListCall) PageSize(pageSize int64) *FoldersLocationsReplaysOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *FoldersLocationsReplaysOperationsListCall) PageToken(pageToken string) *FoldersLocationsReplaysOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FoldersLocationsReplaysOperationsListCall) Fields(s ...googleapi.Field) *FoldersLocationsReplaysOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FoldersLocationsReplaysOperationsListCall) IfNoneMatch(entityTag string) *FoldersLocationsReplaysOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FoldersLocationsReplaysOperationsListCall) Context(ctx context.Context) *FoldersLocationsReplaysOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FoldersLocationsReplaysOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1630,12 +1388,7 @@ func (c *FoldersLocationsReplaysOperationsListCall) Header() http.Header { } func (c *FoldersLocationsReplaysOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1652,17 +1405,15 @@ func (c *FoldersLocationsReplaysOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.folders.locations.replays.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *FoldersLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1693,48 +1444,6 @@ func (c *FoldersLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/replays/{replaysId}/operations", - // "httpMethod": "GET", - // "id": "policysimulator.folders.locations.replays.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^folders/[^/]+/locations/[^/]+/replays/[^/]+/operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1742,7 +1451,7 @@ func (c *FoldersLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOpt // The provided context supersedes any context provided to the Context method. func (c *FoldersLocationsReplaysOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1758,8 +1467,6 @@ func (c *FoldersLocationsReplaysOperationsListCall) Pages(ctx context.Context, f } } -// method id "policysimulator.operations.get": - type OperationsGetCall struct { s *Service name string @@ -1769,9 +1476,9 @@ type OperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *OperationsService) Get(name string) *OperationsGetCall { @@ -1781,33 +1488,29 @@ func (r *OperationsService) Get(name string) *OperationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1816,12 +1519,7 @@ func (c *OperationsGetCall) Header() http.Header { } func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1838,16 +1536,15 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1878,35 +1575,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunning return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "policysimulator.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "policysimulator.operations.list": +} type OperationsListCall struct { s *Service @@ -1917,16 +1586,15 @@ type OperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. // // - name: The name of the operation's parent resource. func (r *OperationsService) List(name string) *OperationsListCall { @@ -1935,55 +1603,50 @@ func (r *OperationsService) List(name string) *OperationsListCall { return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1992,12 +1655,7 @@ func (c *OperationsListCall) Header() http.Header { } func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2014,17 +1672,15 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2055,48 +1711,6 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1beta1/operations", - // "httpMethod": "GET", - // "id": "policysimulator.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2104,7 +1718,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin // The provided context supersedes any context provided to the Context method. func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2120,8 +1734,6 @@ func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunnin } } -// method id "policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get": - type OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall struct { s *Service name string @@ -2131,9 +1743,9 @@ type OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsService) Get(name string) *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { @@ -2143,33 +1755,29 @@ func (r *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsService) Get } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2178,12 +1786,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Hea } func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2200,16 +1803,15 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2240,35 +1842,7 @@ func (c *OrganizationsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Do( return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreviewsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "policysimulator.organizations.locations.orgPolicyViolationsPreviews.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "policysimulator.organizations.locations.replays.operations.get": +} type OrganizationsLocationsReplaysOperationsGetCall struct { s *Service @@ -2279,9 +1853,9 @@ type OrganizationsLocationsReplaysOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *OrganizationsLocationsReplaysOperationsService) Get(name string) *OrganizationsLocationsReplaysOperationsGetCall { @@ -2291,33 +1865,29 @@ func (r *OrganizationsLocationsReplaysOperationsService) Get(name string) *Organ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsLocationsReplaysOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsReplaysOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsLocationsReplaysOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsReplaysOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsLocationsReplaysOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsReplaysOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsLocationsReplaysOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2326,12 +1896,7 @@ func (c *OrganizationsLocationsReplaysOperationsGetCall) Header() http.Header { } func (c *OrganizationsLocationsReplaysOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2348,16 +1913,15 @@ func (c *OrganizationsLocationsReplaysOperationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsLocationsReplaysOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2388,35 +1952,7 @@ func (c *OrganizationsLocationsReplaysOperationsGetCall) Do(opts ...googleapi.Ca return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/replays/{replaysId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "policysimulator.organizations.locations.replays.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+/replays/[^/]+/operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "policysimulator.organizations.locations.replays.operations.list": +} type OrganizationsLocationsReplaysOperationsListCall struct { s *Service @@ -2427,16 +1963,15 @@ type OrganizationsLocationsReplaysOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. // // - name: The name of the operation's parent resource. func (r *OrganizationsLocationsReplaysOperationsService) List(name string) *OrganizationsLocationsReplaysOperationsListCall { @@ -2445,55 +1980,50 @@ func (r *OrganizationsLocationsReplaysOperationsService) List(name string) *Orga return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *OrganizationsLocationsReplaysOperationsListCall) Filter(filter string) *OrganizationsLocationsReplaysOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *OrganizationsLocationsReplaysOperationsListCall) PageSize(pageSize int64) *OrganizationsLocationsReplaysOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *OrganizationsLocationsReplaysOperationsListCall) PageToken(pageToken string) *OrganizationsLocationsReplaysOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsLocationsReplaysOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsReplaysOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsLocationsReplaysOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsReplaysOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsLocationsReplaysOperationsListCall) Context(ctx context.Context) *OrganizationsLocationsReplaysOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsLocationsReplaysOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2502,12 +2032,7 @@ func (c *OrganizationsLocationsReplaysOperationsListCall) Header() http.Header { } func (c *OrganizationsLocationsReplaysOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2524,17 +2049,15 @@ func (c *OrganizationsLocationsReplaysOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.organizations.locations.replays.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2565,48 +2088,6 @@ func (c *OrganizationsLocationsReplaysOperationsListCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/replays/{replaysId}/operations", - // "httpMethod": "GET", - // "id": "policysimulator.organizations.locations.replays.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+/replays/[^/]+/operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2614,7 +2095,7 @@ func (c *OrganizationsLocationsReplaysOperationsListCall) Do(opts ...googleapi.C // The provided context supersedes any context provided to the Context method. func (c *OrganizationsLocationsReplaysOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2630,8 +2111,6 @@ func (c *OrganizationsLocationsReplaysOperationsListCall) Pages(ctx context.Cont } } -// method id "policysimulator.projects.locations.orgPolicyViolationsPreviews.operations.get": - type ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall struct { s *Service name string @@ -2641,9 +2120,9 @@ type ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsService) Get(name string) *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { @@ -2653,33 +2132,29 @@ func (r *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsService) Get(name } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2688,12 +2163,7 @@ func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Header() } func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2710,16 +2180,15 @@ func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.orgPolicyViolationsPreviews.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2750,35 +2219,7 @@ func (c *ProjectsLocationsOrgPolicyViolationsPreviewsOperationsGetCall) Do(opts return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreviewsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "policysimulator.projects.locations.orgPolicyViolationsPreviews.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/orgPolicyViolationsPreviews/[^/]+/operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "policysimulator.projects.locations.replays.operations.get": +} type ProjectsLocationsReplaysOperationsGetCall struct { s *Service @@ -2789,9 +2230,9 @@ type ProjectsLocationsReplaysOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsLocationsReplaysOperationsService) Get(name string) *ProjectsLocationsReplaysOperationsGetCall { @@ -2801,33 +2242,29 @@ func (r *ProjectsLocationsReplaysOperationsService) Get(name string) *ProjectsLo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReplaysOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReplaysOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsReplaysOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReplaysOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReplaysOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsReplaysOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReplaysOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2836,12 +2273,7 @@ func (c *ProjectsLocationsReplaysOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsReplaysOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2858,16 +2290,15 @@ func (c *ProjectsLocationsReplaysOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsReplaysOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2898,35 +2329,7 @@ func (c *ProjectsLocationsReplaysOperationsGetCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/replays/{replaysId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "policysimulator.projects.locations.replays.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/replays/[^/]+/operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "policysimulator.projects.locations.replays.operations.list": +} type ProjectsLocationsReplaysOperationsListCall struct { s *Service @@ -2937,16 +2340,15 @@ type ProjectsLocationsReplaysOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsReplaysOperationsService) List(name string) *ProjectsLocationsReplaysOperationsListCall { @@ -2955,55 +2357,50 @@ func (r *ProjectsLocationsReplaysOperationsService) List(name string) *ProjectsL return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsReplaysOperationsListCall) Filter(filter string) *ProjectsLocationsReplaysOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsReplaysOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsReplaysOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsReplaysOperationsListCall) PageToken(pageToken string) *ProjectsLocationsReplaysOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsReplaysOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReplaysOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsReplaysOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReplaysOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsReplaysOperationsListCall) Context(ctx context.Context) *ProjectsLocationsReplaysOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsReplaysOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3012,12 +2409,7 @@ func (c *ProjectsLocationsReplaysOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsReplaysOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3034,17 +2426,15 @@ func (c *ProjectsLocationsReplaysOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policysimulator.projects.locations.replays.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3075,48 +2465,6 @@ func (c *ProjectsLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/replays/{replaysId}/operations", - // "httpMethod": "GET", - // "id": "policysimulator.projects.locations.replays.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/replays/[^/]+/operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3124,7 +2472,7 @@ func (c *ProjectsLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOp // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsReplaysOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/policytroubleshooter/v1/policytroubleshooter-gen.go b/policytroubleshooter/v1/policytroubleshooter-gen.go index 07af2f38577..40547602c55 100644 --- a/policytroubleshooter/v1/policytroubleshooter-gen.go +++ b/policytroubleshooter/v1/policytroubleshooter-gen.go @@ -876,7 +876,7 @@ func (c *IamTroubleshootCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policytroubleshooter.iam.troubleshoot" call. diff --git a/policytroubleshooter/v1beta/policytroubleshooter-gen.go b/policytroubleshooter/v1beta/policytroubleshooter-gen.go index 87f9cade690..ff2d1dabacc 100644 --- a/policytroubleshooter/v1beta/policytroubleshooter-gen.go +++ b/policytroubleshooter/v1beta/policytroubleshooter-gen.go @@ -840,7 +840,7 @@ func (c *IamTroubleshootCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "policytroubleshooter.iam.troubleshoot" call. diff --git a/pollen/v1/pollen-gen.go b/pollen/v1/pollen-gen.go index f2bd3fb19c6..c4287749cd5 100644 --- a/pollen/v1/pollen-gen.go +++ b/pollen/v1/pollen-gen.go @@ -739,7 +739,7 @@ func (c *ForecastLookupCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pollen.forecast.lookup" call. @@ -886,7 +886,7 @@ func (c *MapTypesHeatmapTilesLookupHeatmapTileCall) doRequest(alt string) (*http "x": strconv.FormatInt(c.x, 10), "y": strconv.FormatInt(c.y, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pollen.mapTypes.heatmapTiles.lookupHeatmapTile" call. diff --git a/poly/v1/poly-gen.go b/poly/v1/poly-gen.go index 2a448f4f5d0..e1a30341838 100644 --- a/poly/v1/poly-gen.go +++ b/poly/v1/poly-gen.go @@ -869,7 +869,7 @@ func (c *AssetsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "poly.assets.get" call. @@ -1047,7 +1047,7 @@ func (c *AssetsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "poly.assets.list" call. @@ -1229,7 +1229,7 @@ func (c *UsersAssetsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "poly.users.assets.list" call. @@ -1396,7 +1396,7 @@ func (c *UsersLikedassetsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "poly.users.likedassets.list" call. diff --git a/privateca/v1/privateca-gen.go b/privateca/v1/privateca-gen.go index ae4c8322986..03dd97fd63e 100644 --- a/privateca/v1/privateca-gen.go +++ b/privateca/v1/privateca-gen.go @@ -2969,7 +2969,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.get" call. @@ -3100,7 +3100,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.list" call. @@ -3247,7 +3247,7 @@ func (c *ProjectsLocationsCaPoolsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.create" call. @@ -3369,7 +3369,7 @@ func (c *ProjectsLocationsCaPoolsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.delete" call. @@ -3473,7 +3473,7 @@ func (c *ProjectsLocationsCaPoolsFetchCaCertsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "caPool": c.caPool, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.fetchCaCerts" call. @@ -3581,7 +3581,7 @@ func (c *ProjectsLocationsCaPoolsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.get" call. @@ -3708,7 +3708,7 @@ func (c *ProjectsLocationsCaPoolsGetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.getIamPolicy" call. @@ -3847,7 +3847,7 @@ func (c *ProjectsLocationsCaPoolsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.list" call. @@ -3994,7 +3994,7 @@ func (c *ProjectsLocationsCaPoolsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.patch" call. @@ -4099,7 +4099,7 @@ func (c *ProjectsLocationsCaPoolsSetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.setIamPolicy" call. @@ -4207,7 +4207,7 @@ func (c *ProjectsLocationsCaPoolsTestIamPermissionsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.testIamPermissions" call. @@ -4314,7 +4314,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesActivateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.activate" call. @@ -4440,7 +4440,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.create" call. @@ -4580,7 +4580,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.delete" call. @@ -4682,7 +4682,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesDisableCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.disable" call. @@ -4784,7 +4784,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesEnableCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.enable" call. @@ -4896,7 +4896,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesFetchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.fetch" call. @@ -5004,7 +5004,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.get" call. @@ -5144,7 +5144,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.list" call. @@ -5291,7 +5291,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.patch" call. @@ -5393,7 +5393,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesUndeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.undelete" call. @@ -5500,7 +5500,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesCertificateRevocationList googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.certificateRevocationLists.get" call. @@ -5628,7 +5628,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesCertificateRevocationList googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.certificateRevocationLists.getIamPolicy" call. @@ -5768,7 +5768,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesCertificateRevocationList googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.certificateRevocationLists.list" call. @@ -5916,7 +5916,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesCertificateRevocationList googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.certificateRevocationLists.patch" call. @@ -6021,7 +6021,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesCertificateRevocationList googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.certificateRevocationLists.setIamPolicy" call. @@ -6129,7 +6129,7 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesCertificateRevocationList googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificateAuthorities.certificateRevocationLists.testIamPermissions" call. @@ -6284,7 +6284,7 @@ func (c *ProjectsLocationsCaPoolsCertificatesCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificates.create" call. @@ -6391,7 +6391,7 @@ func (c *ProjectsLocationsCaPoolsCertificatesGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificates.get" call. @@ -6534,7 +6534,7 @@ func (c *ProjectsLocationsCaPoolsCertificatesListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificates.list" call. @@ -6682,7 +6682,7 @@ func (c *ProjectsLocationsCaPoolsCertificatesPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificates.patch" call. @@ -6784,7 +6784,7 @@ func (c *ProjectsLocationsCaPoolsCertificatesRevokeCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.caPools.certificates.revoke" call. @@ -6910,7 +6910,7 @@ func (c *ProjectsLocationsCertificateTemplatesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateTemplates.create" call. @@ -7022,7 +7022,7 @@ func (c *ProjectsLocationsCertificateTemplatesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateTemplates.delete" call. @@ -7129,7 +7129,7 @@ func (c *ProjectsLocationsCertificateTemplatesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateTemplates.get" call. @@ -7257,7 +7257,7 @@ func (c *ProjectsLocationsCertificateTemplatesGetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateTemplates.getIamPolicy" call. @@ -7396,7 +7396,7 @@ func (c *ProjectsLocationsCertificateTemplatesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateTemplates.list" call. @@ -7543,7 +7543,7 @@ func (c *ProjectsLocationsCertificateTemplatesPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateTemplates.patch" call. @@ -7648,7 +7648,7 @@ func (c *ProjectsLocationsCertificateTemplatesSetIamPolicyCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateTemplates.setIamPolicy" call. @@ -7756,7 +7756,7 @@ func (c *ProjectsLocationsCertificateTemplatesTestIamPermissionsCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateTemplates.testIamPermissions" call. @@ -7866,7 +7866,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.operations.cancel" call. @@ -7964,7 +7964,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.operations.delete" call. @@ -8073,7 +8073,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.operations.get" call. @@ -8201,7 +8201,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.operations.list" call. diff --git a/privateca/v1beta1/privateca-gen.go b/privateca/v1beta1/privateca-gen.go index 217a2520da0..7cc815fe1af 100644 --- a/privateca/v1beta1/privateca-gen.go +++ b/privateca/v1beta1/privateca-gen.go @@ -909,7 +909,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.get" call. @@ -1040,7 +1040,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.list" call. @@ -1189,7 +1189,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateAuthorities.getIamPolicy" call. @@ -1294,7 +1294,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateAuthorities.setIamPolicy" call. @@ -1402,7 +1402,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateAuthorities.testIamPermissions" call. @@ -1530,7 +1530,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIam googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy" call. @@ -1635,7 +1635,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIam googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy" call. @@ -1743,7 +1743,7 @@ func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions" call. @@ -1853,7 +1853,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.operations.cancel" call. @@ -1951,7 +1951,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.operations.delete" call. @@ -2060,7 +2060,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.operations.get" call. @@ -2188,7 +2188,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.operations.list" call. @@ -2337,7 +2337,7 @@ func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.reusableConfigs.getIamPolicy" call. @@ -2442,7 +2442,7 @@ func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.reusableConfigs.setIamPolicy" call. @@ -2550,7 +2550,7 @@ func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "privateca.projects.locations.reusableConfigs.testIamPermissions" call. diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go index d859a65695e..6a22311284c 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go @@ -2000,7 +2000,7 @@ func (c *CustomersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.get" call. @@ -2116,7 +2116,7 @@ func (c *CustomersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.list" call. @@ -2239,7 +2239,7 @@ func (c *CustomersListGcpProjectDeploymentsCall) doRequest(alt string) (*http.Re return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.listGcpProjectDeployments" call. @@ -2340,7 +2340,7 @@ func (c *CustomersListLegacyOrganizationsCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.listLegacyOrganizations" call. @@ -2438,7 +2438,7 @@ func (c *CustomersMigrateOrganizationCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.migrateOrganization" call. @@ -2546,7 +2546,7 @@ func (c *CustomersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.patch" call. @@ -2642,7 +2642,7 @@ func (c *CustomersProvisionDeploymentCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.provisionDeployment" call. @@ -2740,7 +2740,7 @@ func (c *CustomersSetupSasAnalyticsCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.setupSasAnalytics" call. @@ -2842,7 +2842,7 @@ func (c *CustomersDeploymentsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.deployments.create" call. @@ -2938,7 +2938,7 @@ func (c *CustomersDeploymentsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.deployments.delete" call. @@ -3045,7 +3045,7 @@ func (c *CustomersDeploymentsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.deployments.get" call. @@ -3178,7 +3178,7 @@ func (c *CustomersDeploymentsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.deployments.list" call. @@ -3301,7 +3301,7 @@ func (c *CustomersDeploymentsMoveCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.deployments.move" call. @@ -3409,7 +3409,7 @@ func (c *CustomersDeploymentsPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.deployments.patch" call. @@ -3511,7 +3511,7 @@ func (c *CustomersDeploymentsDevicesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.deployments.devices.create" call. @@ -3613,7 +3613,7 @@ func (c *CustomersDeploymentsDevicesCreateSignedCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.deployments.devices.createSigned" call. @@ -3746,7 +3746,7 @@ func (c *CustomersDeploymentsDevicesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.deployments.devices.list" call. @@ -3869,7 +3869,7 @@ func (c *CustomersDevicesCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.devices.create" call. @@ -3971,7 +3971,7 @@ func (c *CustomersDevicesCreateSignedCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.devices.createSigned" call. @@ -4067,7 +4067,7 @@ func (c *CustomersDevicesDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.devices.delete" call. @@ -4174,7 +4174,7 @@ func (c *CustomersDevicesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.devices.get" call. @@ -4307,7 +4307,7 @@ func (c *CustomersDevicesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.devices.list" call. @@ -4430,7 +4430,7 @@ func (c *CustomersDevicesMoveCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.devices.move" call. @@ -4538,7 +4538,7 @@ func (c *CustomersDevicesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.devices.patch" call. @@ -4640,7 +4640,7 @@ func (c *CustomersDevicesSignDeviceCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.devices.signDevice" call. @@ -4741,7 +4741,7 @@ func (c *CustomersDevicesUpdateSignedCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.devices.updateSigned" call. @@ -4843,7 +4843,7 @@ func (c *CustomersNodesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.create" call. @@ -4938,7 +4938,7 @@ func (c *CustomersNodesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.delete" call. @@ -5045,7 +5045,7 @@ func (c *CustomersNodesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.get" call. @@ -5176,7 +5176,7 @@ func (c *CustomersNodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.list" call. @@ -5299,7 +5299,7 @@ func (c *CustomersNodesMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.move" call. @@ -5407,7 +5407,7 @@ func (c *CustomersNodesPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.patch" call. @@ -5508,7 +5508,7 @@ func (c *CustomersNodesDeploymentsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.deployments.create" call. @@ -5641,7 +5641,7 @@ func (c *CustomersNodesDeploymentsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.deployments.list" call. @@ -5764,7 +5764,7 @@ func (c *CustomersNodesDevicesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.devices.create" call. @@ -5866,7 +5866,7 @@ func (c *CustomersNodesDevicesCreateSignedCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.devices.createSigned" call. @@ -5999,7 +5999,7 @@ func (c *CustomersNodesDevicesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.devices.list" call. @@ -6122,7 +6122,7 @@ func (c *CustomersNodesNodesCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.nodes.create" call. @@ -6253,7 +6253,7 @@ func (c *CustomersNodesNodesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.customers.nodes.nodes.list" call. @@ -6382,7 +6382,7 @@ func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.deployments.get" call. @@ -6478,7 +6478,7 @@ func (c *DeploymentsDevicesDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.deployments.devices.delete" call. @@ -6585,7 +6585,7 @@ func (c *DeploymentsDevicesGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.deployments.devices.get" call. @@ -6687,7 +6687,7 @@ func (c *DeploymentsDevicesMoveCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.deployments.devices.move" call. @@ -6795,7 +6795,7 @@ func (c *DeploymentsDevicesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.deployments.devices.patch" call. @@ -6897,7 +6897,7 @@ func (c *DeploymentsDevicesSignDeviceCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.deployments.devices.signDevice" call. @@ -6998,7 +6998,7 @@ func (c *DeploymentsDevicesUpdateSignedCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.deployments.devices.updateSigned" call. @@ -7093,7 +7093,7 @@ func (c *InstallerGenerateSecretCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.installer.generateSecret" call. @@ -7189,7 +7189,7 @@ func (c *InstallerValidateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.installer.validate" call. @@ -7297,7 +7297,7 @@ func (c *NodesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.get" call. @@ -7392,7 +7392,7 @@ func (c *NodesDeploymentsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.deployments.delete" call. @@ -7499,7 +7499,7 @@ func (c *NodesDeploymentsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.deployments.get" call. @@ -7632,7 +7632,7 @@ func (c *NodesDeploymentsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.deployments.list" call. @@ -7755,7 +7755,7 @@ func (c *NodesDeploymentsMoveCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.deployments.move" call. @@ -7863,7 +7863,7 @@ func (c *NodesDeploymentsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.deployments.patch" call. @@ -7965,7 +7965,7 @@ func (c *NodesDeploymentsDevicesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.deployments.devices.create" call. @@ -8067,7 +8067,7 @@ func (c *NodesDeploymentsDevicesCreateSignedCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.deployments.devices.createSigned" call. @@ -8200,7 +8200,7 @@ func (c *NodesDeploymentsDevicesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.deployments.devices.list" call. @@ -8323,7 +8323,7 @@ func (c *NodesDevicesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.devices.create" call. @@ -8425,7 +8425,7 @@ func (c *NodesDevicesCreateSignedCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.devices.createSigned" call. @@ -8521,7 +8521,7 @@ func (c *NodesDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.devices.delete" call. @@ -8628,7 +8628,7 @@ func (c *NodesDevicesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.devices.get" call. @@ -8761,7 +8761,7 @@ func (c *NodesDevicesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.devices.list" call. @@ -8884,7 +8884,7 @@ func (c *NodesDevicesMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.devices.move" call. @@ -8992,7 +8992,7 @@ func (c *NodesDevicesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.devices.patch" call. @@ -9094,7 +9094,7 @@ func (c *NodesDevicesSignDeviceCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.devices.signDevice" call. @@ -9195,7 +9195,7 @@ func (c *NodesDevicesUpdateSignedCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.devices.updateSigned" call. @@ -9297,7 +9297,7 @@ func (c *NodesNodesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.create" call. @@ -9392,7 +9392,7 @@ func (c *NodesNodesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.delete" call. @@ -9499,7 +9499,7 @@ func (c *NodesNodesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.get" call. @@ -9630,7 +9630,7 @@ func (c *NodesNodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.list" call. @@ -9753,7 +9753,7 @@ func (c *NodesNodesMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.move" call. @@ -9861,7 +9861,7 @@ func (c *NodesNodesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.patch" call. @@ -9962,7 +9962,7 @@ func (c *NodesNodesDeploymentsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.deployments.create" call. @@ -10095,7 +10095,7 @@ func (c *NodesNodesDeploymentsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.deployments.list" call. @@ -10218,7 +10218,7 @@ func (c *NodesNodesDevicesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.devices.create" call. @@ -10320,7 +10320,7 @@ func (c *NodesNodesDevicesCreateSignedCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.devices.createSigned" call. @@ -10453,7 +10453,7 @@ func (c *NodesNodesDevicesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.devices.list" call. @@ -10576,7 +10576,7 @@ func (c *NodesNodesNodesCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.nodes.create" call. @@ -10707,7 +10707,7 @@ func (c *NodesNodesNodesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.nodes.nodes.nodes.list" call. @@ -10824,7 +10824,7 @@ func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.policies.get" call. @@ -10920,7 +10920,7 @@ func (c *PoliciesSetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.policies.set" call. @@ -11015,7 +11015,7 @@ func (c *PoliciesTestCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "prod_tt_sasportal.policies.test" call. diff --git a/proximitybeacon/v1beta1/proximitybeacon-gen.go b/proximitybeacon/v1beta1/proximitybeacon-gen.go index ae724e0f4a9..e7625348dd8 100644 --- a/proximitybeacon/v1beta1/proximitybeacon-gen.go +++ b/proximitybeacon/v1beta1/proximitybeacon-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/beacons/proximity/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // proximitybeaconService, err := proximitybeacon.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // proximitybeaconService, err := proximitybeacon.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // proximitybeaconService, err := proximitybeacon.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package proximitybeacon // import "google.golang.org/api/proximitybeacon/v1beta1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "proximitybeacon:v1beta1" const apiName = "proximitybeacon" const apiVersion = "v1beta1" const basePath = "https://proximitybeacon.googleapis.com/" +const basePathTemplate = "https://proximitybeacon.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -84,12 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/userlocation.beacon.registry", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -202,58 +220,49 @@ type V1beta1Service struct { s *Service } -// AdvertisedId: Defines a unique identifier of a beacon as broadcast by -// the device. +// AdvertisedId: Defines a unique identifier of a beacon as broadcast by the +// device. type AdvertisedId struct { - // Id: The actual beacon identifier, as broadcast by the beacon - // hardware. Must + // Id: The actual beacon identifier, as broadcast by the beacon hardware. Must // be - // [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in + // base64 (http://tools.ietf.org/html/rfc4648#section-4) encoded in // HTTP // requests, and will be so encoded (with padding) in responses. The // base64 - // encoding should be of the binary byte-stream and not any textual - // (such as + // encoding should be of the binary byte-stream and not any textual (such + // as // hex) representation thereof. // Required. Id string `json:"id,omitempty"` - // Type: Specifies the identifier type. // Required. // // Possible values: // "TYPE_UNSPECIFIED" - Do not use this value. - // "EDDYSTONE" - Eddystone, an open beacon format that supports - // Android and iOS - // devices + // "EDDYSTONE" - Eddystone, an open beacon format that supports Android and + // iOS devices // https://github.com/google/eddystone/wiki/Beacon-Specification // "IBEACON" - Apple iBeacon compatible beacon // "ALTBEACON" - See http://altbeacon.org and/or // https://github.com/AltBeacon/spec. // "EDDYSTONE_EID" - Eddystone Ephemeral ID Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdvertisedId) MarshalJSON() ([]byte, error) { +func (s AdvertisedId) MarshalJSON() ([]byte, error) { type NoMethod AdvertisedId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AttachmentInfo: A subset of attachment information served via @@ -264,7 +273,6 @@ func (s *AdvertisedId) MarshalJSON() ([]byte, error) { type AttachmentInfo struct { // Data: An opaque data container for client-provided data. Data string `json:"data,omitempty"` - // MaxDistanceMeters: The distance away from the beacon at which this // attachment should be // delivered to a mobile app. @@ -282,42 +290,33 @@ type AttachmentInfo struct { // meter // precision, real-world behavior is likley to be much less precise than // one - // meter, due to the nature of current Bluetooth radio - // technology. + // meter, due to the nature of current Bluetooth radio technology. // // Optional. When not set or zero, the attachment should be delivered at // the // beacon's outer limit of detection. MaxDistanceMeters float64 `json:"maxDistanceMeters,omitempty"` - - // NamespacedType: Specifies what kind of attachment this is. Tells a - // client how to - // interpret the `data` field. Format is namespace/type, - // for + // NamespacedType: Specifies what kind of attachment this is. Tells a client + // how to + // interpret the `data` field. Format is namespace/type, for // example scrupulous-wombat-12345/welcome-message NamespacedType string `json:"namespacedType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AttachmentInfo) MarshalJSON() ([]byte, error) { +func (s AttachmentInfo) MarshalJSON() ([]byte, error) { type NoMethod AttachmentInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *AttachmentInfo) UnmarshalJSON(data []byte) error { @@ -336,42 +335,34 @@ func (s *AttachmentInfo) UnmarshalJSON(data []byte) error { // Beacon: Details of a beacon device. type Beacon struct { - // AdvertisedId: The identifier of a beacon as advertised by it. This - // field must be - // populated when registering. It may be empty when updating a - // beacon + // AdvertisedId: The identifier of a beacon as advertised by it. This field + // must be + // populated when registering. It may be empty when updating a beacon // record because it is ignored in updates. // - // When registering a beacon that broadcasts Eddystone-EID, this - // field - // should contain a "stable" Eddystone-UID that identifies the beacon - // and + // When registering a beacon that broadcasts Eddystone-EID, this field + // should contain a "stable" Eddystone-UID that identifies the beacon and // links it to its attachments. The stable Eddystone-UID is only used // for // administering the beacon. AdvertisedId *AdvertisedId `json:"advertisedId,omitempty"` - // BeaconName: Resource name of this beacon. A beacon name has the // format - // "beacons/N!beaconId" where the beaconId is the base16 ID broadcast - // by - // the beacon and N is a code for the beacon's type. Possible values - // are + // "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by + // the beacon and N is a code for the beacon's type. Possible values are // `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon. // // This field must be left empty when registering. After reading a // beacon, // clients can use the name for future operations. BeaconName string `json:"beaconName,omitempty"` - - // Description: Free text used to identify and describe the beacon. - // Maximum length 140 + // Description: Free text used to identify and describe the beacon. Maximum + // length 140 // characters. // Optional. Description string `json:"description,omitempty"` - - // EphemeralIdRegistration: Write-only registration parameters for - // beacons using Eddystone-EID + // EphemeralIdRegistration: Write-only registration parameters for beacons + // using Eddystone-EID // (remotely resolved ephemeral ID) format. This information will not // be // populated in API responses. When submitting this data, the @@ -380,134 +371,108 @@ type Beacon struct { // will // result in an error. EphemeralIdRegistration *EphemeralIdRegistration `json:"ephemeralIdRegistration,omitempty"` - - // ExpectedStability: Expected location stability. This is set when the - // beacon is registered or + // ExpectedStability: Expected location stability. This is set when the beacon + // is registered or // updated, not automatically detected in any way. // Optional. // // Possible values: // "STABILITY_UNSPECIFIED" - Do not use this value. // "STABLE" - Not expected to move, for example a store's front door. - // "PORTABLE" - Usually stable but may move rarely, usually within a - // single place, + // "PORTABLE" - Usually stable but may move rarely, usually within a single + // place, // for example a store display. - // "MOBILE" - Moves frequently, for example a personal item or food - // truck. - // "ROVING" - Moves continuously in service, for example a bus or - // train. + // "MOBILE" - Moves frequently, for example a personal item or food truck. + // "ROVING" - Moves continuously in service, for example a bus or train. ExpectedStability string `json:"expectedStability,omitempty"` - - // IndoorLevel: The indoor level information for this beacon, if known. - // As returned by the + // IndoorLevel: The indoor level information for this beacon, if known. As + // returned by the // Google Maps API. // Optional. IndoorLevel *IndoorLevel `json:"indoorLevel,omitempty"` - - // LatLng: The location of the beacon, expressed as a latitude and - // longitude pair. - // This location is given when the beacon is registered or updated. It - // does + // LatLng: The location of the beacon, expressed as a latitude and longitude + // pair. + // This location is given when the beacon is registered or updated. It does // not necessarily indicate the actual current location of the // beacon. // Optional. LatLng *LatLng `json:"latLng,omitempty"` - - // PlaceId: The [Google Places API](/places/place-id) Place ID of the - // place where + // PlaceId: The Google Places API (/places/place-id) Place ID of the place + // where // the beacon is deployed. This is given when the beacon is registered // or // updated, not automatically detected in any way. // Optional. PlaceId string `json:"placeId,omitempty"` - - // Properties: Properties of the beacon device, for example battery type - // or firmware + // Properties: Properties of the beacon device, for example battery type or + // firmware // version. // Optional. Properties map[string]string `json:"properties,omitempty"` - - // ProvisioningKey: Some beacons may require a user to provide an - // authorization key before + // ProvisioningKey: Some beacons may require a user to provide an authorization + // key before // changing any of its configuration (e.g. broadcast frames, transmit // power). - // This field provides a place to store and control access to that - // key. + // This field provides a place to store and control access to that key. // This field is populated in responses to `GET // /v1beta1/beacons/3!beaconId` // from users with write access to the given beacon. That is to say: If // the // user is authorized to write the beacon's confidential data in the // service, - // the service considers them authorized to configure the beacon. - // Note - // that this key grants nothing on the service, only on the beacon - // itself. + // the service considers them authorized to configure the beacon. Note + // that this key grants nothing on the service, only on the beacon itself. ProvisioningKey string `json:"provisioningKey,omitempty"` - // Status: Current status of the beacon. // Required. // // Possible values: // "STATUS_UNSPECIFIED" - Do not use this value. // "ACTIVE" - The "normal" in-use state of a beacon. - // "DECOMMISSIONED" - Beacon should no longer be used for any purpose. - // This is irreversible. - // "INACTIVE" - The beacon should not be visible to mobile devices. - // This is reversible. + // "DECOMMISSIONED" - Beacon should no longer be used for any purpose. This + // is irreversible. + // "INACTIVE" - The beacon should not be visible to mobile devices. This is + // reversible. Status string `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AdvertisedId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertisedId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertisedId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Beacon) MarshalJSON() ([]byte, error) { +func (s Beacon) MarshalJSON() ([]byte, error) { type NoMethod Beacon - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BeaconAttachment: Project-specific data associated with a beacon. type BeaconAttachment struct { - // AttachmentName: Resource name of this attachment. Attachment names - // have the + // AttachmentName: Resource name of this attachment. Attachment names have the // format: - // beacons/beacon_id/attachments/attachment - // _id. + // beacons/beacon_id/attachments/attachment_id. // Leave this empty on creation. AttachmentName string `json:"attachmentName,omitempty"` - // CreationTimeMs: The UTC time when this attachment was created, in // milliseconds since the // UNIX epoch. CreationTimeMs string `json:"creationTimeMs,omitempty"` - - // Data: An opaque data container for client-provided data. Must - // be - // [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in + // Data: An opaque data container for client-provided data. Must be + // base64 (http://tools.ietf.org/html/rfc4648#section-4) encoded in // HTTP - // requests, and will be so encoded (with padding) in - // responses. + // requests, and will be so encoded (with padding) in responses. // Required. Data string `json:"data,omitempty"` - // MaxDistanceMeters: The distance away from the beacon at which this // attachment should be // delivered to a mobile app. @@ -525,8 +490,7 @@ type BeaconAttachment struct { // meter // precision, real-world behavior is likley to be much less precise than // one - // meter, due to the nature of current Bluetooth radio - // technology. + // meter, due to the nature of current Bluetooth radio technology. // // Optional. When not set or zero, the attachment should be delivered at // the @@ -534,44 +498,33 @@ type BeaconAttachment struct { // // Negative values are invalid and return an error. MaxDistanceMeters float64 `json:"maxDistanceMeters,omitempty"` - - // NamespacedType: Specifies what kind of attachment this is. Tells a - // client how to + // NamespacedType: Specifies what kind of attachment this is. Tells a client + // how to // interpret the `data` field. Format is namespace/type. // Namespace - // provides type separation between clients. Type describes the type - // of - // `data`, for use by the client when parsing the `data` - // field. + // provides type separation between clients. Type describes the type of + // `data`, for use by the client when parsing the `data` field. // Required. NamespacedType string `json:"namespacedType,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AttachmentName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttachmentName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AttachmentName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BeaconAttachment) MarshalJSON() ([]byte, error) { +func (s BeaconAttachment) MarshalJSON() ([]byte, error) { type NoMethod BeaconAttachment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *BeaconAttachment) UnmarshalJSON(data []byte) error { @@ -594,124 +547,98 @@ func (s *BeaconAttachment) UnmarshalJSON(data []byte) error { type BeaconInfo struct { // AdvertisedId: The ID advertised by the beacon. AdvertisedId *AdvertisedId `json:"advertisedId,omitempty"` - // Attachments: Attachments matching the type(s) requested. // May be empty if no attachment types were requested. Attachments []*AttachmentInfo `json:"attachments,omitempty"` - // BeaconName: The name under which the beacon is registered. BeaconName string `json:"beaconName,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdvertisedId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertisedId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertisedId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BeaconInfo) MarshalJSON() ([]byte, error) { +func (s BeaconInfo) MarshalJSON() ([]byte, error) { type NoMethod BeaconInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Date: Represents a whole or partial calendar date, e.g. a birthday. -// The time of day -// and time zone are either specified elsewhere or are not significant. -// The date -// is relative to the Proleptic Gregorian Calendar. This can -// represent: +// Date: Represents a whole or partial calendar date, e.g. a birthday. The time +// of day +// and time zone are either specified elsewhere or are not significant. The +// date +// is relative to the Proleptic Gregorian Calendar. This can represent: // // * A full date, with non-zero year, month and day values // * A month and day value, with a zero year, e.g. an anniversary // * A year on its own, with zero month and day values -// * A year and month value, with a zero day, e.g. a credit card -// expiration date +// * A year and month value, with a zero day, e.g. a credit card expiration +// date // -// Related types are google.type.TimeOfDay and -// `google.protobuf.Timestamp`. +// Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. type Date struct { - // Day: Day of month. Must be from 1 to 31 and valid for the year and - // month, or 0 + // Day: Day of month. Must be from 1 to 31 and valid for the year and month, or + // 0 // if specifying a year by itself or a year and month where the day is // not // significant. Day int64 `json:"day,omitempty"` - // Month: Month of year. Must be from 1 to 12, or 0 if specifying a year // without a // month and day. Month int64 `json:"month,omitempty"` - // Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date // without // a year. Year int64 `json:"year,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Day") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Day") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Day") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Day") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Date) MarshalJSON() ([]byte, error) { +func (s Date) MarshalJSON() ([]byte, error) { type NoMethod Date - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeleteAttachmentsResponse: Response for a request to delete -// attachments. +// DeleteAttachmentsResponse: Response for a request to delete attachments. type DeleteAttachmentsResponse struct { // NumDeleted: The number of attachments that were deleted. NumDeleted int64 `json:"numDeleted,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NumDeleted") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NumDeleted") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NumDeleted") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeleteAttachmentsResponse) MarshalJSON() ([]byte, error) { +func (s DeleteAttachmentsResponse) MarshalJSON() ([]byte, error) { type NoMethod DeleteAttachmentsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Diagnostics: Diagnostics for a single beacon. @@ -720,8 +647,8 @@ type Diagnostics struct { // // Possible values: // "ALERT_UNSPECIFIED" - Invalid value. Should never appear. - // "WRONG_LOCATION" - The beacon has been reported far from its - // expected location (the beacon's + // "WRONG_LOCATION" - The beacon has been reported far from its expected + // location (the beacon's // lat_lng field if populated, otherwise, if the beacon's place_id field // is // present, the center of that place). This may indicate that the beacon @@ -729,52 +656,43 @@ type Diagnostics struct { // been moved. This signal is not 100% accurate, but indicates that // further // investigation is worthwhile. - // "LOW_BATTERY" - The battery level for the beacon is low enough - // that, given the beacon's + // "LOW_BATTERY" - The battery level for the beacon is low enough that, given + // the beacon's // current use, its battery will run out with in the next 60 days. // This // indicates that the battery should be replaced soon. - // "LOW_ACTIVITY" - The beacon has been reported at a very low rate or - // not at all. This may + // "LOW_ACTIVITY" - The beacon has been reported at a very low rate or not at + // all. This may // indicate that the beacon is broken or just that no one has gone near // the - // beacon in recent days. If this status appears unexpectedly, the - // beacon + // beacon in recent days. If this status appears unexpectedly, the beacon // owner should investigate further. Alerts []string `json:"alerts,omitempty"` - - // BeaconName: Resource name of the beacon. For Eddystone-EID beacons, - // this may + // BeaconName: Resource name of the beacon. For Eddystone-EID beacons, this + // may // be the beacon's current EID, or the beacon's "stable" Eddystone-UID. BeaconName string `json:"beaconName,omitempty"` - - // EstimatedLowBatteryDate: The date when the battery is expected to be - // low. If the value is missing + // EstimatedLowBatteryDate: The date when the battery is expected to be low. If + // the value is missing // then there is no estimate for when the battery will be low. // This value is only an estimate, not an exact date. EstimatedLowBatteryDate *Date `json:"estimatedLowBatteryDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Alerts") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Alerts") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Alerts") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Diagnostics) MarshalJSON() ([]byte, error) { +func (s Diagnostics) MarshalJSON() ([]byte, error) { type NoMethod Diagnostics - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining @@ -784,203 +702,145 @@ func (s *Diagnostics) MarshalJSON() ([]byte, error) { // or the response type of an API method. For instance: // // service Foo { -// rpc Bar(google.protobuf.Empty) returns -// -// (google.protobuf.Empty); -// +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); // } // // The JSON representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// EphemeralIdRegistration: Write-only registration parameters for -// beacons using Eddystone-EID format. +// EphemeralIdRegistration: Write-only registration parameters for beacons +// using Eddystone-EID format. // Two ways of securely registering an Eddystone-EID beacon with the // service // are supported: // -// 1. Perform an ECDH key exchange via this API, including a previous -// call -// -// to `GET /v1beta1/eidparams`. In this case the fields -// `beacon_ecdh_public_key` and `service_ecdh_public_key` should be -// populated and `beacon_identity_key` should not be populated. This -// method ensures that only the two parties in the ECDH key exchange -// -// can -// -// compute the identity key, which becomes a secret between them. -// 2. Derive or obtain the beacon's identity key via other secure means -// (perhaps an ECDH key exchange between the beacon and a mobile -// -// device -// -// or any other secure method), and then submit the resulting -// -// identity key -// -// to the service. In this case `beacon_identity_key` field should -// -// be -// -// populated, and neither of `beacon_ecdh_public_key` nor -// `service_ecdh_public_key` fields should be. The security of this -// -// method -// -// depends on how securely the parties involved (in particular the -// bluetooth client) handle the identity key, and obviously on how -// securely the identity key was generated. -// -// See [the -// Eddystone -// specification](https://github.com/google/eddystone/tree/mast -// er/eddystone-eid) +// 1. Perform an ECDH key exchange via this API, including a previous call +// to `GET /v1beta1/eidparams`. In this case the fields +// `beacon_ecdh_public_key` and `service_ecdh_public_key` should be +// populated and `beacon_identity_key` should not be populated. This +// method ensures that only the two parties in the ECDH key exchange can +// compute the identity key, which becomes a secret between them. +// 2. Derive or obtain the beacon's identity key via other secure means +// (perhaps an ECDH key exchange between the beacon and a mobile device +// or any other secure method), and then submit the resulting identity key +// to the service. In this case `beacon_identity_key` field should be +// populated, and neither of `beacon_ecdh_public_key` nor +// `service_ecdh_public_key` fields should be. The security of this method +// depends on how securely the parties involved (in particular the +// bluetooth client) handle the identity key, and obviously on how +// securely the identity key was generated. +// +// See the Eddystone +// specification +// (https://github.com/google/eddystone/tree/master/eddystone-eid) // at GitHub. type EphemeralIdRegistration struct { - // BeaconEcdhPublicKey: The beacon's public key used for the Elliptic - // curve Diffie-Hellman - // key exchange. When this field is populated, - // `service_ecdh_public_key` + // BeaconEcdhPublicKey: The beacon's public key used for the Elliptic curve + // Diffie-Hellman + // key exchange. When this field is populated, `service_ecdh_public_key` // must also be populated, and `beacon_identity_key` must not be. BeaconEcdhPublicKey string `json:"beaconEcdhPublicKey,omitempty"` - // BeaconIdentityKey: The private key of the beacon. If this field is // populated, // `beacon_ecdh_public_key` and `service_ecdh_public_key` must not // be // populated. BeaconIdentityKey string `json:"beaconIdentityKey,omitempty"` - - // InitialClockValue: The initial clock value of the beacon. The - // beacon's clock must have - // begun counting at this value immediately prior to transmitting - // this - // value to the resolving service. Significant delay in transmitting - // this - // value to the service risks registration or resolution failures. If - // a + // InitialClockValue: The initial clock value of the beacon. The beacon's clock + // must have + // begun counting at this value immediately prior to transmitting this + // value to the resolving service. Significant delay in transmitting this + // value to the service risks registration or resolution failures. If a // value is not provided, the default is zero. InitialClockValue uint64 `json:"initialClockValue,omitempty,string"` - // InitialEid: An initial ephemeral ID calculated using the clock value // submitted as - // `initial_clock_value`, and the secret key generated by - // the + // `initial_clock_value`, and the secret key generated by the // Diffie-Hellman key exchange using `service_ecdh_public_key` // and // `service_ecdh_public_key`. This initial EID value will be used by // the // service to confirm that the key exchange process was successful. InitialEid string `json:"initialEid,omitempty"` - - // RotationPeriodExponent: Indicates the nominal period between each - // rotation of the beacon's - // ephemeral ID. "Nominal" because the beacon should randomize - // the - // actual interval. See [the spec - // at - // github](https://github.com/google/eddystone/tree/master/eddystone-e - // id) - // for details. This value corresponds to a power-of-two scaler on - // the + // RotationPeriodExponent: Indicates the nominal period between each rotation + // of the beacon's + // ephemeral ID. "Nominal" because the beacon should randomize the + // actual interval. See the spec at + // github (https://github.com/google/eddystone/tree/master/eddystone-eid) + // for details. This value corresponds to a power-of-two scaler on the // beacon's clock: when the scaler value is K, the beacon will // begin // broadcasting a new ephemeral ID on average every 2^K seconds. RotationPeriodExponent int64 `json:"rotationPeriodExponent,omitempty"` - - // ServiceEcdhPublicKey: The service's public key used for the Elliptic - // curve Diffie-Hellman - // key exchange. When this field is populated, - // `beacon_ecdh_public_key` + // ServiceEcdhPublicKey: The service's public key used for the Elliptic curve + // Diffie-Hellman + // key exchange. When this field is populated, `beacon_ecdh_public_key` // must also be populated, and `beacon_identity_key` must not be. ServiceEcdhPublicKey string `json:"serviceEcdhPublicKey,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BeaconEcdhPublicKey") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BeaconEcdhPublicKey") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BeaconEcdhPublicKey") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BeaconEcdhPublicKey") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EphemeralIdRegistration) MarshalJSON() ([]byte, error) { +func (s EphemeralIdRegistration) MarshalJSON() ([]byte, error) { type NoMethod EphemeralIdRegistration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EphemeralIdRegistrationParams: Information a client needs to -// provision and register beacons that +// EphemeralIdRegistrationParams: Information a client needs to provision and +// register beacons that // broadcast Eddystone-EID format beacon IDs, using Elliptic // curve // Diffie-Hellman key exchange. See -// [the -// Eddystone -// specification](https://github.com/google/eddystone/tree/mast -// er/eddystone-eid) +// the Eddystone +// specification +// (https://github.com/google/eddystone/tree/master/eddystone-eid) // at GitHub. type EphemeralIdRegistrationParams struct { - // MaxRotationPeriodExponent: Indicates the maximum rotation period - // supported by the - // service. + // MaxRotationPeriodExponent: Indicates the maximum rotation period supported + // by the service. // See // EddystoneEidRegistration.rotation_period_exponent MaxRotationPeriodExponent int64 `json:"maxRotationPeriodExponent,omitempty"` - - // MinRotationPeriodExponent: Indicates the minimum rotation period - // supported by the - // service. + // MinRotationPeriodExponent: Indicates the minimum rotation period supported + // by the service. // See // EddystoneEidRegistration.rotation_period_exponent MinRotationPeriodExponent int64 `json:"minRotationPeriodExponent,omitempty"` - - // ServiceEcdhPublicKey: The beacon service's public key for use by a - // beacon to derive its + // ServiceEcdhPublicKey: The beacon service's public key for use by a beacon to + // derive its // Identity Key using Elliptic Curve Diffie-Hellman key exchange. ServiceEcdhPublicKey string `json:"serviceEcdhPublicKey,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "MaxRotationPeriodExponent") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "MaxRotationPeriodExponent") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "MaxRotationPeriodExponent") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxRotationPeriodExponent") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EphemeralIdRegistrationParams) MarshalJSON() ([]byte, error) { +func (s EphemeralIdRegistrationParams) MarshalJSON() ([]byte, error) { type NoMethod EphemeralIdRegistrationParams - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetInfoForObservedBeaconsRequest: Request for beacon and attachment @@ -997,139 +857,109 @@ type GetInfoForObservedBeaconsRequest struct { // all namespaces owned by the client. // Optional. NamespacedTypes []string `json:"namespacedTypes,omitempty"` - // Observations: The beacons that the client has encountered. // At least one must be given. Observations []*Observation `json:"observations,omitempty"` - // ForceSendFields is a list of field names (e.g. "NamespacedTypes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NamespacedTypes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NamespacedTypes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetInfoForObservedBeaconsRequest) MarshalJSON() ([]byte, error) { +func (s GetInfoForObservedBeaconsRequest) MarshalJSON() ([]byte, error) { type NoMethod GetInfoForObservedBeaconsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GetInfoForObservedBeaconsResponse: Information about the requested -// beacons, optionally including attachment +// GetInfoForObservedBeaconsResponse: Information about the requested beacons, +// optionally including attachment // data. type GetInfoForObservedBeaconsResponse struct { // Beacons: Public information about beacons. // May be empty if the request matched no beacons. Beacons []*BeaconInfo `json:"beacons,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Beacons") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Beacons") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Beacons") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Beacons") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetInfoForObservedBeaconsResponse) MarshalJSON() ([]byte, error) { +func (s GetInfoForObservedBeaconsResponse) MarshalJSON() ([]byte, error) { type NoMethod GetInfoForObservedBeaconsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// IndoorLevel: Indoor level, a human-readable string as returned by -// Google Maps APIs, +// IndoorLevel: Indoor level, a human-readable string as returned by Google +// Maps APIs, // useful to indicate which floor of a building a beacon is located on. type IndoorLevel struct { // Name: The name of this level. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IndoorLevel) MarshalJSON() ([]byte, error) { +func (s IndoorLevel) MarshalJSON() ([]byte, error) { type NoMethod IndoorLevel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LatLng: An object representing a latitude/longitude pair. This is -// expressed as a pair +// LatLng: An object representing a latitude/longitude pair. This is expressed +// as a pair // of doubles representing degrees latitude and degrees longitude. // Unless // specified otherwise, this must conform to the // WGS84 -// st -// andard. Values must be within normalized ranges. +// standard. Values must be within normalized ranges. type LatLng struct { - // Latitude: The latitude in degrees. It must be in the range [-90.0, - // +90.0]. + // Latitude: The latitude in degrees. It must be in the range [-90.0, +90.0]. Latitude float64 `json:"latitude,omitempty"` - // Longitude: The longitude in degrees. It must be in the range [-180.0, // +180.0]. Longitude float64 `json:"longitude,omitempty"` - // ForceSendFields is a list of field names (e.g. "Latitude") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Latitude") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Latitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LatLng) MarshalJSON() ([]byte, error) { +func (s LatLng) MarshalJSON() ([]byte, error) { type NoMethod LatLng - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *LatLng) UnmarshalJSON(data []byte) error { @@ -1148,37 +978,30 @@ func (s *LatLng) UnmarshalJSON(data []byte) error { return nil } -// ListBeaconAttachmentsResponse: Response to `ListBeaconAttachments` -// that contains the requested attachments. +// ListBeaconAttachmentsResponse: Response to `ListBeaconAttachments` that +// contains the requested attachments. type ListBeaconAttachmentsResponse struct { // Attachments: The attachments that corresponded to the request params. Attachments []*BeaconAttachment `json:"attachments,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Attachments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attachments") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attachments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListBeaconAttachmentsResponse) MarshalJSON() ([]byte, error) { +func (s ListBeaconAttachmentsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListBeaconAttachmentsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListBeaconsResponse: Response that contains list beacon results and @@ -1186,163 +1009,128 @@ func (s *ListBeaconAttachmentsResponse) MarshalJSON() ([]byte, error) { type ListBeaconsResponse struct { // Beacons: The beacons that matched the search criteria. Beacons []*Beacon `json:"beacons,omitempty"` - - // NextPageToken: An opaque pagination token that the client may provide - // in their next + // NextPageToken: An opaque pagination token that the client may provide in + // their next // request to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - - // TotalCount: Estimate of the total number of beacons matched by the - // query. Higher + // TotalCount: Estimate of the total number of beacons matched by the query. + // Higher // values may be less accurate. TotalCount int64 `json:"totalCount,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Beacons") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Beacons") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Beacons") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Beacons") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListBeaconsResponse) MarshalJSON() ([]byte, error) { +func (s ListBeaconsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListBeaconsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListDiagnosticsResponse: Response that contains the requested -// diagnostics. +// ListDiagnosticsResponse: Response that contains the requested diagnostics. type ListDiagnosticsResponse struct { // Diagnostics: The diagnostics matching the given request. Diagnostics []*Diagnostics `json:"diagnostics,omitempty"` - - // NextPageToken: Token that can be used for pagination. Returned only - // if the + // NextPageToken: Token that can be used for pagination. Returned only if + // the // request matches more beacons than can be returned in this response. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Diagnostics") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Diagnostics") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Diagnostics") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListDiagnosticsResponse) MarshalJSON() ([]byte, error) { +func (s ListDiagnosticsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListDiagnosticsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListNamespacesResponse: Response to ListNamespacesRequest that -// contains all the project's namespaces. +// ListNamespacesResponse: Response to ListNamespacesRequest that contains all +// the project's namespaces. type ListNamespacesResponse struct { // Namespaces: The attachments that corresponded to the request params. Namespaces []*Namespace `json:"namespaces,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Namespaces") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Namespaces") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Namespaces") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListNamespacesResponse) MarshalJSON() ([]byte, error) { +func (s ListNamespacesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListNamespacesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Namespace: An attachment namespace defines read and write access for -// all the attachments +// Namespace: An attachment namespace defines read and write access for all the +// attachments // created under it. Each namespace is globally unique, and owned by // one -// project which is the only project that can create attachments under -// it. +// project which is the only project that can create attachments under it. type Namespace struct { - // NamespaceName: Resource name of this namespace. Namespaces names have - // the format: + // NamespaceName: Resource name of this namespace. Namespaces names have the + // format: // namespaces/namespace. NamespaceName string `json:"namespaceName,omitempty"` - - // ServingVisibility: Specifies what clients may receive attachments - // under this namespace + // ServingVisibility: Specifies what clients may receive attachments under this + // namespace // via `beaconinfo.getforobserved`. // // Possible values: // "VISIBILITY_UNSPECIFIED" - Do not use this value. // "UNLISTED" - Served only to the project that owns the namespace. - // "PUBLIC" - Any project can subscribe to attachments under the - // namespace. + // "PUBLIC" - Any project can subscribe to attachments under the namespace. ServingVisibility string `json:"servingVisibility,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NamespaceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NamespaceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NamespaceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Namespace) MarshalJSON() ([]byte, error) { +func (s Namespace) MarshalJSON() ([]byte, error) { type NoMethod Namespace - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Observation: Represents one beacon observed once. @@ -1350,49 +1138,37 @@ type Observation struct { // AdvertisedId: The ID advertised by the beacon the client has // encountered. // - // If the submitted `advertised_id` type is Eddystone-EID, then the - // client - // must be authorized to resolve the given beacon. Otherwise no data - // will be + // If the submitted `advertised_id` type is Eddystone-EID, then the client + // must be authorized to resolve the given beacon. Otherwise no data will + // be // returned for that beacon. // Required. AdvertisedId *AdvertisedId `json:"advertisedId,omitempty"` - - // Telemetry: The array of telemetry bytes received from the beacon. The - // server is - // responsible for parsing it. This field may frequently be empty, - // as + // Telemetry: The array of telemetry bytes received from the beacon. The server + // is + // responsible for parsing it. This field may frequently be empty, as // with a beacon that transmits telemetry only occasionally. Telemetry string `json:"telemetry,omitempty"` - // TimestampMs: Time when the beacon was observed. TimestampMs string `json:"timestampMs,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdvertisedId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdvertisedId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvertisedId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Observation) MarshalJSON() ([]byte, error) { +func (s Observation) MarshalJSON() ([]byte, error) { type NoMethod Observation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "proximitybeacon.beaconinfo.getforobserved": - type BeaconinfoGetforobservedCall struct { s *Service getinfoforobservedbeaconsrequest *GetInfoForObservedBeaconsRequest @@ -1401,13 +1177,13 @@ type BeaconinfoGetforobservedCall struct { header_ http.Header } -// Getforobserved: Given one or more beacon observations, returns any -// beacon information +// Getforobserved: Given one or more beacon observations, returns any beacon +// information // and attachments accessible to your application. Authorize by using // the -// [API -// key](https://developers.google.com/beacons/proximity/get-star -// ted#request_a_browser_api_key) +// API +// key +// (https://developers.google.com/beacons/proximity/get-started#request_a_browser_api_key) // for the application. func (r *BeaconinfoService) Getforobserved(getinfoforobservedbeaconsrequest *GetInfoForObservedBeaconsRequest) *BeaconinfoGetforobservedCall { c := &BeaconinfoGetforobservedCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1416,23 +1192,21 @@ func (r *BeaconinfoService) Getforobserved(getinfoforobservedbeaconsrequest *Get } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconinfoGetforobservedCall) Fields(s ...googleapi.Field) *BeaconinfoGetforobservedCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconinfoGetforobservedCall) Context(ctx context.Context) *BeaconinfoGetforobservedCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconinfoGetforobservedCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1441,18 +1215,12 @@ func (c *BeaconinfoGetforobservedCall) Header() http.Header { } func (c *BeaconinfoGetforobservedCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.getinfoforobservedbeaconsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/beaconinfo:getforobserved") @@ -1462,17 +1230,15 @@ func (c *BeaconinfoGetforobservedCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beaconinfo.getforobserved" call. -// Exactly one of *GetInfoForObservedBeaconsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GetInfoForObservedBeaconsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GetInfoForObservedBeaconsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *BeaconinfoGetforobservedCall) Do(opts ...googleapi.CallOption) (*GetInfoForObservedBeaconsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1480,17 +1246,17 @@ func (c *BeaconinfoGetforobservedCall) Do(opts ...googleapi.CallOption) (*GetInf if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GetInfoForObservedBeaconsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1503,25 +1269,7 @@ func (c *BeaconinfoGetforobservedCall) Do(opts ...googleapi.CallOption) (*GetInf return nil, err } return ret, nil - // { - // "description": "Given one or more beacon observations, returns any beacon information\nand attachments accessible to your application. Authorize by using the\n[API\nkey](https://developers.google.com/beacons/proximity/get-started#request_a_browser_api_key)\nfor the application.", - // "flatPath": "v1beta1/beaconinfo:getforobserved", - // "httpMethod": "POST", - // "id": "proximitybeacon.beaconinfo.getforobserved", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta1/beaconinfo:getforobserved", - // "request": { - // "$ref": "GetInfoForObservedBeaconsRequest" - // }, - // "response": { - // "$ref": "GetInfoForObservedBeaconsResponse" - // } - // } - -} - -// method id "proximitybeacon.beacons.activate": +} type BeaconsActivateCall struct { s *Service @@ -1533,31 +1281,33 @@ type BeaconsActivateCall struct { // Activate: Activates a beacon. A beacon that is active will return // information -// and attachment data when queried via -// `beaconinfo.getforobserved`. -// Calling this method on an already active beacon will do nothing -// (but +// and attachment data when queried via `beaconinfo.getforobserved`. +// Calling this method on an already active beacon will do nothing (but // will return a successful response code). // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a // signed-in user with **Is owner** or **Can edit** permissions in the // Google // Developers Console project. +// +// - beaconName: Beacon that should be activated. A beacon name has the +// format +// "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by +// the beacon and N is a code for the beacon's type. Possible values are +// `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` +// for AltBeacon. For Eddystone-EID beacons, you may use either the +// current EID or the beacon's "stable" UID. func (r *BeaconsService) Activate(beaconName string) *BeaconsActivateCall { c := &BeaconsActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.beaconName = beaconName return c } -// ProjectId sets the optional parameter "projectId": The project id of -// the beacon to activate. If the project id is not -// specified then the project making the request is used. The project -// id +// ProjectId sets the optional parameter "projectId": The project id of the +// beacon to activate. If the project id is not +// specified then the project making the request is used. The project id // must match the project that owns the beacon. func (c *BeaconsActivateCall) ProjectId(projectId string) *BeaconsActivateCall { c.urlParams_.Set("projectId", projectId) @@ -1565,23 +1315,21 @@ func (c *BeaconsActivateCall) ProjectId(projectId string) *BeaconsActivateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsActivateCall) Fields(s ...googleapi.Field) *BeaconsActivateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsActivateCall) Context(ctx context.Context) *BeaconsActivateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsActivateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1590,12 +1338,7 @@ func (c *BeaconsActivateCall) Header() http.Header { } func (c *BeaconsActivateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1609,16 +1352,14 @@ func (c *BeaconsActivateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "beaconName": c.beaconName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.activate" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BeaconsActivateCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1626,17 +1367,17 @@ func (c *BeaconsActivateCall) Do(opts ...googleapi.CallOption) (*Empty, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1649,40 +1390,7 @@ func (c *BeaconsActivateCall) Do(opts ...googleapi.CallOption) (*Empty, error) { return nil, err } return ret, nil - // { - // "description": "Activates a beacon. A beacon that is active will return information\nand attachment data when queried via `beaconinfo.getforobserved`.\nCalling this method on an already active beacon will do nothing (but\nwill return a successful response code).\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **Is owner** or **Can edit** permissions in the Google\nDevelopers Console project.", - // "flatPath": "v1beta1/beacons/{beaconsId}:activate", - // "httpMethod": "POST", - // "id": "proximitybeacon.beacons.activate", - // "parameterOrder": [ - // "beaconName" - // ], - // "parameters": { - // "beaconName": { - // "description": "Beacon that should be activated. A beacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.", - // "location": "path", - // "pattern": "^beacons/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project id of the beacon to activate. If the project id is not\nspecified then the project making the request is used. The project id\nmust match the project that owns the beacon.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+beaconName}:activate", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.deactivate": +} type BeaconsDeactivateCall struct { s *Service @@ -1701,23 +1409,28 @@ type BeaconsDeactivateCall struct { // beacon will do nothing (but will return a successful response // code). // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a // signed-in user with **Is owner** or **Can edit** permissions in the // Google // Developers Console project. +// +// - beaconName: Beacon that should be deactivated. A beacon name has the +// format +// "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by +// the beacon and N is a code for the beacon's type. Possible values are +// `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` +// for AltBeacon. For Eddystone-EID beacons, you may use either the +// current EID or the beacon's "stable" UID. func (r *BeaconsService) Deactivate(beaconName string) *BeaconsDeactivateCall { c := &BeaconsDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.beaconName = beaconName return c } -// ProjectId sets the optional parameter "projectId": The project id of -// the beacon to deactivate. If the project id is not +// ProjectId sets the optional parameter "projectId": The project id of the +// beacon to deactivate. If the project id is not // specified then the project making the request is used. The project id // must // match the project that owns the beacon. @@ -1727,23 +1440,21 @@ func (c *BeaconsDeactivateCall) ProjectId(projectId string) *BeaconsDeactivateCa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsDeactivateCall) Fields(s ...googleapi.Field) *BeaconsDeactivateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsDeactivateCall) Context(ctx context.Context) *BeaconsDeactivateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsDeactivateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1752,12 +1463,7 @@ func (c *BeaconsDeactivateCall) Header() http.Header { } func (c *BeaconsDeactivateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1771,16 +1477,14 @@ func (c *BeaconsDeactivateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "beaconName": c.beaconName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.deactivate" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BeaconsDeactivateCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1788,17 +1492,17 @@ func (c *BeaconsDeactivateCall) Do(opts ...googleapi.CallOption) (*Empty, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1811,40 +1515,7 @@ func (c *BeaconsDeactivateCall) Do(opts ...googleapi.CallOption) (*Empty, error) return nil, err } return ret, nil - // { - // "description": "Deactivates a beacon. Once deactivated, the API will not return\ninformation nor attachment data for the beacon when queried via\n`beaconinfo.getforobserved`. Calling this method on an already inactive\nbeacon will do nothing (but will return a successful response code).\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **Is owner** or **Can edit** permissions in the Google\nDevelopers Console project.", - // "flatPath": "v1beta1/beacons/{beaconsId}:deactivate", - // "httpMethod": "POST", - // "id": "proximitybeacon.beacons.deactivate", - // "parameterOrder": [ - // "beaconName" - // ], - // "parameters": { - // "beaconName": { - // "description": "Beacon that should be deactivated. A beacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.", - // "location": "path", - // "pattern": "^beacons/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project id of the beacon to deactivate. If the project id is not\nspecified then the project making the request is used. The project id must\nmatch the project that owns the beacon.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+beaconName}:deactivate", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.decommission": +} type BeaconsDecommissionCall struct { s *Service @@ -1854,33 +1525,37 @@ type BeaconsDecommissionCall struct { header_ http.Header } -// Decommission: Decommissions the specified beacon in the service. This -// beacon will no +// Decommission: Decommissions the specified beacon in the service. This beacon +// will no // longer be returned from `beaconinfo.getforobserved`. This operation // is // permanent -- you will not be able to re-register a beacon with this // ID // again. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a // signed-in user with **Is owner** or **Can edit** permissions in the // Google // Developers Console project. +// +// - beaconName: Beacon that should be decommissioned. A beacon name has the +// format +// "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by +// the beacon and N is a code for the beacon's type. Possible values are +// `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` +// for AltBeacon. For Eddystone-EID beacons, you may use either the +// current EID of the beacon's "stable" UID. func (r *BeaconsService) Decommission(beaconName string) *BeaconsDecommissionCall { c := &BeaconsDecommissionCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.beaconName = beaconName return c } -// ProjectId sets the optional parameter "projectId": The project id of -// the beacon to decommission. If the project id is not -// specified then the project making the request is used. The project -// id +// ProjectId sets the optional parameter "projectId": The project id of the +// beacon to decommission. If the project id is not +// specified then the project making the request is used. The project id // must match the project that owns the beacon. func (c *BeaconsDecommissionCall) ProjectId(projectId string) *BeaconsDecommissionCall { c.urlParams_.Set("projectId", projectId) @@ -1888,23 +1563,21 @@ func (c *BeaconsDecommissionCall) ProjectId(projectId string) *BeaconsDecommissi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsDecommissionCall) Fields(s ...googleapi.Field) *BeaconsDecommissionCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsDecommissionCall) Context(ctx context.Context) *BeaconsDecommissionCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsDecommissionCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1913,12 +1586,7 @@ func (c *BeaconsDecommissionCall) Header() http.Header { } func (c *BeaconsDecommissionCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1932,16 +1600,14 @@ func (c *BeaconsDecommissionCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "beaconName": c.beaconName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.decommission" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BeaconsDecommissionCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1949,17 +1615,17 @@ func (c *BeaconsDecommissionCall) Do(opts ...googleapi.CallOption) (*Empty, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1972,40 +1638,7 @@ func (c *BeaconsDecommissionCall) Do(opts ...googleapi.CallOption) (*Empty, erro return nil, err } return ret, nil - // { - // "description": "Decommissions the specified beacon in the service. This beacon will no\nlonger be returned from `beaconinfo.getforobserved`. This operation is\npermanent -- you will not be able to re-register a beacon with this ID\nagain.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **Is owner** or **Can edit** permissions in the Google\nDevelopers Console project.", - // "flatPath": "v1beta1/beacons/{beaconsId}:decommission", - // "httpMethod": "POST", - // "id": "proximitybeacon.beacons.decommission", - // "parameterOrder": [ - // "beaconName" - // ], - // "parameters": { - // "beaconName": { - // "description": "Beacon that should be decommissioned. A beacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID of the beacon's \"stable\" UID.\nRequired.", - // "location": "path", - // "pattern": "^beacons/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project id of the beacon to decommission. If the project id is not\nspecified then the project making the request is used. The project id\nmust match the project that owns the beacon.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+beaconName}:decommission", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.delete": +} type BeaconsDeleteCall struct { s *Service @@ -2015,29 +1648,33 @@ type BeaconsDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified beacon including all diagnostics data -// for the beacon -// as well as any attachments on the beacon (including those belonging -// to +// Delete: Deletes the specified beacon including all diagnostics data for the +// beacon +// as well as any attachments on the beacon (including those belonging to // other projects). This operation cannot be undone. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a // signed-in user with **Is owner** or **Can edit** permissions in the // Google // Developers Console project. +// +// - beaconName: Beacon that should be deleted. A beacon name has the +// format +// "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by +// the beacon and N is a code for the beacon's type. Possible values are +// `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` +// for AltBeacon. For Eddystone-EID beacons, you may use either the +// current EID or the beacon's "stable" UID. func (r *BeaconsService) Delete(beaconName string) *BeaconsDeleteCall { c := &BeaconsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.beaconName = beaconName return c } -// ProjectId sets the optional parameter "projectId": The project id of -// the beacon to delete. If not provided, the project +// ProjectId sets the optional parameter "projectId": The project id of the +// beacon to delete. If not provided, the project // that is making the request is used. func (c *BeaconsDeleteCall) ProjectId(projectId string) *BeaconsDeleteCall { c.urlParams_.Set("projectId", projectId) @@ -2045,23 +1682,21 @@ func (c *BeaconsDeleteCall) ProjectId(projectId string) *BeaconsDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsDeleteCall) Fields(s ...googleapi.Field) *BeaconsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsDeleteCall) Context(ctx context.Context) *BeaconsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2070,12 +1705,7 @@ func (c *BeaconsDeleteCall) Header() http.Header { } func (c *BeaconsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2089,16 +1719,14 @@ func (c *BeaconsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "beaconName": c.beaconName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BeaconsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2106,17 +1734,17 @@ func (c *BeaconsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2129,40 +1757,7 @@ func (c *BeaconsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { return nil, err } return ret, nil - // { - // "description": "Deletes the specified beacon including all diagnostics data for the beacon\nas well as any attachments on the beacon (including those belonging to\nother projects). This operation cannot be undone.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **Is owner** or **Can edit** permissions in the Google\nDevelopers Console project.", - // "flatPath": "v1beta1/beacons/{beaconsId}", - // "httpMethod": "DELETE", - // "id": "proximitybeacon.beacons.delete", - // "parameterOrder": [ - // "beaconName" - // ], - // "parameters": { - // "beaconName": { - // "description": "Beacon that should be deleted. A beacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.", - // "location": "path", - // "pattern": "^beacons/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project id of the beacon to delete. If not provided, the project\nthat is making the request is used.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+beaconName}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.get": +} type BeaconsGetCall struct { s *Service @@ -2173,17 +1768,13 @@ type BeaconsGetCall struct { header_ http.Header } -// Get: Returns detailed information about the specified -// beacon. +// Get: Returns detailed information about the specified beacon. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// -// signed-in user with **viewer**, **Is owner** or **Can edit** -// permissions in +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a +// signed-in user with **viewer**, **Is owner** or **Can edit** permissions +// in // the Google Developers Console project. // // Requests may supply an Eddystone-EID beacon name in the @@ -2195,16 +1786,24 @@ type BeaconsGetCall struct { // beacon's stable Eddystone-UID. Clients not authorized to resolve // the // beacon's ephemeral Eddystone-EID broadcast will receive an error. +// +// - beaconName: Resource name of this beacon. A beacon name has the +// format +// "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by +// the beacon and N is a code for the beacon's type. Possible values are +// `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` +// for AltBeacon. For Eddystone-EID beacons, you may use either the +// current EID or the beacon's "stable" UID. func (r *BeaconsService) Get(beaconName string) *BeaconsGetCall { c := &BeaconsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.beaconName = beaconName return c } -// ProjectId sets the optional parameter "projectId": The project id of -// the beacon to request. If the project id is not specified -// then the project making the request is used. The project id must -// match the +// ProjectId sets the optional parameter "projectId": The project id of the +// beacon to request. If the project id is not specified +// then the project making the request is used. The project id must match +// the // project that owns the beacon. func (c *BeaconsGetCall) ProjectId(projectId string) *BeaconsGetCall { c.urlParams_.Set("projectId", projectId) @@ -2212,33 +1811,29 @@ func (c *BeaconsGetCall) ProjectId(projectId string) *BeaconsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsGetCall) Fields(s ...googleapi.Field) *BeaconsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BeaconsGetCall) IfNoneMatch(entityTag string) *BeaconsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsGetCall) Context(ctx context.Context) *BeaconsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2247,12 +1842,7 @@ func (c *BeaconsGetCall) Header() http.Header { } func (c *BeaconsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2269,16 +1859,14 @@ func (c *BeaconsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "beaconName": c.beaconName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.get" call. -// Exactly one of *Beacon or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Beacon.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Beacon.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BeaconsGetCall) Do(opts ...googleapi.CallOption) (*Beacon, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2286,17 +1874,17 @@ func (c *BeaconsGetCall) Do(opts ...googleapi.CallOption) (*Beacon, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Beacon{ ServerResponse: googleapi.ServerResponse{ @@ -2309,40 +1897,7 @@ func (c *BeaconsGetCall) Do(opts ...googleapi.CallOption) (*Beacon, error) { return nil, err } return ret, nil - // { - // "description": "Returns detailed information about the specified beacon.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **viewer**, **Is owner** or **Can edit** permissions in\nthe Google Developers Console project.\n\nRequests may supply an Eddystone-EID beacon name in the form:\n`beacons/4!beaconId` where the `beaconId` is the base16 ephemeral ID\nbroadcast by the beacon. The returned `Beacon` object will contain the\nbeacon's stable Eddystone-UID. Clients not authorized to resolve the\nbeacon's ephemeral Eddystone-EID broadcast will receive an error.", - // "flatPath": "v1beta1/beacons/{beaconsId}", - // "httpMethod": "GET", - // "id": "proximitybeacon.beacons.get", - // "parameterOrder": [ - // "beaconName" - // ], - // "parameters": { - // "beaconName": { - // "description": "Resource name of this beacon. A beacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.", - // "location": "path", - // "pattern": "^beacons/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project id of the beacon to request. If the project id is not specified\nthen the project making the request is used. The project id must match the\nproject that owns the beacon.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+beaconName}", - // "response": { - // "$ref": "Beacon" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.list": +} type BeaconsListCall struct { s *Service @@ -2354,26 +1909,22 @@ type BeaconsListCall struct { // List: Searches the beacon registry for beacons that match the given // search -// criteria. Only those beacons that the client has permission to -// list +// criteria. Only those beacons that the client has permission to list // will be returned. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// -// signed-in user with **viewer**, **Is owner** or **Can edit** -// permissions in +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a +// signed-in user with **viewer**, **Is owner** or **Can edit** permissions +// in // the Google Developers Console project. func (r *BeaconsService) List() *BeaconsListCall { c := &BeaconsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of records to return for this request, up to a +// PageSize sets the optional parameter "pageSize": The maximum number of +// records to return for this request, up to a // server-defined upper limit. func (c *BeaconsListCall) PageSize(pageSize int64) *BeaconsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) @@ -2387,169 +1938,114 @@ func (c *BeaconsListCall) PageToken(pageToken string) *BeaconsListCall { return c } -// ProjectId sets the optional parameter "projectId": The project id to -// list beacons under. If not present then the project +// ProjectId sets the optional parameter "projectId": The project id to list +// beacons under. If not present then the project // credential that made the request is used as the project. func (c *BeaconsListCall) ProjectId(projectId string) *BeaconsListCall { c.urlParams_.Set("projectId", projectId) return c } -// Q sets the optional parameter "q": Filter query string that supports -// the following field filters: +// Q sets the optional parameter "q": Filter query string that supports the +// following field filters: // // - **description:""** // For example: **description:"Room 3"** -// Returns beacons whose description matches tokens in the string -// -// "Room 3" -// -// (not necessarily that exact string). -// The string must be double-quoted. -// - **status:``** -// For example: **status:active** -// Returns beacons whose status matches the given value. Values must -// -// be -// -// one of the Beacon.Status enum values (case insensitive). Accepts -// multiple filters which will be combined with OR logic. -// - **stability:``** -// For example: **stability:mobile** -// Returns beacons whose expected stability matches the given value. -// Values must be one of the Beacon.Stability enum values (case -// insensitive). Accepts multiple filters which will be combined with -// OR logic. -// - **place\_id:""** -// For example: **place\_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="** -// Returns beacons explicitly registered at the given place, expressed -// -// as -// -// a Place ID obtained from [Google Places API](/places/place-id). -// -// Does not -// -// match places inside the given place. Does not consider the -// -// beacon's -// -// actual location (which may be different from its registered -// -// place). -// -// Accepts multiple filters that will be combined with OR logic. The -// -// place -// -// ID must be double-quoted. -// - **registration\_time`[<|>|<=|>=]`** -// For example: **registration\_time>=1433116800** -// Returns beacons whose registration time matches the given filter. -// Supports the operators: <, >, <=, and >=. Timestamp must be -// -// expressed as -// -// an integer number of seconds since midnight January 1, 1970 UTC. -// -// Accepts -// -// at most two filters that will be combined with AND logic, to -// -// support -// -// "between" semantics. If more than two are supplied, the latter ones -// -// are -// -// ignored. -// - **lat:` lng: radius:`** -// For example: **lat:51.1232343 lng:-1.093852 radius:1000** -// Returns beacons whose registered location is within the given -// -// circle. -// -// When any of these fields are given, all are required. Latitude and -// longitude must be decimal degrees between -90.0 and 90.0 and -// -// between -// -// -180.0 and 180.0 respectively. Radius must be an integer number of -// meters between 10 and 1,000,000 (1000 km). -// - **property:"="** -// For example: **property:"battery-type=CR2032"** -// Returns beacons which have a property of the given name and value. -// Supports multiple filters which will be combined with OR logic. -// The entire name=value string must be double-quoted as one string. -// - **attachment\_type:""** -// For example: **attachment_type:"my-namespace/my-type"** -// Returns beacons having at least one attachment of the given -// -// namespaced -// -// type. Supports "any within this namespace" via the partial -// -// wildcard -// -// syntax: "my-namespace/*". Supports multiple filters which will be -// combined with OR logic. The string must be double-quoted. -// - **indoor\_level:""** -// For example: **indoor\_level:"1"** -// Returns beacons which are located on the given indoor level. -// -// Accepts -// -// multiple filters that will be combined with OR logic. +// Returns beacons whose description matches tokens in the string "Room 3" +// (not necessarily that exact string). +// The string must be double-quoted. +// - **status:``** +// For example: **status:active** +// Returns beacons whose status matches the given value. Values must be +// one of the Beacon.Status enum values (case insensitive). Accepts +// multiple filters which will be combined with OR logic. +// - **stability:``** +// For example: **stability:mobile** +// Returns beacons whose expected stability matches the given value. +// Values must be one of the Beacon.Stability enum values (case +// insensitive). Accepts multiple filters which will be combined with +// OR logic. +// - **place\_id:""** +// For example: **place\_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="** +// Returns beacons explicitly registered at the given place, expressed as +// a Place ID obtained from Google Places API (/places/place-id). Does not +// match places inside the given place. Does not consider the beacon's +// actual location (which may be different from its registered place). +// Accepts multiple filters that will be combined with OR logic. The place +// ID must be double-quoted. +// - **registration\_time`[<|>|<=|>=]`** +// For example: **registration\_time>=1433116800** +// Returns beacons whose registration time matches the given filter. +// Supports the operators: <, >, <=, and >=. Timestamp must be expressed as +// an integer number of seconds since midnight January 1, 1970 UTC. Accepts +// at most two filters that will be combined with AND logic, to support +// "between" semantics. If more than two are supplied, the latter ones are +// ignored. +// - **lat:` lng: radius:`** +// For example: **lat:51.1232343 lng:-1.093852 radius:1000** +// Returns beacons whose registered location is within the given circle. +// When any of these fields are given, all are required. Latitude and +// longitude must be decimal degrees between -90.0 and 90.0 and between +// -180.0 and 180.0 respectively. Radius must be an integer number of +// meters between 10 and 1,000,000 (1000 km). +// - **property:"="** +// For example: **property:"battery-type=CR2032"** +// Returns beacons which have a property of the given name and value. +// Supports multiple filters which will be combined with OR logic. +// The entire name=value string must be double-quoted as one string. +// - **attachment\_type:""** +// For example: **attachment_type:"my-namespace/my-type"** +// Returns beacons having at least one attachment of the given namespaced +// type. Supports "any within this namespace" via the partial wildcard +// syntax: "my-namespace/*". Supports multiple filters which will be +// combined with OR logic. The string must be double-quoted. +// - **indoor\_level:""** +// For example: **indoor\_level:"1"** +// Returns beacons which are located on the given indoor level. Accepts +// multiple filters that will be combined with OR logic. // // Multiple filters on the same field are combined with OR logic // (except // registration_time which is combined with AND logic). -// Multiple filters on different fields are combined with AND -// logic. +// Multiple filters on different fields are combined with AND logic. // Filters should be separated by spaces. // -// As with any HTTP query string parameter, the whole filter expression -// must +// As with any HTTP query string parameter, the whole filter expression must // be URL-encoded. // // Example REST // request: // `GET -// /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.0 -// 95%20radius:1000` +// /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000` func (c *BeaconsListCall) Q(q string) *BeaconsListCall { c.urlParams_.Set("q", q) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsListCall) Fields(s ...googleapi.Field) *BeaconsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BeaconsListCall) IfNoneMatch(entityTag string) *BeaconsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsListCall) Context(ctx context.Context) *BeaconsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2558,12 +2054,7 @@ func (c *BeaconsListCall) Header() http.Header { } func (c *BeaconsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2577,16 +2068,15 @@ func (c *BeaconsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.list" call. -// Exactly one of *ListBeaconsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListBeaconsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListBeaconsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BeaconsListCall) Do(opts ...googleapi.CallOption) (*ListBeaconsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2594,17 +2084,17 @@ func (c *BeaconsListCall) Do(opts ...googleapi.CallOption) (*ListBeaconsResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListBeaconsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2617,44 +2107,6 @@ func (c *BeaconsListCall) Do(opts ...googleapi.CallOption) (*ListBeaconsResponse return nil, err } return ret, nil - // { - // "description": "Searches the beacon registry for beacons that match the given search\ncriteria. Only those beacons that the client has permission to list\nwill be returned.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **viewer**, **Is owner** or **Can edit** permissions in\nthe Google Developers Console project.", - // "flatPath": "v1beta1/beacons", - // "httpMethod": "GET", - // "id": "proximitybeacon.beacons.list", - // "parameterOrder": [], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of records to return for this request, up to a\nserver-defined upper limit.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A pagination token obtained from a previous request to list beacons.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "The project id to list beacons under. If not present then the project\ncredential that made the request is used as the project.\nOptional.", - // "location": "query", - // "type": "string" - // }, - // "q": { - // "description": "Filter query string that supports the following field filters:\n\n* **description:`\"\u003cstring\u003e\"`**\n For example: **description:\"Room 3\"**\n Returns beacons whose description matches tokens in the string \"Room 3\"\n (not necessarily that exact string).\n The string must be double-quoted.\n* **status:`\u003cenum\u003e`**\n For example: **status:active**\n Returns beacons whose status matches the given value. Values must be\n one of the Beacon.Status enum values (case insensitive). Accepts\n multiple filters which will be combined with OR logic.\n* **stability:`\u003cenum\u003e`**\n For example: **stability:mobile**\n Returns beacons whose expected stability matches the given value.\n Values must be one of the Beacon.Stability enum values (case\n insensitive). Accepts multiple filters which will be combined with\n OR logic.\n* **place\\_id:`\"\u003cstring\u003e\"`**\n For example: **place\\_id:\"ChIJVSZzVR8FdkgRXGmmm6SslKw=\"**\n Returns beacons explicitly registered at the given place, expressed as\n a Place ID obtained from [Google Places API](/places/place-id). Does not\n match places inside the given place. Does not consider the beacon's\n actual location (which may be different from its registered place).\n Accepts multiple filters that will be combined with OR logic. The place\n ID must be double-quoted.\n* **registration\\_time`[\u003c|\u003e|\u003c=|\u003e=]\u003cinteger\u003e`**\n For example: **registration\\_time\u003e=1433116800**\n Returns beacons whose registration time matches the given filter.\n Supports the operators: \u003c, \u003e, \u003c=, and \u003e=. Timestamp must be expressed as\n an integer number of seconds since midnight January 1, 1970 UTC. Accepts\n at most two filters that will be combined with AND logic, to support\n \"between\" semantics. If more than two are supplied, the latter ones are\n ignored.\n* **lat:`\u003cdouble\u003e lng:\u003cdouble\u003e radius:\u003cinteger\u003e`**\n For example: **lat:51.1232343 lng:-1.093852 radius:1000**\n Returns beacons whose registered location is within the given circle.\n When any of these fields are given, all are required. Latitude and\n longitude must be decimal degrees between -90.0 and 90.0 and between\n -180.0 and 180.0 respectively. Radius must be an integer number of\n meters between 10 and 1,000,000 (1000 km).\n* **property:`\"\u003cstring\u003e=\u003cstring\u003e\"`**\n For example: **property:\"battery-type=CR2032\"**\n Returns beacons which have a property of the given name and value.\n Supports multiple filters which will be combined with OR logic.\n The entire name=value string must be double-quoted as one string.\n* **attachment\\_type:`\"\u003cstring\u003e\"`**\n For example: **attachment_type:\"my-namespace/my-type\"**\n Returns beacons having at least one attachment of the given namespaced\n type. Supports \"any within this namespace\" via the partial wildcard\n syntax: \"my-namespace/*\". Supports multiple filters which will be\n combined with OR logic. The string must be double-quoted.\n* **indoor\\_level:`\"\u003cstring\u003e\"`**\n For example: **indoor\\_level:\"1\"**\n Returns beacons which are located on the given indoor level. Accepts\n multiple filters that will be combined with OR logic.\n\nMultiple filters on the same field are combined with OR logic (except\nregistration_time which is combined with AND logic).\nMultiple filters on different fields are combined with AND logic.\nFilters should be separated by spaces.\n\nAs with any HTTP query string parameter, the whole filter expression must\nbe URL-encoded.\n\nExample REST request:\n`GET\n/v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000`", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/beacons", - // "response": { - // "$ref": "ListBeaconsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - } // Pages invokes f for each page of results. @@ -2662,7 +2114,7 @@ func (c *BeaconsListCall) Do(opts ...googleapi.CallOption) (*ListBeaconsResponse // The provided context supersedes any context provided to the Context method. func (c *BeaconsListCall) Pages(ctx context.Context, f func(*ListBeaconsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2678,8 +2130,6 @@ func (c *BeaconsListCall) Pages(ctx context.Context, f func(*ListBeaconsResponse } } -// method id "proximitybeacon.beacons.register": - type BeaconsRegisterCall struct { s *Service beacon *Beacon @@ -2693,12 +2143,9 @@ type BeaconsRegisterCall struct { // These IDs are unique within the system. An ID can be registered only // once. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a // signed-in user with **Is owner** or **Can edit** permissions in the // Google // Developers Console project. @@ -2708,10 +2155,9 @@ func (r *BeaconsService) Register(beacon *Beacon) *BeaconsRegisterCall { return c } -// ProjectId sets the optional parameter "projectId": The project id of -// the project the beacon will be registered to. If -// the project id is not specified then the project making the -// request +// ProjectId sets the optional parameter "projectId": The project id of the +// project the beacon will be registered to. If +// the project id is not specified then the project making the request // is used. func (c *BeaconsRegisterCall) ProjectId(projectId string) *BeaconsRegisterCall { c.urlParams_.Set("projectId", projectId) @@ -2719,23 +2165,21 @@ func (c *BeaconsRegisterCall) ProjectId(projectId string) *BeaconsRegisterCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsRegisterCall) Fields(s ...googleapi.Field) *BeaconsRegisterCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsRegisterCall) Context(ctx context.Context) *BeaconsRegisterCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsRegisterCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2744,18 +2188,12 @@ func (c *BeaconsRegisterCall) Header() http.Header { } func (c *BeaconsRegisterCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.beacon) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/beacons:register") @@ -2765,16 +2203,14 @@ func (c *BeaconsRegisterCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.register" call. -// Exactly one of *Beacon or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Beacon.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Beacon.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BeaconsRegisterCall) Do(opts ...googleapi.CallOption) (*Beacon, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2782,17 +2218,17 @@ func (c *BeaconsRegisterCall) Do(opts ...googleapi.CallOption) (*Beacon, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Beacon{ ServerResponse: googleapi.ServerResponse{ @@ -2805,34 +2241,7 @@ func (c *BeaconsRegisterCall) Do(opts ...googleapi.CallOption) (*Beacon, error) return nil, err } return ret, nil - // { - // "description": "Registers a previously unregistered beacon given its `advertisedId`.\nThese IDs are unique within the system. An ID can be registered only once.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **Is owner** or **Can edit** permissions in the Google\nDevelopers Console project.", - // "flatPath": "v1beta1/beacons:register", - // "httpMethod": "POST", - // "id": "proximitybeacon.beacons.register", - // "parameterOrder": [], - // "parameters": { - // "projectId": { - // "description": "The project id of the project the beacon will be registered to. If\nthe project id is not specified then the project making the request\nis used.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/beacons:register", - // "request": { - // "$ref": "Beacon" - // }, - // "response": { - // "$ref": "Beacon" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.update": +} type BeaconsUpdateCall struct { s *Service @@ -2843,28 +2252,35 @@ type BeaconsUpdateCall struct { header_ http.Header } -// Update: Updates the information about the specified beacon. **Any -// field that you do +// Update: Updates the information about the specified beacon. **Any field that +// you do // not populate in the submitted beacon will be permanently erased**, so // you // should follow the "read, modify, write" pattern to avoid // inadvertently // destroying data. // -// Changes to the beacon status via this method will be silently -// ignored. +// Changes to the beacon status via this method will be silently ignored. // To update beacon status, use the separate methods on this API // for // activation, deactivation, and decommissioning. -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a // signed-in user with **Is owner** or **Can edit** permissions in the // Google // Developers Console project. +// +// - beaconName: Resource name of this beacon. A beacon name has the +// format +// "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by +// the beacon and N is a code for the beacon's type. Possible values are +// `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon. +// +// This field must be left empty when registering. After reading a +// beacon, +// +// clients can use the name for future operations. func (r *BeaconsService) Update(beaconName string, beacon *Beacon) *BeaconsUpdateCall { c := &BeaconsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.beaconName = beaconName @@ -2872,10 +2288,9 @@ func (r *BeaconsService) Update(beaconName string, beacon *Beacon) *BeaconsUpdat return c } -// ProjectId sets the optional parameter "projectId": The project id of -// the beacon to update. If the project id is not -// specified then the project making the request is used. The project -// id +// ProjectId sets the optional parameter "projectId": The project id of the +// beacon to update. If the project id is not +// specified then the project making the request is used. The project id // must match the project that owns the beacon. func (c *BeaconsUpdateCall) ProjectId(projectId string) *BeaconsUpdateCall { c.urlParams_.Set("projectId", projectId) @@ -2883,23 +2298,21 @@ func (c *BeaconsUpdateCall) ProjectId(projectId string) *BeaconsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsUpdateCall) Fields(s ...googleapi.Field) *BeaconsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsUpdateCall) Context(ctx context.Context) *BeaconsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2908,18 +2321,12 @@ func (c *BeaconsUpdateCall) Header() http.Header { } func (c *BeaconsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.beacon) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+beaconName}") @@ -2932,16 +2339,14 @@ func (c *BeaconsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "beaconName": c.beaconName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.update" call. -// Exactly one of *Beacon or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Beacon.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Beacon.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BeaconsUpdateCall) Do(opts ...googleapi.CallOption) (*Beacon, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2949,17 +2354,17 @@ func (c *BeaconsUpdateCall) Do(opts ...googleapi.CallOption) (*Beacon, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Beacon{ ServerResponse: googleapi.ServerResponse{ @@ -2972,43 +2377,7 @@ func (c *BeaconsUpdateCall) Do(opts ...googleapi.CallOption) (*Beacon, error) { return nil, err } return ret, nil - // { - // "description": "Updates the information about the specified beacon. **Any field that you do\nnot populate in the submitted beacon will be permanently erased**, so you\nshould follow the \"read, modify, write\" pattern to avoid inadvertently\ndestroying data.\n\nChanges to the beacon status via this method will be silently ignored.\nTo update beacon status, use the separate methods on this API for\nactivation, deactivation, and decommissioning.\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **Is owner** or **Can edit** permissions in the Google\nDevelopers Console project.", - // "flatPath": "v1beta1/beacons/{beaconsId}", - // "httpMethod": "PUT", - // "id": "proximitybeacon.beacons.update", - // "parameterOrder": [ - // "beaconName" - // ], - // "parameters": { - // "beaconName": { - // "description": "Resource name of this beacon. A beacon name has the format\n\"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast by\nthe beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.\n\nThis field must be left empty when registering. After reading a beacon,\nclients can use the name for future operations.", - // "location": "path", - // "pattern": "^beacons/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project id of the beacon to update. If the project id is not\nspecified then the project making the request is used. The project id\nmust match the project that owns the beacon.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+beaconName}", - // "request": { - // "$ref": "Beacon" - // }, - // "response": { - // "$ref": "Beacon" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.attachments.batchDelete": +} type BeaconsAttachmentsBatchDeleteCall struct { s *Service @@ -3018,8 +2387,8 @@ type BeaconsAttachmentsBatchDeleteCall struct { header_ http.Header } -// BatchDelete: Deletes multiple attachments on a given beacon. This -// operation is +// BatchDelete: Deletes multiple attachments on a given beacon. This operation +// is // permanent and cannot be undone. // // You can optionally specify `namespacedType` to choose which @@ -3030,24 +2399,30 @@ type BeaconsAttachmentsBatchDeleteCall struct { // explicitly // specify `*/*` to delete all. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a // signed-in user with **Is owner** or **Can edit** permissions in the // Google // Developers Console project. +// +// - beaconName: The beacon whose attachments should be deleted. A beacon name +// has the +// format "beacons/N!beaconId" where the beaconId is the base16 ID +// broadcast +// by the beacon and N is a code for the beacon's type. Possible values +// are +// `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` +// for AltBeacon. For Eddystone-EID beacons, you may use either the +// current EID or the beacon's "stable" UID. func (r *BeaconsAttachmentsService) BatchDelete(beaconName string) *BeaconsAttachmentsBatchDeleteCall { c := &BeaconsAttachmentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.beaconName = beaconName return c } -// NamespacedType sets the optional parameter "namespacedType": -// Specifies the namespace and type of attachments to delete -// in +// NamespacedType sets the optional parameter "namespacedType": Specifies the +// namespace and type of attachments to delete in // `namespace/type` format. Accepts `*/*` to specify // "all types in all namespaces". func (c *BeaconsAttachmentsBatchDeleteCall) NamespacedType(namespacedType string) *BeaconsAttachmentsBatchDeleteCall { @@ -3055,12 +2430,10 @@ func (c *BeaconsAttachmentsBatchDeleteCall) NamespacedType(namespacedType string return c } -// ProjectId sets the optional parameter "projectId": The project id to -// delete beacon attachments under. This field can be -// used when "*" is specified to mean all attachment namespaces. -// Projects -// may have multiple attachments with multiple namespaces. If "*" -// is +// ProjectId sets the optional parameter "projectId": The project id to delete +// beacon attachments under. This field can be +// used when "*" is specified to mean all attachment namespaces. Projects +// may have multiple attachments with multiple namespaces. If "*" is // specified and the projectId string is empty, then the project // making the request is used. func (c *BeaconsAttachmentsBatchDeleteCall) ProjectId(projectId string) *BeaconsAttachmentsBatchDeleteCall { @@ -3069,23 +2442,21 @@ func (c *BeaconsAttachmentsBatchDeleteCall) ProjectId(projectId string) *Beacons } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsAttachmentsBatchDeleteCall) Fields(s ...googleapi.Field) *BeaconsAttachmentsBatchDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsAttachmentsBatchDeleteCall) Context(ctx context.Context) *BeaconsAttachmentsBatchDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsAttachmentsBatchDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3094,12 +2465,7 @@ func (c *BeaconsAttachmentsBatchDeleteCall) Header() http.Header { } func (c *BeaconsAttachmentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3113,16 +2479,15 @@ func (c *BeaconsAttachmentsBatchDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "beaconName": c.beaconName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.attachments.batchDelete" call. -// Exactly one of *DeleteAttachmentsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *DeleteAttachmentsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *DeleteAttachmentsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *BeaconsAttachmentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*DeleteAttachmentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3130,17 +2495,17 @@ func (c *BeaconsAttachmentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*D if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DeleteAttachmentsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3153,45 +2518,7 @@ func (c *BeaconsAttachmentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*D return nil, err } return ret, nil - // { - // "description": "Deletes multiple attachments on a given beacon. This operation is\npermanent and cannot be undone.\n\nYou can optionally specify `namespacedType` to choose which attachments\nshould be deleted. If you do not specify `namespacedType`, all your\nattachments on the given beacon will be deleted. You also may explicitly\nspecify `*/*` to delete all.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **Is owner** or **Can edit** permissions in the Google\nDevelopers Console project.", - // "flatPath": "v1beta1/beacons/{beaconsId}/attachments:batchDelete", - // "httpMethod": "POST", - // "id": "proximitybeacon.beacons.attachments.batchDelete", - // "parameterOrder": [ - // "beaconName" - // ], - // "parameters": { - // "beaconName": { - // "description": "The beacon whose attachments should be deleted. A beacon name has the\nformat \"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast\nby the beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.", - // "location": "path", - // "pattern": "^beacons/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "namespacedType": { - // "description": "Specifies the namespace and type of attachments to delete in\n`namespace/type` format. Accepts `*/*` to specify\n\"all types in all namespaces\".\nOptional.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "The project id to delete beacon attachments under. This field can be\nused when \"*\" is specified to mean all attachment namespaces. Projects\nmay have multiple attachments with multiple namespaces. If \"*\" is\nspecified and the projectId string is empty, then the project\nmaking the request is used.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+beaconName}/attachments:batchDelete", - // "response": { - // "$ref": "DeleteAttachmentsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.attachments.create": +} type BeaconsAttachmentsCreateCall struct { s *Service @@ -3202,15 +2529,14 @@ type BeaconsAttachmentsCreateCall struct { header_ http.Header } -// Create: Associates the given data with the specified beacon. -// Attachment data must +// Create: Associates the given data with the specified beacon. Attachment data +// must // contain two parts: //
                    //
                  • A namespaced type.
                  • //
                  • The actual attachment data itself.
                  • //
                  -// The namespaced type consists of two parts, the namespace and the -// type. +// The namespaced type consists of two parts, the namespace and the type. // The namespace must be one of the values returned by the // `namespaces` // endpoint, while the type can be a string of any characters except for @@ -3219,15 +2545,22 @@ type BeaconsAttachmentsCreateCall struct { // // Attachment data can be up to 1024 bytes long. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a // signed-in user with **Is owner** or **Can edit** permissions in the // Google // Developers Console project. +// +// - beaconName: Beacon on which the attachment should be created. A beacon +// name has the +// format "beacons/N!beaconId" where the beaconId is the base16 ID +// broadcast +// by the beacon and N is a code for the beacon's type. Possible values +// are +// `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` +// for AltBeacon. For Eddystone-EID beacons, you may use either the +// current EID or the beacon's "stable" UID. func (r *BeaconsAttachmentsService) Create(beaconName string, beaconattachment *BeaconAttachment) *BeaconsAttachmentsCreateCall { c := &BeaconsAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.beaconName = beaconName @@ -3235,10 +2568,9 @@ func (r *BeaconsAttachmentsService) Create(beaconName string, beaconattachment * return c } -// ProjectId sets the optional parameter "projectId": The project id of -// the project the attachment will belong to. If -// the project id is not specified then the project making the -// request +// ProjectId sets the optional parameter "projectId": The project id of the +// project the attachment will belong to. If +// the project id is not specified then the project making the request // is used. func (c *BeaconsAttachmentsCreateCall) ProjectId(projectId string) *BeaconsAttachmentsCreateCall { c.urlParams_.Set("projectId", projectId) @@ -3246,23 +2578,21 @@ func (c *BeaconsAttachmentsCreateCall) ProjectId(projectId string) *BeaconsAttac } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsAttachmentsCreateCall) Fields(s ...googleapi.Field) *BeaconsAttachmentsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsAttachmentsCreateCall) Context(ctx context.Context) *BeaconsAttachmentsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsAttachmentsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3271,18 +2601,12 @@ func (c *BeaconsAttachmentsCreateCall) Header() http.Header { } func (c *BeaconsAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.beaconattachment) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+beaconName}/attachments") @@ -3295,16 +2619,15 @@ func (c *BeaconsAttachmentsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "beaconName": c.beaconName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.attachments.create" call. -// Exactly one of *BeaconAttachment or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BeaconAttachment.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BeaconAttachment.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BeaconsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*BeaconAttachment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3312,17 +2635,17 @@ func (c *BeaconsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*Beacon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BeaconAttachment{ ServerResponse: googleapi.ServerResponse{ @@ -3335,43 +2658,7 @@ func (c *BeaconsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*Beacon return nil, err } return ret, nil - // { - // "description": "Associates the given data with the specified beacon. Attachment data must\ncontain two parts:\n\u003cul\u003e\n\u003cli\u003eA namespaced type.\u003c/li\u003e\n\u003cli\u003eThe actual attachment data itself.\u003c/li\u003e\n\u003c/ul\u003e\nThe namespaced type consists of two parts, the namespace and the type.\nThe namespace must be one of the values returned by the `namespaces`\nendpoint, while the type can be a string of any characters except for the\nforward slash (`/`) up to 100 characters in length.\n\nAttachment data can be up to 1024 bytes long.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **Is owner** or **Can edit** permissions in the Google\nDevelopers Console project.", - // "flatPath": "v1beta1/beacons/{beaconsId}/attachments", - // "httpMethod": "POST", - // "id": "proximitybeacon.beacons.attachments.create", - // "parameterOrder": [ - // "beaconName" - // ], - // "parameters": { - // "beaconName": { - // "description": "Beacon on which the attachment should be created. A beacon name has the\nformat \"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast\nby the beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.", - // "location": "path", - // "pattern": "^beacons/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project id of the project the attachment will belong to. If\nthe project id is not specified then the project making the request\nis used.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+beaconName}/attachments", - // "request": { - // "$ref": "BeaconAttachment" - // }, - // "response": { - // "$ref": "BeaconAttachment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.attachments.delete": +} type BeaconsAttachmentsDeleteCall struct { s *Service @@ -3383,31 +2670,37 @@ type BeaconsAttachmentsDeleteCall struct { // Delete: Deletes the specified attachment for the given beacon. Each // attachment has -// a unique attachment name (`attachmentName`) which is returned when -// you +// a unique attachment name (`attachmentName`) which is returned when you // fetch the attachment data via this API. You specify this with the // delete // request to control which attachment is removed. This operation cannot // be // undone. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a // signed-in user with **Is owner** or **Can edit** permissions in the // Google // Developers Console project. +// +// - attachmentName: The attachment name (`attachmentName`) of +// the attachment to remove. For +// example: +// `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. +// For +// Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be +// the +// +// beacon's current EID, or its "stable" Eddystone-UID. func (r *BeaconsAttachmentsService) Delete(attachmentName string) *BeaconsAttachmentsDeleteCall { c := &BeaconsAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.attachmentName = attachmentName return c } -// ProjectId sets the optional parameter "projectId": The project id of -// the attachment to delete. If not provided, the project +// ProjectId sets the optional parameter "projectId": The project id of the +// attachment to delete. If not provided, the project // that is making the request is used. func (c *BeaconsAttachmentsDeleteCall) ProjectId(projectId string) *BeaconsAttachmentsDeleteCall { c.urlParams_.Set("projectId", projectId) @@ -3415,23 +2708,21 @@ func (c *BeaconsAttachmentsDeleteCall) ProjectId(projectId string) *BeaconsAttac } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsAttachmentsDeleteCall) Fields(s ...googleapi.Field) *BeaconsAttachmentsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsAttachmentsDeleteCall) Context(ctx context.Context) *BeaconsAttachmentsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsAttachmentsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3440,12 +2731,7 @@ func (c *BeaconsAttachmentsDeleteCall) Header() http.Header { } func (c *BeaconsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3459,16 +2745,14 @@ func (c *BeaconsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "attachmentName": c.attachmentName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.attachments.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BeaconsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3476,17 +2760,17 @@ func (c *BeaconsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -3499,40 +2783,7 @@ func (c *BeaconsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, return nil, err } return ret, nil - // { - // "description": "Deletes the specified attachment for the given beacon. Each attachment has\na unique attachment name (`attachmentName`) which is returned when you\nfetch the attachment data via this API. You specify this with the delete\nrequest to control which attachment is removed. This operation cannot be\nundone.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **Is owner** or **Can edit** permissions in the Google\nDevelopers Console project.", - // "flatPath": "v1beta1/beacons/{beaconsId}/attachments/{attachmentsId}", - // "httpMethod": "DELETE", - // "id": "proximitybeacon.beacons.attachments.delete", - // "parameterOrder": [ - // "attachmentName" - // ], - // "parameters": { - // "attachmentName": { - // "description": "The attachment name (`attachmentName`) of\nthe attachment to remove. For example:\n`beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For\nEddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the\nbeacon's current EID, or its \"stable\" Eddystone-UID.\nRequired.", - // "location": "path", - // "pattern": "^beacons/[^/]+/attachments/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project id of the attachment to delete. If not provided, the project\nthat is making the request is used.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+attachmentName}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.attachments.list": +} type BeaconsAttachmentsListCall struct { s *Service @@ -3547,30 +2798,35 @@ type BeaconsAttachmentsListCall struct { // specified // namespaced-type pattern. // -// To control which namespaced types are returned, you add -// the -// `namespacedType` query parameter to the request. You must either -// use +// To control which namespaced types are returned, you add the +// `namespacedType` query parameter to the request. You must either use // `*/*`, to return all attachments, or the namespace must be one of // the ones returned from the `namespaces` endpoint. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// -// signed-in user with **viewer**, **Is owner** or **Can edit** -// permissions in +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a +// signed-in user with **viewer**, **Is owner** or **Can edit** permissions +// in // the Google Developers Console project. +// +// - beaconName: Beacon whose attachments should be fetched. A beacon name has +// the +// format "beacons/N!beaconId" where the beaconId is the base16 ID +// broadcast +// by the beacon and N is a code for the beacon's type. Possible values +// are +// `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` +// for AltBeacon. For Eddystone-EID beacons, you may use either the +// current EID or the beacon's "stable" UID. func (r *BeaconsAttachmentsService) List(beaconName string) *BeaconsAttachmentsListCall { c := &BeaconsAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.beaconName = beaconName return c } -// NamespacedType sets the optional parameter "namespacedType": -// Specifies the namespace and type of attachment to include in response +// NamespacedType sets the optional parameter "namespacedType": Specifies the +// namespace and type of attachment to include in response // in // namespace/type format. Accepts `*/*` to specify // "all types in all namespaces". @@ -3579,12 +2835,10 @@ func (c *BeaconsAttachmentsListCall) NamespacedType(namespacedType string) *Beac return c } -// ProjectId sets the optional parameter "projectId": The project id to -// list beacon attachments under. This field can be -// used when "*" is specified to mean all attachment namespaces. -// Projects -// may have multiple attachments with multiple namespaces. If "*" -// is +// ProjectId sets the optional parameter "projectId": The project id to list +// beacon attachments under. This field can be +// used when "*" is specified to mean all attachment namespaces. Projects +// may have multiple attachments with multiple namespaces. If "*" is // specified and the projectId string is empty, then the project // making the request is used. func (c *BeaconsAttachmentsListCall) ProjectId(projectId string) *BeaconsAttachmentsListCall { @@ -3593,33 +2847,29 @@ func (c *BeaconsAttachmentsListCall) ProjectId(projectId string) *BeaconsAttachm } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsAttachmentsListCall) Fields(s ...googleapi.Field) *BeaconsAttachmentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BeaconsAttachmentsListCall) IfNoneMatch(entityTag string) *BeaconsAttachmentsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsAttachmentsListCall) Context(ctx context.Context) *BeaconsAttachmentsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsAttachmentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3628,12 +2878,7 @@ func (c *BeaconsAttachmentsListCall) Header() http.Header { } func (c *BeaconsAttachmentsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3650,16 +2895,15 @@ func (c *BeaconsAttachmentsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "beaconName": c.beaconName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.attachments.list" call. -// Exactly one of *ListBeaconAttachmentsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListBeaconAttachmentsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListBeaconAttachmentsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *BeaconsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*ListBeaconAttachmentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3667,17 +2911,17 @@ func (c *BeaconsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*ListBeac if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListBeaconAttachmentsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3690,45 +2934,7 @@ func (c *BeaconsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*ListBeac return nil, err } return ret, nil - // { - // "description": "Returns the attachments for the specified beacon that match the specified\nnamespaced-type pattern.\n\nTo control which namespaced types are returned, you add the\n`namespacedType` query parameter to the request. You must either use\n`*/*`, to return all attachments, or the namespace must be one of\nthe ones returned from the `namespaces` endpoint.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **viewer**, **Is owner** or **Can edit** permissions in\nthe Google Developers Console project.", - // "flatPath": "v1beta1/beacons/{beaconsId}/attachments", - // "httpMethod": "GET", - // "id": "proximitybeacon.beacons.attachments.list", - // "parameterOrder": [ - // "beaconName" - // ], - // "parameters": { - // "beaconName": { - // "description": "Beacon whose attachments should be fetched. A beacon name has the\nformat \"beacons/N!beaconId\" where the beaconId is the base16 ID broadcast\nby the beacon and N is a code for the beacon's type. Possible values are\n`3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`\nfor AltBeacon. For Eddystone-EID beacons, you may use either the\ncurrent EID or the beacon's \"stable\" UID.\nRequired.", - // "location": "path", - // "pattern": "^beacons/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "namespacedType": { - // "description": "Specifies the namespace and type of attachment to include in response in\n\u003cvar\u003enamespace/type\u003c/var\u003e format. Accepts `*/*` to specify\n\"all types in all namespaces\".", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "The project id to list beacon attachments under. This field can be\nused when \"*\" is specified to mean all attachment namespaces. Projects\nmay have multiple attachments with multiple namespaces. If \"*\" is\nspecified and the projectId string is empty, then the project\nmaking the request is used.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+beaconName}/attachments", - // "response": { - // "$ref": "ListBeaconAttachmentsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.beacons.diagnostics.list": +} type BeaconsDiagnosticsListCall struct { s *Service @@ -3741,27 +2947,25 @@ type BeaconsDiagnosticsListCall struct { // List: List the diagnostics for a single beacon. You can also list // diagnostics for -// all the beacons owned by your Google Developers Console project by -// using +// all the beacons owned by your Google Developers Console project by using // the beacon name `beacons/-`. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// -// signed-in user with **viewer**, **Is owner** or **Can edit** -// permissions in +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a +// signed-in user with **viewer**, **Is owner** or **Can edit** permissions +// in // the Google Developers Console project. +// +// - beaconName: Beacon that the diagnostics are for. func (r *BeaconsDiagnosticsService) List(beaconName string) *BeaconsDiagnosticsListCall { c := &BeaconsDiagnosticsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.beaconName = beaconName return c } -// AlertFilter sets the optional parameter "alertFilter": Requests only -// beacons that have the given alert. For example, to find +// AlertFilter sets the optional parameter "alertFilter": Requests only beacons +// that have the given alert. For example, to find // beacons that have low batteries use `alert_filter=LOW_BATTERY`. // // Possible values: @@ -3775,26 +2979,25 @@ func (c *BeaconsDiagnosticsListCall) AlertFilter(alertFilter string) *BeaconsDia return c } -// PageSize sets the optional parameter "pageSize": Specifies the -// maximum number of results to return. Defaults to +// PageSize sets the optional parameter "pageSize": Specifies the maximum +// number of results to return. Defaults to // 10. Maximum 1000. func (c *BeaconsDiagnosticsListCall) PageSize(pageSize int64) *BeaconsDiagnosticsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Requests results -// that occur after the `page_token`, obtained from the +// PageToken sets the optional parameter "pageToken": Requests results that +// occur after the `page_token`, obtained from the // response to a previous request. func (c *BeaconsDiagnosticsListCall) PageToken(pageToken string) *BeaconsDiagnosticsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ProjectId sets the optional parameter "projectId": Requests only -// diagnostic records for the given project id. If not set, -// then the project making the request will be used for looking -// up +// ProjectId sets the optional parameter "projectId": Requests only diagnostic +// records for the given project id. If not set, +// then the project making the request will be used for looking up // diagnostic records. func (c *BeaconsDiagnosticsListCall) ProjectId(projectId string) *BeaconsDiagnosticsListCall { c.urlParams_.Set("projectId", projectId) @@ -3802,33 +3005,29 @@ func (c *BeaconsDiagnosticsListCall) ProjectId(projectId string) *BeaconsDiagnos } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BeaconsDiagnosticsListCall) Fields(s ...googleapi.Field) *BeaconsDiagnosticsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BeaconsDiagnosticsListCall) IfNoneMatch(entityTag string) *BeaconsDiagnosticsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BeaconsDiagnosticsListCall) Context(ctx context.Context) *BeaconsDiagnosticsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BeaconsDiagnosticsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3837,12 +3036,7 @@ func (c *BeaconsDiagnosticsListCall) Header() http.Header { } func (c *BeaconsDiagnosticsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3859,16 +3053,15 @@ func (c *BeaconsDiagnosticsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "beaconName": c.beaconName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.beacons.diagnostics.list" call. -// Exactly one of *ListDiagnosticsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *ListDiagnosticsResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *BeaconsDiagnosticsListCall) Do(opts ...googleapi.CallOption) (*ListDiagnosticsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3876,17 +3069,17 @@ func (c *BeaconsDiagnosticsListCall) Do(opts ...googleapi.CallOption) (*ListDiag if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListDiagnosticsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3899,59 +3092,6 @@ func (c *BeaconsDiagnosticsListCall) Do(opts ...googleapi.CallOption) (*ListDiag return nil, err } return ret, nil - // { - // "description": "List the diagnostics for a single beacon. You can also list diagnostics for\nall the beacons owned by your Google Developers Console project by using\nthe beacon name `beacons/-`.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **viewer**, **Is owner** or **Can edit** permissions in\nthe Google Developers Console project.", - // "flatPath": "v1beta1/beacons/{beaconsId}/diagnostics", - // "httpMethod": "GET", - // "id": "proximitybeacon.beacons.diagnostics.list", - // "parameterOrder": [ - // "beaconName" - // ], - // "parameters": { - // "alertFilter": { - // "description": "Requests only beacons that have the given alert. For example, to find\nbeacons that have low batteries use `alert_filter=LOW_BATTERY`.", - // "enum": [ - // "ALERT_UNSPECIFIED", - // "WRONG_LOCATION", - // "LOW_BATTERY", - // "LOW_ACTIVITY" - // ], - // "location": "query", - // "type": "string" - // }, - // "beaconName": { - // "description": "Beacon that the diagnostics are for.", - // "location": "path", - // "pattern": "^beacons/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Specifies the maximum number of results to return. Defaults to\n10. Maximum 1000. Optional.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Requests results that occur after the `page_token`, obtained from the\nresponse to a previous request. Optional.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "Requests only diagnostic records for the given project id. If not set,\nthen the project making the request will be used for looking up\ndiagnostic records. Optional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+beaconName}/diagnostics", - // "response": { - // "$ref": "ListDiagnosticsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - } // Pages invokes f for each page of results. @@ -3959,7 +3099,7 @@ func (c *BeaconsDiagnosticsListCall) Do(opts ...googleapi.CallOption) (*ListDiag // The provided context supersedes any context provided to the Context method. func (c *BeaconsDiagnosticsListCall) Pages(ctx context.Context, f func(*ListDiagnosticsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3975,8 +3115,6 @@ func (c *BeaconsDiagnosticsListCall) Pages(ctx context.Context, f func(*ListDiag } } -// method id "proximitybeacon.namespaces.list": - type NamespacesListCall struct { s *Service urlParams_ gensupport.URLParams @@ -3987,60 +3125,52 @@ type NamespacesListCall struct { // List: Lists all attachment namespaces owned by your Google Developers // Console -// project. Attachment data associated with a beacon must include -// a +// project. Attachment data associated with a beacon must include a // namespaced type, and the namespace must be owned by your // project. // -// Authenticate using an [OAuth -// access -// token](https://developers.google.com/identity/protocols/OAuth2) -// -// from a -// -// signed-in user with **viewer**, **Is owner** or **Can edit** -// permissions in +// Authenticate using an OAuth access +// token (https://developers.google.com/identity/protocols/OAuth2) from +// a +// signed-in user with **viewer**, **Is owner** or **Can edit** permissions +// in // the Google Developers Console project. func (r *NamespacesService) List() *NamespacesListCall { c := &NamespacesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// ProjectId sets the optional parameter "projectId": The project id to -// list namespaces under. +// ProjectId sets the optional parameter "projectId": The project id to list +// namespaces under. func (c *NamespacesListCall) ProjectId(projectId string) *NamespacesListCall { c.urlParams_.Set("projectId", projectId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *NamespacesListCall) Fields(s ...googleapi.Field) *NamespacesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *NamespacesListCall) IfNoneMatch(entityTag string) *NamespacesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *NamespacesListCall) Context(ctx context.Context) *NamespacesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *NamespacesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4049,12 +3179,7 @@ func (c *NamespacesListCall) Header() http.Header { } func (c *NamespacesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4068,16 +3193,15 @@ func (c *NamespacesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.namespaces.list" call. -// Exactly one of *ListNamespacesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListNamespacesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListNamespacesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *NamespacesListCall) Do(opts ...googleapi.CallOption) (*ListNamespacesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4085,17 +3209,17 @@ func (c *NamespacesListCall) Do(opts ...googleapi.CallOption) (*ListNamespacesRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListNamespacesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4108,31 +3232,7 @@ func (c *NamespacesListCall) Do(opts ...googleapi.CallOption) (*ListNamespacesRe return nil, err } return ret, nil - // { - // "description": "Lists all attachment namespaces owned by your Google Developers Console\nproject. Attachment data associated with a beacon must include a\nnamespaced type, and the namespace must be owned by your project.\n\nAuthenticate using an [OAuth access\ntoken](https://developers.google.com/identity/protocols/OAuth2) from a\nsigned-in user with **viewer**, **Is owner** or **Can edit** permissions in\nthe Google Developers Console project.", - // "flatPath": "v1beta1/namespaces", - // "httpMethod": "GET", - // "id": "proximitybeacon.namespaces.list", - // "parameterOrder": [], - // "parameters": { - // "projectId": { - // "description": "The project id to list namespaces under.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/namespaces", - // "response": { - // "$ref": "ListNamespacesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.namespaces.update": +} type NamespacesUpdateCall struct { s *Service @@ -4143,9 +3243,14 @@ type NamespacesUpdateCall struct { header_ http.Header } -// Update: Updates the information about the specified namespace. Only -// the namespace +// Update: Updates the information about the specified namespace. Only the +// namespace // visibility can be updated. +// +// - namespaceName: Resource name of this namespace. Namespaces names have the +// format: +// +// namespaces/namespace. func (r *NamespacesService) Update(namespaceName string, namespace *Namespace) *NamespacesUpdateCall { c := &NamespacesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.namespaceName = namespaceName @@ -4153,10 +3258,9 @@ func (r *NamespacesService) Update(namespaceName string, namespace *Namespace) * return c } -// ProjectId sets the optional parameter "projectId": The project id of -// the namespace to update. If the project id is not -// specified then the project making the request is used. The project -// id +// ProjectId sets the optional parameter "projectId": The project id of the +// namespace to update. If the project id is not +// specified then the project making the request is used. The project id // must match the project that owns the beacon. func (c *NamespacesUpdateCall) ProjectId(projectId string) *NamespacesUpdateCall { c.urlParams_.Set("projectId", projectId) @@ -4164,23 +3268,21 @@ func (c *NamespacesUpdateCall) ProjectId(projectId string) *NamespacesUpdateCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *NamespacesUpdateCall) Fields(s ...googleapi.Field) *NamespacesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *NamespacesUpdateCall) Context(ctx context.Context) *NamespacesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *NamespacesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4189,18 +3291,12 @@ func (c *NamespacesUpdateCall) Header() http.Header { } func (c *NamespacesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.namespace) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+namespaceName}") @@ -4213,16 +3309,14 @@ func (c *NamespacesUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "namespaceName": c.namespaceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.namespaces.update" call. -// Exactly one of *Namespace or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Namespace.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Namespace.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *NamespacesUpdateCall) Do(opts ...googleapi.CallOption) (*Namespace, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4230,17 +3324,17 @@ func (c *NamespacesUpdateCall) Do(opts ...googleapi.CallOption) (*Namespace, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Namespace{ ServerResponse: googleapi.ServerResponse{ @@ -4253,43 +3347,7 @@ func (c *NamespacesUpdateCall) Do(opts ...googleapi.CallOption) (*Namespace, err return nil, err } return ret, nil - // { - // "description": "Updates the information about the specified namespace. Only the namespace\nvisibility can be updated.", - // "flatPath": "v1beta1/namespaces/{namespacesId}", - // "httpMethod": "PUT", - // "id": "proximitybeacon.namespaces.update", - // "parameterOrder": [ - // "namespaceName" - // ], - // "parameters": { - // "namespaceName": { - // "description": "Resource name of this namespace. Namespaces names have the format:\n\u003ccode\u003enamespaces/\u003cvar\u003enamespace\u003c/var\u003e\u003c/code\u003e.", - // "location": "path", - // "pattern": "^namespaces/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "projectId": { - // "description": "The project id of the namespace to update. If the project id is not\nspecified then the project making the request is used. The project id\nmust match the project that owns the beacon.\nOptional.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+namespaceName}", - // "request": { - // "$ref": "Namespace" - // }, - // "response": { - // "$ref": "Namespace" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - -} - -// method id "proximitybeacon.getEidparams": +} type V1beta1GetEidparamsCall struct { s *Service @@ -4303,10 +3361,8 @@ type V1beta1GetEidparamsCall struct { // associated // parameters used to initiate the Diffie-Hellman key exchange required // to -// register a beacon that broadcasts the Eddystone-EID format. This -// key -// changes periodically; clients may cache it and re-use the same public -// key +// register a beacon that broadcasts the Eddystone-EID format. This key +// changes periodically; clients may cache it and re-use the same public key // to provision and register multiple beacons. However, clients should // be // prepared to refresh this key when they encounter an error registering @@ -4318,33 +3374,29 @@ func (r *V1beta1Service) GetEidparams() *V1beta1GetEidparamsCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1beta1GetEidparamsCall) Fields(s ...googleapi.Field) *V1beta1GetEidparamsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *V1beta1GetEidparamsCall) IfNoneMatch(entityTag string) *V1beta1GetEidparamsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1beta1GetEidparamsCall) Context(ctx context.Context) *V1beta1GetEidparamsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1beta1GetEidparamsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4353,12 +3405,7 @@ func (c *V1beta1GetEidparamsCall) Header() http.Header { } func (c *V1beta1GetEidparamsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200317") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4372,16 +3419,15 @@ func (c *V1beta1GetEidparamsCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "proximitybeacon.getEidparams" call. -// Exactly one of *EphemeralIdRegistrationParams or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *EphemeralIdRegistrationParams.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *EphemeralIdRegistrationParams.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V1beta1GetEidparamsCall) Do(opts ...googleapi.CallOption) (*EphemeralIdRegistrationParams, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4389,17 +3435,17 @@ func (c *V1beta1GetEidparamsCall) Do(opts ...googleapi.CallOption) (*EphemeralId if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &EphemeralIdRegistrationParams{ ServerResponse: googleapi.ServerResponse{ @@ -4412,20 +3458,4 @@ func (c *V1beta1GetEidparamsCall) Do(opts ...googleapi.CallOption) (*EphemeralId return nil, err } return ret, nil - // { - // "description": "Gets the Proximity Beacon API's current public key and associated\nparameters used to initiate the Diffie-Hellman key exchange required to\nregister a beacon that broadcasts the Eddystone-EID format. This key\nchanges periodically; clients may cache it and re-use the same public key\nto provision and register multiple beacons. However, clients should be\nprepared to refresh this key when they encounter an error registering an\nEddystone-EID beacon.", - // "flatPath": "v1beta1/eidparams", - // "httpMethod": "GET", - // "id": "proximitybeacon.getEidparams", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta1/eidparams", - // "response": { - // "$ref": "EphemeralIdRegistrationParams" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/userlocation.beacon.registry" - // ] - // } - } diff --git a/publicca/v1/publicca-gen.go b/publicca/v1/publicca-gen.go index f0dc8cfbbd3..8cced854646 100644 --- a/publicca/v1/publicca-gen.go +++ b/publicca/v1/publicca-gen.go @@ -284,7 +284,7 @@ func (c *ProjectsLocationsExternalAccountKeysCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "publicca.projects.locations.externalAccountKeys.create" call. diff --git a/publicca/v1alpha1/publicca-gen.go b/publicca/v1alpha1/publicca-gen.go index 6b21838a87d..a0cae917790 100644 --- a/publicca/v1alpha1/publicca-gen.go +++ b/publicca/v1alpha1/publicca-gen.go @@ -284,7 +284,7 @@ func (c *ProjectsLocationsExternalAccountKeysCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "publicca.projects.locations.externalAccountKeys.create" call. diff --git a/publicca/v1beta1/publicca-gen.go b/publicca/v1beta1/publicca-gen.go index 44d9b395064..34cca332051 100644 --- a/publicca/v1beta1/publicca-gen.go +++ b/publicca/v1beta1/publicca-gen.go @@ -284,7 +284,7 @@ func (c *ProjectsLocationsExternalAccountKeysCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "publicca.projects.locations.externalAccountKeys.create" call. diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index a05cd99f9f5..f4bdb7696ea 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -2283,7 +2283,7 @@ func (c *ProjectsSchemasCommitCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.commit" call. @@ -2394,7 +2394,7 @@ func (c *ProjectsSchemasCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.create" call. @@ -2490,7 +2490,7 @@ func (c *ProjectsSchemasDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.delete" call. @@ -2594,7 +2594,7 @@ func (c *ProjectsSchemasDeleteRevisionCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.deleteRevision" call. @@ -2719,7 +2719,7 @@ func (c *ProjectsSchemasGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.get" call. @@ -2846,7 +2846,7 @@ func (c *ProjectsSchemasGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.getIamPolicy" call. @@ -2986,7 +2986,7 @@ func (c *ProjectsSchemasListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.list" call. @@ -3147,7 +3147,7 @@ func (c *ProjectsSchemasListRevisionsCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.listRevisions" call. @@ -3271,7 +3271,7 @@ func (c *ProjectsSchemasRollbackCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.rollback" call. @@ -3376,7 +3376,7 @@ func (c *ProjectsSchemasSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.setIamPolicy" call. @@ -3484,7 +3484,7 @@ func (c *ProjectsSchemasTestIamPermissionsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.testIamPermissions" call. @@ -3587,7 +3587,7 @@ func (c *ProjectsSchemasValidateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.validate" call. @@ -3690,7 +3690,7 @@ func (c *ProjectsSchemasValidateMessageCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.schemas.validateMessage" call. @@ -3811,7 +3811,7 @@ func (c *ProjectsSnapshotsCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.snapshots.create" call. @@ -3915,7 +3915,7 @@ func (c *ProjectsSnapshotsDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "snapshot": c.snapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.snapshots.delete" call. @@ -4027,7 +4027,7 @@ func (c *ProjectsSnapshotsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "snapshot": c.snapshot, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.snapshots.get" call. @@ -4154,7 +4154,7 @@ func (c *ProjectsSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.snapshots.getIamPolicy" call. @@ -4282,7 +4282,7 @@ func (c *ProjectsSnapshotsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.snapshots.list" call. @@ -4410,7 +4410,7 @@ func (c *ProjectsSnapshotsPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.snapshots.patch" call. @@ -4515,7 +4515,7 @@ func (c *ProjectsSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.snapshots.setIamPolicy" call. @@ -4623,7 +4623,7 @@ func (c *ProjectsSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.snapshots.testIamPermissions" call. @@ -4730,7 +4730,7 @@ func (c *ProjectsSubscriptionsAcknowledgeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.acknowledge" call. @@ -4845,7 +4845,7 @@ func (c *ProjectsSubscriptionsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.create" call. @@ -4945,7 +4945,7 @@ func (c *ProjectsSubscriptionsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.delete" call. @@ -5044,7 +5044,7 @@ func (c *ProjectsSubscriptionsDetachCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.detach" call. @@ -5153,7 +5153,7 @@ func (c *ProjectsSubscriptionsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.get" call. @@ -5280,7 +5280,7 @@ func (c *ProjectsSubscriptionsGetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.getIamPolicy" call. @@ -5404,7 +5404,7 @@ func (c *ProjectsSubscriptionsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.list" call. @@ -5532,7 +5532,7 @@ func (c *ProjectsSubscriptionsModifyAckDeadlineCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.modifyAckDeadline" call. @@ -5638,7 +5638,7 @@ func (c *ProjectsSubscriptionsModifyPushConfigCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.modifyPushConfig" call. @@ -5746,7 +5746,7 @@ func (c *ProjectsSubscriptionsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.patch" call. @@ -5848,7 +5848,7 @@ func (c *ProjectsSubscriptionsPullCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.pull" call. @@ -5955,7 +5955,7 @@ func (c *ProjectsSubscriptionsSeekCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.seek" call. @@ -6060,7 +6060,7 @@ func (c *ProjectsSubscriptionsSetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.setIamPolicy" call. @@ -6168,7 +6168,7 @@ func (c *ProjectsSubscriptionsTestIamPermissionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.testIamPermissions" call. @@ -6276,7 +6276,7 @@ func (c *ProjectsTopicsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.create" call. @@ -6376,7 +6376,7 @@ func (c *ProjectsTopicsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.delete" call. @@ -6484,7 +6484,7 @@ func (c *ProjectsTopicsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.get" call. @@ -6611,7 +6611,7 @@ func (c *ProjectsTopicsGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.getIamPolicy" call. @@ -6734,7 +6734,7 @@ func (c *ProjectsTopicsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.list" call. @@ -6863,7 +6863,7 @@ func (c *ProjectsTopicsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.patch" call. @@ -6966,7 +6966,7 @@ func (c *ProjectsTopicsPublishCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.publish" call. @@ -7072,7 +7072,7 @@ func (c *ProjectsTopicsSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.setIamPolicy" call. @@ -7180,7 +7180,7 @@ func (c *ProjectsTopicsTestIamPermissionsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.testIamPermissions" call. @@ -7309,7 +7309,7 @@ func (c *ProjectsTopicsSnapshotsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.snapshots.list" call. @@ -7455,7 +7455,7 @@ func (c *ProjectsTopicsSubscriptionsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.subscriptions.list" call. diff --git a/pubsub/v1beta1a/pubsub-gen.go b/pubsub/v1beta1a/pubsub-gen.go index 59fefc80ab3..deeaad9c089 100644 --- a/pubsub/v1beta1a/pubsub-gen.go +++ b/pubsub/v1beta1a/pubsub-gen.go @@ -783,7 +783,7 @@ func (c *SubscriptionsAcknowledgeCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.subscriptions.acknowledge" call. @@ -881,7 +881,7 @@ func (c *SubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.subscriptions.create" call. @@ -978,7 +978,7 @@ func (c *SubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.subscriptions.delete" call. @@ -1085,7 +1085,7 @@ func (c *SubscriptionsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.subscriptions.get" call. @@ -1205,7 +1205,7 @@ func (c *SubscriptionsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.subscriptions.list" call. @@ -1322,7 +1322,7 @@ func (c *SubscriptionsModifyAckDeadlineCall) doRequest(alt string) (*http.Respon return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.subscriptions.modifyAckDeadline" call. @@ -1420,7 +1420,7 @@ func (c *SubscriptionsModifyPushConfigCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.subscriptions.modifyPushConfig" call. @@ -1518,7 +1518,7 @@ func (c *SubscriptionsPullCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.subscriptions.pull" call. @@ -1615,7 +1615,7 @@ func (c *SubscriptionsPullBatchCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.subscriptions.pullBatch" call. @@ -1710,7 +1710,7 @@ func (c *TopicsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.topics.create" call. @@ -1807,7 +1807,7 @@ func (c *TopicsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.topics.delete" call. @@ -1916,7 +1916,7 @@ func (c *TopicsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.topics.get" call. @@ -2036,7 +2036,7 @@ func (c *TopicsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.topics.list" call. @@ -2153,7 +2153,7 @@ func (c *TopicsPublishCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.topics.publish" call. @@ -2248,7 +2248,7 @@ func (c *TopicsPublishBatchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.topics.publishBatch" call. diff --git a/pubsub/v1beta2/pubsub-gen.go b/pubsub/v1beta2/pubsub-gen.go index cdc72f83427..3a093422da6 100644 --- a/pubsub/v1beta2/pubsub-gen.go +++ b/pubsub/v1beta2/pubsub-gen.go @@ -1091,7 +1091,7 @@ func (c *ProjectsSubscriptionsAcknowledgeCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.acknowledge" call. @@ -1201,7 +1201,7 @@ func (c *ProjectsSubscriptionsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.create" call. @@ -1300,7 +1300,7 @@ func (c *ProjectsSubscriptionsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.delete" call. @@ -1407,7 +1407,7 @@ func (c *ProjectsSubscriptionsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.get" call. @@ -1534,7 +1534,7 @@ func (c *ProjectsSubscriptionsGetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.getIamPolicy" call. @@ -1657,7 +1657,7 @@ func (c *ProjectsSubscriptionsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.list" call. @@ -1784,7 +1784,7 @@ func (c *ProjectsSubscriptionsModifyAckDeadlineCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.modifyAckDeadline" call. @@ -1889,7 +1889,7 @@ func (c *ProjectsSubscriptionsModifyPushConfigCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.modifyPushConfig" call. @@ -1993,7 +1993,7 @@ func (c *ProjectsSubscriptionsPullCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.pull" call. @@ -2098,7 +2098,7 @@ func (c *ProjectsSubscriptionsSetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.setIamPolicy" call. @@ -2206,7 +2206,7 @@ func (c *ProjectsSubscriptionsTestIamPermissionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.subscriptions.testIamPermissions" call. @@ -2313,7 +2313,7 @@ func (c *ProjectsTopicsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.create" call. @@ -2412,7 +2412,7 @@ func (c *ProjectsTopicsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.delete" call. @@ -2519,7 +2519,7 @@ func (c *ProjectsTopicsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.get" call. @@ -2646,7 +2646,7 @@ func (c *ProjectsTopicsGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.getIamPolicy" call. @@ -2768,7 +2768,7 @@ func (c *ProjectsTopicsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.list" call. @@ -2893,7 +2893,7 @@ func (c *ProjectsTopicsPublishCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.publish" call. @@ -2999,7 +2999,7 @@ func (c *ProjectsTopicsSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.setIamPolicy" call. @@ -3107,7 +3107,7 @@ func (c *ProjectsTopicsTestIamPermissionsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.testIamPermissions" call. @@ -3231,7 +3231,7 @@ func (c *ProjectsTopicsSubscriptionsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsub.projects.topics.subscriptions.list" call. diff --git a/pubsublite/v1/pubsublite-gen.go b/pubsublite/v1/pubsublite-gen.go index 82864e077a9..5cf45bb6bf0 100644 --- a/pubsublite/v1/pubsublite-gen.go +++ b/pubsublite/v1/pubsublite-gen.go @@ -1428,7 +1428,7 @@ func (c *AdminProjectsLocationsOperationsCancelCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.operations.cancel" call. @@ -1526,7 +1526,7 @@ func (c *AdminProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.operations.delete" call. @@ -1635,7 +1635,7 @@ func (c *AdminProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.operations.get" call. @@ -1763,7 +1763,7 @@ func (c *AdminProjectsLocationsOperationsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.operations.list" call. @@ -1895,7 +1895,7 @@ func (c *AdminProjectsLocationsReservationsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.reservations.create" call. @@ -1992,7 +1992,7 @@ func (c *AdminProjectsLocationsReservationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.reservations.delete" call. @@ -2102,7 +2102,7 @@ func (c *AdminProjectsLocationsReservationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.reservations.get" call. @@ -2227,7 +2227,7 @@ func (c *AdminProjectsLocationsReservationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.reservations.list" call. @@ -2359,7 +2359,7 @@ func (c *AdminProjectsLocationsReservationsPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.reservations.patch" call. @@ -2485,7 +2485,7 @@ func (c *AdminProjectsLocationsReservationsTopicsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.reservations.topics.list" call. @@ -2626,7 +2626,7 @@ func (c *AdminProjectsLocationsSubscriptionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.subscriptions.create" call. @@ -2721,7 +2721,7 @@ func (c *AdminProjectsLocationsSubscriptionsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.subscriptions.delete" call. @@ -2828,7 +2828,7 @@ func (c *AdminProjectsLocationsSubscriptionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.subscriptions.get" call. @@ -2953,7 +2953,7 @@ func (c *AdminProjectsLocationsSubscriptionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.subscriptions.list" call. @@ -3085,7 +3085,7 @@ func (c *AdminProjectsLocationsSubscriptionsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.subscriptions.patch" call. @@ -3201,7 +3201,7 @@ func (c *AdminProjectsLocationsSubscriptionsSeekCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.subscriptions.seek" call. @@ -3311,7 +3311,7 @@ func (c *AdminProjectsLocationsTopicsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.topics.create" call. @@ -3406,7 +3406,7 @@ func (c *AdminProjectsLocationsTopicsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.topics.delete" call. @@ -3513,7 +3513,7 @@ func (c *AdminProjectsLocationsTopicsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.topics.get" call. @@ -3620,7 +3620,7 @@ func (c *AdminProjectsLocationsTopicsGetPartitionsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.topics.getPartitions" call. @@ -3746,7 +3746,7 @@ func (c *AdminProjectsLocationsTopicsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.topics.list" call. @@ -3877,7 +3877,7 @@ func (c *AdminProjectsLocationsTopicsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.topics.patch" call. @@ -4001,7 +4001,7 @@ func (c *AdminProjectsLocationsTopicsSubscriptionsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.admin.projects.locations.topics.subscriptions.list" call. @@ -4124,7 +4124,7 @@ func (c *CursorProjectsLocationsSubscriptionsCommitCursorCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "subscription": c.subscription, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.cursor.projects.locations.subscriptions.commitCursor" call. @@ -4251,7 +4251,7 @@ func (c *CursorProjectsLocationsSubscriptionsCursorsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.cursor.projects.locations.subscriptions.cursors.list" call. @@ -4378,7 +4378,7 @@ func (c *TopicStatsProjectsLocationsTopicsComputeHeadCursorCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.topicStats.projects.locations.topics.computeHeadCursor" call. @@ -4481,7 +4481,7 @@ func (c *TopicStatsProjectsLocationsTopicsComputeMessageStatsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.topicStats.projects.locations.topics.computeMessageStats" call. @@ -4584,7 +4584,7 @@ func (c *TopicStatsProjectsLocationsTopicsComputeTimeCursorCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "topic": c.topic, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "pubsublite.topicStats.projects.locations.topics.computeTimeCursor" call. diff --git a/qpxexpress/v1/qpxexpress-gen.go b/qpxexpress/v1/qpxexpress-gen.go index 2b056be0fc9..1e9a6bfd61e 100644 --- a/qpxexpress/v1/qpxexpress-gen.go +++ b/qpxexpress/v1/qpxexpress-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: http://developers.google.com/qpx-express // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // qpxexpressService, err := qpxexpress.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // qpxexpressService, err := qpxexpress.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // qpxexpressService, err := qpxexpress.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package qpxexpress // import "google.golang.org/api/qpxexpress/v1" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,14 +83,20 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "qpxExpress:v1" const apiName = "qpxExpress" const apiVersion = "v1" const basePath = "https://www.googleapis.com/qpxExpress/v1/trips/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/qpxExpress/v1/trips/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -130,1173 +151,883 @@ type TripsService struct { // AircraftData: The make, model, and type of an aircraft. type AircraftData struct { - // Code: The aircraft code. For example, for a Boeing 777 the code would - // be 777. + // Code: The aircraft code. For example, for a Boeing 777 the code would be + // 777. Code string `json:"code,omitempty"` - - // Kind: Identifies this as an aircraftData object. Value: the fixed - // string qpxexpress#aircraftData + // Kind: Identifies this as an aircraftData object. Value: the fixed string + // qpxexpress#aircraftData Kind string `json:"kind,omitempty"` - // Name: The name of an aircraft, for example Boeing 777. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AircraftData) MarshalJSON() ([]byte, error) { +func (s AircraftData) MarshalJSON() ([]byte, error) { type NoMethod AircraftData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AirportData: An airport. type AirportData struct { - // City: The city code an airport is located in. For example, for JFK - // airport, this is NYC. + // City: The city code an airport is located in. For example, for JFK airport, + // this is NYC. City string `json:"city,omitempty"` - - // Code: An airport's code. For example, for Boston Logan airport, this - // is BOS. + // Code: An airport's code. For example, for Boston Logan airport, this is BOS. Code string `json:"code,omitempty"` - // Kind: Identifies this as an airport object. Value: the fixed string // qpxexpress#airportData. Kind string `json:"kind,omitempty"` - - // Name: The name of an airport. For example, for airport BOS the name - // is "Boston Logan International". + // Name: The name of an airport. For example, for airport BOS the name is + // "Boston Logan International". Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "City") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "City") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "City") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "City") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AirportData) MarshalJSON() ([]byte, error) { +func (s AirportData) MarshalJSON() ([]byte, error) { type NoMethod AirportData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BagDescriptor: Information about an item of baggage. type BagDescriptor struct { // CommercialName: Provides the commercial name for an optional service. CommercialName string `json:"commercialName,omitempty"` - // Count: How many of this type of bag will be checked on this flight. Count int64 `json:"count,omitempty"` - // Description: A description of the baggage. Description []string `json:"description,omitempty"` - // Kind: Identifies this as a baggage object. Value: the fixed string // qpxexpress#bagDescriptor. Kind string `json:"kind,omitempty"` - - // Subcode: The standard IATA subcode used to identify this optional - // service. + // Subcode: The standard IATA subcode used to identify this optional service. Subcode string `json:"subcode,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommercialName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommercialName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CommercialName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BagDescriptor) MarshalJSON() ([]byte, error) { +func (s BagDescriptor) MarshalJSON() ([]byte, error) { type NoMethod BagDescriptor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CarrierData: Information about a carrier (ie. an airline, bus line, // railroad, etc) that might be useful to display to an end-user. type CarrierData struct { - // Code: The IATA designator of a carrier (airline, etc). For example, - // for American Airlines, the code is AA. + // Code: The IATA designator of a carrier (airline, etc). For example, for + // American Airlines, the code is AA. Code string `json:"code,omitempty"` - // Kind: Identifies this as a kind of carrier (ie. an airline, bus line, // railroad, etc). Value: the fixed string qpxexpress#carrierData. Kind string `json:"kind,omitempty"` - - // Name: The long, full name of a carrier. For example: American - // Airlines. + // Name: The long, full name of a carrier. For example: American Airlines. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CarrierData) MarshalJSON() ([]byte, error) { +func (s CarrierData) MarshalJSON() ([]byte, error) { type NoMethod CarrierData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CityData: Information about a city that might be useful to an -// end-user; typically the city of an airport. +// CityData: Information about a city that might be useful to an end-user; +// typically the city of an airport. type CityData struct { - // Code: The IATA character ID of a city. For example, for Boston this - // is BOS. + // Code: The IATA character ID of a city. For example, for Boston this is BOS. Code string `json:"code,omitempty"` - - // Country: The two-character country code of the country the city is - // located in. For example, US for the United States of America. + // Country: The two-character country code of the country the city is located + // in. For example, US for the United States of America. Country string `json:"country,omitempty"` - - // Kind: Identifies this as a city, typically with one or more airports. - // Value: the fixed string qpxexpress#cityData. + // Kind: Identifies this as a city, typically with one or more airports. Value: + // the fixed string qpxexpress#cityData. Kind string `json:"kind,omitempty"` - // Name: The full name of a city. An example would be: New York. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CityData) MarshalJSON() ([]byte, error) { +func (s CityData) MarshalJSON() ([]byte, error) { type NoMethod CityData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Data: Detailed information about components found in the solutions of -// this response, including a trip's airport, city, taxes, airline, and -// aircraft. +// Data: Detailed information about components found in the solutions of this +// response, including a trip's airport, city, taxes, airline, and aircraft. type Data struct { - // Aircraft: The aircraft that is flying between an origin and - // destination. + // Aircraft: The aircraft that is flying between an origin and destination. Aircraft []*AircraftData `json:"aircraft,omitempty"` - // Airport: The airport of an origin or destination. Airport []*AirportData `json:"airport,omitempty"` - - // Carrier: The airline carrier of the aircraft flying between an origin - // and destination. Allowed values are IATA carrier codes. + // Carrier: The airline carrier of the aircraft flying between an origin and + // destination. Allowed values are IATA carrier codes. Carrier []*CarrierData `json:"carrier,omitempty"` - - // City: The city that is either the origin or destination of part of a - // trip. + // City: The city that is either the origin or destination of part of a trip. City []*CityData `json:"city,omitempty"` - - // Kind: Identifies this as QPX Express response resource, including a - // trip's airport, city, taxes, airline, and aircraft. Value: the fixed - // string qpxexpress#data. + // Kind: Identifies this as QPX Express response resource, including a trip's + // airport, city, taxes, airline, and aircraft. Value: the fixed string + // qpxexpress#data. Kind string `json:"kind,omitempty"` - // Tax: The taxes due for flying between an origin and a destination. Tax []*TaxData `json:"tax,omitempty"` - // ForceSendFields is a list of field names (e.g. "Aircraft") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Aircraft") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Aircraft") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Data) MarshalJSON() ([]byte, error) { +func (s Data) MarshalJSON() ([]byte, error) { type NoMethod Data - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FareInfo: Complete information about a fare used in the solution to a -// low-fare search query. In the airline industry a fare is a price an -// airline charges for one-way travel between two points. A fare -// typically contains a carrier code, two city codes, a price, and a -// fare basis. (A fare basis is a one-to-eight character alphanumeric -// code used to identify a fare.) +// low-fare search query. In the airline industry a fare is a price an airline +// charges for one-way travel between two points. A fare typically contains a +// carrier code, two city codes, a price, and a fare basis. (A fare basis is a +// one-to-eight character alphanumeric code used to identify a fare.) type FareInfo struct { BasisCode string `json:"basisCode,omitempty"` - - // Carrier: The carrier of the aircraft or other vehicle commuting - // between two points. + // Carrier: The carrier of the aircraft or other vehicle commuting between two + // points. Carrier string `json:"carrier,omitempty"` - // Destination: The city code of the city the trip ends at. Destination string `json:"destination,omitempty"` - // Id: A unique identifier of the fare. Id string `json:"id,omitempty"` - // Kind: Identifies this as a fare object. Value: the fixed string // qpxexpress#fareInfo. Kind string `json:"kind,omitempty"` - // Origin: The city code of the city the trip begins at. Origin string `json:"origin,omitempty"` - - // Private: Whether this is a private fare, for example one offered only - // to select customers rather than the general public. + // Private: Whether this is a private fare, for example one offered only to + // select customers rather than the general public. Private bool `json:"private,omitempty"` - // ForceSendFields is a list of field names (e.g. "BasisCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BasisCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BasisCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FareInfo) MarshalJSON() ([]byte, error) { +func (s FareInfo) MarshalJSON() ([]byte, error) { type NoMethod FareInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FlightInfo: A flight is a sequence of legs with the same airline -// carrier and flight number. (A leg is the smallest unit of travel, in -// the case of a flight a takeoff immediately followed by a landing at -// two set points on a particular carrier with a particular flight -// number.) The naive view is that a flight is scheduled travel of an -// aircraft between two points, with possibly intermediate stops, but -// carriers will frequently list flights that require a change of -// aircraft between legs. +// FlightInfo: A flight is a sequence of legs with the same airline carrier and +// flight number. (A leg is the smallest unit of travel, in the case of a +// flight a takeoff immediately followed by a landing at two set points on a +// particular carrier with a particular flight number.) The naive view is that +// a flight is scheduled travel of an aircraft between two points, with +// possibly intermediate stops, but carriers will frequently list flights that +// require a change of aircraft between legs. type FlightInfo struct { Carrier string `json:"carrier,omitempty"` - // Number: The flight number. Number string `json:"number,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Carrier") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Carrier") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Carrier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FlightInfo) MarshalJSON() ([]byte, error) { +func (s FlightInfo) MarshalJSON() ([]byte, error) { type NoMethod FlightInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FreeBaggageAllowance: Information about free baggage allowed on one -// segment of a trip. +// FreeBaggageAllowance: Information about free baggage allowed on one segment +// of a trip. type FreeBaggageAllowance struct { - // BagDescriptor: A representation of a type of bag, such as an ATPCo - // subcode, Commercial Name, or other description. + // BagDescriptor: A representation of a type of bag, such as an ATPCo subcode, + // Commercial Name, or other description. BagDescriptor []*BagDescriptor `json:"bagDescriptor,omitempty"` - - // Kilos: The maximum number of kilos all the free baggage together may - // weigh. + // Kilos: The maximum number of kilos all the free baggage together may weigh. Kilos int64 `json:"kilos,omitempty"` - - // KilosPerPiece: The maximum number of kilos any one piece of baggage - // may weigh. + // KilosPerPiece: The maximum number of kilos any one piece of baggage may + // weigh. KilosPerPiece int64 `json:"kilosPerPiece,omitempty"` - - // Kind: Identifies this as free baggage object, allowed on one segment - // of a trip. Value: the fixed string qpxexpress#freeBaggageAllowance. + // Kind: Identifies this as free baggage object, allowed on one segment of a + // trip. Value: the fixed string qpxexpress#freeBaggageAllowance. Kind string `json:"kind,omitempty"` - // Pieces: The number of free pieces of baggage allowed. Pieces int64 `json:"pieces,omitempty"` - // Pounds: The number of pounds of free baggage allowed. Pounds int64 `json:"pounds,omitempty"` - // ForceSendFields is a list of field names (e.g. "BagDescriptor") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BagDescriptor") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BagDescriptor") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FreeBaggageAllowance) MarshalJSON() ([]byte, error) { +func (s FreeBaggageAllowance) MarshalJSON() ([]byte, error) { type NoMethod FreeBaggageAllowance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LegInfo: Information about a leg. (A leg is the smallest unit of -// travel, in the case of a flight a takeoff immediately followed by a -// landing at two set points on a particular carrier with a particular -// flight number.) +// LegInfo: Information about a leg. (A leg is the smallest unit of travel, in +// the case of a flight a takeoff immediately followed by a landing at two set +// points on a particular carrier with a particular flight number.) type LegInfo struct { - // Aircraft: The aircraft (or bus, ferry, railcar, etc) travelling - // between the two points of this leg. + // Aircraft: The aircraft (or bus, ferry, railcar, etc) travelling between the + // two points of this leg. Aircraft string `json:"aircraft,omitempty"` - - // ArrivalTime: The scheduled time of arrival at the destination of the - // leg, local to the point of arrival. + // ArrivalTime: The scheduled time of arrival at the destination of the leg, + // local to the point of arrival. ArrivalTime string `json:"arrivalTime,omitempty"` - - // ChangePlane: Whether you have to change planes following this leg. - // Only applies to the next leg. + // ChangePlane: Whether you have to change planes following this leg. Only + // applies to the next leg. ChangePlane bool `json:"changePlane,omitempty"` - - // ConnectionDuration: Duration of a connection following this leg, in - // minutes. + // ConnectionDuration: Duration of a connection following this leg, in minutes. ConnectionDuration int64 `json:"connectionDuration,omitempty"` - - // DepartureTime: The scheduled departure time of the leg, local to the - // point of departure. + // DepartureTime: The scheduled departure time of the leg, local to the point + // of departure. DepartureTime string `json:"departureTime,omitempty"` - // Destination: The leg destination as a city and airport. Destination string `json:"destination,omitempty"` - - // DestinationTerminal: The terminal the flight is scheduled to arrive - // at. + // DestinationTerminal: The terminal the flight is scheduled to arrive at. DestinationTerminal string `json:"destinationTerminal,omitempty"` - - // Duration: The scheduled travelling time from the origin to the - // destination. + // Duration: The scheduled travelling time from the origin to the destination. Duration int64 `json:"duration,omitempty"` - // Id: An identifier that uniquely identifies this leg in the solution. Id string `json:"id,omitempty"` - - // Kind: Identifies this as a leg object. A leg is the smallest unit of - // travel, in the case of a flight a takeoff immediately followed by a - // landing at two set points on a particular carrier with a particular - // flight number. Value: the fixed string qpxexpress#legInfo. + // Kind: Identifies this as a leg object. A leg is the smallest unit of travel, + // in the case of a flight a takeoff immediately followed by a landing at two + // set points on a particular carrier with a particular flight number. Value: + // the fixed string qpxexpress#legInfo. Kind string `json:"kind,omitempty"` - - // Meal: A simple, general description of the meal(s) served on the - // flight, for example: "Hot meal". + // Meal: A simple, general description of the meal(s) served on the flight, for + // example: "Hot meal". Meal string `json:"meal,omitempty"` - // Mileage: The number of miles in this leg. Mileage int64 `json:"mileage,omitempty"` - - // OnTimePerformance: In percent, the published on time performance on - // this leg. + // OnTimePerformance: In percent, the published on time performance on this + // leg. OnTimePerformance int64 `json:"onTimePerformance,omitempty"` - - // OperatingDisclosure: Department of Transportation disclosure - // information on the actual operator of a flight in a code share. (A - // code share refers to a marketing agreement between two carriers, - // where one carrier will list in its schedules (and take bookings for) - // flights that are actually operated by another carrier.) + // OperatingDisclosure: Department of Transportation disclosure information on + // the actual operator of a flight in a code share. (A code share refers to a + // marketing agreement between two carriers, where one carrier will list in its + // schedules (and take bookings for) flights that are actually operated by + // another carrier.) OperatingDisclosure string `json:"operatingDisclosure,omitempty"` - // Origin: The leg origin as a city and airport. Origin string `json:"origin,omitempty"` - // OriginTerminal: The terminal the flight is scheduled to depart from. OriginTerminal string `json:"originTerminal,omitempty"` - - // Secure: Whether passenger information must be furnished to the United - // States Transportation Security Administration (TSA) prior to - // departure. + // Secure: Whether passenger information must be furnished to the United States + // Transportation Security Administration (TSA) prior to departure. Secure bool `json:"secure,omitempty"` - // ForceSendFields is a list of field names (e.g. "Aircraft") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Aircraft") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Aircraft") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LegInfo) MarshalJSON() ([]byte, error) { +func (s LegInfo) MarshalJSON() ([]byte, error) { type NoMethod LegInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PassengerCounts: The number and type of passengers. Unfortunately the -// definition of an infant, child, adult, and senior citizen varies -// across carriers and reservation systems. +// definition of an infant, child, adult, and senior citizen varies across +// carriers and reservation systems. type PassengerCounts struct { // AdultCount: The number of passengers that are adults. AdultCount int64 `json:"adultCount,omitempty"` - // ChildCount: The number of passengers that are children. ChildCount int64 `json:"childCount,omitempty"` - - // InfantInLapCount: The number of passengers that are infants - // travelling in the lap of an adult. + // InfantInLapCount: The number of passengers that are infants travelling in + // the lap of an adult. InfantInLapCount int64 `json:"infantInLapCount,omitempty"` - - // InfantInSeatCount: The number of passengers that are infants each - // assigned a seat. + // InfantInSeatCount: The number of passengers that are infants each assigned a + // seat. InfantInSeatCount int64 `json:"infantInSeatCount,omitempty"` - - // Kind: Identifies this as a passenger count object, representing the - // number of passengers. Value: the fixed string - // qpxexpress#passengerCounts. + // Kind: Identifies this as a passenger count object, representing the number + // of passengers. Value: the fixed string qpxexpress#passengerCounts. Kind string `json:"kind,omitempty"` - // SeniorCount: The number of passengers that are senior citizens. SeniorCount int64 `json:"seniorCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdultCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdultCount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdultCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PassengerCounts) MarshalJSON() ([]byte, error) { +func (s PassengerCounts) MarshalJSON() ([]byte, error) { type NoMethod PassengerCounts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PricingInfo: The price of one or more travel segments. The currency -// used to purchase tickets is usually determined by the sale/ticketing -// city or the sale/ticketing country, unless none are specified, in -// which case it defaults to that of the journey origin country. +// PricingInfo: The price of one or more travel segments. The currency used to +// purchase tickets is usually determined by the sale/ticketing city or the +// sale/ticketing country, unless none are specified, in which case it defaults +// to that of the journey origin country. type PricingInfo struct { - // BaseFareTotal: The total fare in the base fare currency (the currency - // of the country of origin). This element is only present when the - // sales currency and the currency of the country of commencement are - // different. + // BaseFareTotal: The total fare in the base fare currency (the currency of the + // country of origin). This element is only present when the sales currency and + // the currency of the country of commencement are different. BaseFareTotal string `json:"baseFareTotal,omitempty"` - // Fare: The fare used to price one or more segments. Fare []*FareInfo `json:"fare,omitempty"` - - // FareCalculation: The horizontal fare calculation. This is a field on - // a ticket that displays all of the relevant items that go into the - // calculation of the fare. + // FareCalculation: The horizontal fare calculation. This is a field on a + // ticket that displays all of the relevant items that go into the calculation + // of the fare. FareCalculation string `json:"fareCalculation,omitempty"` - - // Kind: Identifies this as a pricing object, representing the price of - // one or more travel segments. Value: the fixed string - // qpxexpress#pricingInfo. + // Kind: Identifies this as a pricing object, representing the price of one or + // more travel segments. Value: the fixed string qpxexpress#pricingInfo. Kind string `json:"kind,omitempty"` - - // LatestTicketingTime: The latest ticketing time for this pricing - // assuming the reservation occurs at ticketing time and there is no - // change in fares/rules. The time is local to the point of sale (POS). + // LatestTicketingTime: The latest ticketing time for this pricing assuming the + // reservation occurs at ticketing time and there is no change in fares/rules. + // The time is local to the point of sale (POS). LatestTicketingTime string `json:"latestTicketingTime,omitempty"` - // Passengers: The number of passengers to which this price applies. Passengers *PassengerCounts `json:"passengers,omitempty"` - - // Ptc: The passenger type code for this pricing. An alphanumeric code - // used by a carrier to restrict fares to certain categories of - // passenger. For instance, a fare might be valid only for senior - // citizens. + // Ptc: The passenger type code for this pricing. An alphanumeric code used by + // a carrier to restrict fares to certain categories of passenger. For + // instance, a fare might be valid only for senior citizens. Ptc string `json:"ptc,omitempty"` - // Refundable: Whether the fares on this pricing are refundable. Refundable bool `json:"refundable,omitempty"` - // SaleFareTotal: The total fare in the sale or equivalent currency. SaleFareTotal string `json:"saleFareTotal,omitempty"` - // SaleTaxTotal: The taxes in the sale or equivalent currency. SaleTaxTotal string `json:"saleTaxTotal,omitempty"` - // SaleTotal: Total per-passenger price (fare and tax) in the sale or // equivalent currency. SaleTotal string `json:"saleTotal,omitempty"` - // SegmentPricing: The per-segment price and baggage information. SegmentPricing []*SegmentPricing `json:"segmentPricing,omitempty"` - // Tax: The taxes used to calculate the tax total per ticket. Tax []*TaxInfo `json:"tax,omitempty"` - // ForceSendFields is a list of field names (e.g. "BaseFareTotal") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BaseFareTotal") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BaseFareTotal") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PricingInfo) MarshalJSON() ([]byte, error) { +func (s PricingInfo) MarshalJSON() ([]byte, error) { type NoMethod PricingInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SegmentInfo: Details of a segment of a flight; a segment is one or -// more consecutive legs on the same flight. For example a hypothetical -// flight ZZ001, from DFW to OGG, would have one segment with two legs: -// DFW to HNL (leg 1), HNL to OGG (leg 2), and DFW to OGG (legs 1 and -// 2). +// SegmentInfo: Details of a segment of a flight; a segment is one or more +// consecutive legs on the same flight. For example a hypothetical flight +// ZZ001, from DFW to OGG, would have one segment with two legs: DFW to HNL +// (leg 1), HNL to OGG (leg 2), and DFW to OGG (legs 1 and 2). type SegmentInfo struct { // BookingCode: The booking code or class for this segment. BookingCode string `json:"bookingCode,omitempty"` - - // BookingCodeCount: The number of seats available in this booking code - // on this segment. + // BookingCodeCount: The number of seats available in this booking code on this + // segment. BookingCodeCount int64 `json:"bookingCodeCount,omitempty"` - // Cabin: The cabin booked for this segment. Cabin string `json:"cabin,omitempty"` - - // ConnectionDuration: In minutes, the duration of the connection - // following this segment. + // ConnectionDuration: In minutes, the duration of the connection following + // this segment. ConnectionDuration int64 `json:"connectionDuration,omitempty"` - // Duration: The duration of the flight segment in minutes. Duration int64 `json:"duration,omitempty"` - // Flight: The flight this is a segment of. Flight *FlightInfo `json:"flight,omitempty"` - // Id: An id uniquely identifying the segment in the solution. Id string `json:"id,omitempty"` - // Kind: Identifies this as a segment object. A segment is one or more - // consecutive legs on the same flight. For example a hypothetical - // flight ZZ001, from DFW to OGG, could have one segment with two legs: - // DFW to HNL (leg 1), HNL to OGG (leg 2). Value: the fixed string - // qpxexpress#segmentInfo. + // consecutive legs on the same flight. For example a hypothetical flight + // ZZ001, from DFW to OGG, could have one segment with two legs: DFW to HNL + // (leg 1), HNL to OGG (leg 2). Value: the fixed string qpxexpress#segmentInfo. Kind string `json:"kind,omitempty"` - // Leg: The legs composing this segment. Leg []*LegInfo `json:"leg,omitempty"` - - // MarriedSegmentGroup: The solution-based index of a segment in a - // married segment group. Married segments can only be booked together. - // For example, an airline might report a certain booking code as sold - // out from Boston to Pittsburgh, but as available as part of two - // married segments Boston to Chicago connecting through Pittsburgh. For - // example content of this field, consider the round-trip flight ZZ1 - // PHX-PHL ZZ2 PHL-CLT ZZ3 CLT-PHX. This has three segments, with the - // two outbound ones (ZZ1 ZZ2) married. In this case, the two outbound - // segments belong to married segment group 0, and the return segment - // belongs to married segment group 1. + // MarriedSegmentGroup: The solution-based index of a segment in a married + // segment group. Married segments can only be booked together. For example, an + // airline might report a certain booking code as sold out from Boston to + // Pittsburgh, but as available as part of two married segments Boston to + // Chicago connecting through Pittsburgh. For example content of this field, + // consider the round-trip flight ZZ1 PHX-PHL ZZ2 PHL-CLT ZZ3 CLT-PHX. This has + // three segments, with the two outbound ones (ZZ1 ZZ2) married. In this case, + // the two outbound segments belong to married segment group 0, and the return + // segment belongs to married segment group 1. MarriedSegmentGroup string `json:"marriedSegmentGroup,omitempty"` - - // SubjectToGovernmentApproval: Whether the operation of this segment - // remains subject to government approval. + // SubjectToGovernmentApproval: Whether the operation of this segment remains + // subject to government approval. SubjectToGovernmentApproval bool `json:"subjectToGovernmentApproval,omitempty"` - // ForceSendFields is a list of field names (e.g. "BookingCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BookingCode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BookingCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SegmentInfo) MarshalJSON() ([]byte, error) { +func (s SegmentInfo) MarshalJSON() ([]byte, error) { type NoMethod SegmentInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SegmentPricing: The price of this segment. type SegmentPricing struct { - // FareId: A segment identifier unique within a single solution. It is - // used to refer to different parts of the same solution. + // FareId: A segment identifier unique within a single solution. It is used to + // refer to different parts of the same solution. FareId string `json:"fareId,omitempty"` - - // FreeBaggageOption: Details of the free baggage allowance on this - // segment. + // FreeBaggageOption: Details of the free baggage allowance on this segment. FreeBaggageOption []*FreeBaggageAllowance `json:"freeBaggageOption,omitempty"` - - // Kind: Identifies this as a segment pricing object, representing the - // price of this segment. Value: the fixed string - // qpxexpress#segmentPricing. + // Kind: Identifies this as a segment pricing object, representing the price of + // this segment. Value: the fixed string qpxexpress#segmentPricing. Kind string `json:"kind,omitempty"` - // SegmentId: Unique identifier in the response of this segment. SegmentId string `json:"segmentId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FareId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "FareId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FareId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SegmentPricing) MarshalJSON() ([]byte, error) { +func (s SegmentPricing) MarshalJSON() ([]byte, error) { type NoMethod SegmentPricing - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SliceInfo: Information about a slice. A slice represents a -// traveller's intent, the portion of a low-fare search corresponding to -// a traveler's request to get between two points. One-way journeys are -// generally expressed using 1 slice, round-trips using 2. For example, -// if a traveler specifies the following trip in a user interface: -// | Origin | Destination | Departure Date | | BOS | LAX | March 10, -// 2007 | | LAX | SYD | March 17, 2007 | | SYD | BOS | March 22, 2007 -// | +// SliceInfo: Information about a slice. A slice represents a traveller's +// intent, the portion of a low-fare search corresponding to a traveler's +// request to get between two points. One-way journeys are generally expressed +// using 1 slice, round-trips using 2. For example, if a traveler specifies the +// following trip in a user interface: +// | Origin | Destination | Departure Date | | BOS | LAX | March 10, 2007 | | +// LAX | SYD | March 17, 2007 | | SYD | BOS | March 22, 2007 | // then this is a three slice trip. type SliceInfo struct { // Duration: The duration of the slice in minutes. Duration int64 `json:"duration,omitempty"` - - // Kind: Identifies this as a slice object. A slice represents a - // traveller's intent, the portion of a low-fare search corresponding to - // a traveler's request to get between two points. One-way journeys are - // generally expressed using 1 slice, round-trips using 2. Value: the - // fixed string qpxexpress#sliceInfo. + // Kind: Identifies this as a slice object. A slice represents a traveller's + // intent, the portion of a low-fare search corresponding to a traveler's + // request to get between two points. One-way journeys are generally expressed + // using 1 slice, round-trips using 2. Value: the fixed string + // qpxexpress#sliceInfo. Kind string `json:"kind,omitempty"` - // Segment: The segment(s) constituting the slice. Segment []*SegmentInfo `json:"segment,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SliceInfo) MarshalJSON() ([]byte, error) { +func (s SliceInfo) MarshalJSON() ([]byte, error) { type NoMethod SliceInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SliceInput: Criteria a desired slice must satisfy. type SliceInput struct { - // Alliance: Slices with only the carriers in this alliance should be - // returned; do not use this field with permittedCarrier. Allowed values - // are ONEWORLD, SKYTEAM, and STAR. + // Alliance: Slices with only the carriers in this alliance should be returned; + // do not use this field with permittedCarrier. Allowed values are ONEWORLD, + // SKYTEAM, and STAR. Alliance string `json:"alliance,omitempty"` - // Date: Departure date in YYYY-MM-DD format. Date string `json:"date,omitempty"` - // Destination: Airport or city IATA designator of the destination. Destination string `json:"destination,omitempty"` - - // Kind: Identifies this as a slice input object, representing the - // criteria a desired slice must satisfy. Value: the fixed string - // qpxexpress#sliceInput. + // Kind: Identifies this as a slice input object, representing the criteria a + // desired slice must satisfy. Value: the fixed string qpxexpress#sliceInput. Kind string `json:"kind,omitempty"` - - // MaxConnectionDuration: The longest connection between two legs, in - // minutes, you are willing to accept. + // MaxConnectionDuration: The longest connection between two legs, in minutes, + // you are willing to accept. MaxConnectionDuration int64 `json:"maxConnectionDuration,omitempty"` - - // MaxStops: The maximum number of stops you are willing to accept in - // this slice. + // MaxStops: The maximum number of stops you are willing to accept in this + // slice. MaxStops int64 `json:"maxStops,omitempty"` - // Origin: Airport or city IATA designator of the origin. Origin string `json:"origin,omitempty"` - - // PermittedCarrier: A list of 2-letter IATA airline designators. Slices - // with only these carriers should be returned. + // PermittedCarrier: A list of 2-letter IATA airline designators. Slices with + // only these carriers should be returned. PermittedCarrier []string `json:"permittedCarrier,omitempty"` - - // PermittedDepartureTime: Slices must depart in this time of day range, - // local to the point of departure. + // PermittedDepartureTime: Slices must depart in this time of day range, local + // to the point of departure. PermittedDepartureTime *TimeOfDayRange `json:"permittedDepartureTime,omitempty"` - - // PreferredCabin: Prefer solutions that book in this cabin for this - // slice. Allowed values are COACH, PREMIUM_COACH, BUSINESS, and FIRST. + // PreferredCabin: Prefer solutions that book in this cabin for this slice. + // Allowed values are COACH, PREMIUM_COACH, BUSINESS, and FIRST. PreferredCabin string `json:"preferredCabin,omitempty"` - - // ProhibitedCarrier: A list of 2-letter IATA airline designators. - // Exclude slices that use these carriers. + // ProhibitedCarrier: A list of 2-letter IATA airline designators. Exclude + // slices that use these carriers. ProhibitedCarrier []string `json:"prohibitedCarrier,omitempty"` - // ForceSendFields is a list of field names (e.g. "Alliance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Alliance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Alliance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SliceInput) MarshalJSON() ([]byte, error) { +func (s SliceInput) MarshalJSON() ([]byte, error) { type NoMethod SliceInput - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TaxData: Tax data. type TaxData struct { // Id: An identifier uniquely identifying a tax in a response. Id string `json:"id,omitempty"` - - // Kind: Identifies this as a tax data object, representing some tax. - // Value: the fixed string qpxexpress#taxData. + // Kind: Identifies this as a tax data object, representing some tax. Value: + // the fixed string qpxexpress#taxData. Kind string `json:"kind,omitempty"` - // Name: The name of a tax. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TaxData) MarshalJSON() ([]byte, error) { +func (s TaxData) MarshalJSON() ([]byte, error) { type NoMethod TaxData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TaxInfo: Tax information. type TaxInfo struct { - // ChargeType: Whether this is a government charge or a carrier - // surcharge. + // ChargeType: Whether this is a government charge or a carrier surcharge. ChargeType string `json:"chargeType,omitempty"` - // Code: The code to enter in the ticket's tax box. Code string `json:"code,omitempty"` - // Country: For government charges, the country levying the charge. Country string `json:"country,omitempty"` - - // Id: Identifier uniquely identifying this tax in a response. Not - // present for unnamed carrier surcharges. + // Id: Identifier uniquely identifying this tax in a response. Not present for + // unnamed carrier surcharges. Id string `json:"id,omitempty"` - - // Kind: Identifies this as a tax information object. Value: the fixed - // string qpxexpress#taxInfo. + // Kind: Identifies this as a tax information object. Value: the fixed string + // qpxexpress#taxInfo. Kind string `json:"kind,omitempty"` - // SalePrice: The price of the tax in the sales or equivalent currency. SalePrice string `json:"salePrice,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChargeType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChargeType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChargeType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TaxInfo) MarshalJSON() ([]byte, error) { +func (s TaxInfo) MarshalJSON() ([]byte, error) { type NoMethod TaxInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TimeOfDayRange: Two times in a single day defining a time range. type TimeOfDayRange struct { // EarliestTime: The earliest time of day in HH:MM format. EarliestTime string `json:"earliestTime,omitempty"` - - // Kind: Identifies this as a time of day range object, representing two - // times in a single day defining a time range. Value: the fixed string + // Kind: Identifies this as a time of day range object, representing two times + // in a single day defining a time range. Value: the fixed string // qpxexpress#timeOfDayRange. Kind string `json:"kind,omitempty"` - // LatestTime: The latest time of day in HH:MM format. LatestTime string `json:"latestTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "EarliestTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EarliestTime") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EarliestTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimeOfDayRange) MarshalJSON() ([]byte, error) { +func (s TimeOfDayRange) MarshalJSON() ([]byte, error) { type NoMethod TimeOfDayRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TripOption: Trip information. type TripOption struct { // Id: Identifier uniquely identifying this trip in a response. Id string `json:"id,omitempty"` - - // Kind: Identifies this as a trip information object. Value: the fixed - // string qpxexpress#tripOption. + // Kind: Identifies this as a trip information object. Value: the fixed string + // qpxexpress#tripOption. Kind string `json:"kind,omitempty"` - // Pricing: Per passenger pricing information. Pricing []*PricingInfo `json:"pricing,omitempty"` - - // SaleTotal: The total price for all passengers on the trip, in the - // form of a currency followed by an amount, e.g. USD253.35. + // SaleTotal: The total price for all passengers on the trip, in the form of a + // currency followed by an amount, e.g. USD253.35. SaleTotal string `json:"saleTotal,omitempty"` - // Slice: The slices that make up this trip's itinerary. Slice []*SliceInfo `json:"slice,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TripOption) MarshalJSON() ([]byte, error) { +func (s TripOption) MarshalJSON() ([]byte, error) { type NoMethod TripOption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TripOptionsRequest: A QPX Express search request, which will yield -// one or more solutions. +// TripOptionsRequest: A QPX Express search request, which will yield one or +// more solutions. type TripOptionsRequest struct { // MaxPrice: Do not return solutions that cost more than this price. The - // alphabetical part of the price is in ISO 4217. The format, in regex, - // is [A-Z]{3}\d+(\.\d+)? Example: $102.07 + // alphabetical part of the price is in ISO 4217. The format, in regex, is + // [A-Z]{3}\d+(\.\d+)? Example: $102.07 MaxPrice string `json:"maxPrice,omitempty"` - // Passengers: Counts for each passenger type in the request. Passengers *PassengerCounts `json:"passengers,omitempty"` - // Refundable: Return only solutions with refundable fares. Refundable bool `json:"refundable,omitempty"` - // SaleCountry: IATA country code representing the point of sale. This // determines the "equivalent amount paid" currency for the ticket. SaleCountry string `json:"saleCountry,omitempty"` - // Slice: The slices that make up the itinerary of this trip. A slice // represents a traveler's intent, the portion of a low-fare search - // corresponding to a traveler's request to get between two points. - // One-way journeys are generally expressed using one slice, round-trips - // using two. An example of a one slice trip with three segments might - // be BOS-SYD, SYD-LAX, LAX-BOS if the traveler only stopped in SYD and - // LAX just long enough to change planes. + // corresponding to a traveler's request to get between two points. One-way + // journeys are generally expressed using one slice, round-trips using two. An + // example of a one slice trip with three segments might be BOS-SYD, SYD-LAX, + // LAX-BOS if the traveler only stopped in SYD and LAX just long enough to + // change planes. Slice []*SliceInput `json:"slice,omitempty"` - // Solutions: The number of solutions to return, maximum 500. Solutions int64 `json:"solutions,omitempty"` - - // TicketingCountry: IATA country code representing the point of - // ticketing. + // TicketingCountry: IATA country code representing the point of ticketing. TicketingCountry string `json:"ticketingCountry,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxPrice") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxPrice") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxPrice") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TripOptionsRequest) MarshalJSON() ([]byte, error) { +func (s TripOptionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TripOptionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TripOptionsResponse: A QPX Express search response. type TripOptionsResponse struct { // Data: Informational data global to list of solutions. Data *Data `json:"data,omitempty"` - - // Kind: Identifies this as a QPX Express trip response object, which - // consists of zero or more solutions. Value: the fixed string - // qpxexpress#tripOptions. + // Kind: Identifies this as a QPX Express trip response object, which consists + // of zero or more solutions. Value: the fixed string qpxexpress#tripOptions. Kind string `json:"kind,omitempty"` - // RequestId: An identifier uniquely identifying this response. RequestId string `json:"requestId,omitempty"` - - // TripOption: A list of priced itinerary solutions to the QPX Express - // query. + // TripOption: A list of priced itinerary solutions to the QPX Express query. TripOption []*TripOption `json:"tripOption,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TripOptionsResponse) MarshalJSON() ([]byte, error) { +func (s TripOptionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TripOptionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TripsSearchRequest: A QPX Express search request. type TripsSearchRequest struct { - // Request: A QPX Express search request. Required values are at least - // one adult or senior passenger, an origin, a destination, and a date. + // Request: A QPX Express search request. Required values are at least one + // adult or senior passenger, an origin, a destination, and a date. Request *TripOptionsRequest `json:"request,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Request") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Request") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Request") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Request") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TripsSearchRequest) MarshalJSON() ([]byte, error) { +func (s TripsSearchRequest) MarshalJSON() ([]byte, error) { type NoMethod TripsSearchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TripsSearchResponse: A QPX Express search response. type TripsSearchResponse struct { - // Kind: Identifies this as a QPX Express API search response resource. - // Value: the fixed string qpxExpress#tripsSearch. + // Kind: Identifies this as a QPX Express API search response resource. Value: + // the fixed string qpxExpress#tripsSearch. Kind string `json:"kind,omitempty"` - // Trips: All possible solutions to the QPX Express search request. Trips *TripOptionsResponse `json:"trips,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TripsSearchResponse) MarshalJSON() ([]byte, error) { +func (s TripsSearchResponse) MarshalJSON() ([]byte, error) { type NoMethod TripsSearchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "qpxExpress.trips.search": - type TripsSearchCall struct { s *Service tripssearchrequest *TripsSearchRequest @@ -1313,23 +1044,21 @@ func (r *TripsService) Search(tripssearchrequest *TripsSearchRequest) *TripsSear } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TripsSearchCall) Fields(s ...googleapi.Field) *TripsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TripsSearchCall) Context(ctx context.Context) *TripsSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TripsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1338,18 +1067,12 @@ func (c *TripsSearchCall) Header() http.Header { } func (c *TripsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.tripssearchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "search") @@ -1359,16 +1082,15 @@ func (c *TripsSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "qpxExpress.trips.search" call. -// Exactly one of *TripsSearchResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TripsSearchResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TripsSearchResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TripsSearchCall) Do(opts ...googleapi.CallOption) (*TripsSearchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1376,17 +1098,17 @@ func (c *TripsSearchCall) Do(opts ...googleapi.CallOption) (*TripsSearchResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TripsSearchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1399,17 +1121,4 @@ func (c *TripsSearchCall) Do(opts ...googleapi.CallOption) (*TripsSearchResponse return nil, err } return ret, nil - // { - // "description": "Returns a list of flights.", - // "httpMethod": "POST", - // "id": "qpxExpress.trips.search", - // "path": "search", - // "request": { - // "$ref": "TripsSearchRequest" - // }, - // "response": { - // "$ref": "TripsSearchResponse" - // } - // } - } diff --git a/rapidmigrationassessment/v1/rapidmigrationassessment-gen.go b/rapidmigrationassessment/v1/rapidmigrationassessment-gen.go index f81a661352c..46d50319108 100644 --- a/rapidmigrationassessment/v1/rapidmigrationassessment-gen.go +++ b/rapidmigrationassessment/v1/rapidmigrationassessment-gen.go @@ -780,7 +780,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.get" call. @@ -911,7 +911,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.list" call. @@ -1041,7 +1041,7 @@ func (c *ProjectsLocationsAnnotationsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.annotations.create" call. @@ -1148,7 +1148,7 @@ func (c *ProjectsLocationsAnnotationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.annotations.get" call. @@ -1264,7 +1264,7 @@ func (c *ProjectsLocationsCollectorsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.collectors.create" call. @@ -1376,7 +1376,7 @@ func (c *ProjectsLocationsCollectorsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.collectors.delete" call. @@ -1483,7 +1483,7 @@ func (c *ProjectsLocationsCollectorsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.collectors.get" call. @@ -1618,7 +1618,7 @@ func (c *ProjectsLocationsCollectorsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.collectors.list" call. @@ -1768,7 +1768,7 @@ func (c *ProjectsLocationsCollectorsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.collectors.patch" call. @@ -1869,7 +1869,7 @@ func (c *ProjectsLocationsCollectorsPauseCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.collectors.pause" call. @@ -1970,7 +1970,7 @@ func (c *ProjectsLocationsCollectorsRegisterCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.collectors.register" call. @@ -2071,7 +2071,7 @@ func (c *ProjectsLocationsCollectorsResumeCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.collectors.resume" call. @@ -2180,7 +2180,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.operations.cancel" call. @@ -2278,7 +2278,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.operations.delete" call. @@ -2387,7 +2387,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.operations.get" call. @@ -2515,7 +2515,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "rapidmigrationassessment.projects.locations.operations.list" call. diff --git a/readerrevenuesubscriptionlinking/v1/readerrevenuesubscriptionlinking-gen.go b/readerrevenuesubscriptionlinking/v1/readerrevenuesubscriptionlinking-gen.go index 3154e976832..643eb601423 100644 --- a/readerrevenuesubscriptionlinking/v1/readerrevenuesubscriptionlinking-gen.go +++ b/readerrevenuesubscriptionlinking/v1/readerrevenuesubscriptionlinking-gen.go @@ -334,7 +334,7 @@ func (c *PublicationsReadersDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "readerrevenuesubscriptionlinking.publications.readers.delete" call. @@ -444,7 +444,7 @@ func (c *PublicationsReadersGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "readerrevenuesubscriptionlinking.publications.readers.get" call. @@ -554,7 +554,7 @@ func (c *PublicationsReadersGetEntitlementsCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "readerrevenuesubscriptionlinking.publications.readers.getEntitlements" call. @@ -667,7 +667,7 @@ func (c *PublicationsReadersUpdateEntitlementsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "readerrevenuesubscriptionlinking.publications.readers.updateEntitlements" call. diff --git a/realtimebidding/v1/realtimebidding-gen.go b/realtimebidding/v1/realtimebidding-gen.go index d583d9dd456..9760c94c561 100644 --- a/realtimebidding/v1/realtimebidding-gen.go +++ b/realtimebidding/v1/realtimebidding-gen.go @@ -2647,7 +2647,7 @@ func (c *BiddersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.get" call. @@ -2763,7 +2763,7 @@ func (c *BiddersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.list" call. @@ -2960,7 +2960,7 @@ func (c *BiddersCreativesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.creatives.list" call. @@ -3090,7 +3090,7 @@ func (c *BiddersCreativesWatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.creatives.watch" call. @@ -3199,7 +3199,7 @@ func (c *BiddersEndpointsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.endpoints.get" call. @@ -3323,7 +3323,7 @@ func (c *BiddersEndpointsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.endpoints.list" call. @@ -3456,7 +3456,7 @@ func (c *BiddersEndpointsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.endpoints.patch" call. @@ -3558,7 +3558,7 @@ func (c *BiddersPretargetingConfigsActivateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.activate" call. @@ -3661,7 +3661,7 @@ func (c *BiddersPretargetingConfigsAddTargetedAppsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "pretargetingConfig": c.pretargetingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.addTargetedApps" call. @@ -3764,7 +3764,7 @@ func (c *BiddersPretargetingConfigsAddTargetedPublishersCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "pretargetingConfig": c.pretargetingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.addTargetedPublishers" call. @@ -3867,7 +3867,7 @@ func (c *BiddersPretargetingConfigsAddTargetedSitesCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "pretargetingConfig": c.pretargetingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.addTargetedSites" call. @@ -3974,7 +3974,7 @@ func (c *BiddersPretargetingConfigsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.create" call. @@ -4071,7 +4071,7 @@ func (c *BiddersPretargetingConfigsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.delete" call. @@ -4179,7 +4179,7 @@ func (c *BiddersPretargetingConfigsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.get" call. @@ -4306,7 +4306,7 @@ func (c *BiddersPretargetingConfigsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.list" call. @@ -4437,7 +4437,7 @@ func (c *BiddersPretargetingConfigsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.patch" call. @@ -4541,7 +4541,7 @@ func (c *BiddersPretargetingConfigsRemoveTargetedAppsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "pretargetingConfig": c.pretargetingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.removeTargetedApps" call. @@ -4645,7 +4645,7 @@ func (c *BiddersPretargetingConfigsRemoveTargetedPublishersCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "pretargetingConfig": c.pretargetingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.removeTargetedPublishers" call. @@ -4749,7 +4749,7 @@ func (c *BiddersPretargetingConfigsRemoveTargetedSitesCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "pretargetingConfig": c.pretargetingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.removeTargetedSites" call. @@ -4852,7 +4852,7 @@ func (c *BiddersPretargetingConfigsSuspendCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.pretargetingConfigs.suspend" call. @@ -4956,7 +4956,7 @@ func (c *BiddersPublisherConnectionsBatchApproveCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.publisherConnections.batchApprove" call. @@ -5060,7 +5060,7 @@ func (c *BiddersPublisherConnectionsBatchRejectCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.publisherConnections.batchReject" call. @@ -5172,7 +5172,7 @@ func (c *BiddersPublisherConnectionsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.publisherConnections.get" call. @@ -5321,7 +5321,7 @@ func (c *BiddersPublisherConnectionsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.publisherConnections.list" call. @@ -5450,7 +5450,7 @@ func (c *BuyersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.get" call. @@ -5568,7 +5568,7 @@ func (c *BuyersGetRemarketingTagCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.getRemarketingTag" call. @@ -5686,7 +5686,7 @@ func (c *BuyersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.list" call. @@ -5814,7 +5814,7 @@ func (c *BuyersCreativesCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.creatives.create" call. @@ -5944,7 +5944,7 @@ func (c *BuyersCreativesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.creatives.get" call. @@ -6119,7 +6119,7 @@ func (c *BuyersCreativesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.creatives.list" call. @@ -6253,7 +6253,7 @@ func (c *BuyersCreativesPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.creatives.patch" call. @@ -6355,7 +6355,7 @@ func (c *BuyersUserListsCloseCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.userLists.close" call. @@ -6461,7 +6461,7 @@ func (c *BuyersUserListsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.userLists.create" call. @@ -6568,7 +6568,7 @@ func (c *BuyersUserListsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.userLists.get" call. @@ -6686,7 +6686,7 @@ func (c *BuyersUserListsGetRemarketingTagCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.userLists.getRemarketingTag" call. @@ -6813,7 +6813,7 @@ func (c *BuyersUserListsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.userLists.list" call. @@ -6937,7 +6937,7 @@ func (c *BuyersUserListsOpenCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.userLists.open" call. @@ -7044,7 +7044,7 @@ func (c *BuyersUserListsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.buyers.userLists.update" call. diff --git a/realtimebidding/v1alpha/realtimebidding-gen.go b/realtimebidding/v1alpha/realtimebidding-gen.go index 26d92e2e0d6..b7a7100c5a6 100644 --- a/realtimebidding/v1alpha/realtimebidding-gen.go +++ b/realtimebidding/v1alpha/realtimebidding-gen.go @@ -416,7 +416,7 @@ func (c *BiddersBiddingFunctionsActivateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.biddingFunctions.activate" call. @@ -521,7 +521,7 @@ func (c *BiddersBiddingFunctionsArchiveCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.biddingFunctions.archive" call. @@ -624,7 +624,7 @@ func (c *BiddersBiddingFunctionsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.biddingFunctions.create" call. @@ -749,7 +749,7 @@ func (c *BiddersBiddingFunctionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "realtimebidding.bidders.biddingFunctions.list" call. diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 9a4564d0865..7144adeb180 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -2702,7 +2702,7 @@ func (c *ProjectsAssessmentsAnnotateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.assessments.annotate" call. @@ -2805,7 +2805,7 @@ func (c *ProjectsAssessmentsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.assessments.create" call. @@ -2910,7 +2910,7 @@ func (c *ProjectsFirewallpoliciesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.firewallpolicies.create" call. @@ -3007,7 +3007,7 @@ func (c *ProjectsFirewallpoliciesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.firewallpolicies.delete" call. @@ -3116,7 +3116,7 @@ func (c *ProjectsFirewallpoliciesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.firewallpolicies.get" call. @@ -3239,7 +3239,7 @@ func (c *ProjectsFirewallpoliciesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.firewallpolicies.list" call. @@ -3371,7 +3371,7 @@ func (c *ProjectsFirewallpoliciesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.firewallpolicies.patch" call. @@ -3474,7 +3474,7 @@ func (c *ProjectsFirewallpoliciesReorderCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.firewallpolicies.reorder" call. @@ -3580,7 +3580,7 @@ func (c *ProjectsKeysAddIpOverrideCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.addIpOverride" call. @@ -3683,7 +3683,7 @@ func (c *ProjectsKeysCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.create" call. @@ -3780,7 +3780,7 @@ func (c *ProjectsKeysDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.delete" call. @@ -3889,7 +3889,7 @@ func (c *ProjectsKeysGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.get" call. @@ -3999,7 +3999,7 @@ func (c *ProjectsKeysGetMetricsCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.getMetrics" call. @@ -4122,7 +4122,7 @@ func (c *ProjectsKeysListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.list" call. @@ -4268,7 +4268,7 @@ func (c *ProjectsKeysListIpOverridesCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.listIpOverrides" call. @@ -4396,7 +4396,7 @@ func (c *ProjectsKeysMigrateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.migrate" call. @@ -4507,7 +4507,7 @@ func (c *ProjectsKeysPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.patch" call. @@ -4614,7 +4614,7 @@ func (c *ProjectsKeysRemoveIpOverrideCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.removeIpOverride" call. @@ -4725,7 +4725,7 @@ func (c *ProjectsKeysRetrieveLegacySecretKeyCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "key": c.key, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.keys.retrieveLegacySecretKey" call. @@ -4829,7 +4829,7 @@ func (c *ProjectsRelatedaccountgroupmembershipsSearchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.relatedaccountgroupmemberships.search" call. @@ -4979,7 +4979,7 @@ func (c *ProjectsRelatedaccountgroupsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.relatedaccountgroups.list" call. @@ -5127,7 +5127,7 @@ func (c *ProjectsRelatedaccountgroupsMembershipsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recaptchaenterprise.projects.relatedaccountgroups.memberships.list" call. diff --git a/recommendationengine/v1beta1/recommendationengine-gen.go b/recommendationengine/v1beta1/recommendationengine-gen.go index 147f5143ca0..d6f79a0c171 100644 --- a/recommendationengine/v1beta1/recommendationengine-gen.go +++ b/recommendationengine/v1beta1/recommendationengine-gen.go @@ -2237,7 +2237,7 @@ func (c *ProjectsLocationsCatalogsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.list" call. @@ -2369,7 +2369,7 @@ func (c *ProjectsLocationsCatalogsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.patch" call. @@ -2472,7 +2472,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.catalogItems.create" call. @@ -2570,7 +2570,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.catalogItems.delete" call. @@ -2680,7 +2680,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.catalogItems.get" call. @@ -2787,7 +2787,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsImportCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.catalogItems.import" call. @@ -2917,7 +2917,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.catalogItems.list" call. @@ -3051,7 +3051,7 @@ func (c *ProjectsLocationsCatalogsCatalogItemsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.catalogItems.patch" call. @@ -3161,7 +3161,7 @@ func (c *ProjectsLocationsCatalogsEventStoresOperationsGetCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.operations.get" call. @@ -3290,7 +3290,7 @@ func (c *ProjectsLocationsCatalogsEventStoresOperationsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.operations.list" call. @@ -3416,7 +3416,7 @@ func (c *ProjectsLocationsCatalogsEventStoresPlacementsPredictCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.placements.predict" call. @@ -3541,7 +3541,7 @@ func (c *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsCreate googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.create" call. @@ -3639,7 +3639,7 @@ func (c *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsDelete googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.delete" call. @@ -3763,7 +3763,7 @@ func (c *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsListCa googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.list" call. @@ -3922,7 +3922,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsCollectCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.userEvents.collect" call. @@ -4030,7 +4030,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsImportCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.userEvents.import" call. @@ -4186,7 +4186,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.userEvents.list" call. @@ -4315,7 +4315,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsPurgeCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.userEvents.purge" call. @@ -4425,7 +4425,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsRejoinCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.userEvents.rejoin" call. @@ -4529,7 +4529,7 @@ func (c *ProjectsLocationsCatalogsEventStoresUserEventsWriteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.eventStores.userEvents.write" call. @@ -4639,7 +4639,7 @@ func (c *ProjectsLocationsCatalogsOperationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.operations.get" call. @@ -4768,7 +4768,7 @@ func (c *ProjectsLocationsCatalogsOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommendationengine.projects.locations.catalogs.operations.list" call. diff --git a/recommender/v1/recommender-gen.go b/recommender/v1/recommender-gen.go index b4d53a01d4e..54a72d8bc0c 100644 --- a/recommender/v1/recommender-gen.go +++ b/recommender/v1/recommender-gen.go @@ -1486,7 +1486,7 @@ func (c *BillingAccountsLocationsInsightTypesGetConfigCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.insightTypes.getConfig" call. @@ -1605,7 +1605,7 @@ func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.insightTypes.updateConfig" call. @@ -1714,7 +1714,7 @@ func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.insightTypes.insights.get" call. @@ -1870,7 +1870,7 @@ func (c *BillingAccountsLocationsInsightTypesInsightsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.insightTypes.insights.list" call. @@ -1997,7 +1997,7 @@ func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.insightTypes.insights.markAccepted" call. @@ -2114,7 +2114,7 @@ func (c *BillingAccountsLocationsRecommendersGetConfigCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.getConfig" call. @@ -2233,7 +2233,7 @@ func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.updateConfig" call. @@ -2342,7 +2342,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.get" call. @@ -2497,7 +2497,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.list" call. @@ -2626,7 +2626,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markClaimed" call. @@ -2732,7 +2732,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markDismissed" call. @@ -2840,7 +2840,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markFailed" call. @@ -2948,7 +2948,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markSucceeded" call. @@ -3057,7 +3057,7 @@ func (c *FoldersLocationsInsightTypesInsightsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.insightTypes.insights.get" call. @@ -3213,7 +3213,7 @@ func (c *FoldersLocationsInsightTypesInsightsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.insightTypes.insights.list" call. @@ -3340,7 +3340,7 @@ func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.insightTypes.insights.markAccepted" call. @@ -3449,7 +3449,7 @@ func (c *FoldersLocationsRecommendersRecommendationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.get" call. @@ -3604,7 +3604,7 @@ func (c *FoldersLocationsRecommendersRecommendationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.list" call. @@ -3733,7 +3733,7 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.markClaimed" call. @@ -3839,7 +3839,7 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.markDismissed" call. @@ -3947,7 +3947,7 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.markFailed" call. @@ -4055,7 +4055,7 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.markSucceeded" call. @@ -4172,7 +4172,7 @@ func (c *OrganizationsLocationsInsightTypesGetConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.insightTypes.getConfig" call. @@ -4291,7 +4291,7 @@ func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.insightTypes.updateConfig" call. @@ -4400,7 +4400,7 @@ func (c *OrganizationsLocationsInsightTypesInsightsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.insightTypes.insights.get" call. @@ -4556,7 +4556,7 @@ func (c *OrganizationsLocationsInsightTypesInsightsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.insightTypes.insights.list" call. @@ -4683,7 +4683,7 @@ func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.insightTypes.insights.markAccepted" call. @@ -4800,7 +4800,7 @@ func (c *OrganizationsLocationsRecommendersGetConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.getConfig" call. @@ -4919,7 +4919,7 @@ func (c *OrganizationsLocationsRecommendersUpdateConfigCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.updateConfig" call. @@ -5028,7 +5028,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.get" call. @@ -5183,7 +5183,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.list" call. @@ -5312,7 +5312,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.markClaimed" call. @@ -5418,7 +5418,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.markDismissed" call. @@ -5526,7 +5526,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.markFailed" call. @@ -5634,7 +5634,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.markSucceeded" call. @@ -5751,7 +5751,7 @@ func (c *ProjectsLocationsInsightTypesGetConfigCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.insightTypes.getConfig" call. @@ -5870,7 +5870,7 @@ func (c *ProjectsLocationsInsightTypesUpdateConfigCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.insightTypes.updateConfig" call. @@ -5979,7 +5979,7 @@ func (c *ProjectsLocationsInsightTypesInsightsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.insightTypes.insights.get" call. @@ -6135,7 +6135,7 @@ func (c *ProjectsLocationsInsightTypesInsightsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.insightTypes.insights.list" call. @@ -6262,7 +6262,7 @@ func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.insightTypes.insights.markAccepted" call. @@ -6379,7 +6379,7 @@ func (c *ProjectsLocationsRecommendersGetConfigCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.getConfig" call. @@ -6498,7 +6498,7 @@ func (c *ProjectsLocationsRecommendersUpdateConfigCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.updateConfig" call. @@ -6607,7 +6607,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.get" call. @@ -6762,7 +6762,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.list" call. @@ -6891,7 +6891,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.markClaimed" call. @@ -6997,7 +6997,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.markDismissed" call. @@ -7105,7 +7105,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.markFailed" call. @@ -7213,7 +7213,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.markSucceeded" call. diff --git a/recommender/v1beta1/recommender-gen.go b/recommender/v1beta1/recommender-gen.go index 8dab08a6671..e49a3001119 100644 --- a/recommender/v1beta1/recommender-gen.go +++ b/recommender/v1beta1/recommender-gen.go @@ -1703,7 +1703,7 @@ func (c *BillingAccountsLocationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.list" call. @@ -1841,7 +1841,7 @@ func (c *BillingAccountsLocationsInsightTypesGetConfigCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.insightTypes.getConfig" call. @@ -1960,7 +1960,7 @@ func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.insightTypes.updateConfig" call. @@ -2069,7 +2069,7 @@ func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.insightTypes.insights.get" call. @@ -2225,7 +2225,7 @@ func (c *BillingAccountsLocationsInsightTypesInsightsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.insightTypes.insights.list" call. @@ -2352,7 +2352,7 @@ func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.insightTypes.insights.markAccepted" call. @@ -2469,7 +2469,7 @@ func (c *BillingAccountsLocationsRecommendersGetConfigCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.getConfig" call. @@ -2588,7 +2588,7 @@ func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.updateConfig" call. @@ -2697,7 +2697,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.get" call. @@ -2852,7 +2852,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.list" call. @@ -2981,7 +2981,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markClaimed" call. @@ -3087,7 +3087,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markDismissed" call. @@ -3195,7 +3195,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markFailed" call. @@ -3303,7 +3303,7 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markSucceeded" call. @@ -3435,7 +3435,7 @@ func (c *FoldersLocationsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.list" call. @@ -3565,7 +3565,7 @@ func (c *FoldersLocationsInsightTypesInsightsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.insightTypes.insights.get" call. @@ -3721,7 +3721,7 @@ func (c *FoldersLocationsInsightTypesInsightsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.insightTypes.insights.list" call. @@ -3848,7 +3848,7 @@ func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.insightTypes.insights.markAccepted" call. @@ -3957,7 +3957,7 @@ func (c *FoldersLocationsRecommendersRecommendationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.get" call. @@ -4112,7 +4112,7 @@ func (c *FoldersLocationsRecommendersRecommendationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.list" call. @@ -4241,7 +4241,7 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.markClaimed" call. @@ -4347,7 +4347,7 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.markDismissed" call. @@ -4455,7 +4455,7 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.markFailed" call. @@ -4563,7 +4563,7 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.folders.locations.recommenders.recommendations.markSucceeded" call. @@ -4679,7 +4679,7 @@ func (c *InsightTypesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.insightTypes.list" call. @@ -4832,7 +4832,7 @@ func (c *OrganizationsLocationsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.list" call. @@ -4970,7 +4970,7 @@ func (c *OrganizationsLocationsInsightTypesGetConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.insightTypes.getConfig" call. @@ -5089,7 +5089,7 @@ func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.insightTypes.updateConfig" call. @@ -5198,7 +5198,7 @@ func (c *OrganizationsLocationsInsightTypesInsightsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.insightTypes.insights.get" call. @@ -5354,7 +5354,7 @@ func (c *OrganizationsLocationsInsightTypesInsightsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.insightTypes.insights.list" call. @@ -5481,7 +5481,7 @@ func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.insightTypes.insights.markAccepted" call. @@ -5598,7 +5598,7 @@ func (c *OrganizationsLocationsRecommendersGetConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.getConfig" call. @@ -5717,7 +5717,7 @@ func (c *OrganizationsLocationsRecommendersUpdateConfigCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.updateConfig" call. @@ -5826,7 +5826,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.get" call. @@ -5981,7 +5981,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.list" call. @@ -6110,7 +6110,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.markClaimed" call. @@ -6216,7 +6216,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.markDismissed" call. @@ -6324,7 +6324,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.markFailed" call. @@ -6432,7 +6432,7 @@ func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.organizations.locations.recommenders.recommendations.markSucceeded" call. @@ -6564,7 +6564,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.list" call. @@ -6702,7 +6702,7 @@ func (c *ProjectsLocationsInsightTypesGetConfigCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.insightTypes.getConfig" call. @@ -6821,7 +6821,7 @@ func (c *ProjectsLocationsInsightTypesUpdateConfigCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.insightTypes.updateConfig" call. @@ -6930,7 +6930,7 @@ func (c *ProjectsLocationsInsightTypesInsightsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.insightTypes.insights.get" call. @@ -7086,7 +7086,7 @@ func (c *ProjectsLocationsInsightTypesInsightsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.insightTypes.insights.list" call. @@ -7213,7 +7213,7 @@ func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.insightTypes.insights.markAccepted" call. @@ -7330,7 +7330,7 @@ func (c *ProjectsLocationsRecommendersGetConfigCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.getConfig" call. @@ -7449,7 +7449,7 @@ func (c *ProjectsLocationsRecommendersUpdateConfigCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.updateConfig" call. @@ -7558,7 +7558,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.get" call. @@ -7713,7 +7713,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.list" call. @@ -7842,7 +7842,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.markClaimed" call. @@ -7948,7 +7948,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.markDismissed" call. @@ -8056,7 +8056,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.markFailed" call. @@ -8164,7 +8164,7 @@ func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.projects.locations.recommenders.recommendations.markSucceeded" call. @@ -8281,7 +8281,7 @@ func (c *RecommendersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "recommender.recommenders.list" call. diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index 4c1f57a40f5..35e8789c247 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -3788,7 +3788,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.get" call. @@ -3919,7 +3919,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.list" call. @@ -4067,7 +4067,7 @@ func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.create" call. @@ -4171,7 +4171,7 @@ func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.delete" call. @@ -4280,7 +4280,7 @@ func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.get" call. @@ -4390,7 +4390,7 @@ func (c *ProjectsLocationsClustersGetCertificateAuthorityCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.getCertificateAuthority" call. @@ -4521,7 +4521,7 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.list" call. @@ -4664,7 +4664,7 @@ func (c *ProjectsLocationsClustersPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.patch" call. @@ -4767,7 +4767,7 @@ func (c *ProjectsLocationsClustersRescheduleClusterMaintenanceCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.rescheduleClusterMaintenance" call. @@ -4888,7 +4888,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.create" call. @@ -4986,7 +4986,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.delete" call. @@ -5092,7 +5092,7 @@ func (c *ProjectsLocationsInstancesExportCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.export" call. @@ -5196,7 +5196,7 @@ func (c *ProjectsLocationsInstancesFailoverCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.failover" call. @@ -5305,7 +5305,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.get" call. @@ -5416,7 +5416,7 @@ func (c *ProjectsLocationsInstancesGetAuthStringCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.getAuthString" call. @@ -5524,7 +5524,7 @@ func (c *ProjectsLocationsInstancesImportCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.import" call. @@ -5654,7 +5654,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.list" call. @@ -5797,7 +5797,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.patch" call. @@ -5901,7 +5901,7 @@ func (c *ProjectsLocationsInstancesRescheduleMaintenanceCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.rescheduleMaintenance" call. @@ -6005,7 +6005,7 @@ func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.upgrade" call. @@ -6108,7 +6108,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.operations.cancel" call. @@ -6206,7 +6206,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.operations.delete" call. @@ -6315,7 +6315,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.operations.get" call. @@ -6443,7 +6443,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.operations.list" call. diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index 569e7b8074b..f3cdbc76f20 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -3792,7 +3792,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.get" call. @@ -3923,7 +3923,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.list" call. @@ -4071,7 +4071,7 @@ func (c *ProjectsLocationsClustersCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.create" call. @@ -4175,7 +4175,7 @@ func (c *ProjectsLocationsClustersDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.delete" call. @@ -4284,7 +4284,7 @@ func (c *ProjectsLocationsClustersGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.get" call. @@ -4394,7 +4394,7 @@ func (c *ProjectsLocationsClustersGetCertificateAuthorityCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.getCertificateAuthority" call. @@ -4525,7 +4525,7 @@ func (c *ProjectsLocationsClustersListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.list" call. @@ -4668,7 +4668,7 @@ func (c *ProjectsLocationsClustersPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.patch" call. @@ -4771,7 +4771,7 @@ func (c *ProjectsLocationsClustersRescheduleClusterMaintenanceCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.clusters.rescheduleClusterMaintenance" call. @@ -4893,7 +4893,7 @@ func (c *ProjectsLocationsInstancesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.create" call. @@ -4991,7 +4991,7 @@ func (c *ProjectsLocationsInstancesDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.delete" call. @@ -5097,7 +5097,7 @@ func (c *ProjectsLocationsInstancesExportCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.export" call. @@ -5201,7 +5201,7 @@ func (c *ProjectsLocationsInstancesFailoverCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.failover" call. @@ -5310,7 +5310,7 @@ func (c *ProjectsLocationsInstancesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.get" call. @@ -5421,7 +5421,7 @@ func (c *ProjectsLocationsInstancesGetAuthStringCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.getAuthString" call. @@ -5529,7 +5529,7 @@ func (c *ProjectsLocationsInstancesImportCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.import" call. @@ -5659,7 +5659,7 @@ func (c *ProjectsLocationsInstancesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.list" call. @@ -5802,7 +5802,7 @@ func (c *ProjectsLocationsInstancesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.patch" call. @@ -5906,7 +5906,7 @@ func (c *ProjectsLocationsInstancesRescheduleMaintenanceCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.rescheduleMaintenance" call. @@ -6010,7 +6010,7 @@ func (c *ProjectsLocationsInstancesUpgradeCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.instances.upgrade" call. @@ -6113,7 +6113,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.operations.cancel" call. @@ -6211,7 +6211,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.operations.delete" call. @@ -6320,7 +6320,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.operations.get" call. @@ -6448,7 +6448,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "redis.projects.locations.operations.list" call. diff --git a/remotebuildexecution/v1/remotebuildexecution-gen.go b/remotebuildexecution/v1/remotebuildexecution-gen.go index 6d8aea69d58..91fde29f3f7 100644 --- a/remotebuildexecution/v1/remotebuildexecution-gen.go +++ b/remotebuildexecution/v1/remotebuildexecution-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/remote-build-execution/docs/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package remotebuildexecution // import "google.golang.org/api/remotebuildexecution/v1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "remotebuildexecution:v1" const apiName = "remotebuildexecution" const apiVersion = "v1" const basePath = "https://remotebuildexecution.googleapis.com/" +const basePathTemplate = "https://remotebuildexecution.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://remotebuildexecution.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -180,381 +198,313 @@ type ProjectsOperationsService struct { s *Service } -// BuildBazelRemoteExecutionV2Action: An `Action` captures all the -// information about an execution which is required to reproduce it. -// `Action`s are the core component of the [Execution] service. A single -// `Action` represents a repeatable action that can be performed by the -// execution service. `Action`s can be succinctly identified by the -// digest of their wire format encoding and, once an `Action` has been -// executed, will be cached in the action cache. Future requests can -// then use the cached result rather than needing to run afresh. When a -// server completes execution of an Action, it MAY choose to cache the -// result in the ActionCache unless `do_not_cache` is `true`. Clients -// SHOULD expect the server to do so. By default, future calls to -// Execute the same `Action` will also serve their results from the -// cache. Clients must take care to understand the caching behaviour. -// Ideally, all `Action`s will be reproducible so that serving a result -// from cache is always desirable and correct. +// BuildBazelRemoteExecutionV2Action: An `Action` captures all the information +// about an execution which is required to reproduce it. `Action`s are the core +// component of the [Execution] service. A single `Action` represents a +// repeatable action that can be performed by the execution service. `Action`s +// can be succinctly identified by the digest of their wire format encoding +// and, once an `Action` has been executed, will be cached in the action cache. +// Future requests can then use the cached result rather than needing to run +// afresh. When a server completes execution of an Action, it MAY choose to +// cache the result in the ActionCache unless `do_not_cache` is `true`. Clients +// SHOULD expect the server to do so. By default, future calls to Execute the +// same `Action` will also serve their results from the cache. Clients must +// take care to understand the caching behaviour. Ideally, all `Action`s will +// be reproducible so that serving a result from cache is always desirable and +// correct. type BuildBazelRemoteExecutionV2Action struct { - // CommandDigest: The digest of the Command to run, which MUST be - // present in the ContentAddressableStorage. + // CommandDigest: The digest of the Command to run, which MUST be present in + // the ContentAddressableStorage. CommandDigest *BuildBazelRemoteExecutionV2Digest `json:"commandDigest,omitempty"` - // DoNotCache: If true, then the `Action`'s result cannot be cached, and // in-flight requests for the same `Action` may not be merged. DoNotCache bool `json:"doNotCache,omitempty"` - - // InputRootDigest: The digest of the root Directory for the input - // files. The files in the directory tree are available in the correct - // location on the build machine before the command is executed. The - // root directory, as well as every subdirectory and content blob - // referred to, MUST be in the ContentAddressableStorage. + // InputRootDigest: The digest of the root Directory for the input files. The + // files in the directory tree are available in the correct location on the + // build machine before the command is executed. The root directory, as well as + // every subdirectory and content blob referred to, MUST be in the + // ContentAddressableStorage. InputRootDigest *BuildBazelRemoteExecutionV2Digest `json:"inputRootDigest,omitempty"` - - // Platform: The optional platform requirements for the execution - // environment. The server MAY choose to execute the action on any - // worker satisfying the requirements, so the client SHOULD ensure that - // running the action on any such worker will have the same result. A - // detailed lexicon for this can be found in the accompanying - // platform.md. New in version 2.2: clients SHOULD set these platform - // properties as well as those in the Command. Servers SHOULD prefer - // those set here. + // Platform: The optional platform requirements for the execution environment. + // The server MAY choose to execute the action on any worker satisfying the + // requirements, so the client SHOULD ensure that running the action on any + // such worker will have the same result. A detailed lexicon for this can be + // found in the accompanying platform.md. New in version 2.2: clients SHOULD + // set these platform properties as well as those in the Command. Servers + // SHOULD prefer those set here. Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"` - - // Salt: An optional additional salt value used to place this `Action` - // into a separate cache namespace from other instances having the same - // field contents. This salt typically comes from operational - // configuration specific to sources such as repo and service - // configuration, and allows disowning an entire set of ActionResults - // that might have been poisoned by buggy software or tool failures. + // Salt: An optional additional salt value used to place this `Action` into a + // separate cache namespace from other instances having the same field + // contents. This salt typically comes from operational configuration specific + // to sources such as repo and service configuration, and allows disowning an + // entire set of ActionResults that might have been poisoned by buggy software + // or tool failures. Salt string `json:"salt,omitempty"` - // Timeout: A timeout after which the execution should be killed. If the - // timeout is absent, then the client is specifying that the execution - // should continue as long as the server will let it. The server SHOULD - // impose a timeout if the client does not specify one, however, if the - // client does specify a timeout that is longer than the server's - // maximum timeout, the server MUST reject the request. The timeout is a - // part of the Action message, and therefore two `Actions` with - // different timeouts are different, even if they are otherwise - // identical. This is because, if they were not, running an `Action` - // with a lower timeout than is required might result in a cache hit + // timeout is absent, then the client is specifying that the execution should + // continue as long as the server will let it. The server SHOULD impose a + // timeout if the client does not specify one, however, if the client does + // specify a timeout that is longer than the server's maximum timeout, the + // server MUST reject the request. The timeout is a part of the Action message, + // and therefore two `Actions` with different timeouts are different, even if + // they are otherwise identical. This is because, if they were not, running an + // `Action` with a lower timeout than is required might result in a cache hit // from an execution run with a longer timeout, hiding the fact that the - // timeout is too short. By encoding it directly in the `Action`, a - // lower timeout will result in a cache miss and the execution timeout - // will fail immediately, rather than whenever the cache entry gets - // evicted. + // timeout is too short. By encoding it directly in the `Action`, a lower + // timeout will result in a cache miss and the execution timeout will fail + // immediately, rather than whenever the cache entry gets evicted. Timeout string `json:"timeout,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommandDigest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommandDigest") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CommandDigest") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Action) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Action) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Action - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ActionResult: An ActionResult represents -// the result of an Action being run. It is advised that at least one -// field (for example `ActionResult.execution_metadata.Worker`) have a -// non-default value, to ensure that the serialized value is non-empty, -// which can then be used as a basic data sanity check. +// BuildBazelRemoteExecutionV2ActionResult: An ActionResult represents the +// result of an Action being run. It is advised that at least one field (for +// example `ActionResult.execution_metadata.Worker`) have a non-default value, +// to ensure that the serialized value is non-empty, which can then be used as +// a basic data sanity check. type BuildBazelRemoteExecutionV2ActionResult struct { - // ExecutionMetadata: The details of the execution that originally - // produced this result. + // ExecutionMetadata: The details of the execution that originally produced + // this result. ExecutionMetadata *BuildBazelRemoteExecutionV2ExecutedActionMetadata `json:"executionMetadata,omitempty"` - // ExitCode: The exit code of the command. ExitCode int64 `json:"exitCode,omitempty"` - - // OutputDirectories: The output directories of the action. For each - // output directory requested in the `output_directories` or - // `output_paths` field of the Action, if the corresponding directory - // existed after the action completed, a single entry will be present in - // the output list, which will contain the digest of a Tree message - // containing the directory tree, and the path equal exactly to the - // corresponding Action output_directories member. As an example, - // suppose the Action had an output directory `a/b/dir` and the - // execution produced the following contents in `a/b/dir`: a file named - // `bar` and a directory named `foo` with an executable file named - // `baz`. Then, output_directory will contain (hashes shortened for - // readability): ```json // OutputDirectory proto: { path: "a/b/dir" - // tree_digest: { hash: "4a73bc9d03...", size: 55 } } // Tree proto with - // hash "4a73bc9d03..." and size 55: { root: { files: [ { name: "bar", - // digest: { hash: "4a73bc9d03...", size: 65534 } } ], directories: [ { - // name: "foo", digest: { hash: "4cf2eda940...", size: 43 } } ] } - // children : { // (Directory proto with hash "4cf2eda940..." and size - // 43) files: [ { name: "baz", digest: { hash: "b2c941073e...", size: - // 1294, }, is_executable: true } ] } } ``` If an output of the same - // name as listed in `output_files` of the Command was found in - // `output_directories`, but was not a directory, the server will return - // a FAILED_PRECONDITION. + // OutputDirectories: The output directories of the action. For each output + // directory requested in the `output_directories` or `output_paths` field of + // the Action, if the corresponding directory existed after the action + // completed, a single entry will be present in the output list, which will + // contain the digest of a Tree message containing the directory tree, and the + // path equal exactly to the corresponding Action output_directories member. As + // an example, suppose the Action had an output directory `a/b/dir` and the + // execution produced the following contents in `a/b/dir`: a file named `bar` + // and a directory named `foo` with an executable file named `baz`. Then, + // output_directory will contain (hashes shortened for readability): ```json // + // OutputDirectory proto: { path: "a/b/dir" tree_digest: { hash: + // "4a73bc9d03...", size: 55 } } // Tree proto with hash "4a73bc9d03..." and + // size 55: { root: { files: [ { name: "bar", digest: { hash: "4a73bc9d03...", + // size: 65534 } } ], directories: [ { name: "foo", digest: { hash: + // "4cf2eda940...", size: 43 } } ] } children : { // (Directory proto with hash + // "4cf2eda940..." and size 43) files: [ { name: "baz", digest: { hash: + // "b2c941073e...", size: 1294, }, is_executable: true } ] } } ``` If an output + // of the same name as listed in `output_files` of the Command was found in + // `output_directories`, but was not a directory, the server will return a + // FAILED_PRECONDITION. OutputDirectories []*BuildBazelRemoteExecutionV2OutputDirectory `json:"outputDirectories,omitempty"` - - // OutputDirectorySymlinks: The output directories of the action that - // are symbolic links to other directories. Those may be links to other - // output directories, or input directories, or even absolute paths - // outside of the working directory, if the server supports - // SymlinkAbsolutePathStrategy.ALLOWED. For each output directory - // requested in the `output_directories` field of the Action, if the - // directory existed after the action completed, a single entry will be - // present either in this field, or in the `output_directories` field, - // if the directory was not a symbolic link. If an output of the same - // name was found, but was a symbolic link to a file instead of a - // directory, the server will return a FAILED_PRECONDITION. If the - // action does not produce the requested output, then that output will - // be omitted from the list. The server is free to arrange the output - // list as desired; clients MUST NOT assume that the output list is - // sorted. DEPRECATED as of v2.1. Servers that wish to be compatible - // with v2.0 API should still populate this field in addition to - // `output_symlinks`. + // OutputDirectorySymlinks: The output directories of the action that are + // symbolic links to other directories. Those may be links to other output + // directories, or input directories, or even absolute paths outside of the + // working directory, if the server supports + // SymlinkAbsolutePathStrategy.ALLOWED. For each output directory requested in + // the `output_directories` field of the Action, if the directory existed after + // the action completed, a single entry will be present either in this field, + // or in the `output_directories` field, if the directory was not a symbolic + // link. If an output of the same name was found, but was a symbolic link to a + // file instead of a directory, the server will return a FAILED_PRECONDITION. + // If the action does not produce the requested output, then that output will + // be omitted from the list. The server is free to arrange the output list as + // desired; clients MUST NOT assume that the output list is sorted. DEPRECATED + // as of v2.1. Servers that wish to be compatible with v2.0 API should still + // populate this field in addition to `output_symlinks`. OutputDirectorySymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputDirectorySymlinks,omitempty"` - - // OutputFileSymlinks: The output files of the action that are symbolic - // links to other files. Those may be links to other output files, or - // input files, or even absolute paths outside of the working directory, - // if the server supports SymlinkAbsolutePathStrategy.ALLOWED. For each - // output file requested in the `output_files` or `output_paths` field - // of the Action, if the corresponding file existed after the action - // completed, a single entry will be present either in this field, or in - // the `output_files` field, if the file was not a symbolic link. If an - // output symbolic link of the same name as listed in `output_files` of - // the Command was found, but its target type was not a regular file, - // the server will return a FAILED_PRECONDITION. If the action does not - // produce the requested output, then that output will be omitted from - // the list. The server is free to arrange the output list as desired; - // clients MUST NOT assume that the output list is sorted. DEPRECATED as - // of v2.1. Servers that wish to be compatible with v2.0 API should - // still populate this field in addition to `output_symlinks`. + // OutputFileSymlinks: The output files of the action that are symbolic links + // to other files. Those may be links to other output files, or input files, or + // even absolute paths outside of the working directory, if the server supports + // SymlinkAbsolutePathStrategy.ALLOWED. For each output file requested in the + // `output_files` or `output_paths` field of the Action, if the corresponding + // file existed after the action completed, a single entry will be present + // either in this field, or in the `output_files` field, if the file was not a + // symbolic link. If an output symbolic link of the same name as listed in + // `output_files` of the Command was found, but its target type was not a + // regular file, the server will return a FAILED_PRECONDITION. If the action + // does not produce the requested output, then that output will be omitted from + // the list. The server is free to arrange the output list as desired; clients + // MUST NOT assume that the output list is sorted. DEPRECATED as of v2.1. + // Servers that wish to be compatible with v2.0 API should still populate this + // field in addition to `output_symlinks`. OutputFileSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputFileSymlinks,omitempty"` - - // OutputFiles: The output files of the action. For each output file - // requested in the `output_files` or `output_paths` field of the - // Action, if the corresponding file existed after the action completed, - // a single entry will be present either in this field, or the - // `output_file_symlinks` field if the file was a symbolic link to - // another file (`output_symlinks` field after v2.1). If an output - // listed in `output_files` was found, but was a directory rather than a - // regular file, the server will return a FAILED_PRECONDITION. If the - // action does not produce the requested output, then that output will - // be omitted from the list. The server is free to arrange the output - // list as desired; clients MUST NOT assume that the output list is - // sorted. + // OutputFiles: The output files of the action. For each output file requested + // in the `output_files` or `output_paths` field of the Action, if the + // corresponding file existed after the action completed, a single entry will + // be present either in this field, or the `output_file_symlinks` field if the + // file was a symbolic link to another file (`output_symlinks` field after + // v2.1). If an output listed in `output_files` was found, but was a directory + // rather than a regular file, the server will return a FAILED_PRECONDITION. If + // the action does not produce the requested output, then that output will be + // omitted from the list. The server is free to arrange the output list as + // desired; clients MUST NOT assume that the output list is sorted. OutputFiles []*BuildBazelRemoteExecutionV2OutputFile `json:"outputFiles,omitempty"` - // OutputSymlinks: New in v2.1: this field will only be populated if the - // command `output_paths` field was used, and not the pre v2.1 - // `output_files` or `output_directories` fields. The output paths of - // the action that are symbolic links to other paths. Those may be links - // to other outputs, or inputs, or even absolute paths outside of the - // working directory, if the server supports - // SymlinkAbsolutePathStrategy.ALLOWED. A single entry for each output - // requested in `output_paths` field of the Action, if the corresponding - // path existed after the action completed and was a symbolic link. If - // the action does not produce a requested output, then that output will - // be omitted from the list. The server is free to arrange the output - // list as desired; clients MUST NOT assume that the output list is - // sorted. + // command `output_paths` field was used, and not the pre v2.1 `output_files` + // or `output_directories` fields. The output paths of the action that are + // symbolic links to other paths. Those may be links to other outputs, or + // inputs, or even absolute paths outside of the working directory, if the + // server supports SymlinkAbsolutePathStrategy.ALLOWED. A single entry for each + // output requested in `output_paths` field of the Action, if the corresponding + // path existed after the action completed and was a symbolic link. If the + // action does not produce a requested output, then that output will be omitted + // from the list. The server is free to arrange the output list as desired; + // clients MUST NOT assume that the output list is sorted. OutputSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputSymlinks,omitempty"` - - // StderrDigest: The digest for a blob containing the standard error of - // the action, which can be retrieved from the - // ContentAddressableStorage. + // StderrDigest: The digest for a blob containing the standard error of the + // action, which can be retrieved from the ContentAddressableStorage. StderrDigest *BuildBazelRemoteExecutionV2Digest `json:"stderrDigest,omitempty"` - - // StderrRaw: The standard error buffer of the action. The server SHOULD - // NOT inline stderr unless requested by the client in the - // GetActionResultRequest message. The server MAY omit inlining, even if - // requested, and MUST do so if inlining would cause the response to - // exceed message size limits. + // StderrRaw: The standard error buffer of the action. The server SHOULD NOT + // inline stderr unless requested by the client in the GetActionResultRequest + // message. The server MAY omit inlining, even if requested, and MUST do so if + // inlining would cause the response to exceed message size limits. StderrRaw string `json:"stderrRaw,omitempty"` - - // StdoutDigest: The digest for a blob containing the standard output of - // the action, which can be retrieved from the - // ContentAddressableStorage. + // StdoutDigest: The digest for a blob containing the standard output of the + // action, which can be retrieved from the ContentAddressableStorage. StdoutDigest *BuildBazelRemoteExecutionV2Digest `json:"stdoutDigest,omitempty"` - - // StdoutRaw: The standard output buffer of the action. The server - // SHOULD NOT inline stdout unless requested by the client in the - // GetActionResultRequest message. The server MAY omit inlining, even if - // requested, and MUST do so if inlining would cause the response to - // exceed message size limits. + // StdoutRaw: The standard output buffer of the action. The server SHOULD NOT + // inline stdout unless requested by the client in the GetActionResultRequest + // message. The server MAY omit inlining, even if requested, and MUST do so if + // inlining would cause the response to exceed message size limits. StdoutRaw string `json:"stdoutRaw,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ExecutionMetadata") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ExecutionMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ActionResult) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ActionResult) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ActionResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2Command: A `Command` is the actual command // executed by a worker running an Action and specifications of its -// environment. Except as otherwise required, the environment (such as -// which system libraries or binaries are available, and what -// filesystems are mounted where) is defined by and specific to the -// implementation of the remote execution API. +// environment. Except as otherwise required, the environment (such as which +// system libraries or binaries are available, and what filesystems are mounted +// where) is defined by and specific to the implementation of the remote +// execution API. type BuildBazelRemoteExecutionV2Command struct { - // Arguments: The arguments to the command. The first argument must be - // the path to the executable, which must be either a relative path, in - // which case it is evaluated with respect to the input root, or an - // absolute path. + // Arguments: The arguments to the command. The first argument must be the path + // to the executable, which must be either a relative path, in which case it is + // evaluated with respect to the input root, or an absolute path. Arguments []string `json:"arguments,omitempty"` - - // EnvironmentVariables: The environment variables to set when running - // the program. The worker may provide its own default environment - // variables; these defaults can be overridden using this field. - // Additional variables can also be specified. In order to ensure that - // equivalent Commands always hash to the same value, the environment - // variables MUST be lexicographically sorted by name. Sorting of - // strings is done by code point, equivalently, by the UTF-8 bytes. + // EnvironmentVariables: The environment variables to set when running the + // program. The worker may provide its own default environment variables; these + // defaults can be overridden using this field. Additional variables can also + // be specified. In order to ensure that equivalent Commands always hash to the + // same value, the environment variables MUST be lexicographically sorted by + // name. Sorting of strings is done by code point, equivalently, by the UTF-8 + // bytes. EnvironmentVariables []*BuildBazelRemoteExecutionV2CommandEnvironmentVariable `json:"environmentVariables,omitempty"` - - // OutputDirectories: A list of the output directories that the client - // expects to retrieve from the action. Only the listed directories will - // be returned (an entire directory structure will be returned as a Tree - // message digest, see OutputDirectory), as well as files listed in - // `output_files`. Other files or directories that may be created during - // command execution are discarded. The paths are relative to the - // working directory of the action execution. The paths are specified - // using a single forward slash (`/`) as a path separator, even if the - // execution platform natively uses a different separator. The path MUST - // NOT include a trailing slash, nor a leading slash, being a relative + // OutputDirectories: A list of the output directories that the client expects + // to retrieve from the action. Only the listed directories will be returned + // (an entire directory structure will be returned as a Tree message digest, + // see OutputDirectory), as well as files listed in `output_files`. Other files + // or directories that may be created during command execution are discarded. + // The paths are relative to the working directory of the action execution. The + // paths are specified using a single forward slash (`/`) as a path separator, + // even if the execution platform natively uses a different separator. The path + // MUST NOT include a trailing slash, nor a leading slash, being a relative // path. The special value of empty string is allowed, although not - // recommended, and can be used to capture the entire working directory - // tree, including inputs. In order to ensure consistent hashing of the - // same Action, the output paths MUST be sorted lexicographically by - // code point (or, equivalently, by UTF-8 bytes). An output directory - // cannot be duplicated or have the same path as any of the listed - // output files. An output directory is allowed to be a parent of - // another output directory. Directories leading up to the output - // directories (but not the output directories themselves) are created - // by the worker prior to execution, even if they are not explicitly - // part of the input root. DEPRECATED since 2.1: Use `output_paths` - // instead. + // recommended, and can be used to capture the entire working directory tree, + // including inputs. In order to ensure consistent hashing of the same Action, + // the output paths MUST be sorted lexicographically by code point (or, + // equivalently, by UTF-8 bytes). An output directory cannot be duplicated or + // have the same path as any of the listed output files. An output directory is + // allowed to be a parent of another output directory. Directories leading up + // to the output directories (but not the output directories themselves) are + // created by the worker prior to execution, even if they are not explicitly + // part of the input root. DEPRECATED since 2.1: Use `output_paths` instead. OutputDirectories []string `json:"outputDirectories,omitempty"` - - // OutputFiles: A list of the output files that the client expects to - // retrieve from the action. Only the listed files, as well as - // directories listed in `output_directories`, will be returned to the - // client as output. Other files or directories that may be created - // during command execution are discarded. The paths are relative to the - // working directory of the action execution. The paths are specified - // using a single forward slash (`/`) as a path separator, even if the - // execution platform natively uses a different separator. The path MUST - // NOT include a trailing slash, nor a leading slash, being a relative - // path. In order to ensure consistent hashing of the same Action, the - // output paths MUST be sorted lexicographically by code point (or, - // equivalently, by UTF-8 bytes). An output file cannot be duplicated, - // be a parent of another output file, or have the same path as any of - // the listed output directories. Directories leading up to the output - // files are created by the worker prior to execution, even if they are - // not explicitly part of the input root. DEPRECATED since v2.1: Use - // `output_paths` instead. + // OutputFiles: A list of the output files that the client expects to retrieve + // from the action. Only the listed files, as well as directories listed in + // `output_directories`, will be returned to the client as output. Other files + // or directories that may be created during command execution are discarded. + // The paths are relative to the working directory of the action execution. The + // paths are specified using a single forward slash (`/`) as a path separator, + // even if the execution platform natively uses a different separator. The path + // MUST NOT include a trailing slash, nor a leading slash, being a relative + // path. In order to ensure consistent hashing of the same Action, the output + // paths MUST be sorted lexicographically by code point (or, equivalently, by + // UTF-8 bytes). An output file cannot be duplicated, be a parent of another + // output file, or have the same path as any of the listed output directories. + // Directories leading up to the output files are created by the worker prior + // to execution, even if they are not explicitly part of the input root. + // DEPRECATED since v2.1: Use `output_paths` instead. OutputFiles []string `json:"outputFiles,omitempty"` - - // OutputNodeProperties: A list of keys for node properties the client - // expects to retrieve for output files and directories. Keys are either - // names of string-based NodeProperty or names of fields in - // NodeProperties. In order to ensure that equivalent `Action`s always - // hash to the same value, the node properties MUST be lexicographically - // sorted by name. Sorting of strings is done by code point, - // equivalently, by the UTF-8 bytes. The interpretation of string-based - // properties is server-dependent. If a property is not recognized by - // the server, the server will return an `INVALID_ARGUMENT`. + // OutputNodeProperties: A list of keys for node properties the client expects + // to retrieve for output files and directories. Keys are either names of + // string-based NodeProperty or names of fields in NodeProperties. In order to + // ensure that equivalent `Action`s always hash to the same value, the node + // properties MUST be lexicographically sorted by name. Sorting of strings is + // done by code point, equivalently, by the UTF-8 bytes. The interpretation of + // string-based properties is server-dependent. If a property is not recognized + // by the server, the server will return an `INVALID_ARGUMENT`. OutputNodeProperties []string `json:"outputNodeProperties,omitempty"` - - // OutputPaths: A list of the output paths that the client expects to - // retrieve from the action. Only the listed paths will be returned to - // the client as output. The type of the output (file or directory) is - // not specified, and will be determined by the server after action - // execution. If the resulting path is a file, it will be returned in an - // OutputFile) typed field. If the path is a directory, the entire - // directory structure will be returned as a Tree message digest, see - // OutputDirectory) Other files or directories that may be created - // during command execution are discarded. The paths are relative to the - // working directory of the action execution. The paths are specified - // using a single forward slash (`/`) as a path separator, even if the - // execution platform natively uses a different separator. The path MUST - // NOT include a trailing slash, nor a leading slash, being a relative - // path. In order to ensure consistent hashing of the same Action, the - // output paths MUST be deduplicated and sorted lexicographically by - // code point (or, equivalently, by UTF-8 bytes). Directories leading up - // to the output paths are created by the worker prior to execution, - // even if they are not explicitly part of the input root. New in v2.1: - // this field supersedes the DEPRECATED `output_files` and - // `output_directories` fields. If `output_paths` is used, - // `output_files` and `output_directories` will be ignored! + // OutputPaths: A list of the output paths that the client expects to retrieve + // from the action. Only the listed paths will be returned to the client as + // output. The type of the output (file or directory) is not specified, and + // will be determined by the server after action execution. If the resulting + // path is a file, it will be returned in an OutputFile) typed field. If the + // path is a directory, the entire directory structure will be returned as a + // Tree message digest, see OutputDirectory) Other files or directories that + // may be created during command execution are discarded. The paths are + // relative to the working directory of the action execution. The paths are + // specified using a single forward slash (`/`) as a path separator, even if + // the execution platform natively uses a different separator. The path MUST + // NOT include a trailing slash, nor a leading slash, being a relative path. In + // order to ensure consistent hashing of the same Action, the output paths MUST + // be deduplicated and sorted lexicographically by code point (or, + // equivalently, by UTF-8 bytes). Directories leading up to the output paths + // are created by the worker prior to execution, even if they are not + // explicitly part of the input root. New in v2.1: this field supersedes the + // DEPRECATED `output_files` and `output_directories` fields. If `output_paths` + // is used, `output_files` and `output_directories` will be ignored! OutputPaths []string `json:"outputPaths,omitempty"` - - // Platform: The platform requirements for the execution environment. - // The server MAY choose to execute the action on any worker satisfying - // the requirements, so the client SHOULD ensure that running the action - // on any such worker will have the same result. A detailed lexicon for - // this can be found in the accompanying platform.md. DEPRECATED as of - // v2.2: platform properties are now specified directly in the action. - // See documentation note in the Action for migration. + // Platform: The platform requirements for the execution environment. The + // server MAY choose to execute the action on any worker satisfying the + // requirements, so the client SHOULD ensure that running the action on any + // such worker will have the same result. A detailed lexicon for this can be + // found in the accompanying platform.md. DEPRECATED as of v2.2: platform + // properties are now specified directly in the action. See documentation note + // in the Action for migration. Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"` - - // WorkingDirectory: The working directory, relative to the input root, - // for the command to run in. It must be a directory which exists in the - // input tree. If it is left empty, then the action is run in the input - // root. + // WorkingDirectory: The working directory, relative to the input root, for the + // command to run in. It must be a directory which exists in the input tree. If + // it is left empty, then the action is run in the input root. WorkingDirectory string `json:"workingDirectory,omitempty"` - // ForceSendFields is a list of field names (e.g. "Arguments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Arguments") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Arguments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Command - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2CommandEnvironmentVariable: An @@ -563,198 +513,162 @@ func (s *BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) { type BuildBazelRemoteExecutionV2CommandEnvironmentVariable struct { // Name: The variable name. Name string `json:"name,omitempty"` - // Value: The variable value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2CommandEnvironmentVariable) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2CommandEnvironmentVariable) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2CommandEnvironmentVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2Digest: A content digest. A digest for a -// given blob consists of the size of the blob and its hash. The hash -// algorithm to use is defined by the server. The size is considered to -// be an integral part of the digest and cannot be separated. That is, -// even if the `hash` field is correctly specified but `size_bytes` is -// not, the server MUST reject the request. The reason for including the -// size in the digest is as follows: in a great many cases, the server -// needs to know the size of the blob it is about to work with prior to -// starting an operation with it, such as flattening Merkle tree -// structures or streaming it to a worker. Technically, the server could -// implement a separate metadata store, but this results in a -// significantly more complicated implementation as opposed to having -// the client specify the size up-front (or storing the size along with -// the digest in every message where digests are embedded). This does -// mean that the API leaks some implementation details of (what we -// consider to be) a reasonable server implementation, but we consider -// this to be a worthwhile tradeoff. When a `Digest` is used to refer to -// a proto message, it always refers to the message in binary encoded -// form. To ensure consistent hashing, clients and servers MUST ensure -// that they serialize messages according to the following rules, even -// if there are alternate valid encodings for the same message: * Fields -// are serialized in tag order. * There are no unknown fields. * There -// are no duplicate fields. * Fields are serialized according to the -// default semantics for their type. Most protocol buffer -// implementations will always follow these rules when serializing, but -// care should be taken to avoid shortcuts. For instance, concatenating -// two messages to merge them may produce duplicate fields. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2Digest: A content digest. A digest for a given +// blob consists of the size of the blob and its hash. The hash algorithm to +// use is defined by the server. The size is considered to be an integral part +// of the digest and cannot be separated. That is, even if the `hash` field is +// correctly specified but `size_bytes` is not, the server MUST reject the +// request. The reason for including the size in the digest is as follows: in a +// great many cases, the server needs to know the size of the blob it is about +// to work with prior to starting an operation with it, such as flattening +// Merkle tree structures or streaming it to a worker. Technically, the server +// could implement a separate metadata store, but this results in a +// significantly more complicated implementation as opposed to having the +// client specify the size up-front (or storing the size along with the digest +// in every message where digests are embedded). This does mean that the API +// leaks some implementation details of (what we consider to be) a reasonable +// server implementation, but we consider this to be a worthwhile tradeoff. +// When a `Digest` is used to refer to a proto message, it always refers to the +// message in binary encoded form. To ensure consistent hashing, clients and +// servers MUST ensure that they serialize messages according to the following +// rules, even if there are alternate valid encodings for the same message: * +// Fields are serialized in tag order. * There are no unknown fields. * There +// are no duplicate fields. * Fields are serialized according to the default +// semantics for their type. Most protocol buffer implementations will always +// follow these rules when serializing, but care should be taken to avoid +// shortcuts. For instance, concatenating two messages to merge them may +// produce duplicate fields. type BuildBazelRemoteExecutionV2Digest struct { - // Hash: The hash. In the case of SHA-256, it will always be a lowercase - // hex string exactly 64 characters long. + // Hash: The hash. In the case of SHA-256, it will always be a lowercase hex + // string exactly 64 characters long. Hash string `json:"hash,omitempty"` - // SizeBytes: The size of the blob, in bytes. SizeBytes int64 `json:"sizeBytes,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Hash") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hash") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Hash") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Hash") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Digest) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Digest) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Digest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2Directory: A `Directory` represents a -// directory node in a file tree, containing zero or more children -// FileNodes, DirectoryNodes and SymlinkNodes. Each `Node` contains its -// name in the directory, either the digest of its content (either a -// file blob or a `Directory` proto) or a symlink target, as well as -// possibly some metadata about the file or directory. In order to -// ensure that two equivalent directory trees hash to the same value, -// the following restrictions MUST be obeyed when constructing a a -// `Directory`: * Every child in the directory must have a path of -// exactly one segment. Multiple levels of directory hierarchy may not -// be collapsed. * Each child in the directory must have a unique path -// segment (file name). Note that while the API itself is -// case-sensitive, the environment where the Action is executed may or -// may not be case-sensitive. That is, it is legal to call the API with -// a Directory that has both "Foo" and "foo" as children, but the Action -// may be rejected by the remote system upon execution. * The files, -// directories and symlinks in the directory must each be sorted in -// lexicographical order by path. The path strings must be sorted by -// code point, equivalently, by UTF-8 bytes. * The NodeProperties of -// files, directories, and symlinks must be sorted in lexicographical -// order by property name. A `Directory` that obeys the restrictions is -// said to be in canonical form. As an example, the following could be -// used for a file named `bar` and a directory named `foo` with an -// executable file named `baz` (hashes shortened for readability): -// ```json // (Directory proto) { files: [ { name: "bar", digest: { -// hash: "4a73bc9d03...", size: 65534 }, node_properties: [ { "name": -// "MTime", "value": "2017-01-15T01:30:15.01Z" } ] } ], directories: [ { -// name: "foo", digest: { hash: "4cf2eda940...", size: 43 } } ] } // -// (Directory proto with hash "4cf2eda940..." and size 43) { files: [ { -// name: "baz", digest: { hash: "b2c941073e...", size: 1294, }, -// is_executable: true } ] } ``` + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2Directory: A `Directory` represents a directory +// node in a file tree, containing zero or more children FileNodes, +// DirectoryNodes and SymlinkNodes. Each `Node` contains its name in the +// directory, either the digest of its content (either a file blob or a +// `Directory` proto) or a symlink target, as well as possibly some metadata +// about the file or directory. In order to ensure that two equivalent +// directory trees hash to the same value, the following restrictions MUST be +// obeyed when constructing a a `Directory`: * Every child in the directory +// must have a path of exactly one segment. Multiple levels of directory +// hierarchy may not be collapsed. * Each child in the directory must have a +// unique path segment (file name). Note that while the API itself is +// case-sensitive, the environment where the Action is executed may or may not +// be case-sensitive. That is, it is legal to call the API with a Directory +// that has both "Foo" and "foo" as children, but the Action may be rejected by +// the remote system upon execution. * The files, directories and symlinks in +// the directory must each be sorted in lexicographical order by path. The path +// strings must be sorted by code point, equivalently, by UTF-8 bytes. * The +// NodeProperties of files, directories, and symlinks must be sorted in +// lexicographical order by property name. A `Directory` that obeys the +// restrictions is said to be in canonical form. As an example, the following +// could be used for a file named `bar` and a directory named `foo` with an +// executable file named `baz` (hashes shortened for readability): ```json // +// (Directory proto) { files: [ { name: "bar", digest: { hash: "4a73bc9d03...", +// size: 65534 }, node_properties: [ { "name": "MTime", "value": +// "2017-01-15T01:30:15.01Z" } ] } ], directories: [ { name: "foo", digest: { +// hash: "4cf2eda940...", size: 43 } } ] } // (Directory proto with hash +// "4cf2eda940..." and size 43) { files: [ { name: "baz", digest: { hash: +// "b2c941073e...", size: 1294, }, is_executable: true } ] } ``` type BuildBazelRemoteExecutionV2Directory struct { // Directories: The subdirectories in the directory. Directories []*BuildBazelRemoteExecutionV2DirectoryNode `json:"directories,omitempty"` - // Files: The files in the directory. - Files []*BuildBazelRemoteExecutionV2FileNode `json:"files,omitempty"` - + Files []*BuildBazelRemoteExecutionV2FileNode `json:"files,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - // Symlinks: The symlinks in the directory. Symlinks []*BuildBazelRemoteExecutionV2SymlinkNode `json:"symlinks,omitempty"` - // ForceSendFields is a list of field names (e.g. "Directories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Directory) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Directory) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Directory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2DirectoryNode: A `DirectoryNode` -// represents a child of a Directory which is itself a `Directory` and -// its associated metadata. +// BuildBazelRemoteExecutionV2DirectoryNode: A `DirectoryNode` represents a +// child of a Directory which is itself a `Directory` and its associated +// metadata. type BuildBazelRemoteExecutionV2DirectoryNode struct { - // Digest: The digest of the Directory object represented. See Digest - // for information about how to take the digest of a proto message. + // Digest: The digest of the Directory object represented. See Digest for + // information about how to take the digest of a proto message. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // Name: The name of the directory. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2DirectoryNode) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2DirectoryNode) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2DirectoryNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ExecuteOperationMetadata: Metadata about -// an ongoing execution, which will be contained in the metadata field -// of the Operation. +// BuildBazelRemoteExecutionV2ExecuteOperationMetadata: Metadata about an +// ongoing execution, which will be contained in the metadata field of the +// Operation. type BuildBazelRemoteExecutionV2ExecuteOperationMetadata struct { // ActionDigest: The digest of the Action being executed. ActionDigest *BuildBazelRemoteExecutionV2Digest `json:"actionDigest,omitempty"` - // Stage: The current stage of execution. // // Possible values: @@ -764,707 +678,552 @@ type BuildBazelRemoteExecutionV2ExecuteOperationMetadata struct { // "EXECUTING" - Currently being executed by a worker. // "COMPLETED" - Finished execution. Stage string `json:"stage,omitempty"` - // StderrStreamName: If set, the client can use this resource name with - // ByteStream.Read to stream the standard error from the endpoint - // hosting streamed responses. + // ByteStream.Read to stream the standard error from the endpoint hosting + // streamed responses. StderrStreamName string `json:"stderrStreamName,omitempty"` - // StdoutStreamName: If set, the client can use this resource name with - // ByteStream.Read to stream the standard output from the endpoint - // hosting streamed responses. + // ByteStream.Read to stream the standard output from the endpoint hosting + // streamed responses. StdoutStreamName string `json:"stdoutStreamName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionDigest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionDigest") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionDigest") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecuteOperationMetadata) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecuteOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecuteOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2ExecuteResponse: The response message for -// Execution.Execute, which will be contained in the response field of -// the Operation. +// Execution.Execute, which will be contained in the response field of the +// Operation. type BuildBazelRemoteExecutionV2ExecuteResponse struct { - // CachedResult: True if the result was served from cache, false if it - // was executed. + // CachedResult: True if the result was served from cache, false if it was + // executed. CachedResult bool `json:"cachedResult,omitempty"` - - // Message: Freeform informational message with details on the execution - // of the action that may be displayed to the user upon failure or when - // requested explicitly. + // Message: Freeform informational message with details on the execution of the + // action that may be displayed to the user upon failure or when requested + // explicitly. Message string `json:"message,omitempty"` - // Result: The result of the action. Result *BuildBazelRemoteExecutionV2ActionResult `json:"result,omitempty"` - - // ServerLogs: An optional list of additional log outputs the server - // wishes to provide. A server can use this to return execution-specific - // logs however it wishes. This is intended primarily to make it easier - // for users to debug issues that may be outside of the actual job - // execution, such as by identifying the worker executing the action or - // by providing logs from the worker's setup phase. The keys SHOULD be - // human readable so that a client can display them to a user. + // ServerLogs: An optional list of additional log outputs the server wishes to + // provide. A server can use this to return execution-specific logs however it + // wishes. This is intended primarily to make it easier for users to debug + // issues that may be outside of the actual job execution, such as by + // identifying the worker executing the action or by providing logs from the + // worker's setup phase. The keys SHOULD be human readable so that a client can + // display them to a user. ServerLogs map[string]BuildBazelRemoteExecutionV2LogFile `json:"serverLogs,omitempty"` - - // Status: If the status has a code other than `OK`, it indicates that - // the action did not finish execution. For example, if the operation - // times out during execution, the status will have a - // `DEADLINE_EXCEEDED` code. Servers MUST use this field for errors in - // execution, rather than the error field on the `Operation` object. If - // the status code is other than `OK`, then the result MUST NOT be - // cached. For an error status, the `result` field is optional; the - // server may populate the output-, stdout-, and stderr-related fields - // if it has any information available, such as the stdout and stderr of + // Status: If the status has a code other than `OK`, it indicates that the + // action did not finish execution. For example, if the operation times out + // during execution, the status will have a `DEADLINE_EXCEEDED` code. Servers + // MUST use this field for errors in execution, rather than the error field on + // the `Operation` object. If the status code is other than `OK`, then the + // result MUST NOT be cached. For an error status, the `result` field is + // optional; the server may populate the output-, stdout-, and stderr-related + // fields if it has any information available, such as the stdout and stderr of // a timed-out action. Status *GoogleRpcStatus `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "CachedResult") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CachedResult") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CachedResult") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecuteResponse) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecuteResponse) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecuteResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ExecutedActionMetadata: -// ExecutedActionMetadata contains details about a completed execution. +// BuildBazelRemoteExecutionV2ExecutedActionMetadata: ExecutedActionMetadata +// contains details about a completed execution. type BuildBazelRemoteExecutionV2ExecutedActionMetadata struct { - // AuxiliaryMetadata: Details that are specific to the kind of worker - // used. For example, on POSIX-like systems this could contain a message - // with getrusage(2) statistics. + // AuxiliaryMetadata: Details that are specific to the kind of worker used. For + // example, on POSIX-like systems this could contain a message with + // getrusage(2) statistics. AuxiliaryMetadata []googleapi.RawMessage `json:"auxiliaryMetadata,omitempty"` - - // ExecutionCompletedTimestamp: When the worker completed executing the - // action command. + // ExecutionCompletedTimestamp: When the worker completed executing the action + // command. ExecutionCompletedTimestamp string `json:"executionCompletedTimestamp,omitempty"` - // ExecutionStartTimestamp: When the worker started executing the action // command. ExecutionStartTimestamp string `json:"executionStartTimestamp,omitempty"` - - // InputFetchCompletedTimestamp: When the worker finished fetching - // action inputs. - InputFetchCompletedTimestamp string `json:"inputFetchCompletedTimestamp,omitempty"` - - // InputFetchStartTimestamp: When the worker started fetching action + // InputFetchCompletedTimestamp: When the worker finished fetching action // inputs. + InputFetchCompletedTimestamp string `json:"inputFetchCompletedTimestamp,omitempty"` + // InputFetchStartTimestamp: When the worker started fetching action inputs. InputFetchStartTimestamp string `json:"inputFetchStartTimestamp,omitempty"` - - // OutputUploadCompletedTimestamp: When the worker finished uploading - // action outputs. + // OutputUploadCompletedTimestamp: When the worker finished uploading action + // outputs. OutputUploadCompletedTimestamp string `json:"outputUploadCompletedTimestamp,omitempty"` - // OutputUploadStartTimestamp: When the worker started uploading action // outputs. OutputUploadStartTimestamp string `json:"outputUploadStartTimestamp,omitempty"` - // QueuedTimestamp: When was the action added to the queue. QueuedTimestamp string `json:"queuedTimestamp,omitempty"` - // Worker: The name of the worker which ran the execution. Worker string `json:"worker,omitempty"` - - // WorkerCompletedTimestamp: When the worker completed the action, - // including all stages. + // WorkerCompletedTimestamp: When the worker completed the action, including + // all stages. WorkerCompletedTimestamp string `json:"workerCompletedTimestamp,omitempty"` - // WorkerStartTimestamp: When the worker received the action. WorkerStartTimestamp string `json:"workerStartTimestamp,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AuxiliaryMetadata") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AuxiliaryMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuxiliaryMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuxiliaryMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecutedActionMetadata) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecutedActionMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecutedActionMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2FileNode: A `FileNode` represents a single -// file and associated metadata. +// BuildBazelRemoteExecutionV2FileNode: A `FileNode` represents a single file +// and associated metadata. type BuildBazelRemoteExecutionV2FileNode struct { // Digest: The digest of the file's content. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // IsExecutable: True if file is executable, false otherwise. IsExecutable bool `json:"isExecutable,omitempty"` - // Name: The name of the file. - Name string `json:"name,omitempty"` - + Name string `json:"name,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2FileNode) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2FileNode) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2FileNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2LogFile: A `LogFile` is a log stored in -// the CAS. +// BuildBazelRemoteExecutionV2LogFile: A `LogFile` is a log stored in the CAS. type BuildBazelRemoteExecutionV2LogFile struct { // Digest: The digest of the log contents. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - - // HumanReadable: This is a hint as to the purpose of the log, and is - // set to true if the log is human-readable text that can be usefully - // displayed to a user, and false otherwise. For instance, if a - // command-line client wishes to print the server logs to the terminal - // for a failed action, this allows it to avoid displaying a binary - // file. + // HumanReadable: This is a hint as to the purpose of the log, and is set to + // true if the log is human-readable text that can be usefully displayed to a + // user, and false otherwise. For instance, if a command-line client wishes to + // print the server logs to the terminal for a failed action, this allows it to + // avoid displaying a binary file. HumanReadable bool `json:"humanReadable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2LogFile) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2LogFile) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2LogFile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2NodeProperties: Node properties for -// FileNodes, DirectoryNodes, and SymlinkNodes. The server is -// responsible for specifying the properties that it accepts. +// BuildBazelRemoteExecutionV2NodeProperties: Node properties for FileNodes, +// DirectoryNodes, and SymlinkNodes. The server is responsible for specifying +// the properties that it accepts. type BuildBazelRemoteExecutionV2NodeProperties struct { // Mtime: The file's last modification timestamp. Mtime string `json:"mtime,omitempty"` - // Properties: A list of string-based NodeProperties. Properties []*BuildBazelRemoteExecutionV2NodeProperty `json:"properties,omitempty"` - // UnixMode: The UNIX file mode, e.g., 0755. UnixMode int64 `json:"unixMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Mtime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Mtime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Mtime") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2NodeProperties) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2NodeProperties) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2NodeProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2NodeProperty: A single property for -// FileNodes, DirectoryNodes, and SymlinkNodes. The server is -// responsible for specifying the property `name`s that it accepts. If -// permitted by the server, the same `name` may occur multiple times. +// BuildBazelRemoteExecutionV2NodeProperty: A single property for FileNodes, +// DirectoryNodes, and SymlinkNodes. The server is responsible for specifying +// the property `name`s that it accepts. If permitted by the server, the same +// `name` may occur multiple times. type BuildBazelRemoteExecutionV2NodeProperty struct { // Name: The property name. Name string `json:"name,omitempty"` - // Value: The property value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2NodeProperty) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2NodeProperty) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2NodeProperty - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2OutputDirectory: An `OutputDirectory` is -// the output in an `ActionResult` corresponding to a directory's full -// contents rather than a single file. +// BuildBazelRemoteExecutionV2OutputDirectory: An `OutputDirectory` is the +// output in an `ActionResult` corresponding to a directory's full contents +// rather than a single file. type BuildBazelRemoteExecutionV2OutputDirectory struct { - // Path: The full path of the directory relative to the working - // directory. The path separator is a forward slash `/`. Since this is a - // relative path, it MUST NOT begin with a leading forward slash. The - // empty string value is allowed, and it denotes the entire working - // directory. + // Path: The full path of the directory relative to the working directory. The + // path separator is a forward slash `/`. Since this is a relative path, it + // MUST NOT begin with a leading forward slash. The empty string value is + // allowed, and it denotes the entire working directory. Path string `json:"path,omitempty"` - - // TreeDigest: The digest of the encoded Tree proto containing the - // directory's contents. + // TreeDigest: The digest of the encoded Tree proto containing the directory's + // contents. TreeDigest *BuildBazelRemoteExecutionV2Digest `json:"treeDigest,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Path") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Path") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Path") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Path") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2OutputDirectory) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2OutputDirectory) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2OutputDirectory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2OutputFile: An `OutputFile` is similar to -// a FileNode, but it is used as an output in an `ActionResult`. It -// allows a full file path rather than only a name. +// BuildBazelRemoteExecutionV2OutputFile: An `OutputFile` is similar to a +// FileNode, but it is used as an output in an `ActionResult`. It allows a full +// file path rather than only a name. type BuildBazelRemoteExecutionV2OutputFile struct { - // Contents: The contents of the file if inlining was requested. The - // server SHOULD NOT inline file contents unless requested by the client - // in the GetActionResultRequest message. The server MAY omit inlining, - // even if requested, and MUST do so if inlining would cause the - // response to exceed message size limits. + // Contents: The contents of the file if inlining was requested. The server + // SHOULD NOT inline file contents unless requested by the client in the + // GetActionResultRequest message. The server MAY omit inlining, even if + // requested, and MUST do so if inlining would cause the response to exceed + // message size limits. Contents string `json:"contents,omitempty"` - // Digest: The digest of the file's content. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // IsExecutable: True if file is executable, false otherwise. - IsExecutable bool `json:"isExecutable,omitempty"` - + IsExecutable bool `json:"isExecutable,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - - // Path: The full path of the file relative to the working directory, - // including the filename. The path separator is a forward slash `/`. - // Since this is a relative path, it MUST NOT begin with a leading - // forward slash. + // Path: The full path of the file relative to the working directory, including + // the filename. The path separator is a forward slash `/`. Since this is a + // relative path, it MUST NOT begin with a leading forward slash. Path string `json:"path,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2OutputFile) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2OutputFile) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2OutputFile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2OutputSymlink: An `OutputSymlink` is -// similar to a Symlink, but it is used as an output in an -// `ActionResult`. `OutputSymlink` is binary-compatible with -// `SymlinkNode`. +// BuildBazelRemoteExecutionV2OutputSymlink: An `OutputSymlink` is similar to a +// Symlink, but it is used as an output in an `ActionResult`. `OutputSymlink` +// is binary-compatible with `SymlinkNode`. type BuildBazelRemoteExecutionV2OutputSymlink struct { NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - // Path: The full path of the symlink relative to the working directory, - // including the filename. The path separator is a forward slash `/`. - // Since this is a relative path, it MUST NOT begin with a leading - // forward slash. + // including the filename. The path separator is a forward slash `/`. Since + // this is a relative path, it MUST NOT begin with a leading forward slash. Path string `json:"path,omitempty"` - - // Target: The target path of the symlink. The path separator is a - // forward slash `/`. The target path can be relative to the parent - // directory of the symlink or it can be an absolute path starting with - // `/`. Support for absolute paths can be checked using the Capabilities - // API. `..` components are allowed anywhere in the target path. + // Target: The target path of the symlink. The path separator is a forward + // slash `/`. The target path can be relative to the parent directory of the + // symlink or it can be an absolute path starting with `/`. Support for + // absolute paths can be checked using the Capabilities API. `..` components + // are allowed anywhere in the target path. Target string `json:"target,omitempty"` - // ForceSendFields is a list of field names (e.g. "NodeProperties") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NodeProperties") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NodeProperties") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2OutputSymlink) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2OutputSymlink) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2OutputSymlink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2Platform: A `Platform` is a set of -// requirements, such as hardware, operating system, or compiler -// toolchain, for an Action's execution environment. A `Platform` is -// represented as a series of key-value pairs representing the -// properties that are required of the platform. +// BuildBazelRemoteExecutionV2Platform: A `Platform` is a set of requirements, +// such as hardware, operating system, or compiler toolchain, for an Action's +// execution environment. A `Platform` is represented as a series of key-value +// pairs representing the properties that are required of the platform. type BuildBazelRemoteExecutionV2Platform struct { - // Properties: The properties that make up this platform. In order to - // ensure that equivalent `Platform`s always hash to the same value, the - // properties MUST be lexicographically sorted by name, and then by - // value. Sorting of strings is done by code point, equivalently, by the - // UTF-8 bytes. + // Properties: The properties that make up this platform. In order to ensure + // that equivalent `Platform`s always hash to the same value, the properties + // MUST be lexicographically sorted by name, and then by value. Sorting of + // strings is done by code point, equivalently, by the UTF-8 bytes. Properties []*BuildBazelRemoteExecutionV2PlatformProperty `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "Properties") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Properties") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Properties") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Platform) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Platform) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Platform - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2PlatformProperty: A single property for -// the environment. The server is responsible for specifying the -// property `name`s that it accepts. If an unknown `name` is provided in -// the requirements for an Action, the server SHOULD reject the -// execution request. If permitted by the server, the same `name` may -// occur multiple times. The server is also responsible for specifying -// the interpretation of property `value`s. For instance, a property -// describing how much RAM must be available may be interpreted as -// allowing a worker with 16GB to fulfill a request for 8GB, while a -// property describing the OS environment on which the action must be -// performed may require an exact match with the worker's OS. The server -// MAY use the `value` of one or more properties to determine how it -// sets up the execution environment, such as by making specific system -// files available to the worker. Both names and values are typically -// case-sensitive. Note that the platform is implicitly part of the -// action digest, so even tiny changes in the names or values (like -// changing case) may result in different action cache entries. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2PlatformProperty: A single property for the +// environment. The server is responsible for specifying the property `name`s +// that it accepts. If an unknown `name` is provided in the requirements for an +// Action, the server SHOULD reject the execution request. If permitted by the +// server, the same `name` may occur multiple times. The server is also +// responsible for specifying the interpretation of property `value`s. For +// instance, a property describing how much RAM must be available may be +// interpreted as allowing a worker with 16GB to fulfill a request for 8GB, +// while a property describing the OS environment on which the action must be +// performed may require an exact match with the worker's OS. The server MAY +// use the `value` of one or more properties to determine how it sets up the +// execution environment, such as by making specific system files available to +// the worker. Both names and values are typically case-sensitive. Note that +// the platform is implicitly part of the action digest, so even tiny changes +// in the names or values (like changing case) may result in different action +// cache entries. type BuildBazelRemoteExecutionV2PlatformProperty struct { // Name: The property name. Name string `json:"name,omitempty"` - // Value: The property value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2PlatformProperty) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2PlatformProperty) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2PlatformProperty - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2RequestMetadata: An optional Metadata to -// attach to any RPC request to tell the server about an external -// context of the request. The server may use this for logging or other -// purposes. To use it, the client attaches the header to the call using -// the canonical proto serialization: * name: -// `build.bazel.remote.execution.v2.requestmetadata-bin` * contents: the -// base64 encoded binary `RequestMetadata` message. Note: the gRPC -// library serializes binary headers encoded in base 64 by default + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2RequestMetadata: An optional Metadata to attach +// to any RPC request to tell the server about an external context of the +// request. The server may use this for logging or other purposes. To use it, +// the client attaches the header to the call using the canonical proto +// serialization: * name: `build.bazel.remote.execution.v2.requestmetadata-bin` +// * contents: the base64 encoded binary `RequestMetadata` message. Note: the +// gRPC library serializes binary headers encoded in base 64 by default // (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests). -// Therefore, if the gRPC library is used to pass/retrieve this -// metadata, the user may ignore the base64 encoding and assume it is -// simply serialized as a binary message. +// Therefore, if the gRPC library is used to pass/retrieve this metadata, the +// user may ignore the base64 encoding and assume it is simply serialized as a +// binary message. type BuildBazelRemoteExecutionV2RequestMetadata struct { - // ActionId: An identifier that ties multiple requests to the same - // action. For example, multiple requests to the CAS, Action Cache, and - // Execution API are used in order to compile foo.cc. + // ActionId: An identifier that ties multiple requests to the same action. For + // example, multiple requests to the CAS, Action Cache, and Execution API are + // used in order to compile foo.cc. ActionId string `json:"actionId,omitempty"` - - // ActionMnemonic: A brief description of the kind of action, for - // example, CppCompile or GoLink. There is no standard agreed set of - // values for this, and they are expected to vary between different - // client tools. + // ActionMnemonic: A brief description of the kind of action, for example, + // CppCompile or GoLink. There is no standard agreed set of values for this, + // and they are expected to vary between different client tools. ActionMnemonic string `json:"actionMnemonic,omitempty"` - - // ConfigurationId: An identifier for the configuration in which the - // target was built, e.g. for differentiating building host tools or - // different target platforms. There is no expectation that this value - // will have any particular structure, or equality across invocations, - // though some client tools may offer these guarantees. + // ConfigurationId: An identifier for the configuration in which the target was + // built, e.g. for differentiating building host tools or different target + // platforms. There is no expectation that this value will have any particular + // structure, or equality across invocations, though some client tools may + // offer these guarantees. ConfigurationId string `json:"configurationId,omitempty"` - - // CorrelatedInvocationsId: An identifier to tie multiple tool - // invocations together. For example, runs of foo_test, bar_test and - // baz_test on a post-submit of a given patch. + // CorrelatedInvocationsId: An identifier to tie multiple tool invocations + // together. For example, runs of foo_test, bar_test and baz_test on a + // post-submit of a given patch. CorrelatedInvocationsId string `json:"correlatedInvocationsId,omitempty"` - // TargetId: An identifier for the target which produced this action. No - // guarantees are made around how many actions may relate to a single - // target. + // guarantees are made around how many actions may relate to a single target. TargetId string `json:"targetId,omitempty"` - // ToolDetails: The details for the tool invoking the requests. ToolDetails *BuildBazelRemoteExecutionV2ToolDetails `json:"toolDetails,omitempty"` - - // ToolInvocationId: An identifier that ties multiple actions together - // to a final result. For example, multiple actions are required to - // build and run foo_test. + // ToolInvocationId: An identifier that ties multiple actions together to a + // final result. For example, multiple actions are required to build and run + // foo_test. ToolInvocationId string `json:"toolInvocationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2RequestMetadata) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2RequestMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2RequestMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2SymlinkNode: A `SymlinkNode` represents a // symbolic link. type BuildBazelRemoteExecutionV2SymlinkNode struct { // Name: The name of the symlink. - Name string `json:"name,omitempty"` - + Name string `json:"name,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - - // Target: The target path of the symlink. The path separator is a - // forward slash `/`. The target path can be relative to the parent - // directory of the symlink or it can be an absolute path starting with - // `/`. Support for absolute paths can be checked using the Capabilities - // API. `..` components are allowed anywhere in the target path as - // logical canonicalization may lead to different behavior in the - // presence of directory symlinks (e.g. `foo/../bar` may not be the same - // as `bar`). To reduce potential cache misses, canonicalization is - // still recommended where this is possible without impacting - // correctness. + // Target: The target path of the symlink. The path separator is a forward + // slash `/`. The target path can be relative to the parent directory of the + // symlink or it can be an absolute path starting with `/`. Support for + // absolute paths can be checked using the Capabilities API. `..` components + // are allowed anywhere in the target path as logical canonicalization may lead + // to different behavior in the presence of directory symlinks (e.g. + // `foo/../bar` may not be the same as `bar`). To reduce potential cache + // misses, canonicalization is still recommended where this is possible without + // impacting correctness. Target string `json:"target,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2SymlinkNode) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2SymlinkNode) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2SymlinkNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ToolDetails: Details for the tool used to -// call the API. +// BuildBazelRemoteExecutionV2ToolDetails: Details for the tool used to call +// the API. type BuildBazelRemoteExecutionV2ToolDetails struct { // ToolName: Name of the tool, e.g. bazel. ToolName string `json:"toolName,omitempty"` - // ToolVersion: Version of the tool used for the request, e.g. 5.0.3. ToolVersion string `json:"toolVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "ToolName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ToolName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ToolName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ToolDetails) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ToolDetails) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ToolDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2Tree: A `Tree` contains all the Directory -// protos in a single directory Merkle tree, compressed into one -// message. +// BuildBazelRemoteExecutionV2Tree: A `Tree` contains all the Directory protos +// in a single directory Merkle tree, compressed into one message. type BuildBazelRemoteExecutionV2Tree struct { - // Children: All the child directories: the directories referred to by - // the root and, recursively, all its children. In order to reconstruct - // the directory tree, the client must take the digests of each of the - // child directories and then build up a tree starting from the `root`. + // Children: All the child directories: the directories referred to by the root + // and, recursively, all its children. In order to reconstruct the directory + // tree, the client must take the digests of each of the child directories and + // then build up a tree starting from the `root`. Children []*BuildBazelRemoteExecutionV2Directory `json:"children,omitempty"` - // Root: The root directory in the tree. Root *BuildBazelRemoteExecutionV2Directory `json:"root,omitempty"` - // ForceSendFields is a list of field names (e.g. "Children") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Children") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Children") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Tree) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Tree) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Tree - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleBytestreamMedia: Media resource. @@ -1472,199 +1231,154 @@ type GoogleBytestreamMedia struct { // ResourceName: Name of the media resource. ResourceName string `json:"resourceName,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { +func (s GoogleBytestreamMedia) MarshalJSON() ([]byte, error) { type NoMethod GoogleBytestreamMedia - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildbotCommandDurations: CommandDuration -// contains the various duration metrics tracked when a bot performs a -// command. +// GoogleDevtoolsRemotebuildbotCommandDurations: CommandDuration contains the +// various duration metrics tracked when a bot performs a command. type GoogleDevtoolsRemotebuildbotCommandDurations struct { // CasRelease: The time spent to release the CAS blobs used by the task. CasRelease string `json:"casRelease,omitempty"` - - // CmWaitForAssignment: The time spent waiting for Container Manager to - // assign an asynchronous container for execution. + // CmWaitForAssignment: The time spent waiting for Container Manager to assign + // an asynchronous container for execution. CmWaitForAssignment string `json:"cmWaitForAssignment,omitempty"` - - // DockerPrep: The time spent preparing the command to be run in a - // Docker container (includes pulling the Docker image, if necessary). + // DockerPrep: The time spent preparing the command to be run in a Docker + // container (includes pulling the Docker image, if necessary). DockerPrep string `json:"dockerPrep,omitempty"` - // DockerPrepStartTime: The timestamp when docker preparation begins. DockerPrepStartTime string `json:"dockerPrepStartTime,omitempty"` - - // Download: The time spent downloading the input files and constructing - // the working directory. + // Download: The time spent downloading the input files and constructing the + // working directory. Download string `json:"download,omitempty"` - - // DownloadStartTime: The timestamp when downloading the input files - // begins. + // DownloadStartTime: The timestamp when downloading the input files begins. DownloadStartTime string `json:"downloadStartTime,omitempty"` - // ExecStartTime: The timestamp when execution begins. ExecStartTime string `json:"execStartTime,omitempty"` - - // Execution: The time spent executing the command (i.e., doing useful - // work). + // Execution: The time spent executing the command (i.e., doing useful work). Execution string `json:"execution,omitempty"` - // IsoPrepDone: The timestamp when preparation is done and bot starts // downloading files. IsoPrepDone string `json:"isoPrepDone,omitempty"` - // Overall: The time spent completing the command, in total. Overall string `json:"overall,omitempty"` - // Stdout: The time spent uploading the stdout logs. Stdout string `json:"stdout,omitempty"` - // Upload: The time spent uploading the output files. Upload string `json:"upload,omitempty"` - - // UploadStartTime: The timestamp when uploading the output files - // begins. + // UploadStartTime: The timestamp when uploading the output files begins. UploadStartTime string `json:"uploadStartTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CasRelease") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CasRelease") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CasRelease") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotCommandDurations) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotCommandDurations) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotCommandDurations - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildbotCommandEvents: CommandEvents contains -// counters for the number of warnings and errors that occurred during -// the execution of a command. +// GoogleDevtoolsRemotebuildbotCommandEvents: CommandEvents contains counters +// for the number of warnings and errors that occurred during the execution of +// a command. type GoogleDevtoolsRemotebuildbotCommandEvents struct { - // CmUsage: Indicates if and how Container Manager is being used for - // task execution. + // CmUsage: Indicates if and how Container Manager is being used for task + // execution. // // Possible values: - // "CONFIG_NONE" - Container Manager is disabled or not running for - // this execution. - // "CONFIG_MATCH" - Container Manager is enabled and there was a - // matching container available for use during execution. + // "CONFIG_NONE" - Container Manager is disabled or not running for this + // execution. + // "CONFIG_MATCH" - Container Manager is enabled and there was a matching + // container available for use during execution. // "CONFIG_MISMATCH" - Container Manager is enabled, but there was no // matching container available for execution. CmUsage string `json:"cmUsage,omitempty"` - - // DockerCacheHit: Indicates whether we are using a cached Docker image - // (true) or had to pull the Docker image (false) for this command. + // DockerCacheHit: Indicates whether we are using a cached Docker image (true) + // or had to pull the Docker image (false) for this command. DockerCacheHit bool `json:"dockerCacheHit,omitempty"` - // DockerImageName: Docker Image name. DockerImageName string `json:"dockerImageName,omitempty"` - // InputCacheMiss: The input cache miss ratio. InputCacheMiss float64 `json:"inputCacheMiss,omitempty"` - // NumErrors: The number of errors reported. NumErrors uint64 `json:"numErrors,omitempty,string"` - // NumWarnings: The number of warnings reported. NumWarnings uint64 `json:"numWarnings,omitempty,string"` - - // OutputLocation: Indicates whether output files and/or output - // directories were found relative to the execution root or to the user - // provided work directory or both or none. + // OutputLocation: Indicates whether output files and/or output directories + // were found relative to the execution root or to the user provided work + // directory or both or none. // // Possible values: - // "LOCATION_UNDEFINED" - Location is set to LOCATION_UNDEFINED for - // tasks where the working directorty is not specified or is identical - // to the execution root directory. + // "LOCATION_UNDEFINED" - Location is set to LOCATION_UNDEFINED for tasks + // where the working directorty is not specified or is identical to the + // execution root directory. // "LOCATION_NONE" - No output files or directories were found neither // relative to the execution root directory nor relative to the working // directory. - // "LOCATION_EXEC_ROOT_RELATIVE" - Output files or directories were - // found relative to the execution root directory but not relative to - // the working directory. - // "LOCATION_WORKING_DIR_RELATIVE" - Output files or directories were - // found relative to the working directory but not relative to the - // execution root directory. + // "LOCATION_EXEC_ROOT_RELATIVE" - Output files or directories were found + // relative to the execution root directory but not relative to the working + // directory. + // "LOCATION_WORKING_DIR_RELATIVE" - Output files or directories were found + // relative to the working directory but not relative to the execution root + // directory. // "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE" - Output files or - // directories were found both relative to the execution root directory - // and relative to the working directory. - // "LOCATION_EXEC_ROOT_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" - Output - // files or directories were found relative to the execution root - // directory but not relative to the working directory. In addition at - // least one output file or directory was found outside of the working - // directory such that a working-directory-relative-path would have - // needed to start with a `..`. - // - // "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE_OUTPUT_OUTSIDE_WORKING_DI - // R" - Output files or directories were found both relative to the - // execution root directory and relative to the working directory. In - // addition at least one exec-root-relative output file or directory was - // found outside of the working directory such that a - // working-directory-relative-path would have needed to start with a - // `..`. + // directories were found both relative to the execution root directory and + // relative to the working directory. + // "LOCATION_EXEC_ROOT_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" - Output files or + // directories were found relative to the execution root directory but not + // relative to the working directory. In addition at least one output file or + // directory was found outside of the working directory such that a + // working-directory-relative-path would have needed to start with a `..`. + // "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" - + // Output files or directories were found both relative to the execution root + // directory and relative to the working directory. In addition at least one + // exec-root-relative output file or directory was found outside of the working + // directory such that a working-directory-relative-path would have needed to + // start with a `..`. OutputLocation string `json:"outputLocation,omitempty"` - - // UsedAsyncContainer: Indicates whether an asynchronous container was - // used for execution. + // UsedAsyncContainer: Indicates whether an asynchronous container was used for + // execution. UsedAsyncContainer bool `json:"usedAsyncContainer,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CmUsage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CmUsage") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CmUsage") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CmUsage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotCommandEvents) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotCommandEvents) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotCommandEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleDevtoolsRemotebuildbotCommandEvents) UnmarshalJSON(data []byte) error { @@ -1689,138 +1403,117 @@ type GoogleDevtoolsRemotebuildbotCommandStatus struct { // Possible values: // "OK" - The command succeeded. // "INVALID_ARGUMENT" - The command input was invalid. - // "DEADLINE_EXCEEDED" - The command had passed its expiry time while - // it was still running. - // "NOT_FOUND" - The resources requested by the command were not - // found. + // "DEADLINE_EXCEEDED" - The command had passed its expiry time while it was + // still running. + // "NOT_FOUND" - The resources requested by the command were not found. // "PERMISSION_DENIED" - The command failed due to permission errors. - // "INTERNAL" - The command failed because of some invariants expected - // by the underlying system have been broken. This usually indicates a - // bug wit the system. + // "INTERNAL" - The command failed because of some invariants expected by the + // underlying system have been broken. This usually indicates a bug wit the + // system. // "ABORTED" - The command was aborted. - // "FAILED_PRECONDITION" - The command failed because the system is - // not in a state required for the command, e.g. the command inputs - // cannot be found on the server. - // "CLEANUP_ERROR" - The bot failed to do the cleanup, e.g. unable to - // delete the command working directory or the command process. + // "FAILED_PRECONDITION" - The command failed because the system is not in a + // state required for the command, e.g. the command inputs cannot be found on + // the server. + // "CLEANUP_ERROR" - The bot failed to do the cleanup, e.g. unable to delete + // the command working directory or the command process. // "DOWNLOAD_INPUTS_ERROR" - The bot failed to download the inputs. // "UNKNOWN" - Unknown error. // "UPLOAD_OUTPUTS_ERROR" - The bot failed to upload the outputs. - // "UPLOAD_OUTPUTS_BYTES_LIMIT_EXCEEDED" - The bot tried to upload - // files having a total size that is too large. + // "UPLOAD_OUTPUTS_BYTES_LIMIT_EXCEEDED" - The bot tried to upload files + // having a total size that is too large. // "DOCKER_LOGIN_ERROR" - The bot failed to login to docker. // "DOCKER_IMAGE_PULL_ERROR" - The bot failed to pull docker image. // "DOCKER_IMAGE_EXIST_ERROR" - The bot failed to check docker images. // "DUPLICATE_INPUTS" - The inputs contain duplicate files. - // "DOCKER_IMAGE_PERMISSION_DENIED" - The bot doesn't have the - // permissions to pull docker images. + // "DOCKER_IMAGE_PERMISSION_DENIED" - The bot doesn't have the permissions to + // pull docker images. // "DOCKER_IMAGE_NOT_FOUND" - The docker image cannot be found. // "WORKING_DIR_NOT_FOUND" - Working directory is not found. - // "WORKING_DIR_NOT_IN_BASE_DIR" - Working directory is not under the - // base directory - // "DOCKER_UNAVAILABLE" - There are issues with docker - // service/runtime. - // "NO_CUDA_CAPABLE_DEVICE" - The command failed with "no cuda-capable - // device is detected" error. - // "REMOTE_CAS_DOWNLOAD_ERROR" - The bot encountered errors from - // remote CAS when downloading blobs. - // "REMOTE_CAS_UPLOAD_ERROR" - The bot encountered errors from remote - // CAS when uploading blobs. + // "WORKING_DIR_NOT_IN_BASE_DIR" - Working directory is not under the base + // directory + // "DOCKER_UNAVAILABLE" - There are issues with docker service/runtime. + // "NO_CUDA_CAPABLE_DEVICE" - The command failed with "no cuda-capable device + // is detected" error. + // "REMOTE_CAS_DOWNLOAD_ERROR" - The bot encountered errors from remote CAS + // when downloading blobs. + // "REMOTE_CAS_UPLOAD_ERROR" - The bot encountered errors from remote CAS + // when uploading blobs. // "LOCAL_CASPROXY_NOT_RUNNING" - The local casproxy is not running. - // "DOCKER_CREATE_CONTAINER_ERROR" - The bot couldn't start the - // container. + // "DOCKER_CREATE_CONTAINER_ERROR" - The bot couldn't start the container. // "DOCKER_INVALID_ULIMIT" - The docker ulimit is not valid. // "DOCKER_UNKNOWN_RUNTIME" - The docker runtime is unknown. // "DOCKER_UNKNOWN_CAPABILITY" - The docker capability is unknown. - // "DOCKER_UNKNOWN_ERROR" - The command failed with unknown docker - // errors. - // "DOCKER_CREATE_COMPUTE_SYSTEM_ERROR" - Docker failed to run - // containers with CreateComputeSystem error. + // "DOCKER_UNKNOWN_ERROR" - The command failed with unknown docker errors. + // "DOCKER_CREATE_COMPUTE_SYSTEM_ERROR" - Docker failed to run containers + // with CreateComputeSystem error. // "DOCKER_PREPARELAYER_ERROR" - Docker failed to run containers with // hcsshim::PrepareLayer error. - // "DOCKER_INCOMPATIBLE_OS_ERROR" - Docker incompatible operating - // system error. - // "DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND" - Docker failed to create - // OCI runtime because of file not found. - // "DOCKER_CREATE_RUNTIME_PERMISSION_DENIED" - Docker failed to create - // OCI runtime because of permission denied. - // "DOCKER_CREATE_PROCESS_FILE_NOT_FOUND" - Docker failed to create - // process because of file not found. - // "DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR" - Docker - // failed to run containers with CreateComputeSystem error that involves - // an incorrect parameter (more specific version of - // DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused). + // "DOCKER_INCOMPATIBLE_OS_ERROR" - Docker incompatible operating system + // error. + // "DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND" - Docker failed to create OCI + // runtime because of file not found. + // "DOCKER_CREATE_RUNTIME_PERMISSION_DENIED" - Docker failed to create OCI + // runtime because of permission denied. + // "DOCKER_CREATE_PROCESS_FILE_NOT_FOUND" - Docker failed to create process + // because of file not found. + // "DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR" - Docker failed + // to run containers with CreateComputeSystem error that involves an incorrect + // parameter (more specific version of DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that + // is user-caused). // "DOCKER_TOO_MANY_SYMBOLIC_LINK_LEVELS" - Docker failed to create an // overlay mount because of too many levels of symbolic links. - // "LOCAL_CONTAINER_MANAGER_NOT_RUNNING" - The local Container Manager - // is not running. - // "DOCKER_IMAGE_VPCSC_PERMISSION_DENIED" - Docker failed because a - // request was denied by the organization's policy. + // "LOCAL_CONTAINER_MANAGER_NOT_RUNNING" - The local Container Manager is not + // running. + // "DOCKER_IMAGE_VPCSC_PERMISSION_DENIED" - Docker failed because a request + // was denied by the organization's policy. // "WORKING_DIR_NOT_RELATIVE" - Working directory is not relative - // "DOCKER_MISSING_CONTAINER" - Docker cannot find the container - // specified in the command. This error is likely to only occur if an - // asynchronous container is not running when the command is run. + // "DOCKER_MISSING_CONTAINER" - Docker cannot find the container specified in + // the command. This error is likely to only occur if an asynchronous container + // is not running when the command is run. Code string `json:"code,omitempty"` - // Message: The error message. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotCommandStatus) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotCommandStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotCommandStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildbotResourceUsage: ResourceUsage is the -// system resource usage of the host machine. +// GoogleDevtoolsRemotebuildbotResourceUsage: ResourceUsage is the system +// resource usage of the host machine. type GoogleDevtoolsRemotebuildbotResourceUsage struct { - CpuUsedPercent float64 `json:"cpuUsedPercent,omitempty"` - - DiskUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"diskUsage,omitempty"` - - MemoryUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"memoryUsage,omitempty"` - + CpuUsedPercent float64 `json:"cpuUsedPercent,omitempty"` + DiskUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"diskUsage,omitempty"` + MemoryUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"memoryUsage,omitempty"` TotalDiskIoStats *GoogleDevtoolsRemotebuildbotResourceUsageIOStats `json:"totalDiskIoStats,omitempty"` - // ForceSendFields is a list of field names (e.g. "CpuUsedPercent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CpuUsedPercent") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CpuUsedPercent") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotResourceUsage) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotResourceUsage) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotResourceUsage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleDevtoolsRemotebuildbotResourceUsage) UnmarshalJSON(data []byte) error { @@ -1838,401 +1531,310 @@ func (s *GoogleDevtoolsRemotebuildbotResourceUsage) UnmarshalJSON(data []byte) e } type GoogleDevtoolsRemotebuildbotResourceUsageIOStats struct { - ReadBytesCount uint64 `json:"readBytesCount,omitempty,string"` - - ReadCount uint64 `json:"readCount,omitempty,string"` - - ReadTimeMs uint64 `json:"readTimeMs,omitempty,string"` - + ReadBytesCount uint64 `json:"readBytesCount,omitempty,string"` + ReadCount uint64 `json:"readCount,omitempty,string"` + ReadTimeMs uint64 `json:"readTimeMs,omitempty,string"` WriteBytesCount uint64 `json:"writeBytesCount,omitempty,string"` - - WriteCount uint64 `json:"writeCount,omitempty,string"` - - WriteTimeMs uint64 `json:"writeTimeMs,omitempty,string"` - + WriteCount uint64 `json:"writeCount,omitempty,string"` + WriteTimeMs uint64 `json:"writeTimeMs,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ReadBytesCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ReadBytesCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ReadBytesCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotResourceUsageIOStats) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotResourceUsageIOStats) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotResourceUsageIOStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildbotResourceUsageStat struct { Total uint64 `json:"total,omitempty,string"` - - Used uint64 `json:"used,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Total") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Used uint64 `json:"used,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Total") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Total") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotResourceUsageStat) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotResourceUsageStat) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotResourceUsageStat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig: // AcceleratorConfig defines the accelerator cards to attach to the VM. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig struct { - // AcceleratorCount: The number of guest accelerator cards exposed to - // each VM. + // AcceleratorCount: The number of guest accelerator cards exposed to each VM. AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"` - // AcceleratorType: The type of accelerator to attach to each VM, e.g. // "nvidia-tesla-k80" for nVidia Tesla K80. AcceleratorType string `json:"acceleratorType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AcceleratorCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AcceleratorCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale: Autoscale -// defines the autoscaling policy of a worker pool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale: Autoscale defines +// the autoscaling policy of a worker pool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale struct { - // MaxSize: The maximal number of workers. Must be equal to or greater - // than min_size. + // MaxSize: The maximal number of workers. Must be equal to or greater than + // min_size. MaxSize int64 `json:"maxSize,omitempty,string"` - // MinSize: The minimal number of workers. Must be greater than 0. MinSize int64 `json:"minSize,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "MaxSize") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "MaxSize") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxSize") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxSize") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest: -// The request used for `CreateInstance`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest: The +// request used for `CreateInstance`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest struct { - // Instance: Specifies the instance to create. The name in the instance, - // if specified in the instance, is ignored. + // Instance: Specifies the instance to create. The name in the instance, if + // specified in the instance, is ignored. Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"` - - // InstanceId: ID of the created instance. A valid `instance_id` must: - // be 6-50 characters long, contain only lowercase letters, digits, - // hyphens and underscores, start with a lowercase letter, and end with - // a lowercase letter or a digit. + // InstanceId: ID of the created instance. A valid `instance_id` must: be 6-50 + // characters long, contain only lowercase letters, digits, hyphens and + // underscores, start with a lowercase letter, and end with a lowercase letter + // or a digit. InstanceId string `json:"instanceId,omitempty"` - // Parent: Resource name of the project containing the instance. Format: // `projects/[PROJECT_ID]`. Parent string `json:"parent,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest: -// -// The request used for `CreateWorkerPool`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest: The +// request used for `CreateWorkerPool`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest struct { - // Parent: Resource name of the instance in which to create the new - // worker pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. + // Parent: Resource name of the instance in which to create the new worker + // pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Parent string `json:"parent,omitempty"` - // PoolId: ID of the created worker pool. A valid pool ID must: be 6-50 // characters long, contain only lowercase letters, digits, hyphens and - // underscores, start with a lowercase letter, and end with a lowercase - // letter or a digit. + // underscores, start with a lowercase letter, and end with a lowercase letter + // or a digit. PoolId string `json:"poolId,omitempty"` - - // WorkerPool: Specifies the worker pool to create. The name in the - // worker pool, if specified, is ignored. + // WorkerPool: Specifies the worker pool to create. The name in the worker + // pool, if specified, is ignored. WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest: -// The request used for `DeleteInstance`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest: The +// request used for `DeleteInstance`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest struct { // Name: Name of the instance to delete. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest: -// -// The request used for DeleteWorkerPool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest: The +// request used for DeleteWorkerPool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest struct { // Name: Name of the worker pool to delete. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy: -// FeaturePolicy defines features allowed to be used on RBE instances, -// as well as instance-wide behavior changes that take effect without -// opt-in or opt-out at usage time. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy: FeaturePolicy +// defines features allowed to be used on RBE instances, as well as +// instance-wide behavior changes that take effect without opt-in or opt-out at +// usage time. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy struct { - // ContainerImageSources: Which container image sources are allowed. - // Currently only RBE-supported registry (gcr.io) is allowed. One can - // allow all repositories under a project or one specific repository - // only. E.g. container_image_sources { policy: RESTRICTED - // allowed_values: [ "gcr.io/project-foo", - // "gcr.io/project-bar/repo-baz", ] } will allow any repositories under - // "gcr.io/project-foo" plus the repository - // "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to - // any source is allowed. + // ContainerImageSources: Which container image sources are allowed. Currently + // only RBE-supported registry (gcr.io) is allowed. One can allow all + // repositories under a project or one specific repository only. E.g. + // container_image_sources { policy: RESTRICTED allowed_values: [ + // "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any + // repositories under "gcr.io/project-foo" plus the repository + // "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any + // source is allowed. ContainerImageSources *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"containerImageSources,omitempty"` - - // DockerAddCapabilities: Whether dockerAddCapabilities can be used or - // what capabilities are allowed. + // DockerAddCapabilities: Whether dockerAddCapabilities can be used or what + // capabilities are allowed. DockerAddCapabilities *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerAddCapabilities,omitempty"` - // DockerChrootPath: Whether dockerChrootPath can be used. DockerChrootPath *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerChrootPath,omitempty"` - - // DockerNetwork: Whether dockerNetwork can be used or what network - // modes are allowed. E.g. one may allow `off` value only via - // `allowed_values`. + // DockerNetwork: Whether dockerNetwork can be used or what network modes are + // allowed. E.g. one may allow `off` value only via `allowed_values`. DockerNetwork *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerNetwork,omitempty"` - // DockerPrivileged: Whether dockerPrivileged can be used. DockerPrivileged *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerPrivileged,omitempty"` - // DockerRunAsRoot: Whether dockerRunAsRoot can be used. DockerRunAsRoot *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerRunAsRoot,omitempty"` - - // DockerRuntime: Whether dockerRuntime is allowed to be set or what - // runtimes are allowed. Note linux_isolation takes precedence, and if - // set, docker_runtime values may be rejected if they are incompatible - // with the selected isolation. + // DockerRuntime: Whether dockerRuntime is allowed to be set or what runtimes + // are allowed. Note linux_isolation takes precedence, and if set, + // docker_runtime values may be rejected if they are incompatible with the + // selected isolation. DockerRuntime *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerRuntime,omitempty"` - // DockerSiblingContainers: Whether dockerSiblingContainers can be used. DockerSiblingContainers *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerSiblingContainers,omitempty"` - - // LinuxIsolation: linux_isolation allows overriding the docker runtime - // used for containers started on Linux. + // LinuxIsolation: linux_isolation allows overriding the docker runtime used + // for containers started on Linux. // // Possible values: - // "LINUX_ISOLATION_UNSPECIFIED" - Default value. Will be using Linux - // default runtime. + // "LINUX_ISOLATION_UNSPECIFIED" - Default value. Will be using Linux default + // runtime. // "GVISOR" - Use gVisor runsc runtime. // "OFF" - Use stardard Linux runtime. This has the same behaviour as // unspecified, but it can be used to revert back from gVisor. LinuxIsolation string `json:"linuxIsolation,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ContainerImageSources") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ContainerImageSources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ContainerImageSources") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature: -// Defines whether a feature can be used or what values are accepted. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature: Defines +// whether a feature can be used or what values are accepted. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature struct { - // AllowedValues: A list of acceptable values. Only effective when the - // policy is `RESTRICTED`. + // AllowedValues: A list of acceptable values. Only effective when the policy + // is `RESTRICTED`. AllowedValues []string `json:"allowedValues,omitempty"` - // Policy: The policy of the feature. // // Possible values: - // "POLICY_UNSPECIFIED" - Default value, if not explicitly set. - // Equivalent to FORBIDDEN, unless otherwise documented on a specific - // Feature. + // "POLICY_UNSPECIFIED" - Default value, if not explicitly set. Equivalent to + // FORBIDDEN, unless otherwise documented on a specific Feature. // "ALLOWED" - Feature is explicitly allowed. - // "FORBIDDEN" - Feature is forbidden. Requests attempting to leverage - // it will get an FailedPrecondition error, with a message like: - // "Feature forbidden by FeaturePolicy: Feature on instance " - // "RESTRICTED" - Only the values specified in the `allowed_values` - // are allowed. + // "FORBIDDEN" - Feature is forbidden. Requests attempting to leverage it + // will get an FailedPrecondition error, with a message like: "Feature + // forbidden by FeaturePolicy: Feature on instance " + // "RESTRICTED" - Only the values specified in the `allowed_values` are + // allowed. Policy string `json:"policy,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowedValues") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AllowedValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest: The @@ -2241,1091 +1843,859 @@ type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest struct { // Name: Name of the instance to retrieve. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest: -// The request used for GetWorkerPool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest: The +// request used for GetWorkerPool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest struct { // Name: Name of the worker pool to retrieve. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance: Instance -// conceptually encapsulates all Remote Build Execution resources for -// remote builds. An instance consists of storage and compute resources -// (for example, `ContentAddressableStorage`, `ActionCache`, -// `WorkerPools`) used for running remote builds. All Remote Build -// Execution API calls are scoped to an instance. +// conceptually encapsulates all Remote Build Execution resources for remote +// builds. An instance consists of storage and compute resources (for example, +// `ContentAddressableStorage`, `ActionCache`, `WorkerPools`) used for running +// remote builds. All Remote Build Execution API calls are scoped to an +// instance. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance struct { - // FeaturePolicy: The policy to define whether or not RBE features can - // be used or how they can be used. + // FeaturePolicy: The policy to define whether or not RBE features can be used + // or how they can be used. FeaturePolicy *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy `json:"featurePolicy,omitempty"` - - // Location: The location is a GCP region. Currently only `us-central1` - // is supported. + // Location: The location is a GCP region. Currently only `us-central1` is + // supported. Location string `json:"location,omitempty"` - - // LoggingEnabled: Output only. Whether stack driver logging is enabled - // for the instance. + // LoggingEnabled: Output only. Whether stack driver logging is enabled for the + // instance. LoggingEnabled bool `json:"loggingEnabled,omitempty"` - // Name: Output only. Instance resource name formatted as: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be // populated when creating an instance since it is provided in the // `instance_id` field. Name string `json:"name,omitempty"` - // State: Output only. State of the instance. // // Possible values: - // "STATE_UNSPECIFIED" - Not a valid state, but the default value of - // the enum. - // "CREATING" - The instance is in state `CREATING` once - // `CreateInstance` is called and before the instance is ready for use. - // "RUNNING" - The instance is in state `RUNNING` when it is ready for - // use. - // "INACTIVE" - An `INACTIVE` instance indicates that there is a - // problem that needs to be fixed. Such instances cannot be used for - // execution and instances that remain in this state for a significant - // period of time will be removed permanently. + // "STATE_UNSPECIFIED" - Not a valid state, but the default value of the + // enum. + // "CREATING" - The instance is in state `CREATING` once `CreateInstance` is + // called and before the instance is ready for use. + // "RUNNING" - The instance is in state `RUNNING` when it is ready for use. + // "INACTIVE" - An `INACTIVE` instance indicates that there is a problem that + // needs to be fixed. Such instances cannot be used for execution and instances + // that remain in this state for a significant period of time will be removed + // permanently. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "FeaturePolicy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FeaturePolicy") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FeaturePolicy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest struct { - // Parent: Resource name of the project. Format: - // `projects/[PROJECT_ID]`. + // Parent: Resource name of the project. Format: `projects/[PROJECT_ID]`. Parent string `json:"parent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse struct { // Instances: The list of instances in a given project. Instances []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instances,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instances") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instances") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instances") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest struct { - // Filter: Optional. A filter expression that filters resources listed - // in the response. The expression must specify the field name, a - // comparison operator, and the value that you want to use for - // filtering. The value must be a string, a number, or a boolean. String - // values are case-insensitive. The comparison operator must be either - // `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. The `:` operator can be used - // with string fields to match substrings. For non-string fields it is - // equivalent to the `=` operator. The `:*` comparison can be used to - // test whether a key has been defined. You can also filter on nested - // fields. To filter on multiple expressions, you can separate - // expression using `AND` and `OR` operators, using parentheses to - // specify precedence. If neither operator is specified, `AND` is - // assumed. Examples: Include only pools with more than 100 reserved - // workers: `(worker_count > 100) (worker_config.reserved = true)` - // Include only pools with a certain label or machines of the - // e2-standard family: `worker_config.labels.key1 : * OR - // worker_config.machine_type: e2-standard` + // Filter: Optional. A filter expression that filters resources listed in the + // response. The expression must specify the field name, a comparison operator, + // and the value that you want to use for filtering. The value must be a + // string, a number, or a boolean. String values are case-insensitive. The + // comparison operator must be either `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. + // The `:` operator can be used with string fields to match substrings. For + // non-string fields it is equivalent to the `=` operator. The `:*` comparison + // can be used to test whether a key has been defined. You can also filter on + // nested fields. To filter on multiple expressions, you can separate + // expression using `AND` and `OR` operators, using parentheses to specify + // precedence. If neither operator is specified, `AND` is assumed. Examples: + // Include only pools with more than 100 reserved workers: `(worker_count > + // 100) (worker_config.reserved = true)` Include only pools with a certain + // label or machines of the e2-standard family: `worker_config.labels.key1 : * + // OR worker_config.machine_type: e2-standard` Filter string `json:"filter,omitempty"` - // Parent: Resource name of the instance. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Parent string `json:"parent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse struct { // WorkerPools: The list of worker pools in a given instance. WorkerPools []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPools,omitempty"` - // ForceSendFields is a list of field names (e.g. "WorkerPools") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "WorkerPools") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "WorkerPools") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest: -// The request used for `UpdateInstance`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest: The +// request used for `UpdateInstance`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest struct { // Instance: Specifies the instance to update. Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"` - - // LoggingEnabled: Deprecated, use instance.logging_enabled instead. - // Whether to enable Stackdriver logging for this instance. + // LoggingEnabled: Deprecated, use instance.logging_enabled instead. Whether to + // enable Stackdriver logging for this instance. LoggingEnabled bool `json:"loggingEnabled,omitempty"` - - // Name: Deprecated, use instance.Name instead. Name of the instance to - // update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. + // Name: Deprecated, use instance.Name instead. Name of the instance to update. + // Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name string `json:"name,omitempty"` - // UpdateMask: The update mask applies to instance. For the `FieldMask` // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - // If an empty update_mask is provided, only the non-default valued - // field in the worker pool field will be updated. Note that in order to - // update a field to the default value (zero, false, empty string) an - // explicit update_mask must be provided. + // If an empty update_mask is provided, only the non-default valued field in + // the worker pool field will be updated. Note that in order to update a field + // to the default value (zero, false, empty string) an explicit update_mask + // must be provided. UpdateMask string `json:"updateMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest: -// -// The request used for UpdateWorkerPool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest: The +// request used for UpdateWorkerPool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest struct { - // UpdateMask: The update mask applies to worker_pool. For the - // `FieldMask` definition, see + // UpdateMask: The update mask applies to worker_pool. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - // If an empty update_mask is provided, only the non-default valued - // field in the worker pool field will be updated. Note that in order to - // update a field to the default value (zero, false, empty string) an - // explicit update_mask must be provided. + // If an empty update_mask is provided, only the non-default valued field in + // the worker pool field will be updated. Note that in order to update a field + // to the default value (zero, false, empty string) an explicit update_mask + // must be provided. UpdateMask string `json:"updateMask,omitempty"` - // WorkerPool: Specifies the worker pool to update. WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "UpdateMask") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "UpdateMask") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "UpdateMask") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig: Defines -// the configuration to be used for creating workers in the worker pool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig: Defines the +// configuration to be used for creating workers in the worker pool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig struct { // Accelerator: The accelerator card attached to each VM. Accelerator *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig `json:"accelerator,omitempty"` - - // DiskSizeGb: Required. Size of the disk attached to the worker, in GB. - // See https://cloud.google.com/compute/docs/disks/ + // DiskSizeGb: Required. Size of the disk attached to the worker, in GB. See + // https://cloud.google.com/compute/docs/disks/ DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // DiskType: Required. Disk Type to use for the worker. See Storage - // options (https://cloud.google.com/compute/docs/disks/#introduction). - // Currently only `pd-standard` and `pd-ssd` are supported. + // DiskType: Required. Disk Type to use for the worker. See Storage options + // (https://cloud.google.com/compute/docs/disks/#introduction). Currently only + // `pd-standard` and `pd-ssd` are supported. DiskType string `json:"diskType,omitempty"` - - // Labels: Labels associated with the workers. Label keys and values can - // be no longer than 63 characters, can only contain lowercase letters, - // numeric characters, underscores and dashes. International letters are - // permitted. Label keys must start with a letter. Label values are - // optional. There can not be more than 64 labels per resource. + // Labels: Labels associated with the workers. Label keys and values can be no + // longer than 63 characters, can only contain lowercase letters, numeric + // characters, underscores and dashes. International letters are permitted. + // Label keys must start with a letter. Label values are optional. There can + // not be more than 64 labels per resource. Labels map[string]string `json:"labels,omitempty"` - - // MachineType: Required. Machine type of the worker, such as - // `e2-standard-2`. See - // https://cloud.google.com/compute/docs/machine-types for a list of - // supported machine types. Note that `f1-micro` and `g1-small` are not - // yet supported. + // MachineType: Required. Machine type of the worker, such as `e2-standard-2`. + // See https://cloud.google.com/compute/docs/machine-types for a list of + // supported machine types. Note that `f1-micro` and `g1-small` are not yet + // supported. MachineType string `json:"machineType,omitempty"` - - // MaxConcurrentActions: The maximum number of actions a worker can - // execute concurrently. + // MaxConcurrentActions: The maximum number of actions a worker can execute + // concurrently. MaxConcurrentActions int64 `json:"maxConcurrentActions,omitempty,string"` - - // MinCpuPlatform: Minimum CPU platform to use when creating the worker. - // See CPU Platforms - // (https://cloud.google.com/compute/docs/cpu-platforms). + // MinCpuPlatform: Minimum CPU platform to use when creating the worker. See + // CPU Platforms (https://cloud.google.com/compute/docs/cpu-platforms). MinCpuPlatform string `json:"minCpuPlatform,omitempty"` - - // NetworkAccess: Determines the type of network access granted to - // workers. Possible values: - "public": Workers can connect to the - // public internet. - "private": Workers can only connect to Google APIs - // and services. - "restricted-private": Workers can only connect to - // Google APIs that are reachable through `restricted.googleapis.com` - // (`199.36.153.4/30`). + // NetworkAccess: Determines the type of network access granted to workers. + // Possible values: - "public": Workers can connect to the public internet. - + // "private": Workers can only connect to Google APIs and services. - + // "restricted-private": Workers can only connect to Google APIs that are + // reachable through `restricted.googleapis.com` (`199.36.153.4/30`). NetworkAccess string `json:"networkAccess,omitempty"` - - // Reserved: Determines whether the worker is reserved (equivalent to a - // Compute Engine on-demand VM and therefore won't be preempted). See - // Preemptible VMs (https://cloud.google.com/preemptible-vms/) for more - // details. + // Reserved: Determines whether the worker is reserved (equivalent to a Compute + // Engine on-demand VM and therefore won't be preempted). See Preemptible VMs + // (https://cloud.google.com/preemptible-vms/) for more details. Reserved bool `json:"reserved,omitempty"` - - // SoleTenantNodeType: The node type name to be used for sole-tenant - // nodes. + // SoleTenantNodeType: The node type name to be used for sole-tenant nodes. SoleTenantNodeType string `json:"soleTenantNodeType,omitempty"` - // VmImage: The name of the image used by each VM. VmImage string `json:"vmImage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Accelerator") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accelerator") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accelerator") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool: A worker -// pool resource in the Remote Build Execution API. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool: A worker pool +// resource in the Remote Build Execution API. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool struct { // Autoscale: The autoscale policy to apply on a pool. Autoscale *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale `json:"autoscale,omitempty"` - // Channel: Channel specifies the release channel of the pool. Channel string `json:"channel,omitempty"` - // Name: WorkerPool resource name formatted as: - // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. - // name should not be populated when creating a worker pool since it is - // provided in the `poolId` field. + // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name + // should not be populated when creating a worker pool since it is provided in + // the `poolId` field. Name string `json:"name,omitempty"` - // State: Output only. State of the worker pool. // // Possible values: - // "STATE_UNSPECIFIED" - Not a valid state, but the default value of - // the enum. + // "STATE_UNSPECIFIED" - Not a valid state, but the default value of the + // enum. // "CREATING" - The worker pool is in state `CREATING` once - // `CreateWorkerPool` is called and before all requested workers are - // ready. - // "RUNNING" - The worker pool is in state `RUNNING` when all its - // workers are ready for use. + // `CreateWorkerPool` is called and before all requested workers are ready. + // "RUNNING" - The worker pool is in state `RUNNING` when all its workers are + // ready for use. // "UPDATING" - The worker pool is in state `UPDATING` once - // `UpdateWorkerPool` is called and before the new configuration has all - // the requested workers ready for use, and no older configuration has - // any workers. At that point the state transitions to `RUNNING`. - // "DELETING" - The worker pool is in state `DELETING` once the - // `Delete` method is called and before the deletion completes. - // "INACTIVE" - The worker pool is in state `INACTIVE` when the - // instance hosting the worker pool in not running. + // `UpdateWorkerPool` is called and before the new configuration has all the + // requested workers ready for use, and no older configuration has any workers. + // At that point the state transitions to `RUNNING`. + // "DELETING" - The worker pool is in state `DELETING` once the `Delete` + // method is called and before the deletion completes. + // "INACTIVE" - The worker pool is in state `INACTIVE` when the instance + // hosting the worker pool in not running. State string `json:"state,omitempty"` - - // WorkerConfig: Specifies the properties, such as machine type and disk - // size, used for creating workers in a worker pool. + // WorkerConfig: Specifies the properties, such as machine type and disk size, + // used for creating workers in a worker pool. WorkerConfig *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig `json:"workerConfig,omitempty"` - - // WorkerCount: The desired number of workers in the worker pool. Must - // be a value between 0 and 15000. + // WorkerCount: The desired number of workers in the worker pool. Must be a + // value between 0 and 15000. WorkerCount int64 `json:"workerCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Autoscale") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Autoscale") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Autoscale") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleDevtoolsRemoteworkersV1test2AdminTemp: AdminTemp is a -// prelimiary set of administration tasks. It's called "Temp" because we -// do not yet know the best way to represent admin tasks; it's possible -// that this will be entirely replaced in later versions of this API. If -// this message proves to be sufficient, it will be renamed in the alpha -// or beta release of this API. This message (suitably marshalled into a -// protobuf.Any) can be used as the inline_assignment field in a lease; -// the lease assignment field should simply be "admin" in these cases. -// This message is heavily based on Swarming administration tasks from -// the LUCI project (http://github.com/luci/luci-py/appengine/swarming). + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleDevtoolsRemoteworkersV1test2AdminTemp: AdminTemp is a prelimiary set +// of administration tasks. It's called "Temp" because we do not yet know the +// best way to represent admin tasks; it's possible that this will be entirely +// replaced in later versions of this API. If this message proves to be +// sufficient, it will be renamed in the alpha or beta release of this API. +// This message (suitably marshalled into a protobuf.Any) can be used as the +// inline_assignment field in a lease; the lease assignment field should simply +// be "admin" in these cases. This message is heavily based on Swarming +// administration tasks from the LUCI project +// (http://github.com/luci/luci-py/appengine/swarming). type GoogleDevtoolsRemoteworkersV1test2AdminTemp struct { // Arg: The argument to the admin action; see `Command` for semantics. Arg string `json:"arg,omitempty"` - // Command: The admin action; see `Command` for legal values. // // Possible values: // "UNSPECIFIED" - Illegal value. - // "BOT_UPDATE" - Download and run a new version of the bot. `arg` - // will be a resource accessible via `ByteStream.Read` to obtain the new - // bot code. - // "BOT_RESTART" - Restart the bot without downloading a new version. - // `arg` will be a message to log. - // "BOT_TERMINATE" - Shut down the bot. `arg` will be a task resource - // name (similar to those in tasks.proto) that the bot can use to tell - // the server that it is terminating. - // "HOST_RESTART" - Restart the host computer. `arg` will be a message - // to log. + // "BOT_UPDATE" - Download and run a new version of the bot. `arg` will be a + // resource accessible via `ByteStream.Read` to obtain the new bot code. + // "BOT_RESTART" - Restart the bot without downloading a new version. `arg` + // will be a message to log. + // "BOT_TERMINATE" - Shut down the bot. `arg` will be a task resource name + // (similar to those in tasks.proto) that the bot can use to tell the server + // that it is terminating. + // "HOST_RESTART" - Restart the host computer. `arg` will be a message to + // log. Command string `json:"command,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Arg") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Arg") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Arg") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Arg") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2AdminTemp) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2AdminTemp) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2AdminTemp - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2Blob: Describes a blob of binary -// content with its digest. +// GoogleDevtoolsRemoteworkersV1test2Blob: Describes a blob of binary content +// with its digest. type GoogleDevtoolsRemoteworkersV1test2Blob struct { // Contents: The contents of the blob. Contents string `json:"contents,omitempty"` - - // Digest: The digest of the blob. This should be verified by the - // receiver. + // Digest: The digest of the blob. This should be verified by the receiver. Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2Blob) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2Blob) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2Blob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemoteworkersV1test2CommandOutputs: DEPRECATED - use // CommandResult instead. Describes the actual outputs from the task. type GoogleDevtoolsRemoteworkersV1test2CommandOutputs struct { - // ExitCode: exit_code is only fully reliable if the status' code is OK. - // If the task exceeded its deadline or was cancelled, the process may - // still produce an exit code as it is cancelled, and this will be - // populated, but a successful (zero) is unlikely to be correct unless - // the status code is OK. + // ExitCode: exit_code is only fully reliable if the status' code is OK. If the + // task exceeded its deadline or was cancelled, the process may still produce + // an exit code as it is cancelled, and this will be populated, but a + // successful (zero) is unlikely to be correct unless the status code is OK. ExitCode int64 `json:"exitCode,omitempty"` - - // Outputs: The output files. The blob referenced by the digest should - // contain one of the following (implementation-dependent): * A - // marshalled DirectoryMetadata of the returned filesystem * A - // LUCI-style .isolated file + // Outputs: The output files. The blob referenced by the digest should contain + // one of the following (implementation-dependent): * A marshalled + // DirectoryMetadata of the returned filesystem * A LUCI-style .isolated file Outputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExitCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExitCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExitCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandOutputs) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandOutputs) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandOutputs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemoteworkersV1test2CommandOverhead: DEPRECATED - use -// CommandResult instead. Can be used as part of -// CompleteRequest.metadata, or are part of a more sophisticated -// message. +// CommandResult instead. Can be used as part of CompleteRequest.metadata, or +// are part of a more sophisticated message. type GoogleDevtoolsRemoteworkersV1test2CommandOverhead struct { - // Duration: The elapsed time between calling Accept and Complete. The - // server will also have its own idea of what this should be, but this - // excludes the overhead of the RPCs and the bot response time. + // Duration: The elapsed time between calling Accept and Complete. The server + // will also have its own idea of what this should be, but this excludes the + // overhead of the RPCs and the bot response time. Duration string `json:"duration,omitempty"` - // Overhead: The amount of time *not* spent executing the command (ie // uploading/downloading files). Overhead string `json:"overhead,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandOverhead) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandOverhead) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandOverhead - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandResult: All information -// about the execution of a command, suitable for providing as the Bots -// interface's `Lease.result` field. +// GoogleDevtoolsRemoteworkersV1test2CommandResult: All information about the +// execution of a command, suitable for providing as the Bots interface's +// `Lease.result` field. type GoogleDevtoolsRemoteworkersV1test2CommandResult struct { - // Duration: The elapsed time between calling Accept and Complete. The - // server will also have its own idea of what this should be, but this - // excludes the overhead of the RPCs and the bot response time. + // Duration: The elapsed time between calling Accept and Complete. The server + // will also have its own idea of what this should be, but this excludes the + // overhead of the RPCs and the bot response time. Duration string `json:"duration,omitempty"` - - // ExitCode: The exit code of the process. An exit code of "0" should - // only be trusted if `status` has a code of OK (otherwise it may simply - // be unset). + // ExitCode: The exit code of the process. An exit code of "0" should only be + // trusted if `status` has a code of OK (otherwise it may simply be unset). ExitCode int64 `json:"exitCode,omitempty"` - - // Metadata: Implementation-dependent metadata about the task. Both - // servers and bots may define messages which can be encoded here; bots - // are free to provide metadata in multiple formats, and servers are - // free to choose one or more of the values to process and ignore - // others. In particular, it is *not* considered an error for the bot to - // provide the server with a field that it doesn't know about. + // Metadata: Implementation-dependent metadata about the task. Both servers and + // bots may define messages which can be encoded here; bots are free to provide + // metadata in multiple formats, and servers are free to choose one or more of + // the values to process and ignore others. In particular, it is *not* + // considered an error for the bot to provide the server with a field that it + // doesn't know about. Metadata []googleapi.RawMessage `json:"metadata,omitempty"` - - // Outputs: The output files. The blob referenced by the digest should - // contain one of the following (implementation-dependent): * A - // marshalled DirectoryMetadata of the returned filesystem * A - // LUCI-style .isolated file + // Outputs: The output files. The blob referenced by the digest should contain + // one of the following (implementation-dependent): * A marshalled + // DirectoryMetadata of the returned filesystem * A LUCI-style .isolated file Outputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"` - // Overhead: The amount of time *not* spent executing the command (ie // uploading/downloading files). Overhead string `json:"overhead,omitempty"` - - // Status: An overall status for the command. For example, if the - // command timed out, this might have a code of DEADLINE_EXCEEDED; if it - // was killed by the OS for memory exhaustion, it might have a code of - // RESOURCE_EXHAUSTED. + // Status: An overall status for the command. For example, if the command timed + // out, this might have a code of DEADLINE_EXCEEDED; if it was killed by the OS + // for memory exhaustion, it might have a code of RESOURCE_EXHAUSTED. Status *GoogleRpcStatus `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandResult) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTask: Describes a -// shell-style task to execute, suitable for providing as the Bots -// interface's `Lease.payload` field. +// GoogleDevtoolsRemoteworkersV1test2CommandTask: Describes a shell-style task +// to execute, suitable for providing as the Bots interface's `Lease.payload` +// field. type GoogleDevtoolsRemoteworkersV1test2CommandTask struct { // ExpectedOutputs: The expected outputs from the task. ExpectedOutputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs `json:"expectedOutputs,omitempty"` - // Inputs: The inputs to the task. Inputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs `json:"inputs,omitempty"` - // Timeouts: The timeouts of this task. Timeouts *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts `json:"timeouts,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpectedOutputs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpectedOutputs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExpectedOutputs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTask) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTask) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs: Describes the -// inputs to a shell-style task. +// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs: Describes the inputs to +// a shell-style task. type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs struct { - // Arguments: The command itself to run (e.g., argv). This field should - // be passed directly to the underlying operating system, and so it must - // be sensible to that operating system. For example, on Windows, the - // first argument might be "C:\Windows\System32\ping.exe" - that is, - // using drive letters and backslashes. A command for a *nix system, on - // the other hand, would use forward slashes. All other fields in the - // RWAPI must consistently use forward slashes, since those fields may - // be interpretted by both the service and the bot. + // Arguments: The command itself to run (e.g., argv). This field should be + // passed directly to the underlying operating system, and so it must be + // sensible to that operating system. For example, on Windows, the first + // argument might be "C:\Windows\System32\ping.exe" - that is, using drive + // letters and backslashes. A command for a *nix system, on the other hand, + // would use forward slashes. All other fields in the RWAPI must consistently + // use forward slashes, since those fields may be interpretted by both the + // service and the bot. Arguments []string `json:"arguments,omitempty"` - // EnvironmentVariables: All environment variables required by the task. EnvironmentVariables []*GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable `json:"environmentVariables,omitempty"` - - // Files: The input filesystem to be set up prior to the task beginning. - // The contents should be a repeated set of FileMetadata messages though - // other formats are allowed if better for the implementation (eg, a - // LUCI-style .isolated file). This field is repeated since - // implementations might want to cache the metadata, in which case it - // may be useful to break up portions of the filesystem that change - // frequently (eg, specific input files) from those that don't (eg, - // standard header files). + // Files: The input filesystem to be set up prior to the task beginning. The + // contents should be a repeated set of FileMetadata messages though other + // formats are allowed if better for the implementation (eg, a LUCI-style + // .isolated file). This field is repeated since implementations might want to + // cache the metadata, in which case it may be useful to break up portions of + // the filesystem that change frequently (eg, specific input files) from those + // that don't (eg, standard header files). Files []*GoogleDevtoolsRemoteworkersV1test2Digest `json:"files,omitempty"` - - // InlineBlobs: Inline contents for blobs expected to be needed by the - // bot to execute the task. For example, contents of entries in `files` - // or blobs that are indirectly referenced by an entry there. The bot - // should check against this list before downloading required task - // inputs to reduce the number of communications between itself and the - // remote CAS server. + // InlineBlobs: Inline contents for blobs expected to be needed by the bot to + // execute the task. For example, contents of entries in `files` or blobs that + // are indirectly referenced by an entry there. The bot should check against + // this list before downloading required task inputs to reduce the number of + // communications between itself and the remote CAS server. InlineBlobs []*GoogleDevtoolsRemoteworkersV1test2Blob `json:"inlineBlobs,omitempty"` - // WorkingDirectory: Directory from which a command is executed. It is a - // relative directory with respect to the bot's working directory (i.e., - // "./"). If it is non-empty, then it must exist under "./". Otherwise, - // "./" will be used. + // relative directory with respect to the bot's working directory (i.e., "./"). + // If it is non-empty, then it must exist under "./". Otherwise, "./" will be + // used. WorkingDirectory string `json:"workingDirectory,omitempty"` - // ForceSendFields is a list of field names (e.g. "Arguments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Arguments") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Arguments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable -// : An environment variable required by this task. +// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable: An +// environment variable required by this task. type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable struct { // Name: The envvar name. Name string `json:"name,omitempty"` - // Value: The envvar value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs: Describes the -// expected outputs of the command. +// GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs: Describes the expected +// outputs of the command. type GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs struct { - // Directories: A list of expected directories, relative to the - // execution root. All paths MUST be delimited by forward slashes. + // Directories: A list of expected directories, relative to the execution root. + // All paths MUST be delimited by forward slashes. Directories []string `json:"directories,omitempty"` - - // Files: A list of expected files, relative to the execution root. All - // paths MUST be delimited by forward slashes. + // Files: A list of expected files, relative to the execution root. All paths + // MUST be delimited by forward slashes. Files []string `json:"files,omitempty"` - - // StderrDestination: The destination to which any stderr should be - // sent. The method by which the bot should send the stream contents to - // that destination is not defined in this API. As examples, the - // destination could be a file referenced in the `files` field in this - // message, or it could be a URI that must be written via the ByteStream - // API. + // StderrDestination: The destination to which any stderr should be sent. The + // method by which the bot should send the stream contents to that destination + // is not defined in this API. As examples, the destination could be a file + // referenced in the `files` field in this message, or it could be a URI that + // must be written via the ByteStream API. StderrDestination string `json:"stderrDestination,omitempty"` - - // StdoutDestination: The destination to which any stdout should be - // sent. The method by which the bot should send the stream contents to - // that destination is not defined in this API. As examples, the - // destination could be a file referenced in the `files` field in this - // message, or it could be a URI that must be written via the ByteStream - // API. + // StdoutDestination: The destination to which any stdout should be sent. The + // method by which the bot should send the stream contents to that destination + // is not defined in this API. As examples, the destination could be a file + // referenced in the `files` field in this message, or it could be a URI that + // must be written via the ByteStream API. StdoutDestination string `json:"stdoutDestination,omitempty"` - // ForceSendFields is a list of field names (e.g. "Directories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts: Describes the // timeouts associated with this task. type GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts struct { - // Execution: This specifies the maximum time that the task can run, - // excluding the time required to download inputs or upload outputs. - // That is, the worker will terminate the task if it runs longer than - // this. + // Execution: This specifies the maximum time that the task can run, excluding + // the time required to download inputs or upload outputs. That is, the worker + // will terminate the task if it runs longer than this. Execution string `json:"execution,omitempty"` - - // Idle: This specifies the maximum amount of time the task can be idle - // - that is, go without generating some output in either stdout or - // stderr. If the process is silent for more than the specified time, - // the worker will terminate the task. + // Idle: This specifies the maximum amount of time the task can be idle - that + // is, go without generating some output in either stdout or stderr. If the + // process is silent for more than the specified time, the worker will + // terminate the task. Idle string `json:"idle,omitempty"` - - // Shutdown: If the execution or IO timeouts are exceeded, the worker - // will try to gracefully terminate the task and return any existing - // logs. However, tasks may be hard-frozen in which case this process - // will fail. This timeout specifies how long to wait for a terminated - // task to shut down gracefully (e.g. via SIGTERM) before we bring down - // the hammer (e.g. SIGKILL on *nix, CTRL_BREAK_EVENT on Windows). + // Shutdown: If the execution or IO timeouts are exceeded, the worker will try + // to gracefully terminate the task and return any existing logs. However, + // tasks may be hard-frozen in which case this process will fail. This timeout + // specifies how long to wait for a terminated task to shut down gracefully + // (e.g. via SIGTERM) before we bring down the hammer (e.g. SIGKILL on *nix, + // CTRL_BREAK_EVENT on Windows). Shutdown string `json:"shutdown,omitempty"` - // ForceSendFields is a list of field names (e.g. "Execution") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Execution") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Execution") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleDevtoolsRemoteworkersV1test2Digest: The CommandTask and -// CommandResult messages assume the existence of a service that can -// serve blobs of content, identified by a hash and size known as a -// "digest." The method by which these blobs may be retrieved is not -// specified here, but a model implementation is in the Remote Execution -// API's "ContentAddressibleStorage" interface. In the context of the -// RWAPI, a Digest will virtually always refer to the contents of a file -// or a directory. The latter is represented by the byte-encoded + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleDevtoolsRemoteworkersV1test2Digest: The CommandTask and CommandResult +// messages assume the existence of a service that can serve blobs of content, +// identified by a hash and size known as a "digest." The method by which these +// blobs may be retrieved is not specified here, but a model implementation is +// in the Remote Execution API's "ContentAddressibleStorage" interface. In the +// context of the RWAPI, a Digest will virtually always refer to the contents +// of a file or a directory. The latter is represented by the byte-encoded // Directory message. type GoogleDevtoolsRemoteworkersV1test2Digest struct { - // Hash: A string-encoded hash (eg "1a2b3c", not the byte array [0x1a, - // 0x2b, 0x3c]) using an implementation-defined hash algorithm (eg - // SHA-256). + // Hash: A string-encoded hash (eg "1a2b3c", not the byte array [0x1a, 0x2b, + // 0x3c]) using an implementation-defined hash algorithm (eg SHA-256). Hash string `json:"hash,omitempty"` - - // SizeBytes: The size of the contents. While this is not strictly - // required as part of an identifier (after all, any given hash will - // have exactly one canonical size), it's useful in almost all cases - // when one might want to send or retrieve blobs of content and is - // included here for this reason. + // SizeBytes: The size of the contents. While this is not strictly required as + // part of an identifier (after all, any given hash will have exactly one + // canonical size), it's useful in almost all cases when one might want to send + // or retrieve blobs of content and is included here for this reason. SizeBytes int64 `json:"sizeBytes,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Hash") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hash") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Hash") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Hash") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2Digest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2Digest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2Digest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2Directory: The contents of a -// directory. Similar to the equivalent message in the Remote Execution -// API. +// GoogleDevtoolsRemoteworkersV1test2Directory: The contents of a directory. +// Similar to the equivalent message in the Remote Execution API. type GoogleDevtoolsRemoteworkersV1test2Directory struct { // Directories: Any subdirectories Directories []*GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata `json:"directories,omitempty"` - // Files: The files in this directory Files []*GoogleDevtoolsRemoteworkersV1test2FileMetadata `json:"files,omitempty"` - // ForceSendFields is a list of field names (e.g. "Directories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2Directory) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2Directory) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2Directory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata: The metadata for -// a directory. Similar to the equivalent message in the Remote -// Execution API. +// GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata: The metadata for a +// directory. Similar to the equivalent message in the Remote Execution API. type GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata struct { // Digest: A pointer to the contents of the directory, in the form of a // marshalled Directory message. Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"` - // Path: The path of the directory, as in FileMetadata.path. Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2FileMetadata: The metadata for a -// file. Similar to the equivalent message in the Remote Execution API. +// GoogleDevtoolsRemoteworkersV1test2FileMetadata: The metadata for a file. +// Similar to the equivalent message in the Remote Execution API. type GoogleDevtoolsRemoteworkersV1test2FileMetadata struct { // Contents: If the file is small enough, its contents may also or // alternatively be listed here. Contents string `json:"contents,omitempty"` - - // Digest: A pointer to the contents of the file. The method by which a - // client retrieves the contents from a CAS system is not defined here. + // Digest: A pointer to the contents of the file. The method by which a client + // retrieves the contents from a CAS system is not defined here. Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"` - // IsExecutable: Properties of the file IsExecutable bool `json:"isExecutable,omitempty"` - // Path: The path of this file. If this message is part of the - // CommandOutputs.outputs fields, the path is relative to the execution - // root and must correspond to an entry in CommandTask.outputs.files. If - // this message is part of a Directory message, then the path is - // relative to the root of that directory. All paths MUST be delimited - // by forward slashes. + // CommandOutputs.outputs fields, the path is relative to the execution root + // and must correspond to an entry in CommandTask.outputs.files. If this + // message is part of a Directory message, then the path is relative to the + // root of that directory. All paths MUST be delimited by forward slashes. Path string `json:"path,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2FileMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2FileMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2FileMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningCancelOperationRequest: The request message for @@ -3338,158 +2708,122 @@ type GoogleLongrunningCancelOperationRequest struct { type GoogleLongrunningListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningOperation: This resource represents a long-running // operation that is the result of a network API call. type GoogleLongrunningOperation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleProtobufEmpty: A generic empty message that you can re-use to -// avoid defining duplicated empty messages in your APIs. A typical -// example is to use it as the request or the response type of an API -// method. For instance: service Foo { rpc Bar(google.protobuf.Empty) -// returns (google.protobuf.Empty); } The JSON representation for -// `Empty` is empty JSON object `{}`. +// GoogleProtobufEmpty: A generic empty message that you can re-use to avoid +// defining duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For instance: +// service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON +// object `{}`. type GoogleProtobufEmpty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// GoogleRpcStatus: The `Status` type defines a logical error model that -// is suitable for different programming environments, including REST -// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// GoogleRpcStatus: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs and RPC +// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message +// contains three pieces of data: error code, error message, and error details. +// You can find out more about this error model and how to work with it in the +// API Design Guide (https://cloud.google.com/apis/design/errors). type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { +func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleRpcStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "remotebuildexecution.media.download": - type MediaDownloadCall struct { s *Service resourceName string @@ -3511,33 +2845,29 @@ func (r *MediaService) Download(resourceName string) *MediaDownloadCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MediaDownloadCall) Fields(s ...googleapi.Field) *MediaDownloadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MediaDownloadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3546,12 +2876,7 @@ func (c *MediaDownloadCall) Header() http.Header { } func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3568,7 +2893,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -3582,18 +2907,17 @@ func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Respon } if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "remotebuildexecution.media.download" call. -// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3601,17 +2925,17 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamM if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleBytestreamMedia{ ServerResponse: googleapi.ServerResponse{ @@ -3624,36 +2948,7 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamM return nil, err } return ret, nil - // { - // "description": "Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`.", - // "flatPath": "v1/media/{mediaId}", - // "httpMethod": "GET", - // "id": "remotebuildexecution.media.download", - // "parameterOrder": [ - // "resourceName" - // ], - // "parameters": { - // "resourceName": { - // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/media/{+resourceName}", - // "response": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "remotebuildexecution.media.upload": +} type MediaUploadCall struct { s *Service @@ -3677,54 +2972,51 @@ func (r *MediaService) Upload(resourceName string, googlebytestreammedia *Google return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall { c.mediaInfo_.SetProgressUpdater(pu) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall { @@ -3732,8 +3024,8 @@ func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall { return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *MediaUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3742,18 +3034,12 @@ func (c *MediaUploadCall) Header() http.Header { } func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlebytestreammedia) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/media/{+resourceName}") @@ -3777,16 +3063,15 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.media.upload" call. -// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3794,17 +3079,17 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMed if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { @@ -3820,7 +3105,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMed } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &GoogleBytestreamMedia{ @@ -3834,50 +3119,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMed return nil, err } return ret, nil - // { - // "description": "Uploads media. Upload is supported on the URI `/upload/v1/media/{+name}`.", - // "flatPath": "v1/media/{mediaId}", - // "httpMethod": "POST", - // "id": "remotebuildexecution.media.upload", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "protocols": { - // "simple": { - // "multipart": true, - // "path": "/upload/v1/media/{+resourceName}" - // } - // } - // }, - // "parameterOrder": [ - // "resourceName" - // ], - // "parameters": { - // "resourceName": { - // "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/media/{+resourceName}", - // "request": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "response": { - // "$ref": "GoogleBytestreamMedia" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ], - // "supportsMediaUpload": true - // } - -} - -// method id "remotebuildexecution.operations.cancel": +} type OperationsCancelCall struct { s *Service @@ -3888,15 +3130,14 @@ type OperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. @@ -3908,23 +3149,21 @@ func (r *OperationsService) Cancel(name string, googlelongrunningcanceloperation } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3933,18 +3172,12 @@ func (c *OperationsCancelCall) Header() http.Header { } func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") @@ -3957,16 +3190,15 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3974,17 +3206,17 @@ func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ @@ -3997,38 +3229,7 @@ func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "remotebuildexecution.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:cancel", - // "request": { - // "$ref": "GoogleLongrunningCancelOperationRequest" - // }, - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.operations.delete": +} type OperationsDeleteCall struct { s *Service @@ -4038,10 +3239,10 @@ type OperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. func (r *OperationsService) Delete(name string) *OperationsDeleteCall { @@ -4051,23 +3252,21 @@ func (r *OperationsService) Delete(name string) *OperationsDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4076,12 +3275,7 @@ func (c *OperationsDeleteCall) Header() http.Header { } func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4095,16 +3289,15 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.operations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4112,17 +3305,17 @@ func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ @@ -4135,35 +3328,7 @@ func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "remotebuildexecution.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.operations.list": +} type OperationsListCall struct { s *Service @@ -4174,16 +3339,15 @@ type OperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. // // - name: The name of the operation's parent resource. func (r *OperationsService) List(name string) *OperationsListCall { @@ -4192,55 +3356,50 @@ func (r *OperationsService) List(name string) *OperationsListCall { return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4249,12 +3408,7 @@ func (c *OperationsListCall) Header() http.Header { } func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4271,17 +3425,15 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4289,17 +3441,17 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4312,48 +3464,6 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1/operations", - // "httpMethod": "GET", - // "id": "remotebuildexecution.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -4361,7 +3471,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin // The provided context supersedes any context provided to the Context method. func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4377,8 +3487,6 @@ func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunnin } } -// method id "remotebuildexecution.projects.operations.get": - type ProjectsOperationsGetCall struct { s *Service name string @@ -4388,9 +3496,9 @@ type ProjectsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall { @@ -4400,33 +3508,29 @@ func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4435,12 +3539,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { } func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4457,16 +3556,15 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4474,17 +3572,17 @@ func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -4497,30 +3595,4 @@ func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLon return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/projects/{projectsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "remotebuildexecution.projects.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/remotebuildexecution/v1alpha/remotebuildexecution-gen.go b/remotebuildexecution/v1alpha/remotebuildexecution-gen.go index a3b7fd8f38e..6b47de3cc89 100644 --- a/remotebuildexecution/v1alpha/remotebuildexecution-gen.go +++ b/remotebuildexecution/v1alpha/remotebuildexecution-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/remote-build-execution/docs/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package remotebuildexecution // import "google.golang.org/api/remotebuildexecution/v1alpha" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "remotebuildexecution:v1alpha" const apiName = "remotebuildexecution" const apiVersion = "v1alpha" const basePath = "https://admin-remotebuildexecution.googleapis.com/" +const basePathTemplate = "https://admin-remotebuildexecution.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://admin-remotebuildexecution.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -180,381 +198,313 @@ type ProjectsOperationsService struct { s *Service } -// BuildBazelRemoteExecutionV2Action: An `Action` captures all the -// information about an execution which is required to reproduce it. -// `Action`s are the core component of the [Execution] service. A single -// `Action` represents a repeatable action that can be performed by the -// execution service. `Action`s can be succinctly identified by the -// digest of their wire format encoding and, once an `Action` has been -// executed, will be cached in the action cache. Future requests can -// then use the cached result rather than needing to run afresh. When a -// server completes execution of an Action, it MAY choose to cache the -// result in the ActionCache unless `do_not_cache` is `true`. Clients -// SHOULD expect the server to do so. By default, future calls to -// Execute the same `Action` will also serve their results from the -// cache. Clients must take care to understand the caching behaviour. -// Ideally, all `Action`s will be reproducible so that serving a result -// from cache is always desirable and correct. +// BuildBazelRemoteExecutionV2Action: An `Action` captures all the information +// about an execution which is required to reproduce it. `Action`s are the core +// component of the [Execution] service. A single `Action` represents a +// repeatable action that can be performed by the execution service. `Action`s +// can be succinctly identified by the digest of their wire format encoding +// and, once an `Action` has been executed, will be cached in the action cache. +// Future requests can then use the cached result rather than needing to run +// afresh. When a server completes execution of an Action, it MAY choose to +// cache the result in the ActionCache unless `do_not_cache` is `true`. Clients +// SHOULD expect the server to do so. By default, future calls to Execute the +// same `Action` will also serve their results from the cache. Clients must +// take care to understand the caching behaviour. Ideally, all `Action`s will +// be reproducible so that serving a result from cache is always desirable and +// correct. type BuildBazelRemoteExecutionV2Action struct { - // CommandDigest: The digest of the Command to run, which MUST be - // present in the ContentAddressableStorage. + // CommandDigest: The digest of the Command to run, which MUST be present in + // the ContentAddressableStorage. CommandDigest *BuildBazelRemoteExecutionV2Digest `json:"commandDigest,omitempty"` - // DoNotCache: If true, then the `Action`'s result cannot be cached, and // in-flight requests for the same `Action` may not be merged. DoNotCache bool `json:"doNotCache,omitempty"` - - // InputRootDigest: The digest of the root Directory for the input - // files. The files in the directory tree are available in the correct - // location on the build machine before the command is executed. The - // root directory, as well as every subdirectory and content blob - // referred to, MUST be in the ContentAddressableStorage. + // InputRootDigest: The digest of the root Directory for the input files. The + // files in the directory tree are available in the correct location on the + // build machine before the command is executed. The root directory, as well as + // every subdirectory and content blob referred to, MUST be in the + // ContentAddressableStorage. InputRootDigest *BuildBazelRemoteExecutionV2Digest `json:"inputRootDigest,omitempty"` - - // Platform: The optional platform requirements for the execution - // environment. The server MAY choose to execute the action on any - // worker satisfying the requirements, so the client SHOULD ensure that - // running the action on any such worker will have the same result. A - // detailed lexicon for this can be found in the accompanying - // platform.md. New in version 2.2: clients SHOULD set these platform - // properties as well as those in the Command. Servers SHOULD prefer - // those set here. + // Platform: The optional platform requirements for the execution environment. + // The server MAY choose to execute the action on any worker satisfying the + // requirements, so the client SHOULD ensure that running the action on any + // such worker will have the same result. A detailed lexicon for this can be + // found in the accompanying platform.md. New in version 2.2: clients SHOULD + // set these platform properties as well as those in the Command. Servers + // SHOULD prefer those set here. Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"` - - // Salt: An optional additional salt value used to place this `Action` - // into a separate cache namespace from other instances having the same - // field contents. This salt typically comes from operational - // configuration specific to sources such as repo and service - // configuration, and allows disowning an entire set of ActionResults - // that might have been poisoned by buggy software or tool failures. + // Salt: An optional additional salt value used to place this `Action` into a + // separate cache namespace from other instances having the same field + // contents. This salt typically comes from operational configuration specific + // to sources such as repo and service configuration, and allows disowning an + // entire set of ActionResults that might have been poisoned by buggy software + // or tool failures. Salt string `json:"salt,omitempty"` - // Timeout: A timeout after which the execution should be killed. If the - // timeout is absent, then the client is specifying that the execution - // should continue as long as the server will let it. The server SHOULD - // impose a timeout if the client does not specify one, however, if the - // client does specify a timeout that is longer than the server's - // maximum timeout, the server MUST reject the request. The timeout is a - // part of the Action message, and therefore two `Actions` with - // different timeouts are different, even if they are otherwise - // identical. This is because, if they were not, running an `Action` - // with a lower timeout than is required might result in a cache hit + // timeout is absent, then the client is specifying that the execution should + // continue as long as the server will let it. The server SHOULD impose a + // timeout if the client does not specify one, however, if the client does + // specify a timeout that is longer than the server's maximum timeout, the + // server MUST reject the request. The timeout is a part of the Action message, + // and therefore two `Actions` with different timeouts are different, even if + // they are otherwise identical. This is because, if they were not, running an + // `Action` with a lower timeout than is required might result in a cache hit // from an execution run with a longer timeout, hiding the fact that the - // timeout is too short. By encoding it directly in the `Action`, a - // lower timeout will result in a cache miss and the execution timeout - // will fail immediately, rather than whenever the cache entry gets - // evicted. + // timeout is too short. By encoding it directly in the `Action`, a lower + // timeout will result in a cache miss and the execution timeout will fail + // immediately, rather than whenever the cache entry gets evicted. Timeout string `json:"timeout,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommandDigest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommandDigest") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CommandDigest") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Action) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Action) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Action - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ActionResult: An ActionResult represents -// the result of an Action being run. It is advised that at least one -// field (for example `ActionResult.execution_metadata.Worker`) have a -// non-default value, to ensure that the serialized value is non-empty, -// which can then be used as a basic data sanity check. +// BuildBazelRemoteExecutionV2ActionResult: An ActionResult represents the +// result of an Action being run. It is advised that at least one field (for +// example `ActionResult.execution_metadata.Worker`) have a non-default value, +// to ensure that the serialized value is non-empty, which can then be used as +// a basic data sanity check. type BuildBazelRemoteExecutionV2ActionResult struct { - // ExecutionMetadata: The details of the execution that originally - // produced this result. + // ExecutionMetadata: The details of the execution that originally produced + // this result. ExecutionMetadata *BuildBazelRemoteExecutionV2ExecutedActionMetadata `json:"executionMetadata,omitempty"` - // ExitCode: The exit code of the command. ExitCode int64 `json:"exitCode,omitempty"` - - // OutputDirectories: The output directories of the action. For each - // output directory requested in the `output_directories` or - // `output_paths` field of the Action, if the corresponding directory - // existed after the action completed, a single entry will be present in - // the output list, which will contain the digest of a Tree message - // containing the directory tree, and the path equal exactly to the - // corresponding Action output_directories member. As an example, - // suppose the Action had an output directory `a/b/dir` and the - // execution produced the following contents in `a/b/dir`: a file named - // `bar` and a directory named `foo` with an executable file named - // `baz`. Then, output_directory will contain (hashes shortened for - // readability): ```json // OutputDirectory proto: { path: "a/b/dir" - // tree_digest: { hash: "4a73bc9d03...", size: 55 } } // Tree proto with - // hash "4a73bc9d03..." and size 55: { root: { files: [ { name: "bar", - // digest: { hash: "4a73bc9d03...", size: 65534 } } ], directories: [ { - // name: "foo", digest: { hash: "4cf2eda940...", size: 43 } } ] } - // children : { // (Directory proto with hash "4cf2eda940..." and size - // 43) files: [ { name: "baz", digest: { hash: "b2c941073e...", size: - // 1294, }, is_executable: true } ] } } ``` If an output of the same - // name as listed in `output_files` of the Command was found in - // `output_directories`, but was not a directory, the server will return - // a FAILED_PRECONDITION. + // OutputDirectories: The output directories of the action. For each output + // directory requested in the `output_directories` or `output_paths` field of + // the Action, if the corresponding directory existed after the action + // completed, a single entry will be present in the output list, which will + // contain the digest of a Tree message containing the directory tree, and the + // path equal exactly to the corresponding Action output_directories member. As + // an example, suppose the Action had an output directory `a/b/dir` and the + // execution produced the following contents in `a/b/dir`: a file named `bar` + // and a directory named `foo` with an executable file named `baz`. Then, + // output_directory will contain (hashes shortened for readability): ```json // + // OutputDirectory proto: { path: "a/b/dir" tree_digest: { hash: + // "4a73bc9d03...", size: 55 } } // Tree proto with hash "4a73bc9d03..." and + // size 55: { root: { files: [ { name: "bar", digest: { hash: "4a73bc9d03...", + // size: 65534 } } ], directories: [ { name: "foo", digest: { hash: + // "4cf2eda940...", size: 43 } } ] } children : { // (Directory proto with hash + // "4cf2eda940..." and size 43) files: [ { name: "baz", digest: { hash: + // "b2c941073e...", size: 1294, }, is_executable: true } ] } } ``` If an output + // of the same name as listed in `output_files` of the Command was found in + // `output_directories`, but was not a directory, the server will return a + // FAILED_PRECONDITION. OutputDirectories []*BuildBazelRemoteExecutionV2OutputDirectory `json:"outputDirectories,omitempty"` - - // OutputDirectorySymlinks: The output directories of the action that - // are symbolic links to other directories. Those may be links to other - // output directories, or input directories, or even absolute paths - // outside of the working directory, if the server supports - // SymlinkAbsolutePathStrategy.ALLOWED. For each output directory - // requested in the `output_directories` field of the Action, if the - // directory existed after the action completed, a single entry will be - // present either in this field, or in the `output_directories` field, - // if the directory was not a symbolic link. If an output of the same - // name was found, but was a symbolic link to a file instead of a - // directory, the server will return a FAILED_PRECONDITION. If the - // action does not produce the requested output, then that output will - // be omitted from the list. The server is free to arrange the output - // list as desired; clients MUST NOT assume that the output list is - // sorted. DEPRECATED as of v2.1. Servers that wish to be compatible - // with v2.0 API should still populate this field in addition to - // `output_symlinks`. + // OutputDirectorySymlinks: The output directories of the action that are + // symbolic links to other directories. Those may be links to other output + // directories, or input directories, or even absolute paths outside of the + // working directory, if the server supports + // SymlinkAbsolutePathStrategy.ALLOWED. For each output directory requested in + // the `output_directories` field of the Action, if the directory existed after + // the action completed, a single entry will be present either in this field, + // or in the `output_directories` field, if the directory was not a symbolic + // link. If an output of the same name was found, but was a symbolic link to a + // file instead of a directory, the server will return a FAILED_PRECONDITION. + // If the action does not produce the requested output, then that output will + // be omitted from the list. The server is free to arrange the output list as + // desired; clients MUST NOT assume that the output list is sorted. DEPRECATED + // as of v2.1. Servers that wish to be compatible with v2.0 API should still + // populate this field in addition to `output_symlinks`. OutputDirectorySymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputDirectorySymlinks,omitempty"` - - // OutputFileSymlinks: The output files of the action that are symbolic - // links to other files. Those may be links to other output files, or - // input files, or even absolute paths outside of the working directory, - // if the server supports SymlinkAbsolutePathStrategy.ALLOWED. For each - // output file requested in the `output_files` or `output_paths` field - // of the Action, if the corresponding file existed after the action - // completed, a single entry will be present either in this field, or in - // the `output_files` field, if the file was not a symbolic link. If an - // output symbolic link of the same name as listed in `output_files` of - // the Command was found, but its target type was not a regular file, - // the server will return a FAILED_PRECONDITION. If the action does not - // produce the requested output, then that output will be omitted from - // the list. The server is free to arrange the output list as desired; - // clients MUST NOT assume that the output list is sorted. DEPRECATED as - // of v2.1. Servers that wish to be compatible with v2.0 API should - // still populate this field in addition to `output_symlinks`. + // OutputFileSymlinks: The output files of the action that are symbolic links + // to other files. Those may be links to other output files, or input files, or + // even absolute paths outside of the working directory, if the server supports + // SymlinkAbsolutePathStrategy.ALLOWED. For each output file requested in the + // `output_files` or `output_paths` field of the Action, if the corresponding + // file existed after the action completed, a single entry will be present + // either in this field, or in the `output_files` field, if the file was not a + // symbolic link. If an output symbolic link of the same name as listed in + // `output_files` of the Command was found, but its target type was not a + // regular file, the server will return a FAILED_PRECONDITION. If the action + // does not produce the requested output, then that output will be omitted from + // the list. The server is free to arrange the output list as desired; clients + // MUST NOT assume that the output list is sorted. DEPRECATED as of v2.1. + // Servers that wish to be compatible with v2.0 API should still populate this + // field in addition to `output_symlinks`. OutputFileSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputFileSymlinks,omitempty"` - - // OutputFiles: The output files of the action. For each output file - // requested in the `output_files` or `output_paths` field of the - // Action, if the corresponding file existed after the action completed, - // a single entry will be present either in this field, or the - // `output_file_symlinks` field if the file was a symbolic link to - // another file (`output_symlinks` field after v2.1). If an output - // listed in `output_files` was found, but was a directory rather than a - // regular file, the server will return a FAILED_PRECONDITION. If the - // action does not produce the requested output, then that output will - // be omitted from the list. The server is free to arrange the output - // list as desired; clients MUST NOT assume that the output list is - // sorted. + // OutputFiles: The output files of the action. For each output file requested + // in the `output_files` or `output_paths` field of the Action, if the + // corresponding file existed after the action completed, a single entry will + // be present either in this field, or the `output_file_symlinks` field if the + // file was a symbolic link to another file (`output_symlinks` field after + // v2.1). If an output listed in `output_files` was found, but was a directory + // rather than a regular file, the server will return a FAILED_PRECONDITION. If + // the action does not produce the requested output, then that output will be + // omitted from the list. The server is free to arrange the output list as + // desired; clients MUST NOT assume that the output list is sorted. OutputFiles []*BuildBazelRemoteExecutionV2OutputFile `json:"outputFiles,omitempty"` - // OutputSymlinks: New in v2.1: this field will only be populated if the - // command `output_paths` field was used, and not the pre v2.1 - // `output_files` or `output_directories` fields. The output paths of - // the action that are symbolic links to other paths. Those may be links - // to other outputs, or inputs, or even absolute paths outside of the - // working directory, if the server supports - // SymlinkAbsolutePathStrategy.ALLOWED. A single entry for each output - // requested in `output_paths` field of the Action, if the corresponding - // path existed after the action completed and was a symbolic link. If - // the action does not produce a requested output, then that output will - // be omitted from the list. The server is free to arrange the output - // list as desired; clients MUST NOT assume that the output list is - // sorted. + // command `output_paths` field was used, and not the pre v2.1 `output_files` + // or `output_directories` fields. The output paths of the action that are + // symbolic links to other paths. Those may be links to other outputs, or + // inputs, or even absolute paths outside of the working directory, if the + // server supports SymlinkAbsolutePathStrategy.ALLOWED. A single entry for each + // output requested in `output_paths` field of the Action, if the corresponding + // path existed after the action completed and was a symbolic link. If the + // action does not produce a requested output, then that output will be omitted + // from the list. The server is free to arrange the output list as desired; + // clients MUST NOT assume that the output list is sorted. OutputSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputSymlinks,omitempty"` - - // StderrDigest: The digest for a blob containing the standard error of - // the action, which can be retrieved from the - // ContentAddressableStorage. + // StderrDigest: The digest for a blob containing the standard error of the + // action, which can be retrieved from the ContentAddressableStorage. StderrDigest *BuildBazelRemoteExecutionV2Digest `json:"stderrDigest,omitempty"` - - // StderrRaw: The standard error buffer of the action. The server SHOULD - // NOT inline stderr unless requested by the client in the - // GetActionResultRequest message. The server MAY omit inlining, even if - // requested, and MUST do so if inlining would cause the response to - // exceed message size limits. + // StderrRaw: The standard error buffer of the action. The server SHOULD NOT + // inline stderr unless requested by the client in the GetActionResultRequest + // message. The server MAY omit inlining, even if requested, and MUST do so if + // inlining would cause the response to exceed message size limits. StderrRaw string `json:"stderrRaw,omitempty"` - - // StdoutDigest: The digest for a blob containing the standard output of - // the action, which can be retrieved from the - // ContentAddressableStorage. + // StdoutDigest: The digest for a blob containing the standard output of the + // action, which can be retrieved from the ContentAddressableStorage. StdoutDigest *BuildBazelRemoteExecutionV2Digest `json:"stdoutDigest,omitempty"` - - // StdoutRaw: The standard output buffer of the action. The server - // SHOULD NOT inline stdout unless requested by the client in the - // GetActionResultRequest message. The server MAY omit inlining, even if - // requested, and MUST do so if inlining would cause the response to - // exceed message size limits. + // StdoutRaw: The standard output buffer of the action. The server SHOULD NOT + // inline stdout unless requested by the client in the GetActionResultRequest + // message. The server MAY omit inlining, even if requested, and MUST do so if + // inlining would cause the response to exceed message size limits. StdoutRaw string `json:"stdoutRaw,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ExecutionMetadata") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ExecutionMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ActionResult) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ActionResult) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ActionResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2Command: A `Command` is the actual command // executed by a worker running an Action and specifications of its -// environment. Except as otherwise required, the environment (such as -// which system libraries or binaries are available, and what -// filesystems are mounted where) is defined by and specific to the -// implementation of the remote execution API. +// environment. Except as otherwise required, the environment (such as which +// system libraries or binaries are available, and what filesystems are mounted +// where) is defined by and specific to the implementation of the remote +// execution API. type BuildBazelRemoteExecutionV2Command struct { - // Arguments: The arguments to the command. The first argument must be - // the path to the executable, which must be either a relative path, in - // which case it is evaluated with respect to the input root, or an - // absolute path. + // Arguments: The arguments to the command. The first argument must be the path + // to the executable, which must be either a relative path, in which case it is + // evaluated with respect to the input root, or an absolute path. Arguments []string `json:"arguments,omitempty"` - - // EnvironmentVariables: The environment variables to set when running - // the program. The worker may provide its own default environment - // variables; these defaults can be overridden using this field. - // Additional variables can also be specified. In order to ensure that - // equivalent Commands always hash to the same value, the environment - // variables MUST be lexicographically sorted by name. Sorting of - // strings is done by code point, equivalently, by the UTF-8 bytes. + // EnvironmentVariables: The environment variables to set when running the + // program. The worker may provide its own default environment variables; these + // defaults can be overridden using this field. Additional variables can also + // be specified. In order to ensure that equivalent Commands always hash to the + // same value, the environment variables MUST be lexicographically sorted by + // name. Sorting of strings is done by code point, equivalently, by the UTF-8 + // bytes. EnvironmentVariables []*BuildBazelRemoteExecutionV2CommandEnvironmentVariable `json:"environmentVariables,omitempty"` - - // OutputDirectories: A list of the output directories that the client - // expects to retrieve from the action. Only the listed directories will - // be returned (an entire directory structure will be returned as a Tree - // message digest, see OutputDirectory), as well as files listed in - // `output_files`. Other files or directories that may be created during - // command execution are discarded. The paths are relative to the - // working directory of the action execution. The paths are specified - // using a single forward slash (`/`) as a path separator, even if the - // execution platform natively uses a different separator. The path MUST - // NOT include a trailing slash, nor a leading slash, being a relative + // OutputDirectories: A list of the output directories that the client expects + // to retrieve from the action. Only the listed directories will be returned + // (an entire directory structure will be returned as a Tree message digest, + // see OutputDirectory), as well as files listed in `output_files`. Other files + // or directories that may be created during command execution are discarded. + // The paths are relative to the working directory of the action execution. The + // paths are specified using a single forward slash (`/`) as a path separator, + // even if the execution platform natively uses a different separator. The path + // MUST NOT include a trailing slash, nor a leading slash, being a relative // path. The special value of empty string is allowed, although not - // recommended, and can be used to capture the entire working directory - // tree, including inputs. In order to ensure consistent hashing of the - // same Action, the output paths MUST be sorted lexicographically by - // code point (or, equivalently, by UTF-8 bytes). An output directory - // cannot be duplicated or have the same path as any of the listed - // output files. An output directory is allowed to be a parent of - // another output directory. Directories leading up to the output - // directories (but not the output directories themselves) are created - // by the worker prior to execution, even if they are not explicitly - // part of the input root. DEPRECATED since 2.1: Use `output_paths` - // instead. + // recommended, and can be used to capture the entire working directory tree, + // including inputs. In order to ensure consistent hashing of the same Action, + // the output paths MUST be sorted lexicographically by code point (or, + // equivalently, by UTF-8 bytes). An output directory cannot be duplicated or + // have the same path as any of the listed output files. An output directory is + // allowed to be a parent of another output directory. Directories leading up + // to the output directories (but not the output directories themselves) are + // created by the worker prior to execution, even if they are not explicitly + // part of the input root. DEPRECATED since 2.1: Use `output_paths` instead. OutputDirectories []string `json:"outputDirectories,omitempty"` - - // OutputFiles: A list of the output files that the client expects to - // retrieve from the action. Only the listed files, as well as - // directories listed in `output_directories`, will be returned to the - // client as output. Other files or directories that may be created - // during command execution are discarded. The paths are relative to the - // working directory of the action execution. The paths are specified - // using a single forward slash (`/`) as a path separator, even if the - // execution platform natively uses a different separator. The path MUST - // NOT include a trailing slash, nor a leading slash, being a relative - // path. In order to ensure consistent hashing of the same Action, the - // output paths MUST be sorted lexicographically by code point (or, - // equivalently, by UTF-8 bytes). An output file cannot be duplicated, - // be a parent of another output file, or have the same path as any of - // the listed output directories. Directories leading up to the output - // files are created by the worker prior to execution, even if they are - // not explicitly part of the input root. DEPRECATED since v2.1: Use - // `output_paths` instead. + // OutputFiles: A list of the output files that the client expects to retrieve + // from the action. Only the listed files, as well as directories listed in + // `output_directories`, will be returned to the client as output. Other files + // or directories that may be created during command execution are discarded. + // The paths are relative to the working directory of the action execution. The + // paths are specified using a single forward slash (`/`) as a path separator, + // even if the execution platform natively uses a different separator. The path + // MUST NOT include a trailing slash, nor a leading slash, being a relative + // path. In order to ensure consistent hashing of the same Action, the output + // paths MUST be sorted lexicographically by code point (or, equivalently, by + // UTF-8 bytes). An output file cannot be duplicated, be a parent of another + // output file, or have the same path as any of the listed output directories. + // Directories leading up to the output files are created by the worker prior + // to execution, even if they are not explicitly part of the input root. + // DEPRECATED since v2.1: Use `output_paths` instead. OutputFiles []string `json:"outputFiles,omitempty"` - - // OutputNodeProperties: A list of keys for node properties the client - // expects to retrieve for output files and directories. Keys are either - // names of string-based NodeProperty or names of fields in - // NodeProperties. In order to ensure that equivalent `Action`s always - // hash to the same value, the node properties MUST be lexicographically - // sorted by name. Sorting of strings is done by code point, - // equivalently, by the UTF-8 bytes. The interpretation of string-based - // properties is server-dependent. If a property is not recognized by - // the server, the server will return an `INVALID_ARGUMENT`. + // OutputNodeProperties: A list of keys for node properties the client expects + // to retrieve for output files and directories. Keys are either names of + // string-based NodeProperty or names of fields in NodeProperties. In order to + // ensure that equivalent `Action`s always hash to the same value, the node + // properties MUST be lexicographically sorted by name. Sorting of strings is + // done by code point, equivalently, by the UTF-8 bytes. The interpretation of + // string-based properties is server-dependent. If a property is not recognized + // by the server, the server will return an `INVALID_ARGUMENT`. OutputNodeProperties []string `json:"outputNodeProperties,omitempty"` - - // OutputPaths: A list of the output paths that the client expects to - // retrieve from the action. Only the listed paths will be returned to - // the client as output. The type of the output (file or directory) is - // not specified, and will be determined by the server after action - // execution. If the resulting path is a file, it will be returned in an - // OutputFile) typed field. If the path is a directory, the entire - // directory structure will be returned as a Tree message digest, see - // OutputDirectory) Other files or directories that may be created - // during command execution are discarded. The paths are relative to the - // working directory of the action execution. The paths are specified - // using a single forward slash (`/`) as a path separator, even if the - // execution platform natively uses a different separator. The path MUST - // NOT include a trailing slash, nor a leading slash, being a relative - // path. In order to ensure consistent hashing of the same Action, the - // output paths MUST be deduplicated and sorted lexicographically by - // code point (or, equivalently, by UTF-8 bytes). Directories leading up - // to the output paths are created by the worker prior to execution, - // even if they are not explicitly part of the input root. New in v2.1: - // this field supersedes the DEPRECATED `output_files` and - // `output_directories` fields. If `output_paths` is used, - // `output_files` and `output_directories` will be ignored! + // OutputPaths: A list of the output paths that the client expects to retrieve + // from the action. Only the listed paths will be returned to the client as + // output. The type of the output (file or directory) is not specified, and + // will be determined by the server after action execution. If the resulting + // path is a file, it will be returned in an OutputFile) typed field. If the + // path is a directory, the entire directory structure will be returned as a + // Tree message digest, see OutputDirectory) Other files or directories that + // may be created during command execution are discarded. The paths are + // relative to the working directory of the action execution. The paths are + // specified using a single forward slash (`/`) as a path separator, even if + // the execution platform natively uses a different separator. The path MUST + // NOT include a trailing slash, nor a leading slash, being a relative path. In + // order to ensure consistent hashing of the same Action, the output paths MUST + // be deduplicated and sorted lexicographically by code point (or, + // equivalently, by UTF-8 bytes). Directories leading up to the output paths + // are created by the worker prior to execution, even if they are not + // explicitly part of the input root. New in v2.1: this field supersedes the + // DEPRECATED `output_files` and `output_directories` fields. If `output_paths` + // is used, `output_files` and `output_directories` will be ignored! OutputPaths []string `json:"outputPaths,omitempty"` - - // Platform: The platform requirements for the execution environment. - // The server MAY choose to execute the action on any worker satisfying - // the requirements, so the client SHOULD ensure that running the action - // on any such worker will have the same result. A detailed lexicon for - // this can be found in the accompanying platform.md. DEPRECATED as of - // v2.2: platform properties are now specified directly in the action. - // See documentation note in the Action for migration. + // Platform: The platform requirements for the execution environment. The + // server MAY choose to execute the action on any worker satisfying the + // requirements, so the client SHOULD ensure that running the action on any + // such worker will have the same result. A detailed lexicon for this can be + // found in the accompanying platform.md. DEPRECATED as of v2.2: platform + // properties are now specified directly in the action. See documentation note + // in the Action for migration. Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"` - - // WorkingDirectory: The working directory, relative to the input root, - // for the command to run in. It must be a directory which exists in the - // input tree. If it is left empty, then the action is run in the input - // root. + // WorkingDirectory: The working directory, relative to the input root, for the + // command to run in. It must be a directory which exists in the input tree. If + // it is left empty, then the action is run in the input root. WorkingDirectory string `json:"workingDirectory,omitempty"` - // ForceSendFields is a list of field names (e.g. "Arguments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Arguments") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Arguments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Command - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2CommandEnvironmentVariable: An @@ -563,198 +513,162 @@ func (s *BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) { type BuildBazelRemoteExecutionV2CommandEnvironmentVariable struct { // Name: The variable name. Name string `json:"name,omitempty"` - // Value: The variable value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2CommandEnvironmentVariable) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2CommandEnvironmentVariable) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2CommandEnvironmentVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2Digest: A content digest. A digest for a -// given blob consists of the size of the blob and its hash. The hash -// algorithm to use is defined by the server. The size is considered to -// be an integral part of the digest and cannot be separated. That is, -// even if the `hash` field is correctly specified but `size_bytes` is -// not, the server MUST reject the request. The reason for including the -// size in the digest is as follows: in a great many cases, the server -// needs to know the size of the blob it is about to work with prior to -// starting an operation with it, such as flattening Merkle tree -// structures or streaming it to a worker. Technically, the server could -// implement a separate metadata store, but this results in a -// significantly more complicated implementation as opposed to having -// the client specify the size up-front (or storing the size along with -// the digest in every message where digests are embedded). This does -// mean that the API leaks some implementation details of (what we -// consider to be) a reasonable server implementation, but we consider -// this to be a worthwhile tradeoff. When a `Digest` is used to refer to -// a proto message, it always refers to the message in binary encoded -// form. To ensure consistent hashing, clients and servers MUST ensure -// that they serialize messages according to the following rules, even -// if there are alternate valid encodings for the same message: * Fields -// are serialized in tag order. * There are no unknown fields. * There -// are no duplicate fields. * Fields are serialized according to the -// default semantics for their type. Most protocol buffer -// implementations will always follow these rules when serializing, but -// care should be taken to avoid shortcuts. For instance, concatenating -// two messages to merge them may produce duplicate fields. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2Digest: A content digest. A digest for a given +// blob consists of the size of the blob and its hash. The hash algorithm to +// use is defined by the server. The size is considered to be an integral part +// of the digest and cannot be separated. That is, even if the `hash` field is +// correctly specified but `size_bytes` is not, the server MUST reject the +// request. The reason for including the size in the digest is as follows: in a +// great many cases, the server needs to know the size of the blob it is about +// to work with prior to starting an operation with it, such as flattening +// Merkle tree structures or streaming it to a worker. Technically, the server +// could implement a separate metadata store, but this results in a +// significantly more complicated implementation as opposed to having the +// client specify the size up-front (or storing the size along with the digest +// in every message where digests are embedded). This does mean that the API +// leaks some implementation details of (what we consider to be) a reasonable +// server implementation, but we consider this to be a worthwhile tradeoff. +// When a `Digest` is used to refer to a proto message, it always refers to the +// message in binary encoded form. To ensure consistent hashing, clients and +// servers MUST ensure that they serialize messages according to the following +// rules, even if there are alternate valid encodings for the same message: * +// Fields are serialized in tag order. * There are no unknown fields. * There +// are no duplicate fields. * Fields are serialized according to the default +// semantics for their type. Most protocol buffer implementations will always +// follow these rules when serializing, but care should be taken to avoid +// shortcuts. For instance, concatenating two messages to merge them may +// produce duplicate fields. type BuildBazelRemoteExecutionV2Digest struct { - // Hash: The hash. In the case of SHA-256, it will always be a lowercase - // hex string exactly 64 characters long. + // Hash: The hash. In the case of SHA-256, it will always be a lowercase hex + // string exactly 64 characters long. Hash string `json:"hash,omitempty"` - // SizeBytes: The size of the blob, in bytes. SizeBytes int64 `json:"sizeBytes,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Hash") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hash") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Hash") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Hash") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Digest) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Digest) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Digest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2Directory: A `Directory` represents a -// directory node in a file tree, containing zero or more children -// FileNodes, DirectoryNodes and SymlinkNodes. Each `Node` contains its -// name in the directory, either the digest of its content (either a -// file blob or a `Directory` proto) or a symlink target, as well as -// possibly some metadata about the file or directory. In order to -// ensure that two equivalent directory trees hash to the same value, -// the following restrictions MUST be obeyed when constructing a a -// `Directory`: * Every child in the directory must have a path of -// exactly one segment. Multiple levels of directory hierarchy may not -// be collapsed. * Each child in the directory must have a unique path -// segment (file name). Note that while the API itself is -// case-sensitive, the environment where the Action is executed may or -// may not be case-sensitive. That is, it is legal to call the API with -// a Directory that has both "Foo" and "foo" as children, but the Action -// may be rejected by the remote system upon execution. * The files, -// directories and symlinks in the directory must each be sorted in -// lexicographical order by path. The path strings must be sorted by -// code point, equivalently, by UTF-8 bytes. * The NodeProperties of -// files, directories, and symlinks must be sorted in lexicographical -// order by property name. A `Directory` that obeys the restrictions is -// said to be in canonical form. As an example, the following could be -// used for a file named `bar` and a directory named `foo` with an -// executable file named `baz` (hashes shortened for readability): -// ```json // (Directory proto) { files: [ { name: "bar", digest: { -// hash: "4a73bc9d03...", size: 65534 }, node_properties: [ { "name": -// "MTime", "value": "2017-01-15T01:30:15.01Z" } ] } ], directories: [ { -// name: "foo", digest: { hash: "4cf2eda940...", size: 43 } } ] } // -// (Directory proto with hash "4cf2eda940..." and size 43) { files: [ { -// name: "baz", digest: { hash: "b2c941073e...", size: 1294, }, -// is_executable: true } ] } ``` + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2Directory: A `Directory` represents a directory +// node in a file tree, containing zero or more children FileNodes, +// DirectoryNodes and SymlinkNodes. Each `Node` contains its name in the +// directory, either the digest of its content (either a file blob or a +// `Directory` proto) or a symlink target, as well as possibly some metadata +// about the file or directory. In order to ensure that two equivalent +// directory trees hash to the same value, the following restrictions MUST be +// obeyed when constructing a a `Directory`: * Every child in the directory +// must have a path of exactly one segment. Multiple levels of directory +// hierarchy may not be collapsed. * Each child in the directory must have a +// unique path segment (file name). Note that while the API itself is +// case-sensitive, the environment where the Action is executed may or may not +// be case-sensitive. That is, it is legal to call the API with a Directory +// that has both "Foo" and "foo" as children, but the Action may be rejected by +// the remote system upon execution. * The files, directories and symlinks in +// the directory must each be sorted in lexicographical order by path. The path +// strings must be sorted by code point, equivalently, by UTF-8 bytes. * The +// NodeProperties of files, directories, and symlinks must be sorted in +// lexicographical order by property name. A `Directory` that obeys the +// restrictions is said to be in canonical form. As an example, the following +// could be used for a file named `bar` and a directory named `foo` with an +// executable file named `baz` (hashes shortened for readability): ```json // +// (Directory proto) { files: [ { name: "bar", digest: { hash: "4a73bc9d03...", +// size: 65534 }, node_properties: [ { "name": "MTime", "value": +// "2017-01-15T01:30:15.01Z" } ] } ], directories: [ { name: "foo", digest: { +// hash: "4cf2eda940...", size: 43 } } ] } // (Directory proto with hash +// "4cf2eda940..." and size 43) { files: [ { name: "baz", digest: { hash: +// "b2c941073e...", size: 1294, }, is_executable: true } ] } ``` type BuildBazelRemoteExecutionV2Directory struct { // Directories: The subdirectories in the directory. Directories []*BuildBazelRemoteExecutionV2DirectoryNode `json:"directories,omitempty"` - // Files: The files in the directory. - Files []*BuildBazelRemoteExecutionV2FileNode `json:"files,omitempty"` - + Files []*BuildBazelRemoteExecutionV2FileNode `json:"files,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - // Symlinks: The symlinks in the directory. Symlinks []*BuildBazelRemoteExecutionV2SymlinkNode `json:"symlinks,omitempty"` - // ForceSendFields is a list of field names (e.g. "Directories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Directory) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Directory) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Directory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2DirectoryNode: A `DirectoryNode` -// represents a child of a Directory which is itself a `Directory` and -// its associated metadata. +// BuildBazelRemoteExecutionV2DirectoryNode: A `DirectoryNode` represents a +// child of a Directory which is itself a `Directory` and its associated +// metadata. type BuildBazelRemoteExecutionV2DirectoryNode struct { - // Digest: The digest of the Directory object represented. See Digest - // for information about how to take the digest of a proto message. + // Digest: The digest of the Directory object represented. See Digest for + // information about how to take the digest of a proto message. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // Name: The name of the directory. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2DirectoryNode) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2DirectoryNode) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2DirectoryNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ExecuteOperationMetadata: Metadata about -// an ongoing execution, which will be contained in the metadata field -// of the Operation. +// BuildBazelRemoteExecutionV2ExecuteOperationMetadata: Metadata about an +// ongoing execution, which will be contained in the metadata field of the +// Operation. type BuildBazelRemoteExecutionV2ExecuteOperationMetadata struct { // ActionDigest: The digest of the Action being executed. ActionDigest *BuildBazelRemoteExecutionV2Digest `json:"actionDigest,omitempty"` - // Stage: The current stage of execution. // // Possible values: @@ -764,875 +678,682 @@ type BuildBazelRemoteExecutionV2ExecuteOperationMetadata struct { // "EXECUTING" - Currently being executed by a worker. // "COMPLETED" - Finished execution. Stage string `json:"stage,omitempty"` - // StderrStreamName: If set, the client can use this resource name with - // ByteStream.Read to stream the standard error from the endpoint - // hosting streamed responses. + // ByteStream.Read to stream the standard error from the endpoint hosting + // streamed responses. StderrStreamName string `json:"stderrStreamName,omitempty"` - // StdoutStreamName: If set, the client can use this resource name with - // ByteStream.Read to stream the standard output from the endpoint - // hosting streamed responses. + // ByteStream.Read to stream the standard output from the endpoint hosting + // streamed responses. StdoutStreamName string `json:"stdoutStreamName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionDigest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionDigest") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionDigest") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecuteOperationMetadata) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecuteOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecuteOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2ExecuteResponse: The response message for -// Execution.Execute, which will be contained in the response field of -// the Operation. +// Execution.Execute, which will be contained in the response field of the +// Operation. type BuildBazelRemoteExecutionV2ExecuteResponse struct { - // CachedResult: True if the result was served from cache, false if it - // was executed. + // CachedResult: True if the result was served from cache, false if it was + // executed. CachedResult bool `json:"cachedResult,omitempty"` - - // Message: Freeform informational message with details on the execution - // of the action that may be displayed to the user upon failure or when - // requested explicitly. + // Message: Freeform informational message with details on the execution of the + // action that may be displayed to the user upon failure or when requested + // explicitly. Message string `json:"message,omitempty"` - // Result: The result of the action. Result *BuildBazelRemoteExecutionV2ActionResult `json:"result,omitempty"` - - // ServerLogs: An optional list of additional log outputs the server - // wishes to provide. A server can use this to return execution-specific - // logs however it wishes. This is intended primarily to make it easier - // for users to debug issues that may be outside of the actual job - // execution, such as by identifying the worker executing the action or - // by providing logs from the worker's setup phase. The keys SHOULD be - // human readable so that a client can display them to a user. + // ServerLogs: An optional list of additional log outputs the server wishes to + // provide. A server can use this to return execution-specific logs however it + // wishes. This is intended primarily to make it easier for users to debug + // issues that may be outside of the actual job execution, such as by + // identifying the worker executing the action or by providing logs from the + // worker's setup phase. The keys SHOULD be human readable so that a client can + // display them to a user. ServerLogs map[string]BuildBazelRemoteExecutionV2LogFile `json:"serverLogs,omitempty"` - - // Status: If the status has a code other than `OK`, it indicates that - // the action did not finish execution. For example, if the operation - // times out during execution, the status will have a - // `DEADLINE_EXCEEDED` code. Servers MUST use this field for errors in - // execution, rather than the error field on the `Operation` object. If - // the status code is other than `OK`, then the result MUST NOT be - // cached. For an error status, the `result` field is optional; the - // server may populate the output-, stdout-, and stderr-related fields - // if it has any information available, such as the stdout and stderr of + // Status: If the status has a code other than `OK`, it indicates that the + // action did not finish execution. For example, if the operation times out + // during execution, the status will have a `DEADLINE_EXCEEDED` code. Servers + // MUST use this field for errors in execution, rather than the error field on + // the `Operation` object. If the status code is other than `OK`, then the + // result MUST NOT be cached. For an error status, the `result` field is + // optional; the server may populate the output-, stdout-, and stderr-related + // fields if it has any information available, such as the stdout and stderr of // a timed-out action. Status *GoogleRpcStatus `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "CachedResult") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CachedResult") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CachedResult") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecuteResponse) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecuteResponse) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecuteResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ExecutedActionMetadata: -// ExecutedActionMetadata contains details about a completed execution. +// BuildBazelRemoteExecutionV2ExecutedActionMetadata: ExecutedActionMetadata +// contains details about a completed execution. type BuildBazelRemoteExecutionV2ExecutedActionMetadata struct { - // AuxiliaryMetadata: Details that are specific to the kind of worker - // used. For example, on POSIX-like systems this could contain a message - // with getrusage(2) statistics. + // AuxiliaryMetadata: Details that are specific to the kind of worker used. For + // example, on POSIX-like systems this could contain a message with + // getrusage(2) statistics. AuxiliaryMetadata []googleapi.RawMessage `json:"auxiliaryMetadata,omitempty"` - - // ExecutionCompletedTimestamp: When the worker completed executing the - // action command. + // ExecutionCompletedTimestamp: When the worker completed executing the action + // command. ExecutionCompletedTimestamp string `json:"executionCompletedTimestamp,omitempty"` - // ExecutionStartTimestamp: When the worker started executing the action // command. ExecutionStartTimestamp string `json:"executionStartTimestamp,omitempty"` - - // InputFetchCompletedTimestamp: When the worker finished fetching - // action inputs. - InputFetchCompletedTimestamp string `json:"inputFetchCompletedTimestamp,omitempty"` - - // InputFetchStartTimestamp: When the worker started fetching action + // InputFetchCompletedTimestamp: When the worker finished fetching action // inputs. + InputFetchCompletedTimestamp string `json:"inputFetchCompletedTimestamp,omitempty"` + // InputFetchStartTimestamp: When the worker started fetching action inputs. InputFetchStartTimestamp string `json:"inputFetchStartTimestamp,omitempty"` - - // OutputUploadCompletedTimestamp: When the worker finished uploading - // action outputs. + // OutputUploadCompletedTimestamp: When the worker finished uploading action + // outputs. OutputUploadCompletedTimestamp string `json:"outputUploadCompletedTimestamp,omitempty"` - // OutputUploadStartTimestamp: When the worker started uploading action // outputs. OutputUploadStartTimestamp string `json:"outputUploadStartTimestamp,omitempty"` - // QueuedTimestamp: When was the action added to the queue. QueuedTimestamp string `json:"queuedTimestamp,omitempty"` - // Worker: The name of the worker which ran the execution. Worker string `json:"worker,omitempty"` - - // WorkerCompletedTimestamp: When the worker completed the action, - // including all stages. + // WorkerCompletedTimestamp: When the worker completed the action, including + // all stages. WorkerCompletedTimestamp string `json:"workerCompletedTimestamp,omitempty"` - // WorkerStartTimestamp: When the worker received the action. WorkerStartTimestamp string `json:"workerStartTimestamp,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AuxiliaryMetadata") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AuxiliaryMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuxiliaryMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuxiliaryMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecutedActionMetadata) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecutedActionMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecutedActionMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2FileNode: A `FileNode` represents a single -// file and associated metadata. +// BuildBazelRemoteExecutionV2FileNode: A `FileNode` represents a single file +// and associated metadata. type BuildBazelRemoteExecutionV2FileNode struct { // Digest: The digest of the file's content. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // IsExecutable: True if file is executable, false otherwise. IsExecutable bool `json:"isExecutable,omitempty"` - // Name: The name of the file. - Name string `json:"name,omitempty"` - + Name string `json:"name,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2FileNode) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2FileNode) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2FileNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2LogFile: A `LogFile` is a log stored in -// the CAS. +// BuildBazelRemoteExecutionV2LogFile: A `LogFile` is a log stored in the CAS. type BuildBazelRemoteExecutionV2LogFile struct { // Digest: The digest of the log contents. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - - // HumanReadable: This is a hint as to the purpose of the log, and is - // set to true if the log is human-readable text that can be usefully - // displayed to a user, and false otherwise. For instance, if a - // command-line client wishes to print the server logs to the terminal - // for a failed action, this allows it to avoid displaying a binary - // file. + // HumanReadable: This is a hint as to the purpose of the log, and is set to + // true if the log is human-readable text that can be usefully displayed to a + // user, and false otherwise. For instance, if a command-line client wishes to + // print the server logs to the terminal for a failed action, this allows it to + // avoid displaying a binary file. HumanReadable bool `json:"humanReadable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2LogFile) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2LogFile) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2LogFile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2NodeProperties: Node properties for -// FileNodes, DirectoryNodes, and SymlinkNodes. The server is -// responsible for specifying the properties that it accepts. +// BuildBazelRemoteExecutionV2NodeProperties: Node properties for FileNodes, +// DirectoryNodes, and SymlinkNodes. The server is responsible for specifying +// the properties that it accepts. type BuildBazelRemoteExecutionV2NodeProperties struct { // Mtime: The file's last modification timestamp. Mtime string `json:"mtime,omitempty"` - // Properties: A list of string-based NodeProperties. Properties []*BuildBazelRemoteExecutionV2NodeProperty `json:"properties,omitempty"` - // UnixMode: The UNIX file mode, e.g., 0755. UnixMode int64 `json:"unixMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Mtime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Mtime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Mtime") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2NodeProperties) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2NodeProperties) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2NodeProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2NodeProperty: A single property for -// FileNodes, DirectoryNodes, and SymlinkNodes. The server is -// responsible for specifying the property `name`s that it accepts. If -// permitted by the server, the same `name` may occur multiple times. +// BuildBazelRemoteExecutionV2NodeProperty: A single property for FileNodes, +// DirectoryNodes, and SymlinkNodes. The server is responsible for specifying +// the property `name`s that it accepts. If permitted by the server, the same +// `name` may occur multiple times. type BuildBazelRemoteExecutionV2NodeProperty struct { // Name: The property name. Name string `json:"name,omitempty"` - // Value: The property value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2NodeProperty) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2NodeProperty) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2NodeProperty - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2OutputDirectory: An `OutputDirectory` is -// the output in an `ActionResult` corresponding to a directory's full -// contents rather than a single file. +// BuildBazelRemoteExecutionV2OutputDirectory: An `OutputDirectory` is the +// output in an `ActionResult` corresponding to a directory's full contents +// rather than a single file. type BuildBazelRemoteExecutionV2OutputDirectory struct { - // Path: The full path of the directory relative to the working - // directory. The path separator is a forward slash `/`. Since this is a - // relative path, it MUST NOT begin with a leading forward slash. The - // empty string value is allowed, and it denotes the entire working - // directory. + // Path: The full path of the directory relative to the working directory. The + // path separator is a forward slash `/`. Since this is a relative path, it + // MUST NOT begin with a leading forward slash. The empty string value is + // allowed, and it denotes the entire working directory. Path string `json:"path,omitempty"` - - // TreeDigest: The digest of the encoded Tree proto containing the - // directory's contents. + // TreeDigest: The digest of the encoded Tree proto containing the directory's + // contents. TreeDigest *BuildBazelRemoteExecutionV2Digest `json:"treeDigest,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Path") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Path") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Path") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Path") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2OutputDirectory) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2OutputDirectory) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2OutputDirectory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2OutputFile: An `OutputFile` is similar to -// a FileNode, but it is used as an output in an `ActionResult`. It -// allows a full file path rather than only a name. +// BuildBazelRemoteExecutionV2OutputFile: An `OutputFile` is similar to a +// FileNode, but it is used as an output in an `ActionResult`. It allows a full +// file path rather than only a name. type BuildBazelRemoteExecutionV2OutputFile struct { - // Contents: The contents of the file if inlining was requested. The - // server SHOULD NOT inline file contents unless requested by the client - // in the GetActionResultRequest message. The server MAY omit inlining, - // even if requested, and MUST do so if inlining would cause the - // response to exceed message size limits. + // Contents: The contents of the file if inlining was requested. The server + // SHOULD NOT inline file contents unless requested by the client in the + // GetActionResultRequest message. The server MAY omit inlining, even if + // requested, and MUST do so if inlining would cause the response to exceed + // message size limits. Contents string `json:"contents,omitempty"` - // Digest: The digest of the file's content. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // IsExecutable: True if file is executable, false otherwise. - IsExecutable bool `json:"isExecutable,omitempty"` - + IsExecutable bool `json:"isExecutable,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - - // Path: The full path of the file relative to the working directory, - // including the filename. The path separator is a forward slash `/`. - // Since this is a relative path, it MUST NOT begin with a leading - // forward slash. + // Path: The full path of the file relative to the working directory, including + // the filename. The path separator is a forward slash `/`. Since this is a + // relative path, it MUST NOT begin with a leading forward slash. Path string `json:"path,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2OutputFile) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2OutputFile) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2OutputFile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2OutputSymlink: An `OutputSymlink` is -// similar to a Symlink, but it is used as an output in an -// `ActionResult`. `OutputSymlink` is binary-compatible with -// `SymlinkNode`. +// BuildBazelRemoteExecutionV2OutputSymlink: An `OutputSymlink` is similar to a +// Symlink, but it is used as an output in an `ActionResult`. `OutputSymlink` +// is binary-compatible with `SymlinkNode`. type BuildBazelRemoteExecutionV2OutputSymlink struct { NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - // Path: The full path of the symlink relative to the working directory, - // including the filename. The path separator is a forward slash `/`. - // Since this is a relative path, it MUST NOT begin with a leading - // forward slash. + // including the filename. The path separator is a forward slash `/`. Since + // this is a relative path, it MUST NOT begin with a leading forward slash. Path string `json:"path,omitempty"` - - // Target: The target path of the symlink. The path separator is a - // forward slash `/`. The target path can be relative to the parent - // directory of the symlink or it can be an absolute path starting with - // `/`. Support for absolute paths can be checked using the Capabilities - // API. `..` components are allowed anywhere in the target path. + // Target: The target path of the symlink. The path separator is a forward + // slash `/`. The target path can be relative to the parent directory of the + // symlink or it can be an absolute path starting with `/`. Support for + // absolute paths can be checked using the Capabilities API. `..` components + // are allowed anywhere in the target path. Target string `json:"target,omitempty"` - // ForceSendFields is a list of field names (e.g. "NodeProperties") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NodeProperties") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NodeProperties") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2OutputSymlink) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2OutputSymlink) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2OutputSymlink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2Platform: A `Platform` is a set of -// requirements, such as hardware, operating system, or compiler -// toolchain, for an Action's execution environment. A `Platform` is -// represented as a series of key-value pairs representing the -// properties that are required of the platform. +// BuildBazelRemoteExecutionV2Platform: A `Platform` is a set of requirements, +// such as hardware, operating system, or compiler toolchain, for an Action's +// execution environment. A `Platform` is represented as a series of key-value +// pairs representing the properties that are required of the platform. type BuildBazelRemoteExecutionV2Platform struct { - // Properties: The properties that make up this platform. In order to - // ensure that equivalent `Platform`s always hash to the same value, the - // properties MUST be lexicographically sorted by name, and then by - // value. Sorting of strings is done by code point, equivalently, by the - // UTF-8 bytes. + // Properties: The properties that make up this platform. In order to ensure + // that equivalent `Platform`s always hash to the same value, the properties + // MUST be lexicographically sorted by name, and then by value. Sorting of + // strings is done by code point, equivalently, by the UTF-8 bytes. Properties []*BuildBazelRemoteExecutionV2PlatformProperty `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "Properties") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Properties") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Properties") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Platform) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Platform) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Platform - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2PlatformProperty: A single property for -// the environment. The server is responsible for specifying the -// property `name`s that it accepts. If an unknown `name` is provided in -// the requirements for an Action, the server SHOULD reject the -// execution request. If permitted by the server, the same `name` may -// occur multiple times. The server is also responsible for specifying -// the interpretation of property `value`s. For instance, a property -// describing how much RAM must be available may be interpreted as -// allowing a worker with 16GB to fulfill a request for 8GB, while a -// property describing the OS environment on which the action must be -// performed may require an exact match with the worker's OS. The server -// MAY use the `value` of one or more properties to determine how it -// sets up the execution environment, such as by making specific system -// files available to the worker. Both names and values are typically -// case-sensitive. Note that the platform is implicitly part of the -// action digest, so even tiny changes in the names or values (like -// changing case) may result in different action cache entries. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2PlatformProperty: A single property for the +// environment. The server is responsible for specifying the property `name`s +// that it accepts. If an unknown `name` is provided in the requirements for an +// Action, the server SHOULD reject the execution request. If permitted by the +// server, the same `name` may occur multiple times. The server is also +// responsible for specifying the interpretation of property `value`s. For +// instance, a property describing how much RAM must be available may be +// interpreted as allowing a worker with 16GB to fulfill a request for 8GB, +// while a property describing the OS environment on which the action must be +// performed may require an exact match with the worker's OS. The server MAY +// use the `value` of one or more properties to determine how it sets up the +// execution environment, such as by making specific system files available to +// the worker. Both names and values are typically case-sensitive. Note that +// the platform is implicitly part of the action digest, so even tiny changes +// in the names or values (like changing case) may result in different action +// cache entries. type BuildBazelRemoteExecutionV2PlatformProperty struct { // Name: The property name. Name string `json:"name,omitempty"` - // Value: The property value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2PlatformProperty) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2PlatformProperty) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2PlatformProperty - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2RequestMetadata: An optional Metadata to -// attach to any RPC request to tell the server about an external -// context of the request. The server may use this for logging or other -// purposes. To use it, the client attaches the header to the call using -// the canonical proto serialization: * name: -// `build.bazel.remote.execution.v2.requestmetadata-bin` * contents: the -// base64 encoded binary `RequestMetadata` message. Note: the gRPC -// library serializes binary headers encoded in base 64 by default + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2RequestMetadata: An optional Metadata to attach +// to any RPC request to tell the server about an external context of the +// request. The server may use this for logging or other purposes. To use it, +// the client attaches the header to the call using the canonical proto +// serialization: * name: `build.bazel.remote.execution.v2.requestmetadata-bin` +// * contents: the base64 encoded binary `RequestMetadata` message. Note: the +// gRPC library serializes binary headers encoded in base 64 by default // (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests). -// Therefore, if the gRPC library is used to pass/retrieve this -// metadata, the user may ignore the base64 encoding and assume it is -// simply serialized as a binary message. +// Therefore, if the gRPC library is used to pass/retrieve this metadata, the +// user may ignore the base64 encoding and assume it is simply serialized as a +// binary message. type BuildBazelRemoteExecutionV2RequestMetadata struct { - // ActionId: An identifier that ties multiple requests to the same - // action. For example, multiple requests to the CAS, Action Cache, and - // Execution API are used in order to compile foo.cc. + // ActionId: An identifier that ties multiple requests to the same action. For + // example, multiple requests to the CAS, Action Cache, and Execution API are + // used in order to compile foo.cc. ActionId string `json:"actionId,omitempty"` - - // ActionMnemonic: A brief description of the kind of action, for - // example, CppCompile or GoLink. There is no standard agreed set of - // values for this, and they are expected to vary between different - // client tools. + // ActionMnemonic: A brief description of the kind of action, for example, + // CppCompile or GoLink. There is no standard agreed set of values for this, + // and they are expected to vary between different client tools. ActionMnemonic string `json:"actionMnemonic,omitempty"` - - // ConfigurationId: An identifier for the configuration in which the - // target was built, e.g. for differentiating building host tools or - // different target platforms. There is no expectation that this value - // will have any particular structure, or equality across invocations, - // though some client tools may offer these guarantees. + // ConfigurationId: An identifier for the configuration in which the target was + // built, e.g. for differentiating building host tools or different target + // platforms. There is no expectation that this value will have any particular + // structure, or equality across invocations, though some client tools may + // offer these guarantees. ConfigurationId string `json:"configurationId,omitempty"` - - // CorrelatedInvocationsId: An identifier to tie multiple tool - // invocations together. For example, runs of foo_test, bar_test and - // baz_test on a post-submit of a given patch. + // CorrelatedInvocationsId: An identifier to tie multiple tool invocations + // together. For example, runs of foo_test, bar_test and baz_test on a + // post-submit of a given patch. CorrelatedInvocationsId string `json:"correlatedInvocationsId,omitempty"` - // TargetId: An identifier for the target which produced this action. No - // guarantees are made around how many actions may relate to a single - // target. + // guarantees are made around how many actions may relate to a single target. TargetId string `json:"targetId,omitempty"` - // ToolDetails: The details for the tool invoking the requests. ToolDetails *BuildBazelRemoteExecutionV2ToolDetails `json:"toolDetails,omitempty"` - - // ToolInvocationId: An identifier that ties multiple actions together - // to a final result. For example, multiple actions are required to - // build and run foo_test. + // ToolInvocationId: An identifier that ties multiple actions together to a + // final result. For example, multiple actions are required to build and run + // foo_test. ToolInvocationId string `json:"toolInvocationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2RequestMetadata) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2RequestMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2RequestMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2SymlinkNode: A `SymlinkNode` represents a // symbolic link. type BuildBazelRemoteExecutionV2SymlinkNode struct { // Name: The name of the symlink. - Name string `json:"name,omitempty"` - + Name string `json:"name,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - - // Target: The target path of the symlink. The path separator is a - // forward slash `/`. The target path can be relative to the parent - // directory of the symlink or it can be an absolute path starting with - // `/`. Support for absolute paths can be checked using the Capabilities - // API. `..` components are allowed anywhere in the target path as - // logical canonicalization may lead to different behavior in the - // presence of directory symlinks (e.g. `foo/../bar` may not be the same - // as `bar`). To reduce potential cache misses, canonicalization is - // still recommended where this is possible without impacting - // correctness. + // Target: The target path of the symlink. The path separator is a forward + // slash `/`. The target path can be relative to the parent directory of the + // symlink or it can be an absolute path starting with `/`. Support for + // absolute paths can be checked using the Capabilities API. `..` components + // are allowed anywhere in the target path as logical canonicalization may lead + // to different behavior in the presence of directory symlinks (e.g. + // `foo/../bar` may not be the same as `bar`). To reduce potential cache + // misses, canonicalization is still recommended where this is possible without + // impacting correctness. Target string `json:"target,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2SymlinkNode) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2SymlinkNode) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2SymlinkNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ToolDetails: Details for the tool used to -// call the API. +// BuildBazelRemoteExecutionV2ToolDetails: Details for the tool used to call +// the API. type BuildBazelRemoteExecutionV2ToolDetails struct { // ToolName: Name of the tool, e.g. bazel. ToolName string `json:"toolName,omitempty"` - // ToolVersion: Version of the tool used for the request, e.g. 5.0.3. ToolVersion string `json:"toolVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "ToolName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ToolName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ToolName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ToolDetails) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ToolDetails) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ToolDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2Tree: A `Tree` contains all the Directory -// protos in a single directory Merkle tree, compressed into one -// message. +// BuildBazelRemoteExecutionV2Tree: A `Tree` contains all the Directory protos +// in a single directory Merkle tree, compressed into one message. type BuildBazelRemoteExecutionV2Tree struct { - // Children: All the child directories: the directories referred to by - // the root and, recursively, all its children. In order to reconstruct - // the directory tree, the client must take the digests of each of the - // child directories and then build up a tree starting from the `root`. + // Children: All the child directories: the directories referred to by the root + // and, recursively, all its children. In order to reconstruct the directory + // tree, the client must take the digests of each of the child directories and + // then build up a tree starting from the `root`. Children []*BuildBazelRemoteExecutionV2Directory `json:"children,omitempty"` - // Root: The root directory in the tree. Root *BuildBazelRemoteExecutionV2Directory `json:"root,omitempty"` - // ForceSendFields is a list of field names (e.g. "Children") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Children") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Children") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Tree) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Tree) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Tree - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildbotCommandDurations: CommandDuration -// contains the various duration metrics tracked when a bot performs a -// command. +// GoogleDevtoolsRemotebuildbotCommandDurations: CommandDuration contains the +// various duration metrics tracked when a bot performs a command. type GoogleDevtoolsRemotebuildbotCommandDurations struct { // CasRelease: The time spent to release the CAS blobs used by the task. CasRelease string `json:"casRelease,omitempty"` - - // CmWaitForAssignment: The time spent waiting for Container Manager to - // assign an asynchronous container for execution. + // CmWaitForAssignment: The time spent waiting for Container Manager to assign + // an asynchronous container for execution. CmWaitForAssignment string `json:"cmWaitForAssignment,omitempty"` - - // DockerPrep: The time spent preparing the command to be run in a - // Docker container (includes pulling the Docker image, if necessary). + // DockerPrep: The time spent preparing the command to be run in a Docker + // container (includes pulling the Docker image, if necessary). DockerPrep string `json:"dockerPrep,omitempty"` - // DockerPrepStartTime: The timestamp when docker preparation begins. DockerPrepStartTime string `json:"dockerPrepStartTime,omitempty"` - - // Download: The time spent downloading the input files and constructing - // the working directory. + // Download: The time spent downloading the input files and constructing the + // working directory. Download string `json:"download,omitempty"` - - // DownloadStartTime: The timestamp when downloading the input files - // begins. + // DownloadStartTime: The timestamp when downloading the input files begins. DownloadStartTime string `json:"downloadStartTime,omitempty"` - // ExecStartTime: The timestamp when execution begins. ExecStartTime string `json:"execStartTime,omitempty"` - - // Execution: The time spent executing the command (i.e., doing useful - // work). + // Execution: The time spent executing the command (i.e., doing useful work). Execution string `json:"execution,omitempty"` - // IsoPrepDone: The timestamp when preparation is done and bot starts // downloading files. IsoPrepDone string `json:"isoPrepDone,omitempty"` - // Overall: The time spent completing the command, in total. Overall string `json:"overall,omitempty"` - // Stdout: The time spent uploading the stdout logs. Stdout string `json:"stdout,omitempty"` - // Upload: The time spent uploading the output files. Upload string `json:"upload,omitempty"` - - // UploadStartTime: The timestamp when uploading the output files - // begins. + // UploadStartTime: The timestamp when uploading the output files begins. UploadStartTime string `json:"uploadStartTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CasRelease") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CasRelease") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CasRelease") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotCommandDurations) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotCommandDurations) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotCommandDurations - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildbotCommandEvents: CommandEvents contains -// counters for the number of warnings and errors that occurred during -// the execution of a command. +// GoogleDevtoolsRemotebuildbotCommandEvents: CommandEvents contains counters +// for the number of warnings and errors that occurred during the execution of +// a command. type GoogleDevtoolsRemotebuildbotCommandEvents struct { - // CmUsage: Indicates if and how Container Manager is being used for - // task execution. + // CmUsage: Indicates if and how Container Manager is being used for task + // execution. // // Possible values: - // "CONFIG_NONE" - Container Manager is disabled or not running for - // this execution. - // "CONFIG_MATCH" - Container Manager is enabled and there was a - // matching container available for use during execution. + // "CONFIG_NONE" - Container Manager is disabled or not running for this + // execution. + // "CONFIG_MATCH" - Container Manager is enabled and there was a matching + // container available for use during execution. // "CONFIG_MISMATCH" - Container Manager is enabled, but there was no // matching container available for execution. CmUsage string `json:"cmUsage,omitempty"` - - // DockerCacheHit: Indicates whether we are using a cached Docker image - // (true) or had to pull the Docker image (false) for this command. + // DockerCacheHit: Indicates whether we are using a cached Docker image (true) + // or had to pull the Docker image (false) for this command. DockerCacheHit bool `json:"dockerCacheHit,omitempty"` - // DockerImageName: Docker Image name. DockerImageName string `json:"dockerImageName,omitempty"` - // InputCacheMiss: The input cache miss ratio. InputCacheMiss float64 `json:"inputCacheMiss,omitempty"` - // NumErrors: The number of errors reported. NumErrors uint64 `json:"numErrors,omitempty,string"` - // NumWarnings: The number of warnings reported. NumWarnings uint64 `json:"numWarnings,omitempty,string"` - - // OutputLocation: Indicates whether output files and/or output - // directories were found relative to the execution root or to the user - // provided work directory or both or none. + // OutputLocation: Indicates whether output files and/or output directories + // were found relative to the execution root or to the user provided work + // directory or both or none. // // Possible values: - // "LOCATION_UNDEFINED" - Location is set to LOCATION_UNDEFINED for - // tasks where the working directorty is not specified or is identical - // to the execution root directory. + // "LOCATION_UNDEFINED" - Location is set to LOCATION_UNDEFINED for tasks + // where the working directorty is not specified or is identical to the + // execution root directory. // "LOCATION_NONE" - No output files or directories were found neither // relative to the execution root directory nor relative to the working // directory. - // "LOCATION_EXEC_ROOT_RELATIVE" - Output files or directories were - // found relative to the execution root directory but not relative to - // the working directory. - // "LOCATION_WORKING_DIR_RELATIVE" - Output files or directories were - // found relative to the working directory but not relative to the - // execution root directory. + // "LOCATION_EXEC_ROOT_RELATIVE" - Output files or directories were found + // relative to the execution root directory but not relative to the working + // directory. + // "LOCATION_WORKING_DIR_RELATIVE" - Output files or directories were found + // relative to the working directory but not relative to the execution root + // directory. // "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE" - Output files or - // directories were found both relative to the execution root directory - // and relative to the working directory. - // "LOCATION_EXEC_ROOT_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" - Output - // files or directories were found relative to the execution root - // directory but not relative to the working directory. In addition at - // least one output file or directory was found outside of the working - // directory such that a working-directory-relative-path would have - // needed to start with a `..`. - // - // "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE_OUTPUT_OUTSIDE_WORKING_DI - // R" - Output files or directories were found both relative to the - // execution root directory and relative to the working directory. In - // addition at least one exec-root-relative output file or directory was - // found outside of the working directory such that a - // working-directory-relative-path would have needed to start with a - // `..`. + // directories were found both relative to the execution root directory and + // relative to the working directory. + // "LOCATION_EXEC_ROOT_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" - Output files or + // directories were found relative to the execution root directory but not + // relative to the working directory. In addition at least one output file or + // directory was found outside of the working directory such that a + // working-directory-relative-path would have needed to start with a `..`. + // "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" - + // Output files or directories were found both relative to the execution root + // directory and relative to the working directory. In addition at least one + // exec-root-relative output file or directory was found outside of the working + // directory such that a working-directory-relative-path would have needed to + // start with a `..`. OutputLocation string `json:"outputLocation,omitempty"` - - // UsedAsyncContainer: Indicates whether an asynchronous container was - // used for execution. + // UsedAsyncContainer: Indicates whether an asynchronous container was used for + // execution. UsedAsyncContainer bool `json:"usedAsyncContainer,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CmUsage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CmUsage") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CmUsage") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CmUsage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotCommandEvents) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotCommandEvents) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotCommandEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleDevtoolsRemotebuildbotCommandEvents) UnmarshalJSON(data []byte) error { @@ -1657,138 +1378,117 @@ type GoogleDevtoolsRemotebuildbotCommandStatus struct { // Possible values: // "OK" - The command succeeded. // "INVALID_ARGUMENT" - The command input was invalid. - // "DEADLINE_EXCEEDED" - The command had passed its expiry time while - // it was still running. - // "NOT_FOUND" - The resources requested by the command were not - // found. + // "DEADLINE_EXCEEDED" - The command had passed its expiry time while it was + // still running. + // "NOT_FOUND" - The resources requested by the command were not found. // "PERMISSION_DENIED" - The command failed due to permission errors. - // "INTERNAL" - The command failed because of some invariants expected - // by the underlying system have been broken. This usually indicates a - // bug wit the system. + // "INTERNAL" - The command failed because of some invariants expected by the + // underlying system have been broken. This usually indicates a bug wit the + // system. // "ABORTED" - The command was aborted. - // "FAILED_PRECONDITION" - The command failed because the system is - // not in a state required for the command, e.g. the command inputs - // cannot be found on the server. - // "CLEANUP_ERROR" - The bot failed to do the cleanup, e.g. unable to - // delete the command working directory or the command process. + // "FAILED_PRECONDITION" - The command failed because the system is not in a + // state required for the command, e.g. the command inputs cannot be found on + // the server. + // "CLEANUP_ERROR" - The bot failed to do the cleanup, e.g. unable to delete + // the command working directory or the command process. // "DOWNLOAD_INPUTS_ERROR" - The bot failed to download the inputs. // "UNKNOWN" - Unknown error. // "UPLOAD_OUTPUTS_ERROR" - The bot failed to upload the outputs. - // "UPLOAD_OUTPUTS_BYTES_LIMIT_EXCEEDED" - The bot tried to upload - // files having a total size that is too large. + // "UPLOAD_OUTPUTS_BYTES_LIMIT_EXCEEDED" - The bot tried to upload files + // having a total size that is too large. // "DOCKER_LOGIN_ERROR" - The bot failed to login to docker. // "DOCKER_IMAGE_PULL_ERROR" - The bot failed to pull docker image. // "DOCKER_IMAGE_EXIST_ERROR" - The bot failed to check docker images. // "DUPLICATE_INPUTS" - The inputs contain duplicate files. - // "DOCKER_IMAGE_PERMISSION_DENIED" - The bot doesn't have the - // permissions to pull docker images. + // "DOCKER_IMAGE_PERMISSION_DENIED" - The bot doesn't have the permissions to + // pull docker images. // "DOCKER_IMAGE_NOT_FOUND" - The docker image cannot be found. // "WORKING_DIR_NOT_FOUND" - Working directory is not found. - // "WORKING_DIR_NOT_IN_BASE_DIR" - Working directory is not under the - // base directory - // "DOCKER_UNAVAILABLE" - There are issues with docker - // service/runtime. - // "NO_CUDA_CAPABLE_DEVICE" - The command failed with "no cuda-capable - // device is detected" error. - // "REMOTE_CAS_DOWNLOAD_ERROR" - The bot encountered errors from - // remote CAS when downloading blobs. - // "REMOTE_CAS_UPLOAD_ERROR" - The bot encountered errors from remote - // CAS when uploading blobs. + // "WORKING_DIR_NOT_IN_BASE_DIR" - Working directory is not under the base + // directory + // "DOCKER_UNAVAILABLE" - There are issues with docker service/runtime. + // "NO_CUDA_CAPABLE_DEVICE" - The command failed with "no cuda-capable device + // is detected" error. + // "REMOTE_CAS_DOWNLOAD_ERROR" - The bot encountered errors from remote CAS + // when downloading blobs. + // "REMOTE_CAS_UPLOAD_ERROR" - The bot encountered errors from remote CAS + // when uploading blobs. // "LOCAL_CASPROXY_NOT_RUNNING" - The local casproxy is not running. - // "DOCKER_CREATE_CONTAINER_ERROR" - The bot couldn't start the - // container. + // "DOCKER_CREATE_CONTAINER_ERROR" - The bot couldn't start the container. // "DOCKER_INVALID_ULIMIT" - The docker ulimit is not valid. // "DOCKER_UNKNOWN_RUNTIME" - The docker runtime is unknown. // "DOCKER_UNKNOWN_CAPABILITY" - The docker capability is unknown. - // "DOCKER_UNKNOWN_ERROR" - The command failed with unknown docker - // errors. - // "DOCKER_CREATE_COMPUTE_SYSTEM_ERROR" - Docker failed to run - // containers with CreateComputeSystem error. + // "DOCKER_UNKNOWN_ERROR" - The command failed with unknown docker errors. + // "DOCKER_CREATE_COMPUTE_SYSTEM_ERROR" - Docker failed to run containers + // with CreateComputeSystem error. // "DOCKER_PREPARELAYER_ERROR" - Docker failed to run containers with // hcsshim::PrepareLayer error. - // "DOCKER_INCOMPATIBLE_OS_ERROR" - Docker incompatible operating - // system error. - // "DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND" - Docker failed to create - // OCI runtime because of file not found. - // "DOCKER_CREATE_RUNTIME_PERMISSION_DENIED" - Docker failed to create - // OCI runtime because of permission denied. - // "DOCKER_CREATE_PROCESS_FILE_NOT_FOUND" - Docker failed to create - // process because of file not found. - // "DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR" - Docker - // failed to run containers with CreateComputeSystem error that involves - // an incorrect parameter (more specific version of - // DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused). + // "DOCKER_INCOMPATIBLE_OS_ERROR" - Docker incompatible operating system + // error. + // "DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND" - Docker failed to create OCI + // runtime because of file not found. + // "DOCKER_CREATE_RUNTIME_PERMISSION_DENIED" - Docker failed to create OCI + // runtime because of permission denied. + // "DOCKER_CREATE_PROCESS_FILE_NOT_FOUND" - Docker failed to create process + // because of file not found. + // "DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR" - Docker failed + // to run containers with CreateComputeSystem error that involves an incorrect + // parameter (more specific version of DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that + // is user-caused). // "DOCKER_TOO_MANY_SYMBOLIC_LINK_LEVELS" - Docker failed to create an // overlay mount because of too many levels of symbolic links. - // "LOCAL_CONTAINER_MANAGER_NOT_RUNNING" - The local Container Manager - // is not running. - // "DOCKER_IMAGE_VPCSC_PERMISSION_DENIED" - Docker failed because a - // request was denied by the organization's policy. + // "LOCAL_CONTAINER_MANAGER_NOT_RUNNING" - The local Container Manager is not + // running. + // "DOCKER_IMAGE_VPCSC_PERMISSION_DENIED" - Docker failed because a request + // was denied by the organization's policy. // "WORKING_DIR_NOT_RELATIVE" - Working directory is not relative - // "DOCKER_MISSING_CONTAINER" - Docker cannot find the container - // specified in the command. This error is likely to only occur if an - // asynchronous container is not running when the command is run. + // "DOCKER_MISSING_CONTAINER" - Docker cannot find the container specified in + // the command. This error is likely to only occur if an asynchronous container + // is not running when the command is run. Code string `json:"code,omitempty"` - // Message: The error message. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotCommandStatus) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotCommandStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotCommandStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildbotResourceUsage: ResourceUsage is the -// system resource usage of the host machine. +// GoogleDevtoolsRemotebuildbotResourceUsage: ResourceUsage is the system +// resource usage of the host machine. type GoogleDevtoolsRemotebuildbotResourceUsage struct { - CpuUsedPercent float64 `json:"cpuUsedPercent,omitempty"` - - DiskUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"diskUsage,omitempty"` - - MemoryUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"memoryUsage,omitempty"` - + CpuUsedPercent float64 `json:"cpuUsedPercent,omitempty"` + DiskUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"diskUsage,omitempty"` + MemoryUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"memoryUsage,omitempty"` TotalDiskIoStats *GoogleDevtoolsRemotebuildbotResourceUsageIOStats `json:"totalDiskIoStats,omitempty"` - // ForceSendFields is a list of field names (e.g. "CpuUsedPercent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CpuUsedPercent") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CpuUsedPercent") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotResourceUsage) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotResourceUsage) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotResourceUsage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleDevtoolsRemotebuildbotResourceUsage) UnmarshalJSON(data []byte) error { @@ -1806,401 +1506,310 @@ func (s *GoogleDevtoolsRemotebuildbotResourceUsage) UnmarshalJSON(data []byte) e } type GoogleDevtoolsRemotebuildbotResourceUsageIOStats struct { - ReadBytesCount uint64 `json:"readBytesCount,omitempty,string"` - - ReadCount uint64 `json:"readCount,omitempty,string"` - - ReadTimeMs uint64 `json:"readTimeMs,omitempty,string"` - + ReadBytesCount uint64 `json:"readBytesCount,omitempty,string"` + ReadCount uint64 `json:"readCount,omitempty,string"` + ReadTimeMs uint64 `json:"readTimeMs,omitempty,string"` WriteBytesCount uint64 `json:"writeBytesCount,omitempty,string"` - - WriteCount uint64 `json:"writeCount,omitempty,string"` - - WriteTimeMs uint64 `json:"writeTimeMs,omitempty,string"` - + WriteCount uint64 `json:"writeCount,omitempty,string"` + WriteTimeMs uint64 `json:"writeTimeMs,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ReadBytesCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ReadBytesCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ReadBytesCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotResourceUsageIOStats) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotResourceUsageIOStats) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotResourceUsageIOStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildbotResourceUsageStat struct { Total uint64 `json:"total,omitempty,string"` - - Used uint64 `json:"used,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Total") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Used uint64 `json:"used,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Total") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Total") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotResourceUsageStat) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotResourceUsageStat) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotResourceUsageStat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig: // AcceleratorConfig defines the accelerator cards to attach to the VM. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig struct { - // AcceleratorCount: The number of guest accelerator cards exposed to - // each VM. + // AcceleratorCount: The number of guest accelerator cards exposed to each VM. AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"` - // AcceleratorType: The type of accelerator to attach to each VM, e.g. // "nvidia-tesla-k80" for nVidia Tesla K80. AcceleratorType string `json:"acceleratorType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AcceleratorCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AcceleratorCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale: Autoscale -// defines the autoscaling policy of a worker pool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale: Autoscale defines +// the autoscaling policy of a worker pool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale struct { - // MaxSize: The maximal number of workers. Must be equal to or greater - // than min_size. + // MaxSize: The maximal number of workers. Must be equal to or greater than + // min_size. MaxSize int64 `json:"maxSize,omitempty,string"` - // MinSize: The minimal number of workers. Must be greater than 0. MinSize int64 `json:"minSize,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "MaxSize") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "MaxSize") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxSize") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxSize") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest: -// The request used for `CreateInstance`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest: The +// request used for `CreateInstance`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest struct { - // Instance: Specifies the instance to create. The name in the instance, - // if specified in the instance, is ignored. + // Instance: Specifies the instance to create. The name in the instance, if + // specified in the instance, is ignored. Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"` - - // InstanceId: ID of the created instance. A valid `instance_id` must: - // be 6-50 characters long, contain only lowercase letters, digits, - // hyphens and underscores, start with a lowercase letter, and end with - // a lowercase letter or a digit. + // InstanceId: ID of the created instance. A valid `instance_id` must: be 6-50 + // characters long, contain only lowercase letters, digits, hyphens and + // underscores, start with a lowercase letter, and end with a lowercase letter + // or a digit. InstanceId string `json:"instanceId,omitempty"` - // Parent: Resource name of the project containing the instance. Format: // `projects/[PROJECT_ID]`. Parent string `json:"parent,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest: -// -// The request used for `CreateWorkerPool`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest: The +// request used for `CreateWorkerPool`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest struct { - // Parent: Resource name of the instance in which to create the new - // worker pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. + // Parent: Resource name of the instance in which to create the new worker + // pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Parent string `json:"parent,omitempty"` - // PoolId: ID of the created worker pool. A valid pool ID must: be 6-50 // characters long, contain only lowercase letters, digits, hyphens and - // underscores, start with a lowercase letter, and end with a lowercase - // letter or a digit. + // underscores, start with a lowercase letter, and end with a lowercase letter + // or a digit. PoolId string `json:"poolId,omitempty"` - - // WorkerPool: Specifies the worker pool to create. The name in the - // worker pool, if specified, is ignored. + // WorkerPool: Specifies the worker pool to create. The name in the worker + // pool, if specified, is ignored. WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest: -// The request used for `DeleteInstance`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest: The +// request used for `DeleteInstance`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest struct { // Name: Name of the instance to delete. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest: -// -// The request used for DeleteWorkerPool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest: The +// request used for DeleteWorkerPool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest struct { // Name: Name of the worker pool to delete. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy: -// FeaturePolicy defines features allowed to be used on RBE instances, -// as well as instance-wide behavior changes that take effect without -// opt-in or opt-out at usage time. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy: FeaturePolicy +// defines features allowed to be used on RBE instances, as well as +// instance-wide behavior changes that take effect without opt-in or opt-out at +// usage time. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy struct { - // ContainerImageSources: Which container image sources are allowed. - // Currently only RBE-supported registry (gcr.io) is allowed. One can - // allow all repositories under a project or one specific repository - // only. E.g. container_image_sources { policy: RESTRICTED - // allowed_values: [ "gcr.io/project-foo", - // "gcr.io/project-bar/repo-baz", ] } will allow any repositories under - // "gcr.io/project-foo" plus the repository - // "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to - // any source is allowed. + // ContainerImageSources: Which container image sources are allowed. Currently + // only RBE-supported registry (gcr.io) is allowed. One can allow all + // repositories under a project or one specific repository only. E.g. + // container_image_sources { policy: RESTRICTED allowed_values: [ + // "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any + // repositories under "gcr.io/project-foo" plus the repository + // "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any + // source is allowed. ContainerImageSources *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"containerImageSources,omitempty"` - - // DockerAddCapabilities: Whether dockerAddCapabilities can be used or - // what capabilities are allowed. + // DockerAddCapabilities: Whether dockerAddCapabilities can be used or what + // capabilities are allowed. DockerAddCapabilities *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerAddCapabilities,omitempty"` - // DockerChrootPath: Whether dockerChrootPath can be used. DockerChrootPath *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerChrootPath,omitempty"` - - // DockerNetwork: Whether dockerNetwork can be used or what network - // modes are allowed. E.g. one may allow `off` value only via - // `allowed_values`. + // DockerNetwork: Whether dockerNetwork can be used or what network modes are + // allowed. E.g. one may allow `off` value only via `allowed_values`. DockerNetwork *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerNetwork,omitempty"` - // DockerPrivileged: Whether dockerPrivileged can be used. DockerPrivileged *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerPrivileged,omitempty"` - // DockerRunAsRoot: Whether dockerRunAsRoot can be used. DockerRunAsRoot *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerRunAsRoot,omitempty"` - - // DockerRuntime: Whether dockerRuntime is allowed to be set or what - // runtimes are allowed. Note linux_isolation takes precedence, and if - // set, docker_runtime values may be rejected if they are incompatible - // with the selected isolation. + // DockerRuntime: Whether dockerRuntime is allowed to be set or what runtimes + // are allowed. Note linux_isolation takes precedence, and if set, + // docker_runtime values may be rejected if they are incompatible with the + // selected isolation. DockerRuntime *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerRuntime,omitempty"` - // DockerSiblingContainers: Whether dockerSiblingContainers can be used. DockerSiblingContainers *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerSiblingContainers,omitempty"` - - // LinuxIsolation: linux_isolation allows overriding the docker runtime - // used for containers started on Linux. + // LinuxIsolation: linux_isolation allows overriding the docker runtime used + // for containers started on Linux. // // Possible values: - // "LINUX_ISOLATION_UNSPECIFIED" - Default value. Will be using Linux - // default runtime. + // "LINUX_ISOLATION_UNSPECIFIED" - Default value. Will be using Linux default + // runtime. // "GVISOR" - Use gVisor runsc runtime. // "OFF" - Use stardard Linux runtime. This has the same behaviour as // unspecified, but it can be used to revert back from gVisor. LinuxIsolation string `json:"linuxIsolation,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ContainerImageSources") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ContainerImageSources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ContainerImageSources") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature: -// Defines whether a feature can be used or what values are accepted. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature: Defines +// whether a feature can be used or what values are accepted. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature struct { - // AllowedValues: A list of acceptable values. Only effective when the - // policy is `RESTRICTED`. + // AllowedValues: A list of acceptable values. Only effective when the policy + // is `RESTRICTED`. AllowedValues []string `json:"allowedValues,omitempty"` - // Policy: The policy of the feature. // // Possible values: - // "POLICY_UNSPECIFIED" - Default value, if not explicitly set. - // Equivalent to FORBIDDEN, unless otherwise documented on a specific - // Feature. + // "POLICY_UNSPECIFIED" - Default value, if not explicitly set. Equivalent to + // FORBIDDEN, unless otherwise documented on a specific Feature. // "ALLOWED" - Feature is explicitly allowed. - // "FORBIDDEN" - Feature is forbidden. Requests attempting to leverage - // it will get an FailedPrecondition error, with a message like: - // "Feature forbidden by FeaturePolicy: Feature on instance " - // "RESTRICTED" - Only the values specified in the `allowed_values` - // are allowed. + // "FORBIDDEN" - Feature is forbidden. Requests attempting to leverage it + // will get an FailedPrecondition error, with a message like: "Feature + // forbidden by FeaturePolicy: Feature on instance " + // "RESTRICTED" - Only the values specified in the `allowed_values` are + // allowed. Policy string `json:"policy,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowedValues") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AllowedValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest: The @@ -2209,1217 +1818,954 @@ type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest struct { // Name: Name of the instance to retrieve. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest: -// The request used for GetWorkerPool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest: The +// request used for GetWorkerPool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest struct { // Name: Name of the worker pool to retrieve. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance: Instance -// conceptually encapsulates all Remote Build Execution resources for -// remote builds. An instance consists of storage and compute resources -// (for example, `ContentAddressableStorage`, `ActionCache`, -// `WorkerPools`) used for running remote builds. All Remote Build -// Execution API calls are scoped to an instance. +// conceptually encapsulates all Remote Build Execution resources for remote +// builds. An instance consists of storage and compute resources (for example, +// `ContentAddressableStorage`, `ActionCache`, `WorkerPools`) used for running +// remote builds. All Remote Build Execution API calls are scoped to an +// instance. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance struct { - // FeaturePolicy: The policy to define whether or not RBE features can - // be used or how they can be used. + // FeaturePolicy: The policy to define whether or not RBE features can be used + // or how they can be used. FeaturePolicy *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy `json:"featurePolicy,omitempty"` - - // Location: The location is a GCP region. Currently only `us-central1` - // is supported. + // Location: The location is a GCP region. Currently only `us-central1` is + // supported. Location string `json:"location,omitempty"` - - // LoggingEnabled: Output only. Whether stack driver logging is enabled - // for the instance. + // LoggingEnabled: Output only. Whether stack driver logging is enabled for the + // instance. LoggingEnabled bool `json:"loggingEnabled,omitempty"` - // Name: Output only. Instance resource name formatted as: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be // populated when creating an instance since it is provided in the // `instance_id` field. Name string `json:"name,omitempty"` - // State: Output only. State of the instance. // // Possible values: - // "STATE_UNSPECIFIED" - Not a valid state, but the default value of - // the enum. - // "CREATING" - The instance is in state `CREATING` once - // `CreateInstance` is called and before the instance is ready for use. - // "RUNNING" - The instance is in state `RUNNING` when it is ready for - // use. - // "INACTIVE" - An `INACTIVE` instance indicates that there is a - // problem that needs to be fixed. Such instances cannot be used for - // execution and instances that remain in this state for a significant - // period of time will be removed permanently. + // "STATE_UNSPECIFIED" - Not a valid state, but the default value of the + // enum. + // "CREATING" - The instance is in state `CREATING` once `CreateInstance` is + // called and before the instance is ready for use. + // "RUNNING" - The instance is in state `RUNNING` when it is ready for use. + // "INACTIVE" - An `INACTIVE` instance indicates that there is a problem that + // needs to be fixed. Such instances cannot be used for execution and instances + // that remain in this state for a significant period of time will be removed + // permanently. State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "FeaturePolicy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FeaturePolicy") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FeaturePolicy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest struct { - // Parent: Resource name of the project. Format: - // `projects/[PROJECT_ID]`. + // Parent: Resource name of the project. Format: `projects/[PROJECT_ID]`. Parent string `json:"parent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse struct { // Instances: The list of instances in a given project. Instances []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instances,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Instances") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instances") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instances") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest struct { - // Filter: Optional. A filter expression that filters resources listed - // in the response. The expression must specify the field name, a - // comparison operator, and the value that you want to use for - // filtering. The value must be a string, a number, or a boolean. String - // values are case-insensitive. The comparison operator must be either - // `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. The `:` operator can be used - // with string fields to match substrings. For non-string fields it is - // equivalent to the `=` operator. The `:*` comparison can be used to - // test whether a key has been defined. You can also filter on nested - // fields. To filter on multiple expressions, you can separate - // expression using `AND` and `OR` operators, using parentheses to - // specify precedence. If neither operator is specified, `AND` is - // assumed. Examples: Include only pools with more than 100 reserved - // workers: `(worker_count > 100) (worker_config.reserved = true)` - // Include only pools with a certain label or machines of the - // e2-standard family: `worker_config.labels.key1 : * OR - // worker_config.machine_type: e2-standard` + // Filter: Optional. A filter expression that filters resources listed in the + // response. The expression must specify the field name, a comparison operator, + // and the value that you want to use for filtering. The value must be a + // string, a number, or a boolean. String values are case-insensitive. The + // comparison operator must be either `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. + // The `:` operator can be used with string fields to match substrings. For + // non-string fields it is equivalent to the `=` operator. The `:*` comparison + // can be used to test whether a key has been defined. You can also filter on + // nested fields. To filter on multiple expressions, you can separate + // expression using `AND` and `OR` operators, using parentheses to specify + // precedence. If neither operator is specified, `AND` is assumed. Examples: + // Include only pools with more than 100 reserved workers: `(worker_count > + // 100) (worker_config.reserved = true)` Include only pools with a certain + // label or machines of the e2-standard family: `worker_config.labels.key1 : * + // OR worker_config.machine_type: e2-standard` Filter string `json:"filter,omitempty"` - // Parent: Resource name of the instance. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Parent string `json:"parent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse struct { // WorkerPools: The list of worker pools in a given instance. WorkerPools []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPools,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "WorkerPools") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "WorkerPools") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "WorkerPools") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest: -// The request used for `UpdateInstance`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest: The +// request used for `UpdateInstance`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest struct { // Instance: Specifies the instance to update. Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"` - - // LoggingEnabled: Deprecated, use instance.logging_enabled instead. - // Whether to enable Stackdriver logging for this instance. + // LoggingEnabled: Deprecated, use instance.logging_enabled instead. Whether to + // enable Stackdriver logging for this instance. LoggingEnabled bool `json:"loggingEnabled,omitempty"` - - // Name: Deprecated, use instance.Name instead. Name of the instance to - // update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. + // Name: Deprecated, use instance.Name instead. Name of the instance to update. + // Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name string `json:"name,omitempty"` - // UpdateMask: The update mask applies to instance. For the `FieldMask` // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - // If an empty update_mask is provided, only the non-default valued - // field in the worker pool field will be updated. Note that in order to - // update a field to the default value (zero, false, empty string) an - // explicit update_mask must be provided. + // If an empty update_mask is provided, only the non-default valued field in + // the worker pool field will be updated. Note that in order to update a field + // to the default value (zero, false, empty string) an explicit update_mask + // must be provided. UpdateMask string `json:"updateMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest: -// -// The request used for UpdateWorkerPool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest: The +// request used for UpdateWorkerPool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest struct { - // UpdateMask: The update mask applies to worker_pool. For the - // `FieldMask` definition, see + // UpdateMask: The update mask applies to worker_pool. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - // If an empty update_mask is provided, only the non-default valued - // field in the worker pool field will be updated. Note that in order to - // update a field to the default value (zero, false, empty string) an - // explicit update_mask must be provided. + // If an empty update_mask is provided, only the non-default valued field in + // the worker pool field will be updated. Note that in order to update a field + // to the default value (zero, false, empty string) an explicit update_mask + // must be provided. UpdateMask string `json:"updateMask,omitempty"` - // WorkerPool: Specifies the worker pool to update. WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "UpdateMask") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "UpdateMask") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "UpdateMask") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig: Defines -// the configuration to be used for creating workers in the worker pool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig: Defines the +// configuration to be used for creating workers in the worker pool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig struct { // Accelerator: The accelerator card attached to each VM. Accelerator *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig `json:"accelerator,omitempty"` - - // DiskSizeGb: Required. Size of the disk attached to the worker, in GB. - // See https://cloud.google.com/compute/docs/disks/ + // DiskSizeGb: Required. Size of the disk attached to the worker, in GB. See + // https://cloud.google.com/compute/docs/disks/ DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // DiskType: Required. Disk Type to use for the worker. See Storage - // options (https://cloud.google.com/compute/docs/disks/#introduction). - // Currently only `pd-standard` and `pd-ssd` are supported. + // DiskType: Required. Disk Type to use for the worker. See Storage options + // (https://cloud.google.com/compute/docs/disks/#introduction). Currently only + // `pd-standard` and `pd-ssd` are supported. DiskType string `json:"diskType,omitempty"` - - // Labels: Labels associated with the workers. Label keys and values can - // be no longer than 63 characters, can only contain lowercase letters, - // numeric characters, underscores and dashes. International letters are - // permitted. Label keys must start with a letter. Label values are - // optional. There can not be more than 64 labels per resource. + // Labels: Labels associated with the workers. Label keys and values can be no + // longer than 63 characters, can only contain lowercase letters, numeric + // characters, underscores and dashes. International letters are permitted. + // Label keys must start with a letter. Label values are optional. There can + // not be more than 64 labels per resource. Labels map[string]string `json:"labels,omitempty"` - - // MachineType: Required. Machine type of the worker, such as - // `e2-standard-2`. See - // https://cloud.google.com/compute/docs/machine-types for a list of - // supported machine types. Note that `f1-micro` and `g1-small` are not - // yet supported. + // MachineType: Required. Machine type of the worker, such as `e2-standard-2`. + // See https://cloud.google.com/compute/docs/machine-types for a list of + // supported machine types. Note that `f1-micro` and `g1-small` are not yet + // supported. MachineType string `json:"machineType,omitempty"` - - // MaxConcurrentActions: The maximum number of actions a worker can - // execute concurrently. + // MaxConcurrentActions: The maximum number of actions a worker can execute + // concurrently. MaxConcurrentActions int64 `json:"maxConcurrentActions,omitempty,string"` - - // MinCpuPlatform: Minimum CPU platform to use when creating the worker. - // See CPU Platforms - // (https://cloud.google.com/compute/docs/cpu-platforms). + // MinCpuPlatform: Minimum CPU platform to use when creating the worker. See + // CPU Platforms (https://cloud.google.com/compute/docs/cpu-platforms). MinCpuPlatform string `json:"minCpuPlatform,omitempty"` - - // NetworkAccess: Determines the type of network access granted to - // workers. Possible values: - "public": Workers can connect to the - // public internet. - "private": Workers can only connect to Google APIs - // and services. - "restricted-private": Workers can only connect to - // Google APIs that are reachable through `restricted.googleapis.com` - // (`199.36.153.4/30`). + // NetworkAccess: Determines the type of network access granted to workers. + // Possible values: - "public": Workers can connect to the public internet. - + // "private": Workers can only connect to Google APIs and services. - + // "restricted-private": Workers can only connect to Google APIs that are + // reachable through `restricted.googleapis.com` (`199.36.153.4/30`). NetworkAccess string `json:"networkAccess,omitempty"` - - // Reserved: Determines whether the worker is reserved (equivalent to a - // Compute Engine on-demand VM and therefore won't be preempted). See - // Preemptible VMs (https://cloud.google.com/preemptible-vms/) for more - // details. + // Reserved: Determines whether the worker is reserved (equivalent to a Compute + // Engine on-demand VM and therefore won't be preempted). See Preemptible VMs + // (https://cloud.google.com/preemptible-vms/) for more details. Reserved bool `json:"reserved,omitempty"` - - // SoleTenantNodeType: The node type name to be used for sole-tenant - // nodes. + // SoleTenantNodeType: The node type name to be used for sole-tenant nodes. SoleTenantNodeType string `json:"soleTenantNodeType,omitempty"` - // VmImage: The name of the image used by each VM. VmImage string `json:"vmImage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Accelerator") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accelerator") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accelerator") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool: A worker -// pool resource in the Remote Build Execution API. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool: A worker pool +// resource in the Remote Build Execution API. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool struct { // Autoscale: The autoscale policy to apply on a pool. Autoscale *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale `json:"autoscale,omitempty"` - // Channel: Channel specifies the release channel of the pool. Channel string `json:"channel,omitempty"` - // Name: WorkerPool resource name formatted as: - // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. - // name should not be populated when creating a worker pool since it is - // provided in the `poolId` field. + // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name + // should not be populated when creating a worker pool since it is provided in + // the `poolId` field. Name string `json:"name,omitempty"` - // State: Output only. State of the worker pool. // // Possible values: - // "STATE_UNSPECIFIED" - Not a valid state, but the default value of - // the enum. + // "STATE_UNSPECIFIED" - Not a valid state, but the default value of the + // enum. // "CREATING" - The worker pool is in state `CREATING` once - // `CreateWorkerPool` is called and before all requested workers are - // ready. - // "RUNNING" - The worker pool is in state `RUNNING` when all its - // workers are ready for use. + // `CreateWorkerPool` is called and before all requested workers are ready. + // "RUNNING" - The worker pool is in state `RUNNING` when all its workers are + // ready for use. // "UPDATING" - The worker pool is in state `UPDATING` once - // `UpdateWorkerPool` is called and before the new configuration has all - // the requested workers ready for use, and no older configuration has - // any workers. At that point the state transitions to `RUNNING`. - // "DELETING" - The worker pool is in state `DELETING` once the - // `Delete` method is called and before the deletion completes. - // "INACTIVE" - The worker pool is in state `INACTIVE` when the - // instance hosting the worker pool in not running. + // `UpdateWorkerPool` is called and before the new configuration has all the + // requested workers ready for use, and no older configuration has any workers. + // At that point the state transitions to `RUNNING`. + // "DELETING" - The worker pool is in state `DELETING` once the `Delete` + // method is called and before the deletion completes. + // "INACTIVE" - The worker pool is in state `INACTIVE` when the instance + // hosting the worker pool in not running. State string `json:"state,omitempty"` - - // WorkerConfig: Specifies the properties, such as machine type and disk - // size, used for creating workers in a worker pool. + // WorkerConfig: Specifies the properties, such as machine type and disk size, + // used for creating workers in a worker pool. WorkerConfig *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig `json:"workerConfig,omitempty"` - - // WorkerCount: The desired number of workers in the worker pool. Must - // be a value between 0 and 15000. + // WorkerCount: The desired number of workers in the worker pool. Must be a + // value between 0 and 15000. WorkerCount int64 `json:"workerCount,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Autoscale") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Autoscale") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Autoscale") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleDevtoolsRemoteworkersV1test2AdminTemp: AdminTemp is a -// prelimiary set of administration tasks. It's called "Temp" because we -// do not yet know the best way to represent admin tasks; it's possible -// that this will be entirely replaced in later versions of this API. If -// this message proves to be sufficient, it will be renamed in the alpha -// or beta release of this API. This message (suitably marshalled into a -// protobuf.Any) can be used as the inline_assignment field in a lease; -// the lease assignment field should simply be "admin" in these cases. -// This message is heavily based on Swarming administration tasks from -// the LUCI project (http://github.com/luci/luci-py/appengine/swarming). + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleDevtoolsRemoteworkersV1test2AdminTemp: AdminTemp is a prelimiary set +// of administration tasks. It's called "Temp" because we do not yet know the +// best way to represent admin tasks; it's possible that this will be entirely +// replaced in later versions of this API. If this message proves to be +// sufficient, it will be renamed in the alpha or beta release of this API. +// This message (suitably marshalled into a protobuf.Any) can be used as the +// inline_assignment field in a lease; the lease assignment field should simply +// be "admin" in these cases. This message is heavily based on Swarming +// administration tasks from the LUCI project +// (http://github.com/luci/luci-py/appengine/swarming). type GoogleDevtoolsRemoteworkersV1test2AdminTemp struct { // Arg: The argument to the admin action; see `Command` for semantics. Arg string `json:"arg,omitempty"` - // Command: The admin action; see `Command` for legal values. // // Possible values: // "UNSPECIFIED" - Illegal value. - // "BOT_UPDATE" - Download and run a new version of the bot. `arg` - // will be a resource accessible via `ByteStream.Read` to obtain the new - // bot code. - // "BOT_RESTART" - Restart the bot without downloading a new version. - // `arg` will be a message to log. - // "BOT_TERMINATE" - Shut down the bot. `arg` will be a task resource - // name (similar to those in tasks.proto) that the bot can use to tell - // the server that it is terminating. - // "HOST_RESTART" - Restart the host computer. `arg` will be a message - // to log. + // "BOT_UPDATE" - Download and run a new version of the bot. `arg` will be a + // resource accessible via `ByteStream.Read` to obtain the new bot code. + // "BOT_RESTART" - Restart the bot without downloading a new version. `arg` + // will be a message to log. + // "BOT_TERMINATE" - Shut down the bot. `arg` will be a task resource name + // (similar to those in tasks.proto) that the bot can use to tell the server + // that it is terminating. + // "HOST_RESTART" - Restart the host computer. `arg` will be a message to + // log. Command string `json:"command,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Arg") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Arg") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Arg") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Arg") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2AdminTemp) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2AdminTemp) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2AdminTemp - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2Blob: Describes a blob of binary -// content with its digest. +// GoogleDevtoolsRemoteworkersV1test2Blob: Describes a blob of binary content +// with its digest. type GoogleDevtoolsRemoteworkersV1test2Blob struct { // Contents: The contents of the blob. Contents string `json:"contents,omitempty"` - - // Digest: The digest of the blob. This should be verified by the - // receiver. + // Digest: The digest of the blob. This should be verified by the receiver. Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2Blob) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2Blob) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2Blob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemoteworkersV1test2CommandOutputs: DEPRECATED - use // CommandResult instead. Describes the actual outputs from the task. type GoogleDevtoolsRemoteworkersV1test2CommandOutputs struct { - // ExitCode: exit_code is only fully reliable if the status' code is OK. - // If the task exceeded its deadline or was cancelled, the process may - // still produce an exit code as it is cancelled, and this will be - // populated, but a successful (zero) is unlikely to be correct unless - // the status code is OK. + // ExitCode: exit_code is only fully reliable if the status' code is OK. If the + // task exceeded its deadline or was cancelled, the process may still produce + // an exit code as it is cancelled, and this will be populated, but a + // successful (zero) is unlikely to be correct unless the status code is OK. ExitCode int64 `json:"exitCode,omitempty"` - - // Outputs: The output files. The blob referenced by the digest should - // contain one of the following (implementation-dependent): * A - // marshalled DirectoryMetadata of the returned filesystem * A - // LUCI-style .isolated file + // Outputs: The output files. The blob referenced by the digest should contain + // one of the following (implementation-dependent): * A marshalled + // DirectoryMetadata of the returned filesystem * A LUCI-style .isolated file Outputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExitCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExitCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExitCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandOutputs) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandOutputs) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandOutputs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemoteworkersV1test2CommandOverhead: DEPRECATED - use -// CommandResult instead. Can be used as part of -// CompleteRequest.metadata, or are part of a more sophisticated -// message. +// CommandResult instead. Can be used as part of CompleteRequest.metadata, or +// are part of a more sophisticated message. type GoogleDevtoolsRemoteworkersV1test2CommandOverhead struct { - // Duration: The elapsed time between calling Accept and Complete. The - // server will also have its own idea of what this should be, but this - // excludes the overhead of the RPCs and the bot response time. + // Duration: The elapsed time between calling Accept and Complete. The server + // will also have its own idea of what this should be, but this excludes the + // overhead of the RPCs and the bot response time. Duration string `json:"duration,omitempty"` - // Overhead: The amount of time *not* spent executing the command (ie // uploading/downloading files). Overhead string `json:"overhead,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandOverhead) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandOverhead) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandOverhead - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandResult: All information -// about the execution of a command, suitable for providing as the Bots -// interface's `Lease.result` field. +// GoogleDevtoolsRemoteworkersV1test2CommandResult: All information about the +// execution of a command, suitable for providing as the Bots interface's +// `Lease.result` field. type GoogleDevtoolsRemoteworkersV1test2CommandResult struct { - // Duration: The elapsed time between calling Accept and Complete. The - // server will also have its own idea of what this should be, but this - // excludes the overhead of the RPCs and the bot response time. + // Duration: The elapsed time between calling Accept and Complete. The server + // will also have its own idea of what this should be, but this excludes the + // overhead of the RPCs and the bot response time. Duration string `json:"duration,omitempty"` - - // ExitCode: The exit code of the process. An exit code of "0" should - // only be trusted if `status` has a code of OK (otherwise it may simply - // be unset). + // ExitCode: The exit code of the process. An exit code of "0" should only be + // trusted if `status` has a code of OK (otherwise it may simply be unset). ExitCode int64 `json:"exitCode,omitempty"` - - // Metadata: Implementation-dependent metadata about the task. Both - // servers and bots may define messages which can be encoded here; bots - // are free to provide metadata in multiple formats, and servers are - // free to choose one or more of the values to process and ignore - // others. In particular, it is *not* considered an error for the bot to - // provide the server with a field that it doesn't know about. + // Metadata: Implementation-dependent metadata about the task. Both servers and + // bots may define messages which can be encoded here; bots are free to provide + // metadata in multiple formats, and servers are free to choose one or more of + // the values to process and ignore others. In particular, it is *not* + // considered an error for the bot to provide the server with a field that it + // doesn't know about. Metadata []googleapi.RawMessage `json:"metadata,omitempty"` - - // Outputs: The output files. The blob referenced by the digest should - // contain one of the following (implementation-dependent): * A - // marshalled DirectoryMetadata of the returned filesystem * A - // LUCI-style .isolated file + // Outputs: The output files. The blob referenced by the digest should contain + // one of the following (implementation-dependent): * A marshalled + // DirectoryMetadata of the returned filesystem * A LUCI-style .isolated file Outputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"` - // Overhead: The amount of time *not* spent executing the command (ie // uploading/downloading files). Overhead string `json:"overhead,omitempty"` - - // Status: An overall status for the command. For example, if the - // command timed out, this might have a code of DEADLINE_EXCEEDED; if it - // was killed by the OS for memory exhaustion, it might have a code of - // RESOURCE_EXHAUSTED. + // Status: An overall status for the command. For example, if the command timed + // out, this might have a code of DEADLINE_EXCEEDED; if it was killed by the OS + // for memory exhaustion, it might have a code of RESOURCE_EXHAUSTED. Status *GoogleRpcStatus `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandResult) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTask: Describes a -// shell-style task to execute, suitable for providing as the Bots -// interface's `Lease.payload` field. +// GoogleDevtoolsRemoteworkersV1test2CommandTask: Describes a shell-style task +// to execute, suitable for providing as the Bots interface's `Lease.payload` +// field. type GoogleDevtoolsRemoteworkersV1test2CommandTask struct { // ExpectedOutputs: The expected outputs from the task. ExpectedOutputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs `json:"expectedOutputs,omitempty"` - // Inputs: The inputs to the task. Inputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs `json:"inputs,omitempty"` - // Timeouts: The timeouts of this task. Timeouts *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts `json:"timeouts,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpectedOutputs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpectedOutputs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExpectedOutputs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTask) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTask) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs: Describes the -// inputs to a shell-style task. +// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs: Describes the inputs to +// a shell-style task. type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs struct { - // Arguments: The command itself to run (e.g., argv). This field should - // be passed directly to the underlying operating system, and so it must - // be sensible to that operating system. For example, on Windows, the - // first argument might be "C:\Windows\System32\ping.exe" - that is, - // using drive letters and backslashes. A command for a *nix system, on - // the other hand, would use forward slashes. All other fields in the - // RWAPI must consistently use forward slashes, since those fields may - // be interpretted by both the service and the bot. + // Arguments: The command itself to run (e.g., argv). This field should be + // passed directly to the underlying operating system, and so it must be + // sensible to that operating system. For example, on Windows, the first + // argument might be "C:\Windows\System32\ping.exe" - that is, using drive + // letters and backslashes. A command for a *nix system, on the other hand, + // would use forward slashes. All other fields in the RWAPI must consistently + // use forward slashes, since those fields may be interpretted by both the + // service and the bot. Arguments []string `json:"arguments,omitempty"` - // EnvironmentVariables: All environment variables required by the task. EnvironmentVariables []*GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable `json:"environmentVariables,omitempty"` - - // Files: The input filesystem to be set up prior to the task beginning. - // The contents should be a repeated set of FileMetadata messages though - // other formats are allowed if better for the implementation (eg, a - // LUCI-style .isolated file). This field is repeated since - // implementations might want to cache the metadata, in which case it - // may be useful to break up portions of the filesystem that change - // frequently (eg, specific input files) from those that don't (eg, - // standard header files). + // Files: The input filesystem to be set up prior to the task beginning. The + // contents should be a repeated set of FileMetadata messages though other + // formats are allowed if better for the implementation (eg, a LUCI-style + // .isolated file). This field is repeated since implementations might want to + // cache the metadata, in which case it may be useful to break up portions of + // the filesystem that change frequently (eg, specific input files) from those + // that don't (eg, standard header files). Files []*GoogleDevtoolsRemoteworkersV1test2Digest `json:"files,omitempty"` - - // InlineBlobs: Inline contents for blobs expected to be needed by the - // bot to execute the task. For example, contents of entries in `files` - // or blobs that are indirectly referenced by an entry there. The bot - // should check against this list before downloading required task - // inputs to reduce the number of communications between itself and the - // remote CAS server. + // InlineBlobs: Inline contents for blobs expected to be needed by the bot to + // execute the task. For example, contents of entries in `files` or blobs that + // are indirectly referenced by an entry there. The bot should check against + // this list before downloading required task inputs to reduce the number of + // communications between itself and the remote CAS server. InlineBlobs []*GoogleDevtoolsRemoteworkersV1test2Blob `json:"inlineBlobs,omitempty"` - // WorkingDirectory: Directory from which a command is executed. It is a - // relative directory with respect to the bot's working directory (i.e., - // "./"). If it is non-empty, then it must exist under "./". Otherwise, - // "./" will be used. + // relative directory with respect to the bot's working directory (i.e., "./"). + // If it is non-empty, then it must exist under "./". Otherwise, "./" will be + // used. WorkingDirectory string `json:"workingDirectory,omitempty"` - // ForceSendFields is a list of field names (e.g. "Arguments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Arguments") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Arguments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable -// : An environment variable required by this task. +// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable: An +// environment variable required by this task. type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable struct { // Name: The envvar name. Name string `json:"name,omitempty"` - // Value: The envvar value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs: Describes the -// expected outputs of the command. +// GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs: Describes the expected +// outputs of the command. type GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs struct { - // Directories: A list of expected directories, relative to the - // execution root. All paths MUST be delimited by forward slashes. + // Directories: A list of expected directories, relative to the execution root. + // All paths MUST be delimited by forward slashes. Directories []string `json:"directories,omitempty"` - - // Files: A list of expected files, relative to the execution root. All - // paths MUST be delimited by forward slashes. + // Files: A list of expected files, relative to the execution root. All paths + // MUST be delimited by forward slashes. Files []string `json:"files,omitempty"` - - // StderrDestination: The destination to which any stderr should be - // sent. The method by which the bot should send the stream contents to - // that destination is not defined in this API. As examples, the - // destination could be a file referenced in the `files` field in this - // message, or it could be a URI that must be written via the ByteStream - // API. + // StderrDestination: The destination to which any stderr should be sent. The + // method by which the bot should send the stream contents to that destination + // is not defined in this API. As examples, the destination could be a file + // referenced in the `files` field in this message, or it could be a URI that + // must be written via the ByteStream API. StderrDestination string `json:"stderrDestination,omitempty"` - - // StdoutDestination: The destination to which any stdout should be - // sent. The method by which the bot should send the stream contents to - // that destination is not defined in this API. As examples, the - // destination could be a file referenced in the `files` field in this - // message, or it could be a URI that must be written via the ByteStream - // API. + // StdoutDestination: The destination to which any stdout should be sent. The + // method by which the bot should send the stream contents to that destination + // is not defined in this API. As examples, the destination could be a file + // referenced in the `files` field in this message, or it could be a URI that + // must be written via the ByteStream API. StdoutDestination string `json:"stdoutDestination,omitempty"` - // ForceSendFields is a list of field names (e.g. "Directories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts: Describes the // timeouts associated with this task. type GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts struct { - // Execution: This specifies the maximum time that the task can run, - // excluding the time required to download inputs or upload outputs. - // That is, the worker will terminate the task if it runs longer than - // this. + // Execution: This specifies the maximum time that the task can run, excluding + // the time required to download inputs or upload outputs. That is, the worker + // will terminate the task if it runs longer than this. Execution string `json:"execution,omitempty"` - - // Idle: This specifies the maximum amount of time the task can be idle - // - that is, go without generating some output in either stdout or - // stderr. If the process is silent for more than the specified time, - // the worker will terminate the task. + // Idle: This specifies the maximum amount of time the task can be idle - that + // is, go without generating some output in either stdout or stderr. If the + // process is silent for more than the specified time, the worker will + // terminate the task. Idle string `json:"idle,omitempty"` - - // Shutdown: If the execution or IO timeouts are exceeded, the worker - // will try to gracefully terminate the task and return any existing - // logs. However, tasks may be hard-frozen in which case this process - // will fail. This timeout specifies how long to wait for a terminated - // task to shut down gracefully (e.g. via SIGTERM) before we bring down - // the hammer (e.g. SIGKILL on *nix, CTRL_BREAK_EVENT on Windows). + // Shutdown: If the execution or IO timeouts are exceeded, the worker will try + // to gracefully terminate the task and return any existing logs. However, + // tasks may be hard-frozen in which case this process will fail. This timeout + // specifies how long to wait for a terminated task to shut down gracefully + // (e.g. via SIGTERM) before we bring down the hammer (e.g. SIGKILL on *nix, + // CTRL_BREAK_EVENT on Windows). Shutdown string `json:"shutdown,omitempty"` - // ForceSendFields is a list of field names (e.g. "Execution") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Execution") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Execution") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleDevtoolsRemoteworkersV1test2Digest: The CommandTask and -// CommandResult messages assume the existence of a service that can -// serve blobs of content, identified by a hash and size known as a -// "digest." The method by which these blobs may be retrieved is not -// specified here, but a model implementation is in the Remote Execution -// API's "ContentAddressibleStorage" interface. In the context of the -// RWAPI, a Digest will virtually always refer to the contents of a file -// or a directory. The latter is represented by the byte-encoded + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleDevtoolsRemoteworkersV1test2Digest: The CommandTask and CommandResult +// messages assume the existence of a service that can serve blobs of content, +// identified by a hash and size known as a "digest." The method by which these +// blobs may be retrieved is not specified here, but a model implementation is +// in the Remote Execution API's "ContentAddressibleStorage" interface. In the +// context of the RWAPI, a Digest will virtually always refer to the contents +// of a file or a directory. The latter is represented by the byte-encoded // Directory message. type GoogleDevtoolsRemoteworkersV1test2Digest struct { - // Hash: A string-encoded hash (eg "1a2b3c", not the byte array [0x1a, - // 0x2b, 0x3c]) using an implementation-defined hash algorithm (eg - // SHA-256). + // Hash: A string-encoded hash (eg "1a2b3c", not the byte array [0x1a, 0x2b, + // 0x3c]) using an implementation-defined hash algorithm (eg SHA-256). Hash string `json:"hash,omitempty"` - - // SizeBytes: The size of the contents. While this is not strictly - // required as part of an identifier (after all, any given hash will - // have exactly one canonical size), it's useful in almost all cases - // when one might want to send or retrieve blobs of content and is - // included here for this reason. + // SizeBytes: The size of the contents. While this is not strictly required as + // part of an identifier (after all, any given hash will have exactly one + // canonical size), it's useful in almost all cases when one might want to send + // or retrieve blobs of content and is included here for this reason. SizeBytes int64 `json:"sizeBytes,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Hash") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hash") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Hash") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Hash") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2Digest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2Digest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2Digest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2Directory: The contents of a -// directory. Similar to the equivalent message in the Remote Execution -// API. +// GoogleDevtoolsRemoteworkersV1test2Directory: The contents of a directory. +// Similar to the equivalent message in the Remote Execution API. type GoogleDevtoolsRemoteworkersV1test2Directory struct { // Directories: Any subdirectories Directories []*GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata `json:"directories,omitempty"` - // Files: The files in this directory Files []*GoogleDevtoolsRemoteworkersV1test2FileMetadata `json:"files,omitempty"` - // ForceSendFields is a list of field names (e.g. "Directories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2Directory) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2Directory) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2Directory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata: The metadata for -// a directory. Similar to the equivalent message in the Remote -// Execution API. +// GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata: The metadata for a +// directory. Similar to the equivalent message in the Remote Execution API. type GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata struct { // Digest: A pointer to the contents of the directory, in the form of a // marshalled Directory message. Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"` - // Path: The path of the directory, as in FileMetadata.path. Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2FileMetadata: The metadata for a -// file. Similar to the equivalent message in the Remote Execution API. +// GoogleDevtoolsRemoteworkersV1test2FileMetadata: The metadata for a file. +// Similar to the equivalent message in the Remote Execution API. type GoogleDevtoolsRemoteworkersV1test2FileMetadata struct { // Contents: If the file is small enough, its contents may also or // alternatively be listed here. Contents string `json:"contents,omitempty"` - - // Digest: A pointer to the contents of the file. The method by which a - // client retrieves the contents from a CAS system is not defined here. + // Digest: A pointer to the contents of the file. The method by which a client + // retrieves the contents from a CAS system is not defined here. Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"` - // IsExecutable: Properties of the file IsExecutable bool `json:"isExecutable,omitempty"` - // Path: The path of this file. If this message is part of the - // CommandOutputs.outputs fields, the path is relative to the execution - // root and must correspond to an entry in CommandTask.outputs.files. If - // this message is part of a Directory message, then the path is - // relative to the root of that directory. All paths MUST be delimited - // by forward slashes. + // CommandOutputs.outputs fields, the path is relative to the execution root + // and must correspond to an entry in CommandTask.outputs.files. If this + // message is part of a Directory message, then the path is relative to the + // root of that directory. All paths MUST be delimited by forward slashes. Path string `json:"path,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2FileMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2FileMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2FileMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningOperation: This resource represents a long-running // operation that is the result of a network API call. type GoogleLongrunningOperation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleRpcStatus: The `Status` type defines a logical error model that -// is suitable for different programming environments, including REST -// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// GoogleRpcStatus: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs and RPC +// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message +// contains three pieces of data: error code, error message, and error details. +// You can find out more about this error model and how to work with it in the +// API Design Guide (https://cloud.google.com/apis/design/errors). type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { +func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleRpcStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "remotebuildexecution.projects.instances.create": - type ProjectsInstancesCreateCall struct { s *Service parent string @@ -3429,13 +2775,13 @@ type ProjectsInstancesCreateCall struct { header_ http.Header } -// Create: Creates a new instance in the specified region. Returns a -// long running operation which contains an instance on completion. -// While the long running operation is in progress, any call to -// `GetInstance` returns an instance in state `CREATING`. +// Create: Creates a new instance in the specified region. Returns a long +// running operation which contains an instance on completion. While the long +// running operation is in progress, any call to `GetInstance` returns an +// instance in state `CREATING`. // -// - parent: Resource name of the project containing the instance. -// Format: `projects/[PROJECT_ID]`. +// - parent: Resource name of the project containing the instance. Format: +// `projects/[PROJECT_ID]`. func (r *ProjectsInstancesService) Create(parent string, googledevtoolsremotebuildexecutionadminv1alphacreateinstancerequest *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) *ProjectsInstancesCreateCall { c := &ProjectsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3444,23 +2790,21 @@ func (r *ProjectsInstancesService) Create(parent string, googledevtoolsremotebui } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsInstancesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesCreateCall) Context(ctx context.Context) *ProjectsInstancesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3469,18 +2813,12 @@ func (c *ProjectsInstancesCreateCall) Header() http.Header { } func (c *ProjectsInstancesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googledevtoolsremotebuildexecutionadminv1alphacreateinstancerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/instances") @@ -3493,16 +2831,15 @@ func (c *ProjectsInstancesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.instances.create" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3510,17 +2847,17 @@ func (c *ProjectsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleL if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -3533,38 +2870,7 @@ func (c *ProjectsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleL return nil, err } return ret, nil - // { - // "description": "Creates a new instance in the specified region. Returns a long running operation which contains an instance on completion. While the long running operation is in progress, any call to `GetInstance` returns an instance in state `CREATING`.", - // "flatPath": "v1alpha/projects/{projectsId}/instances", - // "httpMethod": "POST", - // "id": "remotebuildexecution.projects.instances.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Resource name of the project containing the instance. Format: `projects/[PROJECT_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/instances", - // "request": { - // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.projects.instances.delete": +} type ProjectsInstancesDeleteCall struct { s *Service @@ -3574,10 +2880,9 @@ type ProjectsInstancesDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified instance. Returns a long running -// operation which contains a `google.protobuf.Empty` response on -// completion. Deleting an instance with worker pools in it will delete -// these worker pools. +// Delete: Deletes the specified instance. Returns a long running operation +// which contains a `google.protobuf.Empty` response on completion. Deleting an +// instance with worker pools in it will delete these worker pools. // // - name: Name of the instance to delete. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. @@ -3588,23 +2893,21 @@ func (r *ProjectsInstancesService) Delete(name string) *ProjectsInstancesDeleteC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsInstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesDeleteCall) Context(ctx context.Context) *ProjectsInstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3613,12 +2916,7 @@ func (c *ProjectsInstancesDeleteCall) Header() http.Header { } func (c *ProjectsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3632,16 +2930,15 @@ func (c *ProjectsInstancesDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.instances.delete" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3649,17 +2946,17 @@ func (c *ProjectsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleL if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -3672,35 +2969,7 @@ func (c *ProjectsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleL return nil, err } return ret, nil - // { - // "description": "Deletes the specified instance. Returns a long running operation which contains a `google.protobuf.Empty` response on completion. Deleting an instance with worker pools in it will delete these worker pools.", - // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}", - // "httpMethod": "DELETE", - // "id": "remotebuildexecution.projects.instances.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the instance to delete. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.projects.instances.get": +} type ProjectsInstancesGetCall struct { s *Service @@ -3722,33 +2991,29 @@ func (r *ProjectsInstancesService) Get(name string) *ProjectsInstancesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesGetCall) Context(ctx context.Context) *ProjectsInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3757,12 +3022,7 @@ func (c *ProjectsInstancesGetCall) Header() http.Header { } func (c *ProjectsInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3779,19 +3039,17 @@ func (c *ProjectsInstancesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.instances.get" call. -// Exactly one of -// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3799,17 +3057,17 @@ func (c *ProjectsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleDevt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance{ ServerResponse: googleapi.ServerResponse{ @@ -3822,35 +3080,7 @@ func (c *ProjectsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleDevt return nil, err } return ret, nil - // { - // "description": "Returns the specified instance.", - // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}", - // "httpMethod": "GET", - // "id": "remotebuildexecution.projects.instances.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the instance to retrieve. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.projects.instances.list": +} type ProjectsInstancesListCall struct { s *Service @@ -3863,8 +3093,7 @@ type ProjectsInstancesListCall struct { // List: Lists instances in a project. // -// - parent: Resource name of the project. Format: -// `projects/[PROJECT_ID]`. +// - parent: Resource name of the project. Format: `projects/[PROJECT_ID]`. func (r *ProjectsInstancesService) List(parent string) *ProjectsInstancesListCall { c := &ProjectsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3872,33 +3101,29 @@ func (r *ProjectsInstancesService) List(parent string) *ProjectsInstancesListCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsInstancesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsInstancesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesListCall) Context(ctx context.Context) *ProjectsInstancesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3907,12 +3132,7 @@ func (c *ProjectsInstancesListCall) Header() http.Header { } func (c *ProjectsInstancesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3929,19 +3149,15 @@ func (c *ProjectsInstancesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.instances.list" call. -// Exactly one of -// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse.S -// erverResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse.ServerRe +// sponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3949,17 +3165,17 @@ func (c *ProjectsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleDev if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3972,35 +3188,7 @@ func (c *ProjectsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleDev return nil, err } return ret, nil - // { - // "description": "Lists instances in a project.", - // "flatPath": "v1alpha/projects/{projectsId}/instances", - // "httpMethod": "GET", - // "id": "remotebuildexecution.projects.instances.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Resource name of the project. Format: `projects/[PROJECT_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/instances", - // "response": { - // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.projects.instances.patch": +} type ProjectsInstancesPatchCall struct { s *Service @@ -4011,9 +3199,8 @@ type ProjectsInstancesPatchCall struct { header_ http.Header } -// Patch: Updates the specified instance. Returns a long running -// operation which contains the updated instance in the response on -// completion. +// Patch: Updates the specified instance. Returns a long running operation +// which contains the updated instance in the response on completion. // // - name: Output only. Instance resource name formatted as: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be @@ -4026,52 +3213,50 @@ func (r *ProjectsInstancesService) Patch(name string, googledevtoolsremotebuilde return c } -// LoggingEnabled sets the optional parameter "loggingEnabled": -// Deprecated, use instance.logging_enabled instead. Whether to enable -// Stackdriver logging for this instance. +// LoggingEnabled sets the optional parameter "loggingEnabled": Deprecated, use +// instance.logging_enabled instead. Whether to enable Stackdriver logging for +// this instance. func (c *ProjectsInstancesPatchCall) LoggingEnabled(loggingEnabled bool) *ProjectsInstancesPatchCall { c.urlParams_.Set("loggingEnabled", fmt.Sprint(loggingEnabled)) return c } -// Name1 sets the optional parameter "name1": Deprecated, use -// instance.Name instead. Name of the instance to update. Format: +// Name1 sets the optional parameter "name1": Deprecated, use instance.Name +// instead. Name of the instance to update. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. func (c *ProjectsInstancesPatchCall) Name1(name1 string) *ProjectsInstancesPatchCall { c.urlParams_.Set("name1", name1) return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to instance. For the `FieldMask` definition, see +// UpdateMask sets the optional parameter "updateMask": The update mask applies +// to instance. For the `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask -// If an empty update_mask is provided, only the non-default valued -// field in the worker pool field will be updated. Note that in order to -// update a field to the default value (zero, false, empty string) an -// explicit update_mask must be provided. +// If an empty update_mask is provided, only the non-default valued field in +// the worker pool field will be updated. Note that in order to update a field +// to the default value (zero, false, empty string) an explicit update_mask +// must be provided. func (c *ProjectsInstancesPatchCall) UpdateMask(updateMask string) *ProjectsInstancesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsInstancesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesPatchCall) Context(ctx context.Context) *ProjectsInstancesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4080,18 +3265,12 @@ func (c *ProjectsInstancesPatchCall) Header() http.Header { } func (c *ProjectsInstancesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googledevtoolsremotebuildexecutionadminv1alphainstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -4104,16 +3283,15 @@ func (c *ProjectsInstancesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.instances.patch" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4121,17 +3299,17 @@ func (c *ProjectsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -4144,54 +3322,7 @@ func (c *ProjectsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLo return nil, err } return ret, nil - // { - // "description": "Updates the specified instance. Returns a long running operation which contains the updated instance in the response on completion.", - // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}", - // "httpMethod": "PATCH", - // "id": "remotebuildexecution.projects.instances.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "loggingEnabled": { - // "description": "Deprecated, use instance.logging_enabled instead. Whether to enable Stackdriver logging for this instance.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Output only. Instance resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be populated when creating an instance since it is provided in the `instance_id` field.", - // "location": "path", - // "pattern": "^projects/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "name1": { - // "description": "Deprecated, use instance.Name instead. Name of the instance to update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "The update mask applies to instance. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If an empty update_mask is provided, only the non-default valued field in the worker pool field will be updated. Note that in order to update a field to the default value (zero, false, empty string) an explicit update_mask must be provided.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.projects.instances.workerpools.create": +} type ProjectsInstancesWorkerpoolsCreateCall struct { s *Service @@ -4202,15 +3333,13 @@ type ProjectsInstancesWorkerpoolsCreateCall struct { header_ http.Header } -// Create: Creates a new worker pool with a specified size and -// configuration. Returns a long running operation which contains a -// worker pool on completion. While the long running operation is in -// progress, any call to `GetWorkerPool` returns a worker pool in state -// `CREATING`. +// Create: Creates a new worker pool with a specified size and configuration. +// Returns a long running operation which contains a worker pool on completion. +// While the long running operation is in progress, any call to `GetWorkerPool` +// returns a worker pool in state `CREATING`. // -// - parent: Resource name of the instance in which to create the new -// worker pool. Format: -// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. +// - parent: Resource name of the instance in which to create the new worker +// pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. func (r *ProjectsInstancesWorkerpoolsService) Create(parent string, googledevtoolsremotebuildexecutionadminv1alphacreateworkerpoolrequest *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) *ProjectsInstancesWorkerpoolsCreateCall { c := &ProjectsInstancesWorkerpoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4219,23 +3348,21 @@ func (r *ProjectsInstancesWorkerpoolsService) Create(parent string, googledevtoo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesWorkerpoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsInstancesWorkerpoolsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesWorkerpoolsCreateCall) Context(ctx context.Context) *ProjectsInstancesWorkerpoolsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesWorkerpoolsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4244,18 +3371,12 @@ func (c *ProjectsInstancesWorkerpoolsCreateCall) Header() http.Header { } func (c *ProjectsInstancesWorkerpoolsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googledevtoolsremotebuildexecutionadminv1alphacreateworkerpoolrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/workerpools") @@ -4268,16 +3389,15 @@ func (c *ProjectsInstancesWorkerpoolsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.instances.workerpools.create" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsInstancesWorkerpoolsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4285,17 +3405,17 @@ func (c *ProjectsInstancesWorkerpoolsCreateCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -4308,38 +3428,7 @@ func (c *ProjectsInstancesWorkerpoolsCreateCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Creates a new worker pool with a specified size and configuration. Returns a long running operation which contains a worker pool on completion. While the long running operation is in progress, any call to `GetWorkerPool` returns a worker pool in state `CREATING`.", - // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools", - // "httpMethod": "POST", - // "id": "remotebuildexecution.projects.instances.workerpools.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Resource name of the instance in which to create the new worker pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/workerpools", - // "request": { - // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.projects.instances.workerpools.delete": +} type ProjectsInstancesWorkerpoolsDeleteCall struct { s *Service @@ -4349,14 +3438,13 @@ type ProjectsInstancesWorkerpoolsDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified worker pool. Returns a long running -// operation, which contains a `google.protobuf.Empty` response on -// completion. While the long running operation is in progress, any call -// to `GetWorkerPool` returns a worker pool in state `DELETING`. +// Delete: Deletes the specified worker pool. Returns a long running operation, +// which contains a `google.protobuf.Empty` response on completion. While the +// long running operation is in progress, any call to `GetWorkerPool` returns a +// worker pool in state `DELETING`. // // - name: Name of the worker pool to delete. Format: -// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID] -// `. +// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. func (r *ProjectsInstancesWorkerpoolsService) Delete(name string) *ProjectsInstancesWorkerpoolsDeleteCall { c := &ProjectsInstancesWorkerpoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4364,23 +3452,21 @@ func (r *ProjectsInstancesWorkerpoolsService) Delete(name string) *ProjectsInsta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesWorkerpoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsInstancesWorkerpoolsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesWorkerpoolsDeleteCall) Context(ctx context.Context) *ProjectsInstancesWorkerpoolsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesWorkerpoolsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4389,12 +3475,7 @@ func (c *ProjectsInstancesWorkerpoolsDeleteCall) Header() http.Header { } func (c *ProjectsInstancesWorkerpoolsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4408,16 +3489,15 @@ func (c *ProjectsInstancesWorkerpoolsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.instances.workerpools.delete" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsInstancesWorkerpoolsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4425,17 +3505,17 @@ func (c *ProjectsInstancesWorkerpoolsDeleteCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -4448,35 +3528,7 @@ func (c *ProjectsInstancesWorkerpoolsDeleteCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Deletes the specified worker pool. Returns a long running operation, which contains a `google.protobuf.Empty` response on completion. While the long running operation is in progress, any call to `GetWorkerPool` returns a worker pool in state `DELETING`.", - // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools/{workerpoolsId}", - // "httpMethod": "DELETE", - // "id": "remotebuildexecution.projects.instances.workerpools.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the worker pool to delete. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/instances/[^/]+/workerpools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.projects.instances.workerpools.get": +} type ProjectsInstancesWorkerpoolsGetCall struct { s *Service @@ -4490,8 +3542,7 @@ type ProjectsInstancesWorkerpoolsGetCall struct { // Get: Returns the specified worker pool. // // - name: Name of the worker pool to retrieve. Format: -// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID] -// `. +// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. func (r *ProjectsInstancesWorkerpoolsService) Get(name string) *ProjectsInstancesWorkerpoolsGetCall { c := &ProjectsInstancesWorkerpoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4499,33 +3550,29 @@ func (r *ProjectsInstancesWorkerpoolsService) Get(name string) *ProjectsInstance } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesWorkerpoolsGetCall) Fields(s ...googleapi.Field) *ProjectsInstancesWorkerpoolsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsInstancesWorkerpoolsGetCall) IfNoneMatch(entityTag string) *ProjectsInstancesWorkerpoolsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesWorkerpoolsGetCall) Context(ctx context.Context) *ProjectsInstancesWorkerpoolsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesWorkerpoolsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4534,12 +3581,7 @@ func (c *ProjectsInstancesWorkerpoolsGetCall) Header() http.Header { } func (c *ProjectsInstancesWorkerpoolsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4556,19 +3598,15 @@ func (c *ProjectsInstancesWorkerpoolsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.instances.workerpools.get" call. -// Exactly one of -// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.ServerRespon -// se.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.ServerResponse.Head +// er or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsInstancesWorkerpoolsGetCall) Do(opts ...googleapi.CallOption) (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4576,17 +3614,17 @@ func (c *ProjectsInstancesWorkerpoolsGetCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool{ ServerResponse: googleapi.ServerResponse{ @@ -4599,35 +3637,7 @@ func (c *ProjectsInstancesWorkerpoolsGetCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Returns the specified worker pool.", - // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools/{workerpoolsId}", - // "httpMethod": "GET", - // "id": "remotebuildexecution.projects.instances.workerpools.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the worker pool to retrieve. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/instances/[^/]+/workerpools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.projects.instances.workerpools.list": +} type ProjectsInstancesWorkerpoolsListCall struct { s *Service @@ -4649,55 +3659,49 @@ func (r *ProjectsInstancesWorkerpoolsService) List(parent string) *ProjectsInsta } // Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. The expression must specify -// the field name, a comparison operator, and the value that you want to -// use for filtering. The value must be a string, a number, or a -// boolean. String values are case-insensitive. The comparison operator -// must be either `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. The `:` -// operator can be used with string fields to match substrings. For -// non-string fields it is equivalent to the `=` operator. The `:*` -// comparison can be used to test whether a key has been defined. You -// can also filter on nested fields. To filter on multiple expressions, -// you can separate expression using `AND` and `OR` operators, using -// parentheses to specify precedence. If neither operator is specified, -// `AND` is assumed. Examples: Include only pools with more than 100 -// reserved workers: `(worker_count > 100) (worker_config.reserved = -// true)` Include only pools with a certain label or machines of the -// e2-standard family: `worker_config.labels.key1 : * OR -// worker_config.machine_type: e2-standard` +// filters resources listed in the response. The expression must specify the +// field name, a comparison operator, and the value that you want to use for +// filtering. The value must be a string, a number, or a boolean. String values +// are case-insensitive. The comparison operator must be either `:`, `=`, `!=`, +// `>`, `>=`, `<=` or `<`. The `:` operator can be used with string fields to +// match substrings. For non-string fields it is equivalent to the `=` +// operator. The `:*` comparison can be used to test whether a key has been +// defined. You can also filter on nested fields. To filter on multiple +// expressions, you can separate expression using `AND` and `OR` operators, +// using parentheses to specify precedence. If neither operator is specified, +// `AND` is assumed. Examples: Include only pools with more than 100 reserved +// workers: `(worker_count > 100) (worker_config.reserved = true)` Include only +// pools with a certain label or machines of the e2-standard family: +// `worker_config.labels.key1 : * OR worker_config.machine_type: e2-standard` func (c *ProjectsInstancesWorkerpoolsListCall) Filter(filter string) *ProjectsInstancesWorkerpoolsListCall { c.urlParams_.Set("filter", filter) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesWorkerpoolsListCall) Fields(s ...googleapi.Field) *ProjectsInstancesWorkerpoolsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsInstancesWorkerpoolsListCall) IfNoneMatch(entityTag string) *ProjectsInstancesWorkerpoolsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesWorkerpoolsListCall) Context(ctx context.Context) *ProjectsInstancesWorkerpoolsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesWorkerpoolsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4706,12 +3710,7 @@ func (c *ProjectsInstancesWorkerpoolsListCall) Header() http.Header { } func (c *ProjectsInstancesWorkerpoolsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4728,21 +3727,15 @@ func (c *ProjectsInstancesWorkerpoolsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.instances.workerpools.list" call. -// Exactly one of -// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse -// -// or error will be non-nil. Any non-2xx status code is an error. -// -// Response headers are in either -// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse -// .ServerResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse.Server +// Response.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsInstancesWorkerpoolsListCall) Do(opts ...googleapi.CallOption) (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4750,17 +3743,17 @@ func (c *ProjectsInstancesWorkerpoolsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4773,40 +3766,7 @@ func (c *ProjectsInstancesWorkerpoolsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists worker pools in an instance.", - // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools", - // "httpMethod": "GET", - // "id": "remotebuildexecution.projects.instances.workerpools.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. String values are case-insensitive. The comparison operator must be either `:`, `=`, `!=`, `\u003e`, `\u003e=`, `\u003c=` or `\u003c`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. You can also filter on nested fields. To filter on multiple expressions, you can separate expression using `AND` and `OR` operators, using parentheses to specify precedence. If neither operator is specified, `AND` is assumed. Examples: Include only pools with more than 100 reserved workers: `(worker_count \u003e 100) (worker_config.reserved = true)` Include only pools with a certain label or machines of the e2-standard family: `worker_config.labels.key1 : * OR worker_config.machine_type: e2-standard`", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Resource name of the instance. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}/workerpools", - // "response": { - // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.projects.instances.workerpools.patch": +} type ProjectsInstancesWorkerpoolsPatchCall struct { s *Service @@ -4818,15 +3778,14 @@ type ProjectsInstancesWorkerpoolsPatchCall struct { } // Patch: Updates an existing worker pool with a specified size and/or -// configuration. Returns a long running operation, which contains a -// worker pool on completion. While the long running operation is in -// progress, any call to `GetWorkerPool` returns a worker pool in state -// `UPDATING`. +// configuration. Returns a long running operation, which contains a worker +// pool on completion. While the long running operation is in progress, any +// call to `GetWorkerPool` returns a worker pool in state `UPDATING`. // // - name: WorkerPool resource name formatted as: -// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID] -// `. name should not be populated when creating a worker pool since -// it is provided in the `poolId` field. +// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. +// name should not be populated when creating a worker pool since it is +// provided in the `poolId` field. func (r *ProjectsInstancesWorkerpoolsService) Patch(name string, googledevtoolsremotebuildexecutionadminv1alphaupdateworkerpoolrequest *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) *ProjectsInstancesWorkerpoolsPatchCall { c := &ProjectsInstancesWorkerpoolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4835,23 +3794,21 @@ func (r *ProjectsInstancesWorkerpoolsService) Patch(name string, googledevtoolsr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesWorkerpoolsPatchCall) Fields(s ...googleapi.Field) *ProjectsInstancesWorkerpoolsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesWorkerpoolsPatchCall) Context(ctx context.Context) *ProjectsInstancesWorkerpoolsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesWorkerpoolsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4860,18 +3817,12 @@ func (c *ProjectsInstancesWorkerpoolsPatchCall) Header() http.Header { } func (c *ProjectsInstancesWorkerpoolsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googledevtoolsremotebuildexecutionadminv1alphaupdateworkerpoolrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") @@ -4884,16 +3835,15 @@ func (c *ProjectsInstancesWorkerpoolsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.instances.workerpools.patch" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsInstancesWorkerpoolsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4901,17 +3851,17 @@ func (c *ProjectsInstancesWorkerpoolsPatchCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -4924,38 +3874,7 @@ func (c *ProjectsInstancesWorkerpoolsPatchCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Updates an existing worker pool with a specified size and/or configuration. Returns a long running operation, which contains a worker pool on completion. While the long running operation is in progress, any call to `GetWorkerPool` returns a worker pool in state `UPDATING`.", - // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools/{workerpoolsId}", - // "httpMethod": "PATCH", - // "id": "remotebuildexecution.projects.instances.workerpools.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "WorkerPool resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name should not be populated when creating a worker pool since it is provided in the `poolId` field.", - // "location": "path", - // "pattern": "^projects/[^/]+/instances/[^/]+/workerpools/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "request": { - // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.projects.operations.get": +} type ProjectsOperationsGetCall struct { s *Service @@ -4966,9 +3885,9 @@ type ProjectsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall { @@ -4978,33 +3897,29 @@ func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5013,12 +3928,7 @@ func (c *ProjectsOperationsGetCall) Header() http.Header { } func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5035,16 +3945,15 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.projects.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5052,17 +3961,17 @@ func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -5075,30 +3984,4 @@ func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLon return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1alpha/projects/{projectsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "remotebuildexecution.projects.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/remotebuildexecution/v2/remotebuildexecution-gen.go b/remotebuildexecution/v2/remotebuildexecution-gen.go index c0d2ebc1b03..7373c664a3a 100644 --- a/remotebuildexecution/v2/remotebuildexecution-gen.go +++ b/remotebuildexecution/v2/remotebuildexecution-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/remote-build-execution/docs/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package remotebuildexecution // import "google.golang.org/api/remotebuildexecution/v2" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "remotebuildexecution:v2" const apiName = "remotebuildexecution" const apiVersion = "v2" const basePath = "https://remotebuildexecution.googleapis.com/" +const basePathTemplate = "https://remotebuildexecution.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://remotebuildexecution.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -192,338 +210,273 @@ type V2Service struct { s *Service } -// BuildBazelRemoteExecutionV2Action: An `Action` captures all the -// information about an execution which is required to reproduce it. -// `Action`s are the core component of the [Execution] service. A single -// `Action` represents a repeatable action that can be performed by the -// execution service. `Action`s can be succinctly identified by the -// digest of their wire format encoding and, once an `Action` has been -// executed, will be cached in the action cache. Future requests can -// then use the cached result rather than needing to run afresh. When a -// server completes execution of an Action, it MAY choose to cache the -// result in the ActionCache unless `do_not_cache` is `true`. Clients -// SHOULD expect the server to do so. By default, future calls to -// Execute the same `Action` will also serve their results from the -// cache. Clients must take care to understand the caching behaviour. -// Ideally, all `Action`s will be reproducible so that serving a result -// from cache is always desirable and correct. +// BuildBazelRemoteExecutionV2Action: An `Action` captures all the information +// about an execution which is required to reproduce it. `Action`s are the core +// component of the [Execution] service. A single `Action` represents a +// repeatable action that can be performed by the execution service. `Action`s +// can be succinctly identified by the digest of their wire format encoding +// and, once an `Action` has been executed, will be cached in the action cache. +// Future requests can then use the cached result rather than needing to run +// afresh. When a server completes execution of an Action, it MAY choose to +// cache the result in the ActionCache unless `do_not_cache` is `true`. Clients +// SHOULD expect the server to do so. By default, future calls to Execute the +// same `Action` will also serve their results from the cache. Clients must +// take care to understand the caching behaviour. Ideally, all `Action`s will +// be reproducible so that serving a result from cache is always desirable and +// correct. type BuildBazelRemoteExecutionV2Action struct { - // CommandDigest: The digest of the Command to run, which MUST be - // present in the ContentAddressableStorage. + // CommandDigest: The digest of the Command to run, which MUST be present in + // the ContentAddressableStorage. CommandDigest *BuildBazelRemoteExecutionV2Digest `json:"commandDigest,omitempty"` - // DoNotCache: If true, then the `Action`'s result cannot be cached, and // in-flight requests for the same `Action` may not be merged. DoNotCache bool `json:"doNotCache,omitempty"` - - // InputRootDigest: The digest of the root Directory for the input - // files. The files in the directory tree are available in the correct - // location on the build machine before the command is executed. The - // root directory, as well as every subdirectory and content blob - // referred to, MUST be in the ContentAddressableStorage. + // InputRootDigest: The digest of the root Directory for the input files. The + // files in the directory tree are available in the correct location on the + // build machine before the command is executed. The root directory, as well as + // every subdirectory and content blob referred to, MUST be in the + // ContentAddressableStorage. InputRootDigest *BuildBazelRemoteExecutionV2Digest `json:"inputRootDigest,omitempty"` - - // Platform: The optional platform requirements for the execution - // environment. The server MAY choose to execute the action on any - // worker satisfying the requirements, so the client SHOULD ensure that - // running the action on any such worker will have the same result. A - // detailed lexicon for this can be found in the accompanying - // platform.md. New in version 2.2: clients SHOULD set these platform - // properties as well as those in the Command. Servers SHOULD prefer - // those set here. + // Platform: The optional platform requirements for the execution environment. + // The server MAY choose to execute the action on any worker satisfying the + // requirements, so the client SHOULD ensure that running the action on any + // such worker will have the same result. A detailed lexicon for this can be + // found in the accompanying platform.md. New in version 2.2: clients SHOULD + // set these platform properties as well as those in the Command. Servers + // SHOULD prefer those set here. Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"` - - // Salt: An optional additional salt value used to place this `Action` - // into a separate cache namespace from other instances having the same - // field contents. This salt typically comes from operational - // configuration specific to sources such as repo and service - // configuration, and allows disowning an entire set of ActionResults - // that might have been poisoned by buggy software or tool failures. + // Salt: An optional additional salt value used to place this `Action` into a + // separate cache namespace from other instances having the same field + // contents. This salt typically comes from operational configuration specific + // to sources such as repo and service configuration, and allows disowning an + // entire set of ActionResults that might have been poisoned by buggy software + // or tool failures. Salt string `json:"salt,omitempty"` - // Timeout: A timeout after which the execution should be killed. If the - // timeout is absent, then the client is specifying that the execution - // should continue as long as the server will let it. The server SHOULD - // impose a timeout if the client does not specify one, however, if the - // client does specify a timeout that is longer than the server's - // maximum timeout, the server MUST reject the request. The timeout is a - // part of the Action message, and therefore two `Actions` with - // different timeouts are different, even if they are otherwise - // identical. This is because, if they were not, running an `Action` - // with a lower timeout than is required might result in a cache hit + // timeout is absent, then the client is specifying that the execution should + // continue as long as the server will let it. The server SHOULD impose a + // timeout if the client does not specify one, however, if the client does + // specify a timeout that is longer than the server's maximum timeout, the + // server MUST reject the request. The timeout is a part of the Action message, + // and therefore two `Actions` with different timeouts are different, even if + // they are otherwise identical. This is because, if they were not, running an + // `Action` with a lower timeout than is required might result in a cache hit // from an execution run with a longer timeout, hiding the fact that the - // timeout is too short. By encoding it directly in the `Action`, a - // lower timeout will result in a cache miss and the execution timeout - // will fail immediately, rather than whenever the cache entry gets - // evicted. + // timeout is too short. By encoding it directly in the `Action`, a lower + // timeout will result in a cache miss and the execution timeout will fail + // immediately, rather than whenever the cache entry gets evicted. Timeout string `json:"timeout,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommandDigest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommandDigest") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CommandDigest") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Action) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Action) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Action - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities: Describes -// the server/instance capabilities for updating the action cache. +// BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities: Describes the +// server/instance capabilities for updating the action cache. type BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities struct { UpdateEnabled bool `json:"updateEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. "UpdateEnabled") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "UpdateEnabled") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "UpdateEnabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ActionResult: An ActionResult represents -// the result of an Action being run. It is advised that at least one -// field (for example `ActionResult.execution_metadata.Worker`) have a -// non-default value, to ensure that the serialized value is non-empty, -// which can then be used as a basic data sanity check. +// BuildBazelRemoteExecutionV2ActionResult: An ActionResult represents the +// result of an Action being run. It is advised that at least one field (for +// example `ActionResult.execution_metadata.Worker`) have a non-default value, +// to ensure that the serialized value is non-empty, which can then be used as +// a basic data sanity check. type BuildBazelRemoteExecutionV2ActionResult struct { - // ExecutionMetadata: The details of the execution that originally - // produced this result. + // ExecutionMetadata: The details of the execution that originally produced + // this result. ExecutionMetadata *BuildBazelRemoteExecutionV2ExecutedActionMetadata `json:"executionMetadata,omitempty"` - // ExitCode: The exit code of the command. ExitCode int64 `json:"exitCode,omitempty"` - - // OutputDirectories: The output directories of the action. For each - // output directory requested in the `output_directories` or - // `output_paths` field of the Action, if the corresponding directory - // existed after the action completed, a single entry will be present in - // the output list, which will contain the digest of a Tree message - // containing the directory tree, and the path equal exactly to the - // corresponding Action output_directories member. As an example, - // suppose the Action had an output directory `a/b/dir` and the - // execution produced the following contents in `a/b/dir`: a file named - // `bar` and a directory named `foo` with an executable file named - // `baz`. Then, output_directory will contain (hashes shortened for - // readability): ```json // OutputDirectory proto: { path: "a/b/dir" - // tree_digest: { hash: "4a73bc9d03...", size: 55 } } // Tree proto with - // hash "4a73bc9d03..." and size 55: { root: { files: [ { name: "bar", - // digest: { hash: "4a73bc9d03...", size: 65534 } } ], directories: [ { - // name: "foo", digest: { hash: "4cf2eda940...", size: 43 } } ] } - // children : { // (Directory proto with hash "4cf2eda940..." and size - // 43) files: [ { name: "baz", digest: { hash: "b2c941073e...", size: - // 1294, }, is_executable: true } ] } } ``` If an output of the same - // name as listed in `output_files` of the Command was found in - // `output_directories`, but was not a directory, the server will return - // a FAILED_PRECONDITION. + // OutputDirectories: The output directories of the action. For each output + // directory requested in the `output_directories` or `output_paths` field of + // the Action, if the corresponding directory existed after the action + // completed, a single entry will be present in the output list, which will + // contain the digest of a Tree message containing the directory tree, and the + // path equal exactly to the corresponding Action output_directories member. As + // an example, suppose the Action had an output directory `a/b/dir` and the + // execution produced the following contents in `a/b/dir`: a file named `bar` + // and a directory named `foo` with an executable file named `baz`. Then, + // output_directory will contain (hashes shortened for readability): ```json // + // OutputDirectory proto: { path: "a/b/dir" tree_digest: { hash: + // "4a73bc9d03...", size: 55 } } // Tree proto with hash "4a73bc9d03..." and + // size 55: { root: { files: [ { name: "bar", digest: { hash: "4a73bc9d03...", + // size: 65534 } } ], directories: [ { name: "foo", digest: { hash: + // "4cf2eda940...", size: 43 } } ] } children : { // (Directory proto with hash + // "4cf2eda940..." and size 43) files: [ { name: "baz", digest: { hash: + // "b2c941073e...", size: 1294, }, is_executable: true } ] } } ``` If an output + // of the same name as listed in `output_files` of the Command was found in + // `output_directories`, but was not a directory, the server will return a + // FAILED_PRECONDITION. OutputDirectories []*BuildBazelRemoteExecutionV2OutputDirectory `json:"outputDirectories,omitempty"` - - // OutputDirectorySymlinks: The output directories of the action that - // are symbolic links to other directories. Those may be links to other - // output directories, or input directories, or even absolute paths - // outside of the working directory, if the server supports - // SymlinkAbsolutePathStrategy.ALLOWED. For each output directory - // requested in the `output_directories` field of the Action, if the - // directory existed after the action completed, a single entry will be - // present either in this field, or in the `output_directories` field, - // if the directory was not a symbolic link. If an output of the same - // name was found, but was a symbolic link to a file instead of a - // directory, the server will return a FAILED_PRECONDITION. If the - // action does not produce the requested output, then that output will - // be omitted from the list. The server is free to arrange the output - // list as desired; clients MUST NOT assume that the output list is - // sorted. DEPRECATED as of v2.1. Servers that wish to be compatible - // with v2.0 API should still populate this field in addition to - // `output_symlinks`. + // OutputDirectorySymlinks: The output directories of the action that are + // symbolic links to other directories. Those may be links to other output + // directories, or input directories, or even absolute paths outside of the + // working directory, if the server supports + // SymlinkAbsolutePathStrategy.ALLOWED. For each output directory requested in + // the `output_directories` field of the Action, if the directory existed after + // the action completed, a single entry will be present either in this field, + // or in the `output_directories` field, if the directory was not a symbolic + // link. If an output of the same name was found, but was a symbolic link to a + // file instead of a directory, the server will return a FAILED_PRECONDITION. + // If the action does not produce the requested output, then that output will + // be omitted from the list. The server is free to arrange the output list as + // desired; clients MUST NOT assume that the output list is sorted. DEPRECATED + // as of v2.1. Servers that wish to be compatible with v2.0 API should still + // populate this field in addition to `output_symlinks`. OutputDirectorySymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputDirectorySymlinks,omitempty"` - - // OutputFileSymlinks: The output files of the action that are symbolic - // links to other files. Those may be links to other output files, or - // input files, or even absolute paths outside of the working directory, - // if the server supports SymlinkAbsolutePathStrategy.ALLOWED. For each - // output file requested in the `output_files` or `output_paths` field - // of the Action, if the corresponding file existed after the action - // completed, a single entry will be present either in this field, or in - // the `output_files` field, if the file was not a symbolic link. If an - // output symbolic link of the same name as listed in `output_files` of - // the Command was found, but its target type was not a regular file, - // the server will return a FAILED_PRECONDITION. If the action does not - // produce the requested output, then that output will be omitted from - // the list. The server is free to arrange the output list as desired; - // clients MUST NOT assume that the output list is sorted. DEPRECATED as - // of v2.1. Servers that wish to be compatible with v2.0 API should - // still populate this field in addition to `output_symlinks`. + // OutputFileSymlinks: The output files of the action that are symbolic links + // to other files. Those may be links to other output files, or input files, or + // even absolute paths outside of the working directory, if the server supports + // SymlinkAbsolutePathStrategy.ALLOWED. For each output file requested in the + // `output_files` or `output_paths` field of the Action, if the corresponding + // file existed after the action completed, a single entry will be present + // either in this field, or in the `output_files` field, if the file was not a + // symbolic link. If an output symbolic link of the same name as listed in + // `output_files` of the Command was found, but its target type was not a + // regular file, the server will return a FAILED_PRECONDITION. If the action + // does not produce the requested output, then that output will be omitted from + // the list. The server is free to arrange the output list as desired; clients + // MUST NOT assume that the output list is sorted. DEPRECATED as of v2.1. + // Servers that wish to be compatible with v2.0 API should still populate this + // field in addition to `output_symlinks`. OutputFileSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputFileSymlinks,omitempty"` - - // OutputFiles: The output files of the action. For each output file - // requested in the `output_files` or `output_paths` field of the - // Action, if the corresponding file existed after the action completed, - // a single entry will be present either in this field, or the - // `output_file_symlinks` field if the file was a symbolic link to - // another file (`output_symlinks` field after v2.1). If an output - // listed in `output_files` was found, but was a directory rather than a - // regular file, the server will return a FAILED_PRECONDITION. If the - // action does not produce the requested output, then that output will - // be omitted from the list. The server is free to arrange the output - // list as desired; clients MUST NOT assume that the output list is - // sorted. + // OutputFiles: The output files of the action. For each output file requested + // in the `output_files` or `output_paths` field of the Action, if the + // corresponding file existed after the action completed, a single entry will + // be present either in this field, or the `output_file_symlinks` field if the + // file was a symbolic link to another file (`output_symlinks` field after + // v2.1). If an output listed in `output_files` was found, but was a directory + // rather than a regular file, the server will return a FAILED_PRECONDITION. If + // the action does not produce the requested output, then that output will be + // omitted from the list. The server is free to arrange the output list as + // desired; clients MUST NOT assume that the output list is sorted. OutputFiles []*BuildBazelRemoteExecutionV2OutputFile `json:"outputFiles,omitempty"` - // OutputSymlinks: New in v2.1: this field will only be populated if the - // command `output_paths` field was used, and not the pre v2.1 - // `output_files` or `output_directories` fields. The output paths of - // the action that are symbolic links to other paths. Those may be links - // to other outputs, or inputs, or even absolute paths outside of the - // working directory, if the server supports - // SymlinkAbsolutePathStrategy.ALLOWED. A single entry for each output - // requested in `output_paths` field of the Action, if the corresponding - // path existed after the action completed and was a symbolic link. If - // the action does not produce a requested output, then that output will - // be omitted from the list. The server is free to arrange the output - // list as desired; clients MUST NOT assume that the output list is - // sorted. + // command `output_paths` field was used, and not the pre v2.1 `output_files` + // or `output_directories` fields. The output paths of the action that are + // symbolic links to other paths. Those may be links to other outputs, or + // inputs, or even absolute paths outside of the working directory, if the + // server supports SymlinkAbsolutePathStrategy.ALLOWED. A single entry for each + // output requested in `output_paths` field of the Action, if the corresponding + // path existed after the action completed and was a symbolic link. If the + // action does not produce a requested output, then that output will be omitted + // from the list. The server is free to arrange the output list as desired; + // clients MUST NOT assume that the output list is sorted. OutputSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputSymlinks,omitempty"` - - // StderrDigest: The digest for a blob containing the standard error of - // the action, which can be retrieved from the - // ContentAddressableStorage. + // StderrDigest: The digest for a blob containing the standard error of the + // action, which can be retrieved from the ContentAddressableStorage. StderrDigest *BuildBazelRemoteExecutionV2Digest `json:"stderrDigest,omitempty"` - - // StderrRaw: The standard error buffer of the action. The server SHOULD - // NOT inline stderr unless requested by the client in the - // GetActionResultRequest message. The server MAY omit inlining, even if - // requested, and MUST do so if inlining would cause the response to - // exceed message size limits. + // StderrRaw: The standard error buffer of the action. The server SHOULD NOT + // inline stderr unless requested by the client in the GetActionResultRequest + // message. The server MAY omit inlining, even if requested, and MUST do so if + // inlining would cause the response to exceed message size limits. StderrRaw string `json:"stderrRaw,omitempty"` - - // StdoutDigest: The digest for a blob containing the standard output of - // the action, which can be retrieved from the - // ContentAddressableStorage. + // StdoutDigest: The digest for a blob containing the standard output of the + // action, which can be retrieved from the ContentAddressableStorage. StdoutDigest *BuildBazelRemoteExecutionV2Digest `json:"stdoutDigest,omitempty"` - - // StdoutRaw: The standard output buffer of the action. The server - // SHOULD NOT inline stdout unless requested by the client in the - // GetActionResultRequest message. The server MAY omit inlining, even if - // requested, and MUST do so if inlining would cause the response to - // exceed message size limits. + // StdoutRaw: The standard output buffer of the action. The server SHOULD NOT + // inline stdout unless requested by the client in the GetActionResultRequest + // message. The server MAY omit inlining, even if requested, and MUST do so if + // inlining would cause the response to exceed message size limits. StdoutRaw string `json:"stdoutRaw,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ExecutionMetadata") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ExecutionMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExecutionMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExecutionMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ActionResult) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ActionResult) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ActionResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2BatchReadBlobsRequest: A request message -// for ContentAddressableStorage.BatchReadBlobs. +// BuildBazelRemoteExecutionV2BatchReadBlobsRequest: A request message for +// ContentAddressableStorage.BatchReadBlobs. type BuildBazelRemoteExecutionV2BatchReadBlobsRequest struct { // Digests: The individual blob digests. Digests []*BuildBazelRemoteExecutionV2Digest `json:"digests,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digests") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digests") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Digests") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Digests") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2BatchReadBlobsRequest) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2BatchReadBlobsRequest) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2BatchReadBlobsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2BatchReadBlobsResponse: A response message -// for ContentAddressableStorage.BatchReadBlobs. +// BuildBazelRemoteExecutionV2BatchReadBlobsResponse: A response message for +// ContentAddressableStorage.BatchReadBlobs. type BuildBazelRemoteExecutionV2BatchReadBlobsResponse struct { // Responses: The responses to the requests. Responses []*BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse `json:"responses,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Responses") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Responses") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Responses") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2BatchReadBlobsResponse) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2BatchReadBlobsResponse) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2BatchReadBlobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse: A response @@ -531,63 +484,49 @@ func (s *BuildBazelRemoteExecutionV2BatchReadBlobsResponse) MarshalJSON() ([]byt type BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse struct { // Data: The raw binary data. Data string `json:"data,omitempty"` - // Digest: The digest to which this response corresponds. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // Status: The result of attempting to download that blob. Status *GoogleRpcStatus `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest: A request message -// for ContentAddressableStorage.BatchUpdateBlobs. +// BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest: A request message for +// ContentAddressableStorage.BatchUpdateBlobs. type BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest struct { // Requests: The individual upload requests. Requests []*BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest `json:"requests,omitempty"` - // ForceSendFields is a list of field names (e.g. "Requests") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Requests") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Requests") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest: A request @@ -595,113 +534,87 @@ func (s *BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest) MarshalJSON() ([]by type BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest struct { // Data: The raw binary data. Data string `json:"data,omitempty"` - // Digest: The digest of the blob. This MUST be the digest of `data`. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse: A response -// message for ContentAddressableStorage.BatchUpdateBlobs. +// BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse: A response message for +// ContentAddressableStorage.BatchUpdateBlobs. type BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse struct { // Responses: The responses to the requests. Responses []*BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse `json:"responses,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Responses") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Responses") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Responses") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse: A -// response corresponding to a single blob that the client tried to -// upload. +// BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse: A response +// corresponding to a single blob that the client tried to upload. type BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse struct { // Digest: The blob digest to which this response corresponds. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // Status: The result of attempting to upload that blob. Status *GoogleRpcStatus `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2CacheCapabilities: Capabilities of the -// remote cache system. +// BuildBazelRemoteExecutionV2CacheCapabilities: Capabilities of the remote +// cache system. type BuildBazelRemoteExecutionV2CacheCapabilities struct { - // ActionCacheUpdateCapabilities: Capabilities for updating the action - // cache. + // ActionCacheUpdateCapabilities: Capabilities for updating the action cache. ActionCacheUpdateCapabilities *BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities `json:"actionCacheUpdateCapabilities,omitempty"` - - // CachePriorityCapabilities: Supported cache priority range for both - // CAS and ActionCache. + // CachePriorityCapabilities: Supported cache priority range for both CAS and + // ActionCache. CachePriorityCapabilities *BuildBazelRemoteExecutionV2PriorityCapabilities `json:"cachePriorityCapabilities,omitempty"` - - // DigestFunction: All the digest functions supported by the remote - // cache. Remote cache may support multiple digest functions - // simultaneously. + // DigestFunction: All the digest functions supported by the remote cache. + // Remote cache may support multiple digest functions simultaneously. // // Possible values: // "UNKNOWN" - It is an error for the server to return this value. @@ -713,202 +626,166 @@ type BuildBazelRemoteExecutionV2CacheCapabilities struct { // . // "SHA384" - The SHA-384 digest function. // "SHA512" - The SHA-512 digest function. - // "MURMUR3" - Murmur3 128-bit digest function, x64 variant. Note that - // this is not a cryptographic hash function and its collision - // properties are not strongly guaranteed. See + // "MURMUR3" - Murmur3 128-bit digest function, x64 variant. Note that this + // is not a cryptographic hash function and its collision properties are not + // strongly guaranteed. See // https://github.com/aappleby/smhasher/wiki/MurmurHash3 . DigestFunction []string `json:"digestFunction,omitempty"` - // MaxBatchTotalSizeBytes: Maximum total size of blobs to be - // uploaded/downloaded using batch methods. A value of 0 means no limit - // is set, although in practice there will always be a message size - // limitation of the protocol in use, e.g. GRPC. + // uploaded/downloaded using batch methods. A value of 0 means no limit is set, + // although in practice there will always be a message size limitation of the + // protocol in use, e.g. GRPC. MaxBatchTotalSizeBytes int64 `json:"maxBatchTotalSizeBytes,omitempty,string"` - // SupportedCompressor: Compressors supported by the "compressed-blobs" - // bytestream resources. Servers MUST support identity/no-compression, - // even if it is not listed here. Note that this does not imply which if - // any compressors are supported by the server at the gRPC level. + // bytestream resources. Servers MUST support identity/no-compression, even if + // it is not listed here. Note that this does not imply which if any + // compressors are supported by the server at the gRPC level. // // Possible values: - // "IDENTITY" - No compression. Servers and clients MUST always - // support this, and do not need to advertise it. + // "IDENTITY" - No compression. Servers and clients MUST always support this, + // and do not need to advertise it. // "ZSTD" - Zstandard compression. SupportedCompressor []string `json:"supportedCompressor,omitempty"` - - // SymlinkAbsolutePathStrategy: Whether absolute symlink targets are - // supported. + // SymlinkAbsolutePathStrategy: Whether absolute symlink targets are supported. // // Possible values: // "UNKNOWN" - Invalid value. - // "DISALLOWED" - Server will return an `INVALID_ARGUMENT` on input - // symlinks with absolute targets. If an action tries to create an - // output symlink with an absolute target, a `FAILED_PRECONDITION` will - // be returned. - // "ALLOWED" - Server will allow symlink targets to escape the input - // root tree, possibly resulting in non-hermetic builds. + // "DISALLOWED" - Server will return an `INVALID_ARGUMENT` on input symlinks + // with absolute targets. If an action tries to create an output symlink with + // an absolute target, a `FAILED_PRECONDITION` will be returned. + // "ALLOWED" - Server will allow symlink targets to escape the input root + // tree, possibly resulting in non-hermetic builds. SymlinkAbsolutePathStrategy string `json:"symlinkAbsolutePathStrategy,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ActionCacheUpdateCapabilities") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "ActionCacheUpdateCapabilities") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ActionCacheUpdateCapabilities") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionCacheUpdateCapabilities") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2CacheCapabilities) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2CacheCapabilities) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2CacheCapabilities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2Command: A `Command` is the actual command // executed by a worker running an Action and specifications of its -// environment. Except as otherwise required, the environment (such as -// which system libraries or binaries are available, and what -// filesystems are mounted where) is defined by and specific to the -// implementation of the remote execution API. +// environment. Except as otherwise required, the environment (such as which +// system libraries or binaries are available, and what filesystems are mounted +// where) is defined by and specific to the implementation of the remote +// execution API. type BuildBazelRemoteExecutionV2Command struct { - // Arguments: The arguments to the command. The first argument must be - // the path to the executable, which must be either a relative path, in - // which case it is evaluated with respect to the input root, or an - // absolute path. + // Arguments: The arguments to the command. The first argument must be the path + // to the executable, which must be either a relative path, in which case it is + // evaluated with respect to the input root, or an absolute path. Arguments []string `json:"arguments,omitempty"` - - // EnvironmentVariables: The environment variables to set when running - // the program. The worker may provide its own default environment - // variables; these defaults can be overridden using this field. - // Additional variables can also be specified. In order to ensure that - // equivalent Commands always hash to the same value, the environment - // variables MUST be lexicographically sorted by name. Sorting of - // strings is done by code point, equivalently, by the UTF-8 bytes. + // EnvironmentVariables: The environment variables to set when running the + // program. The worker may provide its own default environment variables; these + // defaults can be overridden using this field. Additional variables can also + // be specified. In order to ensure that equivalent Commands always hash to the + // same value, the environment variables MUST be lexicographically sorted by + // name. Sorting of strings is done by code point, equivalently, by the UTF-8 + // bytes. EnvironmentVariables []*BuildBazelRemoteExecutionV2CommandEnvironmentVariable `json:"environmentVariables,omitempty"` - - // OutputDirectories: A list of the output directories that the client - // expects to retrieve from the action. Only the listed directories will - // be returned (an entire directory structure will be returned as a Tree - // message digest, see OutputDirectory), as well as files listed in - // `output_files`. Other files or directories that may be created during - // command execution are discarded. The paths are relative to the - // working directory of the action execution. The paths are specified - // using a single forward slash (`/`) as a path separator, even if the - // execution platform natively uses a different separator. The path MUST - // NOT include a trailing slash, nor a leading slash, being a relative + // OutputDirectories: A list of the output directories that the client expects + // to retrieve from the action. Only the listed directories will be returned + // (an entire directory structure will be returned as a Tree message digest, + // see OutputDirectory), as well as files listed in `output_files`. Other files + // or directories that may be created during command execution are discarded. + // The paths are relative to the working directory of the action execution. The + // paths are specified using a single forward slash (`/`) as a path separator, + // even if the execution platform natively uses a different separator. The path + // MUST NOT include a trailing slash, nor a leading slash, being a relative // path. The special value of empty string is allowed, although not - // recommended, and can be used to capture the entire working directory - // tree, including inputs. In order to ensure consistent hashing of the - // same Action, the output paths MUST be sorted lexicographically by - // code point (or, equivalently, by UTF-8 bytes). An output directory - // cannot be duplicated or have the same path as any of the listed - // output files. An output directory is allowed to be a parent of - // another output directory. Directories leading up to the output - // directories (but not the output directories themselves) are created - // by the worker prior to execution, even if they are not explicitly - // part of the input root. DEPRECATED since 2.1: Use `output_paths` - // instead. + // recommended, and can be used to capture the entire working directory tree, + // including inputs. In order to ensure consistent hashing of the same Action, + // the output paths MUST be sorted lexicographically by code point (or, + // equivalently, by UTF-8 bytes). An output directory cannot be duplicated or + // have the same path as any of the listed output files. An output directory is + // allowed to be a parent of another output directory. Directories leading up + // to the output directories (but not the output directories themselves) are + // created by the worker prior to execution, even if they are not explicitly + // part of the input root. DEPRECATED since 2.1: Use `output_paths` instead. OutputDirectories []string `json:"outputDirectories,omitempty"` - - // OutputFiles: A list of the output files that the client expects to - // retrieve from the action. Only the listed files, as well as - // directories listed in `output_directories`, will be returned to the - // client as output. Other files or directories that may be created - // during command execution are discarded. The paths are relative to the - // working directory of the action execution. The paths are specified - // using a single forward slash (`/`) as a path separator, even if the - // execution platform natively uses a different separator. The path MUST - // NOT include a trailing slash, nor a leading slash, being a relative - // path. In order to ensure consistent hashing of the same Action, the - // output paths MUST be sorted lexicographically by code point (or, - // equivalently, by UTF-8 bytes). An output file cannot be duplicated, - // be a parent of another output file, or have the same path as any of - // the listed output directories. Directories leading up to the output - // files are created by the worker prior to execution, even if they are - // not explicitly part of the input root. DEPRECATED since v2.1: Use - // `output_paths` instead. + // OutputFiles: A list of the output files that the client expects to retrieve + // from the action. Only the listed files, as well as directories listed in + // `output_directories`, will be returned to the client as output. Other files + // or directories that may be created during command execution are discarded. + // The paths are relative to the working directory of the action execution. The + // paths are specified using a single forward slash (`/`) as a path separator, + // even if the execution platform natively uses a different separator. The path + // MUST NOT include a trailing slash, nor a leading slash, being a relative + // path. In order to ensure consistent hashing of the same Action, the output + // paths MUST be sorted lexicographically by code point (or, equivalently, by + // UTF-8 bytes). An output file cannot be duplicated, be a parent of another + // output file, or have the same path as any of the listed output directories. + // Directories leading up to the output files are created by the worker prior + // to execution, even if they are not explicitly part of the input root. + // DEPRECATED since v2.1: Use `output_paths` instead. OutputFiles []string `json:"outputFiles,omitempty"` - - // OutputNodeProperties: A list of keys for node properties the client - // expects to retrieve for output files and directories. Keys are either - // names of string-based NodeProperty or names of fields in - // NodeProperties. In order to ensure that equivalent `Action`s always - // hash to the same value, the node properties MUST be lexicographically - // sorted by name. Sorting of strings is done by code point, - // equivalently, by the UTF-8 bytes. The interpretation of string-based - // properties is server-dependent. If a property is not recognized by - // the server, the server will return an `INVALID_ARGUMENT`. + // OutputNodeProperties: A list of keys for node properties the client expects + // to retrieve for output files and directories. Keys are either names of + // string-based NodeProperty or names of fields in NodeProperties. In order to + // ensure that equivalent `Action`s always hash to the same value, the node + // properties MUST be lexicographically sorted by name. Sorting of strings is + // done by code point, equivalently, by the UTF-8 bytes. The interpretation of + // string-based properties is server-dependent. If a property is not recognized + // by the server, the server will return an `INVALID_ARGUMENT`. OutputNodeProperties []string `json:"outputNodeProperties,omitempty"` - - // OutputPaths: A list of the output paths that the client expects to - // retrieve from the action. Only the listed paths will be returned to - // the client as output. The type of the output (file or directory) is - // not specified, and will be determined by the server after action - // execution. If the resulting path is a file, it will be returned in an - // OutputFile) typed field. If the path is a directory, the entire - // directory structure will be returned as a Tree message digest, see - // OutputDirectory) Other files or directories that may be created - // during command execution are discarded. The paths are relative to the - // working directory of the action execution. The paths are specified - // using a single forward slash (`/`) as a path separator, even if the - // execution platform natively uses a different separator. The path MUST - // NOT include a trailing slash, nor a leading slash, being a relative - // path. In order to ensure consistent hashing of the same Action, the - // output paths MUST be deduplicated and sorted lexicographically by - // code point (or, equivalently, by UTF-8 bytes). Directories leading up - // to the output paths are created by the worker prior to execution, - // even if they are not explicitly part of the input root. New in v2.1: - // this field supersedes the DEPRECATED `output_files` and - // `output_directories` fields. If `output_paths` is used, - // `output_files` and `output_directories` will be ignored! + // OutputPaths: A list of the output paths that the client expects to retrieve + // from the action. Only the listed paths will be returned to the client as + // output. The type of the output (file or directory) is not specified, and + // will be determined by the server after action execution. If the resulting + // path is a file, it will be returned in an OutputFile) typed field. If the + // path is a directory, the entire directory structure will be returned as a + // Tree message digest, see OutputDirectory) Other files or directories that + // may be created during command execution are discarded. The paths are + // relative to the working directory of the action execution. The paths are + // specified using a single forward slash (`/`) as a path separator, even if + // the execution platform natively uses a different separator. The path MUST + // NOT include a trailing slash, nor a leading slash, being a relative path. In + // order to ensure consistent hashing of the same Action, the output paths MUST + // be deduplicated and sorted lexicographically by code point (or, + // equivalently, by UTF-8 bytes). Directories leading up to the output paths + // are created by the worker prior to execution, even if they are not + // explicitly part of the input root. New in v2.1: this field supersedes the + // DEPRECATED `output_files` and `output_directories` fields. If `output_paths` + // is used, `output_files` and `output_directories` will be ignored! OutputPaths []string `json:"outputPaths,omitempty"` - - // Platform: The platform requirements for the execution environment. - // The server MAY choose to execute the action on any worker satisfying - // the requirements, so the client SHOULD ensure that running the action - // on any such worker will have the same result. A detailed lexicon for - // this can be found in the accompanying platform.md. DEPRECATED as of - // v2.2: platform properties are now specified directly in the action. - // See documentation note in the Action for migration. + // Platform: The platform requirements for the execution environment. The + // server MAY choose to execute the action on any worker satisfying the + // requirements, so the client SHOULD ensure that running the action on any + // such worker will have the same result. A detailed lexicon for this can be + // found in the accompanying platform.md. DEPRECATED as of v2.2: platform + // properties are now specified directly in the action. See documentation note + // in the Action for migration. Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"` - - // WorkingDirectory: The working directory, relative to the input root, - // for the command to run in. It must be a directory which exists in the - // input tree. If it is left empty, then the action is run in the input - // root. + // WorkingDirectory: The working directory, relative to the input root, for the + // command to run in. It must be a directory which exists in the input tree. If + // it is left empty, then the action is run in the input root. WorkingDirectory string `json:"workingDirectory,omitempty"` - // ForceSendFields is a list of field names (e.g. "Arguments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Arguments") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Arguments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Command - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2CommandEnvironmentVariable: An @@ -917,198 +794,162 @@ func (s *BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) { type BuildBazelRemoteExecutionV2CommandEnvironmentVariable struct { // Name: The variable name. Name string `json:"name,omitempty"` - // Value: The variable value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2CommandEnvironmentVariable) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2CommandEnvironmentVariable) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2CommandEnvironmentVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2Digest: A content digest. A digest for a -// given blob consists of the size of the blob and its hash. The hash -// algorithm to use is defined by the server. The size is considered to -// be an integral part of the digest and cannot be separated. That is, -// even if the `hash` field is correctly specified but `size_bytes` is -// not, the server MUST reject the request. The reason for including the -// size in the digest is as follows: in a great many cases, the server -// needs to know the size of the blob it is about to work with prior to -// starting an operation with it, such as flattening Merkle tree -// structures or streaming it to a worker. Technically, the server could -// implement a separate metadata store, but this results in a -// significantly more complicated implementation as opposed to having -// the client specify the size up-front (or storing the size along with -// the digest in every message where digests are embedded). This does -// mean that the API leaks some implementation details of (what we -// consider to be) a reasonable server implementation, but we consider -// this to be a worthwhile tradeoff. When a `Digest` is used to refer to -// a proto message, it always refers to the message in binary encoded -// form. To ensure consistent hashing, clients and servers MUST ensure -// that they serialize messages according to the following rules, even -// if there are alternate valid encodings for the same message: * Fields -// are serialized in tag order. * There are no unknown fields. * There -// are no duplicate fields. * Fields are serialized according to the -// default semantics for their type. Most protocol buffer -// implementations will always follow these rules when serializing, but -// care should be taken to avoid shortcuts. For instance, concatenating -// two messages to merge them may produce duplicate fields. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2Digest: A content digest. A digest for a given +// blob consists of the size of the blob and its hash. The hash algorithm to +// use is defined by the server. The size is considered to be an integral part +// of the digest and cannot be separated. That is, even if the `hash` field is +// correctly specified but `size_bytes` is not, the server MUST reject the +// request. The reason for including the size in the digest is as follows: in a +// great many cases, the server needs to know the size of the blob it is about +// to work with prior to starting an operation with it, such as flattening +// Merkle tree structures or streaming it to a worker. Technically, the server +// could implement a separate metadata store, but this results in a +// significantly more complicated implementation as opposed to having the +// client specify the size up-front (or storing the size along with the digest +// in every message where digests are embedded). This does mean that the API +// leaks some implementation details of (what we consider to be) a reasonable +// server implementation, but we consider this to be a worthwhile tradeoff. +// When a `Digest` is used to refer to a proto message, it always refers to the +// message in binary encoded form. To ensure consistent hashing, clients and +// servers MUST ensure that they serialize messages according to the following +// rules, even if there are alternate valid encodings for the same message: * +// Fields are serialized in tag order. * There are no unknown fields. * There +// are no duplicate fields. * Fields are serialized according to the default +// semantics for their type. Most protocol buffer implementations will always +// follow these rules when serializing, but care should be taken to avoid +// shortcuts. For instance, concatenating two messages to merge them may +// produce duplicate fields. type BuildBazelRemoteExecutionV2Digest struct { - // Hash: The hash. In the case of SHA-256, it will always be a lowercase - // hex string exactly 64 characters long. + // Hash: The hash. In the case of SHA-256, it will always be a lowercase hex + // string exactly 64 characters long. Hash string `json:"hash,omitempty"` - // SizeBytes: The size of the blob, in bytes. SizeBytes int64 `json:"sizeBytes,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Hash") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hash") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Hash") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Hash") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Digest) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Digest) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Digest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2Directory: A `Directory` represents a -// directory node in a file tree, containing zero or more children -// FileNodes, DirectoryNodes and SymlinkNodes. Each `Node` contains its -// name in the directory, either the digest of its content (either a -// file blob or a `Directory` proto) or a symlink target, as well as -// possibly some metadata about the file or directory. In order to -// ensure that two equivalent directory trees hash to the same value, -// the following restrictions MUST be obeyed when constructing a a -// `Directory`: * Every child in the directory must have a path of -// exactly one segment. Multiple levels of directory hierarchy may not -// be collapsed. * Each child in the directory must have a unique path -// segment (file name). Note that while the API itself is -// case-sensitive, the environment where the Action is executed may or -// may not be case-sensitive. That is, it is legal to call the API with -// a Directory that has both "Foo" and "foo" as children, but the Action -// may be rejected by the remote system upon execution. * The files, -// directories and symlinks in the directory must each be sorted in -// lexicographical order by path. The path strings must be sorted by -// code point, equivalently, by UTF-8 bytes. * The NodeProperties of -// files, directories, and symlinks must be sorted in lexicographical -// order by property name. A `Directory` that obeys the restrictions is -// said to be in canonical form. As an example, the following could be -// used for a file named `bar` and a directory named `foo` with an -// executable file named `baz` (hashes shortened for readability): -// ```json // (Directory proto) { files: [ { name: "bar", digest: { -// hash: "4a73bc9d03...", size: 65534 }, node_properties: [ { "name": -// "MTime", "value": "2017-01-15T01:30:15.01Z" } ] } ], directories: [ { -// name: "foo", digest: { hash: "4cf2eda940...", size: 43 } } ] } // -// (Directory proto with hash "4cf2eda940..." and size 43) { files: [ { -// name: "baz", digest: { hash: "b2c941073e...", size: 1294, }, -// is_executable: true } ] } ``` + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2Directory: A `Directory` represents a directory +// node in a file tree, containing zero or more children FileNodes, +// DirectoryNodes and SymlinkNodes. Each `Node` contains its name in the +// directory, either the digest of its content (either a file blob or a +// `Directory` proto) or a symlink target, as well as possibly some metadata +// about the file or directory. In order to ensure that two equivalent +// directory trees hash to the same value, the following restrictions MUST be +// obeyed when constructing a a `Directory`: * Every child in the directory +// must have a path of exactly one segment. Multiple levels of directory +// hierarchy may not be collapsed. * Each child in the directory must have a +// unique path segment (file name). Note that while the API itself is +// case-sensitive, the environment where the Action is executed may or may not +// be case-sensitive. That is, it is legal to call the API with a Directory +// that has both "Foo" and "foo" as children, but the Action may be rejected by +// the remote system upon execution. * The files, directories and symlinks in +// the directory must each be sorted in lexicographical order by path. The path +// strings must be sorted by code point, equivalently, by UTF-8 bytes. * The +// NodeProperties of files, directories, and symlinks must be sorted in +// lexicographical order by property name. A `Directory` that obeys the +// restrictions is said to be in canonical form. As an example, the following +// could be used for a file named `bar` and a directory named `foo` with an +// executable file named `baz` (hashes shortened for readability): ```json // +// (Directory proto) { files: [ { name: "bar", digest: { hash: "4a73bc9d03...", +// size: 65534 }, node_properties: [ { "name": "MTime", "value": +// "2017-01-15T01:30:15.01Z" } ] } ], directories: [ { name: "foo", digest: { +// hash: "4cf2eda940...", size: 43 } } ] } // (Directory proto with hash +// "4cf2eda940..." and size 43) { files: [ { name: "baz", digest: { hash: +// "b2c941073e...", size: 1294, }, is_executable: true } ] } ``` type BuildBazelRemoteExecutionV2Directory struct { // Directories: The subdirectories in the directory. Directories []*BuildBazelRemoteExecutionV2DirectoryNode `json:"directories,omitempty"` - // Files: The files in the directory. - Files []*BuildBazelRemoteExecutionV2FileNode `json:"files,omitempty"` - + Files []*BuildBazelRemoteExecutionV2FileNode `json:"files,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - // Symlinks: The symlinks in the directory. Symlinks []*BuildBazelRemoteExecutionV2SymlinkNode `json:"symlinks,omitempty"` - // ForceSendFields is a list of field names (e.g. "Directories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Directory) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Directory) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Directory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2DirectoryNode: A `DirectoryNode` -// represents a child of a Directory which is itself a `Directory` and -// its associated metadata. +// BuildBazelRemoteExecutionV2DirectoryNode: A `DirectoryNode` represents a +// child of a Directory which is itself a `Directory` and its associated +// metadata. type BuildBazelRemoteExecutionV2DirectoryNode struct { - // Digest: The digest of the Directory object represented. See Digest - // for information about how to take the digest of a proto message. + // Digest: The digest of the Directory object represented. See Digest for + // information about how to take the digest of a proto message. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // Name: The name of the directory. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2DirectoryNode) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2DirectoryNode) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2DirectoryNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ExecuteOperationMetadata: Metadata about -// an ongoing execution, which will be contained in the metadata field -// of the Operation. +// BuildBazelRemoteExecutionV2ExecuteOperationMetadata: Metadata about an +// ongoing execution, which will be contained in the metadata field of the +// Operation. type BuildBazelRemoteExecutionV2ExecuteOperationMetadata struct { // ActionDigest: The digest of the Action being executed. ActionDigest *BuildBazelRemoteExecutionV2Digest `json:"actionDigest,omitempty"` - // Stage: The current stage of execution. // // Possible values: @@ -1118,38 +959,30 @@ type BuildBazelRemoteExecutionV2ExecuteOperationMetadata struct { // "EXECUTING" - Currently being executed by a worker. // "COMPLETED" - Finished execution. Stage string `json:"stage,omitempty"` - // StderrStreamName: If set, the client can use this resource name with - // ByteStream.Read to stream the standard error from the endpoint - // hosting streamed responses. + // ByteStream.Read to stream the standard error from the endpoint hosting + // streamed responses. StderrStreamName string `json:"stderrStreamName,omitempty"` - // StdoutStreamName: If set, the client can use this resource name with - // ByteStream.Read to stream the standard output from the endpoint - // hosting streamed responses. + // ByteStream.Read to stream the standard output from the endpoint hosting + // streamed responses. StdoutStreamName string `json:"stdoutStreamName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionDigest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionDigest") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionDigest") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecuteOperationMetadata) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecuteOperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecuteOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2ExecuteRequest: A request message for @@ -1157,189 +990,149 @@ func (s *BuildBazelRemoteExecutionV2ExecuteOperationMetadata) MarshalJSON() ([]b type BuildBazelRemoteExecutionV2ExecuteRequest struct { // ActionDigest: The digest of the Action to execute. ActionDigest *BuildBazelRemoteExecutionV2Digest `json:"actionDigest,omitempty"` - - // ExecutionPolicy: An optional policy for execution of the action. The - // server will have a default policy if this is not provided. + // ExecutionPolicy: An optional policy for execution of the action. The server + // will have a default policy if this is not provided. ExecutionPolicy *BuildBazelRemoteExecutionV2ExecutionPolicy `json:"executionPolicy,omitempty"` - - // ResultsCachePolicy: An optional policy for the results of this - // execution in the remote cache. The server will have a default policy - // if this is not provided. This may be applied to both the ActionResult - // and the associated blobs. + // ResultsCachePolicy: An optional policy for the results of this execution in + // the remote cache. The server will have a default policy if this is not + // provided. This may be applied to both the ActionResult and the associated + // blobs. ResultsCachePolicy *BuildBazelRemoteExecutionV2ResultsCachePolicy `json:"resultsCachePolicy,omitempty"` - - // SkipCacheLookup: If true, the action will be executed even if its - // result is already present in the ActionCache. The execution is still - // allowed to be merged with other in-flight executions of the same - // action, however - semantically, the service MUST only guarantee that - // the results of an execution with this field set were not visible - // before the corresponding execution request was sent. Note that - // actions from execution requests setting this field set are still - // eligible to be entered into the action cache upon completion, and - // services SHOULD overwrite any existing entries that may exist. This - // allows skip_cache_lookup requests to be used as a mechanism for - // replacing action cache entries that reference outputs no longer - // available or that are poisoned in any way. If false, the result may + // SkipCacheLookup: If true, the action will be executed even if its result is + // already present in the ActionCache. The execution is still allowed to be + // merged with other in-flight executions of the same action, however - + // semantically, the service MUST only guarantee that the results of an + // execution with this field set were not visible before the corresponding + // execution request was sent. Note that actions from execution requests + // setting this field set are still eligible to be entered into the action + // cache upon completion, and services SHOULD overwrite any existing entries + // that may exist. This allows skip_cache_lookup requests to be used as a + // mechanism for replacing action cache entries that reference outputs no + // longer available or that are poisoned in any way. If false, the result may // be served from the action cache. SkipCacheLookup bool `json:"skipCacheLookup,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionDigest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionDigest") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionDigest") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecuteRequest) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecuteRequest) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecuteRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2ExecuteResponse: The response message for -// Execution.Execute, which will be contained in the response field of -// the Operation. +// Execution.Execute, which will be contained in the response field of the +// Operation. type BuildBazelRemoteExecutionV2ExecuteResponse struct { - // CachedResult: True if the result was served from cache, false if it - // was executed. + // CachedResult: True if the result was served from cache, false if it was + // executed. CachedResult bool `json:"cachedResult,omitempty"` - - // Message: Freeform informational message with details on the execution - // of the action that may be displayed to the user upon failure or when - // requested explicitly. + // Message: Freeform informational message with details on the execution of the + // action that may be displayed to the user upon failure or when requested + // explicitly. Message string `json:"message,omitempty"` - // Result: The result of the action. Result *BuildBazelRemoteExecutionV2ActionResult `json:"result,omitempty"` - - // ServerLogs: An optional list of additional log outputs the server - // wishes to provide. A server can use this to return execution-specific - // logs however it wishes. This is intended primarily to make it easier - // for users to debug issues that may be outside of the actual job - // execution, such as by identifying the worker executing the action or - // by providing logs from the worker's setup phase. The keys SHOULD be - // human readable so that a client can display them to a user. + // ServerLogs: An optional list of additional log outputs the server wishes to + // provide. A server can use this to return execution-specific logs however it + // wishes. This is intended primarily to make it easier for users to debug + // issues that may be outside of the actual job execution, such as by + // identifying the worker executing the action or by providing logs from the + // worker's setup phase. The keys SHOULD be human readable so that a client can + // display them to a user. ServerLogs map[string]BuildBazelRemoteExecutionV2LogFile `json:"serverLogs,omitempty"` - - // Status: If the status has a code other than `OK`, it indicates that - // the action did not finish execution. For example, if the operation - // times out during execution, the status will have a - // `DEADLINE_EXCEEDED` code. Servers MUST use this field for errors in - // execution, rather than the error field on the `Operation` object. If - // the status code is other than `OK`, then the result MUST NOT be - // cached. For an error status, the `result` field is optional; the - // server may populate the output-, stdout-, and stderr-related fields - // if it has any information available, such as the stdout and stderr of + // Status: If the status has a code other than `OK`, it indicates that the + // action did not finish execution. For example, if the operation times out + // during execution, the status will have a `DEADLINE_EXCEEDED` code. Servers + // MUST use this field for errors in execution, rather than the error field on + // the `Operation` object. If the status code is other than `OK`, then the + // result MUST NOT be cached. For an error status, the `result` field is + // optional; the server may populate the output-, stdout-, and stderr-related + // fields if it has any information available, such as the stdout and stderr of // a timed-out action. Status *GoogleRpcStatus `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "CachedResult") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CachedResult") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CachedResult") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecuteResponse) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecuteResponse) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecuteResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ExecutedActionMetadata: -// ExecutedActionMetadata contains details about a completed execution. +// BuildBazelRemoteExecutionV2ExecutedActionMetadata: ExecutedActionMetadata +// contains details about a completed execution. type BuildBazelRemoteExecutionV2ExecutedActionMetadata struct { - // AuxiliaryMetadata: Details that are specific to the kind of worker - // used. For example, on POSIX-like systems this could contain a message - // with getrusage(2) statistics. + // AuxiliaryMetadata: Details that are specific to the kind of worker used. For + // example, on POSIX-like systems this could contain a message with + // getrusage(2) statistics. AuxiliaryMetadata []googleapi.RawMessage `json:"auxiliaryMetadata,omitempty"` - - // ExecutionCompletedTimestamp: When the worker completed executing the - // action command. + // ExecutionCompletedTimestamp: When the worker completed executing the action + // command. ExecutionCompletedTimestamp string `json:"executionCompletedTimestamp,omitempty"` - // ExecutionStartTimestamp: When the worker started executing the action // command. ExecutionStartTimestamp string `json:"executionStartTimestamp,omitempty"` - - // InputFetchCompletedTimestamp: When the worker finished fetching - // action inputs. - InputFetchCompletedTimestamp string `json:"inputFetchCompletedTimestamp,omitempty"` - - // InputFetchStartTimestamp: When the worker started fetching action + // InputFetchCompletedTimestamp: When the worker finished fetching action // inputs. + InputFetchCompletedTimestamp string `json:"inputFetchCompletedTimestamp,omitempty"` + // InputFetchStartTimestamp: When the worker started fetching action inputs. InputFetchStartTimestamp string `json:"inputFetchStartTimestamp,omitempty"` - - // OutputUploadCompletedTimestamp: When the worker finished uploading - // action outputs. + // OutputUploadCompletedTimestamp: When the worker finished uploading action + // outputs. OutputUploadCompletedTimestamp string `json:"outputUploadCompletedTimestamp,omitempty"` - // OutputUploadStartTimestamp: When the worker started uploading action // outputs. OutputUploadStartTimestamp string `json:"outputUploadStartTimestamp,omitempty"` - // QueuedTimestamp: When was the action added to the queue. QueuedTimestamp string `json:"queuedTimestamp,omitempty"` - // Worker: The name of the worker which ran the execution. Worker string `json:"worker,omitempty"` - - // WorkerCompletedTimestamp: When the worker completed the action, - // including all stages. + // WorkerCompletedTimestamp: When the worker completed the action, including + // all stages. WorkerCompletedTimestamp string `json:"workerCompletedTimestamp,omitempty"` - // WorkerStartTimestamp: When the worker received the action. WorkerStartTimestamp string `json:"workerStartTimestamp,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AuxiliaryMetadata") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AuxiliaryMetadata") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuxiliaryMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuxiliaryMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecutedActionMetadata) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecutedActionMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecutedActionMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ExecutionCapabilities: Capabilities of the -// remote execution system. +// BuildBazelRemoteExecutionV2ExecutionCapabilities: Capabilities of the remote +// execution system. type BuildBazelRemoteExecutionV2ExecutionCapabilities struct { - // DigestFunction: Remote execution may only support a single digest - // function. + // DigestFunction: Remote execution may only support a single digest function. // // Possible values: // "UNKNOWN" - It is an error for the server to return this value. @@ -1351,183 +1144,143 @@ type BuildBazelRemoteExecutionV2ExecutionCapabilities struct { // . // "SHA384" - The SHA-384 digest function. // "SHA512" - The SHA-512 digest function. - // "MURMUR3" - Murmur3 128-bit digest function, x64 variant. Note that - // this is not a cryptographic hash function and its collision - // properties are not strongly guaranteed. See + // "MURMUR3" - Murmur3 128-bit digest function, x64 variant. Note that this + // is not a cryptographic hash function and its collision properties are not + // strongly guaranteed. See // https://github.com/aappleby/smhasher/wiki/MurmurHash3 . DigestFunction string `json:"digestFunction,omitempty"` - // ExecEnabled: Whether remote execution is enabled for the particular // server/instance. ExecEnabled bool `json:"execEnabled,omitempty"` - // ExecutionPriorityCapabilities: Supported execution priority range. ExecutionPriorityCapabilities *BuildBazelRemoteExecutionV2PriorityCapabilities `json:"executionPriorityCapabilities,omitempty"` - // SupportedNodeProperties: Supported node properties. SupportedNodeProperties []string `json:"supportedNodeProperties,omitempty"` - // ForceSendFields is a list of field names (e.g. "DigestFunction") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DigestFunction") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DigestFunction") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecutionCapabilities) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecutionCapabilities) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecutionCapabilities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ExecutionPolicy: An `ExecutionPolicy` can -// be used to control the scheduling of the action. +// BuildBazelRemoteExecutionV2ExecutionPolicy: An `ExecutionPolicy` can be used +// to control the scheduling of the action. type BuildBazelRemoteExecutionV2ExecutionPolicy struct { - // Priority: The priority (relative importance) of this action. - // Generally, a lower value means that the action should be run sooner - // than actions having a greater priority value, but the interpretation - // of a given value is server- dependent. A priority of 0 means the - // *default* priority. Priorities may be positive or negative, and such - // actions should run later or sooner than actions having the default - // priority, respectively. The particular semantics of this field is up - // to the server. In particular, every server will have their own - // supported range of priorities, and will decide how these map into + // Priority: The priority (relative importance) of this action. Generally, a + // lower value means that the action should be run sooner than actions having a + // greater priority value, but the interpretation of a given value is server- + // dependent. A priority of 0 means the *default* priority. Priorities may be + // positive or negative, and such actions should run later or sooner than + // actions having the default priority, respectively. The particular semantics + // of this field is up to the server. In particular, every server will have + // their own supported range of priorities, and will decide how these map into // scheduling policy. Priority int64 `json:"priority,omitempty"` - // ForceSendFields is a list of field names (e.g. "Priority") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Priority") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Priority") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ExecutionPolicy) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ExecutionPolicy) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ExecutionPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2FileNode: A `FileNode` represents a single -// file and associated metadata. +// BuildBazelRemoteExecutionV2FileNode: A `FileNode` represents a single file +// and associated metadata. type BuildBazelRemoteExecutionV2FileNode struct { // Digest: The digest of the file's content. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // IsExecutable: True if file is executable, false otherwise. IsExecutable bool `json:"isExecutable,omitempty"` - // Name: The name of the file. - Name string `json:"name,omitempty"` - + Name string `json:"name,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2FileNode) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2FileNode) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2FileNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2FindMissingBlobsRequest: A request message -// for ContentAddressableStorage.FindMissingBlobs. +// BuildBazelRemoteExecutionV2FindMissingBlobsRequest: A request message for +// ContentAddressableStorage.FindMissingBlobs. type BuildBazelRemoteExecutionV2FindMissingBlobsRequest struct { // BlobDigests: A list of the blobs to check. BlobDigests []*BuildBazelRemoteExecutionV2Digest `json:"blobDigests,omitempty"` - // ForceSendFields is a list of field names (e.g. "BlobDigests") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BlobDigests") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BlobDigests") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2FindMissingBlobsRequest) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2FindMissingBlobsRequest) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2FindMissingBlobsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2FindMissingBlobsResponse: A response -// message for ContentAddressableStorage.FindMissingBlobs. +// BuildBazelRemoteExecutionV2FindMissingBlobsResponse: A response message for +// ContentAddressableStorage.FindMissingBlobs. type BuildBazelRemoteExecutionV2FindMissingBlobsResponse struct { - // MissingBlobDigests: A list of the blobs requested *not* present in - // the storage. + // MissingBlobDigests: A list of the blobs requested *not* present in the + // storage. MissingBlobDigests []*BuildBazelRemoteExecutionV2Digest `json:"missingBlobDigests,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "MissingBlobDigests") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "MissingBlobDigests") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MissingBlobDigests") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MissingBlobDigests") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2FindMissingBlobsResponse) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2FindMissingBlobsResponse) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2FindMissingBlobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2GetTreeResponse: A response message for @@ -1535,530 +1288,416 @@ func (s *BuildBazelRemoteExecutionV2FindMissingBlobsResponse) MarshalJSON() ([]b type BuildBazelRemoteExecutionV2GetTreeResponse struct { // Directories: The directories descended from the requested root. Directories []*BuildBazelRemoteExecutionV2Directory `json:"directories,omitempty"` - - // NextPageToken: If present, signifies that there are more results - // which the client can retrieve by passing this as the page_token in a - // subsequent request. If empty, signifies that this is the last page of - // results. + // NextPageToken: If present, signifies that there are more results which the + // client can retrieve by passing this as the page_token in a subsequent + // request. If empty, signifies that this is the last page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Directories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2GetTreeResponse) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2GetTreeResponse) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2GetTreeResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2LogFile: A `LogFile` is a log stored in -// the CAS. +// BuildBazelRemoteExecutionV2LogFile: A `LogFile` is a log stored in the CAS. type BuildBazelRemoteExecutionV2LogFile struct { // Digest: The digest of the log contents. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - - // HumanReadable: This is a hint as to the purpose of the log, and is - // set to true if the log is human-readable text that can be usefully - // displayed to a user, and false otherwise. For instance, if a - // command-line client wishes to print the server logs to the terminal - // for a failed action, this allows it to avoid displaying a binary - // file. + // HumanReadable: This is a hint as to the purpose of the log, and is set to + // true if the log is human-readable text that can be usefully displayed to a + // user, and false otherwise. For instance, if a command-line client wishes to + // print the server logs to the terminal for a failed action, this allows it to + // avoid displaying a binary file. HumanReadable bool `json:"humanReadable,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2LogFile) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2LogFile) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2LogFile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2NodeProperties: Node properties for -// FileNodes, DirectoryNodes, and SymlinkNodes. The server is -// responsible for specifying the properties that it accepts. +// BuildBazelRemoteExecutionV2NodeProperties: Node properties for FileNodes, +// DirectoryNodes, and SymlinkNodes. The server is responsible for specifying +// the properties that it accepts. type BuildBazelRemoteExecutionV2NodeProperties struct { // Mtime: The file's last modification timestamp. Mtime string `json:"mtime,omitempty"` - // Properties: A list of string-based NodeProperties. Properties []*BuildBazelRemoteExecutionV2NodeProperty `json:"properties,omitempty"` - // UnixMode: The UNIX file mode, e.g., 0755. UnixMode int64 `json:"unixMode,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Mtime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Mtime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Mtime") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2NodeProperties) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2NodeProperties) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2NodeProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2NodeProperty: A single property for -// FileNodes, DirectoryNodes, and SymlinkNodes. The server is -// responsible for specifying the property `name`s that it accepts. If -// permitted by the server, the same `name` may occur multiple times. +// BuildBazelRemoteExecutionV2NodeProperty: A single property for FileNodes, +// DirectoryNodes, and SymlinkNodes. The server is responsible for specifying +// the property `name`s that it accepts. If permitted by the server, the same +// `name` may occur multiple times. type BuildBazelRemoteExecutionV2NodeProperty struct { // Name: The property name. Name string `json:"name,omitempty"` - // Value: The property value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2NodeProperty) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2NodeProperty) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2NodeProperty - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2OutputDirectory: An `OutputDirectory` is -// the output in an `ActionResult` corresponding to a directory's full -// contents rather than a single file. +// BuildBazelRemoteExecutionV2OutputDirectory: An `OutputDirectory` is the +// output in an `ActionResult` corresponding to a directory's full contents +// rather than a single file. type BuildBazelRemoteExecutionV2OutputDirectory struct { - // Path: The full path of the directory relative to the working - // directory. The path separator is a forward slash `/`. Since this is a - // relative path, it MUST NOT begin with a leading forward slash. The - // empty string value is allowed, and it denotes the entire working - // directory. + // Path: The full path of the directory relative to the working directory. The + // path separator is a forward slash `/`. Since this is a relative path, it + // MUST NOT begin with a leading forward slash. The empty string value is + // allowed, and it denotes the entire working directory. Path string `json:"path,omitempty"` - - // TreeDigest: The digest of the encoded Tree proto containing the - // directory's contents. + // TreeDigest: The digest of the encoded Tree proto containing the directory's + // contents. TreeDigest *BuildBazelRemoteExecutionV2Digest `json:"treeDigest,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Path") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Path") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Path") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Path") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2OutputDirectory) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2OutputDirectory) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2OutputDirectory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2OutputFile: An `OutputFile` is similar to -// a FileNode, but it is used as an output in an `ActionResult`. It -// allows a full file path rather than only a name. +// BuildBazelRemoteExecutionV2OutputFile: An `OutputFile` is similar to a +// FileNode, but it is used as an output in an `ActionResult`. It allows a full +// file path rather than only a name. type BuildBazelRemoteExecutionV2OutputFile struct { - // Contents: The contents of the file if inlining was requested. The - // server SHOULD NOT inline file contents unless requested by the client - // in the GetActionResultRequest message. The server MAY omit inlining, - // even if requested, and MUST do so if inlining would cause the - // response to exceed message size limits. + // Contents: The contents of the file if inlining was requested. The server + // SHOULD NOT inline file contents unless requested by the client in the + // GetActionResultRequest message. The server MAY omit inlining, even if + // requested, and MUST do so if inlining would cause the response to exceed + // message size limits. Contents string `json:"contents,omitempty"` - // Digest: The digest of the file's content. Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"` - // IsExecutable: True if file is executable, false otherwise. - IsExecutable bool `json:"isExecutable,omitempty"` - + IsExecutable bool `json:"isExecutable,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - - // Path: The full path of the file relative to the working directory, - // including the filename. The path separator is a forward slash `/`. - // Since this is a relative path, it MUST NOT begin with a leading - // forward slash. + // Path: The full path of the file relative to the working directory, including + // the filename. The path separator is a forward slash `/`. Since this is a + // relative path, it MUST NOT begin with a leading forward slash. Path string `json:"path,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2OutputFile) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2OutputFile) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2OutputFile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2OutputSymlink: An `OutputSymlink` is -// similar to a Symlink, but it is used as an output in an -// `ActionResult`. `OutputSymlink` is binary-compatible with -// `SymlinkNode`. +// BuildBazelRemoteExecutionV2OutputSymlink: An `OutputSymlink` is similar to a +// Symlink, but it is used as an output in an `ActionResult`. `OutputSymlink` +// is binary-compatible with `SymlinkNode`. type BuildBazelRemoteExecutionV2OutputSymlink struct { NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - // Path: The full path of the symlink relative to the working directory, - // including the filename. The path separator is a forward slash `/`. - // Since this is a relative path, it MUST NOT begin with a leading - // forward slash. + // including the filename. The path separator is a forward slash `/`. Since + // this is a relative path, it MUST NOT begin with a leading forward slash. Path string `json:"path,omitempty"` - - // Target: The target path of the symlink. The path separator is a - // forward slash `/`. The target path can be relative to the parent - // directory of the symlink or it can be an absolute path starting with - // `/`. Support for absolute paths can be checked using the Capabilities - // API. `..` components are allowed anywhere in the target path. + // Target: The target path of the symlink. The path separator is a forward + // slash `/`. The target path can be relative to the parent directory of the + // symlink or it can be an absolute path starting with `/`. Support for + // absolute paths can be checked using the Capabilities API. `..` components + // are allowed anywhere in the target path. Target string `json:"target,omitempty"` - // ForceSendFields is a list of field names (e.g. "NodeProperties") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NodeProperties") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NodeProperties") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2OutputSymlink) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2OutputSymlink) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2OutputSymlink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2Platform: A `Platform` is a set of -// requirements, such as hardware, operating system, or compiler -// toolchain, for an Action's execution environment. A `Platform` is -// represented as a series of key-value pairs representing the -// properties that are required of the platform. +// BuildBazelRemoteExecutionV2Platform: A `Platform` is a set of requirements, +// such as hardware, operating system, or compiler toolchain, for an Action's +// execution environment. A `Platform` is represented as a series of key-value +// pairs representing the properties that are required of the platform. type BuildBazelRemoteExecutionV2Platform struct { - // Properties: The properties that make up this platform. In order to - // ensure that equivalent `Platform`s always hash to the same value, the - // properties MUST be lexicographically sorted by name, and then by - // value. Sorting of strings is done by code point, equivalently, by the - // UTF-8 bytes. + // Properties: The properties that make up this platform. In order to ensure + // that equivalent `Platform`s always hash to the same value, the properties + // MUST be lexicographically sorted by name, and then by value. Sorting of + // strings is done by code point, equivalently, by the UTF-8 bytes. Properties []*BuildBazelRemoteExecutionV2PlatformProperty `json:"properties,omitempty"` - // ForceSendFields is a list of field names (e.g. "Properties") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Properties") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Properties") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Platform) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Platform) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Platform - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2PlatformProperty: A single property for -// the environment. The server is responsible for specifying the -// property `name`s that it accepts. If an unknown `name` is provided in -// the requirements for an Action, the server SHOULD reject the -// execution request. If permitted by the server, the same `name` may -// occur multiple times. The server is also responsible for specifying -// the interpretation of property `value`s. For instance, a property -// describing how much RAM must be available may be interpreted as -// allowing a worker with 16GB to fulfill a request for 8GB, while a -// property describing the OS environment on which the action must be -// performed may require an exact match with the worker's OS. The server -// MAY use the `value` of one or more properties to determine how it -// sets up the execution environment, such as by making specific system -// files available to the worker. Both names and values are typically -// case-sensitive. Note that the platform is implicitly part of the -// action digest, so even tiny changes in the names or values (like -// changing case) may result in different action cache entries. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2PlatformProperty: A single property for the +// environment. The server is responsible for specifying the property `name`s +// that it accepts. If an unknown `name` is provided in the requirements for an +// Action, the server SHOULD reject the execution request. If permitted by the +// server, the same `name` may occur multiple times. The server is also +// responsible for specifying the interpretation of property `value`s. For +// instance, a property describing how much RAM must be available may be +// interpreted as allowing a worker with 16GB to fulfill a request for 8GB, +// while a property describing the OS environment on which the action must be +// performed may require an exact match with the worker's OS. The server MAY +// use the `value` of one or more properties to determine how it sets up the +// execution environment, such as by making specific system files available to +// the worker. Both names and values are typically case-sensitive. Note that +// the platform is implicitly part of the action digest, so even tiny changes +// in the names or values (like changing case) may result in different action +// cache entries. type BuildBazelRemoteExecutionV2PlatformProperty struct { // Name: The property name. Name string `json:"name,omitempty"` - // Value: The property value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2PlatformProperty) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2PlatformProperty) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2PlatformProperty - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2PriorityCapabilities: Allowed values for -// priority in ResultsCachePolicy and ExecutionPolicy Used for querying -// both cache and execution valid priority ranges. +// BuildBazelRemoteExecutionV2PriorityCapabilities: Allowed values for priority +// in ResultsCachePolicy and ExecutionPolicy Used for querying both cache and +// execution valid priority ranges. type BuildBazelRemoteExecutionV2PriorityCapabilities struct { Priorities []*BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange `json:"priorities,omitempty"` - // ForceSendFields is a list of field names (e.g. "Priorities") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Priorities") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Priorities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2PriorityCapabilities) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2PriorityCapabilities) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2PriorityCapabilities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange: -// Supported range of priorities, including boundaries. +// BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange: Supported +// range of priorities, including boundaries. type BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange struct { // MaxPriority: The maximum numeric value for this priority range, which // represents the least urgent task or shortest retained item. MaxPriority int64 `json:"maxPriority,omitempty"` - // MinPriority: The minimum numeric value for this priority range, which // represents the most urgent task or longest retained item. MinPriority int64 `json:"minPriority,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxPriority") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxPriority") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxPriority") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// BuildBazelRemoteExecutionV2RequestMetadata: An optional Metadata to -// attach to any RPC request to tell the server about an external -// context of the request. The server may use this for logging or other -// purposes. To use it, the client attaches the header to the call using -// the canonical proto serialization: * name: -// `build.bazel.remote.execution.v2.requestmetadata-bin` * contents: the -// base64 encoded binary `RequestMetadata` message. Note: the gRPC -// library serializes binary headers encoded in base 64 by default + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BuildBazelRemoteExecutionV2RequestMetadata: An optional Metadata to attach +// to any RPC request to tell the server about an external context of the +// request. The server may use this for logging or other purposes. To use it, +// the client attaches the header to the call using the canonical proto +// serialization: * name: `build.bazel.remote.execution.v2.requestmetadata-bin` +// * contents: the base64 encoded binary `RequestMetadata` message. Note: the +// gRPC library serializes binary headers encoded in base 64 by default // (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests). -// Therefore, if the gRPC library is used to pass/retrieve this -// metadata, the user may ignore the base64 encoding and assume it is -// simply serialized as a binary message. +// Therefore, if the gRPC library is used to pass/retrieve this metadata, the +// user may ignore the base64 encoding and assume it is simply serialized as a +// binary message. type BuildBazelRemoteExecutionV2RequestMetadata struct { - // ActionId: An identifier that ties multiple requests to the same - // action. For example, multiple requests to the CAS, Action Cache, and - // Execution API are used in order to compile foo.cc. + // ActionId: An identifier that ties multiple requests to the same action. For + // example, multiple requests to the CAS, Action Cache, and Execution API are + // used in order to compile foo.cc. ActionId string `json:"actionId,omitempty"` - - // ActionMnemonic: A brief description of the kind of action, for - // example, CppCompile or GoLink. There is no standard agreed set of - // values for this, and they are expected to vary between different - // client tools. + // ActionMnemonic: A brief description of the kind of action, for example, + // CppCompile or GoLink. There is no standard agreed set of values for this, + // and they are expected to vary between different client tools. ActionMnemonic string `json:"actionMnemonic,omitempty"` - - // ConfigurationId: An identifier for the configuration in which the - // target was built, e.g. for differentiating building host tools or - // different target platforms. There is no expectation that this value - // will have any particular structure, or equality across invocations, - // though some client tools may offer these guarantees. + // ConfigurationId: An identifier for the configuration in which the target was + // built, e.g. for differentiating building host tools or different target + // platforms. There is no expectation that this value will have any particular + // structure, or equality across invocations, though some client tools may + // offer these guarantees. ConfigurationId string `json:"configurationId,omitempty"` - - // CorrelatedInvocationsId: An identifier to tie multiple tool - // invocations together. For example, runs of foo_test, bar_test and - // baz_test on a post-submit of a given patch. + // CorrelatedInvocationsId: An identifier to tie multiple tool invocations + // together. For example, runs of foo_test, bar_test and baz_test on a + // post-submit of a given patch. CorrelatedInvocationsId string `json:"correlatedInvocationsId,omitempty"` - // TargetId: An identifier for the target which produced this action. No - // guarantees are made around how many actions may relate to a single - // target. + // guarantees are made around how many actions may relate to a single target. TargetId string `json:"targetId,omitempty"` - // ToolDetails: The details for the tool invoking the requests. ToolDetails *BuildBazelRemoteExecutionV2ToolDetails `json:"toolDetails,omitempty"` - - // ToolInvocationId: An identifier that ties multiple actions together - // to a final result. For example, multiple actions are required to - // build and run foo_test. + // ToolInvocationId: An identifier that ties multiple actions together to a + // final result. For example, multiple actions are required to build and run + // foo_test. ToolInvocationId string `json:"toolInvocationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2RequestMetadata) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2RequestMetadata) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2RequestMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ResultsCachePolicy: A `ResultsCachePolicy` -// is used for fine-grained control over how action outputs are stored -// in the CAS and Action Cache. +// BuildBazelRemoteExecutionV2ResultsCachePolicy: A `ResultsCachePolicy` is +// used for fine-grained control over how action outputs are stored in the CAS +// and Action Cache. type BuildBazelRemoteExecutionV2ResultsCachePolicy struct { - // Priority: The priority (relative importance) of this content in the - // overall cache. Generally, a lower value means a longer retention time - // or other advantage, but the interpretation of a given value is - // server-dependent. A priority of 0 means a *default* value, decided by - // the server. The particular semantics of this field is up to the - // server. In particular, every server will have their own supported - // range of priorities, and will decide how these map into - // retention/eviction policy. + // Priority: The priority (relative importance) of this content in the overall + // cache. Generally, a lower value means a longer retention time or other + // advantage, but the interpretation of a given value is server-dependent. A + // priority of 0 means a *default* value, decided by the server. The particular + // semantics of this field is up to the server. In particular, every server + // will have their own supported range of priorities, and will decide how these + // map into retention/eviction policy. Priority int64 `json:"priority,omitempty"` - // ForceSendFields is a list of field names (e.g. "Priority") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Priority") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Priority") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ResultsCachePolicy) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ResultsCachePolicy) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ResultsCachePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2ServerCapabilities: A response message for @@ -2066,161 +1705,125 @@ func (s *BuildBazelRemoteExecutionV2ResultsCachePolicy) MarshalJSON() ([]byte, e type BuildBazelRemoteExecutionV2ServerCapabilities struct { // CacheCapabilities: Capabilities of the remote cache system. CacheCapabilities *BuildBazelRemoteExecutionV2CacheCapabilities `json:"cacheCapabilities,omitempty"` - // DeprecatedApiVersion: Earliest RE API version supported, including // deprecated versions. DeprecatedApiVersion *BuildBazelSemverSemVer `json:"deprecatedApiVersion,omitempty"` - // ExecutionCapabilities: Capabilities of the remote execution system. ExecutionCapabilities *BuildBazelRemoteExecutionV2ExecutionCapabilities `json:"executionCapabilities,omitempty"` - // HighApiVersion: Latest RE API version supported. HighApiVersion *BuildBazelSemverSemVer `json:"highApiVersion,omitempty"` - // LowApiVersion: Earliest non-deprecated RE API version supported. LowApiVersion *BuildBazelSemverSemVer `json:"lowApiVersion,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "CacheCapabilities") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CacheCapabilities") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CacheCapabilities") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CacheCapabilities") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ServerCapabilities) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ServerCapabilities) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ServerCapabilities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BuildBazelRemoteExecutionV2SymlinkNode: A `SymlinkNode` represents a // symbolic link. type BuildBazelRemoteExecutionV2SymlinkNode struct { // Name: The name of the symlink. - Name string `json:"name,omitempty"` - + Name string `json:"name,omitempty"` NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"` - - // Target: The target path of the symlink. The path separator is a - // forward slash `/`. The target path can be relative to the parent - // directory of the symlink or it can be an absolute path starting with - // `/`. Support for absolute paths can be checked using the Capabilities - // API. `..` components are allowed anywhere in the target path as - // logical canonicalization may lead to different behavior in the - // presence of directory symlinks (e.g. `foo/../bar` may not be the same - // as `bar`). To reduce potential cache misses, canonicalization is - // still recommended where this is possible without impacting - // correctness. + // Target: The target path of the symlink. The path separator is a forward + // slash `/`. The target path can be relative to the parent directory of the + // symlink or it can be an absolute path starting with `/`. Support for + // absolute paths can be checked using the Capabilities API. `..` components + // are allowed anywhere in the target path as logical canonicalization may lead + // to different behavior in the presence of directory symlinks (e.g. + // `foo/../bar` may not be the same as `bar`). To reduce potential cache + // misses, canonicalization is still recommended where this is possible without + // impacting correctness. Target string `json:"target,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2SymlinkNode) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2SymlinkNode) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2SymlinkNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2ToolDetails: Details for the tool used to -// call the API. +// BuildBazelRemoteExecutionV2ToolDetails: Details for the tool used to call +// the API. type BuildBazelRemoteExecutionV2ToolDetails struct { // ToolName: Name of the tool, e.g. bazel. ToolName string `json:"toolName,omitempty"` - // ToolVersion: Version of the tool used for the request, e.g. 5.0.3. ToolVersion string `json:"toolVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "ToolName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ToolName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ToolName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2ToolDetails) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2ToolDetails) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2ToolDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2Tree: A `Tree` contains all the Directory -// protos in a single directory Merkle tree, compressed into one -// message. +// BuildBazelRemoteExecutionV2Tree: A `Tree` contains all the Directory protos +// in a single directory Merkle tree, compressed into one message. type BuildBazelRemoteExecutionV2Tree struct { - // Children: All the child directories: the directories referred to by - // the root and, recursively, all its children. In order to reconstruct - // the directory tree, the client must take the digests of each of the - // child directories and then build up a tree starting from the `root`. + // Children: All the child directories: the directories referred to by the root + // and, recursively, all its children. In order to reconstruct the directory + // tree, the client must take the digests of each of the child directories and + // then build up a tree starting from the `root`. Children []*BuildBazelRemoteExecutionV2Directory `json:"children,omitempty"` - // Root: The root directory in the tree. Root *BuildBazelRemoteExecutionV2Directory `json:"root,omitempty"` - // ForceSendFields is a list of field names (e.g. "Children") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Children") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Children") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelRemoteExecutionV2Tree) MarshalJSON() ([]byte, error) { +func (s BuildBazelRemoteExecutionV2Tree) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelRemoteExecutionV2Tree - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BuildBazelRemoteExecutionV2WaitExecutionRequest: A request message -// for WaitExecution. +// BuildBazelRemoteExecutionV2WaitExecutionRequest: A request message for +// WaitExecution. type BuildBazelRemoteExecutionV2WaitExecutionRequest struct { } @@ -2228,208 +1831,160 @@ type BuildBazelRemoteExecutionV2WaitExecutionRequest struct { type BuildBazelSemverSemVer struct { // Major: The major version, e.g 10 for 10.2.3. Major int64 `json:"major,omitempty"` - // Minor: The minor version, e.g. 2 for 10.2.3. Minor int64 `json:"minor,omitempty"` - // Patch: The patch version, e.g 3 for 10.2.3. Patch int64 `json:"patch,omitempty"` - - // Prerelease: The pre-release version. Either this field or - // major/minor/patch fields must be filled. They are mutually exclusive. - // Pre-release versions are assumed to be earlier than any released - // versions. + // Prerelease: The pre-release version. Either this field or major/minor/patch + // fields must be filled. They are mutually exclusive. Pre-release versions are + // assumed to be earlier than any released versions. Prerelease string `json:"prerelease,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Major") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Major") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Major") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BuildBazelSemverSemVer) MarshalJSON() ([]byte, error) { +func (s BuildBazelSemverSemVer) MarshalJSON() ([]byte, error) { type NoMethod BuildBazelSemverSemVer - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildbotCommandDurations: CommandDuration -// contains the various duration metrics tracked when a bot performs a -// command. +// GoogleDevtoolsRemotebuildbotCommandDurations: CommandDuration contains the +// various duration metrics tracked when a bot performs a command. type GoogleDevtoolsRemotebuildbotCommandDurations struct { // CasRelease: The time spent to release the CAS blobs used by the task. CasRelease string `json:"casRelease,omitempty"` - - // CmWaitForAssignment: The time spent waiting for Container Manager to - // assign an asynchronous container for execution. + // CmWaitForAssignment: The time spent waiting for Container Manager to assign + // an asynchronous container for execution. CmWaitForAssignment string `json:"cmWaitForAssignment,omitempty"` - - // DockerPrep: The time spent preparing the command to be run in a - // Docker container (includes pulling the Docker image, if necessary). + // DockerPrep: The time spent preparing the command to be run in a Docker + // container (includes pulling the Docker image, if necessary). DockerPrep string `json:"dockerPrep,omitempty"` - // DockerPrepStartTime: The timestamp when docker preparation begins. DockerPrepStartTime string `json:"dockerPrepStartTime,omitempty"` - - // Download: The time spent downloading the input files and constructing - // the working directory. + // Download: The time spent downloading the input files and constructing the + // working directory. Download string `json:"download,omitempty"` - - // DownloadStartTime: The timestamp when downloading the input files - // begins. + // DownloadStartTime: The timestamp when downloading the input files begins. DownloadStartTime string `json:"downloadStartTime,omitempty"` - // ExecStartTime: The timestamp when execution begins. ExecStartTime string `json:"execStartTime,omitempty"` - - // Execution: The time spent executing the command (i.e., doing useful - // work). + // Execution: The time spent executing the command (i.e., doing useful work). Execution string `json:"execution,omitempty"` - // IsoPrepDone: The timestamp when preparation is done and bot starts // downloading files. IsoPrepDone string `json:"isoPrepDone,omitempty"` - // Overall: The time spent completing the command, in total. Overall string `json:"overall,omitempty"` - // Stdout: The time spent uploading the stdout logs. Stdout string `json:"stdout,omitempty"` - // Upload: The time spent uploading the output files. Upload string `json:"upload,omitempty"` - - // UploadStartTime: The timestamp when uploading the output files - // begins. + // UploadStartTime: The timestamp when uploading the output files begins. UploadStartTime string `json:"uploadStartTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CasRelease") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CasRelease") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CasRelease") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotCommandDurations) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotCommandDurations) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotCommandDurations - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildbotCommandEvents: CommandEvents contains -// counters for the number of warnings and errors that occurred during -// the execution of a command. +// GoogleDevtoolsRemotebuildbotCommandEvents: CommandEvents contains counters +// for the number of warnings and errors that occurred during the execution of +// a command. type GoogleDevtoolsRemotebuildbotCommandEvents struct { - // CmUsage: Indicates if and how Container Manager is being used for - // task execution. + // CmUsage: Indicates if and how Container Manager is being used for task + // execution. // // Possible values: - // "CONFIG_NONE" - Container Manager is disabled or not running for - // this execution. - // "CONFIG_MATCH" - Container Manager is enabled and there was a - // matching container available for use during execution. + // "CONFIG_NONE" - Container Manager is disabled or not running for this + // execution. + // "CONFIG_MATCH" - Container Manager is enabled and there was a matching + // container available for use during execution. // "CONFIG_MISMATCH" - Container Manager is enabled, but there was no // matching container available for execution. CmUsage string `json:"cmUsage,omitempty"` - - // DockerCacheHit: Indicates whether we are using a cached Docker image - // (true) or had to pull the Docker image (false) for this command. + // DockerCacheHit: Indicates whether we are using a cached Docker image (true) + // or had to pull the Docker image (false) for this command. DockerCacheHit bool `json:"dockerCacheHit,omitempty"` - // DockerImageName: Docker Image name. DockerImageName string `json:"dockerImageName,omitempty"` - // InputCacheMiss: The input cache miss ratio. InputCacheMiss float64 `json:"inputCacheMiss,omitempty"` - // NumErrors: The number of errors reported. NumErrors uint64 `json:"numErrors,omitempty,string"` - // NumWarnings: The number of warnings reported. NumWarnings uint64 `json:"numWarnings,omitempty,string"` - - // OutputLocation: Indicates whether output files and/or output - // directories were found relative to the execution root or to the user - // provided work directory or both or none. + // OutputLocation: Indicates whether output files and/or output directories + // were found relative to the execution root or to the user provided work + // directory or both or none. // // Possible values: - // "LOCATION_UNDEFINED" - Location is set to LOCATION_UNDEFINED for - // tasks where the working directorty is not specified or is identical - // to the execution root directory. + // "LOCATION_UNDEFINED" - Location is set to LOCATION_UNDEFINED for tasks + // where the working directorty is not specified or is identical to the + // execution root directory. // "LOCATION_NONE" - No output files or directories were found neither // relative to the execution root directory nor relative to the working // directory. - // "LOCATION_EXEC_ROOT_RELATIVE" - Output files or directories were - // found relative to the execution root directory but not relative to - // the working directory. - // "LOCATION_WORKING_DIR_RELATIVE" - Output files or directories were - // found relative to the working directory but not relative to the - // execution root directory. + // "LOCATION_EXEC_ROOT_RELATIVE" - Output files or directories were found + // relative to the execution root directory but not relative to the working + // directory. + // "LOCATION_WORKING_DIR_RELATIVE" - Output files or directories were found + // relative to the working directory but not relative to the execution root + // directory. // "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE" - Output files or - // directories were found both relative to the execution root directory - // and relative to the working directory. - // "LOCATION_EXEC_ROOT_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" - Output - // files or directories were found relative to the execution root - // directory but not relative to the working directory. In addition at - // least one output file or directory was found outside of the working - // directory such that a working-directory-relative-path would have - // needed to start with a `..`. - // - // "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE_OUTPUT_OUTSIDE_WORKING_DI - // R" - Output files or directories were found both relative to the - // execution root directory and relative to the working directory. In - // addition at least one exec-root-relative output file or directory was - // found outside of the working directory such that a - // working-directory-relative-path would have needed to start with a - // `..`. + // directories were found both relative to the execution root directory and + // relative to the working directory. + // "LOCATION_EXEC_ROOT_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" - Output files or + // directories were found relative to the execution root directory but not + // relative to the working directory. In addition at least one output file or + // directory was found outside of the working directory such that a + // working-directory-relative-path would have needed to start with a `..`. + // "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" - + // Output files or directories were found both relative to the execution root + // directory and relative to the working directory. In addition at least one + // exec-root-relative output file or directory was found outside of the working + // directory such that a working-directory-relative-path would have needed to + // start with a `..`. OutputLocation string `json:"outputLocation,omitempty"` - - // UsedAsyncContainer: Indicates whether an asynchronous container was - // used for execution. + // UsedAsyncContainer: Indicates whether an asynchronous container was used for + // execution. UsedAsyncContainer bool `json:"usedAsyncContainer,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CmUsage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CmUsage") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CmUsage") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CmUsage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotCommandEvents) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotCommandEvents) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotCommandEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleDevtoolsRemotebuildbotCommandEvents) UnmarshalJSON(data []byte) error { @@ -2454,138 +2009,117 @@ type GoogleDevtoolsRemotebuildbotCommandStatus struct { // Possible values: // "OK" - The command succeeded. // "INVALID_ARGUMENT" - The command input was invalid. - // "DEADLINE_EXCEEDED" - The command had passed its expiry time while - // it was still running. - // "NOT_FOUND" - The resources requested by the command were not - // found. + // "DEADLINE_EXCEEDED" - The command had passed its expiry time while it was + // still running. + // "NOT_FOUND" - The resources requested by the command were not found. // "PERMISSION_DENIED" - The command failed due to permission errors. - // "INTERNAL" - The command failed because of some invariants expected - // by the underlying system have been broken. This usually indicates a - // bug wit the system. + // "INTERNAL" - The command failed because of some invariants expected by the + // underlying system have been broken. This usually indicates a bug wit the + // system. // "ABORTED" - The command was aborted. - // "FAILED_PRECONDITION" - The command failed because the system is - // not in a state required for the command, e.g. the command inputs - // cannot be found on the server. - // "CLEANUP_ERROR" - The bot failed to do the cleanup, e.g. unable to - // delete the command working directory or the command process. + // "FAILED_PRECONDITION" - The command failed because the system is not in a + // state required for the command, e.g. the command inputs cannot be found on + // the server. + // "CLEANUP_ERROR" - The bot failed to do the cleanup, e.g. unable to delete + // the command working directory or the command process. // "DOWNLOAD_INPUTS_ERROR" - The bot failed to download the inputs. // "UNKNOWN" - Unknown error. // "UPLOAD_OUTPUTS_ERROR" - The bot failed to upload the outputs. - // "UPLOAD_OUTPUTS_BYTES_LIMIT_EXCEEDED" - The bot tried to upload - // files having a total size that is too large. + // "UPLOAD_OUTPUTS_BYTES_LIMIT_EXCEEDED" - The bot tried to upload files + // having a total size that is too large. // "DOCKER_LOGIN_ERROR" - The bot failed to login to docker. // "DOCKER_IMAGE_PULL_ERROR" - The bot failed to pull docker image. // "DOCKER_IMAGE_EXIST_ERROR" - The bot failed to check docker images. // "DUPLICATE_INPUTS" - The inputs contain duplicate files. - // "DOCKER_IMAGE_PERMISSION_DENIED" - The bot doesn't have the - // permissions to pull docker images. + // "DOCKER_IMAGE_PERMISSION_DENIED" - The bot doesn't have the permissions to + // pull docker images. // "DOCKER_IMAGE_NOT_FOUND" - The docker image cannot be found. // "WORKING_DIR_NOT_FOUND" - Working directory is not found. - // "WORKING_DIR_NOT_IN_BASE_DIR" - Working directory is not under the - // base directory - // "DOCKER_UNAVAILABLE" - There are issues with docker - // service/runtime. - // "NO_CUDA_CAPABLE_DEVICE" - The command failed with "no cuda-capable - // device is detected" error. - // "REMOTE_CAS_DOWNLOAD_ERROR" - The bot encountered errors from - // remote CAS when downloading blobs. - // "REMOTE_CAS_UPLOAD_ERROR" - The bot encountered errors from remote - // CAS when uploading blobs. + // "WORKING_DIR_NOT_IN_BASE_DIR" - Working directory is not under the base + // directory + // "DOCKER_UNAVAILABLE" - There are issues with docker service/runtime. + // "NO_CUDA_CAPABLE_DEVICE" - The command failed with "no cuda-capable device + // is detected" error. + // "REMOTE_CAS_DOWNLOAD_ERROR" - The bot encountered errors from remote CAS + // when downloading blobs. + // "REMOTE_CAS_UPLOAD_ERROR" - The bot encountered errors from remote CAS + // when uploading blobs. // "LOCAL_CASPROXY_NOT_RUNNING" - The local casproxy is not running. - // "DOCKER_CREATE_CONTAINER_ERROR" - The bot couldn't start the - // container. + // "DOCKER_CREATE_CONTAINER_ERROR" - The bot couldn't start the container. // "DOCKER_INVALID_ULIMIT" - The docker ulimit is not valid. // "DOCKER_UNKNOWN_RUNTIME" - The docker runtime is unknown. // "DOCKER_UNKNOWN_CAPABILITY" - The docker capability is unknown. - // "DOCKER_UNKNOWN_ERROR" - The command failed with unknown docker - // errors. - // "DOCKER_CREATE_COMPUTE_SYSTEM_ERROR" - Docker failed to run - // containers with CreateComputeSystem error. + // "DOCKER_UNKNOWN_ERROR" - The command failed with unknown docker errors. + // "DOCKER_CREATE_COMPUTE_SYSTEM_ERROR" - Docker failed to run containers + // with CreateComputeSystem error. // "DOCKER_PREPARELAYER_ERROR" - Docker failed to run containers with // hcsshim::PrepareLayer error. - // "DOCKER_INCOMPATIBLE_OS_ERROR" - Docker incompatible operating - // system error. - // "DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND" - Docker failed to create - // OCI runtime because of file not found. - // "DOCKER_CREATE_RUNTIME_PERMISSION_DENIED" - Docker failed to create - // OCI runtime because of permission denied. - // "DOCKER_CREATE_PROCESS_FILE_NOT_FOUND" - Docker failed to create - // process because of file not found. - // "DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR" - Docker - // failed to run containers with CreateComputeSystem error that involves - // an incorrect parameter (more specific version of - // DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused). + // "DOCKER_INCOMPATIBLE_OS_ERROR" - Docker incompatible operating system + // error. + // "DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND" - Docker failed to create OCI + // runtime because of file not found. + // "DOCKER_CREATE_RUNTIME_PERMISSION_DENIED" - Docker failed to create OCI + // runtime because of permission denied. + // "DOCKER_CREATE_PROCESS_FILE_NOT_FOUND" - Docker failed to create process + // because of file not found. + // "DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR" - Docker failed + // to run containers with CreateComputeSystem error that involves an incorrect + // parameter (more specific version of DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that + // is user-caused). // "DOCKER_TOO_MANY_SYMBOLIC_LINK_LEVELS" - Docker failed to create an // overlay mount because of too many levels of symbolic links. - // "LOCAL_CONTAINER_MANAGER_NOT_RUNNING" - The local Container Manager - // is not running. - // "DOCKER_IMAGE_VPCSC_PERMISSION_DENIED" - Docker failed because a - // request was denied by the organization's policy. + // "LOCAL_CONTAINER_MANAGER_NOT_RUNNING" - The local Container Manager is not + // running. + // "DOCKER_IMAGE_VPCSC_PERMISSION_DENIED" - Docker failed because a request + // was denied by the organization's policy. // "WORKING_DIR_NOT_RELATIVE" - Working directory is not relative - // "DOCKER_MISSING_CONTAINER" - Docker cannot find the container - // specified in the command. This error is likely to only occur if an - // asynchronous container is not running when the command is run. + // "DOCKER_MISSING_CONTAINER" - Docker cannot find the container specified in + // the command. This error is likely to only occur if an asynchronous container + // is not running when the command is run. Code string `json:"code,omitempty"` - // Message: The error message. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotCommandStatus) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotCommandStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotCommandStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildbotResourceUsage: ResourceUsage is the -// system resource usage of the host machine. +// GoogleDevtoolsRemotebuildbotResourceUsage: ResourceUsage is the system +// resource usage of the host machine. type GoogleDevtoolsRemotebuildbotResourceUsage struct { - CpuUsedPercent float64 `json:"cpuUsedPercent,omitempty"` - - DiskUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"diskUsage,omitempty"` - - MemoryUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"memoryUsage,omitempty"` - + CpuUsedPercent float64 `json:"cpuUsedPercent,omitempty"` + DiskUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"diskUsage,omitempty"` + MemoryUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"memoryUsage,omitempty"` TotalDiskIoStats *GoogleDevtoolsRemotebuildbotResourceUsageIOStats `json:"totalDiskIoStats,omitempty"` - // ForceSendFields is a list of field names (e.g. "CpuUsedPercent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CpuUsedPercent") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CpuUsedPercent") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotResourceUsage) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotResourceUsage) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotResourceUsage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GoogleDevtoolsRemotebuildbotResourceUsage) UnmarshalJSON(data []byte) error { @@ -2603,401 +2137,310 @@ func (s *GoogleDevtoolsRemotebuildbotResourceUsage) UnmarshalJSON(data []byte) e } type GoogleDevtoolsRemotebuildbotResourceUsageIOStats struct { - ReadBytesCount uint64 `json:"readBytesCount,omitempty,string"` - - ReadCount uint64 `json:"readCount,omitempty,string"` - - ReadTimeMs uint64 `json:"readTimeMs,omitempty,string"` - + ReadBytesCount uint64 `json:"readBytesCount,omitempty,string"` + ReadCount uint64 `json:"readCount,omitempty,string"` + ReadTimeMs uint64 `json:"readTimeMs,omitempty,string"` WriteBytesCount uint64 `json:"writeBytesCount,omitempty,string"` - - WriteCount uint64 `json:"writeCount,omitempty,string"` - - WriteTimeMs uint64 `json:"writeTimeMs,omitempty,string"` - + WriteCount uint64 `json:"writeCount,omitempty,string"` + WriteTimeMs uint64 `json:"writeTimeMs,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ReadBytesCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ReadBytesCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ReadBytesCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotResourceUsageIOStats) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotResourceUsageIOStats) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotResourceUsageIOStats - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildbotResourceUsageStat struct { Total uint64 `json:"total,omitempty,string"` - - Used uint64 `json:"used,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Total") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Used uint64 `json:"used,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Total") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Total") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildbotResourceUsageStat) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildbotResourceUsageStat) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildbotResourceUsageStat - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig: // AcceleratorConfig defines the accelerator cards to attach to the VM. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig struct { - // AcceleratorCount: The number of guest accelerator cards exposed to - // each VM. + // AcceleratorCount: The number of guest accelerator cards exposed to each VM. AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"` - // AcceleratorType: The type of accelerator to attach to each VM, e.g. // "nvidia-tesla-k80" for nVidia Tesla K80. AcceleratorType string `json:"acceleratorType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AcceleratorCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AcceleratorCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale: Autoscale -// defines the autoscaling policy of a worker pool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale: Autoscale defines +// the autoscaling policy of a worker pool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale struct { - // MaxSize: The maximal number of workers. Must be equal to or greater - // than min_size. + // MaxSize: The maximal number of workers. Must be equal to or greater than + // min_size. MaxSize int64 `json:"maxSize,omitempty,string"` - // MinSize: The minimal number of workers. Must be greater than 0. MinSize int64 `json:"minSize,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "MaxSize") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "MaxSize") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxSize") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxSize") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest: -// The request used for `CreateInstance`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest: The +// request used for `CreateInstance`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest struct { - // Instance: Specifies the instance to create. The name in the instance, - // if specified in the instance, is ignored. + // Instance: Specifies the instance to create. The name in the instance, if + // specified in the instance, is ignored. Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"` - - // InstanceId: ID of the created instance. A valid `instance_id` must: - // be 6-50 characters long, contain only lowercase letters, digits, - // hyphens and underscores, start with a lowercase letter, and end with - // a lowercase letter or a digit. + // InstanceId: ID of the created instance. A valid `instance_id` must: be 6-50 + // characters long, contain only lowercase letters, digits, hyphens and + // underscores, start with a lowercase letter, and end with a lowercase letter + // or a digit. InstanceId string `json:"instanceId,omitempty"` - // Parent: Resource name of the project containing the instance. Format: // `projects/[PROJECT_ID]`. Parent string `json:"parent,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest: -// -// The request used for `CreateWorkerPool`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest: The +// request used for `CreateWorkerPool`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest struct { - // Parent: Resource name of the instance in which to create the new - // worker pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. + // Parent: Resource name of the instance in which to create the new worker + // pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Parent string `json:"parent,omitempty"` - // PoolId: ID of the created worker pool. A valid pool ID must: be 6-50 // characters long, contain only lowercase letters, digits, hyphens and - // underscores, start with a lowercase letter, and end with a lowercase - // letter or a digit. + // underscores, start with a lowercase letter, and end with a lowercase letter + // or a digit. PoolId string `json:"poolId,omitempty"` - - // WorkerPool: Specifies the worker pool to create. The name in the - // worker pool, if specified, is ignored. + // WorkerPool: Specifies the worker pool to create. The name in the worker + // pool, if specified, is ignored. WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest: -// The request used for `DeleteInstance`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest: The +// request used for `DeleteInstance`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest struct { // Name: Name of the instance to delete. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest: -// -// The request used for DeleteWorkerPool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest: The +// request used for DeleteWorkerPool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest struct { // Name: Name of the worker pool to delete. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy: -// FeaturePolicy defines features allowed to be used on RBE instances, -// as well as instance-wide behavior changes that take effect without -// opt-in or opt-out at usage time. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy: FeaturePolicy +// defines features allowed to be used on RBE instances, as well as +// instance-wide behavior changes that take effect without opt-in or opt-out at +// usage time. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy struct { - // ContainerImageSources: Which container image sources are allowed. - // Currently only RBE-supported registry (gcr.io) is allowed. One can - // allow all repositories under a project or one specific repository - // only. E.g. container_image_sources { policy: RESTRICTED - // allowed_values: [ "gcr.io/project-foo", - // "gcr.io/project-bar/repo-baz", ] } will allow any repositories under - // "gcr.io/project-foo" plus the repository - // "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to - // any source is allowed. + // ContainerImageSources: Which container image sources are allowed. Currently + // only RBE-supported registry (gcr.io) is allowed. One can allow all + // repositories under a project or one specific repository only. E.g. + // container_image_sources { policy: RESTRICTED allowed_values: [ + // "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any + // repositories under "gcr.io/project-foo" plus the repository + // "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any + // source is allowed. ContainerImageSources *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"containerImageSources,omitempty"` - - // DockerAddCapabilities: Whether dockerAddCapabilities can be used or - // what capabilities are allowed. + // DockerAddCapabilities: Whether dockerAddCapabilities can be used or what + // capabilities are allowed. DockerAddCapabilities *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerAddCapabilities,omitempty"` - // DockerChrootPath: Whether dockerChrootPath can be used. DockerChrootPath *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerChrootPath,omitempty"` - - // DockerNetwork: Whether dockerNetwork can be used or what network - // modes are allowed. E.g. one may allow `off` value only via - // `allowed_values`. + // DockerNetwork: Whether dockerNetwork can be used or what network modes are + // allowed. E.g. one may allow `off` value only via `allowed_values`. DockerNetwork *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerNetwork,omitempty"` - // DockerPrivileged: Whether dockerPrivileged can be used. DockerPrivileged *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerPrivileged,omitempty"` - // DockerRunAsRoot: Whether dockerRunAsRoot can be used. DockerRunAsRoot *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerRunAsRoot,omitempty"` - - // DockerRuntime: Whether dockerRuntime is allowed to be set or what - // runtimes are allowed. Note linux_isolation takes precedence, and if - // set, docker_runtime values may be rejected if they are incompatible - // with the selected isolation. + // DockerRuntime: Whether dockerRuntime is allowed to be set or what runtimes + // are allowed. Note linux_isolation takes precedence, and if set, + // docker_runtime values may be rejected if they are incompatible with the + // selected isolation. DockerRuntime *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerRuntime,omitempty"` - // DockerSiblingContainers: Whether dockerSiblingContainers can be used. DockerSiblingContainers *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerSiblingContainers,omitempty"` - - // LinuxIsolation: linux_isolation allows overriding the docker runtime - // used for containers started on Linux. + // LinuxIsolation: linux_isolation allows overriding the docker runtime used + // for containers started on Linux. // // Possible values: - // "LINUX_ISOLATION_UNSPECIFIED" - Default value. Will be using Linux - // default runtime. + // "LINUX_ISOLATION_UNSPECIFIED" - Default value. Will be using Linux default + // runtime. // "GVISOR" - Use gVisor runsc runtime. // "OFF" - Use stardard Linux runtime. This has the same behaviour as // unspecified, but it can be used to revert back from gVisor. LinuxIsolation string `json:"linuxIsolation,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ContainerImageSources") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ContainerImageSources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ContainerImageSources") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature: -// Defines whether a feature can be used or what values are accepted. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature: Defines +// whether a feature can be used or what values are accepted. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature struct { - // AllowedValues: A list of acceptable values. Only effective when the - // policy is `RESTRICTED`. + // AllowedValues: A list of acceptable values. Only effective when the policy + // is `RESTRICTED`. AllowedValues []string `json:"allowedValues,omitempty"` - // Policy: The policy of the feature. // // Possible values: - // "POLICY_UNSPECIFIED" - Default value, if not explicitly set. - // Equivalent to FORBIDDEN, unless otherwise documented on a specific - // Feature. + // "POLICY_UNSPECIFIED" - Default value, if not explicitly set. Equivalent to + // FORBIDDEN, unless otherwise documented on a specific Feature. // "ALLOWED" - Feature is explicitly allowed. - // "FORBIDDEN" - Feature is forbidden. Requests attempting to leverage - // it will get an FailedPrecondition error, with a message like: - // "Feature forbidden by FeaturePolicy: Feature on instance " - // "RESTRICTED" - Only the values specified in the `allowed_values` - // are allowed. + // "FORBIDDEN" - Feature is forbidden. Requests attempting to leverage it + // will get an FailedPrecondition error, with a message like: "Feature + // forbidden by FeaturePolicy: Feature on instance " + // "RESTRICTED" - Only the values specified in the `allowed_values` are + // allowed. Policy string `json:"policy,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowedValues") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedValues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AllowedValues") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest: The @@ -3006,1201 +2449,942 @@ type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest struct { // Name: Name of the instance to retrieve. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest: -// The request used for GetWorkerPool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest: The +// request used for GetWorkerPool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest struct { // Name: Name of the worker pool to retrieve. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance: Instance -// conceptually encapsulates all Remote Build Execution resources for -// remote builds. An instance consists of storage and compute resources -// (for example, `ContentAddressableStorage`, `ActionCache`, -// `WorkerPools`) used for running remote builds. All Remote Build -// Execution API calls are scoped to an instance. +// conceptually encapsulates all Remote Build Execution resources for remote +// builds. An instance consists of storage and compute resources (for example, +// `ContentAddressableStorage`, `ActionCache`, `WorkerPools`) used for running +// remote builds. All Remote Build Execution API calls are scoped to an +// instance. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance struct { - // FeaturePolicy: The policy to define whether or not RBE features can - // be used or how they can be used. + // FeaturePolicy: The policy to define whether or not RBE features can be used + // or how they can be used. FeaturePolicy *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy `json:"featurePolicy,omitempty"` - - // Location: The location is a GCP region. Currently only `us-central1` - // is supported. + // Location: The location is a GCP region. Currently only `us-central1` is + // supported. Location string `json:"location,omitempty"` - - // LoggingEnabled: Output only. Whether stack driver logging is enabled - // for the instance. + // LoggingEnabled: Output only. Whether stack driver logging is enabled for the + // instance. LoggingEnabled bool `json:"loggingEnabled,omitempty"` - // Name: Output only. Instance resource name formatted as: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be // populated when creating an instance since it is provided in the // `instance_id` field. Name string `json:"name,omitempty"` - // State: Output only. State of the instance. // // Possible values: - // "STATE_UNSPECIFIED" - Not a valid state, but the default value of - // the enum. - // "CREATING" - The instance is in state `CREATING` once - // `CreateInstance` is called and before the instance is ready for use. - // "RUNNING" - The instance is in state `RUNNING` when it is ready for - // use. - // "INACTIVE" - An `INACTIVE` instance indicates that there is a - // problem that needs to be fixed. Such instances cannot be used for - // execution and instances that remain in this state for a significant - // period of time will be removed permanently. + // "STATE_UNSPECIFIED" - Not a valid state, but the default value of the + // enum. + // "CREATING" - The instance is in state `CREATING` once `CreateInstance` is + // called and before the instance is ready for use. + // "RUNNING" - The instance is in state `RUNNING` when it is ready for use. + // "INACTIVE" - An `INACTIVE` instance indicates that there is a problem that + // needs to be fixed. Such instances cannot be used for execution and instances + // that remain in this state for a significant period of time will be removed + // permanently. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "FeaturePolicy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FeaturePolicy") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FeaturePolicy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest struct { - // Parent: Resource name of the project. Format: - // `projects/[PROJECT_ID]`. + // Parent: Resource name of the project. Format: `projects/[PROJECT_ID]`. Parent string `json:"parent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse struct { // Instances: The list of instances in a given project. Instances []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instances,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instances") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instances") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instances") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest struct { - // Filter: Optional. A filter expression that filters resources listed - // in the response. The expression must specify the field name, a - // comparison operator, and the value that you want to use for - // filtering. The value must be a string, a number, or a boolean. String - // values are case-insensitive. The comparison operator must be either - // `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. The `:` operator can be used - // with string fields to match substrings. For non-string fields it is - // equivalent to the `=` operator. The `:*` comparison can be used to - // test whether a key has been defined. You can also filter on nested - // fields. To filter on multiple expressions, you can separate - // expression using `AND` and `OR` operators, using parentheses to - // specify precedence. If neither operator is specified, `AND` is - // assumed. Examples: Include only pools with more than 100 reserved - // workers: `(worker_count > 100) (worker_config.reserved = true)` - // Include only pools with a certain label or machines of the - // e2-standard family: `worker_config.labels.key1 : * OR - // worker_config.machine_type: e2-standard` + // Filter: Optional. A filter expression that filters resources listed in the + // response. The expression must specify the field name, a comparison operator, + // and the value that you want to use for filtering. The value must be a + // string, a number, or a boolean. String values are case-insensitive. The + // comparison operator must be either `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. + // The `:` operator can be used with string fields to match substrings. For + // non-string fields it is equivalent to the `=` operator. The `:*` comparison + // can be used to test whether a key has been defined. You can also filter on + // nested fields. To filter on multiple expressions, you can separate + // expression using `AND` and `OR` operators, using parentheses to specify + // precedence. If neither operator is specified, `AND` is assumed. Examples: + // Include only pools with more than 100 reserved workers: `(worker_count > + // 100) (worker_config.reserved = true)` Include only pools with a certain + // label or machines of the e2-standard family: `worker_config.labels.key1 : * + // OR worker_config.machine_type: e2-standard` Filter string `json:"filter,omitempty"` - // Parent: Resource name of the instance. Format: // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Parent string `json:"parent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse struct { // WorkerPools: The list of worker pools in a given instance. WorkerPools []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPools,omitempty"` - // ForceSendFields is a list of field names (e.g. "WorkerPools") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "WorkerPools") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "WorkerPools") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest: -// The request used for `UpdateInstance`. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest: The +// request used for `UpdateInstance`. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest struct { // Instance: Specifies the instance to update. Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"` - - // LoggingEnabled: Deprecated, use instance.logging_enabled instead. - // Whether to enable Stackdriver logging for this instance. + // LoggingEnabled: Deprecated, use instance.logging_enabled instead. Whether to + // enable Stackdriver logging for this instance. LoggingEnabled bool `json:"loggingEnabled,omitempty"` - - // Name: Deprecated, use instance.Name instead. Name of the instance to - // update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. + // Name: Deprecated, use instance.Name instead. Name of the instance to update. + // Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name string `json:"name,omitempty"` - // UpdateMask: The update mask applies to instance. For the `FieldMask` // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - // If an empty update_mask is provided, only the non-default valued - // field in the worker pool field will be updated. Note that in order to - // update a field to the default value (zero, false, empty string) an - // explicit update_mask must be provided. + // If an empty update_mask is provided, only the non-default valued field in + // the worker pool field will be updated. Note that in order to update a field + // to the default value (zero, false, empty string) an explicit update_mask + // must be provided. UpdateMask string `json:"updateMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "Instance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Instance") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest: -// -// The request used for UpdateWorkerPool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest: The +// request used for UpdateWorkerPool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest struct { - // UpdateMask: The update mask applies to worker_pool. For the - // `FieldMask` definition, see + // UpdateMask: The update mask applies to worker_pool. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - // If an empty update_mask is provided, only the non-default valued - // field in the worker pool field will be updated. Note that in order to - // update a field to the default value (zero, false, empty string) an - // explicit update_mask must be provided. + // If an empty update_mask is provided, only the non-default valued field in + // the worker pool field will be updated. Note that in order to update a field + // to the default value (zero, false, empty string) an explicit update_mask + // must be provided. UpdateMask string `json:"updateMask,omitempty"` - // WorkerPool: Specifies the worker pool to update. WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"` - // ForceSendFields is a list of field names (e.g. "UpdateMask") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "UpdateMask") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "UpdateMask") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig: Defines -// the configuration to be used for creating workers in the worker pool. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig: Defines the +// configuration to be used for creating workers in the worker pool. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig struct { // Accelerator: The accelerator card attached to each VM. Accelerator *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig `json:"accelerator,omitempty"` - - // DiskSizeGb: Required. Size of the disk attached to the worker, in GB. - // See https://cloud.google.com/compute/docs/disks/ + // DiskSizeGb: Required. Size of the disk attached to the worker, in GB. See + // https://cloud.google.com/compute/docs/disks/ DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` - - // DiskType: Required. Disk Type to use for the worker. See Storage - // options (https://cloud.google.com/compute/docs/disks/#introduction). - // Currently only `pd-standard` and `pd-ssd` are supported. + // DiskType: Required. Disk Type to use for the worker. See Storage options + // (https://cloud.google.com/compute/docs/disks/#introduction). Currently only + // `pd-standard` and `pd-ssd` are supported. DiskType string `json:"diskType,omitempty"` - - // Labels: Labels associated with the workers. Label keys and values can - // be no longer than 63 characters, can only contain lowercase letters, - // numeric characters, underscores and dashes. International letters are - // permitted. Label keys must start with a letter. Label values are - // optional. There can not be more than 64 labels per resource. + // Labels: Labels associated with the workers. Label keys and values can be no + // longer than 63 characters, can only contain lowercase letters, numeric + // characters, underscores and dashes. International letters are permitted. + // Label keys must start with a letter. Label values are optional. There can + // not be more than 64 labels per resource. Labels map[string]string `json:"labels,omitempty"` - - // MachineType: Required. Machine type of the worker, such as - // `e2-standard-2`. See - // https://cloud.google.com/compute/docs/machine-types for a list of - // supported machine types. Note that `f1-micro` and `g1-small` are not - // yet supported. + // MachineType: Required. Machine type of the worker, such as `e2-standard-2`. + // See https://cloud.google.com/compute/docs/machine-types for a list of + // supported machine types. Note that `f1-micro` and `g1-small` are not yet + // supported. MachineType string `json:"machineType,omitempty"` - - // MaxConcurrentActions: The maximum number of actions a worker can - // execute concurrently. + // MaxConcurrentActions: The maximum number of actions a worker can execute + // concurrently. MaxConcurrentActions int64 `json:"maxConcurrentActions,omitempty,string"` - - // MinCpuPlatform: Minimum CPU platform to use when creating the worker. - // See CPU Platforms - // (https://cloud.google.com/compute/docs/cpu-platforms). + // MinCpuPlatform: Minimum CPU platform to use when creating the worker. See + // CPU Platforms (https://cloud.google.com/compute/docs/cpu-platforms). MinCpuPlatform string `json:"minCpuPlatform,omitempty"` - - // NetworkAccess: Determines the type of network access granted to - // workers. Possible values: - "public": Workers can connect to the - // public internet. - "private": Workers can only connect to Google APIs - // and services. - "restricted-private": Workers can only connect to - // Google APIs that are reachable through `restricted.googleapis.com` - // (`199.36.153.4/30`). + // NetworkAccess: Determines the type of network access granted to workers. + // Possible values: - "public": Workers can connect to the public internet. - + // "private": Workers can only connect to Google APIs and services. - + // "restricted-private": Workers can only connect to Google APIs that are + // reachable through `restricted.googleapis.com` (`199.36.153.4/30`). NetworkAccess string `json:"networkAccess,omitempty"` - - // Reserved: Determines whether the worker is reserved (equivalent to a - // Compute Engine on-demand VM and therefore won't be preempted). See - // Preemptible VMs (https://cloud.google.com/preemptible-vms/) for more - // details. + // Reserved: Determines whether the worker is reserved (equivalent to a Compute + // Engine on-demand VM and therefore won't be preempted). See Preemptible VMs + // (https://cloud.google.com/preemptible-vms/) for more details. Reserved bool `json:"reserved,omitempty"` - - // SoleTenantNodeType: The node type name to be used for sole-tenant - // nodes. + // SoleTenantNodeType: The node type name to be used for sole-tenant nodes. SoleTenantNodeType string `json:"soleTenantNodeType,omitempty"` - // VmImage: The name of the image used by each VM. VmImage string `json:"vmImage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Accelerator") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Accelerator") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Accelerator") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool: A worker -// pool resource in the Remote Build Execution API. +// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool: A worker pool +// resource in the Remote Build Execution API. type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool struct { // Autoscale: The autoscale policy to apply on a pool. Autoscale *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale `json:"autoscale,omitempty"` - // Channel: Channel specifies the release channel of the pool. Channel string `json:"channel,omitempty"` - // Name: WorkerPool resource name formatted as: - // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. - // name should not be populated when creating a worker pool since it is - // provided in the `poolId` field. + // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name + // should not be populated when creating a worker pool since it is provided in + // the `poolId` field. Name string `json:"name,omitempty"` - // State: Output only. State of the worker pool. // // Possible values: - // "STATE_UNSPECIFIED" - Not a valid state, but the default value of - // the enum. + // "STATE_UNSPECIFIED" - Not a valid state, but the default value of the + // enum. // "CREATING" - The worker pool is in state `CREATING` once - // `CreateWorkerPool` is called and before all requested workers are - // ready. - // "RUNNING" - The worker pool is in state `RUNNING` when all its - // workers are ready for use. + // `CreateWorkerPool` is called and before all requested workers are ready. + // "RUNNING" - The worker pool is in state `RUNNING` when all its workers are + // ready for use. // "UPDATING" - The worker pool is in state `UPDATING` once - // `UpdateWorkerPool` is called and before the new configuration has all - // the requested workers ready for use, and no older configuration has - // any workers. At that point the state transitions to `RUNNING`. - // "DELETING" - The worker pool is in state `DELETING` once the - // `Delete` method is called and before the deletion completes. - // "INACTIVE" - The worker pool is in state `INACTIVE` when the - // instance hosting the worker pool in not running. + // `UpdateWorkerPool` is called and before the new configuration has all the + // requested workers ready for use, and no older configuration has any workers. + // At that point the state transitions to `RUNNING`. + // "DELETING" - The worker pool is in state `DELETING` once the `Delete` + // method is called and before the deletion completes. + // "INACTIVE" - The worker pool is in state `INACTIVE` when the instance + // hosting the worker pool in not running. State string `json:"state,omitempty"` - - // WorkerConfig: Specifies the properties, such as machine type and disk - // size, used for creating workers in a worker pool. + // WorkerConfig: Specifies the properties, such as machine type and disk size, + // used for creating workers in a worker pool. WorkerConfig *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig `json:"workerConfig,omitempty"` - - // WorkerCount: The desired number of workers in the worker pool. Must - // be a value between 0 and 15000. + // WorkerCount: The desired number of workers in the worker pool. Must be a + // value between 0 and 15000. WorkerCount int64 `json:"workerCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Autoscale") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Autoscale") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Autoscale") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleDevtoolsRemoteworkersV1test2AdminTemp: AdminTemp is a -// prelimiary set of administration tasks. It's called "Temp" because we -// do not yet know the best way to represent admin tasks; it's possible -// that this will be entirely replaced in later versions of this API. If -// this message proves to be sufficient, it will be renamed in the alpha -// or beta release of this API. This message (suitably marshalled into a -// protobuf.Any) can be used as the inline_assignment field in a lease; -// the lease assignment field should simply be "admin" in these cases. -// This message is heavily based on Swarming administration tasks from -// the LUCI project (http://github.com/luci/luci-py/appengine/swarming). + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleDevtoolsRemoteworkersV1test2AdminTemp: AdminTemp is a prelimiary set +// of administration tasks. It's called "Temp" because we do not yet know the +// best way to represent admin tasks; it's possible that this will be entirely +// replaced in later versions of this API. If this message proves to be +// sufficient, it will be renamed in the alpha or beta release of this API. +// This message (suitably marshalled into a protobuf.Any) can be used as the +// inline_assignment field in a lease; the lease assignment field should simply +// be "admin" in these cases. This message is heavily based on Swarming +// administration tasks from the LUCI project +// (http://github.com/luci/luci-py/appengine/swarming). type GoogleDevtoolsRemoteworkersV1test2AdminTemp struct { // Arg: The argument to the admin action; see `Command` for semantics. Arg string `json:"arg,omitempty"` - // Command: The admin action; see `Command` for legal values. // // Possible values: // "UNSPECIFIED" - Illegal value. - // "BOT_UPDATE" - Download and run a new version of the bot. `arg` - // will be a resource accessible via `ByteStream.Read` to obtain the new - // bot code. - // "BOT_RESTART" - Restart the bot without downloading a new version. - // `arg` will be a message to log. - // "BOT_TERMINATE" - Shut down the bot. `arg` will be a task resource - // name (similar to those in tasks.proto) that the bot can use to tell - // the server that it is terminating. - // "HOST_RESTART" - Restart the host computer. `arg` will be a message - // to log. + // "BOT_UPDATE" - Download and run a new version of the bot. `arg` will be a + // resource accessible via `ByteStream.Read` to obtain the new bot code. + // "BOT_RESTART" - Restart the bot without downloading a new version. `arg` + // will be a message to log. + // "BOT_TERMINATE" - Shut down the bot. `arg` will be a task resource name + // (similar to those in tasks.proto) that the bot can use to tell the server + // that it is terminating. + // "HOST_RESTART" - Restart the host computer. `arg` will be a message to + // log. Command string `json:"command,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Arg") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Arg") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Arg") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Arg") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2AdminTemp) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2AdminTemp) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2AdminTemp - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2Blob: Describes a blob of binary -// content with its digest. +// GoogleDevtoolsRemoteworkersV1test2Blob: Describes a blob of binary content +// with its digest. type GoogleDevtoolsRemoteworkersV1test2Blob struct { // Contents: The contents of the blob. Contents string `json:"contents,omitempty"` - - // Digest: The digest of the blob. This should be verified by the - // receiver. + // Digest: The digest of the blob. This should be verified by the receiver. Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2Blob) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2Blob) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2Blob - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemoteworkersV1test2CommandOutputs: DEPRECATED - use // CommandResult instead. Describes the actual outputs from the task. type GoogleDevtoolsRemoteworkersV1test2CommandOutputs struct { - // ExitCode: exit_code is only fully reliable if the status' code is OK. - // If the task exceeded its deadline or was cancelled, the process may - // still produce an exit code as it is cancelled, and this will be - // populated, but a successful (zero) is unlikely to be correct unless - // the status code is OK. + // ExitCode: exit_code is only fully reliable if the status' code is OK. If the + // task exceeded its deadline or was cancelled, the process may still produce + // an exit code as it is cancelled, and this will be populated, but a + // successful (zero) is unlikely to be correct unless the status code is OK. ExitCode int64 `json:"exitCode,omitempty"` - - // Outputs: The output files. The blob referenced by the digest should - // contain one of the following (implementation-dependent): * A - // marshalled DirectoryMetadata of the returned filesystem * A - // LUCI-style .isolated file + // Outputs: The output files. The blob referenced by the digest should contain + // one of the following (implementation-dependent): * A marshalled + // DirectoryMetadata of the returned filesystem * A LUCI-style .isolated file Outputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExitCode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExitCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExitCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandOutputs) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandOutputs) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandOutputs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemoteworkersV1test2CommandOverhead: DEPRECATED - use -// CommandResult instead. Can be used as part of -// CompleteRequest.metadata, or are part of a more sophisticated -// message. +// CommandResult instead. Can be used as part of CompleteRequest.metadata, or +// are part of a more sophisticated message. type GoogleDevtoolsRemoteworkersV1test2CommandOverhead struct { - // Duration: The elapsed time between calling Accept and Complete. The - // server will also have its own idea of what this should be, but this - // excludes the overhead of the RPCs and the bot response time. + // Duration: The elapsed time between calling Accept and Complete. The server + // will also have its own idea of what this should be, but this excludes the + // overhead of the RPCs and the bot response time. Duration string `json:"duration,omitempty"` - // Overhead: The amount of time *not* spent executing the command (ie // uploading/downloading files). Overhead string `json:"overhead,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandOverhead) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandOverhead) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandOverhead - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandResult: All information -// about the execution of a command, suitable for providing as the Bots -// interface's `Lease.result` field. +// GoogleDevtoolsRemoteworkersV1test2CommandResult: All information about the +// execution of a command, suitable for providing as the Bots interface's +// `Lease.result` field. type GoogleDevtoolsRemoteworkersV1test2CommandResult struct { - // Duration: The elapsed time between calling Accept and Complete. The - // server will also have its own idea of what this should be, but this - // excludes the overhead of the RPCs and the bot response time. + // Duration: The elapsed time between calling Accept and Complete. The server + // will also have its own idea of what this should be, but this excludes the + // overhead of the RPCs and the bot response time. Duration string `json:"duration,omitempty"` - - // ExitCode: The exit code of the process. An exit code of "0" should - // only be trusted if `status` has a code of OK (otherwise it may simply - // be unset). + // ExitCode: The exit code of the process. An exit code of "0" should only be + // trusted if `status` has a code of OK (otherwise it may simply be unset). ExitCode int64 `json:"exitCode,omitempty"` - - // Metadata: Implementation-dependent metadata about the task. Both - // servers and bots may define messages which can be encoded here; bots - // are free to provide metadata in multiple formats, and servers are - // free to choose one or more of the values to process and ignore - // others. In particular, it is *not* considered an error for the bot to - // provide the server with a field that it doesn't know about. + // Metadata: Implementation-dependent metadata about the task. Both servers and + // bots may define messages which can be encoded here; bots are free to provide + // metadata in multiple formats, and servers are free to choose one or more of + // the values to process and ignore others. In particular, it is *not* + // considered an error for the bot to provide the server with a field that it + // doesn't know about. Metadata []googleapi.RawMessage `json:"metadata,omitempty"` - - // Outputs: The output files. The blob referenced by the digest should - // contain one of the following (implementation-dependent): * A - // marshalled DirectoryMetadata of the returned filesystem * A - // LUCI-style .isolated file + // Outputs: The output files. The blob referenced by the digest should contain + // one of the following (implementation-dependent): * A marshalled + // DirectoryMetadata of the returned filesystem * A LUCI-style .isolated file Outputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"` - // Overhead: The amount of time *not* spent executing the command (ie // uploading/downloading files). Overhead string `json:"overhead,omitempty"` - - // Status: An overall status for the command. For example, if the - // command timed out, this might have a code of DEADLINE_EXCEEDED; if it - // was killed by the OS for memory exhaustion, it might have a code of - // RESOURCE_EXHAUSTED. + // Status: An overall status for the command. For example, if the command timed + // out, this might have a code of DEADLINE_EXCEEDED; if it was killed by the OS + // for memory exhaustion, it might have a code of RESOURCE_EXHAUSTED. Status *GoogleRpcStatus `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandResult) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandResult) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTask: Describes a -// shell-style task to execute, suitable for providing as the Bots -// interface's `Lease.payload` field. +// GoogleDevtoolsRemoteworkersV1test2CommandTask: Describes a shell-style task +// to execute, suitable for providing as the Bots interface's `Lease.payload` +// field. type GoogleDevtoolsRemoteworkersV1test2CommandTask struct { // ExpectedOutputs: The expected outputs from the task. ExpectedOutputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs `json:"expectedOutputs,omitempty"` - // Inputs: The inputs to the task. Inputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs `json:"inputs,omitempty"` - // Timeouts: The timeouts of this task. Timeouts *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts `json:"timeouts,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpectedOutputs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpectedOutputs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExpectedOutputs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTask) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTask) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs: Describes the -// inputs to a shell-style task. +// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs: Describes the inputs to +// a shell-style task. type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs struct { - // Arguments: The command itself to run (e.g., argv). This field should - // be passed directly to the underlying operating system, and so it must - // be sensible to that operating system. For example, on Windows, the - // first argument might be "C:\Windows\System32\ping.exe" - that is, - // using drive letters and backslashes. A command for a *nix system, on - // the other hand, would use forward slashes. All other fields in the - // RWAPI must consistently use forward slashes, since those fields may - // be interpretted by both the service and the bot. + // Arguments: The command itself to run (e.g., argv). This field should be + // passed directly to the underlying operating system, and so it must be + // sensible to that operating system. For example, on Windows, the first + // argument might be "C:\Windows\System32\ping.exe" - that is, using drive + // letters and backslashes. A command for a *nix system, on the other hand, + // would use forward slashes. All other fields in the RWAPI must consistently + // use forward slashes, since those fields may be interpretted by both the + // service and the bot. Arguments []string `json:"arguments,omitempty"` - // EnvironmentVariables: All environment variables required by the task. EnvironmentVariables []*GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable `json:"environmentVariables,omitempty"` - - // Files: The input filesystem to be set up prior to the task beginning. - // The contents should be a repeated set of FileMetadata messages though - // other formats are allowed if better for the implementation (eg, a - // LUCI-style .isolated file). This field is repeated since - // implementations might want to cache the metadata, in which case it - // may be useful to break up portions of the filesystem that change - // frequently (eg, specific input files) from those that don't (eg, - // standard header files). + // Files: The input filesystem to be set up prior to the task beginning. The + // contents should be a repeated set of FileMetadata messages though other + // formats are allowed if better for the implementation (eg, a LUCI-style + // .isolated file). This field is repeated since implementations might want to + // cache the metadata, in which case it may be useful to break up portions of + // the filesystem that change frequently (eg, specific input files) from those + // that don't (eg, standard header files). Files []*GoogleDevtoolsRemoteworkersV1test2Digest `json:"files,omitempty"` - - // InlineBlobs: Inline contents for blobs expected to be needed by the - // bot to execute the task. For example, contents of entries in `files` - // or blobs that are indirectly referenced by an entry there. The bot - // should check against this list before downloading required task - // inputs to reduce the number of communications between itself and the - // remote CAS server. + // InlineBlobs: Inline contents for blobs expected to be needed by the bot to + // execute the task. For example, contents of entries in `files` or blobs that + // are indirectly referenced by an entry there. The bot should check against + // this list before downloading required task inputs to reduce the number of + // communications between itself and the remote CAS server. InlineBlobs []*GoogleDevtoolsRemoteworkersV1test2Blob `json:"inlineBlobs,omitempty"` - // WorkingDirectory: Directory from which a command is executed. It is a - // relative directory with respect to the bot's working directory (i.e., - // "./"). If it is non-empty, then it must exist under "./". Otherwise, - // "./" will be used. + // relative directory with respect to the bot's working directory (i.e., "./"). + // If it is non-empty, then it must exist under "./". Otherwise, "./" will be + // used. WorkingDirectory string `json:"workingDirectory,omitempty"` - // ForceSendFields is a list of field names (e.g. "Arguments") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Arguments") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Arguments") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable -// : An environment variable required by this task. +// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable: An +// environment variable required by this task. type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable struct { // Name: The envvar name. Name string `json:"name,omitempty"` - // Value: The envvar value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs: Describes the -// expected outputs of the command. +// GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs: Describes the expected +// outputs of the command. type GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs struct { - // Directories: A list of expected directories, relative to the - // execution root. All paths MUST be delimited by forward slashes. + // Directories: A list of expected directories, relative to the execution root. + // All paths MUST be delimited by forward slashes. Directories []string `json:"directories,omitempty"` - - // Files: A list of expected files, relative to the execution root. All - // paths MUST be delimited by forward slashes. + // Files: A list of expected files, relative to the execution root. All paths + // MUST be delimited by forward slashes. Files []string `json:"files,omitempty"` - - // StderrDestination: The destination to which any stderr should be - // sent. The method by which the bot should send the stream contents to - // that destination is not defined in this API. As examples, the - // destination could be a file referenced in the `files` field in this - // message, or it could be a URI that must be written via the ByteStream - // API. + // StderrDestination: The destination to which any stderr should be sent. The + // method by which the bot should send the stream contents to that destination + // is not defined in this API. As examples, the destination could be a file + // referenced in the `files` field in this message, or it could be a URI that + // must be written via the ByteStream API. StderrDestination string `json:"stderrDestination,omitempty"` - - // StdoutDestination: The destination to which any stdout should be - // sent. The method by which the bot should send the stream contents to - // that destination is not defined in this API. As examples, the - // destination could be a file referenced in the `files` field in this - // message, or it could be a URI that must be written via the ByteStream - // API. + // StdoutDestination: The destination to which any stdout should be sent. The + // method by which the bot should send the stream contents to that destination + // is not defined in this API. As examples, the destination could be a file + // referenced in the `files` field in this message, or it could be a URI that + // must be written via the ByteStream API. StdoutDestination string `json:"stdoutDestination,omitempty"` - // ForceSendFields is a list of field names (e.g. "Directories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts: Describes the // timeouts associated with this task. type GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts struct { - // Execution: This specifies the maximum time that the task can run, - // excluding the time required to download inputs or upload outputs. - // That is, the worker will terminate the task if it runs longer than - // this. + // Execution: This specifies the maximum time that the task can run, excluding + // the time required to download inputs or upload outputs. That is, the worker + // will terminate the task if it runs longer than this. Execution string `json:"execution,omitempty"` - - // Idle: This specifies the maximum amount of time the task can be idle - // - that is, go without generating some output in either stdout or - // stderr. If the process is silent for more than the specified time, - // the worker will terminate the task. + // Idle: This specifies the maximum amount of time the task can be idle - that + // is, go without generating some output in either stdout or stderr. If the + // process is silent for more than the specified time, the worker will + // terminate the task. Idle string `json:"idle,omitempty"` - - // Shutdown: If the execution or IO timeouts are exceeded, the worker - // will try to gracefully terminate the task and return any existing - // logs. However, tasks may be hard-frozen in which case this process - // will fail. This timeout specifies how long to wait for a terminated - // task to shut down gracefully (e.g. via SIGTERM) before we bring down - // the hammer (e.g. SIGKILL on *nix, CTRL_BREAK_EVENT on Windows). + // Shutdown: If the execution or IO timeouts are exceeded, the worker will try + // to gracefully terminate the task and return any existing logs. However, + // tasks may be hard-frozen in which case this process will fail. This timeout + // specifies how long to wait for a terminated task to shut down gracefully + // (e.g. via SIGTERM) before we bring down the hammer (e.g. SIGKILL on *nix, + // CTRL_BREAK_EVENT on Windows). Shutdown string `json:"shutdown,omitempty"` - // ForceSendFields is a list of field names (e.g. "Execution") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Execution") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Execution") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleDevtoolsRemoteworkersV1test2Digest: The CommandTask and -// CommandResult messages assume the existence of a service that can -// serve blobs of content, identified by a hash and size known as a -// "digest." The method by which these blobs may be retrieved is not -// specified here, but a model implementation is in the Remote Execution -// API's "ContentAddressibleStorage" interface. In the context of the -// RWAPI, a Digest will virtually always refer to the contents of a file -// or a directory. The latter is represented by the byte-encoded + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleDevtoolsRemoteworkersV1test2Digest: The CommandTask and CommandResult +// messages assume the existence of a service that can serve blobs of content, +// identified by a hash and size known as a "digest." The method by which these +// blobs may be retrieved is not specified here, but a model implementation is +// in the Remote Execution API's "ContentAddressibleStorage" interface. In the +// context of the RWAPI, a Digest will virtually always refer to the contents +// of a file or a directory. The latter is represented by the byte-encoded // Directory message. type GoogleDevtoolsRemoteworkersV1test2Digest struct { - // Hash: A string-encoded hash (eg "1a2b3c", not the byte array [0x1a, - // 0x2b, 0x3c]) using an implementation-defined hash algorithm (eg - // SHA-256). + // Hash: A string-encoded hash (eg "1a2b3c", not the byte array [0x1a, 0x2b, + // 0x3c]) using an implementation-defined hash algorithm (eg SHA-256). Hash string `json:"hash,omitempty"` - - // SizeBytes: The size of the contents. While this is not strictly - // required as part of an identifier (after all, any given hash will - // have exactly one canonical size), it's useful in almost all cases - // when one might want to send or retrieve blobs of content and is - // included here for this reason. + // SizeBytes: The size of the contents. While this is not strictly required as + // part of an identifier (after all, any given hash will have exactly one + // canonical size), it's useful in almost all cases when one might want to send + // or retrieve blobs of content and is included here for this reason. SizeBytes int64 `json:"sizeBytes,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Hash") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hash") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Hash") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Hash") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2Digest) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2Digest) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2Digest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2Directory: The contents of a -// directory. Similar to the equivalent message in the Remote Execution -// API. +// GoogleDevtoolsRemoteworkersV1test2Directory: The contents of a directory. +// Similar to the equivalent message in the Remote Execution API. type GoogleDevtoolsRemoteworkersV1test2Directory struct { // Directories: Any subdirectories Directories []*GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata `json:"directories,omitempty"` - // Files: The files in this directory Files []*GoogleDevtoolsRemoteworkersV1test2FileMetadata `json:"files,omitempty"` - // ForceSendFields is a list of field names (e.g. "Directories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Directories") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Directories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2Directory) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2Directory) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2Directory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata: The metadata for -// a directory. Similar to the equivalent message in the Remote -// Execution API. +// GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata: The metadata for a +// directory. Similar to the equivalent message in the Remote Execution API. type GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata struct { // Digest: A pointer to the contents of the directory, in the form of a // marshalled Directory message. Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"` - // Path: The path of the directory, as in FileMetadata.path. Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Digest") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Digest") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Digest") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsRemoteworkersV1test2FileMetadata: The metadata for a -// file. Similar to the equivalent message in the Remote Execution API. +// GoogleDevtoolsRemoteworkersV1test2FileMetadata: The metadata for a file. +// Similar to the equivalent message in the Remote Execution API. type GoogleDevtoolsRemoteworkersV1test2FileMetadata struct { // Contents: If the file is small enough, its contents may also or // alternatively be listed here. Contents string `json:"contents,omitempty"` - - // Digest: A pointer to the contents of the file. The method by which a - // client retrieves the contents from a CAS system is not defined here. + // Digest: A pointer to the contents of the file. The method by which a client + // retrieves the contents from a CAS system is not defined here. Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"` - // IsExecutable: Properties of the file IsExecutable bool `json:"isExecutable,omitempty"` - // Path: The path of this file. If this message is part of the - // CommandOutputs.outputs fields, the path is relative to the execution - // root and must correspond to an entry in CommandTask.outputs.files. If - // this message is part of a Directory message, then the path is - // relative to the root of that directory. All paths MUST be delimited - // by forward slashes. + // CommandOutputs.outputs fields, the path is relative to the execution root + // and must correspond to an entry in CommandTask.outputs.files. If this + // message is part of a Directory message, then the path is relative to the + // root of that directory. All paths MUST be delimited by forward slashes. Path string `json:"path,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contents") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleDevtoolsRemoteworkersV1test2FileMetadata) MarshalJSON() ([]byte, error) { +func (s GoogleDevtoolsRemoteworkersV1test2FileMetadata) MarshalJSON() ([]byte, error) { type NoMethod GoogleDevtoolsRemoteworkersV1test2FileMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleLongrunningOperation: This resource represents a long-running // operation that is the result of a network API call. type GoogleLongrunningOperation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { +func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { type NoMethod GoogleLongrunningOperation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleRpcStatus: The `Status` type defines a logical error model that -// is suitable for different programming environments, including REST -// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// GoogleRpcStatus: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs and RPC +// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message +// contains three pieces of data: error code, error message, and error details. +// You can find out more about this error model and how to work with it in the +// API Design Guide (https://cloud.google.com/apis/design/errors). type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { +func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleRpcStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "remotebuildexecution.actionResults.get": - type ActionResultsGetCall struct { s *Service instanceName string @@ -4212,20 +3396,20 @@ type ActionResultsGetCall struct { header_ http.Header } -// Get: Retrieve a cached execution result. Implementations SHOULD -// ensure that any blobs referenced from the ContentAddressableStorage -// are available at the time of returning the ActionResult and will be -// for some period of time afterwards. The lifetimes of the referenced -// blobs SHOULD be increased if necessary and applicable. Errors: * -// `NOT_FOUND`: The requested `ActionResult` is not in the cache. +// Get: Retrieve a cached execution result. Implementations SHOULD ensure that +// any blobs referenced from the ContentAddressableStorage are available at the +// time of returning the ActionResult and will be for some period of time +// afterwards. The lifetimes of the referenced blobs SHOULD be increased if +// necessary and applicable. Errors: * `NOT_FOUND`: The requested +// `ActionResult` is not in the cache. // -// - hash: The hash. In the case of SHA-256, it will always be a -// lowercase hex string exactly 64 characters long. -// - instanceName: The instance of the execution system to operate -// against. A server may support multiple instances of the execution -// system (with their own workers, storage, caches, etc.). The server -// MAY require use of this field to select between them in an -// implementation-defined fashion, otherwise it can be omitted. +// - hash: The hash. In the case of SHA-256, it will always be a lowercase hex +// string exactly 64 characters long. +// - instanceName: The instance of the execution system to operate against. A +// server may support multiple instances of the execution system (with their +// own workers, storage, caches, etc.). The server MAY require use of this +// field to select between them in an implementation-defined fashion, +// otherwise it can be omitted. // - sizeBytes: The size of the blob, in bytes. func (r *ActionResultsService) Get(instanceName string, hash string, sizeBytes int64) *ActionResultsGetCall { c := &ActionResultsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -4235,58 +3419,53 @@ func (r *ActionResultsService) Get(instanceName string, hash string, sizeBytes i return c } -// InlineOutputFiles sets the optional parameter "inlineOutputFiles": A -// hint to the server to inline the contents of the listed output files. -// Each path needs to exactly match one file path in either -// `output_paths` or `output_files` (DEPRECATED since v2.1) in the -// Command message. +// InlineOutputFiles sets the optional parameter "inlineOutputFiles": A hint to +// the server to inline the contents of the listed output files. Each path +// needs to exactly match one file path in either `output_paths` or +// `output_files` (DEPRECATED since v2.1) in the Command message. func (c *ActionResultsGetCall) InlineOutputFiles(inlineOutputFiles ...string) *ActionResultsGetCall { c.urlParams_.SetMulti("inlineOutputFiles", append([]string{}, inlineOutputFiles...)) return c } -// InlineStderr sets the optional parameter "inlineStderr": A hint to -// the server to request inlining stderr in the ActionResult message. +// InlineStderr sets the optional parameter "inlineStderr": A hint to the +// server to request inlining stderr in the ActionResult message. func (c *ActionResultsGetCall) InlineStderr(inlineStderr bool) *ActionResultsGetCall { c.urlParams_.Set("inlineStderr", fmt.Sprint(inlineStderr)) return c } -// InlineStdout sets the optional parameter "inlineStdout": A hint to -// the server to request inlining stdout in the ActionResult message. +// InlineStdout sets the optional parameter "inlineStdout": A hint to the +// server to request inlining stdout in the ActionResult message. func (c *ActionResultsGetCall) InlineStdout(inlineStdout bool) *ActionResultsGetCall { c.urlParams_.Set("inlineStdout", fmt.Sprint(inlineStdout)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ActionResultsGetCall) Fields(s ...googleapi.Field) *ActionResultsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ActionResultsGetCall) IfNoneMatch(entityTag string) *ActionResultsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ActionResultsGetCall) Context(ctx context.Context) *ActionResultsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ActionResultsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4295,12 +3474,7 @@ func (c *ActionResultsGetCall) Header() http.Header { } func (c *ActionResultsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4319,17 +3493,15 @@ func (c *ActionResultsGetCall) doRequest(alt string) (*http.Response, error) { "hash": c.hash, "sizeBytes": strconv.FormatInt(c.sizeBytes, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.actionResults.get" call. -// Exactly one of *BuildBazelRemoteExecutionV2ActionResult or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *BuildBazelRemoteExecutionV2ActionResult.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BuildBazelRemoteExecutionV2ActionResult.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ActionResultsGetCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemoteExecutionV2ActionResult, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4337,17 +3509,17 @@ func (c *ActionResultsGetCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BuildBazelRemoteExecutionV2ActionResult{ ServerResponse: googleapi.ServerResponse{ @@ -4360,66 +3532,7 @@ func (c *ActionResultsGetCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemo return nil, err } return ret, nil - // { - // "description": "Retrieve a cached execution result. Implementations SHOULD ensure that any blobs referenced from the ContentAddressableStorage are available at the time of returning the ActionResult and will be for some period of time afterwards. The lifetimes of the referenced blobs SHOULD be increased if necessary and applicable. Errors: * `NOT_FOUND`: The requested `ActionResult` is not in the cache.", - // "flatPath": "v2/{v2Id}/actionResults/{hash}/{sizeBytes}", - // "httpMethod": "GET", - // "id": "remotebuildexecution.actionResults.get", - // "parameterOrder": [ - // "instanceName", - // "hash", - // "sizeBytes" - // ], - // "parameters": { - // "hash": { - // "description": "The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "inlineOutputFiles": { - // "description": "A hint to the server to inline the contents of the listed output files. Each path needs to exactly match one file path in either `output_paths` or `output_files` (DEPRECATED since v2.1) in the Command message.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "inlineStderr": { - // "description": "A hint to the server to request inlining stderr in the ActionResult message.", - // "location": "query", - // "type": "boolean" - // }, - // "inlineStdout": { - // "description": "A hint to the server to request inlining stdout in the ActionResult message.", - // "location": "query", - // "type": "boolean" - // }, - // "instanceName": { - // "description": "The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // }, - // "sizeBytes": { - // "description": "The size of the blob, in bytes.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+instanceName}/actionResults/{hash}/{sizeBytes}", - // "response": { - // "$ref": "BuildBazelRemoteExecutionV2ActionResult" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.actionResults.update": +} type ActionResultsUpdateCall struct { s *Service @@ -4432,25 +3545,24 @@ type ActionResultsUpdateCall struct { header_ http.Header } -// Update: Upload a new execution result. In order to allow the server -// to perform access control based on the type of action, and to assist -// with client debugging, the client MUST first upload the Action that -// produced the result, along with its Command, into the -// `ContentAddressableStorage`. Server implementations MAY modify the -// `UpdateActionResultRequest.action_result` and return an equivalent -// value. Errors: * `INVALID_ARGUMENT`: One or more arguments are -// invalid. * `FAILED_PRECONDITION`: One or more errors occurred in -// updating the action result, such as a missing command or action. * -// `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the -// entry to the cache. +// Update: Upload a new execution result. In order to allow the server to +// perform access control based on the type of action, and to assist with +// client debugging, the client MUST first upload the Action that produced the +// result, along with its Command, into the `ContentAddressableStorage`. Server +// implementations MAY modify the `UpdateActionResultRequest.action_result` and +// return an equivalent value. Errors: * `INVALID_ARGUMENT`: One or more +// arguments are invalid. * `FAILED_PRECONDITION`: One or more errors occurred +// in updating the action result, such as a missing command or action. * +// `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the entry +// to the cache. // -// - hash: The hash. In the case of SHA-256, it will always be a -// lowercase hex string exactly 64 characters long. -// - instanceName: The instance of the execution system to operate -// against. A server may support multiple instances of the execution -// system (with their own workers, storage, caches, etc.). The server -// MAY require use of this field to select between them in an -// implementation-defined fashion, otherwise it can be omitted. +// - hash: The hash. In the case of SHA-256, it will always be a lowercase hex +// string exactly 64 characters long. +// - instanceName: The instance of the execution system to operate against. A +// server may support multiple instances of the execution system (with their +// own workers, storage, caches, etc.). The server MAY require use of this +// field to select between them in an implementation-defined fashion, +// otherwise it can be omitted. // - sizeBytes: The size of the blob, in bytes. func (r *ActionResultsService) Update(instanceName string, hash string, sizeBytes int64, buildbazelremoteexecutionv2actionresult *BuildBazelRemoteExecutionV2ActionResult) *ActionResultsUpdateCall { c := &ActionResultsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -4462,37 +3574,34 @@ func (r *ActionResultsService) Update(instanceName string, hash string, sizeByte } // ResultsCachePolicyPriority sets the optional parameter -// "resultsCachePolicy.priority": The priority (relative importance) of -// this content in the overall cache. Generally, a lower value means a -// longer retention time or other advantage, but the interpretation of a -// given value is server-dependent. A priority of 0 means a *default* -// value, decided by the server. The particular semantics of this field -// is up to the server. In particular, every server will have their own -// supported range of priorities, and will decide how these map into -// retention/eviction policy. +// "resultsCachePolicy.priority": The priority (relative importance) of this +// content in the overall cache. Generally, a lower value means a longer +// retention time or other advantage, but the interpretation of a given value +// is server-dependent. A priority of 0 means a *default* value, decided by the +// server. The particular semantics of this field is up to the server. In +// particular, every server will have their own supported range of priorities, +// and will decide how these map into retention/eviction policy. func (c *ActionResultsUpdateCall) ResultsCachePolicyPriority(resultsCachePolicyPriority int64) *ActionResultsUpdateCall { c.urlParams_.Set("resultsCachePolicy.priority", fmt.Sprint(resultsCachePolicyPriority)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ActionResultsUpdateCall) Fields(s ...googleapi.Field) *ActionResultsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ActionResultsUpdateCall) Context(ctx context.Context) *ActionResultsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ActionResultsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4501,18 +3610,12 @@ func (c *ActionResultsUpdateCall) Header() http.Header { } func (c *ActionResultsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildbazelremoteexecutionv2actionresult) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+instanceName}/actionResults/{hash}/{sizeBytes}") @@ -4527,17 +3630,15 @@ func (c *ActionResultsUpdateCall) doRequest(alt string) (*http.Response, error) "hash": c.hash, "sizeBytes": strconv.FormatInt(c.sizeBytes, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.actionResults.update" call. -// Exactly one of *BuildBazelRemoteExecutionV2ActionResult or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *BuildBazelRemoteExecutionV2ActionResult.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BuildBazelRemoteExecutionV2ActionResult.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ActionResultsUpdateCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemoteExecutionV2ActionResult, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4545,17 +3646,17 @@ func (c *ActionResultsUpdateCall) Do(opts ...googleapi.CallOption) (*BuildBazelR if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BuildBazelRemoteExecutionV2ActionResult{ ServerResponse: googleapi.ServerResponse{ @@ -4568,59 +3669,7 @@ func (c *ActionResultsUpdateCall) Do(opts ...googleapi.CallOption) (*BuildBazelR return nil, err } return ret, nil - // { - // "description": "Upload a new execution result. In order to allow the server to perform access control based on the type of action, and to assist with client debugging, the client MUST first upload the Action that produced the result, along with its Command, into the `ContentAddressableStorage`. Server implementations MAY modify the `UpdateActionResultRequest.action_result` and return an equivalent value. Errors: * `INVALID_ARGUMENT`: One or more arguments are invalid. * `FAILED_PRECONDITION`: One or more errors occurred in updating the action result, such as a missing command or action. * `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the entry to the cache.", - // "flatPath": "v2/{v2Id}/actionResults/{hash}/{sizeBytes}", - // "httpMethod": "PUT", - // "id": "remotebuildexecution.actionResults.update", - // "parameterOrder": [ - // "instanceName", - // "hash", - // "sizeBytes" - // ], - // "parameters": { - // "hash": { - // "description": "The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instanceName": { - // "description": "The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // }, - // "resultsCachePolicy.priority": { - // "description": "The priority (relative importance) of this content in the overall cache. Generally, a lower value means a longer retention time or other advantage, but the interpretation of a given value is server-dependent. A priority of 0 means a *default* value, decided by the server. The particular semantics of this field is up to the server. In particular, every server will have their own supported range of priorities, and will decide how these map into retention/eviction policy.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "sizeBytes": { - // "description": "The size of the blob, in bytes.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+instanceName}/actionResults/{hash}/{sizeBytes}", - // "request": { - // "$ref": "BuildBazelRemoteExecutionV2ActionResult" - // }, - // "response": { - // "$ref": "BuildBazelRemoteExecutionV2ActionResult" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.actions.execute": +} type ActionsExecuteCall struct { s *Service @@ -4631,60 +3680,56 @@ type ActionsExecuteCall struct { header_ http.Header } -// Execute: Execute an action remotely. In order to execute an action, -// the client must first upload all of the inputs, the Command to run, -// and the Action into the ContentAddressableStorage. It then calls -// `Execute` with an `action_digest` referring to them. The server will -// run the action and eventually return the result. The input `Action`'s -// fields MUST meet the various canonicalization requirements specified -// in the documentation for their types so that it has the same digest -// as other logically equivalent `Action`s. The server MAY enforce the -// requirements and return errors if a non-canonical input is received. -// It MAY also proceed without verifying some or all of the -// requirements, such as for performance reasons. If the server does not -// verify the requirement, then it will treat the `Action` as distinct -// from another logically equivalent action if they hash differently. -// Returns a stream of google.longrunning.Operation messages describing -// the resulting execution, with eventual `response` ExecuteResponse. -// The `metadata` on the operation is of type ExecuteOperationMetadata. -// If the client remains connected after the first response is returned -// after the server, then updates are streamed as if the client had -// called WaitExecution until the execution completes or the request -// reaches an error. The operation can also be queried using Operations -// API. The server NEED NOT implement other methods or functionality of -// the Operations API. Errors discovered during creation of the -// `Operation` will be reported as gRPC Status errors, while errors that -// occurred while running the action will be reported in the `status` -// field of the `ExecuteResponse`. The server MUST NOT set the `error` -// field of the `Operation` proto. The possible errors include: * -// `INVALID_ARGUMENT`: One or more arguments are invalid. * -// `FAILED_PRECONDITION`: One or more errors occurred in setting up the -// action requested, such as a missing input or command or no worker -// being available. The client may be able to fix the errors and retry. -// * `RESOURCE_EXHAUSTED`: There is insufficient quota of some resource -// to run the action. * `UNAVAILABLE`: Due to a transient condition, -// such as all workers being occupied (and the server does not support a -// queue), the action could not be started. The client should retry. * -// `INTERNAL`: An internal error occurred in the execution engine or the -// worker. * `DEADLINE_EXCEEDED`: The execution timed out. * -// `CANCELLED`: The operation was cancelled by the client. This status -// is only possible if the server implements the Operations API -// CancelOperation method, and it was called for the current execution. -// In the case of a missing input or command, the server SHOULD -// additionally send a PreconditionFailure error detail where, for each -// requested blob not present in the CAS, there is a `Violation` with a -// `type` of `MISSING` and a `subject` of "blobs/{hash}/{size}" -// indicating the digest of the missing blob. The server does not need -// to guarantee that a call to this method leads to at most one -// execution of the action. The server MAY execute the action multiple -// times, potentially in parallel. These redundant executions MAY -// continue to run, even if the operation is completed. +// Execute: Execute an action remotely. In order to execute an action, the +// client must first upload all of the inputs, the Command to run, and the +// Action into the ContentAddressableStorage. It then calls `Execute` with an +// `action_digest` referring to them. The server will run the action and +// eventually return the result. The input `Action`'s fields MUST meet the +// various canonicalization requirements specified in the documentation for +// their types so that it has the same digest as other logically equivalent +// `Action`s. The server MAY enforce the requirements and return errors if a +// non-canonical input is received. It MAY also proceed without verifying some +// or all of the requirements, such as for performance reasons. If the server +// does not verify the requirement, then it will treat the `Action` as distinct +// from another logically equivalent action if they hash differently. Returns a +// stream of google.longrunning.Operation messages describing the resulting +// execution, with eventual `response` ExecuteResponse. The `metadata` on the +// operation is of type ExecuteOperationMetadata. If the client remains +// connected after the first response is returned after the server, then +// updates are streamed as if the client had called WaitExecution until the +// execution completes or the request reaches an error. The operation can also +// be queried using Operations API. The server NEED NOT implement other methods +// or functionality of the Operations API. Errors discovered during creation of +// the `Operation` will be reported as gRPC Status errors, while errors that +// occurred while running the action will be reported in the `status` field of +// the `ExecuteResponse`. The server MUST NOT set the `error` field of the +// `Operation` proto. The possible errors include: * `INVALID_ARGUMENT`: One or +// more arguments are invalid. * `FAILED_PRECONDITION`: One or more errors +// occurred in setting up the action requested, such as a missing input or +// command or no worker being available. The client may be able to fix the +// errors and retry. * `RESOURCE_EXHAUSTED`: There is insufficient quota of +// some resource to run the action. * `UNAVAILABLE`: Due to a transient +// condition, such as all workers being occupied (and the server does not +// support a queue), the action could not be started. The client should retry. +// * `INTERNAL`: An internal error occurred in the execution engine or the +// worker. * `DEADLINE_EXCEEDED`: The execution timed out. * `CANCELLED`: The +// operation was cancelled by the client. This status is only possible if the +// server implements the Operations API CancelOperation method, and it was +// called for the current execution. In the case of a missing input or command, +// the server SHOULD additionally send a PreconditionFailure error detail +// where, for each requested blob not present in the CAS, there is a +// `Violation` with a `type` of `MISSING` and a `subject` of +// "blobs/{hash}/{size}" indicating the digest of the missing blob. The +// server does not need to guarantee that a call to this method leads to at +// most one execution of the action. The server MAY execute the action multiple +// times, potentially in parallel. These redundant executions MAY continue to +// run, even if the operation is completed. // -// - instanceName: The instance of the execution system to operate -// against. A server may support multiple instances of the execution -// system (with their own workers, storage, caches, etc.). The server -// MAY require use of this field to select between them in an -// implementation-defined fashion, otherwise it can be omitted. +// - instanceName: The instance of the execution system to operate against. A +// server may support multiple instances of the execution system (with their +// own workers, storage, caches, etc.). The server MAY require use of this +// field to select between them in an implementation-defined fashion, +// otherwise it can be omitted. func (r *ActionsService) Execute(instanceName string, buildbazelremoteexecutionv2executerequest *BuildBazelRemoteExecutionV2ExecuteRequest) *ActionsExecuteCall { c := &ActionsExecuteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.instanceName = instanceName @@ -4693,23 +3738,21 @@ func (r *ActionsService) Execute(instanceName string, buildbazelremoteexecutionv } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ActionsExecuteCall) Fields(s ...googleapi.Field) *ActionsExecuteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ActionsExecuteCall) Context(ctx context.Context) *ActionsExecuteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ActionsExecuteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4718,18 +3761,12 @@ func (c *ActionsExecuteCall) Header() http.Header { } func (c *ActionsExecuteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildbazelremoteexecutionv2executerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+instanceName}/actions:execute") @@ -4742,16 +3779,15 @@ func (c *ActionsExecuteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "instanceName": c.instanceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.actions.execute" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ActionsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4759,17 +3795,17 @@ func (c *ActionsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -4782,38 +3818,7 @@ func (c *ActionsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin return nil, err } return ret, nil - // { - // "description": "Execute an action remotely. In order to execute an action, the client must first upload all of the inputs, the Command to run, and the Action into the ContentAddressableStorage. It then calls `Execute` with an `action_digest` referring to them. The server will run the action and eventually return the result. The input `Action`'s fields MUST meet the various canonicalization requirements specified in the documentation for their types so that it has the same digest as other logically equivalent `Action`s. The server MAY enforce the requirements and return errors if a non-canonical input is received. It MAY also proceed without verifying some or all of the requirements, such as for performance reasons. If the server does not verify the requirement, then it will treat the `Action` as distinct from another logically equivalent action if they hash differently. Returns a stream of google.longrunning.Operation messages describing the resulting execution, with eventual `response` ExecuteResponse. The `metadata` on the operation is of type ExecuteOperationMetadata. If the client remains connected after the first response is returned after the server, then updates are streamed as if the client had called WaitExecution until the execution completes or the request reaches an error. The operation can also be queried using Operations API. The server NEED NOT implement other methods or functionality of the Operations API. Errors discovered during creation of the `Operation` will be reported as gRPC Status errors, while errors that occurred while running the action will be reported in the `status` field of the `ExecuteResponse`. The server MUST NOT set the `error` field of the `Operation` proto. The possible errors include: * `INVALID_ARGUMENT`: One or more arguments are invalid. * `FAILED_PRECONDITION`: One or more errors occurred in setting up the action requested, such as a missing input or command or no worker being available. The client may be able to fix the errors and retry. * `RESOURCE_EXHAUSTED`: There is insufficient quota of some resource to run the action. * `UNAVAILABLE`: Due to a transient condition, such as all workers being occupied (and the server does not support a queue), the action could not be started. The client should retry. * `INTERNAL`: An internal error occurred in the execution engine or the worker. * `DEADLINE_EXCEEDED`: The execution timed out. * `CANCELLED`: The operation was cancelled by the client. This status is only possible if the server implements the Operations API CancelOperation method, and it was called for the current execution. In the case of a missing input or command, the server SHOULD additionally send a PreconditionFailure error detail where, for each requested blob not present in the CAS, there is a `Violation` with a `type` of `MISSING` and a `subject` of `\"blobs/{hash}/{size}\"` indicating the digest of the missing blob. The server does not need to guarantee that a call to this method leads to at most one execution of the action. The server MAY execute the action multiple times, potentially in parallel. These redundant executions MAY continue to run, even if the operation is completed.", - // "flatPath": "v2/{v2Id}/actions:execute", - // "httpMethod": "POST", - // "id": "remotebuildexecution.actions.execute", - // "parameterOrder": [ - // "instanceName" - // ], - // "parameters": { - // "instanceName": { - // "description": "The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+instanceName}/actions:execute", - // "request": { - // "$ref": "BuildBazelRemoteExecutionV2ExecuteRequest" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.blobs.batchRead": +} type BlobsBatchReadCall struct { s *Service @@ -4824,22 +3829,21 @@ type BlobsBatchReadCall struct { header_ http.Header } -// BatchRead: Download many blobs at once. The server may enforce a -// limit of the combined total size of blobs to be downloaded using this -// API. This limit may be obtained using the Capabilities API. Requests -// exceeding the limit should either be split into smaller chunks or -// downloaded using the ByteStream API, as appropriate. This request is -// equivalent to calling a Bytestream `Read` request on each individual -// blob, in parallel. The requests may succeed or fail independently. -// Errors: * `INVALID_ARGUMENT`: The client attempted to read more than -// the server supported limit. Every error on individual read will be -// returned in the corresponding digest status. +// BatchRead: Download many blobs at once. The server may enforce a limit of +// the combined total size of blobs to be downloaded using this API. This limit +// may be obtained using the Capabilities API. Requests exceeding the limit +// should either be split into smaller chunks or downloaded using the +// ByteStream API, as appropriate. This request is equivalent to calling a +// Bytestream `Read` request on each individual blob, in parallel. The requests +// may succeed or fail independently. Errors: * `INVALID_ARGUMENT`: The client +// attempted to read more than the server supported limit. Every error on +// individual read will be returned in the corresponding digest status. // -// - instanceName: The instance of the execution system to operate -// against. A server may support multiple instances of the execution -// system (with their own workers, storage, caches, etc.). The server -// MAY require use of this field to select between them in an -// implementation-defined fashion, otherwise it can be omitted. +// - instanceName: The instance of the execution system to operate against. A +// server may support multiple instances of the execution system (with their +// own workers, storage, caches, etc.). The server MAY require use of this +// field to select between them in an implementation-defined fashion, +// otherwise it can be omitted. func (r *BlobsService) BatchRead(instanceName string, buildbazelremoteexecutionv2batchreadblobsrequest *BuildBazelRemoteExecutionV2BatchReadBlobsRequest) *BlobsBatchReadCall { c := &BlobsBatchReadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.instanceName = instanceName @@ -4848,23 +3852,21 @@ func (r *BlobsService) BatchRead(instanceName string, buildbazelremoteexecutionv } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BlobsBatchReadCall) Fields(s ...googleapi.Field) *BlobsBatchReadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BlobsBatchReadCall) Context(ctx context.Context) *BlobsBatchReadCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BlobsBatchReadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4873,18 +3875,12 @@ func (c *BlobsBatchReadCall) Header() http.Header { } func (c *BlobsBatchReadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildbazelremoteexecutionv2batchreadblobsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+instanceName}/blobs:batchRead") @@ -4897,18 +3893,15 @@ func (c *BlobsBatchReadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "instanceName": c.instanceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.blobs.batchRead" call. -// Exactly one of *BuildBazelRemoteExecutionV2BatchReadBlobsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *BuildBazelRemoteExecutionV2BatchReadBlobsResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BuildBazelRemoteExecutionV2BatchReadBlobsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *BlobsBatchReadCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemoteExecutionV2BatchReadBlobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4916,17 +3909,17 @@ func (c *BlobsBatchReadCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemote if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BuildBazelRemoteExecutionV2BatchReadBlobsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4939,38 +3932,7 @@ func (c *BlobsBatchReadCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemote return nil, err } return ret, nil - // { - // "description": "Download many blobs at once. The server may enforce a limit of the combined total size of blobs to be downloaded using this API. This limit may be obtained using the Capabilities API. Requests exceeding the limit should either be split into smaller chunks or downloaded using the ByteStream API, as appropriate. This request is equivalent to calling a Bytestream `Read` request on each individual blob, in parallel. The requests may succeed or fail independently. Errors: * `INVALID_ARGUMENT`: The client attempted to read more than the server supported limit. Every error on individual read will be returned in the corresponding digest status.", - // "flatPath": "v2/{v2Id}/blobs:batchRead", - // "httpMethod": "POST", - // "id": "remotebuildexecution.blobs.batchRead", - // "parameterOrder": [ - // "instanceName" - // ], - // "parameters": { - // "instanceName": { - // "description": "The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+instanceName}/blobs:batchRead", - // "request": { - // "$ref": "BuildBazelRemoteExecutionV2BatchReadBlobsRequest" - // }, - // "response": { - // "$ref": "BuildBazelRemoteExecutionV2BatchReadBlobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.blobs.batchUpdate": +} type BlobsBatchUpdateCall struct { s *Service @@ -4981,24 +3943,23 @@ type BlobsBatchUpdateCall struct { header_ http.Header } -// BatchUpdate: Upload many blobs at once. The server may enforce a -// limit of the combined total size of blobs to be uploaded using this -// API. This limit may be obtained using the Capabilities API. Requests -// exceeding the limit should either be split into smaller chunks or -// uploaded using the ByteStream API, as appropriate. This request is -// equivalent to calling a Bytestream `Write` request on each individual -// blob, in parallel. The requests may succeed or fail independently. -// Errors: * `INVALID_ARGUMENT`: The client attempted to upload more -// than the server supported limit. Individual requests may return the -// following errors, additionally: * `RESOURCE_EXHAUSTED`: There is -// insufficient disk quota to store the blob. * `INVALID_ARGUMENT`: The -// Digest does not match the provided data. +// BatchUpdate: Upload many blobs at once. The server may enforce a limit of +// the combined total size of blobs to be uploaded using this API. This limit +// may be obtained using the Capabilities API. Requests exceeding the limit +// should either be split into smaller chunks or uploaded using the ByteStream +// API, as appropriate. This request is equivalent to calling a Bytestream +// `Write` request on each individual blob, in parallel. The requests may +// succeed or fail independently. Errors: * `INVALID_ARGUMENT`: The client +// attempted to upload more than the server supported limit. Individual +// requests may return the following errors, additionally: * +// `RESOURCE_EXHAUSTED`: There is insufficient disk quota to store the blob. * +// `INVALID_ARGUMENT`: The Digest does not match the provided data. // -// - instanceName: The instance of the execution system to operate -// against. A server may support multiple instances of the execution -// system (with their own workers, storage, caches, etc.). The server -// MAY require use of this field to select between them in an -// implementation-defined fashion, otherwise it can be omitted. +// - instanceName: The instance of the execution system to operate against. A +// server may support multiple instances of the execution system (with their +// own workers, storage, caches, etc.). The server MAY require use of this +// field to select between them in an implementation-defined fashion, +// otherwise it can be omitted. func (r *BlobsService) BatchUpdate(instanceName string, buildbazelremoteexecutionv2batchupdateblobsrequest *BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest) *BlobsBatchUpdateCall { c := &BlobsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.instanceName = instanceName @@ -5007,23 +3968,21 @@ func (r *BlobsService) BatchUpdate(instanceName string, buildbazelremoteexecutio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BlobsBatchUpdateCall) Fields(s ...googleapi.Field) *BlobsBatchUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BlobsBatchUpdateCall) Context(ctx context.Context) *BlobsBatchUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BlobsBatchUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5032,18 +3991,12 @@ func (c *BlobsBatchUpdateCall) Header() http.Header { } func (c *BlobsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildbazelremoteexecutionv2batchupdateblobsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+instanceName}/blobs:batchUpdate") @@ -5056,18 +4009,15 @@ func (c *BlobsBatchUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "instanceName": c.instanceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.blobs.batchUpdate" call. -// Exactly one of *BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *BlobsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5075,17 +4025,17 @@ func (c *BlobsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5098,38 +4048,7 @@ func (c *BlobsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemo return nil, err } return ret, nil - // { - // "description": "Upload many blobs at once. The server may enforce a limit of the combined total size of blobs to be uploaded using this API. This limit may be obtained using the Capabilities API. Requests exceeding the limit should either be split into smaller chunks or uploaded using the ByteStream API, as appropriate. This request is equivalent to calling a Bytestream `Write` request on each individual blob, in parallel. The requests may succeed or fail independently. Errors: * `INVALID_ARGUMENT`: The client attempted to upload more than the server supported limit. Individual requests may return the following errors, additionally: * `RESOURCE_EXHAUSTED`: There is insufficient disk quota to store the blob. * `INVALID_ARGUMENT`: The Digest does not match the provided data.", - // "flatPath": "v2/{v2Id}/blobs:batchUpdate", - // "httpMethod": "POST", - // "id": "remotebuildexecution.blobs.batchUpdate", - // "parameterOrder": [ - // "instanceName" - // ], - // "parameters": { - // "instanceName": { - // "description": "The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+instanceName}/blobs:batchUpdate", - // "request": { - // "$ref": "BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest" - // }, - // "response": { - // "$ref": "BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.blobs.findMissing": +} type BlobsFindMissingCall struct { s *Service @@ -5140,17 +4059,17 @@ type BlobsFindMissingCall struct { header_ http.Header } -// FindMissing: Determine if blobs are present in the CAS. Clients can -// use this API before uploading blobs to determine which ones are -// already present in the CAS and do not need to be uploaded again. -// Servers SHOULD increase the lifetimes of the referenced blobs if -// necessary and applicable. There are no method-specific errors. +// FindMissing: Determine if blobs are present in the CAS. Clients can use this +// API before uploading blobs to determine which ones are already present in +// the CAS and do not need to be uploaded again. Servers SHOULD increase the +// lifetimes of the referenced blobs if necessary and applicable. There are no +// method-specific errors. // -// - instanceName: The instance of the execution system to operate -// against. A server may support multiple instances of the execution -// system (with their own workers, storage, caches, etc.). The server -// MAY require use of this field to select between them in an -// implementation-defined fashion, otherwise it can be omitted. +// - instanceName: The instance of the execution system to operate against. A +// server may support multiple instances of the execution system (with their +// own workers, storage, caches, etc.). The server MAY require use of this +// field to select between them in an implementation-defined fashion, +// otherwise it can be omitted. func (r *BlobsService) FindMissing(instanceName string, buildbazelremoteexecutionv2findmissingblobsrequest *BuildBazelRemoteExecutionV2FindMissingBlobsRequest) *BlobsFindMissingCall { c := &BlobsFindMissingCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.instanceName = instanceName @@ -5159,23 +4078,21 @@ func (r *BlobsService) FindMissing(instanceName string, buildbazelremoteexecutio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BlobsFindMissingCall) Fields(s ...googleapi.Field) *BlobsFindMissingCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BlobsFindMissingCall) Context(ctx context.Context) *BlobsFindMissingCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BlobsFindMissingCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5184,18 +4101,12 @@ func (c *BlobsFindMissingCall) Header() http.Header { } func (c *BlobsFindMissingCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildbazelremoteexecutionv2findmissingblobsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+instanceName}/blobs:findMissing") @@ -5208,18 +4119,15 @@ func (c *BlobsFindMissingCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "instanceName": c.instanceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.blobs.findMissing" call. -// Exactly one of *BuildBazelRemoteExecutionV2FindMissingBlobsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *BuildBazelRemoteExecutionV2FindMissingBlobsResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BuildBazelRemoteExecutionV2FindMissingBlobsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *BlobsFindMissingCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemoteExecutionV2FindMissingBlobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5227,17 +4135,17 @@ func (c *BlobsFindMissingCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BuildBazelRemoteExecutionV2FindMissingBlobsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5250,38 +4158,7 @@ func (c *BlobsFindMissingCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemo return nil, err } return ret, nil - // { - // "description": "Determine if blobs are present in the CAS. Clients can use this API before uploading blobs to determine which ones are already present in the CAS and do not need to be uploaded again. Servers SHOULD increase the lifetimes of the referenced blobs if necessary and applicable. There are no method-specific errors.", - // "flatPath": "v2/{v2Id}/blobs:findMissing", - // "httpMethod": "POST", - // "id": "remotebuildexecution.blobs.findMissing", - // "parameterOrder": [ - // "instanceName" - // ], - // "parameters": { - // "instanceName": { - // "description": "The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+instanceName}/blobs:findMissing", - // "request": { - // "$ref": "BuildBazelRemoteExecutionV2FindMissingBlobsRequest" - // }, - // "response": { - // "$ref": "BuildBazelRemoteExecutionV2FindMissingBlobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.blobs.getTree": +} type BlobsGetTreeCall struct { s *Service @@ -5294,28 +4171,27 @@ type BlobsGetTreeCall struct { header_ http.Header } -// GetTree: Fetch the entire directory tree rooted at a node. This -// request must be targeted at a Directory stored in the -// ContentAddressableStorage (CAS). The server will enumerate the -// `Directory` tree recursively and return every node descended from the -// root. The GetTreeRequest.page_token parameter can be used to skip -// ahead in the stream (e.g. when retrying a partially completed and -// aborted request), by setting it to a value taken from +// GetTree: Fetch the entire directory tree rooted at a node. This request must +// be targeted at a Directory stored in the ContentAddressableStorage (CAS). +// The server will enumerate the `Directory` tree recursively and return every +// node descended from the root. The GetTreeRequest.page_token parameter can be +// used to skip ahead in the stream (e.g. when retrying a partially completed +// and aborted request), by setting it to a value taken from // GetTreeResponse.next_page_token of the last successfully processed -// GetTreeResponse). The exact traversal order is unspecified and, -// unless retrieving subsequent pages from an earlier request, is not -// guaranteed to be stable across multiple invocations of `GetTree`. If -// part of the tree is missing from the CAS, the server will return the -// portion present and omit the rest. Errors: * `NOT_FOUND`: The -// requested tree root is not present in the CAS. +// GetTreeResponse). The exact traversal order is unspecified and, unless +// retrieving subsequent pages from an earlier request, is not guaranteed to be +// stable across multiple invocations of `GetTree`. If part of the tree is +// missing from the CAS, the server will return the portion present and omit +// the rest. Errors: * `NOT_FOUND`: The requested tree root is not present in +// the CAS. // -// - hash: The hash. In the case of SHA-256, it will always be a -// lowercase hex string exactly 64 characters long. -// - instanceName: The instance of the execution system to operate -// against. A server may support multiple instances of the execution -// system (with their own workers, storage, caches, etc.). The server -// MAY require use of this field to select between them in an -// implementation-defined fashion, otherwise it can be omitted. +// - hash: The hash. In the case of SHA-256, it will always be a lowercase hex +// string exactly 64 characters long. +// - instanceName: The instance of the execution system to operate against. A +// server may support multiple instances of the execution system (with their +// own workers, storage, caches, etc.). The server MAY require use of this +// field to select between them in an implementation-defined fashion, +// otherwise it can be omitted. // - sizeBytes: The size of the blob, in bytes. func (r *BlobsService) GetTree(instanceName string, hash string, sizeBytes int64) *BlobsGetTreeCall { c := &BlobsGetTreeCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5325,54 +4201,49 @@ func (r *BlobsService) GetTree(instanceName string, hash string, sizeBytes int64 return c } -// PageSize sets the optional parameter "pageSize": A maximum page size -// to request. If present, the server will request no more than this -// many items. Regardless of whether a page size is specified, the -// server may place its own limit on the number of items to be returned -// and require the client to retrieve more items using a subsequent -// request. +// PageSize sets the optional parameter "pageSize": A maximum page size to +// request. If present, the server will request no more than this many items. +// Regardless of whether a page size is specified, the server may place its own +// limit on the number of items to be returned and require the client to +// retrieve more items using a subsequent request. func (c *BlobsGetTreeCall) PageSize(pageSize int64) *BlobsGetTreeCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// which must be a value received in a previous GetTreeResponse. If -// present, the server will use that token as an offset, returning only -// that page and the ones that succeed it. +// PageToken sets the optional parameter "pageToken": A page token, which must +// be a value received in a previous GetTreeResponse. If present, the server +// will use that token as an offset, returning only that page and the ones that +// succeed it. func (c *BlobsGetTreeCall) PageToken(pageToken string) *BlobsGetTreeCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BlobsGetTreeCall) Fields(s ...googleapi.Field) *BlobsGetTreeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BlobsGetTreeCall) IfNoneMatch(entityTag string) *BlobsGetTreeCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BlobsGetTreeCall) Context(ctx context.Context) *BlobsGetTreeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BlobsGetTreeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5381,12 +4252,7 @@ func (c *BlobsGetTreeCall) Header() http.Header { } func (c *BlobsGetTreeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5405,18 +4271,15 @@ func (c *BlobsGetTreeCall) doRequest(alt string) (*http.Response, error) { "hash": c.hash, "sizeBytes": strconv.FormatInt(c.sizeBytes, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.blobs.getTree" call. -// Exactly one of *BuildBazelRemoteExecutionV2GetTreeResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *BuildBazelRemoteExecutionV2GetTreeResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BuildBazelRemoteExecutionV2GetTreeResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *BlobsGetTreeCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemoteExecutionV2GetTreeResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5424,17 +4287,17 @@ func (c *BlobsGetTreeCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemoteEx if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BuildBazelRemoteExecutionV2GetTreeResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5447,58 +4310,6 @@ func (c *BlobsGetTreeCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemoteEx return nil, err } return ret, nil - // { - // "description": "Fetch the entire directory tree rooted at a node. This request must be targeted at a Directory stored in the ContentAddressableStorage (CAS). The server will enumerate the `Directory` tree recursively and return every node descended from the root. The GetTreeRequest.page_token parameter can be used to skip ahead in the stream (e.g. when retrying a partially completed and aborted request), by setting it to a value taken from GetTreeResponse.next_page_token of the last successfully processed GetTreeResponse). The exact traversal order is unspecified and, unless retrieving subsequent pages from an earlier request, is not guaranteed to be stable across multiple invocations of `GetTree`. If part of the tree is missing from the CAS, the server will return the portion present and omit the rest. Errors: * `NOT_FOUND`: The requested tree root is not present in the CAS.", - // "flatPath": "v2/{v2Id}/blobs/{hash}/{sizeBytes}:getTree", - // "httpMethod": "GET", - // "id": "remotebuildexecution.blobs.getTree", - // "parameterOrder": [ - // "instanceName", - // "hash", - // "sizeBytes" - // ], - // "parameters": { - // "hash": { - // "description": "The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instanceName": { - // "description": "The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "A maximum page size to request. If present, the server will request no more than this many items. Regardless of whether a page size is specified, the server may place its own limit on the number of items to be returned and require the client to retrieve more items using a subsequent request.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, which must be a value received in a previous GetTreeResponse. If present, the server will use that token as an offset, returning only that page and the ones that succeed it.", - // "location": "query", - // "type": "string" - // }, - // "sizeBytes": { - // "description": "The size of the blob, in bytes.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+instanceName}/blobs/{hash}/{sizeBytes}:getTree", - // "response": { - // "$ref": "BuildBazelRemoteExecutionV2GetTreeResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -5506,7 +4317,7 @@ func (c *BlobsGetTreeCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemoteEx // The provided context supersedes any context provided to the Context method. func (c *BlobsGetTreeCall) Pages(ctx context.Context, f func(*BuildBazelRemoteExecutionV2GetTreeResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5522,8 +4333,6 @@ func (c *BlobsGetTreeCall) Pages(ctx context.Context, f func(*BuildBazelRemoteEx } } -// method id "remotebuildexecution.operations.waitExecution": - type OperationsWaitExecutionCall struct { s *Service name string @@ -5533,13 +4342,12 @@ type OperationsWaitExecutionCall struct { header_ http.Header } -// WaitExecution: Wait for an execution operation to complete. When the -// client initially makes the request, the server immediately responds -// with the current status of the execution. The server will leave the -// request stream open until the operation completes, and then respond -// with the completed operation. The server MAY choose to stream -// additional updates as execution progresses, such as to provide an -// update as to the state of the execution. +// WaitExecution: Wait for an execution operation to complete. When the client +// initially makes the request, the server immediately responds with the +// current status of the execution. The server will leave the request stream +// open until the operation completes, and then respond with the completed +// operation. The server MAY choose to stream additional updates as execution +// progresses, such as to provide an update as to the state of the execution. // // - name: The name of the Operation returned by Execute. func (r *OperationsService) WaitExecution(name string, buildbazelremoteexecutionv2waitexecutionrequest *BuildBazelRemoteExecutionV2WaitExecutionRequest) *OperationsWaitExecutionCall { @@ -5550,23 +4358,21 @@ func (r *OperationsService) WaitExecution(name string, buildbazelremoteexecution } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsWaitExecutionCall) Fields(s ...googleapi.Field) *OperationsWaitExecutionCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsWaitExecutionCall) Context(ctx context.Context) *OperationsWaitExecutionCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsWaitExecutionCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5575,18 +4381,12 @@ func (c *OperationsWaitExecutionCall) Header() http.Header { } func (c *OperationsWaitExecutionCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildbazelremoteexecutionv2waitexecutionrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:waitExecution") @@ -5599,16 +4399,15 @@ func (c *OperationsWaitExecutionCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.operations.waitExecution" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OperationsWaitExecutionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5616,17 +4415,17 @@ func (c *OperationsWaitExecutionCall) Do(opts ...googleapi.CallOption) (*GoogleL if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ @@ -5639,38 +4438,7 @@ func (c *OperationsWaitExecutionCall) Do(opts ...googleapi.CallOption) (*GoogleL return nil, err } return ret, nil - // { - // "description": "Wait for an execution operation to complete. When the client initially makes the request, the server immediately responds with the current status of the execution. The server will leave the request stream open until the operation completes, and then respond with the completed operation. The server MAY choose to stream additional updates as execution progresses, such as to provide an update as to the state of the execution.", - // "flatPath": "v2/operations/{operationsId}:waitExecution", - // "httpMethod": "POST", - // "id": "remotebuildexecution.operations.waitExecution", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the Operation returned by Execute.", - // "location": "path", - // "pattern": "^operations/.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}:waitExecution", - // "request": { - // "$ref": "BuildBazelRemoteExecutionV2WaitExecutionRequest" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "remotebuildexecution.getCapabilities": +} type V2GetCapabilitiesCall struct { s *Service @@ -5682,18 +4450,17 @@ type V2GetCapabilitiesCall struct { } // GetCapabilities: GetCapabilities returns the server capabilities -// configuration of the remote endpoint. Only the capabilities of the -// services supported by the endpoint will be returned: * Execution + -// CAS + Action Cache endpoints should return both CacheCapabilities and -// ExecutionCapabilities. * Execution only endpoints should return -// ExecutionCapabilities. * CAS + Action Cache only endpoints should -// return CacheCapabilities. +// configuration of the remote endpoint. Only the capabilities of the services +// supported by the endpoint will be returned: * Execution + CAS + Action Cache +// endpoints should return both CacheCapabilities and ExecutionCapabilities. * +// Execution only endpoints should return ExecutionCapabilities. * CAS + Action +// Cache only endpoints should return CacheCapabilities. // -// - instanceName: The instance of the execution system to operate -// against. A server may support multiple instances of the execution -// system (with their own workers, storage, caches, etc.). The server -// MAY require use of this field to select between them in an -// implementation-defined fashion, otherwise it can be omitted. +// - instanceName: The instance of the execution system to operate against. A +// server may support multiple instances of the execution system (with their +// own workers, storage, caches, etc.). The server MAY require use of this +// field to select between them in an implementation-defined fashion, +// otherwise it can be omitted. func (r *V2Service) GetCapabilities(instanceName string) *V2GetCapabilitiesCall { c := &V2GetCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.instanceName = instanceName @@ -5701,33 +4468,29 @@ func (r *V2Service) GetCapabilities(instanceName string) *V2GetCapabilitiesCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V2GetCapabilitiesCall) Fields(s ...googleapi.Field) *V2GetCapabilitiesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *V2GetCapabilitiesCall) IfNoneMatch(entityTag string) *V2GetCapabilitiesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V2GetCapabilitiesCall) Context(ctx context.Context) *V2GetCapabilitiesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V2GetCapabilitiesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5736,12 +4499,7 @@ func (c *V2GetCapabilitiesCall) Header() http.Header { } func (c *V2GetCapabilitiesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210721") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5758,18 +4516,15 @@ func (c *V2GetCapabilitiesCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "instanceName": c.instanceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "remotebuildexecution.getCapabilities" call. -// Exactly one of *BuildBazelRemoteExecutionV2ServerCapabilities or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *BuildBazelRemoteExecutionV2ServerCapabilities.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *BuildBazelRemoteExecutionV2ServerCapabilities.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V2GetCapabilitiesCall) Do(opts ...googleapi.CallOption) (*BuildBazelRemoteExecutionV2ServerCapabilities, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5777,17 +4532,17 @@ func (c *V2GetCapabilitiesCall) Do(opts ...googleapi.CallOption) (*BuildBazelRem if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BuildBazelRemoteExecutionV2ServerCapabilities{ ServerResponse: googleapi.ServerResponse{ @@ -5800,30 +4555,4 @@ func (c *V2GetCapabilitiesCall) Do(opts ...googleapi.CallOption) (*BuildBazelRem return nil, err } return ret, nil - // { - // "description": "GetCapabilities returns the server capabilities configuration of the remote endpoint. Only the capabilities of the services supported by the endpoint will be returned: * Execution + CAS + Action Cache endpoints should return both CacheCapabilities and ExecutionCapabilities. * Execution only endpoints should return ExecutionCapabilities. * CAS + Action Cache only endpoints should return CacheCapabilities.", - // "flatPath": "v2/{v2Id}/capabilities", - // "httpMethod": "GET", - // "id": "remotebuildexecution.getCapabilities", - // "parameterOrder": [ - // "instanceName" - // ], - // "parameters": { - // "instanceName": { - // "description": "The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.", - // "location": "path", - // "pattern": "^.*$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+instanceName}/capabilities", - // "response": { - // "$ref": "BuildBazelRemoteExecutionV2ServerCapabilities" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/replicapool/v1beta1/replicapool-gen.go b/replicapool/v1beta1/replicapool-gen.go index 080da53a9ef..443b7d387bd 100644 --- a/replicapool/v1beta1/replicapool-gen.go +++ b/replicapool/v1beta1/replicapool-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/compute/docs/replica-pool/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // replicapoolService, err := replicapool.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // replicapoolService, err := replicapool.NewService(ctx, option.WithScopes(replicapool.ReplicapoolReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // replicapoolService, err := replicapool.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // replicapoolService, err := replicapool.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package replicapool // import "google.golang.org/api/replicapool/v1beta1" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "replicapool:v1beta1" const apiName = "replicapool" const apiVersion = "v1beta1" const basePath = "https://www.googleapis.com/replicapool/v1beta1/projects/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/replicapool/v1beta1/projects/" // OAuth2 scopes used by this API. const ( @@ -90,8 +109,8 @@ const ( // deployment status information NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudman" - // View your Google Cloud Platform management resources and deployment - // status information + // View your Google Cloud Platform management resources and deployment status + // information NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev.cloudman.readonly" // View and manage replica pools @@ -103,7 +122,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/ndev.cloudman", @@ -113,6 +132,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -182,954 +204,728 @@ type ReplicasService struct { type AccessConfig struct { // Name: Name of this access configuration. Name string `json:"name,omitempty"` - // NatIp: An external IP address associated with this instance. NatIp string `json:"natIp,omitempty"` - - // Type: Type of this access configuration file. Currently only - // ONE_TO_ONE_NAT is supported. + // Type: Type of this access configuration file. Currently only ONE_TO_ONE_NAT + // is supported. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AccessConfig) MarshalJSON() ([]byte, error) { +func (s AccessConfig) MarshalJSON() ([]byte, error) { type NoMethod AccessConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Action: An action that gets executed during initialization of the -// replicas. +// Action: An action that gets executed during initialization of the replicas. type Action struct { - // Commands: A list of commands to run, one per line. If any command - // fails, the whole action is considered a failure and no further - // actions are run. This also marks the virtual machine or replica as a - // failure. + // Commands: A list of commands to run, one per line. If any command fails, the + // whole action is considered a failure and no further actions are run. This + // also marks the virtual machine or replica as a failure. Commands []string `json:"commands,omitempty"` - - // EnvVariables: A list of environment variables to use for the commands - // in this action. + // EnvVariables: A list of environment variables to use for the commands in + // this action. EnvVariables []*EnvVariable `json:"envVariables,omitempty"` - - // TimeoutMilliSeconds: If an action's commands on a particular replica - // do not finish in the specified timeoutMilliSeconds, the replica is - // considered to be in a FAILING state. No efforts are made to stop any - // processes that were spawned or created as the result of running the - // action's commands. The default is the max allowed value, 1 hour (i.e. - // 3600000 milliseconds). + // TimeoutMilliSeconds: If an action's commands on a particular replica do not + // finish in the specified timeoutMilliSeconds, the replica is considered to be + // in a FAILING state. No efforts are made to stop any processes that were + // spawned or created as the result of running the action's commands. The + // default is the max allowed value, 1 hour (i.e. 3600000 milliseconds). TimeoutMilliSeconds int64 `json:"timeoutMilliSeconds,omitempty"` - // ForceSendFields is a list of field names (e.g. "Commands") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Commands") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Commands") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Action) MarshalJSON() ([]byte, error) { +func (s Action) MarshalJSON() ([]byte, error) { type NoMethod Action - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DiskAttachment: Specifies how to attach a disk to a Replica. type DiskAttachment struct { // DeviceName: The device name of this disk. DeviceName string `json:"deviceName,omitempty"` - - // Index: A zero-based index to assign to this disk, where 0 is reserved - // for the boot disk. If not specified, this is assigned by the server. + // Index: A zero-based index to assign to this disk, where 0 is reserved for + // the boot disk. If not specified, this is assigned by the server. Index int64 `json:"index,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DiskAttachment) MarshalJSON() ([]byte, error) { +func (s DiskAttachment) MarshalJSON() ([]byte, error) { type NoMethod DiskAttachment - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnvVariable: An environment variable to set for an action. type EnvVariable struct { // Hidden: Deprecated, do not use. Hidden bool `json:"hidden,omitempty"` - // Name: The name of the environment variable. Name string `json:"name,omitempty"` - // Value: The value of the variable. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Hidden") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Hidden") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Hidden") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnvVariable) MarshalJSON() ([]byte, error) { +func (s EnvVariable) MarshalJSON() ([]byte, error) { type NoMethod EnvVariable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExistingDisk: A pre-existing persistent disk that will be attached to -// every Replica in the Pool in READ_ONLY mode. +// ExistingDisk: A pre-existing persistent disk that will be attached to every +// Replica in the Pool in READ_ONLY mode. type ExistingDisk struct { // Attachment: How the disk will be attached to the Replica. Attachment *DiskAttachment `json:"attachment,omitempty"` - // Source: The name of the Persistent Disk resource. The Persistent Disk // resource must be in the same zone as the Pool. Source string `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "Attachment") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attachment") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attachment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExistingDisk) MarshalJSON() ([]byte, error) { +func (s ExistingDisk) MarshalJSON() ([]byte, error) { type NoMethod ExistingDisk - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type HealthCheck struct { - // CheckIntervalSec: How often (in seconds) to make HTTP requests for - // this healthcheck. The default value is 5 seconds. + // CheckIntervalSec: How often (in seconds) to make HTTP requests for this + // healthcheck. The default value is 5 seconds. CheckIntervalSec int64 `json:"checkIntervalSec,omitempty"` - // Description: The description for this health check. Description string `json:"description,omitempty"` - - // HealthyThreshold: The number of consecutive health check requests - // that need to succeed before the replica is considered healthy again. - // The default value is 2. + // HealthyThreshold: The number of consecutive health check requests that need + // to succeed before the replica is considered healthy again. The default value + // is 2. HealthyThreshold int64 `json:"healthyThreshold,omitempty"` - - // Host: The value of the host header in the HTTP health check request. - // If left empty (default value), the localhost IP 127.0.0.1 will be - // used. + // Host: The value of the host header in the HTTP health check request. If left + // empty (default value), the localhost IP 127.0.0.1 will be used. Host string `json:"host,omitempty"` - // Name: The name of this health check. Name string `json:"name,omitempty"` - - // Path: The localhost request path to send this health check, in the - // format /path/to/use. For example, /healthcheck. + // Path: The localhost request path to send this health check, in the format + // /path/to/use. For example, /healthcheck. Path string `json:"path,omitempty"` - // Port: The TCP port for the health check requests. Port int64 `json:"port,omitempty"` - - // TimeoutSec: How long (in seconds) to wait before a timeout failure - // for this healthcheck. The default value is 5 seconds. + // TimeoutSec: How long (in seconds) to wait before a timeout failure for this + // healthcheck. The default value is 5 seconds. TimeoutSec int64 `json:"timeoutSec,omitempty"` - - // UnhealthyThreshold: The number of consecutive health check requests - // that need to fail in order to consider the replica unhealthy. The - // default value is 2. + // UnhealthyThreshold: The number of consecutive health check requests that + // need to fail in order to consider the replica unhealthy. The default value + // is 2. UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"` - // ForceSendFields is a list of field names (e.g. "CheckIntervalSec") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CheckIntervalSec") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CheckIntervalSec") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HealthCheck) MarshalJSON() ([]byte, error) { +func (s HealthCheck) MarshalJSON() ([]byte, error) { type NoMethod HealthCheck - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Label: A label to apply to this replica pool. type Label struct { // Key: The key for this label. Key string `json:"key,omitempty"` - // Value: The value of this label. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Label) MarshalJSON() ([]byte, error) { +func (s Label) MarshalJSON() ([]byte, error) { type NoMethod Label - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Metadata: A Compute Engine metadata entry. Identical to the metadata -// on the corresponding Compute Engine resource. +// Metadata: A Compute Engine metadata entry. Identical to the metadata on the +// corresponding Compute Engine resource. type Metadata struct { - // FingerPrint: The fingerprint of the metadata. Required for updating - // the metadata entries for this instance. + // FingerPrint: The fingerprint of the metadata. Required for updating the + // metadata entries for this instance. FingerPrint string `json:"fingerPrint,omitempty"` - // Items: A list of metadata items. Items []*MetadataItem `json:"items,omitempty"` - // ForceSendFields is a list of field names (e.g. "FingerPrint") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FingerPrint") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FingerPrint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Metadata) MarshalJSON() ([]byte, error) { +func (s Metadata) MarshalJSON() ([]byte, error) { type NoMethod Metadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MetadataItem: A Compute Engine metadata item, defined as a key:value -// pair. Identical to the metadata on the corresponding Compute Engine -// resource. +// MetadataItem: A Compute Engine metadata item, defined as a key:value pair. +// Identical to the metadata on the corresponding Compute Engine resource. type MetadataItem struct { // Key: A metadata key. Key string `json:"key,omitempty"` - // Value: A metadata value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetadataItem) MarshalJSON() ([]byte, error) { +func (s MetadataItem) MarshalJSON() ([]byte, error) { type NoMethod MetadataItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NetworkInterface: A Compute Engine NetworkInterface resource. -// Identical to the NetworkInterface on the corresponding Compute Engine -// resource. +// NetworkInterface: A Compute Engine NetworkInterface resource. Identical to +// the NetworkInterface on the corresponding Compute Engine resource. type NetworkInterface struct { - // AccessConfigs: An array of configurations for this interface. This - // specifies how this interface is configured to interact with other - // network services. + // AccessConfigs: An array of configurations for this interface. This specifies + // how this interface is configured to interact with other network services. AccessConfigs []*AccessConfig `json:"accessConfigs,omitempty"` - // Network: Name the Network resource to which this interface applies. Network string `json:"network,omitempty"` - // NetworkIp: An optional IPV4 internal network address to assign to the // instance for this network interface. NetworkIp string `json:"networkIp,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AccessConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AccessConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NetworkInterface) MarshalJSON() ([]byte, error) { +func (s NetworkInterface) MarshalJSON() ([]byte, error) { type NoMethod NetworkInterface - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NewDisk: A Persistent Disk resource that will be created and attached -// to each Replica in the Pool. Each Replica will have a unique -// persistent disk that is created and attached to that Replica in -// READ_WRITE mode. +// NewDisk: A Persistent Disk resource that will be created and attached to +// each Replica in the Pool. Each Replica will have a unique persistent disk +// that is created and attached to that Replica in READ_WRITE mode. type NewDisk struct { // Attachment: How the disk will be attached to the Replica. Attachment *DiskAttachment `json:"attachment,omitempty"` - - // AutoDelete: If true, then this disk will be deleted when the instance - // is deleted. The default value is true. + // AutoDelete: If true, then this disk will be deleted when the instance is + // deleted. The default value is true. AutoDelete bool `json:"autoDelete,omitempty"` - // Boot: If true, indicates that this is the root persistent disk. Boot bool `json:"boot,omitempty"` - - // InitializeParams: Create the new disk using these parameters. The - // name of the disk will be ---. The postfix will be a four - // character alphanumeric identifier generated by the service. + // BaseInstanceName: The base instance name to use for the replicas in this + // pool. This must match the regex a-z ([-a-z0-9]*[a-z0-9])?. If specified, the + // instances in this replica pool will be named in the format + // -. The postfix will be a four character + // alphanumeric identifier generated by the service. // // If this is not specified by the user, a random base instance name is // generated by the service. BaseInstanceName string `json:"baseInstanceName,omitempty"` - - // CurrentNumReplicas: [Output Only] The current number of replicas in - // the pool. + // CurrentNumReplicas: [Output Only] The current number of replicas in the + // pool. CurrentNumReplicas int64 `json:"currentNumReplicas,omitempty"` - // Description: An optional description of the replica pool. Description string `json:"description,omitempty"` - // HealthChecks: Deprecated. Please use template[].healthChecks instead. HealthChecks []*HealthCheck `json:"healthChecks,omitempty"` - - // InitialNumReplicas: The initial number of replicas this pool should - // have. You must provide a value greater than or equal to 0. + // InitialNumReplicas: The initial number of replicas this pool should have. + // You must provide a value greater than or equal to 0. InitialNumReplicas int64 `json:"initialNumReplicas,omitempty"` - - // Labels: A list of labels to attach to this replica pool and all - // created virtual machines in this replica pool. + // Labels: A list of labels to attach to this replica pool and all created + // virtual machines in this replica pool. Labels []*Label `json:"labels,omitempty"` - - // Name: The name of the replica pool. Must follow the regex - // [a-z]([-a-z0-9]*[a-z0-9])? and be 1-28 characters long. + // Name: The name of the replica pool. Must follow the regex a-z + // ([-a-z0-9]*[a-z0-9])? and be 1-28 characters long. Name string `json:"name,omitempty"` - // NumReplicas: Deprecated! Use initial_num_replicas instead. NumReplicas int64 `json:"numReplicas,omitempty"` - - // ResourceViews: The list of resource views that should be updated with - // all the replicas that are managed by this pool. + // ResourceViews: The list of resource views that should be updated with all + // the replicas that are managed by this pool. ResourceViews []string `json:"resourceViews,omitempty"` - // SelfLink: [Output Only] A self-link to the replica pool. SelfLink string `json:"selfLink,omitempty"` - // TargetPool: Deprecated, please use target_pools instead. TargetPool string `json:"targetPool,omitempty"` - - // TargetPools: A list of target pools to update with the replicas that - // are managed by this pool. If specified, the replicas in this replica - // pool will be added to the specified target pools for load balancing - // purposes. The replica pool must live in the same region as the - // specified target pools. These values must be the target pool resource - // names, and not fully qualified URLs. + // TargetPools: A list of target pools to update with the replicas that are + // managed by this pool. If specified, the replicas in this replica pool will + // be added to the specified target pools for load balancing purposes. The + // replica pool must live in the same region as the specified target pools. + // These values must be the target pool resource names, and not fully qualified + // URLs. TargetPools []string `json:"targetPools,omitempty"` - - // Template: The template to use when creating replicas in this pool. - // This template is used during initial instance creation of the pool, - // when growing the pool in size, or when a replica restarts. + // Template: The template to use when creating replicas in this pool. This + // template is used during initial instance creation of the pool, when growing + // the pool in size, or when a replica restarts. Template *Template `json:"template,omitempty"` - // Type: Deprecated! Do not set. Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AutoRestart") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutoRestart") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AutoRestart") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pool) MarshalJSON() ([]byte, error) { +func (s Pool) MarshalJSON() ([]byte, error) { type NoMethod Pool - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PoolsDeleteRequest struct { - // AbandonInstances: If there are instances you would like to keep, you - // can specify them here. These instances won't be deleted, but the - // associated replica objects will be removed. + // AbandonInstances: If there are instances you would like to keep, you can + // specify them here. These instances won't be deleted, but the associated + // replica objects will be removed. AbandonInstances []string `json:"abandonInstances,omitempty"` - // ForceSendFields is a list of field names (e.g. "AbandonInstances") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AbandonInstances") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AbandonInstances") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoolsDeleteRequest) MarshalJSON() ([]byte, error) { +func (s PoolsDeleteRequest) MarshalJSON() ([]byte, error) { type NoMethod PoolsDeleteRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PoolsListResponse struct { - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*Pool `json:"resources,omitempty"` + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*Pool `json:"resources,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PoolsListResponse) MarshalJSON() ([]byte, error) { +func (s PoolsListResponse) MarshalJSON() ([]byte, error) { type NoMethod PoolsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Replica: An individual Replica within a Pool. Replicas are -// automatically created by the replica pool, using the template -// provided by the user. You cannot directly create replicas. +// Replica: An individual Replica within a Pool. Replicas are automatically +// created by the replica pool, using the template provided by the user. You +// cannot directly create replicas. type Replica struct { // Name: [Output Only] The name of the Replica object. Name string `json:"name,omitempty"` - // SelfLink: [Output Only] The self-link of the Replica. SelfLink string `json:"selfLink,omitempty"` - // Status: [Output Only] Last known status of the Replica. Status *ReplicaStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Replica) MarshalJSON() ([]byte, error) { +func (s Replica) MarshalJSON() ([]byte, error) { type NoMethod Replica - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ReplicaStatus: The current status of a Replica. type ReplicaStatus struct { - // Details: [Output Only] Human-readable details about the current state - // of the replica + // Details: [Output Only] Human-readable details about the current state of the + // replica Details string `json:"details,omitempty"` - // State: [Output Only] The state of the Replica. State string `json:"state,omitempty"` - - // TemplateVersion: [Output Only] The template used to build the - // replica. + // TemplateVersion: [Output Only] The template used to build the replica. TemplateVersion string `json:"templateVersion,omitempty"` - // VmLink: [Output Only] Link to the virtual machine that this Replica // represents. VmLink string `json:"vmLink,omitempty"` - - // VmStartTime: [Output Only] The time that this Replica got to the - // RUNNING state, in RFC 3339 format. If the start time is unknown, - // UNKNOWN is returned. + // VmStartTime: [Output Only] The time that this Replica got to the RUNNING + // state, in RFC 3339 format. If the start time is unknown, UNKNOWN is + // returned. VmStartTime string `json:"vmStartTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Details") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Details") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Details") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Details") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReplicaStatus) MarshalJSON() ([]byte, error) { +func (s ReplicaStatus) MarshalJSON() ([]byte, error) { type NoMethod ReplicaStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReplicasDeleteRequest struct { - // AbandonInstance: Whether the instance resource represented by this - // replica should be deleted or abandoned. If abandoned, the replica - // will be deleted but the virtual machine instance will remain. By - // default, this is set to false and the instance will be deleted along - // with the replica. + // AbandonInstance: Whether the instance resource represented by this replica + // should be deleted or abandoned. If abandoned, the replica will be deleted + // but the virtual machine instance will remain. By default, this is set to + // false and the instance will be deleted along with the replica. AbandonInstance bool `json:"abandonInstance,omitempty"` - // ForceSendFields is a list of field names (e.g. "AbandonInstance") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AbandonInstance") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AbandonInstance") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReplicasDeleteRequest) MarshalJSON() ([]byte, error) { +func (s ReplicasDeleteRequest) MarshalJSON() ([]byte, error) { type NoMethod ReplicasDeleteRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ReplicasListResponse struct { - NextPageToken string `json:"nextPageToken,omitempty"` - - Resources []*Replica `json:"resources,omitempty"` + NextPageToken string `json:"nextPageToken,omitempty"` + Resources []*Replica `json:"resources,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReplicasListResponse) MarshalJSON() ([]byte, error) { +func (s ReplicasListResponse) MarshalJSON() ([]byte, error) { type NoMethod ReplicasListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceAccount: A Compute Engine service account, identical to the -// Compute Engine resource. +// ServiceAccount: A Compute Engine service account, identical to the Compute +// Engine resource. type ServiceAccount struct { // Email: The service account email address, for example: // 123845678986@project.gserviceaccount.com Email string `json:"email,omitempty"` - - // Scopes: The list of OAuth2 scopes to obtain for the service account, - // for example: https://www.googleapis.com/auth/devstorage.full_control + // Scopes: The list of OAuth2 scopes to obtain for the service account, for + // example: https://www.googleapis.com/auth/devstorage.full_control Scopes []string `json:"scopes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Email") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ServiceAccount) MarshalJSON() ([]byte, error) { +func (s ServiceAccount) MarshalJSON() ([]byte, error) { type NoMethod ServiceAccount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Tag: A Compute Engine Instance tag, identical to the tags on the // corresponding Compute Engine Instance resource. type Tag struct { - // FingerPrint: The fingerprint of the tag. Required for updating the - // list of tags. + // FingerPrint: The fingerprint of the tag. Required for updating the list of + // tags. FingerPrint string `json:"fingerPrint,omitempty"` - // Items: Items contained in this tag. Items []string `json:"items,omitempty"` - // ForceSendFields is a list of field names (e.g. "FingerPrint") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FingerPrint") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FingerPrint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Tag) MarshalJSON() ([]byte, error) { +func (s Tag) MarshalJSON() ([]byte, error) { type NoMethod Tag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Template: The template used for creating replicas in the pool. type Template struct { - // Action: An action to run during initialization of your replicas. An - // action is run as shell commands which are executed one after the - // other in the same bash shell, so any state established by one command - // is inherited by later commands. + // Action: An action to run during initialization of your replicas. An action + // is run as shell commands which are executed one after the other in the same + // bash shell, so any state established by one command is inherited by later + // commands. Action *Action `json:"action,omitempty"` - - // HealthChecks: A list of HTTP Health Checks to configure for this - // replica pool and all virtual machines in this replica pool. + // HealthChecks: A list of HTTP Health Checks to configure for this replica + // pool and all virtual machines in this replica pool. HealthChecks []*HealthCheck `json:"healthChecks,omitempty"` - - // Version: A free-form string describing the version of this template. - // You can provide any versioning string you would like. For example, - // version1 or template-v1. + // Version: A free-form string describing the version of this template. You can + // provide any versioning string you would like. For example, version1 or + // template-v1. Version string `json:"version,omitempty"` - - // VmParams: The virtual machine parameters to use for creating - // replicas. You can define settings such as the machine type and the - // image of replicas in this pool. This is required if replica type is - // SMART_VM. + // VmParams: The virtual machine parameters to use for creating replicas. You + // can define settings such as the machine type and the image of replicas in + // this pool. This is required if replica type is SMART_VM. VmParams *VmParams `json:"vmParams,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Template) MarshalJSON() ([]byte, error) { +func (s Template) MarshalJSON() ([]byte, error) { type NoMethod Template - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VmParams: Parameters for creating a Compute Engine Instance resource. -// Most fields are identical to the corresponding Compute Engine -// resource. +// VmParams: Parameters for creating a Compute Engine Instance resource. Most +// fields are identical to the corresponding Compute Engine resource. type VmParams struct { // BaseInstanceName: Deprecated. Please use baseInstanceName instead. BaseInstanceName string `json:"baseInstanceName,omitempty"` - - // CanIpForward: Enables IP Forwarding, which allows this instance to - // receive packets destined for a different IP address, and send packets - // with a different source IP. See IP Forwarding for more information. + // CanIpForward: Enables IP Forwarding, which allows this instance to receive + // packets destined for a different IP address, and send packets with a + // different source IP. See IP Forwarding for more information. CanIpForward bool `json:"canIpForward,omitempty"` - // Description: An optional textual description of the instance. Description string `json:"description,omitempty"` - - // DisksToAttach: A list of existing Persistent Disk resources to attach - // to each replica in the pool. Each disk will be attached in read-only - // mode to every replica. + // DisksToAttach: A list of existing Persistent Disk resources to attach to + // each replica in the pool. Each disk will be attached in read-only mode to + // every replica. DisksToAttach []*ExistingDisk `json:"disksToAttach,omitempty"` - - // DisksToCreate: A list of Disk resources to create and attach to each - // Replica in the Pool. Currently, you can only define one disk and it - // must be a root persistent disk. Note that Replica Pool will create a - // root persistent disk for each replica. + // DisksToCreate: A list of Disk resources to create and attach to each Replica + // in the Pool. Currently, you can only define one disk and it must be a root + // persistent disk. Note that Replica Pool will create a root persistent disk + // for each replica. DisksToCreate []*NewDisk `json:"disksToCreate,omitempty"` - - // MachineType: The machine type for this instance. The resource name - // (e.g. n1-standard-1). + // MachineType: The machine type for this instance. The resource name (e.g. + // n1-standard-1). MachineType string `json:"machineType,omitempty"` - // Metadata: The metadata key/value pairs assigned to this instance. Metadata *Metadata `json:"metadata,omitempty"` - - // NetworkInterfaces: A list of network interfaces for the instance. - // Currently only one interface is supported by Google Compute Engine, - // ONE_TO_ONE_NAT. + // NetworkInterfaces: A list of network interfaces for the instance. Currently + // only one interface is supported by Google Compute Engine, ONE_TO_ONE_NAT. NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` - - OnHostMaintenance string `json:"onHostMaintenance,omitempty"` - - // ServiceAccounts: A list of Service Accounts to enable for this - // instance. + OnHostMaintenance string `json:"onHostMaintenance,omitempty"` + // ServiceAccounts: A list of Service Accounts to enable for this instance. ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"` - - // Tags: A list of tags to apply to the Google Compute Engine instance - // to identify resources. + // Tags: A list of tags to apply to the Google Compute Engine instance to + // identify resources. Tags *Tag `json:"tags,omitempty"` - // ForceSendFields is a list of field names (e.g. "BaseInstanceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BaseInstanceName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BaseInstanceName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VmParams) MarshalJSON() ([]byte, error) { +func (s VmParams) MarshalJSON() ([]byte, error) { type NoMethod VmParams - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "replicapool.pools.delete": - type PoolsDeleteCall struct { s *Service projectName string @@ -1142,6 +938,10 @@ type PoolsDeleteCall struct { } // Delete: Deletes a replica pool. +// +// - poolName: The name of the replica pool for this request. +// - projectName: The project ID for this replica pool. +// - zone: The zone for this replica pool. func (r *PoolsService) Delete(projectName string, zone string, poolName string, poolsdeleterequest *PoolsDeleteRequest) *PoolsDeleteCall { c := &PoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -1152,23 +952,21 @@ func (r *PoolsService) Delete(projectName string, zone string, poolName string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoolsDeleteCall) Fields(s ...googleapi.Field) *PoolsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoolsDeleteCall) Context(ctx context.Context) *PoolsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoolsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1177,18 +975,12 @@ func (c *PoolsDeleteCall) Header() http.Header { } func (c *PoolsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.poolsdeleterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{projectName}/zones/{zone}/pools/{poolName}") @@ -1203,7 +995,7 @@ func (c *PoolsDeleteCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "poolName": c.poolName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapool.pools.delete" call. @@ -1215,52 +1007,10 @@ func (c *PoolsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a replica pool.", - // "httpMethod": "POST", - // "id": "replicapool.pools.delete", - // "parameterOrder": [ - // "projectName", - // "zone", - // "poolName" - // ], - // "parameters": { - // "poolName": { - // "description": "The name of the replica pool for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectName": { - // "description": "The project ID for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The zone for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectName}/zones/{zone}/pools/{poolName}", - // "request": { - // "$ref": "PoolsDeleteRequest" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.cloudman", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapool.pools.get": +} type PoolsGetCall struct { s *Service @@ -1274,6 +1024,10 @@ type PoolsGetCall struct { } // Get: Gets information about a single replica pool. +// +// - poolName: The name of the replica pool for this request. +// - projectName: The project ID for this replica pool. +// - zone: The zone for this replica pool. func (r *PoolsService) Get(projectName string, zone string, poolName string) *PoolsGetCall { c := &PoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -1283,33 +1037,29 @@ func (r *PoolsService) Get(projectName string, zone string, poolName string) *Po } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoolsGetCall) Fields(s ...googleapi.Field) *PoolsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PoolsGetCall) IfNoneMatch(entityTag string) *PoolsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoolsGetCall) Context(ctx context.Context) *PoolsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoolsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1318,12 +1068,7 @@ func (c *PoolsGetCall) Header() http.Header { } func (c *PoolsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1342,16 +1087,14 @@ func (c *PoolsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "poolName": c.poolName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapool.pools.get" call. -// Exactly one of *Pool or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Pool.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *PoolsGetCall) Do(opts ...googleapi.CallOption) (*Pool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1359,17 +1102,17 @@ func (c *PoolsGetCall) Do(opts ...googleapi.CallOption) (*Pool, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Pool{ ServerResponse: googleapi.ServerResponse{ @@ -1382,52 +1125,7 @@ func (c *PoolsGetCall) Do(opts ...googleapi.CallOption) (*Pool, error) { return nil, err } return ret, nil - // { - // "description": "Gets information about a single replica pool.", - // "httpMethod": "GET", - // "id": "replicapool.pools.get", - // "parameterOrder": [ - // "projectName", - // "zone", - // "poolName" - // ], - // "parameters": { - // "poolName": { - // "description": "The name of the replica pool for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectName": { - // "description": "The project ID for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The zone for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectName}/zones/{zone}/pools/{poolName}", - // "response": { - // "$ref": "Pool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.cloudman", - // "https://www.googleapis.com/auth/ndev.cloudman.readonly", - // "https://www.googleapis.com/auth/replicapool", - // "https://www.googleapis.com/auth/replicapool.readonly" - // ] - // } - -} - -// method id "replicapool.pools.insert": +} type PoolsInsertCall struct { s *Service @@ -1440,6 +1138,9 @@ type PoolsInsertCall struct { } // Insert: Inserts a new replica pool. +// +// - projectName: The project ID for this replica pool. +// - zone: The zone for this replica pool. func (r *PoolsService) Insert(projectName string, zone string, pool *Pool) *PoolsInsertCall { c := &PoolsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -1449,23 +1150,21 @@ func (r *PoolsService) Insert(projectName string, zone string, pool *Pool) *Pool } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoolsInsertCall) Fields(s ...googleapi.Field) *PoolsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoolsInsertCall) Context(ctx context.Context) *PoolsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoolsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1474,18 +1173,12 @@ func (c *PoolsInsertCall) Header() http.Header { } func (c *PoolsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pool) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{projectName}/zones/{zone}/pools") @@ -1499,16 +1192,14 @@ func (c *PoolsInsertCall) doRequest(alt string) (*http.Response, error) { "projectName": c.projectName, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapool.pools.insert" call. -// Exactly one of *Pool or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Pool.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *PoolsInsertCall) Do(opts ...googleapi.CallOption) (*Pool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1516,17 +1207,17 @@ func (c *PoolsInsertCall) Do(opts ...googleapi.CallOption) (*Pool, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Pool{ ServerResponse: googleapi.ServerResponse{ @@ -1539,45 +1230,7 @@ func (c *PoolsInsertCall) Do(opts ...googleapi.CallOption) (*Pool, error) { return nil, err } return ret, nil - // { - // "description": "Inserts a new replica pool.", - // "httpMethod": "POST", - // "id": "replicapool.pools.insert", - // "parameterOrder": [ - // "projectName", - // "zone" - // ], - // "parameters": { - // "projectName": { - // "description": "The project ID for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The zone for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectName}/zones/{zone}/pools", - // "request": { - // "$ref": "Pool" - // }, - // "response": { - // "$ref": "Pool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.cloudman", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapool.pools.list": +} type PoolsListCall struct { s *Service @@ -1590,6 +1243,9 @@ type PoolsListCall struct { } // List: List all replica pools. +// +// - projectName: The project ID for this request. +// - zone: The zone for this replica pool. func (r *PoolsService) List(projectName string, zone string) *PoolsListCall { c := &PoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -1598,49 +1254,45 @@ func (r *PoolsService) List(projectName string, zone string) *PoolsListCall { } // MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. Acceptable values are 0 to 100, inclusive. -// (Default: 50) +// results to be returned. Acceptable values are 0 to 100, inclusive. (Default: +// 50) func (c *PoolsListCall) MaxResults(maxResults int64) *PoolsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } // PageToken sets the optional parameter "pageToken": Set this to the -// nextPageToken value returned by a previous list request to obtain the -// next page of results from the previous list request. +// nextPageToken value returned by a previous list request to obtain the next +// page of results from the previous list request. func (c *PoolsListCall) PageToken(pageToken string) *PoolsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoolsListCall) Fields(s ...googleapi.Field) *PoolsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *PoolsListCall) IfNoneMatch(entityTag string) *PoolsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoolsListCall) Context(ctx context.Context) *PoolsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoolsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1649,12 +1301,7 @@ func (c *PoolsListCall) Header() http.Header { } func (c *PoolsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1672,16 +1319,15 @@ func (c *PoolsListCall) doRequest(alt string) (*http.Response, error) { "projectName": c.projectName, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapool.pools.list" call. -// Exactly one of *PoolsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PoolsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PoolsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PoolsListCall) Do(opts ...googleapi.CallOption) (*PoolsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1689,17 +1335,17 @@ func (c *PoolsListCall) Do(opts ...googleapi.CallOption) (*PoolsListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PoolsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1712,56 +1358,6 @@ func (c *PoolsListCall) Do(opts ...googleapi.CallOption) (*PoolsListResponse, er return nil, err } return ret, nil - // { - // "description": "List all replica pools.", - // "httpMethod": "GET", - // "id": "replicapool.pools.list", - // "parameterOrder": [ - // "projectName", - // "zone" - // ], - // "parameters": { - // "maxResults": { - // "default": "500", - // "description": "Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: 50)", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Set this to the nextPageToken value returned by a previous list request to obtain the next page of results from the previous list request.", - // "location": "query", - // "type": "string" - // }, - // "projectName": { - // "description": "The project ID for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The zone for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectName}/zones/{zone}/pools", - // "response": { - // "$ref": "PoolsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.cloudman", - // "https://www.googleapis.com/auth/ndev.cloudman.readonly", - // "https://www.googleapis.com/auth/replicapool", - // "https://www.googleapis.com/auth/replicapool.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1769,7 +1365,7 @@ func (c *PoolsListCall) Do(opts ...googleapi.CallOption) (*PoolsListResponse, er // The provided context supersedes any context provided to the Context method. func (c *PoolsListCall) Pages(ctx context.Context, f func(*PoolsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1785,8 +1381,6 @@ func (c *PoolsListCall) Pages(ctx context.Context, f func(*PoolsListResponse) er } } -// method id "replicapool.pools.resize": - type PoolsResizeCall struct { s *Service projectName string @@ -1797,9 +1391,13 @@ type PoolsResizeCall struct { header_ http.Header } -// Resize: Resize a pool. This is an asynchronous operation, and -// multiple overlapping resize requests can be made. Replica Pools will -// use the information from the last resize request. +// Resize: Resize a pool. This is an asynchronous operation, and multiple +// overlapping resize requests can be made. Replica Pools will use the +// information from the last resize request. +// +// - poolName: The name of the replica pool for this request. +// - projectName: The project ID for this replica pool. +// - zone: The zone for this replica pool. func (r *PoolsService) Resize(projectName string, zone string, poolName string) *PoolsResizeCall { c := &PoolsResizeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -1808,33 +1406,31 @@ func (r *PoolsService) Resize(projectName string, zone string, poolName string) return c } -// NumReplicas sets the optional parameter "numReplicas": The desired -// number of replicas to resize to. If this number is larger than the -// existing number of replicas, new replicas will be added. If the -// number is smaller, then existing replicas will be deleted. +// NumReplicas sets the optional parameter "numReplicas": The desired number of +// replicas to resize to. If this number is larger than the existing number of +// replicas, new replicas will be added. If the number is smaller, then +// existing replicas will be deleted. func (c *PoolsResizeCall) NumReplicas(numReplicas int64) *PoolsResizeCall { c.urlParams_.Set("numReplicas", fmt.Sprint(numReplicas)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoolsResizeCall) Fields(s ...googleapi.Field) *PoolsResizeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoolsResizeCall) Context(ctx context.Context) *PoolsResizeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoolsResizeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1843,12 +1439,7 @@ func (c *PoolsResizeCall) Header() http.Header { } func (c *PoolsResizeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1864,16 +1455,14 @@ func (c *PoolsResizeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "poolName": c.poolName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapool.pools.resize" call. -// Exactly one of *Pool or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Pool.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *PoolsResizeCall) Do(opts ...googleapi.CallOption) (*Pool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1881,17 +1470,17 @@ func (c *PoolsResizeCall) Do(opts ...googleapi.CallOption) (*Pool, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Pool{ ServerResponse: googleapi.ServerResponse{ @@ -1904,55 +1493,7 @@ func (c *PoolsResizeCall) Do(opts ...googleapi.CallOption) (*Pool, error) { return nil, err } return ret, nil - // { - // "description": "Resize a pool. This is an asynchronous operation, and multiple overlapping resize requests can be made. Replica Pools will use the information from the last resize request.", - // "httpMethod": "POST", - // "id": "replicapool.pools.resize", - // "parameterOrder": [ - // "projectName", - // "zone", - // "poolName" - // ], - // "parameters": { - // "numReplicas": { - // "description": "The desired number of replicas to resize to. If this number is larger than the existing number of replicas, new replicas will be added. If the number is smaller, then existing replicas will be deleted.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "poolName": { - // "description": "The name of the replica pool for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectName": { - // "description": "The project ID for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The zone for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectName}/zones/{zone}/pools/{poolName}/resize", - // "response": { - // "$ref": "Pool" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.cloudman", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapool.pools.updatetemplate": +} type PoolsUpdatetemplateCall struct { s *Service @@ -1966,6 +1507,10 @@ type PoolsUpdatetemplateCall struct { } // Updatetemplate: Update the template used by the pool. +// +// - poolName: The name of the replica pool for this request. +// - projectName: The project ID for this replica pool. +// - zone: The zone for this replica pool. func (r *PoolsService) Updatetemplate(projectName string, zone string, poolName string, template *Template) *PoolsUpdatetemplateCall { c := &PoolsUpdatetemplateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -1976,23 +1521,21 @@ func (r *PoolsService) Updatetemplate(projectName string, zone string, poolName } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PoolsUpdatetemplateCall) Fields(s ...googleapi.Field) *PoolsUpdatetemplateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PoolsUpdatetemplateCall) Context(ctx context.Context) *PoolsUpdatetemplateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PoolsUpdatetemplateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2001,18 +1544,12 @@ func (c *PoolsUpdatetemplateCall) Header() http.Header { } func (c *PoolsUpdatetemplateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.template) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{projectName}/zones/{zone}/pools/{poolName}/updateTemplate") @@ -2027,7 +1564,7 @@ func (c *PoolsUpdatetemplateCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "poolName": c.poolName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapool.pools.updatetemplate" call. @@ -2039,52 +1576,10 @@ func (c *PoolsUpdatetemplateCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Update the template used by the pool.", - // "httpMethod": "POST", - // "id": "replicapool.pools.updatetemplate", - // "parameterOrder": [ - // "projectName", - // "zone", - // "poolName" - // ], - // "parameters": { - // "poolName": { - // "description": "The name of the replica pool for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectName": { - // "description": "The project ID for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The zone for this replica pool.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectName}/zones/{zone}/pools/{poolName}/updateTemplate", - // "request": { - // "$ref": "Template" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.cloudman", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapool.replicas.delete": +} type ReplicasDeleteCall struct { s *Service @@ -2099,6 +1594,11 @@ type ReplicasDeleteCall struct { } // Delete: Deletes a replica from the pool. +// +// - poolName: The replica pool name for this request. +// - projectName: The project ID for this request. +// - replicaName: The name of the replica for this request. +// - zone: The zone where the replica lives. func (r *ReplicasService) Delete(projectName string, zone string, poolName string, replicaName string, replicasdeleterequest *ReplicasDeleteRequest) *ReplicasDeleteCall { c := &ReplicasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -2110,23 +1610,21 @@ func (r *ReplicasService) Delete(projectName string, zone string, poolName strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReplicasDeleteCall) Fields(s ...googleapi.Field) *ReplicasDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReplicasDeleteCall) Context(ctx context.Context) *ReplicasDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReplicasDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2135,18 +1633,12 @@ func (c *ReplicasDeleteCall) Header() http.Header { } func (c *ReplicasDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.replicasdeleterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}") @@ -2162,16 +1654,14 @@ func (c *ReplicasDeleteCall) doRequest(alt string) (*http.Response, error) { "poolName": c.poolName, "replicaName": c.replicaName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapool.replicas.delete" call. -// Exactly one of *Replica or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Replica.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Replica.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReplicasDeleteCall) Do(opts ...googleapi.CallOption) (*Replica, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2179,17 +1669,17 @@ func (c *ReplicasDeleteCall) Do(opts ...googleapi.CallOption) (*Replica, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Replica{ ServerResponse: googleapi.ServerResponse{ @@ -2202,59 +1692,7 @@ func (c *ReplicasDeleteCall) Do(opts ...googleapi.CallOption) (*Replica, error) return nil, err } return ret, nil - // { - // "description": "Deletes a replica from the pool.", - // "httpMethod": "POST", - // "id": "replicapool.replicas.delete", - // "parameterOrder": [ - // "projectName", - // "zone", - // "poolName", - // "replicaName" - // ], - // "parameters": { - // "poolName": { - // "description": "The replica pool name for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectName": { - // "description": "The project ID for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "replicaName": { - // "description": "The name of the replica for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The zone where the replica lives.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}", - // "request": { - // "$ref": "ReplicasDeleteRequest" - // }, - // "response": { - // "$ref": "Replica" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.cloudman", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapool.replicas.get": +} type ReplicasGetCall struct { s *Service @@ -2269,6 +1707,11 @@ type ReplicasGetCall struct { } // Get: Gets information about a specific replica. +// +// - poolName: The replica pool name for this request. +// - projectName: The project ID for this request. +// - replicaName: The name of the replica for this request. +// - zone: The zone where the replica lives. func (r *ReplicasService) Get(projectName string, zone string, poolName string, replicaName string) *ReplicasGetCall { c := &ReplicasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -2279,33 +1722,29 @@ func (r *ReplicasService) Get(projectName string, zone string, poolName string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReplicasGetCall) Fields(s ...googleapi.Field) *ReplicasGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReplicasGetCall) IfNoneMatch(entityTag string) *ReplicasGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReplicasGetCall) Context(ctx context.Context) *ReplicasGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReplicasGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2314,12 +1753,7 @@ func (c *ReplicasGetCall) Header() http.Header { } func (c *ReplicasGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2339,16 +1773,14 @@ func (c *ReplicasGetCall) doRequest(alt string) (*http.Response, error) { "poolName": c.poolName, "replicaName": c.replicaName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapool.replicas.get" call. -// Exactly one of *Replica or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Replica.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Replica.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReplicasGetCall) Do(opts ...googleapi.CallOption) (*Replica, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2356,17 +1788,17 @@ func (c *ReplicasGetCall) Do(opts ...googleapi.CallOption) (*Replica, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Replica{ ServerResponse: googleapi.ServerResponse{ @@ -2379,59 +1811,7 @@ func (c *ReplicasGetCall) Do(opts ...googleapi.CallOption) (*Replica, error) { return nil, err } return ret, nil - // { - // "description": "Gets information about a specific replica.", - // "httpMethod": "GET", - // "id": "replicapool.replicas.get", - // "parameterOrder": [ - // "projectName", - // "zone", - // "poolName", - // "replicaName" - // ], - // "parameters": { - // "poolName": { - // "description": "The replica pool name for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectName": { - // "description": "The project ID for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "replicaName": { - // "description": "The name of the replica for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The zone where the replica lives.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}", - // "response": { - // "$ref": "Replica" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.cloudman", - // "https://www.googleapis.com/auth/ndev.cloudman.readonly", - // "https://www.googleapis.com/auth/replicapool", - // "https://www.googleapis.com/auth/replicapool.readonly" - // ] - // } - -} - -// method id "replicapool.replicas.list": +} type ReplicasListCall struct { s *Service @@ -2445,6 +1825,10 @@ type ReplicasListCall struct { } // List: Lists all replicas in a pool. +// +// - poolName: The replica pool name for this request. +// - projectName: The project ID for this request. +// - zone: The zone where the replica pool lives. func (r *ReplicasService) List(projectName string, zone string, poolName string) *ReplicasListCall { c := &ReplicasListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -2454,49 +1838,45 @@ func (r *ReplicasService) List(projectName string, zone string, poolName string) } // MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. Acceptable values are 0 to 100, inclusive. -// (Default: 50) +// results to be returned. Acceptable values are 0 to 100, inclusive. (Default: +// 50) func (c *ReplicasListCall) MaxResults(maxResults int64) *ReplicasListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } // PageToken sets the optional parameter "pageToken": Set this to the -// nextPageToken value returned by a previous list request to obtain the -// next page of results from the previous list request. +// nextPageToken value returned by a previous list request to obtain the next +// page of results from the previous list request. func (c *ReplicasListCall) PageToken(pageToken string) *ReplicasListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReplicasListCall) Fields(s ...googleapi.Field) *ReplicasListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReplicasListCall) IfNoneMatch(entityTag string) *ReplicasListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReplicasListCall) Context(ctx context.Context) *ReplicasListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReplicasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2505,12 +1885,7 @@ func (c *ReplicasListCall) Header() http.Header { } func (c *ReplicasListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2529,16 +1904,15 @@ func (c *ReplicasListCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "poolName": c.poolName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapool.replicas.list" call. -// Exactly one of *ReplicasListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ReplicasListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ReplicasListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ReplicasListCall) Do(opts ...googleapi.CallOption) (*ReplicasListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2546,17 +1920,17 @@ func (c *ReplicasListCall) Do(opts ...googleapi.CallOption) (*ReplicasListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ReplicasListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2569,63 +1943,6 @@ func (c *ReplicasListCall) Do(opts ...googleapi.CallOption) (*ReplicasListRespon return nil, err } return ret, nil - // { - // "description": "Lists all replicas in a pool.", - // "httpMethod": "GET", - // "id": "replicapool.replicas.list", - // "parameterOrder": [ - // "projectName", - // "zone", - // "poolName" - // ], - // "parameters": { - // "maxResults": { - // "default": "500", - // "description": "Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: 50)", - // "format": "int32", - // "location": "query", - // "maximum": "1000", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Set this to the nextPageToken value returned by a previous list request to obtain the next page of results from the previous list request.", - // "location": "query", - // "type": "string" - // }, - // "poolName": { - // "description": "The replica pool name for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectName": { - // "description": "The project ID for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The zone where the replica pool lives.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectName}/zones/{zone}/pools/{poolName}/replicas", - // "response": { - // "$ref": "ReplicasListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/ndev.cloudman", - // "https://www.googleapis.com/auth/ndev.cloudman.readonly", - // "https://www.googleapis.com/auth/replicapool", - // "https://www.googleapis.com/auth/replicapool.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -2633,7 +1950,7 @@ func (c *ReplicasListCall) Do(opts ...googleapi.CallOption) (*ReplicasListRespon // The provided context supersedes any context provided to the Context method. func (c *ReplicasListCall) Pages(ctx context.Context, f func(*ReplicasListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2649,8 +1966,6 @@ func (c *ReplicasListCall) Pages(ctx context.Context, f func(*ReplicasListRespon } } -// method id "replicapool.replicas.restart": - type ReplicasRestartCall struct { s *Service projectName string @@ -2663,6 +1978,11 @@ type ReplicasRestartCall struct { } // Restart: Restarts a replica in a pool. +// +// - poolName: The replica pool name for this request. +// - projectName: The project ID for this request. +// - replicaName: The name of the replica for this request. +// - zone: The zone where the replica lives. func (r *ReplicasService) Restart(projectName string, zone string, poolName string, replicaName string) *ReplicasRestartCall { c := &ReplicasRestartCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -2673,23 +1993,21 @@ func (r *ReplicasService) Restart(projectName string, zone string, poolName stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReplicasRestartCall) Fields(s ...googleapi.Field) *ReplicasRestartCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReplicasRestartCall) Context(ctx context.Context) *ReplicasRestartCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReplicasRestartCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2698,12 +2016,7 @@ func (c *ReplicasRestartCall) Header() http.Header { } func (c *ReplicasRestartCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2720,16 +2033,14 @@ func (c *ReplicasRestartCall) doRequest(alt string) (*http.Response, error) { "poolName": c.poolName, "replicaName": c.replicaName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapool.replicas.restart" call. -// Exactly one of *Replica or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Replica.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Replica.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReplicasRestartCall) Do(opts ...googleapi.CallOption) (*Replica, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2737,17 +2048,17 @@ func (c *ReplicasRestartCall) Do(opts ...googleapi.CallOption) (*Replica, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Replica{ ServerResponse: googleapi.ServerResponse{ @@ -2760,51 +2071,4 @@ func (c *ReplicasRestartCall) Do(opts ...googleapi.CallOption) (*Replica, error) return nil, err } return ret, nil - // { - // "description": "Restarts a replica in a pool.", - // "httpMethod": "POST", - // "id": "replicapool.replicas.restart", - // "parameterOrder": [ - // "projectName", - // "zone", - // "poolName", - // "replicaName" - // ], - // "parameters": { - // "poolName": { - // "description": "The replica pool name for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectName": { - // "description": "The project ID for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "replicaName": { - // "description": "The name of the replica for this request.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The zone where the replica lives.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}/restart", - // "response": { - // "$ref": "Replica" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/ndev.cloudman", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - } diff --git a/replicapoolupdater/v1beta1/replicapoolupdater-gen.go b/replicapoolupdater/v1beta1/replicapoolupdater-gen.go index 24eb530145b..4e704af580c 100644 --- a/replicapoolupdater/v1beta1/replicapoolupdater-gen.go +++ b/replicapoolupdater/v1beta1/replicapoolupdater-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // replicapoolupdaterService, err := replicapoolupdater.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // replicapoolupdaterService, err := replicapoolupdater.NewService(ctx, option.WithScopes(replicapoolupdater.ReplicapoolReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // replicapoolupdaterService, err := replicapoolupdater.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // replicapoolupdaterService, err := replicapoolupdater.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package replicapoolupdater // import "google.golang.org/api/replicapoolupdater/v1beta1" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "replicapoolupdater:v1beta1" const apiName = "replicapoolupdater" const apiVersion = "v1beta1" const basePath = "https://www.googleapis.com/replicapoolupdater/v1beta1/projects/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/replicapoolupdater/v1beta1/projects/" // OAuth2 scopes used by this API. const ( @@ -95,7 +114,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/replicapool", @@ -103,6 +122,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -171,695 +193,522 @@ type ZoneOperationsService struct { type InstanceUpdate struct { // Error: Errors that occurred during the instance update. Error *InstanceUpdateError `json:"error,omitempty"` - // Instance: Fully-qualified URL of the instance being updated. Instance string `json:"instance,omitempty"` - // Status: Status of the instance update. Possible values are: // - "PENDING": The instance update is pending execution. // - "ROLLING_FORWARD": The instance update is going forward. // - "ROLLING_BACK": The instance update is being rolled back. // - "PAUSED": The instance update is temporarily paused (inactive). - // - "ROLLED_OUT": The instance update is finished, the instance is - // running the new template. - // - "ROLLED_BACK": The instance update is finished, the instance has - // been reverted to the previous template. - // - "CANCELLED": The instance update is paused and no longer can be - // resumed, undefined in which template the instance is running. + // - "ROLLED_OUT": The instance update is finished, the instance is running the + // new template. + // - "ROLLED_BACK": The instance update is finished, the instance has been + // reverted to the previous template. + // - "CANCELLED": The instance update is paused and no longer can be resumed, + // undefined in which template the instance is running. Status string `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Error") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Error") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Error") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceUpdate) MarshalJSON() ([]byte, error) { +func (s InstanceUpdate) MarshalJSON() ([]byte, error) { type NoMethod InstanceUpdate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstanceUpdateError: Errors that occurred during the instance update. type InstanceUpdateError struct { - // Errors: [Output Only] The array of errors encountered while - // processing this operation. + // Errors: [Output Only] The array of errors encountered while processing this + // operation. Errors []*InstanceUpdateErrorErrors `json:"errors,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Errors") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Errors") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Errors") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceUpdateError) MarshalJSON() ([]byte, error) { +func (s InstanceUpdateError) MarshalJSON() ([]byte, error) { type NoMethod InstanceUpdateError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type InstanceUpdateErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` - - // Location: [Output Only] Indicates the field in the request that - // caused the error. This property is optional. + // Location: [Output Only] Indicates the field in the request that caused the + // error. This property is optional. Location string `json:"location,omitempty"` - // Message: [Output Only] An optional, human-readable error message. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceUpdateErrorErrors) MarshalJSON() ([]byte, error) { +func (s InstanceUpdateErrorErrors) MarshalJSON() ([]byte, error) { type NoMethod InstanceUpdateErrorErrors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstanceUpdateList: Response returned by ListInstanceUpdates method. type InstanceUpdateList struct { // Items: Collection of requested instance updates. Items []*InstanceUpdate `json:"items,omitempty"` - // Kind: [Output Only] Type of the resource. Kind string `json:"kind,omitempty"` - // NextPageToken: A token used to continue a truncated list request. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: [Output Only] The fully qualified URL for the resource. SelfLink string `json:"selfLink,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceUpdateList) MarshalJSON() ([]byte, error) { +func (s InstanceUpdateList) MarshalJSON() ([]byte, error) { type NoMethod InstanceUpdateList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: An operation resource, used to manage asynchronous API -// requests. +// Operation: An operation resource, used to manage asynchronous API requests. type Operation struct { ClientOperationId string `json:"clientOperationId,omitempty"` - - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text - // format. + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` - - EndTime string `json:"endTime,omitempty"` - - // Error: [Output Only] If errors occurred during processing of this - // operation, this field will be populated. - Error *OperationError `json:"error,omitempty"` - - HttpErrorMessage string `json:"httpErrorMessage,omitempty"` - - HttpErrorStatusCode int64 `json:"httpErrorStatusCode,omitempty"` - - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. + EndTime string `json:"endTime,omitempty"` + // Error: [Output Only] If errors occurred during processing of this operation, + // this field will be populated. + Error *OperationError `json:"error,omitempty"` + HttpErrorMessage string `json:"httpErrorMessage,omitempty"` + HttpErrorStatusCode int64 `json:"httpErrorStatusCode,omitempty"` + // Id: [Output Only] Unique identifier for the resource; defined by the server. Id uint64 `json:"id,omitempty,string"` - - // InsertTime: [Output Only] The time that this operation was requested. - // This is in RFC 3339 format. + // InsertTime: [Output Only] The time that this operation was requested. This + // is in RFC 3339 format. InsertTime string `json:"insertTime,omitempty"` - // Kind: [Output Only] Type of the resource. Always // replicapoolupdater#operation for Operation resources. Kind string `json:"kind,omitempty"` - // Name: [Output Only] Name of the resource. - Name string `json:"name,omitempty"` - + Name string `json:"name,omitempty"` OperationType string `json:"operationType,omitempty"` - - Progress int64 `json:"progress,omitempty"` - + Progress int64 `json:"progress,omitempty"` // Region: [Output Only] URL of the region where the operation resides. Region string `json:"region,omitempty"` - // SelfLink: [Output Only] The fully qualified URL for the resource. SelfLink string `json:"selfLink,omitempty"` - - // StartTime: [Output Only] The time that this operation was started by - // the server. This is in RFC 3339 format. + // StartTime: [Output Only] The time that this operation was started by the + // server. This is in RFC 3339 format. StartTime string `json:"startTime,omitempty"` - - // Status: [Output Only] Status of the operation. Can be one of the - // following: "PENDING", "RUNNING", or "DONE". + // Status: [Output Only] Status of the operation. Can be one of the following: + // "PENDING", "RUNNING", or "DONE". Status string `json:"status,omitempty"` - - // StatusMessage: [Output Only] An optional textual description of the - // current status of the operation. + // StatusMessage: [Output Only] An optional textual description of the current + // status of the operation. StatusMessage string `json:"statusMessage,omitempty"` - - // TargetId: [Output Only] Unique target id which identifies a - // particular incarnation of the target. + // TargetId: [Output Only] Unique target id which identifies a particular + // incarnation of the target. TargetId uint64 `json:"targetId,omitempty,string"` - - // TargetLink: [Output Only] URL of the resource the operation is - // mutating. - TargetLink string `json:"targetLink,omitempty"` - - User string `json:"user,omitempty"` - - Warnings []*OperationWarnings `json:"warnings,omitempty"` - + // TargetLink: [Output Only] URL of the resource the operation is mutating. + TargetLink string `json:"targetLink,omitempty"` + User string `json:"user,omitempty"` + Warnings []*OperationWarnings `json:"warnings,omitempty"` // Zone: [Output Only] URL of the zone where the operation resides. Zone string `json:"zone,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ClientOperationId") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ClientOperationId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientOperationId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ClientOperationId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationError: [Output Only] If errors occurred during processing of -// this operation, this field will be populated. +// OperationError: [Output Only] If errors occurred during processing of this +// operation, this field will be populated. type OperationError struct { - // Errors: [Output Only] The array of errors encountered while - // processing this operation. + // Errors: [Output Only] The array of errors encountered while processing this + // operation. Errors []*OperationErrorErrors `json:"errors,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Errors") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Errors") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Errors") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationError) MarshalJSON() ([]byte, error) { +func (s OperationError) MarshalJSON() ([]byte, error) { type NoMethod OperationError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OperationErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` - - // Location: [Output Only] Indicates the field in the request that - // caused the error. This property is optional. + // Location: [Output Only] Indicates the field in the request that caused the + // error. This property is optional. Location string `json:"location,omitempty"` - // Message: [Output Only] An optional, human-readable error message. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationErrorErrors) MarshalJSON() ([]byte, error) { +func (s OperationErrorErrors) MarshalJSON() ([]byte, error) { type NoMethod OperationErrorErrors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OperationWarnings struct { // Code: [Output only] The warning type identifier for this warning. Code string `json:"code,omitempty"` - // Data: [Output only] Metadata for this warning in key:value format. Data []*OperationWarningsData `json:"data,omitempty"` - - // Message: [Output only] Optional human-readable details for this - // warning. + // Message: [Output only] Optional human-readable details for this warning. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationWarnings) MarshalJSON() ([]byte, error) { +func (s OperationWarnings) MarshalJSON() ([]byte, error) { type NoMethod OperationWarnings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type OperationWarningsData struct { // Key: [Output Only] Metadata key for this warning. Key string `json:"key,omitempty"` - // Value: [Output Only] Metadata value for this warning. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationWarningsData) MarshalJSON() ([]byte, error) { +func (s OperationWarningsData) MarshalJSON() ([]byte, error) { type NoMethod OperationWarningsData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationList: Contains a list of Operation resources. type OperationList struct { - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. + // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` - // Items: [Output Only] The Operation resources. Items []*Operation `json:"items,omitempty"` - // Kind: [Output Only] Type of resource. Always // replicapoolupdater#operationList for OperationList resources. Kind string `json:"kind,omitempty"` - // NextPageToken: [Output Only] A token used to continue a truncate. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: [Output Only] The fully qualified URL for the resource. SelfLink string `json:"selfLink,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationList) MarshalJSON() ([]byte, error) { +func (s OperationList) MarshalJSON() ([]byte, error) { type NoMethod OperationList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RollingUpdate: The following represents a resource describing a -// single update (rollout) of a group of instances to the given -// template. +// RollingUpdate: The following represents a resource describing a single +// update (rollout) of a group of instances to the given template. type RollingUpdate struct { // ActionType: Specifies the action to take for each instance within the - // instance group. This can be RECREATE which will recreate each - // instance and is only available for managed instance groups. It can - // also be REBOOT which performs a soft reboot for each instance and is - // only available for regular (non-managed) instance groups. + // instance group. This can be RECREATE which will recreate each instance and + // is only available for managed instance groups. It can also be REBOOT which + // performs a soft reboot for each instance and is only available for regular + // (non-managed) instance groups. ActionType string `json:"actionType,omitempty"` - - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text - // format. + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // Description: An optional textual description of the resource; - // provided by the client when the resource is created. + // Description: An optional textual description of the resource; provided by + // the client when the resource is created. Description string `json:"description,omitempty"` - // Error: [Output Only] Errors that occurred during the rolling update. Error *RollingUpdateError `json:"error,omitempty"` - - // Id: [Output Only] Unique identifier for the resource; defined by the - // server. + // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` - - // InstanceGroup: Fully-qualified URL of an instance group being - // updated. Exactly one of instanceGroupManager and instanceGroup must - // be set. + // InstanceGroup: Fully-qualified URL of an instance group being updated. + // Exactly one of instanceGroupManager and instanceGroup must be set. InstanceGroup string `json:"instanceGroup,omitempty"` - - // InstanceGroupManager: Fully-qualified URL of an instance group - // manager being updated. Exactly one of instanceGroupManager and - // instanceGroup must be set. + // InstanceGroupManager: Fully-qualified URL of an instance group manager being + // updated. Exactly one of instanceGroupManager and instanceGroup must be set. InstanceGroupManager string `json:"instanceGroupManager,omitempty"` - - // InstanceTemplate: Fully-qualified URL of an instance template to - // apply. + // InstanceTemplate: Fully-qualified URL of an instance template to apply. InstanceTemplate string `json:"instanceTemplate,omitempty"` - // Kind: [Output Only] Type of the resource. Kind string `json:"kind,omitempty"` - // OldInstanceTemplate: Fully-qualified URL of the instance template // encountered while starting the update. OldInstanceTemplate string `json:"oldInstanceTemplate,omitempty"` - // Policy: Parameters of the update process. Policy *RollingUpdatePolicy `json:"policy,omitempty"` - - // Progress: [Output Only] An optional progress indicator that ranges - // from 0 to 100. There is no requirement that this be linear or support - // any granularity of operations. This should not be used to guess at - // when the update will be complete. This number should be monotonically - // increasing as the update progresses. + // Progress: [Output Only] An optional progress indicator that ranges from 0 to + // 100. There is no requirement that this be linear or support any granularity + // of operations. This should not be used to guess at when the update will be + // complete. This number should be monotonically increasing as the update + // progresses. Progress int64 `json:"progress,omitempty"` - // SelfLink: [Output Only] The fully qualified URL for the resource. SelfLink string `json:"selfLink,omitempty"` - // Status: [Output Only] Status of the update. Possible values are: // - "ROLLING_FORWARD": The update is going forward. // - "ROLLING_BACK": The update is being rolled back. // - "PAUSED": The update is temporarily paused (inactive). - // - "ROLLED_OUT": The update is finished, all instances have been - // updated successfully. - // - "ROLLED_BACK": The update is finished, all instances have been - // reverted to the previous template. - // - "CANCELLED": The update is paused and no longer can be resumed, - // undefined how many instances are running in which template. + // - "ROLLED_OUT": The update is finished, all instances have been updated + // successfully. + // - "ROLLED_BACK": The update is finished, all instances have been reverted to + // the previous template. + // - "CANCELLED": The update is paused and no longer can be resumed, undefined + // how many instances are running in which template. Status string `json:"status,omitempty"` - - // StatusMessage: [Output Only] An optional textual description of the - // current status of the update. + // StatusMessage: [Output Only] An optional textual description of the current + // status of the update. StatusMessage string `json:"statusMessage,omitempty"` - // User: [Output Only] User who requested the update, for example: // user@example.com. User string `json:"user,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ActionType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActionType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RollingUpdate) MarshalJSON() ([]byte, error) { +func (s RollingUpdate) MarshalJSON() ([]byte, error) { type NoMethod RollingUpdate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RollingUpdateError: [Output Only] Errors that occurred during the -// rolling update. +// RollingUpdateError: [Output Only] Errors that occurred during the rolling +// update. type RollingUpdateError struct { - // Errors: [Output Only] The array of errors encountered while - // processing this operation. + // Errors: [Output Only] The array of errors encountered while processing this + // operation. Errors []*RollingUpdateErrorErrors `json:"errors,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Errors") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Errors") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Errors") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RollingUpdateError) MarshalJSON() ([]byte, error) { +func (s RollingUpdateError) MarshalJSON() ([]byte, error) { type NoMethod RollingUpdateError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type RollingUpdateErrorErrors struct { // Code: [Output Only] The error type identifier for this error. Code string `json:"code,omitempty"` - - // Location: [Output Only] Indicates the field in the request that - // caused the error. This property is optional. + // Location: [Output Only] Indicates the field in the request that caused the + // error. This property is optional. Location string `json:"location,omitempty"` - // Message: [Output Only] An optional, human-readable error message. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RollingUpdateErrorErrors) MarshalJSON() ([]byte, error) { +func (s RollingUpdateErrorErrors) MarshalJSON() ([]byte, error) { type NoMethod RollingUpdateErrorErrors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RollingUpdatePolicy: Parameters of the update process. type RollingUpdatePolicy struct { - // AutoPauseAfterInstances: Number of instances to update before the - // updater pauses the rolling update. + // AutoPauseAfterInstances: Number of instances to update before the updater + // pauses the rolling update. AutoPauseAfterInstances int64 `json:"autoPauseAfterInstances,omitempty"` - - // InstanceStartupTimeoutSec: The maximum amount of time that the - // updater waits for a HEALTHY state after all of the update steps are - // complete. If the HEALTHY state is not received before the deadline, - // the instance update is considered a failure. + // InstanceStartupTimeoutSec: The maximum amount of time that the updater waits + // for a HEALTHY state after all of the update steps are complete. If the + // HEALTHY state is not received before the deadline, the instance update is + // considered a failure. InstanceStartupTimeoutSec int64 `json:"instanceStartupTimeoutSec,omitempty"` - - // MaxNumConcurrentInstances: The maximum number of instances that can - // be updated simultaneously. An instance update is considered complete - // only after the instance is restarted and initialized. + // MaxNumConcurrentInstances: The maximum number of instances that can be + // updated simultaneously. An instance update is considered complete only after + // the instance is restarted and initialized. MaxNumConcurrentInstances int64 `json:"maxNumConcurrentInstances,omitempty"` - - // MaxNumFailedInstances: The maximum number of instance updates that - // can fail before the group update is considered a failure. An instance - // update is considered failed if any of its update actions (e.g. Stop - // call on Instance resource in Rolling Reboot) failed with permanent - // failure, or if the instance is in an UNHEALTHY state after it - // finishes all of the update actions. + // MaxNumFailedInstances: The maximum number of instance updates that can fail + // before the group update is considered a failure. An instance update is + // considered failed if any of its update actions (e.g. Stop call on Instance + // resource in Rolling Reboot) failed with permanent failure, or if the + // instance is in an UNHEALTHY state after it finishes all of the update + // actions. MaxNumFailedInstances int64 `json:"maxNumFailedInstances,omitempty"` - - // MinInstanceUpdateTimeSec: The minimum amount of time that the updater - // spends to update each instance. Update time is the time it takes to - // complete all update actions (e.g. Stop call on Instance resource in - // Rolling Reboot), reboot, and initialize. If the instance update - // finishes early, the updater pauses for the remainder of the time - // before it starts the next instance update. + // MinInstanceUpdateTimeSec: The minimum amount of time that the updater spends + // to update each instance. Update time is the time it takes to complete all + // update actions (e.g. Stop call on Instance resource in Rolling Reboot), + // reboot, and initialize. If the instance update finishes early, the updater + // pauses for the remainder of the time before it starts the next instance + // update. MinInstanceUpdateTimeSec int64 `json:"minInstanceUpdateTimeSec,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AutoPauseAfterInstances") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AutoPauseAfterInstances") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AutoPauseAfterInstances") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AutoPauseAfterInstances") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RollingUpdatePolicy) MarshalJSON() ([]byte, error) { +func (s RollingUpdatePolicy) MarshalJSON() ([]byte, error) { type NoMethod RollingUpdatePolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RollingUpdateList: Response returned by List method. type RollingUpdateList struct { // Items: Collection of requested updates. Items []*RollingUpdate `json:"items,omitempty"` - // Kind: [Output Only] Type of the resource. Kind string `json:"kind,omitempty"` - // NextPageToken: A token used to continue a truncated list request. NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: [Output Only] The fully qualified URL for the resource. SelfLink string `json:"selfLink,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RollingUpdateList) MarshalJSON() ([]byte, error) { +func (s RollingUpdateList) MarshalJSON() ([]byte, error) { type NoMethod RollingUpdateList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "replicapoolupdater.rollingUpdates.cancel": - type RollingUpdatesCancelCall struct { s *Service project string @@ -872,6 +721,10 @@ type RollingUpdatesCancelCall struct { // Cancel: Cancels an update. The update must be PAUSED before it can be // cancelled. This has no effect if the update is already CANCELLED. +// +// - project: The Google Developers Console project name. +// - rollingUpdate: The name of the update. +// - zone: The name of the zone in which the update's target resides. // For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#cancelrollingupdate func (r *RollingUpdatesService) Cancel(project string, zone string, rollingUpdate string) *RollingUpdatesCancelCall { c := &RollingUpdatesCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -882,23 +735,21 @@ func (r *RollingUpdatesService) Cancel(project string, zone string, rollingUpdat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RollingUpdatesCancelCall) Fields(s ...googleapi.Field) *RollingUpdatesCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RollingUpdatesCancelCall) Context(ctx context.Context) *RollingUpdatesCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RollingUpdatesCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -907,12 +758,7 @@ func (c *RollingUpdatesCancelCall) Header() http.Header { } func (c *RollingUpdatesCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -928,16 +774,14 @@ func (c *RollingUpdatesCancelCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "rollingUpdate": c.rollingUpdate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapoolupdater.rollingUpdates.cancel" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *RollingUpdatesCancelCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -945,17 +789,17 @@ func (c *RollingUpdatesCancelCall) Do(opts ...googleapi.CallOption) (*Operation, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -968,49 +812,7 @@ func (c *RollingUpdatesCancelCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Cancels an update. The update must be PAUSED before it can be cancelled. This has no effect if the update is already CANCELLED.", - // "httpMethod": "POST", - // "id": "replicapoolupdater.rollingUpdates.cancel", - // "parameterOrder": [ - // "project", - // "zone", - // "rollingUpdate" - // ], - // "parameters": { - // "project": { - // "description": "The Google Developers Console project name.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "rollingUpdate": { - // "description": "The name of the update.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The name of the zone in which the update's target resides.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/cancel", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapoolupdater.rollingUpdates.get": +} type RollingUpdatesGetCall struct { s *Service @@ -1024,6 +826,10 @@ type RollingUpdatesGetCall struct { } // Get: Returns information about an update. +// +// - project: The Google Developers Console project name. +// - rollingUpdate: The name of the update. +// - zone: The name of the zone in which the update's target resides. // For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#getlistrollingupdate func (r *RollingUpdatesService) Get(project string, zone string, rollingUpdate string) *RollingUpdatesGetCall { c := &RollingUpdatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1034,33 +840,29 @@ func (r *RollingUpdatesService) Get(project string, zone string, rollingUpdate s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RollingUpdatesGetCall) Fields(s ...googleapi.Field) *RollingUpdatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RollingUpdatesGetCall) IfNoneMatch(entityTag string) *RollingUpdatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RollingUpdatesGetCall) Context(ctx context.Context) *RollingUpdatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RollingUpdatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1069,12 +871,7 @@ func (c *RollingUpdatesGetCall) Header() http.Header { } func (c *RollingUpdatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1093,16 +890,14 @@ func (c *RollingUpdatesGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "rollingUpdate": c.rollingUpdate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapoolupdater.rollingUpdates.get" call. -// Exactly one of *RollingUpdate or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *RollingUpdate.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RollingUpdate.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *RollingUpdatesGetCall) Do(opts ...googleapi.CallOption) (*RollingUpdate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1110,17 +905,17 @@ func (c *RollingUpdatesGetCall) Do(opts ...googleapi.CallOption) (*RollingUpdate if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RollingUpdate{ ServerResponse: googleapi.ServerResponse{ @@ -1133,51 +928,7 @@ func (c *RollingUpdatesGetCall) Do(opts ...googleapi.CallOption) (*RollingUpdate return nil, err } return ret, nil - // { - // "description": "Returns information about an update.", - // "httpMethod": "GET", - // "id": "replicapoolupdater.rollingUpdates.get", - // "parameterOrder": [ - // "project", - // "zone", - // "rollingUpdate" - // ], - // "parameters": { - // "project": { - // "description": "The Google Developers Console project name.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "rollingUpdate": { - // "description": "The name of the update.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The name of the zone in which the update's target resides.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{project}/zones/{zone}/rollingUpdates/{rollingUpdate}", - // "response": { - // "$ref": "RollingUpdate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/replicapool", - // "https://www.googleapis.com/auth/replicapool.readonly" - // ] - // } - -} - -// method id "replicapoolupdater.rollingUpdates.insert": +} type RollingUpdatesInsertCall struct { s *Service @@ -1190,6 +941,9 @@ type RollingUpdatesInsertCall struct { } // Insert: Inserts and starts a new update. +// +// - project: The Google Developers Console project name. +// - zone: The name of the zone in which the update's target resides. // For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#starting_an_update func (r *RollingUpdatesService) Insert(project string, zone string, rollingupdate *RollingUpdate) *RollingUpdatesInsertCall { c := &RollingUpdatesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1200,23 +954,21 @@ func (r *RollingUpdatesService) Insert(project string, zone string, rollingupdat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RollingUpdatesInsertCall) Fields(s ...googleapi.Field) *RollingUpdatesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RollingUpdatesInsertCall) Context(ctx context.Context) *RollingUpdatesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RollingUpdatesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1225,18 +977,12 @@ func (c *RollingUpdatesInsertCall) Header() http.Header { } func (c *RollingUpdatesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollingupdate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "{project}/zones/{zone}/rollingUpdates") @@ -1250,16 +996,14 @@ func (c *RollingUpdatesInsertCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapoolupdater.rollingUpdates.insert" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *RollingUpdatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1267,17 +1011,17 @@ func (c *RollingUpdatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -1290,45 +1034,7 @@ func (c *RollingUpdatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Inserts and starts a new update.", - // "httpMethod": "POST", - // "id": "replicapoolupdater.rollingUpdates.insert", - // "parameterOrder": [ - // "project", - // "zone" - // ], - // "parameters": { - // "project": { - // "description": "The Google Developers Console project name.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The name of the zone in which the update's target resides.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{project}/zones/{zone}/rollingUpdates", - // "request": { - // "$ref": "RollingUpdate" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapoolupdater.rollingUpdates.list": +} type RollingUpdatesListCall struct { s *Service @@ -1340,8 +1046,11 @@ type RollingUpdatesListCall struct { header_ http.Header } -// List: Lists recent updates for a given managed instance group, in -// reverse chronological order and paginated format. +// List: Lists recent updates for a given managed instance group, in reverse +// chronological order and paginated format. +// +// - project: The Google Developers Console project name. +// - zone: The name of the zone in which the update's target resides. // For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#getlistrollingupdate func (r *RollingUpdatesService) List(project string, zone string) *RollingUpdatesListCall { c := &RollingUpdatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1350,57 +1059,52 @@ func (r *RollingUpdatesService) List(project string, zone string) *RollingUpdate return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Filter expression for filtering +// listed resources. func (c *RollingUpdatesListCall) Filter(filter string) *RollingUpdatesListCall { c.urlParams_.Set("filter", filter) return c } // MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. Maximum value is 500 and default value is -// 500. +// results to be returned. Maximum value is 500 and default value is 500. func (c *RollingUpdatesListCall) MaxResults(maxResults int64) *RollingUpdatesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } // PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request truncated by maxResults. Used to continue a -// previous list request. +// previous list request truncated by maxResults. Used to continue a previous +// list request. func (c *RollingUpdatesListCall) PageToken(pageToken string) *RollingUpdatesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RollingUpdatesListCall) Fields(s ...googleapi.Field) *RollingUpdatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RollingUpdatesListCall) IfNoneMatch(entityTag string) *RollingUpdatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RollingUpdatesListCall) Context(ctx context.Context) *RollingUpdatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RollingUpdatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1409,12 +1113,7 @@ func (c *RollingUpdatesListCall) Header() http.Header { } func (c *RollingUpdatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1432,16 +1131,15 @@ func (c *RollingUpdatesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapoolupdater.rollingUpdates.list" call. -// Exactly one of *RollingUpdateList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RollingUpdateList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *RollingUpdateList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RollingUpdatesListCall) Do(opts ...googleapi.CallOption) (*RollingUpdateList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1449,17 +1147,17 @@ func (c *RollingUpdatesListCall) Do(opts ...googleapi.CallOption) (*RollingUpdat if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &RollingUpdateList{ ServerResponse: googleapi.ServerResponse{ @@ -1472,60 +1170,6 @@ func (c *RollingUpdatesListCall) Do(opts ...googleapi.CallOption) (*RollingUpdat return nil, err } return ret, nil - // { - // "description": "Lists recent updates for a given managed instance group, in reverse chronological order and paginated format.", - // "httpMethod": "GET", - // "id": "replicapoolupdater.rollingUpdates.list", - // "parameterOrder": [ - // "project", - // "zone" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Filter expression for filtering listed resources.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "500", - // "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "The Google Developers Console project name.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The name of the zone in which the update's target resides.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{project}/zones/{zone}/rollingUpdates", - // "response": { - // "$ref": "RollingUpdateList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/replicapool", - // "https://www.googleapis.com/auth/replicapool.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1533,7 +1177,7 @@ func (c *RollingUpdatesListCall) Do(opts ...googleapi.CallOption) (*RollingUpdat // The provided context supersedes any context provided to the Context method. func (c *RollingUpdatesListCall) Pages(ctx context.Context, f func(*RollingUpdateList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1549,8 +1193,6 @@ func (c *RollingUpdatesListCall) Pages(ctx context.Context, f func(*RollingUpdat } } -// method id "replicapoolupdater.rollingUpdates.listInstanceUpdates": - type RollingUpdatesListInstanceUpdatesCall struct { s *Service project string @@ -1562,8 +1204,12 @@ type RollingUpdatesListInstanceUpdatesCall struct { header_ http.Header } -// ListInstanceUpdates: Lists the current status for each instance -// within a given update. +// ListInstanceUpdates: Lists the current status for each instance within a +// given update. +// +// - project: The Google Developers Console project name. +// - rollingUpdate: The name of the update. +// - zone: The name of the zone in which the update's target resides. // For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#getlistrollingupdate func (r *RollingUpdatesService) ListInstanceUpdates(project string, zone string, rollingUpdate string) *RollingUpdatesListInstanceUpdatesCall { c := &RollingUpdatesListInstanceUpdatesCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1573,57 +1219,52 @@ func (r *RollingUpdatesService) ListInstanceUpdates(project string, zone string, return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Filter expression for filtering +// listed resources. func (c *RollingUpdatesListInstanceUpdatesCall) Filter(filter string) *RollingUpdatesListInstanceUpdatesCall { c.urlParams_.Set("filter", filter) return c } // MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. Maximum value is 500 and default value is -// 500. +// results to be returned. Maximum value is 500 and default value is 500. func (c *RollingUpdatesListInstanceUpdatesCall) MaxResults(maxResults int64) *RollingUpdatesListInstanceUpdatesCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } // PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request truncated by maxResults. Used to continue a -// previous list request. +// previous list request truncated by maxResults. Used to continue a previous +// list request. func (c *RollingUpdatesListInstanceUpdatesCall) PageToken(pageToken string) *RollingUpdatesListInstanceUpdatesCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RollingUpdatesListInstanceUpdatesCall) Fields(s ...googleapi.Field) *RollingUpdatesListInstanceUpdatesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *RollingUpdatesListInstanceUpdatesCall) IfNoneMatch(entityTag string) *RollingUpdatesListInstanceUpdatesCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RollingUpdatesListInstanceUpdatesCall) Context(ctx context.Context) *RollingUpdatesListInstanceUpdatesCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RollingUpdatesListInstanceUpdatesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1632,12 +1273,7 @@ func (c *RollingUpdatesListInstanceUpdatesCall) Header() http.Header { } func (c *RollingUpdatesListInstanceUpdatesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1656,16 +1292,15 @@ func (c *RollingUpdatesListInstanceUpdatesCall) doRequest(alt string) (*http.Res "zone": c.zone, "rollingUpdate": c.rollingUpdate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapoolupdater.rollingUpdates.listInstanceUpdates" call. -// Exactly one of *InstanceUpdateList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *InstanceUpdateList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InstanceUpdateList.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *RollingUpdatesListInstanceUpdatesCall) Do(opts ...googleapi.CallOption) (*InstanceUpdateList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1673,17 +1308,17 @@ func (c *RollingUpdatesListInstanceUpdatesCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InstanceUpdateList{ ServerResponse: googleapi.ServerResponse{ @@ -1696,67 +1331,6 @@ func (c *RollingUpdatesListInstanceUpdatesCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists the current status for each instance within a given update.", - // "httpMethod": "GET", - // "id": "replicapoolupdater.rollingUpdates.listInstanceUpdates", - // "parameterOrder": [ - // "project", - // "zone", - // "rollingUpdate" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Filter expression for filtering listed resources.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "500", - // "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "The Google Developers Console project name.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "rollingUpdate": { - // "description": "The name of the update.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The name of the zone in which the update's target resides.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates", - // "response": { - // "$ref": "InstanceUpdateList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only", - // "https://www.googleapis.com/auth/replicapool", - // "https://www.googleapis.com/auth/replicapool.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1764,7 +1338,7 @@ func (c *RollingUpdatesListInstanceUpdatesCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *RollingUpdatesListInstanceUpdatesCall) Pages(ctx context.Context, f func(*InstanceUpdateList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1780,8 +1354,6 @@ func (c *RollingUpdatesListInstanceUpdatesCall) Pages(ctx context.Context, f fun } } -// method id "replicapoolupdater.rollingUpdates.pause": - type RollingUpdatesPauseCall struct { s *Service project string @@ -1792,9 +1364,12 @@ type RollingUpdatesPauseCall struct { header_ http.Header } -// Pause: Pauses the update in state from ROLLING_FORWARD or -// ROLLING_BACK. Has no effect if invoked when the state of the update -// is PAUSED. +// Pause: Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has +// no effect if invoked when the state of the update is PAUSED. +// +// - project: The Google Developers Console project name. +// - rollingUpdate: The name of the update. +// - zone: The name of the zone in which the update's target resides. // For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#pausing_a_rolling_update func (r *RollingUpdatesService) Pause(project string, zone string, rollingUpdate string) *RollingUpdatesPauseCall { c := &RollingUpdatesPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1805,23 +1380,21 @@ func (r *RollingUpdatesService) Pause(project string, zone string, rollingUpdate } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RollingUpdatesPauseCall) Fields(s ...googleapi.Field) *RollingUpdatesPauseCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RollingUpdatesPauseCall) Context(ctx context.Context) *RollingUpdatesPauseCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RollingUpdatesPauseCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1830,12 +1403,7 @@ func (c *RollingUpdatesPauseCall) Header() http.Header { } func (c *RollingUpdatesPauseCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1851,16 +1419,14 @@ func (c *RollingUpdatesPauseCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "rollingUpdate": c.rollingUpdate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapoolupdater.rollingUpdates.pause" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *RollingUpdatesPauseCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1868,17 +1434,17 @@ func (c *RollingUpdatesPauseCall) Do(opts ...googleapi.CallOption) (*Operation, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -1891,49 +1457,7 @@ func (c *RollingUpdatesPauseCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no effect if invoked when the state of the update is PAUSED.", - // "httpMethod": "POST", - // "id": "replicapoolupdater.rollingUpdates.pause", - // "parameterOrder": [ - // "project", - // "zone", - // "rollingUpdate" - // ], - // "parameters": { - // "project": { - // "description": "The Google Developers Console project name.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "rollingUpdate": { - // "description": "The name of the update.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The name of the zone in which the update's target resides.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/pause", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapoolupdater.rollingUpdates.resume": +} type RollingUpdatesResumeCall struct { s *Service @@ -1945,8 +1469,12 @@ type RollingUpdatesResumeCall struct { header_ http.Header } -// Resume: Continues an update in PAUSED state. Has no effect if invoked -// when the state of the update is ROLLED_OUT. +// Resume: Continues an update in PAUSED state. Has no effect if invoked when +// the state of the update is ROLLED_OUT. +// +// - project: The Google Developers Console project name. +// - rollingUpdate: The name of the update. +// - zone: The name of the zone in which the update's target resides. // For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#continuerollingupdate func (r *RollingUpdatesService) Resume(project string, zone string, rollingUpdate string) *RollingUpdatesResumeCall { c := &RollingUpdatesResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1957,23 +1485,21 @@ func (r *RollingUpdatesService) Resume(project string, zone string, rollingUpdat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RollingUpdatesResumeCall) Fields(s ...googleapi.Field) *RollingUpdatesResumeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RollingUpdatesResumeCall) Context(ctx context.Context) *RollingUpdatesResumeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RollingUpdatesResumeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1982,12 +1508,7 @@ func (c *RollingUpdatesResumeCall) Header() http.Header { } func (c *RollingUpdatesResumeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2003,16 +1524,14 @@ func (c *RollingUpdatesResumeCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "rollingUpdate": c.rollingUpdate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapoolupdater.rollingUpdates.resume" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *RollingUpdatesResumeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2020,17 +1539,17 @@ func (c *RollingUpdatesResumeCall) Do(opts ...googleapi.CallOption) (*Operation, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2043,49 +1562,7 @@ func (c *RollingUpdatesResumeCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Continues an update in PAUSED state. Has no effect if invoked when the state of the update is ROLLED_OUT.", - // "httpMethod": "POST", - // "id": "replicapoolupdater.rollingUpdates.resume", - // "parameterOrder": [ - // "project", - // "zone", - // "rollingUpdate" - // ], - // "parameters": { - // "project": { - // "description": "The Google Developers Console project name.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "rollingUpdate": { - // "description": "The name of the update.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The name of the zone in which the update's target resides.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/resume", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapoolupdater.rollingUpdates.rollback": +} type RollingUpdatesRollbackCall struct { s *Service @@ -2097,9 +1574,12 @@ type RollingUpdatesRollbackCall struct { header_ http.Header } -// Rollback: Rolls back the update in state from ROLLING_FORWARD or -// PAUSED. Has no effect if invoked when the state of the update is -// ROLLED_BACK. +// Rollback: Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has +// no effect if invoked when the state of the update is ROLLED_BACK. +// +// - project: The Google Developers Console project name. +// - rollingUpdate: The name of the update. +// - zone: The name of the zone in which the update's target resides. // For details, see https://cloud.google.com/compute/docs/instance-groups/manager/#rollingbackupdate func (r *RollingUpdatesService) Rollback(project string, zone string, rollingUpdate string) *RollingUpdatesRollbackCall { c := &RollingUpdatesRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -2110,23 +1590,21 @@ func (r *RollingUpdatesService) Rollback(project string, zone string, rollingUpd } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *RollingUpdatesRollbackCall) Fields(s ...googleapi.Field) *RollingUpdatesRollbackCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *RollingUpdatesRollbackCall) Context(ctx context.Context) *RollingUpdatesRollbackCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *RollingUpdatesRollbackCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2135,12 +1613,7 @@ func (c *RollingUpdatesRollbackCall) Header() http.Header { } func (c *RollingUpdatesRollbackCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2156,16 +1629,14 @@ func (c *RollingUpdatesRollbackCall) doRequest(alt string) (*http.Response, erro "zone": c.zone, "rollingUpdate": c.rollingUpdate, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapoolupdater.rollingUpdates.rollback" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *RollingUpdatesRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2173,17 +1644,17 @@ func (c *RollingUpdatesRollbackCall) Do(opts ...googleapi.CallOption) (*Operatio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2196,49 +1667,7 @@ func (c *RollingUpdatesRollbackCall) Do(opts ...googleapi.CallOption) (*Operatio return nil, err } return ret, nil - // { - // "description": "Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no effect if invoked when the state of the update is ROLLED_BACK.", - // "httpMethod": "POST", - // "id": "replicapoolupdater.rollingUpdates.rollback", - // "parameterOrder": [ - // "project", - // "zone", - // "rollingUpdate" - // ], - // "parameters": { - // "project": { - // "description": "The Google Developers Console project name.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "rollingUpdate": { - // "description": "The name of the update.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "The name of the zone in which the update's target resides.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/rollback", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapoolupdater.zoneOperations.get": +} type ZoneOperationsGetCall struct { s *Service @@ -2252,6 +1681,10 @@ type ZoneOperationsGetCall struct { } // Get: Retrieves the specified zone-specific operation resource. +// +// - operation: Name of the operation resource to return. +// - project: Name of the project scoping this request. +// - zone: Name of the zone scoping this request. func (r *ZoneOperationsService) Get(project string, zone string, operation string) *ZoneOperationsGetCall { c := &ZoneOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -2261,33 +1694,29 @@ func (r *ZoneOperationsService) Get(project string, zone string, operation strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ZoneOperationsGetCall) Fields(s ...googleapi.Field) *ZoneOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ZoneOperationsGetCall) IfNoneMatch(entityTag string) *ZoneOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ZoneOperationsGetCall) Context(ctx context.Context) *ZoneOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ZoneOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2296,12 +1725,7 @@ func (c *ZoneOperationsGetCall) Header() http.Header { } func (c *ZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2320,16 +1744,14 @@ func (c *ZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapoolupdater.zoneOperations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2337,17 +1759,17 @@ func (c *ZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2360,49 +1782,7 @@ func (c *ZoneOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, er return nil, err } return ret, nil - // { - // "description": "Retrieves the specified zone-specific operation resource.", - // "httpMethod": "GET", - // "id": "replicapoolupdater.zoneOperations.get", - // "parameterOrder": [ - // "project", - // "zone", - // "operation" - // ], - // "parameters": { - // "operation": { - // "description": "Name of the operation resource to return.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Name of the project scoping this request.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "Name of the zone scoping this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{project}/zones/{zone}/operations/{operation}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - -} - -// method id "replicapoolupdater.zoneOperations.list": +} type ZoneOperationsListCall struct { s *Service @@ -2416,6 +1796,9 @@ type ZoneOperationsListCall struct { // List: Retrieves the list of Operation resources contained within the // specified zone. +// +// - project: Name of the project scoping this request. +// - zone: Name of the zone scoping this request. func (r *ZoneOperationsService) List(project string, zone string) *ZoneOperationsListCall { c := &ZoneOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -2423,57 +1806,52 @@ func (r *ZoneOperationsService) List(project string, zone string) *ZoneOperation return c } -// Filter sets the optional parameter "filter": Filter expression for -// filtering listed resources. +// Filter sets the optional parameter "filter": Filter expression for filtering +// listed resources. func (c *ZoneOperationsListCall) Filter(filter string) *ZoneOperationsListCall { c.urlParams_.Set("filter", filter) return c } // MaxResults sets the optional parameter "maxResults": Maximum count of -// results to be returned. Maximum value is 500 and default value is -// 500. +// results to be returned. Maximum value is 500 and default value is 500. func (c *ZoneOperationsListCall) MaxResults(maxResults int64) *ZoneOperationsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } // PageToken sets the optional parameter "pageToken": Tag returned by a -// previous list request truncated by maxResults. Used to continue a -// previous list request. +// previous list request truncated by maxResults. Used to continue a previous +// list request. func (c *ZoneOperationsListCall) PageToken(pageToken string) *ZoneOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ZoneOperationsListCall) Fields(s ...googleapi.Field) *ZoneOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ZoneOperationsListCall) IfNoneMatch(entityTag string) *ZoneOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ZoneOperationsListCall) Context(ctx context.Context) *ZoneOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ZoneOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2482,12 +1860,7 @@ func (c *ZoneOperationsListCall) Header() http.Header { } func (c *ZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2505,16 +1878,14 @@ func (c *ZoneOperationsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "zone": c.zone, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "replicapoolupdater.zoneOperations.list" call. -// Exactly one of *OperationList or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *OperationList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperationList.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2522,17 +1893,17 @@ func (c *ZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationLis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperationList{ ServerResponse: googleapi.ServerResponse{ @@ -2545,58 +1916,6 @@ func (c *ZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationLis return nil, err } return ret, nil - // { - // "description": "Retrieves the list of Operation resources contained within the specified zone.", - // "httpMethod": "GET", - // "id": "replicapoolupdater.zoneOperations.list", - // "parameterOrder": [ - // "project", - // "zone" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. Filter expression for filtering listed resources.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "500", - // "description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.", - // "format": "uint32", - // "location": "query", - // "maximum": "500", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Name of the project scoping this request.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "Name of the zone scoping this request.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "{project}/zones/{zone}/operations", - // "response": { - // "$ref": "OperationList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/replicapool" - // ] - // } - } // Pages invokes f for each page of results. @@ -2604,7 +1923,7 @@ func (c *ZoneOperationsListCall) Do(opts ...googleapi.CallOption) (*OperationLis // The provided context supersedes any context provided to the Context method. func (c *ZoneOperationsListCall) Pages(ctx context.Context, f func(*OperationList) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/reseller/v1/reseller-gen.go b/reseller/v1/reseller-gen.go index a683c50646b..fecb7be903e 100644 --- a/reseller/v1/reseller-gen.go +++ b/reseller/v1/reseller-gen.go @@ -864,7 +864,7 @@ func (c *CustomersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.customers.get" call. @@ -984,7 +984,7 @@ func (c *CustomersInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.customers.insert" call. @@ -1094,7 +1094,7 @@ func (c *CustomersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.customers.patch" call. @@ -1204,7 +1204,7 @@ func (c *CustomersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.customers.update" call. @@ -1305,7 +1305,7 @@ func (c *ResellernotifyGetwatchdetailsCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.resellernotify.getwatchdetails" call. @@ -1402,7 +1402,7 @@ func (c *ResellernotifyRegisterCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.resellernotify.register" call. @@ -1499,7 +1499,7 @@ func (c *ResellernotifyUnregisterCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.resellernotify.unregister" call. @@ -1611,7 +1611,7 @@ func (c *SubscriptionsActivateCall) doRequest(alt string) (*http.Response, error "customerId": c.customerId, "subscriptionId": c.subscriptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.subscriptions.activate" call. @@ -1731,7 +1731,7 @@ func (c *SubscriptionsChangePlanCall) doRequest(alt string) (*http.Response, err "customerId": c.customerId, "subscriptionId": c.subscriptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.subscriptions.changePlan" call. @@ -1848,7 +1848,7 @@ func (c *SubscriptionsChangeRenewalSettingsCall) doRequest(alt string) (*http.Re "customerId": c.customerId, "subscriptionId": c.subscriptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.subscriptions.changeRenewalSettings" call. @@ -1966,7 +1966,7 @@ func (c *SubscriptionsChangeSeatsCall) doRequest(alt string) (*http.Response, er "customerId": c.customerId, "subscriptionId": c.subscriptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.subscriptions.changeSeats" call. @@ -2077,7 +2077,7 @@ func (c *SubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) "customerId": c.customerId, "subscriptionId": c.subscriptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.subscriptions.delete" call. @@ -2179,7 +2179,7 @@ func (c *SubscriptionsGetCall) doRequest(alt string) (*http.Response, error) { "customerId": c.customerId, "subscriptionId": c.subscriptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.subscriptions.get" call. @@ -2340,7 +2340,7 @@ func (c *SubscriptionsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.subscriptions.insert" call. @@ -2494,7 +2494,7 @@ func (c *SubscriptionsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.subscriptions.list" call. @@ -2627,7 +2627,7 @@ func (c *SubscriptionsStartPaidServiceCall) doRequest(alt string) (*http.Respons "customerId": c.customerId, "subscriptionId": c.subscriptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.subscriptions.startPaidService" call. @@ -2744,7 +2744,7 @@ func (c *SubscriptionsSuspendCall) doRequest(alt string) (*http.Response, error) "customerId": c.customerId, "subscriptionId": c.subscriptionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "reseller.subscriptions.suspend" call. diff --git a/resourcesettings/v1/resourcesettings-gen.go b/resourcesettings/v1/resourcesettings-gen.go index 69d8014ae1b..7d2236c3e74 100644 --- a/resourcesettings/v1/resourcesettings-gen.go +++ b/resourcesettings/v1/resourcesettings-gen.go @@ -541,7 +541,7 @@ func (c *FoldersSettingsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "resourcesettings.folders.settings.get" call. @@ -691,7 +691,7 @@ func (c *FoldersSettingsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "resourcesettings.folders.settings.list" call. @@ -826,7 +826,7 @@ func (c *FoldersSettingsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "resourcesettings.folders.settings.patch" call. @@ -959,7 +959,7 @@ func (c *OrganizationsSettingsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "resourcesettings.organizations.settings.get" call. @@ -1109,7 +1109,7 @@ func (c *OrganizationsSettingsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "resourcesettings.organizations.settings.list" call. @@ -1244,7 +1244,7 @@ func (c *OrganizationsSettingsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "resourcesettings.organizations.settings.patch" call. @@ -1377,7 +1377,7 @@ func (c *ProjectsSettingsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "resourcesettings.projects.settings.get" call. @@ -1527,7 +1527,7 @@ func (c *ProjectsSettingsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "resourcesettings.projects.settings.list" call. @@ -1662,7 +1662,7 @@ func (c *ProjectsSettingsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "resourcesettings.projects.settings.patch" call. diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 37aabd36b09..d117d6ee1c3 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -2092,7 +2092,7 @@ } } }, - "revision": "20240822", + "revision": "20240912", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4149,6 +4149,36 @@ }, "type": "object" }, + "GoogleCloudRetailV2ProductAttributeInterval": { + "description": "Product attribute name and numeric interval.", + "id": "GoogleCloudRetailV2ProductAttributeInterval", + "properties": { + "interval": { + "$ref": "GoogleCloudRetailV2Interval", + "description": "The numeric interval (e.g. [10, 20))" + }, + "name": { + "description": "The attribute name (e.g. \"length\")", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2ProductAttributeValue": { + "description": "Product attribute which structured by an attribute name and value. This structure is used in conversational search filters and answers. For example, if we have `name=color` and `value=red`, this means that the color is `red`.", + "id": "GoogleCloudRetailV2ProductAttributeValue", + "properties": { + "name": { + "description": "The attribute name.", + "type": "string" + }, + "value": { + "description": "The attribute value.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2ProductDetail": { "description": "Detailed product information associated with a user event.", "id": "GoogleCloudRetailV2ProductDetail", @@ -4785,6 +4815,10 @@ "description": "The default filter that is applied when a user performs a search without checking any filters on the search page. The filter applied to every search request when quality improvement such as query expansion is needed. In the case a query does not have a sufficient amount of results this filter will be used to determine whether or not to enable the query expansion flow. The original filter will still be used for the query expanded search. This field is strongly recommended to achieve high search quality. For more information about filter syntax, see SearchRequest.filter.", "type": "string" }, + "conversationalSearchSpec": { + "$ref": "GoogleCloudRetailV2SearchRequestConversationalSearchSpec", + "description": "Optional. This field specifies all conversational related parameters addition to traditional retail search." + }, "dynamicFacetSpec": { "$ref": "GoogleCloudRetailV2SearchRequestDynamicFacetSpec", "deprecated": true, @@ -4867,6 +4901,10 @@ "$ref": "GoogleCloudRetailV2SearchRequestSpellCorrectionSpec", "description": "The spell correction specification that specifies the mode under which spell correction will take effect." }, + "tileNavigationSpec": { + "$ref": "GoogleCloudRetailV2SearchRequestTileNavigationSpec", + "description": "Optional. This field specifies tile navigation related parameters." + }, "userInfo": { "$ref": "GoogleCloudRetailV2UserInfo", "description": "User information." @@ -4919,6 +4957,59 @@ }, "type": "object" }, + "GoogleCloudRetailV2SearchRequestConversationalSearchSpec": { + "description": "This field specifies all conversational related parameters addition to traditional retail search.", + "id": "GoogleCloudRetailV2SearchRequestConversationalSearchSpec", + "properties": { + "conversationId": { + "description": "This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous ConversationalSearchResult.conversation_id. For the initial request, this should be empty.", + "type": "string" + }, + "followupConversationRequested": { + "description": "This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc.", + "type": "boolean" + }, + "userAnswer": { + "$ref": "GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer", + "description": "This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer": { + "description": "This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.", + "id": "GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer", + "properties": { + "selectedAnswer": { + "$ref": "GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer", + "description": "This field specifies the selected attributes during the conversational search. This should be a subset of ConversationalSearchResult.suggested_answers." + }, + "textAnswer": { + "description": "This field specifies the incremental input text from the user during the conversational search.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer": { + "description": "This field specifies the selected answers during the conversational search.", + "id": "GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2ProductAttributeValue", + "description": "This field specifies the selected answer which is a attribute key-value." + }, + "productAttributeValues": { + "deprecated": true, + "description": "This field is deprecated and should not be set.", + "items": { + "$ref": "GoogleCloudRetailV2ProductAttributeValue" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2SearchRequestDynamicFacetSpec": { "description": "The specifications of dynamically generated facets.", "id": "GoogleCloudRetailV2SearchRequestDynamicFacetSpec", @@ -5089,6 +5180,24 @@ }, "type": "object" }, + "GoogleCloudRetailV2SearchRequestTileNavigationSpec": { + "description": "This field specifies tile navigation related parameters.", + "id": "GoogleCloudRetailV2SearchRequestTileNavigationSpec", + "properties": { + "appliedTiles": { + "description": "This field specifies the tiles which are already clicked in client side. NOTE: This field is not being used for filtering search products. Client side should also put all the applied tiles in SearchRequest.filter.", + "items": { + "$ref": "GoogleCloudRetailV2Tile" + }, + "type": "array" + }, + "tileNavigationRequested": { + "description": "This field specifies whether the customer would like to request tile navigation.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudRetailV2SearchResponse": { "description": "Response message for SearchService.Search method.", "id": "GoogleCloudRetailV2SearchResponse", @@ -5104,6 +5213,10 @@ "description": "A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance.", "type": "string" }, + "conversationalSearchResult": { + "$ref": "GoogleCloudRetailV2SearchResponseConversationalSearchResult", + "description": "This field specifies all related information that is needed on client side for UI rendering of conversational retail search." + }, "correctedQuery": { "description": "Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.", "type": "string" @@ -5148,6 +5261,10 @@ }, "type": "array" }, + "tileNavigationResult": { + "$ref": "GoogleCloudRetailV2SearchResponseTileNavigationResult", + "description": "This field specifies all related information for tile navigation that will be used in client side." + }, "totalSize": { "description": "The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches.", "format": "int32", @@ -5156,6 +5273,66 @@ }, "type": "object" }, + "GoogleCloudRetailV2SearchResponseConversationalSearchResult": { + "description": "This field specifies all related information that is needed on client side for UI rendering of conversational retail search.", + "id": "GoogleCloudRetailV2SearchResponseConversationalSearchResult", + "properties": { + "additionalFilter": { + "$ref": "GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter", + "description": "This is the incremental additional filters implied from the current user answer. User should add the suggested addition filters to the previous SearchRequest.filter, and use the merged filter in the follow up search request." + }, + "additionalFilters": { + "deprecated": true, + "description": "This field is deprecated but will be kept for backward compatibility. There is expected to have only one additional filter and the value will be the same to the same as field `additional_filter`.", + "items": { + "$ref": "GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter" + }, + "type": "array" + }, + "conversationId": { + "description": "Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's SearchRequest.ConversationalSearchSpec.conversation_id to restore conversation state in server.", + "type": "string" + }, + "followupQuestion": { + "description": "The follow-up question. e.g., `What is the color?`", + "type": "string" + }, + "refinedQuery": { + "description": "The current refined query for the conversational search. This field will be used in customer UI that the query in the search bar should be replaced with the refined query. For example, if SearchRequest.query is `dress` and next SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer is `red color`, which does not match any product attribute value filters, the refined query will be `dress, red color`.", + "type": "string" + }, + "suggestedAnswers": { + "description": "The answer options provided to client for the follow-up question.", + "items": { + "$ref": "GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter": { + "description": "Additional filter that client side need to apply.", + "id": "GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2ProductAttributeValue", + "description": "Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer": { + "description": "Suggested answers to the follow-up question.", + "id": "GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2ProductAttributeValue", + "description": "Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future." + } + }, + "type": "object" + }, "GoogleCloudRetailV2SearchResponseFacet": { "description": "A facet result.", "id": "GoogleCloudRetailV2SearchResponseFacet", @@ -5266,6 +5443,20 @@ }, "type": "object" }, + "GoogleCloudRetailV2SearchResponseTileNavigationResult": { + "description": "This field specifies all related information for tile navigation that will be used in client side.", + "id": "GoogleCloudRetailV2SearchResponseTileNavigationResult", + "properties": { + "tiles": { + "description": "The current tiles that are used for tile navigation, sorted by engagement.", + "items": { + "$ref": "GoogleCloudRetailV2Tile" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2ServingConfig": { "description": "Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions).", "id": "GoogleCloudRetailV2ServingConfig", @@ -5459,6 +5650,25 @@ "properties": {}, "type": "object" }, + "GoogleCloudRetailV2Tile": { + "description": "This field specifies the tile information including an attribute key, attribute value. More fields will be added in the future, eg: product id or product counts, etc.", + "id": "GoogleCloudRetailV2Tile", + "properties": { + "productAttributeInterval": { + "$ref": "GoogleCloudRetailV2ProductAttributeInterval", + "description": "The product attribute key-numeric interval." + }, + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2ProductAttributeValue", + "description": "The product attribute key-value." + }, + "representativeProductId": { + "description": "The representative product id for this tile.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2TuneModelMetadata": { "description": "Metadata associated with a tune operation.", "id": "GoogleCloudRetailV2TuneModelMetadata", diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index 74966cdb2e5..5fe683fd5be 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -3498,6 +3498,58 @@ func (s GoogleCloudRetailV2Product) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2ProductAttributeInterval: Product attribute name and +// numeric interval. +type GoogleCloudRetailV2ProductAttributeInterval struct { + // Interval: The numeric interval (e.g. [10, 20)) + Interval *GoogleCloudRetailV2Interval `json:"interval,omitempty"` + // Name: The attribute name (e.g. "length") + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Interval") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Interval") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2ProductAttributeInterval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2ProductAttributeInterval + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2ProductAttributeValue: Product attribute which structured +// by an attribute name and value. This structure is used in conversational +// search filters and answers. For example, if we have `name=color` and +// `value=red`, this means that the color is `red`. +type GoogleCloudRetailV2ProductAttributeValue struct { + // Name: The attribute name. + Name string `json:"name,omitempty"` + // Value: The attribute value. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2ProductAttributeValue) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2ProductAttributeValue + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2ProductDetail: Detailed product information associated // with a user event. type GoogleCloudRetailV2ProductDetail struct { @@ -4602,6 +4654,9 @@ type GoogleCloudRetailV2SearchRequest struct { // expanded search. This field is strongly recommended to achieve high search // quality. For more information about filter syntax, see SearchRequest.filter. CanonicalFilter string `json:"canonicalFilter,omitempty"` + // ConversationalSearchSpec: Optional. This field specifies all conversational + // related parameters addition to traditional retail search. + ConversationalSearchSpec *GoogleCloudRetailV2SearchRequestConversationalSearchSpec `json:"conversationalSearchSpec,omitempty"` // DynamicFacetSpec: Deprecated. Refer to // https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic // facets. Do not set this field. The specification for dynamically generated @@ -4703,6 +4758,9 @@ type GoogleCloudRetailV2SearchRequest struct { // SpellCorrectionSpec: The spell correction specification that specifies the // mode under which spell correction will take effect. SpellCorrectionSpec *GoogleCloudRetailV2SearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"` + // TileNavigationSpec: Optional. This field specifies tile navigation related + // parameters. + TileNavigationSpec *GoogleCloudRetailV2SearchRequestTileNavigationSpec `json:"tileNavigationSpec,omitempty"` // UserInfo: User information. UserInfo *GoogleCloudRetailV2UserInfo `json:"userInfo,omitempty"` // VariantRollupKeys: The keys to fetch and rollup the matching variant @@ -4844,6 +4902,99 @@ func (s *GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec) UnmarshalJ return nil } +// GoogleCloudRetailV2SearchRequestConversationalSearchSpec: This field +// specifies all conversational related parameters addition to traditional +// retail search. +type GoogleCloudRetailV2SearchRequestConversationalSearchSpec struct { + // ConversationId: This field specifies the conversation id, which maintains + // the state of the conversation between client side and server side. Use the + // value from the previous ConversationalSearchResult.conversation_id. For the + // initial request, this should be empty. + ConversationId string `json:"conversationId,omitempty"` + // FollowupConversationRequested: This field specifies whether the customer + // would like to do conversational search. If this field is set to true, + // conversational related extra information will be returned from server side, + // including follow-up question, answer options, etc. + FollowupConversationRequested bool `json:"followupConversationRequested,omitempty"` + // UserAnswer: This field specifies the current user answer during the + // conversational search. This can be either user selected from suggested + // answers or user input plain text. + UserAnswer *GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer `json:"userAnswer,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConversationId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConversationId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2SearchRequestConversationalSearchSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2SearchRequestConversationalSearchSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer: This +// field specifies the current user answer during the conversational search. +// This can be either user selected from suggested answers or user input plain +// text. +type GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer struct { + // SelectedAnswer: This field specifies the selected attributes during the + // conversational search. This should be a subset of + // ConversationalSearchResult.suggested_answers. + SelectedAnswer *GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer `json:"selectedAnswer,omitempty"` + // TextAnswer: This field specifies the incremental input text from the user + // during the conversational search. + TextAnswer string `json:"textAnswer,omitempty"` + // ForceSendFields is a list of field names (e.g. "SelectedAnswer") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SelectedAnswer") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAns +// wer: This field specifies the selected answers during the conversational +// search. +type GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer struct { + // ProductAttributeValue: This field specifies the selected answer which is a + // attribute key-value. + ProductAttributeValue *GoogleCloudRetailV2ProductAttributeValue `json:"productAttributeValue,omitempty"` + // ProductAttributeValues: This field is deprecated and should not be set. + ProductAttributeValues []*GoogleCloudRetailV2ProductAttributeValue `json:"productAttributeValues,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeValue") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2SearchRequestDynamicFacetSpec: The specifications of // dynamically generated facets. type GoogleCloudRetailV2SearchRequestDynamicFacetSpec struct { @@ -5131,6 +5282,35 @@ func (s GoogleCloudRetailV2SearchRequestSpellCorrectionSpec) MarshalJSON() ([]by return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2SearchRequestTileNavigationSpec: This field specifies +// tile navigation related parameters. +type GoogleCloudRetailV2SearchRequestTileNavigationSpec struct { + // AppliedTiles: This field specifies the tiles which are already clicked in + // client side. NOTE: This field is not being used for filtering search + // products. Client side should also put all the applied tiles in + // SearchRequest.filter. + AppliedTiles []*GoogleCloudRetailV2Tile `json:"appliedTiles,omitempty"` + // TileNavigationRequested: This field specifies whether the customer would + // like to request tile navigation. + TileNavigationRequested bool `json:"tileNavigationRequested,omitempty"` + // ForceSendFields is a list of field names (e.g. "AppliedTiles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AppliedTiles") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2SearchRequestTileNavigationSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2SearchRequestTileNavigationSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2SearchResponse: Response message for SearchService.Search // method. type GoogleCloudRetailV2SearchResponse struct { @@ -5141,6 +5321,10 @@ type GoogleCloudRetailV2SearchResponse struct { // UserEvent logs resulting from this search, which enables accurate // attribution of search model performance. AttributionToken string `json:"attributionToken,omitempty"` + // ConversationalSearchResult: This field specifies all related information + // that is needed on client side for UI rendering of conversational retail + // search. + ConversationalSearchResult *GoogleCloudRetailV2SearchResponseConversationalSearchResult `json:"conversationalSearchResult,omitempty"` // CorrectedQuery: Contains the spell corrected query, if found. If the spell // correction type is AUTOMATIC, then the search results are based on // corrected_query. Otherwise the original query is used for search. @@ -5166,6 +5350,9 @@ type GoogleCloudRetailV2SearchResponse struct { RedirectUri string `json:"redirectUri,omitempty"` // Results: A list of matched items. The order represents the ranking. Results []*GoogleCloudRetailV2SearchResponseSearchResult `json:"results,omitempty"` + // TileNavigationResult: This field specifies all related information for tile + // navigation that will be used in client side. + TileNavigationResult *GoogleCloudRetailV2SearchResponseTileNavigationResult `json:"tileNavigationResult,omitempty"` // TotalSize: The estimated total count of matched items irrespective of // pagination. The count of results returned by pagination may be less than the // total_size that matches. @@ -5191,6 +5378,104 @@ func (s GoogleCloudRetailV2SearchResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2SearchResponseConversationalSearchResult: This field +// specifies all related information that is needed on client side for UI +// rendering of conversational retail search. +type GoogleCloudRetailV2SearchResponseConversationalSearchResult struct { + // AdditionalFilter: This is the incremental additional filters implied from + // the current user answer. User should add the suggested addition filters to + // the previous SearchRequest.filter, and use the merged filter in the follow + // up search request. + AdditionalFilter *GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter `json:"additionalFilter,omitempty"` + // AdditionalFilters: This field is deprecated but will be kept for backward + // compatibility. There is expected to have only one additional filter and the + // value will be the same to the same as field `additional_filter`. + AdditionalFilters []*GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter `json:"additionalFilters,omitempty"` + // ConversationId: Conversation UUID. This field will be stored in client side + // storage to maintain the conversation session with server and will be used + // for next search request's + // SearchRequest.ConversationalSearchSpec.conversation_id to restore + // conversation state in server. + ConversationId string `json:"conversationId,omitempty"` + // FollowupQuestion: The follow-up question. e.g., `What is the color?` + FollowupQuestion string `json:"followupQuestion,omitempty"` + // RefinedQuery: The current refined query for the conversational search. This + // field will be used in customer UI that the query in the search bar should be + // replaced with the refined query. For example, if SearchRequest.query is + // `dress` and next + // SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer is `red + // color`, which does not match any product attribute value filters, the + // refined query will be `dress, red color`. + RefinedQuery string `json:"refinedQuery,omitempty"` + // SuggestedAnswers: The answer options provided to client for the follow-up + // question. + SuggestedAnswers []*GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer `json:"suggestedAnswers,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalFilter") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdditionalFilter") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2SearchResponseConversationalSearchResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2SearchResponseConversationalSearchResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter: +// Additional filter that client side need to apply. +type GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter struct { + // ProductAttributeValue: Product attribute value, including an attribute key + // and an attribute value. Other types can be added here in the future. + ProductAttributeValue *GoogleCloudRetailV2ProductAttributeValue `json:"productAttributeValue,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeValue") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2SearchResponseConversationalSearchResultAdditionalFilter + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer: +// Suggested answers to the follow-up question. +type GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer struct { + // ProductAttributeValue: Product attribute value, including an attribute key + // and an attribute value. Other types can be added here in the future. + ProductAttributeValue *GoogleCloudRetailV2ProductAttributeValue `json:"productAttributeValue,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeValue") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2SearchResponseConversationalSearchResultSuggestedAnswer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2SearchResponseFacet: A facet result. type GoogleCloudRetailV2SearchResponseFacet struct { // DynamicFacet: Whether the facet is dynamically generated. @@ -5359,6 +5644,31 @@ func (s GoogleCloudRetailV2SearchResponseSearchResult) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2SearchResponseTileNavigationResult: This field specifies +// all related information for tile navigation that will be used in client +// side. +type GoogleCloudRetailV2SearchResponseTileNavigationResult struct { + // Tiles: The current tiles that are used for tile navigation, sorted by + // engagement. + Tiles []*GoogleCloudRetailV2Tile `json:"tiles,omitempty"` + // ForceSendFields is a list of field names (e.g. "Tiles") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Tiles") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2SearchResponseTileNavigationResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2SearchResponseTileNavigationResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2ServingConfig: Configures metadata that is used to // generate serving time results (e.g. search results or recommendation // predictions). @@ -5619,6 +5929,34 @@ func (s GoogleCloudRetailV2SetInventoryRequest) MarshalJSON() ([]byte, error) { type GoogleCloudRetailV2SetInventoryResponse struct { } +// GoogleCloudRetailV2Tile: This field specifies the tile information including +// an attribute key, attribute value. More fields will be added in the future, +// eg: product id or product counts, etc. +type GoogleCloudRetailV2Tile struct { + // ProductAttributeInterval: The product attribute key-numeric interval. + ProductAttributeInterval *GoogleCloudRetailV2ProductAttributeInterval `json:"productAttributeInterval,omitempty"` + // ProductAttributeValue: The product attribute key-value. + ProductAttributeValue *GoogleCloudRetailV2ProductAttributeValue `json:"productAttributeValue,omitempty"` + // RepresentativeProductId: The representative product id for this tile. + RepresentativeProductId string `json:"representativeProductId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeInterval") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeInterval") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2Tile) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2Tile + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2TuneModelMetadata: Metadata associated with a tune // operation. type GoogleCloudRetailV2TuneModelMetadata struct { @@ -8304,7 +8642,7 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.completeQuery" call. @@ -8409,7 +8747,7 @@ func (c *ProjectsLocationsCatalogsExportAnalyticsMetricsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.exportAnalyticsMetrics" call. @@ -8519,7 +8857,7 @@ func (c *ProjectsLocationsCatalogsGetAttributesConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.getAttributesConfig" call. @@ -8629,7 +8967,7 @@ func (c *ProjectsLocationsCatalogsGetCompletionConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.getCompletionConfig" call. @@ -8739,7 +9077,7 @@ func (c *ProjectsLocationsCatalogsGetDefaultBranchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.getDefaultBranch" call. @@ -8870,7 +9208,7 @@ func (c *ProjectsLocationsCatalogsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.list" call. @@ -9001,7 +9339,7 @@ func (c *ProjectsLocationsCatalogsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.patch" call. @@ -9124,7 +9462,7 @@ func (c *ProjectsLocationsCatalogsSetDefaultBranchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.setDefaultBranch" call. @@ -9242,7 +9580,7 @@ func (c *ProjectsLocationsCatalogsUpdateAttributesConfigCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.updateAttributesConfig" call. @@ -9355,7 +9693,7 @@ func (c *ProjectsLocationsCatalogsUpdateCompletionConfigCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.updateCompletionConfig" call. @@ -9461,7 +9799,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) doReq googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute" call. @@ -9567,7 +9905,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigRemoveCatalogAttributeCall) do googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.removeCatalogAttribute" call. @@ -9674,7 +10012,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigReplaceCatalogAttributeCall) d googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.replaceCatalogAttribute" call. @@ -9784,7 +10122,7 @@ func (c *ProjectsLocationsCatalogsBranchesOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.operations.get" call. @@ -9904,7 +10242,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall) doRe googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces" call. @@ -10023,7 +10361,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddLocalInventoriesCall) doReq googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.addLocalInventories" call. @@ -10140,7 +10478,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.create" call. @@ -10245,7 +10583,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.delete" call. @@ -10358,7 +10696,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.get" call. @@ -10465,7 +10803,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsImportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.import" call. @@ -10626,7 +10964,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.list" call. @@ -10772,7 +11110,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.patch" call. @@ -10884,7 +11222,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsPurgeCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.purge" call. @@ -11004,7 +11342,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall) d googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces" call. @@ -11121,7 +11459,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveLocalInventoriesCall) do googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.removeLocalInventories" call. @@ -11246,7 +11584,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsSetInventoryCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.setInventory" call. @@ -11354,7 +11692,7 @@ func (c *ProjectsLocationsCatalogsCompletionDataImportCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.completionData.import" call. @@ -11467,7 +11805,7 @@ func (c *ProjectsLocationsCatalogsControlsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.create" call. @@ -11566,7 +11904,7 @@ func (c *ProjectsLocationsCatalogsControlsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.delete" call. @@ -11676,7 +12014,7 @@ func (c *ProjectsLocationsCatalogsControlsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.get" call. @@ -11809,7 +12147,7 @@ func (c *ProjectsLocationsCatalogsControlsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.list" call. @@ -11943,7 +12281,7 @@ func (c *ProjectsLocationsCatalogsControlsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.patch" call. @@ -12053,7 +12391,7 @@ func (c *ProjectsLocationsCatalogsModelsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.create" call. @@ -12151,7 +12489,7 @@ func (c *ProjectsLocationsCatalogsModelsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.delete" call. @@ -12261,7 +12599,7 @@ func (c *ProjectsLocationsCatalogsModelsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.get" call. @@ -12385,7 +12723,7 @@ func (c *ProjectsLocationsCatalogsModelsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.list" call. @@ -12521,7 +12859,7 @@ func (c *ProjectsLocationsCatalogsModelsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.patch" call. @@ -12625,7 +12963,7 @@ func (c *ProjectsLocationsCatalogsModelsPauseCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.pause" call. @@ -12729,7 +13067,7 @@ func (c *ProjectsLocationsCatalogsModelsResumeCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.resume" call. @@ -12833,7 +13171,7 @@ func (c *ProjectsLocationsCatalogsModelsTuneCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.tune" call. @@ -12943,7 +13281,7 @@ func (c *ProjectsLocationsCatalogsOperationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.operations.get" call. @@ -13072,7 +13410,7 @@ func (c *ProjectsLocationsCatalogsOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.operations.list" call. @@ -13206,7 +13544,7 @@ func (c *ProjectsLocationsCatalogsPlacementsPredictCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.placements.predict" call. @@ -13315,7 +13653,7 @@ func (c *ProjectsLocationsCatalogsPlacementsSearchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.placements.search" call. @@ -13446,7 +13784,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsAddControlCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.addControl" call. @@ -13559,7 +13897,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.create" call. @@ -13658,7 +13996,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.delete" call. @@ -13769,7 +14107,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.get" call. @@ -13894,7 +14232,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.list" call. @@ -14026,7 +14364,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.patch" call. @@ -14139,7 +14477,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsPredictCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.predict" call. @@ -14245,7 +14583,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsRemoveControlCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.removeControl" call. @@ -14354,7 +14692,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsSearchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.search" call. @@ -14528,7 +14866,7 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.collect" call. @@ -14634,7 +14972,7 @@ func (c *ProjectsLocationsCatalogsUserEventsImportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.import" call. @@ -14741,7 +15079,7 @@ func (c *ProjectsLocationsCatalogsUserEventsPurgeCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.purge" call. @@ -14851,7 +15189,7 @@ func (c *ProjectsLocationsCatalogsUserEventsRejoinCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.rejoin" call. @@ -14964,7 +15302,7 @@ func (c *ProjectsLocationsCatalogsUserEventsWriteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.write" call. @@ -15074,7 +15412,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.operations.get" call. @@ -15203,7 +15541,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.operations.list" call. @@ -15334,7 +15672,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.operations.get" call. @@ -15463,7 +15801,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.operations.list" call. diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 17ddacc84b1..1e5aea82760 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -2613,7 +2613,7 @@ } } }, - "revision": "20240822", + "revision": "20240912", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -5972,6 +5972,36 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaProductAttributeInterval": { + "description": "Product attribute name and numeric interval.", + "id": "GoogleCloudRetailV2alphaProductAttributeInterval", + "properties": { + "interval": { + "$ref": "GoogleCloudRetailV2alphaInterval", + "description": "The numeric interval (e.g. [10, 20))" + }, + "name": { + "description": "The attribute name (e.g. \"length\")", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2alphaProductAttributeValue": { + "description": "Product attribute which structured by an attribute name and value. This structure is used in conversational search filters and answers. For example, if we have `name=color` and `value=red`, this means that the color is `red`.", + "id": "GoogleCloudRetailV2alphaProductAttributeValue", + "properties": { + "name": { + "description": "The attribute name.", + "type": "string" + }, + "value": { + "description": "The attribute value.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaProductDetail": { "description": "Detailed product information associated with a user event.", "id": "GoogleCloudRetailV2alphaProductDetail", @@ -6638,6 +6668,10 @@ "description": "The default filter that is applied when a user performs a search without checking any filters on the search page. The filter applied to every search request when quality improvement such as query expansion is needed. In the case a query does not have a sufficient amount of results this filter will be used to determine whether or not to enable the query expansion flow. The original filter will still be used for the query expanded search. This field is strongly recommended to achieve high search quality. For more information about filter syntax, see SearchRequest.filter.", "type": "string" }, + "conversationalSearchSpec": { + "$ref": "GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec", + "description": "Optional. This field specifies all conversational related parameters addition to traditional retail search." + }, "dynamicFacetSpec": { "$ref": "GoogleCloudRetailV2alphaSearchRequestDynamicFacetSpec", "deprecated": true, @@ -6738,6 +6772,10 @@ "$ref": "GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec", "description": "The spell correction specification that specifies the mode under which spell correction will take effect." }, + "tileNavigationSpec": { + "$ref": "GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec", + "description": "Optional. This field specifies tile navigation related parameters." + }, "userInfo": { "$ref": "GoogleCloudRetailV2alphaUserInfo", "description": "User information." @@ -6790,6 +6828,59 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec": { + "description": "This field specifies all conversational related parameters addition to traditional retail search.", + "id": "GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec", + "properties": { + "conversationId": { + "description": "This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous ConversationalSearchResult.conversation_id. For the initial request, this should be empty.", + "type": "string" + }, + "followupConversationRequested": { + "description": "This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc.", + "type": "boolean" + }, + "userAnswer": { + "$ref": "GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswer", + "description": "This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswer": { + "description": "This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.", + "id": "GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswer", + "properties": { + "selectedAnswer": { + "$ref": "GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer", + "description": "This field specifies the selected attributes during the conversational search. This should be a subset of ConversationalSearchResult.suggested_answers." + }, + "textAnswer": { + "description": "This field specifies the incremental input text from the user during the conversational search.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer": { + "description": "This field specifies the selected answers during the conversational search.", + "id": "GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2alphaProductAttributeValue", + "description": "This field specifies the selected answer which is a attribute key-value." + }, + "productAttributeValues": { + "deprecated": true, + "description": "This field is deprecated and should not be set.", + "items": { + "$ref": "GoogleCloudRetailV2alphaProductAttributeValue" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaSearchRequestDynamicFacetSpec": { "description": "The specifications of dynamically generated facets.", "id": "GoogleCloudRetailV2alphaSearchRequestDynamicFacetSpec", @@ -6960,6 +7051,24 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec": { + "description": "This field specifies tile navigation related parameters.", + "id": "GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec", + "properties": { + "appliedTiles": { + "description": "This field specifies the tiles which are already clicked in client side. NOTE: This field is not being used for filtering search products. Client side should also put all the applied tiles in SearchRequest.filter.", + "items": { + "$ref": "GoogleCloudRetailV2alphaTile" + }, + "type": "array" + }, + "tileNavigationRequested": { + "description": "This field specifies whether the customer would like to request tile navigation.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaSearchResponse": { "description": "Response message for SearchService.Search method.", "id": "GoogleCloudRetailV2alphaSearchResponse", @@ -6975,6 +7084,10 @@ "description": "A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance.", "type": "string" }, + "conversationalSearchResult": { + "$ref": "GoogleCloudRetailV2alphaSearchResponseConversationalSearchResult", + "description": "This field specifies all related information that is needed on client side for UI rendering of conversational retail search." + }, "correctedQuery": { "description": "Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.", "type": "string" @@ -7019,6 +7132,10 @@ }, "type": "array" }, + "tileNavigationResult": { + "$ref": "GoogleCloudRetailV2alphaSearchResponseTileNavigationResult", + "description": "This field specifies all related information for tile navigation that will be used in client side." + }, "totalSize": { "description": "The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches.", "format": "int32", @@ -7027,6 +7144,66 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaSearchResponseConversationalSearchResult": { + "description": "This field specifies all related information that is needed on client side for UI rendering of conversational retail search.", + "id": "GoogleCloudRetailV2alphaSearchResponseConversationalSearchResult", + "properties": { + "additionalFilter": { + "$ref": "GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultAdditionalFilter", + "description": "This is the incremental additional filters implied from the current user answer. User should add the suggested addition filters to the previous SearchRequest.filter, and use the merged filter in the follow up search request." + }, + "additionalFilters": { + "deprecated": true, + "description": "This field is deprecated but will be kept for backward compatibility. There is expected to have only one additional filter and the value will be the same to the same as field `additional_filter`.", + "items": { + "$ref": "GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultAdditionalFilter" + }, + "type": "array" + }, + "conversationId": { + "description": "Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's SearchRequest.ConversationalSearchSpec.conversation_id to restore conversation state in server.", + "type": "string" + }, + "followupQuestion": { + "description": "The follow-up question. e.g., `What is the color?`", + "type": "string" + }, + "refinedQuery": { + "description": "The current refined query for the conversational search. This field will be used in customer UI that the query in the search bar should be replaced with the refined query. For example, if SearchRequest.query is `dress` and next SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer is `red color`, which does not match any product attribute value filters, the refined query will be `dress, red color`.", + "type": "string" + }, + "suggestedAnswers": { + "description": "The answer options provided to client for the follow-up question.", + "items": { + "$ref": "GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultSuggestedAnswer" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultAdditionalFilter": { + "description": "Additional filter that client side need to apply.", + "id": "GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultAdditionalFilter", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2alphaProductAttributeValue", + "description": "Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultSuggestedAnswer": { + "description": "Suggested answers to the follow-up question.", + "id": "GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultSuggestedAnswer", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2alphaProductAttributeValue", + "description": "Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future." + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaSearchResponseFacet": { "description": "A facet result.", "id": "GoogleCloudRetailV2alphaSearchResponseFacet", @@ -7137,6 +7314,20 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaSearchResponseTileNavigationResult": { + "description": "This field specifies all related information for tile navigation that will be used in client side.", + "id": "GoogleCloudRetailV2alphaSearchResponseTileNavigationResult", + "properties": { + "tiles": { + "description": "The current tiles that are used for tile navigation, sorted by engagement.", + "items": { + "$ref": "GoogleCloudRetailV2alphaTile" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaServingConfig": { "description": "Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions).", "id": "GoogleCloudRetailV2alphaServingConfig", @@ -7330,6 +7521,25 @@ "properties": {}, "type": "object" }, + "GoogleCloudRetailV2alphaTile": { + "description": "This field specifies the tile information including an attribute key, attribute value. More fields will be added in the future, eg: product id or product counts, etc.", + "id": "GoogleCloudRetailV2alphaTile", + "properties": { + "productAttributeInterval": { + "$ref": "GoogleCloudRetailV2alphaProductAttributeInterval", + "description": "The product attribute key-numeric interval." + }, + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2alphaProductAttributeValue", + "description": "The product attribute key-value." + }, + "representativeProductId": { + "description": "The representative product id for this tile.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaTransformedUserEventsMetadata": { "description": "Metadata related to transform user events operation.", "id": "GoogleCloudRetailV2alphaTransformedUserEventsMetadata", diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 55c4357307c..59820753b22 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -5495,6 +5495,58 @@ func (s GoogleCloudRetailV2alphaProduct) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaProductAttributeInterval: Product attribute name and +// numeric interval. +type GoogleCloudRetailV2alphaProductAttributeInterval struct { + // Interval: The numeric interval (e.g. [10, 20)) + Interval *GoogleCloudRetailV2alphaInterval `json:"interval,omitempty"` + // Name: The attribute name (e.g. "length") + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Interval") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Interval") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaProductAttributeInterval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaProductAttributeInterval + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2alphaProductAttributeValue: Product attribute which +// structured by an attribute name and value. This structure is used in +// conversational search filters and answers. For example, if we have +// `name=color` and `value=red`, this means that the color is `red`. +type GoogleCloudRetailV2alphaProductAttributeValue struct { + // Name: The attribute name. + Name string `json:"name,omitempty"` + // Value: The attribute value. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaProductAttributeValue) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaProductAttributeValue + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaProductDetail: Detailed product information // associated with a user event. type GoogleCloudRetailV2alphaProductDetail struct { @@ -6637,6 +6689,9 @@ type GoogleCloudRetailV2alphaSearchRequest struct { // expanded search. This field is strongly recommended to achieve high search // quality. For more information about filter syntax, see SearchRequest.filter. CanonicalFilter string `json:"canonicalFilter,omitempty"` + // ConversationalSearchSpec: Optional. This field specifies all conversational + // related parameters addition to traditional retail search. + ConversationalSearchSpec *GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec `json:"conversationalSearchSpec,omitempty"` // DynamicFacetSpec: Deprecated. Refer to // https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic // facets. Do not set this field. The specification for dynamically generated @@ -6752,6 +6807,9 @@ type GoogleCloudRetailV2alphaSearchRequest struct { // SpellCorrectionSpec: The spell correction specification that specifies the // mode under which spell correction will take effect. SpellCorrectionSpec *GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"` + // TileNavigationSpec: Optional. This field specifies tile navigation related + // parameters. + TileNavigationSpec *GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec `json:"tileNavigationSpec,omitempty"` // UserInfo: User information. UserInfo *GoogleCloudRetailV2alphaUserInfo `json:"userInfo,omitempty"` // VariantRollupKeys: The keys to fetch and rollup the matching variant @@ -6893,6 +6951,99 @@ func (s *GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec) Unmar return nil } +// GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec: This field +// specifies all conversational related parameters addition to traditional +// retail search. +type GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec struct { + // ConversationId: This field specifies the conversation id, which maintains + // the state of the conversation between client side and server side. Use the + // value from the previous ConversationalSearchResult.conversation_id. For the + // initial request, this should be empty. + ConversationId string `json:"conversationId,omitempty"` + // FollowupConversationRequested: This field specifies whether the customer + // would like to do conversational search. If this field is set to true, + // conversational related extra information will be returned from server side, + // including follow-up question, answer options, etc. + FollowupConversationRequested bool `json:"followupConversationRequested,omitempty"` + // UserAnswer: This field specifies the current user answer during the + // conversational search. This can be either user selected from suggested + // answers or user input plain text. + UserAnswer *GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswer `json:"userAnswer,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConversationId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConversationId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswer: +// This field specifies the current user answer during the conversational +// search. This can be either user selected from suggested answers or user +// input plain text. +type GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswer struct { + // SelectedAnswer: This field specifies the selected attributes during the + // conversational search. This should be a subset of + // ConversationalSearchResult.suggested_answers. + SelectedAnswer *GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer `json:"selectedAnswer,omitempty"` + // TextAnswer: This field specifies the incremental input text from the user + // during the conversational search. + TextAnswer string `json:"textAnswer,omitempty"` + // ForceSendFields is a list of field names (e.g. "SelectedAnswer") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SelectedAnswer") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelect +// edAnswer: This field specifies the selected answers during the +// conversational search. +type GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer struct { + // ProductAttributeValue: This field specifies the selected answer which is a + // attribute key-value. + ProductAttributeValue *GoogleCloudRetailV2alphaProductAttributeValue `json:"productAttributeValue,omitempty"` + // ProductAttributeValues: This field is deprecated and should not be set. + ProductAttributeValues []*GoogleCloudRetailV2alphaProductAttributeValue `json:"productAttributeValues,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeValue") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaSearchRequestDynamicFacetSpec: The specifications of // dynamically generated facets. type GoogleCloudRetailV2alphaSearchRequestDynamicFacetSpec struct { @@ -7180,6 +7331,35 @@ func (s GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec: This field +// specifies tile navigation related parameters. +type GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec struct { + // AppliedTiles: This field specifies the tiles which are already clicked in + // client side. NOTE: This field is not being used for filtering search + // products. Client side should also put all the applied tiles in + // SearchRequest.filter. + AppliedTiles []*GoogleCloudRetailV2alphaTile `json:"appliedTiles,omitempty"` + // TileNavigationRequested: This field specifies whether the customer would + // like to request tile navigation. + TileNavigationRequested bool `json:"tileNavigationRequested,omitempty"` + // ForceSendFields is a list of field names (e.g. "AppliedTiles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AppliedTiles") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaSearchResponse: Response message for // SearchService.Search method. type GoogleCloudRetailV2alphaSearchResponse struct { @@ -7190,6 +7370,10 @@ type GoogleCloudRetailV2alphaSearchResponse struct { // UserEvent logs resulting from this search, which enables accurate // attribution of search model performance. AttributionToken string `json:"attributionToken,omitempty"` + // ConversationalSearchResult: This field specifies all related information + // that is needed on client side for UI rendering of conversational retail + // search. + ConversationalSearchResult *GoogleCloudRetailV2alphaSearchResponseConversationalSearchResult `json:"conversationalSearchResult,omitempty"` // CorrectedQuery: Contains the spell corrected query, if found. If the spell // correction type is AUTOMATIC, then the search results are based on // corrected_query. Otherwise the original query is used for search. @@ -7215,6 +7399,9 @@ type GoogleCloudRetailV2alphaSearchResponse struct { RedirectUri string `json:"redirectUri,omitempty"` // Results: A list of matched items. The order represents the ranking. Results []*GoogleCloudRetailV2alphaSearchResponseSearchResult `json:"results,omitempty"` + // TileNavigationResult: This field specifies all related information for tile + // navigation that will be used in client side. + TileNavigationResult *GoogleCloudRetailV2alphaSearchResponseTileNavigationResult `json:"tileNavigationResult,omitempty"` // TotalSize: The estimated total count of matched items irrespective of // pagination. The count of results returned by pagination may be less than the // total_size that matches. @@ -7240,6 +7427,104 @@ func (s GoogleCloudRetailV2alphaSearchResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaSearchResponseConversationalSearchResult: This field +// specifies all related information that is needed on client side for UI +// rendering of conversational retail search. +type GoogleCloudRetailV2alphaSearchResponseConversationalSearchResult struct { + // AdditionalFilter: This is the incremental additional filters implied from + // the current user answer. User should add the suggested addition filters to + // the previous SearchRequest.filter, and use the merged filter in the follow + // up search request. + AdditionalFilter *GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultAdditionalFilter `json:"additionalFilter,omitempty"` + // AdditionalFilters: This field is deprecated but will be kept for backward + // compatibility. There is expected to have only one additional filter and the + // value will be the same to the same as field `additional_filter`. + AdditionalFilters []*GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultAdditionalFilter `json:"additionalFilters,omitempty"` + // ConversationId: Conversation UUID. This field will be stored in client side + // storage to maintain the conversation session with server and will be used + // for next search request's + // SearchRequest.ConversationalSearchSpec.conversation_id to restore + // conversation state in server. + ConversationId string `json:"conversationId,omitempty"` + // FollowupQuestion: The follow-up question. e.g., `What is the color?` + FollowupQuestion string `json:"followupQuestion,omitempty"` + // RefinedQuery: The current refined query for the conversational search. This + // field will be used in customer UI that the query in the search bar should be + // replaced with the refined query. For example, if SearchRequest.query is + // `dress` and next + // SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer is `red + // color`, which does not match any product attribute value filters, the + // refined query will be `dress, red color`. + RefinedQuery string `json:"refinedQuery,omitempty"` + // SuggestedAnswers: The answer options provided to client for the follow-up + // question. + SuggestedAnswers []*GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultSuggestedAnswer `json:"suggestedAnswers,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalFilter") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdditionalFilter") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaSearchResponseConversationalSearchResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaSearchResponseConversationalSearchResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultAdditionalFil +// ter: Additional filter that client side need to apply. +type GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultAdditionalFilter struct { + // ProductAttributeValue: Product attribute value, including an attribute key + // and an attribute value. Other types can be added here in the future. + ProductAttributeValue *GoogleCloudRetailV2alphaProductAttributeValue `json:"productAttributeValue,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeValue") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultAdditionalFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultAdditionalFilter + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultSuggestedAnsw +// er: Suggested answers to the follow-up question. +type GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultSuggestedAnswer struct { + // ProductAttributeValue: Product attribute value, including an attribute key + // and an attribute value. Other types can be added here in the future. + ProductAttributeValue *GoogleCloudRetailV2alphaProductAttributeValue `json:"productAttributeValue,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeValue") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultSuggestedAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaSearchResponseConversationalSearchResultSuggestedAnswer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaSearchResponseFacet: A facet result. type GoogleCloudRetailV2alphaSearchResponseFacet struct { // DynamicFacet: Whether the facet is dynamically generated. @@ -7408,6 +7693,31 @@ func (s GoogleCloudRetailV2alphaSearchResponseSearchResult) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaSearchResponseTileNavigationResult: This field +// specifies all related information for tile navigation that will be used in +// client side. +type GoogleCloudRetailV2alphaSearchResponseTileNavigationResult struct { + // Tiles: The current tiles that are used for tile navigation, sorted by + // engagement. + Tiles []*GoogleCloudRetailV2alphaTile `json:"tiles,omitempty"` + // ForceSendFields is a list of field names (e.g. "Tiles") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Tiles") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaSearchResponseTileNavigationResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaSearchResponseTileNavigationResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaServingConfig: Configures metadata that is used to // generate serving time results (e.g. search results or recommendation // predictions). @@ -7668,6 +7978,34 @@ func (s GoogleCloudRetailV2alphaSetInventoryRequest) MarshalJSON() ([]byte, erro type GoogleCloudRetailV2alphaSetInventoryResponse struct { } +// GoogleCloudRetailV2alphaTile: This field specifies the tile information +// including an attribute key, attribute value. More fields will be added in +// the future, eg: product id or product counts, etc. +type GoogleCloudRetailV2alphaTile struct { + // ProductAttributeInterval: The product attribute key-numeric interval. + ProductAttributeInterval *GoogleCloudRetailV2alphaProductAttributeInterval `json:"productAttributeInterval,omitempty"` + // ProductAttributeValue: The product attribute key-value. + ProductAttributeValue *GoogleCloudRetailV2alphaProductAttributeValue `json:"productAttributeValue,omitempty"` + // RepresentativeProductId: The representative product id for this tile. + RepresentativeProductId string `json:"representativeProductId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeInterval") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeInterval") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaTile) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaTile + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaTransformedUserEventsMetadata: Metadata related to // transform user events operation. type GoogleCloudRetailV2alphaTransformedUserEventsMetadata struct { @@ -9105,7 +9443,7 @@ func (c *ProjectsEnrollSolutionCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.enrollSolution" call. @@ -9214,7 +9552,7 @@ func (c *ProjectsGetAlertConfigCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.getAlertConfig" call. @@ -9323,7 +9661,7 @@ func (c *ProjectsGetLoggingConfigCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.getLoggingConfig" call. @@ -9433,7 +9771,7 @@ func (c *ProjectsGetRetailProjectCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.getRetailProject" call. @@ -9543,7 +9881,7 @@ func (c *ProjectsListEnrolledSolutionsCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.listEnrolledSolutions" call. @@ -9654,7 +9992,7 @@ func (c *ProjectsUpdateAlertConfigCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.updateAlertConfig" call. @@ -9767,7 +10105,7 @@ func (c *ProjectsUpdateLoggingConfigCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.updateLoggingConfig" call. @@ -9964,7 +10302,7 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.completeQuery" call. @@ -10069,7 +10407,7 @@ func (c *ProjectsLocationsCatalogsExportAnalyticsMetricsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.exportAnalyticsMetrics" call. @@ -10179,7 +10517,7 @@ func (c *ProjectsLocationsCatalogsGetAttributesConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.getAttributesConfig" call. @@ -10289,7 +10627,7 @@ func (c *ProjectsLocationsCatalogsGetCompletionConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.getCompletionConfig" call. @@ -10399,7 +10737,7 @@ func (c *ProjectsLocationsCatalogsGetDefaultBranchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.getDefaultBranch" call. @@ -10530,7 +10868,7 @@ func (c *ProjectsLocationsCatalogsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.list" call. @@ -10661,7 +10999,7 @@ func (c *ProjectsLocationsCatalogsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.patch" call. @@ -10784,7 +11122,7 @@ func (c *ProjectsLocationsCatalogsSetDefaultBranchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.setDefaultBranch" call. @@ -10902,7 +11240,7 @@ func (c *ProjectsLocationsCatalogsUpdateAttributesConfigCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.updateAttributesConfig" call. @@ -11015,7 +11353,7 @@ func (c *ProjectsLocationsCatalogsUpdateCompletionConfigCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.updateCompletionConfig" call. @@ -11121,7 +11459,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) doReq googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute" call. @@ -11227,7 +11565,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigBatchRemoveCatalogAttributesCa googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.batchRemoveCatalogAttributes" call. @@ -11333,7 +11671,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigRemoveCatalogAttributeCall) do googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.removeCatalogAttribute" call. @@ -11440,7 +11778,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigReplaceCatalogAttributeCall) d googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.replaceCatalogAttribute" call. @@ -11573,7 +11911,7 @@ func (c *ProjectsLocationsCatalogsBranchesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.get" call. @@ -11703,7 +12041,7 @@ func (c *ProjectsLocationsCatalogsBranchesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.list" call. @@ -11813,7 +12151,7 @@ func (c *ProjectsLocationsCatalogsBranchesOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.operations.get" call. @@ -11923,7 +12261,7 @@ func (c *ProjectsLocationsCatalogsBranchesPlacesOperationsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.places.operations.get" call. @@ -12043,7 +12381,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall) doRe googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces" call. @@ -12162,7 +12500,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddLocalInventoriesCall) doReq googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.addLocalInventories" call. @@ -12279,7 +12617,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.create" call. @@ -12394,7 +12732,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.delete" call. @@ -12499,7 +12837,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsExportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.export" call. @@ -12612,7 +12950,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.get" call. @@ -12719,7 +13057,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsImportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.import" call. @@ -12889,7 +13227,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.list" call. @@ -13035,7 +13373,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.patch" call. @@ -13147,7 +13485,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsPurgeCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.purge" call. @@ -13267,7 +13605,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall) d googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces" call. @@ -13384,7 +13722,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveLocalInventoriesCall) do googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.removeLocalInventories" call. @@ -13509,7 +13847,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsSetInventoryCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.setInventory" call. @@ -13617,7 +13955,7 @@ func (c *ProjectsLocationsCatalogsCompletionDataImportCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.completionData.import" call. @@ -13730,7 +14068,7 @@ func (c *ProjectsLocationsCatalogsControlsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.create" call. @@ -13829,7 +14167,7 @@ func (c *ProjectsLocationsCatalogsControlsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.delete" call. @@ -13939,7 +14277,7 @@ func (c *ProjectsLocationsCatalogsControlsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.get" call. @@ -14072,7 +14410,7 @@ func (c *ProjectsLocationsCatalogsControlsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.list" call. @@ -14206,7 +14544,7 @@ func (c *ProjectsLocationsCatalogsControlsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.patch" call. @@ -14310,7 +14648,7 @@ func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.merchantCenterAccountLinks.create" call. @@ -14410,7 +14748,7 @@ func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.merchantCenterAccountLinks.delete" call. @@ -14520,7 +14858,7 @@ func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.merchantCenterAccountLinks.list" call. @@ -14630,7 +14968,7 @@ func (c *ProjectsLocationsCatalogsModelsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.create" call. @@ -14728,7 +15066,7 @@ func (c *ProjectsLocationsCatalogsModelsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.delete" call. @@ -14838,7 +15176,7 @@ func (c *ProjectsLocationsCatalogsModelsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.get" call. @@ -14962,7 +15300,7 @@ func (c *ProjectsLocationsCatalogsModelsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.list" call. @@ -15098,7 +15436,7 @@ func (c *ProjectsLocationsCatalogsModelsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.patch" call. @@ -15202,7 +15540,7 @@ func (c *ProjectsLocationsCatalogsModelsPauseCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.pause" call. @@ -15306,7 +15644,7 @@ func (c *ProjectsLocationsCatalogsModelsResumeCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.resume" call. @@ -15410,7 +15748,7 @@ func (c *ProjectsLocationsCatalogsModelsTuneCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.tune" call. @@ -15520,7 +15858,7 @@ func (c *ProjectsLocationsCatalogsOperationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.operations.get" call. @@ -15649,7 +15987,7 @@ func (c *ProjectsLocationsCatalogsOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.operations.list" call. @@ -15783,7 +16121,7 @@ func (c *ProjectsLocationsCatalogsPlacementsPredictCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.placements.predict" call. @@ -15892,7 +16230,7 @@ func (c *ProjectsLocationsCatalogsPlacementsSearchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.placements.search" call. @@ -16023,7 +16361,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsAddControlCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.addControl" call. @@ -16136,7 +16474,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.create" call. @@ -16235,7 +16573,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.delete" call. @@ -16346,7 +16684,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.get" call. @@ -16471,7 +16809,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.list" call. @@ -16603,7 +16941,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.patch" call. @@ -16716,7 +17054,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsPredictCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.predict" call. @@ -16822,7 +17160,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsRemoveControlCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.removeControl" call. @@ -16931,7 +17269,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsSearchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.search" call. @@ -17105,7 +17443,7 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.collect" call. @@ -17209,7 +17547,7 @@ func (c *ProjectsLocationsCatalogsUserEventsExportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.export" call. @@ -17315,7 +17653,7 @@ func (c *ProjectsLocationsCatalogsUserEventsImportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.import" call. @@ -17422,7 +17760,7 @@ func (c *ProjectsLocationsCatalogsUserEventsPurgeCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.purge" call. @@ -17532,7 +17870,7 @@ func (c *ProjectsLocationsCatalogsUserEventsRejoinCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.rejoin" call. @@ -17645,7 +17983,7 @@ func (c *ProjectsLocationsCatalogsUserEventsWriteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.write" call. @@ -17755,7 +18093,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.operations.get" call. @@ -17884,7 +18222,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.operations.list" call. @@ -18015,7 +18353,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.operations.get" call. @@ -18144,7 +18482,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.operations.list" call. @@ -18270,7 +18608,7 @@ func (c *ProjectsRetailProjectAcceptTermsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.retailProject.acceptTerms" call. diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 49ead852fca..21ede18827b 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -2237,7 +2237,7 @@ } } }, - "revision": "20240822", + "revision": "20240912", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -5950,6 +5950,36 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaProductAttributeInterval": { + "description": "Product attribute name and numeric interval.", + "id": "GoogleCloudRetailV2betaProductAttributeInterval", + "properties": { + "interval": { + "$ref": "GoogleCloudRetailV2betaInterval", + "description": "The numeric interval (e.g. [10, 20))" + }, + "name": { + "description": "The attribute name (e.g. \"length\")", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaProductAttributeValue": { + "description": "Product attribute which structured by an attribute name and value. This structure is used in conversational search filters and answers. For example, if we have `name=color` and `value=red`, this means that the color is `red`.", + "id": "GoogleCloudRetailV2betaProductAttributeValue", + "properties": { + "name": { + "description": "The attribute name.", + "type": "string" + }, + "value": { + "description": "The attribute value.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaProductDetail": { "description": "Detailed product information associated with a user event.", "id": "GoogleCloudRetailV2betaProductDetail", @@ -6586,6 +6616,10 @@ "description": "The default filter that is applied when a user performs a search without checking any filters on the search page. The filter applied to every search request when quality improvement such as query expansion is needed. In the case a query does not have a sufficient amount of results this filter will be used to determine whether or not to enable the query expansion flow. The original filter will still be used for the query expanded search. This field is strongly recommended to achieve high search quality. For more information about filter syntax, see SearchRequest.filter.", "type": "string" }, + "conversationalSearchSpec": { + "$ref": "GoogleCloudRetailV2betaSearchRequestConversationalSearchSpec", + "description": "Optional. This field specifies all conversational related parameters addition to traditional retail search." + }, "dynamicFacetSpec": { "$ref": "GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec", "deprecated": true, @@ -6668,6 +6702,10 @@ "$ref": "GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec", "description": "The spell correction specification that specifies the mode under which spell correction will take effect." }, + "tileNavigationSpec": { + "$ref": "GoogleCloudRetailV2betaSearchRequestTileNavigationSpec", + "description": "Optional. This field specifies tile navigation related parameters." + }, "userInfo": { "$ref": "GoogleCloudRetailV2betaUserInfo", "description": "User information." @@ -6720,6 +6758,59 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaSearchRequestConversationalSearchSpec": { + "description": "This field specifies all conversational related parameters addition to traditional retail search.", + "id": "GoogleCloudRetailV2betaSearchRequestConversationalSearchSpec", + "properties": { + "conversationId": { + "description": "This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous ConversationalSearchResult.conversation_id. For the initial request, this should be empty.", + "type": "string" + }, + "followupConversationRequested": { + "description": "This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc.", + "type": "boolean" + }, + "userAnswer": { + "$ref": "GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswer", + "description": "This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswer": { + "description": "This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.", + "id": "GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswer", + "properties": { + "selectedAnswer": { + "$ref": "GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer", + "description": "This field specifies the selected attributes during the conversational search. This should be a subset of ConversationalSearchResult.suggested_answers." + }, + "textAnswer": { + "description": "This field specifies the incremental input text from the user during the conversational search.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer": { + "description": "This field specifies the selected answers during the conversational search.", + "id": "GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2betaProductAttributeValue", + "description": "This field specifies the selected answer which is a attribute key-value." + }, + "productAttributeValues": { + "deprecated": true, + "description": "This field is deprecated and should not be set.", + "items": { + "$ref": "GoogleCloudRetailV2betaProductAttributeValue" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec": { "description": "The specifications of dynamically generated facets.", "id": "GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec", @@ -6890,6 +6981,24 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaSearchRequestTileNavigationSpec": { + "description": "This field specifies tile navigation related parameters.", + "id": "GoogleCloudRetailV2betaSearchRequestTileNavigationSpec", + "properties": { + "appliedTiles": { + "description": "This field specifies the tiles which are already clicked in client side. NOTE: This field is not being used for filtering search products. Client side should also put all the applied tiles in SearchRequest.filter.", + "items": { + "$ref": "GoogleCloudRetailV2betaTile" + }, + "type": "array" + }, + "tileNavigationRequested": { + "description": "This field specifies whether the customer would like to request tile navigation.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaSearchResponse": { "description": "Response message for SearchService.Search method.", "id": "GoogleCloudRetailV2betaSearchResponse", @@ -6905,6 +7014,10 @@ "description": "A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance.", "type": "string" }, + "conversationalSearchResult": { + "$ref": "GoogleCloudRetailV2betaSearchResponseConversationalSearchResult", + "description": "This field specifies all related information that is needed on client side for UI rendering of conversational retail search." + }, "correctedQuery": { "description": "Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.", "type": "string" @@ -6949,6 +7062,10 @@ }, "type": "array" }, + "tileNavigationResult": { + "$ref": "GoogleCloudRetailV2betaSearchResponseTileNavigationResult", + "description": "This field specifies all related information for tile navigation that will be used in client side." + }, "totalSize": { "description": "The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches.", "format": "int32", @@ -6957,6 +7074,66 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaSearchResponseConversationalSearchResult": { + "description": "This field specifies all related information that is needed on client side for UI rendering of conversational retail search.", + "id": "GoogleCloudRetailV2betaSearchResponseConversationalSearchResult", + "properties": { + "additionalFilter": { + "$ref": "GoogleCloudRetailV2betaSearchResponseConversationalSearchResultAdditionalFilter", + "description": "This is the incremental additional filters implied from the current user answer. User should add the suggested addition filters to the previous SearchRequest.filter, and use the merged filter in the follow up search request." + }, + "additionalFilters": { + "deprecated": true, + "description": "This field is deprecated but will be kept for backward compatibility. There is expected to have only one additional filter and the value will be the same to the same as field `additional_filter`.", + "items": { + "$ref": "GoogleCloudRetailV2betaSearchResponseConversationalSearchResultAdditionalFilter" + }, + "type": "array" + }, + "conversationId": { + "description": "Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's SearchRequest.ConversationalSearchSpec.conversation_id to restore conversation state in server.", + "type": "string" + }, + "followupQuestion": { + "description": "The follow-up question. e.g., `What is the color?`", + "type": "string" + }, + "refinedQuery": { + "description": "The current refined query for the conversational search. This field will be used in customer UI that the query in the search bar should be replaced with the refined query. For example, if SearchRequest.query is `dress` and next SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer is `red color`, which does not match any product attribute value filters, the refined query will be `dress, red color`.", + "type": "string" + }, + "suggestedAnswers": { + "description": "The answer options provided to client for the follow-up question.", + "items": { + "$ref": "GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswer" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaSearchResponseConversationalSearchResultAdditionalFilter": { + "description": "Additional filter that client side need to apply.", + "id": "GoogleCloudRetailV2betaSearchResponseConversationalSearchResultAdditionalFilter", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2betaProductAttributeValue", + "description": "Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future." + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswer": { + "description": "Suggested answers to the follow-up question.", + "id": "GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswer", + "properties": { + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2betaProductAttributeValue", + "description": "Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future." + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaSearchResponseFacet": { "description": "A facet result.", "id": "GoogleCloudRetailV2betaSearchResponseFacet", @@ -7067,6 +7244,20 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaSearchResponseTileNavigationResult": { + "description": "This field specifies all related information for tile navigation that will be used in client side.", + "id": "GoogleCloudRetailV2betaSearchResponseTileNavigationResult", + "properties": { + "tiles": { + "description": "The current tiles that are used for tile navigation, sorted by engagement.", + "items": { + "$ref": "GoogleCloudRetailV2betaTile" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaServingConfig": { "description": "Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions).", "id": "GoogleCloudRetailV2betaServingConfig", @@ -7260,6 +7451,25 @@ "properties": {}, "type": "object" }, + "GoogleCloudRetailV2betaTile": { + "description": "This field specifies the tile information including an attribute key, attribute value. More fields will be added in the future, eg: product id or product counts, etc.", + "id": "GoogleCloudRetailV2betaTile", + "properties": { + "productAttributeInterval": { + "$ref": "GoogleCloudRetailV2betaProductAttributeInterval", + "description": "The product attribute key-numeric interval." + }, + "productAttributeValue": { + "$ref": "GoogleCloudRetailV2betaProductAttributeValue", + "description": "The product attribute key-value." + }, + "representativeProductId": { + "description": "The representative product id for this tile.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaTuneModelMetadata": { "description": "Metadata associated with a tune operation.", "id": "GoogleCloudRetailV2betaTuneModelMetadata", diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 0234cc281df..350e00367ca 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -5902,6 +5902,58 @@ func (s GoogleCloudRetailV2betaProduct) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaProductAttributeInterval: Product attribute name and +// numeric interval. +type GoogleCloudRetailV2betaProductAttributeInterval struct { + // Interval: The numeric interval (e.g. [10, 20)) + Interval *GoogleCloudRetailV2betaInterval `json:"interval,omitempty"` + // Name: The attribute name (e.g. "length") + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Interval") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Interval") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaProductAttributeInterval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaProductAttributeInterval + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaProductAttributeValue: Product attribute which +// structured by an attribute name and value. This structure is used in +// conversational search filters and answers. For example, if we have +// `name=color` and `value=red`, this means that the color is `red`. +type GoogleCloudRetailV2betaProductAttributeValue struct { + // Name: The attribute name. + Name string `json:"name,omitempty"` + // Value: The attribute value. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaProductAttributeValue) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaProductAttributeValue + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaProductDetail: Detailed product information // associated with a user event. type GoogleCloudRetailV2betaProductDetail struct { @@ -7008,6 +7060,9 @@ type GoogleCloudRetailV2betaSearchRequest struct { // expanded search. This field is strongly recommended to achieve high search // quality. For more information about filter syntax, see SearchRequest.filter. CanonicalFilter string `json:"canonicalFilter,omitempty"` + // ConversationalSearchSpec: Optional. This field specifies all conversational + // related parameters addition to traditional retail search. + ConversationalSearchSpec *GoogleCloudRetailV2betaSearchRequestConversationalSearchSpec `json:"conversationalSearchSpec,omitempty"` // DynamicFacetSpec: Deprecated. Refer to // https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic // facets. Do not set this field. The specification for dynamically generated @@ -7109,6 +7164,9 @@ type GoogleCloudRetailV2betaSearchRequest struct { // SpellCorrectionSpec: The spell correction specification that specifies the // mode under which spell correction will take effect. SpellCorrectionSpec *GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"` + // TileNavigationSpec: Optional. This field specifies tile navigation related + // parameters. + TileNavigationSpec *GoogleCloudRetailV2betaSearchRequestTileNavigationSpec `json:"tileNavigationSpec,omitempty"` // UserInfo: User information. UserInfo *GoogleCloudRetailV2betaUserInfo `json:"userInfo,omitempty"` // VariantRollupKeys: The keys to fetch and rollup the matching variant @@ -7250,6 +7308,99 @@ func (s *GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec) Unmars return nil } +// GoogleCloudRetailV2betaSearchRequestConversationalSearchSpec: This field +// specifies all conversational related parameters addition to traditional +// retail search. +type GoogleCloudRetailV2betaSearchRequestConversationalSearchSpec struct { + // ConversationId: This field specifies the conversation id, which maintains + // the state of the conversation between client side and server side. Use the + // value from the previous ConversationalSearchResult.conversation_id. For the + // initial request, this should be empty. + ConversationId string `json:"conversationId,omitempty"` + // FollowupConversationRequested: This field specifies whether the customer + // would like to do conversational search. If this field is set to true, + // conversational related extra information will be returned from server side, + // including follow-up question, answer options, etc. + FollowupConversationRequested bool `json:"followupConversationRequested,omitempty"` + // UserAnswer: This field specifies the current user answer during the + // conversational search. This can be either user selected from suggested + // answers or user input plain text. + UserAnswer *GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswer `json:"userAnswer,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConversationId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConversationId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaSearchRequestConversationalSearchSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaSearchRequestConversationalSearchSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswer: This +// field specifies the current user answer during the conversational search. +// This can be either user selected from suggested answers or user input plain +// text. +type GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswer struct { + // SelectedAnswer: This field specifies the selected attributes during the + // conversational search. This should be a subset of + // ConversationalSearchResult.suggested_answers. + SelectedAnswer *GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer `json:"selectedAnswer,omitempty"` + // TextAnswer: This field specifies the incremental input text from the user + // during the conversational search. + TextAnswer string `json:"textAnswer,omitempty"` + // ForceSendFields is a list of field names (e.g. "SelectedAnswer") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SelectedAnswer") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelecte +// dAnswer: This field specifies the selected answers during the conversational +// search. +type GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer struct { + // ProductAttributeValue: This field specifies the selected answer which is a + // attribute key-value. + ProductAttributeValue *GoogleCloudRetailV2betaProductAttributeValue `json:"productAttributeValue,omitempty"` + // ProductAttributeValues: This field is deprecated and should not be set. + ProductAttributeValues []*GoogleCloudRetailV2betaProductAttributeValue `json:"productAttributeValues,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeValue") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaSearchRequestConversationalSearchSpecUserAnswerSelectedAnswer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec: The specifications of // dynamically generated facets. type GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec struct { @@ -7537,6 +7688,35 @@ func (s GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaSearchRequestTileNavigationSpec: This field specifies +// tile navigation related parameters. +type GoogleCloudRetailV2betaSearchRequestTileNavigationSpec struct { + // AppliedTiles: This field specifies the tiles which are already clicked in + // client side. NOTE: This field is not being used for filtering search + // products. Client side should also put all the applied tiles in + // SearchRequest.filter. + AppliedTiles []*GoogleCloudRetailV2betaTile `json:"appliedTiles,omitempty"` + // TileNavigationRequested: This field specifies whether the customer would + // like to request tile navigation. + TileNavigationRequested bool `json:"tileNavigationRequested,omitempty"` + // ForceSendFields is a list of field names (e.g. "AppliedTiles") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AppliedTiles") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaSearchRequestTileNavigationSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaSearchRequestTileNavigationSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaSearchResponse: Response message for // SearchService.Search method. type GoogleCloudRetailV2betaSearchResponse struct { @@ -7547,6 +7727,10 @@ type GoogleCloudRetailV2betaSearchResponse struct { // UserEvent logs resulting from this search, which enables accurate // attribution of search model performance. AttributionToken string `json:"attributionToken,omitempty"` + // ConversationalSearchResult: This field specifies all related information + // that is needed on client side for UI rendering of conversational retail + // search. + ConversationalSearchResult *GoogleCloudRetailV2betaSearchResponseConversationalSearchResult `json:"conversationalSearchResult,omitempty"` // CorrectedQuery: Contains the spell corrected query, if found. If the spell // correction type is AUTOMATIC, then the search results are based on // corrected_query. Otherwise the original query is used for search. @@ -7572,6 +7756,9 @@ type GoogleCloudRetailV2betaSearchResponse struct { RedirectUri string `json:"redirectUri,omitempty"` // Results: A list of matched items. The order represents the ranking. Results []*GoogleCloudRetailV2betaSearchResponseSearchResult `json:"results,omitempty"` + // TileNavigationResult: This field specifies all related information for tile + // navigation that will be used in client side. + TileNavigationResult *GoogleCloudRetailV2betaSearchResponseTileNavigationResult `json:"tileNavigationResult,omitempty"` // TotalSize: The estimated total count of matched items irrespective of // pagination. The count of results returned by pagination may be less than the // total_size that matches. @@ -7597,6 +7784,104 @@ func (s GoogleCloudRetailV2betaSearchResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaSearchResponseConversationalSearchResult: This field +// specifies all related information that is needed on client side for UI +// rendering of conversational retail search. +type GoogleCloudRetailV2betaSearchResponseConversationalSearchResult struct { + // AdditionalFilter: This is the incremental additional filters implied from + // the current user answer. User should add the suggested addition filters to + // the previous SearchRequest.filter, and use the merged filter in the follow + // up search request. + AdditionalFilter *GoogleCloudRetailV2betaSearchResponseConversationalSearchResultAdditionalFilter `json:"additionalFilter,omitempty"` + // AdditionalFilters: This field is deprecated but will be kept for backward + // compatibility. There is expected to have only one additional filter and the + // value will be the same to the same as field `additional_filter`. + AdditionalFilters []*GoogleCloudRetailV2betaSearchResponseConversationalSearchResultAdditionalFilter `json:"additionalFilters,omitempty"` + // ConversationId: Conversation UUID. This field will be stored in client side + // storage to maintain the conversation session with server and will be used + // for next search request's + // SearchRequest.ConversationalSearchSpec.conversation_id to restore + // conversation state in server. + ConversationId string `json:"conversationId,omitempty"` + // FollowupQuestion: The follow-up question. e.g., `What is the color?` + FollowupQuestion string `json:"followupQuestion,omitempty"` + // RefinedQuery: The current refined query for the conversational search. This + // field will be used in customer UI that the query in the search bar should be + // replaced with the refined query. For example, if SearchRequest.query is + // `dress` and next + // SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer is `red + // color`, which does not match any product attribute value filters, the + // refined query will be `dress, red color`. + RefinedQuery string `json:"refinedQuery,omitempty"` + // SuggestedAnswers: The answer options provided to client for the follow-up + // question. + SuggestedAnswers []*GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswer `json:"suggestedAnswers,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalFilter") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdditionalFilter") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaSearchResponseConversationalSearchResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaSearchResponseConversationalSearchResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaSearchResponseConversationalSearchResultAdditionalFilt +// er: Additional filter that client side need to apply. +type GoogleCloudRetailV2betaSearchResponseConversationalSearchResultAdditionalFilter struct { + // ProductAttributeValue: Product attribute value, including an attribute key + // and an attribute value. Other types can be added here in the future. + ProductAttributeValue *GoogleCloudRetailV2betaProductAttributeValue `json:"productAttributeValue,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeValue") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaSearchResponseConversationalSearchResultAdditionalFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaSearchResponseConversationalSearchResultAdditionalFilter + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswe +// r: Suggested answers to the follow-up question. +type GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswer struct { + // ProductAttributeValue: Product attribute value, including an attribute key + // and an attribute value. Other types can be added here in the future. + ProductAttributeValue *GoogleCloudRetailV2betaProductAttributeValue `json:"productAttributeValue,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeValue") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeValue") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaSearchResponseConversationalSearchResultSuggestedAnswer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaSearchResponseFacet: A facet result. type GoogleCloudRetailV2betaSearchResponseFacet struct { // DynamicFacet: Whether the facet is dynamically generated. @@ -7765,6 +8050,31 @@ func (s GoogleCloudRetailV2betaSearchResponseSearchResult) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaSearchResponseTileNavigationResult: This field +// specifies all related information for tile navigation that will be used in +// client side. +type GoogleCloudRetailV2betaSearchResponseTileNavigationResult struct { + // Tiles: The current tiles that are used for tile navigation, sorted by + // engagement. + Tiles []*GoogleCloudRetailV2betaTile `json:"tiles,omitempty"` + // ForceSendFields is a list of field names (e.g. "Tiles") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Tiles") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaSearchResponseTileNavigationResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaSearchResponseTileNavigationResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaServingConfig: Configures metadata that is used to // generate serving time results (e.g. search results or recommendation // predictions). @@ -8025,6 +8335,34 @@ func (s GoogleCloudRetailV2betaSetInventoryRequest) MarshalJSON() ([]byte, error type GoogleCloudRetailV2betaSetInventoryResponse struct { } +// GoogleCloudRetailV2betaTile: This field specifies the tile information +// including an attribute key, attribute value. More fields will be added in +// the future, eg: product id or product counts, etc. +type GoogleCloudRetailV2betaTile struct { + // ProductAttributeInterval: The product attribute key-numeric interval. + ProductAttributeInterval *GoogleCloudRetailV2betaProductAttributeInterval `json:"productAttributeInterval,omitempty"` + // ProductAttributeValue: The product attribute key-value. + ProductAttributeValue *GoogleCloudRetailV2betaProductAttributeValue `json:"productAttributeValue,omitempty"` + // RepresentativeProductId: The representative product id for this tile. + RepresentativeProductId string `json:"representativeProductId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProductAttributeInterval") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProductAttributeInterval") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaTile) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaTile + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaTuneModelMetadata: Metadata associated with a tune // operation. type GoogleCloudRetailV2betaTuneModelMetadata struct { @@ -8589,7 +8927,7 @@ func (c *ProjectsGetAlertConfigCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.getAlertConfig" call. @@ -8700,7 +9038,7 @@ func (c *ProjectsUpdateAlertConfigCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.updateAlertConfig" call. @@ -8897,7 +9235,7 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.completeQuery" call. @@ -9002,7 +9340,7 @@ func (c *ProjectsLocationsCatalogsExportAnalyticsMetricsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.exportAnalyticsMetrics" call. @@ -9112,7 +9450,7 @@ func (c *ProjectsLocationsCatalogsGetAttributesConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.getAttributesConfig" call. @@ -9222,7 +9560,7 @@ func (c *ProjectsLocationsCatalogsGetCompletionConfigCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.getCompletionConfig" call. @@ -9332,7 +9670,7 @@ func (c *ProjectsLocationsCatalogsGetDefaultBranchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.getDefaultBranch" call. @@ -9463,7 +9801,7 @@ func (c *ProjectsLocationsCatalogsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.list" call. @@ -9594,7 +9932,7 @@ func (c *ProjectsLocationsCatalogsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.patch" call. @@ -9717,7 +10055,7 @@ func (c *ProjectsLocationsCatalogsSetDefaultBranchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "catalog": c.catalog, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.setDefaultBranch" call. @@ -9835,7 +10173,7 @@ func (c *ProjectsLocationsCatalogsUpdateAttributesConfigCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.updateAttributesConfig" call. @@ -9948,7 +10286,7 @@ func (c *ProjectsLocationsCatalogsUpdateCompletionConfigCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.updateCompletionConfig" call. @@ -10054,7 +10392,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) doReq googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute" call. @@ -10160,7 +10498,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigBatchRemoveCatalogAttributesCa googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.batchRemoveCatalogAttributes" call. @@ -10266,7 +10604,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigRemoveCatalogAttributeCall) do googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.removeCatalogAttribute" call. @@ -10373,7 +10711,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigReplaceCatalogAttributeCall) d googleapi.Expand(req.URL, map[string]string{ "attributesConfig": c.attributesConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.attributesConfig.replaceCatalogAttribute" call. @@ -10483,7 +10821,7 @@ func (c *ProjectsLocationsCatalogsBranchesOperationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.operations.get" call. @@ -10603,7 +10941,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall) doRe googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces" call. @@ -10722,7 +11060,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddLocalInventoriesCall) doReq googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.addLocalInventories" call. @@ -10839,7 +11177,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.create" call. @@ -10944,7 +11282,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.delete" call. @@ -11049,7 +11387,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsExportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.export" call. @@ -11162,7 +11500,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.get" call. @@ -11269,7 +11607,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsImportCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.import" call. @@ -11430,7 +11768,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.list" call. @@ -11576,7 +11914,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.patch" call. @@ -11688,7 +12026,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsPurgeCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.purge" call. @@ -11808,7 +12146,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall) d googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces" call. @@ -11925,7 +12263,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveLocalInventoriesCall) do googleapi.Expand(req.URL, map[string]string{ "product": c.product, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.removeLocalInventories" call. @@ -12050,7 +12388,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsSetInventoryCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.branches.products.setInventory" call. @@ -12158,7 +12496,7 @@ func (c *ProjectsLocationsCatalogsCompletionDataImportCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.completionData.import" call. @@ -12271,7 +12609,7 @@ func (c *ProjectsLocationsCatalogsControlsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.create" call. @@ -12370,7 +12708,7 @@ func (c *ProjectsLocationsCatalogsControlsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.delete" call. @@ -12480,7 +12818,7 @@ func (c *ProjectsLocationsCatalogsControlsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.get" call. @@ -12613,7 +12951,7 @@ func (c *ProjectsLocationsCatalogsControlsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.list" call. @@ -12747,7 +13085,7 @@ func (c *ProjectsLocationsCatalogsControlsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.controls.patch" call. @@ -12857,7 +13195,7 @@ func (c *ProjectsLocationsCatalogsModelsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.create" call. @@ -12955,7 +13293,7 @@ func (c *ProjectsLocationsCatalogsModelsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.delete" call. @@ -13065,7 +13403,7 @@ func (c *ProjectsLocationsCatalogsModelsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.get" call. @@ -13189,7 +13527,7 @@ func (c *ProjectsLocationsCatalogsModelsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.list" call. @@ -13325,7 +13663,7 @@ func (c *ProjectsLocationsCatalogsModelsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.patch" call. @@ -13429,7 +13767,7 @@ func (c *ProjectsLocationsCatalogsModelsPauseCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.pause" call. @@ -13533,7 +13871,7 @@ func (c *ProjectsLocationsCatalogsModelsResumeCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.resume" call. @@ -13637,7 +13975,7 @@ func (c *ProjectsLocationsCatalogsModelsTuneCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.models.tune" call. @@ -13747,7 +14085,7 @@ func (c *ProjectsLocationsCatalogsOperationsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.operations.get" call. @@ -13876,7 +14214,7 @@ func (c *ProjectsLocationsCatalogsOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.operations.list" call. @@ -14010,7 +14348,7 @@ func (c *ProjectsLocationsCatalogsPlacementsPredictCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.placements.predict" call. @@ -14119,7 +14457,7 @@ func (c *ProjectsLocationsCatalogsPlacementsSearchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.placements.search" call. @@ -14250,7 +14588,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsAddControlCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.addControl" call. @@ -14363,7 +14701,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.create" call. @@ -14462,7 +14800,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.delete" call. @@ -14573,7 +14911,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.get" call. @@ -14698,7 +15036,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.list" call. @@ -14830,7 +15168,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.patch" call. @@ -14943,7 +15281,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsPredictCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.predict" call. @@ -15049,7 +15387,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsRemoveControlCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "servingConfig": c.servingConfig, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.removeControl" call. @@ -15158,7 +15496,7 @@ func (c *ProjectsLocationsCatalogsServingConfigsSearchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "placement": c.placement, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.servingConfigs.search" call. @@ -15332,7 +15670,7 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.collect" call. @@ -15436,7 +15774,7 @@ func (c *ProjectsLocationsCatalogsUserEventsExportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.export" call. @@ -15542,7 +15880,7 @@ func (c *ProjectsLocationsCatalogsUserEventsImportCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.import" call. @@ -15649,7 +15987,7 @@ func (c *ProjectsLocationsCatalogsUserEventsPurgeCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.purge" call. @@ -15759,7 +16097,7 @@ func (c *ProjectsLocationsCatalogsUserEventsRejoinCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.rejoin" call. @@ -15872,7 +16210,7 @@ func (c *ProjectsLocationsCatalogsUserEventsWriteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.catalogs.userEvents.write" call. @@ -15982,7 +16320,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.operations.get" call. @@ -16111,7 +16449,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.locations.operations.list" call. @@ -16242,7 +16580,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.operations.get" call. @@ -16371,7 +16709,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "retail.projects.operations.list" call. diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index a88c7e48b9c..56a0e142982 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -5473,7 +5473,7 @@ func (c *NamespacesAuthorizeddomainsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.authorizeddomains.list" call. @@ -5603,7 +5603,7 @@ func (c *NamespacesConfigurationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.configurations.get" call. @@ -5760,7 +5760,7 @@ func (c *NamespacesConfigurationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.configurations.list" call. @@ -5873,7 +5873,7 @@ func (c *NamespacesDomainmappingsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.domainmappings.create" call. @@ -6002,7 +6002,7 @@ func (c *NamespacesDomainmappingsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.domainmappings.delete" call. @@ -6111,7 +6111,7 @@ func (c *NamespacesDomainmappingsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.domainmappings.get" call. @@ -6275,7 +6275,7 @@ func (c *NamespacesDomainmappingsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.domainmappings.list" call. @@ -6379,7 +6379,7 @@ func (c *NamespacesExecutionsCancelCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.executions.cancel" call. @@ -6497,7 +6497,7 @@ func (c *NamespacesExecutionsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.executions.delete" call. @@ -6606,7 +6606,7 @@ func (c *NamespacesExecutionsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.executions.get" call. @@ -6764,7 +6764,7 @@ func (c *NamespacesExecutionsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.executions.list" call. @@ -6868,7 +6868,7 @@ func (c *NamespacesJobsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.jobs.create" call. @@ -6989,7 +6989,7 @@ func (c *NamespacesJobsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.jobs.delete" call. @@ -7098,7 +7098,7 @@ func (c *NamespacesJobsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.jobs.get" call. @@ -7256,7 +7256,7 @@ func (c *NamespacesJobsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.jobs.list" call. @@ -7363,7 +7363,7 @@ func (c *NamespacesJobsReplaceJobCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.jobs.replaceJob" call. @@ -7466,7 +7466,7 @@ func (c *NamespacesJobsRunCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.jobs.run" call. @@ -7593,7 +7593,7 @@ func (c *NamespacesRevisionsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.revisions.delete" call. @@ -7702,7 +7702,7 @@ func (c *NamespacesRevisionsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.revisions.get" call. @@ -7865,7 +7865,7 @@ func (c *NamespacesRevisionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.revisions.list" call. @@ -7975,7 +7975,7 @@ func (c *NamespacesRoutesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.routes.get" call. @@ -8138,7 +8138,7 @@ func (c *NamespacesRoutesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.routes.list" call. @@ -8255,7 +8255,7 @@ func (c *NamespacesServicesCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.services.create" call. @@ -8386,7 +8386,7 @@ func (c *NamespacesServicesDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.services.delete" call. @@ -8499,7 +8499,7 @@ func (c *NamespacesServicesGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.services.get" call. @@ -8662,7 +8662,7 @@ func (c *NamespacesServicesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.services.list" call. @@ -8782,7 +8782,7 @@ func (c *NamespacesServicesReplaceServiceCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.services.replaceService" call. @@ -8891,7 +8891,7 @@ func (c *NamespacesTasksGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.tasks.get" call. @@ -9061,7 +9061,7 @@ func (c *NamespacesTasksListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.tasks.list" call. @@ -9184,7 +9184,7 @@ func (c *ProjectsAuthorizeddomainsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.authorizeddomains.list" call. @@ -9337,7 +9337,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.list" call. @@ -9481,7 +9481,7 @@ func (c *ProjectsLocationsAuthorizeddomainsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.authorizeddomains.list" call. @@ -9611,7 +9611,7 @@ func (c *ProjectsLocationsConfigurationsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.configurations.get" call. @@ -9768,7 +9768,7 @@ func (c *ProjectsLocationsConfigurationsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.configurations.list" call. @@ -9881,7 +9881,7 @@ func (c *ProjectsLocationsDomainmappingsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.domainmappings.create" call. @@ -10010,7 +10010,7 @@ func (c *ProjectsLocationsDomainmappingsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.domainmappings.delete" call. @@ -10119,7 +10119,7 @@ func (c *ProjectsLocationsDomainmappingsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.domainmappings.get" call. @@ -10283,7 +10283,7 @@ func (c *ProjectsLocationsDomainmappingsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.domainmappings.list" call. @@ -10411,7 +10411,7 @@ func (c *ProjectsLocationsJobsGetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.getIamPolicy" call. @@ -10515,7 +10515,7 @@ func (c *ProjectsLocationsJobsSetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.setIamPolicy" call. @@ -10620,7 +10620,7 @@ func (c *ProjectsLocationsJobsTestIamPermissionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.testIamPermissions" call. @@ -10719,7 +10719,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.operations.delete" call. @@ -10828,7 +10828,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.operations.get" call. @@ -10962,7 +10962,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.operations.list" call. @@ -11093,7 +11093,7 @@ func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.operations.wait" call. @@ -11221,7 +11221,7 @@ func (c *ProjectsLocationsRevisionsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.revisions.delete" call. @@ -11330,7 +11330,7 @@ func (c *ProjectsLocationsRevisionsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.revisions.get" call. @@ -11493,7 +11493,7 @@ func (c *ProjectsLocationsRevisionsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.revisions.list" call. @@ -11603,7 +11603,7 @@ func (c *ProjectsLocationsRoutesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.routes.get" call. @@ -11766,7 +11766,7 @@ func (c *ProjectsLocationsRoutesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.routes.list" call. @@ -11883,7 +11883,7 @@ func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.create" call. @@ -12014,7 +12014,7 @@ func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.delete" call. @@ -12127,7 +12127,7 @@ func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.get" call. @@ -12255,7 +12255,7 @@ func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.getIamPolicy" call. @@ -12418,7 +12418,7 @@ func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.list" call. @@ -12538,7 +12538,7 @@ func (c *ProjectsLocationsServicesReplaceServiceCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.replaceService" call. @@ -12642,7 +12642,7 @@ func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.setIamPolicy" call. @@ -12747,7 +12747,7 @@ func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.testIamPermissions" call. diff --git a/run/v1alpha1/run-gen.go b/run/v1alpha1/run-gen.go index 32cd79e05c9..47da0b8fa5a 100644 --- a/run/v1alpha1/run-gen.go +++ b/run/v1alpha1/run-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/run/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // runService, err := run.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // runService, err := run.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // runService, err := run.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package run // import "google.golang.org/api/run/v1alpha1" import ( @@ -71,17 +84,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "run:v1alpha1" const apiName = "run" const apiVersion = "v1alpha1" const basePath = "https://run.googleapis.com/" +const basePathTemplate = "https://run.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://run.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -93,7 +108,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -158,45 +175,34 @@ type NamespacesJobsService struct { s *Service } -// ConfigMapEnvSource: Not supported by Cloud Run ConfigMapEnvSource -// selects a ConfigMap to populate the environment variables with. The -// contents of the target ConfigMap's Data field will represent the -// key-value pairs as environment variables. +// ConfigMapEnvSource: Not supported by Cloud Run ConfigMapEnvSource selects a +// ConfigMap to populate the environment variables with. The contents of the +// target ConfigMap's Data field will represent the key-value pairs as +// environment variables. type ConfigMapEnvSource struct { - // LocalObjectReference: This field should not be used directly as it is - // meant to be inlined directly into the message. Use the "name" field - // instead. + // LocalObjectReference: This field should not be used directly as it is meant + // to be inlined directly into the message. Use the "name" field instead. LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"` - // Name: The ConfigMap to select from. Name string `json:"name,omitempty"` - // Optional: (Optional) Specify whether the ConfigMap must be defined Optional bool `json:"optional,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "LocalObjectReference") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "LocalObjectReference") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LocalObjectReference") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LocalObjectReference") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConfigMapEnvSource) MarshalJSON() ([]byte, error) { +func (s ConfigMapEnvSource) MarshalJSON() ([]byte, error) { type NoMethod ConfigMapEnvSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ConfigMapKeySelector: Not supported by Cloud Run Selects a key from a @@ -204,398 +210,310 @@ func (s *ConfigMapEnvSource) MarshalJSON() ([]byte, error) { type ConfigMapKeySelector struct { // Key: The key to select. Key string `json:"key,omitempty"` - - // LocalObjectReference: This field should not be used directly as it is - // meant to be inlined directly into the message. Use the "name" field - // instead. + // LocalObjectReference: This field should not be used directly as it is meant + // to be inlined directly into the message. Use the "name" field instead. LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"` - // Name: The ConfigMap to select from. Name string `json:"name,omitempty"` - // Optional: (Optional) Specify whether the ConfigMap or its key must be // defined Optional bool `json:"optional,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConfigMapKeySelector) MarshalJSON() ([]byte, error) { +func (s ConfigMapKeySelector) MarshalJSON() ([]byte, error) { type NoMethod ConfigMapKeySelector - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConfigMapVolumeSource: Not supported by Cloud Run Adapts a ConfigMap -// into a volume. The contents of the target ConfigMap's Data field will -// be presented in a volume as files using the keys in the Data field as -// the file names, unless the items element is populated with specific -// mappings of keys to paths. +// ConfigMapVolumeSource: Not supported by Cloud Run Adapts a ConfigMap into a +// volume. The contents of the target ConfigMap's Data field will be presented +// in a volume as files using the keys in the Data field as the file names, +// unless the items element is populated with specific mappings of keys to +// paths. type ConfigMapVolumeSource struct { // DefaultMode: (Optional) Integer representation of mode bits to use on - // created files by default. Must be a value between 01 and 0777 - // (octal). If 0 or not set, it will default to 0644. Directories within - // the path are not affected by this setting. Notes * Internally, a - // umask of 0222 will be applied to any non-zero value. * This is an - // integer representation of the mode bits. So, the octal integer value - // should look exactly as the chmod numeric notation with a leading - // zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or - // 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 - // (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or - // 493 (base-10). * This might be in conflict with other options that - // affect the file mode, like fsGroup, and the result can be other mode + // created files by default. Must be a value between 01 and 0777 (octal). If 0 + // or not set, it will default to 0644. Directories within the path are not + // affected by this setting. Notes * Internally, a umask of 0222 will be + // applied to any non-zero value. * This is an integer representation of the + // mode bits. So, the octal integer value should look exactly as the chmod + // numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), + // set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 + // (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 + // (octal) or 493 (base-10). * This might be in conflict with other options + // that affect the file mode, like fsGroup, and the result can be other mode // bits set. DefaultMode int64 `json:"defaultMode,omitempty"` - - // Items: (Optional) If unspecified, each key-value pair in the Data - // field of the referenced Secret will be projected into the volume as a - // file whose name is the key and content is the value. If specified, - // the listed keys will be projected into the specified paths, and - // unlisted keys will not be present. If a key is specified that is not - // present in the Secret, the volume setup will error unless it is - // marked optional. + // Items: (Optional) If unspecified, each key-value pair in the Data field of + // the referenced Secret will be projected into the volume as a file whose name + // is the key and content is the value. If specified, the listed keys will be + // projected into the specified paths, and unlisted keys will not be present. + // If a key is specified that is not present in the Secret, the volume setup + // will error unless it is marked optional. Items []*KeyToPath `json:"items,omitempty"` - // Name: Name of the config. Name string `json:"name,omitempty"` - - // Optional: (Optional) Specify whether the Secret or its keys must be - // defined. + // Optional: (Optional) Specify whether the Secret or its keys must be defined. Optional bool `json:"optional,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultMode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultMode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultMode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ConfigMapVolumeSource) MarshalJSON() ([]byte, error) { +func (s ConfigMapVolumeSource) MarshalJSON() ([]byte, error) { type NoMethod ConfigMapVolumeSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Container: A single application container. This specifies both the -// container to run, the command to run in the container and the -// arguments to supply to it. Note that additional arguments may be -// supplied by the system to the container at runtime. +// Container: A single application container. This specifies both the container +// to run, the command to run in the container and the arguments to supply to +// it. Note that additional arguments may be supplied by the system to the +// container at runtime. type Container struct { - // Args: (Optional) Arguments to the entrypoint. The docker image's CMD - // is used if this is not provided. Variable references $(VAR_NAME) are - // expanded using the container's environment. If a variable cannot be - // resolved, the reference in the input string will be unchanged. The - // $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). - // Escaped references will never be expanded, regardless of whether the - // variable exists or not. More info: + // Args: (Optional) Arguments to the entrypoint. The docker image's CMD is used + // if this is not provided. Variable references $(VAR_NAME) are expanded using + // the container's environment. If a variable cannot be resolved, the reference + // in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped + // with a double $$, ie: $$(VAR_NAME). Escaped references will never be + // expanded, regardless of whether the variable exists or not. More info: // https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - Args []string `json:"args,omitempty"` - + Args []string `json:"args,omitempty"` Command []string `json:"command,omitempty"` - - // Env: (Optional) List of environment variables to set in the - // container. + // Env: (Optional) List of environment variables to set in the container. Env []*EnvVar `json:"env,omitempty"` - - // EnvFrom: (Optional) List of sources to populate environment variables - // in the container. The keys defined within a source must be a - // C_IDENTIFIER. All invalid keys will be reported as an event when the - // container is starting. When a key exists in multiple sources, the - // value associated with the last source will take precedence. Values - // defined by an Env with a duplicate key will take precedence. Cannot - // be updated. + // EnvFrom: (Optional) List of sources to populate environment variables in the + // container. The keys defined within a source must be a C_IDENTIFIER. All + // invalid keys will be reported as an event when the container is starting. + // When a key exists in multiple sources, the value associated with the last + // source will take precedence. Values defined by an Env with a duplicate key + // will take precedence. Cannot be updated. EnvFrom []*EnvFromSource `json:"envFrom,omitempty"` - - // Image: Only supports containers from Google Container Registry or - // Artifact Registry URL of the Container image. More info: + // Image: Only supports containers from Google Container Registry or Artifact + // Registry URL of the Container image. More info: // https://kubernetes.io/docs/concepts/containers/images Image string `json:"image,omitempty"` - // ImagePullPolicy: (Optional) Image pull policy. One of Always, Never, // IfNotPresent. Defaults to Always if :latest tag is specified, or // IfNotPresent otherwise. More info: // https://kubernetes.io/docs/concepts/containers/images#updating-images ImagePullPolicy string `json:"imagePullPolicy,omitempty"` - - // LivenessProbe: (Optional) Periodic probe of container liveness. - // Container will be restarted if the probe fails. More info: + // LivenessProbe: (Optional) Periodic probe of container liveness. Container + // will be restarted if the probe fails. More info: // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes LivenessProbe *Probe `json:"livenessProbe,omitempty"` - - // Name: (Optional) Name of the container specified as a DNS_LABEL. - // Currently unused in Cloud Run. More info: + // Name: (Optional) Name of the container specified as a DNS_LABEL. Currently + // unused in Cloud Run. More info: // https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names Name string `json:"name,omitempty"` - - // Ports: (Optional) List of ports to expose from the container. Only a - // single port can be specified. The specified ports must be listening - // on all interfaces (0.0.0.0) within the container to be accessible. If - // omitted, a port number will be chosen and passed to the container - // through the PORT environment variable for the container to listen on. + // Ports: (Optional) List of ports to expose from the container. Only a single + // port can be specified. The specified ports must be listening on all + // interfaces (0.0.0.0) within the container to be accessible. If omitted, a + // port number will be chosen and passed to the container through the PORT + // environment variable for the container to listen on. Ports []*ContainerPort `json:"ports,omitempty"` - - // ReadinessProbe: (Optional) Periodic probe of container service - // readiness. Container will be removed from service endpoints if the - // probe fails. More info: + // ReadinessProbe: (Optional) Periodic probe of container service readiness. + // Container will be removed from service endpoints if the probe fails. More + // info: // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes ReadinessProbe *Probe `json:"readinessProbe,omitempty"` - - // Resources: (Optional) Compute Resources required by this container. - // More info: + // Resources: (Optional) Compute Resources required by this container. More + // info: // https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Resources *ResourceRequirements `json:"resources,omitempty"` - - // SecurityContext: (Optional) Security options the pod should run with. - // More info: - // https://kubernetes.io/docs/concepts/policy/security-context/ More + // SecurityContext: (Optional) Security options the pod should run with. More + // info: https://kubernetes.io/docs/concepts/policy/security-context/ More // info: // https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ SecurityContext *SecurityContext `json:"securityContext,omitempty"` - - // StartupProbe: (Optional) Startup probe of application within the - // container. All other probes are disabled if a startup probe is - // provided, until it succeeds. Container will not be added to service - // endpoints if the probe fails. More info: + // StartupProbe: (Optional) Startup probe of application within the container. + // All other probes are disabled if a startup probe is provided, until it + // succeeds. Container will not be added to service endpoints if the probe + // fails. More info: // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes StartupProbe *Probe `json:"startupProbe,omitempty"` - - // TerminationMessagePath: (Optional) Path at which the file to which - // the container's termination message will be written is mounted into - // the container's filesystem. Message written is intended to be brief - // final status, such as an assertion failure message. Will be truncated - // by the node if greater than 4096 bytes. The total message length - // across all containers will be limited to 12kb. Defaults to - // /dev/termination-log. + // TerminationMessagePath: (Optional) Path at which the file to which the + // container's termination message will be written is mounted into the + // container's filesystem. Message written is intended to be brief final + // status, such as an assertion failure message. Will be truncated by the node + // if greater than 4096 bytes. The total message length across all containers + // will be limited to 12kb. Defaults to /dev/termination-log. TerminationMessagePath string `json:"terminationMessagePath,omitempty"` - - // TerminationMessagePolicy: (Optional) Indicate how the termination - // message should be populated. File will use the contents of - // terminationMessagePath to populate the container status message on - // both success and failure. FallbackToLogsOnError will use the last - // chunk of container log output if the termination message file is - // empty and the container exited with an error. The log output is - // limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to - // File. Cannot be updated. + // TerminationMessagePolicy: (Optional) Indicate how the termination message + // should be populated. File will use the contents of terminationMessagePath to + // populate the container status message on both success and failure. + // FallbackToLogsOnError will use the last chunk of container log output if the + // termination message file is empty and the container exited with an error. + // The log output is limited to 2048 bytes or 80 lines, whichever is smaller. + // Defaults to File. Cannot be updated. TerminationMessagePolicy string `json:"terminationMessagePolicy,omitempty"` - - // VolumeMounts: (Optional) Volume to mount into the container's - // filesystem. Only supports SecretVolumeSources. Pod volumes to mount - // into the container's filesystem. + // VolumeMounts: (Optional) Volume to mount into the container's filesystem. + // Only supports SecretVolumeSources. Pod volumes to mount into the container's + // filesystem. VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"` - - // WorkingDir: (Optional) Container's working directory. If not - // specified, the container runtime's default will be used, which might - // be configured in the container image. + // WorkingDir: (Optional) Container's working directory. If not specified, the + // container runtime's default will be used, which might be configured in the + // container image. WorkingDir string `json:"workingDir,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Args") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Args") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Args") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Args") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Container) MarshalJSON() ([]byte, error) { +func (s Container) MarshalJSON() ([]byte, error) { type NoMethod Container - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ContainerPort: ContainerPort represents a network port in a single // container. type ContainerPort struct { - // ContainerPort: (Optional) Port number the container listens on. This - // must be a valid port number, 0 < x < 65536. + // ContainerPort: (Optional) Port number the container listens on. This must be + // a valid port number, 0 < x < 65536. ContainerPort int64 `json:"containerPort,omitempty"` - // Name: (Optional) If specified, used to specify which protocol to use. // Allowed values are "http1" and "h2c". Name string `json:"name,omitempty"` - - // Protocol: (Optional) Protocol for port. Must be "TCP". Defaults to - // "TCP". + // Protocol: (Optional) Protocol for port. Must be "TCP". Defaults to "TCP". Protocol string `json:"protocol,omitempty"` - // ForceSendFields is a list of field names (e.g. "ContainerPort") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContainerPort") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ContainerPort") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContainerPort) MarshalJSON() ([]byte, error) { +func (s ContainerPort) MarshalJSON() ([]byte, error) { type NoMethod ContainerPort - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// EnvFromSource: Not supported by Cloud Run EnvFromSource represents -// the source of a set of ConfigMaps +// EnvFromSource: Not supported by Cloud Run EnvFromSource represents the +// source of a set of ConfigMaps type EnvFromSource struct { // ConfigMapRef: (Optional) The ConfigMap to select from ConfigMapRef *ConfigMapEnvSource `json:"configMapRef,omitempty"` - - // Prefix: (Optional) An optional identifier to prepend to each key in - // the ConfigMap. Must be a C_IDENTIFIER. + // Prefix: (Optional) An optional identifier to prepend to each key in the + // ConfigMap. Must be a C_IDENTIFIER. Prefix string `json:"prefix,omitempty"` - // SecretRef: (Optional) The Secret to select from SecretRef *SecretEnvSource `json:"secretRef,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfigMapRef") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConfigMapRef") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConfigMapRef") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnvFromSource) MarshalJSON() ([]byte, error) { +func (s EnvFromSource) MarshalJSON() ([]byte, error) { type NoMethod EnvFromSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnvVar: EnvVar represents an environment variable present in a -// Container. +// EnvVar: EnvVar represents an environment variable present in a Container. type EnvVar struct { // Name: Name of the environment variable. Must be a C_IDENTIFIER. Name string `json:"name,omitempty"` - - // Value: (Optional) Variable references $(VAR_NAME) are expanded using - // the previous defined environment variables in the container and any - // route environment variables. If a variable cannot be resolved, the - // reference in the input string will be unchanged. The $(VAR_NAME) - // syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped - // references will never be expanded, regardless of whether the variable - // exists or not. Defaults to "". + // Value: (Optional) Variable references $(VAR_NAME) are expanded using the + // previous defined environment variables in the container and any route + // environment variables. If a variable cannot be resolved, the reference in + // the input string will be unchanged. The $(VAR_NAME) syntax can be escaped + // with a double $$, ie: $$(VAR_NAME). Escaped references will never be + // expanded, regardless of whether the variable exists or not. Defaults to "". Value string `json:"value,omitempty"` - - // ValueFrom: (Optional) Source for the environment variable's value. - // Only supports secret_key_ref. Source for the environment variable's - // value. Cannot be used if value is not empty. + // ValueFrom: (Optional) Source for the environment variable's value. Only + // supports secret_key_ref. Source for the environment variable's value. Cannot + // be used if value is not empty. ValueFrom *EnvVarSource `json:"valueFrom,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnvVar) MarshalJSON() ([]byte, error) { +func (s EnvVar) MarshalJSON() ([]byte, error) { type NoMethod EnvVar - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnvVarSource: EnvVarSource represents a source for the value of an -// EnvVar. +// EnvVarSource: EnvVarSource represents a source for the value of an EnvVar. type EnvVarSource struct { - // ConfigMapKeyRef: (Optional) Not supported by Cloud Run Selects a key - // of a ConfigMap. + // ConfigMapKeyRef: (Optional) Not supported by Cloud Run Selects a key of a + // ConfigMap. ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty"` - - // SecretKeyRef: (Optional) Selects a key (version) of a secret in - // Secret Manager. + // SecretKeyRef: (Optional) Selects a key (version) of a secret in Secret + // Manager. SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfigMapKeyRef") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConfigMapKeyRef") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConfigMapKeyRef") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnvVarSource) MarshalJSON() ([]byte, error) { +func (s EnvVarSource) MarshalJSON() ([]byte, error) { type NoMethod EnvVarSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ExecAction: Not supported by Cloud Run ExecAction describes a "run in @@ -603,691 +521,535 @@ func (s *EnvVarSource) MarshalJSON() ([]byte, error) { type ExecAction struct { // Command: (Optional) Command is the command line to execute inside the // container, the working directory for the command is root ('/') in the - // container's filesystem. The command is simply exec'd, it is not run - // inside a shell, so traditional shell instructions ('|', etc) won't - // work. To use a shell, you need to explicitly call out to that shell. - // Exit status of 0 is treated as live/healthy and non-zero is - // unhealthy. + // container's filesystem. The command is simply exec'd, it is not run inside a + // shell, so traditional shell instructions ('|', etc) won't work. To use a + // shell, you need to explicitly call out to that shell. Exit status of 0 is + // treated as live/healthy and non-zero is unhealthy. Command []string `json:"command,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Command") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Command") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Command") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Command") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExecAction) MarshalJSON() ([]byte, error) { +func (s ExecAction) MarshalJSON() ([]byte, error) { type NoMethod ExecAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GRPCAction: Not supported by Cloud Run GRPCAction describes an action // involving a GRPC port. type GRPCAction struct { - // Port: Port number of the gRPC service. Number must be in the range 1 - // to 65535. + // Port: Port number of the gRPC service. Number must be in the range 1 to + // 65535. Port int64 `json:"port,omitempty"` - // Service: Service is the name of the service to place in the gRPC // HealthCheckRequest (see - // https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If - // this is not specified, the default behavior is defined by gRPC. + // https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is + // not specified, the default behavior is defined by gRPC. Service string `json:"service,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Port") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Port") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Port") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Port") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GRPCAction) MarshalJSON() ([]byte, error) { +func (s GRPCAction) MarshalJSON() ([]byte, error) { type NoMethod GRPCAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleRpcStatus: The `Status` type defines a logical error model that -// is suitable for different programming environments, including REST -// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// GoogleRpcStatus: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs and RPC +// APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message +// contains three pieces of data: error code, error message, and error details. +// You can find out more about this error model and how to work with it in the +// API Design Guide (https://cloud.google.com/apis/design/errors). type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { +func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { type NoMethod GoogleRpcStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HTTPGetAction: Not supported by Cloud Run HTTPGetAction describes an -// action based on HTTP Get requests. +// HTTPGetAction: Not supported by Cloud Run HTTPGetAction describes an action +// based on HTTP Get requests. type HTTPGetAction struct { // Host: (Optional) Host name to connect to, defaults to the pod IP. You // probably want to set "Host" in httpHeaders instead. Host string `json:"host,omitempty"` - - // HttpHeaders: (Optional) Custom headers to set in the request. HTTP - // allows repeated headers. + // HttpHeaders: (Optional) Custom headers to set in the request. HTTP allows + // repeated headers. HttpHeaders []*HTTPHeader `json:"httpHeaders,omitempty"` - // Path: (Optional) Path to access on the HTTP server. Path string `json:"path,omitempty"` - - // Scheme: (Optional) Scheme to use for connecting to the host. Defaults - // to HTTP. + // Scheme: (Optional) Scheme to use for connecting to the host. Defaults to + // HTTP. Scheme string `json:"scheme,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Host") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Host") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Host") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Host") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HTTPGetAction) MarshalJSON() ([]byte, error) { +func (s HTTPGetAction) MarshalJSON() ([]byte, error) { type NoMethod HTTPGetAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HTTPHeader: Not supported by Cloud Run HTTPHeader describes a custom -// header to be used in HTTP probes +// HTTPHeader: Not supported by Cloud Run HTTPHeader describes a custom header +// to be used in HTTP probes type HTTPHeader struct { // Name: The header field name Name string `json:"name,omitempty"` - // Value: The header field value Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HTTPHeader) MarshalJSON() ([]byte, error) { +func (s HTTPHeader) MarshalJSON() ([]byte, error) { type NoMethod HTTPHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstanceAttemptResult: Result of an instance attempt. type InstanceAttemptResult struct { - // ExitCode: Optional. The exit code of this attempt. This may be unset - // if the container was unable to exit cleanly with a code due to some - // other failure. See status field for possible failure details. + // ExitCode: Optional. The exit code of this attempt. This may be unset if the + // container was unable to exit cleanly with a code due to some other failure. + // See status field for possible failure details. ExitCode int64 `json:"exitCode,omitempty"` - - // Status: Optional. The status of this attempt. If the status code is - // OK, then the attempt succeeded. + // Status: Optional. The status of this attempt. If the status code is OK, then + // the attempt succeeded. Status *GoogleRpcStatus `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExitCode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExitCode") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExitCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceAttemptResult) MarshalJSON() ([]byte, error) { +func (s InstanceAttemptResult) MarshalJSON() ([]byte, error) { type NoMethod InstanceAttemptResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstanceSpec: InstanceSpec is a description of an instance. type InstanceSpec struct { - // ActiveDeadlineSeconds: Optional. Optional duration in seconds the - // instance may be active relative to StartTime before the system will - // actively try to mark it failed and kill associated containers. If set - // to zero, the system will never attempt to kill an instance based on - // time. Otherwise, value must be a positive integer. +optional + // ActiveDeadlineSeconds: Optional. Optional duration in seconds the instance + // may be active relative to StartTime before the system will actively try to + // mark it failed and kill associated containers. If set to zero, the system + // will never attempt to kill an instance based on time. Otherwise, value must + // be a positive integer. +optional ActiveDeadlineSeconds int64 `json:"activeDeadlineSeconds,omitempty,string"` - - // Containers: Optional. List of containers belonging to the instance. - // We disallow a number of fields on this Container. Only a single - // container may be provided. + // Containers: Optional. List of containers belonging to the instance. We + // disallow a number of fields on this Container. Only a single container may + // be provided. Containers []*Container `json:"containers,omitempty"` - // RestartPolicy: Optional. Restart policy for all containers within the // instance. Allowed values are: - OnFailure: Instances will always be - // restarted on failure if the backoffLimit has not been reached. - - // Never: Instances are never restarted and all failures are permanent. - // Cannot be used if backoffLimit is set. +optional + // restarted on failure if the backoffLimit has not been reached. - Never: + // Instances are never restarted and all failures are permanent. Cannot be used + // if backoffLimit is set. +optional RestartPolicy string `json:"restartPolicy,omitempty"` - - // ServiceAccountName: Optional. Email address of the IAM service - // account associated with the instance of a Job. The service account - // represents the identity of the running instance, and determines what - // permissions the instance has. If not provided, the instance will use - // the project's default service account. +optional + // ServiceAccountName: Optional. Email address of the IAM service account + // associated with the instance of a Job. The service account represents the + // identity of the running instance, and determines what permissions the + // instance has. If not provided, the instance will use the project's default + // service account. +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` - - // TerminationGracePeriodSeconds: Optional. Optional duration in seconds - // the instance needs to terminate gracefully. Value must be - // non-negative integer. The value zero indicates delete immediately. - // The grace period is the duration in seconds after the processes - // running in the instance are sent a termination signal and the time - // when the processes are forcibly halted with a kill signal. Set this - // value longer than the expected cleanup time for your process. - // +optional + // TerminationGracePeriodSeconds: Optional. Optional duration in seconds the + // instance needs to terminate gracefully. Value must be non-negative integer. + // The value zero indicates delete immediately. The grace period is the + // duration in seconds after the processes running in the instance are sent a + // termination signal and the time when the processes are forcibly halted with + // a kill signal. Set this value longer than the expected cleanup time for your + // process. +optional TerminationGracePeriodSeconds int64 `json:"terminationGracePeriodSeconds,omitempty,string"` - // Volumes: Optional. List of volumes that can be mounted by containers // belonging to the instance. More info: // https://kubernetes.io/docs/concepts/storage/volumes +optional Volumes []*Volume `json:"volumes,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ActiveDeadlineSeconds") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ActiveDeadlineSeconds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActiveDeadlineSeconds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceSpec) MarshalJSON() ([]byte, error) { +func (s InstanceSpec) MarshalJSON() ([]byte, error) { type NoMethod InstanceSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstanceStatus: Instance represents the status of an instance of a -// Job. +// InstanceStatus: Instance represents the status of an instance of a Job. type InstanceStatus struct { - // CompletionTime: Optional. Represents time when the instance was - // completed. It is not guaranteed to be set in happens-before order - // across separate operations. It is represented in RFC3339 form and is - // in UTC. +optional + // CompletionTime: Optional. Represents time when the instance was completed. + // It is not guaranteed to be set in happens-before order across separate + // operations. It is represented in RFC3339 form and is in UTC. +optional CompletionTime string `json:"completionTime,omitempty"` - - // Failed: Optional. The number of times this instance exited with code - // > 0; +optional + // Failed: Optional. The number of times this instance exited with code > 0; + // +optional Failed int64 `json:"failed,omitempty"` - - // Index: Required. Index of the instance, unique per Job, and beginning - // at 0. + // Index: Required. Index of the instance, unique per Job, and beginning at 0. Index int64 `json:"index,omitempty"` - - // LastAttemptResult: Optional. Result of the last attempt of this - // instance. +optional - LastAttemptResult *InstanceAttemptResult `json:"lastAttemptResult,omitempty"` - - // LastExitCode: Optional. Last exit code seen for this instance. + // LastAttemptResult: Optional. Result of the last attempt of this instance. // +optional + LastAttemptResult *InstanceAttemptResult `json:"lastAttemptResult,omitempty"` + // LastExitCode: Optional. Last exit code seen for this instance. +optional LastExitCode int64 `json:"lastExitCode,omitempty"` - // Restarted: Optional. The number of times this instance was restarted. - // Instances are restarted according the restartPolicy configured in the - // Job template. +optional + // Instances are restarted according the restartPolicy configured in the Job + // template. +optional Restarted int64 `json:"restarted,omitempty"` - - // StartTime: Optional. Represents time when the instance was created by - // the job controller. It is not guaranteed to be set in happens-before - // order across separate operations. It is represented in RFC3339 form - // and is in UTC. +optional + // StartTime: Optional. Represents time when the instance was created by the + // job controller. It is not guaranteed to be set in happens-before order + // across separate operations. It is represented in RFC3339 form and is in UTC. + // +optional StartTime string `json:"startTime,omitempty"` - - // Succeeded: Optional. The number of times this instance exited with - // code == 0. +optional + // Succeeded: Optional. The number of times this instance exited with code == + // 0. +optional Succeeded int64 `json:"succeeded,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompletionTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompletionTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompletionTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceStatus) MarshalJSON() ([]byte, error) { +func (s InstanceStatus) MarshalJSON() ([]byte, error) { type NoMethod InstanceStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstanceTemplateSpec: InstanceTemplateSpec describes the data an -// instance should have when created from a template. +// InstanceTemplateSpec: InstanceTemplateSpec describes the data an instance +// should have when created from a template. type InstanceTemplateSpec struct { - // Spec: Optional. Specification of the desired behavior of the - // instance. More info: + // Spec: Optional. Specification of the desired behavior of the instance. More + // info: // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec *InstanceSpec `json:"spec,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Spec") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Spec") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Spec") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Spec") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstanceTemplateSpec) MarshalJSON() ([]byte, error) { +func (s InstanceTemplateSpec) MarshalJSON() ([]byte, error) { type NoMethod InstanceTemplateSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Job: Job represents the configuration of a single job. A job an -// immutable resource that references a container image which is run to -// completion. +// Job: Job represents the configuration of a single job. A job an immutable +// resource that references a container image which is run to completion. type Job struct { // ApiVersion: Optional. APIVersion defines the versioned schema of this - // representation of an object. Servers should convert recognized - // schemas to the latest internal value, and may reject unrecognized - // values. More info: + // representation of an object. Servers should convert recognized schemas to + // the latest internal value, and may reject unrecognized values. More info: // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources // +optional ApiVersion string `json:"apiVersion,omitempty"` - - // Kind: Optional. Kind is a string value representing the REST resource - // this object represents. Servers may infer this from the endpoint the - // client submits requests to. Cannot be updated. In CamelCase. More - // info: + // Kind: Optional. Kind is a string value representing the REST resource this + // object represents. Servers may infer this from the endpoint the client + // submits requests to. Cannot be updated. In CamelCase. More info: // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional Kind string `json:"kind,omitempty"` - // Metadata: Optional. Standard object's metadata. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional Metadata *ObjectMeta `json:"metadata,omitempty"` - - // Spec: Optional. Specification of the desired behavior of a job. More - // info: + // Spec: Optional. Specification of the desired behavior of a job. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status // +optional Spec *JobSpec `json:"spec,omitempty"` - // Status: Optional. Current status of a job. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status // +optional Status *JobStatus `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Job) MarshalJSON() ([]byte, error) { +func (s Job) MarshalJSON() ([]byte, error) { type NoMethod Job - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JobCondition: JobCondition defines a readiness condition for a -// Revision. +// JobCondition: JobCondition defines a readiness condition for a Revision. type JobCondition struct { - // LastTransitionTime: Optional. Last time the condition transitioned - // from one status to another. + // LastTransitionTime: Optional. Last time the condition transitioned from one + // status to another. LastTransitionTime string `json:"lastTransitionTime,omitempty"` - - // Message: Optional. Human readable message indicating details about - // the current status. + // Message: Optional. Human readable message indicating details about the + // current status. Message string `json:"message,omitempty"` - // Reason: Optional. One-word CamelCase reason for the condition's last // transition. Reason string `json:"reason,omitempty"` - - // Severity: Optional. How to interpret failures of this condition, one - // of Error, Warning, Info + // Severity: Optional. How to interpret failures of this condition, one of + // Error, Warning, Info Severity string `json:"severity,omitempty"` - - // Status: Required. Status of the condition, one of True, False, - // Unknown. + // Status: Required. Status of the condition, one of True, False, Unknown. Status string `json:"status,omitempty"` - - // Type: Required. Type is used to communicate the status of the - // reconciliation process. See also: + // Type: Required. Type is used to communicate the status of the reconciliation + // process. See also: // https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting - // Types include: * "Completed": True when the Job has successfully - // completed. * "Started": True when the Job has successfully started - // running. * "ResourcesAvailable": True when underlying resources have - // been provisioned. + // Types include: * "Completed": True when the Job has successfully completed. + // * "Started": True when the Job has successfully started running. * + // "ResourcesAvailable": True when underlying resources have been provisioned. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LastTransitionTime") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "LastTransitionTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LastTransitionTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LastTransitionTime") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobCondition) MarshalJSON() ([]byte, error) { +func (s JobCondition) MarshalJSON() ([]byte, error) { type NoMethod JobCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobSpec: JobSpec describes how the job execution will look like. type JobSpec struct { - // ActiveDeadlineSeconds: Optional. Not supported. Specifies the - // duration in seconds relative to the startTime that the job may be - // active before the system tries to terminate it. If set to zero, the - // system will never attempt to terminate the job based on time. - // Otherwise, the value must be positive integer. +optional + // ActiveDeadlineSeconds: Optional. Not supported. Specifies the duration in + // seconds relative to the startTime that the job may be active before the + // system tries to terminate it. If set to zero, the system will never attempt + // to terminate the job based on time. Otherwise, the value must be positive + // integer. +optional ActiveDeadlineSeconds int64 `json:"activeDeadlineSeconds,omitempty,string"` - - // BackoffLimit: Optional. Specifies the number of retries per instance, - // before marking this job failed. If set to zero, instances will never - // retry on failure. +optional + // BackoffLimit: Optional. Specifies the number of retries per instance, before + // marking this job failed. If set to zero, instances will never retry on + // failure. +optional BackoffLimit int64 `json:"backoffLimit,omitempty"` - - // Completions: Optional. Specifies the desired number of successfully - // finished instances the job should be run with. Setting to 1 means - // that parallelism is limited to 1 and the success of that instance - // signals the success of the job. More info: + // Completions: Optional. Specifies the desired number of successfully finished + // instances the job should be run with. Setting to 1 means that parallelism is + // limited to 1 and the success of that instance signals the success of the + // job. More info: // https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ // +optional Completions int64 `json:"completions,omitempty"` - - // Parallelism: Optional. Specifies the maximum desired number of - // instances the job should run at any given time. Must be <= - // completions. The actual number of instances running in steady state - // will be less than this number when ((.spec.completions - - // .status.successful) < .spec.parallelism), i.e. when the work left to - // do is less than max parallelism. More info: + // Parallelism: Optional. Specifies the maximum desired number of instances the + // job should run at any given time. Must be <= completions. The actual number + // of instances running in steady state will be less than this number when + // ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when + // the work left to do is less than max parallelism. More info: // https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ // +optional Parallelism int64 `json:"parallelism,omitempty"` - // Template: Optional. Describes the instance that will be created when // executing a job. Template *InstanceTemplateSpec `json:"template,omitempty"` - - // TtlSecondsAfterFinished: Optional. Not supported. - // ttlSecondsAfterFinished limits the lifetime of a Job that has - // finished execution (either Complete or Failed). If this field is set, - // ttlSecondsAfterFinished after the Job finishes, it is eligible to be - // automatically deleted. When the Job is being deleted, its lifecycle - // guarantees (e.g. finalizers) will be honored. If this field is set to - // zero, the Job won't be automatically deleted. +optional + // TtlSecondsAfterFinished: Optional. Not supported. ttlSecondsAfterFinished + // limits the lifetime of a Job that has finished execution (either Complete or + // Failed). If this field is set, ttlSecondsAfterFinished after the Job + // finishes, it is eligible to be automatically deleted. When the Job is being + // deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this + // field is set to zero, the Job won't be automatically deleted. +optional TtlSecondsAfterFinished int64 `json:"ttlSecondsAfterFinished,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ActiveDeadlineSeconds") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ActiveDeadlineSeconds") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActiveDeadlineSeconds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobSpec) MarshalJSON() ([]byte, error) { +func (s JobSpec) MarshalJSON() ([]byte, error) { type NoMethod JobSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobStatus: JobStatus represents the current state of a Job. type JobStatus struct { // Active: Optional. The number of actively running instances. +optional Active int64 `json:"active,omitempty"` - - // CompletionTime: Optional. Represents time when the job was completed. - // It is not guaranteed to be set in happens-before order across - // separate operations. It is represented in RFC3339 form and is in UTC. - // +optional + // CompletionTime: Optional. Represents time when the job was completed. It is + // not guaranteed to be set in happens-before order across separate operations. + // It is represented in RFC3339 form and is in UTC. +optional CompletionTime string `json:"completionTime,omitempty"` - - // Conditions: Optional. The latest available observations of a job's - // current state. More info: + // Conditions: Optional. The latest available observations of a job's current + // state. More info: // https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ // +optional Conditions []*JobCondition `json:"conditions,omitempty"` - // Failed: Optional. The number of instances which reached phase Failed. // +optional Failed int64 `json:"failed,omitempty"` - - // ImageDigest: Optional. ImageDigest holds the resolved digest for the - // image specified within .Spec.Template.Spec.Container.Image. The - // digest is resolved during the creation of the Job. This field holds - // the digest value regardless of whether a tag or digest was originally - // specified in the Container object. + // ImageDigest: Optional. ImageDigest holds the resolved digest for the image + // specified within .Spec.Template.Spec.Container.Image. The digest is resolved + // during the creation of the Job. This field holds the digest value regardless + // of whether a tag or digest was originally specified in the Container object. ImageDigest string `json:"imageDigest,omitempty"` - - // Instances: Optional. Status of completed, failed, and running - // instances. +optional + // Instances: Optional. Status of completed, failed, and running instances. + // +optional Instances []*InstanceStatus `json:"instances,omitempty"` - - // ObservedGeneration: Optional. The 'generation' of the job that was - // last processed by the controller. + // ObservedGeneration: Optional. The 'generation' of the job that was last + // processed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` - - // StartTime: Optional. Represents time when the job was acknowledged by - // the job controller. It is not guaranteed to be set in happens-before - // order across separate operations. It is represented in RFC3339 form - // and is in UTC. +optional + // StartTime: Optional. Represents time when the job was acknowledged by the + // job controller. It is not guaranteed to be set in happens-before order + // across separate operations. It is represented in RFC3339 form and is in UTC. + // +optional StartTime string `json:"startTime,omitempty"` - - // Succeeded: Optional. The number of instances which reached phase - // Succeeded. +optional + // Succeeded: Optional. The number of instances which reached phase Succeeded. + // +optional Succeeded int64 `json:"succeeded,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Active") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Active") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Active") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobStatus) MarshalJSON() ([]byte, error) { +func (s JobStatus) MarshalJSON() ([]byte, error) { type NoMethod JobStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // KeyToPath: Maps a string key to a path within a volume. type KeyToPath struct { - // Key: The Cloud Secret Manager secret version. Can be 'latest' for the - // latest value or an integer for a specific version. The key to - // project. + // Key: The Cloud Secret Manager secret version. Can be 'latest' for the latest + // value or an integer for a specific version. The key to project. Key string `json:"key,omitempty"` - - // Mode: (Optional) Mode bits to use on this file, must be a value - // between 01 and 0777 (octal). If 0 or not set, the Volume's default - // mode will be used. Notes * Internally, a umask of 0222 will be - // applied to any non-zero value. * This is an integer representation of - // the mode bits. So, the octal integer value should look exactly as the - // chmod numeric notation with a leading zero. Some examples: for chmod - // 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 - // (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 - // (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might - // be in conflict with other options that affect the file mode, like - // fsGroup, and the result can be other mode bits set. + // Mode: (Optional) Mode bits to use on this file, must be a value between 01 + // and 0777 (octal). If 0 or not set, the Volume's default mode will be used. + // Notes * Internally, a umask of 0222 will be applied to any non-zero value. * + // This is an integer representation of the mode bits. So, the octal integer + // value should look exactly as the chmod numeric notation with a leading zero. + // Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). + // For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod + // 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be + // in conflict with other options that affect the file mode, like fsGroup, and + // the result can be other mode bits set. Mode int64 `json:"mode,omitempty"` - // Path: The relative path of the file to map the key to. May not be an - // absolute path. May not contain the path element '..'. May not start - // with the string '..'. + // absolute path. May not contain the path element '..'. May not start with the + // string '..'. Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *KeyToPath) MarshalJSON() ([]byte, error) { +func (s KeyToPath) MarshalJSON() ([]byte, error) { type NoMethod KeyToPath - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListJobsResponse: ListJobsResponse is a list of Jobs resources. @@ -1295,768 +1057,608 @@ type ListJobsResponse struct { // ApiVersion: The API version for this call such as // "run.googleapis.com/v1alpha1". ApiVersion string `json:"apiVersion,omitempty"` - // Items: List of Jobs. Items []*Job `json:"items,omitempty"` - // Kind: The kind of this resource, in this case "JobsList". Kind string `json:"kind,omitempty"` - // Metadata: Metadata associated with this jobs list. Metadata *ListMeta `json:"metadata,omitempty"` - - // NextPageToken: This field is equivalent to the metadata.continue - // field and is provided as a convenience for compatibility with - // https://google.aip.dev/158. The value is opaque and may be used to - // issue another request to the endpoint that served this list to - // retrieve the next set of available objects. Continuing a list may not - // be possible if the server configuration has changed or more than a - // few minutes have passed. The metadata.resourceVersion field returned - // when using this field will be identical to the value in the first - // response. + // NextPageToken: This field is equivalent to the metadata.continue field and + // is provided as a convenience for compatibility with + // https://google.aip.dev/158. The value is opaque and may be used to issue + // another request to the endpoint that served this list to retrieve the next + // set of available objects. Continuing a list may not be possible if the + // server configuration has changed or more than a few minutes have passed. The + // metadata.resourceVersion field returned when using this field will be + // identical to the value in the first response. NextPageToken string `json:"nextPageToken,omitempty"` - // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListJobsResponse) MarshalJSON() ([]byte, error) { +func (s ListJobsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListJobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListMeta: ListMeta describes metadata that synthetic resources must -// have, including lists and various status objects. A resource may have -// only one of {ObjectMeta, ListMeta}. +// ListMeta: ListMeta describes metadata that synthetic resources must have, +// including lists and various status objects. A resource may have only one of +// {ObjectMeta, ListMeta}. type ListMeta struct { - // Continue: continue may be set if the user set a limit on the number - // of items returned, and indicates that the server has more data - // available. The value is opaque and may be used to issue another - // request to the endpoint that served this list to retrieve the next - // set of available objects. Continuing a list may not be possible if - // the server configuration has changed or more than a few minutes have - // passed. The resourceVersion field returned when using this continue - // value will be identical to the value in the first response. + // Continue: continue may be set if the user set a limit on the number of items + // returned, and indicates that the server has more data available. The value + // is opaque and may be used to issue another request to the endpoint that + // served this list to retrieve the next set of available objects. Continuing a + // list may not be possible if the server configuration has changed or more + // than a few minutes have passed. The resourceVersion field returned when + // using this continue value will be identical to the value in the first + // response. Continue string `json:"continue,omitempty"` - - // ResourceVersion: String that identifies the server's internal version - // of this object that can be used by clients to determine when objects - // have changed. Value must be treated as opaque by clients and passed - // unmodified back to the server. Populated by the system. Read-only. - // More info: + // ResourceVersion: String that identifies the server's internal version of + // this object that can be used by clients to determine when objects have + // changed. Value must be treated as opaque by clients and passed unmodified + // back to the server. Populated by the system. Read-only. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency // +optional ResourceVersion string `json:"resourceVersion,omitempty"` - - // SelfLink: SelfLink is a URL representing this object. Populated by - // the system. Read-only. +optional + // SelfLink: SelfLink is a URL representing this object. Populated by the + // system. Read-only. +optional SelfLink string `json:"selfLink,omitempty"` - // ForceSendFields is a list of field names (e.g. "Continue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Continue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Continue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListMeta) MarshalJSON() ([]byte, error) { +func (s ListMeta) MarshalJSON() ([]byte, error) { type NoMethod ListMeta - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LocalObjectReference: Not supported by Cloud Run LocalObjectReference -// contains enough information to let you locate the referenced object -// inside the same namespace. +// contains enough information to let you locate the referenced object inside +// the same namespace. type LocalObjectReference struct { // Name: (Optional) Name of the referent. More info: // https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LocalObjectReference) MarshalJSON() ([]byte, error) { +func (s LocalObjectReference) MarshalJSON() ([]byte, error) { type NoMethod LocalObjectReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ObjectMeta: k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is -// metadata that all persisted resources must have, which includes all -// objects users must create. +// ObjectMeta: k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that +// all persisted resources must have, which includes all objects users must +// create. type ObjectMeta struct { - // Annotations: (Optional) Annotations is an unstructured key value map - // stored with a resource that may be set by external tools to store and - // retrieve arbitrary metadata. They are not queryable and should be - // preserved when modifying objects. More info: + // Annotations: (Optional) Annotations is an unstructured key value map stored + // with a resource that may be set by external tools to store and retrieve + // arbitrary metadata. They are not queryable and should be preserved when + // modifying objects. More info: // https://kubernetes.io/docs/user-guide/annotations Annotations map[string]string `json:"annotations,omitempty"` - - // ClusterName: (Optional) Not supported by Cloud Run The name of the - // cluster which the object belongs to. This is used to distinguish - // resources with same name and namespace in different clusters. This - // field is not set anywhere right now and apiserver is going to ignore - // it if set in create or update request. + // ClusterName: (Optional) Not supported by Cloud Run The name of the cluster + // which the object belongs to. This is used to distinguish resources with same + // name and namespace in different clusters. This field is not set anywhere + // right now and apiserver is going to ignore it if set in create or update + // request. ClusterName string `json:"clusterName,omitempty"` - - // CreationTimestamp: (Optional) CreationTimestamp is a timestamp - // representing the server time when this object was created. It is not - // guaranteed to be set in happens-before order across separate - // operations. Clients may not set this value. It is represented in - // RFC3339 form and is in UTC. Populated by the system. Read-only. Null - // for lists. More info: + // CreationTimestamp: (Optional) CreationTimestamp is a timestamp representing + // the server time when this object was created. It is not guaranteed to be set + // in happens-before order across separate operations. Clients may not set this + // value. It is represented in RFC3339 form and is in UTC. Populated by the + // system. Read-only. Null for lists. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata CreationTimestamp string `json:"creationTimestamp,omitempty"` - - // DeletionGracePeriodSeconds: (Optional) Not supported by Cloud Run - // Number of seconds allowed for this object to gracefully terminate - // before it will be removed from the system. Only set when - // deletionTimestamp is also set. May only be shortened. Read-only. + // DeletionGracePeriodSeconds: (Optional) Not supported by Cloud Run Number of + // seconds allowed for this object to gracefully terminate before it will be + // removed from the system. Only set when deletionTimestamp is also set. May + // only be shortened. Read-only. DeletionGracePeriodSeconds int64 `json:"deletionGracePeriodSeconds,omitempty"` - - // DeletionTimestamp: (Optional) Not supported by Cloud Run - // DeletionTimestamp is RFC 3339 date and time at which this resource - // will be deleted. This field is set by the server when a graceful - // deletion is requested by the user, and is not directly settable by a - // client. The resource is expected to be deleted (no longer visible - // from resource lists, and not reachable by name) after the time in - // this field, once the finalizers list is empty. As long as the + // DeletionTimestamp: (Optional) Not supported by Cloud Run DeletionTimestamp + // is RFC 3339 date and time at which this resource will be deleted. This field + // is set by the server when a graceful deletion is requested by the user, and + // is not directly settable by a client. The resource is expected to be deleted + // (no longer visible from resource lists, and not reachable by name) after the + // time in this field, once the finalizers list is empty. As long as the // finalizers list contains items, deletion is blocked. Once the - // deletionTimestamp is set, this value may not be unset or be set - // further into the future, although it may be shortened or the resource - // may be deleted prior to this time. For example, a user may request - // that a pod is deleted in 30 seconds. The Kubelet will react by - // sending a graceful termination signal to the containers in the pod. - // After that 30 seconds, the Kubelet will send a hard termination - // signal (SIGKILL) to the container and after cleanup, remove the pod - // from the API. In the presence of network partitions, this object may + // deletionTimestamp is set, this value may not be unset or be set further into + // the future, although it may be shortened or the resource may be deleted + // prior to this time. For example, a user may request that a pod is deleted in + // 30 seconds. The Kubelet will react by sending a graceful termination signal + // to the containers in the pod. After that 30 seconds, the Kubelet will send a + // hard termination signal (SIGKILL) to the container and after cleanup, remove + // the pod from the API. In the presence of network partitions, this object may // still exist after this timestamp, until an administrator or automated - // process can determine the resource is fully terminated. If not set, - // graceful deletion of the object has not been requested. Populated by - // the system when a graceful deletion is requested. Read-only. More - // info: + // process can determine the resource is fully terminated. If not set, graceful + // deletion of the object has not been requested. Populated by the system when + // a graceful deletion is requested. Read-only. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata DeletionTimestamp string `json:"deletionTimestamp,omitempty"` - - // Finalizers: (Optional) Not supported by Cloud Run Must be empty - // before the object is deleted from the registry. Each entry is an - // identifier for the responsible component that will remove the entry - // from the list. If the deletionTimestamp of the object is non-nil, - // entries in this list can only be removed. +patchStrategy=merge + // Finalizers: (Optional) Not supported by Cloud Run Must be empty before the + // object is deleted from the registry. Each entry is an identifier for the + // responsible component that will remove the entry from the list. If the + // deletionTimestamp of the object is non-nil, entries in this list can only be + // removed. +patchStrategy=merge Finalizers []string `json:"finalizers,omitempty"` - - // GenerateName: (Optional) Not supported by Cloud Run GenerateName is - // an optional prefix, used by the server, to generate a unique name - // ONLY IF the Name field has not been provided. If this field is used, - // the name returned to the client will be different than the name - // passed. This value will also be combined with a unique suffix. The - // provided value has the same validation rules as the Name field, and - // may be truncated by the length of the suffix required to make the - // value unique on the server. If this field is specified and the - // generated name exists, the server will NOT return a 409 - instead, it - // will either return 201 Created or 500 with Reason ServerTimeout - // indicating a unique name could not be found in the time allotted, and - // the client should retry (optionally after the time indicated in the - // Retry-After header). Applied only if Name is not specified. More - // info: + // GenerateName: (Optional) Not supported by Cloud Run GenerateName is an + // optional prefix, used by the server, to generate a unique name ONLY IF the + // Name field has not been provided. If this field is used, the name returned + // to the client will be different than the name passed. This value will also + // be combined with a unique suffix. The provided value has the same validation + // rules as the Name field, and may be truncated by the length of the suffix + // required to make the value unique on the server. If this field is specified + // and the generated name exists, the server will NOT return a 409 - instead, + // it will either return 201 Created or 500 with Reason ServerTimeout + // indicating a unique name could not be found in the time allotted, and the + // client should retry (optionally after the time indicated in the Retry-After + // header). Applied only if Name is not specified. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency // string generateName = 2; GenerateName string `json:"generateName,omitempty"` - - // Generation: (Optional) A sequence number representing a specific - // generation of the desired state. Populated by the system. Read-only. + // Generation: (Optional) A sequence number representing a specific generation + // of the desired state. Populated by the system. Read-only. Generation int64 `json:"generation,omitempty"` - // Labels: (Optional) Map of string keys and values that can be used to - // organize and categorize (scope and select) objects. May match - // selectors of replication controllers and routes. More info: + // organize and categorize (scope and select) objects. May match selectors of + // replication controllers and routes. More info: // https://kubernetes.io/docs/user-guide/labels Labels map[string]string `json:"labels,omitempty"` - - // Name: Name must be unique within a namespace, within a Cloud Run - // region. Is required when creating resources, although some resources - // may allow a client to request the generation of an appropriate name - // automatically. Name is primarily intended for creation idempotence - // and configuration definition. Cannot be updated. More info: + // Name: Name must be unique within a namespace, within a Cloud Run region. Is + // required when creating resources, although some resources may allow a client + // to request the generation of an appropriate name automatically. Name is + // primarily intended for creation idempotence and configuration definition. + // Cannot be updated. More info: // https://kubernetes.io/docs/user-guide/identifiers#names +optional Name string `json:"name,omitempty"` - - // Namespace: Namespace defines the space within each name must be - // unique, within a Cloud Run region. In Cloud Run the namespace must be - // equal to either the project ID or project number. + // Namespace: Namespace defines the space within each name must be unique, + // within a Cloud Run region. In Cloud Run the namespace must be equal to + // either the project ID or project number. Namespace string `json:"namespace,omitempty"` - - // OwnerReferences: (Optional) Not supported by Cloud Run List of - // objects that own this object. If ALL objects in the list have been - // deleted, this object will be garbage collected. + // OwnerReferences: (Optional) Not supported by Cloud Run List of objects that + // own this object. If ALL objects in the list have been deleted, this object + // will be garbage collected. OwnerReferences []*OwnerReference `json:"ownerReferences,omitempty"` - - // ResourceVersion: Optional. An opaque value that represents the - // internal version of this object that can be used by clients to - // determine when objects have changed. May be used for optimistic - // concurrency, change detection, and the watch operation on a resource - // or set of resources. Clients must treat these values as opaque and - // passed unmodified back to the server or omit the value to disable - // conflict-detection. They may only be valid for a particular resource - // or set of resources. Populated by the system. Read-only. Value must + // ResourceVersion: Optional. An opaque value that represents the internal + // version of this object that can be used by clients to determine when objects + // have changed. May be used for optimistic concurrency, change detection, and + // the watch operation on a resource or set of resources. Clients must treat + // these values as opaque and passed unmodified back to the server or omit the + // value to disable conflict-detection. They may only be valid for a particular + // resource or set of resources. Populated by the system. Read-only. Value must // be treated as opaque by clients or omitted. More info: // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency ResourceVersion string `json:"resourceVersion,omitempty"` - - // SelfLink: (Optional) SelfLink is a URL representing this object. - // Populated by the system. Read-only. string selfLink = 4; + // SelfLink: (Optional) SelfLink is a URL representing this object. Populated + // by the system. Read-only. string selfLink = 4; SelfLink string `json:"selfLink,omitempty"` - - // Uid: (Optional) UID is the unique in time and space value for this - // object. It is typically generated by the server on successful - // creation of a resource and is not allowed to change on PUT - // operations. Populated by the system. Read-only. More info: - // https://kubernetes.io/docs/user-guide/identifiers#uids + // Uid: (Optional) UID is the unique in time and space value for this object. + // It is typically generated by the server on successful creation of a resource + // and is not allowed to change on PUT operations. Populated by the system. + // Read-only. More info: https://kubernetes.io/docs/user-guide/identifiers#uids Uid string `json:"uid,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectMeta) MarshalJSON() ([]byte, error) { +func (s ObjectMeta) MarshalJSON() ([]byte, error) { type NoMethod ObjectMeta - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OwnerReference: OwnerReference contains enough information to let you -// identify an owning object. Currently, an owning object must be in the -// same namespace, so there is no namespace field. +// identify an owning object. Currently, an owning object must be in the same +// namespace, so there is no namespace field. type OwnerReference struct { // ApiVersion: API version of the referent. ApiVersion string `json:"apiVersion,omitempty"` - - // BlockOwnerDeletion: If true, AND if the owner has the - // "foregroundDeletion" finalizer, then the owner cannot be deleted from - // the key-value store until this reference is removed. Defaults to - // false. To set this field, a user needs "delete" permission of the - // owner, otherwise 422 (Unprocessable Entity) will be returned. - // +optional + // BlockOwnerDeletion: If true, AND if the owner has the "foregroundDeletion" + // finalizer, then the owner cannot be deleted from the key-value store until + // this reference is removed. Defaults to false. To set this field, a user + // needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) + // will be returned. +optional BlockOwnerDeletion bool `json:"blockOwnerDeletion,omitempty"` - - // Controller: If true, this reference points to the managing - // controller. +optional + // Controller: If true, this reference points to the managing controller. + // +optional Controller bool `json:"controller,omitempty"` - // Kind: Kind of the referent. More info: // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` - // Name: Name of the referent. More info: // https://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name,omitempty"` - // Uid: UID of the referent. More info: // https://kubernetes.io/docs/user-guide/identifiers#uids Uid string `json:"uid,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OwnerReference) MarshalJSON() ([]byte, error) { +func (s OwnerReference) MarshalJSON() ([]byte, error) { type NoMethod OwnerReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Probe: Not supported by Cloud Run Probe describes a health check to -// be performed against a container to determine whether it is alive or -// ready to receive traffic. +// Probe: Not supported by Cloud Run Probe describes a health check to be +// performed against a container to determine whether it is alive or ready to +// receive traffic. type Probe struct { // Exec: (Optional) Not supported by Cloud Run One and only one of the - // following should be specified. Exec specifies the action to take. A - // field inlined from the Handler message. + // following should be specified. Exec specifies the action to take. A field + // inlined from the Handler message. Exec *ExecAction `json:"exec,omitempty"` - - // FailureThreshold: (Optional) Minimum consecutive failures for the - // probe to be considered failed after having succeeded. Defaults to 3. - // Minimum value is 1. + // FailureThreshold: (Optional) Minimum consecutive failures for the probe to + // be considered failed after having succeeded. Defaults to 3. Minimum value is + // 1. FailureThreshold int64 `json:"failureThreshold,omitempty"` - - // Grpc: (Optional) GRPCAction specifies an action involving a GRPC - // port. A field inlined from the Handler message. - Grpc *GRPCAction `json:"grpc,omitempty"` - - // HttpGet: (Optional) HTTPGet specifies the http request to perform. A + // Grpc: (Optional) GRPCAction specifies an action involving a GRPC port. A // field inlined from the Handler message. + Grpc *GRPCAction `json:"grpc,omitempty"` + // HttpGet: (Optional) HTTPGet specifies the http request to perform. A field + // inlined from the Handler message. HttpGet *HTTPGetAction `json:"httpGet,omitempty"` - - // InitialDelaySeconds: (Optional) Number of seconds after the container - // has started before the probe is initiated. Defaults to 0 seconds. - // Minimum value is 0. Maximum value for liveness probe is 3600. Maximum - // value for startup probe is 240. More info: + // InitialDelaySeconds: (Optional) Number of seconds after the container has + // started before the probe is initiated. Defaults to 0 seconds. Minimum value + // is 0. Maximum value for liveness probe is 3600. Maximum value for startup + // probe is 240. More info: // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"` - - // PeriodSeconds: (Optional) How often (in seconds) to perform the - // probe. Default to 10 seconds. Minimum value is 1. Maximum value for - // liveness probe is 3600. Maximum value for startup probe is 240. Must - // be greater or equal than timeout_seconds. + // PeriodSeconds: (Optional) How often (in seconds) to perform the probe. + // Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe + // is 3600. Maximum value for startup probe is 240. Must be greater or equal + // than timeout_seconds. PeriodSeconds int64 `json:"periodSeconds,omitempty"` - - // SuccessThreshold: (Optional) Minimum consecutive successes for the - // probe to be considered successful after having failed. Must be 1 if - // set. + // SuccessThreshold: (Optional) Minimum consecutive successes for the probe to + // be considered successful after having failed. Must be 1 if set. SuccessThreshold int64 `json:"successThreshold,omitempty"` - - // TcpSocket: (Optional) TCPSocket specifies an action involving a TCP - // port. TCP hooks not yet supported A field inlined from the Handler - // message. + // TcpSocket: (Optional) TCPSocket specifies an action involving a TCP port. + // TCP hooks not yet supported A field inlined from the Handler message. TcpSocket *TCPSocketAction `json:"tcpSocket,omitempty"` - - // TimeoutSeconds: (Optional) Number of seconds after which the probe - // times out. Defaults to 1 second. Minimum value is 1. Maximum value is - // 3600. Must be smaller than period_seconds. More info: + // TimeoutSeconds: (Optional) Number of seconds after which the probe times + // out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must + // be smaller than period_seconds. More info: // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Exec") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Exec") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Exec") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Exec") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Probe) MarshalJSON() ([]byte, error) { +func (s Probe) MarshalJSON() ([]byte, error) { type NoMethod Probe - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResourceRequirements: ResourceRequirements describes the compute -// resource requirements. +// ResourceRequirements: ResourceRequirements describes the compute resource +// requirements. type ResourceRequirements struct { - // Limits: (Optional) Only memory and CPU are supported. Limits - // describes the maximum amount of compute resources allowed. The values - // of the map is string form of the 'quantity' k8s type: + // Limits: (Optional) Only memory and CPU are supported. Limits describes the + // maximum amount of compute resources allowed. The values of the map is string + // form of the 'quantity' k8s type: // https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go Limits map[string]string `json:"limits,omitempty"` - - // Requests: (Optional) Only memory and CPU are supported. Requests - // describes the minimum amount of compute resources required. If - // Requests is omitted for a container, it defaults to Limits if that is - // explicitly specified, otherwise to an implementation-defined value. - // The values of the map is string form of the 'quantity' k8s type: + // Requests: (Optional) Only memory and CPU are supported. Requests describes + // the minimum amount of compute resources required. If Requests is omitted for + // a container, it defaults to Limits if that is explicitly specified, + // otherwise to an implementation-defined value. The values of the map is + // string form of the 'quantity' k8s type: // https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go Requests map[string]string `json:"requests,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Limits") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Limits") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Limits") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResourceRequirements) MarshalJSON() ([]byte, error) { +func (s ResourceRequirements) MarshalJSON() ([]byte, error) { type NoMethod ResourceRequirements - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SecretEnvSource: Not supported by Cloud Run SecretEnvSource selects a -// Secret to populate the environment variables with. The contents of -// the target Secret's Data field will represent the key-value pairs as -// environment variables. +// SecretEnvSource: Not supported by Cloud Run SecretEnvSource selects a Secret +// to populate the environment variables with. The contents of the target +// Secret's Data field will represent the key-value pairs as environment +// variables. type SecretEnvSource struct { - // LocalObjectReference: This field should not be used directly as it is - // meant to be inlined directly into the message. Use the "name" field - // instead. + // LocalObjectReference: This field should not be used directly as it is meant + // to be inlined directly into the message. Use the "name" field instead. LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"` - // Name: The Secret to select from. Name string `json:"name,omitempty"` - // Optional: (Optional) Specify whether the Secret must be defined Optional bool `json:"optional,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "LocalObjectReference") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "LocalObjectReference") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LocalObjectReference") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LocalObjectReference") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecretEnvSource) MarshalJSON() ([]byte, error) { +func (s SecretEnvSource) MarshalJSON() ([]byte, error) { type NoMethod SecretEnvSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SecretKeySelector: SecretKeySelector selects a key of a Secret. type SecretKeySelector struct { - // Key: A Cloud Secret Manager secret version. Must be 'latest' for the - // latest version or an integer for a specific version. The key of the - // secret to select from. Must be a valid secret key. + // Key: A Cloud Secret Manager secret version. Must be 'latest' for the latest + // version or an integer for a specific version. The key of the secret to + // select from. Must be a valid secret key. Key string `json:"key,omitempty"` - - // LocalObjectReference: This field should not be used directly as it is - // meant to be inlined directly into the message. Use the "name" field - // instead. + // LocalObjectReference: This field should not be used directly as it is meant + // to be inlined directly into the message. Use the "name" field instead. LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"` - - // Name: The name of the secret in Cloud Secret Manager. By default, the - // secret is assumed to be in the same project. If the secret is in - // another project, you must define an alias. An alias definition has - // the form: :projects//secrets/. If multiple alias definitions are - // needed, they must be separated by commas. The alias definitions must - // be set on the run.googleapis.com/secrets annotation. The name of the - // secret in the pod's namespace to select from. + // Name: The name of the secret in Cloud Secret Manager. By default, the secret + // is assumed to be in the same project. If the secret is in another project, + // you must define an alias. An alias definition has the form: + // :projects//secrets/. If multiple alias definitions are needed, they must be + // separated by commas. The alias definitions must be set on the + // run.googleapis.com/secrets annotation. The name of the secret in the pod's + // namespace to select from. Name string `json:"name,omitempty"` - - // Optional: (Optional) Specify whether the Secret or its key must be - // defined + // Optional: (Optional) Specify whether the Secret or its key must be defined Optional bool `json:"optional,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecretKeySelector) MarshalJSON() ([]byte, error) { +func (s SecretKeySelector) MarshalJSON() ([]byte, error) { type NoMethod SecretKeySelector - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SecretVolumeSource: The secret's value will be presented as the -// content of a file whose name is defined in the item path. If no items -// are defined, the name of the file is the secret_name. The contents of -// the target Secret's Data field will be presented in a volume as files -// using the keys in the Data field as the file names. +// SecretVolumeSource: The secret's value will be presented as the content of a +// file whose name is defined in the item path. If no items are defined, the +// name of the file is the secret_name. The contents of the target Secret's +// Data field will be presented in a volume as files using the keys in the Data +// field as the file names. type SecretVolumeSource struct { - // DefaultMode: Integer representation of mode bits to use on created - // files by default. Must be a value between 01 and 0777 (octal). If 0 - // or not set, it will default to 0444. Directories within the path are - // not affected by this setting. Notes * Internally, a umask of 0222 - // will be applied to any non-zero value. * This is an integer - // representation of the mode bits. So, the octal integer value should - // look exactly as the chmod numeric notation with a leading zero. Some - // examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 - // (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 - // (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or - // 493 (base-10). * This might be in conflict with other options that - // affect the file mode, like fsGroup, and the result can be other mode - // bits set. + // DefaultMode: Integer representation of mode bits to use on created files by + // default. Must be a value between 01 and 0777 (octal). If 0 or not set, it + // will default to 0444. Directories within the path are not affected by this + // setting. Notes * Internally, a umask of 0222 will be applied to any non-zero + // value. * This is an integer representation of the mode bits. So, the octal + // integer value should look exactly as the chmod numeric notation with a + // leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or + // 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 + // (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 + // (base-10). * This might be in conflict with other options that affect the + // file mode, like fsGroup, and the result can be other mode bits set. DefaultMode int64 `json:"defaultMode,omitempty"` - - // Items: (Optional) If unspecified, the volume will expose a file whose - // name is the secret_name. If specified, the key will be used as the - // version to fetch from Cloud Secret Manager and the path will be the - // name of the file exposed in the volume. When items are defined, they - // must specify a key and a path. If unspecified, each key-value pair in - // the Data field of the referenced Secret will be projected into the - // volume as a file whose name is the key and content is the value. If - // specified, the listed keys will be projected into the specified - // paths, and unlisted keys will not be present. If a key is specified - // that is not present in the Secret, the volume setup will error unless - // it is marked optional. + // Items: (Optional) If unspecified, the volume will expose a file whose name + // is the secret_name. If specified, the key will be used as the version to + // fetch from Cloud Secret Manager and the path will be the name of the file + // exposed in the volume. When items are defined, they must specify a key and a + // path. If unspecified, each key-value pair in the Data field of the + // referenced Secret will be projected into the volume as a file whose name is + // the key and content is the value. If specified, the listed keys will be + // projected into the specified paths, and unlisted keys will not be present. + // If a key is specified that is not present in the Secret, the volume setup + // will error unless it is marked optional. Items []*KeyToPath `json:"items,omitempty"` - - // Optional: (Optional) Specify whether the Secret or its keys must be - // defined. + // Optional: (Optional) Specify whether the Secret or its keys must be defined. Optional bool `json:"optional,omitempty"` - - // SecretName: The name of the secret in Cloud Secret Manager. By - // default, the secret is assumed to be in the same project. If the - // secret is in another project, you must define an alias. An alias - // definition has the form: :projects//secrets/. If multiple alias - // definitions are needed, they must be separated by commas. The alias - // definitions must be set on the run.googleapis.com/secrets annotation. - // Name of the secret in the container's namespace to use. + // SecretName: The name of the secret in Cloud Secret Manager. By default, the + // secret is assumed to be in the same project. If the secret is in another + // project, you must define an alias. An alias definition has the form: + // :projects//secrets/. If multiple alias definitions are needed, they must be + // separated by commas. The alias definitions must be set on the + // run.googleapis.com/secrets annotation. Name of the secret in the container's + // namespace to use. SecretName string `json:"secretName,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultMode") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultMode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultMode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecretVolumeSource) MarshalJSON() ([]byte, error) { +func (s SecretVolumeSource) MarshalJSON() ([]byte, error) { type NoMethod SecretVolumeSource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SecurityContext: Not supported by Cloud Run SecurityContext holds -// security configuration that will be applied to a container. Some -// fields are present in both SecurityContext and PodSecurityContext. -// When both are set, the values in SecurityContext take precedence. +// SecurityContext: Not supported by Cloud Run SecurityContext holds security +// configuration that will be applied to a container. Some fields are present +// in both SecurityContext and PodSecurityContext. When both are set, the +// values in SecurityContext take precedence. type SecurityContext struct { // RunAsUser: (Optional) The UID to run the entrypoint of the container - // process. Defaults to user specified in image metadata if unspecified. - // May also be set in PodSecurityContext. If set in both SecurityContext - // and PodSecurityContext, the value specified in SecurityContext takes - // precedence. + // process. Defaults to user specified in image metadata if unspecified. May + // also be set in PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes precedence. RunAsUser int64 `json:"runAsUser,omitempty"` - // ForceSendFields is a list of field names (e.g. "RunAsUser") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RunAsUser") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RunAsUser") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecurityContext) MarshalJSON() ([]byte, error) { +func (s SecurityContext) MarshalJSON() ([]byte, error) { type NoMethod SecurityContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TCPSocketAction: Not supported by Cloud Run TCPSocketAction describes -// an action based on opening a socket +// TCPSocketAction: Not supported by Cloud Run TCPSocketAction describes an +// action based on opening a socket type TCPSocketAction struct { - // Host: (Optional) Optional: Host name to connect to, defaults to the - // pod IP. + // Host: (Optional) Optional: Host name to connect to, defaults to the pod IP. Host string `json:"host,omitempty"` - - // Port: Number or name of the port to access on the container. Number - // must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. This - // field is currently limited to integer types only because of proto's - // inability to properly support the IntOrString golang type. + // Port: Number or name of the port to access on the container. Number must be + // in the range 1 to 65535. Name must be an IANA_SVC_NAME. This field is + // currently limited to integer types only because of proto's inability to + // properly support the IntOrString golang type. Port int64 `json:"port,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Host") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Host") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Host") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Host") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TCPSocketAction) MarshalJSON() ([]byte, error) { +func (s TCPSocketAction) MarshalJSON() ([]byte, error) { type NoMethod TCPSocketAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Volume: Volume represents a named volume in a container. type Volume struct { ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"` - - // Name: Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' - // is reserved. - Name string `json:"name,omitempty"` - + // Name: Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is + // reserved. + Name string `json:"name,omitempty"` Secret *SecretVolumeSource `json:"secret,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfigMap") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConfigMap") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConfigMap") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Volume) MarshalJSON() ([]byte, error) { +func (s Volume) MarshalJSON() ([]byte, error) { type NoMethod Volume - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VolumeMount: VolumeMount describes a mounting of a Volume within a // container. type VolumeMount struct { - // MountPath: Path within the container at which the volume should be - // mounted. Must not contain ':'. + // MountPath: Path within the container at which the volume should be mounted. + // Must not contain ':'. MountPath string `json:"mountPath,omitempty"` - - // Name: The name of the volume. There must be a corresponding Volume - // with the same name. + // Name: The name of the volume. There must be a corresponding Volume with the + // same name. Name string `json:"name,omitempty"` - // ReadOnly: (Optional) Only true is accepted. Defaults to true. ReadOnly bool `json:"readOnly,omitempty"` - - // SubPath: (Optional) Path within the volume from which the container's - // volume should be mounted. Defaults to "" (volume's root). + // SubPath: (Optional) Path within the volume from which the container's volume + // should be mounted. Defaults to "" (volume's root). SubPath string `json:"subPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "MountPath") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MountPath") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MountPath") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VolumeMount) MarshalJSON() ([]byte, error) { +func (s VolumeMount) MarshalJSON() ([]byte, error) { type NoMethod VolumeMount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "run.namespaces.jobs.create": - type NamespacesJobsCreateCall struct { s *Service parent string @@ -2078,23 +1680,21 @@ func (r *NamespacesJobsService) Create(parent string, job *Job) *NamespacesJobsC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *NamespacesJobsCreateCall) Fields(s ...googleapi.Field) *NamespacesJobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *NamespacesJobsCreateCall) Context(ctx context.Context) *NamespacesJobsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *NamespacesJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2103,18 +1703,12 @@ func (c *NamespacesJobsCreateCall) Header() http.Header { } func (c *NamespacesJobsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.job) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1alpha1/{+parent}/jobs") @@ -2127,16 +1721,14 @@ func (c *NamespacesJobsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.jobs.create" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *NamespacesJobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2144,17 +1736,17 @@ func (c *NamespacesJobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -2167,38 +1759,7 @@ func (c *NamespacesJobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error return nil, err } return ret, nil - // { - // "description": "Create a job.", - // "flatPath": "apis/run.googleapis.com/v1alpha1/namespaces/{namespacesId}/jobs", - // "httpMethod": "POST", - // "id": "run.namespaces.jobs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The namespace in which the job should be created. Replace {namespace_id} with the project ID or number.", - // "location": "path", - // "pattern": "^namespaces/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "apis/run.googleapis.com/v1alpha1/{+parent}/jobs", - // "request": { - // "$ref": "Job" - // }, - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "run.namespaces.jobs.delete": +} type NamespacesJobsDeleteCall struct { s *Service @@ -2218,48 +1779,46 @@ func (r *NamespacesJobsService) Delete(name string) *NamespacesJobsDeleteCall { return c } -// ApiVersion sets the optional parameter "apiVersion": Cloud Run -// currently ignores this parameter. +// ApiVersion sets the optional parameter "apiVersion": Cloud Run currently +// ignores this parameter. func (c *NamespacesJobsDeleteCall) ApiVersion(apiVersion string) *NamespacesJobsDeleteCall { c.urlParams_.Set("apiVersion", apiVersion) return c } -// Kind sets the optional parameter "kind": Cloud Run currently ignores -// this parameter. +// Kind sets the optional parameter "kind": Cloud Run currently ignores this +// parameter. func (c *NamespacesJobsDeleteCall) Kind(kind string) *NamespacesJobsDeleteCall { c.urlParams_.Set("kind", kind) return c } -// PropagationPolicy sets the optional parameter "propagationPolicy": -// Specifies the propagation policy of delete. Cloud Run currently -// ignores this setting, and deletes in the background. Please see -// kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ -// for more information. +// PropagationPolicy sets the optional parameter "propagationPolicy": Specifies +// the propagation policy of delete. Cloud Run currently ignores this setting, +// and deletes in the background. Please see +// kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for +// more information. func (c *NamespacesJobsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesJobsDeleteCall { c.urlParams_.Set("propagationPolicy", propagationPolicy) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *NamespacesJobsDeleteCall) Fields(s ...googleapi.Field) *NamespacesJobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *NamespacesJobsDeleteCall) Context(ctx context.Context) *NamespacesJobsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *NamespacesJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2268,12 +1827,7 @@ func (c *NamespacesJobsDeleteCall) Header() http.Header { } func (c *NamespacesJobsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2287,16 +1841,14 @@ func (c *NamespacesJobsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.jobs.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *NamespacesJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2304,17 +1856,17 @@ func (c *NamespacesJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2327,50 +1879,7 @@ func (c *NamespacesJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, err return nil, err } return ret, nil - // { - // "description": "Delete a job.", - // "flatPath": "apis/run.googleapis.com/v1alpha1/namespaces/{namespacesId}/jobs/{jobsId}", - // "httpMethod": "DELETE", - // "id": "run.namespaces.jobs.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "apiVersion": { - // "description": "Optional. Cloud Run currently ignores this parameter.", - // "location": "query", - // "type": "string" - // }, - // "kind": { - // "description": "Optional. Cloud Run currently ignores this parameter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. The name of the job to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.", - // "location": "path", - // "pattern": "^namespaces/[^/]+/jobs/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "propagationPolicy": { - // "description": "Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "apis/run.googleapis.com/v1alpha1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "run.namespaces.jobs.get": +} type NamespacesJobsGetCall struct { s *Service @@ -2383,8 +1892,8 @@ type NamespacesJobsGetCall struct { // Get: Get information about a job. // -// - name: The name of the job to retrieve. For Cloud Run (fully -// managed), replace {namespace_id} with the project ID or number. +// - name: The name of the job to retrieve. For Cloud Run (fully managed), +// replace {namespace_id} with the project ID or number. func (r *NamespacesJobsService) Get(name string) *NamespacesJobsGetCall { c := &NamespacesJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2392,33 +1901,29 @@ func (r *NamespacesJobsService) Get(name string) *NamespacesJobsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *NamespacesJobsGetCall) Fields(s ...googleapi.Field) *NamespacesJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *NamespacesJobsGetCall) IfNoneMatch(entityTag string) *NamespacesJobsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *NamespacesJobsGetCall) Context(ctx context.Context) *NamespacesJobsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *NamespacesJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2427,12 +1932,7 @@ func (c *NamespacesJobsGetCall) Header() http.Header { } func (c *NamespacesJobsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2449,16 +1949,14 @@ func (c *NamespacesJobsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.jobs.get" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *NamespacesJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2466,17 +1964,17 @@ func (c *NamespacesJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -2489,35 +1987,7 @@ func (c *NamespacesJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { return nil, err } return ret, nil - // { - // "description": "Get information about a job.", - // "flatPath": "apis/run.googleapis.com/v1alpha1/namespaces/{namespacesId}/jobs/{jobsId}", - // "httpMethod": "GET", - // "id": "run.namespaces.jobs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the job to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number.", - // "location": "path", - // "pattern": "^namespaces/[^/]+/jobs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "apis/run.googleapis.com/v1alpha1/{+name}", - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "run.namespaces.jobs.list": +} type NamespacesJobsListCall struct { s *Service @@ -2538,88 +2008,84 @@ func (r *NamespacesJobsService) List(parent string) *NamespacesJobsListCall { return c } -// Continue sets the optional parameter "continue": Optional encoded -// string to continue paging. +// Continue sets the optional parameter "continue": Optional encoded string to +// continue paging. func (c *NamespacesJobsListCall) Continue(continue_ string) *NamespacesJobsListCall { c.urlParams_.Set("continue", continue_) return c } -// FieldSelector sets the optional parameter "fieldSelector": Allows to -// filter resources based on a specific value for a field name. Send -// this in a query string format. i.e. 'metadata.name%3Dlorem'. Not -// currently used by Cloud Run. +// FieldSelector sets the optional parameter "fieldSelector": Allows to filter +// resources based on a specific value for a field name. Send this in a query +// string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud +// Run. func (c *NamespacesJobsListCall) FieldSelector(fieldSelector string) *NamespacesJobsListCall { c.urlParams_.Set("fieldSelector", fieldSelector) return c } -// IncludeUninitialized sets the optional parameter -// "includeUninitialized": Not currently used by Cloud Run. +// IncludeUninitialized sets the optional parameter "includeUninitialized": Not +// currently used by Cloud Run. func (c *NamespacesJobsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesJobsListCall { c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized)) return c } -// LabelSelector sets the optional parameter "labelSelector": Allows to -// filter resources based on a label. Supported operations are =, !=, -// exists, in, and notIn. +// LabelSelector sets the optional parameter "labelSelector": Allows to filter +// resources based on a label. Supported operations are =, !=, exists, in, and +// notIn. func (c *NamespacesJobsListCall) LabelSelector(labelSelector string) *NamespacesJobsListCall { c.urlParams_.Set("labelSelector", labelSelector) return c } -// Limit sets the optional parameter "limit": The maximum number of -// records that should be returned. +// Limit sets the optional parameter "limit": The maximum number of records +// that should be returned. func (c *NamespacesJobsListCall) Limit(limit int64) *NamespacesJobsListCall { c.urlParams_.Set("limit", fmt.Sprint(limit)) return c } -// ResourceVersion sets the optional parameter "resourceVersion": The -// baseline resource version from which the list or watch operation -// should start. Not currently used by Cloud Run. +// ResourceVersion sets the optional parameter "resourceVersion": The baseline +// resource version from which the list or watch operation should start. Not +// currently used by Cloud Run. func (c *NamespacesJobsListCall) ResourceVersion(resourceVersion string) *NamespacesJobsListCall { c.urlParams_.Set("resourceVersion", resourceVersion) return c } -// Watch sets the optional parameter "watch": Flag that indicates that -// the client expects to watch this resource as well. Not currently used -// by Cloud Run. +// Watch sets the optional parameter "watch": Flag that indicates that the +// client expects to watch this resource as well. Not currently used by Cloud +// Run. func (c *NamespacesJobsListCall) Watch(watch bool) *NamespacesJobsListCall { c.urlParams_.Set("watch", fmt.Sprint(watch)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *NamespacesJobsListCall) Fields(s ...googleapi.Field) *NamespacesJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *NamespacesJobsListCall) IfNoneMatch(entityTag string) *NamespacesJobsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *NamespacesJobsListCall) Context(ctx context.Context) *NamespacesJobsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *NamespacesJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2628,12 +2094,7 @@ func (c *NamespacesJobsListCall) Header() http.Header { } func (c *NamespacesJobsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2650,16 +2111,15 @@ func (c *NamespacesJobsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.jobs.list" call. -// Exactly one of *ListJobsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListJobsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListJobsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *NamespacesJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2667,17 +2127,17 @@ func (c *NamespacesJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListJobsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2690,66 +2150,4 @@ func (c *NamespacesJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResp return nil, err } return ret, nil - // { - // "description": "List jobs.", - // "flatPath": "apis/run.googleapis.com/v1alpha1/namespaces/{namespacesId}/jobs", - // "httpMethod": "GET", - // "id": "run.namespaces.jobs.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "continue": { - // "description": "Optional. Optional encoded string to continue paging.", - // "location": "query", - // "type": "string" - // }, - // "fieldSelector": { - // "description": "Optional. Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run.", - // "location": "query", - // "type": "string" - // }, - // "includeUninitialized": { - // "description": "Optional. Not currently used by Cloud Run.", - // "location": "query", - // "type": "boolean" - // }, - // "labelSelector": { - // "description": "Optional. Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - // "location": "query", - // "type": "string" - // }, - // "limit": { - // "description": "Optional. The maximum number of records that should be returned.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "parent": { - // "description": "Required. The namespace from which the jobs should be listed. Replace {namespace_id} with the project ID or number.", - // "location": "path", - // "pattern": "^namespaces/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "resourceVersion": { - // "description": "Optional. The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - // "location": "query", - // "type": "string" - // }, - // "watch": { - // "description": "Optional. Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "apis/run.googleapis.com/v1alpha1/{+parent}/jobs", - // "response": { - // "$ref": "ListJobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/run/v1beta1/run-gen.go b/run/v1beta1/run-gen.go index 28401abcaec..8a4ede6cef2 100644 --- a/run/v1beta1/run-gen.go +++ b/run/v1beta1/run-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/run/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // runService, err := run.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // runService, err := run.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // runService, err := run.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package run // import "google.golang.org/api/run/v1beta1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "run:v1beta1" const apiName = "run" const apiVersion = "v1beta1" const basePath = "https://run.googleapis.com/" +const basePathTemplate = "https://run.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://run.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -204,547 +222,406 @@ type ProjectsLocationsCustomresourcedefinitionsService struct { s *Service } -// CustomResourceColumnDefinition: CustomResourceColumnDefinition -// specifies a column for server side printing. +// CustomResourceColumnDefinition: CustomResourceColumnDefinition specifies a +// column for server side printing. type CustomResourceColumnDefinition struct { - // Description: description is a human readable description of this - // column. +optional + // Description: description is a human readable description of this column. + // +optional Description string `json:"description,omitempty"` - - // Format: format is an optional OpenAPI type definition for this - // column. The 'name' format is applied to the primary identifier column - // to assist in clients identifying column is the resource name. See + // Format: format is an optional OpenAPI type definition for this column. The + // 'name' format is applied to the primary identifier column to assist in + // clients identifying column is the resource name. See // https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types // for more. +optional Format string `json:"format,omitempty"` - // JsonPath: JSONPath is a simple JSON path, i.e. with array notation. JsonPath string `json:"jsonPath,omitempty"` - // Name: name is a human readable name for the column. Name string `json:"name,omitempty"` - - // Priority: priority is an integer defining the relative importance of - // this column compared to others. Lower numbers are considered higher - // priority. Columns that may be omitted in limited space scenarios - // should be given a higher priority. +optional + // Priority: priority is an integer defining the relative importance of this + // column compared to others. Lower numbers are considered higher priority. + // Columns that may be omitted in limited space scenarios should be given a + // higher priority. +optional Priority int64 `json:"priority,omitempty"` - // Type: type is an OpenAPI type definition for this column. See // https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types // for more. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomResourceColumnDefinition) MarshalJSON() ([]byte, error) { +func (s CustomResourceColumnDefinition) MarshalJSON() ([]byte, error) { type NoMethod CustomResourceColumnDefinition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomResourceDefinition: CustomResourceDefinition represents a -// resource that should be exposed on the API server. Its name MUST be -// in the format <.spec.name>.<.spec.group>. +// CustomResourceDefinition: CustomResourceDefinition represents a resource +// that should be exposed on the API server. Its name MUST be in the format +// <.spec.name>.<.spec.group>. type CustomResourceDefinition struct { // ApiVersion: The API version for this call such as // "k8s.apiextensions.io/v1beta1". ApiVersion string `json:"apiVersion,omitempty"` - - // Kind: The kind of resource, in this case always - // "CustomResourceDefinition". + // Kind: The kind of resource, in this case always "CustomResourceDefinition". Kind string `json:"kind,omitempty"` - // Metadata: Metadata associated with this CustomResourceDefinition. Metadata *ObjectMeta `json:"metadata,omitempty"` - // Spec: Spec describes how the user wants the resources to appear Spec *CustomResourceDefinitionSpec `json:"spec,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomResourceDefinition) MarshalJSON() ([]byte, error) { +func (s CustomResourceDefinition) MarshalJSON() ([]byte, error) { type NoMethod CustomResourceDefinition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomResourceDefinitionNames: CustomResourceDefinitionNames -// indicates the names to serve this CustomResourceDefinition +// CustomResourceDefinitionNames: CustomResourceDefinitionNames indicates the +// names to serve this CustomResourceDefinition type CustomResourceDefinitionNames struct { - // Categories: Categories is a list of grouped resources custom - // resources belong to (e.g. 'all') +optional + // Categories: Categories is a list of grouped resources custom resources + // belong to (e.g. 'all') +optional Categories []string `json:"categories,omitempty"` - - // Kind: Kind is the serialized kind of the resource. It is normally - // CamelCase and singular. + // Kind: Kind is the serialized kind of the resource. It is normally CamelCase + // and singular. Kind string `json:"kind,omitempty"` - - // ListKind: ListKind is the serialized kind of the list for this - // resource. Defaults to List. +optional + // ListKind: ListKind is the serialized kind of the list for this resource. + // Defaults to List. +optional ListKind string `json:"listKind,omitempty"` - - // Plural: Plural is the plural name of the resource to serve. It must - // match the name of the CustomResourceDefinition-registration too: - // plural.group and it must be all lowercase. + // Plural: Plural is the plural name of the resource to serve. It must match + // the name of the CustomResourceDefinition-registration too: plural.group and + // it must be all lowercase. Plural string `json:"plural,omitempty"` - - // ShortNames: ShortNames are short names for the resource. It must be - // all lowercase. +optional + // ShortNames: ShortNames are short names for the resource. It must be all + // lowercase. +optional ShortNames []string `json:"shortNames,omitempty"` - - // Singular: Singular is the singular name of the resource. It must be - // all lowercase Defaults to lowercased +optional + // Singular: Singular is the singular name of the resource. It must be all + // lowercase Defaults to lowercased +optional Singular string `json:"singular,omitempty"` - // ForceSendFields is a list of field names (e.g. "Categories") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Categories") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Categories") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomResourceDefinitionNames) MarshalJSON() ([]byte, error) { +func (s CustomResourceDefinitionNames) MarshalJSON() ([]byte, error) { type NoMethod CustomResourceDefinitionNames - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomResourceDefinitionSpec: CustomResourceDefinitionSpec describes -// how a user wants their resource to appear +// CustomResourceDefinitionSpec: CustomResourceDefinitionSpec describes how a +// user wants their resource to appear type CustomResourceDefinitionSpec struct { - // AdditionalPrinterColumns: AdditionalPrinterColumns are additional - // columns shown e.g. in kubectl next to the name. Defaults to a - // created-at column. +optional + // AdditionalPrinterColumns: AdditionalPrinterColumns are additional columns + // shown e.g. in kubectl next to the name. Defaults to a created-at column. + // +optional AdditionalPrinterColumns []*CustomResourceColumnDefinition `json:"additionalPrinterColumns,omitempty"` - // Group: Group is the group this resource belongs in Group string `json:"group,omitempty"` - // Names: Names are the names used to describe this custom resource Names *CustomResourceDefinitionNames `json:"names,omitempty"` - - // Scope: Scope indicates whether this resource is cluster or namespace - // scoped. Default is namespaced + // Scope: Scope indicates whether this resource is cluster or namespace scoped. + // Default is namespaced Scope string `json:"scope,omitempty"` - - // Subresources: Subresources describes the subresources for - // CustomResources +optional + // Subresources: Subresources describes the subresources for CustomResources + // +optional Subresources *CustomResourceSubresources `json:"subresources,omitempty"` - - // Validation: Validation describes the validation methods for - // CustomResources +optional + // Validation: Validation describes the validation methods for CustomResources + // +optional Validation *CustomResourceValidation `json:"validation,omitempty"` - - // Version: Version is the version this resource belongs in Should be - // always first item in Versions field if provided. Optional, but at - // least one of Version or Versions must be set. Deprecated: Please use - // `Versions`. +optional + // Version: Version is the version this resource belongs in Should be always + // first item in Versions field if provided. Optional, but at least one of + // Version or Versions must be set. Deprecated: Please use `Versions`. + // +optional Version string `json:"version,omitempty"` - - // Versions: Versions is the list of all supported versions for this - // resource. If Version field is provided, this field is optional. - // Validation: All versions must use the same validation schema for now. - // i.e., top level Validation field is applied to all of these versions. - // Order: The version name will be used to compute the order. If the - // version string is "kube-like", it will sort above non "kube-like" - // version strings, which are ordered lexicographically. "Kube-like" - // versions start with a "v", then are followed by a number (the major - // version), then optionally the string "alpha" or "beta" and another - // number (the minor version). These are sorted first by GA > beta > - // alpha (where GA is a version with no suffix such as beta or alpha), - // and then by comparing major version, then minor version. An example + // Versions: Versions is the list of all supported versions for this resource. + // If Version field is provided, this field is optional. Validation: All + // versions must use the same validation schema for now. i.e., top level + // Validation field is applied to all of these versions. Order: The version + // name will be used to compute the order. If the version string is + // "kube-like", it will sort above non "kube-like" version strings, which are + // ordered lexicographically. "Kube-like" versions start with a "v", then are + // followed by a number (the major version), then optionally the string "alpha" + // or "beta" and another number (the minor version). These are sorted first by + // GA > beta > alpha (where GA is a version with no suffix such as beta or + // alpha), and then by comparing major version, then minor version. An example // sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, // v12alpha1, v11alpha2, foo1, foo10. +optional Versions []*CustomResourceDefinitionVersion `json:"versions,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AdditionalPrinterColumns") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalPrinterColumns") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalPrinterColumns") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalPrinterColumns") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomResourceDefinitionSpec) MarshalJSON() ([]byte, error) { +func (s CustomResourceDefinitionSpec) MarshalJSON() ([]byte, error) { type NoMethod CustomResourceDefinitionSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CustomResourceDefinitionVersion struct { // Name: Name is the version name, e.g. “v1”, “v2beta1”, etc. Name string `json:"name,omitempty"` - - // Served: Served is a flag enabling/disabling this version from being - // served via REST APIs + // Served: Served is a flag enabling/disabling this version from being served + // via REST APIs Served bool `json:"served,omitempty"` - - // Storage: Storage flags the version as storage version. There must be - // exactly one flagged as storage version. + // Storage: Storage flags the version as storage version. There must be exactly + // one flagged as storage version. Storage bool `json:"storage,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomResourceDefinitionVersion) MarshalJSON() ([]byte, error) { +func (s CustomResourceDefinitionVersion) MarshalJSON() ([]byte, error) { type NoMethod CustomResourceDefinitionVersion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomResourceSubresourceScale: CustomResourceSubresourceScale -// defines how to serve the scale subresource for CustomResources. +// CustomResourceSubresourceScale: CustomResourceSubresourceScale defines how +// to serve the scale subresource for CustomResources. type CustomResourceSubresourceScale struct { - // LabelSelectorPath: LabelSelectorPath defines the JSON path inside of - // a CustomResource that corresponds to Scale.Status.Selector. Only JSON - // paths without the array notation are allowed. Must be a JSON Path - // under .status. Must be set to work with HPA. If there is no value - // under the given path in the CustomResource, the status label selector - // value in the /scale subresource will default to the empty string. - // +optional + // LabelSelectorPath: LabelSelectorPath defines the JSON path inside of a + // CustomResource that corresponds to Scale.Status.Selector. Only JSON paths + // without the array notation are allowed. Must be a JSON Path under .status. + // Must be set to work with HPA. If there is no value under the given path in + // the CustomResource, the status label selector value in the /scale + // subresource will default to the empty string. +optional LabelSelectorPath string `json:"labelSelectorPath,omitempty"` - // SpecReplicasPath: SpecReplicasPath defines the JSON path inside of a - // CustomResource that corresponds to Scale.Spec.Replicas. Only JSON - // paths without the array notation are allowed. Must be a JSON Path - // under .spec. If there is no value under the given path in the - // CustomResource, the /scale subresource will return an error on GET. + // CustomResource that corresponds to Scale.Spec.Replicas. Only JSON paths + // without the array notation are allowed. Must be a JSON Path under .spec. If + // there is no value under the given path in the CustomResource, the /scale + // subresource will return an error on GET. SpecReplicasPath string `json:"specReplicasPath,omitempty"` - - // StatusReplicasPath: StatusReplicasPath defines the JSON path inside - // of a CustomResource that corresponds to Scale.Status.Replicas. Only - // JSON paths without the array notation are allowed. Must be a JSON - // Path under .status. If there is no value under the given path in the - // CustomResource, the status replica value in the /scale subresource - // will default to 0. + // StatusReplicasPath: StatusReplicasPath defines the JSON path inside of a + // CustomResource that corresponds to Scale.Status.Replicas. Only JSON paths + // without the array notation are allowed. Must be a JSON Path under .status. + // If there is no value under the given path in the CustomResource, the status + // replica value in the /scale subresource will default to 0. StatusReplicasPath string `json:"statusReplicasPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LabelSelectorPath") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "LabelSelectorPath") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LabelSelectorPath") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LabelSelectorPath") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomResourceSubresourceScale) MarshalJSON() ([]byte, error) { +func (s CustomResourceSubresourceScale) MarshalJSON() ([]byte, error) { type NoMethod CustomResourceSubresourceScale - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CustomResourceSubresourceStatus: CustomResourceSubresourceStatus -// defines how to serve the status subresource for CustomResources. -// Status is represented by the `.status` JSON path inside of a -// CustomResource. When set, * exposes a /status subresource for the -// custom resource * PUT requests to the /status subresource take a -// custom resource object, and ignore changes to anything except the -// status stanza * PUT/POST/PATCH requests to the custom resource ignore -// changes to the status stanza + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CustomResourceSubresourceStatus: CustomResourceSubresourceStatus defines how +// to serve the status subresource for CustomResources. Status is represented +// by the `.status` JSON path inside of a CustomResource. When set, * exposes a +// /status subresource for the custom resource * PUT requests to the /status +// subresource take a custom resource object, and ignore changes to anything +// except the status stanza * PUT/POST/PATCH requests to the custom resource +// ignore changes to the status stanza type CustomResourceSubresourceStatus struct { } -// CustomResourceSubresources: CustomResourceSubresources defines the -// status and scale subresources for CustomResources. +// CustomResourceSubresources: CustomResourceSubresources defines the status +// and scale subresources for CustomResources. type CustomResourceSubresources struct { - // Scale: Scale denotes the scale subresource for CustomResources - // +optional + // Scale: Scale denotes the scale subresource for CustomResources +optional Scale *CustomResourceSubresourceScale `json:"scale,omitempty"` - - // Status: Status denotes the status subresource for CustomResources - // +optional + // Status: Status denotes the status subresource for CustomResources +optional Status *CustomResourceSubresourceStatus `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Scale") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Scale") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Scale") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomResourceSubresources) MarshalJSON() ([]byte, error) { +func (s CustomResourceSubresources) MarshalJSON() ([]byte, error) { type NoMethod CustomResourceSubresources - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomResourceValidation: CustomResourceValidation is a list of -// validation methods for CustomResources. +// CustomResourceValidation: CustomResourceValidation is a list of validation +// methods for CustomResources. type CustomResourceValidation struct { - // OpenAPIV3Schema: OpenAPIV3Schema is the OpenAPI v3 schema to be - // validated against. +optional + // OpenAPIV3Schema: OpenAPIV3Schema is the OpenAPI v3 schema to be validated + // against. +optional OpenAPIV3Schema *JSONSchemaProps `json:"openAPIV3Schema,omitempty"` - // ForceSendFields is a list of field names (e.g. "OpenAPIV3Schema") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "OpenAPIV3Schema") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "OpenAPIV3Schema") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomResourceValidation) MarshalJSON() ([]byte, error) { +func (s CustomResourceValidation) MarshalJSON() ([]byte, error) { type NoMethod CustomResourceValidation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExternalDocumentation: ExternalDocumentation allows referencing an -// external resource for extended documentation. +// ExternalDocumentation: ExternalDocumentation allows referencing an external +// resource for extended documentation. type ExternalDocumentation struct { Description string `json:"description,omitempty"` - - Url string `json:"url,omitempty"` - + Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExternalDocumentation) MarshalJSON() ([]byte, error) { +func (s ExternalDocumentation) MarshalJSON() ([]byte, error) { type NoMethod ExternalDocumentation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JSON: JSON represents any valid JSON value. These types are -// supported: bool, int64, float64, string, []interface{}, -// map[string]interface{} and nil. +// JSON: JSON represents any valid JSON value. These types are supported: bool, +// int64, float64, string, []interface{}, map[string]interface{} and nil. type JSON struct { Raw string `json:"raw,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Raw") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Raw") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Raw") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Raw") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JSON) MarshalJSON() ([]byte, error) { +func (s JSON) MarshalJSON() ([]byte, error) { type NoMethod JSON - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JSONSchemaProps: JSONSchemaProps is a JSON-Schema following -// Specification Draft 4 (http://json-schema.org/). +// JSONSchemaProps: JSONSchemaProps is a JSON-Schema following Specification +// Draft 4 (http://json-schema.org/). type JSONSchemaProps struct { - AdditionalItems *JSONSchemaPropsOrBool `json:"additionalItems,omitempty"` - - AdditionalProperties *JSONSchemaPropsOrBool `json:"additionalProperties,omitempty"` - - AllOf []*JSONSchemaProps `json:"allOf,omitempty"` - - AnyOf []*JSONSchemaProps `json:"anyOf,omitempty"` - - Default *JSON `json:"default,omitempty"` - - Definitions map[string]JSONSchemaProps `json:"definitions,omitempty"` - - Dependencies map[string]JSONSchemaPropsOrStringArray `json:"dependencies,omitempty"` - - Description string `json:"description,omitempty"` - - Enum []string `json:"enum,omitempty"` - - Example *JSON `json:"example,omitempty"` - - ExclusiveMaximum bool `json:"exclusiveMaximum,omitempty"` - - ExclusiveMinimum bool `json:"exclusiveMinimum,omitempty"` - - ExternalDocs *ExternalDocumentation `json:"externalDocs,omitempty"` - - Format string `json:"format,omitempty"` - - Id string `json:"id,omitempty"` - - Items *JSONSchemaPropsOrArray `json:"items,omitempty"` - - MaxItems int64 `json:"maxItems,omitempty,string"` - - MaxLength int64 `json:"maxLength,omitempty,string"` - - MaxProperties int64 `json:"maxProperties,omitempty,string"` - - Maximum float64 `json:"maximum,omitempty"` - - MinItems int64 `json:"minItems,omitempty,string"` - - MinLength int64 `json:"minLength,omitempty,string"` - - MinProperties int64 `json:"minProperties,omitempty,string"` - - Minimum float64 `json:"minimum,omitempty"` - - MultipleOf float64 `json:"multipleOf,omitempty"` - - Not *JSONSchemaProps `json:"not,omitempty"` - - OneOf []*JSONSchemaProps `json:"oneOf,omitempty"` - - Pattern string `json:"pattern,omitempty"` - - PatternProperties map[string]JSONSchemaProps `json:"patternProperties,omitempty"` - - Properties map[string]JSONSchemaProps `json:"properties,omitempty"` - - Ref string `json:"ref,omitempty"` - - Required []string `json:"required,omitempty"` - - Schema string `json:"schema,omitempty"` - - Title string `json:"title,omitempty"` - - Type string `json:"type,omitempty"` - - UniqueItems bool `json:"uniqueItems,omitempty"` - + AdditionalItems *JSONSchemaPropsOrBool `json:"additionalItems,omitempty"` + AdditionalProperties *JSONSchemaPropsOrBool `json:"additionalProperties,omitempty"` + AllOf []*JSONSchemaProps `json:"allOf,omitempty"` + AnyOf []*JSONSchemaProps `json:"anyOf,omitempty"` + Default *JSON `json:"default,omitempty"` + Definitions map[string]JSONSchemaProps `json:"definitions,omitempty"` + Dependencies map[string]JSONSchemaPropsOrStringArray `json:"dependencies,omitempty"` + Description string `json:"description,omitempty"` + Enum []string `json:"enum,omitempty"` + Example *JSON `json:"example,omitempty"` + ExclusiveMaximum bool `json:"exclusiveMaximum,omitempty"` + ExclusiveMinimum bool `json:"exclusiveMinimum,omitempty"` + ExternalDocs *ExternalDocumentation `json:"externalDocs,omitempty"` + Format string `json:"format,omitempty"` + Id string `json:"id,omitempty"` + Items *JSONSchemaPropsOrArray `json:"items,omitempty"` + MaxItems int64 `json:"maxItems,omitempty,string"` + MaxLength int64 `json:"maxLength,omitempty,string"` + MaxProperties int64 `json:"maxProperties,omitempty,string"` + Maximum float64 `json:"maximum,omitempty"` + MinItems int64 `json:"minItems,omitempty,string"` + MinLength int64 `json:"minLength,omitempty,string"` + MinProperties int64 `json:"minProperties,omitempty,string"` + Minimum float64 `json:"minimum,omitempty"` + MultipleOf float64 `json:"multipleOf,omitempty"` + Not *JSONSchemaProps `json:"not,omitempty"` + OneOf []*JSONSchemaProps `json:"oneOf,omitempty"` + Pattern string `json:"pattern,omitempty"` + PatternProperties map[string]JSONSchemaProps `json:"patternProperties,omitempty"` + Properties map[string]JSONSchemaProps `json:"properties,omitempty"` + Ref string `json:"ref,omitempty"` + Required []string `json:"required,omitempty"` + Schema string `json:"schema,omitempty"` + Title string `json:"title,omitempty"` + Type string `json:"type,omitempty"` + UniqueItems bool `json:"uniqueItems,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalItems") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalItems") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalItems") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JSONSchemaProps) MarshalJSON() ([]byte, error) { +func (s JSONSchemaProps) MarshalJSON() ([]byte, error) { type NoMethod JSONSchemaProps - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *JSONSchemaProps) UnmarshalJSON(data []byte) error { @@ -765,409 +642,324 @@ func (s *JSONSchemaProps) UnmarshalJSON(data []byte) error { return nil } -// JSONSchemaPropsOrArray: JSONSchemaPropsOrArray represents a value -// that can either be a JSONSchemaProps or an array of JSONSchemaProps. -// Mainly here for serialization purposes. +// JSONSchemaPropsOrArray: JSONSchemaPropsOrArray represents a value that can +// either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for +// serialization purposes. type JSONSchemaPropsOrArray struct { JsonSchemas []*JSONSchemaProps `json:"jsonSchemas,omitempty"` - - Schema *JSONSchemaProps `json:"schema,omitempty"` - + Schema *JSONSchemaProps `json:"schema,omitempty"` // ForceSendFields is a list of field names (e.g. "JsonSchemas") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "JsonSchemas") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "JsonSchemas") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JSONSchemaPropsOrArray) MarshalJSON() ([]byte, error) { +func (s JSONSchemaPropsOrArray) MarshalJSON() ([]byte, error) { type NoMethod JSONSchemaPropsOrArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JSONSchemaPropsOrBool: JSONSchemaPropsOrBool represents -// JSONSchemaProps or a boolean value. Defaults to true for the boolean -// property. +// JSONSchemaPropsOrBool: JSONSchemaPropsOrBool represents JSONSchemaProps or a +// boolean value. Defaults to true for the boolean property. type JSONSchemaPropsOrBool struct { - Allows bool `json:"allows,omitempty"` - + Allows bool `json:"allows,omitempty"` Schema *JSONSchemaProps `json:"schema,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Allows") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Allows") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Allows") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JSONSchemaPropsOrBool) MarshalJSON() ([]byte, error) { +func (s JSONSchemaPropsOrBool) MarshalJSON() ([]byte, error) { type NoMethod JSONSchemaPropsOrBool - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JSONSchemaPropsOrStringArray: JSONSchemaPropsOrStringArray represents -// a JSONSchemaProps or a string array. +// JSONSchemaPropsOrStringArray: JSONSchemaPropsOrStringArray represents a +// JSONSchemaProps or a string array. type JSONSchemaPropsOrStringArray struct { - Property []string `json:"property,omitempty"` - - Schema *JSONSchemaProps `json:"schema,omitempty"` - + Property []string `json:"property,omitempty"` + Schema *JSONSchemaProps `json:"schema,omitempty"` // ForceSendFields is a list of field names (e.g. "Property") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Property") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Property") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JSONSchemaPropsOrStringArray) MarshalJSON() ([]byte, error) { +func (s JSONSchemaPropsOrStringArray) MarshalJSON() ([]byte, error) { type NoMethod JSONSchemaPropsOrStringArray - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ListCustomResourceDefinitionsResponse struct { // ApiVersion: The API version for this call such as // "k8s.apiextensions.io/v1beta1". ApiVersion string `json:"apiVersion,omitempty"` - // Items: List of CustomResourceDefinitions. Items []*CustomResourceDefinition `json:"items,omitempty"` - // Kind: The kind of this resource, in this case // "CustomResourceDefinitionList". Kind string `json:"kind,omitempty"` - - // Metadata: Metadata associated with this CustomResourceDefinition - // list. + // Metadata: Metadata associated with this CustomResourceDefinition list. Metadata *ListMeta `json:"metadata,omitempty"` - // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListCustomResourceDefinitionsResponse) MarshalJSON() ([]byte, error) { +func (s ListCustomResourceDefinitionsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListCustomResourceDefinitionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListMeta: ListMeta describes metadata that synthetic resources must -// have, including lists and various status objects. A resource may have -// only one of {ObjectMeta, ListMeta}. +// ListMeta: ListMeta describes metadata that synthetic resources must have, +// including lists and various status objects. A resource may have only one of +// {ObjectMeta, ListMeta}. type ListMeta struct { - // Continue: continue may be set if the user set a limit on the number - // of items returned, and indicates that the server has more data - // available. The value is opaque and may be used to issue another - // request to the endpoint that served this list to retrieve the next - // set of available objects. Continuing a list may not be possible if - // the server configuration has changed or more than a few minutes have - // passed. The resourceVersion field returned when using this continue - // value will be identical to the value in the first response. + // Continue: continue may be set if the user set a limit on the number of items + // returned, and indicates that the server has more data available. The value + // is opaque and may be used to issue another request to the endpoint that + // served this list to retrieve the next set of available objects. Continuing a + // list may not be possible if the server configuration has changed or more + // than a few minutes have passed. The resourceVersion field returned when + // using this continue value will be identical to the value in the first + // response. Continue string `json:"continue,omitempty"` - - // ResourceVersion: String that identifies the server's internal version - // of this object that can be used by clients to determine when objects - // have changed. Value must be treated as opaque by clients and passed - // unmodified back to the server. Populated by the system. Read-only. - // More info: + // ResourceVersion: String that identifies the server's internal version of + // this object that can be used by clients to determine when objects have + // changed. Value must be treated as opaque by clients and passed unmodified + // back to the server. Populated by the system. Read-only. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency // +optional ResourceVersion string `json:"resourceVersion,omitempty"` - - // SelfLink: SelfLink is a URL representing this object. Populated by - // the system. Read-only. +optional + // SelfLink: SelfLink is a URL representing this object. Populated by the + // system. Read-only. +optional SelfLink string `json:"selfLink,omitempty"` - // ForceSendFields is a list of field names (e.g. "Continue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Continue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Continue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListMeta) MarshalJSON() ([]byte, error) { +func (s ListMeta) MarshalJSON() ([]byte, error) { type NoMethod ListMeta - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ObjectMeta: k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is -// metadata that all persisted resources must have, which includes all -// objects users must create. +// ObjectMeta: k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that +// all persisted resources must have, which includes all objects users must +// create. type ObjectMeta struct { - // Annotations: (Optional) Annotations is an unstructured key value map - // stored with a resource that may be set by external tools to store and - // retrieve arbitrary metadata. They are not queryable and should be - // preserved when modifying objects. More info: + // Annotations: (Optional) Annotations is an unstructured key value map stored + // with a resource that may be set by external tools to store and retrieve + // arbitrary metadata. They are not queryable and should be preserved when + // modifying objects. More info: // http://kubernetes.io/docs/user-guide/annotations Annotations map[string]string `json:"annotations,omitempty"` - - // ClusterName: (Optional) Cloud Run fully managed: not supported Cloud - // Run for Anthos: supported The name of the cluster which the object - // belongs to. This is used to distinguish resources with same name and - // namespace in different clusters. This field is not set anywhere right - // now and apiserver is going to ignore it if set in create or update - // request. + // ClusterName: (Optional) Cloud Run fully managed: not supported Cloud Run for + // Anthos: supported The name of the cluster which the object belongs to. This + // is used to distinguish resources with same name and namespace in different + // clusters. This field is not set anywhere right now and apiserver is going to + // ignore it if set in create or update request. ClusterName string `json:"clusterName,omitempty"` - - // CreationTimestamp: (Optional) CreationTimestamp is a timestamp - // representing the server time when this object was created. It is not - // guaranteed to be set in happens-before order across separate - // operations. Clients may not set this value. It is represented in - // RFC3339 form and is in UTC. Populated by the system. Read-only. Null - // for lists. More info: + // CreationTimestamp: (Optional) CreationTimestamp is a timestamp representing + // the server time when this object was created. It is not guaranteed to be set + // in happens-before order across separate operations. Clients may not set this + // value. It is represented in RFC3339 form and is in UTC. Populated by the + // system. Read-only. Null for lists. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata CreationTimestamp string `json:"creationTimestamp,omitempty"` - // DeletionGracePeriodSeconds: (Optional) Cloud Run fully managed: not - // supported Cloud Run for Anthos: supported Number of seconds allowed - // for this object to gracefully terminate before it will be removed - // from the system. Only set when deletionTimestamp is also set. May - // only be shortened. Read-only. + // supported Cloud Run for Anthos: supported Number of seconds allowed for this + // object to gracefully terminate before it will be removed from the system. + // Only set when deletionTimestamp is also set. May only be shortened. + // Read-only. DeletionGracePeriodSeconds int64 `json:"deletionGracePeriodSeconds,omitempty"` - - // DeletionTimestamp: (Optional) Cloud Run fully managed: not supported - // Cloud Run for Anthos: supported DeletionTimestamp is RFC 3339 date - // and time at which this resource will be deleted. This field is set by - // the server when a graceful deletion is requested by the user, and is - // not directly settable by a client. The resource is expected to be - // deleted (no longer visible from resource lists, and not reachable by - // name) after the time in this field, once the finalizers list is - // empty. As long as the finalizers list contains items, deletion is - // blocked. Once the deletionTimestamp is set, this value may not be - // unset or be set further into the future, although it may be shortened - // or the resource may be deleted prior to this time. For example, a - // user may request that a pod is deleted in 30 seconds. The Kubelet - // will react by sending a graceful termination signal to the containers - // in the pod. After that 30 seconds, the Kubelet will send a hard - // termination signal (SIGKILL) to the container and after cleanup, - // remove the pod from the API. In the presence of network partitions, - // this object may still exist after this timestamp, until an - // administrator or automated process can determine the resource is - // fully terminated. If not set, graceful deletion of the object has not - // been requested. Populated by the system when a graceful deletion is + // DeletionTimestamp: (Optional) Cloud Run fully managed: not supported Cloud + // Run for Anthos: supported DeletionTimestamp is RFC 3339 date and time at + // which this resource will be deleted. This field is set by the server when a + // graceful deletion is requested by the user, and is not directly settable by + // a client. The resource is expected to be deleted (no longer visible from + // resource lists, and not reachable by name) after the time in this field, + // once the finalizers list is empty. As long as the finalizers list contains + // items, deletion is blocked. Once the deletionTimestamp is set, this value + // may not be unset or be set further into the future, although it may be + // shortened or the resource may be deleted prior to this time. For example, a + // user may request that a pod is deleted in 30 seconds. The Kubelet will react + // by sending a graceful termination signal to the containers in the pod. After + // that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) + // to the container and after cleanup, remove the pod from the API. In the + // presence of network partitions, this object may still exist after this + // timestamp, until an administrator or automated process can determine the + // resource is fully terminated. If not set, graceful deletion of the object + // has not been requested. Populated by the system when a graceful deletion is // requested. Read-only. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata DeletionTimestamp string `json:"deletionTimestamp,omitempty"` - - // Finalizers: (Optional) Cloud Run fully managed: not supported Cloud - // Run for Anthos: supported Must be empty before the object is deleted - // from the registry. Each entry is an identifier for the responsible - // component that will remove the entry from the list. If the - // deletionTimestamp of the object is non-nil, entries in this list can - // only be removed. +patchStrategy=merge + // Finalizers: (Optional) Cloud Run fully managed: not supported Cloud Run for + // Anthos: supported Must be empty before the object is deleted from the + // registry. Each entry is an identifier for the responsible component that + // will remove the entry from the list. If the deletionTimestamp of the object + // is non-nil, entries in this list can only be removed. +patchStrategy=merge Finalizers []string `json:"finalizers,omitempty"` - - // GenerateName: (Optional) Cloud Run fully managed: not supported Cloud - // Run for Anthos: supported GenerateName is an optional prefix, used by - // the server, to generate a unique name ONLY IF the Name field has not - // been provided. If this field is used, the name returned to the client - // will be different than the name passed. This value will also be - // combined with a unique suffix. The provided value has the same - // validation rules as the Name field, and may be truncated by the - // length of the suffix required to make the value unique on the server. - // If this field is specified and the generated name exists, the server - // will NOT return a 409 - instead, it will either return 201 Created or - // 500 with Reason ServerTimeout indicating a unique name could not be - // found in the time allotted, and the client should retry (optionally - // after the time indicated in the Retry-After header). Applied only if - // Name is not specified. More info: + // GenerateName: (Optional) Cloud Run fully managed: not supported Cloud Run + // for Anthos: supported GenerateName is an optional prefix, used by the + // server, to generate a unique name ONLY IF the Name field has not been + // provided. If this field is used, the name returned to the client will be + // different than the name passed. This value will also be combined with a + // unique suffix. The provided value has the same validation rules as the Name + // field, and may be truncated by the length of the suffix required to make the + // value unique on the server. If this field is specified and the generated + // name exists, the server will NOT return a 409 - instead, it will either + // return 201 Created or 500 with Reason ServerTimeout indicating a unique name + // could not be found in the time allotted, and the client should retry + // (optionally after the time indicated in the Retry-After header). Applied + // only if Name is not specified. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency // string generateName = 2; GenerateName string `json:"generateName,omitempty"` - - // Generation: (Optional) A sequence number representing a specific - // generation of the desired state. Populated by the system. Read-only. + // Generation: (Optional) A sequence number representing a specific generation + // of the desired state. Populated by the system. Read-only. Generation int64 `json:"generation,omitempty"` - // Labels: (Optional) Map of string keys and values that can be used to - // organize and categorize (scope and select) objects. May match - // selectors of replication controllers and routes. More info: + // organize and categorize (scope and select) objects. May match selectors of + // replication controllers and routes. More info: // http://kubernetes.io/docs/user-guide/labels Labels map[string]string `json:"labels,omitempty"` - - // Name: Name must be unique within a namespace, within a Cloud Run - // region. Is required when creating resources, although some resources - // may allow a client to request the generation of an appropriate name - // automatically. Name is primarily intended for creation idempotence - // and configuration definition. Cannot be updated. More info: + // Name: Name must be unique within a namespace, within a Cloud Run region. Is + // required when creating resources, although some resources may allow a client + // to request the generation of an appropriate name automatically. Name is + // primarily intended for creation idempotence and configuration definition. + // Cannot be updated. More info: // http://kubernetes.io/docs/user-guide/identifiers#names +optional Name string `json:"name,omitempty"` - - // Namespace: Namespace defines the space within each name must be - // unique, within a Cloud Run region. In Cloud Run the namespace must be - // equal to either the project ID or project number. + // Namespace: Namespace defines the space within each name must be unique, + // within a Cloud Run region. In Cloud Run the namespace must be equal to + // either the project ID or project number. Namespace string `json:"namespace,omitempty"` - - // OwnerReferences: (Optional) Cloud Run fully managed: not supported - // Cloud Run for Anthos: supported List of objects that own this object. - // If ALL objects in the list have been deleted, this object will be - // garbage collected. + // OwnerReferences: (Optional) Cloud Run fully managed: not supported Cloud Run + // for Anthos: supported List of objects that own this object. If ALL objects + // in the list have been deleted, this object will be garbage collected. OwnerReferences []*OwnerReference `json:"ownerReferences,omitempty"` - - // ResourceVersion: (Optional) An opaque value that represents the - // internal version of this object that can be used by clients to - // determine when objects have changed. May be used for optimistic - // concurrency, change detection, and the watch operation on a resource - // or set of resources. Clients must treat these values as opaque and - // passed unmodified back to the server. They may only be valid for a - // particular resource or set of resources. Populated by the system. - // Read-only. Value must be treated as opaque by clients. More info: + // ResourceVersion: (Optional) An opaque value that represents the internal + // version of this object that can be used by clients to determine when objects + // have changed. May be used for optimistic concurrency, change detection, and + // the watch operation on a resource or set of resources. Clients must treat + // these values as opaque and passed unmodified back to the server. They may + // only be valid for a particular resource or set of resources. Populated by + // the system. Read-only. Value must be treated as opaque by clients. More + // info: // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency ResourceVersion string `json:"resourceVersion,omitempty"` - - // SelfLink: (Optional) SelfLink is a URL representing this object. - // Populated by the system. Read-only. string selfLink = 4; + // SelfLink: (Optional) SelfLink is a URL representing this object. Populated + // by the system. Read-only. string selfLink = 4; SelfLink string `json:"selfLink,omitempty"` - - // Uid: (Optional) UID is the unique in time and space value for this - // object. It is typically generated by the server on successful - // creation of a resource and is not allowed to change on PUT - // operations. Populated by the system. Read-only. More info: - // http://kubernetes.io/docs/user-guide/identifiers#uids + // Uid: (Optional) UID is the unique in time and space value for this object. + // It is typically generated by the server on successful creation of a resource + // and is not allowed to change on PUT operations. Populated by the system. + // Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids Uid string `json:"uid,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectMeta) MarshalJSON() ([]byte, error) { +func (s ObjectMeta) MarshalJSON() ([]byte, error) { type NoMethod ObjectMeta - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OwnerReference: OwnerReference contains enough information to let you -// identify an owning object. Currently, an owning object must be in the -// same namespace, so there is no namespace field. +// identify an owning object. Currently, an owning object must be in the same +// namespace, so there is no namespace field. type OwnerReference struct { // ApiVersion: API version of the referent. ApiVersion string `json:"apiVersion,omitempty"` - - // BlockOwnerDeletion: If true, AND if the owner has the - // "foregroundDeletion" finalizer, then the owner cannot be deleted from - // the key-value store until this reference is removed. Defaults to - // false. To set this field, a user needs "delete" permission of the - // owner, otherwise 422 (Unprocessable Entity) will be returned. - // +optional + // BlockOwnerDeletion: If true, AND if the owner has the "foregroundDeletion" + // finalizer, then the owner cannot be deleted from the key-value store until + // this reference is removed. Defaults to false. To set this field, a user + // needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) + // will be returned. +optional BlockOwnerDeletion bool `json:"blockOwnerDeletion,omitempty"` - - // Controller: If true, this reference points to the managing - // controller. +optional + // Controller: If true, this reference points to the managing controller. + // +optional Controller bool `json:"controller,omitempty"` - // Kind: Kind of the referent. More info: // https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` - // Name: Name of the referent. More info: // http://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name,omitempty"` - // Uid: UID of the referent. More info: // http://kubernetes.io/docs/user-guide/identifiers#uids Uid string `json:"uid,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OwnerReference) MarshalJSON() ([]byte, error) { +func (s OwnerReference) MarshalJSON() ([]byte, error) { type NoMethod OwnerReference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "run.customresourcedefinitions.list": - type CustomresourcedefinitionsListCall struct { s *Service urlParams_ gensupport.URLParams @@ -1182,32 +974,32 @@ func (r *CustomresourcedefinitionsService) List() *CustomresourcedefinitionsList return c } -// Continue sets the optional parameter "continue": Optional encoded -// string to continue paging. +// Continue sets the optional parameter "continue": Optional encoded string to +// continue paging. func (c *CustomresourcedefinitionsListCall) Continue(continue_ string) *CustomresourcedefinitionsListCall { c.urlParams_.Set("continue", continue_) return c } -// FieldSelector sets the optional parameter "fieldSelector": Allows to -// filter resources based on a specific value for a field name. Send -// this in a query string format. i.e. 'metadata.name%3Dlorem'. Not -// currently used by Cloud Run. +// FieldSelector sets the optional parameter "fieldSelector": Allows to filter +// resources based on a specific value for a field name. Send this in a query +// string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud +// Run. func (c *CustomresourcedefinitionsListCall) FieldSelector(fieldSelector string) *CustomresourcedefinitionsListCall { c.urlParams_.Set("fieldSelector", fieldSelector) return c } -// IncludeUninitialized sets the optional parameter -// "includeUninitialized": Not currently used by Cloud Run. +// IncludeUninitialized sets the optional parameter "includeUninitialized": Not +// currently used by Cloud Run. func (c *CustomresourcedefinitionsListCall) IncludeUninitialized(includeUninitialized bool) *CustomresourcedefinitionsListCall { c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized)) return c } -// LabelSelector sets the optional parameter "labelSelector": Allows to -// filter resources based on a label. Supported operations are =, !=, -// exists, in, and notIn. +// LabelSelector sets the optional parameter "labelSelector": Allows to filter +// resources based on a label. Supported operations are =, !=, exists, in, and +// notIn. func (c *CustomresourcedefinitionsListCall) LabelSelector(labelSelector string) *CustomresourcedefinitionsListCall { c.urlParams_.Set("labelSelector", labelSelector) return c @@ -1219,57 +1011,53 @@ func (c *CustomresourcedefinitionsListCall) Limit(limit int64) *Customresourcede return c } -// Parent sets the optional parameter "parent": The project ID or -// project number from which the storages should be listed. +// Parent sets the optional parameter "parent": The project ID or project +// number from which the storages should be listed. func (c *CustomresourcedefinitionsListCall) Parent(parent string) *CustomresourcedefinitionsListCall { c.urlParams_.Set("parent", parent) return c } -// ResourceVersion sets the optional parameter "resourceVersion": The -// baseline resource version from which the list or watch operation -// should start. Not currently used by Cloud Run. +// ResourceVersion sets the optional parameter "resourceVersion": The baseline +// resource version from which the list or watch operation should start. Not +// currently used by Cloud Run. func (c *CustomresourcedefinitionsListCall) ResourceVersion(resourceVersion string) *CustomresourcedefinitionsListCall { c.urlParams_.Set("resourceVersion", resourceVersion) return c } -// Watch sets the optional parameter "watch": Flag that indicates that -// the client expects to watch this resource as well. Not currently used -// by Cloud Run. +// Watch sets the optional parameter "watch": Flag that indicates that the +// client expects to watch this resource as well. Not currently used by Cloud +// Run. func (c *CustomresourcedefinitionsListCall) Watch(watch bool) *CustomresourcedefinitionsListCall { c.urlParams_.Set("watch", fmt.Sprint(watch)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *CustomresourcedefinitionsListCall) Fields(s ...googleapi.Field) *CustomresourcedefinitionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *CustomresourcedefinitionsListCall) IfNoneMatch(entityTag string) *CustomresourcedefinitionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *CustomresourcedefinitionsListCall) Context(ctx context.Context) *CustomresourcedefinitionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *CustomresourcedefinitionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1278,12 +1066,7 @@ func (c *CustomresourcedefinitionsListCall) Header() http.Header { } func (c *CustomresourcedefinitionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210331") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1297,17 +1080,15 @@ func (c *CustomresourcedefinitionsListCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.customresourcedefinitions.list" call. -// Exactly one of *ListCustomResourceDefinitionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either +// Any non-2xx status code is an error. Response headers are in either // *ListCustomResourceDefinitionsResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *CustomresourcedefinitionsListCall) Do(opts ...googleapi.CallOption) (*ListCustomResourceDefinitionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1315,17 +1096,17 @@ func (c *CustomresourcedefinitionsListCall) Do(opts ...googleapi.CallOption) (*L if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListCustomResourceDefinitionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1338,66 +1119,7 @@ func (c *CustomresourcedefinitionsListCall) Do(opts ...googleapi.CallOption) (*L return nil, err } return ret, nil - // { - // "description": "Rpc to list custom resource definitions.", - // "flatPath": "apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions", - // "httpMethod": "GET", - // "id": "run.customresourcedefinitions.list", - // "parameterOrder": [], - // "parameters": { - // "continue": { - // "description": "Optional encoded string to continue paging.", - // "location": "query", - // "type": "string" - // }, - // "fieldSelector": { - // "description": "Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run.", - // "location": "query", - // "type": "string" - // }, - // "includeUninitialized": { - // "description": "Not currently used by Cloud Run.", - // "location": "query", - // "type": "boolean" - // }, - // "labelSelector": { - // "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - // "location": "query", - // "type": "string" - // }, - // "limit": { - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "parent": { - // "description": "The project ID or project number from which the storages should be listed.", - // "location": "query", - // "type": "string" - // }, - // "resourceVersion": { - // "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - // "location": "query", - // "type": "string" - // }, - // "watch": { - // "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions", - // "response": { - // "$ref": "ListCustomResourceDefinitionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "run.namespaces.customresourcedefinitions.get": +} type NamespacesCustomresourcedefinitionsGetCall struct { s *Service @@ -1410,8 +1132,8 @@ type NamespacesCustomresourcedefinitionsGetCall struct { // Get: Rpc to get information about a CustomResourceDefinition. // -// - name: The name of the CustomResourceDefinition being retrieved. If -// needed, replace {namespace_id} with the project ID. +// - name: The name of the CustomResourceDefinition being retrieved. If needed, +// replace {namespace_id} with the project ID. func (r *NamespacesCustomresourcedefinitionsService) Get(name string) *NamespacesCustomresourcedefinitionsGetCall { c := &NamespacesCustomresourcedefinitionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1419,33 +1141,29 @@ func (r *NamespacesCustomresourcedefinitionsService) Get(name string) *Namespace } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *NamespacesCustomresourcedefinitionsGetCall) Fields(s ...googleapi.Field) *NamespacesCustomresourcedefinitionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *NamespacesCustomresourcedefinitionsGetCall) IfNoneMatch(entityTag string) *NamespacesCustomresourcedefinitionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *NamespacesCustomresourcedefinitionsGetCall) Context(ctx context.Context) *NamespacesCustomresourcedefinitionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *NamespacesCustomresourcedefinitionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1454,12 +1172,7 @@ func (c *NamespacesCustomresourcedefinitionsGetCall) Header() http.Header { } func (c *NamespacesCustomresourcedefinitionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210331") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1476,16 +1189,15 @@ func (c *NamespacesCustomresourcedefinitionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.namespaces.customresourcedefinitions.get" call. -// Exactly one of *CustomResourceDefinition or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *CustomResourceDefinition.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *NamespacesCustomresourcedefinitionsGetCall) Do(opts ...googleapi.CallOption) (*CustomResourceDefinition, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1493,17 +1205,17 @@ func (c *NamespacesCustomresourcedefinitionsGetCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomResourceDefinition{ ServerResponse: googleapi.ServerResponse{ @@ -1516,35 +1228,7 @@ func (c *NamespacesCustomresourcedefinitionsGetCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Rpc to get information about a CustomResourceDefinition.", - // "flatPath": "apis/apiextensions.k8s.io/v1beta1/namespaces/{namespacesId}/customresourcedefinitions/{customresourcedefinitionsId}", - // "httpMethod": "GET", - // "id": "run.namespaces.customresourcedefinitions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the CustomResourceDefinition being retrieved. If needed, replace {namespace_id} with the project ID.", - // "location": "path", - // "pattern": "^namespaces/[^/]+/customresourcedefinitions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "apis/apiextensions.k8s.io/v1beta1/{+name}", - // "response": { - // "$ref": "CustomResourceDefinition" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "run.projects.locations.customresourcedefinitions.get": +} type ProjectsLocationsCustomresourcedefinitionsGetCall struct { s *Service @@ -1557,8 +1241,8 @@ type ProjectsLocationsCustomresourcedefinitionsGetCall struct { // Get: Rpc to get information about a CustomResourceDefinition. // -// - name: The name of the CustomResourceDefinition being retrieved. If -// needed, replace {namespace_id} with the project ID. +// - name: The name of the CustomResourceDefinition being retrieved. If needed, +// replace {namespace_id} with the project ID. func (r *ProjectsLocationsCustomresourcedefinitionsService) Get(name string) *ProjectsLocationsCustomresourcedefinitionsGetCall { c := &ProjectsLocationsCustomresourcedefinitionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1566,33 +1250,29 @@ func (r *ProjectsLocationsCustomresourcedefinitionsService) Get(name string) *Pr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomresourcedefinitionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomresourcedefinitionsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) Context(ctx context.Context) *ProjectsLocationsCustomresourcedefinitionsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1601,12 +1281,7 @@ func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) Header() http.Header } func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210331") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1623,16 +1298,15 @@ func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.customresourcedefinitions.get" call. -// Exactly one of *CustomResourceDefinition or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *CustomResourceDefinition.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) Do(opts ...googleapi.CallOption) (*CustomResourceDefinition, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1640,17 +1314,17 @@ func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) Do(opts ...googleapi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &CustomResourceDefinition{ ServerResponse: googleapi.ServerResponse{ @@ -1663,35 +1337,7 @@ func (c *ProjectsLocationsCustomresourcedefinitionsGetCall) Do(opts ...googleapi return nil, err } return ret, nil - // { - // "description": "Rpc to get information about a CustomResourceDefinition.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customresourcedefinitions/{customresourcedefinitionsId}", - // "httpMethod": "GET", - // "id": "run.projects.locations.customresourcedefinitions.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the CustomResourceDefinition being retrieved. If needed, replace {namespace_id} with the project ID.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customresourcedefinitions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "CustomResourceDefinition" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "run.projects.locations.customresourcedefinitions.list": +} type ProjectsLocationsCustomresourcedefinitionsListCall struct { s *Service @@ -1704,40 +1350,40 @@ type ProjectsLocationsCustomresourcedefinitionsListCall struct { // List: Rpc to list custom resource definitions. // -// - parent: The project ID or project number from which the storages -// should be listed. +// - parent: The project ID or project number from which the storages should be +// listed. func (r *ProjectsLocationsCustomresourcedefinitionsService) List(parent string) *ProjectsLocationsCustomresourcedefinitionsListCall { c := &ProjectsLocationsCustomresourcedefinitionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Continue sets the optional parameter "continue": Optional encoded -// string to continue paging. +// Continue sets the optional parameter "continue": Optional encoded string to +// continue paging. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Continue(continue_ string) *ProjectsLocationsCustomresourcedefinitionsListCall { c.urlParams_.Set("continue", continue_) return c } -// FieldSelector sets the optional parameter "fieldSelector": Allows to -// filter resources based on a specific value for a field name. Send -// this in a query string format. i.e. 'metadata.name%3Dlorem'. Not -// currently used by Cloud Run. +// FieldSelector sets the optional parameter "fieldSelector": Allows to filter +// resources based on a specific value for a field name. Send this in a query +// string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud +// Run. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsCustomresourcedefinitionsListCall { c.urlParams_.Set("fieldSelector", fieldSelector) return c } -// IncludeUninitialized sets the optional parameter -// "includeUninitialized": Not currently used by Cloud Run. +// IncludeUninitialized sets the optional parameter "includeUninitialized": Not +// currently used by Cloud Run. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsCustomresourcedefinitionsListCall { c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized)) return c } -// LabelSelector sets the optional parameter "labelSelector": Allows to -// filter resources based on a label. Supported operations are =, !=, -// exists, in, and notIn. +// LabelSelector sets the optional parameter "labelSelector": Allows to filter +// resources based on a label. Supported operations are =, !=, exists, in, and +// notIn. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) LabelSelector(labelSelector string) *ProjectsLocationsCustomresourcedefinitionsListCall { c.urlParams_.Set("labelSelector", labelSelector) return c @@ -1749,50 +1395,46 @@ func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Limit(limit int64) return c } -// ResourceVersion sets the optional parameter "resourceVersion": The -// baseline resource version from which the list or watch operation -// should start. Not currently used by Cloud Run. +// ResourceVersion sets the optional parameter "resourceVersion": The baseline +// resource version from which the list or watch operation should start. Not +// currently used by Cloud Run. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsCustomresourcedefinitionsListCall { c.urlParams_.Set("resourceVersion", resourceVersion) return c } -// Watch sets the optional parameter "watch": Flag that indicates that -// the client expects to watch this resource as well. Not currently used -// by Cloud Run. +// Watch sets the optional parameter "watch": Flag that indicates that the +// client expects to watch this resource as well. Not currently used by Cloud +// Run. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Watch(watch bool) *ProjectsLocationsCustomresourcedefinitionsListCall { c.urlParams_.Set("watch", fmt.Sprint(watch)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomresourcedefinitionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomresourcedefinitionsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Context(ctx context.Context) *ProjectsLocationsCustomresourcedefinitionsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1801,12 +1443,7 @@ func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Header() http.Heade } func (c *ProjectsLocationsCustomresourcedefinitionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210331") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1823,17 +1460,15 @@ func (c *ProjectsLocationsCustomresourcedefinitionsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.customresourcedefinitions.list" call. -// Exactly one of *ListCustomResourceDefinitionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either +// Any non-2xx status code is an error. Response headers are in either // *ListCustomResourceDefinitionsResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Do(opts ...googleapi.CallOption) (*ListCustomResourceDefinitionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1841,17 +1476,17 @@ func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Do(opts ...googleap if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListCustomResourceDefinitionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1864,65 +1499,4 @@ func (c *ProjectsLocationsCustomresourcedefinitionsListCall) Do(opts ...googleap return nil, err } return ret, nil - // { - // "description": "Rpc to list custom resource definitions.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customresourcedefinitions", - // "httpMethod": "GET", - // "id": "run.projects.locations.customresourcedefinitions.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "continue": { - // "description": "Optional encoded string to continue paging.", - // "location": "query", - // "type": "string" - // }, - // "fieldSelector": { - // "description": "Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run.", - // "location": "query", - // "type": "string" - // }, - // "includeUninitialized": { - // "description": "Not currently used by Cloud Run.", - // "location": "query", - // "type": "boolean" - // }, - // "labelSelector": { - // "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - // "location": "query", - // "type": "string" - // }, - // "limit": { - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "parent": { - // "description": "The project ID or project number from which the storages should be listed.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "resourceVersion": { - // "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - // "location": "query", - // "type": "string" - // }, - // "watch": { - // "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "v1beta1/{+parent}/customresourcedefinitions", - // "response": { - // "$ref": "ListCustomResourceDefinitionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 3ecf0c3a4ab..7fa78b1c98f 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -5146,7 +5146,7 @@ func (c *ProjectsLocationsExportImageCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.exportImage" call. @@ -5259,7 +5259,7 @@ func (c *ProjectsLocationsExportImageMetadataCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.exportImageMetadata" call. @@ -5374,7 +5374,7 @@ func (c *ProjectsLocationsExportMetadataCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.exportMetadata" call. @@ -5485,7 +5485,7 @@ func (c *ProjectsLocationsExportProjectMetadataCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.exportProjectMetadata" call. @@ -5589,7 +5589,7 @@ func (c *ProjectsLocationsBuildsSubmitCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.builds.submit" call. @@ -5708,7 +5708,7 @@ func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.create" call. @@ -5821,7 +5821,7 @@ func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.delete" call. @@ -5931,7 +5931,7 @@ func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.get" call. @@ -6059,7 +6059,7 @@ func (c *ProjectsLocationsJobsGetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.getIamPolicy" call. @@ -6190,7 +6190,7 @@ func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.list" call. @@ -6330,7 +6330,7 @@ func (c *ProjectsLocationsJobsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.patch" call. @@ -6434,7 +6434,7 @@ func (c *ProjectsLocationsJobsRunCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.run" call. @@ -6539,7 +6539,7 @@ func (c *ProjectsLocationsJobsSetIamPolicyCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.setIamPolicy" call. @@ -6645,7 +6645,7 @@ func (c *ProjectsLocationsJobsTestIamPermissionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.testIamPermissions" call. @@ -6749,7 +6749,7 @@ func (c *ProjectsLocationsJobsExecutionsCancelCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.executions.cancel" call. @@ -6862,7 +6862,7 @@ func (c *ProjectsLocationsJobsExecutionsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.executions.delete" call. @@ -6979,7 +6979,7 @@ func (c *ProjectsLocationsJobsExecutionsExportStatusCall) doRequest(alt string) "name": c.name, "operationId": c.operationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.executions.exportStatus" call. @@ -7089,7 +7089,7 @@ func (c *ProjectsLocationsJobsExecutionsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.executions.get" call. @@ -7222,7 +7222,7 @@ func (c *ProjectsLocationsJobsExecutionsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.executions.list" call. @@ -7353,7 +7353,7 @@ func (c *ProjectsLocationsJobsExecutionsTasksGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.executions.tasks.get" call. @@ -7485,7 +7485,7 @@ func (c *ProjectsLocationsJobsExecutionsTasksListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.jobs.executions.tasks.list" call. @@ -7605,7 +7605,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.operations.delete" call. @@ -7715,7 +7715,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.operations.get" call. @@ -7849,7 +7849,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.operations.list" call. @@ -7980,7 +7980,7 @@ func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.operations.wait" call. @@ -8101,7 +8101,7 @@ func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.create" call. @@ -8215,7 +8215,7 @@ func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.delete" call. @@ -8325,7 +8325,7 @@ func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.get" call. @@ -8454,7 +8454,7 @@ func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.getIamPolicy" call. @@ -8586,7 +8586,7 @@ func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.list" call. @@ -8736,7 +8736,7 @@ func (c *ProjectsLocationsServicesPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.patch" call. @@ -8841,7 +8841,7 @@ func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.setIamPolicy" call. @@ -8947,7 +8947,7 @@ func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.testIamPermissions" call. @@ -9060,7 +9060,7 @@ func (c *ProjectsLocationsServicesRevisionsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.revisions.delete" call. @@ -9177,7 +9177,7 @@ func (c *ProjectsLocationsServicesRevisionsExportStatusCall) doRequest(alt strin "name": c.name, "operationId": c.operationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.revisions.exportStatus" call. @@ -9287,7 +9287,7 @@ func (c *ProjectsLocationsServicesRevisionsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.revisions.get" call. @@ -9419,7 +9419,7 @@ func (c *ProjectsLocationsServicesRevisionsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "run.projects.locations.services.revisions.list" call. diff --git a/runtimeconfig/v1/runtimeconfig-gen.go b/runtimeconfig/v1/runtimeconfig-gen.go index 12c125ccf7f..9e082b91145 100644 --- a/runtimeconfig/v1/runtimeconfig-gen.go +++ b/runtimeconfig/v1/runtimeconfig-gen.go @@ -360,7 +360,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.operations.cancel" call. @@ -458,7 +458,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.operations.delete" call. @@ -586,7 +586,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.operations.list" call. diff --git a/runtimeconfig/v1beta1/runtimeconfig-gen.go b/runtimeconfig/v1beta1/runtimeconfig-gen.go index 2c2527785af..58ad1dfc619 100644 --- a/runtimeconfig/v1beta1/runtimeconfig-gen.go +++ b/runtimeconfig/v1beta1/runtimeconfig-gen.go @@ -1048,7 +1048,7 @@ func (c *ProjectsConfigsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.create" call. @@ -1144,7 +1144,7 @@ func (c *ProjectsConfigsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.delete" call. @@ -1252,7 +1252,7 @@ func (c *ProjectsConfigsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.get" call. @@ -1379,7 +1379,7 @@ func (c *ProjectsConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.getIamPolicy" call. @@ -1504,7 +1504,7 @@ func (c *ProjectsConfigsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.list" call. @@ -1631,7 +1631,7 @@ func (c *ProjectsConfigsSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.setIamPolicy" call. @@ -1739,7 +1739,7 @@ func (c *ProjectsConfigsTestIamPermissionsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.testIamPermissions" call. @@ -1843,7 +1843,7 @@ func (c *ProjectsConfigsUpdateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.update" call. @@ -1952,7 +1952,7 @@ func (c *ProjectsConfigsOperationsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.operations.get" call. @@ -2060,7 +2060,7 @@ func (c *ProjectsConfigsOperationsTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.operations.testIamPermissions" call. @@ -2181,7 +2181,7 @@ func (c *ProjectsConfigsVariablesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.variables.create" call. @@ -2287,7 +2287,7 @@ func (c *ProjectsConfigsVariablesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.variables.delete" call. @@ -2395,7 +2395,7 @@ func (c *ProjectsConfigsVariablesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.variables.get" call. @@ -2540,7 +2540,7 @@ func (c *ProjectsConfigsVariablesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.variables.list" call. @@ -2670,7 +2670,7 @@ func (c *ProjectsConfigsVariablesTestIamPermissionsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.variables.testIamPermissions" call. @@ -2773,7 +2773,7 @@ func (c *ProjectsConfigsVariablesUpdateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.variables.update" call. @@ -2884,7 +2884,7 @@ func (c *ProjectsConfigsVariablesWatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.variables.watch" call. @@ -3003,7 +3003,7 @@ func (c *ProjectsConfigsWaitersCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.waiters.create" call. @@ -3099,7 +3099,7 @@ func (c *ProjectsConfigsWaitersDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.waiters.delete" call. @@ -3208,7 +3208,7 @@ func (c *ProjectsConfigsWaitersGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.waiters.get" call. @@ -3333,7 +3333,7 @@ func (c *ProjectsConfigsWaitersListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.waiters.list" call. @@ -3463,7 +3463,7 @@ func (c *ProjectsConfigsWaitersTestIamPermissionsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "runtimeconfig.projects.configs.waiters.testIamPermissions" call. diff --git a/safebrowsing/v4/safebrowsing-gen.go b/safebrowsing/v4/safebrowsing-gen.go index 5567f02c120..4f8744393f7 100644 --- a/safebrowsing/v4/safebrowsing-gen.go +++ b/safebrowsing/v4/safebrowsing-gen.go @@ -1366,7 +1366,7 @@ func (c *EncodedFullHashesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "encodedRequest": c.encodedRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "safebrowsing.encodedFullHashes.get" call. @@ -1488,7 +1488,7 @@ func (c *EncodedUpdatesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "encodedRequest": c.encodedRequest, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "safebrowsing.encodedUpdates.get" call. @@ -1583,7 +1583,7 @@ func (c *FullHashesFindCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "safebrowsing.fullHashes.find" call. @@ -1679,7 +1679,7 @@ func (c *ThreatHitsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "safebrowsing.threatHits.create" call. @@ -1775,7 +1775,7 @@ func (c *ThreatListUpdatesFetchCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "safebrowsing.threatListUpdates.fetch" call. @@ -1876,7 +1876,7 @@ func (c *ThreatListsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "safebrowsing.threatLists.list" call. @@ -1971,7 +1971,7 @@ func (c *ThreatMatchesFindCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "safebrowsing.threatMatches.find" call. diff --git a/safebrowsing/v5/safebrowsing-gen.go b/safebrowsing/v5/safebrowsing-gen.go index c9b3df52c1d..71119c4a8fd 100644 --- a/safebrowsing/v5/safebrowsing-gen.go +++ b/safebrowsing/v5/safebrowsing-gen.go @@ -371,7 +371,7 @@ func (c *HashesSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "safebrowsing.hashes.search" call. diff --git a/sasportal/v1alpha1/sasportal-gen.go b/sasportal/v1alpha1/sasportal-gen.go index baec6676a02..1f72f7c2241 100644 --- a/sasportal/v1alpha1/sasportal-gen.go +++ b/sasportal/v1alpha1/sasportal-gen.go @@ -2000,7 +2000,7 @@ func (c *CustomersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.get" call. @@ -2116,7 +2116,7 @@ func (c *CustomersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.list" call. @@ -2239,7 +2239,7 @@ func (c *CustomersListGcpProjectDeploymentsCall) doRequest(alt string) (*http.Re return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.listGcpProjectDeployments" call. @@ -2340,7 +2340,7 @@ func (c *CustomersListLegacyOrganizationsCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.listLegacyOrganizations" call. @@ -2438,7 +2438,7 @@ func (c *CustomersMigrateOrganizationCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.migrateOrganization" call. @@ -2546,7 +2546,7 @@ func (c *CustomersPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.patch" call. @@ -2642,7 +2642,7 @@ func (c *CustomersProvisionDeploymentCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.provisionDeployment" call. @@ -2740,7 +2740,7 @@ func (c *CustomersSetupSasAnalyticsCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.setupSasAnalytics" call. @@ -2842,7 +2842,7 @@ func (c *CustomersDeploymentsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.deployments.create" call. @@ -2938,7 +2938,7 @@ func (c *CustomersDeploymentsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.deployments.delete" call. @@ -3045,7 +3045,7 @@ func (c *CustomersDeploymentsGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.deployments.get" call. @@ -3178,7 +3178,7 @@ func (c *CustomersDeploymentsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.deployments.list" call. @@ -3301,7 +3301,7 @@ func (c *CustomersDeploymentsMoveCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.deployments.move" call. @@ -3409,7 +3409,7 @@ func (c *CustomersDeploymentsPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.deployments.patch" call. @@ -3511,7 +3511,7 @@ func (c *CustomersDeploymentsDevicesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.deployments.devices.create" call. @@ -3613,7 +3613,7 @@ func (c *CustomersDeploymentsDevicesCreateSignedCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.deployments.devices.createSigned" call. @@ -3746,7 +3746,7 @@ func (c *CustomersDeploymentsDevicesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.deployments.devices.list" call. @@ -3869,7 +3869,7 @@ func (c *CustomersDevicesCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.devices.create" call. @@ -3971,7 +3971,7 @@ func (c *CustomersDevicesCreateSignedCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.devices.createSigned" call. @@ -4067,7 +4067,7 @@ func (c *CustomersDevicesDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.devices.delete" call. @@ -4174,7 +4174,7 @@ func (c *CustomersDevicesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.devices.get" call. @@ -4307,7 +4307,7 @@ func (c *CustomersDevicesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.devices.list" call. @@ -4430,7 +4430,7 @@ func (c *CustomersDevicesMoveCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.devices.move" call. @@ -4538,7 +4538,7 @@ func (c *CustomersDevicesPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.devices.patch" call. @@ -4640,7 +4640,7 @@ func (c *CustomersDevicesSignDeviceCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.devices.signDevice" call. @@ -4741,7 +4741,7 @@ func (c *CustomersDevicesUpdateSignedCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.devices.updateSigned" call. @@ -4843,7 +4843,7 @@ func (c *CustomersNodesCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.create" call. @@ -4938,7 +4938,7 @@ func (c *CustomersNodesDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.delete" call. @@ -5045,7 +5045,7 @@ func (c *CustomersNodesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.get" call. @@ -5176,7 +5176,7 @@ func (c *CustomersNodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.list" call. @@ -5299,7 +5299,7 @@ func (c *CustomersNodesMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.move" call. @@ -5407,7 +5407,7 @@ func (c *CustomersNodesPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.patch" call. @@ -5508,7 +5508,7 @@ func (c *CustomersNodesDeploymentsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.deployments.create" call. @@ -5641,7 +5641,7 @@ func (c *CustomersNodesDeploymentsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.deployments.list" call. @@ -5764,7 +5764,7 @@ func (c *CustomersNodesDevicesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.devices.create" call. @@ -5866,7 +5866,7 @@ func (c *CustomersNodesDevicesCreateSignedCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.devices.createSigned" call. @@ -5999,7 +5999,7 @@ func (c *CustomersNodesDevicesListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.devices.list" call. @@ -6122,7 +6122,7 @@ func (c *CustomersNodesNodesCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.nodes.create" call. @@ -6253,7 +6253,7 @@ func (c *CustomersNodesNodesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.customers.nodes.nodes.list" call. @@ -6382,7 +6382,7 @@ func (c *DeploymentsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.deployments.get" call. @@ -6478,7 +6478,7 @@ func (c *DeploymentsDevicesDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.deployments.devices.delete" call. @@ -6585,7 +6585,7 @@ func (c *DeploymentsDevicesGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.deployments.devices.get" call. @@ -6687,7 +6687,7 @@ func (c *DeploymentsDevicesMoveCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.deployments.devices.move" call. @@ -6795,7 +6795,7 @@ func (c *DeploymentsDevicesPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.deployments.devices.patch" call. @@ -6897,7 +6897,7 @@ func (c *DeploymentsDevicesSignDeviceCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.deployments.devices.signDevice" call. @@ -6998,7 +6998,7 @@ func (c *DeploymentsDevicesUpdateSignedCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.deployments.devices.updateSigned" call. @@ -7093,7 +7093,7 @@ func (c *InstallerGenerateSecretCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.installer.generateSecret" call. @@ -7189,7 +7189,7 @@ func (c *InstallerValidateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.installer.validate" call. @@ -7297,7 +7297,7 @@ func (c *NodesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.get" call. @@ -7392,7 +7392,7 @@ func (c *NodesDeploymentsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.deployments.delete" call. @@ -7499,7 +7499,7 @@ func (c *NodesDeploymentsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.deployments.get" call. @@ -7632,7 +7632,7 @@ func (c *NodesDeploymentsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.deployments.list" call. @@ -7755,7 +7755,7 @@ func (c *NodesDeploymentsMoveCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.deployments.move" call. @@ -7863,7 +7863,7 @@ func (c *NodesDeploymentsPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.deployments.patch" call. @@ -7965,7 +7965,7 @@ func (c *NodesDeploymentsDevicesCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.deployments.devices.create" call. @@ -8067,7 +8067,7 @@ func (c *NodesDeploymentsDevicesCreateSignedCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.deployments.devices.createSigned" call. @@ -8200,7 +8200,7 @@ func (c *NodesDeploymentsDevicesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.deployments.devices.list" call. @@ -8323,7 +8323,7 @@ func (c *NodesDevicesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.devices.create" call. @@ -8425,7 +8425,7 @@ func (c *NodesDevicesCreateSignedCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.devices.createSigned" call. @@ -8521,7 +8521,7 @@ func (c *NodesDevicesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.devices.delete" call. @@ -8628,7 +8628,7 @@ func (c *NodesDevicesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.devices.get" call. @@ -8761,7 +8761,7 @@ func (c *NodesDevicesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.devices.list" call. @@ -8884,7 +8884,7 @@ func (c *NodesDevicesMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.devices.move" call. @@ -8992,7 +8992,7 @@ func (c *NodesDevicesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.devices.patch" call. @@ -9094,7 +9094,7 @@ func (c *NodesDevicesSignDeviceCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.devices.signDevice" call. @@ -9195,7 +9195,7 @@ func (c *NodesDevicesUpdateSignedCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.devices.updateSigned" call. @@ -9297,7 +9297,7 @@ func (c *NodesNodesCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.create" call. @@ -9392,7 +9392,7 @@ func (c *NodesNodesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.delete" call. @@ -9499,7 +9499,7 @@ func (c *NodesNodesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.get" call. @@ -9630,7 +9630,7 @@ func (c *NodesNodesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.list" call. @@ -9753,7 +9753,7 @@ func (c *NodesNodesMoveCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.move" call. @@ -9861,7 +9861,7 @@ func (c *NodesNodesPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.patch" call. @@ -9962,7 +9962,7 @@ func (c *NodesNodesDeploymentsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.deployments.create" call. @@ -10095,7 +10095,7 @@ func (c *NodesNodesDeploymentsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.deployments.list" call. @@ -10218,7 +10218,7 @@ func (c *NodesNodesDevicesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.devices.create" call. @@ -10320,7 +10320,7 @@ func (c *NodesNodesDevicesCreateSignedCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.devices.createSigned" call. @@ -10453,7 +10453,7 @@ func (c *NodesNodesDevicesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.devices.list" call. @@ -10576,7 +10576,7 @@ func (c *NodesNodesNodesCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.nodes.create" call. @@ -10707,7 +10707,7 @@ func (c *NodesNodesNodesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.nodes.nodes.nodes.list" call. @@ -10824,7 +10824,7 @@ func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.policies.get" call. @@ -10920,7 +10920,7 @@ func (c *PoliciesSetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.policies.set" call. @@ -11015,7 +11015,7 @@ func (c *PoliciesTestCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sasportal.policies.test" call. diff --git a/script/v1/script-gen.go b/script/v1/script-gen.go index 89f1e19f142..3efc8e05702 100644 --- a/script/v1/script-gen.go +++ b/script/v1/script-gen.go @@ -1622,7 +1622,7 @@ func (c *ProcessesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.processes.list" call. @@ -1858,7 +1858,7 @@ func (c *ProcessesListScriptProcessesCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.processes.listScriptProcesses" call. @@ -1975,7 +1975,7 @@ func (c *ProjectsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.create" call. @@ -2082,7 +2082,7 @@ func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "scriptId": c.scriptId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.get" call. @@ -2198,7 +2198,7 @@ func (c *ProjectsGetContentCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "scriptId": c.scriptId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.getContent" call. @@ -2330,7 +2330,7 @@ func (c *ProjectsGetMetricsCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "scriptId": c.scriptId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.getMetrics" call. @@ -2435,7 +2435,7 @@ func (c *ProjectsUpdateContentCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "scriptId": c.scriptId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.updateContent" call. @@ -2536,7 +2536,7 @@ func (c *ProjectsDeploymentsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "scriptId": c.scriptId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.deployments.create" call. @@ -2635,7 +2635,7 @@ func (c *ProjectsDeploymentsDeleteCall) doRequest(alt string) (*http.Response, e "scriptId": c.scriptId, "deploymentId": c.deploymentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.deployments.delete" call. @@ -2746,7 +2746,7 @@ func (c *ProjectsDeploymentsGetCall) doRequest(alt string) (*http.Response, erro "scriptId": c.scriptId, "deploymentId": c.deploymentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.deployments.get" call. @@ -2868,7 +2868,7 @@ func (c *ProjectsDeploymentsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "scriptId": c.scriptId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.deployments.list" call. @@ -2995,7 +2995,7 @@ func (c *ProjectsDeploymentsUpdateCall) doRequest(alt string) (*http.Response, e "scriptId": c.scriptId, "deploymentId": c.deploymentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.deployments.update" call. @@ -3097,7 +3097,7 @@ func (c *ProjectsVersionsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "scriptId": c.scriptId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.versions.create" call. @@ -3208,7 +3208,7 @@ func (c *ProjectsVersionsGetCall) doRequest(alt string) (*http.Response, error) "scriptId": c.scriptId, "versionNumber": strconv.FormatInt(c.versionNumber, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.versions.get" call. @@ -3330,7 +3330,7 @@ func (c *ProjectsVersionsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "scriptId": c.scriptId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.projects.versions.list" call. @@ -3467,7 +3467,7 @@ func (c *ScriptsRunCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "scriptId": c.scriptId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "script.scripts.run" call. diff --git a/searchads360/v0/searchads360-gen.go b/searchads360/v0/searchads360-gen.go index db0eac98804..32bdc87f078 100644 --- a/searchads360/v0/searchads360-gen.go +++ b/searchads360/v0/searchads360-gen.go @@ -8851,7 +8851,7 @@ func (c *CustomersListAccessibleCustomersCall) doRequest(alt string) (*http.Resp return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "searchads360.customers.listAccessibleCustomers" call. @@ -8959,7 +8959,7 @@ func (c *CustomersCustomColumnsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "searchads360.customers.customColumns.get" call. @@ -9069,7 +9069,7 @@ func (c *CustomersCustomColumnsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "searchads360.customers.customColumns.list" call. @@ -9173,7 +9173,7 @@ func (c *CustomersSearchAds360SearchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "customerId": c.customerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "searchads360.customers.searchAds360.search" call. @@ -9304,7 +9304,7 @@ func (c *SearchAds360FieldsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "searchads360.searchAds360Fields.get" call. @@ -9403,7 +9403,7 @@ func (c *SearchAds360FieldsSearchCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "searchads360.searchAds360Fields.search" call. diff --git a/searchconsole/v1/searchconsole-gen.go b/searchconsole/v1/searchconsole-gen.go index 1249e5abc57..78cf655d1ef 100644 --- a/searchconsole/v1/searchconsole-gen.go +++ b/searchconsole/v1/searchconsole-gen.go @@ -1466,7 +1466,7 @@ func (c *SearchanalyticsQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "siteUrl": c.siteUrl, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.searchanalytics.query" call. @@ -1570,7 +1570,7 @@ func (c *SitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { "siteUrl": c.siteUrl, "feedpath": c.feedpath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sitemaps.delete" call. @@ -1660,7 +1660,7 @@ func (c *SitemapsGetCall) doRequest(alt string) (*http.Response, error) { "siteUrl": c.siteUrl, "feedpath": c.feedpath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sitemaps.get" call. @@ -1777,7 +1777,7 @@ func (c *SitemapsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "siteUrl": c.siteUrl, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sitemaps.list" call. @@ -1879,7 +1879,7 @@ func (c *SitemapsSubmitCall) doRequest(alt string) (*http.Response, error) { "siteUrl": c.siteUrl, "feedpath": c.feedpath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sitemaps.submit" call. @@ -1951,7 +1951,7 @@ func (c *SitesAddCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "siteUrl": c.siteUrl, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sites.add" call. @@ -2024,7 +2024,7 @@ func (c *SitesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "siteUrl": c.siteUrl, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sites.delete" call. @@ -2109,7 +2109,7 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "siteUrl": c.siteUrl, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sites.get" call. @@ -2209,7 +2209,7 @@ func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sites.list" call. @@ -2304,7 +2304,7 @@ func (c *UrlInspectionIndexInspectCall) doRequest(alt string) (*http.Response, e return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "searchconsole.urlInspection.index.inspect" call. @@ -2399,7 +2399,7 @@ func (c *UrlTestingToolsMobileFriendlyTestRunCall) doRequest(alt string) (*http. return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "searchconsole.urlTestingTools.mobileFriendlyTest.run" call. diff --git a/secretmanager/v1/secretmanager-gen.go b/secretmanager/v1/secretmanager-gen.go index a15d2ad1233..35cc24270af 100644 --- a/secretmanager/v1/secretmanager-gen.go +++ b/secretmanager/v1/secretmanager-gen.go @@ -1461,7 +1461,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.get" call. @@ -1592,7 +1592,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.list" call. @@ -1718,7 +1718,7 @@ func (c *ProjectsLocationsSecretsAddVersionCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.addVersion" call. @@ -1829,7 +1829,7 @@ func (c *ProjectsLocationsSecretsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.create" call. @@ -1933,7 +1933,7 @@ func (c *ProjectsLocationsSecretsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.delete" call. @@ -2041,7 +2041,7 @@ func (c *ProjectsLocationsSecretsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.get" call. @@ -2168,7 +2168,7 @@ func (c *ProjectsLocationsSecretsGetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.getIamPolicy" call. @@ -2301,7 +2301,7 @@ func (c *ProjectsLocationsSecretsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.list" call. @@ -2432,7 +2432,7 @@ func (c *ProjectsLocationsSecretsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.patch" call. @@ -2537,7 +2537,7 @@ func (c *ProjectsLocationsSecretsSetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.setIamPolicy" call. @@ -2645,7 +2645,7 @@ func (c *ProjectsLocationsSecretsTestIamPermissionsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.testIamPermissions" call. @@ -2760,7 +2760,7 @@ func (c *ProjectsLocationsSecretsVersionsAccessCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.access" call. @@ -2865,7 +2865,7 @@ func (c *ProjectsLocationsSecretsVersionsDestroyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.destroy" call. @@ -2969,7 +2969,7 @@ func (c *ProjectsLocationsSecretsVersionsDisableCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.disable" call. @@ -3073,7 +3073,7 @@ func (c *ProjectsLocationsSecretsVersionsEnableCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.enable" call. @@ -3187,7 +3187,7 @@ func (c *ProjectsLocationsSecretsVersionsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.get" call. @@ -3322,7 +3322,7 @@ func (c *ProjectsLocationsSecretsVersionsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.list" call. @@ -3448,7 +3448,7 @@ func (c *ProjectsSecretsAddVersionCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.addVersion" call. @@ -3559,7 +3559,7 @@ func (c *ProjectsSecretsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.create" call. @@ -3663,7 +3663,7 @@ func (c *ProjectsSecretsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.delete" call. @@ -3771,7 +3771,7 @@ func (c *ProjectsSecretsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.get" call. @@ -3898,7 +3898,7 @@ func (c *ProjectsSecretsGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.getIamPolicy" call. @@ -4031,7 +4031,7 @@ func (c *ProjectsSecretsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.list" call. @@ -4162,7 +4162,7 @@ func (c *ProjectsSecretsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.patch" call. @@ -4267,7 +4267,7 @@ func (c *ProjectsSecretsSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.setIamPolicy" call. @@ -4375,7 +4375,7 @@ func (c *ProjectsSecretsTestIamPermissionsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.testIamPermissions" call. @@ -4490,7 +4490,7 @@ func (c *ProjectsSecretsVersionsAccessCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.access" call. @@ -4595,7 +4595,7 @@ func (c *ProjectsSecretsVersionsDestroyCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.destroy" call. @@ -4699,7 +4699,7 @@ func (c *ProjectsSecretsVersionsDisableCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.disable" call. @@ -4803,7 +4803,7 @@ func (c *ProjectsSecretsVersionsEnableCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.enable" call. @@ -4917,7 +4917,7 @@ func (c *ProjectsSecretsVersionsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.get" call. @@ -5052,7 +5052,7 @@ func (c *ProjectsSecretsVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.list" call. diff --git a/secretmanager/v1beta1/secretmanager-gen.go b/secretmanager/v1beta1/secretmanager-gen.go index 765784f44ce..50c6e9591ac 100644 --- a/secretmanager/v1beta1/secretmanager-gen.go +++ b/secretmanager/v1beta1/secretmanager-gen.go @@ -1051,7 +1051,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.get" call. @@ -1182,7 +1182,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.list" call. @@ -1307,7 +1307,7 @@ func (c *ProjectsSecretsAddVersionCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.addVersion" call. @@ -1418,7 +1418,7 @@ func (c *ProjectsSecretsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.create" call. @@ -1514,7 +1514,7 @@ func (c *ProjectsSecretsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.delete" call. @@ -1622,7 +1622,7 @@ func (c *ProjectsSecretsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.get" call. @@ -1749,7 +1749,7 @@ func (c *ProjectsSecretsGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.getIamPolicy" call. @@ -1873,7 +1873,7 @@ func (c *ProjectsSecretsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.list" call. @@ -2004,7 +2004,7 @@ func (c *ProjectsSecretsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.patch" call. @@ -2109,7 +2109,7 @@ func (c *ProjectsSecretsSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.setIamPolicy" call. @@ -2217,7 +2217,7 @@ func (c *ProjectsSecretsTestIamPermissionsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.testIamPermissions" call. @@ -2328,7 +2328,7 @@ func (c *ProjectsSecretsVersionsAccessCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.access" call. @@ -2432,7 +2432,7 @@ func (c *ProjectsSecretsVersionsDestroyCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.destroy" call. @@ -2535,7 +2535,7 @@ func (c *ProjectsSecretsVersionsDisableCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.disable" call. @@ -2638,7 +2638,7 @@ func (c *ProjectsSecretsVersionsEnableCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.enable" call. @@ -2749,7 +2749,7 @@ func (c *ProjectsSecretsVersionsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.get" call. @@ -2873,7 +2873,7 @@ func (c *ProjectsSecretsVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.list" call. diff --git a/secretmanager/v1beta2/secretmanager-gen.go b/secretmanager/v1beta2/secretmanager-gen.go index 2900c63e0ed..a05ca4e8d9e 100644 --- a/secretmanager/v1beta2/secretmanager-gen.go +++ b/secretmanager/v1beta2/secretmanager-gen.go @@ -1461,7 +1461,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.get" call. @@ -1592,7 +1592,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.list" call. @@ -1718,7 +1718,7 @@ func (c *ProjectsLocationsSecretsAddVersionCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.addVersion" call. @@ -1829,7 +1829,7 @@ func (c *ProjectsLocationsSecretsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.create" call. @@ -1933,7 +1933,7 @@ func (c *ProjectsLocationsSecretsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.delete" call. @@ -2041,7 +2041,7 @@ func (c *ProjectsLocationsSecretsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.get" call. @@ -2168,7 +2168,7 @@ func (c *ProjectsLocationsSecretsGetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.getIamPolicy" call. @@ -2301,7 +2301,7 @@ func (c *ProjectsLocationsSecretsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.list" call. @@ -2432,7 +2432,7 @@ func (c *ProjectsLocationsSecretsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.patch" call. @@ -2537,7 +2537,7 @@ func (c *ProjectsLocationsSecretsSetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.setIamPolicy" call. @@ -2645,7 +2645,7 @@ func (c *ProjectsLocationsSecretsTestIamPermissionsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.testIamPermissions" call. @@ -2760,7 +2760,7 @@ func (c *ProjectsLocationsSecretsVersionsAccessCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.access" call. @@ -2865,7 +2865,7 @@ func (c *ProjectsLocationsSecretsVersionsDestroyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.destroy" call. @@ -2969,7 +2969,7 @@ func (c *ProjectsLocationsSecretsVersionsDisableCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.disable" call. @@ -3073,7 +3073,7 @@ func (c *ProjectsLocationsSecretsVersionsEnableCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.enable" call. @@ -3187,7 +3187,7 @@ func (c *ProjectsLocationsSecretsVersionsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.get" call. @@ -3322,7 +3322,7 @@ func (c *ProjectsLocationsSecretsVersionsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.locations.secrets.versions.list" call. @@ -3448,7 +3448,7 @@ func (c *ProjectsSecretsAddVersionCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.addVersion" call. @@ -3559,7 +3559,7 @@ func (c *ProjectsSecretsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.create" call. @@ -3663,7 +3663,7 @@ func (c *ProjectsSecretsDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.delete" call. @@ -3771,7 +3771,7 @@ func (c *ProjectsSecretsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.get" call. @@ -3898,7 +3898,7 @@ func (c *ProjectsSecretsGetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.getIamPolicy" call. @@ -4031,7 +4031,7 @@ func (c *ProjectsSecretsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.list" call. @@ -4162,7 +4162,7 @@ func (c *ProjectsSecretsPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.patch" call. @@ -4267,7 +4267,7 @@ func (c *ProjectsSecretsSetIamPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.setIamPolicy" call. @@ -4375,7 +4375,7 @@ func (c *ProjectsSecretsTestIamPermissionsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.testIamPermissions" call. @@ -4490,7 +4490,7 @@ func (c *ProjectsSecretsVersionsAccessCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.access" call. @@ -4595,7 +4595,7 @@ func (c *ProjectsSecretsVersionsDestroyCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.destroy" call. @@ -4699,7 +4699,7 @@ func (c *ProjectsSecretsVersionsDisableCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.disable" call. @@ -4803,7 +4803,7 @@ func (c *ProjectsSecretsVersionsEnableCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.enable" call. @@ -4917,7 +4917,7 @@ func (c *ProjectsSecretsVersionsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.get" call. @@ -5052,7 +5052,7 @@ func (c *ProjectsSecretsVersionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "secretmanager.projects.secrets.versions.list" call. diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index d93b17de889..1bb85b43c8c 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -11433,7 +11433,7 @@ func (c *FoldersAssetsGroupCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.assets.group" call. @@ -11681,7 +11681,7 @@ func (c *FoldersAssetsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.assets.list" call. @@ -11827,7 +11827,7 @@ func (c *FoldersAssetsUpdateSecurityMarksCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.assets.updateSecurityMarks" call. @@ -11940,7 +11940,7 @@ func (c *FoldersBigQueryExportsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.bigQueryExports.create" call. @@ -12039,7 +12039,7 @@ func (c *FoldersBigQueryExportsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.bigQueryExports.delete" call. @@ -12149,7 +12149,7 @@ func (c *FoldersBigQueryExportsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.bigQueryExports.get" call. @@ -12281,7 +12281,7 @@ func (c *FoldersBigQueryExportsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.bigQueryExports.list" call. @@ -12417,7 +12417,7 @@ func (c *FoldersBigQueryExportsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.bigQueryExports.patch" call. @@ -12524,7 +12524,7 @@ func (c *FoldersEventThreatDetectionSettingsValidateCustomModuleCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.eventThreatDetectionSettings.validateCustomModule" call. @@ -12632,7 +12632,7 @@ func (c *FoldersEventThreatDetectionSettingsCustomModulesCreateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.eventThreatDetectionSettings.customModules.create" call. @@ -12734,7 +12734,7 @@ func (c *FoldersEventThreatDetectionSettingsCustomModulesDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.eventThreatDetectionSettings.customModules.delete" call. @@ -12845,7 +12845,7 @@ func (c *FoldersEventThreatDetectionSettingsCustomModulesGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.eventThreatDetectionSettings.customModules.get" call. @@ -12977,7 +12977,7 @@ func (c *FoldersEventThreatDetectionSettingsCustomModulesListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.eventThreatDetectionSettings.customModules.list" call. @@ -13129,7 +13129,7 @@ func (c *FoldersEventThreatDetectionSettingsCustomModulesListDescendantCall) doR googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.eventThreatDetectionSettings.customModules.listDescendant" call. @@ -13269,7 +13269,7 @@ func (c *FoldersEventThreatDetectionSettingsCustomModulesPatchCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.eventThreatDetectionSettings.customModules.patch" call. @@ -13385,7 +13385,7 @@ func (c *FoldersEventThreatDetectionSettingsEffectiveCustomModulesGetCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.eventThreatDetectionSettings.effectiveCustomModules.get" call. @@ -13517,7 +13517,7 @@ func (c *FoldersEventThreatDetectionSettingsEffectiveCustomModulesListCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.eventThreatDetectionSettings.effectiveCustomModules.list" call. @@ -13646,7 +13646,7 @@ func (c *FoldersFindingsBulkMuteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.findings.bulkMute" call. @@ -13759,7 +13759,7 @@ func (c *FoldersLocationsMuteConfigsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.locations.muteConfigs.create" call. @@ -13861,7 +13861,7 @@ func (c *FoldersLocationsMuteConfigsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.locations.muteConfigs.delete" call. @@ -13974,7 +13974,7 @@ func (c *FoldersLocationsMuteConfigsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.locations.muteConfigs.get" call. @@ -14102,7 +14102,7 @@ func (c *FoldersLocationsMuteConfigsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.locations.muteConfigs.list" call. @@ -14238,7 +14238,7 @@ func (c *FoldersLocationsMuteConfigsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.locations.muteConfigs.patch" call. @@ -14352,7 +14352,7 @@ func (c *FoldersMuteConfigsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.muteConfigs.create" call. @@ -14454,7 +14454,7 @@ func (c *FoldersMuteConfigsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.muteConfigs.delete" call. @@ -14567,7 +14567,7 @@ func (c *FoldersMuteConfigsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.muteConfigs.get" call. @@ -14695,7 +14695,7 @@ func (c *FoldersMuteConfigsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.muteConfigs.list" call. @@ -14831,7 +14831,7 @@ func (c *FoldersMuteConfigsPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.muteConfigs.patch" call. @@ -14944,7 +14944,7 @@ func (c *FoldersNotificationConfigsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.notificationConfigs.create" call. @@ -15043,7 +15043,7 @@ func (c *FoldersNotificationConfigsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.notificationConfigs.delete" call. @@ -15153,7 +15153,7 @@ func (c *FoldersNotificationConfigsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.notificationConfigs.get" call. @@ -15280,7 +15280,7 @@ func (c *FoldersNotificationConfigsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.notificationConfigs.list" call. @@ -15417,7 +15417,7 @@ func (c *FoldersNotificationConfigsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.notificationConfigs.patch" call. @@ -15525,7 +15525,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsCustomModulesCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.securityHealthAnalyticsSettings.customModules.create" call. @@ -15629,7 +15629,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsCustomModulesDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.securityHealthAnalyticsSettings.customModules.delete" call. @@ -15742,7 +15742,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsCustomModulesGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.securityHealthAnalyticsSettings.customModules.get" call. @@ -15870,7 +15870,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsCustomModulesListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.securityHealthAnalyticsSettings.customModules.list" call. @@ -16019,7 +16019,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsCustomModulesListDescendantCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.securityHealthAnalyticsSettings.customModules.listDescendant" call. @@ -16162,7 +16162,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsCustomModulesPatchCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.securityHealthAnalyticsSettings.customModules.patch" call. @@ -16269,7 +16269,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsCustomModulesSimulateCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.securityHealthAnalyticsSettings.customModules.simulate" call. @@ -16383,7 +16383,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsEffectiveCustomModulesGetCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.securityHealthAnalyticsSettings.effectiveCustomModules.get" call. @@ -16511,7 +16511,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsEffectiveCustomModulesListCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.securityHealthAnalyticsSettings.effectiveCustomModules.list" call. @@ -16658,7 +16658,7 @@ func (c *FoldersSourcesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.sources.list" call. @@ -16791,7 +16791,7 @@ func (c *FoldersSourcesFindingsGroupCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.sources.findings.group" call. @@ -17036,7 +17036,7 @@ func (c *FoldersSourcesFindingsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.sources.findings.list" call. @@ -17176,7 +17176,7 @@ func (c *FoldersSourcesFindingsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.sources.findings.patch" call. @@ -17282,7 +17282,7 @@ func (c *FoldersSourcesFindingsSetMuteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.sources.findings.setMute" call. @@ -17388,7 +17388,7 @@ func (c *FoldersSourcesFindingsSetStateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.sources.findings.setState" call. @@ -17512,7 +17512,7 @@ func (c *FoldersSourcesFindingsUpdateSecurityMarksCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.sources.findings.updateSecurityMarks" call. @@ -17624,7 +17624,7 @@ func (c *FoldersSourcesFindingsExternalSystemsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.sources.findings.externalSystems.patch" call. @@ -17733,7 +17733,7 @@ func (c *OrganizationsGetOrganizationSettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getOrganizationSettings" call. @@ -17845,7 +17845,7 @@ func (c *OrganizationsUpdateOrganizationSettingsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.updateOrganizationSettings" call. @@ -17950,7 +17950,7 @@ func (c *OrganizationsAssetsGroupCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.group" call. @@ -18198,7 +18198,7 @@ func (c *OrganizationsAssetsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.list" call. @@ -18325,7 +18325,7 @@ func (c *OrganizationsAssetsRunDiscoveryCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.runDiscovery" call. @@ -18449,7 +18449,7 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.updateSecurityMarks" call. @@ -18562,7 +18562,7 @@ func (c *OrganizationsBigQueryExportsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.bigQueryExports.create" call. @@ -18661,7 +18661,7 @@ func (c *OrganizationsBigQueryExportsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.bigQueryExports.delete" call. @@ -18771,7 +18771,7 @@ func (c *OrganizationsBigQueryExportsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.bigQueryExports.get" call. @@ -18903,7 +18903,7 @@ func (c *OrganizationsBigQueryExportsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.bigQueryExports.list" call. @@ -19039,7 +19039,7 @@ func (c *OrganizationsBigQueryExportsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.bigQueryExports.patch" call. @@ -19146,7 +19146,7 @@ func (c *OrganizationsEventThreatDetectionSettingsValidateCustomModuleCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.eventThreatDetectionSettings.validateCustomModule" call. @@ -19254,7 +19254,7 @@ func (c *OrganizationsEventThreatDetectionSettingsCustomModulesCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.eventThreatDetectionSettings.customModules.create" call. @@ -19356,7 +19356,7 @@ func (c *OrganizationsEventThreatDetectionSettingsCustomModulesDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.eventThreatDetectionSettings.customModules.delete" call. @@ -19467,7 +19467,7 @@ func (c *OrganizationsEventThreatDetectionSettingsCustomModulesGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.eventThreatDetectionSettings.customModules.get" call. @@ -19599,7 +19599,7 @@ func (c *OrganizationsEventThreatDetectionSettingsCustomModulesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.eventThreatDetectionSettings.customModules.list" call. @@ -19751,7 +19751,7 @@ func (c *OrganizationsEventThreatDetectionSettingsCustomModulesListDescendantCal googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.eventThreatDetectionSettings.customModules.listDescendant" call. @@ -19891,7 +19891,7 @@ func (c *OrganizationsEventThreatDetectionSettingsCustomModulesPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.eventThreatDetectionSettings.customModules.patch" call. @@ -20007,7 +20007,7 @@ func (c *OrganizationsEventThreatDetectionSettingsEffectiveCustomModulesGetCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.eventThreatDetectionSettings.effectiveCustomModules.get" call. @@ -20139,7 +20139,7 @@ func (c *OrganizationsEventThreatDetectionSettingsEffectiveCustomModulesListCall googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.eventThreatDetectionSettings.effectiveCustomModules.list" call. @@ -20268,7 +20268,7 @@ func (c *OrganizationsFindingsBulkMuteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.findings.bulkMute" call. @@ -20381,7 +20381,7 @@ func (c *OrganizationsLocationsMuteConfigsCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.locations.muteConfigs.create" call. @@ -20483,7 +20483,7 @@ func (c *OrganizationsLocationsMuteConfigsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.locations.muteConfigs.delete" call. @@ -20596,7 +20596,7 @@ func (c *OrganizationsLocationsMuteConfigsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.locations.muteConfigs.get" call. @@ -20724,7 +20724,7 @@ func (c *OrganizationsLocationsMuteConfigsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.locations.muteConfigs.list" call. @@ -20860,7 +20860,7 @@ func (c *OrganizationsLocationsMuteConfigsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.locations.muteConfigs.patch" call. @@ -20974,7 +20974,7 @@ func (c *OrganizationsMuteConfigsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.muteConfigs.create" call. @@ -21076,7 +21076,7 @@ func (c *OrganizationsMuteConfigsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.muteConfigs.delete" call. @@ -21189,7 +21189,7 @@ func (c *OrganizationsMuteConfigsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.muteConfigs.get" call. @@ -21317,7 +21317,7 @@ func (c *OrganizationsMuteConfigsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.muteConfigs.list" call. @@ -21453,7 +21453,7 @@ func (c *OrganizationsMuteConfigsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.muteConfigs.patch" call. @@ -21566,7 +21566,7 @@ func (c *OrganizationsNotificationConfigsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.notificationConfigs.create" call. @@ -21665,7 +21665,7 @@ func (c *OrganizationsNotificationConfigsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.notificationConfigs.delete" call. @@ -21775,7 +21775,7 @@ func (c *OrganizationsNotificationConfigsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.notificationConfigs.get" call. @@ -21902,7 +21902,7 @@ func (c *OrganizationsNotificationConfigsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.notificationConfigs.list" call. @@ -22039,7 +22039,7 @@ func (c *OrganizationsNotificationConfigsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.notificationConfigs.patch" call. @@ -22143,7 +22143,7 @@ func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.cancel" call. @@ -22241,7 +22241,7 @@ func (c *OrganizationsOperationsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.delete" call. @@ -22350,7 +22350,7 @@ func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.get" call. @@ -22478,7 +22478,7 @@ func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.list" call. @@ -22604,7 +22604,7 @@ func (c *OrganizationsResourceValueConfigsBatchCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.resourceValueConfigs.batchCreate" call. @@ -22700,7 +22700,7 @@ func (c *OrganizationsResourceValueConfigsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.resourceValueConfigs.delete" call. @@ -22808,7 +22808,7 @@ func (c *OrganizationsResourceValueConfigsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.resourceValueConfigs.get" call. @@ -22936,7 +22936,7 @@ func (c *OrganizationsResourceValueConfigsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.resourceValueConfigs.list" call. @@ -23066,7 +23066,7 @@ func (c *OrganizationsResourceValueConfigsPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.resourceValueConfigs.patch" call. @@ -23174,7 +23174,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsCustomModulesCreateCall) do googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.securityHealthAnalyticsSettings.customModules.create" call. @@ -23278,7 +23278,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsCustomModulesDeleteCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.securityHealthAnalyticsSettings.customModules.delete" call. @@ -23391,7 +23391,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsCustomModulesGetCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.securityHealthAnalyticsSettings.customModules.get" call. @@ -23519,7 +23519,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsCustomModulesListCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.securityHealthAnalyticsSettings.customModules.list" call. @@ -23668,7 +23668,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsCustomModulesListDescendant googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.securityHealthAnalyticsSettings.customModules.listDescendant" call. @@ -23811,7 +23811,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsCustomModulesPatchCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.securityHealthAnalyticsSettings.customModules.patch" call. @@ -23918,7 +23918,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsCustomModulesSimulateCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.securityHealthAnalyticsSettings.customModules.simulate" call. @@ -24032,7 +24032,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsEffectiveCustomModulesGetCa googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.securityHealthAnalyticsSettings.effectiveCustomModules.get" call. @@ -24160,7 +24160,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsEffectiveCustomModulesListC googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.securityHealthAnalyticsSettings.effectiveCustomModules.list" call. @@ -24292,7 +24292,7 @@ func (c *OrganizationsSimulationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.simulations.get" call. @@ -24431,7 +24431,7 @@ func (c *OrganizationsSimulationsAttackExposureResultsAttackPathsListCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.simulations.attackExposureResults.attackPaths.list" call. @@ -24601,7 +24601,7 @@ func (c *OrganizationsSimulationsAttackExposureResultsValuedResourcesListCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.simulations.attackExposureResults.valuedResources.list" call. @@ -24762,7 +24762,7 @@ func (c *OrganizationsSimulationsAttackPathsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.simulations.attackPaths.list" call. @@ -24893,7 +24893,7 @@ func (c *OrganizationsSimulationsValuedResourcesGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.simulations.valuedResources.get" call. @@ -25041,7 +25041,7 @@ func (c *OrganizationsSimulationsValuedResourcesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.simulations.valuedResources.list" call. @@ -25202,7 +25202,7 @@ func (c *OrganizationsSimulationsValuedResourcesAttackPathsListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.simulations.valuedResources.attackPaths.list" call. @@ -25326,7 +25326,7 @@ func (c *OrganizationsSourcesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.create" call. @@ -25434,7 +25434,7 @@ func (c *OrganizationsSourcesGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.get" call. @@ -25537,7 +25537,7 @@ func (c *OrganizationsSourcesGetIamPolicyCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.getIamPolicy" call. @@ -25662,7 +25662,7 @@ func (c *OrganizationsSourcesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.list" call. @@ -25795,7 +25795,7 @@ func (c *OrganizationsSourcesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.patch" call. @@ -25898,7 +25898,7 @@ func (c *OrganizationsSourcesSetIamPolicyCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.setIamPolicy" call. @@ -26003,7 +26003,7 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.testIamPermissions" call. @@ -26116,7 +26116,7 @@ func (c *OrganizationsSourcesFindingsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.create" call. @@ -26227,7 +26227,7 @@ func (c *OrganizationsSourcesFindingsGroupCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.group" call. @@ -26472,7 +26472,7 @@ func (c *OrganizationsSourcesFindingsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.list" call. @@ -26612,7 +26612,7 @@ func (c *OrganizationsSourcesFindingsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.patch" call. @@ -26718,7 +26718,7 @@ func (c *OrganizationsSourcesFindingsSetMuteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.setMute" call. @@ -26824,7 +26824,7 @@ func (c *OrganizationsSourcesFindingsSetStateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.setState" call. @@ -26948,7 +26948,7 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.updateSecurityMarks" call. @@ -27060,7 +27060,7 @@ func (c *OrganizationsSourcesFindingsExternalSystemsPatchCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.externalSystems.patch" call. @@ -27209,7 +27209,7 @@ func (c *OrganizationsValuedResourcesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.valuedResources.list" call. @@ -27335,7 +27335,7 @@ func (c *ProjectsAssetsGroupCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.assets.group" call. @@ -27583,7 +27583,7 @@ func (c *ProjectsAssetsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.assets.list" call. @@ -27729,7 +27729,7 @@ func (c *ProjectsAssetsUpdateSecurityMarksCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.assets.updateSecurityMarks" call. @@ -27842,7 +27842,7 @@ func (c *ProjectsBigQueryExportsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.bigQueryExports.create" call. @@ -27941,7 +27941,7 @@ func (c *ProjectsBigQueryExportsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.bigQueryExports.delete" call. @@ -28051,7 +28051,7 @@ func (c *ProjectsBigQueryExportsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.bigQueryExports.get" call. @@ -28183,7 +28183,7 @@ func (c *ProjectsBigQueryExportsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.bigQueryExports.list" call. @@ -28319,7 +28319,7 @@ func (c *ProjectsBigQueryExportsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.bigQueryExports.patch" call. @@ -28426,7 +28426,7 @@ func (c *ProjectsEventThreatDetectionSettingsValidateCustomModuleCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.eventThreatDetectionSettings.validateCustomModule" call. @@ -28534,7 +28534,7 @@ func (c *ProjectsEventThreatDetectionSettingsCustomModulesCreateCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.eventThreatDetectionSettings.customModules.create" call. @@ -28636,7 +28636,7 @@ func (c *ProjectsEventThreatDetectionSettingsCustomModulesDeleteCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.eventThreatDetectionSettings.customModules.delete" call. @@ -28747,7 +28747,7 @@ func (c *ProjectsEventThreatDetectionSettingsCustomModulesGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.eventThreatDetectionSettings.customModules.get" call. @@ -28879,7 +28879,7 @@ func (c *ProjectsEventThreatDetectionSettingsCustomModulesListCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.eventThreatDetectionSettings.customModules.list" call. @@ -29031,7 +29031,7 @@ func (c *ProjectsEventThreatDetectionSettingsCustomModulesListDescendantCall) do googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.eventThreatDetectionSettings.customModules.listDescendant" call. @@ -29171,7 +29171,7 @@ func (c *ProjectsEventThreatDetectionSettingsCustomModulesPatchCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.eventThreatDetectionSettings.customModules.patch" call. @@ -29287,7 +29287,7 @@ func (c *ProjectsEventThreatDetectionSettingsEffectiveCustomModulesGetCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.eventThreatDetectionSettings.effectiveCustomModules.get" call. @@ -29419,7 +29419,7 @@ func (c *ProjectsEventThreatDetectionSettingsEffectiveCustomModulesListCall) doR googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.eventThreatDetectionSettings.effectiveCustomModules.list" call. @@ -29548,7 +29548,7 @@ func (c *ProjectsFindingsBulkMuteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.findings.bulkMute" call. @@ -29661,7 +29661,7 @@ func (c *ProjectsLocationsMuteConfigsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.locations.muteConfigs.create" call. @@ -29763,7 +29763,7 @@ func (c *ProjectsLocationsMuteConfigsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.locations.muteConfigs.delete" call. @@ -29876,7 +29876,7 @@ func (c *ProjectsLocationsMuteConfigsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.locations.muteConfigs.get" call. @@ -30004,7 +30004,7 @@ func (c *ProjectsLocationsMuteConfigsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.locations.muteConfigs.list" call. @@ -30140,7 +30140,7 @@ func (c *ProjectsLocationsMuteConfigsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.locations.muteConfigs.patch" call. @@ -30254,7 +30254,7 @@ func (c *ProjectsMuteConfigsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.muteConfigs.create" call. @@ -30356,7 +30356,7 @@ func (c *ProjectsMuteConfigsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.muteConfigs.delete" call. @@ -30469,7 +30469,7 @@ func (c *ProjectsMuteConfigsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.muteConfigs.get" call. @@ -30597,7 +30597,7 @@ func (c *ProjectsMuteConfigsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.muteConfigs.list" call. @@ -30733,7 +30733,7 @@ func (c *ProjectsMuteConfigsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.muteConfigs.patch" call. @@ -30846,7 +30846,7 @@ func (c *ProjectsNotificationConfigsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.notificationConfigs.create" call. @@ -30945,7 +30945,7 @@ func (c *ProjectsNotificationConfigsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.notificationConfigs.delete" call. @@ -31055,7 +31055,7 @@ func (c *ProjectsNotificationConfigsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.notificationConfigs.get" call. @@ -31182,7 +31182,7 @@ func (c *ProjectsNotificationConfigsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.notificationConfigs.list" call. @@ -31319,7 +31319,7 @@ func (c *ProjectsNotificationConfigsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.notificationConfigs.patch" call. @@ -31427,7 +31427,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsCustomModulesCreateCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.securityHealthAnalyticsSettings.customModules.create" call. @@ -31531,7 +31531,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsCustomModulesDeleteCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.securityHealthAnalyticsSettings.customModules.delete" call. @@ -31644,7 +31644,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsCustomModulesGetCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.securityHealthAnalyticsSettings.customModules.get" call. @@ -31772,7 +31772,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsCustomModulesListCall) doRequest googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.securityHealthAnalyticsSettings.customModules.list" call. @@ -31921,7 +31921,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsCustomModulesListDescendantCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.securityHealthAnalyticsSettings.customModules.listDescendant" call. @@ -32064,7 +32064,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsCustomModulesPatchCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.securityHealthAnalyticsSettings.customModules.patch" call. @@ -32171,7 +32171,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsCustomModulesSimulateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.securityHealthAnalyticsSettings.customModules.simulate" call. @@ -32285,7 +32285,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsEffectiveCustomModulesGetCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.securityHealthAnalyticsSettings.effectiveCustomModules.get" call. @@ -32413,7 +32413,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsEffectiveCustomModulesListCall) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.securityHealthAnalyticsSettings.effectiveCustomModules.list" call. @@ -32560,7 +32560,7 @@ func (c *ProjectsSourcesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.sources.list" call. @@ -32693,7 +32693,7 @@ func (c *ProjectsSourcesFindingsGroupCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.sources.findings.group" call. @@ -32938,7 +32938,7 @@ func (c *ProjectsSourcesFindingsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.sources.findings.list" call. @@ -33078,7 +33078,7 @@ func (c *ProjectsSourcesFindingsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.sources.findings.patch" call. @@ -33184,7 +33184,7 @@ func (c *ProjectsSourcesFindingsSetMuteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.sources.findings.setMute" call. @@ -33290,7 +33290,7 @@ func (c *ProjectsSourcesFindingsSetStateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.sources.findings.setState" call. @@ -33414,7 +33414,7 @@ func (c *ProjectsSourcesFindingsUpdateSecurityMarksCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.sources.findings.updateSecurityMarks" call. @@ -33526,7 +33526,7 @@ func (c *ProjectsSourcesFindingsExternalSystemsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.sources.findings.externalSystems.patch" call. diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index d4d781c0031..cc3da55dd70 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -9389,7 +9389,7 @@ func (c *OrganizationsGetOrganizationSettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getOrganizationSettings" call. @@ -9500,7 +9500,7 @@ func (c *OrganizationsUpdateOrganizationSettingsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.updateOrganizationSettings" call. @@ -9604,7 +9604,7 @@ func (c *OrganizationsAssetsGroupCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.group" call. @@ -9820,7 +9820,7 @@ func (c *OrganizationsAssetsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.list" call. @@ -9947,7 +9947,7 @@ func (c *OrganizationsAssetsRunDiscoveryCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.runDiscovery" call. @@ -10067,7 +10067,7 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.updateSecurityMarks" call. @@ -10177,7 +10177,7 @@ func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.cancel" call. @@ -10275,7 +10275,7 @@ func (c *OrganizationsOperationsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.delete" call. @@ -10384,7 +10384,7 @@ func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.get" call. @@ -10512,7 +10512,7 @@ func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.list" call. @@ -10636,7 +10636,7 @@ func (c *OrganizationsSourcesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.create" call. @@ -10744,7 +10744,7 @@ func (c *OrganizationsSourcesGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.get" call. @@ -10847,7 +10847,7 @@ func (c *OrganizationsSourcesGetIamPolicyCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.getIamPolicy" call. @@ -10971,7 +10971,7 @@ func (c *OrganizationsSourcesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.list" call. @@ -11103,7 +11103,7 @@ func (c *OrganizationsSourcesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.patch" call. @@ -11206,7 +11206,7 @@ func (c *OrganizationsSourcesSetIamPolicyCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.setIamPolicy" call. @@ -11311,7 +11311,7 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.testIamPermissions" call. @@ -11424,7 +11424,7 @@ func (c *OrganizationsSourcesFindingsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.create" call. @@ -11532,7 +11532,7 @@ func (c *OrganizationsSourcesFindingsGroupCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.group" call. @@ -11731,7 +11731,7 @@ func (c *OrganizationsSourcesFindingsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.list" call. @@ -11866,7 +11866,7 @@ func (c *OrganizationsSourcesFindingsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.patch" call. @@ -11971,7 +11971,7 @@ func (c *OrganizationsSourcesFindingsSetStateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.setState" call. @@ -12092,7 +12092,7 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.updateSecurityMarks" call. diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 854e2f40a09..e18328ef457 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -8851,7 +8851,7 @@ func (c *FoldersGetContainerThreatDetectionSettingsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.getContainerThreatDetectionSettings" call. @@ -8968,7 +8968,7 @@ func (c *FoldersGetEventThreatDetectionSettingsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.getEventThreatDetectionSettings" call. @@ -9087,7 +9087,7 @@ func (c *FoldersGetRapidVulnerabilityDetectionSettingsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.getRapidVulnerabilityDetectionSettings" call. @@ -9198,7 +9198,7 @@ func (c *FoldersGetSecurityCenterSettingsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.getSecurityCenterSettings" call. @@ -9315,7 +9315,7 @@ func (c *FoldersGetSecurityHealthAnalyticsSettingsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.getSecurityHealthAnalyticsSettings" call. @@ -9434,7 +9434,7 @@ func (c *FoldersGetVirtualMachineThreatDetectionSettingsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.getVirtualMachineThreatDetectionSettings" call. @@ -9551,7 +9551,7 @@ func (c *FoldersGetWebSecurityScannerSettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.getWebSecurityScannerSettings" call. @@ -9667,7 +9667,7 @@ func (c *FoldersUpdateContainerThreatDetectionSettingsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.updateContainerThreatDetectionSettings" call. @@ -9780,7 +9780,7 @@ func (c *FoldersUpdateEventThreatDetectionSettingsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.updateEventThreatDetectionSettings" call. @@ -9894,7 +9894,7 @@ func (c *FoldersUpdateRapidVulnerabilityDetectionSettingsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.updateRapidVulnerabilityDetectionSettings" call. @@ -10008,7 +10008,7 @@ func (c *FoldersUpdateSecurityHealthAnalyticsSettingsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.updateSecurityHealthAnalyticsSettings" call. @@ -10122,7 +10122,7 @@ func (c *FoldersUpdateVirtualMachineThreatDetectionSettingsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.updateVirtualMachineThreatDetectionSettings" call. @@ -10235,7 +10235,7 @@ func (c *FoldersUpdateWebSecurityScannerSettingsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.updateWebSecurityScannerSettings" call. @@ -10354,7 +10354,7 @@ func (c *FoldersContainerThreatDetectionSettingsCalculateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.containerThreatDetectionSettings.calculate" call. @@ -10471,7 +10471,7 @@ func (c *FoldersEventThreatDetectionSettingsCalculateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.eventThreatDetectionSettings.calculate" call. @@ -10589,7 +10589,7 @@ func (c *FoldersRapidVulnerabilityDetectionSettingsCalculateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.rapidVulnerabilityDetectionSettings.calculate" call. @@ -10706,7 +10706,7 @@ func (c *FoldersSecurityHealthAnalyticsSettingsCalculateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.securityHealthAnalyticsSettings.calculate" call. @@ -10824,7 +10824,7 @@ func (c *FoldersVirtualMachineThreatDetectionSettingsCalculateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.virtualMachineThreatDetectionSettings.calculate" call. @@ -10941,7 +10941,7 @@ func (c *FoldersWebSecurityScannerSettingsCalculateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.folders.webSecurityScannerSettings.calculate" call. @@ -11061,7 +11061,7 @@ func (c *OrganizationsGetContainerThreatDetectionSettingsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getContainerThreatDetectionSettings" call. @@ -11178,7 +11178,7 @@ func (c *OrganizationsGetEventThreatDetectionSettingsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getEventThreatDetectionSettings" call. @@ -11297,7 +11297,7 @@ func (c *OrganizationsGetRapidVulnerabilityDetectionSettingsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getRapidVulnerabilityDetectionSettings" call. @@ -11408,7 +11408,7 @@ func (c *OrganizationsGetSecurityCenterSettingsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getSecurityCenterSettings" call. @@ -11525,7 +11525,7 @@ func (c *OrganizationsGetSecurityHealthAnalyticsSettingsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getSecurityHealthAnalyticsSettings" call. @@ -11634,7 +11634,7 @@ func (c *OrganizationsGetSubscriptionCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getSubscription" call. @@ -11752,7 +11752,7 @@ func (c *OrganizationsGetVirtualMachineThreatDetectionSettingsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getVirtualMachineThreatDetectionSettings" call. @@ -11869,7 +11869,7 @@ func (c *OrganizationsGetWebSecurityScannerSettingsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getWebSecurityScannerSettings" call. @@ -11985,7 +11985,7 @@ func (c *OrganizationsUpdateContainerThreatDetectionSettingsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.updateContainerThreatDetectionSettings" call. @@ -12098,7 +12098,7 @@ func (c *OrganizationsUpdateEventThreatDetectionSettingsCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.updateEventThreatDetectionSettings" call. @@ -12212,7 +12212,7 @@ func (c *OrganizationsUpdateRapidVulnerabilityDetectionSettingsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.updateRapidVulnerabilityDetectionSettings" call. @@ -12326,7 +12326,7 @@ func (c *OrganizationsUpdateSecurityHealthAnalyticsSettingsCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.updateSecurityHealthAnalyticsSettings" call. @@ -12440,7 +12440,7 @@ func (c *OrganizationsUpdateVirtualMachineThreatDetectionSettingsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.updateVirtualMachineThreatDetectionSettings" call. @@ -12553,7 +12553,7 @@ func (c *OrganizationsUpdateWebSecurityScannerSettingsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.updateWebSecurityScannerSettings" call. @@ -12672,7 +12672,7 @@ func (c *OrganizationsContainerThreatDetectionSettingsCalculateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.containerThreatDetectionSettings.calculate" call. @@ -12789,7 +12789,7 @@ func (c *OrganizationsEventThreatDetectionSettingsCalculateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.eventThreatDetectionSettings.calculate" call. @@ -12907,7 +12907,7 @@ func (c *OrganizationsRapidVulnerabilityDetectionSettingsCalculateCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.rapidVulnerabilityDetectionSettings.calculate" call. @@ -13024,7 +13024,7 @@ func (c *OrganizationsSecurityHealthAnalyticsSettingsCalculateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.securityHealthAnalyticsSettings.calculate" call. @@ -13142,7 +13142,7 @@ func (c *OrganizationsVirtualMachineThreatDetectionSettingsCalculateCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.virtualMachineThreatDetectionSettings.calculate" call. @@ -13259,7 +13259,7 @@ func (c *OrganizationsWebSecurityScannerSettingsCalculateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.webSecurityScannerSettings.calculate" call. @@ -13379,7 +13379,7 @@ func (c *ProjectsGetContainerThreatDetectionSettingsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.getContainerThreatDetectionSettings" call. @@ -13496,7 +13496,7 @@ func (c *ProjectsGetEventThreatDetectionSettingsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.getEventThreatDetectionSettings" call. @@ -13615,7 +13615,7 @@ func (c *ProjectsGetRapidVulnerabilityDetectionSettingsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.getRapidVulnerabilityDetectionSettings" call. @@ -13726,7 +13726,7 @@ func (c *ProjectsGetSecurityCenterSettingsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.getSecurityCenterSettings" call. @@ -13843,7 +13843,7 @@ func (c *ProjectsGetSecurityHealthAnalyticsSettingsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.getSecurityHealthAnalyticsSettings" call. @@ -13962,7 +13962,7 @@ func (c *ProjectsGetVirtualMachineThreatDetectionSettingsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.getVirtualMachineThreatDetectionSettings" call. @@ -14079,7 +14079,7 @@ func (c *ProjectsGetWebSecurityScannerSettingsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.getWebSecurityScannerSettings" call. @@ -14195,7 +14195,7 @@ func (c *ProjectsUpdateContainerThreatDetectionSettingsCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.updateContainerThreatDetectionSettings" call. @@ -14308,7 +14308,7 @@ func (c *ProjectsUpdateEventThreatDetectionSettingsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.updateEventThreatDetectionSettings" call. @@ -14422,7 +14422,7 @@ func (c *ProjectsUpdateRapidVulnerabilityDetectionSettingsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.updateRapidVulnerabilityDetectionSettings" call. @@ -14536,7 +14536,7 @@ func (c *ProjectsUpdateSecurityHealthAnalyticsSettingsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.updateSecurityHealthAnalyticsSettings" call. @@ -14650,7 +14650,7 @@ func (c *ProjectsUpdateVirtualMachineThreatDetectionSettingsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.updateVirtualMachineThreatDetectionSettings" call. @@ -14763,7 +14763,7 @@ func (c *ProjectsUpdateWebSecurityScannerSettingsCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.updateWebSecurityScannerSettings" call. @@ -14882,7 +14882,7 @@ func (c *ProjectsContainerThreatDetectionSettingsCalculateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.containerThreatDetectionSettings.calculate" call. @@ -14999,7 +14999,7 @@ func (c *ProjectsEventThreatDetectionSettingsCalculateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.eventThreatDetectionSettings.calculate" call. @@ -15119,7 +15119,7 @@ func (c *ProjectsLocationsClustersGetContainerThreatDetectionSettingsCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.locations.clusters.getContainerThreatDetectionSettings" call. @@ -15235,7 +15235,7 @@ func (c *ProjectsLocationsClustersUpdateContainerThreatDetectionSettingsCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.locations.clusters.updateContainerThreatDetectionSettings" call. @@ -15354,7 +15354,7 @@ func (c *ProjectsLocationsClustersContainerThreatDetectionSettingsCalculateCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.locations.clusters.containerThreatDetectionSettings.calculate" call. @@ -15472,7 +15472,7 @@ func (c *ProjectsRapidVulnerabilityDetectionSettingsCalculateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.rapidVulnerabilityDetectionSettings.calculate" call. @@ -15589,7 +15589,7 @@ func (c *ProjectsSecurityHealthAnalyticsSettingsCalculateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.securityHealthAnalyticsSettings.calculate" call. @@ -15707,7 +15707,7 @@ func (c *ProjectsVirtualMachineThreatDetectionSettingsCalculateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.virtualMachineThreatDetectionSettings.calculate" call. @@ -15824,7 +15824,7 @@ func (c *ProjectsWebSecurityScannerSettingsCalculateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.projects.webSecurityScannerSettings.calculate" call. diff --git a/securitycenter/v1p1alpha1/securitycenter-gen.go b/securitycenter/v1p1alpha1/securitycenter-gen.go index 7fad0db56c6..bf185fa33e8 100644 --- a/securitycenter/v1p1alpha1/securitycenter-gen.go +++ b/securitycenter/v1p1alpha1/securitycenter-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // securitycenterService, err := securitycenter.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // securitycenterService, err := securitycenter.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // securitycenterService, err := securitycenter.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package securitycenter // import "google.golang.org/api/securitycenter/v1p1alpha1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "securitycenter:v1p1alpha1" const apiName = "securitycenter" const apiVersion = "v1p1alpha1" const basePath = "https://securitycenter.googleapis.com/" +const basePathTemplate = "https://securitycenter.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://securitycenter.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -157,388 +175,311 @@ type OrganizationsOperationsService struct { } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON +// representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // Finding: Security Command Center finding. A finding is a record of -// assessment data like security, risk, health, or privacy, that is -// ingested into Security Command Center for presentation, notification, -// analysis, policy testing, and enforcement. For example, a cross-site -// scripting (XSS) vulnerability in an App Engine application is a -// finding. +// assessment data like security, risk, health, or privacy, that is ingested +// into Security Command Center for presentation, notification, analysis, +// policy testing, and enforcement. For example, a cross-site scripting (XSS) +// vulnerability in an App Engine application is a finding. type Finding struct { - // Category: The additional taxonomy group within findings from a given - // source. This field is immutable after creation time. Example: - // "XSS_FLASH_INJECTION" + // Category: The additional taxonomy group within findings from a given source. + // This field is immutable after creation time. Example: "XSS_FLASH_INJECTION" Category string `json:"category,omitempty"` - - // CreateTime: The time at which the finding was created in Security - // Command Center. + // CreateTime: The time at which the finding was created in Security Command + // Center. CreateTime string `json:"createTime,omitempty"` - - // EventTime: The time at which the event took place, or when an update - // to the finding occurred. For example, if the finding represents an - // open firewall it would capture the time the detector believes the - // firewall became open. The accuracy is determined by the detector. If - // the finding were to be resolved afterward, this time would reflect - // when the finding was resolved. + // EventTime: The time at which the event took place, or when an update to the + // finding occurred. For example, if the finding represents an open firewall it + // would capture the time the detector believes the firewall became open. The + // accuracy is determined by the detector. If the finding were to be resolved + // afterward, this time would reflect when the finding was resolved. EventTime string `json:"eventTime,omitempty"` - - // ExternalUri: The URI that, if available, points to a web page outside - // of Security Command Center where additional information about the - // finding can be found. This field is guaranteed to be either empty or - // a well formed URL. + // ExternalUri: The URI that, if available, points to a web page outside of + // Security Command Center where additional information about the finding can + // be found. This field is guaranteed to be either empty or a well formed URL. ExternalUri string `json:"externalUri,omitempty"` - // Name: The relative resource name of this finding. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - // "organizations/{organization_id}/sources/{source_id}/findings/{finding - // _id}" + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" Name string `json:"name,omitempty"` - - // Parent: The relative resource name of the source the finding belongs - // to. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: + // Parent: The relative resource name of the source the finding belongs to. + // See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // This field is immutable after creation time. For example: // "organizations/{organization_id}/sources/{source_id}" Parent string `json:"parent,omitempty"` - - // ResourceName: For findings on Google Cloud resources, the full - // resource name of the Google Cloud resource this finding is for. See: - // https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation + // ResourceName: For findings on Google Cloud resources, the full resource name + // of the Google Cloud resource this finding is for. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name When + // the finding is for a non-Google Cloud resource, the resourceName can be a + // customer or partner defined string. This field is immutable after creation // time. ResourceName string `json:"resourceName,omitempty"` - - // SecurityMarks: Output only. User specified security marks. These - // marks are entirely managed by the user and come from the - // SecurityMarks resource that belongs to the finding. + // SecurityMarks: Output only. User specified security marks. These marks are + // entirely managed by the user and come from the SecurityMarks resource that + // belongs to the finding. SecurityMarks *SecurityMarks `json:"securityMarks,omitempty"` - - // SourceProperties: Source specific properties. These properties are - // managed by the source that writes the finding. The key names in the - // source_properties map must be between 1 and 255 characters, and must - // start with a letter and contain alphanumeric characters or - // underscores only. + // SourceProperties: Source specific properties. These properties are managed + // by the source that writes the finding. The key names in the + // source_properties map must be between 1 and 255 characters, and must start + // with a letter and contain alphanumeric characters or underscores only. SourceProperties googleapi.RawMessage `json:"sourceProperties,omitempty"` - // State: The state of the finding. // // Possible values: // "STATE_UNSPECIFIED" - Unspecified state. - // "ACTIVE" - The finding requires attention and has not been - // addressed yet. + // "ACTIVE" - The finding requires attention and has not been addressed yet. // "INACTIVE" - The finding has been fixed, triaged as a non-issue or // otherwise addressed and is no longer active. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Category") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Category") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Category") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Finding) MarshalJSON() ([]byte, error) { +func (s Finding) MarshalJSON() ([]byte, error) { type NoMethod Finding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1NotificationMessage: Cloud SCC's -// Notification +// GoogleCloudSecuritycenterV1NotificationMessage: Cloud SCC's Notification type GoogleCloudSecuritycenterV1NotificationMessage struct { - // Finding: If it's a Finding based notification config, this field will - // be populated. + // Finding: If it's a Finding based notification config, this field will be + // populated. Finding *Finding `json:"finding,omitempty"` - - // NotificationConfigName: Name of the notification config that - // generated current notification. + // NotificationConfigName: Name of the notification config that generated + // current notification. NotificationConfigName string `json:"notificationConfigName,omitempty"` - // Resource: The Cloud resource tied to this notification's Finding. Resource *GoogleCloudSecuritycenterV1Resource `json:"resource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Finding") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Finding") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Finding") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Finding") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1NotificationMessage) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1NotificationMessage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1NotificationMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1Resource: Information related to the -// Google Cloud resource. +// GoogleCloudSecuritycenterV1Resource: Information related to the Google +// Cloud resource. type GoogleCloudSecuritycenterV1Resource struct { // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` - // Parent: The full resource name of resource's parent. Parent string `json:"parent,omitempty"` - // ParentDisplayName: The human readable name of resource's parent. ParentDisplayName string `json:"parentDisplayName,omitempty"` - - // Project: The full resource name of project that the resource belongs - // to. + // Project: The full resource name of project that the resource belongs to. Project string `json:"project,omitempty"` - - // ProjectDisplayName: The human readable name of project that the - // resource belongs to. + // ProjectDisplayName: The human readable name of project that the resource + // belongs to. ProjectDisplayName string `json:"projectDisplayName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1Resource) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1Resource) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1Resource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse: Response of -// asset discovery run +// GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse: Response of asset +// discovery run type GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse struct { // Duration: The duration between asset discovery run start and end Duration string `json:"duration,omitempty"` - // State: The state of an asset discovery run. // // Possible values: // "STATE_UNSPECIFIED" - Asset discovery run state was unspecified. // "COMPLETED" - Asset discovery run completed successfully. - // "SUPERSEDED" - Asset discovery run was cancelled with tasks still - // pending, as another run for the same organization was started with a - // higher priority. + // "SUPERSEDED" - Asset discovery run was cancelled with tasks still pending, + // as another run for the same organization was started with a higher priority. // "TERMINATED" - Asset discovery run was killed and terminated. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse: Response -// of asset discovery run +// GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse: Response of asset +// discovery run type GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse struct { // Duration: The duration between asset discovery run start and end Duration string `json:"duration,omitempty"` - // State: The state of an asset discovery run. // // Possible values: // "STATE_UNSPECIFIED" - Asset discovery run state was unspecified. // "COMPLETED" - Asset discovery run completed successfully. - // "SUPERSEDED" - Asset discovery run was cancelled with tasks still - // pending, as another run for the same organization was started with a - // higher priority. + // "SUPERSEDED" - Asset discovery run was cancelled with tasks still pending, + // as another run for the same organization was started with a higher priority. // "TERMINATED" - Asset discovery run was killed and terminated. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudSecuritycenterV1p1beta1Asset: Security Command Center -// representation of a Google Cloud resource. The Asset is a Security -// Command Center resource that captures information about a single -// Google Cloud resource. All modifications to an Asset are only within -// the context of Security Command Center and don't affect the -// referenced Google Cloud resource. +// representation of a Google Cloud resource. The Asset is a Security Command +// Center resource that captures information about a single Google Cloud +// resource. All modifications to an Asset are only within the context of +// Security Command Center and don't affect the referenced Google Cloud +// resource. type GoogleCloudSecuritycenterV1p1beta1Asset struct { - // CreateTime: The time at which the asset was created in Security - // Command Center. + // CreateTime: The time at which the asset was created in Security Command + // Center. CreateTime string `json:"createTime,omitempty"` - - // IamPolicy: Cloud IAM Policy information associated with the Google - // Cloud resource described by the Security Command Center asset. This - // information is managed and defined by the Google Cloud resource and - // cannot be modified by the user. + // IamPolicy: Cloud IAM Policy information associated with the Google Cloud + // resource described by the Security Command Center asset. This information is + // managed and defined by the Google Cloud resource and cannot be modified by + // the user. IamPolicy *GoogleCloudSecuritycenterV1p1beta1IamPolicy `json:"iamPolicy,omitempty"` - // Name: The relative resource name of this asset. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - // "organizations/{organization_id}/assets/{asset_id}". + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: "organizations/{organization_id}/assets/{asset_id}". Name string `json:"name,omitempty"` - // ResourceProperties: Resource managed properties. These properties are - // managed and defined by the Google Cloud resource and cannot be - // modified by the user. + // managed and defined by the Google Cloud resource and cannot be modified by + // the user. ResourceProperties googleapi.RawMessage `json:"resourceProperties,omitempty"` - - // SecurityCenterProperties: Security Command Center managed properties. - // These properties are managed by Security Command Center and cannot be - // modified by the user. + // SecurityCenterProperties: Security Command Center managed properties. These + // properties are managed by Security Command Center and cannot be modified by + // the user. SecurityCenterProperties *GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties `json:"securityCenterProperties,omitempty"` - - // SecurityMarks: User specified security marks. These marks are - // entirely managed by the user and come from the SecurityMarks resource - // that belongs to the asset. + // SecurityMarks: User specified security marks. These marks are entirely + // managed by the user and come from the SecurityMarks resource that belongs to + // the asset. SecurityMarks *GoogleCloudSecuritycenterV1p1beta1SecurityMarks `json:"securityMarks,omitempty"` - - // UpdateTime: The time at which the asset was last updated, added, or - // deleted in Cloud SCC. + // UpdateTime: The time at which the asset was last updated, added, or deleted + // in Cloud SCC. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1Asset) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1Asset) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1Asset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1Finding: Security Command Center -// finding. A finding is a record of assessment data (security, risk, -// health or privacy) ingested into Security Command Center for -// presentation, notification, analysis, policy testing, and -// enforcement. For example, an XSS vulnerability in an App Engine -// application is a finding. +// GoogleCloudSecuritycenterV1p1beta1Finding: Security Command Center finding. +// A finding is a record of assessment data (security, risk, health or privacy) +// ingested into Security Command Center for presentation, notification, +// analysis, policy testing, and enforcement. For example, an XSS vulnerability +// in an App Engine application is a finding. type GoogleCloudSecuritycenterV1p1beta1Finding struct { - // Category: The additional taxonomy group within findings from a given - // source. This field is immutable after creation time. Example: - // "XSS_FLASH_INJECTION" + // Category: The additional taxonomy group within findings from a given source. + // This field is immutable after creation time. Example: "XSS_FLASH_INJECTION" Category string `json:"category,omitempty"` - - // CreateTime: The time at which the finding was created in Security - // Command Center. + // CreateTime: The time at which the finding was created in Security Command + // Center. CreateTime string `json:"createTime,omitempty"` - - // EventTime: The time at which the event took place, or when an update - // to the finding occurred. For example, if the finding represents an - // open firewall it would capture the time the detector believes the - // firewall became open. The accuracy is determined by the detector. If - // the finding were to be resolved afterward, this time would reflect - // when the finding was resolved. + // EventTime: The time at which the event took place, or when an update to the + // finding occurred. For example, if the finding represents an open firewall it + // would capture the time the detector believes the firewall became open. The + // accuracy is determined by the detector. If the finding were to be resolved + // afterward, this time would reflect when the finding was resolved. EventTime string `json:"eventTime,omitempty"` - - // ExternalUri: The URI that, if available, points to a web page outside - // of Security Command Center where additional information about the - // finding can be found. This field is guaranteed to be either empty or - // a well formed URL. + // ExternalUri: The URI that, if available, points to a web page outside of + // Security Command Center where additional information about the finding can + // be found. This field is guaranteed to be either empty or a well formed URL. ExternalUri string `json:"externalUri,omitempty"` - // Name: The relative resource name of this finding. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - // "organizations/{organization_id}/sources/{source_id}/findings/{finding - // _id}" + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" Name string `json:"name,omitempty"` - - // Parent: The relative resource name of the source the finding belongs - // to. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: + // Parent: The relative resource name of the source the finding belongs to. + // See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // This field is immutable after creation time. For example: // "organizations/{organization_id}/sources/{source_id}" Parent string `json:"parent,omitempty"` - - // ResourceName: For findings on Google Cloud resources, the full - // resource name of the Google Cloud resource this finding is for. See: - // https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation + // ResourceName: For findings on Google Cloud resources, the full resource name + // of the Google Cloud resource this finding is for. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name When + // the finding is for a non-Google Cloud resource, the resourceName can be a + // customer or partner defined string. This field is immutable after creation // time. ResourceName string `json:"resourceName,omitempty"` - - // SecurityMarks: Output only. User specified security marks. These - // marks are entirely managed by the user and come from the - // SecurityMarks resource that belongs to the finding. + // SecurityMarks: Output only. User specified security marks. These marks are + // entirely managed by the user and come from the SecurityMarks resource that + // belongs to the finding. SecurityMarks *GoogleCloudSecuritycenterV1p1beta1SecurityMarks `json:"securityMarks,omitempty"` - // Severity: The severity of the finding. // // Possible values: @@ -548,321 +489,254 @@ type GoogleCloudSecuritycenterV1p1beta1Finding struct { // "MEDIUM" - Medium severity. // "LOW" - Low severity. Severity string `json:"severity,omitempty"` - - // SourceProperties: Source specific properties. These properties are - // managed by the source that writes the finding. The key names in the - // source_properties map must be between 1 and 255 characters, and must - // start with a letter and contain alphanumeric characters or - // underscores only. + // SourceProperties: Source specific properties. These properties are managed + // by the source that writes the finding. The key names in the + // source_properties map must be between 1 and 255 characters, and must start + // with a letter and contain alphanumeric characters or underscores only. SourceProperties googleapi.RawMessage `json:"sourceProperties,omitempty"` - // State: The state of the finding. // // Possible values: // "STATE_UNSPECIFIED" - Unspecified state. - // "ACTIVE" - The finding requires attention and has not been - // addressed yet. + // "ACTIVE" - The finding requires attention and has not been addressed yet. // "INACTIVE" - The finding has been fixed, triaged as a non-issue or // otherwise addressed and is no longer active. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Category") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Category") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Category") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1Finding) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1Finding) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1Finding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1IamPolicy: Cloud IAM Policy -// information associated with the Google Cloud resource described by -// the Security Command Center asset. This information is managed and -// defined by the Google Cloud resource and cannot be modified by the -// user. +// GoogleCloudSecuritycenterV1p1beta1IamPolicy: Cloud IAM Policy information +// associated with the Google Cloud resource described by the Security Command +// Center asset. This information is managed and defined by the Google Cloud +// resource and cannot be modified by the user. type GoogleCloudSecuritycenterV1p1beta1IamPolicy struct { - // PolicyBlob: The JSON representation of the Policy associated with the - // asset. See https://cloud.google.com/iam/docs/reference/rest/v1/Policy - // for format details. + // PolicyBlob: The JSON representation of the Policy associated with the asset. + // See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for format + // details. PolicyBlob string `json:"policyBlob,omitempty"` - // ForceSendFields is a list of field names (e.g. "PolicyBlob") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PolicyBlob") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PolicyBlob") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1IamPolicy) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1IamPolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1IamPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1NotificationMessage: Security -// Command Center's Notification +// GoogleCloudSecuritycenterV1p1beta1NotificationMessage: Security Command +// Center's Notification type GoogleCloudSecuritycenterV1p1beta1NotificationMessage struct { - // Finding: If it's a Finding based notification config, this field will - // be populated. + // Finding: If it's a Finding based notification config, this field will be + // populated. Finding *GoogleCloudSecuritycenterV1p1beta1Finding `json:"finding,omitempty"` - - // NotificationConfigName: Name of the notification config that - // generated current notification. + // NotificationConfigName: Name of the notification config that generated + // current notification. NotificationConfigName string `json:"notificationConfigName,omitempty"` - // Resource: The Cloud resource tied to the notification. Resource *GoogleCloudSecuritycenterV1p1beta1Resource `json:"resource,omitempty"` - - // TemporalAsset: If it's an asset based notification config, this field - // will be populated. + // TemporalAsset: If it's an asset based notification config, this field will + // be populated. TemporalAsset *GoogleCloudSecuritycenterV1p1beta1TemporalAsset `json:"temporalAsset,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Finding") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Finding") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Finding") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Finding") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1NotificationMessage) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1NotificationMessage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1NotificationMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1Resource: Information related to -// the Google Cloud resource. +// GoogleCloudSecuritycenterV1p1beta1Resource: Information related to the +// Google Cloud resource. type GoogleCloudSecuritycenterV1p1beta1Resource struct { // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` - // Parent: The full resource name of resource's parent. Parent string `json:"parent,omitempty"` - // ParentDisplayName: The human readable name of resource's parent. ParentDisplayName string `json:"parentDisplayName,omitempty"` - - // Project: The full resource name of project that the resource belongs - // to. + // Project: The full resource name of project that the resource belongs to. Project string `json:"project,omitempty"` - - // ProjectDisplayName: The human readable name of project that the - // resource belongs to. + // ProjectDisplayName: The human readable name of project that the resource + // belongs to. ProjectDisplayName string `json:"projectDisplayName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1Resource) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1Resource) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1Resource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse: Response -// of asset discovery run +// GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse: Response of +// asset discovery run type GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse struct { // Duration: The duration between asset discovery run start and end Duration string `json:"duration,omitempty"` - // State: The state of an asset discovery run. // // Possible values: // "STATE_UNSPECIFIED" - Asset discovery run state was unspecified. // "COMPLETED" - Asset discovery run completed successfully. - // "SUPERSEDED" - Asset discovery run was cancelled with tasks still - // pending, as another run for the same organization was started with a - // higher priority. + // "SUPERSEDED" - Asset discovery run was cancelled with tasks still pending, + // as another run for the same organization was started with a higher priority. // "TERMINATED" - Asset discovery run was killed and terminated. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties: Security -// Command Center managed properties. These properties are managed by -// Security Command Center and cannot be modified by the user. +// GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties: Security Command +// Center managed properties. These properties are managed by Security Command +// Center and cannot be modified by the user. type GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties struct { // ResourceDisplayName: The user defined display name for this resource. ResourceDisplayName string `json:"resourceDisplayName,omitempty"` - - // ResourceName: The full resource name of the Google Cloud resource - // this asset represents. This field is immutable after create time. - // See: + // ResourceName: The full resource name of the Google Cloud resource this asset + // represents. This field is immutable after create time. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name ResourceName string `json:"resourceName,omitempty"` - // ResourceOwners: Owners of the Google Cloud resource. ResourceOwners []string `json:"resourceOwners,omitempty"` - // ResourceParent: The full resource name of the immediate parent of the // resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name ResourceParent string `json:"resourceParent,omitempty"` - - // ResourceParentDisplayName: The user defined display name for the - // parent of this resource. + // ResourceParentDisplayName: The user defined display name for the parent of + // this resource. ResourceParentDisplayName string `json:"resourceParentDisplayName,omitempty"` - - // ResourceProject: The full resource name of the project the resource - // belongs to. See: + // ResourceProject: The full resource name of the project the resource belongs + // to. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name ResourceProject string `json:"resourceProject,omitempty"` - - // ResourceProjectDisplayName: The user defined display name for the - // project of this resource. + // ResourceProjectDisplayName: The user defined display name for the project of + // this resource. ResourceProjectDisplayName string `json:"resourceProjectDisplayName,omitempty"` - - // ResourceType: The type of the Google Cloud resource. Examples - // include: APPLICATION, PROJECT, and ORGANIZATION. This is a case - // insensitive field defined by Security Command Center and/or the - // producer of the resource and is immutable after create time. + // ResourceType: The type of the Google Cloud resource. Examples include: + // APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field + // defined by Security Command Center and/or the producer of the resource and + // is immutable after create time. ResourceType string `json:"resourceType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ResourceDisplayName") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ResourceDisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceDisplayName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ResourceDisplayName") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1SecurityMarks: User specified -// security marks that are attached to the parent Security Command -// Center resource. Security marks are scoped within a Security Command -// Center organization -- they can be modified and viewed by all users -// who have proper permissions on the organization. +// GoogleCloudSecuritycenterV1p1beta1SecurityMarks: User specified security +// marks that are attached to the parent Security Command Center resource. +// Security marks are scoped within a Security Command Center organization -- +// they can be modified and viewed by all users who have proper permissions on +// the organization. type GoogleCloudSecuritycenterV1p1beta1SecurityMarks struct { // Marks: Mutable user specified security marks belonging to the parent - // resource. Constraints are as follows: * Keys and values are treated - // as case insensitive * Keys must be between 1 - 256 characters - // (inclusive) * Keys must be letters, numbers, underscores, or dashes * - // Values have leading and trailing whitespace trimmed, remaining - // characters must be between 1 - 4096 characters (inclusive) + // resource. Constraints are as follows: * Keys and values are treated as case + // insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys + // must be letters, numbers, underscores, or dashes * Values have leading and + // trailing whitespace trimmed, remaining characters must be between 1 - 4096 + // characters (inclusive) Marks map[string]string `json:"marks,omitempty"` - // Name: The relative resource name of the SecurityMarks. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" - // "organizations/{organization_id}/sources/{source_id}/findings/{finding - // _id}/securityMarks". + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/se + // curityMarks". Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Marks") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Marks") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Marks") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1SecurityMarks) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1SecurityMarks) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1SecurityMarks - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1TemporalAsset: Wrapper over asset -// object that also captures the state change for the asset e.g. if it -// was a newly created asset vs updated or deleted asset. +// GoogleCloudSecuritycenterV1p1beta1TemporalAsset: Wrapper over asset object +// that also captures the state change for the asset e.g. if it was a newly +// created asset vs updated or deleted asset. type GoogleCloudSecuritycenterV1p1beta1TemporalAsset struct { - // Asset: Asset data that includes attributes, properties and marks - // about the asset. + // Asset: Asset data that includes attributes, properties and marks about the + // asset. Asset *GoogleCloudSecuritycenterV1p1beta1Asset `json:"asset,omitempty"` - // ChangeType: Represents if the asset was created/updated/deleted. // // Possible values: @@ -871,218 +745,169 @@ type GoogleCloudSecuritycenterV1p1beta1TemporalAsset struct { // "UPDATED" - Asset was updated. // "DELETED" - Asset was deleted. ChangeType string `json:"changeType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Asset") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Asset") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Asset") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1TemporalAsset) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1TemporalAsset) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1TemporalAsset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SecurityMarks: User specified security marks that are attached to the -// parent Security Command Center resource. Security marks are scoped -// within a Security Command Center organization -- they can be modified -// and viewed by all users who have proper permissions on the -// organization. +// SecurityMarks: User specified security marks that are attached to the parent +// Security Command Center resource. Security marks are scoped within a +// Security Command Center organization -- they can be modified and viewed by +// all users who have proper permissions on the organization. type SecurityMarks struct { // Marks: Mutable user specified security marks belonging to the parent - // resource. Constraints are as follows: * Keys and values are treated - // as case insensitive * Keys must be between 1 - 256 characters - // (inclusive) * Keys must be letters, numbers, underscores, or dashes * - // Values have leading and trailing whitespace trimmed, remaining - // characters must be between 1 - 4096 characters (inclusive) + // resource. Constraints are as follows: * Keys and values are treated as case + // insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys + // must be letters, numbers, underscores, or dashes * Values have leading and + // trailing whitespace trimmed, remaining characters must be between 1 - 4096 + // characters (inclusive) Marks map[string]string `json:"marks,omitempty"` - // Name: The relative resource name of the SecurityMarks. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" - // "organizations/{organization_id}/sources/{source_id}/findings/{finding - // _id}/securityMarks". + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/se + // curityMarks". Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Marks") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Marks") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Marks") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecurityMarks) MarshalJSON() ([]byte, error) { +func (s SecurityMarks) MarshalJSON() ([]byte, error) { type NoMethod SecurityMarks - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the [API Design -// Guide](https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "securitycenter.organizations.operations.cancel": - type OrganizationsOperationsCancelCall struct { s *Service name string @@ -1091,16 +916,17 @@ type OrganizationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. func (r *OrganizationsOperationsService) Cancel(name string) *OrganizationsOperationsCancelCall { c := &OrganizationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1108,23 +934,21 @@ func (r *OrganizationsOperationsService) Cancel(name string) *OrganizationsOpera } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1133,12 +957,7 @@ func (c *OrganizationsOperationsCancelCall) Header() http.Header { } func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1152,16 +971,14 @@ func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1169,17 +986,17 @@ func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1192,35 +1009,7 @@ func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1p1alpha1/organizations/{organizationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^organizations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1alpha1/{+name}:cancel", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.operations.delete": +} type OrganizationsOperationsDeleteCall struct { s *Service @@ -1230,10 +1019,12 @@ type OrganizationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. func (r *OrganizationsOperationsService) Delete(name string) *OrganizationsOperationsDeleteCall { c := &OrganizationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1241,23 +1032,21 @@ func (r *OrganizationsOperationsService) Delete(name string) *OrganizationsOpera } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsOperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1266,12 +1055,7 @@ func (c *OrganizationsOperationsDeleteCall) Header() http.Header { } func (c *OrganizationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1285,16 +1069,14 @@ func (c *OrganizationsOperationsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1302,17 +1084,17 @@ func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*E if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1325,35 +1107,7 @@ func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*E return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1p1alpha1/organizations/{organizationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "securitycenter.organizations.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^organizations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1alpha1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.operations.get": +} type OrganizationsOperationsGetCall struct { s *Service @@ -1364,9 +1118,11 @@ type OrganizationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall { c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1374,33 +1130,29 @@ func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperatio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1409,12 +1161,7 @@ func (c *OrganizationsOperationsGetCall) Header() http.Header { } func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1431,16 +1178,14 @@ func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1448,17 +1193,17 @@ func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -1471,35 +1216,7 @@ func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1p1alpha1/organizations/{organizationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^organizations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1alpha1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.operations.list": +} type OrganizationsOperationsListCall struct { s *Service @@ -1510,71 +1227,67 @@ type OrganizationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. +// +// - name: The name of the operation's parent resource. func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall { c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1583,12 +1296,7 @@ func (c *OrganizationsOperationsListCall) Header() http.Header { } func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1605,16 +1313,15 @@ func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1622,17 +1329,17 @@ func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1645,48 +1352,6 @@ func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1p1alpha1/organizations/{organizationsId}/operations", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^organizations/[^/]+/operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1p1alpha1/{+name}", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1694,7 +1359,7 @@ func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis // The provided context supersedes any context provided to the Context method. func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/securitycenter/v1p1beta1/securitycenter-gen.go b/securitycenter/v1p1beta1/securitycenter-gen.go index dc5d8d16e98..0b6a696b30e 100644 --- a/securitycenter/v1p1beta1/securitycenter-gen.go +++ b/securitycenter/v1p1beta1/securitycenter-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // securitycenterService, err := securitycenter.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // securitycenterService, err := securitycenter.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // securitycenterService, err := securitycenter.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package securitycenter // import "google.golang.org/api/securitycenter/v1p1beta1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,11 +84,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "securitycenter:v1p1beta1" const apiName = "securitycenter" const apiVersion = "v1p1beta1" const basePath = "https://securitycenter.googleapis.com/" +const basePathTemplate = "https://securitycenter.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://securitycenter.mtls.googleapis.com/" // OAuth2 scopes used by this API. @@ -85,13 +101,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -204,111 +222,88 @@ type OrganizationsSourcesFindingsService struct { s *Service } -// AssetDiscoveryConfig: The configuration used for Asset Discovery -// runs. +// AssetDiscoveryConfig: The configuration used for Asset Discovery runs. type AssetDiscoveryConfig struct { // InclusionMode: The mode to use for filtering asset discovery. // // Possible values: - // "INCLUSION_MODE_UNSPECIFIED" - Unspecified. Setting the mode with - // this value will disable inclusion/exclusion filtering for Asset - // Discovery. - // "INCLUDE_ONLY" - Asset Discovery will capture only the resources - // within the projects specified. All other resources will be ignored. - // "EXCLUDE" - Asset Discovery will ignore all resources under the - // projects specified. All other resources will be retrieved. + // "INCLUSION_MODE_UNSPECIFIED" - Unspecified. Setting the mode with this + // value will disable inclusion/exclusion filtering for Asset Discovery. + // "INCLUDE_ONLY" - Asset Discovery will capture only the resources within + // the projects specified. All other resources will be ignored. + // "EXCLUDE" - Asset Discovery will ignore all resources under the projects + // specified. All other resources will be retrieved. InclusionMode string `json:"inclusionMode,omitempty"` - // ProjectIds: The project ids to use for filtering asset discovery. ProjectIds []string `json:"projectIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "InclusionMode") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InclusionMode") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "InclusionMode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AssetDiscoveryConfig) MarshalJSON() ([]byte, error) { +func (s AssetDiscoveryConfig) MarshalJSON() ([]byte, error) { type NoMethod AssetDiscoveryConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what -// identities, if any, are exempted from logging. An AuditConfig must -// have one or more AuditLogConfigs. If there are AuditConfigs for both -// `allServices` and a specific service, the union of the two -// AuditConfigs is used for that service: the log_types specified in -// each AuditConfig are enabled, and the exempted_members in each -// AuditLogConfig are exempted. Example Policy with multiple -// AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": -// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { -// "log_type": "ADMIN_READ" } ] }, { "service": -// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": -// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ -// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy -// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts -// jose@example.com from DATA_READ logging, and aliya@example.com from -// DATA_WRITE logging. +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +// and a specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted. Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts jose@example.com from DATA_READ logging, and +// aliya@example.com from DATA_WRITE logging. type AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of - // permission. + // AuditLogConfigs: The configuration for logging of each type of permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` - - // Service: Specifies a service that will be enabled for audit logging. - // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - // `allServices` is a special value that covers all services. + // Service: Specifies a service that will be enabled for audit logging. For + // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` + // is a special value that covers all services. Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditLogConfigs") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditConfig) MarshalJSON() ([]byte, error) { +func (s AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditLogConfig: Provides the configuration for logging a type of -// permissions. Example: { "audit_log_configs": [ { "log_type": -// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { -// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and -// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ -// logging. +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. type AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging - // for this type of permission. Follows the same format of - // Binding.members. + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. // // Possible values: @@ -317,615 +312,491 @@ type AuditLogConfig struct { // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExemptedMembers") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExemptedMembers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditLogConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members` with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the - // current request. If the condition evaluates to `false`, then this - // binding does not apply to the current request. However, a different - // role binding might grant the same role to one or more of the members - // in this binding. To learn which resources support conditions in their - // IAM policies, see the [IAM - // documentation](https://cloud.google.com/iam/help/conditions/resource-p - // olicies). + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the members in this binding. To learn which + // resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` - - // Members: Specifies the identities requesting access for a Cloud - // Platform resource. `members` can have the following values: * - // `allUsers`: A special identifier that represents anyone who is on the - // internet; with or without a Google account. * - // `allAuthenticatedUsers`: A special identifier that represents anyone - // who is authenticated with a Google account or a service account. * - // `user:{emailid}`: An email address that represents a specific Google - // account. For example, `alice@example.com` . * - // `serviceAccount:{emailid}`: An email address that represents a - // service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An - // email address that represents a Google group. For example, - // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An - // email address (plus unique identifier) representing a user that has - // been recently deleted. For example, - // `alice@example.com?uid=123456789012345678901`. If the user is - // recovered, this value reverts to `user:{emailid}` and the recovered - // user retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus unique identifier) representing a service account that has been + // Members: Specifies the identities requesting access for a Cloud Platform + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. * `user:{emailid}`: An email address that represents a specific + // Google account. For example, `alice@example.com` . * + // `serviceAccount:{emailid}`: An email address that represents a service + // account. For example, `my-other-app@appspot.gserviceaccount.com`. * + // `group:{emailid}`: An email address that represents a Google group. For + // example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has been + // recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is recovered, + // this value reverts to `user:{emailid}` and the recovered user retains the + // role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a service account that + // has been recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the + // service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + // address (plus unique identifier) representing a Google group that has been // recently deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: - // An email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is - // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // `admins@example.com?uid=123456789012345678901`. If the group is recovered, + // this value reverts to `group:{emailid}` and the recovered group retains the + // role in the binding. * `domain:{domain}`: The G Suite domain (primary) that + // represents all the users of that domain. For example, `google.com` or + // `example.com`. Members []string `json:"members,omitempty"` - - // Role: Role that is assigned to `members`. For example, - // `roles/viewer`, `roles/editor`, or `roles/owner`. + // Role: Role that is assigned to `members`. For example, `roles/viewer`, + // `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON +// representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec. Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if // requestor is the document owner" expression: "document.owner == // request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional // information. type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. + // Expression: Textual representation of an expression in Common Expression + // Language syntax. Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Finding: Security Command Center finding. A finding is a record of -// assessment data like security, risk, health, or privacy, that is -// ingested into Security Command Center for presentation, notification, -// analysis, policy testing, and enforcement. For example, a cross-site -// scripting (XSS) vulnerability in an App Engine application is a -// finding. +// assessment data like security, risk, health, or privacy, that is ingested +// into Security Command Center for presentation, notification, analysis, +// policy testing, and enforcement. For example, a cross-site scripting (XSS) +// vulnerability in an App Engine application is a finding. type Finding struct { - // Category: The additional taxonomy group within findings from a given - // source. This field is immutable after creation time. Example: - // "XSS_FLASH_INJECTION" + // Category: The additional taxonomy group within findings from a given source. + // This field is immutable after creation time. Example: "XSS_FLASH_INJECTION" Category string `json:"category,omitempty"` - - // CreateTime: The time at which the finding was created in Security - // Command Center. + // CreateTime: The time at which the finding was created in Security Command + // Center. CreateTime string `json:"createTime,omitempty"` - - // EventTime: The time at which the event took place, or when an update - // to the finding occurred. For example, if the finding represents an - // open firewall it would capture the time the detector believes the - // firewall became open. The accuracy is determined by the detector. If - // the finding were to be resolved afterward, this time would reflect - // when the finding was resolved. + // EventTime: The time at which the event took place, or when an update to the + // finding occurred. For example, if the finding represents an open firewall it + // would capture the time the detector believes the firewall became open. The + // accuracy is determined by the detector. If the finding were to be resolved + // afterward, this time would reflect when the finding was resolved. EventTime string `json:"eventTime,omitempty"` - - // ExternalUri: The URI that, if available, points to a web page outside - // of Security Command Center where additional information about the - // finding can be found. This field is guaranteed to be either empty or - // a well formed URL. + // ExternalUri: The URI that, if available, points to a web page outside of + // Security Command Center where additional information about the finding can + // be found. This field is guaranteed to be either empty or a well formed URL. ExternalUri string `json:"externalUri,omitempty"` - // Name: The relative resource name of this finding. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - // "organizations/{organization_id}/sources/{source_id}/findings/{finding - // _id}" + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" Name string `json:"name,omitempty"` - - // Parent: The relative resource name of the source the finding belongs - // to. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: + // Parent: The relative resource name of the source the finding belongs to. + // See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // This field is immutable after creation time. For example: // "organizations/{organization_id}/sources/{source_id}" Parent string `json:"parent,omitempty"` - - // ResourceName: For findings on Google Cloud resources, the full - // resource name of the Google Cloud resource this finding is for. See: - // https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation + // ResourceName: For findings on Google Cloud resources, the full resource name + // of the Google Cloud resource this finding is for. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name When + // the finding is for a non-Google Cloud resource, the resourceName can be a + // customer or partner defined string. This field is immutable after creation // time. ResourceName string `json:"resourceName,omitempty"` - - // SecurityMarks: Output only. User specified security marks. These - // marks are entirely managed by the user and come from the - // SecurityMarks resource that belongs to the finding. + // SecurityMarks: Output only. User specified security marks. These marks are + // entirely managed by the user and come from the SecurityMarks resource that + // belongs to the finding. SecurityMarks *SecurityMarks `json:"securityMarks,omitempty"` - - // SourceProperties: Source specific properties. These properties are - // managed by the source that writes the finding. The key names in the - // source_properties map must be between 1 and 255 characters, and must - // start with a letter and contain alphanumeric characters or - // underscores only. + // SourceProperties: Source specific properties. These properties are managed + // by the source that writes the finding. The key names in the + // source_properties map must be between 1 and 255 characters, and must start + // with a letter and contain alphanumeric characters or underscores only. SourceProperties googleapi.RawMessage `json:"sourceProperties,omitempty"` - // State: The state of the finding. // // Possible values: // "STATE_UNSPECIFIED" - Unspecified state. - // "ACTIVE" - The finding requires attention and has not been - // addressed yet. + // "ACTIVE" - The finding requires attention and has not been addressed yet. // "INACTIVE" - The finding has been fixed, triaged as a non-issue or // otherwise addressed and is no longer active. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Category") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Category") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Category") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Finding) MarshalJSON() ([]byte, error) { +func (s Finding) MarshalJSON() ([]byte, error) { type NoMethod Finding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetIamPolicyRequest: Request message for `GetIamPolicy` method. type GetIamPolicyRequest struct { - // Options: OPTIONAL: A `GetPolicyOptions` object for specifying options - // to `GetIamPolicy`. + // Options: OPTIONAL: A `GetPolicyOptions` object for specifying options to + // `GetIamPolicy`. Options *GetPolicyOptions `json:"options,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Options") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Options") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Options") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Options") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s GetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod GetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GetPolicyOptions: Encapsulates settings provided to GetIamPolicy. type GetPolicyOptions struct { - // RequestedPolicyVersion: Optional. The policy format version to be - // returned. Valid values are 0, 1, and 3. Requests specifying an - // invalid value will be rejected. Requests for policies with any - // conditional bindings must specify version 3. Policies without any - // conditional bindings may specify any valid value or leave the field - // unset. To learn which resources support conditions in their IAM - // policies, see the [IAM - // documentation](https://cloud.google.com/iam/help/conditions/resource-p - // olicies). + // RequestedPolicyVersion: Optional. The policy format version to be returned. + // Valid values are 0, 1, and 3. Requests specifying an invalid value will be + // rejected. Requests for policies with any conditional bindings must specify + // version 3. Policies without any conditional bindings may specify any valid + // value or leave the field unset. To learn which resources support conditions + // in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "RequestedPolicyVersion") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestedPolicyVersion") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "RequestedPolicyVersion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { +func (s GetPolicyOptions) MarshalJSON() ([]byte, error) { type NoMethod GetPolicyOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1NotificationMessage: Cloud SCC's -// Notification +// GoogleCloudSecuritycenterV1NotificationMessage: Cloud SCC's Notification type GoogleCloudSecuritycenterV1NotificationMessage struct { - // Finding: If it's a Finding based notification config, this field will - // be populated. + // Finding: If it's a Finding based notification config, this field will be + // populated. Finding *Finding `json:"finding,omitempty"` - - // NotificationConfigName: Name of the notification config that - // generated current notification. + // NotificationConfigName: Name of the notification config that generated + // current notification. NotificationConfigName string `json:"notificationConfigName,omitempty"` - // Resource: The Cloud resource tied to this notification's Finding. Resource *GoogleCloudSecuritycenterV1Resource `json:"resource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Finding") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Finding") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Finding") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Finding") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1NotificationMessage) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1NotificationMessage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1NotificationMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1Resource: Information related to the -// Google Cloud resource. +// GoogleCloudSecuritycenterV1Resource: Information related to the Google +// Cloud resource. type GoogleCloudSecuritycenterV1Resource struct { // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` - // Parent: The full resource name of resource's parent. Parent string `json:"parent,omitempty"` - // ParentDisplayName: The human readable name of resource's parent. ParentDisplayName string `json:"parentDisplayName,omitempty"` - - // Project: The full resource name of project that the resource belongs - // to. + // Project: The full resource name of project that the resource belongs to. Project string `json:"project,omitempty"` - - // ProjectDisplayName: The human readable name of project that the - // resource belongs to. + // ProjectDisplayName: The human readable name of project that the resource + // belongs to. ProjectDisplayName string `json:"projectDisplayName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1Resource) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1Resource) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1Resource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse: Response of -// asset discovery run +// GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse: Response of asset +// discovery run type GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse struct { // Duration: The duration between asset discovery run start and end Duration string `json:"duration,omitempty"` - // State: The state of an asset discovery run. // // Possible values: // "STATE_UNSPECIFIED" - Asset discovery run state was unspecified. // "COMPLETED" - Asset discovery run completed successfully. - // "SUPERSEDED" - Asset discovery run was cancelled with tasks still - // pending, as another run for the same organization was started with a - // higher priority. + // "SUPERSEDED" - Asset discovery run was cancelled with tasks still pending, + // as another run for the same organization was started with a higher priority. // "TERMINATED" - Asset discovery run was killed and terminated. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse: Response -// of asset discovery run +// GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse: Response of asset +// discovery run type GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse struct { // Duration: The duration between asset discovery run start and end Duration string `json:"duration,omitempty"` - // State: The state of an asset discovery run. // // Possible values: // "STATE_UNSPECIFIED" - Asset discovery run state was unspecified. // "COMPLETED" - Asset discovery run completed successfully. - // "SUPERSEDED" - Asset discovery run was cancelled with tasks still - // pending, as another run for the same organization was started with a - // higher priority. + // "SUPERSEDED" - Asset discovery run was cancelled with tasks still pending, + // as another run for the same organization was started with a higher priority. // "TERMINATED" - Asset discovery run was killed and terminated. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudSecuritycenterV1p1beta1Asset: Security Command Center -// representation of a Google Cloud resource. The Asset is a Security -// Command Center resource that captures information about a single -// Google Cloud resource. All modifications to an Asset are only within -// the context of Security Command Center and don't affect the -// referenced Google Cloud resource. +// representation of a Google Cloud resource. The Asset is a Security Command +// Center resource that captures information about a single Google Cloud +// resource. All modifications to an Asset are only within the context of +// Security Command Center and don't affect the referenced Google Cloud +// resource. type GoogleCloudSecuritycenterV1p1beta1Asset struct { - // CreateTime: The time at which the asset was created in Security - // Command Center. + // CreateTime: The time at which the asset was created in Security Command + // Center. CreateTime string `json:"createTime,omitempty"` - - // IamPolicy: Cloud IAM Policy information associated with the Google - // Cloud resource described by the Security Command Center asset. This - // information is managed and defined by the Google Cloud resource and - // cannot be modified by the user. + // IamPolicy: Cloud IAM Policy information associated with the Google Cloud + // resource described by the Security Command Center asset. This information is + // managed and defined by the Google Cloud resource and cannot be modified by + // the user. IamPolicy *GoogleCloudSecuritycenterV1p1beta1IamPolicy `json:"iamPolicy,omitempty"` - // Name: The relative resource name of this asset. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - // "organizations/{organization_id}/assets/{asset_id}". + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: "organizations/{organization_id}/assets/{asset_id}". Name string `json:"name,omitempty"` - // ResourceProperties: Resource managed properties. These properties are - // managed and defined by the Google Cloud resource and cannot be - // modified by the user. + // managed and defined by the Google Cloud resource and cannot be modified by + // the user. ResourceProperties googleapi.RawMessage `json:"resourceProperties,omitempty"` - - // SecurityCenterProperties: Security Command Center managed properties. - // These properties are managed by Security Command Center and cannot be - // modified by the user. + // SecurityCenterProperties: Security Command Center managed properties. These + // properties are managed by Security Command Center and cannot be modified by + // the user. SecurityCenterProperties *GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties `json:"securityCenterProperties,omitempty"` - - // SecurityMarks: User specified security marks. These marks are - // entirely managed by the user and come from the SecurityMarks resource - // that belongs to the asset. + // SecurityMarks: User specified security marks. These marks are entirely + // managed by the user and come from the SecurityMarks resource that belongs to + // the asset. SecurityMarks *GoogleCloudSecuritycenterV1p1beta1SecurityMarks `json:"securityMarks,omitempty"` - - // UpdateTime: The time at which the asset was last updated, added, or - // deleted in Cloud SCC. + // UpdateTime: The time at which the asset was last updated, added, or deleted + // in Cloud SCC. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1Asset) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1Asset) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1Asset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1Finding: Security Command Center -// finding. A finding is a record of assessment data (security, risk, -// health or privacy) ingested into Security Command Center for -// presentation, notification, analysis, policy testing, and -// enforcement. For example, an XSS vulnerability in an App Engine -// application is a finding. +// GoogleCloudSecuritycenterV1p1beta1Finding: Security Command Center finding. +// A finding is a record of assessment data (security, risk, health or privacy) +// ingested into Security Command Center for presentation, notification, +// analysis, policy testing, and enforcement. For example, an XSS vulnerability +// in an App Engine application is a finding. type GoogleCloudSecuritycenterV1p1beta1Finding struct { - // Category: The additional taxonomy group within findings from a given - // source. This field is immutable after creation time. Example: - // "XSS_FLASH_INJECTION" + // Category: The additional taxonomy group within findings from a given source. + // This field is immutable after creation time. Example: "XSS_FLASH_INJECTION" Category string `json:"category,omitempty"` - - // CreateTime: The time at which the finding was created in Security - // Command Center. + // CreateTime: The time at which the finding was created in Security Command + // Center. CreateTime string `json:"createTime,omitempty"` - - // EventTime: The time at which the event took place, or when an update - // to the finding occurred. For example, if the finding represents an - // open firewall it would capture the time the detector believes the - // firewall became open. The accuracy is determined by the detector. If - // the finding were to be resolved afterward, this time would reflect - // when the finding was resolved. + // EventTime: The time at which the event took place, or when an update to the + // finding occurred. For example, if the finding represents an open firewall it + // would capture the time the detector believes the firewall became open. The + // accuracy is determined by the detector. If the finding were to be resolved + // afterward, this time would reflect when the finding was resolved. EventTime string `json:"eventTime,omitempty"` - - // ExternalUri: The URI that, if available, points to a web page outside - // of Security Command Center where additional information about the - // finding can be found. This field is guaranteed to be either empty or - // a well formed URL. + // ExternalUri: The URI that, if available, points to a web page outside of + // Security Command Center where additional information about the finding can + // be found. This field is guaranteed to be either empty or a well formed URL. ExternalUri string `json:"externalUri,omitempty"` - // Name: The relative resource name of this finding. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - // "organizations/{organization_id}/sources/{source_id}/findings/{finding - // _id}" + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" Name string `json:"name,omitempty"` - - // Parent: The relative resource name of the source the finding belongs - // to. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: + // Parent: The relative resource name of the source the finding belongs to. + // See: + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // This field is immutable after creation time. For example: // "organizations/{organization_id}/sources/{source_id}" Parent string `json:"parent,omitempty"` - - // ResourceName: For findings on Google Cloud resources, the full - // resource name of the Google Cloud resource this finding is for. See: - // https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation + // ResourceName: For findings on Google Cloud resources, the full resource name + // of the Google Cloud resource this finding is for. See: + // https://cloud.google.com/apis/design/resource_names#full_resource_name When + // the finding is for a non-Google Cloud resource, the resourceName can be a + // customer or partner defined string. This field is immutable after creation // time. ResourceName string `json:"resourceName,omitempty"` - - // SecurityMarks: Output only. User specified security marks. These - // marks are entirely managed by the user and come from the - // SecurityMarks resource that belongs to the finding. + // SecurityMarks: Output only. User specified security marks. These marks are + // entirely managed by the user and come from the SecurityMarks resource that + // belongs to the finding. SecurityMarks *GoogleCloudSecuritycenterV1p1beta1SecurityMarks `json:"securityMarks,omitempty"` - // Severity: The severity of the finding. // // Possible values: @@ -935,329 +806,260 @@ type GoogleCloudSecuritycenterV1p1beta1Finding struct { // "MEDIUM" - Medium severity. // "LOW" - Low severity. Severity string `json:"severity,omitempty"` - - // SourceProperties: Source specific properties. These properties are - // managed by the source that writes the finding. The key names in the - // source_properties map must be between 1 and 255 characters, and must - // start with a letter and contain alphanumeric characters or - // underscores only. + // SourceProperties: Source specific properties. These properties are managed + // by the source that writes the finding. The key names in the + // source_properties map must be between 1 and 255 characters, and must start + // with a letter and contain alphanumeric characters or underscores only. SourceProperties googleapi.RawMessage `json:"sourceProperties,omitempty"` - // State: The state of the finding. // // Possible values: // "STATE_UNSPECIFIED" - Unspecified state. - // "ACTIVE" - The finding requires attention and has not been - // addressed yet. + // "ACTIVE" - The finding requires attention and has not been addressed yet. // "INACTIVE" - The finding has been fixed, triaged as a non-issue or // otherwise addressed and is no longer active. State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Category") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Category") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Category") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1Finding) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1Finding) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1Finding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1IamPolicy: Cloud IAM Policy -// information associated with the Google Cloud resource described by -// the Security Command Center asset. This information is managed and -// defined by the Google Cloud resource and cannot be modified by the -// user. +// GoogleCloudSecuritycenterV1p1beta1IamPolicy: Cloud IAM Policy information +// associated with the Google Cloud resource described by the Security Command +// Center asset. This information is managed and defined by the Google Cloud +// resource and cannot be modified by the user. type GoogleCloudSecuritycenterV1p1beta1IamPolicy struct { - // PolicyBlob: The JSON representation of the Policy associated with the - // asset. See https://cloud.google.com/iam/docs/reference/rest/v1/Policy - // for format details. + // PolicyBlob: The JSON representation of the Policy associated with the asset. + // See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for format + // details. PolicyBlob string `json:"policyBlob,omitempty"` - // ForceSendFields is a list of field names (e.g. "PolicyBlob") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PolicyBlob") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PolicyBlob") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1IamPolicy) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1IamPolicy) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1IamPolicy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1NotificationMessage: Security -// Command Center's Notification +// GoogleCloudSecuritycenterV1p1beta1NotificationMessage: Security Command +// Center's Notification type GoogleCloudSecuritycenterV1p1beta1NotificationMessage struct { - // Finding: If it's a Finding based notification config, this field will - // be populated. + // Finding: If it's a Finding based notification config, this field will be + // populated. Finding *GoogleCloudSecuritycenterV1p1beta1Finding `json:"finding,omitempty"` - - // NotificationConfigName: Name of the notification config that - // generated current notification. + // NotificationConfigName: Name of the notification config that generated + // current notification. NotificationConfigName string `json:"notificationConfigName,omitempty"` - // Resource: The Cloud resource tied to the notification. Resource *GoogleCloudSecuritycenterV1p1beta1Resource `json:"resource,omitempty"` - - // TemporalAsset: If it's an asset based notification config, this field - // will be populated. + // TemporalAsset: If it's an asset based notification config, this field will + // be populated. TemporalAsset *GoogleCloudSecuritycenterV1p1beta1TemporalAsset `json:"temporalAsset,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Finding") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Finding") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Finding") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Finding") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1NotificationMessage) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1NotificationMessage) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1NotificationMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1Resource: Information related to -// the Google Cloud resource. +// GoogleCloudSecuritycenterV1p1beta1Resource: Information related to the +// Google Cloud resource. type GoogleCloudSecuritycenterV1p1beta1Resource struct { // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` - // Parent: The full resource name of resource's parent. Parent string `json:"parent,omitempty"` - // ParentDisplayName: The human readable name of resource's parent. ParentDisplayName string `json:"parentDisplayName,omitempty"` - - // Project: The full resource name of project that the resource belongs - // to. + // Project: The full resource name of project that the resource belongs to. Project string `json:"project,omitempty"` - - // ProjectDisplayName: The human readable name of project that the - // resource belongs to. + // ProjectDisplayName: The human readable name of project that the resource + // belongs to. ProjectDisplayName string `json:"projectDisplayName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1Resource) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1Resource) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1Resource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse: Response -// of asset discovery run +// GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse: Response of +// asset discovery run type GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse struct { // Duration: The duration between asset discovery run start and end Duration string `json:"duration,omitempty"` - // State: The state of an asset discovery run. // // Possible values: // "STATE_UNSPECIFIED" - Asset discovery run state was unspecified. // "COMPLETED" - Asset discovery run completed successfully. - // "SUPERSEDED" - Asset discovery run was cancelled with tasks still - // pending, as another run for the same organization was started with a - // higher priority. + // "SUPERSEDED" - Asset discovery run was cancelled with tasks still pending, + // as another run for the same organization was started with a higher priority. // "TERMINATED" - Asset discovery run was killed and terminated. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties: Security -// Command Center managed properties. These properties are managed by -// Security Command Center and cannot be modified by the user. +// GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties: Security Command +// Center managed properties. These properties are managed by Security Command +// Center and cannot be modified by the user. type GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties struct { // ResourceDisplayName: The user defined display name for this resource. ResourceDisplayName string `json:"resourceDisplayName,omitempty"` - - // ResourceName: The full resource name of the Google Cloud resource - // this asset represents. This field is immutable after create time. - // See: + // ResourceName: The full resource name of the Google Cloud resource this asset + // represents. This field is immutable after create time. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name ResourceName string `json:"resourceName,omitempty"` - // ResourceOwners: Owners of the Google Cloud resource. ResourceOwners []string `json:"resourceOwners,omitempty"` - // ResourceParent: The full resource name of the immediate parent of the // resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name ResourceParent string `json:"resourceParent,omitempty"` - - // ResourceParentDisplayName: The user defined display name for the - // parent of this resource. + // ResourceParentDisplayName: The user defined display name for the parent of + // this resource. ResourceParentDisplayName string `json:"resourceParentDisplayName,omitempty"` - - // ResourceProject: The full resource name of the project the resource - // belongs to. See: + // ResourceProject: The full resource name of the project the resource belongs + // to. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name ResourceProject string `json:"resourceProject,omitempty"` - - // ResourceProjectDisplayName: The user defined display name for the - // project of this resource. + // ResourceProjectDisplayName: The user defined display name for the project of + // this resource. ResourceProjectDisplayName string `json:"resourceProjectDisplayName,omitempty"` - - // ResourceType: The type of the Google Cloud resource. Examples - // include: APPLICATION, PROJECT, and ORGANIZATION. This is a case - // insensitive field defined by Security Command Center and/or the - // producer of the resource and is immutable after create time. + // ResourceType: The type of the Google Cloud resource. Examples include: + // APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field + // defined by Security Command Center and/or the producer of the resource and + // is immutable after create time. ResourceType string `json:"resourceType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ResourceDisplayName") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ResourceDisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceDisplayName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ResourceDisplayName") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1SecurityMarks: User specified -// security marks that are attached to the parent Security Command -// Center resource. Security marks are scoped within a Security Command -// Center organization -- they can be modified and viewed by all users -// who have proper permissions on the organization. +// GoogleCloudSecuritycenterV1p1beta1SecurityMarks: User specified security +// marks that are attached to the parent Security Command Center resource. +// Security marks are scoped within a Security Command Center organization -- +// they can be modified and viewed by all users who have proper permissions on +// the organization. type GoogleCloudSecuritycenterV1p1beta1SecurityMarks struct { // Marks: Mutable user specified security marks belonging to the parent - // resource. Constraints are as follows: * Keys and values are treated - // as case insensitive * Keys must be between 1 - 256 characters - // (inclusive) * Keys must be letters, numbers, underscores, or dashes * - // Values have leading and trailing whitespace trimmed, remaining - // characters must be between 1 - 4096 characters (inclusive) + // resource. Constraints are as follows: * Keys and values are treated as case + // insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys + // must be letters, numbers, underscores, or dashes * Values have leading and + // trailing whitespace trimmed, remaining characters must be between 1 - 4096 + // characters (inclusive) Marks map[string]string `json:"marks,omitempty"` - // Name: The relative resource name of the SecurityMarks. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" - // "organizations/{organization_id}/sources/{source_id}/findings/{finding - // _id}/securityMarks". + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/se + // curityMarks". Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Marks") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Marks") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Marks") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1SecurityMarks) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1SecurityMarks) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1SecurityMarks - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1p1beta1TemporalAsset: Wrapper over asset -// object that also captures the state change for the asset e.g. if it -// was a newly created asset vs updated or deleted asset. +// GoogleCloudSecuritycenterV1p1beta1TemporalAsset: Wrapper over asset object +// that also captures the state change for the asset e.g. if it was a newly +// created asset vs updated or deleted asset. type GoogleCloudSecuritycenterV1p1beta1TemporalAsset struct { - // Asset: Asset data that includes attributes, properties and marks - // about the asset. + // Asset: Asset data that includes attributes, properties and marks about the + // asset. Asset *GoogleCloudSecuritycenterV1p1beta1Asset `json:"asset,omitempty"` - // ChangeType: Represents if the asset was created/updated/deleted. // // Possible values: @@ -1266,75 +1068,65 @@ type GoogleCloudSecuritycenterV1p1beta1TemporalAsset struct { // "UPDATED" - Asset was updated. // "DELETED" - Asset was deleted. ChangeType string `json:"changeType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Asset") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Asset") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Asset") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudSecuritycenterV1p1beta1TemporalAsset) MarshalJSON() ([]byte, error) { +func (s GoogleCloudSecuritycenterV1p1beta1TemporalAsset) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudSecuritycenterV1p1beta1TemporalAsset - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GroupAssetsRequest: Request message for grouping by assets. type GroupAssetsRequest struct { // CompareDuration: When compare_duration is set, the GroupResult's - // "state_change" property is updated to indicate whether the asset was - // added, removed, or remained present during the compare_duration - // period of time that precedes the read_time. This is the time between - // (read_time - compare_duration) and read_time. The state change value - // is derived based on the presence of the asset at the two points in - // time. Intermediate state changes between the two times don't affect - // the result. For example, the results aren't affected if the asset is - // removed and re-created again. Possible "state_change" values when - // compare_duration is specified: * "ADDED": indicates that the asset - // was not present at the start of compare_duration, but present at - // reference_time. * "REMOVED": indicates that the asset was present at - // the start of compare_duration, but not present at reference_time. * - // "ACTIVE": indicates that the asset was present at both the start and - // the end of the time period defined by compare_duration and - // reference_time. If compare_duration is not specified, then the only - // possible state_change is "UNUSED", which will be the state_change set - // for all assets present at read_time. If this field is set then - // `state_change` must be a specified field in `group_by`. + // "state_change" property is updated to indicate whether the asset was added, + // removed, or remained present during the compare_duration period of time that + // precedes the read_time. This is the time between (read_time - + // compare_duration) and read_time. The state change value is derived based on + // the presence of the asset at the two points in time. Intermediate state + // changes between the two times don't affect the result. For example, the + // results aren't affected if the asset is removed and re-created again. + // Possible "state_change" values when compare_duration is specified: * + // "ADDED": indicates that the asset was not present at the start of + // compare_duration, but present at reference_time. * "REMOVED": indicates that + // the asset was present at the start of compare_duration, but not present at + // reference_time. * "ACTIVE": indicates that the asset was present at both the + // start and the end of the time period defined by compare_duration and + // reference_time. If compare_duration is not specified, then the only possible + // state_change is "UNUSED", which will be the state_change set for all assets + // present at read_time. If this field is set then `state_change` must be a + // specified field in `group_by`. CompareDuration string `json:"compareDuration,omitempty"` - - // Filter: Expression that defines the filter to apply across assets. - // The expression is a list of zero or more restrictions combined via - // logical operators `AND` and `OR`. Parentheses are supported, and `OR` - // has higher precedence than `AND`. Restrictions have the form ` ` and - // may have a `-` character in front of them to indicate negation. The - // fields map to those defined in the Asset resource. Examples include: - // * name * security_center_properties.resource_name * - // resource_properties.a_property * security_marks.marks.marka The - // supported operators are: * `=` for all value types. * `>`, `<`, `>=`, - // `<=` for integer values. * `:`, meaning substring matching, for - // strings. The supported value types are: * string literals in quotes. - // * integer literals without quotes. * boolean literals `true` and - // `false` without quotes. The following field and operator combinations - // are supported: * name: `=` * update_time: `=`, `>`, `<`, `>=`, `<=` - // Usage: This should be milliseconds since epoch or an RFC3339 string. - // Examples: `update_time = "2019-06-10T16:07:18-07:00" `update_time = - // 1560208038000` * create_time: `=`, `>`, `<`, `>=`, `<=` Usage: This + // Filter: Expression that defines the filter to apply across assets. The + // expression is a list of zero or more restrictions combined via logical + // operators `AND` and `OR`. Parentheses are supported, and `OR` has higher + // precedence than `AND`. Restrictions have the form ` ` and may have a `-` + // character in front of them to indicate negation. The fields map to those + // defined in the Asset resource. Examples include: * name * + // security_center_properties.resource_name * resource_properties.a_property * + // security_marks.marks.marka The supported operators are: * `=` for all value + // types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring + // matching, for strings. The supported value types are: * string literals in + // quotes. * integer literals without quotes. * boolean literals `true` and + // `false` without quotes. The following field and operator combinations are + // supported: * name: `=` * update_time: `=`, `>`, `<`, `>=`, `<=` Usage: This // should be milliseconds since epoch or an RFC3339 string. Examples: - // `create_time = "2019-06-10T16:07:18-07:00" `create_time = - // 1560208038000` * iam_policy.policy_blob: `=`, `:` * - // resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * - // security_marks.marks: `=`, `:` * + // `update_time = "2019-06-10T16:07:18-07:00" `update_time = 1560208038000` * + // create_time: `=`, `>`, `<`, `>=`, `<=` Usage: This should be milliseconds + // since epoch or an RFC3339 string. Examples: `create_time = + // "2019-06-10T16:07:18-07:00" `create_time = 1560208038000` * + // iam_policy.policy_blob: `=`, `:` * resource_properties: `=`, `:`, `>`, `<`, + // `>=`, `<=` * security_marks.marks: `=`, `:` * // security_center_properties.resource_name: `=`, `:` * // security_center_properties.resource_name_display_name: `=`, `:` * // security_center_properties.resource_type: `=`, `:` * @@ -1343,258 +1135,207 @@ type GroupAssetsRequest struct { // security_center_properties.resource_project: `=`, `:` * // security_center_properties.resource_project_display_name: `=`, `:` * // security_center_properties.resource_owners: `=`, `:` For example, - // `resource_properties.size = 100` is a valid filter string. Use a - // partial match on the empty string to filter based on a property - // existing: `resource_properties.my_property : "" Use a negated - // partial match on the empty string to filter based on a property not - // existing: `-resource_properties.my_property : "" + // `resource_properties.size = 100` is a valid filter string. Use a partial + // match on the empty string to filter based on a property existing: + // `resource_properties.my_property : "" Use a negated partial match on the + // empty string to filter based on a property not existing: + // `-resource_properties.my_property : "" Filter string `json:"filter,omitempty"` - - // GroupBy: Required. Expression that defines what assets fields to use - // for grouping. The string value should follow SQL syntax: comma - // separated list of fields. For example: - // "security_center_properties.resource_project,security_center_propertie - // s.project". The following fields are supported when compare_duration - // is not set: * security_center_properties.resource_project * + // GroupBy: Required. Expression that defines what assets fields to use for + // grouping. The string value should follow SQL syntax: comma separated list of + // fields. For example: + // "security_center_properties.resource_project,security_center_properties.proje + // ct". The following fields are supported when compare_duration is not set: * + // security_center_properties.resource_project * // security_center_properties.resource_project_display_name * // security_center_properties.resource_type * // security_center_properties.resource_parent * - // security_center_properties.resource_parent_display_name The following - // fields are supported when compare_duration is set: * + // security_center_properties.resource_parent_display_name The following fields + // are supported when compare_duration is set: * // security_center_properties.resource_type * // security_center_properties.resource_project_display_name * // security_center_properties.resource_parent_display_name GroupBy string `json:"groupBy,omitempty"` - - // PageSize: The maximum number of results to return in a single - // response. Default is 10, minimum is 1, maximum is 1000. + // PageSize: The maximum number of results to return in a single response. + // Default is 10, minimum is 1, maximum is 1000. PageSize int64 `json:"pageSize,omitempty"` - - // PageToken: The value returned by the last `GroupAssetsResponse`; - // indicates that this is a continuation of a prior `GroupAssets` call, - // and that the system should return the next page of data. + // PageToken: The value returned by the last `GroupAssetsResponse`; indicates + // that this is a continuation of a prior `GroupAssets` call, and that the + // system should return the next page of data. PageToken string `json:"pageToken,omitempty"` - - // ReadTime: Time used as a reference point when filtering assets. The - // filter is limited to assets existing at the supplied time and their - // values are those at that specific time. Absence of this field will - // default to the API's version of NOW. + // ReadTime: Time used as a reference point when filtering assets. The filter + // is limited to assets existing at the supplied time and their values are + // those at that specific time. Absence of this field will default to the API's + // version of NOW. ReadTime string `json:"readTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompareDuration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompareDuration") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompareDuration") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupAssetsRequest) MarshalJSON() ([]byte, error) { +func (s GroupAssetsRequest) MarshalJSON() ([]byte, error) { type NoMethod GroupAssetsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GroupAssetsResponse: Response message for grouping by assets. type GroupAssetsResponse struct { - // GroupByResults: Group results. There exists an element for each - // existing unique combination of property/values. The element contains - // a count for the number of times those specific property/values - // appear. + // GroupByResults: Group results. There exists an element for each existing + // unique combination of property/values. The element contains a count for the + // number of times those specific property/values appear. GroupByResults []*GroupResult `json:"groupByResults,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results. NextPageToken string `json:"nextPageToken,omitempty"` - // ReadTime: Time used for executing the groupBy request. ReadTime string `json:"readTime,omitempty"` - // TotalSize: The total number of results matching the query. TotalSize int64 `json:"totalSize,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "GroupByResults") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GroupByResults") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GroupByResults") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupAssetsResponse) MarshalJSON() ([]byte, error) { +func (s GroupAssetsResponse) MarshalJSON() ([]byte, error) { type NoMethod GroupAssetsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GroupFindingsRequest: Request message for grouping by findings. type GroupFindingsRequest struct { // CompareDuration: When compare_duration is set, the GroupResult's - // "state_change" attribute is updated to indicate whether the finding - // had its state changed, the finding's state remained unchanged, or if - // the finding was added during the compare_duration period of time that - // precedes the read_time. This is the time between (read_time - - // compare_duration) and read_time. The state_change value is derived - // based on the presence and state of the finding at the two points in - // time. Intermediate state changes between the two times don't affect - // the result. For example, the results aren't affected if the finding - // is made inactive and then active again. Possible "state_change" - // values when compare_duration is specified: * "CHANGED": indicates - // that the finding was present and matched the given filter at the + // "state_change" attribute is updated to indicate whether the finding had its + // state changed, the finding's state remained unchanged, or if the finding was + // added during the compare_duration period of time that precedes the + // read_time. This is the time between (read_time - compare_duration) and + // read_time. The state_change value is derived based on the presence and state + // of the finding at the two points in time. Intermediate state changes between + // the two times don't affect the result. For example, the results aren't + // affected if the finding is made inactive and then active again. Possible + // "state_change" values when compare_duration is specified: * "CHANGED": + // indicates that the finding was present and matched the given filter at the // start of compare_duration, but changed its state at read_time. * - // "UNCHANGED": indicates that the finding was present and matched the - // given filter at the start of compare_duration and did not change - // state at read_time. * "ADDED": indicates that the finding did not - // match the given filter or was not present at the start of - // compare_duration, but was present at read_time. * "REMOVED": - // indicates that the finding was present and matched the filter at the - // start of compare_duration, but did not match the filter at read_time. - // If compare_duration is not specified, then the only possible - // state_change is "UNUSED", which will be the state_change set for all - // findings present at read_time. If this field is set then - // `state_change` must be a specified field in `group_by`. + // "UNCHANGED": indicates that the finding was present and matched the given + // filter at the start of compare_duration and did not change state at + // read_time. * "ADDED": indicates that the finding did not match the given + // filter or was not present at the start of compare_duration, but was present + // at read_time. * "REMOVED": indicates that the finding was present and + // matched the filter at the start of compare_duration, but did not match the + // filter at read_time. If compare_duration is not specified, then the only + // possible state_change is "UNUSED", which will be the state_change set for + // all findings present at read_time. If this field is set then `state_change` + // must be a specified field in `group_by`. CompareDuration string `json:"compareDuration,omitempty"` - - // Filter: Expression that defines the filter to apply across findings. - // The expression is a list of one or more restrictions combined via - // logical operators `AND` and `OR`. Parentheses are supported, and `OR` - // has higher precedence than `AND`. Restrictions have the form ` ` and - // may have a `-` character in front of them to indicate negation. - // Examples include: * name * source_properties.a_property * - // security_marks.marks.marka The supported operators are: * `=` for all - // value types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, - // meaning substring matching, for strings. The supported value types - // are: * string literals in quotes. * integer literals without quotes. - // * boolean literals `true` and `false` without quotes. The following - // field and operator combinations are supported: * name: `=` * parent: - // `=`, `:` * resource_name: `=`, `:` * state: `=`, `:` * category: `=`, - // `:` * external_uri: `=`, `:` * event_time: `=`, `>`, `<`, `>=`, `<=` - // Usage: This should be milliseconds since epoch or an RFC3339 string. - // Examples: `event_time = "2019-06-10T16:07:18-07:00" `event_time = - // 1560208038000` * security_marks.marks: `=`, `:` * source_properties: - // `=`, `:`, `>`, `<`, `>=`, `<=` For example, `source_properties.size = - // 100` is a valid filter string. Use a partial match on the empty - // string to filter based on a property existing: - // `source_properties.my_property : "" Use a negated partial match on - // the empty string to filter based on a property not existing: - // `-source_properties.my_property : "" + // Filter: Expression that defines the filter to apply across findings. The + // expression is a list of one or more restrictions combined via logical + // operators `AND` and `OR`. Parentheses are supported, and `OR` has higher + // precedence than `AND`. Restrictions have the form ` ` and may have a `-` + // character in front of them to indicate negation. Examples include: * name * + // source_properties.a_property * security_marks.marks.marka The supported + // operators are: * `=` for all value types. * `>`, `<`, `>=`, `<=` for integer + // values. * `:`, meaning substring matching, for strings. The supported value + // types are: * string literals in quotes. * integer literals without quotes. * + // boolean literals `true` and `false` without quotes. The following field and + // operator combinations are supported: * name: `=` * parent: `=`, `:` * + // resource_name: `=`, `:` * state: `=`, `:` * category: `=`, `:` * + // external_uri: `=`, `:` * event_time: `=`, `>`, `<`, `>=`, `<=` Usage: This + // should be milliseconds since epoch or an RFC3339 string. Examples: + // `event_time = "2019-06-10T16:07:18-07:00" `event_time = 1560208038000` * + // security_marks.marks: `=`, `:` * source_properties: `=`, `:`, `>`, `<`, + // `>=`, `<=` For example, `source_properties.size = 100` is a valid filter + // string. Use a partial match on the empty string to filter based on a + // property existing: `source_properties.my_property : "" Use a negated + // partial match on the empty string to filter based on a property not + // existing: `-source_properties.my_property : "" Filter string `json:"filter,omitempty"` - - // GroupBy: Required. Expression that defines what assets fields to use - // for grouping (including `state_change`). The string value should - // follow SQL syntax: comma separated list of fields. For example: - // "parent,resource_name". The following fields are supported: * - // resource_name * category * state * parent The following fields are - // supported when compare_duration is set: * state_change + // GroupBy: Required. Expression that defines what assets fields to use for + // grouping (including `state_change`). The string value should follow SQL + // syntax: comma separated list of fields. For example: "parent,resource_name". + // The following fields are supported: * resource_name * category * state * + // parent The following fields are supported when compare_duration is set: * + // state_change GroupBy string `json:"groupBy,omitempty"` - - // PageSize: The maximum number of results to return in a single - // response. Default is 10, minimum is 1, maximum is 1000. + // PageSize: The maximum number of results to return in a single response. + // Default is 10, minimum is 1, maximum is 1000. PageSize int64 `json:"pageSize,omitempty"` - - // PageToken: The value returned by the last `GroupFindingsResponse`; - // indicates that this is a continuation of a prior `GroupFindings` - // call, and that the system should return the next page of data. + // PageToken: The value returned by the last `GroupFindingsResponse`; indicates + // that this is a continuation of a prior `GroupFindings` call, and that the + // system should return the next page of data. PageToken string `json:"pageToken,omitempty"` - - // ReadTime: Time used as a reference point when filtering findings. The - // filter is limited to findings existing at the supplied time and their - // values are those at that specific time. Absence of this field will - // default to the API's version of NOW. + // ReadTime: Time used as a reference point when filtering findings. The filter + // is limited to findings existing at the supplied time and their values are + // those at that specific time. Absence of this field will default to the API's + // version of NOW. ReadTime string `json:"readTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompareDuration") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompareDuration") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompareDuration") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupFindingsRequest) MarshalJSON() ([]byte, error) { +func (s GroupFindingsRequest) MarshalJSON() ([]byte, error) { type NoMethod GroupFindingsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GroupFindingsResponse: Response message for group by findings. type GroupFindingsResponse struct { - // GroupByResults: Group results. There exists an element for each - // existing unique combination of property/values. The element contains - // a count for the number of times those specific property/values - // appear. + // GroupByResults: Group results. There exists an element for each existing + // unique combination of property/values. The element contains a count for the + // number of times those specific property/values appear. GroupByResults []*GroupResult `json:"groupByResults,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results. NextPageToken string `json:"nextPageToken,omitempty"` - // ReadTime: Time used for executing the groupBy request. ReadTime string `json:"readTime,omitempty"` - // TotalSize: The total number of results matching the query. TotalSize int64 `json:"totalSize,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "GroupByResults") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GroupByResults") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "GroupByResults") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupFindingsResponse) MarshalJSON() ([]byte, error) { +func (s GroupFindingsResponse) MarshalJSON() ([]byte, error) { type NoMethod GroupFindingsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GroupResult: Result containing the properties and count of a groupBy @@ -1602,585 +1343,456 @@ func (s *GroupFindingsResponse) MarshalJSON() ([]byte, error) { type GroupResult struct { // Count: Total count of resources for the given properties. Count int64 `json:"count,omitempty,string"` - // Properties: Properties matching the groupBy fields in the request. Properties googleapi.RawMessage `json:"properties,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Count") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Count") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Count") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupResult) MarshalJSON() ([]byte, error) { +func (s GroupResult) MarshalJSON() ([]byte, error) { type NoMethod GroupResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAssetsResponse: Response message for listing assets. type ListAssetsResponse struct { // ListAssetsResults: Assets matching the list request. ListAssetsResults []*ListAssetsResult `json:"listAssetsResults,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results. NextPageToken string `json:"nextPageToken,omitempty"` - // ReadTime: Time used for executing the list request. ReadTime string `json:"readTime,omitempty"` - // TotalSize: The total number of assets matching the query. TotalSize int64 `json:"totalSize,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ListAssetsResults") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ListAssetsResults") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ListAssetsResults") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ListAssetsResults") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAssetsResponse) MarshalJSON() ([]byte, error) { +func (s ListAssetsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListAssetsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAssetsResult: Result containing the Asset and its State. type ListAssetsResult struct { // Asset: Asset matching the search request. Asset *GoogleCloudSecuritycenterV1p1beta1Asset `json:"asset,omitempty"` - // StateChange: State change of the asset between the points in time. // // Possible values: - // "UNUSED" - State change is unused, this is the canonical default - // for this enum. + // "UNUSED" - State change is unused, this is the canonical default for this + // enum. // "ADDED" - Asset was added between the points in time. // "REMOVED" - Asset was removed between the points in time. // "ACTIVE" - Asset was present at both point(s) in time. StateChange string `json:"stateChange,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Asset") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Asset") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Asset") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListAssetsResult) MarshalJSON() ([]byte, error) { +func (s ListAssetsResult) MarshalJSON() ([]byte, error) { type NoMethod ListAssetsResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListFindingsResponse: Response message for listing findings. type ListFindingsResponse struct { // ListFindingsResults: Findings matching the list request. ListFindingsResults []*ListFindingsResult `json:"listFindingsResults,omitempty"` - - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results. NextPageToken string `json:"nextPageToken,omitempty"` - // ReadTime: Time used for executing the list request. ReadTime string `json:"readTime,omitempty"` - // TotalSize: The total number of findings matching the query. TotalSize int64 `json:"totalSize,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "ListFindingsResults") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ListFindingsResults") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ListFindingsResults") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ListFindingsResults") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListFindingsResponse) MarshalJSON() ([]byte, error) { +func (s ListFindingsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListFindingsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListFindingsResult: Result containing the Finding and its -// StateChange. +// ListFindingsResult: Result containing the Finding and its StateChange. type ListFindingsResult struct { // Finding: Finding matching the search request. Finding *GoogleCloudSecuritycenterV1p1beta1Finding `json:"finding,omitempty"` - // Resource: Output only. Resource that is associated with this finding. Resource *Resource `json:"resource,omitempty"` - // StateChange: State change of the finding between the points in time. // // Possible values: - // "UNUSED" - State change is unused, this is the canonical default - // for this enum. - // "CHANGED" - The finding has changed state in some way between the - // points in time and existed at both points. - // "UNCHANGED" - The finding has not changed state between the points + // "UNUSED" - State change is unused, this is the canonical default for this + // enum. + // "CHANGED" - The finding has changed state in some way between the points // in time and existed at both points. + // "UNCHANGED" - The finding has not changed state between the points in time + // and existed at both points. // "ADDED" - The finding was created between the points in time. - // "REMOVED" - The finding at timestamp does not match the filter - // specified, but it did at timestamp - compare_duration. + // "REMOVED" - The finding at timestamp does not match the filter specified, + // but it did at timestamp - compare_duration. StateChange string `json:"stateChange,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Finding") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Finding") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Finding") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Finding") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListFindingsResult) MarshalJSON() ([]byte, error) { +func (s ListFindingsResult) MarshalJSON() ([]byte, error) { type NoMethod ListFindingsResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListNotificationConfigsResponse: Response message for listing -// notification configs. +// ListNotificationConfigsResponse: Response message for listing notification +// configs. type ListNotificationConfigsResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results. NextPageToken string `json:"nextPageToken,omitempty"` - - // NotificationConfigs: Notification configs belonging to the requested - // parent. + // NotificationConfigs: Notification configs belonging to the requested parent. NotificationConfigs []*NotificationConfig `json:"notificationConfigs,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListNotificationConfigsResponse) MarshalJSON() ([]byte, error) { +func (s ListNotificationConfigsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListNotificationConfigsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListSourcesResponse: Response message for listing sources. type ListSourcesResponse struct { - // NextPageToken: Token to retrieve the next page of results, or empty - // if there are no more results. + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results. NextPageToken string `json:"nextPageToken,omitempty"` - // Sources: Sources belonging to the requested parent. Sources []*Source `json:"sources,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListSourcesResponse) MarshalJSON() ([]byte, error) { +func (s ListSourcesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListSourcesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NotificationConfig: Security Command Center notification configs. A -// notification config is a Security Command Center resource that -// contains the configuration to send notifications for create/update -// events of findings, assets and etc. +// notification config is a Security Command Center resource that contains the +// configuration to send notifications for create/update events of findings, +// assets and etc. type NotificationConfig struct { // Description: The description of the notification config (max of 1024 // characters). Description string `json:"description,omitempty"` - // EventType: The type of events the config is for, e.g. FINDING. // // Possible values: // "EVENT_TYPE_UNSPECIFIED" - Unspecified event type. // "FINDING" - Events for findings. EventType string `json:"eventType,omitempty"` - // Name: The relative resource name of this notification config. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - // "organizations/{organization_id}/notificationConfigs/notify_public_buc - // ket". + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: + // "organizations/{organization_id}/notificationConfigs/notify_public_bucket". Name string `json:"name,omitempty"` - - // PubsubTopic: The Pub/Sub topic to send notifications to. Its format - // is "projects/[project_id]/topics/[topic]". + // PubsubTopic: The Pub/Sub topic to send notifications to. Its format is + // "projects/[project_id]/topics/[topic]". PubsubTopic string `json:"pubsubTopic,omitempty"` - // ServiceAccount: Output only. The service account that needs // "pubsub.topics.publish" permission to publish to the Pub/Sub topic. ServiceAccount string `json:"serviceAccount,omitempty"` - - // StreamingConfig: The config for triggering streaming-based - // notifications. + // StreamingConfig: The config for triggering streaming-based notifications. StreamingConfig *StreamingConfig `json:"streamingConfig,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NotificationConfig) MarshalJSON() ([]byte, error) { +func (s NotificationConfig) MarshalJSON() ([]byte, error) { type NoMethod NotificationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OrganizationSettings: User specified settings that are attached to -// the Security Command Center organization. +// OrganizationSettings: User specified settings that are attached to the +// Security Command Center organization. type OrganizationSettings struct { - // AssetDiscoveryConfig: The configuration used for Asset Discovery - // runs. + // AssetDiscoveryConfig: The configuration used for Asset Discovery runs. AssetDiscoveryConfig *AssetDiscoveryConfig `json:"assetDiscoveryConfig,omitempty"` - - // EnableAssetDiscovery: A flag that indicates if Asset Discovery should - // be enabled. If the flag is set to `true`, then discovery of assets - // will occur. If it is set to `false, all historical assets will - // remain, but discovery of future assets will not occur. + // EnableAssetDiscovery: A flag that indicates if Asset Discovery should be + // enabled. If the flag is set to `true`, then discovery of assets will occur. + // If it is set to `false, all historical assets will remain, but discovery of + // future assets will not occur. EnableAssetDiscovery bool `json:"enableAssetDiscovery,omitempty"` - // Name: The relative resource name of the settings. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - // "organizations/{organization_id}/organizationSettings". + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: "organizations/{organization_id}/organizationSettings". Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AssetDiscoveryConfig") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AssetDiscoveryConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssetDiscoveryConfig") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AssetDiscoveryConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OrganizationSettings) MarshalJSON() ([]byte, error) { +func (s OrganizationSettings) MarshalJSON() ([]byte, error) { type NoMethod OrganizationSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members` to -// a single `role`. Members can be user accounts, service accounts, -// Google groups, and domains (such as G Suite). A `role` is a named -// list of permissions; each `role` can be an IAM predefined role or a -// user-created custom role. For some types of Google Cloud resources, a -// `binding` can also specify a `condition`, which is a logical -// expression that allows access to a resource only if the expression -// evaluates to `true`. A condition can add constraints based on -// attributes of the request, the resource, or both. To learn which -// resources support conditions in their IAM policies, see the [IAM -// documentation](https://cloud.google.com/iam/help/conditions/resource-p -// olicies). **JSON example:** { "bindings": [ { "role": + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which specifies +// access controls for Google Cloud resources. A `Policy` is a collection of +// `bindings`. A `binding` binds one or more `members` to a single `role`. +// Members can be user accounts, service accounts, Google groups, and domains +// (such as G Suite). A `role` is a named list of permissions; each `role` can +// be an IAM predefined role or a user-created custom role. For some types of +// Google Cloud resources, a `binding` can also specify a `condition`, which is +// a logical expression that allows access to a resource only if the expression +// evaluates to `true`. A condition can add constraints based on attributes of +// the request, the resource, or both. To learn which resources support +// conditions in their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: -// 3 For a description of IAM and its features, see the [IAM -// documentation](https://cloud.google.com/iam/docs/). +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. + // AuditConfigs: Specifies cloud audit logging configuration for this policy. AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - // Bindings: Associates a list of `members` to a `role`. Optionally, may // specify a `condition` that determines how and when the `bindings` are // applied. Each of the `bindings` must contain at least one member. Bindings []*Binding `json:"bindings,omitempty"` - - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the [IAM - // documentation](https://cloud.google.com/iam/help/conditions/resource-p - // olicies). + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuditConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Resource: Information related to the Google Cloud resource that is @@ -2189,372 +1801,293 @@ type Resource struct { // Name: The full resource name of the resource. See: // https://cloud.google.com/apis/design/resource_names#full_resource_name Name string `json:"name,omitempty"` - // ParentDisplayName: The human readable name of resource's parent. ParentDisplayName string `json:"parentDisplayName,omitempty"` - // ParentName: The full resource name of resource's parent. ParentName string `json:"parentName,omitempty"` - - // ProjectDisplayName: The human readable name of project that the - // resource belongs to. - ProjectDisplayName string `json:"projectDisplayName,omitempty"` - - // ProjectName: The full resource name of project that the resource + // ProjectDisplayName: The human readable name of project that the resource // belongs to. + ProjectDisplayName string `json:"projectDisplayName,omitempty"` + // ProjectName: The full resource name of project that the resource belongs to. ProjectName string `json:"projectName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Resource) MarshalJSON() ([]byte, error) { +func (s Resource) MarshalJSON() ([]byte, error) { type NoMethod Resource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RunAssetDiscoveryRequest: Request message for running asset discovery -// for an organization. +// RunAssetDiscoveryRequest: Request message for running asset discovery for an +// organization. type RunAssetDiscoveryRequest struct { } -// SecurityMarks: User specified security marks that are attached to the -// parent Security Command Center resource. Security marks are scoped -// within a Security Command Center organization -- they can be modified -// and viewed by all users who have proper permissions on the -// organization. +// SecurityMarks: User specified security marks that are attached to the parent +// Security Command Center resource. Security marks are scoped within a +// Security Command Center organization -- they can be modified and viewed by +// all users who have proper permissions on the organization. type SecurityMarks struct { // Marks: Mutable user specified security marks belonging to the parent - // resource. Constraints are as follows: * Keys and values are treated - // as case insensitive * Keys must be between 1 - 256 characters - // (inclusive) * Keys must be letters, numbers, underscores, or dashes * - // Values have leading and trailing whitespace trimmed, remaining - // characters must be between 1 - 4096 characters (inclusive) + // resource. Constraints are as follows: * Keys and values are treated as case + // insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys + // must be letters, numbers, underscores, or dashes * Values have leading and + // trailing whitespace trimmed, remaining characters must be between 1 - 4096 + // characters (inclusive) Marks map[string]string `json:"marks,omitempty"` - // Name: The relative resource name of the SecurityMarks. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" - // "organizations/{organization_id}/sources/{source_id}/findings/{finding - // _id}/securityMarks". + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" + // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/se + // curityMarks". Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Marks") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Marks") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Marks") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecurityMarks) MarshalJSON() ([]byte, error) { +func (s SecurityMarks) MarshalJSON() ([]byte, error) { type NoMethod SecurityMarks - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SetFindingStateRequest: Request message for updating a finding's -// state. +// SetFindingStateRequest: Request message for updating a finding's state. type SetFindingStateRequest struct { - // StartTime: Required. The time at which the updated state takes - // effect. + // StartTime: Required. The time at which the updated state takes effect. StartTime string `json:"startTime,omitempty"` - // State: Required. The desired State of the finding. // // Possible values: // "STATE_UNSPECIFIED" - Unspecified state. - // "ACTIVE" - The finding requires attention and has not been - // addressed yet. + // "ACTIVE" - The finding requires attention and has not been addressed yet. // "INACTIVE" - The finding has been fixed, triaged as a non-issue or // otherwise addressed and is no longer active. State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "StartTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StartTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StartTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetFindingStateRequest) MarshalJSON() ([]byte, error) { +func (s SetFindingStateRequest) MarshalJSON() ([]byte, error) { type NoMethod SetFindingStateRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Cloud Platform services - // (such as Projects) might reject them. + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Cloud Platform services (such as Projects) might reject + // them. Policy *Policy `json:"policy,omitempty"` - - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only the fields in the mask will be modified. If no - // mask is provided, the following default mask is used: `paths: - // "bindings, etag" + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only the fields in the mask will be modified. If no mask is + // provided, the following default mask is used: `paths: "bindings, etag" UpdateMask string `json:"updateMask,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Source: Security Command Center finding source. A finding source is -// an entity or a mechanism that can produce a finding. A source is like -// a container of findings that come from the same scanner, logger, -// monitor, etc. +// Source: Security Command Center finding source. A finding source is an +// entity or a mechanism that can produce a finding. A source is like a +// container of findings that come from the same scanner, logger, monitor, etc. type Source struct { // Description: The description of the source (max of 1024 characters). // Example: "Web Security Scanner is a web security scanner for common - // vulnerabilities in App Engine applications. It can automatically scan - // and detect four common vulnerabilities, including - // cross-site-scripting (XSS), Flash injection, mixed content (HTTP in - // HTTPS), and outdated/insecure libraries." + // vulnerabilities in App Engine applications. It can automatically scan and + // detect four common vulnerabilities, including cross-site-scripting (XSS), + // Flash injection, mixed content (HTTP in HTTPS), and outdated/insecure + // libraries." Description string `json:"description,omitempty"` - - // DisplayName: The source's display name. A source's display name must - // be unique amongst its siblings, for example, two sources with the - // same parent can't share the same display name. The display name must - // have a length between 1 and 64 characters (inclusive). + // DisplayName: The source's display name. A source's display name must be + // unique amongst its siblings, for example, two sources with the same parent + // can't share the same display name. The display name must have a length + // between 1 and 64 characters (inclusive). DisplayName string `json:"displayName,omitempty"` - // Name: The relative resource name of this source. See: - // https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: - // "organizations/{organization_id}/sources/{source_id}" + // https://cloud.google.com/apis/design/resource_names#relative_resource_name + // Example: "organizations/{organization_id}/sources/{source_id}" Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Source) MarshalJSON() ([]byte, error) { +func (s Source) MarshalJSON() ([]byte, error) { type NoMethod Source - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the [API Design -// Guide](https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StreamingConfig: The config for streaming-based notifications, which -// send each event as soon as it is detected. +// StreamingConfig: The config for streaming-based notifications, which send +// each event as soon as it is detected. type StreamingConfig struct { - // Filter: Expression that defines the filter to apply across - // create/update events of assets or findings as specified by the event - // type. The expression is a list of zero or more restrictions combined - // via logical operators `AND` and `OR`. Parentheses are supported, and - // `OR` has higher precedence than `AND`. Restrictions have the form ` ` - // and may have a `-` character in front of them to indicate negation. - // The fields map to those defined in the corresponding resource. The - // supported operators are: * `=` for all value types. * `>`, `<`, `>=`, - // `<=` for integer values. * `:`, meaning substring matching, for - // strings. The supported value types are: * string literals in quotes. - // * integer literals without quotes. * boolean literals `true` and + // Filter: Expression that defines the filter to apply across create/update + // events of assets or findings as specified by the event type. The expression + // is a list of zero or more restrictions combined via logical operators `AND` + // and `OR`. Parentheses are supported, and `OR` has higher precedence than + // `AND`. Restrictions have the form ` ` and may have a `-` character in front + // of them to indicate negation. The fields map to those defined in the + // corresponding resource. The supported operators are: * `=` for all value + // types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring + // matching, for strings. The supported value types are: * string literals in + // quotes. * integer literals without quotes. * boolean literals `true` and // `false` without quotes. Filter string `json:"filter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StreamingConfig) MarshalJSON() ([]byte, error) { +func (s StreamingConfig) MarshalJSON() ([]byte, error) { type NoMethod StreamingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. +// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as '*' or 'storage.*') are not - // allowed. For more information see [IAM - // Overview](https://cloud.google.com/iam/docs/overview#permissions). + // Permissions: The set of permissions to check for the `resource`. Permissions + // with wildcards (such as '*' or 'storage.*') are not allowed. For more + // information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsResponse: Response message for `TestIamPermissions` // method. type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is allowed. + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "securitycenter.organizations.getOrganizationSettings": - type OrganizationsGetOrganizationSettingsCall struct { s *Service name string @@ -2565,6 +2098,9 @@ type OrganizationsGetOrganizationSettingsCall struct { } // GetOrganizationSettings: Gets the settings for an organization. +// +// - name: Name of the organization to get organization settings for. Its +// format is "organizations/[organization_id]/organizationSettings". func (r *OrganizationsService) GetOrganizationSettings(name string) *OrganizationsGetOrganizationSettingsCall { c := &OrganizationsGetOrganizationSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2572,33 +2108,29 @@ func (r *OrganizationsService) GetOrganizationSettings(name string) *Organizatio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsGetOrganizationSettingsCall) Fields(s ...googleapi.Field) *OrganizationsGetOrganizationSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsGetOrganizationSettingsCall) IfNoneMatch(entityTag string) *OrganizationsGetOrganizationSettingsCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsGetOrganizationSettingsCall) Context(ctx context.Context) *OrganizationsGetOrganizationSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsGetOrganizationSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2607,12 +2139,7 @@ func (c *OrganizationsGetOrganizationSettingsCall) Header() http.Header { } func (c *OrganizationsGetOrganizationSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2629,16 +2156,15 @@ func (c *OrganizationsGetOrganizationSettingsCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.getOrganizationSettings" call. -// Exactly one of *OrganizationSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrganizationSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrganizationSettings.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsGetOrganizationSettingsCall) Do(opts ...googleapi.CallOption) (*OrganizationSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2646,17 +2172,17 @@ func (c *OrganizationsGetOrganizationSettingsCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrganizationSettings{ ServerResponse: googleapi.ServerResponse{ @@ -2669,35 +2195,7 @@ func (c *OrganizationsGetOrganizationSettingsCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Gets the settings for an organization.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/organizationSettings", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.getOrganizationSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Name of the organization to get organization settings for. Its format is \"organizations/[organization_id]/organizationSettings\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/organizationSettings$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "response": { - // "$ref": "OrganizationSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.updateOrganizationSettings": +} type OrganizationsUpdateOrganizationSettingsCall struct { s *Service @@ -2709,6 +2207,10 @@ type OrganizationsUpdateOrganizationSettingsCall struct { } // UpdateOrganizationSettings: Updates an organization's settings. +// +// - name: The relative resource name of the settings. See: +// https://cloud.google.com/apis/design/resource_names#relative_resource_name +// Example: "organizations/{organization_id}/organizationSettings". func (r *OrganizationsService) UpdateOrganizationSettings(name string, organizationsettings *OrganizationSettings) *OrganizationsUpdateOrganizationSettingsCall { c := &OrganizationsUpdateOrganizationSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2716,32 +2218,30 @@ func (r *OrganizationsService) UpdateOrganizationSettings(name string, organizat return c } -// UpdateMask sets the optional parameter "updateMask": The FieldMask to -// use when updating the settings resource. If empty all mutable fields -// will be updated. +// UpdateMask sets the optional parameter "updateMask": The FieldMask to use +// when updating the settings resource. If empty all mutable fields will be +// updated. func (c *OrganizationsUpdateOrganizationSettingsCall) UpdateMask(updateMask string) *OrganizationsUpdateOrganizationSettingsCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsUpdateOrganizationSettingsCall) Fields(s ...googleapi.Field) *OrganizationsUpdateOrganizationSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsUpdateOrganizationSettingsCall) Context(ctx context.Context) *OrganizationsUpdateOrganizationSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsUpdateOrganizationSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2750,18 +2250,12 @@ func (c *OrganizationsUpdateOrganizationSettingsCall) Header() http.Header { } func (c *OrganizationsUpdateOrganizationSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.organizationsettings) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+name}") @@ -2774,16 +2268,15 @@ func (c *OrganizationsUpdateOrganizationSettingsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.updateOrganizationSettings" call. -// Exactly one of *OrganizationSettings or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OrganizationSettings.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OrganizationSettings.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsUpdateOrganizationSettingsCall) Do(opts ...googleapi.CallOption) (*OrganizationSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2791,17 +2284,17 @@ func (c *OrganizationsUpdateOrganizationSettingsCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OrganizationSettings{ ServerResponse: googleapi.ServerResponse{ @@ -2814,44 +2307,7 @@ func (c *OrganizationsUpdateOrganizationSettingsCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Updates an organization's settings.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/organizationSettings", - // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.updateOrganizationSettings", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/organizationSettings\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/organizationSettings$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The FieldMask to use when updating the settings resource. If empty all mutable fields will be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "request": { - // "$ref": "OrganizationSettings" - // }, - // "response": { - // "$ref": "OrganizationSettings" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.assets.group": +} type OrganizationsAssetsGroupCall struct { s *Service @@ -2862,8 +2318,11 @@ type OrganizationsAssetsGroupCall struct { header_ http.Header } -// Group: Filters an organization's assets and groups them by their -// specified properties. +// Group: Filters an organization's assets and groups them by their specified +// properties. +// +// - parent: Name of the organization to groupBy. Its format is +// "organizations/[organization_id]". func (r *OrganizationsAssetsService) Group(parent string, groupassetsrequest *GroupAssetsRequest) *OrganizationsAssetsGroupCall { c := &OrganizationsAssetsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2872,23 +2331,21 @@ func (r *OrganizationsAssetsService) Group(parent string, groupassetsrequest *Gr } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsAssetsGroupCall) Fields(s ...googleapi.Field) *OrganizationsAssetsGroupCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsAssetsGroupCall) Context(ctx context.Context) *OrganizationsAssetsGroupCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsAssetsGroupCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2897,18 +2354,12 @@ func (c *OrganizationsAssetsGroupCall) Header() http.Header { } func (c *OrganizationsAssetsGroupCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.groupassetsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+parent}/assets:group") @@ -2921,16 +2372,15 @@ func (c *OrganizationsAssetsGroupCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.group" call. -// Exactly one of *GroupAssetsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GroupAssetsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GroupAssetsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupAssetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2938,17 +2388,17 @@ func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupA if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GroupAssetsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2961,35 +2411,6 @@ func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupA return nil, err } return ret, nil - // { - // "description": "Filters an organization's assets and groups them by their specified properties.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/assets:group", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.assets.group", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Name of the organization to groupBy. Its format is \"organizations/[organization_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+parent}/assets:group", - // "request": { - // "$ref": "GroupAssetsRequest" - // }, - // "response": { - // "$ref": "GroupAssetsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2997,7 +2418,7 @@ func (c *OrganizationsAssetsGroupCall) Do(opts ...googleapi.CallOption) (*GroupA // The provided context supersedes any context provided to the Context method. func (c *OrganizationsAssetsGroupCall) Pages(ctx context.Context, f func(*GroupAssetsResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.groupassetsrequest.PageToken = pt }(c.groupassetsrequest.PageToken) // reset paging to original point + defer func(pt string) { c.groupassetsrequest.PageToken = pt }(c.groupassetsrequest.PageToken) for { x, err := c.Do() if err != nil { @@ -3013,8 +2434,6 @@ func (c *OrganizationsAssetsGroupCall) Pages(ctx context.Context, f func(*GroupA } } -// method id "securitycenter.organizations.assets.list": - type OrganizationsAssetsListCall struct { s *Service parent string @@ -3025,6 +2444,9 @@ type OrganizationsAssetsListCall struct { } // List: Lists an organization's assets. +// +// - parent: Name of the organization assets should belong to. Its format is +// "organizations/[organization_id]". func (r *OrganizationsAssetsService) List(parent string) *OrganizationsAssetsListCall { c := &OrganizationsAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3032,60 +2454,55 @@ func (r *OrganizationsAssetsService) List(parent string) *OrganizationsAssetsLis } // CompareDuration sets the optional parameter "compareDuration": When -// compare_duration is set, the ListAssetsResult's "state_change" -// attribute is updated to indicate whether the asset was added, -// removed, or remained present during the compare_duration period of -// time that precedes the read_time. This is the time between (read_time -// - compare_duration) and read_time. The state_change value is derived -// based on the presence of the asset at the two points in time. -// Intermediate state changes between the two times don't affect the -// result. For example, the results aren't affected if the asset is -// removed and re-created again. Possible "state_change" values when -// compare_duration is specified: * "ADDED": indicates that the asset -// was not present at the start of compare_duration, but present at -// read_time. * "REMOVED": indicates that the asset was present at the -// start of compare_duration, but not present at read_time. * "ACTIVE": -// indicates that the asset was present at both the start and the end of -// the time period defined by compare_duration and read_time. If -// compare_duration is not specified, then the only possible -// state_change is "UNUSED", which will be the state_change set for all -// assets present at read_time. +// compare_duration is set, the ListAssetsResult's "state_change" attribute is +// updated to indicate whether the asset was added, removed, or remained +// present during the compare_duration period of time that precedes the +// read_time. This is the time between (read_time - compare_duration) and +// read_time. The state_change value is derived based on the presence of the +// asset at the two points in time. Intermediate state changes between the two +// times don't affect the result. For example, the results aren't affected if +// the asset is removed and re-created again. Possible "state_change" values +// when compare_duration is specified: * "ADDED": indicates that the asset was +// not present at the start of compare_duration, but present at read_time. * +// "REMOVED": indicates that the asset was present at the start of +// compare_duration, but not present at read_time. * "ACTIVE": indicates that +// the asset was present at both the start and the end of the time period +// defined by compare_duration and read_time. If compare_duration is not +// specified, then the only possible state_change is "UNUSED", which will be +// the state_change set for all assets present at read_time. func (c *OrganizationsAssetsListCall) CompareDuration(compareDuration string) *OrganizationsAssetsListCall { c.urlParams_.Set("compareDuration", compareDuration) return c } -// FieldMask sets the optional parameter "fieldMask": A field mask to -// specify the ListAssetsResult fields to be listed in the response. An -// empty field mask will list all fields. +// FieldMask sets the optional parameter "fieldMask": A field mask to specify +// the ListAssetsResult fields to be listed in the response. An empty field +// mask will list all fields. func (c *OrganizationsAssetsListCall) FieldMask(fieldMask string) *OrganizationsAssetsListCall { c.urlParams_.Set("fieldMask", fieldMask) return c } -// Filter sets the optional parameter "filter": Expression that defines -// the filter to apply across assets. The expression is a list of zero -// or more restrictions combined via logical operators `AND` and `OR`. -// Parentheses are supported, and `OR` has higher precedence than `AND`. -// Restrictions have the form ` ` and may have a `-` character in front -// of them to indicate negation. The fields map to those defined in the -// Asset resource. Examples include: * name * -// security_center_properties.resource_name * -// resource_properties.a_property * security_marks.marks.marka The -// supported operators are: * `=` for all value types. * `>`, `<`, `>=`, -// `<=` for integer values. * `:`, meaning substring matching, for -// strings. The supported value types are: * string literals in quotes. -// * integer literals without quotes. * boolean literals `true` and -// `false` without quotes. The following are the allowed field and -// operator combinations: * name: `=` * update_time: `=`, `>`, `<`, -// `>=`, `<=` Usage: This should be milliseconds since epoch or an +// Filter sets the optional parameter "filter": Expression that defines the +// filter to apply across assets. The expression is a list of zero or more +// restrictions combined via logical operators `AND` and `OR`. Parentheses are +// supported, and `OR` has higher precedence than `AND`. Restrictions have the +// form ` ` and may have a `-` character in front of them to indicate negation. +// The fields map to those defined in the Asset resource. Examples include: * +// name * security_center_properties.resource_name * +// resource_properties.a_property * security_marks.marks.marka The supported +// operators are: * `=` for all value types. * `>`, `<`, `>=`, `<=` for integer +// values. * `:`, meaning substring matching, for strings. The supported value +// types are: * string literals in quotes. * integer literals without quotes. * +// boolean literals `true` and `false` without quotes. The following are the +// allowed field and operator combinations: * name: `=` * update_time: `=`, +// `>`, `<`, `>=`, `<=` Usage: This should be milliseconds since epoch or an // RFC3339 string. Examples: `update_time = "2019-06-10T16:07:18-07:00" -// `update_time = 1560208038000` * create_time: `=`, `>`, `<`, `>=`, -// `<=` Usage: This should be milliseconds since epoch or an RFC3339 -// string. Examples: `create_time = "2019-06-10T16:07:18-07:00" -// `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * -// resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` * -// security_marks.marks: `=`, `:` * +// `update_time = 1560208038000` * create_time: `=`, `>`, `<`, `>=`, `<=` +// Usage: This should be milliseconds since epoch or an RFC3339 string. +// Examples: `create_time = "2019-06-10T16:07:18-07:00" `create_time = +// 1560208038000` * iam_policy.policy_blob: `=`, `:` * resource_properties: +// `=`, `:`, `>`, `<`, `>=`, `<=` * security_marks.marks: `=`, `:` * // security_center_properties.resource_name: `=`, `:` * // security_center_properties.resource_display_name: `=`, `:` * // security_center_properties.resource_type: `=`, `:` * @@ -3094,27 +2511,26 @@ func (c *OrganizationsAssetsListCall) FieldMask(fieldMask string) *Organizations // security_center_properties.resource_project: `=`, `:` * // security_center_properties.resource_project_display_name: `=`, `:` * // security_center_properties.resource_owners: `=`, `:` For example, -// `resource_properties.size = 100` is a valid filter string. Use a -// partial match on the empty string to filter based on a property -// existing: `resource_properties.my_property : "" Use a negated -// partial match on the empty string to filter based on a property not -// existing: `-resource_properties.my_property : "" +// `resource_properties.size = 100` is a valid filter string. Use a partial +// match on the empty string to filter based on a property existing: +// `resource_properties.my_property : "" Use a negated partial match on the +// empty string to filter based on a property not existing: +// `-resource_properties.my_property : "" func (c *OrganizationsAssetsListCall) Filter(filter string) *OrganizationsAssetsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Expression that -// defines what fields and order to use for sorting. The string value -// should follow SQL syntax: comma separated list of fields. For -// example: "name,resource_properties.a_property". The default sorting -// order is ascending. To specify descending order for a field, a suffix -// " desc" should be appended to the field name. For example: "name -// desc,resource_properties.a_property". Redundant space characters in -// the syntax are insignificant. "name -// desc,resource_properties.a_property" and " name desc , -// resource_properties.a_property " are equivalent. The following fields -// are supported: name update_time resource_properties +// OrderBy sets the optional parameter "orderBy": Expression that defines what +// fields and order to use for sorting. The string value should follow SQL +// syntax: comma separated list of fields. For example: +// "name,resource_properties.a_property". The default sorting order is +// ascending. To specify descending order for a field, a suffix " desc" should +// be appended to the field name. For example: "name +// desc,resource_properties.a_property". Redundant space characters in the +// syntax are insignificant. "name desc,resource_properties.a_property" and " +// name desc , resource_properties.a_property " are equivalent. The following +// fields are supported: name update_time resource_properties // security_marks.marks security_center_properties.resource_name // security_center_properties.resource_display_name // security_center_properties.resource_parent @@ -3127,61 +2543,55 @@ func (c *OrganizationsAssetsListCall) OrderBy(orderBy string) *OrganizationsAsse return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return in a single response. Default is 10, minimum is -// 1, maximum is 1000. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return in a single response. Default is 10, minimum is 1, maximum +// is 1000. func (c *OrganizationsAssetsListCall) PageSize(pageSize int64) *OrganizationsAssetsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The value returned -// by the last `ListAssetsResponse`; indicates that this is a -// continuation of a prior `ListAssets` call, and that the system should -// return the next page of data. +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListAssetsResponse`; indicates that this is a continuation of a prior +// `ListAssets` call, and that the system should return the next page of data. func (c *OrganizationsAssetsListCall) PageToken(pageToken string) *OrganizationsAssetsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadTime sets the optional parameter "readTime": Time used as a -// reference point when filtering assets. The filter is limited to -// assets existing at the supplied time and their values are those at -// that specific time. Absence of this field will default to the API's -// version of NOW. +// ReadTime sets the optional parameter "readTime": Time used as a reference +// point when filtering assets. The filter is limited to assets existing at the +// supplied time and their values are those at that specific time. Absence of +// this field will default to the API's version of NOW. func (c *OrganizationsAssetsListCall) ReadTime(readTime string) *OrganizationsAssetsListCall { c.urlParams_.Set("readTime", readTime) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsAssetsListCall) Fields(s ...googleapi.Field) *OrganizationsAssetsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsAssetsListCall) IfNoneMatch(entityTag string) *OrganizationsAssetsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsAssetsListCall) Context(ctx context.Context) *OrganizationsAssetsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsAssetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3190,12 +2600,7 @@ func (c *OrganizationsAssetsListCall) Header() http.Header { } func (c *OrganizationsAssetsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3212,16 +2617,15 @@ func (c *OrganizationsAssetsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.list" call. -// Exactly one of *ListAssetsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListAssetsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListAssetsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3229,17 +2633,17 @@ func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAss if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListAssetsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3252,71 +2656,6 @@ func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAss return nil, err } return ret, nil - // { - // "description": "Lists an organization's assets.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/assets", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.assets.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "compareDuration": { - // "description": "When compare_duration is set, the ListAssetsResult's \"state_change\" attribute is updated to indicate whether the asset was added, removed, or remained present during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence of the asset at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the asset is removed and re-created again. Possible \"state_change\" values when compare_duration is specified: * \"ADDED\": indicates that the asset was not present at the start of compare_duration, but present at read_time. * \"REMOVED\": indicates that the asset was present at the start of compare_duration, but not present at read_time. * \"ACTIVE\": indicates that the asset was present at both the start and the end of the time period defined by compare_duration and read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all assets present at read_time.", - // "format": "google-duration", - // "location": "query", - // "type": "string" - // }, - // "fieldMask": { - // "description": "A field mask to specify the ListAssetsResult fields to be listed in the response. An empty field mask will list all fields.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Expression that defines the filter to apply across assets. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. The fields map to those defined in the Asset resource. Examples include: * name * security_center_properties.resource_name * resource_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following are the allowed field and operator combinations: * name: `=` * update_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `update_time = \"2019-06-10T16:07:18-07:00\"` `update_time = 1560208038000` * create_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `create_time = \"2019-06-10T16:07:18-07:00\"` `create_time = 1560208038000` * iam_policy.policy_blob: `=`, `:` * resource_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` * security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`, `:` * security_center_properties.resource_display_name: `=`, `:` * security_center_properties.resource_type: `=`, `:` * security_center_properties.resource_parent: `=`, `:` * security_center_properties.resource_parent_display_name: `=`, `:` * security_center_properties.resource_project: `=`, `:` * security_center_properties.resource_project_display_name: `=`, `:` * security_center_properties.resource_owners: `=`, `:` For example, `resource_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `resource_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-resource_properties.my_property : \"\"`", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,resource_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,resource_properties.a_property\" and \" name desc , resource_properties.a_property \" are equivalent. The following fields are supported: name update_time resource_properties security_marks.marks security_center_properties.resource_name security_center_properties.resource_display_name security_center_properties.resource_parent security_center_properties.resource_parent_display_name security_center_properties.resource_project security_center_properties.resource_project_display_name security_center_properties.resource_type", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value returned by the last `ListAssetsResponse`; indicates that this is a continuation of a prior `ListAssets` call, and that the system should return the next page of data.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Name of the organization assets should belong to. Its format is \"organizations/[organization_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readTime": { - // "description": "Time used as a reference point when filtering assets. The filter is limited to assets existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", - // "format": "google-datetime", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+parent}/assets", - // "response": { - // "$ref": "ListAssetsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3324,7 +2663,7 @@ func (c *OrganizationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAss // The provided context supersedes any context provided to the Context method. func (c *OrganizationsAssetsListCall) Pages(ctx context.Context, f func(*ListAssetsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3340,8 +2679,6 @@ func (c *OrganizationsAssetsListCall) Pages(ctx context.Context, f func(*ListAss } } -// method id "securitycenter.organizations.assets.runDiscovery": - type OrganizationsAssetsRunDiscoveryCall struct { s *Service parent string @@ -3352,9 +2689,12 @@ type OrganizationsAssetsRunDiscoveryCall struct { } // RunDiscovery: Runs asset discovery. The discovery is tracked with a -// long-running operation. This API can only be called with limited -// frequency for an organization. If it is called too frequently the -// caller will receive a TOO_MANY_REQUESTS error. +// long-running operation. This API can only be called with limited frequency +// for an organization. If it is called too frequently the caller will receive +// a TOO_MANY_REQUESTS error. +// +// - parent: Name of the organization to run asset discovery for. Its format is +// "organizations/[organization_id]". func (r *OrganizationsAssetsService) RunDiscovery(parent string, runassetdiscoveryrequest *RunAssetDiscoveryRequest) *OrganizationsAssetsRunDiscoveryCall { c := &OrganizationsAssetsRunDiscoveryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3363,23 +2703,21 @@ func (r *OrganizationsAssetsService) RunDiscovery(parent string, runassetdiscove } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsAssetsRunDiscoveryCall) Fields(s ...googleapi.Field) *OrganizationsAssetsRunDiscoveryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsAssetsRunDiscoveryCall) Context(ctx context.Context) *OrganizationsAssetsRunDiscoveryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsAssetsRunDiscoveryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3388,18 +2726,12 @@ func (c *OrganizationsAssetsRunDiscoveryCall) Header() http.Header { } func (c *OrganizationsAssetsRunDiscoveryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.runassetdiscoveryrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+parent}/assets:runDiscovery") @@ -3412,16 +2744,14 @@ func (c *OrganizationsAssetsRunDiscoveryCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.runDiscovery" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsAssetsRunDiscoveryCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3429,17 +2759,17 @@ func (c *OrganizationsAssetsRunDiscoveryCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3452,38 +2782,7 @@ func (c *OrganizationsAssetsRunDiscoveryCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/assets:runDiscovery", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.assets.runDiscovery", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Name of the organization to run asset discovery for. Its format is \"organizations/[organization_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+parent}/assets:runDiscovery", - // "request": { - // "$ref": "RunAssetDiscoveryRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.assets.updateSecurityMarks": +} type OrganizationsAssetsUpdateSecurityMarksCall struct { s *Service @@ -3495,6 +2794,13 @@ type OrganizationsAssetsUpdateSecurityMarksCall struct { } // UpdateSecurityMarks: Updates security marks. +// +// - name: The relative resource name of the SecurityMarks. See: +// https://cloud.google.com/apis/design/resource_names#relative_resource_name +// Examples: +// "organizations/{organization_id}/assets/{asset_id}/securityMarks" +// "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/ +// securityMarks". func (r *OrganizationsAssetsService) UpdateSecurityMarks(name string, googlecloudsecuritycenterv1p1beta1securitymarks *GoogleCloudSecuritycenterV1p1beta1SecurityMarks) *OrganizationsAssetsUpdateSecurityMarksCall { c := &OrganizationsAssetsUpdateSecurityMarksCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3502,42 +2808,40 @@ func (r *OrganizationsAssetsService) UpdateSecurityMarks(name string, googleclou return c } -// StartTime sets the optional parameter "startTime": The time at which -// the updated SecurityMarks take effect. If not set uses current server -// time. Updates will be applied to the SecurityMarks that are active -// immediately preceding this time. +// StartTime sets the optional parameter "startTime": The time at which the +// updated SecurityMarks take effect. If not set uses current server time. +// Updates will be applied to the SecurityMarks that are active immediately +// preceding this time. func (c *OrganizationsAssetsUpdateSecurityMarksCall) StartTime(startTime string) *OrganizationsAssetsUpdateSecurityMarksCall { c.urlParams_.Set("startTime", startTime) return c } -// UpdateMask sets the optional parameter "updateMask": The FieldMask to -// use when updating the security marks resource. The field mask must -// not contain duplicate fields. If empty or set to "marks", all marks -// will be replaced. Individual marks can be updated using "marks.". +// UpdateMask sets the optional parameter "updateMask": The FieldMask to use +// when updating the security marks resource. The field mask must not contain +// duplicate fields. If empty or set to "marks", all marks will be replaced. +// Individual marks can be updated using "marks.". func (c *OrganizationsAssetsUpdateSecurityMarksCall) UpdateMask(updateMask string) *OrganizationsAssetsUpdateSecurityMarksCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsAssetsUpdateSecurityMarksCall) Fields(s ...googleapi.Field) *OrganizationsAssetsUpdateSecurityMarksCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsAssetsUpdateSecurityMarksCall) Context(ctx context.Context) *OrganizationsAssetsUpdateSecurityMarksCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsAssetsUpdateSecurityMarksCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3546,18 +2850,12 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) Header() http.Header { } func (c *OrganizationsAssetsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1p1beta1securitymarks) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+name}") @@ -3570,20 +2868,15 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.assets.updateSecurityMarks" call. -// Exactly one of *GoogleCloudSecuritycenterV1p1beta1SecurityMarks or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudSecuritycenterV1p1beta1SecurityMarks.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudSecuritycenterV1p1beta1SecurityMarks.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsAssetsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1p1beta1SecurityMarks, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3591,17 +2884,17 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudSecuritycenterV1p1beta1SecurityMarks{ ServerResponse: googleapi.ServerResponse{ @@ -3614,50 +2907,7 @@ func (c *OrganizationsAssetsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Updates security marks.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/assets/{assetsId}/securityMarks", - // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.assets.updateSecurityMarks", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/assets/[^/]+/securityMarks$", - // "required": true, - // "type": "string" - // }, - // "startTime": { - // "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", - // "format": "google-datetime", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudSecuritycenterV1p1beta1SecurityMarks" - // }, - // "response": { - // "$ref": "GoogleCloudSecuritycenterV1p1beta1SecurityMarks" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.notificationConfigs.create": +} type OrganizationsNotificationConfigsCreateCall struct { s *Service @@ -3669,6 +2919,9 @@ type OrganizationsNotificationConfigsCreateCall struct { } // Create: Creates a notification config. +// +// - parent: Resource name of the new notification config's parent. Its format +// is "organizations/[organization_id]". func (r *OrganizationsNotificationConfigsService) Create(parent string, notificationconfig *NotificationConfig) *OrganizationsNotificationConfigsCreateCall { c := &OrganizationsNotificationConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3676,33 +2929,31 @@ func (r *OrganizationsNotificationConfigsService) Create(parent string, notifica return c } -// ConfigId sets the optional parameter "configId": Required. Unique -// identifier provided by the client within the parent scope. It must be -// between 1 and 128 characters, and contains alphanumeric characters, -// underscores or hyphens only. +// ConfigId sets the optional parameter "configId": Required. Unique identifier +// provided by the client within the parent scope. It must be between 1 and 128 +// characters, and contains alphanumeric characters, underscores or hyphens +// only. func (c *OrganizationsNotificationConfigsCreateCall) ConfigId(configId string) *OrganizationsNotificationConfigsCreateCall { c.urlParams_.Set("configId", configId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsNotificationConfigsCreateCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsNotificationConfigsCreateCall) Context(ctx context.Context) *OrganizationsNotificationConfigsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsNotificationConfigsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3711,18 +2962,12 @@ func (c *OrganizationsNotificationConfigsCreateCall) Header() http.Header { } func (c *OrganizationsNotificationConfigsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.notificationconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+parent}/notificationConfigs") @@ -3735,16 +2980,15 @@ func (c *OrganizationsNotificationConfigsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.notificationConfigs.create" call. -// Exactly one of *NotificationConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *NotificationConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *NotificationConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsNotificationConfigsCreateCall) Do(opts ...googleapi.CallOption) (*NotificationConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3752,17 +2996,17 @@ func (c *OrganizationsNotificationConfigsCreateCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &NotificationConfig{ ServerResponse: googleapi.ServerResponse{ @@ -3775,43 +3019,7 @@ func (c *OrganizationsNotificationConfigsCreateCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Creates a notification config.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/notificationConfigs", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.notificationConfigs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "configId": { - // "description": "Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Resource name of the new notification config's parent. Its format is \"organizations/[organization_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+parent}/notificationConfigs", - // "request": { - // "$ref": "NotificationConfig" - // }, - // "response": { - // "$ref": "NotificationConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.notificationConfigs.delete": +} type OrganizationsNotificationConfigsDeleteCall struct { s *Service @@ -3822,6 +3030,9 @@ type OrganizationsNotificationConfigsDeleteCall struct { } // Delete: Deletes a notification config. +// +// - name: Name of the notification config to delete. Its format is +// "organizations/[organization_id]/notificationConfigs/[config_id]". func (r *OrganizationsNotificationConfigsService) Delete(name string) *OrganizationsNotificationConfigsDeleteCall { c := &OrganizationsNotificationConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3829,23 +3040,21 @@ func (r *OrganizationsNotificationConfigsService) Delete(name string) *Organizat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsNotificationConfigsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsNotificationConfigsDeleteCall) Context(ctx context.Context) *OrganizationsNotificationConfigsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsNotificationConfigsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3854,12 +3063,7 @@ func (c *OrganizationsNotificationConfigsDeleteCall) Header() http.Header { } func (c *OrganizationsNotificationConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3873,16 +3077,14 @@ func (c *OrganizationsNotificationConfigsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.notificationConfigs.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsNotificationConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3890,17 +3092,17 @@ func (c *OrganizationsNotificationConfigsDeleteCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -3913,35 +3115,7 @@ func (c *OrganizationsNotificationConfigsDeleteCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Deletes a notification config.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", - // "httpMethod": "DELETE", - // "id": "securitycenter.organizations.notificationConfigs.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Name of the notification config to delete. Its format is \"organizations/[organization_id]/notificationConfigs/[config_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.notificationConfigs.get": +} type OrganizationsNotificationConfigsGetCall struct { s *Service @@ -3953,6 +3127,9 @@ type OrganizationsNotificationConfigsGetCall struct { } // Get: Gets a notification config. +// +// - name: Name of the notification config to get. Its format is +// "organizations/[organization_id]/notificationConfigs/[config_id]". func (r *OrganizationsNotificationConfigsService) Get(name string) *OrganizationsNotificationConfigsGetCall { c := &OrganizationsNotificationConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3960,33 +3137,29 @@ func (r *OrganizationsNotificationConfigsService) Get(name string) *Organization } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsNotificationConfigsGetCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsNotificationConfigsGetCall) IfNoneMatch(entityTag string) *OrganizationsNotificationConfigsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsNotificationConfigsGetCall) Context(ctx context.Context) *OrganizationsNotificationConfigsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsNotificationConfigsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3995,12 +3168,7 @@ func (c *OrganizationsNotificationConfigsGetCall) Header() http.Header { } func (c *OrganizationsNotificationConfigsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4017,16 +3185,15 @@ func (c *OrganizationsNotificationConfigsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.notificationConfigs.get" call. -// Exactly one of *NotificationConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *NotificationConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *NotificationConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsNotificationConfigsGetCall) Do(opts ...googleapi.CallOption) (*NotificationConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4034,17 +3201,17 @@ func (c *OrganizationsNotificationConfigsGetCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &NotificationConfig{ ServerResponse: googleapi.ServerResponse{ @@ -4057,35 +3224,7 @@ func (c *OrganizationsNotificationConfigsGetCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Gets a notification config.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.notificationConfigs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Name of the notification config to get. Its format is \"organizations/[organization_id]/notificationConfigs/[config_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "response": { - // "$ref": "NotificationConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.notificationConfigs.list": +} type OrganizationsNotificationConfigsListCall struct { s *Service @@ -4097,57 +3236,56 @@ type OrganizationsNotificationConfigsListCall struct { } // List: Lists notification configs. +// +// - parent: Name of the organization to list notification configs. Its format +// is "organizations/[organization_id]". func (r *OrganizationsNotificationConfigsService) List(parent string) *OrganizationsNotificationConfigsListCall { c := &OrganizationsNotificationConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return in a single response. Default is 10, minimum is -// 1, maximum is 1000. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return in a single response. Default is 10, minimum is 1, maximum +// is 1000. func (c *OrganizationsNotificationConfigsListCall) PageSize(pageSize int64) *OrganizationsNotificationConfigsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The value returned -// by the last `ListNotificationConfigsResponse`; indicates that this is -// a continuation of a prior `ListNotificationConfigs` call, and that -// the system should return the next page of data. +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListNotificationConfigsResponse`; indicates that this is a +// continuation of a prior `ListNotificationConfigs` call, and that the system +// should return the next page of data. func (c *OrganizationsNotificationConfigsListCall) PageToken(pageToken string) *OrganizationsNotificationConfigsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsNotificationConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsNotificationConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsNotificationConfigsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsNotificationConfigsListCall) Context(ctx context.Context) *OrganizationsNotificationConfigsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsNotificationConfigsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4156,12 +3294,7 @@ func (c *OrganizationsNotificationConfigsListCall) Header() http.Header { } func (c *OrganizationsNotificationConfigsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4178,16 +3311,15 @@ func (c *OrganizationsNotificationConfigsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.notificationConfigs.list" call. -// Exactly one of *ListNotificationConfigsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListNotificationConfigsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListNotificationConfigsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOption) (*ListNotificationConfigsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4195,17 +3327,17 @@ func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListNotificationConfigsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4218,43 +3350,6 @@ func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Lists notification configs.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/notificationConfigs", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.notificationConfigs.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value returned by the last `ListNotificationConfigsResponse`; indicates that this is a continuation of a prior `ListNotificationConfigs` call, and that the system should return the next page of data.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Name of the organization to list notification configs. Its format is \"organizations/[organization_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+parent}/notificationConfigs", - // "response": { - // "$ref": "ListNotificationConfigsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -4262,7 +3357,7 @@ func (c *OrganizationsNotificationConfigsListCall) Do(opts ...googleapi.CallOpti // The provided context supersedes any context provided to the Context method. func (c *OrganizationsNotificationConfigsListCall) Pages(ctx context.Context, f func(*ListNotificationConfigsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4278,8 +3373,6 @@ func (c *OrganizationsNotificationConfigsListCall) Pages(ctx context.Context, f } } -// method id "securitycenter.organizations.notificationConfigs.patch": - type OrganizationsNotificationConfigsPatchCall struct { s *Service name string @@ -4291,6 +3384,11 @@ type OrganizationsNotificationConfigsPatchCall struct { // Patch: Updates a notification config. The following update fields are // allowed: description, pubsub_topic, streaming_config.filter +// +// - name: The relative resource name of this notification config. See: +// https://cloud.google.com/apis/design/resource_names#relative_resource_name +// Example: +// "organizations/{organization_id}/notificationConfigs/notify_public_bucket". func (r *OrganizationsNotificationConfigsService) Patch(name string, notificationconfig *NotificationConfig) *OrganizationsNotificationConfigsPatchCall { c := &OrganizationsNotificationConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4298,32 +3396,30 @@ func (r *OrganizationsNotificationConfigsService) Patch(name string, notificatio return c } -// UpdateMask sets the optional parameter "updateMask": The FieldMask to -// use when updating the notification config. If empty all mutable -// fields will be updated. +// UpdateMask sets the optional parameter "updateMask": The FieldMask to use +// when updating the notification config. If empty all mutable fields will be +// updated. func (c *OrganizationsNotificationConfigsPatchCall) UpdateMask(updateMask string) *OrganizationsNotificationConfigsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsNotificationConfigsPatchCall) Fields(s ...googleapi.Field) *OrganizationsNotificationConfigsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsNotificationConfigsPatchCall) Context(ctx context.Context) *OrganizationsNotificationConfigsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsNotificationConfigsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4332,18 +3428,12 @@ func (c *OrganizationsNotificationConfigsPatchCall) Header() http.Header { } func (c *OrganizationsNotificationConfigsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.notificationconfig) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+name}") @@ -4356,16 +3446,15 @@ func (c *OrganizationsNotificationConfigsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.notificationConfigs.patch" call. -// Exactly one of *NotificationConfig or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *NotificationConfig.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *NotificationConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsNotificationConfigsPatchCall) Do(opts ...googleapi.CallOption) (*NotificationConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4373,17 +3462,17 @@ func (c *OrganizationsNotificationConfigsPatchCall) Do(opts ...googleapi.CallOpt if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &NotificationConfig{ ServerResponse: googleapi.ServerResponse{ @@ -4396,44 +3485,7 @@ func (c *OrganizationsNotificationConfigsPatchCall) Do(opts ...googleapi.CallOpt return nil, err } return ret, nil - // { - // "description": "Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/notificationConfigs/{notificationConfigsId}", - // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.notificationConfigs.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/notificationConfigs/notify_public_bucket\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/notificationConfigs/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The FieldMask to use when updating the notification config. If empty all mutable fields will be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "request": { - // "$ref": "NotificationConfig" - // }, - // "response": { - // "$ref": "NotificationConfig" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.operations.cancel": +} type OrganizationsOperationsCancelCall struct { s *Service @@ -4443,16 +3495,17 @@ type OrganizationsOperationsCancelCall struct { header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to // `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. func (r *OrganizationsOperationsService) Cancel(name string) *OrganizationsOperationsCancelCall { c := &OrganizationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4460,23 +3513,21 @@ func (r *OrganizationsOperationsService) Cancel(name string) *OrganizationsOpera } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsOperationsCancelCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4485,12 +3536,7 @@ func (c *OrganizationsOperationsCancelCall) Header() http.Header { } func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4504,16 +3550,14 @@ func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.cancel" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4521,17 +3565,17 @@ func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -4544,35 +3588,7 @@ func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E return nil, err } return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^organizations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}:cancel", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.operations.delete": +} type OrganizationsOperationsDeleteCall struct { s *Service @@ -4582,10 +3598,12 @@ type OrganizationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. func (r *OrganizationsOperationsService) Delete(name string) *OrganizationsOperationsDeleteCall { c := &OrganizationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4593,23 +3611,21 @@ func (r *OrganizationsOperationsService) Delete(name string) *OrganizationsOpera } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsOperationsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4618,12 +3634,7 @@ func (c *OrganizationsOperationsDeleteCall) Header() http.Header { } func (c *OrganizationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4637,16 +3648,14 @@ func (c *OrganizationsOperationsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4654,17 +3663,17 @@ func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*E if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -4677,35 +3686,7 @@ func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*E return nil, err } return ret, nil - // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "securitycenter.organizations.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^organizations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.operations.get": +} type OrganizationsOperationsGetCall struct { s *Service @@ -4716,9 +3697,11 @@ type OrganizationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall { c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4726,33 +3709,29 @@ func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperatio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4761,12 +3740,7 @@ func (c *OrganizationsOperationsGetCall) Header() http.Header { } func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4783,16 +3757,14 @@ func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4800,17 +3772,17 @@ func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4823,35 +3795,7 @@ func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^organizations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.operations.list": +} type OrganizationsOperationsListCall struct { s *Service @@ -4862,71 +3806,67 @@ type OrganizationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. +// +// - name: The name of the operation's parent resource. func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall { c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4935,12 +3875,7 @@ func (c *OrganizationsOperationsListCall) Header() http.Header { } func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4957,16 +3892,15 @@ func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4974,17 +3908,17 @@ func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4997,48 +3931,6 @@ func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/operations", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^organizations/[^/]+/operations$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -5046,7 +3938,7 @@ func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis // The provided context supersedes any context provided to the Context method. func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5062,8 +3954,6 @@ func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*Lis } } -// method id "securitycenter.organizations.sources.create": - type OrganizationsSourcesCreateCall struct { s *Service parent string @@ -5074,6 +3964,9 @@ type OrganizationsSourcesCreateCall struct { } // Create: Creates a source. +// +// - parent: Resource name of the new source's parent. Its format should be +// "organizations/[organization_id]". func (r *OrganizationsSourcesService) Create(parent string, source *Source) *OrganizationsSourcesCreateCall { c := &OrganizationsSourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -5082,23 +3975,21 @@ func (r *OrganizationsSourcesService) Create(parent string, source *Source) *Org } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSourcesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesCreateCall) Context(ctx context.Context) *OrganizationsSourcesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5107,18 +3998,12 @@ func (c *OrganizationsSourcesCreateCall) Header() http.Header { } func (c *OrganizationsSourcesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.source) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+parent}/sources") @@ -5131,16 +4016,14 @@ func (c *OrganizationsSourcesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.create" call. -// Exactly one of *Source or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Source.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Source.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Source, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5148,17 +4031,17 @@ func (c *OrganizationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Sour if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Source{ ServerResponse: googleapi.ServerResponse{ @@ -5171,38 +4054,7 @@ func (c *OrganizationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Sour return nil, err } return ret, nil - // { - // "description": "Creates a source.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Resource name of the new source's parent. Its format should be \"organizations/[organization_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+parent}/sources", - // "request": { - // "$ref": "Source" - // }, - // "response": { - // "$ref": "Source" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.sources.get": +} type OrganizationsSourcesGetCall struct { s *Service @@ -5214,6 +4066,9 @@ type OrganizationsSourcesGetCall struct { } // Get: Gets a source. +// +// - name: Relative resource name of the source. Its format is +// "organizations/[organization_id]/source/[source_id]". func (r *OrganizationsSourcesService) Get(name string) *OrganizationsSourcesGetCall { c := &OrganizationsSourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5221,33 +4076,29 @@ func (r *OrganizationsSourcesService) Get(name string) *OrganizationsSourcesGetC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesGetCall) Fields(s ...googleapi.Field) *OrganizationsSourcesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsSourcesGetCall) IfNoneMatch(entityTag string) *OrganizationsSourcesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesGetCall) Context(ctx context.Context) *OrganizationsSourcesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5256,12 +4107,7 @@ func (c *OrganizationsSourcesGetCall) Header() http.Header { } func (c *OrganizationsSourcesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5278,16 +4124,14 @@ func (c *OrganizationsSourcesGetCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.get" call. -// Exactly one of *Source or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Source.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Source.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5295,17 +4139,17 @@ func (c *OrganizationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Source{ ServerResponse: googleapi.ServerResponse{ @@ -5318,35 +4162,7 @@ func (c *OrganizationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, return nil, err } return ret, nil - // { - // "description": "Gets a source.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.sources.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Relative resource name of the source. Its format is \"organizations/[organization_id]/source/[source_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "response": { - // "$ref": "Source" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.sources.getIamPolicy": +} type OrganizationsSourcesGetIamPolicyCall struct { s *Service @@ -5358,6 +4174,9 @@ type OrganizationsSourcesGetIamPolicyCall struct { } // GetIamPolicy: Gets the access control policy on the specified Source. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See the operation documentation for the appropriate value for this field. func (r *OrganizationsSourcesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *OrganizationsSourcesGetIamPolicyCall { c := &OrganizationsSourcesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5366,23 +4185,21 @@ func (r *OrganizationsSourcesService) GetIamPolicy(resource string, getiampolicy } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsSourcesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesGetIamPolicyCall) Context(ctx context.Context) *OrganizationsSourcesGetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5391,18 +4208,12 @@ func (c *OrganizationsSourcesGetIamPolicyCall) Header() http.Header { } func (c *OrganizationsSourcesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+resource}:getIamPolicy") @@ -5415,16 +4226,14 @@ func (c *OrganizationsSourcesGetIamPolicyCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsSourcesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5432,17 +4241,17 @@ func (c *OrganizationsSourcesGetIamPolicyCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -5455,38 +4264,7 @@ func (c *OrganizationsSourcesGetIamPolicyCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Gets the access control policy on the specified Source.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}:getIamPolicy", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+resource}:getIamPolicy", - // "request": { - // "$ref": "GetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.sources.list": +} type OrganizationsSourcesListCall struct { s *Service @@ -5498,57 +4276,55 @@ type OrganizationsSourcesListCall struct { } // List: Lists all sources belonging to an organization. +// +// - parent: Resource name of the parent of sources to list. Its format should +// be "organizations/[organization_id]". func (r *OrganizationsSourcesService) List(parent string) *OrganizationsSourcesListCall { c := &OrganizationsSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return in a single response. Default is 10, minimum is -// 1, maximum is 1000. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return in a single response. Default is 10, minimum is 1, maximum +// is 1000. func (c *OrganizationsSourcesListCall) PageSize(pageSize int64) *OrganizationsSourcesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The value returned -// by the last `ListSourcesResponse`; indicates that this is a -// continuation of a prior `ListSources` call, and that the system -// should return the next page of data. +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListSourcesResponse`; indicates that this is a continuation of a prior +// `ListSources` call, and that the system should return the next page of data. func (c *OrganizationsSourcesListCall) PageToken(pageToken string) *OrganizationsSourcesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesListCall) Fields(s ...googleapi.Field) *OrganizationsSourcesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsSourcesListCall) IfNoneMatch(entityTag string) *OrganizationsSourcesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesListCall) Context(ctx context.Context) *OrganizationsSourcesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5557,12 +4333,7 @@ func (c *OrganizationsSourcesListCall) Header() http.Header { } func (c *OrganizationsSourcesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5579,16 +4350,15 @@ func (c *OrganizationsSourcesListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.list" call. -// Exactly one of *ListSourcesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListSourcesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListSourcesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5596,17 +4366,17 @@ func (c *OrganizationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListSourcesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5619,43 +4389,6 @@ func (c *OrganizationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSo return nil, err } return ret, nil - // { - // "description": "Lists all sources belonging to an organization.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.sources.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Resource name of the parent of sources to list. Its format should be \"organizations/[organization_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+parent}/sources", - // "response": { - // "$ref": "ListSourcesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -5663,7 +4396,7 @@ func (c *OrganizationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSo // The provided context supersedes any context provided to the Context method. func (c *OrganizationsSourcesListCall) Pages(ctx context.Context, f func(*ListSourcesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -5679,8 +4412,6 @@ func (c *OrganizationsSourcesListCall) Pages(ctx context.Context, f func(*ListSo } } -// method id "securitycenter.organizations.sources.patch": - type OrganizationsSourcesPatchCall struct { s *Service name string @@ -5691,6 +4422,10 @@ type OrganizationsSourcesPatchCall struct { } // Patch: Updates a source. +// +// - name: The relative resource name of this source. See: +// https://cloud.google.com/apis/design/resource_names#relative_resource_name +// Example: "organizations/{organization_id}/sources/{source_id}". func (r *OrganizationsSourcesService) Patch(name string, source *Source) *OrganizationsSourcesPatchCall { c := &OrganizationsSourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5698,32 +4433,30 @@ func (r *OrganizationsSourcesService) Patch(name string, source *Source) *Organi return c } -// UpdateMask sets the optional parameter "updateMask": The FieldMask to -// use when updating the source resource. If empty all mutable fields -// will be updated. +// UpdateMask sets the optional parameter "updateMask": The FieldMask to use +// when updating the source resource. If empty all mutable fields will be +// updated. func (c *OrganizationsSourcesPatchCall) UpdateMask(updateMask string) *OrganizationsSourcesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSourcesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesPatchCall) Context(ctx context.Context) *OrganizationsSourcesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5732,18 +4465,12 @@ func (c *OrganizationsSourcesPatchCall) Header() http.Header { } func (c *OrganizationsSourcesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.source) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+name}") @@ -5756,16 +4483,14 @@ func (c *OrganizationsSourcesPatchCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.patch" call. -// Exactly one of *Source or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Source.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Source.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Source, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5773,17 +4498,17 @@ func (c *OrganizationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Sourc if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Source{ ServerResponse: googleapi.ServerResponse{ @@ -5796,44 +4521,7 @@ func (c *OrganizationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Sourc return nil, err } return ret, nil - // { - // "description": "Updates a source.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}", - // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.sources.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}\"", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The FieldMask to use when updating the source resource. If empty all mutable fields will be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "request": { - // "$ref": "Source" - // }, - // "response": { - // "$ref": "Source" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.sources.setIamPolicy": +} type OrganizationsSourcesSetIamPolicyCall struct { s *Service @@ -5845,6 +4533,9 @@ type OrganizationsSourcesSetIamPolicyCall struct { } // SetIamPolicy: Sets the access control policy on the specified Source. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See the operation documentation for the appropriate value for this field. func (r *OrganizationsSourcesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *OrganizationsSourcesSetIamPolicyCall { c := &OrganizationsSourcesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5853,23 +4544,21 @@ func (r *OrganizationsSourcesService) SetIamPolicy(resource string, setiampolicy } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsSourcesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesSetIamPolicyCall) Context(ctx context.Context) *OrganizationsSourcesSetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5878,18 +4567,12 @@ func (c *OrganizationsSourcesSetIamPolicyCall) Header() http.Header { } func (c *OrganizationsSourcesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+resource}:setIamPolicy") @@ -5902,16 +4585,14 @@ func (c *OrganizationsSourcesSetIamPolicyCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OrganizationsSourcesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5919,17 +4600,17 @@ func (c *OrganizationsSourcesSetIamPolicyCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Policy{ ServerResponse: googleapi.ServerResponse{ @@ -5942,38 +4623,7 @@ func (c *OrganizationsSourcesSetIamPolicyCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified Source.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.sources.testIamPermissions": +} type OrganizationsSourcesTestIamPermissionsCall struct { s *Service @@ -5986,6 +4636,10 @@ type OrganizationsSourcesTestIamPermissionsCall struct { // TestIamPermissions: Returns the permissions that a caller has on the // specified source. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See the operation documentation for the appropriate value for +// this field. func (r *OrganizationsSourcesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *OrganizationsSourcesTestIamPermissionsCall { c := &OrganizationsSourcesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5994,23 +4648,21 @@ func (r *OrganizationsSourcesService) TestIamPermissions(resource string, testia } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsSourcesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsSourcesTestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6019,18 +4671,12 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) Header() http.Header { } func (c *OrganizationsSourcesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+resource}:testIamPermissions") @@ -6043,16 +4689,15 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsSourcesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6060,17 +4705,17 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6083,38 +4728,7 @@ func (c *OrganizationsSourcesTestIamPermissionsCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Returns the permissions that a caller has on the specified source.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.sources.findings.create": +} type OrganizationsSourcesFindingsCreateCall struct { s *Service @@ -6125,8 +4739,11 @@ type OrganizationsSourcesFindingsCreateCall struct { header_ http.Header } -// Create: Creates a finding. The corresponding source must exist for -// finding creation to succeed. +// Create: Creates a finding. The corresponding source must exist for finding +// creation to succeed. +// +// - parent: Resource name of the new finding's parent. Its format should be +// "organizations/[organization_id]/sources/[source_id]". func (r *OrganizationsSourcesFindingsService) Create(parent string, googlecloudsecuritycenterv1p1beta1finding *GoogleCloudSecuritycenterV1p1beta1Finding) *OrganizationsSourcesFindingsCreateCall { c := &OrganizationsSourcesFindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -6142,23 +4759,21 @@ func (c *OrganizationsSourcesFindingsCreateCall) FindingId(findingId string) *Or } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesFindingsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesFindingsCreateCall) Context(ctx context.Context) *OrganizationsSourcesFindingsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesFindingsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6167,18 +4782,12 @@ func (c *OrganizationsSourcesFindingsCreateCall) Header() http.Header { } func (c *OrganizationsSourcesFindingsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1p1beta1finding) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+parent}/findings") @@ -6191,18 +4800,15 @@ func (c *OrganizationsSourcesFindingsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.create" call. -// Exactly one of *GoogleCloudSecuritycenterV1p1beta1Finding or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudSecuritycenterV1p1beta1Finding.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudSecuritycenterV1p1beta1Finding.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsSourcesFindingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1p1beta1Finding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6210,17 +4816,17 @@ func (c *OrganizationsSourcesFindingsCreateCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudSecuritycenterV1p1beta1Finding{ ServerResponse: googleapi.ServerResponse{ @@ -6233,43 +4839,7 @@ func (c *OrganizationsSourcesFindingsCreateCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Creates a finding. The corresponding source must exist for finding creation to succeed.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}/findings", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.findings.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "findingId": { - // "description": "Required. Unique identifier provided by the client within the parent scope.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Resource name of the new finding's parent. Its format should be \"organizations/[organization_id]/sources/[source_id]\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+parent}/findings", - // "request": { - // "$ref": "GoogleCloudSecuritycenterV1p1beta1Finding" - // }, - // "response": { - // "$ref": "GoogleCloudSecuritycenterV1p1beta1Finding" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.sources.findings.group": +} type OrganizationsSourcesFindingsGroupCall struct { s *Service @@ -6280,10 +4850,15 @@ type OrganizationsSourcesFindingsGroupCall struct { header_ http.Header } -// Group: Filters an organization or source's findings and groups them -// by their specified properties. To group across all sources provide a -// `-` as the source id. Example: +// Group: Filters an organization or source's findings and groups them by their +// specified properties. To group across all sources provide a `-` as the +// source id. Example: // /v1p1beta1/organizations/{organization_id}/sources/-/findings +// +// - parent: Name of the source to groupBy. Its format is +// "organizations/[organization_id]/sources/[source_id]". To groupBy across +// all sources provide a source_id of `-`. For example: +// organizations/{organization_id}/sources/-. func (r *OrganizationsSourcesFindingsService) Group(parent string, groupfindingsrequest *GroupFindingsRequest) *OrganizationsSourcesFindingsGroupCall { c := &OrganizationsSourcesFindingsGroupCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -6292,23 +4867,21 @@ func (r *OrganizationsSourcesFindingsService) Group(parent string, groupfindings } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesFindingsGroupCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsGroupCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesFindingsGroupCall) Context(ctx context.Context) *OrganizationsSourcesFindingsGroupCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesFindingsGroupCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6317,18 +4890,12 @@ func (c *OrganizationsSourcesFindingsGroupCall) Header() http.Header { } func (c *OrganizationsSourcesFindingsGroupCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.groupfindingsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+parent}/findings:group") @@ -6341,16 +4908,15 @@ func (c *OrganizationsSourcesFindingsGroupCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.group" call. -// Exactly one of *GroupFindingsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GroupFindingsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GroupFindingsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsSourcesFindingsGroupCall) Do(opts ...googleapi.CallOption) (*GroupFindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6358,17 +4924,17 @@ func (c *OrganizationsSourcesFindingsGroupCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GroupFindingsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6381,35 +4947,6 @@ func (c *OrganizationsSourcesFindingsGroupCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}/findings:group", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.findings.group", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Name of the source to groupBy. Its format is \"organizations/[organization_id]/sources/[source_id]\". To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+parent}/findings:group", - // "request": { - // "$ref": "GroupFindingsRequest" - // }, - // "response": { - // "$ref": "GroupFindingsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -6417,7 +4954,7 @@ func (c *OrganizationsSourcesFindingsGroupCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *OrganizationsSourcesFindingsGroupCall) Pages(ctx context.Context, f func(*GroupFindingsResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.groupfindingsrequest.PageToken = pt }(c.groupfindingsrequest.PageToken) // reset paging to original point + defer func(pt string) { c.groupfindingsrequest.PageToken = pt }(c.groupfindingsrequest.PageToken) for { x, err := c.Do() if err != nil { @@ -6433,8 +4970,6 @@ func (c *OrganizationsSourcesFindingsGroupCall) Pages(ctx context.Context, f fun } } -// method id "securitycenter.organizations.sources.findings.list": - type OrganizationsSourcesFindingsListCall struct { s *Service parent string @@ -6444,9 +4979,14 @@ type OrganizationsSourcesFindingsListCall struct { header_ http.Header } -// List: Lists an organization or source's findings. To list across all -// sources provide a `-` as the source id. Example: +// List: Lists an organization or source's findings. To list across all sources +// provide a `-` as the source id. Example: // /v1p1beta1/organizations/{organization_id}/sources/-/findings +// +// - parent: Name of the source the findings belong to. Its format is +// "organizations/[organization_id]/sources/[source_id]". To list across all +// sources provide a source_id of `-`. For example: +// organizations/{organization_id}/sources/-. func (r *OrganizationsSourcesFindingsService) List(parent string) *OrganizationsSourcesFindingsListCall { c := &OrganizationsSourcesFindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -6454,141 +4994,132 @@ func (r *OrganizationsSourcesFindingsService) List(parent string) *Organizations } // CompareDuration sets the optional parameter "compareDuration": When -// compare_duration is set, the ListFindingsResult's "state_change" -// attribute is updated to indicate whether the finding had its state -// changed, the finding's state remained unchanged, or if the finding -// was added in any state during the compare_duration period of time -// that precedes the read_time. This is the time between (read_time - -// compare_duration) and read_time. The state_change value is derived -// based on the presence and state of the finding at the two points in -// time. Intermediate state changes between the two times don't affect -// the result. For example, the results aren't affected if the finding -// is made inactive and then active again. Possible "state_change" -// values when compare_duration is specified: * "CHANGED": indicates -// that the finding was present and matched the given filter at the -// start of compare_duration, but changed its state at read_time. * -// "UNCHANGED": indicates that the finding was present and matched the -// given filter at the start of compare_duration and did not change -// state at read_time. * "ADDED": indicates that the finding did not -// match the given filter or was not present at the start of -// compare_duration, but was present at read_time. * "REMOVED": -// indicates that the finding was present and matched the filter at the -// start of compare_duration, but did not match the filter at read_time. -// If compare_duration is not specified, then the only possible -// state_change is "UNUSED", which will be the state_change set for all -// findings present at read_time. +// compare_duration is set, the ListFindingsResult's "state_change" attribute +// is updated to indicate whether the finding had its state changed, the +// finding's state remained unchanged, or if the finding was added in any state +// during the compare_duration period of time that precedes the read_time. This +// is the time between (read_time - compare_duration) and read_time. The +// state_change value is derived based on the presence and state of the finding +// at the two points in time. Intermediate state changes between the two times +// don't affect the result. For example, the results aren't affected if the +// finding is made inactive and then active again. Possible "state_change" +// values when compare_duration is specified: * "CHANGED": indicates that the +// finding was present and matched the given filter at the start of +// compare_duration, but changed its state at read_time. * "UNCHANGED": +// indicates that the finding was present and matched the given filter at the +// start of compare_duration and did not change state at read_time. * "ADDED": +// indicates that the finding did not match the given filter or was not present +// at the start of compare_duration, but was present at read_time. * "REMOVED": +// indicates that the finding was present and matched the filter at the start +// of compare_duration, but did not match the filter at read_time. If +// compare_duration is not specified, then the only possible state_change is +// "UNUSED", which will be the state_change set for all findings present at +// read_time. func (c *OrganizationsSourcesFindingsListCall) CompareDuration(compareDuration string) *OrganizationsSourcesFindingsListCall { c.urlParams_.Set("compareDuration", compareDuration) return c } -// FieldMask sets the optional parameter "fieldMask": A field mask to -// specify the Finding fields to be listed in the response. An empty -// field mask will list all fields. +// FieldMask sets the optional parameter "fieldMask": A field mask to specify +// the Finding fields to be listed in the response. An empty field mask will +// list all fields. func (c *OrganizationsSourcesFindingsListCall) FieldMask(fieldMask string) *OrganizationsSourcesFindingsListCall { c.urlParams_.Set("fieldMask", fieldMask) return c } -// Filter sets the optional parameter "filter": Expression that defines -// the filter to apply across findings. The expression is a list of one -// or more restrictions combined via logical operators `AND` and `OR`. -// Parentheses are supported, and `OR` has higher precedence than `AND`. -// Restrictions have the form ` ` and may have a `-` character in front -// of them to indicate negation. Examples include: * name * -// source_properties.a_property * security_marks.marks.marka The -// supported operators are: * `=` for all value types. * `>`, `<`, `>=`, -// `<=` for integer values. * `:`, meaning substring matching, for -// strings. The supported value types are: * string literals in quotes. -// * integer literals without quotes. * boolean literals `true` and -// `false` without quotes. The following field and operator combinations -// are supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` -// state: `=`, `:` category: `=`, `:` external_uri: `=`, `:` event_time: -// `=`, `>`, `<`, `>=`, `<=` Usage: This should be milliseconds since -// epoch or an RFC3339 string. Examples: `event_time = -// "2019-06-10T16:07:18-07:00" `event_time = 1560208038000` -// security_marks.marks: `=`, `:` source_properties: `=`, `:`, `>`, `<`, -// `>=`, `<=` For example, `source_properties.size = 100` is a valid -// filter string. Use a partial match on the empty string to filter -// based on a property existing: `source_properties.my_property : "" -// Use a negated partial match on the empty string to filter based on a -// property not existing: `-source_properties.my_property : "" +// Filter sets the optional parameter "filter": Expression that defines the +// filter to apply across findings. The expression is a list of one or more +// restrictions combined via logical operators `AND` and `OR`. Parentheses are +// supported, and `OR` has higher precedence than `AND`. Restrictions have the +// form ` ` and may have a `-` character in front of them to indicate negation. +// Examples include: * name * source_properties.a_property * +// security_marks.marks.marka The supported operators are: * `=` for all value +// types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring +// matching, for strings. The supported value types are: * string literals in +// quotes. * integer literals without quotes. * boolean literals `true` and +// `false` without quotes. The following field and operator combinations are +// supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` state: `=`, +// `:` category: `=`, `:` external_uri: `=`, `:` event_time: `=`, `>`, `<`, +// `>=`, `<=` Usage: This should be milliseconds since epoch or an RFC3339 +// string. Examples: `event_time = "2019-06-10T16:07:18-07:00" `event_time = +// 1560208038000` security_marks.marks: `=`, `:` source_properties: `=`, `:`, +// `>`, `<`, `>=`, `<=` For example, `source_properties.size = 100` is a valid +// filter string. Use a partial match on the empty string to filter based on a +// property existing: `source_properties.my_property : "" Use a negated +// partial match on the empty string to filter based on a property not +// existing: `-source_properties.my_property : "" func (c *OrganizationsSourcesFindingsListCall) Filter(filter string) *OrganizationsSourcesFindingsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Expression that -// defines what fields and order to use for sorting. The string value -// should follow SQL syntax: comma separated list of fields. For -// example: "name,resource_properties.a_property". The default sorting -// order is ascending. To specify descending order for a field, a suffix -// " desc" should be appended to the field name. For example: "name -// desc,source_properties.a_property". Redundant space characters in the -// syntax are insignificant. "name desc,source_properties.a_property" -// and " name desc , source_properties.a_property " are equivalent. The -// following fields are supported: name parent state category -// resource_name event_time source_properties security_marks.marks +// OrderBy sets the optional parameter "orderBy": Expression that defines what +// fields and order to use for sorting. The string value should follow SQL +// syntax: comma separated list of fields. For example: +// "name,resource_properties.a_property". The default sorting order is +// ascending. To specify descending order for a field, a suffix " desc" should +// be appended to the field name. For example: "name +// desc,source_properties.a_property". Redundant space characters in the syntax +// are insignificant. "name desc,source_properties.a_property" and " name desc +// , source_properties.a_property " are equivalent. The following fields are +// supported: name parent state category resource_name event_time +// source_properties security_marks.marks func (c *OrganizationsSourcesFindingsListCall) OrderBy(orderBy string) *OrganizationsSourcesFindingsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return in a single response. Default is 10, minimum is -// 1, maximum is 1000. +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return in a single response. Default is 10, minimum is 1, maximum +// is 1000. func (c *OrganizationsSourcesFindingsListCall) PageSize(pageSize int64) *OrganizationsSourcesFindingsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The value returned -// by the last `ListFindingsResponse`; indicates that this is a -// continuation of a prior `ListFindings` call, and that the system -// should return the next page of data. +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListFindingsResponse`; indicates that this is a continuation of a +// prior `ListFindings` call, and that the system should return the next page +// of data. func (c *OrganizationsSourcesFindingsListCall) PageToken(pageToken string) *OrganizationsSourcesFindingsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadTime sets the optional parameter "readTime": Time used as a -// reference point when filtering findings. The filter is limited to -// findings existing at the supplied time and their values are those at -// that specific time. Absence of this field will default to the API's -// version of NOW. +// ReadTime sets the optional parameter "readTime": Time used as a reference +// point when filtering findings. The filter is limited to findings existing at +// the supplied time and their values are those at that specific time. Absence +// of this field will default to the API's version of NOW. func (c *OrganizationsSourcesFindingsListCall) ReadTime(readTime string) *OrganizationsSourcesFindingsListCall { c.urlParams_.Set("readTime", readTime) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesFindingsListCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OrganizationsSourcesFindingsListCall) IfNoneMatch(entityTag string) *OrganizationsSourcesFindingsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesFindingsListCall) Context(ctx context.Context) *OrganizationsSourcesFindingsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesFindingsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6597,12 +5128,7 @@ func (c *OrganizationsSourcesFindingsListCall) Header() http.Header { } func (c *OrganizationsSourcesFindingsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6619,16 +5145,15 @@ func (c *OrganizationsSourcesFindingsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.list" call. -// Exactly one of *ListFindingsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListFindingsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListFindingsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OrganizationsSourcesFindingsListCall) Do(opts ...googleapi.CallOption) (*ListFindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6636,17 +5161,17 @@ func (c *OrganizationsSourcesFindingsListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListFindingsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -6659,71 +5184,6 @@ func (c *OrganizationsSourcesFindingsListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}/findings", - // "httpMethod": "GET", - // "id": "securitycenter.organizations.sources.findings.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "compareDuration": { - // "description": "When compare_duration is set, the ListFindingsResult's \"state_change\" attribute is updated to indicate whether the finding had its state changed, the finding's state remained unchanged, or if the finding was added in any state during the compare_duration period of time that precedes the read_time. This is the time between (read_time - compare_duration) and read_time. The state_change value is derived based on the presence and state of the finding at the two points in time. Intermediate state changes between the two times don't affect the result. For example, the results aren't affected if the finding is made inactive and then active again. Possible \"state_change\" values when compare_duration is specified: * \"CHANGED\": indicates that the finding was present and matched the given filter at the start of compare_duration, but changed its state at read_time. * \"UNCHANGED\": indicates that the finding was present and matched the given filter at the start of compare_duration and did not change state at read_time. * \"ADDED\": indicates that the finding did not match the given filter or was not present at the start of compare_duration, but was present at read_time. * \"REMOVED\": indicates that the finding was present and matched the filter at the start of compare_duration, but did not match the filter at read_time. If compare_duration is not specified, then the only possible state_change is \"UNUSED\", which will be the state_change set for all findings present at read_time.", - // "format": "google-duration", - // "location": "query", - // "type": "string" - // }, - // "fieldMask": { - // "description": "A field mask to specify the Finding fields to be listed in the response. An empty field mask will list all fields.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Expression that defines the filter to apply across findings. The expression is a list of one or more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and `OR` has higher precedence than `AND`. Restrictions have the form ` ` and may have a `-` character in front of them to indicate negation. Examples include: * name * source_properties.a_property * security_marks.marks.marka The supported operators are: * `=` for all value types. * `\u003e`, `\u003c`, `\u003e=`, `\u003c=` for integer values. * `:`, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals `true` and `false` without quotes. The following field and operator combinations are supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` state: `=`, `:` category: `=`, `:` external_uri: `=`, `:` event_time: `=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` Usage: This should be milliseconds since epoch or an RFC3339 string. Examples: `event_time = \"2019-06-10T16:07:18-07:00\"` `event_time = 1560208038000` security_marks.marks: `=`, `:` source_properties: `=`, `:`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=` For example, `source_properties.size = 100` is a valid filter string. Use a partial match on the empty string to filter based on a property existing: `source_properties.my_property : \"\"` Use a negated partial match on the empty string to filter based on a property not existing: `-source_properties.my_property : \"\"`", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Expression that defines what fields and order to use for sorting. The string value should follow SQL syntax: comma separated list of fields. For example: \"name,resource_properties.a_property\". The default sorting order is ascending. To specify descending order for a field, a suffix \" desc\" should be appended to the field name. For example: \"name desc,source_properties.a_property\". Redundant space characters in the syntax are insignificant. \"name desc,source_properties.a_property\" and \" name desc , source_properties.a_property \" are equivalent. The following fields are supported: name parent state category resource_name event_time source_properties security_marks.marks", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The value returned by the last `ListFindingsResponse`; indicates that this is a continuation of a prior `ListFindings` call, and that the system should return the next page of data.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Name of the source the findings belong to. Its format is \"organizations/[organization_id]/sources/[source_id]\". To list across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/-", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readTime": { - // "description": "Time used as a reference point when filtering findings. The filter is limited to findings existing at the supplied time and their values are those at that specific time. Absence of this field will default to the API's version of NOW.", - // "format": "google-datetime", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+parent}/findings", - // "response": { - // "$ref": "ListFindingsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -6731,7 +5191,7 @@ func (c *OrganizationsSourcesFindingsListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *OrganizationsSourcesFindingsListCall) Pages(ctx context.Context, f func(*ListFindingsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6747,8 +5207,6 @@ func (c *OrganizationsSourcesFindingsListCall) Pages(ctx context.Context, f func } } -// method id "securitycenter.organizations.sources.findings.patch": - type OrganizationsSourcesFindingsPatchCall struct { s *Service name string @@ -6758,8 +5216,13 @@ type OrganizationsSourcesFindingsPatchCall struct { header_ http.Header } -// Patch: Creates or updates a finding. The corresponding source must -// exist for a finding creation to succeed. +// Patch: Creates or updates a finding. The corresponding source must exist for +// a finding creation to succeed. +// +// - name: The relative resource name of this finding. See: +// https://cloud.google.com/apis/design/resource_names#relative_resource_name +// Example: +// "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}". func (r *OrganizationsSourcesFindingsService) Patch(name string, googlecloudsecuritycenterv1p1beta1finding *GoogleCloudSecuritycenterV1p1beta1Finding) *OrganizationsSourcesFindingsPatchCall { c := &OrganizationsSourcesFindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6767,35 +5230,33 @@ func (r *OrganizationsSourcesFindingsService) Patch(name string, googlecloudsecu return c } -// UpdateMask sets the optional parameter "updateMask": The FieldMask to -// use when updating the finding resource. This field should not be -// specified when creating a finding. When updating a finding, an empty -// mask is treated as updating all mutable fields and replacing -// source_properties. Individual source_properties can be added/updated -// by using "source_properties." in the field mask. +// UpdateMask sets the optional parameter "updateMask": The FieldMask to use +// when updating the finding resource. This field should not be specified when +// creating a finding. When updating a finding, an empty mask is treated as +// updating all mutable fields and replacing source_properties. Individual +// source_properties can be added/updated by using "source_properties." in the +// field mask. func (c *OrganizationsSourcesFindingsPatchCall) UpdateMask(updateMask string) *OrganizationsSourcesFindingsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesFindingsPatchCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesFindingsPatchCall) Context(ctx context.Context) *OrganizationsSourcesFindingsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesFindingsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6804,18 +5265,12 @@ func (c *OrganizationsSourcesFindingsPatchCall) Header() http.Header { } func (c *OrganizationsSourcesFindingsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1p1beta1finding) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+name}") @@ -6828,18 +5283,15 @@ func (c *OrganizationsSourcesFindingsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.patch" call. -// Exactly one of *GoogleCloudSecuritycenterV1p1beta1Finding or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudSecuritycenterV1p1beta1Finding.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudSecuritycenterV1p1beta1Finding.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsSourcesFindingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1p1beta1Finding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6847,17 +5299,17 @@ func (c *OrganizationsSourcesFindingsPatchCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudSecuritycenterV1p1beta1Finding{ ServerResponse: googleapi.ServerResponse{ @@ -6870,44 +5322,7 @@ func (c *OrganizationsSourcesFindingsPatchCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}", - // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.sources.findings.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}\"", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using \"source_properties.\" in the field mask.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudSecuritycenterV1p1beta1Finding" - // }, - // "response": { - // "$ref": "GoogleCloudSecuritycenterV1p1beta1Finding" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.sources.findings.setState": +} type OrganizationsSourcesFindingsSetStateCall struct { s *Service @@ -6919,6 +5334,11 @@ type OrganizationsSourcesFindingsSetStateCall struct { } // SetState: Updates the state of a finding. +// +// - name: The relative resource name of the finding. See: +// https://cloud.google.com/apis/design/resource_names#relative_resource_name +// Example: +// "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". func (r *OrganizationsSourcesFindingsService) SetState(name string, setfindingstaterequest *SetFindingStateRequest) *OrganizationsSourcesFindingsSetStateCall { c := &OrganizationsSourcesFindingsSetStateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6927,23 +5347,21 @@ func (r *OrganizationsSourcesFindingsService) SetState(name string, setfindingst } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesFindingsSetStateCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsSetStateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesFindingsSetStateCall) Context(ctx context.Context) *OrganizationsSourcesFindingsSetStateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesFindingsSetStateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6952,18 +5370,12 @@ func (c *OrganizationsSourcesFindingsSetStateCall) Header() http.Header { } func (c *OrganizationsSourcesFindingsSetStateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.setfindingstaterequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+name}:setState") @@ -6976,18 +5388,15 @@ func (c *OrganizationsSourcesFindingsSetStateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.setState" call. -// Exactly one of *GoogleCloudSecuritycenterV1p1beta1Finding or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudSecuritycenterV1p1beta1Finding.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudSecuritycenterV1p1beta1Finding.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1p1beta1Finding, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6995,17 +5404,17 @@ func (c *OrganizationsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudSecuritycenterV1p1beta1Finding{ ServerResponse: googleapi.ServerResponse{ @@ -7018,38 +5427,7 @@ func (c *OrganizationsSourcesFindingsSetStateCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Updates the state of a finding.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}:setState", - // "httpMethod": "POST", - // "id": "securitycenter.organizations.sources.findings.setState", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: \"organizations/{organization_id}/sources/{source_id}/finding/{finding_id}\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}:setState", - // "request": { - // "$ref": "SetFindingStateRequest" - // }, - // "response": { - // "$ref": "GoogleCloudSecuritycenterV1p1beta1Finding" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "securitycenter.organizations.sources.findings.updateSecurityMarks": +} type OrganizationsSourcesFindingsUpdateSecurityMarksCall struct { s *Service @@ -7061,6 +5439,13 @@ type OrganizationsSourcesFindingsUpdateSecurityMarksCall struct { } // UpdateSecurityMarks: Updates security marks. +// +// - name: The relative resource name of the SecurityMarks. See: +// https://cloud.google.com/apis/design/resource_names#relative_resource_name +// Examples: +// "organizations/{organization_id}/assets/{asset_id}/securityMarks" +// "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/ +// securityMarks". func (r *OrganizationsSourcesFindingsService) UpdateSecurityMarks(name string, googlecloudsecuritycenterv1p1beta1securitymarks *GoogleCloudSecuritycenterV1p1beta1SecurityMarks) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { c := &OrganizationsSourcesFindingsUpdateSecurityMarksCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7068,42 +5453,40 @@ func (r *OrganizationsSourcesFindingsService) UpdateSecurityMarks(name string, g return c } -// StartTime sets the optional parameter "startTime": The time at which -// the updated SecurityMarks take effect. If not set uses current server -// time. Updates will be applied to the SecurityMarks that are active -// immediately preceding this time. +// StartTime sets the optional parameter "startTime": The time at which the +// updated SecurityMarks take effect. If not set uses current server time. +// Updates will be applied to the SecurityMarks that are active immediately +// preceding this time. func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) StartTime(startTime string) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { c.urlParams_.Set("startTime", startTime) return c } -// UpdateMask sets the optional parameter "updateMask": The FieldMask to -// use when updating the security marks resource. The field mask must -// not contain duplicate fields. If empty or set to "marks", all marks -// will be replaced. Individual marks can be updated using "marks.". +// UpdateMask sets the optional parameter "updateMask": The FieldMask to use +// when updating the security marks resource. The field mask must not contain +// duplicate fields. If empty or set to "marks", all marks will be replaced. +// Individual marks can be updated using "marks.". func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) UpdateMask(updateMask string) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Fields(s ...googleapi.Field) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Context(ctx context.Context) *OrganizationsSourcesFindingsUpdateSecurityMarksCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7112,18 +5495,12 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Header() http.Head } func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200825") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1p1beta1securitymarks) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1p1beta1/{+name}") @@ -7136,20 +5513,15 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "securitycenter.organizations.sources.findings.updateSecurityMarks" call. -// Exactly one of *GoogleCloudSecuritycenterV1p1beta1SecurityMarks or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudSecuritycenterV1p1beta1SecurityMarks.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudSecuritycenterV1p1beta1SecurityMarks.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1p1beta1SecurityMarks, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7157,17 +5529,17 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Do(opts ...googlea if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudSecuritycenterV1p1beta1SecurityMarks{ ServerResponse: googleapi.ServerResponse{ @@ -7180,45 +5552,4 @@ func (c *OrganizationsSourcesFindingsUpdateSecurityMarksCall) Do(opts ...googlea return nil, err } return ret, nil - // { - // "description": "Updates security marks.", - // "flatPath": "v1p1beta1/organizations/{organizationsId}/sources/{sourcesId}/findings/{findingsId}/securityMarks", - // "httpMethod": "PATCH", - // "id": "securitycenter.organizations.sources.findings.updateSecurityMarks", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: \"organizations/{organization_id}/assets/{asset_id}/securityMarks\" \"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".", - // "location": "path", - // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks$", - // "required": true, - // "type": "string" - // }, - // "startTime": { - // "description": "The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.", - // "format": "google-datetime", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to \"marks\", all marks will be replaced. Individual marks can be updated using \"marks.\".", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1p1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudSecuritycenterV1p1beta1SecurityMarks" - // }, - // "response": { - // "$ref": "GoogleCloudSecuritycenterV1p1beta1SecurityMarks" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/servicebroker/v1/servicebroker-gen.go b/servicebroker/v1/servicebroker-gen.go index c818686d8a6..794ba926fc8 100644 --- a/servicebroker/v1/servicebroker-gen.go +++ b/servicebroker/v1/servicebroker-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // servicebrokerService, err := servicebroker.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // servicebrokerService, err := servicebroker.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // servicebrokerService, err := servicebroker.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package servicebroker // import "google.golang.org/api/servicebroker/v1" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,11 +83,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "servicebroker:v1" const apiName = "servicebroker" const apiVersion = "v1" const basePath = "https://servicebroker.googleapis.com/" +const basePathTemplate = "https://servicebroker.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -82,11 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -148,111 +169,83 @@ type GoogleIamV1__Binding struct { // examined // independently. Condition *GoogleType__Expr `json:"condition,omitempty"` - - // Members: Specifies the identities requesting access for a Cloud - // Platform resource. + // Members: Specifies the identities requesting access for a Cloud Platform + // resource. // `members` can have the following values: // // * `allUsers`: A special identifier that represents anyone who is // on the internet; with or without a Google account. // - // * `allAuthenticatedUsers`: A special identifier that represents - // anyone - // who is authenticated with a Google account or a service - // account. + // * `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. // - // * `user:{emailid}`: An email address that represents a specific - // Google + // * `user:{emailid}`: An email address that represents a specific Google // account. For example, `alice@example.com` . // // - // * `serviceAccount:{emailid}`: An email address that represents a - // service - // account. For example, - // `my-other-app@appspot.gserviceaccount.com`. + // * `serviceAccount:{emailid}`: An email address that represents a service + // account. For example, `my-other-app@appspot.gserviceaccount.com`. // - // * `group:{emailid}`: An email address that represents a Google - // group. + // * `group:{emailid}`: An email address that represents a Google group. // For example, `admins@example.com`. // - // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique - // identifier) representing a user that has been recently deleted. - // For - // example, `alice@example.com?uid=123456789012345678901`. If the - // user is - // recovered, this value reverts to `user:{emailid}` and the - // recovered user + // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + // identifier) representing a user that has been recently deleted. For + // example, `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered user // retains the role in the binding. // - // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus - // unique identifier) representing a service account that has been - // recently + // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a service account that has been recently // deleted. For example, - // - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account - // retains the + // `serviceAccount:{emailid}` and the undeleted service account retains the // role in the binding. // - // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus - // unique + // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique // identifier) representing a Google group that has been recently - // deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If - // the group is recovered, this value reverts to `group:{emailid}` - // and the + // deleted. For example, `admins@example.com?uid=123456789012345678901`. If + // the group is recovered, this value reverts to `group:{emailid}` and the // recovered group retains the role in the binding. // // - // * `domain:{domain}`: The G Suite domain (primary) that represents all - // the - // users of that domain. For example, `google.com` or - // `example.com`. + // * `domain:{domain}`: The G Suite domain (primary) that represents all the + // users of that domain. For example, `google.com` or `example.com`. // // Members []string `json:"members,omitempty"` - // Role: Role that is assigned to `members`. // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1__Policy: An Identity and Access Management (IAM) policy, -// which specifies access +// GoogleIamV1__Policy: An Identity and Access Management (IAM) policy, which +// specifies access // controls for Google Cloud resources. // // A `Policy` is a collection of `bindings`. A `binding` binds one or // more // `members` to a single `role`. Members can be user accounts, service // accounts, -// Google groups, and domains (such as G Suite). A `role` is a named -// list of +// Google groups, and domains (such as G Suite). A `role` is a named list +// of // permissions; each `role` can be an IAM predefined role or a // user-created // custom role. @@ -275,18 +268,16 @@ func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { // "user:mike@example.com", // "group:admins@example.com", // "domain:google.com", -// -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" -// -// ] -// }, -// { -// "role": "roles/resourcemanager.organizationViewer", -// "members": ["user:eve@example.com"], -// "condition": { -// "title": "expirable access", -// "description": "Does not grant access after Sep 2020", -// "expression": "request.time < +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" +// ] +// }, +// { +// "role": "roles/resourcemanager.organizationViewer", +// "members": ["user:eve@example.com"], +// "condition": { +// "title": "expirable access", +// "description": "Does not grant access after Sep 2020", +// "expression": "request.time < // // timestamp('2020-10-01T00:00:00.000Z')", // @@ -312,34 +303,29 @@ func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { // condition: // title: expirable access // description: Does not grant access after Sep 2020 -// expression: request.time < -// -// timestamp('2020-10-01T00:00:00.000Z') -// - etag: BwWWja0YfJA= -// - version: 3 +// expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +// - etag: BwWWja0YfJA= +// - version: 3 // // For a description of IAM and its features, see the -// [IAM documentation](https://cloud.google.com/iam/docs/). +// IAM documentation (https://cloud.google.com/iam/docs/). type GoogleIamV1__Policy struct { // Bindings: Associates a list of `members` to a `role`. Optionally, may // specify a - // `condition` that determines how and when the `bindings` are applied. - // Each + // `condition` that determines how and when the `bindings` are applied. Each // of the `bindings` must contain at least one member. Bindings []*GoogleIamV1__Binding `json:"bindings,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to // help - // prevent simultaneous updates of a policy from overwriting each - // other. + // prevent simultaneous updates of a policy from overwriting each other. // It is strongly suggested that systems make use of the `etag` in // the // read-modify-write cycle to perform policy updates in order to avoid // race // conditions: An `etag` is returned in the response to `getIamPolicy`, // and - // systems are expected to put that etag in the request to - // `setIamPolicy` to + // systems are expected to put that etag in the request to `setIamPolicy` + // to // ensure that their change will be applied to the same version of the // policy. // @@ -347,11 +333,10 @@ type GoogleIamV1__Policy struct { // field // whenever you call `setIamPolicy`. If you omit this field, then IAM // allows - // you to overwrite a version `3` policy with a version `1` policy, and - // all of + // you to overwrite a version `3` policy with a version `1` policy, and all + // of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - // Version: Specifies the format of the policy. // // Valid values are `0`, `1`, and `3`. Requests that specify an invalid @@ -365,152 +350,121 @@ type GoogleIamV1__Policy struct { // * Getting a policy that includes a conditional role binding // * Adding a conditional role binding to a policy // * Changing a conditional role binding in a policy - // * Removing any role binding, with or without a condition, from a - // policy + // * Removing any role binding, with or without a condition, from a policy // that includes conditions // // **Important:** If you use IAM Conditions, you must include the `etag` // field // whenever you call `setIamPolicy`. If you omit this field, then IAM // allows - // you to overwrite a version `3` policy with a version `1` policy, and - // all of + // you to overwrite a version `3` policy with a version `1` policy, and all + // of // the conditions in the version `3` policy are lost. // - // If a policy does not include any conditions, operations on that - // policy may + // If a policy does not include any conditions, operations on that policy + // may // specify any valid version or leave the field unset. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Bindings") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__Policy) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__Policy) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1__SetIamPolicyRequest: Request message for `SetIamPolicy` -// method. +// GoogleIamV1__SetIamPolicyRequest: Request message for `SetIamPolicy` method. type GoogleIamV1__SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of // the policy is limited to a few 10s of KB. An empty policy is a - // valid policy but certain Cloud Platform services (such as - // Projects) + // valid policy but certain Cloud Platform services (such as Projects) // might reject them. Policy *GoogleIamV1__Policy `json:"policy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1__TestIamPermissionsRequest: Request message for // `TestIamPermissions` method. type GoogleIamV1__TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with - // wildcards (such as '*' or 'storage.*') are not allowed. For - // more + // Permissions: The set of permissions to check for the `resource`. Permissions + // with + // wildcards (such as '*' or 'storage.*') are not allowed. For more // information see - // [IAM - // Overview](https://cloud.google.com/iam/docs/overview#permissions). + // IAM Overview (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1__TestIamPermissionsResponse: Response message for // `TestIamPermissions` method. type GoogleIamV1__TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is // allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleType__Expr: Represents an expression text. Example: @@ -519,11 +473,10 @@ func (s *GoogleIamV1__TestIamPermissionsResponse) MarshalJSON() ([]byte, error) // description: "Determines whether the request has a user account" // expression: "size(request.user) > 0" type GoogleType__Expr struct { - // Description: An optional description of the expression. This is a - // longer text which + // Description: An optional description of the expression. This is a longer + // text which // describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - // Expression: Textual representation of an expression in // Common Expression Language syntax. // @@ -531,44 +484,34 @@ type GoogleType__Expr struct { // which // well-known feature set of CEL is supported. Expression string `json:"expression,omitempty"` - - // Location: An optional string indicating the location of the - // expression for error + // Location: An optional string indicating the location of the expression for + // error // reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - // Title: An optional title for the expression, i.e. a short string // describing // its purpose. This can be used e.g. in UIs which allow to enter // the // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleType__Expr) MarshalJSON() ([]byte, error) { +func (s GoogleType__Expr) MarshalJSON() ([]byte, error) { type NoMethod GoogleType__Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "servicebroker.getIamPolicy": - type V1GetIamPolicyCall struct { s *Service resource string @@ -582,6 +525,10 @@ type V1GetIamPolicyCall struct { // Returns an empty policy if the resource exists and does not have a // policy // set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *V1Service) GetIamPolicy(resource string) *V1GetIamPolicyCall { c := &V1GetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -592,12 +539,12 @@ func (r *V1Service) GetIamPolicy(resource string) *V1GetIamPolicyCall { // "options.requestedPolicyVersion": The policy format version to be // returned. // -// Valid values are 0, 1, and 3. Requests specifying an invalid value -// will be +// Valid values are 0, 1, and 3. Requests specifying an invalid value will +// be // rejected. // -// Requests for policies with any conditional bindings must specify -// version 3. +// Requests for policies with any conditional bindings must specify version +// 3. // Policies without any conditional bindings may specify any valid value // or // leave the field unset. @@ -607,33 +554,29 @@ func (c *V1GetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolic } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1GetIamPolicyCall) Fields(s ...googleapi.Field) *V1GetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *V1GetIamPolicyCall) IfNoneMatch(entityTag string) *V1GetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1GetIamPolicyCall) Context(ctx context.Context) *V1GetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1GetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -642,12 +585,7 @@ func (c *V1GetIamPolicyCall) Header() http.Header { } func (c *V1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -664,16 +602,15 @@ func (c *V1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.getIamPolicy" call. -// Exactly one of *GoogleIamV1__Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *V1GetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -681,17 +618,17 @@ func (c *V1GetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Pol if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1__Policy{ ServerResponse: googleapi.ServerResponse{ @@ -704,42 +641,8 @@ func (c *V1GetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Pol return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", - // "flatPath": "v1/{v1Id}:getIamPolicy", - // "httpMethod": "GET", - // "id": "servicebroker.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.\n\nValid values are 0, 1, and 3. Requests specifying an invalid value will be\nrejected.\n\nRequests for policies with any conditional bindings must specify version 3.\nPolicies without any conditional bindings may specify any valid value or\nleave the field unset.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^.+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:getIamPolicy", - // "response": { - // "$ref": "GoogleIamV1__Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } -// method id "servicebroker.setIamPolicy": - type V1SetIamPolicyCall struct { s *Service resource string @@ -749,12 +652,15 @@ type V1SetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any // existing policy. // -// Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and -// PERMISSION_DENIED +// Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *V1Service) SetIamPolicy(resource string, googleiamv1__setiampolicyrequest *GoogleIamV1__SetIamPolicyRequest) *V1SetIamPolicyCall { c := &V1SetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -763,23 +669,21 @@ func (r *V1Service) SetIamPolicy(resource string, googleiamv1__setiampolicyreque } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1SetIamPolicyCall) Fields(s ...googleapi.Field) *V1SetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1SetIamPolicyCall) Context(ctx context.Context) *V1SetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1SetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -788,18 +692,12 @@ func (c *V1SetIamPolicyCall) Header() http.Header { } func (c *V1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1__setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") @@ -812,16 +710,15 @@ func (c *V1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.setIamPolicy" call. -// Exactly one of *GoogleIamV1__Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *V1SetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -829,17 +726,17 @@ func (c *V1SetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Pol if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1__Policy{ ServerResponse: googleapi.ServerResponse{ @@ -852,39 +749,8 @@ func (c *V1SetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Pol return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.\n\nCan return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED", - // "flatPath": "v1/{v1Id}:setIamPolicy", - // "httpMethod": "POST", - // "id": "servicebroker.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^.+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1__SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "GoogleIamV1__Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } -// method id "servicebroker.testIamPermissions": - type V1TestIamPermissionsCall struct { s *Service resource string @@ -894,8 +760,8 @@ type V1TestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. @@ -905,6 +771,10 @@ type V1TestIamPermissionsCall struct { // UIs and command-line tools, not for authorization checking. This // operation // may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *V1Service) TestIamPermissions(resource string, googleiamv1__testiampermissionsrequest *GoogleIamV1__TestIamPermissionsRequest) *V1TestIamPermissionsCall { c := &V1TestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -913,23 +783,21 @@ func (r *V1Service) TestIamPermissions(resource string, googleiamv1__testiamperm } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1TestIamPermissionsCall) Fields(s ...googleapi.Field) *V1TestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1TestIamPermissionsCall) Context(ctx context.Context) *V1TestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1TestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -938,18 +806,12 @@ func (c *V1TestIamPermissionsCall) Header() http.Header { } func (c *V1TestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1__testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") @@ -962,17 +824,15 @@ func (c *V1TestIamPermissionsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.testIamPermissions" call. -// Exactly one of *GoogleIamV1__TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleIamV1__TestIamPermissionsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1__TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V1TestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -980,17 +840,17 @@ func (c *V1TestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1__TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1003,33 +863,4 @@ func (c *V1TestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.", - // "flatPath": "v1/{v1Id}:testIamPermissions", - // "httpMethod": "POST", - // "id": "servicebroker.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^.+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "GoogleIamV1__TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "GoogleIamV1__TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/servicebroker/v1alpha1/servicebroker-gen.go b/servicebroker/v1alpha1/servicebroker-gen.go index 1cd4add1721..e5129ed742a 100644 --- a/servicebroker/v1alpha1/servicebroker-gen.go +++ b/servicebroker/v1alpha1/servicebroker-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // servicebrokerService, err := servicebroker.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // servicebrokerService, err := servicebroker.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // servicebrokerService, err := servicebroker.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package servicebroker // import "google.golang.org/api/servicebroker/v1alpha1" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,11 +83,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "servicebroker:v1alpha1" const apiName = "servicebroker" const apiVersion = "v1alpha1" const basePath = "https://servicebroker.googleapis.com/" +const basePathTemplate = "https://servicebroker.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -82,11 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -253,156 +274,121 @@ type GoogleCloudServicebrokerV1alpha1__Binding struct { // associated with // the binding to be created. BindResource googleapi.RawMessage `json:"bind_resource,omitempty"` - - // BindingId: The id of the binding. Must be unique within GCP - // project. + // BindingId: The id of the binding. Must be unique within GCP project. // Maximum length is 64, GUID recommended. // Required. BindingId string `json:"binding_id,omitempty"` - // CreateTime: Output only. Timestamp for when the binding was created. CreateTime string `json:"createTime,omitempty"` - // Parameters: Configuration options for the service binding. Parameters googleapi.RawMessage `json:"parameters,omitempty"` - // PlanId: The ID of the plan. See `Service` and `Plan` resources for // details. // Maximum length is 64, GUID recommended. // Required. PlanId string `json:"plan_id,omitempty"` - // ServiceId: The id of the service. Must be a valid identifier of a // service // contained in the list from a `ListServices()` call. // Maximum length is 64, GUID recommended. // Required. ServiceId string `json:"service_id,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindResource") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BindResource") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BindResource") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__Binding) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__Binding) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__CreateBindingResponse: Response for -// the `CreateBinding()` method. +// GoogleCloudServicebrokerV1alpha1__CreateBindingResponse: Response for the +// `CreateBinding()` method. type GoogleCloudServicebrokerV1alpha1__CreateBindingResponse struct { // Credentials: Credentials to use the binding. Credentials googleapi.RawMessage `json:"credentials,omitempty"` - - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Operation: If broker executes operation asynchronously, this is the // operation ID that // can be polled to check the completion status of said operation. - // This broker always executes all create/delete operations - // asynchronously. + // This broker always executes all create/delete operations asynchronously. Operation string `json:"operation,omitempty"` - - // RouteServiceUrl: A URL to which the platform may proxy requests for - // the address sent with + // RouteServiceUrl: A URL to which the platform may proxy requests for the + // address sent with // bind_resource.route RouteServiceUrl string `json:"route_service_url,omitempty"` - // SyslogDrainUrl: From where to read system logs. SyslogDrainUrl string `json:"syslog_drain_url,omitempty"` - // VolumeMounts: An array of configuration for mounting volumes. VolumeMounts []googleapi.RawMessage `json:"volume_mounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Credentials") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Credentials") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Credentials") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__CreateBindingResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__CreateBindingResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__CreateBindingResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse: -// Response for the `CreateServiceInstance()` method. +// GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse: Response +// for the `CreateServiceInstance()` method. type GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Operation: If broker executes operation asynchronously, this is the // operation ID that // can be polled to check the completion status of said operation. // This broker always will return a non-empty operation on success. Operation string `json:"operation,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudServicebrokerV1alpha1__DashboardClient: Message containing @@ -410,192 +396,150 @@ func (s *GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse) Marsha type GoogleCloudServicebrokerV1alpha1__DashboardClient struct { // Id: The id of the Oauth client that the dashboard will use. Id string `json:"id,omitempty"` - // RedirectUri: A URI for the service dashboard. - // Validated by the OAuth token server when the dashboard requests a - // token. + // Validated by the OAuth token server when the dashboard requests a token. RedirectUri string `json:"redirect_uri,omitempty"` - // Secret: A secret for the dashboard client. Secret string `json:"secret,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__DashboardClient) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__DashboardClient) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__DashboardClient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse: Response for -// the `DeleteBinding()` method. +// GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse: Response for the +// `DeleteBinding()` method. type GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Operation: If broker executes operation asynchronously, this is the // operation ID that // can be polled to check the completion status of said operation. Operation string `json:"operation,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse: -// Response for the `DeleteServiceInstance()` method. +// GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse: Response +// for the `DeleteServiceInstance()` method. type GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Operation: If broker executes operation asynchronously, this is the // operation ID that // can be polled to check the completion status of said operation. Operation string `json:"operation,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__GetBindingResponse: Response for -// the `GetBinding()` method. +// GoogleCloudServicebrokerV1alpha1__GetBindingResponse: Response for the +// `GetBinding()` method. type GoogleCloudServicebrokerV1alpha1__GetBindingResponse struct { // Credentials: Credentials to use the binding. Credentials googleapi.RawMessage `json:"credentials,omitempty"` - - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - - // RouteServiceUrl: A URL to which the platform may proxy requests for - // the address sent with + // RouteServiceUrl: A URL to which the platform may proxy requests for the + // address sent with // bind_resource.route RouteServiceUrl string `json:"route_service_url,omitempty"` - // SyslogDrainUrl: From where to read system logs. SyslogDrainUrl string `json:"syslog_drain_url,omitempty"` - // VolumeMounts: An array of configuration for mounting volumes. VolumeMounts []googleapi.RawMessage `json:"volume_mounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Credentials") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Credentials") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Credentials") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__GetBindingResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__GetBindingResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__GetBindingResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__ListBindingsResponse: The response -// for the `ListBindings()` method. +// GoogleCloudServicebrokerV1alpha1__ListBindingsResponse: The response for the +// `ListBindings()` method. type GoogleCloudServicebrokerV1alpha1__ListBindingsResponse struct { // Bindings: The list of the bindings in the instance. Bindings []*GoogleCloudServicebrokerV1alpha1__Binding `json:"bindings,omitempty"` - - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - - // NextPageToken: This token allows you to get the next page of results - // for list requests. + // NextPageToken: This token allows you to get the next page of results for + // list requests. // If the number of results is larger than `pageSize`, use the // `nextPageToken` // as a value for the query parameter `pageToken` in the next list @@ -605,46 +549,37 @@ type GoogleCloudServicebrokerV1alpha1__ListBindingsResponse struct { // paging through the results NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Bindings") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__ListBindingsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__ListBindingsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__ListBindingsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__ListCatalogResponse: Response -// message for the `ListCatalog()` method. +// GoogleCloudServicebrokerV1alpha1__ListCatalogResponse: Response message for +// the `ListCatalog()` method. type GoogleCloudServicebrokerV1alpha1__ListCatalogResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - - // NextPageToken: This token allows you to get the next page of results - // for list requests. + // NextPageToken: This token allows you to get the next page of results for + // list requests. // If the number of results is larger than `pageSize`, use the // `nextPageToken` // as a value for the query parameter `pageToken` in the next list @@ -653,53 +588,42 @@ type GoogleCloudServicebrokerV1alpha1__ListCatalogResponse struct { // continue // paging through the results NextPageToken string `json:"nextPageToken,omitempty"` - // Services: The services available for the requested GCP project. Services []*GoogleCloudServicebrokerV1alpha1__Service `json:"services,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__ListCatalogResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__ListCatalogResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__ListCatalogResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse: The -// response for the `ListServiceInstances()` method. +// GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse: The response +// for the `ListServiceInstances()` method. type GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Instances: The list of the instances in the broker. Instances []*GoogleCloudServicebrokerV1alpha1__ServiceInstance `json:"instances,omitempty"` - - // NextPageToken: This token allows you to get the next page of results - // for list requests. + // NextPageToken: This token allows you to get the next page of results for + // list requests. // If the number of results is larger than `pageSize`, use the // `nextPageToken` // as a value for the query parameter `pageToken` in the next list @@ -709,31 +633,24 @@ type GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse struct { // paging through the results NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudServicebrokerV1alpha1__Operation: Describes a long running @@ -741,131 +658,102 @@ func (s *GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse) Marshal type GoogleCloudServicebrokerV1alpha1__Operation struct { // Description: Optional description of the Operation state. Description string `json:"description,omitempty"` - // State: The state of the operation. // Valid values are: "in progress", "succeeded", and "failed". State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__Operation) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__Operation) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__Plan: Plan message describes a -// Service Plan. +// GoogleCloudServicebrokerV1alpha1__Plan: Plan message describes a Service +// Plan. type GoogleCloudServicebrokerV1alpha1__Plan struct { // Bindable: Specifies whether instances of the service can be bound to // applications. // If not specified, `Service.bindable` will be presumed. Bindable bool `json:"bindable,omitempty"` - // Description: Textual description of the plan. Optional. Description string `json:"description,omitempty"` - // Free: Whether the service is free. Free bool `json:"free,omitempty"` - // Id: ID is a globally unique identifier used to uniquely identify the // plan. // User must make no presumption about the format of this field. Id string `json:"id,omitempty"` - // Metadata: A list of metadata for a service offering. // Metadata is an arbitrary JSON object. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: User friendly name of the plan. // The name must be globally unique within GCP project. // Note, which is different from ("This must be globally unique within // a // platform marketplace"). Name string `json:"name,omitempty"` - - // Schemas: Schema definitions for service instances and bindings for - // the plan. + // Schemas: Schema definitions for service instances and bindings for the plan. Schemas googleapi.RawMessage `json:"schemas,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bindable") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindable") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindable") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__Plan) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__Plan) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__Plan - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__Service: The resource model mostly -// follows the Open Service Broker API, as +// GoogleCloudServicebrokerV1alpha1__Service: The resource model mostly follows +// the Open Service Broker API, as // described // here: -// https://github.com/openservicebrokerapi/servicebroker/blob/maste -// r/_spec.md +// https://github.com/openservicebrokerapi/servicebroker/blob/master/_spec.md // Though due to Google Specifics it has additional optional fields. type GoogleCloudServicebrokerV1alpha1__Service struct { // Bindable: Specifies whether instances of the service can be bound to // applications. // Required. Bindable bool `json:"bindable,omitempty"` - - // BindingRetrievable: Whether the service provides an endpoint to get - // service bindings. + // BindingRetrievable: Whether the service provides an endpoint to get service + // bindings. BindingRetrievable bool `json:"binding_retrievable,omitempty"` - // DashboardClient: Information to activate Dashboard SSO feature. DashboardClient *GoogleCloudServicebrokerV1alpha1__DashboardClient `json:"dashboard_client,omitempty"` - // Description: Textual description of the service. Required. Description string `json:"description,omitempty"` - // Id: ID is a globally unique identifier used to uniquely identify the // service. // ID is an opaque string. Id string `json:"id,omitempty"` - - // InstanceRetrievable: Whether the service provides an endpoint to get - // service instances. + // InstanceRetrievable: Whether the service provides an endpoint to get service + // instances. InstanceRetrievable bool `json:"instance_retrievable,omitempty"` - // Metadata: A list of metadata for a service offering. // Metadata is an arbitrary JSON object. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: User friendly service name. // Name must match [a-z0-9]+ regexp. // The name must be globally unique within GCP project. @@ -874,176 +762,138 @@ type GoogleCloudServicebrokerV1alpha1__Service struct { // platform marketplace"). // Required. Name string `json:"name,omitempty"` - - // PlanUpdateable: Whether the service supports upgrade/downgrade for - // some plans. + // PlanUpdateable: Whether the service supports upgrade/downgrade for some + // plans. PlanUpdateable bool `json:"plan_updateable,omitempty"` - // Plans: A list of plans for this service. // At least one plan is required. Plans []*GoogleCloudServicebrokerV1alpha1__Plan `json:"plans,omitempty"` - // Tags: Tags provide a flexible mechanism to expose a classification, // attribute, or // base technology of a service. Tags []string `json:"tags,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bindable") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindable") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindable") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__Service) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__Service) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__Service - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__ServiceInstance: Message describing -// inputs to Provision and Update Service instance requests. +// GoogleCloudServicebrokerV1alpha1__ServiceInstance: Message describing inputs +// to Provision and Update Service instance requests. type GoogleCloudServicebrokerV1alpha1__ServiceInstance struct { - // Context: Platform specific contextual information under which the - // service instance - // is to be provisioned. This replaces organization_guid and - // space_guid. + // Context: Platform specific contextual information under which the service + // instance + // is to be provisioned. This replaces organization_guid and space_guid. // But can also contain anything. // Currently only used for logging context information. Context googleapi.RawMessage `json:"context,omitempty"` - // CreateTime: Output only. Timestamp for when the instance was created. CreateTime string `json:"createTime,omitempty"` - - // DeploymentName: Output only. Name of the Deployment Manager - // deployment used for provisioning of this + // DeploymentName: Output only. Name of the Deployment Manager deployment used + // for provisioning of this // service instance. DeploymentName string `json:"deploymentName,omitempty"` - // InstanceId: The id of the service instance. Must be unique within GCP // project. // Maximum length is 64, GUID recommended. // Required. InstanceId string `json:"instance_id,omitempty"` - - // OrganizationGuid: The platform GUID for the organization under which - // the service is to be + // OrganizationGuid: The platform GUID for the organization under which the + // service is to be // provisioned. // Required. OrganizationGuid string `json:"organization_guid,omitempty"` - - // Parameters: Configuration options for the service - // instance. + // Parameters: Configuration options for the service instance. // Parameters is JSON object serialized to string. Parameters googleapi.RawMessage `json:"parameters,omitempty"` - // PlanId: The ID of the plan. See `Service` and `Plan` resources for // details. // Maximum length is 64, GUID recommended. // Required. PlanId string `json:"plan_id,omitempty"` - - // PreviousValues: Used only in UpdateServiceInstance request to - // optionally specify previous + // PreviousValues: Used only in UpdateServiceInstance request to optionally + // specify previous // fields. PreviousValues googleapi.RawMessage `json:"previous_values,omitempty"` - // ResourceName: Output only. The resource name of the instance, // e.g. - // projects/project_id/brokers/broker_id/service_instances/instance_ - // id + // projects/project_id/brokers/broker_id/service_instances/instance_id ResourceName string `json:"resourceName,omitempty"` - // ServiceId: The id of the service. Must be a valid identifier of a // service // contained in the list from a `ListServices()` call. // Maximum length is 64, GUID recommended. // Required. ServiceId string `json:"service_id,omitempty"` - // SpaceGuid: The identifier for the project space within the platform // organization. // Required. SpaceGuid string `json:"space_guid,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Context") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Context") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Context") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Context") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__ServiceInstance) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__ServiceInstance) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__ServiceInstance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse: -// Response for the `UpdateServiceInstance()` method. +// GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse: Response +// for the `UpdateServiceInstance()` method. type GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Operation: If broker executes operation asynchronously, this is the // operation ID that // can be polled to check the completion status of said operation. Operation string `json:"operation,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1__Binding: Associates `members` with a `role`. @@ -1055,111 +905,83 @@ type GoogleIamV1__Binding struct { // examined // independently. Condition *GoogleType__Expr `json:"condition,omitempty"` - - // Members: Specifies the identities requesting access for a Cloud - // Platform resource. + // Members: Specifies the identities requesting access for a Cloud Platform + // resource. // `members` can have the following values: // // * `allUsers`: A special identifier that represents anyone who is // on the internet; with or without a Google account. // - // * `allAuthenticatedUsers`: A special identifier that represents - // anyone - // who is authenticated with a Google account or a service - // account. + // * `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. // - // * `user:{emailid}`: An email address that represents a specific - // Google + // * `user:{emailid}`: An email address that represents a specific Google // account. For example, `alice@example.com` . // // - // * `serviceAccount:{emailid}`: An email address that represents a - // service - // account. For example, - // `my-other-app@appspot.gserviceaccount.com`. + // * `serviceAccount:{emailid}`: An email address that represents a service + // account. For example, `my-other-app@appspot.gserviceaccount.com`. // - // * `group:{emailid}`: An email address that represents a Google - // group. + // * `group:{emailid}`: An email address that represents a Google group. // For example, `admins@example.com`. // - // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique - // identifier) representing a user that has been recently deleted. - // For - // example, `alice@example.com?uid=123456789012345678901`. If the - // user is - // recovered, this value reverts to `user:{emailid}` and the - // recovered user + // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + // identifier) representing a user that has been recently deleted. For + // example, `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered user // retains the role in the binding. // - // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus - // unique identifier) representing a service account that has been - // recently + // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a service account that has been recently // deleted. For example, - // - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account - // retains the + // `serviceAccount:{emailid}` and the undeleted service account retains the // role in the binding. // - // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus - // unique + // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique // identifier) representing a Google group that has been recently - // deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If - // the group is recovered, this value reverts to `group:{emailid}` - // and the + // deleted. For example, `admins@example.com?uid=123456789012345678901`. If + // the group is recovered, this value reverts to `group:{emailid}` and the // recovered group retains the role in the binding. // // - // * `domain:{domain}`: The G Suite domain (primary) that represents all - // the - // users of that domain. For example, `google.com` or - // `example.com`. + // * `domain:{domain}`: The G Suite domain (primary) that represents all the + // users of that domain. For example, `google.com` or `example.com`. // // Members []string `json:"members,omitempty"` - // Role: Role that is assigned to `members`. // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1__Policy: An Identity and Access Management (IAM) policy, -// which specifies access +// GoogleIamV1__Policy: An Identity and Access Management (IAM) policy, which +// specifies access // controls for Google Cloud resources. // // A `Policy` is a collection of `bindings`. A `binding` binds one or // more // `members` to a single `role`. Members can be user accounts, service // accounts, -// Google groups, and domains (such as G Suite). A `role` is a named -// list of +// Google groups, and domains (such as G Suite). A `role` is a named list +// of // permissions; each `role` can be an IAM predefined role or a // user-created // custom role. @@ -1182,18 +1004,16 @@ func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { // "user:mike@example.com", // "group:admins@example.com", // "domain:google.com", -// -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" -// -// ] -// }, -// { -// "role": "roles/resourcemanager.organizationViewer", -// "members": ["user:eve@example.com"], -// "condition": { -// "title": "expirable access", -// "description": "Does not grant access after Sep 2020", -// "expression": "request.time < +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" +// ] +// }, +// { +// "role": "roles/resourcemanager.organizationViewer", +// "members": ["user:eve@example.com"], +// "condition": { +// "title": "expirable access", +// "description": "Does not grant access after Sep 2020", +// "expression": "request.time < // // timestamp('2020-10-01T00:00:00.000Z')", // @@ -1219,34 +1039,29 @@ func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { // condition: // title: expirable access // description: Does not grant access after Sep 2020 -// expression: request.time < -// -// timestamp('2020-10-01T00:00:00.000Z') -// - etag: BwWWja0YfJA= -// - version: 3 +// expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +// - etag: BwWWja0YfJA= +// - version: 3 // // For a description of IAM and its features, see the -// [IAM documentation](https://cloud.google.com/iam/docs/). +// IAM documentation (https://cloud.google.com/iam/docs/). type GoogleIamV1__Policy struct { // Bindings: Associates a list of `members` to a `role`. Optionally, may // specify a - // `condition` that determines how and when the `bindings` are applied. - // Each + // `condition` that determines how and when the `bindings` are applied. Each // of the `bindings` must contain at least one member. Bindings []*GoogleIamV1__Binding `json:"bindings,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to // help - // prevent simultaneous updates of a policy from overwriting each - // other. + // prevent simultaneous updates of a policy from overwriting each other. // It is strongly suggested that systems make use of the `etag` in // the // read-modify-write cycle to perform policy updates in order to avoid // race // conditions: An `etag` is returned in the response to `getIamPolicy`, // and - // systems are expected to put that etag in the request to - // `setIamPolicy` to + // systems are expected to put that etag in the request to `setIamPolicy` + // to // ensure that their change will be applied to the same version of the // policy. // @@ -1254,11 +1069,10 @@ type GoogleIamV1__Policy struct { // field // whenever you call `setIamPolicy`. If you omit this field, then IAM // allows - // you to overwrite a version `3` policy with a version `1` policy, and - // all of + // you to overwrite a version `3` policy with a version `1` policy, and all + // of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - // Version: Specifies the format of the policy. // // Valid values are `0`, `1`, and `3`. Requests that specify an invalid @@ -1272,152 +1086,121 @@ type GoogleIamV1__Policy struct { // * Getting a policy that includes a conditional role binding // * Adding a conditional role binding to a policy // * Changing a conditional role binding in a policy - // * Removing any role binding, with or without a condition, from a - // policy + // * Removing any role binding, with or without a condition, from a policy // that includes conditions // // **Important:** If you use IAM Conditions, you must include the `etag` // field // whenever you call `setIamPolicy`. If you omit this field, then IAM // allows - // you to overwrite a version `3` policy with a version `1` policy, and - // all of + // you to overwrite a version `3` policy with a version `1` policy, and all + // of // the conditions in the version `3` policy are lost. // - // If a policy does not include any conditions, operations on that - // policy may + // If a policy does not include any conditions, operations on that policy + // may // specify any valid version or leave the field unset. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Bindings") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__Policy) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__Policy) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1__SetIamPolicyRequest: Request message for `SetIamPolicy` -// method. +// GoogleIamV1__SetIamPolicyRequest: Request message for `SetIamPolicy` method. type GoogleIamV1__SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of // the policy is limited to a few 10s of KB. An empty policy is a - // valid policy but certain Cloud Platform services (such as - // Projects) + // valid policy but certain Cloud Platform services (such as Projects) // might reject them. Policy *GoogleIamV1__Policy `json:"policy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1__TestIamPermissionsRequest: Request message for // `TestIamPermissions` method. type GoogleIamV1__TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with - // wildcards (such as '*' or 'storage.*') are not allowed. For - // more + // Permissions: The set of permissions to check for the `resource`. Permissions + // with + // wildcards (such as '*' or 'storage.*') are not allowed. For more // information see - // [IAM - // Overview](https://cloud.google.com/iam/docs/overview#permissions). + // IAM Overview (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1__TestIamPermissionsResponse: Response message for // `TestIamPermissions` method. type GoogleIamV1__TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is // allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleType__Expr: Represents an expression text. Example: @@ -1426,11 +1209,10 @@ func (s *GoogleIamV1__TestIamPermissionsResponse) MarshalJSON() ([]byte, error) // description: "Determines whether the request has a user account" // expression: "size(request.user) > 0" type GoogleType__Expr struct { - // Description: An optional description of the expression. This is a - // longer text which + // Description: An optional description of the expression. This is a longer + // text which // describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - // Expression: Textual representation of an expression in // Common Expression Language syntax. // @@ -1438,44 +1220,34 @@ type GoogleType__Expr struct { // which // well-known feature set of CEL is supported. Expression string `json:"expression,omitempty"` - - // Location: An optional string indicating the location of the - // expression for error + // Location: An optional string indicating the location of the expression for + // error // reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - // Title: An optional title for the expression, i.e. a short string // describing // its purpose. This can be used e.g. in UIs which allow to enter // the // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleType__Expr) MarshalJSON() ([]byte, error) { +func (s GoogleType__Expr) MarshalJSON() ([]byte, error) { type NoMethod GoogleType__Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "servicebroker.projects.brokers.instances.get": - type ProjectsBrokersInstancesGetCall struct { s *Service name string @@ -1488,6 +1260,8 @@ type ProjectsBrokersInstancesGetCall struct { // Get: Gets the given service instance from the system. // This API is an extension and not part of the OSB spec. // Hence the path is a standard Google API URL. +// +// - name: The resource name of the instance to return. func (r *ProjectsBrokersInstancesService) Get(name string) *ProjectsBrokersInstancesGetCall { c := &ProjectsBrokersInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1495,33 +1269,29 @@ func (r *ProjectsBrokersInstancesService) Get(name string) *ProjectsBrokersInsta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersInstancesGetCall) Context(ctx context.Context) *ProjectsBrokersInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1530,12 +1300,7 @@ func (c *ProjectsBrokersInstancesGetCall) Header() http.Header { } func (c *ProjectsBrokersInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1552,18 +1317,15 @@ func (c *ProjectsBrokersInstancesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.instances.get" call. -// Exactly one of *GoogleCloudServicebrokerV1alpha1__ServiceInstance or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1alpha1__ServiceInstance.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__ServiceInstance.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__ServiceInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1571,17 +1333,17 @@ func (c *ProjectsBrokersInstancesGetCall) Do(opts ...googleapi.CallOption) (*Goo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__ServiceInstance{ ServerResponse: googleapi.ServerResponse{ @@ -1594,35 +1356,7 @@ func (c *ProjectsBrokersInstancesGetCall) Do(opts ...googleapi.CallOption) (*Goo return nil, err } return ret, nil - // { - // "description": "Gets the given service instance from the system.\nThis API is an extension and not part of the OSB spec.\nHence the path is a standard Google API URL.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/instances/{instancesId}", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.instances.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the instance to return.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__ServiceInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.instances.service_bindings.list": +} type ProjectsBrokersInstancesServiceBindingsListCall struct { s *Service @@ -1634,14 +1368,19 @@ type ProjectsBrokersInstancesServiceBindingsListCall struct { } // List: Lists all the bindings in the instance +// +// - parent: Parent must +// match +// +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. func (r *ProjectsBrokersInstancesServiceBindingsService) List(parent string) *ProjectsBrokersInstancesServiceBindingsListCall { c := &ProjectsBrokersInstancesServiceBindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": Specifies the number -// of results to return per page. If there are fewer +// PageSize sets the optional parameter "pageSize": Specifies the number of +// results to return per page. If there are fewer // elements than the specified number, returns all elements. // // If unset or 0, all the results will be returned. @@ -1650,8 +1389,8 @@ func (c *ProjectsBrokersInstancesServiceBindingsListCall) PageSize(pageSize int6 return c } -// PageToken sets the optional parameter "pageToken": Specifies a page -// token to use. Set `pageToken` to a `nextPageToken` +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to a `nextPageToken` // returned by a previous list request to get the next page of results. func (c *ProjectsBrokersInstancesServiceBindingsListCall) PageToken(pageToken string) *ProjectsBrokersInstancesServiceBindingsListCall { c.urlParams_.Set("pageToken", pageToken) @@ -1659,33 +1398,29 @@ func (c *ProjectsBrokersInstancesServiceBindingsListCall) PageToken(pageToken st } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersInstancesServiceBindingsListCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesServiceBindingsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersInstancesServiceBindingsListCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesServiceBindingsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersInstancesServiceBindingsListCall) Context(ctx context.Context) *ProjectsBrokersInstancesServiceBindingsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersInstancesServiceBindingsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1694,12 +1429,7 @@ func (c *ProjectsBrokersInstancesServiceBindingsListCall) Header() http.Header { } func (c *ProjectsBrokersInstancesServiceBindingsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1716,19 +1446,17 @@ func (c *ProjectsBrokersInstancesServiceBindingsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.instances.service_bindings.list" call. -// Exactly one of -// *GoogleCloudServicebrokerV1alpha1__ListBindingsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudServicebrokerV1alpha1__ListBindingsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__ListBindingsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersInstancesServiceBindingsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__ListBindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1736,17 +1464,17 @@ func (c *ProjectsBrokersInstancesServiceBindingsListCall) Do(opts ...googleapi.C if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__ListBindingsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1759,43 +1487,6 @@ func (c *ProjectsBrokersInstancesServiceBindingsListCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Lists all the bindings in the instance", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/instances/{instancesId}/service_bindings", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.instances.service_bindings.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. If unset or 0, all the results will be returned.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/service_bindings", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__ListBindingsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1803,7 +1494,7 @@ func (c *ProjectsBrokersInstancesServiceBindingsListCall) Do(opts ...googleapi.C // The provided context supersedes any context provided to the Context method. func (c *ProjectsBrokersInstancesServiceBindingsListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1alpha1__ListBindingsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1819,8 +1510,6 @@ func (c *ProjectsBrokersInstancesServiceBindingsListCall) Pages(ctx context.Cont } } -// method id "servicebroker.projects.brokers.service_instances.list": - type ProjectsBrokersServiceInstancesListCall struct { s *Service parent string @@ -1833,14 +1522,16 @@ type ProjectsBrokersServiceInstancesListCall struct { // List: Lists all the instances in the brokers // This API is an extension and not part of the OSB spec. // Hence the path is a standard Google API URL. +// +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersServiceInstancesService) List(parent string) *ProjectsBrokersServiceInstancesListCall { c := &ProjectsBrokersServiceInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": Specifies the number -// of results to return per page. If there are fewer +// PageSize sets the optional parameter "pageSize": Specifies the number of +// results to return per page. If there are fewer // elements than the specified number, returns all elements. // // If unset or 0, all the results will be returned. @@ -1849,8 +1540,8 @@ func (c *ProjectsBrokersServiceInstancesListCall) PageSize(pageSize int64) *Proj return c } -// PageToken sets the optional parameter "pageToken": Specifies a page -// token to use. Set `pageToken` to a `nextPageToken` +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to a `nextPageToken` // returned by a previous list request to get the next page of results. func (c *ProjectsBrokersServiceInstancesListCall) PageToken(pageToken string) *ProjectsBrokersServiceInstancesListCall { c.urlParams_.Set("pageToken", pageToken) @@ -1858,33 +1549,29 @@ func (c *ProjectsBrokersServiceInstancesListCall) PageToken(pageToken string) *P } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersServiceInstancesListCall) Fields(s ...googleapi.Field) *ProjectsBrokersServiceInstancesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersServiceInstancesListCall) IfNoneMatch(entityTag string) *ProjectsBrokersServiceInstancesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersServiceInstancesListCall) Context(ctx context.Context) *ProjectsBrokersServiceInstancesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersServiceInstancesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1893,12 +1580,7 @@ func (c *ProjectsBrokersServiceInstancesListCall) Header() http.Header { } func (c *ProjectsBrokersServiceInstancesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1915,19 +1597,15 @@ func (c *ProjectsBrokersServiceInstancesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.service_instances.list" call. -// Exactly one of -// *GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsBrokersServiceInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1935,17 +1613,17 @@ func (c *ProjectsBrokersServiceInstancesListCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1958,43 +1636,6 @@ func (c *ProjectsBrokersServiceInstancesListCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Lists all the instances in the brokers\nThis API is an extension and not part of the OSB spec.\nHence the path is a standard Google API URL.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/service_instances", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.service_instances.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. If unset or 0, all the results will be returned.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/service_instances", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2002,7 +1643,7 @@ func (c *ProjectsBrokersServiceInstancesListCall) Do(opts ...googleapi.CallOptio // The provided context supersedes any context provided to the Context method. func (c *ProjectsBrokersServiceInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2018,8 +1659,6 @@ func (c *ProjectsBrokersServiceInstancesListCall) Pages(ctx context.Context, f f } } -// method id "servicebroker.projects.brokers.v2.catalog.list": - type ProjectsBrokersV2CatalogListCall struct { s *Service parent string @@ -2029,19 +1668,20 @@ type ProjectsBrokersV2CatalogListCall struct { header_ http.Header } -// List: Lists all the Services registered with this broker for -// consumption for -// given service registry broker, which contains an set of -// services. +// List: Lists all the Services registered with this broker for consumption +// for +// given service registry broker, which contains an set of services. // Note, that Service producer API is separate from Broker API. +// +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2CatalogService) List(parent string) *ProjectsBrokersV2CatalogListCall { c := &ProjectsBrokersV2CatalogListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": Specifies the number -// of results to return per page. If there are fewer +// PageSize sets the optional parameter "pageSize": Specifies the number of +// results to return per page. If there are fewer // elements than the specified number, returns all elements. // // If unset or 0, all the results will be returned. @@ -2050,8 +1690,8 @@ func (c *ProjectsBrokersV2CatalogListCall) PageSize(pageSize int64) *ProjectsBro return c } -// PageToken sets the optional parameter "pageToken": Specifies a page -// token to use. Set `pageToken` to a `nextPageToken` +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to a `nextPageToken` // returned by a previous list request to get the next page of results. func (c *ProjectsBrokersV2CatalogListCall) PageToken(pageToken string) *ProjectsBrokersV2CatalogListCall { c.urlParams_.Set("pageToken", pageToken) @@ -2059,33 +1699,29 @@ func (c *ProjectsBrokersV2CatalogListCall) PageToken(pageToken string) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2CatalogListCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2CatalogListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersV2CatalogListCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2CatalogListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2CatalogListCall) Context(ctx context.Context) *ProjectsBrokersV2CatalogListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2CatalogListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2094,12 +1730,7 @@ func (c *ProjectsBrokersV2CatalogListCall) Header() http.Header { } func (c *ProjectsBrokersV2CatalogListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2116,18 +1747,15 @@ func (c *ProjectsBrokersV2CatalogListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.catalog.list" call. -// Exactly one of *GoogleCloudServicebrokerV1alpha1__ListCatalogResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudServicebrokerV1alpha1__ListCatalogResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__ListCatalogResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2CatalogListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__ListCatalogResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2135,17 +1763,17 @@ func (c *ProjectsBrokersV2CatalogListCall) Do(opts ...googleapi.CallOption) (*Go if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__ListCatalogResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2158,43 +1786,6 @@ func (c *ProjectsBrokersV2CatalogListCall) Do(opts ...googleapi.CallOption) (*Go return nil, err } return ret, nil - // { - // "description": "Lists all the Services registered with this broker for consumption for\ngiven service registry broker, which contains an set of services.\nNote, that Service producer API is separate from Broker API.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/v2/catalog", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.v2.catalog.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. If unset or 0, all the results will be returned.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/v2/catalog", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__ListCatalogResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2202,7 +1793,7 @@ func (c *ProjectsBrokersV2CatalogListCall) Do(opts ...googleapi.CallOption) (*Go // The provided context supersedes any context provided to the Context method. func (c *ProjectsBrokersV2CatalogListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1alpha1__ListCatalogResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2218,8 +1809,6 @@ func (c *ProjectsBrokersV2CatalogListCall) Pages(ctx context.Context, f func(*Go } } -// method id "servicebroker.projects.brokers.v2.service_instances.create": - type ProjectsBrokersV2ServiceInstancesCreateCall struct { s *Service parent string @@ -2233,22 +1822,26 @@ type ProjectsBrokersV2ServiceInstancesCreateCall struct { // Create: Provisions a service instance. // If `request.accepts_incomplete` is false and Broker cannot execute // request -// synchronously HTTP 422 error will be returned along -// with +// synchronously HTTP 422 error will be returned along with // FAILED_PRECONDITION status. // If `request.accepts_incomplete` is true and the Broker decides to // execute -// resource asynchronously then HTTP 202 response code will be returned -// and a +// resource asynchronously then HTTP 202 response code will be returned and +// a // valid polling operation in the response will be included. // If Broker executes the request synchronously and it succeeds HTTP // 201 // response will be furnished. -// If identical instance exists, then HTTP 200 response will be -// returned. +// If identical instance exists, then HTTP 200 response will be returned. // If an instance with identical ID but mismatching parameters exists, // then // HTTP 409 status code will be returned. +// +// - instanceId: The id of the service instance. Must be unique within GCP +// project. +// +// Maximum length is 64, GUID recommended. +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2ServiceInstancesService) Create(parent string, instanceId string, googlecloudservicebrokerv1alpha1__serviceinstance *GoogleCloudServicebrokerV1alpha1__ServiceInstance) *ProjectsBrokersV2ServiceInstancesCreateCall { c := &ProjectsBrokersV2ServiceInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2257,14 +1850,12 @@ func (r *ProjectsBrokersV2ServiceInstancesService) Create(parent string, instanc return c } -// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": -// Value indicating that API client supports asynchronous operations. -// If +// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": Value +// indicating that API client supports asynchronous operations. If // Broker cannot execute the request synchronously HTTP 422 code will // be // returned to HTTP clients along with FAILED_PRECONDITION error. -// If true and broker will execute request asynchronously 202 HTTP code -// will +// If true and broker will execute request asynchronously 202 HTTP code will // be returned. // This broker always requires this to be true as all mutator operations // are @@ -2275,23 +1866,21 @@ func (c *ProjectsBrokersV2ServiceInstancesCreateCall) AcceptsIncomplete(acceptsI } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2300,18 +1889,12 @@ func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Header() http.Header { } func (c *ProjectsBrokersV2ServiceInstancesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1alpha1__serviceinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/v2/service_instances/{+instance_id}") @@ -2325,19 +1908,15 @@ func (c *ProjectsBrokersV2ServiceInstancesCreateCall) doRequest(alt string) (*ht "parent": c.parent, "instance_id": c.instanceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.create" call. -// Exactly one of -// *GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2345,17 +1924,17 @@ func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2368,51 +1947,7 @@ func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Provisions a service instance.\nIf `request.accepts_incomplete` is false and Broker cannot execute request\nsynchronously HTTP 422 error will be returned along with\nFAILED_PRECONDITION status.\nIf `request.accepts_incomplete` is true and the Broker decides to execute\nresource asynchronously then HTTP 202 response code will be returned and a\nvalid polling operation in the response will be included.\nIf Broker executes the request synchronously and it succeeds HTTP 201\nresponse will be furnished.\nIf identical instance exists, then HTTP 200 response will be returned.\nIf an instance with identical ID but mismatching parameters exists, then\nHTTP 409 status code will be returned.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}", - // "httpMethod": "PUT", - // "id": "servicebroker.projects.brokers.v2.service_instances.create", - // "parameterOrder": [ - // "parent", - // "instance_id" - // ], - // "parameters": { - // "acceptsIncomplete": { - // "description": "Value indicating that API client supports asynchronous operations. If\nBroker cannot execute the request synchronously HTTP 422 code will be\nreturned to HTTP clients along with FAILED_PRECONDITION error.\nIf true and broker will execute request asynchronously 202 HTTP code will\nbe returned.\nThis broker always requires this to be true as all mutator operations are\nasynchronous.", - // "location": "query", - // "type": "boolean" - // }, - // "instance_id": { - // "description": "The id of the service instance. Must be unique within GCP project.\nMaximum length is 64, GUID recommended.\nRequired.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/v2/service_instances/{+instance_id}", - // "request": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__ServiceInstance" - // }, - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.delete": +} type ProjectsBrokersV2ServiceInstancesDeleteCall struct { s *Service @@ -2428,6 +1963,9 @@ type ProjectsBrokersV2ServiceInstancesDeleteCall struct { // CreateServiceInstance // method. // If service instance does not exist HTTP 410 status will be returned. +// +// - instanceId: The instance id to deprovision. +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2ServiceInstancesService) Delete(parent string, instanceId string) *ProjectsBrokersV2ServiceInstancesDeleteCall { c := &ProjectsBrokersV2ServiceInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2435,45 +1973,43 @@ func (r *ProjectsBrokersV2ServiceInstancesService) Delete(parent string, instanc return c } -// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": -// See CreateServiceInstanceRequest for details. +// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": See +// CreateServiceInstanceRequest for details. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesDeleteCall { c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete)) return c } -// PlanId sets the optional parameter "planId": The plan id of the -// service instance. +// PlanId sets the optional parameter "planId": The plan id of the service +// instance. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) PlanId(planId string) *ProjectsBrokersV2ServiceInstancesDeleteCall { c.urlParams_.Set("planId", planId) return c } -// ServiceId sets the optional parameter "serviceId": The service id of -// the service instance. +// ServiceId sets the optional parameter "serviceId": The service id of the +// service instance. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) ServiceId(serviceId string) *ProjectsBrokersV2ServiceInstancesDeleteCall { c.urlParams_.Set("serviceId", serviceId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2482,12 +2018,7 @@ func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Header() http.Header { } func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2502,19 +2033,15 @@ func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) doRequest(alt string) (*ht "parent": c.parent, "instanceId": c.instanceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.delete" call. -// Exactly one of -// *GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2522,17 +2049,17 @@ func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2545,58 +2072,7 @@ func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Deprovisions a service instance.\nFor synchronous/asynchronous request details see CreateServiceInstance\nmethod.\nIf service instance does not exist HTTP 410 status will be returned.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}", - // "httpMethod": "DELETE", - // "id": "servicebroker.projects.brokers.v2.service_instances.delete", - // "parameterOrder": [ - // "parent", - // "instanceId" - // ], - // "parameters": { - // "acceptsIncomplete": { - // "description": "See CreateServiceInstanceRequest for details.", - // "location": "query", - // "type": "boolean" - // }, - // "instanceId": { - // "description": "The instance id to deprovision.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "planId": { - // "description": "The plan id of the service instance.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "The service id of the service instance.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/v2/service_instances/{+instanceId}", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.get": +} type ProjectsBrokersV2ServiceInstancesGetCall struct { s *Service @@ -2610,6 +2086,8 @@ type ProjectsBrokersV2ServiceInstancesGetCall struct { // Get: Gets the given service instance from the system. // This API is an extension and not part of the OSB spec. // Hence the path is a standard Google API URL. +// +// - name: The resource name of the instance to return. func (r *ProjectsBrokersV2ServiceInstancesService) Get(name string) *ProjectsBrokersV2ServiceInstancesGetCall { c := &ProjectsBrokersV2ServiceInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2617,33 +2095,29 @@ func (r *ProjectsBrokersV2ServiceInstancesService) Get(name string) *ProjectsBro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersV2ServiceInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesGetCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2652,12 +2126,7 @@ func (c *ProjectsBrokersV2ServiceInstancesGetCall) Header() http.Header { } func (c *ProjectsBrokersV2ServiceInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2674,18 +2143,15 @@ func (c *ProjectsBrokersV2ServiceInstancesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.get" call. -// Exactly one of *GoogleCloudServicebrokerV1alpha1__ServiceInstance or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1alpha1__ServiceInstance.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__ServiceInstance.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__ServiceInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2693,17 +2159,17 @@ func (c *ProjectsBrokersV2ServiceInstancesGetCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__ServiceInstance{ ServerResponse: googleapi.ServerResponse{ @@ -2716,35 +2182,7 @@ func (c *ProjectsBrokersV2ServiceInstancesGetCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Gets the given service instance from the system.\nThis API is an extension and not part of the OSB spec.\nHence the path is a standard Google API URL.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.v2.service_instances.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the instance to return.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+name}", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__ServiceInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.getLast_operation": +} type ProjectsBrokersV2ServiceInstancesGetLastOperationCall struct { s *Service @@ -2756,9 +2194,12 @@ type ProjectsBrokersV2ServiceInstancesGetLastOperationCall struct { header_ http.Header } -// GetLastOperation: Returns the state of the last operation for the -// service instance. +// GetLastOperation: Returns the state of the last operation for the service +// instance. // Only last (or current) operation can be polled. +// +// - instanceId: The instance id for which to return the last operation status. +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2ServiceInstancesService) GetLastOperation(parent string, instanceId string) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall { c := &ProjectsBrokersV2ServiceInstancesGetLastOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2787,33 +2228,29 @@ func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) ServiceId(servic } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2822,12 +2259,7 @@ func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Header() http.He } func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2845,18 +2277,15 @@ func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) doRequest(alt st "parent": c.parent, "instanceId": c.instanceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.getLast_operation" call. -// Exactly one of *GoogleCloudServicebrokerV1alpha1__Operation or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1alpha1__Operation.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__Operation.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2864,17 +2293,17 @@ func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Do(opts ...googl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2887,58 +2316,7 @@ func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Returns the state of the last operation for the service instance.\nOnly last (or current) operation can be polled.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/last_operation", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.v2.service_instances.getLast_operation", - // "parameterOrder": [ - // "parent", - // "instanceId" - // ], - // "parameters": { - // "instanceId": { - // "description": "The instance id for which to return the last operation status.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "operation": { - // "description": "If `operation` was returned during mutation operation, this field must be\npopulated with the provided value.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "planId": { - // "description": "Plan id.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "Service id.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/v2/service_instances/{+instanceId}/last_operation", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.patch": +} type ProjectsBrokersV2ServiceInstancesPatchCall struct { s *Service @@ -2952,6 +2330,12 @@ type ProjectsBrokersV2ServiceInstancesPatchCall struct { // Patch: Updates an existing service instance. // See CreateServiceInstance for possible response codes. +// +// - instanceId: The id of the service instance. Must be unique within GCP +// project. +// +// Maximum length is 64, GUID recommended. +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2ServiceInstancesService) Patch(parent string, instanceId string, googlecloudservicebrokerv1alpha1__serviceinstance *GoogleCloudServicebrokerV1alpha1__ServiceInstance) *ProjectsBrokersV2ServiceInstancesPatchCall { c := &ProjectsBrokersV2ServiceInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -2960,31 +2344,29 @@ func (r *ProjectsBrokersV2ServiceInstancesService) Patch(parent string, instance return c } -// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": -// See CreateServiceInstanceRequest for details. +// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": See +// CreateServiceInstanceRequest for details. func (c *ProjectsBrokersV2ServiceInstancesPatchCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesPatchCall { c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2993,18 +2375,12 @@ func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Header() http.Header { } func (c *ProjectsBrokersV2ServiceInstancesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1alpha1__serviceinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/v2/service_instances/{+instance_id}") @@ -3018,19 +2394,15 @@ func (c *ProjectsBrokersV2ServiceInstancesPatchCall) doRequest(alt string) (*htt "parent": c.parent, "instance_id": c.instanceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.patch" call. -// Exactly one of -// *GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3038,17 +2410,17 @@ func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3061,51 +2433,7 @@ func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Updates an existing service instance.\nSee CreateServiceInstance for possible response codes.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}", - // "httpMethod": "PATCH", - // "id": "servicebroker.projects.brokers.v2.service_instances.patch", - // "parameterOrder": [ - // "parent", - // "instance_id" - // ], - // "parameters": { - // "acceptsIncomplete": { - // "description": "See CreateServiceInstanceRequest for details.", - // "location": "query", - // "type": "boolean" - // }, - // "instance_id": { - // "description": "The id of the service instance. Must be unique within GCP project.\nMaximum length is 64, GUID recommended.\nRequired.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/v2/service_instances/{+instance_id}", - // "request": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__ServiceInstance" - // }, - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.create": +} type ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall struct { s *Service @@ -3118,9 +2446,19 @@ type ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall struct { header_ http.Header } -// Create: CreateBinding generates a service binding to an existing -// service instance. +// Create: CreateBinding generates a service binding to an existing service +// instance. // See ProviServiceInstance for async operation details. +// +// - bindingId: The id of the binding. Must be unique within GCP +// project. +// +// Maximum length is 64, GUID recommended. +// - instanceId: The service instance to which to bind. +// - parent: The GCP container. +// Must match +// +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Create(parent string, instanceId string, bindingId string, googlecloudservicebrokerv1alpha1__binding *GoogleCloudServicebrokerV1alpha1__Binding) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall { c := &ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3130,31 +2468,29 @@ func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Create(parent return c } -// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": -// See CreateServiceInstanceRequest for details. +// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": See +// CreateServiceInstanceRequest for details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall { c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3163,18 +2499,12 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Header() ht } func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1alpha1__binding) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/v2/service_instances/{+instanceId}/service_bindings/{+binding_id}") @@ -3189,19 +2519,15 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) doRequest(a "instanceId": c.instanceId, "binding_id": c.bindingId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.create" call. -// Exactly one of -// *GoogleCloudServicebrokerV1alpha1__CreateBindingResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1alpha1__CreateBindingResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__CreateBindingResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__CreateBindingResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3209,17 +2535,17 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Do(opts ... if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__CreateBindingResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3232,59 +2558,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "CreateBinding generates a service binding to an existing service instance.\nSee ProviServiceInstance for async operation details.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}", - // "httpMethod": "PUT", - // "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.create", - // "parameterOrder": [ - // "parent", - // "instanceId", - // "binding_id" - // ], - // "parameters": { - // "acceptsIncomplete": { - // "description": "See CreateServiceInstanceRequest for details.", - // "location": "query", - // "type": "boolean" - // }, - // "binding_id": { - // "description": "The id of the binding. Must be unique within GCP project.\nMaximum length is 64, GUID recommended.\nRequired.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "instanceId": { - // "description": "The service instance to which to bind.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The GCP container.\nMust match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/v2/service_instances/{+instanceId}/service_bindings/{+binding_id}", - // "request": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__Binding" - // }, - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__CreateBindingResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.delete": +} type ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall struct { s *Service @@ -3301,6 +2575,10 @@ type ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall struct { // CreateServiceInstance // method. // If binding does not exist HTTP 410 status will be returned. +// +// - bindingId: The id of the binding to delete. +// - instanceId: The service instance id that deleted binding is bound to. +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Delete(parent string, instanceId string, bindingId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall { c := &ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3309,15 +2587,15 @@ func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Delete(parent return c } -// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": -// See CreateServiceInstanceRequest for details. +// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": See +// CreateServiceInstanceRequest for details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall { c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete)) return c } -// PlanId sets the optional parameter "planId": The plan id of the -// service instance. +// PlanId sets the optional parameter "planId": The plan id of the service +// instance. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) PlanId(planId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall { c.urlParams_.Set("planId", planId) return c @@ -3332,23 +2610,21 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) ServiceId(s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3357,12 +2633,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Header() ht } func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3378,19 +2649,15 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) doRequest(a "instanceId": c.instanceId, "bindingId": c.bindingId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.delete" call. -// Exactly one of -// *GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3398,17 +2665,17 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Do(opts ... if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3421,64 +2688,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Unbinds from a service instance.\nFor synchronous/asynchronous request details see CreateServiceInstance\nmethod.\nIf binding does not exist HTTP 410 status will be returned.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{instanceId}/service_bindings/{bindingId}", - // "httpMethod": "DELETE", - // "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.delete", - // "parameterOrder": [ - // "parent", - // "instanceId", - // "bindingId" - // ], - // "parameters": { - // "acceptsIncomplete": { - // "description": "See CreateServiceInstanceRequest for details.", - // "location": "query", - // "type": "boolean" - // }, - // "bindingId": { - // "description": "The id of the binding to delete.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instanceId": { - // "description": "The service instance id that deleted binding is bound to.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "planId": { - // "description": "The plan id of the service instance.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "Additional query parameter hints.\nThe service id of the service instance.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/v2/service_instances/{instanceId}/service_bindings/{bindingId}", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.get": +} type ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall struct { s *Service @@ -3492,6 +2702,10 @@ type ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall struct { } // Get: GetBinding returns the binding information. +// +// - bindingId: The binding id. +// - instanceId: Instance id to which the binding is bound. +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Get(parent string, instanceId string, bindingId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall { c := &ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3513,33 +2727,29 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) ServiceId(serv } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3548,12 +2758,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Header() http. } func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3572,18 +2777,15 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) doRequest(alt "instanceId": c.instanceId, "bindingId": c.bindingId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.get" call. -// Exactly one of *GoogleCloudServicebrokerV1alpha1__GetBindingResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudServicebrokerV1alpha1__GetBindingResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__GetBindingResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__GetBindingResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3591,17 +2793,17 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Do(opts ...goo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__GetBindingResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3614,61 +2816,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "GetBinding returns the binding information.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.get", - // "parameterOrder": [ - // "parent", - // "instanceId", - // "bindingId" - // ], - // "parameters": { - // "bindingId": { - // "description": "The binding id.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "instanceId": { - // "description": "Instance id to which the binding is bound.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "planId": { - // "description": "Plan id.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "Service id.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/v2/service_instances/{+instanceId}/service_bindings/{+bindingId}", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__GetBindingResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation": +} type ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall struct { s *Service @@ -3684,6 +2832,10 @@ type ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall struct // GetLastOperation: Returns the state of the last operation for the // binding. // Only last (or current) operation can be polled. +// +// - bindingId: The binding id for which to return the last operation. +// - instanceId: The instance id that the binding is bound to. +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) GetLastOperation(parent string, instanceId string, bindingId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall { c := &ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3713,33 +2865,29 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) S } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3748,12 +2896,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) H } func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3772,18 +2915,15 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) d "instanceId": c.instanceId, "bindingId": c.bindingId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation" call. -// Exactly one of *GoogleCloudServicebrokerV1alpha1__Operation or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1alpha1__Operation.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1alpha1__Operation.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1alpha1__Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3791,17 +2931,17 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) D if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1alpha1__Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3814,66 +2954,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) D return nil, err } return ret, nil - // { - // "description": "Returns the state of the last operation for the binding.\nOnly last (or current) operation can be polled.", - // "flatPath": "v1alpha1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}/last_operation", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation", - // "parameterOrder": [ - // "parent", - // "instanceId", - // "bindingId" - // ], - // "parameters": { - // "bindingId": { - // "description": "The binding id for which to return the last operation", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "instanceId": { - // "description": "The instance id that the binding is bound to.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "operation": { - // "description": "If `operation` was returned during mutation operation, this field must be\npopulated with the provided value.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "planId": { - // "description": "Plan id.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "Service id.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}/v2/service_instances/{+instanceId}/service_bindings/{+bindingId}/last_operation", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1alpha1__Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.getIamPolicy": +} type V1alpha1GetIamPolicyCall struct { s *Service @@ -3888,6 +2969,10 @@ type V1alpha1GetIamPolicyCall struct { // Returns an empty policy if the resource exists and does not have a // policy // set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *V1alpha1Service) GetIamPolicy(resource string) *V1alpha1GetIamPolicyCall { c := &V1alpha1GetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -3898,12 +2983,12 @@ func (r *V1alpha1Service) GetIamPolicy(resource string) *V1alpha1GetIamPolicyCal // "options.requestedPolicyVersion": The policy format version to be // returned. // -// Valid values are 0, 1, and 3. Requests specifying an invalid value -// will be +// Valid values are 0, 1, and 3. Requests specifying an invalid value will +// be // rejected. // -// Requests for policies with any conditional bindings must specify -// version 3. +// Requests for policies with any conditional bindings must specify version +// 3. // Policies without any conditional bindings may specify any valid value // or // leave the field unset. @@ -3913,33 +2998,29 @@ func (c *V1alpha1GetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequeste } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1alpha1GetIamPolicyCall) Fields(s ...googleapi.Field) *V1alpha1GetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *V1alpha1GetIamPolicyCall) IfNoneMatch(entityTag string) *V1alpha1GetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1alpha1GetIamPolicyCall) Context(ctx context.Context) *V1alpha1GetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1alpha1GetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3948,12 +3029,7 @@ func (c *V1alpha1GetIamPolicyCall) Header() http.Header { } func (c *V1alpha1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3970,16 +3046,15 @@ func (c *V1alpha1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.getIamPolicy" call. -// Exactly one of *GoogleIamV1__Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *V1alpha1GetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3987,17 +3062,17 @@ func (c *V1alpha1GetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1__Policy{ ServerResponse: googleapi.ServerResponse{ @@ -4010,41 +3085,7 @@ func (c *V1alpha1GetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", - // "flatPath": "v1alpha1/{v1alpha1Id}:getIamPolicy", - // "httpMethod": "GET", - // "id": "servicebroker.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.\n\nValid values are 0, 1, and 3. Requests specifying an invalid value will be\nrejected.\n\nRequests for policies with any conditional bindings must specify version 3.\nPolicies without any conditional bindings may specify any valid value or\nleave the field unset.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^.+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:getIamPolicy", - // "response": { - // "$ref": "GoogleIamV1__Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.setIamPolicy": +} type V1alpha1SetIamPolicyCall struct { s *Service @@ -4055,12 +3096,15 @@ type V1alpha1SetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any // existing policy. // -// Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and -// PERMISSION_DENIED +// Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *V1alpha1Service) SetIamPolicy(resource string, googleiamv1__setiampolicyrequest *GoogleIamV1__SetIamPolicyRequest) *V1alpha1SetIamPolicyCall { c := &V1alpha1SetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -4069,23 +3113,21 @@ func (r *V1alpha1Service) SetIamPolicy(resource string, googleiamv1__setiampolic } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1alpha1SetIamPolicyCall) Fields(s ...googleapi.Field) *V1alpha1SetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1alpha1SetIamPolicyCall) Context(ctx context.Context) *V1alpha1SetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1alpha1SetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4094,18 +3136,12 @@ func (c *V1alpha1SetIamPolicyCall) Header() http.Header { } func (c *V1alpha1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1__setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:setIamPolicy") @@ -4118,16 +3154,15 @@ func (c *V1alpha1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.setIamPolicy" call. -// Exactly one of *GoogleIamV1__Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *V1alpha1SetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4135,17 +3170,17 @@ func (c *V1alpha1SetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1__Policy{ ServerResponse: googleapi.ServerResponse{ @@ -4158,38 +3193,7 @@ func (c *V1alpha1SetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.\n\nCan return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED", - // "flatPath": "v1alpha1/{v1alpha1Id}:setIamPolicy", - // "httpMethod": "POST", - // "id": "servicebroker.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^.+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1__SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "GoogleIamV1__Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.testIamPermissions": +} type V1alpha1TestIamPermissionsCall struct { s *Service @@ -4200,8 +3204,8 @@ type V1alpha1TestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. @@ -4211,6 +3215,10 @@ type V1alpha1TestIamPermissionsCall struct { // UIs and command-line tools, not for authorization checking. This // operation // may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *V1alpha1Service) TestIamPermissions(resource string, googleiamv1__testiampermissionsrequest *GoogleIamV1__TestIamPermissionsRequest) *V1alpha1TestIamPermissionsCall { c := &V1alpha1TestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -4219,23 +3227,21 @@ func (r *V1alpha1Service) TestIamPermissions(resource string, googleiamv1__testi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1alpha1TestIamPermissionsCall) Fields(s ...googleapi.Field) *V1alpha1TestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1alpha1TestIamPermissionsCall) Context(ctx context.Context) *V1alpha1TestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1alpha1TestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4244,18 +3250,12 @@ func (c *V1alpha1TestIamPermissionsCall) Header() http.Header { } func (c *V1alpha1TestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1__testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:testIamPermissions") @@ -4268,17 +3268,15 @@ func (c *V1alpha1TestIamPermissionsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.testIamPermissions" call. -// Exactly one of *GoogleIamV1__TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleIamV1__TestIamPermissionsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1__TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V1alpha1TestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4286,17 +3284,17 @@ func (c *V1alpha1TestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Goog if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1__TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4309,33 +3307,4 @@ func (c *V1alpha1TestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Goog return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.", - // "flatPath": "v1alpha1/{v1alpha1Id}:testIamPermissions", - // "httpMethod": "POST", - // "id": "servicebroker.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^.+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "GoogleIamV1__TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "GoogleIamV1__TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/servicebroker/v1beta1/servicebroker-gen.go b/servicebroker/v1beta1/servicebroker-gen.go index ae3722f101a..c7fda8ae463 100644 --- a/servicebroker/v1beta1/servicebroker-gen.go +++ b/servicebroker/v1beta1/servicebroker-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // servicebrokerService, err := servicebroker.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // servicebrokerService, err := servicebroker.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // servicebrokerService, err := servicebroker.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package servicebroker // import "google.golang.org/api/servicebroker/v1beta1" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,11 +83,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "servicebroker:v1beta1" const apiName = "servicebroker" const apiVersion = "v1beta1" const basePath = "https://servicebroker.googleapis.com/" +const basePathTemplate = "https://servicebroker.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -82,11 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -241,220 +262,170 @@ type GoogleCloudServicebrokerV1beta1__Binding struct { // associated with // the binding to be created. BindResource googleapi.RawMessage `json:"bind_resource,omitempty"` - - // BindingId: The id of the binding. Must be unique within GCP - // project. + // BindingId: The id of the binding. Must be unique within GCP project. // Maximum length is 64, GUID recommended. // Required. BindingId string `json:"binding_id,omitempty"` - // CreateTime: Output only. Timestamp for when the binding was created. CreateTime string `json:"createTime,omitempty"` - // DeploymentName: Output only. String containing the Deployment Manager // deployment name that was created // for this binding, DeploymentName string `json:"deploymentName,omitempty"` - // Parameters: Configuration options for the service binding. Parameters googleapi.RawMessage `json:"parameters,omitempty"` - // PlanId: The ID of the plan. See `Service` and `Plan` resources for // details. // Maximum length is 64, GUID recommended. // Required. PlanId string `json:"plan_id,omitempty"` - // ResourceName: Output only. The resource name of the binding, // e.g. - // projects/project_id/brokers/broker_id/service_instances/instance_ - // id/bindings/binding_id. + // projects/project_id/brokers/broker_id/service_instances/instance_id/bindings/ + // binding_id. ResourceName string `json:"resourceName,omitempty"` - // ServiceId: The id of the service. Must be a valid identifier of a // service // contained in the list from a `ListServices()` call. // Maximum length is 64, GUID recommended. // Required. ServiceId string `json:"service_id,omitempty"` - // ForceSendFields is a list of field names (e.g. "BindResource") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BindResource") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BindResource") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__Binding) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__Binding) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__Broker: Broker represents a -// consumable collection of Service Registry catalogs +// GoogleCloudServicebrokerV1beta1__Broker: Broker represents a consumable +// collection of Service Registry catalogs // exposed as an OSB Broker. type GoogleCloudServicebrokerV1beta1__Broker struct { // CreateTime: Output only. Timestamp for when the broker was created. CreateTime string `json:"createTime,omitempty"` - // Name: Name of the broker in the // format: // //brokers/. - // This allows for multiple brokers per project which can be used - // to + // This allows for multiple brokers per project which can be used to // enable having custom brokers per GKE cluster, for example. Name string `json:"name,omitempty"` - // Title: User friendly title of the broker. - // Limited to 1024 characters. Requests with longer titles will be - // rejected. + // Limited to 1024 characters. Requests with longer titles will be rejected. Title string `json:"title,omitempty"` - // Url: Output only. URL of the broker OSB-compliant endpoint, for // example: - // https://servicebroker.googleapis.com/projects//broke - // rs/ + // https://servicebroker.googleapis.com/projects//brokers/ Url string `json:"url,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__Broker) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__Broker) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__Broker - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__CreateBindingResponse: Response for -// the `CreateBinding()` method. +// GoogleCloudServicebrokerV1beta1__CreateBindingResponse: Response for the +// `CreateBinding()` method. type GoogleCloudServicebrokerV1beta1__CreateBindingResponse struct { // Credentials: Credentials to use the binding. Credentials googleapi.RawMessage `json:"credentials,omitempty"` - - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Operation: If broker executes operation asynchronously, this is the // operation ID that // can be polled to check the completion status of said operation. - // This broker always executes all create/delete operations - // asynchronously. + // This broker always executes all create/delete operations asynchronously. Operation string `json:"operation,omitempty"` - - // RouteServiceUrl: A URL to which the platform may proxy requests for - // the address sent with + // RouteServiceUrl: A URL to which the platform may proxy requests for the + // address sent with // bind_resource.route RouteServiceUrl string `json:"route_service_url,omitempty"` - // SyslogDrainUrl: From where to read system logs. SyslogDrainUrl string `json:"syslog_drain_url,omitempty"` - // VolumeMounts: An array of configuration for mounting volumes. VolumeMounts []googleapi.RawMessage `json:"volume_mounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Credentials") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Credentials") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Credentials") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__CreateBindingResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__CreateBindingResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__CreateBindingResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse: -// Response for the `CreateServiceInstance()` method. +// GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse: Response for +// the `CreateServiceInstance()` method. type GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Operation: If broker executes operation asynchronously, this is the // operation ID that // can be polled to check the completion status of said operation. // This broker always will return a non-empty operation on success. Operation string `json:"operation,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudServicebrokerV1beta1__DashboardClient: Message containing @@ -462,122 +433,95 @@ func (s *GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse) Marshal type GoogleCloudServicebrokerV1beta1__DashboardClient struct { // Id: The id of the Oauth client that the dashboard will use. Id string `json:"id,omitempty"` - // RedirectUri: A URI for the service dashboard. - // Validated by the OAuth token server when the dashboard requests a - // token. + // Validated by the OAuth token server when the dashboard requests a token. RedirectUri string `json:"redirect_uri,omitempty"` - // Secret: A secret for the dashboard client. Secret string `json:"secret,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__DashboardClient) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__DashboardClient) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__DashboardClient - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__DeleteBindingResponse: Response for -// the `DeleteBinding()` method. +// GoogleCloudServicebrokerV1beta1__DeleteBindingResponse: Response for the +// `DeleteBinding()` method. type GoogleCloudServicebrokerV1beta1__DeleteBindingResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Operation: If broker executes operation asynchronously, this is the // operation ID that // can be polled to check the completion status of said operation. Operation string `json:"operation,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__DeleteBindingResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__DeleteBindingResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__DeleteBindingResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse: -// Response for the `DeleteServiceInstance()` method. +// GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse: Response for +// the `DeleteServiceInstance()` method. type GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Operation: If broker executes operation asynchronously, this is the // operation ID that // can be polled to check the completion status of said operation. Operation string `json:"operation,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudServicebrokerV1beta1__GetBindingResponse: Response for the @@ -585,80 +529,63 @@ func (s *GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse) Marshal type GoogleCloudServicebrokerV1beta1__GetBindingResponse struct { // Credentials: Credentials to use the binding. Credentials googleapi.RawMessage `json:"credentials,omitempty"` - - // DeploymentName: String containing the Deployment Manager deployment - // name that was created + // DeploymentName: String containing the Deployment Manager deployment name + // that was created // for this binding, DeploymentName string `json:"deploymentName,omitempty"` - - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // ResourceName: Output only. The resource name of the binding, // e.g. - // projects/project_id/brokers/broker_id/service_instances/instance_ - // id/bindings/binding_id. + // projects/project_id/brokers/broker_id/service_instances/instance_id/bindings/ + // binding_id. ResourceName string `json:"resourceName,omitempty"` - - // RouteServiceUrl: A URL to which the platform may proxy requests for - // the address sent with + // RouteServiceUrl: A URL to which the platform may proxy requests for the + // address sent with // bind_resource.route RouteServiceUrl string `json:"route_service_url,omitempty"` - // SyslogDrainUrl: From where to read system logs. SyslogDrainUrl string `json:"syslog_drain_url,omitempty"` - // VolumeMounts: An array of configurations for mounting volumes. VolumeMounts []googleapi.RawMessage `json:"volume_mounts,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Credentials") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Credentials") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Credentials") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__GetBindingResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__GetBindingResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__GetBindingResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__ListBindingsResponse: The response -// for the `ListBindings()` method. +// GoogleCloudServicebrokerV1beta1__ListBindingsResponse: The response for the +// `ListBindings()` method. type GoogleCloudServicebrokerV1beta1__ListBindingsResponse struct { // Bindings: The list of bindings in the instance. Bindings []*GoogleCloudServicebrokerV1beta1__Binding `json:"bindings,omitempty"` - - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - - // NextPageToken: This token allows you to get the next page of results - // for list requests. + // NextPageToken: This token allows you to get the next page of results for + // list requests. // If the number of results is larger than `pageSize`, use the // `nextPageToken` // as a value for the query parameter `pageToken` in the next list @@ -668,41 +595,33 @@ type GoogleCloudServicebrokerV1beta1__ListBindingsResponse struct { // paging through the results NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Bindings") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__ListBindingsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__ListBindingsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__ListBindingsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__ListBrokersResponse: The response -// for the `ListBrokers()` method. +// GoogleCloudServicebrokerV1beta1__ListBrokersResponse: The response for the +// `ListBrokers()` method. type GoogleCloudServicebrokerV1beta1__ListBrokersResponse struct { // Brokers: The list of brokers in the container. Brokers []*GoogleCloudServicebrokerV1beta1__Broker `json:"brokers,omitempty"` - - // NextPageToken: This token allows you to get the next page of results - // for list requests. + // NextPageToken: This token allows you to get the next page of results for + // list requests. // If the number of results is larger than `pageSize`, use the // `nextPageToken` // as a value for the query parameter `pageToken` in the next list @@ -712,46 +631,37 @@ type GoogleCloudServicebrokerV1beta1__ListBrokersResponse struct { // paging through the results NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Brokers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Brokers") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Brokers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Brokers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__ListBrokersResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__ListBrokersResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__ListBrokersResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__ListCatalogResponse: Response -// message for the `ListCatalog()` method. +// GoogleCloudServicebrokerV1beta1__ListCatalogResponse: Response message for +// the `ListCatalog()` method. type GoogleCloudServicebrokerV1beta1__ListCatalogResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - - // NextPageToken: This token allows you to get the next page of results - // for list requests. + // NextPageToken: This token allows you to get the next page of results for + // list requests. // If the number of results is larger than `pageSize`, use the // `nextPageToken` // as a value for the query parameter `pageToken` in the next list @@ -760,53 +670,42 @@ type GoogleCloudServicebrokerV1beta1__ListCatalogResponse struct { // continue // paging through the results NextPageToken string `json:"nextPageToken,omitempty"` - // Services: The services available for the requested GCP project. Services []*GoogleCloudServicebrokerV1beta1__Service `json:"services,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__ListCatalogResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__ListCatalogResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__ListCatalogResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse: The -// response for the `ListServiceInstances()` method. +// GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse: The response +// for the `ListServiceInstances()` method. type GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Instances: The list of instances in the broker. Instances []*GoogleCloudServicebrokerV1beta1__ServiceInstance `json:"instances,omitempty"` - - // NextPageToken: This token allows you to get the next page of results - // for list requests. + // NextPageToken: This token allows you to get the next page of results for + // list requests. // If the number of results is larger than `pageSize`, use the // `nextPageToken` // as a value for the query parameter `pageToken` in the next list @@ -816,31 +715,24 @@ type GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse struct { // paging through the results NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudServicebrokerV1beta1__Operation: Describes a long running @@ -848,135 +740,105 @@ func (s *GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse) MarshalJ type GoogleCloudServicebrokerV1beta1__Operation struct { // Description: Optional description of the Operation state. Description string `json:"description,omitempty"` - // State: The state of the operation. // Valid values are: "in progress", "succeeded", and "failed". State string `json:"state,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__Operation) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__Operation) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__Plan: Plan message describes a -// Service Plan. +// GoogleCloudServicebrokerV1beta1__Plan: Plan message describes a Service +// Plan. type GoogleCloudServicebrokerV1beta1__Plan struct { // Bindable: Specifies whether instances of the service can be bound to // applications. // If not specified, `Service.bindable` will be presumed. Bindable bool `json:"bindable,omitempty"` - // Description: Textual description of the plan. Optional. Description string `json:"description,omitempty"` - // Free: Whether the service is free. Free bool `json:"free,omitempty"` - // Id: ID is a globally unique identifier used to uniquely identify the // plan. // User must make no presumption about the format of this field. Id string `json:"id,omitempty"` - // Metadata: A list of metadata for a service offering. // Metadata is an arbitrary JSON object. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: User friendly name of the plan. // The name must be globally unique within GCP project. // Note, which is different from ("This must be globally unique within // a // platform marketplace"). Name string `json:"name,omitempty"` - - // Schemas: Schema definitions for service instances and bindings for - // the plan. + // Schemas: Schema definitions for service instances and bindings for the plan. Schemas googleapi.RawMessage `json:"schemas,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bindable") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindable") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindable") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__Plan) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__Plan) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__Plan - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__Service: The resource model mostly -// follows the Open Service Broker API, as +// GoogleCloudServicebrokerV1beta1__Service: The resource model mostly follows +// the Open Service Broker API, as // described // here: -// https://github.com/openservicebrokerapi/servicebroker/blob/maste -// r/_spec.md +// https://github.com/openservicebrokerapi/servicebroker/blob/master/_spec.md // Though due to Google Specifics it has additional optional fields. type GoogleCloudServicebrokerV1beta1__Service struct { // Bindable: Specifies whether instances of the service can be bound to // applications. // Required. Bindable bool `json:"bindable,omitempty"` - - // BindingRetrievable: Whether the service provides an endpoint to get - // service bindings. + // BindingRetrievable: Whether the service provides an endpoint to get service + // bindings. BindingRetrievable bool `json:"binding_retrievable,omitempty"` - - // BindingsRetrievable: Whether the service provides an endpoint to get - // service bindings. + // BindingsRetrievable: Whether the service provides an endpoint to get service + // bindings. BindingsRetrievable bool `json:"bindings_retrievable,omitempty"` - // DashboardClient: Information to activate Dashboard SSO feature. DashboardClient *GoogleCloudServicebrokerV1beta1__DashboardClient `json:"dashboard_client,omitempty"` - // Description: Textual description of the service. Required. Description string `json:"description,omitempty"` - // Id: ID is a globally unique identifier used to uniquely identify the // service. // ID is an opaque string. Id string `json:"id,omitempty"` - // InstancesRetrievable: Whether the service provides an endpoint to get // service instances. InstancesRetrievable bool `json:"instances_retrievable,omitempty"` - // Metadata: A list of metadata for a service offering. // Metadata is an arbitrary JSON object. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: User friendly service name. // Name must match [a-z0-9]+ regexp. // The name must be globally unique within GCP project. @@ -985,181 +847,142 @@ type GoogleCloudServicebrokerV1beta1__Service struct { // platform marketplace"). // Required. Name string `json:"name,omitempty"` - - // PlanUpdateable: Whether the service supports upgrade/downgrade for - // some plans. + // PlanUpdateable: Whether the service supports upgrade/downgrade for some + // plans. PlanUpdateable bool `json:"plan_updateable,omitempty"` - // Plans: A list of plans for this service. // At least one plan is required. Plans []*GoogleCloudServicebrokerV1beta1__Plan `json:"plans,omitempty"` - // Tags: Tags provide a flexible mechanism to expose a classification, // attribute, or // base technology of a service. Tags []string `json:"tags,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bindable") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindable") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindable") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__Service) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__Service) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__Service - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__ServiceInstance: Message describing -// inputs to Provision and Update Service instance requests. +// GoogleCloudServicebrokerV1beta1__ServiceInstance: Message describing inputs +// to Provision and Update Service instance requests. type GoogleCloudServicebrokerV1beta1__ServiceInstance struct { - // Context: Platform specific contextual information under which the - // service instance - // is to be provisioned. This replaces organization_guid and - // space_guid. + // Context: Platform specific contextual information under which the service + // instance + // is to be provisioned. This replaces organization_guid and space_guid. // But can also contain anything. // Currently only used for logging context information. Context googleapi.RawMessage `json:"context,omitempty"` - // CreateTime: Output only. Timestamp for when the instance was created. CreateTime string `json:"createTime,omitempty"` - // DeploymentName: Output only. String containing the Deployment Manager // deployment name that was created // for this instance, DeploymentName string `json:"deploymentName,omitempty"` - - // Description: To return errors when GetInstance call is done via HTTP - // to be unified with + // Description: To return errors when GetInstance call is done via HTTP to be + // unified with // other methods. Description string `json:"description,omitempty"` - // InstanceId: The id of the service instance. Must be unique within GCP // project. // Maximum length is 64, GUID recommended. // Required. InstanceId string `json:"instance_id,omitempty"` - - // OrganizationGuid: The platform GUID for the organization under which - // the service is to be + // OrganizationGuid: The platform GUID for the organization under which the + // service is to be // provisioned. // Required. OrganizationGuid string `json:"organization_guid,omitempty"` - - // Parameters: Configuration options for the service - // instance. + // Parameters: Configuration options for the service instance. // Parameters is JSON object serialized to string. Parameters googleapi.RawMessage `json:"parameters,omitempty"` - // PlanId: The ID of the plan. See `Service` and `Plan` resources for // details. // Maximum length is 64, GUID recommended. // Required. PlanId string `json:"plan_id,omitempty"` - - // PreviousValues: Used only in UpdateServiceInstance request to - // optionally specify previous + // PreviousValues: Used only in UpdateServiceInstance request to optionally + // specify previous // fields. PreviousValues googleapi.RawMessage `json:"previous_values,omitempty"` - // ResourceName: Output only. The resource name of the instance, // e.g. - // projects/project_id/brokers/broker_id/service_instances/instance_ - // id + // projects/project_id/brokers/broker_id/service_instances/instance_id ResourceName string `json:"resourceName,omitempty"` - // ServiceId: The id of the service. Must be a valid identifier of a // service // contained in the list from a `ListServices()` call. // Maximum length is 64, GUID recommended. // Required. ServiceId string `json:"service_id,omitempty"` - // SpaceGuid: The identifier for the project space within the platform // organization. // Required. SpaceGuid string `json:"space_guid,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Context") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Context") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Context") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Context") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__ServiceInstance) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__ServiceInstance) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__ServiceInstance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse: -// Response for the `UpdateServiceInstance()` method. +// GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse: Response for +// the `UpdateServiceInstance()` method. type GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse struct { - // Description: Used to communicate description of the response. Usually - // for non-standard + // Description: Used to communicate description of the response. Usually for + // non-standard // error // codes. - // https://github.com/openservicebrokerapi/servicebroker/blob/mast - // er/spec.md#service-broker-errors + // https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors Description string `json:"description,omitempty"` - // Operation: If broker executes operation asynchronously, this is the // operation ID that // can be polled to check the completion status of said operation. Operation string `json:"operation,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse) MarshalJSON() ([]byte, error) { +func (s GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1__Binding: Associates `members` with a `role`. @@ -1171,111 +994,83 @@ type GoogleIamV1__Binding struct { // examined // independently. Condition *GoogleType__Expr `json:"condition,omitempty"` - - // Members: Specifies the identities requesting access for a Cloud - // Platform resource. + // Members: Specifies the identities requesting access for a Cloud Platform + // resource. // `members` can have the following values: // // * `allUsers`: A special identifier that represents anyone who is // on the internet; with or without a Google account. // - // * `allAuthenticatedUsers`: A special identifier that represents - // anyone - // who is authenticated with a Google account or a service - // account. + // * `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. // - // * `user:{emailid}`: An email address that represents a specific - // Google + // * `user:{emailid}`: An email address that represents a specific Google // account. For example, `alice@example.com` . // // - // * `serviceAccount:{emailid}`: An email address that represents a - // service - // account. For example, - // `my-other-app@appspot.gserviceaccount.com`. + // * `serviceAccount:{emailid}`: An email address that represents a service + // account. For example, `my-other-app@appspot.gserviceaccount.com`. // - // * `group:{emailid}`: An email address that represents a Google - // group. + // * `group:{emailid}`: An email address that represents a Google group. // For example, `admins@example.com`. // - // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique - // identifier) representing a user that has been recently deleted. - // For - // example, `alice@example.com?uid=123456789012345678901`. If the - // user is - // recovered, this value reverts to `user:{emailid}` and the - // recovered user + // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + // identifier) representing a user that has been recently deleted. For + // example, `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered user // retains the role in the binding. // - // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus - // unique identifier) representing a service account that has been - // recently + // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a service account that has been recently // deleted. For example, - // - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account - // retains the + // `serviceAccount:{emailid}` and the undeleted service account retains the // role in the binding. // - // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus - // unique + // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique // identifier) representing a Google group that has been recently - // deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If - // the group is recovered, this value reverts to `group:{emailid}` - // and the + // deleted. For example, `admins@example.com?uid=123456789012345678901`. If + // the group is recovered, this value reverts to `group:{emailid}` and the // recovered group retains the role in the binding. // // - // * `domain:{domain}`: The G Suite domain (primary) that represents all - // the - // users of that domain. For example, `google.com` or - // `example.com`. + // * `domain:{domain}`: The G Suite domain (primary) that represents all the + // users of that domain. For example, `google.com` or `example.com`. // // Members []string `json:"members,omitempty"` - // Role: Role that is assigned to `members`. // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Condition") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Condition") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__Binding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1__Policy: An Identity and Access Management (IAM) policy, -// which specifies access +// GoogleIamV1__Policy: An Identity and Access Management (IAM) policy, which +// specifies access // controls for Google Cloud resources. // // A `Policy` is a collection of `bindings`. A `binding` binds one or // more // `members` to a single `role`. Members can be user accounts, service // accounts, -// Google groups, and domains (such as G Suite). A `role` is a named -// list of +// Google groups, and domains (such as G Suite). A `role` is a named list +// of // permissions; each `role` can be an IAM predefined role or a // user-created // custom role. @@ -1298,18 +1093,16 @@ func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { // "user:mike@example.com", // "group:admins@example.com", // "domain:google.com", -// -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" -// -// ] -// }, -// { -// "role": "roles/resourcemanager.organizationViewer", -// "members": ["user:eve@example.com"], -// "condition": { -// "title": "expirable access", -// "description": "Does not grant access after Sep 2020", -// "expression": "request.time < +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" +// ] +// }, +// { +// "role": "roles/resourcemanager.organizationViewer", +// "members": ["user:eve@example.com"], +// "condition": { +// "title": "expirable access", +// "description": "Does not grant access after Sep 2020", +// "expression": "request.time < // // timestamp('2020-10-01T00:00:00.000Z')", // @@ -1335,34 +1128,29 @@ func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { // condition: // title: expirable access // description: Does not grant access after Sep 2020 -// expression: request.time < -// -// timestamp('2020-10-01T00:00:00.000Z') -// - etag: BwWWja0YfJA= -// - version: 3 +// expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +// - etag: BwWWja0YfJA= +// - version: 3 // // For a description of IAM and its features, see the -// [IAM documentation](https://cloud.google.com/iam/docs/). +// IAM documentation (https://cloud.google.com/iam/docs/). type GoogleIamV1__Policy struct { // Bindings: Associates a list of `members` to a `role`. Optionally, may // specify a - // `condition` that determines how and when the `bindings` are applied. - // Each + // `condition` that determines how and when the `bindings` are applied. Each // of the `bindings` must contain at least one member. Bindings []*GoogleIamV1__Binding `json:"bindings,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to // help - // prevent simultaneous updates of a policy from overwriting each - // other. + // prevent simultaneous updates of a policy from overwriting each other. // It is strongly suggested that systems make use of the `etag` in // the // read-modify-write cycle to perform policy updates in order to avoid // race // conditions: An `etag` is returned in the response to `getIamPolicy`, // and - // systems are expected to put that etag in the request to - // `setIamPolicy` to + // systems are expected to put that etag in the request to `setIamPolicy` + // to // ensure that their change will be applied to the same version of the // policy. // @@ -1370,11 +1158,10 @@ type GoogleIamV1__Policy struct { // field // whenever you call `setIamPolicy`. If you omit this field, then IAM // allows - // you to overwrite a version `3` policy with a version `1` policy, and - // all of + // you to overwrite a version `3` policy with a version `1` policy, and all + // of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` - // Version: Specifies the format of the policy. // // Valid values are `0`, `1`, and `3`. Requests that specify an invalid @@ -1388,171 +1175,136 @@ type GoogleIamV1__Policy struct { // * Getting a policy that includes a conditional role binding // * Adding a conditional role binding to a policy // * Changing a conditional role binding in a policy - // * Removing any role binding, with or without a condition, from a - // policy + // * Removing any role binding, with or without a condition, from a policy // that includes conditions // // **Important:** If you use IAM Conditions, you must include the `etag` // field // whenever you call `setIamPolicy`. If you omit this field, then IAM // allows - // you to overwrite a version `3` policy with a version `1` policy, and - // all of + // you to overwrite a version `3` policy with a version `1` policy, and all + // of // the conditions in the version `3` policy are lost. // - // If a policy does not include any conditions, operations on that - // policy may + // If a policy does not include any conditions, operations on that policy + // may // specify any valid version or leave the field unset. Version int64 `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Bindings") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bindings") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bindings") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__Policy) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__Policy) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__Policy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1__SetIamPolicyRequest: Request message for `SetIamPolicy` -// method. +// GoogleIamV1__SetIamPolicyRequest: Request message for `SetIamPolicy` method. type GoogleIamV1__SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of // the policy is limited to a few 10s of KB. An empty policy is a - // valid policy but certain Cloud Platform services (such as - // Projects) + // valid policy but certain Cloud Platform services (such as Projects) // might reject them. Policy *GoogleIamV1__Policy `json:"policy,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__SetIamPolicyRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1__TestIamPermissionsRequest: Request message for // `TestIamPermissions` method. type GoogleIamV1__TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with - // wildcards (such as '*' or 'storage.*') are not allowed. For - // more + // Permissions: The set of permissions to check for the `resource`. Permissions + // with + // wildcards (such as '*' or 'storage.*') are not allowed. For more // information see - // [IAM - // Overview](https://cloud.google.com/iam/docs/overview#permissions). + // IAM Overview (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleIamV1__TestIamPermissionsResponse: Response message for // `TestIamPermissions` method. type GoogleIamV1__TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is // allowed. Permissions []string `json:"permissions,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleIamV1__TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s GoogleIamV1__TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod GoogleIamV1__TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleProtobuf__Empty: A generic empty message that you can re-use to -// avoid defining duplicated +// GoogleProtobuf__Empty: A generic empty message that you can re-use to avoid +// defining duplicated // empty messages in your APIs. A typical example is to use it as the // request // or the response type of an API method. For instance: // // service Foo { -// rpc Bar(google.protobuf.Empty) returns -// -// (google.protobuf.Empty); -// +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); // } // // The JSON representation for `Empty` is empty JSON object `{}`. type GoogleProtobuf__Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } @@ -1562,11 +1314,10 @@ type GoogleProtobuf__Empty struct { // description: "Determines whether the request has a user account" // expression: "size(request.user) > 0" type GoogleType__Expr struct { - // Description: An optional description of the expression. This is a - // longer text which + // Description: An optional description of the expression. This is a longer + // text which // describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` - // Expression: Textual representation of an expression in // Common Expression Language syntax. // @@ -1574,44 +1325,34 @@ type GoogleType__Expr struct { // which // well-known feature set of CEL is supported. Expression string `json:"expression,omitempty"` - - // Location: An optional string indicating the location of the - // expression for error + // Location: An optional string indicating the location of the expression for + // error // reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` - // Title: An optional title for the expression, i.e. a short string // describing // its purpose. This can be used e.g. in UIs which allow to enter // the // expression. Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GoogleType__Expr) MarshalJSON() ([]byte, error) { +func (s GoogleType__Expr) MarshalJSON() ([]byte, error) { type NoMethod GoogleType__Expr - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "servicebroker.projects.brokers.create": - type ProjectsBrokersCreateCall struct { s *Service parent string @@ -1622,6 +1363,8 @@ type ProjectsBrokersCreateCall struct { } // Create: CreateBroker creates a Broker. +// +// - parent: The project in which to create broker. func (r *ProjectsBrokersService) Create(parent string, googlecloudservicebrokerv1beta1__broker *GoogleCloudServicebrokerV1beta1__Broker) *ProjectsBrokersCreateCall { c := &ProjectsBrokersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1630,23 +1373,21 @@ func (r *ProjectsBrokersService) Create(parent string, googlecloudservicebrokerv } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersCreateCall) Fields(s ...googleapi.Field) *ProjectsBrokersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersCreateCall) Context(ctx context.Context) *ProjectsBrokersCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1655,18 +1396,12 @@ func (c *ProjectsBrokersCreateCall) Header() http.Header { } func (c *ProjectsBrokersCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1beta1__broker) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/brokers") @@ -1679,17 +1414,15 @@ func (c *ProjectsBrokersCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.create" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__Broker or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudServicebrokerV1beta1__Broker.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__Broker.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__Broker, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1697,17 +1430,17 @@ func (c *ProjectsBrokersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleClo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__Broker{ ServerResponse: googleapi.ServerResponse{ @@ -1720,38 +1453,7 @@ func (c *ProjectsBrokersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleClo return nil, err } return ret, nil - // { - // "description": "CreateBroker creates a Broker.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers", - // "httpMethod": "POST", - // "id": "servicebroker.projects.brokers.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "The project in which to create broker.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/brokers", - // "request": { - // "$ref": "GoogleCloudServicebrokerV1beta1__Broker" - // }, - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__Broker" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.delete": +} type ProjectsBrokersDeleteCall struct { s *Service @@ -1762,6 +1464,8 @@ type ProjectsBrokersDeleteCall struct { } // Delete: DeleteBroker deletes a Broker. +// +// - name: The broker to delete. func (r *ProjectsBrokersService) Delete(name string) *ProjectsBrokersDeleteCall { c := &ProjectsBrokersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1769,23 +1473,21 @@ func (r *ProjectsBrokersService) Delete(name string) *ProjectsBrokersDeleteCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersDeleteCall) Fields(s ...googleapi.Field) *ProjectsBrokersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersDeleteCall) Context(ctx context.Context) *ProjectsBrokersDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1794,12 +1496,7 @@ func (c *ProjectsBrokersDeleteCall) Header() http.Header { } func (c *ProjectsBrokersDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1813,16 +1510,15 @@ func (c *ProjectsBrokersDeleteCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.delete" call. -// Exactly one of *GoogleProtobuf__Empty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobuf__Empty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobuf__Empty.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsBrokersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf__Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1830,17 +1526,17 @@ func (c *ProjectsBrokersDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleProtobuf__Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1853,35 +1549,7 @@ func (c *ProjectsBrokersDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePro return nil, err } return ret, nil - // { - // "description": "DeleteBroker deletes a Broker.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}", - // "httpMethod": "DELETE", - // "id": "servicebroker.projects.brokers.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The broker to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleProtobuf__Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.list": +} type ProjectsBrokersListCall struct { s *Service @@ -1893,14 +1561,16 @@ type ProjectsBrokersListCall struct { } // List: ListBrokers lists brokers. +// +// - parent: Parent must match `projects/[PROJECT_ID]/brokers`. func (r *ProjectsBrokersService) List(parent string) *ProjectsBrokersListCall { c := &ProjectsBrokersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": Specifies the number -// of results to return per page. If there are fewer +// PageSize sets the optional parameter "pageSize": Specifies the number of +// results to return per page. If there are fewer // elements than the specified number, returns all elements. // // Acceptable values are 0 to 200, inclusive. (Default: 100) @@ -1909,8 +1579,8 @@ func (c *ProjectsBrokersListCall) PageSize(pageSize int64) *ProjectsBrokersListC return c } -// PageToken sets the optional parameter "pageToken": Specifies a page -// token to use. Set `pageToken` to a `nextPageToken` +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to a `nextPageToken` // returned by a previous list request to get the next page of results. func (c *ProjectsBrokersListCall) PageToken(pageToken string) *ProjectsBrokersListCall { c.urlParams_.Set("pageToken", pageToken) @@ -1918,33 +1588,29 @@ func (c *ProjectsBrokersListCall) PageToken(pageToken string) *ProjectsBrokersLi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersListCall) Fields(s ...googleapi.Field) *ProjectsBrokersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersListCall) IfNoneMatch(entityTag string) *ProjectsBrokersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersListCall) Context(ctx context.Context) *ProjectsBrokersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1953,12 +1619,7 @@ func (c *ProjectsBrokersListCall) Header() http.Header { } func (c *ProjectsBrokersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1975,18 +1636,15 @@ func (c *ProjectsBrokersListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.list" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__ListBrokersResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudServicebrokerV1beta1__ListBrokersResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__ListBrokersResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ListBrokersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1994,17 +1652,17 @@ func (c *ProjectsBrokersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloud if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__ListBrokersResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2017,43 +1675,6 @@ func (c *ProjectsBrokersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloud return nil, err } return ret, nil - // { - // "description": "ListBrokers lists brokers.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. Acceptable values are 0 to 200, inclusive. (Default: 100)", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers`.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/brokers", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__ListBrokersResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2061,7 +1682,7 @@ func (c *ProjectsBrokersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloud // The provided context supersedes any context provided to the Context method. func (c *ProjectsBrokersListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1beta1__ListBrokersResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2077,8 +1698,6 @@ func (c *ProjectsBrokersListCall) Pages(ctx context.Context, f func(*GoogleCloud } } -// method id "servicebroker.projects.brokers.instances.get": - type ProjectsBrokersInstancesGetCall struct { s *Service name string @@ -2094,9 +1713,16 @@ type ProjectsBrokersInstancesGetCall struct { // resource path. // i.e. both `projects/*/brokers/*/instances/*` // -// and `projects/*/brokers/*/v2/service_instances/*` are acceptable +// and `projects/*/brokers/*/v2/service_instances/*` are acceptable paths. // -// paths. +// - name: The resource name of the instance to return. +// Name must match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +// + +// `v2/service_instances/[INSTANCE_ID]` +// or +// +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. func (r *ProjectsBrokersInstancesService) Get(name string) *ProjectsBrokersInstancesGetCall { c := &ProjectsBrokersInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2104,33 +1730,29 @@ func (r *ProjectsBrokersInstancesService) Get(name string) *ProjectsBrokersInsta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersInstancesGetCall) Context(ctx context.Context) *ProjectsBrokersInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2139,12 +1761,7 @@ func (c *ProjectsBrokersInstancesGetCall) Header() http.Header { } func (c *ProjectsBrokersInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2161,18 +1778,15 @@ func (c *ProjectsBrokersInstancesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.instances.get" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__ServiceInstance or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1beta1__ServiceInstance.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__ServiceInstance.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ServiceInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2180,17 +1794,17 @@ func (c *ProjectsBrokersInstancesGetCall) Do(opts ...googleapi.CallOption) (*Goo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__ServiceInstance{ ServerResponse: googleapi.ServerResponse{ @@ -2203,35 +1817,7 @@ func (c *ProjectsBrokersInstancesGetCall) Do(opts ...googleapi.CallOption) (*Goo return nil, err } return ret, nil - // { - // "description": "Gets the given service instance from the system.\nThe API call accepts both OSB style API and standard google style API\nresource path.\ni.e. both `projects/*/brokers/*/instances/*`\n and `projects/*/brokers/*/v2/service_instances/*` are acceptable paths.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/instances/{instancesId}", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.instances.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the instance to return.\nName must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +\n`v2/service_instances/[INSTANCE_ID]`\nor\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__ServiceInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.instances.getLast_operation": +} type ProjectsBrokersInstancesGetLastOperationCall struct { s *Service @@ -2242,9 +1828,13 @@ type ProjectsBrokersInstancesGetLastOperationCall struct { header_ http.Header } -// GetLastOperation: Returns the state of the last operation for the -// service instance. +// GetLastOperation: Returns the state of the last operation for the service +// instance. // Only last (or current) operation can be polled. +// +// - name: Name must match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+ +// `service_instances/[INSTANCE_ID]`. func (r *ProjectsBrokersInstancesService) GetLastOperation(name string) *ProjectsBrokersInstancesGetLastOperationCall { c := &ProjectsBrokersInstancesGetLastOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2272,33 +1862,29 @@ func (c *ProjectsBrokersInstancesGetLastOperationCall) ServiceId(serviceId strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersInstancesGetLastOperationCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesGetLastOperationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersInstancesGetLastOperationCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesGetLastOperationCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersInstancesGetLastOperationCall) Context(ctx context.Context) *ProjectsBrokersInstancesGetLastOperationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersInstancesGetLastOperationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2307,12 +1893,7 @@ func (c *ProjectsBrokersInstancesGetLastOperationCall) Header() http.Header { } func (c *ProjectsBrokersInstancesGetLastOperationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2329,18 +1910,15 @@ func (c *ProjectsBrokersInstancesGetLastOperationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.instances.getLast_operation" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__Operation or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersInstancesGetLastOperationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2348,17 +1926,17 @@ func (c *ProjectsBrokersInstancesGetLastOperationCall) Do(opts ...googleapi.Call if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2371,50 +1949,7 @@ func (c *ProjectsBrokersInstancesGetLastOperationCall) Do(opts ...googleapi.Call return nil, err } return ret, nil - // { - // "description": "Returns the state of the last operation for the service instance.\nOnly last (or current) operation can be polled.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/instances/{instancesId}/last_operation", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.instances.getLast_operation", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+\n `service_instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "operation": { - // "description": "If `operation` was returned during mutation operation, this field must be\npopulated with the provided value.", - // "location": "query", - // "type": "string" - // }, - // "planId": { - // "description": "Plan id.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "Service id.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}/last_operation", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.instances.list": +} type ProjectsBrokersInstancesListCall struct { s *Service @@ -2428,14 +1963,16 @@ type ProjectsBrokersInstancesListCall struct { // List: Lists all the instances in the brokers // This API is an extension and not part of the OSB spec. // Hence the path is a standard Google API URL. +// +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersInstancesService) List(parent string) *ProjectsBrokersInstancesListCall { c := &ProjectsBrokersInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": Specifies the number -// of results to return per page. If there are fewer +// PageSize sets the optional parameter "pageSize": Specifies the number of +// results to return per page. If there are fewer // elements than the specified number, returns all elements. // // Acceptable values are 0 to 200, inclusive. (Default: 100) @@ -2444,8 +1981,8 @@ func (c *ProjectsBrokersInstancesListCall) PageSize(pageSize int64) *ProjectsBro return c } -// PageToken sets the optional parameter "pageToken": Specifies a page -// token to use. Set `pageToken` to a `nextPageToken` +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to a `nextPageToken` // returned by a previous list request to get the next page of results. func (c *ProjectsBrokersInstancesListCall) PageToken(pageToken string) *ProjectsBrokersInstancesListCall { c.urlParams_.Set("pageToken", pageToken) @@ -2453,33 +1990,29 @@ func (c *ProjectsBrokersInstancesListCall) PageToken(pageToken string) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersInstancesListCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersInstancesListCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersInstancesListCall) Context(ctx context.Context) *ProjectsBrokersInstancesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersInstancesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2488,12 +2021,7 @@ func (c *ProjectsBrokersInstancesListCall) Header() http.Header { } func (c *ProjectsBrokersInstancesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2510,19 +2038,15 @@ func (c *ProjectsBrokersInstancesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.instances.list" call. -// Exactly one of -// *GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse.ServerR -// esponse.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsBrokersInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2530,17 +2054,17 @@ func (c *ProjectsBrokersInstancesListCall) Do(opts ...googleapi.CallOption) (*Go if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2553,43 +2077,6 @@ func (c *ProjectsBrokersInstancesListCall) Do(opts ...googleapi.CallOption) (*Go return nil, err } return ret, nil - // { - // "description": "Lists all the instances in the brokers\nThis API is an extension and not part of the OSB spec.\nHence the path is a standard Google API URL.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/instances", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.instances.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. Acceptable values are 0 to 200, inclusive. (Default: 100)", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/instances", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2597,7 +2084,7 @@ func (c *ProjectsBrokersInstancesListCall) Do(opts ...googleapi.CallOption) (*Go // The provided context supersedes any context provided to the Context method. func (c *ProjectsBrokersInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2613,8 +2100,6 @@ func (c *ProjectsBrokersInstancesListCall) Pages(ctx context.Context, f func(*Go } } -// method id "servicebroker.projects.brokers.instances.bindings.getLast_operation": - type ProjectsBrokersInstancesBindingsGetLastOperationCall struct { s *Service name string @@ -2627,6 +2112,11 @@ type ProjectsBrokersInstancesBindingsGetLastOperationCall struct { // GetLastOperation: Returns the state of the last operation for the // binding. // Only last (or current) operation can be polled. +// +// - name: Name must +// match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_I +// D]/service_binding/[BINDING_ID]`. func (r *ProjectsBrokersInstancesBindingsService) GetLastOperation(name string) *ProjectsBrokersInstancesBindingsGetLastOperationCall { c := &ProjectsBrokersInstancesBindingsGetLastOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2654,33 +2144,29 @@ func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) ServiceId(service } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesBindingsGetLastOperationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesBindingsGetLastOperationCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Context(ctx context.Context) *ProjectsBrokersInstancesBindingsGetLastOperationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2689,12 +2175,7 @@ func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Header() http.Hea } func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2711,18 +2192,15 @@ func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.instances.bindings.getLast_operation" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__Operation or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2730,17 +2208,17 @@ func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Do(opts ...google if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__Operation{ ServerResponse: googleapi.ServerResponse{ @@ -2753,50 +2231,7 @@ func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Do(opts ...google return nil, err } return ret, nil - // { - // "description": "Returns the state of the last operation for the binding.\nOnly last (or current) operation can be polled.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/instances/{instancesId}/bindings/{bindingsId}/last_operation", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.instances.bindings.getLast_operation", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_binding/[BINDING_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/instances/[^/]+/bindings/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "operation": { - // "description": "If `operation` was returned during mutation operation, this field must be\npopulated with the provided value.", - // "location": "query", - // "type": "string" - // }, - // "planId": { - // "description": "Plan id.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "Service id.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}/last_operation", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.instances.bindings.list": +} type ProjectsBrokersInstancesBindingsListCall struct { s *Service @@ -2808,14 +2243,22 @@ type ProjectsBrokersInstancesBindingsListCall struct { } // List: Lists all the bindings in the instance. +// +// - parent: Parent must match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +// + +// `v2/service_instances/[INSTANCE_ID]` +// or +// +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. func (r *ProjectsBrokersInstancesBindingsService) List(parent string) *ProjectsBrokersInstancesBindingsListCall { c := &ProjectsBrokersInstancesBindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": Specifies the number -// of results to return per page. If there are fewer +// PageSize sets the optional parameter "pageSize": Specifies the number of +// results to return per page. If there are fewer // elements than the specified number, returns all elements. // // Acceptable values are 0 to 200, inclusive. (Default: 100) @@ -2824,8 +2267,8 @@ func (c *ProjectsBrokersInstancesBindingsListCall) PageSize(pageSize int64) *Pro return c } -// PageToken sets the optional parameter "pageToken": Specifies a page -// token to use. Set `pageToken` to a `nextPageToken` +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to a `nextPageToken` // returned by a previous list request to get the next page of results. func (c *ProjectsBrokersInstancesBindingsListCall) PageToken(pageToken string) *ProjectsBrokersInstancesBindingsListCall { c.urlParams_.Set("pageToken", pageToken) @@ -2833,33 +2276,29 @@ func (c *ProjectsBrokersInstancesBindingsListCall) PageToken(pageToken string) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersInstancesBindingsListCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesBindingsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersInstancesBindingsListCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesBindingsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersInstancesBindingsListCall) Context(ctx context.Context) *ProjectsBrokersInstancesBindingsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersInstancesBindingsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2868,12 +2307,7 @@ func (c *ProjectsBrokersInstancesBindingsListCall) Header() http.Header { } func (c *ProjectsBrokersInstancesBindingsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2890,18 +2324,15 @@ func (c *ProjectsBrokersInstancesBindingsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.instances.bindings.list" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__ListBindingsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudServicebrokerV1beta1__ListBindingsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__ListBindingsResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersInstancesBindingsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ListBindingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2909,17 +2340,17 @@ func (c *ProjectsBrokersInstancesBindingsListCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__ListBindingsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2932,43 +2363,6 @@ func (c *ProjectsBrokersInstancesBindingsListCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Lists all the bindings in the instance.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/instances/{instancesId}/bindings", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.instances.bindings.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. Acceptable values are 0 to 200, inclusive. (Default: 100)", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +\n`v2/service_instances/[INSTANCE_ID]`\nor\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/bindings", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__ListBindingsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2976,7 +2370,7 @@ func (c *ProjectsBrokersInstancesBindingsListCall) Do(opts ...googleapi.CallOpti // The provided context supersedes any context provided to the Context method. func (c *ProjectsBrokersInstancesBindingsListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1beta1__ListBindingsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2992,8 +2386,6 @@ func (c *ProjectsBrokersInstancesBindingsListCall) Pages(ctx context.Context, f } } -// method id "servicebroker.projects.brokers.v2.catalog.list": - type ProjectsBrokersV2CatalogListCall struct { s *Service parent string @@ -3003,19 +2395,20 @@ type ProjectsBrokersV2CatalogListCall struct { header_ http.Header } -// List: Lists all the Services registered with this broker for -// consumption for -// given service registry broker, which contains an set of -// services. +// List: Lists all the Services registered with this broker for consumption +// for +// given service registry broker, which contains an set of services. // Note, that Service producer API is separate from Broker API. +// +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2CatalogService) List(parent string) *ProjectsBrokersV2CatalogListCall { c := &ProjectsBrokersV2CatalogListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": Specifies the number -// of results to return per page. If there are fewer +// PageSize sets the optional parameter "pageSize": Specifies the number of +// results to return per page. If there are fewer // elements than the specified number, returns all elements. // // If unset or 0, all the results will be returned. @@ -3024,8 +2417,8 @@ func (c *ProjectsBrokersV2CatalogListCall) PageSize(pageSize int64) *ProjectsBro return c } -// PageToken sets the optional parameter "pageToken": Specifies a page -// token to use. Set `pageToken` to a `nextPageToken` +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to a `nextPageToken` // returned by a previous list request to get the next page of results. func (c *ProjectsBrokersV2CatalogListCall) PageToken(pageToken string) *ProjectsBrokersV2CatalogListCall { c.urlParams_.Set("pageToken", pageToken) @@ -3033,33 +2426,29 @@ func (c *ProjectsBrokersV2CatalogListCall) PageToken(pageToken string) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2CatalogListCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2CatalogListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersV2CatalogListCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2CatalogListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2CatalogListCall) Context(ctx context.Context) *ProjectsBrokersV2CatalogListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2CatalogListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3068,12 +2457,7 @@ func (c *ProjectsBrokersV2CatalogListCall) Header() http.Header { } func (c *ProjectsBrokersV2CatalogListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3090,18 +2474,15 @@ func (c *ProjectsBrokersV2CatalogListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.catalog.list" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__ListCatalogResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudServicebrokerV1beta1__ListCatalogResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__ListCatalogResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2CatalogListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ListCatalogResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3109,17 +2490,17 @@ func (c *ProjectsBrokersV2CatalogListCall) Do(opts ...googleapi.CallOption) (*Go if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__ListCatalogResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3132,43 +2513,6 @@ func (c *ProjectsBrokersV2CatalogListCall) Do(opts ...googleapi.CallOption) (*Go return nil, err } return ret, nil - // { - // "description": "Lists all the Services registered with this broker for consumption for\ngiven service registry broker, which contains an set of services.\nNote, that Service producer API is separate from Broker API.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/catalog", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.v2.catalog.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. If unset or 0, all the results will be returned.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/v2/catalog", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__ListCatalogResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3176,7 +2520,7 @@ func (c *ProjectsBrokersV2CatalogListCall) Do(opts ...googleapi.CallOption) (*Go // The provided context supersedes any context provided to the Context method. func (c *ProjectsBrokersV2CatalogListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1beta1__ListCatalogResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -3192,8 +2536,6 @@ func (c *ProjectsBrokersV2CatalogListCall) Pages(ctx context.Context, f func(*Go } } -// method id "servicebroker.projects.brokers.v2.service_instances.create": - type ProjectsBrokersV2ServiceInstancesCreateCall struct { s *Service parent string @@ -3207,22 +2549,26 @@ type ProjectsBrokersV2ServiceInstancesCreateCall struct { // Create: Provisions a service instance. // If `request.accepts_incomplete` is false and Broker cannot execute // request -// synchronously HTTP 422 error will be returned along -// with +// synchronously HTTP 422 error will be returned along with // FAILED_PRECONDITION status. // If `request.accepts_incomplete` is true and the Broker decides to // execute -// resource asynchronously then HTTP 202 response code will be returned -// and a +// resource asynchronously then HTTP 202 response code will be returned and +// a // valid polling operation in the response will be included. // If Broker executes the request synchronously and it succeeds HTTP // 201 // response will be furnished. -// If identical instance exists, then HTTP 200 response will be -// returned. +// If identical instance exists, then HTTP 200 response will be returned. // If an instance with identical ID but mismatching parameters exists, // then // HTTP 409 status code will be returned. +// +// - instanceId: The id of the service instance. Must be unique within GCP +// project. +// +// Maximum length is 64, GUID recommended. +// - parent: Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. func (r *ProjectsBrokersV2ServiceInstancesService) Create(parent string, instanceId string, googlecloudservicebrokerv1beta1__serviceinstance *GoogleCloudServicebrokerV1beta1__ServiceInstance) *ProjectsBrokersV2ServiceInstancesCreateCall { c := &ProjectsBrokersV2ServiceInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3231,14 +2577,12 @@ func (r *ProjectsBrokersV2ServiceInstancesService) Create(parent string, instanc return c } -// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": -// Value indicating that API client supports asynchronous operations. -// If +// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": Value +// indicating that API client supports asynchronous operations. If // Broker cannot execute the request synchronously HTTP 422 code will // be // returned to HTTP clients along with FAILED_PRECONDITION error. -// If true and broker will execute request asynchronously 202 HTTP code -// will +// If true and broker will execute request asynchronously 202 HTTP code will // be returned. // This broker always requires this to be true as all mutator operations // are @@ -3249,23 +2593,21 @@ func (c *ProjectsBrokersV2ServiceInstancesCreateCall) AcceptsIncomplete(acceptsI } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3274,18 +2616,12 @@ func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Header() http.Header { } func (c *ProjectsBrokersV2ServiceInstancesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1beta1__serviceinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/v2/service_instances/{+instance_id}") @@ -3299,19 +2635,15 @@ func (c *ProjectsBrokersV2ServiceInstancesCreateCall) doRequest(alt string) (*ht "parent": c.parent, "instance_id": c.instanceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.create" call. -// Exactly one of -// *GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3319,17 +2651,17 @@ func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3342,51 +2674,7 @@ func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Provisions a service instance.\nIf `request.accepts_incomplete` is false and Broker cannot execute request\nsynchronously HTTP 422 error will be returned along with\nFAILED_PRECONDITION status.\nIf `request.accepts_incomplete` is true and the Broker decides to execute\nresource asynchronously then HTTP 202 response code will be returned and a\nvalid polling operation in the response will be included.\nIf Broker executes the request synchronously and it succeeds HTTP 201\nresponse will be furnished.\nIf identical instance exists, then HTTP 200 response will be returned.\nIf an instance with identical ID but mismatching parameters exists, then\nHTTP 409 status code will be returned.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}", - // "httpMethod": "PUT", - // "id": "servicebroker.projects.brokers.v2.service_instances.create", - // "parameterOrder": [ - // "parent", - // "instance_id" - // ], - // "parameters": { - // "acceptsIncomplete": { - // "description": "Value indicating that API client supports asynchronous operations. If\nBroker cannot execute the request synchronously HTTP 422 code will be\nreturned to HTTP clients along with FAILED_PRECONDITION error.\nIf true and broker will execute request asynchronously 202 HTTP code will\nbe returned.\nThis broker always requires this to be true as all mutator operations are\nasynchronous.", - // "location": "query", - // "type": "boolean" - // }, - // "instance_id": { - // "description": "The id of the service instance. Must be unique within GCP project.\nMaximum length is 64, GUID recommended.\nRequired.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/v2/service_instances/{+instance_id}", - // "request": { - // "$ref": "GoogleCloudServicebrokerV1beta1__ServiceInstance" - // }, - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.delete": +} type ProjectsBrokersV2ServiceInstancesDeleteCall struct { s *Service @@ -3401,51 +2689,57 @@ type ProjectsBrokersV2ServiceInstancesDeleteCall struct { // CreateServiceInstance // method. // If service instance does not exist HTTP 410 status will be returned. +// +// - name: Name must match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +// + +// `v2/service_instances/[INSTANCE_ID]` +// or +// +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. func (r *ProjectsBrokersV2ServiceInstancesService) Delete(name string) *ProjectsBrokersV2ServiceInstancesDeleteCall { c := &ProjectsBrokersV2ServiceInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": -// See CreateServiceInstanceRequest for details. +// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": See +// CreateServiceInstanceRequest for details. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesDeleteCall { c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete)) return c } -// PlanId sets the optional parameter "planId": The plan id of the -// service instance. +// PlanId sets the optional parameter "planId": The plan id of the service +// instance. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) PlanId(planId string) *ProjectsBrokersV2ServiceInstancesDeleteCall { c.urlParams_.Set("planId", planId) return c } -// ServiceId sets the optional parameter "serviceId": The service id of -// the service instance. +// ServiceId sets the optional parameter "serviceId": The service id of the +// service instance. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) ServiceId(serviceId string) *ProjectsBrokersV2ServiceInstancesDeleteCall { c.urlParams_.Set("serviceId", serviceId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3454,12 +2748,7 @@ func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Header() http.Header { } func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3473,19 +2762,15 @@ func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.delete" call. -// Exactly one of -// *GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3493,17 +2778,17 @@ func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Do(opts ...googleapi.CallO if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3516,50 +2801,7 @@ func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Do(opts ...googleapi.CallO return nil, err } return ret, nil - // { - // "description": "Deprovisions a service instance.\nFor synchronous/asynchronous request details see CreateServiceInstance\nmethod.\nIf service instance does not exist HTTP 410 status will be returned.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}", - // "httpMethod": "DELETE", - // "id": "servicebroker.projects.brokers.v2.service_instances.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "acceptsIncomplete": { - // "description": "See CreateServiceInstanceRequest for details.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +\n`v2/service_instances/[INSTANCE_ID]`\nor\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "planId": { - // "description": "The plan id of the service instance.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "The service id of the service instance.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.get": +} type ProjectsBrokersV2ServiceInstancesGetCall struct { s *Service @@ -3576,9 +2818,16 @@ type ProjectsBrokersV2ServiceInstancesGetCall struct { // resource path. // i.e. both `projects/*/brokers/*/instances/*` // -// and `projects/*/brokers/*/v2/service_instances/*` are acceptable +// and `projects/*/brokers/*/v2/service_instances/*` are acceptable paths. // -// paths. +// - name: The resource name of the instance to return. +// Name must match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +// + +// `v2/service_instances/[INSTANCE_ID]` +// or +// +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. func (r *ProjectsBrokersV2ServiceInstancesService) Get(name string) *ProjectsBrokersV2ServiceInstancesGetCall { c := &ProjectsBrokersV2ServiceInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3586,33 +2835,29 @@ func (r *ProjectsBrokersV2ServiceInstancesService) Get(name string) *ProjectsBro } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersV2ServiceInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesGetCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3621,12 +2866,7 @@ func (c *ProjectsBrokersV2ServiceInstancesGetCall) Header() http.Header { } func (c *ProjectsBrokersV2ServiceInstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3643,18 +2883,15 @@ func (c *ProjectsBrokersV2ServiceInstancesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.get" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__ServiceInstance or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1beta1__ServiceInstance.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__ServiceInstance.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ServiceInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3662,17 +2899,17 @@ func (c *ProjectsBrokersV2ServiceInstancesGetCall) Do(opts ...googleapi.CallOpti if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__ServiceInstance{ ServerResponse: googleapi.ServerResponse{ @@ -3685,35 +2922,7 @@ func (c *ProjectsBrokersV2ServiceInstancesGetCall) Do(opts ...googleapi.CallOpti return nil, err } return ret, nil - // { - // "description": "Gets the given service instance from the system.\nThe API call accepts both OSB style API and standard google style API\nresource path.\ni.e. both `projects/*/brokers/*/instances/*`\n and `projects/*/brokers/*/v2/service_instances/*` are acceptable paths.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.v2.service_instances.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of the instance to return.\nName must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +\n`v2/service_instances/[INSTANCE_ID]`\nor\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__ServiceInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.getLast_operation": +} type ProjectsBrokersV2ServiceInstancesGetLastOperationCall struct { s *Service @@ -3724,9 +2933,13 @@ type ProjectsBrokersV2ServiceInstancesGetLastOperationCall struct { header_ http.Header } -// GetLastOperation: Returns the state of the last operation for the -// service instance. +// GetLastOperation: Returns the state of the last operation for the service +// instance. // Only last (or current) operation can be polled. +// +// - name: Name must match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+ +// `service_instances/[INSTANCE_ID]`. func (r *ProjectsBrokersV2ServiceInstancesService) GetLastOperation(name string) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall { c := &ProjectsBrokersV2ServiceInstancesGetLastOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3754,33 +2967,29 @@ func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) ServiceId(servic } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3789,12 +2998,7 @@ func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Header() http.He } func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3811,18 +3015,15 @@ func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.getLast_operation" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__Operation or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3830,17 +3031,17 @@ func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Do(opts ...googl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3853,50 +3054,7 @@ func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Do(opts ...googl return nil, err } return ret, nil - // { - // "description": "Returns the state of the last operation for the service instance.\nOnly last (or current) operation can be polled.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/last_operation", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.v2.service_instances.getLast_operation", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+\n `service_instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "operation": { - // "description": "If `operation` was returned during mutation operation, this field must be\npopulated with the provided value.", - // "location": "query", - // "type": "string" - // }, - // "planId": { - // "description": "Plan id.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "Service id.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}/last_operation", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.patch": +} type ProjectsBrokersV2ServiceInstancesPatchCall struct { s *Service @@ -3909,6 +3067,11 @@ type ProjectsBrokersV2ServiceInstancesPatchCall struct { // Patch: Updates an existing service instance. // See CreateServiceInstance for possible response codes. +// +// - name: Name must +// match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_I +// D]`. func (r *ProjectsBrokersV2ServiceInstancesService) Patch(name string, googlecloudservicebrokerv1beta1__serviceinstance *GoogleCloudServicebrokerV1beta1__ServiceInstance) *ProjectsBrokersV2ServiceInstancesPatchCall { c := &ProjectsBrokersV2ServiceInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3916,31 +3079,29 @@ func (r *ProjectsBrokersV2ServiceInstancesService) Patch(name string, googleclou return c } -// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": -// See CreateServiceInstanceRequest for details. +// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": See +// CreateServiceInstanceRequest for details. func (c *ProjectsBrokersV2ServiceInstancesPatchCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesPatchCall { c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3949,18 +3110,12 @@ func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Header() http.Header { } func (c *ProjectsBrokersV2ServiceInstancesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1beta1__serviceinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") @@ -3973,19 +3128,15 @@ func (c *ProjectsBrokersV2ServiceInstancesPatchCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.patch" call. -// Exactly one of -// *GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse.Server -// Response.Header or (if a response was returned at all) in +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3993,17 +3144,17 @@ func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4016,43 +3167,7 @@ func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Updates an existing service instance.\nSee CreateServiceInstance for possible response codes.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}", - // "httpMethod": "PATCH", - // "id": "servicebroker.projects.brokers.v2.service_instances.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "acceptsIncomplete": { - // "description": "See CreateServiceInstanceRequest for details.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudServicebrokerV1beta1__ServiceInstance" - // }, - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.create": +} type ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall struct { s *Service @@ -4064,9 +3179,19 @@ type ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall struct { header_ http.Header } -// Create: CreateBinding generates a service binding to an existing -// service instance. +// Create: CreateBinding generates a service binding to an existing service +// instance. // See ProviServiceInstance for async operation details. +// +// - bindingId: The id of the binding. Must be unique within GCP +// project. +// +// Maximum length is 64, GUID recommended. +// - parent: The GCP container. +// Must +// match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_I +// D]`. func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Create(parent string, bindingId string, googlecloudservicebrokerv1beta1__binding *GoogleCloudServicebrokerV1beta1__Binding) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall { c := &ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4075,31 +3200,29 @@ func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Create(parent return c } -// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": -// See CreateServiceInstanceRequest for details. +// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": See +// CreateServiceInstanceRequest for details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall { c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4108,18 +3231,12 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Header() ht } func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1beta1__binding) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/service_bindings/{+binding_id}") @@ -4133,19 +3250,17 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) doRequest(a "parent": c.parent, "binding_id": c.bindingId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.create" call. -// Exactly one of -// *GoogleCloudServicebrokerV1beta1__CreateBindingResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudServicebrokerV1beta1__CreateBindingResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__CreateBindingResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__CreateBindingResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4153,17 +3268,17 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Do(opts ... if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__CreateBindingResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4176,51 +3291,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "CreateBinding generates a service binding to an existing service instance.\nSee ProviServiceInstance for async operation details.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}", - // "httpMethod": "PUT", - // "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.create", - // "parameterOrder": [ - // "parent", - // "binding_id" - // ], - // "parameters": { - // "acceptsIncomplete": { - // "description": "See CreateServiceInstanceRequest for details.", - // "location": "query", - // "type": "boolean" - // }, - // "binding_id": { - // "description": "The id of the binding. Must be unique within GCP project.\nMaximum length is 64, GUID recommended.\nRequired.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // }, - // "parent": { - // "description": "The GCP container.\nMust match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/service_bindings/{+binding_id}", - // "request": { - // "$ref": "GoogleCloudServicebrokerV1beta1__Binding" - // }, - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__CreateBindingResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.delete": +} type ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall struct { s *Service @@ -4235,21 +3306,29 @@ type ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall struct { // CreateServiceInstance // method. // If binding does not exist HTTP 410 status will be returned. +// +// - name: Name must +// match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +// `v2/service_instances/[INSTANCE_ID]/service_bindings/[BINDING_ID]` +// or +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +// `/instances/[INSTANCE_ID]/bindings/[BINDING_ID]`. func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Delete(name string) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall { c := &ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": -// See CreateServiceInstanceRequest for details. +// AcceptsIncomplete sets the optional parameter "acceptsIncomplete": See +// CreateServiceInstanceRequest for details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall { c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete)) return c } -// PlanId sets the optional parameter "planId": The plan id of the -// service instance. +// PlanId sets the optional parameter "planId": The plan id of the service +// instance. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) PlanId(planId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall { c.urlParams_.Set("planId", planId) return c @@ -4264,23 +3343,21 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) ServiceId(s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4289,12 +3366,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Header() ht } func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4308,19 +3380,17 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.delete" call. -// Exactly one of -// *GoogleCloudServicebrokerV1beta1__DeleteBindingResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudServicebrokerV1beta1__DeleteBindingResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__DeleteBindingResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__DeleteBindingResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4328,17 +3398,17 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Do(opts ... if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__DeleteBindingResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4351,50 +3421,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Do(opts ... return nil, err } return ret, nil - // { - // "description": "Unbinds from a service instance.\nFor synchronous/asynchronous request details see CreateServiceInstance\nmethod.\nIf binding does not exist HTTP 410 status will be returned.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}", - // "httpMethod": "DELETE", - // "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "acceptsIncomplete": { - // "description": "See CreateServiceInstanceRequest for details.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/`\n`v2/service_instances/[INSTANCE_ID]/service_bindings/[BINDING_ID]`\nor\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/`\n`/instances/[INSTANCE_ID]/bindings/[BINDING_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+/service_bindings/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "planId": { - // "description": "The plan id of the service instance.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "Additional query parameter hints.\nThe service id of the service instance.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__DeleteBindingResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.get": +} type ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall struct { s *Service @@ -4406,6 +3433,11 @@ type ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall struct { } // Get: GetBinding returns the binding information. +// +// - name: Name must +// match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_I +// D]/service_bindings`. func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Get(name string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall { c := &ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4425,33 +3457,29 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) ServiceId(serv } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4460,12 +3488,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Header() http. } func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4482,18 +3505,15 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.get" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__GetBindingResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudServicebrokerV1beta1__GetBindingResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__GetBindingResponse.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__GetBindingResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4501,17 +3521,17 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Do(opts ...goo if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__GetBindingResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4524,45 +3544,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Do(opts ...goo return nil, err } return ret, nil - // { - // "description": "GetBinding returns the binding information.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_bindings`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+/service_bindings/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "planId": { - // "description": "Plan id.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "Service id.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__GetBindingResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation": +} type ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall struct { s *Service @@ -4576,6 +3558,11 @@ type ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall struct // GetLastOperation: Returns the state of the last operation for the // binding. // Only last (or current) operation can be polled. +// +// - name: Name must +// match +// `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_I +// D]/service_binding/[BINDING_ID]`. func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) GetLastOperation(name string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall { c := &ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4603,33 +3590,29 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) S } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4638,12 +3621,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) H } func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4660,18 +3638,15 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) d googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation" call. -// Exactly one of *GoogleCloudServicebrokerV1beta1__Operation or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4679,17 +3654,17 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) D if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleCloudServicebrokerV1beta1__Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4702,50 +3677,7 @@ func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) D return nil, err } return ret, nil - // { - // "description": "Returns the state of the last operation for the binding.\nOnly last (or current) operation can be polled.", - // "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}/last_operation", - // "httpMethod": "GET", - // "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_binding/[BINDING_ID]`.", - // "location": "path", - // "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+/service_bindings/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "operation": { - // "description": "If `operation` was returned during mutation operation, this field must be\npopulated with the provided value.", - // "location": "query", - // "type": "string" - // }, - // "planId": { - // "description": "Plan id.", - // "location": "query", - // "type": "string" - // }, - // "serviceId": { - // "description": "Service id.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}/last_operation", - // "response": { - // "$ref": "GoogleCloudServicebrokerV1beta1__Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.getIamPolicy": +} type V1beta1GetIamPolicyCall struct { s *Service @@ -4760,6 +3692,10 @@ type V1beta1GetIamPolicyCall struct { // Returns an empty policy if the resource exists and does not have a // policy // set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *V1beta1Service) GetIamPolicy(resource string) *V1beta1GetIamPolicyCall { c := &V1beta1GetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -4770,12 +3706,12 @@ func (r *V1beta1Service) GetIamPolicy(resource string) *V1beta1GetIamPolicyCall // "options.requestedPolicyVersion": The policy format version to be // returned. // -// Valid values are 0, 1, and 3. Requests specifying an invalid value -// will be +// Valid values are 0, 1, and 3. Requests specifying an invalid value will +// be // rejected. // -// Requests for policies with any conditional bindings must specify -// version 3. +// Requests for policies with any conditional bindings must specify version +// 3. // Policies without any conditional bindings may specify any valid value // or // leave the field unset. @@ -4785,33 +3721,29 @@ func (c *V1beta1GetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequested } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1beta1GetIamPolicyCall) Fields(s ...googleapi.Field) *V1beta1GetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *V1beta1GetIamPolicyCall) IfNoneMatch(entityTag string) *V1beta1GetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1beta1GetIamPolicyCall) Context(ctx context.Context) *V1beta1GetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1beta1GetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4820,12 +3752,7 @@ func (c *V1beta1GetIamPolicyCall) Header() http.Header { } func (c *V1beta1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4842,16 +3769,15 @@ func (c *V1beta1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.getIamPolicy" call. -// Exactly one of *GoogleIamV1__Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *V1beta1GetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4859,17 +3785,17 @@ func (c *V1beta1GetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1 if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1__Policy{ ServerResponse: googleapi.ServerResponse{ @@ -4882,41 +3808,7 @@ func (c *V1beta1GetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1 return nil, err } return ret, nil - // { - // "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", - // "flatPath": "v1beta1/{v1beta1Id}:getIamPolicy", - // "httpMethod": "GET", - // "id": "servicebroker.getIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The policy format version to be returned.\n\nValid values are 0, 1, and 3. Requests specifying an invalid value will be\nrejected.\n\nRequests for policies with any conditional bindings must specify version 3.\nPolicies without any conditional bindings may specify any valid value or\nleave the field unset.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^.+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:getIamPolicy", - // "response": { - // "$ref": "GoogleIamV1__Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.setIamPolicy": +} type V1beta1SetIamPolicyCall struct { s *Service @@ -4927,12 +3819,15 @@ type V1beta1SetIamPolicyCall struct { header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any // existing policy. // -// Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and -// PERMISSION_DENIED +// Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. +// See the operation documentation for the appropriate value for this field. func (r *V1beta1Service) SetIamPolicy(resource string, googleiamv1__setiampolicyrequest *GoogleIamV1__SetIamPolicyRequest) *V1beta1SetIamPolicyCall { c := &V1beta1SetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -4941,23 +3836,21 @@ func (r *V1beta1Service) SetIamPolicy(resource string, googleiamv1__setiampolicy } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1beta1SetIamPolicyCall) Fields(s ...googleapi.Field) *V1beta1SetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1beta1SetIamPolicyCall) Context(ctx context.Context) *V1beta1SetIamPolicyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1beta1SetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4966,18 +3859,12 @@ func (c *V1beta1SetIamPolicyCall) Header() http.Header { } func (c *V1beta1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1__setiampolicyrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") @@ -4990,16 +3877,15 @@ func (c *V1beta1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.setIamPolicy" call. -// Exactly one of *GoogleIamV1__Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1__Policy.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *V1beta1SetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5007,17 +3893,17 @@ func (c *V1beta1SetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1 if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1__Policy{ ServerResponse: googleapi.ServerResponse{ @@ -5030,38 +3916,7 @@ func (c *V1beta1SetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1 return nil, err } return ret, nil - // { - // "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.\n\nCan return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED", - // "flatPath": "v1beta1/{v1beta1Id}:setIamPolicy", - // "httpMethod": "POST", - // "id": "servicebroker.setIamPolicy", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^.+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1__SetIamPolicyRequest" - // }, - // "response": { - // "$ref": "GoogleIamV1__Policy" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "servicebroker.testIamPermissions": +} type V1beta1TestIamPermissionsCall struct { s *Service @@ -5072,8 +3927,8 @@ type V1beta1TestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // If the resource does not exist, this will return an empty set // of // permissions, not a NOT_FOUND error. @@ -5083,6 +3938,10 @@ type V1beta1TestIamPermissionsCall struct { // UIs and command-line tools, not for authorization checking. This // operation // may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. +// See the operation documentation for the appropriate value for this field. func (r *V1beta1Service) TestIamPermissions(resource string, googleiamv1__testiampermissionsrequest *GoogleIamV1__TestIamPermissionsRequest) *V1beta1TestIamPermissionsCall { c := &V1beta1TestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5091,23 +3950,21 @@ func (r *V1beta1Service) TestIamPermissions(resource string, googleiamv1__testia } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *V1beta1TestIamPermissionsCall) Fields(s ...googleapi.Field) *V1beta1TestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *V1beta1TestIamPermissionsCall) Context(ctx context.Context) *V1beta1TestIamPermissionsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *V1beta1TestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5116,18 +3973,12 @@ func (c *V1beta1TestIamPermissionsCall) Header() http.Header { } func (c *V1beta1TestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1__testiampermissionsrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") @@ -5140,17 +3991,15 @@ func (c *V1beta1TestIamPermissionsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicebroker.testIamPermissions" call. -// Exactly one of *GoogleIamV1__TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleIamV1__TestIamPermissionsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1__TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *V1beta1TestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5158,17 +4007,17 @@ func (c *V1beta1TestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Googl if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GoogleIamV1__TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5181,33 +4030,4 @@ func (c *V1beta1TestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Googl return nil, err } return ret, nil - // { - // "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.", - // "flatPath": "v1beta1/{v1beta1Id}:testIamPermissions", - // "httpMethod": "POST", - // "id": "servicebroker.testIamPermissions", - // "parameterOrder": [ - // "resource" - // ], - // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", - // "location": "path", - // "pattern": "^.+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "GoogleIamV1__TestIamPermissionsRequest" - // }, - // "response": { - // "$ref": "GoogleIamV1__TestIamPermissionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go index 118f96f33c3..655d095298e 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go @@ -4320,7 +4320,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.operations.cancel" call. @@ -4418,7 +4418,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.operations.delete" call. @@ -4527,7 +4527,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.operations.get" call. @@ -4655,7 +4655,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.operations.list" call. @@ -4820,7 +4820,7 @@ func (c *ServicesSearchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.search" call. @@ -4948,7 +4948,7 @@ func (c *ServicesTenancyUnitsAddProjectCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.tenancyUnits.addProject" call. @@ -5063,7 +5063,7 @@ func (c *ServicesTenancyUnitsApplyProjectConfigCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.tenancyUnits.applyProjectConfig" call. @@ -5173,7 +5173,7 @@ func (c *ServicesTenancyUnitsAttachProjectCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.tenancyUnits.attachProject" call. @@ -5282,7 +5282,7 @@ func (c *ServicesTenancyUnitsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.tenancyUnits.create" call. @@ -5379,7 +5379,7 @@ func (c *ServicesTenancyUnitsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.tenancyUnits.delete" call. @@ -5488,7 +5488,7 @@ func (c *ServicesTenancyUnitsDeleteProjectCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.tenancyUnits.deleteProject" call. @@ -5626,7 +5626,7 @@ func (c *ServicesTenancyUnitsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.tenancyUnits.list" call. @@ -5756,7 +5756,7 @@ func (c *ServicesTenancyUnitsRemoveProjectCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.tenancyUnits.removeProject" call. @@ -5862,7 +5862,7 @@ func (c *ServicesTenancyUnitsUndeleteProjectCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.tenancyUnits.undeleteProject" call. diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go index 3227c14c6b3..3f399ba71df 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go @@ -4239,7 +4239,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.operations.get" call. @@ -4371,7 +4371,7 @@ func (c *ServicesConsumerQuotaMetricsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.get" call. @@ -4476,7 +4476,7 @@ func (c *ServicesConsumerQuotaMetricsImportProducerOverridesCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.importProducerOverrides" call. @@ -4580,7 +4580,7 @@ func (c *ServicesConsumerQuotaMetricsImportProducerQuotaPoliciesCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.importProducerQuotaPolicies" call. @@ -4729,7 +4729,7 @@ func (c *ServicesConsumerQuotaMetricsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.list" call. @@ -4884,7 +4884,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.limits.get" call. @@ -5036,7 +5036,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.limits.producerOverrides.create" call. @@ -5175,7 +5175,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.limits.producerOverrides.delete" call. @@ -5300,7 +5300,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.limits.producerOverrides.list" call. @@ -5474,7 +5474,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesPatchCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.limits.producerOverrides.patch" call. @@ -5610,7 +5610,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerQuotaPoliciesCreateCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.limits.producerQuotaPolicies.create" call. @@ -5733,7 +5733,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerQuotaPoliciesDeleteCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.limits.producerQuotaPolicies.delete" call. @@ -5858,7 +5858,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerQuotaPoliciesListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.limits.producerQuotaPolicies.list" call. @@ -6016,7 +6016,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerQuotaPoliciesPatchCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceconsumermanagement.services.consumerQuotaMetrics.limits.producerQuotaPolicies.patch" call. diff --git a/servicecontrol/v1/servicecontrol-gen.go b/servicecontrol/v1/servicecontrol-gen.go index 0409cad7805..a8e0c23900f 100644 --- a/servicecontrol/v1/servicecontrol-gen.go +++ b/servicecontrol/v1/servicecontrol-gen.go @@ -2874,7 +2874,7 @@ func (c *ServicesAllocateQuotaCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicecontrol.services.allocateQuota" call. @@ -2989,7 +2989,7 @@ func (c *ServicesCheckCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicecontrol.services.check" call. @@ -3102,7 +3102,7 @@ func (c *ServicesReportCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicecontrol.services.report" call. diff --git a/servicecontrol/v2/servicecontrol-gen.go b/servicecontrol/v2/servicecontrol-gen.go index 8d5172c2784..58fd1c1ea5d 100644 --- a/servicecontrol/v2/servicecontrol-gen.go +++ b/servicecontrol/v2/servicecontrol-gen.go @@ -1615,7 +1615,7 @@ func (c *ServicesCheckCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicecontrol.services.check" call. @@ -1731,7 +1731,7 @@ func (c *ServicesReportCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicecontrol.services.report" call. diff --git a/servicedirectory/v1/servicedirectory-gen.go b/servicedirectory/v1/servicedirectory-gen.go index 77f027c8acc..1c43309245e 100644 --- a/servicedirectory/v1/servicedirectory-gen.go +++ b/servicedirectory/v1/servicedirectory-gen.go @@ -1023,7 +1023,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.get" call. @@ -1154,7 +1154,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.list" call. @@ -1290,7 +1290,7 @@ func (c *ProjectsLocationsNamespacesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.create" call. @@ -1386,7 +1386,7 @@ func (c *ProjectsLocationsNamespacesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.delete" call. @@ -1493,7 +1493,7 @@ func (c *ProjectsLocationsNamespacesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.get" call. @@ -1597,7 +1597,7 @@ func (c *ProjectsLocationsNamespacesGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.getIamPolicy" call. @@ -1750,7 +1750,7 @@ func (c *ProjectsLocationsNamespacesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.list" call. @@ -1881,7 +1881,7 @@ func (c *ProjectsLocationsNamespacesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.patch" call. @@ -1985,7 +1985,7 @@ func (c *ProjectsLocationsNamespacesSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.setIamPolicy" call. @@ -2090,7 +2090,7 @@ func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.testIamPermissions" call. @@ -2203,7 +2203,7 @@ func (c *ProjectsLocationsNamespacesServicesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.create" call. @@ -2299,7 +2299,7 @@ func (c *ProjectsLocationsNamespacesServicesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.delete" call. @@ -2406,7 +2406,7 @@ func (c *ProjectsLocationsNamespacesServicesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.get" call. @@ -2510,7 +2510,7 @@ func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.getIamPolicy" call. @@ -2665,7 +2665,7 @@ func (c *ProjectsLocationsNamespacesServicesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.list" call. @@ -2796,7 +2796,7 @@ func (c *ProjectsLocationsNamespacesServicesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.patch" call. @@ -2898,7 +2898,7 @@ func (c *ProjectsLocationsNamespacesServicesResolveCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.resolve" call. @@ -3003,7 +3003,7 @@ func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.setIamPolicy" call. @@ -3108,7 +3108,7 @@ func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.testIamPermissions" call. @@ -3221,7 +3221,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.create" call. @@ -3316,7 +3316,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.delete" call. @@ -3423,7 +3423,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.get" call. @@ -3580,7 +3580,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.list" call. @@ -3711,7 +3711,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.patch" call. diff --git a/servicedirectory/v1beta1/servicedirectory-gen.go b/servicedirectory/v1beta1/servicedirectory-gen.go index f2ff34d40ba..5e961e9ce51 100644 --- a/servicedirectory/v1beta1/servicedirectory-gen.go +++ b/servicedirectory/v1beta1/servicedirectory-gen.go @@ -1047,7 +1047,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.get" call. @@ -1178,7 +1178,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.list" call. @@ -1314,7 +1314,7 @@ func (c *ProjectsLocationsNamespacesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.create" call. @@ -1410,7 +1410,7 @@ func (c *ProjectsLocationsNamespacesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.delete" call. @@ -1517,7 +1517,7 @@ func (c *ProjectsLocationsNamespacesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.get" call. @@ -1620,7 +1620,7 @@ func (c *ProjectsLocationsNamespacesGetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.getIamPolicy" call. @@ -1775,7 +1775,7 @@ func (c *ProjectsLocationsNamespacesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.list" call. @@ -1906,7 +1906,7 @@ func (c *ProjectsLocationsNamespacesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.patch" call. @@ -2009,7 +2009,7 @@ func (c *ProjectsLocationsNamespacesSetIamPolicyCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.setIamPolicy" call. @@ -2114,7 +2114,7 @@ func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.testIamPermissions" call. @@ -2227,7 +2227,7 @@ func (c *ProjectsLocationsNamespacesServicesCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.create" call. @@ -2323,7 +2323,7 @@ func (c *ProjectsLocationsNamespacesServicesDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.delete" call. @@ -2430,7 +2430,7 @@ func (c *ProjectsLocationsNamespacesServicesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.get" call. @@ -2533,7 +2533,7 @@ func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.getIamPolicy" call. @@ -2688,7 +2688,7 @@ func (c *ProjectsLocationsNamespacesServicesListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.list" call. @@ -2819,7 +2819,7 @@ func (c *ProjectsLocationsNamespacesServicesPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.patch" call. @@ -2921,7 +2921,7 @@ func (c *ProjectsLocationsNamespacesServicesResolveCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.resolve" call. @@ -3025,7 +3025,7 @@ func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.setIamPolicy" call. @@ -3130,7 +3130,7 @@ func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.testIamPermissions" call. @@ -3243,7 +3243,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.create" call. @@ -3338,7 +3338,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.delete" call. @@ -3445,7 +3445,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.get" call. @@ -3604,7 +3604,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.list" call. @@ -3735,7 +3735,7 @@ func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.patch" call. @@ -3838,7 +3838,7 @@ func (c *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.workloads.getIamPolicy" call. @@ -3941,7 +3941,7 @@ func (c *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.workloads.setIamPolicy" call. @@ -4046,7 +4046,7 @@ func (c *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicedirectory.projects.locations.namespaces.workloads.testIamPermissions" call. diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index b205ed59f43..81bb38c3629 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -4621,7 +4621,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.operations.get" call. @@ -4761,7 +4761,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.operations.list" call. @@ -4881,7 +4881,7 @@ func (c *ServicesCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.create" call. @@ -4981,7 +4981,7 @@ func (c *ServicesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.delete" call. @@ -5084,7 +5084,7 @@ func (c *ServicesGenerateConfigReportCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.generateConfigReport" call. @@ -5194,7 +5194,7 @@ func (c *ServicesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.get" call. @@ -5326,7 +5326,7 @@ func (c *ServicesGetConfigCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.getConfig" call. @@ -5430,7 +5430,7 @@ func (c *ServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.getIamPolicy" call. @@ -5562,7 +5562,7 @@ func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.list" call. @@ -5689,7 +5689,7 @@ func (c *ServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.setIamPolicy" call. @@ -5797,7 +5797,7 @@ func (c *ServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.testIamPermissions" call. @@ -5898,7 +5898,7 @@ func (c *ServicesUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.undelete" call. @@ -6005,7 +6005,7 @@ func (c *ServicesConfigsCreateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.configs.create" call. @@ -6134,7 +6134,7 @@ func (c *ServicesConfigsGetCall) doRequest(alt string) (*http.Response, error) { "serviceName": c.serviceName, "configId": c.configId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.configs.get" call. @@ -6259,7 +6259,7 @@ func (c *ServicesConfigsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.configs.list" call. @@ -6390,7 +6390,7 @@ func (c *ServicesConfigsSubmitCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.configs.submit" call. @@ -6494,7 +6494,7 @@ func (c *ServicesConsumersGetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.consumers.getIamPolicy" call. @@ -6599,7 +6599,7 @@ func (c *ServicesConsumersSetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.consumers.setIamPolicy" call. @@ -6707,7 +6707,7 @@ func (c *ServicesConsumersTestIamPermissionsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.consumers.testIamPermissions" call. @@ -6819,7 +6819,7 @@ func (c *ServicesRolloutsCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.rollouts.create" call. @@ -6932,7 +6932,7 @@ func (c *ServicesRolloutsGetCall) doRequest(alt string) (*http.Response, error) "serviceName": c.serviceName, "rolloutId": c.rolloutId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.rollouts.get" call. @@ -7066,7 +7066,7 @@ func (c *ServicesRolloutsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "serviceName": c.serviceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicemanagement.services.rollouts.list" call. diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index 817b59f7525..fb473f607d9 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20240901", + "revision": "20240916", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -1614,6 +1614,10 @@ "deprecated": true, "description": "Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest", "type": "string" + }, + "selectiveGapicGeneration": { + "$ref": "SelectiveGapicGeneration", + "description": "Configuration for which RPCs should be generated in the GAPIC client." } }, "type": "object" @@ -3623,6 +3627,20 @@ }, "type": "object" }, + "SelectiveGapicGeneration": { + "description": "This message is used to configure the generation of a subset of the RPCs in a service for client libraries.", + "id": "SelectiveGapicGeneration", + "properties": { + "methods": { + "description": "An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Service": { "description": "`Service` is the root object of Google API service configuration (service config). It describes the basic information about a logical service, such as the service name and the user-facing title, and delegates other aspects to sub-sections. Each sub-section is either a proto message or a repeated proto message that configures a specific aspect, such as auth. For more information, see each proto message definition. Example: type: google.api.Service name: calendar.googleapis.com title: Google Calendar API apis: - name: google.calendar.v3.Calendar visibility: rules: - selector: \"google.calendar.v3.*\" restriction: PREVIEW backend: rules: - selector: \"google.calendar.v3.*\" address: calendar.example.com authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: \"*\" requirements: provider_id: google_calendar_auth", "id": "Service", diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index 01c27cb6eec..4447b2852b1 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -1137,6 +1137,9 @@ type CommonLanguageSettings struct { // ReferenceDocsUri: Link to automatically generated reference documentation. // Example: https://cloud.google.com/nodejs/docs/reference/asset/latest ReferenceDocsUri string `json:"referenceDocsUri,omitempty"` + // SelectiveGapicGeneration: Configuration for which RPCs should be generated + // in the GAPIC client. + SelectiveGapicGeneration *SelectiveGapicGeneration `json:"selectiveGapicGeneration,omitempty"` // ForceSendFields is a list of field names (e.g. "Destinations") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4242,6 +4245,30 @@ func (s SecondaryIpRangeSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// SelectiveGapicGeneration: This message is used to configure the generation +// of a subset of the RPCs in a service for client libraries. +type SelectiveGapicGeneration struct { + // Methods: An allowlist of the fully qualified names of RPCs that should be + // included on public client surfaces. + Methods []string `json:"methods,omitempty"` + // ForceSendFields is a list of field names (e.g. "Methods") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Methods") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SelectiveGapicGeneration) MarshalJSON() ([]byte, error) { + type NoMethod SelectiveGapicGeneration + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Service: `Service` is the root object of Google API service configuration // (service config). It describes the basic information about a logical // service, such as the service name and the user-facing title, and delegates @@ -4958,7 +4985,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.operations.cancel" call. @@ -5056,7 +5083,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.operations.delete" call. @@ -5165,7 +5192,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.operations.get" call. @@ -5293,7 +5320,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.operations.list" call. @@ -5429,7 +5456,7 @@ func (c *ServicesAddSubnetworkCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.addSubnetwork" call. @@ -5532,7 +5559,7 @@ func (c *ServicesDisableVpcServiceControlsCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.disableVpcServiceControls" call. @@ -5635,7 +5662,7 @@ func (c *ServicesEnableVpcServiceControlsCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.enableVpcServiceControls" call. @@ -5743,7 +5770,7 @@ func (c *ServicesSearchRangeCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.searchRange" call. @@ -5849,7 +5876,7 @@ func (c *ServicesValidateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.validate" call. @@ -5959,7 +5986,7 @@ func (c *ServicesConnectionsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.connections.create" call. @@ -6066,7 +6093,7 @@ func (c *ServicesConnectionsDeleteConnectionCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.connections.deleteConnection" call. @@ -6189,7 +6216,7 @@ func (c *ServicesConnectionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.connections.list" call. @@ -6312,7 +6339,7 @@ func (c *ServicesConnectionsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.connections.patch" call. @@ -6416,7 +6443,7 @@ func (c *ServicesDnsRecordSetsAddCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.dnsRecordSets.add" call. @@ -6556,7 +6583,7 @@ func (c *ServicesDnsRecordSetsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.dnsRecordSets.get" call. @@ -6684,7 +6711,7 @@ func (c *ServicesDnsRecordSetsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.dnsRecordSets.list" call. @@ -6789,7 +6816,7 @@ func (c *ServicesDnsRecordSetsRemoveCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.dnsRecordSets.remove" call. @@ -6893,7 +6920,7 @@ func (c *ServicesDnsRecordSetsUpdateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.dnsRecordSets.update" call. @@ -6998,7 +7025,7 @@ func (c *ServicesDnsZonesAddCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.dnsZones.add" call. @@ -7103,7 +7130,7 @@ func (c *ServicesDnsZonesRemoveCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.dnsZones.remove" call. @@ -7228,7 +7255,7 @@ func (c *ServicesProjectsGlobalNetworksGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.projects.global.networks.get" call. @@ -7343,7 +7370,7 @@ func (c *ServicesProjectsGlobalNetworksGetVpcServiceControlsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.projects.global.networks.getVpcServiceControls" call. @@ -7455,7 +7482,7 @@ func (c *ServicesProjectsGlobalNetworksUpdateConsumerConfigCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.projects.global.networks.updateConsumerConfig" call. @@ -7570,7 +7597,7 @@ func (c *ServicesProjectsGlobalNetworksDnsZonesGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.projects.global.networks.dnsZones.get" call. @@ -7687,7 +7714,7 @@ func (c *ServicesProjectsGlobalNetworksDnsZonesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.projects.global.networks.dnsZones.list" call. @@ -7799,7 +7826,7 @@ func (c *ServicesProjectsGlobalNetworksPeeredDnsDomainsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.projects.global.networks.peeredDnsDomains.create" call. @@ -7902,7 +7929,7 @@ func (c *ServicesProjectsGlobalNetworksPeeredDnsDomainsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.projects.global.networks.peeredDnsDomains.delete" call. @@ -8016,7 +8043,7 @@ func (c *ServicesProjectsGlobalNetworksPeeredDnsDomainsListCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.projects.global.networks.peeredDnsDomains.list" call. @@ -8123,7 +8150,7 @@ func (c *ServicesRolesAddCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.roles.add" call. diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index 0c0f132fd17..350570b5953 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20240901", + "revision": "20240916", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -775,6 +775,10 @@ "deprecated": true, "description": "Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest", "type": "string" + }, + "selectiveGapicGeneration": { + "$ref": "SelectiveGapicGeneration", + "description": "Configuration for which RPCs should be generated in the GAPIC client." } }, "type": "object" @@ -2552,6 +2556,20 @@ }, "type": "object" }, + "SelectiveGapicGeneration": { + "description": "This message is used to configure the generation of a subset of the RPCs in a service for client libraries.", + "id": "SelectiveGapicGeneration", + "properties": { + "methods": { + "description": "An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Service": { "description": "`Service` is the root object of Google API service configuration (service config). It describes the basic information about a logical service, such as the service name and the user-facing title, and delegates other aspects to sub-sections. Each sub-section is either a proto message or a repeated proto message that configures a specific aspect, such as auth. For more information, see each proto message definition. Example: type: google.api.Service name: calendar.googleapis.com title: Google Calendar API apis: - name: google.calendar.v3.Calendar visibility: rules: - selector: \"google.calendar.v3.*\" restriction: PREVIEW backend: rules: - selector: \"google.calendar.v3.*\" address: calendar.example.com authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: \"*\" requirements: provider_id: google_calendar_auth", "id": "Service", diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 0347f58348e..a3106d53ce1 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -867,6 +867,9 @@ type CommonLanguageSettings struct { // ReferenceDocsUri: Link to automatically generated reference documentation. // Example: https://cloud.google.com/nodejs/docs/reference/asset/latest ReferenceDocsUri string `json:"referenceDocsUri,omitempty"` + // SelectiveGapicGeneration: Configuration for which RPCs should be generated + // in the GAPIC client. + SelectiveGapicGeneration *SelectiveGapicGeneration `json:"selectiveGapicGeneration,omitempty"` // ForceSendFields is a list of field names (e.g. "Destinations") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3548,6 +3551,30 @@ func (s SecondaryIpRange) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// SelectiveGapicGeneration: This message is used to configure the generation +// of a subset of the RPCs in a service for client libraries. +type SelectiveGapicGeneration struct { + // Methods: An allowlist of the fully qualified names of RPCs that should be + // included on public client surfaces. + Methods []string `json:"methods,omitempty"` + // ForceSendFields is a list of field names (e.g. "Methods") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Methods") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SelectiveGapicGeneration) MarshalJSON() ([]byte, error) { + type NoMethod SelectiveGapicGeneration + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Service: `Service` is the root object of Google API service configuration // (service config). It describes the basic information about a logical // service, such as the service name and the user-facing title, and delegates @@ -4099,7 +4126,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.operations.get" call. @@ -4214,7 +4241,7 @@ func (c *ServicesAddSubnetworkCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.addSubnetwork" call. @@ -4322,7 +4349,7 @@ func (c *ServicesSearchRangeCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.searchRange" call. @@ -4443,7 +4470,7 @@ func (c *ServicesUpdateConnectionsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.updateConnections" call. @@ -4553,7 +4580,7 @@ func (c *ServicesConnectionsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.connections.create" call. @@ -4676,7 +4703,7 @@ func (c *ServicesConnectionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "servicenetworking.services.connections.list" call. diff --git a/serviceusage/v1/serviceusage-gen.go b/serviceusage/v1/serviceusage-gen.go index c2427353227..471161b7731 100644 --- a/serviceusage/v1/serviceusage-gen.go +++ b/serviceusage/v1/serviceusage-gen.go @@ -4500,7 +4500,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.operations.cancel" call. @@ -4598,7 +4598,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.operations.delete" call. @@ -4707,7 +4707,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.operations.get" call. @@ -4835,7 +4835,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.operations.list" call. @@ -4963,7 +4963,7 @@ func (c *ServicesBatchEnableCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.batchEnable" call. @@ -5083,7 +5083,7 @@ func (c *ServicesBatchGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.batchGet" call. @@ -5192,7 +5192,7 @@ func (c *ServicesDisableCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.disable" call. @@ -5298,7 +5298,7 @@ func (c *ServicesEnableCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.enable" call. @@ -5408,7 +5408,7 @@ func (c *ServicesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.get" call. @@ -5549,7 +5549,7 @@ func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.list" call. diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index 6e95959492e..4d56e3a9763 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -4994,7 +4994,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.operations.get" call. @@ -5122,7 +5122,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.operations.list" call. @@ -5249,7 +5249,7 @@ func (c *ServicesBatchEnableCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.batchEnable" call. @@ -5358,7 +5358,7 @@ func (c *ServicesDisableCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.disable" call. @@ -5465,7 +5465,7 @@ func (c *ServicesEnableCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.enable" call. @@ -5565,7 +5565,7 @@ func (c *ServicesGenerateServiceIdentityCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.generateServiceIdentity" call. @@ -5675,7 +5675,7 @@ func (c *ServicesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.get" call. @@ -5812,7 +5812,7 @@ func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.list" call. @@ -5965,7 +5965,7 @@ func (c *ServicesConsumerQuotaMetricsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.get" call. @@ -6070,7 +6070,7 @@ func (c *ServicesConsumerQuotaMetricsImportAdminOverridesCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.importAdminOverrides" call. @@ -6174,7 +6174,7 @@ func (c *ServicesConsumerQuotaMetricsImportConsumerOverridesCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.importConsumerOverrides" call. @@ -6324,7 +6324,7 @@ func (c *ServicesConsumerQuotaMetricsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.list" call. @@ -6477,7 +6477,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.limits.get" call. @@ -6622,7 +6622,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesCreateCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.create" call. @@ -6755,7 +6755,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesDeleteCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.delete" call. @@ -6880,7 +6880,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.list" call. @@ -7048,7 +7048,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesPatchCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.patch" call. @@ -7191,7 +7191,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.create" call. @@ -7325,7 +7325,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.delete" call. @@ -7450,7 +7450,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.list" call. @@ -7619,7 +7619,7 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesPatchCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.patch" call. diff --git a/serviceuser/v1/serviceuser-gen.go b/serviceuser/v1/serviceuser-gen.go index b4012673fa1..ac707133f84 100644 --- a/serviceuser/v1/serviceuser-gen.go +++ b/serviceuser/v1/serviceuser-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/service-management/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // serviceuserService, err := serviceuser.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // serviceuserService, err := serviceuser.NewService(ctx, option.WithScopes(serviceuser.ServiceManagementScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // serviceuserService, err := serviceuser.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // serviceuserService, err := serviceuser.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package serviceuser // import "google.golang.org/api/serviceuser/v1" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "serviceuser:v1" const apiName = "serviceuser" const apiVersion = "v1" const basePath = "https://serviceuser.googleapis.com/" +const basePathTemplate = "https://serviceuser.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -92,13 +111,16 @@ const ( // NewService creates a new APIService. func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/service.management", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -175,8 +197,7 @@ type ServicesService struct { s *APIService } -// Api: Api is a light-weight descriptor for an API -// Interface. +// Api: Api is a light-weight descriptor for an API Interface. // // Interfaces are also described as "protocol buffer services" in some // contexts, @@ -186,105 +207,85 @@ type ServicesService struct { // interface // as opposed to simply a description of methods and bindings. They are // also -// sometimes simply referred to as "APIs" in other contexts, such as the -// name of -// this message itself. See -// https://cloud.google.com/apis/design/glossary for +// sometimes simply referred to as "APIs" in other contexts, such as the name +// of +// this message itself. See https://cloud.google.com/apis/design/glossary +// for // detailed terminology. type Api struct { // Methods: The methods of this interface, in unspecified order. Methods []*Method `json:"methods,omitempty"` - // Mixins: Included interfaces. See Mixin. Mixins []*Mixin `json:"mixins,omitempty"` - // Name: The fully qualified name of this interface, including package // name // followed by the interface's simple name. Name string `json:"name,omitempty"` - // Options: Any metadata attached to the interface. Options []*Option `json:"options,omitempty"` - - // SourceContext: Source context for the protocol buffer service - // represented by this + // SourceContext: Source context for the protocol buffer service represented by + // this // message. SourceContext *SourceContext `json:"sourceContext,omitempty"` - // Syntax: The source syntax of the service. // // Possible values: // "SYNTAX_PROTO2" - Syntax `proto2`. // "SYNTAX_PROTO3" - Syntax `proto3`. Syntax string `json:"syntax,omitempty"` - - // Version: A version string for this interface. If specified, must have - // the form + // Version: A version string for this interface. If specified, must have the + // form // `major-version.minor-version`, as in `1.10`. If the minor version // is // omitted, it defaults to zero. If the entire version field is empty, // the // major version is derived from the package name, as outlined below. If // the - // field is not empty, the version in the package name will be verified - // to be + // field is not empty, the version in the package name will be verified to + // be // consistent with what is provided here. // - // The versioning schema uses [semantic - // versioning](http://semver.org) where the major version - // number - // indicates a breaking change and the minor version an - // additive, + // The versioning schema uses semantic + // versioning (http://semver.org) where the major version number + // indicates a breaking change and the minor version an additive, // non-breaking change. Both version numbers are signals to users - // what to expect from different versions, and should be - // carefully + // what to expect from different versions, and should be carefully // chosen based on the product plan. // - // The major version is also reflected in the package name of - // the - // interface, which must end in `v`, as - // in + // The major version is also reflected in the package name of the + // interface, which must end in `v`, as in // `google.feature.v1`. For major versions 0 and 1, the suffix can // be omitted. Zero major versions must only be used for // experimental, non-GA interfaces. // Version string `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Methods") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Methods") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Methods") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Methods") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Api) MarshalJSON() ([]byte, error) { +func (s Api) MarshalJSON() ([]byte, error) { type NoMethod Api - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuthProvider: Configuration for an anthentication provider, including // support for -// [JSON Web Token -// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32) -// . +// JSON Web Token (JWT) +// (https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). type AuthProvider struct { - // Audiences: The list of - // JWT - // [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web- - // token-32#section-4.1.3). - // that are allowed to access. A JWT containing any of these audiences - // will + // Audiences: The list of JWT + // audiences + // (https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + // that are allowed to access. A JWT containing any of these audiences will // be accepted. When this setting is absent, only JWTs with // audience // "https://Service_name/API_name" @@ -292,93 +293,77 @@ type AuthProvider struct { // setting, // LibraryService API will only accept JWTs with the following // audience - // "https://library-example.googleapis.com/google.example.librar - // y.v1.LibraryService". + // "https://library-example.googleapis.com/google.example.library.v1.LibraryServ + // ice". // // Example: // // audiences: bookstore_android.apps.googleusercontent.com, // bookstore_web.apps.googleusercontent.com Audiences string `json:"audiences,omitempty"` - - // AuthorizationUrl: Redirect URL if JWT token is required but no - // present or is expired. + // AuthorizationUrl: Redirect URL if JWT token is required but no present or is + // expired. // Implement authorizationUrl of securityDefinitions in OpenAPI spec. AuthorizationUrl string `json:"authorizationUrl,omitempty"` - - // Id: The unique identifier of the auth provider. It will be referred - // to by + // Id: The unique identifier of the auth provider. It will be referred to + // by // `AuthRequirement.provider_id`. // // Example: "bookstore_auth". Id string `json:"id,omitempty"` - // Issuer: Identifies the principal that issued the JWT. // See - // https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#sec - // tion-4.1.1 + // https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 // Usually a URL or an email address. // // Example: https://securetoken.google.com // Example: 1234567-compute@developer.gserviceaccount.com Issuer string `json:"issuer,omitempty"` - - // JwksUri: URL of the provider's public key set to validate signature - // of the JWT. See - // [OpenID - // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# - // ProviderMetadata). + // JwksUri: URL of the provider's public key set to validate signature of the + // JWT. See + // OpenID Discovery + // (https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). // Optional if the key set document: // - can be retrieved from // [OpenID // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html - // // of the issuer. // - can be inferred from the email domain of the issuer (e.g. a Google // service account). // // Example: https://www.googleapis.com/oauth2/v1/certs JwksUri string `json:"jwksUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Audiences") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audiences") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audiences") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuthProvider) MarshalJSON() ([]byte, error) { +func (s AuthProvider) MarshalJSON() ([]byte, error) { type NoMethod AuthProvider - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AuthRequirement: User-defined authentication requirements, including -// support for -// [JSON Web Token -// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32) -// . +// AuthRequirement: User-defined authentication requirements, including support +// for +// JSON Web Token (JWT) +// (https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). type AuthRequirement struct { - // Audiences: NOTE: This will be deprecated soon, once - // AuthProvider.audiences is + // Audiences: NOTE: This will be deprecated soon, once AuthProvider.audiences + // is // implemented and accepted in all the runtime components. // - // The list of - // JWT - // [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web- - // token-32#section-4.1.3). - // that are allowed to access. A JWT containing any of these audiences - // will + // The list of JWT + // audiences + // (https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + // that are allowed to access. A JWT containing any of these audiences will // be accepted. When this setting is absent, only JWTs with // audience // "https://Service_name/API_name" @@ -386,47 +371,40 @@ type AuthRequirement struct { // setting, // LibraryService API will only accept JWTs with the following // audience - // "https://library-example.googleapis.com/google.example.librar - // y.v1.LibraryService". + // "https://library-example.googleapis.com/google.example.library.v1.LibraryServ + // ice". // // Example: // // audiences: bookstore_android.apps.googleusercontent.com, // bookstore_web.apps.googleusercontent.com Audiences string `json:"audiences,omitempty"` - // ProviderId: id from authentication provider. // // Example: // // provider_id: bookstore_auth ProviderId string `json:"providerId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Audiences") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audiences") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audiences") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuthRequirement) MarshalJSON() ([]byte, error) { +func (s AuthRequirement) MarshalJSON() ([]byte, error) { type NoMethod AuthRequirement - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Authentication: `Authentication` defines the authentication -// configuration for an API. +// Authentication: `Authentication` defines the authentication configuration +// for an API. // // Example for an API targeted for external use: // @@ -444,95 +422,75 @@ type Authentication struct { // Providers: Defines a set of authentication providers that a service // supports. Providers []*AuthProvider `json:"providers,omitempty"` - // Rules: A list of authentication rules that apply to individual API // methods. // - // **NOTE:** All service configuration rules follow "last one wins" - // order. + // **NOTE:** All service configuration rules follow "last one wins" order. Rules []*AuthenticationRule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "Providers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Providers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Providers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Authentication) MarshalJSON() ([]byte, error) { +func (s Authentication) MarshalJSON() ([]byte, error) { type NoMethod Authentication - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuthenticationRule: Authentication rules for the service. // // By default, if a method has any authentication requirements, every // request -// must include a valid credential matching one of the -// requirements. +// must include a valid credential matching one of the requirements. // It's an error to include more than one kind of credential in a // single // request. // -// If a method doesn't have any auth requirements, request credentials -// will be +// If a method doesn't have any auth requirements, request credentials will +// be // ignored. type AuthenticationRule struct { - // AllowWithoutCredential: If true, the service accepts API keys without - // any other credential. + // AllowWithoutCredential: If true, the service accepts API keys without any + // other credential. AllowWithoutCredential bool `json:"allowWithoutCredential,omitempty"` - // Oauth: The requirements for OAuth credentials. Oauth *OAuthRequirements `json:"oauth,omitempty"` - // Requirements: Requirements for additional authentication providers. Requirements []*AuthRequirement `json:"requirements,omitempty"` - // Selector: Selects the methods to which this rule applies. // // Refer to selector for syntax details. Selector string `json:"selector,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllowWithoutCredential") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AllowWithoutCredential") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowWithoutCredential") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowWithoutCredential") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuthenticationRule) MarshalJSON() ([]byte, error) { +func (s AuthenticationRule) MarshalJSON() ([]byte, error) { type NoMethod AuthenticationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuthorizationConfig: Configuration of authorization. // -// This section determines the authorization provider, if unspecified, -// then no +// This section determines the authorization provider, if unspecified, then +// no // authorization check will be done. // // Example: @@ -545,28 +503,22 @@ type AuthorizationConfig struct { // as // firebaserules.googleapis.com. Provider string `json:"provider,omitempty"` - // ForceSendFields is a list of field names (e.g. "Provider") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Provider") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Provider") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AuthorizationConfig) MarshalJSON() ([]byte, error) { +func (s AuthorizationConfig) MarshalJSON() ([]byte, error) { type NoMethod AuthorizationConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Backend: `Backend` defines the backend configuration for a service. @@ -574,76 +526,59 @@ type Backend struct { // Rules: A list of API backend rules that apply to individual API // methods. // - // **NOTE:** All service configuration rules follow "last one wins" - // order. + // **NOTE:** All service configuration rules follow "last one wins" order. Rules []*BackendRule `json:"rules,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Rules") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Rules") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Rules") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Backend) MarshalJSON() ([]byte, error) { +func (s Backend) MarshalJSON() ([]byte, error) { type NoMethod Backend - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BackendRule: A backend rule provides configuration for an individual -// API element. +// BackendRule: A backend rule provides configuration for an individual API +// element. type BackendRule struct { // Address: The address of the API backend. Address string `json:"address,omitempty"` - - // Deadline: The number of seconds to wait for a response from a - // request. The default - // deadline for gRPC is infinite (no deadline) and HTTP requests is 5 - // seconds. + // Deadline: The number of seconds to wait for a response from a request. The + // default + // deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds. Deadline float64 `json:"deadline,omitempty"` - - // MinDeadline: Minimum deadline in seconds needed for this method. - // Calls having deadline + // MinDeadline: Minimum deadline in seconds needed for this method. Calls + // having deadline // value lower than this will be rejected. MinDeadline float64 `json:"minDeadline,omitempty"` - // Selector: Selects the methods to which this rule applies. // // Refer to selector for syntax details. Selector string `json:"selector,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BackendRule) MarshalJSON() ([]byte, error) { +func (s BackendRule) MarshalJSON() ([]byte, error) { type NoMethod BackendRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *BackendRule) UnmarshalJSON(data []byte) error { @@ -672,94 +607,74 @@ func (s *BackendRule) UnmarshalJSON(data []byte) error { // - type: library.googleapis.com/branch // labels: // - key: /city -// description: The city where the library branch is located -// -// in. -// - key: /name -// description: The name of the branch. -// metrics: -// - name: library.googleapis.com/book/borrowed_count -// metric_kind: DELTA -// value_type: INT64 -// billing: -// consumer_destinations: -// - monitored_resource: library.googleapis.com/branch -// metrics: -// - library.googleapis.com/book/borrowed_count +// description: The city where the library branch is located in. +// - key: /name +// description: The name of the branch. +// metrics: +// - name: library.googleapis.com/book/borrowed_count +// metric_kind: DELTA +// value_type: INT64 +// billing: +// consumer_destinations: +// - monitored_resource: library.googleapis.com/branch +// metrics: +// - library.googleapis.com/book/borrowed_count type Billing struct { - // ConsumerDestinations: Billing configurations for sending metrics to - // the consumer project. - // There can be multiple consumer destinations per service, each one - // must have - // a different monitored resource type. A metric can be used in at - // most + // ConsumerDestinations: Billing configurations for sending metrics to the + // consumer project. + // There can be multiple consumer destinations per service, each one must + // have + // a different monitored resource type. A metric can be used in at most // one consumer destination. ConsumerDestinations []*BillingDestination `json:"consumerDestinations,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConsumerDestinations") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ConsumerDestinations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConsumerDestinations") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConsumerDestinations") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Billing) MarshalJSON() ([]byte, error) { +func (s Billing) MarshalJSON() ([]byte, error) { type NoMethod Billing - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BillingDestination: Configuration of a specific billing destination // (Currently only support // bill against consumer project). type BillingDestination struct { - // Metrics: Names of the metrics to report to this billing - // destination. + // Metrics: Names of the metrics to report to this billing destination. // Each name must be defined in Service.metrics section. Metrics []string `json:"metrics,omitempty"` - - // MonitoredResource: The monitored resource type. The type must be - // defined in + // MonitoredResource: The monitored resource type. The type must be defined + // in // Service.monitored_resources section. MonitoredResource string `json:"monitoredResource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Metrics") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Metrics") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Metrics") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BillingDestination) MarshalJSON() ([]byte, error) { +func (s BillingDestination) MarshalJSON() ([]byte, error) { type NoMethod BillingDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Context: `Context` defines which contexts an API -// requests. +// Context: `Context` defines which contexts an API requests. // // Example: // @@ -776,156 +691,125 @@ func (s *BillingDestination) MarshalJSON() ([]byte, error) { // and // `google.rpc.context.OriginContext`. // -// Available context types are defined in -// package +// Available context types are defined in package // `google.rpc.context`. // -// This also provides mechanism to whitelist any protobuf message -// extension that -// can be sent in grpc metadata using -// “x-goog-ext--bin” +// This also provides mechanism to whitelist any protobuf message extension +// that +// can be sent in grpc metadata using “x-goog-ext--bin” // and // “x-goog-ext--jspb” format. For example, list any // service -// specific protobuf types that can appear in grpc metadata as follows -// in your +// specific protobuf types that can appear in grpc metadata as follows in +// your // yaml file: // // Example: // // context: // rules: -// - selector: -// -// "google.example.library.v1.LibraryService.CreateBook" -// -// allowed_request_extensions: -// - google.foo.v1.NewExtension -// allowed_response_extensions: -// - google.foo.v1.NewExtension -// -// You can also specify extension ID instead of fully qualified -// extension name +// - selector: "google.example.library.v1.LibraryService.CreateBook" +// allowed_request_extensions: +// - google.foo.v1.NewExtension +// allowed_response_extensions: +// - google.foo.v1.NewExtension +// +// You can also specify extension ID instead of fully qualified extension +// name // here. type Context struct { // Rules: A list of RPC context rules that apply to individual API // methods. // - // **NOTE:** All service configuration rules follow "last one wins" - // order. + // **NOTE:** All service configuration rules follow "last one wins" order. Rules []*ContextRule `json:"rules,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Rules") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Rules") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Rules") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Context) MarshalJSON() ([]byte, error) { +func (s Context) MarshalJSON() ([]byte, error) { type NoMethod Context - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContextRule: A context rule provides information about the context -// for an individual API +// ContextRule: A context rule provides information about the context for an +// individual API // element. type ContextRule struct { - // AllowedRequestExtensions: A list of full type names or extension IDs - // of extensions allowed in grpc + // AllowedRequestExtensions: A list of full type names or extension IDs of + // extensions allowed in grpc // side channel from client to backend. AllowedRequestExtensions []string `json:"allowedRequestExtensions,omitempty"` - - // AllowedResponseExtensions: A list of full type names or extension IDs - // of extensions allowed in grpc + // AllowedResponseExtensions: A list of full type names or extension IDs of + // extensions allowed in grpc // side channel from backend to client. AllowedResponseExtensions []string `json:"allowedResponseExtensions,omitempty"` - // Provided: A list of full type names of provided contexts. Provided []string `json:"provided,omitempty"` - // Requested: A list of full type names of requested contexts. Requested []string `json:"requested,omitempty"` - // Selector: Selects the methods to which this rule applies. // // Refer to selector for syntax details. Selector string `json:"selector,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllowedRequestExtensions") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AllowedRequestExtensions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedRequestExtensions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowedRequestExtensions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ContextRule) MarshalJSON() ([]byte, error) { +func (s ContextRule) MarshalJSON() ([]byte, error) { type NoMethod ContextRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Control: Selects and configures the service controller used by the -// service. The +// Control: Selects and configures the service controller used by the service. +// The // service controller handles features like abuse, quota, billing, // logging, // monitoring, etc. type Control struct { - // Environment: The service control environment to use. If empty, no - // control plane + // Environment: The service control environment to use. If empty, no control + // plane // feature (like quota and billing) will be enabled. Environment string `json:"environment,omitempty"` - // ForceSendFields is a list of field names (e.g. "Environment") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Environment") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Environment") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Control) MarshalJSON() ([]byte, error) { +func (s Control) MarshalJSON() ([]byte, error) { type NoMethod Control - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomError: Customize service error responses. For example, list -// any service -// specific protobuf types that can appear in error detail lists -// of +// CustomError: Customize service error responses. For example, list any +// service +// specific protobuf types that can appear in error detail lists of // error responses. // // Example: @@ -938,111 +822,87 @@ type CustomError struct { // Rules: The list of custom error rules that apply to individual API // messages. // - // **NOTE:** All service configuration rules follow "last one wins" - // order. + // **NOTE:** All service configuration rules follow "last one wins" order. Rules []*CustomErrorRule `json:"rules,omitempty"` - // Types: The list of custom error detail types, e.g. // 'google.foo.v1.CustomError'. Types []string `json:"types,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Rules") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Rules") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Rules") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomError) MarshalJSON() ([]byte, error) { +func (s CustomError) MarshalJSON() ([]byte, error) { type NoMethod CustomError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomErrorRule: A custom error rule. type CustomErrorRule struct { // IsErrorType: Mark this message as possible payload in error response. - // Otherwise, - // objects of this type will be filtered when they appear in error - // payload. + // Otherwise, + // objects of this type will be filtered when they appear in error payload. IsErrorType bool `json:"isErrorType,omitempty"` - // Selector: Selects messages to which this rule applies. // // Refer to selector for syntax details. Selector string `json:"selector,omitempty"` - // ForceSendFields is a list of field names (e.g. "IsErrorType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IsErrorType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IsErrorType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomErrorRule) MarshalJSON() ([]byte, error) { +func (s CustomErrorRule) MarshalJSON() ([]byte, error) { type NoMethod CustomErrorRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CustomHttpPattern: A custom pattern is used for defining custom HTTP -// verb. +// CustomHttpPattern: A custom pattern is used for defining custom HTTP verb. type CustomHttpPattern struct { // Kind: The name of this custom HTTP verb. Kind string `json:"kind,omitempty"` - // Path: The path matched by this custom verb. Path string `json:"path,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CustomHttpPattern) MarshalJSON() ([]byte, error) { +func (s CustomHttpPattern) MarshalJSON() ([]byte, error) { type NoMethod CustomHttpPattern - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DisableServiceRequest: Request message for DisableService method. type DisableServiceRequest struct { } -// Documentation: `Documentation` provides the information for -// describing a service. +// Documentation: `Documentation` provides the information for describing a +// service. // // Example: //
                  documentation:
                  @@ -1085,8 +945,7 @@ type DisableServiceRequest struct {
                   // notation can be
                   // used:
                   // 
                  [fully.qualified.proto.name][]
                  -// T -// o override the display text used for the link, this can be +// To override the display text used for the link, this can be // used: //
                  [display
                   // text][fully.qualified.proto.name]
                  @@ -1103,15 +962,12 @@ type DisableServiceRequest struct { // a collection in REST view. If it is not specified, tools attempt // to infer the resource from the operations in a // collection: -//
                  (== resource_for v1.shelves.books
                  -// ==)
                  -// The directive `suppress_warning` does not directly affect -// documentation +//
                  (== resource_for v1.shelves.books ==)
                  +// The directive `suppress_warning` does not directly affect documentation // and is documented together with service config validation. type Documentation struct { // DocumentationRootUrl: The URL to the root of documentation. DocumentationRootUrl string `json:"documentationRootUrl,omitempty"` - // Overview: Declares a single overview page. For // example: //
                  documentation:
                  @@ -1128,102 +984,79 @@ type Documentation struct {
                   	// 
                  // Note: you cannot specify both `overview` field and `pages` field. Overview string `json:"overview,omitempty"` - // Pages: The top level pages for the documentation set. Pages []*Page `json:"pages,omitempty"` - // Rules: A list of documentation rules that apply to individual API // elements. // - // **NOTE:** All service configuration rules follow "last one wins" - // order. + // **NOTE:** All service configuration rules follow "last one wins" order. Rules []*DocumentationRule `json:"rules,omitempty"` - - // Summary: A short summary of what the service does. Can only be - // provided by + // Summary: A short summary of what the service does. Can only be provided + // by // plain text. Summary string `json:"summary,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DocumentationRootUrl") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DocumentationRootUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DocumentationRootUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DocumentationRootUrl") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Documentation) MarshalJSON() ([]byte, error) { +func (s Documentation) MarshalJSON() ([]byte, error) { type NoMethod Documentation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DocumentationRule: A documentation rule provides information about // individual API elements. type DocumentationRule struct { - // DeprecationDescription: Deprecation description of the selected - // element(s). It can be provided if an + // DeprecationDescription: Deprecation description of the selected element(s). + // It can be provided if an // element is marked as `deprecated`. DeprecationDescription string `json:"deprecationDescription,omitempty"` - // Description: Description of the selected API(s). Description string `json:"description,omitempty"` - - // Selector: The selector is a comma-separated list of patterns. Each - // pattern is a + // Selector: The selector is a comma-separated list of patterns. Each pattern + // is a // qualified name of the element which may end in "*", indicating a // wildcard. // Wildcards are only allowed at the end and for a whole component of // the // qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". // To - // specify a default for all applicable elements, the whole pattern - // "*" + // specify a default for all applicable elements, the whole pattern "*" // is used. Selector string `json:"selector,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DeprecationDescription") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DeprecationDescription") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeprecationDescription") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DeprecationDescription") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DocumentationRule) MarshalJSON() ([]byte, error) { +func (s DocumentationRule) MarshalJSON() ([]byte, error) { type NoMethod DocumentationRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnableServiceRequest: Request message for EnableService method. type EnableServiceRequest struct { } -// Endpoint: `Endpoint` describes a network endpoint that serves a set -// of APIs. +// Endpoint: `Endpoint` describes a network endpoint that serves a set of +// APIs. // A service may expose any number of endpoints, and all endpoints share // the // same service configuration, such as quota configuration and @@ -1235,155 +1068,120 @@ type EnableServiceRequest struct { // name: library-example.googleapis.com // endpoints: // # Below entry makes 'google.example.library.v1.Library' -// # API be served from endpoint address -// -// library-example.googleapis.com. -// -// # It also allows HTTP OPTIONS calls to be passed to the -// -// backend, for -// +// # API be served from endpoint address library-example.googleapis.com. +// # It also allows HTTP OPTIONS calls to be passed to the backend, for // # it to decide whether the subsequent cross-origin request is // # allowed to proceed. // - name: library-example.googleapis.com // allow_cors: true type Endpoint struct { - // Aliases: DEPRECATED: This field is no longer supported. Instead of - // using aliases, + // Aliases: DEPRECATED: This field is no longer supported. Instead of using + // aliases, // please specify multiple google.api.Endpoint for each of the // intended // aliases. // // Additional names that this endpoint will be hosted on. Aliases []string `json:"aliases,omitempty"` - - // AllowCors: - // Allowing - // [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sh - // aring), aka - // cross-domain traffic, would allow the backends served from this - // endpoint to - // receive and respond to HTTP OPTIONS requests. The response will be - // used by + // AllowCors: Allowing + // CORS (https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), + // aka + // cross-domain traffic, would allow the backends served from this endpoint + // to + // receive and respond to HTTP OPTIONS requests. The response will be used + // by // the browser to determine whether the subsequent cross-origin request // is // allowed to proceed. AllowCors bool `json:"allowCors,omitempty"` - // Features: The list of features enabled on this endpoint. Features []string `json:"features,omitempty"` - // Name: The canonical name of this endpoint. Name string `json:"name,omitempty"` - - // Target: The specification of an Internet routable address of API - // frontend that will - // handle requests to this [API - // Endpoint](https://cloud.google.com/apis/design/glossary). + // Target: The specification of an Internet routable address of API frontend + // that will + // handle requests to this API Endpoint + // (https://cloud.google.com/apis/design/glossary). // It should be either a valid IPv4 address or a fully-qualified domain // name. // For example, "8.8.8.8" or "myservice.appspot.com". Target string `json:"target,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Aliases") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Aliases") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Aliases") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Aliases") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Endpoint) MarshalJSON() ([]byte, error) { +func (s Endpoint) MarshalJSON() ([]byte, error) { type NoMethod Endpoint - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Enum: Enum type definition. type Enum struct { // Enumvalue: Enum value definitions. Enumvalue []*EnumValue `json:"enumvalue,omitempty"` - // Name: Enum type name. Name string `json:"name,omitempty"` - // Options: Protocol buffer options. Options []*Option `json:"options,omitempty"` - // SourceContext: The source context. SourceContext *SourceContext `json:"sourceContext,omitempty"` - // Syntax: The source syntax. // // Possible values: // "SYNTAX_PROTO2" - Syntax `proto2`. // "SYNTAX_PROTO3" - Syntax `proto3`. Syntax string `json:"syntax,omitempty"` - // ForceSendFields is a list of field names (e.g. "Enumvalue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enumvalue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enumvalue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Enum) MarshalJSON() ([]byte, error) { +func (s Enum) MarshalJSON() ([]byte, error) { type NoMethod Enum - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // EnumValue: Enum value definition. type EnumValue struct { // Name: Enum value name. Name string `json:"name,omitempty"` - // Number: Enum value number. Number int64 `json:"number,omitempty"` - // Options: Protocol buffer options. Options []*Option `json:"options,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EnumValue) MarshalJSON() ([]byte, error) { +func (s EnumValue) MarshalJSON() ([]byte, error) { type NoMethod EnumValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Experimental: Experimental service configuration. These configuration @@ -1392,28 +1190,22 @@ func (s *EnumValue) MarshalJSON() ([]byte, error) { type Experimental struct { // Authorization: Authorization configuration. Authorization *AuthorizationConfig `json:"authorization,omitempty"` - // ForceSendFields is a list of field names (e.g. "Authorization") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Authorization") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Authorization") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Experimental) MarshalJSON() ([]byte, error) { +func (s Experimental) MarshalJSON() ([]byte, error) { type NoMethod Experimental - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Field: A single field of a message type. @@ -1426,14 +1218,11 @@ type Field struct { // "CARDINALITY_REQUIRED" - For required fields. Proto2 syntax only. // "CARDINALITY_REPEATED" - For repeated fields. Cardinality string `json:"cardinality,omitempty"` - - // DefaultValue: The string value of the default value of this field. - // Proto2 syntax only. + // DefaultValue: The string value of the default value of this field. Proto2 + // syntax only. DefaultValue string `json:"defaultValue,omitempty"` - // JsonName: The field JSON name. JsonName string `json:"jsonName,omitempty"` - // Kind: The field type. // // Possible values: @@ -1447,8 +1236,7 @@ type Field struct { // "TYPE_FIXED32" - Field type fixed32. // "TYPE_BOOL" - Field type bool. // "TYPE_STRING" - Field type string. - // "TYPE_GROUP" - Field type group. Proto2 syntax only, and - // deprecated. + // "TYPE_GROUP" - Field type group. Proto2 syntax only, and deprecated. // "TYPE_MESSAGE" - Field type message. // "TYPE_BYTES" - Field type bytes. // "TYPE_UINT32" - Field type uint32. @@ -1458,114 +1246,90 @@ type Field struct { // "TYPE_SINT32" - Field type sint32. // "TYPE_SINT64" - Field type sint64. Kind string `json:"kind,omitempty"` - // Name: The field name. Name string `json:"name,omitempty"` - // Number: The field number. Number int64 `json:"number,omitempty"` - - // OneofIndex: The index of the field type in `Type.oneofs`, for message - // or enumeration - // types. The first type has index 1; zero means the type is not in the - // list. + // OneofIndex: The index of the field type in `Type.oneofs`, for message or + // enumeration + // types. The first type has index 1; zero means the type is not in the list. OneofIndex int64 `json:"oneofIndex,omitempty"` - // Options: The protocol buffer options. Options []*Option `json:"options,omitempty"` - // Packed: Whether to use alternative packed wire representation. Packed bool `json:"packed,omitempty"` - // TypeUrl: The field type URL, without the scheme, for message or // enumeration // types. Example: "type.googleapis.com/google.protobuf.Timestamp". TypeUrl string `json:"typeUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "Cardinality") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cardinality") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cardinality") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Field) MarshalJSON() ([]byte, error) { +func (s Field) MarshalJSON() ([]byte, error) { type NoMethod Field - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Http: Defines the HTTP configuration for an API service. It contains -// a list of +// Http: Defines the HTTP configuration for an API service. It contains a list +// of // HttpRule, each specifying the mapping of an RPC method // to one or more HTTP REST API methods. type Http struct { - // FullyDecodeReservedExpansion: When set to true, URL path parmeters - // will be fully URI-decoded except in - // cases of single segment matches in reserved expansion, where "%2F" - // will be + // FullyDecodeReservedExpansion: When set to true, URL path parmeters will be + // fully URI-decoded except in + // cases of single segment matches in reserved expansion, where "%2F" will + // be // left encoded. // // The default behavior is to not decode RFC 6570 reserved characters in // multi // segment matches. FullyDecodeReservedExpansion bool `json:"fullyDecodeReservedExpansion,omitempty"` - - // Rules: A list of HTTP configuration rules that apply to individual - // API methods. + // Rules: A list of HTTP configuration rules that apply to individual API + // methods. // - // **NOTE:** All service configuration rules follow "last one wins" - // order. + // **NOTE:** All service configuration rules follow "last one wins" order. Rules []*HttpRule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "FullyDecodeReservedExpansion") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "FullyDecodeReservedExpansion") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "FullyDecodeReservedExpansion") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "FullyDecodeReservedExpansion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Http) MarshalJSON() ([]byte, error) { +func (s Http) MarshalJSON() ([]byte, error) { type NoMethod Http - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // HttpRule: # gRPC Transcoding // -// gRPC Transcoding is a feature for mapping between a gRPC method and -// one or +// gRPC Transcoding is a feature for mapping between a gRPC method and one +// or // more HTTP REST endpoints. It allows developers to build a single API // service // that supports both gRPC APIs and REST APIs. Many systems, including -// [Google -// APIs](https://github.com/googleapis/googleapis), -// [Cloud Endpoints](https://cloud.google.com/endpoints), -// [gRPC -// Gateway](https://github.com/grpc-ecosystem/grpc-gateway), -// and [Envoy](https://github.com/envoyproxy/envoy) proxy support this +// Google +// APIs (https://github.com/googleapis/googleapis), +// Cloud Endpoints (https://cloud.google.com/endpoints), gRPC +// Gateway (https://github.com/grpc-ecosystem/grpc-gateway), +// and Envoy (https://github.com/envoyproxy/envoy) proxy support this // feature // and use it for large scale production services. // @@ -1573,8 +1337,8 @@ func (s *Http) MarshalJSON() ([]byte, error) { // specifies // how different portions of the gRPC request message are mapped to the // URL -// path, URL query parameters, and HTTP request body. It also controls -// how the +// path, URL query parameters, and HTTP request body. It also controls how +// the // gRPC response message is mapped to the HTTP response body. `HttpRule` // is // typically specified as an `google.api.http` annotation on the gRPC @@ -1582,12 +1346,12 @@ func (s *Http) MarshalJSON() ([]byte, error) { // // Each mapping specifies a URL path template and an HTTP method. The // path -// template may refer to one or more fields in the gRPC request message, -// as long +// template may refer to one or more fields in the gRPC request message, as +// long // as each field is a non-repeated field with a primitive (non-message) // type. -// The path template controls how fields of the request message are -// mapped to +// The path template controls how fields of the request message are mapped +// to // the URL path. // // Example: @@ -1610,13 +1374,12 @@ func (s *Http) MarshalJSON() ([]byte, error) { // // HTTP | gRPC // -----|----- -// `GET /v1/messages/123456` | `GetMessage(name: -// "messages/123456")` +// `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` // // Any fields in the request message which are not bound by the path // template -// automatically become HTTP query parameters if there is no HTTP -// request body. +// automatically become HTTP query parameters if there is no HTTP request +// body. // For example: // // service Messaging { @@ -1631,11 +1394,8 @@ func (s *Http) MarshalJSON() ([]byte, error) { // string subfield = 1; // } // string message_id = 1; // Mapped to URL path. -// int64 revision = 2; // Mapped to URL query parameter -// -// `revision`. -// -// SubMessage sub = 3; // Mapped to URL query parameter +// int64 revision = 2; // Mapped to URL query parameter `revision`. +// SubMessage sub = 3; // Mapped to URL query parameter // // `sub.subfield`. // @@ -1646,23 +1406,21 @@ func (s *Http) MarshalJSON() ([]byte, error) { // HTTP | gRPC // -----|----- // `GET /v1/messages/123456?revision=2&sub.subfield=foo` | -// `GetMessage(message_id: "123456" revision: 2 sub: -// SubMessage(subfield: "foo"))` +// `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: +// "foo"))` // // Note that fields which are mapped to URL query parameters must have // a // primitive type or a repeated primitive type or a non-repeated message // type. -// In the case of a repeated type, the parameter can be repeated in the -// URL -// as `...?param=A¶m=B`. In the case of a message type, each field -// of the +// In the case of a repeated type, the parameter can be repeated in the URL +// as `...?param=A¶m=B`. In the case of a message type, each field of +// the // message is mapped to a separate parameter, such // as // `...?foo.a=A&foo.b=B&foo.c=C`. // -// For HTTP methods that allow a request body, the `body` -// field +// For HTTP methods that allow a request body, the `body` field // specifies the mapping. Consider a REST update method on the // message resource collection: // @@ -1679,23 +1437,18 @@ func (s *Http) MarshalJSON() ([]byte, error) { // Message message = 2; // mapped to the body // } // -// The following HTTP JSON to RPC mapping is enabled, where -// the -// representation of the JSON in the request body is determined -// by +// The following HTTP JSON to RPC mapping is enabled, where the +// representation of the JSON in the request body is determined by // protos JSON encoding: // // HTTP | gRPC // -----|----- -// `PATCH /v1/messages/123456 { "text": "Hi!" }` | -// `UpdateMessage(message_id: "123456" message { text: "Hi!" })` +// `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: +// "123456" message { text: "Hi!" })` // -// The special name `*` can be used in the body mapping to define -// that -// every field not bound by the path template should be mapped to -// the -// request body. This enables the following alternative definition -// of +// The special name `*` can be used in the body mapping to define that +// every field not bound by the path template should be mapped to the +// request body. This enables the following alternative definition of // the update method: // // service Messaging { @@ -1715,20 +1468,16 @@ func (s *Http) MarshalJSON() ([]byte, error) { // // HTTP | gRPC // -----|----- -// `PATCH /v1/messages/123456 { "text": "Hi!" }` | -// `UpdateMessage(message_id: "123456" text: "Hi!")` +// `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: +// "123456" text: "Hi!")` // -// Note that when using `*` in the body mapping, it is not possible -// to +// Note that when using `*` in the body mapping, it is not possible to // have HTTP parameters, as all fields not bound by the path end in -// the body. This makes this option more rarely used in practice -// when -// defining REST APIs. The common usage of `*` is in custom -// methods +// the body. This makes this option more rarely used in practice when +// defining REST APIs. The common usage of `*` is in custom methods // which don't use the URL at all for transferring data. // -// It is possible to define multiple HTTP methods for one RPC by -// using +// It is possible to define multiple HTTP methods for one RPC by using // the `additional_bindings` option. Example: // // service Messaging { @@ -1746,49 +1495,31 @@ func (s *Http) MarshalJSON() ([]byte, error) { // string user_id = 2; // } // -// This enables the following two alternative HTTP JSON to RPC -// mappings: +// This enables the following two alternative HTTP JSON to RPC mappings: // // HTTP | gRPC // -----|----- // `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` -// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" -// message_id: "123456")` +// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: +// "123456")` // // ## Rules for HTTP mapping // -// 1. Leaf request fields (recursive expansion nested messages in the -// request -// -// message) are classified into three categories: -// - Fields referred by the path template. They are passed via the -// -// URL path. -// - Fields referred by the HttpRule.body. They are passed via the -// -// HTTP -// -// request body. -// - All other fields are passed via the URL query parameters, and -// -// the -// -// parameter name is the field path in the request message. A -// -// repeated -// -// field can be represented as multiple query parameters under the -// -// same -// -// name. -// 2. If HttpRule.body is "*", there is no URL query parameter, all -// -// fields -// -// are passed via URL path and HTTP request body. -// 3. If HttpRule.body is omitted, there is no HTTP request body, all -// fields are passed via URL path and URL query parameters. +// 1. Leaf request fields (recursive expansion nested messages in the request +// message) are classified into three categories: +// - Fields referred by the path template. They are passed via the URL +// +// path. +// - Fields referred by the HttpRule.body. They are passed via the HTTP +// request body. +// - All other fields are passed via the URL query parameters, and the +// parameter name is the field path in the request message. A repeated +// field can be represented as multiple query parameters under the same +// name. +// 2. If HttpRule.body is "*", there is no URL query parameter, all fields +// are passed via URL path and HTTP request body. +// 3. If HttpRule.body is omitted, there is no HTTP request body, all +// fields are passed via URL path and URL query parameters. // // ### Path template syntax // @@ -1801,16 +1532,15 @@ func (s *Http) MarshalJSON() ([]byte, error) { // // The syntax `*` matches a single URL path segment. The syntax `**` // matches -// zero or more URL path segments, which must be the last part of the -// URL path +// zero or more URL path segments, which must be the last part of the URL +// path // except the `Verb`. // // The syntax `Variable` matches part of the URL path as specified by // its // template. A variable template must not contain other variables. If a // variable -// matches a single path segment, its template may be omitted, e.g. -// `{var}` +// matches a single path segment, its template may be omitted, e.g. `{var}` // is equivalent to `{var=*}`. // // The syntax `LITERAL` matches literal text in the URL path. If the @@ -1827,13 +1557,11 @@ func (s *Http) MarshalJSON() ([]byte, error) { // The // server side does the reverse decoding. Such variables show up in // the -// [Discovery -// Document](https://developers.google.com/discovery/v1/reference/apis) -// a -// s `{var}`. +// Discovery Document +// (https://developers.google.com/discovery/v1/reference/apis) +// as `{var}`. // -// If a variable contains multiple path segments, such as -// "{var=foo/*}" +// If a variable contains multiple path segments, such as "{var=foo/*}" // or "{var=**}", when such a variable is expanded into a URL path on // the // client side, all characters except `[-_.~/0-9a-zA-Z]` are @@ -1841,29 +1569,26 @@ func (s *Http) MarshalJSON() ([]byte, error) { // The server side does the reverse decoding, except "%2F" and "%2f" are // left // unchanged. Such variables show up in the -// [Discovery -// Document](https://developers.google.com/discovery/v1/reference/apis) -// a -// s `{+var}`. +// Discovery Document +// (https://developers.google.com/discovery/v1/reference/apis) +// as `{+var}`. // // ## Using gRPC API Service Configuration // // gRPC API Service Configuration (service config) is a configuration // language -// for configuring a gRPC service to become a user-facing product. -// The +// for configuring a gRPC service to become a user-facing product. The // service config is simply the YAML representation of the // `google.api.Service` // proto message. // // As an alternative to annotating your proto file, you can configure // gRPC -// transcoding in your service config YAML files. You do this by -// specifying a -// `HttpRule` that maps the gRPC method to a REST endpoint, achieving -// the same -// effect as the proto annotation. This can be particularly useful if -// you +// transcoding in your service config YAML files. You do this by specifying +// a +// `HttpRule` that maps the gRPC method to a REST endpoint, achieving the +// same +// effect as the proto annotation. This can be particularly useful if you // have a proto that is reused in multiple services. Note that any // transcoding // specified in the service config will override any matching @@ -1882,22 +1607,18 @@ func (s *Http) MarshalJSON() ([]byte, error) { // // When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, // the -// proto to JSON conversion must follow the -// [proto3 -// specification](https://developers.google.com/protocol-buffers/ -// docs/proto3#json). +// proto to JSON conversion must follow the proto3 +// specification +// (https://developers.google.com/protocol-buffers/docs/proto3#json). // // While the single segment variable follows the semantics of -// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple +// RFC 6570 (https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple // String // Expansion, the multi segment variable **does not** follow RFC 6570 // Section -// 3.2.3 Reserved Expansion. The reason is that the Reserved -// Expansion -// does not expand special characters like `?` and `#`, which would -// lead -// to invalid URLs. As the result, gRPC Transcoding uses a custom -// encoding +// 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion +// does not expand special characters like `?` and `#`, which would lead +// to invalid URLs. As the result, gRPC Transcoding uses a custom encoding // for multi segment variables. // // The path variables **must not** refer to any repeated or mapped @@ -1905,8 +1626,8 @@ func (s *Http) MarshalJSON() ([]byte, error) { // because client libraries are not capable of handling such variable // expansion. // -// The path variables **must not** capture the leading "/" character. -// The reason +// The path variables **must not** capture the leading "/" character. The +// reason // is that the most common use case "{var}" does not capture the leading // "/" // character. For consistency, all path variables must share the same @@ -1916,8 +1637,8 @@ func (s *Http) MarshalJSON() ([]byte, error) { // because // no client library can support such complicated mapping. // -// If an API needs to use a JSON array for request or response body, it -// can map +// If an API needs to use a JSON array for request or response body, it can +// map // the request or response body to a repeated field. However, some // gRPC // Transcoding implementations may not support this feature. @@ -1927,11 +1648,9 @@ type HttpRule struct { // not contain an `additional_bindings` field themselves (that is, // the nesting may only be one level deep). AdditionalBindings []*HttpRule `json:"additionalBindings,omitempty"` - // Body: The name of the request field whose value is mapped to the HTTP // request - // body, or `*` for mapping all request fields not captured by the - // path + // body, or `*` for mapping all request fields not captured by the path // pattern to the HTTP body, or omitted for not having any HTTP request // body. // @@ -1939,82 +1658,62 @@ type HttpRule struct { // request // message type. Body string `json:"body,omitempty"` - - // Custom: The custom pattern is used for specifying an HTTP method that - // is not - // included in the `pattern` field, such as HEAD, or "*" to leave - // the - // HTTP method unspecified for this rule. The wild-card rule is - // useful + // Custom: The custom pattern is used for specifying an HTTP method that is + // not + // included in the `pattern` field, such as HEAD, or "*" to leave the + // HTTP method unspecified for this rule. The wild-card rule is useful // for services that provide content to Web (HTML) clients. Custom *CustomHttpPattern `json:"custom,omitempty"` - // Delete: Maps to HTTP DELETE. Used for deleting a resource. Delete string `json:"delete,omitempty"` - // Get: Maps to HTTP GET. Used for listing and getting information // about // resources. Get string `json:"get,omitempty"` - // Patch: Maps to HTTP PATCH. Used for updating a resource. Patch string `json:"patch,omitempty"` - - // Post: Maps to HTTP POST. Used for creating a resource or performing - // an action. + // Post: Maps to HTTP POST. Used for creating a resource or performing an + // action. Post string `json:"post,omitempty"` - // Put: Maps to HTTP PUT. Used for replacing a resource. Put string `json:"put,omitempty"` - - // ResponseBody: Optional. The name of the response field whose value is - // mapped to the HTTP - // response body. When omitted, the entire response message will be - // used + // ResponseBody: Optional. The name of the response field whose value is mapped + // to the HTTP + // response body. When omitted, the entire response message will be used // as the HTTP response body. // // NOTE: The referred field must be present at the top-level of the // response // message type. ResponseBody string `json:"responseBody,omitempty"` - // Selector: Selects a method to which this rule applies. // // Refer to selector for syntax details. Selector string `json:"selector,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AdditionalBindings") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AdditionalBindings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdditionalBindings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AdditionalBindings") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *HttpRule) MarshalJSON() ([]byte, error) { +func (s HttpRule) MarshalJSON() ([]byte, error) { type NoMethod HttpRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LabelDescriptor: A description of a label. type LabelDescriptor struct { // Description: A human-readable description for the label. Description string `json:"description,omitempty"` - // Key: The label key. Key string `json:"key,omitempty"` - // ValueType: The type of data that can be assigned to the label. // // Possible values: @@ -2022,134 +1721,105 @@ type LabelDescriptor struct { // "BOOL" - Boolean; true or false. // "INT64" - A 64-bit signed integer. ValueType string `json:"valueType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LabelDescriptor) MarshalJSON() ([]byte, error) { +func (s LabelDescriptor) MarshalJSON() ([]byte, error) { type NoMethod LabelDescriptor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListEnabledServicesResponse: Response message for -// `ListEnabledServices` method. +// ListEnabledServicesResponse: Response message for `ListEnabledServices` +// method. type ListEnabledServicesResponse struct { - // NextPageToken: Token that can be passed to `ListEnabledServices` to - // resume a paginated + // NextPageToken: Token that can be passed to `ListEnabledServices` to resume a + // paginated // query. NextPageToken string `json:"nextPageToken,omitempty"` - // Services: Services enabled for the specified parent. Services []*PublishedService `json:"services,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListEnabledServicesResponse) MarshalJSON() ([]byte, error) { +func (s ListEnabledServicesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListEnabledServicesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // LogDescriptor: A description of a log type. Example in YAML format: // // - name: library.googleapis.com/activity_history -// description: The history of borrowing and returning library -// -// items. -// -// display_name: Activity -// labels: -// - key: /customer_id -// description: Identifier of a library customer +// description: The history of borrowing and returning library items. +// display_name: Activity +// labels: +// - key: /customer_id +// description: Identifier of a library customer type LogDescriptor struct { - // Description: A human-readable description of this log. This - // information appears in + // Description: A human-readable description of this log. This information + // appears in // the documentation and can contain details. Description string `json:"description,omitempty"` - - // DisplayName: The human-readable name for this log. This information - // appears on + // DisplayName: The human-readable name for this log. This information appears + // on // the user interface and should be concise. DisplayName string `json:"displayName,omitempty"` - - // Labels: The set of labels that are available to describe a specific - // log entry. - // Runtime requests that contain labels not specified here - // are + // Labels: The set of labels that are available to describe a specific log + // entry. + // Runtime requests that contain labels not specified here are // considered invalid. Labels []*LabelDescriptor `json:"labels,omitempty"` - - // Name: The name of the log. It must be less than 512 characters long - // and can + // Name: The name of the log. It must be less than 512 characters long and + // can // include the following characters: upper- and lower-case // alphanumeric // characters [A-Za-z0-9], and punctuation characters including // slash, underscore, hyphen, period [/_-.]. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LogDescriptor) MarshalJSON() ([]byte, error) { +func (s LogDescriptor) MarshalJSON() ([]byte, error) { type NoMethod LogDescriptor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Logging: Logging configuration of the service. // -// The following example shows how to configure logs to be sent to -// the -// producer and consumer projects. In the example, the -// `activity_history` +// The following example shows how to configure logs to be sent to the +// producer and consumer projects. In the example, the `activity_history` // log is sent to both the producer and consumer projects, whereas // the // `purchase_history` log is only sent to the producer project. @@ -2158,155 +1828,122 @@ func (s *LogDescriptor) MarshalJSON() ([]byte, error) { // - type: library.googleapis.com/branch // labels: // - key: /city -// description: The city where the library branch is located -// -// in. -// - key: /name -// description: The name of the branch. -// logs: -// - name: activity_history -// labels: -// - key: /customer_id -// - name: purchase_history -// logging: -// producer_destinations: -// - monitored_resource: library.googleapis.com/branch -// logs: -// - activity_history -// - purchase_history -// consumer_destinations: -// - monitored_resource: library.googleapis.com/branch -// logs: -// - activity_history +// description: The city where the library branch is located in. +// - key: /name +// description: The name of the branch. +// logs: +// - name: activity_history +// labels: +// - key: /customer_id +// - name: purchase_history +// logging: +// producer_destinations: +// - monitored_resource: library.googleapis.com/branch +// logs: +// - activity_history +// - purchase_history +// consumer_destinations: +// - monitored_resource: library.googleapis.com/branch +// logs: +// - activity_history type Logging struct { // ConsumerDestinations: Logging configurations for sending logs to the // consumer project. - // There can be multiple consumer destinations, each one must have - // a + // There can be multiple consumer destinations, each one must have a // different monitored resource type. A log can be used in at most // one consumer destination. ConsumerDestinations []*LoggingDestination `json:"consumerDestinations,omitempty"` - // ProducerDestinations: Logging configurations for sending logs to the // producer project. - // There can be multiple producer destinations, each one must have - // a + // There can be multiple producer destinations, each one must have a // different monitored resource type. A log can be used in at most // one producer destination. ProducerDestinations []*LoggingDestination `json:"producerDestinations,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConsumerDestinations") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ConsumerDestinations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConsumerDestinations") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConsumerDestinations") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Logging) MarshalJSON() ([]byte, error) { +func (s Logging) MarshalJSON() ([]byte, error) { type NoMethod Logging - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LoggingDestination: Configuration of a specific logging destination -// (the producer project +// LoggingDestination: Configuration of a specific logging destination (the +// producer project // or the consumer project). type LoggingDestination struct { - // Logs: Names of the logs to be sent to this destination. Each name - // must + // Logs: Names of the logs to be sent to this destination. Each name must // be defined in the Service.logs section. If the log name is // not a domain scoped name, it will be automatically prefixed with // the service name followed by "/". Logs []string `json:"logs,omitempty"` - - // MonitoredResource: The monitored resource type. The type must be - // defined in the + // MonitoredResource: The monitored resource type. The type must be defined in + // the // Service.monitored_resources section. MonitoredResource string `json:"monitoredResource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Logs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Logs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Logs") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Logs") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LoggingDestination) MarshalJSON() ([]byte, error) { +func (s LoggingDestination) MarshalJSON() ([]byte, error) { type NoMethod LoggingDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Method: Method represents a method of an API interface. type Method struct { // Name: The simple name of this method. Name string `json:"name,omitempty"` - // Options: Any metadata attached to the method. Options []*Option `json:"options,omitempty"` - // RequestStreaming: If true, the request is streamed. RequestStreaming bool `json:"requestStreaming,omitempty"` - // RequestTypeUrl: A URL of the input message type. RequestTypeUrl string `json:"requestTypeUrl,omitempty"` - // ResponseStreaming: If true, the response is streamed. ResponseStreaming bool `json:"responseStreaming,omitempty"` - // ResponseTypeUrl: The URL of the output message type. ResponseTypeUrl string `json:"responseTypeUrl,omitempty"` - // Syntax: The source syntax of this method. // // Possible values: // "SYNTAX_PROTO2" - Syntax `proto2`. // "SYNTAX_PROTO3" - Syntax `proto3`. Syntax string `json:"syntax,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Method) MarshalJSON() ([]byte, error) { +func (s Method) MarshalJSON() ([]byte, error) { type NoMethod Method - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MetricDescriptor: Defines a metric type and its schema. Once a metric @@ -2315,21 +1952,18 @@ func (s *Method) MarshalJSON() ([]byte, error) { // type's // existing data unusable. type MetricDescriptor struct { - // Description: A detailed description of the metric, which can be used - // in documentation. + // Description: A detailed description of the metric, which can be used in + // documentation. Description string `json:"description,omitempty"` - - // DisplayName: A concise name for the metric, which can be displayed in - // user interfaces. + // DisplayName: A concise name for the metric, which can be displayed in user + // interfaces. // Use sentence case without an ending period, for example "Request // count". // This field is optional but it is recommended to be set for any // metrics // associated with user-visible concepts, such as Quota. DisplayName string `json:"displayName,omitempty"` - - // Labels: The set of labels that can be used to describe a - // specific + // Labels: The set of labels that can be used to describe a specific // instance of this metric type. For example, // the // `appengine.googleapis.com/http/server/response_latencies` metric @@ -2337,15 +1971,11 @@ type MetricDescriptor struct { // you can look at latencies for successful responses or just // for responses that failed. Labels []*LabelDescriptor `json:"labels,omitempty"` - - // Metadata: Optional. Metadata which can be used to guide usage of the - // metric. + // Metadata: Optional. Metadata which can be used to guide usage of the metric. Metadata *MetricDescriptorMetadata `json:"metadata,omitempty"` - - // MetricKind: Whether the metric records instantaneous values, changes - // to a value, etc. - // Some combinations of `metric_kind` and `value_type` might not be - // supported. + // MetricKind: Whether the metric records instantaneous values, changes to a + // value, etc. + // Some combinations of `metric_kind` and `value_type` might not be supported. // // Possible values: // "METRIC_KIND_UNSPECIFIED" - Do not use this default value. @@ -2358,10 +1988,8 @@ type MetricDescriptor struct { // value to zero and sets a new start time for the following // points. MetricKind string `json:"metricKind,omitempty"` - // Name: The resource name of the metric descriptor. Name string `json:"name,omitempty"` - // Type: The metric type, including its DNS name prefix. The type is // not // URL-encoded. All user-defined metric types have the DNS @@ -2374,14 +2002,11 @@ type MetricDescriptor struct { // "external.googleapis.com/prometheus/up" // "appengine.googleapis.com/http/server/response_latencies" Type string `json:"type,omitempty"` - // Unit: The unit in which the metric value is reported. It is only // applicable - // if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. - // The - // supported units are a subset of [The Unified Code for Units - // of - // Measure](http://unitsofmeasure.org/ucum.html) standard: + // if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The + // supported units are a subset of The Unified Code for Units of + // Measure (http://unitsofmeasure.org/ucum.html) standard: // // **Basic units (UNIT)** // @@ -2441,15 +2066,12 @@ type MetricDescriptor struct { // * `NAME` is a sequence of non-blank printable ASCII characters not // containing '{' or '}'. // * `1` represents dimensionless value 1, such as in `1/s`. - // * `%` represents dimensionless value 1/100, and annotates values - // giving + // * `%` represents dimensionless value 1/100, and annotates values giving // a percentage. Unit string `json:"unit,omitempty"` - - // ValueType: Whether the measurement is an integer, a floating-point - // number, etc. - // Some combinations of `metric_kind` and `value_type` might not be - // supported. + // ValueType: Whether the measurement is an integer, a floating-point number, + // etc. + // Some combinations of `metric_kind` and `value_type` might not be supported. // // Possible values: // "VALUE_TYPE_UNSPECIFIED" - Do not use this default value. @@ -2462,84 +2084,66 @@ type MetricDescriptor struct { // "DISTRIBUTION" - The value is a `Distribution`. // "MONEY" - The value is money. ValueType string `json:"valueType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetricDescriptor) MarshalJSON() ([]byte, error) { +func (s MetricDescriptor) MarshalJSON() ([]byte, error) { type NoMethod MetricDescriptor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MetricDescriptorMetadata: Additional annotations that can be used to -// guide the usage of a metric. +// MetricDescriptorMetadata: Additional annotations that can be used to guide +// the usage of a metric. type MetricDescriptorMetadata struct { - // IngestDelay: The delay of data points caused by ingestion. Data - // points older than this - // age are guaranteed to be ingested and available to be read, - // excluding + // IngestDelay: The delay of data points caused by ingestion. Data points older + // than this + // age are guaranteed to be ingested and available to be read, excluding // data loss due to errors. IngestDelay string `json:"ingestDelay,omitempty"` - // LaunchStage: The launch stage of the metric definition. // // Possible values: // "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value. - // "EARLY_ACCESS" - Early Access features are limited to a closed - // group of testers. To use + // "EARLY_ACCESS" - Early Access features are limited to a closed group of + // testers. To use // these features, you must sign up in advance and sign a Trusted // Tester - // agreement (which includes confidentiality provisions). These features - // may - // be unstable, changed in backward-incompatible ways, and are - // not + // agreement (which includes confidentiality provisions). These features may + // be unstable, changed in backward-incompatible ways, and are not // guaranteed to be released. - // "ALPHA" - Alpha is a limited availability test for releases before - // they are cleared - // for widespread use. By Alpha, all significant design issues are - // resolved - // and we are in the process of verifying functionality. Alpha - // customers - // need to apply for access, agree to applicable terms, and have - // their - // projects whitelisted. Alpha releases don’t have to be feature - // complete, + // "ALPHA" - Alpha is a limited availability test for releases before they + // are cleared + // for widespread use. By Alpha, all significant design issues are resolved + // and we are in the process of verifying functionality. Alpha customers + // need to apply for access, agree to applicable terms, and have their + // projects whitelisted. Alpha releases don’t have to be feature complete, // no SLAs are provided, and there are no technical support obligations, // but - // they will be far enough along that customers can actually use them - // in - // test environments or for limited-use tests -- just like they would - // in + // they will be far enough along that customers can actually use them in + // test environments or for limited-use tests -- just like they would in // normal production cases. - // "BETA" - Beta is the point at which we are ready to open a release - // for any - // customer to use. There are no SLA or technical support obligations in - // a - // Beta release. Products will be complete from a feature perspective, - // but + // "BETA" - Beta is the point at which we are ready to open a release for + // any + // customer to use. There are no SLA or technical support obligations in a + // Beta release. Products will be complete from a feature perspective, but // may have some open outstanding issues. Beta releases are suitable // for // limited production use cases. - // "GA" - GA features are open to all developers and are considered - // stable and + // "GA" - GA features are open to all developers and are considered stable + // and // fully qualified for production use. - // "DEPRECATED" - Deprecated features are scheduled to be shut down - // and removed. For more + // "DEPRECATED" - Deprecated features are scheduled to be shut down and + // removed. For more // information, see the “Deprecation Policy” section of our [Terms // of // Service](https://cloud.google.com/terms/) @@ -2547,84 +2151,68 @@ type MetricDescriptorMetadata struct { // Deprecation // Policy](https://cloud.google.com/terms/deprecation) documentation. LaunchStage string `json:"launchStage,omitempty"` - - // SamplePeriod: The sampling period of metric data points. For metrics - // which are written + // SamplePeriod: The sampling period of metric data points. For metrics which + // are written // periodically, consecutive data points are stored at this time // interval, - // excluding data loss due to errors. Metrics with a higher granularity - // have + // excluding data loss due to errors. Metrics with a higher granularity have // a smaller sampling period. SamplePeriod string `json:"samplePeriod,omitempty"` - // ForceSendFields is a list of field names (e.g. "IngestDelay") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IngestDelay") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IngestDelay") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetricDescriptorMetadata) MarshalJSON() ([]byte, error) { +func (s MetricDescriptorMetadata) MarshalJSON() ([]byte, error) { type NoMethod MetricDescriptorMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MetricRule: Bind API methods to metrics. Binding a method to a metric -// causes that +// MetricRule: Bind API methods to metrics. Binding a method to a metric causes +// that // metric's configured quota behaviors to apply to the method call. type MetricRule struct { - // MetricCosts: Metrics to update when the selected methods are called, - // and the associated + // MetricCosts: Metrics to update when the selected methods are called, and the + // associated // cost applied to each metric. // // The key of the map is the metric name, and the values are the // amount - // increased for the metric against which the quota limits are - // defined. + // increased for the metric against which the quota limits are defined. // The value must not be negative. MetricCosts map[string]string `json:"metricCosts,omitempty"` - // Selector: Selects the methods to which this rule applies. // // Refer to selector for syntax details. Selector string `json:"selector,omitempty"` - // ForceSendFields is a list of field names (e.g. "MetricCosts") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MetricCosts") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MetricCosts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MetricRule) MarshalJSON() ([]byte, error) { +func (s MetricRule) MarshalJSON() ([]byte, error) { type NoMethod MetricRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Mixin: Declares an API Interface to be included in this interface. -// The including +// Mixin: Declares an API Interface to be included in this interface. The +// including // interface must redeclare all the methods from the included interface, // but // documentation and options are inherited as follows: @@ -2669,12 +2257,10 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) { // mixins: // - name: google.acl.v1.AccessControl // -// The mixin construct implies that all methods in `AccessControl` -// are +// The mixin construct implies that all methods in `AccessControl` are // also declared with same name and request/response types in // `Storage`. A documentation generator or annotation processor will -// see the effective `Storage.GetAcl` method after -// inherting +// see the effective `Storage.GetAcl` method after inherting // documentation and annotations as follows: // // service Storage { @@ -2685,11 +2271,9 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) { // ... // } // -// Note how the version in the path pattern changed from `v1` to -// `v2`. +// Note how the version in the path pattern changed from `v1` to `v2`. // -// If the `root` field in the mixin is specified, it should be -// a +// If the `root` field in the mixin is specified, it should be a // relative path under which inherited HTTP paths are placed. Example: // // apis: @@ -2703,43 +2287,32 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) { // service Storage { // // Get the underlying ACL object. // rpc GetAcl(GetAclRequest) returns (Acl) { -// option (google.api.http).get = -// -// "/v2/acls/{resource=**}:getAcl"; -// +// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; // } // ... // } type Mixin struct { // Name: The fully qualified name of the interface which is included. Name string `json:"name,omitempty"` - - // Root: If non-empty specifies a path under which inherited HTTP - // paths + // Root: If non-empty specifies a path under which inherited HTTP paths // are rooted. Root string `json:"root,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Mixin) MarshalJSON() ([]byte, error) { +func (s Mixin) MarshalJSON() ([]byte, error) { type NoMethod Mixin - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MonitoredResourceDescriptor: An object that describes the schema of a @@ -2754,80 +2327,66 @@ func (s *Mixin) MarshalJSON() ([]byte, error) { // // Different APIs can support different monitored resource types. APIs // generally -// provide a `list` method that returns the monitored resource -// descriptors used +// provide a `list` method that returns the monitored resource descriptors +// used // by the API. type MonitoredResourceDescriptor struct { - // Description: Optional. A detailed description of the monitored - // resource type that might + // Description: Optional. A detailed description of the monitored resource type + // that might // be used in documentation. Description string `json:"description,omitempty"` - - // DisplayName: Optional. A concise name for the monitored resource type - // that might be + // DisplayName: Optional. A concise name for the monitored resource type that + // might be // displayed in user interfaces. It should be a Title Cased Noun // Phrase, // without any article or other determiners. For example, // "Google Cloud SQL Database". DisplayName string `json:"displayName,omitempty"` - // Labels: Required. A set of labels used to describe instances of this // monitored // resource type. For example, an individual Google Cloud SQL database // is // identified by values for the labels "database_id" and "zone". Labels []*LabelDescriptor `json:"labels,omitempty"` - // Name: Optional. The resource name of the monitored resource // descriptor: - // "projects/{project_id}/monitoredResourceDescriptors/{type - // }" where - // {type} is the value of the `type` field in this object - // and + // "projects/{project_id}/monitoredResourceDescriptors/{type}" where + // {type} is the value of the `type` field in this object and // {project_id} is a project ID that provides API-specific context // for // accessing the type. APIs that do not use project information can use // the // resource name format "monitoredResourceDescriptors/{type}". Name string `json:"name,omitempty"` - // Type: Required. The monitored resource type. For example, the // type // "cloudsql_database" represents databases in Google Cloud SQL. // The maximum length of this value is 256 characters. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MonitoredResourceDescriptor) MarshalJSON() ([]byte, error) { +func (s MonitoredResourceDescriptor) MarshalJSON() ([]byte, error) { type NoMethod MonitoredResourceDescriptor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Monitoring: Monitoring configuration of the service. // -// The example below shows how to configure monitored resources and -// metrics +// The example below shows how to configure monitored resources and metrics // for monitoring. In the example, a monitored resource and two metrics // are -// defined. The `library.googleapis.com/book/returned_count` metric is -// sent +// defined. The `library.googleapis.com/book/returned_count` metric is sent // to both producer and consumer projects, whereas // the // `library.googleapis.com/book/overdue_count` metric is only sent to @@ -2838,128 +2397,104 @@ func (s *MonitoredResourceDescriptor) MarshalJSON() ([]byte, error) { // - type: library.googleapis.com/branch // labels: // - key: /city -// description: The city where the library branch is located -// -// in. -// - key: /name -// description: The name of the branch. -// metrics: -// - name: library.googleapis.com/book/returned_count -// metric_kind: DELTA -// value_type: INT64 -// labels: -// - key: /customer_id -// - name: library.googleapis.com/book/overdue_count -// metric_kind: GAUGE -// value_type: INT64 -// labels: -// - key: /customer_id -// monitoring: -// producer_destinations: -// - monitored_resource: library.googleapis.com/branch -// metrics: -// - library.googleapis.com/book/returned_count -// consumer_destinations: -// - monitored_resource: library.googleapis.com/branch -// metrics: -// - library.googleapis.com/book/returned_count -// - library.googleapis.com/book/overdue_count +// description: The city where the library branch is located in. +// - key: /name +// description: The name of the branch. +// metrics: +// - name: library.googleapis.com/book/returned_count +// metric_kind: DELTA +// value_type: INT64 +// labels: +// - key: /customer_id +// - name: library.googleapis.com/book/overdue_count +// metric_kind: GAUGE +// value_type: INT64 +// labels: +// - key: /customer_id +// monitoring: +// producer_destinations: +// - monitored_resource: library.googleapis.com/branch +// metrics: +// - library.googleapis.com/book/returned_count +// consumer_destinations: +// - monitored_resource: library.googleapis.com/branch +// metrics: +// - library.googleapis.com/book/returned_count +// - library.googleapis.com/book/overdue_count type Monitoring struct { - // ConsumerDestinations: Monitoring configurations for sending metrics - // to the consumer project. - // There can be multiple consumer destinations, each one must have - // a - // different monitored resource type. A metric can be used in at - // most + // ConsumerDestinations: Monitoring configurations for sending metrics to the + // consumer project. + // There can be multiple consumer destinations, each one must have a + // different monitored resource type. A metric can be used in at most // one consumer destination. ConsumerDestinations []*MonitoringDestination `json:"consumerDestinations,omitempty"` - - // ProducerDestinations: Monitoring configurations for sending metrics - // to the producer project. - // There can be multiple producer destinations, each one must have - // a - // different monitored resource type. A metric can be used in at - // most + // ProducerDestinations: Monitoring configurations for sending metrics to the + // producer project. + // There can be multiple producer destinations, each one must have a + // different monitored resource type. A metric can be used in at most // one producer destination. ProducerDestinations []*MonitoringDestination `json:"producerDestinations,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ConsumerDestinations") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ConsumerDestinations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ConsumerDestinations") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ConsumerDestinations") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Monitoring) MarshalJSON() ([]byte, error) { +func (s Monitoring) MarshalJSON() ([]byte, error) { type NoMethod Monitoring - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MonitoringDestination: Configuration of a specific monitoring -// destination (the producer project +// MonitoringDestination: Configuration of a specific monitoring destination +// (the producer project // or the consumer project). type MonitoringDestination struct { - // Metrics: Names of the metrics to report to this monitoring - // destination. + // Metrics: Names of the metrics to report to this monitoring destination. // Each name must be defined in Service.metrics section. Metrics []string `json:"metrics,omitempty"` - - // MonitoredResource: The monitored resource type. The type must be - // defined in + // MonitoredResource: The monitored resource type. The type must be defined + // in // Service.monitored_resources section. MonitoredResource string `json:"monitoredResource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Metrics") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Metrics") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Metrics") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MonitoringDestination) MarshalJSON() ([]byte, error) { +func (s MonitoringDestination) MarshalJSON() ([]byte, error) { type NoMethod MonitoringDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OAuthRequirements: OAuth scopes are a way to define data and -// permissions on data. For example, +// OAuthRequirements: OAuth scopes are a way to define data and permissions on +// data. For example, // there are scopes defined for "Read-only access to Google Calendar" // and // "Access to Cloud Platform". Users can consent to a scope for an // application, // giving it permission to access that data on their behalf. // -// OAuth scope specifications should be fairly coarse grained; a user -// will need -// to see and understand the text description of what your scope -// means. +// OAuth scope specifications should be fairly coarse grained; a user will +// need +// to see and understand the text description of what your scope means. // -// In most cases: use one or at most two OAuth scopes for an entire -// family of +// In most cases: use one or at most two OAuth scopes for an entire family +// of // products. If your product has multiple APIs, you should probably be // sharing // the OAuth scope across all of those APIs. @@ -2968,178 +2503,140 @@ func (s *MonitoringDestination) MarshalJSON() ([]byte, error) { // product // management about how developers will use them in practice. // -// Please note that even though each of the canonical scopes is enough -// for a +// Please note that even though each of the canonical scopes is enough for +// a // request to be accepted and passed to the backend, a request can still // fail // due to the backend requiring additional scopes or permissions. type OAuthRequirements struct { - // CanonicalScopes: The list of publicly documented OAuth scopes that - // are allowed access. An - // OAuth token containing any of these scopes will be - // accepted. + // CanonicalScopes: The list of publicly documented OAuth scopes that are + // allowed access. An + // OAuth token containing any of these scopes will be accepted. // // Example: // // canonical_scopes: https://www.googleapis.com/auth/calendar, // https://www.googleapis.com/auth/calendar.read CanonicalScopes string `json:"canonicalScopes,omitempty"` - // ForceSendFields is a list of field names (e.g. "CanonicalScopes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CanonicalScopes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CanonicalScopes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OAuthRequirements) MarshalJSON() ([]byte, error) { +func (s OAuthRequirements) MarshalJSON() ([]byte, error) { type NoMethod OAuthRequirements - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a +// Operation: This resource represents a long-running operation that is the +// result of a // network API call. type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. - // If `true`, the operation is completed, and either `error` or - // `response` is + // If `true`, the operation is completed, and either `error` or `response` + // is // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. - // It typically - // contains progress information and common metadata such as create - // time. - // Some services might not provide such metadata. Any method that - // returns a + // Metadata: Service-specific metadata associated with the operation. It + // typically + // contains progress information and common metadata such as create time. + // Some services might not provide such metadata. Any method that returns + // a // long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that - // originally returns it. If you use the default HTTP mapping, - // the + // Name: The server-assigned name, which is only unique within the same service + // that + // originally returns it. If you use the default HTTP mapping, the // `name` should have the format of `operations/some/unique/name`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. - // If the original + // Response: The normal response of the operation in case of success. If the + // original // method returns no data on success, such as `Delete`, the response // is // `google.protobuf.Empty`. If the original method is // standard // `Get`/`Create`/`Update`, the response should be the resource. For // other - // methods, the response should have the type `XxxResponse`, where - // `Xxx` - // is the original method name. For example, if the original method - // name - // is `TakeSnapshot()`, the inferred response type - // is + // methods, the response should have the type `XxxResponse`, where `Xxx` + // is the original method name. For example, if the original method name + // is `TakeSnapshot()`, the inferred response type is // `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadata: The metadata associated with a long running -// operation resource. +// OperationMetadata: The metadata associated with a long running operation +// resource. type OperationMetadata struct { - // ProgressPercentage: Percentage of completion of this operation, - // ranging from 0 to 100. + // ProgressPercentage: Percentage of completion of this operation, ranging from + // 0 to 100. ProgressPercentage int64 `json:"progressPercentage,omitempty"` - // ResourceNames: The full name of the resources that this operation is // directly // associated with. ResourceNames []string `json:"resourceNames,omitempty"` - // StartTime: The start time of the operation. StartTime string `json:"startTime,omitempty"` - - // Steps: Detailed status information for each step. The order is - // undetermined. + // Steps: Detailed status information for each step. The order is undetermined. Steps []*Step `json:"steps,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ProgressPercentage") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ProgressPercentage") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ProgressPercentage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ProgressPercentage") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { +func (s OperationMetadata) MarshalJSON() ([]byte, error) { type NoMethod OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Option: A protocol buffer option, which can be attached to a message, // field, // enumeration, etc. type Option struct { - // Name: The option's name. For protobuf built-in options (options - // defined in - // descriptor.proto), this is the short name. For example, - // "map_entry". + // Name: The option's name. For protobuf built-in options (options defined + // in + // descriptor.proto), this is the short name. For example, "map_entry". // For custom options, it should be the fully-qualified name. For // example, // "google.api.http". Name string `json:"name,omitempty"` - // Value: The option's value packed in an Any message. If the value is a // primitive, // the corresponding wrapper type defined in @@ -3148,43 +2645,35 @@ type Option struct { // int32 // value using the google.protobuf.Int32Value type. Value googleapi.RawMessage `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Option) MarshalJSON() ([]byte, error) { +func (s Option) MarshalJSON() ([]byte, error) { type NoMethod Option - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Page: Represents a documentation page. A page can contain subpages to // represent // nested documentation set structure. type Page struct { - // Content: The Markdown content of the page. You can use (== - // include {path} ==) + // Content: The Markdown content of the page. You can use (== include + // {path} ==) // to include content from a Markdown file. Content string `json:"content,omitempty"` - - // Name: The name of the page. It will be used as an identity of the - // page to - // generate URI of the page, text of the link to this page in - // navigation, + // Name: The name of the page. It will be used as an identity of the page + // to + // generate URI of the page, text of the link to this page in navigation, // etc. The full page name (start from the root page name to this // page // concatenated with `.`) can be used as reference to the page in @@ -3195,40 +2684,31 @@ type Page struct { // content: (== include tutorial.md ==) // subpages: // - name: Java - // content: (== include tutorial_java.md - // ==) + // content: (== include tutorial_java.md ==) //
                  - // You can reference `Java` page using Markdown reference link - // syntax: + // You can reference `Java` page using Markdown reference link syntax: // `Java`. Name string `json:"name,omitempty"` - - // Subpages: Subpages of this page. The order of subpages specified here - // will be + // Subpages: Subpages of this page. The order of subpages specified here will + // be // honored in the generated docset. Subpages []*Page `json:"subpages,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Page) MarshalJSON() ([]byte, error) { +func (s Page) MarshalJSON() ([]byte, error) { type NoMethod Page - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PublishedService: The published version of a Service that is managed @@ -3240,31 +2720,24 @@ type PublishedService struct { // A valid name would be: // - services/serviceuser.googleapis.com Name string `json:"name,omitempty"` - // Service: The service's published configuration. Service *Service `json:"service,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PublishedService) MarshalJSON() ([]byte, error) { +func (s PublishedService) MarshalJSON() ([]byte, error) { type NoMethod PublishedService - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Quota: Quota configuration helps to achieve fairness and budgeting in @@ -3275,33 +2748,24 @@ func (s *PublishedService) MarshalJSON() ([]byte, error) { // - The service configuration defines a set of metrics. // - For API calls, the quota.metric_rules maps methods to metrics with // corresponding costs. -// - The quota.limits defines limits on the metrics, which will be used -// -// for -// -// quota checks at runtime. +// - The quota.limits defines limits on the metrics, which will be used for +// quota checks at runtime. // // An example quota configuration in yaml format: // -// quota: -// limits: -// -// - name: apiWriteQpsPerProject -// metric: library.googleapis.com/write_calls -// unit: "1/min/{project}" # rate limit for consumer projects -// values: -// STANDARD: 10000 +// quota: +// limits: // +// - name: apiWriteQpsPerProject +// metric: library.googleapis.com/write_calls +// unit: "1/min/{project}" # rate limit for consumer projects +// values: +// STANDARD: 10000 // -// # The metric rules bind all methods to the read_calls metric, -// # except for the UpdateBook and DeleteBook methods. These two -// -// methods -// -// # are mapped to the write_calls metric, with the UpdateBook -// -// method // +// # The metric rules bind all methods to the read_calls metric, +// # except for the UpdateBook and DeleteBook methods. These two methods +// # are mapped to the write_calls metric, with the UpdateBook method // # consuming at twice rate as the DeleteBook method. // metric_rules: // - selector: "*" @@ -3329,33 +2793,26 @@ func (s *PublishedService) MarshalJSON() ([]byte, error) { type Quota struct { // Limits: List of `QuotaLimit` definitions for the service. Limits []*QuotaLimit `json:"limits,omitempty"` - - // MetricRules: List of `MetricRule` definitions, each one mapping a - // selected method to one + // MetricRules: List of `MetricRule` definitions, each one mapping a selected + // method to one // or more metrics. MetricRules []*MetricRule `json:"metricRules,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Limits") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Limits") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Limits") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Quota) MarshalJSON() ([]byte, error) { +func (s Quota) MarshalJSON() ([]byte, error) { type NoMethod Quota - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // QuotaLimit: `QuotaLimit` defines a specific limit that applies over a @@ -3364,52 +2821,43 @@ func (s *Quota) MarshalJSON() ([]byte, error) { // limit // type combination defined within a `QuotaGroup`. type QuotaLimit struct { - // DefaultLimit: Default number of tokens that can be consumed during - // the specified - // duration. This is the number of tokens assigned when a - // client - // application developer activates the service for his/her - // project. + // DefaultLimit: Default number of tokens that can be consumed during the + // specified + // duration. This is the number of tokens assigned when a client + // application developer activates the service for his/her project. // - // Specifying a value of 0 will block all requests. This can be used if - // you - // are provisioning quota to selected consumers and blocking - // others. - // Similarly, a value of -1 will indicate an unlimited quota. No - // other + // Specifying a value of 0 will block all requests. This can be used if you + // are provisioning quota to selected consumers and blocking others. + // Similarly, a value of -1 will indicate an unlimited quota. No other // negative values are allowed. // // Used by group-based quotas only. DefaultLimit int64 `json:"defaultLimit,omitempty,string"` - - // Description: Optional. User-visible, extended description for this - // quota limit. + // Description: Optional. User-visible, extended description for this quota + // limit. // Should be used only when more context is needed to understand this // limit // than provided by the limit's display name (see: `display_name`). Description string `json:"description,omitempty"` - // DisplayName: User-visible display name for this limit. - // Optional. If not set, the UI will provide a default display name - // based on + // Optional. If not set, the UI will provide a default display name based + // on // the quota configuration. This field can be used to override the // default // display name generated from the configuration. DisplayName string `json:"displayName,omitempty"` - - // Duration: Duration of this limit in textual notation. Example: - // "100s", "24h", "1d". + // Duration: Duration of this limit in textual notation. Example: "100s", + // "24h", "1d". // For duration longer than a day, only multiple of days is supported. // We - // support only "100s" and "1d" for now. Additional support will be - // added in + // support only "100s" and "1d" for now. Additional support will be added + // in // the future. "0" indicates indefinite duration. // // Used by group-based quotas only. Duration string `json:"duration,omitempty"` - - // FreeTier: Free tier value displayed in the Developers Console for - // this limit. + // FreeTier: Free tier value displayed in the Developers Console for this + // limit. // The free tier is the number of tokens that will be subtracted from // the // billed amount when billing is enabled. @@ -3417,18 +2865,14 @@ type QuotaLimit struct { // billable // group; it is invalid on any other limit. If this field is not set, // it - // defaults to 0, indicating that there is no free tier for this - // service. + // defaults to 0, indicating that there is no free tier for this service. // // Used by group-based quotas only. FreeTier int64 `json:"freeTier,omitempty,string"` - // MaxLimit: Maximum number of tokens that can be consumed during the // specified - // duration. Client application developers can override the default - // limit up - // to this maximum. If specified, this value cannot be set to a value - // less + // duration. Client application developers can override the default limit up + // to this maximum. If specified, this value cannot be set to a value less // than the default limit. If not specified, it is set to the default // limit. // @@ -3438,14 +2882,12 @@ type QuotaLimit struct { // // Used by group-based quotas only. MaxLimit int64 `json:"maxLimit,omitempty,string"` - - // Metric: The name of the metric this quota limit applies to. The quota - // limits with - // the same metric will be checked together during runtime. The metric - // must be + // Metric: The name of the metric this quota limit applies to. The quota limits + // with + // the same metric will be checked together during runtime. The metric must + // be // defined within the service config. Metric string `json:"metric,omitempty"` - // Name: Name of the quota limit. // // The name must be provided, and it must be unique within the service. @@ -3454,93 +2896,74 @@ type QuotaLimit struct { // // The maximum length of the limit name is 64 characters. Name string `json:"name,omitempty"` - // Unit: Specify the unit of the quota limit. It uses the same syntax // as - // Metric.unit. The supported unit kinds are determined by the - // quota + // Metric.unit. The supported unit kinds are determined by the quota // backend system. // // Here are some examples: // * "1/min/{project}" for quota per minute per project. // // Note: the order of unit components is insignificant. - // The "1" at the beginning is required to follow the metric unit - // syntax. + // The "1" at the beginning is required to follow the metric unit syntax. Unit string `json:"unit,omitempty"` - - // Values: Tiered limit values. You must specify this as a key:value - // pair, with an + // Values: Tiered limit values. You must specify this as a key:value pair, with + // an // integer value that is the maximum number of requests allowed for // the // specified unit. Currently only STANDARD is supported. Values map[string]string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultLimit") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DefaultLimit") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DefaultLimit") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *QuotaLimit) MarshalJSON() ([]byte, error) { +func (s QuotaLimit) MarshalJSON() ([]byte, error) { type NoMethod QuotaLimit - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SearchServicesResponse: Response message for SearchServices method. type SearchServicesResponse struct { - // NextPageToken: Token that can be passed to `ListAvailableServices` to - // resume a paginated + // NextPageToken: Token that can be passed to `ListAvailableServices` to resume + // a paginated // query. NextPageToken string `json:"nextPageToken,omitempty"` - - // Services: Services available publicly or available to the - // authenticated caller. + // Services: Services available publicly or available to the authenticated + // caller. Services []*PublishedService `json:"services,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SearchServicesResponse) MarshalJSON() ([]byte, error) { +func (s SearchServicesResponse) MarshalJSON() ([]byte, error) { type NoMethod SearchServicesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Service: `Service` is the root object of Google service configuration // schema. It -// describes basic information about a service, such as the name and -// the +// describes basic information about a service, such as the name and the // title, and delegates other aspects to sub-sections. Each sub-section // is // either a proto message or a repeated proto message that configures @@ -3566,131 +2989,96 @@ func (s *SearchServicesResponse) MarshalJSON() ([]byte, error) { // requirements: // provider_id: google_calendar_auth type Service struct { - // Apis: A list of API interfaces exported by this service. Only the - // `name` field - // of the google.protobuf.Api needs to be provided by the - // configuration + // Apis: A list of API interfaces exported by this service. Only the `name` + // field + // of the google.protobuf.Api needs to be provided by the configuration // author, as the remaining fields will be derived from the IDL during // the - // normalization process. It is an error to specify an API interface - // here + // normalization process. It is an error to specify an API interface here // which cannot be resolved against the associated IDL files. Apis []*Api `json:"apis,omitempty"` - // Authentication: Auth configuration. Authentication *Authentication `json:"authentication,omitempty"` - // Backend: API backend configuration. Backend *Backend `json:"backend,omitempty"` - // Billing: Billing configuration. Billing *Billing `json:"billing,omitempty"` - - // ConfigVersion: The semantic version of the service configuration. The - // config version + // ConfigVersion: The semantic version of the service configuration. The config + // version // affects the interpretation of the service configuration. For // example, - // certain features are enabled by default for certain config - // versions. + // certain features are enabled by default for certain config versions. // The latest config version is `3`. ConfigVersion int64 `json:"configVersion,omitempty"` - // Context: Context configuration. Context *Context `json:"context,omitempty"` - // Control: Configuration for the service control plane. Control *Control `json:"control,omitempty"` - // CustomError: Custom error configuration. CustomError *CustomError `json:"customError,omitempty"` - // Documentation: Additional API documentation. Documentation *Documentation `json:"documentation,omitempty"` - - // Endpoints: Configuration for network endpoints. If this is empty, - // then an endpoint - // with the same name as the service is automatically generated to - // service all + // Endpoints: Configuration for network endpoints. If this is empty, then an + // endpoint + // with the same name as the service is automatically generated to service + // all // defined APIs. Endpoints []*Endpoint `json:"endpoints,omitempty"` - // Enums: A list of all enum types included in this API service. // Enums - // referenced directly or indirectly by the `apis` are - // automatically - // included. Enums which are not referenced but shall be - // included + // referenced directly or indirectly by the `apis` are automatically + // included. Enums which are not referenced but shall be included // should be listed here by name. Example: // // enums: // - name: google.someapi.v1.SomeEnum Enums []*Enum `json:"enums,omitempty"` - // Experimental: Experimental configuration. Experimental *Experimental `json:"experimental,omitempty"` - // Http: HTTP configuration. Http *Http `json:"http,omitempty"` - // Id: A unique ID for a specific instance of this message, typically // assigned // by the client for tracking purpose. If empty, the server may choose // to // generate one instead. Must be no longer than 60 characters. Id string `json:"id,omitempty"` - // Logging: Logging configuration. Logging *Logging `json:"logging,omitempty"` - // Logs: Defines the logs used by this service. Logs []*LogDescriptor `json:"logs,omitempty"` - // Metrics: Defines the metrics used by this service. Metrics []*MetricDescriptor `json:"metrics,omitempty"` - - // MonitoredResources: Defines the monitored resources used by this - // service. This is required + // MonitoredResources: Defines the monitored resources used by this service. + // This is required // by the Service.monitoring and Service.logging configurations. MonitoredResources []*MonitoredResourceDescriptor `json:"monitoredResources,omitempty"` - // Monitoring: Monitoring configuration. Monitoring *Monitoring `json:"monitoring,omitempty"` - // Name: The DNS address at which this service is available, // e.g. `calendar.googleapis.com`. Name string `json:"name,omitempty"` - // ProducerProjectId: The Google project that owns this service. ProducerProjectId string `json:"producerProjectId,omitempty"` - // Quota: Quota configuration. Quota *Quota `json:"quota,omitempty"` - - // SourceInfo: Output only. The source information for this - // configuration if available. + // SourceInfo: Output only. The source information for this configuration if + // available. SourceInfo *SourceInfo `json:"sourceInfo,omitempty"` - // SystemParameters: System parameter configuration. SystemParameters *SystemParameters `json:"systemParameters,omitempty"` - // SystemTypes: A list of all proto message types included in this API // service. - // It serves similar purpose as [google.api.Service.types], except - // that + // It serves similar purpose as [google.api.Service.types], except that // these types are not needed by user-defined APIs. Therefore, they will // not - // show up in the generated discovery doc. This field should only be - // used + // show up in the generated discovery doc. This field should only be used // to define system APIs in ESF. SystemTypes []*Type `json:"systemTypes,omitempty"` - // Title: The product title for this service. Title string `json:"title,omitempty"` - - // Types: A list of all proto message types included in this API - // service. - // Types referenced directly or indirectly by the `apis` - // are + // Types: A list of all proto message types included in this API service. + // Types referenced directly or indirectly by the `apis` are // automatically included. Messages which are not referenced but // shall be included, such as types used by the `google.protobuf.Any` // type, @@ -3699,100 +3087,79 @@ type Service struct { // types: // - name: google.protobuf.Int32 Types []*Type `json:"types,omitempty"` - // Usage: Configuration controlling usage of this service. Usage *Usage `json:"usage,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Apis") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Apis") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Apis") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Apis") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Service) MarshalJSON() ([]byte, error) { +func (s Service) MarshalJSON() ([]byte, error) { type NoMethod Service - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SourceContext: `SourceContext` represents information about the -// source of a +// SourceContext: `SourceContext` represents information about the source of +// a // protobuf element, like the file in which it is defined. type SourceContext struct { - // FileName: The path-qualified name of the .proto file that contained - // the associated - // protobuf element. For example: - // "google/protobuf/source_context.proto". + // FileName: The path-qualified name of the .proto file that contained the + // associated + // protobuf element. For example: "google/protobuf/source_context.proto". FileName string `json:"fileName,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceContext) MarshalJSON() ([]byte, error) { +func (s SourceContext) MarshalJSON() ([]byte, error) { type NoMethod SourceContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SourceInfo: Source information used to create a Service Config type SourceInfo struct { // SourceFiles: All files used during config generation. SourceFiles []googleapi.RawMessage `json:"sourceFiles,omitempty"` - // ForceSendFields is a list of field names (e.g. "SourceFiles") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SourceFiles") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SourceFiles") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SourceInfo) MarshalJSON() ([]byte, error) { +func (s SourceInfo) MarshalJSON() ([]byte, error) { type NoMethod SourceInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different -// programming environments, including REST APIs and RPC APIs. It is -// used by -// [gRPC](https://github.com/grpc). The error model is designed to -// be: +// Status: The `Status` type defines a logical error model that is suitable for +// different +// programming environments, including REST APIs and RPC APIs. It is used +// by +// gRPC (https://github.com/grpc). The error model is designed to be: // // - Simple to use and understand for most users // - Flexible enough to meet unexpected needs @@ -3809,23 +3176,22 @@ func (s *SourceInfo) MarshalJSON() ([]byte, error) { // helps // developers *understand* and *resolve* the error. If a localized // user-facing -// error message is needed, put the localized message in the error -// details or +// error message is needed, put the localized message in the error details +// or // localize it in the client. The optional error details may contain // arbitrary -// information about the error. There is a predefined set of error -// detail types -// in the package `google.rpc` that can be used for common error -// conditions. +// information about the error. There is a predefined set of error detail +// types +// in the package `google.rpc` that can be used for common error conditions. // // # Language mapping // -// The `Status` message is the logical representation of the error -// model, but it +// The `Status` message is the logical representation of the error model, but +// it // is not necessarily the actual wire format. When the `Status` message // is -// exposed in different client libraries and different wire protocols, -// it can be +// exposed in different client libraries and different wire protocols, it can +// be // mapped differently. For example, it will likely be mapped to some // exceptions // in Java, but more likely mapped to some error codes in C. @@ -3835,8 +3201,7 @@ func (s *SourceInfo) MarshalJSON() ([]byte, error) { // The error model and the `Status` message can be used in a variety // of // environments, either with or without APIs, to provide a -// consistent developer experience across different -// environments. +// consistent developer experience across different environments. // // Example uses of this error model include: // @@ -3849,80 +3214,58 @@ func (s *SourceInfo) MarshalJSON() ([]byte, error) { // // errors. // -// - Workflow errors. A typical workflow has multiple steps. Each step -// may -// -// have a `Status` message for error reporting. +// - Workflow errors. A typical workflow has multiple steps. Each step may +// have a `Status` message for error reporting. // -// - Batch operations. If a client uses batch request and batch -// response, the +// - Batch operations. If a client uses batch request and batch response, the +// `Status` message should be used directly inside batch response, one for +// each error sub-response. // -// `Status` message should be used directly inside batch response, +// - Asynchronous operations. If an API call embeds asynchronous operation +// results in its response, the status of those operations should be +// represented directly using the `Status` message. // -// one for -// -// each error sub-response. -// -// - Asynchronous operations. If an API call embeds asynchronous -// operation -// -// results in its response, the status of those operations should -// -// be -// -// represented directly using the `Status` message. -// -// - Logging. If some API errors are stored in logs, the message -// `Status` could +// - Logging. If some API errors are stored in logs, the message `Status` +// could // // be used directly after any stripping needed for security/privacy // // reasons. type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of + // Details: A list of messages that carry the error details. There is a common + // set of // message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any + // Message: A developer-facing error message, which should be in English. + // Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Step: Represents the status of one operation step. type Step struct { // Description: The short description of the step. Description string `json:"description,omitempty"` - // Status: The status code. // // Possible values: @@ -3933,124 +3276,100 @@ type Step struct { // "FAILED" - The operation or step has completed with errors. If the // operation is // rollbackable, the rollback completed with errors too. - // "CANCELLED" - The operation or step has completed with - // cancellation. + // "CANCELLED" - The operation or step has completed with cancellation. Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Step) MarshalJSON() ([]byte, error) { +func (s Step) MarshalJSON() ([]byte, error) { type NoMethod Step - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SystemParameter: Define a parameter's name and location. The -// parameter may be passed as either +// SystemParameter: Define a parameter's name and location. The parameter may +// be passed as either // an HTTP header or a URL query parameter, and if both are passed the // behavior // is implementation-dependent. type SystemParameter struct { - // HttpHeader: Define the HTTP header name to use for the parameter. It - // is case + // HttpHeader: Define the HTTP header name to use for the parameter. It is + // case // insensitive. HttpHeader string `json:"httpHeader,omitempty"` - - // Name: Define the name of the parameter, such as "api_key" . It is - // case sensitive. + // Name: Define the name of the parameter, such as "api_key" . It is case + // sensitive. Name string `json:"name,omitempty"` - // UrlQueryParameter: Define the URL query parameter name to use for the // parameter. It is case // sensitive. UrlQueryParameter string `json:"urlQueryParameter,omitempty"` - // ForceSendFields is a list of field names (e.g. "HttpHeader") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HttpHeader") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HttpHeader") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SystemParameter) MarshalJSON() ([]byte, error) { +func (s SystemParameter) MarshalJSON() ([]byte, error) { type NoMethod SystemParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SystemParameterRule: Define a system parameter rule mapping system -// parameter definitions to +// SystemParameterRule: Define a system parameter rule mapping system parameter +// definitions to // methods. type SystemParameterRule struct { // Parameters: Define parameters. Multiple names may be defined for a // parameter. - // For a given method call, only one of them should be used. If - // multiple + // For a given method call, only one of them should be used. If multiple // names are used the behavior is implementation-dependent. // If none of the specified names are present the behavior // is // parameter-dependent. Parameters []*SystemParameter `json:"parameters,omitempty"` - // Selector: Selects the methods to which this rule applies. Use '*' to // indicate all // methods in all APIs. // // Refer to selector for syntax details. Selector string `json:"selector,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parameters") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Parameters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Parameters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SystemParameterRule) MarshalJSON() ([]byte, error) { +func (s SystemParameterRule) MarshalJSON() ([]byte, error) { type NoMethod SystemParameterRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SystemParameters: ### System parameter configuration // -// A system parameter is a special kind of parameter defined by the -// API +// A system parameter is a special kind of parameter defined by the API // system, not by an individual API. It is typically mapped to an HTTP // header // and/or a URL query parameter. This configuration specifies which @@ -4059,10 +3378,8 @@ func (s *SystemParameterRule) MarshalJSON() ([]byte, error) { type SystemParameters struct { // Rules: Define system parameters. // - // The parameters defined here will override the default - // parameters - // implemented by the system. If this field is missing from the - // service + // The parameters defined here will override the default parameters + // implemented by the system. If this field is missing from the service // config, default system parameters will be used. Default system // parameters // and names is implementation-dependent. @@ -4088,89 +3405,70 @@ type SystemParameters struct { // - name: api_key // http_header: Api-Key2 // - // **NOTE:** All service configuration rules follow "last one wins" - // order. + // **NOTE:** All service configuration rules follow "last one wins" order. Rules []*SystemParameterRule `json:"rules,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Rules") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Rules") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Rules") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SystemParameters) MarshalJSON() ([]byte, error) { +func (s SystemParameters) MarshalJSON() ([]byte, error) { type NoMethod SystemParameters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Type: A protocol buffer message type. type Type struct { // Fields: The list of fields. Fields []*Field `json:"fields,omitempty"` - // Name: The fully qualified message name. Name string `json:"name,omitempty"` - - // Oneofs: The list of types appearing in `oneof` definitions in this - // type. + // Oneofs: The list of types appearing in `oneof` definitions in this type. Oneofs []string `json:"oneofs,omitempty"` - // Options: The protocol buffer options. Options []*Option `json:"options,omitempty"` - // SourceContext: The source context. SourceContext *SourceContext `json:"sourceContext,omitempty"` - // Syntax: The source syntax. // // Possible values: // "SYNTAX_PROTO2" - Syntax `proto2`. // "SYNTAX_PROTO3" - Syntax `proto3`. Syntax string `json:"syntax,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Fields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Fields") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Type) MarshalJSON() ([]byte, error) { +func (s Type) MarshalJSON() ([]byte, error) { type NoMethod Type - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Usage: Configuration controlling usage of a service. type Usage struct { - // ProducerNotificationChannel: The full resource name of a channel used - // for sending notifications to the + // ProducerNotificationChannel: The full resource name of a channel used for + // sending notifications to the // service producer. // // Google Service Management currently only supports - // [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a + // Google Cloud Pub/Sub (https://cloud.google.com/pubsub) as a // notification // channel. To use Google Cloud Pub/Sub as the channel, this must be the // name @@ -4178,44 +3476,33 @@ type Usage struct { // format // documented in https://cloud.google.com/pubsub/docs/overview. ProducerNotificationChannel string `json:"producerNotificationChannel,omitempty"` - - // Requirements: Requirements that must be satisfied before a consumer - // project can use the + // Requirements: Requirements that must be satisfied before a consumer project + // can use the // service. Each requirement is of the form // /; // for example 'serviceusage.googleapis.com/billing-enabled'. Requirements []string `json:"requirements,omitempty"` - // Rules: A list of usage rules that apply to individual API // methods. // - // **NOTE:** All service configuration rules follow "last one wins" - // order. + // **NOTE:** All service configuration rules follow "last one wins" order. Rules []*UsageRule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ProducerNotificationChannel") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "ProducerNotificationChannel") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "ProducerNotificationChannel") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProducerNotificationChannel") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Usage) MarshalJSON() ([]byte, error) { +func (s Usage) MarshalJSON() ([]byte, error) { type NoMethod Usage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UsageRule: Usage configuration rules for the service. @@ -4224,11 +3511,10 @@ func (s *Usage) MarshalJSON() ([]byte, error) { // // Use this rule to configure unregistered calls for the service. // Unregistered -// calls are calls that do not contain consumer project -// identity. +// calls are calls that do not contain consumer project identity. // (Example: calls that do not contain an API key). -// By default, API methods do not allow unregistered calls, and each -// method call +// By default, API methods do not allow unregistered calls, and each method +// call // must be identified by a consumer project identity. Use this rule // to // allow/disallow unregistered calls. @@ -4245,60 +3531,44 @@ func (s *Usage) MarshalJSON() ([]byte, error) { // // usage: // rules: -// - selector: -// -// "google.example.library.v1.LibraryService.CreateBook" -// -// allow_unregistered_calls: true +// - selector: "google.example.library.v1.LibraryService.CreateBook" +// allow_unregistered_calls: true type UsageRule struct { - // AllowUnregisteredCalls: If true, the selected method allows - // unregistered calls, e.g. calls + // AllowUnregisteredCalls: If true, the selected method allows unregistered + // calls, e.g. calls // that don't identify any user or application. AllowUnregisteredCalls bool `json:"allowUnregisteredCalls,omitempty"` - // Selector: Selects the methods to which this rule applies. Use '*' to // indicate all // methods in all APIs. // // Refer to selector for syntax details. Selector string `json:"selector,omitempty"` - - // SkipServiceControl: If true, the selected method should skip service - // control and the control - // plane features, such as quota and billing, will not be - // available. + // SkipServiceControl: If true, the selected method should skip service control + // and the control + // plane features, such as quota and billing, will not be available. // This flag is used by Google Cloud Endpoints to bypass checks for // internal // methods, such as service health check methods. SkipServiceControl bool `json:"skipServiceControl,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AllowUnregisteredCalls") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "AllowUnregisteredCalls") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowUnregisteredCalls") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowUnregisteredCalls") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UsageRule) MarshalJSON() ([]byte, error) { +func (s UsageRule) MarshalJSON() ([]byte, error) { type NoMethod UsageRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "serviceuser.projects.services.disable": - type ProjectsServicesDisableCall struct { s *APIService name string @@ -4308,13 +3578,24 @@ type ProjectsServicesDisableCall struct { header_ http.Header } -// Disable: Disable a service so it can no longer be used with -// a +// Disable: Disable a service so it can no longer be used with a // project. This prevents unintended usage that may cause unexpected // billing // charges or security leaks. // // Operation +// +// - name: Name of the consumer and the service to disable for that +// consumer. +// +// The Service User implementation accepts the following forms for +// consumer: +// +// - "project:" +// +// A valid path would be: +// +// - projects/my-project/services/servicemanagement.googleapis.com. func (r *ProjectsServicesService) Disable(name string, disableservicerequest *DisableServiceRequest) *ProjectsServicesDisableCall { c := &ProjectsServicesDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4323,23 +3604,21 @@ func (r *ProjectsServicesService) Disable(name string, disableservicerequest *Di } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsServicesDisableCall) Fields(s ...googleapi.Field) *ProjectsServicesDisableCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsServicesDisableCall) Context(ctx context.Context) *ProjectsServicesDisableCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsServicesDisableCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4348,18 +3627,12 @@ func (c *ProjectsServicesDisableCall) Header() http.Header { } func (c *ProjectsServicesDisableCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.disableservicerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:disable") @@ -4372,16 +3645,14 @@ func (c *ProjectsServicesDisableCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceuser.projects.services.disable" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsServicesDisableCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4389,17 +3660,17 @@ func (c *ProjectsServicesDisableCall) Do(opts ...googleapi.CallOption) (*Operati if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4412,39 +3683,7 @@ func (c *ProjectsServicesDisableCall) Do(opts ...googleapi.CallOption) (*Operati return nil, err } return ret, nil - // { - // "description": "Disable a service so it can no longer be used with a\nproject. This prevents unintended usage that may cause unexpected billing\ncharges or security leaks.\n\nOperation\u003cresponse: google.protobuf.Empty\u003e", - // "flatPath": "v1/projects/{projectsId}/services/{servicesId}:disable", - // "httpMethod": "POST", - // "id": "serviceuser.projects.services.disable", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the consumer and the service to disable for that consumer.\n\nThe Service User implementation accepts the following forms for consumer:\n- \"project:\u003cproject_id\u003e\"\n\nA valid path would be:\n- projects/my-project/services/servicemanagement.googleapis.com", - // "location": "path", - // "pattern": "^projects/[^/]+/services/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:disable", - // "request": { - // "$ref": "DisableServiceRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/service.management" - // ] - // } - -} - -// method id "serviceuser.projects.services.enable": +} type ProjectsServicesEnableCall struct { s *APIService @@ -4456,11 +3695,15 @@ type ProjectsServicesEnableCall struct { } // Enable: Enable a service so it can be used with a project. -// See [Cloud Auth Guide](https://cloud.google.com/docs/authentication) -// for +// See Cloud Auth Guide (https://cloud.google.com/docs/authentication) for // more information. // // Operation +// +// - name: Name of the consumer and the service to enable for that consumer. +// +// A valid path would be: +// - projects/my-project/services/servicemanagement.googleapis.com. func (r *ProjectsServicesService) Enable(name string, enableservicerequest *EnableServiceRequest) *ProjectsServicesEnableCall { c := &ProjectsServicesEnableCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4469,23 +3712,21 @@ func (r *ProjectsServicesService) Enable(name string, enableservicerequest *Enab } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsServicesEnableCall) Fields(s ...googleapi.Field) *ProjectsServicesEnableCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsServicesEnableCall) Context(ctx context.Context) *ProjectsServicesEnableCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsServicesEnableCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4494,18 +3735,12 @@ func (c *ProjectsServicesEnableCall) Header() http.Header { } func (c *ProjectsServicesEnableCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.enableservicerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:enable") @@ -4518,16 +3753,14 @@ func (c *ProjectsServicesEnableCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceuser.projects.services.enable" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsServicesEnableCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4535,17 +3768,17 @@ func (c *ProjectsServicesEnableCall) Do(opts ...googleapi.CallOption) (*Operatio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4558,39 +3791,7 @@ func (c *ProjectsServicesEnableCall) Do(opts ...googleapi.CallOption) (*Operatio return nil, err } return ret, nil - // { - // "description": "Enable a service so it can be used with a project.\nSee [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for\nmore information.\n\nOperation\u003cresponse: google.protobuf.Empty\u003e", - // "flatPath": "v1/projects/{projectsId}/services/{servicesId}:enable", - // "httpMethod": "POST", - // "id": "serviceuser.projects.services.enable", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the consumer and the service to enable for that consumer.\n\nA valid path would be:\n- projects/my-project/services/servicemanagement.googleapis.com", - // "location": "path", - // "pattern": "^projects/[^/]+/services/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:enable", - // "request": { - // "$ref": "EnableServiceRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/service.management" - // ] - // } - -} - -// method id "serviceuser.projects.services.list": +} type ProjectsServicesListCall struct { s *APIService @@ -4602,21 +3803,26 @@ type ProjectsServicesListCall struct { } // List: List enabled services for the specified consumer. +// +// - parent: List enabled services for the specified parent. +// +// An example valid parent would be: +// - projects/my-project. func (r *ProjectsServicesService) List(parent string) *ProjectsServicesListCall { c := &ProjectsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": Requested size of -// the next page of data. +// PageSize sets the optional parameter "pageSize": Requested size of the next +// page of data. func (c *ProjectsServicesListCall) PageSize(pageSize int64) *ProjectsServicesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token identifying -// which result to start with; returned by a previous list +// PageToken sets the optional parameter "pageToken": Token identifying which +// result to start with; returned by a previous list // call. func (c *ProjectsServicesListCall) PageToken(pageToken string) *ProjectsServicesListCall { c.urlParams_.Set("pageToken", pageToken) @@ -4624,33 +3830,29 @@ func (c *ProjectsServicesListCall) PageToken(pageToken string) *ProjectsServices } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsServicesListCall) Fields(s ...googleapi.Field) *ProjectsServicesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsServicesListCall) IfNoneMatch(entityTag string) *ProjectsServicesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsServicesListCall) Context(ctx context.Context) *ProjectsServicesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsServicesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4659,12 +3861,7 @@ func (c *ProjectsServicesListCall) Header() http.Header { } func (c *ProjectsServicesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4681,16 +3878,15 @@ func (c *ProjectsServicesListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceuser.projects.services.list" call. -// Exactly one of *ListEnabledServicesResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *ListEnabledServicesResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// *ListEnabledServicesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsServicesListCall) Do(opts ...googleapi.CallOption) (*ListEnabledServicesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4698,17 +3894,17 @@ func (c *ProjectsServicesListCall) Do(opts ...googleapi.CallOption) (*ListEnable if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListEnabledServicesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4721,44 +3917,6 @@ func (c *ProjectsServicesListCall) Do(opts ...googleapi.CallOption) (*ListEnable return nil, err } return ret, nil - // { - // "description": "List enabled services for the specified consumer.", - // "flatPath": "v1/projects/{projectsId}/services", - // "httpMethod": "GET", - // "id": "serviceuser.projects.services.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "Requested size of the next page of data.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token identifying which result to start with; returned by a previous list\ncall.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "List enabled services for the specified parent.\n\nAn example valid parent would be:\n- projects/my-project", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/services", - // "response": { - // "$ref": "ListEnabledServicesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -4766,7 +3924,7 @@ func (c *ProjectsServicesListCall) Do(opts ...googleapi.CallOption) (*ListEnable // The provided context supersedes any context provided to the Context method. func (c *ProjectsServicesListCall) Pages(ctx context.Context, f func(*ListEnabledServicesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4782,8 +3940,6 @@ func (c *ProjectsServicesListCall) Pages(ctx context.Context, f func(*ListEnable } } -// method id "serviceuser.services.search": - type ServicesSearchCall struct { s *APIService urlParams_ gensupport.URLParams @@ -4804,15 +3960,15 @@ func (r *ServicesService) Search() *ServicesSearchCall { return c } -// PageSize sets the optional parameter "pageSize": Requested size of -// the next page of data. +// PageSize sets the optional parameter "pageSize": Requested size of the next +// page of data. func (c *ServicesSearchCall) PageSize(pageSize int64) *ServicesSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token identifying -// which result to start with; returned by a previous list +// PageToken sets the optional parameter "pageToken": Token identifying which +// result to start with; returned by a previous list // call. func (c *ServicesSearchCall) PageToken(pageToken string) *ServicesSearchCall { c.urlParams_.Set("pageToken", pageToken) @@ -4820,33 +3976,29 @@ func (c *ServicesSearchCall) PageToken(pageToken string) *ServicesSearchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ServicesSearchCall) Fields(s ...googleapi.Field) *ServicesSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ServicesSearchCall) IfNoneMatch(entityTag string) *ServicesSearchCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ServicesSearchCall) Context(ctx context.Context) *ServicesSearchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ServicesSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4855,12 +4007,7 @@ func (c *ServicesSearchCall) Header() http.Header { } func (c *ServicesSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4874,16 +4021,15 @@ func (c *ServicesSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "serviceuser.services.search" call. -// Exactly one of *SearchServicesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SearchServicesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SearchServicesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ServicesSearchCall) Do(opts ...googleapi.CallOption) (*SearchServicesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4891,17 +4037,17 @@ func (c *ServicesSearchCall) Do(opts ...googleapi.CallOption) (*SearchServicesRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SearchServicesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4914,35 +4060,6 @@ func (c *ServicesSearchCall) Do(opts ...googleapi.CallOption) (*SearchServicesRe return nil, err } return ret, nil - // { - // "description": "Search available services.\n\nWhen no filter is specified, returns all accessible services. For\nauthenticated users, also returns all services the calling user has\n\"servicemanagement.services.bind\" permission for.", - // "flatPath": "v1/services:search", - // "httpMethod": "GET", - // "id": "serviceuser.services.search", - // "parameterOrder": [], - // "parameters": { - // "pageSize": { - // "description": "Requested size of the next page of data.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token identifying which result to start with; returned by a previous list\ncall.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/services:search", - // "response": { - // "$ref": "SearchServicesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - } // Pages invokes f for each page of results. @@ -4950,7 +4067,7 @@ func (c *ServicesSearchCall) Do(opts ...googleapi.CallOption) (*SearchServicesRe // The provided context supersedes any context provided to the Context method. func (c *ServicesSearchCall) Pages(ctx context.Context, f func(*SearchServicesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index c8cbc279048..6bdcf838a55 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -9423,7 +9423,7 @@ func (c *SpreadsheetsBatchUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "spreadsheetId": c.spreadsheetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.batchUpdate" call. @@ -9518,7 +9518,7 @@ func (c *SpreadsheetsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.create" call. @@ -9655,7 +9655,7 @@ func (c *SpreadsheetsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "spreadsheetId": c.spreadsheetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.get" call. @@ -9767,7 +9767,7 @@ func (c *SpreadsheetsGetByDataFilterCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "spreadsheetId": c.spreadsheetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.getByDataFilter" call. @@ -9879,7 +9879,7 @@ func (c *SpreadsheetsDeveloperMetadataGetCall) doRequest(alt string) (*http.Resp "spreadsheetId": c.spreadsheetId, "metadataId": strconv.FormatInt(c.metadataId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.developerMetadata.get" call. @@ -9985,7 +9985,7 @@ func (c *SpreadsheetsDeveloperMetadataSearchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "spreadsheetId": c.spreadsheetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.developerMetadata.search" call. @@ -10092,7 +10092,7 @@ func (c *SpreadsheetsSheetsCopyToCall) doRequest(alt string) (*http.Response, er "spreadsheetId": c.spreadsheetId, "sheetId": strconv.FormatInt(c.sheetId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.sheets.copyTo" call. @@ -10314,7 +10314,7 @@ func (c *SpreadsheetsValuesAppendCall) doRequest(alt string) (*http.Response, er "spreadsheetId": c.spreadsheetId, "range": c.range_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.values.append" call. @@ -10419,7 +10419,7 @@ func (c *SpreadsheetsValuesBatchClearCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "spreadsheetId": c.spreadsheetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.values.batchClear" call. @@ -10525,7 +10525,7 @@ func (c *SpreadsheetsValuesBatchClearByDataFilterCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "spreadsheetId": c.spreadsheetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.values.batchClearByDataFilter" call. @@ -10716,7 +10716,7 @@ func (c *SpreadsheetsValuesBatchGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "spreadsheetId": c.spreadsheetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.values.batchGet" call. @@ -10821,7 +10821,7 @@ func (c *SpreadsheetsValuesBatchGetByDataFilterCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "spreadsheetId": c.spreadsheetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.values.batchGetByDataFilter" call. @@ -10925,7 +10925,7 @@ func (c *SpreadsheetsValuesBatchUpdateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "spreadsheetId": c.spreadsheetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.values.batchUpdate" call. @@ -11029,7 +11029,7 @@ func (c *SpreadsheetsValuesBatchUpdateByDataFilterCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "spreadsheetId": c.spreadsheetId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.values.batchUpdateByDataFilter" call. @@ -11138,7 +11138,7 @@ func (c *SpreadsheetsValuesClearCall) doRequest(alt string) (*http.Response, err "spreadsheetId": c.spreadsheetId, "range": c.range_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.values.clear" call. @@ -11326,7 +11326,7 @@ func (c *SpreadsheetsValuesGetCall) doRequest(alt string) (*http.Response, error "spreadsheetId": c.spreadsheetId, "range": c.range_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.values.get" call. @@ -11525,7 +11525,7 @@ func (c *SpreadsheetsValuesUpdateCall) doRequest(alt string) (*http.Response, er "spreadsheetId": c.spreadsheetId, "range": c.range_, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sheets.spreadsheets.values.update" call. diff --git a/siteverification/v1/siteverification-gen.go b/siteverification/v1/siteverification-gen.go index 9af1774bcef..8a7d99c3e53 100644 --- a/siteverification/v1/siteverification-gen.go +++ b/siteverification/v1/siteverification-gen.go @@ -388,7 +388,7 @@ func (c *WebResourceDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "siteVerification.webResource.delete" call. @@ -472,7 +472,7 @@ func (c *WebResourceGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "siteVerification.webResource.get" call. @@ -567,7 +567,7 @@ func (c *WebResourceGetTokenCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "siteVerification.webResource.getToken" call. @@ -665,7 +665,7 @@ func (c *WebResourceInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "siteVerification.webResource.insert" call. @@ -766,7 +766,7 @@ func (c *WebResourceListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "siteVerification.webResource.list" call. @@ -869,7 +869,7 @@ func (c *WebResourcePatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "siteVerification.webResource.patch" call. @@ -971,7 +971,7 @@ func (c *WebResourceUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "siteVerification.webResource.update" call. diff --git a/slides/v1/slides-gen.go b/slides/v1/slides-gen.go index a7efddd6997..886bfcdb49c 100644 --- a/slides/v1/slides-gen.go +++ b/slides/v1/slides-gen.go @@ -5984,7 +5984,7 @@ func (c *PresentationsBatchUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "presentationId": c.presentationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "slides.presentations.batchUpdate" call. @@ -6083,7 +6083,7 @@ func (c *PresentationsCreateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "slides.presentations.create" call. @@ -6190,7 +6190,7 @@ func (c *PresentationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "presentationId": c.presentationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "slides.presentations.get" call. @@ -6301,7 +6301,7 @@ func (c *PresentationsPagesGetCall) doRequest(alt string) (*http.Response, error "presentationId": c.presentationId, "pageObjectId": c.pageObjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "slides.presentations.pages.get" call. @@ -6446,7 +6446,7 @@ func (c *PresentationsPagesGetThumbnailCall) doRequest(alt string) (*http.Respon "presentationId": c.presentationId, "pageObjectId": c.pageObjectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "slides.presentations.pages.getThumbnail" call. diff --git a/smartdevicemanagement/v1/smartdevicemanagement-gen.go b/smartdevicemanagement/v1/smartdevicemanagement-gen.go index a18df53c270..c3d4ddf3c31 100644 --- a/smartdevicemanagement/v1/smartdevicemanagement-gen.go +++ b/smartdevicemanagement/v1/smartdevicemanagement-gen.go @@ -513,7 +513,7 @@ func (c *EnterprisesDevicesExecuteCommandCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "smartdevicemanagement.enterprises.devices.executeCommand" call. @@ -622,7 +622,7 @@ func (c *EnterprisesDevicesGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "smartdevicemanagement.enterprises.devices.get" call. @@ -739,7 +739,7 @@ func (c *EnterprisesDevicesListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "smartdevicemanagement.enterprises.devices.list" call. @@ -848,7 +848,7 @@ func (c *EnterprisesStructuresGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "smartdevicemanagement.enterprises.structures.get" call. @@ -964,7 +964,7 @@ func (c *EnterprisesStructuresListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "smartdevicemanagement.enterprises.structures.list" call. @@ -1073,7 +1073,7 @@ func (c *EnterprisesStructuresRoomsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "smartdevicemanagement.enterprises.structures.rooms.get" call. @@ -1182,7 +1182,7 @@ func (c *EnterprisesStructuresRoomsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "smartdevicemanagement.enterprises.structures.rooms.list" call. diff --git a/solar/v1/solar-gen.go b/solar/v1/solar-gen.go index de20ebe0340..013f23253c5 100644 --- a/solar/v1/solar-gen.go +++ b/solar/v1/solar-gen.go @@ -1316,7 +1316,7 @@ func (c *BuildingInsightsFindClosestCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "solar.buildingInsights.findClosest" call. @@ -1533,7 +1533,7 @@ func (c *DataLayersGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "solar.dataLayers.get" call. @@ -1640,7 +1640,7 @@ func (c *GeoTiffGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "solar.geoTiff.get" call. diff --git a/sourcerepo/v1/sourcerepo-gen.go b/sourcerepo/v1/sourcerepo-gen.go index ca67bab0539..49c2dd31e26 100644 --- a/sourcerepo/v1/sourcerepo-gen.go +++ b/sourcerepo/v1/sourcerepo-gen.go @@ -228,9 +228,9 @@ type AuditConfig struct { NullFields []string `json:"-"` } -func (s *AuditConfig) MarshalJSON() ([]byte, error) { +func (s AuditConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditLogConfig: Provides the configuration for logging a type of @@ -263,9 +263,9 @@ type AuditLogConfig struct { NullFields []string `json:"-"` } -func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { +func (s AuditLogConfig) MarshalJSON() ([]byte, error) { type NoMethod AuditLogConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members`, or principals, with a `role`. @@ -362,9 +362,9 @@ type Binding struct { NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { +func (s Binding) MarshalJSON() ([]byte, error) { type NoMethod Binding - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining @@ -419,9 +419,9 @@ type Expr struct { NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { +func (s Expr) MarshalJSON() ([]byte, error) { type NoMethod Expr - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListReposResponse: Response for ListRepos. The size is not set in the @@ -449,9 +449,9 @@ type ListReposResponse struct { NullFields []string `json:"-"` } -func (s *ListReposResponse) MarshalJSON() ([]byte, error) { +func (s ListReposResponse) MarshalJSON() ([]byte, error) { type NoMethod ListReposResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MirrorConfig: Configuration to automatically mirror a repository from @@ -481,9 +481,9 @@ type MirrorConfig struct { NullFields []string `json:"-"` } -func (s *MirrorConfig) MarshalJSON() ([]byte, error) { +func (s MirrorConfig) MarshalJSON() ([]byte, error) { type NoMethod MirrorConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Operation: This resource represents a long-running operation that is the @@ -528,9 +528,9 @@ type Operation struct { NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Policy: An Identity and Access Management (IAM) policy, which specifies @@ -620,9 +620,9 @@ type Policy struct { NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { +func (s Policy) MarshalJSON() ([]byte, error) { type NoMethod Policy - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ProjectConfig: Cloud Source Repositories configuration of a project. @@ -650,9 +650,9 @@ type ProjectConfig struct { NullFields []string `json:"-"` } -func (s *ProjectConfig) MarshalJSON() ([]byte, error) { +func (s ProjectConfig) MarshalJSON() ([]byte, error) { type NoMethod ProjectConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PubsubConfig: Configuration to publish a Cloud Pub/Sub message. @@ -687,9 +687,9 @@ type PubsubConfig struct { NullFields []string `json:"-"` } -func (s *PubsubConfig) MarshalJSON() ([]byte, error) { +func (s PubsubConfig) MarshalJSON() ([]byte, error) { type NoMethod PubsubConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Repo: A repository (or repo) is a Git repository storing versioned source @@ -727,9 +727,9 @@ type Repo struct { NullFields []string `json:"-"` } -func (s *Repo) MarshalJSON() ([]byte, error) { +func (s Repo) MarshalJSON() ([]byte, error) { type NoMethod Repo - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetIamPolicyRequest: Request message for `SetIamPolicy` method. @@ -756,9 +756,9 @@ type SetIamPolicyRequest struct { NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { type NoMethod SetIamPolicyRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Status: The `Status` type defines a logical error model that is suitable for @@ -790,9 +790,9 @@ type Status struct { NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SyncRepoMetadata: Metadata of SyncRepo. This message is in the metadata @@ -820,9 +820,9 @@ type SyncRepoMetadata struct { NullFields []string `json:"-"` } -func (s *SyncRepoMetadata) MarshalJSON() ([]byte, error) { +func (s SyncRepoMetadata) MarshalJSON() ([]byte, error) { type NoMethod SyncRepoMetadata - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SyncRepoRequest: Request for SyncRepo. @@ -849,9 +849,9 @@ type TestIamPermissionsRequest struct { NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsResponse: Response message for `TestIamPermissions` @@ -876,9 +876,9 @@ type TestIamPermissionsResponse struct { NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { type NoMethod TestIamPermissionsResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateProjectConfigRequest: Request for UpdateProjectConfig. @@ -902,9 +902,9 @@ type UpdateProjectConfigRequest struct { NullFields []string `json:"-"` } -func (s *UpdateProjectConfigRequest) MarshalJSON() ([]byte, error) { +func (s UpdateProjectConfigRequest) MarshalJSON() ([]byte, error) { type NoMethod UpdateProjectConfigRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UpdateRepoRequest: Request for UpdateRepo. @@ -928,9 +928,9 @@ type UpdateRepoRequest struct { NullFields []string `json:"-"` } -func (s *UpdateRepoRequest) MarshalJSON() ([]byte, error) { +func (s UpdateRepoRequest) MarshalJSON() ([]byte, error) { type NoMethod UpdateRepoRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProjectsGetConfigCall struct { @@ -1002,7 +1002,7 @@ func (c *ProjectsGetConfigCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.getConfig" call. @@ -1105,7 +1105,7 @@ func (c *ProjectsUpdateConfigCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.updateConfig" call. @@ -1208,7 +1208,7 @@ func (c *ProjectsReposCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.repos.create" call. @@ -1304,7 +1304,7 @@ func (c *ProjectsReposDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.repos.delete" call. @@ -1412,7 +1412,7 @@ func (c *ProjectsReposGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.repos.get" call. @@ -1539,7 +1539,7 @@ func (c *ProjectsReposGetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.repos.getIamPolicy" call. @@ -1665,7 +1665,7 @@ func (c *ProjectsReposListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.repos.list" call. @@ -1789,7 +1789,7 @@ func (c *ProjectsReposPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.repos.patch" call. @@ -1893,7 +1893,7 @@ func (c *ProjectsReposSetIamPolicyCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.repos.setIamPolicy" call. @@ -1996,7 +1996,7 @@ func (c *ProjectsReposSyncCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.repos.sync" call. @@ -2102,7 +2102,7 @@ func (c *ProjectsReposTestIamPermissionsCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sourcerepo.projects.repos.testIamPermissions" call. diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index 531974cda26..afe2a8bdb4a 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -6581,7 +6581,7 @@ func (c *ProjectsInstanceConfigOperationsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigOperations.list" call. @@ -6723,7 +6723,7 @@ func (c *ProjectsInstanceConfigsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.create" call. @@ -6843,7 +6843,7 @@ func (c *ProjectsInstanceConfigsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.delete" call. @@ -6951,7 +6951,7 @@ func (c *ProjectsInstanceConfigsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.get" call. @@ -7076,7 +7076,7 @@ func (c *ProjectsInstanceConfigsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.list" call. @@ -7219,7 +7219,7 @@ func (c *ProjectsInstanceConfigsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.patch" call. @@ -7322,7 +7322,7 @@ func (c *ProjectsInstanceConfigsOperationsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.operations.cancel" call. @@ -7420,7 +7420,7 @@ func (c *ProjectsInstanceConfigsOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.operations.delete" call. @@ -7529,7 +7529,7 @@ func (c *ProjectsInstanceConfigsOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.operations.get" call. @@ -7657,7 +7657,7 @@ func (c *ProjectsInstanceConfigsOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.operations.list" call. @@ -7782,7 +7782,7 @@ func (c *ProjectsInstanceConfigsSsdCachesOperationsCancelCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.ssdCaches.operations.cancel" call. @@ -7880,7 +7880,7 @@ func (c *ProjectsInstanceConfigsSsdCachesOperationsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.ssdCaches.operations.delete" call. @@ -7989,7 +7989,7 @@ func (c *ProjectsInstanceConfigsSsdCachesOperationsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.ssdCaches.operations.get" call. @@ -8117,7 +8117,7 @@ func (c *ProjectsInstanceConfigsSsdCachesOperationsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instanceConfigs.ssdCaches.operations.list" call. @@ -8258,7 +8258,7 @@ func (c *ProjectsInstancesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.create" call. @@ -8357,7 +8357,7 @@ func (c *ProjectsInstancesDeleteCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.delete" call. @@ -8473,7 +8473,7 @@ func (c *ProjectsInstancesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.get" call. @@ -8578,7 +8578,7 @@ func (c *ProjectsInstancesGetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.getIamPolicy" call. @@ -8727,7 +8727,7 @@ func (c *ProjectsInstancesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.list" call. @@ -8879,7 +8879,7 @@ func (c *ProjectsInstancesMoveCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.move" call. @@ -9003,7 +9003,7 @@ func (c *ProjectsInstancesPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.patch" call. @@ -9108,7 +9108,7 @@ func (c *ProjectsInstancesSetIamPolicyCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.setIamPolicy" call. @@ -9215,7 +9215,7 @@ func (c *ProjectsInstancesTestIamPermissionsCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.testIamPermissions" call. @@ -9399,7 +9399,7 @@ func (c *ProjectsInstancesBackupOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backupOperations.list" call. @@ -9530,7 +9530,7 @@ func (c *ProjectsInstancesBackupsCopyCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.copy" call. @@ -9700,7 +9700,7 @@ func (c *ProjectsInstancesBackupsCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.create" call. @@ -9796,7 +9796,7 @@ func (c *ProjectsInstancesBackupsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.delete" call. @@ -9904,7 +9904,7 @@ func (c *ProjectsInstancesBackupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.get" call. @@ -10012,7 +10012,7 @@ func (c *ProjectsInstancesBackupsGetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.getIamPolicy" call. @@ -10166,7 +10166,7 @@ func (c *ProjectsInstancesBackupsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.list" call. @@ -10307,7 +10307,7 @@ func (c *ProjectsInstancesBackupsPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.patch" call. @@ -10414,7 +10414,7 @@ func (c *ProjectsInstancesBackupsSetIamPolicyCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.setIamPolicy" call. @@ -10523,7 +10523,7 @@ func (c *ProjectsInstancesBackupsTestIamPermissionsCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.testIamPermissions" call. @@ -10627,7 +10627,7 @@ func (c *ProjectsInstancesBackupsOperationsCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.operations.cancel" call. @@ -10725,7 +10725,7 @@ func (c *ProjectsInstancesBackupsOperationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.operations.delete" call. @@ -10834,7 +10834,7 @@ func (c *ProjectsInstancesBackupsOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.operations.get" call. @@ -10962,7 +10962,7 @@ func (c *ProjectsInstancesBackupsOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.backups.operations.list" call. @@ -11146,7 +11146,7 @@ func (c *ProjectsInstancesDatabaseOperationsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databaseOperations.list" call. @@ -11277,7 +11277,7 @@ func (c *ProjectsInstancesDatabasesChangequorumCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.changequorum" call. @@ -11383,7 +11383,7 @@ func (c *ProjectsInstancesDatabasesCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.create" call. @@ -11481,7 +11481,7 @@ func (c *ProjectsInstancesDatabasesDropDatabaseCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.dropDatabase" call. @@ -11589,7 +11589,7 @@ func (c *ProjectsInstancesDatabasesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.get" call. @@ -11699,7 +11699,7 @@ func (c *ProjectsInstancesDatabasesGetDdlCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.getDdl" call. @@ -11808,7 +11808,7 @@ func (c *ProjectsInstancesDatabasesGetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.getIamPolicy" call. @@ -11955,7 +11955,7 @@ func (c *ProjectsInstancesDatabasesGetScansCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.getScans" call. @@ -12079,7 +12079,7 @@ func (c *ProjectsInstancesDatabasesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.list" call. @@ -12228,7 +12228,7 @@ func (c *ProjectsInstancesDatabasesPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.patch" call. @@ -12343,7 +12343,7 @@ func (c *ProjectsInstancesDatabasesRestoreCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.restore" call. @@ -12450,7 +12450,7 @@ func (c *ProjectsInstancesDatabasesSetIamPolicyCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.setIamPolicy" call. @@ -12559,7 +12559,7 @@ func (c *ProjectsInstancesDatabasesTestIamPermissionsCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.testIamPermissions" call. @@ -12665,7 +12665,7 @@ func (c *ProjectsInstancesDatabasesUpdateDdlCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.updateDdl" call. @@ -12775,7 +12775,7 @@ func (c *ProjectsInstancesDatabasesBackupSchedulesCreateCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.backupSchedules.create" call. @@ -12871,7 +12871,7 @@ func (c *ProjectsInstancesDatabasesBackupSchedulesDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.backupSchedules.delete" call. @@ -12979,7 +12979,7 @@ func (c *ProjectsInstancesDatabasesBackupSchedulesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.backupSchedules.get" call. @@ -13087,7 +13087,7 @@ func (c *ProjectsInstancesDatabasesBackupSchedulesGetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.backupSchedules.getIamPolicy" call. @@ -13211,7 +13211,7 @@ func (c *ProjectsInstancesDatabasesBackupSchedulesListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.backupSchedules.list" call. @@ -13349,7 +13349,7 @@ func (c *ProjectsInstancesDatabasesBackupSchedulesPatchCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.backupSchedules.patch" call. @@ -13456,7 +13456,7 @@ func (c *ProjectsInstancesDatabasesBackupSchedulesSetIamPolicyCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.backupSchedules.setIamPolicy" call. @@ -13565,7 +13565,7 @@ func (c *ProjectsInstancesDatabasesBackupSchedulesTestIamPermissionsCall) doRequ googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.backupSchedules.testIamPermissions" call. @@ -13690,7 +13690,7 @@ func (c *ProjectsInstancesDatabasesDatabaseRolesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.databaseRoles.list" call. @@ -13821,7 +13821,7 @@ func (c *ProjectsInstancesDatabasesDatabaseRolesTestIamPermissionsCall) doReques googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.databaseRoles.testIamPermissions" call. @@ -13925,7 +13925,7 @@ func (c *ProjectsInstancesDatabasesOperationsCancelCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.operations.cancel" call. @@ -14023,7 +14023,7 @@ func (c *ProjectsInstancesDatabasesOperationsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.operations.delete" call. @@ -14132,7 +14132,7 @@ func (c *ProjectsInstancesDatabasesOperationsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.operations.get" call. @@ -14260,7 +14260,7 @@ func (c *ProjectsInstancesDatabasesOperationsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.operations.list" call. @@ -14385,7 +14385,7 @@ func (c *ProjectsInstancesDatabasesSessionsBatchCreateCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.batchCreate" call. @@ -14499,7 +14499,7 @@ func (c *ProjectsInstancesDatabasesSessionsBatchWriteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.batchWrite" call. @@ -14602,7 +14602,7 @@ func (c *ProjectsInstancesDatabasesSessionsBeginTransactionCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.beginTransaction" call. @@ -14712,7 +14712,7 @@ func (c *ProjectsInstancesDatabasesSessionsCommitCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.commit" call. @@ -14824,7 +14824,7 @@ func (c *ProjectsInstancesDatabasesSessionsCreateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.create" call. @@ -14921,7 +14921,7 @@ func (c *ProjectsInstancesDatabasesSessionsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.delete" call. @@ -15029,7 +15029,7 @@ func (c *ProjectsInstancesDatabasesSessionsExecuteBatchDmlCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.executeBatchDml" call. @@ -15138,7 +15138,7 @@ func (c *ProjectsInstancesDatabasesSessionsExecuteSqlCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.executeSql" call. @@ -15242,7 +15242,7 @@ func (c *ProjectsInstancesDatabasesSessionsExecuteStreamingSqlCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.executeStreamingSql" call. @@ -15351,7 +15351,7 @@ func (c *ProjectsInstancesDatabasesSessionsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.get" call. @@ -15485,7 +15485,7 @@ func (c *ProjectsInstancesDatabasesSessionsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.list" call. @@ -15617,7 +15617,7 @@ func (c *ProjectsInstancesDatabasesSessionsPartitionQueryCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.partitionQuery" call. @@ -15730,7 +15730,7 @@ func (c *ProjectsInstancesDatabasesSessionsPartitionReadCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.partitionRead" call. @@ -15839,7 +15839,7 @@ func (c *ProjectsInstancesDatabasesSessionsReadCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.read" call. @@ -15945,7 +15945,7 @@ func (c *ProjectsInstancesDatabasesSessionsRollbackCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.rollback" call. @@ -16049,7 +16049,7 @@ func (c *ProjectsInstancesDatabasesSessionsStreamingReadCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "session": c.session, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.databases.sessions.streamingRead" call. @@ -16226,7 +16226,7 @@ func (c *ProjectsInstancesInstancePartitionOperationsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.instancePartitionOperations.list" call. @@ -16368,7 +16368,7 @@ func (c *ProjectsInstancesInstancePartitionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.instancePartitions.create" call. @@ -16478,7 +16478,7 @@ func (c *ProjectsInstancesInstancePartitionsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.instancePartitions.delete" call. @@ -16587,7 +16587,7 @@ func (c *ProjectsInstancesInstancePartitionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.instancePartitions.get" call. @@ -16724,7 +16724,7 @@ func (c *ProjectsInstancesInstancePartitionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.instancePartitions.list" call. @@ -16872,7 +16872,7 @@ func (c *ProjectsInstancesInstancePartitionsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.instancePartitions.patch" call. @@ -16975,7 +16975,7 @@ func (c *ProjectsInstancesInstancePartitionsOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.instancePartitions.operations.cancel" call. @@ -17073,7 +17073,7 @@ func (c *ProjectsInstancesInstancePartitionsOperationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.instancePartitions.operations.delete" call. @@ -17182,7 +17182,7 @@ func (c *ProjectsInstancesInstancePartitionsOperationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.instancePartitions.operations.get" call. @@ -17310,7 +17310,7 @@ func (c *ProjectsInstancesInstancePartitionsOperationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.instancePartitions.operations.list" call. @@ -17435,7 +17435,7 @@ func (c *ProjectsInstancesOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.operations.cancel" call. @@ -17533,7 +17533,7 @@ func (c *ProjectsInstancesOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.operations.delete" call. @@ -17642,7 +17642,7 @@ func (c *ProjectsInstancesOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.operations.get" call. @@ -17770,7 +17770,7 @@ func (c *ProjectsInstancesOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.projects.instances.operations.list" call. @@ -17942,7 +17942,7 @@ func (c *ScansListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spanner.scans.list" call. diff --git a/spectrum/v1explorer/spectrum-gen.go b/spectrum/v1explorer/spectrum-gen.go index ae4562635bb..5f578e214e7 100644 --- a/spectrum/v1explorer/spectrum-gen.go +++ b/spectrum/v1explorer/spectrum-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: http://developers.google.com/spectrum // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // spectrumService, err := spectrum.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // spectrumService, err := spectrum.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // spectrumService, err := spectrum.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package spectrum // import "google.golang.org/api/spectrum/v1explorer" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,14 +83,20 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "spectrum:v1explorer" const apiName = "spectrum" const apiVersion = "v1explorer" const basePath = "https://www.googleapis.com/spectrum/v1explorer/paws/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/spectrum/v1explorer/paws/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -129,45 +150,37 @@ type PawsService struct { } // AntennaCharacteristics: Antenna characteristics provide additional -// information, such as the antenna height, antenna type, etc. Whether -// antenna characteristics must be provided in a request depends on the -// device type and regulatory domain. +// information, such as the antenna height, antenna type, etc. Whether antenna +// characteristics must be provided in a request depends on the device type and +// regulatory domain. type AntennaCharacteristics struct { - // Height: The antenna height in meters. Whether the antenna height is - // required depends on the device type and the regulatory domain. Note - // that the height may be negative. + // Height: The antenna height in meters. Whether the antenna height is required + // depends on the device type and the regulatory domain. Note that the height + // may be negative. Height float64 `json:"height,omitempty"` - - // HeightType: If the height is required, then the height type (AGL for - // above ground level or AMSL for above mean sea level) is also - // required. The default is AGL. + // HeightType: If the height is required, then the height type (AGL for above + // ground level or AMSL for above mean sea level) is also required. The default + // is AGL. HeightType string `json:"heightType,omitempty"` - // HeightUncertainty: The height uncertainty in meters. Whether this is // required depends on the regulatory domain. HeightUncertainty float64 `json:"heightUncertainty,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Height") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Height") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AntennaCharacteristics) MarshalJSON() ([]byte, error) { +func (s AntennaCharacteristics) MarshalJSON() ([]byte, error) { type NoMethod AntennaCharacteristics - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *AntennaCharacteristics) UnmarshalJSON(data []byte) error { @@ -190,360 +203,283 @@ func (s *AntennaCharacteristics) UnmarshalJSON(data []byte) error { type DatabaseSpec struct { // Name: The display name for a database. Name string `json:"name,omitempty"` - // Uri: The corresponding URI of the database. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatabaseSpec) MarshalJSON() ([]byte, error) { +func (s DatabaseSpec) MarshalJSON() ([]byte, error) { type NoMethod DatabaseSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DbUpdateSpec: This message is provided by the database to notify -// devices of an upcoming change to the database URI. +// DbUpdateSpec: This message is provided by the database to notify devices of +// an upcoming change to the database URI. type DbUpdateSpec struct { - // Databases: A required list of one or more databases. A device should - // update its preconfigured list of databases to replace (only) the - // database that provided the response with the specified entries. + // Databases: A required list of one or more databases. A device should update + // its preconfigured list of databases to replace (only) the database that + // provided the response with the specified entries. Databases []*DatabaseSpec `json:"databases,omitempty"` - // ForceSendFields is a list of field names (e.g. "Databases") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Databases") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Databases") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DbUpdateSpec) MarshalJSON() ([]byte, error) { +func (s DbUpdateSpec) MarshalJSON() ([]byte, error) { type NoMethod DbUpdateSpec - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceCapabilities: Device capabilities provide additional -// information that may be used by a device to provide additional -// information to the database that may help it to determine available -// spectrum. If the database does not support device capabilities it -// will ignore the parameter altogether. +// DeviceCapabilities: Device capabilities provide additional information that +// may be used by a device to provide additional information to the database +// that may help it to determine available spectrum. If the database does not +// support device capabilities it will ignore the parameter altogether. type DeviceCapabilities struct { - // FrequencyRanges: An optional list of frequency ranges supported by - // the device. Each element must contain start and stop frequencies in - // which the device can operate. Channel identifiers are optional. When - // specified, the database should not return available spectrum that - // falls outside these ranges or channel IDs. + // FrequencyRanges: An optional list of frequency ranges supported by the + // device. Each element must contain start and stop frequencies in which the + // device can operate. Channel identifiers are optional. When specified, the + // database should not return available spectrum that falls outside these + // ranges or channel IDs. FrequencyRanges []*FrequencyRange `json:"frequencyRanges,omitempty"` - // ForceSendFields is a list of field names (e.g. "FrequencyRanges") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FrequencyRanges") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FrequencyRanges") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceCapabilities) MarshalJSON() ([]byte, error) { +func (s DeviceCapabilities) MarshalJSON() ([]byte, error) { type NoMethod DeviceCapabilities - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceDescriptor: The device descriptor contains parameters that -// identify the specific device, such as its manufacturer serial number, +// DeviceDescriptor: The device descriptor contains parameters that identify +// the specific device, such as its manufacturer serial number, // regulatory-specific identifier (e.g., FCC ID), and any other device // characteristics required by regulatory domains. type DeviceDescriptor struct { - // EtsiEnDeviceCategory: Specifies the ETSI white space device category. - // Valid values are the strings master and slave. This field is - // case-insensitive. Consult the ETSI documentation for details about - // the device types. + // EtsiEnDeviceCategory: Specifies the ETSI white space device category. Valid + // values are the strings master and slave. This field is case-insensitive. + // Consult the ETSI documentation for details about the device types. EtsiEnDeviceCategory string `json:"etsiEnDeviceCategory,omitempty"` - - // EtsiEnDeviceEmissionsClass: Specifies the ETSI white space device - // emissions class. The values are represented by numeric strings, such - // as 1, 2, etc. Consult the ETSI documentation for details about the - // device types. + // EtsiEnDeviceEmissionsClass: Specifies the ETSI white space device emissions + // class. The values are represented by numeric strings, such as 1, 2, etc. + // Consult the ETSI documentation for details about the device types. EtsiEnDeviceEmissionsClass string `json:"etsiEnDeviceEmissionsClass,omitempty"` - - // EtsiEnDeviceType: Specifies the ETSI white space device type. Valid - // values are single-letter strings, such as A, B, etc. Consult the ETSI - // documentation for details about the device types. + // EtsiEnDeviceType: Specifies the ETSI white space device type. Valid values + // are single-letter strings, such as A, B, etc. Consult the ETSI documentation + // for details about the device types. EtsiEnDeviceType string `json:"etsiEnDeviceType,omitempty"` - // EtsiEnTechnologyId: Specifies the ETSI white space device technology // identifier. The string value must not exceed 64 characters in length. // Consult the ETSI documentation for details about the device types. EtsiEnTechnologyId string `json:"etsiEnTechnologyId,omitempty"` - - // FccId: Specifies the device's FCC certification identifier. The value - // is an identifier string whose length should not exceed 32 characters. - // Note that, in practice, a valid FCC ID may be limited to 19 - // characters. + // FccId: Specifies the device's FCC certification identifier. The value is an + // identifier string whose length should not exceed 32 characters. Note that, + // in practice, a valid FCC ID may be limited to 19 characters. FccId string `json:"fccId,omitempty"` - - // FccTvbdDeviceType: Specifies the TV Band White Space device type, as - // defined by the FCC. Valid values are FIXED, MODE_1, MODE_2. + // FccTvbdDeviceType: Specifies the TV Band White Space device type, as defined + // by the FCC. Valid values are FIXED, MODE_1, MODE_2. FccTvbdDeviceType string `json:"fccTvbdDeviceType,omitempty"` - - // ManufacturerId: The manufacturer's ID may be required by the - // regulatory domain. This should represent the name of the device - // manufacturer, should be consistent across all devices from the same - // manufacturer, and should be distinct from that of other - // manufacturers. The string value must not exceed 64 characters in - // length. + // ManufacturerId: The manufacturer's ID may be required by the regulatory + // domain. This should represent the name of the device manufacturer, should be + // consistent across all devices from the same manufacturer, and should be + // distinct from that of other manufacturers. The string value must not exceed + // 64 characters in length. ManufacturerId string `json:"manufacturerId,omitempty"` - - // ModelId: The device's model ID may be required by the regulatory - // domain. The string value must not exceed 64 characters in length. + // ModelId: The device's model ID may be required by the regulatory domain. The + // string value must not exceed 64 characters in length. ModelId string `json:"modelId,omitempty"` - - // RulesetIds: The list of identifiers for rulesets supported by the - // device. A database may require that the device provide this list - // before servicing the device requests. If the database does not - // support any of the rulesets specified in the list, the database may - // refuse to service the device requests. If present, the list must - // contain at least one entry. + // RulesetIds: The list of identifiers for rulesets supported by the device. A + // database may require that the device provide this list before servicing the + // device requests. If the database does not support any of the rulesets + // specified in the list, the database may refuse to service the device + // requests. If present, the list must contain at least one entry. // // For information about the valid requests, see section 9.2 of the PAWS - // specification. Currently, FccTvBandWhiteSpace-2010 is the only - // supported ruleset. + // specification. Currently, FccTvBandWhiteSpace-2010 is the only supported + // ruleset. RulesetIds []string `json:"rulesetIds,omitempty"` - - // SerialNumber: The manufacturer's device serial number; required by - // the applicable regulatory domain. The length of the value must not - // exceed 64 characters. + // SerialNumber: The manufacturer's device serial number; required by the + // applicable regulatory domain. The length of the value must not exceed 64 + // characters. SerialNumber string `json:"serialNumber,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "EtsiEnDeviceCategory") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "EtsiEnDeviceCategory") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EtsiEnDeviceCategory") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EtsiEnDeviceCategory") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceDescriptor) MarshalJSON() ([]byte, error) { +func (s DeviceDescriptor) MarshalJSON() ([]byte, error) { type NoMethod DeviceDescriptor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceOwner: This parameter contains device-owner information -// required as part of device registration. The regulatory domains may -// require additional parameters. +// DeviceOwner: This parameter contains device-owner information required as +// part of device registration. The regulatory domains may require additional +// parameters. +// +// All contact information must be expressed using the structure defined by the +// vCard format specification. Only the contact fields of vCard are supported: // -// All contact information must be expressed using the structure defined -// by the vCard format specification. Only the contact fields of vCard -// are supported: // - fn: Full name of an individual // - org: Name of the organization // - adr: Address fields // - tel: Telephone numbers // - email: Email addresses // -// Note that the vCard specification defines maximum lengths for each -// field. +// Note that the vCard specification defines maximum lengths for each field. type DeviceOwner struct { - // Operator: The vCard contact information for the device operator is - // optional, but may be required by specific regulatory domains. + // Operator: The vCard contact information for the device operator is optional, + // but may be required by specific regulatory domains. Operator *Vcard `json:"operator,omitempty"` - - // Owner: The vCard contact information for the individual or business - // that owns the device is required. + // Owner: The vCard contact information for the individual or business that + // owns the device is required. Owner *Vcard `json:"owner,omitempty"` - // ForceSendFields is a list of field names (e.g. "Operator") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Operator") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Operator") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceOwner) MarshalJSON() ([]byte, error) { +func (s DeviceOwner) MarshalJSON() ([]byte, error) { type NoMethod DeviceOwner - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DeviceValidity: The device validity element describes whether a -// particular device is valid to operate in the regulatory domain. +// DeviceValidity: The device validity element describes whether a particular +// device is valid to operate in the regulatory domain. type DeviceValidity struct { - // DeviceDesc: The descriptor of the device for which the validity check - // was requested. It will always be present. + // DeviceDesc: The descriptor of the device for which the validity check was + // requested. It will always be present. DeviceDesc *DeviceDescriptor `json:"deviceDesc,omitempty"` - - // IsValid: The validity status: true if the device is valid for - // operation, false otherwise. It will always be present. + // IsValid: The validity status: true if the device is valid for operation, + // false otherwise. It will always be present. IsValid bool `json:"isValid,omitempty"` - - // Reason: If the device identifier is not valid, the database may - // include a reason. The reason may be in any language. The length of - // the value should not exceed 128 characters. + // Reason: If the device identifier is not valid, the database may include a + // reason. The reason may be in any language. The length of the value should + // not exceed 128 characters. Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceDesc") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceDesc") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceDesc") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DeviceValidity) MarshalJSON() ([]byte, error) { +func (s DeviceValidity) MarshalJSON() ([]byte, error) { type NoMethod DeviceValidity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventTime: The start and stop times of an event. This is used to -// indicate the time period for which a spectrum profile is valid. +// EventTime: The start and stop times of an event. This is used to indicate +// the time period for which a spectrum profile is valid. // -// Both times are expressed using the format, YYYY-MM-DDThh:mm:ssZ, as -// defined in RFC3339. The times must be expressed using UTC. +// Both times are expressed using the format, YYYY-MM-DDThh:mm:ssZ, as defined +// in RFC3339. The times must be expressed using UTC. type EventTime struct { // StartTime: The inclusive start of the event. It will be present. StartTime string `json:"startTime,omitempty"` - // StopTime: The exclusive end of the event. It will be present. StopTime string `json:"stopTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "StartTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StartTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StartTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EventTime) MarshalJSON() ([]byte, error) { +func (s EventTime) MarshalJSON() ([]byte, error) { type NoMethod EventTime - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FrequencyRange: A specific range of frequencies together with the -// associated maximum power level and channel identifier. +// FrequencyRange: A specific range of frequencies together with the associated +// maximum power level and channel identifier. type FrequencyRange struct { - // ChannelId: The database may include a channel identifier, when - // applicable. When it is included, the device should treat it as - // informative. The length of the identifier should not exceed 16 - // characters. + // ChannelId: The database may include a channel identifier, when applicable. + // When it is included, the device should treat it as informative. The length + // of the identifier should not exceed 16 characters. ChannelId string `json:"channelId,omitempty"` - // MaxPowerDBm: The maximum total power level (EIRP)—computed over the - // corresponding operating bandwidth—that is permitted within the - // frequency range. Depending on the context in which the - // frequency-range element appears, this value may be required. For - // example, it is required in the available-spectrum response, - // available-spectrum-batch response, and spectrum-use notification - // message, but it should not be present (it is not applicable) when the - // frequency range appears inside a device-capabilities message. + // corresponding operating bandwidth—that is permitted within the frequency + // range. Depending on the context in which the frequency-range element + // appears, this value may be required. For example, it is required in the + // available-spectrum response, available-spectrum-batch response, and + // spectrum-use notification message, but it should not be present (it is not + // applicable) when the frequency range appears inside a device-capabilities + // message. MaxPowerDBm float64 `json:"maxPowerDBm,omitempty"` - - // StartHz: The required inclusive start of the frequency range (in - // Hertz). + // StartHz: The required inclusive start of the frequency range (in Hertz). StartHz float64 `json:"startHz,omitempty"` - // StopHz: The required exclusive end of the frequency range (in Hertz). StopHz float64 `json:"stopHz,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ChannelId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChannelId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FrequencyRange) MarshalJSON() ([]byte, error) { +func (s FrequencyRange) MarshalJSON() ([]byte, error) { type NoMethod FrequencyRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *FrequencyRange) UnmarshalJSON(data []byte) error { @@ -567,97 +503,77 @@ func (s *FrequencyRange) UnmarshalJSON(data []byte) error { // GeoLocation: This parameter is used to specify the geolocation of the // device. type GeoLocation struct { - // Confidence: The location confidence level, as an integer percentage, - // may be required, depending on the regulatory domain. When the - // parameter is optional and not provided, its value is assumed to be - // 95. Valid values range from 0 to 99, since, in practice, 100-percent - // confidence is not achievable. The confidence value is meaningful only - // when geolocation refers to a point with uncertainty. + // Confidence: The location confidence level, as an integer percentage, may be + // required, depending on the regulatory domain. When the parameter is optional + // and not provided, its value is assumed to be 95. Valid values range from 0 + // to 99, since, in practice, 100-percent confidence is not achievable. The + // confidence value is meaningful only when geolocation refers to a point with + // uncertainty. Confidence int64 `json:"confidence,omitempty"` - // Point: If present, indicates that the geolocation represents a point. - // Paradoxically, a point is parameterized using an ellipse, where the - // center represents the location of the point and the distances along - // the major and minor axes represent the uncertainty. The uncertainty - // values may be required, depending on the regulatory domain. + // Paradoxically, a point is parameterized using an ellipse, where the center + // represents the location of the point and the distances along the major and + // minor axes represent the uncertainty. The uncertainty values may be + // required, depending on the regulatory domain. Point *GeoLocationEllipse `json:"point,omitempty"` - - // Region: If present, indicates that the geolocation represents a - // region. Database support for regions is optional. + // Region: If present, indicates that the geolocation represents a region. + // Database support for regions is optional. Region *GeoLocationPolygon `json:"region,omitempty"` - // ForceSendFields is a list of field names (e.g. "Confidence") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Confidence") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Confidence") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoLocation) MarshalJSON() ([]byte, error) { +func (s GeoLocation) MarshalJSON() ([]byte, error) { type NoMethod GeoLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GeoLocationEllipse: A "point" with uncertainty is represented using -// the Ellipse shape. +// GeoLocationEllipse: A "point" with uncertainty is represented using the +// Ellipse shape. type GeoLocationEllipse struct { - // Center: A required geo-spatial point representing the center of the - // ellipse. + // Center: A required geo-spatial point representing the center of the ellipse. Center *GeoLocationPoint `json:"center,omitempty"` - - // Orientation: A floating-point number that expresses the orientation - // of the ellipse, representing the rotation, in degrees, of the - // semi-major axis from North towards the East. For example, when the - // uncertainty is greatest along the North-South direction, orientation - // is 0 degrees; conversely, if the uncertainty is greatest along the - // East-West direction, orientation is 90 degrees. When orientation is - // not present, the orientation is assumed to be 0. + // Orientation: A floating-point number that expresses the orientation of the + // ellipse, representing the rotation, in degrees, of the semi-major axis from + // North towards the East. For example, when the uncertainty is greatest along + // the North-South direction, orientation is 0 degrees; conversely, if the + // uncertainty is greatest along the East-West direction, orientation is 90 + // degrees. When orientation is not present, the orientation is assumed to be + // 0. Orientation float64 `json:"orientation,omitempty"` - // SemiMajorAxis: A floating-point number that expresses the location - // uncertainty along the major axis of the ellipse. May be required by - // the regulatory domain. When the uncertainty is optional, the default - // value is 0. + // uncertainty along the major axis of the ellipse. May be required by the + // regulatory domain. When the uncertainty is optional, the default value is 0. SemiMajorAxis float64 `json:"semiMajorAxis,omitempty"` - // SemiMinorAxis: A floating-point number that expresses the location - // uncertainty along the minor axis of the ellipse. May be required by - // the regulatory domain. When the uncertainty is optional, the default - // value is 0. + // uncertainty along the minor axis of the ellipse. May be required by the + // regulatory domain. When the uncertainty is optional, the default value is 0. SemiMinorAxis float64 `json:"semiMinorAxis,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Center") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Center") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Center") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoLocationEllipse) MarshalJSON() ([]byte, error) { +func (s GeoLocationEllipse) MarshalJSON() ([]byte, error) { type NoMethod GeoLocationEllipse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GeoLocationEllipse) UnmarshalJSON(data []byte) error { @@ -680,39 +596,30 @@ func (s *GeoLocationEllipse) UnmarshalJSON(data []byte) error { // GeoLocationPoint: A single geolocation on the globe. type GeoLocationPoint struct { - // Latitude: A required floating-point number that expresses the - // latitude in degrees using the WGS84 datum. For details on this - // encoding, see the National Imagery and Mapping Agency's Technical - // Report TR8350.2. + // Latitude: A required floating-point number that expresses the latitude in + // degrees using the WGS84 datum. For details on this encoding, see the + // National Imagery and Mapping Agency's Technical Report TR8350.2. Latitude float64 `json:"latitude,omitempty"` - - // Longitude: A required floating-point number that expresses the - // longitude in degrees using the WGS84 datum. For details on this - // encoding, see the National Imagery and Mapping Agency's Technical - // Report TR8350.2. + // Longitude: A required floating-point number that expresses the longitude in + // degrees using the WGS84 datum. For details on this encoding, see the + // National Imagery and Mapping Agency's Technical Report TR8350.2. Longitude float64 `json:"longitude,omitempty"` - // ForceSendFields is a list of field names (e.g. "Latitude") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Latitude") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Latitude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoLocationPoint) MarshalJSON() ([]byte, error) { +func (s GeoLocationPoint) MarshalJSON() ([]byte, error) { type NoMethod GeoLocationPoint - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *GeoLocationPoint) UnmarshalJSON(data []byte) error { @@ -731,297 +638,241 @@ func (s *GeoLocationPoint) UnmarshalJSON(data []byte) error { return nil } -// GeoLocationPolygon: A region is represented using the polygonal -// shape. +// GeoLocationPolygon: A region is represented using the polygonal shape. type GeoLocationPolygon struct { - // Exterior: When the geolocation describes a region, the exterior field - // refers to a list of latitude/longitude points that represent the - // vertices of a polygon. The first and last points must be the same. - // Thus, a minimum of four points is required. The following polygon - // restrictions from RFC5491 apply: - // - A connecting line shall not cross another connecting line of the - // same polygon. + // Exterior: When the geolocation describes a region, the exterior field refers + // to a list of latitude/longitude points that represent the vertices of a + // polygon. The first and last points must be the same. Thus, a minimum of four + // points is required. The following polygon restrictions from RFC5491 apply: + // + // - A connecting line shall not cross another connecting line of the same + // polygon. // - The vertices must be defined in a counterclockwise order. - // - The edges of a polygon are defined by the shortest path between two - // points in space (not a geodesic curve). Consequently, the length - // between two adjacent vertices should be restricted to a maximum of - // 130 km. + // - The edges of a polygon are defined by the shortest path between two points + // in space (not a geodesic curve). Consequently, the length between two + // adjacent vertices should be restricted to a maximum of 130 km. // - All vertices are assumed to be at the same altitude. - // - Polygon shapes should be restricted to a maximum of 15 vertices (16 - // points that include the repeated vertex). + // - Polygon shapes should be restricted to a maximum of 15 vertices (16 points + // that include the repeated vertex). Exterior []*GeoLocationPoint `json:"exterior,omitempty"` - // ForceSendFields is a list of field names (e.g. "Exterior") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Exterior") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Exterior") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoLocationPolygon) MarshalJSON() ([]byte, error) { +func (s GeoLocationPolygon) MarshalJSON() ([]byte, error) { type NoMethod GeoLocationPolygon - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GeoSpectrumSchedule: The schedule of spectrum profiles available at a // particular geolocation. type GeoSpectrumSchedule struct { - // Location: The geolocation identifies the location at which the - // spectrum schedule applies. It will always be present. + // Location: The geolocation identifies the location at which the spectrum + // schedule applies. It will always be present. Location *GeoLocation `json:"location,omitempty"` - - // SpectrumSchedules: A list of available spectrum profiles and - // associated times. It will always be present, and at least one - // schedule must be included (though it may be empty if there is no - // available spectrum). More than one schedule may be included to - // represent future changes to the available spectrum. + // SpectrumSchedules: A list of available spectrum profiles and associated + // times. It will always be present, and at least one schedule must be included + // (though it may be empty if there is no available spectrum). More than one + // schedule may be included to represent future changes to the available + // spectrum. SpectrumSchedules []*SpectrumSchedule `json:"spectrumSchedules,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Location") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Location") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GeoSpectrumSchedule) MarshalJSON() ([]byte, error) { +func (s GeoSpectrumSchedule) MarshalJSON() ([]byte, error) { type NoMethod GeoSpectrumSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PawsGetSpectrumBatchRequest: The request message for a batch -// available spectrum query protocol. +// PawsGetSpectrumBatchRequest: The request message for a batch available +// spectrum query protocol. type PawsGetSpectrumBatchRequest struct { // Antenna: Depending on device type and regulatory domain, antenna // characteristics may be required. Antenna *AntennaCharacteristics `json:"antenna,omitempty"` - - // Capabilities: The master device may include its device capabilities - // to limit the available-spectrum batch response to the spectrum that - // is compatible with its capabilities. The database should not return - // spectrum that is incompatible with the specified capabilities. + // Capabilities: The master device may include its device capabilities to limit + // the available-spectrum batch response to the spectrum that is compatible + // with its capabilities. The database should not return spectrum that is + // incompatible with the specified capabilities. Capabilities *DeviceCapabilities `json:"capabilities,omitempty"` - - // DeviceDesc: When the available spectrum request is made on behalf of - // a specific device (a master or slave device), device descriptor - // information for the device on whose behalf the request is made is - // required (in such cases, the requestType parameter must be empty). - // When a requestType value is specified, device descriptor information - // may be optional or required according to the rules of the applicable - // regulatory domain. + // DeviceDesc: When the available spectrum request is made on behalf of a + // specific device (a master or slave device), device descriptor information + // for the device on whose behalf the request is made is required (in such + // cases, the requestType parameter must be empty). When a requestType value is + // specified, device descriptor information may be optional or required + // according to the rules of the applicable regulatory domain. DeviceDesc *DeviceDescriptor `json:"deviceDesc,omitempty"` - - // Locations: A geolocation list is required. This allows a device to - // specify its current location plus additional anticipated locations - // when allowed by the regulatory domain. At least one location must be - // included. Geolocation must be given as the location of the radiation - // center of the device's antenna. If a location specifies a region, - // rather than a point, the database may return an UNIMPLEMENTED error - // if it does not support query by region. + // Locations: A geolocation list is required. This allows a device to specify + // its current location plus additional anticipated locations when allowed by + // the regulatory domain. At least one location must be included. Geolocation + // must be given as the location of the radiation center of the device's + // antenna. If a location specifies a region, rather than a point, the database + // may return an UNIMPLEMENTED error if it does not support query by + // region. // - // There is no upper limit on the number of locations included in a - // available spectrum batch request, but the database may restrict the - // number of locations it supports by returning a response with fewer - // locations than specified in the batch request. Note that geolocations - // must be those of the master device (a device with geolocation - // capability that makes an available spectrum batch request), whether - // the master device is making the request on its own behalf or on - // behalf of a slave device (one without geolocation capability). + // There is no upper limit on the number of locations included in a available + // spectrum batch request, but the database may restrict the number of + // locations it supports by returning a response with fewer locations than + // specified in the batch request. Note that geolocations must be those of the + // master device (a device with geolocation capability that makes an available + // spectrum batch request), whether the master device is making the request on + // its own behalf or on behalf of a slave device (one without geolocation + // capability). Locations []*GeoLocation `json:"locations,omitempty"` - - // MasterDeviceDesc: When an available spectrum batch request is made by - // the master device (a device with geolocation capability) on behalf of - // a slave device (a device without geolocation capability), the rules - // of the applicable regulatory domain may require the master device to - // provide its own device descriptor information (in addition to device - // descriptor information for the slave device in a separate parameter). + // MasterDeviceDesc: When an available spectrum batch request is made by the + // master device (a device with geolocation capability) on behalf of a slave + // device (a device without geolocation capability), the rules of the + // applicable regulatory domain may require the master device to provide its + // own device descriptor information (in addition to device descriptor + // information for the slave device in a separate parameter). MasterDeviceDesc *DeviceDescriptor `json:"masterDeviceDesc,omitempty"` - // Owner: Depending on device type and regulatory domain, device owner - // information may be included in an available spectrum batch request. - // This allows the device to register and get spectrum-availability - // information in a single request. + // information may be included in an available spectrum batch request. This + // allows the device to register and get spectrum-availability information in a + // single request. Owner *DeviceOwner `json:"owner,omitempty"` - - // RequestType: The request type parameter is an optional parameter that - // can be used to modify an available spectrum batch request, but its - // use depends on applicable regulatory rules. For example, It may be - // used to request generic slave device parameters without having to - // specify the device descriptor for a specific device. When the - // requestType parameter is missing, the request is for a specific - // device (master or slave), and the device descriptor parameter for the - // device on whose behalf the batch request is made is required. + // RequestType: The request type parameter is an optional parameter that can be + // used to modify an available spectrum batch request, but its use depends on + // applicable regulatory rules. For example, It may be used to request generic + // slave device parameters without having to specify the device descriptor for + // a specific device. When the requestType parameter is missing, the request is + // for a specific device (master or slave), and the device descriptor parameter + // for the device on whose behalf the batch request is made is required. RequestType string `json:"requestType,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Antenna") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Antenna") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Antenna") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Antenna") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsGetSpectrumBatchRequest) MarshalJSON() ([]byte, error) { +func (s PawsGetSpectrumBatchRequest) MarshalJSON() ([]byte, error) { type NoMethod PawsGetSpectrumBatchRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PawsGetSpectrumBatchResponse: The response message for the batch -// available spectrum query contains a schedule of available spectrum -// for the device at multiple locations. +// PawsGetSpectrumBatchResponse: The response message for the batch available +// spectrum query contains a schedule of available spectrum for the device at +// multiple locations. type PawsGetSpectrumBatchResponse struct { - // DatabaseChange: A database may include the databaseChange parameter - // to notify a device of a change to its database URI, providing one or - // more alternate database URIs. The device should use this information - // to update its list of pre-configured databases by (only) replacing - // its entry for the responding database with the list of alternate - // URIs. + // DatabaseChange: A database may include the databaseChange parameter to + // notify a device of a change to its database URI, providing one or more + // alternate database URIs. The device should use this information to update + // its list of pre-configured databases by (only) replacing its entry for the + // responding database with the list of alternate URIs. DatabaseChange *DbUpdateSpec `json:"databaseChange,omitempty"` - - // DeviceDesc: The database must return in its available spectrum - // response the device descriptor information it received in the master - // device's available spectrum batch request. + // DeviceDesc: The database must return in its available spectrum response the + // device descriptor information it received in the master device's available + // spectrum batch request. DeviceDesc *DeviceDescriptor `json:"deviceDesc,omitempty"` - - // GeoSpectrumSchedules: The available spectrum batch response must - // contain a geo-spectrum schedule list, The list may be empty if - // spectrum is not available. The database may return more than one - // geo-spectrum schedule to represent future changes to the available - // spectrum. How far in advance a schedule may be provided depends upon - // the applicable regulatory domain. The database may return available - // spectrum for fewer geolocations than requested. The device must not - // make assumptions about the order of the entries in the list, and must - // use the geolocation value in each geo-spectrum schedule entry to - // match available spectrum to a location. + // GeoSpectrumSchedules: The available spectrum batch response must contain a + // geo-spectrum schedule list, The list may be empty if spectrum is not + // available. The database may return more than one geo-spectrum schedule to + // represent future changes to the available spectrum. How far in advance a + // schedule may be provided depends upon the applicable regulatory domain. The + // database may return available spectrum for fewer geolocations than + // requested. The device must not make assumptions about the order of the + // entries in the list, and must use the geolocation value in each geo-spectrum + // schedule entry to match available spectrum to a location. GeoSpectrumSchedules []*GeoSpectrumSchedule `json:"geoSpectrumSchedules,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "spectrum#pawsGetSpectrumBatchResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "spectrum#pawsGetSpectrumBatchResponse". Kind string `json:"kind,omitempty"` - - // MaxContiguousBwHz: The database may return a constraint on the - // allowed maximum contiguous bandwidth (in Hertz). A regulatory domain - // may require the database to return this parameter. When this - // parameter is present in the response, the device must apply this - // constraint to its spectrum-selection logic to ensure that no single - // block of spectrum has bandwidth that exceeds this value. + // MaxContiguousBwHz: The database may return a constraint on the allowed + // maximum contiguous bandwidth (in Hertz). A regulatory domain may require the + // database to return this parameter. When this parameter is present in the + // response, the device must apply this constraint to its spectrum-selection + // logic to ensure that no single block of spectrum has bandwidth that exceeds + // this value. MaxContiguousBwHz float64 `json:"maxContiguousBwHz,omitempty"` - - // MaxTotalBwHz: The database may return a constraint on the allowed - // maximum total bandwidth (in Hertz), which does not need to be - // contiguous. A regulatory domain may require the database to return - // this parameter. When this parameter is present in the available - // spectrum batch response, the device must apply this constraint to its - // spectrum-selection logic to ensure that total bandwidth does not - // exceed this value. + // MaxTotalBwHz: The database may return a constraint on the allowed maximum + // total bandwidth (in Hertz), which does not need to be contiguous. A + // regulatory domain may require the database to return this parameter. When + // this parameter is present in the available spectrum batch response, the + // device must apply this constraint to its spectrum-selection logic to ensure + // that total bandwidth does not exceed this value. MaxTotalBwHz float64 `json:"maxTotalBwHz,omitempty"` - - // NeedsSpectrumReport: For regulatory domains that require a - // spectrum-usage report from devices, the database must return true for - // this parameter if the geo-spectrum schedules list is not empty; - // otherwise, the database should either return false or omit this - // parameter. If this parameter is present and its value is true, the - // device must send a spectrum use notify message to the database; - // otherwise, the device should not send the notification. + // NeedsSpectrumReport: For regulatory domains that require a spectrum-usage + // report from devices, the database must return true for this parameter if the + // geo-spectrum schedules list is not empty; otherwise, the database should + // either return false or omit this parameter. If this parameter is present and + // its value is true, the device must send a spectrum use notify message to the + // database; otherwise, the device should not send the notification. NeedsSpectrumReport bool `json:"needsSpectrumReport,omitempty"` - // RulesetInfo: The database should return ruleset information, which - // identifies the applicable regulatory authority and ruleset for the - // available spectrum batch response. If included, the device must use - // the corresponding ruleset to interpret the response. Values provided - // in the returned ruleset information, such as maxLocationChange, take - // precedence over any conflicting values provided in the ruleset - // information returned in a prior initialization response sent by the - // database to the device. + // identifies the applicable regulatory authority and ruleset for the available + // spectrum batch response. If included, the device must use the corresponding + // ruleset to interpret the response. Values provided in the returned ruleset + // information, such as maxLocationChange, take precedence over any conflicting + // values provided in the ruleset information returned in a prior + // initialization response sent by the database to the device. RulesetInfo *RulesetInfo `json:"rulesetInfo,omitempty"` - // Timestamp: The database includes a timestamp of the form, // YYYY-MM-DDThh:mm:ssZ (Internet timestamp format per RFC3339), in its - // available spectrum batch response. The timestamp should be used by - // the device as a reference for the start and stop times specified in - // the response spectrum schedules. + // available spectrum batch response. The timestamp should be used by the + // device as a reference for the start and stop times specified in the response + // spectrum schedules. Timestamp string `json:"timestamp,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DatabaseChange") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DatabaseChange") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DatabaseChange") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsGetSpectrumBatchResponse) MarshalJSON() ([]byte, error) { +func (s PawsGetSpectrumBatchResponse) MarshalJSON() ([]byte, error) { type NoMethod PawsGetSpectrumBatchResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PawsGetSpectrumBatchResponse) UnmarshalJSON(data []byte) error { @@ -1040,206 +891,164 @@ func (s *PawsGetSpectrumBatchResponse) UnmarshalJSON(data []byte) error { return nil } -// PawsGetSpectrumRequest: The request message for the available -// spectrum query protocol which must include the device's geolocation. +// PawsGetSpectrumRequest: The request message for the available spectrum query +// protocol which must include the device's geolocation. type PawsGetSpectrumRequest struct { - // Antenna: Depending on device type and regulatory domain, the - // characteristics of the antenna may be required. + // Antenna: Depending on device type and regulatory domain, the characteristics + // of the antenna may be required. Antenna *AntennaCharacteristics `json:"antenna,omitempty"` - - // Capabilities: The master device may include its device capabilities - // to limit the available-spectrum response to the spectrum that is - // compatible with its capabilities. The database should not return - // spectrum that is incompatible with the specified capabilities. + // Capabilities: The master device may include its device capabilities to limit + // the available-spectrum response to the spectrum that is compatible with its + // capabilities. The database should not return spectrum that is incompatible + // with the specified capabilities. Capabilities *DeviceCapabilities `json:"capabilities,omitempty"` - - // DeviceDesc: When the available spectrum request is made on behalf of - // a specific device (a master or slave device), device descriptor - // information for that device is required (in such cases, the - // requestType parameter must be empty). When a requestType value is - // specified, device descriptor information may be optional or required - // according to the rules of the applicable regulatory domain. + // DeviceDesc: When the available spectrum request is made on behalf of a + // specific device (a master or slave device), device descriptor information + // for that device is required (in such cases, the requestType parameter must + // be empty). When a requestType value is specified, device descriptor + // information may be optional or required according to the rules of the + // applicable regulatory domain. DeviceDesc *DeviceDescriptor `json:"deviceDesc,omitempty"` - - // Location: The geolocation of the master device (a device with - // geolocation capability that makes an available spectrum request) is - // required whether the master device is making the request on its own - // behalf or on behalf of a slave device (one without geolocation - // capability). The location must be the location of the radiation - // center of the master device's antenna. To support mobile devices, a - // regulatory domain may allow the anticipated position of the master - // device to be given instead. If the location specifies a region, - // rather than a point, the database may return an UNIMPLEMENTED error - // code if it does not support query by region. + // Location: The geolocation of the master device (a device with geolocation + // capability that makes an available spectrum request) is required whether the + // master device is making the request on its own behalf or on behalf of a + // slave device (one without geolocation capability). The location must be the + // location of the radiation center of the master device's antenna. To support + // mobile devices, a regulatory domain may allow the anticipated position of + // the master device to be given instead. If the location specifies a region, + // rather than a point, the database may return an UNIMPLEMENTED error code if + // it does not support query by region. Location *GeoLocation `json:"location,omitempty"` - - // MasterDeviceDesc: When an available spectrum request is made by the - // master device (a device with geolocation capability) on behalf of a - // slave device (a device without geolocation capability), the rules of - // the applicable regulatory domain may require the master device to - // provide its own device descriptor information (in addition to device - // descriptor information for the slave device, which is provided in a - // separate parameter). + // MasterDeviceDesc: When an available spectrum request is made by the master + // device (a device with geolocation capability) on behalf of a slave device (a + // device without geolocation capability), the rules of the applicable + // regulatory domain may require the master device to provide its own device + // descriptor information (in addition to device descriptor information for the + // slave device, which is provided in a separate parameter). MasterDeviceDesc *DeviceDescriptor `json:"masterDeviceDesc,omitempty"` - // Owner: Depending on device type and regulatory domain, device owner - // information may be included in an available spectrum request. This - // allows the device to register and get spectrum-availability - // information in a single request. + // information may be included in an available spectrum request. This allows + // the device to register and get spectrum-availability information in a single + // request. Owner *DeviceOwner `json:"owner,omitempty"` - - // RequestType: The request type parameter is an optional parameter that - // can be used to modify an available spectrum request, but its use - // depends on applicable regulatory rules. It may be used, for example, - // to request generic slave device parameters without having to specify - // the device descriptor for a specific device. When the requestType - // parameter is missing, the request is for a specific device (master or - // slave), and the deviceDesc parameter for the device on whose behalf - // the request is made is required. + // RequestType: The request type parameter is an optional parameter that can be + // used to modify an available spectrum request, but its use depends on + // applicable regulatory rules. It may be used, for example, to request generic + // slave device parameters without having to specify the device descriptor for + // a specific device. When the requestType parameter is missing, the request is + // for a specific device (master or slave), and the deviceDesc parameter for + // the device on whose behalf the request is made is required. RequestType string `json:"requestType,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Antenna") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Antenna") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Antenna") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Antenna") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsGetSpectrumRequest) MarshalJSON() ([]byte, error) { +func (s PawsGetSpectrumRequest) MarshalJSON() ([]byte, error) { type NoMethod PawsGetSpectrumRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PawsGetSpectrumResponse: The response message for the available -// spectrum query which contains a schedule of available spectrum for -// the device. +// PawsGetSpectrumResponse: The response message for the available spectrum +// query which contains a schedule of available spectrum for the device. type PawsGetSpectrumResponse struct { - // DatabaseChange: A database may include the databaseChange parameter - // to notify a device of a change to its database URI, providing one or - // more alternate database URIs. The device should use this information - // to update its list of pre-configured databases by (only) replacing - // its entry for the responding database with the list of alternate - // URIs. + // DatabaseChange: A database may include the databaseChange parameter to + // notify a device of a change to its database URI, providing one or more + // alternate database URIs. The device should use this information to update + // its list of pre-configured databases by (only) replacing its entry for the + // responding database with the list of alternate URIs. DatabaseChange *DbUpdateSpec `json:"databaseChange,omitempty"` - - // DeviceDesc: The database must return, in its available spectrum - // response, the device descriptor information it received in the master - // device's available spectrum request. + // DeviceDesc: The database must return, in its available spectrum response, + // the device descriptor information it received in the master device's + // available spectrum request. DeviceDesc *DeviceDescriptor `json:"deviceDesc,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "spectrum#pawsGetSpectrumResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "spectrum#pawsGetSpectrumResponse". Kind string `json:"kind,omitempty"` - - // MaxContiguousBwHz: The database may return a constraint on the - // allowed maximum contiguous bandwidth (in Hertz). A regulatory domain - // may require the database to return this parameter. When this - // parameter is present in the response, the device must apply this - // constraint to its spectrum-selection logic to ensure that no single - // block of spectrum has bandwidth that exceeds this value. + // MaxContiguousBwHz: The database may return a constraint on the allowed + // maximum contiguous bandwidth (in Hertz). A regulatory domain may require the + // database to return this parameter. When this parameter is present in the + // response, the device must apply this constraint to its spectrum-selection + // logic to ensure that no single block of spectrum has bandwidth that exceeds + // this value. MaxContiguousBwHz float64 `json:"maxContiguousBwHz,omitempty"` - - // MaxTotalBwHz: The database may return a constraint on the allowed - // maximum total bandwidth (in Hertz), which need not be contiguous. A - // regulatory domain may require the database to return this parameter. - // When this parameter is present in the available spectrum response, - // the device must apply this constraint to its spectrum-selection logic - // to ensure that total bandwidth does not exceed this value. + // MaxTotalBwHz: The database may return a constraint on the allowed maximum + // total bandwidth (in Hertz), which need not be contiguous. A regulatory + // domain may require the database to return this parameter. When this + // parameter is present in the available spectrum response, the device must + // apply this constraint to its spectrum-selection logic to ensure that total + // bandwidth does not exceed this value. MaxTotalBwHz float64 `json:"maxTotalBwHz,omitempty"` - - // NeedsSpectrumReport: For regulatory domains that require a - // spectrum-usage report from devices, the database must return true for - // this parameter if the spectrum schedule list is not empty; otherwise, - // the database will either return false or omit this parameter. If this - // parameter is present and its value is true, the device must send a - // spectrum use notify message to the database; otherwise, the device - // must not send the notification. + // NeedsSpectrumReport: For regulatory domains that require a spectrum-usage + // report from devices, the database must return true for this parameter if the + // spectrum schedule list is not empty; otherwise, the database will either + // return false or omit this parameter. If this parameter is present and its + // value is true, the device must send a spectrum use notify message to the + // database; otherwise, the device must not send the notification. NeedsSpectrumReport bool `json:"needsSpectrumReport,omitempty"` - // RulesetInfo: The database should return ruleset information, which - // identifies the applicable regulatory authority and ruleset for the - // available spectrum response. If included, the device must use the - // corresponding ruleset to interpret the response. Values provided in - // the returned ruleset information, such as maxLocationChange, take - // precedence over any conflicting values provided in the ruleset - // information returned in a prior initialization response sent by the - // database to the device. + // identifies the applicable regulatory authority and ruleset for the available + // spectrum response. If included, the device must use the corresponding + // ruleset to interpret the response. Values provided in the returned ruleset + // information, such as maxLocationChange, take precedence over any conflicting + // values provided in the ruleset information returned in a prior + // initialization response sent by the database to the device. RulesetInfo *RulesetInfo `json:"rulesetInfo,omitempty"` - - // SpectrumSchedules: The available spectrum response must contain a - // spectrum schedule list. The list may be empty if spectrum is not - // available. The database may return more than one spectrum schedule to - // represent future changes to the available spectrum. How far in - // advance a schedule may be provided depends on the applicable - // regulatory domain. + // SpectrumSchedules: The available spectrum response must contain a spectrum + // schedule list. The list may be empty if spectrum is not available. The + // database may return more than one spectrum schedule to represent future + // changes to the available spectrum. How far in advance a schedule may be + // provided depends on the applicable regulatory domain. SpectrumSchedules []*SpectrumSchedule `json:"spectrumSchedules,omitempty"` - // Timestamp: The database includes a timestamp of the form // YYYY-MM-DDThh:mm:ssZ (Internet timestamp format per RFC3339) in its - // available spectrum response. The timestamp should be used by the - // device as a reference for the start and stop times specified in the - // response spectrum schedules. + // available spectrum response. The timestamp should be used by the device as a + // reference for the start and stop times specified in the response spectrum + // schedules. Timestamp string `json:"timestamp,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DatabaseChange") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DatabaseChange") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DatabaseChange") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsGetSpectrumResponse) MarshalJSON() ([]byte, error) { +func (s PawsGetSpectrumResponse) MarshalJSON() ([]byte, error) { type NoMethod PawsGetSpectrumResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *PawsGetSpectrumResponse) UnmarshalJSON(data []byte) error { @@ -1258,491 +1067,380 @@ func (s *PawsGetSpectrumResponse) UnmarshalJSON(data []byte) error { return nil } -// PawsInitRequest: The initialization request message allows the master -// device to initiate exchange of capabilities with the database. +// PawsInitRequest: The initialization request message allows the master device +// to initiate exchange of capabilities with the database. type PawsInitRequest struct { - // DeviceDesc: The DeviceDescriptor parameter is required. If the - // database does not support the device or any of the rulesets specified - // in the device descriptor, it must return an UNSUPPORTED error code in - // the error response. + // DeviceDesc: The DeviceDescriptor parameter is required. If the database does + // not support the device or any of the rulesets specified in the device + // descriptor, it must return an UNSUPPORTED error code in the error response. DeviceDesc *DeviceDescriptor `json:"deviceDesc,omitempty"` - // Location: A device's geolocation is required. Location *GeoLocation `json:"location,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceDesc") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceDesc") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceDesc") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsInitRequest) MarshalJSON() ([]byte, error) { +func (s PawsInitRequest) MarshalJSON() ([]byte, error) { type NoMethod PawsInitRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PawsInitResponse: The initialization response message communicates -// database parameters to the requesting device. +// PawsInitResponse: The initialization response message communicates database +// parameters to the requesting device. type PawsInitResponse struct { - // DatabaseChange: A database may include the databaseChange parameter - // to notify a device of a change to its database URI, providing one or - // more alternate database URIs. The device should use this information - // to update its list of pre-configured databases by (only) replacing - // its entry for the responding database with the list of alternate - // URIs. + // DatabaseChange: A database may include the databaseChange parameter to + // notify a device of a change to its database URI, providing one or more + // alternate database URIs. The device should use this information to update + // its list of pre-configured databases by (only) replacing its entry for the + // responding database with the list of alternate URIs. DatabaseChange *DbUpdateSpec `json:"databaseChange,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "spectrum#pawsInitResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "spectrum#pawsInitResponse". Kind string `json:"kind,omitempty"` - - // RulesetInfo: The rulesetInfo parameter must be included in the - // response. This parameter specifies the regulatory domain and - // parameters applicable to that domain. The database must include the - // authority field, which defines the regulatory domain for the location - // specified in the INIT_REQ message. + // RulesetInfo: The rulesetInfo parameter must be included in the response. + // This parameter specifies the regulatory domain and parameters applicable to + // that domain. The database must include the authority field, which defines + // the regulatory domain for the location specified in the INIT_REQ message. RulesetInfo *RulesetInfo `json:"rulesetInfo,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DatabaseChange") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DatabaseChange") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DatabaseChange") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsInitResponse) MarshalJSON() ([]byte, error) { +func (s PawsInitResponse) MarshalJSON() ([]byte, error) { type NoMethod PawsInitResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PawsNotifySpectrumUseRequest: The spectrum-use notification message -// which must contain the geolocation of the Device and parameters -// required by the regulatory domain. +// PawsNotifySpectrumUseRequest: The spectrum-use notification message which +// must contain the geolocation of the Device and parameters required by the +// regulatory domain. type PawsNotifySpectrumUseRequest struct { - // DeviceDesc: Device descriptor information is required in the - // spectrum-use notification message. + // DeviceDesc: Device descriptor information is required in the spectrum-use + // notification message. DeviceDesc *DeviceDescriptor `json:"deviceDesc,omitempty"` - - // Location: The geolocation of the master device (the device that is - // sending the spectrum-use notification) to the database is required in - // the spectrum-use notification message. + // Location: The geolocation of the master device (the device that is sending + // the spectrum-use notification) to the database is required in the + // spectrum-use notification message. Location *GeoLocation `json:"location,omitempty"` - - // Spectra: A spectrum list is required in the spectrum-use - // notification. The list specifies the spectrum that the device expects - // to use, which includes frequency ranges and maximum power levels. The - // list may be empty if the device decides not to use any of spectrum. - // For consistency, the psdBandwidthHz value should match that from one - // of the spectrum elements in the corresponding available spectrum - // response previously sent to the device by the database. Note that - // maximum power levels in the spectrum element must be expressed as - // power spectral density over the specified psdBandwidthHz value. The - // actual bandwidth to be used (as computed from the start and stop - // frequencies) may be different from the psdBandwidthHz value. As an - // example, when regulatory rules express maximum power spectral density - // in terms of maximum power over any 100 kHz band, then the - // psdBandwidthHz value should be set to 100 kHz, even though the actual - // bandwidth used can be 20 kHz. + // Spectra: A spectrum list is required in the spectrum-use notification. The + // list specifies the spectrum that the device expects to use, which includes + // frequency ranges and maximum power levels. The list may be empty if the + // device decides not to use any of spectrum. For consistency, the + // psdBandwidthHz value should match that from one of the spectrum elements in + // the corresponding available spectrum response previously sent to the device + // by the database. Note that maximum power levels in the spectrum element must + // be expressed as power spectral density over the specified psdBandwidthHz + // value. The actual bandwidth to be used (as computed from the start and stop + // frequencies) may be different from the psdBandwidthHz value. As an example, + // when regulatory rules express maximum power spectral density in terms of + // maximum power over any 100 kHz band, then the psdBandwidthHz value should be + // set to 100 kHz, even though the actual bandwidth used can be 20 kHz. Spectra []*SpectrumMessage `json:"spectra,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceDesc") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceDesc") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceDesc") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsNotifySpectrumUseRequest) MarshalJSON() ([]byte, error) { +func (s PawsNotifySpectrumUseRequest) MarshalJSON() ([]byte, error) { type NoMethod PawsNotifySpectrumUseRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PawsNotifySpectrumUseResponse: An empty response to the notification. type PawsNotifySpectrumUseResponse struct { - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "spectrum#pawsNotifySpectrumUseResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "spectrum#pawsNotifySpectrumUseResponse". Kind string `json:"kind,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsNotifySpectrumUseResponse) MarshalJSON() ([]byte, error) { +func (s PawsNotifySpectrumUseResponse) MarshalJSON() ([]byte, error) { type NoMethod PawsNotifySpectrumUseResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PawsRegisterRequest: The registration request message contains the -// required registration parameters. +// PawsRegisterRequest: The registration request message contains the required +// registration parameters. type PawsRegisterRequest struct { - // Antenna: Antenna characteristics, including its height and height - // type. + // Antenna: Antenna characteristics, including its height and height type. Antenna *AntennaCharacteristics `json:"antenna,omitempty"` - // DeviceDesc: A DeviceDescriptor is required. DeviceDesc *DeviceDescriptor `json:"deviceDesc,omitempty"` - // DeviceOwner: Device owner information is required. DeviceOwner *DeviceOwner `json:"deviceOwner,omitempty"` - // Location: A device's geolocation is required. Location *GeoLocation `json:"location,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Antenna") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Antenna") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Antenna") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Antenna") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsRegisterRequest) MarshalJSON() ([]byte, error) { +func (s PawsRegisterRequest) MarshalJSON() ([]byte, error) { type NoMethod PawsRegisterRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PawsRegisterResponse: The registration response message simply -// acknowledges receipt of the request and is otherwise empty. +// PawsRegisterResponse: The registration response message simply acknowledges +// receipt of the request and is otherwise empty. type PawsRegisterResponse struct { - // DatabaseChange: A database may include the databaseChange parameter - // to notify a device of a change to its database URI, providing one or - // more alternate database URIs. The device should use this information - // to update its list of pre-configured databases by (only) replacing - // its entry for the responding database with the list of alternate - // URIs. + // DatabaseChange: A database may include the databaseChange parameter to + // notify a device of a change to its database URI, providing one or more + // alternate database URIs. The device should use this information to update + // its list of pre-configured databases by (only) replacing its entry for the + // responding database with the list of alternate URIs. DatabaseChange *DbUpdateSpec `json:"databaseChange,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "spectrum#pawsRegisterResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "spectrum#pawsRegisterResponse". Kind string `json:"kind,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DatabaseChange") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DatabaseChange") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DatabaseChange") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsRegisterResponse) MarshalJSON() ([]byte, error) { +func (s PawsRegisterResponse) MarshalJSON() ([]byte, error) { type NoMethod PawsRegisterResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PawsVerifyDeviceRequest: The device validation request message. type PawsVerifyDeviceRequest struct { - // DeviceDescs: A list of device descriptors, which specifies the slave - // devices to be validated, is required. + // DeviceDescs: A list of device descriptors, which specifies the slave devices + // to be validated, is required. DeviceDescs []*DeviceDescriptor `json:"deviceDescs,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceDescs") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DeviceDescs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DeviceDescs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsVerifyDeviceRequest) MarshalJSON() ([]byte, error) { +func (s PawsVerifyDeviceRequest) MarshalJSON() ([]byte, error) { type NoMethod PawsVerifyDeviceRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PawsVerifyDeviceResponse: The device validation response message. type PawsVerifyDeviceResponse struct { - // DatabaseChange: A database may include the databaseChange parameter - // to notify a device of a change to its database URI, providing one or - // more alternate database URIs. The device should use this information - // to update its list of pre-configured databases by (only) replacing - // its entry for the responding database with the list of alternate - // URIs. + // DatabaseChange: A database may include the databaseChange parameter to + // notify a device of a change to its database URI, providing one or more + // alternate database URIs. The device should use this information to update + // its list of pre-configured databases by (only) replacing its entry for the + // responding database with the list of alternate URIs. DatabaseChange *DbUpdateSpec `json:"databaseChange,omitempty"` - // DeviceValidities: A device validities list is required in the device - // validation response to report whether each slave device listed in a - // previous device validation request is valid. The number of entries - // must match the number of device descriptors listed in the previous - // device validation request. + // validation response to report whether each slave device listed in a previous + // device validation request is valid. The number of entries must match the + // number of device descriptors listed in the previous device validation + // request. DeviceValidities []*DeviceValidity `json:"deviceValidities,omitempty"` - - // Kind: Identifies what kind of resource this is. Value: the fixed - // string "spectrum#pawsVerifyDeviceResponse". + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "spectrum#pawsVerifyDeviceResponse". Kind string `json:"kind,omitempty"` - - // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, - // ...). + // Type: The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). // // Required field. Type string `json:"type,omitempty"` - // Version: The PAWS version. Must be exactly 1.0. // // Required field. Version string `json:"version,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DatabaseChange") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DatabaseChange") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DatabaseChange") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PawsVerifyDeviceResponse) MarshalJSON() ([]byte, error) { +func (s PawsVerifyDeviceResponse) MarshalJSON() ([]byte, error) { type NoMethod PawsVerifyDeviceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RulesetInfo: This contains parameters for the ruleset of a regulatory -// domain that is communicated using the initialization and -// available-spectrum processes. +// RulesetInfo: This contains parameters for the ruleset of a regulatory domain +// that is communicated using the initialization and available-spectrum +// processes. type RulesetInfo struct { - // Authority: The regulatory domain to which the ruleset belongs is - // required. It must be a 2-letter country code. The device should use - // this to determine additional device behavior required by the - // associated regulatory domain. + // Authority: The regulatory domain to which the ruleset belongs is required. + // It must be a 2-letter country code. The device should use this to determine + // additional device behavior required by the associated regulatory domain. Authority string `json:"authority,omitempty"` - - // MaxLocationChange: The maximum location change in meters is required - // in the initialization response, but optional otherwise. When the - // device changes location by more than this specified distance, it must - // contact the database to get the available spectrum for the new - // location. If the device is using spectrum that is no longer - // available, it must immediately cease use of the spectrum under rules - // for database-managed spectrum. If this value is provided within the - // context of an available-spectrum response, it takes precedence over - // the value within the initialization response. + // MaxLocationChange: The maximum location change in meters is required in the + // initialization response, but optional otherwise. When the device changes + // location by more than this specified distance, it must contact the database + // to get the available spectrum for the new location. If the device is using + // spectrum that is no longer available, it must immediately cease use of the + // spectrum under rules for database-managed spectrum. If this value is + // provided within the context of an available-spectrum response, it takes + // precedence over the value within the initialization response. MaxLocationChange float64 `json:"maxLocationChange,omitempty"` - - // MaxPollingSecs: The maximum duration, in seconds, between requests - // for available spectrum. It is required in the initialization - // response, but optional otherwise. The device must contact the - // database to get available spectrum no less frequently than this - // duration. If the new spectrum information indicates that the device - // is using spectrum that is no longer available, it must immediately - // cease use of those frequencies under rules for database-managed - // spectrum. If this value is provided within the context of an - // available-spectrum response, it takes precedence over the value - // within the initialization response. + // MaxPollingSecs: The maximum duration, in seconds, between requests for + // available spectrum. It is required in the initialization response, but + // optional otherwise. The device must contact the database to get available + // spectrum no less frequently than this duration. If the new spectrum + // information indicates that the device is using spectrum that is no longer + // available, it must immediately cease use of those frequencies under rules + // for database-managed spectrum. If this value is provided within the context + // of an available-spectrum response, it takes precedence over the value within + // the initialization response. MaxPollingSecs int64 `json:"maxPollingSecs,omitempty"` - - // RulesetIds: The identifiers of the rulesets supported for the - // device's location. The database should include at least one - // applicable ruleset in the initialization response. The device may use - // the ruleset identifiers to determine parameters to include in - // subsequent requests. Within the context of the available-spectrum - // responses, the database should include the identifier of the ruleset - // that it used to determine the available-spectrum response. If - // included, the device must use the specified ruleset to interpret the - // response. If the device does not support the indicated ruleset, it - // must not operate in the spectrum governed by the ruleset. + // RulesetIds: The identifiers of the rulesets supported for the device's + // location. The database should include at least one applicable ruleset in the + // initialization response. The device may use the ruleset identifiers to + // determine parameters to include in subsequent requests. Within the context + // of the available-spectrum responses, the database should include the + // identifier of the ruleset that it used to determine the available-spectrum + // response. If included, the device must use the specified ruleset to + // interpret the response. If the device does not support the indicated + // ruleset, it must not operate in the spectrum governed by the ruleset. RulesetIds []string `json:"rulesetIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "Authority") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Authority") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Authority") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RulesetInfo) MarshalJSON() ([]byte, error) { +func (s RulesetInfo) MarshalJSON() ([]byte, error) { type NoMethod RulesetInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *RulesetInfo) UnmarshalJSON(data []byte) error { @@ -1759,44 +1457,35 @@ func (s *RulesetInfo) UnmarshalJSON(data []byte) error { return nil } -// SpectrumMessage: Available spectrum can be logically characterized by -// a list of frequency ranges and permissible power levels for each -// range. +// SpectrumMessage: Available spectrum can be logically characterized by a list +// of frequency ranges and permissible power levels for each range. type SpectrumMessage struct { - // Bandwidth: The bandwidth (in Hertz) for which permissible power - // levels are specified. For example, FCC regulation would require only - // one spectrum specification at 6MHz bandwidth, but Ofcom regulation - // would require two specifications, at 0.1MHz and 8MHz. This parameter - // may be empty if there is no available spectrum. It will be present - // otherwise. + // Bandwidth: The bandwidth (in Hertz) for which permissible power levels are + // specified. For example, FCC regulation would require only one spectrum + // specification at 6MHz bandwidth, but Ofcom regulation would require two + // specifications, at 0.1MHz and 8MHz. This parameter may be empty if there is + // no available spectrum. It will be present otherwise. Bandwidth float64 `json:"bandwidth,omitempty"` - - // FrequencyRanges: The list of frequency ranges and permissible power - // levels. The list may be empty if there is no available spectrum, - // otherwise it will be present. + // FrequencyRanges: The list of frequency ranges and permissible power levels. + // The list may be empty if there is no available spectrum, otherwise it will + // be present. FrequencyRanges []*FrequencyRange `json:"frequencyRanges,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bandwidth") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Bandwidth") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Bandwidth") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpectrumMessage) MarshalJSON() ([]byte, error) { +func (s SpectrumMessage) MarshalJSON() ([]byte, error) { type NoMethod SpectrumMessage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *SpectrumMessage) UnmarshalJSON(data []byte) error { @@ -1813,44 +1502,36 @@ func (s *SpectrumMessage) UnmarshalJSON(data []byte) error { return nil } -// SpectrumSchedule: The spectrum schedule element combines an event -// time with spectrum profile to define a time period in which the -// profile is valid. +// SpectrumSchedule: The spectrum schedule element combines an event time with +// spectrum profile to define a time period in which the profile is valid. type SpectrumSchedule struct { - // EventTime: The event time expresses when the spectrum profile is - // valid. It will always be present. + // EventTime: The event time expresses when the spectrum profile is valid. It + // will always be present. EventTime *EventTime `json:"eventTime,omitempty"` - - // Spectra: A list of spectrum messages representing the usable profile. - // It will always be present, but may be empty when there is no - // available spectrum. + // Spectra: A list of spectrum messages representing the usable profile. It + // will always be present, but may be empty when there is no available + // spectrum. Spectra []*SpectrumMessage `json:"spectra,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EventTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EventTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpectrumSchedule) MarshalJSON() ([]byte, error) { +func (s SpectrumSchedule) MarshalJSON() ([]byte, error) { type NoMethod SpectrumSchedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Vcard: A vCard-in-JSON message that contains only the fields needed -// for PAWS: +// Vcard: A vCard-in-JSON message that contains only the fields needed for +// PAWS: // - fn: Full name of an individual // - org: Name of the organization // - adr: Address fields @@ -1859,148 +1540,112 @@ func (s *SpectrumSchedule) MarshalJSON() ([]byte, error) { type Vcard struct { // Adr: The street address of the entity. Adr *VcardAddress `json:"adr,omitempty"` - // Email: An email address that can be used to reach the contact. Email *VcardTypedText `json:"email,omitempty"` - // Fn: The full name of the contact person. For example: John A. Smith. Fn string `json:"fn,omitempty"` - // Org: The organization associated with the registering entity. Org *VcardTypedText `json:"org,omitempty"` - // Tel: A telephone number that can be used to call the contact. Tel *VcardTelephone `json:"tel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Adr") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Adr") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Adr") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Adr") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Vcard) MarshalJSON() ([]byte, error) { +func (s Vcard) MarshalJSON() ([]byte, error) { type NoMethod Vcard - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VcardAddress: The structure used to represent a street address. type VcardAddress struct { - // Code: The postal code associated with the address. For example: - // 94423. + // Code: The postal code associated with the address. For example: 94423. Code string `json:"code,omitempty"` - // Country: The country name. For example: US. Country string `json:"country,omitempty"` - - // Locality: The city or local equivalent portion of the address. For - // example: San Jose. + // Locality: The city or local equivalent portion of the address. For example: + // San Jose. Locality string `json:"locality,omitempty"` - // Pobox: An optional post office box number. Pobox string `json:"pobox,omitempty"` - - // Region: The state or local equivalent portion of the address. For - // example: CA. + // Region: The state or local equivalent portion of the address. For example: + // CA. Region string `json:"region,omitempty"` - // Street: The street number and name. For example: 123 Any St. Street string `json:"street,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VcardAddress) MarshalJSON() ([]byte, error) { +func (s VcardAddress) MarshalJSON() ([]byte, error) { type NoMethod VcardAddress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VcardTelephone: The structure used to represent a telephone number. type VcardTelephone struct { // Uri: A nested telephone URI of the form: tel:+1-123-456-7890. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VcardTelephone) MarshalJSON() ([]byte, error) { +func (s VcardTelephone) MarshalJSON() ([]byte, error) { type NoMethod VcardTelephone - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VcardTypedText: The structure used to represent an organization and -// an email address. +// VcardTypedText: The structure used to represent an organization and an email +// address. type VcardTypedText struct { - // Text: The text string associated with this item. For example, for an - // org field: ACME, inc. For an email field: smith@example.com. + // Text: The text string associated with this item. For example, for an org + // field: ACME, inc. For an email field: smith@example.com. Text string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Text") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Text") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Text") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VcardTypedText) MarshalJSON() ([]byte, error) { +func (s VcardTypedText) MarshalJSON() ([]byte, error) { type NoMethod VcardTypedText - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "spectrum.paws.getSpectrum": - type PawsGetSpectrumCall struct { s *Service pawsgetspectrumrequest *PawsGetSpectrumRequest @@ -2009,9 +1654,9 @@ type PawsGetSpectrumCall struct { header_ http.Header } -// GetSpectrum: Requests information about the available spectrum for a -// device at a location. Requests from a fixed-mode device must include -// owner information so the device can be registered with the database. +// GetSpectrum: Requests information about the available spectrum for a device +// at a location. Requests from a fixed-mode device must include owner +// information so the device can be registered with the database. func (r *PawsService) GetSpectrum(pawsgetspectrumrequest *PawsGetSpectrumRequest) *PawsGetSpectrumCall { c := &PawsGetSpectrumCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.pawsgetspectrumrequest = pawsgetspectrumrequest @@ -2019,23 +1664,21 @@ func (r *PawsService) GetSpectrum(pawsgetspectrumrequest *PawsGetSpectrumRequest } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PawsGetSpectrumCall) Fields(s ...googleapi.Field) *PawsGetSpectrumCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PawsGetSpectrumCall) Context(ctx context.Context) *PawsGetSpectrumCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PawsGetSpectrumCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2044,18 +1687,12 @@ func (c *PawsGetSpectrumCall) Header() http.Header { } func (c *PawsGetSpectrumCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pawsgetspectrumrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "getSpectrum") @@ -2065,16 +1702,15 @@ func (c *PawsGetSpectrumCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spectrum.paws.getSpectrum" call. -// Exactly one of *PawsGetSpectrumResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *PawsGetSpectrumResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PawsGetSpectrumCall) Do(opts ...googleapi.CallOption) (*PawsGetSpectrumResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2082,17 +1718,17 @@ func (c *PawsGetSpectrumCall) Do(opts ...googleapi.CallOption) (*PawsGetSpectrum if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PawsGetSpectrumResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2105,23 +1741,8 @@ func (c *PawsGetSpectrumCall) Do(opts ...googleapi.CallOption) (*PawsGetSpectrum return nil, err } return ret, nil - // { - // "description": "Requests information about the available spectrum for a device at a location. Requests from a fixed-mode device must include owner information so the device can be registered with the database.", - // "httpMethod": "POST", - // "id": "spectrum.paws.getSpectrum", - // "path": "getSpectrum", - // "request": { - // "$ref": "PawsGetSpectrumRequest" - // }, - // "response": { - // "$ref": "PawsGetSpectrumResponse" - // } - // } - } -// method id "spectrum.paws.getSpectrumBatch": - type PawsGetSpectrumBatchCall struct { s *Service pawsgetspectrumbatchrequest *PawsGetSpectrumBatchRequest @@ -2139,23 +1760,21 @@ func (r *PawsService) GetSpectrumBatch(pawsgetspectrumbatchrequest *PawsGetSpect } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PawsGetSpectrumBatchCall) Fields(s ...googleapi.Field) *PawsGetSpectrumBatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PawsGetSpectrumBatchCall) Context(ctx context.Context) *PawsGetSpectrumBatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PawsGetSpectrumBatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2164,18 +1783,12 @@ func (c *PawsGetSpectrumBatchCall) Header() http.Header { } func (c *PawsGetSpectrumBatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pawsgetspectrumbatchrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "getSpectrumBatch") @@ -2185,16 +1798,15 @@ func (c *PawsGetSpectrumBatchCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spectrum.paws.getSpectrumBatch" call. -// Exactly one of *PawsGetSpectrumBatchResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PawsGetSpectrumBatchResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PawsGetSpectrumBatchResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PawsGetSpectrumBatchCall) Do(opts ...googleapi.CallOption) (*PawsGetSpectrumBatchResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2202,17 +1814,17 @@ func (c *PawsGetSpectrumBatchCall) Do(opts ...googleapi.CallOption) (*PawsGetSpe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PawsGetSpectrumBatchResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2225,23 +1837,8 @@ func (c *PawsGetSpectrumBatchCall) Do(opts ...googleapi.CallOption) (*PawsGetSpe return nil, err } return ret, nil - // { - // "description": "The Google Spectrum Database does not support batch requests, so this method always yields an UNIMPLEMENTED error.", - // "httpMethod": "POST", - // "id": "spectrum.paws.getSpectrumBatch", - // "path": "getSpectrumBatch", - // "request": { - // "$ref": "PawsGetSpectrumBatchRequest" - // }, - // "response": { - // "$ref": "PawsGetSpectrumBatchResponse" - // } - // } - } -// method id "spectrum.paws.init": - type PawsInitCall struct { s *Service pawsinitrequest *PawsInitRequest @@ -2259,23 +1856,21 @@ func (r *PawsService) Init(pawsinitrequest *PawsInitRequest) *PawsInitCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PawsInitCall) Fields(s ...googleapi.Field) *PawsInitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PawsInitCall) Context(ctx context.Context) *PawsInitCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PawsInitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2284,18 +1879,12 @@ func (c *PawsInitCall) Header() http.Header { } func (c *PawsInitCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pawsinitrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "init") @@ -2305,16 +1894,15 @@ func (c *PawsInitCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spectrum.paws.init" call. -// Exactly one of *PawsInitResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PawsInitResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PawsInitResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PawsInitCall) Do(opts ...googleapi.CallOption) (*PawsInitResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2322,17 +1910,17 @@ func (c *PawsInitCall) Do(opts ...googleapi.CallOption) (*PawsInitResponse, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PawsInitResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2345,23 +1933,8 @@ func (c *PawsInitCall) Do(opts ...googleapi.CallOption) (*PawsInitResponse, erro return nil, err } return ret, nil - // { - // "description": "Initializes the connection between a white space device and the database.", - // "httpMethod": "POST", - // "id": "spectrum.paws.init", - // "path": "init", - // "request": { - // "$ref": "PawsInitRequest" - // }, - // "response": { - // "$ref": "PawsInitResponse" - // } - // } - } -// method id "spectrum.paws.notifySpectrumUse": - type PawsNotifySpectrumUseCall struct { s *Service pawsnotifyspectrumuserequest *PawsNotifySpectrumUseRequest @@ -2371,10 +1944,9 @@ type PawsNotifySpectrumUseCall struct { } // NotifySpectrumUse: Notifies the database that the device has selected -// certain frequency ranges for transmission. Only to be invoked when -// required by the regulator. The Google Spectrum Database does not -// operate in domains that require notification, so this always yields -// an UNIMPLEMENTED error. +// certain frequency ranges for transmission. Only to be invoked when required +// by the regulator. The Google Spectrum Database does not operate in domains +// that require notification, so this always yields an UNIMPLEMENTED error. func (r *PawsService) NotifySpectrumUse(pawsnotifyspectrumuserequest *PawsNotifySpectrumUseRequest) *PawsNotifySpectrumUseCall { c := &PawsNotifySpectrumUseCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.pawsnotifyspectrumuserequest = pawsnotifyspectrumuserequest @@ -2382,23 +1954,21 @@ func (r *PawsService) NotifySpectrumUse(pawsnotifyspectrumuserequest *PawsNotify } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PawsNotifySpectrumUseCall) Fields(s ...googleapi.Field) *PawsNotifySpectrumUseCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PawsNotifySpectrumUseCall) Context(ctx context.Context) *PawsNotifySpectrumUseCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PawsNotifySpectrumUseCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2407,18 +1977,12 @@ func (c *PawsNotifySpectrumUseCall) Header() http.Header { } func (c *PawsNotifySpectrumUseCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pawsnotifyspectrumuserequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "notifySpectrumUse") @@ -2428,16 +1992,15 @@ func (c *PawsNotifySpectrumUseCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spectrum.paws.notifySpectrumUse" call. -// Exactly one of *PawsNotifySpectrumUseResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *PawsNotifySpectrumUseResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PawsNotifySpectrumUseResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PawsNotifySpectrumUseCall) Do(opts ...googleapi.CallOption) (*PawsNotifySpectrumUseResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2445,17 +2008,17 @@ func (c *PawsNotifySpectrumUseCall) Do(opts ...googleapi.CallOption) (*PawsNotif if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PawsNotifySpectrumUseResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2468,23 +2031,8 @@ func (c *PawsNotifySpectrumUseCall) Do(opts ...googleapi.CallOption) (*PawsNotif return nil, err } return ret, nil - // { - // "description": "Notifies the database that the device has selected certain frequency ranges for transmission. Only to be invoked when required by the regulator. The Google Spectrum Database does not operate in domains that require notification, so this always yields an UNIMPLEMENTED error.", - // "httpMethod": "POST", - // "id": "spectrum.paws.notifySpectrumUse", - // "path": "notifySpectrumUse", - // "request": { - // "$ref": "PawsNotifySpectrumUseRequest" - // }, - // "response": { - // "$ref": "PawsNotifySpectrumUseResponse" - // } - // } - } -// method id "spectrum.paws.register": - type PawsRegisterCall struct { s *Service pawsregisterrequest *PawsRegisterRequest @@ -2494,8 +2042,7 @@ type PawsRegisterCall struct { } // Register: The Google Spectrum Database implements registration in the -// getSpectrum method. As such this always returns an UNIMPLEMENTED -// error. +// getSpectrum method. As such this always returns an UNIMPLEMENTED error. func (r *PawsService) Register(pawsregisterrequest *PawsRegisterRequest) *PawsRegisterCall { c := &PawsRegisterCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.pawsregisterrequest = pawsregisterrequest @@ -2503,23 +2050,21 @@ func (r *PawsService) Register(pawsregisterrequest *PawsRegisterRequest) *PawsRe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PawsRegisterCall) Fields(s ...googleapi.Field) *PawsRegisterCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PawsRegisterCall) Context(ctx context.Context) *PawsRegisterCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PawsRegisterCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2528,18 +2073,12 @@ func (c *PawsRegisterCall) Header() http.Header { } func (c *PawsRegisterCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pawsregisterrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "register") @@ -2549,16 +2088,15 @@ func (c *PawsRegisterCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spectrum.paws.register" call. -// Exactly one of *PawsRegisterResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *PawsRegisterResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *PawsRegisterResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *PawsRegisterCall) Do(opts ...googleapi.CallOption) (*PawsRegisterResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2566,17 +2104,17 @@ func (c *PawsRegisterCall) Do(opts ...googleapi.CallOption) (*PawsRegisterRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PawsRegisterResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2589,23 +2127,8 @@ func (c *PawsRegisterCall) Do(opts ...googleapi.CallOption) (*PawsRegisterRespon return nil, err } return ret, nil - // { - // "description": "The Google Spectrum Database implements registration in the getSpectrum method. As such this always returns an UNIMPLEMENTED error.", - // "httpMethod": "POST", - // "id": "spectrum.paws.register", - // "path": "register", - // "request": { - // "$ref": "PawsRegisterRequest" - // }, - // "response": { - // "$ref": "PawsRegisterResponse" - // } - // } - } -// method id "spectrum.paws.verifyDevice": - type PawsVerifyDeviceCall struct { s *Service pawsverifydevicerequest *PawsVerifyDeviceRequest @@ -2614,10 +2137,9 @@ type PawsVerifyDeviceCall struct { header_ http.Header } -// VerifyDevice: Validates a device for white space use in accordance -// with regulatory rules. The Google Spectrum Database does not support -// master/slave configurations, so this always yields an UNIMPLEMENTED -// error. +// VerifyDevice: Validates a device for white space use in accordance with +// regulatory rules. The Google Spectrum Database does not support master/slave +// configurations, so this always yields an UNIMPLEMENTED error. func (r *PawsService) VerifyDevice(pawsverifydevicerequest *PawsVerifyDeviceRequest) *PawsVerifyDeviceCall { c := &PawsVerifyDeviceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.pawsverifydevicerequest = pawsverifydevicerequest @@ -2625,23 +2147,21 @@ func (r *PawsService) VerifyDevice(pawsverifydevicerequest *PawsVerifyDeviceRequ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *PawsVerifyDeviceCall) Fields(s ...googleapi.Field) *PawsVerifyDeviceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *PawsVerifyDeviceCall) Context(ctx context.Context) *PawsVerifyDeviceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *PawsVerifyDeviceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2650,18 +2170,12 @@ func (c *PawsVerifyDeviceCall) Header() http.Header { } func (c *PawsVerifyDeviceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.pawsverifydevicerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "verifyDevice") @@ -2671,16 +2185,15 @@ func (c *PawsVerifyDeviceCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "spectrum.paws.verifyDevice" call. -// Exactly one of *PawsVerifyDeviceResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *PawsVerifyDeviceResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *PawsVerifyDeviceCall) Do(opts ...googleapi.CallOption) (*PawsVerifyDeviceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2688,17 +2201,17 @@ func (c *PawsVerifyDeviceCall) Do(opts ...googleapi.CallOption) (*PawsVerifyDevi if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &PawsVerifyDeviceResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2711,17 +2224,4 @@ func (c *PawsVerifyDeviceCall) Do(opts ...googleapi.CallOption) (*PawsVerifyDevi return nil, err } return ret, nil - // { - // "description": "Validates a device for white space use in accordance with regulatory rules. The Google Spectrum Database does not support master/slave configurations, so this always yields an UNIMPLEMENTED error.", - // "httpMethod": "POST", - // "id": "spectrum.paws.verifyDevice", - // "path": "verifyDevice", - // "request": { - // "$ref": "PawsVerifyDeviceRequest" - // }, - // "response": { - // "$ref": "PawsVerifyDeviceResponse" - // } - // } - } diff --git a/speech/v1/speech-gen.go b/speech/v1/speech-gen.go index 80b3723e1f3..9e2dd12fdc1 100644 --- a/speech/v1/speech-gen.go +++ b/speech/v1/speech-gen.go @@ -1680,7 +1680,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.operations.get" call. @@ -1808,7 +1808,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.operations.list" call. @@ -1938,7 +1938,7 @@ func (c *ProjectsLocationsCustomClassesCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.customClasses.create" call. @@ -2040,7 +2040,7 @@ func (c *ProjectsLocationsCustomClassesDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.customClasses.delete" call. @@ -2148,7 +2148,7 @@ func (c *ProjectsLocationsCustomClassesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.customClasses.get" call. @@ -2279,7 +2279,7 @@ func (c *ProjectsLocationsCustomClassesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.customClasses.list" call. @@ -2409,7 +2409,7 @@ func (c *ProjectsLocationsCustomClassesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.customClasses.patch" call. @@ -2518,7 +2518,7 @@ func (c *ProjectsLocationsPhraseSetsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.phraseSets.create" call. @@ -2614,7 +2614,7 @@ func (c *ProjectsLocationsPhraseSetsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.phraseSets.delete" call. @@ -2728,7 +2728,7 @@ func (c *ProjectsLocationsPhraseSetsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.phraseSets.get" call. @@ -2859,7 +2859,7 @@ func (c *ProjectsLocationsPhraseSetsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.phraseSets.list" call. @@ -2989,7 +2989,7 @@ func (c *ProjectsLocationsPhraseSetsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.phraseSets.patch" call. @@ -3088,7 +3088,7 @@ func (c *SpeechLongrunningrecognizeCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.speech.longrunningrecognize" call. @@ -3183,7 +3183,7 @@ func (c *SpeechRecognizeCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.speech.recognize" call. diff --git a/speech/v1beta1/speech-gen.go b/speech/v1beta1/speech-gen.go index 2adce4ad81d..68ac9d6e50f 100644 --- a/speech/v1beta1/speech-gen.go +++ b/speech/v1beta1/speech-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -10,6 +10,17 @@ // // For product documentation, see: https://cloud.google.com/speech-to-text/docs/quickstart-protocol // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -19,24 +30,26 @@ // ctx := context.Background() // speechService, err := speech.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // speechService, err := speech.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // speechService, err := speech.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package speech // import "google.golang.org/api/speech/v1beta1" import ( @@ -52,8 +65,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -70,11 +85,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "speech:v1beta1" const apiName = "speech" const apiVersion = "v1beta1" const basePath = "https://speech.googleapis.com/" +const basePathTemplate = "https://speech.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -84,11 +102,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -153,168 +174,132 @@ type SpeechService struct { s *Service } -// AsyncRecognizeRequest: The top-level message sent by the client for -// the `AsyncRecognize` method. +// AsyncRecognizeRequest: The top-level message sent by the client for the +// `AsyncRecognize` method. type AsyncRecognizeRequest struct { // Audio: *Required* The audio data to be recognized. Audio *RecognitionAudio `json:"audio,omitempty"` - - // Config: *Required* Provides information to the recognizer that - // specifies how to + // Config: *Required* Provides information to the recognizer that specifies how + // to // process the request. Config *RecognitionConfig `json:"config,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Audio") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Audio") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Audio") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AsyncRecognizeRequest) MarshalJSON() ([]byte, error) { +func (s AsyncRecognizeRequest) MarshalJSON() ([]byte, error) { type NoMethod AsyncRecognizeRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a +// Operation: This resource represents a long-running operation that is the +// result of a // network API call. type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. - // If `true`, the operation is completed, and either `error` or - // `response` is + // If `true`, the operation is completed, and either `error` or `response` + // is // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. - // It typically - // contains progress information and common metadata such as create - // time. - // Some services might not provide such metadata. Any method that - // returns a + // Metadata: Service-specific metadata associated with the operation. It + // typically + // contains progress information and common metadata such as create time. + // Some services might not provide such metadata. Any method that returns + // a // long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that - // originally returns it. If you use the default HTTP mapping, - // the + // Name: The server-assigned name, which is only unique within the same service + // that + // originally returns it. If you use the default HTTP mapping, the // `name` should have the format of `operations/some/unique/name`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. - // If the original + // Response: The normal response of the operation in case of success. If the + // original // method returns no data on success, such as `Delete`, the response // is // `google.protobuf.Empty`. If the original method is // standard // `Get`/`Create`/`Update`, the response should be the resource. For // other - // methods, the response should have the type `XxxResponse`, where - // `Xxx` - // is the original method name. For example, if the original method - // name - // is `TakeSnapshot()`, the inferred response type - // is + // methods, the response should have the type `XxxResponse`, where `Xxx` + // is the original method name. For example, if the original method name + // is `TakeSnapshot()`, the inferred response type is // `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RecognitionAudio: Contains audio data in the encoding specified in -// the `RecognitionConfig`. +// RecognitionAudio: Contains audio data in the encoding specified in the +// `RecognitionConfig`. // Either `content` or `uri` must be supplied. Supplying both or // neither // returns google.rpc.Code.INVALID_ARGUMENT. See -// [audio limits](https://cloud.google.com/speech/limits#content). +// audio limits (https://cloud.google.com/speech/limits#content). type RecognitionAudio struct { - // Content: The audio data bytes encoded as specified - // in - // `RecognitionConfig`. Note: as with all bytes fields, protobuffers use - // a + // Content: The audio data bytes encoded as specified in + // `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a // pure binary representation, whereas JSON representations use base64. Content string `json:"content,omitempty"` - - // Uri: URI that points to a file that contains audio data bytes as - // specified in + // Uri: URI that points to a file that contains audio data bytes as specified + // in // `RecognitionConfig`. Currently, only Google Cloud Storage URIs // are // supported, which must be specified in the following @@ -322,44 +307,38 @@ type RecognitionAudio struct { // `gs://bucket_name/object_name` (other URI formats // return // google.rpc.Code.INVALID_ARGUMENT). For more information, see - // [Request URIs](https://cloud.google.com/storage/docs/reference-uris). + // Request URIs (https://cloud.google.com/storage/docs/reference-uris). Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Content") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Content") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RecognitionAudio) MarshalJSON() ([]byte, error) { +func (s RecognitionAudio) MarshalJSON() ([]byte, error) { type NoMethod RecognitionAudio - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RecognitionConfig: Provides information to the recognizer that -// specifies how to process the +// RecognitionConfig: Provides information to the recognizer that specifies how +// to process the // request. type RecognitionConfig struct { - // Encoding: *Required* Encoding of audio data sent in all - // `RecognitionAudio` messages. + // Encoding: *Required* Encoding of audio data sent in all `RecognitionAudio` + // messages. // // Possible values: // "ENCODING_UNSPECIFIED" - Not specified. Will return result // google.rpc.Code.INVALID_ARGUMENT. - // "LINEAR16" - Uncompressed 16-bit signed little-endian samples - // (Linear PCM). + // "LINEAR16" - Uncompressed 16-bit signed little-endian samples (Linear + // PCM). // This is the only encoding that may be used by `AsyncRecognize`. // "FLAC" - This is the recommended encoding for `SyncRecognize` // and @@ -372,163 +351,132 @@ type RecognitionConfig struct { // http://flac.sourceforge.net/documentation.html. // 16-bit and 24-bit samples are supported. // Not all fields in STREAMINFO are supported. - // "MULAW" - 8-bit samples that compand 14-bit audio samples using - // G.711 PCMU/mu-law. - // "AMR" - Adaptive Multi-Rate Narrowband codec. `sample_rate` must be - // 8000 Hz. - // "AMR_WB" - Adaptive Multi-Rate Wideband codec. `sample_rate` must - // be 16000 Hz. + // "MULAW" - 8-bit samples that compand 14-bit audio samples using G.711 + // PCMU/mu-law. + // "AMR" - Adaptive Multi-Rate Narrowband codec. `sample_rate` must be 8000 + // Hz. + // "AMR_WB" - Adaptive Multi-Rate Wideband codec. `sample_rate` must be 16000 + // Hz. Encoding string `json:"encoding,omitempty"` - - // LanguageCode: *Optional* The language of the supplied audio as a - // BCP-47 language tag. + // LanguageCode: *Optional* The language of the supplied audio as a BCP-47 + // language tag. // Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt // If omitted, defaults to "en-US". See - // [Language - // Support](https://cloud.google.com/speech/docs/languages) + // Language Support (https://cloud.google.com/speech/docs/languages) // for a list of the currently supported language codes. LanguageCode string `json:"languageCode,omitempty"` - - // MaxAlternatives: *Optional* Maximum number of recognition hypotheses - // to be returned. + // MaxAlternatives: *Optional* Maximum number of recognition hypotheses to be + // returned. // Specifically, the maximum number of `SpeechRecognitionAlternative` // messages // within each `SpeechRecognitionResult`. // The server may return fewer than `max_alternatives`. - // Valid values are `0`-`30`. A value of `0` or `1` will return a - // maximum of + // Valid values are `0`-`30`. A value of `0` or `1` will return a maximum + // of // one. If omitted, will return a maximum of one. MaxAlternatives int64 `json:"maxAlternatives,omitempty"` - - // ProfanityFilter: *Optional* If set to `true`, the server will attempt - // to filter out + // ProfanityFilter: *Optional* If set to `true`, the server will attempt to + // filter out // profanities, replacing all but the initial character in each filtered // word - // with asterisks, e.g. "f***". If set to `false` or omitted, - // profanities + // with asterisks, e.g. "f***". If set to `false` or omitted, profanities // won't be filtered out. ProfanityFilter bool `json:"profanityFilter,omitempty"` - // SampleRate: *Required* Sample rate in Hertz of the audio data sent in // all // `RecognitionAudio` messages. Valid values are: 8000-48000. // 16000 is optimal. For best results, set the sampling rate of the // audio - // source to 16000 Hz. If that's not possible, use the native sample - // rate of + // source to 16000 Hz. If that's not possible, use the native sample rate + // of // the audio source (instead of re-sampling). SampleRate int64 `json:"sampleRate,omitempty"` - - // SpeechContext: *Optional* A means to provide context to assist the - // speech recognition. + // SpeechContext: *Optional* A means to provide context to assist the speech + // recognition. SpeechContext *SpeechContext `json:"speechContext,omitempty"` - // ForceSendFields is a list of field names (e.g. "Encoding") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Encoding") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Encoding") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RecognitionConfig) MarshalJSON() ([]byte, error) { +func (s RecognitionConfig) MarshalJSON() ([]byte, error) { type NoMethod RecognitionConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SpeechContext: Provides "hints" to the speech recognizer to favor -// specific words and phrases +// SpeechContext: Provides "hints" to the speech recognizer to favor specific +// words and phrases // in the results. type SpeechContext struct { - // Phrases: *Optional* A list of strings containing words and phrases - // "hints" so that - // the speech recognition is more likely to recognize them. This can be - // used + // Phrases: *Optional* A list of strings containing words and phrases "hints" + // so that + // the speech recognition is more likely to recognize them. This can be used // to improve the accuracy for specific words and phrases, for example, // if - // specific commands are typically spoken by the user. This can also be - // used - // to add additional words to the vocabulary of the recognizer. - // See - // [usage limits](https://cloud.google.com/speech/limits#content). + // specific commands are typically spoken by the user. This can also be used + // to add additional words to the vocabulary of the recognizer. See + // usage limits (https://cloud.google.com/speech/limits#content). Phrases []string `json:"phrases,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Phrases") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Phrases") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Phrases") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Phrases") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpeechContext) MarshalJSON() ([]byte, error) { +func (s SpeechContext) MarshalJSON() ([]byte, error) { type NoMethod SpeechContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SpeechRecognitionAlternative: Alternative hypotheses (a.k.a. n-best -// list). +// SpeechRecognitionAlternative: Alternative hypotheses (a.k.a. n-best list). type SpeechRecognitionAlternative struct { - // Confidence: *Output-only* The confidence estimate between 0.0 and - // 1.0. A higher number + // Confidence: *Output-only* The confidence estimate between 0.0 and 1.0. A + // higher number // indicates an estimated greater likelihood that the recognized words // are - // correct. This field is typically provided only for the top - // hypothesis, and + // correct. This field is typically provided only for the top hypothesis, + // and // only for `is_final=true` results. Clients should not rely on // the - // `confidence` field as it is not guaranteed to be accurate, or even - // set, in + // `confidence` field as it is not guaranteed to be accurate, or even set, + // in // any of the results. - // The default of 0.0 is a sentinel value indicating `confidence` was - // not set. + // The default of 0.0 is a sentinel value indicating `confidence` was not set. Confidence float64 `json:"confidence,omitempty"` - - // Transcript: *Output-only* Transcript text representing the words that - // the user spoke. + // Transcript: *Output-only* Transcript text representing the words that the + // user spoke. Transcript string `json:"transcript,omitempty"` - // ForceSendFields is a list of field names (e.g. "Confidence") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Confidence") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Confidence") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) { +func (s SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) { type NoMethod SpeechRecognitionAlternative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error { @@ -545,43 +493,36 @@ func (s *SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error { return nil } -// SpeechRecognitionResult: A speech recognition result corresponding to -// a portion of the audio. +// SpeechRecognitionResult: A speech recognition result corresponding to a +// portion of the audio. type SpeechRecognitionResult struct { - // Alternatives: *Output-only* May contain one or more recognition - // hypotheses (up to the + // Alternatives: *Output-only* May contain one or more recognition hypotheses + // (up to the // maximum specified in `max_alternatives`). Alternatives []*SpeechRecognitionAlternative `json:"alternatives,omitempty"` - // ForceSendFields is a list of field names (e.g. "Alternatives") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Alternatives") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Alternatives") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpeechRecognitionResult) MarshalJSON() ([]byte, error) { +func (s SpeechRecognitionResult) MarshalJSON() ([]byte, error) { type NoMethod SpeechRecognitionResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different -// programming environments, including REST APIs and RPC APIs. It is -// used by -// [gRPC](https://github.com/grpc). The error model is designed to -// be: +// Status: The `Status` type defines a logical error model that is suitable for +// different +// programming environments, including REST APIs and RPC APIs. It is used +// by +// gRPC (https://github.com/grpc). The error model is designed to be: // // - Simple to use and understand for most users // - Flexible enough to meet unexpected needs @@ -598,23 +539,22 @@ func (s *SpeechRecognitionResult) MarshalJSON() ([]byte, error) { // helps // developers *understand* and *resolve* the error. If a localized // user-facing -// error message is needed, put the localized message in the error -// details or +// error message is needed, put the localized message in the error details +// or // localize it in the client. The optional error details may contain // arbitrary -// information about the error. There is a predefined set of error -// detail types -// in the package `google.rpc` that can be used for common error -// conditions. +// information about the error. There is a predefined set of error detail +// types +// in the package `google.rpc` that can be used for common error conditions. // // # Language mapping // -// The `Status` message is the logical representation of the error -// model, but it +// The `Status` message is the logical representation of the error model, but +// it // is not necessarily the actual wire format. When the `Status` message // is -// exposed in different client libraries and different wire protocols, -// it can be +// exposed in different client libraries and different wire protocols, it can +// be // mapped differently. For example, it will likely be mapped to some // exceptions // in Java, but more likely mapped to some error codes in C. @@ -624,8 +564,7 @@ func (s *SpeechRecognitionResult) MarshalJSON() ([]byte, error) { // The error model and the `Status` message can be used in a variety // of // environments, either with or without APIs, to provide a -// consistent developer experience across different -// environments. +// consistent developer experience across different environments. // // Example uses of this error model include: // @@ -638,107 +577,79 @@ func (s *SpeechRecognitionResult) MarshalJSON() ([]byte, error) { // // errors. // -// - Workflow errors. A typical workflow has multiple steps. Each step -// may -// -// have a `Status` message for error reporting. -// -// - Batch operations. If a client uses batch request and batch -// response, the -// -// `Status` message should be used directly inside batch response, -// -// one for -// -// each error sub-response. -// -// - Asynchronous operations. If an API call embeds asynchronous -// operation -// -// results in its response, the status of those operations should +// - Workflow errors. A typical workflow has multiple steps. Each step may +// have a `Status` message for error reporting. // -// be +// - Batch operations. If a client uses batch request and batch response, the +// `Status` message should be used directly inside batch response, one for +// each error sub-response. // -// represented directly using the `Status` message. +// - Asynchronous operations. If an API call embeds asynchronous operation +// results in its response, the status of those operations should be +// represented directly using the `Status` message. // -// - Logging. If some API errors are stored in logs, the message -// `Status` could +// - Logging. If some API errors are stored in logs, the message `Status` +// could // // be used directly after any stripping needed for security/privacy // // reasons. type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of + // Details: A list of messages that carry the error details. There is a common + // set of // message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any + // Message: A developer-facing error message, which should be in English. + // Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SyncRecognizeRequest: The top-level message sent by the client for -// the `SyncRecognize` method. +// SyncRecognizeRequest: The top-level message sent by the client for the +// `SyncRecognize` method. type SyncRecognizeRequest struct { // Audio: *Required* The audio data to be recognized. Audio *RecognitionAudio `json:"audio,omitempty"` - - // Config: *Required* Provides information to the recognizer that - // specifies how to + // Config: *Required* Provides information to the recognizer that specifies how + // to // process the request. Config *RecognitionConfig `json:"config,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Audio") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Audio") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Audio") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SyncRecognizeRequest) MarshalJSON() ([]byte, error) { +func (s SyncRecognizeRequest) MarshalJSON() ([]byte, error) { type NoMethod SyncRecognizeRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SyncRecognizeResponse: The only message returned to the client by @@ -752,35 +663,26 @@ type SyncRecognizeResponse struct { // sequential portions of audio. Results []*SpeechRecognitionResult `json:"results,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Results") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Results") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Results") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Results") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SyncRecognizeResponse) MarshalJSON() ([]byte, error) { +func (s SyncRecognizeResponse) MarshalJSON() ([]byte, error) { type NoMethod SyncRecognizeResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "speech.operations.get": - type OperationsGetCall struct { s *Service name string @@ -790,11 +692,13 @@ type OperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this -// method to poll the operation result at intervals as recommended by -// the API +// Get: Gets the latest state of a long-running operation. Clients can use +// this +// method to poll the operation result at intervals as recommended by the +// API // service. +// +// - name: The name of the operation resource. func (r *OperationsService) Get(name string) *OperationsGetCall { c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -802,33 +706,29 @@ func (r *OperationsService) Get(name string) *OperationsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -837,12 +737,7 @@ func (c *OperationsGetCall) Header() http.Header { } func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -859,16 +754,14 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -876,17 +769,17 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -899,35 +792,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", - // "flatPath": "v1beta1/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "speech.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/operations/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "speech.operations.list": +} type OperationsListCall struct { s *Service @@ -937,13 +802,11 @@ type OperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the -// server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the +// server doesn't support this method, it returns `UNIMPLEMENTED`. // -// NOTE: the `name` binding allows API services to override the -// binding +// NOTE: the `name` binding allows API services to override the binding // to use different resource name schemes, such as `users/*/operations`. // To // override the binding, API services can add a binding such @@ -951,70 +814,64 @@ type OperationsListCall struct { // "/v1/{name=users/*}/operations" to their service configuration. // For backwards compatibility, the default name includes the // operations -// collection id, however overriding users must ensure the name -// binding +// collection id, however overriding users must ensure the name binding // is the parent resource, without the operations collection id. func (r *OperationsService) List() *OperationsListCall { c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c } -// Name sets the optional parameter "name": The name of the operation's -// parent resource. +// Name sets the optional parameter "name": The name of the operation's parent +// resource. func (c *OperationsListCall) Name(name string) *OperationsListCall { c.urlParams_.Set("name", name) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1023,12 +880,7 @@ func (c *OperationsListCall) Header() http.Header { } func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1042,16 +894,15 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1059,17 +910,17 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1082,44 +933,6 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", - // "flatPath": "v1beta1/operations", - // "httpMethod": "GET", - // "id": "speech.operations.list", - // "parameterOrder": [], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -1127,7 +940,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // The provided context supersedes any context provided to the Context method. func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1143,8 +956,6 @@ func (c *OperationsListCall) Pages(ctx context.Context, f func(*ListOperationsRe } } -// method id "speech.speech.asyncrecognize": - type SpeechAsyncrecognizeCall struct { s *Service asyncrecognizerequest *AsyncRecognizeRequest @@ -1153,12 +964,11 @@ type SpeechAsyncrecognizeCall struct { header_ http.Header } -// Asyncrecognize: Performs asynchronous speech recognition: receive -// results via +// Asyncrecognize: Performs asynchronous speech recognition: receive results +// via // the // [google.longrunning.Operations] -// (/speech/reference/rest/v1beta1/op -// erations#Operation) +// (/speech/reference/rest/v1beta1/operations#Operation) // interface. Returns either an // `Operation.error` or an `Operation.response` which contains // an `AsyncRecognizeResponse` message. @@ -1169,23 +979,21 @@ func (r *SpeechService) Asyncrecognize(asyncrecognizerequest *AsyncRecognizeRequ } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SpeechAsyncrecognizeCall) Fields(s ...googleapi.Field) *SpeechAsyncrecognizeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SpeechAsyncrecognizeCall) Context(ctx context.Context) *SpeechAsyncrecognizeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SpeechAsyncrecognizeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1194,18 +1002,12 @@ func (c *SpeechAsyncrecognizeCall) Header() http.Header { } func (c *SpeechAsyncrecognizeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.asyncrecognizerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/speech:asyncrecognize") @@ -1215,16 +1017,14 @@ func (c *SpeechAsyncrecognizeCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.speech.asyncrecognize" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SpeechAsyncrecognizeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1232,17 +1032,17 @@ func (c *SpeechAsyncrecognizeCall) Do(opts ...googleapi.CallOption) (*Operation, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -1255,28 +1055,7 @@ func (c *SpeechAsyncrecognizeCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Performs asynchronous speech recognition: receive results via the\n[google.longrunning.Operations]\n(/speech/reference/rest/v1beta1/operations#Operation)\ninterface. Returns either an\n`Operation.error` or an `Operation.response` which contains\nan `AsyncRecognizeResponse` message.", - // "flatPath": "v1beta1/speech:asyncrecognize", - // "httpMethod": "POST", - // "id": "speech.speech.asyncrecognize", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta1/speech:asyncrecognize", - // "request": { - // "$ref": "AsyncRecognizeRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "speech.speech.syncrecognize": +} type SpeechSyncrecognizeCall struct { s *Service @@ -1286,8 +1065,8 @@ type SpeechSyncrecognizeCall struct { header_ http.Header } -// Syncrecognize: Performs synchronous speech recognition: receive -// results after all audio +// Syncrecognize: Performs synchronous speech recognition: receive results +// after all audio // has been sent and processed. func (r *SpeechService) Syncrecognize(syncrecognizerequest *SyncRecognizeRequest) *SpeechSyncrecognizeCall { c := &SpeechSyncrecognizeCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1296,23 +1075,21 @@ func (r *SpeechService) Syncrecognize(syncrecognizerequest *SyncRecognizeRequest } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SpeechSyncrecognizeCall) Fields(s ...googleapi.Field) *SpeechSyncrecognizeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SpeechSyncrecognizeCall) Context(ctx context.Context) *SpeechSyncrecognizeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SpeechSyncrecognizeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1321,18 +1098,12 @@ func (c *SpeechSyncrecognizeCall) Header() http.Header { } func (c *SpeechSyncrecognizeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.syncrecognizerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/speech:syncrecognize") @@ -1342,16 +1113,15 @@ func (c *SpeechSyncrecognizeCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.speech.syncrecognize" call. -// Exactly one of *SyncRecognizeResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SyncRecognizeResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SyncRecognizeResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SpeechSyncrecognizeCall) Do(opts ...googleapi.CallOption) (*SyncRecognizeResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1359,17 +1129,17 @@ func (c *SpeechSyncrecognizeCall) Do(opts ...googleapi.CallOption) (*SyncRecogni if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SyncRecognizeResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1382,23 +1152,4 @@ func (c *SpeechSyncrecognizeCall) Do(opts ...googleapi.CallOption) (*SyncRecogni return nil, err } return ret, nil - // { - // "description": "Performs synchronous speech recognition: receive results after all audio\nhas been sent and processed.", - // "flatPath": "v1beta1/speech:syncrecognize", - // "httpMethod": "POST", - // "id": "speech.speech.syncrecognize", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1beta1/speech:syncrecognize", - // "request": { - // "$ref": "SyncRecognizeRequest" - // }, - // "response": { - // "$ref": "SyncRecognizeResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } diff --git a/speech/v1p1beta1/speech-gen.go b/speech/v1p1beta1/speech-gen.go index 500415c2d4d..d678ac6472f 100644 --- a/speech/v1p1beta1/speech-gen.go +++ b/speech/v1p1beta1/speech-gen.go @@ -1696,7 +1696,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.operations.get" call. @@ -1824,7 +1824,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.operations.list" call. @@ -1954,7 +1954,7 @@ func (c *ProjectsLocationsCustomClassesCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.customClasses.create" call. @@ -2056,7 +2056,7 @@ func (c *ProjectsLocationsCustomClassesDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.customClasses.delete" call. @@ -2164,7 +2164,7 @@ func (c *ProjectsLocationsCustomClassesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.customClasses.get" call. @@ -2295,7 +2295,7 @@ func (c *ProjectsLocationsCustomClassesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.customClasses.list" call. @@ -2425,7 +2425,7 @@ func (c *ProjectsLocationsCustomClassesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.customClasses.patch" call. @@ -2534,7 +2534,7 @@ func (c *ProjectsLocationsPhraseSetsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.phraseSets.create" call. @@ -2630,7 +2630,7 @@ func (c *ProjectsLocationsPhraseSetsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.phraseSets.delete" call. @@ -2744,7 +2744,7 @@ func (c *ProjectsLocationsPhraseSetsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.phraseSets.get" call. @@ -2875,7 +2875,7 @@ func (c *ProjectsLocationsPhraseSetsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.phraseSets.list" call. @@ -3005,7 +3005,7 @@ func (c *ProjectsLocationsPhraseSetsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.phraseSets.patch" call. @@ -3104,7 +3104,7 @@ func (c *SpeechLongrunningrecognizeCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.speech.longrunningrecognize" call. @@ -3199,7 +3199,7 @@ func (c *SpeechRecognizeCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.speech.recognize" call. diff --git a/speech/v2beta/speech-gen.go b/speech/v2beta/speech-gen.go index 9ecc45875ff..0c6cc96f529 100644 --- a/speech/v2beta/speech-gen.go +++ b/speech/v2beta/speech-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -10,6 +10,17 @@ // // For product documentation, see: https://cloud.google.com/speech-to-text/docs/quickstart-protocol // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -19,24 +30,26 @@ // ctx := context.Background() // speechService, err := speech.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // speechService, err := speech.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // speechService, err := speech.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package speech // import "google.golang.org/api/speech/v2beta" import ( @@ -52,8 +65,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -70,11 +85,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "speech:v2beta" const apiName = "speech" const apiVersion = "v2beta" const basePath = "https://speech.googleapis.com/" +const basePathTemplate = "https://speech.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -84,11 +102,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -165,87 +186,68 @@ type ProjectsLocationsOperationsService struct { s *Service } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LongRunningRecognizeMetadata: Describes the progress of a -// long-running `LongRunningRecognize` call. It is +// LongRunningRecognizeMetadata: Describes the progress of a long-running +// `LongRunningRecognize` call. It is // included in the `metadata` field of the `Operation` returned by // the // `GetOperation` call of the `google::longrunning::Operations` service. type LongRunningRecognizeMetadata struct { - // LastUpdateTime: Output only. Time of the most recent processing - // update. + // LastUpdateTime: Output only. Time of the most recent processing update. LastUpdateTime string `json:"lastUpdateTime,omitempty"` - - // ProgressPercent: Output only. Approximate percentage of audio - // processed thus far. Guaranteed to be 100 + // ProgressPercent: Output only. Approximate percentage of audio processed thus + // far. Guaranteed to be 100 // when the audio is fully processed and the results are available. ProgressPercent int64 `json:"progressPercent,omitempty"` - // StartTime: Output only. Time when the request was received. StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "LastUpdateTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LastUpdateTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LastUpdateTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LongRunningRecognizeMetadata) MarshalJSON() ([]byte, error) { +func (s LongRunningRecognizeMetadata) MarshalJSON() ([]byte, error) { type NoMethod LongRunningRecognizeMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LongRunningRecognizeResponse: The only message returned to the client -// by the `LongRunningRecognize` method. +// LongRunningRecognizeResponse: The only message returned to the client by the +// `LongRunningRecognize` method. // It contains the result as zero or more sequential // SpeechRecognitionResult // messages. It is included in the `result.response` field of the @@ -254,159 +256,125 @@ func (s *LongRunningRecognizeMetadata) MarshalJSON() ([]byte, error) { // `google::longrunning::Operations` // service. type LongRunningRecognizeResponse struct { - // Results: Output only. Sequential list of transcription results - // corresponding to + // Results: Output only. Sequential list of transcription results corresponding + // to // sequential portions of audio. Results []*SpeechRecognitionResult `json:"results,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Results") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Results") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Results") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Results") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LongRunningRecognizeResponse) MarshalJSON() ([]byte, error) { +func (s LongRunningRecognizeResponse) MarshalJSON() ([]byte, error) { type NoMethod LongRunningRecognizeResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a +// Operation: This resource represents a long-running operation that is the +// result of a // network API call. type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. - // If `true`, the operation is completed, and either `error` or - // `response` is + // If `true`, the operation is completed, and either `error` or `response` + // is // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. - // It typically - // contains progress information and common metadata such as create - // time. - // Some services might not provide such metadata. Any method that - // returns a + // Metadata: Service-specific metadata associated with the operation. It + // typically + // contains progress information and common metadata such as create time. + // Some services might not provide such metadata. Any method that returns + // a // long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that - // originally returns it. If you use the default HTTP mapping, - // the - // `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that + // originally returns it. If you use the default HTTP mapping, the + // `name` should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. - // If the original + // Response: The normal response of the operation in case of success. If the + // original // method returns no data on success, such as `Delete`, the response // is // `google.protobuf.Empty`. If the original method is // standard // `Get`/`Create`/`Update`, the response should be the resource. For // other - // methods, the response should have the type `XxxResponse`, where - // `Xxx` - // is the original method name. For example, if the original method - // name - // is `TakeSnapshot()`, the inferred response type - // is + // methods, the response should have the type `XxxResponse`, where `Xxx` + // is the original method name. For example, if the original method name + // is `TakeSnapshot()`, the inferred response type is // `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SpeechRecognitionAlternative: Alternative hypotheses (a.k.a. n-best -// list). +// SpeechRecognitionAlternative: Alternative hypotheses (a.k.a. n-best list). type SpeechRecognitionAlternative struct { - // Confidence: Output only. The confidence estimate between 0.0 and 1.0. - // A higher number + // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A + // higher number // indicates an estimated greater likelihood that the recognized words // are // correct. This field is set only for the top alternative of a // non-streaming // result or, of a streaming result where `is_final=true`. - // This field is not guaranteed to be accurate and users should not rely - // on it + // This field is not guaranteed to be accurate and users should not rely on + // it // to be always provided. - // The default of 0.0 is a sentinel value indicating `confidence` was - // not set. + // The default of 0.0 is a sentinel value indicating `confidence` was not set. Confidence float64 `json:"confidence,omitempty"` - - // Transcript: Output only. Transcript text representing the words that - // the user spoke. + // Transcript: Output only. Transcript text representing the words that the + // user spoke. Transcript string `json:"transcript,omitempty"` - - // Words: Output only. A list of word-specific information for each - // recognized word. + // Words: Output only. A list of word-specific information for each recognized + // word. // Note: When `enable_speaker_diarization` is true, you will see all the // words // from the beginning of the audio. Words []*WordInfo `json:"words,omitempty"` - // ForceSendFields is a list of field names (e.g. "Confidence") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Confidence") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Confidence") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) { +func (s SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) { type NoMethod SpeechRecognitionAlternative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error { @@ -423,124 +391,101 @@ func (s *SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error { return nil } -// SpeechRecognitionResult: A speech recognition result corresponding to -// a portion of the audio. +// SpeechRecognitionResult: A speech recognition result corresponding to a +// portion of the audio. type SpeechRecognitionResult struct { - // Alternatives: Output only. May contain one or more recognition - // hypotheses (up to the + // Alternatives: Output only. May contain one or more recognition hypotheses + // (up to the // maximum specified in `max_alternatives`). // These alternatives are ordered in terms of accuracy, with the top // (first) // alternative being the most probable, as ranked by the recognizer. Alternatives []*SpeechRecognitionAlternative `json:"alternatives,omitempty"` - - // ChannelTag: Output only. For multi-channel audio, this is the channel - // number corresponding to the + // ChannelTag: Output only. For multi-channel audio, this is the channel number + // corresponding to the // recognized result for the audio from that channel. - // For `audio_channel_count` = N, its output values can range from `1` - // to `N`. + // For `audio_channel_count` = N, its output values can range from `1` to `N`. ChannelTag int64 `json:"channelTag,omitempty"` - - // LanguageCode: Output only. - // The - // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag - // of the + // LanguageCode: Output only. The + // BCP-47 (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of + // the // language in this result. This language code was detected to have the // most // likelihood of being spoken in the audio. LanguageCode string `json:"languageCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "Alternatives") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Alternatives") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Alternatives") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpeechRecognitionResult) MarshalJSON() ([]byte, error) { +func (s SpeechRecognitionResult) MarshalJSON() ([]byte, error) { type NoMethod SpeechRecognitionResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for -// different programming environments, including REST APIs and RPC APIs. -// It is -// used by [gRPC](https://github.com/grpc). Each `Status` message -// contains -// three pieces of data: error code, error message, and error -// details. +// Status: The `Status` type defines a logical error model that is suitable +// for +// different programming environments, including REST APIs and RPC APIs. It +// is +// used by gRPC (https://github.com/grpc). Each `Status` message contains +// three pieces of data: error code, error message, and error details. // -// You can find out more about this error model and how to work with it -// in the -// [API Design Guide](https://cloud.google.com/apis/design/errors). +// You can find out more about this error model and how to work with it in +// the +// API Design Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of + // Details: A list of messages that carry the error details. There is a common + // set of // message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any + // Message: A developer-facing error message, which should be in English. + // Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WordInfo: Word-specific information for recognized words. type WordInfo struct { - // Confidence: Output only. The confidence estimate between 0.0 and 1.0. - // A higher number + // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A + // higher number // indicates an estimated greater likelihood that the recognized words // are // correct. This field is set only for the top alternative of a // non-streaming // result or, of a streaming result where `is_final=true`. - // This field is not guaranteed to be accurate and users should not rely - // on it + // This field is not guaranteed to be accurate and users should not rely on + // it // to be always provided. - // The default of 0.0 is a sentinel value indicating `confidence` was - // not set. + // The default of 0.0 is a sentinel value indicating `confidence` was not set. Confidence float64 `json:"confidence,omitempty"` - // EndOffset: Output only. Time offset relative to the beginning of the // audio, // and corresponding to the end of the spoken word. @@ -550,21 +495,17 @@ type WordInfo struct { // can // vary. EndOffset string `json:"endOffset,omitempty"` - - // SpeakerTag: Output only. A distinct integer value is assigned for - // every speaker within - // the audio. This field specifies which one of those speakers was - // detected to - // have spoken this word. Value ranges from `1` + // SpeakerTag: Output only. A distinct integer value is assigned for every + // speaker within + // the audio. This field specifies which one of those speakers was detected // to + // have spoken this word. Value ranges from `1` to // `diarization_speaker_count`. speaker_tag is set // if - // `enable_speaker_diarization` = `true` and only in the top - // alternative. + // `enable_speaker_diarization` = `true` and only in the top alternative. SpeakerTag int64 `json:"speakerTag,omitempty"` - - // StartOffset: Output only. Time offset relative to the beginning of - // the audio, + // StartOffset: Output only. Time offset relative to the beginning of the + // audio, // and corresponding to the start of the spoken word. // This field is only set if `enable_word_time_offsets=true` and only // in the top hypothesis. @@ -572,31 +513,24 @@ type WordInfo struct { // can // vary. StartOffset string `json:"startOffset,omitempty"` - // Word: Output only. The word corresponding to this set of information. Word string `json:"word,omitempty"` - // ForceSendFields is a list of field names (e.g. "Confidence") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Confidence") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Confidence") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WordInfo) MarshalJSON() ([]byte, error) { +func (s WordInfo) MarshalJSON() ([]byte, error) { type NoMethod WordInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *WordInfo) UnmarshalJSON(data []byte) error { @@ -613,8 +547,6 @@ func (s *WordInfo) UnmarshalJSON(data []byte) error { return nil } -// method id "speech.projects.locations.operations.get": - type ProjectsLocationsOperationsGetCall struct { s *Service name string @@ -624,11 +556,13 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this -// method to poll the operation result at intervals as recommended by -// the API +// Get: Gets the latest state of a long-running operation. Clients can use +// this +// method to poll the operation result at intervals as recommended by the +// API // service. +// +// - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -636,33 +570,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -671,12 +601,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -693,16 +618,14 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -710,17 +633,17 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -733,35 +656,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", - // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "speech.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "speech.projects.locations.operations.list": +} type ProjectsLocationsOperationsListCall struct { s *Service @@ -772,13 +667,11 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the -// server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists operations that match the specified filter in the request. If +// the +// server doesn't support this method, it returns `UNIMPLEMENTED`. // -// NOTE: the `name` binding allows API services to override the -// binding +// NOTE: the `name` binding allows API services to override the binding // to use different resource name schemes, such as `users/*/operations`. // To // override the binding, API services can add a binding such @@ -786,64 +679,60 @@ type ProjectsLocationsOperationsListCall struct { // "/v1/{name=users/*}/operations" to their service configuration. // For backwards compatibility, the default name includes the // operations -// collection id, however overriding users must ensure the name -// binding +// collection id, however overriding users must ensure the name binding // is the parent resource, without the operations collection id. +// +// - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -852,12 +741,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -874,16 +758,15 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -891,17 +774,17 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -914,48 +797,6 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", - // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "speech.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2beta/{+name}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -963,7 +804,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/speech/v2beta1/speech-gen.go b/speech/v2beta1/speech-gen.go index aa719eec491..0b8031640a8 100644 --- a/speech/v2beta1/speech-gen.go +++ b/speech/v2beta1/speech-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -10,6 +10,17 @@ // // For product documentation, see: https://cloud.google.com/speech-to-text/docs/quickstart-protocol // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -19,24 +30,26 @@ // ctx := context.Background() // speechService, err := speech.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // speechService, err := speech.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // speechService, err := speech.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package speech // import "google.golang.org/api/speech/v2beta1" import ( @@ -73,17 +86,19 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "speech:v2beta1" const apiName = "speech" const apiVersion = "v2beta1" const basePath = "https://speech.googleapis.com/" +const basePathTemplate = "https://speech.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://speech.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) @@ -95,7 +110,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -172,225 +189,175 @@ type ProjectsLocationsOperationsService struct { s *Service } -// ListOperationsResponse: The response message for -// Operations.ListOperations. +// ListOperationsResponse: The response message for Operations.ListOperations. type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` - - // Operations: A list of operations that matches the specified filter in - // the request. + // Operations: A list of operations that matches the specified filter in the + // request. Operations []*Operation `json:"operations,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListOperationsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LongRunningRecognizeMetadata: Describes the progress of a -// long-running `LongRunningRecognize` call. It is included in the -// `metadata` field of the `Operation` returned by the `GetOperation` -// call of the `google::longrunning::Operations` service. +// LongRunningRecognizeMetadata: Describes the progress of a long-running +// `LongRunningRecognize` call. It is included in the `metadata` field of the +// `Operation` returned by the `GetOperation` call of the +// `google::longrunning::Operations` service. type LongRunningRecognizeMetadata struct { - // LastUpdateTime: Output only. Time of the most recent processing - // update. + // LastUpdateTime: Output only. Time of the most recent processing update. LastUpdateTime string `json:"lastUpdateTime,omitempty"` - - // ProgressPercent: Output only. Approximate percentage of audio - // processed thus far. Guaranteed to be 100 when the audio is fully - // processed and the results are available. + // ProgressPercent: Output only. Approximate percentage of audio processed thus + // far. Guaranteed to be 100 when the audio is fully processed and the results + // are available. ProgressPercent int64 `json:"progressPercent,omitempty"` - // StartTime: Output only. Time when the request was received. StartTime string `json:"startTime,omitempty"` - - // Uri: The URI of the audio file being transcribed. Empty if the audio - // was sent as byte content. + // Uri: The URI of the audio file being transcribed. Empty if the audio was + // sent as byte content. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "LastUpdateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LastUpdateTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "LastUpdateTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LongRunningRecognizeMetadata) MarshalJSON() ([]byte, error) { +func (s LongRunningRecognizeMetadata) MarshalJSON() ([]byte, error) { type NoMethod LongRunningRecognizeMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LongRunningRecognizeResponse: The only message returned to the client -// by the `LongRunningRecognize` method. It contains the result as zero -// or more sequential SpeechRecognitionResult messages. It is included -// in the `result.response` field of the `Operation` returned by the -// `GetOperation` call of the `google::longrunning::Operations` service. +// LongRunningRecognizeResponse: The only message returned to the client by the +// `LongRunningRecognize` method. It contains the result as zero or more +// sequential SpeechRecognitionResult messages. It is included in the +// `result.response` field of the `Operation` returned by the `GetOperation` +// call of the `google::longrunning::Operations` service. type LongRunningRecognizeResponse struct { - // Results: Output only. Sequential list of transcription results - // corresponding to sequential portions of audio. + // Results: Output only. Sequential list of transcription results corresponding + // to sequential portions of audio. Results []*SpeechRecognitionResult `json:"results,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Results") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Results") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Results") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Results") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LongRunningRecognizeResponse) MarshalJSON() ([]byte, error) { +func (s LongRunningRecognizeResponse) MarshalJSON() ([]byte, error) { type NoMethod LongRunningRecognizeResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. + // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` - - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. + // Response: The normal response of the operation in case of success. If the + // original method returns no data on success, such as `Delete`, the response + // is `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Done") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SpeechRecognitionAlternative: Alternative hypotheses (a.k.a. n-best -// list). +// SpeechRecognitionAlternative: Alternative hypotheses (a.k.a. n-best list). type SpeechRecognitionAlternative struct { - // Confidence: Output only. The confidence estimate between 0.0 and 1.0. - // A higher number indicates an estimated greater likelihood that the - // recognized words are correct. This field is set only for the top - // alternative of a non-streaming result or, of a streaming result where - // `is_final=true`. This field is not guaranteed to be accurate and - // users should not rely on it to be always provided. The default of 0.0 - // is a sentinel value indicating `confidence` was not set. + // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A + // higher number indicates an estimated greater likelihood that the recognized + // words are correct. This field is set only for the top alternative of a + // non-streaming result or, of a streaming result where `is_final=true`. This + // field is not guaranteed to be accurate and users should not rely on it to be + // always provided. The default of 0.0 is a sentinel value indicating + // `confidence` was not set. Confidence float64 `json:"confidence,omitempty"` - - // Transcript: Output only. Transcript text representing the words that - // the user spoke. + // Transcript: Output only. Transcript text representing the words that the + // user spoke. Transcript string `json:"transcript,omitempty"` - - // Words: Output only. A list of word-specific information for each - // recognized word. Note: When `enable_speaker_diarization` is true, you - // will see all the words from the beginning of the audio. + // Words: Output only. A list of word-specific information for each recognized + // word. Note: When `enable_speaker_diarization` is true, you will see all the + // words from the beginning of the audio. Words []*WordInfo `json:"words,omitempty"` - // ForceSendFields is a list of field names (e.g. "Confidence") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Confidence") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Confidence") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) { +func (s SpeechRecognitionAlternative) MarshalJSON() ([]byte, error) { type NoMethod SpeechRecognitionAlternative - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error { @@ -407,151 +374,120 @@ func (s *SpeechRecognitionAlternative) UnmarshalJSON(data []byte) error { return nil } -// SpeechRecognitionResult: A speech recognition result corresponding to -// a portion of the audio. +// SpeechRecognitionResult: A speech recognition result corresponding to a +// portion of the audio. type SpeechRecognitionResult struct { - // Alternatives: Output only. May contain one or more recognition - // hypotheses (up to the maximum specified in `max_alternatives`). These - // alternatives are ordered in terms of accuracy, with the top (first) - // alternative being the most probable, as ranked by the recognizer. + // Alternatives: Output only. May contain one or more recognition hypotheses + // (up to the maximum specified in `max_alternatives`). These alternatives are + // ordered in terms of accuracy, with the top (first) alternative being the + // most probable, as ranked by the recognizer. Alternatives []*SpeechRecognitionAlternative `json:"alternatives,omitempty"` - - // ChannelTag: Output only. For multi-channel audio, this is the channel - // number corresponding to the recognized result for the audio from that - // channel. For `audio_channel_count` = N, its output values can range - // from `1` to `N`. + // ChannelTag: Output only. For multi-channel audio, this is the channel number + // corresponding to the recognized result for the audio from that channel. For + // `audio_channel_count` = N, its output values can range from `1` to `N`. ChannelTag int64 `json:"channelTag,omitempty"` - // LanguageCode: Output only. The BCP-47 - // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the - // language in this result. This language code was detected to have the - // most likelihood of being spoken in the audio. + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language + // in this result. This language code was detected to have the most likelihood + // of being spoken in the audio. LanguageCode string `json:"languageCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "Alternatives") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Alternatives") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Alternatives") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpeechRecognitionResult) MarshalJSON() ([]byte, error) { +func (s SpeechRecognitionResult) MarshalJSON() ([]byte, error) { type NoMethod SpeechRecognitionResult - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different programming environments, including REST APIs -// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each -// `Status` message contains three pieces of data: error code, error -// message, and error details. You can find out more about this error -// model and how to work with it in the API Design Guide -// (https://cloud.google.com/apis/design/errors). +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WordInfo: Word-specific information for recognized words. type WordInfo struct { - // Confidence: Output only. The confidence estimate between 0.0 and 1.0. - // A higher number indicates an estimated greater likelihood that the - // recognized words are correct. This field is set only for the top - // alternative of a non-streaming result or, of a streaming result where - // `is_final=true`. This field is not guaranteed to be accurate and - // users should not rely on it to be always provided. The default of 0.0 - // is a sentinel value indicating `confidence` was not set. + // Confidence: Output only. The confidence estimate between 0.0 and 1.0. A + // higher number indicates an estimated greater likelihood that the recognized + // words are correct. This field is set only for the top alternative of a + // non-streaming result or, of a streaming result where `is_final=true`. This + // field is not guaranteed to be accurate and users should not rely on it to be + // always provided. The default of 0.0 is a sentinel value indicating + // `confidence` was not set. Confidence float64 `json:"confidence,omitempty"` - - // EndOffset: Output only. Time offset relative to the beginning of the - // audio, and corresponding to the end of the spoken word. This field is - // only set if `enable_word_time_offsets=true` and only in the top - // hypothesis. This is an experimental feature and the accuracy of the - // time offset can vary. + // EndOffset: Output only. Time offset relative to the beginning of the audio, + // and corresponding to the end of the spoken word. This field is only set if + // `enable_word_time_offsets=true` and only in the top hypothesis. This is an + // experimental feature and the accuracy of the time offset can vary. EndOffset string `json:"endOffset,omitempty"` - - // SpeakerTag: Output only. A distinct integer value is assigned for - // every speaker within the audio. This field specifies which one of - // those speakers was detected to have spoken this word. Value ranges - // from `1` to `diarization_config.max_speaker_count` . `speaker_tag` is - // set if `diarization_config.enable_speaker_diarization` = `true` and - // only in the top alternative. + // SpeakerTag: Output only. A distinct integer value is assigned for every + // speaker within the audio. This field specifies which one of those speakers + // was detected to have spoken this word. Value ranges from `1` to + // `diarization_config.max_speaker_count` . `speaker_tag` is set if + // `diarization_config.enable_speaker_diarization` = `true` and only in the top + // alternative. SpeakerTag int64 `json:"speakerTag,omitempty"` - - // StartOffset: Output only. Time offset relative to the beginning of - // the audio, and corresponding to the start of the spoken word. This - // field is only set if `enable_word_time_offsets=true` and only in the - // top hypothesis. This is an experimental feature and the accuracy of - // the time offset can vary. + // StartOffset: Output only. Time offset relative to the beginning of the + // audio, and corresponding to the start of the spoken word. This field is only + // set if `enable_word_time_offsets=true` and only in the top hypothesis. This + // is an experimental feature and the accuracy of the time offset can vary. StartOffset string `json:"startOffset,omitempty"` - // Word: Output only. The word corresponding to this set of information. Word string `json:"word,omitempty"` - // ForceSendFields is a list of field names (e.g. "Confidence") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Confidence") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Confidence") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WordInfo) MarshalJSON() ([]byte, error) { +func (s WordInfo) MarshalJSON() ([]byte, error) { type NoMethod WordInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *WordInfo) UnmarshalJSON(data []byte) error { @@ -568,8 +504,6 @@ func (s *WordInfo) UnmarshalJSON(data []byte) error { return nil } -// method id "speech.projects.locations.operations.get": - type ProjectsLocationsOperationsGetCall struct { s *Service name string @@ -579,9 +513,9 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // // - name: The name of the operation resource. func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { @@ -591,33 +525,29 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -626,12 +556,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { } func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -648,16 +573,14 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -665,17 +588,17 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -688,35 +611,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "speech.projects.locations.operations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "speech.projects.locations.operations.list": +} type ProjectsLocationsOperationsListCall struct { s *Service @@ -727,16 +622,15 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: +// the `name` binding allows API services to override the binding to use +// different resource name schemes, such as `users/*/operations`. To override +// the binding, API services can add a binding such as +// "/v1/{name=users/*}/operations" to their service configuration. For +// backwards compatibility, the default name includes the operations collection +// id, however overriding users must ensure the name binding is the parent +// resource, without the operations collection id. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -745,55 +639,50 @@ func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocation return c } -// Filter sets the optional parameter "filter": The standard list -// filter. +// Filter sets the optional parameter "filter": The standard list filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. +// PageToken sets the optional parameter "pageToken": The standard list page +// token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -802,12 +691,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header { } func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -824,16 +708,15 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "speech.projects.locations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -841,17 +724,17 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -864,48 +747,6 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", - // "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/operations", - // "httpMethod": "GET", - // "id": "speech.projects.locations.operations.list", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2beta1/{+name}/operations", - // "response": { - // "$ref": "ListOperationsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -913,7 +754,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/sql/v1beta4/sql-gen.go b/sql/v1beta4/sql-gen.go index 28bf99a095b..f4dc59798b5 100644 --- a/sql/v1beta4/sql-gen.go +++ b/sql/v1beta4/sql-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/cloud-sql/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,32 +28,31 @@ // ctx := context.Background() // sqlService, err := sql.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // sqlService, err := sql.NewService(ctx, option.WithScopes(sql.SqlserviceAdminScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // sqlService, err := sql.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // sqlService, err := sql.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. -// -// Deprecated: please use "google.golang.org/api/sqladmin/v1beta4" instead. This -// client was accidentally generated under the wrong package. The correct package -// is "sqladmin". This client will be removed in a future release. +// See [google.golang.org/api/option.ClientOption] for details on options. package sql // import "google.golang.org/api/sql/v1beta4" import ( @@ -58,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -78,11 +89,14 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "sql:v1beta4" const apiName = "sql" const apiVersion = "v1beta4" const basePath = "https://sqladmin.googleapis.com/" +const basePathTemplate = "https://sqladmin.UNIVERSE_DOMAIN/" +const mtlsBasePath = "https://sqladmin.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( @@ -95,13 +109,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/sqlservice.admin", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -270,38 +287,28 @@ type AclEntry struct { // example // 2012-11-15T16:19:00.094Z. ExpirationTime string `json:"expirationTime,omitempty"` - // Kind: This is always sql#aclEntry. Kind string `json:"kind,omitempty"` - // Name: Optional. A label to identify this entry. Name string `json:"name,omitempty"` - // Value: The whitelisted value for the access control list. Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExpirationTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExpirationTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExpirationTime") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AclEntry) MarshalJSON() ([]byte, error) { +func (s AclEntry) MarshalJSON() ([]byte, error) { type NoMethod AclEntry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ApiWarning: An Admin API warning message. @@ -309,156 +316,123 @@ type ApiWarning struct { // Code: Code to uniquely identify the warning type. // // Possible values: - // "SQL_API_WARNING_CODE_UNSPECIFIED" - An unknown or unset warning - // type from Cloud SQL API. - // "REGION_UNREACHABLE" - Warning when one or more regions are not - // reachable. The returned result + // "SQL_API_WARNING_CODE_UNSPECIFIED" - An unknown or unset warning type from + // Cloud SQL API. + // "REGION_UNREACHABLE" - Warning when one or more regions are not reachable. + // The returned result // set may be incomplete. Code string `json:"code,omitempty"` - // Message: The warning message. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApiWarning) MarshalJSON() ([]byte, error) { +func (s ApiWarning) MarshalJSON() ([]byte, error) { type NoMethod ApiWarning - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BackupConfiguration: Database instance backup configuration. type BackupConfiguration struct { - // BinaryLogEnabled: (MySQL only) Whether binary log is enabled. If - // backup configuration is + // BinaryLogEnabled: (MySQL only) Whether binary log is enabled. If backup + // configuration is // disabled, binarylog must be disabled as well. BinaryLogEnabled bool `json:"binaryLogEnabled,omitempty"` - // Enabled: Whether this configuration is enabled. Enabled bool `json:"enabled,omitempty"` - // Kind: This is always sql#backupConfiguration. Kind string `json:"kind,omitempty"` - // Location: Location of the backup Location string `json:"location,omitempty"` - // PointInTimeRecoveryEnabled: Reserved for future use. PointInTimeRecoveryEnabled bool `json:"pointInTimeRecoveryEnabled,omitempty"` - // ReplicationLogArchivingEnabled: Reserved for future use. ReplicationLogArchivingEnabled bool `json:"replicationLogArchivingEnabled,omitempty"` - - // StartTime: Start time for the daily backup configuration in UTC - // timezone in the 24 + // StartTime: Start time for the daily backup configuration in UTC timezone in + // the 24 // hour format - HH:MM. StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "BinaryLogEnabled") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BinaryLogEnabled") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BinaryLogEnabled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BackupConfiguration) MarshalJSON() ([]byte, error) { +func (s BackupConfiguration) MarshalJSON() ([]byte, error) { type NoMethod BackupConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BackupRun: A BackupRun resource. type BackupRun struct { - // Description: The description of this run, only applicable to - // on-demand backups. + // Description: The description of this run, only applicable to on-demand + // backups. Description string `json:"description,omitempty"` - // DiskEncryptionConfiguration: Encryption configuration specific to a // backup. // Applies only to Second Generation instances. DiskEncryptionConfiguration *DiskEncryptionConfiguration `json:"diskEncryptionConfiguration,omitempty"` - // DiskEncryptionStatus: Encryption status specific to a backup. // Applies only to Second Generation instances. DiskEncryptionStatus *DiskEncryptionStatus `json:"diskEncryptionStatus,omitempty"` - // EndTime: The time the backup operation completed in UTC timezone in // RFC 3339 format, for // example // 2012-11-15T16:19:00.094Z. EndTime string `json:"endTime,omitempty"` - // EnqueuedTime: The time the run was enqueued in UTC timezone in // RFC 3339 format, for // example // 2012-11-15T16:19:00.094Z. EnqueuedTime string `json:"enqueuedTime,omitempty"` - - // Error: Information about why the backup operation failed. This is - // only present if + // Error: Information about why the backup operation failed. This is only + // present if // the run has the FAILED status. Error *OperationError `json:"error,omitempty"` - - // Id: The identifier for this backup run. Unique only for a specific - // Cloud SQL + // Id: The identifier for this backup run. Unique only for a specific Cloud + // SQL // instance. Id int64 `json:"id,omitempty,string"` - // Instance: Name of the database instance. Instance string `json:"instance,omitempty"` - // Kind: This is always sql#backupRun. Kind string `json:"kind,omitempty"` - // Location: Location of the backups. Location string `json:"location,omitempty"` - // SelfLink: The URI of this resource. SelfLink string `json:"selfLink,omitempty"` - - // StartTime: The time the backup operation actually started in UTC - // timezone in RFC 3339 format, for // example // 2012-11-15T16:19:00.094Z. StartTime string `json:"startTime,omitempty"` - // Status: The status of this run. // // Possible values: - // "SQL_BACKUP_RUN_STATUS_UNSPECIFIED" - The status of the run is - // unknown. + // "SQL_BACKUP_RUN_STATUS_UNSPECIFIED" - The status of the run is unknown. // "ENQUEUED" - The backup operation was enqueued. - // "OVERDUE" - The backup is overdue across a given backup window. - // Indicates a + // "OVERDUE" - The backup is overdue across a given backup window. Indicates + // a // problem. Example: Long-running operation in progress during // the whole window. // "RUNNING" - The backup is in progress. @@ -471,317 +445,249 @@ type BackupRun struct { // "DELETION_FAILED" - The backup deletion failed. // "DELETED" - The backup has been deleted. Status string `json:"status,omitempty"` - // Type: The type of this run; can be either "AUTOMATED" or "ON_DEMAND". // // Possible values: - // "SQL_BACKUP_RUN_TYPE_UNSPECIFIED" - This is an unknown BackupRun - // type. + // "SQL_BACKUP_RUN_TYPE_UNSPECIFIED" - This is an unknown BackupRun type. // "AUTOMATED" - The backup schedule automatically triggers a backup. // "ON_DEMAND" - The user manually triggers a backup. Type string `json:"type,omitempty"` - - // WindowStartTime: The start time of the backup window during which - // this the backup was + // WindowStartTime: The start time of the backup window during which this the + // backup was // attempted in RFC // 3339 // format, for example 2012-11-15T16:19:00.094Z. WindowStartTime string `json:"windowStartTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BackupRun) MarshalJSON() ([]byte, error) { +func (s BackupRun) MarshalJSON() ([]byte, error) { type NoMethod BackupRun - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BackupRunsListResponse: Backup run list results. type BackupRunsListResponse struct { - // Items: A list of backup runs in reverse chronological order of the - // enqueued time. + // Items: A list of backup runs in reverse chronological order of the enqueued + // time. Items []*BackupRun `json:"items,omitempty"` - // Kind: This is always sql#backupRunsList. Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, used to page through large - // result sets. Provide - // this value in a subsequent request to return the next page of - // results. + // NextPageToken: The continuation token, used to page through large result + // sets. Provide + // this value in a subsequent request to return the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BackupRunsListResponse) MarshalJSON() ([]byte, error) { +func (s BackupRunsListResponse) MarshalJSON() ([]byte, error) { type NoMethod BackupRunsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BinLogCoordinates: Binary log coordinates. type BinLogCoordinates struct { // BinLogFileName: Name of the binary log file for a Cloud SQL instance. BinLogFileName string `json:"binLogFileName,omitempty"` - // BinLogPosition: Position (offset) within the binary log file. BinLogPosition int64 `json:"binLogPosition,omitempty,string"` - // Kind: This is always sql#binLogCoordinates. Kind string `json:"kind,omitempty"` - // ForceSendFields is a list of field names (e.g. "BinLogFileName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BinLogFileName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BinLogFileName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BinLogCoordinates) MarshalJSON() ([]byte, error) { +func (s BinLogCoordinates) MarshalJSON() ([]byte, error) { type NoMethod BinLogCoordinates - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CloneContext: Database instance clone context. type CloneContext struct { // BinLogCoordinates: Binary log coordinates, if specified, identify the // position up to which the - // source instance should be cloned. If not specified, the source - // instance is + // source instance should be cloned. If not specified, the source instance + // is // cloned up to the most recent binary log coordinates. BinLogCoordinates *BinLogCoordinates `json:"binLogCoordinates,omitempty"` - - // DestinationInstanceName: Name of the Cloud SQL instance to be created - // as a clone. + // DestinationInstanceName: Name of the Cloud SQL instance to be created as a + // clone. DestinationInstanceName string `json:"destinationInstanceName,omitempty"` - // Kind: This is always sql#cloneContext. Kind string `json:"kind,omitempty"` - // PitrTimestampMs: Reserved for future use. PitrTimestampMs int64 `json:"pitrTimestampMs,omitempty,string"` - // PointInTime: Reserved for future use. PointInTime string `json:"pointInTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BinLogCoordinates") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BinLogCoordinates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BinLogCoordinates") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BinLogCoordinates") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CloneContext) MarshalJSON() ([]byte, error) { +func (s CloneContext) MarshalJSON() ([]byte, error) { type NoMethod CloneContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Database: Represents a SQL database on the Cloud SQL instance. type Database struct { // Charset: The MySQL charset value. Charset string `json:"charset,omitempty"` - // Collation: The MySQL collation value. Collation string `json:"collation,omitempty"` - - // Etag: This field is deprecated and will be removed from a future - // version of the + // Etag: This field is deprecated and will be removed from a future version of + // the // API. Etag string `json:"etag,omitempty"` - - // Instance: The name of the Cloud SQL instance. This does not include - // the project ID. + // Instance: The name of the Cloud SQL instance. This does not include the + // project ID. Instance string `json:"instance,omitempty"` - // Kind: This is always sql#database. Kind string `json:"kind,omitempty"` - - // Name: The name of the database in the Cloud SQL instance. This does - // not include + // Name: The name of the database in the Cloud SQL instance. This does not + // include // the project ID or instance name. Name string `json:"name,omitempty"` - - // Project: The project ID of the project containing the Cloud SQL - // database. The Google + // Project: The project ID of the project containing the Cloud SQL database. + // The Google // apps domain is prefixed if applicable. Project string `json:"project,omitempty"` - // SelfLink: The URI of this resource. - SelfLink string `json:"selfLink,omitempty"` - + SelfLink string `json:"selfLink,omitempty"` SqlserverDatabaseDetails *SqlServerDatabaseDetails `json:"sqlserverDatabaseDetails,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Charset") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Charset") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Charset") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Charset") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Database) MarshalJSON() ([]byte, error) { +func (s Database) MarshalJSON() ([]byte, error) { type NoMethod Database - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DatabaseFlags: Database flags for Cloud SQL instances. type DatabaseFlags struct { - // Name: The name of the flag. These flags are passed at instance - // startup, so - // include both server options and system variables for MySQL. Flags - // should be + // Name: The name of the flag. These flags are passed at instance startup, + // so + // include both server options and system variables for MySQL. Flags should + // be // specified with underscores, not hyphens. For more information, see // Configuring Database Flags in the - // Cloud + // href="/sql/docs/mysql/flags">Configuring Database Flags in the Cloud // SQL documentation. Name string `json:"name,omitempty"` - - // Value: The value of the flag. Booleans should be set to - // on for true + // Value: The value of the flag. Booleans should be set to on for + // true // and off for false. This field must be omitted if the // flag // doesn't take a value. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatabaseFlags) MarshalJSON() ([]byte, error) { +func (s DatabaseFlags) MarshalJSON() ([]byte, error) { type NoMethod DatabaseFlags - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DatabaseInstance: A Cloud SQL instance resource. type DatabaseInstance struct { - // BackendType: FIRST_GEN: First Generation instance. MySQL - // only.
                  FIRST_GEN: First Generation instance. MySQL only. + //
                  SECOND_GEN: Second Generation instance or // PostgreSQL - // instance.
                  EXTERNAL: A database server that is - // not - // managed by Google.
                  This property is read-only; use - // the + // instance.
                  EXTERNAL: A database server that is not + // managed by Google.
                  This property is read-only; use the // tier property in the settings object to // determine // the database type and Second or First Generation. // // Possible values: - // "SQL_BACKEND_TYPE_UNSPECIFIED" - This is an unknown backend type - // for instance. + // "SQL_BACKEND_TYPE_UNSPECIFIED" - This is an unknown backend type for + // instance. // "FIRST_GEN" - V1 speckle instance. // "SECOND_GEN" - V2 speckle instance. // "EXTERNAL" - On premises instance. BackendType string `json:"backendType,omitempty"` - - // ConnectionName: Connection name of the Cloud SQL instance used in - // connection strings. + // ConnectionName: Connection name of the Cloud SQL instance used in connection + // strings. ConnectionName string `json:"connectionName,omitempty"` - - // CurrentDiskSize: The current disk usage of the instance in bytes. - // This property has been + // CurrentDiskSize: The current disk usage of the instance in bytes. This + // property has been // deprecated. Users should use // the // "cloudsql.googleapis.com/database/disk/bytes_used" metric in // Cloud // Monitoring API instead. Please see // this + // href="https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/B + // tvFtdFeAgAJ">this // announcement for details. CurrentDiskSize int64 `json:"currentDiskSize,omitempty,string"` - // DatabaseVersion: The database engine type and version. The // databaseVersion // field can not be changed after instance creation. MySQL Second @@ -794,8 +700,7 @@ type DatabaseInstance struct { // instances: MYSQL_5_6 (default) or MYSQL_5_5 // // Possible values: - // "SQL_DATABASE_VERSION_UNSPECIFIED" - This is an unknown database - // version. + // "SQL_DATABASE_VERSION_UNSPECIFIED" - This is an unknown database version. // "MYSQL_5_1" - The database version is MySQL 5.1. // "MYSQL_5_5" - The database version is MySQL 5.5. // "MYSQL_5_6" - The database version is MySQL 5.6. @@ -804,42 +709,36 @@ type DatabaseInstance struct { // "POSTGRES_11" - The database version is PostgreSQL 11. // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 // Standard. - // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server - // 2017 Enterprise. + // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 + // Enterprise. // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 // Express. // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. // "POSTGRES_10" - The database version is PostgreSQL 10. // "POSTGRES_12" - The database version is PostgreSQL 12. DatabaseVersion string `json:"databaseVersion,omitempty"` - - // DiskEncryptionConfiguration: Disk encryption configuration specific - // to an instance. + // DiskEncryptionConfiguration: Disk encryption configuration specific to an + // instance. // Applies only to Second Generation instances. DiskEncryptionConfiguration *DiskEncryptionConfiguration `json:"diskEncryptionConfiguration,omitempty"` - // DiskEncryptionStatus: Disk encryption status specific to an // instance. // Applies only to Second Generation instances. DiskEncryptionStatus *DiskEncryptionStatus `json:"diskEncryptionStatus,omitempty"` - - // Etag: This field is deprecated and will be removed from a future - // version of the + // Etag: This field is deprecated and will be removed from a future version of + // the // API. Use the settings.settingsVersion field instead. Etag string `json:"etag,omitempty"` - - // FailoverReplica: The name and status of the failover replica. This - // property is applicable + // FailoverReplica: The name and status of the failover replica. This property + // is applicable // only to Second Generation instances. FailoverReplica *DatabaseInstanceFailoverReplica `json:"failoverReplica,omitempty"` - - // GceZone: The Compute Engine zone that the instance is currently - // serving from. This + // GceZone: The Compute Engine zone that the instance is currently serving + // from. This // value could be different from the zone that was specified when the // instance // was created if the instance has failed over to its secondary zone. GceZone string `json:"gceZone,omitempty"` - // InstanceType: The instance type. This can be one of the // following. //
                  CLOUD_SQL_INSTANCE: A Cloud SQL instance that is @@ -852,47 +751,35 @@ type DatabaseInstance struct { // instance configured as a read-replica. // // Possible values: - // "SQL_INSTANCE_TYPE_UNSPECIFIED" - This is an unknown Cloud SQL - // instance type. + // "SQL_INSTANCE_TYPE_UNSPECIFIED" - This is an unknown Cloud SQL instance + // type. // "CLOUD_SQL_INSTANCE" - A regular Cloud SQL instance. - // "ON_PREMISES_INSTANCE" - An instance running on the customer's - // premises that is not managed by + // "ON_PREMISES_INSTANCE" - An instance running on the customer's premises + // that is not managed by // Cloud SQL. - // "READ_REPLICA_INSTANCE" - A Cloud SQL instance acting as a - // read-replica. + // "READ_REPLICA_INSTANCE" - A Cloud SQL instance acting as a read-replica. InstanceType string `json:"instanceType,omitempty"` - // IpAddresses: The assigned IP addresses for the instance. IpAddresses []*IpMapping `json:"ipAddresses,omitempty"` - - // Ipv6Address: The IPv6 address assigned to the instance. This property - // is applicable only + // Ipv6Address: The IPv6 address assigned to the instance. This property is + // applicable only // to First Generation instances. Ipv6Address string `json:"ipv6Address,omitempty"` - // Kind: This is always sql#instance. Kind string `json:"kind,omitempty"` - - // MasterInstanceName: The name of the instance which will act as master - // in the replication setup. + // MasterInstanceName: The name of the instance which will act as master in the + // replication setup. MasterInstanceName string `json:"masterInstanceName,omitempty"` - // MaxDiskSize: The maximum disk size of the instance in bytes. MaxDiskSize int64 `json:"maxDiskSize,omitempty,string"` - - // Name: Name of the Cloud SQL instance. This does not include the - // project ID. + // Name: Name of the Cloud SQL instance. This does not include the project ID. Name string `json:"name,omitempty"` - - // OnPremisesConfiguration: Configuration specific to on-premises - // instances. + // OnPremisesConfiguration: Configuration specific to on-premises instances. OnPremisesConfiguration *OnPremisesConfiguration `json:"onPremisesConfiguration,omitempty"` - - // Project: The project ID of the project containing the Cloud SQL - // instance. The Google + // Project: The project ID of the project containing the Cloud SQL instance. + // The Google // apps domain is prefixed if applicable. Project string `json:"project,omitempty"` - // Region: The geographical region. Can be // us-central // (FIRST_GEN instances only), @@ -901,43 +788,33 @@ type DatabaseInstance struct { // or // europe-west1. Defaults to us-central // or - // us-central1 depending on the instance type (First - // Generation + // us-central1 depending on the instance type (First Generation // or Second Generation). The region can not be changed after // instance // creation. Region string `json:"region,omitempty"` - - // ReplicaConfiguration: Configuration specific to failover replicas and - // read replicas. + // ReplicaConfiguration: Configuration specific to failover replicas and read + // replicas. ReplicaConfiguration *ReplicaConfiguration `json:"replicaConfiguration,omitempty"` - // ReplicaNames: The replicas of the instance. ReplicaNames []string `json:"replicaNames,omitempty"` - // RootPassword: Initial root password. Use only on creation. RootPassword string `json:"rootPassword,omitempty"` - - // ScheduledMaintenance: The start time of any upcoming scheduled - // maintenance for this instance. + // ScheduledMaintenance: The start time of any upcoming scheduled maintenance + // for this instance. ScheduledMaintenance *SqlScheduledMaintenance `json:"scheduledMaintenance,omitempty"` - // SelfLink: The URI of this resource. SelfLink string `json:"selfLink,omitempty"` - // ServerCaCert: SSL configuration. ServerCaCert *SslCert `json:"serverCaCert,omitempty"` - - // ServiceAccountEmailAddress: The service account email address - // assigned to the instance. This property + // ServiceAccountEmailAddress: The service account email address assigned to + // the instance. This property // is applicable only to Second Generation instances. ServiceAccountEmailAddress string `json:"serviceAccountEmailAddress,omitempty"` - // Settings: The user settings. Settings *Settings `json:"settings,omitempty"` - - // State: The current serving state of the Cloud SQL instance. This can - // be one of the + // State: The current serving state of the Cloud SQL instance. This can be one + // of the // following.
                  RUNNABLE: The instance is running, or is // ready // to run when accessed.
                  SUSPENDED: The instance is @@ -953,147 +830,121 @@ type DatabaseInstance struct { //
                  UNKNOWN_STATE: The state of the instance is unknown. // // Possible values: - // "SQL_INSTANCE_STATE_UNSPECIFIED" - The state of the instance is - // unknown. + // "SQL_INSTANCE_STATE_UNSPECIFIED" - The state of the instance is unknown. // "RUNNABLE" - The instance is running. - // "SUSPENDED" - The instance is currently offline, but it may run - // again in the future. + // "SUSPENDED" - The instance is currently offline, but it may run again in + // the future. // "PENDING_DELETE" - The instance is being deleted. // "PENDING_CREATE" - The instance is being created. // "MAINTENANCE" - The instance is down for maintenance. // "FAILED" - The instance failed to be created. State string `json:"state,omitempty"` - - // SuspensionReason: If the instance state is SUSPENDED, the reason for - // the suspension. + // SuspensionReason: If the instance state is SUSPENDED, the reason for the + // suspension. // // Possible values: // "SQL_SUSPENSION_REASON_UNSPECIFIED" - This is an unknown suspension // reason. - // "BILLING_ISSUE" - The instance is suspended due to billing issues - // (e.g., GCP account issue) - // "LEGAL_ISSUE" - The instance is suspended due to illegal content - // (e.g., child pornography, + // "BILLING_ISSUE" - The instance is suspended due to billing issues (e.g., + // GCP account issue) + // "LEGAL_ISSUE" - The instance is suspended due to illegal content (e.g., + // child pornography, // copyrighted material, etc.). - // "OPERATIONAL_ISSUE" - The instance is causing operational issues - // (e.g., causing the database + // "OPERATIONAL_ISSUE" - The instance is causing operational issues (e.g., + // causing the database // to crash). - // "KMS_KEY_ISSUE" - The KMS key used by the instance is either - // revoked or denied access to + // "KMS_KEY_ISSUE" - The KMS key used by the instance is either revoked or + // denied access to SuspensionReason []string `json:"suspensionReason,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BackendType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BackendType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BackendType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatabaseInstance) MarshalJSON() ([]byte, error) { +func (s DatabaseInstance) MarshalJSON() ([]byte, error) { type NoMethod DatabaseInstance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DatabaseInstanceFailoverReplica: The name and status of the failover // replica. This property is applicable // only to Second Generation instances. type DatabaseInstanceFailoverReplica struct { - // Available: The availability status of the failover replica. A false - // status indicates - // that the failover replica is out of sync. The master can only - // failover to + // Available: The availability status of the failover replica. A false status + // indicates + // that the failover replica is out of sync. The master can only failover + // to // the failover replica when the status is true. Available bool `json:"available,omitempty"` - - // Name: The name of the failover replica. If specified at instance - // creation, a + // Name: The name of the failover replica. If specified at instance creation, + // a // failover replica is created for the instance. The name - // doesn't include the project ID. This property is applicable only - // to + // doesn't include the project ID. This property is applicable only to // Second Generation instances. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Available") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Available") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Available") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatabaseInstanceFailoverReplica) MarshalJSON() ([]byte, error) { +func (s DatabaseInstanceFailoverReplica) MarshalJSON() ([]byte, error) { type NoMethod DatabaseInstanceFailoverReplica - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DatabasesListResponse: Database list response. type DatabasesListResponse struct { // Items: List of database resources in the instance. Items []*Database `json:"items,omitempty"` - // Kind: This is always sql#databasesList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DatabasesListResponse) MarshalJSON() ([]byte, error) { +func (s DatabasesListResponse) MarshalJSON() ([]byte, error) { type NoMethod DatabasesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DemoteMasterConfiguration: Read-replica configuration for connecting -// to the on-premises master. +// DemoteMasterConfiguration: Read-replica configuration for connecting to the +// on-premises master. type DemoteMasterConfiguration struct { // Kind: This is always sql#demoteMasterConfiguration. Kind string `json:"kind,omitempty"` - - // MysqlReplicaConfiguration: MySQL specific configuration when - // replicating from a MySQL on-premises + // MysqlReplicaConfiguration: MySQL specific configuration when replicating + // from a MySQL on-premises // master. Replication configuration information such as the // username, // password, certificates, and keys are not stored in the instance @@ -1104,207 +955,161 @@ type DemoteMasterConfiguration struct { // master.info // in the data directory. MysqlReplicaConfiguration *DemoteMasterMySqlReplicaConfiguration `json:"mysqlReplicaConfiguration,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DemoteMasterConfiguration) MarshalJSON() ([]byte, error) { +func (s DemoteMasterConfiguration) MarshalJSON() ([]byte, error) { type NoMethod DemoteMasterConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DemoteMasterContext: Database instance demote master context. type DemoteMasterContext struct { // Kind: This is always sql#demoteMasterContext. Kind string `json:"kind,omitempty"` - - // MasterInstanceName: The name of the instance which will act as - // on-premises master in the + // MasterInstanceName: The name of the instance which will act as on-premises + // master in the // replication setup. MasterInstanceName string `json:"masterInstanceName,omitempty"` - - // ReplicaConfiguration: Configuration specific to read-replicas - // replicating from the on-premises + // ReplicaConfiguration: Configuration specific to read-replicas replicating + // from the on-premises // master. ReplicaConfiguration *DemoteMasterConfiguration `json:"replicaConfiguration,omitempty"` - - // VerifyGtidConsistency: Verify GTID consistency for demote operation. - // Default value: - // True. Second Generation instances only. Setting this - // flag to + // VerifyGtidConsistency: Verify GTID consistency for demote operation. Default + // value: + // True. Second Generation instances only. Setting this flag + // to // false enables you to bypass GTID consistency check between // on-premises - // master and Cloud SQL instance during the demotion operation but - // also + // master and Cloud SQL instance during the demotion operation but also // exposes you to the risk of future replication failures. Change the // value // only if you know the reason for the GTID divergence and are confident // that // doing so will not cause any replication issues. VerifyGtidConsistency bool `json:"verifyGtidConsistency,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DemoteMasterContext) MarshalJSON() ([]byte, error) { +func (s DemoteMasterContext) MarshalJSON() ([]byte, error) { type NoMethod DemoteMasterContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DemoteMasterMySqlReplicaConfiguration: Read-replica configuration -// specific to MySQL databases. +// DemoteMasterMySqlReplicaConfiguration: Read-replica configuration specific +// to MySQL databases. type DemoteMasterMySqlReplicaConfiguration struct { - // CaCertificate: PEM representation of the trusted CA's x509 - // certificate. + // CaCertificate: PEM representation of the trusted CA's x509 certificate. CaCertificate string `json:"caCertificate,omitempty"` - - // ClientCertificate: PEM representation of the slave's x509 - // certificate. + // ClientCertificate: PEM representation of the slave's x509 certificate. ClientCertificate string `json:"clientCertificate,omitempty"` - - // ClientKey: PEM representation of the slave's private key. The - // corresponsing public key + // ClientKey: PEM representation of the slave's private key. The corresponsing + // public key // is encoded in the client's certificate. The format of the slave's // private // key can be either PKCS #1 or PKCS #8. ClientKey string `json:"clientKey,omitempty"` - - // Kind: This is always - // sql#demoteMasterMysqlReplicaConfiguration. + // Kind: This is always sql#demoteMasterMysqlReplicaConfiguration. Kind string `json:"kind,omitempty"` - // Password: The password for the replication connection. Password string `json:"password,omitempty"` - // Username: The username for the replication connection. Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "CaCertificate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CaCertificate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CaCertificate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DemoteMasterMySqlReplicaConfiguration) MarshalJSON() ([]byte, error) { +func (s DemoteMasterMySqlReplicaConfiguration) MarshalJSON() ([]byte, error) { type NoMethod DemoteMasterMySqlReplicaConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DiskEncryptionConfiguration: Disk encryption configuration for an -// instance. +// DiskEncryptionConfiguration: Disk encryption configuration for an instance. type DiskEncryptionConfiguration struct { // Kind: This is always sql#diskEncryptionConfiguration. Kind string `json:"kind,omitempty"` - // KmsKeyName: Resource name of KMS key for disk encryption KmsKeyName string `json:"kmsKeyName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DiskEncryptionConfiguration) MarshalJSON() ([]byte, error) { +func (s DiskEncryptionConfiguration) MarshalJSON() ([]byte, error) { type NoMethod DiskEncryptionConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DiskEncryptionStatus: Disk encryption status for an instance. type DiskEncryptionStatus struct { // Kind: This is always sql#diskEncryptionStatus. Kind string `json:"kind,omitempty"` - - // KmsKeyVersionName: KMS key version used to encrypt the Cloud SQL - // instance resource + // KmsKeyVersionName: KMS key version used to encrypt the Cloud SQL instance + // resource KmsKeyVersionName string `json:"kmsKeyVersionName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *DiskEncryptionStatus) MarshalJSON() ([]byte, error) { +func (s DiskEncryptionStatus) MarshalJSON() ([]byte, error) { type NoMethod DiskEncryptionStatus - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ExportContext: Database instance export context. type ExportContext struct { // CsvExportOptions: Options for exporting data as CSV. CsvExportOptions *ExportContextCsvExportOptions `json:"csvExportOptions,omitempty"` - // Databases: Databases to be exported.
                  MySQL instances: // If - // fileType is SQL and no database is - // specified, all + // fileType is SQL and no database is specified, + // all // databases are exported, except for the mysql system // database. // If fileType is CSV, you can specify one @@ -1313,19 +1118,16 @@ type ExportContext struct { // the // csvExportOptions.selectQuery property, which takes // precedence - // over this property.
                  PostgreSQL instances: You must - // specify + // over this property.
                  PostgreSQL instances: You must specify // one database to be exported. If fileType is // CSV, // this database must match the one specified in // the // csvExportOptions.selectQuery property. Databases []string `json:"databases,omitempty"` - - // FileType: The file type for the specified uri.
                  SQL: - // The file - // contains SQL statements.
                  CSV: The file contains CSV - // data. + // FileType: The file type for the specified uri.
                  SQL: The + // file + // contains SQL statements.
                  CSV: The file contains CSV data. // // Possible values: // "SQL_FILE_TYPE_UNSPECIFIED" - Unknown file type. @@ -1333,207 +1135,160 @@ type ExportContext struct { // "CSV" - File in CSV format. // "BAK" FileType string `json:"fileType,omitempty"` - // Kind: This is always sql#exportContext. Kind string `json:"kind,omitempty"` - // SqlExportOptions: Options for exporting data as SQL statements. SqlExportOptions *ExportContextSqlExportOptions `json:"sqlExportOptions,omitempty"` - - // Uri: The path to the file in Google Cloud Storage where the export - // will be - // stored. The URI is in the form - // gs: - // //bucketName/fileName. If the file already exists, the - // requests + // Uri: The path to the file in Google Cloud Storage where the export will + // be + // stored. The URI is in the form gs: + // //bucketName/fileName. If the file already exists, the requests // // succeeds, but the operation fails. If fileType is - // // SQL and the filename ends with .gz, the contents - // are + // // SQL and the filename ends with .gz, the contents are // // compressed. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "CsvExportOptions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CsvExportOptions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CsvExportOptions") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExportContext) MarshalJSON() ([]byte, error) { +func (s ExportContext) MarshalJSON() ([]byte, error) { type NoMethod ExportContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ExportContextCsvExportOptions: Options for exporting data as CSV. type ExportContextCsvExportOptions struct { // SelectQuery: The select query used to extract the data. SelectQuery string `json:"selectQuery,omitempty"` - // ForceSendFields is a list of field names (e.g. "SelectQuery") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SelectQuery") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SelectQuery") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExportContextCsvExportOptions) MarshalJSON() ([]byte, error) { +func (s ExportContextCsvExportOptions) MarshalJSON() ([]byte, error) { type NoMethod ExportContextCsvExportOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExportContextSqlExportOptions: Options for exporting data as SQL -// statements. +// ExportContextSqlExportOptions: Options for exporting data as SQL statements. type ExportContextSqlExportOptions struct { // MysqlExportOptions: Options for exporting from MySQL. MysqlExportOptions *ExportContextSqlExportOptionsMysqlExportOptions `json:"mysqlExportOptions,omitempty"` - // SchemaOnly: Export only schemas. SchemaOnly bool `json:"schemaOnly,omitempty"` - // Tables: Tables to export, or that were exported, from the specified // database. If // you specify tables, specify one and only one database. For // PostgreSQL // instances, you can specify only one table. Tables []string `json:"tables,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MysqlExportOptions") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "MysqlExportOptions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MysqlExportOptions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MysqlExportOptions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExportContextSqlExportOptions) MarshalJSON() ([]byte, error) { +func (s ExportContextSqlExportOptions) MarshalJSON() ([]byte, error) { type NoMethod ExportContextSqlExportOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExportContextSqlExportOptionsMysqlExportOptions: Options for -// exporting from MySQL. +// ExportContextSqlExportOptionsMysqlExportOptions: Options for exporting from +// MySQL. type ExportContextSqlExportOptionsMysqlExportOptions struct { // MasterData: Option to include SQL statement required to set up // replication. // If set to 1, the dump file includes // a CHANGE MASTER TO statement with the binary log coordinates. - // If set to 2, the CHANGE MASTER TO statement is written - // as + // If set to 2, the CHANGE MASTER TO statement is written as // a SQL comment, and has no effect. // All other values are ignored. MasterData int64 `json:"masterData,omitempty"` - // ForceSendFields is a list of field names (e.g. "MasterData") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MasterData") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MasterData") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExportContextSqlExportOptionsMysqlExportOptions) MarshalJSON() ([]byte, error) { +func (s ExportContextSqlExportOptionsMysqlExportOptions) MarshalJSON() ([]byte, error) { type NoMethod ExportContextSqlExportOptionsMysqlExportOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FailoverContext: Database instance failover context. type FailoverContext struct { // Kind: This is always sql#failoverContext. Kind string `json:"kind,omitempty"` - - // SettingsVersion: The current settings version of this instance. - // Request will be rejected if + // SettingsVersion: The current settings version of this instance. Request will + // be rejected if // this version doesn't match the current settings version. SettingsVersion int64 `json:"settingsVersion,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FailoverContext) MarshalJSON() ([]byte, error) { +func (s FailoverContext) MarshalJSON() ([]byte, error) { type NoMethod FailoverContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Flag: A flag resource. type Flag struct { - // AllowedIntValues: Use this field if only certain integers are - // accepted. Can be combined + // AllowedIntValues: Use this field if only certain integers are accepted. Can + // be combined // with min_value and max_value to add additional values. AllowedIntValues googleapi.Int64s `json:"allowedIntValues,omitempty"` - - // AllowedStringValues: For STRING flags, a list of strings - // that the value can be set + // AllowedStringValues: For STRING flags, a list of strings that + // the value can be set // to. AllowedStringValues []string `json:"allowedStringValues,omitempty"` - // AppliesTo: The database version this flag applies to. Can be // MYSQL_5_5, - // MYSQL_5_6, or MYSQL_5_7. - // MYSQL_5_7 + // MYSQL_5_6, or MYSQL_5_7. MYSQL_5_7 // is applicable only to Second Generation instances. // // Possible values: - // "SQL_DATABASE_VERSION_UNSPECIFIED" - This is an unknown database - // version. + // "SQL_DATABASE_VERSION_UNSPECIFIED" - This is an unknown database version. // "MYSQL_5_1" - The database version is MySQL 5.1. // "MYSQL_5_5" - The database version is MySQL 5.5. // "MYSQL_5_6" - The database version is MySQL 5.6. @@ -1542,37 +1297,30 @@ type Flag struct { // "POSTGRES_11" - The database version is PostgreSQL 11. // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 // Standard. - // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server - // 2017 Enterprise. + // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 + // Enterprise. // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 // Express. // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. // "POSTGRES_10" - The database version is PostgreSQL 10. // "POSTGRES_12" - The database version is PostgreSQL 12. AppliesTo []string `json:"appliesTo,omitempty"` - // InBeta: Whether or not the flag is considered in beta. InBeta bool `json:"inBeta,omitempty"` - // Kind: This is always sql#flag. Kind string `json:"kind,omitempty"` - // MaxValue: For INTEGER flags, the maximum allowed value. MaxValue int64 `json:"maxValue,omitempty,string"` - // MinValue: For INTEGER flags, the minimum allowed value. MinValue int64 `json:"minValue,omitempty,string"` - - // Name: This is the name of the flag. Flag names always use - // underscores, not + // Name: This is the name of the flag. Flag names always use underscores, + // not // hyphens, e.g. max_allowed_packet Name string `json:"name,omitempty"` - // RequiresRestart: Indicates whether changing this flag will trigger a // database restart. Only // applicable to Second Generation instances. RequiresRestart bool `json:"requiresRestart,omitempty"` - // Type: The type of the flag. Flags are typed to being // BOOLEAN, // STRING, INTEGER or @@ -1587,96 +1335,76 @@ type Flag struct { // "STRING" - String type flag. // "INTEGER" - Integer type flag. // "NONE" - Flag type used for a server startup option. - // "MYSQL_TIMEZONE_OFFSET" - Type introduced specically for MySQL - // TimeZone offset. Accept a string value + // "MYSQL_TIMEZONE_OFFSET" - Type introduced specically for MySQL TimeZone + // offset. Accept a string value // with the format [-12:59, 13:00]. // "FLOAT" - Float type flag. - // "REPEATED_STRING" - Comma-separated list of the strings in a - // SqlFlagType enum. + // "REPEATED_STRING" - Comma-separated list of the strings in a SqlFlagType + // enum. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowedIntValues") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowedIntValues") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AllowedIntValues") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Flag) MarshalJSON() ([]byte, error) { +func (s Flag) MarshalJSON() ([]byte, error) { type NoMethod Flag - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FlagsListResponse: Flags list response. type FlagsListResponse struct { // Items: List of flags. Items []*Flag `json:"items,omitempty"` - // Kind: This is always sql#flagsList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FlagsListResponse) MarshalJSON() ([]byte, error) { +func (s FlagsListResponse) MarshalJSON() ([]byte, error) { type NoMethod FlagsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ImportContext: Database instance import context. type ImportContext struct { // BakImportOptions: Import parameters specific to SQL Server .BAK files BakImportOptions *ImportContextBakImportOptions `json:"bakImportOptions,omitempty"` - // CsvImportOptions: Options for importing data as CSV. CsvImportOptions *ImportContextCsvImportOptions `json:"csvImportOptions,omitempty"` - - // Database: The target database for the import. If - // fileType is + // Database: The target database for the import. If fileType + // is // SQL, this field is required only if the import file does // not - // specify a database, and is overridden by any database specification - // in the - // import file. If fileType is CSV, one - // database + // specify a database, and is overridden by any database specification in + // the + // import file. If fileType is CSV, one database // must be specified. Database string `json:"database,omitempty"` - - // FileType: The file type for the specified uri.
                  SQL: - // The file - // contains SQL statements.
                  CSV: The file contains CSV - // data. + // FileType: The file type for the specified uri.
                  SQL: The + // file + // contains SQL statements.
                  CSV: The file contains CSV data. // // Possible values: // "SQL_FILE_TYPE_UNSPECIFIED" - Unknown file type. @@ -1684,75 +1412,56 @@ type ImportContext struct { // "CSV" - File in CSV format. // "BAK" FileType string `json:"fileType,omitempty"` - // ImportUser: The PostgreSQL user for this import operation. PostgreSQL // instances only. ImportUser string `json:"importUser,omitempty"` - // Kind: This is always sql#importContext. Kind string `json:"kind,omitempty"` - // Uri: Path to the import file in Cloud Storage, in the // form // gs: - // //bucketName/fileName. Compressed gzip files (.gz) are - // supported - // // when fileType is SQL. The instance must - // have + // //bucketName/fileName. Compressed gzip files (.gz) are supported + // // when fileType is SQL. The instance must have // // write permissions to the bucket and read access to the file. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "BakImportOptions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BakImportOptions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "BakImportOptions") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ImportContext) MarshalJSON() ([]byte, error) { +func (s ImportContext) MarshalJSON() ([]byte, error) { type NoMethod ImportContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ImportContextBakImportOptions: Import parameters specific to SQL -// Server .BAK files +// ImportContextBakImportOptions: Import parameters specific to SQL Server .BAK +// files type ImportContextBakImportOptions struct { EncryptionOptions *ImportContextBakImportOptionsEncryptionOptions `json:"encryptionOptions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EncryptionOptions") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EncryptionOptions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EncryptionOptions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "EncryptionOptions") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ImportContextBakImportOptions) MarshalJSON() ([]byte, error) { +func (s ImportContextBakImportOptions) MarshalJSON() ([]byte, error) { type NoMethod ImportContextBakImportOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ImportContextBakImportOptionsEncryptionOptions struct { @@ -1761,327 +1470,249 @@ type ImportContextBakImportOptionsEncryptionOptions struct { // gs://bucketName/fileName. The instance must have // write permissions to the bucket and read access to the file. CertPath string `json:"certPath,omitempty"` - // PvkPassword: Password that encrypts the private key PvkPassword string `json:"pvkPassword,omitempty"` - - // PvkPath: Path to the Certificate Private Key (.pvk) in Cloud - // Storage, in the - // form gs://bucketName/fileName. The instance must - // have + // PvkPath: Path to the Certificate Private Key (.pvk) in Cloud Storage, in + // the + // form gs://bucketName/fileName. The instance must have // write permissions to the bucket and read access to the file. PvkPath string `json:"pvkPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "CertPath") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CertPath") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CertPath") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ImportContextBakImportOptionsEncryptionOptions) MarshalJSON() ([]byte, error) { +func (s ImportContextBakImportOptionsEncryptionOptions) MarshalJSON() ([]byte, error) { type NoMethod ImportContextBakImportOptionsEncryptionOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ImportContextCsvImportOptions: Options for importing data as CSV. type ImportContextCsvImportOptions struct { - // Columns: The columns to which CSV data is imported. If not specified, - // all columns + // Columns: The columns to which CSV data is imported. If not specified, all + // columns // of the database table are loaded with CSV data. Columns []string `json:"columns,omitempty"` - // Table: The table to which CSV data is imported. Table string `json:"table,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Columns") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Columns") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Columns") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Columns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ImportContextCsvImportOptions) MarshalJSON() ([]byte, error) { +func (s ImportContextCsvImportOptions) MarshalJSON() ([]byte, error) { type NoMethod ImportContextCsvImportOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstancesCloneRequest: Database instance clone request. type InstancesCloneRequest struct { // CloneContext: Contains details about the clone operation. CloneContext *CloneContext `json:"cloneContext,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloneContext") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CloneContext") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloneContext") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstancesCloneRequest) MarshalJSON() ([]byte, error) { +func (s InstancesCloneRequest) MarshalJSON() ([]byte, error) { type NoMethod InstancesCloneRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstancesDemoteMasterRequest: Database demote master request. type InstancesDemoteMasterRequest struct { - // DemoteMasterContext: Contains details about the demoteMaster - // operation. + // DemoteMasterContext: Contains details about the demoteMaster operation. DemoteMasterContext *DemoteMasterContext `json:"demoteMasterContext,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DemoteMasterContext") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DemoteMasterContext") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DemoteMasterContext") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DemoteMasterContext") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstancesDemoteMasterRequest) MarshalJSON() ([]byte, error) { +func (s InstancesDemoteMasterRequest) MarshalJSON() ([]byte, error) { type NoMethod InstancesDemoteMasterRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstancesExportRequest: Database instance export request. type InstancesExportRequest struct { // ExportContext: Contains details about the export operation. ExportContext *ExportContext `json:"exportContext,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExportContext") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExportContext") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExportContext") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstancesExportRequest) MarshalJSON() ([]byte, error) { +func (s InstancesExportRequest) MarshalJSON() ([]byte, error) { type NoMethod InstancesExportRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstancesFailoverRequest: Instance failover request. type InstancesFailoverRequest struct { // FailoverContext: Failover Context. FailoverContext *FailoverContext `json:"failoverContext,omitempty"` - // ForceSendFields is a list of field names (e.g. "FailoverContext") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FailoverContext") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FailoverContext") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstancesFailoverRequest) MarshalJSON() ([]byte, error) { +func (s InstancesFailoverRequest) MarshalJSON() ([]byte, error) { type NoMethod InstancesFailoverRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstancesImportRequest: Database instance import request. type InstancesImportRequest struct { // ImportContext: Contains details about the import operation. ImportContext *ImportContext `json:"importContext,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImportContext") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImportContext") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ImportContext") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstancesImportRequest) MarshalJSON() ([]byte, error) { +func (s InstancesImportRequest) MarshalJSON() ([]byte, error) { type NoMethod InstancesImportRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstancesListResponse: Database instances list response. type InstancesListResponse struct { // Items: List of database instance resources. Items []*DatabaseInstance `json:"items,omitempty"` - // Kind: This is always sql#instancesList. Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, used to page through large - // result sets. Provide - // this value in a subsequent request to return the next page of - // results. + // NextPageToken: The continuation token, used to page through large result + // sets. Provide + // this value in a subsequent request to return the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // Warnings: List of warnings that occurred while handling the request. Warnings []*ApiWarning `json:"warnings,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstancesListResponse) MarshalJSON() ([]byte, error) { +func (s InstancesListResponse) MarshalJSON() ([]byte, error) { type NoMethod InstancesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstancesListServerCasResponse: Instances ListServerCas response. type InstancesListServerCasResponse struct { ActiveVersion string `json:"activeVersion,omitempty"` - // Certs: List of server CA certificates for the instance. Certs []*SslCert `json:"certs,omitempty"` - // Kind: This is always sql#instancesListServerCas. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ActiveVersion") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveVersion") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActiveVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstancesListServerCasResponse) MarshalJSON() ([]byte, error) { +func (s InstancesListServerCasResponse) MarshalJSON() ([]byte, error) { type NoMethod InstancesListServerCasResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InstancesRestoreBackupRequest: Database instance restore backup -// request. +// InstancesRestoreBackupRequest: Database instance restore backup request. type InstancesRestoreBackupRequest struct { - // RestoreBackupContext: Parameters required to perform the restore - // backup operation. + // RestoreBackupContext: Parameters required to perform the restore backup + // operation. RestoreBackupContext *RestoreBackupContext `json:"restoreBackupContext,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "RestoreBackupContext") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "RestoreBackupContext") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RestoreBackupContext") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "RestoreBackupContext") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstancesRestoreBackupRequest) MarshalJSON() ([]byte, error) { +func (s InstancesRestoreBackupRequest) MarshalJSON() ([]byte, error) { type NoMethod InstancesRestoreBackupRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstancesRotateServerCaRequest: Rotate Server CA request. @@ -2089,60 +1720,44 @@ type InstancesRotateServerCaRequest struct { // RotateServerCaContext: Contains details about the rotate server CA // operation. RotateServerCaContext *RotateServerCaContext `json:"rotateServerCaContext,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "RotateServerCaContext") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "RotateServerCaContext") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RotateServerCaContext") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstancesRotateServerCaRequest) MarshalJSON() ([]byte, error) { +func (s InstancesRotateServerCaRequest) MarshalJSON() ([]byte, error) { type NoMethod InstancesRotateServerCaRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InstancesTruncateLogRequest: Instance truncate log request. type InstancesTruncateLogRequest struct { - // TruncateLogContext: Contains details about the truncate log - // operation. + // TruncateLogContext: Contains details about the truncate log operation. TruncateLogContext *TruncateLogContext `json:"truncateLogContext,omitempty"` - - // ForceSendFields is a list of field names (e.g. "TruncateLogContext") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "TruncateLogContext") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TruncateLogContext") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TruncateLogContext") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InstancesTruncateLogRequest) MarshalJSON() ([]byte, error) { +func (s InstancesTruncateLogRequest) MarshalJSON() ([]byte, error) { type NoMethod InstancesTruncateLogRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // IpConfiguration: IP Management configuration. @@ -2151,72 +1766,55 @@ type IpConfiguration struct { // connect to the instance // using the IP. In // CID - // R + // href="http://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation">CIDR // notation, also known as 'slash' notation // (e.g. // 192.168.100.0/24). AuthorizedNetworks []*AclEntry `json:"authorizedNetworks,omitempty"` - - // Ipv4Enabled: Whether the instance should be assigned an IP address or - // not. + // Ipv4Enabled: Whether the instance should be assigned an IP address or not. Ipv4Enabled bool `json:"ipv4Enabled,omitempty"` - - // PrivateNetwork: The resource link for the VPC network from which the - // Cloud SQL instance is + // PrivateNetwork: The resource link for the VPC network from which the Cloud + // SQL instance is // accessible for private IP. For // example, - // /projects/myProject/global/networks/default. This - // setting can + // /projects/myProject/global/networks/default. This setting + // can // be updated, but it cannot be removed after it is set. PrivateNetwork string `json:"privateNetwork,omitempty"` - - // RequireSsl: Whether SSL connections over IP should be enforced or - // not. + // RequireSsl: Whether SSL connections over IP should be enforced or not. RequireSsl bool `json:"requireSsl,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AuthorizedNetworks") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AuthorizedNetworks") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthorizedNetworks") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AuthorizedNetworks") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IpConfiguration) MarshalJSON() ([]byte, error) { +func (s IpConfiguration) MarshalJSON() ([]byte, error) { type NoMethod IpConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // IpMapping: Database instance IP Mapping. type IpMapping struct { // IpAddress: The IP address assigned. IpAddress string `json:"ipAddress,omitempty"` - // TimeToRetire: The due time for this IP to be retired in // RFC 3339 format, for // example - // 2012-11-15T16:19:00.094Z. This field is only available - // when + // 2012-11-15T16:19:00.094Z. This field is only available when // the IP is scheduled to be retired. TimeToRetire string `json:"timeToRetire,omitempty"` - - // Type: The type of this IP address. A PRIMARY address is - // a public - // address that can accept incoming connections. A - // PRIVATE + // Type: The type of this IP address. A PRIMARY address is a + // public + // address that can accept incoming connections. A PRIVATE // address is a private address that can accept incoming connections. // An // OUTGOING address is the source address of @@ -2224,50 +1822,41 @@ type IpMapping struct { // originating from the instance, if supported. // // Possible values: - // "SQL_IP_ADDRESS_TYPE_UNSPECIFIED" - This is an unknown IP address - // type. - // "PRIMARY" - IP address the customer is supposed to connect to. - // Usually this is the + // "SQL_IP_ADDRESS_TYPE_UNSPECIFIED" - This is an unknown IP address type. + // "PRIMARY" - IP address the customer is supposed to connect to. Usually + // this is the // load balancer's IP address // "OUTGOING" - Source IP address of the connection a read replica // establishes to its - // external master. This IP address can be whitelisted by the - // customer + // external master. This IP address can be whitelisted by the customer // in case it has a firewall that filters incoming connection to its // on premises master. - // "PRIVATE" - Private IP used when using private IPs and network - // peering. + // "PRIVATE" - Private IP used when using private IPs and network peering. // "MIGRATED_1ST_GEN" - V1 IP of a migrated instance. We want the user // to // decommission this IP as soon as the migration is complete. // Note: V1 instances with V1 ip addresses will be counted as PRIMARY. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "IpAddress") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IpAddress") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IpAddress") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IpMapping) MarshalJSON() ([]byte, error) { +func (s IpMapping) MarshalJSON() ([]byte, error) { type NoMethod IpMapping - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LocationPreference: Preferred location. This specifies where a Cloud -// SQL instance should +// LocationPreference: Preferred location. This specifies where a Cloud SQL +// instance should // preferably be located, either in a specific Compute Engine zone, // or // co-located with an App Engine application. Note that if the @@ -2276,236 +1865,179 @@ func (s *IpMapping) MarshalJSON() ([]byte, error) { // possible // within the region. Only one location may be specified. type LocationPreference struct { - // FollowGaeApplication: The AppEngine application to follow, it must be - // in the same region as the + // FollowGaeApplication: The AppEngine application to follow, it must be in the + // same region as the // Cloud SQL instance. FollowGaeApplication string `json:"followGaeApplication,omitempty"` - // Kind: This is always sql#locationPreference. Kind string `json:"kind,omitempty"` - // Zone: The preferred Compute Engine zone (e.g. us-central1-a, // us-central1-b, // etc.). Zone string `json:"zone,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "FollowGaeApplication") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "FollowGaeApplication") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FollowGaeApplication") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FollowGaeApplication") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *LocationPreference) MarshalJSON() ([]byte, error) { +func (s LocationPreference) MarshalJSON() ([]byte, error) { type NoMethod LocationPreference - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MaintenanceWindow: Maintenance window. This specifies when a v2 Cloud -// SQL instance should +// MaintenanceWindow: Maintenance window. This specifies when a v2 Cloud SQL +// instance should // preferably be restarted for system maintenance purposes. type MaintenanceWindow struct { // Day: day of week (1-7), starting on Monday. Day int64 `json:"day,omitempty"` - // Hour: hour of day - 0 to 23. Hour int64 `json:"hour,omitempty"` - // Kind: This is always sql#maintenanceWindow. Kind string `json:"kind,omitempty"` - - // UpdateTrack: Maintenance timing setting: canary - // (Earlier) or + // UpdateTrack: Maintenance timing setting: canary (Earlier) + // or // stable (Later).
                  + // href="/sql/docs/db_path/instance-settings#maintenance-timing-2ndgen"> // Learn more. // // Possible values: - // "SQL_UPDATE_TRACK_UNSPECIFIED" - This is an unknown maintenance - // timing preference. - // "canary" - For instance update that requires a restart, this update - // track indicates - // your instance prefer to restart for new version early in - // maintenance + // "SQL_UPDATE_TRACK_UNSPECIFIED" - This is an unknown maintenance timing + // preference. + // "canary" - For instance update that requires a restart, this update track + // indicates + // your instance prefer to restart for new version early in maintenance // window. - // "stable" - For instance update that requires a restart, this update - // track indicates + // "stable" - For instance update that requires a restart, this update track + // indicates // your instance prefer to let Cloud SQL choose the timing of restart // (within // its Maintenance window, if applicable). UpdateTrack string `json:"updateTrack,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Day") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Day") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Day") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Day") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) { +func (s MaintenanceWindow) MarshalJSON() ([]byte, error) { type NoMethod MaintenanceWindow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MySqlReplicaConfiguration: Read-replica configuration specific to -// MySQL databases. +// MySqlReplicaConfiguration: Read-replica configuration specific to MySQL +// databases. type MySqlReplicaConfiguration struct { - // CaCertificate: PEM representation of the trusted CA's x509 - // certificate. + // CaCertificate: PEM representation of the trusted CA's x509 certificate. CaCertificate string `json:"caCertificate,omitempty"` - - // ClientCertificate: PEM representation of the slave's x509 - // certificate. + // ClientCertificate: PEM representation of the slave's x509 certificate. ClientCertificate string `json:"clientCertificate,omitempty"` - - // ClientKey: PEM representation of the slave's private key. The - // corresponsing public key + // ClientKey: PEM representation of the slave's private key. The corresponsing + // public key // is encoded in the client's certificate. ClientKey string `json:"clientKey,omitempty"` - - // ConnectRetryInterval: Seconds to wait between connect retries. - // MySQL's default is 60 seconds. + // ConnectRetryInterval: Seconds to wait between connect retries. MySQL's + // default is 60 seconds. ConnectRetryInterval int64 `json:"connectRetryInterval,omitempty"` - - // DumpFilePath: Path to a SQL dump file in Google Cloud Storage from - // which the slave - // instance is to be created. The URI is in the form - // gs: - // //bucketName/fileName. Compressed gzip files (.gz) are also - // supported. + // DumpFilePath: Path to a SQL dump file in Google Cloud Storage from which the + // slave + // instance is to be created. The URI is in the form gs: + // //bucketName/fileName. Compressed gzip files (.gz) are also supported. // // Dumps should have the binlog co-ordinates from which replication // should // // begin. This can be accomplished by setting --master-data to 1 when // using // // mysqldump. DumpFilePath string `json:"dumpFilePath,omitempty"` - // Kind: This is always sql#mysqlReplicaConfiguration. Kind string `json:"kind,omitempty"` - // MasterHeartbeatPeriod: Interval in milliseconds between replication // heartbeats. MasterHeartbeatPeriod int64 `json:"masterHeartbeatPeriod,omitempty,string"` - // Password: The password for the replication connection. Password string `json:"password,omitempty"` - // SslCipher: A list of permissible ciphers to use for SSL encryption. SslCipher string `json:"sslCipher,omitempty"` - // Username: The username for the replication connection. Username string `json:"username,omitempty"` - - // VerifyServerCertificate: Whether or not to check the master's Common - // Name value in the certificate + // VerifyServerCertificate: Whether or not to check the master's Common Name + // value in the certificate // that it sends during the SSL handshake. VerifyServerCertificate bool `json:"verifyServerCertificate,omitempty"` - // ForceSendFields is a list of field names (e.g. "CaCertificate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CaCertificate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CaCertificate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MySqlReplicaConfiguration) MarshalJSON() ([]byte, error) { +func (s MySqlReplicaConfiguration) MarshalJSON() ([]byte, error) { type NoMethod MySqlReplicaConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OnPremisesConfiguration: On-premises instance configuration. type OnPremisesConfiguration struct { - // CaCertificate: PEM representation of the trusted CA's x509 - // certificate. + // CaCertificate: PEM representation of the trusted CA's x509 certificate. CaCertificate string `json:"caCertificate,omitempty"` - - // ClientCertificate: PEM representation of the slave's x509 - // certificate. + // ClientCertificate: PEM representation of the slave's x509 certificate. ClientCertificate string `json:"clientCertificate,omitempty"` - - // ClientKey: PEM representation of the slave's private key. The - // corresponsing public key + // ClientKey: PEM representation of the slave's private key. The corresponsing + // public key // is encoded in the client's certificate. ClientKey string `json:"clientKey,omitempty"` - // DumpFilePath: The dump file to create the Cloud SQL replica. DumpFilePath string `json:"dumpFilePath,omitempty"` - - // HostPort: The host and port of the on-premises instance in host:port - // format + // HostPort: The host and port of the on-premises instance in host:port format HostPort string `json:"hostPort,omitempty"` - // Kind: This is always sql#onPremisesConfiguration. Kind string `json:"kind,omitempty"` - // Password: The password for connecting to on-premises instance. Password string `json:"password,omitempty"` - // Username: The username for connecting to on-premises instance. Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "CaCertificate") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CaCertificate") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CaCertificate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OnPremisesConfiguration) MarshalJSON() ([]byte, error) { +func (s OnPremisesConfiguration) MarshalJSON() ([]byte, error) { type NoMethod OnPremisesConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Operation: An Operation resource. For successful operations that -// return an +// Operation: An Operation resource. For successful operations that return +// an // Operation resource, only the fields relevant to the operation are // populated // in the resource. @@ -2516,35 +2048,28 @@ type Operation struct { // example // 2012-11-15T16:19:00.094Z. EndTime string `json:"endTime,omitempty"` - - // Error: If errors occurred during processing of this operation, this - // field will be + // Error: If errors occurred during processing of this operation, this field + // will be // populated. Error *OperationErrors `json:"error,omitempty"` - // ExportContext: The context for export operation, if applicable. ExportContext *ExportContext `json:"exportContext,omitempty"` - // ImportContext: The context for import operation, if applicable. ImportContext *ImportContext `json:"importContext,omitempty"` - // InsertTime: The time this operation was enqueued in UTC timezone in // RFC 3339 format, for // example // 2012-11-15T16:19:00.094Z. InsertTime string `json:"insertTime,omitempty"` - // Kind: This is always sql#operation. Kind string `json:"kind,omitempty"` - - // Name: An identifier that uniquely identifies the operation. You can - // use this + // Name: An identifier that uniquely identifies the operation. You can use + // this // identifier to retrieve the Operations resource that has information // about // the operation. Name string `json:"name,omitempty"` - // OperationType: The type of the operation. Valid values are // CREATE, // DELETE, UPDATE, @@ -2572,13 +2097,10 @@ type Operation struct { // "BACKUP_VOLUME" - Performs instance backup. // "DELETE_VOLUME" - Deletes an instance backup. // "RESTORE_VOLUME" - Restores an instance backup. - // "INJECT_USER" - Injects a privileged user in mysql for MOB - // instances. + // "INJECT_USER" - Injects a privileged user in mysql for MOB instances. // "CLONE" - Clones a Cloud SQL instance. - // "STOP_REPLICA" - Stops replication on a Cloud SQL read replica - // instance. - // "START_REPLICA" - Starts replication on a Cloud SQL read replica - // instance. + // "STOP_REPLICA" - Stops replication on a Cloud SQL read replica instance. + // "START_REPLICA" - Starts replication on a Cloud SQL read replica instance. // "PROMOTE_REPLICA" - Promotes a Cloud SQL replica instance. // "CREATE_REPLICA" - Creates a Cloud SQL replica instance. // "CREATE_USER" - Creates a new user in a Cloud SQL instance. @@ -2592,31 +2114,27 @@ type Operation struct { // "DELETE_BACKUP" - Deletes the backup taken by a backup run. // "RECREATE_REPLICA" // "TRUNCATE_LOG" - Truncates a general or slow log table in MySQL. - // "DEMOTE_MASTER" - Demotes the stand-alone instance to be a Cloud - // SQL + // "DEMOTE_MASTER" - Demotes the stand-alone instance to be a Cloud SQL // read replica for an external database server. - // "MAINTENANCE" - Indicates that the instance is currently in - // maintenance. Maintenance + // "MAINTENANCE" - Indicates that the instance is currently in maintenance. + // Maintenance // typically causes the instance to be unavailable for 1-3 minutes. - // "ENABLE_PRIVATE_IP" - This field is deprecated, and will be removed - // in future version of API. + // "ENABLE_PRIVATE_IP" - This field is deprecated, and will be removed in + // future version of API. // "DEFER_MAINTENANCE" // "CREATE_CLONE" - Creates clone instance. // "RESCHEDULE_MAINTENANCE" - Reschedule maintenance to another time. - // "START_EXTERNAL_SYNC" - Starts external sync of a Cloud SQL EM - // replica to an external master. + // "START_EXTERNAL_SYNC" - Starts external sync of a Cloud SQL EM replica to + // an external master. OperationType string `json:"operationType,omitempty"` - // SelfLink: The URI of this resource. SelfLink string `json:"selfLink,omitempty"` - - // StartTime: The time this operation actually started in UTC timezone - // in RFC 3339 format, for // example // 2012-11-15T16:19:00.094Z. StartTime string `json:"startTime,omitempty"` - // Status: The status of an operation. Valid values are // PENDING, // RUNNING, @@ -2630,174 +2148,134 @@ type Operation struct { // "RUNNING" - The operation is running. // "DONE" - The operation completed. Status string `json:"status,omitempty"` - // TargetId: Name of the database instance related to this operation. - TargetId string `json:"targetId,omitempty"` - + TargetId string `json:"targetId,omitempty"` TargetLink string `json:"targetLink,omitempty"` - // TargetProject: The project ID of the target instance related to this // operation. TargetProject string `json:"targetProject,omitempty"` - // User: The email address of the user who initiated this operation. User string `json:"user,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { +func (s Operation) MarshalJSON() ([]byte, error) { type NoMethod Operation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationError: Database instance operation error. type OperationError struct { // Code: Identifies the specific error that occurred. Code string `json:"code,omitempty"` - // Kind: This is always sql#operationError. Kind string `json:"kind,omitempty"` - // Message: Additional information about the error encountered. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationError) MarshalJSON() ([]byte, error) { +func (s OperationError) MarshalJSON() ([]byte, error) { type NoMethod OperationError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationErrors: Database instance operation errors list wrapper. type OperationErrors struct { - // Errors: The list of errors encountered while processing this - // operation. + // Errors: The list of errors encountered while processing this operation. Errors []*OperationError `json:"errors,omitempty"` - // Kind: This is always sql#operationErrors. Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Errors") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Errors") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Errors") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationErrors) MarshalJSON() ([]byte, error) { +func (s OperationErrors) MarshalJSON() ([]byte, error) { type NoMethod OperationErrors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // OperationsListResponse: Database instance list operations response. type OperationsListResponse struct { // Items: List of operation resources. Items []*Operation `json:"items,omitempty"` - // Kind: This is always sql#operationsList. Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, used to page through large - // result sets. Provide - // this value in a subsequent request to return the next page of - // results. + // NextPageToken: The continuation token, used to page through large result + // sets. Provide + // this value in a subsequent request to return the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationsListResponse) MarshalJSON() ([]byte, error) { +func (s OperationsListResponse) MarshalJSON() ([]byte, error) { type NoMethod OperationsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ReplicaConfiguration: Read-replica configuration for connecting to -// the master. +// ReplicaConfiguration: Read-replica configuration for connecting to the +// master. type ReplicaConfiguration struct { - // FailoverTarget: Specifies if the replica is the failover target. If - // the field is set to - // true the replica will be designated as a failover - // replica. In - // case the master instance fails, the replica instance will be promoted - // as + // FailoverTarget: Specifies if the replica is the failover target. If the + // field is set to + // true the replica will be designated as a failover replica. + // In + // case the master instance fails, the replica instance will be promoted as // the new master instance.

                  Only one replica can be specified as // failover // target, and the replica has to be in different zone with the // master // instance. FailoverTarget bool `json:"failoverTarget,omitempty"` - // Kind: This is always sql#replicaConfiguration. Kind string `json:"kind,omitempty"` - - // MysqlReplicaConfiguration: MySQL specific configuration when - // replicating from a MySQL on-premises + // MysqlReplicaConfiguration: MySQL specific configuration when replicating + // from a MySQL on-premises // master. Replication configuration information such as the // username, // password, certificates, and keys are not stored in the instance @@ -2808,29 +2286,22 @@ type ReplicaConfiguration struct { // master.info // in the data directory. MysqlReplicaConfiguration *MySqlReplicaConfiguration `json:"mysqlReplicaConfiguration,omitempty"` - // ForceSendFields is a list of field names (e.g. "FailoverTarget") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FailoverTarget") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "FailoverTarget") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ReplicaConfiguration) MarshalJSON() ([]byte, error) { +func (s ReplicaConfiguration) MarshalJSON() ([]byte, error) { type NoMethod ReplicaConfiguration - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Reschedule struct { @@ -2838,130 +2309,103 @@ type Reschedule struct { // // Possible values: // "RESCHEDULE_TYPE_UNSPECIFIED" - // "IMMEDIATE" - If the user wants to schedule the maintenance to - // happen now. + // "IMMEDIATE" - If the user wants to schedule the maintenance to happen now. // "NEXT_AVAILABLE_WINDOW" - If the user wants to use the existing // maintenance policy to find the // next available window. - // "SPECIFIC_TIME" - If the user wants to reschedule the maintenance - // to a specific time. + // "SPECIFIC_TIME" - If the user wants to reschedule the maintenance to a + // specific time. RescheduleType string `json:"rescheduleType,omitempty"` - - // ScheduleTime: Optional. Timestamp when the maintenance shall be - // rescheduled to if + // ScheduleTime: Optional. Timestamp when the maintenance shall be rescheduled + // to if // reschedule_type=SPECIFIC_TIME, in // RFC 3339 format, - // for + // href="https://tools.ietf.org/html/rfc3339">RFC 3339 format, for // example 2012-11-15T16:19:00.094Z. ScheduleTime string `json:"scheduleTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "RescheduleType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RescheduleType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "RescheduleType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Reschedule) MarshalJSON() ([]byte, error) { +func (s Reschedule) MarshalJSON() ([]byte, error) { type NoMethod Reschedule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RestoreBackupContext: Database instance restore from backup -// context. +// RestoreBackupContext: Database instance restore from backup context. // Backup context contains source instance id and project id. type RestoreBackupContext struct { // BackupRunId: The ID of the backup run to restore from. BackupRunId int64 `json:"backupRunId,omitempty,string"` - // InstanceId: The ID of the instance that the backup was taken from. InstanceId string `json:"instanceId,omitempty"` - // Kind: This is always sql#restoreBackupContext. Kind string `json:"kind,omitempty"` - // Project: The full project ID of the source instance. Project string `json:"project,omitempty"` - // ForceSendFields is a list of field names (e.g. "BackupRunId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BackupRunId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BackupRunId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RestoreBackupContext) MarshalJSON() ([]byte, error) { +func (s RestoreBackupContext) MarshalJSON() ([]byte, error) { type NoMethod RestoreBackupContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RotateServerCaContext: Instance rotate server CA context. type RotateServerCaContext struct { // Kind: This is always sql#rotateServerCaContext. Kind string `json:"kind,omitempty"` - - // NextVersion: The fingerprint of the next version to be rotated to. If - // left unspecified, + // NextVersion: The fingerprint of the next version to be rotated to. If left + // unspecified, // will be rotated to the most recently added server CA version. NextVersion string `json:"nextVersion,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RotateServerCaContext) MarshalJSON() ([]byte, error) { +func (s RotateServerCaContext) MarshalJSON() ([]byte, error) { type NoMethod RotateServerCaContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Settings: Database instance settings. type Settings struct { - // ActivationPolicy: The activation policy specifies when the instance - // is activated; it is + // ActivationPolicy: The activation policy specifies when the instance is + // activated; it is // applicable only when the instance state is RUNNABLE. // Valid - // values:
                  ALWAYS: The instance is on, and remains so - // even in - // the absence of connection requests.
                  NEVER: The - // instance is + // values:
                  ALWAYS: The instance is on, and remains so even + // in + // the absence of connection requests.
                  NEVER: The instance + // is // off; it is not activated, even if a connection request // arrives. //
                  ON_DEMAND: First Generation instances only. The @@ -2980,80 +2424,65 @@ type Settings struct { // "NEVER" - The instance should never spin up. // "ON_DEMAND" - The instance spins up upon receiving requests. ActivationPolicy string `json:"activationPolicy,omitempty"` - - // AuthorizedGaeApplications: The App Engine app IDs that can access - // this instance. First Generation + // AuthorizedGaeApplications: The App Engine app IDs that can access this + // instance. First Generation // instances only. AuthorizedGaeApplications []string `json:"authorizedGaeApplications,omitempty"` - - // AvailabilityType: Availability type (PostgreSQL and MySQL instances - // only). Potential values: - //
                  ZONAL: The instance serves data from only one - // zone. + // AvailabilityType: Availability type (PostgreSQL and MySQL instances only). + // Potential values: + //
                  ZONAL: The instance serves data from only one zone. // Outages in that zone affect data accessibility. //
                  REGIONAL: // The instance can serve data from more than one zone in a region (it // is // highly available).
                  For more information, see // Overview + // href="https://cloud.google.com/sql/docs/postgres/high-availability">Overview // of the High Availability Configuration. // // Possible values: - // "SQL_AVAILABILITY_TYPE_UNSPECIFIED" - This is an unknown - // Availability type. + // "SQL_AVAILABILITY_TYPE_UNSPECIFIED" - This is an unknown Availability + // type. // "ZONAL" - Zonal available instance. // "REGIONAL" - Regional available instance. AvailabilityType string `json:"availabilityType,omitempty"` - // BackupConfiguration: The daily backup configuration for the instance. BackupConfiguration *BackupConfiguration `json:"backupConfiguration,omitempty"` - // CrashSafeReplicationEnabled: Configuration specific to read replica // instances. Indicates whether - // database flags for crash-safe replication are enabled. This property - // is + // database flags for crash-safe replication are enabled. This property is // only applicable to First Generation instances. CrashSafeReplicationEnabled bool `json:"crashSafeReplicationEnabled,omitempty"` - - // DataDiskSizeGb: The size of data disk, in GB. The data disk size - // minimum is 10GB. Not used + // DataDiskSizeGb: The size of data disk, in GB. The data disk size minimum is + // 10GB. Not used // for First Generation instances. DataDiskSizeGb int64 `json:"dataDiskSizeGb,omitempty,string"` - // DataDiskType: The type of data disk: PD_SSD (default) // or // PD_HDD. Not used for First Generation instances. // // Possible values: - // "SQL_DATA_DISK_TYPE_UNSPECIFIED" - This is an unknown data disk - // type. + // "SQL_DATA_DISK_TYPE_UNSPECIFIED" - This is an unknown data disk type. // "PD_SSD" - An SSD data disk. // "PD_HDD" - An HDD data disk. - // "OBSOLETE_LOCAL_SSD" - This field is deprecated and will be removed - // from a future version of the + // "OBSOLETE_LOCAL_SSD" - This field is deprecated and will be removed from a + // future version of the // API. DataDiskType string `json:"dataDiskType,omitempty"` - // DatabaseFlags: The database flags passed to the instance at startup. DatabaseFlags []*DatabaseFlags `json:"databaseFlags,omitempty"` - // DatabaseReplicationEnabled: Configuration specific to read replica // instances. Indicates whether // replication is enabled or not. DatabaseReplicationEnabled bool `json:"databaseReplicationEnabled,omitempty"` - - // IpConfiguration: The settings for IP Management. This allows to - // enable or disable the + // IpConfiguration: The settings for IP Management. This allows to enable or + // disable the // instance IP and manage which external networks can connect to the // instance. // The IPv4 address cannot be disabled for Second Generation instances. IpConfiguration *IpConfiguration `json:"ipConfiguration,omitempty"` - // Kind: This is always sql#settings. Kind string `json:"kind,omitempty"` - // LocationPreference: The location preference settings. This allows the // instance to be located as // near as possible to either an App Engine app or Compute Engine zone @@ -3062,14 +2491,12 @@ type Settings struct { // First // Generation instances. LocationPreference *LocationPreference `json:"locationPreference,omitempty"` - - // MaintenanceWindow: The maintenance window for this instance. This - // specifies when the instance + // MaintenanceWindow: The maintenance window for this instance. This specifies + // when the instance // can be restarted for maintenance purposes. Not used for First // Generation // instances. MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` - // PricingPlan: The pricing plan for this instance. This can be either // PER_USE // or PACKAGE. Only PER_USE is supported for @@ -3077,104 +2504,86 @@ type Settings struct { // Generation instances. // // Possible values: - // "SQL_PRICING_PLAN_UNSPECIFIED" - This is an unknown pricing plan - // for this instance. + // "SQL_PRICING_PLAN_UNSPECIFIED" - This is an unknown pricing plan for this + // instance. // "PACKAGE" - The instance is billed at a monthly flat rate. // "PER_USE" - The instance is billed per usage. PricingPlan string `json:"pricingPlan,omitempty"` - - // ReplicationType: The type of replication this instance uses. This can - // be either - // ASYNCHRONOUS or SYNCHRONOUS. This property - // is + // ReplicationType: The type of replication this instance uses. This can be + // either + // ASYNCHRONOUS or SYNCHRONOUS. This property is // only applicable to First Generation instances. // // Possible values: - // "SQL_REPLICATION_TYPE_UNSPECIFIED" - This is an unknown replication - // type for a Cloud SQL instance. - // "SYNCHRONOUS" - The synchronous replication mode for First - // Generation instances. It is the + // "SQL_REPLICATION_TYPE_UNSPECIFIED" - This is an unknown replication type + // for a Cloud SQL instance. + // "SYNCHRONOUS" - The synchronous replication mode for First Generation + // instances. It is the // default value. - // "ASYNCHRONOUS" - The asynchronous replication mode for First - // Generation instances. It + // "ASYNCHRONOUS" - The asynchronous replication mode for First Generation + // instances. It // provides a slight performance gain, but if an outage occurs while // this // option is set to asynchronous, you can lose up to a few seconds of // updates // to your data. ReplicationType string `json:"replicationType,omitempty"` - - // SettingsVersion: The version of instance settings. This is a required - // field for update + // SettingsVersion: The version of instance settings. This is a required field + // for update // method to make sure concurrent updates are handled properly. During // update, - // use the most recent settingsVersion value for this instance and do - // not try + // use the most recent settingsVersion value for this instance and do not + // try // to update this value. SettingsVersion int64 `json:"settingsVersion,omitempty,string"` - - // StorageAutoResize: Configuration to increase storage size - // automatically. The default value is + // StorageAutoResize: Configuration to increase storage size automatically. The + // default value is // true. Not used for First Generation instances. StorageAutoResize bool `json:"storageAutoResize,omitempty"` - - // StorageAutoResizeLimit: The maximum size to which storage capacity - // can be automatically increased. - // The default value is 0, which specifies that there is no limit. Not - // used + // StorageAutoResizeLimit: The maximum size to which storage capacity can be + // automatically increased. + // The default value is 0, which specifies that there is no limit. Not used // for First Generation instances. StorageAutoResizeLimit int64 `json:"storageAutoResizeLimit,omitempty,string"` - // Tier: The tier (or machine type) for this instance, for // example // db-n1-standard-1 (MySQL instances) // or // db-custom-1-3840 (PostgreSQL instances). For MySQL // instances, - // this property determines whether the instance is First or - // Second + // this property determines whether the instance is First or Second // Generation. For more information, see // Instance Settings. Tier string `json:"tier,omitempty"` - - // UserLabels: User-provided labels, represented as a dictionary where - // each label is a + // UserLabels: User-provided labels, represented as a dictionary where each + // label is a // single key value pair. UserLabels map[string]string `json:"userLabels,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActivationPolicy") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActivationPolicy") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ActivationPolicy") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Settings) MarshalJSON() ([]byte, error) { +func (s Settings) MarshalJSON() ([]byte, error) { type NoMethod Settings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SqlExternalSyncSettingError: External master migration setting error. type SqlExternalSyncSettingError struct { // Detail: Additional information about the error encountered. Detail string `json:"detail,omitempty"` - // Kind: This is always sql#migrationSettingError. Kind string `json:"kind,omitempty"` - // Type: Identifies the specific error that occurred. // // Possible values: @@ -3185,33 +2594,27 @@ type SqlExternalSyncSettingError struct { // "REPLICA_ALREADY_SETUP" // "INSUFFICIENT_PRIVILEGE" // "UNSUPPORTED_MIGRATION_TYPE" - Unsupported migration type. - // "NO_PGLOGICAL_INSTALLED" - No pglogical extension installed on - // databases, applicable for postgres. + // "NO_PGLOGICAL_INSTALLED" - No pglogical extension installed on databases, + // applicable for postgres. // "PGLOGICAL_NODE_ALREADY_EXISTS" - pglogical node already exists on // databases, applicable for postgres. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Detail") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Detail") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SqlExternalSyncSettingError) MarshalJSON() ([]byte, error) { +func (s SqlExternalSyncSettingError) MarshalJSON() ([]byte, error) { type NoMethod SqlExternalSyncSettingError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SqlInstancesRescheduleMaintenanceRequestBody: Reschedule options for @@ -3219,133 +2622,102 @@ func (s *SqlExternalSyncSettingError) MarshalJSON() ([]byte, error) { type SqlInstancesRescheduleMaintenanceRequestBody struct { // Reschedule: Required. The type of the reschedule the user wants. Reschedule *Reschedule `json:"reschedule,omitempty"` - // ForceSendFields is a list of field names (e.g. "Reschedule") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Reschedule") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Reschedule") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SqlInstancesRescheduleMaintenanceRequestBody) MarshalJSON() ([]byte, error) { +func (s SqlInstancesRescheduleMaintenanceRequestBody) MarshalJSON() ([]byte, error) { type NoMethod SqlInstancesRescheduleMaintenanceRequestBody - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SqlInstancesVerifyExternalSyncSettingsResponse: Instance verify -// external sync settings response. +// SqlInstancesVerifyExternalSyncSettingsResponse: Instance verify external +// sync settings response. type SqlInstancesVerifyExternalSyncSettingsResponse struct { // Errors: List of migration violations. Errors []*SqlExternalSyncSettingError `json:"errors,omitempty"` - // Kind: This is always sql#migrationSettingErrorList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Errors") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Errors") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Errors") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SqlInstancesVerifyExternalSyncSettingsResponse) MarshalJSON() ([]byte, error) { +func (s SqlInstancesVerifyExternalSyncSettingsResponse) MarshalJSON() ([]byte, error) { type NoMethod SqlInstancesVerifyExternalSyncSettingsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SqlScheduledMaintenance: Any scheduled maintenancce for this -// instance. +// SqlScheduledMaintenance: Any scheduled maintenancce for this instance. type SqlScheduledMaintenance struct { CanDefer bool `json:"canDefer,omitempty"` - // CanReschedule: If the scheduled maintenance can be rescheduled. CanReschedule bool `json:"canReschedule,omitempty"` - - // StartTime: The start time of any upcoming scheduled maintenance for - // this instance. + // StartTime: The start time of any upcoming scheduled maintenance for this + // instance. StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CanDefer") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CanDefer") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CanDefer") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SqlScheduledMaintenance) MarshalJSON() ([]byte, error) { +func (s SqlScheduledMaintenance) MarshalJSON() ([]byte, error) { type NoMethod SqlScheduledMaintenance - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SqlServerDatabaseDetails: Represents a Sql Server database on the -// Cloud SQL instance. +// SqlServerDatabaseDetails: Represents a Sql Server database on the Cloud SQL +// instance. type SqlServerDatabaseDetails struct { - // CompatibilityLevel: The version of SQL Server with which the database - // is to be made compatible + // CompatibilityLevel: The version of SQL Server with which the database is to + // be made compatible CompatibilityLevel int64 `json:"compatibilityLevel,omitempty"` - // RecoveryModel: The recovery model of a SQL Server database RecoveryModel string `json:"recoveryModel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompatibilityLevel") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "CompatibilityLevel") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CompatibilityLevel") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CompatibilityLevel") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SqlServerDatabaseDetails) MarshalJSON() ([]byte, error) { +func (s SqlServerDatabaseDetails) MarshalJSON() ([]byte, error) { type NoMethod SqlServerDatabaseDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SqlServerUserDetails: Represents a Sql Server user on the Cloud SQL @@ -3353,391 +2725,305 @@ func (s *SqlServerDatabaseDetails) MarshalJSON() ([]byte, error) { type SqlServerUserDetails struct { // Disabled: If the user has been disabled Disabled bool `json:"disabled,omitempty"` - // ServerRoles: The server roles for this user ServerRoles []string `json:"serverRoles,omitempty"` - // ForceSendFields is a list of field names (e.g. "Disabled") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Disabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Disabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SqlServerUserDetails) MarshalJSON() ([]byte, error) { +func (s SqlServerUserDetails) MarshalJSON() ([]byte, error) { type NoMethod SqlServerUserDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SslCert: SslCerts Resource type SslCert struct { // Cert: PEM representation. Cert string `json:"cert,omitempty"` - // CertSerialNumber: Serial number, as extracted from the certificate. CertSerialNumber string `json:"certSerialNumber,omitempty"` - // CommonName: User supplied name. Constrained to [a-zA-Z.-_ ]+. CommonName string `json:"commonName,omitempty"` - // CreateTime: The time when the certificate was created in // RFC 3339 format, for // example // 2012-11-15T16:19:00.094Z CreateTime string `json:"createTime,omitempty"` - // ExpirationTime: The time when the certificate expires in // RFC 3339 format, for // example // 2012-11-15T16:19:00.094Z. ExpirationTime string `json:"expirationTime,omitempty"` - // Instance: Name of the database instance. Instance string `json:"instance,omitempty"` - // Kind: This is always sql#sslCert. Kind string `json:"kind,omitempty"` - // SelfLink: The URI of this resource. SelfLink string `json:"selfLink,omitempty"` - // Sha1Fingerprint: Sha1 Fingerprint. Sha1Fingerprint string `json:"sha1Fingerprint,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Cert") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Cert") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cert") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Cert") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SslCert) MarshalJSON() ([]byte, error) { +func (s SslCert) MarshalJSON() ([]byte, error) { type NoMethod SslCert - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SslCertDetail: SslCertDetail. type SslCertDetail struct { // CertInfo: The public information about the cert. CertInfo *SslCert `json:"certInfo,omitempty"` - - // CertPrivateKey: The private key for the client cert, in pem format. - // Keep private in order + // CertPrivateKey: The private key for the client cert, in pem format. Keep + // private in order // to protect your security. CertPrivateKey string `json:"certPrivateKey,omitempty"` - // ForceSendFields is a list of field names (e.g. "CertInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CertInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CertInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SslCertDetail) MarshalJSON() ([]byte, error) { +func (s SslCertDetail) MarshalJSON() ([]byte, error) { type NoMethod SslCertDetail - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SslCertsCreateEphemeralRequest: SslCerts create ephemeral certificate // request. type SslCertsCreateEphemeralRequest struct { - // PublicKey: PEM encoded public key to include in the signed - // certificate. + // PublicKey: PEM encoded public key to include in the signed certificate. PublicKey string `json:"public_key,omitempty"` - // ForceSendFields is a list of field names (e.g. "PublicKey") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PublicKey") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PublicKey") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SslCertsCreateEphemeralRequest) MarshalJSON() ([]byte, error) { +func (s SslCertsCreateEphemeralRequest) MarshalJSON() ([]byte, error) { type NoMethod SslCertsCreateEphemeralRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SslCertsInsertRequest: SslCerts insert request. type SslCertsInsertRequest struct { - // CommonName: User supplied name. Must be a distinct name from the - // other certificates + // CommonName: User supplied name. Must be a distinct name from the other + // certificates // for this instance. CommonName string `json:"commonName,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommonName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommonName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CommonName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SslCertsInsertRequest) MarshalJSON() ([]byte, error) { +func (s SslCertsInsertRequest) MarshalJSON() ([]byte, error) { type NoMethod SslCertsInsertRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SslCertsInsertResponse: SslCert insert response. type SslCertsInsertResponse struct { // ClientCert: The new client certificate and private key. For First // Generation - // instances, the new certificate does not take effect until the - // instance is + // instances, the new certificate does not take effect until the instance + // is // restarted. ClientCert *SslCertDetail `json:"clientCert,omitempty"` - // Kind: This is always sql#sslCertsInsert. Kind string `json:"kind,omitempty"` - // Operation: The operation to track the ssl certs insert request. Operation *Operation `json:"operation,omitempty"` - - // ServerCaCert: The server Certificate Authority's certificate. If - // this is missing you can + // ServerCaCert: The server Certificate Authority's certificate. If this is + // missing you can // force a new one to be generated by calling resetSslConfig method // on // instances resource. ServerCaCert *SslCert `json:"serverCaCert,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ClientCert") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ClientCert") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ClientCert") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SslCertsInsertResponse) MarshalJSON() ([]byte, error) { +func (s SslCertsInsertResponse) MarshalJSON() ([]byte, error) { type NoMethod SslCertsInsertResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SslCertsListResponse: SslCerts list response. type SslCertsListResponse struct { // Items: List of client certificates for the instance. Items []*SslCert `json:"items,omitempty"` - // Kind: This is always sql#sslCertsList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SslCertsListResponse) MarshalJSON() ([]byte, error) { +func (s SslCertsListResponse) MarshalJSON() ([]byte, error) { type NoMethod SslCertsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Tier: A Google Cloud SQL service tier resource. type Tier struct { // DiskQuota: The maximum disk size of this tier in bytes. DiskQuota int64 `json:"DiskQuota,omitempty,string"` - // RAM: The maximum RAM usage of this tier in bytes. RAM int64 `json:"RAM,omitempty,string"` - // Kind: This is always sql#tier. Kind string `json:"kind,omitempty"` - // Region: The applicable regions for this tier. Region []string `json:"region,omitempty"` - - // Tier: An identifier for the machine type, for example, - // db-n1-standard-1. For + // Tier: An identifier for the machine type, for example, db-n1-standard-1. + // For // related information, see Pricing. Tier string `json:"tier,omitempty"` - // ForceSendFields is a list of field names (e.g. "DiskQuota") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DiskQuota") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DiskQuota") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Tier) MarshalJSON() ([]byte, error) { +func (s Tier) MarshalJSON() ([]byte, error) { type NoMethod Tier - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TiersListResponse: Tiers list response. type TiersListResponse struct { // Items: List of tiers. Items []*Tier `json:"items,omitempty"` - // Kind: This is always sql#tiersList. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TiersListResponse) MarshalJSON() ([]byte, error) { +func (s TiersListResponse) MarshalJSON() ([]byte, error) { type NoMethod TiersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TruncateLogContext: Database Instance truncate log context. type TruncateLogContext struct { // Kind: This is always sql#truncateLogContext. Kind string `json:"kind,omitempty"` - // LogType: The type of log to truncate. Valid values // are // MYSQL_GENERAL_TABLE and MYSQL_SLOW_TABLE. LogType string `json:"logType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Kind") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Kind") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Kind") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Kind") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TruncateLogContext) MarshalJSON() ([]byte, error) { +func (s TruncateLogContext) MarshalJSON() ([]byte, error) { type NoMethod TruncateLogContext - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // User: A Cloud SQL user resource. type User struct { - // Etag: This field is deprecated and will be removed from a future - // version of the + // Etag: This field is deprecated and will be removed from a future version of + // the // API. Etag string `json:"etag,omitempty"` - // Host: The host name from which the user can connect. For // insert // operations, host defaults to an empty string. For @@ -3746,101 +3032,78 @@ type User struct { // name // cannot be updated after insertion. Host string `json:"host,omitempty"` - - // Instance: The name of the Cloud SQL instance. This does not include - // the project ID. - // Can be omitted for update since it is already specified - // on the + // Instance: The name of the Cloud SQL instance. This does not include the + // project ID. + // Can be omitted for update since it is already specified on + // the // URL. Instance string `json:"instance,omitempty"` - // Kind: This is always sql#user. Kind string `json:"kind,omitempty"` - // Name: The name of the user in the Cloud SQL instance. Can be omitted // for // update since it is already specified in the URL. Name string `json:"name,omitempty"` - // Password: The password for the user. Password string `json:"password,omitempty"` - - // Project: The project ID of the project containing the Cloud SQL - // database. The Google + // Project: The project ID of the project containing the Cloud SQL database. + // The Google // apps domain is prefixed if applicable. Can be omitted // for // update since it is already specified on the URL. - Project string `json:"project,omitempty"` - + Project string `json:"project,omitempty"` SqlserverUserDetails *SqlServerUserDetails `json:"sqlserverUserDetails,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *User) MarshalJSON() ([]byte, error) { +func (s User) MarshalJSON() ([]byte, error) { type NoMethod User - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UsersListResponse: User list response. type UsersListResponse struct { // Items: List of user resources in the instance. Items []*User `json:"items,omitempty"` - // Kind: This is always sql#usersList. Kind string `json:"kind,omitempty"` - - // NextPageToken: An identifier that uniquely identifies the operation. - // You can use this + // NextPageToken: An identifier that uniquely identifies the operation. You can + // use this // identifier to retrieve the Operations resource that has information // about // the operation. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UsersListResponse) MarshalJSON() ([]byte, error) { +func (s UsersListResponse) MarshalJSON() ([]byte, error) { type NoMethod UsersListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "sql.backupRuns.delete": - type BackupRunsDeleteCall struct { s *Service project string @@ -3852,6 +3115,13 @@ type BackupRunsDeleteCall struct { } // Delete: Deletes the backup taken by a backup run. +// +// - id: The ID of the Backup Run to delete. To find a Backup Run ID, use the +// list +// method. +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *BackupRunsService) Delete(project string, instance string, id int64) *BackupRunsDeleteCall { c := &BackupRunsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -3861,23 +3131,21 @@ func (r *BackupRunsService) Delete(project string, instance string, id int64) *B } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BackupRunsDeleteCall) Fields(s ...googleapi.Field) *BackupRunsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BackupRunsDeleteCall) Context(ctx context.Context) *BackupRunsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BackupRunsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3886,12 +3154,7 @@ func (c *BackupRunsDeleteCall) Header() http.Header { } func (c *BackupRunsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3907,16 +3170,14 @@ func (c *BackupRunsDeleteCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BackupRunsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3924,17 +3185,17 @@ func (c *BackupRunsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -3947,50 +3208,7 @@ func (c *BackupRunsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, err return nil, err } return ret, nil - // { - // "description": "Deletes the backup taken by a backup run.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}", - // "httpMethod": "DELETE", - // "id": "sql.backupRuns.delete", - // "parameterOrder": [ - // "project", - // "instance", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of the Backup Run to delete. To find a Backup Run ID, use the \u003ca\nhref=\"/sql/docs/db_path/admin-api/rest/v1beta4/backupRuns/list\"\u003elist\u003c/a\u003e\nmethod.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.backupRuns.get": +} type BackupRunsGetCall struct { s *Service @@ -4004,6 +3222,10 @@ type BackupRunsGetCall struct { } // Get: Retrieves a resource containing information about a backup run. +// +// - id: The ID of this Backup Run. +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *BackupRunsService) Get(project string, instance string, id int64) *BackupRunsGetCall { c := &BackupRunsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4013,33 +3235,29 @@ func (r *BackupRunsService) Get(project string, instance string, id int64) *Back } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BackupRunsGetCall) Fields(s ...googleapi.Field) *BackupRunsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BackupRunsGetCall) IfNoneMatch(entityTag string) *BackupRunsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BackupRunsGetCall) Context(ctx context.Context) *BackupRunsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BackupRunsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4048,12 +3266,7 @@ func (c *BackupRunsGetCall) Header() http.Header { } func (c *BackupRunsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4072,16 +3285,14 @@ func (c *BackupRunsGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.get" call. -// Exactly one of *BackupRun or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *BackupRun.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BackupRun.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BackupRunsGetCall) Do(opts ...googleapi.CallOption) (*BackupRun, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4089,17 +3300,17 @@ func (c *BackupRunsGetCall) Do(opts ...googleapi.CallOption) (*BackupRun, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BackupRun{ ServerResponse: googleapi.ServerResponse{ @@ -4112,50 +3323,7 @@ func (c *BackupRunsGetCall) Do(opts ...googleapi.CallOption) (*BackupRun, error) return nil, err } return ret, nil - // { - // "description": "Retrieves a resource containing information about a backup run.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}", - // "httpMethod": "GET", - // "id": "sql.backupRuns.get", - // "parameterOrder": [ - // "project", - // "instance", - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The ID of this Backup Run.", - // "format": "int64", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}", - // "response": { - // "$ref": "BackupRun" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.backupRuns.insert": +} type BackupRunsInsertCall struct { s *Service @@ -4167,9 +3335,12 @@ type BackupRunsInsertCall struct { header_ http.Header } -// Insert: Creates a new backup run on demand. This method is applicable -// only to +// Insert: Creates a new backup run on demand. This method is applicable only +// to // Second Generation instances. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *BackupRunsService) Insert(project string, instance string, backuprun *BackupRun) *BackupRunsInsertCall { c := &BackupRunsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4179,23 +3350,21 @@ func (r *BackupRunsService) Insert(project string, instance string, backuprun *B } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BackupRunsInsertCall) Fields(s ...googleapi.Field) *BackupRunsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BackupRunsInsertCall) Context(ctx context.Context) *BackupRunsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BackupRunsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4204,18 +3373,12 @@ func (c *BackupRunsInsertCall) Header() http.Header { } func (c *BackupRunsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.backuprun) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/backupRuns") @@ -4229,16 +3392,14 @@ func (c *BackupRunsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.insert" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BackupRunsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4246,17 +3407,17 @@ func (c *BackupRunsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4269,45 +3430,7 @@ func (c *BackupRunsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, err return nil, err } return ret, nil - // { - // "description": "Creates a new backup run on demand. This method is applicable only to\nSecond Generation instances.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/backupRuns", - // "httpMethod": "POST", - // "id": "sql.backupRuns.insert", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/backupRuns", - // "request": { - // "$ref": "BackupRun" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.backupRuns.list": +} type BackupRunsListCall struct { s *Service @@ -4322,6 +3445,9 @@ type BackupRunsListCall struct { // List: Lists all backup runs associated with a given instance and // configuration in // the reverse chronological order of the backup initiation time. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *BackupRunsService) List(project string, instance string) *BackupRunsListCall { c := &BackupRunsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4329,16 +3455,15 @@ func (r *BackupRunsService) List(project string, instance string) *BackupRunsLis return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of backup runs per response. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// backup runs per response. func (c *BackupRunsListCall) MaxResults(maxResults int64) *BackupRunsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set -// of +// PageToken sets the optional parameter "pageToken": A previously-returned +// page token representing part of the larger set of // results to view. func (c *BackupRunsListCall) PageToken(pageToken string) *BackupRunsListCall { c.urlParams_.Set("pageToken", pageToken) @@ -4346,33 +3471,29 @@ func (c *BackupRunsListCall) PageToken(pageToken string) *BackupRunsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BackupRunsListCall) Fields(s ...googleapi.Field) *BackupRunsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BackupRunsListCall) IfNoneMatch(entityTag string) *BackupRunsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BackupRunsListCall) Context(ctx context.Context) *BackupRunsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BackupRunsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4381,12 +3502,7 @@ func (c *BackupRunsListCall) Header() http.Header { } func (c *BackupRunsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4404,16 +3520,15 @@ func (c *BackupRunsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.list" call. -// Exactly one of *BackupRunsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BackupRunsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BackupRunsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BackupRunsListCall) Do(opts ...googleapi.CallOption) (*BackupRunsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4421,17 +3536,17 @@ func (c *BackupRunsListCall) Do(opts ...googleapi.CallOption) (*BackupRunsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BackupRunsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -4444,50 +3559,6 @@ func (c *BackupRunsListCall) Do(opts ...googleapi.CallOption) (*BackupRunsListRe return nil, err } return ret, nil - // { - // "description": "Lists all backup runs associated with a given instance and configuration in\nthe reverse chronological order of the backup initiation time.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/backupRuns", - // "httpMethod": "GET", - // "id": "sql.backupRuns.list", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "maxResults": { - // "description": "Maximum number of backup runs per response.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of\nresults to view.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/backupRuns", - // "response": { - // "$ref": "BackupRunsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - } // Pages invokes f for each page of results. @@ -4495,7 +3566,7 @@ func (c *BackupRunsListCall) Do(opts ...googleapi.CallOption) (*BackupRunsListRe // The provided context supersedes any context provided to the Context method. func (c *BackupRunsListCall) Pages(ctx context.Context, f func(*BackupRunsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4511,8 +3582,6 @@ func (c *BackupRunsListCall) Pages(ctx context.Context, f func(*BackupRunsListRe } } -// method id "sql.databases.delete": - type DatabasesDeleteCall struct { s *Service project string @@ -4524,6 +3593,10 @@ type DatabasesDeleteCall struct { } // Delete: Deletes a database from a Cloud SQL instance. +// +// - database: Name of the database to be deleted in the instance. +// - instance: Database instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *DatabasesService) Delete(project string, instance string, database string) *DatabasesDeleteCall { c := &DatabasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4533,23 +3606,21 @@ func (r *DatabasesService) Delete(project string, instance string, database stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatabasesDeleteCall) Fields(s ...googleapi.Field) *DatabasesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatabasesDeleteCall) Context(ctx context.Context) *DatabasesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatabasesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4558,12 +3629,7 @@ func (c *DatabasesDeleteCall) Header() http.Header { } func (c *DatabasesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4579,16 +3645,14 @@ func (c *DatabasesDeleteCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DatabasesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4596,17 +3660,17 @@ func (c *DatabasesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4619,49 +3683,7 @@ func (c *DatabasesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, erro return nil, err } return ret, nil - // { - // "description": "Deletes a database from a Cloud SQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}", - // "httpMethod": "DELETE", - // "id": "sql.databases.delete", - // "parameterOrder": [ - // "project", - // "instance", - // "database" - // ], - // "parameters": { - // "database": { - // "description": "Name of the database to be deleted in the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instance": { - // "description": "Database instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.databases.get": +} type DatabasesGetCall struct { s *Service @@ -4674,9 +3696,13 @@ type DatabasesGetCall struct { header_ http.Header } -// Get: Retrieves a resource containing information about a database -// inside a Cloud +// Get: Retrieves a resource containing information about a database inside a +// Cloud // SQL instance. +// +// - database: Name of the database in the instance. +// - instance: Database instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *DatabasesService) Get(project string, instance string, database string) *DatabasesGetCall { c := &DatabasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4686,33 +3712,29 @@ func (r *DatabasesService) Get(project string, instance string, database string) } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatabasesGetCall) Fields(s ...googleapi.Field) *DatabasesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DatabasesGetCall) IfNoneMatch(entityTag string) *DatabasesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatabasesGetCall) Context(ctx context.Context) *DatabasesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatabasesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4721,12 +3743,7 @@ func (c *DatabasesGetCall) Header() http.Header { } func (c *DatabasesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4745,16 +3762,14 @@ func (c *DatabasesGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.get" call. -// Exactly one of *Database or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Database.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Database.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DatabasesGetCall) Do(opts ...googleapi.CallOption) (*Database, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4762,17 +3777,17 @@ func (c *DatabasesGetCall) Do(opts ...googleapi.CallOption) (*Database, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Database{ ServerResponse: googleapi.ServerResponse{ @@ -4785,49 +3800,7 @@ func (c *DatabasesGetCall) Do(opts ...googleapi.CallOption) (*Database, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a resource containing information about a database inside a Cloud\nSQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}", - // "httpMethod": "GET", - // "id": "sql.databases.get", - // "parameterOrder": [ - // "project", - // "instance", - // "database" - // ], - // "parameters": { - // "database": { - // "description": "Name of the database in the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instance": { - // "description": "Database instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}", - // "response": { - // "$ref": "Database" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.databases.insert": +} type DatabasesInsertCall struct { s *Service @@ -4839,9 +3812,12 @@ type DatabasesInsertCall struct { header_ http.Header } -// Insert: Inserts a resource containing information about a database -// inside a Cloud +// Insert: Inserts a resource containing information about a database inside a +// Cloud // SQL instance. +// +// - instance: Database instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *DatabasesService) Insert(project string, instance string, database *Database) *DatabasesInsertCall { c := &DatabasesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -4851,23 +3827,21 @@ func (r *DatabasesService) Insert(project string, instance string, database *Dat } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatabasesInsertCall) Fields(s ...googleapi.Field) *DatabasesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatabasesInsertCall) Context(ctx context.Context) *DatabasesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatabasesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4876,18 +3850,12 @@ func (c *DatabasesInsertCall) Header() http.Header { } func (c *DatabasesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.database) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/databases") @@ -4901,16 +3869,14 @@ func (c *DatabasesInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.insert" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DatabasesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4918,17 +3884,17 @@ func (c *DatabasesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -4941,45 +3907,7 @@ func (c *DatabasesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, erro return nil, err } return ret, nil - // { - // "description": "Inserts a resource containing information about a database inside a Cloud\nSQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/databases", - // "httpMethod": "POST", - // "id": "sql.databases.insert", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Database instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/databases", - // "request": { - // "$ref": "Database" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.databases.list": +} type DatabasesListCall struct { s *Service @@ -4992,6 +3920,9 @@ type DatabasesListCall struct { } // List: Lists databases in the specified Cloud SQL instance. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *DatabasesService) List(project string, instance string) *DatabasesListCall { c := &DatabasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -5000,33 +3931,29 @@ func (r *DatabasesService) List(project string, instance string) *DatabasesListC } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatabasesListCall) Fields(s ...googleapi.Field) *DatabasesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DatabasesListCall) IfNoneMatch(entityTag string) *DatabasesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatabasesListCall) Context(ctx context.Context) *DatabasesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatabasesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5035,12 +3962,7 @@ func (c *DatabasesListCall) Header() http.Header { } func (c *DatabasesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5058,16 +3980,15 @@ func (c *DatabasesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.list" call. -// Exactly one of *DatabasesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DatabasesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DatabasesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DatabasesListCall) Do(opts ...googleapi.CallOption) (*DatabasesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5075,17 +3996,17 @@ func (c *DatabasesListCall) Do(opts ...googleapi.CallOption) (*DatabasesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DatabasesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5098,42 +4019,7 @@ func (c *DatabasesListCall) Do(opts ...googleapi.CallOption) (*DatabasesListResp return nil, err } return ret, nil - // { - // "description": "Lists databases in the specified Cloud SQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/databases", - // "httpMethod": "GET", - // "id": "sql.databases.list", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/databases", - // "response": { - // "$ref": "DatabasesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.databases.patch": +} type DatabasesPatchCall struct { s *Service @@ -5146,9 +4032,13 @@ type DatabasesPatchCall struct { header_ http.Header } -// Patch: Partially updates a resource containing information about a -// database inside +// Patch: Partially updates a resource containing information about a database +// inside // a Cloud SQL instance. This method supports patch semantics. +// +// - database: Name of the database to be updated in the instance. +// - instance: Database instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *DatabasesService) Patch(project string, instance string, database string, database2 *Database) *DatabasesPatchCall { c := &DatabasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -5159,23 +4049,21 @@ func (r *DatabasesService) Patch(project string, instance string, database strin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatabasesPatchCall) Fields(s ...googleapi.Field) *DatabasesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatabasesPatchCall) Context(ctx context.Context) *DatabasesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatabasesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5184,18 +4072,12 @@ func (c *DatabasesPatchCall) Header() http.Header { } func (c *DatabasesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.database2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}") @@ -5210,16 +4092,14 @@ func (c *DatabasesPatchCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DatabasesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5227,17 +4107,17 @@ func (c *DatabasesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5250,52 +4130,7 @@ func (c *DatabasesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error return nil, err } return ret, nil - // { - // "description": "Partially updates a resource containing information about a database inside\na Cloud SQL instance. This method supports patch semantics.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}", - // "httpMethod": "PATCH", - // "id": "sql.databases.patch", - // "parameterOrder": [ - // "project", - // "instance", - // "database" - // ], - // "parameters": { - // "database": { - // "description": "Name of the database to be updated in the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instance": { - // "description": "Database instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}", - // "request": { - // "$ref": "Database" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.databases.update": +} type DatabasesUpdateCall struct { s *Service @@ -5308,9 +4143,13 @@ type DatabasesUpdateCall struct { header_ http.Header } -// Update: Updates a resource containing information about a database -// inside a Cloud +// Update: Updates a resource containing information about a database inside a +// Cloud // SQL instance. +// +// - database: Name of the database to be updated in the instance. +// - instance: Database instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *DatabasesService) Update(project string, instance string, database string, database2 *Database) *DatabasesUpdateCall { c := &DatabasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -5321,23 +4160,21 @@ func (r *DatabasesService) Update(project string, instance string, database stri } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DatabasesUpdateCall) Fields(s ...googleapi.Field) *DatabasesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DatabasesUpdateCall) Context(ctx context.Context) *DatabasesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DatabasesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5346,18 +4183,12 @@ func (c *DatabasesUpdateCall) Header() http.Header { } func (c *DatabasesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.database2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}") @@ -5372,16 +4203,14 @@ func (c *DatabasesUpdateCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.update" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *DatabasesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5389,17 +4218,17 @@ func (c *DatabasesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5412,52 +4241,7 @@ func (c *DatabasesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, erro return nil, err } return ret, nil - // { - // "description": "Updates a resource containing information about a database inside a Cloud\nSQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}", - // "httpMethod": "PUT", - // "id": "sql.databases.update", - // "parameterOrder": [ - // "project", - // "instance", - // "database" - // ], - // "parameters": { - // "database": { - // "description": "Name of the database to be updated in the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "instance": { - // "description": "Database instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}", - // "request": { - // "$ref": "Database" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.flags.list": +} type FlagsListCall struct { s *Service @@ -5473,9 +4257,8 @@ func (r *FlagsService) List() *FlagsListCall { return c } -// DatabaseVersion sets the optional parameter "databaseVersion": -// Database type and version you want to retrieve flags for. By default, -// this +// DatabaseVersion sets the optional parameter "databaseVersion": Database type +// and version you want to retrieve flags for. By default, this // method returns flags for all database types and versions. func (c *FlagsListCall) DatabaseVersion(databaseVersion string) *FlagsListCall { c.urlParams_.Set("databaseVersion", databaseVersion) @@ -5483,33 +4266,29 @@ func (c *FlagsListCall) DatabaseVersion(databaseVersion string) *FlagsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FlagsListCall) Fields(s ...googleapi.Field) *FlagsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FlagsListCall) IfNoneMatch(entityTag string) *FlagsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FlagsListCall) Context(ctx context.Context) *FlagsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FlagsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5518,12 +4297,7 @@ func (c *FlagsListCall) Header() http.Header { } func (c *FlagsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5537,16 +4311,15 @@ func (c *FlagsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.flags.list" call. -// Exactly one of *FlagsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *FlagsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FlagsListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *FlagsListCall) Do(opts ...googleapi.CallOption) (*FlagsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5554,17 +4327,17 @@ func (c *FlagsListCall) Do(opts ...googleapi.CallOption) (*FlagsListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FlagsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -5577,32 +4350,7 @@ func (c *FlagsListCall) Do(opts ...googleapi.CallOption) (*FlagsListResponse, er return nil, err } return ret, nil - // { - // "description": "List all available database flags for Cloud SQL instances.", - // "flatPath": "sql/v1beta4/flags", - // "httpMethod": "GET", - // "id": "sql.flags.list", - // "parameterOrder": [], - // "parameters": { - // "databaseVersion": { - // "description": "Database type and version you want to retrieve flags for. By default, this\nmethod returns flags for all database types and versions.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/flags", - // "response": { - // "$ref": "FlagsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.addServerCa": +} type InstancesAddServerCaCall struct { s *Service @@ -5613,8 +4361,8 @@ type InstancesAddServerCaCall struct { header_ http.Header } -// AddServerCa: Add a new trusted Certificate Authority (CA) version for -// the specified +// AddServerCa: Add a new trusted Certificate Authority (CA) version for the +// specified // instance. Required to prepare for a certificate rotation. If a CA // version // was previously added but never used in a certificate rotation, @@ -5622,6 +4370,9 @@ type InstancesAddServerCaCall struct { // operation replaces that version. There cannot be more than one CA // version // waiting to be rotated in. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *InstancesService) AddServerCa(project string, instance string) *InstancesAddServerCaCall { c := &InstancesAddServerCaCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -5630,23 +4381,21 @@ func (r *InstancesService) AddServerCa(project string, instance string) *Instanc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesAddServerCaCall) Fields(s ...googleapi.Field) *InstancesAddServerCaCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesAddServerCaCall) Context(ctx context.Context) *InstancesAddServerCaCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesAddServerCaCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5655,12 +4404,7 @@ func (c *InstancesAddServerCaCall) Header() http.Header { } func (c *InstancesAddServerCaCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5675,16 +4419,14 @@ func (c *InstancesAddServerCaCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.addServerCa" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesAddServerCaCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5692,17 +4434,17 @@ func (c *InstancesAddServerCaCall) Do(opts ...googleapi.CallOption) (*Operation, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5715,42 +4457,7 @@ func (c *InstancesAddServerCaCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Add a new trusted Certificate Authority (CA) version for the specified\ninstance. Required to prepare for a certificate rotation. If a CA version\nwas previously added but never used in a certificate rotation, this\noperation replaces that version. There cannot be more than one CA version\nwaiting to be rotated in.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/addServerCa", - // "httpMethod": "POST", - // "id": "sql.instances.addServerCa", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/addServerCa", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.clone": +} type InstancesCloneCall struct { s *Service @@ -5762,9 +4469,15 @@ type InstancesCloneCall struct { header_ http.Header } -// Clone: Creates a Cloud SQL instance as a clone of the source -// instance. Using this +// Clone: Creates a Cloud SQL instance as a clone of the source instance. Using +// this // operation might cause your instance to restart. +// +// - instance: The ID of the Cloud SQL instance to be cloned (source). This +// does not +// +// include the project ID. +// - project: Project ID of the source as well as the clone Cloud SQL instance. func (r *InstancesService) Clone(project string, instance string, instancesclonerequest *InstancesCloneRequest) *InstancesCloneCall { c := &InstancesCloneCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -5774,23 +4487,21 @@ func (r *InstancesService) Clone(project string, instance string, instancesclone } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesCloneCall) Fields(s ...googleapi.Field) *InstancesCloneCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesCloneCall) Context(ctx context.Context) *InstancesCloneCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesCloneCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5799,18 +4510,12 @@ func (c *InstancesCloneCall) Header() http.Header { } func (c *InstancesCloneCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesclonerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/clone") @@ -5824,16 +4529,14 @@ func (c *InstancesCloneCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.clone" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesCloneCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5841,17 +4544,17 @@ func (c *InstancesCloneCall) Do(opts ...googleapi.CallOption) (*Operation, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -5864,45 +4567,7 @@ func (c *InstancesCloneCall) Do(opts ...googleapi.CallOption) (*Operation, error return nil, err } return ret, nil - // { - // "description": "Creates a Cloud SQL instance as a clone of the source instance. Using this\noperation might cause your instance to restart.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/clone", - // "httpMethod": "POST", - // "id": "sql.instances.clone", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "The ID of the Cloud SQL instance to be cloned (source). This does not\ninclude the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the source as well as the clone Cloud SQL instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/clone", - // "request": { - // "$ref": "InstancesCloneRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.delete": +} type InstancesDeleteCall struct { s *Service @@ -5914,6 +4579,10 @@ type InstancesDeleteCall struct { } // Delete: Deletes a Cloud SQL instance. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance to be +// deleted. func (r *InstancesService) Delete(project string, instance string) *InstancesDeleteCall { c := &InstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -5922,23 +4591,21 @@ func (r *InstancesService) Delete(project string, instance string) *InstancesDel } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesDeleteCall) Fields(s ...googleapi.Field) *InstancesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesDeleteCall) Context(ctx context.Context) *InstancesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5947,12 +4614,7 @@ func (c *InstancesDeleteCall) Header() http.Header { } func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5967,16 +4629,14 @@ func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5984,17 +4644,17 @@ func (c *InstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -6007,42 +4667,7 @@ func (c *InstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, erro return nil, err } return ret, nil - // { - // "description": "Deletes a Cloud SQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}", - // "httpMethod": "DELETE", - // "id": "sql.instances.delete", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance to be deleted.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.demoteMaster": +} type InstancesDemoteMasterCall struct { s *Service @@ -6057,6 +4682,9 @@ type InstancesDemoteMasterCall struct { // DemoteMaster: Demotes the stand-alone instance to be a Cloud SQL read // replica for an // external database server. +// +// - instance: Cloud SQL instance name. +// - project: ID of the project that contains the instance. func (r *InstancesService) DemoteMaster(project string, instance string, instancesdemotemasterrequest *InstancesDemoteMasterRequest) *InstancesDemoteMasterCall { c := &InstancesDemoteMasterCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -6066,23 +4694,21 @@ func (r *InstancesService) DemoteMaster(project string, instance string, instanc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesDemoteMasterCall) Fields(s ...googleapi.Field) *InstancesDemoteMasterCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesDemoteMasterCall) Context(ctx context.Context) *InstancesDemoteMasterCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesDemoteMasterCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6091,18 +4717,12 @@ func (c *InstancesDemoteMasterCall) Header() http.Header { } func (c *InstancesDemoteMasterCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesdemotemasterrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster") @@ -6116,16 +4736,14 @@ func (c *InstancesDemoteMasterCall) doRequest(alt string) (*http.Response, error "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.demoteMaster" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesDemoteMasterCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6133,17 +4751,17 @@ func (c *InstancesDemoteMasterCall) Do(opts ...googleapi.CallOption) (*Operation if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -6156,45 +4774,7 @@ func (c *InstancesDemoteMasterCall) Do(opts ...googleapi.CallOption) (*Operation return nil, err } return ret, nil - // { - // "description": "Demotes the stand-alone instance to be a Cloud SQL read replica for an\nexternal database server.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster", - // "httpMethod": "POST", - // "id": "sql.instances.demoteMaster", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster", - // "request": { - // "$ref": "InstancesDemoteMasterRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.export": +} type InstancesExportCall struct { s *Service @@ -6206,9 +4786,13 @@ type InstancesExportCall struct { header_ http.Header } -// Export: Exports data from a Cloud SQL instance to a Cloud Storage -// bucket as a SQL +// Export: Exports data from a Cloud SQL instance to a Cloud Storage bucket as +// a SQL // dump or CSV file. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance to be +// exported. func (r *InstancesService) Export(project string, instance string, instancesexportrequest *InstancesExportRequest) *InstancesExportCall { c := &InstancesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -6218,23 +4802,21 @@ func (r *InstancesService) Export(project string, instance string, instancesexpo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesExportCall) Fields(s ...googleapi.Field) *InstancesExportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesExportCall) Context(ctx context.Context) *InstancesExportCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesExportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6243,18 +4825,12 @@ func (c *InstancesExportCall) Header() http.Header { } func (c *InstancesExportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesexportrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/export") @@ -6268,16 +4844,14 @@ func (c *InstancesExportCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.export" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6285,17 +4859,17 @@ func (c *InstancesExportCall) Do(opts ...googleapi.CallOption) (*Operation, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -6308,44 +4882,7 @@ func (c *InstancesExportCall) Do(opts ...googleapi.CallOption) (*Operation, erro return nil, err } return ret, nil - // { - // "description": "Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL\ndump or CSV file.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/export", - // "httpMethod": "POST", - // "id": "sql.instances.export", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance to be exported.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/export", - // "request": { - // "$ref": "InstancesExportRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "sql.instances.failover": +} type InstancesFailoverCall struct { s *Service @@ -6357,9 +4894,12 @@ type InstancesFailoverCall struct { header_ http.Header } -// Failover: Failover the instance to its failover replica instance. -// Using this +// Failover: Failover the instance to its failover replica instance. Using +// this // operation might cause your instance to restart. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: ID of the project that contains the read replica. func (r *InstancesService) Failover(project string, instance string, instancesfailoverrequest *InstancesFailoverRequest) *InstancesFailoverCall { c := &InstancesFailoverCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -6369,23 +4909,21 @@ func (r *InstancesService) Failover(project string, instance string, instancesfa } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesFailoverCall) Fields(s ...googleapi.Field) *InstancesFailoverCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesFailoverCall) Context(ctx context.Context) *InstancesFailoverCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesFailoverCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6394,18 +4932,12 @@ func (c *InstancesFailoverCall) Header() http.Header { } func (c *InstancesFailoverCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesfailoverrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/failover") @@ -6419,16 +4951,14 @@ func (c *InstancesFailoverCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.failover" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesFailoverCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6436,17 +4966,17 @@ func (c *InstancesFailoverCall) Do(opts ...googleapi.CallOption) (*Operation, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -6459,45 +4989,7 @@ func (c *InstancesFailoverCall) Do(opts ...googleapi.CallOption) (*Operation, er return nil, err } return ret, nil - // { - // "description": "Failover the instance to its failover replica instance. Using this\noperation might cause your instance to restart.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/failover", - // "httpMethod": "POST", - // "id": "sql.instances.failover", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "ID of the project that contains the read replica.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/failover", - // "request": { - // "$ref": "InstancesFailoverRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.get": +} type InstancesGetCall struct { s *Service @@ -6509,8 +5001,10 @@ type InstancesGetCall struct { header_ http.Header } -// Get: Retrieves a resource containing information about a Cloud SQL -// instance. +// Get: Retrieves a resource containing information about a Cloud SQL instance. +// +// - instance: Database instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *InstancesService) Get(project string, instance string) *InstancesGetCall { c := &InstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -6519,33 +5013,29 @@ func (r *InstancesService) Get(project string, instance string) *InstancesGetCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesGetCall) Fields(s ...googleapi.Field) *InstancesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InstancesGetCall) IfNoneMatch(entityTag string) *InstancesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesGetCall) Context(ctx context.Context) *InstancesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6554,12 +5044,7 @@ func (c *InstancesGetCall) Header() http.Header { } func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6577,16 +5062,15 @@ func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.get" call. -// Exactly one of *DatabaseInstance or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DatabaseInstance.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *DatabaseInstance.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *InstancesGetCall) Do(opts ...googleapi.CallOption) (*DatabaseInstance, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6594,17 +5078,17 @@ func (c *InstancesGetCall) Do(opts ...googleapi.CallOption) (*DatabaseInstance, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &DatabaseInstance{ ServerResponse: googleapi.ServerResponse{ @@ -6617,42 +5101,7 @@ func (c *InstancesGetCall) Do(opts ...googleapi.CallOption) (*DatabaseInstance, return nil, err } return ret, nil - // { - // "description": "Retrieves a resource containing information about a Cloud SQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}", - // "httpMethod": "GET", - // "id": "sql.instances.get", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Database instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}", - // "response": { - // "$ref": "DatabaseInstance" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.import": +} type InstancesImportCall struct { s *Service @@ -6664,9 +5113,12 @@ type InstancesImportCall struct { header_ http.Header } -// Import: Imports data into a Cloud SQL instance from a SQL dump or -// CSV file in +// Import: Imports data into a Cloud SQL instance from a SQL dump or CSV file +// in // Cloud Storage. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *InstancesService) Import(project string, instance string, instancesimportrequest *InstancesImportRequest) *InstancesImportCall { c := &InstancesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -6676,23 +5128,21 @@ func (r *InstancesService) Import(project string, instance string, instancesimpo } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesImportCall) Fields(s ...googleapi.Field) *InstancesImportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesImportCall) Context(ctx context.Context) *InstancesImportCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesImportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6701,18 +5151,12 @@ func (c *InstancesImportCall) Header() http.Header { } func (c *InstancesImportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesimportrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/import") @@ -6726,16 +5170,14 @@ func (c *InstancesImportCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.import" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6743,17 +5185,17 @@ func (c *InstancesImportCall) Do(opts ...googleapi.CallOption) (*Operation, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -6766,44 +5208,7 @@ func (c *InstancesImportCall) Do(opts ...googleapi.CallOption) (*Operation, erro return nil, err } return ret, nil - // { - // "description": "Imports data into a Cloud SQL instance from a SQL dump or CSV file in\nCloud Storage.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/import", - // "httpMethod": "POST", - // "id": "sql.instances.import", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/import", - // "request": { - // "$ref": "InstancesImportRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "sql.instances.insert": +} type InstancesInsertCall struct { s *Service @@ -6815,6 +5220,11 @@ type InstancesInsertCall struct { } // Insert: Creates a new Cloud SQL instance. +// +// - project: Project ID of the project to which the newly created Cloud SQL +// instances +// +// should belong. func (r *InstancesService) Insert(project string, databaseinstance *DatabaseInstance) *InstancesInsertCall { c := &InstancesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -6823,23 +5233,21 @@ func (r *InstancesService) Insert(project string, databaseinstance *DatabaseInst } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesInsertCall) Fields(s ...googleapi.Field) *InstancesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesInsertCall) Context(ctx context.Context) *InstancesInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6848,18 +5256,12 @@ func (c *InstancesInsertCall) Header() http.Header { } func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.databaseinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances") @@ -6872,16 +5274,14 @@ func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.insert" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6889,17 +5289,17 @@ func (c *InstancesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -6912,38 +5312,7 @@ func (c *InstancesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, erro return nil, err } return ret, nil - // { - // "description": "Creates a new Cloud SQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances", - // "httpMethod": "POST", - // "id": "sql.instances.insert", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "project": { - // "description": "Project ID of the project to which the newly created Cloud SQL instances\nshould belong.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances", - // "request": { - // "$ref": "DatabaseInstance" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.list": +} type InstancesListCall struct { s *Service @@ -6955,6 +5324,8 @@ type InstancesListCall struct { } // List: Lists instances under a given project. +// +// - project: Project ID of the project for which to list Cloud SQL instances. func (r *InstancesService) List(project string) *InstancesListCall { c := &InstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -6970,8 +5341,7 @@ func (r *InstancesService) List(project string) *InstancesListCall { // their JSON representation, such as // 'settings.userLabels.auto_start:true'. // -// Multiple filter queries are space-separated. For -// example. +// Multiple filter queries are space-separated. For example. // 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, // each // expression is an AND expression. However, you can include AND and @@ -6982,16 +5352,15 @@ func (c *InstancesListCall) Filter(filter string) *InstancesListCall { return c } -// MaxResults sets the optional parameter "maxResults": The maximum -// number of results to return per response. +// MaxResults sets the optional parameter "maxResults": The maximum number of +// results to return per response. func (c *InstancesListCall) MaxResults(maxResults int64) *InstancesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set -// of +// PageToken sets the optional parameter "pageToken": A previously-returned +// page token representing part of the larger set of // results to view. func (c *InstancesListCall) PageToken(pageToken string) *InstancesListCall { c.urlParams_.Set("pageToken", pageToken) @@ -6999,33 +5368,29 @@ func (c *InstancesListCall) PageToken(pageToken string) *InstancesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesListCall) Fields(s ...googleapi.Field) *InstancesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InstancesListCall) IfNoneMatch(entityTag string) *InstancesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesListCall) Context(ctx context.Context) *InstancesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7034,12 +5399,7 @@ func (c *InstancesListCall) Header() http.Header { } func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7056,16 +5416,15 @@ func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.list" call. -// Exactly one of *InstancesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *InstancesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InstancesListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *InstancesListCall) Do(opts ...googleapi.CallOption) (*InstancesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7073,17 +5432,17 @@ func (c *InstancesListCall) Do(opts ...googleapi.CallOption) (*InstancesListResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InstancesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7096,48 +5455,6 @@ func (c *InstancesListCall) Do(opts ...googleapi.CallOption) (*InstancesListResp return nil, err } return ret, nil - // { - // "description": "Lists instances under a given project.", - // "flatPath": "sql/v1beta4/projects/{project}/instances", - // "httpMethod": "GET", - // "id": "sql.instances.list", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "filter": { - // "description": "A filter expression that filters resources listed in the response.\nThe expression is in the form of field:value. For example,\n'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per\ntheir JSON representation, such as 'settings.userLabels.auto_start:true'.\n\nMultiple filter queries are space-separated. For example.\n'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each\nexpression is an AND expression. However, you can include AND and OR\nexpressions explicitly.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "description": "The maximum number of results to return per response.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of\nresults to view.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project for which to list Cloud SQL instances.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances", - // "response": { - // "$ref": "InstancesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - } // Pages invokes f for each page of results. @@ -7145,7 +5462,7 @@ func (c *InstancesListCall) Do(opts ...googleapi.CallOption) (*InstancesListResp // The provided context supersedes any context provided to the Context method. func (c *InstancesListCall) Pages(ctx context.Context, f func(*InstancesListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -7161,8 +5478,6 @@ func (c *InstancesListCall) Pages(ctx context.Context, f func(*InstancesListResp } } -// method id "sql.instances.listServerCas": - type InstancesListServerCasCall struct { s *Service project string @@ -7173,15 +5488,17 @@ type InstancesListServerCasCall struct { header_ http.Header } -// ListServerCas: Lists all of the trusted Certificate Authorities (CAs) -// for the specified -// instance. There can be up to three CAs listed: the CA that was used -// to sign -// the certificate that is currently in use, a CA that has been added -// but not -// yet used to sign a certificate, and a CA used to sign a certificate -// that +// ListServerCas: Lists all of the trusted Certificate Authorities (CAs) for +// the specified +// instance. There can be up to three CAs listed: the CA that was used to +// sign +// the certificate that is currently in use, a CA that has been added but +// not +// yet used to sign a certificate, and a CA used to sign a certificate that // has previously rotated out. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *InstancesService) ListServerCas(project string, instance string) *InstancesListServerCasCall { c := &InstancesListServerCasCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -7190,33 +5507,29 @@ func (r *InstancesService) ListServerCas(project string, instance string) *Insta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesListServerCasCall) Fields(s ...googleapi.Field) *InstancesListServerCasCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *InstancesListServerCasCall) IfNoneMatch(entityTag string) *InstancesListServerCasCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesListServerCasCall) Context(ctx context.Context) *InstancesListServerCasCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesListServerCasCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7225,12 +5538,7 @@ func (c *InstancesListServerCasCall) Header() http.Header { } func (c *InstancesListServerCasCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -7248,16 +5556,15 @@ func (c *InstancesListServerCasCall) doRequest(alt string) (*http.Response, erro "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.listServerCas" call. -// Exactly one of *InstancesListServerCasResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *InstancesListServerCasResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *InstancesListServerCasResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *InstancesListServerCasCall) Do(opts ...googleapi.CallOption) (*InstancesListServerCasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7265,17 +5572,17 @@ func (c *InstancesListServerCasCall) Do(opts ...googleapi.CallOption) (*Instance if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &InstancesListServerCasResponse{ ServerResponse: googleapi.ServerResponse{ @@ -7288,42 +5595,7 @@ func (c *InstancesListServerCasCall) Do(opts ...googleapi.CallOption) (*Instance return nil, err } return ret, nil - // { - // "description": "Lists all of the trusted Certificate Authorities (CAs) for the specified\ninstance. There can be up to three CAs listed: the CA that was used to sign\nthe certificate that is currently in use, a CA that has been added but not\nyet used to sign a certificate, and a CA used to sign a certificate that\nhas previously rotated out.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/listServerCas", - // "httpMethod": "GET", - // "id": "sql.instances.listServerCas", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/listServerCas", - // "response": { - // "$ref": "InstancesListServerCasResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.patch": +} type InstancesPatchCall struct { s *Service @@ -7337,6 +5609,9 @@ type InstancesPatchCall struct { // Patch: Updates settings of a Cloud SQL instance. // This method supports patch semantics. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *InstancesService) Patch(project string, instance string, databaseinstance *DatabaseInstance) *InstancesPatchCall { c := &InstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -7346,23 +5621,21 @@ func (r *InstancesService) Patch(project string, instance string, databaseinstan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesPatchCall) Fields(s ...googleapi.Field) *InstancesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesPatchCall) Context(ctx context.Context) *InstancesPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7371,18 +5644,12 @@ func (c *InstancesPatchCall) Header() http.Header { } func (c *InstancesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.databaseinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}") @@ -7396,16 +5663,14 @@ func (c *InstancesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7413,17 +5678,17 @@ func (c *InstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -7436,45 +5701,7 @@ func (c *InstancesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error return nil, err } return ret, nil - // { - // "description": "Updates settings of a Cloud SQL instance.\nThis method supports patch semantics.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}", - // "httpMethod": "PATCH", - // "id": "sql.instances.patch", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}", - // "request": { - // "$ref": "DatabaseInstance" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.promoteReplica": +} type InstancesPromoteReplicaCall struct { s *Service @@ -7485,9 +5712,12 @@ type InstancesPromoteReplicaCall struct { header_ http.Header } -// PromoteReplica: Promotes the read replica instance to be a -// stand-alone Cloud SQL instance. +// PromoteReplica: Promotes the read replica instance to be a stand-alone Cloud +// SQL instance. // Using this operation might cause your instance to restart. +// +// - instance: Cloud SQL read replica instance name. +// - project: ID of the project that contains the read replica. func (r *InstancesService) PromoteReplica(project string, instance string) *InstancesPromoteReplicaCall { c := &InstancesPromoteReplicaCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -7496,23 +5726,21 @@ func (r *InstancesService) PromoteReplica(project string, instance string) *Inst } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesPromoteReplicaCall) Fields(s ...googleapi.Field) *InstancesPromoteReplicaCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesPromoteReplicaCall) Context(ctx context.Context) *InstancesPromoteReplicaCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesPromoteReplicaCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7521,12 +5749,7 @@ func (c *InstancesPromoteReplicaCall) Header() http.Header { } func (c *InstancesPromoteReplicaCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -7541,16 +5764,14 @@ func (c *InstancesPromoteReplicaCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.promoteReplica" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesPromoteReplicaCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7558,17 +5779,17 @@ func (c *InstancesPromoteReplicaCall) Do(opts ...googleapi.CallOption) (*Operati if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -7581,42 +5802,7 @@ func (c *InstancesPromoteReplicaCall) Do(opts ...googleapi.CallOption) (*Operati return nil, err } return ret, nil - // { - // "description": "Promotes the read replica instance to be a stand-alone Cloud SQL instance.\nUsing this operation might cause your instance to restart.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica", - // "httpMethod": "POST", - // "id": "sql.instances.promoteReplica", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL read replica instance name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "ID of the project that contains the read replica.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.resetSslConfig": +} type InstancesResetSslConfigCall struct { s *Service @@ -7627,9 +5813,12 @@ type InstancesResetSslConfigCall struct { header_ http.Header } -// ResetSslConfig: Deletes all client certificates and generates a new -// server SSL certificate +// ResetSslConfig: Deletes all client certificates and generates a new server +// SSL certificate // for the instance. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *InstancesService) ResetSslConfig(project string, instance string) *InstancesResetSslConfigCall { c := &InstancesResetSslConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -7638,23 +5827,21 @@ func (r *InstancesService) ResetSslConfig(project string, instance string) *Inst } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesResetSslConfigCall) Fields(s ...googleapi.Field) *InstancesResetSslConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesResetSslConfigCall) Context(ctx context.Context) *InstancesResetSslConfigCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesResetSslConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7663,12 +5850,7 @@ func (c *InstancesResetSslConfigCall) Header() http.Header { } func (c *InstancesResetSslConfigCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -7683,16 +5865,14 @@ func (c *InstancesResetSslConfigCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.resetSslConfig" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesResetSslConfigCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7700,17 +5880,17 @@ func (c *InstancesResetSslConfigCall) Do(opts ...googleapi.CallOption) (*Operati if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -7723,42 +5903,7 @@ func (c *InstancesResetSslConfigCall) Do(opts ...googleapi.CallOption) (*Operati return nil, err } return ret, nil - // { - // "description": "Deletes all client certificates and generates a new server SSL certificate\nfor the instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig", - // "httpMethod": "POST", - // "id": "sql.instances.resetSslConfig", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.restart": +} type InstancesRestartCall struct { s *Service @@ -7770,6 +5915,10 @@ type InstancesRestartCall struct { } // Restart: Restarts a Cloud SQL instance. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance to be +// restarted. func (r *InstancesService) Restart(project string, instance string) *InstancesRestartCall { c := &InstancesRestartCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -7778,23 +5927,21 @@ func (r *InstancesService) Restart(project string, instance string) *InstancesRe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesRestartCall) Fields(s ...googleapi.Field) *InstancesRestartCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesRestartCall) Context(ctx context.Context) *InstancesRestartCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesRestartCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7803,12 +5950,7 @@ func (c *InstancesRestartCall) Header() http.Header { } func (c *InstancesRestartCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -7823,16 +5965,14 @@ func (c *InstancesRestartCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.restart" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesRestartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7840,17 +5980,17 @@ func (c *InstancesRestartCall) Do(opts ...googleapi.CallOption) (*Operation, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -7863,42 +6003,7 @@ func (c *InstancesRestartCall) Do(opts ...googleapi.CallOption) (*Operation, err return nil, err } return ret, nil - // { - // "description": "Restarts a Cloud SQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/restart", - // "httpMethod": "POST", - // "id": "sql.instances.restart", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance to be restarted.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/restart", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.restoreBackup": +} type InstancesRestoreBackupCall struct { s *Service @@ -7913,6 +6018,9 @@ type InstancesRestoreBackupCall struct { // RestoreBackup: Restores a backup of a Cloud SQL instance. Using this // operation might cause // your instance to restart. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *InstancesService) RestoreBackup(project string, instance string, instancesrestorebackuprequest *InstancesRestoreBackupRequest) *InstancesRestoreBackupCall { c := &InstancesRestoreBackupCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -7922,23 +6030,21 @@ func (r *InstancesService) RestoreBackup(project string, instance string, instan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesRestoreBackupCall) Fields(s ...googleapi.Field) *InstancesRestoreBackupCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesRestoreBackupCall) Context(ctx context.Context) *InstancesRestoreBackupCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesRestoreBackupCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7947,18 +6053,12 @@ func (c *InstancesRestoreBackupCall) Header() http.Header { } func (c *InstancesRestoreBackupCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesrestorebackuprequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup") @@ -7972,16 +6072,14 @@ func (c *InstancesRestoreBackupCall) doRequest(alt string) (*http.Response, erro "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.restoreBackup" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesRestoreBackupCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7989,17 +6087,17 @@ func (c *InstancesRestoreBackupCall) Do(opts ...googleapi.CallOption) (*Operatio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8012,45 +6110,7 @@ func (c *InstancesRestoreBackupCall) Do(opts ...googleapi.CallOption) (*Operatio return nil, err } return ret, nil - // { - // "description": "Restores a backup of a Cloud SQL instance. Using this operation might cause\nyour instance to restart.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup", - // "httpMethod": "POST", - // "id": "sql.instances.restoreBackup", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup", - // "request": { - // "$ref": "InstancesRestoreBackupRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.rotateServerCa": +} type InstancesRotateServerCaCall struct { s *Service @@ -8065,6 +6125,9 @@ type InstancesRotateServerCaCall struct { // RotateServerCa: Rotates the server certificate to one signed by the // Certificate Authority // (CA) version previously added with the addServerCA method. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *InstancesService) RotateServerCa(project string, instance string, instancesrotateservercarequest *InstancesRotateServerCaRequest) *InstancesRotateServerCaCall { c := &InstancesRotateServerCaCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -8074,23 +6137,21 @@ func (r *InstancesService) RotateServerCa(project string, instance string, insta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesRotateServerCaCall) Fields(s ...googleapi.Field) *InstancesRotateServerCaCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesRotateServerCaCall) Context(ctx context.Context) *InstancesRotateServerCaCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesRotateServerCaCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8099,18 +6160,12 @@ func (c *InstancesRotateServerCaCall) Header() http.Header { } func (c *InstancesRotateServerCaCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesrotateservercarequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa") @@ -8124,16 +6179,14 @@ func (c *InstancesRotateServerCaCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.rotateServerCa" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesRotateServerCaCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8141,17 +6194,17 @@ func (c *InstancesRotateServerCaCall) Do(opts ...googleapi.CallOption) (*Operati if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8164,45 +6217,7 @@ func (c *InstancesRotateServerCaCall) Do(opts ...googleapi.CallOption) (*Operati return nil, err } return ret, nil - // { - // "description": "Rotates the server certificate to one signed by the Certificate Authority\n(CA) version previously added with the addServerCA method.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa", - // "httpMethod": "POST", - // "id": "sql.instances.rotateServerCa", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa", - // "request": { - // "$ref": "InstancesRotateServerCaRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.startReplica": +} type InstancesStartReplicaCall struct { s *Service @@ -8214,6 +6229,9 @@ type InstancesStartReplicaCall struct { } // StartReplica: Starts the replication in the read replica instance. +// +// - instance: Cloud SQL read replica instance name. +// - project: ID of the project that contains the read replica. func (r *InstancesService) StartReplica(project string, instance string) *InstancesStartReplicaCall { c := &InstancesStartReplicaCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -8222,23 +6240,21 @@ func (r *InstancesService) StartReplica(project string, instance string) *Instan } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesStartReplicaCall) Fields(s ...googleapi.Field) *InstancesStartReplicaCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesStartReplicaCall) Context(ctx context.Context) *InstancesStartReplicaCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesStartReplicaCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8247,12 +6263,7 @@ func (c *InstancesStartReplicaCall) Header() http.Header { } func (c *InstancesStartReplicaCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -8267,16 +6278,14 @@ func (c *InstancesStartReplicaCall) doRequest(alt string) (*http.Response, error "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.startReplica" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesStartReplicaCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8284,17 +6293,17 @@ func (c *InstancesStartReplicaCall) Do(opts ...googleapi.CallOption) (*Operation if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8307,42 +6316,7 @@ func (c *InstancesStartReplicaCall) Do(opts ...googleapi.CallOption) (*Operation return nil, err } return ret, nil - // { - // "description": "Starts the replication in the read replica instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/startReplica", - // "httpMethod": "POST", - // "id": "sql.instances.startReplica", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL read replica instance name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "ID of the project that contains the read replica.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/startReplica", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.stopReplica": +} type InstancesStopReplicaCall struct { s *Service @@ -8354,6 +6328,9 @@ type InstancesStopReplicaCall struct { } // StopReplica: Stops the replication in the read replica instance. +// +// - instance: Cloud SQL read replica instance name. +// - project: ID of the project that contains the read replica. func (r *InstancesService) StopReplica(project string, instance string) *InstancesStopReplicaCall { c := &InstancesStopReplicaCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -8362,23 +6339,21 @@ func (r *InstancesService) StopReplica(project string, instance string) *Instanc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesStopReplicaCall) Fields(s ...googleapi.Field) *InstancesStopReplicaCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesStopReplicaCall) Context(ctx context.Context) *InstancesStopReplicaCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesStopReplicaCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8387,12 +6362,7 @@ func (c *InstancesStopReplicaCall) Header() http.Header { } func (c *InstancesStopReplicaCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -8407,16 +6377,14 @@ func (c *InstancesStopReplicaCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.stopReplica" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesStopReplicaCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8424,17 +6392,17 @@ func (c *InstancesStopReplicaCall) Do(opts ...googleapi.CallOption) (*Operation, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8447,42 +6415,7 @@ func (c *InstancesStopReplicaCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Stops the replication in the read replica instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/stopReplica", - // "httpMethod": "POST", - // "id": "sql.instances.stopReplica", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL read replica instance name.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "ID of the project that contains the read replica.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/stopReplica", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.truncateLog": +} type InstancesTruncateLogCall struct { s *Service @@ -8495,6 +6428,9 @@ type InstancesTruncateLogCall struct { } // TruncateLog: Truncate MySQL general and slow query log tables +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the Cloud SQL project. func (r *InstancesService) TruncateLog(project string, instance string, instancestruncatelogrequest *InstancesTruncateLogRequest) *InstancesTruncateLogCall { c := &InstancesTruncateLogCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -8504,23 +6440,21 @@ func (r *InstancesService) TruncateLog(project string, instance string, instance } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesTruncateLogCall) Fields(s ...googleapi.Field) *InstancesTruncateLogCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesTruncateLogCall) Context(ctx context.Context) *InstancesTruncateLogCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesTruncateLogCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8529,18 +6463,12 @@ func (c *InstancesTruncateLogCall) Header() http.Header { } func (c *InstancesTruncateLogCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancestruncatelogrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/truncateLog") @@ -8554,16 +6482,14 @@ func (c *InstancesTruncateLogCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.truncateLog" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesTruncateLogCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8571,17 +6497,17 @@ func (c *InstancesTruncateLogCall) Do(opts ...googleapi.CallOption) (*Operation, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8594,45 +6520,7 @@ func (c *InstancesTruncateLogCall) Do(opts ...googleapi.CallOption) (*Operation, return nil, err } return ret, nil - // { - // "description": "Truncate MySQL general and slow query log tables", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/truncateLog", - // "httpMethod": "POST", - // "id": "sql.instances.truncateLog", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the Cloud SQL project.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/truncateLog", - // "request": { - // "$ref": "InstancesTruncateLogRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.instances.update": +} type InstancesUpdateCall struct { s *Service @@ -8644,9 +6532,12 @@ type InstancesUpdateCall struct { header_ http.Header } -// Update: Updates settings of a Cloud SQL instance. Using this -// operation might cause +// Update: Updates settings of a Cloud SQL instance. Using this operation might +// cause // your instance to restart. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *InstancesService) Update(project string, instance string, databaseinstance *DatabaseInstance) *InstancesUpdateCall { c := &InstancesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -8656,23 +6547,21 @@ func (r *InstancesService) Update(project string, instance string, databaseinsta } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *InstancesUpdateCall) Fields(s ...googleapi.Field) *InstancesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *InstancesUpdateCall) Context(ctx context.Context) *InstancesUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *InstancesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8681,18 +6570,12 @@ func (c *InstancesUpdateCall) Header() http.Header { } func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.databaseinstance) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}") @@ -8706,16 +6589,14 @@ func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.update" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *InstancesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8723,17 +6604,17 @@ func (c *InstancesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, erro if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8746,45 +6627,7 @@ func (c *InstancesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, erro return nil, err } return ret, nil - // { - // "description": "Updates settings of a Cloud SQL instance. Using this operation might cause\nyour instance to restart.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}", - // "httpMethod": "PUT", - // "id": "sql.instances.update", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}", - // "request": { - // "$ref": "DatabaseInstance" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.operations.get": +} type OperationsGetCall struct { s *Service @@ -8796,8 +6639,10 @@ type OperationsGetCall struct { header_ http.Header } -// Get: Retrieves an instance operation that has been performed on an -// instance. +// Get: Retrieves an instance operation that has been performed on an instance. +// +// - operation: Instance operation ID. +// - project: Project ID of the project that contains the instance. func (r *OperationsService) Get(project string, operation string) *OperationsGetCall { c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -8806,33 +6651,29 @@ func (r *OperationsService) Get(project string, operation string) *OperationsGet } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -8841,12 +6682,7 @@ func (c *OperationsGetCall) Header() http.Header { } func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -8864,16 +6700,14 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -8881,17 +6715,17 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -8904,42 +6738,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) return nil, err } return ret, nil - // { - // "description": "Retrieves an instance operation that has been performed on an instance.", - // "flatPath": "sql/v1beta4/projects/{project}/operations/{operation}", - // "httpMethod": "GET", - // "id": "sql.operations.get", - // "parameterOrder": [ - // "project", - // "operation" - // ], - // "parameters": { - // "operation": { - // "description": "Instance operation ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/operations/{operation}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.operations.list": +} type OperationsListCall struct { s *Service @@ -8950,32 +6749,33 @@ type OperationsListCall struct { header_ http.Header } -// List: Lists all instance operations that have been performed on the -// given Cloud +// List: Lists all instance operations that have been performed on the given +// Cloud // SQL instance in the reverse chronological order of the start time. +// +// - project: Project ID of the project that contains the instance. func (r *OperationsService) List(project string) *OperationsListCall { c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project return c } -// Instance sets the optional parameter "instance": Cloud SQL instance -// ID. This does not include the project ID. +// Instance sets the optional parameter "instance": Cloud SQL instance ID. This +// does not include the project ID. func (c *OperationsListCall) Instance(instance string) *OperationsListCall { c.urlParams_.Set("instance", instance) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of operations per response. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// operations per response. func (c *OperationsListCall) MaxResults(maxResults int64) *OperationsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set -// of +// PageToken sets the optional parameter "pageToken": A previously-returned +// page token representing part of the larger set of // results to view. func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.urlParams_.Set("pageToken", pageToken) @@ -8983,33 +6783,29 @@ func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *OperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9018,12 +6814,7 @@ func (c *OperationsListCall) Header() http.Header { } func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -9040,16 +6831,15 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.operations.list" call. -// Exactly one of *OperationsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *OperationsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *OperationsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9057,17 +6847,17 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &OperationsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9080,48 +6870,6 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe return nil, err } return ret, nil - // { - // "description": "Lists all instance operations that have been performed on the given Cloud\nSQL instance in the reverse chronological order of the start time.", - // "flatPath": "sql/v1beta4/projects/{project}/operations", - // "httpMethod": "GET", - // "id": "sql.operations.list", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "description": "Maximum number of operations per response.", - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of\nresults to view.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/operations", - // "response": { - // "$ref": "OperationsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - } // Pages invokes f for each page of results. @@ -9129,7 +6877,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*OperationsListRe // The provided context supersedes any context provided to the Context method. func (c *OperationsListCall) Pages(ctx context.Context, f func(*OperationsListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -9145,8 +6893,6 @@ func (c *OperationsListCall) Pages(ctx context.Context, f func(*OperationsListRe } } -// method id "sql.projects.instances.rescheduleMaintenance": - type ProjectsInstancesRescheduleMaintenanceCall struct { s *Service project string @@ -9157,8 +6903,10 @@ type ProjectsInstancesRescheduleMaintenanceCall struct { header_ http.Header } -// RescheduleMaintenance: Reschedules the maintenance on the given -// instance. +// RescheduleMaintenance: Reschedules the maintenance on the given instance. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: ID of the project that contains the instance. func (r *ProjectsInstancesService) RescheduleMaintenance(project string, instance string, sqlinstancesreschedulemaintenancerequestbody *SqlInstancesRescheduleMaintenanceRequestBody) *ProjectsInstancesRescheduleMaintenanceCall { c := &ProjectsInstancesRescheduleMaintenanceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -9168,23 +6916,21 @@ func (r *ProjectsInstancesService) RescheduleMaintenance(project string, instanc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesRescheduleMaintenanceCall) Fields(s ...googleapi.Field) *ProjectsInstancesRescheduleMaintenanceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesRescheduleMaintenanceCall) Context(ctx context.Context) *ProjectsInstancesRescheduleMaintenanceCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesRescheduleMaintenanceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9193,18 +6939,12 @@ func (c *ProjectsInstancesRescheduleMaintenanceCall) Header() http.Header { } func (c *ProjectsInstancesRescheduleMaintenanceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.sqlinstancesreschedulemaintenancerequestbody) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance") @@ -9218,16 +6958,14 @@ func (c *ProjectsInstancesRescheduleMaintenanceCall) doRequest(alt string) (*htt "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.rescheduleMaintenance" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsInstancesRescheduleMaintenanceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9235,17 +6973,17 @@ func (c *ProjectsInstancesRescheduleMaintenanceCall) Do(opts ...googleapi.CallOp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -9258,45 +6996,7 @@ func (c *ProjectsInstancesRescheduleMaintenanceCall) Do(opts ...googleapi.CallOp return nil, err } return ret, nil - // { - // "description": "Reschedules the maintenance on the given instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance", - // "httpMethod": "POST", - // "id": "sql.projects.instances.rescheduleMaintenance", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance", - // "request": { - // "$ref": "SqlInstancesRescheduleMaintenanceRequestBody" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.projects.instances.startExternalSync": +} type ProjectsInstancesStartExternalSyncCall struct { s *Service @@ -9308,6 +7008,9 @@ type ProjectsInstancesStartExternalSyncCall struct { } // StartExternalSync: Start External master migration. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: ID of the project that contains the first generation instance. func (r *ProjectsInstancesService) StartExternalSync(project string, instance string) *ProjectsInstancesStartExternalSyncCall { c := &ProjectsInstancesStartExternalSyncCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -9328,23 +7031,21 @@ func (c *ProjectsInstancesStartExternalSyncCall) SyncMode(syncMode string) *Proj } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesStartExternalSyncCall) Fields(s ...googleapi.Field) *ProjectsInstancesStartExternalSyncCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesStartExternalSyncCall) Context(ctx context.Context) *ProjectsInstancesStartExternalSyncCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesStartExternalSyncCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9353,12 +7054,7 @@ func (c *ProjectsInstancesStartExternalSyncCall) Header() http.Header { } func (c *ProjectsInstancesStartExternalSyncCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -9373,16 +7069,14 @@ func (c *ProjectsInstancesStartExternalSyncCall) doRequest(alt string) (*http.Re "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.startExternalSync" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsInstancesStartExternalSyncCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9390,17 +7084,17 @@ func (c *ProjectsInstancesStartExternalSyncCall) Do(opts ...googleapi.CallOption if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -9413,52 +7107,7 @@ func (c *ProjectsInstancesStartExternalSyncCall) Do(opts ...googleapi.CallOption return nil, err } return ret, nil - // { - // "description": "Start External master migration.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync", - // "httpMethod": "POST", - // "id": "sql.projects.instances.startExternalSync", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "ID of the project that contains the first generation instance.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "syncMode": { - // "description": "External sync mode", - // "enum": [ - // "EXTERNAL_SYNC_MODE_UNSPECIFIED", - // "ONLINE", - // "OFFLINE" - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.projects.instances.verifyExternalSyncSettings": +} type ProjectsInstancesVerifyExternalSyncSettingsCall struct { s *Service @@ -9469,8 +7118,10 @@ type ProjectsInstancesVerifyExternalSyncSettingsCall struct { header_ http.Header } -// VerifyExternalSyncSettings: Verify External master external sync -// settings. +// VerifyExternalSyncSettings: Verify External master external sync settings. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *ProjectsInstancesService) VerifyExternalSyncSettings(project string, instance string) *ProjectsInstancesVerifyExternalSyncSettingsCall { c := &ProjectsInstancesVerifyExternalSyncSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -9490,31 +7141,29 @@ func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) SyncMode(syncMode stri return c } -// VerifyConnectionOnly sets the optional parameter -// "verifyConnectionOnly": Flag to enable verifying connection only +// VerifyConnectionOnly sets the optional parameter "verifyConnectionOnly": +// Flag to enable verifying connection only func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) VerifyConnectionOnly(verifyConnectionOnly bool) *ProjectsInstancesVerifyExternalSyncSettingsCall { c.urlParams_.Set("verifyConnectionOnly", fmt.Sprint(verifyConnectionOnly)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) Fields(s ...googleapi.Field) *ProjectsInstancesVerifyExternalSyncSettingsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) Context(ctx context.Context) *ProjectsInstancesVerifyExternalSyncSettingsCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9523,12 +7172,7 @@ func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) Header() http.Header { } func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -9543,18 +7187,15 @@ func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) doRequest(alt string) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.verifyExternalSyncSettings" call. -// Exactly one of *SqlInstancesVerifyExternalSyncSettingsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *SqlInstancesVerifyExternalSyncSettingsResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// Any non-2xx status code is an error. Response headers are in either +// *SqlInstancesVerifyExternalSyncSettingsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) Do(opts ...googleapi.CallOption) (*SqlInstancesVerifyExternalSyncSettingsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9562,17 +7203,17 @@ func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) Do(opts ...googleapi.C if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SqlInstancesVerifyExternalSyncSettingsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -9585,57 +7226,7 @@ func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) Do(opts ...googleapi.C return nil, err } return ret, nil - // { - // "description": "Verify External master external sync settings.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings", - // "httpMethod": "POST", - // "id": "sql.projects.instances.verifyExternalSyncSettings", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "syncMode": { - // "description": "External sync mode", - // "enum": [ - // "EXTERNAL_SYNC_MODE_UNSPECIFIED", - // "ONLINE", - // "OFFLINE" - // ], - // "location": "query", - // "type": "string" - // }, - // "verifyConnectionOnly": { - // "description": "Flag to enable verifying connection only", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings", - // "response": { - // "$ref": "SqlInstancesVerifyExternalSyncSettingsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.sslCerts.createEphemeral": +} type SslCertsCreateEphemeralCall struct { s *Service @@ -9647,13 +7238,16 @@ type SslCertsCreateEphemeralCall struct { header_ http.Header } -// CreateEphemeral: Generates a short-lived X509 certificate containing -// the provided public key -// and signed by a private key specific to the target instance. Users -// may use +// CreateEphemeral: Generates a short-lived X509 certificate containing the +// provided public key +// and signed by a private key specific to the target instance. Users may +// use // the certificate to authenticate as themselves when connecting to // the // database. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the Cloud SQL project. func (r *SslCertsService) CreateEphemeral(project string, instance string, sslcertscreateephemeralrequest *SslCertsCreateEphemeralRequest) *SslCertsCreateEphemeralCall { c := &SslCertsCreateEphemeralCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -9663,23 +7257,21 @@ func (r *SslCertsService) CreateEphemeral(project string, instance string, sslce } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SslCertsCreateEphemeralCall) Fields(s ...googleapi.Field) *SslCertsCreateEphemeralCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SslCertsCreateEphemeralCall) Context(ctx context.Context) *SslCertsCreateEphemeralCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SslCertsCreateEphemeralCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9688,18 +7280,12 @@ func (c *SslCertsCreateEphemeralCall) Header() http.Header { } func (c *SslCertsCreateEphemeralCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.sslcertscreateephemeralrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral") @@ -9713,16 +7299,14 @@ func (c *SslCertsCreateEphemeralCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.createEphemeral" call. -// Exactly one of *SslCert or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *SslCert.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SslCert.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SslCertsCreateEphemeralCall) Do(opts ...googleapi.CallOption) (*SslCert, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9730,17 +7314,17 @@ func (c *SslCertsCreateEphemeralCall) Do(opts ...googleapi.CallOption) (*SslCert if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SslCert{ ServerResponse: googleapi.ServerResponse{ @@ -9753,45 +7337,7 @@ func (c *SslCertsCreateEphemeralCall) Do(opts ...googleapi.CallOption) (*SslCert return nil, err } return ret, nil - // { - // "description": "Generates a short-lived X509 certificate containing the provided public key\nand signed by a private key specific to the target instance. Users may use\nthe certificate to authenticate as themselves when connecting to the\ndatabase.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral", - // "httpMethod": "POST", - // "id": "sql.sslCerts.createEphemeral", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the Cloud SQL project.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral", - // "request": { - // "$ref": "SslCertsCreateEphemeralRequest" - // }, - // "response": { - // "$ref": "SslCert" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.sslCerts.delete": +} type SslCertsDeleteCall struct { s *Service @@ -9806,6 +7352,10 @@ type SslCertsDeleteCall struct { // Delete: Deletes the SSL certificate. For First Generation instances, // the // certificate remains valid until the instance is restarted. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. +// - sha1Fingerprint: Sha1 FingerPrint. func (r *SslCertsService) Delete(project string, instance string, sha1Fingerprint string) *SslCertsDeleteCall { c := &SslCertsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -9815,23 +7365,21 @@ func (r *SslCertsService) Delete(project string, instance string, sha1Fingerprin } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SslCertsDeleteCall) Fields(s ...googleapi.Field) *SslCertsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SslCertsDeleteCall) Context(ctx context.Context) *SslCertsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SslCertsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -9840,12 +7388,7 @@ func (c *SslCertsDeleteCall) Header() http.Header { } func (c *SslCertsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -9861,16 +7404,14 @@ func (c *SslCertsDeleteCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "sha1Fingerprint": c.sha1Fingerprint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SslCertsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -9878,17 +7419,17 @@ func (c *SslCertsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -9901,49 +7442,7 @@ func (c *SslCertsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error return nil, err } return ret, nil - // { - // "description": "Deletes the SSL certificate. For First Generation instances, the\ncertificate remains valid until the instance is restarted.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}", - // "httpMethod": "DELETE", - // "id": "sql.sslCerts.delete", - // "parameterOrder": [ - // "project", - // "instance", - // "sha1Fingerprint" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sha1Fingerprint": { - // "description": "Sha1 FingerPrint.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.sslCerts.get": +} type SslCertsGetCall struct { s *Service @@ -9956,11 +7455,15 @@ type SslCertsGetCall struct { header_ http.Header } -// Get: Retrieves a particular SSL certificate. Does not include the -// private key -// (required for usage). The private key must be saved from the -// response to +// Get: Retrieves a particular SSL certificate. Does not include the private +// key +// (required for usage). The private key must be saved from the response +// to // initial creation. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. +// - sha1Fingerprint: Sha1 FingerPrint. func (r *SslCertsService) Get(project string, instance string, sha1Fingerprint string) *SslCertsGetCall { c := &SslCertsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -9970,33 +7473,29 @@ func (r *SslCertsService) Get(project string, instance string, sha1Fingerprint s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SslCertsGetCall) Fields(s ...googleapi.Field) *SslCertsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SslCertsGetCall) IfNoneMatch(entityTag string) *SslCertsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SslCertsGetCall) Context(ctx context.Context) *SslCertsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SslCertsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10005,12 +7504,7 @@ func (c *SslCertsGetCall) Header() http.Header { } func (c *SslCertsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -10029,16 +7523,14 @@ func (c *SslCertsGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "sha1Fingerprint": c.sha1Fingerprint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.get" call. -// Exactly one of *SslCert or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *SslCert.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SslCert.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SslCertsGetCall) Do(opts ...googleapi.CallOption) (*SslCert, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10046,17 +7538,17 @@ func (c *SslCertsGetCall) Do(opts ...googleapi.CallOption) (*SslCert, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SslCert{ ServerResponse: googleapi.ServerResponse{ @@ -10069,49 +7561,7 @@ func (c *SslCertsGetCall) Do(opts ...googleapi.CallOption) (*SslCert, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a particular SSL certificate. Does not include the private key\n(required for usage). The private key must be saved from the response to\ninitial creation.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}", - // "httpMethod": "GET", - // "id": "sql.sslCerts.get", - // "parameterOrder": [ - // "project", - // "instance", - // "sha1Fingerprint" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sha1Fingerprint": { - // "description": "Sha1 FingerPrint.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}", - // "response": { - // "$ref": "SslCert" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.sslCerts.insert": +} type SslCertsInsertCall struct { s *Service @@ -10123,11 +7573,14 @@ type SslCertsInsertCall struct { header_ http.Header } -// Insert: Creates an SSL certificate and returns it along with the -// private key and +// Insert: Creates an SSL certificate and returns it along with the private key +// and // server certificate authority. The new certificate will not be usable // until // the instance is restarted. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *SslCertsService) Insert(project string, instance string, sslcertsinsertrequest *SslCertsInsertRequest) *SslCertsInsertCall { c := &SslCertsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -10137,23 +7590,21 @@ func (r *SslCertsService) Insert(project string, instance string, sslcertsinsert } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SslCertsInsertCall) Fields(s ...googleapi.Field) *SslCertsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SslCertsInsertCall) Context(ctx context.Context) *SslCertsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SslCertsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10162,18 +7613,12 @@ func (c *SslCertsInsertCall) Header() http.Header { } func (c *SslCertsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.sslcertsinsertrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/sslCerts") @@ -10187,16 +7632,15 @@ func (c *SslCertsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.insert" call. -// Exactly one of *SslCertsInsertResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SslCertsInsertResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SslCertsInsertResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SslCertsInsertCall) Do(opts ...googleapi.CallOption) (*SslCertsInsertResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10204,17 +7648,17 @@ func (c *SslCertsInsertCall) Do(opts ...googleapi.CallOption) (*SslCertsInsertRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SslCertsInsertResponse{ ServerResponse: googleapi.ServerResponse{ @@ -10227,45 +7671,7 @@ func (c *SslCertsInsertCall) Do(opts ...googleapi.CallOption) (*SslCertsInsertRe return nil, err } return ret, nil - // { - // "description": "Creates an SSL certificate and returns it along with the private key and\nserver certificate authority. The new certificate will not be usable until\nthe instance is restarted.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/sslCerts", - // "httpMethod": "POST", - // "id": "sql.sslCerts.insert", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/sslCerts", - // "request": { - // "$ref": "SslCertsInsertRequest" - // }, - // "response": { - // "$ref": "SslCertsInsertResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.sslCerts.list": +} type SslCertsListCall struct { s *Service @@ -10278,6 +7684,9 @@ type SslCertsListCall struct { } // List: Lists all of the current SSL certificates for the instance. +// +// - instance: Cloud SQL instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *SslCertsService) List(project string, instance string) *SslCertsListCall { c := &SslCertsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -10286,33 +7695,29 @@ func (r *SslCertsService) List(project string, instance string) *SslCertsListCal } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SslCertsListCall) Fields(s ...googleapi.Field) *SslCertsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SslCertsListCall) IfNoneMatch(entityTag string) *SslCertsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SslCertsListCall) Context(ctx context.Context) *SslCertsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SslCertsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10321,12 +7726,7 @@ func (c *SslCertsListCall) Header() http.Header { } func (c *SslCertsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -10344,16 +7744,15 @@ func (c *SslCertsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.list" call. -// Exactly one of *SslCertsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SslCertsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SslCertsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SslCertsListCall) Do(opts ...googleapi.CallOption) (*SslCertsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10361,17 +7760,17 @@ func (c *SslCertsListCall) Do(opts ...googleapi.CallOption) (*SslCertsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SslCertsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -10384,42 +7783,7 @@ func (c *SslCertsListCall) Do(opts ...googleapi.CallOption) (*SslCertsListRespon return nil, err } return ret, nil - // { - // "description": "Lists all of the current SSL certificates for the instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/sslCerts", - // "httpMethod": "GET", - // "id": "sql.sslCerts.list", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Cloud SQL instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/sslCerts", - // "response": { - // "$ref": "SslCertsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.tiers.list": +} type TiersListCall struct { s *Service @@ -10435,6 +7799,8 @@ type TiersListCall struct { // db-n1-standard-1. For related information, see // Pricing. +// +// - project: Project ID of the project for which to list tiers. func (r *TiersService) List(project string) *TiersListCall { c := &TiersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -10442,33 +7808,29 @@ func (r *TiersService) List(project string) *TiersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TiersListCall) Fields(s ...googleapi.Field) *TiersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TiersListCall) IfNoneMatch(entityTag string) *TiersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TiersListCall) Context(ctx context.Context) *TiersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TiersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10477,12 +7839,7 @@ func (c *TiersListCall) Header() http.Header { } func (c *TiersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -10499,16 +7856,15 @@ func (c *TiersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.tiers.list" call. -// Exactly one of *TiersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TiersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TiersListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *TiersListCall) Do(opts ...googleapi.CallOption) (*TiersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10516,17 +7872,17 @@ func (c *TiersListCall) Do(opts ...googleapi.CallOption) (*TiersListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TiersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -10539,35 +7895,7 @@ func (c *TiersListCall) Do(opts ...googleapi.CallOption) (*TiersListResponse, er return nil, err } return ret, nil - // { - // "description": "Lists all available machine types (tiers) for Cloud SQL, for example,\ndb-n1-standard-1. For related information, see \u003ca\nhref=\"/sql/pricing\"\u003ePricing\u003c/a\u003e.", - // "flatPath": "sql/v1beta4/projects/{project}/tiers", - // "httpMethod": "GET", - // "id": "sql.tiers.list", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "project": { - // "description": "Project ID of the project for which to list tiers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/tiers", - // "response": { - // "$ref": "TiersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.users.delete": +} type UsersDeleteCall struct { s *Service @@ -10579,6 +7907,9 @@ type UsersDeleteCall struct { } // Delete: Deletes a user from a Cloud SQL instance. +// +// - instance: Database instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *UsersService) Delete(project string, instance string) *UsersDeleteCall { c := &UsersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -10586,38 +7917,34 @@ func (r *UsersService) Delete(project string, instance string) *UsersDeleteCall return c } -// Host sets the optional parameter "host": Host of the user in the -// instance. +// Host sets the optional parameter "host": Host of the user in the instance. func (c *UsersDeleteCall) Host(host string) *UsersDeleteCall { c.urlParams_.Set("host", host) return c } -// Name sets the optional parameter "name": Name of the user in the -// instance. +// Name sets the optional parameter "name": Name of the user in the instance. func (c *UsersDeleteCall) Name(name string) *UsersDeleteCall { c.urlParams_.Set("name", name) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersDeleteCall) Fields(s ...googleapi.Field) *UsersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersDeleteCall) Context(ctx context.Context) *UsersDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10626,12 +7953,7 @@ func (c *UsersDeleteCall) Header() http.Header { } func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -10646,16 +7968,14 @@ func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10663,17 +7983,17 @@ func (c *UsersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -10686,52 +8006,7 @@ func (c *UsersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { return nil, err } return ret, nil - // { - // "description": "Deletes a user from a Cloud SQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/users", - // "httpMethod": "DELETE", - // "id": "sql.users.delete", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "host": { - // "description": "Host of the user in the instance.", - // "location": "query", - // "type": "string" - // }, - // "instance": { - // "description": "Database instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "name": { - // "description": "Name of the user in the instance.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/users", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.users.insert": +} type UsersInsertCall struct { s *Service @@ -10744,6 +8019,9 @@ type UsersInsertCall struct { } // Insert: Creates a new user in a Cloud SQL instance. +// +// - instance: Database instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *UsersService) Insert(project string, instance string, user *User) *UsersInsertCall { c := &UsersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -10753,23 +8031,21 @@ func (r *UsersService) Insert(project string, instance string, user *User) *User } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersInsertCall) Fields(s ...googleapi.Field) *UsersInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersInsertCall) Context(ctx context.Context) *UsersInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10778,18 +8054,12 @@ func (c *UsersInsertCall) Header() http.Header { } func (c *UsersInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.user) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/users") @@ -10803,16 +8073,14 @@ func (c *UsersInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.insert" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10820,17 +8088,17 @@ func (c *UsersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -10843,45 +8111,7 @@ func (c *UsersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { return nil, err } return ret, nil - // { - // "description": "Creates a new user in a Cloud SQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/users", - // "httpMethod": "POST", - // "id": "sql.users.insert", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Database instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/users", - // "request": { - // "$ref": "User" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.users.list": +} type UsersListCall struct { s *Service @@ -10894,6 +8124,9 @@ type UsersListCall struct { } // List: Lists users in the specified Cloud SQL instance. +// +// - instance: Database instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *UsersService) List(project string, instance string) *UsersListCall { c := &UsersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -10902,33 +8135,29 @@ func (r *UsersService) List(project string, instance string) *UsersListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersListCall) Fields(s ...googleapi.Field) *UsersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UsersListCall) IfNoneMatch(entityTag string) *UsersListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersListCall) Context(ctx context.Context) *UsersListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -10937,12 +8166,7 @@ func (c *UsersListCall) Header() http.Header { } func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -10960,16 +8184,15 @@ func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.list" call. -// Exactly one of *UsersListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *UsersListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UsersListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *UsersListCall) Do(opts ...googleapi.CallOption) (*UsersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -10977,17 +8200,17 @@ func (c *UsersListCall) Do(opts ...googleapi.CallOption) (*UsersListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UsersListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -11000,42 +8223,7 @@ func (c *UsersListCall) Do(opts ...googleapi.CallOption) (*UsersListResponse, er return nil, err } return ret, nil - // { - // "description": "Lists users in the specified Cloud SQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/users", - // "httpMethod": "GET", - // "id": "sql.users.list", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "instance": { - // "description": "Database instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/users", - // "response": { - // "$ref": "UsersListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - -} - -// method id "sql.users.update": +} type UsersUpdateCall struct { s *Service @@ -11048,6 +8236,9 @@ type UsersUpdateCall struct { } // Update: Updates an existing user in a Cloud SQL instance. +// +// - instance: Database instance ID. This does not include the project ID. +// - project: Project ID of the project that contains the instance. func (r *UsersService) Update(project string, instance string, user *User) *UsersUpdateCall { c := &UsersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project @@ -11056,38 +8247,34 @@ func (r *UsersService) Update(project string, instance string, user *User) *User return c } -// Host sets the optional parameter "host": Host of the user in the -// instance. +// Host sets the optional parameter "host": Host of the user in the instance. func (c *UsersUpdateCall) Host(host string) *UsersUpdateCall { c.urlParams_.Set("host", host) return c } -// Name sets the optional parameter "name": Name of the user in the -// instance. +// Name sets the optional parameter "name": Name of the user in the instance. func (c *UsersUpdateCall) Name(name string) *UsersUpdateCall { c.urlParams_.Set("name", name) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UsersUpdateCall) Fields(s ...googleapi.Field) *UsersUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UsersUpdateCall) Context(ctx context.Context) *UsersUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UsersUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -11096,18 +8283,12 @@ func (c *UsersUpdateCall) Header() http.Header { } func (c *UsersUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200503") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.user) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/projects/{project}/instances/{instance}/users") @@ -11121,16 +8302,14 @@ func (c *UsersUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.update" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UsersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -11138,17 +8317,17 @@ func (c *UsersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Operation{ ServerResponse: googleapi.ServerResponse{ @@ -11161,50 +8340,4 @@ func (c *UsersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { return nil, err } return ret, nil - // { - // "description": "Updates an existing user in a Cloud SQL instance.", - // "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/users", - // "httpMethod": "PUT", - // "id": "sql.users.update", - // "parameterOrder": [ - // "project", - // "instance" - // ], - // "parameters": { - // "host": { - // "description": "Optional. Host of the user in the instance.", - // "location": "query", - // "type": "string" - // }, - // "instance": { - // "description": "Database instance ID. This does not include the project ID.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "name": { - // "description": "Name of the user in the instance.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Project ID of the project that contains the instance.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sql/v1beta4/projects/{project}/instances/{instance}/users", - // "request": { - // "$ref": "User" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/sqlservice.admin" - // ] - // } - } diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 74049715943..bd56fa605d5 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -4937,7 +4937,7 @@ func (c *BackupRunsDeleteCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.delete" call. @@ -5052,7 +5052,7 @@ func (c *BackupRunsGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.get" call. @@ -5157,7 +5157,7 @@ func (c *BackupRunsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.insert" call. @@ -5285,7 +5285,7 @@ func (c *BackupRunsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.list" call. @@ -5415,7 +5415,7 @@ func (c *ConnectGenerateEphemeralCertCall) doRequest(alt string) (*http.Response "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.connect.generateEphemeral" call. @@ -5534,7 +5534,7 @@ func (c *ConnectGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.connect.get" call. @@ -5638,7 +5638,7 @@ func (c *DatabasesDeleteCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.delete" call. @@ -5754,7 +5754,7 @@ func (c *DatabasesGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.get" call. @@ -5861,7 +5861,7 @@ func (c *DatabasesInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.insert" call. @@ -5972,7 +5972,7 @@ func (c *DatabasesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.list" call. @@ -6083,7 +6083,7 @@ func (c *DatabasesPatchCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.patch" call. @@ -6193,7 +6193,7 @@ func (c *DatabasesUpdateCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.update" call. @@ -6301,7 +6301,7 @@ func (c *FlagsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.flags.list" call. @@ -6417,7 +6417,7 @@ func (c *InstancesListServerCertificatesCall) doRequest(alt string) (*http.Respo "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.ListServerCertificates" call. @@ -6526,7 +6526,7 @@ func (c *InstancesRotateServerCertificateCall) doRequest(alt string) (*http.Resp "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.RotateServerCertificate" call. @@ -6636,7 +6636,7 @@ func (c *InstancesAcquireSsrsLeaseCall) doRequest(alt string) (*http.Response, e "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.acquireSsrsLease" call. @@ -6742,7 +6742,7 @@ func (c *InstancesAddServerCaCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.addServerCa" call. @@ -6847,7 +6847,7 @@ func (c *InstancesAddServerCertificateCall) doRequest(alt string) (*http.Respons "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.addServerCertificate" call. @@ -6954,7 +6954,7 @@ func (c *InstancesCloneCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.clone" call. @@ -7054,7 +7054,7 @@ func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.delete" call. @@ -7160,7 +7160,7 @@ func (c *InstancesDemoteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.demote" call. @@ -7266,7 +7266,7 @@ func (c *InstancesDemoteMasterCall) doRequest(alt string) (*http.Response, error "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.demoteMaster" call. @@ -7373,7 +7373,7 @@ func (c *InstancesExportCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.export" call. @@ -7484,7 +7484,7 @@ func (c *InstancesFailoverCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.failover" call. @@ -7595,7 +7595,7 @@ func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.get" call. @@ -7702,7 +7702,7 @@ func (c *InstancesImportCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.import" call. @@ -7804,7 +7804,7 @@ func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.insert" call. @@ -7940,7 +7940,7 @@ func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.list" call. @@ -8077,7 +8077,7 @@ func (c *InstancesListServerCasCall) doRequest(alt string) (*http.Response, erro "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.listServerCas" call. @@ -8185,7 +8185,7 @@ func (c *InstancesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.patch" call. @@ -8298,7 +8298,7 @@ func (c *InstancesPromoteReplicaCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.promoteReplica" call. @@ -8403,7 +8403,7 @@ func (c *InstancesReencryptCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.reencrypt" call. @@ -8506,7 +8506,7 @@ func (c *InstancesReleaseSsrsLeaseCall) doRequest(alt string) (*http.Response, e "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.releaseSsrsLease" call. @@ -8607,7 +8607,7 @@ func (c *InstancesResetSslConfigCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.resetSslConfig" call. @@ -8707,7 +8707,7 @@ func (c *InstancesRestartCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.restart" call. @@ -8813,7 +8813,7 @@ func (c *InstancesRestoreBackupCall) doRequest(alt string) (*http.Response, erro "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.restoreBackup" call. @@ -8922,7 +8922,7 @@ func (c *InstancesRotateServerCaCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.rotateServerCa" call. @@ -9021,7 +9021,7 @@ func (c *InstancesStartReplicaCall) doRequest(alt string) (*http.Response, error "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.startReplica" call. @@ -9120,7 +9120,7 @@ func (c *InstancesStopReplicaCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.stopReplica" call. @@ -9229,7 +9229,7 @@ func (c *InstancesSwitchoverCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.switchover" call. @@ -9334,7 +9334,7 @@ func (c *InstancesTruncateLogCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.truncateLog" call. @@ -9440,7 +9440,7 @@ func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.update" call. @@ -9540,7 +9540,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.operations.cancel" call. @@ -9651,7 +9651,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.operations.get" call. @@ -9780,7 +9780,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.operations.list" call. @@ -9913,7 +9913,7 @@ func (c *ProjectsInstancesGetDiskShrinkConfigCall) doRequest(alt string) (*http. "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.getDiskShrinkConfig" call. @@ -10025,7 +10025,7 @@ func (c *ProjectsInstancesGetLatestRecoveryTimeCall) doRequest(alt string) (*htt "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.getLatestRecoveryTime" call. @@ -10131,7 +10131,7 @@ func (c *ProjectsInstancesPerformDiskShrinkCall) doRequest(alt string) (*http.Re "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.performDiskShrink" call. @@ -10236,7 +10236,7 @@ func (c *ProjectsInstancesRescheduleMaintenanceCall) doRequest(alt string) (*htt "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.rescheduleMaintenance" call. @@ -10341,7 +10341,7 @@ func (c *ProjectsInstancesResetReplicaSizeCall) doRequest(alt string) (*http.Res "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.resetReplicaSize" call. @@ -10446,7 +10446,7 @@ func (c *ProjectsInstancesStartExternalSyncCall) doRequest(alt string) (*http.Re "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.startExternalSync" call. @@ -10552,7 +10552,7 @@ func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) doRequest(alt string) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.verifyExternalSyncSettings" call. @@ -10661,7 +10661,7 @@ func (c *SslCertsCreateEphemeralCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.createEphemeral" call. @@ -10765,7 +10765,7 @@ func (c *SslCertsDeleteCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "sha1Fingerprint": c.sha1Fingerprint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.delete" call. @@ -10882,7 +10882,7 @@ func (c *SslCertsGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "sha1Fingerprint": c.sha1Fingerprint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.get" call. @@ -10989,7 +10989,7 @@ func (c *SslCertsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.insert" call. @@ -11101,7 +11101,7 @@ func (c *SslCertsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.list" call. @@ -11211,7 +11211,7 @@ func (c *TiersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.tiers.list" call. @@ -11323,7 +11323,7 @@ func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.delete" call. @@ -11444,7 +11444,7 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.get" call. @@ -11549,7 +11549,7 @@ func (c *UsersInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.insert" call. @@ -11660,7 +11660,7 @@ func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.list" call. @@ -11778,7 +11778,7 @@ func (c *UsersUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.update" call. diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 8f9f8090c73..c17369afdc5 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -4938,7 +4938,7 @@ func (c *BackupRunsDeleteCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.delete" call. @@ -5053,7 +5053,7 @@ func (c *BackupRunsGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "id": strconv.FormatInt(c.id, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.get" call. @@ -5158,7 +5158,7 @@ func (c *BackupRunsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.insert" call. @@ -5286,7 +5286,7 @@ func (c *BackupRunsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.backupRuns.list" call. @@ -5416,7 +5416,7 @@ func (c *ConnectGenerateEphemeralCertCall) doRequest(alt string) (*http.Response "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.connect.generateEphemeral" call. @@ -5535,7 +5535,7 @@ func (c *ConnectGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.connect.get" call. @@ -5639,7 +5639,7 @@ func (c *DatabasesDeleteCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.delete" call. @@ -5755,7 +5755,7 @@ func (c *DatabasesGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.get" call. @@ -5862,7 +5862,7 @@ func (c *DatabasesInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.insert" call. @@ -5973,7 +5973,7 @@ func (c *DatabasesListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.list" call. @@ -6084,7 +6084,7 @@ func (c *DatabasesPatchCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.patch" call. @@ -6194,7 +6194,7 @@ func (c *DatabasesUpdateCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "database": c.database, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.databases.update" call. @@ -6302,7 +6302,7 @@ func (c *FlagsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.flags.list" call. @@ -6418,7 +6418,7 @@ func (c *InstancesListServerCertificatesCall) doRequest(alt string) (*http.Respo "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.ListServerCertificates" call. @@ -6527,7 +6527,7 @@ func (c *InstancesRotateServerCertificateCall) doRequest(alt string) (*http.Resp "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.RotateServerCertificate" call. @@ -6637,7 +6637,7 @@ func (c *InstancesAcquireSsrsLeaseCall) doRequest(alt string) (*http.Response, e "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.acquireSsrsLease" call. @@ -6743,7 +6743,7 @@ func (c *InstancesAddServerCaCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.addServerCa" call. @@ -6848,7 +6848,7 @@ func (c *InstancesAddServerCertificateCall) doRequest(alt string) (*http.Respons "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.addServerCertificate" call. @@ -6955,7 +6955,7 @@ func (c *InstancesCloneCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.clone" call. @@ -7055,7 +7055,7 @@ func (c *InstancesDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.delete" call. @@ -7161,7 +7161,7 @@ func (c *InstancesDemoteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.demote" call. @@ -7267,7 +7267,7 @@ func (c *InstancesDemoteMasterCall) doRequest(alt string) (*http.Response, error "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.demoteMaster" call. @@ -7374,7 +7374,7 @@ func (c *InstancesExportCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.export" call. @@ -7485,7 +7485,7 @@ func (c *InstancesFailoverCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.failover" call. @@ -7596,7 +7596,7 @@ func (c *InstancesGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.get" call. @@ -7703,7 +7703,7 @@ func (c *InstancesImportCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.import" call. @@ -7805,7 +7805,7 @@ func (c *InstancesInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.insert" call. @@ -7941,7 +7941,7 @@ func (c *InstancesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.list" call. @@ -8078,7 +8078,7 @@ func (c *InstancesListServerCasCall) doRequest(alt string) (*http.Response, erro "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.listServerCas" call. @@ -8186,7 +8186,7 @@ func (c *InstancesPatchCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.patch" call. @@ -8299,7 +8299,7 @@ func (c *InstancesPromoteReplicaCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.promoteReplica" call. @@ -8404,7 +8404,7 @@ func (c *InstancesReencryptCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.reencrypt" call. @@ -8508,7 +8508,7 @@ func (c *InstancesReleaseSsrsLeaseCall) doRequest(alt string) (*http.Response, e "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.releaseSsrsLease" call. @@ -8609,7 +8609,7 @@ func (c *InstancesResetSslConfigCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.resetSslConfig" call. @@ -8709,7 +8709,7 @@ func (c *InstancesRestartCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.restart" call. @@ -8815,7 +8815,7 @@ func (c *InstancesRestoreBackupCall) doRequest(alt string) (*http.Response, erro "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.restoreBackup" call. @@ -8924,7 +8924,7 @@ func (c *InstancesRotateServerCaCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.rotateServerCa" call. @@ -9023,7 +9023,7 @@ func (c *InstancesStartReplicaCall) doRequest(alt string) (*http.Response, error "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.startReplica" call. @@ -9122,7 +9122,7 @@ func (c *InstancesStopReplicaCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.stopReplica" call. @@ -9231,7 +9231,7 @@ func (c *InstancesSwitchoverCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.switchover" call. @@ -9336,7 +9336,7 @@ func (c *InstancesTruncateLogCall) doRequest(alt string) (*http.Response, error) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.truncateLog" call. @@ -9442,7 +9442,7 @@ func (c *InstancesUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.instances.update" call. @@ -9542,7 +9542,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.operations.cancel" call. @@ -9653,7 +9653,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "operation": c.operation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.operations.get" call. @@ -9782,7 +9782,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.operations.list" call. @@ -9915,7 +9915,7 @@ func (c *ProjectsInstancesGetDiskShrinkConfigCall) doRequest(alt string) (*http. "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.getDiskShrinkConfig" call. @@ -10027,7 +10027,7 @@ func (c *ProjectsInstancesGetLatestRecoveryTimeCall) doRequest(alt string) (*htt "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.getLatestRecoveryTime" call. @@ -10133,7 +10133,7 @@ func (c *ProjectsInstancesPerformDiskShrinkCall) doRequest(alt string) (*http.Re "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.performDiskShrink" call. @@ -10238,7 +10238,7 @@ func (c *ProjectsInstancesRescheduleMaintenanceCall) doRequest(alt string) (*htt "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.rescheduleMaintenance" call. @@ -10343,7 +10343,7 @@ func (c *ProjectsInstancesResetReplicaSizeCall) doRequest(alt string) (*http.Res "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.resetReplicaSize" call. @@ -10448,7 +10448,7 @@ func (c *ProjectsInstancesStartExternalSyncCall) doRequest(alt string) (*http.Re "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.startExternalSync" call. @@ -10554,7 +10554,7 @@ func (c *ProjectsInstancesVerifyExternalSyncSettingsCall) doRequest(alt string) "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.projects.instances.verifyExternalSyncSettings" call. @@ -10663,7 +10663,7 @@ func (c *SslCertsCreateEphemeralCall) doRequest(alt string) (*http.Response, err "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.createEphemeral" call. @@ -10767,7 +10767,7 @@ func (c *SslCertsDeleteCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "sha1Fingerprint": c.sha1Fingerprint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.delete" call. @@ -10884,7 +10884,7 @@ func (c *SslCertsGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "sha1Fingerprint": c.sha1Fingerprint, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.get" call. @@ -10991,7 +10991,7 @@ func (c *SslCertsInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.insert" call. @@ -11103,7 +11103,7 @@ func (c *SslCertsListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.sslCerts.list" call. @@ -11212,7 +11212,7 @@ func (c *TiersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.tiers.list" call. @@ -11324,7 +11324,7 @@ func (c *UsersDeleteCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.delete" call. @@ -11445,7 +11445,7 @@ func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) { "instance": c.instance, "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.get" call. @@ -11550,7 +11550,7 @@ func (c *UsersInsertCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.insert" call. @@ -11661,7 +11661,7 @@ func (c *UsersListCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.list" call. @@ -11779,7 +11779,7 @@ func (c *UsersUpdateCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "instance": c.instance, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sql.users.update" call. diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index b16e3f227b2..56ebb804366 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -2819,7 +2819,7 @@ func (c *AnywhereCachesDisableCall) doRequest(alt string) (*http.Response, error "bucket": c.bucket, "anywhereCacheId": c.anywhereCacheId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.anywhereCaches.disable" call. @@ -2930,7 +2930,7 @@ func (c *AnywhereCachesGetCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "anywhereCacheId": c.anywhereCacheId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.anywhereCaches.get" call. @@ -3031,7 +3031,7 @@ func (c *AnywhereCachesInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.anywhereCaches.insert" call. @@ -3154,7 +3154,7 @@ func (c *AnywhereCachesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.anywhereCaches.list" call. @@ -3274,7 +3274,7 @@ func (c *AnywhereCachesPauseCall) doRequest(alt string) (*http.Response, error) "bucket": c.bucket, "anywhereCacheId": c.anywhereCacheId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.anywhereCaches.pause" call. @@ -3373,7 +3373,7 @@ func (c *AnywhereCachesResumeCall) doRequest(alt string) (*http.Response, error) "bucket": c.bucket, "anywhereCacheId": c.anywhereCacheId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.anywhereCaches.resume" call. @@ -3479,7 +3479,7 @@ func (c *AnywhereCachesUpdateCall) doRequest(alt string) (*http.Response, error) "bucket": c.bucket, "anywhereCacheId": c.anywhereCacheId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.anywhereCaches.update" call. @@ -3589,7 +3589,7 @@ func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.delete" call. @@ -3686,7 +3686,7 @@ func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, err "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.get" call. @@ -3795,7 +3795,7 @@ func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.insert" call. @@ -3910,7 +3910,7 @@ func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.list" call. @@ -4025,7 +4025,7 @@ func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, e "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.patch" call. @@ -4140,7 +4140,7 @@ func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.update" call. @@ -4259,7 +4259,7 @@ func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.delete" call. @@ -4395,7 +4395,7 @@ func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.get" call. @@ -4518,7 +4518,7 @@ func (c *BucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.getIamPolicy" call. @@ -4634,7 +4634,7 @@ func (c *BucketsGetStorageLayoutCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.getStorageLayout" call. @@ -4816,7 +4816,7 @@ func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.insert" call. @@ -4969,7 +4969,7 @@ func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.list" call. @@ -5095,7 +5095,7 @@ func (c *BucketsLockRetentionPolicyCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.lockRetentionPolicy" call. @@ -5290,7 +5290,7 @@ func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.patch" call. @@ -5394,7 +5394,7 @@ func (c *BucketsRestoreCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.restore" call. @@ -5479,7 +5479,7 @@ func (c *BucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.setIamPolicy" call. @@ -5596,7 +5596,7 @@ func (c *BucketsTestIamPermissionsCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.testIamPermissions" call. @@ -5792,7 +5792,7 @@ func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.update" call. @@ -5886,7 +5886,7 @@ func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.channels.stop" call. @@ -5972,7 +5972,7 @@ func (c *DefaultObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Res "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.delete" call. @@ -6070,7 +6070,7 @@ func (c *DefaultObjectAccessControlsGetCall) doRequest(alt string) (*http.Respon "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.get" call. @@ -6179,7 +6179,7 @@ func (c *DefaultObjectAccessControlsInsertCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.insert" call. @@ -6310,7 +6310,7 @@ func (c *DefaultObjectAccessControlsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.list" call. @@ -6425,7 +6425,7 @@ func (c *DefaultObjectAccessControlsPatchCall) doRequest(alt string) (*http.Resp "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.patch" call. @@ -6540,7 +6540,7 @@ func (c *DefaultObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Res "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.update" call. @@ -6656,7 +6656,7 @@ func (c *FoldersDeleteCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "folder": c.folder, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.folders.delete" call. @@ -6762,7 +6762,7 @@ func (c *FoldersGetCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "folder": c.folder, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.folders.get" call. @@ -6871,7 +6871,7 @@ func (c *FoldersInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.folders.insert" call. @@ -7028,7 +7028,7 @@ func (c *FoldersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.folders.list" call. @@ -7169,7 +7169,7 @@ func (c *FoldersRenameCall) doRequest(alt string) (*http.Response, error) { "sourceFolder": c.sourceFolder, "destinationFolder": c.destinationFolder, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.folders.rename" call. @@ -7294,7 +7294,7 @@ func (c *ManagedFoldersDeleteCall) doRequest(alt string) (*http.Response, error) "bucket": c.bucket, "managedFolder": c.managedFolder, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.managedFolders.delete" call. @@ -7399,7 +7399,7 @@ func (c *ManagedFoldersGetCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "managedFolder": c.managedFolder, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.managedFolders.get" call. @@ -7526,7 +7526,7 @@ func (c *ManagedFoldersGetIamPolicyCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "managedFolder": c.managedFolder, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.managedFolders.getIamPolicy" call. @@ -7627,7 +7627,7 @@ func (c *ManagedFoldersInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.managedFolders.insert" call. @@ -7755,7 +7755,7 @@ func (c *ManagedFoldersListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.managedFolders.list" call. @@ -7888,7 +7888,7 @@ func (c *ManagedFoldersSetIamPolicyCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "managedFolder": c.managedFolder, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.managedFolders.setIamPolicy" call. @@ -8009,7 +8009,7 @@ func (c *ManagedFoldersTestIamPermissionsCall) doRequest(alt string) (*http.Resp "bucket": c.bucket, "managedFolder": c.managedFolder, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.managedFolders.testIamPermissions" call. @@ -8116,7 +8116,7 @@ func (c *NotificationsDeleteCall) doRequest(alt string) (*http.Response, error) "bucket": c.bucket, "notification": c.notification, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.notifications.delete" call. @@ -8211,7 +8211,7 @@ func (c *NotificationsGetCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "notification": c.notification, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.notifications.get" call. @@ -8319,7 +8319,7 @@ func (c *NotificationsInsertCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.notifications.insert" call. @@ -8433,7 +8433,7 @@ func (c *NotificationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.notifications.list" call. @@ -8556,7 +8556,7 @@ func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.delete" call. @@ -8667,7 +8667,7 @@ func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, err "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.get" call. @@ -8790,7 +8790,7 @@ func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.insert" call. @@ -8919,7 +8919,7 @@ func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, er "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.list" call. @@ -9048,7 +9048,7 @@ func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, e "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.patch" call. @@ -9177,7 +9177,7 @@ func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.update" call. @@ -9280,7 +9280,7 @@ func (c *ObjectsBulkRestoreCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.bulkRestore" call. @@ -9455,7 +9455,7 @@ func (c *ObjectsComposeCall) doRequest(alt string) (*http.Response, error) { "destinationBucket": c.destinationBucket, "destinationObject": c.destinationObject, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.compose" call. @@ -9713,7 +9713,7 @@ func (c *ObjectsCopyCall) doRequest(alt string) (*http.Response, error) { "destinationBucket": c.destinationBucket, "destinationObject": c.destinationObject, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.copy" call. @@ -9866,7 +9866,7 @@ func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.delete" call. @@ -10027,7 +10027,7 @@ func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, true) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -10171,7 +10171,7 @@ func (c *ObjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.getIamPolicy" call. @@ -10468,9 +10468,9 @@ func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, }) if c.retry != nil { - return gensupport.SendRequestWithRetry(c.ctx_, c.s.client, req, c.retry) + return gensupport.SendRequestWithRetry(c.ctx_, c.s.client, req, c.retry, false) } - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.insert" call. @@ -10708,7 +10708,7 @@ func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.list" call. @@ -10937,7 +10937,7 @@ func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.patch" call. @@ -11102,7 +11102,7 @@ func (c *ObjectsRestoreCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.restore" call. @@ -11382,7 +11382,7 @@ func (c *ObjectsRewriteCall) doRequest(alt string) (*http.Response, error) { "destinationBucket": c.destinationBucket, "destinationObject": c.destinationObject, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.rewrite" call. @@ -11505,7 +11505,7 @@ func (c *ObjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.setIamPolicy" call. @@ -11636,7 +11636,7 @@ func (c *ObjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, e "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.testIamPermissions" call. @@ -11845,7 +11845,7 @@ func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.update" call. @@ -12034,7 +12034,7 @@ func (c *ObjectsWatchAllCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.watchAll" call. @@ -12135,7 +12135,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "operationId": c.operationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.operations.cancel" call. @@ -12223,7 +12223,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "operationId": c.operationId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.operations.get" call. @@ -12355,7 +12355,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.operations.list" call. @@ -12481,7 +12481,7 @@ func (c *ProjectsHmacKeysCreateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.projects.hmacKeys.create" call. @@ -12587,7 +12587,7 @@ func (c *ProjectsHmacKeysDeleteCall) doRequest(alt string) (*http.Response, erro "projectId": c.projectId, "accessId": c.accessId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.projects.hmacKeys.delete" call. @@ -12682,7 +12682,7 @@ func (c *ProjectsHmacKeysGetCall) doRequest(alt string) (*http.Response, error) "projectId": c.projectId, "accessId": c.accessId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.projects.hmacKeys.get" call. @@ -12829,7 +12829,7 @@ func (c *ProjectsHmacKeysListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.projects.hmacKeys.list" call. @@ -12966,7 +12966,7 @@ func (c *ProjectsHmacKeysUpdateCall) doRequest(alt string) (*http.Response, erro "projectId": c.projectId, "accessId": c.accessId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.projects.hmacKeys.update" call. @@ -13082,7 +13082,7 @@ func (c *ProjectsServiceAccountGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.projects.serviceAccount.get" call. diff --git a/storage/v1beta1/storage-gen.go b/storage/v1beta1/storage-gen.go index 93c88c316f0..a08c144732d 100644 --- a/storage/v1beta1/storage-gen.go +++ b/storage/v1beta1/storage-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -10,6 +10,17 @@ // // For product documentation, see: https://developers.google.com/storage/docs/json_api/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -19,28 +30,31 @@ // ctx := context.Background() // storageService, err := storage.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // storageService, err := storage.NewService(ctx, option.WithScopes(storage.DevstorageReadWriteScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // storageService, err := storage.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // storageService, err := storage.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package storage // import "google.golang.org/api/storage/v1beta1" import ( @@ -55,9 +69,12 @@ import ( "strconv" "strings" + "github.com/googleapis/gax-go/v2" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -74,11 +91,15 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version +var _ = gax.Version const apiId = "storage:v1beta1" const apiName = "storage" const apiVersion = "v1beta1" const basePath = "https://www.googleapis.com/storage/v1beta1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/storage/v1beta1/" // OAuth2 scopes used by this API. const ( @@ -94,13 +115,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -193,96 +217,72 @@ type ObjectsService struct { type Bucket struct { // Acl: Access controls on the bucket. Acl []*BucketAccessControl `json:"acl,omitempty"` - - // DefaultObjectAcl: Default access controls to apply to new objects - // when no ACL is provided. + // DefaultObjectAcl: Default access controls to apply to new objects when no + // ACL is provided. DefaultObjectAcl []*ObjectAccessControl `json:"defaultObjectAcl,omitempty"` - // Id: The name of the bucket. Id string `json:"id,omitempty"` - - // Kind: The kind of item this is. For buckets, this is always - // storage#bucket. + // Kind: The kind of item this is. For buckets, this is always storage#bucket. Kind string `json:"kind,omitempty"` - - // Location: The location of the bucket. Object data for objects in the - // bucket resides in physical storage in this location. Can be US or EU. - // Defaults to US. + // Location: The location of the bucket. Object data for objects in the bucket + // resides in physical storage in this location. Can be US or EU. Defaults to + // US. Location string `json:"location,omitempty"` - - // Owner: The owner of the bucket. This will always be the project - // team's owner group. + // Owner: The owner of the bucket. This will always be the project team's owner + // group. Owner *BucketOwner `json:"owner,omitempty"` - // ProjectId: The project the bucket belongs to. ProjectId uint64 `json:"projectId,omitempty,string"` - // SelfLink: The URI of this bucket. SelfLink string `json:"selfLink,omitempty"` - // TimeCreated: Creation time of the bucket in RFC 3339 format. TimeCreated string `json:"timeCreated,omitempty"` - // Website: The bucket's website configuration. Website *BucketWebsite `json:"website,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Acl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Acl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Acl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Acl") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Bucket) MarshalJSON() ([]byte, error) { +func (s Bucket) MarshalJSON() ([]byte, error) { type NoMethod Bucket - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BucketOwner: The owner of the bucket. This will always be the project -// team's owner group. +// BucketOwner: The owner of the bucket. This will always be the project team's +// owner group. type BucketOwner struct { // Entity: The entity, in the form group-groupId. Entity string `json:"entity,omitempty"` - // EntityId: The ID for the entity. EntityId string `json:"entityId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entity") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Entity") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketOwner) MarshalJSON() ([]byte, error) { +func (s BucketOwner) MarshalJSON() ([]byte, error) { type NoMethod BucketOwner - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BucketWebsite: The bucket's website configuration. @@ -290,48 +290,36 @@ type BucketWebsite struct { // MainPageSuffix: Behaves as the bucket's directory index where missing // objects are treated as potential directories. MainPageSuffix string `json:"mainPageSuffix,omitempty"` - - // NotFoundPage: The custom object to return when a requested resource - // is not found. + // NotFoundPage: The custom object to return when a requested resource is not + // found. NotFoundPage string `json:"notFoundPage,omitempty"` - // ForceSendFields is a list of field names (e.g. "MainPageSuffix") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MainPageSuffix") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MainPageSuffix") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketWebsite) MarshalJSON() ([]byte, error) { +func (s BucketWebsite) MarshalJSON() ([]byte, error) { type NoMethod BucketWebsite - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BucketAccessControl: An access-control entry. type BucketAccessControl struct { // Bucket: The name of the bucket. Bucket string `json:"bucket,omitempty"` - // Domain: The domain associated with the entity, if any. Domain string `json:"domain,omitempty"` - // Email: The email address associated with the entity, if any. Email string `json:"email,omitempty"` - - // Entity: The entity holding the permission, in one of the following - // forms: + // Entity: The entity holding the permission, in one of the following forms: // - user-userId // - user-email // - group-groupId @@ -345,297 +333,222 @@ type BucketAccessControl struct { // - To refer to all members of the Google Apps for Business domain // example.com, the entity would be domain-example.com. Entity string `json:"entity,omitempty"` - // EntityId: The ID for the entity, if any. EntityId string `json:"entityId,omitempty"` - // Id: The ID of the access-control entry. Id string `json:"id,omitempty"` - - // Kind: The kind of item this is. For bucket access control entries, - // this is always storage#bucketAccessControl. + // Kind: The kind of item this is. For bucket access control entries, this is + // always storage#bucketAccessControl. Kind string `json:"kind,omitempty"` - - // Role: The access permission for the entity. Can be READER, WRITER, or - // OWNER. + // Role: The access permission for the entity. Can be READER, WRITER, or OWNER. Role string `json:"role,omitempty"` - // SelfLink: The link to this access-control entry. SelfLink string `json:"selfLink,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketAccessControl) MarshalJSON() ([]byte, error) { +func (s BucketAccessControl) MarshalJSON() ([]byte, error) { type NoMethod BucketAccessControl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BucketAccessControls: An access-control list. type BucketAccessControls struct { // Items: The list of items. Items []*BucketAccessControl `json:"items,omitempty"` - - // Kind: The kind of item this is. For lists of bucket access control - // entries, this is always storage#bucketAccessControls. + // Kind: The kind of item this is. For lists of bucket access control entries, + // this is always storage#bucketAccessControls. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketAccessControls) MarshalJSON() ([]byte, error) { +func (s BucketAccessControls) MarshalJSON() ([]byte, error) { type NoMethod BucketAccessControls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Buckets: A list of buckets. type Buckets struct { // Items: The list of items. Items []*Bucket `json:"items,omitempty"` - // Kind: The kind of item this is. For lists of buckets, this is always // storage#buckets. Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, used to page through large - // result sets. Provide this value in a subsequent request to return the - // next page of results. + // NextPageToken: The continuation token, used to page through large result + // sets. Provide this value in a subsequent request to return the next page of + // results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Buckets) MarshalJSON() ([]byte, error) { +func (s Buckets) MarshalJSON() ([]byte, error) { type NoMethod Buckets - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Object: An object. type Object struct { // Acl: Access controls on the object. Acl []*ObjectAccessControl `json:"acl,omitempty"` - // Bucket: The bucket containing this object. Bucket string `json:"bucket,omitempty"` - // CacheControl: Cache-Control directive for the object data. CacheControl string `json:"cacheControl,omitempty"` - // ContentDisposition: Content-Disposition of the object data. ContentDisposition string `json:"contentDisposition,omitempty"` - // ContentEncoding: Content-Encoding of the object data. ContentEncoding string `json:"contentEncoding,omitempty"` - // ContentLanguage: Content-Language of the object data. ContentLanguage string `json:"contentLanguage,omitempty"` - // Id: The ID of the object. Id string `json:"id,omitempty"` - - // Kind: The kind of item this is. For objects, this is always - // storage#object. + // Kind: The kind of item this is. For objects, this is always storage#object. Kind string `json:"kind,omitempty"` - - // Media: Object media data. Provided on your behalf when uploading raw - // media or multipart/related with an auxiliary media part. + // Media: Object media data. Provided on your behalf when uploading raw media + // or multipart/related with an auxiliary media part. Media *ObjectMedia `json:"media,omitempty"` - // Metadata: User-provided metadata, in key/value pairs. Metadata map[string]string `json:"metadata,omitempty"` - - // Name: The name of this object. Required if not specified by URL - // parameter. + // Name: The name of this object. Required if not specified by URL parameter. Name string `json:"name,omitempty"` - - // Owner: The owner of the object. This will always be the uploader of - // the object. + // Owner: The owner of the object. This will always be the uploader of the + // object. Owner *ObjectOwner `json:"owner,omitempty"` - // SelfLink: The link to this object. SelfLink string `json:"selfLink,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Acl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Acl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Acl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Acl") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Object) MarshalJSON() ([]byte, error) { +func (s Object) MarshalJSON() ([]byte, error) { type NoMethod Object - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ObjectMedia: Object media data. Provided on your behalf when -// uploading raw media or multipart/related with an auxiliary media -// part. +// ObjectMedia: Object media data. Provided on your behalf when uploading raw +// media or multipart/related with an auxiliary media part. type ObjectMedia struct { - // Algorithm: Hash algorithm used. Currently only MD5 is supported. - // Required if a hash is provided. + // Algorithm: Hash algorithm used. Currently only MD5 is supported. Required if + // a hash is provided. Algorithm string `json:"algorithm,omitempty"` - // ContentType: Content-Type of the object data. ContentType string `json:"contentType,omitempty"` - - // Data: URL-safe Base64-encoded data. This property can be used to - // insert objects under 64KB in size, and will only be returned in - // response to the get method for objects so created. When this resource - // is returned in response to the list method, this property is omitted. + // Data: URL-safe Base64-encoded data. This property can be used to insert + // objects under 64KB in size, and will only be returned in response to the get + // method for objects so created. When this resource is returned in response to + // the list method, this property is omitted. Data string `json:"data,omitempty"` - // Hash: Hash of the data. Required if a hash algorithm is provided. Hash string `json:"hash,omitempty"` - // Length: Content-Length of the data in bytes. Length uint64 `json:"length,omitempty,string"` - // Link: Media download link. Link string `json:"link,omitempty"` - // TimeCreated: Creation time of the data in RFC 3339 format. TimeCreated string `json:"timeCreated,omitempty"` - // ForceSendFields is a list of field names (e.g. "Algorithm") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Algorithm") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Algorithm") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectMedia) MarshalJSON() ([]byte, error) { +func (s ObjectMedia) MarshalJSON() ([]byte, error) { type NoMethod ObjectMedia - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ObjectOwner: The owner of the object. This will always be the -// uploader of the object. +// ObjectOwner: The owner of the object. This will always be the uploader of +// the object. type ObjectOwner struct { // Entity: The entity, in the form user-userId. Entity string `json:"entity,omitempty"` - // EntityId: The ID for the entity. EntityId string `json:"entityId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entity") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Entity") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectOwner) MarshalJSON() ([]byte, error) { +func (s ObjectOwner) MarshalJSON() ([]byte, error) { type NoMethod ObjectOwner - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObjectAccessControl: An access-control entry. type ObjectAccessControl struct { // Bucket: The name of the bucket. Bucket string `json:"bucket,omitempty"` - // Domain: The domain associated with the entity, if any. Domain string `json:"domain,omitempty"` - // Email: The email address associated with the entity, if any. Email string `json:"email,omitempty"` - - // Entity: The entity holding the permission, in one of the following - // forms: + // Entity: The entity holding the permission, in one of the following forms: // - user-userId // - user-email // - group-groupId @@ -649,136 +562,103 @@ type ObjectAccessControl struct { // - To refer to all members of the Google Apps for Business domain // example.com, the entity would be domain-example.com. Entity string `json:"entity,omitempty"` - // EntityId: The ID for the entity, if any. EntityId string `json:"entityId,omitempty"` - // Id: The ID of the access-control entry. Id string `json:"id,omitempty"` - - // Kind: The kind of item this is. For object access control entries, - // this is always storage#objectAccessControl. + // Kind: The kind of item this is. For object access control entries, this is + // always storage#objectAccessControl. Kind string `json:"kind,omitempty"` - // Object: The name of the object. Object string `json:"object,omitempty"` - // Role: The access permission for the entity. Can be READER or OWNER. Role string `json:"role,omitempty"` - // SelfLink: The link to this access-control entry. SelfLink string `json:"selfLink,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectAccessControl) MarshalJSON() ([]byte, error) { +func (s ObjectAccessControl) MarshalJSON() ([]byte, error) { type NoMethod ObjectAccessControl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObjectAccessControls: An access-control list. type ObjectAccessControls struct { // Items: The list of items. Items []*ObjectAccessControl `json:"items,omitempty"` - - // Kind: The kind of item this is. For lists of object access control - // entries, this is always storage#objectAccessControls. + // Kind: The kind of item this is. For lists of object access control entries, + // this is always storage#objectAccessControls. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectAccessControls) MarshalJSON() ([]byte, error) { +func (s ObjectAccessControls) MarshalJSON() ([]byte, error) { type NoMethod ObjectAccessControls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Objects: A list of objects. type Objects struct { // Items: The list of items. Items []*Object `json:"items,omitempty"` - // Kind: The kind of item this is. For lists of objects, this is always // storage#objects. Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, used to page through large - // result sets. Provide this value in a subsequent request to return the - // next page of results. + // NextPageToken: The continuation token, used to page through large result + // sets. Provide this value in a subsequent request to return the next page of + // results. NextPageToken string `json:"nextPageToken,omitempty"` - - // Prefixes: The list of prefixes of objects matching-but-not-listed up - // to and including the requested delimiter. + // Prefixes: The list of prefixes of objects matching-but-not-listed up to and + // including the requested delimiter. Prefixes []string `json:"prefixes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Objects) MarshalJSON() ([]byte, error) { +func (s Objects) MarshalJSON() ([]byte, error) { type NoMethod Objects - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "storage.bucketAccessControls.delete": - type BucketAccessControlsDeleteCall struct { s *Service bucket string @@ -788,8 +668,13 @@ type BucketAccessControlsDeleteCall struct { header_ http.Header } -// Delete: Deletes the ACL entry for the specified entity on the -// specified bucket. +// Delete: Deletes the ACL entry for the specified entity on the specified +// bucket. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *BucketAccessControlsService) Delete(bucket string, entity string) *BucketAccessControlsDeleteCall { c := &BucketAccessControlsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -798,23 +683,21 @@ func (r *BucketAccessControlsService) Delete(bucket string, entity string) *Buck } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsDeleteCall) Fields(s ...googleapi.Field) *BucketAccessControlsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsDeleteCall) Context(ctx context.Context) *BucketAccessControlsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -823,12 +706,7 @@ func (c *BucketAccessControlsDeleteCall) Header() http.Header { } func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -843,7 +721,7 @@ func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.delete" call. @@ -855,40 +733,10 @@ func (c *BucketAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes the ACL entry for the specified entity on the specified bucket.", - // "httpMethod": "DELETE", - // "id": "storage.bucketAccessControls.delete", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl/{entity}", - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.bucketAccessControls.get": +} type BucketAccessControlsGetCall struct { s *Service @@ -900,8 +748,12 @@ type BucketAccessControlsGetCall struct { header_ http.Header } -// Get: Returns the ACL entry for the specified entity on the specified -// bucket. +// Get: Returns the ACL entry for the specified entity on the specified bucket. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *BucketAccessControlsService) Get(bucket string, entity string) *BucketAccessControlsGetCall { c := &BucketAccessControlsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -910,33 +762,29 @@ func (r *BucketAccessControlsService) Get(bucket string, entity string) *BucketA } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsGetCall) Fields(s ...googleapi.Field) *BucketAccessControlsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BucketAccessControlsGetCall) IfNoneMatch(entityTag string) *BucketAccessControlsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsGetCall) Context(ctx context.Context) *BucketAccessControlsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -945,12 +793,7 @@ func (c *BucketAccessControlsGetCall) Header() http.Header { } func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -968,16 +811,15 @@ func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, err "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.get" call. -// Exactly one of *BucketAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BucketAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BucketAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BucketAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -985,17 +827,17 @@ func (c *BucketAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*BucketA if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BucketAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -1008,40 +850,7 @@ func (c *BucketAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*BucketA return nil, err } return ret, nil - // { - // "description": "Returns the ACL entry for the specified entity on the specified bucket.", - // "httpMethod": "GET", - // "id": "storage.bucketAccessControls.get", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl/{entity}", - // "response": { - // "$ref": "BucketAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.bucketAccessControls.insert": +} type BucketAccessControlsInsertCall struct { s *Service @@ -1053,6 +862,8 @@ type BucketAccessControlsInsertCall struct { } // Insert: Creates a new ACL entry on the specified bucket. +// +// - bucket: Name of a bucket. func (r *BucketAccessControlsService) Insert(bucket string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsInsertCall { c := &BucketAccessControlsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1061,23 +872,21 @@ func (r *BucketAccessControlsService) Insert(bucket string, bucketaccesscontrol } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsInsertCall) Fields(s ...googleapi.Field) *BucketAccessControlsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsInsertCall) Context(ctx context.Context) *BucketAccessControlsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1086,18 +895,12 @@ func (c *BucketAccessControlsInsertCall) Header() http.Header { } func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucketaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl") @@ -1110,16 +913,15 @@ func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.insert" call. -// Exactly one of *BucketAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BucketAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BucketAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BucketAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1127,17 +929,17 @@ func (c *BucketAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*Buck if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BucketAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -1150,36 +952,7 @@ func (c *BucketAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*Buck return nil, err } return ret, nil - // { - // "description": "Creates a new ACL entry on the specified bucket.", - // "httpMethod": "POST", - // "id": "storage.bucketAccessControls.insert", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl", - // "request": { - // "$ref": "BucketAccessControl" - // }, - // "response": { - // "$ref": "BucketAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.bucketAccessControls.list": +} type BucketAccessControlsListCall struct { s *Service @@ -1191,6 +964,8 @@ type BucketAccessControlsListCall struct { } // List: Retrieves ACL entries on the specified bucket. +// +// - bucket: Name of a bucket. func (r *BucketAccessControlsService) List(bucket string) *BucketAccessControlsListCall { c := &BucketAccessControlsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1198,33 +973,29 @@ func (r *BucketAccessControlsService) List(bucket string) *BucketAccessControlsL } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsListCall) Fields(s ...googleapi.Field) *BucketAccessControlsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BucketAccessControlsListCall) IfNoneMatch(entityTag string) *BucketAccessControlsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsListCall) Context(ctx context.Context) *BucketAccessControlsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1233,12 +1004,7 @@ func (c *BucketAccessControlsListCall) Header() http.Header { } func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1255,16 +1021,15 @@ func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.list" call. -// Exactly one of *BucketAccessControls or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BucketAccessControls.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BucketAccessControls.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BucketAccessControlsListCall) Do(opts ...googleapi.CallOption) (*BucketAccessControls, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1272,17 +1037,17 @@ func (c *BucketAccessControlsListCall) Do(opts ...googleapi.CallOption) (*Bucket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BucketAccessControls{ ServerResponse: googleapi.ServerResponse{ @@ -1295,33 +1060,7 @@ func (c *BucketAccessControlsListCall) Do(opts ...googleapi.CallOption) (*Bucket return nil, err } return ret, nil - // { - // "description": "Retrieves ACL entries on the specified bucket.", - // "httpMethod": "GET", - // "id": "storage.bucketAccessControls.list", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl", - // "response": { - // "$ref": "BucketAccessControls" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.bucketAccessControls.patch": +} type BucketAccessControlsPatchCall struct { s *Service @@ -1333,8 +1072,13 @@ type BucketAccessControlsPatchCall struct { header_ http.Header } -// Patch: Updates an ACL entry on the specified bucket. This method -// supports patch semantics. +// Patch: Updates an ACL entry on the specified bucket. This method supports +// patch semantics. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *BucketAccessControlsService) Patch(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsPatchCall { c := &BucketAccessControlsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1344,23 +1088,21 @@ func (r *BucketAccessControlsService) Patch(bucket string, entity string, bucket } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsPatchCall) Fields(s ...googleapi.Field) *BucketAccessControlsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsPatchCall) Context(ctx context.Context) *BucketAccessControlsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1369,18 +1111,12 @@ func (c *BucketAccessControlsPatchCall) Header() http.Header { } func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucketaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl/{entity}") @@ -1394,16 +1130,15 @@ func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, e "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.patch" call. -// Exactly one of *BucketAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BucketAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BucketAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BucketAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1411,17 +1146,17 @@ func (c *BucketAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*Bucke if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BucketAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -1434,43 +1169,7 @@ func (c *BucketAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*Bucke return nil, err } return ret, nil - // { - // "description": "Updates an ACL entry on the specified bucket. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "storage.bucketAccessControls.patch", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl/{entity}", - // "request": { - // "$ref": "BucketAccessControl" - // }, - // "response": { - // "$ref": "BucketAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.bucketAccessControls.update": +} type BucketAccessControlsUpdateCall struct { s *Service @@ -1483,6 +1182,11 @@ type BucketAccessControlsUpdateCall struct { } // Update: Updates an ACL entry on the specified bucket. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *BucketAccessControlsService) Update(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsUpdateCall { c := &BucketAccessControlsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1492,23 +1196,21 @@ func (r *BucketAccessControlsService) Update(bucket string, entity string, bucke } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsUpdateCall) Fields(s ...googleapi.Field) *BucketAccessControlsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsUpdateCall) Context(ctx context.Context) *BucketAccessControlsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1517,18 +1219,12 @@ func (c *BucketAccessControlsUpdateCall) Header() http.Header { } func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucketaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl/{entity}") @@ -1542,16 +1238,15 @@ func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.update" call. -// Exactly one of *BucketAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BucketAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BucketAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BucketAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1559,17 +1254,17 @@ func (c *BucketAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*Buck if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BucketAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -1582,43 +1277,7 @@ func (c *BucketAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*Buck return nil, err } return ret, nil - // { - // "description": "Updates an ACL entry on the specified bucket.", - // "httpMethod": "PUT", - // "id": "storage.bucketAccessControls.update", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl/{entity}", - // "request": { - // "$ref": "BucketAccessControl" - // }, - // "response": { - // "$ref": "BucketAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.buckets.delete": +} type BucketsDeleteCall struct { s *Service @@ -1629,6 +1288,8 @@ type BucketsDeleteCall struct { } // Delete: Deletes an empty bucket. +// +// - bucket: Name of a bucket. func (r *BucketsService) Delete(bucket string) *BucketsDeleteCall { c := &BucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1636,23 +1297,21 @@ func (r *BucketsService) Delete(bucket string) *BucketsDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsDeleteCall) Fields(s ...googleapi.Field) *BucketsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsDeleteCall) Context(ctx context.Context) *BucketsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1661,12 +1320,7 @@ func (c *BucketsDeleteCall) Header() http.Header { } func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1680,7 +1334,7 @@ func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.delete" call. @@ -1692,34 +1346,10 @@ func (c *BucketsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes an empty bucket.", - // "httpMethod": "DELETE", - // "id": "storage.buckets.delete", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}", - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.buckets.get": +} type BucketsGetCall struct { s *Service @@ -1731,14 +1361,16 @@ type BucketsGetCall struct { } // Get: Returns metadata for the specified bucket. +// +// - bucket: Name of a bucket. func (r *BucketsService) Get(bucket string) *BucketsGetCall { c := &BucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to no_acl. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to no_acl. // // Possible values: // @@ -1750,33 +1382,29 @@ func (c *BucketsGetCall) Projection(projection string) *BucketsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsGetCall) Fields(s ...googleapi.Field) *BucketsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BucketsGetCall) IfNoneMatch(entityTag string) *BucketsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsGetCall) Context(ctx context.Context) *BucketsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1785,12 +1413,7 @@ func (c *BucketsGetCall) Header() http.Header { } func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1807,16 +1430,14 @@ func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.get" call. -// Exactly one of *Bucket or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Bucket.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Bucket.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1824,17 +1445,17 @@ func (c *BucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Bucket{ ServerResponse: googleapi.ServerResponse{ @@ -1847,48 +1468,7 @@ func (c *BucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { return nil, err } return ret, nil - // { - // "description": "Returns metadata for the specified bucket.", - // "httpMethod": "GET", - // "id": "storage.buckets.get", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to no_acl.", - // "enum": [ - // "full", - // "no_acl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit acl and defaultObjectAcl properties." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}", - // "response": { - // "$ref": "Bucket" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.buckets.insert": +} type BucketsInsertCall struct { s *Service @@ -1905,10 +1485,9 @@ func (r *BucketsService) Insert(bucket *Bucket) *BucketsInsertCall { return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to no_acl, unless the bucket resource -// specifies acl or defaultObjectAcl properties, when it defaults to -// full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to no_acl, unless the bucket resource specifies acl or +// defaultObjectAcl properties, when it defaults to full. // // Possible values: // @@ -1920,23 +1499,21 @@ func (c *BucketsInsertCall) Projection(projection string) *BucketsInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsInsertCall) Fields(s ...googleapi.Field) *BucketsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsInsertCall) Context(ctx context.Context) *BucketsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1945,18 +1522,12 @@ func (c *BucketsInsertCall) Header() http.Header { } func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucket) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b") @@ -1966,16 +1537,14 @@ func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.insert" call. -// Exactly one of *Bucket or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Bucket.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Bucket.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BucketsInsertCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1983,17 +1552,17 @@ func (c *BucketsInsertCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Bucket{ ServerResponse: googleapi.ServerResponse{ @@ -2006,41 +1575,7 @@ func (c *BucketsInsertCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { return nil, err } return ret, nil - // { - // "description": "Creates a new bucket.", - // "httpMethod": "POST", - // "id": "storage.buckets.insert", - // "parameters": { - // "projection": { - // "description": "Set of properties to return. Defaults to no_acl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.", - // "enum": [ - // "full", - // "no_acl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit acl and defaultObjectAcl properties." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b", - // "request": { - // "$ref": "Bucket" - // }, - // "response": { - // "$ref": "Bucket" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.buckets.list": +} type BucketsListCall struct { s *Service @@ -2051,29 +1586,30 @@ type BucketsListCall struct { } // List: Retrieves a list of buckets for a given project. +// +// - projectId: A valid API project identifier. func (r *BucketsService) List(projectId uint64) *BucketsListCall { c := &BucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("projectId", fmt.Sprint(projectId)) return c } -// MaxResults sets the optional parameter "max-results": Maximum number -// of buckets to return. +// MaxResults sets the optional parameter "max-results": Maximum number of +// buckets to return. func (c *BucketsListCall) MaxResults(maxResults int64) *BucketsListCall { c.urlParams_.Set("max-results", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set of -// results to view. +// PageToken sets the optional parameter "pageToken": A previously-returned +// page token representing part of the larger set of results to view. func (c *BucketsListCall) PageToken(pageToken string) *BucketsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to no_acl. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to no_acl. // // Possible values: // @@ -2085,33 +1621,29 @@ func (c *BucketsListCall) Projection(projection string) *BucketsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsListCall) Fields(s ...googleapi.Field) *BucketsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BucketsListCall) IfNoneMatch(entityTag string) *BucketsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsListCall) Context(ctx context.Context) *BucketsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2120,12 +1652,7 @@ func (c *BucketsListCall) Header() http.Header { } func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2139,16 +1666,14 @@ func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.list" call. -// Exactly one of *Buckets or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Buckets.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Buckets.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2156,17 +1681,17 @@ func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Buckets{ ServerResponse: googleapi.ServerResponse{ @@ -2179,58 +1704,6 @@ func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of buckets for a given project.", - // "httpMethod": "GET", - // "id": "storage.buckets.list", - // "parameterOrder": [ - // "projectId" - // ], - // "parameters": { - // "max-results": { - // "description": "Maximum number of buckets to return.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of results to view.", - // "location": "query", - // "type": "string" - // }, - // "projectId": { - // "description": "A valid API project identifier.", - // "format": "uint64", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to no_acl.", - // "enum": [ - // "full", - // "no_acl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit acl and defaultObjectAcl properties." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b", - // "response": { - // "$ref": "Buckets" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - } // Pages invokes f for each page of results. @@ -2238,7 +1711,7 @@ func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error) { // The provided context supersedes any context provided to the Context method. func (c *BucketsListCall) Pages(ctx context.Context, f func(*Buckets) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2254,8 +1727,6 @@ func (c *BucketsListCall) Pages(ctx context.Context, f func(*Buckets) error) err } } -// method id "storage.buckets.patch": - type BucketsPatchCall struct { s *Service bucket string @@ -2266,6 +1737,8 @@ type BucketsPatchCall struct { } // Patch: Updates a bucket. This method supports patch semantics. +// +// - bucket: Name of a bucket. func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall { c := &BucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -2273,8 +1746,8 @@ func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to full. // // Possible values: // @@ -2286,23 +1759,21 @@ func (c *BucketsPatchCall) Projection(projection string) *BucketsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsPatchCall) Fields(s ...googleapi.Field) *BucketsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsPatchCall) Context(ctx context.Context) *BucketsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2311,18 +1782,12 @@ func (c *BucketsPatchCall) Header() http.Header { } func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucket2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}") @@ -2335,16 +1800,14 @@ func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.patch" call. -// Exactly one of *Bucket or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Bucket.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Bucket.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2352,17 +1815,17 @@ func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Bucket{ ServerResponse: googleapi.ServerResponse{ @@ -2375,50 +1838,7 @@ func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { return nil, err } return ret, nil - // { - // "description": "Updates a bucket. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "storage.buckets.patch", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to full.", - // "enum": [ - // "full", - // "no_acl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit acl and defaultObjectAcl properties." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}", - // "request": { - // "$ref": "Bucket" - // }, - // "response": { - // "$ref": "Bucket" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.buckets.update": +} type BucketsUpdateCall struct { s *Service @@ -2430,6 +1850,8 @@ type BucketsUpdateCall struct { } // Update: Updates a bucket. +// +// - bucket: Name of a bucket. func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall { c := &BucketsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -2437,8 +1859,8 @@ func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCa return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to full. // // Possible values: // @@ -2450,23 +1872,21 @@ func (c *BucketsUpdateCall) Projection(projection string) *BucketsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsUpdateCall) Fields(s ...googleapi.Field) *BucketsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsUpdateCall) Context(ctx context.Context) *BucketsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2475,18 +1895,12 @@ func (c *BucketsUpdateCall) Header() http.Header { } func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucket2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}") @@ -2499,16 +1913,14 @@ func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.update" call. -// Exactly one of *Bucket or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Bucket.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Bucket.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2516,17 +1928,17 @@ func (c *BucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Bucket{ ServerResponse: googleapi.ServerResponse{ @@ -2539,50 +1951,7 @@ func (c *BucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { return nil, err } return ret, nil - // { - // "description": "Updates a bucket.", - // "httpMethod": "PUT", - // "id": "storage.buckets.update", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to full.", - // "enum": [ - // "full", - // "no_acl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit acl and defaultObjectAcl properties." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}", - // "request": { - // "$ref": "Bucket" - // }, - // "response": { - // "$ref": "Bucket" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.objectAccessControls.delete": +} type ObjectAccessControlsDeleteCall struct { s *Service @@ -2594,8 +1963,14 @@ type ObjectAccessControlsDeleteCall struct { header_ http.Header } -// Delete: Deletes the ACL entry for the specified entity on the -// specified object. +// Delete: Deletes the ACL entry for the specified entity on the specified +// object. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. +// - object: Name of the object. func (r *ObjectAccessControlsService) Delete(bucket string, object string, entity string) *ObjectAccessControlsDeleteCall { c := &ObjectAccessControlsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -2605,23 +1980,21 @@ func (r *ObjectAccessControlsService) Delete(bucket string, object string, entit } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsDeleteCall) Fields(s ...googleapi.Field) *ObjectAccessControlsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsDeleteCall) Context(ctx context.Context) *ObjectAccessControlsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2630,12 +2003,7 @@ func (c *ObjectAccessControlsDeleteCall) Header() http.Header { } func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2651,7 +2019,7 @@ func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.delete" call. @@ -2663,47 +2031,10 @@ func (c *ObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes the ACL entry for the specified entity on the specified object.", - // "httpMethod": "DELETE", - // "id": "storage.objectAccessControls.delete", - // "parameterOrder": [ - // "bucket", - // "object", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl/{entity}", - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.get": +} type ObjectAccessControlsGetCall struct { s *Service @@ -2716,8 +2047,13 @@ type ObjectAccessControlsGetCall struct { header_ http.Header } -// Get: Returns the ACL entry for the specified entity on the specified -// object. +// Get: Returns the ACL entry for the specified entity on the specified object. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. +// - object: Name of the object. func (r *ObjectAccessControlsService) Get(bucket string, object string, entity string) *ObjectAccessControlsGetCall { c := &ObjectAccessControlsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -2727,33 +2063,29 @@ func (r *ObjectAccessControlsService) Get(bucket string, object string, entity s } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsGetCall) Fields(s ...googleapi.Field) *ObjectAccessControlsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ObjectAccessControlsGetCall) IfNoneMatch(entityTag string) *ObjectAccessControlsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsGetCall) Context(ctx context.Context) *ObjectAccessControlsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2762,12 +2094,7 @@ func (c *ObjectAccessControlsGetCall) Header() http.Header { } func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2786,16 +2113,15 @@ func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, err "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.get" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2803,17 +2129,17 @@ func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectA if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -2826,47 +2152,7 @@ func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectA return nil, err } return ret, nil - // { - // "description": "Returns the ACL entry for the specified entity on the specified object.", - // "httpMethod": "GET", - // "id": "storage.objectAccessControls.get", - // "parameterOrder": [ - // "bucket", - // "object", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl/{entity}", - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.insert": +} type ObjectAccessControlsInsertCall struct { s *Service @@ -2879,6 +2165,9 @@ type ObjectAccessControlsInsertCall struct { } // Insert: Creates a new ACL entry on the specified object. +// +// - bucket: Name of a bucket. +// - object: Name of the object. func (r *ObjectAccessControlsService) Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall { c := &ObjectAccessControlsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -2888,23 +2177,21 @@ func (r *ObjectAccessControlsService) Insert(bucket string, object string, objec } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsInsertCall) Fields(s ...googleapi.Field) *ObjectAccessControlsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsInsertCall) Context(ctx context.Context) *ObjectAccessControlsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2913,18 +2200,12 @@ func (c *ObjectAccessControlsInsertCall) Header() http.Header { } func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl") @@ -2938,16 +2219,15 @@ func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.insert" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2955,17 +2235,17 @@ func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*Obje if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -2978,43 +2258,7 @@ func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*Obje return nil, err } return ret, nil - // { - // "description": "Creates a new ACL entry on the specified object.", - // "httpMethod": "POST", - // "id": "storage.objectAccessControls.insert", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl", - // "request": { - // "$ref": "ObjectAccessControl" - // }, - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.list": +} type ObjectAccessControlsListCall struct { s *Service @@ -3027,6 +2271,9 @@ type ObjectAccessControlsListCall struct { } // List: Retrieves ACL entries on the specified object. +// +// - bucket: Name of a bucket. +// - object: Name of the object. func (r *ObjectAccessControlsService) List(bucket string, object string) *ObjectAccessControlsListCall { c := &ObjectAccessControlsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -3035,33 +2282,29 @@ func (r *ObjectAccessControlsService) List(bucket string, object string) *Object } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsListCall) Fields(s ...googleapi.Field) *ObjectAccessControlsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ObjectAccessControlsListCall) IfNoneMatch(entityTag string) *ObjectAccessControlsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsListCall) Context(ctx context.Context) *ObjectAccessControlsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3070,12 +2313,7 @@ func (c *ObjectAccessControlsListCall) Header() http.Header { } func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3093,16 +2331,15 @@ func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, er "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.list" call. -// Exactly one of *ObjectAccessControls or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControls.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControls.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControls, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3110,17 +2347,17 @@ func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*Object if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControls{ ServerResponse: googleapi.ServerResponse{ @@ -3133,40 +2370,7 @@ func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*Object return nil, err } return ret, nil - // { - // "description": "Retrieves ACL entries on the specified object.", - // "httpMethod": "GET", - // "id": "storage.objectAccessControls.list", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl", - // "response": { - // "$ref": "ObjectAccessControls" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.patch": +} type ObjectAccessControlsPatchCall struct { s *Service @@ -3179,8 +2383,14 @@ type ObjectAccessControlsPatchCall struct { header_ http.Header } -// Patch: Updates an ACL entry on the specified object. This method -// supports patch semantics. +// Patch: Updates an ACL entry on the specified object. This method supports +// patch semantics. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. +// - object: Name of the object. func (r *ObjectAccessControlsService) Patch(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsPatchCall { c := &ObjectAccessControlsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -3191,23 +2401,21 @@ func (r *ObjectAccessControlsService) Patch(bucket string, object string, entity } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsPatchCall) Fields(s ...googleapi.Field) *ObjectAccessControlsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsPatchCall) Context(ctx context.Context) *ObjectAccessControlsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3216,18 +2424,12 @@ func (c *ObjectAccessControlsPatchCall) Header() http.Header { } func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}") @@ -3242,16 +2444,15 @@ func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, e "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.patch" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3259,17 +2460,17 @@ func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*Objec if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -3282,50 +2483,7 @@ func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*Objec return nil, err } return ret, nil - // { - // "description": "Updates an ACL entry on the specified object. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "storage.objectAccessControls.patch", - // "parameterOrder": [ - // "bucket", - // "object", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl/{entity}", - // "request": { - // "$ref": "ObjectAccessControl" - // }, - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.update": +} type ObjectAccessControlsUpdateCall struct { s *Service @@ -3339,6 +2497,12 @@ type ObjectAccessControlsUpdateCall struct { } // Update: Updates an ACL entry on the specified object. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. +// - object: Name of the object. func (r *ObjectAccessControlsService) Update(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsUpdateCall { c := &ObjectAccessControlsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -3349,23 +2513,21 @@ func (r *ObjectAccessControlsService) Update(bucket string, object string, entit } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsUpdateCall) Fields(s ...googleapi.Field) *ObjectAccessControlsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsUpdateCall) Context(ctx context.Context) *ObjectAccessControlsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3374,18 +2536,12 @@ func (c *ObjectAccessControlsUpdateCall) Header() http.Header { } func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}") @@ -3400,16 +2556,15 @@ func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.update" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3417,17 +2572,17 @@ func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*Obje if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -3440,50 +2595,7 @@ func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*Obje return nil, err } return ret, nil - // { - // "description": "Updates an ACL entry on the specified object.", - // "httpMethod": "PUT", - // "id": "storage.objectAccessControls.update", - // "parameterOrder": [ - // "bucket", - // "object", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl/{entity}", - // "request": { - // "$ref": "ObjectAccessControl" - // }, - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objects.delete": +} type ObjectsDeleteCall struct { s *Service @@ -3495,6 +2607,9 @@ type ObjectsDeleteCall struct { } // Delete: Deletes data blobs and associated metadata. +// +// - bucket: Name of the bucket in which the object resides. +// - object: Name of the object. func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall { c := &ObjectsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -3503,23 +2618,21 @@ func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsDeleteCall) Fields(s ...googleapi.Field) *ObjectsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectsDeleteCall) Context(ctx context.Context) *ObjectsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3528,12 +2641,7 @@ func (c *ObjectsDeleteCall) Header() http.Header { } func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3548,7 +2656,7 @@ func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.delete" call. @@ -3560,41 +2668,10 @@ func (c *ObjectsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes data blobs and associated metadata.", - // "httpMethod": "DELETE", - // "id": "storage.objects.delete", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which the object resides.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}", - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.objects.get": +} type ObjectsGetCall struct { s *Service @@ -3607,6 +2684,9 @@ type ObjectsGetCall struct { } // Get: Retrieves objects or their associated metadata. +// +// - bucket: Name of the bucket in which the object resides. +// - object: Name of the object. func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall { c := &ObjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -3614,8 +2694,8 @@ func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall { return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to no_acl. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to no_acl. // // Possible values: // @@ -3627,33 +2707,29 @@ func (c *ObjectsGetCall) Projection(projection string) *ObjectsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsGetCall) Fields(s ...googleapi.Field) *ObjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ObjectsGetCall) IfNoneMatch(entityTag string) *ObjectsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ObjectsGetCall) Context(ctx context.Context) *ObjectsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3662,12 +2738,7 @@ func (c *ObjectsGetCall) Header() http.Header { } func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3685,7 +2756,7 @@ func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, true) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -3699,18 +2770,16 @@ func (c *ObjectsGetCall) Download(opts ...googleapi.CallOption) (*http.Response, } if err := googleapi.CheckMediaResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "storage.objects.get" call. -// Exactly one of *Object or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Object.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Object.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3718,17 +2787,17 @@ func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Object{ ServerResponse: googleapi.ServerResponse{ @@ -3741,56 +2810,7 @@ func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves objects or their associated metadata.", - // "httpMethod": "GET", - // "id": "storage.objects.get", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which the object resides.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to no_acl.", - // "enum": [ - // "full", - // "no_acl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}", - // "response": { - // "$ref": "Object" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "storage.objects.insert": +} type ObjectsInsertCall struct { s *Service @@ -3798,11 +2818,15 @@ type ObjectsInsertCall struct { object *Object urlParams_ gensupport.URLParams mediaInfo_ *gensupport.MediaInfo + retry *gensupport.RetryConfig ctx_ context.Context header_ http.Header } // Insert: Stores new data blobs and associated metadata. +// +// - bucket: Name of the bucket in which to store the new object. Overrides the +// provided object metadata's bucket value, if any. func (r *ObjectsService) Insert(bucket string, object *Object) *ObjectsInsertCall { c := &ObjectsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -3810,17 +2834,17 @@ func (r *ObjectsService) Insert(bucket string, object *Object) *ObjectsInsertCal return c } -// Name sets the optional parameter "name": Name of the object. Required -// when the object metadata is not otherwise provided. Overrides the -// object metadata's name value, if any. +// Name sets the optional parameter "name": Name of the object. Required when +// the object metadata is not otherwise provided. Overrides the object +// metadata's name value, if any. func (c *ObjectsInsertCall) Name(name string) *ObjectsInsertCall { c.urlParams_.Set("name", name) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to no_acl, unless the object resource -// specifies the acl property, when it defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to no_acl, unless the object resource specifies the acl +// property, when it defaults to full. // // Possible values: // @@ -3831,54 +2855,76 @@ func (c *ObjectsInsertCall) Projection(projection string) *ObjectsInsertCall { return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *ObjectsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *ObjectsInsertCall { c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *ObjectsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ObjectsInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *ObjectsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ObjectsInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } +// WithRetry causes the library to retry the initial request of the upload(for +// resumable uploads) or the entire upload (for multipart uploads) ifa +// transient error occurs. This is contingent on ChunkSize being > 0 (sothat +// the input data may be buffered). The backoff argument will be used +// todetermine exponential backoff timing, and the errorFunc is used to +// determinewhich errors are considered retryable. By default, exponetial +// backoff will beapplied using gax defaults, and the following errors are +// retried: +// +// - HTTP responses with codes 408, 429, 502, 503, and 504. +// +// - Transient network errors such as connection reset and +// io.ErrUnexpectedEOF. +// +// - Errors which are considered transient using the Temporary() interface. +// +// - Wrapped versions of these errors. +func (c *ObjectsInsertCall) WithRetry(bo *gax.Backoff, errorFunc func(err error) bool) *ObjectsInsertCall { + c.retry = &gensupport.RetryConfig{ + Backoff: bo, + ShouldRetry: errorFunc, + } + return c +} + // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsInsertCall) Fields(s ...googleapi.Field) *ObjectsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *ObjectsInsertCall) Context(ctx context.Context) *ObjectsInsertCall { @@ -3886,8 +2932,8 @@ func (c *ObjectsInsertCall) Context(ctx context.Context) *ObjectsInsertCall { return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3896,18 +2942,12 @@ func (c *ObjectsInsertCall) Header() http.Header { } func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.object) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o") @@ -3931,16 +2971,17 @@ func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + if c.retry != nil { + return gensupport.SendRequestWithRetry(c.ctx_, c.s.client, req, c.retry, false) + } + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.insert" call. -// Exactly one of *Object or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Object.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Object.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3948,22 +2989,23 @@ func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { rx.Client = c.s.client rx.UserAgent = c.s.userAgent() + rx.Retry = c.retry ctx := c.ctx_ if ctx == nil { ctx = context.TODO() @@ -3974,7 +3016,7 @@ func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) { } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &Object{ @@ -3988,72 +3030,7 @@ func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) { return nil, err } return ret, nil - // { - // "description": "Stores new data blobs and associated metadata.", - // "httpMethod": "POST", - // "id": "storage.objects.insert", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/storage/v1beta1/b/{bucket}/o" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/storage/v1beta1/b/{bucket}/o" - // } - // } - // }, - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "name": { - // "description": "Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.", - // "location": "query", - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full.", - // "enum": [ - // "full", - // "no_acl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o", - // "request": { - // "$ref": "Object" - // }, - // "response": { - // "$ref": "Object" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsMediaDownload": true, - // "supportsMediaUpload": true - // } - -} - -// method id "storage.objects.list": +} type ObjectsListCall struct { s *Service @@ -4065,48 +3042,48 @@ type ObjectsListCall struct { } // List: Retrieves a list of objects matching the criteria. +// +// - bucket: Name of the bucket in which to look for objects. func (r *ObjectsService) List(bucket string) *ObjectsListCall { c := &ObjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket return c } -// Delimiter sets the optional parameter "delimiter": Returns results in -// a directory-like mode. items will contain only objects whose names, -// aside from the prefix, do not contain delimiter. Objects whose names, -// aside from the prefix, contain delimiter will have their name, -// truncated after the delimiter, returned in prefixes. Duplicate -// prefixes are omitted. +// Delimiter sets the optional parameter "delimiter": Returns results in a +// directory-like mode. items will contain only objects whose names, aside from +// the prefix, do not contain delimiter. Objects whose names, aside from the +// prefix, contain delimiter will have their name, truncated after the +// delimiter, returned in prefixes. Duplicate prefixes are omitted. func (c *ObjectsListCall) Delimiter(delimiter string) *ObjectsListCall { c.urlParams_.Set("delimiter", delimiter) return c } -// MaxResults sets the optional parameter "max-results": Maximum number -// of items plus prefixes to return. As duplicate prefixes are omitted, -// fewer total results may be returned than requested. +// MaxResults sets the optional parameter "max-results": Maximum number of +// items plus prefixes to return. As duplicate prefixes are omitted, fewer +// total results may be returned than requested. func (c *ObjectsListCall) MaxResults(maxResults int64) *ObjectsListCall { c.urlParams_.Set("max-results", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set of -// results to view. +// PageToken sets the optional parameter "pageToken": A previously-returned +// page token representing part of the larger set of results to view. func (c *ObjectsListCall) PageToken(pageToken string) *ObjectsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Prefix sets the optional parameter "prefix": Filter results to -// objects whose names begin with this prefix. +// Prefix sets the optional parameter "prefix": Filter results to objects whose +// names begin with this prefix. func (c *ObjectsListCall) Prefix(prefix string) *ObjectsListCall { c.urlParams_.Set("prefix", prefix) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to no_acl. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to no_acl. // // Possible values: // @@ -4118,33 +3095,29 @@ func (c *ObjectsListCall) Projection(projection string) *ObjectsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsListCall) Fields(s ...googleapi.Field) *ObjectsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ObjectsListCall) IfNoneMatch(entityTag string) *ObjectsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectsListCall) Context(ctx context.Context) *ObjectsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4153,12 +3126,7 @@ func (c *ObjectsListCall) Header() http.Header { } func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4175,16 +3143,14 @@ func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.list" call. -// Exactly one of *Objects or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Objects.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Objects.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4192,17 +3158,17 @@ func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Objects{ ServerResponse: googleapi.ServerResponse{ @@ -4215,68 +3181,6 @@ func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of objects matching the criteria.", - // "httpMethod": "GET", - // "id": "storage.objects.list", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which to look for objects.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "delimiter": { - // "description": "Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.", - // "location": "query", - // "type": "string" - // }, - // "max-results": { - // "description": "Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of results to view.", - // "location": "query", - // "type": "string" - // }, - // "prefix": { - // "description": "Filter results to objects whose names begin with this prefix.", - // "location": "query", - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to no_acl.", - // "enum": [ - // "full", - // "no_acl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o", - // "response": { - // "$ref": "Objects" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsSubscription": true - // } - } // Pages invokes f for each page of results. @@ -4284,7 +3188,7 @@ func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error) { // The provided context supersedes any context provided to the Context method. func (c *ObjectsListCall) Pages(ctx context.Context, f func(*Objects) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -4300,8 +3204,6 @@ func (c *ObjectsListCall) Pages(ctx context.Context, f func(*Objects) error) err } } -// method id "storage.objects.patch": - type ObjectsPatchCall struct { s *Service bucket string @@ -4312,8 +3214,11 @@ type ObjectsPatchCall struct { header_ http.Header } -// Patch: Updates a data blob's associated metadata. This method -// supports patch semantics. +// Patch: Updates a data blob's associated metadata. This method supports patch +// semantics. +// +// - bucket: Name of the bucket in which the object resides. +// - object: Name of the object. func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall { c := &ObjectsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -4322,8 +3227,8 @@ func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *O return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to full. // // Possible values: // @@ -4335,23 +3240,21 @@ func (c *ObjectsPatchCall) Projection(projection string) *ObjectsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsPatchCall) Fields(s ...googleapi.Field) *ObjectsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectsPatchCall) Context(ctx context.Context) *ObjectsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4360,18 +3263,12 @@ func (c *ObjectsPatchCall) Header() http.Header { } func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.object2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}") @@ -4385,16 +3282,14 @@ func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.patch" call. -// Exactly one of *Object or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Object.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Object.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4402,17 +3297,17 @@ func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Object{ ServerResponse: googleapi.ServerResponse{ @@ -4425,57 +3320,7 @@ func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) { return nil, err } return ret, nil - // { - // "description": "Updates a data blob's associated metadata. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "storage.objects.patch", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which the object resides.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to full.", - // "enum": [ - // "full", - // "no_acl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}", - // "request": { - // "$ref": "Object" - // }, - // "response": { - // "$ref": "Object" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.objects.update": +} type ObjectsUpdateCall struct { s *Service @@ -4488,6 +3333,9 @@ type ObjectsUpdateCall struct { } // Update: Updates a data blob's associated metadata. +// +// - bucket: Name of the bucket in which the object resides. +// - object: Name of the object. func (r *ObjectsService) Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall { c := &ObjectsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -4496,8 +3344,8 @@ func (r *ObjectsService) Update(bucket string, object string, object2 *Object) * return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to full. // // Possible values: // @@ -4509,23 +3357,21 @@ func (c *ObjectsUpdateCall) Projection(projection string) *ObjectsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsUpdateCall) Fields(s ...googleapi.Field) *ObjectsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ObjectsUpdateCall) Context(ctx context.Context) *ObjectsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4534,18 +3380,12 @@ func (c *ObjectsUpdateCall) Header() http.Header { } func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.object2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}") @@ -4559,7 +3399,7 @@ func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, true) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -4573,18 +3413,16 @@ func (c *ObjectsUpdateCall) Download(opts ...googleapi.CallOption) (*http.Respon } if err := googleapi.CheckMediaResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "storage.objects.update" call. -// Exactly one of *Object or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Object.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Object.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4592,17 +3430,17 @@ func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Object{ ServerResponse: googleapi.ServerResponse{ @@ -4615,53 +3453,4 @@ func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error) { return nil, err } return ret, nil - // { - // "description": "Updates a data blob's associated metadata.", - // "httpMethod": "PUT", - // "id": "storage.objects.update", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which the object resides.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to full.", - // "enum": [ - // "full", - // "no_acl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}", - // "request": { - // "$ref": "Object" - // }, - // "response": { - // "$ref": "Object" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsMediaDownload": true - // } - } diff --git a/storage/v1beta2/storage-gen.go b/storage/v1beta2/storage-gen.go index 96940ee87c8..d6525241878 100644 --- a/storage/v1beta2/storage-gen.go +++ b/storage/v1beta2/storage-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -10,6 +10,17 @@ // // For product documentation, see: https://developers.google.com/storage/docs/json_api/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -19,28 +30,31 @@ // ctx := context.Background() // storageService, err := storage.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // storageService, err := storage.NewService(ctx, option.WithScopes(storage.DevstorageReadWriteScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // storageService, err := storage.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // storageService, err := storage.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package storage // import "google.golang.org/api/storage/v1beta2" import ( @@ -55,7 +69,9 @@ import ( "strconv" "strings" + "github.com/googleapis/gax-go/v2" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -76,11 +92,14 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version +var _ = gax.Version const apiId = "storage:v1beta2" const apiName = "storage" const apiVersion = "v1beta2" const basePath = "https://storage.googleapis.com/storage/v1beta2/" +const basePathTemplate = "https://storage.UNIVERSE_DOMAIN/storage/v1beta2/" // OAuth2 scopes used by this API. const ( @@ -96,7 +115,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write", @@ -104,6 +123,8 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -220,365 +241,276 @@ type ObjectsService struct { type Bucket struct { // Acl: Access controls on the bucket. Acl []*BucketAccessControl `json:"acl,omitempty"` - - // Cors: The bucket's Cross-Origin Resource Sharing (CORS) - // configuration. + // Cors: The bucket's Cross-Origin Resource Sharing (CORS) configuration. Cors []*BucketCors `json:"cors,omitempty"` - - // DefaultObjectAcl: Default access controls to apply to new objects - // when no ACL is provided. + // DefaultObjectAcl: Default access controls to apply to new objects when no + // ACL is provided. DefaultObjectAcl []*ObjectAccessControl `json:"defaultObjectAcl,omitempty"` - // Etag: HTTP 1.1 Entity tag for the bucket. Etag string `json:"etag,omitempty"` - // Id: The ID of the bucket. Id string `json:"id,omitempty"` - - // Kind: The kind of item this is. For buckets, this is always - // storage#bucket. + // Kind: The kind of item this is. For buckets, this is always storage#bucket. Kind string `json:"kind,omitempty"` - // Lifecycle: The bucket's lifecycle configuration. See object lifecycle // management for more information. Lifecycle *BucketLifecycle `json:"lifecycle,omitempty"` - - // Location: The location of the bucket. Object data for objects in the - // bucket resides in physical storage within this region. Typical values - // are US and EU. Defaults to US. See the developer's guide for the - // authoritative list. + // Location: The location of the bucket. Object data for objects in the bucket + // resides in physical storage within this region. Typical values are US and + // EU. Defaults to US. See the developer's guide for the authoritative list. Location string `json:"location,omitempty"` - - // Logging: The bucket's logging configuration, which defines the - // destination bucket and optional name prefix for the current bucket's - // logs. + // Logging: The bucket's logging configuration, which defines the destination + // bucket and optional name prefix for the current bucket's logs. Logging *BucketLogging `json:"logging,omitempty"` - // Metageneration: The metadata generation of this bucket. Metageneration int64 `json:"metageneration,omitempty,string"` - // Name: The name of the bucket. Name string `json:"name,omitempty"` - - // Owner: The owner of the bucket. This is always the project team's - // owner group. + // Owner: The owner of the bucket. This is always the project team's owner + // group. Owner *BucketOwner `json:"owner,omitempty"` - // SelfLink: The URI of this bucket. SelfLink string `json:"selfLink,omitempty"` - - // StorageClass: The bucket's storage class. This defines how objects in - // the bucket are stored and determines the SLA and the cost of storage. - // Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. - // Defaults to STANDARD. See the developer's guide for the authoritative - // list. + // StorageClass: The bucket's storage class. This defines how objects in the + // bucket are stored and determines the SLA and the cost of storage. Typical + // values are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. + // See the developer's guide for the authoritative list. StorageClass string `json:"storageClass,omitempty"` - // TimeCreated: Creation time of the bucket in RFC 3339 format. TimeCreated string `json:"timeCreated,omitempty"` - // Versioning: The bucket's versioning configuration. Versioning *BucketVersioning `json:"versioning,omitempty"` - // Website: The bucket's website configuration. Website *BucketWebsite `json:"website,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Acl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Acl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Acl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Acl") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Bucket) MarshalJSON() ([]byte, error) { +func (s Bucket) MarshalJSON() ([]byte, error) { type NoMethod Bucket - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BucketCors struct { // MaxAgeSeconds: The value, in seconds, to return in the // Access-Control-Max-Age header used in preflight responses. MaxAgeSeconds int64 `json:"maxAgeSeconds,omitempty"` - - // Method: The list of HTTP methods on which to include CORS response - // headers: GET, OPTIONS, POST, etc. Note, "*" is permitted in the list - // of methods, and means "any method". + // Method: The list of HTTP methods on which to include CORS response headers: + // GET, OPTIONS, POST, etc. Note, "*" is permitted in the list of methods, and + // means "any method". Method []string `json:"method,omitempty"` - - // Origin: The list of Origins eligible to receive CORS response - // headers. Note: "*" is permitted in the list of origins, and means - // "any Origin". + // Origin: The list of Origins eligible to receive CORS response headers. Note: + // "*" is permitted in the list of origins, and means "any Origin". Origin []string `json:"origin,omitempty"` - - // ResponseHeader: The list of HTTP headers other than the simple - // response headers to give permission for the user-agent to share - // across domains. + // ResponseHeader: The list of HTTP headers other than the simple response + // headers to give permission for the user-agent to share across domains. ResponseHeader []string `json:"responseHeader,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxAgeSeconds") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxAgeSeconds") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MaxAgeSeconds") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketCors) MarshalJSON() ([]byte, error) { +func (s BucketCors) MarshalJSON() ([]byte, error) { type NoMethod BucketCors - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BucketLifecycle: The bucket's lifecycle configuration. See object -// lifecycle management for more information. +// BucketLifecycle: The bucket's lifecycle configuration. See object lifecycle +// management for more information. type BucketLifecycle struct { - // Rule: A lifecycle management rule, which is made of an action to take - // and the condition(s) under which the action will be taken. + // Rule: A lifecycle management rule, which is made of an action to take and + // the condition(s) under which the action will be taken. Rule []*BucketLifecycleRule `json:"rule,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Rule") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Rule") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Rule") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Rule") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketLifecycle) MarshalJSON() ([]byte, error) { +func (s BucketLifecycle) MarshalJSON() ([]byte, error) { type NoMethod BucketLifecycle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type BucketLifecycleRule struct { // Action: The action to take. Action *BucketLifecycleRuleAction `json:"action,omitempty"` - // Condition: The condition(s) under which the action will be taken. Condition *BucketLifecycleRuleCondition `json:"condition,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketLifecycleRule) MarshalJSON() ([]byte, error) { +func (s BucketLifecycleRule) MarshalJSON() ([]byte, error) { type NoMethod BucketLifecycleRule - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BucketLifecycleRuleAction: The action to take. type BucketLifecycleRuleAction struct { // Type: Type of the action. Currently only Delete is supported. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Type") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Type") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketLifecycleRuleAction) MarshalJSON() ([]byte, error) { +func (s BucketLifecycleRuleAction) MarshalJSON() ([]byte, error) { type NoMethod BucketLifecycleRuleAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BucketLifecycleRuleCondition: The condition(s) under which the action -// will be taken. +// BucketLifecycleRuleCondition: The condition(s) under which the action will +// be taken. type BucketLifecycleRuleCondition struct { - // Age: Age of an object (in days). This condition is satisfied when an - // object reaches the specified age. + // Age: Age of an object (in days). This condition is satisfied when an object + // reaches the specified age. Age int64 `json:"age,omitempty"` - - // CreatedBefore: A date in RFC 3339 format with only the date part, - // e.g. "2013-01-15". This condition is satisfied when an object is - // created before midnight of the specified date in UTC. + // CreatedBefore: A date in RFC 3339 format with only the date part, e.g. + // "2013-01-15". This condition is satisfied when an object is created before + // midnight of the specified date in UTC. CreatedBefore string `json:"createdBefore,omitempty"` - - // IsLive: Relevant only for versioned objects. If the value is true, - // this condition matches live objects; if the value is false, it - // matches archived objects. + // IsLive: Relevant only for versioned objects. If the value is true, this + // condition matches live objects; if the value is false, it matches archived + // objects. IsLive *bool `json:"isLive,omitempty"` - - // NumNewerVersions: Relevant only for versioned objects. If the value - // is N, this condition is satisfied when there are at least N versions - // (including the live version) newer than this version of the object. + // NumNewerVersions: Relevant only for versioned objects. If the value is N, + // this condition is satisfied when there are at least N versions (including + // the live version) newer than this version of the object. NumNewerVersions int64 `json:"numNewerVersions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Age") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Age") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Age") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Age") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketLifecycleRuleCondition) MarshalJSON() ([]byte, error) { +func (s BucketLifecycleRuleCondition) MarshalJSON() ([]byte, error) { type NoMethod BucketLifecycleRuleCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BucketLogging: The bucket's logging configuration, which defines the -// destination bucket and optional name prefix for the current bucket's -// logs. +// destination bucket and optional name prefix for the current bucket's logs. type BucketLogging struct { - // LogBucket: The destination bucket where the current bucket's logs - // should be placed. + // LogBucket: The destination bucket where the current bucket's logs should be + // placed. LogBucket string `json:"logBucket,omitempty"` - // LogObjectPrefix: A prefix for log object names. LogObjectPrefix string `json:"logObjectPrefix,omitempty"` - // ForceSendFields is a list of field names (e.g. "LogBucket") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogBucket") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "LogBucket") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketLogging) MarshalJSON() ([]byte, error) { +func (s BucketLogging) MarshalJSON() ([]byte, error) { type NoMethod BucketLogging - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BucketOwner: The owner of the bucket. This is always the project -// team's owner group. +// BucketOwner: The owner of the bucket. This is always the project team's +// owner group. type BucketOwner struct { // Entity: The entity, in the form group-groupId. Entity string `json:"entity,omitempty"` - // EntityId: The ID for the entity. EntityId string `json:"entityId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entity") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Entity") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketOwner) MarshalJSON() ([]byte, error) { +func (s BucketOwner) MarshalJSON() ([]byte, error) { type NoMethod BucketOwner - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BucketVersioning: The bucket's versioning configuration. type BucketVersioning struct { - // Enabled: While set to true, versioning is fully enabled for this - // bucket. + // Enabled: While set to true, versioning is fully enabled for this bucket. Enabled bool `json:"enabled,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketVersioning) MarshalJSON() ([]byte, error) { +func (s BucketVersioning) MarshalJSON() ([]byte, error) { type NoMethod BucketVersioning - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BucketWebsite: The bucket's website configuration. @@ -586,48 +518,36 @@ type BucketWebsite struct { // MainPageSuffix: Behaves as the bucket's directory index where missing // objects are treated as potential directories. MainPageSuffix string `json:"mainPageSuffix,omitempty"` - - // NotFoundPage: The custom object to return when a requested resource - // is not found. + // NotFoundPage: The custom object to return when a requested resource is not + // found. NotFoundPage string `json:"notFoundPage,omitempty"` - // ForceSendFields is a list of field names (e.g. "MainPageSuffix") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MainPageSuffix") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MainPageSuffix") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketWebsite) MarshalJSON() ([]byte, error) { +func (s BucketWebsite) MarshalJSON() ([]byte, error) { type NoMethod BucketWebsite - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BucketAccessControl: An access-control entry. type BucketAccessControl struct { // Bucket: The name of the bucket. Bucket string `json:"bucket,omitempty"` - // Domain: The domain associated with the entity, if any. Domain string `json:"domain,omitempty"` - // Email: The email address associated with the entity, if any. Email string `json:"email,omitempty"` - - // Entity: The entity holding the permission, in one of the following - // forms: + // Entity: The entity holding the permission, in one of the following forms: // - user-userId // - user-email // - group-groupId @@ -641,456 +561,341 @@ type BucketAccessControl struct { // - To refer to all members of the Google Apps for Business domain // example.com, the entity would be domain-example.com. Entity string `json:"entity,omitempty"` - // EntityId: The ID for the entity, if any. EntityId string `json:"entityId,omitempty"` - // Etag: HTTP 1.1 Entity tag for the access-control entry. Etag string `json:"etag,omitempty"` - // Id: The ID of the access-control entry. Id string `json:"id,omitempty"` - - // Kind: The kind of item this is. For bucket access control entries, - // this is always storage#bucketAccessControl. + // Kind: The kind of item this is. For bucket access control entries, this is + // always storage#bucketAccessControl. Kind string `json:"kind,omitempty"` - - // Role: The access permission for the entity. Can be READER, WRITER, or - // OWNER. + // Role: The access permission for the entity. Can be READER, WRITER, or OWNER. Role string `json:"role,omitempty"` - // SelfLink: The link to this access-control entry. SelfLink string `json:"selfLink,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketAccessControl) MarshalJSON() ([]byte, error) { +func (s BucketAccessControl) MarshalJSON() ([]byte, error) { type NoMethod BucketAccessControl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BucketAccessControls: An access-control list. type BucketAccessControls struct { // Items: The list of items. Items []*BucketAccessControl `json:"items,omitempty"` - - // Kind: The kind of item this is. For lists of bucket access control - // entries, this is always storage#bucketAccessControls. + // Kind: The kind of item this is. For lists of bucket access control entries, + // this is always storage#bucketAccessControls. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BucketAccessControls) MarshalJSON() ([]byte, error) { +func (s BucketAccessControls) MarshalJSON() ([]byte, error) { type NoMethod BucketAccessControls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Buckets: A list of buckets. type Buckets struct { // Items: The list of items. Items []*Bucket `json:"items,omitempty"` - // Kind: The kind of item this is. For lists of buckets, this is always // storage#buckets. Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, used to page through large - // result sets. Provide this value in a subsequent request to return the - // next page of results. + // NextPageToken: The continuation token, used to page through large result + // sets. Provide this value in a subsequent request to return the next page of + // results. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Buckets) MarshalJSON() ([]byte, error) { +func (s Buckets) MarshalJSON() ([]byte, error) { type NoMethod Buckets - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Channel: An notification channel used to watch for resource changes. type Channel struct { - // Address: The address where notifications are delivered for this - // channel. + // Address: The address where notifications are delivered for this channel. Address string `json:"address,omitempty"` - - // Expiration: Date and time of notification channel expiration, - // expressed as a Unix timestamp, in milliseconds. Optional. + // Expiration: Date and time of notification channel expiration, expressed as a + // Unix timestamp, in milliseconds. Optional. Expiration int64 `json:"expiration,omitempty,string"` - // Id: A UUID or similar unique string that identifies this channel. Id string `json:"id,omitempty"` - - // Kind: Identifies this as a notification channel used to watch for - // changes to a resource, which is "api#channel". + // Kind: Identifies this as a notification channel used to watch for changes to + // a resource, which is "api#channel". Kind string `json:"kind,omitempty"` - // Params: Additional parameters controlling delivery channel behavior. // Optional. Params map[string]string `json:"params,omitempty"` - - // Payload: A Boolean value to indicate whether payload is wanted. - // Optional. + // Payload: A Boolean value to indicate whether payload is wanted. Optional. Payload bool `json:"payload,omitempty"` - - // ResourceId: An opaque ID that identifies the resource being watched - // on this channel. Stable across different API versions. + // ResourceId: An opaque ID that identifies the resource being watched on this + // channel. Stable across different API versions. ResourceId string `json:"resourceId,omitempty"` - // ResourceUri: A version-specific identifier for the watched resource. ResourceUri string `json:"resourceUri,omitempty"` - // Token: An arbitrary string delivered to the target address with each // notification delivered over this channel. Optional. Token string `json:"token,omitempty"` - // Type: The type of delivery mechanism used for this channel. Type string `json:"type,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Address") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Address") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Address") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Address") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Channel) MarshalJSON() ([]byte, error) { +func (s Channel) MarshalJSON() ([]byte, error) { type NoMethod Channel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ComposeRequest: A Compose request. type ComposeRequest struct { // Destination: Properties of the resulting object Destination *Object `json:"destination,omitempty"` - // Kind: The kind of item this is. Kind string `json:"kind,omitempty"` - - // SourceObjects: The list of source objects that will be concatenated - // into a single object. + // SourceObjects: The list of source objects that will be concatenated into a + // single object. SourceObjects []*ComposeRequestSourceObjects `json:"sourceObjects,omitempty"` - // ForceSendFields is a list of field names (e.g. "Destination") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Destination") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Destination") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ComposeRequest) MarshalJSON() ([]byte, error) { +func (s ComposeRequest) MarshalJSON() ([]byte, error) { type NoMethod ComposeRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ComposeRequestSourceObjects struct { // Generation: The generation of this object to use as the source. Generation int64 `json:"generation,omitempty,string"` - - // Name: The source object's name. All source objects must reside in the - // same bucket. + // Name: The source object's name. All source objects must reside in the same + // bucket. Name string `json:"name,omitempty"` - - // ObjectPreconditions: Conditions that must be met for this operation - // to execute. + // ObjectPreconditions: Conditions that must be met for this operation to + // execute. ObjectPreconditions *ComposeRequestSourceObjectsObjectPreconditions `json:"objectPreconditions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Generation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Generation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Generation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ComposeRequestSourceObjects) MarshalJSON() ([]byte, error) { +func (s ComposeRequestSourceObjects) MarshalJSON() ([]byte, error) { type NoMethod ComposeRequestSourceObjects - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ComposeRequestSourceObjectsObjectPreconditions: Conditions that must -// be met for this operation to execute. +// ComposeRequestSourceObjectsObjectPreconditions: Conditions that must be met +// for this operation to execute. type ComposeRequestSourceObjectsObjectPreconditions struct { - // IfGenerationMatch: Only perform the composition if the generation of - // the source object that would be used matches this value. If this - // value and a generation are both specified, they must be the same - // value or the call will fail. + // IfGenerationMatch: Only perform the composition if the generation of the + // source object that would be used matches this value. If this value and a + // generation are both specified, they must be the same value or the call will + // fail. IfGenerationMatch int64 `json:"ifGenerationMatch,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "IfGenerationMatch") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IfGenerationMatch") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IfGenerationMatch") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IfGenerationMatch") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ComposeRequestSourceObjectsObjectPreconditions) MarshalJSON() ([]byte, error) { +func (s ComposeRequestSourceObjectsObjectPreconditions) MarshalJSON() ([]byte, error) { type NoMethod ComposeRequestSourceObjectsObjectPreconditions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Object: An object. type Object struct { // Acl: Access controls on the object. Acl []*ObjectAccessControl `json:"acl,omitempty"` - // Bucket: The bucket containing this object. Bucket string `json:"bucket,omitempty"` - // CacheControl: Cache-Control directive for the object data. CacheControl string `json:"cacheControl,omitempty"` - - // ComponentCount: Number of underlying components that make up this - // object. Components are accumulated by compose operations and are - // limited to a count of 32. + // ComponentCount: Number of underlying components that make up this object. + // Components are accumulated by compose operations and are limited to a count + // of 32. ComponentCount int64 `json:"componentCount,omitempty"` - // ContentDisposition: Content-Disposition of the object data. ContentDisposition string `json:"contentDisposition,omitempty"` - // ContentEncoding: Content-Encoding of the object data. ContentEncoding string `json:"contentEncoding,omitempty"` - // ContentLanguage: Content-Language of the object data. ContentLanguage string `json:"contentLanguage,omitempty"` - // ContentType: Content-Type of the object data. ContentType string `json:"contentType,omitempty"` - - // Crc32c: CRC32c checksum, as described in RFC 4960, Appendix B; - // encoded using base64. + // Crc32c: CRC32c checksum, as described in RFC 4960, Appendix B; encoded using + // base64. Crc32c string `json:"crc32c,omitempty"` - // Etag: HTTP 1.1 Entity tag for the object. Etag string `json:"etag,omitempty"` - // Generation: The content generation of this object. Used for object // versioning. Generation int64 `json:"generation,omitempty,string"` - // Id: The ID of the object. Id string `json:"id,omitempty"` - - // Kind: The kind of item this is. For objects, this is always - // storage#object. + // Kind: The kind of item this is. For objects, this is always storage#object. Kind string `json:"kind,omitempty"` - // Md5Hash: MD5 hash of the data; encoded using base64. Md5Hash string `json:"md5Hash,omitempty"` - // MediaLink: Media download link. MediaLink string `json:"mediaLink,omitempty"` - // Metadata: User-provided metadata, in key/value pairs. Metadata map[string]string `json:"metadata,omitempty"` - - // Metageneration: The generation of the metadata for this object at - // this generation. Used for metadata versioning. Has no meaning outside - // of the context of this generation. + // Metageneration: The generation of the metadata for this object at this + // generation. Used for metadata versioning. Has no meaning outside of the + // context of this generation. Metageneration int64 `json:"metageneration,omitempty,string"` - - // Name: The name of this object. Required if not specified by URL - // parameter. + // Name: The name of this object. Required if not specified by URL parameter. Name string `json:"name,omitempty"` - - // Owner: The owner of the object. This will always be the uploader of - // the object. + // Owner: The owner of the object. This will always be the uploader of the + // object. Owner *ObjectOwner `json:"owner,omitempty"` - // SelfLink: The link to this object. SelfLink string `json:"selfLink,omitempty"` - // Size: Content-Length of the data in bytes. Size uint64 `json:"size,omitempty,string"` - // StorageClass: Storage class of the object. StorageClass string `json:"storageClass,omitempty"` - // TimeDeleted: Deletion time of the object in RFC 3339 format. Will be // returned if and only if this version of the object has been deleted. TimeDeleted string `json:"timeDeleted,omitempty"` - // Updated: Modification time of the object metadata in RFC 3339 format. Updated string `json:"updated,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Acl") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Acl") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Acl") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Acl") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Object) MarshalJSON() ([]byte, error) { +func (s Object) MarshalJSON() ([]byte, error) { type NoMethod Object - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ObjectOwner: The owner of the object. This will always be the -// uploader of the object. +// ObjectOwner: The owner of the object. This will always be the uploader of +// the object. type ObjectOwner struct { // Entity: The entity, in the form user-userId. Entity string `json:"entity,omitempty"` - // EntityId: The ID for the entity. EntityId string `json:"entityId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Entity") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Entity") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectOwner) MarshalJSON() ([]byte, error) { +func (s ObjectOwner) MarshalJSON() ([]byte, error) { type NoMethod ObjectOwner - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObjectAccessControl: An access-control entry. type ObjectAccessControl struct { // Bucket: The name of the bucket. Bucket string `json:"bucket,omitempty"` - // Domain: The domain associated with the entity, if any. Domain string `json:"domain,omitempty"` - // Email: The email address associated with the entity, if any. Email string `json:"email,omitempty"` - - // Entity: The entity holding the permission, in one of the following - // forms: + // Entity: The entity holding the permission, in one of the following forms: // - user-userId // - user-email // - group-groupId @@ -1104,142 +909,107 @@ type ObjectAccessControl struct { // - To refer to all members of the Google Apps for Business domain // example.com, the entity would be domain-example.com. Entity string `json:"entity,omitempty"` - // EntityId: The ID for the entity, if any. EntityId string `json:"entityId,omitempty"` - // Etag: HTTP 1.1 Entity tag for the access-control entry. Etag string `json:"etag,omitempty"` - // Generation: The content generation of the object. Generation int64 `json:"generation,omitempty,string"` - // Id: The ID of the access-control entry. Id string `json:"id,omitempty"` - - // Kind: The kind of item this is. For object access control entries, - // this is always storage#objectAccessControl. + // Kind: The kind of item this is. For object access control entries, this is + // always storage#objectAccessControl. Kind string `json:"kind,omitempty"` - // Object: The name of the object. Object string `json:"object,omitempty"` - // Role: The access permission for the entity. Can be READER or OWNER. Role string `json:"role,omitempty"` - // SelfLink: The link to this access-control entry. SelfLink string `json:"selfLink,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Bucket") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Bucket") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectAccessControl) MarshalJSON() ([]byte, error) { +func (s ObjectAccessControl) MarshalJSON() ([]byte, error) { type NoMethod ObjectAccessControl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ObjectAccessControls: An access-control list. type ObjectAccessControls struct { // Items: The list of items. Items []interface{} `json:"items,omitempty"` - - // Kind: The kind of item this is. For lists of object access control - // entries, this is always storage#objectAccessControls. + // Kind: The kind of item this is. For lists of object access control entries, + // this is always storage#objectAccessControls. Kind string `json:"kind,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ObjectAccessControls) MarshalJSON() ([]byte, error) { +func (s ObjectAccessControls) MarshalJSON() ([]byte, error) { type NoMethod ObjectAccessControls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Objects: A list of objects. type Objects struct { // Items: The list of items. Items []*Object `json:"items,omitempty"` - // Kind: The kind of item this is. For lists of objects, this is always // storage#objects. Kind string `json:"kind,omitempty"` - - // NextPageToken: The continuation token, used to page through large - // result sets. Provide this value in a subsequent request to return the - // next page of results. + // NextPageToken: The continuation token, used to page through large result + // sets. Provide this value in a subsequent request to return the next page of + // results. NextPageToken string `json:"nextPageToken,omitempty"` - - // Prefixes: The list of prefixes of objects matching-but-not-listed up - // to and including the requested delimiter. + // Prefixes: The list of prefixes of objects matching-but-not-listed up to and + // including the requested delimiter. Prefixes []string `json:"prefixes,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Objects) MarshalJSON() ([]byte, error) { +func (s Objects) MarshalJSON() ([]byte, error) { type NoMethod Objects - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "storage.bucketAccessControls.delete": - type BucketAccessControlsDeleteCall struct { s *Service bucket string @@ -1249,8 +1019,13 @@ type BucketAccessControlsDeleteCall struct { header_ http.Header } -// Delete: Permanently deletes the ACL entry for the specified entity on -// the specified bucket. +// Delete: Permanently deletes the ACL entry for the specified entity on the +// specified bucket. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *BucketAccessControlsService) Delete(bucket string, entity string) *BucketAccessControlsDeleteCall { c := &BucketAccessControlsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1259,23 +1034,21 @@ func (r *BucketAccessControlsService) Delete(bucket string, entity string) *Buck } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsDeleteCall) Fields(s ...googleapi.Field) *BucketAccessControlsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsDeleteCall) Context(ctx context.Context) *BucketAccessControlsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1284,12 +1057,7 @@ func (c *BucketAccessControlsDeleteCall) Header() http.Header { } func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1304,7 +1072,7 @@ func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.delete" call. @@ -1316,40 +1084,10 @@ func (c *BucketAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Permanently deletes the ACL entry for the specified entity on the specified bucket.", - // "httpMethod": "DELETE", - // "id": "storage.bucketAccessControls.delete", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl/{entity}", - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.bucketAccessControls.get": +} type BucketAccessControlsGetCall struct { s *Service @@ -1361,8 +1099,12 @@ type BucketAccessControlsGetCall struct { header_ http.Header } -// Get: Returns the ACL entry for the specified entity on the specified -// bucket. +// Get: Returns the ACL entry for the specified entity on the specified bucket. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *BucketAccessControlsService) Get(bucket string, entity string) *BucketAccessControlsGetCall { c := &BucketAccessControlsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1371,33 +1113,29 @@ func (r *BucketAccessControlsService) Get(bucket string, entity string) *BucketA } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsGetCall) Fields(s ...googleapi.Field) *BucketAccessControlsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BucketAccessControlsGetCall) IfNoneMatch(entityTag string) *BucketAccessControlsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsGetCall) Context(ctx context.Context) *BucketAccessControlsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1406,12 +1144,7 @@ func (c *BucketAccessControlsGetCall) Header() http.Header { } func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1429,16 +1162,15 @@ func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, err "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.get" call. -// Exactly one of *BucketAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BucketAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BucketAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BucketAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1446,17 +1178,17 @@ func (c *BucketAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*BucketA if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BucketAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -1469,40 +1201,7 @@ func (c *BucketAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*BucketA return nil, err } return ret, nil - // { - // "description": "Returns the ACL entry for the specified entity on the specified bucket.", - // "httpMethod": "GET", - // "id": "storage.bucketAccessControls.get", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl/{entity}", - // "response": { - // "$ref": "BucketAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.bucketAccessControls.insert": +} type BucketAccessControlsInsertCall struct { s *Service @@ -1514,6 +1213,8 @@ type BucketAccessControlsInsertCall struct { } // Insert: Creates a new ACL entry on the specified bucket. +// +// - bucket: Name of a bucket. func (r *BucketAccessControlsService) Insert(bucket string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsInsertCall { c := &BucketAccessControlsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1522,23 +1223,21 @@ func (r *BucketAccessControlsService) Insert(bucket string, bucketaccesscontrol } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsInsertCall) Fields(s ...googleapi.Field) *BucketAccessControlsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsInsertCall) Context(ctx context.Context) *BucketAccessControlsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1547,18 +1246,12 @@ func (c *BucketAccessControlsInsertCall) Header() http.Header { } func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucketaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl") @@ -1571,16 +1264,15 @@ func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.insert" call. -// Exactly one of *BucketAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BucketAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BucketAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BucketAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1588,17 +1280,17 @@ func (c *BucketAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*Buck if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BucketAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -1611,36 +1303,7 @@ func (c *BucketAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*Buck return nil, err } return ret, nil - // { - // "description": "Creates a new ACL entry on the specified bucket.", - // "httpMethod": "POST", - // "id": "storage.bucketAccessControls.insert", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl", - // "request": { - // "$ref": "BucketAccessControl" - // }, - // "response": { - // "$ref": "BucketAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.bucketAccessControls.list": +} type BucketAccessControlsListCall struct { s *Service @@ -1652,6 +1315,8 @@ type BucketAccessControlsListCall struct { } // List: Retrieves ACL entries on the specified bucket. +// +// - bucket: Name of a bucket. func (r *BucketAccessControlsService) List(bucket string) *BucketAccessControlsListCall { c := &BucketAccessControlsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1659,33 +1324,29 @@ func (r *BucketAccessControlsService) List(bucket string) *BucketAccessControlsL } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsListCall) Fields(s ...googleapi.Field) *BucketAccessControlsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BucketAccessControlsListCall) IfNoneMatch(entityTag string) *BucketAccessControlsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsListCall) Context(ctx context.Context) *BucketAccessControlsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1694,12 +1355,7 @@ func (c *BucketAccessControlsListCall) Header() http.Header { } func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1716,16 +1372,15 @@ func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.list" call. -// Exactly one of *BucketAccessControls or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BucketAccessControls.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BucketAccessControls.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BucketAccessControlsListCall) Do(opts ...googleapi.CallOption) (*BucketAccessControls, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1733,17 +1388,17 @@ func (c *BucketAccessControlsListCall) Do(opts ...googleapi.CallOption) (*Bucket if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BucketAccessControls{ ServerResponse: googleapi.ServerResponse{ @@ -1756,33 +1411,7 @@ func (c *BucketAccessControlsListCall) Do(opts ...googleapi.CallOption) (*Bucket return nil, err } return ret, nil - // { - // "description": "Retrieves ACL entries on the specified bucket.", - // "httpMethod": "GET", - // "id": "storage.bucketAccessControls.list", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl", - // "response": { - // "$ref": "BucketAccessControls" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.bucketAccessControls.patch": +} type BucketAccessControlsPatchCall struct { s *Service @@ -1794,8 +1423,13 @@ type BucketAccessControlsPatchCall struct { header_ http.Header } -// Patch: Updates an ACL entry on the specified bucket. This method -// supports patch semantics. +// Patch: Updates an ACL entry on the specified bucket. This method supports +// patch semantics. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *BucketAccessControlsService) Patch(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsPatchCall { c := &BucketAccessControlsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1805,23 +1439,21 @@ func (r *BucketAccessControlsService) Patch(bucket string, entity string, bucket } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsPatchCall) Fields(s ...googleapi.Field) *BucketAccessControlsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsPatchCall) Context(ctx context.Context) *BucketAccessControlsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1830,18 +1462,12 @@ func (c *BucketAccessControlsPatchCall) Header() http.Header { } func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucketaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl/{entity}") @@ -1855,16 +1481,15 @@ func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, e "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.patch" call. -// Exactly one of *BucketAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BucketAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BucketAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BucketAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1872,17 +1497,17 @@ func (c *BucketAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*Bucke if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BucketAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -1895,43 +1520,7 @@ func (c *BucketAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*Bucke return nil, err } return ret, nil - // { - // "description": "Updates an ACL entry on the specified bucket. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "storage.bucketAccessControls.patch", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl/{entity}", - // "request": { - // "$ref": "BucketAccessControl" - // }, - // "response": { - // "$ref": "BucketAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.bucketAccessControls.update": +} type BucketAccessControlsUpdateCall struct { s *Service @@ -1944,6 +1533,11 @@ type BucketAccessControlsUpdateCall struct { } // Update: Updates an ACL entry on the specified bucket. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *BucketAccessControlsService) Update(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsUpdateCall { c := &BucketAccessControlsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -1953,23 +1547,21 @@ func (r *BucketAccessControlsService) Update(bucket string, entity string, bucke } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketAccessControlsUpdateCall) Fields(s ...googleapi.Field) *BucketAccessControlsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketAccessControlsUpdateCall) Context(ctx context.Context) *BucketAccessControlsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketAccessControlsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1978,18 +1570,12 @@ func (c *BucketAccessControlsUpdateCall) Header() http.Header { } func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucketaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl/{entity}") @@ -2003,16 +1589,15 @@ func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.bucketAccessControls.update" call. -// Exactly one of *BucketAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *BucketAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *BucketAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *BucketAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2020,17 +1605,17 @@ func (c *BucketAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*Buck if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &BucketAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -2043,43 +1628,7 @@ func (c *BucketAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*Buck return nil, err } return ret, nil - // { - // "description": "Updates an ACL entry on the specified bucket.", - // "httpMethod": "PUT", - // "id": "storage.bucketAccessControls.update", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/acl/{entity}", - // "request": { - // "$ref": "BucketAccessControl" - // }, - // "response": { - // "$ref": "BucketAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.buckets.delete": +} type BucketsDeleteCall struct { s *Service @@ -2090,16 +1639,17 @@ type BucketsDeleteCall struct { } // Delete: Permanently deletes an empty bucket. +// +// - bucket: Name of a bucket. func (r *BucketsService) Delete(bucket string) *BucketsDeleteCall { c := &BucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the return of the bucket metadata -// conditional on whether the bucket's current metageneration matches -// the given value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the return of the bucket metadata conditional on whether the bucket's +// current metageneration matches the given value. func (c *BucketsDeleteCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsDeleteCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c @@ -2107,31 +1657,29 @@ func (c *BucketsDeleteCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) // IfMetagenerationNotMatch sets the optional parameter // "ifMetagenerationNotMatch": Makes the return of the bucket metadata -// conditional on whether the bucket's current metageneration does not -// match the given value. +// conditional on whether the bucket's current metageneration does not match +// the given value. func (c *BucketsDeleteCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsDeleteCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsDeleteCall) Fields(s ...googleapi.Field) *BucketsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsDeleteCall) Context(ctx context.Context) *BucketsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2140,12 +1688,7 @@ func (c *BucketsDeleteCall) Header() http.Header { } func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2159,7 +1702,7 @@ func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.delete" call. @@ -2171,46 +1714,10 @@ func (c *BucketsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Permanently deletes an empty bucket.", - // "httpMethod": "DELETE", - // "id": "storage.buckets.delete", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}", - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.buckets.get": +} type BucketsGetCall struct { s *Service @@ -2222,16 +1729,17 @@ type BucketsGetCall struct { } // Get: Returns metadata for the specified bucket. +// +// - bucket: Name of a bucket. func (r *BucketsService) Get(bucket string) *BucketsGetCall { c := &BucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the return of the bucket metadata -// conditional on whether the bucket's current metageneration matches -// the given value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the return of the bucket metadata conditional on whether the bucket's +// current metageneration matches the given value. func (c *BucketsGetCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsGetCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c @@ -2239,15 +1747,15 @@ func (c *BucketsGetCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *Bu // IfMetagenerationNotMatch sets the optional parameter // "ifMetagenerationNotMatch": Makes the return of the bucket metadata -// conditional on whether the bucket's current metageneration does not -// match the given value. +// conditional on whether the bucket's current metageneration does not match +// the given value. func (c *BucketsGetCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsGetCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to noAcl. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to noAcl. // // Possible values: // @@ -2259,33 +1767,29 @@ func (c *BucketsGetCall) Projection(projection string) *BucketsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsGetCall) Fields(s ...googleapi.Field) *BucketsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BucketsGetCall) IfNoneMatch(entityTag string) *BucketsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsGetCall) Context(ctx context.Context) *BucketsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2294,12 +1798,7 @@ func (c *BucketsGetCall) Header() http.Header { } func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2316,16 +1815,14 @@ func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.get" call. -// Exactly one of *Bucket or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Bucket.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Bucket.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2333,17 +1830,17 @@ func (c *BucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Bucket{ ServerResponse: googleapi.ServerResponse{ @@ -2356,60 +1853,7 @@ func (c *BucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { return nil, err } return ret, nil - // { - // "description": "Returns metadata for the specified bucket.", - // "httpMethod": "GET", - // "id": "storage.buckets.get", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to noAcl.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit acl and defaultObjectAcl properties." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}", - // "response": { - // "$ref": "Bucket" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.buckets.insert": +} type BucketsInsertCall struct { s *Service @@ -2420,6 +1864,8 @@ type BucketsInsertCall struct { } // Insert: Creates a new bucket. +// +// - project: A valid API project identifier. func (r *BucketsService) Insert(projectid string, bucket *Bucket) *BucketsInsertCall { c := &BucketsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("project", projectid) @@ -2427,10 +1873,9 @@ func (r *BucketsService) Insert(projectid string, bucket *Bucket) *BucketsInsert return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to noAcl, unless the bucket resource -// specifies acl or defaultObjectAcl properties, when it defaults to -// full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to noAcl, unless the bucket resource specifies acl or +// defaultObjectAcl properties, when it defaults to full. // // Possible values: // @@ -2442,23 +1887,21 @@ func (c *BucketsInsertCall) Projection(projection string) *BucketsInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsInsertCall) Fields(s ...googleapi.Field) *BucketsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsInsertCall) Context(ctx context.Context) *BucketsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2467,18 +1910,12 @@ func (c *BucketsInsertCall) Header() http.Header { } func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucket) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b") @@ -2488,16 +1925,14 @@ func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.insert" call. -// Exactly one of *Bucket or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Bucket.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Bucket.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BucketsInsertCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2505,17 +1940,17 @@ func (c *BucketsInsertCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Bucket{ ServerResponse: googleapi.ServerResponse{ @@ -2528,50 +1963,7 @@ func (c *BucketsInsertCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { return nil, err } return ret, nil - // { - // "description": "Creates a new bucket.", - // "httpMethod": "POST", - // "id": "storage.buckets.insert", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "project": { - // "description": "A valid API project identifier.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit acl and defaultObjectAcl properties." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b", - // "request": { - // "$ref": "Bucket" - // }, - // "response": { - // "$ref": "Bucket" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.buckets.list": +} type BucketsListCall struct { s *Service @@ -2582,29 +1974,30 @@ type BucketsListCall struct { } // List: Retrieves a list of buckets for a given project. +// +// - project: A valid API project identifier. func (r *BucketsService) List(projectid string) *BucketsListCall { c := &BucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("project", projectid) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of buckets to return. +// MaxResults sets the optional parameter "maxResults": Maximum number of +// buckets to return. func (c *BucketsListCall) MaxResults(maxResults int64) *BucketsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set of -// results to view. +// PageToken sets the optional parameter "pageToken": A previously-returned +// page token representing part of the larger set of results to view. func (c *BucketsListCall) PageToken(pageToken string) *BucketsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to noAcl. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to noAcl. // // Possible values: // @@ -2616,33 +2009,29 @@ func (c *BucketsListCall) Projection(projection string) *BucketsListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsListCall) Fields(s ...googleapi.Field) *BucketsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *BucketsListCall) IfNoneMatch(entityTag string) *BucketsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsListCall) Context(ctx context.Context) *BucketsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2651,12 +2040,7 @@ func (c *BucketsListCall) Header() http.Header { } func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2670,16 +2054,14 @@ func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.list" call. -// Exactly one of *Buckets or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Buckets.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Buckets.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2687,17 +2069,17 @@ func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Buckets{ ServerResponse: googleapi.ServerResponse{ @@ -2710,57 +2092,6 @@ func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of buckets for a given project.", - // "httpMethod": "GET", - // "id": "storage.buckets.list", - // "parameterOrder": [ - // "project" - // ], - // "parameters": { - // "maxResults": { - // "description": "Maximum number of buckets to return.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of results to view.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "A valid API project identifier.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to noAcl.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit acl and defaultObjectAcl properties." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b", - // "response": { - // "$ref": "Buckets" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - } // Pages invokes f for each page of results. @@ -2768,7 +2099,7 @@ func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error) { // The provided context supersedes any context provided to the Context method. func (c *BucketsListCall) Pages(ctx context.Context, f func(*Buckets) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2784,8 +2115,6 @@ func (c *BucketsListCall) Pages(ctx context.Context, f func(*Buckets) error) err } } -// method id "storage.buckets.patch": - type BucketsPatchCall struct { s *Service bucket string @@ -2796,6 +2125,8 @@ type BucketsPatchCall struct { } // Patch: Updates a bucket. This method supports patch semantics. +// +// - bucket: Name of a bucket. func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall { c := &BucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -2803,10 +2134,9 @@ func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the return of the bucket metadata -// conditional on whether the bucket's current metageneration matches -// the given value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the return of the bucket metadata conditional on whether the bucket's +// current metageneration matches the given value. func (c *BucketsPatchCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsPatchCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c @@ -2814,15 +2144,15 @@ func (c *BucketsPatchCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) * // IfMetagenerationNotMatch sets the optional parameter // "ifMetagenerationNotMatch": Makes the return of the bucket metadata -// conditional on whether the bucket's current metageneration does not -// match the given value. +// conditional on whether the bucket's current metageneration does not match +// the given value. func (c *BucketsPatchCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsPatchCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to full. // // Possible values: // @@ -2834,23 +2164,21 @@ func (c *BucketsPatchCall) Projection(projection string) *BucketsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsPatchCall) Fields(s ...googleapi.Field) *BucketsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsPatchCall) Context(ctx context.Context) *BucketsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2859,18 +2187,12 @@ func (c *BucketsPatchCall) Header() http.Header { } func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucket2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}") @@ -2883,16 +2205,14 @@ func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.patch" call. -// Exactly one of *Bucket or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Bucket.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Bucket.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2900,17 +2220,17 @@ func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Bucket{ ServerResponse: googleapi.ServerResponse{ @@ -2923,62 +2243,7 @@ func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { return nil, err } return ret, nil - // { - // "description": "Updates a bucket. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "storage.buckets.patch", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to full.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit acl and defaultObjectAcl properties." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}", - // "request": { - // "$ref": "Bucket" - // }, - // "response": { - // "$ref": "Bucket" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.buckets.update": +} type BucketsUpdateCall struct { s *Service @@ -2990,6 +2255,8 @@ type BucketsUpdateCall struct { } // Update: Updates a bucket. +// +// - bucket: Name of a bucket. func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall { c := &BucketsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -2997,10 +2264,9 @@ func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCa return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the return of the bucket metadata -// conditional on whether the bucket's current metageneration matches -// the given value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the return of the bucket metadata conditional on whether the bucket's +// current metageneration matches the given value. func (c *BucketsUpdateCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsUpdateCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c @@ -3008,15 +2274,15 @@ func (c *BucketsUpdateCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) // IfMetagenerationNotMatch sets the optional parameter // "ifMetagenerationNotMatch": Makes the return of the bucket metadata -// conditional on whether the bucket's current metageneration does not -// match the given value. +// conditional on whether the bucket's current metageneration does not match +// the given value. func (c *BucketsUpdateCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsUpdateCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to full. // // Possible values: // @@ -3028,23 +2294,21 @@ func (c *BucketsUpdateCall) Projection(projection string) *BucketsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *BucketsUpdateCall) Fields(s ...googleapi.Field) *BucketsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *BucketsUpdateCall) Context(ctx context.Context) *BucketsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *BucketsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3053,18 +2317,12 @@ func (c *BucketsUpdateCall) Header() http.Header { } func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.bucket2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}") @@ -3077,16 +2335,14 @@ func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.buckets.update" call. -// Exactly one of *Bucket or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Bucket.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Bucket.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *BucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3094,17 +2350,17 @@ func (c *BucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Bucket{ ServerResponse: googleapi.ServerResponse{ @@ -3117,62 +2373,7 @@ func (c *BucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Bucket, error) { return nil, err } return ret, nil - // { - // "description": "Updates a bucket.", - // "httpMethod": "PUT", - // "id": "storage.buckets.update", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to full.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit acl and defaultObjectAcl properties." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}", - // "request": { - // "$ref": "Bucket" - // }, - // "response": { - // "$ref": "Bucket" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.channels.stop": +} type ChannelsStopCall struct { s *Service @@ -3190,23 +2391,21 @@ func (r *ChannelsService) Stop(channel *Channel) *ChannelsStopCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ChannelsStopCall) Fields(s ...googleapi.Field) *ChannelsStopCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ChannelsStopCall) Context(ctx context.Context) *ChannelsStopCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ChannelsStopCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3215,18 +2414,12 @@ func (c *ChannelsStopCall) Header() http.Header { } func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.channel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "channels/stop") @@ -3236,7 +2429,7 @@ func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.channels.stop" call. @@ -3248,28 +2441,10 @@ func (c *ChannelsStopCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Stop watching resources through this channel", - // "httpMethod": "POST", - // "id": "storage.channels.stop", - // "path": "channels/stop", - // "request": { - // "$ref": "Channel", - // "parameterName": "resource" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.defaultObjectAccessControls.delete": +} type DefaultObjectAccessControlsDeleteCall struct { s *Service @@ -3280,8 +2455,13 @@ type DefaultObjectAccessControlsDeleteCall struct { header_ http.Header } -// Delete: Permanently deletes the default object ACL entry for the -// specified entity on the specified bucket. +// Delete: Permanently deletes the default object ACL entry for the specified +// entity on the specified bucket. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *DefaultObjectAccessControlsService) Delete(bucket string, entity string) *DefaultObjectAccessControlsDeleteCall { c := &DefaultObjectAccessControlsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -3290,23 +2470,21 @@ func (r *DefaultObjectAccessControlsService) Delete(bucket string, entity string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DefaultObjectAccessControlsDeleteCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DefaultObjectAccessControlsDeleteCall) Context(ctx context.Context) *DefaultObjectAccessControlsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DefaultObjectAccessControlsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3315,12 +2493,7 @@ func (c *DefaultObjectAccessControlsDeleteCall) Header() http.Header { } func (c *DefaultObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3335,7 +2508,7 @@ func (c *DefaultObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Res "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.delete" call. @@ -3347,40 +2520,10 @@ func (c *DefaultObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Permanently deletes the default object ACL entry for the specified entity on the specified bucket.", - // "httpMethod": "DELETE", - // "id": "storage.defaultObjectAccessControls.delete", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/defaultObjectAcl/{entity}", - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.defaultObjectAccessControls.get": +} type DefaultObjectAccessControlsGetCall struct { s *Service @@ -3392,8 +2535,13 @@ type DefaultObjectAccessControlsGetCall struct { header_ http.Header } -// Get: Returns the default object ACL entry for the specified entity on -// the specified bucket. +// Get: Returns the default object ACL entry for the specified entity on the +// specified bucket. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *DefaultObjectAccessControlsService) Get(bucket string, entity string) *DefaultObjectAccessControlsGetCall { c := &DefaultObjectAccessControlsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -3402,33 +2550,29 @@ func (r *DefaultObjectAccessControlsService) Get(bucket string, entity string) * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DefaultObjectAccessControlsGetCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DefaultObjectAccessControlsGetCall) IfNoneMatch(entityTag string) *DefaultObjectAccessControlsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DefaultObjectAccessControlsGetCall) Context(ctx context.Context) *DefaultObjectAccessControlsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DefaultObjectAccessControlsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3437,12 +2581,7 @@ func (c *DefaultObjectAccessControlsGetCall) Header() http.Header { } func (c *DefaultObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3460,16 +2599,15 @@ func (c *DefaultObjectAccessControlsGetCall) doRequest(alt string) (*http.Respon "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.get" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DefaultObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3477,17 +2615,17 @@ func (c *DefaultObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (* if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -3500,40 +2638,7 @@ func (c *DefaultObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (* return nil, err } return ret, nil - // { - // "description": "Returns the default object ACL entry for the specified entity on the specified bucket.", - // "httpMethod": "GET", - // "id": "storage.defaultObjectAccessControls.get", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/defaultObjectAcl/{entity}", - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.defaultObjectAccessControls.insert": +} type DefaultObjectAccessControlsInsertCall struct { s *Service @@ -3544,8 +2649,9 @@ type DefaultObjectAccessControlsInsertCall struct { header_ http.Header } -// Insert: Creates a new default object ACL entry on the specified -// bucket. +// Insert: Creates a new default object ACL entry on the specified bucket. +// +// - bucket: Name of a bucket. func (r *DefaultObjectAccessControlsService) Insert(bucket string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsInsertCall { c := &DefaultObjectAccessControlsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -3554,23 +2660,21 @@ func (r *DefaultObjectAccessControlsService) Insert(bucket string, objectaccessc } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DefaultObjectAccessControlsInsertCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DefaultObjectAccessControlsInsertCall) Context(ctx context.Context) *DefaultObjectAccessControlsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DefaultObjectAccessControlsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3579,18 +2683,12 @@ func (c *DefaultObjectAccessControlsInsertCall) Header() http.Header { } func (c *DefaultObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/defaultObjectAcl") @@ -3603,16 +2701,15 @@ func (c *DefaultObjectAccessControlsInsertCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.insert" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DefaultObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3620,17 +2717,17 @@ func (c *DefaultObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -3643,36 +2740,7 @@ func (c *DefaultObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Creates a new default object ACL entry on the specified bucket.", - // "httpMethod": "POST", - // "id": "storage.defaultObjectAccessControls.insert", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/defaultObjectAcl", - // "request": { - // "$ref": "ObjectAccessControl" - // }, - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.defaultObjectAccessControls.list": +} type DefaultObjectAccessControlsListCall struct { s *Service @@ -3684,57 +2752,54 @@ type DefaultObjectAccessControlsListCall struct { } // List: Retrieves default object ACL entries on the specified bucket. +// +// - bucket: Name of a bucket. func (r *DefaultObjectAccessControlsService) List(bucket string) *DefaultObjectAccessControlsListCall { c := &DefaultObjectAccessControlsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": If present, only return default ACL listing -// if the bucket's current metageneration matches this value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// If present, only return default ACL listing if the bucket's current +// metageneration matches this value. func (c *DefaultObjectAccessControlsListCall) IfMetagenerationMatch(ifMetagenerationMatch int64) *DefaultObjectAccessControlsListCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c } // IfMetagenerationNotMatch sets the optional parameter -// "ifMetagenerationNotMatch": If present, only return default ACL -// listing if the bucket's current metageneration does not match the -// given value. +// "ifMetagenerationNotMatch": If present, only return default ACL listing if +// the bucket's current metageneration does not match the given value. func (c *DefaultObjectAccessControlsListCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *DefaultObjectAccessControlsListCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DefaultObjectAccessControlsListCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *DefaultObjectAccessControlsListCall) IfNoneMatch(entityTag string) *DefaultObjectAccessControlsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DefaultObjectAccessControlsListCall) Context(ctx context.Context) *DefaultObjectAccessControlsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DefaultObjectAccessControlsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3743,12 +2808,7 @@ func (c *DefaultObjectAccessControlsListCall) Header() http.Header { } func (c *DefaultObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3765,16 +2825,15 @@ func (c *DefaultObjectAccessControlsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.list" call. -// Exactly one of *ObjectAccessControls or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControls.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControls.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DefaultObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControls, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3782,17 +2841,17 @@ func (c *DefaultObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) ( if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControls{ ServerResponse: googleapi.ServerResponse{ @@ -3805,45 +2864,7 @@ func (c *DefaultObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) ( return nil, err } return ret, nil - // { - // "description": "Retrieves default object ACL entries on the specified bucket.", - // "httpMethod": "GET", - // "id": "storage.defaultObjectAccessControls.list", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "If present, only return default ACL listing if the bucket's current metageneration matches this value.", - // "format": "int64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "If present, only return default ACL listing if the bucket's current metageneration does not match the given value.", - // "format": "int64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}/defaultObjectAcl", - // "response": { - // "$ref": "ObjectAccessControls" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.defaultObjectAccessControls.patch": +} type DefaultObjectAccessControlsPatchCall struct { s *Service @@ -3855,8 +2876,13 @@ type DefaultObjectAccessControlsPatchCall struct { header_ http.Header } -// Patch: Updates a default object ACL entry on the specified bucket. -// This method supports patch semantics. +// Patch: Updates a default object ACL entry on the specified bucket. This +// method supports patch semantics. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *DefaultObjectAccessControlsService) Patch(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsPatchCall { c := &DefaultObjectAccessControlsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -3866,23 +2892,21 @@ func (r *DefaultObjectAccessControlsService) Patch(bucket string, entity string, } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DefaultObjectAccessControlsPatchCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DefaultObjectAccessControlsPatchCall) Context(ctx context.Context) *DefaultObjectAccessControlsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DefaultObjectAccessControlsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3891,18 +2915,12 @@ func (c *DefaultObjectAccessControlsPatchCall) Header() http.Header { } func (c *DefaultObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/defaultObjectAcl/{entity}") @@ -3916,16 +2934,15 @@ func (c *DefaultObjectAccessControlsPatchCall) doRequest(alt string) (*http.Resp "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.patch" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DefaultObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3933,17 +2950,17 @@ func (c *DefaultObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -3956,43 +2973,7 @@ func (c *DefaultObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Updates a default object ACL entry on the specified bucket. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "storage.defaultObjectAccessControls.patch", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/defaultObjectAcl/{entity}", - // "request": { - // "$ref": "ObjectAccessControl" - // }, - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.defaultObjectAccessControls.update": +} type DefaultObjectAccessControlsUpdateCall struct { s *Service @@ -4005,6 +2986,11 @@ type DefaultObjectAccessControlsUpdateCall struct { } // Update: Updates a default object ACL entry on the specified bucket. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. func (r *DefaultObjectAccessControlsService) Update(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsUpdateCall { c := &DefaultObjectAccessControlsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -4014,23 +3000,21 @@ func (r *DefaultObjectAccessControlsService) Update(bucket string, entity string } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *DefaultObjectAccessControlsUpdateCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *DefaultObjectAccessControlsUpdateCall) Context(ctx context.Context) *DefaultObjectAccessControlsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *DefaultObjectAccessControlsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4039,18 +3023,12 @@ func (c *DefaultObjectAccessControlsUpdateCall) Header() http.Header { } func (c *DefaultObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/defaultObjectAcl/{entity}") @@ -4064,16 +3042,15 @@ func (c *DefaultObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Res "bucket": c.bucket, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.defaultObjectAccessControls.update" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *DefaultObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4081,17 +3058,17 @@ func (c *DefaultObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -4104,43 +3081,7 @@ func (c *DefaultObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Updates a default object ACL entry on the specified bucket.", - // "httpMethod": "PUT", - // "id": "storage.defaultObjectAccessControls.update", - // "parameterOrder": [ - // "bucket", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/defaultObjectAcl/{entity}", - // "request": { - // "$ref": "ObjectAccessControl" - // }, - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.delete": +} type ObjectAccessControlsDeleteCall struct { s *Service @@ -4152,8 +3093,14 @@ type ObjectAccessControlsDeleteCall struct { header_ http.Header } -// Delete: Permanently deletes the ACL entry for the specified entity on -// the specified object. +// Delete: Permanently deletes the ACL entry for the specified entity on the +// specified object. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. +// - object: Name of the object. func (r *ObjectAccessControlsService) Delete(bucket string, object string, entity string) *ObjectAccessControlsDeleteCall { c := &ObjectAccessControlsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -4162,32 +3109,30 @@ func (r *ObjectAccessControlsService) Delete(bucket string, object string, entit return c } -// Generation sets the optional parameter "generation": If present, -// selects a specific revision of this object (as opposed to the latest -// version, the default). +// Generation sets the optional parameter "generation": If present, selects a +// specific revision of this object (as opposed to the latest version, the +// default). func (c *ObjectAccessControlsDeleteCall) Generation(generation uint64) *ObjectAccessControlsDeleteCall { c.urlParams_.Set("generation", fmt.Sprint(generation)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsDeleteCall) Fields(s ...googleapi.Field) *ObjectAccessControlsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsDeleteCall) Context(ctx context.Context) *ObjectAccessControlsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4196,12 +3141,7 @@ func (c *ObjectAccessControlsDeleteCall) Header() http.Header { } func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -4217,7 +3157,7 @@ func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.delete" call. @@ -4229,53 +3169,10 @@ func (c *ObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Permanently deletes the ACL entry for the specified entity on the specified object.", - // "httpMethod": "DELETE", - // "id": "storage.objectAccessControls.delete", - // "parameterOrder": [ - // "bucket", - // "object", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "generation": { - // "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl/{entity}", - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.get": +} type ObjectAccessControlsGetCall struct { s *Service @@ -4288,8 +3185,13 @@ type ObjectAccessControlsGetCall struct { header_ http.Header } -// Get: Returns the ACL entry for the specified entity on the specified -// object. +// Get: Returns the ACL entry for the specified entity on the specified object. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. +// - object: Name of the object. func (r *ObjectAccessControlsService) Get(bucket string, object string, entity string) *ObjectAccessControlsGetCall { c := &ObjectAccessControlsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -4298,42 +3200,38 @@ func (r *ObjectAccessControlsService) Get(bucket string, object string, entity s return c } -// Generation sets the optional parameter "generation": If present, -// selects a specific revision of this object (as opposed to the latest -// version, the default). +// Generation sets the optional parameter "generation": If present, selects a +// specific revision of this object (as opposed to the latest version, the +// default). func (c *ObjectAccessControlsGetCall) Generation(generation uint64) *ObjectAccessControlsGetCall { c.urlParams_.Set("generation", fmt.Sprint(generation)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsGetCall) Fields(s ...googleapi.Field) *ObjectAccessControlsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ObjectAccessControlsGetCall) IfNoneMatch(entityTag string) *ObjectAccessControlsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsGetCall) Context(ctx context.Context) *ObjectAccessControlsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4342,12 +3240,7 @@ func (c *ObjectAccessControlsGetCall) Header() http.Header { } func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4366,16 +3259,15 @@ func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, err "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.get" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4383,17 +3275,17 @@ func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectA if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -4406,53 +3298,7 @@ func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectA return nil, err } return ret, nil - // { - // "description": "Returns the ACL entry for the specified entity on the specified object.", - // "httpMethod": "GET", - // "id": "storage.objectAccessControls.get", - // "parameterOrder": [ - // "bucket", - // "object", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "generation": { - // "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl/{entity}", - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.insert": +} type ObjectAccessControlsInsertCall struct { s *Service @@ -4465,6 +3311,9 @@ type ObjectAccessControlsInsertCall struct { } // Insert: Creates a new ACL entry on the specified object. +// +// - bucket: Name of a bucket. +// - object: Name of the object. func (r *ObjectAccessControlsService) Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall { c := &ObjectAccessControlsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -4473,32 +3322,30 @@ func (r *ObjectAccessControlsService) Insert(bucket string, object string, objec return c } -// Generation sets the optional parameter "generation": If present, -// selects a specific revision of this object (as opposed to the latest -// version, the default). +// Generation sets the optional parameter "generation": If present, selects a +// specific revision of this object (as opposed to the latest version, the +// default). func (c *ObjectAccessControlsInsertCall) Generation(generation uint64) *ObjectAccessControlsInsertCall { c.urlParams_.Set("generation", fmt.Sprint(generation)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsInsertCall) Fields(s ...googleapi.Field) *ObjectAccessControlsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsInsertCall) Context(ctx context.Context) *ObjectAccessControlsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4507,18 +3354,12 @@ func (c *ObjectAccessControlsInsertCall) Header() http.Header { } func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl") @@ -4532,16 +3373,15 @@ func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.insert" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4549,17 +3389,17 @@ func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*Obje if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -4572,49 +3412,7 @@ func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*Obje return nil, err } return ret, nil - // { - // "description": "Creates a new ACL entry on the specified object.", - // "httpMethod": "POST", - // "id": "storage.objectAccessControls.insert", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "generation": { - // "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl", - // "request": { - // "$ref": "ObjectAccessControl" - // }, - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.list": +} type ObjectAccessControlsListCall struct { s *Service @@ -4627,6 +3425,9 @@ type ObjectAccessControlsListCall struct { } // List: Retrieves ACL entries on the specified object. +// +// - bucket: Name of a bucket. +// - object: Name of the object. func (r *ObjectAccessControlsService) List(bucket string, object string) *ObjectAccessControlsListCall { c := &ObjectAccessControlsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -4634,42 +3435,38 @@ func (r *ObjectAccessControlsService) List(bucket string, object string) *Object return c } -// Generation sets the optional parameter "generation": If present, -// selects a specific revision of this object (as opposed to the latest -// version, the default). +// Generation sets the optional parameter "generation": If present, selects a +// specific revision of this object (as opposed to the latest version, the +// default). func (c *ObjectAccessControlsListCall) Generation(generation uint64) *ObjectAccessControlsListCall { c.urlParams_.Set("generation", fmt.Sprint(generation)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsListCall) Fields(s ...googleapi.Field) *ObjectAccessControlsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ObjectAccessControlsListCall) IfNoneMatch(entityTag string) *ObjectAccessControlsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsListCall) Context(ctx context.Context) *ObjectAccessControlsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4678,12 +3475,7 @@ func (c *ObjectAccessControlsListCall) Header() http.Header { } func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -4701,16 +3493,15 @@ func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, er "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.list" call. -// Exactly one of *ObjectAccessControls or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControls.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControls.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControls, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4718,17 +3509,17 @@ func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*Object if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControls{ ServerResponse: googleapi.ServerResponse{ @@ -4741,46 +3532,7 @@ func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*Object return nil, err } return ret, nil - // { - // "description": "Retrieves ACL entries on the specified object.", - // "httpMethod": "GET", - // "id": "storage.objectAccessControls.list", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "generation": { - // "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl", - // "response": { - // "$ref": "ObjectAccessControls" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.patch": +} type ObjectAccessControlsPatchCall struct { s *Service @@ -4793,8 +3545,14 @@ type ObjectAccessControlsPatchCall struct { header_ http.Header } -// Patch: Updates an ACL entry on the specified object. This method -// supports patch semantics. +// Patch: Updates an ACL entry on the specified object. This method supports +// patch semantics. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. +// - object: Name of the object. func (r *ObjectAccessControlsService) Patch(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsPatchCall { c := &ObjectAccessControlsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -4804,32 +3562,30 @@ func (r *ObjectAccessControlsService) Patch(bucket string, object string, entity return c } -// Generation sets the optional parameter "generation": If present, -// selects a specific revision of this object (as opposed to the latest -// version, the default). +// Generation sets the optional parameter "generation": If present, selects a +// specific revision of this object (as opposed to the latest version, the +// default). func (c *ObjectAccessControlsPatchCall) Generation(generation uint64) *ObjectAccessControlsPatchCall { c.urlParams_.Set("generation", fmt.Sprint(generation)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsPatchCall) Fields(s ...googleapi.Field) *ObjectAccessControlsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsPatchCall) Context(ctx context.Context) *ObjectAccessControlsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -4838,18 +3594,12 @@ func (c *ObjectAccessControlsPatchCall) Header() http.Header { } func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}") @@ -4864,16 +3614,15 @@ func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, e "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.patch" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -4881,17 +3630,17 @@ func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*Objec if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -4904,56 +3653,7 @@ func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*Objec return nil, err } return ret, nil - // { - // "description": "Updates an ACL entry on the specified object. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "storage.objectAccessControls.patch", - // "parameterOrder": [ - // "bucket", - // "object", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "generation": { - // "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl/{entity}", - // "request": { - // "$ref": "ObjectAccessControl" - // }, - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objectAccessControls.update": +} type ObjectAccessControlsUpdateCall struct { s *Service @@ -4967,6 +3667,12 @@ type ObjectAccessControlsUpdateCall struct { } // Update: Updates an ACL entry on the specified object. +// +// - bucket: Name of a bucket. +// - entity: The entity holding the permission. Can be user-userId, +// user-emailAddress, group-groupId, group-emailAddress, allUsers, or +// allAuthenticatedUsers. +// - object: Name of the object. func (r *ObjectAccessControlsService) Update(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsUpdateCall { c := &ObjectAccessControlsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -4976,32 +3682,30 @@ func (r *ObjectAccessControlsService) Update(bucket string, object string, entit return c } -// Generation sets the optional parameter "generation": If present, -// selects a specific revision of this object (as opposed to the latest -// version, the default). +// Generation sets the optional parameter "generation": If present, selects a +// specific revision of this object (as opposed to the latest version, the +// default). func (c *ObjectAccessControlsUpdateCall) Generation(generation uint64) *ObjectAccessControlsUpdateCall { c.urlParams_.Set("generation", fmt.Sprint(generation)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectAccessControlsUpdateCall) Fields(s ...googleapi.Field) *ObjectAccessControlsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectAccessControlsUpdateCall) Context(ctx context.Context) *ObjectAccessControlsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectAccessControlsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5010,18 +3714,12 @@ func (c *ObjectAccessControlsUpdateCall) Header() http.Header { } func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.objectaccesscontrol) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}") @@ -5036,16 +3734,15 @@ func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, "object": c.object, "entity": c.entity, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objectAccessControls.update" call. -// Exactly one of *ObjectAccessControl or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ObjectAccessControl.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ObjectAccessControl.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5053,17 +3750,17 @@ func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*Obje if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ObjectAccessControl{ ServerResponse: googleapi.ServerResponse{ @@ -5076,56 +3773,7 @@ func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*Obje return nil, err } return ret, nil - // { - // "description": "Updates an ACL entry on the specified object.", - // "httpMethod": "PUT", - // "id": "storage.objectAccessControls.update", - // "parameterOrder": [ - // "bucket", - // "object", - // "entity" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of a bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "entity": { - // "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "generation": { - // "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}/acl/{entity}", - // "request": { - // "$ref": "ObjectAccessControl" - // }, - // "response": { - // "$ref": "ObjectAccessControl" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control" - // ] - // } - -} - -// method id "storage.objects.compose": +} type ObjectsComposeCall struct { s *Service @@ -5137,8 +3785,12 @@ type ObjectsComposeCall struct { header_ http.Header } -// Compose: Concatenates a list of existing objects into a new object in -// the same bucket. +// Compose: Concatenates a list of existing objects into a new object in the +// same bucket. +// +// - destinationBucket: Name of the bucket containing the source objects. The +// destination object is stored in this bucket. +// - destinationObject: Name of the new object. func (r *ObjectsService) Compose(destinationBucket string, destinationObject string, composerequest *ComposeRequest) *ObjectsComposeCall { c := &ObjectsComposeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.destinationBucket = destinationBucket @@ -5147,40 +3799,38 @@ func (r *ObjectsService) Compose(destinationBucket string, destinationObject str return c } -// IfGenerationMatch sets the optional parameter "ifGenerationMatch": -// Makes the operation conditional on whether the object's current -// generation matches the given value. +// IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the +// operation conditional on whether the object's current generation matches the +// given value. func (c *ObjectsComposeCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsComposeCall { c.urlParams_.Set("ifGenerationMatch", fmt.Sprint(ifGenerationMatch)) return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the operation conditional on whether -// the object's current metageneration matches the given value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the operation conditional on whether the object's current +// metageneration matches the given value. func (c *ObjectsComposeCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsComposeCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsComposeCall) Fields(s ...googleapi.Field) *ObjectsComposeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ObjectsComposeCall) Context(ctx context.Context) *ObjectsComposeCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsComposeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5189,18 +3839,12 @@ func (c *ObjectsComposeCall) Header() http.Header { } func (c *ObjectsComposeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.composerequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{destinationBucket}/o/{destinationObject}/compose") @@ -5214,7 +3858,7 @@ func (c *ObjectsComposeCall) doRequest(alt string) (*http.Response, error) { "destinationBucket": c.destinationBucket, "destinationObject": c.destinationObject, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, true) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -5228,18 +3872,16 @@ func (c *ObjectsComposeCall) Download(opts ...googleapi.CallOption) (*http.Respo } if err := googleapi.CheckMediaResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "storage.objects.compose" call. -// Exactly one of *Object or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Object.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Object.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsComposeCall) Do(opts ...googleapi.CallOption) (*Object, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5247,17 +3889,17 @@ func (c *ObjectsComposeCall) Do(opts ...googleapi.CallOption) (*Object, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Object{ ServerResponse: googleapi.ServerResponse{ @@ -5270,57 +3912,7 @@ func (c *ObjectsComposeCall) Do(opts ...googleapi.CallOption) (*Object, error) { return nil, err } return ret, nil - // { - // "description": "Concatenates a list of existing objects into a new object in the same bucket.", - // "httpMethod": "POST", - // "id": "storage.objects.compose", - // "parameterOrder": [ - // "destinationBucket", - // "destinationObject" - // ], - // "parameters": { - // "destinationBucket": { - // "description": "Name of the bucket containing the source objects. The destination object is stored in this bucket.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "destinationObject": { - // "description": "Name of the new object.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ifGenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current generation matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{destinationBucket}/o/{destinationObject}/compose", - // "request": { - // "$ref": "ComposeRequest" - // }, - // "response": { - // "$ref": "Object" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "storage.objects.copy": +} type ObjectsCopyCall struct { s *Service @@ -5334,8 +3926,16 @@ type ObjectsCopyCall struct { header_ http.Header } -// Copy: Copies an object to a destination in the same location. -// Optionally overrides metadata. +// Copy: Copies an object to a destination in the same location. Optionally +// overrides metadata. +// +// - destinationBucket: Name of the bucket in which to store the new object. +// Overrides the provided object metadata's bucket value, if any. +// - destinationObject: Name of the new object. Required when the object +// metadata is not otherwise provided. Overrides the object metadata's name +// value, if any. +// - sourceBucket: Name of the bucket in which to find the source object. +// - sourceObject: Name of the source object. func (r *ObjectsService) Copy(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsCopyCall { c := &ObjectsCopyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.sourceBucket = sourceBucket @@ -5346,79 +3946,73 @@ func (r *ObjectsService) Copy(sourceBucket string, sourceObject string, destinat return c } -// IfGenerationMatch sets the optional parameter "ifGenerationMatch": -// Makes the operation conditional on whether the destination object's -// current generation matches the given value. +// IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the +// operation conditional on whether the destination object's current generation +// matches the given value. func (c *ObjectsCopyCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsCopyCall { c.urlParams_.Set("ifGenerationMatch", fmt.Sprint(ifGenerationMatch)) return c } -// IfGenerationNotMatch sets the optional parameter -// "ifGenerationNotMatch": Makes the operation conditional on whether -// the destination object's current generation does not match the given -// value. +// IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": +// Makes the operation conditional on whether the destination object's current +// generation does not match the given value. func (c *ObjectsCopyCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsCopyCall { c.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint(ifGenerationNotMatch)) return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the operation conditional on whether -// the destination object's current metageneration matches the given -// value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the operation conditional on whether the destination object's current +// metageneration matches the given value. func (c *ObjectsCopyCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsCopyCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c } // IfMetagenerationNotMatch sets the optional parameter -// "ifMetagenerationNotMatch": Makes the operation conditional on -// whether the destination object's current metageneration does not -// match the given value. +// "ifMetagenerationNotMatch": Makes the operation conditional on whether the +// destination object's current metageneration does not match the given value. func (c *ObjectsCopyCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsCopyCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } // IfSourceGenerationMatch sets the optional parameter -// "ifSourceGenerationMatch": Makes the operation conditional on whether -// the source object's generation matches the given value. +// "ifSourceGenerationMatch": Makes the operation conditional on whether the +// source object's generation matches the given value. func (c *ObjectsCopyCall) IfSourceGenerationMatch(ifSourceGenerationMatch uint64) *ObjectsCopyCall { c.urlParams_.Set("ifSourceGenerationMatch", fmt.Sprint(ifSourceGenerationMatch)) return c } // IfSourceGenerationNotMatch sets the optional parameter -// "ifSourceGenerationNotMatch": Makes the operation conditional on -// whether the source object's generation does not match the given -// value. +// "ifSourceGenerationNotMatch": Makes the operation conditional on whether the +// source object's generation does not match the given value. func (c *ObjectsCopyCall) IfSourceGenerationNotMatch(ifSourceGenerationNotMatch uint64) *ObjectsCopyCall { c.urlParams_.Set("ifSourceGenerationNotMatch", fmt.Sprint(ifSourceGenerationNotMatch)) return c } // IfSourceMetagenerationMatch sets the optional parameter -// "ifSourceMetagenerationMatch": Makes the operation conditional on -// whether the source object's current metageneration matches the given -// value. +// "ifSourceMetagenerationMatch": Makes the operation conditional on whether +// the source object's current metageneration matches the given value. func (c *ObjectsCopyCall) IfSourceMetagenerationMatch(ifSourceMetagenerationMatch uint64) *ObjectsCopyCall { c.urlParams_.Set("ifSourceMetagenerationMatch", fmt.Sprint(ifSourceMetagenerationMatch)) return c } // IfSourceMetagenerationNotMatch sets the optional parameter -// "ifSourceMetagenerationNotMatch": Makes the operation conditional on -// whether the source object's current metageneration does not match the -// given value. +// "ifSourceMetagenerationNotMatch": Makes the operation conditional on whether +// the source object's current metageneration does not match the given value. func (c *ObjectsCopyCall) IfSourceMetagenerationNotMatch(ifSourceMetagenerationNotMatch uint64) *ObjectsCopyCall { c.urlParams_.Set("ifSourceMetagenerationNotMatch", fmt.Sprint(ifSourceMetagenerationNotMatch)) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to noAcl, unless the object resource -// specifies the acl property, when it defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to noAcl, unless the object resource specifies the acl +// property, when it defaults to full. // // Possible values: // @@ -5429,32 +4023,30 @@ func (c *ObjectsCopyCall) Projection(projection string) *ObjectsCopyCall { return c } -// SourceGeneration sets the optional parameter "sourceGeneration": If -// present, selects a specific revision of the source object (as opposed -// to the latest version, the default). +// SourceGeneration sets the optional parameter "sourceGeneration": If present, +// selects a specific revision of the source object (as opposed to the latest +// version, the default). func (c *ObjectsCopyCall) SourceGeneration(sourceGeneration uint64) *ObjectsCopyCall { c.urlParams_.Set("sourceGeneration", fmt.Sprint(sourceGeneration)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsCopyCall) Fields(s ...googleapi.Field) *ObjectsCopyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ObjectsCopyCall) Context(ctx context.Context) *ObjectsCopyCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsCopyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5463,18 +4055,12 @@ func (c *ObjectsCopyCall) Header() http.Header { } func (c *ObjectsCopyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.object) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}") @@ -5490,7 +4076,7 @@ func (c *ObjectsCopyCall) doRequest(alt string) (*http.Response, error) { "destinationBucket": c.destinationBucket, "destinationObject": c.destinationObject, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, true) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -5504,18 +4090,16 @@ func (c *ObjectsCopyCall) Download(opts ...googleapi.CallOption) (*http.Response } if err := googleapi.CheckMediaResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "storage.objects.copy" call. -// Exactly one of *Object or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Object.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Object.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsCopyCall) Do(opts ...googleapi.CallOption) (*Object, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -5523,17 +4107,17 @@ func (c *ObjectsCopyCall) Do(opts ...googleapi.CallOption) (*Object, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Object{ ServerResponse: googleapi.ServerResponse{ @@ -5546,126 +4130,7 @@ func (c *ObjectsCopyCall) Do(opts ...googleapi.CallOption) (*Object, error) { return nil, err } return ret, nil - // { - // "description": "Copies an object to a destination in the same location. Optionally overrides metadata.", - // "httpMethod": "POST", - // "id": "storage.objects.copy", - // "parameterOrder": [ - // "sourceBucket", - // "sourceObject", - // "destinationBucket", - // "destinationObject" - // ], - // "parameters": { - // "destinationBucket": { - // "description": "Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "destinationObject": { - // "description": "Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ifGenerationMatch": { - // "description": "Makes the operation conditional on whether the destination object's current generation matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifGenerationNotMatch": { - // "description": "Makes the operation conditional on whether the destination object's current generation does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the operation conditional on whether the destination object's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "Makes the operation conditional on whether the destination object's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifSourceGenerationMatch": { - // "description": "Makes the operation conditional on whether the source object's generation matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifSourceGenerationNotMatch": { - // "description": "Makes the operation conditional on whether the source object's generation does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifSourceMetagenerationMatch": { - // "description": "Makes the operation conditional on whether the source object's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifSourceMetagenerationNotMatch": { - // "description": "Makes the operation conditional on whether the source object's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // }, - // "sourceBucket": { - // "description": "Name of the bucket in which to find the source object.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sourceGeneration": { - // "description": "If present, selects a specific revision of the source object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "sourceObject": { - // "description": "Name of the source object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}", - // "request": { - // "$ref": "Object" - // }, - // "response": { - // "$ref": "Object" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "storage.objects.delete": +} type ObjectsDeleteCall struct { s *Service @@ -5676,9 +4141,12 @@ type ObjectsDeleteCall struct { header_ http.Header } -// Delete: Deletes data blobs and associated metadata. Deletions are -// permanent if versioning is not enabled for the bucket, or if the -// generation parameter is used. +// Delete: Deletes data blobs and associated metadata. Deletions are permanent +// if versioning is not enabled for the bucket, or if the generation parameter +// is used. +// +// - bucket: Name of the bucket in which the object resides. +// - object: Name of the object. func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall { c := &ObjectsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -5686,65 +4154,62 @@ func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall return c } -// Generation sets the optional parameter "generation": If present, -// permanently deletes a specific revision of this object (as opposed to -// the latest version, the default). +// Generation sets the optional parameter "generation": If present, permanently +// deletes a specific revision of this object (as opposed to the latest +// version, the default). func (c *ObjectsDeleteCall) Generation(generation uint64) *ObjectsDeleteCall { c.urlParams_.Set("generation", fmt.Sprint(generation)) return c } -// IfGenerationMatch sets the optional parameter "ifGenerationMatch": -// Makes the operation conditional on whether the object's current -// generation matches the given value. +// IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the +// operation conditional on whether the object's current generation matches the +// given value. func (c *ObjectsDeleteCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsDeleteCall { c.urlParams_.Set("ifGenerationMatch", fmt.Sprint(ifGenerationMatch)) return c } -// IfGenerationNotMatch sets the optional parameter -// "ifGenerationNotMatch": Makes the operation conditional on whether -// the object's current generation does not match the given value. +// IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": +// Makes the operation conditional on whether the object's current generation +// does not match the given value. func (c *ObjectsDeleteCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsDeleteCall { c.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint(ifGenerationNotMatch)) return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the operation conditional on whether -// the object's current metageneration matches the given value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the operation conditional on whether the object's current +// metageneration matches the given value. func (c *ObjectsDeleteCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsDeleteCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c } // IfMetagenerationNotMatch sets the optional parameter -// "ifMetagenerationNotMatch": Makes the operation conditional on -// whether the object's current metageneration does not match the given -// value. +// "ifMetagenerationNotMatch": Makes the operation conditional on whether the +// object's current metageneration does not match the given value. func (c *ObjectsDeleteCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsDeleteCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsDeleteCall) Fields(s ...googleapi.Field) *ObjectsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectsDeleteCall) Context(ctx context.Context) *ObjectsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5753,12 +4218,7 @@ func (c *ObjectsDeleteCall) Header() http.Header { } func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -5773,7 +4233,7 @@ func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.delete" call. @@ -5785,71 +4245,10 @@ func (c *ObjectsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes data blobs and associated metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.", - // "httpMethod": "DELETE", - // "id": "storage.objects.delete", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which the object resides.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "generation": { - // "description": "If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifGenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current generation matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifGenerationNotMatch": { - // "description": "Makes the operation conditional on whether the object's current generation does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}", - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.objects.get": +} type ObjectsGetCall struct { s *Service @@ -5862,6 +4261,9 @@ type ObjectsGetCall struct { } // Get: Retrieves objects or their associated metadata. +// +// - bucket: Name of the bucket in which the object resides. +// - object: Name of the object. func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall { c := &ObjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -5869,49 +4271,48 @@ func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall { return c } -// Generation sets the optional parameter "generation": If present, -// selects a specific revision of this object (as opposed to the latest -// version, the default). +// Generation sets the optional parameter "generation": If present, selects a +// specific revision of this object (as opposed to the latest version, the +// default). func (c *ObjectsGetCall) Generation(generation uint64) *ObjectsGetCall { c.urlParams_.Set("generation", fmt.Sprint(generation)) return c } -// IfGenerationMatch sets the optional parameter "ifGenerationMatch": -// Makes the operation conditional on whether the object's generation -// matches the given value. +// IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the +// operation conditional on whether the object's generation matches the given +// value. func (c *ObjectsGetCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsGetCall { c.urlParams_.Set("ifGenerationMatch", fmt.Sprint(ifGenerationMatch)) return c } -// IfGenerationNotMatch sets the optional parameter -// "ifGenerationNotMatch": Makes the operation conditional on whether -// the object's generation does not match the given value. +// IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": +// Makes the operation conditional on whether the object's generation does not +// match the given value. func (c *ObjectsGetCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsGetCall { c.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint(ifGenerationNotMatch)) return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the operation conditional on whether -// the object's current metageneration matches the given value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the operation conditional on whether the object's current +// metageneration matches the given value. func (c *ObjectsGetCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsGetCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c } // IfMetagenerationNotMatch sets the optional parameter -// "ifMetagenerationNotMatch": Makes the operation conditional on -// whether the object's current metageneration does not match the given -// value. +// "ifMetagenerationNotMatch": Makes the operation conditional on whether the +// object's current metageneration does not match the given value. func (c *ObjectsGetCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsGetCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to noAcl. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to noAcl. // // Possible values: // @@ -5923,33 +4324,29 @@ func (c *ObjectsGetCall) Projection(projection string) *ObjectsGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsGetCall) Fields(s ...googleapi.Field) *ObjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ObjectsGetCall) IfNoneMatch(entityTag string) *ObjectsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ObjectsGetCall) Context(ctx context.Context) *ObjectsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -5958,12 +4355,7 @@ func (c *ObjectsGetCall) Header() http.Header { } func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -5981,7 +4373,7 @@ func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, true) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -5995,18 +4387,16 @@ func (c *ObjectsGetCall) Download(opts ...googleapi.CallOption) (*http.Response, } if err := googleapi.CheckMediaResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "storage.objects.get" call. -// Exactly one of *Object or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Object.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Object.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6014,17 +4404,17 @@ func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Object{ ServerResponse: googleapi.ServerResponse{ @@ -6037,86 +4427,7 @@ func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves objects or their associated metadata.", - // "httpMethod": "GET", - // "id": "storage.objects.get", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which the object resides.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "generation": { - // "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifGenerationMatch": { - // "description": "Makes the operation conditional on whether the object's generation matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifGenerationNotMatch": { - // "description": "Makes the operation conditional on whether the object's generation does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to noAcl.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}", - // "response": { - // "$ref": "Object" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "storage.objects.insert": +} type ObjectsInsertCall struct { s *Service @@ -6124,11 +4435,15 @@ type ObjectsInsertCall struct { object *Object urlParams_ gensupport.URLParams mediaInfo_ *gensupport.MediaInfo + retry *gensupport.RetryConfig ctx_ context.Context header_ http.Header } // Insert: Stores new data blobs and associated metadata. +// +// - bucket: Name of the bucket in which to store the new object. Overrides the +// provided object metadata's bucket value, if any. func (r *ObjectsService) Insert(bucket string, object *Object) *ObjectsInsertCall { c := &ObjectsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -6136,50 +4451,49 @@ func (r *ObjectsService) Insert(bucket string, object *Object) *ObjectsInsertCal return c } -// IfGenerationMatch sets the optional parameter "ifGenerationMatch": -// Makes the operation conditional on whether the object's current -// generation matches the given value. +// IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the +// operation conditional on whether the object's current generation matches the +// given value. func (c *ObjectsInsertCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsInsertCall { c.urlParams_.Set("ifGenerationMatch", fmt.Sprint(ifGenerationMatch)) return c } -// IfGenerationNotMatch sets the optional parameter -// "ifGenerationNotMatch": Makes the operation conditional on whether -// the object's current generation does not match the given value. +// IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": +// Makes the operation conditional on whether the object's current generation +// does not match the given value. func (c *ObjectsInsertCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsInsertCall { c.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint(ifGenerationNotMatch)) return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the operation conditional on whether -// the object's current metageneration matches the given value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the operation conditional on whether the object's current +// metageneration matches the given value. func (c *ObjectsInsertCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsInsertCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c } // IfMetagenerationNotMatch sets the optional parameter -// "ifMetagenerationNotMatch": Makes the operation conditional on -// whether the object's current metageneration does not match the given -// value. +// "ifMetagenerationNotMatch": Makes the operation conditional on whether the +// object's current metageneration does not match the given value. func (c *ObjectsInsertCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsInsertCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } -// Name sets the optional parameter "name": Name of the object. Required -// when the object metadata is not otherwise provided. Overrides the -// object metadata's name value, if any. +// Name sets the optional parameter "name": Name of the object. Required when +// the object metadata is not otherwise provided. Overrides the object +// metadata's name value, if any. func (c *ObjectsInsertCall) Name(name string) *ObjectsInsertCall { c.urlParams_.Set("name", name) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to noAcl, unless the object resource -// specifies the acl property, when it defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to noAcl, unless the object resource specifies the acl +// property, when it defaults to full. // // Possible values: // @@ -6190,13 +4504,12 @@ func (c *ObjectsInsertCall) Projection(projection string) *ObjectsInsertCall { return c } -// Media specifies the media to upload in one or more chunks. The chunk -// size may be controlled by supplying a MediaOption generated by +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by // googleapi.ChunkSize. The chunk size defaults to -// googleapi.DefaultUploadChunkSize.The Content-Type header used in the -// upload request will be determined by sniffing the contents of r, -// unless a MediaOption generated by googleapi.ContentType is -// supplied. +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. // At most one of Media and ResumableMedia may be set. func (c *ObjectsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *ObjectsInsertCall { if ct := c.object.ContentType; ct != "" { @@ -6206,41 +4519,64 @@ func (c *ObjectsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) return c } -// ResumableMedia specifies the media to upload in chunks and can be -// canceled with ctx. +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. // // Deprecated: use Media instead. // -// At most one of Media and ResumableMedia may be set. mediaType -// identifies the MIME media type of the upload, such as "image/png". If -// mediaType is "", it will be auto-detected. The provided ctx will -// supersede any context previously provided to the Context method. +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. func (c *ObjectsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ObjectsInsertCall { c.ctx_ = ctx c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) return c } -// ProgressUpdater provides a callback function that will be called -// after every chunk. It should be a low-latency function in order to -// not slow down the upload operation. This should only be called when -// using ResumableMedia (as opposed to Media). +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). func (c *ObjectsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ObjectsInsertCall { c.mediaInfo_.SetProgressUpdater(pu) return c } +// WithRetry causes the library to retry the initial request of the upload(for +// resumable uploads) or the entire upload (for multipart uploads) ifa +// transient error occurs. This is contingent on ChunkSize being > 0 (sothat +// the input data may be buffered). The backoff argument will be used +// todetermine exponential backoff timing, and the errorFunc is used to +// determinewhich errors are considered retryable. By default, exponetial +// backoff will beapplied using gax defaults, and the following errors are +// retried: +// +// - HTTP responses with codes 408, 429, 502, 503, and 504. +// +// - Transient network errors such as connection reset and +// io.ErrUnexpectedEOF. +// +// - Errors which are considered transient using the Temporary() interface. +// +// - Wrapped versions of these errors. +func (c *ObjectsInsertCall) WithRetry(bo *gax.Backoff, errorFunc func(err error) bool) *ObjectsInsertCall { + c.retry = &gensupport.RetryConfig{ + Backoff: bo, + ShouldRetry: errorFunc, + } + return c +} + // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsInsertCall) Fields(s ...googleapi.Field) *ObjectsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. // This context will supersede any context previously provided to the // ResumableMedia method. func (c *ObjectsInsertCall) Context(ctx context.Context) *ObjectsInsertCall { @@ -6248,8 +4584,8 @@ func (c *ObjectsInsertCall) Context(ctx context.Context) *ObjectsInsertCall { return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6258,18 +4594,12 @@ func (c *ObjectsInsertCall) Header() http.Header { } func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.object) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o") @@ -6293,16 +4623,17 @@ func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + if c.retry != nil { + return gensupport.SendRequestWithRetry(c.ctx_, c.s.client, req, c.retry, false) + } + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.insert" call. -// Exactly one of *Object or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Object.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Object.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6310,22 +4641,23 @@ func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) if rx != nil { rx.Client = c.s.client rx.UserAgent = c.s.userAgent() + rx.Retry = c.retry ctx := c.ctx_ if ctx == nil { ctx = context.TODO() @@ -6336,7 +4668,7 @@ func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) { } defer res.Body.Close() if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } } ret := &Object{ @@ -6350,96 +4682,7 @@ func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) { return nil, err } return ret, nil - // { - // "description": "Stores new data blobs and associated metadata.", - // "httpMethod": "POST", - // "id": "storage.objects.insert", - // "mediaUpload": { - // "accept": [ - // "*/*" - // ], - // "protocols": { - // "resumable": { - // "multipart": true, - // "path": "/resumable/upload/storage/v1beta2/b/{bucket}/o" - // }, - // "simple": { - // "multipart": true, - // "path": "/upload/storage/v1beta2/b/{bucket}/o" - // } - // } - // }, - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "ifGenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current generation matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifGenerationNotMatch": { - // "description": "Makes the operation conditional on whether the object's current generation does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.", - // "location": "query", - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o", - // "request": { - // "$ref": "Object" - // }, - // "response": { - // "$ref": "Object" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsMediaDownload": true, - // "supportsMediaUpload": true - // } - -} - -// method id "storage.objects.list": +} type ObjectsListCall struct { s *Service @@ -6451,48 +4694,48 @@ type ObjectsListCall struct { } // List: Retrieves a list of objects matching the criteria. +// +// - bucket: Name of the bucket in which to look for objects. func (r *ObjectsService) List(bucket string) *ObjectsListCall { c := &ObjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket return c } -// Delimiter sets the optional parameter "delimiter": Returns results in -// a directory-like mode. items will contain only objects whose names, -// aside from the prefix, do not contain delimiter. Objects whose names, -// aside from the prefix, contain delimiter will have their name, -// truncated after the delimiter, returned in prefixes. Duplicate -// prefixes are omitted. +// Delimiter sets the optional parameter "delimiter": Returns results in a +// directory-like mode. items will contain only objects whose names, aside from +// the prefix, do not contain delimiter. Objects whose names, aside from the +// prefix, contain delimiter will have their name, truncated after the +// delimiter, returned in prefixes. Duplicate prefixes are omitted. func (c *ObjectsListCall) Delimiter(delimiter string) *ObjectsListCall { c.urlParams_.Set("delimiter", delimiter) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of items plus prefixes to return. As duplicate prefixes are omitted, -// fewer total results may be returned than requested. +// MaxResults sets the optional parameter "maxResults": Maximum number of items +// plus prefixes to return. As duplicate prefixes are omitted, fewer total +// results may be returned than requested. func (c *ObjectsListCall) MaxResults(maxResults int64) *ObjectsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set of -// results to view. +// PageToken sets the optional parameter "pageToken": A previously-returned +// page token representing part of the larger set of results to view. func (c *ObjectsListCall) PageToken(pageToken string) *ObjectsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Prefix sets the optional parameter "prefix": Filter results to -// objects whose names begin with this prefix. +// Prefix sets the optional parameter "prefix": Filter results to objects whose +// names begin with this prefix. func (c *ObjectsListCall) Prefix(prefix string) *ObjectsListCall { c.urlParams_.Set("prefix", prefix) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to noAcl. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to noAcl. // // Possible values: // @@ -6503,41 +4746,37 @@ func (c *ObjectsListCall) Projection(projection string) *ObjectsListCall { return c } -// Versions sets the optional parameter "versions": If true, lists all -// versions of a file as distinct results. +// Versions sets the optional parameter "versions": If true, lists all versions +// of a file as distinct results. func (c *ObjectsListCall) Versions(versions bool) *ObjectsListCall { c.urlParams_.Set("versions", fmt.Sprint(versions)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsListCall) Fields(s ...googleapi.Field) *ObjectsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ObjectsListCall) IfNoneMatch(entityTag string) *ObjectsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectsListCall) Context(ctx context.Context) *ObjectsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6546,12 +4785,7 @@ func (c *ObjectsListCall) Header() http.Header { } func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -6568,16 +4802,14 @@ func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.list" call. -// Exactly one of *Objects or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Objects.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Objects.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6585,17 +4817,17 @@ func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Objects{ ServerResponse: googleapi.ServerResponse{ @@ -6608,73 +4840,6 @@ func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of objects matching the criteria.", - // "httpMethod": "GET", - // "id": "storage.objects.list", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which to look for objects.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "delimiter": { - // "description": "Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "description": "Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of results to view.", - // "location": "query", - // "type": "string" - // }, - // "prefix": { - // "description": "Filter results to objects whose names begin with this prefix.", - // "location": "query", - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to noAcl.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // }, - // "versions": { - // "description": "If true, lists all versions of a file as distinct results.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "b/{bucket}/o", - // "response": { - // "$ref": "Objects" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsSubscription": true - // } - } // Pages invokes f for each page of results. @@ -6682,7 +4847,7 @@ func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error) { // The provided context supersedes any context provided to the Context method. func (c *ObjectsListCall) Pages(ctx context.Context, f func(*Objects) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -6698,8 +4863,6 @@ func (c *ObjectsListCall) Pages(ctx context.Context, f func(*Objects) error) err } } -// method id "storage.objects.patch": - type ObjectsPatchCall struct { s *Service bucket string @@ -6710,8 +4873,11 @@ type ObjectsPatchCall struct { header_ http.Header } -// Patch: Updates a data blob's associated metadata. This method -// supports patch semantics. +// Patch: Updates a data blob's associated metadata. This method supports patch +// semantics. +// +// - bucket: Name of the bucket in which the object resides. +// - object: Name of the object. func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall { c := &ObjectsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -6720,49 +4886,48 @@ func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *O return c } -// Generation sets the optional parameter "generation": If present, -// selects a specific revision of this object (as opposed to the latest -// version, the default). +// Generation sets the optional parameter "generation": If present, selects a +// specific revision of this object (as opposed to the latest version, the +// default). func (c *ObjectsPatchCall) Generation(generation uint64) *ObjectsPatchCall { c.urlParams_.Set("generation", fmt.Sprint(generation)) return c } -// IfGenerationMatch sets the optional parameter "ifGenerationMatch": -// Makes the operation conditional on whether the object's current -// generation matches the given value. +// IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the +// operation conditional on whether the object's current generation matches the +// given value. func (c *ObjectsPatchCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsPatchCall { c.urlParams_.Set("ifGenerationMatch", fmt.Sprint(ifGenerationMatch)) return c } -// IfGenerationNotMatch sets the optional parameter -// "ifGenerationNotMatch": Makes the operation conditional on whether -// the object's current generation does not match the given value. +// IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": +// Makes the operation conditional on whether the object's current generation +// does not match the given value. func (c *ObjectsPatchCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsPatchCall { c.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint(ifGenerationNotMatch)) return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the operation conditional on whether -// the object's current metageneration matches the given value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the operation conditional on whether the object's current +// metageneration matches the given value. func (c *ObjectsPatchCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsPatchCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c } // IfMetagenerationNotMatch sets the optional parameter -// "ifMetagenerationNotMatch": Makes the operation conditional on -// whether the object's current metageneration does not match the given -// value. +// "ifMetagenerationNotMatch": Makes the operation conditional on whether the +// object's current metageneration does not match the given value. func (c *ObjectsPatchCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsPatchCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to full. // // Possible values: // @@ -6774,23 +4939,21 @@ func (c *ObjectsPatchCall) Projection(projection string) *ObjectsPatchCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsPatchCall) Fields(s ...googleapi.Field) *ObjectsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectsPatchCall) Context(ctx context.Context) *ObjectsPatchCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -6799,18 +4962,12 @@ func (c *ObjectsPatchCall) Header() http.Header { } func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.object2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}") @@ -6824,16 +4981,14 @@ func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.patch" call. -// Exactly one of *Object or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Object.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Object.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -6841,17 +4996,17 @@ func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Object{ ServerResponse: googleapi.ServerResponse{ @@ -6864,87 +5019,7 @@ func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) { return nil, err } return ret, nil - // { - // "description": "Updates a data blob's associated metadata. This method supports patch semantics.", - // "httpMethod": "PATCH", - // "id": "storage.objects.patch", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which the object resides.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "generation": { - // "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifGenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current generation matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifGenerationNotMatch": { - // "description": "Makes the operation conditional on whether the object's current generation does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to full.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}", - // "request": { - // "$ref": "Object" - // }, - // "response": { - // "$ref": "Object" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ] - // } - -} - -// method id "storage.objects.update": +} type ObjectsUpdateCall struct { s *Service @@ -6957,6 +5032,9 @@ type ObjectsUpdateCall struct { } // Update: Updates a data blob's associated metadata. +// +// - bucket: Name of the bucket in which the object resides. +// - object: Name of the object. func (r *ObjectsService) Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall { c := &ObjectsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -6965,49 +5043,48 @@ func (r *ObjectsService) Update(bucket string, object string, object2 *Object) * return c } -// Generation sets the optional parameter "generation": If present, -// selects a specific revision of this object (as opposed to the latest -// version, the default). +// Generation sets the optional parameter "generation": If present, selects a +// specific revision of this object (as opposed to the latest version, the +// default). func (c *ObjectsUpdateCall) Generation(generation uint64) *ObjectsUpdateCall { c.urlParams_.Set("generation", fmt.Sprint(generation)) return c } -// IfGenerationMatch sets the optional parameter "ifGenerationMatch": -// Makes the operation conditional on whether the object's current -// generation matches the given value. +// IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the +// operation conditional on whether the object's current generation matches the +// given value. func (c *ObjectsUpdateCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsUpdateCall { c.urlParams_.Set("ifGenerationMatch", fmt.Sprint(ifGenerationMatch)) return c } -// IfGenerationNotMatch sets the optional parameter -// "ifGenerationNotMatch": Makes the operation conditional on whether -// the object's current generation does not match the given value. +// IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": +// Makes the operation conditional on whether the object's current generation +// does not match the given value. func (c *ObjectsUpdateCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsUpdateCall { c.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint(ifGenerationNotMatch)) return c } -// IfMetagenerationMatch sets the optional parameter -// "ifMetagenerationMatch": Makes the operation conditional on whether -// the object's current metageneration matches the given value. +// IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": +// Makes the operation conditional on whether the object's current +// metageneration matches the given value. func (c *ObjectsUpdateCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsUpdateCall { c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) return c } // IfMetagenerationNotMatch sets the optional parameter -// "ifMetagenerationNotMatch": Makes the operation conditional on -// whether the object's current metageneration does not match the given -// value. +// "ifMetagenerationNotMatch": Makes the operation conditional on whether the +// object's current metageneration does not match the given value. func (c *ObjectsUpdateCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsUpdateCall { c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to full. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to full. // // Possible values: // @@ -7019,23 +5096,21 @@ func (c *ObjectsUpdateCall) Projection(projection string) *ObjectsUpdateCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsUpdateCall) Fields(s ...googleapi.Field) *ObjectsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ObjectsUpdateCall) Context(ctx context.Context) *ObjectsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7044,18 +5119,12 @@ func (c *ObjectsUpdateCall) Header() http.Header { } func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.object2) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}") @@ -7069,7 +5138,7 @@ func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) { "bucket": c.bucket, "object": c.object, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, true) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -7083,18 +5152,16 @@ func (c *ObjectsUpdateCall) Download(opts ...googleapi.CallOption) (*http.Respon } if err := googleapi.CheckMediaResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "storage.objects.update" call. -// Exactly one of *Object or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Object.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Object.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7102,17 +5169,17 @@ func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Object{ ServerResponse: googleapi.ServerResponse{ @@ -7125,88 +5192,7 @@ func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error) { return nil, err } return ret, nil - // { - // "description": "Updates a data blob's associated metadata.", - // "httpMethod": "PUT", - // "id": "storage.objects.update", - // "parameterOrder": [ - // "bucket", - // "object" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which the object resides.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "generation": { - // "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifGenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current generation matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifGenerationNotMatch": { - // "description": "Makes the operation conditional on whether the object's current generation does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "ifMetagenerationNotMatch": { - // "description": "Makes the operation conditional on whether the object's current metageneration does not match the given value.", - // "format": "uint64", - // "location": "query", - // "type": "string" - // }, - // "object": { - // "description": "Name of the object.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to full.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // } - // }, - // "path": "b/{bucket}/o/{object}", - // "request": { - // "$ref": "Object" - // }, - // "response": { - // "$ref": "Object" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "storage.objects.watchAll": +} type ObjectsWatchAllCall struct { s *Service @@ -7218,6 +5204,8 @@ type ObjectsWatchAllCall struct { } // WatchAll: Watch for changes on all objects in a bucket. +// +// - bucket: Name of the bucket in which to look for objects. func (r *ObjectsService) WatchAll(bucket string, channel *Channel) *ObjectsWatchAllCall { c := &ObjectsWatchAllCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket @@ -7225,42 +5213,40 @@ func (r *ObjectsService) WatchAll(bucket string, channel *Channel) *ObjectsWatch return c } -// Delimiter sets the optional parameter "delimiter": Returns results in -// a directory-like mode. items will contain only objects whose names, -// aside from the prefix, do not contain delimiter. Objects whose names, -// aside from the prefix, contain delimiter will have their name, -// truncated after the delimiter, returned in prefixes. Duplicate -// prefixes are omitted. +// Delimiter sets the optional parameter "delimiter": Returns results in a +// directory-like mode. items will contain only objects whose names, aside from +// the prefix, do not contain delimiter. Objects whose names, aside from the +// prefix, contain delimiter will have their name, truncated after the +// delimiter, returned in prefixes. Duplicate prefixes are omitted. func (c *ObjectsWatchAllCall) Delimiter(delimiter string) *ObjectsWatchAllCall { c.urlParams_.Set("delimiter", delimiter) return c } -// MaxResults sets the optional parameter "maxResults": Maximum number -// of items plus prefixes to return. As duplicate prefixes are omitted, -// fewer total results may be returned than requested. +// MaxResults sets the optional parameter "maxResults": Maximum number of items +// plus prefixes to return. As duplicate prefixes are omitted, fewer total +// results may be returned than requested. func (c *ObjectsWatchAllCall) MaxResults(maxResults int64) *ObjectsWatchAllCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// PageToken sets the optional parameter "pageToken": A -// previously-returned page token representing part of the larger set of -// results to view. +// PageToken sets the optional parameter "pageToken": A previously-returned +// page token representing part of the larger set of results to view. func (c *ObjectsWatchAllCall) PageToken(pageToken string) *ObjectsWatchAllCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Prefix sets the optional parameter "prefix": Filter results to -// objects whose names begin with this prefix. +// Prefix sets the optional parameter "prefix": Filter results to objects whose +// names begin with this prefix. func (c *ObjectsWatchAllCall) Prefix(prefix string) *ObjectsWatchAllCall { c.urlParams_.Set("prefix", prefix) return c } -// Projection sets the optional parameter "projection": Set of -// properties to return. Defaults to noAcl. +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to noAcl. // // Possible values: // @@ -7271,31 +5257,29 @@ func (c *ObjectsWatchAllCall) Projection(projection string) *ObjectsWatchAllCall return c } -// Versions sets the optional parameter "versions": If true, lists all -// versions of a file as distinct results. +// Versions sets the optional parameter "versions": If true, lists all versions +// of a file as distinct results. func (c *ObjectsWatchAllCall) Versions(versions bool) *ObjectsWatchAllCall { c.urlParams_.Set("versions", fmt.Sprint(versions)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ObjectsWatchAllCall) Fields(s ...googleapi.Field) *ObjectsWatchAllCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ObjectsWatchAllCall) Context(ctx context.Context) *ObjectsWatchAllCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ObjectsWatchAllCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -7304,18 +5288,12 @@ func (c *ObjectsWatchAllCall) Header() http.Header { } func (c *ObjectsWatchAllCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200728") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.channel) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/watch") @@ -7328,16 +5306,14 @@ func (c *ObjectsWatchAllCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "bucket": c.bucket, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storage.objects.watchAll" call. -// Exactly one of *Channel or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Channel.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Channel.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ObjectsWatchAllCall) Do(opts ...googleapi.CallOption) (*Channel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -7345,17 +5321,17 @@ func (c *ObjectsWatchAllCall) Do(opts ...googleapi.CallOption) (*Channel, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Channel{ ServerResponse: googleapi.ServerResponse{ @@ -7368,75 +5344,4 @@ func (c *ObjectsWatchAllCall) Do(opts ...googleapi.CallOption) (*Channel, error) return nil, err } return ret, nil - // { - // "description": "Watch for changes on all objects in a bucket.", - // "httpMethod": "POST", - // "id": "storage.objects.watchAll", - // "parameterOrder": [ - // "bucket" - // ], - // "parameters": { - // "bucket": { - // "description": "Name of the bucket in which to look for objects.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "delimiter": { - // "description": "Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "description": "Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A previously-returned page token representing part of the larger set of results to view.", - // "location": "query", - // "type": "string" - // }, - // "prefix": { - // "description": "Filter results to objects whose names begin with this prefix.", - // "location": "query", - // "type": "string" - // }, - // "projection": { - // "description": "Set of properties to return. Defaults to noAcl.", - // "enum": [ - // "full", - // "noAcl" - // ], - // "enumDescriptions": [ - // "Include all properties.", - // "Omit the acl property." - // ], - // "location": "query", - // "type": "string" - // }, - // "versions": { - // "description": "If true, lists all versions of a file as distinct results.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "b/{bucket}/o/watch", - // "request": { - // "$ref": "Channel", - // "parameterName": "resource" - // }, - // "response": { - // "$ref": "Channel" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/devstorage.full_control", - // "https://www.googleapis.com/auth/devstorage.read_only", - // "https://www.googleapis.com/auth/devstorage.read_write" - // ], - // "supportsSubscription": true - // } - } diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go index 075af9b6242..c138008392c 100644 --- a/storagetransfer/v1/storagetransfer-gen.go +++ b/storagetransfer/v1/storagetransfer-gen.go @@ -2038,7 +2038,7 @@ func (c *GoogleServiceAccountsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.googleServiceAccounts.get" call. @@ -2153,7 +2153,7 @@ func (c *ProjectsAgentPoolsCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.projects.agentPools.create" call. @@ -2248,7 +2248,7 @@ func (c *ProjectsAgentPoolsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.projects.agentPools.delete" call. @@ -2355,7 +2355,7 @@ func (c *ProjectsAgentPoolsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.projects.agentPools.get" call. @@ -2486,7 +2486,7 @@ func (c *ProjectsAgentPoolsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.projects.agentPools.list" call. @@ -2619,7 +2619,7 @@ func (c *ProjectsAgentPoolsPatchCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.projects.agentPools.patch" call. @@ -2713,7 +2713,7 @@ func (c *TransferJobsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferJobs.create" call. @@ -2811,7 +2811,7 @@ func (c *TransferJobsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "jobName": c.jobName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferJobs.delete" call. @@ -2920,7 +2920,7 @@ func (c *TransferJobsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "jobName": c.jobName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferJobs.get" call. @@ -3042,7 +3042,7 @@ func (c *TransferJobsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferJobs.list" call. @@ -3168,7 +3168,7 @@ func (c *TransferJobsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "jobName": c.jobName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferJobs.patch" call. @@ -3271,7 +3271,7 @@ func (c *TransferJobsRunCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "jobName": c.jobName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferJobs.run" call. @@ -3388,7 +3388,7 @@ func (c *TransferOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferOperations.cancel" call. @@ -3497,7 +3497,7 @@ func (c *TransferOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferOperations.get" call. @@ -3635,7 +3635,7 @@ func (c *TransferOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferOperations.list" call. @@ -3758,7 +3758,7 @@ func (c *TransferOperationsPauseCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferOperations.pause" call. @@ -3859,7 +3859,7 @@ func (c *TransferOperationsResumeCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "storagetransfer.transferOperations.resume" call. diff --git a/streetviewpublish/v1/streetviewpublish-gen.go b/streetviewpublish/v1/streetviewpublish-gen.go index 5d9b98d76af..49bfd6662d6 100644 --- a/streetviewpublish/v1/streetviewpublish-gen.go +++ b/streetviewpublish/v1/streetviewpublish-gen.go @@ -1349,7 +1349,7 @@ func (c *PhotoCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photo.create" call. @@ -1447,7 +1447,7 @@ func (c *PhotoDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "photoId": c.photoId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photo.delete" call. @@ -1585,7 +1585,7 @@ func (c *PhotoGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "photoId": c.photoId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photo.get" call. @@ -1689,7 +1689,7 @@ func (c *PhotoStartUploadCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photo.startUpload" call. @@ -1814,7 +1814,7 @@ func (c *PhotoUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photo.update" call. @@ -1931,7 +1931,7 @@ func (c *PhotoSequenceCreateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photoSequence.create" call. @@ -2031,7 +2031,7 @@ func (c *PhotoSequenceDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "sequenceId": c.sequenceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photoSequence.delete" call. @@ -2173,7 +2173,7 @@ func (c *PhotoSequenceGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "sequenceId": c.sequenceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photoSequence.get" call. @@ -2270,7 +2270,7 @@ func (c *PhotoSequenceStartUploadCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photoSequence.startUpload" call. @@ -2402,7 +2402,7 @@ func (c *PhotoSequencesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photoSequences.list" call. @@ -2523,7 +2523,7 @@ func (c *PhotosBatchDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photos.batchDelete" call. @@ -2664,7 +2664,7 @@ func (c *PhotosBatchGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photos.batchGet" call. @@ -2770,7 +2770,7 @@ func (c *PhotosBatchUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photos.batchUpdate" call. @@ -2925,7 +2925,7 @@ func (c *PhotosListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "streetviewpublish.photos.list" call. diff --git a/sts/v1/sts-gen.go b/sts/v1/sts-gen.go index 57c33fd47aa..ac713e60ffd 100644 --- a/sts/v1/sts-gen.go +++ b/sts/v1/sts-gen.go @@ -760,7 +760,7 @@ func (c *V1TokenCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sts.token" call. diff --git a/sts/v1beta/sts-gen.go b/sts/v1beta/sts-gen.go index 31ce5e6ef4b..37b238fbbf4 100644 --- a/sts/v1beta/sts-gen.go +++ b/sts/v1beta/sts-gen.go @@ -740,7 +740,7 @@ func (c *V1betaTokenCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "sts.token" call. diff --git a/surveys/v2/surveys-gen.go b/surveys/v2/surveys-gen.go index 3c72a1b927f..8f04f5f3d02 100644 --- a/surveys/v2/surveys-gen.go +++ b/surveys/v2/surveys-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -6,6 +6,17 @@ // Package surveys provides access to the Surveys API. // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -15,28 +26,31 @@ // ctx := context.Background() // surveysService, err := surveys.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // surveysService, err := surveys.NewService(ctx, option.WithScopes(surveys.UserinfoEmailScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // surveysService, err := surveys.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // surveysService, err := surveys.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package surveys // import "google.golang.org/api/surveys/v2" import ( @@ -52,8 +66,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -70,11 +86,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "surveys:v2" const apiName = "surveys" const apiVersion = "v2" const basePath = "https://www.googleapis.com/surveys/v2/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/surveys/v2/" // OAuth2 scopes used by this API. const ( @@ -90,13 +109,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/surveys", "https://www.googleapis.com/auth/surveys.readonly", "https://www.googleapis.com/auth/userinfo.email", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -163,405 +185,304 @@ type SurveysService struct { type FieldMask struct { Fields []*FieldMask `json:"fields,omitempty"` - - Id int64 `json:"id,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Fields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Id int64 `json:"id,omitempty"` + // ForceSendFields is a list of field names (e.g. "Fields") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FieldMask) MarshalJSON() ([]byte, error) { +func (s FieldMask) MarshalJSON() ([]byte, error) { type NoMethod FieldMask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type PageInfo struct { ResultPerPage int64 `json:"resultPerPage,omitempty"` - - StartIndex int64 `json:"startIndex,omitempty"` - - TotalResults int64 `json:"totalResults,omitempty"` - + StartIndex int64 `json:"startIndex,omitempty"` + TotalResults int64 `json:"totalResults,omitempty"` // ForceSendFields is a list of field names (e.g. "ResultPerPage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResultPerPage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResultPerPage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PageInfo) MarshalJSON() ([]byte, error) { +func (s PageInfo) MarshalJSON() ([]byte, error) { type NoMethod PageInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultsGetRequest struct { ResultMask *ResultsMask `json:"resultMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResultMask") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResultMask") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResultMask") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultsGetRequest) MarshalJSON() ([]byte, error) { +func (s ResultsGetRequest) MarshalJSON() ([]byte, error) { type NoMethod ResultsGetRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultsMask struct { - Fields []*FieldMask `json:"fields,omitempty"` - - Projection string `json:"projection,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Fields") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Fields []*FieldMask `json:"fields,omitempty"` + Projection string `json:"projection,omitempty"` + // ForceSendFields is a list of field names (e.g. "Fields") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultsMask) MarshalJSON() ([]byte, error) { +func (s ResultsMask) MarshalJSON() ([]byte, error) { type NoMethod ResultsMask - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Survey: Representation of an individual survey object. type Survey struct { - // Audience: Targeting-criteria message containing demographic - // information + // Audience: Targeting-criteria message containing demographic information Audience *SurveyAudience `json:"audience,omitempty"` - - // Cost: Cost to run the survey and collect the necessary number of - // responses. + // Cost: Cost to run the survey and collect the necessary number of responses. Cost *SurveyCost `json:"cost,omitempty"` - - // CustomerData: Additional information to store on behalf of the API - // consumer and associate with this question. This binary blob is - // treated as opaque. This field is limited to 64K bytes. + // CustomerData: Additional information to store on behalf of the API consumer + // and associate with this question. This binary blob is treated as opaque. + // This field is limited to 64K bytes. CustomerData string `json:"customerData,omitempty"` - // Description: Text description of the survey. Description string `json:"description,omitempty"` - - // Owners: List of email addresses for survey owners. Must contain at - // least the address of the user making the API call. + // Owners: List of email addresses for survey owners. Must contain at least the + // address of the user making the API call. Owners []string `json:"owners,omitempty"` - // Questions: List of questions defining the survey. Questions []*SurveyQuestion `json:"questions,omitempty"` - - // RejectionReason: Reason for the survey being rejected. Only present - // if the survey state is rejected. + // RejectionReason: Reason for the survey being rejected. Only present if the + // survey state is rejected. RejectionReason *SurveyRejection `json:"rejectionReason,omitempty"` - // State: State that the survey is in. State string `json:"state,omitempty"` - - // SurveyUrlId: Unique survey ID, that is viewable in the URL of the - // Survey Creator UI + // SurveyUrlId: Unique survey ID, that is viewable in the URL of the Survey + // Creator UI SurveyUrlId string `json:"surveyUrlId,omitempty"` - // Title: Optional name that will be given to the survey. Title string `json:"title,omitempty"` - // WantedResponseCount: Number of responses desired for the survey. WantedResponseCount int64 `json:"wantedResponseCount,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Audience") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Audience") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Audience") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Survey) MarshalJSON() ([]byte, error) { +func (s Survey) MarshalJSON() ([]byte, error) { type NoMethod Survey - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SurveyAudience: Specifications for the target audience of a survey -// run through the API. +// SurveyAudience: Specifications for the target audience of a survey run +// through the API. type SurveyAudience struct { - // Ages: Optional list of age buckets to target. Supported age buckets - // are: ['18-24', '25-34', '35-44', '45-54', '55-64', '65+'] + // Ages: Optional list of age buckets to target. Supported age buckets are: + // ['18-24', '25-34', '35-44', '45-54', '55-64', '65+'] Ages []string `json:"ages,omitempty"` - - // Country: Required country code that surveys should be targeted to. - // Accepts standard ISO 3166-1 2 character language codes. For instance, - // 'US' for the United States, and 'GB' for the United Kingdom. + // Country: Required country code that surveys should be targeted to. Accepts + // standard ISO 3166-1 2 character language codes. For instance, 'US' for the + // United States, and 'GB' for the United Kingdom. Country string `json:"country,omitempty"` - - // CountrySubdivision: Country subdivision (states/provinces/etc) that - // surveys should be targeted to. For all countries except GB, - // ISO-3166-2 subdivision code is required (eg. 'US-OH' for Ohio, United - // States). For GB, NUTS 1 statistical region codes for the United - // Kingdom is required (eg. 'UK-UKC' for North East England). + // CountrySubdivision: Country subdivision (states/provinces/etc) that surveys + // should be targeted to. For all countries except GB, ISO-3166-2 subdivision + // code is required (eg. 'US-OH' for Ohio, United States). For GB, NUTS 1 + // statistical region codes for the United Kingdom is required (eg. 'UK-UKC' + // for North East England). CountrySubdivision string `json:"countrySubdivision,omitempty"` - // Gender: Optional gender to target. Gender string `json:"gender,omitempty"` - - // Languages: Language code that surveys should be targeted to. For - // instance, 'en-US'. Surveys may target bilingual users by specifying a - // list of language codes (for example, 'de' and 'en-US'). In that case, - // all languages will be used for targeting users but the survey content - // (which is displayed) must match the first language listed. Accepts - // standard BCP47 language codes. See specification. + // Languages: Language code that surveys should be targeted to. For instance, + // 'en-US'. Surveys may target bilingual users by specifying a list of language + // codes (for example, 'de' and 'en-US'). In that case, all languages will be + // used for targeting users but the survey content (which is displayed) must + // match the first language listed. Accepts standard BCP47 language codes. See + // specification. Languages []string `json:"languages,omitempty"` - - // PopulationSource: Online population source where the respondents are - // sampled from. + // PopulationSource: Online population source where the respondents are sampled + // from. PopulationSource string `json:"populationSource,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Ages") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Ages") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Ages") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Ages") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyAudience) MarshalJSON() ([]byte, error) { +func (s SurveyAudience) MarshalJSON() ([]byte, error) { type NoMethod SurveyAudience - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SurveyCost: Message defining the cost to run a given survey through -// API. +// SurveyCost: Message defining the cost to run a given survey through API. type SurveyCost struct { - // CostPerResponseNanos: Cost per survey response in nano units of the - // given currency. To get the total cost for a survey, multiply this - // value by wanted_response_count. + // CostPerResponseNanos: Cost per survey response in nano units of the given + // currency. To get the total cost for a survey, multiply this value by + // wanted_response_count. CostPerResponseNanos int64 `json:"costPerResponseNanos,omitempty,string"` - // CurrencyCode: Currency code that the cost is given in. CurrencyCode string `json:"currencyCode,omitempty"` - // MaxCostPerResponseNanos: *Deprecated* Threshold to start a survey - // automatically if the quoted price is at most this value. When a - // survey has a Screener (threshold) question, it must go through an - // incidence pricing test to determine the final cost per response. - // Typically you will have to make a followup call to start the survey - // giving the final computed cost per response. If the survey has no - // threshold_answers, setting this property will return an error. By - // specifying this property, you indicate the max price per response you - // are willing to pay in advance of the incidence test. If the price - // turns out to be lower than the specified value, the survey will begin - // immediately and you will be charged at the rate determined by the - // incidence pricing test. If the price turns out to be greater than the - // specified value the survey will not be started and you will instead - // be notified what price was determined by the incidence test. At that - // point, you must raise the value of this property to be greater than - // or equal to that cost before attempting to start the survey again. - // This will immediately start the survey as long the incidence test was - // run within the last 21 days. This will no longer be available after - // June 2018. + // automatically if the quoted price is at most this value. When a survey has a + // Screener (threshold) question, it must go through an incidence pricing test + // to determine the final cost per response. Typically you will have to make a + // followup call to start the survey giving the final computed cost per + // response. If the survey has no threshold_answers, setting this property will + // return an error. By specifying this property, you indicate the max price per + // response you are willing to pay in advance of the incidence test. If the + // price turns out to be lower than the specified value, the survey will begin + // immediately and you will be charged at the rate determined by the incidence + // pricing test. If the price turns out to be greater than the specified value + // the survey will not be started and you will instead be notified what price + // was determined by the incidence test. At that point, you must raise the + // value of this property to be greater than or equal to that cost before + // attempting to start the survey again. This will immediately start the survey + // as long the incidence test was run within the last 21 days. This will no + // longer be available after June 2018. MaxCostPerResponseNanos int64 `json:"maxCostPerResponseNanos,omitempty,string"` - - // Nanos: Cost of survey in nano units of the given currency. DEPRECATED - // in favor of cost_per_response_nanos + // Nanos: Cost of survey in nano units of the given currency. DEPRECATED in + // favor of cost_per_response_nanos Nanos int64 `json:"nanos,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "CostPerResponseNanos") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "CostPerResponseNanos") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CostPerResponseNanos") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CostPerResponseNanos") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyCost) MarshalJSON() ([]byte, error) { +func (s SurveyCost) MarshalJSON() ([]byte, error) { type NoMethod SurveyCost - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SurveyQuestion: Message defining the question specifications. type SurveyQuestion struct { - // AnswerOrder: The randomization option for multiple choice and - // multi-select questions. If not specified, this option defaults to - // randomize. + // AnswerOrder: The randomization option for multiple choice and multi-select + // questions. If not specified, this option defaults to randomize. AnswerOrder string `json:"answerOrder,omitempty"` - // Answers: Required list of answer options for a question. Answers []string `json:"answers,omitempty"` - - // HasOther: Option to allow open-ended text box for Single Answer and - // Multiple Answer question types. This can be used with SINGLE_ANSWER, - // SINGLE_ANSWER_WITH_IMAGE, MULTIPLE_ANSWERS, and - // MULTIPLE_ANSWERS_WITH_IMAGE question types. + // HasOther: Option to allow open-ended text box for Single Answer and Multiple + // Answer question types. This can be used with SINGLE_ANSWER, + // SINGLE_ANSWER_WITH_IMAGE, MULTIPLE_ANSWERS, and MULTIPLE_ANSWERS_WITH_IMAGE + // question types. HasOther bool `json:"hasOther,omitempty"` - - // HighValueLabel: For rating questions, the text for the higher end of - // the scale, such as 'Best'. For numeric questions, a string - // representing a floating-point that is the maximum allowed number for - // a response. - HighValueLabel string `json:"highValueLabel,omitempty"` - - Images []*SurveyQuestionImage `json:"images,omitempty"` - - // LastAnswerPositionPinned: Currently only support pinning an answer - // option to the last position. + // HighValueLabel: For rating questions, the text for the higher end of the + // scale, such as 'Best'. For numeric questions, a string representing a + // floating-point that is the maximum allowed number for a response. + HighValueLabel string `json:"highValueLabel,omitempty"` + Images []*SurveyQuestionImage `json:"images,omitempty"` + // LastAnswerPositionPinned: Currently only support pinning an answer option to + // the last position. LastAnswerPositionPinned bool `json:"lastAnswerPositionPinned,omitempty"` - - // LowValueLabel: For rating questions, the text for the lower end of - // the scale, such as 'Worst'. For numeric questions, a string - // representing a floating-point that is the minimum allowed number for - // a response. + // LowValueLabel: For rating questions, the text for the lower end of the + // scale, such as 'Worst'. For numeric questions, a string representing a + // floating-point that is the minimum allowed number for a response. LowValueLabel string `json:"lowValueLabel,omitempty"` - - // MustPickSuggestion: Option to force the user to pick one of the open - // text suggestions. This requires that suggestions are provided for - // this question. + // MustPickSuggestion: Option to force the user to pick one of the open text + // suggestions. This requires that suggestions are provided for this question. MustPickSuggestion bool `json:"mustPickSuggestion,omitempty"` - // NumStars: Number of stars to use for ratings questions. NumStars string `json:"numStars,omitempty"` - // OpenTextPlaceholder: Placeholder text for an open text question. OpenTextPlaceholder string `json:"openTextPlaceholder,omitempty"` - - // OpenTextSuggestions: A list of suggested answers for open text - // question auto-complete. This is only valid if single_line_response is - // true. + // OpenTextSuggestions: A list of suggested answers for open text question + // auto-complete. This is only valid if single_line_response is true. OpenTextSuggestions []string `json:"openTextSuggestions,omitempty"` - // Question: Required question text shown to the respondent. Question string `json:"question,omitempty"` - - // SentimentText: Used by the Rating Scale with Text question type. This - // text goes along with the question field that is presented to the - // respondent, and is the actual text that the respondent is asked to - // rate. + // SentimentText: Used by the Rating Scale with Text question type. This text + // goes along with the question field that is presented to the respondent, and + // is the actual text that the respondent is asked to rate. SentimentText string `json:"sentimentText,omitempty"` - // SingleLineResponse: Option to allow multiple line open text responses - // instead of a single line response. Note that we don't show - // auto-complete suggestions with multiple line responses. + // instead of a single line response. Note that we don't show auto-complete + // suggestions with multiple line responses. SingleLineResponse bool `json:"singleLineResponse,omitempty"` - - // ThresholdAnswers: The threshold/screener answer options, which will - // screen a user into the rest of the survey. These will be a subset of - // the answer option strings. + // ThresholdAnswers: The threshold/screener answer options, which will screen a + // user into the rest of the survey. These will be a subset of the answer + // option strings. ThresholdAnswers []string `json:"thresholdAnswers,omitempty"` - // Type: Required field defining the question type. For details about - // configuring different type of questions, consult the question - // configuration guide. + // configuring different type of questions, consult the question configuration + // guide. Type string `json:"type,omitempty"` - // UnitOfMeasurementLabel: Optional unit of measurement for display (for // example: hours, people, miles). UnitOfMeasurementLabel string `json:"unitOfMeasurementLabel,omitempty"` - // VideoId: The YouTube video ID to be show in video questions. VideoId string `json:"videoId,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnswerOrder") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnswerOrder") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnswerOrder") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyQuestion) MarshalJSON() ([]byte, error) { +func (s SurveyQuestion) MarshalJSON() ([]byte, error) { type NoMethod SurveyQuestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SurveyQuestionImage: Container object for image data and alt_text. @@ -569,304 +490,232 @@ type SurveyQuestionImage struct { // AltText: The alt text property used in image tags is required for all // images. AltText string `json:"altText,omitempty"` - - // Data: Inline jpeg, gif, tiff, bmp, or png image raw bytes for an - // image question types. + // Data: Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image + // question types. Data string `json:"data,omitempty"` - // Url: The read-only URL for the hosted images. Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AltText") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AltText") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AltText") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyQuestionImage) MarshalJSON() ([]byte, error) { +func (s SurveyQuestionImage) MarshalJSON() ([]byte, error) { type NoMethod SurveyQuestionImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SurveyRejection: Message representing why the survey was rejected -// from review, if it was. +// SurveyRejection: Message representing why the survey was rejected from +// review, if it was. type SurveyRejection struct { - // Explanation: A human-readable explanation of what was wrong with the - // survey. + // Explanation: A human-readable explanation of what was wrong with the survey. Explanation string `json:"explanation,omitempty"` - - // Type: Which category of rejection this was. See the Google Surveys - // Help Center for additional details on each category. + // Type: Which category of rejection this was. See the Google Surveys Help + // Center for additional details on each category. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Explanation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Explanation") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Explanation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyRejection) MarshalJSON() ([]byte, error) { +func (s SurveyRejection) MarshalJSON() ([]byte, error) { type NoMethod SurveyRejection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SurveyResults: Reference to the current results for a given survey. type SurveyResults struct { // Status: Human readable string describing the status of the request. Status string `json:"status,omitempty"` - - // SurveyUrlId: External survey ID as viewable by survey owners in the - // editor view. + // SurveyUrlId: External survey ID as viewable by survey owners in the editor + // view. SurveyUrlId string `json:"surveyUrlId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Status") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Status") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Status") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveyResults) MarshalJSON() ([]byte, error) { +func (s SurveyResults) MarshalJSON() ([]byte, error) { type NoMethod SurveyResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveysDeleteResponse struct { - // RequestId: Unique request ID used for logging and debugging. Please - // include in any error reporting or troubleshooting requests. + // RequestId: Unique request ID used for logging and debugging. Please include + // in any error reporting or troubleshooting requests. RequestId string `json:"requestId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "RequestId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RequestId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveysDeleteResponse) MarshalJSON() ([]byte, error) { +func (s SurveysDeleteResponse) MarshalJSON() ([]byte, error) { type NoMethod SurveysDeleteResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveysListResponse struct { PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // RequestId: Unique request ID used for logging and debugging. Please - // include in any error reporting or troubleshooting requests. + // RequestId: Unique request ID used for logging and debugging. Please include + // in any error reporting or troubleshooting requests. RequestId string `json:"requestId,omitempty"` - // Resources: An individual survey resource. - Resources []*Survey `json:"resources,omitempty"` - + Resources []*Survey `json:"resources,omitempty"` TokenPagination *TokenPagination `json:"tokenPagination,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "PageInfo") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PageInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PageInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveysListResponse) MarshalJSON() ([]byte, error) { +func (s SurveysListResponse) MarshalJSON() ([]byte, error) { type NoMethod SurveysListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveysStartRequest struct { // MaxCostPerResponseNanos: *Deprecated* Threshold to start a survey - // automatically if the quoted prices is less than or equal to this - // value. See Survey.Cost for more details. This will no longer be - // available after June 2018. + // automatically if the quoted prices is less than or equal to this value. See + // Survey.Cost for more details. This will no longer be available after June + // 2018. MaxCostPerResponseNanos int64 `json:"maxCostPerResponseNanos,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. - // "MaxCostPerResponseNanos") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "MaxCostPerResponseNanos") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MaxCostPerResponseNanos") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "MaxCostPerResponseNanos") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveysStartRequest) MarshalJSON() ([]byte, error) { +func (s SurveysStartRequest) MarshalJSON() ([]byte, error) { type NoMethod SurveysStartRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveysStartResponse struct { - // RequestId: Unique request ID used for logging and debugging. Please - // include in any error reporting or troubleshooting requests. + // RequestId: Unique request ID used for logging and debugging. Please include + // in any error reporting or troubleshooting requests. RequestId string `json:"requestId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "RequestId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RequestId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveysStartResponse) MarshalJSON() ([]byte, error) { +func (s SurveysStartResponse) MarshalJSON() ([]byte, error) { type NoMethod SurveysStartResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SurveysStopResponse struct { - // RequestId: Unique request ID used for logging and debugging. Please - // include in any error reporting or troubleshooting requests. + // RequestId: Unique request ID used for logging and debugging. Please include + // in any error reporting or troubleshooting requests. RequestId string `json:"requestId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "RequestId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RequestId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SurveysStopResponse) MarshalJSON() ([]byte, error) { +func (s SurveysStopResponse) MarshalJSON() ([]byte, error) { type NoMethod SurveysStopResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type TokenPagination struct { - NextPageToken string `json:"nextPageToken,omitempty"` - + NextPageToken string `json:"nextPageToken,omitempty"` PreviousPageToken string `json:"previousPageToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TokenPagination) MarshalJSON() ([]byte, error) { +func (s TokenPagination) MarshalJSON() ([]byte, error) { type NoMethod TokenPagination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "surveys.results.get": - type ResultsGetCall struct { s *Service surveyUrlId string @@ -877,9 +726,11 @@ type ResultsGetCall struct { header_ http.Header } -// Get: Retrieves any survey results that have been produced so far. -// Results are formatted as an Excel file. You must add "?alt=media" to -// the URL as an argument to get results. +// Get: Retrieves any survey results that have been produced so far. Results +// are formatted as an Excel file. You must add "?alt=media" to the URL as an +// argument to get results. +// +// - surveyUrlId: External URL ID for the survey. func (r *ResultsService) Get(surveyUrlId string, resultsgetrequest *ResultsGetRequest) *ResultsGetCall { c := &ResultsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.surveyUrlId = surveyUrlId @@ -888,33 +739,29 @@ func (r *ResultsService) Get(surveyUrlId string, resultsgetrequest *ResultsGetRe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ResultsGetCall) Fields(s ...googleapi.Field) *ResultsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ResultsGetCall) IfNoneMatch(entityTag string) *ResultsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do and Download -// methods. Any pending HTTP request will be aborted if the provided -// context is canceled. +// Context sets the context to be used in this call's Do and Download methods. func (c *ResultsGetCall) Context(ctx context.Context) *ResultsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ResultsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -923,12 +770,7 @@ func (c *ResultsGetCall) Header() http.Header { } func (c *ResultsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -945,7 +787,7 @@ func (c *ResultsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "surveyUrlId": c.surveyUrlId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -957,20 +799,18 @@ func (c *ResultsGetCall) Download(opts ...googleapi.CallOption) (*http.Response, if err != nil { return nil, err } - if err := googleapi.CheckMediaResponse(res); err != nil { + if err := googleapi.CheckResponse(res); err != nil { res.Body.Close() - return nil, err + return nil, gensupport.WrapError(err) } return res, nil } // Do executes the "surveys.results.get" call. -// Exactly one of *SurveyResults or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *SurveyResults.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SurveyResults.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ResultsGetCall) Do(opts ...googleapi.CallOption) (*SurveyResults, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -978,17 +818,17 @@ func (c *ResultsGetCall) Do(opts ...googleapi.CallOption) (*SurveyResults, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SurveyResults{ ServerResponse: googleapi.ServerResponse{ @@ -1001,39 +841,7 @@ func (c *ResultsGetCall) Do(opts ...googleapi.CallOption) (*SurveyResults, error return nil, err } return ret, nil - // { - // "description": "Retrieves any survey results that have been produced so far. Results are formatted as an Excel file. You must add \"?alt=media\" to the URL as an argument to get results.", - // "httpMethod": "GET", - // "id": "surveys.results.get", - // "parameterOrder": [ - // "surveyUrlId" - // ], - // "parameters": { - // "surveyUrlId": { - // "description": "External URL ID for the survey.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{surveyUrlId}/results", - // "request": { - // "$ref": "ResultsGetRequest" - // }, - // "response": { - // "$ref": "SurveyResults" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/surveys", - // "https://www.googleapis.com/auth/surveys.readonly", - // "https://www.googleapis.com/auth/userinfo.email" - // ], - // "supportsMediaDownload": true - // } - -} - -// method id "surveys.surveys.delete": +} type SurveysDeleteCall struct { s *Service @@ -1044,6 +852,8 @@ type SurveysDeleteCall struct { } // Delete: Removes a survey from view in all user GET requests. +// +// - surveyUrlId: External URL ID for the survey. func (r *SurveysService) Delete(surveyUrlId string) *SurveysDeleteCall { c := &SurveysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.surveyUrlId = surveyUrlId @@ -1051,23 +861,21 @@ func (r *SurveysService) Delete(surveyUrlId string) *SurveysDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysDeleteCall) Fields(s ...googleapi.Field) *SurveysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysDeleteCall) Context(ctx context.Context) *SurveysDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1076,12 +884,7 @@ func (c *SurveysDeleteCall) Header() http.Header { } func (c *SurveysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1095,16 +898,15 @@ func (c *SurveysDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "surveyUrlId": c.surveyUrlId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "surveys.surveys.delete" call. -// Exactly one of *SurveysDeleteResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SurveysDeleteResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SurveysDeleteResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SurveysDeleteCall) Do(opts ...googleapi.CallOption) (*SurveysDeleteResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1112,17 +914,17 @@ func (c *SurveysDeleteCall) Do(opts ...googleapi.CallOption) (*SurveysDeleteResp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SurveysDeleteResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1135,34 +937,7 @@ func (c *SurveysDeleteCall) Do(opts ...googleapi.CallOption) (*SurveysDeleteResp return nil, err } return ret, nil - // { - // "description": "Removes a survey from view in all user GET requests.", - // "httpMethod": "DELETE", - // "id": "surveys.surveys.delete", - // "parameterOrder": [ - // "surveyUrlId" - // ], - // "parameters": { - // "surveyUrlId": { - // "description": "External URL ID for the survey.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{surveyUrlId}", - // "response": { - // "$ref": "SurveysDeleteResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/surveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "surveys.surveys.get": +} type SurveysGetCall struct { s *Service @@ -1174,6 +949,8 @@ type SurveysGetCall struct { } // Get: Retrieves information about the specified survey. +// +// - surveyUrlId: External URL ID for the survey. func (r *SurveysService) Get(surveyUrlId string) *SurveysGetCall { c := &SurveysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.surveyUrlId = surveyUrlId @@ -1181,33 +958,29 @@ func (r *SurveysService) Get(surveyUrlId string) *SurveysGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysGetCall) Fields(s ...googleapi.Field) *SurveysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SurveysGetCall) IfNoneMatch(entityTag string) *SurveysGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysGetCall) Context(ctx context.Context) *SurveysGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1216,12 +989,7 @@ func (c *SurveysGetCall) Header() http.Header { } func (c *SurveysGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1238,16 +1006,14 @@ func (c *SurveysGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "surveyUrlId": c.surveyUrlId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "surveys.surveys.get" call. -// Exactly one of *Survey or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Survey.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Survey.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SurveysGetCall) Do(opts ...googleapi.CallOption) (*Survey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1255,17 +1021,17 @@ func (c *SurveysGetCall) Do(opts ...googleapi.CallOption) (*Survey, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Survey{ ServerResponse: googleapi.ServerResponse{ @@ -1278,35 +1044,7 @@ func (c *SurveysGetCall) Do(opts ...googleapi.CallOption) (*Survey, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves information about the specified survey.", - // "httpMethod": "GET", - // "id": "surveys.surveys.get", - // "parameterOrder": [ - // "surveyUrlId" - // ], - // "parameters": { - // "surveyUrlId": { - // "description": "External URL ID for the survey.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{surveyUrlId}", - // "response": { - // "$ref": "Survey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/surveys", - // "https://www.googleapis.com/auth/surveys.readonly", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "surveys.surveys.insert": +} type SurveysInsertCall struct { s *Service @@ -1324,23 +1062,21 @@ func (r *SurveysService) Insert(survey *Survey) *SurveysInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysInsertCall) Fields(s ...googleapi.Field) *SurveysInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysInsertCall) Context(ctx context.Context) *SurveysInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1349,18 +1085,12 @@ func (c *SurveysInsertCall) Header() http.Header { } func (c *SurveysInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.survey) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "surveys") @@ -1370,16 +1100,14 @@ func (c *SurveysInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "surveys.surveys.insert" call. -// Exactly one of *Survey or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Survey.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Survey.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SurveysInsertCall) Do(opts ...googleapi.CallOption) (*Survey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1387,17 +1115,17 @@ func (c *SurveysInsertCall) Do(opts ...googleapi.CallOption) (*Survey, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Survey{ ServerResponse: googleapi.ServerResponse{ @@ -1410,26 +1138,7 @@ func (c *SurveysInsertCall) Do(opts ...googleapi.CallOption) (*Survey, error) { return nil, err } return ret, nil - // { - // "description": "Creates a survey.", - // "httpMethod": "POST", - // "id": "surveys.surveys.insert", - // "path": "surveys", - // "request": { - // "$ref": "Survey" - // }, - // "response": { - // "$ref": "Survey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/surveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "surveys.surveys.list": +} type SurveysListCall struct { s *Service @@ -1464,33 +1173,29 @@ func (c *SurveysListCall) Token(token string) *SurveysListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysListCall) Fields(s ...googleapi.Field) *SurveysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SurveysListCall) IfNoneMatch(entityTag string) *SurveysListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysListCall) Context(ctx context.Context) *SurveysListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1499,12 +1204,7 @@ func (c *SurveysListCall) Header() http.Header { } func (c *SurveysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1518,16 +1218,15 @@ func (c *SurveysListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "surveys.surveys.list" call. -// Exactly one of *SurveysListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SurveysListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SurveysListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SurveysListCall) Do(opts ...googleapi.CallOption) (*SurveysListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1535,17 +1234,17 @@ func (c *SurveysListCall) Do(opts ...googleapi.CallOption) (*SurveysListResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SurveysListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1558,40 +1257,7 @@ func (c *SurveysListCall) Do(opts ...googleapi.CallOption) (*SurveysListResponse return nil, err } return ret, nil - // { - // "description": "Lists the surveys owned by the authenticated user.", - // "httpMethod": "GET", - // "id": "surveys.surveys.list", - // "parameters": { - // "maxResults": { - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "startIndex": { - // "format": "uint32", - // "location": "query", - // "type": "integer" - // }, - // "token": { - // "location": "query", - // "type": "string" - // } - // }, - // "path": "surveys", - // "response": { - // "$ref": "SurveysListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/surveys", - // "https://www.googleapis.com/auth/surveys.readonly", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "surveys.surveys.start": +} type SurveysStartCall struct { s *Service @@ -1603,6 +1269,8 @@ type SurveysStartCall struct { } // Start: Begins running a survey. +// +// - resourceId: . func (r *SurveysService) Start(resourceId string, surveysstartrequest *SurveysStartRequest) *SurveysStartCall { c := &SurveysStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resourceId = resourceId @@ -1611,23 +1279,21 @@ func (r *SurveysService) Start(resourceId string, surveysstartrequest *SurveysSt } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysStartCall) Fields(s ...googleapi.Field) *SurveysStartCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysStartCall) Context(ctx context.Context) *SurveysStartCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysStartCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1636,18 +1302,12 @@ func (c *SurveysStartCall) Header() http.Header { } func (c *SurveysStartCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.surveysstartrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "surveys/{resourceId}/start") @@ -1660,16 +1320,15 @@ func (c *SurveysStartCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "surveys.surveys.start" call. -// Exactly one of *SurveysStartResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SurveysStartResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SurveysStartResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SurveysStartCall) Do(opts ...googleapi.CallOption) (*SurveysStartResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1677,17 +1336,17 @@ func (c *SurveysStartCall) Do(opts ...googleapi.CallOption) (*SurveysStartRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SurveysStartResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1700,36 +1359,7 @@ func (c *SurveysStartCall) Do(opts ...googleapi.CallOption) (*SurveysStartRespon return nil, err } return ret, nil - // { - // "description": "Begins running a survey.", - // "httpMethod": "POST", - // "id": "surveys.surveys.start", - // "parameterOrder": [ - // "resourceId" - // ], - // "parameters": { - // "resourceId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{resourceId}/start", - // "request": { - // "$ref": "SurveysStartRequest" - // }, - // "response": { - // "$ref": "SurveysStartResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/surveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "surveys.surveys.stop": +} type SurveysStopCall struct { s *Service @@ -1740,6 +1370,8 @@ type SurveysStopCall struct { } // Stop: Stops a running survey. +// +// - resourceId: . func (r *SurveysService) Stop(resourceId string) *SurveysStopCall { c := &SurveysStopCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resourceId = resourceId @@ -1747,23 +1379,21 @@ func (r *SurveysService) Stop(resourceId string) *SurveysStopCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysStopCall) Fields(s ...googleapi.Field) *SurveysStopCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysStopCall) Context(ctx context.Context) *SurveysStopCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysStopCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1772,12 +1402,7 @@ func (c *SurveysStopCall) Header() http.Header { } func (c *SurveysStopCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1791,16 +1416,15 @@ func (c *SurveysStopCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "surveys.surveys.stop" call. -// Exactly one of *SurveysStopResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SurveysStopResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SurveysStopResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SurveysStopCall) Do(opts ...googleapi.CallOption) (*SurveysStopResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1808,17 +1432,17 @@ func (c *SurveysStopCall) Do(opts ...googleapi.CallOption) (*SurveysStopResponse if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SurveysStopResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1831,33 +1455,7 @@ func (c *SurveysStopCall) Do(opts ...googleapi.CallOption) (*SurveysStopResponse return nil, err } return ret, nil - // { - // "description": "Stops a running survey.", - // "httpMethod": "POST", - // "id": "surveys.surveys.stop", - // "parameterOrder": [ - // "resourceId" - // ], - // "parameters": { - // "resourceId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{resourceId}/stop", - // "response": { - // "$ref": "SurveysStopResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/surveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - -} - -// method id "surveys.surveys.update": +} type SurveysUpdateCall struct { s *Service @@ -1868,8 +1466,10 @@ type SurveysUpdateCall struct { header_ http.Header } -// Update: Updates a survey. Currently the only property that can be -// updated is the owners property. +// Update: Updates a survey. Currently the only property that can be updated is +// the owners property. +// +// - surveyUrlId: External URL ID for the survey. func (r *SurveysService) Update(surveyUrlId string, survey *Survey) *SurveysUpdateCall { c := &SurveysUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.surveyUrlId = surveyUrlId @@ -1878,23 +1478,21 @@ func (r *SurveysService) Update(surveyUrlId string, survey *Survey) *SurveysUpda } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SurveysUpdateCall) Fields(s ...googleapi.Field) *SurveysUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SurveysUpdateCall) Context(ctx context.Context) *SurveysUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SurveysUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1903,18 +1501,12 @@ func (c *SurveysUpdateCall) Header() http.Header { } func (c *SurveysUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.survey) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "surveys/{surveyUrlId}") @@ -1927,16 +1519,14 @@ func (c *SurveysUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "surveyUrlId": c.surveyUrlId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "surveys.surveys.update" call. -// Exactly one of *Survey or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Survey.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Survey.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SurveysUpdateCall) Do(opts ...googleapi.CallOption) (*Survey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1944,17 +1534,17 @@ func (c *SurveysUpdateCall) Do(opts ...googleapi.CallOption) (*Survey, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Survey{ ServerResponse: googleapi.ServerResponse{ @@ -1967,32 +1557,4 @@ func (c *SurveysUpdateCall) Do(opts ...googleapi.CallOption) (*Survey, error) { return nil, err } return ret, nil - // { - // "description": "Updates a survey. Currently the only property that can be updated is the owners property.", - // "httpMethod": "PUT", - // "id": "surveys.surveys.update", - // "parameterOrder": [ - // "surveyUrlId" - // ], - // "parameters": { - // "surveyUrlId": { - // "description": "External URL ID for the survey.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "surveys/{surveyUrlId}", - // "request": { - // "$ref": "Survey" - // }, - // "response": { - // "$ref": "Survey" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/surveys", - // "https://www.googleapis.com/auth/userinfo.email" - // ] - // } - } diff --git a/tagmanager/v1/tagmanager-gen.go b/tagmanager/v1/tagmanager-gen.go index 1b667ee7f3b..bb8b5b28d22 100644 --- a/tagmanager/v1/tagmanager-gen.go +++ b/tagmanager/v1/tagmanager-gen.go @@ -1882,7 +1882,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.get" call. @@ -1982,7 +1982,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.list" call. @@ -2091,7 +2091,7 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.update" call. @@ -2192,7 +2192,7 @@ func (c *AccountsContainersCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.create" call. @@ -2291,7 +2291,7 @@ func (c *AccountsContainersDeleteCall) doRequest(alt string) (*http.Response, er "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.delete" call. @@ -2379,7 +2379,7 @@ func (c *AccountsContainersGetCall) doRequest(alt string) (*http.Response, error "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.get" call. @@ -2486,7 +2486,7 @@ func (c *AccountsContainersListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.list" call. @@ -2599,7 +2599,7 @@ func (c *AccountsContainersUpdateCall) doRequest(alt string) (*http.Response, er "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.update" call. @@ -2704,7 +2704,7 @@ func (c *AccountsContainersEnvironmentsCreateCall) doRequest(alt string) (*http. "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.create" call. @@ -2807,7 +2807,7 @@ func (c *AccountsContainersEnvironmentsDeleteCall) doRequest(alt string) (*http. "containerId": c.containerId, "environmentId": c.environmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.delete" call. @@ -2899,7 +2899,7 @@ func (c *AccountsContainersEnvironmentsGetCall) doRequest(alt string) (*http.Res "containerId": c.containerId, "environmentId": c.environmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.get" call. @@ -3010,7 +3010,7 @@ func (c *AccountsContainersEnvironmentsListCall) doRequest(alt string) (*http.Re "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.list" call. @@ -3127,7 +3127,7 @@ func (c *AccountsContainersEnvironmentsUpdateCall) doRequest(alt string) (*http. "containerId": c.containerId, "environmentId": c.environmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.update" call. @@ -3232,7 +3232,7 @@ func (c *AccountsContainersFoldersCreateCall) doRequest(alt string) (*http.Respo "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.folders.create" call. @@ -3335,7 +3335,7 @@ func (c *AccountsContainersFoldersDeleteCall) doRequest(alt string) (*http.Respo "containerId": c.containerId, "folderId": c.folderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.folders.delete" call. @@ -3427,7 +3427,7 @@ func (c *AccountsContainersFoldersGetCall) doRequest(alt string) (*http.Response "containerId": c.containerId, "folderId": c.folderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.folders.get" call. @@ -3538,7 +3538,7 @@ func (c *AccountsContainersFoldersListCall) doRequest(alt string) (*http.Respons "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.folders.list" call. @@ -3655,7 +3655,7 @@ func (c *AccountsContainersFoldersUpdateCall) doRequest(alt string) (*http.Respo "containerId": c.containerId, "folderId": c.folderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.folders.update" call. @@ -3770,7 +3770,7 @@ func (c *AccountsContainersFoldersEntitiesListCall) doRequest(alt string) (*http "containerId": c.containerId, "folderId": c.folderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.folders.entities.list" call. @@ -3900,7 +3900,7 @@ func (c *AccountsContainersMoveFoldersUpdateCall) doRequest(alt string) (*http.R "containerId": c.containerId, "folderId": c.folderId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.move_folders.update" call. @@ -3986,7 +3986,7 @@ func (c *AccountsContainersReauthorizeEnvironmentsUpdateCall) doRequest(alt stri "containerId": c.containerId, "environmentId": c.environmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.reauthorize_environments.update" call. @@ -4091,7 +4091,7 @@ func (c *AccountsContainersTagsCreateCall) doRequest(alt string) (*http.Response "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.tags.create" call. @@ -4194,7 +4194,7 @@ func (c *AccountsContainersTagsDeleteCall) doRequest(alt string) (*http.Response "containerId": c.containerId, "tagId": c.tagId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.tags.delete" call. @@ -4286,7 +4286,7 @@ func (c *AccountsContainersTagsGetCall) doRequest(alt string) (*http.Response, e "containerId": c.containerId, "tagId": c.tagId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.tags.get" call. @@ -4397,7 +4397,7 @@ func (c *AccountsContainersTagsListCall) doRequest(alt string) (*http.Response, "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.tags.list" call. @@ -4514,7 +4514,7 @@ func (c *AccountsContainersTagsUpdateCall) doRequest(alt string) (*http.Response "containerId": c.containerId, "tagId": c.tagId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.tags.update" call. @@ -4619,7 +4619,7 @@ func (c *AccountsContainersTriggersCreateCall) doRequest(alt string) (*http.Resp "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.triggers.create" call. @@ -4722,7 +4722,7 @@ func (c *AccountsContainersTriggersDeleteCall) doRequest(alt string) (*http.Resp "containerId": c.containerId, "triggerId": c.triggerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.triggers.delete" call. @@ -4814,7 +4814,7 @@ func (c *AccountsContainersTriggersGetCall) doRequest(alt string) (*http.Respons "containerId": c.containerId, "triggerId": c.triggerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.triggers.get" call. @@ -4925,7 +4925,7 @@ func (c *AccountsContainersTriggersListCall) doRequest(alt string) (*http.Respon "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.triggers.list" call. @@ -5042,7 +5042,7 @@ func (c *AccountsContainersTriggersUpdateCall) doRequest(alt string) (*http.Resp "containerId": c.containerId, "triggerId": c.triggerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.triggers.update" call. @@ -5147,7 +5147,7 @@ func (c *AccountsContainersVariablesCreateCall) doRequest(alt string) (*http.Res "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.variables.create" call. @@ -5250,7 +5250,7 @@ func (c *AccountsContainersVariablesDeleteCall) doRequest(alt string) (*http.Res "containerId": c.containerId, "variableId": c.variableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.variables.delete" call. @@ -5342,7 +5342,7 @@ func (c *AccountsContainersVariablesGetCall) doRequest(alt string) (*http.Respon "containerId": c.containerId, "variableId": c.variableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.variables.get" call. @@ -5453,7 +5453,7 @@ func (c *AccountsContainersVariablesListCall) doRequest(alt string) (*http.Respo "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.variables.list" call. @@ -5570,7 +5570,7 @@ func (c *AccountsContainersVariablesUpdateCall) doRequest(alt string) (*http.Res "containerId": c.containerId, "variableId": c.variableId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.variables.update" call. @@ -5675,7 +5675,7 @@ func (c *AccountsContainersVersionsCreateCall) doRequest(alt string) (*http.Resp "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.create" call. @@ -5779,7 +5779,7 @@ func (c *AccountsContainersVersionsDeleteCall) doRequest(alt string) (*http.Resp "containerId": c.containerId, "containerVersionId": c.containerVersionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.delete" call. @@ -5872,7 +5872,7 @@ func (c *AccountsContainersVersionsGetCall) doRequest(alt string) (*http.Respons "containerId": c.containerId, "containerVersionId": c.containerVersionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.get" call. @@ -5998,7 +5998,7 @@ func (c *AccountsContainersVersionsListCall) doRequest(alt string) (*http.Respon "accountId": c.accountId, "containerId": c.containerId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.list" call. @@ -6109,7 +6109,7 @@ func (c *AccountsContainersVersionsPublishCall) doRequest(alt string) (*http.Res "containerId": c.containerId, "containerVersionId": c.containerVersionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.publish" call. @@ -6216,7 +6216,7 @@ func (c *AccountsContainersVersionsRestoreCall) doRequest(alt string) (*http.Res "containerId": c.containerId, "containerVersionId": c.containerVersionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.restore" call. @@ -6320,7 +6320,7 @@ func (c *AccountsContainersVersionsUndeleteCall) doRequest(alt string) (*http.Re "containerId": c.containerId, "containerVersionId": c.containerVersionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.undelete" call. @@ -6437,7 +6437,7 @@ func (c *AccountsContainersVersionsUpdateCall) doRequest(alt string) (*http.Resp "containerId": c.containerId, "containerVersionId": c.containerVersionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.update" call. @@ -6539,7 +6539,7 @@ func (c *AccountsPermissionsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.permissions.create" call. @@ -6639,7 +6639,7 @@ func (c *AccountsPermissionsDeleteCall) doRequest(alt string) (*http.Response, e "accountId": c.accountId, "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.permissions.delete" call. @@ -6727,7 +6727,7 @@ func (c *AccountsPermissionsGetCall) doRequest(alt string) (*http.Response, erro "accountId": c.accountId, "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.permissions.get" call. @@ -6835,7 +6835,7 @@ func (c *AccountsPermissionsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.permissions.list" call. @@ -6941,7 +6941,7 @@ func (c *AccountsPermissionsUpdateCall) doRequest(alt string) (*http.Response, e "accountId": c.accountId, "permissionId": c.permissionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.permissions.update" call. diff --git a/tagmanager/v2/tagmanager-gen.go b/tagmanager/v2/tagmanager-gen.go index baa11c839e5..1430a2c2190 100644 --- a/tagmanager/v2/tagmanager-gen.go +++ b/tagmanager/v2/tagmanager-gen.go @@ -3332,7 +3332,7 @@ func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.get" call. @@ -3446,7 +3446,7 @@ func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.list" call. @@ -3576,7 +3576,7 @@ func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.update" call. @@ -3701,7 +3701,7 @@ func (c *AccountsContainersCombineCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.combine" call. @@ -3802,7 +3802,7 @@ func (c *AccountsContainersCreateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.create" call. @@ -3898,7 +3898,7 @@ func (c *AccountsContainersDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.delete" call. @@ -3983,7 +3983,7 @@ func (c *AccountsContainersGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.get" call. @@ -4097,7 +4097,7 @@ func (c *AccountsContainersListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.list" call. @@ -4236,7 +4236,7 @@ func (c *AccountsContainersLookupCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.lookup" call. @@ -4378,7 +4378,7 @@ func (c *AccountsContainersMoveTagIdCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.move_tag_id" call. @@ -4486,7 +4486,7 @@ func (c *AccountsContainersSnippetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.snippet" call. @@ -4596,7 +4596,7 @@ func (c *AccountsContainersUpdateCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.update" call. @@ -4705,7 +4705,7 @@ func (c *AccountsContainersDestinationsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.destinations.get" call. @@ -4818,7 +4818,7 @@ func (c *AccountsContainersDestinationsLinkCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.destinations.link" call. @@ -4926,7 +4926,7 @@ func (c *AccountsContainersDestinationsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.destinations.list" call. @@ -5029,7 +5029,7 @@ func (c *AccountsContainersEnvironmentsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.create" call. @@ -5126,7 +5126,7 @@ func (c *AccountsContainersEnvironmentsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.delete" call. @@ -5212,7 +5212,7 @@ func (c *AccountsContainersEnvironmentsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.get" call. @@ -5327,7 +5327,7 @@ func (c *AccountsContainersEnvironmentsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.list" call. @@ -5452,7 +5452,7 @@ func (c *AccountsContainersEnvironmentsReauthorizeCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.reauthorize" call. @@ -5562,7 +5562,7 @@ func (c *AccountsContainersEnvironmentsUpdateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.environments.update" call. @@ -5670,7 +5670,7 @@ func (c *AccountsContainersVersionHeadersLatestCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.version_headers.latest" call. @@ -5793,7 +5793,7 @@ func (c *AccountsContainersVersionHeadersListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.version_headers.list" call. @@ -5911,7 +5911,7 @@ func (c *AccountsContainersVersionsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.delete" call. @@ -6004,7 +6004,7 @@ func (c *AccountsContainersVersionsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.get" call. @@ -6113,7 +6113,7 @@ func (c *AccountsContainersVersionsLiveCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.live" call. @@ -6217,7 +6217,7 @@ func (c *AccountsContainersVersionsPublishCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.publish" call. @@ -6315,7 +6315,7 @@ func (c *AccountsContainersVersionsSetLatestCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.set_latest" call. @@ -6412,7 +6412,7 @@ func (c *AccountsContainersVersionsUndeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.undelete" call. @@ -6522,7 +6522,7 @@ func (c *AccountsContainersVersionsUpdateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.versions.update" call. @@ -6625,7 +6625,7 @@ func (c *AccountsContainersWorkspacesCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.create" call. @@ -6729,7 +6729,7 @@ func (c *AccountsContainersWorkspacesCreateVersionCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.create_version" call. @@ -6826,7 +6826,7 @@ func (c *AccountsContainersWorkspacesDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.delete" call. @@ -6911,7 +6911,7 @@ func (c *AccountsContainersWorkspacesGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.get" call. @@ -7019,7 +7019,7 @@ func (c *AccountsContainersWorkspacesGetStatusCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.getStatus" call. @@ -7135,7 +7135,7 @@ func (c *AccountsContainersWorkspacesListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.list" call. @@ -7254,7 +7254,7 @@ func (c *AccountsContainersWorkspacesQuickPreviewCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.quick_preview" call. @@ -7366,7 +7366,7 @@ func (c *AccountsContainersWorkspacesResolveConflictCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.resolve_conflict" call. @@ -7441,7 +7441,7 @@ func (c *AccountsContainersWorkspacesSyncCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.sync" call. @@ -7551,7 +7551,7 @@ func (c *AccountsContainersWorkspacesUpdateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.update" call. @@ -7771,7 +7771,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.built_in_variables.create" call. @@ -7993,7 +7993,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.built_in_variables.delete" call. @@ -8085,7 +8085,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.built_in_variables.list" call. @@ -8328,7 +8328,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.built_in_variables.revert" call. @@ -8431,7 +8431,7 @@ func (c *AccountsContainersWorkspacesClientsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.clients.create" call. @@ -8528,7 +8528,7 @@ func (c *AccountsContainersWorkspacesClientsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.clients.delete" call. @@ -8614,7 +8614,7 @@ func (c *AccountsContainersWorkspacesClientsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.clients.get" call. @@ -8729,7 +8729,7 @@ func (c *AccountsContainersWorkspacesClientsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.clients.list" call. @@ -8855,7 +8855,7 @@ func (c *AccountsContainersWorkspacesClientsRevertCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.clients.revert" call. @@ -8966,7 +8966,7 @@ func (c *AccountsContainersWorkspacesClientsUpdateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.clients.update" call. @@ -9068,7 +9068,7 @@ func (c *AccountsContainersWorkspacesFoldersCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.folders.create" call. @@ -9165,7 +9165,7 @@ func (c *AccountsContainersWorkspacesFoldersDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.folders.delete" call. @@ -9246,7 +9246,7 @@ func (c *AccountsContainersWorkspacesFoldersEntitiesCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.folders.entities" call. @@ -9376,7 +9376,7 @@ func (c *AccountsContainersWorkspacesFoldersGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.folders.get" call. @@ -9491,7 +9491,7 @@ func (c *AccountsContainersWorkspacesFoldersListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.folders.list" call. @@ -9639,7 +9639,7 @@ func (c *AccountsContainersWorkspacesFoldersMoveEntitiesToFolderCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.folders.move_entities_to_folder" call. @@ -9720,7 +9720,7 @@ func (c *AccountsContainersWorkspacesFoldersRevertCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.folders.revert" call. @@ -9831,7 +9831,7 @@ func (c *AccountsContainersWorkspacesFoldersUpdateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.folders.update" call. @@ -9933,7 +9933,7 @@ func (c *AccountsContainersWorkspacesGtagConfigCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.gtag_config.create" call. @@ -10030,7 +10030,7 @@ func (c *AccountsContainersWorkspacesGtagConfigDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.gtag_config.delete" call. @@ -10116,7 +10116,7 @@ func (c *AccountsContainersWorkspacesGtagConfigGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.gtag_config.get" call. @@ -10231,7 +10231,7 @@ func (c *AccountsContainersWorkspacesGtagConfigListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.gtag_config.list" call. @@ -10363,7 +10363,7 @@ func (c *AccountsContainersWorkspacesGtagConfigUpdateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.gtag_config.update" call. @@ -10465,7 +10465,7 @@ func (c *AccountsContainersWorkspacesTagsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.tags.create" call. @@ -10562,7 +10562,7 @@ func (c *AccountsContainersWorkspacesTagsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.tags.delete" call. @@ -10648,7 +10648,7 @@ func (c *AccountsContainersWorkspacesTagsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.tags.get" call. @@ -10763,7 +10763,7 @@ func (c *AccountsContainersWorkspacesTagsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.tags.list" call. @@ -10889,7 +10889,7 @@ func (c *AccountsContainersWorkspacesTagsRevertCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.tags.revert" call. @@ -11000,7 +11000,7 @@ func (c *AccountsContainersWorkspacesTagsUpdateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.tags.update" call. @@ -11102,7 +11102,7 @@ func (c *AccountsContainersWorkspacesTemplatesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.templates.create" call. @@ -11199,7 +11199,7 @@ func (c *AccountsContainersWorkspacesTemplatesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.templates.delete" call. @@ -11285,7 +11285,7 @@ func (c *AccountsContainersWorkspacesTemplatesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.templates.get" call. @@ -11400,7 +11400,7 @@ func (c *AccountsContainersWorkspacesTemplatesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.templates.list" call. @@ -11526,7 +11526,7 @@ func (c *AccountsContainersWorkspacesTemplatesRevertCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.templates.revert" call. @@ -11637,7 +11637,7 @@ func (c *AccountsContainersWorkspacesTemplatesUpdateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.templates.update" call. @@ -11739,7 +11739,7 @@ func (c *AccountsContainersWorkspacesTransformationsCreateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.transformations.create" call. @@ -11836,7 +11836,7 @@ func (c *AccountsContainersWorkspacesTransformationsDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.transformations.delete" call. @@ -11922,7 +11922,7 @@ func (c *AccountsContainersWorkspacesTransformationsGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.transformations.get" call. @@ -12037,7 +12037,7 @@ func (c *AccountsContainersWorkspacesTransformationsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.transformations.list" call. @@ -12163,7 +12163,7 @@ func (c *AccountsContainersWorkspacesTransformationsRevertCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.transformations.revert" call. @@ -12274,7 +12274,7 @@ func (c *AccountsContainersWorkspacesTransformationsUpdateCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.transformations.update" call. @@ -12376,7 +12376,7 @@ func (c *AccountsContainersWorkspacesTriggersCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.triggers.create" call. @@ -12473,7 +12473,7 @@ func (c *AccountsContainersWorkspacesTriggersDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.triggers.delete" call. @@ -12559,7 +12559,7 @@ func (c *AccountsContainersWorkspacesTriggersGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.triggers.get" call. @@ -12674,7 +12674,7 @@ func (c *AccountsContainersWorkspacesTriggersListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.triggers.list" call. @@ -12800,7 +12800,7 @@ func (c *AccountsContainersWorkspacesTriggersRevertCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.triggers.revert" call. @@ -12911,7 +12911,7 @@ func (c *AccountsContainersWorkspacesTriggersUpdateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.triggers.update" call. @@ -13013,7 +13013,7 @@ func (c *AccountsContainersWorkspacesVariablesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.variables.create" call. @@ -13110,7 +13110,7 @@ func (c *AccountsContainersWorkspacesVariablesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.variables.delete" call. @@ -13196,7 +13196,7 @@ func (c *AccountsContainersWorkspacesVariablesGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.variables.get" call. @@ -13311,7 +13311,7 @@ func (c *AccountsContainersWorkspacesVariablesListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.variables.list" call. @@ -13437,7 +13437,7 @@ func (c *AccountsContainersWorkspacesVariablesRevertCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.variables.revert" call. @@ -13548,7 +13548,7 @@ func (c *AccountsContainersWorkspacesVariablesUpdateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.variables.update" call. @@ -13650,7 +13650,7 @@ func (c *AccountsContainersWorkspacesZonesCreateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.zones.create" call. @@ -13747,7 +13747,7 @@ func (c *AccountsContainersWorkspacesZonesDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.zones.delete" call. @@ -13833,7 +13833,7 @@ func (c *AccountsContainersWorkspacesZonesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.zones.get" call. @@ -13948,7 +13948,7 @@ func (c *AccountsContainersWorkspacesZonesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.zones.list" call. @@ -14074,7 +14074,7 @@ func (c *AccountsContainersWorkspacesZonesRevertCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.zones.revert" call. @@ -14185,7 +14185,7 @@ func (c *AccountsContainersWorkspacesZonesUpdateCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.containers.workspaces.zones.update" call. @@ -14286,7 +14286,7 @@ func (c *AccountsUserPermissionsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.user_permissions.create" call. @@ -14383,7 +14383,7 @@ func (c *AccountsUserPermissionsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.user_permissions.delete" call. @@ -14468,7 +14468,7 @@ func (c *AccountsUserPermissionsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.user_permissions.get" call. @@ -14583,7 +14583,7 @@ func (c *AccountsUserPermissionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.user_permissions.list" call. @@ -14707,7 +14707,7 @@ func (c *AccountsUserPermissionsUpdateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "path": c.path, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tagmanager.accounts.user_permissions.update" call. diff --git a/tasks/v1/tasks-gen.go b/tasks/v1/tasks-gen.go index 77014c64cd6..ce9c3bcadbd 100644 --- a/tasks/v1/tasks-gen.go +++ b/tasks/v1/tasks-gen.go @@ -535,7 +535,7 @@ func (c *TasklistsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tasklist": c.tasklistid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasklists.delete" call. @@ -619,7 +619,7 @@ func (c *TasklistsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tasklist": c.tasklistid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasklists.get" call. @@ -714,7 +714,7 @@ func (c *TasklistsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasklists.insert" call. @@ -829,7 +829,7 @@ func (c *TasklistsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasklists.list" call. @@ -952,7 +952,7 @@ func (c *TasklistsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tasklist": c.tasklistid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasklists.patch" call. @@ -1053,7 +1053,7 @@ func (c *TasklistsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tasklist": c.tasklistid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasklists.update" call. @@ -1150,7 +1150,7 @@ func (c *TasksClearCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tasklist": c.tasklistid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasks.clear" call. @@ -1229,7 +1229,7 @@ func (c *TasksDeleteCall) doRequest(alt string) (*http.Response, error) { "tasklist": c.tasklistid, "task": c.taskid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasks.delete" call. @@ -1317,7 +1317,7 @@ func (c *TasksGetCall) doRequest(alt string) (*http.Response, error) { "tasklist": c.tasklistid, "task": c.taskid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasks.get" call. @@ -1438,7 +1438,7 @@ func (c *TasksInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tasklist": c.tasklistid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasks.insert" call. @@ -1632,7 +1632,7 @@ func (c *TasksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "tasklist": c.tasklistid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasks.list" call. @@ -1782,7 +1782,7 @@ func (c *TasksMoveCall) doRequest(alt string) (*http.Response, error) { "tasklist": c.tasklistid, "task": c.taskid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasks.move" call. @@ -1887,7 +1887,7 @@ func (c *TasksPatchCall) doRequest(alt string) (*http.Response, error) { "tasklist": c.tasklistid, "task": c.taskid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasks.patch" call. @@ -1992,7 +1992,7 @@ func (c *TasksUpdateCall) doRequest(alt string) (*http.Response, error) { "tasklist": c.tasklistid, "task": c.taskid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tasks.tasks.update" call. diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index 2a9a9759863..29607637cbd 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -3181,7 +3181,7 @@ func (c *ApplicationDetailServiceGetApkDetailsCall) doRequest(alt string) (*http return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "testing.applicationDetailService.getApkDetails" call. @@ -3288,7 +3288,7 @@ func (c *ProjectsDeviceSessionsCancelCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "testing.projects.deviceSessions.cancel" call. @@ -3390,7 +3390,7 @@ func (c *ProjectsDeviceSessionsCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "testing.projects.deviceSessions.create" call. @@ -3501,7 +3501,7 @@ func (c *ProjectsDeviceSessionsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "testing.projects.deviceSessions.get" call. @@ -3630,7 +3630,7 @@ func (c *ProjectsDeviceSessionsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "testing.projects.deviceSessions.list" call. @@ -3764,7 +3764,7 @@ func (c *ProjectsDeviceSessionsPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "testing.projects.deviceSessions.patch" call. @@ -3868,7 +3868,7 @@ func (c *ProjectsTestMatricesCancelCall) doRequest(alt string) (*http.Response, "projectId": c.projectId, "testMatrixId": c.testMatrixId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "testing.projects.testMatrices.cancel" call. @@ -3987,7 +3987,7 @@ func (c *ProjectsTestMatricesCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "testing.projects.testMatrices.create" call. @@ -4105,7 +4105,7 @@ func (c *ProjectsTestMatricesGetCall) doRequest(alt string) (*http.Response, err "projectId": c.projectId, "testMatrixId": c.testMatrixId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "testing.projects.testMatrices.get" call. @@ -4222,7 +4222,7 @@ func (c *TestEnvironmentCatalogGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "environmentType": c.environmentType, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "testing.testEnvironmentCatalog.get" call. diff --git a/texttospeech/v1/texttospeech-gen.go b/texttospeech/v1/texttospeech-gen.go index ce92a981701..531a0077074 100644 --- a/texttospeech/v1/texttospeech-gen.go +++ b/texttospeech/v1/texttospeech-gen.go @@ -864,7 +864,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.operations.cancel" call. @@ -962,7 +962,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.operations.delete" call. @@ -1064,7 +1064,7 @@ func (c *ProjectsLocationsSynthesizeLongAudioCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.projects.locations.synthesizeLongAudio" call. @@ -1173,7 +1173,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.projects.locations.operations.get" call. @@ -1301,7 +1301,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.projects.locations.operations.list" call. @@ -1418,7 +1418,7 @@ func (c *TextSynthesizeCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.text.synthesize" call. @@ -1531,7 +1531,7 @@ func (c *VoicesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.voices.list" call. diff --git a/texttospeech/v1beta1/texttospeech-gen.go b/texttospeech/v1beta1/texttospeech-gen.go index bb7b44eaa8f..13cae44f0d7 100644 --- a/texttospeech/v1beta1/texttospeech-gen.go +++ b/texttospeech/v1beta1/texttospeech-gen.go @@ -887,7 +887,7 @@ func (c *ProjectsLocationsSynthesizeLongAudioCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.projects.locations.synthesizeLongAudio" call. @@ -996,7 +996,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.projects.locations.operations.get" call. @@ -1124,7 +1124,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.projects.locations.operations.list" call. @@ -1241,7 +1241,7 @@ func (c *TextSynthesizeCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.text.synthesize" call. @@ -1354,7 +1354,7 @@ func (c *VoicesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "texttospeech.voices.list" call. diff --git a/toolresults/v1/toolresults-gen.go b/toolresults/v1/toolresults-gen.go index f455fa87d13..50d4515b7bc 100644 --- a/toolresults/v1/toolresults-gen.go +++ b/toolresults/v1/toolresults-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://firebase.google.com/docs/test-lab/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // toolresultsService, err := toolresults.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // toolresultsService, err := toolresults.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // toolresultsService, err := toolresults.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package toolresults // import "google.golang.org/api/toolresults/v1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,15 +84,21 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "toolresults:v1" const apiName = "toolresults" const apiVersion = "v1" const basePath = "https://www.googleapis.com/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/" +const mtlsBasePath = "https://www.mtls.googleapis.com/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -124,158 +144,123 @@ type ANR struct { // StackTrace: The stack trace of the ANR crash. // Optional. StackTrace *StackTrace `json:"stackTrace,omitempty"` - // ForceSendFields is a list of field names (e.g. "StackTrace") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StackTrace") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StackTrace") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ANR) MarshalJSON() ([]byte, error) { +func (s ANR) MarshalJSON() ([]byte, error) { type NoMethod ANR - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AvailableDeepLinks: A suggestion to use deep links for a Robo run. type AvailableDeepLinks struct { } -// BlankScreen: A warning that Robo encountered a screen that was mostly -// blank; this may +// BlankScreen: A warning that Robo encountered a screen that was mostly blank; +// this may // indicate a problem with the app. type BlankScreen struct { // ScreenId: The screen id of the element ScreenId string `json:"screenId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ScreenId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ScreenId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ScreenId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BlankScreen) MarshalJSON() ([]byte, error) { +func (s BlankScreen) MarshalJSON() ([]byte, error) { type NoMethod BlankScreen - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CrashDialogError: Crash dialog was detected during the test execution type CrashDialogError struct { // CrashPackage: The name of the package that caused the dialog. CrashPackage string `json:"crashPackage,omitempty"` - // ForceSendFields is a list of field names (e.g. "CrashPackage") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CrashPackage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CrashPackage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *CrashDialogError) MarshalJSON() ([]byte, error) { +func (s CrashDialogError) MarshalJSON() ([]byte, error) { type NoMethod CrashDialogError - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EncounteredLoginScreen: Additional details about encountered login -// screens. +// EncounteredLoginScreen: Additional details about encountered login screens. type EncounteredLoginScreen struct { // DistinctScreens: Number of encountered distinct login screens. DistinctScreens int64 `json:"distinctScreens,omitempty"` - // ScreenIds: Subset of login screens. ScreenIds []string `json:"screenIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "DistinctScreens") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DistinctScreens") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DistinctScreens") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncounteredLoginScreen) MarshalJSON() ([]byte, error) { +func (s EncounteredLoginScreen) MarshalJSON() ([]byte, error) { type NoMethod EncounteredLoginScreen - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EncounteredNonAndroidUiWidgetScreen: Additional details about -// encountered screens with elements that are not +// EncounteredNonAndroidUiWidgetScreen: Additional details about encountered +// screens with elements that are not // Android UI widgets. type EncounteredNonAndroidUiWidgetScreen struct { - // DistinctScreens: Number of encountered distinct screens with non - // Android UI widgets. + // DistinctScreens: Number of encountered distinct screens with non Android UI + // widgets. DistinctScreens int64 `json:"distinctScreens,omitempty"` - // ScreenIds: Subset of screens which contain non Android UI widgets. ScreenIds []string `json:"screenIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "DistinctScreens") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DistinctScreens") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DistinctScreens") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EncounteredNonAndroidUiWidgetScreen) MarshalJSON() ([]byte, error) { +func (s EncounteredNonAndroidUiWidgetScreen) MarshalJSON() ([]byte, error) { type NoMethod EncounteredNonAndroidUiWidgetScreen - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FailedToInstall: Failed to install the APK. @@ -287,65 +272,50 @@ type FatalException struct { // StackTrace: The stack trace of the fatal exception. // Optional. StackTrace *StackTrace `json:"stackTrace,omitempty"` - // ForceSendFields is a list of field names (e.g. "StackTrace") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StackTrace") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StackTrace") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FatalException) MarshalJSON() ([]byte, error) { +func (s FatalException) MarshalJSON() ([]byte, error) { type NoMethod FatalException - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InAppPurchasesFound: Additional details of in-app purchases -// encountered during the crawl. +// InAppPurchasesFound: Additional details of in-app purchases encountered +// during the crawl. type InAppPurchasesFound struct { - // InAppPurchasesFlowsExplored: The total number of in-app purchases - // flows explored: how many times the + // InAppPurchasesFlowsExplored: The total number of in-app purchases flows + // explored: how many times the // robo tries to buy a SKU. InAppPurchasesFlowsExplored int64 `json:"inAppPurchasesFlowsExplored,omitempty"` - - // InAppPurchasesFlowsStarted: The total number of in-app purchases - // flows started. + // InAppPurchasesFlowsStarted: The total number of in-app purchases flows + // started. InAppPurchasesFlowsStarted int64 `json:"inAppPurchasesFlowsStarted,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "InAppPurchasesFlowsExplored") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "InAppPurchasesFlowsExplored") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "InAppPurchasesFlowsExplored") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. + // NullFields is a list of field names (e.g. "InAppPurchasesFlowsExplored") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *InAppPurchasesFound) MarshalJSON() ([]byte, error) { +func (s InAppPurchasesFound) MarshalJSON() ([]byte, error) { type NoMethod InAppPurchasesFound - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InsufficientCoverage: A warning that Robo did not crawl potentially @@ -358,32 +328,25 @@ type IosAppCrashed struct { // StackTrace: The stack trace, if one is available. // Optional. StackTrace *StackTrace `json:"stackTrace,omitempty"` - // ForceSendFields is a list of field names (e.g. "StackTrace") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StackTrace") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StackTrace") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *IosAppCrashed) MarshalJSON() ([]byte, error) { +func (s IosAppCrashed) MarshalJSON() ([]byte, error) { type NoMethod IosAppCrashed - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LauncherActivityNotFound: Failed to find the launcher activity of an -// app. +// LauncherActivityNotFound: Failed to find the launcher activity of an app. type LauncherActivityNotFound struct { } @@ -392,50 +355,38 @@ type NativeCrash struct { // StackTrace: The stack trace of the native crash. // Optional. StackTrace *StackTrace `json:"stackTrace,omitempty"` - // ForceSendFields is a list of field names (e.g. "StackTrace") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StackTrace") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StackTrace") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NativeCrash) MarshalJSON() ([]byte, error) { +func (s NativeCrash) MarshalJSON() ([]byte, error) { type NoMethod NativeCrash - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NonSdkApi: A non-sdk API and examples of it being called along with -// other +// NonSdkApi: A non-sdk API and examples of it being called along with other // metadata // See -// https://developer.android.com/distribute/best-practices/d -// evelop/restrictions-non-sdk-interfaces +// https://developer.android.com/distribute/best-practices/develop/restrictions-non-sdk-interfaces type NonSdkApi struct { // ApiSignature: The signature of the Non-SDK API ApiSignature string `json:"apiSignature,omitempty"` - // ExampleStackTraces: Example stack traces of this API being called. ExampleStackTraces []string `json:"exampleStackTraces,omitempty"` - // Insights: Optional debugging insights for non-SDK API violations. Insights []*NonSdkApiInsight `json:"insights,omitempty"` - - // InvocationCount: The total number of times this API was observed to - // have been called. + // InvocationCount: The total number of times this API was observed to have + // been called. InvocationCount int64 `json:"invocationCount,omitempty"` - // List: Which list this API appears on // // Possible values: @@ -447,76 +398,58 @@ type NonSdkApi struct { // "GREY_MAX_P" // "GREY_MAX_Q" List string `json:"list,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiSignature") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiSignature") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiSignature") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NonSdkApi) MarshalJSON() ([]byte, error) { +func (s NonSdkApi) MarshalJSON() ([]byte, error) { type NoMethod NonSdkApi - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NonSdkApiInsight: Non-SDK API insights (to address debugging -// solutions). +// NonSdkApiInsight: Non-SDK API insights (to address debugging solutions). type NonSdkApiInsight struct { - // ExampleTraceMessages: Optional sample stack traces, for which this - // insight applies (there + // ExampleTraceMessages: Optional sample stack traces, for which this insight + // applies (there // should be at least one). ExampleTraceMessages []string `json:"exampleTraceMessages,omitempty"` - - // MatcherId: A unique ID, to be used for determining the effectiveness - // of this + // MatcherId: A unique ID, to be used for determining the effectiveness of + // this // particular insight in the context of a matcher. (required) MatcherId string `json:"matcherId,omitempty"` - - // PendingGoogleUpdateInsight: An insight indicating that the hidden API - // usage originates from a + // PendingGoogleUpdateInsight: An insight indicating that the hidden API usage + // originates from a // Google-provided library. PendingGoogleUpdateInsight *PendingGoogleUpdateInsight `json:"pendingGoogleUpdateInsight,omitempty"` - - // UpgradeInsight: An insight indicating that the hidden API usage - // originates from the + // UpgradeInsight: An insight indicating that the hidden API usage originates + // from the // use of a library that needs to be upgraded. UpgradeInsight *UpgradeInsight `json:"upgradeInsight,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ExampleTraceMessages") to unconditionally include in API requests. - // By default, fields with empty values are omitted from API requests. - // However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ExampleTraceMessages") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExampleTraceMessages") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ExampleTraceMessages") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NonSdkApiInsight) MarshalJSON() ([]byte, error) { +func (s NonSdkApiInsight) MarshalJSON() ([]byte, error) { type NoMethod NonSdkApiInsight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NonSdkApiUsageViolation: Additional details for a non-sdk API usage @@ -524,202 +457,156 @@ func (s *NonSdkApiInsight) MarshalJSON() ([]byte, error) { type NonSdkApiUsageViolation struct { // ApiSignatures: Signatures of a subset of those hidden API's. ApiSignatures []string `json:"apiSignatures,omitempty"` - // UniqueApis: Total number of unique hidden API's accessed. UniqueApis int64 `json:"uniqueApis,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiSignatures") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ApiSignatures") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ApiSignatures") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NonSdkApiUsageViolation) MarshalJSON() ([]byte, error) { +func (s NonSdkApiUsageViolation) MarshalJSON() ([]byte, error) { type NoMethod NonSdkApiUsageViolation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NonSdkApiUsageViolationReport: Contains a summary and examples of -// non-sdk API usage violations. +// NonSdkApiUsageViolationReport: Contains a summary and examples of non-sdk +// API usage violations. type NonSdkApiUsageViolationReport struct { // ExampleApis: Examples of the detected API usages. ExampleApis []*NonSdkApi `json:"exampleApis,omitempty"` - // MinSdkVersion: Minimum API level required for the application to run. MinSdkVersion int64 `json:"minSdkVersion,omitempty"` - // TargetSdkVersion: Specifies the API Level on which the application is // designed to run. TargetSdkVersion int64 `json:"targetSdkVersion,omitempty"` - // UniqueApis: Total number of unique Non-SDK API's accessed. UniqueApis int64 `json:"uniqueApis,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExampleApis") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExampleApis") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ExampleApis") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NonSdkApiUsageViolationReport) MarshalJSON() ([]byte, error) { +func (s NonSdkApiUsageViolationReport) MarshalJSON() ([]byte, error) { type NoMethod NonSdkApiUsageViolationReport - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OverlappingUIElements: A warning that Robo encountered a screen that -// has overlapping clickable +// OverlappingUIElements: A warning that Robo encountered a screen that has +// overlapping clickable // elements; this may indicate a potential UI issue. type OverlappingUIElements struct { // ResourceName: Resource names of the overlapping screen elements ResourceName []string `json:"resourceName,omitempty"` - // ScreenId: The screen id of the elements ScreenId string `json:"screenId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OverlappingUIElements) MarshalJSON() ([]byte, error) { +func (s OverlappingUIElements) MarshalJSON() ([]byte, error) { type NoMethod OverlappingUIElements - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PendingGoogleUpdateInsight: This insight indicates that the hidden -// API usage originates from a +// PendingGoogleUpdateInsight: This insight indicates that the hidden API usage +// originates from a // Google-provided library. Users need not take any action. type PendingGoogleUpdateInsight struct { // NameOfGoogleLibrary: The name of the Google-provided library with the // non-SDK API dependency. NameOfGoogleLibrary string `json:"nameOfGoogleLibrary,omitempty"` - - // ForceSendFields is a list of field names (e.g. "NameOfGoogleLibrary") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "NameOfGoogleLibrary") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NameOfGoogleLibrary") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NameOfGoogleLibrary") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PendingGoogleUpdateInsight) MarshalJSON() ([]byte, error) { +func (s PendingGoogleUpdateInsight) MarshalJSON() ([]byte, error) { type NoMethod PendingGoogleUpdateInsight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PerformedGoogleLogin: A notification that Robo signed in with Google. type PerformedGoogleLogin struct { } -// PerformedMonkeyActions: A notification that Robo performed some -// monkey actions. +// PerformedMonkeyActions: A notification that Robo performed some monkey +// actions. type PerformedMonkeyActions struct { - // TotalActions: The total number of monkey actions performed during the - // crawl. + // TotalActions: The total number of monkey actions performed during the crawl. TotalActions int64 `json:"totalActions,omitempty"` - // ForceSendFields is a list of field names (e.g. "TotalActions") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TotalActions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "TotalActions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PerformedMonkeyActions) MarshalJSON() ([]byte, error) { +func (s PerformedMonkeyActions) MarshalJSON() ([]byte, error) { type NoMethod PerformedMonkeyActions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RoboScriptExecution: Execution stats for a user-provided Robo script. type RoboScriptExecution struct { - // SuccessfulActions: The number of Robo script actions executed - // successfully. + // SuccessfulActions: The number of Robo script actions executed successfully. SuccessfulActions int64 `json:"successfulActions,omitempty"` - // TotalActions: The total number of actions in the Robo script. TotalActions int64 `json:"totalActions,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SuccessfulActions") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "SuccessfulActions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SuccessfulActions") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "SuccessfulActions") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RoboScriptExecution) MarshalJSON() ([]byte, error) { +func (s RoboScriptExecution) MarshalJSON() ([]byte, error) { type NoMethod RoboScriptExecution - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StackTrace: A stacktrace. @@ -728,93 +615,72 @@ type StackTrace struct { // // Required Exception string `json:"exception,omitempty"` - // ForceSendFields is a list of field names (e.g. "Exception") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Exception") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Exception") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StackTrace) MarshalJSON() ([]byte, error) { +func (s StackTrace) MarshalJSON() ([]byte, error) { type NoMethod StackTrace - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StartActivityNotFound: User provided intent failed to resolve to an // activity. type StartActivityNotFound struct { Action string `json:"action,omitempty"` - - Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StartActivityNotFound) MarshalJSON() ([]byte, error) { +func (s StartActivityNotFound) MarshalJSON() ([]byte, error) { type NoMethod StartActivityNotFound - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UIElementTooDeep: A warning that the screen hierarchy is deeper than -// the recommended threshold. +// UIElementTooDeep: A warning that the screen hierarchy is deeper than the +// recommended threshold. type UIElementTooDeep struct { // Depth: The depth of the screen element Depth int64 `json:"depth,omitempty"` - // ScreenId: The screen id of the element ScreenId string `json:"screenId,omitempty"` - // ScreenStateId: The screen state id of the element ScreenStateId string `json:"screenStateId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Depth") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Depth") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Depth") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UIElementTooDeep) MarshalJSON() ([]byte, error) { +func (s UIElementTooDeep) MarshalJSON() ([]byte, error) { type NoMethod UIElementTooDeep - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UnspecifiedWarning: Default unspecified warning. @@ -825,118 +691,93 @@ type UnspecifiedWarning struct { type UnusedRoboDirective struct { // ResourceName: The name of the resource that was unused. ResourceName string `json:"resourceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UnusedRoboDirective) MarshalJSON() ([]byte, error) { +func (s UnusedRoboDirective) MarshalJSON() ([]byte, error) { type NoMethod UnusedRoboDirective - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UpgradeInsight: This insight is a recommendation to upgrade a given -// library to the specified +// UpgradeInsight: This insight is a recommendation to upgrade a given library +// to the specified // version, in order to avoid dependencies on non-SDK APIs. type UpgradeInsight struct { // PackageName: The name of the package to be upgraded. PackageName string `json:"packageName,omitempty"` - // UpgradeToVersion: The suggested version to upgrade to. // Optional: In case we are not sure which version solves this problem UpgradeToVersion string `json:"upgradeToVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "PackageName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PackageName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PackageName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UpgradeInsight) MarshalJSON() ([]byte, error) { +func (s UpgradeInsight) MarshalJSON() ([]byte, error) { type NoMethod UpgradeInsight - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UsedRoboDirective: Additional details of a used Robo directive. type UsedRoboDirective struct { // ResourceName: The name of the resource that was used. ResourceName string `json:"resourceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UsedRoboDirective) MarshalJSON() ([]byte, error) { +func (s UsedRoboDirective) MarshalJSON() ([]byte, error) { type NoMethod UsedRoboDirective - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UsedRoboIgnoreDirective: Additional details of a used Robo directive -// with an ignore action. +// UsedRoboIgnoreDirective: Additional details of a used Robo directive with an +// ignore action. // Note: This is a different scenario than unused directive. type UsedRoboIgnoreDirective struct { // ResourceName: The name of the resource that was ignored. ResourceName string `json:"resourceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceName") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResourceName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResourceName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UsedRoboIgnoreDirective) MarshalJSON() ([]byte, error) { +func (s UsedRoboIgnoreDirective) MarshalJSON() ([]byte, error) { type NoMethod UsedRoboIgnoreDirective - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } diff --git a/toolresults/v1beta3/toolresults-gen.go b/toolresults/v1beta3/toolresults-gen.go index 525ff353df2..5ada74ca3bc 100644 --- a/toolresults/v1beta3/toolresults-gen.go +++ b/toolresults/v1beta3/toolresults-gen.go @@ -3716,7 +3716,7 @@ func (c *ProjectsGetSettingsCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.getSettings" call. @@ -3830,7 +3830,7 @@ func (c *ProjectsInitializeSettingsCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.initializeSettings" call. @@ -3943,7 +3943,7 @@ func (c *ProjectsHistoriesCreateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.create" call. @@ -4057,7 +4057,7 @@ func (c *ProjectsHistoriesGetCall) doRequest(alt string) (*http.Response, error) "projectId": c.projectId, "historyId": c.historyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.get" call. @@ -4192,7 +4192,7 @@ func (c *ProjectsHistoriesListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "projectId": c.projectId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.list" call. @@ -4331,7 +4331,7 @@ func (c *ProjectsHistoriesExecutionsCreateCall) doRequest(alt string) (*http.Res "projectId": c.projectId, "historyId": c.historyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.create" call. @@ -4449,7 +4449,7 @@ func (c *ProjectsHistoriesExecutionsGetCall) doRequest(alt string) (*http.Respon "historyId": c.historyId, "executionId": c.executionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.get" call. @@ -4580,7 +4580,7 @@ func (c *ProjectsHistoriesExecutionsListCall) doRequest(alt string) (*http.Respo "projectId": c.projectId, "historyId": c.historyId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.list" call. @@ -4723,7 +4723,7 @@ func (c *ProjectsHistoriesExecutionsPatchCall) doRequest(alt string) (*http.Resp "historyId": c.historyId, "executionId": c.executionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.patch" call. @@ -4842,7 +4842,7 @@ func (c *ProjectsHistoriesExecutionsClustersGetCall) doRequest(alt string) (*htt "executionId": c.executionId, "clusterId": c.clusterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.clusters.get" call. @@ -4963,7 +4963,7 @@ func (c *ProjectsHistoriesExecutionsClustersListCall) doRequest(alt string) (*ht "historyId": c.historyId, "executionId": c.executionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.clusters.list" call. @@ -5086,7 +5086,7 @@ func (c *ProjectsHistoriesExecutionsEnvironmentsGetCall) doRequest(alt string) ( "executionId": c.executionId, "environmentId": c.environmentId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.environments.get" call. @@ -5220,7 +5220,7 @@ func (c *ProjectsHistoriesExecutionsEnvironmentsListCall) doRequest(alt string) "historyId": c.historyId, "executionId": c.executionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.environments.list" call. @@ -5366,7 +5366,7 @@ func (c *ProjectsHistoriesExecutionsStepsAccessibilityClustersCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.accessibilityClusters" call. @@ -5488,7 +5488,7 @@ func (c *ProjectsHistoriesExecutionsStepsCreateCall) doRequest(alt string) (*htt "historyId": c.historyId, "executionId": c.executionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.create" call. @@ -5610,7 +5610,7 @@ func (c *ProjectsHistoriesExecutionsStepsGetCall) doRequest(alt string) (*http.R "executionId": c.executionId, "stepId": c.stepId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.get" call. @@ -5731,7 +5731,7 @@ func (c *ProjectsHistoriesExecutionsStepsGetPerfMetricsSummaryCall) doRequest(al "executionId": c.executionId, "stepId": c.stepId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.getPerfMetricsSummary" call. @@ -5869,7 +5869,7 @@ func (c *ProjectsHistoriesExecutionsStepsListCall) doRequest(alt string) (*http. "historyId": c.historyId, "executionId": c.executionId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.list" call. @@ -6018,7 +6018,7 @@ func (c *ProjectsHistoriesExecutionsStepsPatchCall) doRequest(alt string) (*http "executionId": c.executionId, "stepId": c.stepId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.patch" call. @@ -6136,7 +6136,7 @@ func (c *ProjectsHistoriesExecutionsStepsPublishXunitXmlFilesCall) doRequest(alt "executionId": c.executionId, "stepId": c.stepId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.publishXunitXmlFiles" call. @@ -6251,7 +6251,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfMetricsSummaryCreateCall) doRequest "executionId": c.executionId, "stepId": c.stepId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.perfMetricsSummary.create" call. @@ -6367,7 +6367,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesCreateCall) doRequest(a "executionId": c.executionId, "stepId": c.stepId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.perfSampleSeries.create" call. @@ -6492,7 +6492,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesGetCall) doRequest(alt "stepId": c.stepId, "sampleSeriesId": c.sampleSeriesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.perfSampleSeries.get" call. @@ -6631,7 +6631,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesListCall) doRequest(alt "executionId": c.executionId, "stepId": c.stepId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.perfSampleSeries.list" call. @@ -6756,7 +6756,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesBatchCreateCall) "stepId": c.stepId, "sampleSeriesId": c.sampleSeriesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.perfSampleSeries.samples.batchCreate" call. @@ -6903,7 +6903,7 @@ func (c *ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesListCall) doRequ "stepId": c.stepId, "sampleSeriesId": c.sampleSeriesId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.perfSampleSeries.samples.list" call. @@ -7052,7 +7052,7 @@ func (c *ProjectsHistoriesExecutionsStepsTestCasesGetCall) doRequest(alt string) "stepId": c.stepId, "testCaseId": c.testCaseId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.testCases.get" call. @@ -7190,7 +7190,7 @@ func (c *ProjectsHistoriesExecutionsStepsTestCasesListCall) doRequest(alt string "executionId": c.executionId, "stepId": c.stepId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.testCases.list" call. @@ -7350,7 +7350,7 @@ func (c *ProjectsHistoriesExecutionsStepsThumbnailsListCall) doRequest(alt strin "executionId": c.executionId, "stepId": c.stepId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "toolresults.projects.histories.executions.steps.thumbnails.list" call. diff --git a/tpu/v1/tpu-gen.go b/tpu/v1/tpu-gen.go index 30463fd384e..7c368922219 100644 --- a/tpu/v1/tpu-gen.go +++ b/tpu/v1/tpu-gen.go @@ -887,7 +887,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.get" call. @@ -1018,7 +1018,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.list" call. @@ -1147,7 +1147,7 @@ func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.acceleratorTypes.get" call. @@ -1281,7 +1281,7 @@ func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.acceleratorTypes.list" call. @@ -1410,7 +1410,7 @@ func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.create" call. @@ -1505,7 +1505,7 @@ func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.delete" call. @@ -1612,7 +1612,7 @@ func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.get" call. @@ -1733,7 +1733,7 @@ func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.list" call. @@ -1856,7 +1856,7 @@ func (c *ProjectsLocationsNodesReimageCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.reimage" call. @@ -1957,7 +1957,7 @@ func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.start" call. @@ -2058,7 +2058,7 @@ func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.stop" call. @@ -2161,7 +2161,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.cancel" call. @@ -2259,7 +2259,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.delete" call. @@ -2368,7 +2368,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.get" call. @@ -2496,7 +2496,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.list" call. @@ -2625,7 +2625,7 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.tensorflowVersions.get" call. @@ -2759,7 +2759,7 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.tensorflowVersions.list" call. diff --git a/tpu/v1alpha1/tpu-gen.go b/tpu/v1alpha1/tpu-gen.go index f5deefddbc4..3ffee44b738 100644 --- a/tpu/v1alpha1/tpu-gen.go +++ b/tpu/v1alpha1/tpu-gen.go @@ -887,7 +887,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.get" call. @@ -1018,7 +1018,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.list" call. @@ -1147,7 +1147,7 @@ func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.acceleratorTypes.get" call. @@ -1281,7 +1281,7 @@ func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.acceleratorTypes.list" call. @@ -1416,7 +1416,7 @@ func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.create" call. @@ -1517,7 +1517,7 @@ func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.delete" call. @@ -1624,7 +1624,7 @@ func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.get" call. @@ -1745,7 +1745,7 @@ func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.list" call. @@ -1868,7 +1868,7 @@ func (c *ProjectsLocationsNodesReimageCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.reimage" call. @@ -1969,7 +1969,7 @@ func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.start" call. @@ -2070,7 +2070,7 @@ func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.stop" call. @@ -2173,7 +2173,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.cancel" call. @@ -2271,7 +2271,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.delete" call. @@ -2380,7 +2380,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.get" call. @@ -2508,7 +2508,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.list" call. @@ -2637,7 +2637,7 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.tensorflowVersions.get" call. @@ -2771,7 +2771,7 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.tensorflowVersions.list" call. diff --git a/tpu/v2/tpu-gen.go b/tpu/v2/tpu-gen.go index 1934c71b8ae..e13aa14701c 100644 --- a/tpu/v2/tpu-gen.go +++ b/tpu/v2/tpu-gen.go @@ -1620,7 +1620,7 @@ func (c *ProjectsLocationsGenerateServiceIdentityCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.generateServiceIdentity" call. @@ -1728,7 +1728,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.get" call. @@ -1859,7 +1859,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.list" call. @@ -1988,7 +1988,7 @@ func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.acceleratorTypes.get" call. @@ -2122,7 +2122,7 @@ func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.acceleratorTypes.list" call. @@ -2251,7 +2251,7 @@ func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.create" call. @@ -2346,7 +2346,7 @@ func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.delete" call. @@ -2453,7 +2453,7 @@ func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.get" call. @@ -2554,7 +2554,7 @@ func (c *ProjectsLocationsNodesGetGuestAttributesCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.getGuestAttributes" call. @@ -2676,7 +2676,7 @@ func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.list" call. @@ -2807,7 +2807,7 @@ func (c *ProjectsLocationsNodesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.patch" call. @@ -2908,7 +2908,7 @@ func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.start" call. @@ -3009,7 +3009,7 @@ func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.stop" call. @@ -3112,7 +3112,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.cancel" call. @@ -3210,7 +3210,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.delete" call. @@ -3319,7 +3319,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.get" call. @@ -3447,7 +3447,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.list" call. @@ -3584,7 +3584,7 @@ func (c *ProjectsLocationsQueuedResourcesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.queuedResources.create" call. @@ -3695,7 +3695,7 @@ func (c *ProjectsLocationsQueuedResourcesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.queuedResources.delete" call. @@ -3802,7 +3802,7 @@ func (c *ProjectsLocationsQueuedResourcesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.queuedResources.get" call. @@ -3923,7 +3923,7 @@ func (c *ProjectsLocationsQueuedResourcesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.queuedResources.list" call. @@ -4046,7 +4046,7 @@ func (c *ProjectsLocationsQueuedResourcesResetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.queuedResources.reset" call. @@ -4153,7 +4153,7 @@ func (c *ProjectsLocationsRuntimeVersionsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.runtimeVersions.get" call. @@ -4286,7 +4286,7 @@ func (c *ProjectsLocationsRuntimeVersionsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.runtimeVersions.list" call. diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 40d6d2092e2..ebd2a0cba1b 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -1838,7 +1838,7 @@ func (c *ProjectsLocationsGenerateServiceIdentityCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.generateServiceIdentity" call. @@ -1946,7 +1946,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.get" call. @@ -2077,7 +2077,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.list" call. @@ -2206,7 +2206,7 @@ func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.acceleratorTypes.get" call. @@ -2340,7 +2340,7 @@ func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.acceleratorTypes.list" call. @@ -2475,7 +2475,7 @@ func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.create" call. @@ -2576,7 +2576,7 @@ func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.delete" call. @@ -2683,7 +2683,7 @@ func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.get" call. @@ -2784,7 +2784,7 @@ func (c *ProjectsLocationsNodesGetGuestAttributesCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.getGuestAttributes" call. @@ -2906,7 +2906,7 @@ func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.list" call. @@ -3037,7 +3037,7 @@ func (c *ProjectsLocationsNodesPatchCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.patch" call. @@ -3138,7 +3138,7 @@ func (c *ProjectsLocationsNodesSimulateMaintenanceEventCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.simulateMaintenanceEvent" call. @@ -3239,7 +3239,7 @@ func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.start" call. @@ -3340,7 +3340,7 @@ func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.nodes.stop" call. @@ -3443,7 +3443,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.cancel" call. @@ -3541,7 +3541,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.delete" call. @@ -3650,7 +3650,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.get" call. @@ -3778,7 +3778,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.operations.list" call. @@ -3915,7 +3915,7 @@ func (c *ProjectsLocationsQueuedResourcesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.queuedResources.create" call. @@ -4026,7 +4026,7 @@ func (c *ProjectsLocationsQueuedResourcesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.queuedResources.delete" call. @@ -4133,7 +4133,7 @@ func (c *ProjectsLocationsQueuedResourcesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.queuedResources.get" call. @@ -4254,7 +4254,7 @@ func (c *ProjectsLocationsQueuedResourcesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.queuedResources.list" call. @@ -4377,7 +4377,7 @@ func (c *ProjectsLocationsQueuedResourcesResetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.queuedResources.reset" call. @@ -4499,7 +4499,7 @@ func (c *ProjectsLocationsReservationsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.reservations.list" call. @@ -4628,7 +4628,7 @@ func (c *ProjectsLocationsRuntimeVersionsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.runtimeVersions.get" call. @@ -4761,7 +4761,7 @@ func (c *ProjectsLocationsRuntimeVersionsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tpu.projects.locations.runtimeVersions.list" call. diff --git a/tracing/v2/tracing-gen.go b/tracing/v2/tracing-gen.go index 3e5f86f14fb..0637f2d07b8 100644 --- a/tracing/v2/tracing-gen.go +++ b/tracing/v2/tracing-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/trace // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // tracingService, err := tracing.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // tracingService, err := tracing.NewService(ctx, option.WithScopes(tracing.TraceReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // tracingService, err := tracing.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // tracingService, err := tracing.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package tracing // import "google.golang.org/api/tracing/v2" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "tracing:v2" const apiName = "tracing" const apiVersion = "v2" const basePath = "https://tracing.googleapis.com/" +const basePathTemplate = "https://tracing.UNIVERSE_DOMAIN/" // OAuth2 scopes used by this API. const ( @@ -92,13 +111,16 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/trace.append", "https://www.googleapis.com/auth/trace.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -179,37 +201,30 @@ type ProjectsTracesSpansService struct { // annotations are // allowed per Span. type Annotation struct { - // Attributes: A set of attributes on the annotation. A maximum of 4 - // attributes are + // Attributes: A set of attributes on the annotation. A maximum of 4 attributes + // are // allowed per Annotation. Attributes *Attributes `json:"attributes,omitempty"` - - // Description: A user-supplied message describing the event. The - // maximum length for + // Description: A user-supplied message describing the event. The maximum + // length for // the description is 256 bytes. Description *TruncatableString `json:"description,omitempty"` - // ForceSendFields is a list of field names (e.g. "Attributes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attributes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attributes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Annotation) MarshalJSON() ([]byte, error) { +func (s Annotation) MarshalJSON() ([]byte, error) { type NoMethod Annotation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AttributeValue: The allowed types for the value side of an attribute @@ -217,42 +232,33 @@ func (s *Annotation) MarshalJSON() ([]byte, error) { type AttributeValue struct { // BoolValue: A boolean value. BoolValue bool `json:"boolValue,omitempty"` - // IntValue: An integer value. IntValue int64 `json:"intValue,omitempty,string"` - // StringValue: A string value (up to 256 bytes). StringValue *TruncatableString `json:"stringValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoolValue") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BoolValue") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BoolValue") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AttributeValue) MarshalJSON() ([]byte, error) { +func (s AttributeValue) MarshalJSON() ([]byte, error) { type NoMethod AttributeValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Attributes: Attributes of a span with a key:value format. type Attributes struct { - // AttributeMap: The maximum key length is 128 bytes (attributes are - // dropped if the - // key size is larger than the maximum allowed). The value can be a - // string + // AttributeMap: The maximum key length is 128 bytes (attributes are dropped if + // the + // key size is larger than the maximum allowed). The value can be a string // (up to 256 bytes), integer, or boolean (true/false). Some common // pair // examples: @@ -267,33 +273,26 @@ type Attributes struct { // "/http/url": google.com/apis // "abc.com/myattribute": true AttributeMap map[string]AttributeValue `json:"attributeMap,omitempty"` - - // DroppedAttributesCount: The number of dropped attributes after the - // maximum size was enforced. If + // DroppedAttributesCount: The number of dropped attributes after the maximum + // size was enforced. If // 0 then no attributes were dropped. DroppedAttributesCount int64 `json:"droppedAttributesCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "AttributeMap") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttributeMap") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AttributeMap") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Attributes) MarshalJSON() ([]byte, error) { +func (s Attributes) MarshalJSON() ([]byte, error) { type NoMethod Attributes - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BatchWriteSpansRequest: The request message for the `BatchWriteSpans` @@ -301,28 +300,22 @@ func (s *Attributes) MarshalJSON() ([]byte, error) { type BatchWriteSpansRequest struct { // Spans: A collection of spans. Spans []*Span `json:"spans,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Spans") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Spans") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Spans") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BatchWriteSpansRequest) MarshalJSON() ([]byte, error) { +func (s BatchWriteSpansRequest) MarshalJSON() ([]byte, error) { type NoMethod BatchWriteSpansRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining @@ -332,244 +325,191 @@ func (s *BatchWriteSpansRequest) MarshalJSON() ([]byte, error) { // or the response type of an API method. For instance: // // service Foo { -// rpc Bar(google.protobuf.Empty) returns -// -// (google.protobuf.Empty); -// +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); // } // // The JSON representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } // Link: A pointer from this span to another span in a different `Trace` // within -// the same service project or within a different service project. -// Used -// (for example) in batching operations, where a single batch -// handler -// processes multiple requests from different traces or when receives -// a +// the same service project or within a different service project. Used +// (for example) in batching operations, where a single batch handler +// processes multiple requests from different traces or when receives a // request from a different service project. type Link struct { - // SpanId: `SPAN_ID` is a unique identifier for a span within a trace. - // It is a - // base16-encoded, case-insensitive string of a 8-bytes array and - // is + // SpanId: `SPAN_ID` is a unique identifier for a span within a trace. It is + // a + // base16-encoded, case-insensitive string of a 8-bytes array and is // required to be 16 char long. SpanId string `json:"spanId,omitempty"` - - // TraceId: `TRACE_ID` is a unique identifier for a trace within a - // project. It is + // TraceId: `TRACE_ID` is a unique identifier for a trace within a project. It + // is // a base16-encoded, case-insensitive string of a 16-bytes array and // is // required to be 32 char long. TraceId string `json:"traceId,omitempty"` - - // Type: The relationship of the current span relative to the linked - // span. + // Type: The relationship of the current span relative to the linked span. // // Possible values: // "TYPE_UNSPECIFIED" - The relationship of the two spans is unknown. // "CHILD" - The current span is a child of the linked span. // "PARENT" - The current span is the parent of the linked span. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SpanId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "SpanId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SpanId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Link) MarshalJSON() ([]byte, error) { +func (s Link) MarshalJSON() ([]byte, error) { type NoMethod Link - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Links: A collection of links, which are references from this span to -// a span +// Links: A collection of links, which are references from this span to a +// span // in the same or different trace. type Links struct { - // DroppedLinksCount: The number of dropped links after the maximum size - // was enforced. If + // DroppedLinksCount: The number of dropped links after the maximum size was + // enforced. If // 0 then no links were dropped. DroppedLinksCount int64 `json:"droppedLinksCount,omitempty"` - // Link: A collection of links. Link []*Link `json:"link,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DroppedLinksCount") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DroppedLinksCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DroppedLinksCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DroppedLinksCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Links) MarshalJSON() ([]byte, error) { +func (s Links) MarshalJSON() ([]byte, error) { type NoMethod Links - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListSpansResponse: The response message for the `ListSpans` method. type ListSpansResponse struct { - // NextPageToken: If defined, indicates that there are more spans that - // match the request. + // NextPageToken: If defined, indicates that there are more spans that match + // the request. // Pass this as the value of `pageToken` in a subsequent request to // retrieve // additional spans. NextPageToken string `json:"nextPageToken,omitempty"` - // Spans: The requested spans if there are any in the specified trace. Spans []*Span `json:"spans,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListSpansResponse) MarshalJSON() ([]byte, error) { +func (s ListSpansResponse) MarshalJSON() ([]byte, error) { type NoMethod ListSpansResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListTracesResponse: The response message for the `ListTraces` method. type ListTracesResponse struct { - // NextPageToken: If defined, indicates that there are more traces that - // match the request + // NextPageToken: If defined, indicates that there are more traces that match + // the request // and that this value should be passed to the next request to // continue // retrieving additional traces. NextPageToken string `json:"nextPageToken,omitempty"` - // Traces: List of trace records returned. Traces []*Trace `json:"traces,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListTracesResponse) MarshalJSON() ([]byte, error) { +func (s ListTracesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListTracesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Module: Binary module. type Module struct { - // BuildId: Build_id is a unique identifier for the module, usually a - // hash of its + // BuildId: Build_id is a unique identifier for the module, usually a hash of + // its // contents (up to 128 characters). BuildId *TruncatableString `json:"buildId,omitempty"` - // Module: E.g. main binary, kernel modules, and dynamic libraries // such as libc.so, sharedlib.so (up to 256 characters). Module *TruncatableString `json:"module,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BuildId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "BuildId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BuildId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BuildId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Module) MarshalJSON() ([]byte, error) { +func (s Module) MarshalJSON() ([]byte, error) { type NoMethod Module - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NetworkEvent: An event describing an RPC message sent/received on the // network. A // maximum of 128 network events are allowed per Span. type NetworkEvent struct { - // MessageId: An identifier for the message, which must be unique in - // this span. + // MessageId: An identifier for the message, which must be unique in this span. MessageId uint64 `json:"messageId,omitempty,string"` - // MessageSize: The number of bytes sent or received. MessageSize uint64 `json:"messageSize,omitempty,string"` - // Time: If available, this is the kernel time: // - // * For sent messages, this is the time at which the first bit was - // sent. + // * For sent messages, this is the time at which the first bit was sent. // * For received messages, this is the time at which the last bit was // received. Time string `json:"time,omitempty"` - - // Type: Type of NetworkEvent. Indicates whether the RPC message was - // sent or + // Type: Type of NetworkEvent. Indicates whether the RPC message was sent + // or // received. // // Possible values: @@ -577,61 +517,50 @@ type NetworkEvent struct { // "SENT" - Indicates a sent RPC message. // "RECV" - Indicates a received RPC message. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "MessageId") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MessageId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MessageId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NetworkEvent) MarshalJSON() ([]byte, error) { +func (s NetworkEvent) MarshalJSON() ([]byte, error) { type NoMethod NetworkEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Span: A span represents a single operation within a trace. Spans can -// be nested -// to form a trace tree. Often, a trace contains a root span -// that -// describes the end-to-end latency and, optionally, one or more -// subspans for -// its sub-operations. (A trace could alternatively contain multiple -// root spans, + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Span: A span represents a single operation within a trace. Spans can be +// nested +// to form a trace tree. Often, a trace contains a root span that +// describes the end-to-end latency and, optionally, one or more subspans +// for +// its sub-operations. (A trace could alternatively contain multiple root +// spans, // or none at all.) Spans do not need to be contiguous. There may be // gaps // and/or overlaps between spans in a trace. type Span struct { - // Attributes: A set of attributes on the span. A maximum of 32 - // attributes are allowed per + // Attributes: A set of attributes on the span. A maximum of 32 attributes are + // allowed per // Span. Attributes *Attributes `json:"attributes,omitempty"` - - // DisplayName: Description of the operation in the span. It is - // sanitized and displayed in + // DisplayName: Description of the operation in the span. It is sanitized and + // displayed in // the Stackdriver Trace tool in the // {% dynamic print site_values.console_name %}. - // The display_name may be a method name or some other per-call - // site - // name. For the same executable and the same call point, a best - // practice is + // The display_name may be a method name or some other per-call site + // name. For the same executable and the same call point, a best practice is // to use a consistent operation name, which makes it easier to // correlate // cross-trace spans. // The maximum length for the display_name is 128 bytes. DisplayName *TruncatableString `json:"displayName,omitempty"` - // EndTime: End time of the span. // On the client side, this is the local machine clock time at which the // span @@ -640,40 +569,32 @@ type Span struct { // stopped // running. EndTime string `json:"endTime,omitempty"` - // Links: A maximum of 128 links are allowed per Span. Links *Links `json:"links,omitempty"` - // Name: The resource name of Span in the // format // `projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID`. - // `TRACE_ID` - // is a unique identifier for a trace within a project and is + // `TRACE_ID` is a unique identifier for a trace within a project and is // a // base16-encoded, case-insensitive string and is required to be 32 char // long. - // `SPAN_ID` is a unique identifier for a span within a trace. It is - // a + // `SPAN_ID` is a unique identifier for a span within a trace. It is a // base 16-encoded, case-insensitive string of a 8-bytes array and is // required // to be 16 char long. Name string `json:"name,omitempty"` - - // ParentSpanId: ID of parent span which is a base 16-encoded, - // case-insensitive string of + // ParentSpanId: ID of parent span which is a base 16-encoded, case-insensitive + // string of // a 8-bytes array and is required to be 16 char long. If this is a root // span, // the value must be empty. ParentSpanId string `json:"parentSpanId,omitempty"` - // SpanId: Unique identifier for a span within a trace. It is a base // 16-encoded, // case-insensitive string of a 8-bytes array and is required. SpanId string `json:"spanId,omitempty"` - // StackTrace: Stack trace captured at the start of the span. StackTrace *StackTrace `json:"stackTrace,omitempty"` - // StartTime: Start time of the span. // On the client side, this is the local machine clock time at which the // span @@ -682,39 +603,30 @@ type Span struct { // started // running. StartTime string `json:"startTime,omitempty"` - // Status: An optional final status for this span. Status *Status `json:"status,omitempty"` - - // TimeEvents: A maximum of 32 annotations and 128 network events are - // allowed per Span. + // TimeEvents: A maximum of 32 annotations and 128 network events are allowed + // per Span. TimeEvents *TimeEvents `json:"timeEvents,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Attributes") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attributes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Attributes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Span) MarshalJSON() ([]byte, error) { +func (s Span) MarshalJSON() ([]byte, error) { type NoMethod Span - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StackFrame: Represents a single stack frame in a stack trace. @@ -723,139 +635,108 @@ type StackFrame struct { // functions). // May not be available in some languages. ColumnNumber int64 `json:"columnNumber,omitempty,string"` - // FileName: The filename of the file containing this frame (up to 256 // characters). FileName *TruncatableString `json:"fileName,omitempty"` - // FunctionName: The fully-qualified name that uniquely identifies this // function or // method (up to 1024 characters). FunctionName *TruncatableString `json:"functionName,omitempty"` - // LineNumber: Line number of the frame. LineNumber int64 `json:"lineNumber,omitempty,string"` - // LoadModule: Binary module the code is loaded from. LoadModule *Module `json:"loadModule,omitempty"` - - // OriginalFunctionName: Used when the function name - // is - // [mangled](http://www.avabodh.com/cxxin/namemangling.html). May + // OriginalFunctionName: Used when the function name is + // mangled (http://www.avabodh.com/cxxin/namemangling.html). May // be // fully-qualified (up to 1024 characters). OriginalFunctionName *TruncatableString `json:"originalFunctionName,omitempty"` - // SourceVersion: The version of the deployed source code (up to 128 // characters). SourceVersion *TruncatableString `json:"sourceVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "ColumnNumber") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ColumnNumber") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ColumnNumber") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StackFrame) MarshalJSON() ([]byte, error) { +func (s StackFrame) MarshalJSON() ([]byte, error) { type NoMethod StackFrame - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// StackFrames: Represents collection of StackFrames that can be -// truncated. +// StackFrames: Represents collection of StackFrames that can be truncated. type StackFrames struct { - // DroppedFramesCount: The number of dropped stack frames after the - // maximum size was enforced. + // DroppedFramesCount: The number of dropped stack frames after the maximum + // size was enforced. // If 0 then no frames were dropped. DroppedFramesCount int64 `json:"droppedFramesCount,omitempty"` - // Frame: Stack frames in this stack trace. Frame []*StackFrame `json:"frame,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DroppedFramesCount") - // to unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "DroppedFramesCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DroppedFramesCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DroppedFramesCount") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StackFrames) MarshalJSON() ([]byte, error) { +func (s StackFrames) MarshalJSON() ([]byte, error) { type NoMethod StackFrames - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // StackTrace: StackTrace collected in a trace. type StackTrace struct { - // StackFrames: Stack frames in this stack trace. A maximum of 128 - // frames are allowed. + // StackFrames: Stack frames in this stack trace. A maximum of 128 frames are + // allowed. StackFrames *StackFrames `json:"stackFrames,omitempty"` - - // StackTraceHashId: The hash ID is used to conserve network bandwidth - // for duplicate + // StackTraceHashId: The hash ID is used to conserve network bandwidth for + // duplicate // stack traces within a single trace. // // Often multiple spans will have identical stack traces. - // The first occurrence of a stack trace should contain both - // the + // The first occurrence of a stack trace should contain both the // `stackFrame` content and a value in `stackTraceHashId`. // // Subsequent spans within the same request can refer // to that stack trace by only setting `stackTraceHashId`. StackTraceHashId uint64 `json:"stackTraceHashId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "StackFrames") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StackFrames") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "StackFrames") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StackTrace) MarshalJSON() ([]byte, error) { +func (s StackTrace) MarshalJSON() ([]byte, error) { type NoMethod StackTrace - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is -// suitable for different -// programming environments, including REST APIs and RPC APIs. It is -// used by -// [gRPC](https://github.com/grpc). The error model is designed to -// be: +// Status: The `Status` type defines a logical error model that is suitable for +// different +// programming environments, including REST APIs and RPC APIs. It is used +// by +// gRPC (https://github.com/grpc). The error model is designed to be: // // - Simple to use and understand for most users // - Flexible enough to meet unexpected needs @@ -872,23 +753,22 @@ func (s *StackTrace) MarshalJSON() ([]byte, error) { // helps // developers *understand* and *resolve* the error. If a localized // user-facing -// error message is needed, put the localized message in the error -// details or +// error message is needed, put the localized message in the error details +// or // localize it in the client. The optional error details may contain // arbitrary -// information about the error. There is a predefined set of error -// detail types -// in the package `google.rpc` that can be used for common error -// conditions. +// information about the error. There is a predefined set of error detail +// types +// in the package `google.rpc` that can be used for common error conditions. // // # Language mapping // -// The `Status` message is the logical representation of the error -// model, but it +// The `Status` message is the logical representation of the error model, but +// it // is not necessarily the actual wire format. When the `Status` message // is -// exposed in different client libraries and different wire protocols, -// it can be +// exposed in different client libraries and different wire protocols, it can +// be // mapped differently. For example, it will likely be mapped to some // exceptions // in Java, but more likely mapped to some error codes in C. @@ -898,8 +778,7 @@ func (s *StackTrace) MarshalJSON() ([]byte, error) { // The error model and the `Status` message can be used in a variety // of // environments, either with or without APIs, to provide a -// consistent developer experience across different -// environments. +// consistent developer experience across different environments. // // Example uses of this error model include: // @@ -912,189 +791,142 @@ func (s *StackTrace) MarshalJSON() ([]byte, error) { // // errors. // -// - Workflow errors. A typical workflow has multiple steps. Each step -// may -// -// have a `Status` message for error reporting. -// -// - Batch operations. If a client uses batch request and batch -// response, the +// - Workflow errors. A typical workflow has multiple steps. Each step may +// have a `Status` message for error reporting. // -// `Status` message should be used directly inside batch response, +// - Batch operations. If a client uses batch request and batch response, the +// `Status` message should be used directly inside batch response, one for +// each error sub-response. // -// one for +// - Asynchronous operations. If an API call embeds asynchronous operation +// results in its response, the status of those operations should be +// represented directly using the `Status` message. // -// each error sub-response. -// -// - Asynchronous operations. If an API call embeds asynchronous -// operation -// -// results in its response, the status of those operations should -// -// be -// -// represented directly using the `Status` message. -// -// - Logging. If some API errors are stored in logs, the message -// `Status` could +// - Logging. If some API errors are stored in logs, the message `Status` +// could // // be used directly after any stripping needed for security/privacy // // reasons. type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. + // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` - - // Details: A list of messages that carry the error details. There will - // be a + // Details: A list of messages that carry the error details. There will be + // a // common set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` - - // Message: A developer-facing error message, which should be in - // English. Any + // Message: A developer-facing error message, which should be in English. + // Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { +func (s Status) MarshalJSON() ([]byte, error) { type NoMethod Status - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TimeEvent: A time-stamped annotation in the Span. type TimeEvent struct { // Annotation: One or more key:value pairs. Annotation *Annotation `json:"annotation,omitempty"` - // NetworkEvent: An event describing an RPC message sent/received on the // network. NetworkEvent *NetworkEvent `json:"networkEvent,omitempty"` - // Time: The timestamp indicating the time the event occurred. Time string `json:"time,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotation") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Annotation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Annotation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimeEvent) MarshalJSON() ([]byte, error) { +func (s TimeEvent) MarshalJSON() ([]byte, error) { type NoMethod TimeEvent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TimeEvents: A collection of `TimeEvent`s. A `TimeEvent` is a -// time-stamped annotation -// on the span, consisting of either user-supplied key:value pairs, -// or +// TimeEvents: A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped +// annotation +// on the span, consisting of either user-supplied key:value pairs, or // details of an RPC message sent/received on the network. type TimeEvents struct { - // DroppedAnnotationsCount: The number of dropped annotations after the - // maximum size was enforced. If + // DroppedAnnotationsCount: The number of dropped annotations after the maximum + // size was enforced. If // 0 then no annotations were dropped. DroppedAnnotationsCount int64 `json:"droppedAnnotationsCount,omitempty"` - - // DroppedNetworkEventsCount: The number of dropped network events after - // the maximum size was enforced. + // DroppedNetworkEventsCount: The number of dropped network events after the + // maximum size was enforced. // If 0 then no annotations were dropped. DroppedNetworkEventsCount int64 `json:"droppedNetworkEventsCount,omitempty"` - // TimeEvent: A collection of `TimeEvent`s. TimeEvent []*TimeEvent `json:"timeEvent,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "DroppedAnnotationsCount") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DroppedAnnotationsCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DroppedAnnotationsCount") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DroppedAnnotationsCount") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TimeEvents) MarshalJSON() ([]byte, error) { +func (s TimeEvents) MarshalJSON() ([]byte, error) { type NoMethod TimeEvents - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Trace: A trace describes how long it takes for an application to -// perform some +// Trace: A trace describes how long it takes for an application to perform +// some // operations. It consists of a set of spans, each representing // an operation and including time information and operation details. type Trace struct { // Name: The resource name of Trace in the // format - // `projects/PROJECT_ID/traces/TRACE_ID`. `TRACE_ID` is a unique - // identifier + // `projects/PROJECT_ID/traces/TRACE_ID`. `TRACE_ID` is a unique identifier // for a trace within a project and is a base16-encoded, // case-insensitive // string and is required to be 32 char long. Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Trace) MarshalJSON() ([]byte, error) { +func (s Trace) MarshalJSON() ([]byte, error) { type NoMethod Trace - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TruncatableString: Represents a string value that might be truncated. @@ -1103,39 +935,28 @@ type TruncatableString struct { // original string value. If 0 it // means that the string value was not truncated. TruncatedCharacterCount int64 `json:"truncatedCharacterCount,omitempty"` - - // Value: The truncated string value. E.g. for a string attribute this - // may have up to + // Value: The truncated string value. E.g. for a string attribute this may have + // up to // 256 bytes. Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "TruncatedCharacterCount") to unconditionally include in API - // requests. By default, fields with empty values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "TruncatedCharacterCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TruncatedCharacterCount") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TruncatedCharacterCount") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TruncatableString) MarshalJSON() ([]byte, error) { +func (s TruncatableString) MarshalJSON() ([]byte, error) { type NoMethod TruncatableString - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "tracing.projects.traces.batchWrite": - type ProjectsTracesBatchWriteCall struct { s *Service name string @@ -1145,15 +966,19 @@ type ProjectsTracesBatchWriteCall struct { header_ http.Header } -// BatchWrite: Sends new spans to Stackdriver Trace or updates existing -// traces. If the +// BatchWrite: Sends new spans to Stackdriver Trace or updates existing traces. +// If the // name of a trace that you send matches that of an existing trace, new // spans // are added to the existing trace. Attempt to update existing spans // results -// undefined behavior. If the name does not match, a new trace is -// created +// undefined behavior. If the name does not match, a new trace is created // with given set of spans. +// +// - name: Name of the project where the spans belong to. Format +// is +// +// `projects/PROJECT_ID`. func (r *ProjectsTracesService) BatchWrite(name string, batchwritespansrequest *BatchWriteSpansRequest) *ProjectsTracesBatchWriteCall { c := &ProjectsTracesBatchWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1162,23 +987,21 @@ func (r *ProjectsTracesService) BatchWrite(name string, batchwritespansrequest * } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsTracesBatchWriteCall) Fields(s ...googleapi.Field) *ProjectsTracesBatchWriteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsTracesBatchWriteCall) Context(ctx context.Context) *ProjectsTracesBatchWriteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsTracesBatchWriteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1187,18 +1010,12 @@ func (c *ProjectsTracesBatchWriteCall) Header() http.Header { } func (c *ProjectsTracesBatchWriteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchwritespansrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/traces:batchWrite") @@ -1211,16 +1028,14 @@ func (c *ProjectsTracesBatchWriteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tracing.projects.traces.batchWrite" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1228,17 +1043,17 @@ func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -1251,39 +1066,7 @@ func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty, return nil, err } return ret, nil - // { - // "description": "Sends new spans to Stackdriver Trace or updates existing traces. If the\nname of a trace that you send matches that of an existing trace, new spans\nare added to the existing trace. Attempt to update existing spans results\nundefined behavior. If the name does not match, a new trace is created\nwith given set of spans.", - // "flatPath": "v2/projects/{projectsId}/traces:batchWrite", - // "httpMethod": "POST", - // "id": "tracing.projects.traces.batchWrite", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Name of the project where the spans belong to. Format is\n`projects/PROJECT_ID`.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}/traces:batchWrite", - // "request": { - // "$ref": "BatchWriteSpansRequest" - // }, - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/trace.append" - // ] - // } - -} - -// method id "tracing.projects.traces.list": +} type ProjectsTracesListCall struct { s *Service @@ -1296,26 +1079,30 @@ type ProjectsTracesListCall struct { // List: Returns of a list of traces that match the specified filter // conditions. +// +// - parent: ID of the Cloud project where the trace data is stored which +// is +// +// `projects/PROJECT_ID`. func (r *ProjectsTracesService) List(parent string) *ProjectsTracesListCall { c := &ProjectsTracesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// EndTime sets the optional parameter "endTime": End of the time -// interval (inclusive) during which the trace data was +// EndTime sets the optional parameter "endTime": End of the time interval +// (inclusive) during which the trace data was // collected from the application. func (c *ProjectsTracesListCall) EndTime(endTime string) *ProjectsTracesListCall { c.urlParams_.Set("endTime", endTime) return c } -// Filter sets the optional parameter "filter": An optional filter for -// the request. +// Filter sets the optional parameter "filter": An optional filter for the +// request. // Example: // `version_label_key:a some_label:some_label_key` -// returns traces from version `a` and has `some_label` with -// `some_label_key`. +// returns traces from version `a` and has `some_label` with `some_label_key`. func (c *ProjectsTracesListCall) Filter(filter string) *ProjectsTracesListCall { c.urlParams_.Set("filter", filter) return c @@ -1325,17 +1112,13 @@ func (c *ProjectsTracesListCall) Filter(filter string) *ProjectsTracesListCall { // returned traces. // Can be one of the following: // -// * `trace_id` -// * `name` (`name` field of root span in the trace) -// * `duration` (difference between `end_time` and `start_time` fields -// of -// -// the root span) -// -// * `start` (`start_time` field of the root span) +// - `trace_id` +// - `name` (`name` field of root span in the trace) +// - `duration` (difference between `end_time` and `start_time` fields of +// the root span) +// - `start` (`start_time` field of the root span) // -// Descending order can be specified by appending `desc` to the sort -// field +// Descending order can be specified by appending `desc` to the sort field // (for example, `name desc`). // // Only one sort field is permitted. @@ -1344,18 +1127,17 @@ func (c *ProjectsTracesListCall) OrderBy(orderBy string) *ProjectsTracesListCall return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// traces to return. If not specified or <= 0, the -// implementation selects a reasonable value. The implementation -// may +// PageSize sets the optional parameter "pageSize": Maximum number of traces to +// return. If not specified or <= 0, the +// implementation selects a reasonable value. The implementation may // return fewer traces than the requested page size. func (c *ProjectsTracesListCall) PageSize(pageSize int64) *ProjectsTracesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token identifying -// the page of results to return. If provided, use the +// PageToken sets the optional parameter "pageToken": Token identifying the +// page of results to return. If provided, use the // value of the `next_page_token` field from a previous request. func (c *ProjectsTracesListCall) PageToken(pageToken string) *ProjectsTracesListCall { c.urlParams_.Set("pageToken", pageToken) @@ -1371,33 +1153,29 @@ func (c *ProjectsTracesListCall) StartTime(startTime string) *ProjectsTracesList } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsTracesListCall) Fields(s ...googleapi.Field) *ProjectsTracesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsTracesListCall) IfNoneMatch(entityTag string) *ProjectsTracesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsTracesListCall) Context(ctx context.Context) *ProjectsTracesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsTracesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1406,12 +1184,7 @@ func (c *ProjectsTracesListCall) Header() http.Header { } func (c *ProjectsTracesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1428,16 +1201,15 @@ func (c *ProjectsTracesListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tracing.projects.traces.list" call. -// Exactly one of *ListTracesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListTracesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListTracesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsTracesListCall) Do(opts ...googleapi.CallOption) (*ListTracesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1445,17 +1217,17 @@ func (c *ProjectsTracesListCall) Do(opts ...googleapi.CallOption) (*ListTracesRe if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListTracesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1468,66 +1240,6 @@ func (c *ProjectsTracesListCall) Do(opts ...googleapi.CallOption) (*ListTracesRe return nil, err } return ret, nil - // { - // "description": "Returns of a list of traces that match the specified filter conditions.", - // "flatPath": "v2/projects/{projectsId}/traces", - // "httpMethod": "GET", - // "id": "tracing.projects.traces.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "endTime": { - // "description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.", - // "format": "google-datetime", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "An optional filter for the request.\nExample:\n`version_label_key:a some_label:some_label_key`\nreturns traces from version `a` and has `some_label` with `some_label_key`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Field used to sort the returned traces. Optional.\nCan be one of the following:\n\n* `trace_id`\n* `name` (`name` field of root span in the trace)\n* `duration` (difference between `end_time` and `start_time` fields of\n the root span)\n* `start` (`start_time` field of the root span)\n\nDescending order can be specified by appending `desc` to the sort field\n(for example, `name desc`).\n\nOnly one sort field is permitted.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum number of traces to return. If not specified or \u003c= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size. Optional.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Token identifying the page of results to return. If provided, use the\nvalue of the `next_page_token` field from a previous request. Optional.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "ID of the Cloud project where the trace data is stored which is\n`projects/PROJECT_ID`.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "startTime": { - // "description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.", - // "format": "google-datetime", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v2/{+parent}/traces", - // "response": { - // "$ref": "ListTracesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/trace.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1535,7 +1247,7 @@ func (c *ProjectsTracesListCall) Do(opts ...googleapi.CallOption) (*ListTracesRe // The provided context supersedes any context provided to the Context method. func (c *ProjectsTracesListCall) Pages(ctx context.Context, f func(*ListTracesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1551,8 +1263,6 @@ func (c *ProjectsTracesListCall) Pages(ctx context.Context, f func(*ListTracesRe } } -// method id "tracing.projects.traces.listSpans": - type ProjectsTracesListSpansCall struct { s *Service parent string @@ -1563,14 +1273,19 @@ type ProjectsTracesListSpansCall struct { } // ListSpans: Returns a list of spans within a trace. +// +// - parent: ID of the trace for which to list child spans. Format +// is +// +// `projects/PROJECT_ID/traces/TRACE_ID`. func (r *ProjectsTracesService) ListSpans(parent string) *ProjectsTracesListSpansCall { c := &ProjectsTracesListSpansCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageToken sets the optional parameter "pageToken": Token identifying -// the page of results to return. If provided, use the +// PageToken sets the optional parameter "pageToken": Token identifying the +// page of results to return. If provided, use the // value of the `nextPageToken` field from a previous request. func (c *ProjectsTracesListSpansCall) PageToken(pageToken string) *ProjectsTracesListSpansCall { c.urlParams_.Set("pageToken", pageToken) @@ -1578,33 +1293,29 @@ func (c *ProjectsTracesListSpansCall) PageToken(pageToken string) *ProjectsTrace } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsTracesListSpansCall) Fields(s ...googleapi.Field) *ProjectsTracesListSpansCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsTracesListSpansCall) IfNoneMatch(entityTag string) *ProjectsTracesListSpansCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsTracesListSpansCall) Context(ctx context.Context) *ProjectsTracesListSpansCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsTracesListSpansCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1613,12 +1324,7 @@ func (c *ProjectsTracesListSpansCall) Header() http.Header { } func (c *ProjectsTracesListSpansCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1635,16 +1341,15 @@ func (c *ProjectsTracesListSpansCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tracing.projects.traces.listSpans" call. -// Exactly one of *ListSpansResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListSpansResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListSpansResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsTracesListSpansCall) Do(opts ...googleapi.CallOption) (*ListSpansResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1652,17 +1357,17 @@ func (c *ProjectsTracesListSpansCall) Do(opts ...googleapi.CallOption) (*ListSpa if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListSpansResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1675,38 +1380,6 @@ func (c *ProjectsTracesListSpansCall) Do(opts ...googleapi.CallOption) (*ListSpa return nil, err } return ret, nil - // { - // "description": "Returns a list of spans within a trace.", - // "flatPath": "v2/projects/{projectsId}/traces/{tracesId}:listSpans", - // "httpMethod": "GET", - // "id": "tracing.projects.traces.listSpans", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageToken": { - // "description": "Token identifying the page of results to return. If provided, use the\nvalue of the `nextPageToken` field from a previous request. Optional.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "ID of the trace for which to list child spans. Format is\n`projects/PROJECT_ID/traces/TRACE_ID`.", - // "location": "path", - // "pattern": "^projects/[^/]+/traces/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+parent}:listSpans", - // "response": { - // "$ref": "ListSpansResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/trace.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1714,7 +1387,7 @@ func (c *ProjectsTracesListSpansCall) Do(opts ...googleapi.CallOption) (*ListSpa // The provided context supersedes any context provided to the Context method. func (c *ProjectsTracesListSpansCall) Pages(ctx context.Context, f func(*ListSpansResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1730,8 +1403,6 @@ func (c *ProjectsTracesListSpansCall) Pages(ctx context.Context, f func(*ListSpa } } -// method id "tracing.projects.traces.spans.create": - type ProjectsTracesSpansCreateCall struct { s *Service nameid string @@ -1742,6 +1413,19 @@ type ProjectsTracesSpansCreateCall struct { } // Create: Creates a new Span. +// +// - name: The resource name of Span in the +// format +// `projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID`. +// `TRACE_ID` is a unique identifier for a trace within a project and is +// a +// base16-encoded, case-insensitive string and is required to be 32 char +// long. +// `SPAN_ID` is a unique identifier for a span within a trace. It is a +// base 16-encoded, case-insensitive string of a 8-bytes array and is +// required +// +// to be 16 char long. func (r *ProjectsTracesSpansService) Create(nameid string, span *Span) *ProjectsTracesSpansCreateCall { c := &ProjectsTracesSpansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.nameid = nameid @@ -1750,23 +1434,21 @@ func (r *ProjectsTracesSpansService) Create(nameid string, span *Span) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsTracesSpansCreateCall) Fields(s ...googleapi.Field) *ProjectsTracesSpansCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsTracesSpansCreateCall) Context(ctx context.Context) *ProjectsTracesSpansCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsTracesSpansCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1775,18 +1457,12 @@ func (c *ProjectsTracesSpansCreateCall) Header() http.Header { } func (c *ProjectsTracesSpansCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.span) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") @@ -1799,16 +1475,14 @@ func (c *ProjectsTracesSpansCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "tracing.projects.traces.spans.create" call. -// Exactly one of *Span or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Span.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsTracesSpansCreateCall) Do(opts ...googleapi.CallOption) (*Span, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1816,17 +1490,17 @@ func (c *ProjectsTracesSpansCreateCall) Do(opts ...googleapi.CallOption) (*Span, if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Span{ ServerResponse: googleapi.ServerResponse{ @@ -1839,34 +1513,4 @@ func (c *ProjectsTracesSpansCreateCall) Do(opts ...googleapi.CallOption) (*Span, return nil, err } return ret, nil - // { - // "description": "Creates a new Span.", - // "flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}", - // "httpMethod": "PUT", - // "id": "tracing.projects.traces.spans.create", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The resource name of Span in the format\n`projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID`.\n`TRACE_ID` is a unique identifier for a trace within a project and is a\nbase16-encoded, case-insensitive string and is required to be 32 char long.\n`SPAN_ID` is a unique identifier for a span within a trace. It is a\nbase 16-encoded, case-insensitive string of a 8-bytes array and is required\nto be 16 char long.", - // "location": "path", - // "pattern": "^projects/[^/]+/traces/[^/]+/spans/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+name}", - // "request": { - // "$ref": "Span" - // }, - // "response": { - // "$ref": "Span" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/trace.append" - // ] - // } - } diff --git a/trafficdirector/v2/trafficdirector-gen.go b/trafficdirector/v2/trafficdirector-gen.go index ccc2a0ee4c4..a443e41acfe 100644 --- a/trafficdirector/v2/trafficdirector-gen.go +++ b/trafficdirector/v2/trafficdirector-gen.go @@ -1365,7 +1365,7 @@ func (c *DiscoveryClientStatusCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "trafficdirector.discovery.client_status" call. diff --git a/trafficdirector/v3/trafficdirector-gen.go b/trafficdirector/v3/trafficdirector-gen.go index 7a7f1ff518e..395602df46d 100644 --- a/trafficdirector/v3/trafficdirector-gen.go +++ b/trafficdirector/v3/trafficdirector-gen.go @@ -1790,7 +1790,7 @@ func (c *DiscoveryClientStatusCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "trafficdirector.discovery.client_status" call. diff --git a/transcoder/v1/transcoder-gen.go b/transcoder/v1/transcoder-gen.go index 0dbfe1fa24c..977460e9068 100644 --- a/transcoder/v1/transcoder-gen.go +++ b/transcoder/v1/transcoder-gen.go @@ -2299,7 +2299,7 @@ func (c *ProjectsLocationsJobTemplatesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobTemplates.create" call. @@ -2403,7 +2403,7 @@ func (c *ProjectsLocationsJobTemplatesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobTemplates.delete" call. @@ -2511,7 +2511,7 @@ func (c *ProjectsLocationsJobTemplatesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobTemplates.get" call. @@ -2647,7 +2647,7 @@ func (c *ProjectsLocationsJobTemplatesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobTemplates.list" call. @@ -2771,7 +2771,7 @@ func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobs.create" call. @@ -2875,7 +2875,7 @@ func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobs.delete" call. @@ -2983,7 +2983,7 @@ func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobs.get" call. @@ -3118,7 +3118,7 @@ func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobs.list" call. diff --git a/transcoder/v1beta1/transcoder-gen.go b/transcoder/v1beta1/transcoder-gen.go index 4437051bd1e..a242dbde68d 100644 --- a/transcoder/v1beta1/transcoder-gen.go +++ b/transcoder/v1beta1/transcoder-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://cloud.google.com/transcoder/docs/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // transcoderService, err := transcoder.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // transcoderService, err := transcoder.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // transcoderService, err := transcoder.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package transcoder // import "google.golang.org/api/transcoder/v1beta1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,29 +84,33 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "transcoder:v1beta1" const apiName = "transcoder" const apiVersion = "v1beta1" const basePath = "https://transcoder.googleapis.com/" +const basePathTemplate = "https://transcoder.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://transcoder.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. + // See, edit, configure, and delete your Google Cloud data and see the email + // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" ) // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/cloud-platform", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -183,135 +201,105 @@ type ProjectsLocationsJobsService struct { // AdBreak: Ad break. type AdBreak struct { - // StartTimeOffset: Start time in seconds for the ad break, relative to - // the output file timeline. The default is `0s`. + // StartTimeOffset: Start time in seconds for the ad break, relative to the + // output file timeline. The default is `0s`. StartTimeOffset string `json:"startTimeOffset,omitempty"` - // ForceSendFields is a list of field names (e.g. "StartTimeOffset") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StartTimeOffset") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "StartTimeOffset") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AdBreak) MarshalJSON() ([]byte, error) { +func (s AdBreak) MarshalJSON() ([]byte, error) { type NoMethod AdBreak - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Aes128Encryption: Configuration for AES-128 encryption. type Aes128Encryption struct { - // KeyUri: Required. URI of the key delivery service. This URI is - // inserted into the M3U8 header. + // KeyUri: Required. URI of the key delivery service. This URI is inserted into + // the M3U8 header. KeyUri string `json:"keyUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "KeyUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "KeyUri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "KeyUri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Aes128Encryption) MarshalJSON() ([]byte, error) { +func (s Aes128Encryption) MarshalJSON() ([]byte, error) { type NoMethod Aes128Encryption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Animation: Animation types. type Animation struct { // AnimationEnd: End previous animation. AnimationEnd *AnimationEnd `json:"animationEnd,omitempty"` - // AnimationFade: Display overlay object with fade animation. AnimationFade *AnimationFade `json:"animationFade,omitempty"` - // AnimationStatic: Display static overlay object. AnimationStatic *AnimationStatic `json:"animationStatic,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnimationEnd") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AnimationEnd") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AnimationEnd") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Animation) MarshalJSON() ([]byte, error) { +func (s Animation) MarshalJSON() ([]byte, error) { type NoMethod Animation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnimationEnd: End previous overlay animation from the video. Without -// AnimationEnd, the overlay object will keep the state of previous -// animation until the end of the video. +// AnimationEnd, the overlay object will keep the state of previous animation +// until the end of the video. type AnimationEnd struct { - // StartTimeOffset: The time to end overlay object, in seconds. Default: - // 0 + // StartTimeOffset: The time to end overlay object, in seconds. Default: 0 StartTimeOffset string `json:"startTimeOffset,omitempty"` - // ForceSendFields is a list of field names (e.g. "StartTimeOffset") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StartTimeOffset") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "StartTimeOffset") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnimationEnd) MarshalJSON() ([]byte, error) { +func (s AnimationEnd) MarshalJSON() ([]byte, error) { type NoMethod AnimationEnd - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnimationFade: Display overlay object with fade animation. type AnimationFade struct { - // EndTimeOffset: The time to end the fade animation, in seconds. - // Default: `start_time_offset` + 1s + // EndTimeOffset: The time to end the fade animation, in seconds. Default: + // `start_time_offset` + 1s EndTimeOffset string `json:"endTimeOffset,omitempty"` - // FadeType: Required. Type of fade animation: `FADE_IN` or `FADE_OUT`. // // Possible values: @@ -319,39 +307,30 @@ type AnimationFade struct { // "FADE_IN" - Fade the overlay object into view. // "FADE_OUT" - Fade the overlay object out of view. FadeType string `json:"fadeType,omitempty"` - - // StartTimeOffset: The time to start the fade animation, in seconds. - // Default: 0 + // StartTimeOffset: The time to start the fade animation, in seconds. Default: + // 0 StartTimeOffset string `json:"startTimeOffset,omitempty"` - - // Xy: Normalized coordinates based on output video resolution. Valid - // values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the - // overlay object. For example, use the x and y coordinates {0,0} to - // position the top-left corner of the overlay animation in the top-left - // corner of the output video. + // Xy: Normalized coordinates based on output video resolution. Valid values: + // `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay object. For + // example, use the x and y coordinates {0,0} to position the top-left corner + // of the overlay animation in the top-left corner of the output video. Xy *NormalizedCoordinate `json:"xy,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndTimeOffset") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTimeOffset") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTimeOffset") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnimationFade) MarshalJSON() ([]byte, error) { +func (s AnimationFade) MarshalJSON() ([]byte, error) { type NoMethod AnimationFade - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AnimationStatic: Display static overlay object. @@ -359,36 +338,27 @@ type AnimationStatic struct { // StartTimeOffset: The time to start displaying the overlay object, in // seconds. Default: 0 StartTimeOffset string `json:"startTimeOffset,omitempty"` - - // Xy: Normalized coordinates based on output video resolution. Valid - // values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the - // overlay object. For example, use the x and y coordinates {0,0} to - // position the top-left corner of the overlay animation in the top-left - // corner of the output video. + // Xy: Normalized coordinates based on output video resolution. Valid values: + // `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay object. For + // example, use the x and y coordinates {0,0} to position the top-left corner + // of the overlay animation in the top-left corner of the output video. Xy *NormalizedCoordinate `json:"xy,omitempty"` - // ForceSendFields is a list of field names (e.g. "StartTimeOffset") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StartTimeOffset") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "StartTimeOffset") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnimationStatic) MarshalJSON() ([]byte, error) { +func (s AnimationStatic) MarshalJSON() ([]byte, error) { type NoMethod AnimationStatic - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Audio: Audio preprocessing configuration. @@ -396,42 +366,32 @@ type Audio struct { // HighBoost: Enable boosting high frequency components. The default is // `false`. HighBoost bool `json:"highBoost,omitempty"` - - // LowBoost: Enable boosting low frequency components. The default is - // `false`. + // LowBoost: Enable boosting low frequency components. The default is `false`. LowBoost bool `json:"lowBoost,omitempty"` - - // Lufs: Specify audio loudness normalization in loudness units relative - // to full scale (LUFS). Enter a value between -24 and 0 (the default), - // where: * -24 is the Advanced Television Systems Committee (ATSC A/85) - // standard * -23 is the EU R128 broadcast standard * -19 is the prior - // standard for online mono audio * -18 is the ReplayGain standard * -16 - // is the prior standard for stereo audio * -14 is the new online audio - // standard recommended by Spotify, as well as Amazon Echo * 0 disables - // normalization + // Lufs: Specify audio loudness normalization in loudness units relative to + // full scale (LUFS). Enter a value between -24 and 0 (the default), where: * + // -24 is the Advanced Television Systems Committee (ATSC A/85) standard * -23 + // is the EU R128 broadcast standard * -19 is the prior standard for online + // mono audio * -18 is the ReplayGain standard * -16 is the prior standard for + // stereo audio * -14 is the new online audio standard recommended by Spotify, + // as well as Amazon Echo * 0 disables normalization Lufs float64 `json:"lufs,omitempty"` - // ForceSendFields is a list of field names (e.g. "HighBoost") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HighBoost") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "HighBoost") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Audio) MarshalJSON() ([]byte, error) { +func (s Audio) MarshalJSON() ([]byte, error) { type NoMethod Audio - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Audio) UnmarshalJSON(data []byte) error { @@ -454,100 +414,77 @@ type AudioAtom struct { // Channels: List of `Channel`s for this audio stream. for in-depth // explanation. Channels []*AudioChannel `json:"channels,omitempty"` - - // Key: Required. The `EditAtom.key` that references the atom with audio - // inputs in the `Job.edit_list`. + // Key: Required. The `EditAtom.key` that references the atom with audio inputs + // in the `Job.edit_list`. Key string `json:"key,omitempty"` - // ForceSendFields is a list of field names (e.g. "Channels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Channels") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Channels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudioAtom) MarshalJSON() ([]byte, error) { +func (s AudioAtom) MarshalJSON() ([]byte, error) { type NoMethod AudioAtom - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AudioChannel: The audio channel. type AudioChannel struct { // Inputs: List of `Job.inputs` for this audio channel. Inputs []*AudioChannelInput `json:"inputs,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Inputs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Inputs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Inputs") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudioChannel) MarshalJSON() ([]byte, error) { +func (s AudioChannel) MarshalJSON() ([]byte, error) { type NoMethod AudioChannel - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AudioChannelInput: Identifies which input file, track, and channel -// should be used. +// AudioChannelInput: Identifies which input file, track, and channel should be +// used. type AudioChannelInput struct { - // Channel: Required. The zero-based index of the channel in the input - // file. + // Channel: Required. The zero-based index of the channel in the input file. Channel int64 `json:"channel,omitempty"` - // GainDb: Audio volume control in dB. Negative values decrease volume, // positive values increase. The default is 0. GainDb float64 `json:"gainDb,omitempty"` - // Key: Required. The `Input.key` that identifies the input file. Key string `json:"key,omitempty"` - // Track: Required. The zero-based index of the track in the input file. Track int64 `json:"track,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Channel") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Channel") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Channel") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Channel") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudioChannelInput) MarshalJSON() ([]byte, error) { +func (s AudioChannelInput) MarshalJSON() ([]byte, error) { type NoMethod AudioChannelInput - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *AudioChannelInput) UnmarshalJSON(data []byte) error { @@ -566,96 +503,75 @@ func (s *AudioChannelInput) UnmarshalJSON(data []byte) error { // AudioStream: Audio stream resource. type AudioStream struct { - // BitrateBps: Required. Audio bitrate in bits per second. Must be - // between 1 and 10,000,000. + // BitrateBps: Required. Audio bitrate in bits per second. Must be between 1 + // and 10,000,000. BitrateBps int64 `json:"bitrateBps,omitempty"` - - // ChannelCount: Number of audio channels. Must be between 1 and 6. The - // default is 2. + // ChannelCount: Number of audio channels. Must be between 1 and 6. The default + // is 2. ChannelCount int64 `json:"channelCount,omitempty"` - // ChannelLayout: A list of channel names specifying layout of the audio - // channels. This only affects the metadata embedded in the container - // headers, if supported by the specified format. The default is `["fl", - // "fr"]`. Supported channel names: - 'fl' - Front left channel - 'fr' - - // Front right channel - 'sl' - Side left channel - 'sr' - Side right - // channel - 'fc' - Front center channel - 'lfe' - Low frequency + // channels. This only affects the metadata embedded in the container headers, + // if supported by the specified format. The default is `["fl", "fr"]`. + // Supported channel names: - 'fl' - Front left channel - 'fr' - Front right + // channel - 'sl' - Side left channel - 'sr' - Side right channel - 'fc' - + // Front center channel - 'lfe' - Low frequency ChannelLayout []string `json:"channelLayout,omitempty"` - - // Codec: The codec for this audio stream. The default is "aac". - // Supported audio codecs: - 'aac' - 'aac-he' - 'aac-he-v2' - 'mp3' - - // 'ac3' - 'eac3' + // Codec: The codec for this audio stream. The default is "aac". Supported + // audio codecs: - 'aac' - 'aac-he' - 'aac-he-v2' - 'mp3' - 'ac3' - 'eac3' Codec string `json:"codec,omitempty"` - // Mapping: The mapping for the `Job.edit_list` atoms with audio // `EditAtom.inputs`. Mapping []*AudioAtom `json:"mapping,omitempty"` - - // SampleRateHertz: The audio sample rate in Hertz. The default is 48000 - // Hertz. + // SampleRateHertz: The audio sample rate in Hertz. The default is 48000 Hertz. SampleRateHertz int64 `json:"sampleRateHertz,omitempty"` - // ForceSendFields is a list of field names (e.g. "BitrateBps") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BitrateBps") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BitrateBps") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AudioStream) MarshalJSON() ([]byte, error) { +func (s AudioStream) MarshalJSON() ([]byte, error) { type NoMethod AudioStream - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Color: Color preprocessing configuration. type Color struct { - // Brightness: Control brightness of the video. Enter a value between -1 - // and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 - // is no change. The default is 0. + // Brightness: Control brightness of the video. Enter a value between -1 and 1, + // where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. + // The default is 0. Brightness float64 `json:"brightness,omitempty"` - - // Contrast: Control black and white contrast of the video. Enter a - // value between -1 and 1, where -1 is minimum contrast and 1 is maximum - // contrast. 0 is no change. The default is 0. + // Contrast: Control black and white contrast of the video. Enter a value + // between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 + // is no change. The default is 0. Contrast float64 `json:"contrast,omitempty"` - - // Saturation: Control color saturation of the video. Enter a value - // between -1 and 1, where -1 is fully desaturated and 1 is maximum - // saturation. 0 is no change. The default is 0. + // Saturation: Control color saturation of the video. Enter a value between -1 + // and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no + // change. The default is 0. Saturation float64 `json:"saturation,omitempty"` - // ForceSendFields is a list of field names (e.g. "Brightness") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Brightness") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Brightness") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Color) MarshalJSON() ([]byte, error) { +func (s Color) MarshalJSON() ([]byte, error) { type NoMethod Color - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Color) UnmarshalJSON(data []byte) error { @@ -676,79 +592,60 @@ func (s *Color) UnmarshalJSON(data []byte) error { return nil } -// Crop: Video cropping configuration for the input video. The cropped -// input video is scaled to match the output resolution. +// Crop: Video cropping configuration for the input video. The cropped input +// video is scaled to match the output resolution. type Crop struct { - // BottomPixels: The number of pixels to crop from the bottom. The - // default is 0. + // BottomPixels: The number of pixels to crop from the bottom. The default is + // 0. BottomPixels int64 `json:"bottomPixels,omitempty"` - - // LeftPixels: The number of pixels to crop from the left. The default - // is 0. + // LeftPixels: The number of pixels to crop from the left. The default is 0. LeftPixels int64 `json:"leftPixels,omitempty"` - - // RightPixels: The number of pixels to crop from the right. The default - // is 0. + // RightPixels: The number of pixels to crop from the right. The default is 0. RightPixels int64 `json:"rightPixels,omitempty"` - - // TopPixels: The number of pixels to crop from the top. The default is - // 0. + // TopPixels: The number of pixels to crop from the top. The default is 0. TopPixels int64 `json:"topPixels,omitempty"` - // ForceSendFields is a list of field names (e.g. "BottomPixels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BottomPixels") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BottomPixels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Crop) MarshalJSON() ([]byte, error) { +func (s Crop) MarshalJSON() ([]byte, error) { type NoMethod Crop - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Deblock: Deblock preprocessing configuration. type Deblock struct { // Enabled: Enable deblocker. The default is `false`. Enabled bool `json:"enabled,omitempty"` - - // Strength: Set strength of the deblocker. Enter a value between 0 and - // 1. The higher the value, the stronger the block removal. 0 is no - // deblocking. The default is 0. + // Strength: Set strength of the deblocker. Enter a value between 0 and 1. The + // higher the value, the stronger the block removal. 0 is no deblocking. The + // default is 0. Strength float64 `json:"strength,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Deblock) MarshalJSON() ([]byte, error) { +func (s Deblock) MarshalJSON() ([]byte, error) { type NoMethod Deblock - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Deblock) UnmarshalJSON(data []byte) error { @@ -767,36 +664,29 @@ func (s *Deblock) UnmarshalJSON(data []byte) error { // Denoise: Denoise preprocessing configuration. type Denoise struct { - // Strength: Set strength of the denoise. Enter a value between 0 and 1. - // The higher the value, the smoother the image. 0 is no denoising. The - // default is 0. + // Strength: Set strength of the denoise. Enter a value between 0 and 1. The + // higher the value, the smoother the image. 0 is no denoising. The default is + // 0. Strength float64 `json:"strength,omitempty"` - - // Tune: Set the denoiser mode. The default is "standard". Supported - // denoiser modes: - 'standard' - 'grain' + // Tune: Set the denoiser mode. The default is "standard". Supported denoiser + // modes: - 'standard' - 'grain' Tune string `json:"tune,omitempty"` - // ForceSendFields is a list of field names (e.g. "Strength") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Strength") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Strength") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Denoise) MarshalJSON() ([]byte, error) { +func (s Denoise) MarshalJSON() ([]byte, error) { type NoMethod Denoise - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Denoise) UnmarshalJSON(data []byte) error { @@ -815,95 +705,75 @@ func (s *Denoise) UnmarshalJSON(data []byte) error { // EditAtom: Edit atom. type EditAtom struct { - // EndTimeOffset: End time in seconds for the atom, relative to the - // input file timeline. When `end_time_offset` is not specified, the - // `inputs` are used until the end of the atom. + // EndTimeOffset: End time in seconds for the atom, relative to the input file + // timeline. When `end_time_offset` is not specified, the `inputs` are used + // until the end of the atom. EndTimeOffset string `json:"endTimeOffset,omitempty"` - - // Inputs: List of `Input.key`s identifying files that should be used in - // this atom. The listed `inputs` must have the same timeline. + // Inputs: List of `Input.key`s identifying files that should be used in this + // atom. The listed `inputs` must have the same timeline. Inputs []string `json:"inputs,omitempty"` - - // Key: A unique key for this atom. Must be specified when using - // advanced mapping. + // Key: A unique key for this atom. Must be specified when using advanced + // mapping. Key string `json:"key,omitempty"` - - // StartTimeOffset: Start time in seconds for the atom, relative to the - // input file timeline. The default is `0s`. + // StartTimeOffset: Start time in seconds for the atom, relative to the input + // file timeline. The default is `0s`. StartTimeOffset string `json:"startTimeOffset,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndTimeOffset") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTimeOffset") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "EndTimeOffset") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *EditAtom) MarshalJSON() ([]byte, error) { +func (s EditAtom) MarshalJSON() ([]byte, error) { type NoMethod EditAtom - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ElementaryStream: Encoding of an input file such as an audio, video, -// or text track. Elementary streams must be packaged before mapping and -// sharing between different output formats. +// ElementaryStream: Encoding of an input file such as an audio, video, or text +// track. Elementary streams must be packaged before mapping and sharing +// between different output formats. type ElementaryStream struct { // AudioStream: Encoding of an audio stream. AudioStream *AudioStream `json:"audioStream,omitempty"` - // Key: A unique key for this elementary stream. Key string `json:"key,omitempty"` - - // TextStream: Encoding of a text stream. For example, closed captions - // or subtitles. + // TextStream: Encoding of a text stream. For example, closed captions or + // subtitles. TextStream *TextStream `json:"textStream,omitempty"` - // VideoStream: Encoding of a video stream. VideoStream *VideoStream `json:"videoStream,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudioStream") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AudioStream") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AudioStream") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ElementaryStream) MarshalJSON() ([]byte, error) { +func (s ElementaryStream) MarshalJSON() ([]byte, error) { type NoMethod ElementaryStream - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For -// instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON +// representation for `Empty` is empty JSON object `{}`. type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` } @@ -911,112 +781,85 @@ type Empty struct { type Encryption struct { // Aes128: Configuration for AES-128 encryption. Aes128 *Aes128Encryption `json:"aes128,omitempty"` - - // Iv: Required. 128 bit Initialization Vector (IV) represented as - // lowercase hexadecimal digits. - Iv string `json:"iv,omitempty"` - - // Key: Required. 128 bit encryption key represented as lowercase + // Iv: Required. 128 bit Initialization Vector (IV) represented as lowercase // hexadecimal digits. + Iv string `json:"iv,omitempty"` + // Key: Required. 128 bit encryption key represented as lowercase hexadecimal + // digits. Key string `json:"key,omitempty"` - // MpegCenc: Configuration for MPEG Common Encryption (MPEG-CENC). MpegCenc *MpegCommonEncryption `json:"mpegCenc,omitempty"` - // SampleAes: Configuration for SAMPLE-AES encryption. SampleAes *SampleAesEncryption `json:"sampleAes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Aes128") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Aes128") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Aes128") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Encryption) MarshalJSON() ([]byte, error) { +func (s Encryption) MarshalJSON() ([]byte, error) { type NoMethod Encryption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FailureDetail: Additional information about the reasons for the -// failure. +// FailureDetail: Additional information about the reasons for the failure. type FailureDetail struct { // Description: A description of the failure. Description string `json:"description,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FailureDetail) MarshalJSON() ([]byte, error) { +func (s FailureDetail) MarshalJSON() ([]byte, error) { type NoMethod FailureDetail - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Image: Overlaid jpeg image. type Image struct { - // Alpha: Target image opacity. Valid values are from `1.0` (solid, - // default) to `0.0` (transparent), exclusive. Set this to a value - // greater than `0.0`. + // Alpha: Target image opacity. Valid values are from `1.0` (solid, default) to + // `0.0` (transparent), exclusive. Set this to a value greater than `0.0`. Alpha float64 `json:"alpha,omitempty"` - - // Resolution: Normalized image resolution, based on output video - // resolution. Valid values: `0.0`–`1.0`. To respect the original - // image aspect ratio, set either `x` or `y` to `0.0`. To use the - // original image resolution, set both `x` and `y` to `0.0`. + // Resolution: Normalized image resolution, based on output video resolution. + // Valid values: `0.0`–`1.0`. To respect the original image aspect ratio, set + // either `x` or `y` to `0.0`. To use the original image resolution, set both + // `x` and `y` to `0.0`. Resolution *NormalizedCoordinate `json:"resolution,omitempty"` - // Uri: Required. URI of the JPEG image in Cloud Storage. For example, - // `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image - // type. + // `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Alpha") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Alpha") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Alpha") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Image) MarshalJSON() ([]byte, error) { +func (s Image) MarshalJSON() ([]byte, error) { type NoMethod Image - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Image) UnmarshalJSON(data []byte) error { @@ -1035,240 +878,181 @@ func (s *Image) UnmarshalJSON(data []byte) error { // Input: Input asset. type Input struct { - // Key: A unique key for this input. Must be specified when using - // advanced mapping and edit lists. + // Key: A unique key for this input. Must be specified when using advanced + // mapping and edit lists. Key string `json:"key,omitempty"` - // PreprocessingConfig: Preprocessing configurations. PreprocessingConfig *PreprocessingConfig `json:"preprocessingConfig,omitempty"` - - // Uri: URI of the media. Input files must be at least 5 seconds in - // duration and stored in Cloud Storage (for example, - // `gs://bucket/inputs/file.mp4`). If empty, the value will be populated - // from `Job.input_uri`. + // Uri: URI of the media. Input files must be at least 5 seconds in duration + // and stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). If + // empty, the value will be populated from `Job.input_uri`. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Input) MarshalJSON() ([]byte, error) { +func (s Input) MarshalJSON() ([]byte, error) { type NoMethod Input - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Job: Transcoding job resource. type Job struct { // Config: The configuration for this job. Config *JobConfig `json:"config,omitempty"` - // CreateTime: Output only. The time the job was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the transcoding finished. EndTime string `json:"endTime,omitempty"` - - // FailureDetails: Output only. List of failure details. This property - // may contain additional information about the failure when - // `failure_reason` is present. *Note*: This feature is not yet - // available. + // FailureDetails: Output only. List of failure details. This property may + // contain additional information about the failure when `failure_reason` is + // present. *Note*: This feature is not yet available. FailureDetails []*FailureDetail `json:"failureDetails,omitempty"` - - // FailureReason: Output only. A description of the reason for the - // failure. This property is always present when `state` is `FAILED`. + // FailureReason: Output only. A description of the reason for the failure. + // This property is always present when `state` is `FAILED`. FailureReason string `json:"failureReason,omitempty"` - - // InputUri: Input only. Specify the `input_uri` to populate empty `uri` - // fields in each element of `Job.config.inputs` or - // `JobTemplate.config.inputs` when using template. URI of the media. - // Input files must be at least 5 seconds in duration and stored in - // Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). + // InputUri: Input only. Specify the `input_uri` to populate empty `uri` fields + // in each element of `Job.config.inputs` or `JobTemplate.config.inputs` when + // using template. URI of the media. Input files must be at least 5 seconds in + // duration and stored in Cloud Storage (for example, + // `gs://bucket/inputs/file.mp4`). InputUri string `json:"inputUri,omitempty"` - // Name: The resource name of the job. Format: // `projects/{project}/locations/{location}/jobs/{job}` Name string `json:"name,omitempty"` - - // OriginUri: Output only. The origin URI. *Note*: This feature is not - // yet available. + // OriginUri: Output only. The origin URI. *Note*: This feature is not yet + // available. OriginUri *OriginUri `json:"originUri,omitempty"` - // OutputUri: Input only. Specify the `output_uri` to populate an empty // `Job.config.output.uri` or `JobTemplate.config.output.uri` when using // template. URI for the output file(s). For example, // `gs://my-bucket/outputs/`. OutputUri string `json:"outputUri,omitempty"` - - // Priority: Specify the priority of the job. Enter a value between 0 - // and 100, where 0 is the lowest priority and 100 is the highest - // priority. The default is 0. + // Priority: Specify the priority of the job. Enter a value between 0 and 100, + // where 0 is the lowest priority and 100 is the highest priority. The default + // is 0. Priority int64 `json:"priority,omitempty"` - - // Progress: Output only. Estimated fractional progress, from `0` to `1` - // for each step. *Note*: This feature is not yet available. + // Progress: Output only. Estimated fractional progress, from `0` to `1` for + // each step. *Note*: This feature is not yet available. Progress *Progress `json:"progress,omitempty"` - // StartTime: Output only. The time the transcoding started. StartTime string `json:"startTime,omitempty"` - // State: Output only. The current state of the job. // // Possible values: - // "PROCESSING_STATE_UNSPECIFIED" - The processing state is not - // specified. - // "PENDING" - The job is enqueued and will be picked up for - // processing soon. + // "PROCESSING_STATE_UNSPECIFIED" - The processing state is not specified. + // "PENDING" - The job is enqueued and will be picked up for processing soon. // "RUNNING" - The job is being processed. // "SUCCEEDED" - The job has been completed successfully. // "FAILED" - The job has failed. For additional information, see // `failure_reason` and `failure_details` State string `json:"state,omitempty"` - - // TemplateId: Input only. Specify the `template_id` to use for - // populating `Job.config`. The default is `preset/web-hd`. Preset - // Transcoder templates: - `preset/{preset_id}` - User defined - // JobTemplate: `{job_template_id}` + // TemplateId: Input only. Specify the `template_id` to use for populating + // `Job.config`. The default is `preset/web-hd`. Preset Transcoder templates: - + // `preset/{preset_id}` - User defined JobTemplate: `{job_template_id}` TemplateId string `json:"templateId,omitempty"` - // TtlAfterCompletionDays: Job time to live value in days, which will be - // effective after job completion. Job should be deleted automatically - // after the given TTL. Enter a value between 1 and 90. The default is - // 30. + // effective after job completion. Job should be deleted automatically after + // the given TTL. Enter a value between 1 and 90. The default is 30. TtlAfterCompletionDays int64 `json:"ttlAfterCompletionDays,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Job) MarshalJSON() ([]byte, error) { +func (s Job) MarshalJSON() ([]byte, error) { type NoMethod Job - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobConfig: Job configuration type JobConfig struct { - // AdBreaks: List of ad breaks. Specifies where to insert ad break tags - // in the output manifests. + // AdBreaks: List of ad breaks. Specifies where to insert ad break tags in the + // output manifests. AdBreaks []*AdBreak `json:"adBreaks,omitempty"` - // EditList: List of `Edit atom`s. Defines the ultimate timeline of the // resulting file or manifest. EditList []*EditAtom `json:"editList,omitempty"` - // ElementaryStreams: List of elementary streams. ElementaryStreams []*ElementaryStream `json:"elementaryStreams,omitempty"` - // Inputs: List of input assets stored in Cloud Storage. Inputs []*Input `json:"inputs,omitempty"` - // Manifests: List of output manifests. Manifests []*Manifest `json:"manifests,omitempty"` - // MuxStreams: List of multiplexing settings for output streams. MuxStreams []*MuxStream `json:"muxStreams,omitempty"` - // Output: Output configuration. Output *Output `json:"output,omitempty"` - - // Overlays: List of overlays on the output video, in descending - // Z-order. + // Overlays: List of overlays on the output video, in descending Z-order. Overlays []*Overlay `json:"overlays,omitempty"` - // PubsubDestination: Destination on Pub/Sub. PubsubDestination *PubsubDestination `json:"pubsubDestination,omitempty"` - // SpriteSheets: List of output sprite sheets. SpriteSheets []*SpriteSheet `json:"spriteSheets,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdBreaks") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AdBreaks") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdBreaks") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobConfig) MarshalJSON() ([]byte, error) { +func (s JobConfig) MarshalJSON() ([]byte, error) { type NoMethod JobConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // JobTemplate: Transcoding job template resource. type JobTemplate struct { // Config: The configuration for this template. Config *JobConfig `json:"config,omitempty"` - // Name: The resource name of the job template. Format: // `projects/{project}/locations/{location}/jobTemplates/{job_template}` Name string `json:"name,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *JobTemplate) MarshalJSON() ([]byte, error) { +func (s JobTemplate) MarshalJSON() ([]byte, error) { type NoMethod JobTemplate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListJobTemplatesResponse: Response message for @@ -1276,232 +1060,180 @@ func (s *JobTemplate) MarshalJSON() ([]byte, error) { type ListJobTemplatesResponse struct { // JobTemplates: List of job templates in the specified region. JobTemplates []*JobTemplate `json:"jobTemplates,omitempty"` - // NextPageToken: The pagination token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "JobTemplates") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "JobTemplates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "JobTemplates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListJobTemplatesResponse) MarshalJSON() ([]byte, error) { +func (s ListJobTemplatesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListJobTemplatesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListJobsResponse: Response message for `TranscoderService.ListJobs`. type ListJobsResponse struct { // Jobs: List of jobs in the specified region. Jobs []*Job `json:"jobs,omitempty"` - // NextPageToken: The pagination token. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Jobs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Jobs") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Jobs") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListJobsResponse) MarshalJSON() ([]byte, error) { +func (s ListJobsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListJobsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Manifest: Manifest configuration. type Manifest struct { - // FileName: The name of the generated file. The default is "manifest" - // with the extension suffix corresponding to the `Manifest.type`. + // FileName: The name of the generated file. The default is "manifest" with + // the extension suffix corresponding to the `Manifest.type`. FileName string `json:"fileName,omitempty"` - - // MuxStreams: Required. List of user given `MuxStream.key`s that should - // appear in this manifest. When `Manifest.type` is `HLS`, a media - // manifest with name `MuxStream.key` and `.m3u8` extension is generated - // for each element of the `Manifest.mux_streams`. + // MuxStreams: Required. List of user given `MuxStream.key`s that should appear + // in this manifest. When `Manifest.type` is `HLS`, a media manifest with name + // `MuxStream.key` and `.m3u8` extension is generated for each element of the + // `Manifest.mux_streams`. MuxStreams []string `json:"muxStreams,omitempty"` - // Type: Required. Type of the manifest, can be "HLS" or "DASH". // // Possible values: // "MANIFEST_TYPE_UNSPECIFIED" - The manifest type is not specified. - // "HLS" - Create "HLS" manifest. The corresponding file extension - // is ".m3u8". - // "DASH" - Create "DASH" manifest. The corresponding file extension - // is ".mpd". + // "HLS" - Create "HLS" manifest. The corresponding file extension is + // ".m3u8". + // "DASH" - Create "DASH" manifest. The corresponding file extension is + // ".mpd". Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FileName") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "FileName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Manifest) MarshalJSON() ([]byte, error) { +func (s Manifest) MarshalJSON() ([]byte, error) { type NoMethod Manifest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MpegCommonEncryption: Configuration for MPEG Common Encryption -// (MPEG-CENC). +// MpegCommonEncryption: Configuration for MPEG Common Encryption (MPEG-CENC). type MpegCommonEncryption struct { - // KeyId: Required. 128 bit Key ID represented as lowercase hexadecimal - // digits for use with common encryption. + // KeyId: Required. 128 bit Key ID represented as lowercase hexadecimal digits + // for use with common encryption. KeyId string `json:"keyId,omitempty"` - // Scheme: Required. Specify the encryption scheme. Supported encryption // schemes: - 'cenc' - 'cbcs' Scheme string `json:"scheme,omitempty"` - - // ForceSendFields is a list of field names (e.g. "KeyId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "KeyId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "KeyId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MpegCommonEncryption) MarshalJSON() ([]byte, error) { +func (s MpegCommonEncryption) MarshalJSON() ([]byte, error) { type NoMethod MpegCommonEncryption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MuxStream: Multiplexing settings for output stream. type MuxStream struct { - // Container: The container format. The default is "mp4" Supported - // container formats: - 'ts' - 'fmp4'- the corresponding file extension - // is ".m4s" - 'mp4' - 'vtt' + // Container: The container format. The default is "mp4" Supported container + // formats: - 'ts' - 'fmp4'- the corresponding file extension is ".m4s" - + // 'mp4' - 'vtt' Container string `json:"container,omitempty"` - - // ElementaryStreams: List of `ElementaryStream.key`s multiplexed in - // this stream. + // ElementaryStreams: List of `ElementaryStream.key`s multiplexed in this + // stream. ElementaryStreams []string `json:"elementaryStreams,omitempty"` - // Encryption: Encryption settings. Encryption *Encryption `json:"encryption,omitempty"` - - // FileName: The name of the generated file. The default is - // `MuxStream.key` with the extension suffix corresponding to the - // `MuxStream.container`. Individual segments also have an incremental - // 10-digit zero-padded suffix starting from 0 before the extension, - // such as "mux_stream0000000123.ts". + // FileName: The name of the generated file. The default is `MuxStream.key` + // with the extension suffix corresponding to the `MuxStream.container`. + // Individual segments also have an incremental 10-digit zero-padded suffix + // starting from 0 before the extension, such as "mux_stream0000000123.ts". FileName string `json:"fileName,omitempty"` - - // Key: A unique key for this multiplexed stream. HLS media manifests - // will be named `MuxStream.key` with the ".m3u8" extension suffix. + // Key: A unique key for this multiplexed stream. HLS media manifests will be + // named `MuxStream.key` with the ".m3u8" extension suffix. Key string `json:"key,omitempty"` - // SegmentSettings: Segment settings for "ts", "fmp4" and "vtt". SegmentSettings *SegmentSettings `json:"segmentSettings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Container") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Container") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Container") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *MuxStream) MarshalJSON() ([]byte, error) { +func (s MuxStream) MarshalJSON() ([]byte, error) { type NoMethod MuxStream - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NormalizedCoordinate: 2D normalized coordinates. Default: `{0.0, -// 0.0}` +// NormalizedCoordinate: 2D normalized coordinates. Default: `{0.0, 0.0}` type NormalizedCoordinate struct { // X: Normalized x coordinate. X float64 `json:"x,omitempty"` - // Y: Normalized y coordinate. Y float64 `json:"y,omitempty"` - - // ForceSendFields is a list of field names (e.g. "X") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "X") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "X") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "X") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NormalizedCoordinate) MarshalJSON() ([]byte, error) { +func (s NormalizedCoordinate) MarshalJSON() ([]byte, error) { type NoMethod NormalizedCoordinate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *NormalizedCoordinate) UnmarshalJSON(data []byte) error { @@ -1522,221 +1254,165 @@ func (s *NormalizedCoordinate) UnmarshalJSON(data []byte) error { // OriginUri: The origin URI. type OriginUri struct { - // Dash: Dash manifest URI. If multiple Dash manifests are created, only - // the first one is listed. + // Dash: Dash manifest URI. If multiple Dash manifests are created, only the + // first one is listed. Dash string `json:"dash,omitempty"` - - // Hls: HLS manifest URI per - // https://tools.ietf.org/html/rfc8216#section-4.3.4. If multiple HLS - // manifests are created, only the first one is listed. + // Hls: HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4. + // If multiple HLS manifests are created, only the first one is listed. Hls string `json:"hls,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Dash") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Dash") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dash") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dash") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OriginUri) MarshalJSON() ([]byte, error) { +func (s OriginUri) MarshalJSON() ([]byte, error) { type NoMethod OriginUri - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Output: Location of output file(s) in a Cloud Storage bucket. type Output struct { - // Uri: URI for the output file(s). For example, - // `gs://my-bucket/outputs/`. If empty the value is populated from - // `Job.output_uri`. + // Uri: URI for the output file(s). For example, `gs://my-bucket/outputs/`. If + // empty the value is populated from `Job.output_uri`. Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Uri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Output) MarshalJSON() ([]byte, error) { +func (s Output) MarshalJSON() ([]byte, error) { type NoMethod Output - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Overlay: Overlay configuration. type Overlay struct { - // Animations: List of Animations. The list should be chronological, - // without any time overlap. + // Animations: List of Animations. The list should be chronological, without + // any time overlap. Animations []*Animation `json:"animations,omitempty"` - // Image: Image overlay. Image *Image `json:"image,omitempty"` - // ForceSendFields is a list of field names (e.g. "Animations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Animations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Animations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Overlay) MarshalJSON() ([]byte, error) { +func (s Overlay) MarshalJSON() ([]byte, error) { type NoMethod Overlay - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Pad: Pad filter configuration for the input video. The padded input -// video is scaled after padding with black to match the output -// resolution. +// Pad: Pad filter configuration for the input video. The padded input video is +// scaled after padding with black to match the output resolution. type Pad struct { - // BottomPixels: The number of pixels to add to the bottom. The default - // is 0. + // BottomPixels: The number of pixels to add to the bottom. The default is 0. BottomPixels int64 `json:"bottomPixels,omitempty"` - - // LeftPixels: The number of pixels to add to the left. The default is - // 0. + // LeftPixels: The number of pixels to add to the left. The default is 0. LeftPixels int64 `json:"leftPixels,omitempty"` - - // RightPixels: The number of pixels to add to the right. The default is - // 0. + // RightPixels: The number of pixels to add to the right. The default is 0. RightPixels int64 `json:"rightPixels,omitempty"` - // TopPixels: The number of pixels to add to the top. The default is 0. TopPixels int64 `json:"topPixels,omitempty"` - // ForceSendFields is a list of field names (e.g. "BottomPixels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BottomPixels") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BottomPixels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Pad) MarshalJSON() ([]byte, error) { +func (s Pad) MarshalJSON() ([]byte, error) { type NoMethod Pad - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // PreprocessingConfig: Preprocessing configurations. type PreprocessingConfig struct { // Audio: Audio preprocessing configuration. Audio *Audio `json:"audio,omitempty"` - // Color: Color preprocessing configuration. Color *Color `json:"color,omitempty"` - // Crop: Specify the video cropping configuration. Crop *Crop `json:"crop,omitempty"` - // Deblock: Deblock preprocessing configuration. Deblock *Deblock `json:"deblock,omitempty"` - // Denoise: Denoise preprocessing configuration. Denoise *Denoise `json:"denoise,omitempty"` - // Pad: Specify the video pad filter configuration. Pad *Pad `json:"pad,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Audio") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Audio") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Audio") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PreprocessingConfig) MarshalJSON() ([]byte, error) { +func (s PreprocessingConfig) MarshalJSON() ([]byte, error) { type NoMethod PreprocessingConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Progress: Estimated fractional progress for each step, from `0` to -// `1`. +// Progress: Estimated fractional progress for each step, from `0` to `1`. type Progress struct { // Analyzed: Estimated fractional progress for `analyzing` step. Analyzed float64 `json:"analyzed,omitempty"` - // Encoded: Estimated fractional progress for `encoding` step. Encoded float64 `json:"encoded,omitempty"` - // Notified: Estimated fractional progress for `notifying` step. Notified float64 `json:"notified,omitempty"` - // Uploaded: Estimated fractional progress for `uploading` step. Uploaded float64 `json:"uploaded,omitempty"` - // ForceSendFields is a list of field names (e.g. "Analyzed") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Analyzed") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Analyzed") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Progress) MarshalJSON() ([]byte, error) { +func (s Progress) MarshalJSON() ([]byte, error) { type NoMethod Progress - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *Progress) UnmarshalJSON(data []byte) error { @@ -1761,424 +1437,330 @@ func (s *Progress) UnmarshalJSON(data []byte) error { // PubsubDestination: A Pub/Sub destination. type PubsubDestination struct { - // Topic: The name of the Pub/Sub topic to publish job completion - // notification to. For example: `projects/{project}/topics/{topic}`. + // Topic: The name of the Pub/Sub topic to publish job completion notification + // to. For example: `projects/{project}/topics/{topic}`. Topic string `json:"topic,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Topic") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Topic") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Topic") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *PubsubDestination) MarshalJSON() ([]byte, error) { +func (s PubsubDestination) MarshalJSON() ([]byte, error) { type NoMethod PubsubDestination - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SampleAesEncryption: Configuration for SAMPLE-AES encryption. type SampleAesEncryption struct { - // KeyUri: Required. URI of the key delivery service. This URI is - // inserted into the M3U8 header. + // KeyUri: Required. URI of the key delivery service. This URI is inserted into + // the M3U8 header. KeyUri string `json:"keyUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "KeyUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "KeyUri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "KeyUri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SampleAesEncryption) MarshalJSON() ([]byte, error) { +func (s SampleAesEncryption) MarshalJSON() ([]byte, error) { type NoMethod SampleAesEncryption - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SegmentSettings: Segment settings for "ts", "fmp4" and "vtt". type SegmentSettings struct { - // IndividualSegments: Required. Create an individual segment file. The - // default is `false`. + // IndividualSegments: Required. Create an individual segment file. The default + // is `false`. IndividualSegments bool `json:"individualSegments,omitempty"` - // SegmentDuration: Duration of the segments in seconds. The default is - // "6.0s". Note that `segmentDuration` must be greater than or equal - // to `gopDuration` (#videostream), and `segmentDuration` must be - // divisible by `gopDuration` (#videostream). + // "6.0s". Note that `segmentDuration` must be greater than or equal to + // `gopDuration` (#videostream), and `segmentDuration` must be divisible by + // `gopDuration` (#videostream). SegmentDuration string `json:"segmentDuration,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IndividualSegments") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "IndividualSegments") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IndividualSegments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "IndividualSegments") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SegmentSettings) MarshalJSON() ([]byte, error) { +func (s SegmentSettings) MarshalJSON() ([]byte, error) { type NoMethod SegmentSettings - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SpriteSheet: Sprite sheet configuration. type SpriteSheet struct { - // ColumnCount: The maximum number of sprites per row in a sprite sheet. - // The default is 0, which indicates no maximum limit. + // ColumnCount: The maximum number of sprites per row in a sprite sheet. The + // default is 0, which indicates no maximum limit. ColumnCount int64 `json:"columnCount,omitempty"` - - // EndTimeOffset: End time in seconds, relative to the output file - // timeline. When `end_time_offset` is not specified, the sprites are - // generated until the end of the output file. + // EndTimeOffset: End time in seconds, relative to the output file timeline. + // When `end_time_offset` is not specified, the sprites are generated until the + // end of the output file. EndTimeOffset string `json:"endTimeOffset,omitempty"` - - // FilePrefix: Required. File name prefix for the generated sprite - // sheets. Each sprite sheet has an incremental 10-digit zero-padded - // suffix starting from 0 before the extension, such as - // "sprite_sheet0000000123.jpeg". + // FilePrefix: Required. File name prefix for the generated sprite sheets. Each + // sprite sheet has an incremental 10-digit zero-padded suffix starting from 0 + // before the extension, such as "sprite_sheet0000000123.jpeg". FilePrefix string `json:"filePrefix,omitempty"` - - // Format: Format type. The default is "jpeg". Supported formats: - - // 'jpeg' + // Format: Format type. The default is "jpeg". Supported formats: - 'jpeg' Format string `json:"format,omitempty"` - - // Interval: Starting from `0s`, create sprites at regular intervals. - // Specify the interval value in seconds. + // Interval: Starting from `0s`, create sprites at regular intervals. Specify + // the interval value in seconds. Interval string `json:"interval,omitempty"` - - // Quality: The quality of the generated sprite sheet. Enter a value - // between 1 and 100, where 1 is the lowest quality and 100 is the - // highest quality. The default is 100. A high quality value corresponds - // to a low image data compression ratio. + // Quality: The quality of the generated sprite sheet. Enter a value between 1 + // and 100, where 1 is the lowest quality and 100 is the highest quality. The + // default is 100. A high quality value corresponds to a low image data + // compression ratio. Quality int64 `json:"quality,omitempty"` - - // RowCount: The maximum number of rows per sprite sheet. When the - // sprite sheet is full, a new sprite sheet is created. The default is - // 0, which indicates no maximum limit. + // RowCount: The maximum number of rows per sprite sheet. When the sprite sheet + // is full, a new sprite sheet is created. The default is 0, which indicates no + // maximum limit. RowCount int64 `json:"rowCount,omitempty"` - - // SpriteHeightPixels: Required. The height of sprite in pixels. Must be - // an even integer. To preserve the source aspect ratio, set the + // SpriteHeightPixels: Required. The height of sprite in pixels. Must be an + // even integer. To preserve the source aspect ratio, set the // SpriteSheet.sprite_height_pixels field or the // SpriteSheet.sprite_width_pixels field, but not both (the API will // automatically calculate the missing field). SpriteHeightPixels int64 `json:"spriteHeightPixels,omitempty"` - - // SpriteWidthPixels: Required. The width of sprite in pixels. Must be - // an even integer. To preserve the source aspect ratio, set the + // SpriteWidthPixels: Required. The width of sprite in pixels. Must be an even + // integer. To preserve the source aspect ratio, set the // SpriteSheet.sprite_width_pixels field or the // SpriteSheet.sprite_height_pixels field, but not both (the API will // automatically calculate the missing field). SpriteWidthPixels int64 `json:"spriteWidthPixels,omitempty"` - // StartTimeOffset: Start time in seconds, relative to the output file // timeline. Determines the first sprite to pick. The default is `0s`. StartTimeOffset string `json:"startTimeOffset,omitempty"` - - // TotalCount: Total number of sprites. Create the specified number of - // sprites distributed evenly across the timeline of the output media. - // The default is 100. + // TotalCount: Total number of sprites. Create the specified number of sprites + // distributed evenly across the timeline of the output media. The default is + // 100. TotalCount int64 `json:"totalCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "ColumnCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ColumnCount") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ColumnCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SpriteSheet) MarshalJSON() ([]byte, error) { +func (s SpriteSheet) MarshalJSON() ([]byte, error) { type NoMethod SpriteSheet - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TextAtom: The mapping for the `Job.edit_list` atoms with text // `EditAtom.inputs`. type TextAtom struct { - // Inputs: List of `Job.inputs` that should be embedded in this atom. - // Only one input is supported. + // Inputs: List of `Job.inputs` that should be embedded in this atom. Only one + // input is supported. Inputs []*TextInput `json:"inputs,omitempty"` - - // Key: Required. The `EditAtom.key` that references atom with text - // inputs in the `Job.edit_list`. + // Key: Required. The `EditAtom.key` that references atom with text inputs in + // the `Job.edit_list`. Key string `json:"key,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Inputs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Inputs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Inputs") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TextAtom) MarshalJSON() ([]byte, error) { +func (s TextAtom) MarshalJSON() ([]byte, error) { type NoMethod TextAtom - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TextInput: Identifies which input file and track should be used. type TextInput struct { // Key: Required. The `Input.key` that identifies the input file. Key string `json:"key,omitempty"` - // Track: Required. The zero-based index of the track in the input file. Track int64 `json:"track,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TextInput) MarshalJSON() ([]byte, error) { +func (s TextInput) MarshalJSON() ([]byte, error) { type NoMethod TextInput - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TextStream: Encoding of a text stream. For example, closed captions -// or subtitles. +// TextStream: Encoding of a text stream. For example, closed captions or +// subtitles. type TextStream struct { - // Codec: The codec for this text stream. The default is "webvtt". - // Supported text codecs: - 'srt' - 'ttml' - 'cea608' - 'cea708' - - // 'webvtt' + // Codec: The codec for this text stream. The default is "webvtt". Supported + // text codecs: - 'srt' - 'ttml' - 'cea608' - 'cea708' - 'webvtt' Codec string `json:"codec,omitempty"` - - // LanguageCode: Required. The BCP-47 language code, such as "en-US" - // or "sr-Latn". For more information, see + // LanguageCode: Required. The BCP-47 language code, such as "en-US" or + // "sr-Latn". For more information, see // https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. LanguageCode string `json:"languageCode,omitempty"` - // Mapping: The mapping for the `Job.edit_list` atoms with text // `EditAtom.inputs`. Mapping []*TextAtom `json:"mapping,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Codec") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Codec") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Codec") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TextStream) MarshalJSON() ([]byte, error) { +func (s TextStream) MarshalJSON() ([]byte, error) { type NoMethod TextStream - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VideoStream: Video stream resource. type VideoStream struct { - // AllowOpenGop: Specifies whether an open Group of Pictures (GOP) - // structure should be allowed or not. The default is `false`. + // AllowOpenGop: Specifies whether an open Group of Pictures (GOP) structure + // should be allowed or not. The default is `false`. AllowOpenGop bool `json:"allowOpenGop,omitempty"` - - // AqStrength: Specify the intensity of the adaptive quantizer (AQ). - // Must be between 0 and 1, where 0 disables the quantizer and 1 - // maximizes the quantizer. A higher value equals a lower bitrate but - // smoother image. The default is 0. + // AqStrength: Specify the intensity of the adaptive quantizer (AQ). Must be + // between 0 and 1, where 0 disables the quantizer and 1 maximizes the + // quantizer. A higher value equals a lower bitrate but smoother image. The + // default is 0. AqStrength float64 `json:"aqStrength,omitempty"` - - // BFrameCount: The number of consecutive B-frames. Must be greater than - // or equal to zero. Must be less than `VideoStream.gop_frame_count` if - // set. The default is 0. + // BFrameCount: The number of consecutive B-frames. Must be greater than or + // equal to zero. Must be less than `VideoStream.gop_frame_count` if set. The + // default is 0. BFrameCount int64 `json:"bFrameCount,omitempty"` - - // BPyramid: Allow B-pyramid for reference frame selection. This may not - // be supported on all decoders. The default is `false`. + // BPyramid: Allow B-pyramid for reference frame selection. This may not be + // supported on all decoders. The default is `false`. BPyramid bool `json:"bPyramid,omitempty"` - - // BitrateBps: Required. The video bitrate in bits per second. The - // minimum value is 1,000. The maximum value for H264/H265 is - // 800,000,000. The maximum value for VP9 is 480,000,000. + // BitrateBps: Required. The video bitrate in bits per second. The minimum + // value is 1,000. The maximum value for H264/H265 is 800,000,000. The maximum + // value for VP9 is 480,000,000. BitrateBps int64 `json:"bitrateBps,omitempty"` - - // Codec: Codec type. The following codecs are supported: * `h264` - // (default) * `h265` * `vp9` + // Codec: Codec type. The following codecs are supported: * `h264` (default) * + // `h265` * `vp9` Codec string `json:"codec,omitempty"` - - // CrfLevel: Target CRF level. Must be between 10 and 36, where 10 is - // the highest quality and 36 is the most efficient compression. The - // default is 21. + // CrfLevel: Target CRF level. Must be between 10 and 36, where 10 is the + // highest quality and 36 is the most efficient compression. The default is 21. CrfLevel int64 `json:"crfLevel,omitempty"` - // EnableTwoPass: Use two-pass encoding strategy to achieve better video - // quality. `VideoStream.rate_control_mode` must be "vbr". The default - // is `false`. + // quality. `VideoStream.rate_control_mode` must be "vbr". The default is + // `false`. EnableTwoPass bool `json:"enableTwoPass,omitempty"` - - // EntropyCoder: The entropy coder to use. The default is "cabac". - // Supported entropy coders: - 'cavlc' - 'cabac' + // EntropyCoder: The entropy coder to use. The default is "cabac". Supported + // entropy coders: - 'cavlc' - 'cabac' EntropyCoder string `json:"entropyCoder,omitempty"` - - // FrameRate: Required. The target video frame rate in frames per second - // (FPS). Must be less than or equal to 120. Will default to the input - // frame rate if larger than the input frame rate. The API will generate - // an output FPS that is divisible by the input FPS, and smaller or - // equal to the target FPS. See Calculate frame rate - // (https://cloud.google.com/transcoder/docs/concepts/frame-rate) for - // more information. + // FrameRate: Required. The target video frame rate in frames per second (FPS). + // Must be less than or equal to 120. Will default to the input frame rate if + // larger than the input frame rate. The API will generate an output FPS that + // is divisible by the input FPS, and smaller or equal to the target FPS. See + // Calculate frame rate + // (https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more + // information. FrameRate float64 `json:"frameRate,omitempty"` - // GopDuration: Select the GOP size based on the specified duration. The - // default is "3s". Note that `gopDuration` must be less than or equal - // to `segmentDuration` (#SegmentSettings), and `segmentDuration` + // default is "3s". Note that `gopDuration` must be less than or equal to + // `segmentDuration` (#SegmentSettings), and `segmentDuration` // (#SegmentSettings) must be divisible by `gopDuration`. GopDuration string `json:"gopDuration,omitempty"` - - // GopFrameCount: Select the GOP size based on the specified frame - // count. Must be greater than zero. + // GopFrameCount: Select the GOP size based on the specified frame count. Must + // be greater than zero. GopFrameCount int64 `json:"gopFrameCount,omitempty"` - - // HeightPixels: The height of the video in pixels. Must be an even - // integer. When not specified, the height is adjusted to match the - // specified width and input aspect ratio. If both are omitted, the - // input height is used. + // HeightPixels: The height of the video in pixels. Must be an even integer. + // When not specified, the height is adjusted to match the specified width and + // input aspect ratio. If both are omitted, the input height is used. HeightPixels int64 `json:"heightPixels,omitempty"` - - // PixelFormat: Pixel format to use. The default is "yuv420p". - // Supported pixel formats: - 'yuv420p' pixel format. - 'yuv422p' pixel - // format. - 'yuv444p' pixel format. - 'yuv420p10' 10-bit HDR pixel - // format. - 'yuv422p10' 10-bit HDR pixel format. - 'yuv444p10' 10-bit - // HDR pixel format. - 'yuv420p12' 12-bit HDR pixel format. - - // 'yuv422p12' 12-bit HDR pixel format. - 'yuv444p12' 12-bit HDR pixel - // format. + // PixelFormat: Pixel format to use. The default is "yuv420p". Supported + // pixel formats: - 'yuv420p' pixel format. - 'yuv422p' pixel format. - + // 'yuv444p' pixel format. - 'yuv420p10' 10-bit HDR pixel format. - 'yuv422p10' + // 10-bit HDR pixel format. - 'yuv444p10' 10-bit HDR pixel format. - + // 'yuv420p12' 12-bit HDR pixel format. - 'yuv422p12' 12-bit HDR pixel format. + // - 'yuv444p12' 12-bit HDR pixel format. PixelFormat string `json:"pixelFormat,omitempty"` - - // Preset: Enforces the specified codec preset. The default is - // `veryfast`. The available options are FFmpeg-compatible. Note that - // certain values for this field may cause the transcoder to override - // other fields you set in the `VideoStream` message. + // Preset: Enforces the specified codec preset. The default is `veryfast`. The + // available options are FFmpeg-compatible. Note that certain values for this + // field may cause the transcoder to override other fields you set in the + // `VideoStream` message. Preset string `json:"preset,omitempty"` - - // Profile: Enforces the specified codec profile. The following profiles - // are supported: * `baseline` * `main` * `high` (default) The available - // options are FFmpeg-compatible. Note that certain values for this - // field may cause the transcoder to override other fields you set in - // the `VideoStream` message. + // Profile: Enforces the specified codec profile. The following profiles are + // supported: * `baseline` * `main` * `high` (default) The available options + // are FFmpeg-compatible. Note that certain values for this field may cause the + // transcoder to override other fields you set in the `VideoStream` message. Profile string `json:"profile,omitempty"` - - // RateControlMode: Specify the `rate_control_mode`. The default is - // "vbr". Supported rate control modes: - 'vbr' - variable bitrate - - // 'crf' - constant rate factor + // RateControlMode: Specify the `rate_control_mode`. The default is "vbr". + // Supported rate control modes: - 'vbr' - variable bitrate - 'crf' - constant + // rate factor RateControlMode string `json:"rateControlMode,omitempty"` - // Tune: Enforces the specified codec tune. The available options are - // FFmpeg-compatible. Note that certain values for this field may cause - // the transcoder to override other fields you set in the `VideoStream` - // message. + // FFmpeg-compatible. Note that certain values for this field may cause the + // transcoder to override other fields you set in the `VideoStream` message. Tune string `json:"tune,omitempty"` - - // VbvFullnessBits: Initial fullness of the Video Buffering Verifier - // (VBV) buffer in bits. Must be greater than zero. The default is equal - // to 90% of `VideoStream.vbv_size_bits`. + // VbvFullnessBits: Initial fullness of the Video Buffering Verifier (VBV) + // buffer in bits. Must be greater than zero. The default is equal to 90% of + // `VideoStream.vbv_size_bits`. VbvFullnessBits int64 `json:"vbvFullnessBits,omitempty"` - - // VbvSizeBits: Size of the Video Buffering Verifier (VBV) buffer in - // bits. Must be greater than zero. The default is equal to - // `VideoStream.bitrate_bps`. + // VbvSizeBits: Size of the Video Buffering Verifier (VBV) buffer in bits. Must + // be greater than zero. The default is equal to `VideoStream.bitrate_bps`. VbvSizeBits int64 `json:"vbvSizeBits,omitempty"` - - // WidthPixels: The width of the video in pixels. Must be an even - // integer. When not specified, the width is adjusted to match the - // specified height and input aspect ratio. If both are omitted, the - // input width is used. + // WidthPixels: The width of the video in pixels. Must be an even integer. When + // not specified, the width is adjusted to match the specified height and input + // aspect ratio. If both are omitted, the input width is used. WidthPixels int64 `json:"widthPixels,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowOpenGop") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowOpenGop") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AllowOpenGop") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *VideoStream) MarshalJSON() ([]byte, error) { +func (s VideoStream) MarshalJSON() ([]byte, error) { type NoMethod VideoStream - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *VideoStream) UnmarshalJSON(data []byte) error { @@ -2197,8 +1779,6 @@ func (s *VideoStream) UnmarshalJSON(data []byte) error { return nil } -// method id "transcoder.projects.locations.jobTemplates.create": - type ProjectsLocationsJobTemplatesCreateCall struct { s *Service parent string @@ -2219,34 +1799,31 @@ func (r *ProjectsLocationsJobTemplatesService) Create(parent string, jobtemplate return c } -// JobTemplateId sets the optional parameter "jobTemplateId": Required. -// The ID to use for the job template, which will become the final -// component of the job template's resource name. This value should be -// 4-63 characters, and valid characters must match the regular -// expression `a-zA-Z*`. +// JobTemplateId sets the optional parameter "jobTemplateId": Required. The ID +// to use for the job template, which will become the final component of the +// job template's resource name. This value should be 4-63 characters, and +// valid characters must match the regular expression `a-zA-Z*`. func (c *ProjectsLocationsJobTemplatesCreateCall) JobTemplateId(jobTemplateId string) *ProjectsLocationsJobTemplatesCreateCall { c.urlParams_.Set("jobTemplateId", jobTemplateId) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsJobTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTemplatesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsJobTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsJobTemplatesCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsJobTemplatesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2255,18 +1832,12 @@ func (c *ProjectsLocationsJobTemplatesCreateCall) Header() http.Header { } func (c *ProjectsLocationsJobTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220125") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.jobtemplate) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/jobTemplates") @@ -2279,16 +1850,14 @@ func (c *ProjectsLocationsJobTemplatesCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobTemplates.create" call. -// Exactly one of *JobTemplate or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *JobTemplate.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *JobTemplate.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsJobTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*JobTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2296,17 +1865,17 @@ func (c *ProjectsLocationsJobTemplatesCreateCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &JobTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -2319,43 +1888,7 @@ func (c *ProjectsLocationsJobTemplatesCreateCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Creates a job template in the specified region.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates", - // "httpMethod": "POST", - // "id": "transcoder.projects.locations.jobTemplates.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "jobTemplateId": { - // "description": "Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the regular expression `a-zA-Z*`.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent location to create this job template. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/jobTemplates", - // "request": { - // "$ref": "JobTemplate" - // }, - // "response": { - // "$ref": "JobTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "transcoder.projects.locations.jobTemplates.delete": +} type ProjectsLocationsJobTemplatesDeleteCall struct { s *Service @@ -2368,8 +1901,7 @@ type ProjectsLocationsJobTemplatesDeleteCall struct { // Delete: Deletes a job template. // // - name: The name of the job template to delete. -// `projects/{project}/locations/{location}/jobTemplates/{job_template} -// `. +// `projects/{project}/locations/{location}/jobTemplates/{job_template}`. func (r *ProjectsLocationsJobTemplatesService) Delete(name string) *ProjectsLocationsJobTemplatesDeleteCall { c := &ProjectsLocationsJobTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2377,23 +1909,21 @@ func (r *ProjectsLocationsJobTemplatesService) Delete(name string) *ProjectsLoca } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsJobTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTemplatesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsJobTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsJobTemplatesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsJobTemplatesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2402,12 +1932,7 @@ func (c *ProjectsLocationsJobTemplatesDeleteCall) Header() http.Header { } func (c *ProjectsLocationsJobTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220125") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -2421,16 +1946,14 @@ func (c *ProjectsLocationsJobTemplatesDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobTemplates.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsJobTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2438,17 +1961,17 @@ func (c *ProjectsLocationsJobTemplatesDeleteCall) Do(opts ...googleapi.CallOptio if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -2461,35 +1984,7 @@ func (c *ProjectsLocationsJobTemplatesDeleteCall) Do(opts ...googleapi.CallOptio return nil, err } return ret, nil - // { - // "description": "Deletes a job template.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates/{jobTemplatesId}", - // "httpMethod": "DELETE", - // "id": "transcoder.projects.locations.jobTemplates.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the job template to delete. `projects/{project}/locations/{location}/jobTemplates/{job_template}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/jobTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "transcoder.projects.locations.jobTemplates.get": +} type ProjectsLocationsJobTemplatesGetCall struct { s *Service @@ -2503,8 +1998,7 @@ type ProjectsLocationsJobTemplatesGetCall struct { // Get: Returns the job template data. // // - name: The name of the job template to retrieve. Format: -// `projects/{project}/locations/{location}/jobTemplates/{job_template} -// `. +// `projects/{project}/locations/{location}/jobTemplates/{job_template}`. func (r *ProjectsLocationsJobTemplatesService) Get(name string) *ProjectsLocationsJobTemplatesGetCall { c := &ProjectsLocationsJobTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2512,33 +2006,29 @@ func (r *ProjectsLocationsJobTemplatesService) Get(name string) *ProjectsLocatio } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsJobTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTemplatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsJobTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobTemplatesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsJobTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsJobTemplatesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsJobTemplatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2547,12 +2037,7 @@ func (c *ProjectsLocationsJobTemplatesGetCall) Header() http.Header { } func (c *ProjectsLocationsJobTemplatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220125") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2569,16 +2054,14 @@ func (c *ProjectsLocationsJobTemplatesGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobTemplates.get" call. -// Exactly one of *JobTemplate or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *JobTemplate.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *JobTemplate.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsJobTemplatesGetCall) Do(opts ...googleapi.CallOption) (*JobTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2586,17 +2069,17 @@ func (c *ProjectsLocationsJobTemplatesGetCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &JobTemplate{ ServerResponse: googleapi.ServerResponse{ @@ -2609,35 +2092,7 @@ func (c *ProjectsLocationsJobTemplatesGetCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Returns the job template data.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates/{jobTemplatesId}", - // "httpMethod": "GET", - // "id": "transcoder.projects.locations.jobTemplates.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the job template to retrieve. Format: `projects/{project}/locations/{location}/jobTemplates/{job_template}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/jobTemplates/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "JobTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "transcoder.projects.locations.jobTemplates.list": +} type ProjectsLocationsJobTemplatesListCall struct { s *Service @@ -2650,57 +2105,52 @@ type ProjectsLocationsJobTemplatesListCall struct { // List: Lists job templates in the specified region. // -// - parent: The parent location from which to retrieve the collection -// of job templates. Format: `projects/{project}/locations/{location}`. +// - parent: The parent location from which to retrieve the collection of job +// templates. Format: `projects/{project}/locations/{location}`. func (r *ProjectsLocationsJobTemplatesService) List(parent string) *ProjectsLocationsJobTemplatesListCall { c := &ProjectsLocationsJobTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsLocationsJobTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsJobTemplatesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// `next_page_token` value returned from a previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": The `next_page_token` +// value returned from a previous List request, if any. func (c *ProjectsLocationsJobTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsJobTemplatesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsJobTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTemplatesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsJobTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobTemplatesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsJobTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsJobTemplatesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsJobTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2709,12 +2159,7 @@ func (c *ProjectsLocationsJobTemplatesListCall) Header() http.Header { } func (c *ProjectsLocationsJobTemplatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220125") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -2731,16 +2176,15 @@ func (c *ProjectsLocationsJobTemplatesListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobTemplates.list" call. -// Exactly one of *ListJobTemplatesResponse or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *ListJobTemplatesResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *ProjectsLocationsJobTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListJobTemplatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2748,17 +2192,17 @@ func (c *ProjectsLocationsJobTemplatesListCall) Do(opts ...googleapi.CallOption) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListJobTemplatesResponse{ ServerResponse: googleapi.ServerResponse{ @@ -2771,43 +2215,6 @@ func (c *ProjectsLocationsJobTemplatesListCall) Do(opts ...googleapi.CallOption) return nil, err } return ret, nil - // { - // "description": "Lists job templates in the specified region.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobTemplates", - // "httpMethod": "GET", - // "id": "transcoder.projects.locations.jobTemplates.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The `next_page_token` value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent location from which to retrieve the collection of job templates. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/jobTemplates", - // "response": { - // "$ref": "ListJobTemplatesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -2815,7 +2222,7 @@ func (c *ProjectsLocationsJobTemplatesListCall) Do(opts ...googleapi.CallOption) // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsJobTemplatesListCall) Pages(ctx context.Context, f func(*ListJobTemplatesResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -2831,8 +2238,6 @@ func (c *ProjectsLocationsJobTemplatesListCall) Pages(ctx context.Context, f fun } } -// method id "transcoder.projects.locations.jobs.create": - type ProjectsLocationsJobsCreateCall struct { s *Service parent string @@ -2854,23 +2259,21 @@ func (r *ProjectsLocationsJobsService) Create(parent string, job *Job) *Projects } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsJobsCreateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -2879,18 +2282,12 @@ func (c *ProjectsLocationsJobsCreateCall) Header() http.Header { } func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220125") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.job) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/jobs") @@ -2903,16 +2300,14 @@ func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobs.create" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsJobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -2920,17 +2315,17 @@ func (c *ProjectsLocationsJobsCreateCall) Do(opts ...googleapi.CallOption) (*Job if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -2943,38 +2338,7 @@ func (c *ProjectsLocationsJobsCreateCall) Do(opts ...googleapi.CallOption) (*Job return nil, err } return ret, nil - // { - // "description": "Creates a job in the specified region.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs", - // "httpMethod": "POST", - // "id": "transcoder.projects.locations.jobs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent location to create and process this job. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/jobs", - // "request": { - // "$ref": "Job" - // }, - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "transcoder.projects.locations.jobs.delete": +} type ProjectsLocationsJobsDeleteCall struct { s *Service @@ -2995,23 +2359,21 @@ func (r *ProjectsLocationsJobsService) Delete(name string) *ProjectsLocationsJob } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsJobsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3020,12 +2382,7 @@ func (c *ProjectsLocationsJobsDeleteCall) Header() http.Header { } func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220125") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -3039,16 +2396,14 @@ func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobs.delete" call. -// Exactly one of *Empty or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3056,17 +2411,17 @@ func (c *ProjectsLocationsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Emp if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Empty{ ServerResponse: googleapi.ServerResponse{ @@ -3079,35 +2434,7 @@ func (c *ProjectsLocationsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Emp return nil, err } return ret, nil - // { - // "description": "Deletes a job.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}", - // "httpMethod": "DELETE", - // "id": "transcoder.projects.locations.jobs.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the job to delete. Format: `projects/{project}/locations/{location}/jobs/{job}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Empty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "transcoder.projects.locations.jobs.get": +} type ProjectsLocationsJobsGetCall struct { s *Service @@ -3129,33 +2456,29 @@ func (r *ProjectsLocationsJobsService) Get(name string) *ProjectsLocationsJobsGe } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsJobsGetCall) Context(ctx context.Context) *ProjectsLocationsJobsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3164,12 +2487,7 @@ func (c *ProjectsLocationsJobsGetCall) Header() http.Header { } func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220125") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3186,16 +2504,14 @@ func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobs.get" call. -// Exactly one of *Job or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Job.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *ProjectsLocationsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3203,17 +2519,17 @@ func (c *ProjectsLocationsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Job{ ServerResponse: googleapi.ServerResponse{ @@ -3226,35 +2542,7 @@ func (c *ProjectsLocationsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, e return nil, err } return ret, nil - // { - // "description": "Returns the job data.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}", - // "httpMethod": "GET", - // "id": "transcoder.projects.locations.jobs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the job to retrieve. Format: `projects/{project}/locations/{location}/jobs/{job}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "Job" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "transcoder.projects.locations.jobs.list": +} type ProjectsLocationsJobsListCall struct { s *Service @@ -3274,49 +2562,44 @@ func (r *ProjectsLocationsJobsService) List(parent string) *ProjectsLocationsJob return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. func (c *ProjectsLocationsJobsListCall) PageSize(pageSize int64) *ProjectsLocationsJobsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The -// `next_page_token` value returned from a previous List request, if -// any. +// PageToken sets the optional parameter "pageToken": The `next_page_token` +// value returned from a previous List request, if any. func (c *ProjectsLocationsJobsListCall) PageToken(pageToken string) *ProjectsLocationsJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ProjectsLocationsJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ProjectsLocationsJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ProjectsLocationsJobsListCall) Context(ctx context.Context) *ProjectsLocationsJobsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ProjectsLocationsJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -3325,12 +2608,7 @@ func (c *ProjectsLocationsJobsListCall) Header() http.Header { } func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20220125") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -3347,16 +2625,15 @@ func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "transcoder.projects.locations.jobs.list" call. -// Exactly one of *ListJobsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListJobsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ListJobsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *ProjectsLocationsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -3364,17 +2641,17 @@ func (c *ProjectsLocationsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJ if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ListJobsResponse{ ServerResponse: googleapi.ServerResponse{ @@ -3387,43 +2664,6 @@ func (c *ProjectsLocationsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJ return nil, err } return ret, nil - // { - // "description": "Lists jobs in the specified region.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/jobs", - // "httpMethod": "GET", - // "id": "transcoder.projects.locations.jobs.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "pageSize": { - // "description": "The maximum number of items to return.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The `next_page_token` value returned from a previous List request, if any.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/jobs", - // "response": { - // "$ref": "ListJobsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - } // Pages invokes f for each page of results. @@ -3431,7 +2671,7 @@ func (c *ProjectsLocationsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJ // The provided context supersedes any context provided to the Context method. func (c *ProjectsLocationsJobsListCall) Pages(ctx context.Context, f func(*ListJobsResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { diff --git a/translate/v2/translate-gen.go b/translate/v2/translate-gen.go index f1ff75a4d81..0becbed797c 100644 --- a/translate/v2/translate-gen.go +++ b/translate/v2/translate-gen.go @@ -519,7 +519,7 @@ func (c *DetectionsDetectCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.detections.detect" call. @@ -628,7 +628,7 @@ func (c *DetectionsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.detections.list" call. @@ -746,7 +746,7 @@ func (c *LanguagesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.languages.list" call. @@ -899,7 +899,7 @@ func (c *TranslationsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.translations.list" call. @@ -996,7 +996,7 @@ func (c *TranslationsTranslateCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "language.translations.translate" call. diff --git a/translate/v3/translate-gen.go b/translate/v3/translate-gen.go index 304e754888e..e860d0cd193 100644 --- a/translate/v3/translate-gen.go +++ b/translate/v3/translate-gen.go @@ -2754,7 +2754,7 @@ func (c *ProjectsDetectLanguageCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.detectLanguage" call. @@ -2891,7 +2891,7 @@ func (c *ProjectsGetSupportedLanguagesCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.getSupportedLanguages" call. @@ -2998,7 +2998,7 @@ func (c *ProjectsRomanizeTextCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.romanizeText" call. @@ -3107,7 +3107,7 @@ func (c *ProjectsTranslateTextCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.translateText" call. @@ -3210,7 +3210,7 @@ func (c *ProjectsLocationsAdaptiveMtTranslateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtTranslate" call. @@ -3321,7 +3321,7 @@ func (c *ProjectsLocationsBatchTranslateDocumentCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.batchTranslateDocument" call. @@ -3431,7 +3431,7 @@ func (c *ProjectsLocationsBatchTranslateTextCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.batchTranslateText" call. @@ -3538,7 +3538,7 @@ func (c *ProjectsLocationsDetectLanguageCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.detectLanguage" call. @@ -3646,7 +3646,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.get" call. @@ -3782,7 +3782,7 @@ func (c *ProjectsLocationsGetSupportedLanguagesCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.getSupportedLanguages" call. @@ -3914,7 +3914,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.list" call. @@ -4042,7 +4042,7 @@ func (c *ProjectsLocationsRomanizeTextCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.romanizeText" call. @@ -4150,7 +4150,7 @@ func (c *ProjectsLocationsTranslateDocumentCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.translateDocument" call. @@ -4259,7 +4259,7 @@ func (c *ProjectsLocationsTranslateTextCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.translateText" call. @@ -4362,7 +4362,7 @@ func (c *ProjectsLocationsAdaptiveMtDatasetsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtDatasets.create" call. @@ -4461,7 +4461,7 @@ func (c *ProjectsLocationsAdaptiveMtDatasetsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtDatasets.delete" call. @@ -4570,7 +4570,7 @@ func (c *ProjectsLocationsAdaptiveMtDatasetsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtDatasets.get" call. @@ -4675,7 +4675,7 @@ func (c *ProjectsLocationsAdaptiveMtDatasetsImportAdaptiveMtFileCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtDatasets.importAdaptiveMtFile" call. @@ -4810,7 +4810,7 @@ func (c *ProjectsLocationsAdaptiveMtDatasetsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtDatasets.list" call. @@ -4929,7 +4929,7 @@ func (c *ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtFilesDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.delete" call. @@ -5038,7 +5038,7 @@ func (c *ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtFilesGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.get" call. @@ -5163,7 +5163,7 @@ func (c *ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtFilesListCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.list" call. @@ -5313,7 +5313,7 @@ func (c *ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtFilesAdaptiveMtSentencesLi googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.adaptiveMtSentences.list" call. @@ -5463,7 +5463,7 @@ func (c *ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtSentencesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.adaptiveMtDatasets.adaptiveMtSentences.list" call. @@ -5586,7 +5586,7 @@ func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.datasets.create" call. @@ -5681,7 +5681,7 @@ func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.datasets.delete" call. @@ -5784,7 +5784,7 @@ func (c *ProjectsLocationsDatasetsExportDataCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "dataset": c.dataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.datasets.exportData" call. @@ -5891,7 +5891,7 @@ func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.datasets.get" call. @@ -5994,7 +5994,7 @@ func (c *ProjectsLocationsDatasetsImportDataCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "dataset": c.dataset, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.datasets.importData" call. @@ -6117,7 +6117,7 @@ func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.datasets.list" call. @@ -6270,7 +6270,7 @@ func (c *ProjectsLocationsDatasetsExamplesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.datasets.examples.list" call. @@ -6394,7 +6394,7 @@ func (c *ProjectsLocationsGlossariesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.create" call. @@ -6490,7 +6490,7 @@ func (c *ProjectsLocationsGlossariesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.delete" call. @@ -6597,7 +6597,7 @@ func (c *ProjectsLocationsGlossariesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.get" call. @@ -6743,7 +6743,7 @@ func (c *ProjectsLocationsGlossariesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.list" call. @@ -6876,7 +6876,7 @@ func (c *ProjectsLocationsGlossariesPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.patch" call. @@ -6977,7 +6977,7 @@ func (c *ProjectsLocationsGlossariesGlossaryEntriesCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.glossaryEntries.create" call. @@ -7072,7 +7072,7 @@ func (c *ProjectsLocationsGlossariesGlossaryEntriesDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.glossaryEntries.delete" call. @@ -7179,7 +7179,7 @@ func (c *ProjectsLocationsGlossariesGlossaryEntriesGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.glossaryEntries.get" call. @@ -7304,7 +7304,7 @@ func (c *ProjectsLocationsGlossariesGlossaryEntriesListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.glossaryEntries.list" call. @@ -7428,7 +7428,7 @@ func (c *ProjectsLocationsGlossariesGlossaryEntriesPatchCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.glossaryEntries.patch" call. @@ -7530,7 +7530,7 @@ func (c *ProjectsLocationsModelsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.models.create" call. @@ -7625,7 +7625,7 @@ func (c *ProjectsLocationsModelsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.models.delete" call. @@ -7732,7 +7732,7 @@ func (c *ProjectsLocationsModelsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.models.get" call. @@ -7862,7 +7862,7 @@ func (c *ProjectsLocationsModelsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.models.list" call. @@ -7993,7 +7993,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.operations.cancel" call. @@ -8091,7 +8091,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.operations.delete" call. @@ -8200,7 +8200,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.operations.get" call. @@ -8328,7 +8328,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.operations.list" call. @@ -8459,7 +8459,7 @@ func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.operations.wait" call. diff --git a/translate/v3beta1/translate-gen.go b/translate/v3beta1/translate-gen.go index 9d0d9b20dc1..e7dfa93e69c 100644 --- a/translate/v3beta1/translate-gen.go +++ b/translate/v3beta1/translate-gen.go @@ -1560,7 +1560,7 @@ func (c *ProjectsDetectLanguageCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.detectLanguage" call. @@ -1697,7 +1697,7 @@ func (c *ProjectsGetSupportedLanguagesCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.getSupportedLanguages" call. @@ -1806,7 +1806,7 @@ func (c *ProjectsTranslateTextCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.translateText" call. @@ -1917,7 +1917,7 @@ func (c *ProjectsLocationsBatchTranslateDocumentCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.batchTranslateDocument" call. @@ -2027,7 +2027,7 @@ func (c *ProjectsLocationsBatchTranslateTextCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.batchTranslateText" call. @@ -2134,7 +2134,7 @@ func (c *ProjectsLocationsDetectLanguageCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.detectLanguage" call. @@ -2242,7 +2242,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.get" call. @@ -2378,7 +2378,7 @@ func (c *ProjectsLocationsGetSupportedLanguagesCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.getSupportedLanguages" call. @@ -2510,7 +2510,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.list" call. @@ -2638,7 +2638,7 @@ func (c *ProjectsLocationsTranslateDocumentCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.translateDocument" call. @@ -2747,7 +2747,7 @@ func (c *ProjectsLocationsTranslateTextCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.translateText" call. @@ -2850,7 +2850,7 @@ func (c *ProjectsLocationsGlossariesCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.create" call. @@ -2946,7 +2946,7 @@ func (c *ProjectsLocationsGlossariesDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.delete" call. @@ -3053,7 +3053,7 @@ func (c *ProjectsLocationsGlossariesGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.get" call. @@ -3199,7 +3199,7 @@ func (c *ProjectsLocationsGlossariesListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.glossaries.list" call. @@ -3330,7 +3330,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.operations.cancel" call. @@ -3428,7 +3428,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.operations.delete" call. @@ -3537,7 +3537,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.operations.get" call. @@ -3665,7 +3665,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.operations.list" call. @@ -3796,7 +3796,7 @@ func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "translate.projects.locations.operations.wait" call. diff --git a/travelimpactmodel/v1/travelimpactmodel-gen.go b/travelimpactmodel/v1/travelimpactmodel-gen.go index 305bf90b84e..cc843b77deb 100644 --- a/travelimpactmodel/v1/travelimpactmodel-gen.go +++ b/travelimpactmodel/v1/travelimpactmodel-gen.go @@ -441,7 +441,7 @@ func (c *FlightsComputeFlightEmissionsCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "travelimpactmodel.flights.computeFlightEmissions" call. diff --git a/urlshortener/v1/urlshortener-gen.go b/urlshortener/v1/urlshortener-gen.go index 92d7cbac1b9..e77170fe360 100644 --- a/urlshortener/v1/urlshortener-gen.go +++ b/urlshortener/v1/urlshortener-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/url-shortener/v1/getting_started // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // urlshortenerService, err := urlshortener.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // urlshortenerService, err := urlshortener.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // urlshortenerService, err := urlshortener.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package urlshortener // import "google.golang.org/api/urlshortener/v1" import ( @@ -50,8 +63,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -68,11 +83,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "urlshortener:v1" const apiName = "urlshortener" const apiVersion = "v1" const basePath = "https://www.googleapis.com/urlshortener/v1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/urlshortener/v1/" // OAuth2 scopes used by this API. const ( @@ -82,11 +100,14 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/urlshortener", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -140,223 +161,168 @@ type UrlService struct { } type AnalyticsSnapshot struct { - // Browsers: Top browsers, e.g. "Chrome"; sorted by (descending) click - // counts. Only present if this data is available. + // Browsers: Top browsers, e.g. "Chrome"; sorted by (descending) click counts. + // Only present if this data is available. Browsers []*StringCount `json:"browsers,omitempty"` - - // Countries: Top countries (expressed as country codes), e.g. "US" or - // "DE"; sorted by (descending) click counts. Only present if this data - // is available. + // Countries: Top countries (expressed as country codes), e.g. "US" or "DE"; + // sorted by (descending) click counts. Only present if this data is available. Countries []*StringCount `json:"countries,omitempty"` - - // LongUrlClicks: Number of clicks on all goo.gl short URLs pointing to - // this long URL. + // LongUrlClicks: Number of clicks on all goo.gl short URLs pointing to this + // long URL. LongUrlClicks int64 `json:"longUrlClicks,omitempty,string"` - - // Platforms: Top platforms or OSes, e.g. "Windows"; sorted by - // (descending) click counts. Only present if this data is available. + // Platforms: Top platforms or OSes, e.g. "Windows"; sorted by (descending) + // click counts. Only present if this data is available. Platforms []*StringCount `json:"platforms,omitempty"` - // Referrers: Top referring hosts, e.g. "www.google.com"; sorted by // (descending) click counts. Only present if this data is available. Referrers []*StringCount `json:"referrers,omitempty"` - // ShortUrlClicks: Number of clicks on this short URL. ShortUrlClicks int64 `json:"shortUrlClicks,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Browsers") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Browsers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Browsers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyticsSnapshot) MarshalJSON() ([]byte, error) { +func (s AnalyticsSnapshot) MarshalJSON() ([]byte, error) { type NoMethod AnalyticsSnapshot - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type AnalyticsSummary struct { // AllTime: Click analytics over all time. AllTime *AnalyticsSnapshot `json:"allTime,omitempty"` - // Day: Click analytics over the last day. Day *AnalyticsSnapshot `json:"day,omitempty"` - // Month: Click analytics over the last month. Month *AnalyticsSnapshot `json:"month,omitempty"` - // TwoHours: Click analytics over the last two hours. TwoHours *AnalyticsSnapshot `json:"twoHours,omitempty"` - // Week: Click analytics over the last week. Week *AnalyticsSnapshot `json:"week,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AllTime") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AllTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AllTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *AnalyticsSummary) MarshalJSON() ([]byte, error) { +func (s AnalyticsSummary) MarshalJSON() ([]byte, error) { type NoMethod AnalyticsSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type StringCount struct { - // Count: Number of clicks for this top entry, e.g. for this particular - // country or browser. + // Count: Number of clicks for this top entry, e.g. for this particular country + // or browser. Count int64 `json:"count,omitempty,string"` - // Id: Label assigned to this top entry, e.g. "US" or "Chrome". Id string `json:"id,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Count") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Count") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Count") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *StringCount) MarshalJSON() ([]byte, error) { +func (s StringCount) MarshalJSON() ([]byte, error) { type NoMethod StringCount - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Url struct { - // Analytics: A summary of the click analytics for the short and long - // URL. Might not be present if not requested or currently unavailable. + // Analytics: A summary of the click analytics for the short and long URL. + // Might not be present if not requested or currently unavailable. Analytics *AnalyticsSummary `json:"analytics,omitempty"` - - // Created: Time the short URL was created; ISO 8601 representation - // using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. - // "2010-10-14T19:01:24.944+00:00". + // Created: Time the short URL was created; ISO 8601 representation using the + // yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00". Created string `json:"created,omitempty"` - // Id: Short URL, e.g. "http://goo.gl/l6MS". Id string `json:"id,omitempty"` - // Kind: The fixed string "urlshortener#url". Kind string `json:"kind,omitempty"` - - // LongUrl: Long URL, e.g. "http://www.google.com/". Might not be - // present if the status is "REMOVED". + // LongUrl: Long URL, e.g. "http://www.google.com/". Might not be present if + // the status is "REMOVED". LongUrl string `json:"longUrl,omitempty"` - // Status: Status of the target URL. Possible values: "OK", "MALWARE", - // "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was - // flagged as spam, for example. + // "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged + // as spam, for example. Status string `json:"status,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Analytics") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Analytics") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Analytics") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Url) MarshalJSON() ([]byte, error) { +func (s Url) MarshalJSON() ([]byte, error) { type NoMethod Url - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type UrlHistory struct { // Items: A list of URL resources. Items []*Url `json:"items,omitempty"` - - // ItemsPerPage: Number of items returned with each full "page" of - // results. Note that the last page could have fewer items than the - // "itemsPerPage" value. + // ItemsPerPage: Number of items returned with each full "page" of results. + // Note that the last page could have fewer items than the "itemsPerPage" + // value. ItemsPerPage int64 `json:"itemsPerPage,omitempty"` - // Kind: The fixed string "urlshortener#urlHistory". Kind string `json:"kind,omitempty"` - // NextPageToken: A token to provide to get the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - - // TotalItems: Total number of short URLs associated with this user (may - // be approximate). + // TotalItems: Total number of short URLs associated with this user (may be + // approximate). TotalItems int64 `json:"totalItems,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *UrlHistory) MarshalJSON() ([]byte, error) { +func (s UrlHistory) MarshalJSON() ([]byte, error) { type NoMethod UrlHistory - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "urlshortener.url.get": - type UrlGetCall struct { s *Service urlParams_ gensupport.URLParams @@ -366,55 +332,51 @@ type UrlGetCall struct { } // Get: Expands a short URL or gets creation time and analytics. +// +// - shortUrl: The short URL, including the protocol. func (r *UrlService) Get(shortUrl string) *UrlGetCall { c := &UrlGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("shortUrl", shortUrl) return c } -// Projection sets the optional parameter "projection": Additional -// information to return. +// Projection sets the optional parameter "projection": Additional information +// to return. // // Possible values: // // "ANALYTICS_CLICKS" - Returns only click counts. // "ANALYTICS_TOP_STRINGS" - Returns only top string counts. -// "FULL" - Returns the creation timestamp and all available -// -// analytics. +// "FULL" - Returns the creation timestamp and all available analytics. func (c *UrlGetCall) Projection(projection string) *UrlGetCall { c.urlParams_.Set("projection", projection) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UrlGetCall) Fields(s ...googleapi.Field) *UrlGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UrlGetCall) IfNoneMatch(entityTag string) *UrlGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UrlGetCall) Context(ctx context.Context) *UrlGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UrlGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -423,12 +385,7 @@ func (c *UrlGetCall) Header() http.Header { } func (c *UrlGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -442,16 +399,14 @@ func (c *UrlGetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "urlshortener.url.get" call. -// Exactly one of *Url or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Url.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *UrlGetCall) Do(opts ...googleapi.CallOption) (*Url, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -459,17 +414,17 @@ func (c *UrlGetCall) Do(opts ...googleapi.CallOption) (*Url, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Url{ ServerResponse: googleapi.ServerResponse{ @@ -482,48 +437,7 @@ func (c *UrlGetCall) Do(opts ...googleapi.CallOption) (*Url, error) { return nil, err } return ret, nil - // { - // "description": "Expands a short URL or gets creation time and analytics.", - // "httpMethod": "GET", - // "id": "urlshortener.url.get", - // "parameterOrder": [ - // "shortUrl" - // ], - // "parameters": { - // "projection": { - // "description": "Additional information to return.", - // "enum": [ - // "ANALYTICS_CLICKS", - // "ANALYTICS_TOP_STRINGS", - // "FULL" - // ], - // "enumDescriptions": [ - // "Returns only click counts.", - // "Returns only top string counts.", - // "Returns the creation timestamp and all available analytics." - // ], - // "location": "query", - // "type": "string" - // }, - // "shortUrl": { - // "description": "The short URL, including the protocol.", - // "location": "query", - // "required": true, - // "type": "string" - // } - // }, - // "path": "url", - // "response": { - // "$ref": "Url" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/urlshortener" - // ] - // } - -} - -// method id "urlshortener.url.insert": +} type UrlInsertCall struct { s *Service @@ -541,23 +455,21 @@ func (r *UrlService) Insert(url *Url) *UrlInsertCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UrlInsertCall) Fields(s ...googleapi.Field) *UrlInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UrlInsertCall) Context(ctx context.Context) *UrlInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UrlInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -566,18 +478,12 @@ func (c *UrlInsertCall) Header() http.Header { } func (c *UrlInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.url) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "url") @@ -587,16 +493,14 @@ func (c *UrlInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "urlshortener.url.insert" call. -// Exactly one of *Url or error will be non-nil. Any non-2xx status code -// is an error. Response headers are in either +// Any non-2xx status code is an error. Response headers are in either // *Url.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. +// whether the returned error was because http.StatusNotModified was returned. func (c *UrlInsertCall) Do(opts ...googleapi.CallOption) (*Url, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -604,17 +508,17 @@ func (c *UrlInsertCall) Do(opts ...googleapi.CallOption) (*Url, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Url{ ServerResponse: googleapi.ServerResponse{ @@ -627,25 +531,7 @@ func (c *UrlInsertCall) Do(opts ...googleapi.CallOption) (*Url, error) { return nil, err } return ret, nil - // { - // "description": "Creates a new short URL.", - // "httpMethod": "POST", - // "id": "urlshortener.url.insert", - // "path": "url", - // "request": { - // "$ref": "Url" - // }, - // "response": { - // "$ref": "Url" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/urlshortener" - // ] - // } - -} - -// method id "urlshortener.url.list": +} type UrlListCall struct { s *Service @@ -661,8 +547,8 @@ func (r *UrlService) List() *UrlListCall { return c } -// Projection sets the optional parameter "projection": Additional -// information to return. +// Projection sets the optional parameter "projection": Additional information +// to return. // // Possible values: // @@ -673,41 +559,37 @@ func (c *UrlListCall) Projection(projection string) *UrlListCall { return c } -// StartToken sets the optional parameter "start-token": Token for -// requesting successive pages of results. +// StartToken sets the optional parameter "start-token": Token for requesting +// successive pages of results. func (c *UrlListCall) StartToken(startToken string) *UrlListCall { c.urlParams_.Set("start-token", startToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *UrlListCall) Fields(s ...googleapi.Field) *UrlListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *UrlListCall) IfNoneMatch(entityTag string) *UrlListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *UrlListCall) Context(ctx context.Context) *UrlListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *UrlListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -716,12 +598,7 @@ func (c *UrlListCall) Header() http.Header { } func (c *UrlListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -735,16 +612,14 @@ func (c *UrlListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "urlshortener.url.list" call. -// Exactly one of *UrlHistory or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *UrlHistory.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *UrlHistory.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *UrlListCall) Do(opts ...googleapi.CallOption) (*UrlHistory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -752,17 +627,17 @@ func (c *UrlListCall) Do(opts ...googleapi.CallOption) (*UrlHistory, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &UrlHistory{ ServerResponse: googleapi.ServerResponse{ @@ -775,37 +650,4 @@ func (c *UrlListCall) Do(opts ...googleapi.CallOption) (*UrlHistory, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves a list of URLs shortened by a user.", - // "httpMethod": "GET", - // "id": "urlshortener.url.list", - // "parameters": { - // "projection": { - // "description": "Additional information to return.", - // "enum": [ - // "ANALYTICS_CLICKS", - // "FULL" - // ], - // "enumDescriptions": [ - // "Returns short URL click counts.", - // "Returns short URL click counts." - // ], - // "location": "query", - // "type": "string" - // }, - // "start-token": { - // "description": "Token for requesting successive pages of results.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "url/history", - // "response": { - // "$ref": "UrlHistory" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/urlshortener" - // ] - // } - } diff --git a/vault/v1/vault-gen.go b/vault/v1/vault-gen.go index e56773c21b3..cca4a8b58fa 100644 --- a/vault/v1/vault-gen.go +++ b/vault/v1/vault-gen.go @@ -2284,7 +2284,7 @@ func (c *MattersAddPermissionsCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.addPermissions" call. @@ -2386,7 +2386,7 @@ func (c *MattersCloseCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.close" call. @@ -2488,7 +2488,7 @@ func (c *MattersCountCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.count" call. @@ -2584,7 +2584,7 @@ func (c *MattersCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.create" call. @@ -2679,7 +2679,7 @@ func (c *MattersDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.delete" call. @@ -2809,7 +2809,7 @@ func (c *MattersGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.get" call. @@ -2960,7 +2960,7 @@ func (c *MattersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.list" call. @@ -3083,7 +3083,7 @@ func (c *MattersRemovePermissionsCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.removePermissions" call. @@ -3184,7 +3184,7 @@ func (c *MattersReopenCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.reopen" call. @@ -3287,7 +3287,7 @@ func (c *MattersUndeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.undelete" call. @@ -3390,7 +3390,7 @@ func (c *MattersUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.update" call. @@ -3491,7 +3491,7 @@ func (c *MattersExportsCreateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.exports.create" call. @@ -3590,7 +3590,7 @@ func (c *MattersExportsDeleteCall) doRequest(alt string) (*http.Response, error) "matterId": c.matterId, "exportId": c.exportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.exports.delete" call. @@ -3701,7 +3701,7 @@ func (c *MattersExportsGetCall) doRequest(alt string) (*http.Response, error) { "matterId": c.matterId, "exportId": c.exportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.exports.get" call. @@ -3822,7 +3822,7 @@ func (c *MattersExportsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.exports.list" call. @@ -3951,7 +3951,7 @@ func (c *MattersHoldsAddHeldAccountsCall) doRequest(alt string) (*http.Response, "matterId": c.matterId, "holdId": c.holdId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.holds.addHeldAccounts" call. @@ -4053,7 +4053,7 @@ func (c *MattersHoldsCreateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.holds.create" call. @@ -4154,7 +4154,7 @@ func (c *MattersHoldsDeleteCall) doRequest(alt string) (*http.Response, error) { "matterId": c.matterId, "holdId": c.holdId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.holds.delete" call. @@ -4280,7 +4280,7 @@ func (c *MattersHoldsGetCall) doRequest(alt string) (*http.Response, error) { "matterId": c.matterId, "holdId": c.holdId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.holds.get" call. @@ -4417,7 +4417,7 @@ func (c *MattersHoldsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.holds.list" call. @@ -4545,7 +4545,7 @@ func (c *MattersHoldsRemoveHeldAccountsCall) doRequest(alt string) (*http.Respon "matterId": c.matterId, "holdId": c.holdId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.holds.removeHeldAccounts" call. @@ -4654,7 +4654,7 @@ func (c *MattersHoldsUpdateCall) doRequest(alt string) (*http.Response, error) { "matterId": c.matterId, "holdId": c.holdId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.holds.update" call. @@ -4761,7 +4761,7 @@ func (c *MattersHoldsAccountsCreateCall) doRequest(alt string) (*http.Response, "matterId": c.matterId, "holdId": c.holdId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.holds.accounts.create" call. @@ -4864,7 +4864,7 @@ func (c *MattersHoldsAccountsDeleteCall) doRequest(alt string) (*http.Response, "holdId": c.holdId, "accountId": c.accountId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.holds.accounts.delete" call. @@ -4979,7 +4979,7 @@ func (c *MattersHoldsAccountsListCall) doRequest(alt string) (*http.Response, er "matterId": c.matterId, "holdId": c.holdId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.holds.accounts.list" call. @@ -5081,7 +5081,7 @@ func (c *MattersSavedQueriesCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.savedQueries.create" call. @@ -5180,7 +5180,7 @@ func (c *MattersSavedQueriesDeleteCall) doRequest(alt string) (*http.Response, e "matterId": c.matterId, "savedQueryId": c.savedQueryId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.savedQueries.delete" call. @@ -5291,7 +5291,7 @@ func (c *MattersSavedQueriesGetCall) doRequest(alt string) (*http.Response, erro "matterId": c.matterId, "savedQueryId": c.savedQueryId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.savedQueries.get" call. @@ -5413,7 +5413,7 @@ func (c *MattersSavedQueriesListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "matterId": c.matterId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.matters.savedQueries.list" call. @@ -5544,7 +5544,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.operations.cancel" call. @@ -5642,7 +5642,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.operations.delete" call. @@ -5751,7 +5751,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.operations.get" call. @@ -5879,7 +5879,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vault.operations.list" call. diff --git a/vectortile/v1/vectortile-gen.go b/vectortile/v1/vectortile-gen.go index cc33501ec33..bed5e20c6fa 100644 --- a/vectortile/v1/vectortile-gen.go +++ b/vectortile/v1/vectortile-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/maps/contact-sales/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // vectortileService, err := vectortile.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // vectortileService, err := vectortile.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // vectortileService, err := vectortile.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package vectortile // import "google.golang.org/api/vectortile/v1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,17 +84,21 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "vectortile:v1" const apiName = "vectortile" const apiVersion = "v1" const basePath = "https://vectortile.googleapis.com/" +const basePathTemplate = "https://vectortile.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://vectortile.mtls.googleapis.com/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -145,411 +163,337 @@ type TerraintilesService struct { s *Service } -// Area: Represents an area. Used to represent regions such as water, -// parks, etc. Next ID: 10 +// Area: Represents an area. Used to represent regions such as water, parks, +// etc. Next ID: 10 type Area struct { - // BasemapZOrder: The z-order of this geometry when rendered on a flat - // basemap. Geometry with a lower z-order should be rendered beneath - // geometry with a higher z-order. This z-ordering does not imply - // anything about the altitude of the area relative to the ground, but - // it can be used to prevent z-fighting. Unlike Area.z_order this can be - // used to compare with Line.basemap_z_order, and in fact may yield more - // accurate rendering (where a line may be rendered beneath an area). + // BasemapZOrder: The z-order of this geometry when rendered on a flat basemap. + // Geometry with a lower z-order should be rendered beneath geometry with a + // higher z-order. This z-ordering does not imply anything about the altitude + // of the area relative to the ground, but it can be used to prevent + // z-fighting. Unlike Area.z_order this can be used to compare with + // Line.basemap_z_order, and in fact may yield more accurate rendering (where a + // line may be rendered beneath an area). BasemapZOrder *BasemapZOrder `json:"basemapZOrder,omitempty"` - // HasExternalEdges: True if the polygon is not entirely internal to the - // feature that it belongs to: that is, some of the edges are bordering - // another feature. + // feature that it belongs to: that is, some of the edges are bordering another + // feature. HasExternalEdges bool `json:"hasExternalEdges,omitempty"` - - // InternalEdges: When has_external_edges is true, the polygon has some - // edges that border another feature. This field indicates the internal - // edges that do not border another feature. Each value is an index into - // the vertices array, and denotes the start vertex of the internal edge - // (the next vertex in the boundary loop is the end of the edge). If the - // selected vertex is the last vertex in the boundary loop, then the - // edge between that vertex and the starting vertex of the loop is - // internal. This field may be used for styling. For example, building - // parapets could be placed only on the external edges of a building - // polygon, or water could be lighter colored near the external edges of - // a body of water. If has_external_edges is false, all edges are + // InternalEdges: When has_external_edges is true, the polygon has some edges + // that border another feature. This field indicates the internal edges that do + // not border another feature. Each value is an index into the vertices array, + // and denotes the start vertex of the internal edge (the next vertex in the + // boundary loop is the end of the edge). If the selected vertex is the last + // vertex in the boundary loop, then the edge between that vertex and the + // starting vertex of the loop is internal. This field may be used for styling. + // For example, building parapets could be placed only on the external edges of + // a building polygon, or water could be lighter colored near the external + // edges of a body of water. If has_external_edges is false, all edges are // internal and this field will be empty. InternalEdges []int64 `json:"internalEdges,omitempty"` - - // LoopBreaks: Identifies the boundary loops of the polygon. Only set - // for INDEXED_TRIANGLE polygons. Each value is an index into the - // vertices array indicating the beginning of a loop. For instance, - // values of [2, 5] would indicate loop_data contained 3 loops with - // indices 0-1, 2-4, and 5-end. This may be used in conjunction with the - // internal_edges field for styling polygon boundaries. Note that an - // edge may be on a polygon boundary but still internal to the feature. - // For example, a feature split across multiple tiles will have an - // internal polygon boundary edge along the edge of the tile. + // LoopBreaks: Identifies the boundary loops of the polygon. Only set for + // INDEXED_TRIANGLE polygons. Each value is an index into the vertices array + // indicating the beginning of a loop. For instance, values of [2, 5] would + // indicate loop_data contained 3 loops with indices 0-1, 2-4, and 5-end. This + // may be used in conjunction with the internal_edges field for styling polygon + // boundaries. Note that an edge may be on a polygon boundary but still + // internal to the feature. For example, a feature split across multiple tiles + // will have an internal polygon boundary edge along the edge of the tile. LoopBreaks []int64 `json:"loopBreaks,omitempty"` - - // TriangleIndices: When the polygon encoding is of type - // INDEXED_TRIANGLES, this contains the indices of the triangle vertices - // in the vertex_offsets field. There are 3 vertex indices per triangle. + // TriangleIndices: When the polygon encoding is of type INDEXED_TRIANGLES, + // this contains the indices of the triangle vertices in the vertex_offsets + // field. There are 3 vertex indices per triangle. TriangleIndices []int64 `json:"triangleIndices,omitempty"` - // Type: The polygon encoding type used for this area. // // Possible values: - // "TRIANGLE_FAN" - The first vertex in vertex_offset is the center of - // a triangle fan. The other vertices are arranged around this vertex in - // a fan shape. The following diagram showes a triangle fan polygon with - // the vertices labelled with their indices in the vertex_offset list. - // Triangle fan polygons always have a single boundary loop. Vertices - // may be in either a clockwise or counterclockwise order. (1) / \ / \ / - // \ (0)-----(2) / \ / / \ / / \ / (4)-----(3) - // "INDEXED_TRIANGLES" - The polygon is a set of triangles with three - // vertex indices per triangle. The vertex indices can be found in the - // triangle_indices field. Indexed triangle polygons also contain - // information about boundary loops. These identify the loops at the - // boundary of the polygon and may be used in conjunction with the - // internal_edges field for styling. Boundary loops may represent either - // a hole or a disconnected component of the polygon. The following - // diagram shows an indexed triangle polygon with two boundary loops. - // (0) (4) / \ / \ / \ / \ (1)----(2) (3)----(5) - // "TRIANGLE_STRIP" - A strip of triangles, where each triangle uses - // the last edge of the previous triangle. Vertices may be in either a - // clockwise or counterclockwise order. Only polygons without the - // has_external_edges flag set will use triangle strips. (0) / \ / \ / \ - // (2)-----(1) / \ / / \ / / \ / (4)-----(3) + // "TRIANGLE_FAN" - The first vertex in vertex_offset is the center of a + // triangle fan. The other vertices are arranged around this vertex in a fan + // shape. The following diagram showes a triangle fan polygon with the vertices + // labelled with their indices in the vertex_offset list. Triangle fan polygons + // always have a single boundary loop. Vertices may be in either a clockwise or + // counterclockwise order. (1) / \ / \ / \ (0)-----(2) / \ / / \ / / \ / + // (4)-----(3) + // "INDEXED_TRIANGLES" - The polygon is a set of triangles with three vertex + // indices per triangle. The vertex indices can be found in the + // triangle_indices field. Indexed triangle polygons also contain information + // about boundary loops. These identify the loops at the boundary of the + // polygon and may be used in conjunction with the internal_edges field for + // styling. Boundary loops may represent either a hole or a disconnected + // component of the polygon. The following diagram shows an indexed triangle + // polygon with two boundary loops. (0) (4) / \ / \ / \ / \ (1)----(2) + // (3)----(5) + // "TRIANGLE_STRIP" - A strip of triangles, where each triangle uses the last + // edge of the previous triangle. Vertices may be in either a clockwise or + // counterclockwise order. Only polygons without the has_external_edges flag + // set will use triangle strips. (0) / \ / \ / \ (2)-----(1) / \ / / \ / / \ / + // (4)-----(3) Type string `json:"type,omitempty"` - // VertexOffsets: The vertices present in the polygon defining the area. VertexOffsets *Vertex2DList `json:"vertexOffsets,omitempty"` - - // ZOrder: The z-ordering of this area. Areas with a lower z-order - // should be rendered beneath areas with a higher z-order. This - // z-ordering does not imply anything about the altitude of the line - // relative to the ground, but it can be used to prevent z-fighting - // during rendering on the client. This z-ordering can only be used to - // compare areas, and cannot be compared with the z_order field in the - // Line message. The z-order may be negative or zero. Prefer - // Area.basemap_z_order. + // ZOrder: The z-ordering of this area. Areas with a lower z-order should be + // rendered beneath areas with a higher z-order. This z-ordering does not imply + // anything about the altitude of the line relative to the ground, but it can + // be used to prevent z-fighting during rendering on the client. This + // z-ordering can only be used to compare areas, and cannot be compared with + // the z_order field in the Line message. The z-order may be negative or zero. + // Prefer Area.basemap_z_order. ZOrder int64 `json:"zOrder,omitempty"` - // ForceSendFields is a list of field names (e.g. "BasemapZOrder") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BasemapZOrder") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BasemapZOrder") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Area) MarshalJSON() ([]byte, error) { +func (s Area) MarshalJSON() ([]byte, error) { type NoMethod Area - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BasemapZOrder: Metadata necessary to determine the ordering of a -// particular basemap element relative to others. To render the basemap -// correctly, sort by z-plane, then z-grade, then z-within-grade. +// BasemapZOrder: Metadata necessary to determine the ordering of a particular +// basemap element relative to others. To render the basemap correctly, sort by +// z-plane, then z-grade, then z-within-grade. type BasemapZOrder struct { - // ZGrade: The second most significant component of the ordering of a - // component to be rendered onto the basemap. - ZGrade int64 `json:"zGrade,omitempty"` - - // ZPlane: The most significant component of the ordering of a component + // ZGrade: The second most significant component of the ordering of a component // to be rendered onto the basemap. + ZGrade int64 `json:"zGrade,omitempty"` + // ZPlane: The most significant component of the ordering of a component to be + // rendered onto the basemap. ZPlane int64 `json:"zPlane,omitempty"` - - // ZWithinGrade: The least significant component of the ordering of a - // component to be rendered onto the basemap. + // ZWithinGrade: The least significant component of the ordering of a component + // to be rendered onto the basemap. ZWithinGrade int64 `json:"zWithinGrade,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ZGrade") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ZGrade") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ZGrade") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *BasemapZOrder) MarshalJSON() ([]byte, error) { +func (s BasemapZOrder) MarshalJSON() ([]byte, error) { type NoMethod BasemapZOrder - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExtrudedArea: Represents a height-extruded area: a 3D prism with a -// constant X-Y plane cross section. Used to represent extruded -// buildings. A single building may consist of several extruded areas. -// The min_z and max_z fields are scaled to the size of the tile. An -// extruded area with a max_z value of 4096 has the same height as the -// width of the tile that it is on. +// ExtrudedArea: Represents a height-extruded area: a 3D prism with a constant +// X-Y plane cross section. Used to represent extruded buildings. A single +// building may consist of several extruded areas. The min_z and max_z fields +// are scaled to the size of the tile. An extruded area with a max_z value of +// 4096 has the same height as the width of the tile that it is on. type ExtrudedArea struct { // Area: The area representing the footprint of the extruded area. Area *Area `json:"area,omitempty"` - - // MaxZ: The z-value in local tile coordinates where the extruded area - // ends. + // MaxZ: The z-value in local tile coordinates where the extruded area ends. MaxZ int64 `json:"maxZ,omitempty"` - - // MinZ: The z-value in local tile coordinates where the extruded area - // begins. This is non-zero for extruded areas that begin off the - // ground. For example, a building with a skybridge may have an extruded - // area component with a non-zero min_z. + // MinZ: The z-value in local tile coordinates where the extruded area begins. + // This is non-zero for extruded areas that begin off the ground. For example, + // a building with a skybridge may have an extruded area component with a + // non-zero min_z. MinZ int64 `json:"minZ,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Area") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Area") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Area") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Area") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ExtrudedArea) MarshalJSON() ([]byte, error) { +func (s ExtrudedArea) MarshalJSON() ([]byte, error) { type NoMethod ExtrudedArea - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Feature: A feature representing a single geographic entity. type Feature struct { - // DisplayName: The localized name of this feature. Currently only - // returned for roads. + // DisplayName: The localized name of this feature. Currently only returned for + // roads. DisplayName string `json:"displayName,omitempty"` - - // Geometry: The geometry of this feature, representing the space that - // it occupies in the world. + // Geometry: The geometry of this feature, representing the space that it + // occupies in the world. Geometry *Geometry `json:"geometry,omitempty"` - - // PlaceId: Place ID of this feature, suitable for use in Places API - // details requests. + // PlaceId: Place ID of this feature, suitable for use in Places API details + // requests. PlaceId string `json:"placeId,omitempty"` - // Relations: Relations to other features. Relations []*Relation `json:"relations,omitempty"` - // SegmentInfo: Metadata for features with the SEGMENT FeatureType. SegmentInfo *SegmentInfo `json:"segmentInfo,omitempty"` - // Type: The type of this feature. // // Possible values: // "FEATURE_TYPE_UNSPECIFIED" - Unknown feature type. // "STRUCTURE" - Structures such as buildings and bridges. // "BAR" - A business serving alcoholic drinks to be consumed onsite. - // "BANK" - A financial institution that offers services to the - // general public. - // "LODGING" - A place that provides any type of lodging for - // travelers. - // "CAFE" - A business that sells coffee, tea, and sometimes small - // meals. - // "RESTAURANT" - A business that prepares meals on-site for service - // to customers. + // "BANK" - A financial institution that offers services to the general + // public. + // "LODGING" - A place that provides any type of lodging for travelers. + // "CAFE" - A business that sells coffee, tea, and sometimes small meals. + // "RESTAURANT" - A business that prepares meals on-site for service to + // customers. // "EVENT_VENUE" - A venue for private and public events. - // "TOURIST_DESTINATION" - Place of interest to tourists, typically - // for natural or cultural value. - // "SHOPPING" - A structure containing a business or businesses that - // sell goods. - // "SCHOOL" - Institution where young people receive general (not - // vocation or professional) education. + // "TOURIST_DESTINATION" - Place of interest to tourists, typically for + // natural or cultural value. + // "SHOPPING" - A structure containing a business or businesses that sell + // goods. + // "SCHOOL" - Institution where young people receive general (not vocation or + // professional) education. // "SEGMENT" - Segments such as roads and train lines. - // "ROAD" - A way leading from one place to another intended for use - // by vehicles. - // "LOCAL_ROAD" - A small city street, typically for travel in a - // residential neighborhood. + // "ROAD" - A way leading from one place to another intended for use by + // vehicles. + // "LOCAL_ROAD" - A small city street, typically for travel in a residential + // neighborhood. // "ARTERIAL_ROAD" - Major through road that's expected to carry large // volumes of traffic. // "HIGHWAY" - A major road including freeways and state highways. - // "CONTROLLED_ACCESS_HIGHWAY" - A highway with grade-separated - // crossings that is accessed exclusively by ramps. These are usually - // called "freeways" or "motorways". The enable_detailed_highway_types - // request flag must be set in order for this type to be returned. - // "FOOTPATH" - A path that's primarily intended for use by - // pedestrians and/or cyclists. + // "CONTROLLED_ACCESS_HIGHWAY" - A highway with grade-separated crossings + // that is accessed exclusively by ramps. These are usually called "freeways" + // or "motorways". The enable_detailed_highway_types request flag must be set + // in order for this type to be returned. + // "FOOTPATH" - A path that's primarily intended for use by pedestrians + // and/or cyclists. // "RAIL" - Tracks intended for use by trains. - // "FERRY" - Services which are part of the road network but are not - // roads. + // "FERRY" - Services which are part of the road network but are not roads. // "REGION" - Non-water areas such as parks and forest. // "PARK" - Outdoor areas such as parks and botanical gardens. // "BEACH" - A pebbly or sandy shore along the edge of a sea or lake. // "FOREST" - Area of land covered by trees. // "POLITICAL" - Political entities, such as provinces and districts. - // "ADMINISTRATIVE_AREA1" - Top-level divisions within a country, such - // as prefectures or states. + // "ADMINISTRATIVE_AREA1" - Top-level divisions within a country, such as + // prefectures or states. // "LOCALITY" - Cities, towns, and other municipalities. // "SUBLOCALITY" - Divisions within a locality like a borough or ward. // "WATER" - Water features such as rivers and lakes. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Feature) MarshalJSON() ([]byte, error) { +func (s Feature) MarshalJSON() ([]byte, error) { type NoMethod Feature - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FeatureTile: A tile containing information about the map features -// located in the region it covers. +// FeatureTile: A tile containing information about the map features located in +// the region it covers. type FeatureTile struct { - // Coordinates: The global tile coordinates that uniquely identify this - // tile. + // Coordinates: The global tile coordinates that uniquely identify this tile. Coordinates *TileCoordinates `json:"coordinates,omitempty"` - // Features: Features present on this map tile. Features []*Feature `json:"features,omitempty"` - - // Name: Resource name of the tile. The tile resource name is prefixed - // by its collection ID `tiles/` followed by the resource ID, which - // encodes the tile's global x and y coordinates and zoom level as - // `@,,z`. For example, `tiles/@1,2,3z`. + // Name: Resource name of the tile. The tile resource name is prefixed by its + // collection ID `tiles/` followed by the resource ID, which encodes the tile's + // global x and y coordinates and zoom level as `@,,z`. For example, + // `tiles/@1,2,3z`. Name string `json:"name,omitempty"` - // Providers: Data providers for the data contained in this tile. Providers []*ProviderInfo `json:"providers,omitempty"` - // Status: Tile response status code to support tile caching. // // Possible values: // "STATUS_OK" - Everything worked out OK. The cache-control header - // determines how long this Tile response may be cached by the client. - // See also version_id and STATUS_OK_DATA_UNCHANGED. - // "STATUS_OK_DATA_UNCHANGED" - Indicates that the request was - // processed successfully and that the tile data that would have been - // returned are identical to the data already in the client's cache, as - // specified by the value of client_tile_version_id contained in - // GetFeatureTileRequest. In particular, the tile's features and - // providers will not be populated when the tile data is identical. - // However, the cache-control header and version_id can still change - // even when the tile contents itself does not, so clients should always - // use the most recent values returned by the API. + // determines how long this Tile response may be cached by the client. See also + // version_id and STATUS_OK_DATA_UNCHANGED. + // "STATUS_OK_DATA_UNCHANGED" - Indicates that the request was processed + // successfully and that the tile data that would have been returned are + // identical to the data already in the client's cache, as specified by the + // value of client_tile_version_id contained in GetFeatureTileRequest. In + // particular, the tile's features and providers will not be populated when the + // tile data is identical. However, the cache-control header and version_id can + // still change even when the tile contents itself does not, so clients should + // always use the most recent values returned by the API. Status string `json:"status,omitempty"` - - // VersionId: An opaque value, usually less than 30 characters, that - // contains version info about this tile and the data that was used to - // generate it. The client should store this value in its tile cache and - // pass it back to the API in the client_tile_version_id field of - // subsequent tile requests in order to enable the API to detect when - // the new tile would be the same as the one the client already has in - // its cache. Also see STATUS_OK_DATA_UNCHANGED. + // VersionId: An opaque value, usually less than 30 characters, that contains + // version info about this tile and the data that was used to generate it. The + // client should store this value in its tile cache and pass it back to the API + // in the client_tile_version_id field of subsequent tile requests in order to + // enable the API to detect when the new tile would be the same as the one the + // client already has in its cache. Also see STATUS_OK_DATA_UNCHANGED. VersionId string `json:"versionId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Coordinates") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Coordinates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Coordinates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FeatureTile) MarshalJSON() ([]byte, error) { +func (s FeatureTile) MarshalJSON() ([]byte, error) { type NoMethod FeatureTile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FirstDerivativeElevationGrid: A packed representation of a 2D grid of -// uniformly spaced points containing elevation data. Each point within -// the grid represents the altitude in meters above average sea level at -// that location within the tile. Elevations provided are (generally) -// relative to the EGM96 geoid, however some areas will be relative to -// NAVD88. EGM96 and NAVD88 are off by no more than 2 meters. The grid -// is oriented north-west to south-east, as illustrated: rows[0].a[0] -// rows[0].a[m] +-----------------+ | | | N | | ^ | | | | | W <-----> E -// | | | | | v | | S | | | +-----------------+ rows[n].a[0] rows[n].a[m] -// Rather than storing the altitudes directly, we store the diffs -// between them as integers at some requested level of precision to take -// advantage of integer packing. The actual altitude values a[] can be -// reconstructed using the scale and each row's first_altitude and -// altitude_diff fields. More details in -// go/elevation-encoding-options-for-enduro under "Recommended -// implementation". +// uniformly spaced points containing elevation data. Each point within the +// grid represents the altitude in meters above average sea level at that +// location within the tile. Elevations provided are (generally) relative to +// the EGM96 geoid, however some areas will be relative to NAVD88. EGM96 and +// NAVD88 are off by no more than 2 meters. The grid is oriented north-west to +// south-east, as illustrated: rows[0].a[0] rows[0].a[m] +-----------------+ | +// | | N | | ^ | | | | | W <-----> E | | | | | v | | S | | | +// +-----------------+ rows[n].a[0] rows[n].a[m] Rather than storing the +// altitudes directly, we store the diffs between them as integers at some +// requested level of precision to take advantage of integer packing. The +// actual altitude values a[] can be reconstructed using the scale and each +// row's first_altitude and altitude_diff fields. More details in +// go/elevation-encoding-options-for-enduro under "Recommended implementation". type FirstDerivativeElevationGrid struct { - // AltitudeMultiplier: A multiplier applied to the altitude fields below - // to extract the actual altitudes in meters from the elevation grid. + // AltitudeMultiplier: A multiplier applied to the altitude fields below to + // extract the actual altitudes in meters from the elevation grid. AltitudeMultiplier float64 `json:"altitudeMultiplier,omitempty"` - - // Rows: Rows of points containing altitude data making up the elevation - // grid. Each row is the same length. Rows are ordered from north to - // south. E.g: rows[0] is the north-most row, and rows[n] is the - // south-most row. + // Rows: Rows of points containing altitude data making up the elevation grid. + // Each row is the same length. Rows are ordered from north to south. E.g: + // rows[0] is the north-most row, and rows[n] is the south-most row. Rows []*Row `json:"rows,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltitudeMultiplier") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AltitudeMultiplier") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AltitudeMultiplier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AltitudeMultiplier") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *FirstDerivativeElevationGrid) MarshalJSON() ([]byte, error) { +func (s FirstDerivativeElevationGrid) MarshalJSON() ([]byte, error) { type NoMethod FirstDerivativeElevationGrid - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *FirstDerivativeElevationGrid) UnmarshalJSON(data []byte) error { @@ -566,352 +510,281 @@ func (s *FirstDerivativeElevationGrid) UnmarshalJSON(data []byte) error { return nil } -// Geometry: Represents the geometry of a feature, that is, the shape -// that it has on the map. The local tile coordinate system has the -// origin at the north-west (upper-left) corner of the tile, and is -// scaled to 4096 units across each edge. The height (Z) axis has the -// same scale factor: an extruded area with a max_z value of 4096 has -// the same height as the width of the tile that it is on. There is no -// clipping boundary, so it is possible that some coordinates will lie -// outside the tile boundaries. +// Geometry: Represents the geometry of a feature, that is, the shape that it +// has on the map. The local tile coordinate system has the origin at the +// north-west (upper-left) corner of the tile, and is scaled to 4096 units +// across each edge. The height (Z) axis has the same scale factor: an extruded +// area with a max_z value of 4096 has the same height as the width of the tile +// that it is on. There is no clipping boundary, so it is possible that some +// coordinates will lie outside the tile boundaries. type Geometry struct { // Areas: The areas present in this geometry. Areas []*Area `json:"areas,omitempty"` - - // ExtrudedAreas: The extruded areas present in this geometry. Not - // populated if modeled_volumes are included in this geometry unless - // always_include_building_footprints is set in GetFeatureTileRequest, - // in which case the client should decide which (extruded areas or - // modeled volumes) should be used (they should not be rendered - // together). + // ExtrudedAreas: The extruded areas present in this geometry. Not populated if + // modeled_volumes are included in this geometry unless + // always_include_building_footprints is set in GetFeatureTileRequest, in which + // case the client should decide which (extruded areas or modeled volumes) + // should be used (they should not be rendered together). ExtrudedAreas []*ExtrudedArea `json:"extrudedAreas,omitempty"` - // Lines: The lines present in this geometry. Lines []*Line `json:"lines,omitempty"` - - // ModeledVolumes: The modeled volumes present in this geometry. Not - // populated unless enable_modeled_volumes has been set in - // GetFeatureTileRequest. + // ModeledVolumes: The modeled volumes present in this geometry. Not populated + // unless enable_modeled_volumes has been set in GetFeatureTileRequest. ModeledVolumes []*ModeledVolume `json:"modeledVolumes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Areas") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Areas") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Areas") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Geometry) MarshalJSON() ([]byte, error) { +func (s Geometry) MarshalJSON() ([]byte, error) { type NoMethod Geometry - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Line: Represents a 2D polyline. Used to represent segments such as -// roads, train tracks, etc. +// Line: Represents a 2D polyline. Used to represent segments such as roads, +// train tracks, etc. type Line struct { - // BasemapZOrder: The z-order of this geometry when rendered on a flat - // basemap. Geometry with a lower z-order should be rendered beneath - // geometry with a higher z-order. This z-ordering does not imply - // anything about the altitude of the area relative to the ground, but - // it can be used to prevent z-fighting. Unlike Line.z_order this can be - // used to compare with Area.basemap_z_order, and in fact may yield more - // accurate rendering (where a line may be rendered beneath an area). + // BasemapZOrder: The z-order of this geometry when rendered on a flat basemap. + // Geometry with a lower z-order should be rendered beneath geometry with a + // higher z-order. This z-ordering does not imply anything about the altitude + // of the area relative to the ground, but it can be used to prevent + // z-fighting. Unlike Line.z_order this can be used to compare with + // Area.basemap_z_order, and in fact may yield more accurate rendering (where a + // line may be rendered beneath an area). BasemapZOrder *BasemapZOrder `json:"basemapZOrder,omitempty"` - // VertexOffsets: The vertices present in the polyline. VertexOffsets *Vertex2DList `json:"vertexOffsets,omitempty"` - // ZOrder: The z-order of the line. Lines with a lower z-order should be - // rendered beneath lines with a higher z-order. This z-ordering does - // not imply anything about the altitude of the area relative to the - // ground, but it can be used to prevent z-fighting during rendering on - // the client. In general, larger and more important road features will - // have a higher z-order line associated with them. This z-ordering can - // only be used to compare lines, and cannot be compared with the - // z_order field in the Area message. The z-order may be negative or - // zero. Prefer Line.basemap_z_order. + // rendered beneath lines with a higher z-order. This z-ordering does not imply + // anything about the altitude of the area relative to the ground, but it can + // be used to prevent z-fighting during rendering on the client. In general, + // larger and more important road features will have a higher z-order line + // associated with them. This z-ordering can only be used to compare lines, and + // cannot be compared with the z_order field in the Area message. The z-order + // may be negative or zero. Prefer Line.basemap_z_order. ZOrder int64 `json:"zOrder,omitempty"` - // ForceSendFields is a list of field names (e.g. "BasemapZOrder") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BasemapZOrder") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BasemapZOrder") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Line) MarshalJSON() ([]byte, error) { +func (s Line) MarshalJSON() ([]byte, error) { type NoMethod Line - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ModeledVolume: Represents a modeled volume in 3D space. Used to -// represent 3D buildings. +// ModeledVolume: Represents a modeled volume in 3D space. Used to represent 3D +// buildings. type ModeledVolume struct { // Strips: The triangle strips present in this mesh. Strips []*TriangleStrip `json:"strips,omitempty"` - - // VertexOffsets: The vertices present in the mesh defining the modeled - // volume. + // VertexOffsets: The vertices present in the mesh defining the modeled volume. VertexOffsets *Vertex3DList `json:"vertexOffsets,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Strips") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Strips") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Strips") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ModeledVolume) MarshalJSON() ([]byte, error) { +func (s ModeledVolume) MarshalJSON() ([]byte, error) { type NoMethod ModeledVolume - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ProviderInfo: Information about the data providers that should be -// included in the attribution string shown by the client. +// ProviderInfo: Information about the data providers that should be included +// in the attribution string shown by the client. type ProviderInfo struct { // Description: Attribution string for this provider. This string is not // localized. Description string `json:"description,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ProviderInfo) MarshalJSON() ([]byte, error) { +func (s ProviderInfo) MarshalJSON() ([]byte, error) { type NoMethod ProviderInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Relation: Represents a relation to another feature in the tile. For -// example, a building might be occupied by a given POI. The related -// feature can be retrieved using the related feature index. +// Relation: Represents a relation to another feature in the tile. For example, +// a building might be occupied by a given POI. The related feature can be +// retrieved using the related feature index. type Relation struct { - // RelatedFeatureIndex: Zero-based index to look up the related feature - // from the list of features in the tile. + // RelatedFeatureIndex: Zero-based index to look up the related feature from + // the list of features in the tile. RelatedFeatureIndex int64 `json:"relatedFeatureIndex,omitempty"` - // RelationType: Relation type between the origin feature to the related // feature. // // Possible values: - // "RELATION_TYPE_UNSPECIFIED" - Unspecified relation type. Should - // never happen. + // "RELATION_TYPE_UNSPECIFIED" - Unspecified relation type. Should never + // happen. // "OCCUPIES" - The origin feature occupies the related feature. - // "PRIMARILY_OCCUPIED_BY" - The origin feature is primarily occupied - // by the related feature. + // "PRIMARILY_OCCUPIED_BY" - The origin feature is primarily occupied by the + // related feature. RelationType string `json:"relationType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RelatedFeatureIndex") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "RelatedFeatureIndex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RelatedFeatureIndex") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "RelatedFeatureIndex") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Relation) MarshalJSON() ([]byte, error) { +func (s Relation) MarshalJSON() ([]byte, error) { type NoMethod Relation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RoadInfo: Extra metadata relating to roads. type RoadInfo struct { - // IsPrivate: Road has signage discouraging or prohibiting use by the - // general public. E.g., roads with signs that say "Private", or "No - // trespassing." + // IsPrivate: Road has signage discouraging or prohibiting use by the general + // public. E.g., roads with signs that say "Private", or "No trespassing." IsPrivate bool `json:"isPrivate,omitempty"` - // ForceSendFields is a list of field names (e.g. "IsPrivate") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IsPrivate") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IsPrivate") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *RoadInfo) MarshalJSON() ([]byte, error) { +func (s RoadInfo) MarshalJSON() ([]byte, error) { type NoMethod RoadInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Row: A row of altitude points in the elevation grid, ordered from -// west to east. +// Row: A row of altitude points in the elevation grid, ordered from west to +// east. type Row struct { - // AltitudeDiffs: The difference between each successive pair of - // altitudes, from west to east. The first, westmost point, is just the - // altitude rather than a diff. The units are specified by the - // altitude_multiplier parameter above; the value in meters is given by - // altitude_multiplier * altitude_diffs[n]. The altitude row (in metres - // above sea level) can be reconstructed with: a[0] = altitude_diffs[0] - // * altitude_multiplier when n > 0, a[n] = a[n-1] + altitude_diffs[n-1] - // * altitude_multiplier. + // AltitudeDiffs: The difference between each successive pair of altitudes, + // from west to east. The first, westmost point, is just the altitude rather + // than a diff. The units are specified by the altitude_multiplier parameter + // above; the value in meters is given by altitude_multiplier * + // altitude_diffs[n]. The altitude row (in metres above sea level) can be + // reconstructed with: a[0] = altitude_diffs[0] * altitude_multiplier when n > + // 0, a[n] = a[n-1] + altitude_diffs[n-1] * altitude_multiplier. AltitudeDiffs []int64 `json:"altitudeDiffs,omitempty"` - // ForceSendFields is a list of field names (e.g. "AltitudeDiffs") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AltitudeDiffs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AltitudeDiffs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Row) MarshalJSON() ([]byte, error) { +func (s Row) MarshalJSON() ([]byte, error) { type NoMethod Row - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// SecondDerivativeElevationGrid: A packed representation of a 2D grid -// of uniformly spaced points containing elevation data. Each point -// within the grid represents the altitude in meters above average sea -// level at that location within the tile. Elevations provided are -// (generally) relative to the EGM96 geoid, however some areas will be -// relative to NAVD88. EGM96 and NAVD88 are off by no more than 2 -// meters. The grid is oriented north-west to south-east, as -// illustrated: rows[0].a[0] rows[0].a[m] +-----------------+ | | | N | -// | ^ | | | | | W <-----> E | | | | | v | | S | | | +-----------------+ -// rows[n].a[0] rows[n].a[m] Rather than storing the altitudes directly, -// we store the diffs of the diffs between them as integers at some -// requested level of precision to take advantage of integer packing. -// Note that the data is packed in such a way that is fast to decode in -// Unity and that further optimizes wire size. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SecondDerivativeElevationGrid: A packed representation of a 2D grid of +// uniformly spaced points containing elevation data. Each point within the +// grid represents the altitude in meters above average sea level at that +// location within the tile. Elevations provided are (generally) relative to +// the EGM96 geoid, however some areas will be relative to NAVD88. EGM96 and +// NAVD88 are off by no more than 2 meters. The grid is oriented north-west to +// south-east, as illustrated: rows[0].a[0] rows[0].a[m] +-----------------+ | +// | | N | | ^ | | | | | W <-----> E | | | | | v | | S | | | +// +-----------------+ rows[n].a[0] rows[n].a[m] Rather than storing the +// altitudes directly, we store the diffs of the diffs between them as integers +// at some requested level of precision to take advantage of integer packing. +// Note that the data is packed in such a way that is fast to decode in Unity +// and that further optimizes wire size. type SecondDerivativeElevationGrid struct { - // AltitudeMultiplier: A multiplier applied to the elements in the - // encoded data to extract the actual altitudes in meters. + // AltitudeMultiplier: A multiplier applied to the elements in the encoded data + // to extract the actual altitudes in meters. AltitudeMultiplier float64 `json:"altitudeMultiplier,omitempty"` - - // ColumnCount: The number of columns included in the encoded elevation - // data (i.e. the horizontal resolution of the grid). + // ColumnCount: The number of columns included in the encoded elevation data + // (i.e. the horizontal resolution of the grid). ColumnCount int64 `json:"columnCount,omitempty"` - - // EncodedData: A stream of elements each representing a point on the - // tile running across each row from left to right, top to bottom. There - // will be precisely horizontal_resolution * vertical_resolution - // elements in the stream. The elements are not the heights, rather the - // second order derivative of the values one would expect in a stream of - // height data. Each element is a varint with the following encoding: - // ---------------------------------------------------------------------- - // --| | Head Nibble | - // ---------------------------------------------------------------------- - // --| | Bit 0 | Bit 1 | Bits 2-3 | | Terminator| Sign (1=neg) | Least - // significant 2 bits of absolute error | - // ---------------------------------------------------------------------- - // --| | Tail Nibble #1 | - // ---------------------------------------------------------------------- - // --| | Bit 0 | Bit 1-3 | | Terminator| Least significant 3 bits of - // absolute error | - // ---------------------------------------------------------------------- - // --| | ... | Tail Nibble #n | - // ---------------------------------------------------------------------- - // --| | Bit 0 | Bit 1-3 | | Terminator| Least significant 3 bits of - // absolute error | - // ---------------------------------------------------------------------- - // --| + // EncodedData: A stream of elements each representing a point on the tile + // running across each row from left to right, top to bottom. There will be + // precisely horizontal_resolution * vertical_resolution elements in the + // stream. The elements are not the heights, rather the second order derivative + // of the values one would expect in a stream of height data. Each element is a + // varint with the following encoding: + // ------------------------------------------------------------------------| | + // Head Nibble | + // ------------------------------------------------------------------------| | + // Bit 0 | Bit 1 | Bits 2-3 | | Terminator| Sign (1=neg) | Least significant 2 + // bits of absolute error | + // ------------------------------------------------------------------------| | + // Tail Nibble #1 | + // ------------------------------------------------------------------------| | + // Bit 0 | Bit 1-3 | | Terminator| Least significant 3 bits of absolute error | + // ------------------------------------------------------------------------| | + // ... | Tail Nibble #n | + // ------------------------------------------------------------------------| | + // Bit 0 | Bit 1-3 | | Terminator| Least significant 3 bits of absolute error | + // ------------------------------------------------------------------------| EncodedData string `json:"encodedData,omitempty"` - - // RowCount: The number of rows included in the encoded elevation data - // (i.e. the vertical resolution of the grid). + // RowCount: The number of rows included in the encoded elevation data (i.e. + // the vertical resolution of the grid). RowCount int64 `json:"rowCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltitudeMultiplier") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "AltitudeMultiplier") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AltitudeMultiplier") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AltitudeMultiplier") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SecondDerivativeElevationGrid) MarshalJSON() ([]byte, error) { +func (s SecondDerivativeElevationGrid) MarshalJSON() ([]byte, error) { type NoMethod SecondDerivativeElevationGrid - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *SecondDerivativeElevationGrid) UnmarshalJSON(data []byte) error { @@ -932,236 +805,183 @@ func (s *SecondDerivativeElevationGrid) UnmarshalJSON(data []byte) error { type SegmentInfo struct { // RoadInfo: Metadata for features with the ROAD FeatureType. RoadInfo *RoadInfo `json:"roadInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "RoadInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RoadInfo") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "RoadInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SegmentInfo) MarshalJSON() ([]byte, error) { +func (s SegmentInfo) MarshalJSON() ([]byte, error) { type NoMethod SegmentInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TerrainTile: A tile containing information about the terrain located -// in the region it covers. +// TerrainTile: A tile containing information about the terrain located in the +// region it covers. type TerrainTile struct { - // Coordinates: The global tile coordinates that uniquely identify this - // tile. + // Coordinates: The global tile coordinates that uniquely identify this tile. Coordinates *TileCoordinates `json:"coordinates,omitempty"` - // FirstDerivative: Terrain elevation data encoded as a // FirstDerivativeElevationGrid. cs/symbol:FirstDerivativeElevationGrid. FirstDerivative *FirstDerivativeElevationGrid `json:"firstDerivative,omitempty"` - - // Name: Resource name of the tile. The tile resource name is prefixed - // by its collection ID `terrain/` followed by the resource ID, which - // encodes the tile's global x and y coordinates and zoom level as - // `@,,z`. For example, `terrain/@1,2,3z`. + // Name: Resource name of the tile. The tile resource name is prefixed by its + // collection ID `terrain/` followed by the resource ID, which encodes the + // tile's global x and y coordinates and zoom level as `@,,z`. For example, + // `terrain/@1,2,3z`. Name string `json:"name,omitempty"` - // SecondDerivative: Terrain elevation data encoded as a - // SecondDerivativeElevationGrid. - // cs/symbol:SecondDerivativeElevationGrid. See go/byte-encoded-terrain - // for more details. + // SecondDerivativeElevationGrid. cs/symbol:SecondDerivativeElevationGrid. See + // go/byte-encoded-terrain for more details. SecondDerivative *SecondDerivativeElevationGrid `json:"secondDerivative,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Coordinates") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Coordinates") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Coordinates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TerrainTile) MarshalJSON() ([]byte, error) { +func (s TerrainTile) MarshalJSON() ([]byte, error) { type NoMethod TerrainTile - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// TileCoordinates: Global tile coordinates. Global tile coordinates -// reference a specific tile on the map at a specific zoom level. The -// origin of this coordinate system is always at the northwest corner of -// the map, with x values increasing from west to east and y values -// increasing from north to south. Tiles are indexed using x, y -// coordinates from that origin. The zoom level containing the entire -// world in a tile is 0, and it increases as you zoom in. Zoom level n + -// 1 will contain 4 times as many tiles as zoom level n. The zoom level -// controls the level of detail of the data that is returned. In -// particular, this affects the set of feature types returned, their -// density, and geometry simplification. The exact tile contents may -// change over time, but care will be taken to keep supporting the most -// important use cases. For example, zoom level 15 shows roads for -// orientation and planning in the local neighborhood and zoom level 17 -// shows buildings to give users on foot a sense of situational -// awareness. + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TileCoordinates: Global tile coordinates. Global tile coordinates reference +// a specific tile on the map at a specific zoom level. The origin of this +// coordinate system is always at the northwest corner of the map, with x +// values increasing from west to east and y values increasing from north to +// south. Tiles are indexed using x, y coordinates from that origin. The zoom +// level containing the entire world in a tile is 0, and it increases as you +// zoom in. Zoom level n + 1 will contain 4 times as many tiles as zoom level +// n. The zoom level controls the level of detail of the data that is returned. +// In particular, this affects the set of feature types returned, their +// density, and geometry simplification. The exact tile contents may change +// over time, but care will be taken to keep supporting the most important use +// cases. For example, zoom level 15 shows roads for orientation and planning +// in the local neighborhood and zoom level 17 shows buildings to give users on +// foot a sense of situational awareness. type TileCoordinates struct { // X: Required. The x coordinate. X int64 `json:"x,omitempty"` - // Y: Required. The y coordinate. Y int64 `json:"y,omitempty"` - // Zoom: Required. The Google Maps API zoom level. Zoom int64 `json:"zoom,omitempty"` - - // ForceSendFields is a list of field names (e.g. "X") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "X") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "X") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "X") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TileCoordinates) MarshalJSON() ([]byte, error) { +func (s TileCoordinates) MarshalJSON() ([]byte, error) { type NoMethod TileCoordinates - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TriangleStrip: Represents a strip of triangles. Each triangle uses -// the last edge of the previous one. The following diagram shows an -// example of a triangle strip, with each vertex labeled with its index -// in the vertex_index array. (1)-----(3) / \ / \ / \ / \ / \ / \ -// (0)-----(2)-----(4) Vertices may be in either clockwise or -// counter-clockwise order. +// TriangleStrip: Represents a strip of triangles. Each triangle uses the last +// edge of the previous one. The following diagram shows an example of a +// triangle strip, with each vertex labeled with its index in the vertex_index +// array. (1)-----(3) / \ / \ / \ / \ / \ / \ (0)-----(2)-----(4) Vertices may +// be in either clockwise or counter-clockwise order. type TriangleStrip struct { - // VertexIndices: Index into the vertex_offset array representing the - // next vertex in the triangle strip. + // VertexIndices: Index into the vertex_offset array representing the next + // vertex in the triangle strip. VertexIndices []int64 `json:"vertexIndices,omitempty"` - // ForceSendFields is a list of field names (e.g. "VertexIndices") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "VertexIndices") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "VertexIndices") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TriangleStrip) MarshalJSON() ([]byte, error) { +func (s TriangleStrip) MarshalJSON() ([]byte, error) { type NoMethod TriangleStrip - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Vertex2DList: 2D vertex list used for lines and areas. Each entry -// represents an offset from the previous one in local tile coordinates. -// The first entry is offset from (0, 0). For example, the list of -// vertices [(1,1), (2, 2), (1, 2)] would be encoded in vertex offsets -// as [(1, 1), (1, 1), (-1, 0)]. +// Vertex2DList: 2D vertex list used for lines and areas. Each entry represents +// an offset from the previous one in local tile coordinates. The first entry +// is offset from (0, 0). For example, the list of vertices [(1,1), (2, 2), (1, +// 2)] would be encoded in vertex offsets as [(1, 1), (1, 1), (-1, 0)]. type Vertex2DList struct { // XOffsets: List of x-offsets in local tile coordinates. XOffsets []int64 `json:"xOffsets,omitempty"` - // YOffsets: List of y-offsets in local tile coordinates. YOffsets []int64 `json:"yOffsets,omitempty"` - // ForceSendFields is a list of field names (e.g. "XOffsets") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "XOffsets") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "XOffsets") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Vertex2DList) MarshalJSON() ([]byte, error) { +func (s Vertex2DList) MarshalJSON() ([]byte, error) { type NoMethod Vertex2DList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Vertex3DList: 3D vertex list used for modeled volumes. Each entry -// represents an offset from the previous one in local tile coordinates. -// The first coordinate is offset from (0, 0, 0). +// Vertex3DList: 3D vertex list used for modeled volumes. Each entry represents +// an offset from the previous one in local tile coordinates. The first +// coordinate is offset from (0, 0, 0). type Vertex3DList struct { // XOffsets: List of x-offsets in local tile coordinates. XOffsets []int64 `json:"xOffsets,omitempty"` - // YOffsets: List of y-offsets in local tile coordinates. YOffsets []int64 `json:"yOffsets,omitempty"` - // ZOffsets: List of z-offsets in local tile coordinates. ZOffsets []int64 `json:"zOffsets,omitempty"` - // ForceSendFields is a list of field names (e.g. "XOffsets") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "XOffsets") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "XOffsets") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Vertex3DList) MarshalJSON() ([]byte, error) { +func (s Vertex3DList) MarshalJSON() ([]byte, error) { type NoMethod Vertex3DList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "vectortile.featuretiles.get": - type FeaturetilesGetCall struct { s *Service name string @@ -1173,10 +993,10 @@ type FeaturetilesGetCall struct { // Get: Gets a feature tile by its tile resource name. // -// - name: Resource name of the tile. The tile resource name is prefixed -// by its collection ID `tiles/` followed by the resource ID, which -// encodes the tile's global x and y coordinates and zoom level as -// `@,,z`. For example, `tiles/@1,2,3z`. +// - name: Resource name of the tile. The tile resource name is prefixed by its +// collection ID `tiles/` followed by the resource ID, which encodes the +// tile's global x and y coordinates and zoom level as `@,,z`. For example, +// `tiles/@1,2,3z`. func (r *FeaturetilesService) Get(name string) *FeaturetilesGetCall { c := &FeaturetilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1184,26 +1004,26 @@ func (r *FeaturetilesService) Get(name string) *FeaturetilesGetCall { } // AlwaysIncludeBuildingFootprints sets the optional parameter -// "alwaysIncludeBuildingFootprints": Flag indicating whether the -// returned tile will always contain 2.5D footprints for structures. If -// enabled_modeled_volumes is set, this will mean that structures will -// have both their 3D models and 2.5D footprints returned. +// "alwaysIncludeBuildingFootprints": Flag indicating whether the returned tile +// will always contain 2.5D footprints for structures. If +// enabled_modeled_volumes is set, this will mean that structures will have +// both their 3D models and 2.5D footprints returned. func (c *FeaturetilesGetCall) AlwaysIncludeBuildingFootprints(alwaysIncludeBuildingFootprints bool) *FeaturetilesGetCall { c.urlParams_.Set("alwaysIncludeBuildingFootprints", fmt.Sprint(alwaysIncludeBuildingFootprints)) return c } -// ClientInfoApiClient sets the optional parameter -// "clientInfo.apiClient": API client name and version. For example, the -// SDK calling the API. The exact format is up to the client. +// ClientInfoApiClient sets the optional parameter "clientInfo.apiClient": API +// client name and version. For example, the SDK calling the API. The exact +// format is up to the client. func (c *FeaturetilesGetCall) ClientInfoApiClient(clientInfoApiClient string) *FeaturetilesGetCall { c.urlParams_.Set("clientInfo.apiClient", clientInfoApiClient) return c } // ClientInfoApplicationId sets the optional parameter -// "clientInfo.applicationId": Application ID, such as the package name -// on Android and the bundle identifier on iOS platforms. +// "clientInfo.applicationId": Application ID, such as the package name on +// Android and the bundle identifier on iOS platforms. func (c *FeaturetilesGetCall) ClientInfoApplicationId(clientInfoApplicationId string) *FeaturetilesGetCall { c.urlParams_.Set("clientInfo.applicationId", clientInfoApplicationId) return c @@ -1217,18 +1037,18 @@ func (c *FeaturetilesGetCall) ClientInfoApplicationVersion(clientInfoApplication return c } -// ClientInfoDeviceModel sets the optional parameter -// "clientInfo.deviceModel": Device model as reported by the device. The -// exact format is platform-dependent. +// ClientInfoDeviceModel sets the optional parameter "clientInfo.deviceModel": +// Device model as reported by the device. The exact format is +// platform-dependent. func (c *FeaturetilesGetCall) ClientInfoDeviceModel(clientInfoDeviceModel string) *FeaturetilesGetCall { c.urlParams_.Set("clientInfo.deviceModel", clientInfoDeviceModel) return c } // ClientInfoOperatingSystem sets the optional parameter -// "clientInfo.operatingSystem": Operating system name and version as -// reported by the OS. For example, "Mac OS X 10.10.4". The exact format -// is platform-dependent. +// "clientInfo.operatingSystem": Operating system name and version as reported +// by the OS. For example, "Mac OS X 10.10.4". The exact format is +// platform-dependent. func (c *FeaturetilesGetCall) ClientInfoOperatingSystem(clientInfoOperatingSystem string) *FeaturetilesGetCall { c.urlParams_.Set("clientInfo.operatingSystem", clientInfoOperatingSystem) return c @@ -1252,25 +1072,24 @@ func (c *FeaturetilesGetCall) ClientInfoPlatform(clientInfoPlatform string) *Fea return c } -// ClientInfoUserId sets the optional parameter "clientInfo.userId": -// Required. A client-generated user ID. The ID should be generated and -// persisted during the first user session or whenever a pre-existing ID -// is not found. The exact format is up to the client. This must be -// non-empty in a GetFeatureTileRequest (whether via the header or +// ClientInfoUserId sets the optional parameter "clientInfo.userId": Required. +// A client-generated user ID. The ID should be generated and persisted during +// the first user session or whenever a pre-existing ID is not found. The exact +// format is up to the client. This must be non-empty in a +// GetFeatureTileRequest (whether via the header or // GetFeatureTileRequest.client_info). func (c *FeaturetilesGetCall) ClientInfoUserId(clientInfoUserId string) *FeaturetilesGetCall { c.urlParams_.Set("clientInfo.userId", clientInfoUserId) return c } -// ClientTileVersionId sets the optional parameter -// "clientTileVersionId": Optional version id identifying the tile that -// is already in the client's cache. This field should be populated with -// the most recent version_id value returned by the API for the -// requested tile. If the version id is empty the server always returns -// a newly rendered tile. If it is provided the server checks if the -// tile contents would be identical to one that's already on the client, -// and if so, returns a stripped-down response tile with +// ClientTileVersionId sets the optional parameter "clientTileVersionId": +// Optional version id identifying the tile that is already in the client's +// cache. This field should be populated with the most recent version_id value +// returned by the API for the requested tile. If the version id is empty the +// server always returns a newly rendered tile. If it is provided the server +// checks if the tile contents would be identical to one that's already on the +// client, and if so, returns a stripped-down response tile with // STATUS_OK_DATA_UNCHANGED instead. func (c *FeaturetilesGetCall) ClientTileVersionId(clientTileVersionId string) *FeaturetilesGetCall { c.urlParams_.Set("clientTileVersionId", clientTileVersionId) @@ -1278,45 +1097,43 @@ func (c *FeaturetilesGetCall) ClientTileVersionId(clientTileVersionId string) *F } // EnableDetailedHighwayTypes sets the optional parameter -// "enableDetailedHighwayTypes": Flag indicating whether detailed -// highway types should be returned. If this is set, the -// CONTROLLED_ACCESS_HIGHWAY type may be returned. If not, then these -// highways will have the generic HIGHWAY type. This exists for -// backwards compatibility reasons. +// "enableDetailedHighwayTypes": Flag indicating whether detailed highway types +// should be returned. If this is set, the CONTROLLED_ACCESS_HIGHWAY type may +// be returned. If not, then these highways will have the generic HIGHWAY type. +// This exists for backwards compatibility reasons. func (c *FeaturetilesGetCall) EnableDetailedHighwayTypes(enableDetailedHighwayTypes bool) *FeaturetilesGetCall { c.urlParams_.Set("enableDetailedHighwayTypes", fmt.Sprint(enableDetailedHighwayTypes)) return c } -// EnableFeatureNames sets the optional parameter "enableFeatureNames": -// Flag indicating whether human-readable names should be returned for -// features. If this is set, the display_name field on the feature will -// be filled out. +// EnableFeatureNames sets the optional parameter "enableFeatureNames": Flag +// indicating whether human-readable names should be returned for features. If +// this is set, the display_name field on the feature will be filled out. func (c *FeaturetilesGetCall) EnableFeatureNames(enableFeatureNames bool) *FeaturetilesGetCall { c.urlParams_.Set("enableFeatureNames", fmt.Sprint(enableFeatureNames)) return c } -// EnableModeledVolumes sets the optional parameter -// "enableModeledVolumes": Flag indicating whether 3D building models -// should be enabled. If this is set structures will be returned as 3D -// modeled volumes rather than 2.5D extruded areas where possible. +// EnableModeledVolumes sets the optional parameter "enableModeledVolumes": +// Flag indicating whether 3D building models should be enabled. If this is set +// structures will be returned as 3D modeled volumes rather than 2.5D extruded +// areas where possible. func (c *FeaturetilesGetCall) EnableModeledVolumes(enableModeledVolumes bool) *FeaturetilesGetCall { c.urlParams_.Set("enableModeledVolumes", fmt.Sprint(enableModeledVolumes)) return c } // EnablePoliticalFeatures sets the optional parameter -// "enablePoliticalFeatures": Flag indicating whether political features -// should be returned. +// "enablePoliticalFeatures": Flag indicating whether political features should +// be returned. func (c *FeaturetilesGetCall) EnablePoliticalFeatures(enablePoliticalFeatures bool) *FeaturetilesGetCall { c.urlParams_.Set("enablePoliticalFeatures", fmt.Sprint(enablePoliticalFeatures)) return c } -// EnablePrivateRoads sets the optional parameter "enablePrivateRoads": -// Flag indicating whether the returned tile will contain road features -// that are marked private. Private roads are indicated by the +// EnablePrivateRoads sets the optional parameter "enablePrivateRoads": Flag +// indicating whether the returned tile will contain road features that are +// marked private. Private roads are indicated by the // Feature.segment_info.road_info.is_private field. func (c *FeaturetilesGetCall) EnablePrivateRoads(enablePrivateRoads bool) *FeaturetilesGetCall { c.urlParams_.Set("enablePrivateRoads", fmt.Sprint(enablePrivateRoads)) @@ -1324,62 +1141,57 @@ func (c *FeaturetilesGetCall) EnablePrivateRoads(enablePrivateRoads bool) *Featu } // EnableUnclippedBuildings sets the optional parameter -// "enableUnclippedBuildings": Flag indicating whether unclipped -// buildings should be returned. If this is set, building render ops -// will extend beyond the tile boundary. Buildings will only be returned -// on the tile that contains their centroid. +// "enableUnclippedBuildings": Flag indicating whether unclipped buildings +// should be returned. If this is set, building render ops will extend beyond +// the tile boundary. Buildings will only be returned on the tile that contains +// their centroid. func (c *FeaturetilesGetCall) EnableUnclippedBuildings(enableUnclippedBuildings bool) *FeaturetilesGetCall { c.urlParams_.Set("enableUnclippedBuildings", fmt.Sprint(enableUnclippedBuildings)) return c } -// LanguageCode sets the optional parameter "languageCode": Required. -// The BCP-47 language code corresponding to the language in which the -// name was requested, such as "en-US" or "sr-Latn". For more -// information, see +// LanguageCode sets the optional parameter "languageCode": Required. The +// BCP-47 language code corresponding to the language in which the name was +// requested, such as "en-US" or "sr-Latn". For more information, see // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. func (c *FeaturetilesGetCall) LanguageCode(languageCode string) *FeaturetilesGetCall { c.urlParams_.Set("languageCode", languageCode) return c } -// RegionCode sets the optional parameter "regionCode": Required. The -// Unicode country/region code (CLDR) of the location from which the -// request is coming from, such as "US" and "419". For more information, -// see http://www.unicode.org/reports/tr35/#unicode_region_subtag. +// RegionCode sets the optional parameter "regionCode": Required. The Unicode +// country/region code (CLDR) of the location from which the request is coming +// from, such as "US" and "419". For more information, see +// http://www.unicode.org/reports/tr35/#unicode_region_subtag. func (c *FeaturetilesGetCall) RegionCode(regionCode string) *FeaturetilesGetCall { c.urlParams_.Set("regionCode", regionCode) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *FeaturetilesGetCall) Fields(s ...googleapi.Field) *FeaturetilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *FeaturetilesGetCall) IfNoneMatch(entityTag string) *FeaturetilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *FeaturetilesGetCall) Context(ctx context.Context) *FeaturetilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *FeaturetilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1388,12 +1200,7 @@ func (c *FeaturetilesGetCall) Header() http.Header { } func (c *FeaturetilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210929") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1410,16 +1217,14 @@ func (c *FeaturetilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vectortile.featuretiles.get" call. -// Exactly one of *FeatureTile or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *FeatureTile.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *FeatureTile.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *FeaturetilesGetCall) Do(opts ...googleapi.CallOption) (*FeatureTile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1427,17 +1232,17 @@ func (c *FeaturetilesGetCall) Do(opts ...googleapi.CallOption) (*FeatureTile, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &FeatureTile{ ServerResponse: googleapi.ServerResponse{ @@ -1450,137 +1255,7 @@ func (c *FeaturetilesGetCall) Do(opts ...googleapi.CallOption) (*FeatureTile, er return nil, err } return ret, nil - // { - // "description": "Gets a feature tile by its tile resource name.", - // "flatPath": "v1/featuretiles/{featuretilesId}", - // "httpMethod": "GET", - // "id": "vectortile.featuretiles.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "alwaysIncludeBuildingFootprints": { - // "description": "Flag indicating whether the returned tile will always contain 2.5D footprints for structures. If enabled_modeled_volumes is set, this will mean that structures will have both their 3D models and 2.5D footprints returned.", - // "location": "query", - // "type": "boolean" - // }, - // "clientInfo.apiClient": { - // "description": "API client name and version. For example, the SDK calling the API. The exact format is up to the client.", - // "location": "query", - // "type": "string" - // }, - // "clientInfo.applicationId": { - // "description": "Application ID, such as the package name on Android and the bundle identifier on iOS platforms.", - // "location": "query", - // "type": "string" - // }, - // "clientInfo.applicationVersion": { - // "description": "Application version number, such as \"1.2.3\". The exact format is application-dependent.", - // "location": "query", - // "type": "string" - // }, - // "clientInfo.deviceModel": { - // "description": "Device model as reported by the device. The exact format is platform-dependent.", - // "location": "query", - // "type": "string" - // }, - // "clientInfo.operatingSystem": { - // "description": "Operating system name and version as reported by the OS. For example, \"Mac OS X 10.10.4\". The exact format is platform-dependent.", - // "location": "query", - // "type": "string" - // }, - // "clientInfo.platform": { - // "description": "Platform where the application is running.", - // "enum": [ - // "PLATFORM_UNSPECIFIED", - // "EDITOR", - // "MAC_OS", - // "WINDOWS", - // "LINUX", - // "ANDROID", - // "IOS", - // "WEB_GL" - // ], - // "enumDescriptions": [ - // "Unspecified or unknown OS.", - // "Development environment.", - // "macOS.", - // "Windows.", - // "Linux", - // "Android", - // "iOS", - // "WebGL." - // ], - // "location": "query", - // "type": "string" - // }, - // "clientInfo.userId": { - // "description": "Required. A client-generated user ID. The ID should be generated and persisted during the first user session or whenever a pre-existing ID is not found. The exact format is up to the client. This must be non-empty in a GetFeatureTileRequest (whether via the header or GetFeatureTileRequest.client_info).", - // "location": "query", - // "type": "string" - // }, - // "clientTileVersionId": { - // "description": "Optional version id identifying the tile that is already in the client's cache. This field should be populated with the most recent version_id value returned by the API for the requested tile. If the version id is empty the server always returns a newly rendered tile. If it is provided the server checks if the tile contents would be identical to one that's already on the client, and if so, returns a stripped-down response tile with STATUS_OK_DATA_UNCHANGED instead.", - // "location": "query", - // "type": "string" - // }, - // "enableDetailedHighwayTypes": { - // "description": "Flag indicating whether detailed highway types should be returned. If this is set, the CONTROLLED_ACCESS_HIGHWAY type may be returned. If not, then these highways will have the generic HIGHWAY type. This exists for backwards compatibility reasons.", - // "location": "query", - // "type": "boolean" - // }, - // "enableFeatureNames": { - // "description": "Flag indicating whether human-readable names should be returned for features. If this is set, the display_name field on the feature will be filled out.", - // "location": "query", - // "type": "boolean" - // }, - // "enableModeledVolumes": { - // "description": "Flag indicating whether 3D building models should be enabled. If this is set structures will be returned as 3D modeled volumes rather than 2.5D extruded areas where possible.", - // "location": "query", - // "type": "boolean" - // }, - // "enablePoliticalFeatures": { - // "description": "Flag indicating whether political features should be returned.", - // "location": "query", - // "type": "boolean" - // }, - // "enablePrivateRoads": { - // "description": "Flag indicating whether the returned tile will contain road features that are marked private. Private roads are indicated by the Feature.segment_info.road_info.is_private field.", - // "location": "query", - // "type": "boolean" - // }, - // "enableUnclippedBuildings": { - // "description": "Flag indicating whether unclipped buildings should be returned. If this is set, building render ops will extend beyond the tile boundary. Buildings will only be returned on the tile that contains their centroid.", - // "location": "query", - // "type": "boolean" - // }, - // "languageCode": { - // "description": "Required. The BCP-47 language code corresponding to the language in which the name was requested, such as \"en-US\" or \"sr-Latn\". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. Resource name of the tile. The tile resource name is prefixed by its collection ID `tiles/` followed by the resource ID, which encodes the tile's global x and y coordinates and zoom level as `@,,z`. For example, `tiles/@1,2,3z`.", - // "location": "path", - // "pattern": "^featuretiles/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "regionCode": { - // "description": "Required. The Unicode country/region code (CLDR) of the location from which the request is coming from, such as \"US\" and \"419\". For more information, see http://www.unicode.org/reports/tr35/#unicode_region_subtag.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "FeatureTile" - // } - // } - -} - -// method id "vectortile.terraintiles.get": +} type TerraintilesGetCall struct { s *Service @@ -1593,10 +1268,10 @@ type TerraintilesGetCall struct { // Get: Gets a terrain tile by its tile resource name. // -// - name: Resource name of the tile. The tile resource name is prefixed -// by its collection ID `terraintiles/` followed by the resource ID, -// which encodes the tile's global x and y coordinates and zoom level -// as `@,,z`. For example, `terraintiles/@1,2,3z`. +// - name: Resource name of the tile. The tile resource name is prefixed by its +// collection ID `terraintiles/` followed by the resource ID, which encodes +// the tile's global x and y coordinates and zoom level as `@,,z`. For +// example, `terraintiles/@1,2,3z`. func (r *TerraintilesService) Get(name string) *TerraintilesGetCall { c := &TerraintilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1605,24 +1280,24 @@ func (r *TerraintilesService) Get(name string) *TerraintilesGetCall { // AltitudePrecisionCentimeters sets the optional parameter // "altitudePrecisionCentimeters": The precision of terrain altitudes in -// centimeters. Possible values: between 1 (cm level precision) and -// 1,000,000 (10-kilometer level precision). +// centimeters. Possible values: between 1 (cm level precision) and 1,000,000 +// (10-kilometer level precision). func (c *TerraintilesGetCall) AltitudePrecisionCentimeters(altitudePrecisionCentimeters int64) *TerraintilesGetCall { c.urlParams_.Set("altitudePrecisionCentimeters", fmt.Sprint(altitudePrecisionCentimeters)) return c } -// ClientInfoApiClient sets the optional parameter -// "clientInfo.apiClient": API client name and version. For example, the -// SDK calling the API. The exact format is up to the client. +// ClientInfoApiClient sets the optional parameter "clientInfo.apiClient": API +// client name and version. For example, the SDK calling the API. The exact +// format is up to the client. func (c *TerraintilesGetCall) ClientInfoApiClient(clientInfoApiClient string) *TerraintilesGetCall { c.urlParams_.Set("clientInfo.apiClient", clientInfoApiClient) return c } // ClientInfoApplicationId sets the optional parameter -// "clientInfo.applicationId": Application ID, such as the package name -// on Android and the bundle identifier on iOS platforms. +// "clientInfo.applicationId": Application ID, such as the package name on +// Android and the bundle identifier on iOS platforms. func (c *TerraintilesGetCall) ClientInfoApplicationId(clientInfoApplicationId string) *TerraintilesGetCall { c.urlParams_.Set("clientInfo.applicationId", clientInfoApplicationId) return c @@ -1636,18 +1311,18 @@ func (c *TerraintilesGetCall) ClientInfoApplicationVersion(clientInfoApplication return c } -// ClientInfoDeviceModel sets the optional parameter -// "clientInfo.deviceModel": Device model as reported by the device. The -// exact format is platform-dependent. +// ClientInfoDeviceModel sets the optional parameter "clientInfo.deviceModel": +// Device model as reported by the device. The exact format is +// platform-dependent. func (c *TerraintilesGetCall) ClientInfoDeviceModel(clientInfoDeviceModel string) *TerraintilesGetCall { c.urlParams_.Set("clientInfo.deviceModel", clientInfoDeviceModel) return c } // ClientInfoOperatingSystem sets the optional parameter -// "clientInfo.operatingSystem": Operating system name and version as -// reported by the OS. For example, "Mac OS X 10.10.4". The exact format -// is platform-dependent. +// "clientInfo.operatingSystem": Operating system name and version as reported +// by the OS. For example, "Mac OS X 10.10.4". The exact format is +// platform-dependent. func (c *TerraintilesGetCall) ClientInfoOperatingSystem(clientInfoOperatingSystem string) *TerraintilesGetCall { c.urlParams_.Set("clientInfo.operatingSystem", clientInfoOperatingSystem) return c @@ -1671,11 +1346,11 @@ func (c *TerraintilesGetCall) ClientInfoPlatform(clientInfoPlatform string) *Ter return c } -// ClientInfoUserId sets the optional parameter "clientInfo.userId": -// Required. A client-generated user ID. The ID should be generated and -// persisted during the first user session or whenever a pre-existing ID -// is not found. The exact format is up to the client. This must be -// non-empty in a GetFeatureTileRequest (whether via the header or +// ClientInfoUserId sets the optional parameter "clientInfo.userId": Required. +// A client-generated user ID. The ID should be generated and persisted during +// the first user session or whenever a pre-existing ID is not found. The exact +// format is up to the client. This must be non-empty in a +// GetFeatureTileRequest (whether via the header or // GetFeatureTileRequest.client_info). func (c *TerraintilesGetCall) ClientInfoUserId(clientInfoUserId string) *TerraintilesGetCall { c.urlParams_.Set("clientInfo.userId", clientInfoUserId) @@ -1684,13 +1359,12 @@ func (c *TerraintilesGetCall) ClientInfoUserId(clientInfoUserId string) *Terrain // MaxElevationResolutionCells sets the optional parameter // "maxElevationResolutionCells": The maximum allowed resolution for the -// returned elevation heightmap. Possible values: between 1 and 1024 -// (and not less than min_elevation_resolution_cells). Over-sized -// heightmaps will be non-uniformly down-sampled such that each edge is -// no longer than this value. Non-uniformity is chosen to maximise the -// amount of preserved data. For example: Original resolution: 100px -// (width) * 30px (height) max_elevation_resolution: 30 New resolution: -// 30px (width) * 30px (height) +// returned elevation heightmap. Possible values: between 1 and 1024 (and not +// less than min_elevation_resolution_cells). Over-sized heightmaps will be +// non-uniformly down-sampled such that each edge is no longer than this value. +// Non-uniformity is chosen to maximise the amount of preserved data. For +// example: Original resolution: 100px (width) * 30px (height) +// max_elevation_resolution: 30 New resolution: 30px (width) * 30px (height) func (c *TerraintilesGetCall) MaxElevationResolutionCells(maxElevationResolutionCells int64) *TerraintilesGetCall { c.urlParams_.Set("maxElevationResolutionCells", fmt.Sprint(maxElevationResolutionCells)) return c @@ -1700,29 +1374,24 @@ func (c *TerraintilesGetCall) MaxElevationResolutionCells(maxElevationResolution // "minElevationResolutionCells": api-linter: // core::0131::request-unknown-fields=disabled aip.dev/not-precedent: // Maintaining existing request parameter pattern. The minimum allowed -// resolution for the returned elevation heightmap. Possible values: -// between 0 and 1024 (and not more than -// max_elevation_resolution_cells). Zero is supported for backward -// compatibility. Under-sized heightmaps will be non-uniformly -// up-sampled such that each edge is no shorter than this value. -// Non-uniformity is chosen to maximise the amount of preserved data. -// For example: Original resolution: 30px (width) * 10px (height) -// min_elevation_resolution: 30 New resolution: 30px (width) * 30px -// (height) +// resolution for the returned elevation heightmap. Possible values: between 0 +// and 1024 (and not more than max_elevation_resolution_cells). Zero is +// supported for backward compatibility. Under-sized heightmaps will be +// non-uniformly up-sampled such that each edge is no shorter than this value. +// Non-uniformity is chosen to maximise the amount of preserved data. For +// example: Original resolution: 30px (width) * 10px (height) +// min_elevation_resolution: 30 New resolution: 30px (width) * 30px (height) func (c *TerraintilesGetCall) MinElevationResolutionCells(minElevationResolutionCells int64) *TerraintilesGetCall { c.urlParams_.Set("minElevationResolutionCells", fmt.Sprint(minElevationResolutionCells)) return c } -// TerrainFormats sets the optional parameter "terrainFormats": Terrain -// formats that the client understands. +// TerrainFormats sets the optional parameter "terrainFormats": Terrain formats +// that the client understands. // // Possible values: // -// "TERRAIN_FORMAT_UNKNOWN" - An unknown or unspecified terrain -// -// format. -// +// "TERRAIN_FORMAT_UNKNOWN" - An unknown or unspecified terrain format. // "FIRST_DERIVATIVE" - Terrain elevation data encoded as a // // FirstDerivativeElevationGrid. . @@ -1736,33 +1405,29 @@ func (c *TerraintilesGetCall) TerrainFormats(terrainFormats ...string) *Terraint } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *TerraintilesGetCall) Fields(s ...googleapi.Field) *TerraintilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *TerraintilesGetCall) IfNoneMatch(entityTag string) *TerraintilesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *TerraintilesGetCall) Context(ctx context.Context) *TerraintilesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *TerraintilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1771,12 +1436,7 @@ func (c *TerraintilesGetCall) Header() http.Header { } func (c *TerraintilesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210929") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1793,16 +1453,14 @@ func (c *TerraintilesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vectortile.terraintiles.get" call. -// Exactly one of *TerrainTile or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *TerrainTile.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *TerrainTile.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *TerraintilesGetCall) Do(opts ...googleapi.CallOption) (*TerrainTile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1810,17 +1468,17 @@ func (c *TerraintilesGetCall) Do(opts ...googleapi.CallOption) (*TerrainTile, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &TerrainTile{ ServerResponse: googleapi.ServerResponse{ @@ -1833,116 +1491,4 @@ func (c *TerraintilesGetCall) Do(opts ...googleapi.CallOption) (*TerrainTile, er return nil, err } return ret, nil - // { - // "description": "Gets a terrain tile by its tile resource name.", - // "flatPath": "v1/terraintiles/{terraintilesId}", - // "httpMethod": "GET", - // "id": "vectortile.terraintiles.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "altitudePrecisionCentimeters": { - // "description": "The precision of terrain altitudes in centimeters. Possible values: between 1 (cm level precision) and 1,000,000 (10-kilometer level precision).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "clientInfo.apiClient": { - // "description": "API client name and version. For example, the SDK calling the API. The exact format is up to the client.", - // "location": "query", - // "type": "string" - // }, - // "clientInfo.applicationId": { - // "description": "Application ID, such as the package name on Android and the bundle identifier on iOS platforms.", - // "location": "query", - // "type": "string" - // }, - // "clientInfo.applicationVersion": { - // "description": "Application version number, such as \"1.2.3\". The exact format is application-dependent.", - // "location": "query", - // "type": "string" - // }, - // "clientInfo.deviceModel": { - // "description": "Device model as reported by the device. The exact format is platform-dependent.", - // "location": "query", - // "type": "string" - // }, - // "clientInfo.operatingSystem": { - // "description": "Operating system name and version as reported by the OS. For example, \"Mac OS X 10.10.4\". The exact format is platform-dependent.", - // "location": "query", - // "type": "string" - // }, - // "clientInfo.platform": { - // "description": "Platform where the application is running.", - // "enum": [ - // "PLATFORM_UNSPECIFIED", - // "EDITOR", - // "MAC_OS", - // "WINDOWS", - // "LINUX", - // "ANDROID", - // "IOS", - // "WEB_GL" - // ], - // "enumDescriptions": [ - // "Unspecified or unknown OS.", - // "Development environment.", - // "macOS.", - // "Windows.", - // "Linux", - // "Android", - // "iOS", - // "WebGL." - // ], - // "location": "query", - // "type": "string" - // }, - // "clientInfo.userId": { - // "description": "Required. A client-generated user ID. The ID should be generated and persisted during the first user session or whenever a pre-existing ID is not found. The exact format is up to the client. This must be non-empty in a GetFeatureTileRequest (whether via the header or GetFeatureTileRequest.client_info).", - // "location": "query", - // "type": "string" - // }, - // "maxElevationResolutionCells": { - // "description": "The maximum allowed resolution for the returned elevation heightmap. Possible values: between 1 and 1024 (and not less than min_elevation_resolution_cells). Over-sized heightmaps will be non-uniformly down-sampled such that each edge is no longer than this value. Non-uniformity is chosen to maximise the amount of preserved data. For example: Original resolution: 100px (width) * 30px (height) max_elevation_resolution: 30 New resolution: 30px (width) * 30px (height)", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "minElevationResolutionCells": { - // "description": " api-linter: core::0131::request-unknown-fields=disabled aip.dev/not-precedent: Maintaining existing request parameter pattern. The minimum allowed resolution for the returned elevation heightmap. Possible values: between 0 and 1024 (and not more than max_elevation_resolution_cells). Zero is supported for backward compatibility. Under-sized heightmaps will be non-uniformly up-sampled such that each edge is no shorter than this value. Non-uniformity is chosen to maximise the amount of preserved data. For example: Original resolution: 30px (width) * 10px (height) min_elevation_resolution: 30 New resolution: 30px (width) * 30px (height)", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "name": { - // "description": "Required. Resource name of the tile. The tile resource name is prefixed by its collection ID `terraintiles/` followed by the resource ID, which encodes the tile's global x and y coordinates and zoom level as `@,,z`. For example, `terraintiles/@1,2,3z`.", - // "location": "path", - // "pattern": "^terraintiles/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "terrainFormats": { - // "description": "Terrain formats that the client understands.", - // "enum": [ - // "TERRAIN_FORMAT_UNKNOWN", - // "FIRST_DERIVATIVE", - // "SECOND_DERIVATIVE" - // ], - // "enumDescriptions": [ - // "An unknown or unspecified terrain format.", - // "Terrain elevation data encoded as a FirstDerivativeElevationGrid. .", - // "Terrain elevation data encoded as a SecondDerivativeElevationGrid." - // ], - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "TerrainTile" - // } - // } - } diff --git a/verifiedaccess/v1/verifiedaccess-gen.go b/verifiedaccess/v1/verifiedaccess-gen.go index a2ca2921bde..103a3045026 100644 --- a/verifiedaccess/v1/verifiedaccess-gen.go +++ b/verifiedaccess/v1/verifiedaccess-gen.go @@ -347,7 +347,7 @@ func (c *ChallengeCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "verifiedaccess.challenge.create" call. @@ -441,7 +441,7 @@ func (c *ChallengeVerifyCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "verifiedaccess.challenge.verify" call. diff --git a/verifiedaccess/v2/verifiedaccess-gen.go b/verifiedaccess/v2/verifiedaccess-gen.go index cbd52cb9d3f..3b4612f28a9 100644 --- a/verifiedaccess/v2/verifiedaccess-gen.go +++ b/verifiedaccess/v2/verifiedaccess-gen.go @@ -575,7 +575,7 @@ func (c *ChallengeGenerateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "verifiedaccess.challenge.generate" call. @@ -669,7 +669,7 @@ func (c *ChallengeVerifyCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "verifiedaccess.challenge.verify" call. diff --git a/versionhistory/v1/versionhistory-gen.go b/versionhistory/v1/versionhistory-gen.go index 12bf0be28ce..90ea0c9441e 100644 --- a/versionhistory/v1/versionhistory-gen.go +++ b/versionhistory/v1/versionhistory-gen.go @@ -584,7 +584,7 @@ func (c *PlatformsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "versionhistory.platforms.list" call. @@ -730,7 +730,7 @@ func (c *PlatformsChannelsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "versionhistory.platforms.channels.list" call. @@ -907,7 +907,7 @@ func (c *PlatformsChannelsVersionsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "versionhistory.platforms.channels.versions.list" call. @@ -1089,7 +1089,7 @@ func (c *PlatformsChannelsVersionsReleasesListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "versionhistory.platforms.channels.versions.releases.list" call. diff --git a/videointelligence/v1/videointelligence-gen.go b/videointelligence/v1/videointelligence-gen.go index 8c52940208b..6b3b92a6aab 100644 --- a/videointelligence/v1/videointelligence-gen.go +++ b/videointelligence/v1/videointelligence-gen.go @@ -6875,7 +6875,7 @@ func (c *OperationsProjectsLocationsOperationsCancelCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.operations.projects.locations.operations.cancel" call. @@ -6974,7 +6974,7 @@ func (c *OperationsProjectsLocationsOperationsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.operations.projects.locations.operations.delete" call. @@ -7084,7 +7084,7 @@ func (c *OperationsProjectsLocationsOperationsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.operations.projects.locations.operations.get" call. @@ -7194,7 +7194,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.projects.locations.operations.cancel" call. @@ -7293,7 +7293,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.projects.locations.operations.delete" call. @@ -7403,7 +7403,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.projects.locations.operations.get" call. @@ -7532,7 +7532,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.projects.locations.operations.list" call. @@ -7651,7 +7651,7 @@ func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.videos.annotate" call. diff --git a/videointelligence/v1beta2/videointelligence-gen.go b/videointelligence/v1beta2/videointelligence-gen.go index bd8eac9d400..8918831c87f 100644 --- a/videointelligence/v1beta2/videointelligence-gen.go +++ b/videointelligence/v1beta2/videointelligence-gen.go @@ -6741,7 +6741,7 @@ func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.videos.annotate" call. diff --git a/videointelligence/v1p1beta1/videointelligence-gen.go b/videointelligence/v1p1beta1/videointelligence-gen.go index 4780641d9a3..a3da431ddb6 100644 --- a/videointelligence/v1p1beta1/videointelligence-gen.go +++ b/videointelligence/v1p1beta1/videointelligence-gen.go @@ -6741,7 +6741,7 @@ func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.videos.annotate" call. diff --git a/videointelligence/v1p2beta1/videointelligence-gen.go b/videointelligence/v1p2beta1/videointelligence-gen.go index f8551549af1..d986e9c3655 100644 --- a/videointelligence/v1p2beta1/videointelligence-gen.go +++ b/videointelligence/v1p2beta1/videointelligence-gen.go @@ -6741,7 +6741,7 @@ func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.videos.annotate" call. diff --git a/videointelligence/v1p3beta1/videointelligence-gen.go b/videointelligence/v1p3beta1/videointelligence-gen.go index 5b69665ce95..af605149a83 100644 --- a/videointelligence/v1p3beta1/videointelligence-gen.go +++ b/videointelligence/v1p3beta1/videointelligence-gen.go @@ -6742,7 +6742,7 @@ func (c *VideosAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "videointelligence.videos.annotate" call. diff --git a/vision/v1/vision-gen.go b/vision/v1/vision-gen.go index bd095933334..849d679579c 100644 --- a/vision/v1/vision-gen.go +++ b/vision/v1/vision-gen.go @@ -11522,7 +11522,7 @@ func (c *FilesAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.files.annotate" call. @@ -11622,7 +11622,7 @@ func (c *FilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.files.asyncBatchAnnotate" call. @@ -11716,7 +11716,7 @@ func (c *ImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.images.annotate" call. @@ -11817,7 +11817,7 @@ func (c *ImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.images.asyncBatchAnnotate" call. @@ -11926,7 +11926,7 @@ func (c *LocationsOperationsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.locations.operations.get" call. @@ -12035,7 +12035,7 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.operations.cancel" call. @@ -12133,7 +12133,7 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.operations.delete" call. @@ -12242,7 +12242,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.operations.get" call. @@ -12370,7 +12370,7 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.operations.list" call. @@ -12502,7 +12502,7 @@ func (c *ProjectsFilesAnnotateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.files.annotate" call. @@ -12613,7 +12613,7 @@ func (c *ProjectsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.files.asyncBatchAnnotate" call. @@ -12718,7 +12718,7 @@ func (c *ProjectsImagesAnnotateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.images.annotate" call. @@ -12830,7 +12830,7 @@ func (c *ProjectsImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.images.asyncBatchAnnotate" call. @@ -12940,7 +12940,7 @@ func (c *ProjectsLocationsFilesAnnotateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.files.annotate" call. @@ -13051,7 +13051,7 @@ func (c *ProjectsLocationsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.files.asyncBatchAnnotate" call. @@ -13156,7 +13156,7 @@ func (c *ProjectsLocationsImagesAnnotateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.images.annotate" call. @@ -13268,7 +13268,7 @@ func (c *ProjectsLocationsImagesAsyncBatchAnnotateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.images.asyncBatchAnnotate" call. @@ -13377,7 +13377,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.operations.get" call. @@ -13482,7 +13482,7 @@ func (c *ProjectsLocationsProductSetsAddProductCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.productSets.addProduct" call. @@ -13596,7 +13596,7 @@ func (c *ProjectsLocationsProductSetsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.productSets.create" call. @@ -13694,7 +13694,7 @@ func (c *ProjectsLocationsProductSetsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.productSets.delete" call. @@ -13803,7 +13803,7 @@ func (c *ProjectsLocationsProductSetsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.productSets.get" call. @@ -13912,7 +13912,7 @@ func (c *ProjectsLocationsProductSetsImportCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.productSets.import" call. @@ -14035,7 +14035,7 @@ func (c *ProjectsLocationsProductSetsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.productSets.list" call. @@ -14171,7 +14171,7 @@ func (c *ProjectsLocationsProductSetsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.productSets.patch" call. @@ -14273,7 +14273,7 @@ func (c *ProjectsLocationsProductSetsRemoveProductCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.productSets.removeProduct" call. @@ -14398,7 +14398,7 @@ func (c *ProjectsLocationsProductSetsProductsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.productSets.products.list" call. @@ -14536,7 +14536,7 @@ func (c *ProjectsLocationsProductsCreateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.products.create" call. @@ -14635,7 +14635,7 @@ func (c *ProjectsLocationsProductsDeleteCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.products.delete" call. @@ -14744,7 +14744,7 @@ func (c *ProjectsLocationsProductsGetCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.products.get" call. @@ -14867,7 +14867,7 @@ func (c *ProjectsLocationsProductsListCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.products.list" call. @@ -15009,7 +15009,7 @@ func (c *ProjectsLocationsProductsPatchCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.products.patch" call. @@ -15127,7 +15127,7 @@ func (c *ProjectsLocationsProductsPurgeCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.products.purge" call. @@ -15251,7 +15251,7 @@ func (c *ProjectsLocationsProductsReferenceImagesCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.products.referenceImages.create" call. @@ -15351,7 +15351,7 @@ func (c *ProjectsLocationsProductsReferenceImagesDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.products.referenceImages.delete" call. @@ -15461,7 +15461,7 @@ func (c *ProjectsLocationsProductsReferenceImagesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.products.referenceImages.get" call. @@ -15587,7 +15587,7 @@ func (c *ProjectsLocationsProductsReferenceImagesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.products.referenceImages.list" call. @@ -15718,7 +15718,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.operations.get" call. diff --git a/vision/v1p1beta1/vision-gen.go b/vision/v1p1beta1/vision-gen.go index b5aaa0a6567..cfa39411990 100644 --- a/vision/v1p1beta1/vision-gen.go +++ b/vision/v1p1beta1/vision-gen.go @@ -11037,7 +11037,7 @@ func (c *FilesAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.files.annotate" call. @@ -11137,7 +11137,7 @@ func (c *FilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.files.asyncBatchAnnotate" call. @@ -11231,7 +11231,7 @@ func (c *ImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.images.annotate" call. @@ -11332,7 +11332,7 @@ func (c *ImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.images.asyncBatchAnnotate" call. @@ -11442,7 +11442,7 @@ func (c *ProjectsFilesAnnotateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.files.annotate" call. @@ -11553,7 +11553,7 @@ func (c *ProjectsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.files.asyncBatchAnnotate" call. @@ -11658,7 +11658,7 @@ func (c *ProjectsImagesAnnotateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.images.annotate" call. @@ -11770,7 +11770,7 @@ func (c *ProjectsImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.images.asyncBatchAnnotate" call. @@ -11880,7 +11880,7 @@ func (c *ProjectsLocationsFilesAnnotateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.files.annotate" call. @@ -11991,7 +11991,7 @@ func (c *ProjectsLocationsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.files.asyncBatchAnnotate" call. @@ -12096,7 +12096,7 @@ func (c *ProjectsLocationsImagesAnnotateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.images.annotate" call. @@ -12208,7 +12208,7 @@ func (c *ProjectsLocationsImagesAsyncBatchAnnotateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.images.asyncBatchAnnotate" call. diff --git a/vision/v1p2beta1/vision-gen.go b/vision/v1p2beta1/vision-gen.go index f6cd774549c..4e187b4516e 100644 --- a/vision/v1p2beta1/vision-gen.go +++ b/vision/v1p2beta1/vision-gen.go @@ -11037,7 +11037,7 @@ func (c *FilesAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.files.annotate" call. @@ -11137,7 +11137,7 @@ func (c *FilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.files.asyncBatchAnnotate" call. @@ -11231,7 +11231,7 @@ func (c *ImagesAnnotateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.images.annotate" call. @@ -11332,7 +11332,7 @@ func (c *ImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.images.asyncBatchAnnotate" call. @@ -11442,7 +11442,7 @@ func (c *ProjectsFilesAnnotateCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.files.annotate" call. @@ -11553,7 +11553,7 @@ func (c *ProjectsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.files.asyncBatchAnnotate" call. @@ -11658,7 +11658,7 @@ func (c *ProjectsImagesAnnotateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.images.annotate" call. @@ -11770,7 +11770,7 @@ func (c *ProjectsImagesAsyncBatchAnnotateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.images.asyncBatchAnnotate" call. @@ -11880,7 +11880,7 @@ func (c *ProjectsLocationsFilesAnnotateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.files.annotate" call. @@ -11991,7 +11991,7 @@ func (c *ProjectsLocationsFilesAsyncBatchAnnotateCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.files.asyncBatchAnnotate" call. @@ -12096,7 +12096,7 @@ func (c *ProjectsLocationsImagesAnnotateCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.images.annotate" call. @@ -12208,7 +12208,7 @@ func (c *ProjectsLocationsImagesAsyncBatchAnnotateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vision.projects.locations.images.asyncBatchAnnotate" call. diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index 00c170d7bb1..b7b47c67dd3 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -4113,7 +4113,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.get" call. @@ -4244,7 +4244,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.list" call. @@ -4367,7 +4367,7 @@ func (c *ProjectsLocationsGroupsAddGroupMigrationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "group": c.group, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.addGroupMigration" call. @@ -4491,7 +4491,7 @@ func (c *ProjectsLocationsGroupsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.create" call. @@ -4602,7 +4602,7 @@ func (c *ProjectsLocationsGroupsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.delete" call. @@ -4709,7 +4709,7 @@ func (c *ProjectsLocationsGroupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.get" call. @@ -4847,7 +4847,7 @@ func (c *ProjectsLocationsGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.list" call. @@ -4996,7 +4996,7 @@ func (c *ProjectsLocationsGroupsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.patch" call. @@ -5097,7 +5097,7 @@ func (c *ProjectsLocationsGroupsRemoveGroupMigrationCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "group": c.group, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.removeGroupMigration" call. @@ -5223,7 +5223,7 @@ func (c *ProjectsLocationsImageImportsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.create" call. @@ -5334,7 +5334,7 @@ func (c *ProjectsLocationsImageImportsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.delete" call. @@ -5441,7 +5441,7 @@ func (c *ProjectsLocationsImageImportsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.get" call. @@ -5581,7 +5581,7 @@ func (c *ProjectsLocationsImageImportsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.list" call. @@ -5704,7 +5704,7 @@ func (c *ProjectsLocationsImageImportsImageImportJobsCancelCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.imageImportJobs.cancel" call. @@ -5811,7 +5811,7 @@ func (c *ProjectsLocationsImageImportsImageImportJobsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.imageImportJobs.get" call. @@ -5951,7 +5951,7 @@ func (c *ProjectsLocationsImageImportsImageImportJobsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.imageImportJobs.list" call. @@ -6082,7 +6082,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.operations.cancel" call. @@ -6180,7 +6180,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.operations.delete" call. @@ -6289,7 +6289,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.operations.get" call. @@ -6417,7 +6417,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.operations.list" call. @@ -6563,7 +6563,7 @@ func (c *ProjectsLocationsSourcesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.create" call. @@ -6674,7 +6674,7 @@ func (c *ProjectsLocationsSourcesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.delete" call. @@ -6812,7 +6812,7 @@ func (c *ProjectsLocationsSourcesFetchInventoryCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "source": c.source, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.fetchInventory" call. @@ -6941,7 +6941,7 @@ func (c *ProjectsLocationsSourcesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.get" call. @@ -7079,7 +7079,7 @@ func (c *ProjectsLocationsSourcesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.list" call. @@ -7228,7 +7228,7 @@ func (c *ProjectsLocationsSourcesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.patch" call. @@ -7354,7 +7354,7 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.create" call. @@ -7465,7 +7465,7 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.delete" call. @@ -7572,7 +7572,7 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.get" call. @@ -7712,7 +7712,7 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.list" call. @@ -7836,7 +7836,7 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) doReq googleapi.Expand(req.URL, map[string]string{ "datacenterConnector": c.datacenterConnector, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance" call. @@ -7960,7 +7960,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.create" call. @@ -8055,7 +8055,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.delete" call. @@ -8158,7 +8158,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsFinalizeMigrationCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "migratingVm": c.migratingVm, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.finalizeMigration" call. @@ -8284,7 +8284,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.get" call. @@ -8441,7 +8441,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.list" call. @@ -8591,7 +8591,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.patch" call. @@ -8694,7 +8694,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsPauseMigrationCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "migratingVm": c.migratingVm, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.pauseMigration" call. @@ -8798,7 +8798,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsResumeMigrationCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "migratingVm": c.migratingVm, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.resumeMigration" call. @@ -8900,7 +8900,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsStartMigrationCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "migratingVm": c.migratingVm, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.startMigration" call. @@ -9001,7 +9001,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCloneJobsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cloneJobs.cancel" call. @@ -9125,7 +9125,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCloneJobsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cloneJobs.create" call. @@ -9232,7 +9232,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCloneJobsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cloneJobs.get" call. @@ -9371,7 +9371,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCloneJobsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cloneJobs.list" call. @@ -9494,7 +9494,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsCancelCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.cancel" call. @@ -9619,7 +9619,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsCreateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.create" call. @@ -9726,7 +9726,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.get" call. @@ -9865,7 +9865,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list" call. @@ -9994,7 +9994,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get" call. @@ -10133,7 +10133,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list" call. @@ -10282,7 +10282,7 @@ func (c *ProjectsLocationsSourcesUtilizationReportsCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.utilizationReports.create" call. @@ -10393,7 +10393,7 @@ func (c *ProjectsLocationsSourcesUtilizationReportsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.utilizationReports.delete" call. @@ -10520,7 +10520,7 @@ func (c *ProjectsLocationsSourcesUtilizationReportsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.utilizationReports.get" call. @@ -10680,7 +10680,7 @@ func (c *ProjectsLocationsSourcesUtilizationReportsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.utilizationReports.list" call. @@ -10828,7 +10828,7 @@ func (c *ProjectsLocationsTargetProjectsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.targetProjects.create" call. @@ -10940,7 +10940,7 @@ func (c *ProjectsLocationsTargetProjectsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.targetProjects.delete" call. @@ -11048,7 +11048,7 @@ func (c *ProjectsLocationsTargetProjectsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.targetProjects.get" call. @@ -11187,7 +11187,7 @@ func (c *ProjectsLocationsTargetProjectsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.targetProjects.list" call. @@ -11339,7 +11339,7 @@ func (c *ProjectsLocationsTargetProjectsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.targetProjects.patch" call. diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index 2487e4889bc..e293ebccbde 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -4250,7 +4250,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.get" call. @@ -4381,7 +4381,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.list" call. @@ -4504,7 +4504,7 @@ func (c *ProjectsLocationsGroupsAddGroupMigrationCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "group": c.group, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.addGroupMigration" call. @@ -4628,7 +4628,7 @@ func (c *ProjectsLocationsGroupsCreateCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.create" call. @@ -4739,7 +4739,7 @@ func (c *ProjectsLocationsGroupsDeleteCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.delete" call. @@ -4846,7 +4846,7 @@ func (c *ProjectsLocationsGroupsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.get" call. @@ -4984,7 +4984,7 @@ func (c *ProjectsLocationsGroupsListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.list" call. @@ -5133,7 +5133,7 @@ func (c *ProjectsLocationsGroupsPatchCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.patch" call. @@ -5234,7 +5234,7 @@ func (c *ProjectsLocationsGroupsRemoveGroupMigrationCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "group": c.group, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.groups.removeGroupMigration" call. @@ -5360,7 +5360,7 @@ func (c *ProjectsLocationsImageImportsCreateCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.create" call. @@ -5471,7 +5471,7 @@ func (c *ProjectsLocationsImageImportsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.delete" call. @@ -5578,7 +5578,7 @@ func (c *ProjectsLocationsImageImportsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.get" call. @@ -5718,7 +5718,7 @@ func (c *ProjectsLocationsImageImportsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.list" call. @@ -5841,7 +5841,7 @@ func (c *ProjectsLocationsImageImportsImageImportJobsCancelCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.imageImportJobs.cancel" call. @@ -5948,7 +5948,7 @@ func (c *ProjectsLocationsImageImportsImageImportJobsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.imageImportJobs.get" call. @@ -6088,7 +6088,7 @@ func (c *ProjectsLocationsImageImportsImageImportJobsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.imageImports.imageImportJobs.list" call. @@ -6219,7 +6219,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.operations.cancel" call. @@ -6317,7 +6317,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.operations.delete" call. @@ -6426,7 +6426,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.operations.get" call. @@ -6554,7 +6554,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.operations.list" call. @@ -6700,7 +6700,7 @@ func (c *ProjectsLocationsSourcesCreateCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.create" call. @@ -6811,7 +6811,7 @@ func (c *ProjectsLocationsSourcesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.delete" call. @@ -6949,7 +6949,7 @@ func (c *ProjectsLocationsSourcesFetchInventoryCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "source": c.source, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.fetchInventory" call. @@ -7078,7 +7078,7 @@ func (c *ProjectsLocationsSourcesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.get" call. @@ -7216,7 +7216,7 @@ func (c *ProjectsLocationsSourcesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.list" call. @@ -7365,7 +7365,7 @@ func (c *ProjectsLocationsSourcesPatchCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.patch" call. @@ -7491,7 +7491,7 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.create" call. @@ -7602,7 +7602,7 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.delete" call. @@ -7709,7 +7709,7 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.get" call. @@ -7849,7 +7849,7 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.list" call. @@ -7973,7 +7973,7 @@ func (c *ProjectsLocationsSourcesDatacenterConnectorsUpgradeApplianceCall) doReq googleapi.Expand(req.URL, map[string]string{ "datacenterConnector": c.datacenterConnector, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.datacenterConnectors.upgradeAppliance" call. @@ -8097,7 +8097,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.create" call. @@ -8192,7 +8192,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.delete" call. @@ -8295,7 +8295,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsFinalizeMigrationCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "migratingVm": c.migratingVm, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.finalizeMigration" call. @@ -8421,7 +8421,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.get" call. @@ -8578,7 +8578,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.list" call. @@ -8728,7 +8728,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.nameid, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.patch" call. @@ -8831,7 +8831,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsPauseMigrationCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "migratingVm": c.migratingVm, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.pauseMigration" call. @@ -8935,7 +8935,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsResumeMigrationCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "migratingVm": c.migratingVm, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.resumeMigration" call. @@ -9037,7 +9037,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsStartMigrationCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "migratingVm": c.migratingVm, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.startMigration" call. @@ -9138,7 +9138,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCloneJobsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cloneJobs.cancel" call. @@ -9262,7 +9262,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCloneJobsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cloneJobs.create" call. @@ -9369,7 +9369,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCloneJobsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cloneJobs.get" call. @@ -9508,7 +9508,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCloneJobsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cloneJobs.list" call. @@ -9631,7 +9631,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsCancelCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.cancel" call. @@ -9756,7 +9756,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsCreateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.create" call. @@ -9863,7 +9863,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.get" call. @@ -10002,7 +10002,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list" call. @@ -10131,7 +10131,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get" call. @@ -10270,7 +10270,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list" call. @@ -10419,7 +10419,7 @@ func (c *ProjectsLocationsSourcesUtilizationReportsCreateCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.utilizationReports.create" call. @@ -10530,7 +10530,7 @@ func (c *ProjectsLocationsSourcesUtilizationReportsDeleteCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.utilizationReports.delete" call. @@ -10657,7 +10657,7 @@ func (c *ProjectsLocationsSourcesUtilizationReportsGetCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.utilizationReports.get" call. @@ -10817,7 +10817,7 @@ func (c *ProjectsLocationsSourcesUtilizationReportsListCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.sources.utilizationReports.list" call. @@ -10965,7 +10965,7 @@ func (c *ProjectsLocationsTargetProjectsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.targetProjects.create" call. @@ -11077,7 +11077,7 @@ func (c *ProjectsLocationsTargetProjectsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.targetProjects.delete" call. @@ -11185,7 +11185,7 @@ func (c *ProjectsLocationsTargetProjectsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.targetProjects.get" call. @@ -11324,7 +11324,7 @@ func (c *ProjectsLocationsTargetProjectsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.targetProjects.list" call. @@ -11476,7 +11476,7 @@ func (c *ProjectsLocationsTargetProjectsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmmigration.projects.locations.targetProjects.patch" call. diff --git a/vmwareengine/v1/vmwareengine-gen.go b/vmwareengine/v1/vmwareengine-gen.go index b2b3da298d6..818194d6a18 100644 --- a/vmwareengine/v1/vmwareengine-gen.go +++ b/vmwareengine/v1/vmwareengine-gen.go @@ -3498,7 +3498,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.get" call. @@ -3612,7 +3612,7 @@ func (c *ProjectsLocationsGetDnsBindPermissionCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.getDnsBindPermission" call. @@ -3744,7 +3744,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.list" call. @@ -3875,7 +3875,7 @@ func (c *ProjectsLocationsDnsBindPermissionGrantCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.dnsBindPermission.grant" call. @@ -3984,7 +3984,7 @@ func (c *ProjectsLocationsDnsBindPermissionRevokeCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.dnsBindPermission.revoke" call. @@ -4121,7 +4121,7 @@ func (c *ProjectsLocationsNetworkPeeringsCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPeerings.create" call. @@ -4239,7 +4239,7 @@ func (c *ProjectsLocationsNetworkPeeringsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPeerings.delete" call. @@ -4352,7 +4352,7 @@ func (c *ProjectsLocationsNetworkPeeringsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPeerings.get" call. @@ -4508,7 +4508,7 @@ func (c *ProjectsLocationsNetworkPeeringsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPeerings.list" call. @@ -4665,7 +4665,7 @@ func (c *ProjectsLocationsNetworkPeeringsPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPeerings.patch" call. @@ -4805,7 +4805,7 @@ func (c *ProjectsLocationsNetworkPeeringsPeeringRoutesListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPeerings.peeringRoutes.list" call. @@ -4964,7 +4964,7 @@ func (c *ProjectsLocationsNetworkPoliciesCreateCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.create" call. @@ -5082,7 +5082,7 @@ func (c *ProjectsLocationsNetworkPoliciesDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.delete" call. @@ -5213,7 +5213,7 @@ func (c *ProjectsLocationsNetworkPoliciesFetchExternalAddressesCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "networkPolicy": c.networkPolicy, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.fetchExternalAddresses" call. @@ -5346,7 +5346,7 @@ func (c *ProjectsLocationsNetworkPoliciesGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.get" call. @@ -5502,7 +5502,7 @@ func (c *ProjectsLocationsNetworkPoliciesListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.list" call. @@ -5666,7 +5666,7 @@ func (c *ProjectsLocationsNetworkPoliciesPatchCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.patch" call. @@ -5801,7 +5801,7 @@ func (c *ProjectsLocationsNetworkPoliciesExternalAccessRulesCreateCall) doReques googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.externalAccessRules.create" call. @@ -5917,7 +5917,7 @@ func (c *ProjectsLocationsNetworkPoliciesExternalAccessRulesDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.externalAccessRules.delete" call. @@ -6028,7 +6028,7 @@ func (c *ProjectsLocationsNetworkPoliciesExternalAccessRulesGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.externalAccessRules.get" call. @@ -6187,7 +6187,7 @@ func (c *ProjectsLocationsNetworkPoliciesExternalAccessRulesListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.externalAccessRules.list" call. @@ -6343,7 +6343,7 @@ func (c *ProjectsLocationsNetworkPoliciesExternalAccessRulesPatchCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.networkPolicies.externalAccessRules.patch" call. @@ -6453,7 +6453,7 @@ func (c *ProjectsLocationsNodeTypesGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.nodeTypes.get" call. @@ -6598,7 +6598,7 @@ func (c *ProjectsLocationsNodeTypesListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.nodeTypes.list" call. @@ -6718,7 +6718,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.operations.delete" call. @@ -6827,7 +6827,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.operations.get" call. @@ -6955,7 +6955,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.operations.list" call. @@ -7114,7 +7114,7 @@ func (c *ProjectsLocationsPrivateCloudsCreateCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.create" call. @@ -7256,7 +7256,7 @@ func (c *ProjectsLocationsPrivateCloudsDeleteCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.delete" call. @@ -7366,7 +7366,7 @@ func (c *ProjectsLocationsPrivateCloudsGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.get" call. @@ -7477,7 +7477,7 @@ func (c *ProjectsLocationsPrivateCloudsGetDnsForwardingCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.getDnsForwarding" call. @@ -7604,7 +7604,7 @@ func (c *ProjectsLocationsPrivateCloudsGetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.getIamPolicy" call. @@ -7762,7 +7762,7 @@ func (c *ProjectsLocationsPrivateCloudsListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.list" call. @@ -7912,7 +7912,7 @@ func (c *ProjectsLocationsPrivateCloudsPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.patch" call. @@ -8016,7 +8016,7 @@ func (c *ProjectsLocationsPrivateCloudsResetNsxCredentialsCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "privateCloud": c.privateCloud, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.resetNsxCredentials" call. @@ -8120,7 +8120,7 @@ func (c *ProjectsLocationsPrivateCloudsResetVcenterCredentialsCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "privateCloud": c.privateCloud, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.resetVcenterCredentials" call. @@ -8225,7 +8225,7 @@ func (c *ProjectsLocationsPrivateCloudsSetIamPolicyCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.setIamPolicy" call. @@ -8336,7 +8336,7 @@ func (c *ProjectsLocationsPrivateCloudsShowNsxCredentialsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "privateCloud": c.privateCloud, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.showNsxCredentials" call. @@ -8459,7 +8459,7 @@ func (c *ProjectsLocationsPrivateCloudsShowVcenterCredentialsCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "privateCloud": c.privateCloud, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.showVcenterCredentials" call. @@ -8567,7 +8567,7 @@ func (c *ProjectsLocationsPrivateCloudsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.testIamPermissions" call. @@ -8676,7 +8676,7 @@ func (c *ProjectsLocationsPrivateCloudsUndeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.undelete" call. @@ -8810,7 +8810,7 @@ func (c *ProjectsLocationsPrivateCloudsUpdateDnsForwardingCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.updateDnsForwarding" call. @@ -8945,7 +8945,7 @@ func (c *ProjectsLocationsPrivateCloudsClustersCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.clusters.create" call. @@ -9055,7 +9055,7 @@ func (c *ProjectsLocationsPrivateCloudsClustersDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.clusters.delete" call. @@ -9166,7 +9166,7 @@ func (c *ProjectsLocationsPrivateCloudsClustersGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.clusters.get" call. @@ -9293,7 +9293,7 @@ func (c *ProjectsLocationsPrivateCloudsClustersGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.clusters.getIamPolicy" call. @@ -9443,7 +9443,7 @@ func (c *ProjectsLocationsPrivateCloudsClustersListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.clusters.list" call. @@ -9600,7 +9600,7 @@ func (c *ProjectsLocationsPrivateCloudsClustersPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.clusters.patch" call. @@ -9705,7 +9705,7 @@ func (c *ProjectsLocationsPrivateCloudsClustersSetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.clusters.setIamPolicy" call. @@ -9813,7 +9813,7 @@ func (c *ProjectsLocationsPrivateCloudsClustersTestIamPermissionsCall) doRequest googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.clusters.testIamPermissions" call. @@ -9923,7 +9923,7 @@ func (c *ProjectsLocationsPrivateCloudsClustersNodesGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.clusters.nodes.get" call. @@ -10051,7 +10051,7 @@ func (c *ProjectsLocationsPrivateCloudsClustersNodesListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.clusters.nodes.list" call. @@ -10209,7 +10209,7 @@ func (c *ProjectsLocationsPrivateCloudsExternalAddressesCreateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.externalAddresses.create" call. @@ -10327,7 +10327,7 @@ func (c *ProjectsLocationsPrivateCloudsExternalAddressesDeleteCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.externalAddresses.delete" call. @@ -10438,7 +10438,7 @@ func (c *ProjectsLocationsPrivateCloudsExternalAddressesGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.externalAddresses.get" call. @@ -10597,7 +10597,7 @@ func (c *ProjectsLocationsPrivateCloudsExternalAddressesListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.externalAddresses.list" call. @@ -10756,7 +10756,7 @@ func (c *ProjectsLocationsPrivateCloudsExternalAddressesPatchCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.externalAddresses.patch" call. @@ -10890,7 +10890,7 @@ func (c *ProjectsLocationsPrivateCloudsHcxActivationKeysCreateCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.hcxActivationKeys.create" call. @@ -11001,7 +11001,7 @@ func (c *ProjectsLocationsPrivateCloudsHcxActivationKeysGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.hcxActivationKeys.get" call. @@ -11129,7 +11129,7 @@ func (c *ProjectsLocationsPrivateCloudsHcxActivationKeysGetIamPolicyCall) doRequ googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.hcxActivationKeys.getIamPolicy" call. @@ -11258,7 +11258,7 @@ func (c *ProjectsLocationsPrivateCloudsHcxActivationKeysListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.hcxActivationKeys.list" call. @@ -11385,7 +11385,7 @@ func (c *ProjectsLocationsPrivateCloudsHcxActivationKeysSetIamPolicyCall) doRequ googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.hcxActivationKeys.setIamPolicy" call. @@ -11493,7 +11493,7 @@ func (c *ProjectsLocationsPrivateCloudsHcxActivationKeysTestIamPermissionsCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.hcxActivationKeys.testIamPermissions" call. @@ -11628,7 +11628,7 @@ func (c *ProjectsLocationsPrivateCloudsLoggingServersCreateCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.loggingServers.create" call. @@ -11744,7 +11744,7 @@ func (c *ProjectsLocationsPrivateCloudsLoggingServersDeleteCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.loggingServers.delete" call. @@ -11855,7 +11855,7 @@ func (c *ProjectsLocationsPrivateCloudsLoggingServersGetCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.loggingServers.get" call. @@ -12012,7 +12012,7 @@ func (c *ProjectsLocationsPrivateCloudsLoggingServersListCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.loggingServers.list" call. @@ -12168,7 +12168,7 @@ func (c *ProjectsLocationsPrivateCloudsLoggingServersPatchCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.loggingServers.patch" call. @@ -12310,7 +12310,7 @@ func (c *ProjectsLocationsPrivateCloudsManagementDnsZoneBindingsCreateCall) doRe googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.create" call. @@ -12428,7 +12428,7 @@ func (c *ProjectsLocationsPrivateCloudsManagementDnsZoneBindingsDeleteCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.delete" call. @@ -12539,7 +12539,7 @@ func (c *ProjectsLocationsPrivateCloudsManagementDnsZoneBindingsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.get" call. @@ -12701,7 +12701,7 @@ func (c *ProjectsLocationsPrivateCloudsManagementDnsZoneBindingsListCall) doRequ googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.list" call. @@ -12857,7 +12857,7 @@ func (c *ProjectsLocationsPrivateCloudsManagementDnsZoneBindingsPatchCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.patch" call. @@ -12963,7 +12963,7 @@ func (c *ProjectsLocationsPrivateCloudsManagementDnsZoneBindingsRepairCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.managementDnsZoneBindings.repair" call. @@ -13074,7 +13074,7 @@ func (c *ProjectsLocationsPrivateCloudsSubnetsGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.subnets.get" call. @@ -13202,7 +13202,7 @@ func (c *ProjectsLocationsPrivateCloudsSubnetsListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.subnets.list" call. @@ -13343,7 +13343,7 @@ func (c *ProjectsLocationsPrivateCloudsSubnetsPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateClouds.subnets.patch" call. @@ -13479,7 +13479,7 @@ func (c *ProjectsLocationsPrivateConnectionsCreateCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateConnections.create" call. @@ -13597,7 +13597,7 @@ func (c *ProjectsLocationsPrivateConnectionsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateConnections.delete" call. @@ -13710,7 +13710,7 @@ func (c *ProjectsLocationsPrivateConnectionsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateConnections.get" call. @@ -13866,7 +13866,7 @@ func (c *ProjectsLocationsPrivateConnectionsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateConnections.list" call. @@ -14023,7 +14023,7 @@ func (c *ProjectsLocationsPrivateConnectionsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateConnections.patch" call. @@ -14154,7 +14154,7 @@ func (c *ProjectsLocationsPrivateConnectionsPeeringRoutesListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.privateConnections.peeringRoutes.list" call. @@ -14316,7 +14316,7 @@ func (c *ProjectsLocationsVmwareEngineNetworksCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.vmwareEngineNetworks.create" call. @@ -14444,7 +14444,7 @@ func (c *ProjectsLocationsVmwareEngineNetworksDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.vmwareEngineNetworks.delete" call. @@ -14557,7 +14557,7 @@ func (c *ProjectsLocationsVmwareEngineNetworksGetCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.vmwareEngineNetworks.get" call. @@ -14713,7 +14713,7 @@ func (c *ProjectsLocationsVmwareEngineNetworksListCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.vmwareEngineNetworks.list" call. @@ -14870,7 +14870,7 @@ func (c *ProjectsLocationsVmwareEngineNetworksPatchCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vmwareengine.projects.locations.vmwareEngineNetworks.patch" call. diff --git a/vpcaccess/v1/vpcaccess-gen.go b/vpcaccess/v1/vpcaccess-gen.go index e6f5aa0237a..452f58647e2 100644 --- a/vpcaccess/v1/vpcaccess-gen.go +++ b/vpcaccess/v1/vpcaccess-gen.go @@ -676,7 +676,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.list" call. @@ -807,7 +807,7 @@ func (c *ProjectsLocationsConnectorsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.connectors.create" call. @@ -903,7 +903,7 @@ func (c *ProjectsLocationsConnectorsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.connectors.delete" call. @@ -1011,7 +1011,7 @@ func (c *ProjectsLocationsConnectorsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.connectors.get" call. @@ -1131,7 +1131,7 @@ func (c *ProjectsLocationsConnectorsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.connectors.list" call. @@ -1262,7 +1262,7 @@ func (c *ProjectsLocationsConnectorsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.connectors.patch" call. @@ -1371,7 +1371,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.operations.get" call. @@ -1499,7 +1499,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.operations.list" call. diff --git a/vpcaccess/v1beta1/vpcaccess-gen.go b/vpcaccess/v1beta1/vpcaccess-gen.go index fc9f7373cd0..7dbc32d632b 100644 --- a/vpcaccess/v1beta1/vpcaccess-gen.go +++ b/vpcaccess/v1beta1/vpcaccess-gen.go @@ -680,7 +680,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.list" call. @@ -811,7 +811,7 @@ func (c *ProjectsLocationsConnectorsCreateCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.connectors.create" call. @@ -907,7 +907,7 @@ func (c *ProjectsLocationsConnectorsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.connectors.delete" call. @@ -1015,7 +1015,7 @@ func (c *ProjectsLocationsConnectorsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.connectors.get" call. @@ -1135,7 +1135,7 @@ func (c *ProjectsLocationsConnectorsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.connectors.list" call. @@ -1266,7 +1266,7 @@ func (c *ProjectsLocationsConnectorsPatchCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.connectors.patch" call. @@ -1375,7 +1375,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.operations.get" call. @@ -1503,7 +1503,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "vpcaccess.projects.locations.operations.list" call. diff --git a/walletobjects/v1/walletobjects-gen.go b/walletobjects/v1/walletobjects-gen.go index eeadef45b1f..d33b97cff60 100644 --- a/walletobjects/v1/walletobjects-gen.go +++ b/walletobjects/v1/walletobjects-gen.go @@ -7459,7 +7459,7 @@ func (c *EventticketclassAddmessageCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketclass.addmessage" call. @@ -7571,7 +7571,7 @@ func (c *EventticketclassGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketclass.get" call. @@ -7666,7 +7666,7 @@ func (c *EventticketclassInsertCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketclass.insert" call. @@ -7793,7 +7793,7 @@ func (c *EventticketclassListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketclass.list" call. @@ -7900,7 +7900,7 @@ func (c *EventticketclassPatchCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketclass.patch" call. @@ -8006,7 +8006,7 @@ func (c *EventticketclassUpdateCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketclass.update" call. @@ -8113,7 +8113,7 @@ func (c *EventticketobjectAddmessageCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketobject.addmessage" call. @@ -8225,7 +8225,7 @@ func (c *EventticketobjectGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketobject.get" call. @@ -8320,7 +8320,7 @@ func (c *EventticketobjectInsertCall) doRequest(alt string) (*http.Response, err return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketobject.insert" call. @@ -8447,7 +8447,7 @@ func (c *EventticketobjectListCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketobject.list" call. @@ -8554,7 +8554,7 @@ func (c *EventticketobjectModifylinkedofferobjectsCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketobject.modifylinkedofferobjects" call. @@ -8661,7 +8661,7 @@ func (c *EventticketobjectPatchCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketobject.patch" call. @@ -8767,7 +8767,7 @@ func (c *EventticketobjectUpdateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.eventticketobject.update" call. @@ -8874,7 +8874,7 @@ func (c *FlightclassAddmessageCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightclass.addmessage" call. @@ -8986,7 +8986,7 @@ func (c *FlightclassGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightclass.get" call. @@ -9080,7 +9080,7 @@ func (c *FlightclassInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightclass.insert" call. @@ -9206,7 +9206,7 @@ func (c *FlightclassListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightclass.list" call. @@ -9313,7 +9313,7 @@ func (c *FlightclassPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightclass.patch" call. @@ -9418,7 +9418,7 @@ func (c *FlightclassUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightclass.update" call. @@ -9524,7 +9524,7 @@ func (c *FlightobjectAddmessageCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightobject.addmessage" call. @@ -9636,7 +9636,7 @@ func (c *FlightobjectGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightobject.get" call. @@ -9730,7 +9730,7 @@ func (c *FlightobjectInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightobject.insert" call. @@ -9856,7 +9856,7 @@ func (c *FlightobjectListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightobject.list" call. @@ -9963,7 +9963,7 @@ func (c *FlightobjectPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightobject.patch" call. @@ -10068,7 +10068,7 @@ func (c *FlightobjectUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.flightobject.update" call. @@ -10174,7 +10174,7 @@ func (c *GenericclassAddmessageCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericclass.addmessage" call. @@ -10286,7 +10286,7 @@ func (c *GenericclassGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericclass.get" call. @@ -10380,7 +10380,7 @@ func (c *GenericclassInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericclass.insert" call. @@ -10506,7 +10506,7 @@ func (c *GenericclassListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericclass.list" call. @@ -10613,7 +10613,7 @@ func (c *GenericclassPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericclass.patch" call. @@ -10718,7 +10718,7 @@ func (c *GenericclassUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericclass.update" call. @@ -10824,7 +10824,7 @@ func (c *GenericobjectAddmessageCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericobject.addmessage" call. @@ -10936,7 +10936,7 @@ func (c *GenericobjectGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericobject.get" call. @@ -11030,7 +11030,7 @@ func (c *GenericobjectInsertCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericobject.insert" call. @@ -11156,7 +11156,7 @@ func (c *GenericobjectListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericobject.list" call. @@ -11263,7 +11263,7 @@ func (c *GenericobjectPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericobject.patch" call. @@ -11368,7 +11368,7 @@ func (c *GenericobjectUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.genericobject.update" call. @@ -11474,7 +11474,7 @@ func (c *GiftcardclassAddmessageCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardclass.addmessage" call. @@ -11586,7 +11586,7 @@ func (c *GiftcardclassGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardclass.get" call. @@ -11680,7 +11680,7 @@ func (c *GiftcardclassInsertCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardclass.insert" call. @@ -11806,7 +11806,7 @@ func (c *GiftcardclassListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardclass.list" call. @@ -11913,7 +11913,7 @@ func (c *GiftcardclassPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardclass.patch" call. @@ -12018,7 +12018,7 @@ func (c *GiftcardclassUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardclass.update" call. @@ -12124,7 +12124,7 @@ func (c *GiftcardobjectAddmessageCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardobject.addmessage" call. @@ -12236,7 +12236,7 @@ func (c *GiftcardobjectGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardobject.get" call. @@ -12330,7 +12330,7 @@ func (c *GiftcardobjectInsertCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardobject.insert" call. @@ -12456,7 +12456,7 @@ func (c *GiftcardobjectListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardobject.list" call. @@ -12563,7 +12563,7 @@ func (c *GiftcardobjectPatchCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardobject.patch" call. @@ -12668,7 +12668,7 @@ func (c *GiftcardobjectUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.giftcardobject.update" call. @@ -12775,7 +12775,7 @@ func (c *IssuerGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": strconv.FormatInt(c.resourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.issuer.get" call. @@ -12869,7 +12869,7 @@ func (c *IssuerInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.issuer.insert" call. @@ -12969,7 +12969,7 @@ func (c *IssuerListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.issuer.list" call. @@ -13072,7 +13072,7 @@ func (c *IssuerPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": strconv.FormatInt(c.resourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.issuer.patch" call. @@ -13173,7 +13173,7 @@ func (c *IssuerUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": strconv.FormatInt(c.resourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.issuer.update" call. @@ -13267,7 +13267,7 @@ func (c *JwtInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.jwt.insert" call. @@ -13374,7 +13374,7 @@ func (c *LoyaltyclassAddmessageCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyclass.addmessage" call. @@ -13486,7 +13486,7 @@ func (c *LoyaltyclassGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyclass.get" call. @@ -13580,7 +13580,7 @@ func (c *LoyaltyclassInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyclass.insert" call. @@ -13706,7 +13706,7 @@ func (c *LoyaltyclassListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyclass.list" call. @@ -13813,7 +13813,7 @@ func (c *LoyaltyclassPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyclass.patch" call. @@ -13918,7 +13918,7 @@ func (c *LoyaltyclassUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyclass.update" call. @@ -14024,7 +14024,7 @@ func (c *LoyaltyobjectAddmessageCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyobject.addmessage" call. @@ -14136,7 +14136,7 @@ func (c *LoyaltyobjectGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyobject.get" call. @@ -14230,7 +14230,7 @@ func (c *LoyaltyobjectInsertCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyobject.insert" call. @@ -14356,7 +14356,7 @@ func (c *LoyaltyobjectListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyobject.list" call. @@ -14463,7 +14463,7 @@ func (c *LoyaltyobjectModifylinkedofferobjectsCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyobject.modifylinkedofferobjects" call. @@ -14569,7 +14569,7 @@ func (c *LoyaltyobjectPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyobject.patch" call. @@ -14674,7 +14674,7 @@ func (c *LoyaltyobjectUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.loyaltyobject.update" call. @@ -14786,7 +14786,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -14960,7 +14960,7 @@ func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.media.upload" call. @@ -15084,7 +15084,7 @@ func (c *OfferclassAddmessageCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerclass.addmessage" call. @@ -15196,7 +15196,7 @@ func (c *OfferclassGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerclass.get" call. @@ -15290,7 +15290,7 @@ func (c *OfferclassInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerclass.insert" call. @@ -15416,7 +15416,7 @@ func (c *OfferclassListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerclass.list" call. @@ -15523,7 +15523,7 @@ func (c *OfferclassPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerclass.patch" call. @@ -15628,7 +15628,7 @@ func (c *OfferclassUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerclass.update" call. @@ -15734,7 +15734,7 @@ func (c *OfferobjectAddmessageCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerobject.addmessage" call. @@ -15846,7 +15846,7 @@ func (c *OfferobjectGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerobject.get" call. @@ -15940,7 +15940,7 @@ func (c *OfferobjectInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerobject.insert" call. @@ -16066,7 +16066,7 @@ func (c *OfferobjectListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerobject.list" call. @@ -16173,7 +16173,7 @@ func (c *OfferobjectPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerobject.patch" call. @@ -16278,7 +16278,7 @@ func (c *OfferobjectUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.offerobject.update" call. @@ -16386,7 +16386,7 @@ func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": strconv.FormatInt(c.resourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.permissions.get" call. @@ -16488,7 +16488,7 @@ func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": strconv.FormatInt(c.resourceId, 10), }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.permissions.update" call. @@ -16582,7 +16582,7 @@ func (c *SmarttapInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.smarttap.insert" call. @@ -16688,7 +16688,7 @@ func (c *TransitclassAddmessageCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitclass.addmessage" call. @@ -16800,7 +16800,7 @@ func (c *TransitclassGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitclass.get" call. @@ -16894,7 +16894,7 @@ func (c *TransitclassInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitclass.insert" call. @@ -17020,7 +17020,7 @@ func (c *TransitclassListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitclass.list" call. @@ -17127,7 +17127,7 @@ func (c *TransitclassPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitclass.patch" call. @@ -17232,7 +17232,7 @@ func (c *TransitclassUpdateCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitclass.update" call. @@ -17338,7 +17338,7 @@ func (c *TransitobjectAddmessageCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitobject.addmessage" call. @@ -17450,7 +17450,7 @@ func (c *TransitobjectGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitobject.get" call. @@ -17544,7 +17544,7 @@ func (c *TransitobjectInsertCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitobject.insert" call. @@ -17670,7 +17670,7 @@ func (c *TransitobjectListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitobject.list" call. @@ -17777,7 +17777,7 @@ func (c *TransitobjectPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitobject.patch" call. @@ -17882,7 +17882,7 @@ func (c *TransitobjectUpdateCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "resourceId": c.resourceId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "walletobjects.transitobject.update" call. diff --git a/webfonts/v1/webfonts-gen.go b/webfonts/v1/webfonts-gen.go index 6db370da191..20d51f44f39 100644 --- a/webfonts/v1/webfonts-gen.go +++ b/webfonts/v1/webfonts-gen.go @@ -372,7 +372,7 @@ func (c *WebfontsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webfonts.webfonts.list" call. diff --git a/webmasters/v3/webmasters-gen.go b/webmasters/v3/webmasters-gen.go index 4da2034c76a..b259112f02f 100644 --- a/webmasters/v3/webmasters-gen.go +++ b/webmasters/v3/webmasters-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/webmaster-tools/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // webmastersService, err := webmasters.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // webmastersService, err := webmasters.NewService(ctx, option.WithScopes(webmasters.WebmastersReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // webmastersService, err := webmasters.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // webmastersService, err := webmasters.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package webmasters // import "google.golang.org/api/webmasters/v3" import ( @@ -54,6 +68,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -74,11 +89,13 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "webmasters:v3" const apiName = "webmasters" const apiVersion = "v3" const basePath = "https://www.googleapis.com/webmasters/v3/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/webmasters/v3/" // OAuth2 scopes used by this API. const ( @@ -91,13 +108,15 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/webmasters", "https://www.googleapis.com/auth/webmasters.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -175,37 +194,27 @@ type SitesService struct { } type ApiDataRow struct { - Clicks float64 `json:"clicks,omitempty"` - - Ctr float64 `json:"ctr,omitempty"` - - Impressions float64 `json:"impressions,omitempty"` - - Keys []string `json:"keys,omitempty"` - - Position float64 `json:"position,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Clicks") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Clicks float64 `json:"clicks,omitempty"` + Ctr float64 `json:"ctr,omitempty"` + Impressions float64 `json:"impressions,omitempty"` + Keys []string `json:"keys,omitempty"` + Position float64 `json:"position,omitempty"` + // ForceSendFields is a list of field names (e.g. "Clicks") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Clicks") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApiDataRow) MarshalJSON() ([]byte, error) { +func (s ApiDataRow) MarshalJSON() ([]byte, error) { type NoMethod ApiDataRow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } func (s *ApiDataRow) UnmarshalJSON(data []byte) error { @@ -229,390 +238,296 @@ func (s *ApiDataRow) UnmarshalJSON(data []byte) error { } type ApiDimensionFilter struct { - Dimension string `json:"dimension,omitempty"` - + Dimension string `json:"dimension,omitempty"` Expression string `json:"expression,omitempty"` - - Operator string `json:"operator,omitempty"` - + Operator string `json:"operator,omitempty"` // ForceSendFields is a list of field names (e.g. "Dimension") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Dimension") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Dimension") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApiDimensionFilter) MarshalJSON() ([]byte, error) { +func (s ApiDimensionFilter) MarshalJSON() ([]byte, error) { type NoMethod ApiDimensionFilter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ApiDimensionFilterGroup struct { - Filters []*ApiDimensionFilter `json:"filters,omitempty"` - - GroupType string `json:"groupType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filters") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + Filters []*ApiDimensionFilter `json:"filters,omitempty"` + GroupType string `json:"groupType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Filters") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filters") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Filters") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ApiDimensionFilterGroup) MarshalJSON() ([]byte, error) { +func (s ApiDimensionFilterGroup) MarshalJSON() ([]byte, error) { type NoMethod ApiDimensionFilterGroup - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type SearchAnalyticsQueryRequest struct { - // AggregationType: [Optional; Default is "auto"] How data is - // aggregated. If aggregated by property, all data for the same property - // is aggregated; if aggregated by page, all data is aggregated by - // canonical URI. If you filter or group by page, choose AUTO; otherwise - // you can aggregate either by property or by page, depending on how you - // want your data calculated; see the help documentation to learn how - // data is calculated differently by site versus by page. + // AggregationType: [Optional; Default is "auto"] How data is aggregated. If + // aggregated by property, all data for the same property is aggregated; if + // aggregated by page, all data is aggregated by canonical URI. If you filter + // or group by page, choose AUTO; otherwise you can aggregate either by + // property or by page, depending on how you want your data calculated; see + // the help documentation to learn how data is calculated differently by site + // versus by page. // - // Note: If you group or filter by page, you cannot aggregate by - // property. + // Note: If you group or filter by page, you cannot aggregate by property. // - // If you specify any value other than AUTO, the aggregation type in the - // result will match the requested type, or if you request an invalid - // type, you will get an error. The API will never change your - // aggregation type if the requested type is invalid. + // If you specify any value other than AUTO, the aggregation type in the result + // will match the requested type, or if you request an invalid type, you will + // get an error. The API will never change your aggregation type if the + // requested type is invalid. AggregationType string `json:"aggregationType,omitempty"` - - // DataState: [Optional] If "all" (case-insensitive), data will include - // fresh data. If "final" (case-insensitive) or if this parameter is - // omitted, the returned data will include only finalized data. + // DataState: [Optional] If "all" (case-insensitive), data will include fresh + // data. If "final" (case-insensitive) or if this parameter is omitted, the + // returned data will include only finalized data. DataState string `json:"dataState,omitempty"` - - // DimensionFilterGroups: [Optional] Zero or more filters to apply to - // the dimension grouping values; for example, 'query contains "buy"' to - // see only data where the query string contains the substring "buy" - // (not case-sensitive). You can filter by a dimension without grouping - // by it. + // DimensionFilterGroups: [Optional] Zero or more filters to apply to the + // dimension grouping values; for example, 'query contains "buy"' to see only + // data where the query string contains the substring "buy" (not + // case-sensitive). You can filter by a dimension without grouping by it. DimensionFilterGroups []*ApiDimensionFilterGroup `json:"dimensionFilterGroups,omitempty"` - // Dimensions: [Optional] Zero or more dimensions to group results by. - // Dimensions are the group-by values in the Search Analytics page. - // Dimensions are combined to create a unique row key for each row. - // Results are grouped in the order that you supply these dimensions. + // Dimensions are the group-by values in the Search Analytics page. Dimensions + // are combined to create a unique row key for each row. Results are grouped in + // the order that you supply these dimensions. Dimensions []string `json:"dimensions,omitempty"` - - // EndDate: [Required] End date of the requested date range, in - // YYYY-MM-DD format, in PST (UTC - 8:00). Must be greater than or equal - // to the start date. This value is included in the range. + // EndDate: [Required] End date of the requested date range, in YYYY-MM-DD + // format, in PST (UTC - 8:00). Must be greater than or equal to the start + // date. This value is included in the range. EndDate string `json:"endDate,omitempty"` - - // RowLimit: [Optional; Default is 1000] The maximum number of rows to - // return. Must be a number from 1 to 5,000 (inclusive). + // RowLimit: [Optional; Default is 1000] The maximum number of rows to return. + // Must be a number from 1 to 5,000 (inclusive). RowLimit int64 `json:"rowLimit,omitempty"` - - // SearchType: [Optional; Default is "web"] The search type to filter - // for. + // SearchType: [Optional; Default is "web"] The search type to filter for. SearchType string `json:"searchType,omitempty"` - - // StartDate: [Required] Start date of the requested date range, in - // YYYY-MM-DD format, in PST time (UTC - 8:00). Must be less than or - // equal to the end date. This value is included in the range. + // StartDate: [Required] Start date of the requested date range, in YYYY-MM-DD + // format, in PST time (UTC - 8:00). Must be less than or equal to the end + // date. This value is included in the range. StartDate string `json:"startDate,omitempty"` - - // StartRow: [Optional; Default is 0] Zero-based index of the first row - // in the response. Must be a non-negative number. + // StartRow: [Optional; Default is 0] Zero-based index of the first row in the + // response. Must be a non-negative number. StartRow int64 `json:"startRow,omitempty"` - // ForceSendFields is a list of field names (e.g. "AggregationType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AggregationType") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AggregationType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SearchAnalyticsQueryRequest) MarshalJSON() ([]byte, error) { +func (s SearchAnalyticsQueryRequest) MarshalJSON() ([]byte, error) { type NoMethod SearchAnalyticsQueryRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SearchAnalyticsQueryResponse: A list of rows, one per result, grouped -// by key. Metrics in each row are aggregated for all data grouped by -// that key either by page or property, as specified by the aggregation -// type parameter. +// SearchAnalyticsQueryResponse: A list of rows, one per result, grouped by +// key. Metrics in each row are aggregated for all data grouped by that key +// either by page or property, as specified by the aggregation type parameter. type SearchAnalyticsQueryResponse struct { // ResponseAggregationType: How the results were aggregated. ResponseAggregationType string `json:"responseAggregationType,omitempty"` - - // Rows: A list of rows grouped by the key values in the order given in - // the query. + // Rows: A list of rows grouped by the key values in the order given in the + // query. Rows []*ApiDataRow `json:"rows,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "ResponseAggregationType") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ResponseAggregationType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ResponseAggregationType") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ResponseAggregationType") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SearchAnalyticsQueryResponse) MarshalJSON() ([]byte, error) { +func (s SearchAnalyticsQueryResponse) MarshalJSON() ([]byte, error) { type NoMethod SearchAnalyticsQueryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SitemapsListResponse: List of sitemaps. type SitemapsListResponse struct { - // Sitemap: Contains detailed information about a specific URL submitted - // as a sitemap. + // Sitemap: Contains detailed information about a specific URL submitted as a + // sitemap. Sitemap []*WmxSitemap `json:"sitemap,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Sitemap") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Sitemap") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Sitemap") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Sitemap") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SitemapsListResponse) MarshalJSON() ([]byte, error) { +func (s SitemapsListResponse) MarshalJSON() ([]byte, error) { type NoMethod SitemapsListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SitesListResponse: List of sites with access level information. type SitesListResponse struct { - // SiteEntry: Contains permission level information about a Search - // Console site. For more information, see Permissions in Search - // Console. + // SiteEntry: Contains permission level information about a Search Console + // site. For more information, see Permissions in Search Console. SiteEntry []*WmxSite `json:"siteEntry,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "SiteEntry") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SiteEntry") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "SiteEntry") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SitesListResponse) MarshalJSON() ([]byte, error) { +func (s SitesListResponse) MarshalJSON() ([]byte, error) { type NoMethod SitesListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WmxSite: Contains permission level information about a Search Console -// site. For more information, see Permissions in Search Console. +// WmxSite: Contains permission level information about a Search Console site. +// For more information, see Permissions in Search Console. type WmxSite struct { // PermissionLevel: The user's permission level for the site. PermissionLevel string `json:"permissionLevel,omitempty"` - // SiteUrl: The URL of the site. SiteUrl string `json:"siteUrl,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "PermissionLevel") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PermissionLevel") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "PermissionLevel") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WmxSite) MarshalJSON() ([]byte, error) { +func (s WmxSite) MarshalJSON() ([]byte, error) { type NoMethod WmxSite - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WmxSitemap: Contains detailed information about a specific URL -// submitted as a sitemap. +// WmxSitemap: Contains detailed information about a specific URL submitted as +// a sitemap. type WmxSitemap struct { // Contents: The various content types in the sitemap. Contents []*WmxSitemapContent `json:"contents,omitempty"` - - // Errors: Number of errors in the sitemap. These are issues with the - // sitemap itself that need to be fixed before it can be processed - // correctly. + // Errors: Number of errors in the sitemap. These are issues with the sitemap + // itself that need to be fixed before it can be processed correctly. Errors int64 `json:"errors,omitempty,string"` - // IsPending: If true, the sitemap has not been processed. IsPending bool `json:"isPending,omitempty"` - // IsSitemapsIndex: If true, the sitemap is a collection of sitemaps. IsSitemapsIndex bool `json:"isSitemapsIndex,omitempty"` - - // LastDownloaded: Date & time in which this sitemap was last - // downloaded. Date format is in RFC 3339 format (yyyy-mm-dd). - LastDownloaded string `json:"lastDownloaded,omitempty"` - - // LastSubmitted: Date & time in which this sitemap was submitted. Date + // LastDownloaded: Date & time in which this sitemap was last downloaded. Date // format is in RFC 3339 format (yyyy-mm-dd). + LastDownloaded string `json:"lastDownloaded,omitempty"` + // LastSubmitted: Date & time in which this sitemap was submitted. Date format + // is in RFC 3339 format (yyyy-mm-dd). LastSubmitted string `json:"lastSubmitted,omitempty"` - // Path: The url of the sitemap. Path string `json:"path,omitempty"` - // Type: The type of the sitemap. For example: rssFeed. Type string `json:"type,omitempty"` - // Warnings: Number of warnings for the sitemap. These are generally // non-critical issues with URLs in the sitemaps. Warnings int64 `json:"warnings,omitempty,string"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Contents") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Contents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Contents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WmxSitemap) MarshalJSON() ([]byte, error) { +func (s WmxSitemap) MarshalJSON() ([]byte, error) { type NoMethod WmxSitemap - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // WmxSitemapContent: Information about the various content types in the // sitemap. type WmxSitemapContent struct { - // Indexed: The number of URLs from the sitemap that were indexed (of - // the content type). + // Indexed: The number of URLs from the sitemap that were indexed (of the + // content type). Indexed int64 `json:"indexed,omitempty,string"` - // Submitted: The number of URLs in the sitemap (of the content type). Submitted int64 `json:"submitted,omitempty,string"` - // Type: The specific type of content in this sitemap. For example: web. Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Indexed") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Indexed") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Indexed") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Indexed") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WmxSitemapContent) MarshalJSON() ([]byte, error) { +func (s WmxSitemapContent) MarshalJSON() ([]byte, error) { type NoMethod WmxSitemapContent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "webmasters.searchanalytics.query": - type SearchanalyticsQueryCall struct { s *Service siteUrl string @@ -622,14 +537,14 @@ type SearchanalyticsQueryCall struct { header_ http.Header } -// Query: Query your data with filters and parameters that you define. -// Returns zero or more rows grouped by the row keys that you define. -// You must define a date range of one or more days. +// Query: Query your data with filters and parameters that you define. Returns +// zero or more rows grouped by the row keys that you define. You must define a +// date range of one or more days. // -// When date is one of the group by values, any days without data are -// omitted from the result list. If you need to know which days have -// data, issue a broad date range query grouped by date for any metric, -// and see which day rows are returned. +// When date is one of the group by values, any days without data are omitted +// from the result list. If you need to know which days have data, issue a +// broad date range query grouped by date for any metric, and see which day +// rows are returned. // // - siteUrl: The site's URL, including protocol. For example: // http://www.example.com/. @@ -641,23 +556,21 @@ func (r *SearchanalyticsService) Query(siteUrl string, searchanalyticsqueryreque } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SearchanalyticsQueryCall) Fields(s ...googleapi.Field) *SearchanalyticsQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SearchanalyticsQueryCall) Context(ctx context.Context) *SearchanalyticsQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SearchanalyticsQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -666,18 +579,12 @@ func (c *SearchanalyticsQueryCall) Header() http.Header { } func (c *SearchanalyticsQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211102") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchanalyticsqueryrequest) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "sites/{siteUrl}/searchAnalytics/query") @@ -690,16 +597,15 @@ func (c *SearchanalyticsQueryCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "siteUrl": c.siteUrl, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.searchanalytics.query" call. -// Exactly one of *SearchAnalyticsQueryResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *SearchAnalyticsQueryResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SearchAnalyticsQueryResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. func (c *SearchanalyticsQueryCall) Do(opts ...googleapi.CallOption) (*SearchAnalyticsQueryResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -707,17 +613,17 @@ func (c *SearchanalyticsQueryCall) Do(opts ...googleapi.CallOption) (*SearchAnal if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SearchAnalyticsQueryResponse{ ServerResponse: googleapi.ServerResponse{ @@ -730,37 +636,7 @@ func (c *SearchanalyticsQueryCall) Do(opts ...googleapi.CallOption) (*SearchAnal return nil, err } return ret, nil - // { - // "description": "Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days.\n\nWhen date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned.", - // "httpMethod": "POST", - // "id": "webmasters.searchanalytics.query", - // "parameterOrder": [ - // "siteUrl" - // ], - // "parameters": { - // "siteUrl": { - // "description": "The site's URL, including protocol. For example: http://www.example.com/", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sites/{siteUrl}/searchAnalytics/query", - // "request": { - // "$ref": "SearchAnalyticsQueryRequest" - // }, - // "response": { - // "$ref": "SearchAnalyticsQueryResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/webmasters", - // "https://www.googleapis.com/auth/webmasters.readonly" - // ] - // } - -} - -// method id "webmasters.sitemaps.delete": +} type SitemapsDeleteCall struct { s *Service @@ -785,23 +661,21 @@ func (r *SitemapsService) Delete(siteUrl string, feedpath string) *SitemapsDelet } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitemapsDeleteCall) Fields(s ...googleapi.Field) *SitemapsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitemapsDeleteCall) Context(ctx context.Context) *SitemapsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitemapsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -810,12 +684,7 @@ func (c *SitemapsDeleteCall) Header() http.Header { } func (c *SitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211102") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -830,7 +699,7 @@ func (c *SitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { "siteUrl": c.siteUrl, "feedpath": c.feedpath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sitemaps.delete" call. @@ -842,40 +711,10 @@ func (c *SitemapsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a sitemap from this site.", - // "httpMethod": "DELETE", - // "id": "webmasters.sitemaps.delete", - // "parameterOrder": [ - // "siteUrl", - // "feedpath" - // ], - // "parameters": { - // "feedpath": { - // "description": "The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "siteUrl": { - // "description": "The site's URL, including protocol. For example: http://www.example.com/", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sites/{siteUrl}/sitemaps/{feedpath}", - // "scopes": [ - // "https://www.googleapis.com/auth/webmasters" - // ] - // } - -} - -// method id "webmasters.sitemaps.get": +} type SitemapsGetCall struct { s *Service @@ -901,33 +740,29 @@ func (r *SitemapsService) Get(siteUrl string, feedpath string) *SitemapsGetCall } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitemapsGetCall) Fields(s ...googleapi.Field) *SitemapsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitemapsGetCall) IfNoneMatch(entityTag string) *SitemapsGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitemapsGetCall) Context(ctx context.Context) *SitemapsGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitemapsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -936,12 +771,7 @@ func (c *SitemapsGetCall) Header() http.Header { } func (c *SitemapsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211102") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -959,16 +789,14 @@ func (c *SitemapsGetCall) doRequest(alt string) (*http.Response, error) { "siteUrl": c.siteUrl, "feedpath": c.feedpath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sitemaps.get" call. -// Exactly one of *WmxSitemap or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *WmxSitemap.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WmxSitemap.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SitemapsGetCall) Do(opts ...googleapi.CallOption) (*WmxSitemap, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -976,17 +804,17 @@ func (c *SitemapsGetCall) Do(opts ...googleapi.CallOption) (*WmxSitemap, error) if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WmxSitemap{ ServerResponse: googleapi.ServerResponse{ @@ -999,41 +827,7 @@ func (c *SitemapsGetCall) Do(opts ...googleapi.CallOption) (*WmxSitemap, error) return nil, err } return ret, nil - // { - // "description": "Retrieves information about a specific sitemap.", - // "httpMethod": "GET", - // "id": "webmasters.sitemaps.get", - // "parameterOrder": [ - // "siteUrl", - // "feedpath" - // ], - // "parameters": { - // "feedpath": { - // "description": "The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "siteUrl": { - // "description": "The site's URL, including protocol. For example: http://www.example.com/", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sites/{siteUrl}/sitemaps/{feedpath}", - // "response": { - // "$ref": "WmxSitemap" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/webmasters", - // "https://www.googleapis.com/auth/webmasters.readonly" - // ] - // } - -} - -// method id "webmasters.sitemaps.list": +} type SitemapsListCall struct { s *Service @@ -1044,9 +838,8 @@ type SitemapsListCall struct { header_ http.Header } -// List: Lists the sitemaps-entries submitted for this site, or included -// in the sitemap index file (if sitemapIndex is specified in the -// request). +// List: Lists the sitemaps-entries submitted for this site, or included in the +// sitemap index file (if sitemapIndex is specified in the request). // // - siteUrl: The site's URL, including protocol. For example: // http://www.example.com/. @@ -1056,42 +849,37 @@ func (r *SitemapsService) List(siteUrl string) *SitemapsListCall { return c } -// SitemapIndex sets the optional parameter "sitemapIndex": A URL of a -// site's sitemap index. For example: -// http://www.example.com/sitemapindex.xml +// SitemapIndex sets the optional parameter "sitemapIndex": A URL of a site's +// sitemap index. For example: http://www.example.com/sitemapindex.xml func (c *SitemapsListCall) SitemapIndex(sitemapIndex string) *SitemapsListCall { c.urlParams_.Set("sitemapIndex", sitemapIndex) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitemapsListCall) Fields(s ...googleapi.Field) *SitemapsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitemapsListCall) IfNoneMatch(entityTag string) *SitemapsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitemapsListCall) Context(ctx context.Context) *SitemapsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitemapsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1100,12 +888,7 @@ func (c *SitemapsListCall) Header() http.Header { } func (c *SitemapsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211102") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1122,16 +905,15 @@ func (c *SitemapsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "siteUrl": c.siteUrl, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sitemaps.list" call. -// Exactly one of *SitemapsListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SitemapsListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SitemapsListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SitemapsListCall) Do(opts ...googleapi.CallOption) (*SitemapsListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1139,17 +921,17 @@ func (c *SitemapsListCall) Do(opts ...googleapi.CallOption) (*SitemapsListRespon if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SitemapsListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1162,39 +944,7 @@ func (c *SitemapsListCall) Do(opts ...googleapi.CallOption) (*SitemapsListRespon return nil, err } return ret, nil - // { - // "description": "Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if sitemapIndex is specified in the request).", - // "httpMethod": "GET", - // "id": "webmasters.sitemaps.list", - // "parameterOrder": [ - // "siteUrl" - // ], - // "parameters": { - // "siteUrl": { - // "description": "The site's URL, including protocol. For example: http://www.example.com/", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "sitemapIndex": { - // "description": "A URL of a site's sitemap index. For example: http://www.example.com/sitemapindex.xml", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "sites/{siteUrl}/sitemaps", - // "response": { - // "$ref": "SitemapsListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/webmasters", - // "https://www.googleapis.com/auth/webmasters.readonly" - // ] - // } - -} - -// method id "webmasters.sitemaps.submit": +} type SitemapsSubmitCall struct { s *Service @@ -1219,23 +969,21 @@ func (r *SitemapsService) Submit(siteUrl string, feedpath string) *SitemapsSubmi } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitemapsSubmitCall) Fields(s ...googleapi.Field) *SitemapsSubmitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitemapsSubmitCall) Context(ctx context.Context) *SitemapsSubmitCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitemapsSubmitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1244,12 +992,7 @@ func (c *SitemapsSubmitCall) Header() http.Header { } func (c *SitemapsSubmitCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211102") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1264,7 +1007,7 @@ func (c *SitemapsSubmitCall) doRequest(alt string) (*http.Response, error) { "siteUrl": c.siteUrl, "feedpath": c.feedpath, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sitemaps.submit" call. @@ -1276,40 +1019,10 @@ func (c *SitemapsSubmitCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Submits a sitemap for a site.", - // "httpMethod": "PUT", - // "id": "webmasters.sitemaps.submit", - // "parameterOrder": [ - // "siteUrl", - // "feedpath" - // ], - // "parameters": { - // "feedpath": { - // "description": "The URL of the sitemap to add. For example: http://www.example.com/sitemap.xml", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "siteUrl": { - // "description": "The site's URL, including protocol. For example: http://www.example.com/", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sites/{siteUrl}/sitemaps/{feedpath}", - // "scopes": [ - // "https://www.googleapis.com/auth/webmasters" - // ] - // } - -} - -// method id "webmasters.sites.add": +} type SitesAddCall struct { s *Service @@ -1329,23 +1042,21 @@ func (r *SitesService) Add(siteUrl string) *SitesAddCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesAddCall) Fields(s ...googleapi.Field) *SitesAddCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesAddCall) Context(ctx context.Context) *SitesAddCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesAddCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1354,12 +1065,7 @@ func (c *SitesAddCall) Header() http.Header { } func (c *SitesAddCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211102") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1373,7 +1079,7 @@ func (c *SitesAddCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "siteUrl": c.siteUrl, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sites.add" call. @@ -1385,33 +1091,10 @@ func (c *SitesAddCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Adds a site to the set of the user's sites in Search Console.", - // "httpMethod": "PUT", - // "id": "webmasters.sites.add", - // "parameterOrder": [ - // "siteUrl" - // ], - // "parameters": { - // "siteUrl": { - // "description": "The URL of the site to add.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sites/{siteUrl}", - // "scopes": [ - // "https://www.googleapis.com/auth/webmasters" - // ] - // } - -} - -// method id "webmasters.sites.delete": +} type SitesDeleteCall struct { s *Service @@ -1421,13 +1104,12 @@ type SitesDeleteCall struct { header_ http.Header } -// Delete: Removes a site from the set of the user's Search Console -// sites. +// Delete: Removes a site from the set of the user's Search Console sites. // -// - siteUrl: The URI of the property as defined in Search Console. -// Examples: http://www.example.com/ or android-app://com.example/ -// Note: for property-sets, use the URI that starts with sc-set: which -// is used in Search Console URLs. +// - siteUrl: The URI of the property as defined in Search Console. Examples: +// http://www.example.com/ or android-app://com.example/ Note: for +// property-sets, use the URI that starts with sc-set: which is used in +// Search Console URLs. func (r *SitesService) Delete(siteUrl string) *SitesDeleteCall { c := &SitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.siteUrl = siteUrl @@ -1435,23 +1117,21 @@ func (r *SitesService) Delete(siteUrl string) *SitesDeleteCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesDeleteCall) Fields(s ...googleapi.Field) *SitesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesDeleteCall) Context(ctx context.Context) *SitesDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1460,12 +1140,7 @@ func (c *SitesDeleteCall) Header() http.Header { } func (c *SitesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211102") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1479,7 +1154,7 @@ func (c *SitesDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "siteUrl": c.siteUrl, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sites.delete" call. @@ -1491,33 +1166,10 @@ func (c *SitesDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Removes a site from the set of the user's Search Console sites.", - // "httpMethod": "DELETE", - // "id": "webmasters.sites.delete", - // "parameterOrder": [ - // "siteUrl" - // ], - // "parameters": { - // "siteUrl": { - // "description": "The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-app://com.example/ Note: for property-sets, use the URI that starts with sc-set: which is used in Search Console URLs.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sites/{siteUrl}", - // "scopes": [ - // "https://www.googleapis.com/auth/webmasters" - // ] - // } - -} - -// method id "webmasters.sites.get": +} type SitesGetCall struct { s *Service @@ -1530,10 +1182,10 @@ type SitesGetCall struct { // Get: Retrieves information about specific site. // -// - siteUrl: The URI of the property as defined in Search Console. -// Examples: http://www.example.com/ or android-app://com.example/ -// Note: for property-sets, use the URI that starts with sc-set: which -// is used in Search Console URLs. +// - siteUrl: The URI of the property as defined in Search Console. Examples: +// http://www.example.com/ or android-app://com.example/ Note: for +// property-sets, use the URI that starts with sc-set: which is used in +// Search Console URLs. func (r *SitesService) Get(siteUrl string) *SitesGetCall { c := &SitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.siteUrl = siteUrl @@ -1541,33 +1193,29 @@ func (r *SitesService) Get(siteUrl string) *SitesGetCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesGetCall) Fields(s ...googleapi.Field) *SitesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesGetCall) IfNoneMatch(entityTag string) *SitesGetCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesGetCall) Context(ctx context.Context) *SitesGetCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1576,12 +1224,7 @@ func (c *SitesGetCall) Header() http.Header { } func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211102") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1598,16 +1241,14 @@ func (c *SitesGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "siteUrl": c.siteUrl, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sites.get" call. -// Exactly one of *WmxSite or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *WmxSite.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *WmxSite.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*WmxSite, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1615,17 +1256,17 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*WmxSite, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &WmxSite{ ServerResponse: googleapi.ServerResponse{ @@ -1638,34 +1279,7 @@ func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*WmxSite, error) { return nil, err } return ret, nil - // { - // "description": "Retrieves information about specific site.", - // "httpMethod": "GET", - // "id": "webmasters.sites.get", - // "parameterOrder": [ - // "siteUrl" - // ], - // "parameters": { - // "siteUrl": { - // "description": "The URI of the property as defined in Search Console. Examples: http://www.example.com/ or android-app://com.example/ Note: for property-sets, use the URI that starts with sc-set: which is used in Search Console URLs.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "sites/{siteUrl}", - // "response": { - // "$ref": "WmxSite" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/webmasters", - // "https://www.googleapis.com/auth/webmasters.readonly" - // ] - // } - -} - -// method id "webmasters.sites.list": +} type SitesListCall struct { s *Service @@ -1682,33 +1296,29 @@ func (r *SitesService) List() *SitesListCall { } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *SitesListCall) Fields(s ...googleapi.Field) *SitesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *SitesListCall) IfNoneMatch(entityTag string) *SitesListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *SitesListCall) Context(ctx context.Context) *SitesListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *SitesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1717,12 +1327,7 @@ func (c *SitesListCall) Header() http.Header { } func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211102") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1736,16 +1341,15 @@ func (c *SitesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webmasters.sites.list" call. -// Exactly one of *SitesListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *SitesListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *SitesListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1753,17 +1357,17 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &SitesListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1776,18 +1380,4 @@ func (c *SitesListCall) Do(opts ...googleapi.CallOption) (*SitesListResponse, er return nil, err } return ret, nil - // { - // "description": "Lists the user's Search Console sites.", - // "httpMethod": "GET", - // "id": "webmasters.sites.list", - // "path": "sites", - // "response": { - // "$ref": "SitesListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/webmasters", - // "https://www.googleapis.com/auth/webmasters.readonly" - // ] - // } - } diff --git a/webrisk/v1/webrisk-gen.go b/webrisk/v1/webrisk-gen.go index 2c0134ddc49..801d1d8c170 100644 --- a/webrisk/v1/webrisk-gen.go +++ b/webrisk/v1/webrisk-gen.go @@ -815,7 +815,7 @@ func (c *HashesSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webrisk.hashes.search" call. @@ -925,7 +925,7 @@ func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webrisk.projects.operations.cancel" call. @@ -1024,7 +1024,7 @@ func (c *ProjectsOperationsDeleteCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webrisk.projects.operations.delete" call. @@ -1134,7 +1134,7 @@ func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webrisk.projects.operations.get" call. @@ -1263,7 +1263,7 @@ func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webrisk.projects.operations.list" call. @@ -1393,7 +1393,7 @@ func (c *ProjectsSubmissionsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webrisk.projects.submissions.create" call. @@ -1563,7 +1563,7 @@ func (c *ThreatListsComputeDiffCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webrisk.threatLists.computeDiff" call. @@ -1694,7 +1694,7 @@ func (c *UrisSearchCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "webrisk.uris.search" call. diff --git a/websecurityscanner/v1/websecurityscanner-gen.go b/websecurityscanner/v1/websecurityscanner-gen.go index 92faa3e0a8c..c1570e7490f 100644 --- a/websecurityscanner/v1/websecurityscanner-gen.go +++ b/websecurityscanner/v1/websecurityscanner-gen.go @@ -1332,7 +1332,7 @@ func (c *ProjectsScanConfigsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.create" call. @@ -1428,7 +1428,7 @@ func (c *ProjectsScanConfigsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.delete" call. @@ -1536,7 +1536,7 @@ func (c *ProjectsScanConfigsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.get" call. @@ -1661,7 +1661,7 @@ func (c *ProjectsScanConfigsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.list" call. @@ -1795,7 +1795,7 @@ func (c *ProjectsScanConfigsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.patch" call. @@ -1897,7 +1897,7 @@ func (c *ProjectsScanConfigsStartCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.start" call. @@ -2006,7 +2006,7 @@ func (c *ProjectsScanConfigsScanRunsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.get" call. @@ -2132,7 +2132,7 @@ func (c *ProjectsScanConfigsScanRunsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.list" call. @@ -2257,7 +2257,7 @@ func (c *ProjectsScanConfigsScanRunsStopCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.stop" call. @@ -2383,7 +2383,7 @@ func (c *ProjectsScanConfigsScanRunsCrawledUrlsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list" call. @@ -2514,7 +2514,7 @@ func (c *ProjectsScanConfigsScanRunsFindingTypeStatsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.findingTypeStats.list" call. @@ -2625,7 +2625,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.findings.get" call. @@ -2759,7 +2759,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.findings.list" call. diff --git a/websecurityscanner/v1alpha/websecurityscanner-gen.go b/websecurityscanner/v1alpha/websecurityscanner-gen.go index 9e2c4705c37..68971e20818 100644 --- a/websecurityscanner/v1alpha/websecurityscanner-gen.go +++ b/websecurityscanner/v1alpha/websecurityscanner-gen.go @@ -1050,7 +1050,7 @@ func (c *ProjectsScanConfigsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.create" call. @@ -1146,7 +1146,7 @@ func (c *ProjectsScanConfigsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.delete" call. @@ -1254,7 +1254,7 @@ func (c *ProjectsScanConfigsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.get" call. @@ -1379,7 +1379,7 @@ func (c *ProjectsScanConfigsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.list" call. @@ -1513,7 +1513,7 @@ func (c *ProjectsScanConfigsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.patch" call. @@ -1615,7 +1615,7 @@ func (c *ProjectsScanConfigsStartCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.start" call. @@ -1724,7 +1724,7 @@ func (c *ProjectsScanConfigsScanRunsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.get" call. @@ -1850,7 +1850,7 @@ func (c *ProjectsScanConfigsScanRunsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.list" call. @@ -1975,7 +1975,7 @@ func (c *ProjectsScanConfigsScanRunsStopCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.stop" call. @@ -2101,7 +2101,7 @@ func (c *ProjectsScanConfigsScanRunsCrawledUrlsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list" call. @@ -2232,7 +2232,7 @@ func (c *ProjectsScanConfigsScanRunsFindingTypeStatsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.findingTypeStats.list" call. @@ -2343,7 +2343,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.findings.get" call. @@ -2477,7 +2477,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.findings.list" call. diff --git a/websecurityscanner/v1beta/websecurityscanner-gen.go b/websecurityscanner/v1beta/websecurityscanner-gen.go index 6e670c9003c..a7ef20731fc 100644 --- a/websecurityscanner/v1beta/websecurityscanner-gen.go +++ b/websecurityscanner/v1beta/websecurityscanner-gen.go @@ -1306,7 +1306,7 @@ func (c *ProjectsScanConfigsCreateCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.create" call. @@ -1402,7 +1402,7 @@ func (c *ProjectsScanConfigsDeleteCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.delete" call. @@ -1510,7 +1510,7 @@ func (c *ProjectsScanConfigsGetCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.get" call. @@ -1635,7 +1635,7 @@ func (c *ProjectsScanConfigsListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.list" call. @@ -1769,7 +1769,7 @@ func (c *ProjectsScanConfigsPatchCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.patch" call. @@ -1871,7 +1871,7 @@ func (c *ProjectsScanConfigsStartCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.start" call. @@ -1980,7 +1980,7 @@ func (c *ProjectsScanConfigsScanRunsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.get" call. @@ -2106,7 +2106,7 @@ func (c *ProjectsScanConfigsScanRunsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.list" call. @@ -2231,7 +2231,7 @@ func (c *ProjectsScanConfigsScanRunsStopCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.stop" call. @@ -2357,7 +2357,7 @@ func (c *ProjectsScanConfigsScanRunsCrawledUrlsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list" call. @@ -2488,7 +2488,7 @@ func (c *ProjectsScanConfigsScanRunsFindingTypeStatsListCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.findingTypeStats.list" call. @@ -2599,7 +2599,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.findings.get" call. @@ -2733,7 +2733,7 @@ func (c *ProjectsScanConfigsScanRunsFindingsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "websecurityscanner.projects.scanConfigs.scanRuns.findings.list" call. diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 92db07bc4c9..f8c5fa05902 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -1041,7 +1041,7 @@ func (c *ProjectsLocationsWorkflowsTriggerPubsubExecutionCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "workflow": c.workflow, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.triggerPubsubExecution" call. @@ -1144,7 +1144,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsCancelCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.cancel" call. @@ -1248,7 +1248,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.create" call. @@ -1352,7 +1352,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsDeleteExecutionHistoryCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.deleteExecutionHistory" call. @@ -1462,7 +1462,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsExportDataCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.exportData" call. @@ -1589,7 +1589,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.get" call. @@ -1761,7 +1761,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.list" call. @@ -1911,7 +1911,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsCallbacksListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.callbacks.list" call. @@ -2057,7 +2057,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsStepEntriesGetCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.stepEntries.get" call. @@ -2229,7 +2229,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsStepEntriesListCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.stepEntries.list" call. diff --git a/workflowexecutions/v1beta/workflowexecutions-gen.go b/workflowexecutions/v1beta/workflowexecutions-gen.go index b41e973ec57..c4da1e2020d 100644 --- a/workflowexecutions/v1beta/workflowexecutions-gen.go +++ b/workflowexecutions/v1beta/workflowexecutions-gen.go @@ -523,7 +523,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsCancelCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.cancel" call. @@ -627,7 +627,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.create" call. @@ -753,7 +753,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.get" call. @@ -900,7 +900,7 @@ func (c *ProjectsLocationsWorkflowsExecutionsListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflowexecutions.projects.locations.workflows.executions.list" call. diff --git a/workflows/v1/workflows-gen.go b/workflows/v1/workflows-gen.go index a49eb3a4ff6..8f445643596 100644 --- a/workflows/v1/workflows-gen.go +++ b/workflows/v1/workflows-gen.go @@ -689,7 +689,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.get" call. @@ -820,7 +820,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.list" call. @@ -940,7 +940,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.operations.delete" call. @@ -1049,7 +1049,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.operations.get" call. @@ -1177,7 +1177,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.operations.list" call. @@ -1313,7 +1313,7 @@ func (c *ProjectsLocationsWorkflowsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.create" call. @@ -1410,7 +1410,7 @@ func (c *ProjectsLocationsWorkflowsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.delete" call. @@ -1528,7 +1528,7 @@ func (c *ProjectsLocationsWorkflowsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.get" call. @@ -1674,7 +1674,7 @@ func (c *ProjectsLocationsWorkflowsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.list" call. @@ -1821,7 +1821,7 @@ func (c *ProjectsLocationsWorkflowsListRevisionsCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.listRevisions" call. @@ -1956,7 +1956,7 @@ func (c *ProjectsLocationsWorkflowsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.patch" call. diff --git a/workflows/v1beta/workflows-gen.go b/workflows/v1beta/workflows-gen.go index 429ab62671a..dd44e2e1d8c 100644 --- a/workflows/v1beta/workflows-gen.go +++ b/workflows/v1beta/workflows-gen.go @@ -576,7 +576,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.get" call. @@ -707,7 +707,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.list" call. @@ -827,7 +827,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.operations.delete" call. @@ -936,7 +936,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.operations.get" call. @@ -1064,7 +1064,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.operations.list" call. @@ -1200,7 +1200,7 @@ func (c *ProjectsLocationsWorkflowsCreateCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.create" call. @@ -1297,7 +1297,7 @@ func (c *ProjectsLocationsWorkflowsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.delete" call. @@ -1405,7 +1405,7 @@ func (c *ProjectsLocationsWorkflowsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.get" call. @@ -1550,7 +1550,7 @@ func (c *ProjectsLocationsWorkflowsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.list" call. @@ -1684,7 +1684,7 @@ func (c *ProjectsLocationsWorkflowsPatchCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workflows.projects.locations.workflows.patch" call. diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index 2845f0708c5..feb5a1131b0 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -2304,7 +2304,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.get" call. @@ -2435,7 +2435,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.list" call. @@ -2582,7 +2582,7 @@ func (c *ProjectsLocationsEvaluationsCreateCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.evaluations.create" call. @@ -2700,7 +2700,7 @@ func (c *ProjectsLocationsEvaluationsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.evaluations.delete" call. @@ -2807,7 +2807,7 @@ func (c *ProjectsLocationsEvaluationsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.evaluations.get" call. @@ -2943,7 +2943,7 @@ func (c *ProjectsLocationsEvaluationsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.evaluations.list" call. @@ -3076,7 +3076,7 @@ func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.evaluations.executions.delete" call. @@ -3183,7 +3183,7 @@ func (c *ProjectsLocationsEvaluationsExecutionsGetCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.evaluations.executions.get" call. @@ -3319,7 +3319,7 @@ func (c *ProjectsLocationsEvaluationsExecutionsListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.evaluations.executions.list" call. @@ -3444,7 +3444,7 @@ func (c *ProjectsLocationsEvaluationsExecutionsRunCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.evaluations.executions.run" call. @@ -3573,7 +3573,7 @@ func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.evaluations.executions.results.list" call. @@ -3736,7 +3736,7 @@ func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.evaluations.executions.scannedResources.list" call. @@ -3860,7 +3860,7 @@ func (c *ProjectsLocationsInsightsWriteInsightCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "location": c.location, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.insights.writeInsight" call. @@ -3970,7 +3970,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.operations.cancel" call. @@ -4068,7 +4068,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.operations.delete" call. @@ -4177,7 +4177,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.operations.get" call. @@ -4305,7 +4305,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.operations.list" call. @@ -4465,7 +4465,7 @@ func (c *ProjectsLocationsRulesListCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workloadmanager.projects.locations.rules.list" call. diff --git a/workspaceevents/v1/workspaceevents-gen.go b/workspaceevents/v1/workspaceevents-gen.go index d224d2d91fc..59d3e52a366 100644 --- a/workspaceevents/v1/workspaceevents-gen.go +++ b/workspaceevents/v1/workspaceevents-gen.go @@ -589,7 +589,7 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workspaceevents.operations.get" call. @@ -693,7 +693,7 @@ func (c *SubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workspaceevents.subscriptions.create" call. @@ -815,7 +815,7 @@ func (c *SubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workspaceevents.subscriptions.delete" call. @@ -926,7 +926,7 @@ func (c *SubscriptionsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workspaceevents.subscriptions.get" call. @@ -1069,7 +1069,7 @@ func (c *SubscriptionsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workspaceevents.subscriptions.list" call. @@ -1215,7 +1215,7 @@ func (c *SubscriptionsPatchCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workspaceevents.subscriptions.patch" call. @@ -1323,7 +1323,7 @@ func (c *SubscriptionsReactivateCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workspaceevents.subscriptions.reactivate" call. diff --git a/workstations/v1/workstations-gen.go b/workstations/v1/workstations-gen.go index d22e8732ffa..f18ff924dd2 100644 --- a/workstations/v1/workstations-gen.go +++ b/workstations/v1/workstations-gen.go @@ -2034,7 +2034,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.get" call. @@ -2165,7 +2165,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.list" call. @@ -2296,7 +2296,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.operations.cancel" call. @@ -2395,7 +2395,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.operations.delete" call. @@ -2505,7 +2505,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.operations.get" call. @@ -2633,7 +2633,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.operations.list" call. @@ -2770,7 +2770,7 @@ func (c *ProjectsLocationsWorkstationClustersCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.create" call. @@ -2889,7 +2889,7 @@ func (c *ProjectsLocationsWorkstationClustersDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.delete" call. @@ -2996,7 +2996,7 @@ func (c *ProjectsLocationsWorkstationClustersGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.get" call. @@ -3118,7 +3118,7 @@ func (c *ProjectsLocationsWorkstationClustersListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.list" call. @@ -3263,7 +3263,7 @@ func (c *ProjectsLocationsWorkstationClustersPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.patch" call. @@ -3378,7 +3378,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.create" call. @@ -3496,7 +3496,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.delete" call. @@ -3603,7 +3603,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.get" call. @@ -3731,7 +3731,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.getIamPolicy" call. @@ -3852,7 +3852,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.list" call. @@ -3996,7 +3996,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.listUsable" call. @@ -4141,7 +4141,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.patch" call. @@ -4246,7 +4246,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.setIamPolicy" call. @@ -4354,7 +4354,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermission googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.testIamPermissions" call. @@ -4470,7 +4470,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreat googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.create" call. @@ -4580,7 +4580,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDelet googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.delete" call. @@ -4683,7 +4683,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGener googleapi.Expand(req.URL, map[string]string{ "workstation": c.workstation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.generateAccessToken" call. @@ -4791,7 +4791,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCa googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.get" call. @@ -4918,7 +4918,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.getIamPolicy" call. @@ -5040,7 +5040,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListC googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.list" call. @@ -5185,7 +5185,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListU googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.listUsable" call. @@ -5330,7 +5330,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatch googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.patch" call. @@ -5435,7 +5435,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.setIamPolicy" call. @@ -5536,7 +5536,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStart googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.start" call. @@ -5637,7 +5637,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.stop" call. @@ -5745,7 +5745,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestI googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.testIamPermissions" call. diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go index 1063ec4aaa8..482267fdcb2 100644 --- a/workstations/v1beta/workstations-gen.go +++ b/workstations/v1beta/workstations-gen.go @@ -2108,7 +2108,7 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.operations.cancel" call. @@ -2207,7 +2207,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.operations.delete" call. @@ -2317,7 +2317,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.operations.get" call. @@ -2445,7 +2445,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.operations.list" call. @@ -2582,7 +2582,7 @@ func (c *ProjectsLocationsWorkstationClustersCreateCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.create" call. @@ -2701,7 +2701,7 @@ func (c *ProjectsLocationsWorkstationClustersDeleteCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.delete" call. @@ -2808,7 +2808,7 @@ func (c *ProjectsLocationsWorkstationClustersGetCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.get" call. @@ -2930,7 +2930,7 @@ func (c *ProjectsLocationsWorkstationClustersListCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.list" call. @@ -3075,7 +3075,7 @@ func (c *ProjectsLocationsWorkstationClustersPatchCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.patch" call. @@ -3190,7 +3190,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall) doReq googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.create" call. @@ -3308,7 +3308,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) doReq googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.delete" call. @@ -3415,7 +3415,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.get" call. @@ -3543,7 +3543,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetIamPolicyCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.getIamPolicy" call. @@ -3664,7 +3664,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) doReque googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.list" call. @@ -3808,7 +3808,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) d googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.listUsable" call. @@ -3953,7 +3953,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) doRequ googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.patch" call. @@ -4058,7 +4058,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsSetIamPolicyCall) googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.setIamPolicy" call. @@ -4166,7 +4166,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsTestIamPermission googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.testIamPermissions" call. @@ -4282,7 +4282,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreat googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.create" call. @@ -4392,7 +4392,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDelet googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.delete" call. @@ -4495,7 +4495,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGener googleapi.Expand(req.URL, map[string]string{ "workstation": c.workstation, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.generateAccessToken" call. @@ -4603,7 +4603,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCa googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.get" call. @@ -4730,7 +4730,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetIa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.getIamPolicy" call. @@ -4852,7 +4852,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListC googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.list" call. @@ -4997,7 +4997,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsListU googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.listUsable" call. @@ -5142,7 +5142,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatch googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.patch" call. @@ -5247,7 +5247,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSetIa googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.setIamPolicy" call. @@ -5348,7 +5348,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStart googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.start" call. @@ -5449,7 +5449,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopC googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.stop" call. @@ -5557,7 +5557,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestI googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.testIamPermissions" call. diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 38316f5f812..995affd037d 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -8612,7 +8612,7 @@ func (c *AbuseReportsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.abuseReports.insert" call. @@ -8775,7 +8775,7 @@ func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.activities.list" call. @@ -8911,7 +8911,7 @@ func (c *CaptionsDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.captions.delete" call. @@ -9032,7 +9032,7 @@ func (c *CaptionsDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "id": c.id, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -9203,7 +9203,7 @@ func (c *CaptionsInsertCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.captions.insert" call. @@ -9357,7 +9357,7 @@ func (c *CaptionsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.captions.list" call. @@ -9537,7 +9537,7 @@ func (c *CaptionsUpdateCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.captions.update" call. @@ -9743,7 +9743,7 @@ func (c *ChannelBannersInsertCall) doRequest(alt string) (*http.Response, error) } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.channelBanners.insert" call. @@ -9868,7 +9868,7 @@ func (c *ChannelSectionsDeleteCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.channelSections.delete" call. @@ -9983,7 +9983,7 @@ func (c *ChannelSectionsInsertCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.channelSections.insert" call. @@ -10137,7 +10137,7 @@ func (c *ChannelSectionsListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.channelSections.list" call. @@ -10254,7 +10254,7 @@ func (c *ChannelSectionsUpdateCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.channelSections.update" call. @@ -10456,7 +10456,7 @@ func (c *ChannelsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.channels.list" call. @@ -10596,7 +10596,7 @@ func (c *ChannelsUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.channels.update" call. @@ -10695,7 +10695,7 @@ func (c *CommentThreadsInsertCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.commentThreads.insert" call. @@ -10898,7 +10898,7 @@ func (c *CommentThreadsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.commentThreads.list" call. @@ -11011,7 +11011,7 @@ func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.comments.delete" call. @@ -11087,7 +11087,7 @@ func (c *CommentsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.comments.insert" call. @@ -11240,7 +11240,7 @@ func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.comments.list" call. @@ -11354,7 +11354,7 @@ func (c *CommentsMarkAsSpamCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.comments.markAsSpam" call. @@ -11436,7 +11436,7 @@ func (c *CommentsSetModerationStatusCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.comments.setModerationStatus" call. @@ -11513,7 +11513,7 @@ func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.comments.update" call. @@ -11623,7 +11623,7 @@ func (c *I18nLanguagesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.i18nLanguages.list" call. @@ -11734,7 +11734,7 @@ func (c *I18nRegionsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.i18nRegions.list" call. @@ -11876,7 +11876,7 @@ func (c *LiveBroadcastsBindCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveBroadcasts.bind" call. @@ -12005,7 +12005,7 @@ func (c *LiveBroadcastsDeleteCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveBroadcasts.delete" call. @@ -12121,7 +12121,7 @@ func (c *LiveBroadcastsInsertCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveBroadcasts.insert" call. @@ -12269,7 +12269,7 @@ func (c *LiveBroadcastsInsertCuepointCall) doRequest(alt string) (*http.Response return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveBroadcasts.insertCuepoint" call. @@ -12472,7 +12472,7 @@ func (c *LiveBroadcastsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveBroadcasts.list" call. @@ -12630,7 +12630,7 @@ func (c *LiveBroadcastsTransitionCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveBroadcasts.transition" call. @@ -12777,7 +12777,7 @@ func (c *LiveBroadcastsUpdateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveBroadcasts.update" call. @@ -12868,7 +12868,7 @@ func (c *LiveChatBansDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveChatBans.delete" call. @@ -12945,7 +12945,7 @@ func (c *LiveChatBansInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveChatBans.insert" call. @@ -13036,7 +13036,7 @@ func (c *LiveChatMessagesDeleteCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveChatMessages.delete" call. @@ -13112,7 +13112,7 @@ func (c *LiveChatMessagesInsertCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveChatMessages.insert" call. @@ -13251,7 +13251,7 @@ func (c *LiveChatMessagesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveChatMessages.list" call. @@ -13380,7 +13380,7 @@ func (c *LiveChatMessagesTransitionCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveChatMessages.transition" call. @@ -13472,7 +13472,7 @@ func (c *LiveChatModeratorsDeleteCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveChatModerators.delete" call. @@ -13549,7 +13549,7 @@ func (c *LiveChatModeratorsInsertCall) doRequest(alt string) (*http.Response, er return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveChatModerators.insert" call. @@ -13674,7 +13674,7 @@ func (c *LiveChatModeratorsListCall) doRequest(alt string) (*http.Response, erro return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveChatModerators.list" call. @@ -13825,7 +13825,7 @@ func (c *LiveStreamsDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveStreams.delete" call. @@ -13941,7 +13941,7 @@ func (c *LiveStreamsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveStreams.insert" call. @@ -14115,7 +14115,7 @@ func (c *LiveStreamsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveStreams.list" call. @@ -14279,7 +14279,7 @@ func (c *LiveStreamsUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.liveStreams.update" call. @@ -14434,7 +14434,7 @@ func (c *MembersListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.members.list" call. @@ -14561,7 +14561,7 @@ func (c *MembershipsLevelsListCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.membershipsLevels.list" call. @@ -14673,7 +14673,7 @@ func (c *PlaylistImagesDeleteCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlistImages.delete" call. @@ -14839,7 +14839,7 @@ func (c *PlaylistImagesInsertCall) doRequest(alt string) (*http.Response, error) } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlistImages.insert" call. @@ -15028,7 +15028,7 @@ func (c *PlaylistImagesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlistImages.list" call. @@ -15217,7 +15217,7 @@ func (c *PlaylistImagesUpdateCall) doRequest(alt string) (*http.Response, error) } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlistImages.update" call. @@ -15341,7 +15341,7 @@ func (c *PlaylistItemsDeleteCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlistItems.delete" call. @@ -15433,7 +15433,7 @@ func (c *PlaylistItemsInsertCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlistItems.insert" call. @@ -15596,7 +15596,7 @@ func (c *PlaylistItemsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlistItems.list" call. @@ -15743,7 +15743,7 @@ func (c *PlaylistItemsUpdateCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlistItems.update" call. @@ -15850,7 +15850,7 @@ func (c *PlaylistsDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlists.delete" call. @@ -15964,7 +15964,7 @@ func (c *PlaylistsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlists.insert" call. @@ -16155,7 +16155,7 @@ func (c *PlaylistsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlists.list" call. @@ -16298,7 +16298,7 @@ func (c *PlaylistsUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.playlists.update" call. @@ -16744,7 +16744,7 @@ func (c *SearchListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.search.list" call. @@ -16857,7 +16857,7 @@ func (c *SubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.subscriptions.delete" call. @@ -16933,7 +16933,7 @@ func (c *SubscriptionsInsertCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.subscriptions.insert" call. @@ -17153,7 +17153,7 @@ func (c *SubscriptionsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.subscriptions.list" call. @@ -17304,7 +17304,7 @@ func (c *SuperChatEventsListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.superChatEvents.list" call. @@ -17429,7 +17429,7 @@ func (c *TestsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.tests.insert" call. @@ -17536,7 +17536,7 @@ func (c *ThirdPartyLinksDeleteCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.thirdPartyLinks.delete" call. @@ -17619,7 +17619,7 @@ func (c *ThirdPartyLinksInsertCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.thirdPartyLinks.insert" call. @@ -17753,7 +17753,7 @@ func (c *ThirdPartyLinksListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.thirdPartyLinks.list" call. @@ -17860,7 +17860,7 @@ func (c *ThirdPartyLinksUpdateCall) doRequest(alt string) (*http.Response, error return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.thirdPartyLinks.update" call. @@ -18020,7 +18020,7 @@ func (c *ThumbnailsSetCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.thumbnails.set" call. @@ -18148,7 +18148,7 @@ func (c *VideoAbuseReportReasonsListCall) doRequest(alt string) (*http.Response, return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.videoAbuseReportReasons.list" call. @@ -18272,7 +18272,7 @@ func (c *VideoCategoriesListCall) doRequest(alt string) (*http.Response, error) return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.videoCategories.list" call. @@ -18380,7 +18380,7 @@ func (c *VideosDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.videos.delete" call. @@ -18477,7 +18477,7 @@ func (c *VideosGetRatingCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.videos.getRating" call. @@ -18692,7 +18692,7 @@ func (c *VideosInsertCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.videos.insert" call. @@ -18933,7 +18933,7 @@ func (c *VideosListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.videos.list" call. @@ -19049,7 +19049,7 @@ func (c *VideosRateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.videos.rate" call. @@ -19136,7 +19136,7 @@ func (c *VideosReportAbuseCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.videos.reportAbuse" call. @@ -19242,7 +19242,7 @@ func (c *VideosUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.videos.update" call. @@ -19405,7 +19405,7 @@ func (c *WatermarksSetCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders req.GetBody = getBody - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.watermarks.set" call. @@ -19506,7 +19506,7 @@ func (c *WatermarksUnsetCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.watermarks.unset" call. @@ -19587,7 +19587,7 @@ func (c *YoutubeV3UpdateCommentThreadsCall) doRequest(alt string) (*http.Respons return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtube.youtube.v3.updateCommentThreads" call. diff --git a/youtubeanalytics/v1/youtubeanalytics-gen.go b/youtubeanalytics/v1/youtubeanalytics-gen.go index 1b5ac707b58..c55d408aec0 100644 --- a/youtubeanalytics/v1/youtubeanalytics-gen.go +++ b/youtubeanalytics/v1/youtubeanalytics-gen.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: https://developers.google.com/youtube/analytics // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,24 +28,26 @@ // ctx := context.Background() // youtubeanalyticsService, err := youtubeanalytics.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // youtubeanalyticsService, err := youtubeanalytics.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // youtubeanalyticsService, err := youtubeanalytics.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package youtubeanalytics // import "google.golang.org/api/youtubeanalytics/v1" import ( @@ -50,6 +63,7 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" internaloption "google.golang.org/api/option/internaloption" @@ -70,17 +84,21 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "youtubeAnalytics:v1" const apiName = "youtubeAnalytics" const apiVersion = "v1" const basePath = "https://youtubeanalytics.googleapis.com/" +const basePathTemplate = "https://youtubeanalytics.UNIVERSE_DOMAIN/" const mtlsBasePath = "https://youtubeanalytics.mtls.googleapis.com/" // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err diff --git a/youtubeanalytics/v1beta1/youtubeanalytics-gen.go b/youtubeanalytics/v1beta1/youtubeanalytics-gen.go index 805a90ffb96..604f112ca44 100644 --- a/youtubeanalytics/v1beta1/youtubeanalytics-gen.go +++ b/youtubeanalytics/v1beta1/youtubeanalytics-gen.go @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,6 +8,17 @@ // // For product documentation, see: http://developers.google.com/youtube/analytics/ // +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// // # Creating a client // // Usage example: @@ -17,28 +28,31 @@ // ctx := context.Background() // youtubeanalyticsService, err := youtubeanalytics.NewService(ctx) // -// In this example, Google Application Default Credentials are used for authentication. -// -// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: // // youtubeanalyticsService, err := youtubeanalytics.NewService(ctx, option.WithScopes(youtubeanalytics.YtAnalyticsReadonlyScope)) // -// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: // // youtubeanalyticsService, err := youtubeanalytics.NewService(ctx, option.WithAPIKey("AIza...")) // -// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: // // config := &oauth2.Config{...} // // ... // token, err := config.Exchange(ctx, ...) // youtubeanalyticsService, err := youtubeanalytics.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) // -// See https://godoc.org/google.golang.org/api/option/ for details on options. +// See [google.golang.org/api/option.ClientOption] for details on options. package youtubeanalytics // import "google.golang.org/api/youtubeanalytics/v1beta1" import ( @@ -54,8 +68,10 @@ import ( "strings" googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" gensupport "google.golang.org/api/internal/gensupport" option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" htransport "google.golang.org/api/transport/http" ) @@ -72,11 +88,14 @@ var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "youtubeAnalytics:v1beta1" const apiName = "youtubeAnalytics" const apiVersion = "v1beta1" const basePath = "https://www.googleapis.com/youtube/analytics/v1beta1/" +const basePathTemplate = "https://www.UNIVERSE_DOMAIN/youtube/analytics/v1beta1/" // OAuth2 scopes used by this API. const ( @@ -89,8 +108,8 @@ const ( // View and manage your assets and associated content on YouTube YoutubepartnerScope = "https://www.googleapis.com/auth/youtubepartner" - // View monetary and non-monetary YouTube Analytics reports for your - // YouTube content + // View monetary and non-monetary YouTube Analytics reports for your YouTube + // content YtAnalyticsMonetaryReadonlyScope = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly" // View YouTube Analytics reports for your YouTube content @@ -99,7 +118,7 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := option.WithScopes( + scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner", @@ -108,6 +127,9 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate)) + opts = append(opts, internaloption.EnableNewAuthLibrary()) client, endpoint, err := htransport.NewClient(ctx, opts...) if err != nil { return nil, err @@ -186,334 +208,249 @@ type ReportsService struct { type Group struct { ContentDetails *GroupContentDetails `json:"contentDetails,omitempty"` + Etag string `json:"etag,omitempty"` + Id string `json:"id,omitempty"` + Kind string `json:"kind,omitempty"` + Snippet *GroupSnippet `json:"snippet,omitempty"` - Etag string `json:"etag,omitempty"` - - Id string `json:"id,omitempty"` - - Kind string `json:"kind,omitempty"` - - Snippet *GroupSnippet `json:"snippet,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ContentDetails") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ContentDetails") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ContentDetails") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Group) MarshalJSON() ([]byte, error) { +func (s Group) MarshalJSON() ([]byte, error) { type NoMethod Group - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GroupContentDetails struct { ItemCount uint64 `json:"itemCount,omitempty,string"` - - ItemType string `json:"itemType,omitempty"` - + ItemType string `json:"itemType,omitempty"` // ForceSendFields is a list of field names (e.g. "ItemCount") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ItemCount") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ItemCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupContentDetails) MarshalJSON() ([]byte, error) { +func (s GroupContentDetails) MarshalJSON() ([]byte, error) { type NoMethod GroupContentDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GroupSnippet struct { PublishedAt string `json:"publishedAt,omitempty"` - - Title string `json:"title,omitempty"` - + Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "PublishedAt") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PublishedAt") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "PublishedAt") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupSnippet) MarshalJSON() ([]byte, error) { +func (s GroupSnippet) MarshalJSON() ([]byte, error) { type NoMethod GroupSnippet - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GroupItem struct { - Etag string `json:"etag,omitempty"` - - GroupId string `json:"groupId,omitempty"` - - Id string `json:"id,omitempty"` - - Kind string `json:"kind,omitempty"` - + Etag string `json:"etag,omitempty"` + GroupId string `json:"groupId,omitempty"` + Id string `json:"id,omitempty"` + Kind string `json:"kind,omitempty"` Resource *GroupItemResource `json:"resource,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupItem) MarshalJSON() ([]byte, error) { +func (s GroupItem) MarshalJSON() ([]byte, error) { type NoMethod GroupItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type GroupItemResource struct { - Id string `json:"id,omitempty"` - + Id string `json:"id,omitempty"` Kind string `json:"kind,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupItemResource) MarshalJSON() ([]byte, error) { +func (s GroupItemResource) MarshalJSON() ([]byte, error) { type NoMethod GroupItemResource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GroupItemListResponse: A paginated list of grouList resources -// returned in response to a youtubeAnalytics.groupApi.list request. +// GroupItemListResponse: A paginated list of grouList resources returned in +// response to a youtubeAnalytics.groupApi.list request. type GroupItemListResponse struct { - Etag string `json:"etag,omitempty"` - + Etag string `json:"etag,omitempty"` Items []*GroupItem `json:"items,omitempty"` + Kind string `json:"kind,omitempty"` - Kind string `json:"kind,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupItemListResponse) MarshalJSON() ([]byte, error) { +func (s GroupItemListResponse) MarshalJSON() ([]byte, error) { type NoMethod GroupItemListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GroupListResponse: A paginated list of grouList resources returned in // response to a youtubeAnalytics.groupApi.list request. type GroupListResponse struct { - Etag string `json:"etag,omitempty"` - - Items []*Group `json:"items,omitempty"` - - Kind string `json:"kind,omitempty"` - - NextPageToken string `json:"nextPageToken,omitempty"` + Etag string `json:"etag,omitempty"` + Items []*Group `json:"items,omitempty"` + Kind string `json:"kind,omitempty"` + NextPageToken string `json:"nextPageToken,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Etag") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *GroupListResponse) MarshalJSON() ([]byte, error) { +func (s GroupListResponse) MarshalJSON() ([]byte, error) { type NoMethod GroupListResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResultTable: Contains a single result table. The table is returned as -// an array of rows that contain the values for the cells of the table. -// Depending on the metric or dimension, the cell can contain a string -// (video ID, country code) or a number (number of views or number of -// likes). +// ResultTable: Contains a single result table. The table is returned as an +// array of rows that contain the values for the cells of the table. Depending +// on the metric or dimension, the cell can contain a string (video ID, country +// code) or a number (number of views or number of likes). type ResultTable struct { - // ColumnHeaders: This value specifies information about the data - // returned in the rows fields. Each item in the columnHeaders list - // identifies a field returned in the rows value, which contains a list - // of comma-delimited data. The columnHeaders list will begin with the - // dimensions specified in the API request, which will be followed by - // the metrics specified in the API request. The order of both - // dimensions and metrics will match the ordering in the API request. - // For example, if the API request contains the parameters - // dimensions=ageGroup,gender&metrics=viewerPercentage, the API response - // will return columns in this order: ageGroup,gender,viewerPercentage. + // ColumnHeaders: This value specifies information about the data returned in + // the rows fields. Each item in the columnHeaders list identifies a field + // returned in the rows value, which contains a list of comma-delimited data. + // The columnHeaders list will begin with the dimensions specified in the API + // request, which will be followed by the metrics specified in the API request. + // The order of both dimensions and metrics will match the ordering in the API + // request. For example, if the API request contains the parameters + // dimensions=ageGroup,gender&metrics=viewerPercentage, the API response will + // return columns in this order: ageGroup,gender,viewerPercentage. ColumnHeaders []*ResultTableColumnHeaders `json:"columnHeaders,omitempty"` - - // Kind: This value specifies the type of data included in the API - // response. For the query method, the kind property value will be + // Kind: This value specifies the type of data included in the API response. + // For the query method, the kind property value will be // youtubeAnalytics#resultTable. Kind string `json:"kind,omitempty"` - - // Rows: The list contains all rows of the result table. Each item in - // the list is an array that contains comma-delimited data corresponding - // to a single row of data. The order of the comma-delimited data fields - // will match the order of the columns listed in the columnHeaders - // field. If no data is available for the given query, the rows element - // will be omitted from the response. The response for a query with the - // day dimension will not contain rows for the most recent days. + // Rows: The list contains all rows of the result table. Each item in the list + // is an array that contains comma-delimited data corresponding to a single row + // of data. The order of the comma-delimited data fields will match the order + // of the columns listed in the columnHeaders field. If no data is available + // for the given query, the rows element will be omitted from the response. The + // response for a query with the day dimension will not contain rows for the + // most recent days. Rows [][]interface{} `json:"rows,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. + // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ColumnHeaders") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ColumnHeaders") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ColumnHeaders") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultTable) MarshalJSON() ([]byte, error) { +func (s ResultTable) MarshalJSON() ([]byte, error) { type NoMethod ResultTable - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ResultTableColumnHeaders struct { // ColumnType: The type of the column (DIMENSION or METRIC). ColumnType string `json:"columnType,omitempty"` - - // DataType: The type of the data in the column (STRING, INTEGER, FLOAT, - // etc.). + // DataType: The type of the data in the column (STRING, INTEGER, FLOAT, etc.). DataType string `json:"dataType,omitempty"` - // Name: The name of the dimension or metric. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "ColumnType") to - // unconditionally include in API requests. By default, fields with - // empty values are omitted from API requests. However, any non-pointer, - // non-interface field appearing in ForceSendFields will be sent to the - // server regardless of whether the field is empty or not. This may be - // used to include empty fields in Patch requests. + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ColumnType") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ColumnType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ResultTableColumnHeaders) MarshalJSON() ([]byte, error) { +func (s ResultTableColumnHeaders) MarshalJSON() ([]byte, error) { type NoMethod ResultTableColumnHeaders - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// method id "youtubeAnalytics.groupItems.delete": - type GroupItemsDeleteCall struct { s *Service urlParams_ gensupport.URLParams @@ -522,48 +459,49 @@ type GroupItemsDeleteCall struct { } // Delete: Removes an item from a group. +// +// - id: The id parameter specifies the YouTube group item ID for the group +// that is being deleted. func (r *GroupItemsService) Delete(id string) *GroupItemsDeleteCall { c := &GroupItemsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("id", id) return c } -// OnBehalfOfContentOwner sets the optional parameter -// "onBehalfOfContentOwner": Note: This parameter is intended -// exclusively for YouTube content partners. +// OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": +// Note: This parameter is intended exclusively for YouTube content +// partners. // // The onBehalfOfContentOwner parameter indicates that the request's -// authorization credentials identify a YouTube CMS user who is acting -// on behalf of the content owner specified in the parameter value. This -// parameter is intended for YouTube content partners that own and -// manage many different YouTube channels. It allows content owners to -// authenticate once and get access to all their video and channel data, -// without having to provide authentication credentials for each -// individual channel. The CMS account that the user authenticates with -// must be linked to the specified YouTube content owner. +// authorization credentials identify a YouTube CMS user who is acting on +// behalf of the content owner specified in the parameter value. This parameter +// is intended for YouTube content partners that own and manage many different +// YouTube channels. It allows content owners to authenticate once and get +// access to all their video and channel data, without having to provide +// authentication credentials for each individual channel. The CMS account that +// the user authenticates with must be linked to the specified YouTube content +// owner. func (c *GroupItemsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *GroupItemsDeleteCall { c.urlParams_.Set("onBehalfOfContentOwner", onBehalfOfContentOwner) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GroupItemsDeleteCall) Fields(s ...googleapi.Field) *GroupItemsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GroupItemsDeleteCall) Context(ctx context.Context) *GroupItemsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GroupItemsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -572,12 +510,7 @@ func (c *GroupItemsDeleteCall) Header() http.Header { } func (c *GroupItemsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -588,7 +521,7 @@ func (c *GroupItemsDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groupItems.delete" call. @@ -600,39 +533,10 @@ func (c *GroupItemsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Removes an item from a group.", - // "httpMethod": "DELETE", - // "id": "youtubeAnalytics.groupItems.delete", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The id parameter specifies the YouTube group item ID for the group that is being deleted.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "onBehalfOfContentOwner": { - // "description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "groupItems", - // "scopes": [ - // "https://www.googleapis.com/auth/youtube", - // "https://www.googleapis.com/auth/youtubepartner" - // ] - // } - -} - -// method id "youtubeAnalytics.groupItems.insert": +} type GroupItemsInsertCall struct { s *Service @@ -649,42 +553,40 @@ func (r *GroupItemsService) Insert(groupitem *GroupItem) *GroupItemsInsertCall { return c } -// OnBehalfOfContentOwner sets the optional parameter -// "onBehalfOfContentOwner": Note: This parameter is intended -// exclusively for YouTube content partners. +// OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": +// Note: This parameter is intended exclusively for YouTube content +// partners. // // The onBehalfOfContentOwner parameter indicates that the request's -// authorization credentials identify a YouTube CMS user who is acting -// on behalf of the content owner specified in the parameter value. This -// parameter is intended for YouTube content partners that own and -// manage many different YouTube channels. It allows content owners to -// authenticate once and get access to all their video and channel data, -// without having to provide authentication credentials for each -// individual channel. The CMS account that the user authenticates with -// must be linked to the specified YouTube content owner. +// authorization credentials identify a YouTube CMS user who is acting on +// behalf of the content owner specified in the parameter value. This parameter +// is intended for YouTube content partners that own and manage many different +// YouTube channels. It allows content owners to authenticate once and get +// access to all their video and channel data, without having to provide +// authentication credentials for each individual channel. The CMS account that +// the user authenticates with must be linked to the specified YouTube content +// owner. func (c *GroupItemsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *GroupItemsInsertCall { c.urlParams_.Set("onBehalfOfContentOwner", onBehalfOfContentOwner) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GroupItemsInsertCall) Fields(s ...googleapi.Field) *GroupItemsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GroupItemsInsertCall) Context(ctx context.Context) *GroupItemsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GroupItemsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -693,18 +595,12 @@ func (c *GroupItemsInsertCall) Header() http.Header { } func (c *GroupItemsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.groupitem) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "groupItems") @@ -714,16 +610,14 @@ func (c *GroupItemsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groupItems.insert" call. -// Exactly one of *GroupItem or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *GroupItem.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GroupItem.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *GroupItemsInsertCall) Do(opts ...googleapi.CallOption) (*GroupItem, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -731,17 +625,17 @@ func (c *GroupItemsInsertCall) Do(opts ...googleapi.CallOption) (*GroupItem, err if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GroupItem{ ServerResponse: googleapi.ServerResponse{ @@ -754,33 +648,7 @@ func (c *GroupItemsInsertCall) Do(opts ...googleapi.CallOption) (*GroupItem, err return nil, err } return ret, nil - // { - // "description": "Creates a group item.", - // "httpMethod": "POST", - // "id": "youtubeAnalytics.groupItems.insert", - // "parameters": { - // "onBehalfOfContentOwner": { - // "description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "groupItems", - // "request": { - // "$ref": "GroupItem" - // }, - // "response": { - // "$ref": "GroupItem" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/youtube", - // "https://www.googleapis.com/auth/youtubepartner" - // ] - // } - -} - -// method id "youtubeAnalytics.groupItems.list": +} type GroupItemsListCall struct { s *Service @@ -792,58 +660,57 @@ type GroupItemsListCall struct { // List: Returns a collection of group items that match the API request // parameters. +// +// - groupId: The id parameter specifies the unique ID of the group for which +// you want to retrieve group items. func (r *GroupItemsService) List(groupId string) *GroupItemsListCall { c := &GroupItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("groupId", groupId) return c } -// OnBehalfOfContentOwner sets the optional parameter -// "onBehalfOfContentOwner": Note: This parameter is intended -// exclusively for YouTube content partners. +// OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": +// Note: This parameter is intended exclusively for YouTube content +// partners. // // The onBehalfOfContentOwner parameter indicates that the request's -// authorization credentials identify a YouTube CMS user who is acting -// on behalf of the content owner specified in the parameter value. This -// parameter is intended for YouTube content partners that own and -// manage many different YouTube channels. It allows content owners to -// authenticate once and get access to all their video and channel data, -// without having to provide authentication credentials for each -// individual channel. The CMS account that the user authenticates with -// must be linked to the specified YouTube content owner. +// authorization credentials identify a YouTube CMS user who is acting on +// behalf of the content owner specified in the parameter value. This parameter +// is intended for YouTube content partners that own and manage many different +// YouTube channels. It allows content owners to authenticate once and get +// access to all their video and channel data, without having to provide +// authentication credentials for each individual channel. The CMS account that +// the user authenticates with must be linked to the specified YouTube content +// owner. func (c *GroupItemsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *GroupItemsListCall { c.urlParams_.Set("onBehalfOfContentOwner", onBehalfOfContentOwner) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GroupItemsListCall) Fields(s ...googleapi.Field) *GroupItemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *GroupItemsListCall) IfNoneMatch(entityTag string) *GroupItemsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GroupItemsListCall) Context(ctx context.Context) *GroupItemsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GroupItemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -852,12 +719,7 @@ func (c *GroupItemsListCall) Header() http.Header { } func (c *GroupItemsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -871,16 +733,15 @@ func (c *GroupItemsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groupItems.list" call. -// Exactly one of *GroupItemListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GroupItemListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GroupItemListResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *GroupItemsListCall) Do(opts ...googleapi.CallOption) (*GroupItemListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -888,17 +749,17 @@ func (c *GroupItemsListCall) Do(opts ...googleapi.CallOption) (*GroupItemListRes if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GroupItemListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -911,41 +772,7 @@ func (c *GroupItemsListCall) Do(opts ...googleapi.CallOption) (*GroupItemListRes return nil, err } return ret, nil - // { - // "description": "Returns a collection of group items that match the API request parameters.", - // "httpMethod": "GET", - // "id": "youtubeAnalytics.groupItems.list", - // "parameterOrder": [ - // "groupId" - // ], - // "parameters": { - // "groupId": { - // "description": "The id parameter specifies the unique ID of the group for which you want to retrieve group items.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "onBehalfOfContentOwner": { - // "description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "groupItems", - // "response": { - // "$ref": "GroupItemListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/youtube", - // "https://www.googleapis.com/auth/youtube.readonly", - // "https://www.googleapis.com/auth/youtubepartner", - // "https://www.googleapis.com/auth/yt-analytics.readonly" - // ] - // } - -} - -// method id "youtubeAnalytics.groups.delete": +} type GroupsDeleteCall struct { s *Service @@ -955,48 +782,49 @@ type GroupsDeleteCall struct { } // Delete: Deletes a group. +// +// - id: The id parameter specifies the YouTube group ID for the group that is +// being deleted. func (r *GroupsService) Delete(id string) *GroupsDeleteCall { c := &GroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("id", id) return c } -// OnBehalfOfContentOwner sets the optional parameter -// "onBehalfOfContentOwner": Note: This parameter is intended -// exclusively for YouTube content partners. +// OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": +// Note: This parameter is intended exclusively for YouTube content +// partners. // // The onBehalfOfContentOwner parameter indicates that the request's -// authorization credentials identify a YouTube CMS user who is acting -// on behalf of the content owner specified in the parameter value. This -// parameter is intended for YouTube content partners that own and -// manage many different YouTube channels. It allows content owners to -// authenticate once and get access to all their video and channel data, -// without having to provide authentication credentials for each -// individual channel. The CMS account that the user authenticates with -// must be linked to the specified YouTube content owner. +// authorization credentials identify a YouTube CMS user who is acting on +// behalf of the content owner specified in the parameter value. This parameter +// is intended for YouTube content partners that own and manage many different +// YouTube channels. It allows content owners to authenticate once and get +// access to all their video and channel data, without having to provide +// authentication credentials for each individual channel. The CMS account that +// the user authenticates with must be linked to the specified YouTube content +// owner. func (c *GroupsDeleteCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *GroupsDeleteCall { c.urlParams_.Set("onBehalfOfContentOwner", onBehalfOfContentOwner) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GroupsDeleteCall) Fields(s ...googleapi.Field) *GroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GroupsDeleteCall) Context(ctx context.Context) *GroupsDeleteCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1005,12 +833,7 @@ func (c *GroupsDeleteCall) Header() http.Header { } func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -1021,7 +844,7 @@ func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groups.delete" call. @@ -1033,39 +856,10 @@ func (c *GroupsDeleteCall) Do(opts ...googleapi.CallOption) error { } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return err + return gensupport.WrapError(err) } return nil - // { - // "description": "Deletes a group.", - // "httpMethod": "DELETE", - // "id": "youtubeAnalytics.groups.delete", - // "parameterOrder": [ - // "id" - // ], - // "parameters": { - // "id": { - // "description": "The id parameter specifies the YouTube group ID for the group that is being deleted.", - // "location": "query", - // "required": true, - // "type": "string" - // }, - // "onBehalfOfContentOwner": { - // "description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "groups", - // "scopes": [ - // "https://www.googleapis.com/auth/youtube", - // "https://www.googleapis.com/auth/youtubepartner" - // ] - // } - -} - -// method id "youtubeAnalytics.groups.insert": +} type GroupsInsertCall struct { s *Service @@ -1082,42 +876,40 @@ func (r *GroupsService) Insert(group *Group) *GroupsInsertCall { return c } -// OnBehalfOfContentOwner sets the optional parameter -// "onBehalfOfContentOwner": Note: This parameter is intended -// exclusively for YouTube content partners. +// OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": +// Note: This parameter is intended exclusively for YouTube content +// partners. // // The onBehalfOfContentOwner parameter indicates that the request's -// authorization credentials identify a YouTube CMS user who is acting -// on behalf of the content owner specified in the parameter value. This -// parameter is intended for YouTube content partners that own and -// manage many different YouTube channels. It allows content owners to -// authenticate once and get access to all their video and channel data, -// without having to provide authentication credentials for each -// individual channel. The CMS account that the user authenticates with -// must be linked to the specified YouTube content owner. +// authorization credentials identify a YouTube CMS user who is acting on +// behalf of the content owner specified in the parameter value. This parameter +// is intended for YouTube content partners that own and manage many different +// YouTube channels. It allows content owners to authenticate once and get +// access to all their video and channel data, without having to provide +// authentication credentials for each individual channel. The CMS account that +// the user authenticates with must be linked to the specified YouTube content +// owner. func (c *GroupsInsertCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *GroupsInsertCall { c.urlParams_.Set("onBehalfOfContentOwner", onBehalfOfContentOwner) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GroupsInsertCall) Fields(s ...googleapi.Field) *GroupsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GroupsInsertCall) Context(ctx context.Context) *GroupsInsertCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GroupsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1126,18 +918,12 @@ func (c *GroupsInsertCall) Header() http.Header { } func (c *GroupsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.group) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "groups") @@ -1147,16 +933,14 @@ func (c *GroupsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groups.insert" call. -// Exactly one of *Group or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Group.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Group.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *GroupsInsertCall) Do(opts ...googleapi.CallOption) (*Group, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1164,17 +948,17 @@ func (c *GroupsInsertCall) Do(opts ...googleapi.CallOption) (*Group, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Group{ ServerResponse: googleapi.ServerResponse{ @@ -1187,33 +971,7 @@ func (c *GroupsInsertCall) Do(opts ...googleapi.CallOption) (*Group, error) { return nil, err } return ret, nil - // { - // "description": "Creates a group.", - // "httpMethod": "POST", - // "id": "youtubeAnalytics.groups.insert", - // "parameters": { - // "onBehalfOfContentOwner": { - // "description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "groups", - // "request": { - // "$ref": "Group" - // }, - // "response": { - // "$ref": "Group" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/youtube", - // "https://www.googleapis.com/auth/youtubepartner" - // ] - // } - -} - -// method id "youtubeAnalytics.groups.list": +} type GroupsListCall struct { s *Service @@ -1223,87 +981,81 @@ type GroupsListCall struct { header_ http.Header } -// List: Returns a collection of groups that match the API request -// parameters. For example, you can retrieve all groups that the -// authenticated user owns, or you can retrieve one or more groups by -// their unique IDs. +// List: Returns a collection of groups that match the API request parameters. +// For example, you can retrieve all groups that the authenticated user owns, +// or you can retrieve one or more groups by their unique IDs. func (r *GroupsService) List() *GroupsListCall { c := &GroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } // Id sets the optional parameter "id": The id parameter specifies a -// comma-separated list of the YouTube group ID(s) for the resource(s) -// that are being retrieved. In a group resource, the id property -// specifies the group's YouTube group ID. +// comma-separated list of the YouTube group ID(s) for the resource(s) that are +// being retrieved. In a group resource, the id property specifies the group's +// YouTube group ID. func (c *GroupsListCall) Id(id string) *GroupsListCall { c.urlParams_.Set("id", id) return c } -// Mine sets the optional parameter "mine": Set this parameter's value -// to true to instruct the API to only return groups owned by the -// authenticated user. +// Mine sets the optional parameter "mine": Set this parameter's value to true +// to instruct the API to only return groups owned by the authenticated user. func (c *GroupsListCall) Mine(mine bool) *GroupsListCall { c.urlParams_.Set("mine", fmt.Sprint(mine)) return c } -// OnBehalfOfContentOwner sets the optional parameter -// "onBehalfOfContentOwner": Note: This parameter is intended -// exclusively for YouTube content partners. +// OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": +// Note: This parameter is intended exclusively for YouTube content +// partners. // // The onBehalfOfContentOwner parameter indicates that the request's -// authorization credentials identify a YouTube CMS user who is acting -// on behalf of the content owner specified in the parameter value. This -// parameter is intended for YouTube content partners that own and -// manage many different YouTube channels. It allows content owners to -// authenticate once and get access to all their video and channel data, -// without having to provide authentication credentials for each -// individual channel. The CMS account that the user authenticates with -// must be linked to the specified YouTube content owner. +// authorization credentials identify a YouTube CMS user who is acting on +// behalf of the content owner specified in the parameter value. This parameter +// is intended for YouTube content partners that own and manage many different +// YouTube channels. It allows content owners to authenticate once and get +// access to all their video and channel data, without having to provide +// authentication credentials for each individual channel. The CMS account that +// the user authenticates with must be linked to the specified YouTube content +// owner. func (c *GroupsListCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *GroupsListCall { c.urlParams_.Set("onBehalfOfContentOwner", onBehalfOfContentOwner) return c } -// PageToken sets the optional parameter "pageToken": The pageToken -// parameter identifies a specific page in the result set that should be -// returned. In an API response, the nextPageToken property identifies -// the next page that can be retrieved. +// PageToken sets the optional parameter "pageToken": The pageToken parameter +// identifies a specific page in the result set that should be returned. In an +// API response, the nextPageToken property identifies the next page that can +// be retrieved. func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GroupsListCall) Fields(s ...googleapi.Field) *GroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *GroupsListCall) IfNoneMatch(entityTag string) *GroupsListCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GroupsListCall) Context(ctx context.Context) *GroupsListCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1312,12 +1064,7 @@ func (c *GroupsListCall) Header() http.Header { } func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1331,16 +1078,15 @@ func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groups.list" call. -// Exactly one of *GroupListResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GroupListResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *GroupListResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*GroupListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1348,17 +1094,17 @@ func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*GroupListResponse, e if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &GroupListResponse{ ServerResponse: googleapi.ServerResponse{ @@ -1371,44 +1117,6 @@ func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*GroupListResponse, e return nil, err } return ret, nil - // { - // "description": "Returns a collection of groups that match the API request parameters. For example, you can retrieve all groups that the authenticated user owns, or you can retrieve one or more groups by their unique IDs.", - // "httpMethod": "GET", - // "id": "youtubeAnalytics.groups.list", - // "parameters": { - // "id": { - // "description": "The id parameter specifies a comma-separated list of the YouTube group ID(s) for the resource(s) that are being retrieved. In a group resource, the id property specifies the group's YouTube group ID.", - // "location": "query", - // "type": "string" - // }, - // "mine": { - // "description": "Set this parameter's value to true to instruct the API to only return groups owned by the authenticated user.", - // "location": "query", - // "type": "boolean" - // }, - // "onBehalfOfContentOwner": { - // "description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identifies the next page that can be retrieved.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "groups", - // "response": { - // "$ref": "GroupListResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/youtube", - // "https://www.googleapis.com/auth/youtube.readonly", - // "https://www.googleapis.com/auth/youtubepartner", - // "https://www.googleapis.com/auth/yt-analytics.readonly" - // ] - // } - } // Pages invokes f for each page of results. @@ -1416,7 +1124,7 @@ func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*GroupListResponse, e // The provided context supersedes any context provided to the Context method. func (c *GroupsListCall) Pages(ctx context.Context, f func(*GroupListResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer c.PageToken(c.urlParams_.Get("pageToken")) for { x, err := c.Do() if err != nil { @@ -1432,8 +1140,6 @@ func (c *GroupsListCall) Pages(ctx context.Context, f func(*GroupListResponse) e } } -// method id "youtubeAnalytics.groups.update": - type GroupsUpdateCall struct { s *Service group *Group @@ -1442,50 +1148,47 @@ type GroupsUpdateCall struct { header_ http.Header } -// Update: Modifies a group. For example, you could change a group's -// title. +// Update: Modifies a group. For example, you could change a group's title. func (r *GroupsService) Update(group *Group) *GroupsUpdateCall { c := &GroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.group = group return c } -// OnBehalfOfContentOwner sets the optional parameter -// "onBehalfOfContentOwner": Note: This parameter is intended -// exclusively for YouTube content partners. +// OnBehalfOfContentOwner sets the optional parameter "onBehalfOfContentOwner": +// Note: This parameter is intended exclusively for YouTube content +// partners. // // The onBehalfOfContentOwner parameter indicates that the request's -// authorization credentials identify a YouTube CMS user who is acting -// on behalf of the content owner specified in the parameter value. This -// parameter is intended for YouTube content partners that own and -// manage many different YouTube channels. It allows content owners to -// authenticate once and get access to all their video and channel data, -// without having to provide authentication credentials for each -// individual channel. The CMS account that the user authenticates with -// must be linked to the specified YouTube content owner. +// authorization credentials identify a YouTube CMS user who is acting on +// behalf of the content owner specified in the parameter value. This parameter +// is intended for YouTube content partners that own and manage many different +// YouTube channels. It allows content owners to authenticate once and get +// access to all their video and channel data, without having to provide +// authentication credentials for each individual channel. The CMS account that +// the user authenticates with must be linked to the specified YouTube content +// owner. func (c *GroupsUpdateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *GroupsUpdateCall { c.urlParams_.Set("onBehalfOfContentOwner", onBehalfOfContentOwner) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *GroupsUpdateCall) Fields(s ...googleapi.Field) *GroupsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *GroupsUpdateCall) Context(ctx context.Context) *GroupsUpdateCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *GroupsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1494,18 +1197,12 @@ func (c *GroupsUpdateCall) Header() http.Header { } func (c *GroupsUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.group) if err != nil { return nil, err } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "groups") @@ -1515,16 +1212,14 @@ func (c *GroupsUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groups.update" call. -// Exactly one of *Group or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Group.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. +// Any non-2xx status code is an error. Response headers are in either +// *Group.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *GroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Group, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1532,17 +1227,17 @@ func (c *GroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Group, error) { if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &Group{ ServerResponse: googleapi.ServerResponse{ @@ -1555,33 +1250,7 @@ func (c *GroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Group, error) { return nil, err } return ret, nil - // { - // "description": "Modifies a group. For example, you could change a group's title.", - // "httpMethod": "PUT", - // "id": "youtubeAnalytics.groups.update", - // "parameters": { - // "onBehalfOfContentOwner": { - // "description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "groups", - // "request": { - // "$ref": "Group" - // }, - // "response": { - // "$ref": "Group" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/youtube", - // "https://www.googleapis.com/auth/youtubepartner" - // ] - // } - -} - -// method id "youtubeAnalytics.reports.query": +} type ReportsQueryCall struct { s *Service @@ -1592,6 +1261,23 @@ type ReportsQueryCall struct { } // Query: Retrieve your YouTube Analytics reports. +// +// - endDate: The end date for fetching YouTube Analytics data. The value +// should be in YYYY-MM-DD format. +// - ids: Identifies the YouTube channel or content owner for which you are +// retrieving YouTube Analytics data. +// - To request data for a YouTube user, set the ids parameter value to +// channel==CHANNEL_ID, where CHANNEL_ID specifies the unique YouTube channel +// ID. +// - To request data for a YouTube CMS content owner, set the ids parameter +// value to contentOwner==OWNER_NAME, where OWNER_NAME is the CMS name of the +// content owner. +// - metrics: A comma-separated list of YouTube Analytics metrics, such as +// views or likes,dislikes. See the Available Reports document for a list of +// the reports that you can retrieve and the metrics available in each +// report, and see the Metrics document for definitions of those metrics. +// - startDate: The start date for fetching YouTube Analytics data. The value +// should be in YYYY-MM-DD format. func (r *ReportsService) Query(ids string, startDate string, endDate string, metrics string) *ReportsQueryCall { c := &ReportsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.urlParams_.Set("ids", ids) @@ -1601,35 +1287,32 @@ func (r *ReportsService) Query(ids string, startDate string, endDate string, met return c } -// Currency sets the optional parameter "currency": The currency to -// which financial metrics should be converted. The default is US Dollar -// (USD). If the result contains no financial metrics, this flag will be -// ignored. Responds with an error if the specified currency is not -// recognized. +// Currency sets the optional parameter "currency": The currency to which +// financial metrics should be converted. The default is US Dollar (USD). If +// the result contains no financial metrics, this flag will be ignored. +// Responds with an error if the specified currency is not recognized. func (c *ReportsQueryCall) Currency(currency string) *ReportsQueryCall { c.urlParams_.Set("currency", currency) return c } -// Dimensions sets the optional parameter "dimensions": A -// comma-separated list of YouTube Analytics dimensions, such as views -// or ageGroup,gender. See the Available Reports document for a list of -// the reports that you can retrieve and the dimensions used for those -// reports. Also see the Dimensions document for definitions of those -// dimensions. +// Dimensions sets the optional parameter "dimensions": A comma-separated list +// of YouTube Analytics dimensions, such as views or ageGroup,gender. See the +// Available Reports document for a list of the reports that you can retrieve +// and the dimensions used for those reports. Also see the Dimensions document +// for definitions of those dimensions. func (c *ReportsQueryCall) Dimensions(dimensions string) *ReportsQueryCall { c.urlParams_.Set("dimensions", dimensions) return c } -// Filters sets the optional parameter "filters": A list of filters that -// should be applied when retrieving YouTube Analytics data. The -// Available Reports document identifies the dimensions that can be used -// to filter each report, and the Dimensions document defines those -// dimensions. If a request uses multiple filters, join them together -// with a semicolon (;), and the returned result table will satisfy both -// filters. For example, a filters parameter value of -// video==dMH0bHeiRNg;country==IT restricts the result set to include +// Filters sets the optional parameter "filters": A list of filters that should +// be applied when retrieving YouTube Analytics data. The Available Reports +// document identifies the dimensions that can be used to filter each report, +// and the Dimensions document defines those dimensions. If a request uses +// multiple filters, join them together with a semicolon (;), and the returned +// result table will satisfy both filters. For example, a filters parameter +// value of video==dMH0bHeiRNg;country==IT restricts the result set to include // data for the given video in Italy. func (c *ReportsQueryCall) Filters(filters string) *ReportsQueryCall { c.urlParams_.Set("filters", filters) @@ -1637,67 +1320,62 @@ func (c *ReportsQueryCall) Filters(filters string) *ReportsQueryCall { } // IncludeHistoricalChannelData sets the optional parameter -// "include-historical-channel-data": If set to true historical data -// (i.e. channel data from before the linking of the channel to the -// content owner) will be retrieved. +// "include-historical-channel-data": If set to true historical data (i.e. +// channel data from before the linking of the channel to the content owner) +// will be retrieved. func (c *ReportsQueryCall) IncludeHistoricalChannelData(includeHistoricalChannelData bool) *ReportsQueryCall { c.urlParams_.Set("include-historical-channel-data", fmt.Sprint(includeHistoricalChannelData)) return c } -// MaxResults sets the optional parameter "max-results": The maximum -// number of rows to include in the response. +// MaxResults sets the optional parameter "max-results": The maximum number of +// rows to include in the response. func (c *ReportsQueryCall) MaxResults(maxResults int64) *ReportsQueryCall { c.urlParams_.Set("max-results", fmt.Sprint(maxResults)) return c } // Sort sets the optional parameter "sort": A comma-separated list of -// dimensions or metrics that determine the sort order for YouTube -// Analytics data. By default the sort order is ascending. The '-' -// prefix causes descending sort order. +// dimensions or metrics that determine the sort order for YouTube Analytics +// data. By default the sort order is ascending. The '-' prefix causes +// descending sort order. func (c *ReportsQueryCall) Sort(sort string) *ReportsQueryCall { c.urlParams_.Set("sort", sort) return c } -// StartIndex sets the optional parameter "start-index": An index of the -// first entity to retrieve. Use this parameter as a pagination -// mechanism along with the max-results parameter (one-based, -// inclusive). +// StartIndex sets the optional parameter "start-index": An index of the first +// entity to retrieve. Use this parameter as a pagination mechanism along with +// the max-results parameter (one-based, inclusive). func (c *ReportsQueryCall) StartIndex(startIndex int64) *ReportsQueryCall { c.urlParams_.Set("start-index", fmt.Sprint(startIndex)) return c } // Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. func (c *ReportsQueryCall) Fields(s ...googleapi.Field) *ReportsQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. func (c *ReportsQueryCall) IfNoneMatch(entityTag string) *ReportsQueryCall { c.ifNoneMatch_ = entityTag return c } -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. +// Context sets the context to be used in this call's Do method. func (c *ReportsQueryCall) Context(ctx context.Context) *ReportsQueryCall { c.ctx_ = ctx return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. func (c *ReportsQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) @@ -1706,12 +1384,7 @@ func (c *ReportsQueryCall) Header() http.Header { } func (c *ReportsQueryCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203") - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } @@ -1725,16 +1398,14 @@ func (c *ReportsQueryCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.reports.query" call. -// Exactly one of *ResultTable or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ResultTable.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. +// Any non-2xx status code is an error. Response headers are in either +// *ResultTable.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. func (c *ReportsQueryCall) Do(opts ...googleapi.CallOption) (*ResultTable, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") @@ -1742,17 +1413,17 @@ func (c *ReportsQueryCall) Do(opts ...googleapi.CallOption) (*ResultTable, error if res.Body != nil { res.Body.Close() } - return nil, &googleapi.Error{ + return nil, gensupport.WrapError(&googleapi.Error{ Code: res.StatusCode, Header: res.Header, - } + }) } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return nil, err + return nil, gensupport.WrapError(err) } ret := &ResultTable{ ServerResponse: googleapi.ServerResponse{ @@ -1765,98 +1436,4 @@ func (c *ReportsQueryCall) Do(opts ...googleapi.CallOption) (*ResultTable, error return nil, err } return ret, nil - // { - // "description": "Retrieve your YouTube Analytics reports.", - // "httpMethod": "GET", - // "id": "youtubeAnalytics.reports.query", - // "parameterOrder": [ - // "ids", - // "start-date", - // "end-date", - // "metrics" - // ], - // "parameters": { - // "currency": { - // "description": "The currency to which financial metrics should be converted. The default is US Dollar (USD). If the result contains no financial metrics, this flag will be ignored. Responds with an error if the specified currency is not recognized.", - // "location": "query", - // "pattern": "[A-Z]{3}", - // "type": "string" - // }, - // "dimensions": { - // "description": "A comma-separated list of YouTube Analytics dimensions, such as views or ageGroup,gender. See the Available Reports document for a list of the reports that you can retrieve and the dimensions used for those reports. Also see the Dimensions document for definitions of those dimensions.", - // "location": "query", - // "pattern": "[0-9a-zA-Z,]+", - // "type": "string" - // }, - // "end-date": { - // "description": "The end date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format.", - // "location": "query", - // "pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}", - // "required": true, - // "type": "string" - // }, - // "filters": { - // "description": "A list of filters that should be applied when retrieving YouTube Analytics data. The Available Reports document identifies the dimensions that can be used to filter each report, and the Dimensions document defines those dimensions. If a request uses multiple filters, join them together with a semicolon (;), and the returned result table will satisfy both filters. For example, a filters parameter value of video==dMH0bHeiRNg;country==IT restricts the result set to include data for the given video in Italy.", - // "location": "query", - // "type": "string" - // }, - // "ids": { - // "description": "Identifies the YouTube channel or content owner for which you are retrieving YouTube Analytics data.\n- To request data for a YouTube user, set the ids parameter value to channel==CHANNEL_ID, where CHANNEL_ID specifies the unique YouTube channel ID.\n- To request data for a YouTube CMS content owner, set the ids parameter value to contentOwner==OWNER_NAME, where OWNER_NAME is the CMS name of the content owner.", - // "location": "query", - // "pattern": "[a-zA-Z]+==[a-zA-Z0-9_+-]+", - // "required": true, - // "type": "string" - // }, - // "include-historical-channel-data": { - // "description": "If set to true historical data (i.e. channel data from before the linking of the channel to the content owner) will be retrieved.", - // "location": "query", - // "type": "boolean" - // }, - // "max-results": { - // "description": "The maximum number of rows to include in the response.", - // "format": "int32", - // "location": "query", - // "minimum": "1", - // "type": "integer" - // }, - // "metrics": { - // "description": "A comma-separated list of YouTube Analytics metrics, such as views or likes,dislikes. See the Available Reports document for a list of the reports that you can retrieve and the metrics available in each report, and see the Metrics document for definitions of those metrics.", - // "location": "query", - // "pattern": "[0-9a-zA-Z,]+", - // "required": true, - // "type": "string" - // }, - // "sort": { - // "description": "A comma-separated list of dimensions or metrics that determine the sort order for YouTube Analytics data. By default the sort order is ascending. The '-' prefix causes descending sort order.", - // "location": "query", - // "pattern": "[-0-9a-zA-Z,]+", - // "type": "string" - // }, - // "start-date": { - // "description": "The start date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format.", - // "location": "query", - // "pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}", - // "required": true, - // "type": "string" - // }, - // "start-index": { - // "description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter (one-based, inclusive).", - // "format": "int32", - // "location": "query", - // "minimum": "1", - // "type": "integer" - // } - // }, - // "path": "reports", - // "response": { - // "$ref": "ResultTable" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/youtube", - // "https://www.googleapis.com/auth/youtube.readonly", - // "https://www.googleapis.com/auth/yt-analytics-monetary.readonly", - // "https://www.googleapis.com/auth/yt-analytics.readonly" - // ] - // } - } diff --git a/youtubeanalytics/v2/youtubeanalytics-gen.go b/youtubeanalytics/v2/youtubeanalytics-gen.go index 6ba4195dcf2..e3df52a2f9a 100644 --- a/youtubeanalytics/v2/youtubeanalytics-gen.go +++ b/youtubeanalytics/v2/youtubeanalytics-gen.go @@ -698,7 +698,7 @@ func (c *GroupItemsDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groupItems.delete" call. @@ -808,7 +808,7 @@ func (c *GroupItemsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groupItems.insert" call. @@ -933,7 +933,7 @@ func (c *GroupItemsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groupItems.list" call. @@ -1045,7 +1045,7 @@ func (c *GroupsDeleteCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groups.delete" call. @@ -1155,7 +1155,7 @@ func (c *GroupsInsertCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groups.insert" call. @@ -1301,7 +1301,7 @@ func (c *GroupsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groups.list" call. @@ -1433,7 +1433,7 @@ func (c *GroupsUpdateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.groups.update" call. @@ -1641,7 +1641,7 @@ func (c *ReportsQueryCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubeAnalytics.reports.query" call. diff --git a/youtubereporting/v1/youtubereporting-gen.go b/youtubereporting/v1/youtubereporting-gen.go index 87209d35189..71e534a34ac 100644 --- a/youtubereporting/v1/youtubereporting-gen.go +++ b/youtubereporting/v1/youtubereporting-gen.go @@ -860,7 +860,7 @@ func (c *JobsCreateCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubereporting.jobs.create" call. @@ -963,7 +963,7 @@ func (c *JobsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubereporting.jobs.delete" call. @@ -1078,7 +1078,7 @@ func (c *JobsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubereporting.jobs.get" call. @@ -1212,7 +1212,7 @@ func (c *JobsListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubereporting.jobs.list" call. @@ -1353,7 +1353,7 @@ func (c *JobsReportsGetCall) doRequest(alt string) (*http.Response, error) { "jobId": c.jobId, "reportId": c.reportId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubereporting.jobs.reports.get" call. @@ -1509,7 +1509,7 @@ func (c *JobsReportsListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "jobId": c.jobId, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubereporting.jobs.reports.list" call. @@ -1639,7 +1639,7 @@ func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "resourceName": c.resourceName, }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Download fetches the API endpoint's "media" value, instead of the normal @@ -1789,7 +1789,7 @@ func (c *ReportTypesListCall) doRequest(alt string) (*http.Response, error) { return nil, err } req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) + return gensupport.SendRequest(c.ctx_, c.s.client, req, false) } // Do executes the "youtubereporting.reportTypes.list" call.